--%%u / --%%rsrc--tool uibuilder)Child devices are the one place on the HC3 where modern view elements
(tabView, collapsible) are safe — the editor never rewrites a child's
uiView. But that safety comes with a cost: there is no HC3-side tool to
author those UIs, so today they are written as --%%u/--%%rsrc rows by
hand (or pasted from --tool ui --as-lua). flua already owns the entire
compile chain — rows → uiView/viewLayout/uiCallbacks, the inverse
(ui_to_u_rows), lua_literal, child_bindings, --%%rsrc — and its
web viewer already renders the uiView faithfully. The missing piece is
authoring: a visual builder that emits the directives.
flua --tool uibuilder [PORT] serves a standalone page in the same style
as the UI viewer. The editor model is the row JSON the directives
parse to — no new format.
--%%u lines (legacy package).tabView, collapsible, image), UIAction bindings. Export:
--%%u lines + the --%%useUiView:true hint.actionName = the method, json.array() for argless). Export:
--%%rsrc:<name>:{…} (the resource form; a name field in the UI).onReleased, onChanged, onToggled, onTabChanged, …), min/max/
value, options, values, url — the fields the compiler understands. For
the Child target, callbacks are the child class's method names.compile_ui
(plus child_bindings for the Child target) and the preview pane
reuses the viewer's renderComponent, so what you see is what the HC3
renders, bindings included. Preview interactions are local/inert (no QA
behind the page).--%%u and/or --%%rsrc per target); the raw Lua table
(--as-lua shape) later, behind a toggle.--%%u/--%%rsrc back into the model
(the parser already exists).renderComponent/appendRows for the
preview; the page/theme conventions of the viewer.--tool uibuilder (not a mode inside --ui).--%%u / --%%rsrc); the raw Lua
table comes later behind a toggle.UIAction vs. child actionName) and
the one format a child cannot have (viewLayout/v1).