Package su.onno.ui.divkit
package su.onno.ui.divkit
-
ClassDescriptionBuilds the home/dashboard content div: a greeting header and the widget area.Factories + fluent styling helpers for real DivKit div nodes, emitted as plain maps so Jackson serializes them to the DivKit JSON schema (
"type": "container" | "text" | "gallery" | "image" | "separator" | ...).Wraps a root div in the DivKit document envelope ({ templates, card: { log_id, states: [{ state_id, div }] } }) that every official DivKit renderer (Web, iOS, Android, Flutter) consumes.Builds the server-driven login screen as a DivKit card from the availableAuthMethods.Renders an authoredPageto DivKit content: a header, then a recursivePageDivBuilder.Regiontree — each region is a widget grid + freeformPageComponentblocks + nestedPageDivBuilder.Rows ofPageDivBuilder.Columns, so a page can compose an arbitrary column layout (and a right rail is just the common two-column case).One column of aPageDivBuilder.Row: a width spec (fraction,"<n>px", or null) + its region.A page region: a widget grid (gridColumnswide), freeform components, then layout rows.A horizontal band of columns (stacks vertically on mobile).Theme-aware color palette mirroring the app's shadcn CSS variables (a neutral, zero-saturation scale) so emitted DivKit surfaces match the rest of the UI in light and dark.Emits the app chrome as two independent DivKit cards — thetopbar(brand + actions) and thenav— so the client can position them perNavStyle: nav as a horizontalTOPBAR, a verticalSIDEBARrail, or a pinnedBOTTOM_BAR.A branding logo for the shell header / mobile menu: the (theme-resolved) image URL plus optional fixedwidth/heightin dp.Builds the per-surface DivKit content (catalog/document lists, document detail, register report) from the resolved metadata view + data rows.form(may be empty): an action-form dialog's field descriptors — the client collects them in a modal before POSTing the action (seeActionSpec.ActionBuilder#form).