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-toast.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { A as e, B as t, Bt as n, CloseButton as r, D as i, DOMElement as a, Disclosure as o, F as s, Ft as c,
|
|
2
|
+
import { A as e, B as t, Bt as n, CloseButton as r, D as i, DOMElement as a, Disclosure as o, F as s, Ft as c, Ht as l, IconGlyph as ee, L as u, Lt as d, NodeType as te, OwnControls as ne, R as re, Rt as ie, SlotContent as ae, UI as f, UIComponent as p, Ut as m, ValueSets as h, Vt as g, Warnings as oe, after as se, afterSolidUpdate as ce, c as le, cssState as _, derived as v, f as ue, isBrowser as de, jt as fe, n as pe, on as y, onChange as me, proto as he, protoMerged as ge, s as _e, state as b, v as ve, zt as ye } from "./core.js";
|
|
3
3
|
import "./ui-button.js";
|
|
4
4
|
import { Show as x } from "solid-js";
|
|
5
5
|
import { addEvent as be, className as S, createComponent as C, delegateEvents as xe, effect as w, getOwner as T, insert as E, memo as D, readShallow as O, ref as Se, setAttribute as k, setStyleProperty as Ce, template as A } from "@solidjs/web";
|
|
6
6
|
//#region src/components/ui-toast/UIToast.en.ts
|
|
7
7
|
var j = {
|
|
8
8
|
tag: "ui-toast",
|
|
9
|
+
icon: "bell",
|
|
9
10
|
topics: [
|
|
10
11
|
"notifications",
|
|
11
12
|
"messages",
|
|
@@ -223,47 +224,47 @@ var j = {
|
|
|
223
224
|
text: "Notifications",
|
|
224
225
|
description: "Accessible name of each `UI.toast()` container (a `region` landmark)."
|
|
225
226
|
}]
|
|
226
|
-
}, M = "actions", N = "attached", we = "inverted", P = "vertical", Te = "@layer ui.components.toast.types{:host{display:block}.toast-box{--_ui-toast-width:var(--ui-toast-width,350px);--_ui-toast-mobile-width:var(--ui-toast-mobile-width,280px);--_ui-toast-radius:var(--ui-toast-radius,var(--ui-radius));--_ui-toast-padding:var(--ui-toast-padding,.785714em 1em);--_ui-toast-font-size:var(--ui-toast-font-size,var(--ui-font-size));--_ui-toast-box-margin:var(--ui-toast-box-margin,.5em);--_ui-toast-background:var(--ui-toast-background,var(--ui-surface));--_ui-toast-color:var(--ui-toast-color,var(--ui-text-color));--_ui-toast-inverted-background:var(--ui-toast-inverted-background,var(--ui-surface));--_ui-toast-border:var(--ui-toast-border,1px solid var(--ui-border-color));--_ui-toast-inverted-border:var(--ui-toast-inverted-border,1px solid oklch(from var(--ui-ink-on-dark) l c h / .5));--_ui-toast-shadow:var(--ui-toast-shadow,var(--ui-shadow-floating));--_ui-toast-duration:var(--ui-toast-duration,var(--ui-duration-slower));--_ui-toast-icon-size:var(--ui-toast-icon-size,1.5em);--_ui-toast-icon-padding:var(--ui-toast-icon-padding,3em);--_ui-toast-close-distance:var(--ui-toast-close-distance,.3em);--_ui-toast-close-opacity:var(--ui-toast-close-opacity,.7);--_ui-toast-action-background:var(--ui-toast-action-background,light-dark(oklch(100% 0 0/.25),oklch(0% 0 0/.2)));--_ui-toast-action-border:var(--ui-toast-action-border,1px solid oklch(0% 0 0/.2));--_ui-toast-action-margin:var(--ui-toast-action-margin,-1em);--_ui-toast-action-margin-top:var(--ui-toast-action-margin-top,.5em);--_ui-toast-action-margin-left:var(--ui-toast-action-margin-left,1em);--_ui-toast-action-gap:var(--ui-toast-action-gap,.3em);--_ui-toast-action-padding:var(--ui-toast-action-padding,.5em);--_ui-toast-action-padding-bottom:var(--ui-toast-action-padding-bottom,.75em);--_ui-toast-progress-height:var(--ui-toast-progress-height,.2em);--ui-animation-duration:var(--_ui-toast-duration);box-sizing:border-box;width:fit-content;max-width:100%;margin:0 0 var(--_ui-toast-box-margin);border-radius:var(--_ui-toast-radius);font-size:var(--_ui-toast-font-size);line-height:var(--ui-line-height);cursor:default;will-change:transform, opacity;display:block;position:relative}.toast-box:not(.unclickable):hover{cursor:
|
|
227
|
+
}, M = "actions", N = "attached", we = "inverted", P = "vertical", Te = "@layer ui.components.toast.types{:host{display:block}.toast-box{--_ui-toast-width:var(--ui-toast-width,350px);--_ui-toast-mobile-width:var(--ui-toast-mobile-width,280px);--_ui-toast-radius:var(--ui-toast-radius,var(--ui-radius));--_ui-toast-padding:var(--ui-toast-padding,.785714em 1em);--_ui-toast-font-size:var(--ui-toast-font-size,var(--ui-font-size));--_ui-toast-box-margin:var(--ui-toast-box-margin,.5em);--_ui-toast-background:var(--ui-toast-background,var(--ui-surface));--_ui-toast-color:var(--ui-toast-color,var(--ui-text-color));--_ui-toast-inverted-background:var(--ui-toast-inverted-background,var(--ui-surface));--_ui-toast-border:var(--ui-toast-border,1px solid var(--ui-border-color));--_ui-toast-inverted-border:var(--ui-toast-inverted-border,1px solid oklch(from var(--ui-ink-on-dark) l c h / .5));--_ui-toast-shadow:var(--ui-toast-shadow,var(--ui-shadow-floating));--_ui-toast-duration:var(--ui-toast-duration,var(--ui-duration-slower));--_ui-toast-icon-size:var(--ui-toast-icon-size,1.5em);--_ui-toast-icon-padding:var(--ui-toast-icon-padding,3em);--_ui-toast-close-distance:var(--ui-toast-close-distance,.3em);--_ui-toast-close-opacity:var(--ui-toast-close-opacity,.7);--_ui-toast-action-background:var(--ui-toast-action-background,light-dark(oklch(100% 0 0/.25),oklch(0% 0 0/.2)));--_ui-toast-action-border:var(--ui-toast-action-border,1px solid oklch(0% 0 0/.2));--_ui-toast-action-margin:var(--ui-toast-action-margin,-1em);--_ui-toast-action-margin-top:var(--ui-toast-action-margin-top,.5em);--_ui-toast-action-margin-left:var(--ui-toast-action-margin-left,1em);--_ui-toast-action-gap:var(--ui-toast-action-gap,.3em);--_ui-toast-action-padding:var(--ui-toast-action-padding,.5em);--_ui-toast-action-padding-bottom:var(--ui-toast-action-padding-bottom,.75em);--_ui-toast-progress-height:var(--ui-toast-progress-height,.2em);--ui-animation-duration:var(--_ui-toast-duration);box-sizing:border-box;width:fit-content;max-width:100%;margin:0 0 var(--_ui-toast-box-margin);border-radius:var(--_ui-toast-radius);font-size:var(--_ui-toast-font-size);line-height:var(--ui-line-height);cursor:default;will-change:transform, opacity;display:block;position:relative}.toast-box:not(.unclickable):hover{cursor:var(--ui-control-cursor)}:host(:last-child)>.toast-box{margin-bottom:0}.ui.toast{box-sizing:border-box;padding:var(--_ui-toast-padding);border-radius:var(--_ui-toast-radius);background:var(--ui-color,var(--_ui-toast-background));color:var(--ui-color-on,var(--_ui-toast-color));margin:0;display:block;position:relative}.ui.toast>.content>.header{color:inherit;font-weight:var(--ui-font-weight-bold);margin:0}.ui.toast>.content>.message{color:inherit}}@layer ui.components.toast.content{.ui.toast>.icon:not(.close){width:1em;height:1em;font-size:var(--_ui-toast-icon-size);justify-content:center;align-items:center;display:inline-flex;position:absolute;top:50%;transform:translateY(-50%)}.ui.toast>.icon:not(.close)>svg{width:1em;height:1em}.ui.toast>.icon:not(.close)+.content{min-height:1.5em;padding-inline-start:var(--_ui-toast-icon-padding)}.ui.vertical.toast>.icon:not(.close){flex-shrink:0;align-self:center;position:static;transform:none}.ui.vertical.toast>.icon:not(.close)+.content{padding-inline-start:1em}.ui.actions.toast:not(.vertical)>.centered.icon{top:calc(50% - 1.2em)}.ui.toast>.close.icon{top:var(--_ui-toast-close-distance);right:var(--_ui-toast-close-distance);border-radius:var(--ui-radius-s);width:1.5em;height:1.5em;color:inherit;font:inherit;opacity:var(--_ui-toast-close-opacity);cursor:var(--ui-control-cursor);transition:opacity var(--ui-duration-normal) var(--ui-ease);background:0 0;border:0;justify-content:center;align-items:center;margin:0;padding:.25em;display:inline-flex;position:absolute}.ui.toast>.close.icon:hover,.ui.toast>.close.icon:focus-visible{opacity:1}.ui.toast>.close.icon>svg{width:1em;height:1em}.ui.toast:has(>.close.icon)>.content{padding-inline-end:1.5em}.ui.vertical.toast>.close.icon{margin:calc(var(--_ui-toast-close-distance) * -1) calc(var(--_ui-toast-close-distance) * -1) 0 0;order:1;align-self:flex-start;position:static}.ui.toast .actions{margin:var(--_ui-toast-action-margin-top) var(--_ui-toast-action-margin) var(--_ui-toast-action-margin);padding:var(--_ui-toast-action-padding) var(--_ui-toast-action-padding) var(--_ui-toast-action-padding-bottom);text-align:right}.ui.toast .actions:not(.basic,.attached){border-top:var(--_ui-toast-action-border);background:var(--_ui-toast-action-background);border-end-end-radius:var(--_ui-toast-radius);border-end-start-radius:var(--_ui-toast-radius)}.ui.toast:has(>.actions:not(.basic,.attached,.vertical):last-child){padding-bottom:0}.ui.toast>.actions:not(.basic,.attached,.vertical):last-child{margin-bottom:0}.ui.toast .left.actions{text-align:left}.actions>::slotted(*){margin-inline-start:var(--_ui-toast-action-gap)}}@layer ui.components.toast.variations{.toast-box.compact,.toast-box>.compact{width:var(--_ui-toast-width)}.toast-box.floating{border:var(--_ui-toast-border);box-shadow:var(--_ui-toast-shadow)}.toast-box.floating:has(>.inverted.toast){border:var(--_ui-toast-inverted-border)}.ui.neutral.toast{--ui-color:initial;--ui-color-on:initial}.ui.inverted.toast{--ui-scheme:dark;color-scheme:dark;background:var(--ui-color-inverted,var(--_ui-toast-inverted-background));color:var(--ui-color-inverted-on,var(--_ui-toast-color))}.ui.vertical.toast{display:flex}.ui.vertical.toast>.content{flex-grow:1}.ui.toast .vertical.actions{margin:calc(var(--_ui-toast-action-padding-bottom) * -1) -1em calc(var(--_ui-toast-action-padding-bottom) * -1) var(--_ui-toast-action-margin-left);padding:var(--_ui-toast-action-padding);border-radius:0 var(--_ui-toast-radius) var(--_ui-toast-radius) 0;border-top:0;flex-direction:column;justify-content:space-around;display:flex}.ui.toast .vertical.actions:not(.basic){border-inline-start:var(--_ui-toast-action-border)}.ui.toast .vertical.top.actions{justify-content:flex-start}.ui.toast .vertical.bottom.actions{justify-content:flex-end}.vertical.actions>::slotted(*){margin-inline-start:0}.vertical.actions>::slotted(:not(:last-child)){margin-block-end:var(--_ui-toast-action-gap)}.toast-box>.attached.actions,.vertical.attached>.attached.actions{margin:0;display:flex}.toast-box>.attached.actions>::slotted(*),.vertical.attached>.attached.actions>::slotted(*){flex:auto}.ui.attached.toast.top,.ui.attached.toast:not(.top,.bottom,.left){border-end-end-radius:0;border-end-start-radius:0}.ui.attached.toast.bottom{border-start-start-radius:0;border-start-end-radius:0}.vertical.attached{display:flex}.vertical.attached>.ui.toast{border-radius:var(--_ui-toast-radius) 0 0 var(--_ui-toast-radius);flex:1}.vertical.attached>.ui.left.toast{border-radius:0 var(--_ui-toast-radius) var(--_ui-toast-radius) 0}.vertical.attached>.attached.actions{flex-direction:column}.toast-box>.ui.attached.progress{z-index:1;height:var(--_ui-toast-progress-height);background:0 0;position:relative;overflow:hidden}.toast-box>.ui.attached.progress.top{margin-bottom:calc(var(--_ui-toast-progress-height) * -1);border-start-start-radius:var(--_ui-toast-radius);border-start-end-radius:var(--_ui-toast-radius)}.toast-box>.ui.attached.progress.bottom{margin-top:calc(var(--_ui-toast-progress-height) * -1);border-end-end-radius:var(--_ui-toast-radius);border-end-start-radius:var(--_ui-toast-radius)}.toast-box>.ui.progress>.bar{background:oklch(from var(--ui-color,var(--ui-text-muted)) calc(l - .15) c h);width:100%;min-width:0;height:100%}.toast-box>.ui.inverted.progress>.bar{background:oklch(from var(--ui-color-inverted,var(--ui-text-inverted-muted)) calc(l + .1) c h)}.toast-box>.ui.progress>.up.bar{width:0}.toast-box>.ui.progress>.progressing{animation-timing-function:linear;animation-iteration-count:1;animation-fill-mode:forwards}.toast-box>.ui.progress>.up.progressing{animation-name:ui-toast-progress-up}.toast-box>.ui.progress>.down.progressing{animation-name:ui-toast-progress-down}@media only screen and (width<=420px){.toast-box,.toast-box.compact,.toast-box>.compact{width:fit-content;min-width:var(--_ui-toast-mobile-width);max-width:100%}}}@layer ui.components.toast.states{:host(:state(paused)) .progressing{animation-play-state:paused}:host(:state(closing)) .toast-box{pointer-events:none}}@keyframes ui-toast-progress-down{0%{width:100%}to{width:0}}@keyframes ui-toast-progress-up{0%{width:0}to{width:100%}}", Ee = /* @__PURE__ */ A("<div><!><!><!>"), De = /* @__PURE__ */ A("<div><!><!><!><!><!>"), Oe = /* @__PURE__ */ A("<span>"), F = /* @__PURE__ */ A("<div>"), ke = /* @__PURE__ */ A("<div><div><!><slot></slot></div><!><!>"), Ae = /* @__PURE__ */ A("<div><slot>"), je = /* @__PURE__ */ A("<div><div>"), I, L, R, z, B, V, H, U, W, Me, Ne, Pe, Fe, Ie, Le, Re, ze, Be, Ve, G, K, q, J, Y, DOMToastElement = class extends a {
|
|
227
228
|
static {
|
|
228
|
-
|
|
229
|
+
n(this, "DOMToastElement");
|
|
229
230
|
}
|
|
230
231
|
close() {
|
|
231
232
|
return this.component?.close() ?? !1;
|
|
232
233
|
}
|
|
233
|
-
}, X = class _UIToast extends (G = p, Ve = [
|
|
234
|
+
}, X = class _UIToast extends (G = p, Ve = [he], Be = [ge], ze = [v], Re = [v], Le = [v], Ie = [v], Fe = [v], Pe = [v], Ne = [me("isConnected", "isReady")], Me = [_("closing"), b], W = [v], U = [b], H = [_("paused"), b], V = [y("pointerenter")], B = [y("pointermove")], z = [y("pointerleave")], R = [y("focusin")], L = [y("focusout")], I = [y("command")], G) {
|
|
234
235
|
constructor(...e) {
|
|
235
|
-
super(...e),
|
|
236
|
+
super(...e), m(K, 5, this), l(this, "slots", new ae(this.domElement)), l(this, "iconGlyph", new ee({
|
|
236
237
|
owner: this,
|
|
237
|
-
name: /* @__PURE__ */
|
|
238
|
-
})),
|
|
238
|
+
name: /* @__PURE__ */ n(() => this.iconName, "name")
|
|
239
|
+
})), l(this, "closeButton", new r({
|
|
239
240
|
owner: this,
|
|
240
|
-
shows: /* @__PURE__ */
|
|
241
|
-
label: /* @__PURE__ */
|
|
241
|
+
shows: /* @__PURE__ */ n(() => !!this.closable, "shows"),
|
|
242
|
+
label: /* @__PURE__ */ n(() => this.translationForKey("close"), "label"),
|
|
242
243
|
part: this.partForName("close"),
|
|
243
|
-
onClick: /* @__PURE__ */
|
|
244
|
-
})),
|
|
244
|
+
onClick: /* @__PURE__ */ n((e) => this.onCloseIcon(e), "onClick")
|
|
245
|
+
})), l(this, "box"), l(this, "hasShown", !1), l(this, "overlay", {
|
|
245
246
|
element: this.domElement,
|
|
246
247
|
kind: "toast",
|
|
247
248
|
restoreFocus: !1,
|
|
248
|
-
onDismiss: /* @__PURE__ */
|
|
249
|
-
}),
|
|
249
|
+
onDismiss: /* @__PURE__ */ n((e) => void this.close(e === "close-all" ? "close-all" : "dismiss"), "onDismiss")
|
|
250
|
+
}), g(this, q, m(K, 8, this, !1)), m(K, 11, this), l(this, "disclosure", new o({
|
|
250
251
|
component: this,
|
|
251
252
|
kept: {
|
|
252
|
-
isOpen: /* @__PURE__ */
|
|
253
|
-
setOpen: /* @__PURE__ */
|
|
253
|
+
isOpen: /* @__PURE__ */ n(() => !this.isClosing, "isOpen"),
|
|
254
|
+
setOpen: /* @__PURE__ */ n((e) => {
|
|
254
255
|
e || this.startClosing();
|
|
255
256
|
}, "setOpen")
|
|
256
257
|
},
|
|
257
|
-
detail: /* @__PURE__ */
|
|
258
|
+
detail: /* @__PURE__ */ n((e, t) => ({
|
|
258
259
|
reason: this.closeReason,
|
|
259
260
|
originalEvent: t
|
|
260
261
|
}), "detail"),
|
|
261
|
-
afterDetail: /* @__PURE__ */
|
|
262
|
-
})),
|
|
262
|
+
afterDetail: /* @__PURE__ */ n((e) => e ? { displayTime: this.displayDuration } : { reason: this.closeReason }, "afterDetail")
|
|
263
|
+
})), l(this, "closeReason", "dismiss"), g(this, J, m(K, 12, this, !1)), m(K, 15, this), g(this, Y, m(K, 16, this, !1)), m(K, 19, this), l(this, "countdownTimer"), l(this, "timeLeft", 0), l(this, "startedAt", 0), l(this, "hasPointerEntered", !1), l(this, "isHovered", !1), l(this, "focusIsInside", !1), l(this, "onCloseIcon", /* @__PURE__ */ n((e) => {
|
|
263
264
|
e.stopPropagation(), this.close("close", e);
|
|
264
|
-
}, "onCloseIcon")),
|
|
265
|
+
}, "onCloseIcon")), l(this, "onKeyDown", /* @__PURE__ */ n((e) => {
|
|
265
266
|
e.key !== s.escape || e.defaultPrevented || this.close("escape", e) && e.preventDefault();
|
|
266
|
-
}, "onKeyDown")),
|
|
267
|
+
}, "onKeyDown")), l(this, "onClick", /* @__PURE__ */ n((e) => {
|
|
267
268
|
if (this.isClosing) return;
|
|
268
269
|
let t = this.actionFor(e);
|
|
269
270
|
if (t) {
|
|
@@ -279,14 +280,14 @@ var j = {
|
|
|
279
280
|
this.close(n, e);
|
|
280
281
|
return;
|
|
281
282
|
}
|
|
282
|
-
this.anyClickCloses && !this.domElement.querySelector(ot) && (
|
|
283
|
+
this.anyClickCloses && !this.domElement.querySelector(ot) && (ne.isClicked(e, { upTo: this.domElement }) || this.close("click", e));
|
|
283
284
|
}, "onClick")), this.domElement.addReleaseCallback(() => this.countdownTimer?.cancel());
|
|
284
285
|
}
|
|
285
286
|
get hasActions() {
|
|
286
287
|
return this.slots.hasContent(this.slotForName(M));
|
|
287
288
|
}
|
|
288
289
|
get actionWords() {
|
|
289
|
-
let e =
|
|
290
|
+
let e = h.get(this.elementDefinition.attribute("actions").spec.values ?? []), t = (this.actions ?? "").split(c).filter((t) => e.includes(t));
|
|
290
291
|
return new Set(t);
|
|
291
292
|
}
|
|
292
293
|
get actionsAreAttached() {
|
|
@@ -297,7 +298,7 @@ var j = {
|
|
|
297
298
|
}
|
|
298
299
|
get extraClass() {
|
|
299
300
|
let e = [], t = this.actionWords;
|
|
300
|
-
return this.actionsAreVertical && e.push(P), this.hasActions && !this.actionsAreAttached && (!t.has("basic") || t.has("left")) && e.push(M), this.actionsAreAttached && (e.push(N), this.actionsAreVertical ? t.has("left") && e.push(
|
|
301
|
+
return this.actionsAreVertical && e.push(P), this.hasActions && !this.actionsAreAttached && (!t.has("basic") || t.has("left")) && e.push(M), this.actionsAreAttached && (e.push(N), this.actionsAreVertical ? t.has("left") && e.push(u) : e.push(t.has("top") ? _e : "top")), this.compact && e.push(Z), e.join(" ") || void 0;
|
|
301
302
|
}
|
|
302
303
|
get boxClasses() {
|
|
303
304
|
let e = [We, Ge];
|
|
@@ -322,7 +323,7 @@ var j = {
|
|
|
322
323
|
let e = [
|
|
323
324
|
"ui",
|
|
324
325
|
N,
|
|
325
|
-
|
|
326
|
+
pe,
|
|
326
327
|
et,
|
|
327
328
|
this.progress ?? "bottom"
|
|
328
329
|
];
|
|
@@ -364,14 +365,14 @@ var j = {
|
|
|
364
365
|
var t = Ee(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling;
|
|
365
366
|
return E(t, C(x, {
|
|
366
367
|
get when() {
|
|
367
|
-
return e.actionWords.has(
|
|
368
|
+
return e.actionWords.has(u);
|
|
368
369
|
},
|
|
369
370
|
get children() {
|
|
370
371
|
return e.actionsBox();
|
|
371
372
|
}
|
|
372
373
|
}), n), E(t, () => e.toast(), r), E(t, C(x, {
|
|
373
374
|
get when() {
|
|
374
|
-
return !e.actionWords.has(
|
|
375
|
+
return !e.actionWords.has(u);
|
|
375
376
|
},
|
|
376
377
|
get children() {
|
|
377
378
|
return e.actionsBox();
|
|
@@ -389,7 +390,7 @@ var j = {
|
|
|
389
390
|
}
|
|
390
391
|
}), a), E(t, C(x, {
|
|
391
392
|
get when() {
|
|
392
|
-
return e.progress ===
|
|
393
|
+
return e.progress === _e;
|
|
393
394
|
},
|
|
394
395
|
get children() {
|
|
395
396
|
return e.progressBar();
|
|
@@ -437,7 +438,7 @@ var j = {
|
|
|
437
438
|
get children() {
|
|
438
439
|
var t = F();
|
|
439
440
|
return E(t, () => e.message), w(() => ({
|
|
440
|
-
e: O(
|
|
441
|
+
e: O(re),
|
|
441
442
|
t: e.partForName("message")
|
|
442
443
|
}), ({ e, t: n }, r) => {
|
|
443
444
|
S(t, e, r?.e), n !== r?.t && k(t, "part", n);
|
|
@@ -454,7 +455,7 @@ var j = {
|
|
|
454
455
|
e: O(e.rootClass),
|
|
455
456
|
t: e.partForName("toast"),
|
|
456
457
|
a: e.type === Ue ? "alert" : "status",
|
|
457
|
-
o: O(
|
|
458
|
+
o: O(ue),
|
|
458
459
|
i: e.partForName("content")
|
|
459
460
|
}), ({ e, t: r, a: i, o: a, i: o }, s) => {
|
|
460
461
|
S(t, e, s?.e), r !== s?.t && k(t, "part", r), i !== s?.a && k(t, "role", i), S(n, a, s?.o), o !== s?.i && k(n, "part", o);
|
|
@@ -534,11 +535,11 @@ var j = {
|
|
|
534
535
|
return Number.isFinite(t) && t > 0 ? t : 0;
|
|
535
536
|
}
|
|
536
537
|
get readingTime() {
|
|
537
|
-
let e = this.slotForName(M), t = [...this.domElement.childNodes].filter((t) => t.nodeType ===
|
|
538
|
+
let e = this.slotForName(M), t = [...this.domElement.childNodes].filter((t) => t.nodeType === te.element ? t.slot !== e : t.nodeType === te.text), n = [
|
|
538
539
|
this.heading,
|
|
539
540
|
this.message,
|
|
540
541
|
...t.map((e) => e.textContent)
|
|
541
|
-
].join(" ").split(
|
|
542
|
+
].join(" ").split(c).filter(Boolean).length;
|
|
542
543
|
return Math.max(Xe, n / Ye * 6e4);
|
|
543
544
|
}
|
|
544
545
|
startTimer() {
|
|
@@ -546,7 +547,7 @@ var j = {
|
|
|
546
547
|
e <= 0 || (this.timeLeft = e, this.countdownHasStarted = !0, !this.isHovered && !this.focusIsInside && this.resumeTimer());
|
|
547
548
|
}
|
|
548
549
|
resumeTimer() {
|
|
549
|
-
this.countdownTimer || this.isClosing || this.timeLeft <= 0 || !this.domElement.isConnected || (this.startedAt = performance.now(), this.countdownTimer =
|
|
550
|
+
this.countdownTimer || this.isClosing || this.timeLeft <= 0 || !this.domElement.isConnected || (this.startedAt = performance.now(), this.countdownTimer = se(this.timeLeft / 1e3, () => {
|
|
550
551
|
this.countdownTimer = void 0, this.timeLeft = 0, this.close("timeout");
|
|
551
552
|
}));
|
|
552
553
|
}
|
|
@@ -572,12 +573,12 @@ var j = {
|
|
|
572
573
|
this.focusIsInside = !0, this.updatePause();
|
|
573
574
|
}
|
|
574
575
|
onFocusOut() {
|
|
575
|
-
|
|
576
|
+
ce(() => {
|
|
576
577
|
this.focusIsInside = this.domElement.matches(":focus-within"), this.updatePause();
|
|
577
578
|
});
|
|
578
579
|
}
|
|
579
580
|
onCommand(e) {
|
|
580
|
-
e.command ===
|
|
581
|
+
e.command === fe.close && this.close("close", e);
|
|
581
582
|
}
|
|
582
583
|
actionFor(e) {
|
|
583
584
|
let n = this.slotForName(M), r;
|
|
@@ -593,11 +594,11 @@ var j = {
|
|
|
593
594
|
return e.matches(at) || p.registry.definitions.get(e.localName)?.vocabulary.noun === "button";
|
|
594
595
|
}
|
|
595
596
|
};
|
|
596
|
-
K =
|
|
597
|
+
K = ye(G), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), d(K, 2, "actionWords", ze, X), d(K, 2, "boxClasses", Re, X), d(K, 2, "verticalClasses", Le, X), d(K, 2, "actionsClasses", Ie, X), d(K, 2, "progressClasses", Fe, X), d(K, 2, "barClasses", Pe, X), d(K, 1, "onConnectedChanged", Ne, X), d(K, 4, "isClosing", Me, X, q), d(K, 2, "displayDuration", W, X), d(K, 4, "countdownHasStarted", U, X, J), d(K, 4, "isPaused", H, X, Y), d(K, 1, "onPointerEnter", V, X), d(K, 1, "onPointerMove", B, X), d(K, 1, "onPointerLeave", z, X), d(K, 1, "onFocusIn", R, X), d(K, 1, "onFocusOut", L, X), d(K, 1, "onCommand", I, X), d(K, 13, "vocabulary", Ve, X), d(K, 13, "elementSetup", Be, X), ie(K, X), n(X, "UIToast"), l(X, "vocabulary", m(K, 20, X, j)), m(K, 23, X), l(X, "elementSetup", m(K, 24, X, {
|
|
597
598
|
styleSheets: { toast: Te },
|
|
598
599
|
DOMElement: DOMToastElement,
|
|
599
600
|
delegatesFocus: !1
|
|
600
|
-
})),
|
|
601
|
+
})), m(K, 27, X);
|
|
601
602
|
var He = X, Ue = "error", We = "floating", Ge = "toast-box", Z = "compact", Ke = "unclickable", qe = {
|
|
602
603
|
info: "circle-info",
|
|
603
604
|
success: "circle-check",
|
|
@@ -648,23 +649,23 @@ var st = "@layer ui.components{.ui.toast-container{--_ui-toast-container-distanc
|
|
|
648
649
|
compact: e.compact === !1 ? "false" : void 0,
|
|
649
650
|
actions: e.actions?.length ? e.classActions : void 0,
|
|
650
651
|
type: e.type
|
|
651
|
-
}, a = (e.class ?? "").split(
|
|
652
|
-
for (let e of a) pt.includes(e) ? i.type = e :
|
|
652
|
+
}, a = (e.class ?? "").split(c).filter(Boolean);
|
|
653
|
+
for (let e of a) pt.includes(e) ? i.type = e : h.has(mt, e) ? i.color = e : e === "inverted" && (i.inverted = "");
|
|
653
654
|
for (let [e, t] of Object.entries(i)) t !== void 0 && n.setAttribute(e, t);
|
|
654
655
|
return a.length && (n.className = a.join(" ")), e.actions?.length && n.append(this.actionsFor(e.actions, e.classActions ?? "")), n;
|
|
655
656
|
}
|
|
656
657
|
actionsFor(e, t) {
|
|
657
|
-
let n = t.split(
|
|
658
|
+
let n = t.split(c), r = e.map((e) => this.buttonFor(e)), i = ToastStack.definitionFor(vt);
|
|
658
659
|
if (!n.includes("attached") || !i) {
|
|
659
660
|
let e = this.document.createDocumentFragment();
|
|
660
661
|
for (let t of r) t.slot = M, e.append(t);
|
|
661
662
|
return e;
|
|
662
663
|
}
|
|
663
664
|
let a = this.document.createElement(i.tag);
|
|
664
|
-
return a.slot = M, a.setAttribute(n.includes("vertical") ? P :
|
|
665
|
+
return a.slot = M, a.setAttribute(n.includes("vertical") ? P : ve, ""), a.append(...r), a;
|
|
665
666
|
}
|
|
666
667
|
buttonFor(t) {
|
|
667
|
-
let n = ToastStack.definitionFor(
|
|
668
|
+
let n = ToastStack.definitionFor(le), r = this.document.createElement(n?.tag ?? "button"), i = (t.class ?? "").split(c).filter(Boolean);
|
|
668
669
|
i.length && (r.className = i.join(" "));
|
|
669
670
|
let a = new Set(n?.vocabulary.attributes.filter(({ kind: e }) => e === ht).map(({ name: e }) => e)), o = ToastStack.oldSwitchesOf(n?.vocabulary);
|
|
670
671
|
for (let e of i) {
|
|
@@ -673,7 +674,7 @@ var st = "@layer ui.components{.ui.toast-container{--_ui-toast-container-distanc
|
|
|
673
674
|
else if (t) {
|
|
674
675
|
let e = t.isMultiple ? r.getAttribute(t.name) : null;
|
|
675
676
|
r.setAttribute(t.name, e ? `${e} ${t.value}` : t.value);
|
|
676
|
-
} else
|
|
677
|
+
} else h.has(mt, e) && r.setAttribute(_t, e);
|
|
677
678
|
}
|
|
678
679
|
t.icon && n && r.setAttribute(e, t.icon), t.text ? r.textContent = t.text : t.icon && r.setAttribute("aria-label", t.icon);
|
|
679
680
|
let s = t.click;
|
|
@@ -695,7 +696,7 @@ var st = "@layer ui.components{.ui.toast-container{--_ui-toast-container-distanc
|
|
|
695
696
|
}
|
|
696
697
|
containerFor(e) {
|
|
697
698
|
let t = e.position ?? Q;
|
|
698
|
-
ut.includes(t) || (
|
|
699
|
+
ut.includes(t) || (oe.devWarn("UI.toast()", `unknown position "${t}"; using "${Q}"`), t = Q);
|
|
699
700
|
let n = e.horizontal ? `${t} horizontal` : t, r = this.containers.get(n);
|
|
700
701
|
if (r?.isConnected) return r;
|
|
701
702
|
f.styles.has($) || f.styles.register($, st, { page: !0 });
|
|
@@ -730,7 +731,7 @@ var st = "@layer ui.components{.ui.toast-container{--_ui-toast-container-distanc
|
|
|
730
731
|
"bottom center",
|
|
731
732
|
"centered"
|
|
732
733
|
], Q = "bottom right", dt = j.tag, ft = 3e3, pt = j.attributes.find(({ name: e }) => e === "type").values, mt = "hues", ht = "keyOnly", gt = "multiple", _t = "color", vt = "buttons", $ = "toast-container", yt = "toast-container", bt = "notifications";
|
|
733
|
-
He.define(),
|
|
734
|
+
He.define(), de() && f.load().then(() => f.toasts.register(new ct()));
|
|
734
735
|
//#endregion
|
|
735
736
|
export { DOMToastElement, ct as ToastStack, He as UIToast };
|
|
736
737
|
|