spell-ui 0.8.6 → 0.8.8
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 +13 -3
- 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 +22 -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 +530 -24
- 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 +124 -92
- 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-menu.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { A as e, Bt as t, F as n,
|
|
2
|
+
import { A as e, Bt as t, F as n, Ht as r, IconGlyph as i, Lt as a, N as o, P as s, PartContext as c, PopoverPanel as l, Queued as u, Rt as d, UI as f, UIComponent as ee, Ut as p, Vt as m, X as h, afterSolidUpdate as g, beforeNextPaint as te, cssState as _, derived as v, lazy as ne, n as y, on as re, onChange as b, proto as ie, protoMerged as ae, state as oe, untracked as x, watches as se, z as S, zt as ce } from "./core.js";
|
|
3
3
|
import "./ui-item.js";
|
|
4
|
-
import { n as
|
|
5
|
-
import { For as
|
|
6
|
-
import { addEvent as
|
|
4
|
+
import { n as le, t as ue } from "./UIMenu-zdcAtwTa.js";
|
|
5
|
+
import { For as de, Match as C, Show as w, Switch as fe, untrack as pe } from "solid-js";
|
|
6
|
+
import { addEvent as me, className as T, createComponent as E, delegateEvents as he, effect as D, getOwner as O, insert as k, isServer as A, memo as j, readShallow as M, ref as N, setAttribute as P, style as F, template as I } from "@solidjs/web";
|
|
7
7
|
//#region src/components/ui-menu/UIMenu.en.ts
|
|
8
|
-
var
|
|
8
|
+
var L = {
|
|
9
9
|
tag: "ui-menu",
|
|
10
|
+
icon: "bars",
|
|
11
|
+
snippet: "<ui-menu>\n <ui-item>One</ui-item>\n <ui-item>Two</ui-item>\n</ui-menu>",
|
|
12
|
+
formControl: !0,
|
|
10
13
|
topics: [
|
|
11
14
|
"menus",
|
|
12
15
|
"navigation",
|
|
@@ -42,20 +45,45 @@ var be = {
|
|
|
42
45
|
group: "appearance",
|
|
43
46
|
kind: "multiple",
|
|
44
47
|
values: [
|
|
45
|
-
...
|
|
48
|
+
...S,
|
|
46
49
|
"link",
|
|
47
|
-
"borderless"
|
|
50
|
+
"borderless",
|
|
51
|
+
"header",
|
|
52
|
+
"capsule"
|
|
48
53
|
],
|
|
49
54
|
classes: {},
|
|
50
55
|
replaces: [
|
|
51
|
-
...
|
|
56
|
+
...S.filter((e) => e !== "segmented"),
|
|
52
57
|
"link",
|
|
53
58
|
"borderless"
|
|
54
59
|
].map((e) => ({
|
|
55
60
|
from: e,
|
|
56
61
|
value: e
|
|
57
62
|
})),
|
|
58
|
-
description: "The look, several words at once: `tabular` (tabs on a rule), `pointing` (the active item points at the content; an underline with `secondary`), `secondary` (no box, rounded items), `text` (plain words), `segmented` (a segmented control: a bordered group of joined items, the selected one filled with `color`, else the primary colour; it moves `selected` to the item chosen itself; `--ui-menu-segmented-*` restyle it as a pill track with a raised thumb), `link` (every item interactive: a `<button>` with the link hover), `borderless` (no dividers between items). Old names: the bare switches `tabular`, `pointing`, `secondary`, `text`, `link`, `borderless`."
|
|
63
|
+
description: "The look, several words at once: `tabular` (tabs on a rule), `pointing` (the active item points at the content; an underline with `secondary`), `secondary` (no box, rounded items), `text` (plain words), `segmented` (a segmented control: a bordered group of joined items, the selected one filled with `color`, else the primary colour; it moves `selected` to the item chosen itself; `--ui-menu-segmented-*` restyle it as a pill track with a raised thumb), `link` (every item interactive: a `<button>` with the link hover), `borderless` (no dividers between items), `header` (alone: a whole bar across the top of a window, flat and short, 38px and 13px, over a hairline, in the theme's bar; with `segmented`: the row of a pane's bar, 13px, with no track of its own, the bar behind it being the track, and its items sharing the row's width), `capsule` (a nested menu of actions, grouped on one rounded piece of glass). Old names: the bare switches `tabular`, `pointing`, `secondary`, `text`, `link`, `borderless`."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "name",
|
|
67
|
+
group: "form",
|
|
68
|
+
kind: "string",
|
|
69
|
+
description: "A `segmented` menu's name in a form: the form reads its `value` and writes it back, as a select's (epic `debut` P31)."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "value",
|
|
73
|
+
group: "form",
|
|
74
|
+
kind: "string",
|
|
75
|
+
description: "A `segmented` menu's chosen item, by its `value` (else its text): setting it selects that item; choosing one sets it, and sends `ui-changed` with `{ value }`."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "choose",
|
|
79
|
+
group: "behaviour",
|
|
80
|
+
kind: "valueOnly",
|
|
81
|
+
values: ["one", "many"],
|
|
82
|
+
classes: {
|
|
83
|
+
one: "",
|
|
84
|
+
many: "toggles"
|
|
85
|
+
},
|
|
86
|
+
description: "A `segmented` menu's choice: `one` (the default) selects the item chosen and unselects the rest; `many` makes each item a toggle, pressed in while selected (`aria-pressed`), with no sliding thumb. One stays on: turning off the only one on turns on the next, to its right or below (round to the first)."
|
|
59
87
|
},
|
|
60
88
|
{
|
|
61
89
|
name: "position",
|
|
@@ -202,7 +230,7 @@ var be = {
|
|
|
202
230
|
group: "layout",
|
|
203
231
|
kind: "valueAndKey",
|
|
204
232
|
key: "aligned",
|
|
205
|
-
values:
|
|
233
|
+
values: s,
|
|
206
234
|
replaces: ["alignment"],
|
|
207
235
|
description: "Where the items sit: `fluid` -- they fill the bar; `left` / `center` / `right` -- packed at that end of a full-width bar (a `segmented` menu moves as a whole). `align=\"center\"` => `center aligned`. Its old name was `alignment`."
|
|
208
236
|
},
|
|
@@ -226,6 +254,24 @@ var be = {
|
|
|
226
254
|
kind: "boolean",
|
|
227
255
|
description: "Fits its items' titles to its width: every title whole while they fit; then the longest cut first, each ending in `…`; once one would be cut under `--ui-menu-title-min`, icons only (`:state(icons-only)`, each title its item's tooltip; an item with no icon shows its title's first letter); once a button would be under `--ui-menu-item-min`, every item folds into one `…` button whose menu holds them all (`:state(overflow)`). A `segmented` one becomes a dropdown instead (`:state(dropdown)`): one button showing the chosen item. Items with no words (an icon button) stay as they are. Off by default."
|
|
228
256
|
},
|
|
257
|
+
{
|
|
258
|
+
name: "ticks",
|
|
259
|
+
group: "behaviour",
|
|
260
|
+
kind: "boolean",
|
|
261
|
+
description: "A menu of things that are on or off: each item keeps a gutter before its words, and shows a tick there while `selected`, in plain text. The solid accent fill is then only for the row under the pointer or the keyboard, never for what's on. It moves nothing itself: the page says which are `selected`. Set it on a menu with one of these rows, so its words stay put whichever are on. Off by default."
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: "icon-column",
|
|
265
|
+
group: "appearance",
|
|
266
|
+
kind: "boolean",
|
|
267
|
+
description: "Each row keeps an icon box before its words, empty for a row with no icon, so every title starts at the same place, as a Mac's menus do. With `ticks`, the tick comes first, then the icon. Off by default."
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: "tabs",
|
|
271
|
+
group: "behaviour",
|
|
272
|
+
kind: "boolean",
|
|
273
|
+
description: "Its items are tabs, for a screen reader (`role=tablist`, each a `role=tab`, the chosen one `aria-selected`): one Tab stop, arrow keys between them. For a row that switches what's shown under it. Off by default."
|
|
274
|
+
},
|
|
229
275
|
{
|
|
230
276
|
name: "interactive",
|
|
231
277
|
group: "behaviour",
|
|
@@ -233,12 +279,24 @@ var be = {
|
|
|
233
279
|
description: "An application menubar (`role=menubar`): one Tab stop, arrow keys between items, every item a `menuitem`. Default: a `<nav>` landmark of links."
|
|
234
280
|
}
|
|
235
281
|
],
|
|
236
|
-
events: [
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
282
|
+
events: [
|
|
283
|
+
{
|
|
284
|
+
name: "ui-choosing",
|
|
285
|
+
detail: "{ value: string, item: Element, originalEvent?: Event }",
|
|
286
|
+
cancelable: !0,
|
|
287
|
+
description: "An interactive item (a link or button) was activated. `value` is the item's `value`, else its text. The menu doesn't move `selected` itself, except a `segmented` one (a single-choice control), which selects the item and unselects the rest: `preventDefault()` keeps the old choice."
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: "ui-changed",
|
|
291
|
+
detail: "{ value?: string, values?: string[] }",
|
|
292
|
+
description: "A `segmented` menu's choice changed: `value`, the item chosen; a `choose=\"many\"` menu's `values`, the items now on, in order (each one's `value`, else its text)."
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
name: "ui-form-value",
|
|
296
|
+
detail: "{}",
|
|
297
|
+
description: "A `segmented` menu with a `name` is drawn, so it holds a form value now: a `<ui-form>` around it binds it."
|
|
298
|
+
}
|
|
299
|
+
],
|
|
242
300
|
slots: [{
|
|
243
301
|
name: "",
|
|
244
302
|
description: "`<ui-item>`s, sub-menus (`<ui-menu position>`), and other content."
|
|
@@ -280,6 +338,10 @@ var be = {
|
|
|
280
338
|
{
|
|
281
339
|
name: "dropdown",
|
|
282
340
|
description: "`shrinkable` and `segmented`: one button showing the chosen item, a dropdown."
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: "form-value",
|
|
344
|
+
description: "A `segmented` menu with a `name`: a form reads and writes its `value`, as a select's."
|
|
283
345
|
}
|
|
284
346
|
],
|
|
285
347
|
texts: [{
|
|
@@ -292,17 +354,17 @@ var be = {
|
|
|
292
354
|
"menu",
|
|
293
355
|
"header"
|
|
294
356
|
]
|
|
295
|
-
},
|
|
357
|
+
}, ge = class TitleFit {
|
|
296
358
|
box;
|
|
297
359
|
setup;
|
|
298
360
|
constructor(e) {
|
|
299
361
|
this.box = e.box, this.setup = e;
|
|
300
362
|
}
|
|
301
|
-
answer =
|
|
363
|
+
answer = R;
|
|
302
364
|
resizes;
|
|
303
365
|
watched = /* @__PURE__ */ new Set();
|
|
304
366
|
fonts;
|
|
305
|
-
refits = new
|
|
367
|
+
refits = new u({
|
|
306
368
|
when: te,
|
|
307
369
|
run: () => this.refit()
|
|
308
370
|
});
|
|
@@ -315,8 +377,8 @@ var be = {
|
|
|
315
377
|
this.resizes && this.refits.ask();
|
|
316
378
|
}
|
|
317
379
|
stop() {
|
|
318
|
-
this.refits.cancel(), this.resizes?.disconnect(), this.resizes = void 0, this.watched.clear(), this.fonts?.abort(), this.fonts = void 0, this.answer =
|
|
319
|
-
for (let e of
|
|
380
|
+
this.refits.cancel(), this.resizes?.disconnect(), this.resizes = void 0, this.watched.clear(), this.fonts?.abort(), this.fonts = void 0, this.answer = R, this.box.style.removeProperty(V), this.box.style.removeProperty(H);
|
|
381
|
+
for (let e of Ee) this.setup.domElement.setState(e, !1);
|
|
320
382
|
}
|
|
321
383
|
refit() {
|
|
322
384
|
if (!this.resizes || !this.box.isConnected) return;
|
|
@@ -325,33 +387,36 @@ var be = {
|
|
|
325
387
|
}
|
|
326
388
|
fitNow() {
|
|
327
389
|
let { rows: e, others: t } = this.setup.children();
|
|
328
|
-
if (this.watch([...e.flatMap(({ box: e, title: t }) => [e, t]), ...t.flatMap(TitleFit.boxesOf)]), !e.length) return
|
|
390
|
+
if (this.watch([...e.flatMap(({ box: e, title: t }) => [e, t]), ...t.flatMap(TitleFit.boxesOf)]), !e.length) return R;
|
|
329
391
|
let n = this.measure(e, t);
|
|
330
|
-
if (n.fitsWhole) return
|
|
392
|
+
if (n.fitsWhole) return R;
|
|
331
393
|
let r = n.room - n.fixed.reduce((e, t) => e + t, 0);
|
|
332
|
-
|
|
394
|
+
if (this.setup.isSegmented()) return TitleFit.cap(n.titles, r) === void 0 || this.setup.scrollsFirst?.() && n.room >= n.scrollMin ? R : B;
|
|
395
|
+
let i = TitleFit.fit(n.titles, r, n.titleMin, {
|
|
333
396
|
widths: n.icons,
|
|
334
397
|
room: n.room,
|
|
335
398
|
min: n.itemMin
|
|
336
399
|
});
|
|
400
|
+
return i === B && this.setup.scrollsFirst?.() ? z : i;
|
|
337
401
|
}
|
|
338
402
|
measure(e, t) {
|
|
339
403
|
let { box: n } = this;
|
|
340
|
-
this.present(
|
|
341
|
-
let r = getComputedStyle(n), i = parseFloat(r.fontSize) ||
|
|
342
|
-
return this.setup.isSegmented() || (this.present(
|
|
404
|
+
this.present(R);
|
|
405
|
+
let r = getComputedStyle(n), i = parseFloat(r.fontSize) || Te, a = t.filter(TitleFit.isShown), o = (parseFloat(r.columnGap) || 0) * Math.max(0, e.length + a.length - 1), s = (parseFloat(r.paddingLeft) || 0) + (parseFloat(r.paddingRight) || 0), c = n.scrollWidth <= n.clientWidth && e.every(({ title: e }) => e.scrollWidth - e.getBoundingClientRect().width <= we), l = a.reduce((e, t) => e + TitleFit.widthOf(t) + TitleFit.marginsOf(t), 0), u = n.clientWidth - s - o - l, d = e.map(({ title: e }) => e.scrollWidth), f = e.map(({ box: e, title: t }) => TitleFit.outerWidthOf(e) - t.getBoundingClientRect().width), ee = TitleFit.lengthOf(r.getPropertyValue(ve), i, xe), p = TitleFit.lengthOf(r.getPropertyValue(ye), i, Se), m = TitleFit.lengthOf(r.getPropertyValue(be), i, Ce), h = [];
|
|
406
|
+
return this.setup.isSegmented() || (this.present(z), h = e.map(({ box: e }) => TitleFit.outerWidthOf(e))), this.present(this.answer), {
|
|
343
407
|
fitsWhole: c,
|
|
344
408
|
room: u,
|
|
345
409
|
titles: d,
|
|
346
410
|
fixed: f,
|
|
347
411
|
icons: h,
|
|
348
|
-
titleMin:
|
|
349
|
-
itemMin:
|
|
412
|
+
titleMin: ee,
|
|
413
|
+
itemMin: p,
|
|
414
|
+
scrollMin: m
|
|
350
415
|
};
|
|
351
416
|
}
|
|
352
417
|
present(e) {
|
|
353
418
|
let { box: t, setup: n } = this, r = n.isSegmented();
|
|
354
|
-
t.style.setProperty(
|
|
419
|
+
t.style.setProperty(V, typeof e == "number" ? _e : e), typeof e == "number" ? t.style.setProperty(H, `${e}px`) : t.style.removeProperty(H), n.domElement.setState(U, e === z), n.domElement.setState(W, e === B && !r), n.domElement.setState(G, e === B && r);
|
|
355
420
|
}
|
|
356
421
|
watch(e) {
|
|
357
422
|
let t = this.resizes;
|
|
@@ -366,7 +431,7 @@ var be = {
|
|
|
366
431
|
}
|
|
367
432
|
static fit(e, t, n, r) {
|
|
368
433
|
let i = TitleFit.cap(e, t);
|
|
369
|
-
return i === void 0 ?
|
|
434
|
+
return i === void 0 ? R : i >= n ? i : r && r.widths.reduce((e, t) => e + Math.max(t, r.min), 0) > r.room ? B : z;
|
|
370
435
|
}
|
|
371
436
|
static cap(e, t) {
|
|
372
437
|
let n = [...e].sort((e, t) => e - t), r = t;
|
|
@@ -377,10 +442,10 @@ var be = {
|
|
|
377
442
|
}
|
|
378
443
|
}
|
|
379
444
|
static lengthOf(e, t, n) {
|
|
380
|
-
let r =
|
|
445
|
+
let r = De.exec(e.trim());
|
|
381
446
|
if (!r) return n;
|
|
382
447
|
let i = parseFloat(r[1]);
|
|
383
|
-
return r[2] ===
|
|
448
|
+
return r[2] === Oe ? i * t : i;
|
|
384
449
|
}
|
|
385
450
|
static widthOf(e) {
|
|
386
451
|
let t = TitleFit.boxesOf(e);
|
|
@@ -393,7 +458,7 @@ var be = {
|
|
|
393
458
|
}
|
|
394
459
|
static marginsOf(e) {
|
|
395
460
|
let t = getComputedStyle(e);
|
|
396
|
-
if (t.display ===
|
|
461
|
+
if (t.display === K) {
|
|
397
462
|
let t = TitleFit.boxesOf(e);
|
|
398
463
|
return t.length === 1 ? TitleFit.marginsOf(t[0]) : 0;
|
|
399
464
|
}
|
|
@@ -401,69 +466,69 @@ var be = {
|
|
|
401
466
|
}
|
|
402
467
|
static boxesOf(e) {
|
|
403
468
|
let t = getComputedStyle(e);
|
|
404
|
-
return t.display ===
|
|
469
|
+
return t.display === ke ? [] : t.display === K ? (e.localName === Ae ? e.assignedElements() : [...e.shadowRoot?.children ?? e.children]).filter((e) => e.localName !== je).flatMap(TitleFit.boxesOf) : [e];
|
|
405
470
|
}
|
|
406
471
|
static isShown(e) {
|
|
407
472
|
return TitleFit.boxesOf(e).length > 0;
|
|
408
473
|
}
|
|
409
|
-
},
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
],
|
|
474
|
+
}, R = "whole", _e = "cut", z = "icons", B = "overflow", V = "--_menu-fit", H = "--_menu-title-max", ve = "--_ui-menu-title-min", ye = "--_ui-menu-item-min", be = "--ui-toolbar-scroll-min", xe = 50, Se = 34, Ce = 200, we = .5, Te = 14, U = "icons-only", W = "overflow", G = "dropdown", Ee = [
|
|
475
|
+
U,
|
|
476
|
+
W,
|
|
477
|
+
G
|
|
478
|
+
], De = /^(-?\d*\.?\d+)(px|em)?$/, Oe = "em", ke = "none", K = "contents", Ae = "slot", je = "style", Me = /* @__PURE__ */ I("<button type=button aria-haspopup=menu>"), Ne = /* @__PURE__ */ I("<span><slot>"), Pe = /* @__PURE__ */ I("<span aria-hidden=true>"), q = /* @__PURE__ */ I("<span>"), Fe = /* @__PURE__ */ I("<div role=menu popover=manual>"), Ie = /* @__PURE__ */ I("<button type=button tabindex=-1><span aria-hidden=true></span><span>"), Le = /* @__PURE__ */ I("<div><slot>"), Re = /* @__PURE__ */ I("<div role=menubar><slot>"), ze = /* @__PURE__ */ I("<nav><slot>"), Be, Ve, He, Ue, We, 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, gt, _t, vt, yt, bt, J, Y, X, Z;
|
|
414
479
|
function isSameContext(e, t) {
|
|
415
|
-
return e.domElementRole === t.domElementRole && e.role === t.role && e.interactive === t.interactive && e.current === t.current && e.shrinkable === t.shrinkable && e.iconsOnly === t.iconsOnly;
|
|
480
|
+
return e.domElementRole === t.domElementRole && e.role === t.role && e.interactive === t.interactive && e.current === t.current && e.shrinkable === t.shrinkable && e.iconsOnly === t.iconsOnly && e.pressed === t.pressed && e.ticks === t.ticks && e.iconColumn === t.iconColumn;
|
|
416
481
|
}
|
|
417
|
-
|
|
482
|
+
t(isSameContext, "isSameContext");
|
|
418
483
|
function isSameFolded(e, t) {
|
|
419
484
|
return e.length === t.length && e.every((e, n) => {
|
|
420
485
|
let r = t[n];
|
|
421
486
|
return Object.keys(e).every((t) => e[t] === r[t]);
|
|
422
487
|
});
|
|
423
488
|
}
|
|
424
|
-
|
|
425
|
-
var
|
|
489
|
+
t(isSameFolded, "isSameFolded");
|
|
490
|
+
var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")], _t = [_("vertical")], gt = [v({ equals: isSameContext })], ht = [v({ equals: isSameContext })], mt = [re("click")], pt = [_("form-value")], ft = [b("isAFormValue", "isReady", { defer: !0 })], dt = [b("isAFormValue", "valueText")], ut = [b("valueText", "isReady")], lt = [x], ct = [x], st = [b("hasThumb", "interactive")], ot = [se({
|
|
426
491
|
attributes: !0,
|
|
427
492
|
subtree: !0,
|
|
428
493
|
childList: !0,
|
|
429
494
|
characterData: !0,
|
|
430
495
|
attributeFilter: [
|
|
431
|
-
|
|
432
|
-
|
|
496
|
+
h,
|
|
497
|
+
y,
|
|
433
498
|
"hidden"
|
|
434
499
|
]
|
|
435
|
-
})],
|
|
500
|
+
})], at = [x], it = [oe], rt = [_("icons-only")], nt = [_("overflow")], tt = [_("dropdown")], et = [b("canFit", "interactive", "appearance")], $e = [x], Qe = [x], Ze = [oe({ equals: isSameFolded })], Xe = [x], Ye = [ne], Je = [b("isOverflowOpen", "isConnected")], qe = [x], Ke = [x], Ge = [x], We = [x], Ue = [x], He = [_("interactive")], Ve = [b("isRoving", "orientation")], Be = [x], J) {
|
|
436
501
|
constructor() {
|
|
437
|
-
super(...arguments),
|
|
502
|
+
super(...arguments), p(Y, 5, this), r(this, "context", new c({
|
|
438
503
|
domElement: this.domElement,
|
|
439
504
|
noun: this.vocabulary.noun,
|
|
440
|
-
barrier: /* @__PURE__ */
|
|
441
|
-
})),
|
|
505
|
+
barrier: /* @__PURE__ */ t((e) => this.isSegmented || c.isBarrier(e), "barrier")
|
|
506
|
+
})), r(this, "itemsThatAsked", /* @__PURE__ */ new WeakSet()), r(this, "startingValue", this.attributes.value ?? void 0), r(this, "box"), r(this, "thumb"), m(this, X, p(Y, 8, this, Ot)), p(Y, 11, this), r(this, "titleFit"), m(this, Z, p(Y, 12, this, [])), p(Y, 15, this), r(this, "overflowMenu", new l({
|
|
442
507
|
component: this,
|
|
443
508
|
restoreFocus: !1,
|
|
444
|
-
onDismiss: /* @__PURE__ */
|
|
445
|
-
})),
|
|
509
|
+
onDismiss: /* @__PURE__ */ t((e) => this.closeOverflow(e === "escape"), "onDismiss")
|
|
510
|
+
})), r(this, "overflowButton"), r(this, "overflowPanel"), r(this, "moreGlyph", new i({
|
|
446
511
|
owner: this,
|
|
447
|
-
name: /* @__PURE__ */
|
|
448
|
-
})),
|
|
512
|
+
name: /* @__PURE__ */ t(() => this.isShrinking ? jt : void 0, "name")
|
|
513
|
+
})), r(this, "caretGlyph", new i({
|
|
449
514
|
owner: this,
|
|
450
|
-
name: /* @__PURE__ */
|
|
451
|
-
})),
|
|
515
|
+
name: /* @__PURE__ */ t(() => this.isShrinking && this.isSegmented ? Mt : void 0, "name")
|
|
516
|
+
})), r(this, "chosenGlyph", new i({
|
|
452
517
|
owner: this,
|
|
453
|
-
name: /* @__PURE__ */
|
|
454
|
-
})),
|
|
518
|
+
name: /* @__PURE__ */ t(() => this.isShrinking && this.isSegmented ? this.chosen?.icon : void 0, "name")
|
|
519
|
+
})), r(this, "onOverflowButtonKey", p(Y, 24, this, /* @__PURE__ */ t((e) => {
|
|
455
520
|
e.key === n.arrowDown && (e.preventDefault(), this.openOverflow());
|
|
456
|
-
}, "onOverflowButtonKey"))),
|
|
521
|
+
}, "onOverflowButtonKey"))), p(Y, 27, this), r(this, "onOverflowMenuKey", p(Y, 28, this, /* @__PURE__ */ t((e) => {
|
|
457
522
|
let t = e.currentTarget;
|
|
458
|
-
|
|
523
|
+
f.focus.arrowKey(e, {
|
|
459
524
|
container: t,
|
|
460
|
-
items:
|
|
525
|
+
items: Ut,
|
|
461
526
|
orientation: "vertical",
|
|
462
527
|
tabindex: "left alone"
|
|
463
528
|
}) || (e.key === n.escape ? (e.preventDefault(), this.closeOverflow(!0)) : e.key === n.tab && this.closeOverflow(!0));
|
|
464
|
-
}, "onOverflowMenuKey"))),
|
|
529
|
+
}, "onOverflowMenuKey"))), p(Y, 31, this), r(this, "rovingTabindex"), r(this, "bar"), r(this, "rovingRefresh", new u({
|
|
465
530
|
when: g,
|
|
466
|
-
run: /* @__PURE__ */
|
|
531
|
+
run: /* @__PURE__ */ t(() => this.refreshRoving(), "run")
|
|
467
532
|
}));
|
|
468
533
|
}
|
|
469
534
|
onReadyToRove(e) {
|
|
@@ -473,10 +538,13 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
473
538
|
return String(this.appearance ?? "").split(" ").includes(e);
|
|
474
539
|
}
|
|
475
540
|
get isSegmented() {
|
|
476
|
-
return this.hasLook(
|
|
541
|
+
return this.hasLook(wt);
|
|
542
|
+
}
|
|
543
|
+
get choosesMany() {
|
|
544
|
+
return this.isSegmented && this.choose === Tt;
|
|
477
545
|
}
|
|
478
546
|
get isVertical() {
|
|
479
|
-
return this.direction ===
|
|
547
|
+
return this.direction === Dt;
|
|
480
548
|
}
|
|
481
549
|
get parentMenu() {
|
|
482
550
|
return this.context.ownerComponent();
|
|
@@ -485,15 +553,22 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
485
553
|
return this.parentMenu?.topMenu ?? this;
|
|
486
554
|
}
|
|
487
555
|
get subMenuClasses() {
|
|
488
|
-
return [
|
|
556
|
+
return [
|
|
557
|
+
this.position,
|
|
558
|
+
this.hasLook("capsule") && "capsule",
|
|
559
|
+
this.vocabulary.noun
|
|
560
|
+
].filter(Boolean).join(" ");
|
|
489
561
|
}
|
|
490
562
|
get ownItemContext() {
|
|
491
|
-
let e = this.interactive;
|
|
563
|
+
let e = this.interactive, t = this.isTabs;
|
|
492
564
|
return {
|
|
493
|
-
domElementRole: e ? "none" : void 0,
|
|
494
|
-
role: e ? "menuitem" : void 0,
|
|
495
|
-
interactive: e || this.hasLook(
|
|
565
|
+
domElementRole: e || t ? "none" : void 0,
|
|
566
|
+
role: t ? "tab" : e ? this.ticks ? "menuitemcheckbox" : "menuitem" : void 0,
|
|
567
|
+
interactive: e || this.hasLook(Et) || this.pagination || this.choosesMany || this.isAFormValue,
|
|
496
568
|
current: "page",
|
|
569
|
+
pressed: (this.choosesMany || this.ticks) && !e,
|
|
570
|
+
ticks: this.ticks,
|
|
571
|
+
iconColumn: this.iconColumn,
|
|
497
572
|
shrinkable: this.isShrinking,
|
|
498
573
|
iconsOnly: this.isIconsOnly
|
|
499
574
|
};
|
|
@@ -506,50 +581,97 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
506
581
|
};
|
|
507
582
|
}
|
|
508
583
|
itemContext(e) {
|
|
509
|
-
let t =
|
|
584
|
+
let t = pe(() => this.topMenu);
|
|
510
585
|
return t.itemsThatAsked.add(e), t.queueRefresh(), e.parentElement === t.domElement ? t.ownItemContext : t.nestedItemContext;
|
|
511
586
|
}
|
|
512
587
|
onClick(e) {
|
|
513
588
|
if (this.parentMenu) return;
|
|
514
589
|
let t = _UIMenu.activatedItem(e);
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
this.send("ui-choosing", {
|
|
518
|
-
value: n,
|
|
590
|
+
t && !t.matches(":state(disabled)") && this.send("ui-choosing", {
|
|
591
|
+
value: _UIMenu.valueOf(t),
|
|
519
592
|
item: t,
|
|
520
593
|
originalEvent: e
|
|
521
|
-
}) && this.isSegmented && this.
|
|
594
|
+
}) && this.isSegmented && (this.choosesMany ? this.toggle(t) : (this.chooseOnly(t), this.isAFormValue && this.chooseValue(_UIMenu.valueOf(t))));
|
|
595
|
+
}
|
|
596
|
+
get isAFormValue() {
|
|
597
|
+
return this.isSegmented && !this.choosesMany && !!this.attributes.name;
|
|
598
|
+
}
|
|
599
|
+
onFormValueChanged(e, t) {
|
|
600
|
+
e && t && g(() => this.send("ui-form-value", {}));
|
|
601
|
+
}
|
|
602
|
+
onSubmissionChanged(e, t) {
|
|
603
|
+
this.domElement.internals.setFormValue(e && t != null ? t : null);
|
|
604
|
+
}
|
|
605
|
+
onFormReset() {
|
|
606
|
+
this.isAFormValue && this.startingValue !== void 0 && (this.value = this.startingValue);
|
|
607
|
+
}
|
|
608
|
+
chooseValue(e) {
|
|
609
|
+
this.value = e, this.send("ui-changed", { value: e });
|
|
610
|
+
}
|
|
611
|
+
onValueChanged(e, t) {
|
|
612
|
+
t && e != null && this.isSegmented && !this.choosesMany && g(() => this.showValue());
|
|
522
613
|
}
|
|
523
|
-
|
|
524
|
-
|
|
614
|
+
showValue() {
|
|
615
|
+
let e = this.valueText;
|
|
616
|
+
if (e == null) return;
|
|
617
|
+
let t = this.ownedItems().find((t) => _UIMenu.valueOf(t) === e);
|
|
618
|
+
t && !t.selected && this.chooseOnly(t);
|
|
619
|
+
}
|
|
620
|
+
get valueText() {
|
|
621
|
+
return this.attributes.value ?? void 0;
|
|
622
|
+
}
|
|
623
|
+
static valueOf(e) {
|
|
624
|
+
return e.component?.value ?? e.textContent?.trim() ?? "";
|
|
625
|
+
}
|
|
626
|
+
chooseOnly(e) {
|
|
627
|
+
for (let t of this.ownedItems()) t !== e && t.removeAttribute(y), t.selected = t === e;
|
|
628
|
+
}
|
|
629
|
+
toggle(e) {
|
|
630
|
+
let n = this.ownedItems().filter((e) => !e.hidden && !e.matches(":state(disabled)")), r = /* @__PURE__ */ t((e) => !!e.selected, "isOn");
|
|
631
|
+
if (!r(e)) e.selected = !0;
|
|
632
|
+
else {
|
|
633
|
+
if (!n.some((t) => t !== e && r(t))) {
|
|
634
|
+
let t = n.indexOf(e), r = [...n.slice(t + 1), ...n.slice(0, Math.max(0, t))][0];
|
|
635
|
+
if (!r) return;
|
|
636
|
+
r.selected = !0;
|
|
637
|
+
}
|
|
638
|
+
e.removeAttribute(y), e.selected = !1;
|
|
639
|
+
}
|
|
640
|
+
this.send("ui-changed", { values: this.ownedItems().filter(r).map((e) => _UIMenu.valueOf(e)) });
|
|
641
|
+
}
|
|
642
|
+
ownedItems() {
|
|
643
|
+
return [...this.domElement.querySelectorAll("*")].filter((e) => this.itemsThatAsked.has(e));
|
|
525
644
|
}
|
|
526
645
|
get hasThumb() {
|
|
527
|
-
return !this.parentMenu && this.isSegmented && this.isReady;
|
|
646
|
+
return !this.parentMenu && this.isSegmented && !this.choosesMany && this.isReady;
|
|
528
647
|
}
|
|
529
648
|
onThumbChanged(e) {
|
|
530
|
-
let
|
|
531
|
-
if (!e || !
|
|
532
|
-
let
|
|
533
|
-
track:
|
|
534
|
-
chosenBox: /* @__PURE__ */
|
|
649
|
+
let n = this.box;
|
|
650
|
+
if (!e || !n) return;
|
|
651
|
+
let r = new le({
|
|
652
|
+
track: n,
|
|
653
|
+
chosenBox: /* @__PURE__ */ t(() => this.chosenBox(), "chosenBox")
|
|
535
654
|
});
|
|
536
|
-
this.thumb =
|
|
537
|
-
let
|
|
655
|
+
this.thumb = r;
|
|
656
|
+
let i = r.start();
|
|
538
657
|
return () => {
|
|
539
|
-
|
|
658
|
+
i(), this.thumb = void 0;
|
|
540
659
|
};
|
|
541
660
|
}
|
|
542
661
|
onChoiceChanged() {
|
|
543
662
|
this.thumb?.update(), this.titleFit?.update(), this.readFolded();
|
|
544
663
|
}
|
|
545
664
|
chosenBox() {
|
|
546
|
-
for (let e of this.domElement.querySelectorAll("*")) if (this.itemsThatAsked.has(e) && !e.hidden && e.matches(
|
|
665
|
+
for (let e of this.domElement.querySelectorAll("*")) if (this.itemsThatAsked.has(e) && !e.hidden && e.matches(St)) return e.shadowRoot?.querySelector(Ct) ?? void 0;
|
|
666
|
+
}
|
|
667
|
+
get scrollsFirst() {
|
|
668
|
+
return !1;
|
|
547
669
|
}
|
|
548
670
|
get isShrinking() {
|
|
549
671
|
return this.shrinkable && !this.parentMenu && !this.isVertical;
|
|
550
672
|
}
|
|
551
673
|
get isIconsOnly() {
|
|
552
|
-
return this.isShrinking && this.fitAnswer ===
|
|
674
|
+
return this.isShrinking && this.fitAnswer === kt;
|
|
553
675
|
}
|
|
554
676
|
get isFolded() {
|
|
555
677
|
return this.isShrinking && this.fitAnswer === $ && !this.isSegmented;
|
|
@@ -561,19 +683,20 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
561
683
|
return this.isShrinking && this.isReady;
|
|
562
684
|
}
|
|
563
685
|
onFitChanged(e) {
|
|
564
|
-
let
|
|
565
|
-
if (!e || !
|
|
566
|
-
let
|
|
567
|
-
box:
|
|
686
|
+
let n = this.box;
|
|
687
|
+
if (!e || !n) return;
|
|
688
|
+
let r = new ge({
|
|
689
|
+
box: n,
|
|
568
690
|
domElement: this.domElement,
|
|
569
|
-
children: /* @__PURE__ */
|
|
570
|
-
isSegmented: /* @__PURE__ */
|
|
571
|
-
|
|
691
|
+
children: /* @__PURE__ */ t(() => this.fitChildren(), "children"),
|
|
692
|
+
isSegmented: /* @__PURE__ */ t(() => this.isSegmented, "isSegmented"),
|
|
693
|
+
scrollsFirst: /* @__PURE__ */ t(() => this.scrollsFirst, "scrollsFirst"),
|
|
694
|
+
onAnswer: /* @__PURE__ */ t((e) => this.onFitAnswer(e), "onAnswer")
|
|
572
695
|
});
|
|
573
|
-
this.titleFit =
|
|
574
|
-
let
|
|
696
|
+
this.titleFit = r;
|
|
697
|
+
let i = r.start();
|
|
575
698
|
return () => {
|
|
576
|
-
|
|
699
|
+
i(), this.titleFit = void 0, this.fitAnswer = Ot;
|
|
577
700
|
};
|
|
578
701
|
}
|
|
579
702
|
onFitAnswer(e) {
|
|
@@ -594,7 +717,7 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
594
717
|
};
|
|
595
718
|
}
|
|
596
719
|
rowElements() {
|
|
597
|
-
return this.box?.querySelector(
|
|
720
|
+
return this.box?.querySelector(At)?.assignedElements() ?? [];
|
|
598
721
|
}
|
|
599
722
|
fittedItem(e) {
|
|
600
723
|
if (!this.itemsThatAsked.has(e) || e.hidden) return;
|
|
@@ -633,7 +756,7 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
633
756
|
return this.overflowMenu.isOpen;
|
|
634
757
|
}
|
|
635
758
|
get overflowMenuId() {
|
|
636
|
-
return
|
|
759
|
+
return f.ids.next(this.vocabulary.tag);
|
|
637
760
|
}
|
|
638
761
|
get moreText() {
|
|
639
762
|
return this.translationForKey("more");
|
|
@@ -649,20 +772,20 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
649
772
|
this.overflowMenu.close(), e && this.overflowButton?.focus();
|
|
650
773
|
}
|
|
651
774
|
focusRow(e) {
|
|
652
|
-
this.overflowPanel?.querySelectorAll(
|
|
775
|
+
this.overflowPanel?.querySelectorAll(Ut)[e]?.focus();
|
|
653
776
|
}
|
|
654
777
|
pickFolded(e) {
|
|
655
778
|
e.isDisabled || (this.closeOverflow(!0), e.element.component?.focusTarget?.click());
|
|
656
779
|
}
|
|
657
780
|
overflowButtonBox() {
|
|
658
781
|
let e = this;
|
|
659
|
-
return w
|
|
782
|
+
return E(w, {
|
|
660
783
|
get when() {
|
|
661
|
-
return e.isShrinking && !
|
|
784
|
+
return e.isShrinking && !A;
|
|
662
785
|
},
|
|
663
786
|
get children() {
|
|
664
|
-
var t =
|
|
665
|
-
return
|
|
787
|
+
var t = Me();
|
|
788
|
+
return me(t, "keydown", e.onOverflowButtonKey, !0), t._$$click = () => e.isOverflowOpen ? e.closeOverflow() : e.openOverflow(), N(() => (t) => e.overflowButton = t, t), k(t, E(w, {
|
|
666
789
|
get when() {
|
|
667
790
|
return e.isSegmented;
|
|
668
791
|
},
|
|
@@ -672,17 +795,17 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
672
795
|
get children() {
|
|
673
796
|
return e.dropdownFace();
|
|
674
797
|
}
|
|
675
|
-
})),
|
|
676
|
-
e:
|
|
798
|
+
})), D(() => ({
|
|
799
|
+
e: M(Nt),
|
|
677
800
|
t: e.partForName("overflow"),
|
|
678
|
-
a:
|
|
801
|
+
a: M(e.overflowMenu.anchorStyle),
|
|
679
802
|
o: e.interactive ? "menuitem" : void 0,
|
|
680
803
|
i: e.overflowMenu.ariaExpanded,
|
|
681
804
|
n: e.overflowMenuId,
|
|
682
805
|
s: e.isSegmented ? void 0 : e.moreText,
|
|
683
806
|
h: e.isSegmented ? e.chosen?.text : e.moreText
|
|
684
807
|
}), ({ e, t: n, a: r, o: i, i: a, n: o, s, h: c }, l) => {
|
|
685
|
-
|
|
808
|
+
T(t, e, l?.e), n !== l?.t && P(t, "part", n), F(t, r, l?.a), i !== l?.o && P(t, "role", i), a !== l?.i && P(t, "aria-expanded", a), o !== l?.n && P(t, "aria-controls", o), s !== l?.s && P(t, "aria-label", s), c !== l?.h && P(t, "title", c);
|
|
686
809
|
}), t;
|
|
687
810
|
}
|
|
688
811
|
});
|
|
@@ -690,21 +813,21 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
690
813
|
moreFace() {
|
|
691
814
|
let t = this;
|
|
692
815
|
return [(() => {
|
|
693
|
-
var n =
|
|
694
|
-
return r._$owner =
|
|
695
|
-
e:
|
|
816
|
+
var n = Ne(), r = n.firstChild;
|
|
817
|
+
return r._$owner = O(), k(r, () => t.moreGlyph.svg), D(() => ({
|
|
818
|
+
e: M(e),
|
|
696
819
|
t: t.slotForName("overflow")
|
|
697
820
|
}), ({ e, t }, i) => {
|
|
698
|
-
|
|
821
|
+
T(n, e, i?.e), t !== i?.t && P(r, "name", t);
|
|
699
822
|
}), n;
|
|
700
|
-
})(), w
|
|
823
|
+
})(), E(w, {
|
|
701
824
|
get when() {
|
|
702
825
|
return t.hasFoldedBadge;
|
|
703
826
|
},
|
|
704
827
|
get children() {
|
|
705
|
-
var e =
|
|
706
|
-
return
|
|
707
|
-
|
|
828
|
+
var e = Pe();
|
|
829
|
+
return D(() => M(Bt), (t, n) => {
|
|
830
|
+
T(e, t, n);
|
|
708
831
|
}), e;
|
|
709
832
|
}
|
|
710
833
|
})];
|
|
@@ -712,95 +835,101 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
712
835
|
dropdownFace() {
|
|
713
836
|
let t = this;
|
|
714
837
|
return [
|
|
715
|
-
w
|
|
838
|
+
E(w, {
|
|
716
839
|
get when() {
|
|
717
840
|
return t.chosenGlyph.svg;
|
|
718
841
|
},
|
|
719
842
|
get children() {
|
|
720
|
-
var n =
|
|
721
|
-
return
|
|
722
|
-
|
|
843
|
+
var n = q();
|
|
844
|
+
return k(n, () => t.chosenGlyph.svg), D(() => M(e), (e, t) => {
|
|
845
|
+
T(n, e, t);
|
|
723
846
|
}), n;
|
|
724
847
|
}
|
|
725
848
|
}),
|
|
726
849
|
(() => {
|
|
727
|
-
var e =
|
|
728
|
-
return
|
|
729
|
-
|
|
850
|
+
var e = q();
|
|
851
|
+
return k(e, () => t.chosen?.text), D(() => M(It), (t, n) => {
|
|
852
|
+
T(e, t, n);
|
|
730
853
|
}), e;
|
|
731
854
|
})(),
|
|
732
855
|
(() => {
|
|
733
|
-
var e =
|
|
734
|
-
return
|
|
735
|
-
|
|
856
|
+
var e = q();
|
|
857
|
+
return k(e, () => t.caretGlyph.svg), D(() => M(zt), (t, n) => {
|
|
858
|
+
T(e, t, n);
|
|
736
859
|
}), e;
|
|
737
860
|
})()
|
|
738
861
|
];
|
|
739
862
|
}
|
|
740
863
|
overflowMenuBox() {
|
|
741
864
|
let e = this;
|
|
742
|
-
return w
|
|
865
|
+
return E(w, {
|
|
743
866
|
get when() {
|
|
744
|
-
return e.isShrinking && !
|
|
867
|
+
return e.isShrinking && !A;
|
|
745
868
|
},
|
|
746
869
|
get children() {
|
|
747
|
-
var t =
|
|
748
|
-
return
|
|
870
|
+
var t = Fe();
|
|
871
|
+
return me(t, "keydown", e.onOverflowMenuKey, !0), N(() => (t) => e.overflowPanel = t, t), k(t, E(de, {
|
|
749
872
|
get each() {
|
|
750
873
|
return e.folded;
|
|
751
874
|
},
|
|
752
875
|
children: (t) => e.foldedRow(t)
|
|
753
|
-
})),
|
|
876
|
+
})), D(() => ({
|
|
754
877
|
e: e.overflowMenuId,
|
|
755
|
-
t:
|
|
878
|
+
t: M(Pt),
|
|
756
879
|
a: e.partForName("overflow-menu"),
|
|
757
|
-
o:
|
|
880
|
+
o: M(e.overflowMenu.panelStyle),
|
|
758
881
|
i: e.moreText
|
|
759
882
|
}), ({ e, t: n, a: r, o: i, i: a }, o) => {
|
|
760
|
-
e !== o?.e &&
|
|
883
|
+
e !== o?.e && P(t, "id", e), T(t, n, o?.t), r !== o?.a && P(t, "part", r), F(t, i, o?.o), a !== o?.i && P(t, "aria-label", a);
|
|
761
884
|
}), t;
|
|
762
885
|
}
|
|
763
886
|
});
|
|
764
887
|
}
|
|
765
|
-
foldedRow(
|
|
766
|
-
let
|
|
888
|
+
foldedRow(n) {
|
|
889
|
+
let r = n.element.component, a = /* @__PURE__ */ t((e) => (r?.slotted?.(e) ?? []).map((e) => {
|
|
767
890
|
let t = e.cloneNode(!0);
|
|
768
891
|
return t.removeAttribute("slot"), t;
|
|
769
|
-
}), "copies"),
|
|
892
|
+
}), "copies"), o = a("icon"), s = a("badge"), c = n.icon ? new i({
|
|
770
893
|
owner: this,
|
|
771
|
-
name: /* @__PURE__ */
|
|
772
|
-
}) : void 0,
|
|
773
|
-
var
|
|
774
|
-
return
|
|
775
|
-
var e =
|
|
776
|
-
return
|
|
777
|
-
|
|
894
|
+
name: /* @__PURE__ */ t(() => n.icon, "name")
|
|
895
|
+
}) : void 0, l = this;
|
|
896
|
+
var u = Ie(), d = u.firstChild, f = d.nextSibling;
|
|
897
|
+
return u._$$click = () => l.pickFolded(n), k(d, () => c ? c.svg : o.length ? o : (() => {
|
|
898
|
+
var e = q();
|
|
899
|
+
return k(e, () => n.letter), D(() => M(Rt), (t, n) => {
|
|
900
|
+
T(e, t, n);
|
|
778
901
|
}), e;
|
|
779
|
-
})()),
|
|
780
|
-
var e =
|
|
902
|
+
})()), k(f, () => n.text), k(u, (() => {
|
|
903
|
+
var e = j(() => !!s.length);
|
|
781
904
|
return () => e() ? (() => {
|
|
782
|
-
var e =
|
|
783
|
-
return
|
|
784
|
-
|
|
905
|
+
var e = q();
|
|
906
|
+
return k(e, s), D(() => M(Lt), (t, n) => {
|
|
907
|
+
T(e, t, n);
|
|
785
908
|
}), e;
|
|
786
909
|
})() : void 0;
|
|
787
|
-
})(), null),
|
|
788
|
-
e:
|
|
789
|
-
[
|
|
790
|
-
[
|
|
910
|
+
})(), null), D(() => ({
|
|
911
|
+
e: M([Ft, {
|
|
912
|
+
[Vt]: n.isSelected,
|
|
913
|
+
[Ht]: n.isDisabled
|
|
791
914
|
}]),
|
|
792
|
-
t:
|
|
793
|
-
a:
|
|
794
|
-
o:
|
|
795
|
-
i:
|
|
796
|
-
n:
|
|
915
|
+
t: n.isSelected ? "menuitemradio" : "menuitem",
|
|
916
|
+
a: n.isSelected ? "true" : void 0,
|
|
917
|
+
o: n.isDisabled ? "true" : void 0,
|
|
918
|
+
i: M(e),
|
|
919
|
+
n: M(It)
|
|
797
920
|
}), ({ e, t, a: n, o: r, i, n: a }, o) => {
|
|
798
|
-
|
|
799
|
-
}),
|
|
921
|
+
T(u, e, o?.e), t !== o?.t && P(u, "role", t), n !== o?.a && P(u, "aria-checked", n), r !== o?.o && P(u, "aria-disabled", r), T(d, i, o?.i), T(f, a, o?.n);
|
|
922
|
+
}), u;
|
|
800
923
|
}
|
|
801
924
|
get isInteractiveMenubar() {
|
|
802
925
|
return !this.parentMenu && this.interactive;
|
|
803
926
|
}
|
|
927
|
+
get isTabs() {
|
|
928
|
+
return !this.parentMenu && !!this.tabs && !this.interactive;
|
|
929
|
+
}
|
|
930
|
+
get isRoving() {
|
|
931
|
+
return this.isMenubar || this.isTabs && this.isReady;
|
|
932
|
+
}
|
|
804
933
|
get isMenubar() {
|
|
805
934
|
return !this.parentMenu && this.interactive && this.isReady;
|
|
806
935
|
}
|
|
@@ -812,14 +941,14 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
812
941
|
}
|
|
813
942
|
startRoving(e) {
|
|
814
943
|
this.stopRoving();
|
|
815
|
-
let
|
|
816
|
-
if (!
|
|
817
|
-
let
|
|
818
|
-
this.rovingTabindex =
|
|
819
|
-
container:
|
|
820
|
-
items: /* @__PURE__ */
|
|
944
|
+
let n = this.bar;
|
|
945
|
+
if (!n || !this.domElement.isConnected) return;
|
|
946
|
+
let r = this.menuItems().findIndex((e) => e.getRootNode().host?.matches(St));
|
|
947
|
+
this.rovingTabindex = f.focus.roving({
|
|
948
|
+
container: n,
|
|
949
|
+
items: /* @__PURE__ */ t(() => this.menuItems(), "items"),
|
|
821
950
|
orientation: e,
|
|
822
|
-
activeIndex: Math.max(0,
|
|
951
|
+
activeIndex: Math.max(0, r)
|
|
823
952
|
});
|
|
824
953
|
}
|
|
825
954
|
stopRoving() {
|
|
@@ -832,7 +961,7 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
832
961
|
this.rovingRefresh.ask();
|
|
833
962
|
}
|
|
834
963
|
refreshRoving() {
|
|
835
|
-
this.titleFit?.update(), this.rovingTabindex && (this.domElement.matches(":focus-within") ? this.rovingTabindex.refresh() : this.startRoving(this.orientation));
|
|
964
|
+
this.titleFit?.update(), this.isAFormValue && this.showValue(), this.rovingTabindex && (this.domElement.matches(":focus-within") ? this.rovingTabindex.refresh() : this.startRoving(this.orientation));
|
|
836
965
|
}
|
|
837
966
|
menuItems() {
|
|
838
967
|
let e = [];
|
|
@@ -845,57 +974,60 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
845
974
|
}
|
|
846
975
|
render() {
|
|
847
976
|
let e = this;
|
|
848
|
-
return [
|
|
977
|
+
return [j(() => e.menuBox()), j(() => e.overflowMenuBox())];
|
|
849
978
|
}
|
|
850
979
|
get landmarkLabel() {
|
|
851
980
|
return this.attributes["aria-label"] ?? this.sharedLabel ?? void 0;
|
|
852
981
|
}
|
|
853
982
|
menuBox() {
|
|
854
983
|
let e = this;
|
|
855
|
-
return
|
|
984
|
+
return E(fe, { get children() {
|
|
856
985
|
return [
|
|
857
|
-
|
|
986
|
+
E(C, {
|
|
858
987
|
get when() {
|
|
859
988
|
return e.parentMenu;
|
|
860
989
|
},
|
|
861
990
|
get children() {
|
|
862
|
-
var t =
|
|
863
|
-
return n._$owner =
|
|
864
|
-
e:
|
|
991
|
+
var t = Le(), n = t.firstChild;
|
|
992
|
+
return n._$owner = O(), D(() => ({
|
|
993
|
+
e: M(e.subMenuClasses),
|
|
865
994
|
t: e.partForName("menu")
|
|
866
995
|
}), ({ e, t: n }, r) => {
|
|
867
|
-
|
|
996
|
+
T(t, e, r?.e), n !== r?.t && P(t, "part", n);
|
|
868
997
|
}), t;
|
|
869
998
|
}
|
|
870
999
|
}),
|
|
871
|
-
|
|
1000
|
+
E(C, {
|
|
872
1001
|
get when() {
|
|
873
1002
|
return e.interactive;
|
|
874
1003
|
},
|
|
875
1004
|
get children() {
|
|
876
|
-
var t =
|
|
877
|
-
return
|
|
1005
|
+
var t = Re(), n = t.firstChild;
|
|
1006
|
+
return N(() => (t) => {
|
|
878
1007
|
e.bar = t, e.box = t;
|
|
879
|
-
}, t),
|
|
880
|
-
e:
|
|
1008
|
+
}, t), k(t, () => e.overflowButtonBox(), n), n._$owner = O(), D(() => ({
|
|
1009
|
+
e: M(e.rootClass),
|
|
881
1010
|
t: e.partForName("menu"),
|
|
882
1011
|
a: e.isVertical ? "vertical" : void 0,
|
|
883
1012
|
o: e.landmarkLabel
|
|
884
1013
|
}), ({ e, t: n, a: r, o: i }, a) => {
|
|
885
|
-
|
|
1014
|
+
T(t, e, a?.e), n !== a?.t && P(t, "part", n), r !== a?.a && P(t, "aria-orientation", r), i !== a?.o && P(t, "aria-label", i);
|
|
886
1015
|
}), t;
|
|
887
1016
|
}
|
|
888
1017
|
}),
|
|
889
|
-
|
|
1018
|
+
E(C, {
|
|
890
1019
|
when: !0,
|
|
891
1020
|
get children() {
|
|
892
|
-
var t =
|
|
893
|
-
return
|
|
894
|
-
e
|
|
1021
|
+
var t = ze(), n = t.firstChild;
|
|
1022
|
+
return N(() => (t) => {
|
|
1023
|
+
e.bar = t, e.box = t;
|
|
1024
|
+
}, t), k(t, () => e.overflowButtonBox(), n), n._$owner = O(), D(() => ({
|
|
1025
|
+
e: M(e.rootClass),
|
|
895
1026
|
t: e.partForName("menu"),
|
|
896
|
-
a: e.
|
|
897
|
-
|
|
898
|
-
|
|
1027
|
+
a: e.isTabs ? "tablist" : void 0,
|
|
1028
|
+
o: e.landmarkLabel
|
|
1029
|
+
}), ({ e, t: n, a: r, o: i }, a) => {
|
|
1030
|
+
T(t, e, a?.e), n !== a?.t && P(t, "part", n), r !== a?.a && P(t, "role", r), i !== a?.o && P(t, "aria-label", i);
|
|
899
1031
|
}), t;
|
|
900
1032
|
}
|
|
901
1033
|
})
|
|
@@ -909,16 +1041,17 @@ var Z = class _UIMenu extends (q = m, pt = [oe], ft = [se], dt = [v("isReady")],
|
|
|
909
1041
|
}
|
|
910
1042
|
}
|
|
911
1043
|
};
|
|
912
|
-
|
|
913
|
-
styleSheets: { menu:
|
|
1044
|
+
Y = ce(J), X = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), a(Y, 1, "onReadyToRove", vt, Q), a(Y, 2, "isVertical", _t, Q), a(Y, 2, "ownItemContext", gt, Q), a(Y, 2, "nestedItemContext", ht, Q), a(Y, 1, "onClick", mt, Q), a(Y, 2, "isAFormValue", pt, Q), a(Y, 1, "onFormValueChanged", ft, Q), a(Y, 1, "onSubmissionChanged", dt, Q), a(Y, 1, "onValueChanged", ut, Q), a(Y, 1, "showValue", lt, Q), a(Y, 1, "ownedItems", ct, Q), a(Y, 1, "onThumbChanged", st, Q), a(Y, 1, "onChoiceChanged", ot, Q), a(Y, 1, "chosenBox", at, Q), a(Y, 4, "fitAnswer", it, Q, X), a(Y, 2, "isIconsOnly", rt, Q), a(Y, 2, "isFolded", nt, Q), a(Y, 2, "isDropdown", tt, Q), a(Y, 1, "onFitChanged", et, Q), a(Y, 1, "fitChildren", $e, Q), a(Y, 1, "rowElements", Qe, Q), a(Y, 4, "folded", Ze, Q, Z), a(Y, 1, "readFolded", Xe, Q), a(Y, 2, "overflowMenuId", Ye, Q), a(Y, 1, "onOverflowOpenChanged", Je, Q), a(Y, 1, "openOverflow", qe, Q), a(Y, 1, "closeOverflow", Ke, Q), a(Y, 1, "pickFolded", Ue, Q), a(Y, 2, "isInteractiveMenubar", He, Q), a(Y, 1, "onMenubarChanged", Ve, Q), a(Y, 1, "menuItems", Be, Q), a(Y, 13, "vocabulary", bt, Q), a(Y, 13, "elementSetup", yt, Q), a(Y, 5, "onOverflowButtonKey", Ge, Q), a(Y, 5, "onOverflowMenuKey", We, Q), d(Y, Q), t(Q, "UIMenu"), r(Q, "vocabulary", p(Y, 16, Q, L)), p(Y, 19, Q), r(Q, "elementSetup", p(Y, 20, Q, {
|
|
1045
|
+
styleSheets: { menu: ue },
|
|
914
1046
|
isAPart: !0,
|
|
1047
|
+
isAFormControl: !0,
|
|
915
1048
|
delegatesFocus: !1
|
|
916
|
-
})),
|
|
917
|
-
var
|
|
1049
|
+
})), p(Y, 23, Q);
|
|
1050
|
+
var xt = Q, St = ":state(selected)", Ct = `.${o}`, wt = "segmented", Tt = "many", Et = "link", Dt = "vertical", Ot = "whole", kt = "icons", $ = "overflow", At = ":scope > slot:not([name])", jt = "ellipsis horizontal", Mt = "caret down", Nt = `${o} overflow`, Pt = "overflow-menu", Ft = "row", It = "title", Lt = "badge", Rt = "letter", zt = "caret", Bt = "dot", Vt = "selected", Ht = "disabled", Ut = `:scope > .${Ft}`;
|
|
918
1051
|
//#endregion
|
|
919
1052
|
//#region src/components/ui-menu/index.ts
|
|
920
|
-
|
|
1053
|
+
he(["click", "keydown"]), xt.define();
|
|
921
1054
|
//#endregion
|
|
922
|
-
export {
|
|
1055
|
+
export { xt as UIMenu, L as t };
|
|
923
1056
|
|
|
924
1057
|
//# sourceMappingURL=ui-menu.js.map
|