spell-ui 0.8.5 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-components.md +14 -6
- package/README-frameworks.md +22 -12
- package/README-migrating.md +7 -6
- package/README-runtime.md +14 -13
- package/README-site.md +11 -11
- package/README-themes.md +38 -11
- package/README.md +61 -73
- package/dist/Dragging-CMZoLEWQ.js +169 -0
- package/dist/Dragging-CMZoLEWQ.js.map +1 -0
- package/dist/{MarkdownEngine-CbuT9Mjc.js → MarkdownEngine-CW1WGqNp.js} +122 -100
- package/dist/MarkdownEngine-CW1WGqNp.js.map +1 -0
- package/dist/{PrefStore-CeaTtjTz.js → PrefStore-Qv0e5y04.js} +22 -22
- package/dist/PrefStore-Qv0e5y04.js.map +1 -0
- package/dist/ScrollingRow-7n7Z-HIE.js +88 -0
- package/dist/ScrollingRow-7n7Z-HIE.js.map +1 -0
- package/dist/SitePages-CciwREek.js +51 -0
- package/dist/SitePages-CciwREek.js.map +1 -0
- package/dist/{SlottedItems-Ch0tzzlL.js → SlottedItems-Du3aJwG1.js} +22 -22
- package/dist/{SlottedItems-Ch0tzzlL.js.map → SlottedItems-Du3aJwG1.js.map} +1 -1
- package/dist/ThemeDraft-B7NPif4d.js +805 -0
- package/dist/ThemeDraft-B7NPif4d.js.map +1 -0
- package/dist/TreeMeasure-BVJeGb1L.js +42 -0
- package/dist/TreeMeasure-BVJeGb1L.js.map +1 -0
- package/dist/UIButton-DFEds67r.js +6 -0
- package/dist/UIButton-DFEds67r.js.map +1 -0
- package/dist/UIInput-BodVbUoQ.js +6 -0
- package/dist/UIInput-BodVbUoQ.js.map +1 -0
- package/dist/{UIKeys-DJF2TIKE.js → UIKeys-Rh_gUZjP.js} +10 -9
- package/dist/UIKeys-Rh_gUZjP.js.map +1 -0
- package/dist/UILabel-DgJUBzB_.js +6 -0
- package/dist/UILabel-DgJUBzB_.js.map +1 -0
- package/dist/UIMenu-zdcAtwTa.js +42 -0
- package/dist/UIMenu-zdcAtwTa.js.map +1 -0
- package/dist/{UIRuntime-BBuehGly.js → UIRuntime-KH309p5B.js} +398 -207
- package/dist/UIRuntime-KH309p5B.js.map +1 -0
- package/dist/_spell-element/DOMElement.d.ts +62 -5
- package/dist/_spell-element/MoveAndResize.d.ts +75 -0
- package/dist/_spell-element/UIComponent.d.ts +42 -0
- package/dist/_spell-element/elements.types.d.ts +47 -0
- package/dist/_spell-element/index.d.ts +1 -0
- package/dist/_spell-element/vocabulary.types.d.ts +34 -2
- package/dist/{runtime → _util}/Api.d.ts +14 -4
- package/dist/_util/Dragging.d.ts +148 -0
- package/dist/_util/ListSelection.d.ts +46 -0
- package/dist/{util → _util}/LoadOnce.d.ts +9 -1
- package/dist/_util/ReconnectingSocket.d.ts +51 -0
- package/dist/_util/diagram/DiagramColumns.d.ts +14 -0
- package/dist/_util/diagram/DiagramLayout.d.ts +119 -0
- package/dist/_util/diagram/DiagramSVG.d.ts +17 -0
- package/dist/_util/dom.d.ts +10 -0
- package/dist/_util/fetching.d.ts +92 -0
- package/dist/_util/measures/Dimension.d.ts +63 -0
- package/dist/_util/measures/MeasureSystem.d.ts +66 -0
- package/dist/_util/measures/dimensions.generated.d.ts +16 -0
- package/dist/_util/persist/ColorScheme.d.ts +6 -0
- package/dist/_util/persist/ServerPlace.d.ts +42 -0
- package/dist/_util/persist/WaitedOnPlace.d.ts +27 -0
- package/dist/_util/persist/persist.types.d.ts +21 -2
- package/dist/_util/timing.d.ts +10 -1
- package/dist/api.js +8 -7
- package/dist/api.js.map +1 -1
- package/dist/components/ComponentDefinitions.d.ts +29 -0
- package/dist/components/components.es.d.ts +13 -0
- package/dist/components/components.types.d.ts +113 -8
- package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
- package/dist/components/ui-action/UIAction.en.d.ts +5 -1
- package/dist/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
- package/dist/components/ui-button/UIButton.d.ts +8 -3
- package/dist/components/ui-button/UIButton.en.d.ts +9 -4
- package/dist/components/ui-button/UIButton.es.d.ts +6 -0
- package/dist/components/ui-button/UIButton.fallback.d.ts +8 -3
- package/dist/components/ui-button/UIButtons.d.ts +1 -0
- package/dist/components/ui-button/UIButtons.en.d.ts +1 -0
- package/dist/components/ui-button/UIOr.d.ts +1 -0
- package/dist/components/ui-button/UIOr.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
- package/dist/components/ui-card/CardClicks.d.ts +40 -0
- package/dist/components/ui-card/UICard.d.ts +41 -0
- package/dist/components/ui-card/UICard.en.d.ts +49 -0
- package/dist/components/ui-card/UICard.es.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +31 -0
- package/dist/components/ui-card/UICards.en.d.ts +31 -0
- package/dist/components/ui-card/UICards.es.d.ts +8 -0
- package/dist/components/ui-checkbox/CheckControl.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.es.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.types.d.ts +5 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +8 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +6 -0
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
- package/dist/components/ui-components/PackHotSwap.d.ts +17 -1
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +11 -0
- package/dist/components/ui-container/UIContainer.en.d.ts +7 -0
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +268 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +106 -0
- package/dist/components/ui-diagram/UIDiagram.es.d.ts +37 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +98 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +38 -0
- package/dist/components/ui-diagram/UIDiagramNode.es.d.ts +16 -0
- package/dist/components/ui-diagram/index.d.ts +8 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +81 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +54 -0
- package/dist/components/ui-dimension/UIDimension.es.d.ts +22 -0
- package/dist/components/ui-dimension/index.d.ts +2 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +6 -1
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.es.d.ts +1 -1
- package/dist/components/ui-divider/UIDivider.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.es.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +4 -2
- package/dist/components/ui-example/UIExample.es.d.ts +3 -2
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/FormBinding.d.ts +13 -1
- package/dist/components/ui-form/FormFields.d.ts +4 -4
- package/dist/components/ui-form/UIField.d.ts +30 -3
- package/dist/components/ui-form/UIField.en.d.ts +9 -0
- package/dist/components/ui-form/UIField.es.d.ts +6 -0
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +15 -0
- package/dist/components/ui-form/UIForm.en.d.ts +6 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-form/index.d.ts +2 -1
- package/dist/components/ui-grid/UIColumn.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.en.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +3 -2
- package/dist/components/ui-icon/UIIcon.en.d.ts +3 -2
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
- package/dist/components/ui-image/UIImage.d.ts +34 -0
- package/dist/components/ui-image/UIImage.en.d.ts +23 -0
- package/dist/components/ui-image/UIImage.es.d.ts +2 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/TextControl.d.ts +7 -0
- package/dist/components/ui-input/UIInput.d.ts +22 -3
- package/dist/components/ui-input/UIInput.en.d.ts +9 -2
- package/dist/components/ui-input/UIInput.es.d.ts +2 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +9 -2
- package/dist/components/ui-input/UITextarea.d.ts +20 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +15 -0
- package/dist/components/ui-input/UITextarea.es.d.ts +4 -0
- package/dist/components/ui-item/UIItem.d.ts +27 -4
- package/dist/components/ui-item/UIItem.en.d.ts +5 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/JsonChild.d.ts +30 -0
- package/dist/components/ui-json/UIJson.d.ts +128 -0
- package/dist/components/ui-json/UIJson.en.d.ts +71 -0
- package/dist/components/ui-json/UIJson.es.d.ts +12 -0
- package/dist/components/ui-json/index.d.ts +3 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +2 -0
- package/dist/components/ui-label/UILabel.en.d.ts +2 -0
- package/dist/components/ui-label/UILabel.es.d.ts +1 -0
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +2 -0
- package/dist/components/ui-list/UIList.en.d.ts +2 -0
- package/dist/components/ui-list/UIList.es.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +143 -0
- package/dist/components/ui-markdown/MarkdownEngine.d.ts +14 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +95 -0
- package/dist/components/ui-markdown/MarkdownSource.d.ts +57 -0
- package/dist/components/ui-markdown/UIMarkdown.d.ts +126 -6
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +111 -8
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +29 -1
- package/dist/components/ui-markdown/UIMarkdown.types.d.ts +26 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +79 -0
- package/dist/components/ui-menu/TitleFit.d.ts +3 -0
- package/dist/components/ui-menu/UIMenu.d.ts +97 -4
- package/dist/components/ui-menu/UIMenu.en.d.ts +50 -1
- package/dist/components/ui-menu/UIMenu.es.d.ts +4 -0
- package/dist/components/ui-message/UIMessage.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.en.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.es.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +1 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +15 -0
- package/dist/components/ui-page/UIPage.en.d.ts +15 -0
- package/dist/components/ui-page/UIPage.es.d.ts +1 -0
- package/dist/components/ui-panel/UIPanel.d.ts +6 -0
- package/dist/components/ui-panel/UIPanel.en.d.ts +33 -20
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.en.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +3 -1
- package/dist/components/ui-parts/UIHeader.en.d.ts +3 -1
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +15 -1
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +30 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +7 -0
- package/dist/components/ui-popup/UIPopup.es.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.en.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.es.d.ts +1 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +132 -5
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +11 -44
- package/dist/components/ui-property-editor/UIProperty.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +38 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +33 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +12 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +2 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.es.d.ts +9 -0
- package/dist/components/ui-property-editor/index.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +6 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.d.ts +18 -3
- package/dist/components/ui-root/UIRoot.en.d.ts +15 -0
- package/dist/components/ui-root/UIRoot.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +48 -7
- package/dist/components/ui-search/UISearch.en.d.ts +13 -1
- package/dist/components/ui-search/UISearch.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +13 -1
- package/dist/components/ui-section/UISection.d.ts +30 -1
- package/dist/components/ui-section/UISection.en.d.ts +10 -0
- package/dist/components/ui-section/UISection.es.d.ts +1 -0
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.en.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.es.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +6 -0
- package/dist/components/ui-select/UISelect.en.d.ts +6 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +6 -0
- package/dist/components/ui-shape/UIShape.d.ts +23 -2
- package/dist/components/ui-shape/UIShape.en.d.ts +8 -0
- package/dist/components/ui-shape/UIShape.es.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +4 -0
- package/dist/components/ui-shape/UISide.en.d.ts +4 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +209 -0
- package/dist/components/ui-sides/UISides.en.d.ts +122 -0
- package/dist/components/ui-sides/UISides.es.d.ts +30 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +134 -0
- package/dist/components/ui-sides/index.d.ts +2 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +53 -0
- package/dist/components/ui-site-nav/UISiteNav.d.ts +207 -0
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +87 -0
- package/dist/components/ui-site-nav/UISiteNav.es.d.ts +29 -0
- package/dist/components/ui-site-nav/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +126 -0
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +49 -0
- package/dist/components/ui-site-tabs/UISiteTabs.es.d.ts +18 -0
- package/dist/components/ui-site-tabs/index.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.es.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +7 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +175 -0
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +74 -0
- package/dist/components/ui-split-panel/UISplitPanel.es.d.ts +25 -0
- package/dist/components/ui-split-panel/index.d.ts +2 -0
- package/dist/components/ui-stack/UIStack.d.ts +31 -5
- package/dist/components/ui-stack/UIStack.en.d.ts +15 -3
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +1 -0
- package/dist/components/ui-step/UISteps.en.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.d.ts +4 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +8 -0
- package/dist/components/ui-tab/UITab.en.d.ts +1 -0
- package/dist/components/ui-tab/UITabs.d.ts +107 -16
- package/dist/components/ui-tab/UITabs.en.d.ts +40 -1
- package/dist/components/ui-tab/UITabs.es.d.ts +4 -0
- package/dist/components/ui-table/TableEditing.d.ts +77 -0
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +145 -5
- package/dist/components/ui-table/UITable.en.d.ts +19 -0
- package/dist/components/ui-table/UITable.es.d.ts +3 -0
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +11 -0
- package/dist/components/ui-text/UILink.en.d.ts +4 -0
- package/dist/components/ui-text/UIText.d.ts +7 -0
- package/dist/components/ui-text/UIText.en.d.ts +7 -0
- package/dist/components/ui-text/UIText.es.d.ts +2 -0
- package/dist/components/ui-theme-editor/SavedTheme.d.ts +55 -43
- package/dist/components/ui-theme-editor/ThemeDraft.d.ts +15 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +157 -26
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +79 -6
- package/dist/components/ui-theme-editor/UIThemeEditor.es.d.ts +20 -2
- package/dist/components/ui-theme-editor/UIThemeEditor.types.d.ts +0 -2
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/HueDropdown.d.ts +47 -0
- package/dist/components/ui-theme-menu/ThemeMenu.d.ts +18 -7
- package/dist/components/ui-theme-menu/ThemePreference.d.ts +145 -36
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +118 -7
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +82 -2
- package/dist/components/ui-theme-menu/UIThemeMenu.es.d.ts +21 -1
- package/dist/components/ui-theme-menu/UIThemeMenu.types.d.ts +36 -8
- package/dist/components/ui-theme-menu/index.d.ts +2 -1
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +13 -10
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +138 -84
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +2 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +162 -0
- package/dist/components/ui-tree/UITree.en.d.ts +88 -0
- package/dist/components/ui-tree/UITree.es.d.ts +35 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +204 -0
- package/dist/components/ui-tree/UITreeItem.en.d.ts +142 -0
- package/dist/components/ui-tree/UITreeItem.es.d.ts +32 -0
- package/dist/components/ui-tree/index.d.ts +3 -0
- package/dist/components/ui-tree-diagram/TreeData.d.ts +3 -12
- package/dist/components/ui-tree-diagram/TreeLayout.d.ts +54 -21
- package/dist/components/ui-tree-diagram/TreeMeasure.d.ts +36 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +152 -27
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +47 -7
- package/dist/components/ui-tree-diagram/UITreeDiagram.es.d.ts +12 -1
- package/dist/components/ui-tree-diagram/UITreeDiagram.types.d.ts +66 -21
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +148 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +69 -0
- package/dist/components/ui-tree-diagram/UITreeNode.es.d.ts +21 -0
- package/dist/components/ui-tree-diagram/index.d.ts +4 -2
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-DmLzT-Bq.js → components.es-BOa_7gFF.js} +498 -109
- package/dist/components.es-BOa_7gFF.js.map +1 -0
- package/dist/core.d.ts +3 -1
- package/dist/core.js +1082 -511
- package/dist/core.js.map +1 -1
- package/dist/crisp-VfYZlTph.js +6 -0
- package/dist/{crisp-CoZRRDuQ.js.map → crisp-VfYZlTph.js.map} +1 -1
- package/dist/docs-components/index.d.ts +1 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.d.ts +89 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.en.d.ts +43 -0
- package/dist/docs-components/ui-docs-index/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.d.ts +54 -87
- package/dist/docs-components/ui-docs-nav/UIDocsNav.types.d.ts +2 -29
- package/dist/docs-components/ui-docs-search/SearchIndex.d.ts +8 -2
- package/dist/docs-components/ui-docs-search/UIDocsSearch.d.ts +10 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.en.d.ts +5 -0
- package/dist/elements/AddressParameter.d.ts +87 -0
- package/dist/elements/DOMFormControl.d.ts +5 -0
- package/dist/elements/FormComponent.d.ts +32 -0
- package/dist/elements/LoadableBody.d.ts +6 -1
- package/dist/elements/LoadableComponent.d.ts +10 -1
- package/dist/elements/RootSettings.d.ts +43 -6
- package/dist/elements/SpellUISettings.d.ts +1 -0
- package/dist/elements/StickyWatch.d.ts +20 -0
- package/dist/elements/elements.types.d.ts +15 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/forms.js +93 -63
- package/dist/forms.js.map +1 -1
- package/dist/fruity-BRVlgJZd.js +6 -0
- package/dist/fruity-BRVlgJZd.js.map +1 -0
- package/dist/{fruity.theme-BJcMiPl1.js → fruity.theme-CbC7Jyvk.js} +2 -2
- package/dist/fruity.theme-CbC7Jyvk.js.map +1 -0
- package/dist/glass-x9tbbwVq.js +6 -0
- package/dist/glass-x9tbbwVq.js.map +1 -0
- package/dist/glass.theme-24wY2wH9.js +6 -0
- package/dist/glass.theme-24wY2wH9.js.map +1 -0
- package/dist/hot.js +536 -26
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +91 -81
- package/dist/jsx.d.ts +21149 -10377
- package/dist/matrix-QY2gWbJ0.js +6 -0
- package/dist/{matrix-CqA59hiF.js.map → matrix-QY2gWbJ0.js.map} +1 -1
- package/dist/{matrix.theme-jqQZjcq3.js → matrix.theme-_8xtwhDq.js} +2 -2
- package/dist/matrix.theme-_8xtwhDq.js.map +1 -0
- package/dist/midnight-BxlTQSfw.js +6 -0
- package/dist/{midnight-BnoVOrhC.js.map → midnight-BxlTQSfw.js.map} +1 -1
- package/dist/mockup-83ELBuVr.js +6 -0
- package/dist/mockup-83ELBuVr.js.map +1 -0
- package/dist/mockup.theme-DmpBgGBl.js +6 -0
- package/dist/mockup.theme-DmpBgGBl.js.map +1 -0
- package/dist/paper-M61nUilz.js +6 -0
- package/dist/{paper-CynH8ZuT.js.map → paper-M61nUilz.js.map} +1 -1
- package/dist/persist.types-D2m6wD-S.js +9 -0
- package/dist/persist.types-D2m6wD-S.js.map +1 -0
- package/dist/pop-CxXfytjk.js +6 -0
- package/dist/{pop-D2i9V_rG.js.map → pop-CxXfytjk.js.map} +1 -1
- package/dist/runtime/DataTooltips.d.ts +75 -0
- package/dist/runtime/PropertyControls.d.ts +15 -1
- package/dist/runtime/Sources.d.ts +16 -4
- package/dist/runtime/Styles.d.ts +11 -0
- package/dist/runtime/Themes.d.ts +10 -4
- package/dist/runtime/UIRuntime.d.ts +4 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/runtime.types.d.ts +18 -85
- package/dist/spell-By5Y3jKP.js +6 -0
- package/dist/{spell-BFtLICm7.js.map → spell-By5Y3jKP.js.map} +1 -1
- package/dist/{spell.theme-B7AU7SQX.js → spell.theme-DxGj7qHx.js} +2 -2
- package/dist/spell.theme-DxGj7qHx.js.map +1 -0
- package/dist/styles/CodeThemeFile.d.ts +73 -0
- package/dist/styles/StyleGenerator.d.ts +6 -0
- package/dist/styles/styles.en.d.ts +141 -3
- package/dist/styles/styles.types.d.ts +2 -0
- package/dist/{styles.en-RLpYiO5_.js → styles.en-CUUxNwHo.js} +71 -14
- package/dist/styles.en-CUUxNwHo.js.map +1 -0
- package/dist/styles.js +13 -13
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.js +54 -53
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.js +20 -19
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-ad.js +5 -4
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-breadcrumbs.js +15 -13
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.js +132 -125
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-calendar.js +208 -206
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.js +260 -98
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-checkbox.js +95 -81
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.js +25 -24
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-comment.js +14 -12
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-components.js +7 -6
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.js +24 -12
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-diagram.js +1328 -0
- package/dist/ui-diagram.js.map +1 -0
- package/dist/ui-dimension.js +779 -0
- package/dist/ui-dimension.js.map +1 -0
- package/dist/ui-dimmer.js +36 -34
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.js +7 -5
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.js +107 -105
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.js +36 -35
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.js +10 -9
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-example.js +63 -61
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-feed.js +12 -10
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-flag.js +10 -9
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.js +7 -6
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.js +244 -162
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.js +21 -18
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-icon-picker.js +46 -44
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.js +17 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-image.js +93 -55
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-include.js +18 -17
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.js +154 -112
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.js +152 -102
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.js +9 -8
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.js +115 -0
- package/dist/ui-json.js.map +1 -0
- package/dist/ui-keys.js +1 -1
- package/dist/ui-label.js +18 -15
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-list.js +7 -5
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.js +7 -6
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.js +975 -83
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.js +329 -196
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.js +20 -18
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-modal.js +46 -45
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.js +19 -18
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-page.js +8 -7
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.js +28 -17
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +66 -52
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder.js +21 -16
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.js +113 -84
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.js +9 -7
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.js +706 -203
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-quote.js +5 -4
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-rail.js +5 -4
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.js +31 -29
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-reveal.js +7 -6
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.js +324 -158
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-search.js +210 -168
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.js +167 -130
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-segment.js +15 -12
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-select.js +83 -81
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.js +86 -58
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-sidebar.js +59 -56
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.js +325 -0
- package/dist/ui-sides.js.map +1 -0
- package/dist/ui-site-nav.js +329 -0
- package/dist/ui-site-nav.js.map +1 -0
- package/dist/ui-site-tabs.js +177 -0
- package/dist/ui-site-tabs.js.map +1 -0
- package/dist/ui-slider.js +84 -81
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.js +7 -6
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.js +298 -0
- package/dist/ui-split-panel.js.map +1 -0
- package/dist/ui-stack.js +47 -23
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.js +15 -13
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-step.js +31 -29
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-sticky.js +7 -6
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-tab.js +230 -138
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.js +724 -162
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-terms.js +12 -10
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.js +53 -28
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-theme-editor.js +1018 -1545
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js +1493 -0
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +1 -0
- package/dist/ui-toast.js +45 -44
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.js +75 -74
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.js +51 -73
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.js +12 -11
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.js +676 -197
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree.js +625 -0
- package/dist/ui-tree.js.map +1 -0
- package/dist/ui-video.js +13 -11
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.js +26 -25
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.js +79 -78
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +28 -0
- package/dist/util/index.d.ts +5 -2
- package/dist/vocabulary/DefaultValues.d.ts +34 -0
- package/dist/vocabulary/SharedVocabulary.d.ts +4 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +7 -0
- package/dist/vocabulary/ValueSets.d.ts +18 -0
- package/dist/vocabulary/Vocabulary.d.ts +1 -0
- package/dist/vocabulary/defaults.generated.d.ts +6 -0
- package/dist/vocabulary/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/MarkdownEngine-CbuT9Mjc.js.map +0 -1
- package/dist/PrefStore-CeaTtjTz.js.map +0 -1
- package/dist/UIButton-XkfGqgh6.js +0 -6
- package/dist/UIButton-XkfGqgh6.js.map +0 -1
- package/dist/UIInput-BUudZstW.js +0 -6
- package/dist/UIInput-BUudZstW.js.map +0 -1
- package/dist/UIKeys-DJF2TIKE.js.map +0 -1
- package/dist/UILabel-C1jy3Yl8.js +0 -6
- package/dist/UILabel-C1jy3Yl8.js.map +0 -1
- package/dist/UIMenu-Btd-8V3A.js +0 -42
- package/dist/UIMenu-Btd-8V3A.js.map +0 -1
- package/dist/UIRuntime-BBuehGly.js.map +0 -1
- package/dist/components.es-DmLzT-Bq.js.map +0 -1
- package/dist/crisp-CoZRRDuQ.js +0 -6
- package/dist/fruity-CQFYeRlh.js +0 -6
- package/dist/fruity-CQFYeRlh.js.map +0 -1
- package/dist/fruity.theme-BJcMiPl1.js.map +0 -1
- package/dist/glass-CAfW11kL.js +0 -6
- package/dist/glass-CAfW11kL.js.map +0 -1
- package/dist/glass.theme-DQcBbtCW.js +0 -6
- package/dist/glass.theme-DQcBbtCW.js.map +0 -1
- package/dist/matrix-CqA59hiF.js +0 -6
- package/dist/matrix.theme-jqQZjcq3.js.map +0 -1
- package/dist/midnight-BnoVOrhC.js +0 -6
- package/dist/paper-CynH8ZuT.js +0 -6
- package/dist/persist.types-CsZxS8TG.js +0 -9
- package/dist/persist.types-CsZxS8TG.js.map +0 -1
- package/dist/pop-D2i9V_rG.js +0 -6
- package/dist/spell-BFtLICm7.js +0 -6
- package/dist/spell.theme-B7AU7SQX.js.map +0 -1
- package/dist/styles.en-RLpYiO5_.js.map +0 -1
- package/dist/ui-theme-menu-DyKZygpV.js +0 -921
- package/dist/ui-theme-menu-DyKZygpV.js.map +0 -1
package/dist/ui-form.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { Bt as e, Converters as t, DOMElement as n,
|
|
3
|
-
import { FormComponent as
|
|
4
|
-
import { For as
|
|
5
|
-
import { addEvent as
|
|
2
|
+
import { Bt as e, Converters as t, DOMElement as n, Ht as r, IconGlyph as i, Lt as a, R as o, Reactive as s, Rt as c, SlotContent as l, T as u, TopLayerTip as ee, UIComponent as d, Ut as f, Vt as p, Warnings as te, _ as ne, _t as re, after as ie, afterSolidUpdate as m, byDocumentOrder as ae, cssState as h, g as oe, on as g, onChange as _, proto as v, protoMerged as y, soon as se, state as b, untracked as x, vt as ce, whileConnected as le, zt as S } from "./core.js";
|
|
3
|
+
import { FormComponent as ue } from "./forms.js";
|
|
4
|
+
import { For as de, Show as C, createEffect as fe } from "solid-js";
|
|
5
|
+
import { addEvent as pe, className as w, createComponent as T, delegateEvents as me, effect as E, getOwner as D, insert as O, isServer as he, memo as k, readShallow as A, ref as ge, setAttribute as j, spread as _e, template as M } from "@solidjs/web";
|
|
6
6
|
//#region src/components/ui-form/UIForm.types.ts
|
|
7
7
|
var ve = [
|
|
8
8
|
{
|
|
@@ -29,7 +29,7 @@ var ve = [
|
|
|
29
29
|
static of(e) {
|
|
30
30
|
return Object.fromEntries(u.map((t) => [t, t === e]));
|
|
31
31
|
}
|
|
32
|
-
},
|
|
32
|
+
}, N = `:state(${ne})`, P = class FormFields {
|
|
33
33
|
domElement;
|
|
34
34
|
form;
|
|
35
35
|
constructor({ domElement: e, form: t }) {
|
|
@@ -37,7 +37,7 @@ var ve = [
|
|
|
37
37
|
}
|
|
38
38
|
controls() {
|
|
39
39
|
let e = this.form(), t = e ? [...e.elements] : [...this.domElement.querySelectorAll(Se), ...this.customControls()], n = !e || !e.contains(this.domElement) ? t : t.filter((e) => this.domElement.contains(e));
|
|
40
|
-
return [...new Set(n)].filter(FormFields.isControl).sort(
|
|
40
|
+
return [...new Set(n)].filter(FormFields.isControl).sort(ae);
|
|
41
41
|
}
|
|
42
42
|
fields() {
|
|
43
43
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -65,7 +65,7 @@ var ve = [
|
|
|
65
65
|
let t = e.labels, n = t ? [...t].map((e) => e.textContent?.trim() ?? "").find(Boolean) : void 0;
|
|
66
66
|
if (n) return n;
|
|
67
67
|
}
|
|
68
|
-
let n = t[0]?.closest(
|
|
68
|
+
let n = t[0]?.closest(N);
|
|
69
69
|
return n?.querySelector(":scope > label")?.textContent?.trim() || n?.shownLabel || (t.length === 1 && FormFields.isCheckable(t[0]) ? t[0].textContent?.trim() : void 0) || e;
|
|
70
70
|
}
|
|
71
71
|
labels(e) {
|
|
@@ -78,7 +78,7 @@ var ve = [
|
|
|
78
78
|
if (!i.length) return [];
|
|
79
79
|
let a = [], o = /* @__PURE__ */ new Set(), s = FormFields.specFor(t, e.identifier);
|
|
80
80
|
if (s && !(s.depends && FormFields.isBlank(n[s.depends]))) {
|
|
81
|
-
let t =
|
|
81
|
+
let t = ue.validator.validate(n[e.identifier], s.rules, {
|
|
82
82
|
name: e.identifier,
|
|
83
83
|
label: r[e.identifier],
|
|
84
84
|
fieldValues: n,
|
|
@@ -94,7 +94,7 @@ var ve = [
|
|
|
94
94
|
return a;
|
|
95
95
|
}
|
|
96
96
|
customControls() {
|
|
97
|
-
return [...this.domElement.querySelectorAll("*")].filter((e) => e.constructor.formAssociated);
|
|
97
|
+
return [...this.domElement.querySelectorAll("*")].filter((e) => e.constructor.formAssociated || e.matches(Oe));
|
|
98
98
|
}
|
|
99
99
|
static valueFor(e) {
|
|
100
100
|
let [t] = e;
|
|
@@ -142,11 +142,11 @@ var ve = [
|
|
|
142
142
|
return e == null || e === !1 || e === "" || Array.isArray(e) && !e.length;
|
|
143
143
|
}
|
|
144
144
|
static isControl(e) {
|
|
145
|
-
return e instanceof HTMLInputElement ? !Ee.has(e.type) : e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement ? !0 : e instanceof HTMLButtonElement || e instanceof HTMLFieldSetElement ? !1 : "validity" in e && e.constructor.formAssociated === !0;
|
|
145
|
+
return e instanceof HTMLInputElement ? !Ee.has(e.type) : e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement ? !0 : e instanceof HTMLButtonElement || e instanceof HTMLFieldSetElement ? !1 : "validity" in e && e.constructor.formAssociated === !0 || e.matches(Oe);
|
|
146
146
|
}
|
|
147
147
|
static identifierFor(e) {
|
|
148
148
|
let t = FormFields.nameOf(e);
|
|
149
|
-
return !t && e.id && !De.has(e) && (De.add(e),
|
|
149
|
+
return !t && e.id && !De.has(e) && (De.add(e), te.warn("<ui-form>", `#${e.id} has no name, so the form skips it; give it name="..."`)), t;
|
|
150
150
|
}
|
|
151
151
|
static nameOf(e) {
|
|
152
152
|
let t = e.name;
|
|
@@ -173,7 +173,7 @@ var ve = [
|
|
|
173
173
|
return Array.isArray(n) ? n.map(String) : typeof n == "string" && e.hasAttribute("multiple") && !(e instanceof HTMLInputElement) ? t.list(n) : typeof n == "string" ? n : typeof n == "number" || typeof n == "boolean" ? String(n) : "";
|
|
174
174
|
}
|
|
175
175
|
static willValidate(e) {
|
|
176
|
-
return e.willValidate !== !1 && !e.closest(
|
|
176
|
+
return e.willValidate !== !1 && !e.closest(N)?.matches(oe);
|
|
177
177
|
}
|
|
178
178
|
}, Se = "input, select, textarea", Ce = [
|
|
179
179
|
"valueMissing",
|
|
@@ -191,23 +191,23 @@ var ve = [
|
|
|
191
191
|
"reset",
|
|
192
192
|
"button",
|
|
193
193
|
"image"
|
|
194
|
-
]), De = /* @__PURE__ */ new WeakSet(), Oe, ke, Ae = [x],
|
|
195
|
-
|
|
196
|
-
var
|
|
197
|
-
constructor({ domElement: t, fields: n, form:
|
|
198
|
-
f(
|
|
194
|
+
]), De = /* @__PURE__ */ new WeakSet(), Oe = ":state(form-value)", ke, Ae, je = [x], F;
|
|
195
|
+
Ae = [x], ke = [x];
|
|
196
|
+
var I = class _FormBinding {
|
|
197
|
+
constructor({ domElement: t, fields: n, form: i }) {
|
|
198
|
+
f(F, 5, this), r(this, "domElement"), r(this, "fields"), r(this, "form"), r(this, "bindings", /* @__PURE__ */ new Map()), r(this, "changed", /* @__PURE__ */ new Set()), r(this, "delayed", /* @__PURE__ */ new Map()), r(this, "isBinding", !1), r(this, "awaitedTags", /* @__PURE__ */ new Set()), r(this, "onChange", /* @__PURE__ */ e((e) => {
|
|
199
199
|
if (!this.bindings.size) return;
|
|
200
200
|
let t = this.controlFor(e);
|
|
201
|
-
if (!t) return;
|
|
201
|
+
if (!t || e.type === "input" && t.settlesItself) return;
|
|
202
202
|
let n = _FormBinding.applyOf(t), r = e.type === "change";
|
|
203
203
|
if (n.mode === "on leave" && !r) return void this.waiting.add(t);
|
|
204
204
|
if (n.mode === "delayed" && !r) return this.writeAfterPause(t, n.delay);
|
|
205
205
|
this.delayed.get(t)?.cancel(), this.delayed.delete(t), this.writeSoon(t);
|
|
206
|
-
}, "onChange")),
|
|
206
|
+
}, "onChange")), r(this, "onLeave", /* @__PURE__ */ e((e) => {
|
|
207
207
|
if (!this.bindings.size) return;
|
|
208
208
|
let t = this.controlFor(e);
|
|
209
209
|
t && (_FormBinding.applyOf(t).mode === "on leave" || this.delayed.has(t)) && (this.delayed.get(t)?.cancel(), this.delayed.delete(t), this.writeSoon(t));
|
|
210
|
-
}, "onLeave")),
|
|
210
|
+
}, "onLeave")), r(this, "waiting", /* @__PURE__ */ new Set()), r(this, "held", /* @__PURE__ */ new Map()), this.domElement = t, this.fields = n, this.form = i;
|
|
211
211
|
}
|
|
212
212
|
update() {
|
|
213
213
|
this.isBinding = !0;
|
|
@@ -216,14 +216,14 @@ var F = class _FormBinding {
|
|
|
216
216
|
for (let [t, n] of this.bindings) e.has(t) || (n.dispose(), this.bindings.delete(t), this.held.delete(t));
|
|
217
217
|
for (let t of e) {
|
|
218
218
|
if (this.bindings.has(t)) continue;
|
|
219
|
-
let e =
|
|
219
|
+
let e = P.nameOf(t), n = e ? _FormBinding.holderAround(t) : void 0;
|
|
220
220
|
e && n && this.bindings.set(t, _FormBinding.bind(t, e, n));
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
updateWhenAttached(e) {
|
|
224
224
|
this.awaitedTags.has(e) || (this.awaitedTags.add(e), n.whenAttached(e).then(() => {
|
|
225
225
|
this.awaitedTags.delete(e), this.isBinding && this.update();
|
|
226
|
-
}).catch((t) =>
|
|
226
|
+
}).catch((t) => te.warn("<ui-form value>", `can't wait for <${e}>:`, t)));
|
|
227
227
|
}
|
|
228
228
|
stop() {
|
|
229
229
|
this.isBinding = !1;
|
|
@@ -232,8 +232,8 @@ var F = class _FormBinding {
|
|
|
232
232
|
this.bindings.clear(), this.changed.clear(), this.delayed.clear(), this.waiting.clear(), this.dropHeld();
|
|
233
233
|
}
|
|
234
234
|
static bind(e, t, n) {
|
|
235
|
-
return
|
|
236
|
-
t !==
|
|
235
|
+
return s.ownRoot((r) => (fe(() => _FormBinding.valueIn(n(), t), (t) => {
|
|
236
|
+
t !== R && (_FormBinding.markMixed(e, t === z), _FormBinding.show(e, t === z ? void 0 : t));
|
|
237
237
|
}), {
|
|
238
238
|
name: t,
|
|
239
239
|
scope: n,
|
|
@@ -246,7 +246,7 @@ var F = class _FormBinding {
|
|
|
246
246
|
}));
|
|
247
247
|
}
|
|
248
248
|
writeAfterPause(e, t) {
|
|
249
|
-
this.waiting.add(e), this.delayed.get(e)?.cancel(), this.delayed.set(e,
|
|
249
|
+
this.waiting.add(e), this.delayed.get(e)?.cancel(), this.delayed.set(e, ie(t / 1e3, () => {
|
|
250
250
|
this.delayed.delete(e), this.writeBack(e);
|
|
251
251
|
}));
|
|
252
252
|
}
|
|
@@ -262,12 +262,12 @@ var F = class _FormBinding {
|
|
|
262
262
|
if (!t) return;
|
|
263
263
|
let n = _FormBinding.targetsOf(t.scope());
|
|
264
264
|
if (!n.length) return;
|
|
265
|
-
let r = _FormBinding.valueIn(t.scope(), t.name), i = _FormBinding.valueFor(e, r ===
|
|
266
|
-
if (i !==
|
|
265
|
+
let r = _FormBinding.valueIn(t.scope(), t.name), i = _FormBinding.valueFor(e, r === z ? void 0 : r);
|
|
266
|
+
if (i !== R && this.form.canWrite(e)) {
|
|
267
267
|
if (this.form.isHolding()) return this.hold(e, t, i);
|
|
268
268
|
if (i !== r) {
|
|
269
269
|
_FormBinding.markMixed(e, !1);
|
|
270
|
-
for (let e of n)
|
|
270
|
+
for (let e of n) this.write(e, t.name, i);
|
|
271
271
|
this.form.onWrite?.({
|
|
272
272
|
control: e,
|
|
273
273
|
name: t.name,
|
|
@@ -277,12 +277,15 @@ var F = class _FormBinding {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
+
write(e, t, n) {
|
|
281
|
+
this.form.writesItself?.(e, t, n) || _FormBinding.write(e, t, n);
|
|
282
|
+
}
|
|
280
283
|
static write(e, t, n) {
|
|
281
284
|
if (_FormBinding.read(e, t) !== n) try {
|
|
282
285
|
let { owner: r, key: i } = _FormBinding.ownerOf(e, t);
|
|
283
286
|
r && (r[i] = n);
|
|
284
287
|
} catch (e) {
|
|
285
|
-
|
|
288
|
+
te.warn("<ui-form value>", `can't set \`${t}\`:`, e);
|
|
286
289
|
}
|
|
287
290
|
}
|
|
288
291
|
controlFor(e) {
|
|
@@ -313,7 +316,7 @@ var F = class _FormBinding {
|
|
|
313
316
|
for (let [e, { binding: t, value: n }] of this.held) {
|
|
314
317
|
_FormBinding.markMixed(e, !1);
|
|
315
318
|
let r = _FormBinding.targetsOf(t.scope());
|
|
316
|
-
for (let e of r)
|
|
319
|
+
for (let e of r) this.write(e, t.name, n);
|
|
317
320
|
this.form.onWrite?.({
|
|
318
321
|
control: e,
|
|
319
322
|
name: t.name,
|
|
@@ -327,7 +330,7 @@ var F = class _FormBinding {
|
|
|
327
330
|
if (this.held.size) {
|
|
328
331
|
for (let [e, { binding: t }] of this.held) {
|
|
329
332
|
let n = _FormBinding.valueIn(t.scope(), t.name);
|
|
330
|
-
n !==
|
|
333
|
+
n !== R && (_FormBinding.markMixed(e, n === z), _FormBinding.show(e, n === z ? void 0 : n));
|
|
331
334
|
}
|
|
332
335
|
this.held.clear(), this.form.onHeldChange();
|
|
333
336
|
}
|
|
@@ -352,9 +355,9 @@ var F = class _FormBinding {
|
|
|
352
355
|
}
|
|
353
356
|
static valueIn(e, t) {
|
|
354
357
|
let n = _FormBinding.targetsOf(e);
|
|
355
|
-
if (!n.length) return
|
|
358
|
+
if (!n.length) return R;
|
|
356
359
|
let r = _FormBinding.read(n[0], t);
|
|
357
|
-
return n.every((e) => _FormBinding.read(e, t) === r) ? r :
|
|
360
|
+
return n.every((e) => _FormBinding.read(e, t) === r) ? r : z;
|
|
358
361
|
}
|
|
359
362
|
static read(e, t) {
|
|
360
363
|
let n = e;
|
|
@@ -372,18 +375,18 @@ var F = class _FormBinding {
|
|
|
372
375
|
};
|
|
373
376
|
}
|
|
374
377
|
static applyOf(e) {
|
|
375
|
-
let t = e.closest(
|
|
378
|
+
let t = e.closest(N)?.getAttribute("apply")?.trim() ?? "";
|
|
376
379
|
if (t === "on leave") return { mode: "on leave" };
|
|
377
380
|
let n = /^delayed(?:\s+(\d+)(?:\s*ms)?)?$/.exec(t);
|
|
378
381
|
return n ? {
|
|
379
382
|
mode: "delayed",
|
|
380
|
-
delay: n[1] ? Number(n[1]) :
|
|
383
|
+
delay: n[1] ? Number(n[1]) : Ne
|
|
381
384
|
} : { mode: "immediately" };
|
|
382
385
|
}
|
|
383
386
|
static markMixed(e, t) {
|
|
384
|
-
let n = e.closest(
|
|
385
|
-
if (n && n.hasAttribute("mixed") !== t && n.toggleAttribute("mixed", t), !(t === _FormBinding.ownPlaceholders.has(e) ||
|
|
386
|
-
if (t) _FormBinding.ownPlaceholders.set(e, e.getAttribute("placeholder")), e.setAttribute("placeholder", n?.mixedText ??
|
|
387
|
+
let n = e.closest(N);
|
|
388
|
+
if (n && n.hasAttribute("mixed") !== t && n.toggleAttribute("mixed", t), !(t === _FormBinding.ownPlaceholders.has(e) || P.isCheckable(e))) {
|
|
389
|
+
if (t) _FormBinding.ownPlaceholders.set(e, e.getAttribute("placeholder")), e.setAttribute("placeholder", n?.mixedText ?? Me);
|
|
387
390
|
else {
|
|
388
391
|
let t = _FormBinding.ownPlaceholders.get(e);
|
|
389
392
|
_FormBinding.ownPlaceholders.delete(e), t == null ? e.removeAttribute("placeholder") : e.setAttribute("placeholder", t);
|
|
@@ -391,23 +394,25 @@ var F = class _FormBinding {
|
|
|
391
394
|
}
|
|
392
395
|
}
|
|
393
396
|
static show(e, t) {
|
|
394
|
-
if (
|
|
395
|
-
let n =
|
|
396
|
-
if (
|
|
397
|
+
if (P.isCheckable(e)) {
|
|
398
|
+
let n = P.isRadio(e) ? _FormBinding.isRadioValue(e, t) : !!t;
|
|
399
|
+
if (P.isChosen(e) === n) return;
|
|
397
400
|
e.checked = n;
|
|
398
|
-
|
|
401
|
+
} else {
|
|
402
|
+
let n = Array.isArray(t) ? t : _FormBinding.textOf(t), r = e;
|
|
403
|
+
if (r.value === n) return;
|
|
404
|
+
r.value = n;
|
|
399
405
|
}
|
|
400
|
-
|
|
401
|
-
r.value !== n && (r.value = n);
|
|
406
|
+
e.parentElement?.valueShown?.();
|
|
402
407
|
}
|
|
403
408
|
static valueFor(e, t) {
|
|
404
|
-
if (
|
|
405
|
-
if (
|
|
409
|
+
if (P.isRadio(e)) return P.isChosen(e) ? _FormBinding.keepNumber(P.chosenValueFor(e), t) : R;
|
|
410
|
+
if (P.isCheckable(e)) return P.isChosen(e);
|
|
406
411
|
let { value: n, type: r } = e;
|
|
407
|
-
return typeof n == "string" &&
|
|
412
|
+
return typeof n == "string" && Pe.has(r) ? n.trim() === "" ? null : Number(n) : _FormBinding.keepNumber(n, t);
|
|
408
413
|
}
|
|
409
414
|
static isRadioValue(e, t) {
|
|
410
|
-
return t != null && _FormBinding.textOf(t) ===
|
|
415
|
+
return t != null && _FormBinding.textOf(t) === P.chosenValueFor(e);
|
|
411
416
|
}
|
|
412
417
|
static textOf(e) {
|
|
413
418
|
return e == null ? "" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? String(e) : JSON.stringify(e) ?? "";
|
|
@@ -418,9 +423,10 @@ var F = class _FormBinding {
|
|
|
418
423
|
return Number.isFinite(n) ? n : e;
|
|
419
424
|
}
|
|
420
425
|
};
|
|
421
|
-
|
|
422
|
-
var
|
|
426
|
+
F = S(null), a(F, 1, "writeBack", je, I), a(F, 1, "saveHeld", Ae, I), a(F, 1, "dropHeld", ke, I), c(F, I), e(I, "FormBinding"), r(I, "holders", /* @__PURE__ */ new WeakMap()), r(I, "ownPlaceholders", /* @__PURE__ */ new WeakMap());
|
|
427
|
+
var L = I, R = /* @__PURE__ */ Symbol("unbound"), z = /* @__PURE__ */ Symbol("mixed"), Me = "Mixed", Ne = 300, Pe = /* @__PURE__ */ new Set(["number", "range"]), Fe = {
|
|
423
428
|
tag: "ui-field",
|
|
429
|
+
icon: "edit outline",
|
|
424
430
|
topics: [
|
|
425
431
|
"forms",
|
|
426
432
|
"inputs",
|
|
@@ -451,6 +457,12 @@ var I = F, L = /* @__PURE__ */ Symbol("unbound"), R = /* @__PURE__ */ Symbol("mi
|
|
|
451
457
|
kind: "string",
|
|
452
458
|
description: "A tip behind an info icon at the end of the label row, shown on hover and focus; `slot=\"description\"` is the rich version (bold words, line breaks)."
|
|
453
459
|
},
|
|
460
|
+
{
|
|
461
|
+
name: "unsaved",
|
|
462
|
+
group: "form",
|
|
463
|
+
kind: "string",
|
|
464
|
+
description: "A change here can't be saved: a crossed-out save icon after the info icon, this text its tip. The control still changes the value."
|
|
465
|
+
},
|
|
454
466
|
{
|
|
455
467
|
name: "hint",
|
|
456
468
|
group: "form",
|
|
@@ -583,6 +595,10 @@ var I = F, L = /* @__PURE__ */ Symbol("unbound"), R = /* @__PURE__ */ Symbol("mi
|
|
|
583
595
|
name: "tip",
|
|
584
596
|
description: "The tip, shown from the info icon."
|
|
585
597
|
},
|
|
598
|
+
{
|
|
599
|
+
name: "unsaved",
|
|
600
|
+
description: "The crossed-out save icon after the info icon, with `unsaved`."
|
|
601
|
+
},
|
|
586
602
|
{
|
|
587
603
|
name: "control",
|
|
588
604
|
description: "Around the control(s) under a label row; no box of its own (`display: contents`)."
|
|
@@ -632,9 +648,9 @@ var I = F, L = /* @__PURE__ */ Symbol("unbound"), R = /* @__PURE__ */ Symbol("mi
|
|
|
632
648
|
description: "What a property's select shows, in italics, when it has no value and no default."
|
|
633
649
|
}
|
|
634
650
|
]
|
|
635
|
-
}, z = "@layer ui.components.form.types{:host{display:contents}:host(:state(root)){display:block;container-type:inline-size}.ui.form{--_ui-form-gutter:var(--ui-form-gutter,1em);--_ui-form-row-distance:var(--ui-form-row-distance,1em);--_ui-form-label-distance:var(--ui-form-label-distance,.28571em);--_ui-form-label-font-size:var(--ui-form-label-font-size,.92857em);--_ui-form-label-font-weight:var(--ui-form-label-font-weight,var(--ui-font-weight-bold));--_ui-form-required-color:var(--ui-form-required-color,var(--ui-negative-text));--_ui-form-disabled-opacity:var(--ui-form-disabled-opacity,var(--ui-disabled-opacity));--_ui-form-loader-size:var(--ui-form-loader-size,3em);--_ui-form-loader-width:var(--ui-form-loader-width,.2em);--_ui-form-loader-fill:var(--ui-form-loader-fill,oklch(from var(--ui-ink) l c h / .1));--_ui-form-loader-line:var(--ui-form-loader-line,var(--ui-text-muted));--_ui-form-loader-speed:var(--ui-form-loader-speed,.6s);--_ui-form-loader-dimmer:var(--ui-form-loader-dimmer,color-mix(in oklab, var(--ui-surface) 80%, transparent));--_ui-form-inverted-label-color:var(--ui-form-inverted-label-color,var(--ui-text-inverted-color));--_ui-form-label-color:var(--ui-form-label-color,var(--ui-text-color));--_ui-form-equal-width:0;--_ui-form-unstackable:0;--_ui-form-stack-with:var(--ui-stack-with,container);box-sizing:border-box;max-width:100%;color:var(--ui-text-color);font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));line-height:var(--ui-line-height);position:relative;container:ui-form/inline-size}.ui.form ::slotted(form){margin:0;display:block}.field{--_ui-input-owner-width:100%;box-sizing:border-box;width:var(--_field-width,var(--_ui-fields-child-width,auto));flex:var(--_ui-fields-child-flex,0 1 auto);clear:both;min-width:0;margin:var(--_ui-fields-field-margin,0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em)));padding-inline:var(--_ui-fields-pad-start,0) var(--_ui-fields-pad-end,0)}:host(:last-child)>.field,.ui.form .field:last-child{margin-block-end:0}.field>slot,.field>.control>slot{--_ui-fields-child-width:initial;--_ui-fields-child-flex:initial;--_ui-fields-pad-start:initial;--_ui-fields-pad-end:initial;--_ui-fields-field-margin:initial;--_ui-fields-inline:initial;--_ui-fields-required:initial;--_ui-fields-stacked:initial}.field>slot,.field>.control>slot,.fields>slot{--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;--ui-color-hover:initial;--ui-color-focus:initial;--ui-color-down:initial;--ui-color-active:initial}.fields{--_ui-fields-child-width:auto;--_ui-fields-child-flex:0 1 auto;--_ui-fields-pad-start:calc(var(--_ui-form-gutter,var(--ui-form-gutter,1em)) / 2);--_ui-fields-pad-end:calc(var(--_ui-form-gutter,var(--ui-form-gutter,1em)) / 2);--_ui-fields-field-margin:0;--_ui-fields-inline:0;--_ui-fields-required:0;--_ui-fields-stacked:0;box-sizing:border-box;margin:0 calc(var(--_ui-form-gutter,var(--ui-form-gutter,1em)) / -2) var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));flex-direction:row;display:flex}:host(:last-child)>.fields,.ui.form .fields:last-child{margin-block-end:0}}@layer ui.components.form.content{.field ::slotted(label),.fields ::slotted(label),.ui.form :is(.field,.fields)>label{margin:0 0 var(--_ui-form-label-distance,var(--ui-form-label-distance,.28571em));color:var(--_field-label-color,var(--_ui-form-label-color,var(--ui-form-label-color,var(--ui-text-color))));font-size:var(--_ui-form-label-font-size,var(--ui-form-label-font-size,.92857em));font-weight:var(--_ui-form-label-font-weight,var(--ui-form-label-font-weight,var(--ui-font-weight-bold)));text-transform:none;display:block}.ui.form>.debug{border:var(--ui-border);border-radius:var(--ui-radius);background-color:var(--ui-surface-strong);margin:1em 0 0;padding:.5em .75em}.ui.form>.debug>figcaption{color:var(--ui-text-muted);font-size:.85714em;font-weight:var(--ui-font-weight-bold);margin:0 0 .25em}.ui.form>.debug>pre{font-family:var(--ui-font-family-mono);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:.85714em}.ui.form .field .ui.input{width:100%}.ui.form .inline:is(.field,.fields) .ui.input{width:auto}.field ::slotted(p),.ui.form .field>p{margin:1em 0}.ui.form .message:is(.error,.info,.success,.warning){display:none}.ui.error.form .error.message,.ui.form .error:is(.field,.fields) .error.message,.ui.info.form .info.message,.ui.form .info:is(.field,.fields) .info.message,.ui.success.form .success.message,.ui.form .success:is(.field,.fields) .success.message,.ui.warning.form .warning.message,.ui.form .warning:is(.field,.fields) .warning.message{display:block}}@layer ui.components.form.variations{.one.wide.field{--_field-width:6.25%}.two.wide.field{--_field-width:12.5%}.three.wide.field{--_field-width:18.75%}.four.wide.field{--_field-width:25%}.five.wide.field{--_field-width:31.25%}.six.wide.field{--_field-width:37.5%}.seven.wide.field{--_field-width:43.75%}.eight.wide.field{--_field-width:50%}.nine.wide.field{--_field-width:56.25%}.ten.wide.field{--_field-width:62.5%}.eleven.wide.field{--_field-width:68.75%}.twelve.wide.field{--_field-width:75%}.thirteen.wide.field{--_field-width:81.25%}.fourteen.wide.field{--_field-width:87.5%}.fifteen.wide.field{--_field-width:93.75%}.sixteen.wide.field{--_field-width:100%}.two.fields{--_ui-fields-child-width:50%}.three.fields{--_ui-fields-child-width:33.3333%}.four.fields{--_ui-fields-child-width:25%}.five.fields{--_ui-fields-child-width:20%}.six.fields{--_ui-fields-child-width:16.6667%}.seven.fields{--_ui-fields-child-width:14.2857%}.eight.fields{--_ui-fields-child-width:12.5%}.nine.fields{--_ui-fields-child-width:11.1111%}.ten.fields{--_ui-fields-child-width:10%}.fields[class*=equal\\ width]{--_ui-fields-child-width:100%;--_ui-fields-child-flex:1 1 auto}.ui[class*=equal\\ width].form{--_ui-form-equal-width:1}@container style(--_ui-form-equal-width:1){.fields{--_ui-fields-child-width:100%;--_ui-fields-child-flex:1 1 auto}}.grouped.fields{--_ui-fields-pad-start:0;--_ui-fields-pad-end:0;--_ui-fields-field-margin:.5em 0;margin:0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));display:block}.inline.fields{--_ui-fields-pad-start:0;--_ui-fields-pad-end:1em;--_ui-fields-inline:1;--_ui-input-owner-width:auto;margin:0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));align-items:center}.inline.fields ::slotted(label),.ui.form .inline.fields>label{margin:.03571em 1em 0 0;display:inline-block}.inline.field{--_ui-input-owner-width:auto}.inline.field ::slotted(label),.ui.form .inline:is(.field,.fields) .field>label,.ui.form .inline.field>label{vertical-align:baseline;width:auto;margin:0 .85714em 0 0;display:inline-block}@container style(--_ui-fields-inline:1){.field{--_ui-input-owner-width:auto}.field ::slotted(label){vertical-align:baseline;margin:0 .85714em 0 0;display:inline-block}}.required.field ::slotted(label):after,.required:is(.grouped,.inline).fields ::slotted(label):after,.ui.form .required.field>label:after,.ui.form .required:is(.grouped,.inline).fields>label:after,.ui.form .required.fields:not(.grouped,.inline)>.field>label:after{content:\"*\";color:var(--_ui-form-required-color,var(--ui-form-required-color,var(--ui-negative-text)));vertical-align:top;margin:-.2em 0 0 .2em;display:inline-block}.required.fields:not(.grouped,.inline){--_ui-fields-required:1}@container style(--_ui-fields-required:1){.field ::slotted(label):after{content:\"*\";color:var(--_ui-form-required-color,var(--ui-form-required-color,var(--ui-negative-text)));vertical-align:top;margin:-.2em 0 0 .2em;display:inline-block}}.ui.inverted.form{--_ui-form-label-color:var(--_ui-form-inverted-label-color);color:var(--_ui-form-inverted-label-color)}.ui.unstackable.form{--_ui-form-unstackable:1}.ui.stack-with-page.form{--_ui-form-stack-with:page}.ui.stack-with-container.form{--_ui-form-stack-with:container}@container (width<768px){@container style(not (--_ui-form-unstackable:1)) and style(not (--_ui-form-stack-with:page)){.fields:not(.unstackable){--_ui-fields-child-width:100%;--_ui-fields-stacked:1;--_ui-fields-field-margin:0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));flex-wrap:wrap;margin-block-end:0}}}@media (width<768px){@container style(not (--_ui-form-unstackable:1)) and style(--_ui-form-stack-with:page){.fields:not(.unstackable){--_ui-fields-child-width:100%;--_ui-fields-stacked:1;--_ui-fields-field-margin:0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));flex-wrap:wrap;margin-block-end:0}}}@container style(--_ui-fields-stacked:1){.field{width:100%}}}@layer ui.components.form.states{:is(.field,.fields).error{--_ui-field-state-color:var(--ui-error-text);--_ui-field-state-background:var(--ui-error-background);--_ui-field-state-border:var(--ui-error-border)}:is(.field,.fields).info{--_ui-field-state-color:var(--ui-info-text);--_ui-field-state-background:var(--ui-info-background);--_ui-field-state-border:var(--ui-info-border)}:is(.field,.fields).success{--_ui-field-state-color:var(--ui-success-text);--_ui-field-state-background:var(--ui-success-background);--_ui-field-state-border:var(--ui-success-border)}:is(.field,.fields).warning{--_ui-field-state-color:var(--ui-warning-text);--_ui-field-state-background:var(--ui-warning-background);--_ui-field-state-border:var(--ui-warning-border)}:is(.field,.fields):is(.error,.info,.success,.warning){--_field-label-color:var(--_ui-field-state-color)}:is(.field,.fields).disabled,.ui.disabled.form{opacity:var(--_ui-form-disabled-opacity,var(--ui-form-disabled-opacity,var(--ui-disabled-opacity)));pointer-events:none}.ui.loading.form{cursor:default;pointer-events:none}.ui.loading.form:before{content:\"\";z-index:100;background:var(--_ui-form-loader-dimmer);position:absolute;inset:0}.ui.loading.form:after{content:\"\";z-index:101;box-sizing:border-box;width:var(--_ui-form-loader-size);height:var(--_ui-form-loader-size);margin:calc(var(--_ui-form-loader-size) / -2) 0 0 calc(var(--_ui-form-loader-size) / -2);border:var(--_ui-form-loader-width) solid var(--_ui-form-loader-fill);border-top-color:var(--_ui-form-loader-line);border-radius:var(--ui-radius-circle);animation:ui-form-spin var(--_ui-form-loader-speed) linear infinite;position:absolute;top:50%;left:50%}@media (prefers-reduced-motion:reduce){.ui.loading.form:after{animation-duration:calc(var(--_ui-form-loader-speed) * 4)}}}@keyframes ui-form-spin{to{rotate:1turn}}", Fe = "@layer ui.components.field.types{.field{--_ui-field-row-gap:var(--ui-field-row-gap,.5em);--_ui-field-output-color:var(--ui-field-output-color,var(--ui-text-muted));--_ui-field-hint-color:var(--ui-field-hint-color,var(--ui-text-muted));--_ui-field-error-color:var(--ui-field-error-color,var(--ui-negative-text));--_ui-field-tip-background:var(--ui-field-tip-background,var(--ui-text-dark));--_ui-field-tip-color:var(--ui-field-tip-color,var(--ui-surface));--_ui-field-tip-width:var(--ui-field-tip-width,16.25em);--_ui-field-tip-delay:var(--ui-field-tip-delay,var(--ui-hover-delay,0s))}.field>.control{display:contents}}@layer ui.components.field.content{.field>.row{align-items:center;gap:var(--_ui-field-row-gap);margin:0 0 var(--_ui-form-label-distance,var(--ui-form-label-distance,.28571em));color:var(--_field-label-color,var(--_ui-form-label-color,var(--ui-form-label-color,var(--ui-text-color))));font-size:var(--_ui-form-label-font-size,var(--ui-form-label-font-size,.92857em));font-weight:var(--_ui-form-label-font-weight,var(--ui-form-label-font-weight,var(--ui-font-weight-bold)));line-height:1.2;display:flex}.field>.row>.label{flex:0 auto;min-width:0;margin-inline-end:auto}.required.field>.row>.label:after{content:\"*\";color:var(--_ui-form-required-color,var(--ui-form-required-color,var(--ui-negative-text)));vertical-align:top;margin:-.2em 0 0 .2em;display:inline-block}.field>.row>.actions{align-items:center;gap:.25em;height:1.2em;display:inline-flex}.field>.row>.output{color:var(--_ui-field-output-color);font-family:var(--ui-font-family-mono);font-size:.92em;font-weight:var(--ui-font-weight-normal);font-variant-numeric:tabular-nums}.field>.row>.info{opacity:.4;cursor:help;border-radius:var(--ui-radius-circle,50%);width:1em;height:1em;display:inline-flex;position:relative}.field>.row>.info:is(:hover,:focus-visible){opacity:1}.field>.row>.info:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:2px}.field>.row>.info>svg{fill:currentColor;width:100%;height:100%}.field>.row>.info>.tip{z-index:var(--ui-z-popup,30);box-sizing:border-box;width:var(--_ui-field-tip-width);border-radius:var(--ui-radius-s,8px);background:var(--_ui-field-tip-background);box-shadow:var(--ui-shadow-floating);color:var(--_ui-field-tip-color);font-size:.92em;font-weight:var(--ui-font-weight-normal);opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--ui-duration-fast) var(--ui-ease), visibility var(--ui-duration-fast);padding:.625em .75em;line-height:1.45;position:absolute;inset-block-start:calc(100% + .5em);inset-inline-end:-.5em}.field>.row>.info:is(:hover,:focus-visible)>.tip{opacity:1;visibility:visible}.field>.row>.info:hover>.tip{transition-delay:var(--_ui-field-tip-delay)}.field>.row>.info:focus-visible>.tip{transition-delay:0s}.field>:is(.hint,.error.prompt){margin:.375em 0 0;font-size:.85714em;line-height:1.4}.field>.hint{color:var(--_ui-field-hint-color)}.field>.error.prompt{color:var(--_ui-field-error-color)}.field>.error.prompt>.message{display:block}}@layer ui.components.field.states{.inline.field:has(>.row){flex-flow:wrap;align-items:center;column-gap:.85714em;display:flex}.inline.field>.row{margin:0}.inline.field>.row>.label{margin-inline-end:0}.inline.field>.control{flex:12em;align-items:center;gap:.5em;min-width:0;display:flex}.inline.field>:is(.hint,.error.prompt){flex-basis:100%}.error.field>.row>.label{color:var(--_ui-field-error-color)}}", Ie = /* @__PURE__ */ j("<div>"), Le = /* @__PURE__ */ j("<div><slot>"), Re = /* @__PURE__ */ j("<div role=alert>"), ze = /* @__PURE__ */ j("<div><!><!><!>"), Be = /* @__PURE__ */ j("<span><slot>"), Ve = /* @__PURE__ */ j("<span tabindex=0 role=img><span role=tooltip><slot>"), He = /* @__PURE__ */ j("<div><span><slot></slot></span><!><!><!>"), Ue = /* @__PURE__ */ j("<slot>"), We, Ge, Ke, qe, B, Je, Ye, Xe, Ze, Qe, $e, et, tt, nt, rt, V, it, H = class _DOMFieldElement extends (qe = n, Ke = [x], Ge = [x], We = [x], qe) {
|
|
651
|
+
}, B = "@layer ui.components.form.types{:host{display:contents}:host(:state(root)){display:block;container-type:inline-size}.ui.form{--_ui-form-gutter:var(--ui-form-gutter,1em);--_ui-form-row-distance:var(--ui-form-row-distance,1em);--_ui-form-label-distance:var(--ui-form-label-distance,.28571em);--_ui-form-label-font-size:var(--ui-form-label-font-size,.92857em);--_ui-form-label-font-weight:var(--ui-form-label-font-weight,var(--ui-font-weight-bold));--_ui-form-required-color:var(--ui-form-required-color,var(--ui-negative-text));--_ui-form-disabled-opacity:var(--ui-form-disabled-opacity,var(--ui-disabled-opacity));--_ui-form-loader-size:var(--ui-form-loader-size,3em);--_ui-form-loader-width:var(--ui-form-loader-width,.2em);--_ui-form-loader-fill:var(--ui-form-loader-fill,oklch(from var(--ui-ink) l c h / .1));--_ui-form-loader-line:var(--ui-form-loader-line,var(--ui-text-muted));--_ui-form-loader-speed:var(--ui-form-loader-speed,.6s);--_ui-form-loader-dimmer:var(--ui-form-loader-dimmer,color-mix(in oklab, var(--ui-surface) 80%, transparent));--_ui-form-inverted-label-color:var(--ui-form-inverted-label-color,var(--ui-text-inverted-color));--_ui-form-label-color:var(--ui-form-label-color,var(--ui-text-color));--_ui-form-equal-width:0;--_ui-form-unstackable:0;--_ui-form-stack-with:var(--ui-stack-with,container);box-sizing:border-box;max-width:100%;color:var(--ui-text-color);font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));line-height:var(--ui-line-height);position:relative;container:ui-form/inline-size}.ui.form ::slotted(form){margin:0;display:block}.field{--_ui-input-owner-width:100%;box-sizing:border-box;width:var(--_field-width,var(--_ui-fields-child-width,auto));flex:var(--_ui-fields-child-flex,0 1 auto);clear:both;min-width:0;margin:var(--_ui-fields-field-margin,0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em)));padding-inline:var(--_ui-fields-pad-start,0) var(--_ui-fields-pad-end,0)}:host(:last-child)>.field,.ui.form .field:last-child{margin-block-end:0}.field>slot,.field>.control>slot{--_ui-fields-child-width:initial;--_ui-fields-child-flex:initial;--_ui-fields-pad-start:initial;--_ui-fields-pad-end:initial;--_ui-fields-field-margin:initial;--_ui-fields-inline:initial;--_ui-fields-required:initial;--_ui-fields-stacked:initial}.field>slot,.field>.control>slot,.fields>slot{--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;--ui-color-hover:initial;--ui-color-focus:initial;--ui-color-down:initial;--ui-color-active:initial}.fields{--_ui-fields-child-width:auto;--_ui-fields-child-flex:0 1 auto;--_ui-fields-pad-start:calc(var(--_ui-form-gutter,var(--ui-form-gutter,1em)) / 2);--_ui-fields-pad-end:calc(var(--_ui-form-gutter,var(--ui-form-gutter,1em)) / 2);--_ui-fields-field-margin:0;--_ui-fields-inline:0;--_ui-fields-required:0;--_ui-fields-stacked:0;box-sizing:border-box;margin:0 calc(var(--_ui-form-gutter,var(--ui-form-gutter,1em)) / -2) var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));flex-direction:row;display:flex}:host(:last-child)>.fields,.ui.form .fields:last-child{margin-block-end:0}}@layer ui.components.form.content{.field ::slotted(label),.fields ::slotted(label),.ui.form :is(.field,.fields)>label{margin:0 0 var(--_ui-form-label-distance,var(--ui-form-label-distance,.28571em));color:var(--_field-label-color,var(--_ui-form-label-color,var(--ui-form-label-color,var(--ui-text-color))));font-size:var(--_ui-form-label-font-size,var(--ui-form-label-font-size,.92857em));font-weight:var(--_ui-form-label-font-weight,var(--ui-form-label-font-weight,var(--ui-font-weight-bold)));text-transform:none;display:block}.ui.form>.debug{border:var(--ui-border);border-radius:var(--ui-radius);background-color:var(--ui-surface-strong);margin:1em 0 0;padding:.5em .75em}.ui.form>.debug>figcaption{color:var(--ui-text-muted);font-size:.85714em;font-weight:var(--ui-font-weight-bold);margin:0 0 .25em}.ui.form>.debug>pre{font-family:var(--ui-font-family-mono);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:.85714em}.ui.form .field .ui.input{width:100%}.ui.form .inline:is(.field,.fields) .ui.input{width:auto}.field ::slotted(p),.ui.form .field>p{margin:1em 0}.ui.form .message:is(.error,.info,.success,.warning){display:none}.ui.error.form .error.message,.ui.form .error:is(.field,.fields) .error.message,.ui.info.form .info.message,.ui.form .info:is(.field,.fields) .info.message,.ui.success.form .success.message,.ui.form .success:is(.field,.fields) .success.message,.ui.warning.form .warning.message,.ui.form .warning:is(.field,.fields) .warning.message{display:block}}@layer ui.components.form.variations{.one.wide.field{--_field-width:6.25%}.two.wide.field{--_field-width:12.5%}.three.wide.field{--_field-width:18.75%}.four.wide.field{--_field-width:25%}.five.wide.field{--_field-width:31.25%}.six.wide.field{--_field-width:37.5%}.seven.wide.field{--_field-width:43.75%}.eight.wide.field{--_field-width:50%}.nine.wide.field{--_field-width:56.25%}.ten.wide.field{--_field-width:62.5%}.eleven.wide.field{--_field-width:68.75%}.twelve.wide.field{--_field-width:75%}.thirteen.wide.field{--_field-width:81.25%}.fourteen.wide.field{--_field-width:87.5%}.fifteen.wide.field{--_field-width:93.75%}.sixteen.wide.field{--_field-width:100%}.two.fields{--_ui-fields-child-width:50%}.three.fields{--_ui-fields-child-width:33.3333%}.four.fields{--_ui-fields-child-width:25%}.five.fields{--_ui-fields-child-width:20%}.six.fields{--_ui-fields-child-width:16.6667%}.seven.fields{--_ui-fields-child-width:14.2857%}.eight.fields{--_ui-fields-child-width:12.5%}.nine.fields{--_ui-fields-child-width:11.1111%}.ten.fields{--_ui-fields-child-width:10%}.fields[class*=equal\\ width]{--_ui-fields-child-width:100%;--_ui-fields-child-flex:1 1 auto}.ui[class*=equal\\ width].form{--_ui-form-equal-width:1}@container style(--_ui-form-equal-width:1){.fields{--_ui-fields-child-width:100%;--_ui-fields-child-flex:1 1 auto}}.grouped.fields{--_ui-fields-pad-start:0;--_ui-fields-pad-end:0;--_ui-fields-field-margin:.5em 0;margin:0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));display:block}.inline.fields{--_ui-fields-pad-start:0;--_ui-fields-pad-end:1em;--_ui-fields-inline:1;--_ui-input-owner-width:auto;margin:0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));align-items:center}.inline.fields ::slotted(label),.ui.form .inline.fields>label{margin:.03571em 1em 0 0;display:inline-block}.inline.field{--_ui-input-owner-width:auto}.inline.field ::slotted(label),.ui.form .inline:is(.field,.fields) .field>label,.ui.form .inline.field>label{vertical-align:baseline;width:auto;margin:0 .85714em 0 0;display:inline-block}@container style(--_ui-fields-inline:1){.field{--_ui-input-owner-width:auto}.field ::slotted(label){vertical-align:baseline;margin:0 .85714em 0 0;display:inline-block}}.required.field ::slotted(label):after,.required:is(.grouped,.inline).fields ::slotted(label):after,.ui.form .required.field>label:after,.ui.form .required:is(.grouped,.inline).fields>label:after,.ui.form .required.fields:not(.grouped,.inline)>.field>label:after{content:\"*\";color:var(--_ui-form-required-color,var(--ui-form-required-color,var(--ui-negative-text)));vertical-align:top;margin:-.2em 0 0 .2em;display:inline-block}.required.fields:not(.grouped,.inline){--_ui-fields-required:1}@container style(--_ui-fields-required:1){.field ::slotted(label):after{content:\"*\";color:var(--_ui-form-required-color,var(--ui-form-required-color,var(--ui-negative-text)));vertical-align:top;margin:-.2em 0 0 .2em;display:inline-block}}.ui.inverted.form{--_ui-form-label-color:var(--_ui-form-inverted-label-color);color:var(--_ui-form-inverted-label-color)}.ui.unstackable.form{--_ui-form-unstackable:1}.ui.stack-with-page.form{--_ui-form-stack-with:page}.ui.stack-with-container.form{--_ui-form-stack-with:container}@container (width<768px){@container style(not (--_ui-form-unstackable:1)) and style(not (--_ui-form-stack-with:page)){.fields:not(.unstackable){--_ui-fields-child-width:100%;--_ui-fields-stacked:1;--_ui-fields-field-margin:0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));flex-wrap:wrap;margin-block-end:0}}}@media (width<768px){@container style(not (--_ui-form-unstackable:1)) and style(--_ui-form-stack-with:page){.fields:not(.unstackable){--_ui-fields-child-width:100%;--_ui-fields-stacked:1;--_ui-fields-field-margin:0 0 var(--_ui-form-row-distance,var(--ui-form-row-distance,1em));flex-wrap:wrap;margin-block-end:0}}}@container style(--_ui-fields-stacked:1){.field{width:100%}}}@layer ui.components.form.states{:is(.field,.fields).error{--_ui-field-state-color:var(--ui-error-text);--_ui-field-state-background:var(--ui-error-background);--_ui-field-state-border:var(--ui-error-border)}:is(.field,.fields).info{--_ui-field-state-color:var(--ui-info-text);--_ui-field-state-background:var(--ui-info-background);--_ui-field-state-border:var(--ui-info-border)}:is(.field,.fields).success{--_ui-field-state-color:var(--ui-success-text);--_ui-field-state-background:var(--ui-success-background);--_ui-field-state-border:var(--ui-success-border)}:is(.field,.fields).warning{--_ui-field-state-color:var(--ui-warning-text);--_ui-field-state-background:var(--ui-warning-background);--_ui-field-state-border:var(--ui-warning-border)}:is(.field,.fields):is(.error,.info,.success,.warning){--_field-label-color:var(--_ui-field-state-color)}:is(.field,.fields).disabled,.ui.disabled.form{opacity:var(--_ui-form-disabled-opacity,var(--ui-form-disabled-opacity,var(--ui-disabled-opacity)));pointer-events:none}.ui.loading.form{cursor:default;pointer-events:none}.ui.loading.form:before{content:\"\";z-index:100;background:var(--_ui-form-loader-dimmer);position:absolute;inset:0}.ui.loading.form:after{content:\"\";z-index:101;box-sizing:border-box;width:var(--_ui-form-loader-size);height:var(--_ui-form-loader-size);margin:calc(var(--_ui-form-loader-size) / -2) 0 0 calc(var(--_ui-form-loader-size) / -2);border:var(--_ui-form-loader-width) solid var(--_ui-form-loader-fill);border-top-color:var(--_ui-form-loader-line);border-radius:var(--ui-radius-circle);animation:ui-form-spin var(--_ui-form-loader-speed) linear infinite;position:absolute;top:50%;left:50%}@media (prefers-reduced-motion:reduce){.ui.loading.form:after{animation-duration:calc(var(--_ui-form-loader-speed) * 4)}}}@keyframes ui-form-spin{to{rotate:1turn}}", Ie = "@layer ui.components.field.types{.field{--_ui-field-row-gap:var(--ui-field-row-gap,.5em);--_ui-field-output-color:var(--ui-field-output-color,var(--ui-text-muted));--_ui-field-hint-color:var(--ui-field-hint-color,var(--ui-text-muted));--_ui-field-error-color:var(--ui-field-error-color,var(--ui-negative-text));--_ui-field-tip-background:var(--ui-field-tip-background,var(--ui-text-dark));--_ui-field-tip-color:var(--ui-field-tip-color,var(--ui-text-inverted-color));--_ui-field-tip-width:var(--ui-field-tip-width,16.25em);--_ui-field-tip-delay:var(--ui-field-tip-delay,var(--ui-hover-delay,0s))}.field>.control{display:contents}}@layer ui.components.field.content{.field>.row{align-items:center;gap:var(--_ui-field-row-gap);margin:0 0 var(--_ui-form-label-distance,var(--ui-form-label-distance,.28571em));color:var(--_field-label-color,var(--_ui-form-label-color,var(--ui-form-label-color,var(--ui-text-color))));font-size:var(--_ui-form-label-font-size,var(--ui-form-label-font-size,.92857em));font-weight:var(--_ui-form-label-font-weight,var(--ui-form-label-font-weight,var(--ui-font-weight-bold)));line-height:1.2;display:flex}.field>.row>.label{flex:0 auto;min-width:0;margin-inline-end:auto}.required.field>.row>.label:after{content:\"*\";color:var(--_ui-form-required-color,var(--ui-form-required-color,var(--ui-negative-text)));vertical-align:top;margin:-.2em 0 0 .2em;display:inline-block}.field>.row>.actions{align-items:center;gap:.25em;height:1.2em;display:inline-flex}.field>.row>.output{color:var(--_ui-field-output-color);font-family:var(--ui-font-family-mono);font-size:.92em;font-weight:var(--ui-font-weight-normal);font-variant-numeric:tabular-nums}.field>.row>.hint{min-width:0;color:var(--_ui-field-hint-color);font-size:.84615em;font-weight:var(--ui-font-weight-normal);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;overflow:hidden}.field>.row>.unsaved{opacity:.5;cursor:help;width:1em;height:1em;display:inline-flex;position:relative}.field>.row>.unsaved>svg{fill:currentColor;width:100%;height:100%}.field>.row>.unsaved:after{content:\"\";width:120%;height:.15em;box-shadow:0 0 0 .06em var(--ui-panel-background,transparent);background:currentColor;border-radius:.1em;position:absolute;inset-block-start:50%;inset-inline-start:-10%;transform:rotate(-45deg)}.field>.row>.info{opacity:.4;cursor:help;border-radius:var(--ui-radius-circle,50%);width:1em;height:1em;display:inline-flex;position:relative}.field>.row>.info:is(:hover,:focus-visible){opacity:1}.field>.row>.info:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:2px}.field>.row>.info>svg{fill:currentColor;width:100%;height:100%}.field>.row>.info>.tip{z-index:var(--ui-z-popup,30);box-sizing:border-box;width:var(--_ui-field-tip-width);border-radius:var(--ui-radius-s,8px);background:var(--_ui-field-tip-background);box-shadow:var(--ui-shadow-floating);color:var(--_ui-field-tip-color);font-size:.92em;font-weight:var(--ui-font-weight-normal);opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--ui-duration-fast) var(--ui-ease), visibility var(--ui-duration-fast);padding:.625em .75em;line-height:1.45;position:absolute;inset-block-start:calc(100% + .5em);inset-inline-end:-.5em}.field>.row>.info:is(:hover,:focus)>.tip{opacity:1;visibility:visible}.field>.row>.info:hover>.tip{transition-delay:var(--_ui-field-tip-delay)}.field>.row>.info:focus>.tip{transition:none}.field>.row>.info{anchor-name:--ui-field-info}.field>.row>.info>.tip:popover-open{position-anchor:--ui-field-info;position-area:block-end span-inline-start;position-try-fallbacks:flip-block, flip-inline, flip-block flip-inline;border:0;max-width:calc(100vw - 1em);height:fit-content;margin:.5em 0;position:fixed;inset:auto;overflow:visible}.field>.row>.info:is(:hover,:focus)>.tip:popover-open{@starting-style{opacity:0;visibility:hidden}}.field>:is(.hint,.error.prompt){margin:.375em 0 0;font-size:.85714em;line-height:1.4}.field>.hint{color:var(--_ui-field-hint-color)}.field>.error.prompt{color:var(--_ui-field-error-color)}.field>.error.prompt>.message{display:block}}@layer ui.components.field.states{.inline.field:has(>.row){flex-flow:wrap;align-items:center;column-gap:.85714em;display:flex}.inline.field>.row{margin:0}.inline.field>.row>.label{margin-inline-end:0}.inline.field>.control{flex:12em;align-items:center;gap:.5em;min-width:0;display:flex}.inline.field>:is(.hint,.error.prompt){flex-basis:100%}.error.field>.row>.label{color:var(--_ui-field-error-color)}}", Le = /* @__PURE__ */ M("<div><!><!>"), Re = /* @__PURE__ */ M("<div><slot>"), ze = /* @__PURE__ */ M("<div role=alert>"), Be = /* @__PURE__ */ M("<div><!><!><!>"), Ve = /* @__PURE__ */ M("<div>"), He = /* @__PURE__ */ M("<span><slot>"), Ue = /* @__PURE__ */ M("<span tabindex=0 role=img><span role=tooltip><slot>"), We = /* @__PURE__ */ M("<span role=img>"), Ge = /* @__PURE__ */ M("<div><span><slot></slot></span><!><!><!><!><!><!>"), Ke = /* @__PURE__ */ M("<slot>"), qe, Je, Ye, Xe, V, Ze, Qe, $e, et, tt, nt, rt, it, at, ot, H, st, U = class _DOMFieldElement extends (Xe = n, Ye = [x], Je = [x], qe = [x], Xe) {
|
|
636
652
|
constructor() {
|
|
637
|
-
super(...arguments), f(
|
|
653
|
+
super(...arguments), f(V, 5, this);
|
|
638
654
|
}
|
|
639
655
|
showErrors(e) {
|
|
640
656
|
this.component?.showErrors(e);
|
|
@@ -649,15 +665,18 @@ var I = F, L = /* @__PURE__ */ Symbol("unbound"), R = /* @__PURE__ */ Symbol("mi
|
|
|
649
665
|
return this.component?.translationForKey("mixed");
|
|
650
666
|
}
|
|
651
667
|
};
|
|
652
|
-
|
|
653
|
-
var
|
|
668
|
+
V = S(Xe), a(V, 2, "errors", Ye, U), a(V, 2, "shownLabel", Je, U), a(V, 2, "mixedText", qe, U), c(V, U), e(U, "DOMFieldElement");
|
|
669
|
+
var ct = U, W = class _UIField extends (ot = d, at = [v], it = [y], rt = [b], nt = [x], tt = [h("mixed")], et = [h("readonly")], $e = [h("field")], Qe = [_("labelText", "isReady")], Ze = [x], ot) {
|
|
654
670
|
constructor() {
|
|
655
|
-
super(...arguments), f(
|
|
671
|
+
super(...arguments), f(H, 5, this), r(this, "slots", new l(this.domElement)), r(this, "infoGlyph", new i({
|
|
656
672
|
owner: this,
|
|
657
|
-
name: /* @__PURE__ */
|
|
658
|
-
})),
|
|
673
|
+
name: /* @__PURE__ */ e(() => this.hasDescription ? ut : void 0, "name")
|
|
674
|
+
})), r(this, "unsavedGlyph", new i({
|
|
675
|
+
owner: this,
|
|
676
|
+
name: /* @__PURE__ */ e(() => this.unsavedText ? dt : void 0, "name")
|
|
677
|
+
})), p(this, st, f(H, 8, this, [])), f(H, 11, this), r(this, "controlSlot"), r(this, "named", /* @__PURE__ */ new WeakSet()), r(this, "onControlChange", f(H, 20, this, /* @__PURE__ */ e(() => {
|
|
659
678
|
this.nameControls(this.labelText);
|
|
660
|
-
}, "onControlChange"))), f(
|
|
679
|
+
}, "onControlChange"))), f(H, 23, this), r(this, "onLabelClick", /* @__PURE__ */ e(() => {
|
|
661
680
|
(this.controlSlot?.assignedElements().find((e) => e.localName !== "label"))?.focus();
|
|
662
681
|
}, "onLabelClick"));
|
|
663
682
|
}
|
|
@@ -679,12 +698,22 @@ var at = H, U = class _UIField extends (rt = d, nt = [v], tt = [y], et = [b], $e
|
|
|
679
698
|
get hasDescription() {
|
|
680
699
|
return !!this.descriptionText || this.slots.hasContent(this.slotForName("description"));
|
|
681
700
|
}
|
|
701
|
+
get hintText() {
|
|
702
|
+
return this.hint;
|
|
703
|
+
}
|
|
704
|
+
get unsavedText() {
|
|
705
|
+
return this.unsaved || void 0;
|
|
706
|
+
}
|
|
682
707
|
get hasHint() {
|
|
683
|
-
return !!this.
|
|
708
|
+
return !!this.hintText || this.slots.hasContent(this.slotForName("hint"));
|
|
709
|
+
}
|
|
710
|
+
get hasHintInRow() {
|
|
711
|
+
return !1;
|
|
684
712
|
}
|
|
685
713
|
get hasRow() {
|
|
686
|
-
return this.hasLabel || this.hasActions || this.hasOutput || this.hasDescription;
|
|
714
|
+
return this.hasLabel || this.hasActions || this.hasOutput || this.hasDescription || this.hasHintInRow || !!this.unsavedText;
|
|
687
715
|
}
|
|
716
|
+
get labelTitle() {}
|
|
688
717
|
get errors() {
|
|
689
718
|
let e = this.formErrors;
|
|
690
719
|
return e.length ? e : this.error ? [this.error] : [];
|
|
@@ -713,7 +742,7 @@ var at = H, U = class _UIField extends (rt = d, nt = [v], tt = [y], et = [b], $e
|
|
|
713
742
|
}
|
|
714
743
|
render() {
|
|
715
744
|
let e = this;
|
|
716
|
-
var t =
|
|
745
|
+
var t = Be(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling;
|
|
717
746
|
return O(t, T(C, {
|
|
718
747
|
get when() {
|
|
719
748
|
return e.hasRow;
|
|
@@ -722,28 +751,28 @@ var at = H, U = class _UIField extends (rt = d, nt = [v], tt = [y], et = [b], $e
|
|
|
722
751
|
return e.controlSlotElement();
|
|
723
752
|
},
|
|
724
753
|
get children() {
|
|
725
|
-
return [
|
|
726
|
-
var t =
|
|
727
|
-
return O(t, () => e.controlSlotElement()), E(() => ({
|
|
728
|
-
e:
|
|
754
|
+
return [k(() => e.labelRow()), (() => {
|
|
755
|
+
var t = Le(), n = t.firstChild, r = n.nextSibling;
|
|
756
|
+
return O(t, () => e.controlStart(), n), O(t, () => e.controlSlotElement(), r), E(() => ({
|
|
757
|
+
e: A(G.control),
|
|
729
758
|
t: e.partForName("control")
|
|
730
759
|
}), ({ e, t: n }, r) => {
|
|
731
|
-
w(t, e, r?.e), n !== r?.t &&
|
|
760
|
+
w(t, e, r?.e), n !== r?.t && j(t, "part", n);
|
|
732
761
|
}), t;
|
|
733
762
|
})()];
|
|
734
763
|
}
|
|
735
764
|
}), n), O(t, T(C, {
|
|
736
765
|
get when() {
|
|
737
|
-
return e.hasHint;
|
|
766
|
+
return k(() => !!e.hasHint)() ? !e.hasHintInRow : e.hasHint;
|
|
738
767
|
},
|
|
739
768
|
get children() {
|
|
740
|
-
var t =
|
|
741
|
-
return n._$owner = D(), O(n, () => e.
|
|
742
|
-
e:
|
|
769
|
+
var t = Re(), n = t.firstChild;
|
|
770
|
+
return n._$owner = D(), O(n, () => e.hintText), E(() => ({
|
|
771
|
+
e: A(G.hint),
|
|
743
772
|
t: e.partForName("hint"),
|
|
744
773
|
a: e.slotForName("hint")
|
|
745
774
|
}), ({ e, t: r, a: i }, a) => {
|
|
746
|
-
w(t, e, a?.e), r !== a?.t &&
|
|
775
|
+
w(t, e, a?.e), r !== a?.t && j(t, "part", r), i !== a?.a && j(n, "name", i);
|
|
747
776
|
}), t;
|
|
748
777
|
}
|
|
749
778
|
}), r), O(t, T(C, {
|
|
@@ -751,47 +780,48 @@ var at = H, U = class _UIField extends (rt = d, nt = [v], tt = [y], et = [b], $e
|
|
|
751
780
|
return e.errors.length;
|
|
752
781
|
},
|
|
753
782
|
get children() {
|
|
754
|
-
var t =
|
|
755
|
-
return O(t, T(
|
|
783
|
+
var t = ze();
|
|
784
|
+
return O(t, T(de, {
|
|
756
785
|
get each() {
|
|
757
786
|
return e.errors;
|
|
758
787
|
},
|
|
759
788
|
children: (e) => (() => {
|
|
760
|
-
var t =
|
|
761
|
-
return O(t, e), E(() =>
|
|
789
|
+
var t = Ve();
|
|
790
|
+
return O(t, e), E(() => A(o), (e, n) => {
|
|
762
791
|
w(t, e, n);
|
|
763
792
|
}), t;
|
|
764
793
|
})()
|
|
765
794
|
})), E(() => ({
|
|
766
|
-
e:
|
|
795
|
+
e: A(G.error),
|
|
767
796
|
t: e.partForName("error")
|
|
768
797
|
}), ({ e, t: n }, r) => {
|
|
769
|
-
w(t, e, r?.e), n !== r?.t &&
|
|
798
|
+
w(t, e, r?.e), n !== r?.t && j(t, "part", n);
|
|
770
799
|
}), t;
|
|
771
800
|
}
|
|
772
801
|
}), i), E(() => ({
|
|
773
|
-
e:
|
|
802
|
+
e: A(e.rootClass),
|
|
774
803
|
t: e.partForName("field"),
|
|
775
804
|
a: e.disabled
|
|
776
805
|
}), ({ e, t: n, a: r }, i) => {
|
|
777
|
-
w(t, e, i?.e), n !== i?.t &&
|
|
806
|
+
w(t, e, i?.e), n !== i?.t && j(t, "part", n), r !== i?.a && j(t, "inert", r);
|
|
778
807
|
}), t;
|
|
779
808
|
}
|
|
809
|
+
rowEnd() {}
|
|
780
810
|
labelRow() {
|
|
781
811
|
let e = this;
|
|
782
|
-
var t =
|
|
783
|
-
return
|
|
812
|
+
var t = Ge(), n = t.firstChild, r = n.firstChild, i = n.nextSibling, a = i.nextSibling, o = a.nextSibling, s = o.nextSibling, c = s.nextSibling, l = c.nextSibling;
|
|
813
|
+
return pe(n, "click", e.onLabelClick, !0), r._$owner = D(), O(r, () => e.labelText), O(t, T(C, {
|
|
784
814
|
get when() {
|
|
785
815
|
return e.hasActions;
|
|
786
816
|
},
|
|
787
817
|
get children() {
|
|
788
|
-
var t =
|
|
818
|
+
var t = He(), n = t.firstChild;
|
|
789
819
|
return n._$owner = D(), E(() => ({
|
|
790
|
-
e:
|
|
820
|
+
e: A(G.actions),
|
|
791
821
|
t: e.partForName("actions"),
|
|
792
822
|
a: e.slotForName("actions")
|
|
793
823
|
}), ({ e, t: r, a: i }, a) => {
|
|
794
|
-
w(t, e, a?.e), r !== a?.t &&
|
|
824
|
+
w(t, e, a?.e), r !== a?.t && j(t, "part", r), i !== a?.a && j(n, "name", i);
|
|
795
825
|
}), t;
|
|
796
826
|
}
|
|
797
827
|
}), i), O(t, T(C, {
|
|
@@ -799,78 +829,112 @@ var at = H, U = class _UIField extends (rt = d, nt = [v], tt = [y], et = [b], $e
|
|
|
799
829
|
return e.hasOutput;
|
|
800
830
|
},
|
|
801
831
|
get children() {
|
|
802
|
-
var t =
|
|
832
|
+
var t = He(), n = t.firstChild;
|
|
803
833
|
return n._$owner = D(), O(n, () => e.output), E(() => ({
|
|
804
|
-
e:
|
|
834
|
+
e: A(G.output),
|
|
805
835
|
t: e.partForName("output"),
|
|
806
836
|
a: e.slotForName("output")
|
|
807
837
|
}), ({ e, t: r, a: i }, a) => {
|
|
808
|
-
w(t, e, a?.e), r !== a?.t &&
|
|
838
|
+
w(t, e, a?.e), r !== a?.t && j(t, "part", r), i !== a?.a && j(n, "name", i);
|
|
839
|
+
}), t;
|
|
840
|
+
}
|
|
841
|
+
}), a), O(t, () => e.rowEnd(), o), O(t, T(C, {
|
|
842
|
+
get when() {
|
|
843
|
+
return k(() => !!e.hasHint)() ? e.hasHintInRow : e.hasHint;
|
|
844
|
+
},
|
|
845
|
+
get children() {
|
|
846
|
+
var t = He(), n = t.firstChild;
|
|
847
|
+
return n._$owner = D(), O(n, () => e.hintText), E(() => ({
|
|
848
|
+
e: A(G.hint),
|
|
849
|
+
t: e.partForName("hint"),
|
|
850
|
+
a: e.hintText,
|
|
851
|
+
o: e.slotForName("hint")
|
|
852
|
+
}), ({ e, t: r, a: i, o: a }, o) => {
|
|
853
|
+
w(t, e, o?.e), r !== o?.t && j(t, "part", r), i !== o?.a && j(t, "title", i), a !== o?.o && j(n, "name", a);
|
|
809
854
|
}), t;
|
|
810
855
|
}
|
|
811
|
-
}),
|
|
856
|
+
}), s), O(t, T(C, {
|
|
812
857
|
get when() {
|
|
813
858
|
return e.hasDescription;
|
|
814
859
|
},
|
|
815
860
|
get children() {
|
|
816
|
-
var t =
|
|
817
|
-
return
|
|
818
|
-
e:
|
|
861
|
+
var t = Ue(), n = t.firstChild, r = n.firstChild;
|
|
862
|
+
return j(t, "aria-describedby", ft), ge(() => (e) => ee.showIn(e, `.${G.info}`, { showOnClick: !0 }), t), O(t, () => e.infoGlyph.svg, n), j(n, "id", ft), r._$owner = D(), O(r, () => e.descriptionText), E(() => ({
|
|
863
|
+
e: A(G.info),
|
|
819
864
|
t: e.partForName("info"),
|
|
820
865
|
a: e.translationForKey("info", { label: e.labelText ?? "" }),
|
|
821
|
-
o:
|
|
866
|
+
o: A(G.tip),
|
|
822
867
|
i: e.partForName("tip"),
|
|
823
868
|
n: e.slotForName("description")
|
|
824
869
|
}), ({ e, t: i, a, o, i: s, n: c }, l) => {
|
|
825
|
-
w(t, e, l?.e), i !== l?.t &&
|
|
870
|
+
w(t, e, l?.e), i !== l?.t && j(t, "part", i), a !== l?.a && j(t, "aria-label", a), w(n, o, l?.o), s !== l?.i && j(n, "part", s), c !== l?.n && j(r, "name", c);
|
|
871
|
+
}), t;
|
|
872
|
+
}
|
|
873
|
+
}), c), O(t, T(C, {
|
|
874
|
+
get when() {
|
|
875
|
+
return e.unsavedText;
|
|
876
|
+
},
|
|
877
|
+
get children() {
|
|
878
|
+
var t = We();
|
|
879
|
+
return O(t, () => e.unsavedGlyph.svg), E(() => ({
|
|
880
|
+
e: A(G.unsaved),
|
|
881
|
+
t: e.partForName("unsaved"),
|
|
882
|
+
a: e.unsavedText,
|
|
883
|
+
o: e.unsavedText
|
|
884
|
+
}), ({ e, t: n, a: r, o: i }, a) => {
|
|
885
|
+
w(t, e, a?.e), n !== a?.t && j(t, "part", n), r !== a?.a && j(t, "title", r), i !== a?.o && j(t, "aria-label", i);
|
|
826
886
|
}), t;
|
|
827
887
|
}
|
|
828
|
-
}),
|
|
829
|
-
e:
|
|
888
|
+
}), l), E(() => ({
|
|
889
|
+
e: A(G.row),
|
|
830
890
|
t: e.partForName("row"),
|
|
831
|
-
a:
|
|
891
|
+
a: A(G.label),
|
|
832
892
|
o: e.partForName("label"),
|
|
833
|
-
i: e.
|
|
834
|
-
|
|
835
|
-
|
|
893
|
+
i: e.labelTitle,
|
|
894
|
+
n: e.slotForName("label")
|
|
895
|
+
}), ({ e, t: i, a, o, i: s, n: c }, l) => {
|
|
896
|
+
w(t, e, l?.e), i !== l?.t && j(t, "part", i), w(n, a, l?.a), o !== l?.o && j(n, "part", o), s !== l?.i && j(n, "title", s), c !== l?.n && j(r, "name", c);
|
|
836
897
|
}), t;
|
|
837
898
|
}
|
|
899
|
+
controlStart() {}
|
|
838
900
|
controlSlotElement() {
|
|
839
901
|
let e = this;
|
|
840
|
-
var t =
|
|
841
|
-
return
|
|
902
|
+
var t = Ke();
|
|
903
|
+
return pe(t, "slotchange", e.onControlChange), ge(() => (t) => e.controlSlot = t, t), t._$owner = D(), t;
|
|
842
904
|
}
|
|
843
905
|
onLabelChanged(e, t) {
|
|
844
906
|
t && this.nameControls(e);
|
|
845
907
|
}
|
|
846
908
|
nameControls(e) {
|
|
847
|
-
for (let t of this.controlSlot?.assignedElements() ?? []) t.localName !== "label" && (!
|
|
909
|
+
for (let t of this.controlSlot?.assignedElements() ?? []) t.localName !== "label" && (!pt.some((e) => t.hasAttribute(e)) || this.named.has(t)) && (e ? (t.setAttribute("aria-label", e), this.named.add(t)) : this.named.has(t) && (t.removeAttribute("aria-label"), this.named.delete(t)));
|
|
848
910
|
}
|
|
849
911
|
};
|
|
850
|
-
|
|
912
|
+
H = S(ot), st = /* @__PURE__ */ new WeakMap(), a(H, 4, "formErrors", rt, W, st), a(H, 1, "showErrors", nt, W), a(H, 2, "isMixed", tt, W), a(H, 2, "isReadOnly", et, W), a(H, 2, "isField", $e, W), a(H, 1, "onLabelChanged", Qe, W), a(H, 13, "vocabulary", at, W), a(H, 13, "elementSetup", it, W), a(H, 5, "onControlChange", Ze, W), c(H, W), e(W, "UIField"), r(W, "vocabulary", f(H, 12, W, Fe)), f(H, 15, W), r(W, "elementSetup", f(H, 16, W, {
|
|
851
913
|
styleSheets: {
|
|
852
|
-
form:
|
|
853
|
-
field:
|
|
914
|
+
form: B,
|
|
915
|
+
field: Ie
|
|
854
916
|
},
|
|
855
|
-
DOMElement:
|
|
917
|
+
DOMElement: ct,
|
|
856
918
|
delegatesFocus: !1
|
|
857
|
-
})), f(
|
|
858
|
-
var
|
|
919
|
+
})), f(H, 19, W);
|
|
920
|
+
var lt = W, ut = "circle info", dt = "save", ft = "tip", pt = ["aria-label", "aria-labelledby"], G = {
|
|
859
921
|
row: "row",
|
|
860
922
|
label: "label",
|
|
861
923
|
actions: "actions",
|
|
862
924
|
output: "output",
|
|
863
925
|
info: "info",
|
|
864
926
|
tip: "tip",
|
|
927
|
+
unsaved: "unsaved",
|
|
865
928
|
control: "control",
|
|
866
929
|
hint: "hint",
|
|
867
930
|
error: "error prompt"
|
|
868
931
|
};
|
|
869
|
-
|
|
932
|
+
me(["click"]);
|
|
870
933
|
//#endregion
|
|
871
934
|
//#region src/components/ui-form/UIFields.en.ts
|
|
872
|
-
var
|
|
935
|
+
var mt = {
|
|
873
936
|
tag: "ui-fields",
|
|
937
|
+
icon: "wpforms",
|
|
874
938
|
topics: [
|
|
875
939
|
"forms",
|
|
876
940
|
"layout",
|
|
@@ -963,28 +1027,29 @@ var ut = {
|
|
|
963
1027
|
description: "Can't be used."
|
|
964
1028
|
}],
|
|
965
1029
|
texts: []
|
|
966
|
-
},
|
|
1030
|
+
}, ht = /* @__PURE__ */ M("<div><slot>"), gt, _t, vt, K, q = class _UIFields extends (vt = d, _t = [v], gt = [y], vt) {
|
|
967
1031
|
cssStates() {
|
|
968
1032
|
return FormStateFlags.of(this.state);
|
|
969
1033
|
}
|
|
970
1034
|
render() {
|
|
971
1035
|
let e = this;
|
|
972
|
-
var t =
|
|
1036
|
+
var t = ht(), n = t.firstChild;
|
|
973
1037
|
return n._$owner = D(), E(() => ({
|
|
974
|
-
e:
|
|
1038
|
+
e: A(e.rootClass),
|
|
975
1039
|
t: e.partForName("fields"),
|
|
976
1040
|
a: e.disabled
|
|
977
1041
|
}), ({ e, t: n, a: r }, i) => {
|
|
978
|
-
w(t, e, i?.e), n !== i?.t &&
|
|
1042
|
+
w(t, e, i?.e), n !== i?.t && j(t, "part", n), r !== i?.a && j(t, "inert", r);
|
|
979
1043
|
}), t;
|
|
980
1044
|
}
|
|
981
1045
|
};
|
|
982
|
-
K =
|
|
983
|
-
styleSheets: { form:
|
|
1046
|
+
K = S(vt), a(K, 13, "vocabulary", _t, q), a(K, 13, "elementSetup", gt, q), c(K, q), e(q, "UIFields"), r(q, "vocabulary", f(K, 8, q, mt)), f(K, 11, q), r(q, "elementSetup", f(K, 12, q, {
|
|
1047
|
+
styleSheets: { form: B },
|
|
984
1048
|
delegatesFocus: !1
|
|
985
1049
|
})), f(K, 15, q);
|
|
986
|
-
var
|
|
1050
|
+
var yt = q, bt = {
|
|
987
1051
|
tag: "ui-form",
|
|
1052
|
+
icon: "wpforms",
|
|
988
1053
|
topics: [
|
|
989
1054
|
"forms",
|
|
990
1055
|
"inputs",
|
|
@@ -999,6 +1064,12 @@ var mt = q, ht = {
|
|
|
999
1064
|
noun: "form",
|
|
1000
1065
|
description: "A form displays a set of related input fields in a structured way.",
|
|
1001
1066
|
attributes: [
|
|
1067
|
+
{
|
|
1068
|
+
name: "fluid",
|
|
1069
|
+
group: "layout",
|
|
1070
|
+
kind: "boolean",
|
|
1071
|
+
description: "In a `<ui-stack>`'s row, takes the room left: a search field between a logo and a button. With the shared `min-width` and `max-width`, between those (`fluid min-width=\"16em\" max-width=\"26em\"`)."
|
|
1072
|
+
},
|
|
1002
1073
|
{
|
|
1003
1074
|
name: "size",
|
|
1004
1075
|
group: "appearance",
|
|
@@ -1047,7 +1118,7 @@ var mt = q, ht = {
|
|
|
1047
1118
|
name: "stack-with",
|
|
1048
1119
|
group: "layout",
|
|
1049
1120
|
kind: "enum",
|
|
1050
|
-
values:
|
|
1121
|
+
values: ce,
|
|
1051
1122
|
description: "What its rows of fields stack by: `container` (the default) -- the form's own width; `page` -- the screen's, as in Fomantic. Its `<ui-fields>` follow it. Unset: the page-wide `--ui-stack-with` token decides (`<ui-root stack-with>`)."
|
|
1052
1123
|
},
|
|
1053
1124
|
{
|
|
@@ -1185,7 +1256,7 @@ var mt = q, ht = {
|
|
|
1185
1256
|
text: "Values",
|
|
1186
1257
|
description: "Caption of `debug`'s JSON while it isn't: the form's `values`."
|
|
1187
1258
|
}]
|
|
1188
|
-
},
|
|
1259
|
+
}, xt = /* @__PURE__ */ M("<div><slot>"), St = /* @__PURE__ */ M("<figure class=debug><figcaption></figcaption><pre>"), Ct = /* @__PURE__ */ M("<form><slot>"), wt, Tt, J, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, Ft, It, Lt, Rt, zt, Bt, Vt, Ht, Ut, Wt, Gt, Kt, qt, Jt, Y, Yt, Xt, Zt, Qt, X = class _DOMFormElement extends (Tt = n, wt = [x], Tt) {
|
|
1189
1260
|
constructor() {
|
|
1190
1261
|
super(...arguments), f(J, 5, this);
|
|
1191
1262
|
}
|
|
@@ -1214,28 +1285,29 @@ var mt = q, ht = {
|
|
|
1214
1285
|
return this.component?.nativeForm;
|
|
1215
1286
|
}
|
|
1216
1287
|
};
|
|
1217
|
-
J =
|
|
1218
|
-
var
|
|
1288
|
+
J = S(Tt), a(J, 2, "nativeForm", wt, X), c(J, X), e(X, "DOMFormElement");
|
|
1289
|
+
var $t = X, Z = class _UIForm extends (Jt = d, qt = [v], Kt = [y], Gt = [b], Wt = [h("fluid")], Ut = [h("changed"), b], Ht = [h("root")], Vt = [b], Bt = [le], zt = [g("ui-form-value")], Rt = [x], Lt = [x], It = [_("nativeForm")], Ft = [_("isBound", "isConnected")], Pt = [b], Nt = [x], Mt = [x], jt = [x], At = [x], kt = [x], Ot = [
|
|
1219
1290
|
g("change"),
|
|
1220
1291
|
g("input"),
|
|
1221
1292
|
g("ui-changed")
|
|
1222
|
-
],
|
|
1293
|
+
], Dt = [g("focusout")], Et = [x], Jt) {
|
|
1223
1294
|
constructor() {
|
|
1224
|
-
super(...arguments), f(Y, 5, this),
|
|
1295
|
+
super(...arguments), f(Y, 5, this), r(this, "fields", new P({
|
|
1225
1296
|
domElement: this.domElement,
|
|
1226
|
-
form: /* @__PURE__ */
|
|
1227
|
-
})),
|
|
1297
|
+
form: /* @__PURE__ */ e(() => this.nativeForm, "form")
|
|
1298
|
+
})), r(this, "binding", new L({
|
|
1228
1299
|
domElement: this.domElement,
|
|
1229
1300
|
fields: this.fields,
|
|
1230
1301
|
form: {
|
|
1231
|
-
isHolding: /* @__PURE__ */
|
|
1232
|
-
canWrite: /* @__PURE__ */
|
|
1233
|
-
onHeldChange: /* @__PURE__ */
|
|
1302
|
+
isHolding: /* @__PURE__ */ e(() => this.apply === tn, "isHolding"),
|
|
1303
|
+
canWrite: /* @__PURE__ */ e((e) => this.passes(e), "canWrite"),
|
|
1304
|
+
onHeldChange: /* @__PURE__ */ e(() => {
|
|
1234
1305
|
this.hasHeldChanges = this.binding.hasHeld, this.onHeldChanged();
|
|
1235
1306
|
}, "onHeldChange"),
|
|
1236
|
-
|
|
1307
|
+
writesItself: /* @__PURE__ */ e((e, t, n) => this.writesItself(e, t, n), "writesItself"),
|
|
1308
|
+
onWrite: /* @__PURE__ */ e((e) => this.onWritten(e), "onWrite")
|
|
1237
1309
|
}
|
|
1238
|
-
})),
|
|
1310
|
+
})), r(this, "fieldsShowingErrors", /* @__PURE__ */ new Set()), r(this, "savedValues", ""), r(this, "fieldsAwaitingCheck", /* @__PURE__ */ new Set()), r(this, "mergedForm", he ? _UIForm.unwrapForm(this.domElement) : void 0), p(this, Yt, f(Y, 8, this, !1)), f(Y, 11, this), p(this, Xt, f(Y, 12, this, !1)), f(Y, 15, this), p(this, Zt, f(Y, 16, this)), f(Y, 19, this), p(this, Qt, f(Y, 20, this, 0)), f(Y, 23, this), r(this, "onSubmit", f(Y, 32, this, /* @__PURE__ */ e((e) => {
|
|
1239
1311
|
this.binding.flushWaiting();
|
|
1240
1312
|
let t = this.validateAll();
|
|
1241
1313
|
if (Object.keys(t).length) {
|
|
@@ -1253,11 +1325,11 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1253
1325
|
originalEvent: e
|
|
1254
1326
|
};
|
|
1255
1327
|
this.send("ui-saving", n) ? (this.saveValues(), this.onSucceeded()) : e.preventDefault();
|
|
1256
|
-
}, "onSubmit"))), f(Y, 35, this),
|
|
1328
|
+
}, "onSubmit"))), f(Y, 35, this), r(this, "onReset", /* @__PURE__ */ e(() => {
|
|
1257
1329
|
m(() => {
|
|
1258
1330
|
this.clearErrors(), this.binding.writeAll();
|
|
1259
1331
|
});
|
|
1260
|
-
}, "onReset")),
|
|
1332
|
+
}, "onReset")), r(this, "onBeforeUnload", f(Y, 36, this, /* @__PURE__ */ e((e) => {
|
|
1261
1333
|
this.preventLeaving && JSON.stringify(this.values) !== this.savedValues && e.preventDefault();
|
|
1262
1334
|
}, "onBeforeUnload"))), f(Y, 39, this);
|
|
1263
1335
|
}
|
|
@@ -1267,6 +1339,9 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1267
1339
|
cssStates() {
|
|
1268
1340
|
return FormStateFlags.of(this.shownState);
|
|
1269
1341
|
}
|
|
1342
|
+
get isFluid() {
|
|
1343
|
+
return !!this.fluid;
|
|
1344
|
+
}
|
|
1270
1345
|
get isRoot() {
|
|
1271
1346
|
return !0;
|
|
1272
1347
|
}
|
|
@@ -1274,19 +1349,19 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1274
1349
|
return e === "state" ? this.shownState : super.classValue(e);
|
|
1275
1350
|
}
|
|
1276
1351
|
get extraClass() {
|
|
1277
|
-
return
|
|
1352
|
+
return re.classFor(this.stackWith);
|
|
1278
1353
|
}
|
|
1279
1354
|
render() {
|
|
1280
1355
|
if (this.mergedForm) return this.formRoot(this.mergedForm);
|
|
1281
1356
|
let e = this;
|
|
1282
|
-
var t =
|
|
1357
|
+
var t = xt(), n = t.firstChild;
|
|
1283
1358
|
return n._$owner = D(), O(t, () => e.debugBox(), null), E(() => ({
|
|
1284
|
-
e:
|
|
1359
|
+
e: A(e.rootClass),
|
|
1285
1360
|
t: e.partForName("form"),
|
|
1286
1361
|
a: e.disabled || e.loading,
|
|
1287
1362
|
o: e.loading ? "true" : void 0
|
|
1288
1363
|
}), ({ e, t: n, a: r, o: i }, a) => {
|
|
1289
|
-
w(t, e, a?.e), n !== a?.t &&
|
|
1364
|
+
w(t, e, a?.e), n !== a?.t && j(t, "part", n), r !== a?.a && j(t, "inert", r), i !== a?.o && j(t, "aria-busy", i);
|
|
1290
1365
|
}), t;
|
|
1291
1366
|
}
|
|
1292
1367
|
debugBox() {
|
|
@@ -1296,16 +1371,16 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1296
1371
|
return e.debug;
|
|
1297
1372
|
},
|
|
1298
1373
|
get children() {
|
|
1299
|
-
var t =
|
|
1374
|
+
var t = St(), n = t.firstChild, r = n.nextSibling;
|
|
1300
1375
|
return O(n, () => e.debugCaption), O(r, () => e.debugText), E(() => e.partForName("debug"), (e) => {
|
|
1301
|
-
|
|
1376
|
+
j(r, "part", e);
|
|
1302
1377
|
}), t;
|
|
1303
1378
|
}
|
|
1304
1379
|
});
|
|
1305
1380
|
}
|
|
1306
1381
|
formRoot(e) {
|
|
1307
1382
|
let { class: t, ...n } = e, r = this;
|
|
1308
|
-
var i =
|
|
1383
|
+
var i = Ct(), a = i.firstChild;
|
|
1309
1384
|
return _e(i, [n, {
|
|
1310
1385
|
get class() {
|
|
1311
1386
|
return [r.rootClass, t];
|
|
@@ -1322,7 +1397,7 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1322
1397
|
}], !0), a._$owner = D(), i;
|
|
1323
1398
|
}
|
|
1324
1399
|
onMount() {
|
|
1325
|
-
return
|
|
1400
|
+
return L.hold(this.domElement, () => this.value), super.onMount();
|
|
1326
1401
|
}
|
|
1327
1402
|
watchForm() {
|
|
1328
1403
|
let e = new MutationObserver(() => this.onContentChanged());
|
|
@@ -1333,6 +1408,9 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1333
1408
|
this.nativeForm = void 0, e.disconnect(), window.removeEventListener("beforeunload", this.onBeforeUnload);
|
|
1334
1409
|
};
|
|
1335
1410
|
}
|
|
1411
|
+
onFormValueReady() {
|
|
1412
|
+
this.onContentChanged();
|
|
1413
|
+
}
|
|
1336
1414
|
onContentChanged() {
|
|
1337
1415
|
this.findForm(), this.isBound && this.binding.update(), this.changeCount++;
|
|
1338
1416
|
}
|
|
@@ -1348,16 +1426,16 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1348
1426
|
};
|
|
1349
1427
|
}
|
|
1350
1428
|
get isBound() {
|
|
1351
|
-
return
|
|
1429
|
+
return L.isObject(this.value);
|
|
1352
1430
|
}
|
|
1353
1431
|
onBindingChanged(e, t) {
|
|
1354
|
-
if (e && t && !
|
|
1432
|
+
if (e && t && !he) return this.binding.update(), () => this.binding.stop();
|
|
1355
1433
|
}
|
|
1356
1434
|
get debugCaption() {
|
|
1357
1435
|
return this.translationForKey(this.isBound ? "formDebugBound" : "formDebugValues");
|
|
1358
1436
|
}
|
|
1359
1437
|
get debugText() {
|
|
1360
|
-
let { value: e } = this, t = this.changeCount >= 0 &&
|
|
1438
|
+
let { value: e } = this, t = this.changeCount >= 0 && L.isObject(e) ? e : this.values;
|
|
1361
1439
|
try {
|
|
1362
1440
|
return JSON.stringify(t, null, 2);
|
|
1363
1441
|
} catch (e) {
|
|
@@ -1495,6 +1573,9 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1495
1573
|
return this.binding.heldControls;
|
|
1496
1574
|
}
|
|
1497
1575
|
onSucceeded() {}
|
|
1576
|
+
writesItself(e, t, n) {
|
|
1577
|
+
return !1;
|
|
1578
|
+
}
|
|
1498
1579
|
onWritten(e) {}
|
|
1499
1580
|
clearErrors() {
|
|
1500
1581
|
for (let e of this.fieldsShowingErrors) {
|
|
@@ -1521,10 +1602,10 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1521
1602
|
onControlChanged(e) {
|
|
1522
1603
|
this.binding.onChange(e), m(() => this.changeCount++);
|
|
1523
1604
|
let t = this.identifierFor(e);
|
|
1524
|
-
t && (this.fieldsShowingErrors.has(t) || this.validate ===
|
|
1605
|
+
t && (this.fieldsShowingErrors.has(t) || this.validate === rn) && this.checkFieldSoon(t);
|
|
1525
1606
|
}
|
|
1526
1607
|
onFocusOut(e) {
|
|
1527
|
-
if (this.binding.onLeave(e), this.validate !==
|
|
1608
|
+
if (this.binding.onLeave(e), this.validate !== nn) return;
|
|
1528
1609
|
let t = this.identifierFor(e);
|
|
1529
1610
|
t && this.checkFieldSoon(t);
|
|
1530
1611
|
}
|
|
@@ -1545,7 +1626,7 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1545
1626
|
return t.replaceWith(...t.childNodes), r;
|
|
1546
1627
|
}
|
|
1547
1628
|
static fieldElementFor(e) {
|
|
1548
|
-
return e[0]?.closest(
|
|
1629
|
+
return e[0]?.closest(N) ?? void 0;
|
|
1549
1630
|
}
|
|
1550
1631
|
static resetControl(e) {
|
|
1551
1632
|
if (e instanceof HTMLInputElement) e.type === "checkbox" || e.type === "radio" ? e.checked = e.defaultChecked : e.value = e.defaultValue;
|
|
@@ -1564,14 +1645,15 @@ var Kt = X, Z = class _UIForm extends (Vt = d, Bt = [v], zt = [y], Rt = [b], Lt
|
|
|
1564
1645
|
}
|
|
1565
1646
|
}
|
|
1566
1647
|
};
|
|
1567
|
-
Y =
|
|
1568
|
-
styleSheets: { form:
|
|
1569
|
-
DOMElement:
|
|
1648
|
+
Y = S(Jt), Yt = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), a(Y, 4, "lastCheckFailed", Gt, Z, Yt), a(Y, 2, "isFluid", Wt, Z), a(Y, 4, "hasHeldChanges", Ut, Z, Xt), a(Y, 2, "isRoot", Ht, Z), a(Y, 4, "nativeForm", Vt, Z, Zt), a(Y, 1, "watchForm", Bt, Z), a(Y, 1, "onFormValueReady", zt, Z), a(Y, 1, "onContentChanged", Rt, Z), a(Y, 1, "findForm", Lt, Z), a(Y, 1, "onNativeFormChanged", It, Z), a(Y, 1, "onBindingChanged", Ft, Z), a(Y, 4, "changeCount", Pt, Z, Qt), a(Y, 1, "reset", Nt, Z), a(Y, 1, "save", Mt, Z), a(Y, 1, "cancel", jt, Z), a(Y, 1, "passes", At, Z), a(Y, 1, "onControlChanged", Ot, Z), a(Y, 1, "onFocusOut", Dt, Z), a(Y, 13, "vocabulary", qt, Z), a(Y, 13, "elementSetup", Kt, Z), a(Y, 5, "onSubmit", kt, Z), a(Y, 5, "onBeforeUnload", Et, Z), c(Y, Z), e(Z, "UIForm"), r(Z, "vocabulary", f(Y, 24, Z, bt)), f(Y, 27, Z), r(Z, "elementSetup", f(Y, 28, Z, {
|
|
1649
|
+
styleSheets: { form: B },
|
|
1650
|
+
DOMElement: $t,
|
|
1570
1651
|
delegatesFocus: !1,
|
|
1571
1652
|
loading: "its own"
|
|
1572
1653
|
})), f(Y, 31, Z);
|
|
1573
|
-
var
|
|
1654
|
+
var en = Z, tn = "on save", nn = "on leave", rn = "immediately", an = {
|
|
1574
1655
|
tag: "ui-repeat",
|
|
1656
|
+
icon: "redo",
|
|
1575
1657
|
topics: [
|
|
1576
1658
|
"forms",
|
|
1577
1659
|
"lists",
|
|
@@ -1607,12 +1689,12 @@ var qt = Z, Jt = "on save", Yt = "on leave", Xt = "immediately", Zt = {
|
|
|
1607
1689
|
parts: [],
|
|
1608
1690
|
states: [],
|
|
1609
1691
|
texts: []
|
|
1610
|
-
},
|
|
1692
|
+
}, on = /* @__PURE__ */ M("<slot>"), sn, cn, ln, un, dn, fn, Q, pn, $ = class _UIRepeat extends (fn = d, dn = [v], un = [y], ln = [b], cn = [le], sn = [_("shownItems")], fn) {
|
|
1611
1693
|
constructor() {
|
|
1612
|
-
super(...arguments), f(Q, 5, this),
|
|
1694
|
+
super(...arguments), f(Q, 5, this), r(this, "template"), p(this, pn, f(Q, 8, this, 0)), f(Q, 11, this), r(this, "rows", []), r(this, "rowOf", /* @__PURE__ */ new WeakMap());
|
|
1613
1695
|
}
|
|
1614
1696
|
render() {
|
|
1615
|
-
var e =
|
|
1697
|
+
var e = on();
|
|
1616
1698
|
return e._$owner = D(), e;
|
|
1617
1699
|
}
|
|
1618
1700
|
watchTemplate() {
|
|
@@ -1639,8 +1721,8 @@ var qt = Z, Jt = "on save", Yt = "on leave", Xt = "immediately", Zt = {
|
|
|
1639
1721
|
}
|
|
1640
1722
|
listByName() {
|
|
1641
1723
|
if (!this.name) return;
|
|
1642
|
-
let e =
|
|
1643
|
-
return
|
|
1724
|
+
let e = L.scopeAround(this.domElement);
|
|
1725
|
+
return L.isObject(e) ? e[this.name] : void 0;
|
|
1644
1726
|
}
|
|
1645
1727
|
onItemsChanged(e) {
|
|
1646
1728
|
let { template: t } = this;
|
|
@@ -1659,7 +1741,7 @@ var qt = Z, Jt = "on save", Yt = "on leave", Xt = "immediately", Zt = {
|
|
|
1659
1741
|
item: e,
|
|
1660
1742
|
nodes: [...document.importNode(t.content, !0).childNodes]
|
|
1661
1743
|
};
|
|
1662
|
-
for (let t of n.nodes) this.rowOf.set(t, n), t.nodeType === Node.ELEMENT_NODE &&
|
|
1744
|
+
for (let t of n.nodes) this.rowOf.set(t, n), t.nodeType === Node.ELEMENT_NODE && L.hold(t, () => e);
|
|
1663
1745
|
return n;
|
|
1664
1746
|
}
|
|
1665
1747
|
place(e) {
|
|
@@ -1667,20 +1749,20 @@ var qt = Z, Jt = "on save", Yt = "on leave", Xt = "immediately", Zt = {
|
|
|
1667
1749
|
for (let r of e) r === n ? n = r.nextSibling : _UIRepeat.move(t, r, n);
|
|
1668
1750
|
}
|
|
1669
1751
|
static isIterable(e) {
|
|
1670
|
-
return
|
|
1752
|
+
return L.isObject(e) && typeof e[Symbol.iterator] == "function";
|
|
1671
1753
|
}
|
|
1672
1754
|
static move(e, t, n) {
|
|
1673
1755
|
let { moveBefore: r } = e;
|
|
1674
1756
|
r && t.isConnected && e.isConnected ? r.call(e, t, n) : e.insertBefore(t, n);
|
|
1675
1757
|
}
|
|
1676
1758
|
};
|
|
1677
|
-
Q =
|
|
1678
|
-
styleSheets: { form:
|
|
1759
|
+
Q = S(fn), pn = /* @__PURE__ */ new WeakMap(), a(Q, 4, "templateVersion", ln, $, pn), a(Q, 1, "watchTemplate", cn, $), a(Q, 1, "onItemsChanged", sn, $), a(Q, 13, "vocabulary", dn, $), a(Q, 13, "elementSetup", un, $), c(Q, $), e($, "UIRepeat"), r($, "vocabulary", f(Q, 12, $, an)), f(Q, 15, $), r($, "elementSetup", f(Q, 16, $, {
|
|
1760
|
+
styleSheets: { form: B },
|
|
1679
1761
|
delegatesFocus: !1
|
|
1680
1762
|
})), f(Q, 19, $);
|
|
1681
|
-
var
|
|
1682
|
-
|
|
1763
|
+
var mn = $;
|
|
1764
|
+
lt.define(), yt.define(), en.define(), mn.define();
|
|
1683
1765
|
//#endregion
|
|
1684
|
-
export {
|
|
1766
|
+
export { ct as DOMFieldElement, $t as DOMFormElement, L as FormBinding, P as FormFields, lt as UIField, yt as UIFields, en as UIForm, mn as UIRepeat, Fe as n, bt as t };
|
|
1685
1767
|
|
|
1686
1768
|
//# sourceMappingURL=ui-form.js.map
|