spell-ui 0.8.15 → 0.8.17
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.
- package/README-components.md +4 -2
- package/README-runtime.md +26 -1
- package/README.md +2 -1
- package/dist/SliderScale-DunjyaDW.js +67 -0
- package/dist/SliderScale-DunjyaDW.js.map +1 -0
- package/dist/{ThemeDraft-CyX3YA_L.js → ThemeDraft-spaNC2dD.js} +2 -2
- package/dist/{ThemeDraft-CyX3YA_L.js.map → ThemeDraft-spaNC2dD.js.map} +1 -1
- package/dist/{UIInput-B3K0w4ow.js → UIInput-8s1aiaw1.js} +2 -2
- package/dist/UIInput-8s1aiaw1.js.map +1 -0
- package/dist/{UIRuntime-DCv4sy30.js → UIRuntime-BaokNnwk.js} +900 -158
- package/dist/UIRuntime-BaokNnwk.js.map +1 -0
- package/dist/_spell-element/UIComponent.d.ts +7 -0
- package/dist/_spell-element/elements.types.d.ts +6 -0
- package/dist/_spell-element/vocabulary.types.d.ts +27 -0
- package/dist/_util/dom.d.ts +7 -0
- package/dist/components/components.es.d.ts +1 -0
- package/dist/components/ui-dial/DialArc.d.ts +43 -0
- package/dist/components/ui-dial/UIDial.d.ts +263 -0
- package/dist/components/ui-dial/UIDial.en.d.ts +149 -0
- package/dist/components/ui-dial/UIDial.es.d.ts +25 -0
- package/dist/components/ui-dial/UIDial.fallback.d.ts +167 -0
- package/dist/components/ui-dial/UIDial.types.d.ts +11 -0
- package/dist/components/ui-dial/index.d.ts +3 -0
- package/dist/components/ui-graph/UIGraph.d.ts +17 -0
- package/dist/components/ui-graph/UIGraph.en.d.ts +17 -0
- package/dist/components/ui-graph/UIGraph.es.d.ts +6 -0
- package/dist/components/ui-input/UIInput.d.ts +46 -3
- package/dist/components/ui-input/UIInput.en.d.ts +6 -1
- package/dist/components/ui-input/UIInput.es.d.ts +1 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +6 -1
- package/dist/components/ui-json/UIJson.d.ts +5 -4
- package/dist/components/ui-modal/ChoiceRows.d.ts +61 -0
- package/dist/components/ui-modal/ModalDialogs.d.ts +15 -1
- package/dist/components/ui-modal/UIModal.d.ts +6 -2
- package/dist/components/ui-modal/UIModal.en.d.ts +6 -2
- package/dist/components/ui-modal/UIModal.es.d.ts +1 -0
- package/dist/components/ui-page-layout/UIPageLayout.d.ts +141 -8
- package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +51 -2
- package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +3 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +2 -2
- package/dist/components/ui-site-links/UISiteLinks.d.ts +124 -0
- package/dist/components/ui-site-links/UISiteLinks.en.d.ts +60 -0
- package/dist/components/ui-site-links/UISiteLinks.es.d.ts +26 -0
- package/dist/components/ui-site-links/index.d.ts +1 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +12 -5
- package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +32 -12
- package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +3 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +13 -0
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +9 -0
- package/dist/components/ui-slider/SliderScale.d.ts +26 -2
- package/dist/components/ui-slider/UISlider.d.ts +0 -2
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-toc/TocIndex.d.ts +16 -1
- package/dist/components/ui-toc/UIToc.d.ts +27 -3
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -1
- package/dist/components/ui-toc/UIToc.types.d.ts +5 -0
- package/dist/components/ui-tree/UITree.d.ts +38 -2
- package/dist/components/ui-tree/UITree.en.d.ts +9 -0
- package/dist/components/ui-tree/UITree.es.d.ts +4 -0
- package/dist/components/ui-uploader/UIUploader.d.ts +721 -0
- package/dist/components/ui-uploader/UIUploader.en.d.ts +394 -0
- package/dist/components/ui-uploader/UIUploader.es.d.ts +112 -0
- package/dist/components/ui-uploader/index.d.ts +1 -0
- package/dist/{components.es-DilRG1VO.js → components.es-jY2nBwuP.js} +249 -65
- package/dist/components.es-jY2nBwuP.js.map +1 -0
- package/dist/core.js +605 -571
- package/dist/core.js.map +1 -1
- package/dist/docs-components/docs-components.types.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +101 -97
- package/dist/jsx.d.ts +1138 -21
- package/dist/runtime/DataTooltips.d.ts +10 -0
- package/dist/runtime/Modals.d.ts +7 -2
- package/dist/runtime/Styles.d.ts +7 -1
- package/dist/runtime/UIRuntime.d.ts +6 -0
- package/dist/runtime/runtime.types.d.ts +26 -1
- package/dist/sound-library/back.ogg +0 -0
- package/dist/sound-library/beep.ogg +0 -0
- package/dist/sound-library/bell.ogg +0 -0
- package/dist/sound-library/big-punch.ogg +0 -0
- package/dist/sound-library/bong.ogg +0 -0
- package/dist/sound-library/book-close.ogg +0 -0
- package/dist/sound-library/book-down.ogg +0 -0
- package/dist/sound-library/book-open.ogg +0 -0
- package/dist/sound-library/card-fan-2.ogg +0 -0
- package/dist/sound-library/card-fan.ogg +0 -0
- package/dist/sound-library/card-place-2.ogg +0 -0
- package/dist/sound-library/card-place-3.ogg +0 -0
- package/dist/sound-library/card-place.ogg +0 -0
- package/dist/sound-library/card-shove-2.ogg +0 -0
- package/dist/sound-library/card-shove.ogg +0 -0
- package/dist/sound-library/card-slide-2.ogg +0 -0
- package/dist/sound-library/card-slide-3.ogg +0 -0
- package/dist/sound-library/card-slide-4.ogg +0 -0
- package/dist/sound-library/card-slide.ogg +0 -0
- package/dist/sound-library/chip-down-2.ogg +0 -0
- package/dist/sound-library/chip-down.ogg +0 -0
- package/dist/sound-library/chips-collide.ogg +0 -0
- package/dist/sound-library/chips-handle.ogg +0 -0
- package/dist/sound-library/chips-stack-2.ogg +0 -0
- package/dist/sound-library/chips-stack.ogg +0 -0
- package/dist/sound-library/chop.ogg +0 -0
- package/dist/sound-library/click-2.ogg +0 -0
- package/dist/sound-library/click-3.ogg +0 -0
- package/dist/sound-library/click.ogg +0 -0
- package/dist/sound-library/close.ogg +0 -0
- package/dist/sound-library/cloth.ogg +0 -0
- package/dist/sound-library/coins-2.ogg +0 -0
- package/dist/sound-library/coins.ogg +0 -0
- package/dist/sound-library/confirm-2.ogg +0 -0
- package/dist/sound-library/confirm.ogg +0 -0
- package/dist/sound-library/creak.ogg +0 -0
- package/dist/sound-library/deck-open.ogg +0 -0
- package/dist/sound-library/deck-take-out.ogg +0 -0
- package/dist/sound-library/dice-grab.ogg +0 -0
- package/dist/sound-library/dice-shake-2.ogg +0 -0
- package/dist/sound-library/dice-shake.ogg +0 -0
- package/dist/sound-library/dice-throw-2.ogg +0 -0
- package/dist/sound-library/dice-throw.ogg +0 -0
- package/dist/sound-library/die-throw-2.ogg +0 -0
- package/dist/sound-library/die-throw.ogg +0 -0
- package/dist/sound-library/door-close.ogg +0 -0
- package/dist/sound-library/door-open.ogg +0 -0
- package/dist/sound-library/drop.ogg +0 -0
- package/dist/sound-library/error-2.ogg +0 -0
- package/dist/sound-library/error.ogg +0 -0
- package/dist/sound-library/fail.ogg +0 -0
- package/dist/sound-library/fall.ogg +0 -0
- package/dist/sound-library/glass-break.ogg +0 -0
- package/dist/sound-library/glass-clink.ogg +0 -0
- package/dist/sound-library/glass-tap.ogg +0 -0
- package/dist/sound-library/glass.ogg +0 -0
- package/dist/sound-library/glitch.ogg +0 -0
- package/dist/sound-library/grow.ogg +0 -0
- package/dist/sound-library/high-up.ogg +0 -0
- package/dist/sound-library/hover-2.ogg +0 -0
- package/dist/sound-library/hover.ogg +0 -0
- package/dist/sound-library/jingle-2.ogg +0 -0
- package/dist/sound-library/jingle-3.ogg +0 -0
- package/dist/sound-library/jingle-4.ogg +0 -0
- package/dist/sound-library/jingle.ogg +0 -0
- package/dist/sound-library/jump.ogg +0 -0
- package/dist/sound-library/knife-draw.ogg +0 -0
- package/dist/sound-library/knife-slice.ogg +0 -0
- package/dist/sound-library/laser-2.ogg +0 -0
- package/dist/sound-library/laser.ogg +0 -0
- package/dist/sound-library/latch.ogg +0 -0
- package/dist/sound-library/level-up.ogg +0 -0
- package/dist/sound-library/lose-2.ogg +0 -0
- package/dist/sound-library/lose-3.ogg +0 -0
- package/dist/sound-library/lose-4.ogg +0 -0
- package/dist/sound-library/lose.ogg +0 -0
- package/dist/sound-library/low-down.ogg +0 -0
- package/dist/sound-library/metal-clang.ogg +0 -0
- package/dist/sound-library/metal-click.ogg +0 -0
- package/dist/sound-library/metal-crash.ogg +0 -0
- package/dist/sound-library/metal-tap.ogg +0 -0
- package/dist/sound-library/mouse-click.ogg +0 -0
- package/dist/sound-library/mouse-release.ogg +0 -0
- package/dist/sound-library/open.ogg +0 -0
- package/dist/sound-library/orchestra-hit-2.ogg +0 -0
- package/dist/sound-library/orchestra-hit.ogg +0 -0
- package/dist/sound-library/page-turn-2.ogg +0 -0
- package/dist/sound-library/page-turn.ogg +0 -0
- package/dist/sound-library/pickaxe.ogg +0 -0
- package/dist/sound-library/piece-down-2.ogg +0 -0
- package/dist/sound-library/piece-down-3.ogg +0 -0
- package/dist/sound-library/piece-down.ogg +0 -0
- package/dist/sound-library/piece-take-2.ogg +0 -0
- package/dist/sound-library/piece-take.ogg +0 -0
- package/dist/sound-library/piece-tap-2.ogg +0 -0
- package/dist/sound-library/piece-tap.ogg +0 -0
- package/dist/sound-library/plank.ogg +0 -0
- package/dist/sound-library/plate.ogg +0 -0
- package/dist/sound-library/pluck.ogg +0 -0
- package/dist/sound-library/pot.ogg +0 -0
- package/dist/sound-library/power-up-2.ogg +0 -0
- package/dist/sound-library/power-up-3.ogg +0 -0
- package/dist/sound-library/power-up.ogg +0 -0
- package/dist/sound-library/punch.ogg +0 -0
- package/dist/sound-library/question.ogg +0 -0
- package/dist/sound-library/rise.ogg +0 -0
- package/dist/sound-library/scratch.ogg +0 -0
- package/dist/sound-library/scroll.ogg +0 -0
- package/dist/sound-library/select-2.ogg +0 -0
- package/dist/sound-library/select.ogg +0 -0
- package/dist/sound-library/shrink.ogg +0 -0
- package/dist/sound-library/shuffle.ogg +0 -0
- package/dist/sound-library/soft-thud-2.ogg +0 -0
- package/dist/sound-library/soft-thud.ogg +0 -0
- package/dist/sound-library/space-junk.ogg +0 -0
- package/dist/sound-library/step-2.ogg +0 -0
- package/dist/sound-library/step-on-carpet.ogg +0 -0
- package/dist/sound-library/step-on-grass.ogg +0 -0
- package/dist/sound-library/step-on-snow.ogg +0 -0
- package/dist/sound-library/step-on-stone.ogg +0 -0
- package/dist/sound-library/step-on-wood.ogg +0 -0
- package/dist/sound-library/step.ogg +0 -0
- package/dist/sound-library/switch-2.ogg +0 -0
- package/dist/sound-library/switch.ogg +0 -0
- package/dist/sound-library/tap-2.ogg +0 -0
- package/dist/sound-library/tap.ogg +0 -0
- package/dist/sound-library/three-tones.ogg +0 -0
- package/dist/sound-library/tick-2.ogg +0 -0
- package/dist/sound-library/tick.ogg +0 -0
- package/dist/sound-library/tin.ogg +0 -0
- package/dist/sound-library/toggle-2.ogg +0 -0
- package/dist/sound-library/toggle.ogg +0 -0
- package/dist/sound-library/two-tones.ogg +0 -0
- package/dist/sound-library/win-2.ogg +0 -0
- package/dist/sound-library/win-3.ogg +0 -0
- package/dist/sound-library/win-4.ogg +0 -0
- package/dist/sound-library/win.ogg +0 -0
- package/dist/sound-library/wood-thud.ogg +0 -0
- package/dist/sound-library/zap.ogg +0 -0
- package/dist/sounds/BuiltInSounds.d.ts +41 -0
- package/dist/sounds/index.d.ts +9 -0
- package/dist/sounds/sounds.types.d.ts +22 -0
- package/dist/ui-calendar.js +1 -1
- package/dist/ui-dial.editor-CjjdKi5L.js +5 -0
- package/dist/ui-dial.editor-CjjdKi5L.js.map +1 -0
- package/dist/ui-dial.js +467 -0
- package/dist/ui-dial.js.map +1 -0
- package/dist/ui-graph.js +22 -0
- package/dist/ui-graph.js.map +1 -1
- package/dist/{ui-input.editor-budoNoB0.js → ui-input.editor-D11iRgXR.js} +2 -2
- package/dist/ui-input.editor-D11iRgXR.js.map +1 -0
- package/dist/ui-input.js +84 -54
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-json.js +8 -8
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-modal.js +183 -97
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-page-layout.editor-IgDEveUY.js +5 -0
- package/dist/ui-page-layout.editor-IgDEveUY.js.map +1 -0
- package/dist/ui-page-layout.js +217 -72
- package/dist/ui-page-layout.js.map +1 -1
- package/dist/ui-popup.js +34 -34
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-property-editor.js +7 -4
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-root.js +71 -5
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-search.js +1 -1
- package/dist/ui-section.js +97 -96
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-site-links.editor-BME3sw5H.js +5 -0
- package/dist/ui-site-links.editor-BME3sw5H.js.map +1 -0
- package/dist/ui-site-links.js +150 -0
- package/dist/ui-site-links.js.map +1 -0
- package/dist/ui-site-nav-button.editor-ChY4xe1U.js +5 -0
- package/dist/ui-site-nav-button.editor-ChY4xe1U.js.map +1 -0
- package/dist/ui-site-nav-button.js +57 -18
- package/dist/ui-site-nav-button.js.map +1 -1
- package/dist/{ui-site-tabs.editor-DDvQfH6S.js → ui-site-tabs.editor-CdMIw4jw.js} +2 -2
- package/dist/ui-site-tabs.editor-CdMIw4jw.js.map +1 -0
- package/dist/ui-site-tabs.js +30 -14
- package/dist/ui-site-tabs.js.map +1 -1
- package/dist/ui-slider.js +75 -124
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-statistic.js +1 -0
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-theme-editor.js +2 -2
- package/dist/{ui-theme-menu-BZYUMrHe.js → ui-theme-menu-BEBu6dyq.js} +3 -3
- package/dist/{ui-theme-menu-BZYUMrHe.js.map → ui-theme-menu-BEBu6dyq.js.map} +1 -1
- package/dist/ui-toc.js +159 -122
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-tree.js +142 -87
- package/dist/ui-tree.js.map +1 -1
- package/dist/ui-uploader.editor-DrE80KjL.js +5 -0
- package/dist/ui-uploader.editor-DrE80KjL.js.map +1 -0
- package/dist/ui-uploader.js +1442 -0
- package/dist/ui-uploader.js.map +1 -0
- package/dist/vocabulary/hooks.generated.d.ts +7 -0
- package/package.json +1 -1
- package/dist/UIInput-B3K0w4ow.js.map +0 -1
- package/dist/UIRuntime-DCv4sy30.js.map +0 -1
- package/dist/components.es-DilRG1VO.js.map +0 -1
- package/dist/ui-input.editor-budoNoB0.js.map +0 -1
- package/dist/ui-page-layout.editor-xtQW0FZk.js +0 -5
- package/dist/ui-page-layout.editor-xtQW0FZk.js.map +0 -1
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +0 -5
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +0 -1
- package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +0 -1
package/dist/ui-section.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-section.js","names":["UIT.SourceBodyAttributes","UIT.SourceBodyEvents","UIT.SourceBodyParts","UIT.SourceBodyStates","UIT.SourceFailureTexts","this","part={this.partForName(\"group\")}","<div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.PartContext","_$getOwner","_$setAttribute","__name","sectionCSS","ref={(element) => this.sentinel = element}","this","<section\n class={this.rootClass}\n part={this.partForName(\"section\")}\n aria-busy={this.isLoading ? \"true\" : void 0}\n >\n <div ref={(element) => this.sentinel = element} class={SENTINEL} aria-hidden=\"true\" />\n {this.titleBar()}\n <Show when={this.hasHint}>\n <div class={SUBHEAD} part={this.partForName(\"subhead\")}>\n <slot name={this.slotForName(\"hint\")}>{this.hintText}</slot>\n </div>\n </Show>\n <div\n ref={this.disclosure.revealOnMatch}\n id={CONTENT_ID}\n class={UIT.CONTENT}\n part={this.partForName(\"content\")}\n hidden={this.isFolded || this.isVeiled ? \"until-found\" : void 0}\n tabindex={this.contentScrolls ? 0 : void 0}\n style={this.contentStyle}\n >\n <Show when={this.bodyFailureText}>\n <p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>\n </Show>\n {this.contentStart()}\n <slot />\n </div>\n <Show when={this.isLoading}>\n <span class={UIT.VISUALLY_HIDDEN} role=\"status\">\n {this.translationForKey(\"loading\")}\n </span>\n </Show>\n </section>","<Show when={this.hasHint}>\n <div class={SUBHEAD} part={this.partForName(\"subhead\")}>\n <slot name={this.slotForName(\"hint\")}>{this.hintText}</slot>\n </div>\n </Show>","part={this.partForName(\"subhead\")}","name={this.slotForName(\"hint\")}","<div class={SUBHEAD} part={this.partForName(\"subhead\")}>\n <slot name={this.slotForName(\"hint\")}>{this.hintText}</slot>\n </div>","ref={this.disclosure.revealOnMatch}","<Show when={this.bodyFailureText}>\n <p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>\n </Show>","part={this.partForName(\"error\")}","<p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>","<div\n ref={this.disclosure.revealOnMatch}\n id={CONTENT_ID}\n class={UIT.CONTENT}\n part={this.partForName(\"content\")}\n hidden={this.isFolded || this.isVeiled ? \"until-found\" : void 0}\n tabindex={this.contentScrolls ? 0 : void 0}\n style={this.contentStyle}\n >\n <Show when={this.bodyFailureText}>\n <p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>\n </Show>\n {this.contentStart()}\n <slot />\n </div>","<Show when={this.isLoading}>\n <span class={UIT.VISUALLY_HIDDEN} role=\"status\">\n {this.translationForKey(\"loading\")}\n </span>\n </Show>","<span class={UIT.VISUALLY_HIDDEN} role=\"status\">\n {this.translationForKey(\"loading\")}\n </span>","part={this.partForName(\"section\")}","aria-busy={this.isLoading ? \"true\" : void 0}","class={SENTINEL}","class={UIT.CONTENT}","part={this.partForName(\"content\")}","hidden={this.isFolded || this.isVeiled ? \"until-found\" : void 0}","tabindex={this.contentScrolls ? 0 : void 0}","style={this.contentStyle}","ref={(element) => {\n this.title = element;\n E.TopLayerTip.showIn(element, TIP_TRIGGERS);\n }}","<Dynamic\n component={`h${this.headingLevel}`}\n class={HEADING}\n part={this.partForName(\"heading\")}\n aria-describedby={this.hasDescription && !this.isCollapsible ? TIP_ID : void 0}\n >\n <Dynamic\n component={this.isCollapsible ? \"button\" : \"span\"}\n type={this.isCollapsible ? \"button\" : void 0}\n class={TOGGLE}\n part={this.partForName(\"toggle\")}\n aria-expanded={this.isCollapsible ? this.disclosure.ariaExpanded : void 0}\n aria-controls={this.isCollapsible ? CONTENT_ID : void 0}\n title={this.isCollapsible ? this.toggleTip : void 0}\n disabled={this.isCollapsible && this.disabled ? true : void 0}\n aria-describedby={this.hasDescription && this.isCollapsible ? TIP_ID : void 0}\n onClick={this.onToggleClick}\n >\n <Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <span class={UIT.HEADER} part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"label\")}>{this.titleText}</slot>\n </span>\n </Dynamic>\n </Dynamic>","class={HEADING}","<Dynamic\n component={this.isCollapsible ? \"button\" : \"span\"}\n type={this.isCollapsible ? \"button\" : void 0}\n class={TOGGLE}\n part={this.partForName(\"toggle\")}\n aria-expanded={this.isCollapsible ? this.disclosure.ariaExpanded : void 0}\n aria-controls={this.isCollapsible ? CONTENT_ID : void 0}\n title={this.isCollapsible ? this.toggleTip : void 0}\n disabled={this.isCollapsible && this.disabled ? true : void 0}\n aria-describedby={this.hasDescription && this.isCollapsible ? TIP_ID : void 0}\n onClick={this.onToggleClick}\n >\n <Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <span class={UIT.HEADER} part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"label\")}>{this.titleText}</slot>\n </span>\n </Dynamic>","class={TOGGLE}","this.isCollapsible ? this.disclosure.ariaExpanded : void 0","this.isCollapsible ? this.toggleTip : void 0","<Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>","this.isCollapsible && !this.foldIconIsAtEnd","<Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>","part={this.partForName(\"icon\")}","name={this.slotForName(\"icon\")}","<span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>","part={this.partForName(\"header\")}","name={this.slotForName(\"label\")}","<header\n ref={(element) => {\n this.title = element;\n E.TopLayerTip.showIn(element, TIP_TRIGGERS);\n }}\n class={UIT.TITLE}\n part={this.partForName(\"title\")}\n style={this.titleStyle}\n >\n <Dynamic\n component={`h${this.headingLevel}`}\n class={HEADING}\n part={this.partForName(\"heading\")}\n aria-describedby={this.hasDescription && !this.isCollapsible ? TIP_ID : void 0}\n >\n <Dynamic\n component={this.isCollapsible ? \"button\" : \"span\"}\n type={this.isCollapsible ? \"button\" : void 0}\n class={TOGGLE}\n part={this.partForName(\"toggle\")}\n aria-expanded={this.isCollapsible ? this.disclosure.ariaExpanded : void 0}\n aria-controls={this.isCollapsible ? CONTENT_ID : void 0}\n title={this.isCollapsible ? this.toggleTip : void 0}\n disabled={this.isCollapsible && this.disabled ? true : void 0}\n aria-describedby={this.hasDescription && this.isCollapsible ? TIP_ID : void 0}\n onClick={this.onToggleClick}\n >\n <Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <span class={UIT.HEADER} part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"label\")}>{this.titleText}</slot>\n </span>\n </Dynamic>\n </Dynamic>\n <Show when={this.hasBadge}>\n <span class={BADGE} part={this.partForName(\"badge\")}>\n <slot name={this.slotForName(\"badge\")}>{this.badge}</slot>\n </span>\n </Show>\n <Show when={this.hasActions}>\n <span class={ACTIONS} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(\"actions\")} />\n </span>\n </Show>\n {this.titleBarEnd()}\n <Show when={this.isCollapsible && this.foldIconIsAtEnd}>{this.foldChevron(this.onFoldIconClick)}</Show>\n <Show when={this.hasDescription}>\n <span id={TIP_ID} class={TIP} part={this.partForName(\"tip\")} role=\"tooltip\">\n <slot name={this.slotForName(\"description\")}>{this.descriptionText}</slot>\n </span>\n </Show>\n </header>","<Show when={this.hasBadge}>\n <span class={BADGE} part={this.partForName(\"badge\")}>\n <slot name={this.slotForName(\"badge\")}>{this.badge}</slot>\n </span>\n </Show>","part={this.partForName(\"badge\")}","name={this.slotForName(\"badge\")}","<span class={BADGE} part={this.partForName(\"badge\")}>\n <slot name={this.slotForName(\"badge\")}>{this.badge}</slot>\n </span>","<Show when={this.hasActions}>\n <span class={ACTIONS} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(\"actions\")} />\n </span>\n </Show>","part={this.partForName(\"actions\")}","name={this.slotForName(\"actions\")}","<span class={ACTIONS} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(\"actions\")} />\n </span>","<Show when={this.isCollapsible && this.foldIconIsAtEnd}>{this.foldChevron(this.onFoldIconClick)}</Show>","this.isCollapsible && this.foldIconIsAtEnd","<Show when={this.hasDescription}>\n <span id={TIP_ID} class={TIP} part={this.partForName(\"tip\")} role=\"tooltip\">\n <slot name={this.slotForName(\"description\")}>{this.descriptionText}</slot>\n </span>\n </Show>","part={this.partForName(\"tip\")}","name={this.slotForName(\"description\")}","<span id={TIP_ID} class={TIP} part={this.partForName(\"tip\")} role=\"tooltip\">\n <slot name={this.slotForName(\"description\")}>{this.descriptionText}</slot>\n </span>","part={this.partForName(\"title\")}","style={this.titleStyle}","part={this.partForName(\"fold-icon\")}","title={onClick ? this.toggleTip : void 0}","<span\n class={FOLD_ICON_CLASS}\n part={this.partForName(\"fold-icon\")}\n aria-hidden=\"true\"\n title={onClick ? this.toggleTip : void 0}\n onClick={onClick}\n >\n {this.foldGlyph.svg}\n </span>","E.UIComponent","E.proto","E.protoMerged","E.derived","E.cssState","E.controlled","E.state","E.onChange","E.watches","E.PartContext","E.IconGlyph","E.Disclosure","E.StickyWatch","E.SlotContent","E.LoadableBody","E.SOURCE_FAILURE_KEYS","_$getOwner","_$readShallow","_$setAttribute","UIT.VISUALLY_HIDDEN","UIT.CONTENT","UIT.ICON","UIT.HEADER","UIT.TITLE","__name","sectionCSS","E.DOMLoadableBodyElement","ICON","HEADER","__decoratorStart","VISUALLY_HIDDEN","__publicField","__name$1","TITLE","__decorateElement","__decoratorMetadata","__runInitializers","SourceBodyAttributes","SourceBodyStates","CONTENT","SourceBodyEvents","SourceFailureTexts","__privateAdd","SourceBodyParts","getOwner$1","sectionsVocabulary","sectionVocabulary","UISection_default","_tmpl$$1","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UISections","UIComponent","proto","protoMerged","PartContext","_self$","_el$","_el$2","effect","readShallow","className","_p$","t","setAttribute","UISections","FoldIconPlace","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_tmpl$7","_tmpl$8","_isAnimated_dec","_onBodyWanted_dec","_bodyFailed_dec","_bodyIsLoaded_dec","_isLoading_dec","_matchesHideEmpty_dec","_isEmpty_dec","_onStickingChanged_dec","_joinsBelow_dec","_joinsAbove_dec","_isAfterClosed_dec","_onNeighbourChanged_dec","_onTuckedChanged_dec","_isFollowedByClosed_dec","_hasTuckedFirst_dec","_tucksFirst_dec","_isTucked_dec","_stackPlaces_dec","_isStacked_dec","_titleIsStuck_dec","_isStuck_dec","_titleHeight_dec","_onFoldedChanged_dec","_toggleTipMore_dec","_isFolded_dec","_isMarkedOpen_dec","_isInGroup_dec","_isNested_dec","_enclosingSection_dec","_defaultFoldIcon_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_isMarkedOpen","_toggleTipMore","_titleHeight","_isStuck","_hasTuckedFirst","_isFollowedByClosed","_UISection","derived","cssState","controlled","state","onChange","watches","IconGlyph","FOLD_ICON","Disclosure","OwnControls","event","TOGGLE_BUTTON","StickyWatch","edge","SlotContent","LoadableBody","name","detail","owner","own","MAX_LEVEL","parent","TOP_LEVEL","Converters","originalEvent","tip","isFolded","STACK","place","sibling","previous","isTucked","isConnected","STICK_TOP_PROPERTY","DEPTH_PROPERTY","isReady","sticky","title","sentinel","resizes","unwatch","hideEmpty","selector","isServer","SourceStatus","failure","key","SOURCE_FAILURE_KEYS","source","UI","SCROLLING","LOADING","_el$3","_el$6","_el$8","_el$9","_el$11","ref","element","insert","createComponent","Show","_el$4","_el$5","SUBHEAD","a","CONTENT_ID","_ref$","_el$7","SOURCE_ERROR","_el$10","_v$","_$p","SENTINEL","i","n","s","h","style","r","HEIGHT_PROPERTY","_self$2","_el$12","_el$17","_el$20","_el$23","_el$24","_el$25","_el$28","TopLayerTip","TIP_TRIGGERS","Dynamic","HEADING","TIP_ID","TOGGLE","memo","_el$13","_el$14","_el$15","_el$16","e","_el$18","_el$19","BADGE","_el$21","_el$22","ACTIONS","_el$26","_el$27","TIP","_self$3","_el$29","addEvent","onClick","FOLD_ICON_CLASS","DOMLoadableBodyElement","UISection","b","index","tag","host","nested","before","node","outer","COMMENT_NODE","TEXT_NODE","value","delegateEvents"],"sources":["../src/components/ui-section/UISections.en.ts","../src/components/ui-section/UISection.en.ts","../src/components/ui-section/UISections.tsx","../src/components/ui-section/UISection.types.ts","../src/components/ui-section/UISection.tsx","../src/components/ui-section/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-sections>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words (`ClassBuilder`):\n * `<ui-sections collapsing>` => `ui collapsing sections`.\n * - `ownsParts: [\"section\"]`: a `<ui-section>` finds its group the way it finds an enclosing section\n * (`PartContext`), so its default `collapsible` follows the NEAREST group, at any depth (`UISection.group`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `sectionsVocabulary`\n * The names of `<ui-sections>`, a run of sections: `<div class=\"ui ... sections\" part=\"group\">` around a slot.\n ****************/\nexport const sectionsVocabulary = {\n tag: \"ui-sections\",\n icon: \"list alternate outline\",\n topics: [\"layout\", \"containers\"],\n aka: [\"accordion\", \"section group\", \"collapsible group\", \"outline\"],\n noun: \"sections\",\n partOfSpeech: \"structure\",\n description:\n \"A group of sections: with `collapsing`, every section in it can close, and closed ones stack with no space between.\",\n attributes: [\n {\n name: \"collapsing\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Every section in the group, sub-sections included, can close by default (as if `collapsible`); closed \" +\n 'ones stack with no space between. A section opts out with `collapsible=\"false\"`.'\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-section>`s, and anything between them.\" }],\n parts: [{ name: \"group\", description: \"The group box.\" }],\n states: [\n { name: \"in-section\", description: \"Inside a section.\" },\n { name: \"in-sections\", description: \"Inside another `<ui-sections>`.\" }\n ],\n texts: [],\n ownsParts: [\"section\"]\n} as const satisfies E.ComponentVocabulary\n","/**\n * The English vocabulary of `<ui-section>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-section color=\"teal\" dividing sticky>` => `ui teal dividing sticky section`.\n * - Not class words, which the component draws or reads instead:\n * - the strings and numbers: `label`, `hint`, `description`, `level`, `badge`, `offset`, `height`\n * - the booleans: `collapsible`, `open` (`collapsed` its old name, turned round)\n * - `fold-icon`\n * - `source` (`UIT.LoadableBody*`): the content comes from a file the first time the section unfolds.\n * Spread in here, so a subclass reusing this vocabulary (`<ui-panel>`) has it too.\n * - `open` is CONTROLLED, like the accordion's: set it to fold or unfold (`open=\"false\"` folds).\n * `ui-opening` / `ui-closing` can veto a person's change.\n * - Its words match `<ui-field>`'s (epic `property-editor` P10, decision Q12):\n * - `label`, `hint`, `description`\n * - events in pairs: `ui-closing` then `ui-closed`\n * - states `nested` and `in-group`\n * - Its old words (`header`, `subhead`, `info`, `ui-opening`, `ui-closing`, `ui-loaded`) went in epic `repo-split` P14 (Q45).\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `sectionVocabulary`\n * The names of `<ui-section>`, a titled block of content that can fold.\n * Its `<section class=\"ui … section\" part=\"section\">` holds:\n * - its title bar: `<hN>` with the icon, label and a fold button, then the badge and actions\n * - an optional hint, then the content\n ****************/\nexport const sectionVocabulary = {\n tag: \"ui-section\",\n icon: \"bookmark outline\",\n snippet: '<ui-section label=\"A section\">\\n\\t<ui-text>What it holds</ui-text>\\n</ui-section>',\n topics: [\"layout\", \"containers\"],\n aka: [\"section\", \"panel\", \"collapsible\", \"disclosure\", \"fieldset\", \"expander\"],\n // a title over its content, as a segment's skeleton\n skeleton: \"header, paragraph\",\n noun: \"section\",\n partOfSpeech: \"structure\",\n description: \"A section is a titled block of content that can close and keep its title in view.\",\n attributes: [\n {\n name: \"label\",\n group: \"name\",\n kind: \"string\",\n description: 'Title text; a slotted `slot=\"label\"` is the rich version (code, links).'\n },\n {\n name: \"hint\",\n group: \"form\",\n kind: \"string\",\n description: 'Smaller text under the title; scrolls away with the content, never sticks. Or `slot=\"hint\"`.'\n },\n {\n name: \"level\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"],\n description:\n \"Heading level of the title (`<h1>` ... `<h6>`); default: the enclosing section's level + 1, else 2 \" +\n \"(under the page's `h1`).\"\n },\n {\n name: \"parent\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"Id of the `<ui-section>` (or `<ui-sections>`) this one nests in, when it's written outside it \" +\n '(`parent=\"setup\"`): it joins it, in page order, as if nested there.'\n },\n {\n name: \"icon\",\n group: \"content\",\n kind: \"icon\",\n description: 'Icon name, before the title; a slotted `slot=\"icon\"` (a `<ui-icon>`, anything) replaces it.'\n },\n {\n name: \"badge\",\n group: \"content\",\n kind: \"string\",\n description: 'A small pill after the title, e.g. a count (`3/7`); `slot=\"badge\"` is the rich version.'\n },\n {\n name: \"description\",\n group: \"content\",\n kind: \"string\",\n description:\n \"A tip about the section, shown under the title bar while the pointer is on the title (or the open / close button \" +\n 'has keyboard focus); it describes the title. `slot=\"description\"` is the rich version (bold words, line ' +\n \"breaks).\"\n },\n {\n name: \"hide-empty\",\n group: \"behaviour\",\n kind: \"string\",\n description:\n \"Hidden while nothing's in it to see: no element in its content, and no text but blanks. \" +\n \"A loader counts, so a section waiting for its list keeps its title. A selector narrows what counts: \" +\n '`hide-empty=\"ui-card\"` hides it until a card is in it. Follows its content as it changes.'\n },\n {\n name: \"collapsible\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"The title opens and closes the content: a button with `aria-expanded`. Default: on inside \" +\n '`<ui-sections collapsing>`, sub-sections included; `collapsible=\"false\"` opts out there.'\n },\n {\n name: \"open\",\n group: \"states\",\n kind: \"boolean\",\n default: true,\n replaces: [{ from: \"collapsed\", value: \"false\" }],\n description:\n 'Open; `open=\"false\"` closes it, so only the title shows. Controlled: set it to close or open; ' +\n \"`ui-opening` / `ui-closing` can veto a person's changes. Find-in-page opens a match. Its old name was \" +\n \"`collapsed` (turned round).\"\n },\n {\n name: \"fold-icon\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"start\", \"end\"],\n description:\n \"With `collapsible`: where the open / close chevron sits: `start`, before the title (the default), or `end`, at \" +\n \"the far end of the title bar, after the badge and actions (a click on it closes and opens too).\"\n },\n {\n name: \"sticky\",\n group: \"behaviour\",\n kind: \"keyOrValueAndKey\",\n values: [\"stack\"],\n description:\n \"The title bar sticks while the section is on screen; a sticky section inside another sticks just below \" +\n 'its title. `sticky=\"stack\"`: the titles read as one stack of rounded bars, as the docs pages\\' sections ' +\n \"do -- each level a step further in (`--ui-section-stack-reach`, `--ui-section-stack-step`), a section's \" +\n \"first nested title tucked square under its own, a nested title stuck under its parent's a heavy round \" +\n \"(the theme's large radius), and closed sections one after another flush, ONE group, round only at its top \" +\n \"and bottom. A plain `sticky` section right inside a stacked one joins its stack (not through another element, \" +\n \"an example's).\"\n },\n {\n name: \"offset\",\n group: \"layout\",\n kind: \"number\",\n default: 0,\n description:\n \"With `sticky`: pixels between the top edge and a TOP-LEVEL section's stuck title (e.g. a page header's \" +\n \"height); nested sections work theirs out.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Hue of the title (and of the rule or box edge).\"\n },\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Text size of the CONTENT, `mini` ... `massive`; the title keeps its level's size.\"\n },\n { name: \"dividing\", group: \"appearance\", kind: \"keyOnly\", description: \"A rule under the title.\" },\n { name: \"block\", group: \"layout\", kind: \"keyOnly\", description: \"The title bar in a tinted box.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"bordered\", \"styled\", \"raised\", \"basic\", \"drawer\"],\n // each word draws itself: no key after it\n classes: {},\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"styled\", value: \"styled\" },\n { from: \"raised\", value: \"raised\" },\n { from: \"basic\", value: \"basic\" }\n ],\n description:\n \"The look, several words at once: `bordered` (a box around the section, as a segment), `styled` (boxed \" +\n \"as a styled accordion: a tinted title bar over padded content), `raised` (with a box: lifted with a \" +\n \"shadow), `basic` (no box, rule or tint, whatever else is set), `drawer` (the title a raised bar, the \" +\n \"content a tinted panel attached under it that rolls open and closed, as an example's code under its demo). \" +\n \"Old names: `bordered`, `styled`, `raised`, `basic`.\"\n },\n {\n name: \"padding\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"compact\", \"md\", \"lg\"],\n classes: { md: \"padded\", lg: \"very padded\" },\n replaces: [\n { from: \"compact\", value: \"compact\" },\n { from: \"padded\", value: \"md\", values: { very: \"lg\" } }\n ],\n description:\n \"`compact`: less padding and space around the title; `md` / `lg`: more padding in the content. Old \" +\n 'names: `compact`, `padded` (`padded=\"very\"` is `lg`).'\n },\n {\n name: \"attach-to\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"both\", \"top\", \"bottom\"],\n classes: { both: \"attached\", top: \"top attached\", bottom: \"bottom attached\" },\n replaces: [\"attach\", { from: \"attached\", value: \"both\" }],\n description:\n \"With a box: joined edge to edge with the box above (`top`), below (`bottom`), or both (`both`, between \" +\n \"two). Old names: `attach`, `attached` (bare is `both`).\"\n },\n {\n name: \"scrolling\",\n group: \"layout\",\n kind: \"keyOrValueAndKey\",\n values: [\"short\", \"very short\", \"long\", \"very long\"],\n description: \"The content has a capped height and scrolls; `short` ... `very long` scale the cap.\"\n },\n {\n name: \"height\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"The content's cap, any CSS length (`20em`, `300px`): above it the content scrolls (implies `scrolling`).\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"textAlign\",\n values: [\"left\", \"center\", \"right\"],\n replaces: [\"text-align\"],\n description: \"Aligns the TITLE `left`, `center` or `right`. Old name: `text-align`.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds: the dark scheme.\" },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Dims the content under a spinner; `aria-busy`.\"\n },\n {\n name: \"disabled\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Dimmed and inert; can't be closed or opened.\"\n },\n ...UIT.SourceBodyAttributes\n ],\n events: [\n {\n name: \"ui-opening\",\n detail: \"{ open: boolean, section: Element, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"About to open: the title was activated, or find-in-page matched inside (not cancelable then, \" +\n \"`cancelable: false`). Cancel to stay closed.\"\n },\n {\n name: \"ui-opened\",\n detail: \"{ open: boolean, section: Element }\",\n description: \"Opened, by any route: the title, the page setting `open`, find-in-page.\"\n },\n {\n name: \"ui-closing\",\n detail: \"{ open: boolean, section: Element, originalEvent?: Event }\",\n cancelable: true,\n description: \"About to close: the title was activated. Cancel to stay open.\"\n },\n {\n name: \"ui-closed\",\n detail: \"{ open: boolean, section: Element }\",\n description: 'Closed, by any route: the title, or the page setting `open=\"false\"`.'\n },\n ...UIT.SourceBodyEvents\n ],\n slots: [\n { name: \"\", description: \"The content: anything, nested `<ui-section>`s included.\" },\n { name: \"label\", description: \"Rich title, instead of the `label` attribute.\" },\n { name: \"hint\", description: \"Rich hint, instead of the `hint` attribute.\" },\n { name: \"icon\", description: \"Icon before the title, instead of the `icon` attribute (a `<ui-icon>`, an image).\" },\n { name: \"badge\", description: \"Rich badge, instead of the `badge` attribute (e.g. a `<ui-label>`).\" },\n { name: \"actions\", description: \"Controls at the right of the title bar (buttons, a menu); never close it.\" },\n { name: \"description\", description: \"Rich tip, instead of the `description` attribute (bold words, line breaks).\" }\n ],\n parts: [\n { name: \"section\", description: \"The section box.\" },\n { name: \"title\", description: \"The title bar: sticks with `sticky`.\" },\n { name: \"heading\", description: \"The `<h1>` ... `<h6>`.\" },\n {\n name: \"toggle\",\n description: \"With `collapsible`: the `<button>` inside the heading that opens and closes the section.\"\n },\n {\n name: \"fold-icon\",\n description:\n 'With `collapsible`: the chevron, in the toggle; with `fold-icon=\"end\"`, at the end of the title bar.'\n },\n { name: \"icon\", description: \"The icon box.\" },\n { name: \"header\", description: \"The title text box.\" },\n { name: \"badge\", description: \"The badge pill.\" },\n { name: \"actions\", description: \"The actions box, at the right of the title bar.\" },\n {\n name: \"tip\",\n description: \"With `description`: the tip, under the title bar, shown on hover and keyboard focus.\"\n },\n { name: \"subhead\", description: \"The hint under the title.\" },\n { name: \"content\", description: \"The content box: `size`, `scrolling` and `height` apply here.\" },\n ...UIT.SourceBodyParts\n ],\n states: [\n { name: \"collapsed\", description: \"Closed.\" },\n { name: \"empty\", description: \"With `hide-empty`: nothing in it to see, so it's hidden.\" },\n { name: \"stuck\", description: \"With `sticky`: the title bar is stuck to the top.\" },\n {\n name: \"stacked\",\n description: 'With `sticky=\"stack\"` (or `sticky` right inside a stacked section): a bar of the stack.'\n },\n {\n name: \"tucked\",\n description:\n \"Stacked: the first thing in its enclosing section, its title right under that section's, square on top.\"\n },\n {\n name: \"tucks\",\n description: \"Stacked: its first nested section is tucked under its title, so its content has no room on top.\"\n },\n {\n name: \"after-closed\",\n description: \"Stacked: right after a closed section, nothing between: no room above it.\"\n },\n { name: \"joins-above\", description: \"Stacked and closed, right after a closed one: square on top, in its group.\" },\n { name: \"joins-below\", description: \"Stacked and closed, right before a closed one: square below, in its group.\" },\n { name: \"animated\", description: \"Opens and closes with a height transition (`interpolate-size`).\" },\n { name: \"nested\", description: \"Nested in another section.\" },\n { name: \"in-group\", description: \"Directly in a `<ui-sections>` group (no section between).\" },\n {\n name: \"in-section\",\n description: \"Directly in another section (its part's state); `nested` counts one through a group too.\"\n },\n { name: \"in-sections\", description: \"Directly in a `<ui-sections>` group (its part's state), as `in-group`.\" },\n { name: \"inverted\", description: \"In the dark scheme.\" },\n { name: \"loading\", description: \"Busy: `loading`, or a `source` body that is slow to arrive.\" },\n { name: \"disabled\", description: \"Dimmed and inert.\" },\n ...UIT.SourceBodyStates\n ],\n texts: [\n { key: \"loading\", text: \"Loading…\", description: \"Announced while `loading`.\" },\n { key: \"closeSection\", text: \"Close this section\", description: \"Tooltip of the open / close button while open.\" },\n { key: \"openSection\", text: \"Open this section\", description: \"Tooltip of the open / close button while closed.\" },\n ...UIT.SourceFailureTexts\n ],\n ownsParts: [\"section\"]\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { sectionsVocabulary } from \"./UISections.en\"\nimport { sectionVocabulary } from \"./UISection.en\"\n\nimport sectionCSS from \"./UISection.css?inline\"\n\n/****************\n * ### `UISections`\n * The component behind `<ui-sections>`: a run of sections, spaced as one section would be.\n *\n * - Its shadow DOM is one box around a slot: `<div class=\"ui … sections\" part=\"group\"><slot></slot></div>`.\n * - Plain, it changes nothing in its sections.\n * - `collapsing`: every `<ui-section>` under it, sub-sections at any depth included, folds by default.\n * - A section's own `collapsible` attribute wins, `\"false\"` included.\n * - Each section reads `collapsing` from its NEAREST group (`UISection.group`),\n * so a plain `<ui-sections>` nested inside turns the default off again.\n * - The spacing is CSS: `UISection.css` hands the stacking down to the sections\n * through the inherited `--_ui-sections-stack` switch, which a nested plain group resets.\n * - It owns `section` parts (`ownsParts`), so a section's `PartContext` stops here.\n * Its own `context` finds the section (or group) around it,\n * which `UISection.enclosingSection` climbs to, so levels and sticky stacks carry through.\n ****************/\nexport class UISections extends E.UIComponent<typeof sectionsVocabulary> {\n @E.proto static vocabulary = sectionsVocabulary\n @E.protoMerged static elementSetup = { styleSheets: { section: sectionCSS } } satisfies Partial<E.ElementSetup>\n\n /** Enclosing section or group (`:state(in-section)` / `:state(in-sections)`); climbs through any component. */\n readonly context = new E.PartContext({\n domElement: this.domElement,\n noun: sectionVocabulary.noun,\n barrier: E.PartContext.noBarrier\n })\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary getters, typed (`UIComponent`'s doc). */\nexport interface UISections extends E.AttributeValues<typeof sectionsVocabulary> {}\n","/**\n * The types and constants of the section family that `<ui-section>` and `<ui-panel>` share.\n * - `UIPanel` extends `UISection`, and reuses its vocabulary type and its chevron places.\n * - Pure data: `import type` only, so node can load it (`yarn site:data`).\n * - A constant only `UISection` reads sits below that class, in `UISection.tsx`.\n */\n\nimport type { sectionVocabulary } from \"./UISection.en\"\n\n/** `<ui-section>`'s vocabulary type, for brevity (`<ui-panel>` reuses it). */\nexport type SectionVocabulary = typeof sectionVocabulary\n\n////////////////\n// ## Folding\n////////////////\n\n/**\n * `fold-icon`'s values: the chevron before the title (`start`, inside the fold button), or at the far end of the\n * title bar (`end`, after the badge and actions).\n */\nexport const FoldIconPlace = { start: \"start\", end: \"end\" } as const\n/** One of `FoldIconPlace`'s values, e.g. `\"end\"`. */\nexport type FoldIconPlace = (typeof FoldIconPlace)[keyof typeof FoldIconPlace]\n","import { Show } from \"solid-js\"\nimport { Dynamic, isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { sectionVocabulary } from \"./UISection.en\"\nimport { UISections } from \"./UISections\"\nimport { FoldIconPlace, type SectionVocabulary } from \"./UISection.types\"\n\nimport sectionCSS from \"./UISection.css?inline\"\n\n/****************\n * ### `UISection`\n * The component behind `<ui-section>`: a titled block of content that can fold away,\n * and keep its title in view while you scroll through it.\n *\n * - Its shadow DOM: `<section class=\"ui … section\" part=\"section\">` holding\n * - a 1px sentinel, which tells when the title has stuck\n * - the title bar, `<header class=\"title\">`:\n * the heading (`<hN>`) around the toggle (fold chevron, icon, label),\n * then the badge, the actions, a chevron at the end, and the description's tip\n * - the hint, then `<div class=\"content\">` around the default slot.\n * - A wrapper that would be empty (icon, badge, actions, hint, tip) isn't drawn:\n * `SlotContent` watches the light children.\n *\n * - *Level*: `level`, else the enclosing section's level + 1 (at most `h6`), else 2.\n * - The enclosing section is found through `PartContext` with no barriers,\n * so a section in a segment in a section still nests.\n * - `parent=\"<id>\"`: written outside the section (or group) it belongs in, it moves in (`ParentLink`).\n * - Its level, depth and sticky stack are read from the enclosing section's component,\n * so they follow its attributes, and a move to another section.\n *\n * - *Folding* (`collapsible`): the toggle becomes a `<button>`; its `disclosure` (the kit's `Disclosure`) folds.\n * - Its accessible name is the label; its `title` (the `fold` / `unfold` text) is only a tooltip.\n * - Click, Enter and Space send the cancelable `ui-opening` / `ui-closing`,\n * then flip `open` (controlled, like the accordion's).\n * - Once it has folded or unfolded, by any route: `ui-closed` / `ui-opened`.\n * - Folded content is `hidden=\"until-found\"`, so find-in-page can reveal a match:\n * `beforematch` unfolds it, and announces `ui-opening` after the fact (not cancelable).\n * - Not collapsible: `open` is ignored.\n * - `fold-icon=\"end\"` moves the chevron out of the button, to the far end of the title bar.\n * - It stays `aria-hidden` (the button is still the control), and a click on it folds as the button does.\n * - A subclass moves the default with `defaultFoldIcon` (`<ui-panel>`: `end`).\n * - *Groups*: without its own `collapsible` attribute,\n * a section folds when its nearest `<ui-sections>` is `collapsing`\n * (around it, or around an enclosing section).\n * - The group owns `section` parts too, so `enclosingSection` climbs through it.\n *\n * - `description` / `slot=\"description\"`: a tooltip under the title bar (`role=\"tooltip\"`),\n * in the browser's top layer so no parent frame cuts it off (`TopLayerTip`).\n * - Shown while the pointer is on the heading or the end chevron, or the fold button has keyboard focus.\n * - It describes the fold button (`aria-describedby`), else the heading.\n *\n * - *Sticky*: the title bar is `position: sticky` inside the section's box,\n * at the top-level `offset`, or just below the enclosing sticky titles: so nested titles stack.\n * - A `scrolling` / `height` section's content is its own scroll box: a fresh stack starts there.\n * - `StickyWatch` sets `:state(stuck)`, and reserves the title's room for Page Down, as `<ui-sticky>` does.\n *\n * - *Stack* (`sticky=\"stack\"`, or `sticky` right inside a stacked section, plain wrappers aside): the titles read as one stack of rounded bars\n * (`:state(stacked)`), the look is the sheet's; what it needs to know of its neighbours, the component works out:\n * - `tucked`: the first thing in its enclosing section (nothing drawn before it, wrappers aside), so its title sits\n * right under that section's, square on top; the enclosing one `tucks`\n * - `after-closed`: right after a closed section, nothing between; closed too, `joins-above`; the closed one\n * before it, `joins-below`: closed sections one after another are ONE group, round only at its ends\n * - a section knows what's before it; what's after it (and its first nested one) it hears from them:\n * `isFollowedByClosed`, `hasTuckedFirst`, which they set\n * - Its neighbours are found in the enclosing section's light DOM, past any wrappers (a notebook's cells):\n * `stackPlaces`, recomputed as that DOM changes. A top-level section's neighbour is its element sibling.\n *\n * - *Source* (`source`, `select`): the content comes from a file the first time the section unfolds, by any route:\n * - a click\n * - the page setting `open` (a `#id` link)\n * - starting unfolded (then at once)\n * - `LoadableBody` fetches it (`UI.sources`),\n * and puts its `<body>` in the LIGHT DOM, in place of the placeholder (the children without a `slot`).\n * - While it's on its way, the content box stays hidden (`isVeiled`) for at most `SOURCE_BODY_HOLD_MS`,\n * then shows the `loading` look over the placeholder.\n * So an unfold shows the body, not the placeholder.\n * - The DOM element (`DOMLoadableBodyElement`) has `load()` / `reload()`, and states `loaded` and `error`.\n * - In the class, not the vocabulary: a subclass (`<ui-panel>`) gets it with the vocabulary it reuses.\n *\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * - faded, everything in it inert (its fold button too), `aria-disabled`\n * - `toggle()` does nothing\n *\n * - SIDE EFFECTS:\n * - with `sticky`: a `ResizeObserver` keeps the title's height (`titleHeight`) for the stack,\n * and `StickyWatch` writes the scroll container's inline `scroll-padding-top` while stuck\n * - with `source`: replaces its own light children (the placeholder) with the file's body.\n *\n * - Its words match `<ui-field>`'s (epic `property-editor` P10, decision Q12): `label` / `hint` / `description`,\n * `ui-opening` / `ui-closing`. The old ones (`header`, `subhead`, `info`, `ui-opening` ...) went in epic\n * `repo-split` P14 (Q45).\n ****************/\nexport class UISection extends E.UIComponent<SectionVocabulary> {\n @E.proto static vocabulary = sectionVocabulary\n @E.protoMerged static elementSetup: Partial<E.ElementSetup> = {\n styleSheets: { section: sectionCSS },\n cssStates: [\"inverted\"],\n DOMElement: E.DOMLoadableBodyElement,\n // a container: a click on its text must not jump to the fold button or a link inside\n delegatesFocus: false,\n // `loading`: Fomantic's veil\n loading: \"its own\"\n }\n @E.proto static defaultFoldIcon: FoldIconPlace = FoldIconPlace.start\n\n /** Where the fold chevron sits without a `fold-icon` attribute: `start`; a subclass may move it. */\n declare defaultFoldIcon: FoldIconPlace\n\n ////////////////\n // ## Nesting\n ////////////////\n\n /** Enclosing section, when nested (`:state(nested)`); climbs through any other component. */\n readonly context = new E.PartContext({\n domElement: this.domElement,\n noun: this.vocabulary.noun,\n barrier: E.PartContext.noBarrier\n })\n\n /**\n * Enclosing section's component, or `undefined` at the top (or before it has one).\n * - Climbs through `<ui-sections>` groups (owners of `section` parts too):\n * a section in a group in a section is still nested.\n */\n @E.derived\n get enclosingSection(): UISection | undefined {\n let owner = this.context.ownerComponent<UISection | UISections>()\n while (owner instanceof UISections) owner = owner.context.ownerComponent<UISection | UISections>()\n return owner instanceof UISection ? owner : undefined\n }\n\n /** Nearest `<ui-sections>` group's component, directly or through enclosing sections, or `undefined`. */\n get group(): UISections | undefined {\n const owner = this.context.ownerComponent<UISection | UISections>()\n if (owner instanceof UISections) return owner\n return owner instanceof UISection ? owner.group : undefined\n }\n\n /** Inside another section, through any group (`:state(nested)`; the part's own `in-section` counts only a direct one). */\n @E.cssState(\"nested\")\n get isNested(): boolean {\n return !!this.enclosingSection\n }\n\n /** Directly in a `<ui-sections>` group (`:state(in-group)`; also the part's own `in-sections`). */\n @E.cssState(\"in-group\")\n get isInGroup(): boolean {\n return this.context.ownerComponent<UISection | UISections>() instanceof UISections\n }\n\n /** Heading level, 1 ... 6. */\n get headingLevel(): number {\n const own = Number(this.level)\n if (Number.isInteger(own) && own >= 1 && own <= MAX_LEVEL) return own\n const parent = this.enclosingSection\n return parent ? Math.min(parent.headingLevel + 1, MAX_LEVEL) : TOP_LEVEL\n }\n\n /** Nesting depth: 0 at the top. */\n get depth(): number {\n const parent = this.enclosingSection\n return parent ? parent.depth + 1 : 0\n }\n\n ////////////////\n // ## Folding\n ////////////////\n\n /**\n * `open`: the DOM element's (a boolean is always the DOM element's, see `@controlled`); `false` folds it.\n * - Folds only `isCollapsible`.\n * - Its old name was `collapsed`, turned round (epic `ui-gaps` J13).\n */\n @E.controlled(\"open\") accessor isMarkedOpen = true\n\n /**\n * Can it fold?\n * - The DOM element's own `collapsible` when written (`collapsible=\"false\"` opts out),\n * else the nearest group's `collapsing`.\n * - Reads the attribute raw: its getter reads absent and `\"false\"` alike (false),\n * but only absent takes the group's default.\n * - NOTE: a PROPERTY write of `false` removes the attribute (booleans never reflect as `\"false\"`),\n * which brings the group's default back.\n * Opt out from code with `setAttribute(\"collapsible\", \"false\")`.\n */\n get isCollapsible(): boolean {\n const own = this.attributes.collapsible\n if (own !== null) return E.Converters.boolean(own, this.elementDefinition.attribute(\"collapsible\").attribute)\n return !!this.collapsible || !!this.group?.collapsing\n }\n\n /** Folded: `isCollapsible`, and `open` turned off. */\n @E.cssState(\"collapsed\")\n get isFolded(): boolean {\n return this.isCollapsible && !this.isMarkedOpen\n }\n\n /** Glyph of the fold button, while `isCollapsible`. */\n readonly foldGlyph = new E.IconGlyph({ owner: this, name: () => (this.isCollapsible ? FOLD_ICON : undefined) })\n\n /** The fold chevron sits at the far end of the title bar: `fold-icon`, else the class's `defaultFoldIcon`. */\n get foldIconIsAtEnd(): boolean {\n return (this.foldIcon ?? this.defaultFoldIcon) === FoldIconPlace.end\n }\n\n /**\n * Open unless folded, on `open` (`isMarkedOpen`):\n * the cancelable `ui-opening` / `ui-closing`, then `ui-opened` / `ui-closed` (`onFoldedChanged()`);\n * the toggle's `aria-expanded`; find-in-page opening the folded content.\n * - Folds only `isCollapsible`, and never while `disabled`.\n */\n readonly disclosure = new E.Disclosure({\n component: this,\n member: \"isMarkedOpen\",\n isOpen: () => !this.isFolded,\n canChange: () => this.isCollapsible && !this.isDisabled,\n detail: (open, originalEvent): UIT.SectionToggleDetail => ({ open, section: this.domElement, originalEvent }),\n afterDetail: (open): UIT.SectionToggleDetail => ({ open, section: this.domElement })\n })\n\n /**\n * Fold or unfold as a person would:\n * the cancelable `ui-opening` / `ui-closing` first, then `open`.\n * - True when applied.\n * - Does nothing unless `collapsible`, or while `disabled`.\n */\n toggle(originalEvent?: Event): boolean {\n return this.disclosure.toggle(originalEvent)\n }\n\n /**\n * More for the fold button's tooltip, on a line of its own after `Open this section`: a component that draws the\n * section sets it (the epic page's blocks: `⌥-click: open everything inside`).\n * - a property, not an attribute: nothing a page writes\n */\n @E.state accessor toggleTipMore: string | undefined = undefined\n\n /** The fold button's tooltip: `Open this section` / `Close this section`, then `toggleTipMore`. */\n get toggleTip(): string {\n const tip = this.translationForKey(this.isFolded ? \"openSection\" : \"closeSection\")\n return this.toggleTipMore ? `${tip}\\n${this.toggleTipMore}` : tip\n }\n\n /** A click on the toggle (Enter / Space on the button click it too). */\n private readonly onToggleClick = (event: MouseEvent) => {\n // a link or control inside a rich `slot=\"label\"` title acts on its own, as in an accordion's title\n if (E.OwnControls.isClicked(event, { before: TOGGLE_BUTTON })) return\n this.toggle(event)\n }\n\n /** A click on the END chevron, outside the button: folds as the button does. */\n private readonly onFoldIconClick = (event: MouseEvent) => {\n this.toggle(event)\n }\n\n /** Folded or unfolded, by any route: `ui-closed` / `ui-opened` -- not at the start. */\n @E.onChange(\"isFolded\", { defer: true })\n protected onFoldedChanged(isFolded: boolean) {\n this.disclosure.sendAfter(!isFolded)\n }\n\n ////////////////\n // ## The sticky title\n ////////////////\n\n /** Title bar's height in pixels, while `sticky` (for the stack below it). */\n @E.state accessor titleHeight = 0\n\n /** Title bar is stuck. */\n @E.state accessor isStuck = false\n\n /** Stuck, and `sticky`. */\n @E.cssState(\"stuck\")\n get titleIsStuck(): boolean {\n return !!this.sticky && this.isStuck\n }\n\n /** The title bar. */\n private title?: HTMLElement\n\n /** Sentinel where the title bar's top would be, unstuck. */\n private sentinel?: HTMLDivElement\n\n /** Observes the stuck title and reserves its room. */\n private readonly stickyWatch = new E.StickyWatch(({ edge }) => (this.isStuck = edge !== undefined))\n\n /** Pixels from the scroll container's top where the title sticks: `offset` at the top, else the stack above. */\n get stickTop(): number {\n const parent = this.enclosingSection\n return parent ? parent.innerStackTop : (this.offset ?? 0)\n }\n\n /** Bottom of the stack of stuck titles, through this one, in pixels. */\n get stackBottom(): number {\n return this.stickTop + (this.sticky ? this.titleHeight : 0)\n }\n\n /** Where nested titles stick: below the stack, or 0 in this section's own scroll box (`scrolling` / `height`). */\n get innerStackTop(): number {\n return this.contentScrolls ? 0 : this.stackBottom\n }\n\n /** Is the content its own scroll box? */\n get contentScrolls(): boolean {\n return !!this.scrolling || !!this.height\n }\n\n ////////////////\n // ## The stack (`sticky=\"stack\"`)\n ////////////////\n\n /**\n * Its title a bar of a stack: `sticky=\"stack\"`, or a plain `sticky` right inside a stacked section, plain\n * wrappers aside (a notebook's cells).\n * - Not through another element (an example, a segment): a sticky section shown inside one keeps the plain look.\n */\n @E.cssState(\"stacked\")\n get isStacked(): boolean {\n if (this.sticky === STACK) return true\n const parent = this.enclosingSection\n return !!this.sticky && !!parent?.isStacked && isRightInside(this.domElement, parent.domElement)\n }\n\n /**\n * The sections nested in this one, in page order, each with where it stands among them:\n * first in this one (nothing drawn before it), and the one right before it (nothing drawn between).\n * - Read from the light DOM, past wrappers; again whenever it changes.\n */\n @E.watches({ childList: true, subtree: true, equals: isSameStack })\n get stackPlaces(): StackPlace[] {\n return stackPlacesIn(this.domElement)\n }\n\n /** Where it stands among its enclosing section's nested ones; a top-level one, by its element sibling. */\n get stackPlace(): StackPlace | undefined {\n const parent = this.enclosingSection\n if (parent) return parent.stackPlaces.find((place) => place.element === this.domElement)\n const sibling = this.domElement.previousElementSibling\n return {\n element: this.domElement,\n isFirst: false,\n previous: sibling?.localName === this.domElement.localName ? sibling : undefined\n }\n }\n\n /** The stacked section right before it, nothing drawn between. */\n get previousInStack(): UISection | undefined {\n const previous = (this.stackPlace?.previous as E.DOMElement | undefined)?.component\n return previous instanceof UISection && previous.isStacked ? previous : undefined\n }\n\n /** Stacked, and the first thing in its enclosing section: its title tucked under that one's. */\n @E.cssState(\"tucked\")\n get isTucked(): boolean {\n return this.isStacked && !!this.stackPlace?.isFirst\n }\n\n /** Stacked, its first nested section tucked under its title: its content has no room on top. */\n @E.cssState(\"tucks\")\n get tucksFirst(): boolean {\n return this.isStacked && !this.contentScrolls && this.hasTuckedFirst\n }\n\n /** Its first nested section is tucked under its title: that section says so (`onTuckedChanged()`). */\n @E.state accessor hasTuckedFirst = false\n\n /** The section right after it is closed: that section says so (`onNeighbourChanged()`). */\n @E.state accessor isFollowedByClosed = false\n\n /** Tell the enclosing section whether this one is tucked under its title (`tucks`). */\n @E.onChange(\"isTucked\", \"enclosingSection\", \"isConnected\")\n protected onTuckedChanged(isTucked: boolean, parent: UISection | undefined, isConnected: boolean) {\n if (!isTucked || !parent || !isConnected) return undefined\n parent.hasTuckedFirst = true\n return () => {\n parent.hasTuckedFirst = false\n }\n }\n\n /** Tell the section right before this one whether this one is closed (`joins-below`). */\n @E.onChange(\"previousInStack\", \"isFolded\", \"isConnected\")\n protected onNeighbourChanged(previous: UISection | undefined, isFolded: boolean, isConnected: boolean) {\n if (!previous || !isConnected) return undefined\n previous.isFollowedByClosed = isFolded\n return () => {\n previous.isFollowedByClosed = false\n }\n }\n\n /** Stacked, right after a closed section: no room above it. */\n @E.cssState(\"after-closed\")\n get isAfterClosed(): boolean {\n return this.isStacked && !!this.previousInStack?.isFolded\n }\n\n /** Closed, right after a closed one: in its group, square on top. */\n @E.cssState(\"joins-above\")\n get joinsAbove(): boolean {\n return this.isAfterClosed && this.isFolded\n }\n\n /** Closed, right before a closed one: in its group, square below. */\n @E.cssState(\"joins-below\")\n get joinsBelow(): boolean {\n return this.isStacked && this.isFolded && this.isFollowedByClosed\n }\n\n /**\n * The title's inline tokens: stick offset and nesting depth.\n */\n private get titleStyle(): Record<string, string> {\n return { [STICK_TOP_PROPERTY]: `${this.stickTop}px`, [DEPTH_PROPERTY]: String(this.depth) }\n }\n\n /**\n * Once drawn (`isReady`), while connected and `sticky`: measure the title (for the stack) and watch it stick.\n * - Again whenever its `top` changes; unstuck otherwise.\n * - Returns its stop.\n */\n @E.onChange(\"isReady\", \"isConnected\", \"sticky\", \"stickTop\")\n protected onStickingChanged(\n isReady: boolean,\n isConnected: boolean,\n sticky: boolean | typeof STACK | undefined,\n offset: number\n ) {\n if (!isReady) return undefined\n const { title, sentinel } = this\n if (!isConnected || !sticky || !title || !sentinel) {\n this.stickyWatch.reset()\n return undefined\n }\n const resizes = new ResizeObserver(() => (this.titleHeight = title.getBoundingClientRect().height))\n resizes.observe(title)\n const unwatch = this.stickyWatch.observe({ domElement: this.domElement, top: sentinel, box: title }, { offset })\n return () => {\n resizes.disconnect()\n unwatch()\n }\n }\n\n ////////////////\n // ## Title bar pieces\n ////////////////\n\n /** Which named slots have light-DOM content: icon, badge, hint, actions. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /**\n * `hide-empty`, and nothing in it to see: hidden (`:state(empty)`).\n * - Its content: the default slot's children, as `SlotContent` reads them, so Solid's markers and blank text don't count.\n * - `hide-empty=\"<selector>\"`: only what matches counts.\n */\n @E.cssState(\"empty\")\n get isEmpty(): boolean {\n const hideEmpty = this.hideEmpty\n if (hideEmpty == null) return false\n return isSelector(hideEmpty) ? !this.matchesHideEmpty : !this.slots.hasContent(\"\")\n }\n\n /** Is something in it what `hide-empty=\"<selector>\"` asks for, as its content changes? */\n @E.watches({ childList: true, subtree: true })\n get matchesHideEmpty(): boolean {\n const selector = this.hideEmpty\n return !!selector && isSelector(selector) && !!this.domElement.querySelector(selector)\n }\n\n /** Glyph of the `icon` shorthand. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.icon })\n\n /** Has an icon (shorthand or `icon` slot)? */\n get hasIcon(): boolean {\n return !!this.icon || this.slots.hasContent(this.slotForName(\"icon\"))\n }\n\n /** Has a badge (shorthand or `badge` slot)? */\n get hasBadge(): boolean {\n return !!this.badge || this.slots.hasContent(this.slotForName(\"badge\"))\n }\n\n /** Title text: `label`. */\n get titleText(): string | undefined {\n return this.label ?? undefined\n }\n\n /** Hint text: `hint`. */\n get hintText(): string | undefined {\n return this.hint ?? undefined\n }\n\n /** Tip text: `description`. */\n get descriptionText(): string | undefined {\n return this.description ?? undefined\n }\n\n /** Has a hint (shorthand, or the `hint` slot)? */\n get hasHint(): boolean {\n return !!this.hintText || this.slots.hasContent(this.slotForName(\"hint\"))\n }\n\n /** Has actions (`actions` slot)? */\n get hasActions(): boolean {\n return this.slots.hasContent(this.slotForName(\"actions\"))\n }\n\n /** Has a description's tip (`description`, or `slot=\"description\"`)? */\n get hasDescription(): boolean {\n return !!this.descriptionText || this.slots.hasContent(this.slotForName(\"description\"))\n }\n\n ////////////////\n // ## Source (`DOMLoadableBodyElement`)\n ////////////////\n\n /** The content from `source`, loaded on first unfold; into the DOM element's light DOM. */\n readonly body = new E.LoadableBody({\n domElement: this.domElement,\n source: () => this.source || undefined,\n select: () => this.selector || undefined,\n target: () => this.domElement,\n send: (name, detail) => this.send(name as never, detail)\n })\n\n /** Content box held closed while the `source` body is on its way (never in a server render: nothing loads). */\n get isVeiled(): boolean {\n return !isServer && !!this.source && this.body.isVeiled\n }\n\n /** Busy: `loading`, or a `source` body slow to arrive. */\n @E.cssState(\"loading\")\n get isLoading(): boolean {\n return !!this.loading || this.body.isBusy\n }\n\n /** The `source` body arrived. */\n @E.cssState(\"loaded\")\n get bodyIsLoaded(): boolean {\n return this.body.loadStatus === E.SourceStatus.loaded\n }\n\n /** The `source` body failed. */\n @E.cssState(\"error\")\n get bodyFailed(): boolean {\n return this.body.loadStatus === E.SourceStatus.error\n }\n\n /** The error line's text, when the `source` body failed; else `undefined`. */\n get bodyFailureText(): string | undefined {\n const failure = this.body.loadError\n if (!failure) return undefined\n const key = E.SOURCE_FAILURE_KEYS[failure.kind] ?? E.SOURCE_FAILURE_KEYS.load\n return this.translationForKey(key as never, { source: this.source ?? \"\" })\n }\n\n /**\n * Load the `source` body whenever the section is unfolded, connected and has one.\n * - `LoadableBody.load()` loads once per `source` + `select`.\n * - An effect, not in `render()`: a subclass drawing its own markup still loads its body.\n */\n @E.onChange(\"source\", \"selector\", \"isFolded\", \"isConnected\")\n protected onBodyWanted(\n source: string | undefined,\n _select: string | undefined,\n isFolded: boolean,\n isConnected: boolean\n ) {\n if (source && !isFolded && isConnected) this.body.load().catch(() => undefined)\n }\n\n /** Fetch and insert the `source` body now, folded or not; once per `source` + `select`. */\n loadBody(): Promise<void> {\n return this.body.load()\n }\n\n /** Fetch the `source` body again past the cache, and replace it. */\n reloadBody(): Promise<void> {\n return this.body.reload()\n }\n\n ////////////////\n // ## Looks\n ////////////////\n\n /** Transitions the fold: styled, in a browser that animates to `auto` heights. */\n @E.cssState(\"animated\")\n get isAnimated(): boolean {\n return this.isReady && UI.browser.supports.interpolateSize\n }\n\n /**\n * Words before the noun:\n * - `scrolling` for `height` without it (`height` implies it)\n * - `loading` while a `source` body is slow to arrive (the `loading` look, over the placeholder)\n */\n protected get extraClass(): string | undefined {\n const scrolling = this.height && !this.scrolling ? SCROLLING : undefined\n const loading = !this.loading && this.body.isBusy ? LOADING : undefined\n return [scrolling, loading].filter(Boolean).join(\" \") || undefined\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <section\n class={this.rootClass}\n part={this.partForName(\"section\")}\n aria-busy={this.isLoading ? \"true\" : undefined}\n >\n <div ref={(element) => (this.sentinel = element)} class={SENTINEL} aria-hidden=\"true\" />\n {this.titleBar()}\n <Show when={this.hasHint}>\n <div class={SUBHEAD} part={this.partForName(\"subhead\")}>\n <slot name={this.slotForName(\"hint\")}>{this.hintText}</slot>\n </div>\n </Show>\n <div\n ref={this.disclosure.revealOnMatch}\n id={CONTENT_ID}\n class={UIT.CONTENT}\n part={this.partForName(\"content\")}\n hidden={this.isFolded || this.isVeiled ? \"until-found\" : undefined}\n tabindex={this.contentScrolls ? 0 : undefined}\n style={this.contentStyle}\n >\n <Show when={this.bodyFailureText}>\n <p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>\n </Show>\n {this.contentStart()}\n <slot />\n </div>\n <Show when={this.isLoading}>\n <span class={UIT.VISUALLY_HIDDEN} role=\"status\">\n {this.translationForKey(\"loading\")}\n </span>\n </Show>\n </section>\n )\n }\n\n /** Drawn at the end of the title bar, after the actions: for a subclass (a property group's output); nothing here. */\n protected titleBarEnd(): JSX.Element {\n return undefined\n }\n\n /** The content box's inline style: its `height`; a subclass may add its own (a property group's columns). */\n protected get contentStyle(): Record<string, string> | undefined {\n return this.height ? { [HEIGHT_PROPERTY]: this.height } : undefined\n }\n\n /** Drawn first in the content, before the slot: for a subclass (a property group's error); nothing here. */\n protected contentStart(): JSX.Element {\n return undefined\n }\n\n /** `<header class=\"title\">`: the heading around the toggle, then the badge and actions. */\n private titleBar(): JSX.Element {\n return (\n <header\n ref={(element) => {\n this.title = element\n E.TopLayerTip.showIn(element, TIP_TRIGGERS)\n }}\n class={UIT.TITLE}\n part={this.partForName(\"title\")}\n style={this.titleStyle}\n >\n <Dynamic\n component={`h${this.headingLevel}`}\n class={HEADING}\n part={this.partForName(\"heading\")}\n aria-describedby={this.hasDescription && !this.isCollapsible ? TIP_ID : undefined}\n >\n <Dynamic\n component={this.isCollapsible ? \"button\" : \"span\"}\n type={this.isCollapsible ? \"button\" : undefined}\n class={TOGGLE}\n part={this.partForName(\"toggle\")}\n aria-expanded={this.isCollapsible ? this.disclosure.ariaExpanded : undefined}\n aria-controls={this.isCollapsible ? CONTENT_ID : undefined}\n title={this.isCollapsible ? this.toggleTip : undefined}\n disabled={this.isCollapsible && this.disabled ? true : undefined}\n aria-describedby={this.hasDescription && this.isCollapsible ? TIP_ID : undefined}\n onClick={this.onToggleClick}\n >\n <Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <span class={UIT.HEADER} part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"label\")}>{this.titleText}</slot>\n </span>\n </Dynamic>\n </Dynamic>\n <Show when={this.hasBadge}>\n <span class={BADGE} part={this.partForName(\"badge\")}>\n <slot name={this.slotForName(\"badge\")}>{this.badge}</slot>\n </span>\n </Show>\n <Show when={this.hasActions}>\n <span class={ACTIONS} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(\"actions\")} />\n </span>\n </Show>\n {this.titleBarEnd()}\n <Show when={this.isCollapsible && this.foldIconIsAtEnd}>{this.foldChevron(this.onFoldIconClick)}</Show>\n <Show when={this.hasDescription}>\n <span id={TIP_ID} class={TIP} part={this.partForName(\"tip\")} role=\"tooltip\">\n <slot name={this.slotForName(\"description\")}>{this.descriptionText}</slot>\n </span>\n </Show>\n </header>\n )\n }\n\n /**\n * The fold chevron, `aria-hidden` (the button is the control):\n * in the button, or at the bar's end with `onClick`, where it takes the button's tooltip too.\n */\n private foldChevron(onClick?: (event: MouseEvent) => void): JSX.Element {\n return (\n <span\n class={FOLD_ICON_CLASS}\n part={this.partForName(\"fold-icon\")}\n aria-hidden=\"true\"\n title={onClick ? this.toggleTip : undefined}\n onClick={onClick}\n >\n {this.foldGlyph.svg}\n </span>\n )\n }\n}\n\n/** The vocabulary getters, typed (`UIComponent`'s doc). */\nexport interface UISection extends E.AttributeValues<SectionVocabulary> {}\n\n/** Where a nested section stands among its enclosing section's (`stackPlaces`). */\ntype StackPlace = {\n /** the nested section's DOM element */\n element: Element\n /** nothing drawn before it in its enclosing section */\n isFirst: boolean\n /** the nested section right before it, nothing drawn between */\n previous: Element | undefined\n}\n\n/** Do `a` and `b` say the same of the same sections? */\nfunction isSameStack(a: StackPlace[], b: StackPlace[]): boolean {\n return (\n a.length === b.length &&\n a.every(\n (place, index) =>\n place.element === b[index]!.element &&\n place.isFirst === b[index]!.isFirst &&\n place.previous === b[index]!.previous\n )\n )\n}\n\n/** The sections nested directly in `host` (its own tag, none between), each with where it stands. */\nfunction stackPlacesIn(host: Element): StackPlace[] {\n const tag = host.localName\n const nested = [...host.querySelectorAll(tag)].filter((element) => element.parentElement?.closest(tag) === host)\n return nested.map((element, index) => {\n const before = nested[index - 1]\n return {\n element,\n isFirst: isDrawnFirst(element, host),\n previous: before && isRightAfter(element, before, host) ? before : undefined\n }\n })\n}\n\n/** Is `element` inside `outer` with no other element of a set (a tag with a `-`) between them? */\nfunction isRightInside(element: Element, outer: Element): boolean {\n for (let node = element.parentElement; node && node !== outer; node = node.parentElement)\n if (node.localName.includes(\"-\")) return false\n return true\n}\n\n/** Is nothing drawn before `element` in `host`? Named slots (a title's actions) and empty wrappers draw nothing. */\nfunction isDrawnFirst(element: Element, host: Element): boolean {\n for (let node: Element | null = element; node && node !== host; node = node.parentElement)\n for (let sibling = node.previousSibling; sibling; sibling = sibling.previousSibling)\n if (!drawsNothing(sibling)) return false\n return true\n}\n\n/** Is `element` right after `before` in `host`, nothing drawn between them? */\nfunction isRightAfter(element: Element, before: Element, host: Element): boolean {\n for (let node: Element | null = element; node && node !== host; node = node.parentElement)\n for (let sibling = node.previousSibling; sibling; sibling = sibling.previousSibling) {\n if (sibling === before || sibling.contains(before)) return isDrawnLast(before, sibling)\n if (!drawsNothing(sibling)) return false\n }\n return false\n}\n\n/** Is nothing drawn after `element` inside `outer` (`element` itself, or an element holding it)? */\nfunction isDrawnLast(element: Element, outer: Node): boolean {\n for (let node: Element | null = element; node && node !== outer; node = node.parentElement)\n for (let sibling = node.nextSibling; sibling; sibling = sibling.nextSibling)\n if (!drawsNothing(sibling)) return false\n return true\n}\n\n/** Does `node` draw nothing: white space, a comment, an element in a named slot, or one with nothing in it? */\nfunction drawsNothing(node: Node): boolean {\n if (node.nodeType === COMMENT_NODE) return true\n if (node.nodeType === TEXT_NODE) return !node.textContent?.trim()\n const element = node as Element\n if (element.hasAttribute(\"slot\")) return true\n return !element.firstElementChild && !element.textContent?.trim()\n}\n\n/** Node types, by number: a server render has no `Node`. */\nconst TEXT_NODE = 3\nconst COMMENT_NODE = 8\n\n/** `sticky`'s value that stacks its titles as bars: `sticky=\"stack\"`. */\nconst STACK = \"stack\"\n\n/** Glyph of the fold button (rotated by CSS while folded). */\nconst FOLD_ICON = \"chevron down\"\n\n/** Class word of the 1px sentinel before the title, which `StickyWatch` observes with `sticky`. */\nconst SENTINEL = \"sentinel\"\n\n/** The fold button, in the shadow root: where a click's path stops counting as one on a control in the title. */\nconst TOGGLE_BUTTON = \"button.toggle\"\n\n/** Private custom property of a title's nesting depth (0 at the top), inline: deeper titles slide under. */\nconst DEPTH_PROPERTY = \"--_ui-section-depth\"\n\n/** Class words of the line saying a `source` body failed (`part=\"error\"`, inside the content box). */\nconst SOURCE_ERROR = \"source error\"\n\n/** Class word before the noun while a `source` body is slow to arrive: the `loading` look. */\nconst LOADING = \"loading\"\n\n/** Heading level of a top-level section: under the page's `h1`. */\nconst TOP_LEVEL = 2\n\n/** Deepest heading level: `h6`. */\nconst MAX_LEVEL = 6\n\n/** Class word and part of the heading (`<hN>`). */\nconst HEADING = \"heading\"\n\n/** Class word and part of the toggle: the fold button, or a plain box when the section can't fold. */\nconst TOGGLE = \"toggle\"\n\n/** Class words of the fold chevron. */\nconst FOLD_ICON_CLASS = \"fold icon\"\n\n/** Class word and part of the badge pill. */\nconst BADGE = \"badge\"\n\n/** Class word and part of the actions box. */\nconst ACTIONS = \"actions\"\n\n/** Class word and part of the hint (its old name, kept as the CSS hook). */\nconst SUBHEAD = \"subhead\"\n\n/** Class word and part of the description's tip. */\nconst TIP = \"tip\"\n\n/** Class word `height` adds before the noun when `scrolling` isn't set: `height` implies scrolling. */\nconst SCROLLING = \"scrolling\"\n\n/** What shows the description's tip: the heading, and a chevron at the bar's end. */\nconst TIP_TRIGGERS = \".heading, .fold.icon\"\n\n/** `id` of the description's tip, which the fold button (else the heading) is described by. */\nconst TIP_ID = \"tip\"\n\n/** `id` of the content box, which the fold button's `aria-controls` names. */\nconst CONTENT_ID = \"content\"\n\n/**\n * Private custom property the content box reads for `height`:\n * inline, so the attribute wins over the page's `--ui-section-scrolling-height`.\n */\nconst HEIGHT_PROPERTY = \"--_ui-section-height\"\n\n/**\n * Private custom property the sticky title reads for its `top`, inline:\n * the top-level `offset`, or the stack of enclosing sticky titles above it, in pixels.\n */\nconst STICK_TOP_PROPERTY = \"--_ui-section-top\"\n\n/** Is `hide-empty`'s value a selector, not just there (`\"\"`, `\"true\"`)? */\nfunction isSelector(value: string): boolean {\n return !!value && value !== \"true\"\n}\n","/**\n * The section family: defines `<ui-sections>` and `<ui-section>`,\n * and exports their components, `UISections` and `UISection`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-section` entry (its size is in `notes/report.md`).\n * - The group is defined FIRST: a group already in the page then has its component\n * when its sections upgrade and look it up.\n * - Both own `section` parts: a nested `<ui-section>` finds the section or group around it through `PartContext`\n * (for its level, depth, sticky stack and default `collapsible`).\n */\n\nimport { UISections } from \"./UISections\"\nimport { UISection } from \"./UISection\"\n\nUISections.define()\nUISection.define()\n\nexport { UISection, UISections }\n"],"mappings":";;;;;AAgBA,IAAa2H,KAAqB;CAChC,KAAK;CACL,MAAM;CACN,QAAQ,CAAC,UAAU,YAAY;CAC/B,KAAK;EAAC;EAAa;EAAiB;EAAqB;CAAS;CAClE,MAAM;CACN,cAAc;CACd,aACE;CACF,YAAY,CACV;EACE,MAAM;EACN,OAAO;EACP,MAAM;EACN,aACE;CAEJ,CACF;CACA,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAA8C,CAAC;CAChF,OAAO,CAAC;EAAE,MAAM;EAAS,aAAa;CAAiB,CAAC;CACxD,QAAQ,CACN;EAAE,MAAM;EAAc,aAAa;CAAoB,GACvD;EAAE,MAAM;EAAe,aAAa;CAAkC,CACxE;CACA,OAAO,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IT.SourceBodyParts","UIT.SourceBodyStates","UIT.SourceFailureTexts","this","part={this.partForName(\"group\")}","<div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.PartContext","_$getOwner","_$setAttribute","__name","sectionCSS","ref={(element) => this.sentinel = element}","this","<section\n class={this.rootClass}\n part={this.partForName(\"section\")}\n aria-busy={this.isLoading ? \"true\" : void 0}\n >\n <div\n ref={(element) => this.sentinel = element}\n class={SENTINEL}\n aria-hidden=\"true\"\n style={{ [STICK_TOP_PROPERTY]: `${this.stickTop}px` }}\n />\n {this.titleBar()}\n <Show when={this.hasHint}>\n <div class={SUBHEAD} part={this.partForName(\"subhead\")}>\n <slot name={this.slotForName(\"hint\")}>{this.hintText}</slot>\n </div>\n </Show>\n <div\n ref={this.disclosure.revealOnMatch}\n id={CONTENT_ID}\n class={UIT.CONTENT}\n part={this.partForName(\"content\")}\n hidden={this.isFolded || this.isVeiled ? \"until-found\" : void 0}\n tabindex={this.contentScrolls ? 0 : void 0}\n style={this.contentStyle}\n >\n <Show when={this.bodyFailureText}>\n <p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>\n </Show>\n {this.contentStart()}\n <slot />\n </div>\n <Show when={this.isLoading}>\n <span class={UIT.VISUALLY_HIDDEN} role=\"status\">\n {this.translationForKey(\"loading\")}\n </span>\n </Show>\n </section>","<Show when={this.hasHint}>\n <div class={SUBHEAD} part={this.partForName(\"subhead\")}>\n <slot name={this.slotForName(\"hint\")}>{this.hintText}</slot>\n </div>\n </Show>","part={this.partForName(\"subhead\")}","name={this.slotForName(\"hint\")}","<div class={SUBHEAD} part={this.partForName(\"subhead\")}>\n <slot name={this.slotForName(\"hint\")}>{this.hintText}</slot>\n </div>","ref={this.disclosure.revealOnMatch}","<Show when={this.bodyFailureText}>\n <p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>\n </Show>","part={this.partForName(\"error\")}","<p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>","<div\n ref={this.disclosure.revealOnMatch}\n id={CONTENT_ID}\n class={UIT.CONTENT}\n part={this.partForName(\"content\")}\n hidden={this.isFolded || this.isVeiled ? \"until-found\" : void 0}\n tabindex={this.contentScrolls ? 0 : void 0}\n style={this.contentStyle}\n >\n <Show when={this.bodyFailureText}>\n <p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>\n </Show>\n {this.contentStart()}\n <slot />\n </div>","<Show when={this.isLoading}>\n <span class={UIT.VISUALLY_HIDDEN} role=\"status\">\n {this.translationForKey(\"loading\")}\n </span>\n </Show>","<span class={UIT.VISUALLY_HIDDEN} role=\"status\">\n {this.translationForKey(\"loading\")}\n </span>","part={this.partForName(\"section\")}","aria-busy={this.isLoading ? \"true\" : void 0}","class={SENTINEL}","style={{ [STICK_TOP_PROPERTY]: `${this.stickTop}px` }}","class={UIT.CONTENT}","part={this.partForName(\"content\")}","hidden={this.isFolded || this.isVeiled ? \"until-found\" : void 0}","tabindex={this.contentScrolls ? 0 : void 0}","style={this.contentStyle}","ref={(element) => {\n this.title = element;\n E.TopLayerTip.showIn(element, TIP_TRIGGERS);\n }}","<Dynamic\n component={`h${this.headingLevel}`}\n class={HEADING}\n part={this.partForName(\"heading\")}\n aria-describedby={this.hasDescription && !this.isCollapsible ? TIP_ID : void 0}\n >\n <Dynamic\n component={this.isCollapsible ? \"button\" : \"span\"}\n type={this.isCollapsible ? \"button\" : void 0}\n class={TOGGLE}\n part={this.partForName(\"toggle\")}\n aria-expanded={this.isCollapsible ? this.disclosure.ariaExpanded : void 0}\n aria-controls={this.isCollapsible ? CONTENT_ID : void 0}\n title={this.isCollapsible ? this.toggleTip : void 0}\n disabled={this.isCollapsible && this.disabled ? true : void 0}\n aria-describedby={this.hasDescription && this.isCollapsible ? TIP_ID : void 0}\n onClick={this.onToggleClick}\n >\n <Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <span class={UIT.HEADER} part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"label\")}>{this.titleText}</slot>\n </span>\n </Dynamic>\n </Dynamic>","class={HEADING}","<Dynamic\n component={this.isCollapsible ? \"button\" : \"span\"}\n type={this.isCollapsible ? \"button\" : void 0}\n class={TOGGLE}\n part={this.partForName(\"toggle\")}\n aria-expanded={this.isCollapsible ? this.disclosure.ariaExpanded : void 0}\n aria-controls={this.isCollapsible ? CONTENT_ID : void 0}\n title={this.isCollapsible ? this.toggleTip : void 0}\n disabled={this.isCollapsible && this.disabled ? true : void 0}\n aria-describedby={this.hasDescription && this.isCollapsible ? TIP_ID : void 0}\n onClick={this.onToggleClick}\n >\n <Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <span class={UIT.HEADER} part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"label\")}>{this.titleText}</slot>\n </span>\n </Dynamic>","class={TOGGLE}","this.isCollapsible ? this.disclosure.ariaExpanded : void 0","this.isCollapsible ? this.toggleTip : void 0","<Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>","this.isCollapsible && !this.foldIconIsAtEnd","<Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>","part={this.partForName(\"icon\")}","name={this.slotForName(\"icon\")}","<span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>","part={this.partForName(\"header\")}","name={this.slotForName(\"label\")}","<header\n ref={(element) => {\n this.title = element;\n E.TopLayerTip.showIn(element, TIP_TRIGGERS);\n }}\n class={UIT.TITLE}\n part={this.partForName(\"title\")}\n style={this.titleStyle}\n >\n <Dynamic\n component={`h${this.headingLevel}`}\n class={HEADING}\n part={this.partForName(\"heading\")}\n aria-describedby={this.hasDescription && !this.isCollapsible ? TIP_ID : void 0}\n >\n <Dynamic\n component={this.isCollapsible ? \"button\" : \"span\"}\n type={this.isCollapsible ? \"button\" : void 0}\n class={TOGGLE}\n part={this.partForName(\"toggle\")}\n aria-expanded={this.isCollapsible ? this.disclosure.ariaExpanded : void 0}\n aria-controls={this.isCollapsible ? CONTENT_ID : void 0}\n title={this.isCollapsible ? this.toggleTip : void 0}\n disabled={this.isCollapsible && this.disabled ? true : void 0}\n aria-describedby={this.hasDescription && this.isCollapsible ? TIP_ID : void 0}\n onClick={this.onToggleClick}\n >\n <Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <span class={UIT.HEADER} part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"label\")}>{this.titleText}</slot>\n </span>\n </Dynamic>\n </Dynamic>\n <Show when={this.hasBadge}>\n <span class={BADGE} part={this.partForName(\"badge\")}>\n <slot name={this.slotForName(\"badge\")}>{this.badge}</slot>\n </span>\n </Show>\n <Show when={this.hasActions}>\n <span class={ACTIONS} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(\"actions\")} />\n </span>\n </Show>\n {this.titleBarEnd()}\n <Show when={this.isCollapsible && this.foldIconIsAtEnd}>{this.foldChevron(this.onFoldIconClick)}</Show>\n <Show when={this.hasDescription}>\n <span id={TIP_ID} class={TIP} part={this.partForName(\"tip\")} role=\"tooltip\">\n <slot name={this.slotForName(\"description\")}>{this.descriptionText}</slot>\n </span>\n </Show>\n </header>","<Show when={this.hasBadge}>\n <span class={BADGE} part={this.partForName(\"badge\")}>\n <slot name={this.slotForName(\"badge\")}>{this.badge}</slot>\n </span>\n </Show>","part={this.partForName(\"badge\")}","name={this.slotForName(\"badge\")}","<span class={BADGE} part={this.partForName(\"badge\")}>\n <slot name={this.slotForName(\"badge\")}>{this.badge}</slot>\n </span>","<Show when={this.hasActions}>\n <span class={ACTIONS} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(\"actions\")} />\n </span>\n </Show>","part={this.partForName(\"actions\")}","name={this.slotForName(\"actions\")}","<span class={ACTIONS} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(\"actions\")} />\n </span>","<Show when={this.isCollapsible && this.foldIconIsAtEnd}>{this.foldChevron(this.onFoldIconClick)}</Show>","this.isCollapsible && this.foldIconIsAtEnd","<Show when={this.hasDescription}>\n <span id={TIP_ID} class={TIP} part={this.partForName(\"tip\")} role=\"tooltip\">\n <slot name={this.slotForName(\"description\")}>{this.descriptionText}</slot>\n </span>\n </Show>","part={this.partForName(\"tip\")}","name={this.slotForName(\"description\")}","<span id={TIP_ID} class={TIP} part={this.partForName(\"tip\")} role=\"tooltip\">\n <slot name={this.slotForName(\"description\")}>{this.descriptionText}</slot>\n </span>","part={this.partForName(\"title\")}","style={this.titleStyle}","part={this.partForName(\"fold-icon\")}","title={onClick ? this.toggleTip : void 0}","<span\n class={FOLD_ICON_CLASS}\n part={this.partForName(\"fold-icon\")}\n aria-hidden=\"true\"\n title={onClick ? this.toggleTip : void 0}\n onClick={onClick}\n >\n {this.foldGlyph.svg}\n </span>","E.UIComponent","E.proto","E.protoMerged","E.derived","E.cssState","E.controlled","E.state","E.onChange","E.watches","E.PartContext","E.IconGlyph","E.Disclosure","E.StickyWatch","E.SlotContent","E.LoadableBody","E.SOURCE_FAILURE_KEYS","_$getOwner","_$readShallow","_$setAttribute","UIT.VISUALLY_HIDDEN","UIT.CONTENT","UIT.ICON","UIT.HEADER","UIT.TITLE","__name","sectionCSS","E.DOMLoadableBodyElement","ICON","HEADER","__decoratorStart","VISUALLY_HIDDEN","__publicField","__name$1","TITLE","__decorateElement","__decoratorMetadata","__runInitializers","SourceBodyAttributes","SourceBodyStates","CONTENT","SourceBodyEvents","SourceFailureTexts","__privateAdd","SourceBodyParts","getOwner$1","sectionsVocabulary","sectionVocabulary","UISection_default","_tmpl$$1","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UISections","UIComponent","proto","protoMerged","PartContext","_self$","_el$","_el$2","effect","readShallow","className","_p$","t","setAttribute","UISections","FoldIconPlace","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_tmpl$7","_tmpl$8","_isAnimated_dec","_onBodyWanted_dec","_bodyFailed_dec","_bodyIsLoaded_dec","_isLoading_dec","_matchesHideEmpty_dec","_isEmpty_dec","_onStickingChanged_dec","_joinsBelow_dec","_joinsAbove_dec","_isAfterClosed_dec","_onNeighbourChanged_dec","_onTuckedChanged_dec","_isFollowedByClosed_dec","_hasTuckedFirst_dec","_tucksFirst_dec","_isTucked_dec","_stackPlaces_dec","_isStacked_dec","_titleIsStuck_dec","_isStuck_dec","_titleHeight_dec","_onFoldedChanged_dec","_toggleTipMore_dec","_isFolded_dec","_isMarkedOpen_dec","_isInGroup_dec","_isNested_dec","_enclosingSection_dec","_defaultFoldIcon_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_isMarkedOpen","_toggleTipMore","_titleHeight","_isStuck","_hasTuckedFirst","_isFollowedByClosed","_UISection","derived","cssState","controlled","state","onChange","watches","IconGlyph","FOLD_ICON","Disclosure","OwnControls","event","TOGGLE_BUTTON","StickyWatch","edge","SlotContent","LoadableBody","name","detail","owner","own","MAX_LEVEL","parent","TOP_LEVEL","Converters","originalEvent","tip","isFolded","STACK","place","sibling","previous","isTucked","isConnected","STICK_TOP_PROPERTY","DEPTH_PROPERTY","isReady","sticky","title","sentinel","resizes","unwatch","hideEmpty","selector","isServer","SourceStatus","failure","key","SOURCE_FAILURE_KEYS","source","UI","SCROLLING","LOADING","_el$3","_el$6","_el$8","_el$9","_el$11","ref","element","insert","createComponent","Show","_el$4","_el$5","SUBHEAD","a","CONTENT_ID","_ref$","_el$7","SOURCE_ERROR","_el$10","_v$","_$p","SENTINEL","style","i","n","s","h","r","d","HEIGHT_PROPERTY","_self$2","_el$12","_el$17","_el$20","_el$23","_el$24","_el$25","_el$28","TopLayerTip","TIP_TRIGGERS","Dynamic","HEADING","TIP_ID","TOGGLE","memo","_el$13","_el$14","_el$15","_el$16","e","_el$18","_el$19","BADGE","_el$21","_el$22","ACTIONS","_el$26","_el$27","TIP","_self$3","_el$29","addEvent","onClick","FOLD_ICON_CLASS","DOMLoadableBodyElement","UISection","b","index","tag","host","nested","before","node","outer","COMMENT_NODE","TEXT_NODE","value","delegateEvents"],"sources":["../src/components/ui-section/UISections.en.ts","../src/components/ui-section/UISection.en.ts","../src/components/ui-section/UISections.tsx","../src/components/ui-section/UISection.types.ts","../src/components/ui-section/UISection.tsx","../src/components/ui-section/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-sections>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words (`ClassBuilder`):\n * `<ui-sections collapsing>` => `ui collapsing sections`.\n * - `ownsParts: [\"section\"]`: a `<ui-section>` finds its group the way it finds an enclosing section\n * (`PartContext`), so its default `collapsible` follows the NEAREST group, at any depth (`UISection.group`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `sectionsVocabulary`\n * The names of `<ui-sections>`, a run of sections: `<div class=\"ui ... sections\" part=\"group\">` around a slot.\n ****************/\nexport const sectionsVocabulary = {\n tag: \"ui-sections\",\n icon: \"list alternate outline\",\n topics: [\"layout\", \"containers\"],\n aka: [\"accordion\", \"section group\", \"collapsible group\", \"outline\"],\n noun: \"sections\",\n partOfSpeech: \"structure\",\n description:\n \"A group of sections: with `collapsing`, every section in it can close, and closed ones stack with no space between.\",\n attributes: [\n {\n name: \"collapsing\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Every section in the group, sub-sections included, can close by default (as if `collapsible`); closed \" +\n 'ones stack with no space between. A section opts out with `collapsible=\"false\"`.'\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-section>`s, and anything between them.\" }],\n parts: [{ name: \"group\", description: \"The group box.\" }],\n states: [\n { name: \"in-section\", description: \"Inside a section.\" },\n { name: \"in-sections\", description: \"Inside another `<ui-sections>`.\" }\n ],\n texts: [],\n ownsParts: [\"section\"]\n} as const satisfies E.ComponentVocabulary\n","/**\n * The English vocabulary of `<ui-section>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-section color=\"teal\" dividing sticky>` => `ui teal dividing sticky section`.\n * - Not class words, which the component draws or reads instead:\n * - the strings and numbers: `label`, `hint`, `description`, `level`, `badge`, `offset`, `height`\n * - the booleans: `collapsible`, `open` (`collapsed` its old name, turned round)\n * - `fold-icon`\n * - `source` (`UIT.LoadableBody*`): the content comes from a file the first time the section unfolds.\n * Spread in here, so a subclass reusing this vocabulary (`<ui-panel>`) has it too.\n * - `open` is CONTROLLED, like the accordion's: set it to fold or unfold (`open=\"false\"` folds).\n * `ui-opening` / `ui-closing` can veto a person's change.\n * - Its words match `<ui-field>`'s (epic `property-editor` P10, decision Q12):\n * - `label`, `hint`, `description`\n * - events in pairs: `ui-closing` then `ui-closed`\n * - states `nested` and `in-group`\n * - Its old words (`header`, `subhead`, `info`, `ui-opening`, `ui-closing`, `ui-loaded`) went in epic `repo-split` P14 (Q45).\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `sectionVocabulary`\n * The names of `<ui-section>`, a titled block of content that can fold.\n * Its `<section class=\"ui … section\" part=\"section\">` holds:\n * - its title bar: `<hN>` with the icon, label and a fold button, then the badge and actions\n * - an optional hint, then the content\n ****************/\nexport const sectionVocabulary = {\n tag: \"ui-section\",\n icon: \"bookmark outline\",\n snippet: '<ui-section label=\"A section\">\\n\\t<ui-text>What it holds</ui-text>\\n</ui-section>',\n topics: [\"layout\", \"containers\"],\n aka: [\"section\", \"panel\", \"collapsible\", \"disclosure\", \"fieldset\", \"expander\"],\n // a title over its content, as a segment's skeleton\n skeleton: \"header, paragraph\",\n noun: \"section\",\n partOfSpeech: \"structure\",\n description: \"A section is a titled block of content that can close and keep its title in view.\",\n attributes: [\n {\n name: \"label\",\n group: \"name\",\n kind: \"string\",\n description: 'Title text; a slotted `slot=\"label\"` is the rich version (code, links).'\n },\n {\n name: \"hint\",\n group: \"form\",\n kind: \"string\",\n description: 'Smaller text under the title; scrolls away with the content, never sticks. Or `slot=\"hint\"`.'\n },\n {\n name: \"level\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"],\n description:\n \"Heading level of the title (`<h1>` ... `<h6>`); default: the enclosing section's level + 1, else 2 \" +\n \"(under the page's `h1`).\"\n },\n {\n name: \"parent\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"Id of the `<ui-section>` (or `<ui-sections>`) this one nests in, when it's written outside it \" +\n '(`parent=\"setup\"`): it joins it, in page order, as if nested there.'\n },\n {\n name: \"icon\",\n group: \"content\",\n kind: \"icon\",\n description: 'Icon name, before the title; a slotted `slot=\"icon\"` (a `<ui-icon>`, anything) replaces it.'\n },\n {\n name: \"badge\",\n group: \"content\",\n kind: \"string\",\n description: 'A small pill after the title, e.g. a count (`3/7`); `slot=\"badge\"` is the rich version.'\n },\n {\n name: \"description\",\n group: \"content\",\n kind: \"string\",\n description:\n \"A tip about the section, shown under the title bar while the pointer is on the title (or the open / close button \" +\n 'has keyboard focus); it describes the title. `slot=\"description\"` is the rich version (bold words, line ' +\n \"breaks).\"\n },\n {\n name: \"hide-empty\",\n group: \"behaviour\",\n kind: \"string\",\n description:\n \"Hidden while nothing's in it to see: no element in its content, and no text but blanks. \" +\n \"A loader counts, so a section waiting for its list keeps its title. A selector narrows what counts: \" +\n '`hide-empty=\"ui-card\"` hides it until a card is in it. Follows its content as it changes.'\n },\n {\n name: \"collapsible\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"The title opens and closes the content: a button with `aria-expanded`. Default: on inside \" +\n '`<ui-sections collapsing>`, sub-sections included; `collapsible=\"false\"` opts out there.'\n },\n {\n name: \"open\",\n group: \"states\",\n kind: \"boolean\",\n default: true,\n replaces: [{ from: \"collapsed\", value: \"false\" }],\n description:\n 'Open; `open=\"false\"` closes it, so only the title shows. Controlled: set it to close or open; ' +\n \"`ui-opening` / `ui-closing` can veto a person's changes. Find-in-page opens a match. Its old name was \" +\n \"`collapsed` (turned round).\"\n },\n {\n name: \"fold-icon\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"start\", \"end\"],\n description:\n \"With `collapsible`: where the open / close chevron sits: `start`, before the title (the default), or `end`, at \" +\n \"the far end of the title bar, after the badge and actions (a click on it closes and opens too).\"\n },\n {\n name: \"sticky\",\n group: \"behaviour\",\n kind: \"keyOrValueAndKey\",\n values: [\"stack\"],\n description:\n \"The title bar sticks while the section is on screen; a sticky section inside another sticks just below \" +\n 'its title. `sticky=\"stack\"`: the titles read as one stack of rounded bars, as the docs pages\\' sections ' +\n \"do -- each level a step further in (`--ui-section-stack-reach`, `--ui-section-stack-step`), a section's \" +\n \"first nested title tucked square under its own, a nested title stuck under its parent's a heavy round \" +\n \"(the theme's large radius), and closed sections one after another flush, ONE group, round only at its top \" +\n \"and bottom. A plain `sticky` section right inside a stacked one joins its stack (not through another element, \" +\n \"an example's).\"\n },\n {\n name: \"offset\",\n group: \"layout\",\n kind: \"number\",\n default: 0,\n description:\n \"With `sticky`: pixels between the top edge and a TOP-LEVEL section's stuck title (e.g. a page header's \" +\n \"height); nested sections work theirs out.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Hue of the title (and of the rule or box edge).\"\n },\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Text size of the CONTENT, `mini` ... `massive`; the title keeps its level's size.\"\n },\n { name: \"dividing\", group: \"appearance\", kind: \"keyOnly\", description: \"A rule under the title.\" },\n { name: \"block\", group: \"layout\", kind: \"keyOnly\", description: \"The title bar in a tinted box.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"bordered\", \"styled\", \"raised\", \"basic\", \"drawer\"],\n // each word draws itself: no key after it\n classes: {},\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"styled\", value: \"styled\" },\n { from: \"raised\", value: \"raised\" },\n { from: \"basic\", value: \"basic\" }\n ],\n description:\n \"The look, several words at once: `bordered` (a box around the section, as a segment), `styled` (boxed \" +\n \"as a styled accordion: a tinted title bar over padded content), `raised` (with a box: lifted with a \" +\n \"shadow), `basic` (no box, rule or tint, whatever else is set), `drawer` (the title a raised bar, the \" +\n \"content a tinted panel attached under it that rolls open and closed, as an example's code under its demo). \" +\n \"Old names: `bordered`, `styled`, `raised`, `basic`.\"\n },\n {\n name: \"padding\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"compact\", \"md\", \"lg\"],\n classes: { md: \"padded\", lg: \"very padded\" },\n replaces: [\n { from: \"compact\", value: \"compact\" },\n { from: \"padded\", value: \"md\", values: { very: \"lg\" } }\n ],\n description:\n \"`compact`: less padding and space around the title; `md` / `lg`: more padding in the content. Old \" +\n 'names: `compact`, `padded` (`padded=\"very\"` is `lg`).'\n },\n {\n name: \"attach-to\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"both\", \"top\", \"bottom\"],\n classes: { both: \"attached\", top: \"top attached\", bottom: \"bottom attached\" },\n replaces: [\"attach\", { from: \"attached\", value: \"both\" }],\n description:\n \"With a box: joined edge to edge with the box above (`top`), below (`bottom`), or both (`both`, between \" +\n \"two). Old names: `attach`, `attached` (bare is `both`).\"\n },\n {\n name: \"scrolling\",\n group: \"layout\",\n kind: \"keyOrValueAndKey\",\n values: [\"short\", \"very short\", \"long\", \"very long\"],\n description: \"The content has a capped height and scrolls; `short` ... `very long` scale the cap.\"\n },\n {\n name: \"height\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"The content's cap, any CSS length (`20em`, `300px`): above it the content scrolls (implies `scrolling`).\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"textAlign\",\n values: [\"left\", \"center\", \"right\"],\n replaces: [\"text-align\"],\n description: \"Aligns the TITLE `left`, `center` or `right`. Old name: `text-align`.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds: the dark scheme.\" },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Dims the content under a spinner; `aria-busy`.\"\n },\n {\n name: \"disabled\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Dimmed and inert; can't be closed or opened.\"\n },\n ...UIT.SourceBodyAttributes\n ],\n events: [\n {\n name: \"ui-opening\",\n detail: \"{ open: boolean, section: Element, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"About to open: the title was activated, or find-in-page matched inside (not cancelable then, \" +\n \"`cancelable: false`). Cancel to stay closed.\"\n },\n {\n name: \"ui-opened\",\n detail: \"{ open: boolean, section: Element }\",\n description: \"Opened, by any route: the title, the page setting `open`, find-in-page.\"\n },\n {\n name: \"ui-closing\",\n detail: \"{ open: boolean, section: Element, originalEvent?: Event }\",\n cancelable: true,\n description: \"About to close: the title was activated. Cancel to stay open.\"\n },\n {\n name: \"ui-closed\",\n detail: \"{ open: boolean, section: Element }\",\n description: 'Closed, by any route: the title, or the page setting `open=\"false\"`.'\n },\n ...UIT.SourceBodyEvents\n ],\n slots: [\n { name: \"\", description: \"The content: anything, nested `<ui-section>`s included.\" },\n { name: \"label\", description: \"Rich title, instead of the `label` attribute.\" },\n { name: \"hint\", description: \"Rich hint, instead of the `hint` attribute.\" },\n { name: \"icon\", description: \"Icon before the title, instead of the `icon` attribute (a `<ui-icon>`, an image).\" },\n { name: \"badge\", description: \"Rich badge, instead of the `badge` attribute (e.g. a `<ui-label>`).\" },\n { name: \"actions\", description: \"Controls at the right of the title bar (buttons, a menu); never close it.\" },\n { name: \"description\", description: \"Rich tip, instead of the `description` attribute (bold words, line breaks).\" }\n ],\n parts: [\n { name: \"section\", description: \"The section box.\" },\n { name: \"title\", description: \"The title bar: sticks with `sticky`.\" },\n { name: \"heading\", description: \"The `<h1>` ... `<h6>`.\" },\n {\n name: \"toggle\",\n description: \"With `collapsible`: the `<button>` inside the heading that opens and closes the section.\"\n },\n {\n name: \"fold-icon\",\n description:\n 'With `collapsible`: the chevron, in the toggle; with `fold-icon=\"end\"`, at the end of the title bar.'\n },\n { name: \"icon\", description: \"The icon box.\" },\n { name: \"header\", description: \"The title text box.\" },\n { name: \"badge\", description: \"The badge pill.\" },\n { name: \"actions\", description: \"The actions box, at the right of the title bar.\" },\n {\n name: \"tip\",\n description: \"With `description`: the tip, under the title bar, shown on hover and keyboard focus.\"\n },\n { name: \"subhead\", description: \"The hint under the title.\" },\n { name: \"content\", description: \"The content box: `size`, `scrolling` and `height` apply here.\" },\n ...UIT.SourceBodyParts\n ],\n states: [\n { name: \"collapsed\", description: \"Closed.\" },\n { name: \"empty\", description: \"With `hide-empty`: nothing in it to see, so it's hidden.\" },\n { name: \"stuck\", description: \"With `sticky`: the title bar is stuck to the top.\" },\n {\n name: \"stacked\",\n description: 'With `sticky=\"stack\"` (or `sticky` right inside a stacked section): a bar of the stack.'\n },\n {\n name: \"tucked\",\n description:\n \"Stacked: the first thing in its enclosing section, its title right under that section's, square on top.\"\n },\n {\n name: \"tucks\",\n description: \"Stacked: its first nested section is tucked under its title, so its content has no room on top.\"\n },\n {\n name: \"after-closed\",\n description: \"Stacked: right after a closed section, nothing between: no room above it.\"\n },\n { name: \"joins-above\", description: \"Stacked and closed, right after a closed one: square on top, in its group.\" },\n { name: \"joins-below\", description: \"Stacked and closed, right before a closed one: square below, in its group.\" },\n { name: \"animated\", description: \"Opens and closes with a height transition (`interpolate-size`).\" },\n { name: \"nested\", description: \"Nested in another section.\" },\n { name: \"in-group\", description: \"Directly in a `<ui-sections>` group (no section between).\" },\n {\n name: \"in-section\",\n description: \"Directly in another section (its part's state); `nested` counts one through a group too.\"\n },\n { name: \"in-sections\", description: \"Directly in a `<ui-sections>` group (its part's state), as `in-group`.\" },\n { name: \"inverted\", description: \"In the dark scheme.\" },\n { name: \"loading\", description: \"Busy: `loading`, or a `source` body that is slow to arrive.\" },\n { name: \"disabled\", description: \"Dimmed and inert.\" },\n ...UIT.SourceBodyStates\n ],\n texts: [\n { key: \"loading\", text: \"Loading…\", description: \"Announced while `loading`.\" },\n { key: \"closeSection\", text: \"Close this section\", description: \"Tooltip of the open / close button while open.\" },\n { key: \"openSection\", text: \"Open this section\", description: \"Tooltip of the open / close button while closed.\" },\n ...UIT.SourceFailureTexts\n ],\n ownsParts: [\"section\"]\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { sectionsVocabulary } from \"./UISections.en\"\nimport { sectionVocabulary } from \"./UISection.en\"\n\nimport sectionCSS from \"./UISection.css?inline\"\n\n/****************\n * ### `UISections`\n * The component behind `<ui-sections>`: a run of sections, spaced as one section would be.\n *\n * - Its shadow DOM is one box around a slot: `<div class=\"ui … sections\" part=\"group\"><slot></slot></div>`.\n * - Plain, it changes nothing in its sections.\n * - `collapsing`: every `<ui-section>` under it, sub-sections at any depth included, folds by default.\n * - A section's own `collapsible` attribute wins, `\"false\"` included.\n * - Each section reads `collapsing` from its NEAREST group (`UISection.group`),\n * so a plain `<ui-sections>` nested inside turns the default off again.\n * - The spacing is CSS: `UISection.css` hands the stacking down to the sections\n * through the inherited `--_ui-sections-stack` switch, which a nested plain group resets.\n * - It owns `section` parts (`ownsParts`), so a section's `PartContext` stops here.\n * Its own `context` finds the section (or group) around it,\n * which `UISection.enclosingSection` climbs to, so levels and sticky stacks carry through.\n ****************/\nexport class UISections extends E.UIComponent<typeof sectionsVocabulary> {\n @E.proto static vocabulary = sectionsVocabulary\n @E.protoMerged static elementSetup = { styleSheets: { section: sectionCSS } } satisfies Partial<E.ElementSetup>\n\n /** Enclosing section or group (`:state(in-section)` / `:state(in-sections)`); climbs through any component. */\n readonly context = new E.PartContext({\n domElement: this.domElement,\n noun: sectionVocabulary.noun,\n barrier: E.PartContext.noBarrier\n })\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary getters, typed (`UIComponent`'s doc). */\nexport interface UISections extends E.AttributeValues<typeof sectionsVocabulary> {}\n","/**\n * The types and constants of the section family that `<ui-section>` and `<ui-panel>` share.\n * - `UIPanel` extends `UISection`, and reuses its vocabulary type and its chevron places.\n * - Pure data: `import type` only, so node can load it (`yarn site:data`).\n * - A constant only `UISection` reads sits below that class, in `UISection.tsx`.\n */\n\nimport type { sectionVocabulary } from \"./UISection.en\"\n\n/** `<ui-section>`'s vocabulary type, for brevity (`<ui-panel>` reuses it). */\nexport type SectionVocabulary = typeof sectionVocabulary\n\n////////////////\n// ## Folding\n////////////////\n\n/**\n * `fold-icon`'s values: the chevron before the title (`start`, inside the fold button), or at the far end of the\n * title bar (`end`, after the badge and actions).\n */\nexport const FoldIconPlace = { start: \"start\", end: \"end\" } as const\n/** One of `FoldIconPlace`'s values, e.g. `\"end\"`. */\nexport type FoldIconPlace = (typeof FoldIconPlace)[keyof typeof FoldIconPlace]\n","import { Show } from \"solid-js\"\nimport { Dynamic, isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { sectionVocabulary } from \"./UISection.en\"\nimport { UISections } from \"./UISections\"\nimport { FoldIconPlace, type SectionVocabulary } from \"./UISection.types\"\n\nimport sectionCSS from \"./UISection.css?inline\"\n\n/****************\n * ### `UISection`\n * The component behind `<ui-section>`: a titled block of content that can fold away,\n * and keep its title in view while you scroll through it.\n *\n * - Its shadow DOM: `<section class=\"ui … section\" part=\"section\">` holding\n * - a 1px sentinel, which tells when the title has stuck\n * - the title bar, `<header class=\"title\">`:\n * the heading (`<hN>`) around the toggle (fold chevron, icon, label),\n * then the badge, the actions, a chevron at the end, and the description's tip\n * - the hint, then `<div class=\"content\">` around the default slot.\n * - A wrapper that would be empty (icon, badge, actions, hint, tip) isn't drawn:\n * `SlotContent` watches the light children.\n *\n * - *Level*: `level`, else the enclosing section's level + 1 (at most `h6`), else 2.\n * - The enclosing section is found through `PartContext` with no barriers,\n * so a section in a segment in a section still nests.\n * - `parent=\"<id>\"`: written outside the section (or group) it belongs in, it moves in (`ParentLink`).\n * - Its level, depth and sticky stack are read from the enclosing section's component,\n * so they follow its attributes, and a move to another section.\n *\n * - *Folding* (`collapsible`): the toggle becomes a `<button>`; its `disclosure` (the kit's `Disclosure`) folds.\n * - Its accessible name is the label; its `title` (the `fold` / `unfold` text) is only a tooltip.\n * - Click, Enter and Space send the cancelable `ui-opening` / `ui-closing`,\n * then flip `open` (controlled, like the accordion's).\n * - Once it has folded or unfolded, by any route: `ui-closed` / `ui-opened`.\n * - Folded content is `hidden=\"until-found\"`, so find-in-page can reveal a match:\n * `beforematch` unfolds it, and announces `ui-opening` after the fact (not cancelable).\n * - Not collapsible: `open` is ignored.\n * - `fold-icon=\"end\"` moves the chevron out of the button, to the far end of the title bar.\n * - It stays `aria-hidden` (the button is still the control), and a click on it folds as the button does.\n * - A subclass moves the default with `defaultFoldIcon` (`<ui-panel>`: `end`).\n * - *Groups*: without its own `collapsible` attribute,\n * a section folds when its nearest `<ui-sections>` is `collapsing`\n * (around it, or around an enclosing section).\n * - The group owns `section` parts too, so `enclosingSection` climbs through it.\n *\n * - `description` / `slot=\"description\"`: a tooltip under the title bar (`role=\"tooltip\"`),\n * in the browser's top layer so no parent frame cuts it off (`TopLayerTip`).\n * - Shown while the pointer is on the heading or the end chevron, or the fold button has keyboard focus.\n * - It describes the fold button (`aria-describedby`), else the heading.\n *\n * - *Sticky*: the title bar is `position: sticky` inside the section's box,\n * at the top-level `offset`, or just below the enclosing sticky titles: so nested titles stack.\n * - A `scrolling` / `height` section's content is its own scroll box: a fresh stack starts there.\n * - `StickyWatch` sets `:state(stuck)`, and reserves the title's room for Page Down, as `<ui-sticky>` does.\n *\n * - *Stack* (`sticky=\"stack\"`, or `sticky` right inside a stacked section, plain wrappers aside): the titles read as one stack of rounded bars\n * (`:state(stacked)`), the look is the sheet's; what it needs to know of its neighbours, the component works out:\n * - `tucked`: the first thing in its enclosing section (nothing drawn before it, wrappers aside), so its title sits\n * right under that section's, square on top; the enclosing one `tucks`\n * - `after-closed`: right after a closed section, nothing between; closed too, `joins-above`; the closed one\n * before it, `joins-below`: closed sections one after another are ONE group, round only at its ends\n * - a section knows what's before it; what's after it (and its first nested one) it hears from them:\n * `isFollowedByClosed`, `hasTuckedFirst`, which they set\n * - Its neighbours are found in the enclosing section's light DOM, past any wrappers (a notebook's cells):\n * `stackPlaces`, recomputed as that DOM changes. A top-level section's neighbour is its element sibling.\n *\n * - *Source* (`source`, `select`): the content comes from a file the first time the section unfolds, by any route:\n * - a click\n * - the page setting `open` (a `#id` link)\n * - starting unfolded (then at once)\n * - `LoadableBody` fetches it (`UI.sources`),\n * and puts its `<body>` in the LIGHT DOM, in place of the placeholder (the children without a `slot`).\n * - While it's on its way, the content box stays hidden (`isVeiled`) for at most `SOURCE_BODY_HOLD_MS`,\n * then shows the `loading` look over the placeholder.\n * So an unfold shows the body, not the placeholder.\n * - The DOM element (`DOMLoadableBodyElement`) has `load()` / `reload()`, and states `loaded` and `error`.\n * - In the class, not the vocabulary: a subclass (`<ui-panel>`) gets it with the vocabulary it reuses.\n *\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * - faded, everything in it inert (its fold button too), `aria-disabled`\n * - `toggle()` does nothing\n *\n * - SIDE EFFECTS:\n * - with `sticky`: a `ResizeObserver` keeps the title's height (`titleHeight`) for the stack,\n * and `StickyWatch` writes the scroll container's inline `scroll-padding-top` while stuck\n * - with `source`: replaces its own light children (the placeholder) with the file's body.\n *\n * - Its words match `<ui-field>`'s (epic `property-editor` P10, decision Q12): `label` / `hint` / `description`,\n * `ui-opening` / `ui-closing`. The old ones (`header`, `subhead`, `info`, `ui-opening` ...) went in epic\n * `repo-split` P14 (Q45).\n ****************/\nexport class UISection extends E.UIComponent<SectionVocabulary> {\n @E.proto static vocabulary = sectionVocabulary\n @E.protoMerged static elementSetup: Partial<E.ElementSetup> = {\n styleSheets: { section: sectionCSS },\n cssStates: [\"inverted\"],\n DOMElement: E.DOMLoadableBodyElement,\n // a container: a click on its text must not jump to the fold button or a link inside\n delegatesFocus: false,\n // `loading`: Fomantic's veil\n loading: \"its own\"\n }\n @E.proto static defaultFoldIcon: FoldIconPlace = FoldIconPlace.start\n\n /** Where the fold chevron sits without a `fold-icon` attribute: `start`; a subclass may move it. */\n declare defaultFoldIcon: FoldIconPlace\n\n ////////////////\n // ## Nesting\n ////////////////\n\n /** Enclosing section, when nested (`:state(nested)`); climbs through any other component. */\n readonly context = new E.PartContext({\n domElement: this.domElement,\n noun: this.vocabulary.noun,\n barrier: E.PartContext.noBarrier\n })\n\n /**\n * Enclosing section's component, or `undefined` at the top (or before it has one).\n * - Climbs through `<ui-sections>` groups (owners of `section` parts too):\n * a section in a group in a section is still nested.\n */\n @E.derived\n get enclosingSection(): UISection | undefined {\n let owner = this.context.ownerComponent<UISection | UISections>()\n while (owner instanceof UISections) owner = owner.context.ownerComponent<UISection | UISections>()\n return owner instanceof UISection ? owner : undefined\n }\n\n /** Nearest `<ui-sections>` group's component, directly or through enclosing sections, or `undefined`. */\n get group(): UISections | undefined {\n const owner = this.context.ownerComponent<UISection | UISections>()\n if (owner instanceof UISections) return owner\n return owner instanceof UISection ? owner.group : undefined\n }\n\n /** Inside another section, through any group (`:state(nested)`; the part's own `in-section` counts only a direct one). */\n @E.cssState(\"nested\")\n get isNested(): boolean {\n return !!this.enclosingSection\n }\n\n /** Directly in a `<ui-sections>` group (`:state(in-group)`; also the part's own `in-sections`). */\n @E.cssState(\"in-group\")\n get isInGroup(): boolean {\n return this.context.ownerComponent<UISection | UISections>() instanceof UISections\n }\n\n /** Heading level, 1 ... 6. */\n get headingLevel(): number {\n const own = Number(this.level)\n if (Number.isInteger(own) && own >= 1 && own <= MAX_LEVEL) return own\n const parent = this.enclosingSection\n return parent ? Math.min(parent.headingLevel + 1, MAX_LEVEL) : TOP_LEVEL\n }\n\n /** Nesting depth: 0 at the top. */\n get depth(): number {\n const parent = this.enclosingSection\n return parent ? parent.depth + 1 : 0\n }\n\n ////////////////\n // ## Folding\n ////////////////\n\n /**\n * `open`: the DOM element's (a boolean is always the DOM element's, see `@controlled`); `false` folds it.\n * - Folds only `isCollapsible`.\n * - Its old name was `collapsed`, turned round (epic `ui-gaps` J13).\n */\n @E.controlled(\"open\") accessor isMarkedOpen = true\n\n /**\n * Can it fold?\n * - The DOM element's own `collapsible` when written (`collapsible=\"false\"` opts out),\n * else the nearest group's `collapsing`.\n * - Reads the attribute raw: its getter reads absent and `\"false\"` alike (false),\n * but only absent takes the group's default.\n * - NOTE: a PROPERTY write of `false` removes the attribute (booleans never reflect as `\"false\"`),\n * which brings the group's default back.\n * Opt out from code with `setAttribute(\"collapsible\", \"false\")`.\n */\n get isCollapsible(): boolean {\n const own = this.attributes.collapsible\n if (own !== null) return E.Converters.boolean(own, this.elementDefinition.attribute(\"collapsible\").attribute)\n return !!this.collapsible || !!this.group?.collapsing\n }\n\n /** Folded: `isCollapsible`, and `open` turned off. */\n @E.cssState(\"collapsed\")\n get isFolded(): boolean {\n return this.isCollapsible && !this.isMarkedOpen\n }\n\n /** Glyph of the fold button, while `isCollapsible`. */\n readonly foldGlyph = new E.IconGlyph({ owner: this, name: () => (this.isCollapsible ? FOLD_ICON : undefined) })\n\n /** The fold chevron sits at the far end of the title bar: `fold-icon`, else the class's `defaultFoldIcon`. */\n get foldIconIsAtEnd(): boolean {\n return (this.foldIcon ?? this.defaultFoldIcon) === FoldIconPlace.end\n }\n\n /**\n * Open unless folded, on `open` (`isMarkedOpen`):\n * the cancelable `ui-opening` / `ui-closing`, then `ui-opened` / `ui-closed` (`onFoldedChanged()`);\n * the toggle's `aria-expanded`; find-in-page opening the folded content.\n * - Folds only `isCollapsible`, and never while `disabled`.\n */\n readonly disclosure = new E.Disclosure({\n component: this,\n member: \"isMarkedOpen\",\n isOpen: () => !this.isFolded,\n canChange: () => this.isCollapsible && !this.isDisabled,\n detail: (open, originalEvent): UIT.SectionToggleDetail => ({ open, section: this.domElement, originalEvent }),\n afterDetail: (open): UIT.SectionToggleDetail => ({ open, section: this.domElement })\n })\n\n /**\n * Fold or unfold as a person would:\n * the cancelable `ui-opening` / `ui-closing` first, then `open`.\n * - True when applied.\n * - Does nothing unless `collapsible`, or while `disabled`.\n */\n toggle(originalEvent?: Event): boolean {\n return this.disclosure.toggle(originalEvent)\n }\n\n /**\n * More for the fold button's tooltip, on a line of its own after `Open this section`: a component that draws the\n * section sets it (the epic page's blocks: `⌥-click: open everything inside`).\n * - a property, not an attribute: nothing a page writes\n */\n @E.state accessor toggleTipMore: string | undefined = undefined\n\n /** The fold button's tooltip: `Open this section` / `Close this section`, then `toggleTipMore`. */\n get toggleTip(): string {\n const tip = this.translationForKey(this.isFolded ? \"openSection\" : \"closeSection\")\n return this.toggleTipMore ? `${tip}\\n${this.toggleTipMore}` : tip\n }\n\n /** A click on the toggle (Enter / Space on the button click it too). */\n private readonly onToggleClick = (event: MouseEvent) => {\n // a link or control inside a rich `slot=\"label\"` title acts on its own, as in an accordion's title\n if (E.OwnControls.isClicked(event, { before: TOGGLE_BUTTON })) return\n this.toggle(event)\n }\n\n /** A click on the END chevron, outside the button: folds as the button does. */\n private readonly onFoldIconClick = (event: MouseEvent) => {\n this.toggle(event)\n }\n\n /** Folded or unfolded, by any route: `ui-closed` / `ui-opened` -- not at the start. */\n @E.onChange(\"isFolded\", { defer: true })\n protected onFoldedChanged(isFolded: boolean) {\n this.disclosure.sendAfter(!isFolded)\n }\n\n ////////////////\n // ## The sticky title\n ////////////////\n\n /** Title bar's height in pixels, while `sticky` (for the stack below it). */\n @E.state accessor titleHeight = 0\n\n /** Title bar is stuck. */\n @E.state accessor isStuck = false\n\n /** Stuck, and `sticky`. */\n @E.cssState(\"stuck\")\n get titleIsStuck(): boolean {\n return !!this.sticky && this.isStuck\n }\n\n /** The title bar. */\n private title?: HTMLElement\n\n /** Sentinel where the title bar's top would be, unstuck. */\n private sentinel?: HTMLDivElement\n\n /** Observes the stuck title and reserves its room. */\n private readonly stickyWatch = new E.StickyWatch(({ edge }) => (this.isStuck = edge !== undefined))\n\n /** Pixels from the scroll container's top where the title sticks: `offset` at the top, else the stack above. */\n get stickTop(): number {\n const parent = this.enclosingSection\n return parent ? parent.innerStackTop : (this.offset ?? 0)\n }\n\n /** Bottom of the stack of stuck titles, through this one, in pixels. */\n get stackBottom(): number {\n return this.stickTop + (this.sticky ? this.titleHeight : 0)\n }\n\n /** Where nested titles stick: below the stack, or 0 in this section's own scroll box (`scrolling` / `height`). */\n get innerStackTop(): number {\n return this.contentScrolls ? 0 : this.stackBottom\n }\n\n /** Is the content its own scroll box? */\n get contentScrolls(): boolean {\n return !!this.scrolling || !!this.height\n }\n\n ////////////////\n // ## The stack (`sticky=\"stack\"`)\n ////////////////\n\n /**\n * Its title a bar of a stack: `sticky=\"stack\"`, or a plain `sticky` right inside a stacked section, plain\n * wrappers aside (a notebook's cells).\n * - Not through another element (an example, a segment): a sticky section shown inside one keeps the plain look.\n */\n @E.cssState(\"stacked\")\n get isStacked(): boolean {\n if (this.sticky === STACK) return true\n const parent = this.enclosingSection\n return !!this.sticky && !!parent?.isStacked && isRightInside(this.domElement, parent.domElement)\n }\n\n /**\n * The sections nested in this one, in page order, each with where it stands among them:\n * first in this one (nothing drawn before it), and the one right before it (nothing drawn between).\n * - Read from the light DOM, past wrappers; again whenever it changes.\n */\n @E.watches({ childList: true, subtree: true, equals: isSameStack })\n get stackPlaces(): StackPlace[] {\n return stackPlacesIn(this.domElement)\n }\n\n /** Where it stands among its enclosing section's nested ones; a top-level one, by its element sibling. */\n get stackPlace(): StackPlace | undefined {\n const parent = this.enclosingSection\n if (parent) return parent.stackPlaces.find((place) => place.element === this.domElement)\n const sibling = this.domElement.previousElementSibling\n return {\n element: this.domElement,\n isFirst: false,\n previous: sibling?.localName === this.domElement.localName ? sibling : undefined\n }\n }\n\n /** The stacked section right before it, nothing drawn between. */\n get previousInStack(): UISection | undefined {\n const previous = (this.stackPlace?.previous as E.DOMElement | undefined)?.component\n return previous instanceof UISection && previous.isStacked ? previous : undefined\n }\n\n /** Stacked, and the first thing in its enclosing section: its title tucked under that one's. */\n @E.cssState(\"tucked\")\n get isTucked(): boolean {\n return this.isStacked && !!this.stackPlace?.isFirst\n }\n\n /** Stacked, its first nested section tucked under its title: its content has no room on top. */\n @E.cssState(\"tucks\")\n get tucksFirst(): boolean {\n return this.isStacked && !this.contentScrolls && this.hasTuckedFirst\n }\n\n /** Its first nested section is tucked under its title: that section says so (`onTuckedChanged()`). */\n @E.state accessor hasTuckedFirst = false\n\n /** The section right after it is closed: that section says so (`onNeighbourChanged()`). */\n @E.state accessor isFollowedByClosed = false\n\n /** Tell the enclosing section whether this one is tucked under its title (`tucks`). */\n @E.onChange(\"isTucked\", \"enclosingSection\", \"isConnected\")\n protected onTuckedChanged(isTucked: boolean, parent: UISection | undefined, isConnected: boolean) {\n if (!isTucked || !parent || !isConnected) return undefined\n parent.hasTuckedFirst = true\n return () => {\n parent.hasTuckedFirst = false\n }\n }\n\n /** Tell the section right before this one whether this one is closed (`joins-below`). */\n @E.onChange(\"previousInStack\", \"isFolded\", \"isConnected\")\n protected onNeighbourChanged(previous: UISection | undefined, isFolded: boolean, isConnected: boolean) {\n if (!previous || !isConnected) return undefined\n previous.isFollowedByClosed = isFolded\n return () => {\n previous.isFollowedByClosed = false\n }\n }\n\n /** Stacked, right after a closed section: no room above it. */\n @E.cssState(\"after-closed\")\n get isAfterClosed(): boolean {\n return this.isStacked && !!this.previousInStack?.isFolded\n }\n\n /** Closed, right after a closed one: in its group, square on top. */\n @E.cssState(\"joins-above\")\n get joinsAbove(): boolean {\n return this.isAfterClosed && this.isFolded\n }\n\n /** Closed, right before a closed one: in its group, square below. */\n @E.cssState(\"joins-below\")\n get joinsBelow(): boolean {\n return this.isStacked && this.isFolded && this.isFollowedByClosed\n }\n\n /**\n * The title's inline tokens: stick offset and nesting depth.\n */\n private get titleStyle(): Record<string, string> {\n return { [STICK_TOP_PROPERTY]: `${this.stickTop}px`, [DEPTH_PROPERTY]: String(this.depth) }\n }\n\n /**\n * Once drawn (`isReady`), while connected and `sticky`: measure the title (for the stack) and watch it stick.\n * - Again whenever its `top` changes; unstuck otherwise.\n * - Returns its stop.\n */\n @E.onChange(\"isReady\", \"isConnected\", \"sticky\", \"stickTop\")\n protected onStickingChanged(\n isReady: boolean,\n isConnected: boolean,\n sticky: boolean | typeof STACK | undefined,\n offset: number\n ) {\n if (!isReady) return undefined\n const { title, sentinel } = this\n if (!isConnected || !sticky || !title || !sentinel) {\n this.stickyWatch.reset()\n return undefined\n }\n const resizes = new ResizeObserver(() => (this.titleHeight = title.getBoundingClientRect().height))\n resizes.observe(title)\n const unwatch = this.stickyWatch.observe({ domElement: this.domElement, top: sentinel, box: title }, { offset })\n return () => {\n resizes.disconnect()\n unwatch()\n }\n }\n\n ////////////////\n // ## Title bar pieces\n ////////////////\n\n /** Which named slots have light-DOM content: icon, badge, hint, actions. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /**\n * `hide-empty`, and nothing in it to see: hidden (`:state(empty)`).\n * - Its content: the default slot's children, as `SlotContent` reads them, so Solid's markers and blank text don't count.\n * - `hide-empty=\"<selector>\"`: only what matches counts.\n */\n @E.cssState(\"empty\")\n get isEmpty(): boolean {\n const hideEmpty = this.hideEmpty\n if (hideEmpty == null) return false\n return isSelector(hideEmpty) ? !this.matchesHideEmpty : !this.slots.hasContent(\"\")\n }\n\n /** Is something in it what `hide-empty=\"<selector>\"` asks for, as its content changes? */\n @E.watches({ childList: true, subtree: true })\n get matchesHideEmpty(): boolean {\n const selector = this.hideEmpty\n return !!selector && isSelector(selector) && !!this.domElement.querySelector(selector)\n }\n\n /** Glyph of the `icon` shorthand. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.icon })\n\n /** Has an icon (shorthand or `icon` slot)? */\n get hasIcon(): boolean {\n return !!this.icon || this.slots.hasContent(this.slotForName(\"icon\"))\n }\n\n /** Has a badge (shorthand or `badge` slot)? */\n get hasBadge(): boolean {\n return !!this.badge || this.slots.hasContent(this.slotForName(\"badge\"))\n }\n\n /** Title text: `label`. */\n get titleText(): string | undefined {\n return this.label ?? undefined\n }\n\n /** Hint text: `hint`. */\n get hintText(): string | undefined {\n return this.hint ?? undefined\n }\n\n /** Tip text: `description`. */\n get descriptionText(): string | undefined {\n return this.description ?? undefined\n }\n\n /** Has a hint (shorthand, or the `hint` slot)? */\n get hasHint(): boolean {\n return !!this.hintText || this.slots.hasContent(this.slotForName(\"hint\"))\n }\n\n /** Has actions (`actions` slot)? */\n get hasActions(): boolean {\n return this.slots.hasContent(this.slotForName(\"actions\"))\n }\n\n /** Has a description's tip (`description`, or `slot=\"description\"`)? */\n get hasDescription(): boolean {\n return !!this.descriptionText || this.slots.hasContent(this.slotForName(\"description\"))\n }\n\n ////////////////\n // ## Source (`DOMLoadableBodyElement`)\n ////////////////\n\n /** The content from `source`, loaded on first unfold; into the DOM element's light DOM. */\n readonly body = new E.LoadableBody({\n domElement: this.domElement,\n source: () => this.source || undefined,\n select: () => this.selector || undefined,\n target: () => this.domElement,\n send: (name, detail) => this.send(name as never, detail)\n })\n\n /** Content box held closed while the `source` body is on its way (never in a server render: nothing loads). */\n get isVeiled(): boolean {\n return !isServer && !!this.source && this.body.isVeiled\n }\n\n /** Busy: `loading`, or a `source` body slow to arrive. */\n @E.cssState(\"loading\")\n get isLoading(): boolean {\n return !!this.loading || this.body.isBusy\n }\n\n /** The `source` body arrived. */\n @E.cssState(\"loaded\")\n get bodyIsLoaded(): boolean {\n return this.body.loadStatus === E.SourceStatus.loaded\n }\n\n /** The `source` body failed. */\n @E.cssState(\"error\")\n get bodyFailed(): boolean {\n return this.body.loadStatus === E.SourceStatus.error\n }\n\n /** The error line's text, when the `source` body failed; else `undefined`. */\n get bodyFailureText(): string | undefined {\n const failure = this.body.loadError\n if (!failure) return undefined\n const key = E.SOURCE_FAILURE_KEYS[failure.kind] ?? E.SOURCE_FAILURE_KEYS.load\n return this.translationForKey(key as never, { source: this.source ?? \"\" })\n }\n\n /**\n * Load the `source` body whenever the section is unfolded, connected and has one.\n * - `LoadableBody.load()` loads once per `source` + `select`.\n * - An effect, not in `render()`: a subclass drawing its own markup still loads its body.\n */\n @E.onChange(\"source\", \"selector\", \"isFolded\", \"isConnected\")\n protected onBodyWanted(\n source: string | undefined,\n _select: string | undefined,\n isFolded: boolean,\n isConnected: boolean\n ) {\n if (source && !isFolded && isConnected) this.body.load().catch(() => undefined)\n }\n\n /** Fetch and insert the `source` body now, folded or not; once per `source` + `select`. */\n loadBody(): Promise<void> {\n return this.body.load()\n }\n\n /** Fetch the `source` body again past the cache, and replace it. */\n reloadBody(): Promise<void> {\n return this.body.reload()\n }\n\n ////////////////\n // ## Looks\n ////////////////\n\n /** Transitions the fold: styled, in a browser that animates to `auto` heights. */\n @E.cssState(\"animated\")\n get isAnimated(): boolean {\n return this.isReady && UI.browser.supports.interpolateSize\n }\n\n /**\n * Words before the noun:\n * - `scrolling` for `height` without it (`height` implies it)\n * - `loading` while a `source` body is slow to arrive (the `loading` look, over the placeholder)\n */\n protected get extraClass(): string | undefined {\n const scrolling = this.height && !this.scrolling ? SCROLLING : undefined\n const loading = !this.loading && this.body.isBusy ? LOADING : undefined\n return [scrolling, loading].filter(Boolean).join(\" \") || undefined\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <section\n class={this.rootClass}\n part={this.partForName(\"section\")}\n aria-busy={this.isLoading ? \"true\" : undefined}\n >\n <div\n ref={(element) => (this.sentinel = element)}\n class={SENTINEL}\n aria-hidden=\"true\"\n style={{ [STICK_TOP_PROPERTY]: `${this.stickTop}px` }}\n />\n {this.titleBar()}\n <Show when={this.hasHint}>\n <div class={SUBHEAD} part={this.partForName(\"subhead\")}>\n <slot name={this.slotForName(\"hint\")}>{this.hintText}</slot>\n </div>\n </Show>\n <div\n ref={this.disclosure.revealOnMatch}\n id={CONTENT_ID}\n class={UIT.CONTENT}\n part={this.partForName(\"content\")}\n hidden={this.isFolded || this.isVeiled ? \"until-found\" : undefined}\n tabindex={this.contentScrolls ? 0 : undefined}\n style={this.contentStyle}\n >\n <Show when={this.bodyFailureText}>\n <p class={SOURCE_ERROR} part={this.partForName(\"error\")} role=\"alert\">\n {this.bodyFailureText}\n </p>\n </Show>\n {this.contentStart()}\n <slot />\n </div>\n <Show when={this.isLoading}>\n <span class={UIT.VISUALLY_HIDDEN} role=\"status\">\n {this.translationForKey(\"loading\")}\n </span>\n </Show>\n </section>\n )\n }\n\n /** Drawn at the end of the title bar, after the actions: for a subclass (a property group's output); nothing here. */\n protected titleBarEnd(): JSX.Element {\n return undefined\n }\n\n /** The content box's inline style: its `height`; a subclass may add its own (a property group's columns). */\n protected get contentStyle(): Record<string, string> | undefined {\n return this.height ? { [HEIGHT_PROPERTY]: this.height } : undefined\n }\n\n /** Drawn first in the content, before the slot: for a subclass (a property group's error); nothing here. */\n protected contentStart(): JSX.Element {\n return undefined\n }\n\n /** `<header class=\"title\">`: the heading around the toggle, then the badge and actions. */\n private titleBar(): JSX.Element {\n return (\n <header\n ref={(element) => {\n this.title = element\n E.TopLayerTip.showIn(element, TIP_TRIGGERS)\n }}\n class={UIT.TITLE}\n part={this.partForName(\"title\")}\n style={this.titleStyle}\n >\n <Dynamic\n component={`h${this.headingLevel}`}\n class={HEADING}\n part={this.partForName(\"heading\")}\n aria-describedby={this.hasDescription && !this.isCollapsible ? TIP_ID : undefined}\n >\n <Dynamic\n component={this.isCollapsible ? \"button\" : \"span\"}\n type={this.isCollapsible ? \"button\" : undefined}\n class={TOGGLE}\n part={this.partForName(\"toggle\")}\n aria-expanded={this.isCollapsible ? this.disclosure.ariaExpanded : undefined}\n aria-controls={this.isCollapsible ? CONTENT_ID : undefined}\n title={this.isCollapsible ? this.toggleTip : undefined}\n disabled={this.isCollapsible && this.disabled ? true : undefined}\n aria-describedby={this.hasDescription && this.isCollapsible ? TIP_ID : undefined}\n onClick={this.onToggleClick}\n >\n <Show when={this.isCollapsible && !this.foldIconIsAtEnd}>{this.foldChevron()}</Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <span class={UIT.HEADER} part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"label\")}>{this.titleText}</slot>\n </span>\n </Dynamic>\n </Dynamic>\n <Show when={this.hasBadge}>\n <span class={BADGE} part={this.partForName(\"badge\")}>\n <slot name={this.slotForName(\"badge\")}>{this.badge}</slot>\n </span>\n </Show>\n <Show when={this.hasActions}>\n <span class={ACTIONS} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(\"actions\")} />\n </span>\n </Show>\n {this.titleBarEnd()}\n <Show when={this.isCollapsible && this.foldIconIsAtEnd}>{this.foldChevron(this.onFoldIconClick)}</Show>\n <Show when={this.hasDescription}>\n <span id={TIP_ID} class={TIP} part={this.partForName(\"tip\")} role=\"tooltip\">\n <slot name={this.slotForName(\"description\")}>{this.descriptionText}</slot>\n </span>\n </Show>\n </header>\n )\n }\n\n /**\n * The fold chevron, `aria-hidden` (the button is the control):\n * in the button, or at the bar's end with `onClick`, where it takes the button's tooltip too.\n */\n private foldChevron(onClick?: (event: MouseEvent) => void): JSX.Element {\n return (\n <span\n class={FOLD_ICON_CLASS}\n part={this.partForName(\"fold-icon\")}\n aria-hidden=\"true\"\n title={onClick ? this.toggleTip : undefined}\n onClick={onClick}\n >\n {this.foldGlyph.svg}\n </span>\n )\n }\n}\n\n/** The vocabulary getters, typed (`UIComponent`'s doc). */\nexport interface UISection extends E.AttributeValues<SectionVocabulary> {}\n\n/** Where a nested section stands among its enclosing section's (`stackPlaces`). */\ntype StackPlace = {\n /** the nested section's DOM element */\n element: Element\n /** nothing drawn before it in its enclosing section */\n isFirst: boolean\n /** the nested section right before it, nothing drawn between */\n previous: Element | undefined\n}\n\n/** Do `a` and `b` say the same of the same sections? */\nfunction isSameStack(a: StackPlace[], b: StackPlace[]): boolean {\n return (\n a.length === b.length &&\n a.every(\n (place, index) =>\n place.element === b[index]!.element &&\n place.isFirst === b[index]!.isFirst &&\n place.previous === b[index]!.previous\n )\n )\n}\n\n/** The sections nested directly in `host` (its own tag, none between), each with where it stands. */\nfunction stackPlacesIn(host: Element): StackPlace[] {\n const tag = host.localName\n const nested = [...host.querySelectorAll(tag)].filter((element) => element.parentElement?.closest(tag) === host)\n return nested.map((element, index) => {\n const before = nested[index - 1]\n return {\n element,\n isFirst: isDrawnFirst(element, host),\n previous: before && isRightAfter(element, before, host) ? before : undefined\n }\n })\n}\n\n/** Is `element` inside `outer` with no other element of a set (a tag with a `-`) between them? */\nfunction isRightInside(element: Element, outer: Element): boolean {\n for (let node = element.parentElement; node && node !== outer; node = node.parentElement)\n if (node.localName.includes(\"-\")) return false\n return true\n}\n\n/** Is nothing drawn before `element` in `host`? Named slots (a title's actions) and empty wrappers draw nothing. */\nfunction isDrawnFirst(element: Element, host: Element): boolean {\n for (let node: Element | null = element; node && node !== host; node = node.parentElement)\n for (let sibling = node.previousSibling; sibling; sibling = sibling.previousSibling)\n if (!drawsNothing(sibling)) return false\n return true\n}\n\n/** Is `element` right after `before` in `host`, nothing drawn between them? */\nfunction isRightAfter(element: Element, before: Element, host: Element): boolean {\n for (let node: Element | null = element; node && node !== host; node = node.parentElement)\n for (let sibling = node.previousSibling; sibling; sibling = sibling.previousSibling) {\n if (sibling === before || sibling.contains(before)) return isDrawnLast(before, sibling)\n if (!drawsNothing(sibling)) return false\n }\n return false\n}\n\n/** Is nothing drawn after `element` inside `outer` (`element` itself, or an element holding it)? */\nfunction isDrawnLast(element: Element, outer: Node): boolean {\n for (let node: Element | null = element; node && node !== outer; node = node.parentElement)\n for (let sibling = node.nextSibling; sibling; sibling = sibling.nextSibling)\n if (!drawsNothing(sibling)) return false\n return true\n}\n\n/** Does `node` draw nothing: white space, a comment, an element in a named slot, or one with nothing in it? */\nfunction drawsNothing(node: Node): boolean {\n if (node.nodeType === COMMENT_NODE) return true\n if (node.nodeType === TEXT_NODE) return !node.textContent?.trim()\n const element = node as Element\n if (element.hasAttribute(\"slot\")) return true\n return !element.firstElementChild && !element.textContent?.trim()\n}\n\n/** Node types, by number: a server render has no `Node`. */\nconst TEXT_NODE = 3\nconst COMMENT_NODE = 8\n\n/** `sticky`'s value that stacks its titles as bars: `sticky=\"stack\"`. */\nconst STACK = \"stack\"\n\n/** Glyph of the fold button (rotated by CSS while folded). */\nconst FOLD_ICON = \"chevron down\"\n\n/** Class word of the 1px sentinel before the title, which `StickyWatch` observes with `sticky`. */\nconst SENTINEL = \"sentinel\"\n\n/** The fold button, in the shadow root: where a click's path stops counting as one on a control in the title. */\nconst TOGGLE_BUTTON = \"button.toggle\"\n\n/** Private custom property of a title's nesting depth (0 at the top), inline: deeper titles slide under. */\nconst DEPTH_PROPERTY = \"--_ui-section-depth\"\n\n/** Class words of the line saying a `source` body failed (`part=\"error\"`, inside the content box). */\nconst SOURCE_ERROR = \"source error\"\n\n/** Class word before the noun while a `source` body is slow to arrive: the `loading` look. */\nconst LOADING = \"loading\"\n\n/** Heading level of a top-level section: under the page's `h1`. */\nconst TOP_LEVEL = 2\n\n/** Deepest heading level: `h6`. */\nconst MAX_LEVEL = 6\n\n/** Class word and part of the heading (`<hN>`). */\nconst HEADING = \"heading\"\n\n/** Class word and part of the toggle: the fold button, or a plain box when the section can't fold. */\nconst TOGGLE = \"toggle\"\n\n/** Class words of the fold chevron. */\nconst FOLD_ICON_CLASS = \"fold icon\"\n\n/** Class word and part of the badge pill. */\nconst BADGE = \"badge\"\n\n/** Class word and part of the actions box. */\nconst ACTIONS = \"actions\"\n\n/** Class word and part of the hint (its old name, kept as the CSS hook). */\nconst SUBHEAD = \"subhead\"\n\n/** Class word and part of the description's tip. */\nconst TIP = \"tip\"\n\n/** Class word `height` adds before the noun when `scrolling` isn't set: `height` implies scrolling. */\nconst SCROLLING = \"scrolling\"\n\n/** What shows the description's tip: the heading, and a chevron at the bar's end. */\nconst TIP_TRIGGERS = \".heading, .fold.icon\"\n\n/** `id` of the description's tip, which the fold button (else the heading) is described by. */\nconst TIP_ID = \"tip\"\n\n/** `id` of the content box, which the fold button's `aria-controls` names. */\nconst CONTENT_ID = \"content\"\n\n/**\n * Private custom property the content box reads for `height`:\n * inline, so the attribute wins over the page's `--ui-section-scrolling-height`.\n */\nconst HEIGHT_PROPERTY = \"--_ui-section-height\"\n\n/**\n * Private custom property the sticky title reads for its `top`, inline:\n * the top-level `offset`, or the stack of enclosing sticky titles above it, in pixels.\n */\nconst STICK_TOP_PROPERTY = \"--_ui-section-top\"\n\n/** Is `hide-empty`'s value a selector, not just there (`\"\"`, `\"true\"`)? */\nfunction isSelector(value: string): boolean {\n return !!value && value !== \"true\"\n}\n","/**\n * The section family: defines `<ui-sections>` and `<ui-section>`,\n * and exports their components, `UISections` and `UISection`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-section` entry (its size is in `notes/report.md`).\n * - The group is defined FIRST: a group already in the page then has its component\n * when its sections upgrade and look it up.\n * - Both own `section` parts: a nested `<ui-section>` finds the section or group around it through `PartContext`\n * (for its level, depth, sticky stack and default `collapsible`).\n */\n\nimport { UISections } from \"./UISections\"\nimport { UISection } from \"./UISection\"\n\nUISections.define()\nUISection.define()\n\nexport { UISection, UISections }\n"],"mappings":";;;;;AAgBA,IAAa4H,KAAqB;CAChC,KAAK;CACL,MAAM;CACN,QAAQ,CAAC,UAAU,YAAY;CAC/B,KAAK;EAAC;EAAa;EAAiB;EAAqB;CAAS;CAClE,MAAM;CACN,cAAc;CACd,aACE;CACF,YAAY,CACV;EACE,MAAM;EACN,OAAO;EACP,MAAM;EACN,aACE;CAEJ,CACF;CACA,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAA8C,CAAC;CAChF,OAAO,CAAC;EAAE,MAAM;EAAS,aAAa;CAAiB,CAAC;CACxD,QAAQ,CACN;EAAE,MAAM;EAAc,aAAa;CAAoB,GACvD;EAAE,MAAM;EAAe,aAAa;CAAkC,CACxE;CACA,OAAO,CAAC;CACR,WAAW,CAAC,SAAS;AACvB,GCbaC,IAAoB;CAC/B,KAAK;CACL,MAAM;CACN,SAAS;CACT,QAAQ,CAAC,UAAU,YAAY;CAC/B,KAAK;EAAC;EAAW;EAAS;EAAe;EAAc;EAAY;CAAU;CAE7E,UAAU;CACV,MAAM;CACN,cAAc;CACd,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ;IAAC;IAAK;IAAK;IAAK;IAAK;IAAK;GAAG;GACrC,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;G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IAAW,OAAO,CAACH,EAAK,aAAa,KAAK;CAChE,IAAMlE,IAAUkE;CAEhB,OADIlE,EAAQ,aAAa,MAAM,IAAU,KAClC,CAACA,EAAQ,qBAAqB,CAACA,EAAQ,aAAa,KAAK;AAClE;AANSxJ,EAAA,cAAA,cAAA;AAST,IAAM6N,KAAY,GACZD,KAAe,GAGfnG,KAAQ,SAGRpB,KAAY,gBAGZkE,KAAW,YAGX9D,KAAgB,iBAGhBuB,KAAiB,uBAGjBmC,KAAe,gBAGflB,KAAU,WAGV7B,KAAY,GAGZF,KAAY,GAGZyE,KAAU,WAGVE,KAAS,UAGToB,KAAkB,aAGlBX,KAAQ,SAGRG,KAAU,WAGV3C,KAAU,WAGV8C,KAAM,OAGN5D,KAAY,aAGZyC,KAAe,wBAGfG,IAAS,OAGT5B,KAAa,WAMbe,KAAkB,wBAMlBhD,KAAqB;AAG3B,SAAS,WAAW,GAAwB;CAC1C,OAAO,CAAC,CAAC+F,KAASA,MAAU;AAC9B;AAFS9N,EAAA,YAAA,YAAA,G,eC33BT2C,EAAW,OAAO,GAClBwK,GAAU,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-site-links/ui-site-links.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-site-links>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-site-links\" data-omit=\"\">\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"pages\"></ui-property>\n <ui-property name=\"current\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Link\" data-group=\"link\">\n <ui-property name=\"report\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-site-links.editor-BME3sw5H.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-site-links.editor-BME3sw5H.js","names":["ui_site_links_editor_default"],"sources":[],"mappings":""}
|