spell-ui 0.8.5 → 0.8.7
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 +14 -6
- package/README-frameworks.md +22 -12
- package/README-migrating.md +7 -6
- package/README-runtime.md +14 -13
- package/README-site.md +11 -11
- package/README-themes.md +38 -11
- package/README.md +61 -73
- package/dist/Dragging-CMZoLEWQ.js +169 -0
- package/dist/Dragging-CMZoLEWQ.js.map +1 -0
- package/dist/{MarkdownEngine-CbuT9Mjc.js → MarkdownEngine-CW1WGqNp.js} +122 -100
- package/dist/MarkdownEngine-CW1WGqNp.js.map +1 -0
- package/dist/{PrefStore-CeaTtjTz.js → PrefStore-Qv0e5y04.js} +22 -22
- package/dist/PrefStore-Qv0e5y04.js.map +1 -0
- package/dist/ScrollingRow-7n7Z-HIE.js +88 -0
- package/dist/ScrollingRow-7n7Z-HIE.js.map +1 -0
- package/dist/SitePages-CciwREek.js +51 -0
- package/dist/SitePages-CciwREek.js.map +1 -0
- package/dist/{SlottedItems-Ch0tzzlL.js → SlottedItems-Du3aJwG1.js} +22 -22
- package/dist/{SlottedItems-Ch0tzzlL.js.map → SlottedItems-Du3aJwG1.js.map} +1 -1
- package/dist/ThemeDraft-B7NPif4d.js +805 -0
- package/dist/ThemeDraft-B7NPif4d.js.map +1 -0
- package/dist/TreeMeasure-BVJeGb1L.js +42 -0
- package/dist/TreeMeasure-BVJeGb1L.js.map +1 -0
- package/dist/UIButton-DFEds67r.js +6 -0
- package/dist/UIButton-DFEds67r.js.map +1 -0
- package/dist/UIInput-BodVbUoQ.js +6 -0
- package/dist/UIInput-BodVbUoQ.js.map +1 -0
- package/dist/{UIKeys-DJF2TIKE.js → UIKeys-Rh_gUZjP.js} +10 -9
- package/dist/UIKeys-Rh_gUZjP.js.map +1 -0
- package/dist/UILabel-DgJUBzB_.js +6 -0
- package/dist/UILabel-DgJUBzB_.js.map +1 -0
- package/dist/UIMenu-zdcAtwTa.js +42 -0
- package/dist/UIMenu-zdcAtwTa.js.map +1 -0
- package/dist/{UIRuntime-BBuehGly.js → UIRuntime-KH309p5B.js} +398 -207
- package/dist/UIRuntime-KH309p5B.js.map +1 -0
- package/dist/_spell-element/DOMElement.d.ts +62 -5
- package/dist/_spell-element/MoveAndResize.d.ts +75 -0
- package/dist/_spell-element/UIComponent.d.ts +42 -0
- package/dist/_spell-element/elements.types.d.ts +47 -0
- package/dist/_spell-element/index.d.ts +1 -0
- package/dist/_spell-element/vocabulary.types.d.ts +34 -2
- package/dist/{runtime → _util}/Api.d.ts +14 -4
- package/dist/_util/Dragging.d.ts +148 -0
- package/dist/_util/ListSelection.d.ts +46 -0
- package/dist/{util → _util}/LoadOnce.d.ts +9 -1
- package/dist/_util/ReconnectingSocket.d.ts +51 -0
- package/dist/_util/diagram/DiagramColumns.d.ts +14 -0
- package/dist/_util/diagram/DiagramLayout.d.ts +119 -0
- package/dist/_util/diagram/DiagramSVG.d.ts +17 -0
- package/dist/_util/dom.d.ts +10 -0
- package/dist/_util/fetching.d.ts +92 -0
- package/dist/_util/measures/Dimension.d.ts +63 -0
- package/dist/_util/measures/MeasureSystem.d.ts +66 -0
- package/dist/_util/measures/dimensions.generated.d.ts +16 -0
- package/dist/_util/persist/ColorScheme.d.ts +6 -0
- package/dist/_util/persist/ServerPlace.d.ts +42 -0
- package/dist/_util/persist/WaitedOnPlace.d.ts +27 -0
- package/dist/_util/persist/persist.types.d.ts +21 -2
- package/dist/_util/timing.d.ts +10 -1
- package/dist/api.js +8 -7
- package/dist/api.js.map +1 -1
- package/dist/components/ComponentDefinitions.d.ts +29 -0
- package/dist/components/components.es.d.ts +13 -0
- package/dist/components/components.types.d.ts +113 -8
- 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.en.d.ts +5 -1
- 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-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 +8 -3
- package/dist/components/ui-button/UIButton.en.d.ts +9 -4
- package/dist/components/ui-button/UIButton.es.d.ts +6 -0
- package/dist/components/ui-button/UIButton.fallback.d.ts +8 -3
- package/dist/components/ui-button/UIButtons.d.ts +1 -0
- package/dist/components/ui-button/UIButtons.en.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 +6 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
- package/dist/components/ui-card/CardClicks.d.ts +40 -0
- package/dist/components/ui-card/UICard.d.ts +41 -0
- package/dist/components/ui-card/UICard.en.d.ts +49 -0
- package/dist/components/ui-card/UICard.es.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +31 -0
- package/dist/components/ui-card/UICards.en.d.ts +31 -0
- package/dist/components/ui-card/UICards.es.d.ts +8 -0
- package/dist/components/ui-checkbox/CheckControl.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.es.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.types.d.ts +5 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +8 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +6 -0
- package/dist/components/ui-code/UICode.en.d.ts +1 -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/PackHotSwap.d.ts +17 -1
- 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 +11 -0
- package/dist/components/ui-container/UIContainer.en.d.ts +7 -0
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +268 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +106 -0
- package/dist/components/ui-diagram/UIDiagram.es.d.ts +37 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +98 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +38 -0
- package/dist/components/ui-diagram/UIDiagramNode.es.d.ts +16 -0
- package/dist/components/ui-diagram/index.d.ts +8 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +81 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +54 -0
- package/dist/components/ui-dimension/UIDimension.es.d.ts +22 -0
- package/dist/components/ui-dimension/index.d.ts +2 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +6 -1
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.es.d.ts +1 -1
- package/dist/components/ui-divider/UIDivider.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.es.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -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 +4 -2
- package/dist/components/ui-example/UIExample.es.d.ts +3 -2
- 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/FormBinding.d.ts +13 -1
- package/dist/components/ui-form/FormFields.d.ts +4 -4
- package/dist/components/ui-form/UIField.d.ts +30 -3
- package/dist/components/ui-form/UIField.en.d.ts +9 -0
- package/dist/components/ui-form/UIField.es.d.ts +6 -0
- 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 +15 -0
- package/dist/components/ui-form/UIForm.en.d.ts +6 -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-form/index.d.ts +2 -1
- package/dist/components/ui-grid/UIColumn.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.en.d.ts +1 -0
- 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 +3 -2
- package/dist/components/ui-icon/UIIcon.en.d.ts +3 -2
- 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 +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
- package/dist/components/ui-image/UIImage.d.ts +34 -0
- package/dist/components/ui-image/UIImage.en.d.ts +23 -0
- package/dist/components/ui-image/UIImage.es.d.ts +2 -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/TextControl.d.ts +7 -0
- package/dist/components/ui-input/UIInput.d.ts +22 -3
- package/dist/components/ui-input/UIInput.en.d.ts +9 -2
- package/dist/components/ui-input/UIInput.es.d.ts +2 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +9 -2
- package/dist/components/ui-input/UITextarea.d.ts +20 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +15 -0
- package/dist/components/ui-input/UITextarea.es.d.ts +4 -0
- package/dist/components/ui-item/UIItem.d.ts +27 -4
- package/dist/components/ui-item/UIItem.en.d.ts +5 -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/JsonChild.d.ts +30 -0
- package/dist/components/ui-json/UIJson.d.ts +128 -0
- package/dist/components/ui-json/UIJson.en.d.ts +71 -0
- package/dist/components/ui-json/UIJson.es.d.ts +12 -0
- package/dist/components/ui-json/index.d.ts +3 -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 +2 -0
- package/dist/components/ui-label/UILabel.en.d.ts +2 -0
- package/dist/components/ui-label/UILabel.es.d.ts +1 -0
- 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 +2 -0
- package/dist/components/ui-list/UIList.en.d.ts +2 -0
- package/dist/components/ui-list/UIList.es.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 +143 -0
- package/dist/components/ui-markdown/MarkdownEngine.d.ts +14 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +95 -0
- package/dist/components/ui-markdown/MarkdownSource.d.ts +57 -0
- package/dist/components/ui-markdown/UIMarkdown.d.ts +126 -6
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +111 -8
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +29 -1
- package/dist/components/ui-markdown/UIMarkdown.types.d.ts +26 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +79 -0
- package/dist/components/ui-menu/TitleFit.d.ts +3 -0
- package/dist/components/ui-menu/UIMenu.d.ts +97 -4
- package/dist/components/ui-menu/UIMenu.en.d.ts +50 -1
- package/dist/components/ui-menu/UIMenu.es.d.ts +4 -0
- package/dist/components/ui-message/UIMessage.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.en.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.es.d.ts +1 -0
- 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 +15 -0
- package/dist/components/ui-page/UIPage.en.d.ts +15 -0
- package/dist/components/ui-page/UIPage.es.d.ts +1 -0
- package/dist/components/ui-panel/UIPanel.d.ts +6 -0
- package/dist/components/ui-panel/UIPanel.en.d.ts +33 -20
- 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 +1 -0
- package/dist/components/ui-parts/UIAvatar.en.d.ts +1 -0
- 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 +3 -1
- package/dist/components/ui-parts/UIHeader.en.d.ts +3 -1
- 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 +15 -1
- 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 +30 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +7 -0
- package/dist/components/ui-popup/UIPopup.es.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.en.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.es.d.ts +1 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +132 -5
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +11 -44
- package/dist/components/ui-property-editor/UIProperty.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +38 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +33 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +12 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +2 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.es.d.ts +9 -0
- package/dist/components/ui-property-editor/index.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 +1 -0
- package/dist/components/ui-rail/UIRail.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +6 -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.d.ts +18 -3
- package/dist/components/ui-root/UIRoot.en.d.ts +15 -0
- package/dist/components/ui-root/UIRoot.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +48 -7
- package/dist/components/ui-search/UISearch.en.d.ts +13 -1
- package/dist/components/ui-search/UISearch.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +13 -1
- package/dist/components/ui-section/UISection.d.ts +30 -1
- package/dist/components/ui-section/UISection.en.d.ts +10 -0
- package/dist/components/ui-section/UISection.es.d.ts +1 -0
- 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 +2 -0
- package/dist/components/ui-segment/UISegment.en.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.es.d.ts +1 -0
- 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 +6 -0
- package/dist/components/ui-select/UISelect.en.d.ts +6 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +6 -0
- package/dist/components/ui-shape/UIShape.d.ts +23 -2
- package/dist/components/ui-shape/UIShape.en.d.ts +8 -0
- package/dist/components/ui-shape/UIShape.es.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +4 -0
- package/dist/components/ui-shape/UISide.en.d.ts +4 -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 +209 -0
- package/dist/components/ui-sides/UISides.en.d.ts +122 -0
- package/dist/components/ui-sides/UISides.es.d.ts +30 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +134 -0
- package/dist/components/ui-sides/index.d.ts +2 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +53 -0
- package/dist/components/ui-site-nav/UISiteNav.d.ts +207 -0
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +87 -0
- package/dist/components/ui-site-nav/UISiteNav.es.d.ts +29 -0
- package/dist/components/ui-site-nav/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +126 -0
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +49 -0
- package/dist/components/ui-site-tabs/UISiteTabs.es.d.ts +18 -0
- package/dist/components/ui-site-tabs/index.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.es.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +7 -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 +175 -0
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +74 -0
- package/dist/components/ui-split-panel/UISplitPanel.es.d.ts +25 -0
- package/dist/components/ui-split-panel/index.d.ts +2 -0
- package/dist/components/ui-stack/UIStack.d.ts +31 -5
- package/dist/components/ui-stack/UIStack.en.d.ts +15 -3
- 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 +1 -0
- package/dist/components/ui-step/UISteps.en.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.d.ts +4 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +8 -0
- package/dist/components/ui-tab/UITab.en.d.ts +1 -0
- package/dist/components/ui-tab/UITabs.d.ts +107 -16
- package/dist/components/ui-tab/UITabs.en.d.ts +40 -1
- package/dist/components/ui-tab/UITabs.es.d.ts +4 -0
- package/dist/components/ui-table/TableEditing.d.ts +77 -0
- 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 +145 -5
- package/dist/components/ui-table/UITable.en.d.ts +19 -0
- package/dist/components/ui-table/UITable.es.d.ts +3 -0
- 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 +11 -0
- package/dist/components/ui-text/UILink.en.d.ts +4 -0
- package/dist/components/ui-text/UIText.d.ts +7 -0
- package/dist/components/ui-text/UIText.en.d.ts +7 -0
- package/dist/components/ui-text/UIText.es.d.ts +2 -0
- package/dist/components/ui-theme-editor/SavedTheme.d.ts +55 -43
- package/dist/components/ui-theme-editor/ThemeDraft.d.ts +15 -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 +157 -26
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +79 -6
- package/dist/components/ui-theme-editor/UIThemeEditor.es.d.ts +20 -2
- package/dist/components/ui-theme-editor/UIThemeEditor.types.d.ts +0 -2
- 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/HueDropdown.d.ts +47 -0
- package/dist/components/ui-theme-menu/ThemeMenu.d.ts +18 -7
- package/dist/components/ui-theme-menu/ThemePreference.d.ts +145 -36
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +118 -7
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +82 -2
- package/dist/components/ui-theme-menu/UIThemeMenu.es.d.ts +21 -1
- package/dist/components/ui-theme-menu/UIThemeMenu.types.d.ts +36 -8
- package/dist/components/ui-theme-menu/index.d.ts +2 -1
- 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 +13 -10
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +138 -84
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +2 -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 +162 -0
- package/dist/components/ui-tree/UITree.en.d.ts +88 -0
- package/dist/components/ui-tree/UITree.es.d.ts +35 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +204 -0
- package/dist/components/ui-tree/UITreeItem.en.d.ts +142 -0
- package/dist/components/ui-tree/UITreeItem.es.d.ts +32 -0
- package/dist/components/ui-tree/index.d.ts +3 -0
- package/dist/components/ui-tree-diagram/TreeData.d.ts +3 -12
- package/dist/components/ui-tree-diagram/TreeLayout.d.ts +54 -21
- package/dist/components/ui-tree-diagram/TreeMeasure.d.ts +36 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +152 -27
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +47 -7
- package/dist/components/ui-tree-diagram/UITreeDiagram.es.d.ts +12 -1
- package/dist/components/ui-tree-diagram/UITreeDiagram.types.d.ts +66 -21
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +148 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +69 -0
- package/dist/components/ui-tree-diagram/UITreeNode.es.d.ts +21 -0
- package/dist/components/ui-tree-diagram/index.d.ts +4 -2
- 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-DmLzT-Bq.js → components.es-BOa_7gFF.js} +498 -109
- package/dist/components.es-BOa_7gFF.js.map +1 -0
- package/dist/core.d.ts +3 -1
- package/dist/core.js +1082 -511
- package/dist/core.js.map +1 -1
- package/dist/crisp-VfYZlTph.js +6 -0
- package/dist/{crisp-CoZRRDuQ.js.map → crisp-VfYZlTph.js.map} +1 -1
- package/dist/docs-components/index.d.ts +1 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.d.ts +89 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.en.d.ts +43 -0
- package/dist/docs-components/ui-docs-index/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.d.ts +54 -87
- package/dist/docs-components/ui-docs-nav/UIDocsNav.types.d.ts +2 -29
- package/dist/docs-components/ui-docs-search/SearchIndex.d.ts +8 -2
- package/dist/docs-components/ui-docs-search/UIDocsSearch.d.ts +10 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.en.d.ts +5 -0
- package/dist/elements/AddressParameter.d.ts +87 -0
- package/dist/elements/DOMFormControl.d.ts +5 -0
- package/dist/elements/FormComponent.d.ts +32 -0
- package/dist/elements/LoadableBody.d.ts +6 -1
- package/dist/elements/LoadableComponent.d.ts +10 -1
- package/dist/elements/RootSettings.d.ts +43 -6
- package/dist/elements/SpellUISettings.d.ts +1 -0
- package/dist/elements/StickyWatch.d.ts +20 -0
- package/dist/elements/elements.types.d.ts +15 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/forms.js +93 -63
- package/dist/forms.js.map +1 -1
- package/dist/fruity-BRVlgJZd.js +6 -0
- package/dist/fruity-BRVlgJZd.js.map +1 -0
- package/dist/{fruity.theme-BJcMiPl1.js → fruity.theme-CbC7Jyvk.js} +2 -2
- package/dist/fruity.theme-CbC7Jyvk.js.map +1 -0
- package/dist/glass-x9tbbwVq.js +6 -0
- package/dist/glass-x9tbbwVq.js.map +1 -0
- package/dist/glass.theme-24wY2wH9.js +6 -0
- package/dist/glass.theme-24wY2wH9.js.map +1 -0
- package/dist/hot.js +536 -26
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +91 -81
- package/dist/jsx.d.ts +21149 -10377
- package/dist/matrix-QY2gWbJ0.js +6 -0
- package/dist/{matrix-CqA59hiF.js.map → matrix-QY2gWbJ0.js.map} +1 -1
- package/dist/{matrix.theme-jqQZjcq3.js → matrix.theme-_8xtwhDq.js} +2 -2
- package/dist/matrix.theme-_8xtwhDq.js.map +1 -0
- package/dist/midnight-BxlTQSfw.js +6 -0
- package/dist/{midnight-BnoVOrhC.js.map → midnight-BxlTQSfw.js.map} +1 -1
- package/dist/mockup-83ELBuVr.js +6 -0
- package/dist/mockup-83ELBuVr.js.map +1 -0
- package/dist/mockup.theme-DmpBgGBl.js +6 -0
- package/dist/mockup.theme-DmpBgGBl.js.map +1 -0
- package/dist/paper-M61nUilz.js +6 -0
- package/dist/{paper-CynH8ZuT.js.map → paper-M61nUilz.js.map} +1 -1
- package/dist/persist.types-D2m6wD-S.js +9 -0
- package/dist/persist.types-D2m6wD-S.js.map +1 -0
- package/dist/pop-CxXfytjk.js +6 -0
- package/dist/{pop-D2i9V_rG.js.map → pop-CxXfytjk.js.map} +1 -1
- package/dist/runtime/DataTooltips.d.ts +75 -0
- package/dist/runtime/PropertyControls.d.ts +15 -1
- package/dist/runtime/Sources.d.ts +16 -4
- package/dist/runtime/Styles.d.ts +11 -0
- package/dist/runtime/Themes.d.ts +10 -4
- package/dist/runtime/UIRuntime.d.ts +4 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/runtime.types.d.ts +18 -85
- package/dist/spell-By5Y3jKP.js +6 -0
- package/dist/{spell-BFtLICm7.js.map → spell-By5Y3jKP.js.map} +1 -1
- package/dist/{spell.theme-B7AU7SQX.js → spell.theme-DxGj7qHx.js} +2 -2
- package/dist/spell.theme-DxGj7qHx.js.map +1 -0
- package/dist/styles/CodeThemeFile.d.ts +73 -0
- package/dist/styles/StyleGenerator.d.ts +6 -0
- package/dist/styles/styles.en.d.ts +141 -3
- package/dist/styles/styles.types.d.ts +2 -0
- package/dist/{styles.en-RLpYiO5_.js → styles.en-CUUxNwHo.js} +71 -14
- package/dist/styles.en-CUUxNwHo.js.map +1 -0
- package/dist/styles.js +13 -13
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.js +54 -53
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.js +20 -19
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-ad.js +5 -4
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-breadcrumbs.js +15 -13
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.js +132 -125
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-calendar.js +208 -206
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.js +260 -98
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-checkbox.js +95 -81
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.js +25 -24
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-comment.js +14 -12
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-components.js +7 -6
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.js +24 -12
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-diagram.js +1328 -0
- package/dist/ui-diagram.js.map +1 -0
- package/dist/ui-dimension.js +779 -0
- package/dist/ui-dimension.js.map +1 -0
- package/dist/ui-dimmer.js +36 -34
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.js +7 -5
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.js +107 -105
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.js +36 -35
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.js +10 -9
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-example.js +63 -61
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-feed.js +12 -10
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-flag.js +10 -9
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.js +7 -6
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.js +244 -162
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.js +21 -18
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-icon-picker.js +46 -44
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.js +17 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-image.js +93 -55
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-include.js +18 -17
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.js +154 -112
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.js +152 -102
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.js +9 -8
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.js +115 -0
- package/dist/ui-json.js.map +1 -0
- package/dist/ui-keys.js +1 -1
- package/dist/ui-label.js +18 -15
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-list.js +7 -5
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.js +7 -6
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.js +975 -83
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.js +329 -196
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.js +20 -18
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-modal.js +46 -45
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.js +19 -18
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-page.js +8 -7
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.js +28 -17
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +66 -52
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder.js +21 -16
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.js +113 -84
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.js +9 -7
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.js +706 -203
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-quote.js +5 -4
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-rail.js +5 -4
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.js +31 -29
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-reveal.js +7 -6
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.js +324 -158
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-search.js +210 -168
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.js +167 -130
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-segment.js +15 -12
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-select.js +83 -81
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.js +86 -58
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-sidebar.js +59 -56
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.js +325 -0
- package/dist/ui-sides.js.map +1 -0
- package/dist/ui-site-nav.js +329 -0
- package/dist/ui-site-nav.js.map +1 -0
- package/dist/ui-site-tabs.js +177 -0
- package/dist/ui-site-tabs.js.map +1 -0
- package/dist/ui-slider.js +84 -81
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.js +7 -6
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.js +298 -0
- package/dist/ui-split-panel.js.map +1 -0
- package/dist/ui-stack.js +47 -23
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.js +15 -13
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-step.js +31 -29
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-sticky.js +7 -6
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-tab.js +230 -138
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.js +724 -162
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-terms.js +12 -10
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.js +53 -28
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-theme-editor.js +1018 -1545
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js +1493 -0
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +1 -0
- package/dist/ui-toast.js +45 -44
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.js +75 -74
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.js +51 -73
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.js +12 -11
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.js +676 -197
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree.js +625 -0
- package/dist/ui-tree.js.map +1 -0
- package/dist/ui-video.js +13 -11
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.js +26 -25
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.js +79 -78
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +28 -0
- package/dist/util/index.d.ts +5 -2
- package/dist/vocabulary/DefaultValues.d.ts +34 -0
- package/dist/vocabulary/SharedVocabulary.d.ts +4 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +7 -0
- package/dist/vocabulary/ValueSets.d.ts +18 -0
- package/dist/vocabulary/Vocabulary.d.ts +1 -0
- package/dist/vocabulary/defaults.generated.d.ts +6 -0
- package/dist/vocabulary/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/MarkdownEngine-CbuT9Mjc.js.map +0 -1
- package/dist/PrefStore-CeaTtjTz.js.map +0 -1
- package/dist/UIButton-XkfGqgh6.js +0 -6
- package/dist/UIButton-XkfGqgh6.js.map +0 -1
- package/dist/UIInput-BUudZstW.js +0 -6
- package/dist/UIInput-BUudZstW.js.map +0 -1
- package/dist/UIKeys-DJF2TIKE.js.map +0 -1
- package/dist/UILabel-C1jy3Yl8.js +0 -6
- package/dist/UILabel-C1jy3Yl8.js.map +0 -1
- package/dist/UIMenu-Btd-8V3A.js +0 -42
- package/dist/UIMenu-Btd-8V3A.js.map +0 -1
- package/dist/UIRuntime-BBuehGly.js.map +0 -1
- package/dist/components.es-DmLzT-Bq.js.map +0 -1
- package/dist/crisp-CoZRRDuQ.js +0 -6
- package/dist/fruity-CQFYeRlh.js +0 -6
- package/dist/fruity-CQFYeRlh.js.map +0 -1
- package/dist/fruity.theme-BJcMiPl1.js.map +0 -1
- package/dist/glass-CAfW11kL.js +0 -6
- package/dist/glass-CAfW11kL.js.map +0 -1
- package/dist/glass.theme-DQcBbtCW.js +0 -6
- package/dist/glass.theme-DQcBbtCW.js.map +0 -1
- package/dist/matrix-CqA59hiF.js +0 -6
- package/dist/matrix.theme-jqQZjcq3.js.map +0 -1
- package/dist/midnight-BnoVOrhC.js +0 -6
- package/dist/paper-CynH8ZuT.js +0 -6
- package/dist/persist.types-CsZxS8TG.js +0 -9
- package/dist/persist.types-CsZxS8TG.js.map +0 -1
- package/dist/pop-D2i9V_rG.js +0 -6
- package/dist/spell-BFtLICm7.js +0 -6
- package/dist/spell.theme-B7AU7SQX.js.map +0 -1
- package/dist/styles.en-RLpYiO5_.js.map +0 -1
- package/dist/ui-theme-menu-DyKZygpV.js +0 -921
- package/dist/ui-theme-menu-DyKZygpV.js.map +0 -1
package/dist/ui-json.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
+
import { Bt as e, DOMLoadableElement as t, Ht as n, LoadableComponent as r, Lt as i, Rt as a, SourceEvent as o, SourceStatus as s, Ut as c, Warnings as l, cssState as u, derived as d, dt as f, mt as p, onChange as m, ot as h, proto as g, protoMerged as _, zt as v } from "./core.js";
|
|
3
|
+
//#region src/components/ui-json/JsonChild.ts
|
|
4
|
+
var y = "ui-json-data-changed", b = class JsonChild {
|
|
5
|
+
static of(e) {
|
|
6
|
+
for (let t of e.children) if (JsonChild.isJsonElement(t) || t.localName === "script" && t.getAttribute("type")?.trim() === "application/json") return t;
|
|
7
|
+
}
|
|
8
|
+
static textOf(e) {
|
|
9
|
+
let t = JsonChild.of(e);
|
|
10
|
+
return t && (t.textContent ?? "");
|
|
11
|
+
}
|
|
12
|
+
static valueOf(e) {
|
|
13
|
+
let t = JsonChild.of(e);
|
|
14
|
+
if (!t) return;
|
|
15
|
+
if ("value" in t) return t.value;
|
|
16
|
+
let n = t.textContent ?? "";
|
|
17
|
+
return n.trim() ? JSON.parse(n) : void 0;
|
|
18
|
+
}
|
|
19
|
+
static isJsonElement(e) {
|
|
20
|
+
return /^[a-z]+-json$/.test(e.localName);
|
|
21
|
+
}
|
|
22
|
+
}, [x, , S, C, w] = f, T = {
|
|
23
|
+
tag: "ui-json",
|
|
24
|
+
icon: "code",
|
|
25
|
+
topics: ["data display", "modules"],
|
|
26
|
+
aka: [
|
|
27
|
+
"data",
|
|
28
|
+
"data island",
|
|
29
|
+
"json script",
|
|
30
|
+
"application/json",
|
|
31
|
+
"data block",
|
|
32
|
+
"datos"
|
|
33
|
+
],
|
|
34
|
+
noun: "JSON data",
|
|
35
|
+
description: "JSON data holds data in a page, as its text or from a file with `source`. It draws nothing: `value` is the parsed data, `ui-changed` says when it changed, and an element it sits inside may read it.",
|
|
36
|
+
attributes: [...h],
|
|
37
|
+
events: [
|
|
38
|
+
x,
|
|
39
|
+
{
|
|
40
|
+
name: "ui-changed",
|
|
41
|
+
detail: "{ value: unknown, content: string }",
|
|
42
|
+
description: "The data changed: loaded from `source`, set through `value` or `content`, or its text edited. `value` is `undefined` when the text is empty or isn't JSON."
|
|
43
|
+
},
|
|
44
|
+
S,
|
|
45
|
+
C,
|
|
46
|
+
w
|
|
47
|
+
],
|
|
48
|
+
slots: [],
|
|
49
|
+
parts: [],
|
|
50
|
+
states: [...p],
|
|
51
|
+
texts: []
|
|
52
|
+
}, E = "@layer ui.components.json.types{:host{display:none}}", D, O, k, A, j, M, N, DOMJsonElement = class extends t {
|
|
53
|
+
static {
|
|
54
|
+
e(this, "DOMJsonElement");
|
|
55
|
+
}
|
|
56
|
+
get value() {
|
|
57
|
+
return this.component ? this.component.value : F.parsedFrom(r.inlineTextOf(this)).value;
|
|
58
|
+
}
|
|
59
|
+
set value(e) {
|
|
60
|
+
this.content = JSON.stringify(e, null, 2) ?? "";
|
|
61
|
+
}
|
|
62
|
+
}, P = class _UIJson extends (M = r, j = [g], A = [_], k = [d], O = [u("error")], D = [m("parsed")], M) {
|
|
63
|
+
constructor() {
|
|
64
|
+
super(...arguments), c(N, 5, this), n(this, "hasStarted", !1);
|
|
65
|
+
}
|
|
66
|
+
get parsed() {
|
|
67
|
+
return _UIJson.parsedFrom(this.textToShow);
|
|
68
|
+
}
|
|
69
|
+
get value() {
|
|
70
|
+
return this.parsed.value;
|
|
71
|
+
}
|
|
72
|
+
get hasError() {
|
|
73
|
+
return super.hasError || !!this.parsed.error;
|
|
74
|
+
}
|
|
75
|
+
onParsedChanged({ value: e, error: t }) {
|
|
76
|
+
let n = !this.hasStarted;
|
|
77
|
+
this.hasStarted = !0, t ? this.onLoadError(t, "render") : this.loadStatus === s.error && (this.loadStatus = s.loaded), !n && (this.domElement.dispatchEvent(new Event(y, { bubbles: !0 })), this.send("ui-changed", {
|
|
78
|
+
value: e,
|
|
79
|
+
content: this.content
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
onLoadError(e, t) {
|
|
83
|
+
l.warn(`<${this.domElement.localName}>`, "can't read its data", e), super.onLoadError(e, t);
|
|
84
|
+
}
|
|
85
|
+
sendSourceEvent(e, t) {
|
|
86
|
+
return e === o.change || super.sendSourceEvent(e, t);
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
renderContent() {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
static parsedFrom(e) {
|
|
95
|
+
if (!e.trim()) return {};
|
|
96
|
+
try {
|
|
97
|
+
return { value: JSON.parse(e) };
|
|
98
|
+
} catch (e) {
|
|
99
|
+
return { error: e };
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
N = v(M), i(N, 2, "parsed", k, P), i(N, 2, "hasError", O, P), i(N, 1, "onParsedChanged", D, P), i(N, 13, "vocabulary", j, P), i(N, 13, "elementSetup", A, P), a(N, P), e(P, "UIJson"), n(P, "vocabulary", c(N, 8, P, T)), c(N, 11, P), n(P, "elementSetup", c(N, 12, P, {
|
|
104
|
+
styleSheets: { json: E },
|
|
105
|
+
DOMElement: DOMJsonElement,
|
|
106
|
+
delegatesFocus: !1
|
|
107
|
+
})), c(N, 15, P);
|
|
108
|
+
var F = P;
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/components/ui-json/index.ts
|
|
111
|
+
F.define();
|
|
112
|
+
//#endregion
|
|
113
|
+
export { DOMJsonElement, b as JsonChild, F as UIJson, y as t };
|
|
114
|
+
|
|
115
|
+
//# sourceMappingURL=ui-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-json.js","names":["UIT.SourceEvents","UIT.SourceAttributes","UIT.SourceStates","E.DOMLoadableElement","E.LoadableComponent","E.proto","E.protoMerged","E.derived","E.cssState","E.onChange","__name","jsonCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","SourceEvents","SourceStates","SourceAttributes","__decoratorStart","JSON_CHANGED","JsonChild","child","domElement","text","LOADED","SAVING","SAVED","ERROR","jsonVocabulary","UIJson_default","_onParsedChanged_dec","_hasError_dec","_parsed_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","DOMLoadableElement","UIJson","LoadableComponent","value","_UIJson","proto","protoMerged","derived","cssState","onChange","isFirst","error","SourceStatus","Warnings","kind","name","SourceEvent","detail"],"sources":["../src/components/ui-json/JsonChild.ts","../src/components/ui-json/UIJson.en.ts","../src/components/ui-json/UIJson.css?inline","../src/components/ui-json/UIJson.tsx","../src/components/ui-json/index.ts"],"sourcesContent":["/**\n * What a `<ui-json>` sends its parent when its data changes: plumbing, like the platform's `slotchange`.\n * - Not `ui-changed`, the page's event: that one's name depends on the tag's language (`es-cambiado`).\n */\nexport const JSON_CHANGED = \"ui-json-data-changed\"\n\n/****************\n * ### `JsonChild`\n * How an element that takes JSON reads it from a child: a `<ui-json>`, or the old `<script type=\"application/json\">`.\n * - STATIC, plain DOM, no Solid, no element: by `localName`, as a static server render's children are linkedom elements.\n * - A `<ui-json>` before its family loads is read by its text; once it's loaded, by its `value`,\n * which a `source` file changes with no change in the page: the reader listens for `JSON_CHANGED`.\n * - Knows nothing of who reads it: `<ui-tree-diagram>` today.\n ****************/\nexport class JsonChild {\n /** `domElement`'s first child holding JSON; `undefined` without one. Takes its language's tag too (`<es-json>`). */\n static of(domElement: Element): Element | undefined {\n for (const child of domElement.children) {\n if (JsonChild.isJsonElement(child)) return child\n if (child.localName === \"script\" && child.getAttribute(\"type\")?.trim() === \"application/json\") return child\n }\n return undefined\n }\n\n /**\n * The text of `domElement`'s JSON child, as written; `undefined` without one.\n * - A reader follows it for changes in the page; a `source` file's say `JSON_CHANGED`.\n */\n static textOf(domElement: Element): string | undefined {\n const child = JsonChild.of(domElement)\n return child && (child.textContent ?? \"\")\n }\n\n /**\n * The data of `domElement`'s JSON child; `undefined` without one, or with nothing in it yet.\n * - A `<ui-json>` says why it can't read its text itself: it warns, and this is `undefined`.\n * - throws `SyntaxError` when a script child's text, or a not yet loaded `<ui-json>`'s, isn't JSON: the caller warns.\n */\n static valueOf(domElement: Element): unknown {\n const child = JsonChild.of(domElement)\n if (!child) return undefined\n if (\"value\" in child) return child.value\n const text = child.textContent ?? \"\"\n return text.trim() ? JSON.parse(text) : undefined\n }\n\n /** Is `child` a `<ui-json>`, in any language? */\n private static isJsonElement(child: Element): boolean {\n return /^[a-z]+-json$/.test(child.localName)\n }\n}\n","/**\n * The English vocabulary of `<ui-json>`: every name the tag uses.\n * - Its tag, attributes, events and states. The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Ours, not Fomantic's (epic `elemental-spell` P31).\n * - The source pieces (`source`, `load`, `ui-loaded` ... `ui-error`, the states) are shared with `<ui-code>` and\n * `<ui-markdown>`: `UIT.Source*`, which `LoadableComponent` reads.\n * - Its `ui-changed` is its own, with the parsed `value`.\n * - No loader or error parts, and no error texts: it draws nothing.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\nconst [LOADED, , SAVING, SAVED, ERROR] = UIT.SourceEvents\n\n/****************\n * ### `jsonVocabulary`\n * The names of `<ui-json>`, JSON data held in a page: as its text, or from a file with `source`.\n ****************/\nexport const jsonVocabulary = {\n tag: \"ui-json\",\n icon: \"code\",\n topics: [\"data display\", \"modules\"],\n aka: [\"data\", \"data island\", \"json script\", \"application/json\", \"data block\", \"datos\"],\n noun: \"JSON data\",\n description:\n \"JSON data holds data in a page, as its text or from a file with `source`. It draws nothing: `value` is the \" +\n \"parsed data, `ui-changed` says when it changed, and an element it sits inside may read it.\",\n attributes: [...UIT.SourceAttributes],\n events: [\n LOADED,\n {\n name: \"ui-changed\",\n detail: \"{ value: unknown, content: string }\",\n description:\n \"The data changed: loaded from `source`, set through `value` or `content`, or its text edited. `value` is \" +\n \"`undefined` when the text is empty or isn't JSON.\"\n },\n SAVING,\n SAVED,\n ERROR\n ],\n slots: [],\n parts: [],\n states: [...UIT.SourceStates],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-json>`: it draws nothing, so nothing shows, not even its text.\n */\n\n@layer ui.components.json.types {\n :host {\n display: none;\n }\n}\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { JSON_CHANGED } from \"./JsonChild\"\nimport { jsonVocabulary } from \"./UIJson.en\"\n\nimport jsonCSS from \"./UIJson.css?inline\"\n\n/****************\n * ### `DOMJsonElement`\n * The DOM element of `<ui-json>`: the source element's script API, plus `value`.\n ****************/\nexport class DOMJsonElement extends E.DOMLoadableElement<UIJson> {\n /**\n * The data, parsed; `undefined` while `source` loads, or when the text is empty or isn't JSON.\n * - Before the component exists: its own text, parsed.\n */\n get value(): unknown {\n return this.component ? this.component.value : UIJson.parsedFrom(E.LoadableComponent.inlineTextOf(this)).value\n }\n\n /** Hold `value` instead, written as JSON into `content`: `dirty` until saved; sends `ui-changed`. */\n set value(value: unknown) {\n this.content = JSON.stringify(value, null, 2) ?? \"\"\n }\n}\n\n/****************\n * ### `<ui-json>`\n * The component behind `<ui-json>`: JSON data held in a page, drawing nothing (epic `elemental-spell` P31).\n *\n * - Where it comes from is `LoadableComponent`'s: `source` through `UI.sources`, else its own text.\n * So `load`, `reload()`, `loaded`, `save()` and `ui-error` are the same as `<ui-code>`'s.\n * - What it adds: `value`, the parsed data, and `ui-changed` when that changes.\n * - Text that isn't JSON: `value` is `undefined`, one console warning, `ui-error` (`render`), `:state(error)`.\n * As it draws nothing, a failed load warns too: nothing else would show it.\n * - An element that takes JSON reads a `<ui-json>` child through `JsonChild`.\n ****************/\nexport class UIJson extends E.LoadableComponent<typeof jsonVocabulary> {\n @E.proto static vocabulary = jsonVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { json: jsonCSS },\n DOMElement: DOMJsonElement,\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /**\n * The text, parsed.\n * - `@derived`: parses JSON.\n */\n @E.derived\n get parsed(): ParsedJson {\n return UIJson.parsedFrom(this.textToShow)\n }\n\n /** The data; `undefined` while `source` loads, or when the text is empty or isn't JSON. */\n get value(): unknown {\n return this.parsed.value\n }\n\n /** Did loading fail, or isn't its text JSON? `:state(error)`. */\n @E.cssState(\"error\")\n override get hasError(): boolean {\n return super.hasError || !!this.parsed.error\n }\n\n /** Has `onParsedChanged()` run once? What's there when it first draws is no change. */\n private hasStarted = false\n\n /** The data changed: `ui-changed`, or the error when its text isn't JSON. */\n @E.onChange(\"parsed\")\n protected onParsedChanged({ value, error }: ParsedJson) {\n const isFirst = !this.hasStarted\n this.hasStarted = true\n if (error) this.onLoadError(error, \"render\")\n else if (this.loadStatus === E.SourceStatus.error) this.loadStatus = E.SourceStatus.loaded\n if (isFirst) return\n this.domElement.dispatchEvent(new Event(JSON_CHANGED, { bubbles: true }))\n this.send(\"ui-changed\", { value, content: this.content })\n }\n\n /** As `LoadableComponent`'s, and warns: it draws nothing, so no message would show it. */\n protected override onLoadError(error: unknown, kind?: E.SourceErrorKind) {\n E.Warnings.warn(`<${this.domElement.localName}>`, `can't read its data`, error)\n super.onLoadError(error, kind)\n }\n\n /** Not the base's `ui-changed`, which says only the text: `onParsedChanged()` says the data too. */\n protected override sendSourceEvent(name: E.SourceEventName, detail: object): boolean {\n return name === E.SourceEvent.change ? true : super.sendSourceEvent(name, detail)\n }\n\n override render(): JSX.Element {\n return null\n }\n\n protected renderContent(): JSX.Element {\n return null\n }\n\n /**\n * `text` as data: its `value`, or its `error` when it isn't JSON; neither for empty text.\n * - NEVER throws.\n */\n static parsedFrom(text: string): ParsedJson {\n if (!text.trim()) return {}\n try {\n return { value: JSON.parse(text) }\n } catch (error) {\n return { error }\n }\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIJson extends E.AttributeValues<typeof jsonVocabulary> {}\n\n/** A `<ui-json>`'s text, parsed. */\nexport type ParsedJson = {\n /** The data. */\n value?: unknown\n /** Why the text isn't JSON: `JSON.parse()`'s `SyntaxError`. */\n error?: unknown\n}\n","/**\n * The JSON data family: defines `<ui-json>` and exports its component, `UIJson`, its DOM element class,\n * `DOMJsonElement`, and `JsonChild`, how another element reads one.\n * - SIDE EFFECT: importing it defines the tag.\n * It draws nothing, so unlike the other source elements it needs no `<ui-loader>` or `<ui-message>`.\n * - Also the library's `spell/ui/ui-json` entry (its size is in `notes/report.md`).\n */\n\nimport { JsonChild } from \"./JsonChild\"\nimport { DOMJsonElement, UIJson } from \"./UIJson\"\n\nUIJson.define()\n\nexport { DOMJsonElement, JsonChild, UIJson }\n"],"mappings":";;;AAIA,IAAaqB,IAAe,wBAUfC,IAAb,MAAa,UAAU;CAErB,OAAO,GAAG,GAA0C;EAClD,KAAK,IAAMC,KAASC,EAAW,UAE7B,IADI,UAAU,cAAcD,CAAK,KAC7BA,EAAM,cAAc,YAAYA,EAAM,aAAa,MAAM,CAAC,EAAE,KAAK,MAAM,oBAAoB,OAAOA;CAG1G;CAMA,OAAO,OAAO,GAAyC;EACrD,IAAMA,IAAQ,UAAU,GAAGC,CAAU;EACrC,OAAOD,MAAUA,EAAM,eAAe;CACxC;CAOA,OAAO,QAAQ,GAA8B;EAC3C,IAAMA,IAAQ,UAAU,GAAGC,CAAU;EACrC,IAAI,CAACD,GAAO;EACZ,IAAI,WAAWA,GAAO,OAAOA,EAAM;EACnC,IAAME,IAAOF,EAAM,eAAe;EAClC,OAAOE,EAAK,KAAK,IAAI,KAAK,MAAMA,CAAI,IAAI,KAAA;CAC1C;CAGA,OAAe,cAAc,GAAyB;EACpD,OAAO,gBAAgB,KAAKF,EAAM,SAAS;CAC7C;AACF,GCrCM,CAACG,KAAUC,GAAQC,GAAOC,KAAS7B,GAM5B8B,IAAiB;CAC5B,KAAK;CACL,MAAM;CACN,QAAQ,CAAC,gBAAgB,SAAS;CAClC,KAAK;EAAC;EAAQ;EAAe;EAAe;EAAoB;EAAc;CAAO;CACrF,MAAM;CACN,aACE;CAEF,YAAY,CAAC,GAAG7B,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AAsB,GAAA,IAFJK,CAAA;AAAN,IAAMH,IAANG;;;AC3BPH,EAAO,OAAO"}
|
package/dist/ui-keys.js
CHANGED
package/dist/ui-label.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { A as e, Bt as t,
|
|
3
|
-
import { t as g } from "./UILabel-
|
|
2
|
+
import { A as e, Bt as t, Ht as n, IconGlyph as r, Lt as i, M as a, PartContext as o, Rt as s, SlotContent as c, UIComponent as l, Ut as u, cssState as d, proto as f, protoMerged as p, t as m, zt as h } from "./core.js";
|
|
3
|
+
import { t as g } from "./UILabel-DgJUBzB_.js";
|
|
4
4
|
import { Show as _ } from "solid-js";
|
|
5
5
|
import { Dynamic as v, addEvent as y, className as b, createComponent as x, delegateEvents as S, effect as C, getOwner as w, insert as T, readShallow as E, setAttribute as D, template as O } from "@solidjs/web";
|
|
6
6
|
//#region src/components/ui-label/UILabel.en.ts
|
|
7
7
|
var k = {
|
|
8
8
|
tag: "ui-label",
|
|
9
|
+
icon: "tag",
|
|
10
|
+
snippet: "<ui-label>A label</ui-label>",
|
|
9
11
|
topics: [
|
|
10
12
|
"status",
|
|
11
13
|
"text",
|
|
@@ -279,18 +281,18 @@ var k = {
|
|
|
279
281
|
description: "Accessible name of the delete icon button."
|
|
280
282
|
}],
|
|
281
283
|
ownsParts: ["detail"]
|
|
282
|
-
}, A = /* @__PURE__ */ O("<div><slot>"), j = /* @__PURE__ */ O("<img alt>"), M = /* @__PURE__ */ O("<span><slot>"), N = /* @__PURE__ */ O("<slot>"), P = /* @__PURE__ */ O("<span>"), F = /* @__PURE__ */ O("<button type=button>"), I, L, R, z, B, V = class _UILabel extends (z =
|
|
284
|
+
}, A = /* @__PURE__ */ O("<div><slot>"), j = /* @__PURE__ */ O("<img alt>"), M = /* @__PURE__ */ O("<span><slot>"), N = /* @__PURE__ */ O("<slot>"), P = /* @__PURE__ */ O("<span>"), F = /* @__PURE__ */ O("<button type=button>"), I, L, R, z, B, V = class _UILabel extends (z = l, R = [f], L = [p], I = [d("active")], z) {
|
|
283
285
|
constructor() {
|
|
284
|
-
super(...arguments),
|
|
286
|
+
super(...arguments), u(B, 5, this), n(this, "context", new o({
|
|
285
287
|
domElement: this.domElement,
|
|
286
288
|
noun: this.vocabulary.noun
|
|
287
|
-
})),
|
|
289
|
+
})), n(this, "slots", new c(this.domElement)), n(this, "iconGlyph", new r({
|
|
288
290
|
owner: this,
|
|
289
|
-
name: /* @__PURE__ */
|
|
290
|
-
})),
|
|
291
|
+
name: /* @__PURE__ */ t(() => this.icon, "name")
|
|
292
|
+
})), n(this, "deleteGlyph", new r({
|
|
291
293
|
owner: this,
|
|
292
|
-
name: /* @__PURE__ */
|
|
293
|
-
})),
|
|
294
|
+
name: /* @__PURE__ */ t(() => this.removable ? G : void 0, "name")
|
|
295
|
+
})), n(this, "onRemove", /* @__PURE__ */ t((e) => {
|
|
294
296
|
e.preventDefault(), e.stopPropagation(), this.send("ui-removing", { originalEvent: e });
|
|
295
297
|
}, "onRemove"));
|
|
296
298
|
}
|
|
@@ -371,7 +373,7 @@ var k = {
|
|
|
371
373
|
get children() {
|
|
372
374
|
var e = j();
|
|
373
375
|
return C(() => ({
|
|
374
|
-
e: E(
|
|
376
|
+
e: E(a),
|
|
375
377
|
t: t.partForName("image"),
|
|
376
378
|
a: t.imageSrc
|
|
377
379
|
}), ({ e: t, t: n, a: r }, i) => {
|
|
@@ -433,16 +435,17 @@ var k = {
|
|
|
433
435
|
});
|
|
434
436
|
}
|
|
435
437
|
};
|
|
436
|
-
B =
|
|
438
|
+
B = h(z), i(B, 2, "isSelected", I, V), i(B, 13, "vocabulary", R, V), i(B, 13, "elementSetup", L, V), s(B, V), t(V, "UILabel"), n(V, "vocabulary", u(B, 8, V, k)), u(B, 11, V), n(V, "elementSetup", u(B, 12, V, { styleSheets: {
|
|
437
439
|
label: g,
|
|
438
|
-
parts:
|
|
439
|
-
} })),
|
|
440
|
+
parts: m
|
|
441
|
+
} })), u(B, 15, V);
|
|
440
442
|
var H = V, U = "detail", W = "delete icon", G = "xmark";
|
|
441
443
|
S(["click"]);
|
|
442
444
|
//#endregion
|
|
443
445
|
//#region src/components/ui-label/UILabels.en.ts
|
|
444
446
|
var K = {
|
|
445
447
|
tag: "ui-labels",
|
|
448
|
+
icon: "tags",
|
|
446
449
|
topics: [
|
|
447
450
|
"status",
|
|
448
451
|
"lists",
|
|
@@ -560,7 +563,7 @@ var K = {
|
|
|
560
563
|
}],
|
|
561
564
|
states: [],
|
|
562
565
|
texts: []
|
|
563
|
-
}, q = /* @__PURE__ */ O("<div><slot>"), J, Y, X, Z, Q = class _UILabels extends (X =
|
|
566
|
+
}, q = /* @__PURE__ */ O("<div><slot>"), J, Y, X, Z, Q = class _UILabels extends (X = l, Y = [f], J = [p], X) {
|
|
564
567
|
render() {
|
|
565
568
|
let e = this;
|
|
566
569
|
var t = q(), n = t.firstChild;
|
|
@@ -572,7 +575,7 @@ var K = {
|
|
|
572
575
|
}), t;
|
|
573
576
|
}
|
|
574
577
|
};
|
|
575
|
-
Z =
|
|
578
|
+
Z = h(X), i(Z, 13, "vocabulary", Y, Q), i(Z, 13, "elementSetup", J, Q), s(Z, Q), t(Q, "UILabels"), n(Q, "vocabulary", u(Z, 8, Q, K)), u(Z, 11, Q), n(Q, "elementSetup", u(Z, 12, Q, { styleSheets: { label: g } })), u(Z, 15, Q);
|
|
576
579
|
var $ = Q;
|
|
577
580
|
H.define(), $.define();
|
|
578
581
|
//#endregion
|
package/dist/ui-label.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-label.js","names":["<Show when={this.context.ownerNoun} fallback={this.label()}>\n <div class={this.vocabulary.noun} part={this.partForName(\"label\")}>\n <slot />\n </div>\n </Show>","this","part={this.partForName(\"label\")}","<div class={this.vocabulary.noun} part={this.partForName(\"label\")}>\n <slot />\n </div>","<Dynamic\n component={this.link ? \"a\" : \"span\"}\n class={this.rootClass}\n part={this.partForName(\"label\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-label={this.ariaLabel}\n aria-disabled={this.disabled && this.link ? \"true\" : void 0}\n role={this.ariaLabel && !this.link ? \"img\" : void 0}\n >\n <Show when={this.imageSrc}>\n <img class={UIT.IMAGE} part={this.partForName(\"image\")} src={this.imageSrc} alt=\"\" />\n </Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <slot />\n <Show when={this.detail}>\n <span class={DETAIL} part={this.partForName(\"detail\")}>\n {this.detail}\n </span>\n </Show>\n <Show when={this.removable}>\n <button\n type=\"button\"\n class={DELETE_CLASS}\n part={this.partForName(\"delete\")}\n aria-label={this.translationForKey(\"remove\")}\n disabled={this.disabled}\n onClick={this.onRemove}\n >\n {this.deleteGlyph.svg}\n </button>\n </Show>\n </Dynamic>","<Show when={this.imageSrc}>\n <img class={UIT.IMAGE} part={this.partForName(\"image\")} src={this.imageSrc} alt=\"\" />\n </Show>","part={this.partForName(\"image\")}","src={this.imageSrc}","<img class={UIT.IMAGE} part={this.partForName(\"image\")} src={this.imageSrc} alt=\"\" />","<Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>","part={this.partForName(\"icon\")}","name={this.slotForName(\"icon\")}","<span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>","<Show when={this.detail}>\n <span class={DETAIL} part={this.partForName(\"detail\")}>\n {this.detail}\n </span>\n </Show>","part={this.partForName(\"detail\")}","<span class={DETAIL} part={this.partForName(\"detail\")}>\n {this.detail}\n </span>","<Show when={this.removable}>\n <button\n type=\"button\"\n class={DELETE_CLASS}\n part={this.partForName(\"delete\")}\n aria-label={this.translationForKey(\"remove\")}\n disabled={this.disabled}\n onClick={this.onRemove}\n >\n {this.deleteGlyph.svg}\n </button>\n </Show>","part={this.partForName(\"delete\")}","aria-label={this.translationForKey(\"remove\")}","disabled={this.disabled}","<button\n type=\"button\"\n class={DELETE_CLASS}\n part={this.partForName(\"delete\")}\n aria-label={this.translationForKey(\"remove\")}\n disabled={this.disabled}\n onClick={this.onRemove}\n >\n {this.deleteGlyph.svg}\n </button>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.PartContext","E.SlotContent","E.IconGlyph","_$createComponent","_$getOwner","_$readShallow","_$setAttribute","UIT.IMAGE","UIT.ICON","__name","labelCSS","partsCSS","_$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","labelCSS","ICON","__publicField","__decorateElement","__decoratorMetadata","__decoratorStart","IMAGE","__name$1","__runInitializers","UIParts_default","UILabel_default","getOwner$1","labelVocabulary","_tmpl$$1","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_isSelected_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UILabel","UIComponent","proto","protoMerged","cssState","PartContext","SlotContent","IconGlyph","DELETE_ICON","event","_self$","createComponent","Show","_el$","_el$2","effect","readShallow","className","_p$","t","setAttribute","_self$2","Dynamic","\"class\"","_el$3","e","a","_el$4","_el$5","insert","_el$6","_el$7","DETAIL","_el$8","addEvent","DELETE_CLASS","o","UILabel","delegateEvents","labelsVocabulary","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","_UILabels","UILabels"],"sources":["../src/components/ui-label/UILabel.en.ts","../src/components/ui-label/UILabel.tsx","../src/components/ui-label/UILabels.en.ts","../src/components/ui-label/UILabels.tsx","../src/components/ui-label/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-label>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-label color=\"red\" pointing=\"left\" appearance=\"basic\">` => `ui red basic left pointing label`.\n * `UILabel.css` keys on those words.\n * - A group needs no help from the components: `<ui-labels tag>` draws `ui tag labels`,\n * and `UILabel.css` hands the look to its children through inherited tokens.\n * - `labelVocabulary.ownsParts` lists `detail`: a slotted `<ui-detail>` finds its label through `OwnerContext`,\n * and styles itself from `UIParts.css` (`:state(in-label)`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `labelVocabulary`\n * The names of `<ui-label>`, a small tag or badge:\n * `<span class=\"ui … label\">` (an `<a>` with `link`) in its shadow root.\n ****************/\nexport const labelVocabulary = {\n tag: \"ui-label\",\n topics: [\"status\", \"text\", \"basic\", \"elements\"],\n aka: [\"badge\", \"chip\", \"tag\", \"pill\", \"lozenge\", \"count\"],\n skeleton: \"inline 4 x 1.8\",\n noun: \"label\",\n plural: \"labels\",\n description: \"A label displays content classification.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Hue; fills the label (its ring and text when `basic`).\"\n },\n {\n name: \"image\",\n group: \"content\",\n kind: \"string\",\n description:\n 'Image label: a photo flush with the start edge (class `image`). Presence (`\"\"`, bare `image`) means ' +\n \"an image label styled around a slotted `<img>`; a non-empty value is the `src` of the label's own \" +\n \"`img.image` child.\"\n },\n { name: \"tag\", group: \"appearance\", kind: \"keyOnly\", description: \"Shaped like a price tag.\" },\n {\n name: \"corner\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"left\", \"right\"],\n description: 'A triangle on the owner\\'s top corner holding an icon: `corner` (end) or `corner=\"left\"`.'\n },\n {\n name: \"ribbon\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"right\"],\n description: 'A ribbon pulled past the owner\\'s start edge; `ribbon=\"right\"` past its end edge.'\n },\n {\n name: \"pointing\",\n group: \"layout\",\n kind: \"keyOrValueAndKey\",\n values: [\"above\", \"below\", \"left\", \"right\"],\n description: \"An arrow pointing at related content: `pointing` (above), `below`, `left` or `right`.\"\n },\n {\n name: \"floating\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"left\", \"bottom\", \"bottom left\"],\n description: \"Floats over the owner's top end corner, e.g. a count on a menu item; `left` / `bottom` move it.\"\n },\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: [\"basic\", \"tinted\", \"circular\"],\n replaces: [\n { from: \"basic\", value: \"basic\" },\n { from: \"tinted\", value: \"tinted\" },\n { from: \"circular\", value: \"circular\" }\n ],\n description:\n \"The look, several words at once: `basic` (less pronounced: an outline on the surface colour), \" +\n \"`tinted` (soft: the colour's tint as the fill and its text colour as the text, as a pill or badge; not \" +\n \"Fomantic's), `circular` (a round badge). Old names: `basic`, `tinted`, `circular` written alone.\"\n },\n {\n name: \"attach\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"top\", \"bottom\", \"top left\", \"top right\", \"bottom left\", \"bottom right\"],\n classes: {\n top: \"top attached\",\n bottom: \"bottom attached\",\n \"top left\": \"top left attached\",\n \"top right\": \"top right attached\",\n \"bottom left\": \"bottom left attached\",\n \"bottom right\": \"bottom right attached\"\n },\n replaces: [{ from: \"attached\", value: \"top\" }],\n description:\n \"Attached across (or on a corner of) the owner's top or bottom edge. Its old name was `attached` \" +\n \"(bare: `top`).\"\n },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\"],\n replaces: [{ from: \"horizontal\", value: \"horizontal\" }],\n description:\n \"`horizontal`: a fixed-width tag before a line of text, e.g. in a list. Its old name was `horizontal`.\"\n },\n { name: \"empty\", group: \"appearance\", kind: \"keyOnly\", description: \"With `circular`: an empty dot.\" },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\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` centres its content. Its old name was `centered`.\"\n },\n {\n name: \"prompt\",\n group: \"content\",\n kind: \"keyOnly\",\n description: \"A form field's validation message: the negative colour on the surface, wins over `color`.\"\n },\n {\n name: \"selected\",\n group: \"states\",\n kind: \"keyOnly\",\n key: \"active\",\n replaces: [\"active\"],\n description: \"Selected / on. Its old name was `active`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Dimmed and inert.\" },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds.\" },\n {\n name: \"icon\",\n group: \"content\",\n kind: \"icon\",\n description: \"Icon name, shown before the text; with no text the label gets the `icon` class (icon centred).\"\n },\n {\n name: \"detail\",\n group: \"content\",\n kind: \"string\",\n description: \"Shorthand for a dimmer second value after the text, e.g. a count.\"\n },\n {\n name: \"removable\",\n group: \"behaviour\",\n kind: \"boolean\",\n description: \"Shows a delete icon button; clicking it dispatches `ui-removing`.\"\n },\n {\n name: \"link\",\n group: \"link\",\n kind: \"string\",\n replaces: [\"href\"],\n description: \"Renders a link (`<a>`) styled as a label. Its old name was `href`.\"\n },\n { name: \"target\", group: \"link\", kind: \"string\", description: \"Link target, with `link`.\" }\n ],\n events: [\n {\n name: \"ui-removing\",\n detail: \"{ originalEvent?: Event }\",\n cancelable: true,\n description: \"The delete icon of a `removable` label was activated. NOTE: the element doesn't remove itself.\"\n }\n ],\n slots: [\n { name: \"\", description: \"Content, usually text; a slotted `<img>` for an `image` label, `<ui-detail>`s.\" },\n { name: \"icon\", description: \"Icon, instead of the `icon` attribute.\" }\n ],\n parts: [\n { name: \"label\", description: \"The label box (`<span>`, or `<a>` with `link`).\" },\n { name: \"image\", description: \"The `<img>` of an `image` label with a URL.\" },\n { name: \"icon\", description: \"The icon box.\" },\n { name: \"detail\", description: \"The `detail` shorthand.\" },\n { name: \"delete\", description: \"The delete icon button of a `removable` label.\" }\n ],\n states: [\n { name: \"active\", description: \"Selected / on (`selected`).\" },\n { name: \"disabled\", description: \"Dimmed and inert.\" }\n ],\n texts: [{ key: \"remove\", text: \"Remove\", description: \"Accessible name of the delete icon button.\" }],\n ownsParts: [\"detail\"]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport { Dynamic, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { labelVocabulary } from \"./UILabel.en\"\n\nimport labelCSS from \"./UILabel.css?inline\"\nimport partsCSS from \"spell/ui/components/ui-parts/UIParts.css?inline\"\n\n/****************\n * ### `UILabel`\n * The component behind `<ui-label>`: a small tag, badge or count beside other content.\n *\n * - Its shadow DOM is one box, `<span class=\"ui … label\" part=\"label\">` (an `<a>` with `link`), holding, in order:\n * the `image` `<img>`, the icon box, the default slot, the `detail` shorthand and the `removable` delete button.\n * - It adds the `icon` class (before the noun) when there's an icon and no text: the icon centres.\n *\n * - `image` is a string attribute:\n * - bare (or `\"\"`): the `image` class, around a slotted `<img>`\n * - a URL: the `src` of the label's own `<img class=\"image\" part=\"image\" alt=\"\">`\n * - `ClassBuilder` writes no class for a string attribute, so the `image` class is added by hand.\n *\n * - `removable`: a real `<button class=\"delete icon\">`, named by the `remove` text.\n * A click sends the cancelable `ui-removing`: the label never removes itself, the page does.\n *\n * - Inside a statistic (an owner of `label`, through `PartContext`), it is that statistic's `.label` PART:\n * it draws `<div class=\"label\" part=\"label\">`, adopts `UIParts.css` after `UILabel.css`\n * and sets `:state(in-statistic)`.\n *\n * - The element's `aria-label` moves to the inner box, so an icon-only or corner label has a name.\n *\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, its link and delete button inert, `aria-disabled`; a link label also loses its link.\n ****************/\nexport class UILabel extends E.UIComponent<typeof labelVocabulary> {\n @E.proto static vocabulary = labelVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { label: labelCSS, parts: partsCSS }\n } satisfies Partial<E.ElementSetup>\n\n /** `selected`: `:state(active)`, Fomantic's word, as before `active` was renamed (epic `ui-gaps` P4). */\n @E.cssState(\"active\")\n get isSelected(): boolean {\n return !!this.selected\n }\n\n /** The owner, when it's a statistic's label. */\n readonly context = new E.PartContext({ domElement: this.domElement, noun: this.vocabulary.noun })\n\n /** Which of its slots have content in the light DOM. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** The glyph of the `icon` shorthand. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.icon })\n\n /** The glyph of the delete button. */\n readonly deleteGlyph = new E.IconGlyph({ owner: this, name: () => (this.removable ? DELETE_ICON : undefined) })\n\n /** The element's `aria-label`, moved to the inner box. */\n get ariaLabel(): string | undefined {\n return this.attributes[\"aria-label\"] ?? undefined\n }\n\n ////////////////\n // ## Derived state\n ////////////////\n\n /** Has an icon (shorthand or `icon` slot)? */\n get hasIcon(): boolean {\n return !!this.icon || this.slots.hasContent(this.slotForName(\"icon\"))\n }\n\n /** Has text (default slot or `detail`)? */\n get hasText(): boolean {\n return this.slots.hasContent(\"\") || !!this.detail\n }\n\n /** `image` attribute as a URL, or `undefined` when bare (a slotted `<img>`) or absent. */\n get imageSrc(): string | undefined {\n return this.image?.trim() || undefined\n }\n\n ////////////////\n // ## States and classes\n ////////////////\n\n /** `image` for an image label, `icon` for an icon without text: words `ClassBuilder` can't emit. */\n protected get extraClass(): string | undefined {\n const extra = [this.image === undefined ? \"\" : UIT.IMAGE, this.hasIcon && !this.hasText ? UIT.ICON : \"\"]\n return extra.filter(Boolean).join(\" \") || undefined\n }\n\n /** `UIParts.css` only while a statistic owns it. */\n get styleSheetNames(): string[] {\n return this.context.ownerNoun ? [\"label\", \"parts\"] : [\"label\"]\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <Show when={this.context.ownerNoun} fallback={this.label()}>\n <div class={this.vocabulary.noun} part={this.partForName(\"label\")}>\n <slot />\n </div>\n </Show>\n )\n }\n\n /** The standalone label box. */\n private label(): JSX.Element {\n return (\n <Dynamic\n component={this.link ? \"a\" : \"span\"}\n class={this.rootClass}\n part={this.partForName(\"label\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-label={this.ariaLabel}\n aria-disabled={this.disabled && this.link ? \"true\" : undefined}\n role={this.ariaLabel && !this.link ? \"img\" : undefined}\n >\n <Show when={this.imageSrc}>\n <img class={UIT.IMAGE} part={this.partForName(\"image\")} src={this.imageSrc} alt=\"\" />\n </Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <slot />\n <Show when={this.detail}>\n <span class={DETAIL} part={this.partForName(\"detail\")}>\n {this.detail}\n </span>\n </Show>\n <Show when={this.removable}>\n <button\n type=\"button\"\n class={DELETE_CLASS}\n part={this.partForName(\"delete\")}\n aria-label={this.translationForKey(\"remove\")}\n disabled={this.disabled}\n onClick={this.onRemove}\n >\n {this.deleteGlyph.svg}\n </button>\n </Show>\n </Dynamic>\n )\n }\n\n ////////////////\n // ## Behaviour\n ////////////////\n\n /** Delete button: announce; the page removes the label (or cancels). */\n private readonly onRemove = (event: MouseEvent) => {\n event.preventDefault()\n event.stopPropagation()\n this.send(\"ui-removing\", { originalEvent: event })\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UILabel extends E.AttributeValues<typeof labelVocabulary> {}\n\n/** The class and part of the `detail` shorthand box. */\nconst DETAIL = \"detail\"\n\n/** Classes of the delete button. */\nconst DELETE_CLASS = \"delete icon\"\n\n/** Glyph of the delete button (Fomantic's `delete icon`). */\nconst DELETE_ICON = \"xmark\"\n","/**\n * The English vocabulary of `<ui-labels>`: 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: `UILabel.en.ts`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `labelsVocabulary`\n * The names of `<ui-labels>`, a group of labels sharing one look: `<div class=\"ui … labels\">`.\n ****************/\nexport const labelsVocabulary = {\n tag: \"ui-labels\",\n topics: [\"status\", \"lists\", \"elements\"],\n aka: [\"badges\", \"chips\", \"tags\", \"tag list\"],\n noun: \"labels\",\n description: \"Labels can be grouped to share a look.\",\n attributes: [\n { name: \"size\", group: \"appearance\", kind: \"size\", description: \"Size of every label in the group.\" },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue of every label in the group.\" },\n { name: \"tag\", group: \"appearance\", kind: \"keyOnly\", description: \"Every label shaped like a price tag.\" },\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: [\"basic\", \"tinted\", \"circular\"],\n replaces: [\n { from: \"basic\", value: \"basic\" },\n { from: \"tinted\", value: \"tinted\" },\n { from: \"circular\", value: \"circular\" }\n ],\n description:\n \"Every label's look, several words at once: `basic` (outlined), `tinted` (the colour's soft fill and text), \" +\n \"`circular` (a round badge). Old names: `basic`, `tinted`, `circular` written alone.\"\n },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\"],\n replaces: [{ from: \"horizontal\", value: \"horizontal\" }],\n description: \"`horizontal`: every label a fixed-width tag. Its old name was `horizontal`.\"\n },\n { name: \"image\", group: \"content\", kind: \"keyOnly\", description: \"Every label an image label.\" },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Every label full width.\" },\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`: every label centred. Its old name was `centered`.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"Every label for dark backgrounds.\" },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Every label dimmed and inert.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-label>`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 { labelsVocabulary } from \"./UILabels.en\"\n\nimport labelCSS from \"./UILabel.css?inline\"\n\n/****************\n * ### `UILabels`\n * The component behind `<ui-labels>`: a group of labels sharing one look.\n *\n * - Its shadow DOM is one box, `<div class=\"ui … labels\" part=\"group\">`, around a slot for the labels.\n * - It needs no code beyond that: `UILabel.css` hands the look to the slotted labels, through inherited tokens.\n ****************/\nexport class UILabels extends E.UIComponent<typeof labelsVocabulary> {\n @E.proto static vocabulary = labelsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { label: labelCSS }\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 UILabels extends E.AttributeValues<typeof labelsVocabulary> {}\n","/**\n * The label family: defines `<ui-label>` and `<ui-labels>`, and exports their components, `UILabel` and `UILabels`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-label` entry (its size is in `notes/report.md`).\n */\n\nimport { UILabel } from \"./UILabel\"\nimport { UILabels } from \"./UILabels\"\n\nUILabel.define()\nUILabels.define()\n\nexport { UILabel, UILabels }\n"],"mappings":";;;;;;AAoBA,IAAaiE,IAAkB;CAC7B,KAAK;CACL,QAAQ;EA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bO,IAAAa,EAAA8D,CAAA,GACIhE,EAAAiE,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEIlE,EAAAiE,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAANjE,EAAAgE,GAAMC,CAAA,GAAwDtE,EAAAsE,GAAA,UAAA,GAC1DnE,EADEmE,GACK,cAAa7D,EAApB4D,GAAA,GADEC,GACkBN,CAAA,CAAA,GAApBvD,EAAA4D,GAAA,IADEC,CAAA,GAEInE,EAFJmE,GAEW,gBAAe7D,EAAtB4D,GAAA,IAFJC,GAE0B,EACnC,aAAa,EAAE,OAAOrE,EAAS,EACjC,CAAA,CAAA,GAFeQ,EAAA4D,GAAA,IAFJC,CAAA;AAAN,IAAMC,IAAND;ACLPR,EAAQ,OAAO,GACfS,EAAS,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-label.js","names":["<Show when={this.context.ownerNoun} fallback={this.label()}>\n <div class={this.vocabulary.noun} part={this.partForName(\"label\")}>\n <slot />\n </div>\n </Show>","this","part={this.partForName(\"label\")}","<div class={this.vocabulary.noun} part={this.partForName(\"label\")}>\n <slot />\n </div>","<Dynamic\n component={this.link ? \"a\" : \"span\"}\n class={this.rootClass}\n part={this.partForName(\"label\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-label={this.ariaLabel}\n aria-disabled={this.disabled && this.link ? \"true\" : void 0}\n role={this.ariaLabel && !this.link ? \"img\" : void 0}\n >\n <Show when={this.imageSrc}>\n <img class={UIT.IMAGE} part={this.partForName(\"image\")} src={this.imageSrc} alt=\"\" />\n </Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <slot />\n <Show when={this.detail}>\n <span class={DETAIL} part={this.partForName(\"detail\")}>\n {this.detail}\n </span>\n </Show>\n <Show when={this.removable}>\n <button\n type=\"button\"\n class={DELETE_CLASS}\n part={this.partForName(\"delete\")}\n aria-label={this.translationForKey(\"remove\")}\n disabled={this.disabled}\n onClick={this.onRemove}\n >\n {this.deleteGlyph.svg}\n </button>\n </Show>\n </Dynamic>","<Show when={this.imageSrc}>\n <img class={UIT.IMAGE} part={this.partForName(\"image\")} src={this.imageSrc} alt=\"\" />\n </Show>","part={this.partForName(\"image\")}","src={this.imageSrc}","<img class={UIT.IMAGE} part={this.partForName(\"image\")} src={this.imageSrc} alt=\"\" />","<Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>","part={this.partForName(\"icon\")}","name={this.slotForName(\"icon\")}","<span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>","<Show when={this.detail}>\n <span class={DETAIL} part={this.partForName(\"detail\")}>\n {this.detail}\n </span>\n </Show>","part={this.partForName(\"detail\")}","<span class={DETAIL} part={this.partForName(\"detail\")}>\n {this.detail}\n </span>","<Show when={this.removable}>\n <button\n type=\"button\"\n class={DELETE_CLASS}\n part={this.partForName(\"delete\")}\n aria-label={this.translationForKey(\"remove\")}\n disabled={this.disabled}\n onClick={this.onRemove}\n >\n {this.deleteGlyph.svg}\n </button>\n </Show>","part={this.partForName(\"delete\")}","aria-label={this.translationForKey(\"remove\")}","disabled={this.disabled}","<button\n type=\"button\"\n class={DELETE_CLASS}\n part={this.partForName(\"delete\")}\n aria-label={this.translationForKey(\"remove\")}\n disabled={this.disabled}\n onClick={this.onRemove}\n >\n {this.deleteGlyph.svg}\n </button>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.PartContext","E.SlotContent","E.IconGlyph","_$createComponent","_$getOwner","_$readShallow","_$setAttribute","UIT.IMAGE","UIT.ICON","__name","labelCSS","partsCSS","_$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","labelCSS","ICON","__name$1","__publicField","__decorateElement","IMAGE","__decoratorMetadata","__runInitializers","UIParts_default","__decoratorStart","UILabel_default","getOwner$1","labelVocabulary","_tmpl$$1","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_isSelected_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UILabel","UIComponent","proto","protoMerged","cssState","PartContext","SlotContent","IconGlyph","DELETE_ICON","event","_self$","createComponent","Show","_el$","_el$2","effect","readShallow","className","_p$","t","setAttribute","_self$2","Dynamic","\"class\"","_el$3","e","a","_el$4","_el$5","insert","_el$6","_el$7","DETAIL","_el$8","addEvent","DELETE_CLASS","o","UILabel","delegateEvents","labelsVocabulary","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","_UILabels","UILabels"],"sources":["../src/components/ui-label/UILabel.en.ts","../src/components/ui-label/UILabel.tsx","../src/components/ui-label/UILabels.en.ts","../src/components/ui-label/UILabels.tsx","../src/components/ui-label/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-label>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-label color=\"red\" pointing=\"left\" appearance=\"basic\">` => `ui red basic left pointing label`.\n * `UILabel.css` keys on those words.\n * - A group needs no help from the components: `<ui-labels tag>` draws `ui tag labels`,\n * and `UILabel.css` hands the look to its children through inherited tokens.\n * - `labelVocabulary.ownsParts` lists `detail`: a slotted `<ui-detail>` finds its label through `OwnerContext`,\n * and styles itself from `UIParts.css` (`:state(in-label)`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `labelVocabulary`\n * The names of `<ui-label>`, a small tag or badge:\n * `<span class=\"ui … label\">` (an `<a>` with `link`) in its shadow root.\n ****************/\nexport const labelVocabulary = {\n tag: \"ui-label\",\n icon: \"tag\",\n snippet: \"<ui-label>A label</ui-label>\",\n topics: [\"status\", \"text\", \"basic\", \"elements\"],\n aka: [\"badge\", \"chip\", \"tag\", \"pill\", \"lozenge\", \"count\"],\n skeleton: \"inline 4 x 1.8\",\n noun: \"label\",\n plural: \"labels\",\n description: \"A label displays content classification.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Hue; fills the label (its ring and text when `basic`).\"\n },\n {\n name: \"image\",\n group: \"content\",\n kind: \"string\",\n description:\n 'Image label: a photo flush with the start edge (class `image`). Presence (`\"\"`, bare `image`) means ' +\n \"an image label styled around a slotted `<img>`; a non-empty value is the `src` of the label's own \" +\n \"`img.image` child.\"\n },\n { name: \"tag\", group: \"appearance\", kind: \"keyOnly\", description: \"Shaped like a price tag.\" },\n {\n name: \"corner\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"left\", \"right\"],\n description: 'A triangle on the owner\\'s top corner holding an icon: `corner` (end) or `corner=\"left\"`.'\n },\n {\n name: \"ribbon\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"right\"],\n description: 'A ribbon pulled past the owner\\'s start edge; `ribbon=\"right\"` past its end edge.'\n },\n {\n name: \"pointing\",\n group: \"layout\",\n kind: \"keyOrValueAndKey\",\n values: [\"above\", \"below\", \"left\", \"right\"],\n description: \"An arrow pointing at related content: `pointing` (above), `below`, `left` or `right`.\"\n },\n {\n name: \"floating\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"left\", \"bottom\", \"bottom left\"],\n description: \"Floats over the owner's top end corner, e.g. a count on a menu item; `left` / `bottom` move it.\"\n },\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: [\"basic\", \"tinted\", \"circular\"],\n replaces: [\n { from: \"basic\", value: \"basic\" },\n { from: \"tinted\", value: \"tinted\" },\n { from: \"circular\", value: \"circular\" }\n ],\n description:\n \"The look, several words at once: `basic` (less pronounced: an outline on the surface colour), \" +\n \"`tinted` (soft: the colour's tint as the fill and its text colour as the text, as a pill or badge; not \" +\n \"Fomantic's), `circular` (a round badge). Old names: `basic`, `tinted`, `circular` written alone.\"\n },\n {\n name: \"attach\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"top\", \"bottom\", \"top left\", \"top right\", \"bottom left\", \"bottom right\"],\n classes: {\n top: \"top attached\",\n bottom: \"bottom attached\",\n \"top left\": \"top left attached\",\n \"top right\": \"top right attached\",\n \"bottom left\": \"bottom left attached\",\n \"bottom right\": \"bottom right attached\"\n },\n replaces: [{ from: \"attached\", value: \"top\" }],\n description:\n \"Attached across (or on a corner of) the owner's top or bottom edge. Its old name was `attached` \" +\n \"(bare: `top`).\"\n },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\"],\n replaces: [{ from: \"horizontal\", value: \"horizontal\" }],\n description:\n \"`horizontal`: a fixed-width tag before a line of text, e.g. in a list. Its old name was `horizontal`.\"\n },\n { name: \"empty\", group: \"appearance\", kind: \"keyOnly\", description: \"With `circular`: an empty dot.\" },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\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` centres its content. Its old name was `centered`.\"\n },\n {\n name: \"prompt\",\n group: \"content\",\n kind: \"keyOnly\",\n description: \"A form field's validation message: the negative colour on the surface, wins over `color`.\"\n },\n {\n name: \"selected\",\n group: \"states\",\n kind: \"keyOnly\",\n key: \"active\",\n replaces: [\"active\"],\n description: \"Selected / on. Its old name was `active`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Dimmed and inert.\" },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds.\" },\n {\n name: \"icon\",\n group: \"content\",\n kind: \"icon\",\n description: \"Icon name, shown before the text; with no text the label gets the `icon` class (icon centred).\"\n },\n {\n name: \"detail\",\n group: \"content\",\n kind: \"string\",\n description: \"Shorthand for a dimmer second value after the text, e.g. a count.\"\n },\n {\n name: \"removable\",\n group: \"behaviour\",\n kind: \"boolean\",\n description: \"Shows a delete icon button; clicking it dispatches `ui-removing`.\"\n },\n {\n name: \"link\",\n group: \"link\",\n kind: \"string\",\n replaces: [\"href\"],\n description: \"Renders a link (`<a>`) styled as a label. Its old name was `href`.\"\n },\n { name: \"target\", group: \"link\", kind: \"string\", description: \"Link target, with `link`.\" }\n ],\n events: [\n {\n name: \"ui-removing\",\n detail: \"{ originalEvent?: Event }\",\n cancelable: true,\n description: \"The delete icon of a `removable` label was activated. NOTE: the element doesn't remove itself.\"\n }\n ],\n slots: [\n { name: \"\", description: \"Content, usually text; a slotted `<img>` for an `image` label, `<ui-detail>`s.\" },\n { name: \"icon\", description: \"Icon, instead of the `icon` attribute.\" }\n ],\n parts: [\n { name: \"label\", description: \"The label box (`<span>`, or `<a>` with `link`).\" },\n { name: \"image\", description: \"The `<img>` of an `image` label with a URL.\" },\n { name: \"icon\", description: \"The icon box.\" },\n { name: \"detail\", description: \"The `detail` shorthand.\" },\n { name: \"delete\", description: \"The delete icon button of a `removable` label.\" }\n ],\n states: [\n { name: \"active\", description: \"Selected / on (`selected`).\" },\n { name: \"disabled\", description: \"Dimmed and inert.\" }\n ],\n texts: [{ key: \"remove\", text: \"Remove\", description: \"Accessible name of the delete icon button.\" }],\n ownsParts: [\"detail\"]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport { Dynamic, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { labelVocabulary } from \"./UILabel.en\"\n\nimport labelCSS from \"./UILabel.css?inline\"\nimport partsCSS from \"spell/ui/components/ui-parts/UIParts.css?inline\"\n\n/****************\n * ### `UILabel`\n * The component behind `<ui-label>`: a small tag, badge or count beside other content.\n *\n * - Its shadow DOM is one box, `<span class=\"ui … label\" part=\"label\">` (an `<a>` with `link`), holding, in order:\n * the `image` `<img>`, the icon box, the default slot, the `detail` shorthand and the `removable` delete button.\n * - It adds the `icon` class (before the noun) when there's an icon and no text: the icon centres.\n *\n * - `image` is a string attribute:\n * - bare (or `\"\"`): the `image` class, around a slotted `<img>`\n * - a URL: the `src` of the label's own `<img class=\"image\" part=\"image\" alt=\"\">`\n * - `ClassBuilder` writes no class for a string attribute, so the `image` class is added by hand.\n *\n * - `removable`: a real `<button class=\"delete icon\">`, named by the `remove` text.\n * A click sends the cancelable `ui-removing`: the label never removes itself, the page does.\n *\n * - Inside a statistic (an owner of `label`, through `PartContext`), it is that statistic's `.label` PART:\n * it draws `<div class=\"label\" part=\"label\">`, adopts `UIParts.css` after `UILabel.css`\n * and sets `:state(in-statistic)`.\n *\n * - The element's `aria-label` moves to the inner box, so an icon-only or corner label has a name.\n *\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, its link and delete button inert, `aria-disabled`; a link label also loses its link.\n ****************/\nexport class UILabel extends E.UIComponent<typeof labelVocabulary> {\n @E.proto static vocabulary = labelVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { label: labelCSS, parts: partsCSS }\n } satisfies Partial<E.ElementSetup>\n\n /** `selected`: `:state(active)`, Fomantic's word, as before `active` was renamed (epic `ui-gaps` P4). */\n @E.cssState(\"active\")\n get isSelected(): boolean {\n return !!this.selected\n }\n\n /** The owner, when it's a statistic's label. */\n readonly context = new E.PartContext({ domElement: this.domElement, noun: this.vocabulary.noun })\n\n /** Which of its slots have content in the light DOM. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** The glyph of the `icon` shorthand. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.icon })\n\n /** The glyph of the delete button. */\n readonly deleteGlyph = new E.IconGlyph({ owner: this, name: () => (this.removable ? DELETE_ICON : undefined) })\n\n /** The element's `aria-label`, moved to the inner box. */\n get ariaLabel(): string | undefined {\n return this.attributes[\"aria-label\"] ?? undefined\n }\n\n ////////////////\n // ## Derived state\n ////////////////\n\n /** Has an icon (shorthand or `icon` slot)? */\n get hasIcon(): boolean {\n return !!this.icon || this.slots.hasContent(this.slotForName(\"icon\"))\n }\n\n /** Has text (default slot or `detail`)? */\n get hasText(): boolean {\n return this.slots.hasContent(\"\") || !!this.detail\n }\n\n /** `image` attribute as a URL, or `undefined` when bare (a slotted `<img>`) or absent. */\n get imageSrc(): string | undefined {\n return this.image?.trim() || undefined\n }\n\n ////////////////\n // ## States and classes\n ////////////////\n\n /** `image` for an image label, `icon` for an icon without text: words `ClassBuilder` can't emit. */\n protected get extraClass(): string | undefined {\n const extra = [this.image === undefined ? \"\" : UIT.IMAGE, this.hasIcon && !this.hasText ? UIT.ICON : \"\"]\n return extra.filter(Boolean).join(\" \") || undefined\n }\n\n /** `UIParts.css` only while a statistic owns it. */\n get styleSheetNames(): string[] {\n return this.context.ownerNoun ? [\"label\", \"parts\"] : [\"label\"]\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <Show when={this.context.ownerNoun} fallback={this.label()}>\n <div class={this.vocabulary.noun} part={this.partForName(\"label\")}>\n <slot />\n </div>\n </Show>\n )\n }\n\n /** The standalone label box. */\n private label(): JSX.Element {\n return (\n <Dynamic\n component={this.link ? \"a\" : \"span\"}\n class={this.rootClass}\n part={this.partForName(\"label\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-label={this.ariaLabel}\n aria-disabled={this.disabled && this.link ? \"true\" : undefined}\n role={this.ariaLabel && !this.link ? \"img\" : undefined}\n >\n <Show when={this.imageSrc}>\n <img class={UIT.IMAGE} part={this.partForName(\"image\")} src={this.imageSrc} alt=\"\" />\n </Show>\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <slot />\n <Show when={this.detail}>\n <span class={DETAIL} part={this.partForName(\"detail\")}>\n {this.detail}\n </span>\n </Show>\n <Show when={this.removable}>\n <button\n type=\"button\"\n class={DELETE_CLASS}\n part={this.partForName(\"delete\")}\n aria-label={this.translationForKey(\"remove\")}\n disabled={this.disabled}\n onClick={this.onRemove}\n >\n {this.deleteGlyph.svg}\n </button>\n </Show>\n </Dynamic>\n )\n }\n\n ////////////////\n // ## Behaviour\n ////////////////\n\n /** Delete button: announce; the page removes the label (or cancels). */\n private readonly onRemove = (event: MouseEvent) => {\n event.preventDefault()\n event.stopPropagation()\n this.send(\"ui-removing\", { originalEvent: event })\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UILabel extends E.AttributeValues<typeof labelVocabulary> {}\n\n/** The class and part of the `detail` shorthand box. */\nconst DETAIL = \"detail\"\n\n/** Classes of the delete button. */\nconst DELETE_CLASS = \"delete icon\"\n\n/** Glyph of the delete button (Fomantic's `delete icon`). */\nconst DELETE_ICON = \"xmark\"\n","/**\n * The English vocabulary of `<ui-labels>`: 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: `UILabel.en.ts`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `labelsVocabulary`\n * The names of `<ui-labels>`, a group of labels sharing one look: `<div class=\"ui … labels\">`.\n ****************/\nexport const labelsVocabulary = {\n tag: \"ui-labels\",\n icon: \"tags\",\n topics: [\"status\", \"lists\", \"elements\"],\n aka: [\"badges\", \"chips\", \"tags\", \"tag list\"],\n noun: \"labels\",\n description: \"Labels can be grouped to share a look.\",\n attributes: [\n { name: \"size\", group: \"appearance\", kind: \"size\", description: \"Size of every label in the group.\" },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue of every label in the group.\" },\n { name: \"tag\", group: \"appearance\", kind: \"keyOnly\", description: \"Every label shaped like a price tag.\" },\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: [\"basic\", \"tinted\", \"circular\"],\n replaces: [\n { from: \"basic\", value: \"basic\" },\n { from: \"tinted\", value: \"tinted\" },\n { from: \"circular\", value: \"circular\" }\n ],\n description:\n \"Every label's look, several words at once: `basic` (outlined), `tinted` (the colour's soft fill and text), \" +\n \"`circular` (a round badge). Old names: `basic`, `tinted`, `circular` written alone.\"\n },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\"],\n replaces: [{ from: \"horizontal\", value: \"horizontal\" }],\n description: \"`horizontal`: every label a fixed-width tag. Its old name was `horizontal`.\"\n },\n { name: \"image\", group: \"content\", kind: \"keyOnly\", description: \"Every label an image label.\" },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Every label full width.\" },\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`: every label centred. Its old name was `centered`.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"Every label for dark backgrounds.\" },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Every label dimmed and inert.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-label>`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 { labelsVocabulary } from \"./UILabels.en\"\n\nimport labelCSS from \"./UILabel.css?inline\"\n\n/****************\n * ### `UILabels`\n * The component behind `<ui-labels>`: a group of labels sharing one look.\n *\n * - Its shadow DOM is one box, `<div class=\"ui … labels\" part=\"group\">`, around a slot for the labels.\n * - It needs no code beyond that: `UILabel.css` hands the look to the slotted labels, through inherited tokens.\n ****************/\nexport class UILabels extends E.UIComponent<typeof labelsVocabulary> {\n @E.proto static vocabulary = labelsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { label: labelCSS }\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 UILabels extends E.AttributeValues<typeof labelsVocabulary> {}\n","/**\n * The label family: defines `<ui-label>` and `<ui-labels>`, and exports their components, `UILabel` and `UILabels`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-label` entry (its size is in `notes/report.md`).\n */\n\nimport { UILabel } from \"./UILabel\"\nimport { UILabels } from \"./UILabels\"\n\nUILabel.define()\nUILabels.define()\n\nexport { UILabel, UILabels }\n"],"mappings":";;;;;;AAoBA,IAAaiE,IAAkB;CAC7B,KAAK;CACL,MAAM;CACN,SAAS;CACT,QAAQ;EAAC;EAAU;EAAQ;EAAS;CAAU;CAC9C,KAAK;EAAC;EAAS;EAAQ;EAAO;EAAQ;EAAW;CAAO;CACxD,UAAU;CACV,MAAM;CACN,QAAQ;CACR,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;EAGJ;EACA;GAAE,MAAM;GAAO,OAAO;GAAc,MAAM;GAAW,aAAa;EAA2B;EAC7F;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ,CAAC,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FeO,EAAA6D,GAAA,IAFJC,CAAA;AAAN,IAAMC,IAAND;ACLPR,EAAQ,OAAO,GACfS,EAAS,OAAO"}
|
package/dist/ui-list.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { Bt as e,
|
|
2
|
+
import { Bt as e, Ht as t, Lt as n, PartContext as r, Rt as i, UIComponent as a, Ut as o, derived as s, on as c, proto as l, protoMerged as u, zt as d } from "./core.js";
|
|
3
3
|
import "./ui-item.js";
|
|
4
4
|
import { Dynamic as f, createComponent as p, getOwner as m, memo as h, template as g } from "@solidjs/web";
|
|
5
5
|
//#region src/components/ui-list/UIList.en.ts
|
|
6
6
|
var _ = {
|
|
7
7
|
tag: "ui-list",
|
|
8
|
+
icon: "list",
|
|
9
|
+
snippet: "<ui-list>\n <ui-item>One thing</ui-item>\n <ui-item>Another thing</ui-item>\n</ui-list>",
|
|
8
10
|
topics: [
|
|
9
11
|
"lists",
|
|
10
12
|
"data display",
|
|
@@ -167,9 +169,9 @@ var _ = {
|
|
|
167
169
|
"header",
|
|
168
170
|
"description"
|
|
169
171
|
]
|
|
170
|
-
}, v = "@layer ui.components.list.types{:host{display:contents}.ui.list{--_ui-list-layout:vertical;--_ui-list-align:top;--_ui-list-font-size:var(--ui-list-font-size,calc(var(--ui-font-size) * var(--ui-scale,1)));--_ui-list-margin:var(--ui-list-margin,1em);--_ui-list-item-display:var(--ui-list-item-display,list-item);--_ui-list-stretch:stretch;--_ui-list-item-width:var(--ui-list-item-width,var(--_ui-list-stretch));--_ui-list-item-font-size:var(--ui-list-item-font-size,initial);--_ui-list-item-line-height:var(--ui-list-item-line-height,1.14286em);--_ui-list-item-padding-block:var(--ui-list-item-padding-block,.214286em);--_ui-list-item-padding-left:var(--ui-list-item-padding-left,0);--_ui-list-item-padding-right:var(--ui-list-item-padding-right,0);--_ui-list-item-first-padding-top:var(--ui-list-item-first-padding-top,0);--_ui-list-item-first-padding-left:var(--ui-list-item-first-padding-left,var(--_ui-list-item-padding-left));--_ui-list-item-last-padding-bottom:var(--ui-list-item-last-padding-bottom,0);--_ui-list-item-last-padding-right:var(--ui-list-item-last-padding-right,var(--_ui-list-item-padding-right));--_ui-list-item-margin:var(--ui-list-item-margin,0);--_ui-list-item-first-margin-left:var(--ui-list-item-first-margin-left,0);--_ui-list-item-last-margin-right:var(--ui-list-item-last-margin-right,0);--_ui-list-item-border-width:var(--ui-list-item-border-width,0);--_ui-list-item-first-border-top:var(--ui-list-item-first-border-top,0);--_ui-list-item-last-border-right:var(--ui-list-item-last-border-right,0);--_ui-list-item-last-border-bottom:var(--ui-list-item-last-border-bottom,0);--_ui-list-item-border-color:var(--ui-list-item-border-color,var(--ui-border-color));--_ui-list-item-radius:var(--ui-list-item-radius,0);--_ui-list-item-transition:var(--ui-list-item-transition,none);--_ui-list-item-color:var(--ui-list-item-color,initial);--_ui-list-item-active-color:var(--ui-list-item-active-color,initial);--_ui-list-item-hover-background:var(--ui-list-item-hover-background,transparent);--_ui-list-item-down-background:var(--ui-list-item-down-background,transparent);--_ui-list-item-active-background:var(--ui-list-item-active-background,transparent);--_ui-list-link-color:var(--ui-list-link-color,var(--ui-link));--_ui-list-link-hover-color:var(--ui-list-link-hover-color,var(--ui-link-hover));--_ui-list-link-down-color:var(--ui-list-link-down-color,var(--ui-link-hover));--_ui-list-link-active-color:var(--ui-list-link-active-color,var(--ui-link));--_ui-list-link-icon-color:var(--ui-list-link-icon-color,var(--ui-text-light));--_ui-list-link-icon-hover-color:var(--ui-list-link-icon-hover-color,var(--ui-text-color));--_ui-list-anchor-color:var(--ui-list-anchor-color,var(--ui-link));--_ui-list-anchor-hover-color:var(--ui-list-anchor-hover-color,var(--ui-link-hover));--_ui-list-disabled-color:var(--ui-list-disabled-color,var(--ui-text-disabled));--_ui-list-icon-display:var(--ui-list-icon-display,table-cell);--_ui-list-icon-slot-display:var(--ui-list-icon-slot-display,table-cell);--_ui-list-icon-min-width:var(--ui-list-icon-min-width,1.55em);--_ui-list-icon-padding:var(--ui-list-icon-padding,0 .285714em 0 0);--_ui-list-image-display:var(--ui-list-image-display,table-cell);--_ui-list-image-distance:var(--ui-list-image-distance,.5em);--_ui-list-content-distance:var(--ui-list-content-distance,.5em);--_ui-list-content-color:var(--ui-list-content-color,var(--ui-text-color));--_ui-list-header-color:var(--ui-list-header-color,var(--ui-text-color));--_ui-list-description-color:var(--ui-list-description-color,oklch(from var(--ui-ink) l c h / .7));--_ui-list-marker:none;--_ui-list-marker-content:var(--ui-list-marker-content,none);--_ui-list-marker-position:var(--ui-list-marker-position,absolute);--_ui-list-marker-margin:var(--ui-list-marker-margin,0);--_ui-list-marker-color:var(--ui-list-marker-color,initial);--_ui-list-marker-active-color:var(--ui-list-marker-active-color,initial);--_ui-list-marker-size:var(--ui-list-marker-size,1em);--_ui-list-marker-opacity:var(--ui-list-marker-opacity,1);--_ui-list-marker-align:var(--ui-list-marker-align,top);--_ui-list-counter-increment:var(--ui-list-counter-increment,none);--_ui-list-counter-reset:var(--ui-list-counter-reset,none);--_ui-list-first-marker-display:var(--ui-list-first-marker-display,initial);--_ui-list-animated:0;--_ui-list-sublist-margin:var(--ui-list-sublist-margin,0);--_ui-list-sublist-padding:var(--ui-list-sublist-padding,.75em 0 .25em .5em);--_ui-list-sublist-content-margin-left:var(--ui-list-sublist-content-margin-left,initial);--_ui-list-sublist-content-padding-left:var(--ui-list-sublist-content-padding-left,initial);--_ui-list-child-item-padding-block:var(--ui-list-child-item-padding-block,.142857em);--_ui-list-child-item-padding-left:var(--ui-list-child-item-padding-left,0);--_ui-list-child-item-padding-right:var(--ui-list-child-item-padding-right,0);--_ui-list-child-item-edge-padding:var(--ui-list-child-item-edge-padding,0);--_ui-list-child-item-margin-inline:var(--ui-list-child-item-margin-inline,0);--_ui-list-child-marker-margin:var(--ui-list-child-marker-margin,0);box-sizing:border-box;margin:var(--_list-margin-top,var(--_ui-list-margin)) 0 var(--_list-margin-bottom,var(--_ui-list-margin));font-size:var(--_ui-list-font-size);padding:0;list-style:none}.ui.list:first-child{--_list-margin-top:0}.ui.list:last-child{--_list-margin-bottom:0}:host(:not(:first-child))>.ui.list{--_list-margin-top:initial}:host(:not(:last-child))>.ui.list{--_list-margin-bottom:initial}.list>slot{--ui-scale:initial}@supports not (width:stretch){@supports (width:-webkit-fill-available){.ui.list{--_ui-list-stretch:-webkit-fill-available}}@supports (width:-moz-available){.ui.list{--_ui-list-stretch:-moz-available}}}:host(:state(in-list))>.list,.ui.list .list:not(.ui){--_ui-list-layout:vertical;--_ui-list-animated:0;--_ui-list-item-display:list-item;--_ui-list-item-width:var(--_ui-list-stretch);--_ui-list-item-font-size:initial;--_ui-list-item-line-height:initial;--_ui-list-item-padding-block:var(--_ui-list-child-item-padding-block);--_ui-list-item-padding-left:var(--_ui-list-child-item-padding-left);--_ui-list-item-padding-right:var(--_ui-list-child-item-padding-right);--_ui-list-item-first-padding-top:var(--_ui-list-child-item-edge-padding);--_ui-list-item-first-padding-left:var(--_ui-list-child-item-padding-left);--_ui-list-item-last-padding-bottom:var(--_ui-list-child-item-edge-padding);--_ui-list-item-last-padding-right:var(--_ui-list-child-item-padding-right);--_ui-list-item-margin:0 var(--_ui-list-child-item-margin-inline);--_ui-list-item-first-margin-left:var(--_ui-list-child-item-margin-inline);--_ui-list-item-last-margin-right:var(--_ui-list-child-item-margin-inline);--_ui-list-item-border-width:0;--_ui-list-item-first-border-top:0;--_ui-list-item-last-border-right:0;--_ui-list-item-last-border-bottom:0;--_ui-list-marker-margin:var(--_ui-list-child-marker-margin);--_ui-list-first-marker-display:initial;--_ui-list-icon-display:table-cell;--_ui-list-icon-slot-display:table-cell;--_ui-list-icon-padding:0 .285714em 0 0;--_ui-list-image-display:table-cell;clear:both;margin:var(--_ui-list-sublist-margin);padding:var(--_ui-list-sublist-padding);counter-reset:var(--_ui-list-counter-reset);list-style:none;display:block}@container style(--_ui-part:content){:host(:state(in-list))>.list,.ui.list .list:not(.ui){margin-left:var(--_ui-list-sublist-content-margin-left,0);padding-left:var(--_ui-list-sublist-content-padding-left,0)}}:host(:state(in-list))>.item,:is(.ui.list,.ui.list .list)>.item{--_ui-part:item;--_ui-icon-owner-display:var(--_ui-list-icon-display);--_ui-icon-owner-margin:0 .285714em 0 0;--_ui-icon-owner-align:var(--_ui-list-align);--_ui-icon-owner-size:initial;--_ui-icon-owner-opacity:initial}:host(:state(in-list))>.item{--_ui-image-owner-display:var(--_ui-list-image-display);--_ui-image-owner-align:var(--_ui-list-align);--_ui-image-owner-max-width:none}:host(:state(in-list))>.item,:is(.ui.list,.ui.list .list)>.item{display:var(--_ui-list-item-display);box-sizing:border-box;width:var(--_ui-list-item-width);margin:var(--_ui-list-item-margin);padding:var(--_ui-list-item-padding-block) var(--_ui-list-item-padding-right) var(--_ui-list-item-padding-block) var(--_ui-list-item-padding-left);border:0 solid var(--_ui-list-item-border-color);border-width:var(--_ui-list-item-border-width);border-radius:var(--_ui-list-item-radius);color:var(--_ui-list-item-color,inherit);font-size:var(--_ui-list-item-font-size,inherit);line-height:var(--_ui-list-item-line-height,inherit);table-layout:fixed;transition:var(--_ui-list-item-transition);background:0 0;list-style:none;position:relative}:host(:state(in-list):first-child)>.item,:is(.ui.list,.ui.list .list)>.item:first-child{margin-left:var(--_ui-list-item-first-margin-left);padding-top:var(--_ui-list-item-first-padding-top);padding-left:var(--_ui-list-item-first-padding-left);border-top-width:var(--_ui-list-item-first-border-top)}:host(:state(in-list):last-child)>.item,:is(.ui.list,.ui.list .list)>.item:last-child{margin-right:var(--_ui-list-item-last-margin-right);padding-right:var(--_ui-list-item-last-padding-right);padding-bottom:var(--_ui-list-item-last-padding-bottom);border-right-width:var(--_ui-list-item-last-border-right);border-bottom-width:var(--_ui-list-item-last-border-bottom)}:host(:state(in-list))>.item:after,:is(.ui.list,.ui.list .list)>.item:after{content:\"\";clear:both;visibility:hidden;height:0;display:block}:host(:state(in-list))>.item>slot::slotted(:state(in-list)){--_ui-icon-owner-display:initial;--_ui-icon-owner-margin:initial;--_ui-icon-owner-align:initial;--_ui-image-owner-display:initial;--_ui-image-owner-align:initial;--_ui-image-owner-max-width:initial}:host(:state(in-list))>.item:before,:is(.ui.list,.ui.list .list)>.item:before{content:var(--_ui-list-marker-content);position:var(--_ui-list-marker-position);margin:var(--_ui-list-marker-margin);color:var(--_ui-list-marker-color,inherit);font-size:var(--_ui-list-marker-size);font-weight:var(--ui-font-weight-normal);text-align:right;vertical-align:var(--_ui-list-marker-align);opacity:var(--_ui-list-marker-opacity);counter-increment:var(--_ui-list-counter-increment);pointer-events:none;-webkit-user-select:none;user-select:none;top:auto;left:auto}:host(:state(in-list))>:is(a,button).item:before,:is(.ui.list,.ui.list .list)>a.item:before{color:var(--_ui-list-marker-color,var(--ui-text-color))}:host(:state(in-list):first-child)>.item:before,:is(.ui.list,.ui.list .list)>.item:first-child:before{display:var(--_ui-list-first-marker-display,inline)}:host(:state(in-list))>.item>.icon,:is(.ui.list,.ui.list .list)>.item>.icon{--_ui-icon-owner-display:inline-flex;--_ui-icon-owner-margin:0;display:var(--_ui-list-icon-display);min-width:var(--_ui-list-icon-min-width);padding:var(--_ui-list-icon-padding);text-align:center;vertical-align:var(--_ui-list-align);transition:color var(--ui-duration-fast) var(--ui-ease);margin:0;line-height:1}:host(:state(in-list))>.item>.icon+slot{display:var(--_ui-list-icon-slot-display);width:100%;vertical-align:var(--_ui-list-align)}:host(:state(in-list))>.item>.image,:is(.ui.list,.ui.list .list)>.item>.image{display:var(--_ui-list-image-display);vertical-align:var(--_ui-list-align);background-color:#0000;margin:0}:is(.ui.list,.ui.list .list)>.item>.image:not(img,:only-child){padding-right:var(--_ui-list-image-distance)}:host(:state(in-list))>.item>img.image,:is(.ui.list,.ui.list .list)>.item>img.image,:host(:state(in-list))>.item>slot::slotted(img){vertical-align:var(--_ui-list-align);display:inline-block}:host(:state(in-list))>.item:has(>img.image){--_ui-item-media:image}:host(:state(in-list))>.item>img.avatar.image,:is(.ui.list,.ui.list .list)>.item>img.avatar.image{object-fit:cover;border-radius:50%;width:2em;height:2em;margin:0 .25em 0 0}:is(.ui.list,.ui.list .list)>.item [class*=left\\ floated]{float:left;margin:0 1em 0 0}:is(.ui.list,.ui.list .list)>.item [class*=right\\ floated]{float:right;margin:0 0 0 1em}}@layer ui.components.list.content{:host(:state(in-list))>:is(a,button).item,:is(.ui.list,.ui.list .list)>a.item,:is(.ui.selection.list,.ui.selection.list .list)>.item{color:var(--_ui-list-link-color);cursor:pointer;text-decoration:none}:host(:state(in-list))>:is(a,button).item:hover,:is(.ui.list,.ui.list .list)>a.item:hover,:is(.ui.selection.list,.ui.selection.list .list)>.item:hover{background:var(--_ui-list-item-hover-background);color:var(--_ui-list-link-hover-color)}:host(:state(in-list))>:is(a,button).item:active,:is(.ui.list,.ui.list .list)>a.item:active,:is(.ui.selection.list,.ui.selection.list .list)>.item:active{background:var(--_ui-list-item-down-background);color:var(--_ui-list-link-down-color)}:host(:state(in-list))>:is(a,button).item:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:calc(-1 * var(--ui-focus-width))}:host(:state(in-list))>:is(a,button).item>.icon,:is(.ui.list,.ui.list .list)>a.item>.icon{color:var(--_ui-list-link-icon-color,inherit)}:host(:state(in-list))>.item>slot::slotted(a:not(.ui)),:is(.ui.list,.ui.list .list)>.item a:not(.ui){color:var(--_ui-list-anchor-color);cursor:pointer}:host(:state(in-list))>.item>slot::slotted(a:not(.ui):hover),:is(.ui.list,.ui.list .list)>.item a:not(.ui):hover{color:var(--_ui-list-anchor-hover-color)}@media (prefers-reduced-motion:reduce){:host(:state(in-list))>.item,:is(.ui.list,.ui.list .list)>.item{transition:none}}}@layer ui.components.list.variations{.ui.horizontal.list{--_ui-list-layout:horizontal;--_ui-list-align:middle;--_ui-list-item-display:inline-block;--_ui-list-item-width:auto;--_ui-list-item-font-size:var(--_ui-list-font-size);--_ui-list-item-margin:0 1em 0 0;--_ui-list-item-last-margin-right:0;--_ui-list-item-first-padding-top:.214286em;--_ui-list-item-last-padding-bottom:.214286em;--_ui-list-item-last-padding-right:0;--_ui-list-icon-display:inline-block;--_ui-list-icon-slot-display:contents;--_ui-list-icon-padding:0 .25em 0 0;--_ui-list-image-display:inline-block;--_ui-list-sublist-padding:.75em 0 0;font-size:0;display:inline-block}.ui.bulleted.list{--_ui-list-marker:bullet;--_ui-list-marker-content:var(--ui-list-marker-content,\"•\");--_ui-list-marker-margin:var(--ui-list-marker-margin,0 0 0 -1.25em);--_ui-list-child-marker-margin:0 0 0 -1.25em;--_ui-list-sublist-padding:.75em 0 .25em 1.25em;--_ui-list-sublist-content-padding-left:1.25em;margin-left:1.25em}.ui.horizontal.bulleted.list{--_ui-list-item-margin:0 1em 0 1.75em;--_ui-list-item-first-margin-left:0;--_ui-list-marker-color:var(--ui-text-color);--_ui-list-first-marker-display:none;margin-left:0}.ui.ordered.list{--_ui-list-marker:number;--_ui-list-marker-content:counters(ordered, \".\") \" \";--_ui-list-marker-margin:0 0 0 -1.25em;--_ui-list-marker-color:var(--ui-text-color);--_ui-list-marker-opacity:.8;--_ui-list-marker-align:middle;--_ui-list-counter-increment:ordered;--_ui-list-counter-reset:ordered;--_ui-list-child-marker-margin:0 0 0 -2em;--_ui-list-sublist-margin:0 0 0 1em;--_ui-list-sublist-content-margin-left:1em;counter-reset:ordered;margin-left:1.25em}.ui.suffixed.ordered.list{--_ui-list-marker-content:counters(ordered, \".\") \".\"}.ui.horizontal.ordered.list{--_ui-list-marker-position:static;--_ui-list-marker-margin:0 .5em 0 0;margin-left:0}@container style(--_ui-list-marker:number){:host(:state(in-list))>.item[data-value]:before,:is(.ui.list,.ui.list .list)>.item[data-value]:before{content:attr(data-value)}}.ui.link.list{--_ui-list-item-color:var(--ui-list-item-color,var(--ui-text-unselected));--_ui-list-item-active-color:var(--ui-list-item-active-color,var(--ui-text-selected));--_ui-list-item-transition:var(--ui-list-item-transition,color var(--ui-duration-fast) var(--ui-ease));--_ui-list-link-color:var(--ui-list-link-color,var(--ui-text-unselected));--_ui-list-link-hover-color:var(--ui-list-link-hover-color,var(--ui-text-hovered));--_ui-list-link-down-color:var(--ui-list-link-down-color,var(--ui-text-pressed));--_ui-list-link-active-color:var(--ui-list-link-active-color,var(--ui-text-selected));--_ui-list-anchor-color:var(--ui-list-anchor-color,var(--ui-text-unselected));--_ui-list-anchor-hover-color:var(--ui-list-anchor-hover-color,var(--ui-text-hovered))}.ui.selection.list{--_ui-list-item-padding-block:var(--ui-list-item-padding-block,.5em);--_ui-list-item-padding-left:var(--ui-list-item-padding-left,.5em);--_ui-list-item-padding-right:var(--ui-list-item-padding-right,.5em);--_ui-list-item-first-padding-top:var(--ui-list-item-first-padding-top,.5em);--_ui-list-item-first-padding-left:var(--ui-list-item-first-padding-left,.5em);--_ui-list-item-last-padding-bottom:var(--ui-list-item-last-padding-bottom,.5em);--_ui-list-item-last-padding-right:var(--ui-list-item-last-padding-right,.5em);--_ui-list-item-radius:var(--ui-list-item-radius,.5em);--_ui-list-item-transition:var(--ui-list-item-transition,color var(--ui-duration-fast) var(--ui-ease), padding-left var(--ui-duration-fast) var(--ui-ease), background-color var(--ui-duration-fast) var(--ui-ease));--_ui-list-item-color:var(--ui-list-item-color,var(--ui-text-unselected));--_ui-list-item-active-color:var(--ui-list-item-active-color,var(--ui-text-selected));--_ui-list-item-hover-background:var(--ui-list-item-hover-background,oklch(from var(--ui-ink) l c h / .05));--_ui-list-item-down-background:var(--ui-list-item-down-background,oklch(from var(--ui-ink) l c h / .1));--_ui-list-item-active-background:var(--ui-list-item-active-background,oklch(from var(--ui-ink) l c h / .1));--_ui-list-link-color:var(--ui-list-link-color,var(--ui-text-unselected));--_ui-list-link-hover-color:var(--ui-list-link-hover-color,var(--ui-text-hovered));--_ui-list-link-down-color:var(--ui-list-link-down-color,var(--ui-text-pressed));--_ui-list-link-active-color:var(--ui-list-link-active-color,var(--ui-text-selected));--_ui-list-link-icon-color:var(--ui-list-link-icon-color,initial);--_ui-list-child-item-padding-block:.5em;--_ui-list-child-item-padding-left:.5em;--_ui-list-child-item-padding-right:.5em;--_ui-list-child-item-edge-padding:.5em}.ui.animated.list:not(.horizontal){--_ui-list-animated:1;--_ui-list-item-transition:color .25s var(--ui-ease) .1s, padding-left .25s var(--ui-ease) .1s, background-color .25s var(--ui-ease) .1s}@container style(--_ui-list-animated:1){:host(:state(in-list))>.item:hover,:is(.ui.list,.ui.list .list)>.item:hover{padding-left:1em}}.ui.fitted.list:not(.selection){--_ui-list-item-padding-left:0;--_ui-list-item-padding-right:0;--_ui-list-item-first-padding-left:0;--_ui-list-item-last-padding-right:0;--_ui-list-child-item-padding-left:0;--_ui-list-child-item-padding-right:0}.ui.fitted.selection.list{--_ui-list-item-margin:0 -.5em;--_ui-list-item-first-margin-left:-.5em;--_ui-list-item-last-margin-right:-.5em;--_ui-list-child-item-margin-inline:-.5em}.ui.divided.list{--_ui-list-item-border-width:1px 0 0;--_ui-list-item-first-border-top:0}.ui.divided.bulleted.list:not(.horizontal){--_ui-list-item-padding-left:1.25em;--_ui-list-item-first-padding-left:1.25em;--_ui-list-sublist-padding:.75em 0 .25em;--_ui-list-sublist-content-padding-left:0;margin-left:0}.ui.divided.ordered.list{--_ui-list-item-padding-left:1.25em;--_ui-list-item-first-padding-left:1.25em;--_ui-list-child-item-padding-left:1em;--_ui-list-sublist-margin:0;--_ui-list-sublist-padding:.75em 0 .214286em .5em;--_ui-list-sublist-content-margin-left:0;margin-left:0}.ui.divided.selection.list{--_ui-list-item-radius:0;--_ui-list-item-margin:0}.ui.divided.horizontal.list{--_ui-list-item-border-width:0 1px 0 0;--_ui-list-item-first-border-top:0;--_ui-list-item-last-border-right:0;--_ui-list-item-margin:0;--_ui-list-item-first-margin-left:0;--_ui-list-item-padding-left:.5em;--_ui-list-item-padding-right:.5em;--_ui-list-item-first-padding-left:.5em;--_ui-list-item-last-padding-right:0;--_ui-list-item-line-height:.6;margin-left:0}.ui.celled.list{--_ui-list-item-border-width:1px 0 0;--_ui-list-item-first-border-top:1px;--_ui-list-item-last-border-bottom:1px;--_ui-list-item-padding-left:.5em;--_ui-list-item-padding-right:.5em;--_ui-list-item-first-padding-top:.214286em;--_ui-list-item-first-padding-left:.5em;--_ui-list-item-last-padding-bottom:.214286em;--_ui-list-item-last-padding-right:.5em}.ui.celled.bulleted.list{--_ui-list-item-padding-left:1.25em;--_ui-list-item-first-padding-left:1.25em;--_ui-list-child-item-padding-left:1.25em;--_ui-list-sublist-margin:0 -1.25em;--_ui-list-sublist-padding:.75em 0 .214286em .5em;margin-left:0}.ui.celled.ordered.list{--_ui-list-item-padding-left:1.25em;--_ui-list-item-first-padding-left:1.25em;--_ui-list-child-item-padding-left:1em;--_ui-list-sublist-margin:0;--_ui-list-sublist-padding:.75em 0 .214286em .5em;--_ui-list-sublist-content-margin-left:0;margin-left:0}.ui.celled.selection.list{--_ui-list-item-radius:0}.ui.horizontal.celled.list{--_ui-list-item-border-width:0 0 0 1px;--_ui-list-item-first-border-top:0;--_ui-list-item-last-border-right:1px;--_ui-list-item-last-border-bottom:0;--_ui-list-item-margin:0;--_ui-list-item-first-margin-left:0;--_ui-list-item-padding-left:.5em;--_ui-list-item-padding-right:.5em;--_ui-list-item-first-padding-left:.5em;--_ui-list-item-last-padding-right:.5em;--_ui-list-item-line-height:.6;margin-left:0}.ui.relaxed.list:not(.horizontal){--_ui-list-item-padding-block:.428571em}.ui[class*=very\\ relaxed].list:not(.horizontal){--_ui-list-item-padding-block:.857143em}.ui.horizontal.relaxed.list{--_ui-list-item-padding-left:1em;--_ui-list-item-padding-right:1em;--_ui-list-item-first-padding-left:0;--_ui-list-item-last-padding-right:0}.ui.horizontal[class*=very\\ relaxed].list{--_ui-list-item-padding-left:1.5em;--_ui-list-item-padding-right:1.5em}.ui.inverted.list{--ui-inverted:1;--ui-scheme:dark;--_ui-list-content-color:var(--ui-text-inverted-light);--_ui-list-header-color:var(--ui-text-inverted-color);--_ui-list-description-color:var(--ui-text-inverted-light);--_ui-list-link-icon-color:var(--ui-text-inverted-light);--_ui-list-anchor-color:var(--ui-text-inverted-color);color-scheme:dark}.ui.inverted.list:not(.link,.selection){--_ui-list-link-color:var(--ui-text-inverted-color);--_ui-list-link-active-color:var(--ui-text-inverted-color)}.ui.inverted.ordered.list{--_ui-list-marker-color:var(--ui-text-inverted-light)}.ui.inverted.link.list{--_ui-list-anchor-color:var(--ui-text-inverted-unselected);--_ui-list-anchor-hover-color:var(--ui-text-inverted-hovered)}.ui[class*=top\\ aligned].list{--_ui-list-align:top}.ui[class*=middle\\ aligned].list{--_ui-list-align:middle}.ui[class*=bottom\\ aligned].list{--_ui-list-align:bottom}.ui[class*=left\\ floated].list{float:left}.ui[class*=right\\ floated].list{float:right}}@layer ui.components.list.states{:host(:state(in-list))>.active.item,:is(.ui.list,.ui.list .list)>.active.item{background:var(--_ui-list-item-active-background);color:var(--_ui-list-item-active-color,inherit)}:host(:state(in-list))>:is(a,button).active.item,:is(.ui.list,.ui.list .list)>a.active.item,:is(.ui.selection.list,.ui.selection.list .list)>.active.item{color:var(--_ui-list-link-active-color)}:host(:state(in-list))>.active.item:before,:is(.ui.list,.ui.list .list)>.active.item:before{color:var(--_ui-list-marker-active-color,var(--_ui-list-marker-color,inherit))}:host(:state(in-list))>:is(a,button).active.item:before,:is(.ui.list,.ui.list .list)>a.active.item:before{color:var(--_ui-list-marker-active-color,var(--_ui-list-marker-color,var(--ui-text-color)))}:host(:state(in-list))>:is(a,button).item:hover>.icon,:is(.ui.list,.ui.list .list)>a.item:hover>.icon{color:var(--_ui-list-link-icon-hover-color,inherit)}:host(:state(in-list))>.disabled.item,:is(.ui.list,.ui.list .list)>.disabled.item{color:var(--_ui-list-disabled-color);pointer-events:none}}", y = /* @__PURE__ */ g("<slot>"), b, x, S, C, w, T, E = class _UIList extends (w = o, C = [u], S = [d], x = [c], b = [l("click")], w) {
|
|
172
|
+
}, v = "@layer ui.components.list.types{:host{display:contents}.ui.list{--_ui-list-layout:vertical;--_ui-list-align:top;--_ui-list-font-size:var(--ui-list-font-size,calc(var(--ui-font-size) * var(--ui-scale,1)));--_ui-list-margin:var(--ui-list-margin,1em);--_ui-list-item-display:var(--ui-list-item-display,list-item);--_ui-list-stretch:stretch;--_ui-list-item-width:var(--ui-list-item-width,var(--_ui-list-stretch));--_ui-list-item-font-size:var(--ui-list-item-font-size,initial);--_ui-list-item-line-height:var(--ui-list-item-line-height,1.14286em);--_ui-list-item-padding-block:var(--ui-list-item-padding-block,.214286em);--_ui-list-item-padding-left:var(--ui-list-item-padding-left,0);--_ui-list-item-padding-right:var(--ui-list-item-padding-right,0);--_ui-list-item-first-padding-top:var(--ui-list-item-first-padding-top,0);--_ui-list-item-first-padding-left:var(--ui-list-item-first-padding-left,var(--_ui-list-item-padding-left));--_ui-list-item-last-padding-bottom:var(--ui-list-item-last-padding-bottom,0);--_ui-list-item-last-padding-right:var(--ui-list-item-last-padding-right,var(--_ui-list-item-padding-right));--_ui-list-item-margin:var(--ui-list-item-margin,0);--_ui-list-item-first-margin-left:var(--ui-list-item-first-margin-left,0);--_ui-list-item-last-margin-right:var(--ui-list-item-last-margin-right,0);--_ui-list-item-border-width:var(--ui-list-item-border-width,0);--_ui-list-item-first-border-top:var(--ui-list-item-first-border-top,0);--_ui-list-item-last-border-right:var(--ui-list-item-last-border-right,0);--_ui-list-item-last-border-bottom:var(--ui-list-item-last-border-bottom,0);--_ui-list-item-border-color:var(--ui-list-item-border-color,var(--ui-border-color));--_ui-list-item-radius:var(--ui-list-item-radius,0);--_ui-list-item-transition:var(--ui-list-item-transition,none);--_ui-list-item-color:var(--ui-list-item-color,initial);--_ui-list-item-active-color:var(--ui-list-item-active-color,initial);--_ui-list-item-hover-background:var(--ui-list-item-hover-background,transparent);--_ui-list-item-down-background:var(--ui-list-item-down-background,transparent);--_ui-list-item-active-background:var(--ui-list-item-active-background,transparent);--_ui-list-link-color:var(--ui-list-link-color,var(--ui-link));--_ui-list-link-hover-color:var(--ui-list-link-hover-color,var(--ui-link-hover));--_ui-list-link-down-color:var(--ui-list-link-down-color,var(--ui-link-hover));--_ui-list-link-active-color:var(--ui-list-link-active-color,var(--ui-link));--_ui-list-link-icon-color:var(--ui-list-link-icon-color,var(--ui-text-light));--_ui-list-link-icon-hover-color:var(--ui-list-link-icon-hover-color,var(--ui-text-color));--_ui-list-anchor-color:var(--ui-list-anchor-color,var(--ui-link));--_ui-list-anchor-hover-color:var(--ui-list-anchor-hover-color,var(--ui-link-hover));--_ui-list-disabled-color:var(--ui-list-disabled-color,var(--ui-text-disabled));--_ui-list-icon-display:var(--ui-list-icon-display,table-cell);--_ui-list-icon-slot-display:var(--ui-list-icon-slot-display,table-cell);--_ui-list-icon-min-width:var(--ui-list-icon-min-width,1.55em);--_ui-list-icon-padding:var(--ui-list-icon-padding,0 .285714em 0 0);--_ui-list-image-display:var(--ui-list-image-display,table-cell);--_ui-list-image-distance:var(--ui-list-image-distance,.5em);--_ui-list-content-distance:var(--ui-list-content-distance,.5em);--_ui-list-content-color:var(--ui-list-content-color,var(--ui-text-color));--_ui-list-header-color:var(--ui-list-header-color,var(--ui-text-color));--_ui-list-description-color:var(--ui-list-description-color,oklch(from var(--ui-ink) l c h / .7));--_ui-list-marker:none;--_ui-list-marker-content:var(--ui-list-marker-content,none);--_ui-list-marker-position:var(--ui-list-marker-position,absolute);--_ui-list-marker-margin:var(--ui-list-marker-margin,0);--_ui-list-marker-color:var(--ui-list-marker-color,initial);--_ui-list-marker-active-color:var(--ui-list-marker-active-color,initial);--_ui-list-marker-size:var(--ui-list-marker-size,1em);--_ui-list-marker-opacity:var(--ui-list-marker-opacity,1);--_ui-list-marker-align:var(--ui-list-marker-align,top);--_ui-list-counter-increment:var(--ui-list-counter-increment,none);--_ui-list-counter-reset:var(--ui-list-counter-reset,none);--_ui-list-first-marker-display:var(--ui-list-first-marker-display,initial);--_ui-list-animated:0;--_ui-list-sublist-margin:var(--ui-list-sublist-margin,0);--_ui-list-sublist-padding:var(--ui-list-sublist-padding,.75em 0 .25em .5em);--_ui-list-sublist-content-margin-left:var(--ui-list-sublist-content-margin-left,initial);--_ui-list-sublist-content-padding-left:var(--ui-list-sublist-content-padding-left,initial);--_ui-list-child-item-padding-block:var(--ui-list-child-item-padding-block,.142857em);--_ui-list-child-item-padding-left:var(--ui-list-child-item-padding-left,0);--_ui-list-child-item-padding-right:var(--ui-list-child-item-padding-right,0);--_ui-list-child-item-edge-padding:var(--ui-list-child-item-edge-padding,0);--_ui-list-child-item-margin-inline:var(--ui-list-child-item-margin-inline,0);--_ui-list-child-marker-margin:var(--ui-list-child-marker-margin,0);box-sizing:border-box;margin:var(--_list-margin-top,var(--_ui-list-margin)) 0 var(--_list-margin-bottom,var(--_ui-list-margin));font-size:var(--_ui-list-font-size);padding:0;list-style:none}.ui.list:first-child{--_list-margin-top:0}.ui.list:last-child{--_list-margin-bottom:0}:host(:not(:first-child))>.ui.list{--_list-margin-top:initial}:host(:not(:last-child))>.ui.list{--_list-margin-bottom:initial}.list>slot{--ui-scale:initial}@supports not (width:stretch){@supports (width:-webkit-fill-available){.ui.list{--_ui-list-stretch:-webkit-fill-available}}@supports (width:-moz-available){.ui.list{--_ui-list-stretch:-moz-available}}}:host(:state(in-list))>.list,.ui.list .list:not(.ui){--_ui-list-layout:vertical;--_ui-list-animated:0;--_ui-list-item-display:list-item;--_ui-list-item-width:var(--_ui-list-stretch);--_ui-list-item-font-size:initial;--_ui-list-item-line-height:initial;--_ui-list-item-padding-block:var(--_ui-list-child-item-padding-block);--_ui-list-item-padding-left:var(--_ui-list-child-item-padding-left);--_ui-list-item-padding-right:var(--_ui-list-child-item-padding-right);--_ui-list-item-first-padding-top:var(--_ui-list-child-item-edge-padding);--_ui-list-item-first-padding-left:var(--_ui-list-child-item-padding-left);--_ui-list-item-last-padding-bottom:var(--_ui-list-child-item-edge-padding);--_ui-list-item-last-padding-right:var(--_ui-list-child-item-padding-right);--_ui-list-item-margin:0 var(--_ui-list-child-item-margin-inline);--_ui-list-item-first-margin-left:var(--_ui-list-child-item-margin-inline);--_ui-list-item-last-margin-right:var(--_ui-list-child-item-margin-inline);--_ui-list-item-border-width:0;--_ui-list-item-first-border-top:0;--_ui-list-item-last-border-right:0;--_ui-list-item-last-border-bottom:0;--_ui-list-marker-margin:var(--_ui-list-child-marker-margin);--_ui-list-first-marker-display:initial;--_ui-list-icon-display:table-cell;--_ui-list-icon-slot-display:table-cell;--_ui-list-icon-padding:0 .285714em 0 0;--_ui-list-image-display:table-cell;clear:both;margin:var(--_ui-list-sublist-margin);padding:var(--_ui-list-sublist-padding);counter-reset:var(--_ui-list-counter-reset);list-style:none;display:block}@container style(--_ui-part:content){:host(:state(in-list))>.list,.ui.list .list:not(.ui){margin-left:var(--_ui-list-sublist-content-margin-left,0);padding-left:var(--_ui-list-sublist-content-padding-left,0)}}:host(:state(in-list))>.item,:is(.ui.list,.ui.list .list)>.item{--_ui-part:item;--_ui-icon-owner-display:var(--_ui-list-icon-display);--_ui-icon-owner-margin:0 .285714em 0 0;--_ui-icon-owner-align:var(--_ui-list-align);--_ui-icon-owner-size:initial;--_ui-icon-owner-opacity:initial}:host(:state(in-list))>.item{--_ui-image-owner-display:var(--_ui-list-image-display);--_ui-image-owner-align:var(--_ui-list-align);--_ui-image-owner-max-width:none}:host(:state(in-list))>.item,:is(.ui.list,.ui.list .list)>.item{display:var(--_ui-list-item-display);box-sizing:border-box;width:var(--_ui-list-item-width);margin:var(--_ui-list-item-margin);padding:var(--_ui-list-item-padding-block) var(--_ui-list-item-padding-right) var(--_ui-list-item-padding-block) var(--_ui-list-item-padding-left);border:0 solid var(--_ui-list-item-border-color);border-width:var(--_ui-list-item-border-width);border-radius:var(--_ui-list-item-radius);color:var(--_ui-list-item-color,inherit);font-size:var(--_ui-list-item-font-size,inherit);line-height:var(--_ui-list-item-line-height,inherit);table-layout:fixed;transition:var(--_ui-list-item-transition);background:0 0;list-style:none;position:relative}:host(:state(in-list):first-child)>.item,:is(.ui.list,.ui.list .list)>.item:first-child{margin-left:var(--_ui-list-item-first-margin-left);padding-top:var(--_ui-list-item-first-padding-top);padding-left:var(--_ui-list-item-first-padding-left);border-top-width:var(--_ui-list-item-first-border-top)}:host(:state(in-list):last-child)>.item,:is(.ui.list,.ui.list .list)>.item:last-child{margin-right:var(--_ui-list-item-last-margin-right);padding-right:var(--_ui-list-item-last-padding-right);padding-bottom:var(--_ui-list-item-last-padding-bottom);border-right-width:var(--_ui-list-item-last-border-right);border-bottom-width:var(--_ui-list-item-last-border-bottom)}:host(:state(in-list))>.item:after,:is(.ui.list,.ui.list .list)>.item:after{content:\"\";clear:both;visibility:hidden;height:0;display:block}:host(:state(in-list))>.item>slot::slotted(:state(in-list)){--_ui-icon-owner-display:initial;--_ui-icon-owner-margin:initial;--_ui-icon-owner-align:initial;--_ui-image-owner-display:initial;--_ui-image-owner-align:initial;--_ui-image-owner-max-width:initial}:host(:state(in-list))>.item:before,:is(.ui.list,.ui.list .list)>.item:before{content:var(--_ui-list-marker-content);position:var(--_ui-list-marker-position);margin:var(--_ui-list-marker-margin);color:var(--_ui-list-marker-color,inherit);font-size:var(--_ui-list-marker-size);font-weight:var(--ui-font-weight-normal);text-align:right;vertical-align:var(--_ui-list-marker-align);opacity:var(--_ui-list-marker-opacity);counter-increment:var(--_ui-list-counter-increment);pointer-events:none;-webkit-user-select:none;user-select:none;top:auto;left:auto}:host(:state(in-list))>:is(a,button).item:before,:is(.ui.list,.ui.list .list)>a.item:before{color:var(--_ui-list-marker-color,var(--ui-text-color))}:host(:state(in-list):first-child)>.item:before,:is(.ui.list,.ui.list .list)>.item:first-child:before{display:var(--_ui-list-first-marker-display,inline)}:host(:state(in-list))>.item>.icon,:is(.ui.list,.ui.list .list)>.item>.icon{--_ui-icon-owner-display:inline-flex;--_ui-icon-owner-margin:0;display:var(--_ui-list-icon-display);min-width:var(--_ui-list-icon-min-width);padding:var(--_ui-list-icon-padding);text-align:center;vertical-align:var(--_ui-list-align);transition:color var(--ui-duration-fast) var(--ui-ease);margin:0;line-height:1}:host(:state(in-list))>.item>.icon+slot{display:var(--_ui-list-icon-slot-display);width:100%;vertical-align:var(--_ui-list-align)}:host(:state(in-list))>.item>.image,:is(.ui.list,.ui.list .list)>.item>.image{display:var(--_ui-list-image-display);vertical-align:var(--_ui-list-align);background-color:#0000;margin:0}:is(.ui.list,.ui.list .list)>.item>.image:not(img,:only-child){padding-right:var(--_ui-list-image-distance)}:host(:state(in-list))>.item>img.image,:is(.ui.list,.ui.list .list)>.item>img.image,:host(:state(in-list))>.item>slot::slotted(img){vertical-align:var(--_ui-list-align);display:inline-block}:host(:state(in-list))>.item:has(>img.image){--_ui-item-media:image}:host(:state(in-list))>.item>img.avatar.image,:is(.ui.list,.ui.list .list)>.item>img.avatar.image{object-fit:cover;border-radius:50%;width:2em;height:2em;margin:0 .25em 0 0}:is(.ui.list,.ui.list .list)>.item [class*=left\\ floated]{float:left;margin:0 1em 0 0}:is(.ui.list,.ui.list .list)>.item [class*=right\\ floated]{float:right;margin:0 0 0 1em}}@layer ui.components.list.content{:host(:state(in-list))>:is(a,button).item,:is(.ui.list,.ui.list .list)>a.item,:is(.ui.selection.list,.ui.selection.list .list)>.item{color:var(--_ui-list-link-color);cursor:var(--ui-control-cursor);text-decoration:none}:host(:state(in-list))>:is(a,button).item:hover,:is(.ui.list,.ui.list .list)>a.item:hover,:is(.ui.selection.list,.ui.selection.list .list)>.item:hover{background:var(--_ui-list-item-hover-background);color:var(--_ui-list-link-hover-color)}:host(:state(in-list))>:is(a,button).item:active,:is(.ui.list,.ui.list .list)>a.item:active,:is(.ui.selection.list,.ui.selection.list .list)>.item:active{background:var(--_ui-list-item-down-background);color:var(--_ui-list-link-down-color)}:host(:state(in-list))>:is(a,button).item:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:calc(-1 * var(--ui-focus-width))}:host(:state(in-list))>:is(a,button).item>.icon,:is(.ui.list,.ui.list .list)>a.item>.icon{color:var(--_ui-list-link-icon-color,inherit)}:host(:state(in-list))>.item>slot::slotted(a:not(.ui)),:is(.ui.list,.ui.list .list)>.item a:not(.ui){color:var(--_ui-list-anchor-color);cursor:var(--ui-control-cursor)}:host(:state(in-list))>.item>slot::slotted(a:not(.ui):hover),:is(.ui.list,.ui.list .list)>.item a:not(.ui):hover{color:var(--_ui-list-anchor-hover-color)}@media (prefers-reduced-motion:reduce){:host(:state(in-list))>.item,:is(.ui.list,.ui.list .list)>.item{transition:none}}}@layer ui.components.list.variations{.ui.horizontal.list{--_ui-list-layout:horizontal;--_ui-list-align:middle;--_ui-list-item-display:inline-block;--_ui-list-item-width:auto;--_ui-list-item-font-size:var(--_ui-list-font-size);--_ui-list-item-margin:0 1em 0 0;--_ui-list-item-last-margin-right:0;--_ui-list-item-first-padding-top:.214286em;--_ui-list-item-last-padding-bottom:.214286em;--_ui-list-item-last-padding-right:0;--_ui-list-icon-display:inline-block;--_ui-list-icon-slot-display:contents;--_ui-list-icon-padding:0 .25em 0 0;--_ui-list-image-display:inline-block;--_ui-list-sublist-padding:.75em 0 0;font-size:0;display:inline-block}.ui.bulleted.list{--_ui-list-marker:bullet;--_ui-list-marker-content:var(--ui-list-marker-content,\"•\");--_ui-list-marker-margin:var(--ui-list-marker-margin,0 0 0 -1.25em);--_ui-list-child-marker-margin:0 0 0 -1.25em;--_ui-list-sublist-padding:.75em 0 .25em 1.25em;--_ui-list-sublist-content-padding-left:1.25em;margin-left:1.25em}.ui.horizontal.bulleted.list{--_ui-list-item-margin:0 1em 0 1.75em;--_ui-list-item-first-margin-left:0;--_ui-list-marker-color:var(--ui-text-color);--_ui-list-first-marker-display:none;margin-left:0}.ui.ordered.list{--_ui-list-marker:number;--_ui-list-marker-content:counters(ordered, \".\") \" \";--_ui-list-marker-margin:0 0 0 -1.25em;--_ui-list-marker-color:var(--ui-text-color);--_ui-list-marker-opacity:.8;--_ui-list-marker-align:middle;--_ui-list-counter-increment:ordered;--_ui-list-counter-reset:ordered;--_ui-list-child-marker-margin:0 0 0 -2em;--_ui-list-sublist-margin:0 0 0 1em;--_ui-list-sublist-content-margin-left:1em;counter-reset:ordered;margin-left:1.25em}.ui.suffixed.ordered.list{--_ui-list-marker-content:counters(ordered, \".\") \".\"}.ui.horizontal.ordered.list{--_ui-list-marker-position:static;--_ui-list-marker-margin:0 .5em 0 0;margin-left:0}@container style(--_ui-list-marker:number){:host(:state(in-list))>.item[data-value]:before,:is(.ui.list,.ui.list .list)>.item[data-value]:before{content:attr(data-value)}}.ui.link.list{--_ui-list-item-color:var(--ui-list-item-color,var(--ui-text-unselected));--_ui-list-item-active-color:var(--ui-list-item-active-color,var(--ui-text-selected));--_ui-list-item-transition:var(--ui-list-item-transition,color var(--ui-duration-fast) var(--ui-ease));--_ui-list-link-color:var(--ui-list-link-color,var(--ui-text-unselected));--_ui-list-link-hover-color:var(--ui-list-link-hover-color,var(--ui-text-hovered));--_ui-list-link-down-color:var(--ui-list-link-down-color,var(--ui-text-pressed));--_ui-list-link-active-color:var(--ui-list-link-active-color,var(--ui-text-selected));--_ui-list-anchor-color:var(--ui-list-anchor-color,var(--ui-text-unselected));--_ui-list-anchor-hover-color:var(--ui-list-anchor-hover-color,var(--ui-text-hovered))}.ui.selection.list{--_ui-list-item-padding-block:var(--ui-list-item-padding-block,.5em);--_ui-list-item-padding-left:var(--ui-list-item-padding-left,.5em);--_ui-list-item-padding-right:var(--ui-list-item-padding-right,.5em);--_ui-list-item-first-padding-top:var(--ui-list-item-first-padding-top,.5em);--_ui-list-item-first-padding-left:var(--ui-list-item-first-padding-left,.5em);--_ui-list-item-last-padding-bottom:var(--ui-list-item-last-padding-bottom,.5em);--_ui-list-item-last-padding-right:var(--ui-list-item-last-padding-right,.5em);--_ui-list-item-radius:var(--ui-list-item-radius,.5em);--_ui-list-item-transition:var(--ui-list-item-transition,color var(--ui-duration-fast) var(--ui-ease), padding-left var(--ui-duration-fast) var(--ui-ease), background-color var(--ui-duration-fast) var(--ui-ease));--_ui-list-item-color:var(--ui-list-item-color,var(--ui-text-unselected));--_ui-list-item-active-color:var(--ui-list-item-active-color,var(--ui-text-selected));--_ui-list-item-hover-background:var(--ui-list-item-hover-background,oklch(from var(--ui-ink) l c h / .05));--_ui-list-item-down-background:var(--ui-list-item-down-background,oklch(from var(--ui-ink) l c h / .1));--_ui-list-item-active-background:var(--ui-list-item-active-background,oklch(from var(--ui-ink) l c h / .1));--_ui-list-link-color:var(--ui-list-link-color,var(--ui-text-unselected));--_ui-list-link-hover-color:var(--ui-list-link-hover-color,var(--ui-text-hovered));--_ui-list-link-down-color:var(--ui-list-link-down-color,var(--ui-text-pressed));--_ui-list-link-active-color:var(--ui-list-link-active-color,var(--ui-text-selected));--_ui-list-link-icon-color:var(--ui-list-link-icon-color,initial);--_ui-list-child-item-padding-block:.5em;--_ui-list-child-item-padding-left:.5em;--_ui-list-child-item-padding-right:.5em;--_ui-list-child-item-edge-padding:.5em}.ui.animated.list:not(.horizontal){--_ui-list-animated:1;--_ui-list-item-transition:color .25s var(--ui-ease) .1s, padding-left .25s var(--ui-ease) .1s, background-color .25s var(--ui-ease) .1s}@container style(--_ui-list-animated:1){:host(:state(in-list))>.item:hover,:is(.ui.list,.ui.list .list)>.item:hover{padding-left:1em}}.ui.fitted.list:not(.selection){--_ui-list-item-padding-left:0;--_ui-list-item-padding-right:0;--_ui-list-item-first-padding-left:0;--_ui-list-item-last-padding-right:0;--_ui-list-child-item-padding-left:0;--_ui-list-child-item-padding-right:0}.ui.fitted.selection.list{--_ui-list-item-margin:0 -.5em;--_ui-list-item-first-margin-left:-.5em;--_ui-list-item-last-margin-right:-.5em;--_ui-list-child-item-margin-inline:-.5em}.ui.divided.list{--_ui-list-item-border-width:1px 0 0;--_ui-list-item-first-border-top:0}.ui.divided.bulleted.list:not(.horizontal){--_ui-list-item-padding-left:1.25em;--_ui-list-item-first-padding-left:1.25em;--_ui-list-sublist-padding:.75em 0 .25em;--_ui-list-sublist-content-padding-left:0;margin-left:0}.ui.divided.ordered.list{--_ui-list-item-padding-left:1.25em;--_ui-list-item-first-padding-left:1.25em;--_ui-list-child-item-padding-left:1em;--_ui-list-sublist-margin:0;--_ui-list-sublist-padding:.75em 0 .214286em .5em;--_ui-list-sublist-content-margin-left:0;margin-left:0}.ui.divided.selection.list{--_ui-list-item-radius:0;--_ui-list-item-margin:0}.ui.divided.horizontal.list{--_ui-list-item-border-width:0 1px 0 0;--_ui-list-item-first-border-top:0;--_ui-list-item-last-border-right:0;--_ui-list-item-margin:0;--_ui-list-item-first-margin-left:0;--_ui-list-item-padding-left:.5em;--_ui-list-item-padding-right:.5em;--_ui-list-item-first-padding-left:.5em;--_ui-list-item-last-padding-right:0;--_ui-list-item-line-height:.6;margin-left:0}.ui.celled.list{--_ui-list-item-border-width:1px 0 0;--_ui-list-item-first-border-top:1px;--_ui-list-item-last-border-bottom:1px;--_ui-list-item-padding-left:.5em;--_ui-list-item-padding-right:.5em;--_ui-list-item-first-padding-top:.214286em;--_ui-list-item-first-padding-left:.5em;--_ui-list-item-last-padding-bottom:.214286em;--_ui-list-item-last-padding-right:.5em}.ui.celled.bulleted.list{--_ui-list-item-padding-left:1.25em;--_ui-list-item-first-padding-left:1.25em;--_ui-list-child-item-padding-left:1.25em;--_ui-list-sublist-margin:0 -1.25em;--_ui-list-sublist-padding:.75em 0 .214286em .5em;margin-left:0}.ui.celled.ordered.list{--_ui-list-item-padding-left:1.25em;--_ui-list-item-first-padding-left:1.25em;--_ui-list-child-item-padding-left:1em;--_ui-list-sublist-margin:0;--_ui-list-sublist-padding:.75em 0 .214286em .5em;--_ui-list-sublist-content-margin-left:0;margin-left:0}.ui.celled.selection.list{--_ui-list-item-radius:0}.ui.horizontal.celled.list{--_ui-list-item-border-width:0 0 0 1px;--_ui-list-item-first-border-top:0;--_ui-list-item-last-border-right:1px;--_ui-list-item-last-border-bottom:0;--_ui-list-item-margin:0;--_ui-list-item-first-margin-left:0;--_ui-list-item-padding-left:.5em;--_ui-list-item-padding-right:.5em;--_ui-list-item-first-padding-left:.5em;--_ui-list-item-last-padding-right:.5em;--_ui-list-item-line-height:.6;margin-left:0}.ui.relaxed.list:not(.horizontal){--_ui-list-item-padding-block:.428571em}.ui[class*=very\\ relaxed].list:not(.horizontal){--_ui-list-item-padding-block:.857143em}.ui.horizontal.relaxed.list{--_ui-list-item-padding-left:1em;--_ui-list-item-padding-right:1em;--_ui-list-item-first-padding-left:0;--_ui-list-item-last-padding-right:0}.ui.horizontal[class*=very\\ relaxed].list{--_ui-list-item-padding-left:1.5em;--_ui-list-item-padding-right:1.5em}.ui.inverted.list{--ui-inverted:1;--ui-scheme:dark;--_ui-list-content-color:var(--ui-text-inverted-light);--_ui-list-header-color:var(--ui-text-inverted-color);--_ui-list-description-color:var(--ui-text-inverted-light);--_ui-list-link-icon-color:var(--ui-text-inverted-light);--_ui-list-anchor-color:var(--ui-text-inverted-color);color-scheme:dark}.ui.inverted.list:not(.link,.selection){--_ui-list-link-color:var(--ui-text-inverted-color);--_ui-list-link-active-color:var(--ui-text-inverted-color)}.ui.inverted.ordered.list{--_ui-list-marker-color:var(--ui-text-inverted-light)}.ui.inverted.link.list{--_ui-list-anchor-color:var(--ui-text-inverted-unselected);--_ui-list-anchor-hover-color:var(--ui-text-inverted-hovered)}.ui[class*=top\\ aligned].list{--_ui-list-align:top}.ui[class*=middle\\ aligned].list{--_ui-list-align:middle}.ui[class*=bottom\\ aligned].list{--_ui-list-align:bottom}.ui[class*=left\\ floated].list{float:left}.ui[class*=right\\ floated].list{float:right}}@layer ui.components.list.states{:host(:state(in-list))>.active.item,:is(.ui.list,.ui.list .list)>.active.item{background:var(--_ui-list-item-active-background);color:var(--_ui-list-item-active-color,inherit)}:host(:state(in-list))>:is(a,button).active.item,:is(.ui.list,.ui.list .list)>a.active.item,:is(.ui.selection.list,.ui.selection.list .list)>.active.item{color:var(--_ui-list-link-active-color)}:host(:state(in-list))>.active.item:before,:is(.ui.list,.ui.list .list)>.active.item:before{color:var(--_ui-list-marker-active-color,var(--_ui-list-marker-color,inherit))}:host(:state(in-list))>:is(a,button).active.item:before,:is(.ui.list,.ui.list .list)>a.active.item:before{color:var(--_ui-list-marker-active-color,var(--_ui-list-marker-color,var(--ui-text-color)))}:host(:state(in-list))>:is(a,button).item:hover>.icon,:is(.ui.list,.ui.list .list)>a.item:hover>.icon{color:var(--_ui-list-link-icon-hover-color,inherit)}:host(:state(in-list))>.disabled.item,:is(.ui.list,.ui.list .list)>.disabled.item{color:var(--_ui-list-disabled-color);pointer-events:none}}", y = /* @__PURE__ */ g("<slot>"), b, x, S, C, w, T, E = class _UIList extends (w = a, C = [l], S = [u], x = [s], b = [c("click")], w) {
|
|
171
173
|
constructor() {
|
|
172
|
-
super(...arguments),
|
|
174
|
+
super(...arguments), o(T, 5, this), t(this, "context", new r({
|
|
173
175
|
domElement: this.domElement,
|
|
174
176
|
noun: this.vocabulary.noun
|
|
175
177
|
}));
|
|
@@ -244,11 +246,11 @@ var _ = {
|
|
|
244
246
|
return t || n || (e.textContent ?? "").trim();
|
|
245
247
|
}
|
|
246
248
|
};
|
|
247
|
-
T =
|
|
249
|
+
T = d(w), n(T, 2, "ownItemContext", x, E), n(T, 1, "onClick", b, E), n(T, 13, "vocabulary", C, E), n(T, 13, "elementSetup", S, E), i(T, E), e(E, "UIList"), t(E, "vocabulary", o(T, 8, E, _)), o(T, 11, E), t(E, "elementSetup", o(T, 12, E, {
|
|
248
250
|
styleSheets: { list: v },
|
|
249
251
|
isAPart: !0,
|
|
250
252
|
delegatesFocus: !1
|
|
251
|
-
})),
|
|
253
|
+
})), o(T, 15, E);
|
|
252
254
|
var D = E, O = /* @__PURE__ */ new Set(["a", "button"]);
|
|
253
255
|
//#endregion
|
|
254
256
|
//#region src/components/ui-list/index.ts
|