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-search.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { FormComponent as
|
|
4
|
-
import { t as
|
|
2
|
+
import { $ as e, Bt as t, C as n, Converters as r, Ct as i, D as a, F as o, Ft as s, Ht as c, IconGlyph as l, Lt as u, M as d, NativeFallback as f, PopoverPanel as ee, R as te, Rt as p, UI as m, Ut as h, Vt as g, after as ne, controlled as _, cssState as re, derived as v, escapeRegExp as ie, f as ae, h as oe, markedPieces as se, n as ce, nt as le, onChange as y, p as b, proto as x, protoMerged as ue, state as S, tt as C, untracked as w, v as de, w as fe, whileConnected as pe, withoutAccents as me, zt as he } from "./core.js";
|
|
3
|
+
import { FormComponent as ge, HighlightedOption as _e, MenuOptions as ve } from "./forms.js";
|
|
4
|
+
import { t as ye } from "./UIInput-BodVbUoQ.js";
|
|
5
5
|
import { For as T, Show as E } from "solid-js";
|
|
6
|
-
import { addEvent as D, claimElement as
|
|
6
|
+
import { addEvent as D, claimElement as be, className as O, createComponent as k, delegateEvents as xe, effect as A, getOwner as j, insert as M, isServer as Se, memo as Ce, readShallow as N, ref as P, setAttribute as F, spread as we, style as I, template as L } from "@solidjs/web";
|
|
7
7
|
//#region src/components/ui-search/UISearch.en.ts
|
|
8
|
-
var
|
|
8
|
+
var R = {
|
|
9
9
|
tag: "ui-search",
|
|
10
|
+
icon: "search",
|
|
10
11
|
formControl: !0,
|
|
11
12
|
topics: [
|
|
12
13
|
"inputs",
|
|
@@ -123,7 +124,7 @@ var Te = {
|
|
|
123
124
|
description: "Can't be used; dimmed, and left out of the form."
|
|
124
125
|
},
|
|
125
126
|
{
|
|
126
|
-
...
|
|
127
|
+
...n.readonly,
|
|
127
128
|
description: "Shows its value but can't be typed in, and the results never open; still focusable and submitted."
|
|
128
129
|
},
|
|
129
130
|
{
|
|
@@ -133,7 +134,7 @@ var Te = {
|
|
|
133
134
|
description: "The results are showing. Controlled: `ui-opening` / `ui-closing` can veto; shown only with something to show."
|
|
134
135
|
},
|
|
135
136
|
{
|
|
136
|
-
...
|
|
137
|
+
...n.placeholder,
|
|
137
138
|
description: "Placeholder text of the input."
|
|
138
139
|
},
|
|
139
140
|
{
|
|
@@ -143,11 +144,12 @@ var Te = {
|
|
|
143
144
|
description: "The input's text: the query, or a chosen result's title."
|
|
144
145
|
},
|
|
145
146
|
{
|
|
146
|
-
...
|
|
147
|
+
...n.name,
|
|
147
148
|
description: "Form field name: submits the input's text."
|
|
148
149
|
},
|
|
150
|
+
n.parameter,
|
|
149
151
|
{
|
|
150
|
-
...
|
|
152
|
+
...n.required,
|
|
151
153
|
description: "Form validation: the input can't be empty."
|
|
152
154
|
},
|
|
153
155
|
{
|
|
@@ -177,12 +179,19 @@ var Te = {
|
|
|
177
179
|
default: 200,
|
|
178
180
|
description: "Remote: ms to wait after typing stops before querying (a newer query aborts an older one)."
|
|
179
181
|
},
|
|
182
|
+
{
|
|
183
|
+
name: "delay",
|
|
184
|
+
group: "behaviour",
|
|
185
|
+
kind: "string",
|
|
186
|
+
default: "2s",
|
|
187
|
+
description: "How long typing must pause before the text SETTLES: a CSS time (`0.5s`, `500ms`) or bare ms; `0` settles every keystroke. Settling sends `ui-changed`, writes a bound form's field, and records `parameter`; Enter, leaving the field, choosing a result and clearing it settle at once."
|
|
188
|
+
},
|
|
180
189
|
{
|
|
181
190
|
name: "full-text-search",
|
|
182
191
|
group: "appearance",
|
|
183
192
|
kind: "enum",
|
|
184
|
-
values:
|
|
185
|
-
default:
|
|
193
|
+
values: le,
|
|
194
|
+
default: C.exact,
|
|
186
195
|
description: "Local matching (`SearchMatch`): a word START always matches; then `exact` anywhere, `fuzzy` in order, `prefix` nothing more, `some` any word, `all` every word."
|
|
187
196
|
},
|
|
188
197
|
{
|
|
@@ -240,7 +249,7 @@ var Te = {
|
|
|
240
249
|
{
|
|
241
250
|
name: "ui-changed",
|
|
242
251
|
detail: "{ value: string, originalEvent?: Event }",
|
|
243
|
-
description: "The text
|
|
252
|
+
description: "The text settled: typing paused for `delay`, Enter pressed, a result chosen, the input cleared, or left after an edit. Once per new text."
|
|
244
253
|
},
|
|
245
254
|
{
|
|
246
255
|
name: "ui-replied",
|
|
@@ -311,13 +320,13 @@ var Te = {
|
|
|
311
320
|
name: "disabled",
|
|
312
321
|
description: "Can't be used."
|
|
313
322
|
},
|
|
314
|
-
|
|
323
|
+
fe.readonly,
|
|
315
324
|
{
|
|
316
325
|
name: "loading",
|
|
317
326
|
description: "Busy (`loading`, or a remote query running)."
|
|
318
327
|
},
|
|
319
328
|
{
|
|
320
|
-
...
|
|
329
|
+
...fe.invalid,
|
|
321
330
|
description: "Fails validation (`required`)."
|
|
322
331
|
},
|
|
323
332
|
{
|
|
@@ -357,20 +366,20 @@ var Te = {
|
|
|
357
366
|
description: "Announced when results show."
|
|
358
367
|
}
|
|
359
368
|
]
|
|
360
|
-
},
|
|
369
|
+
}, z = {
|
|
361
370
|
idle: "idle",
|
|
362
371
|
done: "done",
|
|
363
372
|
error: "error"
|
|
364
|
-
},
|
|
373
|
+
}, Te = {
|
|
365
374
|
empty: "empty",
|
|
366
375
|
error: "error"
|
|
367
|
-
},
|
|
376
|
+
}, Ee = "ui icon input", De = "prompt", Oe, ke, B, V, H = class _SearchFallback extends (B = f, ke = [x], Oe = [x], B) {
|
|
368
377
|
constructor() {
|
|
369
|
-
super(...arguments),
|
|
378
|
+
super(...arguments), c(this, "input");
|
|
370
379
|
}
|
|
371
380
|
build() {
|
|
372
|
-
let e = this.domElement, t = `${this.vocabulary.tag}${
|
|
373
|
-
class:
|
|
381
|
+
let e = this.domElement, t = `${this.vocabulary.tag}${Ne}`, n = this.attr("placeholder"), r = this.create("input", {
|
|
382
|
+
class: De,
|
|
374
383
|
type: "search",
|
|
375
384
|
placeholder: n,
|
|
376
385
|
required: this.flag("required"),
|
|
@@ -384,13 +393,13 @@ var Te = {
|
|
|
384
393
|
for (let t of Array.isArray(e.source) ? e.source : []) typeof t?.title == "string" && a.add(t.title);
|
|
385
394
|
for (let e of a) i.append(this.create("option", { value: e }));
|
|
386
395
|
let o = this.create("div", {
|
|
387
|
-
class:
|
|
388
|
-
part:
|
|
396
|
+
class: Ee,
|
|
397
|
+
part: Me
|
|
389
398
|
}, r, i), s = this.create("div", { class: this.classes() }, o);
|
|
390
399
|
return this.listen(r, "input", () => {
|
|
391
400
|
e.value = r.value, this.sync();
|
|
392
401
|
}), this.listen(r, "change", (e) => {
|
|
393
|
-
this.send(
|
|
402
|
+
this.send(je, {
|
|
394
403
|
value: r.value,
|
|
395
404
|
originalEvent: e
|
|
396
405
|
});
|
|
@@ -404,37 +413,37 @@ var Te = {
|
|
|
404
413
|
});
|
|
405
414
|
}
|
|
406
415
|
};
|
|
407
|
-
|
|
416
|
+
V = he(B), u(V, 13, "vocabulary", ke, H), u(V, 13, "degraded", Oe, H), p(V, H), t(H, "SearchFallback"), c(H, "vocabulary", h(V, 8, H, R)), h(V, 11, H), c(H, "degraded", h(V, 12, H, [
|
|
408
417
|
"remote results (`url`): no suggestions",
|
|
409
418
|
"result descriptions, images, prices and categories (titles only, as the browser's suggestions)",
|
|
410
419
|
"Fomantic's matching (`full-text-search`, `search-fields`, `max-results`): the browser's own",
|
|
411
420
|
"`ui-search`, `ui-select`, `ui-replied`, `ui-opening`, `ui-closing`; following a result's `url`",
|
|
412
421
|
"the magnifying glass and the loading spinner"
|
|
413
|
-
])), h(
|
|
414
|
-
var
|
|
422
|
+
])), h(V, 15, H);
|
|
423
|
+
var Ae = H, je = "ui-changed", Me = "input", Ne = "-suggestions", U = class SearchMatcher {
|
|
415
424
|
fields;
|
|
416
425
|
match;
|
|
417
426
|
ignoreCase;
|
|
418
427
|
ignoreDiacritics;
|
|
419
|
-
constructor({ fields: e =
|
|
428
|
+
constructor({ fields: e = Pe, match: t = C.exact, ignoreCase: n = !0, ignoreDiacritics: r = !1 } = {}) {
|
|
420
429
|
this.fields = e, this.match = t, this.ignoreCase = n, this.ignoreDiacritics = r;
|
|
421
430
|
}
|
|
422
431
|
search(e, t) {
|
|
423
432
|
let n = this.fold(t.trim());
|
|
424
433
|
if (!n) return [];
|
|
425
|
-
let r = RegExp(`(?:\\s|^)${
|
|
434
|
+
let r = RegExp(`(?:\\s|^)${ie(n)}`, "u"), i = n.split(s), a = [], o = [], c = [];
|
|
426
435
|
for (let t of e) {
|
|
427
436
|
let e = this.texts(t);
|
|
428
|
-
if (this.match ===
|
|
437
|
+
if (this.match === C.all) {
|
|
429
438
|
let n = e.join(" ");
|
|
430
439
|
i.every((e) => n.includes(e)) && o.push(t);
|
|
431
440
|
continue;
|
|
432
441
|
}
|
|
433
|
-
for (let
|
|
434
|
-
if (r.test(
|
|
435
|
-
else if (this.match ===
|
|
436
|
-
else if (this.match ===
|
|
437
|
-
else if (this.match ===
|
|
442
|
+
for (let s of e) {
|
|
443
|
+
if (r.test(s)) a.push(t);
|
|
444
|
+
else if (this.match === C.exact && s.includes(n)) o.push(t);
|
|
445
|
+
else if (this.match === C.some && i.some((e) => s.includes(e))) o.push(t);
|
|
446
|
+
else if (this.match === C.fuzzy && SearchMatcher.isFuzzyMatch(n, s)) c.push(t);
|
|
438
447
|
else continue;
|
|
439
448
|
break;
|
|
440
449
|
}
|
|
@@ -442,7 +451,7 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
442
451
|
return [
|
|
443
452
|
...a,
|
|
444
453
|
...o,
|
|
445
|
-
...
|
|
454
|
+
...c
|
|
446
455
|
];
|
|
447
456
|
}
|
|
448
457
|
static categorize(e) {
|
|
@@ -477,7 +486,7 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
477
486
|
return t;
|
|
478
487
|
}
|
|
479
488
|
fold(e) {
|
|
480
|
-
let t = this.ignoreDiacritics ?
|
|
489
|
+
let t = this.ignoreDiacritics ? me(e) : e;
|
|
481
490
|
return this.ignoreCase ? t.toLowerCase() : t;
|
|
482
491
|
}
|
|
483
492
|
static isCategory(e) {
|
|
@@ -490,67 +499,65 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
490
499
|
for (let r of e) if (n = t.indexOf(r, n) + 1, !n) return !1;
|
|
491
500
|
return !0;
|
|
492
501
|
}
|
|
493
|
-
}, Fe = ["title", "description"], Ie = "@layer ui.components.search.types{:host{vertical-align:baseline;display:inline-block}:host(:state(fluid)){display:block}:host(:focus-visible){outline:none}.ui.search,.ui.search>.ui.input,.ui.search>.results{--_ui-search-prompt-radius:var(--ui-search-prompt-radius,var(--ui-radius-pill));--_ui-search-duration:var(--ui-search-duration,var(--ui-duration-fast));--_ui-search-results-width:var(--ui-search-results-width,18em);--_ui-search-results-background:var(--ui-search-results-background,var(--ui-surface));--_ui-search-results-color:var(--ui-search-results-color,var(--ui-text-color));--_ui-search-results-border-color:var(--ui-search-results-border-color,var(--ui-border-color));--_ui-search-results-radius:var(--ui-search-results-radius,var(--ui-radius));--_ui-search-results-shadow:var(--ui-search-results-shadow,var(--ui-shadow-floating));--_ui-search-results-offset:var(--ui-search-results-offset,.5em);--_ui-search-result-padding:var(--ui-search-result-padding,.85714em 1.14285em);--_ui-search-result-line-height:var(--ui-search-result-line-height,1.33);--_ui-search-result-divider-color:var(--ui-search-result-divider-color,var(--ui-border-color-internal));--_ui-search-result-background-hover:var(--ui-search-result-background-hover,var(--ui-surface-muted));--_ui-search-result-background-active:var(--ui-search-result-background-active,oklch(from var(--ui-ink) l c h / .05));--_ui-search-result-image-width:var(--ui-search-result-image-width,5em);--_ui-search-result-image-height:var(--ui-search-result-image-height,3em);--_ui-search-result-image-radius:var(--ui-search-result-image-radius,.25em);--_ui-search-result-image-margin:var(--ui-search-result-image-margin,6em);--_ui-search-title-color:var(--ui-search-title-color,var(--ui-text-dark));--_ui-search-description-color:var(--ui-search-description-color,var(--ui-text-light));--_ui-search-description-font-size:var(--ui-search-description-font-size,.92857em);--_ui-search-price-color:var(--ui-search-price-color,var(--ui-green-text,var(--ui-green)));--_ui-search-message-padding:var(--ui-search-message-padding,1em);--_ui-search-category-background:var(--ui-search-category-background,var(--ui-surface-muted));--_ui-search-category-results-width:var(--ui-search-category-results-width,28em);--_ui-search-category-name-width:var(--ui-search-category-name-width,100px);--_ui-search-category-name-color:var(--ui-search-category-name-color,var(--ui-text-light));--_ui-search-category-name-padding:var(--ui-search-category-name-padding,.4em 1em);--_ui-search-category-divider-color:var(--ui-search-category-divider-color,var(--ui-border-color-internal));--_ui-search-category-result-border-color:var(--ui-search-category-result-border-color,var(--ui-border-color));--_ui-search-results-max-height:var(--ui-search-results-max-height,calc(var(--_search-results-rows) * (2 * .85714em + 1.33em)));--_ui-search-disabled-opacity:var(--ui-search-disabled-opacity,var(--ui-disabled-opacity))}.ui.search{--_search-results-rows:4;box-sizing:border-box;anchor-scope:all;max-width:100%;font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));text-align:start;display:inline-block;position:relative}.ui.search>.ui.input{--ui-input-radius:var(--_ui-search-prompt-radius);display:flex}.ui.search>.ui.input>.prompt{text-shadow:none;margin:0;font-style:normal;transition-property:background-color,color,box-shadow,border-color}.ui.search .prompt~.search.icon{cursor:pointer}.ui.search>.results{z-index:var(--ui-z-dropdown);box-sizing:border-box;width:var(--_ui-search-results-width);margin:var(--_ui-search-results-offset) 0 0;border:var(--ui-border-width) solid var(--_ui-search-results-border-color);border-radius:var(--_ui-search-results-radius);background:var(--_ui-search-results-background);box-shadow:var(--_ui-search-results-shadow);color:var(--_ui-search-results-color);text-align:start;text-transform:none;white-space:normal;top:100%;outline:none;padding:0;font-size:1em;line-height:normal;display:none;position:absolute;inset-inline-start:0;overflow:visible}.ui.search>.results[popover]{position-area:block-end span-inline-end;position-try-fallbacks:flip-block, flip-inline;margin:var(--_ui-search-results-offset) 0;opacity:0;transition-property:opacity,display,overlay;transition-duration:var(--_ui-search-duration);transition-timing-function:var(--ui-ease);transition-behavior:allow-discrete;inset:auto}.ui.search>.results>:first-child{border-start-start-radius:var(--_ui-search-results-radius);border-start-end-radius:var(--_ui-search-results-radius)}.ui.search>.results>:last-child{border-end-end-radius:var(--_ui-search-results-radius);border-end-start-radius:var(--_ui-search-results-radius)}.ui.search>.status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}@layer ui.components.search.content{.ui.search>.results .result{box-sizing:border-box;padding:var(--_ui-search-result-padding);border-bottom:var(--ui-border-width) solid var(--_ui-search-result-divider-color);color:var(--_ui-search-results-color);font-size:1em;line-height:var(--_ui-search-result-line-height);cursor:pointer;text-decoration:none;display:block;overflow:hidden}.ui.search>.results .result:last-child{border-bottom:none}.ui.search>.results .result .image{float:inline-end;width:var(--_ui-search-result-image-width);height:var(--_ui-search-result-image-height);border-radius:var(--_ui-search-result-image-radius);background:0 0;overflow:hidden}.ui.search>.results .result .image img{width:auto;height:100%;display:block}.ui.search>.results .result .image+.content{margin-inline-end:var(--_ui-search-result-image-margin)}.ui.search>.results .result .title{color:var(--_ui-search-title-color);font-family:var(--ui-font-family-heading,var(--ui-font-family));font-size:1em;font-weight:var(--ui-font-weight-bold);margin:0}.ui.search>.results .result .description{color:var(--_ui-search-description-color);font-size:var(--_ui-search-description-font-size);margin-top:0}.ui.search>.results .result .price{float:inline-end;color:var(--_ui-search-price-color)}.ui.search>.results mark{background:var(--ui-highlight);color:inherit}.ui.search>.results>.message{padding:var(--_ui-search-message-padding)}.ui.search>.results>.message .header{color:var(--_ui-search-results-color);font-family:var(--ui-font-family-heading,var(--ui-font-family));font-size:1em;font-weight:var(--ui-font-weight-bold)}.ui.search>.results>.message .description{color:var(--_ui-search-results-color);margin-top:.25em;font-size:1em}.ui.search>.results>.error.message .description{color:var(--ui-red-text,var(--ui-red))}}@layer ui.components.search.variations{.ui.category.search>.results{width:var(--_ui-search-category-results-width)}.ui.category.search>.results .category{background:var(--_ui-search-category-background);box-shadow:none;transition:background var(--_ui-search-duration) var(--ui-ease), border-color var(--_ui-search-duration) var(--ui-ease);display:table-row}.ui.category.search>.results .category:last-child{border-bottom:none}.ui.category.search>.results .category>.name{width:var(--_ui-search-category-name-width);padding:var(--_ui-search-category-name-padding);border-bottom:var(--ui-border-width) solid var(--_ui-search-category-divider-color);color:var(--_ui-search-category-name-color);font-family:var(--ui-font-family);font-size:1em;font-weight:var(--ui-font-weight-bold);text-overflow:ellipsis;white-space:nowrap;background:0 0;display:table-cell;overflow:hidden}.ui.category.search>.results .category>.results{border-bottom:var(--ui-border-width) solid var(--_ui-search-category-divider-color);border-inline-start:var(--ui-border-width) solid var(--_ui-search-category-result-border-color);background:var(--_ui-search-results-background);display:table-cell}.ui.category.search>.results .category:last-child>:is(.name,.results){border-bottom:none}.ui.category.search>.results .category .result{padding:var(--_ui-search-result-padding);border-bottom:var(--ui-border-width) solid var(--_ui-search-result-divider-color);transition:background var(--_ui-search-duration) var(--ui-ease), border-color var(--_ui-search-duration) var(--ui-ease)}.ui.category.search>.results .category .result:last-child{border-bottom:none}.ui.category.search>.results .category:first-child .name+.results>.result:first-child{border-start-end-radius:var(--_ui-search-results-radius)}.ui.category.search>.results .category:last-child .result:last-child{border-end-end-radius:var(--_ui-search-results-radius)}.ui.horizontal.category.search>.results .category,.ui.horizontal.category.search>.results .category>.name,.ui.horizontal.category.search>.results .category>.results{display:block}.ui.horizontal.category.search>.results .category>.results{border-inline-start:0;width:100%}.ui:is(.scrolling,.short,.long).search>.results{overscroll-behavior:contain;overflow:hidden auto}.ui.scrolling.search>.results,.ui.short.search>.results{max-height:var(--_ui-search-results-max-height)}.ui[class*=very\\ short].search>.results{max-height:calc(var(--_ui-search-results-max-height) * .75)}.ui.long.search>.results{max-height:calc(var(--_ui-search-results-max-height) * 2)}.ui[class*=very\\ long].search>.results{max-height:calc(var(--_ui-search-results-max-height) * 3)}.ui.scrolling.resizable.search>.results{height:var(--_ui-search-results-max-height);resize:vertical;max-height:none}@media (768px<=width<992px),(width>=992px){.ui.search{--_search-results-rows:6}}@media (width>=992px){.ui.search{--_search-results-rows:8}}@media (width>=1920px){.ui.search{--_search-results-rows:12}}.ui[class*=left\\ aligned].search>.results:not([popover]){inset-inline:0 auto}.ui[class*=right\\ aligned].search>.results:not([popover]){inset-inline:auto 0}.ui[class*=left\\ aligned].search>.results[popover]{position-area:block-end span-inline-end}.ui[class*=right\\ aligned].search>.results[popover]{position-area:block-end span-inline-start}.ui.fluid.search{width:100%;display:block}.ui.fluid.search>.results{width:100%}.ui.fluid.search>.results[popover]{width:anchor-size(width)}@media (width<768px){.ui.search>.results{max-width:calc(100vw - 2em)}}}@layer ui.components.search.states{:is(.ui.search>.results[popover]:popover-open,.ui.search>.visible.results:not([popover])){opacity:1;display:block}:is(.ui.category.search>.results[popover]:popover-open,.ui.category.search>.visible.results:not([popover])){display:table}@starting-style{.ui.search>.results[popover]:popover-open{opacity:0}}.ui.search>.results .result:hover,.ui.category.search>.results .category .result:hover{background:var(--_ui-search-result-background-hover)}.ui.category.search>.results .category.active{background:var(--_ui-search-result-background-active)}.ui.category.search>.results .category.active>.name{color:var(--_ui-search-results-color)}.ui.search>.results .result.active,.ui.category.search>.results .category .result.active{background:var(--_ui-search-result-background-active);box-shadow:none;position:relative}.ui.search>.results .result.active :is(.title,.description){color:var(--_ui-search-title-color)}.ui.loading.search>.ui.input>.icon{opacity:1}.ui.loading.search>.ui.input>.icon>*{visibility:hidden}.ui.loading.search>.ui.input>.icon:before,.ui.loading.search>.ui.input>.icon:after{content:\"\";box-sizing:border-box;border:.2em solid oklch(from var(--ui-ink) l c h / .1);border-radius:var(--ui-radius-circle);block-size:1.28571em;inline-size:1.28571em;margin:-.642855em 0 0 -.642855em;position:absolute;inset-block-start:50%;inset-inline-start:50%}.ui.loading.search>.ui.input>.icon:after{border-color:var(--ui-text-muted) transparent transparent;animation:.6s linear infinite ui-search-spin}.ui.disabled.search{cursor:default;opacity:var(--_ui-search-disabled-opacity);pointer-events:none}.ui.disabled.search>.disabled.input{opacity:1}.ui.read-only.search>.input>input{cursor:default}}@keyframes ui-search-spin{to{rotate:1turn}}", Le = /* @__PURE__ */ F("<div><div><input><span><slot></slot></span></div><span class=status role=status>"), Re = /* @__PURE__ */ F("<div popover=manual>"), ze = /* @__PURE__ */ F("<div role=group><div></div><div role=none>"), Be = /* @__PURE__ */ F("<a tabindex=-1 role=option>"), Ve = /* @__PURE__ */ F("<div role=option>"), He = /* @__PURE__ */ F("<div><img>"), V = /* @__PURE__ */ F("<div>"), Ue = /* @__PURE__ */ F("<div><div></div><!>"), We = /* @__PURE__ */ F("<div><div>"), Ge = /* @__PURE__ */ F("<mark>"), H, U, W, Ke, qe, Je, Ye, Xe, Ze, Qe, G, $e, et, tt, nt, rt, it, at, ot, st, ct, K, q, J, Y, X, Z, Q, $ = class _UISearch extends (K = me, ct = [b], st = [le], ot = [g("value")], at = [x], it = [y("query", "inputRevision", "isReady")], rt = [_], nt = [_], tt = [x], et = [x], $e = [_], G = [_], Qe = [S], Ze = [y("resultsAreShowing", "highlightedResult")], Xe = [g("open")], Ye = [ne("open")], Je = [y("resultsAreShowing", "isConnected")], qe = [ne("loading")], Ke = [S], W = [S], U = [S], H = [S], K) {
|
|
502
|
+
}, Pe = ["title", "description"], Fe = "@layer ui.components.search.types{:host{vertical-align:baseline;display:inline-block}:host(:state(fluid)){display:block}:host(:focus-visible){outline:none}.ui.search,.ui.search>.ui.input,.ui.search>.results{--_ui-search-prompt-radius:var(--ui-search-prompt-radius,var(--ui-radius-pill));--_ui-search-duration:var(--ui-search-duration,var(--ui-duration-fast));--_ui-search-results-width:var(--ui-search-results-width,18em);--_ui-search-results-background:var(--ui-search-results-background,var(--ui-surface));--_ui-search-results-color:var(--ui-search-results-color,var(--ui-text-color));--_ui-search-results-border-color:var(--ui-search-results-border-color,var(--ui-border-color));--_ui-search-results-radius:var(--ui-search-results-radius,var(--ui-radius));--_ui-search-results-shadow:var(--ui-search-results-shadow,var(--ui-shadow-floating));--_ui-search-results-offset:var(--ui-search-results-offset,.5em);--_ui-search-result-padding:var(--ui-search-result-padding,.85714em 1.14285em);--_ui-search-result-line-height:var(--ui-search-result-line-height,1.33);--_ui-search-result-divider-color:var(--ui-search-result-divider-color,var(--ui-border-color-internal));--_ui-search-result-background-hover:var(--ui-search-result-background-hover,var(--ui-surface-muted));--_ui-search-result-background-active:var(--ui-search-result-background-active,oklch(from var(--ui-ink) l c h / .05));--_ui-search-result-image-width:var(--ui-search-result-image-width,5em);--_ui-search-result-image-height:var(--ui-search-result-image-height,3em);--_ui-search-result-image-radius:var(--ui-search-result-image-radius,.25em);--_ui-search-result-image-margin:var(--ui-search-result-image-margin,6em);--_ui-search-title-color:var(--ui-search-title-color,var(--ui-text-dark));--_ui-search-description-color:var(--ui-search-description-color,var(--ui-text-light));--_ui-search-description-font-size:var(--ui-search-description-font-size,.92857em);--_ui-search-price-color:var(--ui-search-price-color,var(--ui-green-text,var(--ui-green)));--_ui-search-message-padding:var(--ui-search-message-padding,1em);--_ui-search-category-background:var(--ui-search-category-background,var(--ui-surface-muted));--_ui-search-category-results-width:var(--ui-search-category-results-width,28em);--_ui-search-category-name-width:var(--ui-search-category-name-width,100px);--_ui-search-category-name-color:var(--ui-search-category-name-color,var(--ui-text-light));--_ui-search-category-name-padding:var(--ui-search-category-name-padding,.4em 1em);--_ui-search-category-divider-color:var(--ui-search-category-divider-color,var(--ui-border-color-internal));--_ui-search-category-result-border-color:var(--ui-search-category-result-border-color,var(--ui-border-color));--_ui-search-results-max-height:var(--ui-search-results-max-height,calc(var(--_search-results-rows) * (2 * .85714em + 1.33em)));--_ui-search-disabled-opacity:var(--ui-search-disabled-opacity,var(--ui-disabled-opacity))}.ui.search{--_search-results-rows:4;box-sizing:border-box;anchor-scope:all;max-width:100%;font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));text-align:start;display:inline-block;position:relative}.ui.search>.ui.input{--ui-input-radius:var(--_ui-search-prompt-radius);display:flex}.ui.search>.ui.input>.prompt{text-shadow:none;margin:0;font-style:normal;transition-property:background-color,color,box-shadow,border-color}.ui.search .prompt~.search.icon{cursor:var(--ui-control-cursor)}.ui.search>.results{z-index:var(--ui-z-dropdown);box-sizing:border-box;width:var(--_ui-search-results-width);margin:var(--_ui-search-results-offset) 0 0;border:var(--ui-border-width) solid var(--_ui-search-results-border-color);border-radius:var(--_ui-search-results-radius);background:var(--_ui-search-results-background);box-shadow:var(--_ui-search-results-shadow);color:var(--_ui-search-results-color);text-align:start;text-transform:none;white-space:normal;top:100%;outline:none;padding:0;font-size:1em;line-height:normal;display:none;position:absolute;inset-inline-start:0;overflow:visible}.ui.search>.results[popover]{position-area:block-end span-inline-end;position-try-fallbacks:flip-block, flip-inline;margin:var(--_ui-search-results-offset) 0;opacity:0;transition-property:opacity,display,overlay;transition-duration:var(--_ui-search-duration);transition-timing-function:var(--ui-ease);transition-behavior:allow-discrete;inset:auto}.ui.search>.results>:first-child{border-start-start-radius:var(--_ui-search-results-radius);border-start-end-radius:var(--_ui-search-results-radius)}.ui.search>.results>:last-child{border-end-end-radius:var(--_ui-search-results-radius);border-end-start-radius:var(--_ui-search-results-radius)}.ui.search>.status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}@layer ui.components.search.content{.ui.search>.results .result{box-sizing:border-box;padding:var(--_ui-search-result-padding);border-bottom:var(--ui-border-width) solid var(--_ui-search-result-divider-color);color:var(--_ui-search-results-color);font-size:1em;line-height:var(--_ui-search-result-line-height);cursor:var(--ui-control-cursor);text-decoration:none;display:block;overflow:hidden}.ui.search>.results .result:last-child{border-bottom:none}.ui.search>.results .result .image{float:inline-end;width:var(--_ui-search-result-image-width);height:var(--_ui-search-result-image-height);border-radius:var(--_ui-search-result-image-radius);background:0 0;overflow:hidden}.ui.search>.results .result .image img{width:auto;height:100%;display:block}.ui.search>.results .result .image+.content{margin-inline-end:var(--_ui-search-result-image-margin)}.ui.search>.results .result .title{color:var(--_ui-search-title-color);font-family:var(--ui-font-family-heading,var(--ui-font-family));font-size:1em;font-weight:var(--ui-font-weight-bold);margin:0}.ui.search>.results .result .description{color:var(--_ui-search-description-color);font-size:var(--_ui-search-description-font-size);margin-top:0}.ui.search>.results .result .price{float:inline-end;color:var(--_ui-search-price-color)}.ui.search>.results mark{background:var(--ui-highlight);color:inherit}.ui.search>.results>.message{padding:var(--_ui-search-message-padding)}.ui.search>.results>.message .header{color:var(--_ui-search-results-color);font-family:var(--ui-font-family-heading,var(--ui-font-family));font-size:1em;font-weight:var(--ui-font-weight-bold)}.ui.search>.results>.message .description{color:var(--_ui-search-results-color);margin-top:.25em;font-size:1em}.ui.search>.results>.error.message .description{color:var(--ui-red-text,var(--ui-red))}}@layer ui.components.search.variations{.ui.category.search>.results{width:var(--_ui-search-category-results-width)}.ui.category.search>.results .category{background:var(--_ui-search-category-background);box-shadow:none;transition:background var(--_ui-search-duration) var(--ui-ease), border-color var(--_ui-search-duration) var(--ui-ease);display:table-row}.ui.category.search>.results .category:last-child{border-bottom:none}.ui.category.search>.results .category>.name{width:var(--_ui-search-category-name-width);padding:var(--_ui-search-category-name-padding);border-bottom:var(--ui-border-width) solid var(--_ui-search-category-divider-color);color:var(--_ui-search-category-name-color);font-family:var(--ui-font-family);font-size:1em;font-weight:var(--ui-font-weight-bold);text-overflow:ellipsis;white-space:nowrap;background:0 0;display:table-cell;overflow:hidden}.ui.category.search>.results .category>.results{border-bottom:var(--ui-border-width) solid var(--_ui-search-category-divider-color);border-inline-start:var(--ui-border-width) solid var(--_ui-search-category-result-border-color);background:var(--_ui-search-results-background);display:table-cell}.ui.category.search>.results .category:last-child>:is(.name,.results){border-bottom:none}.ui.category.search>.results .category .result{padding:var(--_ui-search-result-padding);border-bottom:var(--ui-border-width) solid var(--_ui-search-result-divider-color);transition:background var(--_ui-search-duration) var(--ui-ease), border-color var(--_ui-search-duration) var(--ui-ease)}.ui.category.search>.results .category .result:last-child{border-bottom:none}.ui.category.search>.results .category:first-child .name+.results>.result:first-child{border-start-end-radius:var(--_ui-search-results-radius)}.ui.category.search>.results .category:last-child .result:last-child{border-end-end-radius:var(--_ui-search-results-radius)}.ui.horizontal.category.search>.results .category,.ui.horizontal.category.search>.results .category>.name,.ui.horizontal.category.search>.results .category>.results{display:block}.ui.horizontal.category.search>.results .category>.results{border-inline-start:0;width:100%}.ui:is(.scrolling,.short,.long).search>.results{overscroll-behavior:contain;overflow:hidden auto}.ui.scrolling.search>.results,.ui.short.search>.results{max-height:var(--_ui-search-results-max-height)}.ui[class*=very\\ short].search>.results{max-height:calc(var(--_ui-search-results-max-height) * .75)}.ui.long.search>.results{max-height:calc(var(--_ui-search-results-max-height) * 2)}.ui[class*=very\\ long].search>.results{max-height:calc(var(--_ui-search-results-max-height) * 3)}.ui.scrolling.resizable.search>.results{height:var(--_ui-search-results-max-height);resize:vertical;max-height:none}@media (768px<=width<992px),(width>=992px){.ui.search{--_search-results-rows:6}}@media (width>=992px){.ui.search{--_search-results-rows:8}}@media (width>=1920px){.ui.search{--_search-results-rows:12}}.ui[class*=left\\ aligned].search>.results:not([popover]){inset-inline:0 auto}.ui[class*=right\\ aligned].search>.results:not([popover]){inset-inline:auto 0}.ui[class*=left\\ aligned].search>.results[popover]{position-area:block-end span-inline-end}.ui[class*=right\\ aligned].search>.results[popover]{position-area:block-end span-inline-start}.ui.fluid.search{width:100%;display:block}.ui.fluid.search>.results{width:100%}.ui.fluid.search>.results[popover]{width:anchor-size(width)}@media (width<768px){.ui.search>.results{max-width:calc(100vw - 2em)}}}@layer ui.components.search.states{:is(.ui.search>.results[popover]:popover-open,.ui.search>.visible.results:not([popover])){opacity:1;display:block}:is(.ui.category.search>.results[popover]:popover-open,.ui.category.search>.visible.results:not([popover])){display:table}@starting-style{.ui.search>.results[popover]:popover-open{opacity:0}}.ui.search>.results .result:hover,.ui.category.search>.results .category .result:hover{background:var(--_ui-search-result-background-hover)}.ui.category.search>.results .category.active{background:var(--_ui-search-result-background-active)}.ui.category.search>.results .category.active>.name{color:var(--_ui-search-results-color)}.ui.search>.results .result.active,.ui.category.search>.results .category .result.active{background:var(--_ui-search-result-background-active);box-shadow:none;position:relative}.ui.search>.results .result.active :is(.title,.description){color:var(--_ui-search-title-color)}.ui.loading.search>.ui.input>.icon{opacity:1}.ui.loading.search>.ui.input>.icon>*{visibility:hidden}.ui.loading.search>.ui.input>.icon:before,.ui.loading.search>.ui.input>.icon:after{content:\"\";box-sizing:border-box;border:.2em solid oklch(from var(--ui-ink) l c h / .1);border-radius:var(--ui-radius-circle);block-size:1.28571em;inline-size:1.28571em;margin:-.642855em 0 0 -.642855em;position:absolute;inset-block-start:50%;inset-inline-start:50%}.ui.loading.search>.ui.input>.icon:after{border-color:var(--ui-text-muted) transparent transparent;animation:.6s linear infinite ui-search-spin}.ui.disabled.search{cursor:default;opacity:var(--_ui-search-disabled-opacity);pointer-events:none}.ui.disabled.search>.disabled.input{opacity:1}.ui.read-only.search>.input>input{cursor:default}}@keyframes ui-search-spin{to{rotate:1turn}}", Ie = /* @__PURE__ */ L("<div><div><input><span><slot></slot></span></div><span class=status role=status>"), Le = /* @__PURE__ */ L("<div popover=manual>"), Re = /* @__PURE__ */ L("<div role=group><div></div><div role=none>"), ze = /* @__PURE__ */ L("<a tabindex=-1 role=option>"), Be = /* @__PURE__ */ L("<div role=option>"), Ve = /* @__PURE__ */ L("<div><img>"), W = /* @__PURE__ */ L("<div>"), He = /* @__PURE__ */ L("<div><div></div><!>"), Ue = /* @__PURE__ */ L("<div><div>"), We = /* @__PURE__ */ L("<mark>"), Ge, Ke, qe, Je, Ye, Xe, Ze, Qe, $e, et, tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt, mt, ht, G, K, q, J, Y, X, Z, Q = class _UISearch extends (G = ge, ht = [x], mt = [ue], pt = [_("value")], ft = [S], dt = [y("query", "inputRevision", "isReady")], ut = [w], lt = [w], ct = [w], st = [pe], ot = [v], at = [v], it = [S], rt = [S], nt = [v], tt = [v], et = [w], $e = [y("resultsAreShowing", "highlightedResult")], Qe = [_("open")], Ze = [re("open")], Xe = [y("resultsAreShowing", "isConnected")], Ye = [re("loading")], Je = [w], qe = [w], Ke = [w], Ge = [w], G) {
|
|
494
503
|
constructor() {
|
|
495
|
-
super(...arguments), h(
|
|
504
|
+
super(...arguments), h(K, 5, this), g(this, q, h(K, 8, this, "")), h(K, 11, this), g(this, J, h(K, 12, this, 0)), h(K, 15, this), c(this, "initialValue", this.isControlledByPage("value") ? this.value : void 0), c(this, "settledValue", this.query), c(this, "settleTimer"), g(this, Y, h(K, 16, this, {
|
|
496
505
|
query: "",
|
|
497
506
|
groups: [],
|
|
498
|
-
status:
|
|
499
|
-
})), h(
|
|
507
|
+
status: z.idle
|
|
508
|
+
})), h(K, 19, this), g(this, X, h(K, 20, this)), h(K, 23, this), c(this, "answersByQuery", /* @__PURE__ */ new Map()), c(this, "highlighted", new _e(() => this.shownResults)), g(this, Z, h(K, 24, this, !1)), h(K, 27, this), c(this, "popover", new ee({
|
|
500
509
|
component: this,
|
|
501
510
|
member: "isOpen",
|
|
502
511
|
restoreFocus: !1,
|
|
503
|
-
canChange: /* @__PURE__ */
|
|
504
|
-
onChange: /* @__PURE__ */
|
|
512
|
+
canChange: /* @__PURE__ */ t((e) => !e || !(this.isDisabled || this.isReadOnly), "canChange"),
|
|
513
|
+
onChange: /* @__PURE__ */ t((e) => {
|
|
505
514
|
e && (this.highlighted.index = this.selectFirstResult ? 0 : -1);
|
|
506
515
|
}, "onChange")
|
|
507
|
-
})),
|
|
516
|
+
})), c(this, "iconGlyph", new l({
|
|
508
517
|
owner: this,
|
|
509
|
-
name: /* @__PURE__ */
|
|
510
|
-
})),
|
|
518
|
+
name: /* @__PURE__ */ t(() => bt, "name")
|
|
519
|
+
})), c(this, "highlighter", new ve()), c(this, "resultIds", /* @__PURE__ */ new WeakMap()), c(this, "ids", { results: "" }), c(this, "input"), c(this, "resultsBox"), c(this, "onInput", /* @__PURE__ */ t((e) => {
|
|
511
520
|
let t = e.currentTarget.value, n = this.isLongEnough(t);
|
|
512
521
|
this.requestChange("value", t, () => (n && this.send("ui-searched", {
|
|
513
522
|
query: t.trim(),
|
|
514
523
|
originalEvent: e
|
|
515
|
-
}), !0)), this.inputRevision++, this.highlighted.index = this.selectFirstResult ? 0 : -1, this.runQuery(t, e);
|
|
516
|
-
}, "onInput")),
|
|
517
|
-
this.
|
|
518
|
-
}, "onFocus")),
|
|
524
|
+
}), !0)), this.inputRevision++, this.highlighted.index = this.selectFirstResult ? 0 : -1, this.runQuery(t, e), this.settleAfterPause(e);
|
|
525
|
+
}, "onInput")), c(this, "onFocus", /* @__PURE__ */ t((e) => {
|
|
526
|
+
this.runQuery(this.query, e);
|
|
527
|
+
}, "onFocus")), c(this, "onClick", h(K, 36, this, /* @__PURE__ */ t((e) => {
|
|
519
528
|
this.isOpen || this.rerunQuery(e);
|
|
520
|
-
}, "onClick"))), h(
|
|
529
|
+
}, "onClick"))), h(K, 39, this), c(this, "onBlur", h(K, 40, this, /* @__PURE__ */ t((e) => {
|
|
521
530
|
let t = e.relatedTarget;
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
let n = this.query;
|
|
525
|
-
this.valueAtFocus !== void 0 && n !== this.valueAtFocus && this.send("ui-changed", {
|
|
526
|
-
value: n,
|
|
527
|
-
originalEvent: e
|
|
528
|
-
}), this.valueAtFocus = void 0;
|
|
529
|
-
}, "onBlur"))), h(q, 43, this), e(this, "onKeyDown", h(q, 44, this, /* @__PURE__ */ p((e) => {
|
|
531
|
+
t && (this.domElement.contains(t) || this.domElement.renderRoot.contains(t)) || (this.requestOpen(!1, e), this.settle(e));
|
|
532
|
+
}, "onBlur"))), h(K, 43, this), c(this, "onKeyDown", h(K, 44, this, /* @__PURE__ */ t((e) => {
|
|
530
533
|
if (this.isDisabled || e.defaultPrevented || e.isComposing) return;
|
|
531
534
|
let t = this.resultsAreShowing;
|
|
532
535
|
switch (e.key) {
|
|
533
|
-
case
|
|
536
|
+
case o.arrowDown:
|
|
534
537
|
e.preventDefault(), t ? this.highlighted.move(1) : this.rerunQuery(e);
|
|
535
538
|
return;
|
|
536
|
-
case
|
|
539
|
+
case o.arrowUp:
|
|
537
540
|
if (!t) return;
|
|
538
541
|
e.preventDefault(), this.highlighted.move(-1);
|
|
539
542
|
return;
|
|
540
|
-
case
|
|
543
|
+
case o.enter: {
|
|
541
544
|
let n = t ? this.highlightedResult : void 0;
|
|
542
|
-
|
|
545
|
+
if (n) {
|
|
546
|
+
e.preventDefault(), this.select(n, e);
|
|
547
|
+
return;
|
|
548
|
+
}
|
|
549
|
+
this.settle(e), this.domElement.form?.requestSubmit();
|
|
543
550
|
return;
|
|
544
551
|
}
|
|
545
|
-
case
|
|
552
|
+
case o.escape:
|
|
546
553
|
if (t || !this.query) return;
|
|
547
554
|
e.preventDefault(), this.requestOpen(!1, e), this.commit("", e);
|
|
548
555
|
return;
|
|
549
|
-
case
|
|
556
|
+
case o.tab:
|
|
550
557
|
this.isOpen && this.requestOpen(!1, e);
|
|
551
558
|
return;
|
|
552
559
|
}
|
|
553
|
-
}, "onKeyDown"))), h(
|
|
560
|
+
}, "onKeyDown"))), h(K, 47, this);
|
|
554
561
|
}
|
|
555
562
|
get query() {
|
|
556
563
|
return String(this.value ?? "");
|
|
@@ -562,18 +569,49 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
562
569
|
return e.trim().length >= Math.max(1, this.minCharacters ?? 1);
|
|
563
570
|
}
|
|
564
571
|
onQueryChanged(e) {
|
|
565
|
-
this.input && this.input.value !== e && (this.input.value = e);
|
|
572
|
+
this.input && this.input.value !== e && (this.input.value = e), !this.settleTimer && (this.settledValue = e, this.recordPageValue());
|
|
573
|
+
}
|
|
574
|
+
recordPageValue() {
|
|
575
|
+
this.address.record(this.addressPlace);
|
|
566
576
|
}
|
|
567
577
|
commit(e, t) {
|
|
568
|
-
this.requestChange("value", e, () => (this.send("ui-changed", {
|
|
578
|
+
this.cancelSettling(), this.requestChange("value", e, () => (this.send("ui-changed", {
|
|
569
579
|
value: e,
|
|
570
580
|
originalEvent: t
|
|
571
|
-
}), !0)), this.
|
|
581
|
+
}), !0)), this.settledValue = e, this.inputRevision++;
|
|
582
|
+
}
|
|
583
|
+
get settlesItself() {
|
|
584
|
+
return !0;
|
|
585
|
+
}
|
|
586
|
+
get delayMs() {
|
|
587
|
+
return _UISearch.msFor(this.delay ?? _t);
|
|
588
|
+
}
|
|
589
|
+
settleAfterPause(e) {
|
|
590
|
+
this.cancelSettling();
|
|
591
|
+
let t = this.delayMs;
|
|
592
|
+
if (t <= 0 || !this.query) return this.settle(e);
|
|
593
|
+
this.settleTimer = ne(t / 1e3, () => {
|
|
594
|
+
this.settleTimer = void 0, this.settle(e);
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
settle(e) {
|
|
598
|
+
this.cancelSettling();
|
|
599
|
+
let t = this.query;
|
|
600
|
+
t !== this.settledValue && (this.settledValue = t, this.send("ui-changed", {
|
|
601
|
+
value: t,
|
|
602
|
+
originalEvent: e
|
|
603
|
+
}));
|
|
604
|
+
}
|
|
605
|
+
cancelSettling() {
|
|
606
|
+
this.settleTimer?.cancel(), this.settleTimer = void 0;
|
|
607
|
+
}
|
|
608
|
+
stopSettlingOnDisconnect() {
|
|
609
|
+
return () => this.cancelSettling();
|
|
572
610
|
}
|
|
573
611
|
get matcher() {
|
|
574
612
|
let e = this.searchFields;
|
|
575
|
-
return new
|
|
576
|
-
fields: e === void 0 ? void 0 :
|
|
613
|
+
return new U({
|
|
614
|
+
fields: e === void 0 ? void 0 : r.list(e),
|
|
577
615
|
match: this.fullTextSearch,
|
|
578
616
|
ignoreDiacritics: this.ignoreDiacritics
|
|
579
617
|
});
|
|
@@ -582,7 +620,7 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
582
620
|
let e = this.source;
|
|
583
621
|
if (!Array.isArray(e) || !this.queryIsLongEnough) return [];
|
|
584
622
|
let t = this.maxResults ?? 0, n = this.matcher.search(e, this.query);
|
|
585
|
-
return t > 0 && (n = n.slice(0, t)), this.category ?
|
|
623
|
+
return t > 0 && (n = n.slice(0, t)), this.category ? U.categorize(n) : [{
|
|
586
624
|
name: "",
|
|
587
625
|
results: n
|
|
588
626
|
}];
|
|
@@ -600,12 +638,12 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
600
638
|
if (!this.queryIsLongEnough || this.shownResults.length) return;
|
|
601
639
|
let e = this.remoteAnswer;
|
|
602
640
|
if (!this.url || e.query === this.query.trim() && !this.isFetching) {
|
|
603
|
-
if (this.url && e.status ===
|
|
604
|
-
kind:
|
|
641
|
+
if (this.url && e.status === z.error) return {
|
|
642
|
+
kind: Te.error,
|
|
605
643
|
text: this.translationForKey("searchServerError")
|
|
606
644
|
};
|
|
607
|
-
if (!(this.url && e.status !==
|
|
608
|
-
kind:
|
|
645
|
+
if (!(this.url && e.status !== z.done) && this.showNoResults !== !1) return {
|
|
646
|
+
kind: Te.empty,
|
|
609
647
|
header: this.translationForKey("searchNoResultsHeader"),
|
|
610
648
|
text: this.translationForKey("searchNoResults")
|
|
611
649
|
};
|
|
@@ -623,7 +661,7 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
623
661
|
this.runningQuery = void 0, this.remoteAnswer = {
|
|
624
662
|
query: e,
|
|
625
663
|
groups: n,
|
|
626
|
-
status:
|
|
664
|
+
status: z.done
|
|
627
665
|
};
|
|
628
666
|
return;
|
|
629
667
|
}
|
|
@@ -635,11 +673,11 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
635
673
|
key: this.ids.results,
|
|
636
674
|
signal: r.signal
|
|
637
675
|
}).then((t) => {
|
|
638
|
-
let n =
|
|
676
|
+
let n = U.groupsFor(t, i);
|
|
639
677
|
this.answersByQuery.set(e, n), !r.signal.aborted && (this.remoteAnswer = {
|
|
640
678
|
query: e,
|
|
641
679
|
groups: n,
|
|
642
|
-
status:
|
|
680
|
+
status: z.done
|
|
643
681
|
}, this.send("ui-replied", {
|
|
644
682
|
query: e,
|
|
645
683
|
results: n.flatMap((e) => e.results)
|
|
@@ -648,7 +686,7 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
648
686
|
r.signal.aborted || t?.name === "AbortError" || (this.remoteAnswer = {
|
|
649
687
|
query: e,
|
|
650
688
|
groups: [],
|
|
651
|
-
status:
|
|
689
|
+
status: z.error
|
|
652
690
|
});
|
|
653
691
|
}).finally(() => {
|
|
654
692
|
this.runningQuery === r && (this.runningQuery = void 0);
|
|
@@ -694,7 +732,7 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
694
732
|
return this.query;
|
|
695
733
|
}
|
|
696
734
|
onFormReset() {
|
|
697
|
-
this.value = this.initialValue, this.inputRevision++, this.highlighted.clear();
|
|
735
|
+
this.cancelSettling(), this.value = this.initialValue, this.settledValue = this.query, this.inputRevision++, this.highlighted.clear();
|
|
698
736
|
}
|
|
699
737
|
get validationLabel() {
|
|
700
738
|
return this.isReady ? this.label : void 0;
|
|
@@ -706,12 +744,12 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
706
744
|
return this.query;
|
|
707
745
|
}
|
|
708
746
|
render() {
|
|
709
|
-
this.ids = { results: m.ids.next(
|
|
747
|
+
this.ids = { results: m.ids.next(vt) };
|
|
710
748
|
let e = this;
|
|
711
|
-
var t =
|
|
749
|
+
var t = Ie(), n = t.firstChild, r = n.firstChild, i = r.nextSibling, a = i.firstChild, o = n.nextSibling;
|
|
712
750
|
return we(r, [
|
|
713
751
|
{
|
|
714
|
-
class:
|
|
752
|
+
class: De,
|
|
715
753
|
get part() {
|
|
716
754
|
return e.partForName("prompt");
|
|
717
755
|
},
|
|
@@ -774,33 +812,33 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
774
812
|
return e.onClick;
|
|
775
813
|
}
|
|
776
814
|
}
|
|
777
|
-
], !1),
|
|
778
|
-
e:
|
|
815
|
+
], !1), P(() => (t) => e.input = t, r), a._$owner = j(), M(a, () => e.iconGlyph.svg), M(t, () => e.results(), o), M(o, () => e.statusText), A(() => ({
|
|
816
|
+
e: N(e.rootClass),
|
|
779
817
|
t: e.partForName("search"),
|
|
780
|
-
a:
|
|
781
|
-
o:
|
|
782
|
-
[
|
|
818
|
+
a: N(e.popover.anchorStyle),
|
|
819
|
+
o: N([Ee, {
|
|
820
|
+
[xt]: e.isLoading,
|
|
783
821
|
[de]: e.fluid,
|
|
784
|
-
[
|
|
822
|
+
[oe]: e.isDisabled
|
|
785
823
|
}]),
|
|
786
824
|
i: e.partForName("input"),
|
|
787
|
-
n:
|
|
825
|
+
n: N(St),
|
|
788
826
|
s: e.partForName("icon"),
|
|
789
827
|
h: e.slotForName("icon")
|
|
790
828
|
}), ({ e, t: r, a: o, o: s, i: c, n: l, s: u, h: d }, f) => {
|
|
791
|
-
O(t, e, f?.e), r !== f?.t &&
|
|
829
|
+
O(t, e, f?.e), r !== f?.t && F(t, "part", r), I(t, o, f?.a), O(n, s, f?.o), c !== f?.i && F(n, "part", c), O(i, l, f?.n), u !== f?.s && F(i, "part", u), d !== f?.h && F(a, "name", d);
|
|
792
830
|
}), t;
|
|
793
831
|
}
|
|
794
832
|
get staticControl() {
|
|
795
|
-
return
|
|
796
|
-
[
|
|
833
|
+
return Se ? {
|
|
834
|
+
[e]: "",
|
|
797
835
|
name: this.name
|
|
798
836
|
} : {};
|
|
799
837
|
}
|
|
800
838
|
results() {
|
|
801
839
|
let e = this;
|
|
802
|
-
var t =
|
|
803
|
-
return D(t, "mousedown", _UISearch.preventDefault, !0),
|
|
840
|
+
var t = Le();
|
|
841
|
+
return D(t, "mousedown", _UISearch.preventDefault, !0), P(() => (t) => e.resultsBox = t, t), M(t, k(E, {
|
|
804
842
|
get when() {
|
|
805
843
|
return e.resultsAreShowing;
|
|
806
844
|
},
|
|
@@ -839,59 +877,59 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
839
877
|
}
|
|
840
878
|
})), A(() => ({
|
|
841
879
|
e: e.ids.results,
|
|
842
|
-
t:
|
|
843
|
-
a:
|
|
880
|
+
t: N($),
|
|
881
|
+
a: N(e.popover.panelStyle),
|
|
844
882
|
o: e.partForName("results"),
|
|
845
883
|
i: e.shownResults.length ? "listbox" : void 0,
|
|
846
884
|
n: e.shownResults.length ? e.label : void 0
|
|
847
885
|
}), ({ e, t: n, a: r, o: i, i: a, n: o }, s) => {
|
|
848
|
-
e !== s?.e &&
|
|
886
|
+
e !== s?.e && F(t, "id", e), O(t, n, s?.t), I(t, r, s?.a), i !== s?.o && F(t, "part", i), a !== s?.i && F(t, "role", a), o !== s?.n && F(t, "aria-label", o);
|
|
849
887
|
}), t;
|
|
850
888
|
}
|
|
851
|
-
resultCategory(e,
|
|
852
|
-
let
|
|
853
|
-
var
|
|
854
|
-
return
|
|
889
|
+
resultCategory(e, n) {
|
|
890
|
+
let r = /* @__PURE__ */ t(() => `${this.ids.results}${yt}${n()}`, "nameId"), i = this;
|
|
891
|
+
var a = Re(), o = a.firstChild, s = o.nextSibling;
|
|
892
|
+
return M(o, () => e.name), M(s, k(T, {
|
|
855
893
|
get each() {
|
|
856
894
|
return e.results;
|
|
857
895
|
},
|
|
858
|
-
children: (e) =>
|
|
896
|
+
children: (e) => i.row(e)
|
|
859
897
|
})), A(() => ({
|
|
860
|
-
e:
|
|
861
|
-
t:
|
|
862
|
-
a:
|
|
863
|
-
o:
|
|
864
|
-
i:
|
|
865
|
-
n:
|
|
866
|
-
s:
|
|
867
|
-
}), ({ e, t, a: n, o: r, i
|
|
868
|
-
O(
|
|
869
|
-
}),
|
|
898
|
+
e: N([wt, { [ce]: e.results.includes(i.highlightedResult) }]),
|
|
899
|
+
t: r(),
|
|
900
|
+
a: i.partForName("category"),
|
|
901
|
+
o: r(),
|
|
902
|
+
i: N(Tt),
|
|
903
|
+
n: i.partForName("name"),
|
|
904
|
+
s: N($)
|
|
905
|
+
}), ({ e, t, a: n, o: r, i, n: c, s: l }, u) => {
|
|
906
|
+
O(a, e, u?.e), t !== u?.t && F(a, "aria-labelledby", t), n !== u?.a && F(a, "part", n), r !== u?.o && F(o, "id", r), O(o, i, u?.i), c !== u?.n && F(o, "part", c), O(s, l, u?.s);
|
|
907
|
+
}), a;
|
|
870
908
|
}
|
|
871
909
|
row(e) {
|
|
872
|
-
let
|
|
873
|
-
if (
|
|
874
|
-
let
|
|
875
|
-
var
|
|
876
|
-
return D(
|
|
877
|
-
e:
|
|
878
|
-
t:
|
|
879
|
-
a:
|
|
880
|
-
o:
|
|
910
|
+
let n = typeof e.url == "string" && e.url ? e.url : void 0, r = /* @__PURE__ */ t(() => [Ct, { [ce]: this.highlightedResult === e }], "classes"), i = /* @__PURE__ */ t(() => this.highlightedResult === e ? "true" : "false", "selected"), a = /* @__PURE__ */ t(() => this.highlighted.highlight(e), "onPointerMove"), o = /* @__PURE__ */ t((t) => this.select(e, t), "onClick");
|
|
911
|
+
if (n) {
|
|
912
|
+
let t = this;
|
|
913
|
+
var s = ze(), c = j();
|
|
914
|
+
return D(s, "click", o, !0), D(s, "pointermove", a, !0), F(s, "href", n), M(s, () => t.resultContent(e)), A(() => ({
|
|
915
|
+
e: t.idFor(e),
|
|
916
|
+
t: N(r()),
|
|
917
|
+
a: t.partForName("result"),
|
|
918
|
+
o: i()
|
|
881
919
|
}), ({ e, t, a: n, o: r }, i) => {
|
|
882
|
-
e !== i?.e &&
|
|
883
|
-
}),
|
|
920
|
+
e !== i?.e && F(s, "id", e), O(s, t, i?.t), n !== i?.a && F(s, "part", n), r !== i?.o && F(s, "aria-selected", r), be(s, c);
|
|
921
|
+
}), s;
|
|
884
922
|
}
|
|
885
|
-
let
|
|
886
|
-
var
|
|
887
|
-
return D(
|
|
888
|
-
e:
|
|
889
|
-
t:
|
|
890
|
-
a:
|
|
891
|
-
o:
|
|
923
|
+
let l = this;
|
|
924
|
+
var u = Be();
|
|
925
|
+
return D(u, "click", o, !0), D(u, "pointermove", a, !0), M(u, () => l.resultContent(e)), A(() => ({
|
|
926
|
+
e: l.idFor(e),
|
|
927
|
+
t: N(r()),
|
|
928
|
+
a: l.partForName("result"),
|
|
929
|
+
o: i()
|
|
892
930
|
}), ({ e, t, a: n, o: r }, i) => {
|
|
893
|
-
e !== i?.e &&
|
|
894
|
-
}),
|
|
931
|
+
e !== i?.e && F(u, "id", e), O(u, t, i?.t), n !== i?.a && F(u, "part", n), r !== i?.o && F(u, "aria-selected", r);
|
|
932
|
+
}), u;
|
|
895
933
|
}
|
|
896
934
|
resultContent(e) {
|
|
897
935
|
let t = this;
|
|
@@ -900,40 +938,40 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
900
938
|
return typeof e.image == "string";
|
|
901
939
|
},
|
|
902
940
|
get children() {
|
|
903
|
-
var t =
|
|
941
|
+
var t = Ve(), n = t.firstChild;
|
|
904
942
|
return A(() => ({
|
|
905
|
-
e:
|
|
943
|
+
e: N(d),
|
|
906
944
|
t: e.image,
|
|
907
945
|
a: typeof e.alt == "string" ? e.alt : ""
|
|
908
946
|
}), ({ e, t: r, a: i }, a) => {
|
|
909
|
-
O(t, e, a?.e), r !== a?.t &&
|
|
947
|
+
O(t, e, a?.e), r !== a?.t && F(n, "src", r), i !== a?.a && F(n, "alt", i);
|
|
910
948
|
}), t;
|
|
911
949
|
}
|
|
912
950
|
}), (() => {
|
|
913
|
-
var n =
|
|
914
|
-
return
|
|
951
|
+
var n = He(), r = n.firstChild, a = r.nextSibling;
|
|
952
|
+
return M(n, k(E, {
|
|
915
953
|
get when() {
|
|
916
|
-
return
|
|
954
|
+
return Ce(() => e.price !== void 0)() && e.price !== null;
|
|
917
955
|
},
|
|
918
956
|
get children() {
|
|
919
|
-
var t =
|
|
920
|
-
return
|
|
957
|
+
var t = W();
|
|
958
|
+
return M(t, () => String(e.price)), A(() => N(Et), (e, n) => {
|
|
921
959
|
O(t, e, n);
|
|
922
960
|
}), t;
|
|
923
961
|
}
|
|
924
|
-
}), r),
|
|
962
|
+
}), r), M(r, () => t.markedText(String(e.title ?? ""))), M(n, k(E, {
|
|
925
963
|
get when() {
|
|
926
964
|
return e.description;
|
|
927
965
|
},
|
|
928
966
|
get children() {
|
|
929
|
-
var n =
|
|
930
|
-
return
|
|
967
|
+
var n = W();
|
|
968
|
+
return M(n, () => t.markedText(String(e.description))), A(() => N(b), (e, t) => {
|
|
931
969
|
O(n, e, t);
|
|
932
970
|
}), n;
|
|
933
971
|
}
|
|
934
|
-
}),
|
|
935
|
-
e:
|
|
936
|
-
t:
|
|
972
|
+
}), a), A(() => ({
|
|
973
|
+
e: N(ae),
|
|
974
|
+
t: N(i)
|
|
937
975
|
}), ({ e, t }, i) => {
|
|
938
976
|
O(n, e, i?.e), O(r, t, i?.t);
|
|
939
977
|
}), n;
|
|
@@ -946,23 +984,23 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
946
984
|
return e.message;
|
|
947
985
|
},
|
|
948
986
|
children: (t) => (() => {
|
|
949
|
-
var n =
|
|
950
|
-
return
|
|
987
|
+
var n = Ue(), r = n.firstChild;
|
|
988
|
+
return M(n, k(E, {
|
|
951
989
|
get when() {
|
|
952
990
|
return t().header;
|
|
953
991
|
},
|
|
954
992
|
get children() {
|
|
955
|
-
var e =
|
|
956
|
-
return
|
|
993
|
+
var e = W();
|
|
994
|
+
return M(e, () => t().header), A(() => N(a), (t, n) => {
|
|
957
995
|
O(e, t, n);
|
|
958
996
|
}), e;
|
|
959
997
|
}
|
|
960
|
-
}),
|
|
961
|
-
e:
|
|
998
|
+
}), r), M(r, () => t().text), A(() => ({
|
|
999
|
+
e: N([te, t().kind]),
|
|
962
1000
|
t: e.partForName("message"),
|
|
963
|
-
a:
|
|
964
|
-
}), ({ e, t, a:
|
|
965
|
-
O(n, e, a?.e), t !== a?.t &&
|
|
1001
|
+
a: N(b)
|
|
1002
|
+
}), ({ e, t, a: i }, a) => {
|
|
1003
|
+
O(n, e, a?.e), t !== a?.t && F(n, "part", t), O(r, i, a?.a);
|
|
966
1004
|
}), n;
|
|
967
1005
|
})()
|
|
968
1006
|
});
|
|
@@ -974,9 +1012,9 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
974
1012
|
value: "",
|
|
975
1013
|
text: e
|
|
976
1014
|
}, t, { ignoreDiacritics: this.ignoreDiacritics });
|
|
977
|
-
return
|
|
978
|
-
var t =
|
|
979
|
-
return
|
|
1015
|
+
return se(e, n).map((e) => e.isMarked ? (() => {
|
|
1016
|
+
var t = We();
|
|
1017
|
+
return M(t, () => e.text), t;
|
|
980
1018
|
})() : e.text);
|
|
981
1019
|
}
|
|
982
1020
|
get statusText() {
|
|
@@ -988,28 +1026,32 @@ var je = z, Me = "ui-changed", Ne = "input", Pe = "-suggestions", B = class Sear
|
|
|
988
1026
|
let t = this.resultIds.get(e);
|
|
989
1027
|
return t || this.resultIds.set(e, t = `${this.ids.results}-${++_UISearch.resultCounter}`), t;
|
|
990
1028
|
}
|
|
1029
|
+
static msFor(e) {
|
|
1030
|
+
let t = e.trim(), n = Number.parseFloat(t);
|
|
1031
|
+
return Number.isNaN(n) ? _UISearch.msFor(_t) : /\ds$/.test(t) ? n * 1e3 : n;
|
|
1032
|
+
}
|
|
991
1033
|
static preventDefault(e) {
|
|
992
1034
|
e.preventDefault();
|
|
993
1035
|
}
|
|
994
1036
|
};
|
|
995
|
-
|
|
1037
|
+
K = he(G), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), u(K, 4, "value", pt, Q, q), u(K, 4, "inputRevision", ft, Q, J), u(K, 1, "onQueryChanged", dt, Q), u(K, 1, "recordPageValue", ut, Q), u(K, 2, "delayMs", lt, Q), u(K, 1, "settle", ct, Q), u(K, 1, "stopSettlingOnDisconnect", st, Q), u(K, 2, "matcher", ot, Q), u(K, 2, "localGroups", at, Q), u(K, 4, "remoteAnswer", it, Q, Y), u(K, 4, "runningQuery", rt, Q, X), u(K, 2, "shownResults", nt, Q), u(K, 2, "message", tt, Q), u(K, 1, "rerunQuery", et, Q), u(K, 1, "onHighlightChanged", $e, Q), u(K, 4, "isOpen", Qe, Q, Z), u(K, 2, "resultsAreShowing", Ze, Q), u(K, 1, "onPopoverChanged", Xe, Q), u(K, 2, "isLoading", Ye, Q), u(K, 2, "startingQuery", Je, Q), u(K, 13, "vocabulary", ht, Q), u(K, 13, "elementSetup", mt, Q), u(K, 5, "onClick", qe, Q), u(K, 5, "onBlur", Ke, Q), u(K, 5, "onKeyDown", Ge, Q), p(K, Q), t(Q, "UISearch"), c(Q, "vocabulary", h(K, 28, Q, R)), h(K, 31, Q), c(Q, "elementSetup", h(K, 32, Q, {
|
|
996
1038
|
styleSheets: {
|
|
997
|
-
input:
|
|
998
|
-
search:
|
|
1039
|
+
input: ye,
|
|
1040
|
+
search: Fe
|
|
999
1041
|
},
|
|
1000
1042
|
cssStates: ["fluid"],
|
|
1001
|
-
Fallback:
|
|
1043
|
+
Fallback: Ae,
|
|
1002
1044
|
loading: "its own"
|
|
1003
|
-
})), h(
|
|
1004
|
-
var
|
|
1045
|
+
})), h(K, 35, Q), c(Q, "resultCounter", 0);
|
|
1046
|
+
var gt = Q, _t = "2s", vt = "ui-search", yt = "-category-", bt = "magnifying-glass", xt = "loading", St = "search icon", $ = "results", Ct = "result", wt = "category", Tt = "name", Et = "price";
|
|
1005
1047
|
//#endregion
|
|
1006
1048
|
//#region src/components/ui-search/index.ts
|
|
1007
|
-
|
|
1049
|
+
xe([
|
|
1008
1050
|
"mousedown",
|
|
1009
1051
|
"pointermove",
|
|
1010
1052
|
"click"
|
|
1011
|
-
]),
|
|
1053
|
+
]), gt.define();
|
|
1012
1054
|
//#endregion
|
|
1013
|
-
export {
|
|
1055
|
+
export { U as SearchMatcher, gt as UISearch };
|
|
1014
1056
|
|
|
1015
1057
|
//# sourceMappingURL=ui-search.js.map
|