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-calendar.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { FormComponent as
|
|
4
|
-
import { t as
|
|
5
|
-
import { For as
|
|
6
|
-
import { addEvent as
|
|
2
|
+
import { $ as e, A as t, Bt as n, C as r, D as i, F as a, Ht as o, IconGlyph as s, Lt as c, NativeFallback as l, PopoverPanel as u, RUNTIME_KEY as d, Rt as f, UI as p, Ut as m, Vt as h, controlled as g, cssState as _, derived as v, escapeRegExp as ee, h as te, lazy as ne, n as re, numberToWord as ie, on as ae, onChange as y, proto as oe, protoMerged as se, state as b, untracked as x, v as ce, w as le, zt as S } from "./core.js";
|
|
3
|
+
import { FormComponent as ue } from "./forms.js";
|
|
4
|
+
import { t as de } from "./UIInput-BodVbUoQ.js";
|
|
5
|
+
import { For as C, Show as w } from "solid-js";
|
|
6
|
+
import { addEvent as T, className as E, createComponent as D, delegateEvents as fe, effect as O, insert as k, isServer as A, memo as pe, readShallow as j, ref as M, setAttribute as N, spread as me, style as he, template as P } from "@solidjs/web";
|
|
7
7
|
//#region src/components/ui-calendar/UICalendar.en.ts
|
|
8
|
-
var
|
|
8
|
+
var ge = {
|
|
9
9
|
tag: "ui-calendar",
|
|
10
|
+
icon: "calendar alternate outline",
|
|
10
11
|
formControl: !0,
|
|
11
12
|
topics: [
|
|
12
13
|
"date & time",
|
|
@@ -115,13 +116,14 @@ var he = {
|
|
|
115
116
|
description: "Chosen value, ISO by `type`. The ATTRIBUTE is the starting value (form reset restores it); the property is current."
|
|
116
117
|
},
|
|
117
118
|
{
|
|
118
|
-
...
|
|
119
|
+
...r.name,
|
|
119
120
|
description: "Form field name; submits the ISO value."
|
|
120
121
|
},
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
r.parameter,
|
|
123
|
+
r.required,
|
|
124
|
+
r.readonly,
|
|
123
125
|
{
|
|
124
|
-
...
|
|
126
|
+
...r.placeholder,
|
|
125
127
|
description: "Text shown in the empty field; its accessible name too."
|
|
126
128
|
},
|
|
127
129
|
{
|
|
@@ -303,7 +305,7 @@ var he = {
|
|
|
303
305
|
description: "Can't be used."
|
|
304
306
|
},
|
|
305
307
|
{
|
|
306
|
-
...
|
|
308
|
+
...le.invalid,
|
|
307
309
|
description: "Fails validation (`required`)."
|
|
308
310
|
},
|
|
309
311
|
{
|
|
@@ -387,13 +389,13 @@ var he = {
|
|
|
387
389
|
description: "Name of a `time` calendar's minute grid (no title)."
|
|
388
390
|
}
|
|
389
391
|
]
|
|
390
|
-
},
|
|
392
|
+
}, _e, ve, F, I, L = class _CalendarFallback extends (F = l, ve = [oe], _e = [oe], F) {
|
|
391
393
|
constructor() {
|
|
392
|
-
super(...arguments),
|
|
394
|
+
super(...arguments), o(this, "control");
|
|
393
395
|
}
|
|
394
396
|
build() {
|
|
395
397
|
let e = this.domElement, t = this.attr("type") ?? "datetime", n = t === "year", r = this.create("input", {
|
|
396
|
-
type:
|
|
398
|
+
type: be[t] ?? be.datetime,
|
|
397
399
|
name: this.attr("name"),
|
|
398
400
|
min: this.attr("min"),
|
|
399
401
|
max: this.attr("max"),
|
|
@@ -407,11 +409,11 @@ var he = {
|
|
|
407
409
|
let i = e.value ?? this.attr("value");
|
|
408
410
|
i && (r.value = String(i));
|
|
409
411
|
let a = this.create("div", {
|
|
410
|
-
class:
|
|
411
|
-
part:
|
|
412
|
+
class: xe,
|
|
413
|
+
part: Se
|
|
412
414
|
}, r), o = this.create("div", {
|
|
413
415
|
class: this.classes(),
|
|
414
|
-
part:
|
|
416
|
+
part: Ce
|
|
415
417
|
}, a);
|
|
416
418
|
return this.listen(r, "input", () => this.sync()), this.listen(r, "change", (t) => {
|
|
417
419
|
this.sync(), e.value = r.value;
|
|
@@ -419,7 +421,7 @@ var he = {
|
|
|
419
421
|
value: r.value,
|
|
420
422
|
originalEvent: t
|
|
421
423
|
};
|
|
422
|
-
this.send(
|
|
424
|
+
this.send(we, n);
|
|
423
425
|
}), this.control = r, [o];
|
|
424
426
|
}
|
|
425
427
|
sync() {
|
|
@@ -430,20 +432,20 @@ var he = {
|
|
|
430
432
|
});
|
|
431
433
|
}
|
|
432
434
|
};
|
|
433
|
-
|
|
435
|
+
I = S(F), c(I, 13, "vocabulary", ve, L), c(I, 13, "degraded", _e, L), f(I, L), n(L, "CalendarFallback"), o(L, "vocabulary", m(I, 8, L, ge)), m(I, 11, L), o(L, "degraded", m(I, 12, L, [
|
|
434
436
|
"the grid, its views and keyboard pattern: the native picker's instead (a `year` is a number field)",
|
|
435
437
|
"`inline` (always a field), `position`, `today`, `first-day-of-week`, `locale` (the page's instead)",
|
|
436
438
|
"`disabled-dates`, `disabled-days-of-week`, `select-adjacent-days`, ranges (`start-calendar` / `end-calendar`)",
|
|
437
439
|
"`disable-minute` / `-month` / `-year`, typed text in the locale's words",
|
|
438
440
|
"vetoing `ui-changing`, `ui-opening` / `ui-closing`, `:state(invalid)`, form reset of the value"
|
|
439
|
-
])),
|
|
440
|
-
var
|
|
441
|
+
])), m(I, 15, L);
|
|
442
|
+
var ye = L, be = {
|
|
441
443
|
date: "date",
|
|
442
444
|
time: "time",
|
|
443
445
|
datetime: "datetime-local",
|
|
444
446
|
month: "month",
|
|
445
447
|
year: "number"
|
|
446
|
-
},
|
|
448
|
+
}, xe = "ui input", Se = "input", Ce = "calendar", we = "ui-changed", CalendarDates = class {
|
|
447
449
|
temporal;
|
|
448
450
|
type;
|
|
449
451
|
anchor;
|
|
@@ -463,7 +465,7 @@ var ve = R, ye = {
|
|
|
463
465
|
try {
|
|
464
466
|
switch (this.type) {
|
|
465
467
|
case "time": return this.anchor.toPlainDateTime(n.PlainTime.from(t));
|
|
466
|
-
case "year": return
|
|
468
|
+
case "year": return De.test(t) ? n.PlainDateTime.from({
|
|
467
469
|
year: Number(t),
|
|
468
470
|
month: 1,
|
|
469
471
|
day: 1
|
|
@@ -551,7 +553,7 @@ var ve = R, ye = {
|
|
|
551
553
|
return t && this.temporal.PlainDateTime.compare(e, t) < 0 ? t : n && this.temporal.PlainDateTime.compare(e, n) > 0 ? n : e;
|
|
552
554
|
}
|
|
553
555
|
modes({ disableMinute: e = !1, disableMonth: t = !1, disableYear: n = !1 } = {}) {
|
|
554
|
-
let r =
|
|
556
|
+
let r = Ee[this.type], i = r.at(-1);
|
|
555
557
|
return r.filter((r) => r === "minute" ? !e : r === i ? !0 : r === "month" ? !t : r !== "year" || !n);
|
|
556
558
|
}
|
|
557
559
|
fromDate(e) {
|
|
@@ -572,7 +574,7 @@ var ve = R, ye = {
|
|
|
572
574
|
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, 0, 0), t.getTime();
|
|
573
575
|
}
|
|
574
576
|
static isoFields(e, t) {
|
|
575
|
-
let n =
|
|
577
|
+
let n = Te[t].exec(e.trim());
|
|
576
578
|
if (!n) return;
|
|
577
579
|
let r = n.slice(1).map(Number);
|
|
578
580
|
if (t === "time") return {
|
|
@@ -591,13 +593,13 @@ var ve = R, ye = {
|
|
|
591
593
|
minute: c
|
|
592
594
|
};
|
|
593
595
|
}
|
|
594
|
-
},
|
|
596
|
+
}, Te = {
|
|
595
597
|
year: /^(\d{1,6})$/,
|
|
596
598
|
month: /^(\d{4,6})-(\d{2})$/,
|
|
597
599
|
date: /^(\d{4,6})-(\d{2})-(\d{2})$/,
|
|
598
600
|
datetime: /^(\d{4,6})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})/,
|
|
599
601
|
time: /^(\d{2}):(\d{2})/
|
|
600
|
-
},
|
|
602
|
+
}, Ee = {
|
|
601
603
|
date: [
|
|
602
604
|
"year",
|
|
603
605
|
"month",
|
|
@@ -613,9 +615,9 @@ var ve = R, ye = {
|
|
|
613
615
|
time: ["hour", "minute"],
|
|
614
616
|
month: ["year", "month"],
|
|
615
617
|
year: ["year"]
|
|
616
|
-
},
|
|
617
|
-
constructor({ i18n: e, locale:
|
|
618
|
-
|
|
618
|
+
}, De = /^\d{1,6}$/, Oe = [ne], R, z = class _CalendarText {
|
|
619
|
+
constructor({ i18n: e, locale: t }) {
|
|
620
|
+
m(R, 5, this), o(this, "i18n"), o(this, "locale"), this.i18n = e, this.locale = t;
|
|
619
621
|
}
|
|
620
622
|
format(e, t) {
|
|
621
623
|
return this.i18n.formatDate(CalendarDates.epoch(e), {
|
|
@@ -624,16 +626,16 @@ var ve = R, ye = {
|
|
|
624
626
|
}, this.locale);
|
|
625
627
|
}
|
|
626
628
|
value(e, t) {
|
|
627
|
-
return this.format(e,
|
|
629
|
+
return this.format(e, Ae[t]);
|
|
628
630
|
}
|
|
629
631
|
cell(e, t) {
|
|
630
|
-
return this.format(e,
|
|
632
|
+
return this.format(e, je[t]);
|
|
631
633
|
}
|
|
632
634
|
label(e, t) {
|
|
633
|
-
return this.format(e,
|
|
635
|
+
return this.format(e, Me[t]);
|
|
634
636
|
}
|
|
635
637
|
title(e, t) {
|
|
636
|
-
return this.format(e,
|
|
638
|
+
return this.format(e, Ne[t]);
|
|
637
639
|
}
|
|
638
640
|
weekdays(e) {
|
|
639
641
|
return this.i18n.weekdays(e, this.locale);
|
|
@@ -646,14 +648,14 @@ var ve = R, ye = {
|
|
|
646
648
|
if (n) return n;
|
|
647
649
|
let r = e.toLocaleLowerCase(this.locale).normalize("NFKC"), i, a = 0;
|
|
648
650
|
if (t.hasTime) {
|
|
649
|
-
let e =
|
|
651
|
+
let e = Fe.exec(r), n = this.dayPeriods().find(([e]) => _CalendarText.word(e).test(r));
|
|
650
652
|
if (e) i = Number(e[1]), a = Number(e[2]), r = r.replace(e[0], " ");
|
|
651
653
|
else if (n) {
|
|
652
654
|
let e = RegExp(`(\\d{1,2})\\s*${ee(n[0])}`).exec(r);
|
|
653
655
|
e && (i = Number(e[1]));
|
|
654
656
|
}
|
|
655
|
-
if (n && i !== void 0 && (r = r.replace(_CalendarText.word(n[0]), " "), n[1] ===
|
|
656
|
-
let o = r.match(
|
|
657
|
+
if (n && i !== void 0 && (r = r.replace(_CalendarText.word(n[0]), " "), n[1] === V && i < 12 && (i += 12), n[1] === B && i === 12 && (i = 0)), t.type === "time") {
|
|
658
|
+
let o = r.match(Ie)?.map(Number) ?? [];
|
|
657
659
|
return i ??= o[0], !e && o.length > 1 && !n && (a = o[1]), i === void 0 ? void 0 : t.parse(`${_CalendarText.pad(i)}:${_CalendarText.pad(a)}`);
|
|
658
660
|
}
|
|
659
661
|
}
|
|
@@ -665,7 +667,7 @@ var ve = R, ye = {
|
|
|
665
667
|
}) : t.build(o);
|
|
666
668
|
}
|
|
667
669
|
dateFields(e, t) {
|
|
668
|
-
let n = e.match(
|
|
670
|
+
let n = e.match(Ie) ?? [], r = this.monthByName(e), i = (n[0] && n[0].length >= 4 ? Pe : this.numericOrder()).filter((e) => (r === void 0 || e !== "month") && (t !== "year" || e === "year")), a = r === void 0 ? {} : { month: r }, o = n.findIndex((e) => e.length >= 3 || Number(e) > 31);
|
|
669
671
|
if (o >= 0 && i.includes("year")) {
|
|
670
672
|
let e = n.splice(o, 1)[0];
|
|
671
673
|
a.year = e.length <= 2 ? _CalendarText.century(Number(e)) : Number(e);
|
|
@@ -685,7 +687,7 @@ var ve = R, ye = {
|
|
|
685
687
|
}
|
|
686
688
|
monthByName(e) {
|
|
687
689
|
let t = this.monthNames;
|
|
688
|
-
for (let n of e.match(
|
|
690
|
+
for (let n of e.match(Le) ?? []) {
|
|
689
691
|
if (n.length < 3) continue;
|
|
690
692
|
let e = t.findIndex((e) => e === n || e.startsWith(n));
|
|
691
693
|
if (e >= 0) return e % 12 + 1;
|
|
@@ -704,10 +706,10 @@ var ve = R, ye = {
|
|
|
704
706
|
dayPeriods() {
|
|
705
707
|
let e = [];
|
|
706
708
|
for (let [t, n] of [
|
|
707
|
-
[this.dayPeriod(1),
|
|
708
|
-
[this.dayPeriod(13),
|
|
709
|
-
[
|
|
710
|
-
[
|
|
709
|
+
[this.dayPeriod(1), B],
|
|
710
|
+
[this.dayPeriod(13), V],
|
|
711
|
+
[B, B],
|
|
712
|
+
[V, V]
|
|
711
713
|
]) t && !e.some(([e]) => e === t) && e.push([t, n]);
|
|
712
714
|
return e.sort(([e], [t]) => t.length - e.length);
|
|
713
715
|
}
|
|
@@ -728,8 +730,8 @@ var ve = R, ye = {
|
|
|
728
730
|
return RegExp(`(?<!\\p{L})${ee(e)}(?!\\p{L})`, "u");
|
|
729
731
|
}
|
|
730
732
|
};
|
|
731
|
-
|
|
732
|
-
var
|
|
733
|
+
R = S(null), c(R, 2, "monthNames", Oe, z), f(R, z), n(z, "CalendarText");
|
|
734
|
+
var ke = z, B = "am", V = "pm", Ae = {
|
|
733
735
|
date: { dateStyle: "long" },
|
|
734
736
|
datetime: {
|
|
735
737
|
dateStyle: "long",
|
|
@@ -741,7 +743,7 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
741
743
|
month: "long"
|
|
742
744
|
},
|
|
743
745
|
year: { year: "numeric" }
|
|
744
|
-
},
|
|
746
|
+
}, je = {
|
|
745
747
|
year: { year: "numeric" },
|
|
746
748
|
month: { month: "short" },
|
|
747
749
|
day: { day: "numeric" },
|
|
@@ -753,7 +755,7 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
753
755
|
hour: "numeric",
|
|
754
756
|
minute: "2-digit"
|
|
755
757
|
}
|
|
756
|
-
},
|
|
758
|
+
}, Me = {
|
|
757
759
|
year: { year: "numeric" },
|
|
758
760
|
month: {
|
|
759
761
|
year: "numeric",
|
|
@@ -768,7 +770,7 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
768
770
|
hour: "numeric",
|
|
769
771
|
minute: "2-digit"
|
|
770
772
|
}
|
|
771
|
-
},
|
|
773
|
+
}, Ne = {
|
|
772
774
|
year: { year: "numeric" },
|
|
773
775
|
month: { year: "numeric" },
|
|
774
776
|
day: {
|
|
@@ -777,15 +779,15 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
777
779
|
},
|
|
778
780
|
hour: { dateStyle: "long" },
|
|
779
781
|
minute: { dateStyle: "long" }
|
|
780
|
-
},
|
|
782
|
+
}, Pe = [
|
|
781
783
|
"year",
|
|
782
784
|
"month",
|
|
783
785
|
"day"
|
|
784
|
-
],
|
|
786
|
+
], Fe = /(\d{1,2}):(\d{2})/, Ie = /\d+/g, Le = /\p{L}+/gu, Re = class CalendarView {
|
|
785
787
|
static build(e) {
|
|
786
|
-
let { dates: t, mode: n, focus: r } = e, i = CalendarView.moments(e), a =
|
|
788
|
+
let { dates: t, mode: n, focus: r } = e, i = CalendarView.moments(e), a = ze[n], o = i.map((t) => CalendarView.cell(e, t)), s = [];
|
|
787
789
|
for (let e = 0; e < o.length; e += a) s.push(o.slice(e, e + a));
|
|
788
|
-
let [c, l] =
|
|
790
|
+
let [c, l] = Be[n], u = i[0], d = n === "year" ? u.subtract({ years: 1 }) : t.step(t.floor(r, c), c, -1), f = n === "year" ? u.add({ years: 10 }) : t.step(t.floor(r, c), c, 1);
|
|
789
791
|
return {
|
|
790
792
|
mode: n,
|
|
791
793
|
columns: a,
|
|
@@ -804,25 +806,25 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
804
806
|
};
|
|
805
807
|
}
|
|
806
808
|
static move(e, { key: t, shiftKey: n }) {
|
|
807
|
-
let { dates: r, mode:
|
|
809
|
+
let { dates: r, mode: i, focus: o } = e, s = ze[i];
|
|
808
810
|
switch (t) {
|
|
809
|
-
case
|
|
810
|
-
case
|
|
811
|
-
case
|
|
812
|
-
case
|
|
813
|
-
case
|
|
814
|
-
case
|
|
815
|
-
if (
|
|
811
|
+
case a.arrowLeft: return r.step(o, i, -1);
|
|
812
|
+
case a.arrowRight: return r.step(o, i, 1);
|
|
813
|
+
case a.arrowUp: return r.step(o, i, -s);
|
|
814
|
+
case a.arrowDown: return r.step(o, i, s);
|
|
815
|
+
case a.home:
|
|
816
|
+
case a.end: {
|
|
817
|
+
if (i === "day") {
|
|
816
818
|
let n = (o.dayOfWeek - e.firstDayOfWeek + 7) % 7;
|
|
817
|
-
return r.step(o, "day", t ===
|
|
819
|
+
return r.step(o, "day", t === a.home ? -n : 6 - n);
|
|
818
820
|
}
|
|
819
821
|
let n = CalendarView.moments(e);
|
|
820
|
-
return t ===
|
|
822
|
+
return t === a.home ? n[0] : n.at(-1);
|
|
821
823
|
}
|
|
822
|
-
case
|
|
823
|
-
case
|
|
824
|
-
let [e, s] = n ?
|
|
825
|
-
return r.step(o, e, t ===
|
|
824
|
+
case a.pageUp:
|
|
825
|
+
case a.pageDown: {
|
|
826
|
+
let [e, s] = n ? Ve[i] : Be[i];
|
|
827
|
+
return r.step(o, e, t === a.pageUp ? -s : s);
|
|
826
828
|
}
|
|
827
829
|
}
|
|
828
830
|
}
|
|
@@ -895,82 +897,82 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
895
897
|
static range(e, t) {
|
|
896
898
|
return Array.from({ length: e }, (e, n) => t(n));
|
|
897
899
|
}
|
|
898
|
-
},
|
|
900
|
+
}, ze = {
|
|
899
901
|
year: 3,
|
|
900
902
|
month: 3,
|
|
901
903
|
day: 7,
|
|
902
904
|
hour: 4,
|
|
903
905
|
minute: 3
|
|
904
|
-
},
|
|
906
|
+
}, Be = {
|
|
905
907
|
year: ["year", 10],
|
|
906
908
|
month: ["year", 1],
|
|
907
909
|
day: ["month", 1],
|
|
908
910
|
hour: ["day", 1],
|
|
909
911
|
minute: ["day", 1]
|
|
910
|
-
},
|
|
912
|
+
}, Ve = {
|
|
911
913
|
year: ["year", 100],
|
|
912
914
|
month: ["year", 10],
|
|
913
915
|
day: ["year", 1],
|
|
914
916
|
hour: ["month", 1],
|
|
915
917
|
minute: ["month", 1]
|
|
916
|
-
}, Ve = "@layer ui.components.calendar.types{:host{--ui-color:initial;--ui-color-text:initial;--ui-color-header:initial;--ui-color-border:initial;--ui-color-background:initial;--ui-color-inverted:initial;--ui-color-on:initial;--ui-color-inverted-on:initial;vertical-align:middle;max-inline-size:100%;display:inline-block}:host(:state(fluid)){display:block}:host(:focus-visible){outline:none}.ui.calendar{--_ui-calendar-background:var(--ui-calendar-background,var(--ui-surface));--_ui-calendar-color:var(--ui-calendar-color,var(--ui-text-color));--_ui-calendar-border-color:var(--ui-calendar-border-color,var(--ui-border-color-strong));--_ui-calendar-internal-border:var(--ui-calendar-internal-border,var(--ui-border-color-internal));--_ui-calendar-header-background:var(--ui-calendar-header-background,var(--ui-surface-muted));--_ui-calendar-radius:var(--ui-calendar-radius,var(--ui-radius));--_ui-calendar-shadow:var(--ui-calendar-shadow,var(--ui-shadow-floating));--_ui-calendar-distance:var(--ui-calendar-distance,.5em);--_ui-calendar-focus-color:var(--ui-calendar-focus-color,var(--ui-color,var(--ui-focus-border)));--_ui-calendar-focus-width:var(--ui-calendar-focus-width,2px);--_ui-calendar-today-font-weight:var(--ui-calendar-today-font-weight,var(--ui-font-weight-bold));--_ui-calendar-active-background:var(--ui-calendar-active-background,var(--ui-color,color-mix(in oklab, var(--ui-ink) 12%, var(--ui-surface))));--_ui-calendar-active-color:var(--ui-calendar-active-color,var(--ui-color-on,var(--ui-text-selected)));--_ui-calendar-hover-background:var(--ui-calendar-hover-background,oklch(from var(--ui-ink) l c h / .05));--_ui-calendar-range-background:var(--ui-calendar-range-background,var(--ui-color-background,oklch(from var(--ui-ink) l c h / .05)));--_ui-calendar-range-color:var(--ui-calendar-range-color,var(--ui-color-text,var(--ui-text-selected)));--_ui-calendar-adjacent-color:var(--ui-calendar-adjacent-color,var(--ui-text-muted));--_ui-calendar-adjacent-background:var(--ui-calendar-adjacent-background,oklch(from var(--ui-ink) l c h / .02));--_ui-calendar-disabled-color:var(--ui-calendar-disabled-color,var(--ui-text-disabled));--_ui-calendar-disabled-opacity:var(--ui-calendar-disabled-opacity,var(--ui-disabled-opacity));--_ui-calendar-cell-padding:var(--ui-calendar-cell-padding,.5em);--_ui-calendar-cell-inline-padding:var(--ui-calendar-cell-inline-padding,.1em);--_ui-calendar-head-padding-top:var(--ui-calendar-head-padding-top,.2em);--_ui-calendar-head-padding-bottom:var(--ui-calendar-head-padding-bottom,.3em);--_ui-calendar-prev-next-width:var(--ui-calendar-prev-next-width,calc(100% / 7));--_ui-calendar-width-year-month-minute:var(--ui-calendar-width-year-month-minute,15em);--_ui-calendar-width-day:var(--ui-calendar-width-day,18em);--_ui-calendar-width-hour:var(--ui-calendar-width-hour,20em);--_ui-calendar-compact-padding:var(--ui-calendar-compact-padding,.3em);--_ui-calendar-field-width:var(--ui-calendar-field-width,20em)}.ui.calendar:not(.popup){box-sizing:border-box;anchor-scope:all;max-inline-size:100%;color:var(--_ui-calendar-color);font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));line-height:var(--ui-line-height);vertical-align:middle;display:inline-block;position:relative}.ui.calendar>.ui.input{display:flex}.ui.calendar>.ui.input>input{inline-size:var(--_ui-calendar-field-width)}.ui.calendar>.ui.input>button.icon{border-radius:var(--_ui-calendar-radius);font:inherit;pointer-events:auto;cursor:pointer;appearance:none;background:0 0;border:0;padding:0}.ui.calendar>.ui.input>button.icon:is(:hover,:focus-visible){opacity:1}.ui.calendar>.ui.input>button.icon:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:calc(-1 * var(--ui-focus-width))}.ui.calendar>.ui.input>button.icon:disabled{cursor:default}.ui.calendar>:is(.ui.popup,.calendar){box-sizing:border-box;border:var(--ui-border-width) solid var(--_ui-calendar-border-color);border-radius:var(--_ui-calendar-radius);background:var(--_ui-calendar-background);color:var(--_ui-calendar-color);font-size:1em;line-height:var(--ui-line-height);text-align:center;-webkit-user-select:none;user-select:none;padding:0;overflow:hidden}.ui.calendar>.calendar{vertical-align:top;inline-size:min-content;display:inline-block}.ui.calendar>.calendar:focus{outline:0}.ui.calendar>.ui.popup{z-index:var(--ui-z-popup);inline-size:min-content;margin:var(--_ui-calendar-distance) 0;box-shadow:var(--_ui-calendar-shadow);display:none;position:absolute}.ui.calendar>.ui.popup[popover]{position-area:block-end span-inline-end;position-try-fallbacks:flip-block, flip-inline;inset:auto}.ui.calendar>.ui.popup:popover-open{display:block}.ui.calendar>.ui.popup:not([popover]).visible{display:block;position:relative}.ui.calendar .header{border-block-end:var(--ui-border-width) solid var(--_ui-calendar-internal-border);background:var(--_ui-calendar-header-background);font-weight:var(--ui-font-weight-bold);align-items:stretch;display:flex}.ui.calendar .header>button{box-sizing:border-box;padding:var(--_calendar-cell-padding,var(--_ui-calendar-cell-padding)) 0;color:inherit;font:inherit;line-height:inherit;cursor:pointer;appearance:none;background:0 0;border:0;margin:0}.ui.calendar .header>:is(.prev,.next).link{flex:0 0 var(--_ui-calendar-prev-next-width);justify-content:center;align-items:center;display:flex}.ui.calendar .header>.title.link{flex:auto}.ui.calendar .header svg{fill:currentColor;block-size:1em;inline-size:1em}.ui.calendar .ui.table{box-sizing:border-box;border-collapse:separate;border-spacing:0;inline-size:100%;color:inherit;text-align:center;table-layout:fixed;background:0 0;border:0;margin:0;font-size:1em}.ui.calendar .ui.table.year,.ui.calendar .ui.table.month,.ui.calendar .ui.table.minute{min-inline-size:var(--_ui-calendar-width-year-month-minute)}.ui.calendar .ui.table.day{min-inline-size:var(--_ui-calendar-width-day)}.ui.calendar .ui.table.hour{min-inline-size:var(--_ui-calendar-width-hour)}.ui.calendar .ui.table :is(th,td){padding:var(--_calendar-cell-padding,var(--_ui-calendar-cell-padding)) var(--_ui-calendar-cell-inline-padding);white-space:nowrap}.ui.calendar .ui.table td{border-block-start:var(--ui-border-width) solid var(--_ui-calendar-internal-border)}.ui.calendar .ui.table td+td{border-inline-start:var(--ui-border-width) solid var(--_ui-calendar-internal-border)}.ui.calendar .ui.table tbody tr:first-child td{border-block-start:0}.ui.calendar .ui.table thead+tbody tr:first-child td{border-block-start:var(--ui-border-width) solid var(--_ui-calendar-internal-border)}.ui.calendar .ui.table tr .link{cursor:pointer}.ui.calendar .ui.table td:focus{outline:0}}@layer ui.components.calendar.content{.ui.calendar .ui.table thead th{padding-block:var(--_ui-calendar-head-padding-top) var(--_ui-calendar-head-padding-bottom);background:var(--_ui-calendar-header-background);font-weight:var(--ui-font-weight-bold);border:0}.ui.calendar .today.link{box-sizing:border-box;inline-size:100%;padding:var(--_calendar-cell-padding,var(--_ui-calendar-cell-padding));border:0;border-block-start:var(--ui-border-width) solid var(--_ui-calendar-internal-border);color:inherit;font:inherit;cursor:pointer;appearance:none;background:0 0;margin:0;display:block}}@layer ui.components.calendar.variations{.ui.calendar>.ui.popup.bottom.right[popover]{position-area:block-end span-inline-start}.ui.calendar>.ui.popup.top.left[popover]{position-area:block-start span-inline-end}.ui.calendar>.ui.popup.top.right[popover]{position-area:block-start span-inline-start}.ui.fluid.calendar:not(.popup){display:block}.ui.fluid.calendar>.calendar{inline-size:auto;display:block}.ui.compact.calendar{--_calendar-cell-padding:var(--_ui-calendar-compact-padding)}.ui.inverted.calendar>:is(.ui.popup,.calendar){--ui-inverted:1;--ui-scheme:dark;color-scheme:dark}}@layer ui.components.calendar.states{.ui.calendar .ui.table td.link:not(.disabled,.active):hover,.ui.calendar :is(.header,.today)>button:not(:disabled):hover,.ui.calendar .today.link:hover{background:var(--_ui-calendar-hover-background)}.ui.calendar .ui.table tr .adjacent:not(.disabled,.active){background:var(--_ui-calendar-adjacent-background);color:var(--_ui-calendar-adjacent-color)}.ui.calendar .ui.table tr td.today{font-weight:var(--_ui-calendar-today-font-weight)}.ui.calendar .ui.table tr td.range{background:var(--_ui-calendar-range-background);box-shadow:none;color:var(--_ui-calendar-range-color)}.ui.calendar .ui.table tr td.active{background:var(--_ui-calendar-active-background);color:var(--_ui-calendar-active-color)}.ui.calendar .ui.table:focus-within tbody tr td.focus,.ui.calendar>.ui.popup:not([popover]).visible .ui.table tbody tr td.focus{box-shadow:inset 0 0 0 var(--_ui-calendar-focus-width) var(--_ui-calendar-focus-color)}.ui.calendar .ui.table:focus-within tbody tr td.focus.active,.ui.calendar>.ui.popup:not([popover]).visible .ui.table tbody tr td.focus.active{box-shadow:inset 0 0 0 var(--_ui-calendar-focus-width) var(--_ui-calendar-focus-color), inset 0 0 0 calc(2 * var(--_ui-calendar-focus-width)) var(--_ui-calendar-background)}.ui.calendar :is(.header,.today)>button:focus-visible,.ui.calendar .today.link:focus-visible{outline:var(--_ui-calendar-focus-width) solid var(--_ui-calendar-focus-color);outline-offset:calc(-1 * var(--_ui-calendar-focus-width))}.ui.ui.calendar .ui.table tr .disabled,.ui.calendar .header>button:disabled{color:var(--_ui-calendar-disabled-color);cursor:default}.ui.calendar .header>.title.link:disabled{color:inherit}.ui.disabled.calendar:not(.popup){opacity:var(--_ui-calendar-disabled-opacity)}.ui.disabled.calendar>.ui.input,.ui.disabled.calendar .ui.table tr .link,.ui.disabled.calendar :is(.header,.today)>button{pointer-events:none}.ui.disabled.calendar>.ui.input.disabled{opacity:1}.ui.read-only.calendar>.ui.input>input{cursor:default}}", He = /* @__PURE__ */ F("<div>"), Ue = /* @__PURE__ */ F("<div><!><!>"), We = /* @__PURE__ */ F("<input type=hidden>"), Ge = /* @__PURE__ */ F("<div><input><button type=button aria-haspopup=dialog>"), Ke = /* @__PURE__ */ F("<div popover=manual role=dialog>"), qe = /* @__PURE__ */ F("<button type=button>"), Je = /* @__PURE__ */ F("<div><button type=button></button><button type=button aria-live=polite></button><button type=button>"), Ye = /* @__PURE__ */ F("<thead><tr>"), Xe = /* @__PURE__ */ F("<table role=grid><tbody>"), Ze = /* @__PURE__ */ F("<th scope=col>"), Qe = /* @__PURE__ */ F("<tr>"), $e = /* @__PURE__ */ F("<td role=gridcell>"), et, tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt, mt, ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, U, W, G, K, q, J, Y, X, Z, Q, $ = class _UICalendar extends (U = le, At = [b], kt = [oe], Ot = [x], Dt = [v], Et = [v], Tt = [g("value")], wt = [v], Ct = [x], St = [v], xt = [S], bt = [S], yt = [g("open")], vt = [_("open")], _t = [y("popupIsOpen", "isConnected", "isReady")], gt = [S], ht = [ae("focusout")], mt = [x], pt = [x], ft = [v], dt = [v], ut = [v], lt = [v], ct = [v], st = [S], ot = [S], at = [S], it = [S], rt = [x], nt = [x], tt = [y("isConnected", "startCalendar", "endCalendar")], et = [y("page", "popupIsOpen")], U) {
|
|
918
|
+
}, He = "@layer ui.components.calendar.types{:host{--ui-color:initial;--ui-color-text:initial;--ui-color-header:initial;--ui-color-border:initial;--ui-color-background:initial;--ui-color-inverted:initial;--ui-color-on:initial;--ui-color-inverted-on:initial;vertical-align:middle;max-inline-size:100%;display:inline-block}:host(:state(fluid)){display:block}:host(:focus-visible){outline:none}.ui.calendar{--_ui-calendar-background:var(--ui-calendar-background,var(--ui-surface));--_ui-calendar-color:var(--ui-calendar-color,var(--ui-text-color));--_ui-calendar-border-color:var(--ui-calendar-border-color,var(--ui-border-color-strong));--_ui-calendar-internal-border:var(--ui-calendar-internal-border,var(--ui-border-color-internal));--_ui-calendar-header-background:var(--ui-calendar-header-background,var(--ui-surface-muted));--_ui-calendar-radius:var(--ui-calendar-radius,var(--ui-radius));--_ui-calendar-shadow:var(--ui-calendar-shadow,var(--ui-shadow-floating));--_ui-calendar-distance:var(--ui-calendar-distance,.5em);--_ui-calendar-focus-color:var(--ui-calendar-focus-color,var(--ui-color,var(--ui-focus-border)));--_ui-calendar-focus-width:var(--ui-calendar-focus-width,2px);--_ui-calendar-today-font-weight:var(--ui-calendar-today-font-weight,var(--ui-font-weight-bold));--_ui-calendar-active-background:var(--ui-calendar-active-background,var(--ui-color,color-mix(in oklab, var(--ui-ink) 12%, var(--ui-surface))));--_ui-calendar-active-color:var(--ui-calendar-active-color,var(--ui-color-on,var(--ui-text-selected)));--_ui-calendar-hover-background:var(--ui-calendar-hover-background,oklch(from var(--ui-ink) l c h / .05));--_ui-calendar-range-background:var(--ui-calendar-range-background,var(--ui-color-background,oklch(from var(--ui-ink) l c h / .05)));--_ui-calendar-range-color:var(--ui-calendar-range-color,var(--ui-color-text,var(--ui-text-selected)));--_ui-calendar-adjacent-color:var(--ui-calendar-adjacent-color,var(--ui-text-muted));--_ui-calendar-adjacent-background:var(--ui-calendar-adjacent-background,oklch(from var(--ui-ink) l c h / .02));--_ui-calendar-disabled-color:var(--ui-calendar-disabled-color,var(--ui-text-disabled));--_ui-calendar-disabled-opacity:var(--ui-calendar-disabled-opacity,var(--ui-disabled-opacity));--_ui-calendar-cell-padding:var(--ui-calendar-cell-padding,.5em);--_ui-calendar-cell-inline-padding:var(--ui-calendar-cell-inline-padding,.1em);--_ui-calendar-head-padding-top:var(--ui-calendar-head-padding-top,.2em);--_ui-calendar-head-padding-bottom:var(--ui-calendar-head-padding-bottom,.3em);--_ui-calendar-prev-next-width:var(--ui-calendar-prev-next-width,calc(100% / 7));--_ui-calendar-width-year-month-minute:var(--ui-calendar-width-year-month-minute,15em);--_ui-calendar-width-day:var(--ui-calendar-width-day,18em);--_ui-calendar-width-hour:var(--ui-calendar-width-hour,20em);--_ui-calendar-compact-padding:var(--ui-calendar-compact-padding,.3em);--_ui-calendar-field-width:var(--ui-calendar-field-width,20em)}.ui.calendar:not(.popup){box-sizing:border-box;anchor-scope:all;max-inline-size:100%;color:var(--_ui-calendar-color);font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));line-height:var(--ui-line-height);vertical-align:middle;display:inline-block;position:relative}.ui.calendar>.ui.input{display:flex}.ui.calendar>.ui.input>input{inline-size:var(--_ui-calendar-field-width)}.ui.calendar>.ui.input>button.icon{border-radius:var(--_ui-calendar-radius);font:inherit;pointer-events:auto;cursor:var(--ui-control-cursor);appearance:none;background:0 0;border:0;padding:0}.ui.calendar>.ui.input>button.icon:is(:hover,:focus-visible){opacity:1}.ui.calendar>.ui.input>button.icon:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:calc(-1 * var(--ui-focus-width))}.ui.calendar>.ui.input>button.icon:disabled{cursor:default}.ui.calendar>:is(.ui.popup,.calendar){box-sizing:border-box;border:var(--ui-border-width) solid var(--_ui-calendar-border-color);border-radius:var(--_ui-calendar-radius);background:var(--_ui-calendar-background);color:var(--_ui-calendar-color);font-size:1em;line-height:var(--ui-line-height);text-align:center;-webkit-user-select:none;user-select:none;padding:0;overflow:hidden}.ui.calendar>.calendar{vertical-align:top;inline-size:min-content;display:inline-block}.ui.calendar>.calendar:focus{outline:0}.ui.calendar>.ui.popup{z-index:var(--ui-z-popup);inline-size:min-content;margin:var(--_ui-calendar-distance) 0;box-shadow:var(--_ui-calendar-shadow);display:none;position:absolute}.ui.calendar>.ui.popup[popover]{position-area:block-end span-inline-end;position-try-fallbacks:flip-block, flip-inline;inset:auto}.ui.calendar>.ui.popup:popover-open{display:block}.ui.calendar>.ui.popup:not([popover]).visible{display:block;position:relative}.ui.calendar .header{border-block-end:var(--ui-border-width) solid var(--_ui-calendar-internal-border);background:var(--_ui-calendar-header-background);font-weight:var(--ui-font-weight-bold);align-items:stretch;display:flex}.ui.calendar .header>button{box-sizing:border-box;padding:var(--_calendar-cell-padding,var(--_ui-calendar-cell-padding)) 0;color:inherit;font:inherit;line-height:inherit;cursor:var(--ui-control-cursor);appearance:none;background:0 0;border:0;margin:0}.ui.calendar .header>:is(.prev,.next).link{flex:0 0 var(--_ui-calendar-prev-next-width);justify-content:center;align-items:center;display:flex}.ui.calendar .header>.title.link{flex:auto}.ui.calendar .header svg{fill:currentColor;block-size:1em;inline-size:1em}.ui.calendar .ui.table{box-sizing:border-box;border-collapse:separate;border-spacing:0;inline-size:100%;color:inherit;text-align:center;table-layout:fixed;background:0 0;border:0;margin:0;font-size:1em}.ui.calendar .ui.table.year,.ui.calendar .ui.table.month,.ui.calendar .ui.table.minute{min-inline-size:var(--_ui-calendar-width-year-month-minute)}.ui.calendar .ui.table.day{min-inline-size:var(--_ui-calendar-width-day)}.ui.calendar .ui.table.hour{min-inline-size:var(--_ui-calendar-width-hour)}.ui.calendar .ui.table :is(th,td){padding:var(--_calendar-cell-padding,var(--_ui-calendar-cell-padding)) var(--_ui-calendar-cell-inline-padding);white-space:nowrap}.ui.calendar .ui.table td{border-block-start:var(--ui-border-width) solid var(--_ui-calendar-internal-border)}.ui.calendar .ui.table td+td{border-inline-start:var(--ui-border-width) solid var(--_ui-calendar-internal-border)}.ui.calendar .ui.table tbody tr:first-child td{border-block-start:0}.ui.calendar .ui.table thead+tbody tr:first-child td{border-block-start:var(--ui-border-width) solid var(--_ui-calendar-internal-border)}.ui.calendar .ui.table tr .link{cursor:var(--ui-control-cursor)}.ui.calendar .ui.table td:focus{outline:0}}@layer ui.components.calendar.content{.ui.calendar .ui.table thead th{padding-block:var(--_ui-calendar-head-padding-top) var(--_ui-calendar-head-padding-bottom);background:var(--_ui-calendar-header-background);font-weight:var(--ui-font-weight-bold);border:0}.ui.calendar .today.link{box-sizing:border-box;inline-size:100%;padding:var(--_calendar-cell-padding,var(--_ui-calendar-cell-padding));border:0;border-block-start:var(--ui-border-width) solid var(--_ui-calendar-internal-border);color:inherit;font:inherit;cursor:var(--ui-control-cursor);appearance:none;background:0 0;margin:0;display:block}}@layer ui.components.calendar.variations{.ui.calendar>.ui.popup.bottom.right[popover]{position-area:block-end span-inline-start}.ui.calendar>.ui.popup.top.left[popover]{position-area:block-start span-inline-end}.ui.calendar>.ui.popup.top.right[popover]{position-area:block-start span-inline-start}.ui.fluid.calendar:not(.popup){display:block}.ui.fluid.calendar>.calendar{inline-size:auto;display:block}.ui.compact.calendar{--_calendar-cell-padding:var(--_ui-calendar-compact-padding)}.ui.inverted.calendar>:is(.ui.popup,.calendar){--ui-inverted:1;--ui-scheme:dark;color-scheme:dark}}@layer ui.components.calendar.states{.ui.calendar .ui.table td.link:not(.disabled,.active):hover,.ui.calendar :is(.header,.today)>button:not(:disabled):hover,.ui.calendar .today.link:hover{background:var(--_ui-calendar-hover-background)}.ui.calendar .ui.table tr .adjacent:not(.disabled,.active){background:var(--_ui-calendar-adjacent-background);color:var(--_ui-calendar-adjacent-color)}.ui.calendar .ui.table tr td.today{font-weight:var(--_ui-calendar-today-font-weight)}.ui.calendar .ui.table tr td.range{background:var(--_ui-calendar-range-background);box-shadow:none;color:var(--_ui-calendar-range-color)}.ui.calendar .ui.table tr td.active{background:var(--_ui-calendar-active-background);color:var(--_ui-calendar-active-color)}.ui.calendar .ui.table:focus-within tbody tr td.focus,.ui.calendar>.ui.popup:not([popover]).visible .ui.table tbody tr td.focus{box-shadow:inset 0 0 0 var(--_ui-calendar-focus-width) var(--_ui-calendar-focus-color)}.ui.calendar .ui.table:focus-within tbody tr td.focus.active,.ui.calendar>.ui.popup:not([popover]).visible .ui.table tbody tr td.focus.active{box-shadow:inset 0 0 0 var(--_ui-calendar-focus-width) var(--_ui-calendar-focus-color), inset 0 0 0 calc(2 * var(--_ui-calendar-focus-width)) var(--_ui-calendar-background)}.ui.calendar :is(.header,.today)>button:focus-visible,.ui.calendar .today.link:focus-visible{outline:var(--_ui-calendar-focus-width) solid var(--_ui-calendar-focus-color);outline-offset:calc(-1 * var(--_ui-calendar-focus-width))}.ui.ui.calendar .ui.table tr .disabled,.ui.calendar .header>button:disabled{color:var(--_ui-calendar-disabled-color);cursor:default}.ui.calendar .header>.title.link:disabled{color:inherit}.ui.disabled.calendar:not(.popup){opacity:var(--_ui-calendar-disabled-opacity)}.ui.disabled.calendar>.ui.input,.ui.disabled.calendar .ui.table tr .link,.ui.disabled.calendar :is(.header,.today)>button{pointer-events:none}.ui.disabled.calendar>.ui.input.disabled{opacity:1}.ui.read-only.calendar>.ui.input>input{cursor:default}}", Ue = /* @__PURE__ */ P("<div>"), We = /* @__PURE__ */ P("<div><!><!>"), Ge = /* @__PURE__ */ P("<input type=hidden>"), Ke = /* @__PURE__ */ P("<div><input><button type=button aria-haspopup=dialog>"), qe = /* @__PURE__ */ P("<div popover=manual role=dialog>"), Je = /* @__PURE__ */ P("<button type=button>"), Ye = /* @__PURE__ */ P("<div><button type=button></button><button type=button aria-live=polite></button><button type=button>"), Xe = /* @__PURE__ */ P("<thead><tr>"), Ze = /* @__PURE__ */ P("<table role=grid><tbody>"), Qe = /* @__PURE__ */ P("<th scope=col>"), $e = /* @__PURE__ */ P("<tr>"), et = /* @__PURE__ */ P("<td role=gridcell>"), tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt, mt, ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, H, U, W, G, K, q, J, Y, X, Z, Q = class _UICalendar extends (H = ue, jt = [oe], At = [se], kt = [b], Ot = [v], Dt = [v], Et = [g("value")], Tt = [v], wt = [b], Ct = [v], St = [x], xt = [x], bt = [g("open")], yt = [_("open")], vt = [y("popupIsOpen", "isConnected", "isReady")], _t = [x], gt = [ae("focusout")], ht = [b], mt = [b], pt = [v], ft = [v], dt = [v], ut = [v], lt = [v], ct = [x], st = [x], ot = [x], at = [x], it = [b], rt = [b], nt = [y("isConnected", "startCalendar", "endCalendar")], tt = [y("page", "popupIsOpen")], H) {
|
|
917
919
|
constructor(...e) {
|
|
918
|
-
super(...e),
|
|
920
|
+
super(...e), m(U, 5, this), o(this, "iconGlyph", new s({
|
|
919
921
|
owner: this,
|
|
920
|
-
name: /* @__PURE__ */
|
|
921
|
-
})),
|
|
922
|
+
name: /* @__PURE__ */ n(() => this.icon || (this.type === "time" ? Xt : Yt), "name")
|
|
923
|
+
})), o(this, "previousGlyph", new s({
|
|
922
924
|
owner: this,
|
|
923
|
-
name: /* @__PURE__ */
|
|
924
|
-
})),
|
|
925
|
+
name: /* @__PURE__ */ n(() => Zt, "name")
|
|
926
|
+
})), o(this, "nextGlyph", new s({
|
|
925
927
|
owner: this,
|
|
926
|
-
name: /* @__PURE__ */
|
|
927
|
-
})),
|
|
928
|
+
name: /* @__PURE__ */ n(() => Qt, "name")
|
|
929
|
+
})), o(this, "ids", {
|
|
928
930
|
popup: "",
|
|
929
931
|
title: ""
|
|
930
|
-
}),
|
|
932
|
+
}), o(this, "control"), o(this, "popup"), o(this, "grid"), h(this, W, m(U, 8, this, _UICalendar.temporalNow())), m(U, 11, this), h(this, G, m(U, 12, this, "")), m(U, 15, this), h(this, K, m(U, 16, this)), m(U, 19, this), o(this, "onInput", /* @__PURE__ */ n((e) => {
|
|
931
933
|
this.typedText = e.currentTarget.value;
|
|
932
|
-
}, "onInput")),
|
|
934
|
+
}, "onInput")), o(this, "onChange", /* @__PURE__ */ n((e) => {
|
|
933
935
|
this.commitTypedText(e);
|
|
934
|
-
}, "onChange")),
|
|
936
|
+
}, "onChange")), h(this, q, m(U, 20, this, !1)), m(U, 23, this), o(this, "popover", new u({
|
|
935
937
|
component: this,
|
|
936
938
|
member: "isOpen",
|
|
937
|
-
isOpen: /* @__PURE__ */
|
|
938
|
-
canChange: /* @__PURE__ */
|
|
939
|
-
detail: /* @__PURE__ */
|
|
939
|
+
isOpen: /* @__PURE__ */ n(() => this.popupIsOpen, "isOpen"),
|
|
940
|
+
canChange: /* @__PURE__ */ n((e) => !this.inline && (!e || !(this.isDisabled || this.readonly)), "canChange"),
|
|
941
|
+
detail: /* @__PURE__ */ n((e, t) => ({
|
|
940
942
|
open: e,
|
|
941
943
|
originalEvent: t
|
|
942
944
|
}), "detail"),
|
|
943
|
-
onChange: /* @__PURE__ */
|
|
945
|
+
onChange: /* @__PURE__ */ n((e) => {
|
|
944
946
|
e && (this.explicitMode = void 0, this.explicitFocus = void 0);
|
|
945
947
|
}, "onChange")
|
|
946
|
-
})),
|
|
948
|
+
})), o(this, "onFieldClick", /* @__PURE__ */ n((e) => {
|
|
947
949
|
this.requestOpen(!0, e);
|
|
948
|
-
}, "onFieldClick")),
|
|
949
|
-
e.key ===
|
|
950
|
-
}, "onFieldKeyDown")),
|
|
950
|
+
}, "onFieldClick")), o(this, "onFieldKeyDown", /* @__PURE__ */ n((e) => {
|
|
951
|
+
e.key === a.enter ? (e.preventDefault(), this.commitTypedText(e), this.requestOpen(!1, e)) : e.key === a.arrowDown && (e.preventDefault(), this.shouldMoveFocus = !0, this.requestOpen(!0, e) || this.focusGrid());
|
|
952
|
+
}, "onFieldKeyDown")), o(this, "onTriggerClick", m(U, 48, this, /* @__PURE__ */ n((e) => {
|
|
951
953
|
let t = this.popupIsOpen;
|
|
952
954
|
this.shouldMoveFocus = !t, this.requestOpen(!t, e);
|
|
953
|
-
}, "onTriggerClick"))),
|
|
955
|
+
}, "onTriggerClick"))), m(U, 51, this), h(this, J, m(U, 24, this)), m(U, 27, this), h(this, Y, m(U, 28, this)), m(U, 31, this), o(this, "onTitleClick", m(U, 52, this, /* @__PURE__ */ n(() => {
|
|
954
956
|
let e = this.page?.up;
|
|
955
957
|
e && (this.explicitMode = e);
|
|
956
|
-
}, "onTitleClick"))),
|
|
958
|
+
}, "onTitleClick"))), m(U, 55, this), o(this, "onToday", m(U, 56, this, /* @__PURE__ */ n((e) => {
|
|
957
959
|
let t = this.dates;
|
|
958
960
|
if (!t || this.readonly || this.isDisabled) return;
|
|
959
961
|
let n = this.modes.at(-1);
|
|
960
962
|
this.commit(t.floor(t.now(), n), e) && this.requestOpen(!1, e);
|
|
961
|
-
}, "onToday"))),
|
|
963
|
+
}, "onToday"))), m(U, 59, this), o(this, "onGridKeyDown", m(U, 60, this, /* @__PURE__ */ n((e) => {
|
|
962
964
|
if (e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
963
965
|
let t = this.viewInput;
|
|
964
966
|
if (!t) return;
|
|
965
|
-
if (e.key ===
|
|
967
|
+
if (e.key === a.enter || e.key === a.space) {
|
|
966
968
|
e.preventDefault();
|
|
967
969
|
let t = this.page?.rows.flat().find((e) => e.focus);
|
|
968
970
|
t && this.choose(t, e);
|
|
969
971
|
return;
|
|
970
972
|
}
|
|
971
|
-
let n =
|
|
973
|
+
let n = Re.move(t, e);
|
|
972
974
|
n && (e.preventDefault(), this.explicitFocus = n, this.shouldMoveFocus = !0);
|
|
973
|
-
}, "onGridKeyDown"))),
|
|
975
|
+
}, "onGridKeyDown"))), m(U, 63, this), h(this, X, m(U, 32, this)), m(U, 35, this), h(this, Z, m(U, 36, this)), m(U, 39, this), o(this, "initialValue", this.attributes.value ?? void 0), o(this, "shouldMoveFocus", !1), !A && !this.temporal && p.load().then(() => p.i18n.loadTemporal()).then((e) => {
|
|
974
976
|
this.temporal = e;
|
|
975
977
|
});
|
|
976
978
|
}
|
|
@@ -988,9 +990,9 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
988
990
|
}) : void 0;
|
|
989
991
|
}
|
|
990
992
|
get words() {
|
|
991
|
-
return new
|
|
992
|
-
i18n:
|
|
993
|
-
locale: this.locale ??
|
|
993
|
+
return new ke({
|
|
994
|
+
i18n: p.i18n,
|
|
995
|
+
locale: this.locale ?? p.i18n.locale
|
|
994
996
|
});
|
|
995
997
|
}
|
|
996
998
|
get chosenMoment() {
|
|
@@ -1001,7 +1003,7 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
1001
1003
|
if (e !== void 0) return e;
|
|
1002
1004
|
let t = this.chosenMoment;
|
|
1003
1005
|
if (t) return this.words.value(t, this.calendarType);
|
|
1004
|
-
if (!
|
|
1006
|
+
if (!A) return "";
|
|
1005
1007
|
let n = CalendarDates.isoFields(String(this.value ?? ""), this.calendarType);
|
|
1006
1008
|
return n ? this.words.value(n, this.calendarType) : String(this.value ?? "");
|
|
1007
1009
|
}
|
|
@@ -1069,7 +1071,7 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
1069
1071
|
}
|
|
1070
1072
|
get page() {
|
|
1071
1073
|
let e = this.viewInput;
|
|
1072
|
-
return e ?
|
|
1074
|
+
return e ? Re.build(e) : void 0;
|
|
1073
1075
|
}
|
|
1074
1076
|
get viewInput() {
|
|
1075
1077
|
let e = this.dates, t = this.focusedMoment;
|
|
@@ -1138,16 +1140,16 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
1138
1140
|
return this.labels.accessibleName ?? this.placeholder;
|
|
1139
1141
|
}
|
|
1140
1142
|
get validationAnchor() {
|
|
1141
|
-
return this.control ?? this.grid?.querySelector(
|
|
1143
|
+
return this.control ?? this.grid?.querySelector($) ?? void 0;
|
|
1142
1144
|
}
|
|
1143
1145
|
render() {
|
|
1144
1146
|
this.ids = {
|
|
1145
|
-
popup:
|
|
1146
|
-
title:
|
|
1147
|
+
popup: p.ids.next(Jt),
|
|
1148
|
+
title: p.ids.next(Jt)
|
|
1147
1149
|
};
|
|
1148
1150
|
let e = this;
|
|
1149
|
-
var t =
|
|
1150
|
-
return
|
|
1151
|
+
var t = We(), n = t.firstChild, r = n.nextSibling;
|
|
1152
|
+
return k(t, D(w, {
|
|
1151
1153
|
get when() {
|
|
1152
1154
|
return e.inline;
|
|
1153
1155
|
},
|
|
@@ -1155,130 +1157,130 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
1155
1157
|
return e.popupMode();
|
|
1156
1158
|
},
|
|
1157
1159
|
get children() {
|
|
1158
|
-
var t =
|
|
1159
|
-
return
|
|
1160
|
-
e:
|
|
1160
|
+
var t = Ue();
|
|
1161
|
+
return k(t, () => e.picker()), O(() => ({
|
|
1162
|
+
e: j(Ft),
|
|
1161
1163
|
t: e.labels.accessibleName ? "group" : void 0,
|
|
1162
1164
|
a: e.labels.accessibleName,
|
|
1163
1165
|
o: e.isDisabled
|
|
1164
1166
|
}), ({ e, t: n, a: r, o: i }, a) => {
|
|
1165
|
-
|
|
1167
|
+
E(t, e, a?.e), n !== a?.t && N(t, "role", n), r !== a?.a && N(t, "aria-label", r), i !== a?.o && N(t, "inert", i);
|
|
1166
1168
|
}), t;
|
|
1167
1169
|
}
|
|
1168
|
-
}), n),
|
|
1169
|
-
e:
|
|
1170
|
+
}), n), k(t, () => A && e.staticValue(), r), O(() => ({
|
|
1171
|
+
e: j(e.rootClass),
|
|
1170
1172
|
t: e.partForName("calendar")
|
|
1171
1173
|
}), ({ e, t: n }, r) => {
|
|
1172
|
-
|
|
1174
|
+
E(t, e, r?.e), n !== r?.t && N(t, "part", n);
|
|
1173
1175
|
}), t;
|
|
1174
1176
|
}
|
|
1175
1177
|
get staticControl() {
|
|
1176
|
-
return
|
|
1178
|
+
return A ? { [e]: "" } : {};
|
|
1177
1179
|
}
|
|
1178
1180
|
staticValue() {
|
|
1179
1181
|
let e = this.name, t = this.formValue;
|
|
1180
1182
|
if (!e || t === null) return;
|
|
1181
1183
|
let n = this;
|
|
1182
|
-
var r =
|
|
1183
|
-
return
|
|
1184
|
+
var r = Ge();
|
|
1185
|
+
return N(r, "name", e), O(() => ({
|
|
1184
1186
|
e: String(t),
|
|
1185
1187
|
t: n.isDisabled
|
|
1186
1188
|
}), ({ e, t }, n) => {
|
|
1187
|
-
r.value = e ?? "", t !== n?.t &&
|
|
1189
|
+
r.value = e ?? "", t !== n?.t && N(r, "disabled", t);
|
|
1188
1190
|
}), r;
|
|
1189
1191
|
}
|
|
1190
1192
|
popupMode() {
|
|
1191
|
-
let
|
|
1193
|
+
let e = this;
|
|
1192
1194
|
return [(() => {
|
|
1193
|
-
var n =
|
|
1194
|
-
return
|
|
1195
|
+
var n = Ke(), r = n.firstChild, i = r.nextSibling;
|
|
1196
|
+
return me(r, [
|
|
1195
1197
|
{
|
|
1196
1198
|
get part() {
|
|
1197
|
-
return
|
|
1199
|
+
return e.partForName("control");
|
|
1198
1200
|
},
|
|
1199
1201
|
type: "text",
|
|
1200
1202
|
autocomplete: "off",
|
|
1201
1203
|
get placeholder() {
|
|
1202
|
-
return
|
|
1204
|
+
return e.placeholder;
|
|
1203
1205
|
},
|
|
1204
1206
|
get disabled() {
|
|
1205
|
-
return
|
|
1207
|
+
return e.isDisabled;
|
|
1206
1208
|
},
|
|
1207
1209
|
get readonly() {
|
|
1208
|
-
return
|
|
1210
|
+
return e.readonly;
|
|
1209
1211
|
},
|
|
1210
1212
|
get value() {
|
|
1211
|
-
return
|
|
1213
|
+
return e.fieldText;
|
|
1212
1214
|
},
|
|
1213
1215
|
get "aria-label"() {
|
|
1214
|
-
return
|
|
1216
|
+
return e.labels.accessibleName ?? e.placeholder;
|
|
1215
1217
|
},
|
|
1216
1218
|
get "aria-required"() {
|
|
1217
|
-
return
|
|
1219
|
+
return e.required ? "true" : void 0;
|
|
1218
1220
|
},
|
|
1219
1221
|
get "aria-invalid"() {
|
|
1220
|
-
return
|
|
1222
|
+
return e.validation.valid ? void 0 : "true";
|
|
1221
1223
|
}
|
|
1222
1224
|
},
|
|
1223
|
-
() =>
|
|
1225
|
+
() => e.staticControl,
|
|
1224
1226
|
{
|
|
1225
1227
|
get onInput() {
|
|
1226
|
-
return
|
|
1228
|
+
return e.onInput;
|
|
1227
1229
|
},
|
|
1228
1230
|
get onChange() {
|
|
1229
|
-
return
|
|
1231
|
+
return e.onChange;
|
|
1230
1232
|
},
|
|
1231
1233
|
get onClick() {
|
|
1232
|
-
return
|
|
1234
|
+
return e.onFieldClick;
|
|
1233
1235
|
},
|
|
1234
1236
|
get onKeyDown() {
|
|
1235
|
-
return
|
|
1237
|
+
return e.onFieldKeyDown;
|
|
1236
1238
|
}
|
|
1237
1239
|
}
|
|
1238
|
-
], !1),
|
|
1239
|
-
e:
|
|
1240
|
-
[
|
|
1241
|
-
[te]:
|
|
1240
|
+
], !1), M(() => (t) => e.control = t, r), T(i, "click", e.onTriggerClick, !0), k(i, () => e.iconGlyph.svg), O(() => ({
|
|
1241
|
+
e: j([Nt, {
|
|
1242
|
+
[ce]: e.fluid,
|
|
1243
|
+
[te]: e.isDisabled
|
|
1242
1244
|
}]),
|
|
1243
|
-
t:
|
|
1244
|
-
a:
|
|
1245
|
-
o:
|
|
1246
|
-
i:
|
|
1247
|
-
n:
|
|
1248
|
-
s:
|
|
1249
|
-
h:
|
|
1250
|
-
r:
|
|
1245
|
+
t: e.partForName("input"),
|
|
1246
|
+
a: j(e.popover.anchorStyle),
|
|
1247
|
+
o: j(t),
|
|
1248
|
+
i: e.partForName("trigger"),
|
|
1249
|
+
n: e.isDisabled || e.readonly,
|
|
1250
|
+
s: e.chooseLabel,
|
|
1251
|
+
h: e.popover.ariaExpanded,
|
|
1252
|
+
r: e.ids.popup
|
|
1251
1253
|
}), ({ e, t, a: r, o: a, i: o, n: s, s: c, h: l, r: u }, d) => {
|
|
1252
|
-
|
|
1254
|
+
E(n, e, d?.e), t !== d?.t && N(n, "part", t), he(n, r, d?.a), E(i, a, d?.o), o !== d?.i && N(i, "part", o), s !== d?.n && N(i, "disabled", s), c !== d?.s && N(i, "aria-label", c), l !== d?.h && N(i, "aria-expanded", l), u !== d?.r && N(i, "aria-controls", u);
|
|
1253
1255
|
}), n;
|
|
1254
1256
|
})(), (() => {
|
|
1255
|
-
var
|
|
1256
|
-
return
|
|
1257
|
+
var t = qe();
|
|
1258
|
+
return M(() => (t) => e.popup = t, t), k(t, D(w, {
|
|
1257
1259
|
get when() {
|
|
1258
|
-
return
|
|
1260
|
+
return e.popupIsOpen;
|
|
1259
1261
|
},
|
|
1260
1262
|
get children() {
|
|
1261
|
-
return
|
|
1263
|
+
return e.picker();
|
|
1262
1264
|
}
|
|
1263
|
-
})),
|
|
1264
|
-
e:
|
|
1265
|
-
t: `${
|
|
1266
|
-
a:
|
|
1267
|
-
o:
|
|
1268
|
-
i:
|
|
1269
|
-
}), ({ e
|
|
1270
|
-
|
|
1271
|
-
}),
|
|
1265
|
+
})), O(() => ({
|
|
1266
|
+
e: e.ids.popup,
|
|
1267
|
+
t: `${Pt} ${e.position ?? qt}`,
|
|
1268
|
+
a: j(e.popover.panelStyle),
|
|
1269
|
+
o: e.partForName("popup"),
|
|
1270
|
+
i: e.chooseLabel
|
|
1271
|
+
}), ({ e, t: n, a: r, o: i, i: a }, o) => {
|
|
1272
|
+
e !== o?.e && N(t, "id", e), E(t, n, o?.t), he(t, r, o?.a), i !== o?.o && N(t, "part", i), a !== o?.i && N(t, "aria-label", a);
|
|
1273
|
+
}), t;
|
|
1272
1274
|
})()];
|
|
1273
1275
|
}
|
|
1274
1276
|
picker() {
|
|
1275
1277
|
let e = this;
|
|
1276
|
-
return
|
|
1278
|
+
return D(w, {
|
|
1277
1279
|
get when() {
|
|
1278
1280
|
return e.page;
|
|
1279
1281
|
},
|
|
1280
1282
|
children: (t) => [
|
|
1281
|
-
|
|
1283
|
+
D(w, {
|
|
1282
1284
|
get when() {
|
|
1283
1285
|
return e.calendarType !== "time";
|
|
1284
1286
|
},
|
|
@@ -1286,18 +1288,18 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
1286
1288
|
return e.header(t);
|
|
1287
1289
|
}
|
|
1288
1290
|
}),
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
+
pe(() => e.table(t)),
|
|
1292
|
+
D(w, {
|
|
1291
1293
|
get when() {
|
|
1292
1294
|
return e.today;
|
|
1293
1295
|
},
|
|
1294
1296
|
get children() {
|
|
1295
|
-
var t =
|
|
1296
|
-
return
|
|
1297
|
-
e:
|
|
1297
|
+
var t = Je();
|
|
1298
|
+
return T(t, "click", e.onToday, !0), k(t, () => e.translationForKey(e.dates?.hasTime ? "calendarNow" : "calendarToday")), O(() => ({
|
|
1299
|
+
e: j(Vt),
|
|
1298
1300
|
t: e.partForName("today")
|
|
1299
1301
|
}), ({ e, t: n }, r) => {
|
|
1300
|
-
|
|
1302
|
+
E(t, e, r?.e), n !== r?.t && N(t, "part", n);
|
|
1301
1303
|
}), t;
|
|
1302
1304
|
}
|
|
1303
1305
|
})
|
|
@@ -1306,56 +1308,56 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
1306
1308
|
}
|
|
1307
1309
|
header(e) {
|
|
1308
1310
|
let t = this;
|
|
1309
|
-
var n =
|
|
1310
|
-
return
|
|
1311
|
-
e:
|
|
1311
|
+
var n = Ye(), r = n.firstChild, a = r.nextSibling, o = a.nextSibling;
|
|
1312
|
+
return r._$$click = (n) => t.turnPage(e().previous.target, n), k(r, () => t.previousGlyph.svg), T(a, "click", t.onTitleClick, !0), k(a, () => e().title), o._$$click = (n) => t.turnPage(e().next.target, n), k(o, () => t.nextGlyph.svg), O(() => ({
|
|
1313
|
+
e: j(i),
|
|
1312
1314
|
t: t.partForName("header"),
|
|
1313
|
-
a:
|
|
1315
|
+
a: j(It),
|
|
1314
1316
|
o: t.partForName("previous"),
|
|
1315
1317
|
i: e().previous.disabled,
|
|
1316
1318
|
n: t.translationForKey($t[e().mode][0]),
|
|
1317
1319
|
s: t.ids.title,
|
|
1318
|
-
h:
|
|
1320
|
+
h: j(Lt),
|
|
1319
1321
|
r: t.partForName("title"),
|
|
1320
1322
|
d: !e().up,
|
|
1321
|
-
l:
|
|
1323
|
+
l: j(Rt),
|
|
1322
1324
|
u: t.partForName("next"),
|
|
1323
1325
|
c: e().next.disabled,
|
|
1324
1326
|
w: t.translationForKey($t[e().mode][1])
|
|
1325
|
-
}), ({ e, t, a:
|
|
1326
|
-
|
|
1327
|
+
}), ({ e, t, a: i, o: s, i: c, n: l, s: u, h: d, r: f, d: p, l: m, u: h, c: g, w: _ }, v) => {
|
|
1328
|
+
E(n, e, v?.e), t !== v?.t && N(n, "part", t), E(r, i, v?.a), s !== v?.o && N(r, "part", s), c !== v?.i && N(r, "disabled", c), l !== v?.n && N(r, "aria-label", l), u !== v?.s && N(a, "id", u), E(a, d, v?.h), f !== v?.r && N(a, "part", f), p !== v?.d && N(a, "disabled", p), E(o, m, v?.l), h !== v?.u && N(o, "part", h), g !== v?.c && N(o, "disabled", g), _ !== v?.w && N(o, "aria-label", _);
|
|
1327
1329
|
}), n;
|
|
1328
1330
|
}
|
|
1329
1331
|
table(e) {
|
|
1330
1332
|
let t = this;
|
|
1331
|
-
var n =
|
|
1332
|
-
return
|
|
1333
|
+
var n = Ze(), r = n.firstChild;
|
|
1334
|
+
return T(n, "keydown", t.onGridKeyDown, !0), M(() => (e) => t.grid = e, n), k(n, D(w, {
|
|
1333
1335
|
get when() {
|
|
1334
1336
|
return e().weekdays.length;
|
|
1335
1337
|
},
|
|
1336
1338
|
get children() {
|
|
1337
|
-
var t =
|
|
1338
|
-
return
|
|
1339
|
+
var t = Xe(), n = t.firstChild;
|
|
1340
|
+
return k(n, D(C, {
|
|
1339
1341
|
get each() {
|
|
1340
1342
|
return e().weekdays;
|
|
1341
1343
|
},
|
|
1342
1344
|
keyed: !1,
|
|
1343
1345
|
children: (e) => (() => {
|
|
1344
|
-
var t =
|
|
1345
|
-
return
|
|
1346
|
-
|
|
1346
|
+
var t = Qe();
|
|
1347
|
+
return k(t, () => e().text), O(() => e().label, (e) => {
|
|
1348
|
+
N(t, "abbr", e);
|
|
1347
1349
|
}), t;
|
|
1348
1350
|
})()
|
|
1349
1351
|
})), t;
|
|
1350
1352
|
}
|
|
1351
|
-
}), r),
|
|
1353
|
+
}), r), k(r, D(C, {
|
|
1352
1354
|
get each() {
|
|
1353
1355
|
return e().rows;
|
|
1354
1356
|
},
|
|
1355
1357
|
keyed: !1,
|
|
1356
1358
|
children: (e) => (() => {
|
|
1357
|
-
var n =
|
|
1358
|
-
return
|
|
1359
|
+
var n = $e();
|
|
1360
|
+
return k(n, D(C, {
|
|
1359
1361
|
get each() {
|
|
1360
1362
|
return e();
|
|
1361
1363
|
},
|
|
@@ -1363,27 +1365,27 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
1363
1365
|
children: (e) => t.cell(e)
|
|
1364
1366
|
})), n;
|
|
1365
1367
|
})()
|
|
1366
|
-
})),
|
|
1367
|
-
e: `${
|
|
1368
|
+
})), O(() => ({
|
|
1369
|
+
e: `${zt} ${ie(e().columns)} ${Bt} ${e().mode}`,
|
|
1368
1370
|
t: t.partForName("grid"),
|
|
1369
1371
|
a: t.calendarType === "time" ? void 0 : t.ids.title,
|
|
1370
1372
|
o: t.calendarType === "time" ? t.translationForKey(e().mode === "hour" ? "calendarHours" : "calendarMinutes") : void 0,
|
|
1371
1373
|
i: t.readonly ? "true" : void 0
|
|
1372
1374
|
}), ({ e, t, a: r, o: i, i: a }, o) => {
|
|
1373
|
-
|
|
1375
|
+
E(n, e, o?.e), t !== o?.t && N(n, "part", t), r !== o?.a && N(n, "aria-labelledby", r), i !== o?.o && N(n, "aria-label", i), a !== o?.i && N(n, "aria-readonly", a);
|
|
1374
1376
|
}), n;
|
|
1375
1377
|
}
|
|
1376
1378
|
cell(e) {
|
|
1377
1379
|
let t = this;
|
|
1378
|
-
var n =
|
|
1379
|
-
return n._$$click = (n) => t.choose(e(), n),
|
|
1380
|
-
e:
|
|
1381
|
-
[
|
|
1380
|
+
var n = et();
|
|
1381
|
+
return n._$$click = (n) => t.choose(e(), n), k(n, () => e().text), O(() => ({
|
|
1382
|
+
e: j([Ht, {
|
|
1383
|
+
[Ut]: e().adjacent,
|
|
1382
1384
|
[te]: e().disabled,
|
|
1383
1385
|
[re]: e().active,
|
|
1384
|
-
[
|
|
1385
|
-
[
|
|
1386
|
-
[
|
|
1386
|
+
[Wt]: e().today,
|
|
1387
|
+
[Gt]: e().focus,
|
|
1388
|
+
[Kt]: e().range
|
|
1387
1389
|
}]),
|
|
1388
1390
|
t: t.partForName("cell"),
|
|
1389
1391
|
a: e().focus ? 0 : -1,
|
|
@@ -1392,24 +1394,24 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
1392
1394
|
n: e().today && t.mode === "day" ? "date" : void 0,
|
|
1393
1395
|
s: e().label
|
|
1394
1396
|
}), ({ e, t, a: r, o: i, i: a, n: o, s }, c) => {
|
|
1395
|
-
|
|
1397
|
+
E(n, e, c?.e), t !== c?.t && N(n, "part", t), r !== c?.a && N(n, "tabindex", r), i !== c?.o && N(n, "aria-selected", i), a !== c?.i && N(n, "aria-disabled", a), o !== c?.n && N(n, "aria-current", o), s !== c?.s && N(n, "aria-label", s);
|
|
1396
1398
|
}), n;
|
|
1397
1399
|
}
|
|
1398
1400
|
onPageChanged() {
|
|
1399
1401
|
this.shouldMoveFocus && this.focusGrid();
|
|
1400
1402
|
}
|
|
1401
1403
|
focusGrid() {
|
|
1402
|
-
let e = this.grid?.isConnected ? this.grid.querySelector(
|
|
1404
|
+
let e = this.grid?.isConnected ? this.grid.querySelector($) : void 0;
|
|
1403
1405
|
e && (this.shouldMoveFocus = !1, e.focus());
|
|
1404
1406
|
}
|
|
1405
1407
|
focus(e) {
|
|
1406
|
-
this.control ? this.control.focus(e) : this.grid?.querySelector(
|
|
1408
|
+
this.control ? this.control.focus(e) : this.grid?.querySelector($)?.focus(e);
|
|
1407
1409
|
}
|
|
1408
1410
|
static preload() {
|
|
1409
|
-
return
|
|
1411
|
+
return p.i18n.loadTemporal();
|
|
1410
1412
|
}
|
|
1411
1413
|
static temporalNow() {
|
|
1412
|
-
return globalThis[
|
|
1414
|
+
return globalThis[d] ? p.i18n.temporal : void 0;
|
|
1413
1415
|
}
|
|
1414
1416
|
static merge(e, t, n) {
|
|
1415
1417
|
switch (n) {
|
|
@@ -1442,15 +1444,15 @@ var Oe = B, V = "am", H = "pm", ke = {
|
|
|
1442
1444
|
return Array.isArray(e) ? e : [];
|
|
1443
1445
|
}
|
|
1444
1446
|
};
|
|
1445
|
-
|
|
1447
|
+
U = S(H), W = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), c(U, 4, "temporal", kt, Q, W), c(U, 2, "dates", Ot, Q), c(U, 2, "words", Dt, Q), c(U, 4, "value", Et, Q, G), c(U, 2, "chosenMoment", Tt, Q), c(U, 4, "typedText", wt, Q, K), c(U, 2, "fieldText", Ct, Q), c(U, 1, "commit", St, Q), c(U, 1, "commitTypedText", xt, Q), c(U, 4, "isOpen", bt, Q, q), c(U, 2, "popupIsOpen", yt, Q), c(U, 1, "onPopupOpenChanged", vt, Q), c(U, 1, "onFocusOut", gt, Q), c(U, 4, "explicitMode", ht, Q, J), c(U, 4, "explicitFocus", mt, Q, Y), c(U, 2, "modes", pt, Q), c(U, 2, "earliest", ft, Q), c(U, 2, "latest", dt, Q), c(U, 2, "focusedMoment", ut, Q), c(U, 2, "page", lt, Q), c(U, 1, "choose", ct, Q), c(U, 4, "startPartner", it, Q, X), c(U, 4, "endPartner", rt, Q, Z), c(U, 1, "onPartnersChanged", nt, Q), c(U, 1, "onPageChanged", tt, Q), c(U, 13, "vocabulary", jt, Q), c(U, 13, "elementSetup", At, Q), c(U, 5, "onTriggerClick", _t, Q), c(U, 5, "onTitleClick", st, Q), c(U, 5, "onToday", ot, Q), c(U, 5, "onGridKeyDown", at, Q), f(U, Q), n(Q, "UICalendar"), o(Q, "vocabulary", m(U, 40, Q, ge)), m(U, 43, Q), o(Q, "elementSetup", m(U, 44, Q, {
|
|
1446
1448
|
styleSheets: {
|
|
1447
|
-
input:
|
|
1448
|
-
calendar:
|
|
1449
|
+
input: de,
|
|
1450
|
+
calendar: He
|
|
1449
1451
|
},
|
|
1450
1452
|
cssStates: ["fluid", "inline"],
|
|
1451
|
-
Fallback:
|
|
1452
|
-
})),
|
|
1453
|
-
var
|
|
1453
|
+
Fallback: ye
|
|
1454
|
+
})), m(U, 47, Q);
|
|
1455
|
+
var Mt = Q, Nt = "ui left icon input", Pt = "ui calendar popup", Ft = "calendar", It = "prev link", Lt = "title link", Rt = "next link", zt = "ui celled center aligned unstackable", Bt = "column table", Vt = "today link", Ht = "link", Ut = "adjacent", Wt = "today", Gt = "focus", Kt = "range", $ = "td[tabindex='0']", qt = "bottom left", Jt = "ui-calendar", Yt = "calendar", Xt = "clock", Zt = "chevron-left", Qt = "chevron-right", $t = {
|
|
1454
1456
|
year: ["calendarPreviousYears", "calendarNextYears"],
|
|
1455
1457
|
month: ["calendarPreviousYear", "calendarNextYear"],
|
|
1456
1458
|
day: ["calendarPreviousMonth", "calendarNextMonth"],
|
|
@@ -1459,8 +1461,8 @@ var jt = $, Mt = "ui left icon input", Nt = "ui calendar popup", Pt = "calendar"
|
|
|
1459
1461
|
};
|
|
1460
1462
|
//#endregion
|
|
1461
1463
|
//#region src/components/ui-calendar/index.ts
|
|
1462
|
-
|
|
1464
|
+
fe(["click", "keydown"]), Mt.define();
|
|
1463
1465
|
//#endregion
|
|
1464
|
-
export {
|
|
1466
|
+
export { Mt as UICalendar };
|
|
1465
1467
|
|
|
1466
1468
|
//# sourceMappingURL=ui-calendar.js.map
|