Editor Shell
The frame of a visual editor: a thin app-bar on top, a fixed icon rail on the far left, a resizable left panel, a filling work area in the middle, and a resizable right aside. The column widths are dragged via built-in resize handles (pointer-capture, clamped). Fills its parent (fit=container) for d
Beispiele
Templates liefern Slot-Regeln statt HTML — siehe Events & Slots.
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| variant | string: flat | workspace | "flat" | Variante (flat = Haarlinien-Rahmen, workspace = Karten auf Hintergrund, Docs-Look) |
| fit | string: container | viewport | "container" | Fit (container = fill parent, e.g. a desktop window; viewport = 100dvh) |
| panelWidth | string | "18rem" | Left panel start width (e.g. 18rem) |
| asideWidth | string | "22rem" | Right aside start width (e.g. 22rem) |
| appbar | string: default | compact | "default" | Kopfleiste (compact = 40-px-Zeile) |
| narrow | string: none | sheets | "none" | Schmal (sheets = Flaechen von unten unter 760 px) |
| panelOpen | boolean | true | Linke Spalte offen |
| asideOpen | boolean | true | Rechte Spalte offen |
| storageKey | string | "" | Speicher-Schluessel (Breiten und Ein/Aus merken) |
| collapseKeys | boolean | false | Tastenkuerzel Mod+B / Mod+J |
* Pflicht-Prop
Events & Slots
Events:
⚡ resize⚡ collapse — im Surface per on: {<event>: {action, params}} verdrahtbar.
Slot nav:
akzeptiert component.sidebar, ui.*, layout.*
Slot appbar:
akzeptiert component.app-bar, component.toolbar, ui.*, layout.*
Slot rail:
akzeptiert component.icon-rail, ui.*
Slot panel:
akzeptiert component.panel, component.sidebar, ui.*, layout.*, component.*
Slot main:
akzeptiert section.*, layout.*, component.*, ui.*
Slot aside:
akzeptiert component.panel, component.inspector, component.conversation, ui.*, layout.*, component.*
Slot narrowBar:
akzeptiert component.tab-bar, ui.*, layout.*
Stellschrauben (Komponenten-Tokens)
Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.
| Token | Default |
|---|---|
--tab-bar-radius-full | 0 |
Genutzte Design-Tokens
LLM-Notizen
template.editor-shell
The frame of a visual editor: a thin app-bar on top, a fixed icon rail on the far left, a resizable left panel, a filling work area, and a resizable right aside.
When to use
- Any builder/editor UI (visual builder, settings editor, admin workbench) that needs a rail-driven panel on the left and an inspector/chat on the right.
- NOT a content/app page → that is
template.app.shell.
Slots
appbar— top bar (full width). Usuallycomponent.app-barorcomponent.toolbar dense.rail— the icon rail (far left, fixed). Usuallycomponent.icon-rail.panel— left panel (resizable). Usuallycomponent.panel.main— the work area (required).aside— right panel (resizable, optional). Usuallycomponent.panel/component.inspector/component.conversation.narrowBar(1.3.0) — Taskleiste unten, nur mitnarrow: 'sheets'und nur unter 760 px sichtbar. Usuallycomponent.tab-bar(eckig, der Radius wird auf 0 gesetzt).
Props
fit—container(default, fills the parent — e.g. a desktop window) orviewport(100dvh, 1.3.0; vorher 100vh).panelWidth/asideWidth— starting widths (e.g.18rem).variant—flat(hairline frame) orworkspace(cards on the backdrop).- 1.3.0 (NEX Studio, opt-in — ohne diese Props bleibt das Markup wie 1.2.2):
- panelOpen / asideOpen (true) — false schliesst die Spalte: Wurzel data-panel-open="false" / data-aside-open="false", die Spalte und ihr Griff gleiten auf 0 (reduce-motion ohne Weg).
- storageKey ('') — der Controller merkt gezogene Breiten (px) und Ein/Aus in localStorage unter invisible-editor-shell:<key> (z. B. studio_editor_<dokId>).
- collapseKeys (false) — Strg/Cmd+B klappt das Panel, Strg/Cmd+J das Aside; nie in Eingabefeldern.
- appbar — default oder compact (40-px-Zeile, --editor-shell-appbar; eine Toolbar darin fuellt die Hoehe). Seit 1.3.2 bleibt die Zeile einzeilig: die Gruppen der component.toolbar und ein layout.cluster darin brechen nicht um und stehen in Inhaltsbreite; nur die Startgruppe gibt nach, darin kuerzt allein eine ui.heading mit Auslassung (title mitgeben). ui.status kuerzt ab 200 px, eine component.tab-bar bleibt einzeilig. Was dann nicht passt, laeuft ueber - die Seite blendet bei wenig Breite selbst Nebensachen aus (Marken, Beschriftungen).
- narrow — none oder sheets (unter 760 px werden Panel und Aside zu Flaechen von unten; ohne Attribut zu, nur eine zugleich offen, Esc und Tipp auf den Arbeitsbereich schliessen).
Resizing
The left panel and right aside carry a drag handle on their inner edge. editor-shell.js drags the neighbour's inline-size via pointer capture, clamped 200–680 px and (1.2.2) at most 45 % of the shell width; arrow keys nudge by a step. The rail width is fixed. Everything else is tokens. DOM event invisible-shell:resize {side, width}.
Collapsing (1.3.0)
- Host-API am Wurzelelement:
root.editorShell.toggle('panel'|'aside', open?)(ohneopen= umschalten, liefert den neuen Zustand) undroot.editorShell.isOpen(column). - Ereignis
collapse {column, open}(Framework) und DOMinvisible-shell:collapse(bubbles) mit derselben Nutzlast. - Keine schwebenden Einblend-Knoepfe: der Host bietet den Weg (Rail-Klick, Symbolknopf
panel-right-openin der Appbar). - Nur die eigenen Spalten: eine zweite editor-shell im
mainwird weder gezogen noch geklappt.