Package io.meeds.layout.model
package io.meeds.layout.model
-
ClassDescriptionThe code a placed application runs in the visitor's browser, as its owning add-on reads it for a window: the three parts an IDE widget storesWhere move_layout_application puts an application, as the read numbers it, every number counting from 1: in a dynamic section, the section, its column and, at most one of them, the index among the column's applications or the application it goes before or after, the end of the column otherwise; in a grid section, the section and the row and column of the cell; in a site container, the container and, at most one of them, the index, before or after, the end of the container otherwiseWhat a layout description needs to describe the applications of a tree: their content ids, the windows by storage id, and where they sit and for whom, to read their settings; without a username no settings are read.The window an application settings plugin reads or writes, and who acts.The catalog application move_layout_application places: an instance the user may place, or a content id matched to exactly one such instanceAn attachment a consuming call created, to delete when the layout write that follows failsmode is solid, linear, radial or angular; from, to, ratio and direction carry a gradient; scrollColor the colour a sticky site container takes once scrolled; effect is the stored CSS when it matches none of the editor's gradient forms.imageUploadId is an input only (the id upload_layout_image returned); a read carries the stored url instead.A grid cell: row and column are 1-based, as the editor numbers themThe windows a write addresses on the user's layout, resolved without a write: the layout read (the user's draft when their revision names one, the published layout otherwise), the stored windows the ids name and their contexts.An element of set_layout_visibility: the id the read answers for a section, an application, a topbar, a bottom bar or a sidebar, with the device visibility it takes.An element of set_layout_styles: the id the read answers for a section, an application, a topbar, a bottom bar or a sidebar, with the styling blocks that change, in the shape the read answers them.A grid section as the read numbers it: its rows and columns, and the cell anchored at each position, keyed "row:column" from 1The upload ids one layout write consumes: each id is claimed once while the call's description is applied, before any write, and stands in the layout as a placeholder until the attachments are saved and their URLs take its place.The attachment an uploaded image is saved as: the object type of the background it illustrates and the object id keyed on the live page or siteLayoutWrite<T>A layout write run under a guard of the layout services: the per-window lock, or the wrapper that names a draft this call created when the write that follows it failsMargins on the editor's scale: an application stores 20 as neutral, a section or a site container stores 0 as none.The display options of the topbar and the sidebar as stored after an update, each topbar application named in the user's language.What a caller outside the navigation drawer asks to change on a navigation item: a null field keeps the stored value.The bounds of a navigation item's scheduled visibility, as epoch milliseconds: both given for a schedule, both null when the caller drops it; one alone is refused by the serviceThe page in the shape set_page_layout takes.A layout to write and the child indexes leading from its root to the application a placement wrote, null when the write placed noneWhere a placement writes an application: the cell or container whose children take it, the stored child it goes before, null for the end, and its place in the editor's styling matrixStart and end of a scheduled visibility, as ISO-8601 instantsA dynamic section carries columns and columnsContent (one ordered list of applications per column); a grid section carries rows, columns and cells.How the sidebar may be displayed: on input, a null field leaves its stored value and the allowed modes replace the stored list; on output, every field as stored.A column of a topbar or a bottom bar, as the site layout editor shows it: its width in pixels when it has one, or fit_content when it takes the width of its application, the last column taking the remaining width otherwise, where its application sits in it, horizontally and vertically, and the application it holds.A site container: a sidebar lists its applications, a topbar or a bottom bar lists its columns, each holding its application.The options the site layout editor offers on a banner (height) or a sidebar (width, full height when the sidebar spans the banners)The four arguments of set_site_layout: a sidebar or a list absent from the call means no such container, since the call replaces the whole structureThe properties of a site a caller states in an update: a null field is one the caller did not state, which keeps its stored value.The block form of the editor's styling inputs: a block is on when its enabled flag is true, as the inputs read a block as on when its leading field is set.What a text background block that is on writes: the colour, the effect, the padding and the radius, then the image and its options; a null image clears the stored one, a stored image repeated keeps its stored options, a new image carries the options the call gaveOne text role (title, header, content or subtitle); background exists on title and header onlyOne application of the topbar: on input, the identifier names the stored application, or its name as shown in the user's language when no identifier is given, and a null field leaves its stored value; on output, every field as stored, the name translated.What the topbar shows: on input, a null field leaves its stored value and the applications listed are merged into the stored list, each named by identifier or by the name shown in the user's language; on output, every field as stored, each application named in the user's language.