spell-ui 0.8.8 → 0.8.10
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 +25 -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 +36 -2
- package/dist/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +1 -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 +16 -5
- package/dist/components/ui-parts/UIHeader.en.d.ts +9 -5
- 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 +23 -7
- 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/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 +884 -806
- 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 +95 -90
- package/dist/jsx.d.ts +3869 -715
- 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 +47 -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-CkkJRgab.js +5 -0
- package/dist/ui-modal.editor-CkkJRgab.js.map +1 -0
- package/dist/ui-modal.js +132 -96
- 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 +108 -66
- 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 +205 -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 +125 -128
- 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-image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-image.js","names":["<Show when={this.hasCaption} fallback={this.picture()}>\n <figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>\n </Show>","this","<figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>","part={this.partForName(\"figure\")}","part={this.partForName(\"caption\")}","name={this.slotForName(\"caption\")}","<Show when={this.link} fallback={this.image(\"image\")}>\n <a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : void 0}\n style={this.shapeTokens}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>\n </Show>","part={this.partForName(\"image\")}","href={this.linkTo}","target={this.linkTarget}","aria-disabled={this.disabled ? \"true\" : void 0}","style={this.shapeTokens}","<a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : void 0}\n style={this.shapeTokens}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>","part={this.partForName(part)}","src={this.src}","alt={this.alt}","width={this.width}","height={this.height}","loading={this.loading}","style={part === \"image\" ? this.shapeTokens : void 0}","role={isButton() ? \"button\" : void 0}","tabindex={isButton() ? 0 : void 0}","aria-label={isButton() ? this.zoomLabel : void 0}","aria-haspopup={isButton() ? \"dialog\" : void 0}","<img\n class={part === \"image\" ? this.rootClass : void 0}\n part={this.partForName(part)}\n src={this.src}\n alt={this.alt}\n width={this.width}\n height={this.height}\n loading={this.loading}\n style={part === \"image\" ? this.shapeTokens : void 0}\n role={isButton() ? \"button\" : void 0}\n tabindex={isButton() ? 0 : void 0}\n aria-label={isButton() ? this.zoomLabel : void 0}\n aria-haspopup={isButton() ? \"dialog\" : void 0}\n onClick={part === \"image\" ? this.onZoomClick : void 0}\n onKeyDown={part === \"image\" ? this.onZoomKey : void 0}\n />","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.untracked","E.SlotContent","_$createComponent","_$getOwner","_$readShallow","_$setAttribute","__name","imageCSS","_$delegateEvents","this","part={this.partForName(\"group\")}","<div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>","E.UIComponent","E.proto","E.protoMerged","_$getOwner","_$readShallow","_$setAttribute","__name","imageCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__decoratorStart","getOwner$1","imageVocabulary","UIImage_default","_tmpl$$1","_tmpl$2","_tmpl$3","_onZoomKey_dec","_onZoomClick_dec","_ratio_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIImage","UIComponent","proto","protoMerged","cssState","untracked","SlotContent","event","_self$","createComponent","Show","_el$","_el$2","_el$3","insert","effect","readShallow","FIGURE","className","_p$","t","setAttribute","_self$2","_el$4","_o$","addEvent","a","o","i","style","n","claimElement","isButton","part","_self$3","_el$5","h","r","d","l","u","written","match","RATIO","image","ImageZoom","error","UIImage","delegateEvents","imagesVocabulary","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIImages","UIImages"],"sources":["../src/components/ui-image/UIImage.en.ts","../src/components/ui-image/UIImage.css?inline","../src/components/ui-image/UIImage.tsx","../src/components/ui-image/UIImages.en.ts","../src/components/ui-image/UIImages.tsx","../src/components/ui-image/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-image>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-image size=\"small\" appearance=\"rounded\" floated=\"right\" vertical-align=\"top\">` =>\n * `ui small rounded right floated top aligned image`.\n * - `size` is a WIDTH here (Fomantic's 35px … 960px ladder), not a text scale.\n * `medium` stays the no-op default (the natural size), so the component never writes Fomantic's 300px `.medium`.\n * See `UIImage.css`.\n * - `src`, `alt`, `width`, `height`, `loading` pass straight through to the shadow `<img>`.\n * - `zoom` opens it full size, in the page's `<ui-zoom>` (epic `ui-gaps` P14).\n * - `aspect-ratio` gives it a shape, and `crop` fills that shape (epic `language` I18).\n * - NOT the generic content part `<ui-image>` of cards / items (`plan.md`): those land with their owners.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `imageVocabulary`\n * The names of `<ui-image>`, an image: `<img class=\"ui … image\" part=\"image\">`,\n * or `<a class=\"ui … image\" part=\"image\">` around `<img part=\"img\">` with `link`.\n ****************/\nexport const imageVocabulary = {\n tag: \"ui-image\",\n icon: \"image outline\",\n topics: [\"images\", \"media\", \"basic\", \"elements\"],\n aka: [\"picture\", \"img\", \"photo\", \"avatar\", \"thumbnail\"],\n skeleton: \"10 wide: square image\",\n noun: \"image\",\n plural: \"images\",\n description: \"An image is a graphic representation of something.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Width, `mini` (35px) ... `massive` (960px) at 16px; `medium` is the natural size.\"\n },\n { name: \"avatar\", group: \"content\", kind: \"keyOnly\", description: \"A small circle sitting in a line of text.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"bordered\", \"circular\", \"rounded\"],\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"circular\", value: \"circular\" },\n { from: \"rounded\", value: \"rounded\" }\n ],\n description:\n \"The look, several words at once: `bordered` (a hairline border, for images with white edges), \" +\n \"`circular` (cropped to a circle; a pill when not square), `rounded` (softly rounded corners). \" +\n \"Old names: `bordered`, `circular`, `rounded` written alone.\"\n },\n {\n name: \"background\",\n group: \"appearance\",\n kind: \"valueAndKey\",\n values: \"hues\",\n description:\n 'A hue behind the picture, drawn soft (its light tint), with room round the picture: `background=\"yellow\"`. ' +\n \"With `circular` it's a circle. A transparent drawing on a coloured disc, so it has no hairline round it: \" +\n \"the theme's hairline is for photos with white edges, which `bordered` names.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: a block centred in its container. Its old name was `centered`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded: shown as unavailable.\" },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Fills its container's width.\" },\n {\n name: \"inline\",\n group: \"layout\",\n kind: \"keyOnly\",\n description: \"Sits inline in running text instead of as a block.\"\n },\n {\n name: \"floated\",\n group: \"layout\",\n kind: \"valueAndKey\",\n values: \"floats\",\n description: \"Floats `left` or `right` of the text.\"\n },\n {\n name: \"spacing\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"md\", \"left\", \"right\"],\n classes: { md: \"spaced\", left: \"left spaced\", right: \"right spaced\" },\n replaces: [{ from: \"spaced\", value: \"md\" }],\n description:\n \"Room from the text around it: `md` on both sides, or `left` / `right` only. Its old name was `spaced`.\"\n },\n {\n name: \"vertical-align\",\n group: \"layout\",\n kind: \"verticalAlign\",\n values: \"verticalAlignments\",\n description: \"Aligns `top`, `middle` or `bottom` against the text (or, in a group, the row).\"\n },\n { name: \"src\", group: \"link\", kind: \"string\", description: \"Image URL, as the native `<img src>`.\" },\n {\n name: \"caption\",\n group: \"content\",\n kind: \"string\",\n description:\n \"A caption under the picture: the image becomes a figure (`<figure>` and `<figcaption>`). The `caption` \" +\n \"slot is its rich version.\"\n },\n {\n name: \"alt\",\n group: \"content\",\n kind: \"string\",\n description: 'Text alternative, as the native `<img alt>`; `alt=\"\"` marks the image decorative.'\n },\n {\n name: \"width\",\n group: \"layout\",\n kind: \"number\",\n description:\n \"Intrinsic width in px, as the native `<img width>`: reserves space before load. NOT the column \" +\n \"`width` grammar; size variations still set the rendered width.\"\n },\n {\n name: \"height\",\n group: \"layout\",\n kind: \"number\",\n description: \"Intrinsic height in px, as the native `<img height>`: reserves space before load.\"\n },\n {\n name: \"aspect-ratio\",\n group: \"appearance\",\n kind: \"string\",\n description:\n \"Its shape, width to height: `2:3` (a book's cover), `16:9`, `1` (a square); `2/3` too. The whole \" +\n \"picture shows inside that shape, unless `crop`. So a row of cards lines up, whatever shape each picture is.\"\n },\n {\n name: \"crop\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n key: \"cropped\",\n values: \"attachments\",\n description:\n \"Fills its shape (`aspect-ratio`, or its `size` and `height`), cutting off what doesn't fit, rather than \" +\n 'showing the whole picture. `crop` alone keeps the middle; `crop=\"top\"` keeps the top (a face), ' +\n \"`bottom`, `left`, `right`, `top left` ...\"\n },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"enum\",\n values: [\"eager\", \"lazy\"],\n description: \"When to load, as the native `<img loading>`.\"\n },\n {\n name: \"zoom\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"A click (or Enter) shows it full size, over the page, in the page's `<ui-zoom>`; with `link`, a click with \" +\n \"a modifier key still follows the link.\"\n },\n {\n name: \"link\",\n group: \"link\",\n kind: \"string\",\n replaces: [\"href\"],\n description: \"Renders a link (`<a>`) around the image. Its old name was `href`.\"\n }\n ],\n events: [],\n slots: [{ name: \"caption\", description: \"The rich version of `caption`: links, emphasis.\" }],\n parts: [\n { name: \"figure\", description: \"The `<figure>` round the picture and its caption, with `caption`.\" },\n { name: \"caption\", description: \"The `<figcaption>` under the picture.\" },\n { name: \"image\", description: \"The image box: the `<img>`, or the `<a>` with `link`.\" },\n { name: \"img\", description: \"With `link`: the `<img>` inside the link.\" }\n ],\n states: [\n { name: \"disabled\", description: \"Faded: shown as unavailable.\" },\n { name: \"shaped\", description: \"`aspect-ratio` gives it a shape.\" }\n ],\n texts: [\n { key: \"zoom\", text: \"{alt}: show full size\", description: \"With `zoom`: the image's name, as a button.\" },\n { key: \"zoomUntitled\", text: \"Show the image full size\", description: \"With `zoom`, and no `alt`: its name.\" }\n ]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-image>` and `<ui-images>`: a port of Fomantic's `image.less` + `image.variables`.\n * - ONE sheet for both components; each adopts it after the foundation.\n *\n * - It styles the components' shadow DOM, in Fomantic's class names on semantic elements:\n * - `<ui-image>`: `<img class=\"ui [size] [keyOnly ...] [valueAndKey ...] [vertical-align] image\" part=\"image\"\n * src alt width height loading>`\n * - `<ui-image link>`: `<a class=\"ui … image\" part=\"image\" href><img part=\"img\" src alt …></a>`,\n * Fomantic's wrapper form (`.ui.image img`), so the inner `<img>` fills and follows the link's box\n * - `<ui-images>`: `<div class=\"ui [size] [keyOnly ...] [valueAndKey ...] [vertical-align] images\"\n * part=\"group\"><slot></slot></div>`\n *\n * - The DOM elements are `display: contents` (`:host`): the inner box IS the image.\n * So it floats, centres and sits inline in running text, exactly where Fomantic's `<img class=\"ui image\">` did.\n * - A bare `<img class=\"ui image\">` is a BLOCK (Fomantic's `img.ui.image`);\n * the `<a>` wrapper is `inline-block` (Fomantic's `div.ui.image`).\n * `inline`, `avatar`, `spaced` and `aligned` make either inline.\n * - Every inner box is its shadow root's only child,\n * so the ELEMENT's position decides a floated image's `:last-child` spacing (`:host(:not(:last-child))`);\n * static markup keeps Fomantic's selectors.\n *\n * - Sizes are WIDTHS (`--ui-image-width-<size>`, Fomantic's px ladder as multiples of `--ui-font-size`),\n * NOT the `--ui-scale` text ratio: a sized image also takes the scaled font size, for its em-based spacing only.\n * - `medium`: the grammar makes `size=\"medium\"` a no-op (the natural size),\n * whereas Fomantic's `.ui.medium.image` is 300px wide.\n * The `.medium` rule is ported for STATIC markup; the component never writes it.\n *\n * - Group looks are driven by TOKENS: a `display: contents` element takes no box styles from `::slotted()`,\n * so `.ui.images` sets `--_ui-images-*` on each child (light DOM `> *`, shadow `::slotted(*)`):\n * width, height, margin, border, radius, alignment. An image's box reads them first, after its own variation.\n * - Each image's box resets them for its OWN children (the wrapped `<img>`).\n * - Static `<img>`s without `ui image` inside a group read them too, as in Fomantic's docs.\n * - NEVER set `--_image-*` or `--_ui-images-*` from outside: theme with `--ui-image-*`.\n *\n * - The public tokens (`--ui-image-*`) are NEVER declared here.\n * The token block gives each a private alias, `--_ui-image-border: var(--ui-image-border, …)`,\n * and every rule reads the alias. So a value set on `:root`, an ancestor, the element,\n * `::part(image)` or in the app's style sheet reaches the box (`notes/theming.md`, \"Component tokens\").\n *\n * - `:state(disabled)`, set by the component, is for the PAGE's styles only; this sheet keys on classes.\n * - `hidden` is the element's global attribute, hidden by `reset.css` as on every element;\n * `.ui.hidden.image` stays for static markup.\n *\n * - Left out, on purpose:\n * - images decorated with labels (`.ui.image > .label`, corner and ribbon labels): `UILabel.css` owns those looks\n * - the `hidden transition` rules: `animations.css` / `UI.transitions` own visibility during transitions\n * - `.ui.circular.images { overflow: hidden }`: each child's radius already clips it\n * - `spaced`'s `display: inline-block !important`: the variation's private display token wins by layer\n * - the plan's generic content part `<ui-image>` in cards and items is NOT this component;\n * card and item image parts come with those components\n */\n\n@layer ui.components.image.types, ui.components.image.content, ui.components.image.variations, ui.components.image.states;\n\n/*******************************\n Image\n*******************************/\n\n@layer ui.components.image.types {\n /*\n * The DOM elements: no box of their own; the inner box is the image.\n * - Owner token `--_ui-image-owner-display` (a list item: `table-cell`): the ELEMENT takes that box,\n * so the image is a cell beside its owner's content.\n * The inner `<img>` can't be one (a replaced element is never a table cell),\n * so the element is the cell, and the image fills it.\n * `--_ui-image-owner-max-width: none` there:\n * a percentage maximum inside a shrink-to-fit cell would collapse the image to nothing.\n * - `--_ui-image-owner-width` (stacked Items: `auto`) beats the image's own size,\n * as Fomantic's mobile `.ui.items > .item > .image { width: auto !important }` does;\n * `--_ui-image-owner-max-height` (stacked Items: 250px) caps that natural size,\n * as its `.image > img { max-height: 250px !important }` does,\n * and `--_ui-image-owner-align-self` (stacked Items: `center`) centres it instead of stretching it to the column.\n */\n :host {\n display: var(--_ui-image-owner-display, contents);\n vertical-align: var(--_ui-image-owner-align, baseline);\n }\n\n /* Tokens: one per `image.variables` entry that still matters, each the private alias of its public token. */\n .ui.image,\n .ui.images {\n --_ui-image-placeholder-color: var(--ui-image-placeholder-color, transparent);\n --_ui-image-rounded-radius: var(--ui-image-rounded-radius, var(--ui-radius));\n --_ui-image-circular-radius: var(--ui-image-circular-radius, var(--ui-radius-pill));\n --_ui-image-border: var(--ui-image-border, var(--ui-border-width) solid var(--ui-border-color));\n --_ui-image-group-margin-x: var(--ui-image-group-margin-x, var(--ui-space-2xs));\n --_ui-image-group-margin-y: var(--ui-image-group-margin-y, var(--ui-space-xs));\n --_ui-image-avatar-size: var(--ui-image-avatar-size, 2em);\n --_ui-image-avatar-margin: var(--ui-image-avatar-margin, var(--ui-space-2xs));\n --_ui-image-spaced-distance: var(--ui-image-spaced-distance, var(--ui-space-xs));\n --_ui-image-floated-margin-x: var(--ui-image-floated-margin-x, var(--ui-space-m));\n --_ui-image-floated-margin-y: var(--ui-image-floated-margin-y, var(--ui-space-m));\n --_ui-image-disabled-opacity: var(--ui-image-disabled-opacity, var(--ui-disabled-opacity));\n --_ui-image-focus-width: var(--ui-image-focus-width, var(--ui-focus-width, 2px));\n /* `background`: the hue's light tint (the hue from its class, `colors.css`), and the room round the picture */\n --_ui-image-background: var(--ui-image-background, oklch(from var(--ui-color) 0.96 calc(c * 0.5) h));\n --_ui-image-background-padding: var(--ui-image-background-padding, 0.75em);\n /* Fomantic's width ladder (35px ... 960px at 16px), following `--ui-font-size`. */\n --_ui-image-width-mini: var(--ui-image-width-mini, calc(var(--ui-font-size) * 2.1875));\n --_ui-image-width-tiny: var(--ui-image-width-tiny, calc(var(--ui-font-size) * 5));\n --_ui-image-width-small: var(--ui-image-width-small, calc(var(--ui-font-size) * 9.375));\n --_ui-image-width-medium: var(--ui-image-width-medium, calc(var(--ui-font-size) * 18.75));\n --_ui-image-width-large: var(--ui-image-width-large, calc(var(--ui-font-size) * 28.125));\n --_ui-image-width-big: var(--ui-image-width-big, calc(var(--ui-font-size) * 37.5));\n --_ui-image-width-huge: var(--ui-image-width-huge, calc(var(--ui-font-size) * 50));\n --_ui-image-width-massive: var(--ui-image-width-massive, calc(var(--ui-font-size) * 60));\n }\n\n /* Image: its natural size, never wider than its container. */\n .ui.image,\n .ui.images > :is(img, svg),\n .ui.images > ::slotted(:is(img, svg)) {\n position: relative;\n box-sizing: border-box;\n display: var(--_image-display, inline-block);\n align-self: var(--_image-align, var(--_ui-images-align, var(--_ui-image-owner-align-self, auto)));\n vertical-align: var(--_image-valign, middle);\n width: var(--_ui-image-owner-width, var(--_image-width, var(--_ui-images-width, auto)));\n max-width: var(--_ui-image-owner-max-width, 100%);\n max-height: var(--_ui-image-owner-max-height, none);\n height: var(--_image-height, var(--_ui-images-height, auto));\n margin: var(--_image-margin, var(--_ui-images-margin, 0));\n border: var(--_image-border, var(--_ui-images-border, none));\n border-radius: var(--_image-radius, var(--_ui-images-radius, 0));\n background-color: var(--_ui-image-placeholder-color);\n object-fit: var(--_image-fit, fill);\n }\n img.ui.image {\n --_image-display: block;\n }\n\n /* Link wrapper: the `<a>` is the box, the wrapped `<img>` / `<svg>` fills it. */\n a.ui.image {\n color: inherit;\n text-decoration: none;\n line-height: 0;\n }\n a.ui.image:focus-visible {\n outline: var(--_ui-image-focus-width) solid var(--ui-focus-color);\n outline-offset: var(--_ui-image-focus-width);\n }\n .ui.image img,\n .ui.image svg {\n display: block;\n width: var(--_image-inner-width, auto);\n max-width: 100%;\n height: var(--_image-inner-height, auto);\n border-radius: inherit;\n object-fit: inherit;\n }\n\n /* What the image hands its wrapped content: none of its own or its group's layout tokens. */\n .ui.image > * {\n --_ui-images-width: initial;\n --_ui-images-height: initial;\n --_ui-images-margin: initial;\n --_ui-images-border: initial;\n --_ui-images-radius: initial;\n --_ui-images-align: initial;\n --_image-size: initial;\n --_image-display: initial;\n --_image-align: initial;\n --_image-valign: initial;\n --_image-width: initial;\n --_image-height: initial;\n --_image-margin: initial;\n --_image-border: initial;\n --_image-radius: initial;\n --_image-fit: initial;\n --_image-floated-bottom: initial;\n }\n\n /*******************************\n Groups\n *******************************/\n\n /* A wrapping row of images, middle aligned like Fomantic's inline-block children. */\n .ui.images {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n margin: 0 calc(var(--_ui-image-group-margin-x) * -1);\n }\n .ui.images > *,\n .ui.images > ::slotted(*) {\n --_ui-images-margin: 0 var(--_ui-image-group-margin-x) var(--_ui-image-group-margin-y);\n --_ui-images-width: var(--_image-size);\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.image.variations {\n /* Inline: sits in running text. */\n .ui.inline.image {\n --_image-display: inline-block;\n }\n .ui.inline.image > :is(img, svg) {\n display: inline-block;\n }\n\n /* Vertically aligned: inline, against the text (or, in a group, the row). */\n .ui:is([class*=\"top aligned\"], [class*=\"middle aligned\"], [class*=\"bottom aligned\"]).image {\n --_image-display: inline-block;\n }\n .ui[class*=\"top aligned\"].image {\n --_image-valign: top;\n --_image-align: flex-start;\n }\n .ui[class*=\"middle aligned\"].image {\n --_image-valign: middle;\n --_image-align: center;\n }\n .ui[class*=\"bottom aligned\"].image {\n --_image-valign: bottom;\n --_image-align: flex-end;\n }\n .ui[class*=\"top aligned\"].images {\n align-items: flex-start;\n }\n .ui[class*=\"bottom aligned\"].images {\n align-items: flex-end;\n }\n\n /* Rounded */\n .ui.rounded.image {\n --_image-radius: var(--_ui-image-rounded-radius);\n }\n .ui.rounded.images > *,\n .ui.rounded.images > ::slotted(*) {\n --_ui-images-radius: var(--_ui-image-rounded-radius);\n }\n\n /* Bordered: a hairline on the picture itself (the wrapped `<img>` for a link). */\n .ui.bordered.image:is(img, svg) {\n --_image-border: var(--_ui-image-border);\n }\n .ui.bordered.image > :is(img, svg) {\n border: var(--_ui-image-border);\n }\n .ui.bordered.images > *,\n .ui.bordered.images > ::slotted(*) {\n --_ui-images-border: var(--_ui-image-border);\n }\n\n /* Background (`background=\"yellow\"`, `ui yellow background image`): the hue's light tint behind the picture,\n with room round it; a circle with `circular` (below). No hairline: the theme's (`rules/modern.css`) leaves it out. */\n .ui.background.image {\n padding: var(--_ui-image-background-padding);\n background-color: var(--_ui-image-background);\n }\n\n /* Circular */\n .ui.circular.image {\n --_image-radius: var(--_ui-image-circular-radius);\n overflow: hidden;\n }\n /* Circular with a background: the background is a disc inside the room round the picture, the picture whole on\n it, never cropped (a drawing's tail or wing reaches past the disc) */\n .ui.circular.background.image {\n --_image-radius: 0;\n overflow: visible;\n background: radial-gradient(circle closest-side, var(--_ui-image-background) 99%, transparent 100%) content-box;\n }\n .ui.circular.images > *,\n .ui.circular.images > ::slotted(*) {\n --_ui-images-radius: var(--_ui-image-circular-radius);\n }\n\n /* Fluid: fills its container. */\n .ui.fluid.image {\n --_image-display: block;\n --_image-width: 100%;\n --_image-inner-width: 100%;\n }\n .ui.fluid.images {\n width: 100%;\n }\n .ui.fluid.images > *,\n .ui.fluid.images > ::slotted(*) {\n --_ui-images-width: 100%;\n }\n\n /* Avatar: a small circle sitting in a line of text. */\n .ui.avatar.image {\n --_image-display: inline-block;\n --_image-width: var(--_ui-image-avatar-size);\n --_image-height: var(--_ui-image-avatar-size);\n --_image-inner-width: 100%;\n --_image-inner-height: 100%;\n --_image-margin: 0 var(--_ui-image-avatar-margin) 0 0;\n --_image-radius: var(--_ui-image-circular-radius);\n --_image-fit: cover;\n }\n .ui.avatar.images > *,\n .ui.avatar.images > ::slotted(*) {\n --_ui-images-width: var(--_ui-image-avatar-size);\n --_ui-images-height: var(--_ui-image-avatar-size);\n --_ui-images-radius: var(--_ui-image-circular-radius);\n }\n\n /* Shaped (`aspect-ratio`, `:state(shaped)`): that shape, the whole picture inside it;\n cropped (`crop`, `ui [top] cropped image`): it fills the shape, keeping the part `crop` names.\n - The component writes the ratio as the image box's token; the part kept is `crop`'s class words.\n - The shape applies only while it's set: otherwise the `<img>`'s `width` / `height` give its shape. */\n :host(:state(shaped)) .ui.image {\n --_image-inner-width: 100%;\n --_image-inner-height: 100%;\n aspect-ratio: var(--_image-ratio);\n object-fit: var(--_image-fit, contain);\n }\n .ui.cropped.image,\n .ui.cropped.image img {\n --_image-fit: cover;\n object-position: var(--_image-crop, center);\n }\n .ui[class*=\"top cropped\"].image {\n --_image-crop: top;\n }\n .ui[class*=\"bottom cropped\"].image {\n --_image-crop: bottom;\n }\n .ui[class*=\"left cropped\"].image {\n --_image-crop: left;\n }\n .ui[class*=\"right cropped\"].image {\n --_image-crop: right;\n }\n .ui[class*=\"top left cropped\"].image {\n --_image-crop: top left;\n }\n .ui[class*=\"top right cropped\"].image {\n --_image-crop: top right;\n }\n .ui[class*=\"bottom left cropped\"].image {\n --_image-crop: bottom left;\n }\n .ui[class*=\"bottom right cropped\"].image {\n --_image-crop: bottom right;\n }\n\n /* Spaced: room on both sides (or one) from the text around it. */\n .ui.spaced.image,\n .ui:is([class*=\"left spaced\"], [class*=\"right spaced\"]).image {\n --_image-display: inline-block;\n --_image-margin: 0 var(--_ui-image-spaced-distance);\n }\n .ui[class*=\"left spaced\"].image {\n --_image-margin: 0 0 0 var(--_ui-image-spaced-distance);\n }\n .ui[class*=\"right spaced\"].image {\n --_image-margin: 0 var(--_ui-image-spaced-distance) 0 0;\n }\n\n /* Floated: text wraps around it; none below the last one. Bare `floated` (static markup) floats left. */\n .ui:is(.floated, [class*=\"left floated\"]):is(.image, .images) {\n --_image-floated-bottom: var(--_ui-image-floated-margin-y);\n float: left;\n }\n .ui[class*=\"right floated\"]:is(.image, .images) {\n float: right;\n }\n .ui.floated:is(.image, .images):last-child {\n --_image-floated-bottom: 0px;\n }\n /* Shadow DOM: the inner box is always an only child, so the ELEMENT's position decides. */\n :host(:not(:last-child)) > .ui.floated:is(.image, .images) {\n --_image-floated-bottom: var(--_ui-image-floated-margin-y);\n }\n .ui.floated.image {\n --_image-margin: 0 var(--_ui-image-floated-margin-x) var(--_image-floated-bottom) 0;\n }\n .ui[class*=\"right floated\"].image {\n --_image-margin: 0 0 var(--_image-floated-bottom) var(--_ui-image-floated-margin-x);\n }\n /* A group's own margin is plain: its private tokens would leak into its children. */\n .ui.floated.images {\n margin: 0 var(--_ui-image-floated-margin-x) var(--_image-floated-bottom) 0;\n }\n .ui[class*=\"right floated\"].images {\n margin: 0 0 var(--_image-floated-bottom) var(--_ui-image-floated-margin-x);\n }\n\n /* Centered: a block with equal space either side; a group centres its rows. */\n .ui.centered.image {\n --_image-display: block;\n --_image-margin: 0 auto;\n }\n .ui.centered.images {\n justify-content: center;\n }\n\n /*\n * Sizes: Fomantic's widths. The size class names a width once, for the image or the group;\n * the image takes it as its own, a group hands it to its children (`--_ui-images-width`).\n */\n .ui.mini:is(.image, .images) {\n --_image-size: var(--_ui-image-width-mini);\n }\n .ui.tiny:is(.image, .images) {\n --_image-size: var(--_ui-image-width-tiny);\n }\n .ui.small:is(.image, .images) {\n --_image-size: var(--_ui-image-width-small);\n }\n .ui.medium:is(.image, .images) {\n --_image-size: var(--_ui-image-width-medium);\n }\n .ui.large:is(.image, .images) {\n --_image-size: var(--_ui-image-width-large);\n }\n .ui.big:is(.image, .images) {\n --_image-size: var(--_ui-image-width-big);\n }\n .ui.huge:is(.image, .images) {\n --_image-size: var(--_ui-image-width-huge);\n }\n .ui.massive:is(.image, .images) {\n --_image-size: var(--_ui-image-width-massive);\n }\n .ui:is(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive):is(.image, .images) {\n font-size: calc(var(--ui-font-size) * var(--ui-scale, 1));\n }\n .ui:is(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive).image {\n --_image-width: var(--_image-size);\n --_image-height: auto;\n --_image-inner-width: 100%;\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.image.states {\n /* Hidden (static markup; elements use the `hidden` attribute). */\n .ui.hidden:is(.image, .images) {\n display: none;\n }\n\n /* Disabled: faded. */\n .ui.disabled:is(.image, .images) {\n cursor: default;\n opacity: var(--_ui-image-disabled-opacity);\n }\n\n /* `zoom` (epic `ui-gaps` P14): a click shows it full size, so the zoom-in cursor; a focus ring, as a button's */\n :host([zoom]:not([disabled])) img {\n cursor: zoom-in;\n }\n :host([zoom]) img:focus-visible {\n outline: 2px solid var(--ui-focus-color, Highlight);\n outline-offset: 2px;\n }\n}\n\n/*******************************\n Figure\n*******************************/\n\n/*\n * `caption` (epic `ui-gaps` P12): a `<figure>` round the image and a `<figcaption>` under it.\n * - `display: table`, the caption a `table-caption` under it: the caption wraps at the picture's width.\n */\n@layer ui.components.image.content {\n .figure {\n display: table;\n margin: 0 0 1em;\n }\n :host(:last-child) > .figure {\n margin-block-end: 0;\n }\n .figure > figcaption {\n display: table-caption;\n caption-side: bottom;\n padding-block-start: var(--ui-space-xs);\n color: var(--ui-text-muted);\n font-size: 0.875em;\n line-height: var(--ui-line-height);\n }\n}\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { imageVocabulary } from \"./UIImage.en\"\n\nimport imageCSS from \"./UIImage.css?inline\"\n\n/****************\n * ### `UIImage`\n * The component behind `<ui-image>`: an image, optionally a link.\n *\n * - Its shadow DOM is `<img class=\"ui … image\" part=\"image\" src alt width height loading>`;\n * with `link`, Fomantic's wrapper form, `<a class=\"ui … image\" part=\"image\" href><img part=\"img\" …></a>`,\n * the link carrying the classes.\n * The element is `display: contents`: the inner box IS the image, so it floats and sits in text as Fomantic's did.\n *\n * - `alt` passes straight through:\n * - `alt=\"\"` is a decorative image (assistive tech skips it)\n * - a MISSING `alt` stays missing: a bug to fix in the page, which axe reports,\n * not one to hide with an empty default\n * - a linked image's `alt` names the link\n * - `width` / `height` are the native intrinsic size (they reserve space before it loads);\n * `size` sets the drawn width.\n * - `caption` (or the `caption` slot) makes it a FIGURE (epic `ui-gaps` P12):\n * `<figure part=\"figure\">` round the image (or its link), then `<figcaption part=\"caption\">` under it,\n * no wider than the picture.\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, the image (or its link) inert, `aria-disabled`; a link also loses its link.\n * - `aspect-ratio` and `crop` (epic `language` I18): its shape, and whether it fills it.\n * - `:state(shaped)`, with the ratio as the image box's private token (`--_image-ratio`),\n * so `UIImage.css` draws it and a page's `::part(image)` still wins\n * - `crop` is class words, as Fomantic writes a variation: `ui top cropped image`\n * - only while set: with neither, the `<img>`'s own `width` / `height` keep reserving its space before it loads\n * - `zoom` (epic `ui-gaps` P14): a plain click, or Enter / Space, shows it full size in the page's `<ui-zoom>`\n * (`ImageZoom.show()`, loaded on the first one).\n * - without `link`, the image is a button for it: focusable, named \"<alt>: show full size\"\n * - with `link`, a click with a modifier key still follows the link\n ****************/\nexport class UIImage extends E.UIComponent<typeof imageVocabulary> {\n @E.proto static vocabulary = imageVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { image: imageCSS },\n // `loading`: Fomantic's placeholder look\n loading: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /** Which named slots have content (the `caption` slot). */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** A figure: `caption`, or something in the `caption` slot. */\n get hasCaption(): boolean {\n return !!this.caption || this.slots.hasContent(this.slotForName(\"caption\"))\n }\n\n render(): JSX.Element {\n return (\n <Show when={this.hasCaption} fallback={this.picture()}>\n <figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>\n </Show>\n )\n }\n\n /** The image, or its link round it. */\n private picture(): JSX.Element {\n return (\n <Show when={this.link} fallback={this.image(\"image\")}>\n <a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : undefined}\n style={this.shapeTokens}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>\n </Show>\n )\n }\n\n /** The `<img>`: the root (part `image`, with the classes), or the link's child (part `img`). */\n private image(part: \"image\" | \"img\"): JSX.Element {\n const isButton = () => part === \"image\" && this.isZoomButton\n return (\n <img\n class={part === \"image\" ? this.rootClass : undefined}\n part={this.partForName(part)}\n src={this.src}\n alt={this.alt}\n width={this.width}\n height={this.height}\n loading={this.loading as \"eager\" | \"lazy\" | undefined}\n style={part === \"image\" ? this.shapeTokens : undefined}\n role={isButton() ? \"button\" : undefined}\n tabindex={isButton() ? 0 : undefined}\n aria-label={isButton() ? this.zoomLabel : undefined}\n aria-haspopup={isButton() ? \"dialog\" : undefined}\n onClick={part === \"image\" ? this.onZoomClick : undefined}\n onKeyDown={part === \"image\" ? this.onZoomKey : undefined}\n />\n )\n }\n\n ////////////////\n // ## Shape and crop\n ////////////////\n\n /**\n * `aspect-ratio`, as CSS writes it: `2:3`, `2/3` => `2 / 3`; `1.5` as is.\n * - `undefined` without one, or with one that isn't a ratio (a dev warning says so).\n */\n @E.cssState(\"shaped\")\n get ratio(): string | undefined {\n const written = this.aspectRatio?.trim()\n if (!written) return undefined\n const match = RATIO.exec(written)\n if (match) return match[2] ? `${match[1]} / ${match[2]}` : match[1]\n E.Warnings.devWarn(\"<ui-image>\", `aspect-ratio=\"${written}\" isn't a ratio: write \\`2:3\\`, \\`16/9\\` or \\`1\\``)\n return undefined\n }\n\n /** The image box's private token for its shape (the `<img>`, or its link), read by `UIImage.css`. */\n get shapeTokens(): Record<string, string> | undefined {\n return this.ratio ? { \"--_image-ratio\": this.ratio } : undefined\n }\n\n ////////////////\n // ## Zoom\n ////////////////\n\n /** `zoom`, with no link: the image itself is the button that shows it full size. */\n get isZoomButton(): boolean {\n return !!this.zoom && !this.link && !this.disabled\n }\n\n /** The zoom button's name: its alt text, then what it does. */\n get zoomLabel(): string {\n return this.alt ? this.translationForKey(\"zoom\", { alt: this.alt }) : this.translationForKey(\"zoomUntitled\")\n }\n\n /** A plain click on it (or its link), with `zoom`: shown full size, the link not followed. */\n @E.untracked\n private readonly onZoomClick = (event: MouseEvent) => {\n if (!this.zoom || this.disabled || event.button !== 0) return\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return\n event.preventDefault()\n this.showFullSize()\n }\n\n /** Enter or Space on the zoom button. */\n @E.untracked\n private readonly onZoomKey = (event: KeyboardEvent) => {\n if (!this.isZoomButton || (event.key !== \"Enter\" && event.key !== \" \")) return\n event.preventDefault()\n this.showFullSize()\n }\n\n /** In the page's `<ui-zoom>`: its family (and `ImageZoom`) loaded on the first one, so an image without `zoom` never pays for it. */\n private showFullSize() {\n const image = this.domElement.shadowRoot?.querySelector(\"img\")\n if (!image) return\n void import(\"spell/ui/components/ui-zoom\")\n .then(({ ImageZoom }) => ImageZoom.show(image))\n .catch((error) => console.error(error))\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIImage extends E.AttributeValues<typeof imageVocabulary> {}\n\n/** The figure's class. */\nconst FIGURE = \"figure\"\n\n/** An `aspect-ratio`: `2:3`, `2/3`, `2 / 3`, or one number, `1.5`. */\nconst RATIO = /^(\\d+(?:\\.\\d+)?)\\s*(?:[:/]\\s*(\\d+(?:\\.\\d+)?))?$/\n","/**\n * The English vocabulary of `<ui-images>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots and parts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - How the family's attributes become class words: `UIImage.en.ts`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `imagesVocabulary`\n * The names of `<ui-images>`, a group of images in one wrapping row: `<div class=\"ui … images\" part=\"group\">`.\n ****************/\nexport const imagesVocabulary = {\n tag: \"ui-images\",\n icon: \"images outline\",\n topics: [\"images\", \"media\", \"layout\", \"elements\"],\n aka: [\"image group\", \"gallery\", \"avatars\"],\n noun: \"images\",\n description: \"A group of images can be formatted together.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Width of every image in the group, `mini` ... `massive`.\"\n },\n { name: \"avatar\", group: \"content\", kind: \"keyOnly\", description: \"Every image a small circle.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"bordered\", \"circular\", \"rounded\"],\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"circular\", value: \"circular\" },\n { from: \"rounded\", value: \"rounded\" }\n ],\n description:\n \"Every image's look, several words at once: `bordered` (a hairline border), `circular` (cropped to a \" +\n \"circle), `rounded` (softly rounded corners). Old names: `bordered`, `circular`, `rounded` written alone.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: rows centred in the container. Its old name was `centered`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"The whole group faded.\" },\n {\n name: \"fluid\",\n group: \"layout\",\n kind: \"keyOnly\",\n description: \"Every image fills the group's width, one per row.\"\n },\n {\n name: \"vertical-align\",\n group: \"layout\",\n kind: \"verticalAlign\",\n values: [\"top\", \"middle\", \"bottom\"],\n description: \"Aligns the images of a row `top`, `middle` (default) or `bottom`.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-image>`s (or plain `<img>`s).\" }],\n parts: [{ name: \"group\", description: \"The group box.\" }],\n states: [],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { imagesVocabulary } from \"./UIImages.en\"\n\nimport imageCSS from \"./UIImage.css?inline\"\n\n/****************\n * ### `UIImages`\n * The component behind `<ui-images>`: a group of images in one wrapping row.\n *\n * - Its shadow DOM is one box, `<div class=\"ui … images\" part=\"group\">`, around a slot for the images.\n * - `UIImage.css` hands the group's look (size, border, radius, spacing) to each child,\n * through `--_ui-images-*` tokens: a `display: contents` `<ui-image>` takes no box styles from `::slotted()`.\n ****************/\nexport class UIImages extends E.UIComponent<typeof imagesVocabulary> {\n @E.proto static vocabulary = imagesVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { image: imageCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIImages extends E.AttributeValues<typeof imagesVocabulary> {}\n","/**\n * The image family: defines `<ui-image>` and `<ui-images>`, and exports their components, `UIImage` and `UIImages`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-image` entry (its size is in `notes/report.md`).\n * - NOT the generic content part `<ui-image>` of cards and items (`plan.md`): those come with their owners.\n */\n\nimport { UIImage } from \"./UIImage\"\nimport { UIImages } from \"./UIImages\"\n\nUIImage.define()\nUIImages.define()\n\nexport { UIImage, UIImages }\n"],"mappings":";;;;;AAuBA,IAAa6D,IAAkB;CAC7B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAS;EAAS;CAAU;CAC/C,KAAK;EAAC;EAAW;EAAO;EAAS;EAAU;CAAW;CACtD,UAAU;CACV,MAAM;CACN,QAAQ;CACR,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,M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AAQ,OAAO,GACfS,EAAS,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-image.js","names":["<Show when={this.hasCaption} fallback={this.picture()}>\n <figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>\n </Show>","this","<figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>","part={this.partForName(\"figure\")}","part={this.partForName(\"caption\")}","name={this.slotForName(\"caption\")}","<Show when={this.link} fallback={this.image(\"image\")}>\n <a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : void 0}\n style={this.shapeTokens}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>\n </Show>","part={this.partForName(\"image\")}","href={this.linkTo}","target={this.linkTarget}","aria-disabled={this.disabled ? \"true\" : void 0}","style={this.shapeTokens}","<a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : void 0}\n style={this.shapeTokens}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>","part={this.partForName(part)}","src={this.src}","alt={this.alt}","width={this.width}","height={this.height}","loading={this.loading}","style={part === \"image\" ? this.shapeTokens : void 0}","role={isButton() ? \"button\" : void 0}","tabindex={isButton() ? 0 : void 0}","aria-label={isButton() ? this.zoomLabel : void 0}","aria-haspopup={isButton() ? \"dialog\" : void 0}","<img\n class={part === \"image\" ? this.rootClass : void 0}\n part={this.partForName(part)}\n src={this.src}\n alt={this.alt}\n width={this.width}\n height={this.height}\n loading={this.loading}\n style={part === \"image\" ? this.shapeTokens : void 0}\n role={isButton() ? \"button\" : void 0}\n tabindex={isButton() ? 0 : void 0}\n aria-label={isButton() ? this.zoomLabel : void 0}\n aria-haspopup={isButton() ? \"dialog\" : void 0}\n onClick={part === \"image\" ? this.onZoomClick : void 0}\n onKeyDown={part === \"image\" ? this.onZoomKey : void 0}\n />","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.untracked","E.SlotContent","_$getOwner","_$readShallow","_$setAttribute","__name","imageCSS","this","part={this.partForName(\"group\")}","<div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>","E.UIComponent","E.proto","E.protoMerged","_$getOwner","_$setAttribute","__name","imageCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","getOwner$1","imageVocabulary","UIImage_default","_tmpl$$1","_tmpl$2","_tmpl$3","_onZoomKey_dec","_onZoomClick_dec","_ratio_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIImage","UIComponent","proto","protoMerged","cssState","untracked","SlotContent","event","_self$","createComponent","Show","_el$","_el$2","_el$3","insert","effect","readShallow","FIGURE","className","_p$","t","setAttribute","_self$2","_el$4","_o$","addEvent","a","o","i","style","n","claimElement","isButton","part","_self$3","_el$5","h","r","d","l","u","written","match","RATIO","image","ImageZoom","error","UIImage","delegateEvents","imagesVocabulary","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIImages","UIImages"],"sources":["../src/components/ui-image/UIImage.en.ts","../src/components/ui-image/UIImage.tsx","../src/components/ui-image/UIImages.en.ts","../src/components/ui-image/UIImages.tsx","../src/components/ui-image/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-image>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-image size=\"small\" appearance=\"rounded\" floated=\"right\" vertical-align=\"top\">` =>\n * `ui small rounded right floated top aligned image`.\n * - `size` is a WIDTH here (Fomantic's 35px … 960px ladder), not a text scale.\n * `medium` stays the no-op default (the natural size), so the component never writes Fomantic's 300px `.medium`.\n * See `UIImage.css`.\n * - `src`, `alt`, `width`, `height`, `loading` pass straight through to the shadow `<img>`.\n * - `zoom` opens it full size, in the page's `<ui-zoom>` (epic `ui-gaps` P14).\n * - `aspect-ratio` gives it a shape, and `crop` fills that shape (epic `language` I18).\n * - NOT the generic content part `<ui-image>` of cards / items (`plan.md`): those land with their owners.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `imageVocabulary`\n * The names of `<ui-image>`, an image: `<img class=\"ui … image\" part=\"image\">`,\n * or `<a class=\"ui … image\" part=\"image\">` around `<img part=\"img\">` with `link`.\n ****************/\nexport const imageVocabulary = {\n tag: \"ui-image\",\n icon: \"image outline\",\n topics: [\"images\", \"media\", \"basic\", \"elements\"],\n aka: [\"picture\", \"img\", \"photo\", \"avatar\", \"thumbnail\"],\n skeleton: \"10 wide: square image\",\n noun: \"image\",\n partOfSpeech: \"property\",\n plural: \"images\",\n description: \"An image is a graphic representation of something.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Width, `mini` (35px) ... `massive` (960px) at 16px; `medium` is the natural size.\"\n },\n { name: \"avatar\", group: \"content\", kind: \"keyOnly\", description: \"A small circle sitting in a line of text.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"bordered\", \"circular\", \"rounded\"],\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"circular\", value: \"circular\" },\n { from: \"rounded\", value: \"rounded\" }\n ],\n description:\n \"The look, several words at once: `bordered` (a hairline border, for images with white edges), \" +\n \"`circular` (cropped to a circle; a pill when not square), `rounded` (softly rounded corners). \" +\n \"Old names: `bordered`, `circular`, `rounded` written alone.\"\n },\n {\n name: \"background\",\n group: \"appearance\",\n kind: \"valueAndKey\",\n values: \"hues\",\n description:\n 'A hue behind the picture, drawn soft (its light tint), with room round the picture: `background=\"yellow\"`. ' +\n \"With `circular` it's a circle. A transparent drawing on a coloured disc, so it has no hairline round it: \" +\n \"the theme's hairline is for photos with white edges, which `bordered` names.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: a block centred in its container. Its old name was `centered`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded: shown as unavailable.\" },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Fills its container's width.\" },\n {\n name: \"inline\",\n group: \"layout\",\n kind: \"keyOnly\",\n description: \"Sits inline in running text instead of as a block.\"\n },\n {\n name: \"floated\",\n group: \"layout\",\n kind: \"valueAndKey\",\n values: \"floats\",\n description: \"Floats `left` or `right` of the text.\"\n },\n {\n name: \"spacing\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"md\", \"left\", \"right\"],\n classes: { md: \"spaced\", left: \"left spaced\", right: \"right spaced\" },\n replaces: [{ from: \"spaced\", value: \"md\" }],\n description:\n \"Room from the text around it: `md` on both sides, or `left` / `right` only. Its old name was `spaced`.\"\n },\n {\n name: \"vertical-align\",\n group: \"layout\",\n kind: \"verticalAlign\",\n values: \"verticalAlignments\",\n description: \"Aligns `top`, `middle` or `bottom` against the text (or, in a group, the row).\"\n },\n { name: \"src\", group: \"link\", kind: \"string\", description: \"Image URL, as the native `<img src>`.\" },\n {\n name: \"caption\",\n group: \"content\",\n kind: \"string\",\n description:\n \"A caption under the picture: the image becomes a figure (`<figure>` and `<figcaption>`). The `caption` \" +\n \"slot is its rich version.\"\n },\n {\n name: \"alt\",\n group: \"content\",\n kind: \"string\",\n description: 'Text alternative, as the native `<img alt>`; `alt=\"\"` marks the image decorative.'\n },\n {\n name: \"width\",\n group: \"layout\",\n kind: \"number\",\n description:\n \"Intrinsic width in px, as the native `<img width>`: reserves space before load. NOT the column \" +\n \"`width` grammar; size variations still set the rendered width.\"\n },\n {\n name: \"height\",\n group: \"layout\",\n kind: \"number\",\n description: \"Intrinsic height in px, as the native `<img height>`: reserves space before load.\"\n },\n {\n name: \"aspect-ratio\",\n group: \"appearance\",\n kind: \"string\",\n description:\n \"Its shape, width to height: `2:3` (a book's cover), `16:9`, `1` (a square); `2/3` too. The whole \" +\n \"picture shows inside that shape, unless `crop`. So a row of cards lines up, whatever shape each picture is.\"\n },\n {\n name: \"crop\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n key: \"cropped\",\n values: \"attachments\",\n description:\n \"Fills its shape (`aspect-ratio`, or its `size` and `height`), cutting off what doesn't fit, rather than \" +\n 'showing the whole picture. `crop` alone keeps the middle; `crop=\"top\"` keeps the top (a face), ' +\n \"`bottom`, `left`, `right`, `top left` ...\"\n },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"enum\",\n values: [\"eager\", \"lazy\"],\n description: \"When to load, as the native `<img loading>`.\"\n },\n {\n name: \"zoom\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"A click (or Enter) shows it full size, over the page, in the page's `<ui-zoom>`; with `link`, a click with \" +\n \"a modifier key still follows the link.\"\n },\n {\n name: \"link\",\n group: \"link\",\n kind: \"string\",\n replaces: [\"href\"],\n description: \"Renders a link (`<a>`) around the image. Its old name was `href`.\"\n }\n ],\n events: [],\n slots: [{ name: \"caption\", description: \"The rich version of `caption`: links, emphasis.\" }],\n parts: [\n { name: \"figure\", description: \"The `<figure>` round the picture and its caption, with `caption`.\" },\n { name: \"caption\", description: \"The `<figcaption>` under the picture.\" },\n { name: \"image\", description: \"The image box: the `<img>`, or the `<a>` with `link`.\" },\n { name: \"img\", description: \"With `link`: the `<img>` inside the link.\" }\n ],\n states: [\n { name: \"disabled\", description: \"Faded: shown as unavailable.\" },\n { name: \"shaped\", description: \"`aspect-ratio` gives it a shape.\" }\n ],\n texts: [\n { key: \"zoom\", text: \"{alt}: show full size\", description: \"With `zoom`: the image's name, as a button.\" },\n { key: \"zoomUntitled\", text: \"Show the image full size\", description: \"With `zoom`, and no `alt`: its name.\" }\n ]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { imageVocabulary } from \"./UIImage.en\"\n\nimport imageCSS from \"./UIImage.css?inline\"\n\n/****************\n * ### `UIImage`\n * The component behind `<ui-image>`: an image, optionally a link.\n *\n * - Its shadow DOM is `<img class=\"ui … image\" part=\"image\" src alt width height loading>`;\n * with `link`, Fomantic's wrapper form, `<a class=\"ui … image\" part=\"image\" href><img part=\"img\" …></a>`,\n * the link carrying the classes.\n * The element is `display: contents`: the inner box IS the image, so it floats and sits in text as Fomantic's did.\n *\n * - `alt` passes straight through:\n * - `alt=\"\"` is a decorative image (assistive tech skips it)\n * - a MISSING `alt` stays missing: a bug to fix in the page, which axe reports,\n * not one to hide with an empty default\n * - a linked image's `alt` names the link\n * - `width` / `height` are the native intrinsic size (they reserve space before it loads);\n * `size` sets the drawn width.\n * - `caption` (or the `caption` slot) makes it a FIGURE (epic `ui-gaps` P12):\n * `<figure part=\"figure\">` round the image (or its link), then `<figcaption part=\"caption\">` under it,\n * no wider than the picture.\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, the image (or its link) inert, `aria-disabled`; a link also loses its link.\n * - `aspect-ratio` and `crop` (epic `language` I18): its shape, and whether it fills it.\n * - `:state(shaped)`, with the ratio as the image box's private token (`--_image-ratio`),\n * so `UIImage.css` draws it and a page's `::part(image)` still wins\n * - `crop` is class words, as Fomantic writes a variation: `ui top cropped image`\n * - only while set: with neither, the `<img>`'s own `width` / `height` keep reserving its space before it loads\n * - `zoom` (epic `ui-gaps` P14): a plain click, or Enter / Space, shows it full size in the page's `<ui-zoom>`\n * (`ImageZoom.show()`, loaded on the first one).\n * - without `link`, the image is a button for it: focusable, named \"<alt>: show full size\"\n * - with `link`, a click with a modifier key still follows the link\n ****************/\nexport class UIImage extends E.UIComponent<typeof imageVocabulary> {\n @E.proto static vocabulary = imageVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { image: imageCSS },\n // `loading`: Fomantic's placeholder look\n loading: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /** Which named slots have content (the `caption` slot). */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** A figure: `caption`, or something in the `caption` slot. */\n get hasCaption(): boolean {\n return !!this.caption || this.slots.hasContent(this.slotForName(\"caption\"))\n }\n\n render(): JSX.Element {\n return (\n <Show when={this.hasCaption} fallback={this.picture()}>\n <figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>\n </Show>\n )\n }\n\n /** The image, or its link round it. */\n private picture(): JSX.Element {\n return (\n <Show when={this.link} fallback={this.image(\"image\")}>\n <a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : undefined}\n style={this.shapeTokens}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>\n </Show>\n )\n }\n\n /** The `<img>`: the root (part `image`, with the classes), or the link's child (part `img`). */\n private image(part: \"image\" | \"img\"): JSX.Element {\n const isButton = () => part === \"image\" && this.isZoomButton\n return (\n <img\n class={part === \"image\" ? this.rootClass : undefined}\n part={this.partForName(part)}\n src={this.src}\n alt={this.alt}\n width={this.width}\n height={this.height}\n loading={this.loading as \"eager\" | \"lazy\" | undefined}\n style={part === \"image\" ? this.shapeTokens : undefined}\n role={isButton() ? \"button\" : undefined}\n tabindex={isButton() ? 0 : undefined}\n aria-label={isButton() ? this.zoomLabel : undefined}\n aria-haspopup={isButton() ? \"dialog\" : undefined}\n onClick={part === \"image\" ? this.onZoomClick : undefined}\n onKeyDown={part === \"image\" ? this.onZoomKey : undefined}\n />\n )\n }\n\n ////////////////\n // ## Shape and crop\n ////////////////\n\n /**\n * `aspect-ratio`, as CSS writes it: `2:3`, `2/3` => `2 / 3`; `1.5` as is.\n * - `undefined` without one, or with one that isn't a ratio (a dev warning says so).\n */\n @E.cssState(\"shaped\")\n get ratio(): string | undefined {\n const written = this.aspectRatio?.trim()\n if (!written) return undefined\n const match = RATIO.exec(written)\n if (match) return match[2] ? `${match[1]} / ${match[2]}` : match[1]\n E.Warnings.devWarn(\"<ui-image>\", `aspect-ratio=\"${written}\" isn't a ratio: write \\`2:3\\`, \\`16/9\\` or \\`1\\``)\n return undefined\n }\n\n /** The image box's private token for its shape (the `<img>`, or its link), read by `UIImage.css`. */\n get shapeTokens(): Record<string, string> | undefined {\n return this.ratio ? { \"--_image-ratio\": this.ratio } : undefined\n }\n\n ////////////////\n // ## Zoom\n ////////////////\n\n /** `zoom`, with no link: the image itself is the button that shows it full size. */\n get isZoomButton(): boolean {\n return !!this.zoom && !this.link && !this.disabled\n }\n\n /** The zoom button's name: its alt text, then what it does. */\n get zoomLabel(): string {\n return this.alt ? this.translationForKey(\"zoom\", { alt: this.alt }) : this.translationForKey(\"zoomUntitled\")\n }\n\n /** A plain click on it (or its link), with `zoom`: shown full size, the link not followed. */\n @E.untracked\n private readonly onZoomClick = (event: MouseEvent) => {\n if (!this.zoom || this.disabled || event.button !== 0) return\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return\n event.preventDefault()\n this.showFullSize()\n }\n\n /** Enter or Space on the zoom button. */\n @E.untracked\n private readonly onZoomKey = (event: KeyboardEvent) => {\n if (!this.isZoomButton || (event.key !== \"Enter\" && event.key !== \" \")) return\n event.preventDefault()\n this.showFullSize()\n }\n\n /** In the page's `<ui-zoom>`: its family (and `ImageZoom`) loaded on the first one, so an image without `zoom` never pays for it. */\n private showFullSize() {\n const image = this.domElement.shadowRoot?.querySelector(\"img\")\n if (!image) return\n void import(\"spell/ui/components/ui-zoom\")\n .then(({ ImageZoom }) => ImageZoom.show(image))\n .catch((error) => console.error(error))\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIImage extends E.AttributeValues<typeof imageVocabulary> {}\n\n/** The figure's class. */\nconst FIGURE = \"figure\"\n\n/** An `aspect-ratio`: `2:3`, `2/3`, `2 / 3`, or one number, `1.5`. */\nconst RATIO = /^(\\d+(?:\\.\\d+)?)\\s*(?:[:/]\\s*(\\d+(?:\\.\\d+)?))?$/\n","/**\n * The English vocabulary of `<ui-images>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots and parts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - How the family's attributes become class words: `UIImage.en.ts`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `imagesVocabulary`\n * The names of `<ui-images>`, a group of images in one wrapping row: `<div class=\"ui … images\" part=\"group\">`.\n ****************/\nexport const imagesVocabulary = {\n tag: \"ui-images\",\n icon: \"images outline\",\n topics: [\"images\", \"media\", \"layout\", \"elements\"],\n aka: [\"image group\", \"gallery\", \"avatars\"],\n noun: \"images\",\n partOfSpeech: \"property\",\n description: \"A group of images can be formatted together.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Width of every image in the group, `mini` ... `massive`.\"\n },\n { name: \"avatar\", group: \"content\", kind: \"keyOnly\", description: \"Every image a small circle.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"bordered\", \"circular\", \"rounded\"],\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"circular\", value: \"circular\" },\n { from: \"rounded\", value: \"rounded\" }\n ],\n description:\n \"Every image's look, several words at once: `bordered` (a hairline border), `circular` (cropped to a \" +\n \"circle), `rounded` (softly rounded corners). Old names: `bordered`, `circular`, `rounded` written alone.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: rows centred in the container. Its old name was `centered`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"The whole group faded.\" },\n {\n name: \"fluid\",\n group: \"layout\",\n kind: \"keyOnly\",\n description: \"Every image fills the group's width, one per row.\"\n },\n {\n name: \"vertical-align\",\n group: \"layout\",\n kind: \"verticalAlign\",\n values: [\"top\", \"middle\", \"bottom\"],\n description: \"Aligns the images of a row `top`, `middle` (default) or `bottom`.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-image>`s (or plain `<img>`s).\" }],\n parts: [{ name: \"group\", description: \"The group box.\" }],\n states: [],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { imagesVocabulary } from \"./UIImages.en\"\n\nimport imageCSS from \"./UIImage.css?inline\"\n\n/****************\n * ### `UIImages`\n * The component behind `<ui-images>`: a group of images in one wrapping row.\n *\n * - Its shadow DOM is one box, `<div class=\"ui … images\" part=\"group\">`, around a slot for the images.\n * - `UIImage.css` hands the group's look (size, border, radius, spacing) to each child,\n * through `--_ui-images-*` tokens: a `display: contents` `<ui-image>` takes no box styles from `::slotted()`.\n ****************/\nexport class UIImages extends E.UIComponent<typeof imagesVocabulary> {\n @E.proto static vocabulary = imagesVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { image: imageCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIImages extends E.AttributeValues<typeof imagesVocabulary> {}\n","/**\n * The image family: defines `<ui-image>` and `<ui-images>`, and exports their components, `UIImage` and `UIImages`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-image` entry (its size is in `notes/report.md`).\n * - NOT the generic content part `<ui-image>` of cards and items (`plan.md`): those come with their owners.\n */\n\nimport { UIImage } from \"./UIImage\"\nimport { UIImages } from \"./UIImages\"\n\nUIImage.define()\nUIImages.define()\n\nexport { UIImage, UIImages }\n"],"mappings":";;;;;AAuBA,IAAa0D,IAAkB;CAC7B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAS;EAAS;CAAU;CAC/C,KAAK;EAAC;EAAW;EAAO;EAAS;EAAU;CAAW;CACtD,UAAU;CACV,MAAM;CACN,cAAc;CACd,QAAQ;CACR,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAU,OAAO;GAAW,MAAM;GAAW,aAAa;EAA4C;EAC9G;GACE,MAAM;GACN,OAAO;GACP,MAAM;GAEN,SAAS,CAAC;GACV,QAAQ;IAAC;IAAY;IAAY;GAAS;GAC1C,UAAU;IACR;KAAE,MAAM;KAAY,OAAO;IAAW;IACtC;KAAE,MAAM;KAAY,OAAO;IAAW;IACtC;KAAE,MAAM;KAAW,OAAO;IAAU;GACtC;GACA,aACE;EAGJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aACE;EAGJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ,CAAC,QAAQ;GACjB,SAAS,EAAE,QAAQ,WAAW;GAC9B,UAAU,CAAC;IAAE,MAAM;IAAY,OAAO;GAAS,CAAC;GAChD,aAAa;EACf;EACA;GAAE,MAAM;GAAY,OAAO;GAAU,MAAM;GAAW,aAAa;EAAgC;EACnG;GAAE,MAAM;GAAS,OAAO;GAAU,MAAM;GAAW,aAAa;EAA+B;EAC/F;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,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AAD,GAAA,KAAAzC,EAAAiC,GAAA,QAAAS,CAA8B;EAAzC,CAAA,GAAjB/C;CAIJ;AACF;AAdO,IAAAQ,EAAAwE,CAAA,GACIrE,EAAAsE,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEIvE,EAAAsE,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAANtE,EAAAqE,GAAMC,CAAA,GAAwD5E,EAAA4E,GAAA,UAAA,GAC1DzE,EADEyE,GACK,cAAarE,EAApBoE,GAAA,GADEC,GACkBN,CAAA,CAAA,GAApB/D,EAAAoE,GAAA,IADEC,CAAA,GAEIzE,EAFJyE,GAEW,gBAAerE,EAAtBoE,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,OAAO3E,EAAS;CAC/B,gBAAgB;AAClB,CAAA,CAAA,GAHeM,EAAAoE,GAAA,IAFJC,CAAA;AAAN,IAAMC,IAAND;ACLPR,EAAQ,OAAO,GACfS,EAAS,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-image/ui-images.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-images>'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-images\" data-omit=\"\">\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"avatar\"></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=\"appearance\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"align\"></ui-property>\n <ui-property name=\"fluid\"></ui-property>\n <ui-property name=\"vertical-align\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"States\" data-group=\"states\">\n <ui-property name=\"disabled\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-images.editor-Cb0D3vnI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-images.editor-Cb0D3vnI.js","names":["ui_images_editor_default"],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-include/ui-include.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-include>'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-include\" data-omit=\"\">\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"source\"></ui-property>\n <ui-property name=\"load\"></ui-property>\n <ui-property name=\"selector\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Advanced\" data-group=\"advanced\">\n <ui-property name=\"page-styles\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-include.editor-CZcsVJbH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-include.editor-CZcsVJbH.js","names":["ui_include_editor_default"],"sources":[],"mappings":""}
|
package/dist/ui-include.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./rolldown-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import "./rolldown-runtime-c6e9CmGy.js";
|
|
2
|
+
import { DOMLoadableElement as e, Gt as t, Jt as n, Kt as r, LoadableComponent as i, SourceError as a, SourceMarkup as o, SourceStatus as s, Ut as c, Warnings as l, Wt as u, Yt as d, ft as f, gt as p, ht as m, mt as h, onChange as g, proto as _, protoMerged as v, qt as y, st as b, state as x } from "./core.js";
|
|
3
|
+
import { RootLoader as S } from "./ui-root.js";
|
|
3
4
|
import "./ui-loader.js";
|
|
4
5
|
import "./ui-message.js";
|
|
5
|
-
import { RootLoader as S } from "./ui-root.js";
|
|
6
6
|
import { Show as C } from "solid-js";
|
|
7
7
|
import { className as w, createComponent as T, effect as E, getOwner as D, readShallow as O, ref as k, setAttribute as A, template as j } from "@solidjs/web";
|
|
8
|
-
|
|
8
|
+
// src/components/ui-include/UIInclude.en.ts
|
|
9
9
|
var M = {
|
|
10
10
|
tag: "ui-include",
|
|
11
11
|
icon: "file import",
|
|
@@ -25,9 +25,10 @@ var M = {
|
|
|
25
25
|
],
|
|
26
26
|
skeleton: "4 line paragraph",
|
|
27
27
|
noun: "include",
|
|
28
|
+
partOfSpeech: "structure",
|
|
28
29
|
description: "An include shows part of another page from this site in this one, loaded at once, when idle or when scrolled into view.",
|
|
29
30
|
attributes: [
|
|
30
|
-
...
|
|
31
|
+
...b,
|
|
31
32
|
{
|
|
32
33
|
name: "selector",
|
|
33
34
|
group: "appearance",
|
|
@@ -52,32 +53,32 @@ var M = {
|
|
|
52
53
|
name: "",
|
|
53
54
|
description: "Placeholder shown until the include loads (e.g. a server-rendered copy), then replaced."
|
|
54
55
|
}],
|
|
55
|
-
parts: [...
|
|
56
|
+
parts: [...h, {
|
|
56
57
|
name: "content",
|
|
57
58
|
description: "The box around the included markup (shadow root)."
|
|
58
59
|
}],
|
|
59
60
|
states: [...m],
|
|
60
61
|
texts: [...p]
|
|
61
|
-
}, N = "@layer ui.components.include.types{:host{display:block}.ui.include[hidden]{display:none}.ui.include{display:block}}@layer ui.components.include.content{[part~=loader]{margin-block:1em}}@layer ui.components.include.variations,ui.components.include.states;", P = /* @__PURE__ */ j("<slot>"), F = /* @__PURE__ */ j("<div>"), I, L, R, z, B, V, H, U, DOMIncludeElement = class extends
|
|
62
|
+
}, N = "@layer ui.components.include.types{:host{display:block}.ui.include[hidden]{display:none}.ui.include{display:block}}@layer ui.components.include.content{[part~=loader]{margin-block:1em}}@layer ui.components.include.variations,ui.components.include.states;", P = /* @__PURE__ */ j("<slot>"), F = /* @__PURE__ */ j("<div>"), I, L, R, z, B, V, H, U, DOMIncludeElement = class extends e {
|
|
62
63
|
static {
|
|
63
|
-
|
|
64
|
+
r(this, "DOMIncludeElement");
|
|
64
65
|
}
|
|
65
66
|
get contentRoot() {
|
|
66
67
|
return this.component?.contentRoot;
|
|
67
68
|
}
|
|
68
|
-
}, W = class _UIInclude extends (V =
|
|
69
|
+
}, W = class _UIInclude extends (V = i, B = [_], z = [v], R = [_], L = [x], I = [g("textToShow", "loadStatus", "selector", "pageStyles")], V) {
|
|
69
70
|
constructor() {
|
|
70
|
-
super(...arguments),
|
|
71
|
+
super(...arguments), d(H, 5, this), y(this, U, d(H, 8, this, !1)), d(H, 11, this), n(this, "box"), n(this, "root"), n(this, "selected"), n(this, "insertedFrom"), n(this, "insertedMarkup");
|
|
71
72
|
}
|
|
72
73
|
onMarkupChanged(e, t, n, r) {
|
|
73
|
-
t ===
|
|
74
|
+
t === s.loaded && this.insert({
|
|
74
75
|
text: e,
|
|
75
76
|
select: n || void 0,
|
|
76
77
|
pageStyles: !!r
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
80
|
get extraClass() {
|
|
80
|
-
return [this.load && this.load !== K ? this.load : void 0, this.loadStatus ===
|
|
81
|
+
return [this.load && this.load !== K ? this.load : void 0, this.loadStatus === s.loading ? q : void 0].filter(Boolean).join(" ") || void 0;
|
|
81
82
|
}
|
|
82
83
|
renderContent() {
|
|
83
84
|
let e = this;
|
|
@@ -121,7 +122,7 @@ var M = {
|
|
|
121
122
|
}), r.replaceChildren(i), this.root = r, this.selected = t ? r.firstElementChild ?? void 0 : void 0, this.insertedFrom = e, this.insertedMarkup = this.liveMarkup(), this.markupIsInserted = !0, _UIInclude.loadFamilies(r);
|
|
122
123
|
}
|
|
123
124
|
parse(e, t) {
|
|
124
|
-
return
|
|
125
|
+
return o.parse(e, {
|
|
125
126
|
page: this.domElement.ownerDocument,
|
|
126
127
|
source: this.source || void 0,
|
|
127
128
|
select: t
|
|
@@ -131,7 +132,7 @@ var M = {
|
|
|
131
132
|
if (!this.root) return;
|
|
132
133
|
let e = this.domElement.ownerDocument.createElement("template"), t = this.selected ? [this.selected] : [...this.root.childNodes];
|
|
133
134
|
for (let n of t) e.content.append(n.cloneNode(!0));
|
|
134
|
-
return
|
|
135
|
+
return o.restoreUrls(e.content), e.innerHTML;
|
|
135
136
|
}
|
|
136
137
|
get content() {
|
|
137
138
|
let e = super.content;
|
|
@@ -145,30 +146,28 @@ var M = {
|
|
|
145
146
|
saveFragment() {
|
|
146
147
|
if (!this.selector) return;
|
|
147
148
|
let e = this.selected?.id;
|
|
148
|
-
if (!e) throw new
|
|
149
|
+
if (!e) throw new a(`UIInclude.save(): "${this.selector}" matched an element with no id; give it one`, { cause: { kind: "save" } });
|
|
149
150
|
return e;
|
|
150
151
|
}
|
|
151
152
|
checkSource(e) {
|
|
152
|
-
|
|
153
|
+
o.checkNesting(this.domElement, e, (e) => e.localName === this.domElement.localName);
|
|
153
154
|
}
|
|
154
155
|
static loadFamilies(e) {
|
|
155
|
-
for (let t of S.undefinedTags(e)) S.loadTag(t)?.catch((e) =>
|
|
156
|
+
for (let t of S.undefinedTags(e)) S.loadTag(t)?.catch((e) => l.warn("<ui-include>", `<${t}> didn't load:`, e));
|
|
156
157
|
}
|
|
157
158
|
static spliceBody(e, t) {
|
|
158
159
|
let n = J.exec(e), r = Y.exec(e);
|
|
159
160
|
return !n || !r || r.index < n.index ? t : e.slice(0, n.index + n[0].length) + t + e.slice(r.index);
|
|
160
161
|
}
|
|
161
162
|
};
|
|
162
|
-
H =
|
|
163
|
+
H = t(V), U = /* @__PURE__ */ new WeakMap(), c(H, 4, "markupIsInserted", L, W, U), c(H, 1, "onMarkupChanged", I, W), c(H, 13, "vocabulary", B, W), c(H, 13, "elementSetup", z, W), c(H, 13, "wantsInlineContent", R, W), u(H, W), r(W, "UIInclude"), n(W, "vocabulary", d(H, 12, W, M)), d(H, 15, W), n(W, "elementSetup", d(H, 16, W, {
|
|
163
164
|
styleSheets: { include: N },
|
|
164
165
|
DOMElement: DOMIncludeElement,
|
|
165
166
|
delegatesFocus: !1
|
|
166
|
-
})),
|
|
167
|
+
})), d(H, 19, W), n(W, "wantsInlineContent", d(H, 20, W, !1)), d(H, 23, W);
|
|
167
168
|
var G = W, K = "eager", q = "loading", J = /<body\b[^>]*>/i, Y = /<\/body\s*>/i;
|
|
168
|
-
|
|
169
|
-
//#region src/components/ui-include/index.ts
|
|
169
|
+
// src/components/ui-include/index.ts
|
|
170
170
|
G.define();
|
|
171
|
-
//#endregion
|
|
172
171
|
export { DOMIncludeElement, G as UIInclude };
|
|
173
172
|
|
|
174
173
|
//# sourceMappingURL=ui-include.js.map
|
package/dist/ui-include.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-include.js","names":["UIT.SourceAttributes","UIT.SourceEvents","UIT.SourceParts","UIT.SourceStates","UIT.SourceTexts","<Show when={this.pageStyles || !this.markupIsInserted}>\n <slot />\n </Show>","this","<slot />","ref={(box) => {\n this.box = box;\n }}","part={this.partForName(\"content\")}","hidden={!!this.pageStyles}","E.DOMLoadableElement","E.LoadableComponent","E.proto","E.protoMerged","E.state","E.onChange","_$createComponent","_$getOwner","_$readShallow","_$setAttribute","E.SourceError","__name","includeCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","SourceEvents","SourceTexts","SourceStates","SourceAttributes","SourceParts","__decoratorStart","getOwner$1","includeVocabulary","UIInclude_default","_tmpl$","_tmpl$2","_onMarkupChanged_dec","_markupIsInserted_dec","_wantsInlineContent_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_markupIsInserted","DOMLoadableElement","_UIInclude","LoadableComponent","proto","protoMerged","state","onChange","loadStatus","SourceStatus","select","pageStyles","EAGER","LOADING_CLASS","_self$","createComponent","Show","_el$","_el$2","ref","box","effect","readShallow","className","_p$","t","setAttribute","a","target","markup","text","error","SourceMarkup","holder","nodes","node","live","id","SourceError","source","tag","RootLoader","root","Warnings","open","BODY_OPEN","file","close","BODY_CLOSE","body","UIInclude"],"sources":["../src/components/ui-include/UIInclude.en.ts","../src/components/ui-include/UIInclude.css?inline","../src/components/ui-include/UIInclude.tsx","../src/components/ui-include/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-include>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The source pieces (`source`, `load`, `ui-loaded` ... `ui-error`, the loader and error parts, the states and texts)\n * are shared with `<ui-code>` and `<ui-markdown>`: `UIT.Source*`, which `LoadableComponent` reads.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `includeVocabulary`\n * The names of `<ui-include>`, another page of this site shown here:\n * `source`'s `<body>` (or its `select` match), in a shadow root, or in the light DOM with `page-styles`.\n ****************/\nexport const includeVocabulary = {\n tag: \"ui-include\",\n icon: \"file import\",\n topics: [\"containers\", \"layout\", \"modules\"],\n aka: [\"island\", \"partial\", \"fragment\", \"server-side include\", \"html import\", \"transclusion\", \"embed\"],\n skeleton: \"4 line paragraph\",\n noun: \"include\",\n description:\n \"An include shows part of another page from this site in this one, loaded at once, when idle or when scrolled into view.\",\n attributes: [\n ...UIT.SourceAttributes,\n {\n name: \"selector\",\n group: \"appearance\",\n replaces: [\"select\"],\n kind: \"string\",\n description:\n \"CSS selector: include only the first element of `source` it matches (default: everything in its `<body>`). \" +\n \"With it, `save()` saves just that element, by its `id`. Its old name was `select`.\"\n },\n {\n name: \"page-styles\",\n group: \"advanced\",\n kind: \"boolean\",\n property: \"pageStyles\",\n description:\n \"Put the included markup in the element's LIGHT DOM, so the page's stylesheets style it. Default: a shadow \" +\n \"root, where only inherited values (fonts, colours, `--ui-*` tokens) reach it.\"\n }\n ],\n events: [\n ...UIT.SourceEvents,\n {\n name: \"ui-drawing\",\n detail: \"{ fragment: DocumentFragment, source?: string }\",\n description:\n \"The markup is about to go in: `fragment` holds it, parsed and URL-rewritten, not yet in the page. A \" +\n \"listener may read or change it first (a docs page keeps its examples' markup before they upgrade).\"\n }\n ],\n slots: [\n {\n name: \"\",\n description: \"Placeholder shown until the include loads (e.g. a server-rendered copy), then replaced.\"\n }\n ],\n parts: [...UIT.SourceParts, { name: \"content\", description: \"The box around the included markup (shadow root).\" }],\n states: [...UIT.SourceStates],\n texts: [...UIT.SourceTexts]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-include>`: ours, not Fomantic's.\n * - It styles the component's shadow DOM:\n * - the source parts (`<ui-loader part=\"loader\">` while loading, `<ui-message part=\"error\">` on failure)\n * - then the placeholder `<slot>` (until loaded; always, with `page-styles`)\n * - then `<div class=\"ui include\" part=\"content\">` holding the included markup (`hidden` with `page-styles`).\n * - Words before the noun, hooks for page CSS: the `load` mode when deferred (`ui visible include`, `idle`),\n * and `loading` while `source` loads (the box is empty until then anyway).\n * - The DOM element is a block: an include stands for a part of a page.\n * The box adds nothing of its own: the included markup brings its look,\n * and inherits the page's fonts, colours and `--ui-*` tokens.\n */\n\n@layer ui.components.include.types, ui.components.include.content, ui.components.include.variations, ui.components.include.states;\n\n@layer ui.components.include.types {\n :host {\n display: block;\n }\n\n .ui.include[hidden] {\n display: none;\n }\n\n .ui.include {\n display: block;\n }\n}\n\n@layer ui.components.include.content {\n /* the loader and the error message sit in the flow, where the content will be */\n [part~=\"loader\"] {\n margin-block: 1em;\n }\n}\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, type UIT } from \"spell/ui/core\"\nimport { RootLoader } from \"spell/ui/components/ui-root\"\nimport { includeVocabulary } from \"./UIInclude.en\"\n\nimport includeCSS from \"./UIInclude.css?inline\"\n\n/****************\n * ### `DOMIncludeElement`\n * The DOM element of `<ui-include>`: it adds `contentRoot`, where the included markup lives,\n * to the source API it inherits from `DOMLoadableElement` (`content`, `save()` ...).\n * - Above the component: its `elementSetup` reads this class while the component is defined.\n ****************/\nexport class DOMIncludeElement extends E.DOMLoadableElement<UIInclude> {\n /**\n * Where the included markup lives:\n * the shadow box (`[part~=content]`), or the DOM element itself with `page-styles`; `undefined` before it loads.\n * - For editors: edit there, then `save()`.\n */\n get contentRoot(): HTMLElement | undefined {\n return this.component?.contentRoot\n }\n}\n\n/****************\n * ### `UIInclude`\n * The component behind `<ui-include>`: another page of this site, shown in this one.\n *\n * - Like an Astro island: the page loads, and the include fills in when `load` says\n * (`eager`, `visible`, `idle`). Its children are a placeholder until then.\n * - What's shown: `source`'s `<body>` content, or just the first `select` match.\n * The `<head>` (title, styles, scripts) is left out.\n * - Where it goes: a shadow root by default (`<div part=\"content\">`),\n * so the page's CSS stays out, while inherited values (fonts, colours, `--ui-*` tokens) come in.\n * `page-styles` puts it in the LIGHT DOM instead, where the page's CSS (and `<ui-root>`) see it.\n * - Scripts in the included markup do NOT run (it's parsed by `DOMParser`).\n * - `ui-drawing` fires just before the markup goes in, with the fragment: a listener may read or change it.\n * - `ui-*` tags inside are loaded on demand, as `<ui-root>` loads them (`RootLoader`):\n * a shadow root is out of a root's sight.\n * - Relative `href` / `src` / `action` / `poster` / `source` are rewritten against `source`,\n * so links, images and nested includes point where they did there.\n * The originals are kept (`data-ui-include-*`), for saving.\n * - Nesting: an include inside an include of the same file, or nested deeper than `MAX_DEPTH`, shows an error.\n * - `content` (and so `save()`) is the FILE:\n * - the source text as fetched, while the markup is untouched\n * - once it's edited in place, the live markup spliced back into the file's `<body>` (byte-exact outside it)\n * - with `select`, the matched element's markup alone, saved by its `id` (`fragment`).\n ****************/\nexport class UIInclude extends E.LoadableComponent<typeof includeVocabulary> {\n @E.proto static vocabulary = includeVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { include: includeCSS },\n DOMElement: DOMIncludeElement,\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n @E.proto static wantsInlineContent = false\n\n /** Markup is in place: the placeholder slot goes (shadow mode). */\n @E.state accessor markupIsInserted = false\n\n /** The shadow box the markup goes in, once rendered. */\n private box?: HTMLElement\n\n /** Where the markup is now: `box`, or the DOM element (`page-styles`). */\n private root?: HTMLElement\n\n /** The element `select` matched, in the live markup. */\n private selected?: Element\n\n /** The text the live markup was built from: a new `content` rebuilds it. */\n private insertedFrom?: string\n\n /** The markup as first inserted: is it edited since? */\n private insertedMarkup?: string\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** Insert the markup whenever the text, `select` or `page-styles` change, once loaded. */\n @E.onChange(\"textToShow\", \"loadStatus\", \"selector\", \"pageStyles\")\n protected onMarkupChanged(\n text: string,\n loadStatus: E.SourceStatus,\n select: string | undefined,\n pageStyles: boolean | undefined\n ) {\n if (loadStatus === E.SourceStatus.loaded)\n this.insert({ text, select: select || undefined, pageStyles: !!pageStyles })\n }\n\n /**\n * Words before the noun, hooks for page CSS:\n * - a deferred `load` mode (`ui visible include`: e.g. reserve room for a lazy island)\n * - `loading` while `source` loads\n */\n protected get extraClass(): string | undefined {\n const mode = this.load && this.load !== EAGER ? this.load : undefined\n const loading = this.loadStatus === E.SourceStatus.loading ? LOADING_CLASS : undefined\n return [mode, loading].filter(Boolean).join(\" \") || undefined\n }\n\n /** The placeholder slot (and, with `page-styles`, the markup itself), and the shadow box. */\n protected renderContent(): JSX.Element {\n return (\n <>\n <Show when={this.pageStyles || !this.markupIsInserted}>\n <slot />\n </Show>\n <div\n class={this.rootClass}\n part={this.partForName(\"content\")}\n hidden={!!this.pageStyles}\n ref={(box: HTMLDivElement) => {\n this.box = box\n }}\n />\n </>\n )\n }\n\n /** Where the included markup lives: the shadow box, or the DOM element with `page-styles`. */\n get contentRoot(): HTMLElement | undefined {\n return this.root\n }\n\n /**\n * Put `text`'s markup in place: parsed, `select`ed, URLs rewritten; then load the `ui-*` families it uses.\n * - `pageStyles`: into the DOM element's light DOM, else the shadow box.\n * - SIDE EFFECT: `ui-drawing` first, with the fragment, while it's still out of the page.\n * - A selector that's invalid or matches nothing is a `render` failure.\n */\n private insert({ text, select, pageStyles }: { text: string; select?: string; pageStyles: boolean }) {\n const target = pageStyles ? this.domElement : this.box\n if (!target) return\n let markup: DocumentFragment\n try {\n markup = this.parse(text, select)\n } catch (error) {\n this.onLoadError(error, \"render\")\n return\n }\n if (this.root && this.root !== target) this.root.replaceChildren()\n this.send(\"ui-drawing\", { fragment: markup, source: this.source || undefined } satisfies IncludeInsertDetail)\n target.replaceChildren(markup)\n this.root = target\n this.selected = select ? (target.firstElementChild ?? undefined) : undefined\n this.insertedFrom = text\n this.insertedMarkup = this.liveMarkup()\n this.markupIsInserted = true\n UIInclude.loadFamilies(target)\n }\n\n /**\n * `text` as a fragment of this document: `<body>`'s content or the `select` match, URLs rewritten.\n * - Throws a `render` `SourceError` for a selector that's invalid or matches nothing.\n */\n private parse(text: string, select: string | undefined): DocumentFragment {\n return E.SourceMarkup.parse(text, { page: this.domElement.ownerDocument, source: this.source || undefined, select })\n }\n\n /** The live markup (or the `select`ed element's), with every rewritten URL back as written; none before insert. */\n private liveMarkup(): string | undefined {\n if (!this.root) return undefined\n const holder = this.domElement.ownerDocument.createElement(\"template\")\n const nodes = this.selected ? [this.selected] : [...this.root.childNodes]\n for (const node of nodes) holder.content.append(node.cloneNode(true))\n E.SourceMarkup.restoreUrls(holder.content)\n return holder.innerHTML\n }\n\n ////////////////\n // ## Source hooks\n ////////////////\n\n /**\n * The FILE as it should be saved:\n * - the text as loaded, while the markup is untouched (or not yet rebuilt from a new `content`)\n * - else the live markup: the `select`ed element alone, or spliced into the file's `<body>`\n */\n get content(): string {\n const text = super.content\n if (text !== this.insertedFrom) return text\n const live = this.liveMarkup()\n if (live === undefined || live === this.insertedMarkup) return this.selected ? (this.insertedMarkup ?? text) : text\n return this.selected ? live : UIInclude.spliceBody(text, live)\n }\n\n /** As `LoadableComponent`'s: a getter override hides the inherited setter, so it's repeated here. */\n set content(text: string) {\n super.content = text\n }\n\n /** With `select`: the matched element's `id`, so only it is replaced; it MUST have one. */\n protected saveFragment(): string | undefined {\n if (!this.selector) return undefined\n const id = this.selected?.id\n if (!id) {\n throw new E.SourceError(`UIInclude.save(): \"${this.selector}\" matched an element with no id; give it one`, {\n cause: { kind: \"save\" }\n })\n }\n return id\n }\n\n /** A cycle (inside an include of the same file) or nesting deeper than `MAX_DEPTH`. */\n protected checkSource(source: string) {\n E.SourceMarkup.checkNesting(this.domElement, source, (node) => node.localName === this.domElement.localName)\n }\n\n ////////////////\n // ## Helpers\n ////////////////\n\n /**\n * Load the family of every undefined tag under `root`, as `<ui-root>` would\n * (a component pack's tags are defined by its pack, as it registers).\n * - STATIC: needs nothing of the include, only `root`.\n * - NEVER throws: a tag that fails to load is a warning.\n */\n private static loadFamilies(root: ParentNode) {\n for (const tag of RootLoader.undefinedTags(root)) {\n RootLoader.loadTag(tag)?.catch((error: unknown) =>\n E.Warnings.warn(\"<ui-include>\", `<${tag}> didn't load:`, error)\n )\n }\n }\n\n /**\n * `file` with its `<body>` content replaced by `body`; `body` alone when `file` has no `<body>` tags.\n * - STATIC: pure text work, so tests call it without an element.\n */\n static spliceBody(file: string, body: string): string {\n const open = BODY_OPEN.exec(file)\n const close = BODY_CLOSE.exec(file)\n if (!open || !close || close.index < open.index) return body\n return file.slice(0, open.index + open[0].length) + body + file.slice(close.index)\n }\n}\n\n/** The vocabulary getters, typed (`UIComponent`'s doc). */\nexport interface UIInclude extends E.AttributeValues<typeof includeVocabulary> {}\n\n/** The default `load` mode: no class word. */\nconst EAGER: UIT.SourceLoadMode = \"eager\"\n\n/** Class word before the noun while `source` loads. */\nconst LOADING_CLASS = \"loading\"\n\n/** The `<body ...>` opening tag of a page, for splicing a saved body back into its file. */\nconst BODY_OPEN = /<body\\b[^>]*>/i\n\n/** The `</body>` closing tag of a page, as `BODY_OPEN`. */\nconst BODY_CLOSE = /<\\/body\\s*>/i\n\n/** The `detail` of `ui-drawing`. */\nexport type IncludeInsertDetail = {\n /** The markup about to go in: parsed, `select`ed, URLs rewritten; not yet in the page. */\n fragment: DocumentFragment\n /** `source` as written. */\n source?: string\n}\n","/**\n * The include family: defines `<ui-include>` and exports its component, `UIInclude`,\n * and its DOM element class, `DOMIncludeElement`.\n * - SIDE EFFECT: importing it defines the tag, and `<ui-loader>` and `<ui-message>` (its loading and error looks).\n * `UIInclude` imports `<ui-root>`'s family, whose `RootLoader` loads the families the included markup uses.\n * - Also the library's `spell/ui/ui-include` entry (its size is in `notes/report.md`).\n */\n\nimport { DOMIncludeElement, UIInclude } from \"./UIInclude\"\n\nimport \"spell/ui/components/ui-loader\"\nimport \"spell/ui/components/ui-message\"\n\nUIInclude.define()\n\nexport { UIInclude, DOMIncludeElement }\n"],"mappings":";;;;;;;;AAgBA,IAAaqC,IAAoB;CAC/B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAc;EAAU;CAAS;CAC1C,KAAK;EAAC;EAAU;EAAW;EAAY;EAAuB;EAAe;EAAgB;CAAO;CACpG,UAAU;CACV,MAAM;CACN,aACE;CACF,YAAY;EACV,GAAGrC;EACH;GACE,MAAM;GACN,OAAO;GACP,UAAU,CAAC,QAAQ;GACnB,MAAM;GACN,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,UAAU;GACV,aACE;EAEJ;CACF;CACA,QAAQ,CACN,GAAGC,GACH;EACE,MAAM;EACN,QAAQ;EACR,aACE;CAEJ,CACF;CACA,OAAO,CACL;EACE,MAAM;EACN,aAAa;CACf,CACF;CACA,OAAO,CAAC,GAAGC,GAAiB;EAAE,MAAM;EAAW,aAAa;CAAoD,CAAC;CACjH,QAAQ,CAAC,GAAGC,CAAgB;CAC5B,OAAO,CAAC,GAAGC,CAAe;AAC5B,0UEjEAqC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAea,oBAAN,cAAgCrC,EAAgC;CAfvE;EAeuE,EAAA,MAAA,mBAAA;CAAA;CAMrE,IAAI,cAAuC;EACzC,OAAO,KAAK,WAAW;CACzB;AACF,GA0BauC,IAAN,MAAM,oBAAkB,IAAAtC,GAC7B,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GA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AA5D,EAAAW,CAAA,GAUa,oBAAA,IAAA,QAAA,GAATpB,EAAAqB,GAAA,GAAS,oBAAlBL,GAVWQ,GAUOF,CAAA,GAuBlBtB,EAAAqB,GAAA,GAAU,mBADVN,GAhCWS,CAAA,GACFxB,EAAAqB,GAAA,IAAO,cAAhBF,GADWK,CAAA,GAEIxB,EAAAqB,GAAA,IAAO,gBAAtBH,GAFWM,CAAA,GAOFxB,EAAAqB,GAAA,IAAO,sBAAhBJ,GAPWO,CAAA,GAANvB,EAAAoB,GAAMG,CAAA,GAAgE5B,EAAA4B,GAAA,WAAA,GAClEzB,EADEyB,GACK,cAAatB,EAApBmB,GAAA,IADEG,GACkBb,CAAA,CAAA,GAApBT,EAAAmB,GAAA,IADEG,CAAA,GAEIzB,EAFJyB,GAEW,gBAAetB,EAAtBmB,GAAA,IAFJG,GAE0B;CACnC,aAAa,EAAE,SAAS3B,EAAW;CACnC,YAAY;CACZ,gBAAgB;AAClB,CAAA,CAAA,GAJeK,EAAAmB,GAAA,IAFJG,CAAA,GAOFzB,EAPEyB,GAOK,sBAAqBtB,EAA5BmB,GAAA,IAPEG,GAO0B,EAAA,CAAA,GAA5BtB,EAAAmB,GAAA,IAPEG,CAAA;AAAN,IAAMgD,IAANhD,GAoMDU,IAA4B,SAG5BC,IAAgB,WAGhBgC,IAAY,kBAGZG,IAAa;;;AClPnBE,EAAU,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-include.js","names":["UIT.SourceAttributes","UIT.SourceEvents","UIT.SourceParts","UIT.SourceStates","UIT.SourceTexts","<Show when={this.pageStyles || !this.markupIsInserted}>\n <slot />\n </Show>","this","<slot />","ref={(box) => {\n this.box = box;\n }}","part={this.partForName(\"content\")}","hidden={!!this.pageStyles}","E.DOMLoadableElement","E.LoadableComponent","E.proto","E.protoMerged","E.state","E.onChange","_$getOwner","_$setAttribute","E.SourceError","__name","includeCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","SourceEvents","SourceTexts","SourceStates","SourceParts","__privateAdd","SourceAttributes","getOwner$1","includeVocabulary","UIInclude_default","_tmpl$","_tmpl$2","_onMarkupChanged_dec","_markupIsInserted_dec","_wantsInlineContent_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_markupIsInserted","DOMLoadableElement","_UIInclude","LoadableComponent","proto","protoMerged","state","onChange","loadStatus","SourceStatus","select","pageStyles","EAGER","LOADING_CLASS","_self$","createComponent","Show","_el$","_el$2","ref","box","effect","readShallow","className","_p$","t","setAttribute","a","target","markup","text","error","SourceMarkup","holder","nodes","node","live","id","SourceError","source","tag","RootLoader","root","Warnings","open","BODY_OPEN","file","close","BODY_CLOSE","body","UIInclude"],"sources":["../src/components/ui-include/UIInclude.en.ts","../src/components/ui-include/UIInclude.tsx","../src/components/ui-include/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-include>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The source pieces (`source`, `load`, `ui-loaded` ... `ui-error`, the loader and error parts, the states and texts)\n * are shared with `<ui-code>` and `<ui-markdown>`: `UIT.Source*`, which `LoadableComponent` reads.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `includeVocabulary`\n * The names of `<ui-include>`, another page of this site shown here:\n * `source`'s `<body>` (or its `select` match), in a shadow root, or in the light DOM with `page-styles`.\n ****************/\nexport const includeVocabulary = {\n tag: \"ui-include\",\n icon: \"file import\",\n topics: [\"containers\", \"layout\", \"modules\"],\n aka: [\"island\", \"partial\", \"fragment\", \"server-side include\", \"html import\", \"transclusion\", \"embed\"],\n skeleton: \"4 line paragraph\",\n noun: \"include\",\n partOfSpeech: \"structure\",\n description:\n \"An include shows part of another page from this site in this one, loaded at once, when idle or when scrolled into view.\",\n attributes: [\n ...UIT.SourceAttributes,\n {\n name: \"selector\",\n group: \"appearance\",\n replaces: [\"select\"],\n kind: \"string\",\n description:\n \"CSS selector: include only the first element of `source` it matches (default: everything in its `<body>`). \" +\n \"With it, `save()` saves just that element, by its `id`. Its old name was `select`.\"\n },\n {\n name: \"page-styles\",\n group: \"advanced\",\n kind: \"boolean\",\n property: \"pageStyles\",\n description:\n \"Put the included markup in the element's LIGHT DOM, so the page's stylesheets style it. Default: a shadow \" +\n \"root, where only inherited values (fonts, colours, `--ui-*` tokens) reach it.\"\n }\n ],\n events: [\n ...UIT.SourceEvents,\n {\n name: \"ui-drawing\",\n detail: \"{ fragment: DocumentFragment, source?: string }\",\n description:\n \"The markup is about to go in: `fragment` holds it, parsed and URL-rewritten, not yet in the page. A \" +\n \"listener may read or change it first (a docs page keeps its examples' markup before they upgrade).\"\n }\n ],\n slots: [\n {\n name: \"\",\n description: \"Placeholder shown until the include loads (e.g. a server-rendered copy), then replaced.\"\n }\n ],\n parts: [...UIT.SourceParts, { name: \"content\", description: \"The box around the included markup (shadow root).\" }],\n states: [...UIT.SourceStates],\n texts: [...UIT.SourceTexts]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, type UIT } from \"spell/ui/core\"\nimport { RootLoader } from \"spell/ui/components/ui-root\"\nimport { includeVocabulary } from \"./UIInclude.en\"\n\nimport includeCSS from \"./UIInclude.css?inline\"\n\n/****************\n * ### `DOMIncludeElement`\n * The DOM element of `<ui-include>`: it adds `contentRoot`, where the included markup lives,\n * to the source API it inherits from `DOMLoadableElement` (`content`, `save()` ...).\n * - Above the component: its `elementSetup` reads this class while the component is defined.\n ****************/\nexport class DOMIncludeElement extends E.DOMLoadableElement<UIInclude> {\n /**\n * Where the included markup lives:\n * the shadow box (`[part~=content]`), or the DOM element itself with `page-styles`; `undefined` before it loads.\n * - For editors: edit there, then `save()`.\n */\n get contentRoot(): HTMLElement | undefined {\n return this.component?.contentRoot\n }\n}\n\n/****************\n * ### `UIInclude`\n * The component behind `<ui-include>`: another page of this site, shown in this one.\n *\n * - Like an Astro island: the page loads, and the include fills in when `load` says\n * (`eager`, `visible`, `idle`). Its children are a placeholder until then.\n * - What's shown: `source`'s `<body>` content, or just the first `select` match.\n * The `<head>` (title, styles, scripts) is left out.\n * - Where it goes: a shadow root by default (`<div part=\"content\">`),\n * so the page's CSS stays out, while inherited values (fonts, colours, `--ui-*` tokens) come in.\n * `page-styles` puts it in the LIGHT DOM instead, where the page's CSS (and `<ui-root>`) see it.\n * - Scripts in the included markup do NOT run (it's parsed by `DOMParser`).\n * - `ui-drawing` fires just before the markup goes in, with the fragment: a listener may read or change it.\n * - `ui-*` tags inside are loaded on demand, as `<ui-root>` loads them (`RootLoader`):\n * a shadow root is out of a root's sight.\n * - Relative `href` / `src` / `action` / `poster` / `source` are rewritten against `source`,\n * so links, images and nested includes point where they did there.\n * The originals are kept (`data-ui-include-*`), for saving.\n * - Nesting: an include inside an include of the same file, or nested deeper than `MAX_DEPTH`, shows an error.\n * - `content` (and so `save()`) is the FILE:\n * - the source text as fetched, while the markup is untouched\n * - once it's edited in place, the live markup spliced back into the file's `<body>` (byte-exact outside it)\n * - with `select`, the matched element's markup alone, saved by its `id` (`fragment`).\n ****************/\nexport class UIInclude extends E.LoadableComponent<typeof includeVocabulary> {\n @E.proto static vocabulary = includeVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { include: includeCSS },\n DOMElement: DOMIncludeElement,\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n @E.proto static wantsInlineContent = false\n\n /** Markup is in place: the placeholder slot goes (shadow mode). */\n @E.state accessor markupIsInserted = false\n\n /** The shadow box the markup goes in, once rendered. */\n private box?: HTMLElement\n\n /** Where the markup is now: `box`, or the DOM element (`page-styles`). */\n private root?: HTMLElement\n\n /** The element `select` matched, in the live markup. */\n private selected?: Element\n\n /** The text the live markup was built from: a new `content` rebuilds it. */\n private insertedFrom?: string\n\n /** The markup as first inserted: is it edited since? */\n private insertedMarkup?: string\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** Insert the markup whenever the text, `select` or `page-styles` change, once loaded. */\n @E.onChange(\"textToShow\", \"loadStatus\", \"selector\", \"pageStyles\")\n protected onMarkupChanged(\n text: string,\n loadStatus: E.SourceStatus,\n select: string | undefined,\n pageStyles: boolean | undefined\n ) {\n if (loadStatus === E.SourceStatus.loaded)\n this.insert({ text, select: select || undefined, pageStyles: !!pageStyles })\n }\n\n /**\n * Words before the noun, hooks for page CSS:\n * - a deferred `load` mode (`ui visible include`: e.g. reserve room for a lazy island)\n * - `loading` while `source` loads\n */\n protected get extraClass(): string | undefined {\n const mode = this.load && this.load !== EAGER ? this.load : undefined\n const loading = this.loadStatus === E.SourceStatus.loading ? LOADING_CLASS : undefined\n return [mode, loading].filter(Boolean).join(\" \") || undefined\n }\n\n /** The placeholder slot (and, with `page-styles`, the markup itself), and the shadow box. */\n protected renderContent(): JSX.Element {\n return (\n <>\n <Show when={this.pageStyles || !this.markupIsInserted}>\n <slot />\n </Show>\n <div\n class={this.rootClass}\n part={this.partForName(\"content\")}\n hidden={!!this.pageStyles}\n ref={(box: HTMLDivElement) => {\n this.box = box\n }}\n />\n </>\n )\n }\n\n /** Where the included markup lives: the shadow box, or the DOM element with `page-styles`. */\n get contentRoot(): HTMLElement | undefined {\n return this.root\n }\n\n /**\n * Put `text`'s markup in place: parsed, `select`ed, URLs rewritten; then load the `ui-*` families it uses.\n * - `pageStyles`: into the DOM element's light DOM, else the shadow box.\n * - SIDE EFFECT: `ui-drawing` first, with the fragment, while it's still out of the page.\n * - A selector that's invalid or matches nothing is a `render` failure.\n */\n private insert({ text, select, pageStyles }: { text: string; select?: string; pageStyles: boolean }) {\n const target = pageStyles ? this.domElement : this.box\n if (!target) return\n let markup: DocumentFragment\n try {\n markup = this.parse(text, select)\n } catch (error) {\n this.onLoadError(error, \"render\")\n return\n }\n if (this.root && this.root !== target) this.root.replaceChildren()\n this.send(\"ui-drawing\", { fragment: markup, source: this.source || undefined } satisfies IncludeInsertDetail)\n target.replaceChildren(markup)\n this.root = target\n this.selected = select ? (target.firstElementChild ?? undefined) : undefined\n this.insertedFrom = text\n this.insertedMarkup = this.liveMarkup()\n this.markupIsInserted = true\n UIInclude.loadFamilies(target)\n }\n\n /**\n * `text` as a fragment of this document: `<body>`'s content or the `select` match, URLs rewritten.\n * - Throws a `render` `SourceError` for a selector that's invalid or matches nothing.\n */\n private parse(text: string, select: string | undefined): DocumentFragment {\n return E.SourceMarkup.parse(text, { page: this.domElement.ownerDocument, source: this.source || undefined, select })\n }\n\n /** The live markup (or the `select`ed element's), with every rewritten URL back as written; none before insert. */\n private liveMarkup(): string | undefined {\n if (!this.root) return undefined\n const holder = this.domElement.ownerDocument.createElement(\"template\")\n const nodes = this.selected ? [this.selected] : [...this.root.childNodes]\n for (const node of nodes) holder.content.append(node.cloneNode(true))\n E.SourceMarkup.restoreUrls(holder.content)\n return holder.innerHTML\n }\n\n ////////////////\n // ## Source hooks\n ////////////////\n\n /**\n * The FILE as it should be saved:\n * - the text as loaded, while the markup is untouched (or not yet rebuilt from a new `content`)\n * - else the live markup: the `select`ed element alone, or spliced into the file's `<body>`\n */\n get content(): string {\n const text = super.content\n if (text !== this.insertedFrom) return text\n const live = this.liveMarkup()\n if (live === undefined || live === this.insertedMarkup) return this.selected ? (this.insertedMarkup ?? text) : text\n return this.selected ? live : UIInclude.spliceBody(text, live)\n }\n\n /** As `LoadableComponent`'s: a getter override hides the inherited setter, so it's repeated here. */\n set content(text: string) {\n super.content = text\n }\n\n /** With `select`: the matched element's `id`, so only it is replaced; it MUST have one. */\n protected saveFragment(): string | undefined {\n if (!this.selector) return undefined\n const id = this.selected?.id\n if (!id) {\n throw new E.SourceError(`UIInclude.save(): \"${this.selector}\" matched an element with no id; give it one`, {\n cause: { kind: \"save\" }\n })\n }\n return id\n }\n\n /** A cycle (inside an include of the same file) or nesting deeper than `MAX_DEPTH`. */\n protected checkSource(source: string) {\n E.SourceMarkup.checkNesting(this.domElement, source, (node) => node.localName === this.domElement.localName)\n }\n\n ////////////////\n // ## Helpers\n ////////////////\n\n /**\n * Load the family of every undefined tag under `root`, as `<ui-root>` would\n * (a component pack's tags are defined by its pack, as it registers).\n * - STATIC: needs nothing of the include, only `root`.\n * - NEVER throws: a tag that fails to load is a warning.\n */\n private static loadFamilies(root: ParentNode) {\n for (const tag of RootLoader.undefinedTags(root)) {\n RootLoader.loadTag(tag)?.catch((error: unknown) =>\n E.Warnings.warn(\"<ui-include>\", `<${tag}> didn't load:`, error)\n )\n }\n }\n\n /**\n * `file` with its `<body>` content replaced by `body`; `body` alone when `file` has no `<body>` tags.\n * - STATIC: pure text work, so tests call it without an element.\n */\n static spliceBody(file: string, body: string): string {\n const open = BODY_OPEN.exec(file)\n const close = BODY_CLOSE.exec(file)\n if (!open || !close || close.index < open.index) return body\n return file.slice(0, open.index + open[0].length) + body + file.slice(close.index)\n }\n}\n\n/** The vocabulary getters, typed (`UIComponent`'s doc). */\nexport interface UIInclude extends E.AttributeValues<typeof includeVocabulary> {}\n\n/** The default `load` mode: no class word. */\nconst EAGER: UIT.SourceLoadMode = \"eager\"\n\n/** Class word before the noun while `source` loads. */\nconst LOADING_CLASS = \"loading\"\n\n/** The `<body ...>` opening tag of a page, for splicing a saved body back into its file. */\nconst BODY_OPEN = /<body\\b[^>]*>/i\n\n/** The `</body>` closing tag of a page, as `BODY_OPEN`. */\nconst BODY_CLOSE = /<\\/body\\s*>/i\n\n/** The `detail` of `ui-drawing`. */\nexport type IncludeInsertDetail = {\n /** The markup about to go in: parsed, `select`ed, URLs rewritten; not yet in the page. */\n fragment: DocumentFragment\n /** `source` as written. */\n source?: string\n}\n","/**\n * The include family: defines `<ui-include>` and exports its component, `UIInclude`,\n * and its DOM element class, `DOMIncludeElement`.\n * - SIDE EFFECT: importing it defines the tag, and `<ui-loader>` and `<ui-message>` (its loading and error looks).\n * `UIInclude` imports `<ui-root>`'s family, whose `RootLoader` loads the families the included markup uses.\n * - Also the library's `spell/ui/ui-include` entry (its size is in `notes/report.md`).\n */\n\nimport { DOMIncludeElement, UIInclude } from \"./UIInclude\"\n\nimport \"spell/ui/components/ui-loader\"\nimport \"spell/ui/components/ui-message\"\n\nUIInclude.define()\n\nexport { UIInclude, DOMIncludeElement }\n"],"mappings":";;;;;;;;AAgBA,IAAamC,IAAoB;CAC/B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAc;EAAU;CAAS;CAC1C,KAAK;EAAC;EAAU;EAAW;EAAY;EAAuB;EAAe;EAAgB;CAAO;CACpG,UAAU;CACV,MAAM;CACN,cAAc;CACd,aACE;CACF,YAAY;EACV,GAAGnC;EACH;GACE,MAAM;GACN,OAAO;GACP,UAAU,CAAC,QAAQ;GACnB,MAAM;GACN,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,UAAU;GACV,aACE;EAEJ;CACF;CACA,QAAQ,CACN,GAAGC,GACH;EACE,MAAM;EACN,QAAQ;EACR,aACE;CAEJ,CACF;CACA,OAAO,CACL;EACE,MAAM;EACN,aAAa;CACf,CACF;CACA,OAAO,CAAC,GAAGC,GAAiB;EAAE,MAAM;EAAW,aAAa;CAAoD,CAAC;CACjH,QAAQ,CAAC,GAAGC,CAAgB;CAC5B,OAAO,CAAC,GAAGC,CAAe;AAC5B,G,uUClEAmC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAea,oBAAN,cAAgCnC,EAAgC;CAfvE;EAeuE,EAAA,MAAA,mBAAA;CAAA;CAMrE,IAAI,cAAuC;EACzC,OAAO,KAAK,WAAW;CACzB;AACF,GA0BaqC,IAAN,MAAM,oBAAkB,IAAApC,GAC7B,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAKH,IAAA,CAACD,CAAE,GAGH,IAAA,CAACE,CAAE,GAsBH,IAAA,CAACC,EAAW,cAAc,cAAc,YAAY,YAAY,CAAA,GAhCnC4B,EAAA,CAA8C;CAAtE,cAAA;EAyBL,AAzBK,MAAA,G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FvB,EAAAoB,GAAA,IAAO,cAAhBF,GADWK,CAAA,GAEIvB,EAAAoB,GAAA,IAAO,gBAAtBH,GAFWM,CAAA,GAOFvB,EAAAoB,GAAA,IAAO,sBAAhBJ,GAPWO,CAAA,GAANtB,EAAAmB,GAAMG,CAAA,GAAgE5B,EAAA4B,GAAA,WAAA,GAClEzB,EADEyB,GACK,cAAarB,EAApBkB,GAAA,IADEG,GACkBb,CAAA,CAAA,GAApBR,EAAAkB,GAAA,IADEG,CAAA,GAEIzB,EAFJyB,GAEW,gBAAerB,EAAtBkB,GAAA,IAFJG,GAE0B;CACnC,aAAa,EAAE,SAAS3B,EAAW;CACnC,YAAY;CACZ,gBAAgB;AAClB,CAAA,CAAA,GAJeM,EAAAkB,GAAA,IAFJG,CAAA,GAOFzB,EAPEyB,GAOK,sBAAqBrB,EAA5BkB,GAAA,IAPEG,GAO0B,EAAA,CAAA,GAA5BrB,EAAAkB,GAAA,IAPEG,CAAA;AAAN,IAAMgD,IAANhD,GAoMDU,IAA4B,SAG5BC,IAAgB,WAGhBgC,IAAY,kBAGZG,IAAa;;AClPnBE,EAAU,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-input/ui-input.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-input>'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-input\" data-omit=\"\">\n <ui-property-group label=\"Name\" data-group=\"name\">\n <ui-property name=\"label\"></ui-property>\n <ui-property name=\"name\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"icon-position\"></ui-property>\n <ui-property name=\"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=\"labeled\"></ui-property>\n <ui-property name=\"action\"></ui-property>\n <ui-property name=\"type\"></ui-property>\n <ui-property name=\"inputmode\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"fluid\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"States\" data-group=\"states\">\n <ui-property name=\"loading\"></ui-property>\n <ui-property name=\"disabled\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Form\" data-group=\"form\">\n <ui-property name=\"state\"></ui-property>\n <ui-property name=\"readonly\"></ui-property>\n <ui-property name=\"value\"></ui-property>\n <ui-property name=\"parameter\"></ui-property>\n <ui-property name=\"placeholder\"></ui-property>\n <ui-property name=\"required\"></ui-property>\n <ui-property name=\"pattern\"></ui-property>\n <ui-property name=\"min\"></ui-property>\n <ui-property name=\"max\"></ui-property>\n <ui-property name=\"step\"></ui-property>\n <ui-property name=\"minlength\"></ui-property>\n <ui-property name=\"maxlength\"></ui-property>\n <ui-property name=\"multiple\"></ui-property>\n <ui-property name=\"accept\"></ui-property>\n <ui-property name=\"autocomplete\"></ui-property>\n <ui-property name=\"rules\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-input.editor-budoNoB0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-input.editor-budoNoB0.js","names":["ui_input_editor_default"],"sources":[],"mappings":""}
|