spell-ui 0.8.10 → 0.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ui-root.js","names":["E.isBrowser","E.LoadOnce","MEDIUM","UIT.STACK_WITH_TOKEN","UIT.StackWithValues","<Show when={this.showsLoadingMessage}>\n {this.Loading.render(this.partForName(\"loading\"), () => this.loadingMessage)}\n </Show>","this","<Show when={this.showsSkeletons}>\n {this.Skeleton.render(this.partForName(\"skeleton\"), this.$.skeletons)}\n </Show>","<Show when={this.scrolls} fallback={this.content()}>\n {this.scroller(this.content())}\n </Show>","style={this.contentStyle}","<slot class={this.rootClass} style={this.contentStyle} />","<Show when={this.scrolls} fallback={<slot />}>\n {this.scroller(<slot />)}\n </Show>","<slot />","style={this.serverStyle}","<div class={this.rootClass} style={this.serverStyle}>\n <Show when={this.scrolls} fallback={<slot />}>\n {this.scroller(<slot />)}\n </Show>\n </div>","aria-label={this.attributes[\"aria-label\"] ?? this.runtimeText(\"label\")}","<div\n part={this.partForName(\"scroller\")}\n tabindex=\"0\"\n role=\"region\"\n aria-label={this.attributes[\"aria-label\"] ?? this.runtimeText(\"label\")}\n >\n {slot}\n </div>","E.UIComponent","E.proto","E.protoMerged","E.state","E.cssState","E.derived","E.whileConnected","E.untracked","E.onChange","_$getOwner","_$setAttribute","E.after","E.DOMElement","E.StaleCatalogError","E.flatParentFor","__name","rootCSS","STACK_WITH_TOKEN","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","StackWithValues","SOURCE","componentsVocabulary","loaderVocabulary","placeholderVocabulary","placeholderHeaderVocabulary","placeholderLineVocabulary","placeholderParagraphVocabulary","placeholderImageVocabulary","getOwner$1","ROOT_CATALOG","FAMILIES","n","isBrowser","UI","ui","RootLoader","LANGUAGES","es","LoadOnce","tag","ComponentPacks","tags","root","DOMElement","localName","TAG_PREFIX","alsoLoads","shared","SharedVocabulary","HIDDEN","attributes","formControl","folder","importer","lang","code","loadDictionary","dictionary","canonical","name","path","barrels","BARREL","loader","LOADER_SWITCHES","ALIGN","CENTER","part","createRenderEffect","message","text","PlaceholderSkeleton","box","skeletons","list","skeleton","placeholder","style","isFluid","Converters","element","FLUID","spec","size","SIZE","MEDIUM$1","block","image","header","HEADER_IMAGE","HEADER_LINES","paragraph","DEFAULT_LINES","line","LINE_LENGTH","count","RootBox","declarations","property","value","MEDIUM","stackWith","lengths","LENGTH_PROPERTIES","values","trimmed","WINDOW","VIEWPORT","isServer","SERVER_LENGTH","match","TIMEOUT","DEFAULT_TIMEOUT","amount","rootVocabulary","UIRoot_default","_tmpl$","_tmpl$2","_tmpl$3","_onSettingsChanged_dec","_onPackLoaded_dec","_start_dec","_watch_dec","_hostLayout_dec","_isFixed_dec","_isApp_dec","_isBox_dec","_isDark_dec","_isLight_dec","_skeletons_dec","_isLoading_dec","_looksReady_dec","_contentIsReady_dec","_Skeleton_dec","_Loading_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_contentIsReady","_skeletons","_UIRoot","UIComponent","proto","protoMerged","state","cssState","derived","whileConnected","untracked","onChange","resolve","DISPLAY","key","_self$","createComponent","Show","_self$2","_el$","effect","readShallow","className","_p$","t","_self$3","_el$2","insert","_el$3","_el$4","_self$4","_el$5","slot","setAttribute","SERVER_CONTENTS","observer","timeout","after","outcome","error","round","MAX_ROUNDS","toAwait","outer","loads","load","source","selector","failure","reason","StaleCatalogError","Warnings","isConnected","icons","RootSettings","request","packs","parent","defaults","above","flatParentFor","IconGlyph","page","PACK_SEPARATOR","pack","UIRoot"],"sources":["../src/components/ui-root/UIRoot.catalog.ts","../src/components/ui-root/RootLoader.ts","../src/components/ui-root/LoaderMessage.ts","../src/components/ui-root/PlaceholderSkeleton.ts","../src/components/ui-root/RootBox.ts","../src/components/ui-root/UIRoot.types.ts","../src/components/ui-root/UIRoot.en.ts","../src/components/ui-root/UIRoot.tsx","../src/components/ui-root/index.ts"],"sourcesContent":["/* GENERATED -- do not edit, run `yarn gen:root` (source: every `UI<Name>.en.ts`) */\n\nimport type { RootCatalogEntry } from \"./UIRoot.types\"\n\n/** Every component tag => what `<ui-root>` needs before its family loads. */\nexport const ROOT_CATALOG: Readonly<Record<string, RootCatalogEntry>> = {\n \"ui-accordion\": {\n folder: \"ui-accordion\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"long\" },\n { shape: \"line\", length: \"long\" },\n { shape: \"line\", length: \"long\" }\n ]\n },\n attributes: [\n \"appearance\",\n \"fluid\",\n \"inverted\",\n \"padding\",\n \"tree\",\n \"exclusive\",\n \"collapsible\",\n \"open\",\n \"source\",\n \"selector\"\n ]\n },\n \"ui-action\": {\n folder: \"ui-action\",\n skeleton: { display: \"inline\", width: \"8em\", height: \"2.5em\" },\n attributes: [\n \"color\",\n \"position\",\n \"value\",\n \"label\",\n \"description\",\n \"icon\",\n \"image\",\n \"flag\",\n \"link\",\n \"target\",\n \"appearance\",\n \"disabled\",\n \"selected\",\n \"padding\",\n \"kind\",\n \"action\",\n \"shortcut\",\n \"icon-only\"\n ]\n },\n \"ui-actions\": { folder: \"ui-parts\", attributes: [] },\n \"ui-ad\": { folder: \"ui-ad\", skeleton: { width: \"18em\", height: \"15em\" }, attributes: [\"unit\", \"align\", \"test\"] },\n \"ui-app-menu\": {\n folder: \"ui-app-menu\",\n skeleton: { display: \"inline\", width: \"24em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"name\",\n \"value\",\n \"choose\",\n \"position\",\n \"direction\",\n \"pagination\",\n \"icon\",\n \"labeled\",\n \"fluid\",\n \"stackable\",\n \"centered\",\n \"wrapping\",\n \"wrap\",\n \"inverted\",\n \"padding\",\n \"attach-to\",\n \"fixed\",\n \"align\",\n \"equal\",\n \"items\",\n \"shrinkable\",\n \"ticks\",\n \"icon-column\",\n \"tabs\",\n \"interactive\"\n ],\n formControl: true\n },\n \"ui-audio\": { folder: \"ui-video\", attributes: [\"src\", \"autoplay\", \"muted\", \"loop\", \"controls\"] },\n \"ui-author\": { folder: \"ui-parts\", attributes: [\"link\", \"target\"] },\n \"ui-avatar\": { folder: \"ui-parts\", attributes: [\"src\", \"tooltip\"] },\n \"ui-breadcrumb\": { folder: \"ui-breadcrumbs\", attributes: [\"selected\", \"link\", \"target\"] },\n \"ui-breadcrumbs\": {\n folder: \"ui-breadcrumbs\",\n skeleton: { parts: [{ shape: \"line\", length: \"medium\" }] },\n attributes: [\"size\", \"inverted\", \"divider\", \"divider-icon\"]\n },\n \"ui-button\": {\n folder: \"ui-button\",\n skeleton: { display: \"inline\", width: \"6em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"inverted\",\n \"toggle\",\n \"selected\",\n \"active-text\",\n \"inactive-text\",\n \"disabled\",\n \"loading\",\n \"fluid\",\n \"padding\",\n \"wrap\",\n \"ellipsis\",\n \"labeled\",\n \"reveal\",\n \"attach-to\",\n \"icon\",\n \"icon-position\",\n \"label\",\n \"badge\",\n \"type\",\n \"commandfor\",\n \"command\",\n \"link\",\n \"target\",\n \"download\",\n \"name\",\n \"value\"\n ],\n formControl: true\n },\n \"ui-buttons\": {\n folder: \"ui-button\",\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"inverted\",\n \"icon\",\n \"labeled\",\n \"padding\",\n \"toggle\",\n \"direction\",\n \"fluid\",\n \"equal\",\n \"wrapping\",\n \"spacing\",\n \"stackable\",\n \"attach-to\",\n \"width\"\n ]\n },\n \"ui-calendar\": {\n folder: \"ui-calendar\",\n skeleton: { display: \"inline\", width: \"14em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"inverted\",\n \"padding\",\n \"fluid\",\n \"disabled\",\n \"open\",\n \"type\",\n \"inline\",\n \"position\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"readonly\",\n \"placeholder\",\n \"min\",\n \"max\",\n \"initial-date\",\n \"first-day-of-week\",\n \"locale\",\n \"today\",\n \"disable-minute\",\n \"disable-month\",\n \"disable-year\",\n \"select-adjacent-days\",\n \"start-calendar\",\n \"end-calendar\",\n \"icon\",\n \"disabled-dates\",\n \"disabled-days-of-week\"\n ],\n formControl: true\n },\n \"ui-card\": {\n folder: \"ui-card\",\n skeleton: {\n width: \"18em\",\n parts: [{ shape: \"image\", ratio: \"square\" }, { shape: \"header\" }, { shape: \"paragraph\", lines: 3 }]\n },\n attributes: [\n \"size\",\n \"color\",\n \"background\",\n \"direction\",\n \"appearance\",\n \"fluid\",\n \"align\",\n \"inverted\",\n \"disabled\",\n \"loading\",\n \"link\",\n \"target\",\n \"heading\",\n \"meta\",\n \"description\",\n \"extra\",\n \"image\",\n \"alt\"\n ]\n },\n \"ui-cards\": {\n folder: \"ui-card\",\n attributes: [\n \"size\",\n \"color\",\n \"background\",\n \"columns\",\n \"layout\",\n \"doubling\",\n \"stackable\",\n \"stack-with\",\n \"align\",\n \"direction\",\n \"appearance\",\n \"inverted\"\n ]\n },\n \"ui-cell\": { folder: \"ui-table\", attributes: [\"header\", \"span\", \"align\", \"vertical-align\"] },\n \"ui-checkbox\": {\n folder: \"ui-checkbox\",\n skeleton: { display: \"inline\", width: \"6em\", height: \"1.25em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"indeterminate\",\n \"padding\",\n \"invisible\",\n \"align\",\n \"disabled\",\n \"readonly\",\n \"inverted\",\n \"selected\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"label\",\n \"off-value\"\n ],\n formControl: true\n },\n \"ui-code\": {\n folder: \"ui-code\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 5 }] },\n attributes: [\"source\", \"load\", \"language\", \"line-numbers\", \"start\", \"wrap\", \"copy\"]\n },\n \"ui-color-chip\": {\n folder: \"ui-theme-editor\",\n skeleton: { display: \"inline\", width: \"1.4em\", height: \"1.4em\" },\n attributes: [\"color\", \"scheme\", \"label\"]\n },\n \"ui-column\": {\n folder: \"ui-grid\",\n attributes: [\n \"color\",\n \"width\",\n \"width-mobile\",\n \"width-tablet\",\n \"width-computer\",\n \"width-large\",\n \"width-widescreen\",\n \"attach-to\",\n \"centered\",\n \"stretched\",\n \"only\",\n \"align\",\n \"vertical-align\"\n ]\n },\n \"ui-comment\": {\n folder: \"ui-comment\",\n skeleton: {\n parts: [\n { shape: \"header\", image: true },\n { shape: \"paragraph\", lines: 2 }\n ]\n },\n attributes: [\"collapsed\", \"disabled\"]\n },\n \"ui-comments\": {\n folder: \"ui-comment\",\n attributes: [\"size\", \"threaded\", \"appearance\", \"inverted\", \"collapsed\", \"disabled\"]\n },\n \"ui-components\": { folder: \"ui-components\", attributes: [\"source\"] },\n \"ui-container\": {\n folder: \"ui-container\",\n attributes: [\n \"text\",\n \"fluid\",\n \"wide\",\n \"width\",\n \"size\",\n \"inverted\",\n \"padding\",\n \"columns\",\n \"grid\",\n \"spacing\",\n \"align\",\n \"scrolling\",\n \"resizable\"\n ]\n },\n \"ui-content\": { folder: \"ui-parts\", attributes: [\"image\", \"scrolling\", \"align\", \"vertical-align\"] },\n \"ui-date\": { folder: \"ui-parts\", attributes: [\"datetime\"] },\n \"ui-description\": { folder: \"ui-parts\", attributes: [] },\n \"ui-detail\": { folder: \"ui-parts\", attributes: [\"link\"] },\n \"ui-device\": {\n folder: \"ui-device\",\n skeleton: { width: \"12em\", height: \"24em\" },\n attributes: [\"device\", \"orientation\", \"controls\", \"modal\", \"closedby\"]\n },\n \"ui-diagram\": {\n folder: \"ui-diagram\",\n skeleton: { height: \"14em\" },\n attributes: [\"spec\", \"columns\", \"remember\", \"fixed\"]\n },\n \"ui-diagram-node\": { folder: \"ui-diagram\", attributes: [\"name\", \"resizable\"] },\n \"ui-dimension\": {\n folder: \"ui-dimension\",\n skeleton: { display: \"inline\", width: \"4em\", height: \"1em\" },\n attributes: [\"value\", \"dimension\", \"unit\", \"in\"]\n },\n \"ui-dimmer\": {\n folder: \"ui-dimmer\",\n attributes: [\n \"shade\",\n \"page\",\n \"inverted\",\n \"blurring\",\n \"appearance\",\n \"disabled\",\n \"vertical-align\",\n \"show-on\",\n \"closedby\"\n ]\n },\n \"ui-divider\": {\n folder: \"ui-divider\",\n skeleton: { height: \"0.25em\" },\n attributes: [\"size\", \"color\", \"direction\", \"spacer\", \"padding\", \"clearing\", \"section\", \"inverted\", \"align\", \"icon\"]\n },\n \"ui-docs-api\": {\n folder: \"ui-docs-api\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"short\" },\n { shape: \"paragraph\", lines: 5 }\n ]\n },\n attributes: [\"tag\", \"family\", \"only\", \"level\"]\n },\n \"ui-docs-index\": { folder: \"ui-docs-index\", attributes: [\"pages\"] },\n \"ui-docs-inspector\": {\n folder: \"ui-docs-inspector\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"short\" },\n { shape: \"paragraph\", lines: 4 }\n ]\n },\n attributes: [\"for\", \"all\"]\n },\n \"ui-docs-nav\": {\n folder: \"ui-docs-nav\",\n skeleton: {\n width: \"15em\",\n parts: [\n { shape: \"paragraph\", lines: 3 },\n { shape: \"paragraph\", lines: 8 }\n ]\n },\n attributes: [\"current\", \"base\", \"view\", \"size\"]\n },\n \"ui-docs-palette\": { folder: \"ui-docs-palette\", skeleton: { height: \"40em\" }, attributes: [] },\n \"ui-docs-search\": {\n folder: \"ui-docs-search\",\n skeleton: { width: \"16em\", height: \"2.25em\" },\n attributes: [\"pages\", \"base\", \"page\", \"shortcuts\", \"placeholder\", \"size\"]\n },\n \"ui-docs-theme-bench\": { folder: \"ui-docs-theme-bench\", skeleton: { height: \"40em\" }, attributes: [] },\n \"ui-docs-tokens\": {\n folder: \"ui-docs-tokens\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"short\" },\n { shape: \"paragraph\", lines: 5 }\n ]\n },\n attributes: [\"family\", \"tag\", \"global\", \"groups\", \"tokens\", \"playground\", \"target\", \"caption\", \"level\"]\n },\n \"ui-dropdown\": {\n folder: \"ui-dropdown\",\n skeleton: { display: \"inline\", width: \"14em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"selection\",\n \"search\",\n \"multiple\",\n \"inline\",\n \"floating\",\n \"button\",\n \"labeled\",\n \"padding\",\n \"fluid\",\n \"scrolling\",\n \"appearance\",\n \"clearable\",\n \"disabled\",\n \"loading\",\n \"readonly\",\n \"inverted\",\n \"limit\",\n \"resizable\",\n \"length\",\n \"open\",\n \"pointing\",\n \"columnar\",\n \"direction\",\n \"icon\",\n \"placeholder\",\n \"value\",\n \"label\",\n \"name\",\n \"parameter\",\n \"required\",\n \"allow-additions\",\n \"min-characters\",\n \"max-selections\",\n \"no-results-text\",\n \"addition-text\",\n \"options\"\n ],\n formControl: true\n },\n \"ui-embed\": {\n folder: \"ui-embed\",\n skeleton: { width: \"28em\", height: \"15.75em\" },\n attributes: [\n \"source\",\n \"video-id\",\n \"url\",\n \"placeholder\",\n \"label\",\n \"alt\",\n \"icon\",\n \"aspect-ratio\",\n \"autoplay\",\n \"parameters\",\n \"active\"\n ]\n },\n \"ui-emoji\": {\n folder: \"ui-emoji\",\n skeleton: { display: \"inline\", width: \"1em\", height: \"1em\" },\n attributes: [\"size\", \"name\", \"label\", \"appearance\", \"disabled\", \"loading\"]\n },\n \"ui-event\": { folder: \"ui-feed\", attributes: [\"color\", \"icon\", \"image\", \"label\", \"appearance\", \"disabled\"] },\n \"ui-example\": {\n folder: \"ui-example\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\", lines: 2 }] },\n attributes: [\"heading\", \"description\", \"level\", \"code\", \"language\", \"bare\", \"variation\"]\n },\n \"ui-extra\": { folder: \"ui-parts\", attributes: [\"text\"] },\n \"ui-feed\": {\n folder: \"ui-feed\",\n skeleton: {\n parts: [\n { shape: \"header\", image: true },\n { shape: \"paragraph\", lines: 2 }\n ]\n },\n attributes: [\"size\", \"color\", \"connected\", \"ordered\", \"divided\", \"appearance\", \"inverted\", \"disabled\"]\n },\n \"ui-field\": {\n folder: \"ui-form\",\n skeleton: { height: \"4.5em\" },\n attributes: [\n \"label\",\n \"description\",\n \"unsaved\",\n \"hint\",\n \"output\",\n \"error\",\n \"state\",\n \"apply\",\n \"mixed\",\n \"rules\",\n \"inline\",\n \"required\",\n \"readonly\",\n \"disabled\",\n \"width\"\n ]\n },\n \"ui-fields\": {\n folder: \"ui-form\",\n attributes: [\"state\", \"inline\", \"grouped\", \"unstackable\", \"required\", \"disabled\", \"equal\", \"widths\"]\n },\n \"ui-flag\": {\n folder: \"ui-flag\",\n skeleton: { display: \"inline\", width: \"1.1em\", height: \"0.8em\" },\n attributes: [\"size\", \"country\"]\n },\n \"ui-flyout\": {\n folder: \"ui-flyout\",\n attributes: [\n \"position\",\n \"fullscreen\",\n \"inverted\",\n \"blurring\",\n \"modeless\",\n \"width\",\n \"closable\",\n \"closedby\",\n \"heading\",\n \"content\"\n ]\n },\n \"ui-form\": {\n folder: \"ui-form\",\n attributes: [\n \"fluid\",\n \"size\",\n \"state\",\n \"equal-width\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"unstackable\",\n \"stack-with\",\n \"validate\",\n \"apply\",\n \"rules\",\n \"error-focus\",\n \"prevent-leaving\",\n \"value\",\n \"debug\"\n ]\n },\n \"ui-grid\": {\n folder: \"ui-grid\",\n attributes: [\n \"columns\",\n \"equal-width\",\n \"divided\",\n \"celled\",\n \"padding\",\n \"spacing\",\n \"centered\",\n \"stretched\",\n \"stackable\",\n \"doubling\",\n \"inverted\",\n \"only\",\n \"reversed\",\n \"stack-with\",\n \"align\",\n \"vertical-align\"\n ]\n },\n \"ui-header\": {\n folder: \"ui-parts\",\n skeleton: { parts: [{ shape: \"line\", length: \"medium\" }] },\n attributes: [\n \"level\",\n \"size\",\n \"color\",\n \"sub\",\n \"icon\",\n \"dividing\",\n \"block\",\n \"attach-to\",\n \"seamless\",\n \"align\",\n \"padding\",\n \"disabled\",\n \"inverted\",\n \"link\"\n ]\n },\n \"ui-icon\": {\n folder: \"ui-icon\",\n skeleton: { display: \"inline\", width: \"1em\", height: \"1em\" },\n attributes: [\n \"size\",\n \"color\",\n \"name\",\n \"label\",\n \"disabled\",\n \"inverted\",\n \"loading\",\n \"padding\",\n \"appearance\",\n \"flipped\",\n \"rotated\",\n \"corner\"\n ]\n },\n \"ui-icon-picker\": {\n folder: \"ui-icon-picker\",\n skeleton: { display: \"inline\", width: \"14em\", height: \"2.5em\" },\n attributes: [\"value\", \"name\", \"parameter\", \"placeholder\", \"size\", \"fluid\", \"disabled\", \"readonly\", \"required\"],\n formControl: true\n },\n \"ui-icons\": {\n folder: \"ui-icon\",\n skeleton: { display: \"inline\", width: \"1em\", height: \"1em\" },\n attributes: [\"size\", \"label\", \"disabled\", \"loading\", \"padding\", \"appearance\", \"inverted\"]\n },\n \"ui-image\": {\n folder: \"ui-image\",\n skeleton: { width: \"10em\", parts: [{ shape: \"image\", ratio: \"square\" }] },\n attributes: [\n \"size\",\n \"avatar\",\n \"appearance\",\n \"background\",\n \"align\",\n \"disabled\",\n \"fluid\",\n \"inline\",\n \"floated\",\n \"spacing\",\n \"vertical-align\",\n \"src\",\n \"caption\",\n \"alt\",\n \"width\",\n \"height\",\n \"aspect-ratio\",\n \"crop\",\n \"loading\",\n \"zoom\",\n \"link\"\n ]\n },\n \"ui-images\": {\n folder: \"ui-image\",\n attributes: [\"size\", \"avatar\", \"appearance\", \"align\", \"disabled\", \"fluid\", \"vertical-align\"]\n },\n \"ui-include\": {\n folder: \"ui-include\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 4 }] },\n attributes: [\"source\", \"load\", \"selector\", \"page-styles\"]\n },\n \"ui-input\": {\n folder: \"ui-input\",\n skeleton: { display: \"inline\", width: \"14em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"appearance\",\n \"fluid\",\n \"loading\",\n \"disabled\",\n \"inverted\",\n \"readonly\",\n \"icon-position\",\n \"labeled\",\n \"action\",\n \"icon\",\n \"label\",\n \"type\",\n \"value\",\n \"name\",\n \"parameter\",\n \"placeholder\",\n \"required\",\n \"pattern\",\n \"min\",\n \"max\",\n \"step\",\n \"minlength\",\n \"maxlength\",\n \"multiple\",\n \"accept\",\n \"autocomplete\",\n \"inputmode\",\n \"rules\"\n ],\n formControl: true\n },\n \"ui-item\": {\n folder: \"ui-item\",\n attributes: [\n \"color\",\n \"position\",\n \"value\",\n \"label\",\n \"description\",\n \"icon\",\n \"image\",\n \"flag\",\n \"link\",\n \"target\",\n \"appearance\",\n \"disabled\",\n \"selected\",\n \"padding\",\n \"kind\"\n ]\n },\n \"ui-items\": {\n folder: \"ui-items\",\n skeleton: {\n parts: [\n { shape: \"header\", image: true },\n { shape: \"paragraph\", lines: 3 }\n ]\n },\n attributes: [\"size\", \"divided\", \"spacing\", \"appearance\", \"unstackable\", \"stack-with\", \"inverted\", \"disabled\"]\n },\n \"ui-json\": { folder: \"ui-json\", attributes: [\"source\", \"load\"] },\n \"ui-keys\": { folder: \"ui-keys\", attributes: [\"shortcut\", \"platform\"] },\n \"ui-label\": {\n folder: \"ui-label\",\n skeleton: { display: \"inline\", width: \"4em\", height: \"1.8em\" },\n attributes: [\n \"size\",\n \"color\",\n \"image\",\n \"tag\",\n \"corner\",\n \"ribbon\",\n \"pointing\",\n \"floating\",\n \"appearance\",\n \"attach-to\",\n \"direction\",\n \"empty\",\n \"fluid\",\n \"align\",\n \"prompt\",\n \"selected\",\n \"disabled\",\n \"inverted\",\n \"icon\",\n \"detail\",\n \"removable\",\n \"link\",\n \"target\"\n ]\n },\n \"ui-labels\": {\n folder: \"ui-label\",\n attributes: [\"size\", \"color\", \"tag\", \"appearance\", \"direction\", \"image\", \"fluid\", \"align\", \"inverted\", \"disabled\"]\n },\n \"ui-link\": { folder: \"ui-text\", attributes: [\"size\", \"color\", \"inverted\", \"disabled\"] },\n \"ui-list\": {\n folder: \"ui-list\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 3 }] },\n attributes: [\n \"size\",\n \"bulleted\",\n \"ordered\",\n \"suffixed\",\n \"appearance\",\n \"selection\",\n \"hover\",\n \"direction\",\n \"divided\",\n \"celled\",\n \"spacing\",\n \"padding\",\n \"inverted\",\n \"vertical-align\"\n ]\n },\n \"ui-loader\": {\n folder: \"ui-loader\",\n attributes: [\n \"size\",\n \"color\",\n \"speed\",\n \"disabled\",\n \"text\",\n \"inline\",\n \"align\",\n \"indeterminate\",\n \"double\",\n \"elastic\",\n \"inverted\"\n ]\n },\n \"ui-markdown\": {\n folder: \"ui-markdown\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\", lines: 4 }] },\n attributes: [\"source\", \"load\", \"size\", \"breaks\", \"heading-offset\", \"skip-title\", \"editable\", \"sanitized\"]\n },\n \"ui-menu\": {\n folder: \"ui-menu\",\n skeleton: { height: \"3em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"name\",\n \"value\",\n \"choose\",\n \"position\",\n \"direction\",\n \"pagination\",\n \"icon\",\n \"labeled\",\n \"fluid\",\n \"stackable\",\n \"centered\",\n \"wrapping\",\n \"wrap\",\n \"inverted\",\n \"padding\",\n \"attach-to\",\n \"fixed\",\n \"align\",\n \"equal\",\n \"items\",\n \"shrinkable\",\n \"ticks\",\n \"icon-column\",\n \"tabs\",\n \"interactive\"\n ],\n formControl: true\n },\n \"ui-message\": {\n folder: \"ui-message\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"line\", length: \"long\" }] },\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"floating\",\n \"padding\",\n \"centered\",\n \"inverted\",\n \"attach-to\",\n \"align\",\n \"icon\",\n \"heading\",\n \"dismissible\"\n ]\n },\n \"ui-meta\": { folder: \"ui-parts\", attributes: [] },\n \"ui-modal\": {\n folder: \"ui-modal\",\n attributes: [\n \"size\",\n \"appearance\",\n \"inverted\",\n \"fullscreen\",\n \"overlay\",\n \"scrolling\",\n \"vertical-align\",\n \"closable\",\n \"closedby\",\n \"heading\",\n \"content\"\n ]\n },\n \"ui-nag\": {\n folder: \"ui-nag\",\n attributes: [\n \"size\",\n \"color\",\n \"inverted\",\n \"fixed\",\n \"overlay\",\n \"bottom\",\n \"closable\",\n \"key\",\n \"value\",\n \"storage\",\n \"expires\",\n \"persistent\",\n \"display-time\",\n \"path\",\n \"domain\",\n \"secure\",\n \"samesite\"\n ]\n },\n \"ui-or\": { folder: \"ui-button\", attributes: [\"label\"] },\n \"ui-page\": {\n folder: \"ui-page\",\n attributes: [\n \"display\",\n \"loading\",\n \"timeout\",\n \"theme\",\n \"size\",\n \"stack-with\",\n \"app\",\n \"width\",\n \"height\",\n \"icons\",\n \"emoji\",\n \"defaults\",\n \"assets\",\n \"fixed\",\n \"pure\"\n ]\n },\n \"ui-page-layout\": {\n folder: \"ui-page-layout\",\n skeleton: { width: \"24em\", parts: [{ shape: \"paragraph\", lines: 4 }] },\n attributes: [\"drawer\"]\n },\n \"ui-panel\": {\n folder: \"ui-panel\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\" }] },\n attributes: [\n \"label\",\n \"hint\",\n \"level\",\n \"parent\",\n \"icon\",\n \"badge\",\n \"description\",\n \"hide-empty\",\n \"collapsible\",\n \"open\",\n \"fold-icon\",\n \"sticky\",\n \"offset\",\n \"color\",\n \"size\",\n \"dividing\",\n \"block\",\n \"appearance\",\n \"padding\",\n \"attach-to\",\n \"scrolling\",\n \"height\",\n \"align\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"source\",\n \"selector\"\n ]\n },\n \"ui-placeholder\": { folder: \"ui-placeholder\", attributes: [\"fluid\", \"inverted\"] },\n \"ui-placeholder-header\": { folder: \"ui-placeholder\", attributes: [\"image\"] },\n \"ui-placeholder-image\": { folder: \"ui-placeholder\", attributes: [\"square\", \"rectangular\"] },\n \"ui-placeholder-line\": { folder: \"ui-placeholder\", attributes: [\"length\"] },\n \"ui-placeholder-paragraph\": { folder: \"ui-placeholder\", attributes: [] },\n \"ui-popup\": {\n folder: \"ui-popup\",\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"fixed\",\n \"flowing\",\n \"fluid\",\n \"inverted\",\n \"loading\",\n \"wide\",\n \"position\",\n \"open-on\",\n \"for\",\n \"heading\",\n \"label\",\n \"hoverable\",\n \"show-delay\",\n \"hide-delay\",\n \"target\",\n \"at\"\n ]\n },\n \"ui-progress\": {\n folder: \"ui-progress\",\n skeleton: { height: \"2em\" },\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"speed\",\n \"active\",\n \"appearance\",\n \"disabled\",\n \"indicating\",\n \"inverted\",\n \"align\",\n \"indeterminate\",\n \"attach-to\",\n \"value\",\n \"total\",\n \"percent\",\n \"precision\",\n \"bar-text\",\n \"bar-colors\",\n \"label\"\n ]\n },\n \"ui-property\": {\n folder: \"ui-property-editor\",\n skeleton: { height: \"4.5em\" },\n attributes: [\n \"name\",\n \"as\",\n \"default\",\n \"options\",\n \"label\",\n \"description\",\n \"unsaved\",\n \"hint\",\n \"output\",\n \"error\",\n \"state\",\n \"apply\",\n \"mixed\",\n \"rules\",\n \"inline\",\n \"required\",\n \"readonly\",\n \"disabled\",\n \"width\"\n ]\n },\n \"ui-property-editor\": {\n folder: \"ui-property-editor\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\", lines: 3 }] },\n attributes: [\n \"schema\",\n \"value\",\n \"source\",\n \"selector\",\n \"readonly\",\n \"compact\",\n \"columns\",\n \"origins\",\n \"writer\",\n \"show-defaults\",\n \"unsaved\",\n \"output\",\n \"error\",\n \"fluid\",\n \"size\",\n \"state\",\n \"equal-width\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"unstackable\",\n \"stack-with\",\n \"validate\",\n \"apply\",\n \"rules\",\n \"error-focus\",\n \"prevent-leaving\",\n \"debug\",\n \"label\",\n \"hint\",\n \"level\",\n \"parent\",\n \"icon\",\n \"badge\",\n \"description\",\n \"hide-empty\",\n \"collapsible\",\n \"open\",\n \"fold-icon\",\n \"sticky\",\n \"offset\",\n \"color\",\n \"dividing\",\n \"block\",\n \"appearance\",\n \"padding\",\n \"attach-to\",\n \"scrolling\",\n \"height\",\n \"align\"\n ]\n },\n \"ui-property-group\": {\n folder: \"ui-property-editor\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\" }] },\n attributes: [\n \"selector\",\n \"readonly\",\n \"state\",\n \"output\",\n \"error\",\n \"columns\",\n \"flags\",\n \"label\",\n \"hint\",\n \"level\",\n \"parent\",\n \"icon\",\n \"badge\",\n \"description\",\n \"hide-empty\",\n \"collapsible\",\n \"open\",\n \"fold-icon\",\n \"sticky\",\n \"offset\",\n \"color\",\n \"size\",\n \"dividing\",\n \"block\",\n \"appearance\",\n \"padding\",\n \"attach-to\",\n \"scrolling\",\n \"height\",\n \"align\",\n \"inverted\",\n \"loading\",\n \"disabled\"\n ]\n },\n \"ui-pushable\": { folder: \"ui-sidebar\", attributes: [] },\n \"ui-pusher\": { folder: \"ui-sidebar\", attributes: [] },\n \"ui-quote\": { folder: \"ui-quote\", attributes: [\"inline\", \"cite\"] },\n \"ui-radio\": {\n folder: \"ui-checkbox\",\n skeleton: { display: \"inline\", width: \"6em\", height: \"1.25em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"padding\",\n \"invisible\",\n \"align\",\n \"disabled\",\n \"readonly\",\n \"inverted\",\n \"selected\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"label\"\n ],\n formControl: true\n },\n \"ui-rail\": { folder: \"ui-rail\", attributes: [\"size\", \"position\", \"internal\", \"dividing\", \"attach-to\", \"close\"] },\n \"ui-rating\": {\n folder: \"ui-rating\",\n skeleton: { display: \"inline\", width: \"5.5em\", height: \"1.1em\" },\n attributes: [\n \"size\",\n \"color\",\n \"disabled\",\n \"readonly\",\n \"icon\",\n \"max-rating\",\n \"value\",\n \"clearable\",\n \"name\",\n \"parameter\",\n \"required\"\n ],\n formControl: true\n },\n \"ui-repeat\": { folder: \"ui-form\", attributes: [\"items\", \"name\"] },\n \"ui-reveal\": {\n folder: \"ui-reveal\",\n attributes: [\"size\", \"fade\", \"move\", \"rotate\", \"slide\", \"instant\", \"clip\", \"active\", \"disabled\"]\n },\n \"ui-root\": {\n folder: \"ui-root\",\n attributes: [\n \"display\",\n \"loading\",\n \"timeout\",\n \"theme\",\n \"size\",\n \"stack-with\",\n \"app\",\n \"width\",\n \"height\",\n \"icons\",\n \"emoji\",\n \"defaults\",\n \"assets\",\n \"fixed\",\n \"pure\"\n ]\n },\n \"ui-row\": {\n folder: \"ui-grid\",\n attributes: [\n \"header\",\n \"footer\",\n \"color\",\n \"columns\",\n \"equal-width\",\n \"divided\",\n \"spacing\",\n \"centered\",\n \"stretched\",\n \"stackable\",\n \"doubling\",\n \"only\",\n \"reversed\",\n \"align\",\n \"vertical-align\"\n ]\n },\n \"ui-search\": {\n folder: \"ui-search\",\n skeleton: { display: \"inline\", width: \"15em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"category\",\n \"direction\",\n \"fluid\",\n \"scrolling\",\n \"resizable\",\n \"length\",\n \"align\",\n \"loading\",\n \"disabled\",\n \"readonly\",\n \"open\",\n \"placeholder\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"url\",\n \"min-characters\",\n \"max-results\",\n \"search-delay\",\n \"delay\",\n \"full-text-search\",\n \"search-fields\",\n \"ignore-diacritics\",\n \"highlight-matches\",\n \"select-first-result\",\n \"show-no-results\",\n \"source\"\n ],\n formControl: true\n },\n \"ui-section\": {\n folder: \"ui-section\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\" }] },\n attributes: [\n \"label\",\n \"hint\",\n \"level\",\n \"parent\",\n \"icon\",\n \"badge\",\n \"description\",\n \"hide-empty\",\n \"collapsible\",\n \"open\",\n \"fold-icon\",\n \"sticky\",\n \"offset\",\n \"color\",\n \"size\",\n \"dividing\",\n \"block\",\n \"appearance\",\n \"padding\",\n \"attach-to\",\n \"scrolling\",\n \"height\",\n \"align\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"source\",\n \"selector\"\n ]\n },\n \"ui-sections\": { folder: \"ui-section\", attributes: [\"collapsing\"] },\n \"ui-segment\": {\n folder: \"ui-segment\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\" }] },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"padding\",\n \"clearing\",\n \"align\",\n \"attach-to\",\n \"seamless\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"scrolling\",\n \"resizable\"\n ]\n },\n \"ui-segments\": {\n folder: \"ui-segment\",\n attributes: [\n \"size\",\n \"direction\",\n \"equal-width\",\n \"wrapping\",\n \"stackable\",\n \"appearance\",\n \"padding\",\n \"inverted\",\n \"loading\",\n \"disabled\"\n ]\n },\n \"ui-select\": {\n folder: \"ui-select\",\n skeleton: { display: \"inline\", width: \"12em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"state\",\n \"fluid\",\n \"padding\",\n \"inverted\",\n \"disabled\",\n \"readonly\",\n \"multiple\",\n \"placeholder\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"options\"\n ],\n formControl: true\n },\n \"ui-shape\": { folder: \"ui-shape\", attributes: [\"cube\", \"text\", \"active-index\", \"direction\", \"duration\", \"flip-on\"] },\n \"ui-side\": { folder: \"ui-shape\", attributes: [] },\n \"ui-sidebar\": {\n folder: \"ui-sidebar\",\n attributes: [\"position\", \"width\", \"transition\", \"inverted\", \"blurring\", \"persistent\", \"closedby\"]\n },\n \"ui-sides\": {\n folder: \"ui-sides\",\n skeleton: { display: \"inline\", width: \"8em\", height: \"4.5em\" },\n attributes: [\"size\", \"value\", \"sides\", \"disabled\", \"readonly\", \"name\", \"parameter\", \"required\"],\n formControl: true\n },\n \"ui-site-breadcrumbs\": { folder: \"ui-site-breadcrumbs\", attributes: [\"pages\", \"current\", \"label\"] },\n \"ui-site-nav\": {\n folder: \"ui-site-nav\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 4 }] },\n attributes: [\"pages\", \"current\", \"label\", \"appearance\", \"collapsed\", \"remember\"]\n },\n \"ui-site-nav-button\": {\n folder: \"ui-site-nav-button\",\n skeleton: { display: \"inline\", width: \"2.5em\", height: \"2.5em\" },\n attributes: [\n \"color\",\n \"position\",\n \"value\",\n \"label\",\n \"description\",\n \"icon\",\n \"image\",\n \"flag\",\n \"link\",\n \"target\",\n \"appearance\",\n \"disabled\",\n \"selected\",\n \"padding\",\n \"kind\"\n ]\n },\n \"ui-site-tabs\": { folder: \"ui-site-tabs\", attributes: [\"pages\", \"current\", \"label\"] },\n \"ui-slider\": {\n folder: \"ui-slider\",\n skeleton: { width: \"16em\", height: \"1.25em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"disabled\",\n \"readonly\",\n \"hover\",\n \"inverted\",\n \"labeled\",\n \"range\",\n \"smooth\",\n \"ticked\",\n \"direction\",\n \"align\",\n \"min\",\n \"max\",\n \"step\",\n \"tick-step\",\n \"value\",\n \"end\",\n \"step-labels\",\n \"name\",\n \"parameter\",\n \"required\"\n ],\n formControl: true\n },\n \"ui-space\": { folder: \"ui-space\", attributes: [\"inline\", \"width\", \"height\", \"fluid\", \"grow\", \"shrink\"] },\n \"ui-split-panel\": { folder: \"ui-split-panel\", attributes: [\"columns\", \"rows\", \"resizable\", \"grows\", \"min-size\"] },\n \"ui-stack\": {\n folder: \"ui-stack\",\n attributes: [\"direction\", \"wrap\", \"spacing\", \"align\", \"justify\", \"fluid\", \"stackable\"]\n },\n \"ui-statistic\": {\n folder: \"ui-statistic\",\n skeleton: { display: \"inline\", width: \"6em\", height: \"4em\" },\n attributes: [\"size\", \"color\", \"direction\", \"inverted\", \"fluid\", \"value\", \"text\", \"label\"]\n },\n \"ui-statistics\": {\n folder: \"ui-statistic\",\n attributes: [\"size\", \"color\", \"direction\", \"inverted\", \"stackable\", \"stack-with\", \"equal\", \"widths\"]\n },\n \"ui-step\": {\n folder: \"ui-step\",\n attributes: [\n \"color\",\n \"selected\",\n \"completed\",\n \"disabled\",\n \"link\",\n \"target\",\n \"appearance\",\n \"icon\",\n \"heading\",\n \"description\",\n \"parent\"\n ]\n },\n \"ui-steps\": {\n folder: \"ui-step\",\n skeleton: { height: \"5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"ordered\",\n \"direction\",\n \"appearance\",\n \"fluid\",\n \"equal\",\n \"attach-to\",\n \"unstackable\",\n \"stackable\",\n \"stack-with\",\n \"widths\",\n \"inverted\"\n ]\n },\n \"ui-sticky\": { folder: \"ui-sticky\", attributes: [\"offset\", \"bottom-offset\", \"pushing\"] },\n \"ui-submenu\": {\n folder: \"ui-menu\",\n skeleton: { display: \"inline\", width: \"8em\", height: \"2.5em\" },\n attributes: [\"label\", \"icon\", \"menu\", \"flyout-label\", \"value\", \"split\", \"disabled\"]\n },\n \"ui-summary\": { folder: \"ui-parts\", attributes: [] },\n \"ui-tab\": {\n folder: \"ui-tab\",\n attributes: [\n \"value\",\n \"label\",\n \"icon\",\n \"selected\",\n \"active\",\n \"disabled\",\n \"loading\",\n \"lazy\",\n \"attach-to\",\n \"parent\",\n \"appearance\",\n \"inverted\"\n ]\n },\n \"ui-table\": {\n folder: \"ui-table\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"long\" },\n { shape: \"paragraph\", lines: 4 }\n ]\n },\n attributes: [\n \"size\",\n \"color\",\n \"celled\",\n \"collapsing\",\n \"definition\",\n \"fixed\",\n \"inverted\",\n \"resizable\",\n \"selectable\",\n \"editable\",\n \"single-line\",\n \"sortable\",\n \"appearance\",\n \"unstackable\",\n \"padding\",\n \"attach-to\",\n \"stackable\",\n \"stack-by\",\n \"scrolling\",\n \"overflowing\",\n \"stuck\",\n \"columns\",\n \"align\",\n \"vertical-align\",\n \"sort-column\",\n \"sort-direction\",\n \"client-sort\",\n \"column-defs\",\n \"caption\",\n \"rows\"\n ]\n },\n \"ui-tabs\": {\n folder: \"ui-tab\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"medium\" },\n { shape: \"paragraph\", lines: 3 }\n ]\n },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"inverted\",\n \"direction\",\n \"fluid\",\n \"padding\",\n \"align\",\n \"equal\",\n \"attach-to\",\n \"value\",\n \"activation\",\n \"history\",\n \"name\",\n \"parameter\"\n ],\n formControl: true\n },\n \"ui-term\": { folder: \"ui-terms\", attributes: [\"label\", \"value\"] },\n \"ui-terms\": { folder: \"ui-terms\", attributes: [\"direction\", \"spacing\"] },\n \"ui-text\": {\n folder: \"ui-text\",\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"inverted\",\n \"paragraph\",\n \"bold\",\n \"heavy\",\n \"italic\",\n \"underline\",\n \"strikethrough\",\n \"highlight\",\n \"subscript\",\n \"superscript\",\n \"all-caps\",\n \"title-caps\",\n \"headline\",\n \"subhead\",\n \"serif\",\n \"sans-serif\",\n \"typewriter\",\n \"code\",\n \"disabled\"\n ]\n },\n \"ui-textarea\": {\n folder: \"ui-input\",\n skeleton: { width: \"20em\", height: \"6em\" },\n attributes: [\n \"size\",\n \"state\",\n \"appearance\",\n \"fluid\",\n \"disabled\",\n \"inverted\",\n \"readonly\",\n \"value\",\n \"name\",\n \"parameter\",\n \"placeholder\",\n \"required\",\n \"minlength\",\n \"maxlength\",\n \"rows\",\n \"grow\",\n \"max-rows\",\n \"send-on-enter\",\n \"autocomplete\",\n \"rules\"\n ],\n formControl: true\n },\n \"ui-theme-editor\": {\n folder: \"ui-theme-editor\",\n skeleton: { height: \"30em\" },\n attributes: [\"base\", \"value\", \"pages\"]\n },\n \"ui-theme-menu\": {\n folder: \"ui-theme-menu\",\n skeleton: { display: \"inline\", width: \"5em\", height: \"2.25em\" },\n attributes: [\"show\", \"size\", \"inverted\", \"compact\", \"bench\", \"bench-page\"]\n },\n \"ui-theme-token\": { folder: \"ui-theme-editor\", skeleton: { height: \"2em\" }, attributes: [\"row\"] },\n \"ui-title\": { folder: \"ui-parts\", attributes: [\"link\"] },\n \"ui-toast\": {\n folder: \"ui-toast\",\n attributes: [\n \"type\",\n \"color\",\n \"inverted\",\n \"heading\",\n \"message\",\n \"icon\",\n \"closable\",\n \"close-on-click\",\n \"display-time\",\n \"progress\",\n \"progress-up\",\n \"pause-on-hover\",\n \"compact\",\n \"actions\"\n ]\n },\n \"ui-toc\": {\n folder: \"ui-toc\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"short\" },\n { shape: \"paragraph\", lines: 6 }\n ]\n },\n attributes: [\"for\", \"scroller\", \"heading\", \"size\", \"expanded\"]\n },\n \"ui-toolbar\": {\n folder: \"ui-toolbar\",\n skeleton: { display: \"inline\", width: \"24em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"name\",\n \"value\",\n \"choose\",\n \"position\",\n \"direction\",\n \"pagination\",\n \"icon\",\n \"labeled\",\n \"fluid\",\n \"stackable\",\n \"centered\",\n \"wrapping\",\n \"wrap\",\n \"inverted\",\n \"padding\",\n \"attach-to\",\n \"fixed\",\n \"align\",\n \"equal\",\n \"items\",\n \"shrinkable\",\n \"ticks\",\n \"icon-column\",\n \"tabs\",\n \"interactive\",\n \"show-keys\",\n \"scroll-first\",\n \"max-visible\",\n \"remember\",\n \"all-items-icon\",\n \"all-items-at-end\"\n ],\n formControl: true\n },\n \"ui-transition\": {\n folder: \"ui-transition\",\n attributes: [\n \"duration\",\n \"interrupt\",\n \"allow-repeats\",\n \"color\",\n \"inline\",\n \"inverted\",\n \"looping\",\n \"pulsating\",\n \"disabled\"\n ]\n },\n \"ui-tree\": {\n folder: \"ui-tree\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 3 }] },\n attributes: [\"choose\", \"filter\", \"label\", \"appearance\", \"column-titles\", \"sticky-path\"]\n },\n \"ui-tree-diagram\": {\n folder: \"ui-tree-diagram\",\n skeleton: { height: \"12em\" },\n attributes: [\"tree\", \"direction\", \"foldable\", \"clickable\"]\n },\n \"ui-tree-item\": {\n folder: \"ui-tree\",\n skeleton: { parts: [{ shape: \"line\" }] },\n attributes: [\"label\", \"which\", \"icon\", \"value\", \"open\", \"selected\", \"expandable\", \"group\", \"band\", \"count\", \"badge\"]\n },\n \"ui-tree-node\": {\n folder: \"ui-tree-diagram\",\n attributes: [\"label\", \"detail\", \"edge-label\", \"hover-text\", \"color\", \"kind\", \"folded\"]\n },\n \"ui-value\": { folder: \"ui-parts\", attributes: [\"text\"] },\n \"ui-video\": {\n folder: \"ui-video\",\n attributes: [\"src\", \"autoplay\", \"muted\", \"loop\", \"poster\", \"controls\", \"captions\", \"ratio\"]\n },\n \"ui-visibility\": { folder: \"ui-visibility\", attributes: [\"once\", \"continuous\", \"offset\", \"type\", \"duration\"] },\n \"ui-zoom\": { folder: \"ui-zoom\", attributes: [\"max-width\", \"max-height\", \"shrink\", \"open\", \"src\", \"alt\"] }\n}\n","import { E, UI } from \"spell/ui/core\"\nimport { ComponentPacks } from \"spell/ui/components/ui-components/ComponentPacks\"\nimport { ROOT_CATALOG } from \"./UIRoot.catalog\"\nimport type { RootCatalogEntry } from \"./UIRoot.types\"\n\n/**\n * Every family's barrel, loaded on demand (`import.meta.glob`, lazy): `../ui-card/index.ts` => `import()` of it.\n * - A LITERAL glob, so each becomes a literal `import()`:\n * the lib build reuses each family's own entry chunk (`ui-card.js`),\n * and the docs' single-file bundle (`epic/src/tools/bundle-spell-ui.js`) inlines them.\n * - Relative on purpose, the one `../` in `ui`'s components:\n * Vite resolves a glob's literal pattern, not an alias,\n * and its keys (`../ui-card/index.ts`) are what `load()` looks up.\n * - The root's own folder is left out: it is loaded already.\n * - ONLY the library's families: the docs site's bundle adds the doc-only `<ui-docs-*>` ones\n * (`src/docs-components/`), through `add()` and `DocsFamilies`.\n * - Why: a glob of them HERE made each a dynamic entry of the lib build, importing the core and other families.\n * Rolldown then moved core's modules out of `core.js`, into shared chunks every page loads\n * (epic `wwod-spell-ui`, I12; `yarn measure`'s `coreOutsideCore`).\n * - Above the class: a module-level call, made once as the module loads.\n */\nconst FAMILIES = import.meta.glob([\"../*/index.ts\", \"!../ui-root/index.ts\"])\n\n// A page with a root imports `ui-toast` when it first shows a toast; then its provider registers, after `UI.load()`\nif (E.isBrowser()) {\n void UI.load().then((ui) => ui.toasts.loadFamilyWith(() => RootLoader.load(\"ui-toast\").then(() => UI.load())))\n}\n\n/**\n * The languages Spell UI ships, by language code: each a lazy chunk of its whole dictionary.\n * - `<ui-root lang=\"es\">` (or the document's `lang`) loads it, and names every tag in it (`useLanguage()`).\n */\nconst LANGUAGES: Readonly<Record<string, () => Promise<E.Dictionary>>> = {\n es: () => import(\"spell/ui/components/components.es\").then(({ es }) => es)\n}\n\n/****************\n * ### `RootLoader`\n * Tag => family => `import()`, once per family for the whole page (every root shares the loads).\n * - Which family defines a tag comes from `ROOT_CATALOG` (generated from the vocabularies, `yarn gen:root`),\n * never from guessing at the tag's name.\n * - The catalog knows the `<ui-docs-*>` tags too:\n * they load only on a page whose bundle `add()`ed their families (the docs site's),\n * and fail like any unknown family elsewhere.\n * - Component packs' tags (`<ui-components source>`) aren't imported here:\n * a pack defines them all as its script registers it (`ComponentPacks`);\n * this only answers for them (`entryOf()`, `undefinedTags()`).\n * - A page language's tags load the same way (`<es-boton>` => `ui-button`'s family),\n * once a root has picked the language (`useLanguage()`).\n * - Static: the loads are page-wide, shared by every root (and the docs site's router).\n ****************/\nexport class RootLoader {\n /** Folder => its import, started once. Page-wide, never reset: a family defines its tags once per page. */\n private static readonly loads = new E.LoadOnce<string, void>()\n\n /** Folder => importer of its barrel, for the families a bundle added (`add()`). Page-wide. */\n private static readonly added = new Map<string, () => Promise<unknown>>()\n\n /** A page language's tag => the canonical tag it stands for (`es-boton` => `ui-button`). Page-wide. */\n private static readonly translatedTags = new Map<string, string>()\n\n /** Language code => its load, started once (`useLanguage()`). Page-wide. */\n private static readonly languages = new E.LoadOnce<string, void>()\n\n ////////////////\n // ## Tags\n ////////////////\n\n /** The folder (family) that defines `tag`; `undefined` for a tag no family defines. */\n static folderFor(tag: string): string | undefined {\n return RootLoader.catalogEntry(tag)?.folder\n }\n\n /**\n * What a root knows about `tag` before it's defined: Spell UI's catalog (a page language's tag too),\n * else a registered pack's.\n */\n static entryOf(tag: string): RootCatalogEntry | undefined {\n return RootLoader.catalogEntry(tag) ?? ComponentPacks.entryOf(tag)\n }\n\n /**\n * The distinct undefined tags under `root` that a root loads:\n * every `ui-*` one, a registered pack's, and those `alsoLoads` says yes to (a root's own: `UIRoot.ownTagLoader()`).\n */\n static undefinedTags(root: ParentNode, alsoLoads?: (tag: string) => boolean): Set<string> {\n const tags = new Set<string>()\n // not defined, or defined early and pending: its family hasn't loaded either way\n for (const { localName } of root.querySelectorAll(E.DOMElement.notAttached)) {\n const isOurs = localName.startsWith(TAG_PREFIX) || RootLoader.translatedTags.has(localName)\n if (isOurs || ComponentPacks.owns(localName) || alsoLoads?.(localName)) {\n tags.add(localName)\n }\n }\n return tags\n }\n\n /**\n * Define every tag of Spell UI's catalog NOW, before its family loads (`E.DOMElement.defineEarly()`):\n * pending elements, `:state(pending)`, attached as each family loads.\n * - So each is one of ours from the start, and keeps a function or object given to it (`on-ui-changed={f}`)\n * with no page-wide patch (`<ui-root pure>`; epic `solid-17`, P7).\n * - What the platform fixes as a tag is defined comes from the catalog: the attributes it observes\n * (its own, the shared ones, `hidden`), and whether it's a form control.\n * - Skips a tag defined already, one with no `attributes` in the catalog, and a server (no `customElements`).\n * - SIDE EFFECT: the root's family calls it once, as it loads.\n */\n static defineEarly(): void {\n if (typeof customElements === \"undefined\") return\n const shared = [...E.SharedVocabulary.attributeNames, HIDDEN]\n for (const [tag, { attributes, formControl }] of Object.entries(ROOT_CATALOG)) {\n if (!attributes) continue\n E.DOMElement.defineEarly(tag, {\n attributes: [...new Set([...attributes, ...shared])],\n isAFormControl: !!formControl\n })\n }\n }\n\n ////////////////\n // ## Loading\n ////////////////\n\n /**\n * Import the family that defines `tag`, once; `undefined` when no family does (a pack's tag: its pack defines it).\n * - The promise rejects if the import fails, and stays rejected: a failed tag stays failed.\n */\n static loadTag(tag: string): Promise<void> | undefined {\n const folder = RootLoader.folderFor(tag)\n return folder === undefined ? undefined : RootLoader.load(folder)\n }\n\n /**\n * Import `folder`'s family (which defines its tags), once.\n * - Rejects if it can't be imported, or no glob or `add()` knows the folder.\n */\n static load(folder: string): Promise<void> {\n return RootLoader.loads.get(folder, () => {\n const importer = FAMILIES[`../${folder}/index.ts`] ?? RootLoader.added.get(folder)\n return importer ? importer().then(() => undefined) : Promise.reject(RootLoader.noFamily(folder))\n })\n }\n\n ////////////////\n // ## Languages\n ////////////////\n\n /** Does Spell UI ship language `lang` (`es`, or `es-MX`'s `es`)? English needs nothing: it's built in. */\n static hasLanguage(lang: string): boolean {\n return Object.hasOwn(LANGUAGES, RootLoader.languageOf(lang))\n }\n\n /**\n * Make `lang` the page's language, once: load its dictionary, define every component in it,\n * load its texts and switch the texts to it.\n * - `useLanguage(\"es\")`: `<es-boton>` works, and `UI.i18n` says \"Cerrar\".\n * - The prefix is the language's code (`es`).\n * - The work is `UI.vocabulary.defineComponents()` and `UI.i18n.registerDictionary()`.\n * - `UI.i18n.locale` becomes `lang` as written (`es-MX`).\n * - Resolves at once for a language Spell UI doesn't ship (English included).\n * - The promise rejects if the dictionary can't be loaded, and stays rejected.\n */\n static useLanguage(lang: string): Promise<void> {\n const code = RootLoader.languageOf(lang)\n const loadDictionary = Object.hasOwn(LANGUAGES, code) ? LANGUAGES[code] : undefined\n if (!loadDictionary) return Promise.resolve()\n return RootLoader.languages.get(code, async () => {\n const [dictionary, ui] = await Promise.all([loadDictionary(), UI.load()])\n for (const [canonical, name] of Object.entries(dictionary.tags ?? {})) {\n RootLoader.translatedTags.set(`${code}-${name}`, canonical)\n }\n ui.vocabulary.defineComponents({ prefix: code, dictionary })\n ui.i18n.registerDictionary(dictionary)\n ui.i18n.locale = lang\n })\n }\n\n ////////////////\n // ## Adding\n ////////////////\n\n /**\n * Let roots load more families: `barrels`, a literal `import.meta.glob()` of family barrels\n * (`\".../ui-docs-api/index.ts\" => import()`), each keyed by its folder.\n * - Call it BEFORE a root needs one: a tag whose family failed to load stays failed.\n */\n static add(barrels: Record<string, () => Promise<unknown>>): void {\n for (const [path, importer] of Object.entries(barrels)) {\n const folder = BARREL.exec(path)?.[1]\n if (folder) RootLoader.added.set(folder, importer)\n }\n }\n\n ////////////////\n // ## Internal\n ////////////////\n\n /** Spell UI's catalog entry for `tag`, or for the canonical tag a page language's tag stands for. */\n private static catalogEntry(tag: string): RootCatalogEntry | undefined {\n const canonical = RootLoader.translatedTags.get(tag) ?? tag\n return Object.hasOwn(ROOT_CATALOG, canonical) ? ROOT_CATALOG[canonical] : undefined\n }\n\n /** `es-MX` => `es`: the language, without its region. */\n private static languageOf(lang: string): string {\n return lang.split(\"-\")[0]!.toLowerCase()\n }\n\n /** The error for a folder no glob or `add()` knows. */\n private static noFamily(folder: string): Error {\n return new Error(`RootLoader.load(): no family \"${folder}\"; add() its barrel before a root needs its tags`)\n }\n}\n\n/** A family barrel's path: its folder. */\nconst BARREL = /([\\w-]+)\\/index\\.ts$/\n\n/**\n * Prefix of the catalog's tags:\n * any other undefined tag (an app's own element) is not ours,\n * unless a registered pack's prefix starts it (`ComponentPacks.owns()`).\n */\nconst TAG_PREFIX = \"ui-\"\n\n/** The platform's `hidden`, which every tag observes as `visible` turned round (`DOMElement`, \"Shown or hidden\"). */\nconst HIDDEN = \"hidden\"\n","// oxlint-disable-next-line spell-ui/no-solid-effect -- a static helper drawing plain DOM: no members to decorate\nimport { createRenderEffect, type Accessor } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport type { E } from \"spell/ui/core\"\nimport { loaderVocabulary } from \"spell/ui/components/ui-loader/UILoader.en\"\n\n/****************\n * ### `LoaderMessage`\n * What `<ui-root loading=\"...\">` shows while its components load: a `<ui-loader>` with the message.\n * `UIRoot.Loading`, so an app swaps the look with one assignment or a subclass (`UIRoot.Loading = MyLoading`).\n * - The `ui-loader` family is imported STATICALLY, by the root's barrel (`index.ts`):\n * one of the two families a root never loads on demand (the other is `ui-placeholder`, for skeletons).\n * - Not here: this file is also loaded by the static server render (`spell/ui/static`),\n * where defining an element throws.\n * - Here, its vocabulary only: pure data.\n * - Built with the DOM, not JSX: Solid's JSX has no types for our tags.\n * - Static: an app swaps the CLASS (`UIRoot.Loading`), and it keeps no state of its own.\n ****************/\nexport class LoaderMessage {\n /** The loader, `part` set to the root's `loading` part name, its text following `message`. */\n static render(part: string, message: Accessor<string>): JSX.Element {\n const loader = document.createElement(loaderVocabulary.tag)\n for (const name of LOADER_SWITCHES) loader.setAttribute(name, \"\")\n loader.setAttribute(ALIGN, CENTER)\n loader.setAttribute(\"part\", part)\n createRenderEffect(message, (text) => {\n loader.textContent = text\n })\n return loader\n }\n}\n\n/** A class `UIRoot.Loading` accepts: `LoaderMessage` or one shaped like it. */\nexport type RootLoading = Pick<typeof LoaderMessage, \"render\">\n\n/** The loader's switches for a centred spinner with its text below: `<ui-loader visible inline align=\"center\" text>`. */\nconst LOADER_SWITCHES: readonly LoaderSwitch[] = [\"visible\", \"inline\", \"text\"]\n\n/** The loader's `align`, and the value that centres it on a line of its own. */\nconst ALIGN: LoaderSwitch = \"align\"\nconst CENTER = \"center\"\n\n/** One of the loader's attributes: its vocabulary's, or the shared `visible` (`SharedVocabulary`). */\ntype LoaderSwitch = E.AttributeName<typeof loaderVocabulary> | \"visible\"\n","// oxlint-disable-next-line spell-ui/no-solid-effect -- a static helper drawing plain DOM: no members to decorate\nimport { createRenderEffect, type Accessor } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { placeholderHeaderVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholderHeader.en\"\nimport { placeholderImageVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholderImage.en\"\nimport { placeholderLineVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholderLine.en\"\nimport { placeholderParagraphVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholderParagraph.en\"\nimport { placeholderVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholder.en\"\nimport type { RootSkeleton } from \"./UIRoot.types\"\n\n/****************\n * ### `PlaceholderSkeleton`\n * What `<ui-root display=\"skeleton\">` draws while its components load:\n * one `<ui-placeholder>` per described element (`E.ComponentVocabulary.skeleton`),\n * in page order, stacked (inline ones side by side).\n * `UIRoot.Skeleton`, so an app swaps the look with one assignment or a subclass (`UIRoot.Skeleton = MySkeleton`).\n * - The `ui-placeholder` family is imported STATICALLY, by the root's barrel (`index.ts`):\n * with `ui-loader`, the only families a root never loads on demand.\n * Here, its vocabularies only: pure data.\n * - Built with the DOM, not JSX: Solid's JSX has no types for our tags.\n * - Sizes go through the placeholder's public tokens, so its own sheet draws them:\n * `--ui-placeholder-max-width`, `--ui-placeholder-image-height`.\n * - The element's `size` scales its skeleton (`--ui-scale`), and `fluid` fills the width.\n * - Static: an app swaps the CLASS (`UIRoot.Skeleton`), and it keeps no state of its own.\n ****************/\nexport class PlaceholderSkeleton {\n /** A `<div part>` holding a placeholder per skeleton, following `skeletons`. */\n static render(part: string, skeletons: Accessor<readonly RootSkeleton[]>): JSX.Element {\n const box = document.createElement(\"div\")\n box.setAttribute(\"part\", part)\n createRenderEffect(skeletons, (list) => {\n box.replaceChildren(...list.map((skeleton) => PlaceholderSkeleton.placeholder(skeleton)))\n })\n return box\n }\n\n /** The `<ui-placeholder>` standing for `element`. */\n static placeholder({ element, spec }: RootSkeleton): HTMLElement {\n const placeholder = PlaceholderSkeleton.create(placeholderVocabulary.tag)\n const style = placeholder.style\n const isFluid = E.Converters.boolean(element.getAttribute(FLUID), FLUID)\n if (isFluid) placeholder.setAttribute(FLUID, \"\")\n else if (spec.width) style.setProperty(\"--ui-placeholder-max-width\", spec.width)\n const size = element.getAttribute(SIZE)\n if (size && size !== MEDIUM) style.setProperty(\"--ui-scale\", `var(--ui-size-${size})`)\n if (spec.display === \"inline\") {\n style.display = \"inline-block\"\n style.verticalAlign = \"top\"\n style.marginInlineEnd = \"0.5em\"\n if (!isFluid && spec.width) style.width = spec.width\n }\n placeholder.append(...PlaceholderSkeleton.shapes(spec))\n return placeholder\n }\n\n /** The shapes inside: `parts`, or one block `width` x `height`. */\n private static shapes(spec: E.SkeletonSpec): HTMLElement[] {\n if (!spec.parts?.length) {\n const block = PlaceholderSkeleton.create(placeholderImageVocabulary.tag)\n if (spec.height) block.style.setProperty(\"--ui-placeholder-image-height\", spec.height)\n return [block]\n }\n return spec.parts.map((part) => PlaceholderSkeleton.shape(part))\n }\n\n /** One part as placeholder markup. */\n private static shape(part: E.SkeletonPart): HTMLElement {\n switch (part.shape) {\n case \"image\": {\n const image = PlaceholderSkeleton.create(placeholderImageVocabulary.tag)\n if (part.ratio) image.setAttribute(part.ratio, \"\")\n return image\n }\n case \"header\": {\n const header = PlaceholderSkeleton.create(placeholderHeaderVocabulary.tag)\n if (part.image) header.setAttribute(HEADER_IMAGE, \"\")\n header.append(...PlaceholderSkeleton.lines(HEADER_LINES))\n return header\n }\n case \"paragraph\": {\n const paragraph = PlaceholderSkeleton.create(placeholderParagraphVocabulary.tag)\n paragraph.append(...PlaceholderSkeleton.lines(part.lines ?? DEFAULT_LINES))\n return paragraph\n }\n case \"line\": {\n const [line] = PlaceholderSkeleton.lines(1)\n if (part.length) line!.setAttribute(LINE_LENGTH, part.length)\n return line!\n }\n }\n }\n\n /** `count` `<ui-placeholder-line>`s. */\n private static lines(count: number): HTMLElement[] {\n return Array.from({ length: count }, () => PlaceholderSkeleton.create(placeholderLineVocabulary.tag))\n }\n\n /** A new element named `tag`. */\n private static create(tag: string): HTMLElement {\n return document.createElement(tag)\n }\n}\n\n/** A class `UIRoot.Skeleton` accepts: `PlaceholderSkeleton` or one shaped like it. */\nexport type RootSkeletonRenderer = Pick<typeof PlaceholderSkeleton, \"render\">\n\n/** Bars in a skeleton paragraph unless it says. */\nconst DEFAULT_LINES = 3\n\n/** Bars in a skeleton header. */\nconst HEADER_LINES = 2\n\n/** `fluid`: read from the described element, set on its placeholder. */\nconst FLUID: E.AttributeName<typeof placeholderVocabulary> = \"fluid\"\n\n/** `size`, read from the described element. */\nconst SIZE = \"size\"\n\n/** The size that changes nothing. */\nconst MEDIUM = \"medium\"\n\n/** A header placeholder's square image. */\nconst HEADER_IMAGE: E.AttributeName<typeof placeholderHeaderVocabulary> = \"image\"\n\n/** A line placeholder's length. */\nconst LINE_LENGTH: E.AttributeName<typeof placeholderLineVocabulary> = \"length\"\n","import { isServer } from \"@solidjs/web\"\n\nimport { UIT } from \"spell/ui/core\"\n\n/****************\n * ### `RootBox`\n * One root's own `:host` rule:\n * `width; height; --ui-scale; --ui-stack-with` from its `width`, `height`, `size` and `stack-with`.\n * - `UIRoot.hostLayout`: `UIComponent` writes it into a sheet of the root's own, adopted into its shadow,\n * not an inline `style`: the DOM element's `style` attribute is the author's. Not a custom state either:\n * the token is read by style queries inside `@media`,\n * which a `:state()` rule left stale in WebKit (`UIT.STACK_WITH_CLASS`).\n * - Lengths are checked with `CSS.supports()`, `stack-with` against its values, so an attribute can never inject\n * other declarations; a static server render (no `CSS` in node) checks lengths against `SERVER_LENGTH` instead.\n * - STATIC and instance-free: pure, and the static server render needs it with no sheet to write.\n ****************/\nexport class RootBox {\n /** The declarations for these values; `\"\"` when there's nothing to set. */\n static css({ width, height, size, stackWith }: RootBoxValues): string {\n const declarations = RootBox.lengths({ width, height }).map(([property, value]) => `${property}: ${value}`)\n if (size && size !== MEDIUM) declarations.push(`--ui-scale: var(--ui-size-${size})`)\n if (UIT.StackWithValues.includes(stackWith as UIT.StackWith)) {\n declarations.push(`${UIT.STACK_WITH_TOKEN}: ${stackWith}`)\n }\n return declarations.join(\"; \")\n }\n\n /** A box (block, scrolling) when a width or height is set. */\n static isBox({ width, height }: Pick<RootBoxValues, \"width\" | \"height\">): boolean {\n return RootBox.lengths({ width, height }).length > 0\n }\n\n /** `[property, value]` for each of `width` / `height` that is a valid length (`window`: the viewport's). */\n private static lengths(values: Pick<RootBoxValues, \"width\" | \"height\">): [string, string][] {\n const lengths: [string, string][] = []\n for (const property of LENGTH_PROPERTIES) {\n const value = RootBox.length(property, values[property])\n if (value) lengths.push([property, value])\n }\n return lengths\n }\n\n /** `value` as a CSS `property` value: `window` => the viewport's, a valid length as is, else nothing. */\n private static length(property: LengthProperty, value: string | undefined): string | undefined {\n const trimmed = value?.trim()\n if (!trimmed) return undefined\n if (trimmed === WINDOW) return VIEWPORT[property]\n if (isServer) return SERVER_LENGTH.test(trimmed) ? trimmed : undefined\n return CSS.supports(property, trimmed) ? trimmed : undefined\n }\n}\n\n/** A root's attributes the box is built from. */\nexport type RootBoxValues = {\n /** `width`: a CSS length or `window`. */\n width?: string\n /** `height`: a CSS length or `window`. */\n height?: string\n /** `size`: scales the subtree; `medium` is no change. */\n size?: string\n /** `stack-with`: one of `UIT.StackWithValues`. */\n stackWith?: string\n}\n\n/** The two lengths a root takes, in declaration order. */\nconst LENGTH_PROPERTIES = [\"width\", \"height\"] as const\n\n/** One of `LENGTH_PROPERTIES`. */\ntype LengthProperty = (typeof LENGTH_PROPERTIES)[number]\n\n/** `width` / `height` value meaning \"the viewport's\". */\nconst WINDOW = \"window\"\n\n/** The viewport's length, per property: `dvh` follows a phone's address bar. */\nconst VIEWPORT = { width: \"100dvw\", height: \"100dvh\" } as const\n\n/** The size that changes nothing. */\nconst MEDIUM = \"medium\"\n\n/**\n * A length a static server render accepts for `width` / `height` (node has no `CSS.supports()`): numbers, units,\n * `%`, `calc()` / `var()` / `min()` ... -- never `;`, `:`, braces or quotes, which could inject other declarations.\n */\nconst SERVER_LENGTH = /^[\\w.%+\\-*/(), ]+$/\n","/**\n * The types and helpers the `ui-root` family's files share: its component (`UIRoot`), its loader and renderers,\n * and the generated catalog; a component pack's catalog (`ComponentPack.catalog`) has the catalog's shape.\n * - Pure data, at the bottom of the folder's imports: `import type` only, so node can load it (`yarn gen:root`).\n */\n\nimport type { E } from \"spell/ui/core\"\nimport type { rootVocabulary } from \"./UIRoot.en\"\n\n////////////////\n// ## Vocabulary and catalog\n////////////////\n\n/** `rootVocabulary`'s type. */\nexport type RootVocabulary = typeof rootVocabulary\n\n/**\n * What `<ui-root>` knows about a tag before its family loads (`UIRoot.catalog.ts`, generated); a component pack's\n * catalog has the same shape (`ComponentPack.catalog`, built by `spell pack build`).\n */\nexport type RootCatalogEntry = {\n /**\n * Its folder under `components/` (or `src/docs-components/`): its family, imported to define it. A pack's:\n * the folder of its component in the pack's package.\n */\n readonly folder: string\n /** What `display=\"skeleton\"` draws in its place; none: hidden until ready (or covered by its owner's). */\n readonly skeleton?: E.SkeletonSpec\n /**\n * Its vocabulary's attribute names, aliases too: what it observes, besides the shared ones,\n * when the root defines it before its family loads (`DOMElement.defineEarly()`)\n * - None in a catalog written before them (an older pack's): that tag isn't defined early.\n */\n readonly attributes?: readonly string[]\n /** It's a form control (its vocabulary's `formControl`): fixed as the root defines it early */\n readonly formControl?: true\n}\n\n////////////////\n// ## Loading\n////////////////\n\n/** One skeleton to draw: the element it stands for and its description. */\nexport type RootSkeleton = {\n /** Element inside the root that the skeleton stands for. */\n readonly element: Element\n /** Its tag's skeleton, from the catalog. */\n readonly spec: E.SkeletonSpec\n}\n\n/** Why a tag inside a root didn't load: no such component, its family's import failed, or not ready in time. */\nexport const RootFailureReasons = [\"unknown\", \"failed\", \"timeout\"] as const\n\n/** One of `RootFailureReasons`. */\nexport type RootFailureReason = (typeof RootFailureReasons)[number]\n\n/** One tag (or component pack) that didn't load: `ui-ready`'s `failed` list, `ui-error`'s detail. */\nexport type RootFailure = {\n /** The tag, e.g. `ui-card`. */\n readonly tag: string\n /** Why it didn't load. */\n readonly reason: RootFailureReason\n /** What its family's import (or its pack's load) threw (`failed` only). */\n readonly error?: unknown\n /** A component pack's `source` (`tag` is `ui-components`): the pack that didn't load. */\n readonly source?: string\n}\n\n/****************\n * ### `RootTimeout`\n * `timeout=\"5s\"` => milliseconds.\n * - Static: a pure parse, kept apart from `UIRoot` so tests reach it.\n ****************/\nexport class RootTimeout {\n /** `5s`, `2.5s`, `500ms`, `3000` => ms; anything else (or nothing) => `DEFAULT_TIMEOUT`. */\n static parse(value: string | undefined): number {\n const match = TIMEOUT.exec(value ?? \"\")\n if (!match) return DEFAULT_TIMEOUT\n const amount = Number(match[1])\n return match[2] === \"s\" ? amount * 1000 : amount\n }\n}\n\n/** The default `timeout`, ms: `rootVocabulary`'s default, `5s`. */\nconst DEFAULT_TIMEOUT = 5000\n\n/** A `timeout` value: a number, then `ms`, `s` or nothing (ms). */\nconst TIMEOUT = /^\\s*(\\d+(?:\\.\\d+)?)\\s*(ms|s)?\\s*$/\n","/**\n * Every name `<ui-root>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - No Fomantic counterpart, so no class grammar: every attribute is a property (`enum`, `string`, `boolean`),\n * plus `size` (kind `size`, for the shared value set), which the root applies to its subtree, not to a class.\n * - Design: `epics/ui-component-creation/ui-component-creation.plan.html`, Overview 3.5 and D51-D68.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `<ui-root>`\n * The top of a page or app: loads the families its subtree uses on demand, sets icon packs, emoji names,\n * theme and size for what's inside, and hides it until every component in it is ready.\n ****************/\nexport const rootVocabulary = {\n tag: \"ui-root\",\n icon: \"sitemap\",\n topics: [\"layout\", \"containers\", \"loading\", \"basic\"],\n aka: [\"app shell\", \"app root\", \"provider\", \"loader\", \"lazy loading\", \"theme provider\"],\n noun: \"root\",\n partOfSpeech: \"structure\",\n description:\n \"A root loads the components inside it on demand, sets their theme and size, and shows them once they're ready.\",\n attributes: [\n {\n name: \"display\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"skeleton\", \"when-ready\", \"immediately\"],\n default: \"skeleton\",\n description:\n \"While components load: `skeleton` -- a placeholder per component that describes one (else nothing), then \" +\n \"the content; `when-ready` -- nothing (space kept) \" +\n \"until everything is ready; `immediately` -- draw as things arrive.\"\n },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"string\",\n description:\n \"A loader with this message while components load (bare `loading`: the default text). Not with `immediately`.\"\n },\n {\n name: \"timeout\",\n group: \"behaviour\",\n kind: \"string\",\n default: \"5s\",\n description:\n \"Longest wait before showing the content anyway: `5s`, `500ms`, or milliseconds. A component that didn't \" +\n \"load fires `ui-error` and shows its native fallback.\"\n },\n {\n name: \"theme\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"light\", \"dark\"],\n description: \"Colour scheme of everything inside.\"\n },\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size of everything inside, `mini` ... `massive`.\"\n },\n {\n name: \"stack-with\",\n group: \"layout\",\n kind: \"enum\",\n values: UIT.StackWithValues,\n description:\n \"What stacking layouts inside measure (`stackable`, `doubling` ... on grids, cards, steps, forms, items, \" +\n \"statistics; tables' `stack-by`): `container` -- each element's own width (their default); `page` -- the \" +\n \"screen's, as in Fomantic. Sets the `--ui-stack-with` token; an element's own `stack-with` wins.\"\n },\n {\n name: \"app\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"This page is an app, not a document: it starts with the arrow cursor and no text selection, \" +\n \"so nothing is left to the browser's guess. Text meant to be selected opts back in (`ui-selectable`).\"\n },\n {\n name: \"width\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"Width as a CSS length (`600px`, `40em`, `50%`) or `window` (the viewport's). With a width or height the root \" +\n \"is a box that scrolls its own content, in a region named by the host's `aria-label` (name each one when a \" +\n \"page has several).\"\n },\n {\n name: \"height\",\n group: \"layout\",\n kind: \"string\",\n description: \"Height as a CSS length or `window` (the viewport's, following a phone's address bar).\"\n },\n {\n name: \"icons\",\n group: \"content\",\n kind: \"string\",\n description:\n \"Icon packs for everything inside, comma-separated: built-in ids (`fa7-free`, `fa7-brands`, `fomantic`) or \" +\n \"`pack.js` URLs, later wins. Added over the outer root's packs (or the page's).\"\n },\n {\n name: \"emoji\",\n group: \"content\",\n kind: \"enum\",\n values: [\"cldr\", \"fomantic\"],\n description: \"Emoji names for everything inside: `cldr` (the default) or `fomantic`.\"\n },\n {\n name: \"defaults\",\n group: \"appearance\",\n kind: \"json\",\n reflect: false,\n description:\n \"PROPERTY: attribute values for the elements inside that don't set them, by tag: \" +\n '`{ \"ui-button\": { appearance: \"pill\" }, \"ui-segment\": { appearance: \"raised\" } }`. ' +\n \"An element's own attribute, or a property set in code, wins; a root inside another adds to the outer \" +\n \"root's, attribute by attribute. Never what an element shows (`label`, `value`, `text`): those warn, as \" +\n \"does a value the attribute doesn't take.\"\n },\n {\n name: \"assets\",\n group: \"link\",\n kind: \"string\",\n description:\n \"Folder the built-in icon packs load from (`<assets>icon-packs/<id>/pack.js`), relative to the page; \" +\n \"default: beside the library.\"\n },\n {\n name: \"fixed\",\n group: \"layout\",\n kind: \"boolean\",\n description:\n \"Fills the viewport and stays there (`position: fixed`): the page never scrolls, the root does. A \" +\n \"full-page app shell. On iOS the keyboard can cover fields near the bottom.\"\n },\n {\n name: \"pure\",\n group: \"advanced\",\n kind: \"boolean\",\n description:\n \"Leaves the browser's `setAttribute()` alone. Spell UI's own components keep a function or object a \" +\n \"framework gives them before they load (`on-ui-changed={f}`, `options={[...]}`) either way: the root \" +\n \"defines them up front. Without `pure`, another library's custom elements keep them too; with it, they \" +\n \"get text, as the browser makes it. Read once, as the page first needs it.\"\n }\n ],\n events: [\n {\n name: \"ui-ready\",\n detail:\n \"{ failed: { tag: string, reason: 'unknown' | 'failed' | 'timeout', error?: unknown, source?: string }[] }\",\n description:\n \"Everything inside is ready (or the timeout passed): the content shows. `failed` lists what didn't load.\"\n },\n {\n name: \"ui-error\",\n detail: \"{ tag: string, reason: 'unknown' | 'failed' | 'timeout', error?: unknown, source?: string }\",\n cancelable: true,\n description:\n \"A tag inside couldn't load: no such component (`unknown`), its family didn't load (`failed`), or it \" +\n \"wasn't ready in time (`timeout`); or a component pack didn't load (`tag` `ui-components`, with its \" +\n \"`source`). Cancel it to skip the console warning.\"\n }\n ],\n slots: [\n {\n name: \"\",\n description:\n \"The page or app: any markup, with `ui-*` elements anywhere inside, and the tags of the component packs its \" +\n \"`<ui-components>` name.\"\n }\n ],\n parts: [\n { name: \"loading\", description: \"The `<ui-loader>` shown with `loading`.\" },\n { name: \"skeleton\", description: 'The box of `<ui-placeholder>`s shown with `display=\"skeleton\"`.' },\n {\n name: \"scroller\",\n description:\n \"With `width` / `height` / `fixed`: the region around the content that scrolls (a tab stop, named by the host's \" +\n '`aria-label`, else \"Content\").'\n }\n ],\n states: [\n { name: \"loading\", description: \"Components inside are still loading.\" },\n { name: \"ready\", description: \"Everything inside is ready (or the timeout passed).\" },\n { name: \"light\", description: '`theme=\"light\"`.' },\n { name: \"dark\", description: '`theme=\"dark\"`.' },\n { name: \"box\", description: \"A `width` or `height` is set: a block box that scrolls its content.\" },\n { name: \"fixed\", description: \"Pinned to the viewport.\" },\n { name: \"app\", description: \"`app`: this page is an app.\" }\n ],\n texts: [\n { key: \"loading\", text: \"Loading…\", description: \"The loader's message for a bare `loading`.\" },\n {\n key: \"label\",\n text: \"Content\",\n description: \"Name of the scrolling region of a root with a box, when the host has no `aria-label`.\"\n }\n ]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UI } from \"spell/ui/core\"\nimport { ComponentPacks } from \"spell/ui/components/ui-components/ComponentPacks\"\nimport { componentsVocabulary } from \"spell/ui/components/ui-components/UIComponents.en\"\nimport { SOURCE } from \"spell/ui/components/ui-components/UIComponents.types\"\nimport { LoaderMessage, type RootLoading } from \"./LoaderMessage\"\nimport { PlaceholderSkeleton, type RootSkeletonRenderer } from \"./PlaceholderSkeleton\"\nimport { RootBox } from \"./RootBox\"\nimport { RootLoader } from \"./RootLoader\"\nimport { RootTimeout, type RootFailure, type RootSkeleton, type RootVocabulary } from \"./UIRoot.types\"\nimport { rootVocabulary } from \"./UIRoot.en\"\n\nimport rootCSS from \"./UIRoot.css?inline\"\n\n/****************\n * ### `UIRoot`\n * The component behind `<ui-root>`: the top of a page or app,\n * a `<slot>` for the page, plus what shows while it loads.\n *\n * - Loads on demand: every undefined `ui-*` tag inside (now, and as content is added)\n * imports its family once (`RootLoader`); nothing is imported up front.\n * - The page's language: its own `lang`, else the closest one above it (the document's).\n * - A language Spell UI ships (`es`) loads first, once per page (`RootLoader.useLanguage()`).\n * - Then its tags load their families as `ui-*` tags do (`<es-boton>`), and the texts people read are in it.\n * - Component packs: each `<ui-components source>` inside loads its pack's script once per page\n * (`ComponentPacks`), which defines the pack's tags (`epic-*` ...).\n * - Then the root treats them as its own:\n * ready waits for them, skeletons come from the pack's catalog, unknown ones are reported.\n * - A pack that fails to load doesn't stop the root getting ready: a console error names its `source`.\n * - Ready: every family settled, then every `ui-*` element inside `ready`\n * (a nested root: its own `settled`), or the `timeout`.\n * - Then `:state(ready)`, `ui-ready { failed }`, and the content shows.\n * - Each tag that didn't load fires a cancelable `ui-error` first.\n * - Content added later loads too, but is never hidden again.\n * - While loading (`display`, not `immediately`):\n * the slot is hidden by an INLINE style (`canRenderUnstyled`, before any sheet), with its space kept (`when-ready`),\n * or not drawn at all when the `loading` message or the skeletons show instead.\n * - `skeleton`: every element inside whose tag describes a skeleton gets a `<ui-placeholder>`\n * in the root's shadow, in page order.\n * - Described by `E.ComponentVocabulary.skeleton`, in the generated catalog, or in a registered pack's catalog.\n * - One inside another is covered by it.\n * - Found again when a pack registers (its catalog comes with it).\n * - Nothing described: as `when-ready`.\n * - What shows while loading is swappable:\n * `UIRoot.Loading` (`LoaderMessage`, a `<ui-loader>`) and `UIRoot.Skeleton` (`PlaceholderSkeleton`).\n * - Settings for everything inside (`E.RootSettings`); nested roots inherit what they don't set:\n * - `icons`: a child icon-pack set over the outer root's, or the page's\n * - `emoji`: a name set\n * - `defaults`: attribute values for the elements inside that don't set them, by tag\n * (`{ \"ui-button\": { appearance: \"pill\" } }`; `DOMElement`, \"Root defaults\")\n * - a change redraws the icons / emoji / defaulted elements inside (`E.RootSettings.generation`)\n * - Theme, size, box: `:state(light | dark)`, `:state(box)`, `:state(fixed)` in `UIRoot.css`;\n * width, height and the subtree's `--ui-scale` in the root's own `:host` rule (`RootBox`, `hostLayout`).\n * - `stack-with`: the subtree's `--ui-stack-with` token (also in `RootBox`),\n * which every stacking element without a `stack-with` of its own follows (`UIT.STACK_WITH_TOKEN`).\n * - Static server render (`spell/ui/static`): nothing loads and nothing is hidden;\n * the root is a plain wrapper (`serverWrapper()`).\n * None of its `@E.onChange` effects runs there (none writes the DOM element).\n * - A subclass is a root too (`elementSetup.root`), under its own tag, e.g. `<spell-viewer>`:\n * - it draws an app instead of a `<slot>` (`content()`)\n * - it loads what's inside its shadow root too (`contentRoots`), and tags of its own (`ownTagLoader()`)\n * - its vocabulary has the root's names, plus its own\n ****************/\nexport class UIRoot<V extends E.ComponentVocabulary = RootVocabulary> extends E.UIComponent<V> {\n @E.proto static vocabulary: E.ComponentVocabulary = rootVocabulary\n // typed, not `satisfies`: a subclass states other keys (`<spell-viewer>`)\n @E.protoMerged static elementSetup: Partial<E.ElementSetup> = {\n styleSheets: { root: rootCSS },\n delegatesFocus: false,\n canRenderUnstyled: true,\n root: true,\n // `loading`: a message while its components load\n loading: \"its own\"\n }\n\n /** What shows with `loading`: swap it for another look (`UIRoot.Loading = MyLoading`). */\n @E.proto static Loading: RootLoading = LoaderMessage\n\n /** What shows with `display=\"skeleton\"`: swap it for another look (`UIRoot.Skeleton = MySkeleton`). */\n @E.proto static Skeleton: RootSkeletonRenderer = PlaceholderSkeleton\n\n declare Loading: RootLoading\n declare Skeleton: RootSkeletonRenderer\n\n ////////////////\n // ## Ready\n ////////////////\n\n /** Everything inside is ready (or the timeout passed). */\n @E.state accessor contentIsReady = false\n\n /**\n * Shown as ready? `:state(ready)`.\n * - A static server render waits for nothing: ready at once.\n */\n @E.cssState(\"ready\")\n get looksReady(): boolean {\n return isServer || this.contentIsReady\n }\n\n /** Still loading? `:state(loading)`. */\n @E.cssState(\"loading\")\n get isLoading(): boolean {\n return !this.looksReady\n }\n\n /** Resolves `settled`. */\n private resolveSettled!: (failures: readonly RootFailure[]) => void\n\n /** Resolves with what didn't load, once ready; an outer root waits for it. */\n readonly settled = new Promise<readonly RootFailure[]>((resolve) => (this.resolveSettled = resolve))\n\n ////////////////\n // ## While loading\n ////////////////\n\n /** The display mode. */\n private get displayMode(): NonNullable<UIRoot[\"display\"]> {\n return this.display ?? DISPLAY.skeleton\n }\n\n /** The skeletons to draw while loading (`display=\"skeleton\"`), found when loading starts. */\n @E.state accessor skeletons: readonly RootSkeleton[] = []\n\n /** The `loading` message shows. */\n private get showsLoadingMessage(): boolean {\n return !this.contentIsReady && this.displayMode !== DISPLAY.immediately && this.loading !== undefined\n }\n\n /** The skeletons show. */\n private get showsSkeletons(): boolean {\n return !this.contentIsReady && this.displayMode === DISPLAY.skeleton && this.skeletons.length > 0\n }\n\n /** The loader's message: `loading`'s value, or the default text for a bare `loading`. */\n private get loadingMessage(): string {\n return this.loading || (this.runtimeText(\"loading\") ?? \"\")\n }\n\n /**\n * Inline style of the content (the slot): hidden while loading (unless `immediately`);\n * not drawn while the message or skeletons show.\n */\n protected get contentStyle(): string | undefined {\n if (this.contentIsReady || this.displayMode === DISPLAY.immediately) return undefined\n return this.showsLoadingMessage || this.showsSkeletons ? \"display: none\" : \"visibility: hidden\"\n }\n\n /**\n * Text `key` once the runtime is loaded (tracked), else `undefined`:\n * the root renders at once (`canRenderUnstyled`), before `UI.i18n` exists,\n * and `translationForKey()` throws until then.\n */\n private runtimeText(key: E.TextKey<RootVocabulary>): string | undefined {\n return this.isReady ? this.translationForKey(key as never) : undefined\n }\n\n ////////////////\n // ## Theme and box\n ////////////////\n\n /** `theme=\"light\"`? `:state(light)`. */\n @E.cssState(\"light\")\n get isLight(): boolean {\n return this.theme === \"light\"\n }\n\n /** `theme=\"dark\"`? `:state(dark)`. */\n @E.cssState(\"dark\")\n get isDark(): boolean {\n return this.theme === \"dark\"\n }\n\n /** A box (a valid `width` / `height`)? `:state(box)`. */\n @E.cssState(\"box\")\n get isBox(): boolean {\n return RootBox.isBox({ width: this.width, height: this.height })\n }\n\n /** `app`? `:state(app)`, which the runtime's page sheet reads (`native.css`). */\n @E.cssState(\"app\")\n get isApp(): boolean {\n return this.app\n }\n\n /** `fixed`? `:state(fixed)`. */\n @E.cssState(\"fixed\")\n get isFixed(): boolean {\n return !!this.fixed\n }\n\n /**\n * A box (`width` / `height` / `fixed`): its content scrolls in an inner region,\n * a tab stop with a name (as a scrolling `<ui-table>`'s), so people on a keyboard can scroll it --\n * Firefox doesn't make a scroller focusable by itself.\n */\n protected get scrolls(): boolean {\n return this.isBox || this.isFixed\n }\n\n /**\n * The root's own `:host` rule (`RootBox`): width, height, `--ui-scale`, `--ui-stack-with`.\n * - `UIComponent` writes it into the root's own sheet; the server wrapper's inline style is the same.\n */\n @E.derived\n protected get hostLayout(): string {\n return RootBox.css({ width: this.width, height: this.height, size: this.size, stackWith: this.stackWith })\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n if (isServer) return this.serverWrapper()\n return (\n <>\n <Show when={this.showsLoadingMessage}>\n {this.Loading.render(this.partForName(\"loading\" as never), () => this.loadingMessage)}\n </Show>\n <Show when={this.showsSkeletons}>\n {this.Skeleton.render(this.partForName(\"skeleton\" as never), this.$.skeletons)}\n </Show>\n <Show when={this.scrolls} fallback={this.content()}>\n {this.scroller(this.content())}\n </Show>\n </>\n )\n }\n\n /**\n * What the root shows once ready: a `<slot>` for the page, hidden while loading (`contentStyle`).\n * - A subclass that draws its own content puts it here, with `contentStyle` on its outside (`<spell-viewer>`).\n */\n protected content(): JSX.Element {\n return <slot class={this.rootClass} style={this.contentStyle} />\n }\n\n /**\n * The root in a static server render: a `<div>` around the content,\n * carrying its classes and theme / box states (the flattener's `data-state`),\n * never hidden -- a static page has nothing to wait for.\n * - Its inline style is what the browser puts on the DOM element:\n * `RootBox`'s width, height, `--ui-scale` and `--ui-stack-with`, and `display: contents` unless it's a box\n * (the DOM element's own `display`, which a static stylesheet drops).\n * - A box scrolls its content in the same named region as in the browser.\n */\n private serverWrapper(): JSX.Element {\n return (\n <div class={this.rootClass} style={this.serverStyle}>\n <Show when={this.scrolls} fallback={<slot />}>\n {this.scroller(<slot />)}\n </Show>\n </div>\n )\n }\n\n /**\n * The scrolling region of a box around `slot`: a tab stop named by the DOM element's `aria-label`, else \"Content\".\n */\n private scroller(slot: JSX.Element): JSX.Element {\n return (\n <div\n part={this.partForName(\"scroller\" as never)}\n tabindex=\"0\"\n role=\"region\"\n aria-label={this.attributes[\"aria-label\"] ?? this.runtimeText(\"label\")}\n >\n {slot}\n </div>\n )\n }\n\n /** The server wrapper's inline style: `RootBox`'s declarations, or `display: contents` when not a box. */\n private get serverStyle(): string | undefined {\n const declarations = [this.scrolls ? \"\" : SERVER_CONTENTS, this.hostLayout].filter(Boolean)\n return declarations.join(\"; \") || undefined\n }\n\n ////////////////\n // ## Loading\n ////////////////\n\n /** What didn't load, in order. */\n private readonly failures: RootFailure[] = []\n\n /** `tag reason` pairs already reported, so each is reported once. */\n private readonly reportedFailures = new Set<string>()\n\n /** Elements inside not ready yet (for the timeout's report). */\n private readonly elementsNotReady = new Set<Element>()\n\n /** Elements already awaited. */\n private readonly awaitedElements = new WeakSet<Element>()\n\n /** `<ui-components>` whose pack load has started. */\n private readonly packElements = new WeakSet<Element>()\n\n /** `source`s of the packs still loading (for the timeout's report). */\n private readonly packsLoading = new Set<string>()\n\n /** Started loading (on first connect). */\n private hasStarted = false\n\n /**\n * Where the content the root loads is: the DOM element's children.\n * - A subclass that draws its content in its shadow root adds that (`<spell-viewer>`).\n */\n protected get contentRoots(): readonly ParentNode[] {\n return [this.domElement]\n }\n\n /**\n * How to load `tag`, an undefined tag the root loads ITSELF, beyond Spell UI's and the packs';\n * `undefined` for any other tag.\n * - None here: a subclass's own (`<spell-viewer>`: `spell-editor` => `spell-editor.js`).\n */\n protected ownTagLoader(_tag: string): (() => Promise<void>) | undefined {\n return undefined\n }\n\n /**\n * While connected, load what's inside now (first connect: and wait for it), and whatever is added later;\n * returns the undo.\n * - Declared before `onSettingsChanged()`: loading starts before the settings are handed out, as it always has.\n */\n @E.whileConnected\n protected watch(): E.Disposer {\n // oxlint-disable-next-line spell-ui/no-mutation-observer -- only while connected: `@E.watches` lasts the element's whole life\n const observer = new MutationObserver(() => void this.loadUndefined())\n for (const root of this.contentRoots) observer.observe(root, { childList: true, subtree: true })\n if (this.hasStarted) void this.loadUndefined()\n else {\n this.hasStarted = true\n void this.start()\n }\n return () => observer.disconnect()\n }\n\n /** Load, wait (or time out), then show the content and say so. */\n @E.untracked\n private async start() {\n await this.useLanguage()\n if (this.displayMode === DISPLAY.skeleton) this.skeletons = this.findSkeletons()\n const timeout = E.after(RootTimeout.parse(this.timeout) / 1000, () => \"timeout\" as const)\n const outcome = await Promise.race([this.settle(), timeout])\n timeout.cancel()\n if (outcome === \"timeout\") this.timedOut()\n this.contentIsReady = true\n this.send(\"ui-ready\" as never, { failed: [...this.failures] })\n this.resolveSettled([...this.failures])\n }\n\n /**\n * Load the page's language, when Spell UI ships it (`RootLoader.useLanguage()`):\n * the root's `lang`, else the closest one above it.\n * - One that fails to load is reported, and the root goes on in English.\n */\n private async useLanguage() {\n const lang = this.domElement.closest(\"[lang]\")?.getAttribute(\"lang\")\n if (!lang || !RootLoader.hasLanguage(lang)) return\n try {\n await RootLoader.useLanguage(lang)\n } catch (error) {\n E.Warnings.warn(\"<ui-root>\", `the ${lang} names didn't load:`, error)\n }\n }\n\n /**\n * Rounds of: load every pack and import every undefined tag's family, then await every element inside,\n * until nothing new turns up.\n * - A pack's tags are defined by the end of the first round, so the next one sees them.\n */\n private async settle(): Promise<void> {\n for (let round = 0; round < MAX_ROUNDS; round++) {\n await this.loadUndefined()\n const toAwait = this.elementsToAwait()\n if (!toAwait.length) return\n await Promise.all(toAwait.map((element) => this.whenReady(element)))\n }\n }\n\n /**\n * Each element inside whose tag describes a skeleton (Spell UI's catalog, or a registered pack's),\n * in page order, skipping those inside another one.\n */\n private findSkeletons(): RootSkeleton[] {\n const skeletons: RootSkeleton[] = []\n for (const element of this.elementsInside()) {\n const spec = RootLoader.entryOf(element.localName)?.skeleton\n if (!spec || skeletons.some((outer) => outer.element.contains(element))) continue\n skeletons.push({ element, spec })\n }\n return skeletons\n }\n\n /**\n * Load every new pack inside, and import the family of every undefined `ui-*` tag; resolves once each settled.\n * - An undefined tag of a registered pack is `unknown` when its catalog doesn't list it, else `failed`:\n * the pack defines every tag it lists as it registers. Unless its `define()` still runs (it loads its families\n * first): then it waits for it (`ComponentPacks.whileDefining()`).\n */\n private loadUndefined(): Promise<void> {\n const loads = this.loadPacks()\n for (const tag of this.undefinedTags()) {\n const load = this.ownTagLoader(tag)?.() ?? RootLoader.loadTag(tag) ?? ComponentPacks.whileDefining(tag)\n if (load) loads.push(load.catch((error: unknown) => this.fail({ tag, reason: \"failed\", error })))\n else if (RootLoader.entryOf(tag))\n this.fail({ tag, reason: \"failed\", error: new Error(\"its pack didn't define it\") })\n else this.fail({ tag, reason: \"unknown\" })\n }\n return Promise.all(loads).then(() => undefined)\n }\n\n /**\n * Start loading the pack of each `<ui-components source>` inside not seen yet\n * (`ComponentPacks.load()`: once per page);\n * each promise settles once its pack registered, or failed (reported).\n */\n private loadPacks(): Promise<void>[] {\n const loads: Promise<void>[] = []\n for (const element of this.elementsInside(`${componentsVocabulary.tag}[${SOURCE}]`)) {\n const source = element.getAttribute(SOURCE)\n if (!source || this.packElements.has(element)) continue\n this.packElements.add(element)\n this.packsLoading.add(source)\n const load = ComponentPacks.load(source).then(\n () => this.onPackLoaded(),\n (error: unknown) => this.fail({ tag: componentsVocabulary.tag, reason: \"failed\", error, source })\n )\n loads.push(load.finally(() => this.packsLoading.delete(source)))\n }\n return loads\n }\n\n /** A pack registered: while the skeletons still show, draw its tags' too (its catalog is known now). */\n @E.untracked\n private onPackLoaded() {\n if (this.contentIsReady || this.displayMode !== DISPLAY.skeleton) return\n this.skeletons = this.findSkeletons()\n }\n\n /**\n * Elements inside whose family has loaded, not awaited yet.\n * - Not a pending one (defined early, its family failed or not loaded): it would never get ready.\n */\n private elementsToAwait(): E.DOMElement[] {\n return this.elementsInside().filter(\n (element): element is E.DOMElement =>\n element instanceof E.DOMElement && !E.DOMElement.isPending(element) && !this.awaitedElements.has(element)\n )\n }\n\n /** Resolves once `element` is ready: a nested root once IT is settled. */\n private async whenReady(element: E.DOMElement): Promise<void> {\n this.awaitedElements.add(element)\n this.elementsNotReady.add(element)\n await element.ready\n if (element.component instanceof UIRoot) await element.component.settled\n this.elementsNotReady.delete(element)\n }\n\n /** Elements inside (in `contentRoots`) matching `selector`, in page order. */\n private elementsInside(selector = \"*\"): Element[] {\n return this.contentRoots.flatMap((root) => [...root.querySelectorAll(selector)])\n }\n\n /** The distinct undefined tags inside that the root loads: Spell UI's, a registered pack's, its own. */\n private undefinedTags(): Set<string> {\n const alsoLoads = (tag: string) => this.ownTagLoader(tag) !== undefined\n return new Set(this.contentRoots.flatMap((root) => [...RootLoader.undefinedTags(root, alsoLoads)]))\n }\n\n /** The timeout passed: report what's still undefined or not ready, and the packs still loading. */\n private timedOut() {\n for (const tag of this.undefinedTags()) {\n if (RootLoader.entryOf(tag) || this.ownTagLoader(tag)) this.fail({ tag, reason: \"timeout\" })\n }\n for (const element of this.elementsNotReady) this.fail({ tag: element.localName, reason: \"timeout\" })\n for (const source of this.packsLoading) this.fail({ tag: componentsVocabulary.tag, reason: \"timeout\", source })\n }\n\n /**\n * Record what didn't load (once per tag, reason and pack):\n * `ui-error`, then, unless cancelled, a console warning --\n * an ERROR naming the `source` for a pack, whose whole set of tags is missing.\n * - a stale catalog (`E.StaleCatalogError`): first told to the page server, when the page has one\n * (`SPELL_SERVER.reportStale()`, once a page): it rebuilds the catalog in a worktree, and live reload brings the\n * page back (epic `epic-engine` P54); a published page, or one from disk, has only the warning\n */\n private fail(failure: RootFailure) {\n const { tag, reason, error, source } = failure\n const key = `${tag} ${reason} ${source ?? \"\"}`\n if (this.reportedFailures.has(key)) return\n this.reportedFailures.add(key)\n this.failures.push(failure)\n if (error instanceof E.StaleCatalogError) {\n const server = (globalThis as { SPELL_SERVER?: { reportStale?: (cause?: E.StaleCatalogCause) => void } })\n .SPELL_SERVER\n server?.reportStale?.(error.cause)\n }\n if (!this.send(\"ui-error\" as never, failure)) return\n if (source) E.Warnings.error(\"<ui-root>\", `component pack ${source} didn't load (${reason}):`, error ?? \"\")\n else E.Warnings.warn(\"<ui-root>\", `<${tag}> didn't load (${reason}):`, error ?? \"\")\n }\n\n ////////////////\n // ## Settings\n ////////////////\n\n /** Settings requests, so a slower earlier one can't win. */\n private latestSettingsRequest = 0\n\n /**\n * Folder the built-in icon packs load from: `assets`.\n * - A subclass whose `assets` means something else says where its packs are (`<spell-viewer>`: beside its script).\n */\n protected get iconAssets(): string | undefined {\n return this.assets\n }\n\n /** The settings (or the connection) changed: hand them to everything inside; disconnected, forget them. */\n @E.onChange(\"isConnected\", \"icons\", \"emoji\", \"iconAssets\", \"attributeDefaults\")\n protected onSettingsChanged(\n isConnected: boolean,\n icons: string | undefined,\n emoji: string | undefined,\n assets: string | undefined,\n defaults: E.AttributeDefaults | undefined\n ) {\n if (isConnected) this.applySettings({ packs: UIRoot.packs(icons), emoji, assets, defaults })\n else E.RootSettings.delete(this.domElement)\n }\n\n /**\n * Give everything inside `emoji` and `defaults` at once, and, once the runtime is loaded,\n * an icon-pack set of `packs` (built-ins from `assets`) over the outer root's (or the page's).\n */\n private applySettings({ packs, emoji, assets, defaults }: RootSettingsRequest) {\n const request = ++this.latestSettingsRequest\n E.RootSettings.set(this.domElement, { emoji, defaults })\n if (!packs.length) return\n void UI.load().then((ui) => {\n if (request !== this.latestSettingsRequest || !this.domElement.isConnected) return\n const parent = () => this.outerPacks(ui.icons)\n E.RootSettings.set(this.domElement, { emoji, defaults, icons: ui.icons.scope(packs, { assets, parent }) })\n })\n }\n\n /**\n * The `defaults` property, when it's a table of tables (`{ \"ui-button\": { appearance: \"pill\" } }`);\n * else `undefined`, and a warning.\n * - Its JSON text works too, as any rich attribute's (`defaults='{\"ui-button\": {\"appearance\": \"pill\"}}'`).\n */\n protected get attributeDefaults(): E.AttributeDefaults | undefined {\n const defaults = this.defaults\n if (defaults === undefined || defaults === null || defaults === \"\") return undefined\n if (UIRoot.isTable(defaults) && Object.values(defaults).every(UIRoot.isTable)) {\n return defaults as E.AttributeDefaults\n }\n E.Warnings.warn(\n \"<ui-root>\",\n 'defaults: takes tag => attribute => value (`{ \"ui-button\": { appearance: \"pill\" } }`)',\n defaults\n )\n return undefined\n }\n\n /** Is `value` a plain object (not a list, not `null`)? */\n private static isTable(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n }\n\n /**\n * The icon packs this root's set goes over: never its own, but whatever is ABOVE it --\n * the outer root's, else `page` (`UI.icons`).\n * - Read when an icon is drawn, so a later outer root still counts.\n */\n private outerPacks(page: E.IconPacks): E.IconPacks {\n const above = E.flatParentFor(this.domElement)\n return above ? E.IconGlyph.packsFor(above, page) : page\n }\n\n /**\n * `icons=\"fa7-free, /packs/lucide/pack.js\"` => its packs, spaces around commas ignored.\n * - Static: pure.\n */\n private static packs(icons: string | undefined): string[] {\n return (icons ?? \"\")\n .split(PACK_SEPARATOR)\n .map((pack) => pack.trim())\n .filter(Boolean)\n }\n}\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIRoot<V extends E.ComponentVocabulary = RootVocabulary> extends E.AttributeValues<RootVocabulary> {}\n\n/** `display` values. */\nconst DISPLAY = { skeleton: \"skeleton\", whenReady: \"when-ready\", immediately: \"immediately\" } as const\n\n/** Separates the packs in `icons=\"fa7-free, /packs/lucide/pack.js\"`. */\nconst PACK_SEPARATOR = \",\"\n\n/** What `applySettings()` hands everything inside. */\ntype RootSettingsRequest = {\n /** the icon packs, by id or URL */\n packs: string[]\n /** the emoji name set */\n emoji?: string\n /** where the built-in icon packs load from */\n assets?: string\n /** the attribute defaults, by tag */\n defaults?: E.AttributeDefaults\n}\n\n/**\n * The static server render's wrapper when it isn't a box: no box of its own,\n * as the DOM element has none in the browser.\n */\nconst SERVER_CONTENTS = \"display: contents\"\n\n/** Rounds of \"load what's undefined, wait for what's defined\": content that keeps adding new tags stops here. */\nconst MAX_ROUNDS = 10\n","/**\n * The root family: defines `<ui-root>` and exports its component, `UIRoot`, with what a root is built from.\n * - SIDE EFFECT: importing it defines\n * - `<ui-root>`\n * - `<ui-loader>`: a root's loading message\n * - the `<ui-placeholder>`s: its skeletons\n * - `<ui-components>`: the component packs it loads, with `ComponentPacks` / `registerPack()`\n * - SIDE EFFECT: every other tag of the root's catalog is defined at once, PENDING (`RootLoader.defineEarly()`).\n * - Every other family is imported on demand, by what's inside a root, and attaches its tags.\n * - NOTE: the three families are imported HERE, not by `LoaderMessage` / `PlaceholderSkeleton` / `UIRoot`:\n * the static server render (`spell/ui/static`) loads `UIRoot` from its own file, and defining an element throws in node.\n * - `RootCatalogEntry` is exported for component packs: `spell pack build` writes a catalog of them.\n * - `RootVocabulary`, for a subclass's vocabulary (`<spell-viewer>`'s).\n * - Also the library's `spell/ui/ui-root` entry (its size is in `notes/report.md`).\n */\n\n// Spell UI's settings for `spell/element` (a side effect), here too: every page has a root, and `core`'s import of\n// it is dropped by a bundler that finds nothing of `core` itself used (`SpellUISettings`)\nimport \"spell/ui/elements/SpellUISettings\"\nimport { RootLoader } from \"./RootLoader\"\nimport { UIRoot } from \"./UIRoot\"\n\nimport \"spell/ui/components/ui-loader\"\nimport \"spell/ui/components/ui-placeholder\"\nimport \"spell/ui/components/ui-components\"\n\nUIRoot.define()\n// every other tag of the catalog, defined now and attached as its family loads (`RootLoader.defineEarly()`)\nRootLoader.defineEarly()\n\nexport { UIRoot }\nexport { LoaderMessage, type RootLoading } from \"./LoaderMessage\"\nexport { RootLoader } from \"./RootLoader\"\nexport type { RootCatalogEntry, RootFailure, RootFailureReason, RootVocabulary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,GAAU,qBADVnB,GA3cWsB,CAAA,GACF9H,EAAA2H,GAAA,IAAO,cAAhBF,IADWK,CAAA,GAGI9H,EAAA2H,GAAA,IAAO,gBAAtBH,IAHWM,CAAA,GAaF9H,EAAA2H,GAAA,IAAO,WAAhBJ,IAbWO,CAAA,GAgBF9H,EAAA2H,GAAA,IAAO,YAAhBL,IAhBWQ,CAAA,GAAN7H,GAAA0H,GAAMG,CAAA,GAAkFpI,EAAAoI,GAAA,QAAA,GACpFhI,EADEgI,GACK,cAAoC5H,EAA3CyH,GAAA,IADEG,GACyC3B,CAAA,CAAA,GAA3CjG,EAAAyH,GAAA,IADEG,CAAA,GAGIhI,EAHJgI,GAGW,gBAAwC5H,EAA/CyH,GAAA,IAHJG,GAGmD;CAC5D,aAAa,EAAE,MAAMnI,GAAQ;CAC7B,gBAAgB;CAChB,mBAAmB;CACnB,MAAM;CAEN,SAAS;AACX,CAAA,CAAA,GAPeO,EAAAyH,GAAA,IAHJG,CAAA,GAaFhI,EAbEgI,GAaK,WAAuB5H,EAA9ByH,GAAA,IAbEG,GAa4B,aAAA,CAAA,GAA9B5H,EAAAyH,GAAA,IAbEG,CAAA,GAgBFhI,EAhBEgI,GAgBK,YAAiC5H,EAAxCyH,GAAA,IAhBEG,GAgBsCtE,EAAA,CAAA,GAAxCtD,EAAAyH,GAAA,IAhBEG,CAAA;AAAN,IAAM+D,IAAN/D,GAuhBDW,IAAU;CAAE,UAAU;CAAY,WAAW;CAAc,aAAa;AAAc,GAGtFkD,KAAiB,KAkBjB7B,KAAkB,qBAGlBO,KAAa;ACtlBnBwB,EAAO,OAAO,GAEdzK,EAAW,YAAY"}
1
+ {"version":3,"file":"ui-root.js","names":["E.isBrowser","E.LoadOnce","MEDIUM","UIT.STACK_WITH_TOKEN","UIT.StackWithValues","<Show when={this.showsLoadingMessage}>\n {this.Loading.render(this.partForName(\"loading\"), () => this.loadingMessage)}\n </Show>","this","<Show when={this.showsSkeletons}>\n {this.Skeleton.render(this.partForName(\"skeleton\"), this.$.skeletons)}\n </Show>","<Show when={this.scrolls} fallback={this.content()}>\n {this.scroller(this.content())}\n </Show>","style={this.contentStyle}","<slot class={this.rootClass} style={this.contentStyle} />","<Show when={this.scrolls} fallback={<slot />}>\n {this.scroller(<slot />)}\n </Show>","<slot />","style={this.serverStyle}","<div class={this.rootClass} style={this.serverStyle}>\n <Show when={this.scrolls} fallback={<slot />}>\n {this.scroller(<slot />)}\n </Show>\n </div>","aria-label={this.attributes[\"aria-label\"] ?? this.runtimeText(\"label\")}","<div\n part={this.partForName(\"scroller\")}\n tabindex=\"0\"\n role=\"region\"\n aria-label={this.attributes[\"aria-label\"] ?? this.runtimeText(\"label\")}\n >\n {slot}\n </div>","E.UIComponent","E.proto","E.protoMerged","E.state","E.cssState","E.derived","E.whileConnected","E.untracked","E.onChange","_$getOwner","_$setAttribute","E.after","E.DOMElement","E.StaleCatalogError","E.flatParentFor","__name","rootCSS","STACK_WITH_TOKEN","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","StackWithValues","SOURCE","componentsVocabulary","loaderVocabulary","placeholderVocabulary","placeholderHeaderVocabulary","placeholderLineVocabulary","placeholderParagraphVocabulary","placeholderImageVocabulary","getOwner$1","ROOT_CATALOG","FAMILIES","n","isBrowser","UI","ui","RootLoader","LANGUAGES","es","LoadOnce","tag","ComponentPacks","tags","root","DOMElement","localName","TAG_PREFIX","alsoLoads","shared","SharedVocabulary","HIDDEN","attributes","formControl","folder","importer","lang","code","loadDictionary","dictionary","canonical","name","path","barrels","BARREL","loader","LOADER_SWITCHES","ALIGN","CENTER","part","createRenderEffect","message","text","PlaceholderSkeleton","box","skeletons","list","skeleton","placeholder","style","isFluid","Converters","element","FLUID","spec","size","SIZE","MEDIUM$1","block","image","header","HEADER_IMAGE","HEADER_LINES","paragraph","DEFAULT_LINES","line","LINE_LENGTH","count","RootBox","declarations","property","value","MEDIUM","stackWith","lengths","LENGTH_PROPERTIES","values","trimmed","WINDOW","VIEWPORT","isServer","SERVER_LENGTH","match","TIMEOUT","DEFAULT_TIMEOUT","amount","rootVocabulary","UIRoot_default","_tmpl$","_tmpl$2","_tmpl$3","_onSettingsChanged_dec","_onPackLoaded_dec","_start_dec","_watch_dec","_hostLayout_dec","_isFixed_dec","_isApp_dec","_isBox_dec","_isDark_dec","_isLight_dec","_skeletons_dec","_isLoading_dec","_looksReady_dec","_contentIsReady_dec","_Skeleton_dec","_Loading_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_contentIsReady","_skeletons","_UIRoot","UIComponent","proto","protoMerged","state","cssState","derived","whileConnected","untracked","onChange","resolve","DISPLAY","key","_self$","createComponent","Show","_self$2","_el$","effect","readShallow","className","_p$","t","_self$3","_el$2","insert","_el$3","_el$4","_self$4","_el$5","slot","setAttribute","SERVER_CONTENTS","observer","timeout","after","outcome","error","round","MAX_ROUNDS","toAwait","outer","loads","load","source","selector","failure","reason","StaleCatalogError","Warnings","isConnected","icons","RootSettings","request","packs","parent","defaults","above","flatParentFor","IconGlyph","page","PACK_SEPARATOR","pack","UIRoot"],"sources":["../src/components/ui-root/UIRoot.catalog.ts","../src/components/ui-root/RootLoader.ts","../src/components/ui-root/LoaderMessage.ts","../src/components/ui-root/PlaceholderSkeleton.ts","../src/components/ui-root/RootBox.ts","../src/components/ui-root/UIRoot.types.ts","../src/components/ui-root/UIRoot.en.ts","../src/components/ui-root/UIRoot.tsx","../src/components/ui-root/index.ts"],"sourcesContent":["/* GENERATED -- do not edit, run `yarn gen:root` (source: every `UI<Name>.en.ts`) */\n\nimport type { RootCatalogEntry } from \"./UIRoot.types\"\n\n/** Every component tag => what `<ui-root>` needs before its family loads. */\nexport const ROOT_CATALOG: Readonly<Record<string, RootCatalogEntry>> = {\n \"ui-accordion\": {\n folder: \"ui-accordion\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"long\" },\n { shape: \"line\", length: \"long\" },\n { shape: \"line\", length: \"long\" }\n ]\n },\n attributes: [\n \"appearance\",\n \"fluid\",\n \"inverted\",\n \"padding\",\n \"tree\",\n \"exclusive\",\n \"collapsible\",\n \"open\",\n \"source\",\n \"selector\"\n ]\n },\n \"ui-action\": {\n folder: \"ui-action\",\n skeleton: { display: \"inline\", width: \"8em\", height: \"2.5em\" },\n attributes: [\n \"color\",\n \"position\",\n \"value\",\n \"label\",\n \"description\",\n \"icon\",\n \"image\",\n \"flag\",\n \"link\",\n \"target\",\n \"appearance\",\n \"disabled\",\n \"selected\",\n \"padding\",\n \"kind\",\n \"action\",\n \"shortcut\",\n \"icon-only\"\n ]\n },\n \"ui-actions\": { folder: \"ui-parts\", attributes: [] },\n \"ui-ad\": { folder: \"ui-ad\", skeleton: { width: \"18em\", height: \"15em\" }, attributes: [\"unit\", \"align\", \"test\"] },\n \"ui-app-menu\": {\n folder: \"ui-app-menu\",\n skeleton: { display: \"inline\", width: \"24em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"name\",\n \"value\",\n \"choose\",\n \"position\",\n \"direction\",\n \"pagination\",\n \"icon\",\n \"labeled\",\n \"fluid\",\n \"stackable\",\n \"centered\",\n \"wrapping\",\n \"wrap\",\n \"inverted\",\n \"padding\",\n \"attach-to\",\n \"fixed\",\n \"align\",\n \"equal\",\n \"items\",\n \"shrinkable\",\n \"ticks\",\n \"icon-column\",\n \"tabs\",\n \"interactive\"\n ],\n formControl: true\n },\n \"ui-audio\": { folder: \"ui-video\", attributes: [\"src\", \"autoplay\", \"muted\", \"loop\", \"controls\"] },\n \"ui-author\": { folder: \"ui-parts\", attributes: [\"link\", \"target\"] },\n \"ui-avatar\": { folder: \"ui-parts\", attributes: [\"src\", \"tooltip\"] },\n \"ui-breadcrumb\": { folder: \"ui-breadcrumbs\", attributes: [\"selected\", \"link\", \"target\"] },\n \"ui-breadcrumbs\": {\n folder: \"ui-breadcrumbs\",\n skeleton: { parts: [{ shape: \"line\", length: \"medium\" }] },\n attributes: [\"size\", \"inverted\", \"divider\", \"divider-icon\"]\n },\n \"ui-button\": {\n folder: \"ui-button\",\n skeleton: { display: \"inline\", width: \"6em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"inverted\",\n \"toggle\",\n \"selected\",\n \"active-text\",\n \"inactive-text\",\n \"disabled\",\n \"loading\",\n \"fluid\",\n \"padding\",\n \"wrap\",\n \"ellipsis\",\n \"labeled\",\n \"reveal\",\n \"attach-to\",\n \"icon\",\n \"icon-position\",\n \"label\",\n \"badge\",\n \"type\",\n \"commandfor\",\n \"command\",\n \"link\",\n \"target\",\n \"download\",\n \"name\",\n \"value\"\n ],\n formControl: true\n },\n \"ui-buttons\": {\n folder: \"ui-button\",\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"inverted\",\n \"icon\",\n \"labeled\",\n \"padding\",\n \"toggle\",\n \"direction\",\n \"fluid\",\n \"equal\",\n \"wrapping\",\n \"spacing\",\n \"stackable\",\n \"attach-to\",\n \"width\"\n ]\n },\n \"ui-calendar\": {\n folder: \"ui-calendar\",\n skeleton: { display: \"inline\", width: \"14em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"inverted\",\n \"padding\",\n \"fluid\",\n \"disabled\",\n \"open\",\n \"type\",\n \"inline\",\n \"position\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"readonly\",\n \"placeholder\",\n \"min\",\n \"max\",\n \"initial-date\",\n \"first-day-of-week\",\n \"locale\",\n \"today\",\n \"disable-minute\",\n \"disable-month\",\n \"disable-year\",\n \"select-adjacent-days\",\n \"start-calendar\",\n \"end-calendar\",\n \"icon\",\n \"disabled-dates\",\n \"disabled-days-of-week\"\n ],\n formControl: true\n },\n \"ui-card\": {\n folder: \"ui-card\",\n skeleton: {\n width: \"18em\",\n parts: [{ shape: \"image\", ratio: \"square\" }, { shape: \"header\" }, { shape: \"paragraph\", lines: 3 }]\n },\n attributes: [\n \"size\",\n \"color\",\n \"background\",\n \"direction\",\n \"appearance\",\n \"fluid\",\n \"align\",\n \"inverted\",\n \"disabled\",\n \"loading\",\n \"link\",\n \"target\",\n \"heading\",\n \"meta\",\n \"description\",\n \"extra\",\n \"image\",\n \"alt\"\n ]\n },\n \"ui-cards\": {\n folder: \"ui-card\",\n attributes: [\n \"size\",\n \"color\",\n \"background\",\n \"columns\",\n \"layout\",\n \"doubling\",\n \"stackable\",\n \"stack-with\",\n \"align\",\n \"direction\",\n \"appearance\",\n \"inverted\"\n ]\n },\n \"ui-cell\": { folder: \"ui-table\", attributes: [\"header\", \"span\", \"align\", \"vertical-align\"] },\n \"ui-checkbox\": {\n folder: \"ui-checkbox\",\n skeleton: { display: \"inline\", width: \"6em\", height: \"1.25em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"indeterminate\",\n \"padding\",\n \"invisible\",\n \"align\",\n \"disabled\",\n \"readonly\",\n \"inverted\",\n \"selected\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"label\",\n \"off-value\"\n ],\n formControl: true\n },\n \"ui-code\": {\n folder: \"ui-code\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 5 }] },\n attributes: [\"source\", \"load\", \"language\", \"line-numbers\", \"start\", \"wrap\", \"copy\"]\n },\n \"ui-color-chip\": {\n folder: \"ui-theme-editor\",\n skeleton: { display: \"inline\", width: \"1.4em\", height: \"1.4em\" },\n attributes: [\"color\", \"scheme\", \"label\"]\n },\n \"ui-column\": {\n folder: \"ui-grid\",\n attributes: [\n \"color\",\n \"width\",\n \"width-mobile\",\n \"width-tablet\",\n \"width-computer\",\n \"width-large\",\n \"width-widescreen\",\n \"attach-to\",\n \"centered\",\n \"stretched\",\n \"only\",\n \"align\",\n \"vertical-align\"\n ]\n },\n \"ui-comment\": {\n folder: \"ui-comment\",\n skeleton: {\n parts: [\n { shape: \"header\", image: true },\n { shape: \"paragraph\", lines: 2 }\n ]\n },\n attributes: [\"collapsed\", \"disabled\"]\n },\n \"ui-comments\": {\n folder: \"ui-comment\",\n attributes: [\"size\", \"threaded\", \"appearance\", \"inverted\", \"collapsed\", \"disabled\"]\n },\n \"ui-components\": { folder: \"ui-components\", attributes: [\"source\"] },\n \"ui-container\": {\n folder: \"ui-container\",\n attributes: [\n \"text\",\n \"fluid\",\n \"wide\",\n \"width\",\n \"size\",\n \"inverted\",\n \"padding\",\n \"columns\",\n \"grid\",\n \"spacing\",\n \"align\",\n \"scrolling\",\n \"resizable\"\n ]\n },\n \"ui-content\": { folder: \"ui-parts\", attributes: [\"image\", \"scrolling\", \"align\", \"vertical-align\"] },\n \"ui-date\": { folder: \"ui-parts\", attributes: [\"datetime\"] },\n \"ui-description\": { folder: \"ui-parts\", attributes: [] },\n \"ui-detail\": { folder: \"ui-parts\", attributes: [\"link\"] },\n \"ui-device\": {\n folder: \"ui-device\",\n skeleton: { width: \"12em\", height: \"24em\" },\n attributes: [\"device\", \"orientation\", \"controls\", \"modal\", \"closedby\"]\n },\n \"ui-diagram\": {\n folder: \"ui-diagram\",\n skeleton: { height: \"14em\" },\n attributes: [\"spec\", \"columns\", \"remember\", \"fixed\"]\n },\n \"ui-diagram-node\": { folder: \"ui-diagram\", attributes: [\"name\", \"resizable\"] },\n \"ui-dimension\": {\n folder: \"ui-dimension\",\n skeleton: { display: \"inline\", width: \"4em\", height: \"1em\" },\n attributes: [\"value\", \"dimension\", \"unit\", \"in\"]\n },\n \"ui-dimmer\": {\n folder: \"ui-dimmer\",\n attributes: [\n \"shade\",\n \"page\",\n \"inverted\",\n \"blurring\",\n \"appearance\",\n \"disabled\",\n \"vertical-align\",\n \"show-on\",\n \"closedby\"\n ]\n },\n \"ui-divider\": {\n folder: \"ui-divider\",\n skeleton: { height: \"0.25em\" },\n attributes: [\"size\", \"color\", \"direction\", \"spacer\", \"padding\", \"clearing\", \"section\", \"inverted\", \"align\", \"icon\"]\n },\n \"ui-docs-api\": {\n folder: \"ui-docs-api\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"short\" },\n { shape: \"paragraph\", lines: 5 }\n ]\n },\n attributes: [\"tag\", \"family\", \"only\", \"level\"]\n },\n \"ui-docs-index\": { folder: \"ui-docs-index\", attributes: [\"pages\"] },\n \"ui-docs-inspector\": {\n folder: \"ui-docs-inspector\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"short\" },\n { shape: \"paragraph\", lines: 4 }\n ]\n },\n attributes: [\"for\", \"all\"]\n },\n \"ui-docs-nav\": {\n folder: \"ui-docs-nav\",\n skeleton: {\n width: \"15em\",\n parts: [\n { shape: \"paragraph\", lines: 3 },\n { shape: \"paragraph\", lines: 8 }\n ]\n },\n attributes: [\"current\", \"base\", \"view\", \"size\"]\n },\n \"ui-docs-palette\": { folder: \"ui-docs-palette\", skeleton: { height: \"40em\" }, attributes: [] },\n \"ui-docs-search\": {\n folder: \"ui-docs-search\",\n skeleton: { width: \"16em\", height: \"2.25em\" },\n attributes: [\"pages\", \"base\", \"page\", \"shortcuts\", \"placeholder\", \"size\"]\n },\n \"ui-docs-theme-bench\": { folder: \"ui-docs-theme-bench\", skeleton: { height: \"40em\" }, attributes: [] },\n \"ui-docs-tokens\": {\n folder: \"ui-docs-tokens\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"short\" },\n { shape: \"paragraph\", lines: 5 }\n ]\n },\n attributes: [\"family\", \"tag\", \"global\", \"groups\", \"tokens\", \"playground\", \"target\", \"caption\", \"level\"]\n },\n \"ui-dropdown\": {\n folder: \"ui-dropdown\",\n skeleton: { display: \"inline\", width: \"14em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"selection\",\n \"search\",\n \"multiple\",\n \"inline\",\n \"floating\",\n \"button\",\n \"labeled\",\n \"padding\",\n \"fluid\",\n \"scrolling\",\n \"appearance\",\n \"clearable\",\n \"disabled\",\n \"loading\",\n \"readonly\",\n \"inverted\",\n \"limit\",\n \"resizable\",\n \"length\",\n \"open\",\n \"pointing\",\n \"columnar\",\n \"direction\",\n \"icon\",\n \"placeholder\",\n \"value\",\n \"label\",\n \"name\",\n \"parameter\",\n \"required\",\n \"allow-additions\",\n \"min-characters\",\n \"max-selections\",\n \"no-results-text\",\n \"addition-text\",\n \"options\"\n ],\n formControl: true\n },\n \"ui-embed\": {\n folder: \"ui-embed\",\n skeleton: { width: \"28em\", height: \"15.75em\" },\n attributes: [\n \"source\",\n \"video-id\",\n \"url\",\n \"placeholder\",\n \"label\",\n \"alt\",\n \"icon\",\n \"aspect-ratio\",\n \"autoplay\",\n \"parameters\",\n \"active\"\n ]\n },\n \"ui-emoji\": {\n folder: \"ui-emoji\",\n skeleton: { display: \"inline\", width: \"1em\", height: \"1em\" },\n attributes: [\"size\", \"name\", \"label\", \"appearance\", \"disabled\", \"loading\"]\n },\n \"ui-event\": { folder: \"ui-feed\", attributes: [\"color\", \"icon\", \"image\", \"label\", \"appearance\", \"disabled\"] },\n \"ui-example\": {\n folder: \"ui-example\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\", lines: 2 }] },\n attributes: [\"heading\", \"description\", \"level\", \"code\", \"language\", \"bare\", \"variation\"]\n },\n \"ui-extra\": { folder: \"ui-parts\", attributes: [\"text\"] },\n \"ui-feed\": {\n folder: \"ui-feed\",\n skeleton: {\n parts: [\n { shape: \"header\", image: true },\n { shape: \"paragraph\", lines: 2 }\n ]\n },\n attributes: [\"size\", \"color\", \"connected\", \"ordered\", \"divided\", \"appearance\", \"inverted\", \"disabled\"]\n },\n \"ui-field\": {\n folder: \"ui-form\",\n skeleton: { height: \"4.5em\" },\n attributes: [\n \"label\",\n \"description\",\n \"unsaved\",\n \"hint\",\n \"output\",\n \"error\",\n \"state\",\n \"apply\",\n \"mixed\",\n \"rules\",\n \"inline\",\n \"required\",\n \"readonly\",\n \"disabled\",\n \"width\"\n ]\n },\n \"ui-fields\": {\n folder: \"ui-form\",\n attributes: [\"state\", \"inline\", \"grouped\", \"unstackable\", \"required\", \"disabled\", \"equal\", \"widths\"]\n },\n \"ui-flag\": {\n folder: \"ui-flag\",\n skeleton: { display: \"inline\", width: \"1.1em\", height: \"0.8em\" },\n attributes: [\"size\", \"country\"]\n },\n \"ui-flyout\": {\n folder: \"ui-flyout\",\n attributes: [\n \"position\",\n \"fullscreen\",\n \"inverted\",\n \"blurring\",\n \"modeless\",\n \"width\",\n \"closable\",\n \"closedby\",\n \"heading\",\n \"content\"\n ]\n },\n \"ui-form\": {\n folder: \"ui-form\",\n attributes: [\n \"fluid\",\n \"size\",\n \"state\",\n \"equal-width\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"unstackable\",\n \"stack-with\",\n \"validate\",\n \"apply\",\n \"rules\",\n \"error-focus\",\n \"prevent-leaving\",\n \"value\",\n \"debug\"\n ]\n },\n \"ui-grid\": {\n folder: \"ui-grid\",\n attributes: [\n \"columns\",\n \"equal-width\",\n \"divided\",\n \"celled\",\n \"padding\",\n \"spacing\",\n \"centered\",\n \"stretched\",\n \"stackable\",\n \"doubling\",\n \"inverted\",\n \"only\",\n \"reversed\",\n \"stack-with\",\n \"align\",\n \"vertical-align\"\n ]\n },\n \"ui-header\": {\n folder: \"ui-parts\",\n skeleton: { parts: [{ shape: \"line\", length: \"medium\" }] },\n attributes: [\n \"level\",\n \"size\",\n \"color\",\n \"sub\",\n \"icon\",\n \"dividing\",\n \"block\",\n \"attach-to\",\n \"seamless\",\n \"align\",\n \"padding\",\n \"disabled\",\n \"inverted\",\n \"link\"\n ]\n },\n \"ui-icon\": {\n folder: \"ui-icon\",\n skeleton: { display: \"inline\", width: \"1em\", height: \"1em\" },\n attributes: [\n \"size\",\n \"color\",\n \"name\",\n \"label\",\n \"disabled\",\n \"inverted\",\n \"loading\",\n \"padding\",\n \"appearance\",\n \"flipped\",\n \"rotated\",\n \"corner\"\n ]\n },\n \"ui-icon-picker\": {\n folder: \"ui-icon-picker\",\n skeleton: { display: \"inline\", width: \"14em\", height: \"2.5em\" },\n attributes: [\"value\", \"name\", \"parameter\", \"placeholder\", \"size\", \"fluid\", \"disabled\", \"readonly\", \"required\"],\n formControl: true\n },\n \"ui-icons\": {\n folder: \"ui-icon\",\n skeleton: { display: \"inline\", width: \"1em\", height: \"1em\" },\n attributes: [\"size\", \"label\", \"disabled\", \"loading\", \"padding\", \"appearance\", \"inverted\"]\n },\n \"ui-image\": {\n folder: \"ui-image\",\n skeleton: { width: \"10em\", parts: [{ shape: \"image\", ratio: \"square\" }] },\n attributes: [\n \"size\",\n \"avatar\",\n \"appearance\",\n \"background\",\n \"align\",\n \"disabled\",\n \"fluid\",\n \"inline\",\n \"floated\",\n \"spacing\",\n \"vertical-align\",\n \"src\",\n \"caption\",\n \"alt\",\n \"width\",\n \"height\",\n \"aspect-ratio\",\n \"crop\",\n \"loading\",\n \"zoom\",\n \"link\"\n ]\n },\n \"ui-images\": {\n folder: \"ui-image\",\n attributes: [\"size\", \"avatar\", \"appearance\", \"align\", \"disabled\", \"fluid\", \"vertical-align\"]\n },\n \"ui-include\": {\n folder: \"ui-include\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 4 }] },\n attributes: [\"source\", \"load\", \"selector\", \"page-styles\"]\n },\n \"ui-input\": {\n folder: \"ui-input\",\n skeleton: { display: \"inline\", width: \"14em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"appearance\",\n \"fluid\",\n \"loading\",\n \"disabled\",\n \"inverted\",\n \"readonly\",\n \"icon-position\",\n \"labeled\",\n \"action\",\n \"icon\",\n \"label\",\n \"type\",\n \"value\",\n \"name\",\n \"parameter\",\n \"placeholder\",\n \"required\",\n \"pattern\",\n \"min\",\n \"max\",\n \"step\",\n \"minlength\",\n \"maxlength\",\n \"multiple\",\n \"accept\",\n \"autocomplete\",\n \"inputmode\",\n \"rules\"\n ],\n formControl: true\n },\n \"ui-item\": {\n folder: \"ui-item\",\n attributes: [\n \"color\",\n \"position\",\n \"value\",\n \"label\",\n \"description\",\n \"icon\",\n \"image\",\n \"flag\",\n \"link\",\n \"target\",\n \"appearance\",\n \"disabled\",\n \"selected\",\n \"padding\",\n \"kind\"\n ]\n },\n \"ui-items\": {\n folder: \"ui-items\",\n skeleton: {\n parts: [\n { shape: \"header\", image: true },\n { shape: \"paragraph\", lines: 3 }\n ]\n },\n attributes: [\"size\", \"divided\", \"spacing\", \"appearance\", \"unstackable\", \"stack-with\", \"inverted\", \"disabled\"]\n },\n \"ui-json\": { folder: \"ui-json\", attributes: [\"source\", \"load\"] },\n \"ui-keys\": { folder: \"ui-keys\", attributes: [\"shortcut\", \"platform\"] },\n \"ui-label\": {\n folder: \"ui-label\",\n skeleton: { display: \"inline\", width: \"4em\", height: \"1.8em\" },\n attributes: [\n \"size\",\n \"color\",\n \"image\",\n \"tag\",\n \"corner\",\n \"ribbon\",\n \"pointing\",\n \"floating\",\n \"appearance\",\n \"attach-to\",\n \"direction\",\n \"empty\",\n \"fluid\",\n \"align\",\n \"prompt\",\n \"selected\",\n \"disabled\",\n \"inverted\",\n \"icon\",\n \"detail\",\n \"removable\",\n \"link\",\n \"target\"\n ]\n },\n \"ui-labels\": {\n folder: \"ui-label\",\n attributes: [\"size\", \"color\", \"tag\", \"appearance\", \"direction\", \"image\", \"fluid\", \"align\", \"inverted\", \"disabled\"]\n },\n \"ui-link\": { folder: \"ui-text\", attributes: [\"size\", \"color\", \"inverted\", \"disabled\"] },\n \"ui-list\": {\n folder: \"ui-list\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 3 }] },\n attributes: [\n \"size\",\n \"bulleted\",\n \"ordered\",\n \"suffixed\",\n \"appearance\",\n \"selection\",\n \"hover\",\n \"direction\",\n \"divided\",\n \"celled\",\n \"spacing\",\n \"padding\",\n \"inverted\",\n \"vertical-align\"\n ]\n },\n \"ui-loader\": {\n folder: \"ui-loader\",\n attributes: [\n \"size\",\n \"color\",\n \"speed\",\n \"disabled\",\n \"text\",\n \"inline\",\n \"align\",\n \"indeterminate\",\n \"double\",\n \"elastic\",\n \"inverted\"\n ]\n },\n \"ui-markdown\": {\n folder: \"ui-markdown\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\", lines: 4 }] },\n attributes: [\"source\", \"load\", \"size\", \"breaks\", \"heading-offset\", \"skip-title\", \"editable\", \"sanitized\"]\n },\n \"ui-menu\": {\n folder: \"ui-menu\",\n skeleton: { height: \"3em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"name\",\n \"value\",\n \"choose\",\n \"position\",\n \"direction\",\n \"pagination\",\n \"icon\",\n \"labeled\",\n \"fluid\",\n \"stackable\",\n \"centered\",\n \"wrapping\",\n \"wrap\",\n \"inverted\",\n \"padding\",\n \"attach-to\",\n \"fixed\",\n \"align\",\n \"equal\",\n \"items\",\n \"shrinkable\",\n \"ticks\",\n \"icon-column\",\n \"tabs\",\n \"interactive\"\n ],\n formControl: true\n },\n \"ui-message\": {\n folder: \"ui-message\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"line\", length: \"long\" }] },\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"floating\",\n \"padding\",\n \"centered\",\n \"inverted\",\n \"attach-to\",\n \"align\",\n \"icon\",\n \"heading\",\n \"dismissible\"\n ]\n },\n \"ui-meta\": { folder: \"ui-parts\", attributes: [] },\n \"ui-modal\": {\n folder: \"ui-modal\",\n attributes: [\n \"size\",\n \"appearance\",\n \"inverted\",\n \"transparent\",\n \"fullscreen\",\n \"overlay\",\n \"scrolling\",\n \"vertical-align\",\n \"closable\",\n \"closedby\",\n \"heading\",\n \"content\"\n ]\n },\n \"ui-nag\": {\n folder: \"ui-nag\",\n attributes: [\n \"size\",\n \"color\",\n \"inverted\",\n \"fixed\",\n \"overlay\",\n \"bottom\",\n \"closable\",\n \"key\",\n \"value\",\n \"storage\",\n \"expires\",\n \"persistent\",\n \"display-time\",\n \"path\",\n \"domain\",\n \"secure\",\n \"samesite\"\n ]\n },\n \"ui-or\": { folder: \"ui-button\", attributes: [\"label\"] },\n \"ui-page\": {\n folder: \"ui-page\",\n attributes: [\n \"display\",\n \"loading\",\n \"timeout\",\n \"theme\",\n \"size\",\n \"stack-with\",\n \"app\",\n \"width\",\n \"height\",\n \"icons\",\n \"emoji\",\n \"defaults\",\n \"assets\",\n \"fixed\",\n \"pure\"\n ]\n },\n \"ui-page-layout\": {\n folder: \"ui-page-layout\",\n skeleton: { width: \"24em\", parts: [{ shape: \"paragraph\", lines: 4 }] },\n attributes: [\"drawer\"]\n },\n \"ui-panel\": {\n folder: \"ui-panel\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\" }] },\n attributes: [\n \"label\",\n \"hint\",\n \"level\",\n \"parent\",\n \"icon\",\n \"badge\",\n \"description\",\n \"hide-empty\",\n \"collapsible\",\n \"open\",\n \"fold-icon\",\n \"sticky\",\n \"offset\",\n \"color\",\n \"size\",\n \"dividing\",\n \"block\",\n \"appearance\",\n \"padding\",\n \"attach-to\",\n \"scrolling\",\n \"height\",\n \"align\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"source\",\n \"selector\"\n ]\n },\n \"ui-placeholder\": { folder: \"ui-placeholder\", attributes: [\"fluid\", \"inverted\"] },\n \"ui-placeholder-header\": { folder: \"ui-placeholder\", attributes: [\"image\"] },\n \"ui-placeholder-image\": { folder: \"ui-placeholder\", attributes: [\"square\", \"rectangular\"] },\n \"ui-placeholder-line\": { folder: \"ui-placeholder\", attributes: [\"length\"] },\n \"ui-placeholder-paragraph\": { folder: \"ui-placeholder\", attributes: [] },\n \"ui-popup\": {\n folder: \"ui-popup\",\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"fixed\",\n \"flowing\",\n \"fluid\",\n \"inverted\",\n \"loading\",\n \"wide\",\n \"position\",\n \"open-on\",\n \"for\",\n \"heading\",\n \"label\",\n \"hoverable\",\n \"show-delay\",\n \"hide-delay\",\n \"target\",\n \"at\"\n ]\n },\n \"ui-progress\": {\n folder: \"ui-progress\",\n skeleton: { height: \"2em\" },\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"speed\",\n \"active\",\n \"appearance\",\n \"disabled\",\n \"indicating\",\n \"inverted\",\n \"align\",\n \"indeterminate\",\n \"attach-to\",\n \"value\",\n \"total\",\n \"percent\",\n \"precision\",\n \"bar-text\",\n \"bar-colors\",\n \"label\"\n ]\n },\n \"ui-property\": {\n folder: \"ui-property-editor\",\n skeleton: { height: \"4.5em\" },\n attributes: [\n \"name\",\n \"as\",\n \"default\",\n \"options\",\n \"label\",\n \"description\",\n \"unsaved\",\n \"hint\",\n \"output\",\n \"error\",\n \"state\",\n \"apply\",\n \"mixed\",\n \"rules\",\n \"inline\",\n \"required\",\n \"readonly\",\n \"disabled\",\n \"width\"\n ]\n },\n \"ui-property-editor\": {\n folder: \"ui-property-editor\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\", lines: 3 }] },\n attributes: [\n \"schema\",\n \"value\",\n \"source\",\n \"selector\",\n \"readonly\",\n \"compact\",\n \"columns\",\n \"origins\",\n \"writer\",\n \"show-defaults\",\n \"unsaved\",\n \"output\",\n \"error\",\n \"fluid\",\n \"size\",\n \"state\",\n \"equal-width\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"unstackable\",\n \"stack-with\",\n \"validate\",\n \"apply\",\n \"rules\",\n \"error-focus\",\n \"prevent-leaving\",\n \"debug\",\n \"label\",\n \"hint\",\n \"level\",\n \"parent\",\n \"icon\",\n \"badge\",\n \"description\",\n \"hide-empty\",\n \"collapsible\",\n \"open\",\n \"fold-icon\",\n \"sticky\",\n \"offset\",\n \"color\",\n \"dividing\",\n \"block\",\n \"appearance\",\n \"padding\",\n \"attach-to\",\n \"scrolling\",\n \"height\",\n \"align\"\n ]\n },\n \"ui-property-group\": {\n folder: \"ui-property-editor\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\" }] },\n attributes: [\n \"selector\",\n \"readonly\",\n \"state\",\n \"output\",\n \"error\",\n \"columns\",\n \"flags\",\n \"label\",\n \"hint\",\n \"level\",\n \"parent\",\n \"icon\",\n \"badge\",\n \"description\",\n \"hide-empty\",\n \"collapsible\",\n \"open\",\n \"fold-icon\",\n \"sticky\",\n \"offset\",\n \"color\",\n \"size\",\n \"dividing\",\n \"block\",\n \"appearance\",\n \"padding\",\n \"attach-to\",\n \"scrolling\",\n \"height\",\n \"align\",\n \"inverted\",\n \"loading\",\n \"disabled\"\n ]\n },\n \"ui-pushable\": { folder: \"ui-sidebar\", attributes: [] },\n \"ui-pusher\": { folder: \"ui-sidebar\", attributes: [] },\n \"ui-quote\": { folder: \"ui-quote\", attributes: [\"inline\", \"cite\"] },\n \"ui-radio\": {\n folder: \"ui-checkbox\",\n skeleton: { display: \"inline\", width: \"6em\", height: \"1.25em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"padding\",\n \"invisible\",\n \"align\",\n \"disabled\",\n \"readonly\",\n \"inverted\",\n \"selected\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"label\"\n ],\n formControl: true\n },\n \"ui-rail\": { folder: \"ui-rail\", attributes: [\"size\", \"position\", \"internal\", \"dividing\", \"attach-to\", \"close\"] },\n \"ui-rating\": {\n folder: \"ui-rating\",\n skeleton: { display: \"inline\", width: \"5.5em\", height: \"1.1em\" },\n attributes: [\n \"size\",\n \"color\",\n \"disabled\",\n \"readonly\",\n \"icon\",\n \"max-rating\",\n \"value\",\n \"clearable\",\n \"name\",\n \"parameter\",\n \"required\"\n ],\n formControl: true\n },\n \"ui-repeat\": { folder: \"ui-form\", attributes: [\"items\", \"name\"] },\n \"ui-reveal\": {\n folder: \"ui-reveal\",\n attributes: [\"size\", \"fade\", \"move\", \"rotate\", \"slide\", \"instant\", \"clip\", \"active\", \"disabled\"]\n },\n \"ui-root\": {\n folder: \"ui-root\",\n attributes: [\n \"display\",\n \"loading\",\n \"timeout\",\n \"theme\",\n \"size\",\n \"stack-with\",\n \"app\",\n \"width\",\n \"height\",\n \"icons\",\n \"emoji\",\n \"defaults\",\n \"assets\",\n \"fixed\",\n \"pure\"\n ]\n },\n \"ui-row\": {\n folder: \"ui-grid\",\n attributes: [\n \"header\",\n \"footer\",\n \"color\",\n \"columns\",\n \"equal-width\",\n \"divided\",\n \"spacing\",\n \"centered\",\n \"stretched\",\n \"stackable\",\n \"doubling\",\n \"only\",\n \"reversed\",\n \"align\",\n \"vertical-align\"\n ]\n },\n \"ui-search\": {\n folder: \"ui-search\",\n skeleton: { display: \"inline\", width: \"15em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"category\",\n \"direction\",\n \"fluid\",\n \"scrolling\",\n \"resizable\",\n \"length\",\n \"align\",\n \"loading\",\n \"disabled\",\n \"readonly\",\n \"open\",\n \"placeholder\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"url\",\n \"min-characters\",\n \"max-results\",\n \"search-delay\",\n \"delay\",\n \"full-text-search\",\n \"search-fields\",\n \"ignore-diacritics\",\n \"highlight-matches\",\n \"select-first-result\",\n \"show-no-results\",\n \"source\"\n ],\n formControl: true\n },\n \"ui-section\": {\n folder: \"ui-section\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\" }] },\n attributes: [\n \"label\",\n \"hint\",\n \"level\",\n \"parent\",\n \"icon\",\n \"badge\",\n \"description\",\n \"hide-empty\",\n \"collapsible\",\n \"open\",\n \"fold-icon\",\n \"sticky\",\n \"offset\",\n \"color\",\n \"size\",\n \"dividing\",\n \"block\",\n \"appearance\",\n \"padding\",\n \"attach-to\",\n \"scrolling\",\n \"height\",\n \"align\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"source\",\n \"selector\"\n ]\n },\n \"ui-sections\": { folder: \"ui-section\", attributes: [\"collapsing\"] },\n \"ui-segment\": {\n folder: \"ui-segment\",\n skeleton: { parts: [{ shape: \"header\" }, { shape: \"paragraph\" }] },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"padding\",\n \"clearing\",\n \"align\",\n \"attach-to\",\n \"seamless\",\n \"inverted\",\n \"loading\",\n \"disabled\",\n \"scrolling\",\n \"resizable\"\n ]\n },\n \"ui-segments\": {\n folder: \"ui-segment\",\n attributes: [\n \"size\",\n \"direction\",\n \"equal-width\",\n \"wrapping\",\n \"stackable\",\n \"appearance\",\n \"padding\",\n \"inverted\",\n \"loading\",\n \"disabled\"\n ]\n },\n \"ui-select\": {\n folder: \"ui-select\",\n skeleton: { display: \"inline\", width: \"12em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"state\",\n \"fluid\",\n \"padding\",\n \"inverted\",\n \"disabled\",\n \"readonly\",\n \"multiple\",\n \"placeholder\",\n \"value\",\n \"name\",\n \"parameter\",\n \"required\",\n \"options\"\n ],\n formControl: true\n },\n \"ui-shape\": { folder: \"ui-shape\", attributes: [\"cube\", \"text\", \"active-index\", \"direction\", \"duration\", \"flip-on\"] },\n \"ui-side\": { folder: \"ui-shape\", attributes: [] },\n \"ui-sidebar\": {\n folder: \"ui-sidebar\",\n attributes: [\"position\", \"width\", \"transition\", \"inverted\", \"blurring\", \"persistent\", \"closedby\"]\n },\n \"ui-sides\": {\n folder: \"ui-sides\",\n skeleton: { display: \"inline\", width: \"8em\", height: \"4.5em\" },\n attributes: [\"size\", \"value\", \"sides\", \"disabled\", \"readonly\", \"name\", \"parameter\", \"required\"],\n formControl: true\n },\n \"ui-site-breadcrumbs\": { folder: \"ui-site-breadcrumbs\", attributes: [\"pages\", \"current\", \"label\"] },\n \"ui-site-nav\": {\n folder: \"ui-site-nav\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 4 }] },\n attributes: [\"pages\", \"current\", \"label\", \"appearance\", \"collapsed\", \"remember\"]\n },\n \"ui-site-nav-button\": {\n folder: \"ui-site-nav-button\",\n skeleton: { display: \"inline\", width: \"2.5em\", height: \"2.5em\" },\n attributes: [\n \"color\",\n \"position\",\n \"value\",\n \"label\",\n \"description\",\n \"icon\",\n \"image\",\n \"flag\",\n \"link\",\n \"target\",\n \"appearance\",\n \"disabled\",\n \"selected\",\n \"padding\",\n \"kind\"\n ]\n },\n \"ui-site-tabs\": { folder: \"ui-site-tabs\", attributes: [\"pages\", \"current\", \"label\"] },\n \"ui-slider\": {\n folder: \"ui-slider\",\n skeleton: { width: \"16em\", height: \"1.25em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"disabled\",\n \"readonly\",\n \"hover\",\n \"inverted\",\n \"labeled\",\n \"range\",\n \"smooth\",\n \"ticked\",\n \"direction\",\n \"align\",\n \"min\",\n \"max\",\n \"step\",\n \"tick-step\",\n \"value\",\n \"end\",\n \"step-labels\",\n \"name\",\n \"parameter\",\n \"required\"\n ],\n formControl: true\n },\n \"ui-space\": { folder: \"ui-space\", attributes: [\"inline\", \"width\", \"height\", \"fluid\", \"grow\", \"shrink\"] },\n \"ui-split-panel\": { folder: \"ui-split-panel\", attributes: [\"columns\", \"rows\", \"resizable\", \"grows\", \"min-size\"] },\n \"ui-stack\": {\n folder: \"ui-stack\",\n attributes: [\"direction\", \"wrap\", \"spacing\", \"align\", \"justify\", \"fluid\", \"stackable\"]\n },\n \"ui-statistic\": {\n folder: \"ui-statistic\",\n skeleton: { display: \"inline\", width: \"6em\", height: \"4em\" },\n attributes: [\"size\", \"color\", \"direction\", \"inverted\", \"fluid\", \"value\", \"text\", \"label\"]\n },\n \"ui-statistics\": {\n folder: \"ui-statistic\",\n attributes: [\"size\", \"color\", \"direction\", \"inverted\", \"stackable\", \"stack-with\", \"equal\", \"widths\"]\n },\n \"ui-step\": {\n folder: \"ui-step\",\n attributes: [\n \"color\",\n \"selected\",\n \"completed\",\n \"disabled\",\n \"link\",\n \"target\",\n \"appearance\",\n \"icon\",\n \"heading\",\n \"description\",\n \"parent\"\n ]\n },\n \"ui-steps\": {\n folder: \"ui-step\",\n skeleton: { height: \"5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"ordered\",\n \"direction\",\n \"appearance\",\n \"fluid\",\n \"equal\",\n \"attach-to\",\n \"unstackable\",\n \"stackable\",\n \"stack-with\",\n \"widths\",\n \"inverted\"\n ]\n },\n \"ui-sticky\": { folder: \"ui-sticky\", attributes: [\"offset\", \"bottom-offset\", \"pushing\"] },\n \"ui-submenu\": {\n folder: \"ui-menu\",\n skeleton: { display: \"inline\", width: \"8em\", height: \"2.5em\" },\n attributes: [\"label\", \"icon\", \"menu\", \"flyout-label\", \"value\", \"split\", \"disabled\"]\n },\n \"ui-summary\": { folder: \"ui-parts\", attributes: [] },\n \"ui-tab\": {\n folder: \"ui-tab\",\n attributes: [\n \"value\",\n \"label\",\n \"icon\",\n \"selected\",\n \"active\",\n \"disabled\",\n \"loading\",\n \"lazy\",\n \"attach-to\",\n \"parent\",\n \"appearance\",\n \"inverted\"\n ]\n },\n \"ui-table\": {\n folder: \"ui-table\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"long\" },\n { shape: \"paragraph\", lines: 4 }\n ]\n },\n attributes: [\n \"size\",\n \"color\",\n \"celled\",\n \"collapsing\",\n \"definition\",\n \"fixed\",\n \"inverted\",\n \"resizable\",\n \"selectable\",\n \"editable\",\n \"single-line\",\n \"sortable\",\n \"appearance\",\n \"unstackable\",\n \"padding\",\n \"attach-to\",\n \"stackable\",\n \"stack-by\",\n \"scrolling\",\n \"overflowing\",\n \"stuck\",\n \"columns\",\n \"align\",\n \"vertical-align\",\n \"sort-column\",\n \"sort-direction\",\n \"client-sort\",\n \"column-defs\",\n \"caption\",\n \"rows\"\n ]\n },\n \"ui-tabs\": {\n folder: \"ui-tab\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"medium\" },\n { shape: \"paragraph\", lines: 3 }\n ]\n },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"inverted\",\n \"direction\",\n \"fluid\",\n \"padding\",\n \"align\",\n \"equal\",\n \"attach-to\",\n \"value\",\n \"activation\",\n \"history\",\n \"name\",\n \"parameter\"\n ],\n formControl: true\n },\n \"ui-term\": { folder: \"ui-terms\", attributes: [\"label\", \"value\"] },\n \"ui-terms\": { folder: \"ui-terms\", attributes: [\"direction\", \"spacing\"] },\n \"ui-text\": {\n folder: \"ui-text\",\n attributes: [\n \"size\",\n \"color\",\n \"state\",\n \"inverted\",\n \"paragraph\",\n \"bold\",\n \"heavy\",\n \"italic\",\n \"underline\",\n \"strikethrough\",\n \"highlight\",\n \"subscript\",\n \"superscript\",\n \"all-caps\",\n \"title-caps\",\n \"headline\",\n \"subhead\",\n \"serif\",\n \"sans-serif\",\n \"typewriter\",\n \"code\",\n \"disabled\"\n ]\n },\n \"ui-textarea\": {\n folder: \"ui-input\",\n skeleton: { width: \"20em\", height: \"6em\" },\n attributes: [\n \"size\",\n \"state\",\n \"appearance\",\n \"fluid\",\n \"disabled\",\n \"inverted\",\n \"readonly\",\n \"value\",\n \"name\",\n \"parameter\",\n \"placeholder\",\n \"required\",\n \"minlength\",\n \"maxlength\",\n \"rows\",\n \"grow\",\n \"max-rows\",\n \"send-on-enter\",\n \"autocomplete\",\n \"rules\"\n ],\n formControl: true\n },\n \"ui-theme-editor\": {\n folder: \"ui-theme-editor\",\n skeleton: { height: \"30em\" },\n attributes: [\"base\", \"value\", \"pages\"]\n },\n \"ui-theme-menu\": {\n folder: \"ui-theme-menu\",\n skeleton: { display: \"inline\", width: \"5em\", height: \"2.25em\" },\n attributes: [\"show\", \"size\", \"inverted\", \"compact\", \"bench\", \"bench-page\"]\n },\n \"ui-theme-token\": { folder: \"ui-theme-editor\", skeleton: { height: \"2em\" }, attributes: [\"row\"] },\n \"ui-title\": { folder: \"ui-parts\", attributes: [\"link\"] },\n \"ui-toast\": {\n folder: \"ui-toast\",\n attributes: [\n \"type\",\n \"color\",\n \"inverted\",\n \"heading\",\n \"message\",\n \"icon\",\n \"closable\",\n \"close-on-click\",\n \"display-time\",\n \"progress\",\n \"progress-up\",\n \"pause-on-hover\",\n \"compact\",\n \"actions\"\n ]\n },\n \"ui-toc\": {\n folder: \"ui-toc\",\n skeleton: {\n parts: [\n { shape: \"line\", length: \"short\" },\n { shape: \"paragraph\", lines: 6 }\n ]\n },\n attributes: [\"for\", \"scroller\", \"heading\", \"size\", \"expanded\"]\n },\n \"ui-toolbar\": {\n folder: \"ui-toolbar\",\n skeleton: { display: \"inline\", width: \"24em\", height: \"2.5em\" },\n attributes: [\n \"size\",\n \"color\",\n \"appearance\",\n \"name\",\n \"value\",\n \"choose\",\n \"position\",\n \"direction\",\n \"pagination\",\n \"icon\",\n \"labeled\",\n \"fluid\",\n \"stackable\",\n \"centered\",\n \"wrapping\",\n \"wrap\",\n \"inverted\",\n \"padding\",\n \"attach-to\",\n \"fixed\",\n \"align\",\n \"equal\",\n \"items\",\n \"shrinkable\",\n \"ticks\",\n \"icon-column\",\n \"tabs\",\n \"interactive\",\n \"show-keys\",\n \"scroll-first\",\n \"max-visible\",\n \"remember\",\n \"all-items-icon\",\n \"all-items-at-end\"\n ],\n formControl: true\n },\n \"ui-transition\": {\n folder: \"ui-transition\",\n attributes: [\n \"duration\",\n \"interrupt\",\n \"allow-repeats\",\n \"color\",\n \"inline\",\n \"inverted\",\n \"looping\",\n \"pulsating\",\n \"disabled\"\n ]\n },\n \"ui-tree\": {\n folder: \"ui-tree\",\n skeleton: { parts: [{ shape: \"paragraph\", lines: 3 }] },\n attributes: [\"choose\", \"filter\", \"label\", \"appearance\", \"column-titles\", \"sticky-path\"]\n },\n \"ui-tree-diagram\": {\n folder: \"ui-tree-diagram\",\n skeleton: { height: \"12em\" },\n attributes: [\"tree\", \"direction\", \"foldable\", \"clickable\"]\n },\n \"ui-tree-item\": {\n folder: \"ui-tree\",\n skeleton: { parts: [{ shape: \"line\" }] },\n attributes: [\"label\", \"which\", \"icon\", \"value\", \"open\", \"selected\", \"expandable\", \"group\", \"band\", \"count\", \"badge\"]\n },\n \"ui-tree-node\": {\n folder: \"ui-tree-diagram\",\n attributes: [\"label\", \"detail\", \"edge-label\", \"hover-text\", \"color\", \"kind\", \"folded\"]\n },\n \"ui-value\": { folder: \"ui-parts\", attributes: [\"text\"] },\n \"ui-video\": {\n folder: \"ui-video\",\n attributes: [\"src\", \"autoplay\", \"muted\", \"loop\", \"poster\", \"controls\", \"captions\", \"ratio\"]\n },\n \"ui-visibility\": { folder: \"ui-visibility\", attributes: [\"once\", \"continuous\", \"offset\", \"type\", \"duration\"] },\n \"ui-zoom\": { folder: \"ui-zoom\", attributes: [\"max-width\", \"max-height\", \"shrink\", \"open\", \"src\", \"alt\"] }\n}\n","import { E, UI } from \"spell/ui/core\"\nimport { ComponentPacks } from \"spell/ui/components/ui-components/ComponentPacks\"\nimport { ROOT_CATALOG } from \"./UIRoot.catalog\"\nimport type { RootCatalogEntry } from \"./UIRoot.types\"\n\n/**\n * Every family's barrel, loaded on demand (`import.meta.glob`, lazy): `../ui-card/index.ts` => `import()` of it.\n * - A LITERAL glob, so each becomes a literal `import()`:\n * the lib build reuses each family's own entry chunk (`ui-card.js`),\n * and the docs' single-file bundle (`epic/src/tools/bundle-spell-ui.js`) inlines them.\n * - Relative on purpose, the one `../` in `ui`'s components:\n * Vite resolves a glob's literal pattern, not an alias,\n * and its keys (`../ui-card/index.ts`) are what `load()` looks up.\n * - The root's own folder is left out: it is loaded already.\n * - ONLY the library's families: the docs site's bundle adds the doc-only `<ui-docs-*>` ones\n * (`src/docs-components/`), through `add()` and `DocsFamilies`.\n * - Why: a glob of them HERE made each a dynamic entry of the lib build, importing the core and other families.\n * Rolldown then moved core's modules out of `core.js`, into shared chunks every page loads\n * (epic `wwod-spell-ui`, I12; `yarn measure`'s `coreOutsideCore`).\n * - Above the class: a module-level call, made once as the module loads.\n */\nconst FAMILIES = import.meta.glob([\"../*/index.ts\", \"!../ui-root/index.ts\"])\n\n// A page with a root imports `ui-toast` when it first shows a toast; then its provider registers, after `UI.load()`\nif (E.isBrowser()) {\n void UI.load().then((ui) => ui.toasts.loadFamilyWith(() => RootLoader.load(\"ui-toast\").then(() => UI.load())))\n}\n\n/**\n * The languages Spell UI ships, by language code: each a lazy chunk of its whole dictionary.\n * - `<ui-root lang=\"es\">` (or the document's `lang`) loads it, and names every tag in it (`useLanguage()`).\n */\nconst LANGUAGES: Readonly<Record<string, () => Promise<E.Dictionary>>> = {\n es: () => import(\"spell/ui/components/components.es\").then(({ es }) => es)\n}\n\n/****************\n * ### `RootLoader`\n * Tag => family => `import()`, once per family for the whole page (every root shares the loads).\n * - Which family defines a tag comes from `ROOT_CATALOG` (generated from the vocabularies, `yarn gen:root`),\n * never from guessing at the tag's name.\n * - The catalog knows the `<ui-docs-*>` tags too:\n * they load only on a page whose bundle `add()`ed their families (the docs site's),\n * and fail like any unknown family elsewhere.\n * - Component packs' tags (`<ui-components source>`) aren't imported here:\n * a pack defines them all as its script registers it (`ComponentPacks`);\n * this only answers for them (`entryOf()`, `undefinedTags()`).\n * - A page language's tags load the same way (`<es-boton>` => `ui-button`'s family),\n * once a root has picked the language (`useLanguage()`).\n * - Static: the loads are page-wide, shared by every root (and the docs site's router).\n ****************/\nexport class RootLoader {\n /** Folder => its import, started once. Page-wide, never reset: a family defines its tags once per page. */\n private static readonly loads = new E.LoadOnce<string, void>()\n\n /** Folder => importer of its barrel, for the families a bundle added (`add()`). Page-wide. */\n private static readonly added = new Map<string, () => Promise<unknown>>()\n\n /** A page language's tag => the canonical tag it stands for (`es-boton` => `ui-button`). Page-wide. */\n private static readonly translatedTags = new Map<string, string>()\n\n /** Language code => its load, started once (`useLanguage()`). Page-wide. */\n private static readonly languages = new E.LoadOnce<string, void>()\n\n ////////////////\n // ## Tags\n ////////////////\n\n /** The folder (family) that defines `tag`; `undefined` for a tag no family defines. */\n static folderFor(tag: string): string | undefined {\n return RootLoader.catalogEntry(tag)?.folder\n }\n\n /**\n * What a root knows about `tag` before it's defined: Spell UI's catalog (a page language's tag too),\n * else a registered pack's.\n */\n static entryOf(tag: string): RootCatalogEntry | undefined {\n return RootLoader.catalogEntry(tag) ?? ComponentPacks.entryOf(tag)\n }\n\n /**\n * The distinct undefined tags under `root` that a root loads:\n * every `ui-*` one, a registered pack's, and those `alsoLoads` says yes to (a root's own: `UIRoot.ownTagLoader()`).\n */\n static undefinedTags(root: ParentNode, alsoLoads?: (tag: string) => boolean): Set<string> {\n const tags = new Set<string>()\n // not defined, or defined early and pending: its family hasn't loaded either way\n for (const { localName } of root.querySelectorAll(E.DOMElement.notAttached)) {\n const isOurs = localName.startsWith(TAG_PREFIX) || RootLoader.translatedTags.has(localName)\n if (isOurs || ComponentPacks.owns(localName) || alsoLoads?.(localName)) {\n tags.add(localName)\n }\n }\n return tags\n }\n\n /**\n * Define every tag of Spell UI's catalog NOW, before its family loads (`E.DOMElement.defineEarly()`):\n * pending elements, `:state(pending)`, attached as each family loads.\n * - So each is one of ours from the start, and keeps a function or object given to it (`on-ui-changed={f}`)\n * with no page-wide patch (`<ui-root pure>`; epic `solid-17`, P7).\n * - What the platform fixes as a tag is defined comes from the catalog: the attributes it observes\n * (its own, the shared ones, `hidden`), and whether it's a form control.\n * - Skips a tag defined already, one with no `attributes` in the catalog, and a server (no `customElements`).\n * - SIDE EFFECT: the root's family calls it once, as it loads.\n */\n static defineEarly(): void {\n if (typeof customElements === \"undefined\") return\n const shared = [...E.SharedVocabulary.attributeNames, HIDDEN]\n for (const [tag, { attributes, formControl }] of Object.entries(ROOT_CATALOG)) {\n if (!attributes) continue\n E.DOMElement.defineEarly(tag, {\n attributes: [...new Set([...attributes, ...shared])],\n isAFormControl: !!formControl\n })\n }\n }\n\n ////////////////\n // ## Loading\n ////////////////\n\n /**\n * Import the family that defines `tag`, once; `undefined` when no family does (a pack's tag: its pack defines it).\n * - The promise rejects if the import fails, and stays rejected: a failed tag stays failed.\n */\n static loadTag(tag: string): Promise<void> | undefined {\n const folder = RootLoader.folderFor(tag)\n return folder === undefined ? undefined : RootLoader.load(folder)\n }\n\n /**\n * Import `folder`'s family (which defines its tags), once.\n * - Rejects if it can't be imported, or no glob or `add()` knows the folder.\n */\n static load(folder: string): Promise<void> {\n return RootLoader.loads.get(folder, () => {\n const importer = FAMILIES[`../${folder}/index.ts`] ?? RootLoader.added.get(folder)\n return importer ? importer().then(() => undefined) : Promise.reject(RootLoader.noFamily(folder))\n })\n }\n\n ////////////////\n // ## Languages\n ////////////////\n\n /** Does Spell UI ship language `lang` (`es`, or `es-MX`'s `es`)? English needs nothing: it's built in. */\n static hasLanguage(lang: string): boolean {\n return Object.hasOwn(LANGUAGES, RootLoader.languageOf(lang))\n }\n\n /**\n * Make `lang` the page's language, once: load its dictionary, define every component in it,\n * load its texts and switch the texts to it.\n * - `useLanguage(\"es\")`: `<es-boton>` works, and `UI.i18n` says \"Cerrar\".\n * - The prefix is the language's code (`es`).\n * - The work is `UI.vocabulary.defineComponents()` and `UI.i18n.registerDictionary()`.\n * - `UI.i18n.locale` becomes `lang` as written (`es-MX`).\n * - Resolves at once for a language Spell UI doesn't ship (English included).\n * - The promise rejects if the dictionary can't be loaded, and stays rejected.\n */\n static useLanguage(lang: string): Promise<void> {\n const code = RootLoader.languageOf(lang)\n const loadDictionary = Object.hasOwn(LANGUAGES, code) ? LANGUAGES[code] : undefined\n if (!loadDictionary) return Promise.resolve()\n return RootLoader.languages.get(code, async () => {\n const [dictionary, ui] = await Promise.all([loadDictionary(), UI.load()])\n for (const [canonical, name] of Object.entries(dictionary.tags ?? {})) {\n RootLoader.translatedTags.set(`${code}-${name}`, canonical)\n }\n ui.vocabulary.defineComponents({ prefix: code, dictionary })\n ui.i18n.registerDictionary(dictionary)\n ui.i18n.locale = lang\n })\n }\n\n ////////////////\n // ## Adding\n ////////////////\n\n /**\n * Let roots load more families: `barrels`, a literal `import.meta.glob()` of family barrels\n * (`\".../ui-docs-api/index.ts\" => import()`), each keyed by its folder.\n * - Call it BEFORE a root needs one: a tag whose family failed to load stays failed.\n */\n static add(barrels: Record<string, () => Promise<unknown>>): void {\n for (const [path, importer] of Object.entries(barrels)) {\n const folder = BARREL.exec(path)?.[1]\n if (folder) RootLoader.added.set(folder, importer)\n }\n }\n\n ////////////////\n // ## Internal\n ////////////////\n\n /** Spell UI's catalog entry for `tag`, or for the canonical tag a page language's tag stands for. */\n private static catalogEntry(tag: string): RootCatalogEntry | undefined {\n const canonical = RootLoader.translatedTags.get(tag) ?? tag\n return Object.hasOwn(ROOT_CATALOG, canonical) ? ROOT_CATALOG[canonical] : undefined\n }\n\n /** `es-MX` => `es`: the language, without its region. */\n private static languageOf(lang: string): string {\n return lang.split(\"-\")[0]!.toLowerCase()\n }\n\n /** The error for a folder no glob or `add()` knows. */\n private static noFamily(folder: string): Error {\n return new Error(`RootLoader.load(): no family \"${folder}\"; add() its barrel before a root needs its tags`)\n }\n}\n\n/** A family barrel's path: its folder. */\nconst BARREL = /([\\w-]+)\\/index\\.ts$/\n\n/**\n * Prefix of the catalog's tags:\n * any other undefined tag (an app's own element) is not ours,\n * unless a registered pack's prefix starts it (`ComponentPacks.owns()`).\n */\nconst TAG_PREFIX = \"ui-\"\n\n/** The platform's `hidden`, which every tag observes as `visible` turned round (`DOMElement`, \"Shown or hidden\"). */\nconst HIDDEN = \"hidden\"\n","// oxlint-disable-next-line spell-ui/no-solid-effect -- a static helper drawing plain DOM: no members to decorate\nimport { createRenderEffect, type Accessor } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport type { E } from \"spell/ui/core\"\nimport { loaderVocabulary } from \"spell/ui/components/ui-loader/UILoader.en\"\n\n/****************\n * ### `LoaderMessage`\n * What `<ui-root loading=\"...\">` shows while its components load: a `<ui-loader>` with the message.\n * `UIRoot.Loading`, so an app swaps the look with one assignment or a subclass (`UIRoot.Loading = MyLoading`).\n * - The `ui-loader` family is imported STATICALLY, by the root's barrel (`index.ts`):\n * one of the two families a root never loads on demand (the other is `ui-placeholder`, for skeletons).\n * - Not here: this file is also loaded by the static server render (`spell/ui/static`),\n * where defining an element throws.\n * - Here, its vocabulary only: pure data.\n * - Built with the DOM, not JSX: Solid's JSX has no types for our tags.\n * - Static: an app swaps the CLASS (`UIRoot.Loading`), and it keeps no state of its own.\n ****************/\nexport class LoaderMessage {\n /** The loader, `part` set to the root's `loading` part name, its text following `message`. */\n static render(part: string, message: Accessor<string>): JSX.Element {\n const loader = document.createElement(loaderVocabulary.tag)\n for (const name of LOADER_SWITCHES) loader.setAttribute(name, \"\")\n loader.setAttribute(ALIGN, CENTER)\n loader.setAttribute(\"part\", part)\n createRenderEffect(message, (text) => {\n loader.textContent = text\n })\n return loader\n }\n}\n\n/** A class `UIRoot.Loading` accepts: `LoaderMessage` or one shaped like it. */\nexport type RootLoading = Pick<typeof LoaderMessage, \"render\">\n\n/** The loader's switches for a centred spinner with its text below: `<ui-loader visible inline align=\"center\" text>`. */\nconst LOADER_SWITCHES: readonly LoaderSwitch[] = [\"visible\", \"inline\", \"text\"]\n\n/** The loader's `align`, and the value that centres it on a line of its own. */\nconst ALIGN: LoaderSwitch = \"align\"\nconst CENTER = \"center\"\n\n/** One of the loader's attributes: its vocabulary's, or the shared `visible` (`SharedVocabulary`). */\ntype LoaderSwitch = E.AttributeName<typeof loaderVocabulary> | \"visible\"\n","// oxlint-disable-next-line spell-ui/no-solid-effect -- a static helper drawing plain DOM: no members to decorate\nimport { createRenderEffect, type Accessor } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { placeholderHeaderVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholderHeader.en\"\nimport { placeholderImageVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholderImage.en\"\nimport { placeholderLineVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholderLine.en\"\nimport { placeholderParagraphVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholderParagraph.en\"\nimport { placeholderVocabulary } from \"spell/ui/components/ui-placeholder/UIPlaceholder.en\"\nimport type { RootSkeleton } from \"./UIRoot.types\"\n\n/****************\n * ### `PlaceholderSkeleton`\n * What `<ui-root display=\"skeleton\">` draws while its components load:\n * one `<ui-placeholder>` per described element (`E.ComponentVocabulary.skeleton`),\n * in page order, stacked (inline ones side by side).\n * `UIRoot.Skeleton`, so an app swaps the look with one assignment or a subclass (`UIRoot.Skeleton = MySkeleton`).\n * - The `ui-placeholder` family is imported STATICALLY, by the root's barrel (`index.ts`):\n * with `ui-loader`, the only families a root never loads on demand.\n * Here, its vocabularies only: pure data.\n * - Built with the DOM, not JSX: Solid's JSX has no types for our tags.\n * - Sizes go through the placeholder's public tokens, so its own sheet draws them:\n * `--ui-placeholder-max-width`, `--ui-placeholder-image-height`.\n * - The element's `size` scales its skeleton (`--ui-scale`), and `fluid` fills the width.\n * - Static: an app swaps the CLASS (`UIRoot.Skeleton`), and it keeps no state of its own.\n ****************/\nexport class PlaceholderSkeleton {\n /** A `<div part>` holding a placeholder per skeleton, following `skeletons`. */\n static render(part: string, skeletons: Accessor<readonly RootSkeleton[]>): JSX.Element {\n const box = document.createElement(\"div\")\n box.setAttribute(\"part\", part)\n createRenderEffect(skeletons, (list) => {\n box.replaceChildren(...list.map((skeleton) => PlaceholderSkeleton.placeholder(skeleton)))\n })\n return box\n }\n\n /** The `<ui-placeholder>` standing for `element`. */\n static placeholder({ element, spec }: RootSkeleton): HTMLElement {\n const placeholder = PlaceholderSkeleton.create(placeholderVocabulary.tag)\n const style = placeholder.style\n const isFluid = E.Converters.boolean(element.getAttribute(FLUID), FLUID)\n if (isFluid) placeholder.setAttribute(FLUID, \"\")\n else if (spec.width) style.setProperty(\"--ui-placeholder-max-width\", spec.width)\n const size = element.getAttribute(SIZE)\n if (size && size !== MEDIUM) style.setProperty(\"--ui-scale\", `var(--ui-size-${size})`)\n if (spec.display === \"inline\") {\n style.display = \"inline-block\"\n style.verticalAlign = \"top\"\n style.marginInlineEnd = \"0.5em\"\n if (!isFluid && spec.width) style.width = spec.width\n }\n placeholder.append(...PlaceholderSkeleton.shapes(spec))\n return placeholder\n }\n\n /** The shapes inside: `parts`, or one block `width` x `height`. */\n private static shapes(spec: E.SkeletonSpec): HTMLElement[] {\n if (!spec.parts?.length) {\n const block = PlaceholderSkeleton.create(placeholderImageVocabulary.tag)\n if (spec.height) block.style.setProperty(\"--ui-placeholder-image-height\", spec.height)\n return [block]\n }\n return spec.parts.map((part) => PlaceholderSkeleton.shape(part))\n }\n\n /** One part as placeholder markup. */\n private static shape(part: E.SkeletonPart): HTMLElement {\n switch (part.shape) {\n case \"image\": {\n const image = PlaceholderSkeleton.create(placeholderImageVocabulary.tag)\n if (part.ratio) image.setAttribute(part.ratio, \"\")\n return image\n }\n case \"header\": {\n const header = PlaceholderSkeleton.create(placeholderHeaderVocabulary.tag)\n if (part.image) header.setAttribute(HEADER_IMAGE, \"\")\n header.append(...PlaceholderSkeleton.lines(HEADER_LINES))\n return header\n }\n case \"paragraph\": {\n const paragraph = PlaceholderSkeleton.create(placeholderParagraphVocabulary.tag)\n paragraph.append(...PlaceholderSkeleton.lines(part.lines ?? DEFAULT_LINES))\n return paragraph\n }\n case \"line\": {\n const [line] = PlaceholderSkeleton.lines(1)\n if (part.length) line!.setAttribute(LINE_LENGTH, part.length)\n return line!\n }\n }\n }\n\n /** `count` `<ui-placeholder-line>`s. */\n private static lines(count: number): HTMLElement[] {\n return Array.from({ length: count }, () => PlaceholderSkeleton.create(placeholderLineVocabulary.tag))\n }\n\n /** A new element named `tag`. */\n private static create(tag: string): HTMLElement {\n return document.createElement(tag)\n }\n}\n\n/** A class `UIRoot.Skeleton` accepts: `PlaceholderSkeleton` or one shaped like it. */\nexport type RootSkeletonRenderer = Pick<typeof PlaceholderSkeleton, \"render\">\n\n/** Bars in a skeleton paragraph unless it says. */\nconst DEFAULT_LINES = 3\n\n/** Bars in a skeleton header. */\nconst HEADER_LINES = 2\n\n/** `fluid`: read from the described element, set on its placeholder. */\nconst FLUID: E.AttributeName<typeof placeholderVocabulary> = \"fluid\"\n\n/** `size`, read from the described element. */\nconst SIZE = \"size\"\n\n/** The size that changes nothing. */\nconst MEDIUM = \"medium\"\n\n/** A header placeholder's square image. */\nconst HEADER_IMAGE: E.AttributeName<typeof placeholderHeaderVocabulary> = \"image\"\n\n/** A line placeholder's length. */\nconst LINE_LENGTH: E.AttributeName<typeof placeholderLineVocabulary> = \"length\"\n","import { isServer } from \"@solidjs/web\"\n\nimport { UIT } from \"spell/ui/core\"\n\n/****************\n * ### `RootBox`\n * One root's own `:host` rule:\n * `width; height; --ui-scale; --ui-stack-with` from its `width`, `height`, `size` and `stack-with`.\n * - `UIRoot.hostLayout`: `UIComponent` writes it into a sheet of the root's own, adopted into its shadow,\n * not an inline `style`: the DOM element's `style` attribute is the author's. Not a custom state either:\n * the token is read by style queries inside `@media`,\n * which a `:state()` rule left stale in WebKit (`UIT.STACK_WITH_CLASS`).\n * - Lengths are checked with `CSS.supports()`, `stack-with` against its values, so an attribute can never inject\n * other declarations; a static server render (no `CSS` in node) checks lengths against `SERVER_LENGTH` instead.\n * - STATIC and instance-free: pure, and the static server render needs it with no sheet to write.\n ****************/\nexport class RootBox {\n /** The declarations for these values; `\"\"` when there's nothing to set. */\n static css({ width, height, size, stackWith }: RootBoxValues): string {\n const declarations = RootBox.lengths({ width, height }).map(([property, value]) => `${property}: ${value}`)\n if (size && size !== MEDIUM) declarations.push(`--ui-scale: var(--ui-size-${size})`)\n if (UIT.StackWithValues.includes(stackWith as UIT.StackWith)) {\n declarations.push(`${UIT.STACK_WITH_TOKEN}: ${stackWith}`)\n }\n return declarations.join(\"; \")\n }\n\n /** A box (block, scrolling) when a width or height is set. */\n static isBox({ width, height }: Pick<RootBoxValues, \"width\" | \"height\">): boolean {\n return RootBox.lengths({ width, height }).length > 0\n }\n\n /** `[property, value]` for each of `width` / `height` that is a valid length (`window`: the viewport's). */\n private static lengths(values: Pick<RootBoxValues, \"width\" | \"height\">): [string, string][] {\n const lengths: [string, string][] = []\n for (const property of LENGTH_PROPERTIES) {\n const value = RootBox.length(property, values[property])\n if (value) lengths.push([property, value])\n }\n return lengths\n }\n\n /** `value` as a CSS `property` value: `window` => the viewport's, a valid length as is, else nothing. */\n private static length(property: LengthProperty, value: string | undefined): string | undefined {\n const trimmed = value?.trim()\n if (!trimmed) return undefined\n if (trimmed === WINDOW) return VIEWPORT[property]\n if (isServer) return SERVER_LENGTH.test(trimmed) ? trimmed : undefined\n return CSS.supports(property, trimmed) ? trimmed : undefined\n }\n}\n\n/** A root's attributes the box is built from. */\nexport type RootBoxValues = {\n /** `width`: a CSS length or `window`. */\n width?: string\n /** `height`: a CSS length or `window`. */\n height?: string\n /** `size`: scales the subtree; `medium` is no change. */\n size?: string\n /** `stack-with`: one of `UIT.StackWithValues`. */\n stackWith?: string\n}\n\n/** The two lengths a root takes, in declaration order. */\nconst LENGTH_PROPERTIES = [\"width\", \"height\"] as const\n\n/** One of `LENGTH_PROPERTIES`. */\ntype LengthProperty = (typeof LENGTH_PROPERTIES)[number]\n\n/** `width` / `height` value meaning \"the viewport's\". */\nconst WINDOW = \"window\"\n\n/** The viewport's length, per property: `dvh` follows a phone's address bar. */\nconst VIEWPORT = { width: \"100dvw\", height: \"100dvh\" } as const\n\n/** The size that changes nothing. */\nconst MEDIUM = \"medium\"\n\n/**\n * A length a static server render accepts for `width` / `height` (node has no `CSS.supports()`): numbers, units,\n * `%`, `calc()` / `var()` / `min()` ... -- never `;`, `:`, braces or quotes, which could inject other declarations.\n */\nconst SERVER_LENGTH = /^[\\w.%+\\-*/(), ]+$/\n","/**\n * The types and helpers the `ui-root` family's files share: its component (`UIRoot`), its loader and renderers,\n * and the generated catalog; a component pack's catalog (`ComponentPack.catalog`) has the catalog's shape.\n * - Pure data, at the bottom of the folder's imports: `import type` only, so node can load it (`yarn gen:root`).\n */\n\nimport type { E } from \"spell/ui/core\"\nimport type { rootVocabulary } from \"./UIRoot.en\"\n\n////////////////\n// ## Vocabulary and catalog\n////////////////\n\n/** `rootVocabulary`'s type. */\nexport type RootVocabulary = typeof rootVocabulary\n\n/**\n * What `<ui-root>` knows about a tag before its family loads (`UIRoot.catalog.ts`, generated); a component pack's\n * catalog has the same shape (`ComponentPack.catalog`, built by `spell pack build`).\n */\nexport type RootCatalogEntry = {\n /**\n * Its folder under `components/` (or `src/docs-components/`): its family, imported to define it. A pack's:\n * the folder of its component in the pack's package.\n */\n readonly folder: string\n /** What `display=\"skeleton\"` draws in its place; none: hidden until ready (or covered by its owner's). */\n readonly skeleton?: E.SkeletonSpec\n /**\n * Its vocabulary's attribute names, aliases too: what it observes, besides the shared ones,\n * when the root defines it before its family loads (`DOMElement.defineEarly()`)\n * - None in a catalog written before them (an older pack's): that tag isn't defined early.\n */\n readonly attributes?: readonly string[]\n /** It's a form control (its vocabulary's `formControl`): fixed as the root defines it early */\n readonly formControl?: true\n}\n\n////////////////\n// ## Loading\n////////////////\n\n/** One skeleton to draw: the element it stands for and its description. */\nexport type RootSkeleton = {\n /** Element inside the root that the skeleton stands for. */\n readonly element: Element\n /** Its tag's skeleton, from the catalog. */\n readonly spec: E.SkeletonSpec\n}\n\n/** Why a tag inside a root didn't load: no such component, its family's import failed, or not ready in time. */\nexport const RootFailureReasons = [\"unknown\", \"failed\", \"timeout\"] as const\n\n/** One of `RootFailureReasons`. */\nexport type RootFailureReason = (typeof RootFailureReasons)[number]\n\n/** One tag (or component pack) that didn't load: `ui-ready`'s `failed` list, `ui-error`'s detail. */\nexport type RootFailure = {\n /** The tag, e.g. `ui-card`. */\n readonly tag: string\n /** Why it didn't load. */\n readonly reason: RootFailureReason\n /** What its family's import (or its pack's load) threw (`failed` only). */\n readonly error?: unknown\n /** A component pack's `source` (`tag` is `ui-components`): the pack that didn't load. */\n readonly source?: string\n}\n\n/****************\n * ### `RootTimeout`\n * `timeout=\"5s\"` => milliseconds.\n * - Static: a pure parse, kept apart from `UIRoot` so tests reach it.\n ****************/\nexport class RootTimeout {\n /** `5s`, `2.5s`, `500ms`, `3000` => ms; anything else (or nothing) => `DEFAULT_TIMEOUT`. */\n static parse(value: string | undefined): number {\n const match = TIMEOUT.exec(value ?? \"\")\n if (!match) return DEFAULT_TIMEOUT\n const amount = Number(match[1])\n return match[2] === \"s\" ? amount * 1000 : amount\n }\n}\n\n/** The default `timeout`, ms: `rootVocabulary`'s default, `5s`. */\nconst DEFAULT_TIMEOUT = 5000\n\n/** A `timeout` value: a number, then `ms`, `s` or nothing (ms). */\nconst TIMEOUT = /^\\s*(\\d+(?:\\.\\d+)?)\\s*(ms|s)?\\s*$/\n","/**\n * Every name `<ui-root>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - No Fomantic counterpart, so no class grammar: every attribute is a property (`enum`, `string`, `boolean`),\n * plus `size` (kind `size`, for the shared value set), which the root applies to its subtree, not to a class.\n * - Design: `epics/ui-component-creation/ui-component-creation.plan.html`, Overview 3.5 and D51-D68.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `<ui-root>`\n * The top of a page or app: loads the families its subtree uses on demand, sets icon packs, emoji names,\n * theme and size for what's inside, and hides it until every component in it is ready.\n ****************/\nexport const rootVocabulary = {\n tag: \"ui-root\",\n icon: \"sitemap\",\n topics: [\"layout\", \"containers\", \"loading\", \"basic\"],\n aka: [\"app shell\", \"app root\", \"provider\", \"loader\", \"lazy loading\", \"theme provider\"],\n noun: \"root\",\n partOfSpeech: \"structure\",\n description:\n \"A root loads the components inside it on demand, sets their theme and size, and shows them once they're ready.\",\n attributes: [\n {\n name: \"display\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"skeleton\", \"when-ready\", \"immediately\"],\n default: \"skeleton\",\n description:\n \"While components load: `skeleton` -- a placeholder per component that describes one (else nothing), then \" +\n \"the content; `when-ready` -- nothing (space kept) \" +\n \"until everything is ready; `immediately` -- draw as things arrive.\"\n },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"string\",\n description:\n \"A loader with this message while components load (bare `loading`: the default text). Not with `immediately`.\"\n },\n {\n name: \"timeout\",\n group: \"behaviour\",\n kind: \"string\",\n default: \"5s\",\n description:\n \"Longest wait before showing the content anyway: `5s`, `500ms`, or milliseconds. A component that didn't \" +\n \"load fires `ui-error` and shows its native fallback.\"\n },\n {\n name: \"theme\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"light\", \"dark\"],\n description: \"Colour scheme of everything inside.\"\n },\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size of everything inside, `mini` ... `massive`.\"\n },\n {\n name: \"stack-with\",\n group: \"layout\",\n kind: \"enum\",\n values: UIT.StackWithValues,\n description:\n \"What stacking layouts inside measure (`stackable`, `doubling` ... on grids, cards, steps, forms, items, \" +\n \"statistics; tables' `stack-by`): `container` -- each element's own width (their default); `page` -- the \" +\n \"screen's, as in Fomantic. Sets the `--ui-stack-with` token; an element's own `stack-with` wins.\"\n },\n {\n name: \"app\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"This page is an app, not a document: it starts with the arrow cursor and no text selection, \" +\n \"so nothing is left to the browser's guess. Text meant to be selected opts back in (`ui-selectable`).\"\n },\n {\n name: \"width\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"Width as a CSS length (`600px`, `40em`, `50%`) or `window` (the viewport's). With a width or height the root \" +\n \"is a box that scrolls its own content, in a region named by the host's `aria-label` (name each one when a \" +\n \"page has several).\"\n },\n {\n name: \"height\",\n group: \"layout\",\n kind: \"string\",\n description: \"Height as a CSS length or `window` (the viewport's, following a phone's address bar).\"\n },\n {\n name: \"icons\",\n group: \"content\",\n kind: \"string\",\n description:\n \"Icon packs for everything inside, comma-separated: built-in ids (`fa7-free`, `fa7-brands`, `fomantic`) or \" +\n \"`pack.js` URLs, later wins. Added over the outer root's packs (or the page's).\"\n },\n {\n name: \"emoji\",\n group: \"content\",\n kind: \"enum\",\n values: [\"cldr\", \"fomantic\"],\n description: \"Emoji names for everything inside: `cldr` (the default) or `fomantic`.\"\n },\n {\n name: \"defaults\",\n group: \"appearance\",\n kind: \"json\",\n reflect: false,\n description:\n \"PROPERTY: attribute values for the elements inside that don't set them, by tag: \" +\n '`{ \"ui-button\": { appearance: \"pill\" }, \"ui-segment\": { appearance: \"raised\" } }`. ' +\n \"An element's own attribute, or a property set in code, wins; a root inside another adds to the outer \" +\n \"root's, attribute by attribute. Never what an element shows (`label`, `value`, `text`): those warn, as \" +\n \"does a value the attribute doesn't take.\"\n },\n {\n name: \"assets\",\n group: \"link\",\n kind: \"string\",\n description:\n \"Folder the built-in icon packs load from (`<assets>icon-packs/<id>/pack.js`), relative to the page; \" +\n \"default: beside the library.\"\n },\n {\n name: \"fixed\",\n group: \"layout\",\n kind: \"boolean\",\n description:\n \"Fills the viewport and stays there (`position: fixed`): the page never scrolls, the root does. A \" +\n \"full-page app shell. On iOS the keyboard can cover fields near the bottom.\"\n },\n {\n name: \"pure\",\n group: \"advanced\",\n kind: \"boolean\",\n description:\n \"Leaves the browser's `setAttribute()` alone. Spell UI's own components keep a function or object a \" +\n \"framework gives them before they load (`on-ui-changed={f}`, `options={[...]}`) either way: the root \" +\n \"defines them up front. Without `pure`, another library's custom elements keep them too; with it, they \" +\n \"get text, as the browser makes it. Read once, as the page first needs it.\"\n }\n ],\n events: [\n {\n name: \"ui-ready\",\n detail:\n \"{ failed: { tag: string, reason: 'unknown' | 'failed' | 'timeout', error?: unknown, source?: string }[] }\",\n description:\n \"Everything inside is ready (or the timeout passed): the content shows. `failed` lists what didn't load.\"\n },\n {\n name: \"ui-error\",\n detail: \"{ tag: string, reason: 'unknown' | 'failed' | 'timeout', error?: unknown, source?: string }\",\n cancelable: true,\n description:\n \"A tag inside couldn't load: no such component (`unknown`), its family didn't load (`failed`), or it \" +\n \"wasn't ready in time (`timeout`); or a component pack didn't load (`tag` `ui-components`, with its \" +\n \"`source`). Cancel it to skip the console warning.\"\n }\n ],\n slots: [\n {\n name: \"\",\n description:\n \"The page or app: any markup, with `ui-*` elements anywhere inside, and the tags of the component packs its \" +\n \"`<ui-components>` name.\"\n }\n ],\n parts: [\n { name: \"loading\", description: \"The `<ui-loader>` shown with `loading`.\" },\n { name: \"skeleton\", description: 'The box of `<ui-placeholder>`s shown with `display=\"skeleton\"`.' },\n {\n name: \"scroller\",\n description:\n \"With `width` / `height` / `fixed`: the region around the content that scrolls (a tab stop, named by the host's \" +\n '`aria-label`, else \"Content\").'\n }\n ],\n states: [\n { name: \"loading\", description: \"Components inside are still loading.\" },\n { name: \"ready\", description: \"Everything inside is ready (or the timeout passed).\" },\n { name: \"light\", description: '`theme=\"light\"`.' },\n { name: \"dark\", description: '`theme=\"dark\"`.' },\n { name: \"box\", description: \"A `width` or `height` is set: a block box that scrolls its content.\" },\n { name: \"fixed\", description: \"Pinned to the viewport.\" },\n { name: \"app\", description: \"`app`: this page is an app.\" }\n ],\n texts: [\n { key: \"loading\", text: \"Loading…\", description: \"The loader's message for a bare `loading`.\" },\n {\n key: \"label\",\n text: \"Content\",\n description: \"Name of the scrolling region of a root with a box, when the host has no `aria-label`.\"\n }\n ]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UI } from \"spell/ui/core\"\nimport { ComponentPacks } from \"spell/ui/components/ui-components/ComponentPacks\"\nimport { componentsVocabulary } from \"spell/ui/components/ui-components/UIComponents.en\"\nimport { SOURCE } from \"spell/ui/components/ui-components/UIComponents.types\"\nimport { LoaderMessage, type RootLoading } from \"./LoaderMessage\"\nimport { PlaceholderSkeleton, type RootSkeletonRenderer } from \"./PlaceholderSkeleton\"\nimport { RootBox } from \"./RootBox\"\nimport { RootLoader } from \"./RootLoader\"\nimport { RootTimeout, type RootFailure, type RootSkeleton, type RootVocabulary } from \"./UIRoot.types\"\nimport { rootVocabulary } from \"./UIRoot.en\"\n\nimport rootCSS from \"./UIRoot.css?inline\"\n\n/****************\n * ### `UIRoot`\n * The component behind `<ui-root>`: the top of a page or app,\n * a `<slot>` for the page, plus what shows while it loads.\n *\n * - Loads on demand: every undefined `ui-*` tag inside (now, and as content is added)\n * imports its family once (`RootLoader`); nothing is imported up front.\n * - The page's language: its own `lang`, else the closest one above it (the document's).\n * - A language Spell UI ships (`es`) loads first, once per page (`RootLoader.useLanguage()`).\n * - Then its tags load their families as `ui-*` tags do (`<es-boton>`), and the texts people read are in it.\n * - Component packs: each `<ui-components source>` inside loads its pack's script once per page\n * (`ComponentPacks`), which defines the pack's tags (`epic-*` ...).\n * - Then the root treats them as its own:\n * ready waits for them, skeletons come from the pack's catalog, unknown ones are reported.\n * - A pack that fails to load doesn't stop the root getting ready: a console error names its `source`.\n * - Ready: every family settled, then every `ui-*` element inside `ready`\n * (a nested root: its own `settled`), or the `timeout`.\n * - Then `:state(ready)`, `ui-ready { failed }`, and the content shows.\n * - Each tag that didn't load fires a cancelable `ui-error` first.\n * - Content added later loads too, but is never hidden again.\n * - While loading (`display`, not `immediately`):\n * the slot is hidden by an INLINE style (`canRenderUnstyled`, before any sheet), with its space kept (`when-ready`),\n * or not drawn at all when the `loading` message or the skeletons show instead.\n * - `skeleton`: every element inside whose tag describes a skeleton gets a `<ui-placeholder>`\n * in the root's shadow, in page order.\n * - Described by `E.ComponentVocabulary.skeleton`, in the generated catalog, or in a registered pack's catalog.\n * - One inside another is covered by it.\n * - Found again when a pack registers (its catalog comes with it).\n * - Nothing described: as `when-ready`.\n * - What shows while loading is swappable:\n * `UIRoot.Loading` (`LoaderMessage`, a `<ui-loader>`) and `UIRoot.Skeleton` (`PlaceholderSkeleton`).\n * - Settings for everything inside (`E.RootSettings`); nested roots inherit what they don't set:\n * - `icons`: a child icon-pack set over the outer root's, or the page's\n * - `emoji`: a name set\n * - `defaults`: attribute values for the elements inside that don't set them, by tag\n * (`{ \"ui-button\": { appearance: \"pill\" } }`; `DOMElement`, \"Root defaults\")\n * - a change redraws the icons / emoji / defaulted elements inside (`E.RootSettings.generation`)\n * - Theme, size, box: `:state(light | dark)`, `:state(box)`, `:state(fixed)` in `UIRoot.css`;\n * width, height and the subtree's `--ui-scale` in the root's own `:host` rule (`RootBox`, `hostLayout`).\n * - `stack-with`: the subtree's `--ui-stack-with` token (also in `RootBox`),\n * which every stacking element without a `stack-with` of its own follows (`UIT.STACK_WITH_TOKEN`).\n * - Static server render (`spell/ui/static`): nothing loads and nothing is hidden;\n * the root is a plain wrapper (`serverWrapper()`).\n * None of its `@E.onChange` effects runs there (none writes the DOM element).\n * - A subclass is a root too (`elementSetup.root`), under its own tag, e.g. `<spell-viewer>`:\n * - it draws an app instead of a `<slot>` (`content()`)\n * - it loads what's inside its shadow root too (`contentRoots`), and tags of its own (`ownTagLoader()`)\n * - its vocabulary has the root's names, plus its own\n ****************/\nexport class UIRoot<V extends E.ComponentVocabulary = RootVocabulary> extends E.UIComponent<V> {\n @E.proto static vocabulary: E.ComponentVocabulary = rootVocabulary\n // typed, not `satisfies`: a subclass states other keys (`<spell-viewer>`)\n @E.protoMerged static elementSetup: Partial<E.ElementSetup> = {\n styleSheets: { root: rootCSS },\n delegatesFocus: false,\n canRenderUnstyled: true,\n root: true,\n // `loading`: a message while its components load\n loading: \"its own\"\n }\n\n /** What shows with `loading`: swap it for another look (`UIRoot.Loading = MyLoading`). */\n @E.proto static Loading: RootLoading = LoaderMessage\n\n /** What shows with `display=\"skeleton\"`: swap it for another look (`UIRoot.Skeleton = MySkeleton`). */\n @E.proto static Skeleton: RootSkeletonRenderer = PlaceholderSkeleton\n\n declare Loading: RootLoading\n declare Skeleton: RootSkeletonRenderer\n\n ////////////////\n // ## Ready\n ////////////////\n\n /** Everything inside is ready (or the timeout passed). */\n @E.state accessor contentIsReady = false\n\n /**\n * Shown as ready? `:state(ready)`.\n * - A static server render waits for nothing: ready at once.\n */\n @E.cssState(\"ready\")\n get looksReady(): boolean {\n return isServer || this.contentIsReady\n }\n\n /** Still loading? `:state(loading)`. */\n @E.cssState(\"loading\")\n get isLoading(): boolean {\n return !this.looksReady\n }\n\n /** Resolves `settled`. */\n private resolveSettled!: (failures: readonly RootFailure[]) => void\n\n /** Resolves with what didn't load, once ready; an outer root waits for it. */\n readonly settled = new Promise<readonly RootFailure[]>((resolve) => (this.resolveSettled = resolve))\n\n ////////////////\n // ## While loading\n ////////////////\n\n /** The display mode. */\n private get displayMode(): NonNullable<UIRoot[\"display\"]> {\n return this.display ?? DISPLAY.skeleton\n }\n\n /** The skeletons to draw while loading (`display=\"skeleton\"`), found when loading starts. */\n @E.state accessor skeletons: readonly RootSkeleton[] = []\n\n /** The `loading` message shows. */\n private get showsLoadingMessage(): boolean {\n return !this.contentIsReady && this.displayMode !== DISPLAY.immediately && this.loading !== undefined\n }\n\n /** The skeletons show. */\n private get showsSkeletons(): boolean {\n return !this.contentIsReady && this.displayMode === DISPLAY.skeleton && this.skeletons.length > 0\n }\n\n /** The loader's message: `loading`'s value, or the default text for a bare `loading`. */\n private get loadingMessage(): string {\n return this.loading || (this.runtimeText(\"loading\") ?? \"\")\n }\n\n /**\n * Inline style of the content (the slot): hidden while loading (unless `immediately`);\n * not drawn while the message or skeletons show.\n */\n protected get contentStyle(): string | undefined {\n if (this.contentIsReady || this.displayMode === DISPLAY.immediately) return undefined\n return this.showsLoadingMessage || this.showsSkeletons ? \"display: none\" : \"visibility: hidden\"\n }\n\n /**\n * Text `key` once the runtime is loaded (tracked), else `undefined`:\n * the root renders at once (`canRenderUnstyled`), before `UI.i18n` exists,\n * and `translationForKey()` throws until then.\n */\n private runtimeText(key: E.TextKey<RootVocabulary>): string | undefined {\n return this.isReady ? this.translationForKey(key as never) : undefined\n }\n\n ////////////////\n // ## Theme and box\n ////////////////\n\n /** `theme=\"light\"`? `:state(light)`. */\n @E.cssState(\"light\")\n get isLight(): boolean {\n return this.theme === \"light\"\n }\n\n /** `theme=\"dark\"`? `:state(dark)`. */\n @E.cssState(\"dark\")\n get isDark(): boolean {\n return this.theme === \"dark\"\n }\n\n /** A box (a valid `width` / `height`)? `:state(box)`. */\n @E.cssState(\"box\")\n get isBox(): boolean {\n return RootBox.isBox({ width: this.width, height: this.height })\n }\n\n /** `app`? `:state(app)`, which the runtime's page sheet reads (`native.css`). */\n @E.cssState(\"app\")\n get isApp(): boolean {\n return this.app\n }\n\n /** `fixed`? `:state(fixed)`. */\n @E.cssState(\"fixed\")\n get isFixed(): boolean {\n return !!this.fixed\n }\n\n /**\n * A box (`width` / `height` / `fixed`): its content scrolls in an inner region,\n * a tab stop with a name (as a scrolling `<ui-table>`'s), so people on a keyboard can scroll it --\n * Firefox doesn't make a scroller focusable by itself.\n */\n protected get scrolls(): boolean {\n return this.isBox || this.isFixed\n }\n\n /**\n * The root's own `:host` rule (`RootBox`): width, height, `--ui-scale`, `--ui-stack-with`.\n * - `UIComponent` writes it into the root's own sheet; the server wrapper's inline style is the same.\n */\n @E.derived\n protected get hostLayout(): string {\n return RootBox.css({ width: this.width, height: this.height, size: this.size, stackWith: this.stackWith })\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n if (isServer) return this.serverWrapper()\n return (\n <>\n <Show when={this.showsLoadingMessage}>\n {this.Loading.render(this.partForName(\"loading\" as never), () => this.loadingMessage)}\n </Show>\n <Show when={this.showsSkeletons}>\n {this.Skeleton.render(this.partForName(\"skeleton\" as never), this.$.skeletons)}\n </Show>\n <Show when={this.scrolls} fallback={this.content()}>\n {this.scroller(this.content())}\n </Show>\n </>\n )\n }\n\n /**\n * What the root shows once ready: a `<slot>` for the page, hidden while loading (`contentStyle`).\n * - A subclass that draws its own content puts it here, with `contentStyle` on its outside (`<spell-viewer>`).\n */\n protected content(): JSX.Element {\n return <slot class={this.rootClass} style={this.contentStyle} />\n }\n\n /**\n * The root in a static server render: a `<div>` around the content,\n * carrying its classes and theme / box states (the flattener's `data-state`),\n * never hidden -- a static page has nothing to wait for.\n * - Its inline style is what the browser puts on the DOM element:\n * `RootBox`'s width, height, `--ui-scale` and `--ui-stack-with`, and `display: contents` unless it's a box\n * (the DOM element's own `display`, which a static stylesheet drops).\n * - A box scrolls its content in the same named region as in the browser.\n */\n private serverWrapper(): JSX.Element {\n return (\n <div class={this.rootClass} style={this.serverStyle}>\n <Show when={this.scrolls} fallback={<slot />}>\n {this.scroller(<slot />)}\n </Show>\n </div>\n )\n }\n\n /**\n * The scrolling region of a box around `slot`: a tab stop named by the DOM element's `aria-label`, else \"Content\".\n */\n private scroller(slot: JSX.Element): JSX.Element {\n return (\n <div\n part={this.partForName(\"scroller\" as never)}\n tabindex=\"0\"\n role=\"region\"\n aria-label={this.attributes[\"aria-label\"] ?? this.runtimeText(\"label\")}\n >\n {slot}\n </div>\n )\n }\n\n /** The server wrapper's inline style: `RootBox`'s declarations, or `display: contents` when not a box. */\n private get serverStyle(): string | undefined {\n const declarations = [this.scrolls ? \"\" : SERVER_CONTENTS, this.hostLayout].filter(Boolean)\n return declarations.join(\"; \") || undefined\n }\n\n ////////////////\n // ## Loading\n ////////////////\n\n /** What didn't load, in order. */\n private readonly failures: RootFailure[] = []\n\n /** `tag reason` pairs already reported, so each is reported once. */\n private readonly reportedFailures = new Set<string>()\n\n /** Elements inside not ready yet (for the timeout's report). */\n private readonly elementsNotReady = new Set<Element>()\n\n /** Elements already awaited. */\n private readonly awaitedElements = new WeakSet<Element>()\n\n /** `<ui-components>` whose pack load has started. */\n private readonly packElements = new WeakSet<Element>()\n\n /** `source`s of the packs still loading (for the timeout's report). */\n private readonly packsLoading = new Set<string>()\n\n /** Started loading (on first connect). */\n private hasStarted = false\n\n /**\n * Where the content the root loads is: the DOM element's children.\n * - A subclass that draws its content in its shadow root adds that (`<spell-viewer>`).\n */\n protected get contentRoots(): readonly ParentNode[] {\n return [this.domElement]\n }\n\n /**\n * How to load `tag`, an undefined tag the root loads ITSELF, beyond Spell UI's and the packs';\n * `undefined` for any other tag.\n * - None here: a subclass's own (`<spell-viewer>`: `spell-editor` => `spell-editor.js`).\n */\n protected ownTagLoader(_tag: string): (() => Promise<void>) | undefined {\n return undefined\n }\n\n /**\n * While connected, load what's inside now (first connect: and wait for it), and whatever is added later;\n * returns the undo.\n * - Declared before `onSettingsChanged()`: loading starts before the settings are handed out, as it always has.\n */\n @E.whileConnected\n protected watch(): E.Disposer {\n // oxlint-disable-next-line spell-ui/no-mutation-observer -- only while connected: `@E.watches` lasts the element's whole life\n const observer = new MutationObserver(() => void this.loadUndefined())\n for (const root of this.contentRoots) observer.observe(root, { childList: true, subtree: true })\n if (this.hasStarted) void this.loadUndefined()\n else {\n this.hasStarted = true\n void this.start()\n }\n return () => observer.disconnect()\n }\n\n /** Load, wait (or time out), then show the content and say so. */\n @E.untracked\n private async start() {\n await this.useLanguage()\n if (this.displayMode === DISPLAY.skeleton) this.skeletons = this.findSkeletons()\n const timeout = E.after(RootTimeout.parse(this.timeout) / 1000, () => \"timeout\" as const)\n const outcome = await Promise.race([this.settle(), timeout])\n timeout.cancel()\n if (outcome === \"timeout\") this.timedOut()\n this.contentIsReady = true\n this.send(\"ui-ready\" as never, { failed: [...this.failures] })\n this.resolveSettled([...this.failures])\n }\n\n /**\n * Load the page's language, when Spell UI ships it (`RootLoader.useLanguage()`):\n * the root's `lang`, else the closest one above it.\n * - One that fails to load is reported, and the root goes on in English.\n */\n private async useLanguage() {\n const lang = this.domElement.closest(\"[lang]\")?.getAttribute(\"lang\")\n if (!lang || !RootLoader.hasLanguage(lang)) return\n try {\n await RootLoader.useLanguage(lang)\n } catch (error) {\n E.Warnings.warn(\"<ui-root>\", `the ${lang} names didn't load:`, error)\n }\n }\n\n /**\n * Rounds of: load every pack and import every undefined tag's family, then await every element inside,\n * until nothing new turns up.\n * - A pack's tags are defined by the end of the first round, so the next one sees them.\n */\n private async settle(): Promise<void> {\n for (let round = 0; round < MAX_ROUNDS; round++) {\n await this.loadUndefined()\n const toAwait = this.elementsToAwait()\n if (!toAwait.length) return\n await Promise.all(toAwait.map((element) => this.whenReady(element)))\n }\n }\n\n /**\n * Each element inside whose tag describes a skeleton (Spell UI's catalog, or a registered pack's),\n * in page order, skipping those inside another one.\n */\n private findSkeletons(): RootSkeleton[] {\n const skeletons: RootSkeleton[] = []\n for (const element of this.elementsInside()) {\n const spec = RootLoader.entryOf(element.localName)?.skeleton\n if (!spec || skeletons.some((outer) => outer.element.contains(element))) continue\n skeletons.push({ element, spec })\n }\n return skeletons\n }\n\n /**\n * Load every new pack inside, and import the family of every undefined `ui-*` tag; resolves once each settled.\n * - An undefined tag of a registered pack is `unknown` when its catalog doesn't list it, else `failed`:\n * the pack defines every tag it lists as it registers. Unless its `define()` still runs (it loads its families\n * first): then it waits for it (`ComponentPacks.whileDefining()`).\n */\n private loadUndefined(): Promise<void> {\n const loads = this.loadPacks()\n for (const tag of this.undefinedTags()) {\n const load = this.ownTagLoader(tag)?.() ?? RootLoader.loadTag(tag) ?? ComponentPacks.whileDefining(tag)\n if (load) loads.push(load.catch((error: unknown) => this.fail({ tag, reason: \"failed\", error })))\n else if (RootLoader.entryOf(tag))\n this.fail({ tag, reason: \"failed\", error: new Error(\"its pack didn't define it\") })\n else this.fail({ tag, reason: \"unknown\" })\n }\n return Promise.all(loads).then(() => undefined)\n }\n\n /**\n * Start loading the pack of each `<ui-components source>` inside not seen yet\n * (`ComponentPacks.load()`: once per page);\n * each promise settles once its pack registered, or failed (reported).\n */\n private loadPacks(): Promise<void>[] {\n const loads: Promise<void>[] = []\n for (const element of this.elementsInside(`${componentsVocabulary.tag}[${SOURCE}]`)) {\n const source = element.getAttribute(SOURCE)\n if (!source || this.packElements.has(element)) continue\n this.packElements.add(element)\n this.packsLoading.add(source)\n const load = ComponentPacks.load(source).then(\n () => this.onPackLoaded(),\n (error: unknown) => this.fail({ tag: componentsVocabulary.tag, reason: \"failed\", error, source })\n )\n loads.push(load.finally(() => this.packsLoading.delete(source)))\n }\n return loads\n }\n\n /** A pack registered: while the skeletons still show, draw its tags' too (its catalog is known now). */\n @E.untracked\n private onPackLoaded() {\n if (this.contentIsReady || this.displayMode !== DISPLAY.skeleton) return\n this.skeletons = this.findSkeletons()\n }\n\n /**\n * Elements inside whose family has loaded, not awaited yet.\n * - Not a pending one (defined early, its family failed or not loaded): it would never get ready.\n */\n private elementsToAwait(): E.DOMElement[] {\n return this.elementsInside().filter(\n (element): element is E.DOMElement =>\n element instanceof E.DOMElement && !E.DOMElement.isPending(element) && !this.awaitedElements.has(element)\n )\n }\n\n /** Resolves once `element` is ready: a nested root once IT is settled. */\n private async whenReady(element: E.DOMElement): Promise<void> {\n this.awaitedElements.add(element)\n this.elementsNotReady.add(element)\n await element.ready\n if (element.component instanceof UIRoot) await element.component.settled\n this.elementsNotReady.delete(element)\n }\n\n /** Elements inside (in `contentRoots`) matching `selector`, in page order. */\n private elementsInside(selector = \"*\"): Element[] {\n return this.contentRoots.flatMap((root) => [...root.querySelectorAll(selector)])\n }\n\n /** The distinct undefined tags inside that the root loads: Spell UI's, a registered pack's, its own. */\n private undefinedTags(): Set<string> {\n const alsoLoads = (tag: string) => this.ownTagLoader(tag) !== undefined\n return new Set(this.contentRoots.flatMap((root) => [...RootLoader.undefinedTags(root, alsoLoads)]))\n }\n\n /** The timeout passed: report what's still undefined or not ready, and the packs still loading. */\n private timedOut() {\n for (const tag of this.undefinedTags()) {\n if (RootLoader.entryOf(tag) || this.ownTagLoader(tag)) this.fail({ tag, reason: \"timeout\" })\n }\n for (const element of this.elementsNotReady) this.fail({ tag: element.localName, reason: \"timeout\" })\n for (const source of this.packsLoading) this.fail({ tag: componentsVocabulary.tag, reason: \"timeout\", source })\n }\n\n /**\n * Record what didn't load (once per tag, reason and pack):\n * `ui-error`, then, unless cancelled, a console warning --\n * an ERROR naming the `source` for a pack, whose whole set of tags is missing.\n * - a stale catalog (`E.StaleCatalogError`): first told to the page server, when the page has one\n * (`SPELL_SERVER.reportStale()`, once a page): it rebuilds the catalog in a worktree, and live reload brings the\n * page back (epic `epic-engine` P54); a published page, or one from disk, has only the warning\n */\n private fail(failure: RootFailure) {\n const { tag, reason, error, source } = failure\n const key = `${tag} ${reason} ${source ?? \"\"}`\n if (this.reportedFailures.has(key)) return\n this.reportedFailures.add(key)\n this.failures.push(failure)\n if (error instanceof E.StaleCatalogError) {\n const server = (globalThis as { SPELL_SERVER?: { reportStale?: (cause?: E.StaleCatalogCause) => void } })\n .SPELL_SERVER\n server?.reportStale?.(error.cause)\n }\n if (!this.send(\"ui-error\" as never, failure)) return\n if (source) E.Warnings.error(\"<ui-root>\", `component pack ${source} didn't load (${reason}):`, error ?? \"\")\n else E.Warnings.warn(\"<ui-root>\", `<${tag}> didn't load (${reason}):`, error ?? \"\")\n }\n\n ////////////////\n // ## Settings\n ////////////////\n\n /** Settings requests, so a slower earlier one can't win. */\n private latestSettingsRequest = 0\n\n /**\n * Folder the built-in icon packs load from: `assets`.\n * - A subclass whose `assets` means something else says where its packs are (`<spell-viewer>`: beside its script).\n */\n protected get iconAssets(): string | undefined {\n return this.assets\n }\n\n /** The settings (or the connection) changed: hand them to everything inside; disconnected, forget them. */\n @E.onChange(\"isConnected\", \"icons\", \"emoji\", \"iconAssets\", \"attributeDefaults\")\n protected onSettingsChanged(\n isConnected: boolean,\n icons: string | undefined,\n emoji: string | undefined,\n assets: string | undefined,\n defaults: E.AttributeDefaults | undefined\n ) {\n if (isConnected) this.applySettings({ packs: UIRoot.packs(icons), emoji, assets, defaults })\n else E.RootSettings.delete(this.domElement)\n }\n\n /**\n * Give everything inside `emoji` and `defaults` at once, and, once the runtime is loaded,\n * an icon-pack set of `packs` (built-ins from `assets`) over the outer root's (or the page's).\n */\n private applySettings({ packs, emoji, assets, defaults }: RootSettingsRequest) {\n const request = ++this.latestSettingsRequest\n E.RootSettings.set(this.domElement, { emoji, defaults })\n if (!packs.length) return\n void UI.load().then((ui) => {\n if (request !== this.latestSettingsRequest || !this.domElement.isConnected) return\n const parent = () => this.outerPacks(ui.icons)\n E.RootSettings.set(this.domElement, { emoji, defaults, icons: ui.icons.scope(packs, { assets, parent }) })\n })\n }\n\n /**\n * The `defaults` property, when it's a table of tables (`{ \"ui-button\": { appearance: \"pill\" } }`);\n * else `undefined`, and a warning.\n * - Its JSON text works too, as any rich attribute's (`defaults='{\"ui-button\": {\"appearance\": \"pill\"}}'`).\n */\n protected get attributeDefaults(): E.AttributeDefaults | undefined {\n const defaults = this.defaults\n if (defaults === undefined || defaults === null || defaults === \"\") return undefined\n if (UIRoot.isTable(defaults) && Object.values(defaults).every(UIRoot.isTable)) {\n return defaults as E.AttributeDefaults\n }\n E.Warnings.warn(\n \"<ui-root>\",\n 'defaults: takes tag => attribute => value (`{ \"ui-button\": { appearance: \"pill\" } }`)',\n defaults\n )\n return undefined\n }\n\n /** Is `value` a plain object (not a list, not `null`)? */\n private static isTable(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n }\n\n /**\n * The icon packs this root's set goes over: never its own, but whatever is ABOVE it --\n * the outer root's, else `page` (`UI.icons`).\n * - Read when an icon is drawn, so a later outer root still counts.\n */\n private outerPacks(page: E.IconPacks): E.IconPacks {\n const above = E.flatParentFor(this.domElement)\n return above ? E.IconGlyph.packsFor(above, page) : page\n }\n\n /**\n * `icons=\"fa7-free, /packs/lucide/pack.js\"` => its packs, spaces around commas ignored.\n * - Static: pure.\n */\n private static packs(icons: string | undefined): string[] {\n return (icons ?? \"\")\n .split(PACK_SEPARATOR)\n .map((pack) => pack.trim())\n .filter(Boolean)\n }\n}\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIRoot<V extends E.ComponentVocabulary = RootVocabulary> extends E.AttributeValues<RootVocabulary> {}\n\n/** `display` values. */\nconst DISPLAY = { skeleton: \"skeleton\", whenReady: \"when-ready\", immediately: \"immediately\" } as const\n\n/** Separates the packs in `icons=\"fa7-free, /packs/lucide/pack.js\"`. */\nconst PACK_SEPARATOR = \",\"\n\n/** What `applySettings()` hands everything inside. */\ntype RootSettingsRequest = {\n /** the icon packs, by id or URL */\n packs: string[]\n /** the emoji name set */\n emoji?: string\n /** where the built-in icon packs load from */\n assets?: string\n /** the attribute defaults, by tag */\n defaults?: E.AttributeDefaults\n}\n\n/**\n * The static server render's wrapper when it isn't a box: no box of its own,\n * as the DOM element has none in the browser.\n */\nconst SERVER_CONTENTS = \"display: contents\"\n\n/** Rounds of \"load what's undefined, wait for what's defined\": content that keeps adding new tags stops here. */\nconst MAX_ROUNDS = 10\n","/**\n * The root family: defines `<ui-root>` and exports its component, `UIRoot`, with what a root is built from.\n * - SIDE EFFECT: importing it defines\n * - `<ui-root>`\n * - `<ui-loader>`: a root's loading message\n * - the `<ui-placeholder>`s: its skeletons\n * - `<ui-components>`: the component packs it loads, with `ComponentPacks` / `registerPack()`\n * - SIDE EFFECT: every other tag of the root's catalog is defined at once, PENDING (`RootLoader.defineEarly()`).\n * - Every other family is imported on demand, by what's inside a root, and attaches its tags.\n * - NOTE: the three families are imported HERE, not by `LoaderMessage` / `PlaceholderSkeleton` / `UIRoot`:\n * the static server render (`spell/ui/static`) loads `UIRoot` from its own file, and defining an element throws in node.\n * - `RootCatalogEntry` is exported for component packs: `spell pack build` writes a catalog of them.\n * - `RootVocabulary`, for a subclass's vocabulary (`<spell-viewer>`'s).\n * - Also the library's `spell/ui/ui-root` entry (its size is in `notes/report.md`).\n */\n\n// Spell UI's settings for `spell/element` (a side effect), here too: every page has a root, and `core`'s import of\n// it is dropped by a bundler that finds nothing of `core` itself used (`SpellUISettings`)\nimport \"spell/ui/elements/SpellUISettings\"\nimport { RootLoader } from \"./RootLoader\"\nimport { UIRoot } from \"./UIRoot\"\n\nimport \"spell/ui/components/ui-loader\"\nimport \"spell/ui/components/ui-placeholder\"\nimport \"spell/ui/components/ui-components\"\n\nUIRoot.define()\n// every other tag of the catalog, defined now and attached as its family loads (`RootLoader.defineEarly()`)\nRootLoader.defineEarly()\n\nexport { UIRoot }\nexport { LoaderMessage, type RootLoading } from \"./LoaderMessage\"\nexport { RootLoader } from \"./RootLoader\"\nexport type { RootCatalogEntry, RootFailure, RootFailureReason, RootVocabulary } from \"./UIRoot.types\"\n"],"mappings":";;;;;;;;AAKA,IAAaoD,IAA2D;CACtE,gBAAgB;EACd,QAAQ;EACR,UAAU,EACR,OAAO;GACL;IAAE,OAAO;IAAQ,QAAQ;GAAO;GAChC;IAAE,OAAO;IAAQ,QAAQ;GAAO;GAChC;IAAE,OAAO;IAAQ,QAAQ;GAAO;EAClC,EACF;EACA,YAAY;GACV;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;CACF;CACA,aAAa;EACX,QAA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