spell-ui 0.8.9 → 0.8.10
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 +9 -3
- package/README-frameworks.md +5 -5
- package/README-migrating.md +2 -2
- package/README.md +5 -5
- package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
- package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
- package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
- package/dist/Dragging-B93hbRxF.js.map +1 -0
- package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
- package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
- package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
- package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
- package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
- package/dist/PrefStore-Di83C0bY.js.map +1 -0
- package/dist/ScrollingRow-DkOtx2QK.js +89 -0
- package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
- package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
- package/dist/SitePages-B3zd5Zgu.js.map +1 -0
- package/dist/SlottedItems-DWfAZYqM.js +88 -0
- package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
- package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
- package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
- package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
- package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
- package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
- package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
- package/dist/UIButton-BmIiXYDC.js +5 -0
- package/dist/UIButton-BmIiXYDC.js.map +1 -0
- package/dist/UIGrid-2ZUA1YEc.js +200 -0
- package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
- package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
- package/dist/UIInput-B3K0w4ow.js.map +1 -0
- package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
- package/dist/UIKeys-DmXvyJuU.js.map +1 -0
- package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
- package/dist/UILabel-pCjKxQlQ.js.map +1 -0
- package/dist/UIMenu-CqURPocK.js +42 -0
- package/dist/UIMenu-CqURPocK.js.map +1 -0
- package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
- package/dist/UIRuntime-BXutHphM.js.map +1 -0
- package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
- package/dist/UISegment-BF4Tgy2D.js.map +1 -0
- package/dist/_spell-element/UIComponent.d.ts +8 -0
- package/dist/_spell-element/vocabulary.types.d.ts +20 -2
- package/dist/_util/Dragging.d.ts +14 -2
- package/dist/_util/dom.d.ts +12 -8
- package/dist/_util/measures/Dimension.d.ts +1 -1
- package/dist/_util/persist/PrefStore.d.ts +7 -2
- package/dist/_util/persist/persist.types.d.ts +6 -0
- package/dist/_util/platform.d.ts +54 -0
- package/dist/_util/string.d.ts +25 -0
- package/dist/api.js +2 -3
- package/dist/api.js.map +1 -1
- package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
- package/dist/apple.palette-YLjENwUt.js.map +1 -0
- package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
- package/dist/classic-BHyJFvQa.js.map +1 -0
- package/dist/components/ComponentDefinitions.d.ts +55 -8
- package/dist/components/components.es.d.ts +2 -1
- package/dist/components/components.planned.d.ts +1 -1
- package/dist/components/components.types.d.ts +22 -0
- 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.d.ts +38 -1
- package/dist/components/ui-action/UIAction.en.d.ts +17 -8
- package/dist/components/ui-action/UIAction.es.d.ts +1 -0
- 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-app-menu/UIAppMenu.d.ts +41 -0
- package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
- package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
- package/dist/components/ui-app-menu/index.d.ts +2 -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 +5 -4
- package/dist/components/ui-button/UIButton.en.d.ts +4 -3
- package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
- package/dist/components/ui-button/UIButton.types.d.ts +1 -1
- package/dist/components/ui-button/UIButtons.d.ts +7 -5
- package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
- package/dist/components/ui-button/UIButtons.es.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 +1 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
- package/dist/components/ui-card/UICard.d.ts +1 -0
- package/dist/components/ui-card/UICard.en.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +1 -0
- package/dist/components/ui-card/UICards.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
- package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
- package/dist/components/ui-code/UICode.d.ts +12 -1
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-code/UICode.types.d.ts +9 -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/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +54 -1
- package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-device/UIDevice.d.ts +234 -0
- package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
- package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
- package/dist/components/ui-device/index.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
- package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
- package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -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 +1 -0
- 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/UIField.d.ts +11 -4
- package/dist/components/ui-form/UIField.en.d.ts +3 -2
- 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 +1 -0
- package/dist/components/ui-form/UIForm.en.d.ts +1 -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-grid/UIColumn.d.ts +4 -3
- package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
- 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 +1 -0
- package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
- 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 +5 -1
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
- package/dist/components/ui-image/UIImage.d.ts +1 -0
- package/dist/components/ui-image/UIImage.en.d.ts +1 -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/UIInput.d.ts +1 -0
- package/dist/components/ui-input/UIInput.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
- package/dist/components/ui-item/UIItem.d.ts +19 -8
- package/dist/components/ui-item/UIItem.en.d.ts +2 -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/UIJson.d.ts +1 -0
- package/dist/components/ui-json/UIJson.en.d.ts +1 -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 +3 -2
- package/dist/components/ui-label/UILabel.en.d.ts +3 -2
- 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 +1 -0
- package/dist/components/ui-list/UIList.en.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 +7 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
- package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
- package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
- package/dist/components/ui-menu/TitleFit.d.ts +16 -1
- package/dist/components/ui-menu/UIMenu.d.ts +112 -9
- package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
- package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
- package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
- package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
- package/dist/components/ui-menu/index.d.ts +3 -1
- package/dist/components/ui-message/UIMessage.d.ts +3 -2
- package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
- package/dist/components/ui-modal/ModalDialogs.d.ts +36 -2
- 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 +1 -0
- package/dist/components/ui-page/UIPage.en.d.ts +1 -0
- package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
- package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
- package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
- package/dist/components/ui-page-layout/index.d.ts +1 -0
- package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
- package/dist/components/ui-panel/UIPanel.d.ts +21 -2
- package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
- 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 +11 -2
- package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
- 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 +4 -3
- package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
- 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 +18 -5
- 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 +21 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +3 -2
- package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
- package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
- package/dist/components/ui-property-editor/UIPropertyGroup.en.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 +4 -3
- package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
- package/dist/components/ui-rating/UIRating.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -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.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +1 -0
- package/dist/components/ui-search/UISearch.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
- package/dist/components/ui-section/UISection.d.ts +3 -2
- package/dist/components/ui-section/UISection.en.d.ts +3 -2
- 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 +9 -10
- package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
- 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 +1 -0
- package/dist/components/ui-select/UISelect.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +1 -0
- package/dist/components/ui-shape/UISide.en.d.ts +1 -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 +1 -0
- package/dist/components/ui-sides/UISides.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
- package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
- package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
- package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
- package/dist/components/ui-site-nav-button/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -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 +43 -7
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
- package/dist/components/ui-stack/UIStack.d.ts +1 -0
- package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
- 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 +3 -2
- package/dist/components/ui-step/UISteps.en.d.ts +3 -2
- package/dist/components/ui-sticky/UISticky.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +3 -2
- package/dist/components/ui-tab/UITab.en.d.ts +4 -3
- package/dist/components/ui-tab/UITabs.d.ts +5 -4
- package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
- package/dist/components/ui-table/TableGrammar.d.ts +2 -2
- 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 +7 -6
- package/dist/components/ui-table/UITable.en.d.ts +7 -6
- 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 +1 -0
- package/dist/components/ui-text/UILink.en.d.ts +1 -0
- package/dist/components/ui-text/UIText.d.ts +2 -1
- package/dist/components/ui-text/UIText.en.d.ts +2 -1
- package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -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 +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
- 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/UIThemeMenu.d.ts +37 -15
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
- 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 +134 -1
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -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 +102 -2
- package/dist/components/ui-tree/UITree.en.d.ts +14 -1
- package/dist/components/ui-tree/UITree.es.d.ts +3 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
- package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
- package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
- 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-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
- package/dist/components.es-DEa8Ep42.js.map +1 -0
- package/dist/core.js +884 -806
- package/dist/core.js.map +1 -1
- package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
- package/dist/crisp-DIpY320U.js.map +1 -0
- package/dist/crisp.theme-Ir9p4BDC.js +5 -0
- package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
- package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
- package/dist/dark-B5s4QbmU.js.map +1 -0
- package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
- package/dist/dist-BQT4KajA.js.map +1 -0
- package/dist/docs-components/docs-components.types.d.ts +6 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
- package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
- package/dist/elements/PartComponent.d.ts +5 -0
- package/dist/elements/PopoverPanel.d.ts +12 -1
- package/dist/elements/Validator.d.ts +1 -1
- package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
- package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
- package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
- package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
- package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
- package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
- package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
- package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
- package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
- package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
- package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
- package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
- package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
- package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
- package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
- package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
- package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
- package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
- package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
- package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
- package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
- package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
- package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
- package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
- package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
- package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
- package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
- package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
- package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
- package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
- package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
- package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
- package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
- package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
- package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
- package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
- package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
- package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
- package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
- package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
- package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
- package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
- package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
- package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
- package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
- package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
- package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
- package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
- package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
- package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
- package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
- package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
- package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
- package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
- package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
- package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
- package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
- package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
- package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
- package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
- package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
- package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
- package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
- package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
- package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
- package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
- package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
- package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
- package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
- package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
- package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
- package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
- package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
- package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
- package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
- package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
- package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
- package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
- package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
- package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
- package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
- package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
- package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
- package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
- package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
- package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
- package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
- package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
- package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
- package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
- package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
- package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
- package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
- package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
- package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
- package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
- package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
- package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
- package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
- package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
- package/dist/forms.js +65 -75
- package/dist/forms.js.map +1 -1
- package/dist/fruity-CsfZNeXb.js +5 -0
- package/dist/fruity-CsfZNeXb.js.map +1 -0
- package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
- package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
- package/dist/glass-BCK30hpe.js +5 -0
- package/dist/glass-BCK30hpe.js.map +1 -0
- package/dist/glass.theme-C7QSRB7b.js +5 -0
- package/dist/glass.theme-C7QSRB7b.js.map +1 -0
- package/dist/hot.js +18 -32
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +95 -90
- package/dist/jsx.d.ts +3865 -711
- package/dist/matrix-DEnqBfwC.js +5 -0
- package/dist/matrix-DEnqBfwC.js.map +1 -0
- package/dist/matrix.theme-YV6_nvXv.js +5 -0
- package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
- package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
- package/dist/merlot-DFa6kDbA.js.map +1 -0
- package/dist/merlot.theme-B1K8nn2u.js +5 -0
- package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
- package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
- package/dist/midnight-q0-3-V6U.js.map +1 -0
- package/dist/midnight.theme-C7M02wTD.js +5 -0
- package/dist/midnight.theme-C7M02wTD.js.map +1 -0
- package/dist/mockup-D0vovNO7.js +5 -0
- package/dist/mockup-D0vovNO7.js.map +1 -0
- package/dist/mockup.theme-C92r9NI0.js +5 -0
- package/dist/mockup.theme-C92r9NI0.js.map +1 -0
- package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
- package/dist/paper-DPxolmdy.js.map +1 -0
- package/dist/paper.theme-BAKk3DY1.js +5 -0
- package/dist/paper.theme-BAKk3DY1.js.map +1 -0
- package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
- package/dist/persist.types-D7N7GewC.js.map +1 -0
- package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
- package/dist/pop-Dw_6k177.js.map +1 -0
- package/dist/pop.theme-Cw-yD0MO.js +5 -0
- package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
- package/dist/property/PropertyEditorPages.d.ts +1 -1
- package/dist/property/PropertyLayouts.d.ts +119 -0
- package/dist/property/PropertySchemas.d.ts +5 -1
- package/dist/property/index.d.ts +2 -0
- package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
- package/dist/runtime/Browser.d.ts +7 -0
- package/dist/runtime/DataTooltips.d.ts +2 -0
- package/dist/runtime/Keyboard.d.ts +4 -1
- package/dist/runtime/Toasts.d.ts +10 -0
- package/dist/runtime/runtime.types.d.ts +47 -0
- package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
- package/dist/search-C2Rq9HF1.js.map +1 -0
- package/dist/spell-CB-MivSX.js +5 -0
- package/dist/spell-CB-MivSX.js.map +1 -0
- package/dist/spell.theme-CUoc5rTq.js +5 -0
- package/dist/spell.theme-CUoc5rTq.js.map +1 -0
- package/dist/styles/StyleGenerator.d.ts +7 -0
- package/dist/styles/styles.en.d.ts +27 -18
- package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
- package/dist/styles.en-DZlSJiOR.js.map +1 -0
- package/dist/styles.js +9 -10
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
- package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
- package/dist/ui-accordion.js +59 -60
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
- package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
- package/dist/ui-action.js +73 -45
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
- package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
- package/dist/ui-ad.editor-BHTDuSii.js +5 -0
- package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
- package/dist/ui-ad.js +8 -9
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
- package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
- package/dist/ui-app-menu.js +89 -0
- package/dist/ui-app-menu.js.map +1 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
- package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
- package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
- package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
- package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
- package/dist/ui-breadcrumbs.js +18 -17
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
- package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
- package/dist/ui-button.js +157 -156
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
- package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
- package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
- package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
- package/dist/ui-calendar.js +148 -157
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.editor-BBZj9e03.js +5 -0
- package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
- package/dist/ui-card.js +70 -70
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
- package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
- package/dist/ui-checkbox.js +49 -48
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.editor-Drr_FVB6.js +5 -0
- package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
- package/dist/ui-code.js +116 -79
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
- package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
- package/dist/ui-column.editor-hdUb-qwT.js +5 -0
- package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
- package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
- package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
- package/dist/ui-comment.js +15 -14
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
- package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
- package/dist/ui-components.editor-BKFXnARt.js +5 -0
- package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
- package/dist/ui-components.js +12 -13
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.editor-CBNhNkRm.js +5 -0
- package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
- package/dist/ui-container.js +106 -21
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-content.editor-B78lxK3P.js +5 -0
- package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
- package/dist/ui-date.editor-PHEnU7QX.js +5 -0
- package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
- package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
- package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
- package/dist/ui-detail.editor-wliuVbx3.js +5 -0
- package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
- package/dist/ui-device.editor-kl48NVma.js +5 -0
- package/dist/ui-device.editor-kl48NVma.js.map +1 -0
- package/dist/ui-device.js +436 -0
- package/dist/ui-device.js.map +1 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
- package/dist/ui-diagram.js +128 -129
- package/dist/ui-diagram.js.map +1 -1
- package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
- package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
- package/dist/ui-dimension.js +111 -12
- package/dist/ui-dimension.js.map +1 -1
- package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
- package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
- package/dist/ui-dimmer.js +29 -30
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
- package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
- package/dist/ui-divider.js +9 -10
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
- package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
- package/dist/ui-dropdown.js +155 -156
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
- package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
- package/dist/ui-embed.js +23 -24
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
- package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
- package/dist/ui-emoji.js +63 -64
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-event.editor-Bk17y7wW.js +5 -0
- package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
- package/dist/ui-example.editor-D46Vnctp.js +5 -0
- package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
- package/dist/ui-example.js +67 -74
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
- package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
- package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
- package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
- package/dist/ui-feed.js +26 -25
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
- package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
- package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
- package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
- package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
- package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
- package/dist/ui-flag.js +13 -14
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
- package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
- package/dist/ui-flyout.js +10 -11
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.editor-BJC3WhNf.js +5 -0
- package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
- package/dist/ui-form.js +199 -195
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
- package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
- package/dist/ui-grid.js +43 -234
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-header.editor-meOjCASK.js +5 -0
- package/dist/ui-header.editor-meOjCASK.js.map +1 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
- package/dist/ui-icon-picker.js +64 -69
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.editor-DoKK49PD.js +5 -0
- package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
- package/dist/ui-icon.js +15 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
- package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
- package/dist/ui-image.js +26 -26
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
- package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
- package/dist/ui-include.editor-CZcsVJbH.js +5 -0
- package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
- package/dist/ui-include.js +21 -22
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.editor-budoNoB0.js +5 -0
- package/dist/ui-input.editor-budoNoB0.js.map +1 -0
- package/dist/ui-input.js +131 -130
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.editor-BlWp1HXu.js +5 -0
- package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
- package/dist/ui-item.js +127 -113
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.editor-GOul3Xss.js +5 -0
- package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
- package/dist/ui-items.js +11 -12
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.editor-BgZbrB_W.js +5 -0
- package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
- package/dist/ui-json.js +18 -19
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
- package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
- package/dist/ui-keys.js +2 -3
- package/dist/ui-label.editor-BVUYLSUs.js +5 -0
- package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
- package/dist/ui-label.js +22 -22
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-labels.editor-BWJth86p.js +5 -0
- package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
- package/dist/ui-link.editor-CpI53scP.js +5 -0
- package/dist/ui-link.editor-CpI53scP.js.map +1 -0
- package/dist/ui-list.editor-DhBZIkAa.js +5 -0
- package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
- package/dist/ui-list.js +9 -10
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
- package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
- package/dist/ui-loader.js +10 -11
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
- package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
- package/dist/ui-markdown.js +208 -154
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
- package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
- package/dist/ui-menu.js +815 -223
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.editor-vfT0pyu5.js +5 -0
- package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
- package/dist/ui-message.js +32 -33
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
- package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
- package/dist/ui-modal.editor-CkkJRgab.js +5 -0
- package/dist/ui-modal.editor-CkkJRgab.js.map +1 -0
- package/dist/ui-modal.js +132 -96
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
- package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
- package/dist/ui-nag.js +23 -24
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-or.editor-BfBLNVgm.js +5 -0
- package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
- package/dist/ui-page-layout.js +363 -0
- package/dist/ui-page-layout.js.map +1 -0
- package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
- package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
- package/dist/ui-page.js +11 -12
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
- package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
- package/dist/ui-panel.js +105 -27
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +83 -68
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
- package/dist/ui-placeholder.js +23 -19
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
- package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
- package/dist/ui-popup.js +107 -100
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
- package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
- package/dist/ui-progress.js +23 -24
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
- package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
- package/dist/ui-property-editor.js +649 -277
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
- package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
- package/dist/ui-property.editor-BC-jtjjt.js +5 -0
- package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
- package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
- package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
- package/dist/ui-quote.js +8 -9
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-radio.editor-DPzActfO.js +5 -0
- package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
- package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
- package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
- package/dist/ui-rail.js +11 -12
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.editor-C19syymj.js +5 -0
- package/dist/ui-rating.editor-C19syymj.js.map +1 -0
- package/dist/ui-rating.js +40 -49
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
- package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
- package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
- package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
- package/dist/ui-reveal.js +10 -11
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.editor-CAokPDVa.js +5 -0
- package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
- package/dist/ui-root.js +205 -102
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
- package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
- package/dist/ui-search.editor-CtzfYgNu.js +5 -0
- package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
- package/dist/ui-search.js +143 -146
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.editor-DmNICxCs.js +5 -0
- package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
- package/dist/ui-section.js +74 -73
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-sections.editor-BxXECGv9.js +5 -0
- package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
- package/dist/ui-segment.editor-CebyLPFn.js +5 -0
- package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
- package/dist/ui-segment.js +43 -43
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-segments.editor-CSumzMa5.js +5 -0
- package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
- package/dist/ui-select.editor-wAcZzvU7.js +5 -0
- package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
- package/dist/ui-select.js +86 -87
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.editor-By9-8aD2.js +5 -0
- package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
- package/dist/ui-shape.js +39 -38
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-side.editor-CFSqGHGH.js +5 -0
- package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
- package/dist/ui-sidebar.js +79 -77
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
- package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
- package/dist/ui-sides.js +25 -26
- package/dist/ui-sides.js.map +1 -1
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
- package/dist/ui-site-breadcrumbs.js +143 -0
- package/dist/ui-site-breadcrumbs.js.map +1 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
- package/dist/ui-site-nav-button.js +113 -0
- package/dist/ui-site-nav-button.js.map +1 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
- package/dist/ui-site-nav.js +133 -97
- package/dist/ui-site-nav.js.map +1 -1
- package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
- package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
- package/dist/ui-site-tabs.js +53 -48
- package/dist/ui-site-tabs.js.map +1 -1
- package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
- package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
- package/dist/ui-slider.js +37 -38
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.editor-s-XVWFBN.js +5 -0
- package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
- package/dist/ui-space.js +9 -10
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
- package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
- package/dist/ui-split-panel.js +107 -68
- package/dist/ui-split-panel.js.map +1 -1
- package/dist/ui-stack.editor-D69Fky6H.js +5 -0
- package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
- package/dist/ui-stack.js +12 -13
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
- package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
- package/dist/ui-statistic.js +28 -27
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
- package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
- package/dist/ui-step.editor-CYmNXrk_.js +5 -0
- package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
- package/dist/ui-step.js +62 -61
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
- package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
- package/dist/ui-sticky.js +10 -11
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
- package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
- package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
- package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
- package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
- package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
- package/dist/ui-tab.js +115 -117
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.editor-DJvfg9oG.js +5 -0
- package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
- package/dist/ui-table.js +272 -272
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
- package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
- package/dist/ui-term.editor-BMCF3jBM.js +5 -0
- package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
- package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
- package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
- package/dist/ui-terms.js +13 -12
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.editor-B6AENK13.js +5 -0
- package/dist/ui-text.editor-B6AENK13.js.map +1 -0
- package/dist/ui-text.js +37 -36
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
- package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
- package/dist/ui-theme-editor.js +448 -461
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
- package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
- package/dist/ui-title.editor-40PZSOpn.js +5 -0
- package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
- package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
- package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
- package/dist/ui-toast.js +125 -128
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
- package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
- package/dist/ui-toc.js +52 -53
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
- package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
- package/dist/ui-toolbar.js +254 -50
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
- package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
- package/dist/ui-transition.js +13 -14
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
- package/dist/ui-tree-diagram.js +128 -127
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
- package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
- package/dist/ui-tree.editor-BoQztwdz.js +5 -0
- package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
- package/dist/ui-tree.js +393 -134
- package/dist/ui-tree.js.map +1 -1
- package/dist/ui-value.editor-CYak24cr.js +5 -0
- package/dist/ui-value.editor-CYak24cr.js.map +1 -0
- package/dist/ui-video.editor-CuWtFVjR.js +5 -0
- package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
- package/dist/ui-video.js +15 -14
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
- package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
- package/dist/ui-visibility.js +25 -26
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
- package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
- package/dist/ui-zoom.js +82 -83
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +11 -2
- package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
- package/dist/vocabulary/help.generated.d.ts +11 -0
- package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
- package/package.json +3 -3
- package/dist/Dragging-CMZoLEWQ.js.map +0 -1
- package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
- package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
- package/dist/PrefStore-Qv0e5y04.js.map +0 -1
- package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
- package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
- package/dist/SitePages-CciwREek.js.map +0 -1
- package/dist/SlottedItems-Du3aJwG1.js +0 -80
- package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
- package/dist/UIButton-DFEds67r.js +0 -6
- package/dist/UIButton-DFEds67r.js.map +0 -1
- package/dist/UIInput-BodVbUoQ.js.map +0 -1
- package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
- package/dist/UILabel-DgJUBzB_.js.map +0 -1
- package/dist/UIMenu-zdcAtwTa.js +0 -42
- package/dist/UIMenu-zdcAtwTa.js.map +0 -1
- package/dist/UIRuntime-KH309p5B.js.map +0 -1
- package/dist/UISegment-CMMIW7cZ.js.map +0 -1
- package/dist/apple.palette-B4ivrNlM.js.map +0 -1
- package/dist/classic-DCTQrteU.js.map +0 -1
- package/dist/components.es-BOa_7gFF.js.map +0 -1
- package/dist/crisp-VfYZlTph.js.map +0 -1
- package/dist/crisp.theme-DRiePRdf.js +0 -6
- package/dist/crisp.theme-DRiePRdf.js.map +0 -1
- package/dist/dark-CbUdPe0a.js.map +0 -1
- package/dist/dist-BLYIGZVK.js.map +0 -1
- package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
- package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
- package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
- package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
- package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
- package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
- package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
- package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
- package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
- package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
- package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
- package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
- package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
- package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
- package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
- package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
- package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
- package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
- package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
- package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
- package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
- package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
- package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
- package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
- package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
- package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
- package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
- package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
- package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
- package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
- package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
- package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
- package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
- package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
- package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
- package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
- package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
- package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
- package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
- package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
- package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
- package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
- package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
- package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
- package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
- package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
- package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
- package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
- package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
- package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
- package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
- package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
- package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
- package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
- package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
- package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
- package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
- package/dist/fruity-BRVlgJZd.js +0 -6
- package/dist/fruity-BRVlgJZd.js.map +0 -1
- package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
- package/dist/glass-x9tbbwVq.js +0 -6
- package/dist/glass-x9tbbwVq.js.map +0 -1
- package/dist/glass.theme-24wY2wH9.js +0 -6
- package/dist/glass.theme-24wY2wH9.js.map +0 -1
- package/dist/matrix-QY2gWbJ0.js +0 -6
- package/dist/matrix-QY2gWbJ0.js.map +0 -1
- package/dist/matrix.theme-_8xtwhDq.js +0 -6
- package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
- package/dist/merlot-DOXLuUaU.js.map +0 -1
- package/dist/merlot.theme-S-QnNGsw.js +0 -6
- package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
- package/dist/midnight-BxlTQSfw.js.map +0 -1
- package/dist/midnight.theme-wXbqRYLy.js +0 -6
- package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
- package/dist/mockup-83ELBuVr.js +0 -6
- package/dist/mockup-83ELBuVr.js.map +0 -1
- package/dist/mockup.theme-DmpBgGBl.js +0 -6
- package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
- package/dist/paper-M61nUilz.js.map +0 -1
- package/dist/paper.theme-B8R5Jn5H.js +0 -6
- package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
- package/dist/persist.types-D2m6wD-S.js.map +0 -1
- package/dist/pop-CxXfytjk.js.map +0 -1
- package/dist/pop.theme-CXzv8B9x.js +0 -6
- package/dist/pop.theme-CXzv8B9x.js.map +0 -1
- package/dist/search-CzSzx7bX.js.map +0 -1
- package/dist/spell-By5Y3jKP.js +0 -6
- package/dist/spell-By5Y3jKP.js.map +0 -1
- package/dist/spell.theme-DxGj7qHx.js +0 -6
- package/dist/spell.theme-DxGj7qHx.js.map +0 -1
- package/dist/styles.en-CUUxNwHo.js.map +0 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
package/dist/ui-input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-input.js","names":["UIT.FormStates","UIT.FormStates","_vocabulary_dec","_a","_init","E.NativeFallback","E.proto","__name","_elementSetup_dec","_a","_init","F.FormComponent","E.proto","E.protoMerged","E.controlled","E.onChange","E.untracked","E.state","E.derived","UIT.STATIC_CONTROL","__name","<Show when={this.labelPlace === \"start\"}>{this.labelBox()}</Show>","this","<div class={this.rootClass} part={this.partForName(\"input\")}>\n <Show when={this.labelPlace === \"start\"}>{this.labelBox()}</Show>\n <Show when={this.actionPlace === \"start\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>\n <input\n ref={(element) => this.control = element}\n part={this.partForName(\"control\")}\n type={this.isPercent ? \"number\" : this.type ?? \"text\"}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete}\n inputmode={this.inputmode}\n disabled={this.isDisabled}\n readonly={this.readonly}\n aria-busy={this.loading ? \"true\" : void 0}\n {...this.constraints}\n {...this.controlAria}\n {...this.staticControl}\n onInput={this.onInput}\n onChange={this.onFileOrChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n />\n <Show when={this.hasIconBox}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <Show when={this.labelPlace === \"end\"}>{this.labelBox()}</Show>\n <Show when={this.labelPlace === \"corner\"}>\n <span\n class={this.labeled === \"left corner\" ? LEFT_CORNER_LABEL : CORNER_LABEL}\n part={this.partForName(\"label\")}\n aria-hidden=\"true\"\n >\n <span class={UIT.ICON}>\n <slot name={this.slotForName(\"label\")}>{this.cornerGlyph.svg}</slot>\n </span>\n </span>\n </Show>\n <Show when={this.actionPlace === \"end\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>\n </div>","<Show when={this.actionPlace === \"start\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>","<slot name={this.slotForName(\"action\")} />","ref={(element) => this.control = element}","<Show when={this.hasIconBox}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>","part={this.partForName(\"icon\")}","name={this.slotForName(\"icon\")}","<span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>","<Show when={this.labelPlace === \"end\"}>{this.labelBox()}</Show>","<Show when={this.labelPlace === \"corner\"}>\n <span\n class={this.labeled === \"left corner\" ? LEFT_CORNER_LABEL : CORNER_LABEL}\n part={this.partForName(\"label\")}\n aria-hidden=\"true\"\n >\n <span class={UIT.ICON}>\n <slot name={this.slotForName(\"label\")}>{this.cornerGlyph.svg}</slot>\n </span>\n </span>\n </Show>","part={this.partForName(\"label\")}","class={UIT.ICON}","name={this.slotForName(\"label\")}","<span\n class={this.labeled === \"left corner\" ? LEFT_CORNER_LABEL : CORNER_LABEL}\n part={this.partForName(\"label\")}\n aria-hidden=\"true\"\n >\n <span class={UIT.ICON}>\n <slot name={this.slotForName(\"label\")}>{this.cornerGlyph.svg}</slot>\n </span>\n </span>","<Show when={this.actionPlace === \"end\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>","part={this.partForName(\"input\")}","<span class={LABEL_CLASSES} part={this.partForName(\"label\")}>\n <slot name={this.slotForName(\"label\")}>{this.label ?? (this.isPercent ? PERCENT_SIGN : void 0)}</slot>\n </span>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.proto","E.protoMerged","E.state","E.SlotContent","E.IconGlyph","_$createComponent","_$getOwner","_$readShallow","UIT.ICON","_$setAttribute","__name","labelCSS","inputCSS","this","ref={(element) => this.control = element}","part={this.partForName(\"input\")}","<div class={this.rootClass} part={this.partForName(\"input\")}>\n <textarea\n ref={(element) => this.control = element}\n class={this.grow ? GROW : void 0}\n style={this.growStyle}\n part={this.partForName(\"control\")}\n rows={this.visibleRows}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete}\n disabled={this.isDisabled}\n readonly={this.readonly}\n {...this.constraints}\n {...this.controlAria}\n {...this.staticControl}\n onInput={this.onInput}\n onChange={this.onChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n />\n </div>","E.proto","E.protoMerged","E.onChange","E.untracked","_$readShallow","_$setAttribute","__name","inputCSS","STATIC_CONTROL","ICON","__name$1","FormControlAttributes","Key","__publicField","__decorateElement","__decoratorMetadata","FormStates","__runInitializers","__privateAdd","FormControlStates","__decoratorStart","UILabel_default","UIInput_default","getOwner$1","INPUT_TYPES","inputVocabulary","textareaVocabulary","LABEL_CLASSES","_degraded_dec","_vocabulary_dec$2","_a$3","_init$3","_InputFallback","NativeFallback","proto","domElement","isTextarea","common","control","value","label","labeled","extra","LABELED","root","labelBox","LABEL_PART","event","name","InputFallback","_readNativeValidity_dec","_onConstraintsChanged_dec","_validation_dec","_nativeValidity_dec","_onBlur_dec","_onFocus_dec","_onChange_dec","_syncControl_dec","_onValueChanged_dec","_value_dec","_elementSetup_dec$2","_invalidShows_dec","_a$2","_init$2","_value","_nativeValidity","_TextControl","FormComponent","protoMerged","controlled","onChange","untracked","state","derived","next","afterSolidUpdate","VALID","options","shown","own","native","rules","flags","flag","NATIVE_FLAGS","validity","message","errors","isServer","TextControl","_tmpl$$1","_tmpl$2","_tmpl$3","_tmpl$4","_files_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_files","_UIInput","SlotContent","IconGlyph","form","submitter","action","files","data","file","_self$","_el$","_el$2","_el$4","_el$7","_el$8","_el$12","_el$14","insert","createComponent","Show","_el$3","effect","_v$","spread","ref","element","_el$5","_el$6","readShallow","className","_p$","setAttribute","a","_el$9","_el$10","_el$11","LEFT_CORNER_LABEL","CORNER_LABEL","_el$13","_self$2","_el$15","_el$16","PERCENT_SIGN","t","UIInput","_tmpl$","_fitHeight_dec","_onGrowChanged_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UITextarea","style","UI","borders","\"class\"","GROW","UITextarea"],"sources":["../src/components/ui-input/UIInput.en.ts","../src/components/ui-input/UITextarea.en.ts","../src/components/ui-input/UIInput.types.ts","../src/components/ui-input/UIInput.fallback.ts","../src/components/ui-input/TextControl.ts","../src/components/ui-input/UIInput.tsx","../src/components/ui-input/UITextarea.tsx","../src/components/ui-input/index.ts"],"sourcesContent":["/**\n * Every name `<ui-input>` and `<ui-textarea>` use: tags, attributes (kind + allowed values), events, slots, parts,\n * states, texts. Schema: `ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-input icon=\"search\" icon-position=\"left\" labeled=\"right\" size=\"small\">` =>\n * `ui small left icon right labeled input`. The element adds `icon` (no position), `labeled` / `action` (a\n * slotted label or action without the attribute) and `file` (`type=\"file\"`) itself.\n * - `state` is `kind: \"valueOnly\"`: it emits its value alone (`ui error input`), a remap in `colors.css`.\n * - `value` does NOT reflect: like a native `<input>`, the ATTRIBUTE is the starting (and reset) value and the\n * PROPERTY the live one -- a password never lands in the DOM.\n * - Constraint attributes (`required`, `pattern`, `min` ...) go to the inner native control,\n * whose validity merges with the Fomantic `rules` property's.\n */\n\n// pure data (vocabularies / types) never import `spell/ui/core` by value: it loads the element layer,\n// which node can't (`yarn site:data` / `yarn gen:root` import every vocabulary through tsx: no `?inline` css, no JSX)\nimport * as UIT from \"spell/ui/components/components.types\"\nimport type { ComponentVocabulary } from \"spell/ui/vocabulary\"\n\n/** Input types passed through to the inner `<input>`. */\nconst INPUT_TYPES = [\n \"text\",\n \"password\",\n \"email\",\n \"number\",\n \"search\",\n \"url\",\n \"tel\",\n \"date\",\n \"datetime-local\",\n \"time\",\n \"month\",\n \"week\",\n \"color\",\n \"file\",\n \"percent\"\n] as const\n\n/****************\n * ### `<ui-input>`\n * A text field: `<div class=\"ui … input\" part=\"input\">` around a native `<input part=\"control\">`,\n * with an optional icon, label and action buttons.\n ****************/\nexport const inputVocabulary = {\n tag: \"ui-input\",\n icon: \"i cursor\",\n snippet: '<ui-input placeholder=\"Type here\"></ui-input>',\n formControl: true,\n topics: [\"forms\", \"inputs\", \"controls\", \"text\", \"basic\", \"elements\"],\n aka: [\"text field\", \"text box\", \"textbox\", \"input field\", \"search box\"],\n skeleton: \"inline 14 x 2.5\",\n noun: \"input\",\n description: \"An input is a field used to elicit a response from a person.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Hue of a `file` input's choose-file button (Fomantic colours only file inputs).\"\n },\n {\n name: \"state\",\n group: \"form\",\n kind: \"valueOnly\",\n values: UIT.FormStates,\n description: \"Form state, tinting the box, text and placeholder.\"\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"transparent\"],\n classes: {},\n replaces: [{ from: \"transparent\", value: \"transparent\" }],\n description: \"`transparent`: no box, text only, e.g. inside a menu or header. Old name: `transparent`.\"\n },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Busy: the icon becomes a spinner (with or without `icon`).\"\n },\n {\n name: \"disabled\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Can't be used; dimmed, left out of the form.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds.\" },\n {\n ...UIT.FormControlAttributes.readonly,\n description: \"Shows its value but can't be edited; submitted with the form (unlike `disabled`).\"\n },\n {\n name: \"icon-position\",\n group: \"content\",\n kind: \"valueAndKey\",\n key: \"icon\",\n values: [\"left\"],\n description: \"`left` puts the icon at the start (`left icon`); default the end.\"\n },\n {\n name: \"labeled\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"right\", \"corner\", \"left corner\"],\n description:\n \"Where the label sits: bare => before the field, `right` => after it, `corner` / `left corner` => folded \" +\n \"over a corner. Implied (bare) by a `label` shorthand or slot.\"\n },\n {\n name: \"action\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"left\"],\n description:\n \"Joined buttons (slot `action`): bare => after the field, `left` => before it. Implied by the slot.\"\n },\n {\n name: \"icon\",\n group: \"content\",\n kind: \"icon\",\n description: \"Icon name, drawn inside the field; the root gets `icon`.\"\n },\n {\n name: \"label\",\n group: \"name\",\n kind: \"string\",\n description:\n 'Label text, joined to the field; an ICON name with `labeled=\"corner\"` / `\"left corner\"`; the `label` slot is the rich version.'\n },\n {\n name: \"type\",\n group: \"appearance\",\n kind: \"enum\",\n values: INPUT_TYPES,\n default: \"text\",\n description:\n \"Native input type; `file` also adds the `file` class. `percent` is a number field for a part of a whole: \" +\n \"its value the fraction (`0.18`), shown as `18` with a `%` label at its end.\"\n },\n {\n name: \"value\",\n group: \"form\",\n kind: \"string\",\n reflect: false,\n description:\n \"Value. Attribute: the starting (and reset) value; property: the live value, like a native input.\"\n },\n UIT.FormControlAttributes.name,\n UIT.FormControlAttributes.parameter,\n UIT.FormControlAttributes.placeholder,\n { ...UIT.FormControlAttributes.required, description: \"Constraint: must not be empty (`valueMissing`).\" },\n {\n name: \"pattern\",\n group: \"form\",\n kind: \"string\",\n description: \"Constraint: a regular expression the whole value must match.\"\n },\n { name: \"min\", group: \"form\", kind: \"string\", description: \"Constraint: lowest number / date.\" },\n { name: \"max\", group: \"form\", kind: \"string\", description: \"Constraint: highest number / date.\" },\n { name: \"step\", group: \"form\", kind: \"string\", description: \"Constraint: granularity of a number / date.\" },\n {\n name: \"minlength\",\n group: \"form\",\n kind: \"number\",\n property: \"minLength\",\n description: \"Constraint: fewest characters (checked once someone has edited it).\"\n },\n {\n name: \"maxlength\",\n group: \"form\",\n kind: \"number\",\n property: \"maxLength\",\n description: \"Constraint: most characters.\"\n },\n { name: \"multiple\", group: \"form\", kind: \"boolean\", description: \"`email` / `file`: accepts several values.\" },\n { name: \"accept\", group: \"form\", kind: \"string\", description: \"`file`: accepted file types.\" },\n {\n name: \"autocomplete\",\n group: \"form\",\n kind: \"string\",\n description: \"Autofill hint, forwarded to the native input.\"\n },\n {\n name: \"inputmode\",\n group: \"appearance\",\n kind: \"enum\",\n // Shadows `HTMLElement.inputMode` on purpose: same attribute, same meaning, forwarded to the native input\n // (a vocabulary attribute meaning something else would take another name, as `<ui-divider spacer>` did)\n property: \"inputMode\",\n values: [\"none\", \"text\", \"decimal\", \"numeric\", \"tel\", \"search\", \"email\", \"url\"],\n description:\n \"Virtual keyboard hint, forwarded to the native input. `decimal` / `numeric` also give the number look \" +\n '(right-aligned, tabular figures), as `type=\"number\"` does.'\n },\n {\n name: \"rules\",\n group: \"form\",\n kind: \"json\",\n reflect: false,\n description:\n 'Fomantic validation rules checked with the native constraints: `\"email\"`, `[\"notEmpty\", \"minLength[6]\"]` ' +\n \"or rule objects (`ValidationRule`).\"\n }\n ],\n events: [\n {\n name: \"ui-typed\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"The value changed as someone typed (every keystroke).\"\n },\n {\n name: \"ui-changed\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"Someone committed a change (blur, Enter, picking a file).\"\n }\n ],\n slots: [\n { name: \"label\", description: \"Label content (text, an icon, a `<ui-dropdown>`), inside the joined label box.\" },\n { name: \"action\", description: \"`<ui-button>`s (or a `<ui-dropdown button>`) joined to the field.\" },\n { name: \"icon\", description: \"Icon, instead of the `icon` attribute.\" }\n ],\n parts: [\n { name: \"input\", description: \"The root box.\" },\n { name: \"control\", description: \"The native `<input>`.\" },\n { name: \"label\", description: \"The joined label box.\" },\n { name: \"icon\", description: \"The icon box (the spinner while `loading`).\" }\n ],\n states: [\n UIT.FormControlStates.invalid,\n { name: \"disabled\", description: \"Can't be used.\" },\n { name: \"loading\", description: \"Busy.\" },\n { name: \"fluid\", description: \"The host is block-level (`fluid`, or inside a `<ui-field>`).\" }\n ],\n texts: []\n} as const satisfies ComponentVocabulary\n","/**\n * Every name `<ui-textarea>` uses: tag, attributes (kind + allowed values), events, parts, states. Schema:\n * `ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-textarea size=\"small\">` => `ui small input`, the `input` noun of `UIInput.css`, which it shares.\n * - `state` is `kind: \"valueOnly\"`: it emits its value alone (`ui error input`), a remap in `colors.css`.\n * - `value` does NOT reflect: like a native `<textarea>`, the ATTRIBUTE is the starting (and reset) value and the\n * PROPERTY the live one.\n * - Constraint attributes (`required`, `minlength`, `maxlength`) go to the inner native control,\n * whose validity merges with the Fomantic `rules` property's.\n */\n\n// pure data (vocabularies / types) never import `spell/ui/core` by value: it loads the element layer,\n// which node can't (`yarn site:data` / `yarn gen:root` import every vocabulary through tsx: no `?inline` css, no JSX)\nimport * as UIT from \"spell/ui/components/components.types\"\nimport type { ComponentVocabulary } from \"spell/ui/vocabulary\"\n\n/****************\n * ### `<ui-textarea>`\n * A multi-line field: `<div class=\"ui … input\" part=\"input\">` around a native `<textarea part=\"control\">`.\n * - Shares `UIInput.css` (Fomantic styles `textarea` inside `.ui.input` and `.ui.form`), hence the `input` noun.\n ****************/\nexport const textareaVocabulary = {\n tag: \"ui-textarea\",\n icon: \"align left\",\n formControl: true,\n topics: [\"forms\", \"inputs\", \"text\", \"elements\"],\n aka: [\"multiline\", \"text area\", \"memo\", \"comment box\"],\n skeleton: \"20 x 6\",\n noun: \"input\",\n description: \"A textarea is a multi-line field used to elicit a longer response.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"state\",\n group: \"form\",\n kind: \"valueOnly\",\n values: UIT.FormStates,\n description: \"Form state, tinting the box, text and placeholder.\"\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"transparent\"],\n classes: {},\n replaces: [{ from: \"transparent\", value: \"transparent\" }],\n description: \"`transparent`: no box, text only. Old name: `transparent`.\"\n },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\n {\n name: \"disabled\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Can't be used; dimmed, left out of the form.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds.\" },\n { ...UIT.FormControlAttributes.readonly, description: \"Shows its value but can't be edited; still submitted.\" },\n {\n name: \"value\",\n group: \"form\",\n kind: \"string\",\n reflect: false,\n description: \"Value. Attribute: the starting (and reset) value; property: the live value.\"\n },\n UIT.FormControlAttributes.name,\n UIT.FormControlAttributes.parameter,\n UIT.FormControlAttributes.placeholder,\n { ...UIT.FormControlAttributes.required, description: \"Constraint: must not be empty (`valueMissing`).\" },\n {\n name: \"minlength\",\n group: \"form\",\n kind: \"number\",\n property: \"minLength\",\n description: \"Constraint: fewest characters (checked once someone has edited it).\"\n },\n {\n name: \"maxlength\",\n group: \"form\",\n kind: \"number\",\n property: \"maxLength\",\n description: \"Constraint: most characters.\"\n },\n {\n name: \"rows\",\n group: \"content\",\n kind: \"number\",\n description:\n \"Visible lines; without it the field is Fomantic's form height (12em, 8em ... 24em). With `grow`: the \" +\n \"lines it starts at, one without it.\"\n },\n {\n name: \"grow\",\n group: \"layout\",\n kind: \"boolean\",\n description:\n \"Grows with its text (epic `ui-gaps` P14): `rows` lines to start (one without it), taller as the text \" +\n 'wraps, up to `max-rows`, then it scrolls; shorter again as text goes. Opt in: every \"tell me more\" ' +\n \"field should.\"\n },\n {\n name: \"max-rows\",\n group: \"layout\",\n kind: \"number\",\n min: 1,\n description:\n \"With `grow`: the most lines it grows to before it scrolls; without it, a third of the window \" +\n \"(`--ui-input-textarea-grow-max-height`).\"\n },\n {\n name: \"send-on-enter\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"As a chat app's box (epic `atmosphere` T61): Enter sends what's typed (`ui-send`), Shift-Enter types a new \" +\n \"line. Nothing is sent while it's empty or only spaces.\"\n },\n {\n name: \"autocomplete\",\n group: \"form\",\n kind: \"string\",\n description: \"Autofill hint, forwarded to the native textarea.\"\n },\n {\n name: \"rules\",\n group: \"form\",\n kind: \"json\",\n reflect: false,\n description: \"Fomantic validation rules checked with the native constraints (`ValidationRule`s).\"\n }\n ],\n events: [\n {\n name: \"ui-typed\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"The value changed as someone typed (every keystroke).\"\n },\n {\n name: \"ui-changed\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"Someone committed a change (blur).\"\n },\n {\n name: \"ui-send\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"With `send-on-enter`: Enter was pressed, with text to send.\"\n }\n ],\n slots: [],\n parts: [\n { name: \"input\", description: \"The root box.\" },\n { name: \"control\", description: \"The native `<textarea>`.\" }\n ],\n states: [\n UIT.FormControlStates.invalid,\n { name: \"disabled\", description: \"Can't be used.\" },\n { name: \"fluid\", description: \"The host is block-level (`fluid`, or inside a `<ui-field>`).\" }\n ],\n texts: []\n} as const satisfies ComponentVocabulary\n","/**\n * Constants and types of the `ui-input` family: what its components (`TextControl`, `UIInput`, `UITextarea`)\n * and its native fallback share.\n * - Pure data: it imports only the vocabulary's TYPE, so node can load it (`yarn site:data`).\n */\n\nimport type { inputVocabulary } from \"./UIInput.en\"\n\n////////////////\n// ## Types\n////////////////\n\n/** The vocabulary's type, for short. */\nexport type Vocabulary = typeof inputVocabulary\n\n/**\n * The vocabulary getters every text control has (`<ui-input>` and `<ui-textarea>`), typed once for `TextControl`.\n * - Not `value`: that's `TextControl`'s `@controlled` member.\n */\nexport type CommonAttributes = {\n /** the form field's name */\n name: string | undefined\n /** the hint shown while empty */\n placeholder: string | undefined\n /** the `disabled` attribute (a disabled fieldset is `formIsDisabled`) */\n disabled: boolean\n /** shows its value, which can't be edited */\n readonly: boolean\n /** takes the full width */\n fluid: boolean\n /** busy: `<ui-input>` only */\n loading?: boolean\n /** Fomantic validation rules, as set: one rule, a list, or nothing (`TextControl.validationRules`) */\n rules: unknown\n}\n\n/** Where a `<ui-input>`'s joined label sits. */\nexport type LabelPlace = \"start\" | \"end\" | \"corner\"\n\n////////////////\n// ## Class words\n////////////////\n\n/** The class words of a joined label (`UIInput.css`). */\nexport const LABEL_CLASSES = \"ui label\"\n","import { E } from \"spell/ui/core\"\nimport { inputVocabulary } from \"./UIInput.en\"\nimport { textareaVocabulary } from \"./UITextarea.en\"\nimport { LABEL_CLASSES, type Vocabulary } from \"./UIInput.types\"\n\n/****************\n * ### `InputFallback`\n * The native fallback of `<ui-input>` and `<ui-textarea>`: what they show when their component breaks,\n * so the field's value is still typed in, validated and submitted with its form.\n *\n * - Its shadow DOM: `<div part=\"input\" class=\"ui … input\">` around a native `<input part=\"control\">`\n * (a `<textarea>` for `<ui-textarea>`), with the `label` shorthand as a joined label.\n * - Still a form control. Every `input` event:\n * - sets `domElement.value`, and the DOM element's form value\n * - copies the native control's validity onto the DOM element (`setValidity(..., control)`)\n * - sends a composed `ui-input`; `change` sends `ui-changed`.\n * - Its starting value is the DOM element's `value` PROPERTY, else its attribute.\n * - Its accessible name is the DOM element's `aria-label`, else `placeholder`.\n ****************/\nexport class InputFallback extends E.NativeFallback<Vocabulary> {\n @E.proto static vocabulary = inputVocabulary\n @E.proto static degraded = [\n \"`icon` glyph and the `icon` / `label` / `action` slots\",\n \"corner labels\",\n \"`rules` (only the native constraints validate)\",\n \"`:state(invalid)`, form reset of the value, implicit (Enter) submission\",\n \"labels from `<label for>` (only `aria-label` / `placeholder` name the control)\"\n ]\n\n /** The native control, once built, for `sync()`. */\n private control: HTMLInputElement | HTMLTextAreaElement | undefined\n\n protected override build() {\n const domElement = this.domElement as InputDOMElement\n const isTextarea = domElement.localName === textareaVocabulary.tag\n const common = {\n name: this.attr(\"name\"),\n placeholder: this.attr(\"placeholder\"),\n required: this.flag(\"required\"),\n disabled: this.flag(\"disabled\"),\n readonly: this.flag(\"readonly\"),\n minlength: this.attr(\"minlength\"),\n maxlength: this.attr(\"maxlength\"),\n autocomplete: this.attr(\"autocomplete\")\n }\n const control = isTextarea\n ? // `rows` is the textarea vocabulary's alone, so `attr()` (typed on the input's) can't name it\n this.create(\"textarea\", { ...common, rows: this.domElement.getAttribute(\"rows\") })\n : this.create(\"input\", {\n ...common,\n type: this.attr(\"type\") ?? \"text\",\n pattern: this.attr(\"pattern\"),\n min: this.attr(\"min\"),\n max: this.attr(\"max\"),\n step: this.attr(\"step\"),\n multiple: this.flag(\"multiple\"),\n accept: this.attr(\"accept\"),\n inputmode: this.attr(\"inputmode\")\n })\n this.decorate(control, \"control\")\n this.nameFromPlaceholder(control)\n const value = domElement.value ?? this.attr(\"value\")\n if (value && control.type !== \"file\") control.value = value\n\n const label = isTextarea ? undefined : this.attr(\"label\")\n const labeled = this.attr(\"labeled\")\n const extra = [label && labeled === undefined ? LABELED : \"\", control.type === \"file\" ? \"file\" : \"\"]\n const root = this.create(\"div\", { class: this.classes(extra.filter(Boolean).join(\" \") || undefined) })\n const labelBox = label ? this.create(\"span\", { class: LABEL_CLASSES, part: LABEL_PART }, label) : undefined\n if (labelBox && labeled !== \"right\") root.append(labelBox)\n root.append(control)\n if (labelBox && labeled === \"right\") root.append(labelBox)\n this.decorate(root, \"input\")\n\n this.listen(control, \"input\", (event) => {\n domElement.value = control.value\n this.sync()\n this.announce(\"ui-typed\", event)\n })\n this.listen(control, \"change\", (event) => this.announce(\"ui-changed\", event))\n this.control = control\n return [root]\n }\n\n /** The control's value (a file input's: none) and validity. */\n protected override sync() {\n const { control } = this\n if (control) this.syncForm({ value: control.type === \"file\" ? undefined : control.value, control })\n }\n\n /** Send event `name` (`ui-input`, `ui-changed`) with the control's value. */\n private announce(name: E.EventName<Vocabulary>, originalEvent: Event) {\n this.send(name, { value: this.control!.value, originalEvent })\n }\n}\n\n/** What the fallback reads and writes of the DOM element: `value` is optional, the element may not have upgraded. */\ntype InputDOMElement = HTMLElement & {\n /** the live value, once set */\n value?: string\n}\n\n/** The class word of a label given only by the `label` shorthand (no `labeled`). */\nconst LABELED = \"labeled\"\n\n/** The part of the joined label. */\nconst LABEL_PART: E.PartName<Vocabulary> = \"label\"\n","import { isServer } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { F } from \"spell/ui/forms\"\nimport { type CommonAttributes } from \"./UIInput.types\"\n\n/****************\n * ### `TextControl`\n * The base component of `<ui-input>` and `<ui-textarea>`: a native `<input>` / `<textarea>` in the shadow root,\n * whose value, validity and name belong to the DOM ELEMENT.\n *\n * - `value` is controlled (`@controlled`):\n * typing sends `ui-input` first; a handler that sets `el.value` again wins (the control shows that value).\n * - The ATTRIBUTE is the starting value, which a form reset restores (as a native `defaultValue`);\n * the property doesn't reflect.\n *\n * - Validity: the NATIVE control's constraint validation (`required`, `pattern`, `type=\"email\"` ...)\n * merged with Fomantic `rules` (through `Validator`), into the DOM element's `setValidity()`:\n * the native flags and message first.\n * The native side is read again after the DOM updates (an effect's apply) and after each input event.\n *\n * - `:state(invalid)` shows only once the person has interacted (`isTouched`), as `:user-invalid` does:\n * a committed change, leaving an edited field,\n * or a submit / `reportValidity()` that found it invalid (the `invalid` event).\n * A reset clears it.\n *\n * - Its name:\n * `ControlLabels` hands the DOM element's `<label for>` / `aria-label` to the control as its `aria-label`.\n * - The DOM element's `aria-invalid` (a `<ui-form>` marks failing fields) is passed on to the control.\n ****************/\nexport abstract class TextControl<V extends E.ComponentVocabulary = E.ComponentVocabulary> extends F.FormComponent<V> {\n /** Shows `:state(invalid)` only after interaction (see the class doc). */\n @E.proto static invalidShows: E.InvalidTiming = \"once touched\"\n @E.protoMerged static elementSetup: Partial<E.ElementSetup> = { cssStates: [\"fluid\"] }\n\n /** The native control. */\n protected control?: HTMLInputElement | HTMLTextAreaElement\n\n /** Focus the native control. */\n focus(options?: FocusOptions) {\n this.control?.focus(options)\n }\n\n /** A click aimed at the DOM element itself (its `<label for>`, its `click()`) focuses the control. */\n protected activateControl() {\n this.control?.focus()\n }\n\n ////////////////\n // ## The value\n ////////////////\n\n /** `value`: set by the page, or typed in (`\"\"` to start). */\n @E.controlled(\"value\") accessor value = \"\"\n\n /** The value when the control took focus, to tell whether leaving it is an edit. */\n private valueAtFocus?: string\n\n get formValue(): E.FieldValue {\n return this.value\n }\n\n /** Back to the `value` ATTRIBUTE (native `defaultValue`). */\n onFormReset() {\n this.value = this.attributes.value ?? \"\"\n }\n\n /**\n * The value or the content changed: the control shows the new value.\n * - `isReady`: the control only exists once the content renders.\n * - Declared before `onConstraintsChanged()`: the control holds the new value before its validity is read.\n */\n @E.onChange(\"value\", \"isReady\")\n protected onValueChanged() {\n this.syncControl()\n }\n\n /** The control shows `value` again, e.g. after a cancelled `ui-input`. */\n @E.untracked\n protected syncControl() {\n const { control } = this\n const value = this.shownFor(this.value)\n // a file input's value can only be cleared from script\n if (!control || control.value === value || (control.type === \"file\" && value !== \"\")) return\n control.value = value\n }\n\n /**\n * What the control shows for `value`: the same, unless a sub-class shows it otherwise\n * (`<ui-input type=\"percent\">` shows `0.18` as `18`) -- `valueFor()` reads it back.\n */\n protected shownFor(value: string): string {\n return value\n }\n\n /** The value for what the control shows, `shown`: the same, unless a sub-class shows it otherwise (`shownFor()`). */\n protected valueFor(shown: string): string {\n return shown\n }\n\n /** Typing: `ui-input` first, then the value (unless a handler took over). */\n protected readonly onInput = (event: Event) => {\n const control = event.currentTarget as HTMLInputElement | HTMLTextAreaElement\n const next = this.valueFor(control.value)\n const applied = this.requestChange(\"value\", next, () =>\n this.send(\"ui-typed\" as never, { value: next, originalEvent: event })\n )\n if (!applied) E.afterSolidUpdate(() => this.syncControl())\n this.readNativeValidity()\n }\n\n /** Commit: `ui-changed`; the person has now interacted. */\n @E.untracked\n protected readonly onChange = (event: Event) => {\n this.isTouched = true\n this.send(\"ui-changed\" as never, { value: this.value, originalEvent: event })\n }\n\n /** Focus: remember the value, to tell an edit on the way out. */\n @E.untracked\n protected readonly onFocus = () => {\n this.valueAtFocus = this.value\n }\n\n /** Leaving an edited field counts as interaction. */\n @E.untracked\n protected readonly onBlur = () => {\n if (this.valueAtFocus !== undefined && this.valueAtFocus !== this.value) this.isTouched = true\n this.valueAtFocus = undefined\n }\n\n ////////////////\n // ## Validity\n ////////////////\n\n /** The native control's own constraint validation, re-read after updates. */\n @E.state accessor nativeValidity: E.ValidationResult = VALID\n\n /** Native validity merged with the `rules` property's, see the class doc. */\n @E.derived\n override get validation(): E.ValidationResult {\n const own = F.FormComponent.validator.validate(this.formValue, this.validationRules, {\n label: this.validationLabel,\n name: this.name\n })\n const native = this.nativeValidity\n if (native.valid) return own\n return {\n valid: false,\n errors: [...native.errors, ...own.errors],\n flags: { ...own.flags, ...native.flags },\n message: native.message || own.message\n }\n }\n\n /** The `rules` property: one rule, a list, or nothing. */\n protected get validationRules(): E.ValidationRule[] {\n const rules = this.rules\n if (rules == null || rules === \"\") return []\n return (Array.isArray(rules) ? rules : [rules]) as E.ValidationRule[]\n }\n\n protected get validationLabel(): string | undefined {\n return this.labels.accessibleName ?? this.placeholder\n }\n\n protected get validationAnchor(): HTMLElement | undefined {\n return this.control\n }\n\n /**\n * Constraint attributes the native control carries, e.g. `{ required, pattern }`; tracked.\n * - Spread onto the control, and read by `onConstraintsChanged()`.\n */\n protected abstract get constraints(): Record<string, unknown>\n\n /**\n * What the native validity depends on changed: read it again, after the DOM updates.\n * - `constraints` builds a new object on every read, so any change among them counts.\n */\n @E.onChange(\"value\", \"constraints\", \"isDisabled\", \"readonly\", \"isReady\")\n protected onConstraintsChanged() {\n this.readNativeValidity()\n }\n\n /** Copy the control's validity into `nativeValidity`. */\n @E.untracked\n protected readNativeValidity() {\n const control = this.control\n if (!control) return\n const { validity } = control\n const flags: ValidityStateFlags = {}\n for (const flag of NATIVE_FLAGS) if (validity[flag]) flags[flag] = true\n if (validity.valid) {\n if (!this.nativeValidity.valid) this.nativeValidity = VALID\n return\n }\n const message = control.validationMessage\n const errors: E.ValidationError[] = Object.keys(flags).map((flag) => ({\n type: flag,\n ruleValue: undefined,\n message,\n flag: flag as E.ValidityFlag\n }))\n this.nativeValidity = { valid: false, errors, flags, message }\n }\n\n ////////////////\n // ## Name and ARIA\n ////////////////\n\n /** The control's ARIA: its name (`labels`), and invalid (the DOM element's `aria-invalid`, or shown invalid). */\n protected get controlAria() {\n return {\n \"aria-label\": this.labels.accessibleName,\n \"aria-invalid\": this.attributes[\"aria-invalid\"] === \"true\" || this.isShownInvalid ? \"true\" : undefined\n } as const\n }\n\n /**\n * The native control's extra attributes in a server render (`spell/ui/static`).\n * - What it needs to submit without script: `name` and the starting `value`; and the `STATIC_CONTROL` mark.\n * - `{}` in a browser, where the DOM element submits (`ElementInternals`)\n * and the effects keep the control in step.\n */\n protected get staticControl(): Record<string, unknown> {\n if (!isServer) return {}\n return { [UIT.STATIC_CONTROL]: \"\", name: this.name, value: this.shownFor(this.value) || undefined }\n }\n}\n\n/** The vocabulary getters both text controls have, typed once for this base. */\nexport interface TextControl<V extends E.ComponentVocabulary = E.ComponentVocabulary> extends CommonAttributes {}\n\n/** Every Constraint Validation flag the native control may raise (not `customError`: nothing sets one there). */\nconst NATIVE_FLAGS: readonly (keyof ValidityStateFlags)[] = [\n \"valueMissing\",\n \"typeMismatch\",\n \"patternMismatch\",\n \"tooLong\",\n \"tooShort\",\n \"rangeUnderflow\",\n \"rangeOverflow\",\n \"stepMismatch\",\n \"badInput\"\n]\n\n/** A passing result. */\nconst VALID: E.ValidationResult = { valid: true, errors: [], flags: {}, message: \"\" }\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { inputVocabulary } from \"./UIInput.en\"\nimport { InputFallback } from \"./UIInput.fallback\"\nimport { TextControl } from \"./TextControl\"\nimport { LABEL_CLASSES, type CommonAttributes, type LabelPlace, type Vocabulary } from \"./UIInput.types\"\n\nimport labelCSS from \"spell/ui/components/ui-label/UILabel.css?inline\"\nimport inputCSS from \"./UIInput.css?inline\"\n\n/****************\n * ### `UIInput`\n * The component behind `<ui-input>`: a one-line text field.\n *\n * - Its shadow DOM: `<div class=\"ui … input\" part=\"input\">` around a native `<input part=\"control\">`,\n * with the optional joined label, action buttons and icon box, in the order `UIInput.css` documents.\n * - A form control (see `TextControl`): its value, native constraints + `rules`, reset, a disabled fieldset.\n * - `type` passes through to the native input.\n * `file` submits the chosen `File`s (one `FormData` entry each), and script can't set its value, as natively.\n * `percent` is ours (epic `language` P34): a number field for a part of a whole, see `isPercent`.\n * - Enter submits the form, as in a native field (\"implicit submission\"):\n * it clicks the form's first submit button, else calls `requestSubmit()`.\n * The native input can't do it itself: inside a shadow root, it belongs to no form.\n ****************/\nexport class UIInput extends TextControl<Vocabulary> {\n @E.proto static vocabulary = inputVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { label: labelCSS, input: inputCSS },\n Fallback: InputFallback,\n // `loading`: a spinner in place of its icon\n loading: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /** Which slots have light-DOM children (`label`, `action`, `icon`). */\n readonly slots = new E.SlotContent(this.domElement)\n\n ////////////////\n // ## The label\n ////////////////\n\n /** Where the joined label goes, if there is one: a percent's `%` at its end, unless it says otherwise. */\n get labelPlace(): LabelPlace | undefined {\n const { labeled } = this\n if (labeled === \"corner\" || labeled === \"left corner\") return \"corner\"\n if (!labeled && !this.label && !this.slots.hasContent(this.slotForName(\"label\"))) {\n return this.isPercent ? \"end\" : undefined\n }\n return labeled === \"right\" ? \"end\" : \"start\"\n }\n\n /** The glyph of a corner label (its `label` is an icon name). */\n readonly cornerGlyph = new E.IconGlyph({\n owner: this,\n name: () => (this.labelPlace === \"corner\" ? this.label : undefined)\n })\n\n ////////////////\n // ## The action\n ////////////////\n\n /** Where the action slot goes, if anything is in it. */\n get actionPlace(): \"start\" | \"end\" | undefined {\n const { action } = this\n if (!action && !this.slots.hasContent(this.slotForName(\"action\"))) return undefined\n return action === \"left\" ? \"start\" : \"end\"\n }\n\n ////////////////\n // ## The icon\n ////////////////\n\n /** Shows the icon box: an icon, or the spinner. */\n get hasIconBox(): boolean {\n return !!this.icon || this.slots.hasContent(this.slotForName(\"icon\")) || !!this.loading\n }\n\n /** The glyph of the `icon` attribute. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.icon })\n\n ////////////////\n // ## Percent\n ////////////////\n\n /**\n * `type=\"percent\"`: a number field for a part of a whole, kept as its fraction (epic `language` P34).\n * - Its value is the fraction, `0.18`, as Spell keeps a percent; the field shows and takes `18`, a `%` label at its end.\n * - `min`, `max` and `step` are in what it shows: `min=\"0\" step=\"1\"`.\n * - The native control is a `number` one.\n */\n get isPercent(): boolean {\n return this.type === \"percent\"\n }\n\n /** A percent shows its fraction times 100: `0.18` => `18`. */\n protected shownFor(value: string): string {\n if (!this.isPercent || value === \"\" || Number.isNaN(Number(value))) return value\n return String(Number((Number(value) * 100).toFixed(10)))\n }\n\n /** A percent's fraction, from what it shows: `18` => `0.18`. */\n protected valueFor(shown: string): string {\n if (!this.isPercent || shown === \"\" || Number.isNaN(Number(shown))) return shown\n return String(Number((Number(shown) / 100).toFixed(12)))\n }\n\n ////////////////\n // ## Files\n ////////////////\n\n /** `type=\"file\"`? */\n get isFileInput(): boolean {\n return this.type === \"file\"\n }\n\n /** Files chosen in a `file` input. */\n @E.state accessor files: readonly File[] = []\n\n /** Files submit themselves: one entry per file. */\n protected formSubmission(value: E.FieldValue, name: string | undefined): string | File | FormData | null {\n if (!this.isFileInput) return super.formSubmission(value, name)\n const files = this.files\n if (!name || !files.length) return null\n const data = new FormData()\n for (const file of files) data.append(name, file)\n return data\n }\n\n /** Also clears a file input's chosen files, which only script can. */\n onFormReset() {\n super.onFormReset()\n if (this.control && this.isFileInput) this.control.value = \"\"\n this.files = []\n }\n\n /** `change`: a file input's value and files arrive here too. */\n private readonly onFileOrChange = (event: Event) => {\n if (this.isFileInput) {\n const control = event.currentTarget as HTMLInputElement\n this.files = [...(control.files ?? [])]\n this.requestChange(\"value\", control.value, () => true)\n }\n this.onChange(event)\n }\n\n ////////////////\n // ## Classes and constraints\n ////////////////\n\n protected classValue(name: E.AttributeName<Vocabulary>): unknown {\n // a percent's own `%` is a right label\n if (name === \"labeled\")\n return this.labelPlace ? this.labeled || (this.labelPlace === \"end\" ? \"right\" : true) : false\n if (name === \"action\") return this.actionPlace ? this.action || true : false\n if (name === \"icon-position\") return this.hasIconBox ? this.iconPosition : undefined\n return super.classValue(name)\n }\n\n protected get extraClass(): string | undefined {\n const extra = [this.hasIconBox && this.iconPosition !== UIT.LEFT ? UIT.ICON : \"\", this.isFileInput ? \"file\" : \"\"]\n return extra.filter(Boolean).join(\" \") || undefined\n }\n\n protected get constraints(): Record<string, unknown> {\n return {\n required: this.required,\n pattern: this.pattern,\n min: this.min,\n max: this.max,\n step: this.step,\n minlength: this.minlength,\n maxlength: this.maxlength,\n multiple: this.multiple,\n accept: this.accept\n }\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"input\")}>\n <Show when={this.labelPlace === \"start\"}>{this.labelBox()}</Show>\n <Show when={this.actionPlace === \"start\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>\n <input\n ref={(element) => (this.control = element)}\n part={this.partForName(\"control\")}\n type={this.isPercent ? \"number\" : (this.type ?? \"text\")}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete as never}\n inputmode={this.inputmode}\n disabled={this.isDisabled}\n readonly={this.readonly}\n aria-busy={this.loading ? \"true\" : undefined}\n {...this.constraints}\n {...this.controlAria}\n {...this.staticControl}\n onInput={this.onInput}\n onChange={this.onFileOrChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n />\n <Show when={this.hasIconBox}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <Show when={this.labelPlace === \"end\"}>{this.labelBox()}</Show>\n <Show when={this.labelPlace === \"corner\"}>\n <span\n class={this.labeled === \"left corner\" ? LEFT_CORNER_LABEL : CORNER_LABEL}\n part={this.partForName(\"label\")}\n aria-hidden=\"true\"\n >\n <span class={UIT.ICON}>\n <slot name={this.slotForName(\"label\")}>{this.cornerGlyph.svg}</slot>\n </span>\n </span>\n </Show>\n <Show when={this.actionPlace === \"end\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>\n </div>\n )\n }\n\n /** The joined label box, around the `label` slot / shorthand. */\n private labelBox(): JSX.Element {\n return (\n <span class={LABEL_CLASSES} part={this.partForName(\"label\")}>\n <slot name={this.slotForName(\"label\")}>{this.label ?? (this.isPercent ? PERCENT_SIGN : undefined)}</slot>\n </span>\n )\n }\n\n ////////////////\n // ## Submitting\n ////////////////\n\n /** Enter submits the form, as a native field would. */\n private readonly onKeyDown = (event: KeyboardEvent) => {\n if (event.key !== UIT.Key.enter || event.isComposing || event.defaultPrevented) return\n const form = this.domElement.form\n if (!form) return\n event.preventDefault()\n this.isTouched = true\n const submitter = [...form.elements].find(UIInput.isSubmitter) as HTMLElement | undefined\n if (submitter) submitter.click()\n else form.requestSubmit()\n }\n\n /**\n * A form's default button:\n * a native submit button, or a `<ui-button type=\"submit\">` (form-associated, so in `form.elements`).\n * - STATIC: pure, a `find()` predicate.\n * - `instanceof` is safe here: a key handler, which the static render never reaches.\n */\n private static isSubmitter(element: Element): boolean {\n if (element instanceof HTMLButtonElement || element instanceof HTMLInputElement) {\n return element.type === \"submit\" && !element.disabled\n }\n return element.getAttribute(\"type\") === \"submit\" && !element.matches(\":disabled\")\n }\n}\n/** The vocabulary getters, typed; `TextControl` types the shared ones, and owns `value`. */\nexport interface UIInput extends Omit<E.AttributeValues<Vocabulary>, keyof CommonAttributes | \"value\"> {}\n\n/** A percent's label, when it names none (`isPercent`). */\nconst PERCENT_SIGN = \"%\"\n\n/** Class words of a `labeled=\"corner\"` label (`UIInput.css`). */\nconst CORNER_LABEL = \"ui corner label\"\n\n/** Class words of a `labeled=\"left corner\"` label. */\nconst LEFT_CORNER_LABEL = \"ui left corner label\"\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { textareaVocabulary } from \"./UITextarea.en\"\nimport { InputFallback } from \"./UIInput.fallback\"\nimport { TextControl } from \"./TextControl\"\nimport type { CommonAttributes } from \"./UIInput.types\"\n\nimport inputCSS from \"./UIInput.css?inline\"\n\n/****************\n * ### `UITextarea`\n * The component behind `<ui-textarea>`: a text field of several lines.\n *\n * - Its shadow DOM: `<div class=\"ui … input\" part=\"input\">` around a native `<textarea part=\"control\">`.\n * - A form control like `<ui-input>` (see `TextControl`); Enter types a new line, and never submits.\n * - Without `rows`, it takes the height of Fomantic's form textarea (`UIInput.css`).\n * - `grow` (epic `ui-gaps` P14; Owen's standing rule: every \"tell me more\" field grows with its text):\n * - `rows` lines to start (one without it), taller as its text wraps, up to `max-rows` lines\n * (else a third of the window), then it scrolls; shorter again as text goes\n * - the browser's own `field-sizing: content` where it has it (`UI.browser.supports.fieldSizing`);\n * elsewhere it MEASURES, on every change of its value (`fitHeight()`)\n * - NOT on a width change alone, where it measures: a field narrowed under its text keeps its height until typed in\n * - `send-on-enter` (epic `atmosphere` T61), as a chat app's box:\n * Enter sends what's typed (`ui-send`, nothing with only spaces in it); Shift-Enter types a new line.\n * Unlike a `<ui-input>`'s Enter, it submits no form: the page decides what sending is.\n ****************/\nexport class UITextarea extends TextControl<typeof textareaVocabulary> {\n @E.proto static vocabulary = textareaVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { input: inputCSS },\n Fallback: InputFallback\n } satisfies Partial<E.ElementSetup>\n\n protected get constraints(): Record<string, unknown> {\n return { required: this.required, minlength: this.minlength, maxlength: this.maxlength }\n }\n\n /** The lines it shows: `rows`; with `grow`, the lines it starts at, one without `rows`. */\n get visibleRows(): number | undefined {\n return this.grow ? (this.rows ?? 1) : this.rows\n }\n\n /** With `grow`: the lines it starts at and stops at, for its sheet. */\n get growStyle(): JSX.CSSProperties | undefined {\n if (!this.grow) return undefined\n const style: JSX.CSSProperties = { \"--_textarea-rows\": String(this.visibleRows) }\n if (this.maxRows) style[\"--_textarea-max\"] = `calc(${this.maxRows} * 1lh + var(--_textarea-chrome))`\n return style\n }\n\n /**\n * With `grow`, where the browser can't grow it (`field-sizing`): its height measured again, on every change of its\n * value and its settings.\n */\n @E.onChange(\"value\", \"isReady\", \"grow\", \"rows\", \"maxRows\")\n protected onGrowChanged() {\n this.fitHeight()\n }\n\n /**\n * As tall as its text, measured: where the browser has no `field-sizing`.\n * - Its sheet caps it (`max-rows`, or a third of the window), and keeps `rows` lines at least.\n * - SIDE EFFECT: writes the native control's inline height; takes it off again without `grow`.\n */\n @E.untracked\n protected fitHeight() {\n const control = this.control\n if (!control) return\n if (!this.grow || UI.browser.supports.fieldSizing) {\n control.style.removeProperty(\"block-size\")\n return\n }\n // the control may not show the new value yet: this effect can run before `onValueChanged()`'s\n this.syncControl()\n control.style.blockSize = \"auto\"\n const borders = control.offsetHeight - control.clientHeight\n control.style.blockSize = `${control.scrollHeight + borders}px`\n }\n\n /** With `send-on-enter`: Enter sends what's typed; Shift-Enter, or Enter while composing an accent, types as usual. */\n private readonly onKeyDown = (event: KeyboardEvent) => {\n if (!this.sendOnEnter || event.key !== UIT.Key.enter || event.shiftKey || event.isComposing) return\n event.preventDefault()\n if (this.isDisabled || this.readonly || !this.value.trim()) return\n this.send(\"ui-send\", { value: this.value, originalEvent: event })\n }\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"input\")}>\n <textarea\n ref={(element) => (this.control = element)}\n class={this.grow ? GROW : undefined}\n style={this.growStyle}\n part={this.partForName(\"control\")}\n rows={this.visibleRows}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete as never}\n disabled={this.isDisabled}\n readonly={this.readonly}\n {...this.constraints}\n {...this.controlAria}\n {...this.staticControl}\n onInput={this.onInput}\n onChange={this.onChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n />\n </div>\n )\n }\n}\n\n/** The native control's class with `grow`: its sheet's growing rules. */\nconst GROW = \"grow\"\n\n/** The vocabulary getters, typed; `TextControl` types the shared ones, and owns `value`. */\nexport interface UITextarea extends Omit<\n E.AttributeValues<typeof textareaVocabulary>,\n keyof CommonAttributes | \"value\"\n> {}\n","/**\n * The input family: defines `<ui-input>` and `<ui-textarea>`, and exports their components.\n * - Also the `input` lib entry (`spell/ui/ui-input`), measured in `notes/report.md`.\n * - SIDE EFFECT: importing it defines the tags.\n */\n\nimport { UIInput } from \"./UIInput\"\nimport { UITextarea } from \"./UITextarea\"\n\nUIInput.define()\nUITextarea.define()\n\nexport { UIInput, UITextarea }\n"],"mappings":";;;;;;;;AAoBA,IAAMsF,KAAc;CAClB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,GAOaC,KAAkB;CAC7B,KAAK;CACL,MAAM;CACN,SAAS;CACT,aAAa;CACb,QAAQ;EAAC;EAAS;EAAU;EAAY;EAAQ;EAAS;CAAU;CACnE,KAAK;EAAC;EAAc;EAAY;EAAW;EAAe;CAAY;CACtE,UAAU;CACV,MAAM;CACN,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP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EAAAyI,GAAA,GAAU,iBADVJ,IA5BWK,CAAA,GAuCX1I,EAAAyI,GAAA,GAAU,aADVL,GAtCWM,CAAA,GACF1I,EAAAyI,GAAA,IAAO,cAAhBF,IADWG,CAAA,GAEI1I,EAAAyI,GAAA,IAAO,gBAAtBH,IAFWI,CAAA,GAANzI,EAAAwI,GAAMC,CAAA,GAA0DlJ,EAAAkJ,GAAA,YAAA,GAC5D3I,EADE2I,GACK,cAAavI,EAApBsI,GAAA,GADEC,GACkB9H,EAAA,CAAA,GAApBT,EAAAsI,GAAA,IADEC,CAAA,GAEI3I,EAFJ2I,GAEW,gBAAevI,EAAtBsI,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,OAAOjJ,EAAS;CAC/B,UAAU0C;AACZ,CAAA,CAAA,GAHehC,EAAAsI,GAAA,IAFJC,CAAA;AAAN,IAAMM,KAANN,GAyFDK,KAAO;AC3Gbb,GAAQ,OAAO,GACfc,GAAW,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-input.js","names":["UIT.FormStates","UIT.FormStates","_vocabulary_dec","_a","_init","E.NativeFallback","E.proto","__name","_elementSetup_dec","_a","_init","F.FormComponent","E.proto","E.protoMerged","E.controlled","E.onChange","E.untracked","E.state","E.derived","UIT.STATIC_CONTROL","__name","<Show when={this.labelPlace === \"start\"}>{this.labelBox()}</Show>","this","<div class={this.rootClass} part={this.partForName(\"input\")}>\n <Show when={this.labelPlace === \"start\"}>{this.labelBox()}</Show>\n <Show when={this.actionPlace === \"start\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>\n <input\n ref={(element) => this.control = element}\n part={this.partForName(\"control\")}\n type={this.isPercent ? \"number\" : this.type ?? \"text\"}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete}\n inputmode={this.inputmode}\n disabled={this.isDisabled}\n readonly={this.readonly}\n aria-busy={this.loading ? \"true\" : void 0}\n {...this.constraints}\n {...this.controlAria}\n {...this.staticControl}\n onInput={this.onInput}\n onChange={this.onFileOrChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n />\n <Show when={this.hasIconBox}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <Show when={this.labelPlace === \"end\"}>{this.labelBox()}</Show>\n <Show when={this.labelPlace === \"corner\"}>\n <span\n class={this.labeled === \"left corner\" ? LEFT_CORNER_LABEL : CORNER_LABEL}\n part={this.partForName(\"label\")}\n aria-hidden=\"true\"\n >\n <span class={UIT.ICON}>\n <slot name={this.slotForName(\"label\")}>{this.cornerGlyph.svg}</slot>\n </span>\n </span>\n </Show>\n <Show when={this.actionPlace === \"end\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>\n </div>","<Show when={this.actionPlace === \"start\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>","<slot name={this.slotForName(\"action\")} />","ref={(element) => this.control = element}","<Show when={this.hasIconBox}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>","part={this.partForName(\"icon\")}","name={this.slotForName(\"icon\")}","<span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>","<Show when={this.labelPlace === \"end\"}>{this.labelBox()}</Show>","<Show when={this.labelPlace === \"corner\"}>\n <span\n class={this.labeled === \"left corner\" ? LEFT_CORNER_LABEL : CORNER_LABEL}\n part={this.partForName(\"label\")}\n aria-hidden=\"true\"\n >\n <span class={UIT.ICON}>\n <slot name={this.slotForName(\"label\")}>{this.cornerGlyph.svg}</slot>\n </span>\n </span>\n </Show>","part={this.partForName(\"label\")}","class={UIT.ICON}","name={this.slotForName(\"label\")}","<span\n class={this.labeled === \"left corner\" ? LEFT_CORNER_LABEL : CORNER_LABEL}\n part={this.partForName(\"label\")}\n aria-hidden=\"true\"\n >\n <span class={UIT.ICON}>\n <slot name={this.slotForName(\"label\")}>{this.cornerGlyph.svg}</slot>\n </span>\n </span>","<Show when={this.actionPlace === \"end\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>","part={this.partForName(\"input\")}","<span class={LABEL_CLASSES} part={this.partForName(\"label\")}>\n <slot name={this.slotForName(\"label\")}>{this.label ?? (this.isPercent ? PERCENT_SIGN : void 0)}</slot>\n </span>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.proto","E.protoMerged","E.state","E.SlotContent","E.IconGlyph","_$getOwner","_$readShallow","UIT.ICON","_$setAttribute","__name","labelCSS","inputCSS","this","ref={(element) => this.control = element}","part={this.partForName(\"input\")}","<div class={this.rootClass} part={this.partForName(\"input\")}>\n <textarea\n ref={(element) => this.control = element}\n class={this.grow ? GROW : void 0}\n style={this.growStyle}\n part={this.partForName(\"control\")}\n rows={this.visibleRows}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete}\n disabled={this.isDisabled}\n readonly={this.readonly}\n {...this.constraints}\n {...this.controlAria}\n {...this.staticControl}\n onInput={this.onInput}\n onChange={this.onChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n />\n </div>","E.proto","E.protoMerged","E.onChange","E.untracked","_$setAttribute","__name","inputCSS","ICON","FormControlAttributes","Key","__decoratorStart","__publicField","__name$1","FormStates","__decorateElement","__decoratorMetadata","__runInitializers","STATIC_CONTROL","__privateAdd","FormControlStates","UILabel_default","UIInput_default","getOwner$1","INPUT_TYPES","inputVocabulary","textareaVocabulary","LABEL_CLASSES","_degraded_dec","_vocabulary_dec$2","_a$3","_init$3","_InputFallback","NativeFallback","proto","domElement","isTextarea","common","control","value","label","labeled","extra","LABELED","root","labelBox","LABEL_PART","event","name","InputFallback","_readNativeValidity_dec","_onConstraintsChanged_dec","_validation_dec","_nativeValidity_dec","_onBlur_dec","_onFocus_dec","_onChange_dec","_syncControl_dec","_onValueChanged_dec","_value_dec","_elementSetup_dec$2","_invalidShows_dec","_a$2","_init$2","_value","_nativeValidity","_TextControl","FormComponent","protoMerged","controlled","onChange","untracked","state","derived","next","afterSolidUpdate","VALID","options","shown","own","native","rules","flags","flag","NATIVE_FLAGS","validity","message","errors","isServer","TextControl","_tmpl$$1","_tmpl$2","_tmpl$3","_tmpl$4","_files_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_files","_UIInput","SlotContent","IconGlyph","form","submitter","action","files","data","file","_self$","_el$","_el$2","_el$4","_el$7","_el$8","_el$12","_el$14","insert","createComponent","Show","_el$3","effect","_v$","spread","ref","element","_el$5","_el$6","readShallow","className","_p$","setAttribute","a","_el$9","_el$10","_el$11","LEFT_CORNER_LABEL","CORNER_LABEL","_el$13","_self$2","_el$15","_el$16","PERCENT_SIGN","t","UIInput","_tmpl$","_fitHeight_dec","_onGrowChanged_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UITextarea","style","UI","borders","\"class\"","GROW","UITextarea"],"sources":["../src/components/ui-input/UIInput.en.ts","../src/components/ui-input/UITextarea.en.ts","../src/components/ui-input/UIInput.types.ts","../src/components/ui-input/UIInput.fallback.ts","../src/components/ui-input/TextControl.ts","../src/components/ui-input/UIInput.tsx","../src/components/ui-input/UITextarea.tsx","../src/components/ui-input/index.ts"],"sourcesContent":["/**\n * Every name `<ui-input>` and `<ui-textarea>` use: tags, attributes (kind + allowed values), events, slots, parts,\n * states, texts. Schema: `ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-input icon=\"search\" icon-position=\"left\" labeled=\"right\" size=\"small\">` =>\n * `ui small left icon right labeled input`. The element adds `icon` (no position), `labeled` / `action` (a\n * slotted label or action without the attribute) and `file` (`type=\"file\"`) itself.\n * - `state` is `kind: \"valueOnly\"`: it emits its value alone (`ui error input`), a remap in `colors.css`.\n * - `value` does NOT reflect: like a native `<input>`, the ATTRIBUTE is the starting (and reset) value and the\n * PROPERTY the live one -- a password never lands in the DOM.\n * - Constraint attributes (`required`, `pattern`, `min` ...) go to the inner native control,\n * whose validity merges with the Fomantic `rules` property's.\n */\n\n// pure data (vocabularies / types) never import `spell/ui/core` by value: it loads the element layer,\n// which node can't (`yarn site:data` / `yarn gen:root` import every vocabulary through tsx: no `?inline` css, no JSX)\nimport * as UIT from \"spell/ui/components/components.types\"\nimport type { ComponentVocabulary } from \"spell/ui/vocabulary\"\n\n/** Input types passed through to the inner `<input>`. */\nconst INPUT_TYPES = [\n \"text\",\n \"password\",\n \"email\",\n \"number\",\n \"search\",\n \"url\",\n \"tel\",\n \"date\",\n \"datetime-local\",\n \"time\",\n \"month\",\n \"week\",\n \"color\",\n \"file\",\n \"percent\"\n] as const\n\n/****************\n * ### `<ui-input>`\n * A text field: `<div class=\"ui … input\" part=\"input\">` around a native `<input part=\"control\">`,\n * with an optional icon, label and action buttons.\n ****************/\nexport const inputVocabulary = {\n tag: \"ui-input\",\n icon: \"i cursor\",\n snippet: '<ui-input placeholder=\"Type here\"></ui-input>',\n formControl: true,\n topics: [\"forms\", \"inputs\", \"controls\", \"text\", \"basic\", \"elements\"],\n aka: [\"text field\", \"text box\", \"textbox\", \"input field\", \"search box\"],\n skeleton: \"inline 14 x 2.5\",\n noun: \"input\",\n partOfSpeech: \"action\",\n description: \"An input is a field used to elicit a response from a person.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Hue of a `file` input's choose-file button (Fomantic colours only file inputs).\"\n },\n {\n name: \"state\",\n group: \"form\",\n kind: \"valueOnly\",\n values: UIT.FormStates,\n description: \"Form state, tinting the box, text and placeholder.\"\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"transparent\"],\n classes: {},\n replaces: [{ from: \"transparent\", value: \"transparent\" }],\n description: \"`transparent`: no box, text only, e.g. inside a menu or header. Old name: `transparent`.\"\n },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Busy: the icon becomes a spinner (with or without `icon`).\"\n },\n {\n name: \"disabled\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Can't be used; dimmed, left out of the form.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds.\" },\n {\n ...UIT.FormControlAttributes.readonly,\n description: \"Shows its value but can't be edited; submitted with the form (unlike `disabled`).\"\n },\n {\n name: \"icon-position\",\n group: \"content\",\n kind: \"valueAndKey\",\n key: \"icon\",\n values: [\"left\"],\n description: \"`left` puts the icon at the start (`left icon`); default the end.\"\n },\n {\n name: \"labeled\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"right\", \"corner\", \"left corner\"],\n description:\n \"Where the label sits: bare => before the field, `right` => after it, `corner` / `left corner` => folded \" +\n \"over a corner. Implied (bare) by a `label` shorthand or slot.\"\n },\n {\n name: \"action\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n values: [\"left\"],\n description:\n \"Joined buttons (slot `action`): bare => after the field, `left` => before it. Implied by the slot.\"\n },\n {\n name: \"icon\",\n group: \"content\",\n kind: \"icon\",\n description: \"Icon name, drawn inside the field; the root gets `icon`.\"\n },\n {\n name: \"label\",\n group: \"name\",\n kind: \"string\",\n description:\n 'Label text, joined to the field; an ICON name with `labeled=\"corner\"` / `\"left corner\"`; the `label` slot is the rich version.'\n },\n {\n name: \"type\",\n group: \"appearance\",\n kind: \"enum\",\n values: INPUT_TYPES,\n default: \"text\",\n description:\n \"Native input type; `file` also adds the `file` class. `percent` is a number field for a part of a whole: \" +\n \"its value the fraction (`0.18`), shown as `18` with a `%` label at its end.\"\n },\n {\n name: \"value\",\n group: \"form\",\n kind: \"string\",\n reflect: false,\n description:\n \"Value. Attribute: the starting (and reset) value; property: the live value, like a native input.\"\n },\n UIT.FormControlAttributes.name,\n UIT.FormControlAttributes.parameter,\n UIT.FormControlAttributes.placeholder,\n { ...UIT.FormControlAttributes.required, description: \"Constraint: must not be empty (`valueMissing`).\" },\n {\n name: \"pattern\",\n group: \"form\",\n kind: \"string\",\n description: \"Constraint: a regular expression the whole value must match.\"\n },\n { name: \"min\", group: \"form\", kind: \"string\", description: \"Constraint: lowest number / date.\" },\n { name: \"max\", group: \"form\", kind: \"string\", description: \"Constraint: highest number / date.\" },\n { name: \"step\", group: \"form\", kind: \"string\", description: \"Constraint: granularity of a number / date.\" },\n {\n name: \"minlength\",\n group: \"form\",\n kind: \"number\",\n property: \"minLength\",\n description: \"Constraint: fewest characters (checked once someone has edited it).\"\n },\n {\n name: \"maxlength\",\n group: \"form\",\n kind: \"number\",\n property: \"maxLength\",\n description: \"Constraint: most characters.\"\n },\n { name: \"multiple\", group: \"form\", kind: \"boolean\", description: \"`email` / `file`: accepts several values.\" },\n { name: \"accept\", group: \"form\", kind: \"string\", description: \"`file`: accepted file types.\" },\n {\n name: \"autocomplete\",\n group: \"form\",\n kind: \"string\",\n description: \"Autofill hint, forwarded to the native input.\"\n },\n {\n name: \"inputmode\",\n group: \"appearance\",\n kind: \"enum\",\n // Shadows `HTMLElement.inputMode` on purpose: same attribute, same meaning, forwarded to the native input\n // (a vocabulary attribute meaning something else would take another name, as `<ui-divider spacer>` did)\n property: \"inputMode\",\n values: [\"none\", \"text\", \"decimal\", \"numeric\", \"tel\", \"search\", \"email\", \"url\"],\n description:\n \"Virtual keyboard hint, forwarded to the native input. `decimal` / `numeric` also give the number look \" +\n '(right-aligned, tabular figures), as `type=\"number\"` does.'\n },\n {\n name: \"rules\",\n group: \"form\",\n kind: \"json\",\n reflect: false,\n description:\n 'Fomantic validation rules checked with the native constraints: `\"email\"`, `[\"notEmpty\", \"minLength[6]\"]` ' +\n \"or rule objects (`ValidationRule`).\"\n }\n ],\n events: [\n {\n name: \"ui-typed\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"The value changed as someone typed (every keystroke).\"\n },\n {\n name: \"ui-changed\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"Someone committed a change (blur, Enter, picking a file).\"\n }\n ],\n slots: [\n { name: \"label\", description: \"Label content (text, an icon, a `<ui-dropdown>`), inside the joined label box.\" },\n { name: \"action\", description: \"`<ui-button>`s (or a `<ui-dropdown button>`) joined to the field.\" },\n { name: \"icon\", description: \"Icon, instead of the `icon` attribute.\" }\n ],\n parts: [\n { name: \"input\", description: \"The root box.\" },\n { name: \"control\", description: \"The native `<input>`.\" },\n { name: \"label\", description: \"The joined label box.\" },\n { name: \"icon\", description: \"The icon box (the spinner while `loading`).\" }\n ],\n states: [\n UIT.FormControlStates.invalid,\n { name: \"disabled\", description: \"Can't be used.\" },\n { name: \"loading\", description: \"Busy.\" },\n { name: \"fluid\", description: \"The host is block-level (`fluid`, or inside a `<ui-field>`).\" }\n ],\n texts: []\n} as const satisfies ComponentVocabulary\n","/**\n * Every name `<ui-textarea>` uses: tag, attributes (kind + allowed values), events, parts, states. Schema:\n * `ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-textarea size=\"small\">` => `ui small input`, the `input` noun of `UIInput.css`, which it shares.\n * - `state` is `kind: \"valueOnly\"`: it emits its value alone (`ui error input`), a remap in `colors.css`.\n * - `value` does NOT reflect: like a native `<textarea>`, the ATTRIBUTE is the starting (and reset) value and the\n * PROPERTY the live one.\n * - Constraint attributes (`required`, `minlength`, `maxlength`) go to the inner native control,\n * whose validity merges with the Fomantic `rules` property's.\n */\n\n// pure data (vocabularies / types) never import `spell/ui/core` by value: it loads the element layer,\n// which node can't (`yarn site:data` / `yarn gen:root` import every vocabulary through tsx: no `?inline` css, no JSX)\nimport * as UIT from \"spell/ui/components/components.types\"\nimport type { ComponentVocabulary } from \"spell/ui/vocabulary\"\n\n/****************\n * ### `<ui-textarea>`\n * A multi-line field: `<div class=\"ui … input\" part=\"input\">` around a native `<textarea part=\"control\">`.\n * - Shares `UIInput.css` (Fomantic styles `textarea` inside `.ui.input` and `.ui.form`), hence the `input` noun.\n ****************/\nexport const textareaVocabulary = {\n tag: \"ui-textarea\",\n icon: \"align left\",\n formControl: true,\n topics: [\"forms\", \"inputs\", \"text\", \"elements\"],\n aka: [\"multiline\", \"text area\", \"memo\", \"comment box\"],\n skeleton: \"20 x 6\",\n noun: \"input\",\n partOfSpeech: \"action\",\n description: \"A textarea is a multi-line field used to elicit a longer response.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"state\",\n group: \"form\",\n kind: \"valueOnly\",\n values: UIT.FormStates,\n description: \"Form state, tinting the box, text and placeholder.\"\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"transparent\"],\n classes: {},\n replaces: [{ from: \"transparent\", value: \"transparent\" }],\n description: \"`transparent`: no box, text only. Old name: `transparent`.\"\n },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\n {\n name: \"disabled\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Can't be used; dimmed, left out of the form.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds.\" },\n { ...UIT.FormControlAttributes.readonly, description: \"Shows its value but can't be edited; still submitted.\" },\n {\n name: \"value\",\n group: \"form\",\n kind: \"string\",\n reflect: false,\n description: \"Value. Attribute: the starting (and reset) value; property: the live value.\"\n },\n UIT.FormControlAttributes.name,\n UIT.FormControlAttributes.parameter,\n UIT.FormControlAttributes.placeholder,\n { ...UIT.FormControlAttributes.required, description: \"Constraint: must not be empty (`valueMissing`).\" },\n {\n name: \"minlength\",\n group: \"form\",\n kind: \"number\",\n property: \"minLength\",\n description: \"Constraint: fewest characters (checked once someone has edited it).\"\n },\n {\n name: \"maxlength\",\n group: \"form\",\n kind: \"number\",\n property: \"maxLength\",\n description: \"Constraint: most characters.\"\n },\n {\n name: \"rows\",\n group: \"content\",\n kind: \"number\",\n description:\n \"Visible lines; without it the field is Fomantic's form height (12em, 8em ... 24em). With `grow`: the \" +\n \"lines it starts at, one without it.\"\n },\n {\n name: \"grow\",\n group: \"layout\",\n kind: \"boolean\",\n description:\n \"Grows with its text (epic `ui-gaps` P14): `rows` lines to start (one without it), taller as the text \" +\n 'wraps, up to `max-rows`, then it scrolls; shorter again as text goes. Opt in: every \"tell me more\" ' +\n \"field should.\"\n },\n {\n name: \"max-rows\",\n group: \"layout\",\n kind: \"number\",\n min: 1,\n description:\n \"With `grow`: the most lines it grows to before it scrolls; without it, a third of the window \" +\n \"(`--ui-input-textarea-grow-max-height`).\"\n },\n {\n name: \"send-on-enter\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"As a chat app's box (epic `atmosphere` T61): Enter sends what's typed (`ui-send`), Shift-Enter types a new \" +\n \"line. Nothing is sent while it's empty or only spaces.\"\n },\n {\n name: \"autocomplete\",\n group: \"form\",\n kind: \"string\",\n description: \"Autofill hint, forwarded to the native textarea.\"\n },\n {\n name: \"rules\",\n group: \"form\",\n kind: \"json\",\n reflect: false,\n description: \"Fomantic validation rules checked with the native constraints (`ValidationRule`s).\"\n }\n ],\n events: [\n {\n name: \"ui-typed\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"The value changed as someone typed (every keystroke).\"\n },\n {\n name: \"ui-changed\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"Someone committed a change (blur).\"\n },\n {\n name: \"ui-send\",\n detail: \"{ value: string, originalEvent?: Event }\",\n description: \"With `send-on-enter`: Enter was pressed, with text to send.\"\n }\n ],\n slots: [],\n parts: [\n { name: \"input\", description: \"The root box.\" },\n { name: \"control\", description: \"The native `<textarea>`.\" }\n ],\n states: [\n UIT.FormControlStates.invalid,\n { name: \"disabled\", description: \"Can't be used.\" },\n { name: \"fluid\", description: \"The host is block-level (`fluid`, or inside a `<ui-field>`).\" }\n ],\n texts: []\n} as const satisfies ComponentVocabulary\n","/**\n * Constants and types of the `ui-input` family: what its components (`TextControl`, `UIInput`, `UITextarea`)\n * and its native fallback share.\n * - Pure data: it imports only the vocabulary's TYPE, so node can load it (`yarn site:data`).\n */\n\nimport type { inputVocabulary } from \"./UIInput.en\"\n\n////////////////\n// ## Types\n////////////////\n\n/** The vocabulary's type, for short. */\nexport type Vocabulary = typeof inputVocabulary\n\n/**\n * The vocabulary getters every text control has (`<ui-input>` and `<ui-textarea>`), typed once for `TextControl`.\n * - Not `value`: that's `TextControl`'s `@controlled` member.\n */\nexport type CommonAttributes = {\n /** the form field's name */\n name: string | undefined\n /** the hint shown while empty */\n placeholder: string | undefined\n /** the `disabled` attribute (a disabled fieldset is `formIsDisabled`) */\n disabled: boolean\n /** shows its value, which can't be edited */\n readonly: boolean\n /** takes the full width */\n fluid: boolean\n /** busy: `<ui-input>` only */\n loading?: boolean\n /** Fomantic validation rules, as set: one rule, a list, or nothing (`TextControl.validationRules`) */\n rules: unknown\n}\n\n/** Where a `<ui-input>`'s joined label sits. */\nexport type LabelPlace = \"start\" | \"end\" | \"corner\"\n\n////////////////\n// ## Class words\n////////////////\n\n/** The class words of a joined label (`UIInput.css`). */\nexport const LABEL_CLASSES = \"ui label\"\n","import { E } from \"spell/ui/core\"\nimport { inputVocabulary } from \"./UIInput.en\"\nimport { textareaVocabulary } from \"./UITextarea.en\"\nimport { LABEL_CLASSES, type Vocabulary } from \"./UIInput.types\"\n\n/****************\n * ### `InputFallback`\n * The native fallback of `<ui-input>` and `<ui-textarea>`: what they show when their component breaks,\n * so the field's value is still typed in, validated and submitted with its form.\n *\n * - Its shadow DOM: `<div part=\"input\" class=\"ui … input\">` around a native `<input part=\"control\">`\n * (a `<textarea>` for `<ui-textarea>`), with the `label` shorthand as a joined label.\n * - Still a form control. Every `input` event:\n * - sets `domElement.value`, and the DOM element's form value\n * - copies the native control's validity onto the DOM element (`setValidity(..., control)`)\n * - sends a composed `ui-input`; `change` sends `ui-changed`.\n * - Its starting value is the DOM element's `value` PROPERTY, else its attribute.\n * - Its accessible name is the DOM element's `aria-label`, else `placeholder`.\n ****************/\nexport class InputFallback extends E.NativeFallback<Vocabulary> {\n @E.proto static vocabulary = inputVocabulary\n @E.proto static degraded = [\n \"`icon` glyph and the `icon` / `label` / `action` slots\",\n \"corner labels\",\n \"`rules` (only the native constraints validate)\",\n \"`:state(invalid)`, form reset of the value, implicit (Enter) submission\",\n \"labels from `<label for>` (only `aria-label` / `placeholder` name the control)\"\n ]\n\n /** The native control, once built, for `sync()`. */\n private control: HTMLInputElement | HTMLTextAreaElement | undefined\n\n protected override build() {\n const domElement = this.domElement as InputDOMElement\n const isTextarea = domElement.localName === textareaVocabulary.tag\n const common = {\n name: this.attr(\"name\"),\n placeholder: this.attr(\"placeholder\"),\n required: this.flag(\"required\"),\n disabled: this.flag(\"disabled\"),\n readonly: this.flag(\"readonly\"),\n minlength: this.attr(\"minlength\"),\n maxlength: this.attr(\"maxlength\"),\n autocomplete: this.attr(\"autocomplete\")\n }\n const control = isTextarea\n ? // `rows` is the textarea vocabulary's alone, so `attr()` (typed on the input's) can't name it\n this.create(\"textarea\", { ...common, rows: this.domElement.getAttribute(\"rows\") })\n : this.create(\"input\", {\n ...common,\n type: this.attr(\"type\") ?? \"text\",\n pattern: this.attr(\"pattern\"),\n min: this.attr(\"min\"),\n max: this.attr(\"max\"),\n step: this.attr(\"step\"),\n multiple: this.flag(\"multiple\"),\n accept: this.attr(\"accept\"),\n inputmode: this.attr(\"inputmode\")\n })\n this.decorate(control, \"control\")\n this.nameFromPlaceholder(control)\n const value = domElement.value ?? this.attr(\"value\")\n if (value && control.type !== \"file\") control.value = value\n\n const label = isTextarea ? undefined : this.attr(\"label\")\n const labeled = this.attr(\"labeled\")\n const extra = [label && labeled === undefined ? LABELED : \"\", control.type === \"file\" ? \"file\" : \"\"]\n const root = this.create(\"div\", { class: this.classes(extra.filter(Boolean).join(\" \") || undefined) })\n const labelBox = label ? this.create(\"span\", { class: LABEL_CLASSES, part: LABEL_PART }, label) : undefined\n if (labelBox && labeled !== \"right\") root.append(labelBox)\n root.append(control)\n if (labelBox && labeled === \"right\") root.append(labelBox)\n this.decorate(root, \"input\")\n\n this.listen(control, \"input\", (event) => {\n domElement.value = control.value\n this.sync()\n this.announce(\"ui-typed\", event)\n })\n this.listen(control, \"change\", (event) => this.announce(\"ui-changed\", event))\n this.control = control\n return [root]\n }\n\n /** The control's value (a file input's: none) and validity. */\n protected override sync() {\n const { control } = this\n if (control) this.syncForm({ value: control.type === \"file\" ? undefined : control.value, control })\n }\n\n /** Send event `name` (`ui-input`, `ui-changed`) with the control's value. */\n private announce(name: E.EventName<Vocabulary>, originalEvent: Event) {\n this.send(name, { value: this.control!.value, originalEvent })\n }\n}\n\n/** What the fallback reads and writes of the DOM element: `value` is optional, the element may not have upgraded. */\ntype InputDOMElement = HTMLElement & {\n /** the live value, once set */\n value?: string\n}\n\n/** The class word of a label given only by the `label` shorthand (no `labeled`). */\nconst LABELED = \"labeled\"\n\n/** The part of the joined label. */\nconst LABEL_PART: E.PartName<Vocabulary> = \"label\"\n","import { isServer } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { F } from \"spell/ui/forms\"\nimport { type CommonAttributes } from \"./UIInput.types\"\n\n/****************\n * ### `TextControl`\n * The base component of `<ui-input>` and `<ui-textarea>`: a native `<input>` / `<textarea>` in the shadow root,\n * whose value, validity and name belong to the DOM ELEMENT.\n *\n * - `value` is controlled (`@controlled`):\n * typing sends `ui-input` first; a handler that sets `el.value` again wins (the control shows that value).\n * - The ATTRIBUTE is the starting value, which a form reset restores (as a native `defaultValue`);\n * the property doesn't reflect.\n *\n * - Validity: the NATIVE control's constraint validation (`required`, `pattern`, `type=\"email\"` ...)\n * merged with Fomantic `rules` (through `Validator`), into the DOM element's `setValidity()`:\n * the native flags and message first.\n * The native side is read again after the DOM updates (an effect's apply) and after each input event.\n *\n * - `:state(invalid)` shows only once the person has interacted (`isTouched`), as `:user-invalid` does:\n * a committed change, leaving an edited field,\n * or a submit / `reportValidity()` that found it invalid (the `invalid` event).\n * A reset clears it.\n *\n * - Its name:\n * `ControlLabels` hands the DOM element's `<label for>` / `aria-label` to the control as its `aria-label`.\n * - The DOM element's `aria-invalid` (a `<ui-form>` marks failing fields) is passed on to the control.\n ****************/\nexport abstract class TextControl<V extends E.ComponentVocabulary = E.ComponentVocabulary> extends F.FormComponent<V> {\n /** Shows `:state(invalid)` only after interaction (see the class doc). */\n @E.proto static invalidShows: E.InvalidTiming = \"once touched\"\n @E.protoMerged static elementSetup: Partial<E.ElementSetup> = { cssStates: [\"fluid\"] }\n\n /** The native control. */\n protected control?: HTMLInputElement | HTMLTextAreaElement\n\n /** Focus the native control. */\n focus(options?: FocusOptions) {\n this.control?.focus(options)\n }\n\n /** A click aimed at the DOM element itself (its `<label for>`, its `click()`) focuses the control. */\n protected activateControl() {\n this.control?.focus()\n }\n\n ////////////////\n // ## The value\n ////////////////\n\n /** `value`: set by the page, or typed in (`\"\"` to start). */\n @E.controlled(\"value\") accessor value = \"\"\n\n /** The value when the control took focus, to tell whether leaving it is an edit. */\n private valueAtFocus?: string\n\n get formValue(): E.FieldValue {\n return this.value\n }\n\n /** Back to the `value` ATTRIBUTE (native `defaultValue`). */\n onFormReset() {\n this.value = this.attributes.value ?? \"\"\n }\n\n /**\n * The value or the content changed: the control shows the new value.\n * - `isReady`: the control only exists once the content renders.\n * - Declared before `onConstraintsChanged()`: the control holds the new value before its validity is read.\n */\n @E.onChange(\"value\", \"isReady\")\n protected onValueChanged() {\n this.syncControl()\n }\n\n /** The control shows `value` again, e.g. after a cancelled `ui-input`. */\n @E.untracked\n protected syncControl() {\n const { control } = this\n const value = this.shownFor(this.value)\n // a file input's value can only be cleared from script\n if (!control || control.value === value || (control.type === \"file\" && value !== \"\")) return\n control.value = value\n }\n\n /**\n * What the control shows for `value`: the same, unless a sub-class shows it otherwise\n * (`<ui-input type=\"percent\">` shows `0.18` as `18`) -- `valueFor()` reads it back.\n */\n protected shownFor(value: string): string {\n return value\n }\n\n /** The value for what the control shows, `shown`: the same, unless a sub-class shows it otherwise (`shownFor()`). */\n protected valueFor(shown: string): string {\n return shown\n }\n\n /** Typing: `ui-input` first, then the value (unless a handler took over). */\n protected readonly onInput = (event: Event) => {\n const control = event.currentTarget as HTMLInputElement | HTMLTextAreaElement\n const next = this.valueFor(control.value)\n const applied = this.requestChange(\"value\", next, () =>\n this.send(\"ui-typed\" as never, { value: next, originalEvent: event })\n )\n if (!applied) E.afterSolidUpdate(() => this.syncControl())\n this.readNativeValidity()\n }\n\n /** Commit: `ui-changed`; the person has now interacted. */\n @E.untracked\n protected readonly onChange = (event: Event) => {\n this.isTouched = true\n this.send(\"ui-changed\" as never, { value: this.value, originalEvent: event })\n }\n\n /** Focus: remember the value, to tell an edit on the way out. */\n @E.untracked\n protected readonly onFocus = () => {\n this.valueAtFocus = this.value\n }\n\n /** Leaving an edited field counts as interaction. */\n @E.untracked\n protected readonly onBlur = () => {\n if (this.valueAtFocus !== undefined && this.valueAtFocus !== this.value) this.isTouched = true\n this.valueAtFocus = undefined\n }\n\n ////////////////\n // ## Validity\n ////////////////\n\n /** The native control's own constraint validation, re-read after updates. */\n @E.state accessor nativeValidity: E.ValidationResult = VALID\n\n /** Native validity merged with the `rules` property's, see the class doc. */\n @E.derived\n override get validation(): E.ValidationResult {\n const own = F.FormComponent.validator.validate(this.formValue, this.validationRules, {\n label: this.validationLabel,\n name: this.name\n })\n const native = this.nativeValidity\n if (native.valid) return own\n return {\n valid: false,\n errors: [...native.errors, ...own.errors],\n flags: { ...own.flags, ...native.flags },\n message: native.message || own.message\n }\n }\n\n /** The `rules` property: one rule, a list, or nothing. */\n protected get validationRules(): E.ValidationRule[] {\n const rules = this.rules\n if (rules == null || rules === \"\") return []\n return (Array.isArray(rules) ? rules : [rules]) as E.ValidationRule[]\n }\n\n protected get validationLabel(): string | undefined {\n return this.labels.accessibleName ?? this.placeholder\n }\n\n protected get validationAnchor(): HTMLElement | undefined {\n return this.control\n }\n\n /**\n * Constraint attributes the native control carries, e.g. `{ required, pattern }`; tracked.\n * - Spread onto the control, and read by `onConstraintsChanged()`.\n */\n protected abstract get constraints(): Record<string, unknown>\n\n /**\n * What the native validity depends on changed: read it again, after the DOM updates.\n * - `constraints` builds a new object on every read, so any change among them counts.\n */\n @E.onChange(\"value\", \"constraints\", \"isDisabled\", \"readonly\", \"isReady\")\n protected onConstraintsChanged() {\n this.readNativeValidity()\n }\n\n /** Copy the control's validity into `nativeValidity`. */\n @E.untracked\n protected readNativeValidity() {\n const control = this.control\n if (!control) return\n const { validity } = control\n const flags: ValidityStateFlags = {}\n for (const flag of NATIVE_FLAGS) if (validity[flag]) flags[flag] = true\n if (validity.valid) {\n if (!this.nativeValidity.valid) this.nativeValidity = VALID\n return\n }\n const message = control.validationMessage\n const errors: E.ValidationError[] = Object.keys(flags).map((flag) => ({\n type: flag,\n ruleValue: undefined,\n message,\n flag: flag as E.ValidityFlag\n }))\n this.nativeValidity = { valid: false, errors, flags, message }\n }\n\n ////////////////\n // ## Name and ARIA\n ////////////////\n\n /** The control's ARIA: its name (`labels`), and invalid (the DOM element's `aria-invalid`, or shown invalid). */\n protected get controlAria() {\n return {\n \"aria-label\": this.labels.accessibleName,\n \"aria-invalid\": this.attributes[\"aria-invalid\"] === \"true\" || this.isShownInvalid ? \"true\" : undefined\n } as const\n }\n\n /**\n * The native control's extra attributes in a server render (`spell/ui/static`).\n * - What it needs to submit without script: `name` and the starting `value`; and the `STATIC_CONTROL` mark.\n * - `{}` in a browser, where the DOM element submits (`ElementInternals`)\n * and the effects keep the control in step.\n */\n protected get staticControl(): Record<string, unknown> {\n if (!isServer) return {}\n return { [UIT.STATIC_CONTROL]: \"\", name: this.name, value: this.shownFor(this.value) || undefined }\n }\n}\n\n/** The vocabulary getters both text controls have, typed once for this base. */\nexport interface TextControl<V extends E.ComponentVocabulary = E.ComponentVocabulary> extends CommonAttributes {}\n\n/** Every Constraint Validation flag the native control may raise (not `customError`: nothing sets one there). */\nconst NATIVE_FLAGS: readonly (keyof ValidityStateFlags)[] = [\n \"valueMissing\",\n \"typeMismatch\",\n \"patternMismatch\",\n \"tooLong\",\n \"tooShort\",\n \"rangeUnderflow\",\n \"rangeOverflow\",\n \"stepMismatch\",\n \"badInput\"\n]\n\n/** A passing result. */\nconst VALID: E.ValidationResult = { valid: true, errors: [], flags: {}, message: \"\" }\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { inputVocabulary } from \"./UIInput.en\"\nimport { InputFallback } from \"./UIInput.fallback\"\nimport { TextControl } from \"./TextControl\"\nimport { LABEL_CLASSES, type CommonAttributes, type LabelPlace, type Vocabulary } from \"./UIInput.types\"\n\nimport labelCSS from \"spell/ui/components/ui-label/UILabel.css?inline\"\nimport inputCSS from \"./UIInput.css?inline\"\n\n/****************\n * ### `UIInput`\n * The component behind `<ui-input>`: a one-line text field.\n *\n * - Its shadow DOM: `<div class=\"ui … input\" part=\"input\">` around a native `<input part=\"control\">`,\n * with the optional joined label, action buttons and icon box, in the order `UIInput.css` documents.\n * - A form control (see `TextControl`): its value, native constraints + `rules`, reset, a disabled fieldset.\n * - `type` passes through to the native input.\n * `file` submits the chosen `File`s (one `FormData` entry each), and script can't set its value, as natively.\n * `percent` is ours (epic `language` P34): a number field for a part of a whole, see `isPercent`.\n * - Enter submits the form, as in a native field (\"implicit submission\"):\n * it clicks the form's first submit button, else calls `requestSubmit()`.\n * The native input can't do it itself: inside a shadow root, it belongs to no form.\n ****************/\nexport class UIInput extends TextControl<Vocabulary> {\n @E.proto static vocabulary = inputVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { label: labelCSS, input: inputCSS },\n Fallback: InputFallback,\n // `loading`: a spinner in place of its icon\n loading: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /** Which slots have light-DOM children (`label`, `action`, `icon`). */\n readonly slots = new E.SlotContent(this.domElement)\n\n ////////////////\n // ## The label\n ////////////////\n\n /** Where the joined label goes, if there is one: a percent's `%` at its end, unless it says otherwise. */\n get labelPlace(): LabelPlace | undefined {\n const { labeled } = this\n if (labeled === \"corner\" || labeled === \"left corner\") return \"corner\"\n if (!labeled && !this.label && !this.slots.hasContent(this.slotForName(\"label\"))) {\n return this.isPercent ? \"end\" : undefined\n }\n return labeled === \"right\" ? \"end\" : \"start\"\n }\n\n /** The glyph of a corner label (its `label` is an icon name). */\n readonly cornerGlyph = new E.IconGlyph({\n owner: this,\n name: () => (this.labelPlace === \"corner\" ? this.label : undefined)\n })\n\n ////////////////\n // ## The action\n ////////////////\n\n /** Where the action slot goes, if anything is in it. */\n get actionPlace(): \"start\" | \"end\" | undefined {\n const { action } = this\n if (!action && !this.slots.hasContent(this.slotForName(\"action\"))) return undefined\n return action === \"left\" ? \"start\" : \"end\"\n }\n\n ////////////////\n // ## The icon\n ////////////////\n\n /** Shows the icon box: an icon, or the spinner. */\n get hasIconBox(): boolean {\n return !!this.icon || this.slots.hasContent(this.slotForName(\"icon\")) || !!this.loading\n }\n\n /** The glyph of the `icon` attribute. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.icon })\n\n ////////////////\n // ## Percent\n ////////////////\n\n /**\n * `type=\"percent\"`: a number field for a part of a whole, kept as its fraction (epic `language` P34).\n * - Its value is the fraction, `0.18`, as Spell keeps a percent; the field shows and takes `18`, a `%` label at its end.\n * - `min`, `max` and `step` are in what it shows: `min=\"0\" step=\"1\"`.\n * - The native control is a `number` one.\n */\n get isPercent(): boolean {\n return this.type === \"percent\"\n }\n\n /** A percent shows its fraction times 100: `0.18` => `18`. */\n protected shownFor(value: string): string {\n if (!this.isPercent || value === \"\" || Number.isNaN(Number(value))) return value\n return String(Number((Number(value) * 100).toFixed(10)))\n }\n\n /** A percent's fraction, from what it shows: `18` => `0.18`. */\n protected valueFor(shown: string): string {\n if (!this.isPercent || shown === \"\" || Number.isNaN(Number(shown))) return shown\n return String(Number((Number(shown) / 100).toFixed(12)))\n }\n\n ////////////////\n // ## Files\n ////////////////\n\n /** `type=\"file\"`? */\n get isFileInput(): boolean {\n return this.type === \"file\"\n }\n\n /** Files chosen in a `file` input. */\n @E.state accessor files: readonly File[] = []\n\n /** Files submit themselves: one entry per file. */\n protected formSubmission(value: E.FieldValue, name: string | undefined): string | File | FormData | null {\n if (!this.isFileInput) return super.formSubmission(value, name)\n const files = this.files\n if (!name || !files.length) return null\n const data = new FormData()\n for (const file of files) data.append(name, file)\n return data\n }\n\n /** Also clears a file input's chosen files, which only script can. */\n onFormReset() {\n super.onFormReset()\n if (this.control && this.isFileInput) this.control.value = \"\"\n this.files = []\n }\n\n /** `change`: a file input's value and files arrive here too. */\n private readonly onFileOrChange = (event: Event) => {\n if (this.isFileInput) {\n const control = event.currentTarget as HTMLInputElement\n this.files = [...(control.files ?? [])]\n this.requestChange(\"value\", control.value, () => true)\n }\n this.onChange(event)\n }\n\n ////////////////\n // ## Classes and constraints\n ////////////////\n\n protected classValue(name: E.AttributeName<Vocabulary>): unknown {\n // a percent's own `%` is a right label\n if (name === \"labeled\")\n return this.labelPlace ? this.labeled || (this.labelPlace === \"end\" ? \"right\" : true) : false\n if (name === \"action\") return this.actionPlace ? this.action || true : false\n if (name === \"icon-position\") return this.hasIconBox ? this.iconPosition : undefined\n return super.classValue(name)\n }\n\n protected get extraClass(): string | undefined {\n const extra = [this.hasIconBox && this.iconPosition !== UIT.LEFT ? UIT.ICON : \"\", this.isFileInput ? \"file\" : \"\"]\n return extra.filter(Boolean).join(\" \") || undefined\n }\n\n protected get constraints(): Record<string, unknown> {\n return {\n required: this.required,\n pattern: this.pattern,\n min: this.min,\n max: this.max,\n step: this.step,\n minlength: this.minlength,\n maxlength: this.maxlength,\n multiple: this.multiple,\n accept: this.accept\n }\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"input\")}>\n <Show when={this.labelPlace === \"start\"}>{this.labelBox()}</Show>\n <Show when={this.actionPlace === \"start\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>\n <input\n ref={(element) => (this.control = element)}\n part={this.partForName(\"control\")}\n type={this.isPercent ? \"number\" : (this.type ?? \"text\")}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete as never}\n inputmode={this.inputmode}\n disabled={this.isDisabled}\n readonly={this.readonly}\n aria-busy={this.loading ? \"true\" : undefined}\n {...this.constraints}\n {...this.controlAria}\n {...this.staticControl}\n onInput={this.onInput}\n onChange={this.onFileOrChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n />\n <Show when={this.hasIconBox}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n <slot name={this.slotForName(\"icon\")}>{this.iconGlyph.svg}</slot>\n </span>\n </Show>\n <Show when={this.labelPlace === \"end\"}>{this.labelBox()}</Show>\n <Show when={this.labelPlace === \"corner\"}>\n <span\n class={this.labeled === \"left corner\" ? LEFT_CORNER_LABEL : CORNER_LABEL}\n part={this.partForName(\"label\")}\n aria-hidden=\"true\"\n >\n <span class={UIT.ICON}>\n <slot name={this.slotForName(\"label\")}>{this.cornerGlyph.svg}</slot>\n </span>\n </span>\n </Show>\n <Show when={this.actionPlace === \"end\"}>\n <slot name={this.slotForName(\"action\")} />\n </Show>\n </div>\n )\n }\n\n /** The joined label box, around the `label` slot / shorthand. */\n private labelBox(): JSX.Element {\n return (\n <span class={LABEL_CLASSES} part={this.partForName(\"label\")}>\n <slot name={this.slotForName(\"label\")}>{this.label ?? (this.isPercent ? PERCENT_SIGN : undefined)}</slot>\n </span>\n )\n }\n\n ////////////////\n // ## Submitting\n ////////////////\n\n /** Enter submits the form, as a native field would. */\n private readonly onKeyDown = (event: KeyboardEvent) => {\n if (event.key !== UIT.Key.enter || event.isComposing || event.defaultPrevented) return\n const form = this.domElement.form\n if (!form) return\n event.preventDefault()\n this.isTouched = true\n const submitter = [...form.elements].find(UIInput.isSubmitter) as HTMLElement | undefined\n if (submitter) submitter.click()\n else form.requestSubmit()\n }\n\n /**\n * A form's default button:\n * a native submit button, or a `<ui-button type=\"submit\">` (form-associated, so in `form.elements`).\n * - STATIC: pure, a `find()` predicate.\n * - `instanceof` is safe here: a key handler, which the static render never reaches.\n */\n private static isSubmitter(element: Element): boolean {\n if (element instanceof HTMLButtonElement || element instanceof HTMLInputElement) {\n return element.type === \"submit\" && !element.disabled\n }\n return element.getAttribute(\"type\") === \"submit\" && !element.matches(\":disabled\")\n }\n}\n/** The vocabulary getters, typed; `TextControl` types the shared ones, and owns `value`. */\nexport interface UIInput extends Omit<E.AttributeValues<Vocabulary>, keyof CommonAttributes | \"value\"> {}\n\n/** A percent's label, when it names none (`isPercent`). */\nconst PERCENT_SIGN = \"%\"\n\n/** Class words of a `labeled=\"corner\"` label (`UIInput.css`). */\nconst CORNER_LABEL = \"ui corner label\"\n\n/** Class words of a `labeled=\"left corner\"` label. */\nconst LEFT_CORNER_LABEL = \"ui left corner label\"\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { textareaVocabulary } from \"./UITextarea.en\"\nimport { InputFallback } from \"./UIInput.fallback\"\nimport { TextControl } from \"./TextControl\"\nimport type { CommonAttributes } from \"./UIInput.types\"\n\nimport inputCSS from \"./UIInput.css?inline\"\n\n/****************\n * ### `UITextarea`\n * The component behind `<ui-textarea>`: a text field of several lines.\n *\n * - Its shadow DOM: `<div class=\"ui … input\" part=\"input\">` around a native `<textarea part=\"control\">`.\n * - A form control like `<ui-input>` (see `TextControl`); Enter types a new line, and never submits.\n * - Without `rows`, it takes the height of Fomantic's form textarea (`UIInput.css`).\n * - `grow` (epic `ui-gaps` P14; Owen's standing rule: every \"tell me more\" field grows with its text):\n * - `rows` lines to start (one without it), taller as its text wraps, up to `max-rows` lines\n * (else a third of the window), then it scrolls; shorter again as text goes\n * - the browser's own `field-sizing: content` where it has it (`UI.browser.supports.fieldSizing`);\n * elsewhere it MEASURES, on every change of its value (`fitHeight()`)\n * - NOT on a width change alone, where it measures: a field narrowed under its text keeps its height until typed in\n * - `send-on-enter` (epic `atmosphere` T61), as a chat app's box:\n * Enter sends what's typed (`ui-send`, nothing with only spaces in it); Shift-Enter types a new line.\n * Unlike a `<ui-input>`'s Enter, it submits no form: the page decides what sending is.\n ****************/\nexport class UITextarea extends TextControl<typeof textareaVocabulary> {\n @E.proto static vocabulary = textareaVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { input: inputCSS },\n Fallback: InputFallback\n } satisfies Partial<E.ElementSetup>\n\n protected get constraints(): Record<string, unknown> {\n return { required: this.required, minlength: this.minlength, maxlength: this.maxlength }\n }\n\n /** The lines it shows: `rows`; with `grow`, the lines it starts at, one without `rows`. */\n get visibleRows(): number | undefined {\n return this.grow ? (this.rows ?? 1) : this.rows\n }\n\n /** With `grow`: the lines it starts at and stops at, for its sheet. */\n get growStyle(): JSX.CSSProperties | undefined {\n if (!this.grow) return undefined\n const style: JSX.CSSProperties = { \"--_textarea-rows\": String(this.visibleRows) }\n if (this.maxRows) style[\"--_textarea-max\"] = `calc(${this.maxRows} * 1lh + var(--_textarea-chrome))`\n return style\n }\n\n /**\n * With `grow`, where the browser can't grow it (`field-sizing`): its height measured again, on every change of its\n * value and its settings.\n */\n @E.onChange(\"value\", \"isReady\", \"grow\", \"rows\", \"maxRows\")\n protected onGrowChanged() {\n this.fitHeight()\n }\n\n /**\n * As tall as its text, measured: where the browser has no `field-sizing`.\n * - Its sheet caps it (`max-rows`, or a third of the window), and keeps `rows` lines at least.\n * - SIDE EFFECT: writes the native control's inline height; takes it off again without `grow`.\n */\n @E.untracked\n protected fitHeight() {\n const control = this.control\n if (!control) return\n if (!this.grow || UI.browser.supports.fieldSizing) {\n control.style.removeProperty(\"block-size\")\n return\n }\n // the control may not show the new value yet: this effect can run before `onValueChanged()`'s\n this.syncControl()\n control.style.blockSize = \"auto\"\n const borders = control.offsetHeight - control.clientHeight\n control.style.blockSize = `${control.scrollHeight + borders}px`\n }\n\n /** With `send-on-enter`: Enter sends what's typed; Shift-Enter, or Enter while composing an accent, types as usual. */\n private readonly onKeyDown = (event: KeyboardEvent) => {\n if (!this.sendOnEnter || event.key !== UIT.Key.enter || event.shiftKey || event.isComposing) return\n event.preventDefault()\n if (this.isDisabled || this.readonly || !this.value.trim()) return\n this.send(\"ui-send\", { value: this.value, originalEvent: event })\n }\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"input\")}>\n <textarea\n ref={(element) => (this.control = element)}\n class={this.grow ? GROW : undefined}\n style={this.growStyle}\n part={this.partForName(\"control\")}\n rows={this.visibleRows}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete as never}\n disabled={this.isDisabled}\n readonly={this.readonly}\n {...this.constraints}\n {...this.controlAria}\n {...this.staticControl}\n onInput={this.onInput}\n onChange={this.onChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n />\n </div>\n )\n }\n}\n\n/** The native control's class with `grow`: its sheet's growing rules. */\nconst GROW = \"grow\"\n\n/** The vocabulary getters, typed; `TextControl` types the shared ones, and owns `value`. */\nexport interface UITextarea extends Omit<\n E.AttributeValues<typeof textareaVocabulary>,\n keyof CommonAttributes | \"value\"\n> {}\n","/**\n * The input family: defines `<ui-input>` and `<ui-textarea>`, and exports their components.\n * - Also the `input` lib entry (`spell/ui/ui-input`), measured in `notes/report.md`.\n * - SIDE EFFECT: importing it defines the tags.\n */\n\nimport { UIInput } from \"./UIInput\"\nimport { UITextarea } from \"./UITextarea\"\n\nUIInput.define()\nUITextarea.define()\n\nexport { UIInput, UITextarea }\n"],"mappings":";;;;;;;;AAoBA,IAAMoF,KAAc;CAClB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,GAOaC,KAAkB;CAC7B,KAAK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,OAAAA,EAAK;IAAA;;E,QAhBhB+H,UAAM,MAAa,EAAK,UAAUC,GAAlC/H,CAAkC,GAFjC2H,S;GAAO5H,GAAAA,EAAAA,EAAK,SAAA;GAAWE,GAAMF,EAAK,YAAY,OAAO;EAAzC,KAAZ,EAAA,GAAA,QAAA,MAAA;GAAuB,AAAXoI,EAAAnB,GAAA,GAAAoB,GAAA,CAAA,GAAWa,MAAAb,GAAA,KAAA7H,EAAAyG,GAAA,QAAAiC,CAA8B;EAAzC,CAAA,GAAjB/I;CAsBJ;AACF;AAtFO,IAAAW,EAAA2I,CAAA,GA6BLvI,EAAAwI,GAAA,GAAU,iBADVJ,IA5BWK,CAAA,GAuCXzI,EAAAwI,GAAA,GAAU,aADVL,GAtCWM,CAAA,GACFzI,EAAAwI,GAAA,IAAO,cAAhBF,IADWG,CAAA,GAEIzI,EAAAwI,GAAA,IAAO,gBAAtBH,IAFWI,CAAA,GAANxI,EAAAuI,GAAMC,CAAA,GAA0DlJ,EAAAkJ,GAAA,YAAA,GAC5D5I,EADE4I,GACK,cAAavI,EAApBsI,GAAA,GADEC,GACkB9H,EAAA,CAAA,GAApBT,EAAAsI,GAAA,IADEC,CAAA,GAEI5I,EAFJ4I,GAEW,gBAAevI,EAAtBsI,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,OAAOjJ,EAAS;CAC/B,UAAU0C;AACZ,CAAA,CAAA,GAHehC,EAAAsI,GAAA,IAFJC,CAAA;AAAN,IAAMM,KAANN,GAyFDK,KAAO;AC3Gbb,GAAQ,OAAO,GACfc,GAAW,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-item/ui-item.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-item>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-item\" data-omit=\"\">\n <ui-property-group label=\"Name\" data-group=\"name\">\n <ui-property name=\"label\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"description\"></ui-property>\n <ui-property name=\"icon\"></ui-property>\n <ui-property name=\"image\"></ui-property>\n <ui-property name=\"flag\"></ui-property>\n <ui-property name=\"kind\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"color\"></ui-property>\n <ui-property name=\"appearance\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"position\"></ui-property>\n <ui-property name=\"padding\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"States\" data-group=\"states\">\n <ui-property name=\"disabled\"></ui-property>\n <ui-property name=\"selected\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Form\" data-group=\"form\">\n <ui-property name=\"value\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Link\" data-group=\"link\">\n <ui-property name=\"link\"></ui-property>\n <ui-property name=\"target\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-item.editor-BlWp1HXu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-item.editor-BlWp1HXu.js","names":["ui_item_editor_default"],"sources":[],"mappings":""}
|