spell-ui 0.8.9 → 0.8.11
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 +9 -3
- package/README-frameworks.md +5 -5
- package/README-migrating.md +2 -2
- package/README.md +5 -5
- package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
- package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
- package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
- package/dist/Dragging-B93hbRxF.js.map +1 -0
- package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
- package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
- package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
- package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
- package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
- package/dist/PrefStore-Di83C0bY.js.map +1 -0
- package/dist/ScrollingRow-DkOtx2QK.js +89 -0
- package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
- package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
- package/dist/SitePages-B3zd5Zgu.js.map +1 -0
- package/dist/SlottedItems-DWfAZYqM.js +88 -0
- package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
- package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
- package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
- package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
- package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
- package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
- package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
- package/dist/UIButton-BmIiXYDC.js +5 -0
- package/dist/UIButton-BmIiXYDC.js.map +1 -0
- package/dist/UIGrid-2ZUA1YEc.js +200 -0
- package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
- package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
- package/dist/UIInput-B3K0w4ow.js.map +1 -0
- package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
- package/dist/UIKeys-DmXvyJuU.js.map +1 -0
- package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
- package/dist/UILabel-pCjKxQlQ.js.map +1 -0
- package/dist/UIMenu-CqURPocK.js +42 -0
- package/dist/UIMenu-CqURPocK.js.map +1 -0
- package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
- package/dist/UIRuntime-BXutHphM.js.map +1 -0
- package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
- package/dist/UISegment-BF4Tgy2D.js.map +1 -0
- package/dist/_spell-element/UIComponent.d.ts +8 -0
- package/dist/_spell-element/vocabulary.types.d.ts +20 -2
- package/dist/_util/Dragging.d.ts +14 -2
- package/dist/_util/dom.d.ts +12 -8
- package/dist/_util/measures/Dimension.d.ts +1 -1
- package/dist/_util/persist/PrefStore.d.ts +7 -2
- package/dist/_util/persist/persist.types.d.ts +6 -0
- package/dist/_util/platform.d.ts +54 -0
- package/dist/_util/string.d.ts +32 -0
- package/dist/api.js +2 -3
- package/dist/api.js.map +1 -1
- package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
- package/dist/apple.palette-YLjENwUt.js.map +1 -0
- package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
- package/dist/classic-BHyJFvQa.js.map +1 -0
- package/dist/components/ComponentDefinitions.d.ts +55 -8
- package/dist/components/components.es.d.ts +2 -1
- package/dist/components/components.planned.d.ts +1 -1
- package/dist/components/components.types.d.ts +22 -0
- package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
- package/dist/components/ui-action/UIAction.d.ts +38 -1
- package/dist/components/ui-action/UIAction.en.d.ts +17 -8
- package/dist/components/ui-action/UIAction.es.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
- package/dist/components/ui-app-menu/UIAppMenu.d.ts +41 -0
- package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
- package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
- package/dist/components/ui-app-menu/index.d.ts +2 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
- package/dist/components/ui-button/UIButton.d.ts +5 -4
- package/dist/components/ui-button/UIButton.en.d.ts +4 -3
- package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
- package/dist/components/ui-button/UIButton.types.d.ts +1 -1
- package/dist/components/ui-button/UIButtons.d.ts +7 -5
- package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
- package/dist/components/ui-button/UIButtons.es.d.ts +1 -0
- package/dist/components/ui-button/UIOr.d.ts +1 -0
- package/dist/components/ui-button/UIOr.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
- package/dist/components/ui-card/UICard.d.ts +1 -0
- package/dist/components/ui-card/UICard.en.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +1 -0
- package/dist/components/ui-card/UICards.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
- package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
- package/dist/components/ui-code/UICode.d.ts +12 -1
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-code/UICode.types.d.ts +9 -0
- package/dist/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +54 -1
- package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-device/UIDevice.d.ts +234 -0
- package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
- package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
- package/dist/components/ui-device/index.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
- package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
- package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/UIField.d.ts +11 -4
- package/dist/components/ui-form/UIField.en.d.ts +3 -2
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +1 -0
- package/dist/components/ui-form/UIForm.en.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.d.ts +4 -3
- package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +5 -1
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
- package/dist/components/ui-image/UIImage.d.ts +1 -0
- package/dist/components/ui-image/UIImage.en.d.ts +1 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.d.ts +1 -0
- package/dist/components/ui-input/UIInput.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
- package/dist/components/ui-item/UIItem.d.ts +19 -8
- package/dist/components/ui-item/UIItem.en.d.ts +2 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/UIJson.d.ts +1 -0
- package/dist/components/ui-json/UIJson.en.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +3 -2
- package/dist/components/ui-label/UILabel.en.d.ts +3 -2
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +1 -0
- package/dist/components/ui-list/UIList.en.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +7 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
- package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
- package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
- package/dist/components/ui-menu/TitleFit.d.ts +16 -1
- package/dist/components/ui-menu/UIMenu.d.ts +112 -9
- package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
- package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
- package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
- package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
- package/dist/components/ui-menu/index.d.ts +3 -1
- package/dist/components/ui-message/UIMessage.d.ts +3 -2
- package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
- package/dist/components/ui-modal/ModalDialogs.d.ts +35 -3
- package/dist/components/ui-modal/UIModal.d.ts +6 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +6 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +1 -0
- package/dist/components/ui-page/UIPage.en.d.ts +1 -0
- package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
- package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
- package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
- package/dist/components/ui-page-layout/index.d.ts +1 -0
- package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
- package/dist/components/ui-panel/UIPanel.d.ts +21 -2
- package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +11 -2
- package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +4 -3
- package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +18 -5
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +21 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +3 -2
- package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
- package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +4 -3
- package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
- package/dist/components/ui-rating/UIRating.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +1 -0
- package/dist/components/ui-search/UISearch.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
- package/dist/components/ui-section/UISection.d.ts +3 -2
- package/dist/components/ui-section/UISection.en.d.ts +3 -2
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +9 -10
- package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +1 -0
- package/dist/components/ui-select/UISelect.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +1 -0
- package/dist/components/ui-shape/UISide.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +1 -0
- package/dist/components/ui-sides/UISides.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
- package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
- package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
- package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
- package/dist/components/ui-site-nav-button/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +43 -7
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
- package/dist/components/ui-stack/UIStack.d.ts +1 -0
- package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
- 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-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +3 -2
- package/dist/components/ui-step/UISteps.en.d.ts +3 -2
- package/dist/components/ui-sticky/UISticky.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +3 -2
- package/dist/components/ui-tab/UITab.en.d.ts +4 -3
- package/dist/components/ui-tab/UITabs.d.ts +5 -4
- package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
- package/dist/components/ui-table/TableGrammar.d.ts +2 -2
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +7 -6
- package/dist/components/ui-table/UITable.en.d.ts +7 -6
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +1 -0
- package/dist/components/ui-text/UILink.en.d.ts +1 -0
- package/dist/components/ui-text/UIText.d.ts +2 -1
- package/dist/components/ui-text/UIText.en.d.ts +2 -1
- package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +37 -15
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
- package/dist/components/ui-toast/ToastStack.d.ts +9 -0
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +102 -2
- package/dist/components/ui-tree/UITree.en.d.ts +14 -1
- package/dist/components/ui-tree/UITree.es.d.ts +3 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
- package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
- package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
- package/dist/components.es-DEa8Ep42.js.map +1 -0
- package/dist/core.js +795 -702
- package/dist/core.js.map +1 -1
- package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
- package/dist/crisp-DIpY320U.js.map +1 -0
- package/dist/crisp.theme-Ir9p4BDC.js +5 -0
- package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
- package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
- package/dist/dark-B5s4QbmU.js.map +1 -0
- package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
- package/dist/dist-BQT4KajA.js.map +1 -0
- package/dist/docs-components/docs-components.types.d.ts +6 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
- package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
- package/dist/elements/PartComponent.d.ts +5 -0
- package/dist/elements/PopoverPanel.d.ts +12 -1
- package/dist/elements/Validator.d.ts +1 -1
- package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
- package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
- package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
- package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
- package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
- package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
- package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
- package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
- package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
- package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
- package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
- package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
- package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
- package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
- package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
- package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
- package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
- package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
- package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
- package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
- package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
- package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
- package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
- package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
- package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
- package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
- package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
- package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
- package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
- package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
- package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
- package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
- package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
- package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
- package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
- package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
- package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
- package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
- package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
- package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
- package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
- package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
- package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
- package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
- package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
- package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
- package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
- package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
- package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
- package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
- package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
- package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
- package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
- package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
- package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
- package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
- package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
- package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
- package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
- package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
- package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
- package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
- package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
- package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
- package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
- package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
- package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
- package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
- package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
- package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
- package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
- package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
- package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
- package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
- package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
- package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
- package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
- package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
- package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
- package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
- package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
- package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
- package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
- package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
- package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
- package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
- package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
- package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
- package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
- package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
- package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
- package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
- package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
- package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
- package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
- package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
- package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
- package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
- package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
- package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
- package/dist/forms.js +65 -75
- package/dist/forms.js.map +1 -1
- package/dist/fruity-CsfZNeXb.js +5 -0
- package/dist/fruity-CsfZNeXb.js.map +1 -0
- package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
- package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
- package/dist/glass-BCK30hpe.js +5 -0
- package/dist/glass-BCK30hpe.js.map +1 -0
- package/dist/glass.theme-C7QSRB7b.js +5 -0
- package/dist/glass.theme-C7QSRB7b.js.map +1 -0
- package/dist/hot.js +18 -32
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +96 -91
- package/dist/jsx.d.ts +3875 -711
- package/dist/matrix-DEnqBfwC.js +5 -0
- package/dist/matrix-DEnqBfwC.js.map +1 -0
- package/dist/matrix.theme-YV6_nvXv.js +5 -0
- package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
- package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
- package/dist/merlot-DFa6kDbA.js.map +1 -0
- package/dist/merlot.theme-B1K8nn2u.js +5 -0
- package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
- package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
- package/dist/midnight-q0-3-V6U.js.map +1 -0
- package/dist/midnight.theme-C7M02wTD.js +5 -0
- package/dist/midnight.theme-C7M02wTD.js.map +1 -0
- package/dist/mockup-D0vovNO7.js +5 -0
- package/dist/mockup-D0vovNO7.js.map +1 -0
- package/dist/mockup.theme-C92r9NI0.js +5 -0
- package/dist/mockup.theme-C92r9NI0.js.map +1 -0
- package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
- package/dist/paper-DPxolmdy.js.map +1 -0
- package/dist/paper.theme-BAKk3DY1.js +5 -0
- package/dist/paper.theme-BAKk3DY1.js.map +1 -0
- package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
- package/dist/persist.types-D7N7GewC.js.map +1 -0
- package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
- package/dist/pop-Dw_6k177.js.map +1 -0
- package/dist/pop.theme-Cw-yD0MO.js +5 -0
- package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
- package/dist/property/PropertyEditorPages.d.ts +1 -1
- package/dist/property/PropertyLayouts.d.ts +119 -0
- package/dist/property/PropertySchemas.d.ts +5 -1
- package/dist/property/index.d.ts +2 -0
- package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
- package/dist/runtime/Browser.d.ts +7 -0
- package/dist/runtime/DataTooltips.d.ts +2 -0
- package/dist/runtime/Keyboard.d.ts +4 -1
- package/dist/runtime/Toasts.d.ts +10 -0
- package/dist/runtime/runtime.types.d.ts +52 -0
- package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
- package/dist/search-C2Rq9HF1.js.map +1 -0
- package/dist/spell-CB-MivSX.js +5 -0
- package/dist/spell-CB-MivSX.js.map +1 -0
- package/dist/spell.theme-CUoc5rTq.js +5 -0
- package/dist/spell.theme-CUoc5rTq.js.map +1 -0
- package/dist/styles/StyleGenerator.d.ts +7 -0
- package/dist/styles/styles.en.d.ts +27 -18
- package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
- package/dist/styles.en-DZlSJiOR.js.map +1 -0
- package/dist/styles.js +9 -10
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
- package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
- package/dist/ui-accordion.js +59 -60
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
- package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
- package/dist/ui-action.js +73 -45
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
- package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
- package/dist/ui-ad.editor-BHTDuSii.js +5 -0
- package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
- package/dist/ui-ad.js +8 -9
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
- package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
- package/dist/ui-app-menu.js +89 -0
- package/dist/ui-app-menu.js.map +1 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
- package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
- package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
- package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
- package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
- package/dist/ui-breadcrumbs.js +18 -17
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
- package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
- package/dist/ui-button.js +157 -156
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
- package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
- package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
- package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
- package/dist/ui-calendar.js +148 -157
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.editor-BBZj9e03.js +5 -0
- package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
- package/dist/ui-card.js +70 -70
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
- package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
- package/dist/ui-checkbox.js +49 -48
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.editor-Drr_FVB6.js +5 -0
- package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
- package/dist/ui-code.js +116 -79
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
- package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
- package/dist/ui-column.editor-hdUb-qwT.js +5 -0
- package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
- package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
- package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
- package/dist/ui-comment.js +15 -14
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
- package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
- package/dist/ui-components.editor-BKFXnARt.js +5 -0
- package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
- package/dist/ui-components.js +12 -13
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.editor-CBNhNkRm.js +5 -0
- package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
- package/dist/ui-container.js +106 -21
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-content.editor-B78lxK3P.js +5 -0
- package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
- package/dist/ui-date.editor-PHEnU7QX.js +5 -0
- package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
- package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
- package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
- package/dist/ui-detail.editor-wliuVbx3.js +5 -0
- package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
- package/dist/ui-device.editor-kl48NVma.js +5 -0
- package/dist/ui-device.editor-kl48NVma.js.map +1 -0
- package/dist/ui-device.js +436 -0
- package/dist/ui-device.js.map +1 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
- package/dist/ui-diagram.js +128 -129
- package/dist/ui-diagram.js.map +1 -1
- package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
- package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
- package/dist/ui-dimension.js +111 -12
- package/dist/ui-dimension.js.map +1 -1
- package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
- package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
- package/dist/ui-dimmer.js +29 -30
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
- package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
- package/dist/ui-divider.js +9 -10
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
- package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
- package/dist/ui-dropdown.js +155 -156
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
- package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
- package/dist/ui-embed.js +23 -24
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
- package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
- package/dist/ui-emoji.js +63 -64
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-event.editor-Bk17y7wW.js +5 -0
- package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
- package/dist/ui-example.editor-D46Vnctp.js +5 -0
- package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
- package/dist/ui-example.js +67 -74
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
- package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
- package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
- package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
- package/dist/ui-feed.js +26 -25
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
- package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
- package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
- package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
- package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
- package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
- package/dist/ui-flag.js +13 -14
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
- package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
- package/dist/ui-flyout.js +10 -11
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.editor-BJC3WhNf.js +5 -0
- package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
- package/dist/ui-form.js +199 -195
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
- package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
- package/dist/ui-grid.js +43 -234
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-header.editor-meOjCASK.js +5 -0
- package/dist/ui-header.editor-meOjCASK.js.map +1 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
- package/dist/ui-icon-picker.js +64 -69
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.editor-DoKK49PD.js +5 -0
- package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
- package/dist/ui-icon.js +15 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
- package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
- package/dist/ui-image.js +26 -26
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
- package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
- package/dist/ui-include.editor-CZcsVJbH.js +5 -0
- package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
- package/dist/ui-include.js +21 -22
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.editor-budoNoB0.js +5 -0
- package/dist/ui-input.editor-budoNoB0.js.map +1 -0
- package/dist/ui-input.js +131 -130
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.editor-BlWp1HXu.js +5 -0
- package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
- package/dist/ui-item.js +127 -113
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.editor-GOul3Xss.js +5 -0
- package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
- package/dist/ui-items.js +11 -12
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.editor-BgZbrB_W.js +5 -0
- package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
- package/dist/ui-json.js +18 -19
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
- package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
- package/dist/ui-keys.js +2 -3
- package/dist/ui-label.editor-BVUYLSUs.js +5 -0
- package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
- package/dist/ui-label.js +22 -22
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-labels.editor-BWJth86p.js +5 -0
- package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
- package/dist/ui-link.editor-CpI53scP.js +5 -0
- package/dist/ui-link.editor-CpI53scP.js.map +1 -0
- package/dist/ui-list.editor-DhBZIkAa.js +5 -0
- package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
- package/dist/ui-list.js +9 -10
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
- package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
- package/dist/ui-loader.js +10 -11
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
- package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
- package/dist/ui-markdown.js +208 -154
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
- package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
- package/dist/ui-menu.js +815 -223
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.editor-vfT0pyu5.js +5 -0
- package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
- package/dist/ui-message.js +32 -33
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
- package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
- package/dist/ui-modal.editor-B6gmmGsR.js +5 -0
- package/dist/ui-modal.editor-B6gmmGsR.js.map +1 -0
- package/dist/ui-modal.js +128 -99
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
- package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
- package/dist/ui-nag.js +23 -24
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-or.editor-BfBLNVgm.js +5 -0
- package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
- package/dist/ui-page-layout.js +363 -0
- package/dist/ui-page-layout.js.map +1 -0
- package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
- package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
- package/dist/ui-page.js +11 -12
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
- package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
- package/dist/ui-panel.js +105 -27
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +83 -68
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
- package/dist/ui-placeholder.js +23 -19
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
- package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
- package/dist/ui-popup.js +107 -100
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
- package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
- package/dist/ui-progress.js +23 -24
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
- package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
- package/dist/ui-property-editor.js +649 -277
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
- package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
- package/dist/ui-property.editor-BC-jtjjt.js +5 -0
- package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
- package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
- package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
- package/dist/ui-quote.js +8 -9
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-radio.editor-DPzActfO.js +5 -0
- package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
- package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
- package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
- package/dist/ui-rail.js +11 -12
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.editor-C19syymj.js +5 -0
- package/dist/ui-rating.editor-C19syymj.js.map +1 -0
- package/dist/ui-rating.js +40 -49
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
- package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
- package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
- package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
- package/dist/ui-reveal.js +10 -11
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.editor-CAokPDVa.js +5 -0
- package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
- package/dist/ui-root.js +206 -102
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
- package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
- package/dist/ui-search.editor-CtzfYgNu.js +5 -0
- package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
- package/dist/ui-search.js +143 -146
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.editor-DmNICxCs.js +5 -0
- package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
- package/dist/ui-section.js +74 -73
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-sections.editor-BxXECGv9.js +5 -0
- package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
- package/dist/ui-segment.editor-CebyLPFn.js +5 -0
- package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
- package/dist/ui-segment.js +43 -43
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-segments.editor-CSumzMa5.js +5 -0
- package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
- package/dist/ui-select.editor-wAcZzvU7.js +5 -0
- package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
- package/dist/ui-select.js +86 -87
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.editor-By9-8aD2.js +5 -0
- package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
- package/dist/ui-shape.js +39 -38
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-side.editor-CFSqGHGH.js +5 -0
- package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
- package/dist/ui-sidebar.js +79 -77
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
- package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
- package/dist/ui-sides.js +25 -26
- package/dist/ui-sides.js.map +1 -1
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
- package/dist/ui-site-breadcrumbs.js +143 -0
- package/dist/ui-site-breadcrumbs.js.map +1 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
- package/dist/ui-site-nav-button.js +113 -0
- package/dist/ui-site-nav-button.js.map +1 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
- package/dist/ui-site-nav.js +133 -97
- package/dist/ui-site-nav.js.map +1 -1
- package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
- package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
- package/dist/ui-site-tabs.js +53 -48
- package/dist/ui-site-tabs.js.map +1 -1
- package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
- package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
- package/dist/ui-slider.js +37 -38
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.editor-s-XVWFBN.js +5 -0
- package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
- package/dist/ui-space.js +9 -10
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
- package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
- package/dist/ui-split-panel.js +107 -68
- package/dist/ui-split-panel.js.map +1 -1
- package/dist/ui-stack.editor-D69Fky6H.js +5 -0
- package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
- package/dist/ui-stack.js +12 -13
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
- package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
- package/dist/ui-statistic.js +28 -27
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
- package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
- package/dist/ui-step.editor-CYmNXrk_.js +5 -0
- package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
- package/dist/ui-step.js +62 -61
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
- package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
- package/dist/ui-sticky.js +10 -11
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
- package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
- package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
- package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
- package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
- package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
- package/dist/ui-tab.js +115 -117
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.editor-DJvfg9oG.js +5 -0
- package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
- package/dist/ui-table.js +272 -272
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
- package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
- package/dist/ui-term.editor-BMCF3jBM.js +5 -0
- package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
- package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
- package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
- package/dist/ui-terms.js +13 -12
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.editor-B6AENK13.js +5 -0
- package/dist/ui-text.editor-B6AENK13.js.map +1 -0
- package/dist/ui-text.js +37 -36
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
- package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
- package/dist/ui-theme-editor.js +448 -461
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
- package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
- package/dist/ui-title.editor-40PZSOpn.js +5 -0
- package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
- package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
- package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
- package/dist/ui-toast.js +141 -139
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
- package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
- package/dist/ui-toc.js +52 -53
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
- package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
- package/dist/ui-toolbar.js +254 -50
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
- package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
- package/dist/ui-transition.js +13 -14
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
- package/dist/ui-tree-diagram.js +128 -127
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
- package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
- package/dist/ui-tree.editor-BoQztwdz.js +5 -0
- package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
- package/dist/ui-tree.js +393 -134
- package/dist/ui-tree.js.map +1 -1
- package/dist/ui-value.editor-CYak24cr.js +5 -0
- package/dist/ui-value.editor-CYak24cr.js.map +1 -0
- package/dist/ui-video.editor-CuWtFVjR.js +5 -0
- package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
- package/dist/ui-video.js +15 -14
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
- package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
- package/dist/ui-visibility.js +25 -26
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
- package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
- package/dist/ui-zoom.js +82 -83
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +11 -2
- package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
- package/dist/vocabulary/help.generated.d.ts +11 -0
- package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
- package/package.json +3 -3
- package/dist/Dragging-CMZoLEWQ.js.map +0 -1
- package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
- package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
- package/dist/PrefStore-Qv0e5y04.js.map +0 -1
- package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
- package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
- package/dist/SitePages-CciwREek.js.map +0 -1
- package/dist/SlottedItems-Du3aJwG1.js +0 -80
- package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
- package/dist/UIButton-DFEds67r.js +0 -6
- package/dist/UIButton-DFEds67r.js.map +0 -1
- package/dist/UIInput-BodVbUoQ.js.map +0 -1
- package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
- package/dist/UILabel-DgJUBzB_.js.map +0 -1
- package/dist/UIMenu-zdcAtwTa.js +0 -42
- package/dist/UIMenu-zdcAtwTa.js.map +0 -1
- package/dist/UIRuntime-KH309p5B.js.map +0 -1
- package/dist/UISegment-CMMIW7cZ.js.map +0 -1
- package/dist/apple.palette-B4ivrNlM.js.map +0 -1
- package/dist/classic-DCTQrteU.js.map +0 -1
- package/dist/components.es-BOa_7gFF.js.map +0 -1
- package/dist/crisp-VfYZlTph.js.map +0 -1
- package/dist/crisp.theme-DRiePRdf.js +0 -6
- package/dist/crisp.theme-DRiePRdf.js.map +0 -1
- package/dist/dark-CbUdPe0a.js.map +0 -1
- package/dist/dist-BLYIGZVK.js.map +0 -1
- package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
- package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
- package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
- package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
- package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
- package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
- package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
- package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
- package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
- package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
- package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
- package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
- package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
- package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
- package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
- package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
- package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
- package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
- package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
- package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
- package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
- package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
- package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
- package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
- package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
- package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
- package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
- package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
- package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
- package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
- package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
- package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
- package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
- package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
- package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
- package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
- package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
- package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
- package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
- package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
- package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
- package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
- package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
- package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
- package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
- package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
- package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
- package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
- package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
- package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
- package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
- package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
- package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
- package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
- package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
- package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
- package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
- package/dist/fruity-BRVlgJZd.js +0 -6
- package/dist/fruity-BRVlgJZd.js.map +0 -1
- package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
- package/dist/glass-x9tbbwVq.js +0 -6
- package/dist/glass-x9tbbwVq.js.map +0 -1
- package/dist/glass.theme-24wY2wH9.js +0 -6
- package/dist/glass.theme-24wY2wH9.js.map +0 -1
- package/dist/matrix-QY2gWbJ0.js +0 -6
- package/dist/matrix-QY2gWbJ0.js.map +0 -1
- package/dist/matrix.theme-_8xtwhDq.js +0 -6
- package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
- package/dist/merlot-DOXLuUaU.js.map +0 -1
- package/dist/merlot.theme-S-QnNGsw.js +0 -6
- package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
- package/dist/midnight-BxlTQSfw.js.map +0 -1
- package/dist/midnight.theme-wXbqRYLy.js +0 -6
- package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
- package/dist/mockup-83ELBuVr.js +0 -6
- package/dist/mockup-83ELBuVr.js.map +0 -1
- package/dist/mockup.theme-DmpBgGBl.js +0 -6
- package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
- package/dist/paper-M61nUilz.js.map +0 -1
- package/dist/paper.theme-B8R5Jn5H.js +0 -6
- package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
- package/dist/persist.types-D2m6wD-S.js.map +0 -1
- package/dist/pop-CxXfytjk.js.map +0 -1
- package/dist/pop.theme-CXzv8B9x.js +0 -6
- package/dist/pop.theme-CXzv8B9x.js.map +0 -1
- package/dist/search-CzSzx7bX.js.map +0 -1
- package/dist/spell-By5Y3jKP.js +0 -6
- package/dist/spell-By5Y3jKP.js.map +0 -1
- package/dist/spell.theme-DxGj7qHx.js +0 -6
- package/dist/spell.theme-DxGj7qHx.js.map +0 -1
- package/dist/styles.en-CUUxNwHo.js.map +0 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
package/dist/ui-toc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-toc.js","names":["SECTION_TAG","<Show when={this.heading || this.hasFolds}>\n <div class={HEAD} part={this.partForName(\"head\")}>\n <Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>\n <Show when={this.hasFolds}>{this.toggleAllButton()}</Show>\n <slot name=\"tools\" />\n </div>\n </Show>","this","<Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>","<ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>","<div class={HEAD} part={this.partForName(\"head\")}>\n <Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>\n <Show when={this.hasFolds}>{this.toggleAllButton()}</Show>\n <slot name=\"tools\" />\n </div>","<Show when={this.hasFolds}>{this.toggleAllButton()}</Show>","part={this.partForName(\"head\")}","<div class={this.rootClass} part={this.partForName(\"toc\")}>\n <Show when={this.heading || this.hasFolds}>\n <div class={HEAD} part={this.partForName(\"head\")}>\n <Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>\n <Show when={this.hasFolds}>{this.toggleAllButton()}</Show>\n <slot name=\"tools\" />\n </div>\n </Show>\n <ui-menu\n part={this.partForName(\"menu\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n aria-label={this.translationForKey(\"label\")}\n >\n <For each={this.sections}>{(section) => this.section(section)}</For>\n </ui-menu>\n </div>","<For each={this.sections}>{(section) => this.section(section)}</For>","part={this.partForName(\"toc\")}","part={this.partForName(\"menu\")}","size={this.menuSize}","aria-label={this.translationForKey(\"label\")}","<Show when={section.entries.length}>{this.foldButton(section)}</Show>","<div class={SECTION_ROW} part={this.partForName(\"section-row\")}>\n <Show when={section.entries.length}>{this.foldButton(section)}</Show>\n <ui-item\n part={this.partForName(\"section\")}\n class={SECTION}\n link={`#${section.id}`}\n selected={this.sectionIdInView === section.id ? \"\" : void 0}\n >\n {section.text}\n </ui-item>\n </div>","part={this.partForName(\"section-row\")}","part={this.partForName(\"section\")}","class={SECTION}","link={`#${section.id}`}","selected={this.sectionIdInView === section.id ? \"\" : void 0}","{this.entries(section, isOpen)}","part={this.partForName(\"fold\")}","aria-label={section.text}","aria-expanded={isOpen() ? \"true\" : \"false\"}","title={tip()}","class={CHEVRON}","<button\n type=\"button\"\n class={FOLD}\n part={this.partForName(\"fold\")}\n aria-label={section.text}\n aria-expanded={isOpen() ? \"true\" : \"false\"}\n title={tip()}\n onClick={() => this.toggleSection(section)}\n >\n <svg class={CHEVRON} viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d=\"M6 3.5 10.5 8 6 12.5\" />\n </svg>\n </button>","part={this.partForName(\"toggle-all\")}","aria-label={label()}","title={label()}","aria-pressed={this.isAllOpen ? \"true\" : \"false\"}","class={CHEVRONS}","d={this.isAllOpen ? COLLAPSE_ALL_PATH : EXPAND_ALL_PATH}","<button\n type=\"button\"\n class={TOGGLE_ALL}\n part={this.partForName(\"toggle-all\")}\n aria-label={label()}\n title={label()}\n aria-pressed={this.isAllOpen ? \"true\" : \"false\"}\n onClick={() => this.toggleAll()}\n >\n <svg class={CHEVRONS} viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d={this.isAllOpen ? COLLAPSE_ALL_PATH : EXPAND_ALL_PATH} />\n </svg>\n </button>","<Show when={isOpen()}>\n <ui-item class={ENTRIES} padding=\"none-y\">\n <ui-menu\n part={this.partForName(\"entries\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n >\n <For each={parent.entries}>\n {(entry) => <>\n <ui-item\n part={this.partForName(\"entry\")}\n link={`#${entry.id}`}\n selected={this.idInView === entry.id ? \"\" : void 0}\n >\n {entry.text}\n </ui-item>\n {this.entries(entry)}\n </>}\n </For>\n </ui-menu>\n </ui-item>\n </Show>","<For each={parent.entries}>\n {(entry) => <>\n <ui-item\n part={this.partForName(\"entry\")}\n link={`#${entry.id}`}\n selected={this.idInView === entry.id ? \"\" : void 0}\n >\n {entry.text}\n </ui-item>\n {this.entries(entry)}\n </>}\n </For>","link={`#${entry.id}`}","selected={this.idInView === entry.id ? \"\" : void 0}","{this.entries(entry)}","part={this.partForName(\"entries\")}","<ui-item class={ENTRIES} padding=\"none-y\">\n <ui-menu\n part={this.partForName(\"entries\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n >\n <For each={parent.entries}>\n {(entry) => <>\n <ui-item\n part={this.partForName(\"entry\")}\n link={`#${entry.id}`}\n selected={this.idInView === entry.id ? \"\" : void 0}\n >\n {entry.text}\n </ui-item>\n {this.entries(entry)}\n </>}\n </For>\n </ui-menu>\n </ui-item>","E.UIComponent","E.proto","E.protoMerged","E.state","E.cssState","E.derived","E.untracked","E.whileConnected","E.Queued","E.beforeNextPaint","_$createComponent","_$getOwner","_$readShallow","_$setAttribute","_$memo","__name","tocCSS","_$delegateEvents","TocMarks","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","SectionTitle","__decoratorStart","PrefStore","getOwner$1","tocVocabulary","PageOutline","found","root","SECTIONS","element","index","at","tabs","pane","PANES","value","VALUE","LABEL","parent","SECTION_TAG$1","copy","inner","NOT_TITLE","NOT_PAGE","titles","tab","sections","label","around","SECTION_WITH_ID","text","HEADING_SELECTOR","SECTION_TAG","TABS_TAG","READING_LINE","TOC_ALL_FOLDS","TOC_PREFS","TocIndex","forId","document","panes","target","ofSection","hosts","heading","entry","reserved","last","marked","host","entries","group","own","id","tag","SHADOW_HOSTS","light","below","view","all","box","scroller","top","height","line","reached","targets","isShown","lineFor","section","hash","then","event","beforeNextPaint","slug","base","n","HEADING","demo","child","name","HashLanding","landing","LANDINGS","rules","options","hasOpened","frame","SHOW_FRAMES","nextFrame","scroll","after","glides","REDUCED_MOTION","type","VIEWER_INPUT","resolve","REVEAL_FRAMES","SETTLE_SECONDS","first","opensTarget","OPEN","range","LANDINGS_KEY","TocPreferences","each","path","open","folds","UIToc_default","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_tmpl$7","_tmpl$8","_followScroll_dec","_watch_dec","_toggleAll_dec","_toggleSection_dec","_allFolds_dec","_handFolds_dec","_pathInView_dec","_idInView_dec","_isEmpty_dec","_sections_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_sections","_idInView","_handFolds","_allFolds","_UIToc","UIComponent","proto","protoMerged","state","cssState","derived","untracked","whileConnected","Queued","_self$","_el$","_el$6","insert","createComponent","Show","_el$2","_el$4","_el$5","_el$3","effect","_v$","readShallow","HEAD","className","_p$","t","setAttribute","For","a","o","i","isOpen","_self$2","_el$7","_el$8","SECTION_ROW","SECTION","memo","tip","_self$3","_el$9","_el$10","FOLD","CHEVRON","_self$4","_el$11","_el$12","_el$13","TOGGLE_ALL","CHEVRONS","COLLAPSE_ALL_PATH","EXPAND_ALL_PATH","s","isFoldOpen","_self$5","_el$14","_el$15","_el$16","ENTRIES","observer","resized","onScroll","onShow","onDrawn","onHash","followed","scrolling","start","afterSolidUpdate","UI_SHOW","UI_DRAWN","OBSERVED_ATTRIBUTES","update","UIToc","delegateEvents"],"sources":["../src/components/ui-toc/UIToc.en.ts","../src/components/ui-toc/PageOutline.ts","../src/components/ui-toc/UIToc.types.ts","../src/components/ui-toc/TocIndex.ts","../src/components/ui-toc/HashLanding.ts","../src/components/ui-toc/TocPreferences.ts","../src/components/ui-toc/UIToc.css?inline","../src/components/ui-toc/UIToc.tsx","../src/components/ui-toc/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-toc>`: every name the tag uses.\n * - Its tag, attributes, events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The docs site's `<ui-docs-toc>` until epic `ui-gaps` P14 made it a component (from epic `epic-engine` P14):\n * the old tag is renamed by `spell ui rename` (`OldNames`), and its old `header` is `heading`.\n * - Class words: `size` (`ui small toc`); what's current is the items' `selected`, not a class of its own.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `tocVocabulary`\n * The names of `<ui-toc>`, Fomantic's docs \"On this page\" rail menu:\n * the page's sections and their examples as links, following the scroll.\n ****************/\nexport const tocVocabulary = {\n tag: \"ui-toc\",\n icon: \"list ol\",\n topics: [\"navigation\", \"documentation\"],\n aka: [\"table of contents\", \"on this page\", \"page index\", \"scrollspy\", \"toc\", \"following menu\"],\n skeleton: \"short line, 6 line paragraph\",\n noun: \"toc\",\n description:\n \"A table of contents lists the page's sections and examples as links, opens the one in view and follows the \" +\n \"scroll. Each section folds and opens by its chevron, and one button in its header opens or folds them all; \" +\n \"the viewer's folds are kept.\",\n attributes: [\n {\n name: \"for\",\n kind: \"string\",\n property: \"htmlFor\",\n description:\n \"Id of the element whose headings to list. A `<ui-tabs>`: its SHOWN pane, followed as the tabs switch. \" +\n \"Default: the page's `<main>`, else `<body>`.\"\n },\n {\n name: \"scroller\",\n kind: \"string\",\n description:\n \"Id of the element whose scroll it follows, when the content scrolls inside a box of its own (a pane) rather \" +\n \"than the window. Its reading line is then that box's top. Default: the window.\"\n },\n {\n name: \"heading\",\n replaces: [\"header\"],\n kind: \"string\",\n description: \"Title above the links, e.g. the page's name (Fomantic's `Button`). Its old name was `header`.\"\n },\n { name: \"size\", kind: \"size\", default: \"small\", description: \"Text size, `mini` ... `massive`.\" },\n {\n name: \"expanded\",\n kind: \"keyOnly\",\n description:\n \"Show every section's entries, not only the current section's (Fomantic opens the one in view). \" +\n \"The viewer's own folds, and the header's toggle, win.\"\n }\n ],\n events: [\n {\n name: \"ui-scrolled-to\",\n detail: \"{ value: string }\",\n description: \"The entry in view changed (scroll, a link, the tabs); `value` is its target's id.\"\n },\n {\n name: \"ui-drawn\",\n detail: \"{ ids: string[] }\",\n description: \"The list was built (again): the ids of every entry, in page order.\"\n }\n ],\n slots: [\n {\n name: \"tools\",\n description:\n \"Buttons at the right end of the header's row, after the expand all / collapse all toggle \" +\n \"(a page's own, e.g. one hiding the contents). Shown with `heading`.\"\n }\n ],\n parts: [\n { name: \"toc\", description: 'The whole box (`<div class=\"ui toc\">`).' },\n {\n name: \"head\",\n description:\n \"The row above the links: `heading`'s title, the expand all / collapse all toggle, and the `tools` slot.\"\n },\n { name: \"header\", description: \"The `<ui-header>` with `heading`'s text.\" },\n {\n name: \"toggle-all\",\n description:\n \"The header's ONE button: opens every section, then folds them all. Kept for every page in this browser.\"\n },\n { name: \"menu\", description: \"The `<ui-menu vertical text>` of sections (a navigation landmark).\" },\n {\n name: \"section-row\",\n description: \"A section's row: its fold chevron (when it has entries) and its link.\"\n },\n {\n name: \"fold\",\n description: \"A section's fold `<button>`: a chevron, turned down while its entries show. Kept per page.\"\n },\n { name: \"section\", description: \"A section's link `<ui-item>` (a level 2 heading, a top-level `<ui-section>`).\" },\n {\n name: \"entries\",\n description:\n \"The `<ui-menu>` of a section's entries (examples, level 3 headings, nested `<ui-section>`s); nested again \" +\n \"under an entry with its own.\"\n },\n { name: \"entry\", description: \"One entry's link `<ui-item>`.\" }\n ],\n states: [{ name: \"empty\", description: \"Nothing to list (the followed content has no headings).\" }],\n texts: [\n { key: \"label\", text: \"On this page\", description: \"Accessible name of the links' landmark.\" },\n { key: \"foldSection\", text: \"Fold {section}\", description: \"A section's fold button, while it's open.\" },\n { key: \"openSection\", text: \"Open {section}\", description: \"A section's fold button, while it's folded.\" },\n { key: \"expandAll\", text: \"Expand all\", description: \"The header's toggle, while a section is folded.\" },\n { key: \"collapseAll\", text: \"Collapse all\", description: \"The header's toggle, while every section is open.\" }\n ]\n} as const satisfies E.ComponentVocabulary\n","import * as UIT from \"spell/ui/components/components.types\"\nimport type { OutlineSection } from \"./UIToc.types\"\n\n/****************\n * ### `PageOutline`\n * A page's sections, read the same way everywhere:\n * - LIVE from the page shown: what the docs site's search (`<ui-docs-search>`) finds \"On this page\"\n * - by `yarn site:data`, into the search file for every page\n * (`SiteSearchBuilder`, through `sections()`, on linkedom)\n * - the table of contents reads a page on top of it (`TocIndex.scan()`): the same titles, the same demo markup left\n * out (`titleOf()`, `demoAround()`)\n * - The docs search's until epic `ui-gaps` P14: it moved with `<ui-toc>`, so a component never imports the docs\n * widgets; the search imports it from here.\n *\n * What it reads:\n * - a section: a `<ui-section id>`, or a level 2-4 header with an id (`<ui-header level id>`, `<h2 id>` ...)\n * - so a page not nested into sections yet (the overview) still lists its headings\n * - never one inside an example, a token playground's preview, a `<template>` or a `<script>`\n * - its title: the section's `label`, else its `slot=\"label\"` child's text\n * - a header's own text, without its sub header or icon\n * - its `parent`: the section around it\n * - a top-level one in a `<ui-tabs id=\"site-tabs\">` pane names its `tab`\n * - every tab's sections, the hidden panes' too: landing on one selects its tab (the site's router)\n * - Its links are `#id`: the page shown, whatever its URL.\n * - Plain DOM, no Solid, no globals (node's linkedom runs it too).\n * - NEVER imports a value from `spell/ui/core`, which node can't load.\n * - Cheap enough to read on every search.\n * - Static only: pure reads of the DOM it's given.\n * - It imports nothing of the search: the site's sticky sections and table of contents load it with the page, the\n * search only once it's used.\n ****************/\nexport class PageOutline {\n /**\n * `root`'s sections (titled ones only), in document order, and its tabs' labels by value.\n * - A section left out (no title) never breaks a `parent`: indexes are of the list returned.\n */\n static sections(root: Element): { sections: OutlineSection[]; tabs: Record<string, string> } {\n const found = [...root.querySelectorAll(SECTIONS)].filter(\n (element) => !PageOutline.demoAround(element) && PageOutline.titleOf(element)\n )\n const index = new Map(found.map((element, at) => [element, at]))\n const tabs: Record<string, string> = {}\n for (const pane of root.querySelectorAll(PANES)) {\n const value = pane.getAttribute(VALUE)!\n tabs[value] = pane.getAttribute(LABEL) ?? value\n }\n const sections = found.map((element): OutlineSection => {\n const parent = PageOutline.parentOf(element, index)\n const pane = parent === undefined ? element.closest(PANES) : undefined\n return {\n id: element.id,\n title: PageOutline.titleOf(element),\n ...(parent !== undefined && { parent }),\n ...(pane && { tab: pane.getAttribute(VALUE)! })\n }\n })\n return { sections, tabs }\n }\n\n /** A section's or header's title (see the class). */\n static titleOf(element: Element): string {\n if (element.localName === SECTION_TAG) {\n return PageOutline.clean(UIT.SectionTitle.textOf(element) ?? \"\")\n }\n const copy = element.cloneNode(true) as Element\n for (const inner of copy.querySelectorAll(NOT_TITLE)) inner.remove()\n return PageOutline.clean(copy.textContent ?? \"\")\n }\n\n /**\n * The demo markup `element` is part of, if any: an example's live markup, a token playground's preview, a\n * `<template>` or `<script>` around it (`NOT_PAGE`).\n */\n static demoAround(element: Element): Element | undefined {\n return element.parentElement?.closest(NOT_PAGE) ?? undefined\n }\n\n /**\n * Where a section sits: its tab's label, then the titles of the sections around it, outermost first (not its own).\n * - `sections` are a page's (`OutlineSection`s, the search file's or the live outline's), `at` the section's index.\n */\n static trail(\n sections: readonly { title: string; parent?: number; tab?: string }[],\n at: number,\n tabs?: Readonly<Record<string, string>>\n ): string[] {\n const titles: string[] = []\n let tab: string | undefined\n for (let index = sections[at]!.parent; index !== undefined; index = sections[index]!.parent) {\n titles.unshift(sections[index]!.title)\n tab = sections[index]!.tab ?? tab\n }\n tab = sections[at]!.parent === undefined ? sections[at]!.tab : tab\n const label = tab && tabs && Object.hasOwn(tabs, tab) ? tabs[tab] : undefined\n return label ? [label, ...titles] : titles\n }\n\n /** Index of the nearest listed section around `element`, if any. */\n private static parentOf(element: Element, index: ReadonlyMap<Element, number>): number | undefined {\n for (let around = element.parentElement?.closest(SECTION_WITH_ID); around;) {\n const at = index.get(around)\n if (at !== undefined) return at\n around = around.parentElement?.closest(SECTION_WITH_ID)\n }\n return undefined\n }\n\n /** `text` with its whitespace collapsed. */\n private static clean(text: string): string {\n return text.replace(/\\s+/g, \" \").trim()\n }\n}\n\n/** What counts as a section. */\nconst SECTIONS =\n \"ui-section[id], ui-header[id][level='2'], ui-header[id][level='3'], ui-header[id][level='4'], h2[id], h3[id], h4[id]\"\n\n/**\n * Never a page section: demo markup (an example, a Theming playground's live example).\n * - The docs site's token playground (`<ui-docs-tokens>`) named as a tag only: nothing of it is imported.\n */\nconst NOT_PAGE = \"ui-example, ui-docs-tokens, template, script\"\n\n/** A tab pane of the page. */\nconst PANES = \"ui-tabs#site-tabs > ui-tab[value]\"\n\n/** The section tag. */\nconst SECTION_TAG = \"ui-section\"\n\n/** A section that can be a parent: one with an id. */\nconst SECTION_WITH_ID = \"ui-section[id]\"\n\n/** What a header's title leaves out: its sub header, its icon, anything slotted. */\nconst NOT_TITLE = \"ui-header, ui-icon, [slot]\"\n\n/** A pane's value attribute: its tab's id. */\nconst VALUE = \"value\"\n\n/** A pane's label attribute: its tab's text. */\nconst LABEL = \"label\"\n","/**\n * The types and constants of the table of contents family:\n * what the component, its heading scan (`TocIndex`) and the page reader (`PageOutline`) share.\n * - Data only: nothing here runs.\n */\n\nimport type { tocVocabulary } from \"./UIToc.en\"\n\n/** `tocVocabulary`'s type. */\nexport type TocVocabulary = typeof tocVocabulary\n\n////////////////\n// ## Entries\n////////////////\n\n/** One link of the list: a section (level 2 heading, top-level `<ui-section>`) or an entry under it. */\nexport type TocEntry = {\n /** id of its target, set by `TocIndex` when the target had none */\n readonly id: string\n /** link text */\n readonly text: string\n /** the heading, section or example it links to */\n readonly target: Element\n /**\n * entries under it, in page order: a section's examples and level 3 headings (up to the next level 2 heading),\n * a `<ui-section>`'s nested sections, examples and headings; `[]` for none\n */\n readonly entries: readonly TocEntry[]\n}\n\n/** A top-level entry: a level 2 heading or a `<ui-section>` inside no other, with the entries under it. */\nexport type TocSection = TocEntry\n\n/** What a toc follows (`TocIndex.followed()`): the element `for` names (else the page's `main`), and its tabs. */\nexport type FollowedContent = {\n /** the element whose headings are listed */\n readonly root: Element\n /** `root` itself, when it's a `<ui-tabs>`: then only its shown pane is listed */\n readonly tabs?: Element\n}\n\n/**\n * One section of a page, as `PageOutline.sections()` reads it: where a link to it lands.\n * - The docs site's search file holds every page's (`SiteSearchPage.sections`).\n */\nexport type OutlineSection = {\n /** its id, the hash that lands on it, e.g. `examples-types-vertical-divider` */\n readonly id: string\n /** its title, e.g. `Vertical Divider` */\n readonly title: string\n /** index in the page's sections of the section around it */\n readonly parent?: number\n /** value of the tab it's in (the page's tabs), on a top-level section only */\n readonly tab?: string\n}\n\n/**\n * What becomes a SECTION: a level 2 page header, or a `<ui-section>` inside no other (inside one:\n * an entry of it, at any depth).\n * - Light DOM only: a widget's shadow headers are listed only when it marks them (`UIT.TocMarks.entry`).\n */\nexport const SECTION_SELECTOR = 'ui-header[level=\"2\"], h2, ui-section'\n\n/**\n * What becomes an ENTRY under the current section: an example with a header, or a level 3 page header.\n * Inside a `<ui-section>`, under that section.\n */\nexport const ENTRY_SELECTOR = 'ui-example[heading], ui-header[level=\"3\"], h3'\n\n/** Both, for one ordered query. */\nexport const HEADING_SELECTOR = `${SECTION_SELECTOR}, ${ENTRY_SELECTOR}`\n\n/** A tag whose shadow root a heading must not be inside: an example's own title is its `heading` attribute. */\nexport const EXAMPLE_TAG = \"ui-example\"\n\n/** A section that nests: its title is its `label` attribute or its `slot=\"label\"` child (`UIT.SectionTitle`). */\nexport const SECTION_TAG = \"ui-section\"\n\n/** The tab set a `for` may name: then the toc follows its shown pane. */\nexport const TABS_TAG = \"ui-tabs\"\n\n/** Share of the viewport, below the scroll padding, a heading must pass to be the one in view. */\nexport const READING_LINE = 0.2\n\n/** Default `size`. */\nexport const DEFAULT_SIZE = \"small\"\n\n////////////////\n// ## Folds\n////////////////\n\n/** What the header's toggle last did, on any page: every section open, or every section folded. */\nexport type TocAllFolds = (typeof TOC_ALL_FOLDS)[number]\n\n/** `TocAllFolds`' values. */\nexport const TOC_ALL_FOLDS = [\"expanded\", \"collapsed\"] as const\n\n/** The viewer's own folds on one page, by section id: `true` opened, `false` folded. */\nexport type TocFolds = Readonly<Record<string, boolean>>\n\n/**\n * Where a toc keeps its folds (`TocPreferences`): the `PrefStore` name, and its keys.\n * - Its name followed the tag (epic `ui-gaps` P14): folds kept under the docs widget's old name are read no more.\n * - `all`: the toggle's `TocAllFolds`, ONE for every page in this browser\n * - `folds`: + the page's path, its `TocFolds`\n */\nexport const TOC_PREFS = { store: \"spell-ui-toc\", all: \"all\", folds: \"folds:\" } as const\n","// `spell/ui/util` by name, never the `spell/ui/core` entry: node scripts load this file (see the class docs)\nimport { beforeNextPaint, slug } from \"spell/ui/util\"\nimport * as UIT from \"spell/ui/components/components.types\"\nimport { PageOutline } from \"./PageOutline\"\nimport {\n EXAMPLE_TAG,\n HEADING_SELECTOR,\n READING_LINE,\n SECTION_SELECTOR,\n SECTION_TAG,\n TABS_TAG,\n type FollowedContent,\n type TocEntry,\n type TocSection\n} from \"./UIToc.types\"\n\n/****************\n * ### `TocIndex`\n * The page side of `<ui-toc>`: which content it follows, the sections and entries in it, the one in view.\n * - Plain DOM, no Solid: node scripts load it by path (`scripts/site-sections.ts`, `src/tools/SiteCheck.ts`),\n * so it NEVER imports a value from `spell/ui/core`.\n * - Static only: pure reads (and id writes) of the DOM it's given.\n * - Entries form a tree: level 2 headings and top-level `<ui-section>`s,\n * then what's under each (examples, level 3 headings, nested sections), as deep as the sections nest.\n * - Read on top of `PageOutline`: its titles, and the demo markup it leaves out.\n * - Light DOM only, but for the shadow roots of the SHADOW HOSTS, the tags another family names\n * (`addShadowHost()`: the docs site's `<ui-docs-api>`):\n * their marked elements (`UIT.TocMarks.entry`) are entries of the section around the host,\n * a group's (`UIT.TocMarks.group`) nesting the ones after it.\n * - A list, not a tag of its own: a component never names the docs widgets (epic `ui-gaps` P14).\n * - SIDE EFFECT: `scan()` gives every listed heading / section / example without an `id` one\n * (a slug of its text, made unique in the document), so the links have targets and other pages can link to them.\n ****************/\nexport class TocIndex {\n /**\n * The element named by `forId` (else the page's `<main>`, else `<body>`), and the tab set when it is one.\n * - `undefined` while a named element doesn't exist yet (the toc may come first in the page).\n */\n static followed(document: Document, forId: string | undefined): FollowedContent | undefined {\n const root = forId ? document.getElementById(forId) : (document.querySelector(\"main\") ?? document.body)\n if (!root) return undefined\n return root.localName === TABS_TAG ? { root, tabs: root } : { root }\n }\n\n /** The pane of `tabs` on show: `:state(selected)`, else the first child with a box. */\n static shownPane(tabs: Element): Element | undefined {\n const panes = TocIndex.panes(tabs)\n return (\n panes.find((pane) => TocIndex.hasState(pane, \"selected\")) ?? panes.find((pane) => pane.getClientRects().length)\n )\n }\n\n /** The pane of `tabs` holding `target`, if any. */\n static paneOf(tabs: Element, target: Element): Element | undefined {\n return TocIndex.panes(tabs).find((pane) => pane.contains(target))\n }\n\n /** A pane's value, as `<ui-tabs value>` takes it: its `value`, else its index. */\n static paneValue(tabs: Element, pane: Element): string {\n return pane.getAttribute(\"value\") ?? String(TocIndex.panes(tabs).indexOf(pane))\n }\n\n /**\n * The sections of `root`, in page order:\n * - each level 2 heading with the examples / level 3 headings after it\n * - each `<ui-section>` with what's nested in it (sections, examples, headings), at any depth\n * - A level 2 heading inside a `<ui-section>` is an entry of that section, like the rest.\n * - Headings before the first section become sections with no entries.\n * - A shadow host (`addShadowHost()`): its shadow root's marked elements, as entries of the section around it\n * (`shadowEntries()`).\n * - Skipped: sections without a title, and headings and sections\n * inside an example's live markup (a header page's demos) or inside templates.\n * - `reserved`: ids a new id must not take (the tab values, which the URL hash also names).\n */\n static scan(root: Element, reserved: ReadonlySet<string> = new Set()): TocSection[] {\n const sections: TocEntry[] = []\n const ofSection = new Map<Element, TocEntry>()\n const hosts = TocIndex.shadowHosts\n for (const heading of root.querySelectorAll(hosts ? `${HEADING_SELECTOR}, ${hosts}` : HEADING_SELECTOR)) {\n if (TocIndex.insideExample(heading, root)) continue\n if (hosts && heading.matches(hosts)) {\n const parent = TocIndex.enclosing(heading, root, ofSection) ?? sections.at(-1)\n if (parent) (parent.entries as TocEntry[]).push(...TocIndex.shadowEntries(heading))\n continue\n }\n const text = TocIndex.text(heading)\n if (!text) continue\n const entry: TocEntry = { id: TocIndex.idOf(heading, text, reserved), text, target: heading, entries: [] }\n if (heading.localName === SECTION_TAG) ofSection.set(heading, entry)\n const parent = TocIndex.enclosing(heading, root, ofSection)\n const last = sections.at(-1)\n if (parent) (parent.entries as TocEntry[]).push(entry)\n else if (heading.matches(SECTION_SELECTOR) || !last) sections.push(entry)\n else (last.entries as TocEntry[]).push(entry)\n }\n return sections\n }\n\n /**\n * The entries `host`'s shadow root marks (`UIT.TocMarks.entry`, with an id), in order;\n * a group's (`UIT.TocMarks.group`) holding the ones after it, up to the next group.\n * - `[]` before the host has drawn: the toc scans again when it says it has (`ui-drawn`).\n */\n static shadowEntries(host: Element): TocEntry[] {\n const marked = host.shadowRoot?.querySelectorAll(`[${UIT.TocMarks.entry}]`) ?? []\n const entries: TocEntry[] = []\n let group: TocEntry | undefined\n for (const element of marked) {\n const text = element.getAttribute(UIT.TocMarks.entry)?.trim()\n if (!text || !element.id) continue\n const entry: TocEntry = { id: element.id, text, target: element, entries: [] }\n if (element.hasAttribute(UIT.TocMarks.group)) {\n group = entry\n entries.push(entry)\n } else if (group) (group.entries as TocEntry[]).push(entry)\n else entries.push(entry)\n }\n return entries\n }\n\n /** The element with `id`: in the page, else in a shadow host's shadow root (a row's anchor). */\n static elementById(document: Document, id: string): Element | undefined {\n const own = document.getElementById(id)\n if (own) return own\n const hosts = TocIndex.shadowHosts\n if (!hosts) return undefined\n for (const host of document.querySelectorAll(hosts)) {\n const found = host.shadowRoot?.getElementById(id)\n if (found) return found\n }\n return undefined\n }\n\n /**\n * Have the table of contents read `tag`'s shadow root too: its marked elements (`UIT.TocMarks`) are entries.\n * - Called by the family that draws them, as it loads (the docs site's `<ui-docs-api>`).\n * - SIDE EFFECT: page-wide, for every table of contents; once per tag.\n */\n static addShadowHost(tag: string): void {\n const hosts = TocIndex.hostTags()\n if (!hosts.includes(tag)) hosts.push(tag)\n }\n\n /** The shadow hosts as one selector (`ui-docs-api`); `undefined` while none is named. */\n static get shadowHosts(): string | undefined {\n const hosts = TocIndex.hostTags()\n return hosts.length ? hosts.join(\", \") : undefined\n }\n\n /** Forget the shadow hosts: for tests. */\n static reset(): void {\n TocIndex.hostTags().length = 0\n }\n\n /**\n * The tags `addShadowHost()` named, on `globalThis`: ONE list a page, though a bundle may hold a second copy of\n * this file (spell-epic's docs runtime imports it by its file, beside the families' own).\n */\n private static hostTags(): string[] {\n return ((globalThis as { [SHADOW_HOSTS]?: string[] })[SHADOW_HOSTS] ??= [])\n }\n\n /** The light-DOM element `element` is drawn in: its shadow root's host (at any depth), else itself. */\n static lightElementOf(element: Element): Element {\n let light = element\n for (let root = light.getRootNode(); \"host\" in root && root.host; root = light.getRootNode())\n light = root.host as Element\n return light\n }\n\n /** `entries` and everything under them, depth first: page order. */\n static flatten(entries: readonly TocEntry[]): TocEntry[] {\n return entries.flatMap((entry) => [entry, ...TocIndex.flatten(entry.entries)])\n }\n\n /** Ids from the top-level section down to the entry `id` (its own last); `[]` when it isn't listed. */\n static pathTo(entries: readonly TocEntry[], id: string | undefined): string[] {\n if (!id) return []\n for (const entry of entries) {\n if (entry.id === id) return [id]\n const below = TocIndex.pathTo(entry.entries, id)\n if (below.length) return [entry.id, ...below]\n }\n return []\n }\n\n /**\n * The id of the entry in view:\n * - the last one whose top has passed the reading line (the scroll padding plus a fifth of the visible height)\n * - the last one at the page's end\n * - the first one above everything\n * - Entries without a box (a hidden pane) or inside a folded `<ui-section>` are skipped.\n * - `scroller`: the box the content scrolls in (a pane), when it isn't the window;\n * its own top, scroll padding and height then make the line, and its end the page's end.\n */\n static current(sections: readonly TocSection[], document: Document, scroller?: Element): string | undefined {\n const view = document.defaultView\n if (!view) return undefined\n const all = TocIndex.flatten(sections).filter(\n (entry) => entry.target.getClientRects().length && !TocIndex.folded(TocIndex.lightElementOf(entry.target))\n )\n if (!all.length) return undefined\n const box = scroller ?? document.scrollingElement ?? document.documentElement\n const top = scroller ? scroller.getBoundingClientRect().top : 0\n const height = scroller ? scroller.clientHeight : view.innerHeight\n if (box.scrollTop > 0 && box.scrollTop + height >= box.scrollHeight - 2) return all.at(-1)!.id\n const padding = parseFloat(view.getComputedStyle(scroller ?? document.documentElement).scrollPaddingTop) || 0\n const line = top + padding + height * READING_LINE\n const reached = TocIndex.reached(\n all.map((entry) => entry.target),\n () => line\n )\n return (all.find((entry) => entry.target === reached) ?? all[0]!).id\n }\n\n /**\n * The last of `targets` (in page order) whose top has reached its line, px from the viewport's top (`lineFor()`);\n * `undefined` above the first.\n * - Skipped: a target without a box (a hidden pane, filtered out), or one `isShown()` says isn't shown\n * - The section being read: `current()` with the reading line; the epic pages with each target's landing line.\n */\n static reached<T extends Element>(\n targets: readonly T[],\n lineFor: (target: T) => number,\n isShown: (target: T) => boolean = () => true\n ): T | undefined {\n let reached: T | undefined\n for (const target of targets) {\n if (!target.getClientRects().length || !isShown(target)) continue\n if (target.getBoundingClientRect().top > lineFor(target)) break\n reached = target\n }\n return reached\n }\n\n /** The top-level section holding the entry `id`, at any depth (or being it). */\n static sectionOf(sections: readonly TocSection[], id: string | undefined): TocSection | undefined {\n const top = TocIndex.pathTo(sections, id)[0]\n return top === undefined ? undefined : sections.find((section) => section.id === top)\n }\n\n /** A URL hash (without `#`) as the id it names. */\n static decode(hash: string): string {\n try {\n return decodeURIComponent(hash)\n } catch {\n return hash\n }\n }\n\n /**\n * Run `then` once the `<ui-root>` around `element` is ready (every component drawn),\n * or on the next frame when it already is or there is none.\n * - Its OWN `ui-ready`: a root inside it (a `<ui-page>` in an example) sends one too, which bubbles up first.\n */\n static whenReady(element: Element, then: () => void): void {\n const root = element.closest(\"ui-root\")\n if (!root || TocIndex.hasState(root, \"ready\")) {\n beforeNextPaint(then)\n return\n }\n const onReady = (event: Event) => {\n if (event.target !== root) return\n root.removeEventListener(\"ui-ready\", onReady)\n beforeNextPaint(then)\n }\n root.addEventListener(\"ui-ready\", onReady)\n }\n\n /**\n * `text` as a section's id: the kit's id slug (`slug()`), `section` when nothing is left.\n * - e.g. `Labeled Icon` => `labeled-icon`, `Émphasis & More!` => `emphasis-more`\n * - EXCEPT an apostrophe, which splits words here (`Spell UI's own` => `spell-ui-s-own`),\n * where the kit's drops it: the docs pages' saved section ids were made so, and links point at them.\n */\n static slug(text: string): string {\n return slug(text.replace(/['’]/g, \" \"), { fallback: \"section\" })\n }\n\n /** `element`'s id, giving it one first if it has none (SIDE EFFECT). */\n private static idOf(element: Element, text: string, reserved: ReadonlySet<string>): string {\n if (element.id) return element.id\n const base = TocIndex.slug(text)\n const document = element.ownerDocument\n let id = base\n for (let n = 2; reserved.has(id) || document.getElementById(id); n++) id = `${base}-${n}`\n element.id = id\n return id\n }\n\n /** A heading's link text: an example's `heading`, else its title as the search reads it (`PageOutline.titleOf()`). */\n private static text(heading: Element): string {\n const text = heading.localName === EXAMPLE_TAG ? heading.getAttribute(HEADING) : PageOutline.titleOf(heading)\n return (text ?? \"\").replace(/\\s+/g, \" \").trim()\n }\n\n /** `heading` is part of demo markup (an example's, a template), below `root` (`PageOutline.demoAround()`). */\n private static insideExample(heading: Element, root: Element): boolean {\n const demo = PageOutline.demoAround(heading)\n return !!demo && root.contains(demo)\n }\n\n /** The listed `<ui-section>` (`ofSection`) nearest around `element`, below `root`; `undefined` at the top. */\n private static enclosing(element: Element, root: Element, ofSection: Map<Element, TocEntry>): TocEntry | undefined {\n for (let section = element.parentElement?.closest(SECTION_TAG); section;) {\n if (!root.contains(section) || section === root) return undefined\n const entry = ofSection.get(section)\n if (entry) return entry\n section = section.parentElement?.closest(SECTION_TAG)\n }\n return undefined\n }\n\n /** `element` is hidden inside a folded `<ui-section>` (not counting itself). */\n private static folded(element: Element): boolean {\n for (let section = element.parentElement?.closest(SECTION_TAG); section;) {\n if (section.hasAttribute(\"collapsible\") && section.getAttribute(\"open\") === \"false\") return true\n section = section.parentElement?.closest(SECTION_TAG)\n }\n return false\n }\n\n /** The `<ui-tab>` children of `tabs` (any child with a `value` or the pane state). */\n private static panes(tabs: Element): Element[] {\n return [...tabs.children].filter((child) => child.localName !== \"template\")\n }\n\n /** `element` has custom state `name` (`false` where `:state()` isn't supported). */\n private static hasState(element: Element, name: string): boolean {\n try {\n return element.matches(`:state(${name})`)\n } catch {\n return false\n }\n }\n}\n\n/** An example's title attribute. */\nconst HEADING = \"heading\"\n\n/** Where the shadow hosts are kept on `globalThis` (`hostTags()`). */\nconst SHADOW_HOSTS = Symbol.for(\"spell-ui:toc-shadow-hosts\")\n","// `spell/ui/util` by name, never the `spell/ui/core` entry: plain DOM, as `TocIndex` beside it\nimport { after, nextFrame } from \"spell/ui/util\"\nimport { TocIndex } from \"./TocIndex\"\nimport { SECTION_TAG, TABS_TAG } from \"./UIToc.types\"\n\n/****************\n * ### `HashLanding`\n * Landing on a link's target, below the titles stuck at the top: ONE way for Spell UI's docs, its site and the epic\n * pages (epic `coherence` P11).\n * - A landing, in order (`land()`):\n * 1. waits until the page is ready (`whenReady`: by default the `<ui-root>` around the target)\n * 2. opens what hides the target (`reveal`): selects the tab pane holding it, unfolds the `<ui-section>`s around it\n * 3. waits for that to draw: the target has a box, then, when something opened, a few frames (`revealFrames`)\n * 4. scrolls its top to its line (`topOf`, `lineFor`), at once or gliding\n * 5. once more after `settleSeconds`, as late layout (images, a fold's last frame) moves it a little;\n * not when the viewer has scrolled, clicked or typed meanwhile\n * - ONE per document (`forDocument()`): a newer landing stops an older one still waiting.\n * - Who lands a `#hash`:\n * - by default its elements, through `landOnHash()`: `<ui-toc>` as the page opens and on `hashchange`,\n * `<ui-docs-api>` for a header in its shadow root\n * - a page that lands its hashes ITSELF (the site's `SiteSections`, the epic pages' runtime) says so with its\n * rules (`use()`): then `landOnHash()` leaves them to it, and the page scrolls once, not once per element\n * - The default rules land as the browser's own jump does (`scrollIntoView()`): the target's top at the document's\n * `scroll-padding-top` plus its own `scroll-margin-top`.\n * - Plain DOM, no Solid: the epic pages' runtime bundles it from source, beside Spell UI's `dist/`.\n * - SIDE EFFECT: the viewer's input (`wheel`, `touchstart`, `keydown`, `pointerdown`) heard on the window, from the\n * first landing on\n ****************/\nexport class HashLanding {\n /** The document's one landing, made on first use. */\n static forDocument(document: Document): HashLanding {\n let landing = LANDINGS.get(document)\n if (!landing) LANDINGS.set(document, (landing = new HashLanding(document)))\n return landing\n }\n\n /** The document it lands in. */\n readonly document: Document\n\n /** How it lands: the defaults, or the page's own (`use()`). */\n private rules: HashLandingRules\n\n /** The page lands its hashes itself (`use()`): `landOnHash()`, and every element, leave them to it. */\n get isPageOwned(): boolean {\n return this.ownRules\n }\n\n /** `use()` was called. */\n private ownRules = false\n\n /** Bumped by every landing: an older one, still waiting, stops. */\n private landings = 0\n\n /** The viewer scrolled, clicked or typed since the last landing began: its settle doesn't land again. */\n private hasViewerMoved = false\n\n /** The viewer's input is heard (`watchViewer()`). */\n private isWatching = false\n\n private constructor(document: Document) {\n this.document = document\n this.rules = HashLanding.defaultRules()\n }\n\n /**\n * The page lands its own hashes, by `rules` (each one left out stays the default's): the elements' own\n * `landOnHash()` from now on leave them to it.\n */\n use(rules: Partial<HashLandingRules>): this {\n this.rules = { ...this.rules, ...rules }\n this.ownRules = true\n return this\n }\n\n /**\n * Land on what `hash` (with or without its `#`) names, the way an element does: unless the page lands its own\n * (`use()`), or nothing has that id.\n * - Resolves `true` once it has scrolled there; `false` when it didn't (a newer landing came, or nothing to land on).\n */\n landOnHash(hash: string, options: HashLandingOptions = {}): Promise<boolean> {\n if (this.isPageOwned) return Promise.resolve(false)\n const id = TocIndex.decode(hash.replace(/^#/, \"\"))\n const target = id ? TocIndex.elementById(this.document, id) : undefined\n return target ? this.land(target, options) : Promise.resolve(false)\n }\n\n /**\n * Land on `target` (see the class); a promise of it, for a target drawn later (a row of an API table).\n * - Resolves `true` once it has scrolled there; `false` when a newer landing came first, or there's nothing.\n * - NEVER rejects: a target that never comes is no landing.\n */\n async land(\n target: LandingTarget,\n { scroll = \"jump\", opensTarget = true }: HashLandingOptions = {}\n ): Promise<boolean> {\n const landing = ++this.landings\n this.hasViewerMoved = false\n this.watchViewer()\n const found = await Promise.resolve(target).catch(() => undefined)\n if (!found || landing !== this.landings) return false\n await this.rules.whenReady(found)\n if (landing !== this.landings) return false\n const hasOpened = this.rules.reveal(found, { opensTarget })\n for (let frame = 0; frame < SHOW_FRAMES && this.rules.topOf(found) === undefined; frame++) await nextFrame()\n if (hasOpened) await nextFrame(this.rules.revealFrames)\n if (landing !== this.landings) return false\n this.scrollTo(found, scroll)\n void after(this.rules.settleSeconds, () => {\n if (landing === this.landings && !this.hasViewerMoved) this.scrollTo(found, scroll)\n })\n return true\n }\n\n /** Scroll so `target`'s top sits on its line; then tell the page (`onLanded`). */\n private scrollTo(target: Element, scroll: LandingScroll): void {\n const top = this.rules.topOf(target)\n const view = this.document.defaultView\n if (top === undefined || !view) return\n const glides = scroll === \"glide\" && !view.matchMedia(REDUCED_MOTION).matches\n view.scrollTo({\n top: Math.max(0, view.scrollY + top - this.rules.lineFor(target)),\n behavior: glides ? \"smooth\" : \"instant\"\n })\n this.rules.onLanded?.(target)\n }\n\n /** From the first landing on, hear the viewer moving the page: a landing's second try must not pull it back. */\n private watchViewer(): void {\n const view = this.document.defaultView\n if (this.isWatching || !view) return\n this.isWatching = true\n for (const type of VIEWER_INPUT)\n view.addEventListener(type, () => (this.hasViewerMoved = true), { capture: true, passive: true })\n }\n\n ////////////////\n // ## The default rules\n ////////////////\n\n /** How a page with no rules of its own lands (see the class). */\n static defaultRules(): HashLandingRules {\n return {\n whenReady: (target) => new Promise((resolve) => TocIndex.whenReady(TocIndex.lightElementOf(target), resolve)),\n reveal: (target, { opensTarget }) => HashLanding.reveal(target, { opensTarget }),\n lineFor: (target) => HashLanding.marginLine(target),\n topOf: (target) => HashLanding.topOf(target),\n revealFrames: REVEAL_FRAMES,\n settleSeconds: SETTLE_SECONDS\n }\n }\n\n /**\n * Open what hides `target`: select the pane of each `<ui-tabs>` around it, unfold each `<ui-section>` around it\n * (and itself, with `opensTarget`); true when anything opened.\n * - A target in a shadow root: what's around its host.\n * - The unfold is the `open` attribute (`open=\"false\"` taken off), which announces nothing:\n * never saved as the viewer's own fold.\n */\n static reveal(target: Element, { opensTarget }: { opensTarget: boolean }): boolean {\n const light = TocIndex.lightElementOf(target)\n let hasOpened = false\n for (let tabs = light.parentElement?.closest(TABS_TAG); tabs; tabs = tabs.parentElement?.closest(TABS_TAG)) {\n const pane = TocIndex.paneOf(tabs, light)\n if (!pane || TocIndex.shownPane(tabs) === pane) continue\n ;(tabs as HTMLElement & { value?: string }).value = TocIndex.paneValue(tabs, pane)\n hasOpened = true\n }\n const first = opensTarget ? light.closest(SECTION_TAG) : light.parentElement?.closest(SECTION_TAG)\n for (let section = first; section; section = section.parentElement?.closest(SECTION_TAG)) {\n if (section.getAttribute(OPEN) !== \"false\") continue\n section.removeAttribute(OPEN)\n hasOpened = true\n }\n return hasOpened\n }\n\n /**\n * Where `target`'s top is now, px from the viewport's top: its box; a box-less one's (`display: contents`) by what\n * it holds; `undefined` while it draws nothing (a hidden pane).\n */\n static topOf(target: Element): number | undefined {\n if (target.getClientRects().length) return target.getBoundingClientRect().top\n const range = target.ownerDocument.createRange()\n range.selectNodeContents(target)\n const box = range.getBoundingClientRect()\n return box.height || box.width ? box.top : undefined\n }\n\n /** The browser's own landing line for `target`: the document's `scroll-padding-top` plus its `scroll-margin-top`. */\n static marginLine(target: Element): number {\n const view = target.ownerDocument.defaultView\n if (!view) return 0\n const padding = parseFloat(view.getComputedStyle(target.ownerDocument.documentElement).scrollPaddingTop) || 0\n return padding + (parseFloat(view.getComputedStyle(target).scrollMarginTop) || 0)\n }\n}\n\n////////////////\n// ## Types\n////////////////\n\n/** What a landing lands on: the element, or a promise of it (drawn later), `undefined` for none. */\nexport type LandingTarget = Element | Promise<Element | undefined>\n\n/** How a landing scrolls: a page arriving at its address jumps; a link on the page may glide. */\nexport type LandingScroll = \"jump\" | \"glide\"\n\n/** `land()`'s options. */\nexport type HashLandingOptions = {\n /** `jump` (default) or `glide`: a smooth scroll, a jump all the same under reduced motion */\n scroll?: LandingScroll\n /** unfold the target itself, not only what's around it (default `true`) */\n opensTarget?: boolean\n}\n\n/** How a page lands (`HashLanding.use()`): each step of a landing, the page's way. */\nexport type HashLandingRules = {\n /** resolves once the page can be measured (its elements drawn) */\n whenReady: (target: Element) => Promise<void>\n /** open what hides `target`; true when anything opened, so the landing waits for it to draw */\n reveal: (target: Element, options: { opensTarget: boolean }) => boolean\n /** where `target`'s top should land, px from the viewport's top: below what's stuck over it */\n lineFor: (target: Element) => number\n /** where `target`'s top is now, px from the viewport's top; `undefined` while it draws nothing */\n topOf: (target: Element) => number | undefined\n /** told after each scroll: e.g. to mark the target's entry as the one being read */\n onLanded?: (target: Element) => void\n /** frames to wait after something opened: what an unfold reveals renders on the next frames */\n revealFrames: number\n /** when to land once more, s, unless the viewer moved */\n settleSeconds: number\n}\n\n/** Where `LANDINGS` is kept on `globalThis`. */\nconst LANDINGS_KEY = Symbol.for(\"spell-ui:hash-landings\")\n\n/**\n * Each document's landing, on `globalThis`: ONE map a page, though a bundle may hold a second copy of this file\n * (spell-epic's docs runtime imports it by its file, beside the `<ui-toc>` family's own; epic `ui-gaps` P14).\n */\nconst LANDINGS: WeakMap<Document, HashLanding> = ((globalThis as { [LANDINGS_KEY]?: WeakMap<Document, HashLanding> })[\n LANDINGS_KEY\n] ??= new WeakMap())\n\n/** What the viewer does that stops a landing's second try: he's moving the page. */\nconst VIEWER_INPUT = [\"wheel\", \"touchstart\", \"keydown\", \"pointerdown\"] as const\n\n/** Frames a section takes to draw what an unfold revealed (the write lands on a microtask, the render next frame). */\nconst REVEAL_FRAMES = 3\n\n/** Frames to wait at most for a target to get a box (its pane swapping in, inside a View Transition). */\nconst SHOW_FRAMES = 30\n\n/** Land once more after this long, s: late layout (images, a fold's last frame) moves the target a little. */\nconst SETTLE_SECONDS = 0.4\n\n/** A section's open attribute, `\"false\"` when folded (controlled: writing it announces nothing). */\nconst OPEN = \"open\"\n\n/** The viewer asks for less motion: a glide jumps. */\nconst REDUCED_MOTION = \"(prefers-reduced-motion: reduce)\"\n","// Import directly: in `core`'s util barrel it cost every page 1.9 kB\nimport { PrefStore } from \"spell/util/persist/PrefStore\"\nimport { TOC_ALL_FOLDS, TOC_PREFS, type TocAllFolds, type TocFolds } from \"./UIToc.types\"\n\n/****************\n * ### `TocPreferences`\n * The viewer's folds in a table of contents, kept in this browser (`localStorage`, through `PrefStore`).\n * - Expand all / collapse all (`all()`): ONE for every page, until the viewer presses the other\n * (Owen, 2026-10-25: \"keep if I've said 'expand all' -- I probably want that on other pages\").\n * - A section folded or opened by hand (`foldsFor()`): per page, by its path.\n * - Where storage is blocked (a private window), kept for this page only; NEVER throws.\n * - Static only: the storage is one per page, and holds no state of its own.\n ****************/\nexport class TocPreferences {\n /** What the toggle last did, on any page; `undefined` until it's pressed (or a value it can't read). */\n static all(): TocAllFolds | undefined {\n const value = TocPreferences.store.get(TOC_PREFS.all)\n return TOC_ALL_FOLDS.find((each) => each === value)\n }\n\n /** Remember what the toggle did, for every page. */\n static setAll(all: TocAllFolds): void {\n TocPreferences.store.set(TOC_PREFS.all, all)\n }\n\n /** The viewer's own folds on the page at `path`; `{}` when none, or a value it can't read. */\n static foldsFor(path: string): TocFolds {\n const value = TocPreferences.store.get(TOC_PREFS.folds + path)\n if (!value || typeof value !== \"object\" || Array.isArray(value)) return {}\n return Object.fromEntries(Object.entries(value).filter(([, open]) => typeof open === \"boolean\")) as TocFolds\n }\n\n /** Keep the viewer's folds on the page at `path`; none forgets them. */\n static setFoldsFor(path: string, folds: TocFolds): void {\n TocPreferences.store.set(TOC_PREFS.folds + path, Object.keys(folds).length ? folds : undefined)\n }\n\n /** The store: made on first use, so a server render never touches storage. */\n private static get store(): PrefStore {\n return (TocPreferences.made ??= new PrefStore(TOC_PREFS.store))\n }\n private static made?: PrefStore\n}\n","/*\n * The style sheet of `<ui-toc>`: Fomantic's docs \"On this page\" rail menu\n * (`server/files/stylesheets/docs.css` of Fomantic-UI-Docs, `.following.menu`), built of `<ui-*>` widgets:\n * this sheet only LAYS THEM OUT (and bolds the entry in view, as docs.css does).\n * - It styles the component's shadow DOM:\n * `<div class=\"ui [size] toc\" part=\"toc\">` holding a `<div class=\"head\" part=\"head\">` row\n * (an optional `<ui-header part=\"header\">`, the `<button class=\"toggle-all\">`)\n * and `<ui-menu direction=\"vertical\" appearance=\"text\" fluid part=\"menu\">` of section rows:\n * `<div class=\"section-row\">`, its `<button class=\"fold\">` chevron in the gutter, its\n * `<ui-item class=\"section\" part=\"section\">` link.\n * - Under the open section, an `<ui-item class=\"entries\" padding=\"none-y\">`,\n * holding `<ui-menu part=\"entries\">` of `<ui-item part=\"entry\">` links.\n * - An open entry with entries of its own (nested `<ui-section>`s) is followed by the same pair again,\n * one indent further.\n * - Public tokens (`--ui-toc-*`) are never declared: each is read through a private alias\n * (`notes/theming.md` \"Component tokens\").\n */\n\n@layer ui.components.toc.types, ui.components.toc.content, ui.components.toc.variations, ui.components.toc.states;\n\n@layer ui.components.toc.types {\n :host {\n display: block;\n }\n\n /* Tokens: Fomantic's docs measures. */\n .ui.toc {\n /* Indent of a section's entries under its title. */\n --_ui-toc-indent: var(--ui-toc-indent, 0.5em);\n /* Weight of a section's title. */\n --_ui-toc-section-weight: var(--ui-toc-section-weight, bold);\n /* Weight of the entry in view (docs.css `.following.menu .menu .active.item`). */\n --_ui-toc-current-weight: var(--ui-toc-current-weight, bold);\n /* Width of the column left of the sections' links, where their fold chevrons sit. */\n --_ui-toc-gutter: var(--ui-toc-gutter, 1.25em);\n /* Colour of the fold chevrons and the expand all / collapse all toggle. */\n --_ui-toc-control-color: var(--ui-toc-control-color, var(--ui-text-muted));\n /* Colour of the fold chevrons and the toggle under the pointer. */\n --_ui-toc-control-hover-color: var(--ui-toc-control-hover-color, var(--ui-link));\n /* The toggle's background under the pointer. */\n --_ui-toc-control-hover-background: var(--ui-toc-control-hover-background, var(--ui-primary-background));\n\n display: block;\n }\n}\n\n@layer ui.components.toc.content {\n /* ## The head: the title, the toggle at its right */\n .head {\n display: flex;\n align-items: center;\n gap: 0.5em;\n /* the toggle's height, with or without it: a page with no folds keeps the same row (epic `notebook` P9) */\n min-height: 1.75em;\n /* the gap the header kept below itself, before it shared its row */\n margin-block-end: var(--ui-font-size);\n }\n /*\n * a page's own buttons, after the toggle, at the row's right end: the row's own items (no box of the slot's), so\n * an empty slot leaves the toggle where it was\n */\n slot[name=\"tools\"] {\n display: contents;\n }\n ::slotted([slot=\"tools\"]) {\n order: 2;\n }\n /*\n * no toggle (nothing folds): its room kept, so the page's buttons stay where they are on a page with one\n * (epic `notebook` P9: the Hide icon jumped left between a notebook's tabs)\n */\n .head:not(:has(.toggle-all))::after {\n content: \"\";\n order: 1;\n flex: none;\n width: 1.75em;\n margin-inline-start: auto;\n }\n [part~=\"header\"] {\n --ui-header-margin-top: 0;\n --ui-header-margin-bottom: 0;\n }\n\n /* ## Buttons: the fold chevrons and the toggle, muted, the link's colour on hover (the epic pages' look) */\n .fold,\n .toggle-all {\n display: inline-grid;\n flex: none;\n place-items: center;\n box-sizing: border-box;\n padding: 0;\n border: none;\n background: none;\n color: var(--_ui-toc-control-color);\n font: inherit;\n cursor: pointer;\n }\n .fold:hover,\n .toggle-all:hover {\n color: var(--_ui-toc-control-hover-color);\n }\n .fold:focus-visible,\n .toggle-all:focus-visible {\n outline: 2px solid var(--ui-focus-color, var(--ui-link));\n outline-offset: 1px;\n }\n .chevron,\n .chevrons {\n display: block;\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n\n /* The toggle: a square, a soft background on hover. */\n .toggle-all {\n margin-inline-start: auto;\n /* centred on the row, as the title's capitals are: its chevrons sit high in their box already (measured) */\n width: 1.75em;\n height: 1.75em;\n border-radius: 0.4286em;\n }\n .toggle-all:hover {\n background: var(--_ui-toc-control-hover-background);\n }\n .chevrons {\n width: 1em;\n height: 1em;\n stroke-width: 1.8;\n }\n\n /* ## A section's row: its link past the gutter, its chevron in it, centred on the link's line */\n .section-row {\n position: relative;\n padding-inline-start: var(--_ui-toc-gutter);\n }\n .fold {\n position: absolute;\n inset-block: 0;\n inset-inline-start: 0;\n width: var(--_ui-toc-gutter);\n border-radius: 0.25em;\n }\n .chevron {\n width: 0.8571em;\n height: 0.8571em;\n stroke-width: 2;\n /* centred on the heading's capitals, not its line box */\n translate: 0 -0.1em;\n transition: rotate var(--ui-duration-fast) var(--ui-ease);\n }\n .fold[aria-expanded=\"true\"] .chevron {\n rotate: 90deg;\n }\n [part~=\"menu\"] {\n --ui-menu-margin: 0;\n }\n /* weights go on the item's own box: its text is drawn in its shadow root */\n .section::part(item) {\n font-weight: var(--_ui-toc-section-weight);\n }\n /* The entries' holder: no gap of its own; its menu indents under the title (a section's, past the gutter). */\n .entries {\n padding-inline-start: var(--_ui-toc-indent);\n }\n [part~=\"menu\"] > .entries {\n padding-inline-start: calc(var(--_ui-toc-gutter) + var(--_ui-toc-indent));\n }\n [part~=\"entries\"] {\n --ui-menu-margin: 0;\n }\n}\n\n@layer ui.components.toc.states {\n [part~=\"entry\"]:state(selected)::part(item) {\n font-weight: var(--_ui-toc-current-weight);\n }\n}\n","import { For, Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport type { UIMenuAttributes } from \"spell/ui/jsx\"\nimport { tocVocabulary } from \"./UIToc.en\"\nimport { HashLanding } from \"./HashLanding\"\nimport { TocIndex } from \"./TocIndex\"\nimport { TocPreferences } from \"./TocPreferences\"\nimport {\n DEFAULT_SIZE,\n type TocVocabulary,\n type FollowedContent,\n type TocAllFolds,\n type TocEntry,\n type TocFolds,\n type TocSection\n} from \"./UIToc.types\"\n\nimport tocCSS from \"./UIToc.css?inline\"\n\n/****************\n * ### `UIToc`\n * The component behind `<ui-toc>`, a page's table of contents: Fomantic's docs \"On this page\" menu\n * (`ui vertical following fluid accordion text menu`, in the right rail).\n * - The docs site's `<ui-toc>` until epic `ui-gaps` P14 made it a component: any page may have one.\n *\n * - Its shadow DOM:\n * `<div class=\"ui [size] toc\" part=\"toc\">` holding a `<div part=\"head\">` row (an optional `<ui-header part=\"header\">`,\n * the expand all / collapse all `<button part=\"toggle-all\">`, then the `tools` slot: a page's own buttons)\n * and ONE `<ui-menu direction=\"vertical\" appearance=\"text\" fluid part=\"menu\">` (the landmark) of section links.\n * - Each section is a `<div part=\"section-row\">`: its fold `<button part=\"fold\">` (when it has entries), its link.\n * - Under an open section, an item holds a `<ui-menu part=\"entries\">` of its entries' links.\n * - Folds (Owen, 2026-10-25, r31: \"Make these TOCs expandable with a expandall/collapseall icon in the header\"):\n * - a section the viewer folded or opened by hand stays so (`handFolds`, kept per page)\n * - else what the header's toggle last did, on ANY page (`allFolds`, one for this browser)\n * - else `expanded`, else open while it's in view (P38's J128)\n * - kept through `TocPreferences`, read again on every connect: a page move makes a new toc\n * - It lists the FOLLOWED content (`for`; of a `<ui-tabs>`, its shown pane) by `TocIndex.scan()`:\n * - level 2 headings and top-level `<ui-section>`s are sections;\n * examples with a `heading`, and level 3 headings, are their entries\n * - what a `<ui-section>` nests (sections, examples, headings) are ITS entries, as deep as it goes,\n * each level opening on the way to the entry in view\n * - light DOM only, but for the shadow roots another family names (`TocIndex.addShadowHost()`):\n * the docs site's `<ui-docs-api only>` marks its rows and tag headers (`TocIndex.shadowEntries()`),\n * so every attribute, event ... is listed under its section\n * - It follows the scroll: the entry whose top passed the reading line (`TocIndex.current()`) is `selected`,\n * and its section opens; `ui-scrolled-to { value }` when that changes.\n * - The window's scroll, or, with `scroller`, the scroll of the box that id names: content scrolling in a pane\n * of its own (spell-app's notebook page), its reading line from that box's top.\n * - Links are plain `#id` links: the browser scrolls (below the document's `scroll-padding-top`).\n * - As the page opens and on `hashchange`, it lands on the hash through `HashLanding`: a target in a HIDDEN pane\n * of the tabs shows that pane first (`<ui-tabs history>` ignores hashes that aren't pane values), its folds open,\n * then it scrolls there, and once more as the page settles.\n * - Not on a page that lands its hashes itself (the site's sections, the epic pages): one landing, not two.\n * - It scans again when the tabs show another pane (`ui-opened`),\n * when the followed content changes (a `MutationObserver`: children, `heading` / `label` / `level` / `id`),\n * and when a shadow host in it has drawn (`ui-drawn`): the observer can't see into its shadow root.\n * - It re-follows when that content resizes\n * (a `ResizeObserver`: components drawing late move the headings without any scroll).\n * - SIDE EFFECTS:\n * - gives each listed heading / example without an `id` one (a slug of its text), so its link works\n * - the viewer's folds, in `localStorage` (`TocPreferences`)\n * - while connected: `window` `scroll` / `resize` / `hashchange` listeners (`scroll` on `scroller` too, once it\n * exists), and the two observers.\n ****************/\nexport class UIToc extends E.UIComponent<TocVocabulary> {\n @E.proto static vocabulary = tocVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { toc: tocCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n ////////////////\n // ## The sections\n ////////////////\n\n /** The listed sections, from the last scan. */\n @E.state accessor sections: readonly TocSection[] = []\n\n /** Nothing listed: `:state(empty)`. */\n @E.cssState(\"empty\")\n get isEmpty(): boolean {\n return !this.sections.length\n }\n\n ////////////////\n // ## The entry in view\n ////////////////\n\n /** Id of the entry in view. */\n @E.state accessor idInView: string | undefined = undefined\n\n /** Ids from the top-level section down to the entry in view: the entries open on the way. */\n @E.derived\n get pathInView(): string[] {\n return TocIndex.pathTo(this.sections, this.idInView)\n }\n\n /** Id of the top-level section holding the entry in view. */\n get sectionIdInView(): string | undefined {\n return this.pathInView[0]\n }\n\n ////////////////\n // ## Folds\n ////////////////\n\n /** The viewer's own folds on this page, by section id (`TocPreferences.foldsFor()`). */\n @E.state accessor handFolds: TocFolds = {}\n\n /** What the header's toggle last did, on any page; `undefined` until it's pressed. */\n @E.state accessor allFolds: TocAllFolds | undefined = undefined\n\n /** Is `section`'s list open? The viewer's own fold, else the toggle's, else `expanded`, else while it's in view. */\n isSectionOpen(section: TocSection): boolean {\n const own = this.handFolds[section.id]\n if (own !== undefined) return own\n if (this.allFolds) return this.allFolds === \"expanded\"\n return !!this.expanded || this.pathInView.includes(section.id)\n }\n\n /** Does anything fold? A section with entries: then the header shows the toggle. */\n get hasFolds(): boolean {\n return this.sections.some((section) => section.entries.length)\n }\n\n /** Is every section with entries open? The toggle then folds them all. */\n get isAllOpen(): boolean {\n return this.sections.every((section) => !section.entries.length || this.isSectionOpen(section))\n }\n\n /** Nested entries open all the way down: the toggle's expand all, else `expanded`. */\n private get isOpenAllTheWay(): boolean {\n return this.allFolds ? this.allFolds === \"expanded\" : !!this.expanded\n }\n\n /** A section's chevron: fold it if open, open it if folded; kept for this page. */\n @E.untracked\n toggleSection(section: TocSection): void {\n this.handFolds = { ...this.handFolds, [section.id]: !this.isSectionOpen(section) }\n TocPreferences.setFoldsFor(this.path, this.handFolds)\n }\n\n /**\n * The header's toggle: every section open, or, once they all are, every one folded.\n * - Kept for EVERY page, until pressed the other way; this page's own folds are forgotten.\n */\n @E.untracked\n toggleAll(): void {\n this.allFolds = this.isAllOpen ? \"collapsed\" : \"expanded\"\n this.handFolds = {}\n TocPreferences.setAll(this.allFolds)\n TocPreferences.setFoldsFor(this.path, {})\n }\n\n /** The page's path: its folds are kept under it. */\n private get path(): string {\n return this.domElement.ownerDocument.defaultView?.location.pathname ?? \"\"\n }\n\n /** Read the kept folds: this page's, and the toggle's. */\n private loadFolds(): void {\n this.handFolds = TocPreferences.foldsFor(this.path)\n this.allFolds = TocPreferences.all()\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"toc\")}>\n <Show when={this.heading || this.hasFolds}>\n <div class={HEAD} part={this.partForName(\"head\")}>\n <Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>\n <Show when={this.hasFolds}>{this.toggleAllButton()}</Show>\n <slot name=\"tools\" />\n </div>\n </Show>\n <ui-menu\n part={this.partForName(\"menu\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n aria-label={this.translationForKey(\"label\")}\n >\n <For each={this.sections}>{(section) => this.section(section)}</For>\n </ui-menu>\n </div>\n )\n }\n\n /** One section's row (its chevron, its link), and its entries while it's open. */\n private section(section: TocSection): JSX.Element {\n const isOpen = () => !!section.entries.length && this.isSectionOpen(section)\n return (\n <>\n <div class={SECTION_ROW} part={this.partForName(\"section-row\")}>\n <Show when={section.entries.length}>{this.foldButton(section)}</Show>\n <ui-item\n part={this.partForName(\"section\")}\n class={SECTION}\n link={`#${section.id}`}\n selected={this.sectionIdInView === section.id ? \"\" : undefined}\n >\n {section.text}\n </ui-item>\n </div>\n {this.entries(section, isOpen)}\n </>\n )\n }\n\n /**\n * A section's fold chevron, left of its link: a click folds or opens its entries (`toggleSection()`).\n * - Named by the section's words; its `aria-expanded` and tooltip as the fold stands.\n * - Drawn here, not from an icon pack: on screen in the first frame, the epic pages' chevron.\n */\n private foldButton(section: TocSection): JSX.Element {\n const isOpen = () => this.isSectionOpen(section)\n const tip = () => this.translationForKey(isOpen() ? \"foldSection\" : \"openSection\", { section: section.text })\n return (\n <button\n type=\"button\"\n class={FOLD}\n part={this.partForName(\"fold\")}\n aria-label={section.text}\n aria-expanded={isOpen() ? \"true\" : \"false\"}\n title={tip()}\n onClick={() => this.toggleSection(section)}\n >\n <svg class={CHEVRON} viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d=\"M6 3.5 10.5 8 6 12.5\" />\n </svg>\n </button>\n )\n }\n\n /**\n * The header's ONE expand all / collapse all button (`toggleAll()`): the epic pages' double chevron,\n * pointing down while it would open everything, up once everything is open.\n */\n private toggleAllButton(): JSX.Element {\n const label = () => this.translationForKey(this.isAllOpen ? \"collapseAll\" : \"expandAll\")\n return (\n <button\n type=\"button\"\n class={TOGGLE_ALL}\n part={this.partForName(\"toggle-all\")}\n aria-label={label()}\n title={label()}\n aria-pressed={this.isAllOpen ? \"true\" : \"false\"}\n onClick={() => this.toggleAll()}\n >\n <svg class={CHEVRONS} viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d={this.isAllOpen ? COLLAPSE_ALL_PATH : EXPAND_ALL_PATH} />\n </svg>\n </button>\n )\n }\n\n /**\n * `parent`'s entries, while it's open (`isOpen`: a section's own fold; an entry's, `isOpenAllTheWay`, or on the\n * way to the entry in view): a menu of their links, each followed by its own entries the same way\n * (nested `<ui-section>`s).\n */\n private entries(parent: TocEntry, isFoldOpen?: () => boolean): JSX.Element {\n const isOpen = () =>\n !!parent.entries.length &&\n (isFoldOpen ? isFoldOpen() : this.isOpenAllTheWay || this.pathInView.includes(parent.id))\n return (\n <Show when={isOpen()}>\n <ui-item class={ENTRIES} padding=\"none-y\">\n <ui-menu\n part={this.partForName(\"entries\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n >\n <For each={parent.entries}>\n {(entry) => (\n <>\n <ui-item\n part={this.partForName(\"entry\")}\n link={`#${entry.id}`}\n selected={this.idInView === entry.id ? \"\" : undefined}\n >\n {entry.text}\n </ui-item>\n {this.entries(entry)}\n </>\n )}\n </For>\n </ui-menu>\n </ui-item>\n </Show>\n )\n }\n\n /** `size`, else the default (an empty or unknown `size` too). */\n private get menuSize(): UIMenuAttributes[\"size\"] {\n return this.size || DEFAULT_SIZE\n }\n\n ////////////////\n // ## Following the page\n ////////////////\n\n /** The next frame's scan or follow (`onFrame()`), once however often asked. */\n private readonly frame = new E.Queued({ when: E.beforeNextPaint, run: () => this.onFrame() })\n\n /** What the queued frame does: a rescan wins over a follow. */\n private queuedUpdate: TocUpdate | undefined\n\n /**\n * While connected, follow the page: the first scan, the hash, listeners and the observers; returns their cleanup.\n * - SIDE EFFECT: page listeners and the observers.\n */\n @E.whileConnected\n protected watch(): () => void {\n const document = this.domElement.ownerDocument\n const view = document.defaultView!\n // oxlint-disable-next-line spell-ui/no-mutation-observer -- watches the FOLLOWED content, another element\n const observer = new MutationObserver(() => this.schedule(\"rescan\"))\n // components drawing (or a pane switching) move the headings without a scroll\n const resized = new ResizeObserver(() => this.schedule(\"follow\"))\n const onScroll = () => this.schedule(\"follow\")\n const onShow = () => this.schedule(\"rescan\")\n const onDrawn = (event: Event) => {\n const hosts = TocIndex.shadowHosts\n if (hosts && (event.target as Element).matches?.(hosts)) this.schedule(\"rescan\")\n }\n const onHash = () => this.reveal()\n this.loadFolds()\n let followed: FollowedContent | undefined\n let scrolling: Element | undefined\n const start = () => {\n followed = this.observe({ observer, resized, onShow, onDrawn })\n scrolling = this.scrollerElement()\n scrolling?.addEventListener(\"scroll\", onScroll, { passive: true })\n }\n view.addEventListener(\"scroll\", onScroll, { passive: true })\n view.addEventListener(\"resize\", onScroll, { passive: true })\n view.addEventListener(\"hashchange\", onHash)\n // the toc may come before what it follows: look again once the page is parsed\n if (document.readyState === \"loading\") document.addEventListener(\"DOMContentLoaded\", start, { once: true })\n else E.afterSolidUpdate(start)\n return () => {\n observer.disconnect()\n resized.disconnect()\n followed?.tabs?.removeEventListener(UI_SHOW, onShow)\n followed?.root.removeEventListener(UI_DRAWN, onDrawn)\n scrolling?.removeEventListener(\"scroll\", onScroll)\n document.removeEventListener(\"DOMContentLoaded\", start)\n view.removeEventListener(\"scroll\", onScroll)\n view.removeEventListener(\"resize\", onScroll)\n view.removeEventListener(\"hashchange\", onHash)\n this.frame.cancel()\n this.queuedUpdate = undefined\n }\n }\n\n /**\n * Follow what `for` names, once it exists: observe it, hear its tabs show a pane, scan it, land on the hash.\n * - Returns what it follows (`watch()` undoes the tabs' listener), or `undefined` while it doesn't exist.\n */\n private observe({ observer, resized, onShow, onDrawn }: Observers): FollowedContent | undefined {\n const followed = this.followedContent()\n if (!followed) return undefined\n observer.observe(followed.root, {\n subtree: true,\n childList: true,\n attributes: true,\n attributeFilter: OBSERVED_ATTRIBUTES\n })\n resized.observe(followed.root)\n followed.tabs?.addEventListener(UI_SHOW, onShow)\n followed.root.addEventListener(UI_DRAWN, onDrawn)\n this.rescan()\n this.reveal()\n return followed\n }\n\n /** Do `update` on the next frame, once: a rescan queued meanwhile wins over a follow. */\n private schedule(update: TocUpdate): void {\n if (update === \"rescan\") this.queuedUpdate = update\n else this.queuedUpdate ??= update\n this.frame.ask()\n }\n\n /** The queued frame: do what's queued. */\n private onFrame(): void {\n const update = this.queuedUpdate\n this.queuedUpdate = undefined\n if (update === \"rescan\") this.rescan()\n else this.followScroll()\n }\n\n /** Scan the followed content again, then follow the scroll. */\n private rescan(): void {\n const followed = this.followedContent()\n const root = followed?.tabs ? TocIndex.shownPane(followed.tabs) : followed?.root\n const sections = root ? TocIndex.scan(root, UIToc.reservedIdsFor(followed?.tabs)) : []\n this.sections = sections\n this.send(\"ui-drawn\", { ids: TocIndex.flatten(sections).map((entry) => entry.id) })\n this.followScroll(sections)\n }\n\n /** Mark the entry in view; `ui-scrolled-to` when it moved. */\n @E.untracked\n private followScroll(sections = this.sections): void {\n const id = TocIndex.current(sections, this.domElement.ownerDocument, this.scrollerElement())\n if (id === this.idInView) return\n this.idInView = id\n if (id) this.send(\"ui-scrolled-to\", { value: id })\n }\n\n /**\n * Land on what `location.hash` names (`HashLanding`): its pane shown, its folds opened, below the stuck titles;\n * once the page is ready, and once more as it settles.\n * - Not on a page that lands its hashes itself (the site, the epic pages): `landOnHash()` leaves it to the page.\n */\n private reveal(): void {\n const document = this.domElement.ownerDocument\n const hash = document.defaultView!.location.hash\n if (hash) void HashLanding.forDocument(document).landOnHash(hash)\n }\n\n /** What `for` names (else the page's `main`), and its tabs; `undefined` while it doesn't exist. */\n private followedContent(): FollowedContent | undefined {\n return TocIndex.followed(this.domElement.ownerDocument, this.for || undefined)\n }\n\n /** The box `scroller` names, whose scroll it follows; `undefined` for the window (or while it doesn't exist). */\n private scrollerElement(): Element | undefined {\n return (this.scroller && this.domElement.ownerDocument.getElementById(this.scroller)) || undefined\n }\n\n /** Ids a new heading id must not take: the followed tabs' pane values (the URL hash names those too). */\n private static reservedIdsFor(tabs: Element | undefined): ReadonlySet<string> {\n if (!tabs) return new Set()\n return new Set([...tabs.children].map((pane, index) => pane.getAttribute(\"value\") ?? String(index)))\n }\n}\n\n/** The vocabulary getters, typed (`UIComponent`'s doc). */\nexport interface UIToc extends E.AttributeValues<TocVocabulary> {}\n\n/** What a scheduled frame does: scan the followed content again, or just re-follow the scroll. */\ntype TocUpdate = \"rescan\" | \"follow\"\n\n/** What `observe()` hooks the followed content up to: `watch()`'s observers and tabs listener. */\ntype Observers = {\n /** rescans on changes to the content */\n observer: MutationObserver\n /** re-follows when the content resizes */\n resized: ResizeObserver\n /** rescans when the tabs show another pane */\n onShow: () => void\n /** rescans when a shadow host (`TocIndex.addShadowHost()`) has drawn its entries */\n onDrawn: (event: Event) => void\n}\n\n/** The attributes whose changes rescan: an example's or a section's title, a heading's level, an id. */\nconst OBSERVED_ATTRIBUTES = [\"heading\", \"label\", \"level\", \"id\"]\n\n/** `<ui-tabs>`' event as it shows another pane. */\nconst UI_SHOW = \"ui-opened\"\n\n/** An element's event once it has drawn: a shadow host's entries are in. */\nconst UI_DRAWN = \"ui-drawn\"\n\n/** Class word of a section's link item. */\nconst SECTION = \"section\"\n\n/** Class word of the item holding a section's entries. */\nconst ENTRIES = \"entries\"\n\n/** Class of the row above the links: the title and the toggle. */\nconst HEAD = \"head\"\n\n/** Class of a section's row: its fold button and its link. */\nconst SECTION_ROW = \"section-row\"\n\n/** Class of a section's fold button. */\nconst FOLD = \"fold\"\n\n/** Class of the fold chevron. */\nconst CHEVRON = \"chevron\"\n\n/** Class of the header's expand all / collapse all button. */\nconst TOGGLE_ALL = \"toggle-all\"\n\n/** Class of its double chevron. */\nconst CHEVRONS = \"chevrons\"\n\n/** The toggle's double chevron, pointing down: expand all. */\nconst EXPAND_ALL_PATH = \"M4 3.5 8 7.5 12 3.5M4 7.5 8 11.5 12 7.5\"\n\n/** ... pointing up: collapse all. */\nconst COLLAPSE_ALL_PATH = \"M4 8.5 8 4.5 12 8.5M4 12.5 8 8.5 12 12.5\"\n","/**\n * The table of contents family: defines `<ui-toc>` and exports its component, `UIToc`,\n * and its plain-DOM helpers: the page's sections and the one in view (`TocIndex`, on `PageOutline`),\n * landing on a link's target (`HashLanding`).\n * - The docs site's `<ui-toc>` until epic `ui-gaps` P14 made it a component:\n * a lib entry, in the component list, loaded by any `<ui-root>`.\n * - SIDE EFFECT: importing it defines the tag, and the widgets its shadow DOM is built of:\n * `<ui-menu>` + `<ui-item>` (`ui-menu`, `ui-item`), `<ui-header>` (`ui-parts`).\n * A `<ui-root>` only loads what's in the page's light DOM, so a family that is built of other widgets\n * imports them itself.\n * - Code that only reads a page or lands a link (the docs site's sections and search, the epic pages' runtime,\n * the site's node scripts) imports the helpers by their files (`spell/ui/components/ui-toc/TocIndex`,\n * `.../HashLanding`, `.../PageOutline`): this barrel would define the tag too.\n */\n\nimport { UIToc } from \"./UIToc\"\nimport { TocIndex } from \"./TocIndex\"\nimport { HashLanding } from \"./HashLanding\"\nimport { PageOutline } from \"./PageOutline\"\n\nimport \"spell/ui/components/ui-menu\"\nimport \"spell/ui/components/ui-item\"\nimport \"spell/ui/components/ui-parts\"\n\nUIToc.define()\n\nexport { UIToc, TocIndex, HashLanding, PageOutline }\nexport type { OutlineSection, TocEntry, TocSection } from \"./UIToc.types\"\n"],"mappings":";;;;;;;;;AAgBA,IAAauE,KAAgB;CAC3B,KAAK;CACL,MAAM;CACN,QAAQ,CAAC,cAAc,eAAe;CACtC,KAAK;EAAC;EAAqB;EAAgB;EAAc;EAAa;EAAO;CAAgB;CAC7F,UAAU;CACV,MAAM;CACN,aACE;CAGF,YAAY;EACV;GACE,MAAM;GACN,MAAM;GACN,UAAU;GACV,aACE;EAEJ;EACA;GACE,MAAM;GACN,MAAM;GACN,aACE;EAEJ;EACA;GACE,MAAM;GACN,UAAU,CAAC,QAAQ;GACnB,MAAM;GACN,aAAa;EACf;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I,GAAA,IAFJK,GAE0B;CACnC,aAAa,EAAE,KAAKjJ,GAAO;CAC3B,gBAAgB;AAClB,CAAA,CAAA,GAHeO,EAAAqI,GAAA,IAFJK,CAAA;AAAN,IAAM0E,KAAN1E,GAoZDwE,KAAsB;CAAC;CAAW;CAAS;CAAS;AAAI,GAGxDF,IAAU,aAGVC,KAAW,YAGXlC,KAAU,WAGVsB,KAAU,WAGVpC,KAAO,QAGPa,KAAc,eAGdO,KAAO,QAGPC,KAAU,WAGVK,KAAa,cAGbC,KAAW,YAGXE,KAAkB,2CAGlBD,KAAoB;;;eCle1BuB,GAAM,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-toc.js","names":["SECTION_TAG","<Show when={this.heading || this.hasFolds}>\n <div class={HEAD} part={this.partForName(\"head\")}>\n <Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>\n <Show when={this.hasFolds}>{this.toggleAllButton()}</Show>\n <slot name=\"tools\" />\n </div>\n </Show>","this","<Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>","<ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>","<div class={HEAD} part={this.partForName(\"head\")}>\n <Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>\n <Show when={this.hasFolds}>{this.toggleAllButton()}</Show>\n <slot name=\"tools\" />\n </div>","<Show when={this.hasFolds}>{this.toggleAllButton()}</Show>","part={this.partForName(\"head\")}","<div class={this.rootClass} part={this.partForName(\"toc\")}>\n <Show when={this.heading || this.hasFolds}>\n <div class={HEAD} part={this.partForName(\"head\")}>\n <Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>\n <Show when={this.hasFolds}>{this.toggleAllButton()}</Show>\n <slot name=\"tools\" />\n </div>\n </Show>\n <ui-menu\n part={this.partForName(\"menu\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n aria-label={this.translationForKey(\"label\")}\n >\n <For each={this.sections}>{(section) => this.section(section)}</For>\n </ui-menu>\n </div>","<For each={this.sections}>{(section) => this.section(section)}</For>","part={this.partForName(\"toc\")}","part={this.partForName(\"menu\")}","size={this.menuSize}","aria-label={this.translationForKey(\"label\")}","<Show when={section.entries.length}>{this.foldButton(section)}</Show>","<div class={SECTION_ROW} part={this.partForName(\"section-row\")}>\n <Show when={section.entries.length}>{this.foldButton(section)}</Show>\n <ui-item\n part={this.partForName(\"section\")}\n class={SECTION}\n link={`#${section.id}`}\n selected={this.sectionIdInView === section.id ? \"\" : void 0}\n >\n {section.text}\n </ui-item>\n </div>","part={this.partForName(\"section-row\")}","part={this.partForName(\"section\")}","class={SECTION}","link={`#${section.id}`}","selected={this.sectionIdInView === section.id ? \"\" : void 0}","{this.entries(section, isOpen)}","part={this.partForName(\"fold\")}","aria-label={section.text}","aria-expanded={isOpen() ? \"true\" : \"false\"}","title={tip()}","class={CHEVRON}","<button\n type=\"button\"\n class={FOLD}\n part={this.partForName(\"fold\")}\n aria-label={section.text}\n aria-expanded={isOpen() ? \"true\" : \"false\"}\n title={tip()}\n onClick={() => this.toggleSection(section)}\n >\n <svg class={CHEVRON} viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d=\"M6 3.5 10.5 8 6 12.5\" />\n </svg>\n </button>","part={this.partForName(\"toggle-all\")}","aria-label={label()}","title={label()}","aria-pressed={this.isAllOpen ? \"true\" : \"false\"}","class={CHEVRONS}","d={this.isAllOpen ? COLLAPSE_ALL_PATH : EXPAND_ALL_PATH}","<button\n type=\"button\"\n class={TOGGLE_ALL}\n part={this.partForName(\"toggle-all\")}\n aria-label={label()}\n title={label()}\n aria-pressed={this.isAllOpen ? \"true\" : \"false\"}\n onClick={() => this.toggleAll()}\n >\n <svg class={CHEVRONS} viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d={this.isAllOpen ? COLLAPSE_ALL_PATH : EXPAND_ALL_PATH} />\n </svg>\n </button>","<Show when={isOpen()}>\n <ui-item class={ENTRIES} padding=\"none-y\">\n <ui-menu\n part={this.partForName(\"entries\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n >\n <For each={parent.entries}>\n {(entry) => <>\n <ui-item\n part={this.partForName(\"entry\")}\n link={`#${entry.id}`}\n selected={this.idInView === entry.id ? \"\" : void 0}\n >\n {entry.text}\n </ui-item>\n {this.entries(entry)}\n </>}\n </For>\n </ui-menu>\n </ui-item>\n </Show>","<For each={parent.entries}>\n {(entry) => <>\n <ui-item\n part={this.partForName(\"entry\")}\n link={`#${entry.id}`}\n selected={this.idInView === entry.id ? \"\" : void 0}\n >\n {entry.text}\n </ui-item>\n {this.entries(entry)}\n </>}\n </For>","link={`#${entry.id}`}","selected={this.idInView === entry.id ? \"\" : void 0}","{this.entries(entry)}","part={this.partForName(\"entries\")}","<ui-item class={ENTRIES} padding=\"none-y\">\n <ui-menu\n part={this.partForName(\"entries\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n >\n <For each={parent.entries}>\n {(entry) => <>\n <ui-item\n part={this.partForName(\"entry\")}\n link={`#${entry.id}`}\n selected={this.idInView === entry.id ? \"\" : void 0}\n >\n {entry.text}\n </ui-item>\n {this.entries(entry)}\n </>}\n </For>\n </ui-menu>\n </ui-item>","E.UIComponent","E.proto","E.protoMerged","E.state","E.cssState","E.derived","E.untracked","E.whileConnected","E.Queued","E.beforeNextPaint","_$getOwner","_$readShallow","_$setAttribute","__name","tocCSS","__decoratorStart","__publicField","__name$1","TocMarks","__decorateElement","__decoratorMetadata","__runInitializers","SectionTitle","__privateAdd","PrefStore","getOwner$1","tocVocabulary","PageOutline","found","root","SECTIONS","element","index","at","tabs","pane","PANES","value","VALUE","LABEL","parent","SECTION_TAG$1","copy","inner","NOT_TITLE","NOT_PAGE","titles","tab","sections","label","around","SECTION_WITH_ID","text","HEADING_SELECTOR","SECTION_TAG","TABS_TAG","READING_LINE","TOC_ALL_FOLDS","TOC_PREFS","TocIndex","forId","document","panes","target","ofSection","hosts","heading","entry","reserved","last","marked","host","entries","group","own","id","tag","SHADOW_HOSTS","light","below","view","all","box","scroller","top","height","line","reached","targets","isShown","lineFor","section","hash","then","event","beforeNextPaint","slug","base","n","HEADING","demo","child","name","HashLanding","landing","LANDINGS","rules","options","hasOpened","frame","SHOW_FRAMES","nextFrame","scroll","after","glides","REDUCED_MOTION","type","VIEWER_INPUT","resolve","REVEAL_FRAMES","SETTLE_SECONDS","first","opensTarget","OPEN","range","LANDINGS_KEY","TocPreferences","each","path","open","folds","UIToc_default","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_tmpl$7","_tmpl$8","_followScroll_dec","_watch_dec","_toggleAll_dec","_toggleSection_dec","_allFolds_dec","_handFolds_dec","_pathInView_dec","_idInView_dec","_isEmpty_dec","_sections_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_sections","_idInView","_handFolds","_allFolds","_UIToc","UIComponent","proto","protoMerged","state","cssState","derived","untracked","whileConnected","Queued","_self$","_el$","_el$6","insert","createComponent","Show","_el$2","_el$4","_el$5","_el$3","effect","_v$","readShallow","HEAD","className","_p$","t","setAttribute","For","a","o","i","isOpen","_self$2","_el$7","_el$8","SECTION_ROW","SECTION","memo","tip","_self$3","_el$9","_el$10","FOLD","CHEVRON","_self$4","_el$11","_el$12","_el$13","TOGGLE_ALL","CHEVRONS","COLLAPSE_ALL_PATH","EXPAND_ALL_PATH","s","isFoldOpen","_self$5","_el$14","_el$15","_el$16","ENTRIES","observer","resized","onScroll","onShow","onDrawn","onHash","followed","scrolling","start","afterSolidUpdate","UI_SHOW","UI_DRAWN","OBSERVED_ATTRIBUTES","update","UIToc","delegateEvents"],"sources":["../src/components/ui-toc/UIToc.en.ts","../src/components/ui-toc/PageOutline.ts","../src/components/ui-toc/UIToc.types.ts","../src/components/ui-toc/TocIndex.ts","../src/components/ui-toc/HashLanding.ts","../src/components/ui-toc/TocPreferences.ts","../src/components/ui-toc/UIToc.tsx","../src/components/ui-toc/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-toc>`: every name the tag uses.\n * - Its tag, attributes, events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The docs site's `<ui-docs-toc>` until epic `ui-gaps` P14 made it a component (from epic `epic-engine` P14):\n * the old tag is renamed by `spell ui rename` (`OldNames`), and its old `header` is `heading`.\n * - Class words: `size` (`ui small toc`); what's current is the items' `selected`, not a class of its own.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `tocVocabulary`\n * The names of `<ui-toc>`, Fomantic's docs \"On this page\" rail menu:\n * the page's sections and their examples as links, following the scroll.\n ****************/\nexport const tocVocabulary = {\n tag: \"ui-toc\",\n icon: \"list ol\",\n topics: [\"navigation\", \"documentation\"],\n aka: [\"table of contents\", \"on this page\", \"page index\", \"scrollspy\", \"toc\", \"following menu\"],\n skeleton: \"short line, 6 line paragraph\",\n noun: \"toc\",\n partOfSpeech: \"structure\",\n description:\n \"A table of contents lists the page's sections and examples as links, opens the one in view and follows the \" +\n \"scroll. Each section folds and opens by its chevron, and one button in its header opens or folds them all; \" +\n \"the viewer's folds are kept.\",\n attributes: [\n {\n name: \"for\",\n kind: \"string\",\n property: \"htmlFor\",\n description:\n \"Id of the element whose headings to list. A `<ui-tabs>`: its SHOWN pane, followed as the tabs switch. \" +\n \"Default: the page's `<main>`, else `<body>`.\"\n },\n {\n name: \"scroller\",\n kind: \"string\",\n description:\n \"Id of the element whose scroll it follows, when the content scrolls inside a box of its own (a pane) rather \" +\n \"than the window. Its reading line is then that box's top. Default: the window.\"\n },\n {\n name: \"heading\",\n replaces: [\"header\"],\n kind: \"string\",\n description: \"Title above the links, e.g. the page's name (Fomantic's `Button`). Its old name was `header`.\"\n },\n { name: \"size\", kind: \"size\", default: \"small\", description: \"Text size, `mini` ... `massive`.\" },\n {\n name: \"expanded\",\n kind: \"keyOnly\",\n description:\n \"Show every section's entries, not only the current section's (Fomantic opens the one in view). \" +\n \"The viewer's own folds, and the header's toggle, win.\"\n }\n ],\n events: [\n {\n name: \"ui-scrolled-to\",\n detail: \"{ value: string }\",\n description: \"The entry in view changed (scroll, a link, the tabs); `value` is its target's id.\"\n },\n {\n name: \"ui-drawn\",\n detail: \"{ ids: string[] }\",\n description: \"The list was built (again): the ids of every entry, in page order.\"\n }\n ],\n slots: [\n {\n name: \"tools\",\n description:\n \"Buttons at the right end of the header's row, after the expand all / collapse all toggle \" +\n \"(a page's own, e.g. one hiding the contents). Shown with `heading`.\"\n }\n ],\n parts: [\n { name: \"toc\", description: 'The whole box (`<div class=\"ui toc\">`).' },\n {\n name: \"head\",\n description:\n \"The row above the links: `heading`'s title, the expand all / collapse all toggle, and the `tools` slot.\"\n },\n { name: \"header\", description: \"The `<ui-header>` with `heading`'s text.\" },\n {\n name: \"toggle-all\",\n description:\n \"The header's ONE button: opens every section, then folds them all. Kept for every page in this browser.\"\n },\n { name: \"menu\", description: \"The `<ui-menu vertical text>` of sections (a navigation landmark).\" },\n {\n name: \"section-row\",\n description: \"A section's row: its fold chevron (when it has entries) and its link.\"\n },\n {\n name: \"fold\",\n description: \"A section's fold `<button>`: a chevron, turned down while its entries show. Kept per page.\"\n },\n { name: \"section\", description: \"A section's link `<ui-item>` (a level 2 heading, a top-level `<ui-section>`).\" },\n {\n name: \"entries\",\n description:\n \"The `<ui-menu>` of a section's entries (examples, level 3 headings, nested `<ui-section>`s); nested again \" +\n \"under an entry with its own.\"\n },\n { name: \"entry\", description: \"One entry's link `<ui-item>`.\" }\n ],\n states: [{ name: \"empty\", description: \"Nothing to list (the followed content has no headings).\" }],\n texts: [\n { key: \"label\", text: \"On this page\", description: \"Accessible name of the links' landmark.\" },\n { key: \"foldSection\", text: \"Fold {section}\", description: \"A section's fold button, while it's open.\" },\n { key: \"openSection\", text: \"Open {section}\", description: \"A section's fold button, while it's folded.\" },\n { key: \"expandAll\", text: \"Expand all\", description: \"The header's toggle, while a section is folded.\" },\n { key: \"collapseAll\", text: \"Collapse all\", description: \"The header's toggle, while every section is open.\" }\n ]\n} as const satisfies E.ComponentVocabulary\n","import * as UIT from \"spell/ui/components/components.types\"\nimport type { OutlineSection } from \"./UIToc.types\"\n\n/****************\n * ### `PageOutline`\n * A page's sections, read the same way everywhere:\n * - LIVE from the page shown: what the docs site's search (`<ui-docs-search>`) finds \"On this page\"\n * - by `yarn site:data`, into the search file for every page\n * (`SiteSearchBuilder`, through `sections()`, on linkedom)\n * - the table of contents reads a page on top of it (`TocIndex.scan()`): the same titles, the same demo markup left\n * out (`titleOf()`, `demoAround()`)\n * - The docs search's until epic `ui-gaps` P14: it moved with `<ui-toc>`, so a component never imports the docs\n * widgets; the search imports it from here.\n *\n * What it reads:\n * - a section: a `<ui-section id>`, or a level 2-4 header with an id (`<ui-header level id>`, `<h2 id>` ...)\n * - so a page not nested into sections yet (the overview) still lists its headings\n * - never one inside an example, a token playground's preview, a `<template>` or a `<script>`\n * - its title: the section's `label`, else its `slot=\"label\"` child's text\n * - a header's own text, without its sub header or icon\n * - its `parent`: the section around it\n * - a top-level one in a `<ui-tabs id=\"site-tabs\">` pane names its `tab`\n * - every tab's sections, the hidden panes' too: landing on one selects its tab (the site's router)\n * - Its links are `#id`: the page shown, whatever its URL.\n * - Plain DOM, no Solid, no globals (node's linkedom runs it too).\n * - NEVER imports a value from `spell/ui/core`, which node can't load.\n * - Cheap enough to read on every search.\n * - Static only: pure reads of the DOM it's given.\n * - It imports nothing of the search: the site's sticky sections and table of contents load it with the page, the\n * search only once it's used.\n ****************/\nexport class PageOutline {\n /**\n * `root`'s sections (titled ones only), in document order, and its tabs' labels by value.\n * - A section left out (no title) never breaks a `parent`: indexes are of the list returned.\n */\n static sections(root: Element): { sections: OutlineSection[]; tabs: Record<string, string> } {\n const found = [...root.querySelectorAll(SECTIONS)].filter(\n (element) => !PageOutline.demoAround(element) && PageOutline.titleOf(element)\n )\n const index = new Map(found.map((element, at) => [element, at]))\n const tabs: Record<string, string> = {}\n for (const pane of root.querySelectorAll(PANES)) {\n const value = pane.getAttribute(VALUE)!\n tabs[value] = pane.getAttribute(LABEL) ?? value\n }\n const sections = found.map((element): OutlineSection => {\n const parent = PageOutline.parentOf(element, index)\n const pane = parent === undefined ? element.closest(PANES) : undefined\n return {\n id: element.id,\n title: PageOutline.titleOf(element),\n ...(parent !== undefined && { parent }),\n ...(pane && { tab: pane.getAttribute(VALUE)! })\n }\n })\n return { sections, tabs }\n }\n\n /** A section's or header's title (see the class). */\n static titleOf(element: Element): string {\n if (element.localName === SECTION_TAG) {\n return PageOutline.clean(UIT.SectionTitle.textOf(element) ?? \"\")\n }\n const copy = element.cloneNode(true) as Element\n for (const inner of copy.querySelectorAll(NOT_TITLE)) inner.remove()\n return PageOutline.clean(copy.textContent ?? \"\")\n }\n\n /**\n * The demo markup `element` is part of, if any: an example's live markup, a token playground's preview, a\n * `<template>` or `<script>` around it (`NOT_PAGE`).\n */\n static demoAround(element: Element): Element | undefined {\n return element.parentElement?.closest(NOT_PAGE) ?? undefined\n }\n\n /**\n * Where a section sits: its tab's label, then the titles of the sections around it, outermost first (not its own).\n * - `sections` are a page's (`OutlineSection`s, the search file's or the live outline's), `at` the section's index.\n */\n static trail(\n sections: readonly { title: string; parent?: number; tab?: string }[],\n at: number,\n tabs?: Readonly<Record<string, string>>\n ): string[] {\n const titles: string[] = []\n let tab: string | undefined\n for (let index = sections[at]!.parent; index !== undefined; index = sections[index]!.parent) {\n titles.unshift(sections[index]!.title)\n tab = sections[index]!.tab ?? tab\n }\n tab = sections[at]!.parent === undefined ? sections[at]!.tab : tab\n const label = tab && tabs && Object.hasOwn(tabs, tab) ? tabs[tab] : undefined\n return label ? [label, ...titles] : titles\n }\n\n /** Index of the nearest listed section around `element`, if any. */\n private static parentOf(element: Element, index: ReadonlyMap<Element, number>): number | undefined {\n for (let around = element.parentElement?.closest(SECTION_WITH_ID); around;) {\n const at = index.get(around)\n if (at !== undefined) return at\n around = around.parentElement?.closest(SECTION_WITH_ID)\n }\n return undefined\n }\n\n /** `text` with its whitespace collapsed. */\n private static clean(text: string): string {\n return text.replace(/\\s+/g, \" \").trim()\n }\n}\n\n/** What counts as a section. */\nconst SECTIONS =\n \"ui-section[id], ui-header[id][level='2'], ui-header[id][level='3'], ui-header[id][level='4'], h2[id], h3[id], h4[id]\"\n\n/**\n * Never a page section: demo markup (an example, a Theming playground's live example).\n * - The docs site's token playground (`<ui-docs-tokens>`) named as a tag only: nothing of it is imported.\n */\nconst NOT_PAGE = \"ui-example, ui-docs-tokens, template, script\"\n\n/** A tab pane of the page. */\nconst PANES = \"ui-tabs#site-tabs > ui-tab[value]\"\n\n/** The section tag. */\nconst SECTION_TAG = \"ui-section\"\n\n/** A section that can be a parent: one with an id. */\nconst SECTION_WITH_ID = \"ui-section[id]\"\n\n/** What a header's title leaves out: its sub header, its icon, anything slotted. */\nconst NOT_TITLE = \"ui-header, ui-icon, [slot]\"\n\n/** A pane's value attribute: its tab's id. */\nconst VALUE = \"value\"\n\n/** A pane's label attribute: its tab's text. */\nconst LABEL = \"label\"\n","/**\n * The types and constants of the table of contents family:\n * what the component, its heading scan (`TocIndex`) and the page reader (`PageOutline`) share.\n * - Data only: nothing here runs.\n */\n\nimport type { tocVocabulary } from \"./UIToc.en\"\n\n/** `tocVocabulary`'s type. */\nexport type TocVocabulary = typeof tocVocabulary\n\n////////////////\n// ## Entries\n////////////////\n\n/** One link of the list: a section (level 2 heading, top-level `<ui-section>`) or an entry under it. */\nexport type TocEntry = {\n /** id of its target, set by `TocIndex` when the target had none */\n readonly id: string\n /** link text */\n readonly text: string\n /** the heading, section or example it links to */\n readonly target: Element\n /**\n * entries under it, in page order: a section's examples and level 3 headings (up to the next level 2 heading),\n * a `<ui-section>`'s nested sections, examples and headings; `[]` for none\n */\n readonly entries: readonly TocEntry[]\n}\n\n/** A top-level entry: a level 2 heading or a `<ui-section>` inside no other, with the entries under it. */\nexport type TocSection = TocEntry\n\n/** What a toc follows (`TocIndex.followed()`): the element `for` names (else the page's `main`), and its tabs. */\nexport type FollowedContent = {\n /** the element whose headings are listed */\n readonly root: Element\n /** `root` itself, when it's a `<ui-tabs>`: then only its shown pane is listed */\n readonly tabs?: Element\n}\n\n/**\n * One section of a page, as `PageOutline.sections()` reads it: where a link to it lands.\n * - The docs site's search file holds every page's (`SiteSearchPage.sections`).\n */\nexport type OutlineSection = {\n /** its id, the hash that lands on it, e.g. `examples-types-vertical-divider` */\n readonly id: string\n /** its title, e.g. `Vertical Divider` */\n readonly title: string\n /** index in the page's sections of the section around it */\n readonly parent?: number\n /** value of the tab it's in (the page's tabs), on a top-level section only */\n readonly tab?: string\n}\n\n/**\n * What becomes a SECTION: a level 2 page header, or a `<ui-section>` inside no other (inside one:\n * an entry of it, at any depth).\n * - Light DOM only: a widget's shadow headers are listed only when it marks them (`UIT.TocMarks.entry`).\n */\nexport const SECTION_SELECTOR = 'ui-header[level=\"2\"], h2, ui-section'\n\n/**\n * What becomes an ENTRY under the current section: an example with a header, or a level 3 page header.\n * Inside a `<ui-section>`, under that section.\n */\nexport const ENTRY_SELECTOR = 'ui-example[heading], ui-header[level=\"3\"], h3'\n\n/** Both, for one ordered query. */\nexport const HEADING_SELECTOR = `${SECTION_SELECTOR}, ${ENTRY_SELECTOR}`\n\n/** A tag whose shadow root a heading must not be inside: an example's own title is its `heading` attribute. */\nexport const EXAMPLE_TAG = \"ui-example\"\n\n/** A section that nests: its title is its `label` attribute or its `slot=\"label\"` child (`UIT.SectionTitle`). */\nexport const SECTION_TAG = \"ui-section\"\n\n/** The tab set a `for` may name: then the toc follows its shown pane. */\nexport const TABS_TAG = \"ui-tabs\"\n\n/** Share of the viewport, below the scroll padding, a heading must pass to be the one in view. */\nexport const READING_LINE = 0.2\n\n/** Default `size`. */\nexport const DEFAULT_SIZE = \"small\"\n\n////////////////\n// ## Folds\n////////////////\n\n/** What the header's toggle last did, on any page: every section open, or every section folded. */\nexport type TocAllFolds = (typeof TOC_ALL_FOLDS)[number]\n\n/** `TocAllFolds`' values. */\nexport const TOC_ALL_FOLDS = [\"expanded\", \"collapsed\"] as const\n\n/** The viewer's own folds on one page, by section id: `true` opened, `false` folded. */\nexport type TocFolds = Readonly<Record<string, boolean>>\n\n/**\n * Where a toc keeps its folds (`TocPreferences`): the `PrefStore` name, and its keys.\n * - Its name followed the tag (epic `ui-gaps` P14): folds kept under the docs widget's old name are read no more.\n * - `all`: the toggle's `TocAllFolds`, ONE for every page in this browser\n * - `folds`: + the page's path, its `TocFolds`\n */\nexport const TOC_PREFS = { store: \"spell-ui-toc\", all: \"all\", folds: \"folds:\" } as const\n","// `spell/ui/util` by name, never the `spell/ui/core` entry: node scripts load this file (see the class docs)\nimport { beforeNextPaint, slug } from \"spell/ui/util\"\nimport * as UIT from \"spell/ui/components/components.types\"\nimport { PageOutline } from \"./PageOutline\"\nimport {\n EXAMPLE_TAG,\n HEADING_SELECTOR,\n READING_LINE,\n SECTION_SELECTOR,\n SECTION_TAG,\n TABS_TAG,\n type FollowedContent,\n type TocEntry,\n type TocSection\n} from \"./UIToc.types\"\n\n/****************\n * ### `TocIndex`\n * The page side of `<ui-toc>`: which content it follows, the sections and entries in it, the one in view.\n * - Plain DOM, no Solid: node scripts load it by path (`scripts/site-sections.ts`, `src/tools/SiteCheck.ts`),\n * so it NEVER imports a value from `spell/ui/core`.\n * - Static only: pure reads (and id writes) of the DOM it's given.\n * - Entries form a tree: level 2 headings and top-level `<ui-section>`s,\n * then what's under each (examples, level 3 headings, nested sections), as deep as the sections nest.\n * - Read on top of `PageOutline`: its titles, and the demo markup it leaves out.\n * - Light DOM only, but for the shadow roots of the SHADOW HOSTS, the tags another family names\n * (`addShadowHost()`: the docs site's `<ui-docs-api>`):\n * their marked elements (`UIT.TocMarks.entry`) are entries of the section around the host,\n * a group's (`UIT.TocMarks.group`) nesting the ones after it.\n * - A list, not a tag of its own: a component never names the docs widgets (epic `ui-gaps` P14).\n * - SIDE EFFECT: `scan()` gives every listed heading / section / example without an `id` one\n * (a slug of its text, made unique in the document), so the links have targets and other pages can link to them.\n ****************/\nexport class TocIndex {\n /**\n * The element named by `forId` (else the page's `<main>`, else `<body>`), and the tab set when it is one.\n * - `undefined` while a named element doesn't exist yet (the toc may come first in the page).\n */\n static followed(document: Document, forId: string | undefined): FollowedContent | undefined {\n const root = forId ? document.getElementById(forId) : (document.querySelector(\"main\") ?? document.body)\n if (!root) return undefined\n return root.localName === TABS_TAG ? { root, tabs: root } : { root }\n }\n\n /** The pane of `tabs` on show: `:state(selected)`, else the first child with a box. */\n static shownPane(tabs: Element): Element | undefined {\n const panes = TocIndex.panes(tabs)\n return (\n panes.find((pane) => TocIndex.hasState(pane, \"selected\")) ?? panes.find((pane) => pane.getClientRects().length)\n )\n }\n\n /** The pane of `tabs` holding `target`, if any. */\n static paneOf(tabs: Element, target: Element): Element | undefined {\n return TocIndex.panes(tabs).find((pane) => pane.contains(target))\n }\n\n /** A pane's value, as `<ui-tabs value>` takes it: its `value`, else its index. */\n static paneValue(tabs: Element, pane: Element): string {\n return pane.getAttribute(\"value\") ?? String(TocIndex.panes(tabs).indexOf(pane))\n }\n\n /**\n * The sections of `root`, in page order:\n * - each level 2 heading with the examples / level 3 headings after it\n * - each `<ui-section>` with what's nested in it (sections, examples, headings), at any depth\n * - A level 2 heading inside a `<ui-section>` is an entry of that section, like the rest.\n * - Headings before the first section become sections with no entries.\n * - A shadow host (`addShadowHost()`): its shadow root's marked elements, as entries of the section around it\n * (`shadowEntries()`).\n * - Skipped: sections without a title, and headings and sections\n * inside an example's live markup (a header page's demos) or inside templates.\n * - `reserved`: ids a new id must not take (the tab values, which the URL hash also names).\n */\n static scan(root: Element, reserved: ReadonlySet<string> = new Set()): TocSection[] {\n const sections: TocEntry[] = []\n const ofSection = new Map<Element, TocEntry>()\n const hosts = TocIndex.shadowHosts\n for (const heading of root.querySelectorAll(hosts ? `${HEADING_SELECTOR}, ${hosts}` : HEADING_SELECTOR)) {\n if (TocIndex.insideExample(heading, root)) continue\n if (hosts && heading.matches(hosts)) {\n const parent = TocIndex.enclosing(heading, root, ofSection) ?? sections.at(-1)\n if (parent) (parent.entries as TocEntry[]).push(...TocIndex.shadowEntries(heading))\n continue\n }\n const text = TocIndex.text(heading)\n if (!text) continue\n const entry: TocEntry = { id: TocIndex.idOf(heading, text, reserved), text, target: heading, entries: [] }\n if (heading.localName === SECTION_TAG) ofSection.set(heading, entry)\n const parent = TocIndex.enclosing(heading, root, ofSection)\n const last = sections.at(-1)\n if (parent) (parent.entries as TocEntry[]).push(entry)\n else if (heading.matches(SECTION_SELECTOR) || !last) sections.push(entry)\n else (last.entries as TocEntry[]).push(entry)\n }\n return sections\n }\n\n /**\n * The entries `host`'s shadow root marks (`UIT.TocMarks.entry`, with an id), in order;\n * a group's (`UIT.TocMarks.group`) holding the ones after it, up to the next group.\n * - `[]` before the host has drawn: the toc scans again when it says it has (`ui-drawn`).\n */\n static shadowEntries(host: Element): TocEntry[] {\n const marked = host.shadowRoot?.querySelectorAll(`[${UIT.TocMarks.entry}]`) ?? []\n const entries: TocEntry[] = []\n let group: TocEntry | undefined\n for (const element of marked) {\n const text = element.getAttribute(UIT.TocMarks.entry)?.trim()\n if (!text || !element.id) continue\n const entry: TocEntry = { id: element.id, text, target: element, entries: [] }\n if (element.hasAttribute(UIT.TocMarks.group)) {\n group = entry\n entries.push(entry)\n } else if (group) (group.entries as TocEntry[]).push(entry)\n else entries.push(entry)\n }\n return entries\n }\n\n /** The element with `id`: in the page, else in a shadow host's shadow root (a row's anchor). */\n static elementById(document: Document, id: string): Element | undefined {\n const own = document.getElementById(id)\n if (own) return own\n const hosts = TocIndex.shadowHosts\n if (!hosts) return undefined\n for (const host of document.querySelectorAll(hosts)) {\n const found = host.shadowRoot?.getElementById(id)\n if (found) return found\n }\n return undefined\n }\n\n /**\n * Have the table of contents read `tag`'s shadow root too: its marked elements (`UIT.TocMarks`) are entries.\n * - Called by the family that draws them, as it loads (the docs site's `<ui-docs-api>`).\n * - SIDE EFFECT: page-wide, for every table of contents; once per tag.\n */\n static addShadowHost(tag: string): void {\n const hosts = TocIndex.hostTags()\n if (!hosts.includes(tag)) hosts.push(tag)\n }\n\n /** The shadow hosts as one selector (`ui-docs-api`); `undefined` while none is named. */\n static get shadowHosts(): string | undefined {\n const hosts = TocIndex.hostTags()\n return hosts.length ? hosts.join(\", \") : undefined\n }\n\n /** Forget the shadow hosts: for tests. */\n static reset(): void {\n TocIndex.hostTags().length = 0\n }\n\n /**\n * The tags `addShadowHost()` named, on `globalThis`: ONE list a page, though a bundle may hold a second copy of\n * this file (spell-epic's docs runtime imports it by its file, beside the families' own).\n */\n private static hostTags(): string[] {\n return ((globalThis as { [SHADOW_HOSTS]?: string[] })[SHADOW_HOSTS] ??= [])\n }\n\n /** The light-DOM element `element` is drawn in: its shadow root's host (at any depth), else itself. */\n static lightElementOf(element: Element): Element {\n let light = element\n for (let root = light.getRootNode(); \"host\" in root && root.host; root = light.getRootNode())\n light = root.host as Element\n return light\n }\n\n /** `entries` and everything under them, depth first: page order. */\n static flatten(entries: readonly TocEntry[]): TocEntry[] {\n return entries.flatMap((entry) => [entry, ...TocIndex.flatten(entry.entries)])\n }\n\n /** Ids from the top-level section down to the entry `id` (its own last); `[]` when it isn't listed. */\n static pathTo(entries: readonly TocEntry[], id: string | undefined): string[] {\n if (!id) return []\n for (const entry of entries) {\n if (entry.id === id) return [id]\n const below = TocIndex.pathTo(entry.entries, id)\n if (below.length) return [entry.id, ...below]\n }\n return []\n }\n\n /**\n * The id of the entry in view:\n * - the last one whose top has passed the reading line (the scroll padding plus a fifth of the visible height)\n * - the last one at the page's end\n * - the first one above everything\n * - Entries without a box (a hidden pane) or inside a folded `<ui-section>` are skipped.\n * - `scroller`: the box the content scrolls in (a pane), when it isn't the window;\n * its own top, scroll padding and height then make the line, and its end the page's end.\n */\n static current(sections: readonly TocSection[], document: Document, scroller?: Element): string | undefined {\n const view = document.defaultView\n if (!view) return undefined\n const all = TocIndex.flatten(sections).filter(\n (entry) => entry.target.getClientRects().length && !TocIndex.folded(TocIndex.lightElementOf(entry.target))\n )\n if (!all.length) return undefined\n const box = scroller ?? document.scrollingElement ?? document.documentElement\n const top = scroller ? scroller.getBoundingClientRect().top : 0\n const height = scroller ? scroller.clientHeight : view.innerHeight\n if (box.scrollTop > 0 && box.scrollTop + height >= box.scrollHeight - 2) return all.at(-1)!.id\n const padding = parseFloat(view.getComputedStyle(scroller ?? document.documentElement).scrollPaddingTop) || 0\n const line = top + padding + height * READING_LINE\n const reached = TocIndex.reached(\n all.map((entry) => entry.target),\n () => line\n )\n return (all.find((entry) => entry.target === reached) ?? all[0]!).id\n }\n\n /**\n * The last of `targets` (in page order) whose top has reached its line, px from the viewport's top (`lineFor()`);\n * `undefined` above the first.\n * - Skipped: a target without a box (a hidden pane, filtered out), or one `isShown()` says isn't shown\n * - The section being read: `current()` with the reading line; the epic pages with each target's landing line.\n */\n static reached<T extends Element>(\n targets: readonly T[],\n lineFor: (target: T) => number,\n isShown: (target: T) => boolean = () => true\n ): T | undefined {\n let reached: T | undefined\n for (const target of targets) {\n if (!target.getClientRects().length || !isShown(target)) continue\n if (target.getBoundingClientRect().top > lineFor(target)) break\n reached = target\n }\n return reached\n }\n\n /** The top-level section holding the entry `id`, at any depth (or being it). */\n static sectionOf(sections: readonly TocSection[], id: string | undefined): TocSection | undefined {\n const top = TocIndex.pathTo(sections, id)[0]\n return top === undefined ? undefined : sections.find((section) => section.id === top)\n }\n\n /** A URL hash (without `#`) as the id it names. */\n static decode(hash: string): string {\n try {\n return decodeURIComponent(hash)\n } catch {\n return hash\n }\n }\n\n /**\n * Run `then` once the `<ui-root>` around `element` is ready (every component drawn),\n * or on the next frame when it already is or there is none.\n * - Its OWN `ui-ready`: a root inside it (a `<ui-page>` in an example) sends one too, which bubbles up first.\n */\n static whenReady(element: Element, then: () => void): void {\n const root = element.closest(\"ui-root\")\n if (!root || TocIndex.hasState(root, \"ready\")) {\n beforeNextPaint(then)\n return\n }\n const onReady = (event: Event) => {\n if (event.target !== root) return\n root.removeEventListener(\"ui-ready\", onReady)\n beforeNextPaint(then)\n }\n root.addEventListener(\"ui-ready\", onReady)\n }\n\n /**\n * `text` as a section's id: the kit's id slug (`slug()`), `section` when nothing is left.\n * - e.g. `Labeled Icon` => `labeled-icon`, `Émphasis & More!` => `emphasis-more`\n * - EXCEPT an apostrophe, which splits words here (`Spell UI's own` => `spell-ui-s-own`),\n * where the kit's drops it: the docs pages' saved section ids were made so, and links point at them.\n */\n static slug(text: string): string {\n return slug(text.replace(/['’]/g, \" \"), { fallback: \"section\" })\n }\n\n /** `element`'s id, giving it one first if it has none (SIDE EFFECT). */\n private static idOf(element: Element, text: string, reserved: ReadonlySet<string>): string {\n if (element.id) return element.id\n const base = TocIndex.slug(text)\n const document = element.ownerDocument\n let id = base\n for (let n = 2; reserved.has(id) || document.getElementById(id); n++) id = `${base}-${n}`\n element.id = id\n return id\n }\n\n /** A heading's link text: an example's `heading`, else its title as the search reads it (`PageOutline.titleOf()`). */\n private static text(heading: Element): string {\n const text = heading.localName === EXAMPLE_TAG ? heading.getAttribute(HEADING) : PageOutline.titleOf(heading)\n return (text ?? \"\").replace(/\\s+/g, \" \").trim()\n }\n\n /** `heading` is part of demo markup (an example's, a template), below `root` (`PageOutline.demoAround()`). */\n private static insideExample(heading: Element, root: Element): boolean {\n const demo = PageOutline.demoAround(heading)\n return !!demo && root.contains(demo)\n }\n\n /** The listed `<ui-section>` (`ofSection`) nearest around `element`, below `root`; `undefined` at the top. */\n private static enclosing(element: Element, root: Element, ofSection: Map<Element, TocEntry>): TocEntry | undefined {\n for (let section = element.parentElement?.closest(SECTION_TAG); section;) {\n if (!root.contains(section) || section === root) return undefined\n const entry = ofSection.get(section)\n if (entry) return entry\n section = section.parentElement?.closest(SECTION_TAG)\n }\n return undefined\n }\n\n /** `element` is hidden inside a folded `<ui-section>` (not counting itself). */\n private static folded(element: Element): boolean {\n for (let section = element.parentElement?.closest(SECTION_TAG); section;) {\n if (section.hasAttribute(\"collapsible\") && section.getAttribute(\"open\") === \"false\") return true\n section = section.parentElement?.closest(SECTION_TAG)\n }\n return false\n }\n\n /** The `<ui-tab>` children of `tabs` (any child with a `value` or the pane state). */\n private static panes(tabs: Element): Element[] {\n return [...tabs.children].filter((child) => child.localName !== \"template\")\n }\n\n /** `element` has custom state `name` (`false` where `:state()` isn't supported). */\n private static hasState(element: Element, name: string): boolean {\n try {\n return element.matches(`:state(${name})`)\n } catch {\n return false\n }\n }\n}\n\n/** An example's title attribute. */\nconst HEADING = \"heading\"\n\n/** Where the shadow hosts are kept on `globalThis` (`hostTags()`). */\nconst SHADOW_HOSTS = Symbol.for(\"spell-ui:toc-shadow-hosts\")\n","// `spell/ui/util` by name, never the `spell/ui/core` entry: plain DOM, as `TocIndex` beside it\nimport { after, nextFrame } from \"spell/ui/util\"\nimport { TocIndex } from \"./TocIndex\"\nimport { SECTION_TAG, TABS_TAG } from \"./UIToc.types\"\n\n/****************\n * ### `HashLanding`\n * Landing on a link's target, below the titles stuck at the top: ONE way for Spell UI's docs, its site and the epic\n * pages (epic `coherence` P11).\n * - A landing, in order (`land()`):\n * 1. waits until the page is ready (`whenReady`: by default the `<ui-root>` around the target)\n * 2. opens what hides the target (`reveal`): selects the tab pane holding it, unfolds the `<ui-section>`s around it\n * 3. waits for that to draw: the target has a box, then, when something opened, a few frames (`revealFrames`)\n * 4. scrolls its top to its line (`topOf`, `lineFor`), at once or gliding\n * 5. once more after `settleSeconds`, as late layout (images, a fold's last frame) moves it a little;\n * not when the viewer has scrolled, clicked or typed meanwhile\n * - ONE per document (`forDocument()`): a newer landing stops an older one still waiting.\n * - Who lands a `#hash`:\n * - by default its elements, through `landOnHash()`: `<ui-toc>` as the page opens and on `hashchange`,\n * `<ui-docs-api>` for a header in its shadow root\n * - a page that lands its hashes ITSELF (the site's `SiteSections`, the epic pages' runtime) says so with its\n * rules (`use()`): then `landOnHash()` leaves them to it, and the page scrolls once, not once per element\n * - The default rules land as the browser's own jump does (`scrollIntoView()`): the target's top at the document's\n * `scroll-padding-top` plus its own `scroll-margin-top`.\n * - Plain DOM, no Solid: the epic pages' runtime bundles it from source, beside Spell UI's `dist/`.\n * - SIDE EFFECT: the viewer's input (`wheel`, `touchstart`, `keydown`, `pointerdown`) heard on the window, from the\n * first landing on\n ****************/\nexport class HashLanding {\n /** The document's one landing, made on first use. */\n static forDocument(document: Document): HashLanding {\n let landing = LANDINGS.get(document)\n if (!landing) LANDINGS.set(document, (landing = new HashLanding(document)))\n return landing\n }\n\n /** The document it lands in. */\n readonly document: Document\n\n /** How it lands: the defaults, or the page's own (`use()`). */\n private rules: HashLandingRules\n\n /** The page lands its hashes itself (`use()`): `landOnHash()`, and every element, leave them to it. */\n get isPageOwned(): boolean {\n return this.ownRules\n }\n\n /** `use()` was called. */\n private ownRules = false\n\n /** Bumped by every landing: an older one, still waiting, stops. */\n private landings = 0\n\n /** The viewer scrolled, clicked or typed since the last landing began: its settle doesn't land again. */\n private hasViewerMoved = false\n\n /** The viewer's input is heard (`watchViewer()`). */\n private isWatching = false\n\n private constructor(document: Document) {\n this.document = document\n this.rules = HashLanding.defaultRules()\n }\n\n /**\n * The page lands its own hashes, by `rules` (each one left out stays the default's): the elements' own\n * `landOnHash()` from now on leave them to it.\n */\n use(rules: Partial<HashLandingRules>): this {\n this.rules = { ...this.rules, ...rules }\n this.ownRules = true\n return this\n }\n\n /**\n * Land on what `hash` (with or without its `#`) names, the way an element does: unless the page lands its own\n * (`use()`), or nothing has that id.\n * - Resolves `true` once it has scrolled there; `false` when it didn't (a newer landing came, or nothing to land on).\n */\n landOnHash(hash: string, options: HashLandingOptions = {}): Promise<boolean> {\n if (this.isPageOwned) return Promise.resolve(false)\n const id = TocIndex.decode(hash.replace(/^#/, \"\"))\n const target = id ? TocIndex.elementById(this.document, id) : undefined\n return target ? this.land(target, options) : Promise.resolve(false)\n }\n\n /**\n * Land on `target` (see the class); a promise of it, for a target drawn later (a row of an API table).\n * - Resolves `true` once it has scrolled there; `false` when a newer landing came first, or there's nothing.\n * - NEVER rejects: a target that never comes is no landing.\n */\n async land(\n target: LandingTarget,\n { scroll = \"jump\", opensTarget = true }: HashLandingOptions = {}\n ): Promise<boolean> {\n const landing = ++this.landings\n this.hasViewerMoved = false\n this.watchViewer()\n const found = await Promise.resolve(target).catch(() => undefined)\n if (!found || landing !== this.landings) return false\n await this.rules.whenReady(found)\n if (landing !== this.landings) return false\n const hasOpened = this.rules.reveal(found, { opensTarget })\n for (let frame = 0; frame < SHOW_FRAMES && this.rules.topOf(found) === undefined; frame++) await nextFrame()\n if (hasOpened) await nextFrame(this.rules.revealFrames)\n if (landing !== this.landings) return false\n this.scrollTo(found, scroll)\n void after(this.rules.settleSeconds, () => {\n if (landing === this.landings && !this.hasViewerMoved) this.scrollTo(found, scroll)\n })\n return true\n }\n\n /** Scroll so `target`'s top sits on its line; then tell the page (`onLanded`). */\n private scrollTo(target: Element, scroll: LandingScroll): void {\n const top = this.rules.topOf(target)\n const view = this.document.defaultView\n if (top === undefined || !view) return\n const glides = scroll === \"glide\" && !view.matchMedia(REDUCED_MOTION).matches\n view.scrollTo({\n top: Math.max(0, view.scrollY + top - this.rules.lineFor(target)),\n behavior: glides ? \"smooth\" : \"instant\"\n })\n this.rules.onLanded?.(target)\n }\n\n /** From the first landing on, hear the viewer moving the page: a landing's second try must not pull it back. */\n private watchViewer(): void {\n const view = this.document.defaultView\n if (this.isWatching || !view) return\n this.isWatching = true\n for (const type of VIEWER_INPUT)\n view.addEventListener(type, () => (this.hasViewerMoved = true), { capture: true, passive: true })\n }\n\n ////////////////\n // ## The default rules\n ////////////////\n\n /** How a page with no rules of its own lands (see the class). */\n static defaultRules(): HashLandingRules {\n return {\n whenReady: (target) => new Promise((resolve) => TocIndex.whenReady(TocIndex.lightElementOf(target), resolve)),\n reveal: (target, { opensTarget }) => HashLanding.reveal(target, { opensTarget }),\n lineFor: (target) => HashLanding.marginLine(target),\n topOf: (target) => HashLanding.topOf(target),\n revealFrames: REVEAL_FRAMES,\n settleSeconds: SETTLE_SECONDS\n }\n }\n\n /**\n * Open what hides `target`: select the pane of each `<ui-tabs>` around it, unfold each `<ui-section>` around it\n * (and itself, with `opensTarget`); true when anything opened.\n * - A target in a shadow root: what's around its host.\n * - The unfold is the `open` attribute (`open=\"false\"` taken off), which announces nothing:\n * never saved as the viewer's own fold.\n */\n static reveal(target: Element, { opensTarget }: { opensTarget: boolean }): boolean {\n const light = TocIndex.lightElementOf(target)\n let hasOpened = false\n for (let tabs = light.parentElement?.closest(TABS_TAG); tabs; tabs = tabs.parentElement?.closest(TABS_TAG)) {\n const pane = TocIndex.paneOf(tabs, light)\n if (!pane || TocIndex.shownPane(tabs) === pane) continue\n ;(tabs as HTMLElement & { value?: string }).value = TocIndex.paneValue(tabs, pane)\n hasOpened = true\n }\n const first = opensTarget ? light.closest(SECTION_TAG) : light.parentElement?.closest(SECTION_TAG)\n for (let section = first; section; section = section.parentElement?.closest(SECTION_TAG)) {\n if (section.getAttribute(OPEN) !== \"false\") continue\n section.removeAttribute(OPEN)\n hasOpened = true\n }\n return hasOpened\n }\n\n /**\n * Where `target`'s top is now, px from the viewport's top: its box; a box-less one's (`display: contents`) by what\n * it holds; `undefined` while it draws nothing (a hidden pane).\n */\n static topOf(target: Element): number | undefined {\n if (target.getClientRects().length) return target.getBoundingClientRect().top\n const range = target.ownerDocument.createRange()\n range.selectNodeContents(target)\n const box = range.getBoundingClientRect()\n return box.height || box.width ? box.top : undefined\n }\n\n /** The browser's own landing line for `target`: the document's `scroll-padding-top` plus its `scroll-margin-top`. */\n static marginLine(target: Element): number {\n const view = target.ownerDocument.defaultView\n if (!view) return 0\n const padding = parseFloat(view.getComputedStyle(target.ownerDocument.documentElement).scrollPaddingTop) || 0\n return padding + (parseFloat(view.getComputedStyle(target).scrollMarginTop) || 0)\n }\n}\n\n////////////////\n// ## Types\n////////////////\n\n/** What a landing lands on: the element, or a promise of it (drawn later), `undefined` for none. */\nexport type LandingTarget = Element | Promise<Element | undefined>\n\n/** How a landing scrolls: a page arriving at its address jumps; a link on the page may glide. */\nexport type LandingScroll = \"jump\" | \"glide\"\n\n/** `land()`'s options. */\nexport type HashLandingOptions = {\n /** `jump` (default) or `glide`: a smooth scroll, a jump all the same under reduced motion */\n scroll?: LandingScroll\n /** unfold the target itself, not only what's around it (default `true`) */\n opensTarget?: boolean\n}\n\n/** How a page lands (`HashLanding.use()`): each step of a landing, the page's way. */\nexport type HashLandingRules = {\n /** resolves once the page can be measured (its elements drawn) */\n whenReady: (target: Element) => Promise<void>\n /** open what hides `target`; true when anything opened, so the landing waits for it to draw */\n reveal: (target: Element, options: { opensTarget: boolean }) => boolean\n /** where `target`'s top should land, px from the viewport's top: below what's stuck over it */\n lineFor: (target: Element) => number\n /** where `target`'s top is now, px from the viewport's top; `undefined` while it draws nothing */\n topOf: (target: Element) => number | undefined\n /** told after each scroll: e.g. to mark the target's entry as the one being read */\n onLanded?: (target: Element) => void\n /** frames to wait after something opened: what an unfold reveals renders on the next frames */\n revealFrames: number\n /** when to land once more, s, unless the viewer moved */\n settleSeconds: number\n}\n\n/** Where `LANDINGS` is kept on `globalThis`. */\nconst LANDINGS_KEY = Symbol.for(\"spell-ui:hash-landings\")\n\n/**\n * Each document's landing, on `globalThis`: ONE map a page, though a bundle may hold a second copy of this file\n * (spell-epic's docs runtime imports it by its file, beside the `<ui-toc>` family's own; epic `ui-gaps` P14).\n */\nconst LANDINGS: WeakMap<Document, HashLanding> = ((globalThis as { [LANDINGS_KEY]?: WeakMap<Document, HashLanding> })[\n LANDINGS_KEY\n] ??= new WeakMap())\n\n/** What the viewer does that stops a landing's second try: he's moving the page. */\nconst VIEWER_INPUT = [\"wheel\", \"touchstart\", \"keydown\", \"pointerdown\"] as const\n\n/** Frames a section takes to draw what an unfold revealed (the write lands on a microtask, the render next frame). */\nconst REVEAL_FRAMES = 3\n\n/** Frames to wait at most for a target to get a box (its pane swapping in, inside a View Transition). */\nconst SHOW_FRAMES = 30\n\n/** Land once more after this long, s: late layout (images, a fold's last frame) moves the target a little. */\nconst SETTLE_SECONDS = 0.4\n\n/** A section's open attribute, `\"false\"` when folded (controlled: writing it announces nothing). */\nconst OPEN = \"open\"\n\n/** The viewer asks for less motion: a glide jumps. */\nconst REDUCED_MOTION = \"(prefers-reduced-motion: reduce)\"\n","// Import directly: in `core`'s util barrel it cost every page 1.9 kB\nimport { PrefStore } from \"spell/util/persist/PrefStore\"\nimport { TOC_ALL_FOLDS, TOC_PREFS, type TocAllFolds, type TocFolds } from \"./UIToc.types\"\n\n/****************\n * ### `TocPreferences`\n * The viewer's folds in a table of contents, kept in this browser (`localStorage`, through `PrefStore`).\n * - Expand all / collapse all (`all()`): ONE for every page, until the viewer presses the other\n * (Owen, 2026-10-25: \"keep if I've said 'expand all' -- I probably want that on other pages\").\n * - A section folded or opened by hand (`foldsFor()`): per page, by its path.\n * - Where storage is blocked (a private window), kept for this page only; NEVER throws.\n * - Static only: the storage is one per page, and holds no state of its own.\n ****************/\nexport class TocPreferences {\n /** What the toggle last did, on any page; `undefined` until it's pressed (or a value it can't read). */\n static all(): TocAllFolds | undefined {\n const value = TocPreferences.store.get(TOC_PREFS.all)\n return TOC_ALL_FOLDS.find((each) => each === value)\n }\n\n /** Remember what the toggle did, for every page. */\n static setAll(all: TocAllFolds): void {\n TocPreferences.store.set(TOC_PREFS.all, all)\n }\n\n /** The viewer's own folds on the page at `path`; `{}` when none, or a value it can't read. */\n static foldsFor(path: string): TocFolds {\n const value = TocPreferences.store.get(TOC_PREFS.folds + path)\n if (!value || typeof value !== \"object\" || Array.isArray(value)) return {}\n return Object.fromEntries(Object.entries(value).filter(([, open]) => typeof open === \"boolean\")) as TocFolds\n }\n\n /** Keep the viewer's folds on the page at `path`; none forgets them. */\n static setFoldsFor(path: string, folds: TocFolds): void {\n TocPreferences.store.set(TOC_PREFS.folds + path, Object.keys(folds).length ? folds : undefined)\n }\n\n /** The store: made on first use, so a server render never touches storage. */\n private static get store(): PrefStore {\n return (TocPreferences.made ??= new PrefStore(TOC_PREFS.store))\n }\n private static made?: PrefStore\n}\n","import { For, Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport type { UIMenuAttributes } from \"spell/ui/jsx\"\nimport { tocVocabulary } from \"./UIToc.en\"\nimport { HashLanding } from \"./HashLanding\"\nimport { TocIndex } from \"./TocIndex\"\nimport { TocPreferences } from \"./TocPreferences\"\nimport {\n DEFAULT_SIZE,\n type TocVocabulary,\n type FollowedContent,\n type TocAllFolds,\n type TocEntry,\n type TocFolds,\n type TocSection\n} from \"./UIToc.types\"\n\nimport tocCSS from \"./UIToc.css?inline\"\n\n/****************\n * ### `UIToc`\n * The component behind `<ui-toc>`, a page's table of contents: Fomantic's docs \"On this page\" menu\n * (`ui vertical following fluid accordion text menu`, in the right rail).\n * - The docs site's `<ui-toc>` until epic `ui-gaps` P14 made it a component: any page may have one.\n *\n * - Its shadow DOM:\n * `<div class=\"ui [size] toc\" part=\"toc\">` holding a `<div part=\"head\">` row (an optional `<ui-header part=\"header\">`,\n * the expand all / collapse all `<button part=\"toggle-all\">`, then the `tools` slot: a page's own buttons)\n * and ONE `<ui-menu direction=\"vertical\" appearance=\"text\" fluid part=\"menu\">` (the landmark) of section links.\n * - Each section is a `<div part=\"section-row\">`: its fold `<button part=\"fold\">` (when it has entries), its link.\n * - Under an open section, an item holds a `<ui-menu part=\"entries\">` of its entries' links.\n * - Folds (Owen, 2026-10-25, r31: \"Make these TOCs expandable with a expandall/collapseall icon in the header\"):\n * - a section the viewer folded or opened by hand stays so (`handFolds`, kept per page)\n * - else what the header's toggle last did, on ANY page (`allFolds`, one for this browser)\n * - else `expanded`, else open while it's in view (P38's J128)\n * - kept through `TocPreferences`, read again on every connect: a page move makes a new toc\n * - It lists the FOLLOWED content (`for`; of a `<ui-tabs>`, its shown pane) by `TocIndex.scan()`:\n * - level 2 headings and top-level `<ui-section>`s are sections;\n * examples with a `heading`, and level 3 headings, are their entries\n * - what a `<ui-section>` nests (sections, examples, headings) are ITS entries, as deep as it goes,\n * each level opening on the way to the entry in view\n * - light DOM only, but for the shadow roots another family names (`TocIndex.addShadowHost()`):\n * the docs site's `<ui-docs-api only>` marks its rows and tag headers (`TocIndex.shadowEntries()`),\n * so every attribute, event ... is listed under its section\n * - It follows the scroll: the entry whose top passed the reading line (`TocIndex.current()`) is `selected`,\n * and its section opens; `ui-scrolled-to { value }` when that changes.\n * - The window's scroll, or, with `scroller`, the scroll of the box that id names: content scrolling in a pane\n * of its own (spell-app's notebook page), its reading line from that box's top.\n * - Links are plain `#id` links: the browser scrolls (below the document's `scroll-padding-top`).\n * - As the page opens and on `hashchange`, it lands on the hash through `HashLanding`: a target in a HIDDEN pane\n * of the tabs shows that pane first (`<ui-tabs history>` ignores hashes that aren't pane values), its folds open,\n * then it scrolls there, and once more as the page settles.\n * - Not on a page that lands its hashes itself (the site's sections, the epic pages): one landing, not two.\n * - It scans again when the tabs show another pane (`ui-opened`),\n * when the followed content changes (a `MutationObserver`: children, `heading` / `label` / `level` / `id`),\n * and when a shadow host in it has drawn (`ui-drawn`): the observer can't see into its shadow root.\n * - It re-follows when that content resizes\n * (a `ResizeObserver`: components drawing late move the headings without any scroll).\n * - SIDE EFFECTS:\n * - gives each listed heading / example without an `id` one (a slug of its text), so its link works\n * - the viewer's folds, in `localStorage` (`TocPreferences`)\n * - while connected: `window` `scroll` / `resize` / `hashchange` listeners (`scroll` on `scroller` too, once it\n * exists), and the two observers.\n ****************/\nexport class UIToc extends E.UIComponent<TocVocabulary> {\n @E.proto static vocabulary = tocVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { toc: tocCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n ////////////////\n // ## The sections\n ////////////////\n\n /** The listed sections, from the last scan. */\n @E.state accessor sections: readonly TocSection[] = []\n\n /** Nothing listed: `:state(empty)`. */\n @E.cssState(\"empty\")\n get isEmpty(): boolean {\n return !this.sections.length\n }\n\n ////////////////\n // ## The entry in view\n ////////////////\n\n /** Id of the entry in view. */\n @E.state accessor idInView: string | undefined = undefined\n\n /** Ids from the top-level section down to the entry in view: the entries open on the way. */\n @E.derived\n get pathInView(): string[] {\n return TocIndex.pathTo(this.sections, this.idInView)\n }\n\n /** Id of the top-level section holding the entry in view. */\n get sectionIdInView(): string | undefined {\n return this.pathInView[0]\n }\n\n ////////////////\n // ## Folds\n ////////////////\n\n /** The viewer's own folds on this page, by section id (`TocPreferences.foldsFor()`). */\n @E.state accessor handFolds: TocFolds = {}\n\n /** What the header's toggle last did, on any page; `undefined` until it's pressed. */\n @E.state accessor allFolds: TocAllFolds | undefined = undefined\n\n /** Is `section`'s list open? The viewer's own fold, else the toggle's, else `expanded`, else while it's in view. */\n isSectionOpen(section: TocSection): boolean {\n const own = this.handFolds[section.id]\n if (own !== undefined) return own\n if (this.allFolds) return this.allFolds === \"expanded\"\n return !!this.expanded || this.pathInView.includes(section.id)\n }\n\n /** Does anything fold? A section with entries: then the header shows the toggle. */\n get hasFolds(): boolean {\n return this.sections.some((section) => section.entries.length)\n }\n\n /** Is every section with entries open? The toggle then folds them all. */\n get isAllOpen(): boolean {\n return this.sections.every((section) => !section.entries.length || this.isSectionOpen(section))\n }\n\n /** Nested entries open all the way down: the toggle's expand all, else `expanded`. */\n private get isOpenAllTheWay(): boolean {\n return this.allFolds ? this.allFolds === \"expanded\" : !!this.expanded\n }\n\n /** A section's chevron: fold it if open, open it if folded; kept for this page. */\n @E.untracked\n toggleSection(section: TocSection): void {\n this.handFolds = { ...this.handFolds, [section.id]: !this.isSectionOpen(section) }\n TocPreferences.setFoldsFor(this.path, this.handFolds)\n }\n\n /**\n * The header's toggle: every section open, or, once they all are, every one folded.\n * - Kept for EVERY page, until pressed the other way; this page's own folds are forgotten.\n */\n @E.untracked\n toggleAll(): void {\n this.allFolds = this.isAllOpen ? \"collapsed\" : \"expanded\"\n this.handFolds = {}\n TocPreferences.setAll(this.allFolds)\n TocPreferences.setFoldsFor(this.path, {})\n }\n\n /** The page's path: its folds are kept under it. */\n private get path(): string {\n return this.domElement.ownerDocument.defaultView?.location.pathname ?? \"\"\n }\n\n /** Read the kept folds: this page's, and the toggle's. */\n private loadFolds(): void {\n this.handFolds = TocPreferences.foldsFor(this.path)\n this.allFolds = TocPreferences.all()\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"toc\")}>\n <Show when={this.heading || this.hasFolds}>\n <div class={HEAD} part={this.partForName(\"head\")}>\n <Show when={this.heading}>\n <ui-header part={this.partForName(\"header\")}>{this.heading}</ui-header>\n </Show>\n <Show when={this.hasFolds}>{this.toggleAllButton()}</Show>\n <slot name=\"tools\" />\n </div>\n </Show>\n <ui-menu\n part={this.partForName(\"menu\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n aria-label={this.translationForKey(\"label\")}\n >\n <For each={this.sections}>{(section) => this.section(section)}</For>\n </ui-menu>\n </div>\n )\n }\n\n /** One section's row (its chevron, its link), and its entries while it's open. */\n private section(section: TocSection): JSX.Element {\n const isOpen = () => !!section.entries.length && this.isSectionOpen(section)\n return (\n <>\n <div class={SECTION_ROW} part={this.partForName(\"section-row\")}>\n <Show when={section.entries.length}>{this.foldButton(section)}</Show>\n <ui-item\n part={this.partForName(\"section\")}\n class={SECTION}\n link={`#${section.id}`}\n selected={this.sectionIdInView === section.id ? \"\" : undefined}\n >\n {section.text}\n </ui-item>\n </div>\n {this.entries(section, isOpen)}\n </>\n )\n }\n\n /**\n * A section's fold chevron, left of its link: a click folds or opens its entries (`toggleSection()`).\n * - Named by the section's words; its `aria-expanded` and tooltip as the fold stands.\n * - Drawn here, not from an icon pack: on screen in the first frame, the epic pages' chevron.\n */\n private foldButton(section: TocSection): JSX.Element {\n const isOpen = () => this.isSectionOpen(section)\n const tip = () => this.translationForKey(isOpen() ? \"foldSection\" : \"openSection\", { section: section.text })\n return (\n <button\n type=\"button\"\n class={FOLD}\n part={this.partForName(\"fold\")}\n aria-label={section.text}\n aria-expanded={isOpen() ? \"true\" : \"false\"}\n title={tip()}\n onClick={() => this.toggleSection(section)}\n >\n <svg class={CHEVRON} viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d=\"M6 3.5 10.5 8 6 12.5\" />\n </svg>\n </button>\n )\n }\n\n /**\n * The header's ONE expand all / collapse all button (`toggleAll()`): the epic pages' double chevron,\n * pointing down while it would open everything, up once everything is open.\n */\n private toggleAllButton(): JSX.Element {\n const label = () => this.translationForKey(this.isAllOpen ? \"collapseAll\" : \"expandAll\")\n return (\n <button\n type=\"button\"\n class={TOGGLE_ALL}\n part={this.partForName(\"toggle-all\")}\n aria-label={label()}\n title={label()}\n aria-pressed={this.isAllOpen ? \"true\" : \"false\"}\n onClick={() => this.toggleAll()}\n >\n <svg class={CHEVRONS} viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <path d={this.isAllOpen ? COLLAPSE_ALL_PATH : EXPAND_ALL_PATH} />\n </svg>\n </button>\n )\n }\n\n /**\n * `parent`'s entries, while it's open (`isOpen`: a section's own fold; an entry's, `isOpenAllTheWay`, or on the\n * way to the entry in view): a menu of their links, each followed by its own entries the same way\n * (nested `<ui-section>`s).\n */\n private entries(parent: TocEntry, isFoldOpen?: () => boolean): JSX.Element {\n const isOpen = () =>\n !!parent.entries.length &&\n (isFoldOpen ? isFoldOpen() : this.isOpenAllTheWay || this.pathInView.includes(parent.id))\n return (\n <Show when={isOpen()}>\n <ui-item class={ENTRIES} padding=\"none-y\">\n <ui-menu\n part={this.partForName(\"entries\")}\n direction=\"vertical\"\n appearance=\"text\"\n fluid=\"\"\n size={this.menuSize}\n >\n <For each={parent.entries}>\n {(entry) => (\n <>\n <ui-item\n part={this.partForName(\"entry\")}\n link={`#${entry.id}`}\n selected={this.idInView === entry.id ? \"\" : undefined}\n >\n {entry.text}\n </ui-item>\n {this.entries(entry)}\n </>\n )}\n </For>\n </ui-menu>\n </ui-item>\n </Show>\n )\n }\n\n /** `size`, else the default (an empty or unknown `size` too). */\n private get menuSize(): UIMenuAttributes[\"size\"] {\n return this.size || DEFAULT_SIZE\n }\n\n ////////////////\n // ## Following the page\n ////////////////\n\n /** The next frame's scan or follow (`onFrame()`), once however often asked. */\n private readonly frame = new E.Queued({ when: E.beforeNextPaint, run: () => this.onFrame() })\n\n /** What the queued frame does: a rescan wins over a follow. */\n private queuedUpdate: TocUpdate | undefined\n\n /**\n * While connected, follow the page: the first scan, the hash, listeners and the observers; returns their cleanup.\n * - SIDE EFFECT: page listeners and the observers.\n */\n @E.whileConnected\n protected watch(): () => void {\n const document = this.domElement.ownerDocument\n const view = document.defaultView!\n // oxlint-disable-next-line spell-ui/no-mutation-observer -- watches the FOLLOWED content, another element\n const observer = new MutationObserver(() => this.schedule(\"rescan\"))\n // components drawing (or a pane switching) move the headings without a scroll\n const resized = new ResizeObserver(() => this.schedule(\"follow\"))\n const onScroll = () => this.schedule(\"follow\")\n const onShow = () => this.schedule(\"rescan\")\n const onDrawn = (event: Event) => {\n const hosts = TocIndex.shadowHosts\n if (hosts && (event.target as Element).matches?.(hosts)) this.schedule(\"rescan\")\n }\n const onHash = () => this.reveal()\n this.loadFolds()\n let followed: FollowedContent | undefined\n let scrolling: Element | undefined\n const start = () => {\n followed = this.observe({ observer, resized, onShow, onDrawn })\n scrolling = this.scrollerElement()\n scrolling?.addEventListener(\"scroll\", onScroll, { passive: true })\n }\n view.addEventListener(\"scroll\", onScroll, { passive: true })\n view.addEventListener(\"resize\", onScroll, { passive: true })\n view.addEventListener(\"hashchange\", onHash)\n // the toc may come before what it follows: look again once the page is parsed\n if (document.readyState === \"loading\") document.addEventListener(\"DOMContentLoaded\", start, { once: true })\n else E.afterSolidUpdate(start)\n return () => {\n observer.disconnect()\n resized.disconnect()\n followed?.tabs?.removeEventListener(UI_SHOW, onShow)\n followed?.root.removeEventListener(UI_DRAWN, onDrawn)\n scrolling?.removeEventListener(\"scroll\", onScroll)\n document.removeEventListener(\"DOMContentLoaded\", start)\n view.removeEventListener(\"scroll\", onScroll)\n view.removeEventListener(\"resize\", onScroll)\n view.removeEventListener(\"hashchange\", onHash)\n this.frame.cancel()\n this.queuedUpdate = undefined\n }\n }\n\n /**\n * Follow what `for` names, once it exists: observe it, hear its tabs show a pane, scan it, land on the hash.\n * - Returns what it follows (`watch()` undoes the tabs' listener), or `undefined` while it doesn't exist.\n */\n private observe({ observer, resized, onShow, onDrawn }: Observers): FollowedContent | undefined {\n const followed = this.followedContent()\n if (!followed) return undefined\n observer.observe(followed.root, {\n subtree: true,\n childList: true,\n attributes: true,\n attributeFilter: OBSERVED_ATTRIBUTES\n })\n resized.observe(followed.root)\n followed.tabs?.addEventListener(UI_SHOW, onShow)\n followed.root.addEventListener(UI_DRAWN, onDrawn)\n this.rescan()\n this.reveal()\n return followed\n }\n\n /** Do `update` on the next frame, once: a rescan queued meanwhile wins over a follow. */\n private schedule(update: TocUpdate): void {\n if (update === \"rescan\") this.queuedUpdate = update\n else this.queuedUpdate ??= update\n this.frame.ask()\n }\n\n /** The queued frame: do what's queued. */\n private onFrame(): void {\n const update = this.queuedUpdate\n this.queuedUpdate = undefined\n if (update === \"rescan\") this.rescan()\n else this.followScroll()\n }\n\n /** Scan the followed content again, then follow the scroll. */\n private rescan(): void {\n const followed = this.followedContent()\n const root = followed?.tabs ? TocIndex.shownPane(followed.tabs) : followed?.root\n const sections = root ? TocIndex.scan(root, UIToc.reservedIdsFor(followed?.tabs)) : []\n this.sections = sections\n this.send(\"ui-drawn\", { ids: TocIndex.flatten(sections).map((entry) => entry.id) })\n this.followScroll(sections)\n }\n\n /** Mark the entry in view; `ui-scrolled-to` when it moved. */\n @E.untracked\n private followScroll(sections = this.sections): void {\n const id = TocIndex.current(sections, this.domElement.ownerDocument, this.scrollerElement())\n if (id === this.idInView) return\n this.idInView = id\n if (id) this.send(\"ui-scrolled-to\", { value: id })\n }\n\n /**\n * Land on what `location.hash` names (`HashLanding`): its pane shown, its folds opened, below the stuck titles;\n * once the page is ready, and once more as it settles.\n * - Not on a page that lands its hashes itself (the site, the epic pages): `landOnHash()` leaves it to the page.\n */\n private reveal(): void {\n const document = this.domElement.ownerDocument\n const hash = document.defaultView!.location.hash\n if (hash) void HashLanding.forDocument(document).landOnHash(hash)\n }\n\n /** What `for` names (else the page's `main`), and its tabs; `undefined` while it doesn't exist. */\n private followedContent(): FollowedContent | undefined {\n return TocIndex.followed(this.domElement.ownerDocument, this.for || undefined)\n }\n\n /** The box `scroller` names, whose scroll it follows; `undefined` for the window (or while it doesn't exist). */\n private scrollerElement(): Element | undefined {\n return (this.scroller && this.domElement.ownerDocument.getElementById(this.scroller)) || undefined\n }\n\n /** Ids a new heading id must not take: the followed tabs' pane values (the URL hash names those too). */\n private static reservedIdsFor(tabs: Element | undefined): ReadonlySet<string> {\n if (!tabs) return new Set()\n return new Set([...tabs.children].map((pane, index) => pane.getAttribute(\"value\") ?? String(index)))\n }\n}\n\n/** The vocabulary getters, typed (`UIComponent`'s doc). */\nexport interface UIToc extends E.AttributeValues<TocVocabulary> {}\n\n/** What a scheduled frame does: scan the followed content again, or just re-follow the scroll. */\ntype TocUpdate = \"rescan\" | \"follow\"\n\n/** What `observe()` hooks the followed content up to: `watch()`'s observers and tabs listener. */\ntype Observers = {\n /** rescans on changes to the content */\n observer: MutationObserver\n /** re-follows when the content resizes */\n resized: ResizeObserver\n /** rescans when the tabs show another pane */\n onShow: () => void\n /** rescans when a shadow host (`TocIndex.addShadowHost()`) has drawn its entries */\n onDrawn: (event: Event) => void\n}\n\n/** The attributes whose changes rescan: an example's or a section's title, a heading's level, an id. */\nconst OBSERVED_ATTRIBUTES = [\"heading\", \"label\", \"level\", \"id\"]\n\n/** `<ui-tabs>`' event as it shows another pane. */\nconst UI_SHOW = \"ui-opened\"\n\n/** An element's event once it has drawn: a shadow host's entries are in. */\nconst UI_DRAWN = \"ui-drawn\"\n\n/** Class word of a section's link item. */\nconst SECTION = \"section\"\n\n/** Class word of the item holding a section's entries. */\nconst ENTRIES = \"entries\"\n\n/** Class of the row above the links: the title and the toggle. */\nconst HEAD = \"head\"\n\n/** Class of a section's row: its fold button and its link. */\nconst SECTION_ROW = \"section-row\"\n\n/** Class of a section's fold button. */\nconst FOLD = \"fold\"\n\n/** Class of the fold chevron. */\nconst CHEVRON = \"chevron\"\n\n/** Class of the header's expand all / collapse all button. */\nconst TOGGLE_ALL = \"toggle-all\"\n\n/** Class of its double chevron. */\nconst CHEVRONS = \"chevrons\"\n\n/** The toggle's double chevron, pointing down: expand all. */\nconst EXPAND_ALL_PATH = \"M4 3.5 8 7.5 12 3.5M4 7.5 8 11.5 12 7.5\"\n\n/** ... pointing up: collapse all. */\nconst COLLAPSE_ALL_PATH = \"M4 8.5 8 4.5 12 8.5M4 12.5 8 8.5 12 12.5\"\n","/**\n * The table of contents family: defines `<ui-toc>` and exports its component, `UIToc`,\n * and its plain-DOM helpers: the page's sections and the one in view (`TocIndex`, on `PageOutline`),\n * landing on a link's target (`HashLanding`).\n * - The docs site's `<ui-toc>` until epic `ui-gaps` P14 made it a component:\n * a lib entry, in the component list, loaded by any `<ui-root>`.\n * - SIDE EFFECT: importing it defines the tag, and the widgets its shadow DOM is built of:\n * `<ui-menu>` + `<ui-item>` (`ui-menu`, `ui-item`), `<ui-header>` (`ui-parts`).\n * A `<ui-root>` only loads what's in the page's light DOM, so a family that is built of other widgets\n * imports them itself.\n * - Code that only reads a page or lands a link (the docs site's sections and search, the epic pages' runtime,\n * the site's node scripts) imports the helpers by their files (`spell/ui/components/ui-toc/TocIndex`,\n * `.../HashLanding`, `.../PageOutline`): this barrel would define the tag too.\n */\n\nimport { UIToc } from \"./UIToc\"\nimport { TocIndex } from \"./TocIndex\"\nimport { HashLanding } from \"./HashLanding\"\nimport { PageOutline } from \"./PageOutline\"\n\nimport \"spell/ui/components/ui-menu\"\nimport \"spell/ui/components/ui-item\"\nimport \"spell/ui/components/ui-parts\"\n\nUIToc.define()\n\nexport { UIToc, TocIndex, HashLanding, PageOutline }\nexport type { OutlineSection, TocEntry, TocSection } from \"./UIToc.types\"\n"],"mappings":";;;;;;;;;AAgBA,IAAaoE,KAAgB;CAC3B,KAAK;CACL,MAAM;CACN,QAAQ,CAAC,cAAc,eAAe;CACtC,KAAK;EAAC;EAAqB;EAAgB;EAAc;EAAa;EAAO;CAAgB;CAC7F,UAAU;CACV,MAAM;CACN,cAAc;CACd,aACE;CAGF,YAAY;EACV;GACE,MAAM;GACN,MAAM;GACN,UAAU;GACV,aACE;EAEJ;EACA;GACE,MAAM;GACN,MAAM;GACN,aACE;EAEJ;EACA;GACE,MAAM;GACN,UAAU,CAAC,QAAQ;GACnB,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAQ,MAAM;GAAQ,SAAS;GAAS,aAAa;EAAmC;EAChG;GACE,MAAM;GACN,MAAM;GACN,aACE;EAEJ;CACF;CACA,QAAQ,CACN;EACE,MAAM;EACN,QAAQ;EACR,aAAa;CACf,GACA;EACE,MAAM;EACN,QAAQ;EACR,aAAa;CACf,CACF;CACA,OAAO,CACL;EACE,MAAM;EACN,aACE;CAEJ,CACF;CACA,OAAO;EACL;GAAE,MAAM;GAAO,aAAa;EAA0C;EACtE;GACE,MAAM;GACN,aACE;EACJ;EACA;GAAE,MAAM;GAAU,aAAa;EAA2C;EAC1E;GACE,MAAM;GACN,aACE;EACJ;EACA;GAAE,MAAM;GAAQ,aAAa;EAAqE;EAClG;GACE,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAW,aAAa;EAAgF;EAChH;GACE,MAAM;GACN,aACE;EAEJ;EACA;GAAE,MAAM;GAAS,aAAa;EAAgC;CAChE;CACA,QAAQ,CAAC;EAAE,MAAM;EAAS,aAAa;CAA0D,CAAC;CAClG,OAAO;EACL;GAAE,KAAK;GAAS,MAAM;GAAgB,aAAa;EAA0C;EAC7F;GAAE,KAAK;GAAe,MAAM;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GAxEWe,CAAA,GAmFX3I,EAAAsI,GAAA,GAAA,aADAX,GAlFWgB,CAAA,GAmQX3I,EAAAsI,GAAA,GAAU,SADVZ,GAlQWiB,CAAA,GA8VX3I,EAAAsI,GAAA,GAAQ,gBADRb,GA7VWkB,CAAA,GACF3I,EAAAsI,GAAA,IAAO,cAAhBF,IADWO,CAAA,GAEI3I,EAAAsI,GAAA,IAAO,gBAAtBH,IAFWQ,CAAA,GAAN1I,EAAAqI,GAAMK,CAAA,GAA2CjJ,EAAAiJ,GAAA,OAAA,GAC7C9I,EADE8I,GACK,cAAazI,EAApBoI,GAAA,IADEK,GACkBpI,EAAA,CAAA,GAApBL,EAAAoI,GAAA,IADEK,CAAA,GAEI9I,EAFJ8I,GAEW,gBAAezI,EAAtBoI,GAAA,IAFJK,GAE0B;CACnC,aAAa,EAAE,KAAKhJ,GAAO;CAC3B,gBAAgB;AAClB,CAAA,CAAA,GAHeO,EAAAoI,GAAA,IAFJK,CAAA;AAAN,IAAM0E,KAAN1E,GAoZDwE,KAAsB;CAAC;CAAW;CAAS;CAAS;AAAI,GAGxDF,IAAU,aAGVC,IAAW,YAGXlC,KAAU,WAGVsB,KAAU,WAGVpC,KAAO,QAGPa,KAAc,eAGdO,KAAO,QAGPC,KAAU,WAGVK,KAAa,cAGbC,KAAW,YAGXE,KAAkB,2CAGlBD,KAAoB;;A,eCle1BuB,GAAM,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-toolbar/ui-toolbar.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-toolbar>'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-toolbar\" data-omit=\"\">\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"icon\"></ui-property>\n <ui-property name=\"items\"></ui-property>\n <ui-property name=\"show-keys\"></ui-property>\n <ui-property name=\"all-items-icon\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"color\"></ui-property>\n <ui-property name=\"inverted\"></ui-property>\n <ui-property name=\"appearance\"></ui-property>\n <ui-property name=\"pagination\"></ui-property>\n <ui-property name=\"labeled\"></ui-property>\n <ui-property name=\"wrap\"></ui-property>\n <ui-property name=\"icon-column\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"position\"></ui-property>\n <ui-property name=\"direction\"></ui-property>\n <ui-property name=\"fluid\"></ui-property>\n <ui-property name=\"stackable\"></ui-property>\n <ui-property name=\"centered\"></ui-property>\n <ui-property name=\"wrapping\"></ui-property>\n <ui-property name=\"padding\"></ui-property>\n <ui-property name=\"attach-to\"></ui-property>\n <ui-property name=\"fixed\"></ui-property>\n <ui-property name=\"align\"></ui-property>\n <ui-property name=\"equal\"></ui-property>\n <ui-property name=\"shrinkable\"></ui-property>\n <ui-property name=\"scroll-first\"></ui-property>\n <ui-property name=\"max-visible\"></ui-property>\n <ui-property name=\"remember\"></ui-property>\n <ui-property name=\"all-items-at-end\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Form\" data-group=\"form\">\n <ui-property name=\"name\"></ui-property>\n <ui-property name=\"value\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Behaviour\" data-group=\"behaviour\">\n <ui-property name=\"choose\"></ui-property>\n <ui-property name=\"ticks\"></ui-property>\n <ui-property name=\"tabs\"></ui-property>\n <ui-property name=\"interactive\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-toolbar.editor-CNQ8nJmR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-toolbar.editor-CNQ8nJmR.js","names":["ui_toolbar_editor_default"],"sources":[],"mappings":""}
|