spell-ui 0.8.6 → 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 +13 -3
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +11 -0
- package/dist/components/ui-container/UIContainer.en.d.ts +7 -0
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +268 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +106 -0
- package/dist/components/ui-diagram/UIDiagram.es.d.ts +37 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +98 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +38 -0
- package/dist/components/ui-diagram/UIDiagramNode.es.d.ts +16 -0
- package/dist/components/ui-diagram/index.d.ts +8 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +81 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +54 -0
- package/dist/components/ui-dimension/UIDimension.es.d.ts +22 -0
- package/dist/components/ui-dimension/index.d.ts +2 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +6 -1
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.es.d.ts +1 -1
- package/dist/components/ui-divider/UIDivider.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.es.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +4 -2
- package/dist/components/ui-example/UIExample.es.d.ts +3 -2
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/FormBinding.d.ts +13 -1
- package/dist/components/ui-form/FormFields.d.ts +4 -4
- package/dist/components/ui-form/UIField.d.ts +30 -3
- package/dist/components/ui-form/UIField.en.d.ts +9 -0
- package/dist/components/ui-form/UIField.es.d.ts +6 -0
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +15 -0
- package/dist/components/ui-form/UIForm.en.d.ts +6 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-form/index.d.ts +2 -1
- package/dist/components/ui-grid/UIColumn.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.en.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +3 -2
- package/dist/components/ui-icon/UIIcon.en.d.ts +3 -2
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
- package/dist/components/ui-image/UIImage.d.ts +34 -0
- package/dist/components/ui-image/UIImage.en.d.ts +23 -0
- package/dist/components/ui-image/UIImage.es.d.ts +2 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/TextControl.d.ts +7 -0
- package/dist/components/ui-input/UIInput.d.ts +22 -3
- package/dist/components/ui-input/UIInput.en.d.ts +9 -2
- package/dist/components/ui-input/UIInput.es.d.ts +2 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +9 -2
- package/dist/components/ui-input/UITextarea.d.ts +20 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +15 -0
- package/dist/components/ui-input/UITextarea.es.d.ts +4 -0
- package/dist/components/ui-item/UIItem.d.ts +27 -4
- package/dist/components/ui-item/UIItem.en.d.ts +5 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/JsonChild.d.ts +30 -0
- package/dist/components/ui-json/UIJson.d.ts +128 -0
- package/dist/components/ui-json/UIJson.en.d.ts +71 -0
- package/dist/components/ui-json/UIJson.es.d.ts +12 -0
- package/dist/components/ui-json/index.d.ts +3 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +2 -0
- package/dist/components/ui-label/UILabel.en.d.ts +2 -0
- package/dist/components/ui-label/UILabel.es.d.ts +1 -0
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +2 -0
- package/dist/components/ui-list/UIList.en.d.ts +2 -0
- package/dist/components/ui-list/UIList.es.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +143 -0
- package/dist/components/ui-markdown/MarkdownEngine.d.ts +14 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +95 -0
- package/dist/components/ui-markdown/MarkdownSource.d.ts +57 -0
- package/dist/components/ui-markdown/UIMarkdown.d.ts +126 -6
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +111 -8
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +29 -1
- package/dist/components/ui-markdown/UIMarkdown.types.d.ts +26 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +79 -0
- package/dist/components/ui-menu/TitleFit.d.ts +3 -0
- package/dist/components/ui-menu/UIMenu.d.ts +97 -4
- package/dist/components/ui-menu/UIMenu.en.d.ts +50 -1
- package/dist/components/ui-menu/UIMenu.es.d.ts +4 -0
- package/dist/components/ui-message/UIMessage.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.en.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.es.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +1 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +15 -0
- package/dist/components/ui-page/UIPage.en.d.ts +15 -0
- package/dist/components/ui-page/UIPage.es.d.ts +1 -0
- package/dist/components/ui-panel/UIPanel.d.ts +6 -0
- package/dist/components/ui-panel/UIPanel.en.d.ts +33 -20
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.en.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +3 -1
- package/dist/components/ui-parts/UIHeader.en.d.ts +3 -1
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +15 -1
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +30 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +7 -0
- package/dist/components/ui-popup/UIPopup.es.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.en.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.es.d.ts +1 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +132 -5
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +11 -44
- package/dist/components/ui-property-editor/UIProperty.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +38 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +33 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +12 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +2 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.es.d.ts +9 -0
- package/dist/components/ui-property-editor/index.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +6 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.d.ts +18 -3
- package/dist/components/ui-root/UIRoot.en.d.ts +15 -0
- package/dist/components/ui-root/UIRoot.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +48 -7
- package/dist/components/ui-search/UISearch.en.d.ts +13 -1
- package/dist/components/ui-search/UISearch.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +13 -1
- package/dist/components/ui-section/UISection.d.ts +22 -1
- package/dist/components/ui-section/UISection.en.d.ts +10 -0
- package/dist/components/ui-section/UISection.es.d.ts +1 -0
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.en.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.es.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +6 -0
- package/dist/components/ui-select/UISelect.en.d.ts +6 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +6 -0
- package/dist/components/ui-shape/UIShape.d.ts +23 -2
- package/dist/components/ui-shape/UIShape.en.d.ts +8 -0
- package/dist/components/ui-shape/UIShape.es.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +4 -0
- package/dist/components/ui-shape/UISide.en.d.ts +4 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +209 -0
- package/dist/components/ui-sides/UISides.en.d.ts +122 -0
- package/dist/components/ui-sides/UISides.es.d.ts +30 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +134 -0
- package/dist/components/ui-sides/index.d.ts +2 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +53 -0
- package/dist/components/ui-site-nav/UISiteNav.d.ts +207 -0
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +87 -0
- package/dist/components/ui-site-nav/UISiteNav.es.d.ts +29 -0
- package/dist/components/ui-site-nav/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +126 -0
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +49 -0
- package/dist/components/ui-site-tabs/UISiteTabs.es.d.ts +18 -0
- package/dist/components/ui-site-tabs/index.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.es.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +7 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +175 -0
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +74 -0
- package/dist/components/ui-split-panel/UISplitPanel.es.d.ts +25 -0
- package/dist/components/ui-split-panel/index.d.ts +2 -0
- package/dist/components/ui-stack/UIStack.d.ts +31 -5
- package/dist/components/ui-stack/UIStack.en.d.ts +15 -3
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +1 -0
- package/dist/components/ui-step/UISteps.en.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.d.ts +4 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +8 -0
- package/dist/components/ui-tab/UITab.en.d.ts +1 -0
- package/dist/components/ui-tab/UITabs.d.ts +107 -16
- package/dist/components/ui-tab/UITabs.en.d.ts +40 -1
- package/dist/components/ui-tab/UITabs.es.d.ts +4 -0
- package/dist/components/ui-table/TableEditing.d.ts +77 -0
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +145 -5
- package/dist/components/ui-table/UITable.en.d.ts +19 -0
- package/dist/components/ui-table/UITable.es.d.ts +3 -0
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +11 -0
- package/dist/components/ui-text/UILink.en.d.ts +4 -0
- package/dist/components/ui-text/UIText.d.ts +7 -0
- package/dist/components/ui-text/UIText.en.d.ts +7 -0
- package/dist/components/ui-text/UIText.es.d.ts +2 -0
- package/dist/components/ui-theme-editor/SavedTheme.d.ts +55 -43
- package/dist/components/ui-theme-editor/ThemeDraft.d.ts +15 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +157 -26
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +79 -6
- package/dist/components/ui-theme-editor/UIThemeEditor.es.d.ts +20 -2
- package/dist/components/ui-theme-editor/UIThemeEditor.types.d.ts +0 -2
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/HueDropdown.d.ts +47 -0
- package/dist/components/ui-theme-menu/ThemeMenu.d.ts +18 -7
- package/dist/components/ui-theme-menu/ThemePreference.d.ts +145 -36
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +118 -7
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +82 -2
- package/dist/components/ui-theme-menu/UIThemeMenu.es.d.ts +21 -1
- package/dist/components/ui-theme-menu/UIThemeMenu.types.d.ts +36 -8
- package/dist/components/ui-theme-menu/index.d.ts +2 -1
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +13 -10
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +138 -84
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +2 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +162 -0
- package/dist/components/ui-tree/UITree.en.d.ts +88 -0
- package/dist/components/ui-tree/UITree.es.d.ts +35 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +204 -0
- package/dist/components/ui-tree/UITreeItem.en.d.ts +142 -0
- package/dist/components/ui-tree/UITreeItem.es.d.ts +32 -0
- package/dist/components/ui-tree/index.d.ts +3 -0
- package/dist/components/ui-tree-diagram/TreeData.d.ts +3 -12
- package/dist/components/ui-tree-diagram/TreeLayout.d.ts +54 -21
- package/dist/components/ui-tree-diagram/TreeMeasure.d.ts +36 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +152 -27
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +47 -7
- package/dist/components/ui-tree-diagram/UITreeDiagram.es.d.ts +12 -1
- package/dist/components/ui-tree-diagram/UITreeDiagram.types.d.ts +66 -21
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +148 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +69 -0
- package/dist/components/ui-tree-diagram/UITreeNode.es.d.ts +21 -0
- package/dist/components/ui-tree-diagram/index.d.ts +4 -2
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-DmLzT-Bq.js → components.es-BOa_7gFF.js} +498 -109
- package/dist/components.es-BOa_7gFF.js.map +1 -0
- package/dist/core.d.ts +3 -1
- package/dist/core.js +1082 -511
- package/dist/core.js.map +1 -1
- package/dist/crisp-VfYZlTph.js +6 -0
- package/dist/{crisp-CoZRRDuQ.js.map → crisp-VfYZlTph.js.map} +1 -1
- package/dist/docs-components/index.d.ts +1 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.d.ts +89 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.en.d.ts +43 -0
- package/dist/docs-components/ui-docs-index/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.d.ts +54 -87
- package/dist/docs-components/ui-docs-nav/UIDocsNav.types.d.ts +2 -29
- package/dist/docs-components/ui-docs-search/SearchIndex.d.ts +8 -2
- package/dist/docs-components/ui-docs-search/UIDocsSearch.d.ts +10 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.en.d.ts +5 -0
- package/dist/elements/AddressParameter.d.ts +87 -0
- package/dist/elements/DOMFormControl.d.ts +5 -0
- package/dist/elements/FormComponent.d.ts +32 -0
- package/dist/elements/LoadableBody.d.ts +6 -1
- package/dist/elements/LoadableComponent.d.ts +10 -1
- package/dist/elements/RootSettings.d.ts +43 -6
- package/dist/elements/SpellUISettings.d.ts +1 -0
- package/dist/elements/StickyWatch.d.ts +20 -0
- package/dist/elements/elements.types.d.ts +15 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/forms.js +93 -63
- package/dist/forms.js.map +1 -1
- package/dist/fruity-BRVlgJZd.js +6 -0
- package/dist/fruity-BRVlgJZd.js.map +1 -0
- package/dist/{fruity.theme-BJcMiPl1.js → fruity.theme-CbC7Jyvk.js} +2 -2
- package/dist/fruity.theme-CbC7Jyvk.js.map +1 -0
- package/dist/glass-x9tbbwVq.js +6 -0
- package/dist/glass-x9tbbwVq.js.map +1 -0
- package/dist/glass.theme-24wY2wH9.js +6 -0
- package/dist/glass.theme-24wY2wH9.js.map +1 -0
- package/dist/hot.js +530 -24
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +91 -81
- package/dist/jsx.d.ts +21149 -10377
- package/dist/matrix-QY2gWbJ0.js +6 -0
- package/dist/{matrix-CqA59hiF.js.map → matrix-QY2gWbJ0.js.map} +1 -1
- package/dist/{matrix.theme-jqQZjcq3.js → matrix.theme-_8xtwhDq.js} +2 -2
- package/dist/matrix.theme-_8xtwhDq.js.map +1 -0
- package/dist/midnight-BxlTQSfw.js +6 -0
- package/dist/{midnight-BnoVOrhC.js.map → midnight-BxlTQSfw.js.map} +1 -1
- package/dist/mockup-83ELBuVr.js +6 -0
- package/dist/mockup-83ELBuVr.js.map +1 -0
- package/dist/mockup.theme-DmpBgGBl.js +6 -0
- package/dist/mockup.theme-DmpBgGBl.js.map +1 -0
- package/dist/paper-M61nUilz.js +6 -0
- package/dist/{paper-CynH8ZuT.js.map → paper-M61nUilz.js.map} +1 -1
- package/dist/persist.types-D2m6wD-S.js +9 -0
- package/dist/persist.types-D2m6wD-S.js.map +1 -0
- package/dist/pop-CxXfytjk.js +6 -0
- package/dist/{pop-D2i9V_rG.js.map → pop-CxXfytjk.js.map} +1 -1
- package/dist/runtime/DataTooltips.d.ts +75 -0
- package/dist/runtime/PropertyControls.d.ts +15 -1
- package/dist/runtime/Sources.d.ts +16 -4
- package/dist/runtime/Styles.d.ts +11 -0
- package/dist/runtime/Themes.d.ts +10 -4
- package/dist/runtime/UIRuntime.d.ts +4 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/runtime.types.d.ts +18 -85
- package/dist/spell-By5Y3jKP.js +6 -0
- package/dist/{spell-BFtLICm7.js.map → spell-By5Y3jKP.js.map} +1 -1
- package/dist/{spell.theme-B7AU7SQX.js → spell.theme-DxGj7qHx.js} +2 -2
- package/dist/spell.theme-DxGj7qHx.js.map +1 -0
- package/dist/styles/CodeThemeFile.d.ts +73 -0
- package/dist/styles/StyleGenerator.d.ts +6 -0
- package/dist/styles/styles.en.d.ts +141 -3
- package/dist/styles/styles.types.d.ts +2 -0
- package/dist/{styles.en-RLpYiO5_.js → styles.en-CUUxNwHo.js} +71 -14
- package/dist/styles.en-CUUxNwHo.js.map +1 -0
- package/dist/styles.js +13 -13
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.js +54 -53
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.js +20 -19
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-ad.js +5 -4
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-breadcrumbs.js +15 -13
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.js +132 -125
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-calendar.js +208 -206
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.js +260 -98
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-checkbox.js +95 -81
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.js +25 -24
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-comment.js +14 -12
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-components.js +7 -6
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.js +24 -12
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-diagram.js +1328 -0
- package/dist/ui-diagram.js.map +1 -0
- package/dist/ui-dimension.js +779 -0
- package/dist/ui-dimension.js.map +1 -0
- package/dist/ui-dimmer.js +36 -34
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.js +7 -5
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.js +107 -105
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.js +36 -35
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.js +10 -9
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-example.js +63 -61
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-feed.js +12 -10
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-flag.js +10 -9
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.js +7 -6
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.js +244 -162
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.js +21 -18
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-icon-picker.js +46 -44
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.js +17 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-image.js +93 -55
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-include.js +18 -17
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.js +154 -112
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.js +152 -102
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.js +9 -8
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.js +115 -0
- package/dist/ui-json.js.map +1 -0
- package/dist/ui-keys.js +1 -1
- package/dist/ui-label.js +18 -15
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-list.js +7 -5
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.js +7 -6
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.js +975 -83
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.js +329 -196
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.js +20 -18
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-modal.js +46 -45
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.js +19 -18
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-page.js +8 -7
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.js +28 -17
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +66 -52
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder.js +21 -16
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.js +113 -84
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.js +9 -7
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.js +706 -203
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-quote.js +5 -4
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-rail.js +5 -4
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.js +31 -29
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-reveal.js +7 -6
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.js +324 -158
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-search.js +210 -168
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.js +124 -92
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-segment.js +15 -12
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-select.js +83 -81
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.js +86 -58
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-sidebar.js +59 -56
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.js +325 -0
- package/dist/ui-sides.js.map +1 -0
- package/dist/ui-site-nav.js +329 -0
- package/dist/ui-site-nav.js.map +1 -0
- package/dist/ui-site-tabs.js +177 -0
- package/dist/ui-site-tabs.js.map +1 -0
- package/dist/ui-slider.js +84 -81
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.js +7 -6
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.js +298 -0
- package/dist/ui-split-panel.js.map +1 -0
- package/dist/ui-stack.js +47 -23
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.js +15 -13
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-step.js +31 -29
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-sticky.js +7 -6
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-tab.js +230 -138
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.js +724 -162
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-terms.js +12 -10
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.js +53 -28
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-theme-editor.js +1018 -1545
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js +1493 -0
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +1 -0
- package/dist/ui-toast.js +45 -44
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.js +75 -74
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.js +51 -73
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.js +12 -11
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.js +676 -197
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree.js +625 -0
- package/dist/ui-tree.js.map +1 -0
- package/dist/ui-video.js +13 -11
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.js +26 -25
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.js +79 -78
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +28 -0
- package/dist/util/index.d.ts +5 -2
- package/dist/vocabulary/DefaultValues.d.ts +34 -0
- package/dist/vocabulary/SharedVocabulary.d.ts +4 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +7 -0
- package/dist/vocabulary/ValueSets.d.ts +18 -0
- package/dist/vocabulary/Vocabulary.d.ts +1 -0
- package/dist/vocabulary/defaults.generated.d.ts +6 -0
- package/dist/vocabulary/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/MarkdownEngine-CbuT9Mjc.js.map +0 -1
- package/dist/PrefStore-CeaTtjTz.js.map +0 -1
- package/dist/UIButton-XkfGqgh6.js +0 -6
- package/dist/UIButton-XkfGqgh6.js.map +0 -1
- package/dist/UIInput-BUudZstW.js +0 -6
- package/dist/UIInput-BUudZstW.js.map +0 -1
- package/dist/UIKeys-DJF2TIKE.js.map +0 -1
- package/dist/UILabel-C1jy3Yl8.js +0 -6
- package/dist/UILabel-C1jy3Yl8.js.map +0 -1
- package/dist/UIMenu-Btd-8V3A.js +0 -42
- package/dist/UIMenu-Btd-8V3A.js.map +0 -1
- package/dist/UIRuntime-BBuehGly.js.map +0 -1
- package/dist/components.es-DmLzT-Bq.js.map +0 -1
- package/dist/crisp-CoZRRDuQ.js +0 -6
- package/dist/fruity-CQFYeRlh.js +0 -6
- package/dist/fruity-CQFYeRlh.js.map +0 -1
- package/dist/fruity.theme-BJcMiPl1.js.map +0 -1
- package/dist/glass-CAfW11kL.js +0 -6
- package/dist/glass-CAfW11kL.js.map +0 -1
- package/dist/glass.theme-DQcBbtCW.js +0 -6
- package/dist/glass.theme-DQcBbtCW.js.map +0 -1
- package/dist/matrix-CqA59hiF.js +0 -6
- package/dist/matrix.theme-jqQZjcq3.js.map +0 -1
- package/dist/midnight-BnoVOrhC.js +0 -6
- package/dist/paper-CynH8ZuT.js +0 -6
- package/dist/persist.types-CsZxS8TG.js +0 -9
- package/dist/persist.types-CsZxS8TG.js.map +0 -1
- package/dist/pop-D2i9V_rG.js +0 -6
- package/dist/spell-BFtLICm7.js +0 -6
- package/dist/spell.theme-B7AU7SQX.js.map +0 -1
- package/dist/styles.en-RLpYiO5_.js.map +0 -1
- package/dist/ui-theme-menu-DyKZygpV.js +0 -921
- package/dist/ui-theme-menu-DyKZygpV.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { Bt as e,
|
|
3
|
-
import { DOMFieldElement as
|
|
4
|
-
import { n as
|
|
5
|
-
import { UIPanel as
|
|
6
|
-
import { For as
|
|
7
|
-
import { Dynamic as
|
|
2
|
+
import { Bt as e, Converters as t, DOMLoadableBodyElement as n, Ht as r, IconGlyph as i, Lt as a, Reactive as o, Rt as s, SlotContent as ee, T as te, UI as c, Ut as l, ValueSets as u, Vt as d, Warnings as f, afterSolidUpdate as ne, camelCase as re, cssState as p, kebabCase as ie, on as ae, onChange as m, proto as oe, protoMerged as se, state as h, untracked as g, watches as ce, whileConnected as le, zt as _ } from "./core.js";
|
|
3
|
+
import { DOMFieldElement as ue, DOMFormElement as de, FormBinding as v, FormFields as y, UIField as fe, UIForm as pe, n as b, t as x } from "./ui-form.js";
|
|
4
|
+
import { n as S } from "./ui-section.js";
|
|
5
|
+
import { UIPanel as me } from "./ui-panel.js";
|
|
6
|
+
import { For as he, Show as C } from "solid-js";
|
|
7
|
+
import { Dynamic as ge, className as w, createComponent as T, delegateEvents as _e, effect as E, getOwner as D, insert as O, isServer as ve, memo as ye, mergeProps as be, readShallow as k, setAttribute as A, style as xe, template as j } from "@solidjs/web";
|
|
8
8
|
//#region src/property/PropertySchemas.ts
|
|
9
9
|
var M = class PropertySchemas {
|
|
10
10
|
static fromVocabulary(e) {
|
|
@@ -36,7 +36,7 @@ var M = class PropertySchemas {
|
|
|
36
36
|
case "number": return "number";
|
|
37
37
|
case "json": return "data";
|
|
38
38
|
case "icon": return "icon";
|
|
39
|
-
default: return e.values || e.choicesFrom ||
|
|
39
|
+
default: return e.values || e.choicesFrom || Se.has(e.kind) ? "choice" : "text";
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
static labelOf(e) {
|
|
@@ -52,7 +52,7 @@ var M = class PropertySchemas {
|
|
|
52
52
|
static attributeOfJSONSchema(e, t) {
|
|
53
53
|
let n = PropertySchemas.withoutNull(t), r = PropertySchemas.typeOfJSONSchema(n), i = {
|
|
54
54
|
name: e,
|
|
55
|
-
kind:
|
|
55
|
+
kind: Ce[r],
|
|
56
56
|
type: r,
|
|
57
57
|
description: ""
|
|
58
58
|
};
|
|
@@ -95,7 +95,7 @@ var M = class PropertySchemas {
|
|
|
95
95
|
if (n.startsWith("$")) continue;
|
|
96
96
|
let e = PropertySchemas.typeOfValue(r), i = {
|
|
97
97
|
name: n,
|
|
98
|
-
kind:
|
|
98
|
+
kind: Ce[e],
|
|
99
99
|
type: e,
|
|
100
100
|
description: ""
|
|
101
101
|
};
|
|
@@ -106,20 +106,21 @@ var M = class PropertySchemas {
|
|
|
106
106
|
static typeOfValue(e) {
|
|
107
107
|
return typeof e == "string" ? "text" : typeof e == "number" ? "number" : typeof e == "boolean" ? "boolean" : Array.isArray(e) ? e.length ? "list" : "data" : e && typeof e == "object" ? "thing" : "data";
|
|
108
108
|
}
|
|
109
|
-
},
|
|
109
|
+
}, Se = /* @__PURE__ */ new Set([
|
|
110
110
|
"enum",
|
|
111
111
|
"valueOnly",
|
|
112
112
|
"size",
|
|
113
113
|
"color",
|
|
114
114
|
"textAlign",
|
|
115
115
|
"verticalAlign"
|
|
116
|
-
]),
|
|
116
|
+
]), Ce = {
|
|
117
117
|
text: "string",
|
|
118
118
|
number: "number",
|
|
119
119
|
boolean: "boolean",
|
|
120
120
|
date: "string",
|
|
121
121
|
choice: "enum",
|
|
122
122
|
icon: "icon",
|
|
123
|
+
sides: "json",
|
|
123
124
|
list: "json",
|
|
124
125
|
thing: "json",
|
|
125
126
|
data: "json"
|
|
@@ -132,19 +133,19 @@ function isPlainDefault(e) {
|
|
|
132
133
|
}
|
|
133
134
|
//#endregion
|
|
134
135
|
//#region src/property/PropertyEditorPages.ts
|
|
135
|
-
var
|
|
136
|
+
var we = class PropertyEditorPages {
|
|
136
137
|
static write(e, t) {
|
|
137
|
-
let n = t.createElement(
|
|
138
|
+
let n = t.createElement(Te);
|
|
138
139
|
n.setAttribute("schema", e.name), n.setAttribute("label", e.label ?? e.name);
|
|
139
140
|
for (let r of e.attributes) n.append(PropertyEditorPages.property(t, r.name));
|
|
140
141
|
return PropertyEditorPages.text(n);
|
|
141
142
|
}
|
|
142
143
|
static editorIn(e) {
|
|
143
|
-
return e.querySelector(
|
|
144
|
+
return e.querySelector(Te) ?? void 0;
|
|
144
145
|
}
|
|
145
146
|
static check(e, t) {
|
|
146
147
|
let n = [], r = /* @__PURE__ */ new Set();
|
|
147
|
-
for (let i of e.querySelectorAll(
|
|
148
|
+
for (let i of e.querySelectorAll(De)) {
|
|
148
149
|
let e = i.getAttribute("name") ?? "";
|
|
149
150
|
r.add(e.split(".")[0]);
|
|
150
151
|
let a = PropertyEditorPages.specFor(t, e);
|
|
@@ -176,7 +177,7 @@ var ge = class PropertyEditorPages {
|
|
|
176
177
|
static fix(e, t) {
|
|
177
178
|
let n = PropertyEditorPages.check(e, t), r = e.ownerDocument;
|
|
178
179
|
for (let t of n) {
|
|
179
|
-
let n = e.querySelector(`${
|
|
180
|
+
let n = e.querySelector(`${De}[name="${t.name}"]`);
|
|
180
181
|
t.kind === "dropped" ? n?.remove() : t.kind === "control" ? n?.removeAttribute("as") : PropertyEditorPages.otherGroup(e).append(PropertyEditorPages.property(r, t.name));
|
|
181
182
|
}
|
|
182
183
|
return n;
|
|
@@ -184,8 +185,8 @@ var ge = class PropertyEditorPages {
|
|
|
184
185
|
static text(e) {
|
|
185
186
|
return `${PropertyEditorPages.lines(e, 0).join("\n")}\n`;
|
|
186
187
|
}
|
|
187
|
-
static compile(e, t, { uiModule: n =
|
|
188
|
-
let r = `${ie(t.name).replace(/^-/, "")}-editor`, i = `${t.name.replace(/\W/g, "")}Editor`, a = Object.fromEntries([...e.attributes].filter(({ name: e }) => !
|
|
188
|
+
static compile(e, t, { uiModule: n = Ne } = {}) {
|
|
189
|
+
let r = `${ie(t.name).replace(/^-/, "")}-editor`, i = `${t.name.replace(/\W/g, "")}Editor`, a = Object.fromEntries([...e.attributes].filter(({ name: e }) => !Pe.has(e)).map(({ name: e, value: t }) => [e, t])), o = [...e.children].map((e) => PropertyEditorPages.lines(e, 0).join("\n")).join("\n");
|
|
189
190
|
return {
|
|
190
191
|
tag: r,
|
|
191
192
|
className: i,
|
|
@@ -246,14 +247,14 @@ var ge = class PropertyEditorPages {
|
|
|
246
247
|
};
|
|
247
248
|
}
|
|
248
249
|
static property(e, t) {
|
|
249
|
-
let n = e.createElement(
|
|
250
|
+
let n = e.createElement(De);
|
|
250
251
|
return n.setAttribute("name", t), n;
|
|
251
252
|
}
|
|
252
253
|
static otherGroup(e) {
|
|
253
|
-
let t = e.querySelector(`${
|
|
254
|
+
let t = e.querySelector(`${Ee}[${ke}]`);
|
|
254
255
|
if (t) return t;
|
|
255
|
-
let n = e.ownerDocument.createElement(
|
|
256
|
-
return n.setAttribute("label",
|
|
256
|
+
let n = e.ownerDocument.createElement(Ee);
|
|
257
|
+
return n.setAttribute("label", Oe), n.setAttribute(ke, ""), e.append(n), n;
|
|
257
258
|
}
|
|
258
259
|
static specFor(e, t) {
|
|
259
260
|
let n = e.attributes, r;
|
|
@@ -261,13 +262,13 @@ var ge = class PropertyEditorPages {
|
|
|
261
262
|
return r;
|
|
262
263
|
}
|
|
263
264
|
static fits(e, t) {
|
|
264
|
-
let n =
|
|
265
|
+
let n = Me[e];
|
|
265
266
|
if (!n) return !0;
|
|
266
267
|
let r = M.typeOf(t);
|
|
267
|
-
return n.includes(r) ? !0 : r ===
|
|
268
|
+
return n.includes(r) ? !0 : r === Ae && !!(t.values ?? t.choicesFrom) && e === je;
|
|
268
269
|
}
|
|
269
270
|
static lines(e, t) {
|
|
270
|
-
let n =
|
|
271
|
+
let n = Fe.repeat(t);
|
|
271
272
|
if (!e.children.length) return [`${n}${e.outerHTML}`];
|
|
272
273
|
let r = e.cloneNode(!1).outerHTML, i = `</${e.localName}>`, a = [...e.children].flatMap((e) => PropertyEditorPages.lines(e, t + 1));
|
|
273
274
|
return [
|
|
@@ -276,7 +277,7 @@ var ge = class PropertyEditorPages {
|
|
|
276
277
|
`${n}${i}`
|
|
277
278
|
];
|
|
278
279
|
}
|
|
279
|
-
},
|
|
280
|
+
}, Te = "ui-property-editor", Ee = "ui-property-group", De = "ui-property", Oe = "Other", ke = "data-other", Ae = "list", je = "choices", Me = {
|
|
280
281
|
number: ["number"],
|
|
281
282
|
range: ["number", "choice"],
|
|
282
283
|
select: ["choice"],
|
|
@@ -286,11 +287,11 @@ var ge = class PropertyEditorPages {
|
|
|
286
287
|
date: ["date"],
|
|
287
288
|
icon: ["icon", "text"],
|
|
288
289
|
editor: ["thing"]
|
|
289
|
-
},
|
|
290
|
+
}, Ne = "spell/ui/ui-property-editor", Pe = /* @__PURE__ */ new Set([
|
|
290
291
|
"schema",
|
|
291
292
|
"source",
|
|
292
293
|
"select"
|
|
293
|
-
]),
|
|
294
|
+
]), Fe = " ";
|
|
294
295
|
//#endregion
|
|
295
296
|
//#region src/components/ui-property-editor/UIPropertyEditor.types.ts
|
|
296
297
|
function passThrough(e, t, n = []) {
|
|
@@ -301,12 +302,13 @@ function passThrough(e, t, n = []) {
|
|
|
301
302
|
function nameOf(e) {
|
|
302
303
|
return e.name ?? e.key ?? "";
|
|
303
304
|
}
|
|
304
|
-
var
|
|
305
|
+
var Ie = "ui-property-editor", Le = "ui-property-group", Re = "ui-property", ze = ":state(property-editor)", N = ":state(property-group)", Be = ":state(property)", P = "data-ui-made", F = {
|
|
305
306
|
schema: "",
|
|
306
307
|
source: "source"
|
|
307
|
-
},
|
|
308
|
-
...
|
|
308
|
+
}, Ve = "data-value-from", He = {
|
|
309
|
+
...b,
|
|
309
310
|
tag: "ui-property",
|
|
311
|
+
icon: "sliders horizontal",
|
|
310
312
|
topics: ["forms", "inputs"],
|
|
311
313
|
aka: [
|
|
312
314
|
"property",
|
|
@@ -326,7 +328,13 @@ var De = "ui-property-editor", Oe = "ui-property-group", ke = "ui-property", Ae
|
|
|
326
328
|
name: "as",
|
|
327
329
|
group: "appearance",
|
|
328
330
|
kind: "string",
|
|
329
|
-
description: "Which control (a kind `UI.propertyControls` knows): `input`, `text`, `number`, `date`, `select`, `buttons`, `range`, `checkbox`, `toggle`, `color`, `editor`, or one a page added. None: the default for its type
|
|
331
|
+
description: "Which control (a kind `UI.propertyControls` knows): `input`, `text`, `number`, `date`, `select`, `buttons` (a segmented row), `radios`, `range`, `checkbox`, `toggle`, `color`, `sides`, `editor`, or one a page added. None: the default for its type; four or fewer choices, all with icons: `buttons`."
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
name: "default",
|
|
335
|
+
group: "form",
|
|
336
|
+
kind: "string",
|
|
337
|
+
description: "Its value when nothing's been set, if the schema doesn't say: a value other than it shows `:state(set)`, bold under the editor's `show-defaults`."
|
|
330
338
|
},
|
|
331
339
|
{
|
|
332
340
|
name: "options",
|
|
@@ -334,26 +342,102 @@ var De = "ui-property-editor", Oe = "ui-property-group", ke = "ui-property", Ae
|
|
|
334
342
|
kind: "string",
|
|
335
343
|
description: "Where its choices come from, when not the schema's: a source the page added (`UI.propertyControls.addChoices()`), or a list, `a, b, c`."
|
|
336
344
|
}
|
|
337
|
-
], [
|
|
338
|
-
events: [
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
345
|
+
], [b.attributes]),
|
|
346
|
+
events: [
|
|
347
|
+
{
|
|
348
|
+
name: "ui-changed",
|
|
349
|
+
detail: "{ name: string, value: unknown }",
|
|
350
|
+
description: "Its property was written (on Save, with `apply=\"on save\"`)."
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
name: "ui-reset",
|
|
354
|
+
detail: "{ name: string }",
|
|
355
|
+
description: "Its reset button was pressed (its editor's `origins`)."
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: "ui-show-code",
|
|
359
|
+
detail: "{ name: string }",
|
|
360
|
+
description: "Its code button was pressed (its editor's `origins`)."
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
parts: passThrough([{
|
|
364
|
+
name: "origin",
|
|
365
|
+
description: "The small button its value's origin offers."
|
|
366
|
+
}], [b.parts]),
|
|
343
367
|
slots: passThrough([{
|
|
344
368
|
name: "",
|
|
345
369
|
description: "Your own control, instead of the one it makes; or nothing."
|
|
346
|
-
}], [
|
|
347
|
-
states: passThrough([
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
370
|
+
}], [b.slots]),
|
|
371
|
+
states: passThrough([
|
|
372
|
+
{
|
|
373
|
+
name: "changed",
|
|
374
|
+
description: "Its edit is held, not saved yet (`apply=\"on save\"`)."
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
name: "buttons",
|
|
378
|
+
description: "Its control is a row of radios, one each (`as=\"radios\"`)."
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: "compact",
|
|
382
|
+
description: "Its editor is `compact`."
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
name: "show-defaults",
|
|
386
|
+
description: "Its editor bolds a value other than its default (`show-defaults`)."
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
name: "half",
|
|
390
|
+
description: "Half a row on its editor's grid: its kind's width (a number, a select), or its `width`."
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: "inline-check",
|
|
394
|
+
description: "A yes or no in a compact editor: the box, then its label, on one line."
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "here",
|
|
398
|
+
description: "Its value is set on this thing (its editor's `origins`): a dot by its label."
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: "inherited",
|
|
402
|
+
description: "Its value comes from somewhere else (its editor's `origins`): a quieter label."
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
name: "data",
|
|
406
|
+
description: "Its value is kept in a place outside the program, a back-end (its editor's `origins`): a mark by its label."
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
name: "set",
|
|
410
|
+
description: "Its value isn't its default (`default`, else the schema's; none: any value)."
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
name: "flags",
|
|
414
|
+
description: "It heads a run of yes-or-no properties, drawn as one select of pills."
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: "flag",
|
|
418
|
+
description: "It's in a run another property heads: hidden, its pill in that one's select."
|
|
419
|
+
}
|
|
420
|
+
], [b.states]),
|
|
421
|
+
texts: passThrough([
|
|
422
|
+
{
|
|
423
|
+
key: "reset",
|
|
424
|
+
text: "Reset {label}",
|
|
425
|
+
description: "The reset button's name."
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
key: "showCode",
|
|
429
|
+
text: "Show the code for {label}",
|
|
430
|
+
description: "The code button's name."
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
key: "flags",
|
|
434
|
+
text: "Options",
|
|
435
|
+
description: "The label of a run of yes-or-no properties drawn as one select of pills."
|
|
436
|
+
}
|
|
437
|
+
], [b.texts])
|
|
438
|
+
}, Ue = "@layer ui.components.property.content{:host(:state(buttons)) .field>.control{flex-wrap:wrap;align-items:center;gap:.5em 1.25em;display:flex}.field{width:var(--_property-editor-field-width,var(--_field-width,var(--_ui-fields-child-width,auto)));grid-column:1/-1}:host(:state(half)) .field{grid-column:span 1}@container ui-form (width<18em){:host(:state(half)) .field{grid-column:1/-1}}}@layer ui.components.property.states{:host(:state(inline-check)) .inline.field:has(>.row){flex-wrap:nowrap;column-gap:.5em}:host(:state(inline-check)) .inline.field>.control{--ui-checkbox-label-distance:0;flex:none;order:-1}:host(:state(inline-check)) .inline.field>.row>.label{cursor:var(--ui-control-cursor)}:host(:state(compact)) .field>.row>.info{width:12px;height:12px}:host(:state(set):state(show-defaults)) .field{--_ui-input-owner-weight:var(--ui-font-weight-bold,700)}:host(:state(here)) .field>.row>.label:before{content:\"\";vertical-align:.12em;background:var(--ui-primary,currentColor);border-radius:50%;width:.45em;height:.45em;margin-inline-end:.35em;display:inline-block}:host(:state(inherited)) .field>.row>.label{color:var(--ui-text-muted);font-weight:var(--ui-font-weight-normal,400)}.field>.row>.origin{color:var(--ui-text-muted);cursor:var(--ui-control-cursor);background:0 0;border:0;flex:none;align-items:center;margin-inline-start:auto;padding:0 .15em;font-size:.85em;line-height:1;display:inline-flex}.field>.row>.origin>svg{width:1em;height:1em;display:block}.field>.row>.origin:hover{color:var(--ui-text)}:host(:state(data)) .field>.row>.label:before{content:\"\";vertical-align:.12em;background:var(--ui-warning,currentColor);border-radius:.1em;width:.45em;height:.45em;margin-inline-end:.35em;display:inline-block}.field>.row:has(>.origin.mark)>.label{white-space:nowrap;flex-shrink:0}.field>.row>.origin.mark{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-surface-muted);border-radius:.6em;flex:0 100 auto;min-width:0;max-width:60%;padding:.1em .4em;overflow:hidden}.field>.row>.origin.reset{opacity:0}:host(:hover) .field>.row>.origin.reset,.field>.row>.origin.reset:focus-visible{opacity:1}:host(:state(flag)),:host(:state(flags)) .field>.control>slot::slotted(:not([data-ui-made=flags])){display:none}}", We = /* @__PURE__ */ j("<span class=\"origin mark\">"), Ge = /* @__PURE__ */ j("<button type=button class=\"origin mark\">"), Ke = /* @__PURE__ */ j("<button type=button class=origin>"), qe, I, L, Je, Ye, Xe, Ze, Qe, $e, et, tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt, mt, ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, Dt, R, Ot, kt, z, B, V, H, U, W = class _DOMPropertyElement extends (I = ue, qe = [g], I) {
|
|
355
439
|
constructor() {
|
|
356
|
-
super(...arguments),
|
|
440
|
+
super(...arguments), l(L, 5, this);
|
|
357
441
|
}
|
|
358
442
|
get schemaRules() {
|
|
359
443
|
return this.component?.schemaRules;
|
|
@@ -362,11 +446,46 @@ var De = "ui-property-editor", Oe = "ui-property-group", ke = "ui-property", Ae
|
|
|
362
446
|
let t = this.component;
|
|
363
447
|
t && (t.isChanged = e);
|
|
364
448
|
}
|
|
449
|
+
valueShown() {
|
|
450
|
+
this.component?.noteValueChanged();
|
|
451
|
+
}
|
|
365
452
|
};
|
|
366
|
-
|
|
367
|
-
var
|
|
453
|
+
L = _(I), a(L, 2, "schemaRules", qe, W), s(L, W), e(W, "DOMPropertyElement");
|
|
454
|
+
var At = W, jt = [
|
|
455
|
+
"value",
|
|
456
|
+
"selected",
|
|
457
|
+
"checked"
|
|
458
|
+
];
|
|
459
|
+
function isSameRun(e, t) {
|
|
460
|
+
return e === t || !!e && !!t && e.length === t.length && e.every((e, n) => e === t[n]);
|
|
461
|
+
}
|
|
462
|
+
e(isSameRun, "isSameRun");
|
|
463
|
+
var G = class _UIProperty extends (Dt = fe, Et = [oe], Tt = [se], wt = [h], Ct = [le], St = [h], xt = [p("property")], bt = [p("readonly")], yt = [p("here")], vt = [p("inherited")], _t = [p("data")], gt = [p("changed"), h], ht = [p("buttons")], mt = [h], pt = [m("optionsText", "spec", "isReady")], ft = [m("controlKind", "choices", "propertyName", "isReadOnly", "spec")], dt = [g], ut = [g], lt = [p("compact")], ct = [p("show-defaults")], st = [p("half")], ot = [p("inline-check")], at = [h], it = [g], rt = [ce({
|
|
464
|
+
childList: !0,
|
|
465
|
+
subtree: !0,
|
|
466
|
+
attributes: !0,
|
|
467
|
+
attributeFilter: jt
|
|
468
|
+
})], nt = [
|
|
469
|
+
ae("ui-changed"),
|
|
470
|
+
ae("input"),
|
|
471
|
+
ae("change")
|
|
472
|
+
], tt = [p("set")], et = [h({ equals: isSameRun })], $e = [p("flag"), h], Qe = [p("flags")], Ze = [g], Xe = [m("flagRun")], Ye = [m("chosenFlags", "flagRun")], Je = [g], Dt) {
|
|
368
473
|
constructor() {
|
|
369
|
-
super(...arguments),
|
|
474
|
+
super(...arguments), l(R, 5, this), d(this, Ot, l(R, 8, this)), l(R, 11, this), d(this, kt, l(R, 12, this, !1)), l(R, 15, this), r(this, "originGlyph", new i({
|
|
475
|
+
owner: this,
|
|
476
|
+
name: /* @__PURE__ */ e(() => this.origin?.action ? Pt[this.origin.action].icon : void 0, "name")
|
|
477
|
+
})), d(this, z, l(R, 16, this, !1)), l(R, 19, this), d(this, B, l(R, 20, this)), l(R, 23, this), d(this, V, l(R, 24, this, 0)), l(R, 27, this), d(this, H, l(R, 28, this)), l(R, 31, this), d(this, U, l(R, 32, this, !1)), l(R, 35, this), r(this, "flagsSelect"), r(this, "onFlagsPicked", l(R, 44, this, /* @__PURE__ */ e((e) => {
|
|
478
|
+
e.stopPropagation();
|
|
479
|
+
let n = new Set(t.list(e.detail?.value));
|
|
480
|
+
for (let e of this.flagRun ?? []) {
|
|
481
|
+
let t = e.madeCheckbox, r = n.has(e.propertyName);
|
|
482
|
+
t && y.isChosen(t) !== r && (t.checked = r, t.dispatchEvent(new CustomEvent("ui-changed", {
|
|
483
|
+
detail: { selected: r },
|
|
484
|
+
bubbles: !0,
|
|
485
|
+
composed: !0
|
|
486
|
+
})));
|
|
487
|
+
}
|
|
488
|
+
}, "onFlagsPicked"))), l(R, 47, this);
|
|
370
489
|
}
|
|
371
490
|
get propertyName() {
|
|
372
491
|
return this.attributes.name ?? "";
|
|
@@ -379,26 +498,38 @@ var $e = H, U = class _UIProperty extends (Xe = ce, Ye = [f], Je = [p], qe = [m]
|
|
|
379
498
|
}
|
|
380
499
|
watchEditor() {
|
|
381
500
|
this.editor = _UIProperty.editorAround(this.domElement);
|
|
382
|
-
let e = [
|
|
383
|
-
return e.push(`${
|
|
501
|
+
let e = [Le, Ie].map((e) => `${e}[readonly]`);
|
|
502
|
+
return e.push(`${N}:state(readonly)`, `${ze}:state(readonly)`), this.isInReadonly = !!this.domElement.parentElement?.closest(e.join(", ")), () => {
|
|
384
503
|
this.editor = void 0;
|
|
385
504
|
};
|
|
386
505
|
}
|
|
506
|
+
get unsavedText() {
|
|
507
|
+
return this.unsaved || this.editor?.unsaved || void 0;
|
|
508
|
+
}
|
|
387
509
|
get spec() {
|
|
388
510
|
let e = this.editor?.currentSchema;
|
|
389
511
|
return e ? _UIProperty.specFor(e, this.propertyName) : void 0;
|
|
390
512
|
}
|
|
391
513
|
get labelText() {
|
|
514
|
+
return this.flagRun ? this.translationForKey(Ft) : this.ownLabel;
|
|
515
|
+
}
|
|
516
|
+
get ownLabel() {
|
|
392
517
|
if (this.label) return this.label;
|
|
393
518
|
let e = this.spec;
|
|
394
|
-
return e ? M.labelOf(e) : this.propertyName && M.labelOf(
|
|
519
|
+
return e ? M.labelOf(e) : this.propertyName && M.labelOf(Zt(this.propertyName));
|
|
395
520
|
}
|
|
396
521
|
get descriptionText() {
|
|
397
|
-
return this.description ?? this.spec?.tip;
|
|
522
|
+
if (!this.flagRun) return this.description ?? this.spec?.tip;
|
|
523
|
+
}
|
|
524
|
+
get hintText() {
|
|
525
|
+
if (!this.flagRun) return this.hint ?? this.spec?.hint;
|
|
526
|
+
}
|
|
527
|
+
get hasHintInRow() {
|
|
528
|
+
return this.isCompact;
|
|
398
529
|
}
|
|
399
530
|
get valueType() {
|
|
400
531
|
let e = this.spec;
|
|
401
|
-
return e ? M.typeOf(e) :
|
|
532
|
+
return e ? M.typeOf(e) : Xt;
|
|
402
533
|
}
|
|
403
534
|
get schemaRules() {
|
|
404
535
|
let e = this.spec;
|
|
@@ -410,29 +541,125 @@ var $e = H, U = class _UIProperty extends (Xe = ce, Ye = [f], Je = [p], qe = [m]
|
|
|
410
541
|
return !0;
|
|
411
542
|
}
|
|
412
543
|
get isReadOnly() {
|
|
413
|
-
return !!this.readonly || this.isInReadonly;
|
|
544
|
+
return !!this.readonly || this.isInReadonly || this.origin?.kind === Nt || !!this.origin?.readonly;
|
|
545
|
+
}
|
|
546
|
+
get origin() {
|
|
547
|
+
return this.editor?.currentOrigins?.[this.propertyName];
|
|
548
|
+
}
|
|
549
|
+
get isSetHere() {
|
|
550
|
+
return this.origin?.kind === "here";
|
|
551
|
+
}
|
|
552
|
+
get isInherited() {
|
|
553
|
+
return this.origin?.kind === "inherited";
|
|
554
|
+
}
|
|
555
|
+
get isData() {
|
|
556
|
+
return this.origin?.kind === "data";
|
|
557
|
+
}
|
|
558
|
+
get labelTitle() {
|
|
559
|
+
return this.origin?.from;
|
|
560
|
+
}
|
|
561
|
+
rowEnd() {
|
|
562
|
+
let e = this;
|
|
563
|
+
return T(C, {
|
|
564
|
+
get when() {
|
|
565
|
+
return !e.origin?.mark;
|
|
566
|
+
},
|
|
567
|
+
get fallback() {
|
|
568
|
+
return e.originMark();
|
|
569
|
+
},
|
|
570
|
+
get children() {
|
|
571
|
+
return e.originButton();
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
originMark() {
|
|
576
|
+
let t = /* @__PURE__ */ e(() => this.origin?.action, "action"), n = this;
|
|
577
|
+
return T(C, {
|
|
578
|
+
get when() {
|
|
579
|
+
return t();
|
|
580
|
+
},
|
|
581
|
+
get fallback() {
|
|
582
|
+
var e = We();
|
|
583
|
+
return O(e, () => n.origin?.mark), E(() => ({
|
|
584
|
+
e: n.partForName("origin"),
|
|
585
|
+
t: n.origin?.from
|
|
586
|
+
}), ({ e: t, t: n }, r) => {
|
|
587
|
+
t !== r?.e && A(e, "part", t), n !== r?.t && A(e, "title", n);
|
|
588
|
+
}), e;
|
|
589
|
+
},
|
|
590
|
+
children: (e) => (() => {
|
|
591
|
+
var t = Ge();
|
|
592
|
+
return t._$$click = () => n.send(Pt[e()].event, { name: n.propertyName }), O(t, () => n.origin?.mark), E(() => ({
|
|
593
|
+
e: n.partForName("origin"),
|
|
594
|
+
t: n.origin?.from
|
|
595
|
+
}), ({ e, t: n }, r) => {
|
|
596
|
+
e !== r?.e && A(t, "part", e), n !== r?.t && A(t, "title", n);
|
|
597
|
+
}), t;
|
|
598
|
+
})()
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
originButton() {
|
|
602
|
+
let t = this;
|
|
603
|
+
return T(C, {
|
|
604
|
+
get when() {
|
|
605
|
+
return t.origin?.action;
|
|
606
|
+
},
|
|
607
|
+
children: (n) => {
|
|
608
|
+
let { text: r, event: i } = Pt[n()], a = /* @__PURE__ */ e(() => t.translationForKey(r, { label: t.ownLabel ?? "" }), "words");
|
|
609
|
+
var o = Ke();
|
|
610
|
+
return o._$$click = () => t.send(i, { name: t.propertyName }), O(o, () => t.originGlyph.svg), E(() => ({
|
|
611
|
+
e: n() === "reset",
|
|
612
|
+
t: t.partForName("origin"),
|
|
613
|
+
a: a(),
|
|
614
|
+
o: a()
|
|
615
|
+
}), ({ e, t, a: n, o: r }, i) => {
|
|
616
|
+
e !== i?.e && o.classList.toggle("reset", e), t !== i?.t && A(o, "part", t), n !== i?.a && A(o, "title", n), r !== i?.o && A(o, "aria-label", r);
|
|
617
|
+
}), o;
|
|
618
|
+
}
|
|
619
|
+
});
|
|
414
620
|
}
|
|
415
621
|
get controlKind() {
|
|
416
|
-
if (this.isReady) return
|
|
622
|
+
if (!this.isReady) return;
|
|
623
|
+
if (this.requestedKind) return this.requestedKind;
|
|
624
|
+
let e = this.choices;
|
|
625
|
+
return this.valueType === Ht && e?.length && e.length <= Gt && e.every(_UIProperty.hasIcon) ? Ut : c.propertyControls.kindFor(this.valueType);
|
|
417
626
|
}
|
|
418
|
-
get
|
|
627
|
+
get control() {
|
|
419
628
|
let e = this.controlKind;
|
|
420
|
-
return
|
|
629
|
+
return e ? c.propertyControls.get(e) : void 0;
|
|
630
|
+
}
|
|
631
|
+
get isButtonRow() {
|
|
632
|
+
return this.control?.choices === Yt;
|
|
421
633
|
}
|
|
422
634
|
get choices() {
|
|
423
635
|
let e = this.optionsText;
|
|
424
636
|
if (e && e.includes(",")) return e.split(",").map((e) => e.trim());
|
|
425
637
|
if (e || this.spec?.choicesFrom) return this.loadedChoices;
|
|
426
|
-
let t = this.spec &&
|
|
427
|
-
|
|
638
|
+
let t = this.spec, n = t && u.setFor(t);
|
|
639
|
+
if (!n) return;
|
|
640
|
+
let r = u.iconsFor(t), i = t.valueLabels, a = u.get(n);
|
|
641
|
+
return !r && !i ? a : a.map((e) => {
|
|
642
|
+
let t = r?.[e], n = i?.[e] ?? e;
|
|
643
|
+
return t ? {
|
|
644
|
+
value: e,
|
|
645
|
+
text: n,
|
|
646
|
+
icon: t
|
|
647
|
+
} : n === e ? e : {
|
|
648
|
+
value: e,
|
|
649
|
+
text: n
|
|
650
|
+
};
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
get isHueChoice() {
|
|
654
|
+
return !!this.spec && u.setFor(this.spec) === Kt;
|
|
428
655
|
}
|
|
429
656
|
onChoiceSourceChanged(e, t, n) {
|
|
430
657
|
let r = e && !e.includes(",") ? e : t?.choicesFrom;
|
|
431
658
|
if (!n || !r) return;
|
|
432
659
|
let i = !0;
|
|
433
|
-
return
|
|
660
|
+
return c.propertyControls.choices(r).then((e) => {
|
|
434
661
|
i && (this.loadedChoices = e ?? []);
|
|
435
|
-
}).catch((e) =>
|
|
662
|
+
}).catch((e) => f.warn("<ui-property>", `can't load the choices of \`${r}\`:`, e)), () => {
|
|
436
663
|
i = !1;
|
|
437
664
|
};
|
|
438
665
|
}
|
|
@@ -444,26 +671,32 @@ var $e = H, U = class _UIProperty extends (Xe = ce, Ye = [f], Je = [p], qe = [m]
|
|
|
444
671
|
return [...this.domElement.children].some((e) => !e.hasAttribute("data-ui-made") && !e.slot);
|
|
445
672
|
}
|
|
446
673
|
makeControl(e) {
|
|
447
|
-
let t =
|
|
674
|
+
let t = c.propertyControls.get(e);
|
|
448
675
|
if (!t) {
|
|
449
|
-
|
|
676
|
+
f.warn("<ui-property>", `no control kind \`${e}\`: add it with UI.propertyControls.add()`);
|
|
450
677
|
return;
|
|
451
678
|
}
|
|
452
679
|
this.removeMadeControls();
|
|
453
680
|
let n = t.choices === "radios" ? this.radios(t) : [this.controlElement(t)];
|
|
454
|
-
for (let e of n) e.setAttribute(
|
|
455
|
-
this.domElement.append(...n);
|
|
681
|
+
for (let e of n) e.setAttribute(P, "");
|
|
682
|
+
this.domElement.append(...n), this.noteValueChanged(), Mt.arrangeSoon(this.domElement.parentElement);
|
|
456
683
|
}
|
|
457
684
|
controlElement(e) {
|
|
458
685
|
let t = document.createElement(e.tag);
|
|
459
686
|
for (let [n, r] of Object.entries(e.attributes ?? {})) t.setAttribute(n, r);
|
|
460
687
|
t.setAttribute("name", this.propertyName);
|
|
461
688
|
let n = this.spec;
|
|
462
|
-
if (n?.min !== void 0 && t.setAttribute("min", String(n.min)), n?.max !== void 0 && t.setAttribute("max", String(n.max)), n?.step !== void 0 && t.setAttribute("step", String(n.step)), this.isReadOnly && t.setAttribute("readonly", ""), e.choices === "items") {
|
|
463
|
-
|
|
464
|
-
|
|
689
|
+
if (n?.min !== void 0 && t.setAttribute("min", String(n.min)), n?.max !== void 0 && t.setAttribute("max", String(n.max)), n?.step !== void 0 && t.setAttribute("step", String(n.step)), this.isReadOnly && (t.setAttribute("readonly", ""), e.attributes?.appearance === Wt && (t.inert = !0)), e.choices === "items") {
|
|
690
|
+
let r = this.choices ?? [], i = e.attributes?.appearance === Wt;
|
|
691
|
+
n?.default === void 0 && !i && !this.domElement.hasAttribute("mixed") && t.setAttribute("placeholder", this.translationForKey("none"));
|
|
692
|
+
let a = i && r.length > 0 && r.every(_UIProperty.hasIcon);
|
|
693
|
+
a && t.setAttribute("icon", "");
|
|
694
|
+
for (let e of r) {
|
|
695
|
+
let n = _UIProperty.item(e, a);
|
|
696
|
+
this.isHueChoice && n.setAttribute("image", _UIProperty.hueChip(n.getAttribute("value"), this.domElement)), t.append(n);
|
|
697
|
+
}
|
|
465
698
|
}
|
|
466
|
-
return e.tag === "ui-property-editor" && t.setAttribute(
|
|
699
|
+
return e.tag === "ui-property-editor" && t.setAttribute(Ve, this.propertyName), t;
|
|
467
700
|
}
|
|
468
701
|
radios(e) {
|
|
469
702
|
return (this.choices ?? []).map((t) => {
|
|
@@ -472,7 +705,79 @@ var $e = H, U = class _UIProperty extends (Xe = ce, Ye = [f], Je = [p], qe = [m]
|
|
|
472
705
|
});
|
|
473
706
|
}
|
|
474
707
|
removeMadeControls() {
|
|
475
|
-
for (let e of [...this.domElement.children]) e.hasAttribute("data-ui-made") && e.remove();
|
|
708
|
+
for (let e of [...this.domElement.children]) e.hasAttribute("data-ui-made") && e.getAttribute("data-ui-made") !== Bt && e.remove();
|
|
709
|
+
}
|
|
710
|
+
get isCompact() {
|
|
711
|
+
return !!this.editor?.isCompact;
|
|
712
|
+
}
|
|
713
|
+
get showsDefaults() {
|
|
714
|
+
return !!this.editor?.showsDefaults;
|
|
715
|
+
}
|
|
716
|
+
get isHalf() {
|
|
717
|
+
if (this.flagRun) return !1;
|
|
718
|
+
let e = this.attributes.width, t = e ? u.columns(e) : void 0;
|
|
719
|
+
return t === void 0 ? this.control?.width === qt : t <= Jt;
|
|
720
|
+
}
|
|
721
|
+
get isInlineCheck() {
|
|
722
|
+
return this.isCompact && !!this.control?.inline && !this.flagRun;
|
|
723
|
+
}
|
|
724
|
+
classValue(e) {
|
|
725
|
+
return e === "inline" && this.isInlineCheck ? !0 : super.classValue(e);
|
|
726
|
+
}
|
|
727
|
+
noteValueChanged() {
|
|
728
|
+
this.valueVersion++;
|
|
729
|
+
}
|
|
730
|
+
onControlsMutated() {
|
|
731
|
+
this.noteValueChanged();
|
|
732
|
+
}
|
|
733
|
+
onValueEdited() {
|
|
734
|
+
this.noteValueChanged();
|
|
735
|
+
}
|
|
736
|
+
get defaultValue() {
|
|
737
|
+
return this.attributes.default ?? this.spec?.default;
|
|
738
|
+
}
|
|
739
|
+
get isSet() {
|
|
740
|
+
if (this.valueVersion, this.isMixed || this.isReadOnly) return !1;
|
|
741
|
+
if (this.origin) return this.isSetHere;
|
|
742
|
+
let e = [...this.domElement.children].filter((e) => !e.slot && e.getAttribute("data-ui-made") !== Bt && y.isControl(e));
|
|
743
|
+
return _UIProperty.differs(y.valueFor(e), this.defaultValue);
|
|
744
|
+
}
|
|
745
|
+
static differs(e, n) {
|
|
746
|
+
return n === void 0 ? !y.isBlank(e) && e !== It : typeof n == "boolean" || n === "true" || n === "false" ? !y.isBlank(e) !== t.boolean(n) : (Array.isArray(e) ? e.join(",") : e == null ? "" : String(e)) !== String(n);
|
|
747
|
+
}
|
|
748
|
+
get isFlagLead() {
|
|
749
|
+
return !!this.flagRun;
|
|
750
|
+
}
|
|
751
|
+
get canJoinFlags() {
|
|
752
|
+
return !!this.control?.inline && !this.holdsOwnControl && !this.requestedKind;
|
|
753
|
+
}
|
|
754
|
+
get isChosen() {
|
|
755
|
+
this.valueVersion;
|
|
756
|
+
let e = this.madeCheckbox;
|
|
757
|
+
return !!e && y.isChosen(e);
|
|
758
|
+
}
|
|
759
|
+
get madeCheckbox() {
|
|
760
|
+
return [...this.domElement.children].find((e) => e.getAttribute("data-ui-made") === "" && !e.slot);
|
|
761
|
+
}
|
|
762
|
+
get chosenFlags() {
|
|
763
|
+
return (this.flagRun ?? []).filter((e) => e.isChosen).map((e) => e.propertyName);
|
|
764
|
+
}
|
|
765
|
+
onFlagRunChanged(e) {
|
|
766
|
+
if (this.flagsSelect?.remove(), this.flagsSelect = void 0, !e) return;
|
|
767
|
+
let t = document.createElement(Vt);
|
|
768
|
+
t.setAttribute(P, Bt), t.setAttribute("multiple", ""), t.setAttribute("selection", ""), t.setAttribute("fluid", ""), t.setAttribute("aria-label", this.translationForKey(Ft));
|
|
769
|
+
for (let n of e) {
|
|
770
|
+
let e = _UIProperty.item({
|
|
771
|
+
value: n.propertyName,
|
|
772
|
+
text: n.ownLabel ?? n.propertyName
|
|
773
|
+
}), r = n.description ?? n.spec?.tip;
|
|
774
|
+
r && e.setAttribute("title", r), t.append(e);
|
|
775
|
+
}
|
|
776
|
+
return t.addEventListener("ui-changed", this.onFlagsPicked), this.domElement.append(t), this.flagsSelect = t, () => t.removeEventListener("ui-changed", this.onFlagsPicked);
|
|
777
|
+
}
|
|
778
|
+
onChosenFlagsChanged(e) {
|
|
779
|
+
let t = this.flagsSelect;
|
|
780
|
+
t && (t.value = [...e]);
|
|
476
781
|
}
|
|
477
782
|
static editorAround(e) {
|
|
478
783
|
for (let t = e.parentElement; t; t = t.parentElement) if ("currentSchema" in t) return t;
|
|
@@ -488,24 +793,80 @@ var $e = H, U = class _UIProperty extends (Xe = ce, Ye = [f], Je = [p], qe = [m]
|
|
|
488
793
|
text: e
|
|
489
794
|
} : e;
|
|
490
795
|
}
|
|
491
|
-
static
|
|
492
|
-
|
|
493
|
-
|
|
796
|
+
static hasIcon(e) {
|
|
797
|
+
return typeof e != "string" && !!e.icon;
|
|
798
|
+
}
|
|
799
|
+
static item(e, t = !1) {
|
|
800
|
+
let { value: n, text: r, icon: i, image: a } = _UIProperty.choiceParts(e), o = document.createElement("ui-item");
|
|
801
|
+
return o.setAttribute("value", n), i && o.setAttribute("icon", i), a && o.setAttribute("image", a), t ? (o.setAttribute("title", r), o.setAttribute("aria-label", r)) : o.textContent = r, o;
|
|
802
|
+
}
|
|
803
|
+
static hueChip(e, t) {
|
|
804
|
+
let n = t.appendChild(document.createElement("span"));
|
|
805
|
+
n.style.color = `var(--ui-${e}, gray)`;
|
|
806
|
+
let r = getComputedStyle(n).color;
|
|
807
|
+
n.remove();
|
|
808
|
+
let i = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="${r}"/></svg>`;
|
|
809
|
+
return `data:image/svg+xml,${encodeURIComponent(i)}`;
|
|
494
810
|
}
|
|
495
811
|
};
|
|
496
|
-
|
|
812
|
+
R = _(Dt), Ot = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), a(R, 4, "editor", wt, G, Ot), a(R, 1, "watchEditor", Ct, G), a(R, 4, "isInReadonly", St, G, kt), a(R, 2, "isProperty", xt, G), a(R, 2, "isReadOnly", bt, G), a(R, 2, "isSetHere", yt, G), a(R, 2, "isInherited", vt, G), a(R, 2, "isData", _t, G), a(R, 4, "isChanged", gt, G, z), a(R, 2, "isButtonRow", ht, G), a(R, 4, "loadedChoices", mt, G, B), a(R, 1, "onChoiceSourceChanged", pt, G), a(R, 1, "onControlNeeded", ft, G), a(R, 1, "makeControl", dt, G), a(R, 1, "removeMadeControls", ut, G), a(R, 2, "isCompact", lt, G), a(R, 2, "showsDefaults", ct, G), a(R, 2, "isHalf", st, G), a(R, 2, "isInlineCheck", ot, G), a(R, 4, "valueVersion", at, G, V), a(R, 1, "noteValueChanged", it, G), a(R, 1, "onControlsMutated", rt, G), a(R, 1, "onValueEdited", nt, G), a(R, 2, "isSet", tt, G), a(R, 4, "flagRun", et, G, H), a(R, 4, "isFlagMember", $e, G, U), a(R, 2, "isFlagLead", Qe, G), a(R, 2, "madeCheckbox", Ze, G), a(R, 1, "onFlagRunChanged", Xe, G), a(R, 1, "onChosenFlagsChanged", Ye, G), a(R, 13, "vocabulary", Et, G), a(R, 13, "elementSetup", Tt, G), a(R, 5, "onFlagsPicked", Je, G), s(R, G), e(G, "UIProperty"), r(G, "vocabulary", l(R, 36, G, He)), l(R, 39, G), r(G, "elementSetup", l(R, 40, G, {
|
|
497
813
|
styleSheets: {
|
|
498
|
-
...
|
|
499
|
-
property:
|
|
814
|
+
...fe.prototype.elementSetup.styleSheets,
|
|
815
|
+
property: Ue
|
|
816
|
+
},
|
|
817
|
+
DOMElement: At
|
|
818
|
+
})), l(R, 43, G);
|
|
819
|
+
var K = G, Mt = class FlagRun {
|
|
820
|
+
static {
|
|
821
|
+
e(this, "FlagRun");
|
|
822
|
+
}
|
|
823
|
+
static arrangeSoon(e) {
|
|
824
|
+
e && !FlagRun.pending.has(e) && (FlagRun.pending.add(e), ne(() => {
|
|
825
|
+
FlagRun.pending.delete(e), FlagRun.arrange(e);
|
|
826
|
+
}));
|
|
827
|
+
}
|
|
828
|
+
static arrange(e) {
|
|
829
|
+
let t = e.getAttribute("flags"), n = t === Rt ? 1 : t === zt ? Infinity : Lt, r = [], i = [];
|
|
830
|
+
for (let t of e.children) {
|
|
831
|
+
let e = t.component;
|
|
832
|
+
if (e instanceof K && e.canJoinFlags) {
|
|
833
|
+
i.push(e);
|
|
834
|
+
continue;
|
|
835
|
+
}
|
|
836
|
+
i.length && r.push(i), i = [];
|
|
837
|
+
}
|
|
838
|
+
i.length && r.push(i);
|
|
839
|
+
let a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set();
|
|
840
|
+
for (let e of r) if (!(e.length < n)) {
|
|
841
|
+
a.set(e[0], e);
|
|
842
|
+
for (let t of e.slice(1)) o.add(t);
|
|
843
|
+
}
|
|
844
|
+
for (let t of e.children) {
|
|
845
|
+
let e = t.component;
|
|
846
|
+
e instanceof K && (e.flagRun = a.get(e), e.isFlagMember = o.has(e));
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
static pending = /* @__PURE__ */ new WeakSet();
|
|
850
|
+
}, Nt = "worked out", Pt = {
|
|
851
|
+
reset: {
|
|
852
|
+
icon: "undo",
|
|
853
|
+
text: "reset",
|
|
854
|
+
event: "ui-reset"
|
|
500
855
|
},
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
856
|
+
"show code": {
|
|
857
|
+
icon: "code",
|
|
858
|
+
text: "showCode",
|
|
859
|
+
event: "ui-show-code"
|
|
860
|
+
}
|
|
861
|
+
}, Ft = "flags", It = "false", Lt = 3, Rt = "pills", zt = "checkboxes", Bt = "flags", Vt = "ui-dropdown", Ht = "choice", Ut = "buttons", Wt = "segmented", Gt = 4, Kt = "hues", qt = "half", Jt = 8, Yt = "radios", Xt = "text", Zt = /* @__PURE__ */ e((e) => ({
|
|
504
862
|
name: e,
|
|
505
863
|
kind: "string",
|
|
506
864
|
description: ""
|
|
507
|
-
}), "NAMED")
|
|
865
|
+
}), "NAMED");
|
|
866
|
+
_e(["click"]);
|
|
867
|
+
var Qt = {
|
|
508
868
|
tag: "ui-property-editor",
|
|
869
|
+
icon: "sliders horizontal",
|
|
509
870
|
topics: [
|
|
510
871
|
"forms",
|
|
511
872
|
"inputs",
|
|
@@ -550,6 +911,38 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
550
911
|
kind: "boolean",
|
|
551
912
|
description: "Shows every value; nothing can be changed. Reaches every property in it."
|
|
552
913
|
},
|
|
914
|
+
{
|
|
915
|
+
name: "compact",
|
|
916
|
+
kind: "keyOnly",
|
|
917
|
+
description: "Tight, as an inspector: smaller type, labels in regular weight, 8px between rows, two columns, a yes or no on one line with its label, a hint at the label row's end, bands tightened (epic `debut` P31)."
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
name: "columns",
|
|
921
|
+
kind: "number",
|
|
922
|
+
description: "How many columns its properties lay out on: a short one (a number, a select) takes one, the rest a whole row. None: 2 when `compact`, else 1. A group's own `columns` wins in it."
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
name: "origins",
|
|
926
|
+
kind: "json",
|
|
927
|
+
reflect: !1,
|
|
928
|
+
description: "Where each property's value comes from, by name: `{ rank: { kind: 'inherited', from: 'From Card' } }`. `here` shows a dot, `inherited` a quieter label, `worked out` is read only; `from` is the label's tooltip; `action` adds a small button (`reset`, `show code`); `data` is kept in a back-end, its `mark` a few words at the row's end; `readonly` makes it read only. A property it doesn't name looks as it always did."
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
name: "writer",
|
|
932
|
+
kind: "json",
|
|
933
|
+
reflect: !1,
|
|
934
|
+
description: "Who writes a property's value to its thing, in place of a plain set: `({ thing, name, value }) => boolean`, `true` when it took the write. For a value kept somewhere that wants each change held, e.g. an inspector's back-end data. None: each property is set on its thing."
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
name: "show-defaults",
|
|
938
|
+
kind: "boolean",
|
|
939
|
+
description: "A value other than its property's default shows bold, so what's been changed stands out (`:state(set)` on each property shows it either way)."
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
name: "unsaved",
|
|
943
|
+
kind: "string",
|
|
944
|
+
description: "Changes here can't be saved: each property shows a crossed-out save icon after its info icon, this text its tip (`<ui-field unsaved>`). The values still change as they're edited."
|
|
945
|
+
},
|
|
553
946
|
{
|
|
554
947
|
name: "output",
|
|
555
948
|
kind: "string",
|
|
@@ -560,13 +953,23 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
560
953
|
kind: "string",
|
|
561
954
|
description: "An error under the title, and the `error` state."
|
|
562
955
|
}
|
|
563
|
-
], [
|
|
956
|
+
], [x.attributes, S.attributes], ["source", "selector"]),
|
|
564
957
|
events: passThrough([
|
|
565
958
|
{
|
|
566
959
|
name: "ui-changed",
|
|
567
960
|
detail: "{ name: string, value: unknown, things: object[] }",
|
|
568
961
|
description: "A property was written to the thing (or things)."
|
|
569
962
|
},
|
|
963
|
+
{
|
|
964
|
+
name: "ui-reset",
|
|
965
|
+
detail: "{ name: string }",
|
|
966
|
+
description: "A property's reset button was pressed (`origins`): the page does what that means."
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
name: "ui-show-code",
|
|
970
|
+
detail: "{ name: string }",
|
|
971
|
+
description: "A property's code button was pressed (`origins`): the page shows it."
|
|
972
|
+
},
|
|
570
973
|
{
|
|
571
974
|
name: "ui-loading",
|
|
572
975
|
detail: "{ source: string }",
|
|
@@ -577,14 +980,14 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
577
980
|
detail: "{ source: string, content: string }",
|
|
578
981
|
description: "It arrived (P6)."
|
|
579
982
|
}
|
|
580
|
-
], [
|
|
983
|
+
], [x.events, S.events], ["ui-loaded"]),
|
|
581
984
|
slots: passThrough([{
|
|
582
985
|
name: "",
|
|
583
986
|
description: "`<ui-property-group>`s and `<ui-property>`s. Empty: one property per attribute."
|
|
584
987
|
}, {
|
|
585
988
|
name: "output",
|
|
586
989
|
description: "Rich output (instead of `output`)."
|
|
587
|
-
}], [
|
|
990
|
+
}], [S.slots]),
|
|
588
991
|
parts: passThrough([
|
|
589
992
|
{
|
|
590
993
|
name: "editor",
|
|
@@ -602,11 +1005,25 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
602
1005
|
name: "error-line",
|
|
603
1006
|
description: "The editor's own error, under its title."
|
|
604
1007
|
}
|
|
605
|
-
], [
|
|
606
|
-
states: passThrough([
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
1008
|
+
], [x.parts, S.parts]),
|
|
1009
|
+
states: passThrough([
|
|
1010
|
+
{
|
|
1011
|
+
name: "readonly",
|
|
1012
|
+
description: "Nothing can be changed (`readonly`)."
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
name: "compact",
|
|
1016
|
+
description: "`compact`."
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
name: "grid",
|
|
1020
|
+
description: "Its properties lay out on columns (`columns`, or `compact`)."
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
name: "show-defaults",
|
|
1024
|
+
description: "`show-defaults`."
|
|
1025
|
+
}
|
|
1026
|
+
], [x.states, S.states]),
|
|
610
1027
|
texts: passThrough([
|
|
611
1028
|
{
|
|
612
1029
|
key: "save",
|
|
@@ -623,29 +1040,44 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
623
1040
|
text: "Other",
|
|
624
1041
|
description: "The group of properties a layout doesn't place (P6)."
|
|
625
1042
|
}
|
|
626
|
-
], [
|
|
627
|
-
},
|
|
1043
|
+
], [x.texts, S.texts])
|
|
1044
|
+
}, $t = "@layer ui.components.property-editor.content{.footer{justify-content:flex-end;gap:.5em;margin:1em 0 0;display:flex}.output{color:var(--ui-text-muted);font-family:var(--ui-font-family-mono);font-variant-numeric:tabular-nums;font-size:.92em}.error-line{color:var(--ui-negative-text);margin:0 0 .75em;font-size:.85714em}}@layer ui.components.property-editor.variations{:host(:state(grid)) .ui.form,:host(:state(grid)) .ui.form>ui-section::part(content){--_property-editor-field-width:auto;grid-template-columns:repeat(var(--_property-editor-columns,1), minmax(0, 1fr));column-gap:var(--_ui-property-editor-column-gap,var(--ui-form-gutter,1em));align-items:start;display:grid}:host(:state(grid)) .ui.form>:not(slot),:host(:state(grid)) :is(.output,.error-line,.footer){grid-column:1/-1}:host(:state(compact)) .ui.form{--_ui-property-editor-font-size:var(--ui-property-editor-font-size,13px);--_ui-property-editor-row-gap:var(--ui-property-editor-row-gap,8px);--_ui-property-editor-column-gap:var(--ui-property-editor-column-gap,12px);--_ui-property-editor-label-distance:var(--ui-property-editor-label-distance,3px);--_ui-form-row-distance:var(--_ui-property-editor-row-gap);--_ui-form-label-distance:var(--_ui-property-editor-label-distance);--_ui-form-label-font-size:1em;--_ui-form-label-font-weight:var(--ui-font-weight-normal,400);--ui-font-size:var(--_ui-property-editor-font-size);--ui-control-height:0px;--ui-button-padding-block:.3em;--ui-input-padding-block:.3em;--ui-input-padding-inline:.6em;--ui-select-padding-block:.3em;--ui-select-padding-inline:.6em;--ui-dropdown-padding-block:.3em;--ui-dropdown-padding-inline:.6em;--ui-menu-segmented-item-padding:.4em .6em;font-size:var(--_ui-property-editor-font-size)}}", en = /* @__PURE__ */ j("<div><!><!>"), tn = /* @__PURE__ */ j("<slot>"), nn = /* @__PURE__ */ j("<span><slot>"), rn = /* @__PURE__ */ j("<div role=alert>"), an, on, sn, cn, ln, un, dn, fn, pn, mn, hn, gn, _n, q, vn, DOMPropertyEditorElement = class extends de {
|
|
628
1045
|
static {
|
|
629
|
-
|
|
1046
|
+
e(this, "DOMPropertyEditorElement");
|
|
630
1047
|
}
|
|
631
1048
|
get currentSchema() {
|
|
632
1049
|
return this.component?.currentSchema;
|
|
633
1050
|
}
|
|
634
|
-
|
|
1051
|
+
get isCompact() {
|
|
1052
|
+
return !!this.component?.isCompact;
|
|
1053
|
+
}
|
|
1054
|
+
get isGrid() {
|
|
1055
|
+
return !!this.component?.isGrid;
|
|
1056
|
+
}
|
|
1057
|
+
get columnCount() {
|
|
1058
|
+
return this.component?.columnCount ?? 1;
|
|
1059
|
+
}
|
|
1060
|
+
get showsDefaults() {
|
|
1061
|
+
return !!this.component?.showsDefaults;
|
|
1062
|
+
}
|
|
1063
|
+
get currentOrigins() {
|
|
1064
|
+
return this.component?.currentOrigins;
|
|
1065
|
+
}
|
|
1066
|
+
}, J = class _UIPropertyEditor extends (_n = pe, gn = [oe], hn = [se], mn = [h], pn = [m("currentSchema", "isConnected")], fn = [g], dn = [m("sourceUrl", "sourceSelector", "isConnected")], un = [g], ln = [p("property-editor")], cn = [p("readonly")], sn = [p("compact")], on = [p("grid")], an = [p("show-defaults")], _n) {
|
|
635
1067
|
constructor() {
|
|
636
|
-
super(...arguments),
|
|
1068
|
+
super(...arguments), l(q, 5, this), d(this, vn, l(q, 8, this, 0)), l(q, 11, this), r(this, "schemaTagsAwaited", /* @__PURE__ */ new Set()), r(this, "slots", new ee(this.domElement));
|
|
637
1069
|
}
|
|
638
1070
|
get schemaGiven() {
|
|
639
|
-
return
|
|
1071
|
+
return o.attributeValue(this, "schema");
|
|
640
1072
|
}
|
|
641
1073
|
get currentSchema() {
|
|
642
1074
|
let e = this.schemaGiven;
|
|
643
1075
|
if (typeof e == "string") {
|
|
644
1076
|
if (!this.isReady) return;
|
|
645
1077
|
this.schemaTagsDefined;
|
|
646
|
-
let t =
|
|
1078
|
+
let t = c.propertyControls.schema(e);
|
|
647
1079
|
if (t) return t;
|
|
648
|
-
let n =
|
|
1080
|
+
let n = c.vocabulary.get(e);
|
|
649
1081
|
return n || this.waitForSchemaTag(e), n ? M.fromVocabulary(n) : void 0;
|
|
650
1082
|
}
|
|
651
1083
|
if (e && typeof e == "object" && "attributes" in e) return "tag" in e ? M.fromVocabulary(e) : e;
|
|
@@ -655,10 +1087,10 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
655
1087
|
}
|
|
656
1088
|
onSchemaChanged(e, t) {
|
|
657
1089
|
if (!(!t || this.holdsOwnProperties || this.attributes.source)) {
|
|
658
|
-
this.removeMadeProperties(
|
|
1090
|
+
this.removeMadeProperties(F.schema);
|
|
659
1091
|
for (let t of e?.attributes ?? []) {
|
|
660
|
-
let e = document.createElement(
|
|
661
|
-
e.setAttribute("name", t.name), e.setAttribute(
|
|
1092
|
+
let e = document.createElement(Re);
|
|
1093
|
+
e.setAttribute("name", t.name), e.setAttribute(P, F.schema), this.domElement.append(e);
|
|
662
1094
|
}
|
|
663
1095
|
}
|
|
664
1096
|
}
|
|
@@ -668,8 +1100,12 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
668
1100
|
removeMadeProperties(e) {
|
|
669
1101
|
for (let t of [...this.domElement.children]) t.getAttribute("data-ui-made") === e && t.remove();
|
|
670
1102
|
}
|
|
1103
|
+
get currentOrigins() {
|
|
1104
|
+
let e = o.attributeValue(this, "origins");
|
|
1105
|
+
return e && typeof e == "object" ? e : void 0;
|
|
1106
|
+
}
|
|
671
1107
|
onSourceChanged(e, t, n) {
|
|
672
|
-
if (!e || !n ||
|
|
1108
|
+
if (!e || !n || ve) return;
|
|
673
1109
|
let r = !0;
|
|
674
1110
|
return this.loadLayout(e, t, () => r), () => {
|
|
675
1111
|
r = !1;
|
|
@@ -682,34 +1118,34 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
682
1118
|
return this.attributes.selector ?? this.attributes.select ?? void 0;
|
|
683
1119
|
}
|
|
684
1120
|
async loadLayout(e, t, n) {
|
|
685
|
-
this.send(
|
|
1121
|
+
this.send(Y.loading, { source: e });
|
|
686
1122
|
try {
|
|
687
|
-
await
|
|
688
|
-
let { text: r } = await
|
|
1123
|
+
await c.load();
|
|
1124
|
+
let { text: r } = await c.sources.load(e);
|
|
689
1125
|
if (!n()) return;
|
|
690
|
-
let i = new DOMParser().parseFromString(r, "text/html"), a = t ? i.querySelector(t) :
|
|
1126
|
+
let i = new DOMParser().parseFromString(r, "text/html"), a = t ? i.querySelector(t) : we.editorIn(i) ?? i.body;
|
|
691
1127
|
if (!a) {
|
|
692
|
-
|
|
1128
|
+
f.warn("<ui-property-editor>", `${e} has nothing matching \`${t}\``);
|
|
693
1129
|
return;
|
|
694
1130
|
}
|
|
695
|
-
this.takeLayout(a, i), this.send(
|
|
1131
|
+
this.takeLayout(a, i), this.send(Y.loaded, {
|
|
696
1132
|
source: e,
|
|
697
1133
|
content: r
|
|
698
1134
|
});
|
|
699
1135
|
} catch (t) {
|
|
700
|
-
|
|
1136
|
+
f.warn("<ui-property-editor>", `can't load its layout from ${e}:`, t);
|
|
701
1137
|
}
|
|
702
1138
|
}
|
|
703
1139
|
takeLayout(e, t) {
|
|
704
|
-
if (this.removeMadeProperties(
|
|
1140
|
+
if (this.removeMadeProperties(F.source), e.localName === this.domElement.localName) for (let { name: t, value: n } of e.attributes) {
|
|
705
1141
|
let e = this.domElement[re(t)];
|
|
706
1142
|
!this.domElement.hasAttribute(t) && e == null && this.domElement.setAttribute(t, n);
|
|
707
1143
|
}
|
|
708
1144
|
for (let t of e.children) {
|
|
709
1145
|
let e = document.importNode(t, !0);
|
|
710
|
-
e.setAttribute(
|
|
1146
|
+
e.setAttribute(P, F.source), this.domElement.append(e);
|
|
711
1147
|
}
|
|
712
|
-
for (let e of this.domElement.querySelectorAll(`${
|
|
1148
|
+
for (let e of this.domElement.querySelectorAll(`${N}:is([selector], [select])`)) {
|
|
713
1149
|
if (e.children.length) continue;
|
|
714
1150
|
let n = t.querySelector(e.getAttribute("selector") ?? e.getAttribute("select"));
|
|
715
1151
|
for (let t of n?.children ?? []) e.append(document.importNode(t, !0));
|
|
@@ -722,28 +1158,28 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
722
1158
|
let e = this.value;
|
|
723
1159
|
if (e !== void 0 || !this.valueFrom) return e;
|
|
724
1160
|
let t = this.domElement.parentElement;
|
|
725
|
-
return t ?
|
|
1161
|
+
return t ? v.read(v.scopeAround(t), this.valueFrom) : void 0;
|
|
726
1162
|
}
|
|
727
1163
|
get isBound() {
|
|
728
|
-
return
|
|
1164
|
+
return v.isObject(this.boundValue);
|
|
729
1165
|
}
|
|
730
1166
|
onMount() {
|
|
731
1167
|
let e = super.onMount();
|
|
732
|
-
return
|
|
1168
|
+
return v.hold(this.domElement, () => this.boundValue), e;
|
|
733
1169
|
}
|
|
734
1170
|
get hasTitle() {
|
|
735
|
-
return !!this.attributes.label || this.slots.hasContent(this.slotForName(
|
|
1171
|
+
return !!this.attributes.label || this.slots.hasContent(this.slotForName(Y.label));
|
|
736
1172
|
}
|
|
737
1173
|
get sectionAttributes() {
|
|
738
1174
|
let e = {};
|
|
739
|
-
for (let t of
|
|
1175
|
+
for (let t of bn) {
|
|
740
1176
|
let n = this.attributes[t];
|
|
741
1177
|
n != null && (e[t] = n);
|
|
742
1178
|
}
|
|
743
1179
|
return e;
|
|
744
1180
|
}
|
|
745
1181
|
classValue(e) {
|
|
746
|
-
if (!
|
|
1182
|
+
if (!bn.has(e)) return super.classValue(e);
|
|
747
1183
|
}
|
|
748
1184
|
get isPropertyEditor() {
|
|
749
1185
|
return !0;
|
|
@@ -751,10 +1187,26 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
751
1187
|
get isReadOnly() {
|
|
752
1188
|
return this.attributes.readonly != null && this.attributes.readonly !== "false";
|
|
753
1189
|
}
|
|
1190
|
+
get isCompact() {
|
|
1191
|
+
return t.boolean(this.attributes.compact);
|
|
1192
|
+
}
|
|
1193
|
+
get columnCount() {
|
|
1194
|
+
return _UIPropertyEditor.columnsFrom(this.attributes.columns) ?? (this.isCompact ? 2 : 1);
|
|
1195
|
+
}
|
|
1196
|
+
get isGrid() {
|
|
1197
|
+
return this.isCompact || this.columnCount > 1;
|
|
1198
|
+
}
|
|
1199
|
+
get showsDefaults() {
|
|
1200
|
+
return t.boolean(this.attributes["show-defaults"]);
|
|
1201
|
+
}
|
|
1202
|
+
static columnsFrom(e) {
|
|
1203
|
+
let t = Math.round(Number(e));
|
|
1204
|
+
return e && t >= 1 ? t : void 0;
|
|
1205
|
+
}
|
|
754
1206
|
render() {
|
|
755
1207
|
let e = this;
|
|
756
|
-
var t =
|
|
757
|
-
return O(t, T(
|
|
1208
|
+
var t = en(), n = t.firstChild, r = n.nextSibling;
|
|
1209
|
+
return O(t, T(C, {
|
|
758
1210
|
get when() {
|
|
759
1211
|
return e.hasTitle;
|
|
760
1212
|
},
|
|
@@ -762,38 +1214,39 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
762
1214
|
return e.body();
|
|
763
1215
|
},
|
|
764
1216
|
get children() {
|
|
765
|
-
return T(
|
|
1217
|
+
return T(ge, be({ component: Cn }, () => e.sectionAttributes, { get children() {
|
|
766
1218
|
return [
|
|
767
|
-
T(
|
|
1219
|
+
T(he, {
|
|
768
1220
|
get each() {
|
|
769
1221
|
return e.forwardedSlots;
|
|
770
1222
|
},
|
|
771
1223
|
children: (e) => (() => {
|
|
772
|
-
var t =
|
|
1224
|
+
var t = tn();
|
|
773
1225
|
return A(t, "name", e), A(t, "slot", e), t._$owner = D(), t;
|
|
774
1226
|
})()
|
|
775
1227
|
}),
|
|
776
|
-
|
|
777
|
-
|
|
1228
|
+
ye(() => e.outputAndError()),
|
|
1229
|
+
ye(() => e.body())
|
|
778
1230
|
];
|
|
779
1231
|
} }));
|
|
780
1232
|
}
|
|
781
1233
|
}), n), O(t, () => e.debugBox(), r), E(() => ({
|
|
782
1234
|
e: k(e.rootClass),
|
|
783
|
-
t:
|
|
784
|
-
a: e.
|
|
785
|
-
o: e.
|
|
786
|
-
|
|
787
|
-
|
|
1235
|
+
t: { [Sn]: String(e.columnCount) },
|
|
1236
|
+
a: `${e.partForName(Y.editor)} ${e.partForName(Y.form)}`,
|
|
1237
|
+
o: e.disabled || e.loading,
|
|
1238
|
+
i: e.loading ? "true" : void 0
|
|
1239
|
+
}), ({ e, t: n, a: r, o: i, i: a }, o) => {
|
|
1240
|
+
w(t, e, o?.e), xe(t, n, o?.t), r !== o?.a && A(t, "part", r), i !== o?.o && A(t, "inert", i), a !== o?.i && A(t, "aria-busy", a);
|
|
788
1241
|
}), t;
|
|
789
1242
|
}
|
|
790
1243
|
get forwardedSlots() {
|
|
791
|
-
return
|
|
1244
|
+
return xn.filter((e) => this.slots.hasContent(e));
|
|
792
1245
|
}
|
|
793
1246
|
body() {
|
|
794
1247
|
let e = this;
|
|
795
1248
|
return [
|
|
796
|
-
T(
|
|
1249
|
+
T(C, {
|
|
797
1250
|
get when() {
|
|
798
1251
|
return !e.hasTitle;
|
|
799
1252
|
},
|
|
@@ -802,31 +1255,31 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
802
1255
|
}
|
|
803
1256
|
}),
|
|
804
1257
|
(() => {
|
|
805
|
-
var e =
|
|
1258
|
+
var e = tn();
|
|
806
1259
|
return e._$owner = D(), e;
|
|
807
1260
|
})(),
|
|
808
|
-
T(
|
|
1261
|
+
T(C, {
|
|
809
1262
|
get when() {
|
|
810
|
-
return e.apply ===
|
|
1263
|
+
return e.apply === En;
|
|
811
1264
|
},
|
|
812
1265
|
get children() {
|
|
813
|
-
var t =
|
|
814
|
-
return O(t, T(
|
|
815
|
-
component:
|
|
1266
|
+
var t = en(), n = t.firstChild, r = n.nextSibling;
|
|
1267
|
+
return O(t, T(ge, {
|
|
1268
|
+
component: wn,
|
|
816
1269
|
color: "primary",
|
|
817
1270
|
onClick: () => e.save(),
|
|
818
1271
|
get children() {
|
|
819
|
-
return e.translationForKey(
|
|
1272
|
+
return e.translationForKey(Y.save);
|
|
820
1273
|
}
|
|
821
|
-
}), n), O(t, T(
|
|
822
|
-
component:
|
|
1274
|
+
}), n), O(t, T(ge, {
|
|
1275
|
+
component: wn,
|
|
823
1276
|
onClick: () => e.cancel(),
|
|
824
1277
|
get children() {
|
|
825
|
-
return e.translationForKey(
|
|
1278
|
+
return e.translationForKey(Y.cancel);
|
|
826
1279
|
}
|
|
827
1280
|
}), r), E(() => ({
|
|
828
|
-
e: k(
|
|
829
|
-
t: e.partForName(
|
|
1281
|
+
e: k(An),
|
|
1282
|
+
t: e.partForName(Y.footer)
|
|
830
1283
|
}), ({ e, t: n }, r) => {
|
|
831
1284
|
w(t, e, r?.e), n !== r?.t && A(t, "part", n);
|
|
832
1285
|
}), t;
|
|
@@ -836,51 +1289,59 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
836
1289
|
}
|
|
837
1290
|
outputAndError() {
|
|
838
1291
|
let e = this.attributes.output, t = this.attributes.error, n = this;
|
|
839
|
-
return [T(
|
|
1292
|
+
return [T(C, {
|
|
840
1293
|
get when() {
|
|
841
|
-
return e || n.slots.hasContent(n.slotForName(
|
|
1294
|
+
return e || n.slots.hasContent(n.slotForName(Y.output));
|
|
842
1295
|
},
|
|
843
1296
|
get children() {
|
|
844
|
-
var t =
|
|
1297
|
+
var t = nn(), r = t.firstChild;
|
|
845
1298
|
return r._$owner = D(), O(r, e), E(() => ({
|
|
846
|
-
e: k(
|
|
847
|
-
t: n.partForName(
|
|
848
|
-
a: n.hasTitle ?
|
|
849
|
-
o: n.slotForName(
|
|
1299
|
+
e: k(jn),
|
|
1300
|
+
t: n.partForName(Y.output),
|
|
1301
|
+
a: n.hasTitle ? Tn : void 0,
|
|
1302
|
+
o: n.slotForName(Y.output)
|
|
850
1303
|
}), ({ e, t: n, a: i, o: a }, o) => {
|
|
851
1304
|
w(t, e, o?.e), n !== o?.t && A(t, "part", n), i !== o?.a && A(t, "slot", i), a !== o?.o && A(r, "name", a);
|
|
852
1305
|
}), t;
|
|
853
1306
|
}
|
|
854
|
-
}), T(
|
|
1307
|
+
}), T(C, {
|
|
855
1308
|
when: t,
|
|
856
1309
|
get children() {
|
|
857
|
-
var e =
|
|
1310
|
+
var e = rn();
|
|
858
1311
|
return O(e, t), E(() => ({
|
|
859
|
-
e: k(
|
|
860
|
-
t: n.partForName(
|
|
1312
|
+
e: k(Mn),
|
|
1313
|
+
t: n.partForName(Y.errorLine)
|
|
861
1314
|
}), ({ e: t, t: n }, r) => {
|
|
862
1315
|
w(e, t, r?.e), n !== r?.t && A(e, "part", n);
|
|
863
1316
|
}), e;
|
|
864
1317
|
}
|
|
865
1318
|
})];
|
|
866
1319
|
}
|
|
1320
|
+
writesItself(e, t, n) {
|
|
1321
|
+
let r = o.attributeValue(this, "writer");
|
|
1322
|
+
return typeof r == "function" && !!r({
|
|
1323
|
+
thing: e,
|
|
1324
|
+
name: t,
|
|
1325
|
+
value: n
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
867
1328
|
onWritten({ control: e, name: t, value: n, things: r }) {
|
|
868
|
-
e.closest(
|
|
1329
|
+
e.closest(Be)?.dispatchEvent(new CustomEvent(Dn, {
|
|
869
1330
|
detail: {
|
|
870
1331
|
name: t,
|
|
871
1332
|
value: n
|
|
872
1333
|
},
|
|
873
1334
|
bubbles: !1
|
|
874
|
-
})), this.send(
|
|
1335
|
+
})), this.send(Y.change, {
|
|
875
1336
|
name: t,
|
|
876
1337
|
value: n,
|
|
877
1338
|
things: r
|
|
878
1339
|
});
|
|
879
1340
|
let i = this.currentSchema?.attributes.find((e) => e.name === t);
|
|
880
1341
|
for (let e of i?.onChange ?? []) {
|
|
881
|
-
let t =
|
|
1342
|
+
let t = c.propertyControls.rule(e);
|
|
882
1343
|
if (!t) {
|
|
883
|
-
|
|
1344
|
+
f.warn("<ui-property-editor>", `no rule \`${e}\`: add it with UI.propertyControls.addRule()`);
|
|
884
1345
|
continue;
|
|
885
1346
|
}
|
|
886
1347
|
try {
|
|
@@ -890,13 +1351,13 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
890
1351
|
value: n
|
|
891
1352
|
});
|
|
892
1353
|
} catch (t) {
|
|
893
|
-
|
|
1354
|
+
f.warn("<ui-property-editor>", `rule \`${e}\` failed:`, t);
|
|
894
1355
|
}
|
|
895
1356
|
}
|
|
896
1357
|
}
|
|
897
1358
|
onFieldChecked(e, t) {
|
|
898
|
-
let n = e.controls[0]?.closest(
|
|
899
|
-
n && (n.markFieldFailed?.(e.identifier, t.length > 0), t.length && n.dispatchEvent(new CustomEvent(
|
|
1359
|
+
let n = e.controls[0]?.closest(N);
|
|
1360
|
+
n && (n.markFieldFailed?.(e.identifier, t.length > 0), t.length && n.dispatchEvent(new CustomEvent(On, {
|
|
900
1361
|
detail: {
|
|
901
1362
|
field: e.identifier,
|
|
902
1363
|
errors: t
|
|
@@ -907,29 +1368,29 @@ var et = U, tt = "radios", nt = "text", rt = /* @__PURE__ */ o((e) => ({
|
|
|
907
1368
|
onHeldChanged() {
|
|
908
1369
|
let e = new Set(this.heldControls), t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
909
1370
|
for (let r of e) {
|
|
910
|
-
let e = r.closest(
|
|
1371
|
+
let e = r.closest(Be);
|
|
911
1372
|
e && t.add(e);
|
|
912
|
-
let i = r.closest(
|
|
1373
|
+
let i = r.closest(N);
|
|
913
1374
|
i && n.add(i);
|
|
914
1375
|
}
|
|
915
|
-
for (let e of this.domElement.querySelectorAll(
|
|
916
|
-
for (let e of this.domElement.querySelectorAll(
|
|
1376
|
+
for (let e of this.domElement.querySelectorAll(Be)) e.markChanged?.(t.has(e));
|
|
1377
|
+
for (let e of this.domElement.querySelectorAll(N)) e.markChanged?.(n.has(e));
|
|
917
1378
|
}
|
|
918
1379
|
onSucceeded() {
|
|
919
|
-
for (let e of this.domElement.querySelectorAll(
|
|
1380
|
+
for (let e of this.domElement.querySelectorAll(N)) e.dispatchEvent(new CustomEvent(kn, {
|
|
920
1381
|
detail: { values: this.values },
|
|
921
1382
|
bubbles: !1
|
|
922
1383
|
}));
|
|
923
1384
|
}
|
|
924
1385
|
};
|
|
925
|
-
|
|
1386
|
+
q = _(_n), vn = /* @__PURE__ */ new WeakMap(), a(q, 4, "schemaTagsDefined", mn, J, vn), a(q, 1, "onSchemaChanged", pn, J), a(q, 1, "removeMadeProperties", fn, J), a(q, 1, "onSourceChanged", dn, J), a(q, 1, "loadLayout", un, J), a(q, 2, "isPropertyEditor", ln, J), a(q, 2, "isReadOnly", cn, J), a(q, 2, "isCompact", sn, J), a(q, 2, "isGrid", on, J), a(q, 2, "showsDefaults", an, J), a(q, 13, "vocabulary", gn, J), a(q, 13, "elementSetup", hn, J), s(q, J), e(J, "UIPropertyEditor"), r(J, "vocabulary", l(q, 12, J, Qt)), l(q, 15, J), r(J, "elementSetup", l(q, 16, J, {
|
|
926
1387
|
styleSheets: {
|
|
927
|
-
...
|
|
928
|
-
editor:
|
|
1388
|
+
...pe.prototype.elementSetup.styleSheets,
|
|
1389
|
+
editor: $t
|
|
929
1390
|
},
|
|
930
1391
|
DOMElement: DOMPropertyEditorElement
|
|
931
|
-
})),
|
|
932
|
-
var
|
|
1392
|
+
})), l(q, 19, J);
|
|
1393
|
+
var yn = J, bn = new Set(S.attributes.map((e) => e.name).filter((e) => ![
|
|
933
1394
|
"source",
|
|
934
1395
|
"selector",
|
|
935
1396
|
"size",
|
|
@@ -937,7 +1398,7 @@ var yt = q, bt = new Set(b.attributes.map((e) => e.name).filter((e) => ![
|
|
|
937
1398
|
"loading",
|
|
938
1399
|
"disabled",
|
|
939
1400
|
"parent"
|
|
940
|
-
].includes(e))),
|
|
1401
|
+
].includes(e))), xn = S.slots.map((e) => e.name).filter(Boolean), Y = {
|
|
941
1402
|
editor: "editor",
|
|
942
1403
|
form: "form",
|
|
943
1404
|
footer: "footer",
|
|
@@ -949,7 +1410,7 @@ var yt = q, bt = new Set(b.attributes.map((e) => e.name).filter((e) => ![
|
|
|
949
1410
|
change: "ui-changed",
|
|
950
1411
|
loading: "ui-loading",
|
|
951
1412
|
loaded: "ui-loaded"
|
|
952
|
-
},
|
|
1413
|
+
}, Sn = "--_property-editor-columns", Cn = "ui-section", wn = "ui-button", Tn = "actions", En = "on save", Dn = "ui-changed", On = "ui-invalid", kn = "ui-saved", An = "footer", jn = "output", Mn = "error-line", X = [
|
|
953
1414
|
"source",
|
|
954
1415
|
"ui-loaded",
|
|
955
1416
|
"loaded",
|
|
@@ -957,9 +1418,10 @@ var yt = q, bt = new Set(b.attributes.map((e) => e.name).filter((e) => ![
|
|
|
957
1418
|
"sourceCrossOrigin",
|
|
958
1419
|
"sourceFileProtocol",
|
|
959
1420
|
"sourceRenderError"
|
|
960
|
-
],
|
|
961
|
-
...
|
|
1421
|
+
], Nn = {
|
|
1422
|
+
...S,
|
|
962
1423
|
tag: "ui-property-group",
|
|
1424
|
+
icon: "layer group",
|
|
963
1425
|
topics: ["forms", "layout"],
|
|
964
1426
|
aka: [
|
|
965
1427
|
"property group",
|
|
@@ -1000,8 +1462,21 @@ var yt = q, bt = new Set(b.attributes.map((e) => e.name).filter((e) => ![
|
|
|
1000
1462
|
group: "form",
|
|
1001
1463
|
kind: "string",
|
|
1002
1464
|
description: "An error under the title, and the `error` state."
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
name: "columns",
|
|
1468
|
+
group: "layout",
|
|
1469
|
+
kind: "number",
|
|
1470
|
+
description: "How many columns its properties lay out on (a short one takes one, the rest a whole row). None: its editor's (2 when the editor is `compact`)."
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
name: "flags",
|
|
1474
|
+
group: "appearance",
|
|
1475
|
+
kind: "valueOnly",
|
|
1476
|
+
values: ["pills", "checkboxes"],
|
|
1477
|
+
description: "Its yes-or-no properties: `pills`, every run of them one select of pills; `checkboxes`, never. None: three or more side by side are pills, fewer stay checkboxes."
|
|
1003
1478
|
}
|
|
1004
|
-
], [
|
|
1479
|
+
], [S.attributes], X),
|
|
1005
1480
|
events: passThrough([{
|
|
1006
1481
|
name: "ui-invalid",
|
|
1007
1482
|
detail: "{ field: string, value: FieldValue, errors: string[], values: Record<string, FieldValue> }",
|
|
@@ -1010,18 +1485,18 @@ var yt = q, bt = new Set(b.attributes.map((e) => e.name).filter((e) => ![
|
|
|
1010
1485
|
name: "ui-saved",
|
|
1011
1486
|
detail: "{ values: Record<string, FieldValue>, originalEvent?: Event }",
|
|
1012
1487
|
description: "The editor's submit or Save passed validation (sent on each group too)."
|
|
1013
|
-
}], [
|
|
1488
|
+
}], [S.events], X),
|
|
1014
1489
|
slots: passThrough([{
|
|
1015
1490
|
name: "output",
|
|
1016
1491
|
description: "Rich output (instead of `output`)."
|
|
1017
|
-
}], [
|
|
1492
|
+
}], [S.slots]),
|
|
1018
1493
|
parts: passThrough([{
|
|
1019
1494
|
name: "output",
|
|
1020
1495
|
description: "The output."
|
|
1021
1496
|
}, {
|
|
1022
1497
|
name: "error-line",
|
|
1023
1498
|
description: "The group's own error, under its title."
|
|
1024
|
-
}], [
|
|
1499
|
+
}], [S.parts]),
|
|
1025
1500
|
states: passThrough([
|
|
1026
1501
|
{
|
|
1027
1502
|
name: "changed",
|
|
@@ -1034,12 +1509,20 @@ var yt = q, bt = new Set(b.attributes.map((e) => e.name).filter((e) => ![
|
|
|
1034
1509
|
{
|
|
1035
1510
|
name: "error",
|
|
1036
1511
|
description: "Its `error`, or a property in it failing validation."
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
name: "compact",
|
|
1515
|
+
description: "Its editor is `compact`: a tight band."
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
name: "grid",
|
|
1519
|
+
description: "Its properties lay out on columns (`columns`, or its editor's)."
|
|
1037
1520
|
}
|
|
1038
|
-
], [
|
|
1039
|
-
texts: passThrough([], [
|
|
1040
|
-
},
|
|
1521
|
+
], [S.states], X),
|
|
1522
|
+
texts: passThrough([], [S.texts], X)
|
|
1523
|
+
}, Pn = "@layer ui.components.property-group.content{.output{color:var(--ui-text-muted);font-family:var(--ui-font-family-mono);font-variant-numeric:tabular-nums;margin-inline-start:.5em;font-size:.92em}.error-line{color:var(--ui-negative-text);margin:0 0 .75em;font-size:.85714em}}@layer ui.components.property-group.variations{:host{grid-column:1/-1}:host(:state(grid)) .section>.content{--_property-editor-field-width:auto;grid-template-columns:repeat(var(--_property-editor-columns,1), minmax(0, 1fr));row-gap:0;column-gap:var(--_ui-property-editor-column-gap,var(--ui-form-gutter,1em));align-items:start;display:grid}:host(:state(grid)) .section>.content>:not(slot){grid-column:1/-1}:host(:state(compact)) .ui.section.panel.sub{--_ui-property-editor-band-transform:var(--ui-property-editor-band-transform,none);--_ui-property-editor-band-weight:var(--ui-property-editor-band-weight,var(--ui-font-weight-bold,700));--_ui-property-editor-band-size:var(--ui-property-editor-band-size,13px);--_ui-property-editor-band-background:var(--ui-property-editor-band-background,var(--_ui-panel-subhead-background));--_ui-panel-band-space:4px;--_ui-panel-gap:var(--_ui-property-editor-row-gap,8px);--_ui-panel-outer-gap:0px}:host(:state(compact)) .ui.section.panel.sub>.content{font-size:var(--_ui-property-editor-font-size,1em);padding-block-end:var(--_ui-property-editor-row-gap,8px)}:host(:state(compact)) .ui.section.panel.sub>.title{background:var(--_ui-property-editor-band-background);padding-block:4px}:host(:state(compact)) .ui.section.panel.sub>.title>.heading,:host(:state(compact)) .ui.section.panel.sub>.title>.heading>.toggle{font-size:var(--_ui-property-editor-band-size);font-weight:var(--_ui-property-editor-band-weight);letter-spacing:0;text-transform:var(--_ui-property-editor-band-transform)}:host(:state(compact)) .ui.section.panel.sub>.title>.heading>.toggle{font-size:1em}}@layer ui.components.property-group.states{.error.section>.title{color:var(--ui-negative-text)}.info.section>.title{color:var(--ui-info-text,var(--ui-blue-text))}.success.section>.title{color:var(--ui-positive-text)}.warning.section>.title{color:var(--ui-warning-text,var(--ui-yellow-text))}}", Fn = /* @__PURE__ */ j("<span><slot>"), In = /* @__PURE__ */ j("<div role=alert>"), Ln, Rn, zn, Bn, Vn, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Z, Xn, Zn, Qn, DOMPropertyGroupElement = class extends n {
|
|
1041
1524
|
static {
|
|
1042
|
-
|
|
1525
|
+
e(this, "DOMPropertyGroupElement");
|
|
1043
1526
|
}
|
|
1044
1527
|
markFieldFailed(e, t) {
|
|
1045
1528
|
this.component?.markFieldFailed(e, t);
|
|
@@ -1048,9 +1531,9 @@ var yt = q, bt = new Set(b.attributes.map((e) => e.name).filter((e) => ![
|
|
|
1048
1531
|
let t = this.component;
|
|
1049
1532
|
t && (t.isChanged = e);
|
|
1050
1533
|
}
|
|
1051
|
-
}, Q = class _UIPropertyGroup extends (
|
|
1534
|
+
}, Q = class _UIPropertyGroup extends (Yn = me, Jn = [oe], qn = [se], Kn = [h], Gn = [g], Wn = [p("property-group")], Un = [p("error")], Hn = [p("changed"), h], Vn = [h], Bn = [le], zn = [p("compact")], Rn = [p("grid")], Ln = [p("readonly")], Yn) {
|
|
1052
1535
|
constructor() {
|
|
1053
|
-
super(...arguments),
|
|
1536
|
+
super(...arguments), l(Z, 5, this), d(this, Xn, l(Z, 8, this, /* @__PURE__ */ new Set())), l(Z, 11, this), d(this, Zn, l(Z, 12, this, !1)), l(Z, 15, this), d(this, Qn, l(Z, 16, this)), l(Z, 19, this);
|
|
1054
1537
|
}
|
|
1055
1538
|
markFieldFailed(e, t) {
|
|
1056
1539
|
if (this.failedFields.has(e) === t) return;
|
|
@@ -1061,30 +1544,50 @@ var yt = q, bt = new Set(b.attributes.map((e) => e.name).filter((e) => ![
|
|
|
1061
1544
|
return !0;
|
|
1062
1545
|
}
|
|
1063
1546
|
get isError() {
|
|
1064
|
-
return !!this.attributes.error || this.failedFields.size > 0 || this.attributes.state ===
|
|
1547
|
+
return !!this.attributes.error || this.failedFields.size > 0 || this.attributes.state === rr;
|
|
1548
|
+
}
|
|
1549
|
+
watchEditor() {
|
|
1550
|
+
return this.editor = K.editorAround(this.domElement), () => {
|
|
1551
|
+
this.editor = void 0;
|
|
1552
|
+
};
|
|
1553
|
+
}
|
|
1554
|
+
get isCompact() {
|
|
1555
|
+
return !!this.editor?.isCompact;
|
|
1556
|
+
}
|
|
1557
|
+
get columnCount() {
|
|
1558
|
+
return yn.columnsFrom(this.attributes.columns) ?? this.editor?.columnCount ?? 1;
|
|
1559
|
+
}
|
|
1560
|
+
get isGrid() {
|
|
1561
|
+
return this.columnCount > 1 || !!this.editor?.isGrid;
|
|
1562
|
+
}
|
|
1563
|
+
get contentStyle() {
|
|
1564
|
+
return {
|
|
1565
|
+
...super.contentStyle,
|
|
1566
|
+
[Sn]: String(this.columnCount)
|
|
1567
|
+
};
|
|
1065
1568
|
}
|
|
1066
1569
|
get isReadOnly() {
|
|
1067
1570
|
let e = this.attributes.readonly;
|
|
1068
1571
|
return e != null && e !== "false";
|
|
1069
1572
|
}
|
|
1070
1573
|
get extraClass() {
|
|
1071
|
-
let e = this.isError ?
|
|
1574
|
+
let e = this.isError ? rr : this.attributes.state ?? void 0, t = this.enclosingSection instanceof me ? void 0 : tr;
|
|
1072
1575
|
return [.../* @__PURE__ */ new Set([
|
|
1073
1576
|
...(super.extraClass ?? "").split(" "),
|
|
1074
|
-
|
|
1577
|
+
er,
|
|
1075
1578
|
t,
|
|
1076
|
-
|
|
1579
|
+
nr,
|
|
1077
1580
|
e
|
|
1078
1581
|
])].filter(Boolean).join(" ");
|
|
1079
1582
|
}
|
|
1080
1583
|
titleBarEnd() {
|
|
1081
1584
|
let e = this.attributes.output, t = this;
|
|
1082
|
-
return T(
|
|
1585
|
+
return T(C, {
|
|
1083
1586
|
get when() {
|
|
1084
1587
|
return e || t.slots.hasContent($);
|
|
1085
1588
|
},
|
|
1086
1589
|
get children() {
|
|
1087
|
-
var t =
|
|
1590
|
+
var t = Fn(), n = t.firstChild;
|
|
1088
1591
|
return A(t, "part", $), A(n, "name", $), n._$owner = D(), O(n, e), E(() => k($), (e, n) => {
|
|
1089
1592
|
w(t, e, n);
|
|
1090
1593
|
}), t;
|
|
@@ -1093,27 +1596,27 @@ var yt = q, bt = new Set(b.attributes.map((e) => e.name).filter((e) => ![
|
|
|
1093
1596
|
}
|
|
1094
1597
|
contentStart() {
|
|
1095
1598
|
let e = this.attributes.error;
|
|
1096
|
-
return T(
|
|
1599
|
+
return T(C, {
|
|
1097
1600
|
when: e,
|
|
1098
1601
|
get children() {
|
|
1099
|
-
var t =
|
|
1100
|
-
return A(t, "part",
|
|
1602
|
+
var t = In();
|
|
1603
|
+
return A(t, "part", ir), O(t, e), E(() => k(ir), (e, n) => {
|
|
1101
1604
|
w(t, e, n);
|
|
1102
1605
|
}), t;
|
|
1103
1606
|
}
|
|
1104
1607
|
});
|
|
1105
1608
|
}
|
|
1106
1609
|
};
|
|
1107
|
-
Z =
|
|
1610
|
+
Z = _(Yn), Xn = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), a(Z, 4, "failedFields", Kn, Q, Xn), a(Z, 1, "markFieldFailed", Gn, Q), a(Z, 2, "isPropertyGroup", Wn, Q), a(Z, 2, "isError", Un, Q), a(Z, 4, "isChanged", Hn, Q, Zn), a(Z, 4, "editor", Vn, Q, Qn), a(Z, 1, "watchEditor", Bn, Q), a(Z, 2, "isCompact", zn, Q), a(Z, 2, "isGrid", Rn, Q), a(Z, 2, "isReadOnly", Ln, Q), a(Z, 13, "vocabulary", Jn, Q), a(Z, 13, "elementSetup", qn, Q), s(Z, Q), e(Q, "UIPropertyGroup"), r(Q, "vocabulary", l(Z, 20, Q, Nn)), l(Z, 23, Q), r(Q, "elementSetup", l(Z, 24, Q, {
|
|
1108
1611
|
styleSheets: {
|
|
1109
|
-
...
|
|
1110
|
-
group:
|
|
1612
|
+
...me.prototype.elementSetup.styleSheets,
|
|
1613
|
+
group: Pn
|
|
1111
1614
|
},
|
|
1112
1615
|
DOMElement: DOMPropertyGroupElement
|
|
1113
|
-
})),
|
|
1114
|
-
var
|
|
1115
|
-
|
|
1616
|
+
})), l(Z, 27, Q);
|
|
1617
|
+
var $n = Q, er = "sub", tr = "loose", nr = "property-group", rr = "error", $ = "output", ir = "error-line";
|
|
1618
|
+
yn.define(), $n.define(), K.define();
|
|
1116
1619
|
//#endregion
|
|
1117
|
-
export { DOMPropertyEditorElement,
|
|
1620
|
+
export { DOMPropertyEditorElement, At as DOMPropertyElement, DOMPropertyGroupElement, K as UIProperty, yn as UIPropertyEditor, $n as UIPropertyGroup };
|
|
1118
1621
|
|
|
1119
1622
|
//# sourceMappingURL=ui-property-editor.js.map
|