spell-ui 0.8.6 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-components.md +14 -6
- package/README-frameworks.md +22 -12
- package/README-migrating.md +7 -6
- package/README-runtime.md +14 -13
- package/README-site.md +11 -11
- package/README-themes.md +38 -11
- package/README.md +61 -73
- package/dist/Dragging-CMZoLEWQ.js +169 -0
- package/dist/Dragging-CMZoLEWQ.js.map +1 -0
- package/dist/{MarkdownEngine-CbuT9Mjc.js → MarkdownEngine-CW1WGqNp.js} +122 -100
- package/dist/MarkdownEngine-CW1WGqNp.js.map +1 -0
- package/dist/{PrefStore-CeaTtjTz.js → PrefStore-Qv0e5y04.js} +22 -22
- package/dist/PrefStore-Qv0e5y04.js.map +1 -0
- package/dist/ScrollingRow-7n7Z-HIE.js +88 -0
- package/dist/ScrollingRow-7n7Z-HIE.js.map +1 -0
- package/dist/SitePages-CciwREek.js +51 -0
- package/dist/SitePages-CciwREek.js.map +1 -0
- package/dist/{SlottedItems-Ch0tzzlL.js → SlottedItems-Du3aJwG1.js} +22 -22
- package/dist/{SlottedItems-Ch0tzzlL.js.map → SlottedItems-Du3aJwG1.js.map} +1 -1
- package/dist/ThemeDraft-B7NPif4d.js +805 -0
- package/dist/ThemeDraft-B7NPif4d.js.map +1 -0
- package/dist/TreeMeasure-BVJeGb1L.js +42 -0
- package/dist/TreeMeasure-BVJeGb1L.js.map +1 -0
- package/dist/UIButton-DFEds67r.js +6 -0
- package/dist/UIButton-DFEds67r.js.map +1 -0
- package/dist/UIInput-BodVbUoQ.js +6 -0
- package/dist/UIInput-BodVbUoQ.js.map +1 -0
- package/dist/{UIKeys-DJF2TIKE.js → UIKeys-Rh_gUZjP.js} +10 -9
- package/dist/UIKeys-Rh_gUZjP.js.map +1 -0
- package/dist/UILabel-DgJUBzB_.js +6 -0
- package/dist/UILabel-DgJUBzB_.js.map +1 -0
- package/dist/UIMenu-zdcAtwTa.js +42 -0
- package/dist/UIMenu-zdcAtwTa.js.map +1 -0
- package/dist/{UIRuntime-BBuehGly.js → UIRuntime-KH309p5B.js} +398 -207
- package/dist/UIRuntime-KH309p5B.js.map +1 -0
- package/dist/_spell-element/DOMElement.d.ts +62 -5
- package/dist/_spell-element/MoveAndResize.d.ts +75 -0
- package/dist/_spell-element/UIComponent.d.ts +42 -0
- package/dist/_spell-element/elements.types.d.ts +47 -0
- package/dist/_spell-element/index.d.ts +1 -0
- package/dist/_spell-element/vocabulary.types.d.ts +34 -2
- package/dist/{runtime → _util}/Api.d.ts +14 -4
- package/dist/_util/Dragging.d.ts +148 -0
- package/dist/_util/ListSelection.d.ts +46 -0
- package/dist/{util → _util}/LoadOnce.d.ts +9 -1
- package/dist/_util/ReconnectingSocket.d.ts +51 -0
- package/dist/_util/diagram/DiagramColumns.d.ts +14 -0
- package/dist/_util/diagram/DiagramLayout.d.ts +119 -0
- package/dist/_util/diagram/DiagramSVG.d.ts +17 -0
- package/dist/_util/dom.d.ts +10 -0
- package/dist/_util/fetching.d.ts +92 -0
- package/dist/_util/measures/Dimension.d.ts +63 -0
- package/dist/_util/measures/MeasureSystem.d.ts +66 -0
- package/dist/_util/measures/dimensions.generated.d.ts +16 -0
- package/dist/_util/persist/ColorScheme.d.ts +6 -0
- package/dist/_util/persist/ServerPlace.d.ts +42 -0
- package/dist/_util/persist/WaitedOnPlace.d.ts +27 -0
- package/dist/_util/persist/persist.types.d.ts +21 -2
- package/dist/_util/timing.d.ts +10 -1
- package/dist/api.js +8 -7
- package/dist/api.js.map +1 -1
- package/dist/components/ComponentDefinitions.d.ts +29 -0
- package/dist/components/components.es.d.ts +13 -0
- package/dist/components/components.types.d.ts +113 -8
- package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
- package/dist/components/ui-action/UIAction.en.d.ts +5 -1
- package/dist/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
- package/dist/components/ui-button/UIButton.d.ts +8 -3
- package/dist/components/ui-button/UIButton.en.d.ts +9 -4
- package/dist/components/ui-button/UIButton.es.d.ts +6 -0
- package/dist/components/ui-button/UIButton.fallback.d.ts +8 -3
- package/dist/components/ui-button/UIButtons.d.ts +1 -0
- package/dist/components/ui-button/UIButtons.en.d.ts +1 -0
- package/dist/components/ui-button/UIOr.d.ts +1 -0
- package/dist/components/ui-button/UIOr.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
- package/dist/components/ui-card/CardClicks.d.ts +40 -0
- package/dist/components/ui-card/UICard.d.ts +41 -0
- package/dist/components/ui-card/UICard.en.d.ts +49 -0
- package/dist/components/ui-card/UICard.es.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +31 -0
- package/dist/components/ui-card/UICards.en.d.ts +31 -0
- package/dist/components/ui-card/UICards.es.d.ts +8 -0
- package/dist/components/ui-checkbox/CheckControl.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.es.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.types.d.ts +5 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +8 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +6 -0
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
- package/dist/components/ui-components/PackHotSwap.d.ts +13 -3
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +11 -0
- package/dist/components/ui-container/UIContainer.en.d.ts +7 -0
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +268 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +106 -0
- package/dist/components/ui-diagram/UIDiagram.es.d.ts +37 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +98 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +38 -0
- package/dist/components/ui-diagram/UIDiagramNode.es.d.ts +16 -0
- package/dist/components/ui-diagram/index.d.ts +8 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +81 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +54 -0
- package/dist/components/ui-dimension/UIDimension.es.d.ts +22 -0
- package/dist/components/ui-dimension/index.d.ts +2 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +6 -1
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.es.d.ts +1 -1
- package/dist/components/ui-divider/UIDivider.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.es.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +4 -2
- package/dist/components/ui-example/UIExample.es.d.ts +3 -2
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/FormBinding.d.ts +13 -1
- package/dist/components/ui-form/FormFields.d.ts +4 -4
- package/dist/components/ui-form/UIField.d.ts +30 -3
- package/dist/components/ui-form/UIField.en.d.ts +9 -0
- package/dist/components/ui-form/UIField.es.d.ts +6 -0
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +15 -0
- package/dist/components/ui-form/UIForm.en.d.ts +6 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-form/index.d.ts +2 -1
- package/dist/components/ui-grid/UIColumn.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.en.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +3 -2
- package/dist/components/ui-icon/UIIcon.en.d.ts +3 -2
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
- package/dist/components/ui-image/UIImage.d.ts +34 -0
- package/dist/components/ui-image/UIImage.en.d.ts +23 -0
- package/dist/components/ui-image/UIImage.es.d.ts +2 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/TextControl.d.ts +7 -0
- package/dist/components/ui-input/UIInput.d.ts +22 -3
- package/dist/components/ui-input/UIInput.en.d.ts +9 -2
- package/dist/components/ui-input/UIInput.es.d.ts +2 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +9 -2
- package/dist/components/ui-input/UITextarea.d.ts +20 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +15 -0
- package/dist/components/ui-input/UITextarea.es.d.ts +4 -0
- package/dist/components/ui-item/UIItem.d.ts +27 -4
- package/dist/components/ui-item/UIItem.en.d.ts +5 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/JsonChild.d.ts +30 -0
- package/dist/components/ui-json/UIJson.d.ts +128 -0
- package/dist/components/ui-json/UIJson.en.d.ts +71 -0
- package/dist/components/ui-json/UIJson.es.d.ts +12 -0
- package/dist/components/ui-json/index.d.ts +3 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +2 -0
- package/dist/components/ui-label/UILabel.en.d.ts +2 -0
- package/dist/components/ui-label/UILabel.es.d.ts +1 -0
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +2 -0
- package/dist/components/ui-list/UIList.en.d.ts +2 -0
- package/dist/components/ui-list/UIList.es.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +143 -0
- package/dist/components/ui-markdown/MarkdownEngine.d.ts +14 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +95 -0
- package/dist/components/ui-markdown/MarkdownSource.d.ts +57 -0
- package/dist/components/ui-markdown/UIMarkdown.d.ts +126 -6
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +111 -8
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +29 -1
- package/dist/components/ui-markdown/UIMarkdown.types.d.ts +26 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +79 -0
- package/dist/components/ui-menu/TitleFit.d.ts +3 -0
- package/dist/components/ui-menu/UIMenu.d.ts +97 -4
- package/dist/components/ui-menu/UIMenu.en.d.ts +50 -1
- package/dist/components/ui-menu/UIMenu.es.d.ts +4 -0
- package/dist/components/ui-message/UIMessage.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.en.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.es.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +1 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +15 -0
- package/dist/components/ui-page/UIPage.en.d.ts +15 -0
- package/dist/components/ui-page/UIPage.es.d.ts +1 -0
- package/dist/components/ui-panel/UIPanel.d.ts +6 -0
- package/dist/components/ui-panel/UIPanel.en.d.ts +33 -20
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.en.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +3 -1
- package/dist/components/ui-parts/UIHeader.en.d.ts +3 -1
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +15 -1
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +30 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +7 -0
- package/dist/components/ui-popup/UIPopup.es.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.en.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.es.d.ts +1 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +132 -5
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +11 -44
- package/dist/components/ui-property-editor/UIProperty.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +38 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +33 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +12 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +2 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.es.d.ts +9 -0
- package/dist/components/ui-property-editor/index.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +6 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.d.ts +18 -3
- package/dist/components/ui-root/UIRoot.en.d.ts +15 -0
- package/dist/components/ui-root/UIRoot.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +48 -7
- package/dist/components/ui-search/UISearch.en.d.ts +13 -1
- package/dist/components/ui-search/UISearch.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +13 -1
- package/dist/components/ui-section/UISection.d.ts +22 -1
- package/dist/components/ui-section/UISection.en.d.ts +10 -0
- package/dist/components/ui-section/UISection.es.d.ts +1 -0
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.en.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.es.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +6 -0
- package/dist/components/ui-select/UISelect.en.d.ts +6 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +6 -0
- package/dist/components/ui-shape/UIShape.d.ts +23 -2
- package/dist/components/ui-shape/UIShape.en.d.ts +8 -0
- package/dist/components/ui-shape/UIShape.es.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +4 -0
- package/dist/components/ui-shape/UISide.en.d.ts +4 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +209 -0
- package/dist/components/ui-sides/UISides.en.d.ts +122 -0
- package/dist/components/ui-sides/UISides.es.d.ts +30 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +134 -0
- package/dist/components/ui-sides/index.d.ts +2 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +53 -0
- package/dist/components/ui-site-nav/UISiteNav.d.ts +207 -0
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +87 -0
- package/dist/components/ui-site-nav/UISiteNav.es.d.ts +29 -0
- package/dist/components/ui-site-nav/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +126 -0
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +49 -0
- package/dist/components/ui-site-tabs/UISiteTabs.es.d.ts +18 -0
- package/dist/components/ui-site-tabs/index.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.es.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +7 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +175 -0
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +74 -0
- package/dist/components/ui-split-panel/UISplitPanel.es.d.ts +25 -0
- package/dist/components/ui-split-panel/index.d.ts +2 -0
- package/dist/components/ui-stack/UIStack.d.ts +31 -5
- package/dist/components/ui-stack/UIStack.en.d.ts +15 -3
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +1 -0
- package/dist/components/ui-step/UISteps.en.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.d.ts +4 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +8 -0
- package/dist/components/ui-tab/UITab.en.d.ts +1 -0
- package/dist/components/ui-tab/UITabs.d.ts +107 -16
- package/dist/components/ui-tab/UITabs.en.d.ts +40 -1
- package/dist/components/ui-tab/UITabs.es.d.ts +4 -0
- package/dist/components/ui-table/TableEditing.d.ts +77 -0
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +145 -5
- package/dist/components/ui-table/UITable.en.d.ts +19 -0
- package/dist/components/ui-table/UITable.es.d.ts +3 -0
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +11 -0
- package/dist/components/ui-text/UILink.en.d.ts +4 -0
- package/dist/components/ui-text/UIText.d.ts +7 -0
- package/dist/components/ui-text/UIText.en.d.ts +7 -0
- package/dist/components/ui-text/UIText.es.d.ts +2 -0
- package/dist/components/ui-theme-editor/SavedTheme.d.ts +55 -43
- package/dist/components/ui-theme-editor/ThemeDraft.d.ts +15 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +157 -26
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +79 -6
- package/dist/components/ui-theme-editor/UIThemeEditor.es.d.ts +20 -2
- package/dist/components/ui-theme-editor/UIThemeEditor.types.d.ts +0 -2
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/HueDropdown.d.ts +47 -0
- package/dist/components/ui-theme-menu/ThemeMenu.d.ts +18 -7
- package/dist/components/ui-theme-menu/ThemePreference.d.ts +145 -36
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +118 -7
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +82 -2
- package/dist/components/ui-theme-menu/UIThemeMenu.es.d.ts +21 -1
- package/dist/components/ui-theme-menu/UIThemeMenu.types.d.ts +36 -8
- package/dist/components/ui-theme-menu/index.d.ts +2 -1
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +13 -10
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +138 -84
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +2 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +162 -0
- package/dist/components/ui-tree/UITree.en.d.ts +88 -0
- package/dist/components/ui-tree/UITree.es.d.ts +35 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +204 -0
- package/dist/components/ui-tree/UITreeItem.en.d.ts +142 -0
- package/dist/components/ui-tree/UITreeItem.es.d.ts +32 -0
- package/dist/components/ui-tree/index.d.ts +3 -0
- package/dist/components/ui-tree-diagram/TreeData.d.ts +3 -12
- package/dist/components/ui-tree-diagram/TreeLayout.d.ts +54 -21
- package/dist/components/ui-tree-diagram/TreeMeasure.d.ts +36 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +152 -27
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +47 -7
- package/dist/components/ui-tree-diagram/UITreeDiagram.es.d.ts +12 -1
- package/dist/components/ui-tree-diagram/UITreeDiagram.types.d.ts +66 -21
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +148 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +69 -0
- package/dist/components/ui-tree-diagram/UITreeNode.es.d.ts +21 -0
- package/dist/components/ui-tree-diagram/index.d.ts +4 -2
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-DmLzT-Bq.js → components.es-BOa_7gFF.js} +498 -109
- package/dist/components.es-BOa_7gFF.js.map +1 -0
- package/dist/core.d.ts +3 -1
- package/dist/core.js +1082 -511
- package/dist/core.js.map +1 -1
- package/dist/crisp-VfYZlTph.js +6 -0
- package/dist/{crisp-CoZRRDuQ.js.map → crisp-VfYZlTph.js.map} +1 -1
- package/dist/docs-components/index.d.ts +1 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.d.ts +89 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.en.d.ts +43 -0
- package/dist/docs-components/ui-docs-index/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.d.ts +54 -87
- package/dist/docs-components/ui-docs-nav/UIDocsNav.types.d.ts +2 -29
- package/dist/docs-components/ui-docs-search/SearchIndex.d.ts +8 -2
- package/dist/docs-components/ui-docs-search/UIDocsSearch.d.ts +10 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.en.d.ts +5 -0
- package/dist/elements/AddressParameter.d.ts +87 -0
- package/dist/elements/DOMFormControl.d.ts +5 -0
- package/dist/elements/FormComponent.d.ts +32 -0
- package/dist/elements/LoadableBody.d.ts +6 -1
- package/dist/elements/LoadableComponent.d.ts +10 -1
- package/dist/elements/RootSettings.d.ts +43 -6
- package/dist/elements/SpellUISettings.d.ts +1 -0
- package/dist/elements/StickyWatch.d.ts +20 -0
- package/dist/elements/elements.types.d.ts +15 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/forms.js +93 -63
- package/dist/forms.js.map +1 -1
- package/dist/fruity-BRVlgJZd.js +6 -0
- package/dist/fruity-BRVlgJZd.js.map +1 -0
- package/dist/{fruity.theme-BJcMiPl1.js → fruity.theme-CbC7Jyvk.js} +2 -2
- package/dist/fruity.theme-CbC7Jyvk.js.map +1 -0
- package/dist/glass-x9tbbwVq.js +6 -0
- package/dist/glass-x9tbbwVq.js.map +1 -0
- package/dist/glass.theme-24wY2wH9.js +6 -0
- package/dist/glass.theme-24wY2wH9.js.map +1 -0
- package/dist/hot.js +530 -24
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +91 -81
- package/dist/jsx.d.ts +21149 -10377
- package/dist/matrix-QY2gWbJ0.js +6 -0
- package/dist/{matrix-CqA59hiF.js.map → matrix-QY2gWbJ0.js.map} +1 -1
- package/dist/{matrix.theme-jqQZjcq3.js → matrix.theme-_8xtwhDq.js} +2 -2
- package/dist/matrix.theme-_8xtwhDq.js.map +1 -0
- package/dist/midnight-BxlTQSfw.js +6 -0
- package/dist/{midnight-BnoVOrhC.js.map → midnight-BxlTQSfw.js.map} +1 -1
- package/dist/mockup-83ELBuVr.js +6 -0
- package/dist/mockup-83ELBuVr.js.map +1 -0
- package/dist/mockup.theme-DmpBgGBl.js +6 -0
- package/dist/mockup.theme-DmpBgGBl.js.map +1 -0
- package/dist/paper-M61nUilz.js +6 -0
- package/dist/{paper-CynH8ZuT.js.map → paper-M61nUilz.js.map} +1 -1
- package/dist/persist.types-D2m6wD-S.js +9 -0
- package/dist/persist.types-D2m6wD-S.js.map +1 -0
- package/dist/pop-CxXfytjk.js +6 -0
- package/dist/{pop-D2i9V_rG.js.map → pop-CxXfytjk.js.map} +1 -1
- package/dist/runtime/DataTooltips.d.ts +75 -0
- package/dist/runtime/PropertyControls.d.ts +15 -1
- package/dist/runtime/Sources.d.ts +16 -4
- package/dist/runtime/Styles.d.ts +11 -0
- package/dist/runtime/Themes.d.ts +10 -4
- package/dist/runtime/UIRuntime.d.ts +4 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/runtime.types.d.ts +18 -85
- package/dist/spell-By5Y3jKP.js +6 -0
- package/dist/{spell-BFtLICm7.js.map → spell-By5Y3jKP.js.map} +1 -1
- package/dist/{spell.theme-B7AU7SQX.js → spell.theme-DxGj7qHx.js} +2 -2
- package/dist/spell.theme-DxGj7qHx.js.map +1 -0
- package/dist/styles/CodeThemeFile.d.ts +73 -0
- package/dist/styles/StyleGenerator.d.ts +6 -0
- package/dist/styles/styles.en.d.ts +141 -3
- package/dist/styles/styles.types.d.ts +2 -0
- package/dist/{styles.en-RLpYiO5_.js → styles.en-CUUxNwHo.js} +71 -14
- package/dist/styles.en-CUUxNwHo.js.map +1 -0
- package/dist/styles.js +13 -13
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.js +54 -53
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.js +20 -19
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-ad.js +5 -4
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-breadcrumbs.js +15 -13
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.js +132 -125
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-calendar.js +208 -206
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.js +260 -98
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-checkbox.js +95 -81
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.js +25 -24
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-comment.js +14 -12
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-components.js +7 -6
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.js +24 -12
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-diagram.js +1328 -0
- package/dist/ui-diagram.js.map +1 -0
- package/dist/ui-dimension.js +779 -0
- package/dist/ui-dimension.js.map +1 -0
- package/dist/ui-dimmer.js +36 -34
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.js +7 -5
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.js +107 -105
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.js +36 -35
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.js +10 -9
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-example.js +63 -61
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-feed.js +12 -10
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-flag.js +10 -9
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.js +7 -6
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.js +244 -162
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.js +21 -18
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-icon-picker.js +46 -44
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.js +17 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-image.js +93 -55
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-include.js +18 -17
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.js +154 -112
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.js +152 -102
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.js +9 -8
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.js +115 -0
- package/dist/ui-json.js.map +1 -0
- package/dist/ui-keys.js +1 -1
- package/dist/ui-label.js +18 -15
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-list.js +7 -5
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.js +7 -6
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.js +975 -83
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.js +329 -196
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.js +20 -18
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-modal.js +46 -45
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.js +19 -18
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-page.js +8 -7
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.js +28 -17
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +66 -52
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder.js +21 -16
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.js +113 -84
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.js +9 -7
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.js +706 -203
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-quote.js +5 -4
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-rail.js +5 -4
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.js +31 -29
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-reveal.js +7 -6
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.js +324 -158
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-search.js +210 -168
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.js +124 -92
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-segment.js +15 -12
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-select.js +83 -81
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.js +86 -58
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-sidebar.js +59 -56
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.js +325 -0
- package/dist/ui-sides.js.map +1 -0
- package/dist/ui-site-nav.js +329 -0
- package/dist/ui-site-nav.js.map +1 -0
- package/dist/ui-site-tabs.js +177 -0
- package/dist/ui-site-tabs.js.map +1 -0
- package/dist/ui-slider.js +84 -81
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.js +7 -6
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.js +298 -0
- package/dist/ui-split-panel.js.map +1 -0
- package/dist/ui-stack.js +47 -23
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.js +15 -13
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-step.js +31 -29
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-sticky.js +7 -6
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-tab.js +230 -138
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.js +724 -162
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-terms.js +12 -10
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.js +53 -28
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-theme-editor.js +1018 -1545
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js +1493 -0
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +1 -0
- package/dist/ui-toast.js +45 -44
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.js +75 -74
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.js +51 -73
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.js +12 -11
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.js +676 -197
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree.js +625 -0
- package/dist/ui-tree.js.map +1 -0
- package/dist/ui-video.js +13 -11
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.js +26 -25
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.js +79 -78
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +28 -0
- package/dist/util/index.d.ts +5 -2
- package/dist/vocabulary/DefaultValues.d.ts +34 -0
- package/dist/vocabulary/SharedVocabulary.d.ts +4 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +7 -0
- package/dist/vocabulary/ValueSets.d.ts +18 -0
- package/dist/vocabulary/Vocabulary.d.ts +1 -0
- package/dist/vocabulary/defaults.generated.d.ts +6 -0
- package/dist/vocabulary/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/MarkdownEngine-CbuT9Mjc.js.map +0 -1
- package/dist/PrefStore-CeaTtjTz.js.map +0 -1
- package/dist/UIButton-XkfGqgh6.js +0 -6
- package/dist/UIButton-XkfGqgh6.js.map +0 -1
- package/dist/UIInput-BUudZstW.js +0 -6
- package/dist/UIInput-BUudZstW.js.map +0 -1
- package/dist/UIKeys-DJF2TIKE.js.map +0 -1
- package/dist/UILabel-C1jy3Yl8.js +0 -6
- package/dist/UILabel-C1jy3Yl8.js.map +0 -1
- package/dist/UIMenu-Btd-8V3A.js +0 -42
- package/dist/UIMenu-Btd-8V3A.js.map +0 -1
- package/dist/UIRuntime-BBuehGly.js.map +0 -1
- package/dist/components.es-DmLzT-Bq.js.map +0 -1
- package/dist/crisp-CoZRRDuQ.js +0 -6
- package/dist/fruity-CQFYeRlh.js +0 -6
- package/dist/fruity-CQFYeRlh.js.map +0 -1
- package/dist/fruity.theme-BJcMiPl1.js.map +0 -1
- package/dist/glass-CAfW11kL.js +0 -6
- package/dist/glass-CAfW11kL.js.map +0 -1
- package/dist/glass.theme-DQcBbtCW.js +0 -6
- package/dist/glass.theme-DQcBbtCW.js.map +0 -1
- package/dist/matrix-CqA59hiF.js +0 -6
- package/dist/matrix.theme-jqQZjcq3.js.map +0 -1
- package/dist/midnight-BnoVOrhC.js +0 -6
- package/dist/paper-CynH8ZuT.js +0 -6
- package/dist/persist.types-CsZxS8TG.js +0 -9
- package/dist/persist.types-CsZxS8TG.js.map +0 -1
- package/dist/pop-D2i9V_rG.js +0 -6
- package/dist/spell-BFtLICm7.js +0 -6
- package/dist/spell.theme-B7AU7SQX.js.map +0 -1
- package/dist/styles.en-RLpYiO5_.js.map +0 -1
- package/dist/ui-theme-menu-DyKZygpV.js +0 -921
- package/dist/ui-theme-menu-DyKZygpV.js.map +0 -1
|
@@ -29,6 +29,7 @@ declare const HTMLElementOrShim: typeof HTMLElement;
|
|
|
29
29
|
* - a property per attribute (`button.size = "large"`), and writing it back to the attribute ("reflection")
|
|
30
30
|
* - properties a page set before the tag was defined, kept ("the upgrade step")
|
|
31
31
|
* - the `ready` promise, custom states, the link to the component, swallowing clicks while disabled
|
|
32
|
+
* - the nearest root's defaults for the attributes it doesn't set (see "Root defaults")
|
|
32
33
|
* - Each tag gets its OWN subclass, made by `UIComponent.define()` (`DOMElement.subclassForTag()`):
|
|
33
34
|
* its `tagSetup` says which attributes it has and how to build its component (see "The tag", at the end).
|
|
34
35
|
*
|
|
@@ -69,7 +70,9 @@ export declare class DOMElement<C extends E.UIComponent<any> = E.UIComponent<any
|
|
|
69
70
|
* - read the markup's attributes for the family's script API (`<ui-code content="...">`)
|
|
70
71
|
* - build and render the component
|
|
71
72
|
* - hand it what the browser reported before it existed
|
|
72
|
-
* - Every time:
|
|
73
|
+
* - Every time:
|
|
74
|
+
* - the nearest root's defaults, and follow them while connected ("Root defaults")
|
|
75
|
+
* - the component's `onConnect()`
|
|
73
76
|
* - NEVER writes default values to attributes: a bare element grows no attributes, as a native one doesn't.
|
|
74
77
|
*/
|
|
75
78
|
connectedCallback(): void;
|
|
@@ -168,6 +171,28 @@ export declare class DOMElement<C extends E.UIComponent<any> = E.UIComponent<any
|
|
|
168
171
|
private captureUpgradeValues;
|
|
169
172
|
/** First-connect step: set the captured values again, through the real setters (so they reflect). */
|
|
170
173
|
private restoreUpgradeValues;
|
|
174
|
+
/**
|
|
175
|
+
* Note whether the element now sets `attribute` itself; when it stopped, take the root's default again.
|
|
176
|
+
* - `isOwn`: its attribute is written, or a property set it to something but `undefined` / `null`.
|
|
177
|
+
*/
|
|
178
|
+
private markOwnValue;
|
|
179
|
+
/**
|
|
180
|
+
* Connect step: take the nearest root's defaults now, then follow them until the element disconnects.
|
|
181
|
+
* - Now, untracked: so the first render already draws them, and an effect that inserted the element tracks nothing.
|
|
182
|
+
* - Then a Solid effect of its own (`Reactive.ownRoot()`): safe in a `connectedCallback()` Solid's insertion runs.
|
|
183
|
+
*/
|
|
184
|
+
private followRootDefaults;
|
|
185
|
+
/** Stop following the roots' defaults (disconnected, or released); the values stay as they are. */
|
|
186
|
+
private stopFollowingRootDefaults;
|
|
187
|
+
/**
|
|
188
|
+
* Store each default the element doesn't set itself; one no root gives any more goes back to its starting value.
|
|
189
|
+
* - Nothing is stored, and nobody told, where the value is already that.
|
|
190
|
+
*/
|
|
191
|
+
private applyRootDefaults;
|
|
192
|
+
/** Store a default's `value` for `attribute` (source `"default"`), unless it's already there. */
|
|
193
|
+
private storeIfChanged;
|
|
194
|
+
/** The component set's defaults (`SpellSolidSettings.defaults`); `undefined` when it has none, or none are installed. */
|
|
195
|
+
private static get defaultSettings();
|
|
171
196
|
/**
|
|
172
197
|
* Where the component draws: the shadow root, made on first use with the tag's `shadowRootInit`.
|
|
173
198
|
* - A shadow root the server rendered (a declarative `<template shadowrootmode>`) is used as is,
|
|
@@ -253,8 +278,9 @@ export declare class DOMElement<C extends E.UIComponent<any> = E.UIComponent<any
|
|
|
253
278
|
* Its family has loaded: `Class`, defined early, becomes `Base`'s with `tag`'s setup, and every pending element
|
|
254
279
|
* of it is set up as an upgrade would (its attributes read, properties set early taken, connected again).
|
|
255
280
|
* - `UIComponent.define()` calls it, for a tag already defined early.
|
|
256
|
-
* - throws a `TypeError` when the root's catalog no longer matches the family (form
|
|
257
|
-
* attributes): the platform fixed those when the tag was defined, so its catalog must be
|
|
281
|
+
* - throws a `StaleCatalogError` (a `TypeError`) when the root's catalog no longer matches the family (form
|
|
282
|
+
* control, observed attributes): the platform fixed those when the tag was defined, so its catalog must be
|
|
283
|
+
* regenerated
|
|
258
284
|
*/
|
|
259
285
|
static attach(Class: DOMElementClass, Base: AnyDOMElementClass, tag: TagSetup): void;
|
|
260
286
|
/** Is `element` pending: its tag defined early, its family not loaded yet? */
|
|
@@ -267,6 +293,34 @@ export declare class DOMElement<C extends E.UIComponent<any> = E.UIComponent<any
|
|
|
267
293
|
static readonly notAttached = ":is(:not(:defined), :state(pending))";
|
|
268
294
|
/** `attach()`'s step for one pending element: what its constructor and the upgrade would have done. */
|
|
269
295
|
private attachPending;
|
|
296
|
+
/**
|
|
297
|
+
* SIDE EFFECT: `Class` takes `next`, a definition with MORE attributes, in place: its live `elements` keep
|
|
298
|
+
* everything they had, and gain the new attributes.
|
|
299
|
+
* - The new attributes' properties go on `Class.prototype` (`defineProperties()`).
|
|
300
|
+
* - Each element's value of a new attribute: converted from its attribute, if it has one, else the starting value.
|
|
301
|
+
* - Each element hears the new attributes (`watchAttributes()`), as one made from now on does.
|
|
302
|
+
* - NEVER re-renders: the elements' components stay as they are, and read the new values through their element.
|
|
303
|
+
* - `elements`: every element of `Class` still in memory, connected or not.
|
|
304
|
+
* - throws a `TypeError`, changing nothing, when `next` drops an attribute `Class` has,
|
|
305
|
+
* or when a new attribute's property would hide a member of the element (as a first definition would)
|
|
306
|
+
*/
|
|
307
|
+
static addAttributes(Class: DOMElementClass, next: TagSetup, elements: Iterable<DOMElement>): void;
|
|
308
|
+
/**
|
|
309
|
+
* The attributes the platform observes for `Class`: fixed when it was defined.
|
|
310
|
+
* - Recorded the first time a tag grows, before its definition changes:
|
|
311
|
+
* `observedAttributes` reads the CURRENT definition, not what the platform took.
|
|
312
|
+
*/
|
|
313
|
+
static observedByPlatform(Class: DOMElementClass): string[];
|
|
314
|
+
/** The attributes `Class`'s current definition observes and the platform doesn't (`watchAttributes()`). */
|
|
315
|
+
static unobserved(Class: DOMElementClass): string[];
|
|
316
|
+
/**
|
|
317
|
+
* Hear the attributes `domElement`'s tag observes now and the platform doesn't (its tag grew), as
|
|
318
|
+
* DOM API `attributeChangedCallback()` would: a `MutationObserver` on the element calls it.
|
|
319
|
+
* - after the platform's reports: a mutation observer's callback runs in a microtask
|
|
320
|
+
* - `replay`: report the ones it has already too (an element made after the tag grew, its markup's attributes)
|
|
321
|
+
* - none left: stops listening
|
|
322
|
+
*/
|
|
323
|
+
static watchAttributes(domElement: DOMElement, replay?: "replay"): void;
|
|
270
324
|
/**
|
|
271
325
|
* What every DOM element tells hot reload (`HotDefinitions` installs it): that it was made, and where each
|
|
272
326
|
* attribute value came from.
|
|
@@ -313,8 +367,11 @@ export type EarlyTag = {
|
|
|
313
367
|
};
|
|
314
368
|
/** A change callback (`addPropertyChangedCallback()`): key, new value, old value, where it came from. */
|
|
315
369
|
export type PropertyChangedCallback = (key: string, value: unknown, old: unknown, source: ValueSource) => void;
|
|
316
|
-
/**
|
|
317
|
-
|
|
370
|
+
/**
|
|
371
|
+
* Where an attribute value came from: its attribute's text, a property write,
|
|
372
|
+
* or the nearest root's default ("Root defaults").
|
|
373
|
+
*/
|
|
374
|
+
export type ValueSource = "attribute" | "property" | "default";
|
|
318
375
|
/** Hot reload's hooks into every DOM element: `HotDefinitions` installs them, in development only. */
|
|
319
376
|
export type DOMElementHotHooks = {
|
|
320
377
|
/** a DOM element was made */
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/****************
|
|
2
|
+
* ### `MoveAndResize`
|
|
3
|
+
* The shared `movable` and `resizable` of every element (Spell UI's `SharedVocabulary`; epic `mockup` P14, J35):
|
|
4
|
+
* people drag the element to a new place inside its container, or drag its corner to resize it.
|
|
5
|
+
*
|
|
6
|
+
* - Which way, as both attributes write it: bare or `both`, `horizontally`, `vertically` (`MoveAndResize.wayOf()`).
|
|
7
|
+
* - Resizing: the browser's own grip in the bottom right corner (CSS `resize`), so plain CSS limits it:
|
|
8
|
+
* `max-width: 50%`, `min-height: 4em` on the element.
|
|
9
|
+
* - Moving: a press anywhere on it but a control of its own (a button, a field, a link) and the resize grip;
|
|
10
|
+
* it moves by its `translate`, held inside its parent's box, along one axis when the attribute says so.
|
|
11
|
+
* - Remembered, for an element with an `id`: where it was put and the size it was given, for each person
|
|
12
|
+
* (`ui-element:<id>` in the browser's storage), and given back when it's next drawn.
|
|
13
|
+
* - The drag is the kit's `Dragging`, its owner placing it (`placing`): so a drag starts past the same few
|
|
14
|
+
* pixels, Escape puts it back, and the click after a real drag is swallowed, as every drag in Spell does.
|
|
15
|
+
* - Plain DOM, no Solid: `UIComponent` hands it the element and the two ways, and stops it when they change.
|
|
16
|
+
* - `Dragging` and `PrefStore` are loaded on the first press or the first remembered element:
|
|
17
|
+
* every page loads this folder, and few move anything.
|
|
18
|
+
* - NOTE: a `<ui-diagram-node>` keeps its own `resizable`: its host draws nothing (`display: contents`),
|
|
19
|
+
* so it resizes its content box, with the same words (`wayOf()`).
|
|
20
|
+
****************/
|
|
21
|
+
export declare class MoveAndResize {
|
|
22
|
+
private readonly element;
|
|
23
|
+
private readonly move;
|
|
24
|
+
private readonly resize;
|
|
25
|
+
/**
|
|
26
|
+
* What `movable` or `resizable` says: `both`, `horizontally`, `vertically`, or `undefined` (off).
|
|
27
|
+
* - Bare (`""`) and `"both"` are both ways; `"false"` and anything else unknown is off.
|
|
28
|
+
*/
|
|
29
|
+
static wayOf(value: unknown): MoveWay | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Make `element` movable and / or resizable, the ways given; returns what stops it.
|
|
32
|
+
* - SIDE EFFECT: writes its `style` (`resize`, `overflow`, `translate`, `width` / `height`, `cursor`, `touch-action`);
|
|
33
|
+
* the cleanup takes back what it wrote.
|
|
34
|
+
* - NEVER throws: storage that can't be read is no remembered place.
|
|
35
|
+
*/
|
|
36
|
+
static start(element: HTMLElement, { move, resize }: MoveAndResizeWays): () => void;
|
|
37
|
+
private constructor();
|
|
38
|
+
/** Ends its listeners. */
|
|
39
|
+
private readonly listening;
|
|
40
|
+
/** Where it's been moved to, from where it was drawn, in pixels. */
|
|
41
|
+
private moved;
|
|
42
|
+
/** Stop: the listeners end, and its style is as it was, but for a size or place a person gave it. */
|
|
43
|
+
private readonly stop;
|
|
44
|
+
/** A press: on the resize grip, the browser's; on a control of its own, the control's; else maybe a move. */
|
|
45
|
+
private readonly onPress;
|
|
46
|
+
/** A move: the kit's drag, which leaves the placing to this. */
|
|
47
|
+
private startMove;
|
|
48
|
+
/** Show it moved `moved` from where it was drawn. */
|
|
49
|
+
private placeAt;
|
|
50
|
+
/** Is the press on the browser's resize grip, its bottom right corner? */
|
|
51
|
+
private isOnGrip;
|
|
52
|
+
/** Is the press on a control of its own inside (a button, a field, a link), which keeps its press? */
|
|
53
|
+
private isOnOwnControl;
|
|
54
|
+
/** Keep where it is and its size, for an element with an `id`. */
|
|
55
|
+
private remember;
|
|
56
|
+
/** Give back what was kept for it: where it was put, its size. */
|
|
57
|
+
private giveBackRemembered;
|
|
58
|
+
/** Its key in the store: its `id`; none without one. */
|
|
59
|
+
private get key();
|
|
60
|
+
/** The kit's `Dragging`, loaded on the first movable element. */
|
|
61
|
+
private static dragging;
|
|
62
|
+
private static loadedDragging;
|
|
63
|
+
/** Where every element keeps its place and size: `ui-element:<id>`, made on the first use. */
|
|
64
|
+
private static store;
|
|
65
|
+
private static prefs;
|
|
66
|
+
}
|
|
67
|
+
/** Which ways `movable` or `resizable` lets it go. */
|
|
68
|
+
export type MoveWay = "both" | "horizontally" | "vertically";
|
|
69
|
+
/** The two ways `MoveAndResize.start()` takes; `undefined` for off. */
|
|
70
|
+
export type MoveAndResizeWays = {
|
|
71
|
+
/** `movable` */
|
|
72
|
+
move?: MoveWay;
|
|
73
|
+
/** `resizable` */
|
|
74
|
+
resize?: MoveWay;
|
|
75
|
+
};
|
|
@@ -220,6 +220,31 @@ export declare abstract class UIComponent<V extends E.ComponentVocabulary = E.Co
|
|
|
220
220
|
* - SIDE EFFECT: writes them in the element's `style`; removes them again once `font` has no size.
|
|
221
221
|
*/
|
|
222
222
|
protected onFontSizeChanged(fontSize: string | undefined): void;
|
|
223
|
+
/**
|
|
224
|
+
* The shared `shadow`: the hue of a hard shadow behind its letters (`shadow="yellow"`); `:state(shadow)`.
|
|
225
|
+
* - `undefined` without one, or where the family declares its own `shadow`.
|
|
226
|
+
*/
|
|
227
|
+
get sharedShadow(): string | undefined;
|
|
228
|
+
/**
|
|
229
|
+
* The shared `shadow` changed: its hue, as `--_ui-shadow-color` (the theme's `--ui-<hue>`), which `reset.css`
|
|
230
|
+
* draws under `:state(shadow)`.
|
|
231
|
+
* - SIDE EFFECT: writes it in the element's `style`; removes it again once `shadow` is gone.
|
|
232
|
+
*/
|
|
233
|
+
protected onShadowChanged(hue: string | undefined): void;
|
|
234
|
+
/**
|
|
235
|
+
* The shared `width`, `min-width` and `max-width`, any CSS lengths, by name; each `undefined` without one.
|
|
236
|
+
* - A new record each time: only the three attributes are read, so `onWidthsChanged()` runs only when one changes.
|
|
237
|
+
*/
|
|
238
|
+
get sharedWidths(): SharedWidths;
|
|
239
|
+
/**
|
|
240
|
+
* The shared widths changed, or the element's style sheets arrived: its box's own width where it sits.
|
|
241
|
+
* - Each as a custom property (`--_ui-width` ...) and a state (`:state(width)` ...), which `reset.css` draws:
|
|
242
|
+
* on the element itself where it draws a box, else on its shadow root's top-level boxes (`:state(sized-inside)`).
|
|
243
|
+
* - Which it is, the element's computed `display`: so only once its sheets are in (`isReady`).
|
|
244
|
+
* - SIDE EFFECT: writes them in the element's `style` and states; removes them again once they're gone.
|
|
245
|
+
* - Not on a server: the static render draws no widths.
|
|
246
|
+
*/
|
|
247
|
+
protected onWidthsChanged(widths: SharedWidths, isReady: boolean): void;
|
|
223
248
|
/** The shared `tooltip`: the browser's own tooltip, written as the element's `title`. */
|
|
224
249
|
get sharedTooltip(): string | undefined;
|
|
225
250
|
/** The shared `label`: the element's accessible name (`aria-label`). */
|
|
@@ -245,6 +270,18 @@ export declare abstract class UIComponent<V extends E.ComponentVocabulary = E.Co
|
|
|
245
270
|
protected followLink(link: string, target: string | undefined): void;
|
|
246
271
|
/** A shared attribute's text, where the element takes it and it isn't empty; else `undefined`. */
|
|
247
272
|
private sharedText;
|
|
273
|
+
/** Which way people may move it (the shared `movable`); `undefined`: they can't. */
|
|
274
|
+
get sharedMovable(): E.MoveWay | undefined;
|
|
275
|
+
/** Which way people may resize it (the shared `resizable`); `undefined`: they can't. */
|
|
276
|
+
get sharedResizable(): E.MoveWay | undefined;
|
|
277
|
+
/**
|
|
278
|
+
* While it's connected, people may move and resize it the ways its shared `movable` and `resizable` say.
|
|
279
|
+
* - SIDE EFFECT: `MoveAndResize` writes its `style`, and listens for presses on it; the cleanup stops both.
|
|
280
|
+
* - Never on a server, where nothing connects.
|
|
281
|
+
*/
|
|
282
|
+
protected moveAndResize(isConnected: boolean, move: E.MoveWay | undefined, resize: E.MoveWay | undefined): (() => void) | undefined;
|
|
283
|
+
/** A shared way attribute's value (`movable`, `resizable`), where the element takes it. */
|
|
284
|
+
private sharedWay;
|
|
248
285
|
/**
|
|
249
286
|
* While connected with a `parent`, join that container; its cleanup stops waiting for it.
|
|
250
287
|
* - Only for a tag whose vocabulary declares `parent`: no effect for any other.
|
|
@@ -645,3 +682,8 @@ export declare abstract class UIComponent<V extends E.ComponentVocabulary = E.Co
|
|
|
645
682
|
};
|
|
646
683
|
}>(this: T): T["prototype"]["vocabulary"];
|
|
647
684
|
}
|
|
685
|
+
/** The shared widths: each one's state and custom property (`--_ui-width`) has its name. */
|
|
686
|
+
declare const WIDTHS: readonly ["width", "min-width", "max-width"];
|
|
687
|
+
/** The shared widths, by name: any CSS length each, or `undefined` (`UIComponent.sharedWidths`). */
|
|
688
|
+
type SharedWidths = Record<(typeof WIDTHS)[number], string | undefined>;
|
|
689
|
+
export {};
|
|
@@ -371,10 +371,12 @@ export declare const AriaNames: {
|
|
|
371
371
|
readonly colSpan: "ariaColSpan";
|
|
372
372
|
readonly current: "ariaCurrent";
|
|
373
373
|
readonly disabled: "ariaDisabled";
|
|
374
|
+
readonly expanded: "ariaExpanded";
|
|
374
375
|
readonly hidden: "ariaHidden";
|
|
375
376
|
readonly label: "ariaLabel";
|
|
376
377
|
readonly level: "ariaLevel";
|
|
377
378
|
readonly live: "ariaLive";
|
|
379
|
+
readonly multiSelectable: "ariaMultiSelectable";
|
|
378
380
|
readonly roleDescription: "ariaRoleDescription";
|
|
379
381
|
readonly selected: "ariaSelected";
|
|
380
382
|
readonly valueMin: "ariaValueMin";
|
|
@@ -409,6 +411,26 @@ export declare const ERROR_EVENT = "ui-error";
|
|
|
409
411
|
* set by the error boundary (`UIComponent.onError()`) and by the fallback.
|
|
410
412
|
*/
|
|
411
413
|
export declare const ERRORED_STATE = "errored";
|
|
414
|
+
/**
|
|
415
|
+
* Thrown as a family attaches to a tag its root defined early (`DOMElement.attach()`), when the root's catalog no
|
|
416
|
+
* longer matches the family: the platform fixed the tag's observed attributes and form-control-ness when it was
|
|
417
|
+
* defined, so the catalog must be regenerated (Spell UI's `yarn gen:root`, a pack's `spell-pack build`).
|
|
418
|
+
* - a `TypeError`: the page was built from a stale file
|
|
419
|
+
* - `<ui-root>` tells the page server, when the page has one (`SPELL_SERVER.reportStale()`): it rebuilds the
|
|
420
|
+
* catalog in a worktree, and live reload brings the page back (epic `epic-engine` P54)
|
|
421
|
+
*/
|
|
422
|
+
export declare class StaleCatalogError extends TypeError {
|
|
423
|
+
cause: StaleCatalogCause | undefined;
|
|
424
|
+
}
|
|
425
|
+
/** `StaleCatalogError`'s `cause`. */
|
|
426
|
+
export type StaleCatalogCause = {
|
|
427
|
+
/** the tag, e.g. `ui-menu` */
|
|
428
|
+
tag: string;
|
|
429
|
+
/** the attributes the family observes that the catalog doesn't list, e.g. `["choose"]` */
|
|
430
|
+
missing: string[];
|
|
431
|
+
/** the family is a form control, the catalog says it isn't (or the other way round) */
|
|
432
|
+
isFormControlWrong: boolean;
|
|
433
|
+
};
|
|
412
434
|
/**
|
|
413
435
|
* What a component set's runtime hands spell-element as it loads (`SpellSolid.install()`):
|
|
414
436
|
* the services the element bases call, so spell-element never imports the set that draws with them.
|
|
@@ -428,6 +450,11 @@ export type SpellSolidSettings = {
|
|
|
428
450
|
motion: MotionSettings;
|
|
429
451
|
/** warn the page's author: something to fix (Spell UI's `Warnings.warn()`) */
|
|
430
452
|
warn(source: string, message: string, ...data: unknown[]): void;
|
|
453
|
+
/**
|
|
454
|
+
* the attribute values a root gives the elements inside that don't set them (`DOMElement`, "Root defaults");
|
|
455
|
+
* left out: no element has any
|
|
456
|
+
*/
|
|
457
|
+
defaults?: DefaultSettings;
|
|
431
458
|
};
|
|
432
459
|
/** `SpellSolidSettings.runtime`: the page's runtime, which an element waits for before it shows. */
|
|
433
460
|
export type RuntimeSettings = {
|
|
@@ -502,6 +529,26 @@ export type StyleSettings = {
|
|
|
502
529
|
/** Adopt the shared sheets, then the named ones, into `root`. */
|
|
503
530
|
adoptInto(root: ShadowRoot, names: string[]): void;
|
|
504
531
|
};
|
|
532
|
+
/**
|
|
533
|
+
* `SpellSolidSettings.defaults`: what the nearest root says an element's attributes are, when it doesn't say
|
|
534
|
+
* (epic `language` P28; Spell UI's `RootSettings`, from `<ui-root defaults>`).
|
|
535
|
+
*/
|
|
536
|
+
export type DefaultSettings = {
|
|
537
|
+
/**
|
|
538
|
+
* The defaults for `element`, a tag of `definition`: checked, each attribute once, the nearest root's winning.
|
|
539
|
+
* - Tracked: a Solid computation reading it re-runs when any root's settings change.
|
|
540
|
+
* - Never a content attribute (`label`, `value`), nor one whose value its vocabulary refuses:
|
|
541
|
+
* those warn, once, and are left out.
|
|
542
|
+
*/
|
|
543
|
+
for(element: Element, definition: E.ElementDefinition): readonly AttributeDefault[];
|
|
544
|
+
};
|
|
545
|
+
/** One attribute's default, from `DefaultSettings.for()`. */
|
|
546
|
+
export type AttributeDefault = {
|
|
547
|
+
/** the attribute */
|
|
548
|
+
readonly attribute: ResolvedAttribute;
|
|
549
|
+
/** its value, as its attribute's text or a property would give it (`"circular"`, `true`) */
|
|
550
|
+
readonly value: string | number | boolean;
|
|
551
|
+
};
|
|
505
552
|
/** `SpellSolidSettings.focus`: where focus goes. */
|
|
506
553
|
export type FocusSettings = {
|
|
507
554
|
/** Move focus out of `container` (it's being disabled), on to the next thing that takes it. */
|
|
@@ -123,6 +123,24 @@ export type AttributeSpec = {
|
|
|
123
123
|
label?: string;
|
|
124
124
|
/** A tip for people, behind the field's info icon: never the docs' `description`, written for developers. */
|
|
125
125
|
tip?: string;
|
|
126
|
+
/**
|
|
127
|
+
* A light hint for people, beside or under the field (`LaTeX`, `LaTeX or a #`): a few words, never a sentence.
|
|
128
|
+
* - A compact editor shows it at the label row's end; any other, under the control (epic `debut` P31).
|
|
129
|
+
*/
|
|
130
|
+
hint?: string;
|
|
131
|
+
/**
|
|
132
|
+
* An icon for each of its values, by value (`{ left: "align left", center: "align center" }`):
|
|
133
|
+
* shown in its select, or on its segmented buttons.
|
|
134
|
+
* - None: the shared value set's own, if it has them (`ValueSets.iconsFor()`).
|
|
135
|
+
*/
|
|
136
|
+
icons?: Readonly<Record<string, string>>;
|
|
137
|
+
/**
|
|
138
|
+
* Each of its values in words for people, by value, where they aren't the value itself
|
|
139
|
+
* (`{ up: "arriba", down: "abajo" }`, a Spanish program's names for a built-in template's values):
|
|
140
|
+
* shown in its select, or on its segmented buttons, while the value written stays the value.
|
|
141
|
+
* - None: each value as it is.
|
|
142
|
+
*/
|
|
143
|
+
valueLabels?: Readonly<Record<string, string>>;
|
|
126
144
|
/** Lowest number. */
|
|
127
145
|
min?: number;
|
|
128
146
|
/** Highest number. */
|
|
@@ -179,11 +197,12 @@ export type AttributeReplacement = string | {
|
|
|
179
197
|
* - `text`, `number`, `boolean`, `date`: one value of that type
|
|
180
198
|
* - `choice`: one of `values` (or `choicesFrom`'s)
|
|
181
199
|
* - `icon`: an icon's name (`star`, `address book`), picked from a grid of glyphs (`<ui-icon-picker>`)
|
|
200
|
+
* - `sides`: four lengths, top / right / bottom / left (margin, padding), edited by `<ui-sides>`
|
|
182
201
|
* - `list`: many, each `of` a type
|
|
183
202
|
* - `thing`: a nested thing, with its own `attributesOf`
|
|
184
203
|
* - `data`: anything else (JSON), edited as text
|
|
185
204
|
*/
|
|
186
|
-
export type ValueType = "text" | "number" | "boolean" | "date" | "choice" | "icon" | "list" | "thing" | "data";
|
|
205
|
+
export type ValueType = "text" | "number" | "boolean" | "date" | "choice" | "icon" | "sides" | "list" | "thing" | "data";
|
|
187
206
|
/**
|
|
188
207
|
* What a property editor reads (`<ui-property-editor schema>`): a thing's name and its attributes.
|
|
189
208
|
* - A component's vocabulary is one already (its `tag` the name);
|
|
@@ -255,6 +274,17 @@ export type TextSpec = {
|
|
|
255
274
|
export type ComponentVocabulary = {
|
|
256
275
|
/** Canonical tag, e.g. `ui-card`. */
|
|
257
276
|
tag: string;
|
|
277
|
+
/**
|
|
278
|
+
* The icon people know it by, in a list of tags (a palette, the Inspector's tree): `"id card outline"`.
|
|
279
|
+
* - Fomantic's names, from the pack every page has.
|
|
280
|
+
* - None: the list's own default.
|
|
281
|
+
*/
|
|
282
|
+
icon?: string;
|
|
283
|
+
/**
|
|
284
|
+
* What the editor's palette adds to a program, as Spell's tag-shaped form writes it: `<ui-button>Click me</ui-button>`.
|
|
285
|
+
* - None: it isn't offered there: a part of another tag, or a tool for people writing code.
|
|
286
|
+
*/
|
|
287
|
+
snippet?: string;
|
|
258
288
|
/** Class-grammar noun, emitted last by `ClassBuilder`, e.g. `card` (`ui red card`). */
|
|
259
289
|
noun: string;
|
|
260
290
|
/** Group noun, e.g. `cards` for `<ui-cards>`. */
|
|
@@ -467,7 +497,7 @@ export type SharedDictionary = {
|
|
|
467
497
|
/** BCP 47 language tag, e.g. `es`: the dictionaries it serves. */
|
|
468
498
|
lang: string;
|
|
469
499
|
/** Shared attribute name => localized, e.g. `{ disabled: "desactivado" }`. */
|
|
470
|
-
attributes: Readonly<Partial<Record<"disabled" | "loading" | "visible" | "animation" | "link" | "target" | "font" | "tooltip" | "label", string>>>;
|
|
500
|
+
attributes: Readonly<Partial<Record<"disabled" | "loading" | "visible" | "animation" | "link" | "target" | "font" | "shadow" | "width" | "min-width" | "max-width" | "tooltip" | "label" | "movable" | "resizable", string>>>;
|
|
471
501
|
/**
|
|
472
502
|
* Shared attribute name => its values, localized: `{ font: { bold: "negrita" } }` (epic `elemental-spell` P26).
|
|
473
503
|
* - Only where the language words them its own way: `animation` keeps Fomantic's names.
|
|
@@ -498,6 +528,8 @@ export type ComponentDictionary = {
|
|
|
498
528
|
* Spell UI's `components.es.ts`.
|
|
499
529
|
*/
|
|
500
530
|
export type TagDictionary = ComponentDictionary & {
|
|
531
|
+
/** The palette's snippet in this language: `ComponentVocabulary.snippet`, as a program in it writes it. */
|
|
532
|
+
snippet?: string;
|
|
501
533
|
/** BCP 47 language tag, e.g. `es`. */
|
|
502
534
|
lang: string;
|
|
503
535
|
/** The canonical tag it translates, e.g. `ui-button`. */
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { ApiRequest, ApiUrlData } from './
|
|
1
|
+
import { ApiRequest, ApiUrlData } from './fetching';
|
|
2
2
|
/****************
|
|
3
3
|
* ### `Api`
|
|
4
|
-
* `fetch()` with Fomantic's API-behaviour conveniences
|
|
5
|
-
* -
|
|
4
|
+
* `fetch()` with Fomantic's API-behaviour conveniences: URL templates, throttling, abort.
|
|
5
|
+
* - Spell UI's `UI.api`, and what the places that reach a server stand on (`RestPlace`, `GraphPlace`).
|
|
6
|
+
* - GENERIC, and taken by file (`spell/util/Api`), so a page that makes no request pays for none:
|
|
7
|
+
* in Spell UI, the runtime's lazy chunk. Imports only `./fetching` and `./timing`.
|
|
8
|
+
* - A second request helper beside `$fetch()`, until that can sit on this one:
|
|
9
|
+
* this one has no lodash, and aborts with real signals (epic `data` P4).
|
|
6
10
|
* - URL templates (`url()`):
|
|
7
11
|
* - `{name}` is REQUIRED -- a missing value throws, so a half-built URL never goes out
|
|
8
12
|
* - `{/name}` is an OPTIONAL path segment (RFC 6570 style): `/value` when present, nothing when missing.
|
|
@@ -26,11 +30,17 @@ export declare class Api {
|
|
|
26
30
|
* - Throws a `TypeError` for a missing `{name}`.
|
|
27
31
|
*/
|
|
28
32
|
url(template: string, data?: ApiUrlData): string;
|
|
33
|
+
/**
|
|
34
|
+
* The whole address `request` goes to: its template filled, and for a `GET` or `HEAD`, its `data` as the query.
|
|
35
|
+
* - What a copy of its answer is kept under (`DeviceCopy`, in `spell/places`).
|
|
36
|
+
* - Throws a `TypeError` for a missing `{name}`, as `url()` does.
|
|
37
|
+
*/
|
|
38
|
+
addressFor({ url: template, urlData, method, data }: ApiRequest): string;
|
|
29
39
|
/**
|
|
30
40
|
* Send a request; resolves with the parsed body -- see `ApiRequest` and class docs.
|
|
31
41
|
* - `T` is what the caller expects the body to be; NOT validated.
|
|
32
42
|
*/
|
|
33
|
-
request<T = unknown>({ url: template, urlData, method, data, throttle, key, signal: callerSignal, timeout, headers, responseType }: ApiRequest): Promise<T>;
|
|
43
|
+
request<T = unknown>({ url: template, urlData, method, data, throttle, key, signal: callerSignal, timeout, headers, responseType, keepalive, cache }: ApiRequest): Promise<T>;
|
|
34
44
|
/** Wait `ms`, rejecting early with the signal's reason if it aborts. */
|
|
35
45
|
private delay;
|
|
36
46
|
/** Append plain-object `data` to `url` as query parameters; arrays repeat the key, `null` / `undefined` skip. */
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/****************
|
|
2
|
+
* ### `Dragging`
|
|
3
|
+
* One drag of a view's element, from pointer down to pointer up: a mouse and a finger alike.
|
|
4
|
+
*
|
|
5
|
+
* - What it carries: the element, and its list's items after it, e.g. a tableau's face-up card and the cards on it.
|
|
6
|
+
* - They follow the pointer by their `translate`, raised above the board.
|
|
7
|
+
* - They ignore the pointer meanwhile, so what's under it can be found.
|
|
8
|
+
* - Or what its owner says (`DragOptions.carried`), staying where it is (`follows: false`):
|
|
9
|
+
* e.g. a task list's selected tasks, dimmed, while a line shows where they'd go
|
|
10
|
+
* (`SpellElement`, epic `outline-spell` P30).
|
|
11
|
+
* - Where it lands: the viewable list's element under the pointer, as `dropTargetAt()` finds it.
|
|
12
|
+
* - It sends the web's own drag events, as `DragEvent`s with no `dataTransfer`,
|
|
13
|
+
* so a page can follow it as it would the browser's drag and drop:
|
|
14
|
+
* - on the dragged element: `dragstart`, `drag` as it moves, `dragend`
|
|
15
|
+
* - on the list under the pointer: `dragenter`, `dragover` as it moves over it, `dragleave`, and `drop`
|
|
16
|
+
* - What's being dragged meanwhile: `Dragging.current`.
|
|
17
|
+
* - Why not the browser's own drag and drop (`draggable="true"`):
|
|
18
|
+
* it's patchy on phones, only a faded picture of one element follows the pointer, and it can't glide or slide back.
|
|
19
|
+
* - A press that doesn't move past `DRAG_START_PX` is no drag: its click goes through as ever.
|
|
20
|
+
* A real drag swallows the click that follows it.
|
|
21
|
+
* - What happens on the drop is its owner's to say (`onDrop`), e.g. `SpellElement`'s:
|
|
22
|
+
* the pile's `when a card is dropped on it`, else the program's `card-drop`.
|
|
23
|
+
* - What still sits where it was dragged from afterwards, a drop nobody took, slides back.
|
|
24
|
+
* - Escape cancels it (epic `debut` P27, Q47): everything slides back, and its owner hears `onCancel`,
|
|
25
|
+
* as it does for a drag the browser takes away, or the window losing focus mid-drag (epic `language` T29).
|
|
26
|
+
* - What moved is drawn again in its new list, and glides there from where it was dropped (`Glides`).
|
|
27
|
+
* - A mouse drag covers the whole page with the closed hand, whatever is under it (`DRAG_COVER`).
|
|
28
|
+
* - A rule can't do that: nothing in a page's sheets reaches into every shadow root,
|
|
29
|
+
* and the code editor sets its own cursor.
|
|
30
|
+
* - A drag can leave finding its place to its owner (`DragOptions.placing`), e.g. the editor's, moving a part:
|
|
31
|
+
* no list hears of it, and `placing` is told where the pointer is.
|
|
32
|
+
* - Plain DOM: no Solid, no core. Its owner hands it the element and what to do.
|
|
33
|
+
* - In util, not Spell UI's runtime: a runner's build may not reach into `spell/ui/runtime`.
|
|
34
|
+
****************/
|
|
35
|
+
export declare class Dragging {
|
|
36
|
+
readonly element: HTMLElement;
|
|
37
|
+
private readonly options;
|
|
38
|
+
/** The drag in progress, if any: a list under the pointer asks it what's coming. */
|
|
39
|
+
static current: Dragging | undefined;
|
|
40
|
+
/** What covers the page during a mouse drag, showing the closed hand: made once, on the first use. */
|
|
41
|
+
private static get cover();
|
|
42
|
+
private static madeCover;
|
|
43
|
+
/** Was it pressed with a finger? No cursor to show, so no cover. */
|
|
44
|
+
private readonly isTouch;
|
|
45
|
+
/** Start watching a press on `element`, `event` its `pointerdown`: a drag once it moves far enough. */
|
|
46
|
+
constructor(element: HTMLElement, event: PointerEvent, options: DragOptions);
|
|
47
|
+
/** Where the press started. */
|
|
48
|
+
private readonly startX;
|
|
49
|
+
private readonly startY;
|
|
50
|
+
/** Where the element was as it was pressed: where in it the press was, and its size (`heldBoxAt()`). */
|
|
51
|
+
private readonly pressedAt;
|
|
52
|
+
/** The pointer pressing: a second finger is ignored. */
|
|
53
|
+
private readonly pointerId;
|
|
54
|
+
/** Ends the window listeners. */
|
|
55
|
+
private readonly listening;
|
|
56
|
+
/** What's carried, once it's a drag: the element, then its list's items after it -- or what `options` says. */
|
|
57
|
+
private moving;
|
|
58
|
+
/** What's carried: the element first. */
|
|
59
|
+
get carried(): readonly HTMLElement[];
|
|
60
|
+
/**
|
|
61
|
+
* Where the dragged element would be with the pointer at (`x`, `y`), held where it was pressed:
|
|
62
|
+
* grabbed near its bottom, it's mostly above the pointer.
|
|
63
|
+
* - So a list placing it goes by the element, not the pointer: it lands under the pointer as it was held.
|
|
64
|
+
*/
|
|
65
|
+
heldBoxAt(x: number, y: number): DOMRect;
|
|
66
|
+
/** Does what's carried follow the pointer? Else it stays where it is (`DragOptions.follows`). */
|
|
67
|
+
get follows(): boolean;
|
|
68
|
+
/** The drop target under the pointer now, if any: it's had `dragenter`, and gets `dragleave` as the pointer leaves. */
|
|
69
|
+
private over;
|
|
70
|
+
/** The pointer moved: past `DRAG_START_PX`, a drag starts; during one, what's dragged follows it. */
|
|
71
|
+
private readonly onMove;
|
|
72
|
+
/** The pointer is over `target` now: `dragleave` on the one it left, `dragenter` on a new one, `dragover` on it. */
|
|
73
|
+
private moveOver;
|
|
74
|
+
/**
|
|
75
|
+
* The drag starts: what's carried is raised, and leaves the pointer to what's under it --
|
|
76
|
+
* unless it stays where it is.
|
|
77
|
+
*/
|
|
78
|
+
private start;
|
|
79
|
+
/** The pointer's let go: a drag drops where it is; a press with no drag is left to its click. */
|
|
80
|
+
private readonly onUp;
|
|
81
|
+
/** The browser took the pointer away (a scroll, a system gesture): put everything back. */
|
|
82
|
+
private readonly onCancel;
|
|
83
|
+
/** Escape, during a drag: put everything back, and swallow the key. */
|
|
84
|
+
private readonly onKey;
|
|
85
|
+
/**
|
|
86
|
+
* The window lost focus mid-drag (another app, a window switch): put everything back.
|
|
87
|
+
* - Its let-go may never reach the page, so the cover would stay up, swallowing every click, until the next press.
|
|
88
|
+
*/
|
|
89
|
+
private readonly onBlur;
|
|
90
|
+
/** The drag is cancelled: it leaves the list it's over, slides back, and its owner hears so (`onCancel`). */
|
|
91
|
+
private cancel;
|
|
92
|
+
/** What's still where it was dragged from slides back, and takes the pointer again. */
|
|
93
|
+
private settle;
|
|
94
|
+
/** Send drag event `type` to `target`, where `event`'s pointer is: a `DragEvent`, as the browser's own. */
|
|
95
|
+
private static send;
|
|
96
|
+
/**
|
|
97
|
+
* The element under (`x`, `y`) that may take the drop, searching up from the topmost there, through shadow roots:
|
|
98
|
+
* the first one `isDropTarget()` accepts -- `undefined` if none.
|
|
99
|
+
* - Looked for in `element`'s own tree, where the board is (a runner's shadow root, or the page).
|
|
100
|
+
* - One that won't take it, or a gap between lists: the one list of that row that would, if only one would
|
|
101
|
+
* (`rowTargetAt()`), e.g. a card anywhere over a game's foundations lands on its own suit's.
|
|
102
|
+
*/
|
|
103
|
+
static dropTargetAt(element: HTMLElement, x: number, y: number): HTMLElement | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* A row of lists of one kind is one place to drop, e.g. a game's foundations: the one list in it that would take
|
|
106
|
+
* what's dragged -- `undefined` if none would, or more than one.
|
|
107
|
+
* - The row: the lists side by side under the pointer, in the nearest element around it that holds lists,
|
|
108
|
+
* of the kind it's over (its tag), or whose span it's in.
|
|
109
|
+
*/
|
|
110
|
+
private static rowTargetAt;
|
|
111
|
+
/** `element` and every element around it, up through shadow roots. */
|
|
112
|
+
private static upFrom;
|
|
113
|
+
/** May `element` take a drop? Yes if any owner's rule says so (`addDropRule()`). */
|
|
114
|
+
static isDropTarget(element: Element): boolean;
|
|
115
|
+
/** Would drop target `element` take what's dragged now? The rule that owns it says; with none, yes. */
|
|
116
|
+
static takesDrop(element: Element): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Add an owner's rule for what takes a drop, e.g. `SpellElement`'s: a viewable list's element.
|
|
119
|
+
* - A rule, not a setting: each copy of a runtime on the page adds its own, and each knows only its own elements
|
|
120
|
+
* (the editor's layout runs on a copy, beside the program's). One setting, the last copy's, would refuse the rest.
|
|
121
|
+
*/
|
|
122
|
+
static addDropRule(rule: DropRule): void;
|
|
123
|
+
private static readonly dropRules;
|
|
124
|
+
/** The click a drag's pointer up makes is no click: swallowed, once, before anything hears it. */
|
|
125
|
+
private static swallowNextClick;
|
|
126
|
+
}
|
|
127
|
+
/** One owner's rule for what takes a drop: `Dragging.addDropRule()`. */
|
|
128
|
+
export type DropRule = {
|
|
129
|
+
/** May `element` take a drop? Only the owner's own elements. */
|
|
130
|
+
isDropTarget: (element: Element) => boolean;
|
|
131
|
+
/** Would `element`, one of its drop targets, take what's dragged now? */
|
|
132
|
+
takesDrop: (element: Element) => boolean;
|
|
133
|
+
};
|
|
134
|
+
/** How a drag goes: what its owner says. */
|
|
135
|
+
export type DragOptions = {
|
|
136
|
+
/** What happens on the drop, on `target`, the list under the pointer -- `undefined` for none. */
|
|
137
|
+
onDrop(target: HTMLElement | undefined): void;
|
|
138
|
+
/** The drag was cancelled before any drop: Escape, or the browser took the pointer away. */
|
|
139
|
+
onCancel?(): void;
|
|
140
|
+
/** What's carried, the dragged element first; default the element and its list's items after it. */
|
|
141
|
+
carried?: HTMLElement[];
|
|
142
|
+
/** Does what's carried follow the pointer? Default yes; `false`: it stays where it is, dimmed by its owner. */
|
|
143
|
+
follows?: boolean;
|
|
144
|
+
/** Its owner finds the place itself: told where the pointer is as it moves, and no list hears of the drag. */
|
|
145
|
+
placing?(x: number, y: number): void;
|
|
146
|
+
};
|
|
147
|
+
/** How far the pointer moves before a press is a drag, in pixels: less is a click. */
|
|
148
|
+
export declare const DRAG_START_PX = 6;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/****************
|
|
2
|
+
* ### `ListSelection`
|
|
3
|
+
* What a click does to a selection, the way a Mac's Finder does it:
|
|
4
|
+
* - Plain: only what's clicked, which becomes the PIVOT, the fixed end of a range.
|
|
5
|
+
* - Command or Control: what's clicked is added, or taken away if it was selected.
|
|
6
|
+
* - Adding moves the pivot to it.
|
|
7
|
+
* - Taking the pivot away moves it to the last one still selected.
|
|
8
|
+
* - Shift, in a list: the run from the pivot to what's clicked, in the list's order.
|
|
9
|
+
* - Another shift-click swaps that run for the new one, and the pivot stays.
|
|
10
|
+
* - What Command added outside the run stays selected.
|
|
11
|
+
* - Shift, not in a list (no `items`): as Command.
|
|
12
|
+
* - It holds only the pivot and the last run.
|
|
13
|
+
* - What's selected is its owner's, handed in and handed back: a program's list, the Inspector, a tree.
|
|
14
|
+
* - A plain class, no DOM and no Solid: a running program's lists, the editor and Spell UI's tree share ONE copy of the rule.
|
|
15
|
+
* - In util, not Spell UI's runtime: a runner's build may not reach into `spell/ui/runtime`.
|
|
16
|
+
* - Control-click on a Mac never gets here: the browser makes it a right click, with no click.
|
|
17
|
+
****************/
|
|
18
|
+
export declare class ListSelection<T> {
|
|
19
|
+
/** The fixed end of a shift-click's range. */
|
|
20
|
+
pivot: T | undefined;
|
|
21
|
+
/** What the last shift-click selected: the next one swaps it. */
|
|
22
|
+
private run;
|
|
23
|
+
/**
|
|
24
|
+
* What's selected once `item` is clicked, with `selected` selected and `keys` held.
|
|
25
|
+
* - Shift in a list with no pivot, or one no longer in it: a plain click.
|
|
26
|
+
* - SIDE EFFECT: moves the pivot, as the class says.
|
|
27
|
+
*/
|
|
28
|
+
clicked(item: T, { items, selected, keys }: ListClick<T>): T[];
|
|
29
|
+
/** `selected` with the last run swapped for the one from the pivot to `item`. */
|
|
30
|
+
private runTo;
|
|
31
|
+
/** `selected` with `item` added, or taken away; the pivot follows. */
|
|
32
|
+
private toggled;
|
|
33
|
+
}
|
|
34
|
+
/** One click, as `ListSelection.clicked()` reads it. */
|
|
35
|
+
export type ListClick<T> = {
|
|
36
|
+
/** The list, in its order; `undefined`: what's clicked isn't in a list. */
|
|
37
|
+
items: readonly T[] | undefined;
|
|
38
|
+
/** What's selected now. */
|
|
39
|
+
selected: readonly T[];
|
|
40
|
+
/** The keys held: a `MouseEvent` is one. */
|
|
41
|
+
keys: {
|
|
42
|
+
shiftKey: boolean;
|
|
43
|
+
metaKey: boolean;
|
|
44
|
+
ctrlKey: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|