spell-ui 0.8.5 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-components.md +14 -6
- package/README-frameworks.md +22 -12
- package/README-migrating.md +7 -6
- package/README-runtime.md +14 -13
- package/README-site.md +11 -11
- package/README-themes.md +38 -11
- package/README.md +61 -73
- package/dist/Dragging-CMZoLEWQ.js +169 -0
- package/dist/Dragging-CMZoLEWQ.js.map +1 -0
- package/dist/{MarkdownEngine-CbuT9Mjc.js → MarkdownEngine-CW1WGqNp.js} +122 -100
- package/dist/MarkdownEngine-CW1WGqNp.js.map +1 -0
- package/dist/{PrefStore-CeaTtjTz.js → PrefStore-Qv0e5y04.js} +22 -22
- package/dist/PrefStore-Qv0e5y04.js.map +1 -0
- package/dist/ScrollingRow-7n7Z-HIE.js +88 -0
- package/dist/ScrollingRow-7n7Z-HIE.js.map +1 -0
- package/dist/SitePages-CciwREek.js +51 -0
- package/dist/SitePages-CciwREek.js.map +1 -0
- package/dist/{SlottedItems-Ch0tzzlL.js → SlottedItems-Du3aJwG1.js} +22 -22
- package/dist/{SlottedItems-Ch0tzzlL.js.map → SlottedItems-Du3aJwG1.js.map} +1 -1
- package/dist/ThemeDraft-B7NPif4d.js +805 -0
- package/dist/ThemeDraft-B7NPif4d.js.map +1 -0
- package/dist/TreeMeasure-BVJeGb1L.js +42 -0
- package/dist/TreeMeasure-BVJeGb1L.js.map +1 -0
- package/dist/UIButton-DFEds67r.js +6 -0
- package/dist/UIButton-DFEds67r.js.map +1 -0
- package/dist/UIInput-BodVbUoQ.js +6 -0
- package/dist/UIInput-BodVbUoQ.js.map +1 -0
- package/dist/{UIKeys-DJF2TIKE.js → UIKeys-Rh_gUZjP.js} +10 -9
- package/dist/UIKeys-Rh_gUZjP.js.map +1 -0
- package/dist/UILabel-DgJUBzB_.js +6 -0
- package/dist/UILabel-DgJUBzB_.js.map +1 -0
- package/dist/UIMenu-zdcAtwTa.js +42 -0
- package/dist/UIMenu-zdcAtwTa.js.map +1 -0
- package/dist/{UIRuntime-BBuehGly.js → UIRuntime-KH309p5B.js} +398 -207
- package/dist/UIRuntime-KH309p5B.js.map +1 -0
- package/dist/_spell-element/DOMElement.d.ts +62 -5
- package/dist/_spell-element/MoveAndResize.d.ts +75 -0
- package/dist/_spell-element/UIComponent.d.ts +42 -0
- package/dist/_spell-element/elements.types.d.ts +47 -0
- package/dist/_spell-element/index.d.ts +1 -0
- package/dist/_spell-element/vocabulary.types.d.ts +34 -2
- package/dist/{runtime → _util}/Api.d.ts +14 -4
- package/dist/_util/Dragging.d.ts +148 -0
- package/dist/_util/ListSelection.d.ts +46 -0
- package/dist/{util → _util}/LoadOnce.d.ts +9 -1
- package/dist/_util/ReconnectingSocket.d.ts +51 -0
- package/dist/_util/diagram/DiagramColumns.d.ts +14 -0
- package/dist/_util/diagram/DiagramLayout.d.ts +119 -0
- package/dist/_util/diagram/DiagramSVG.d.ts +17 -0
- package/dist/_util/dom.d.ts +10 -0
- package/dist/_util/fetching.d.ts +92 -0
- package/dist/_util/measures/Dimension.d.ts +63 -0
- package/dist/_util/measures/MeasureSystem.d.ts +66 -0
- package/dist/_util/measures/dimensions.generated.d.ts +16 -0
- package/dist/_util/persist/ColorScheme.d.ts +6 -0
- package/dist/_util/persist/ServerPlace.d.ts +42 -0
- package/dist/_util/persist/WaitedOnPlace.d.ts +27 -0
- package/dist/_util/persist/persist.types.d.ts +21 -2
- package/dist/_util/timing.d.ts +10 -1
- package/dist/api.js +8 -7
- package/dist/api.js.map +1 -1
- package/dist/components/ComponentDefinitions.d.ts +29 -0
- package/dist/components/components.es.d.ts +13 -0
- package/dist/components/components.types.d.ts +113 -8
- package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
- package/dist/components/ui-action/UIAction.en.d.ts +5 -1
- package/dist/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
- package/dist/components/ui-button/UIButton.d.ts +8 -3
- package/dist/components/ui-button/UIButton.en.d.ts +9 -4
- package/dist/components/ui-button/UIButton.es.d.ts +6 -0
- package/dist/components/ui-button/UIButton.fallback.d.ts +8 -3
- package/dist/components/ui-button/UIButtons.d.ts +1 -0
- package/dist/components/ui-button/UIButtons.en.d.ts +1 -0
- package/dist/components/ui-button/UIOr.d.ts +1 -0
- package/dist/components/ui-button/UIOr.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
- package/dist/components/ui-card/CardClicks.d.ts +40 -0
- package/dist/components/ui-card/UICard.d.ts +41 -0
- package/dist/components/ui-card/UICard.en.d.ts +49 -0
- package/dist/components/ui-card/UICard.es.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +31 -0
- package/dist/components/ui-card/UICards.en.d.ts +31 -0
- package/dist/components/ui-card/UICards.es.d.ts +8 -0
- package/dist/components/ui-checkbox/CheckControl.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.es.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.types.d.ts +5 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +8 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +6 -0
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
- package/dist/components/ui-components/PackHotSwap.d.ts +17 -1
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +11 -0
- package/dist/components/ui-container/UIContainer.en.d.ts +7 -0
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +268 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +106 -0
- package/dist/components/ui-diagram/UIDiagram.es.d.ts +37 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +98 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +38 -0
- package/dist/components/ui-diagram/UIDiagramNode.es.d.ts +16 -0
- package/dist/components/ui-diagram/index.d.ts +8 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +81 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +54 -0
- package/dist/components/ui-dimension/UIDimension.es.d.ts +22 -0
- package/dist/components/ui-dimension/index.d.ts +2 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +6 -1
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.es.d.ts +1 -1
- package/dist/components/ui-divider/UIDivider.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.es.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +4 -2
- package/dist/components/ui-example/UIExample.es.d.ts +3 -2
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/FormBinding.d.ts +13 -1
- package/dist/components/ui-form/FormFields.d.ts +4 -4
- package/dist/components/ui-form/UIField.d.ts +30 -3
- package/dist/components/ui-form/UIField.en.d.ts +9 -0
- package/dist/components/ui-form/UIField.es.d.ts +6 -0
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +15 -0
- package/dist/components/ui-form/UIForm.en.d.ts +6 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-form/index.d.ts +2 -1
- package/dist/components/ui-grid/UIColumn.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.en.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +3 -2
- package/dist/components/ui-icon/UIIcon.en.d.ts +3 -2
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
- package/dist/components/ui-image/UIImage.d.ts +34 -0
- package/dist/components/ui-image/UIImage.en.d.ts +23 -0
- package/dist/components/ui-image/UIImage.es.d.ts +2 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/TextControl.d.ts +7 -0
- package/dist/components/ui-input/UIInput.d.ts +22 -3
- package/dist/components/ui-input/UIInput.en.d.ts +9 -2
- package/dist/components/ui-input/UIInput.es.d.ts +2 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +9 -2
- package/dist/components/ui-input/UITextarea.d.ts +20 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +15 -0
- package/dist/components/ui-input/UITextarea.es.d.ts +4 -0
- package/dist/components/ui-item/UIItem.d.ts +27 -4
- package/dist/components/ui-item/UIItem.en.d.ts +5 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/JsonChild.d.ts +30 -0
- package/dist/components/ui-json/UIJson.d.ts +128 -0
- package/dist/components/ui-json/UIJson.en.d.ts +71 -0
- package/dist/components/ui-json/UIJson.es.d.ts +12 -0
- package/dist/components/ui-json/index.d.ts +3 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +2 -0
- package/dist/components/ui-label/UILabel.en.d.ts +2 -0
- package/dist/components/ui-label/UILabel.es.d.ts +1 -0
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +2 -0
- package/dist/components/ui-list/UIList.en.d.ts +2 -0
- package/dist/components/ui-list/UIList.es.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +143 -0
- package/dist/components/ui-markdown/MarkdownEngine.d.ts +14 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +95 -0
- package/dist/components/ui-markdown/MarkdownSource.d.ts +57 -0
- package/dist/components/ui-markdown/UIMarkdown.d.ts +126 -6
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +111 -8
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +29 -1
- package/dist/components/ui-markdown/UIMarkdown.types.d.ts +26 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +79 -0
- package/dist/components/ui-menu/TitleFit.d.ts +3 -0
- package/dist/components/ui-menu/UIMenu.d.ts +97 -4
- package/dist/components/ui-menu/UIMenu.en.d.ts +50 -1
- package/dist/components/ui-menu/UIMenu.es.d.ts +4 -0
- package/dist/components/ui-message/UIMessage.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.en.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.es.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +1 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +15 -0
- package/dist/components/ui-page/UIPage.en.d.ts +15 -0
- package/dist/components/ui-page/UIPage.es.d.ts +1 -0
- package/dist/components/ui-panel/UIPanel.d.ts +6 -0
- package/dist/components/ui-panel/UIPanel.en.d.ts +33 -20
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.en.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +3 -1
- package/dist/components/ui-parts/UIHeader.en.d.ts +3 -1
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +15 -1
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +30 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +7 -0
- package/dist/components/ui-popup/UIPopup.es.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.en.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.es.d.ts +1 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +132 -5
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +11 -44
- package/dist/components/ui-property-editor/UIProperty.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +38 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +33 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +12 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +2 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.es.d.ts +9 -0
- package/dist/components/ui-property-editor/index.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +6 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.d.ts +18 -3
- package/dist/components/ui-root/UIRoot.en.d.ts +15 -0
- package/dist/components/ui-root/UIRoot.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +48 -7
- package/dist/components/ui-search/UISearch.en.d.ts +13 -1
- package/dist/components/ui-search/UISearch.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +13 -1
- package/dist/components/ui-section/UISection.d.ts +30 -1
- package/dist/components/ui-section/UISection.en.d.ts +10 -0
- package/dist/components/ui-section/UISection.es.d.ts +1 -0
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.en.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.es.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +6 -0
- package/dist/components/ui-select/UISelect.en.d.ts +6 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +6 -0
- package/dist/components/ui-shape/UIShape.d.ts +23 -2
- package/dist/components/ui-shape/UIShape.en.d.ts +8 -0
- package/dist/components/ui-shape/UIShape.es.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +4 -0
- package/dist/components/ui-shape/UISide.en.d.ts +4 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +209 -0
- package/dist/components/ui-sides/UISides.en.d.ts +122 -0
- package/dist/components/ui-sides/UISides.es.d.ts +30 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +134 -0
- package/dist/components/ui-sides/index.d.ts +2 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +53 -0
- package/dist/components/ui-site-nav/UISiteNav.d.ts +207 -0
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +87 -0
- package/dist/components/ui-site-nav/UISiteNav.es.d.ts +29 -0
- package/dist/components/ui-site-nav/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +126 -0
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +49 -0
- package/dist/components/ui-site-tabs/UISiteTabs.es.d.ts +18 -0
- package/dist/components/ui-site-tabs/index.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.es.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +7 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +175 -0
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +74 -0
- package/dist/components/ui-split-panel/UISplitPanel.es.d.ts +25 -0
- package/dist/components/ui-split-panel/index.d.ts +2 -0
- package/dist/components/ui-stack/UIStack.d.ts +31 -5
- package/dist/components/ui-stack/UIStack.en.d.ts +15 -3
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +1 -0
- package/dist/components/ui-step/UISteps.en.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.d.ts +4 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +8 -0
- package/dist/components/ui-tab/UITab.en.d.ts +1 -0
- package/dist/components/ui-tab/UITabs.d.ts +107 -16
- package/dist/components/ui-tab/UITabs.en.d.ts +40 -1
- package/dist/components/ui-tab/UITabs.es.d.ts +4 -0
- package/dist/components/ui-table/TableEditing.d.ts +77 -0
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +145 -5
- package/dist/components/ui-table/UITable.en.d.ts +19 -0
- package/dist/components/ui-table/UITable.es.d.ts +3 -0
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +11 -0
- package/dist/components/ui-text/UILink.en.d.ts +4 -0
- package/dist/components/ui-text/UIText.d.ts +7 -0
- package/dist/components/ui-text/UIText.en.d.ts +7 -0
- package/dist/components/ui-text/UIText.es.d.ts +2 -0
- package/dist/components/ui-theme-editor/SavedTheme.d.ts +55 -43
- package/dist/components/ui-theme-editor/ThemeDraft.d.ts +15 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +157 -26
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +79 -6
- package/dist/components/ui-theme-editor/UIThemeEditor.es.d.ts +20 -2
- package/dist/components/ui-theme-editor/UIThemeEditor.types.d.ts +0 -2
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/HueDropdown.d.ts +47 -0
- package/dist/components/ui-theme-menu/ThemeMenu.d.ts +18 -7
- package/dist/components/ui-theme-menu/ThemePreference.d.ts +145 -36
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +118 -7
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +82 -2
- package/dist/components/ui-theme-menu/UIThemeMenu.es.d.ts +21 -1
- package/dist/components/ui-theme-menu/UIThemeMenu.types.d.ts +36 -8
- package/dist/components/ui-theme-menu/index.d.ts +2 -1
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +13 -10
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +138 -84
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +2 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +162 -0
- package/dist/components/ui-tree/UITree.en.d.ts +88 -0
- package/dist/components/ui-tree/UITree.es.d.ts +35 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +204 -0
- package/dist/components/ui-tree/UITreeItem.en.d.ts +142 -0
- package/dist/components/ui-tree/UITreeItem.es.d.ts +32 -0
- package/dist/components/ui-tree/index.d.ts +3 -0
- package/dist/components/ui-tree-diagram/TreeData.d.ts +3 -12
- package/dist/components/ui-tree-diagram/TreeLayout.d.ts +54 -21
- package/dist/components/ui-tree-diagram/TreeMeasure.d.ts +36 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +152 -27
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +47 -7
- package/dist/components/ui-tree-diagram/UITreeDiagram.es.d.ts +12 -1
- package/dist/components/ui-tree-diagram/UITreeDiagram.types.d.ts +66 -21
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +148 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +69 -0
- package/dist/components/ui-tree-diagram/UITreeNode.es.d.ts +21 -0
- package/dist/components/ui-tree-diagram/index.d.ts +4 -2
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-DmLzT-Bq.js → components.es-BOa_7gFF.js} +498 -109
- package/dist/components.es-BOa_7gFF.js.map +1 -0
- package/dist/core.d.ts +3 -1
- package/dist/core.js +1082 -511
- package/dist/core.js.map +1 -1
- package/dist/crisp-VfYZlTph.js +6 -0
- package/dist/{crisp-CoZRRDuQ.js.map → crisp-VfYZlTph.js.map} +1 -1
- package/dist/docs-components/index.d.ts +1 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.d.ts +89 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.en.d.ts +43 -0
- package/dist/docs-components/ui-docs-index/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.d.ts +54 -87
- package/dist/docs-components/ui-docs-nav/UIDocsNav.types.d.ts +2 -29
- package/dist/docs-components/ui-docs-search/SearchIndex.d.ts +8 -2
- package/dist/docs-components/ui-docs-search/UIDocsSearch.d.ts +10 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.en.d.ts +5 -0
- package/dist/elements/AddressParameter.d.ts +87 -0
- package/dist/elements/DOMFormControl.d.ts +5 -0
- package/dist/elements/FormComponent.d.ts +32 -0
- package/dist/elements/LoadableBody.d.ts +6 -1
- package/dist/elements/LoadableComponent.d.ts +10 -1
- package/dist/elements/RootSettings.d.ts +43 -6
- package/dist/elements/SpellUISettings.d.ts +1 -0
- package/dist/elements/StickyWatch.d.ts +20 -0
- package/dist/elements/elements.types.d.ts +15 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/forms.js +93 -63
- package/dist/forms.js.map +1 -1
- package/dist/fruity-BRVlgJZd.js +6 -0
- package/dist/fruity-BRVlgJZd.js.map +1 -0
- package/dist/{fruity.theme-BJcMiPl1.js → fruity.theme-CbC7Jyvk.js} +2 -2
- package/dist/fruity.theme-CbC7Jyvk.js.map +1 -0
- package/dist/glass-x9tbbwVq.js +6 -0
- package/dist/glass-x9tbbwVq.js.map +1 -0
- package/dist/glass.theme-24wY2wH9.js +6 -0
- package/dist/glass.theme-24wY2wH9.js.map +1 -0
- package/dist/hot.js +536 -26
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +91 -81
- package/dist/jsx.d.ts +21149 -10377
- package/dist/matrix-QY2gWbJ0.js +6 -0
- package/dist/{matrix-CqA59hiF.js.map → matrix-QY2gWbJ0.js.map} +1 -1
- package/dist/{matrix.theme-jqQZjcq3.js → matrix.theme-_8xtwhDq.js} +2 -2
- package/dist/matrix.theme-_8xtwhDq.js.map +1 -0
- package/dist/midnight-BxlTQSfw.js +6 -0
- package/dist/{midnight-BnoVOrhC.js.map → midnight-BxlTQSfw.js.map} +1 -1
- package/dist/mockup-83ELBuVr.js +6 -0
- package/dist/mockup-83ELBuVr.js.map +1 -0
- package/dist/mockup.theme-DmpBgGBl.js +6 -0
- package/dist/mockup.theme-DmpBgGBl.js.map +1 -0
- package/dist/paper-M61nUilz.js +6 -0
- package/dist/{paper-CynH8ZuT.js.map → paper-M61nUilz.js.map} +1 -1
- package/dist/persist.types-D2m6wD-S.js +9 -0
- package/dist/persist.types-D2m6wD-S.js.map +1 -0
- package/dist/pop-CxXfytjk.js +6 -0
- package/dist/{pop-D2i9V_rG.js.map → pop-CxXfytjk.js.map} +1 -1
- package/dist/runtime/DataTooltips.d.ts +75 -0
- package/dist/runtime/PropertyControls.d.ts +15 -1
- package/dist/runtime/Sources.d.ts +16 -4
- package/dist/runtime/Styles.d.ts +11 -0
- package/dist/runtime/Themes.d.ts +10 -4
- package/dist/runtime/UIRuntime.d.ts +4 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/runtime.types.d.ts +18 -85
- package/dist/spell-By5Y3jKP.js +6 -0
- package/dist/{spell-BFtLICm7.js.map → spell-By5Y3jKP.js.map} +1 -1
- package/dist/{spell.theme-B7AU7SQX.js → spell.theme-DxGj7qHx.js} +2 -2
- package/dist/spell.theme-DxGj7qHx.js.map +1 -0
- package/dist/styles/CodeThemeFile.d.ts +73 -0
- package/dist/styles/StyleGenerator.d.ts +6 -0
- package/dist/styles/styles.en.d.ts +141 -3
- package/dist/styles/styles.types.d.ts +2 -0
- package/dist/{styles.en-RLpYiO5_.js → styles.en-CUUxNwHo.js} +71 -14
- package/dist/styles.en-CUUxNwHo.js.map +1 -0
- package/dist/styles.js +13 -13
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.js +54 -53
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.js +20 -19
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-ad.js +5 -4
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-breadcrumbs.js +15 -13
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.js +132 -125
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-calendar.js +208 -206
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.js +260 -98
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-checkbox.js +95 -81
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.js +25 -24
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-comment.js +14 -12
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-components.js +7 -6
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.js +24 -12
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-diagram.js +1328 -0
- package/dist/ui-diagram.js.map +1 -0
- package/dist/ui-dimension.js +779 -0
- package/dist/ui-dimension.js.map +1 -0
- package/dist/ui-dimmer.js +36 -34
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.js +7 -5
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.js +107 -105
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.js +36 -35
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.js +10 -9
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-example.js +63 -61
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-feed.js +12 -10
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-flag.js +10 -9
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.js +7 -6
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.js +244 -162
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.js +21 -18
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-icon-picker.js +46 -44
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.js +17 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-image.js +93 -55
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-include.js +18 -17
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.js +154 -112
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.js +152 -102
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.js +9 -8
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.js +115 -0
- package/dist/ui-json.js.map +1 -0
- package/dist/ui-keys.js +1 -1
- package/dist/ui-label.js +18 -15
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-list.js +7 -5
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.js +7 -6
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.js +975 -83
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.js +329 -196
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.js +20 -18
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-modal.js +46 -45
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.js +19 -18
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-page.js +8 -7
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.js +28 -17
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +66 -52
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder.js +21 -16
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.js +113 -84
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.js +9 -7
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.js +706 -203
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-quote.js +5 -4
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-rail.js +5 -4
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.js +31 -29
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-reveal.js +7 -6
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.js +324 -158
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-search.js +210 -168
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.js +167 -130
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-segment.js +15 -12
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-select.js +83 -81
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.js +86 -58
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-sidebar.js +59 -56
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.js +325 -0
- package/dist/ui-sides.js.map +1 -0
- package/dist/ui-site-nav.js +329 -0
- package/dist/ui-site-nav.js.map +1 -0
- package/dist/ui-site-tabs.js +177 -0
- package/dist/ui-site-tabs.js.map +1 -0
- package/dist/ui-slider.js +84 -81
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.js +7 -6
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.js +298 -0
- package/dist/ui-split-panel.js.map +1 -0
- package/dist/ui-stack.js +47 -23
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.js +15 -13
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-step.js +31 -29
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-sticky.js +7 -6
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-tab.js +230 -138
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.js +724 -162
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-terms.js +12 -10
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.js +53 -28
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-theme-editor.js +1018 -1545
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js +1493 -0
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +1 -0
- package/dist/ui-toast.js +45 -44
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.js +75 -74
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.js +51 -73
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.js +12 -11
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.js +676 -197
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree.js +625 -0
- package/dist/ui-tree.js.map +1 -0
- package/dist/ui-video.js +13 -11
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.js +26 -25
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.js +79 -78
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +28 -0
- package/dist/util/index.d.ts +5 -2
- package/dist/vocabulary/DefaultValues.d.ts +34 -0
- package/dist/vocabulary/SharedVocabulary.d.ts +4 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +7 -0
- package/dist/vocabulary/ValueSets.d.ts +18 -0
- package/dist/vocabulary/Vocabulary.d.ts +1 -0
- package/dist/vocabulary/defaults.generated.d.ts +6 -0
- package/dist/vocabulary/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/MarkdownEngine-CbuT9Mjc.js.map +0 -1
- package/dist/PrefStore-CeaTtjTz.js.map +0 -1
- package/dist/UIButton-XkfGqgh6.js +0 -6
- package/dist/UIButton-XkfGqgh6.js.map +0 -1
- package/dist/UIInput-BUudZstW.js +0 -6
- package/dist/UIInput-BUudZstW.js.map +0 -1
- package/dist/UIKeys-DJF2TIKE.js.map +0 -1
- package/dist/UILabel-C1jy3Yl8.js +0 -6
- package/dist/UILabel-C1jy3Yl8.js.map +0 -1
- package/dist/UIMenu-Btd-8V3A.js +0 -42
- package/dist/UIMenu-Btd-8V3A.js.map +0 -1
- package/dist/UIRuntime-BBuehGly.js.map +0 -1
- package/dist/components.es-DmLzT-Bq.js.map +0 -1
- package/dist/crisp-CoZRRDuQ.js +0 -6
- package/dist/fruity-CQFYeRlh.js +0 -6
- package/dist/fruity-CQFYeRlh.js.map +0 -1
- package/dist/fruity.theme-BJcMiPl1.js.map +0 -1
- package/dist/glass-CAfW11kL.js +0 -6
- package/dist/glass-CAfW11kL.js.map +0 -1
- package/dist/glass.theme-DQcBbtCW.js +0 -6
- package/dist/glass.theme-DQcBbtCW.js.map +0 -1
- package/dist/matrix-CqA59hiF.js +0 -6
- package/dist/matrix.theme-jqQZjcq3.js.map +0 -1
- package/dist/midnight-BnoVOrhC.js +0 -6
- package/dist/paper-CynH8ZuT.js +0 -6
- package/dist/persist.types-CsZxS8TG.js +0 -9
- package/dist/persist.types-CsZxS8TG.js.map +0 -1
- package/dist/pop-D2i9V_rG.js +0 -6
- package/dist/spell-BFtLICm7.js +0 -6
- package/dist/spell.theme-B7AU7SQX.js.map +0 -1
- package/dist/styles.en-RLpYiO5_.js.map +0 -1
- package/dist/ui-theme-menu-DyKZygpV.js +0 -921
- package/dist/ui-theme-menu-DyKZygpV.js.map +0 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
</script>
|
|
19
19
|
<script type="module">
|
|
20
|
-
import "spell
|
|
20
|
+
import "spell-ui/ui-root.js"
|
|
21
21
|
</script>
|
|
22
22
|
</head>
|
|
23
23
|
<body>
|
|
@@ -67,10 +67,10 @@ and a page needs nothing else of Spell's to use it.
|
|
|
67
67
|
and form controls that are real form controls, joining a `<form>` and validating and resetting like native ones.
|
|
68
68
|
The cost is a current browser ([below](#what-it-costs-and-what-it-assumes)).
|
|
69
69
|
|
|
70
|
-
**
|
|
71
|
-
|
|
72
|
-
The page above maps `ui/` onto
|
|
73
|
-
[the thirty seconds below](#thirty-seconds-
|
|
70
|
+
**On npm:** `npm install spell-ui@next`, or no install at all, from a CDN.
|
|
71
|
+
`@next` is the tag until Spell's first release (planned for December 1, 2026); from then on, plain `spell-ui`.
|
|
72
|
+
The page above maps `spell-ui/` onto a copy of the library's build, and Solid onto one vendored copy:
|
|
73
|
+
[the thirty seconds below](#thirty-seconds-three-ways) show where each comes from, and the map for a CDN instead.
|
|
74
74
|
|
|
75
75
|
<details>
|
|
76
76
|
<summary>What the button drew inside its shadow root</summary>
|
|
@@ -198,30 +198,53 @@ Each component also has public tokens of its own, `--ui-<tag>-*`, listed on its
|
|
|
198
198
|
The layers in order, dark mode and five recipes (sitewide defaults, one component's, a whole theme,
|
|
199
199
|
the app stylesheet, making a theme) are on [README-themes.md](README-themes.md#five-recipes).
|
|
200
200
|
|
|
201
|
-
## Thirty seconds,
|
|
201
|
+
## Thirty seconds, three ways
|
|
202
202
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
then bring Spell UI in:
|
|
203
|
+
**In a plain HTML page, from a CDN:** nothing to install or build.
|
|
204
|
+
Give the page at the top this import map instead, and open it from any static server:
|
|
206
205
|
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"imports": {
|
|
209
|
+
"spell-ui/": "https://cdn.jsdelivr.net/npm/spell-ui@next/dist/",
|
|
210
|
+
"solid-js": "https://esm.sh/solid-js@2.0.0-rc.17",
|
|
211
|
+
"solid-js/": "https://esm.sh/solid-js@2.0.0-rc.17/",
|
|
212
|
+
"@solidjs/web": "https://esm.sh/@solidjs/web@2.0.0-rc.17?external=solid-js"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
210
215
|
```
|
|
211
216
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
217
|
+
- Checked in headless Chromium against the published `0.8.6`: the segment, its header and the Save button drew,
|
|
218
|
+
with no failed request.
|
|
219
|
+
- `solid-js/` is there for Solid's own `solid-js/internal`, which the vendored copy below folds in.
|
|
215
220
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
221
|
+
**In a program with a bundler:**
|
|
222
|
+
|
|
223
|
+
```sh
|
|
224
|
+
npm install spell-ui@next solid-js@2.0.0-rc.17 @solidjs/web@2.0.0-rc.17
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
```js
|
|
228
|
+
// main.js
|
|
229
|
+
import "spell-ui/ui-root"
|
|
219
230
|
```
|
|
220
231
|
|
|
221
|
-
|
|
232
|
+
Then the same `<ui-root>` markup, in your page or in your components' templates.
|
|
233
|
+
|
|
234
|
+
- Solid 2 is a peer: your app and Spell UI share one copy.
|
|
235
|
+
- Spell UI is also inside `spell`, the whole kit's package, under the kit's names:
|
|
236
|
+
`npm install spell@next`, then `import "spell/ui/ui-root"`.
|
|
237
|
+
A page loads one or the other, never both: each has its own copy of the element code.
|
|
238
|
+
- Inside the kit, Vite reads Spell UI's source under that same name, as it does for the Spell app's own
|
|
239
|
+
`<spell-viewer>` element and for Spell UI's docs site.
|
|
240
|
+
|
|
241
|
+
**In a plain HTML page, from your own server:** build the library once in a checkout of the kit,
|
|
242
|
+
and copy it beside your page.
|
|
243
|
+
Setting the kit up from zero (Node 24, yarn, the clone, the one install) is
|
|
244
|
+
[the kit's front page](https://github.com/spell-app/spell/blob/main/README.md#setup-from-zero).
|
|
222
245
|
|
|
223
246
|
```sh
|
|
224
|
-
cd ~/www/spell/
|
|
247
|
+
cd ~/www/spell/ui
|
|
225
248
|
yarn build # the library, into dist/
|
|
226
249
|
yarn vendor # ONE copy of Solid, for import-map pages, into vendor/
|
|
227
250
|
mkdir ~/hello && cp -R dist vendor ~/hello/
|
|
@@ -268,38 +291,6 @@ python3 -m http.server 8000 # then open http://localhost:8000/hello.html
|
|
|
268
291
|
|
|
269
292
|
</details>
|
|
270
293
|
|
|
271
|
-
🌱 **From a CDN, once Spell UI is on npm,** there's nothing to build: the map points at an npm CDN instead.
|
|
272
|
-
|
|
273
|
-
```json
|
|
274
|
-
{
|
|
275
|
-
"imports": {
|
|
276
|
-
"spell-ui/": "https://cdn.jsdelivr.net/npm/spell-ui/dist/",
|
|
277
|
-
"solid-js": "https://esm.sh/solid-js@2.0.0-rc.17",
|
|
278
|
-
"@solidjs/web": "https://esm.sh/@solidjs/web@2.0.0-rc.17?external=solid-js"
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
Spell UI isn't published, so that map answers nothing yet.
|
|
284
|
-
|
|
285
|
-
**In a program with a bundler,** 🌱 once Spell UI is on npm:
|
|
286
|
-
|
|
287
|
-
```sh
|
|
288
|
-
npm install spell-ui solid-js@2.0.0-rc.17 @solidjs/web@2.0.0-rc.17
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
```js
|
|
292
|
-
// main.js
|
|
293
|
-
import "spell/ui/ui-root"
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
Then the same `<ui-root>` markup, in your page or in your components' templates.
|
|
297
|
-
|
|
298
|
-
Today that works inside the kit, under the name every Spell repo uses, `spell/ui/components/ui-root`:
|
|
299
|
-
Vite reads Spell UI's source, as it does for the Spell app's own `<spell-viewer>` element and for Spell UI's docs site.
|
|
300
|
-
A program outside the kit can't do that yet:
|
|
301
|
-
inside it, Spell UI's entries are its TypeScript source, which only the kit's one install resolves.
|
|
302
|
-
|
|
303
294
|
## `<ui-root>`, the top of every page
|
|
304
295
|
|
|
305
296
|
A page usually has one `<ui-root>`, around everything, and an app's shell can be one:
|
|
@@ -327,7 +318,7 @@ it loads what's inside on demand, gives it a theme and a size, and decides what
|
|
|
327
318
|
| `fixed` | present or not | fills the viewport and stays there: the page never scrolls, the root does; on iOS the keyboard can cover fields near the bottom |
|
|
328
319
|
| `stack-with` | `container`, `page` | what stacking layouts inside measure (`stackable`, `doubling` ...): each element's own width, or the screen's, as in Fomantic; sets `--ui-stack-with`, and an element's own `stack-with` wins |
|
|
329
320
|
| `assets` | a folder | where the built-in icon packs load from, relative to the page; by default, beside the library |
|
|
330
|
-
| `disabled`, `visible`, `animation` | | the states every element shares ([the kit's README
|
|
321
|
+
| `disabled`, `visible`, `animation` | | the states every element shares ([the kit's README/element.md](https://github.com/spell-app/spell/blob/main/README/element.md#what-every-element-gets-without-asking)) |
|
|
331
322
|
|
|
332
323
|
- Two events:
|
|
333
324
|
- `ui-ready`, once everything's in: its `detail.failed` lists what didn't load, `[{ tag, reason, error?, source? }]`,
|
|
@@ -377,8 +368,8 @@ It borrows the page's, so the page still has one Solid, and the pack's elements
|
|
|
377
368
|
- A pack that fails or times out logs an error naming its `source`, and the root still gets ready.
|
|
378
369
|
- A pack's elements are written exactly like a Spell UI family.
|
|
379
370
|
How one is built (`spell pack build`), and what it costs:
|
|
380
|
-
[the kit's README
|
|
381
|
-
the `spell pack` commands that make one: [the kit's README
|
|
371
|
+
[the kit's README/element.md](https://github.com/spell-app/spell/blob/main/README/element.md#packs-and-ui-root);
|
|
372
|
+
the `spell pack` commands that make one: [the kit's README/cli.md](https://github.com/spell-app/spell/blob/main/README/cli.md#spell-ui).
|
|
382
373
|
|
|
383
374
|
## The families: 76, in Fomantic UI's groups
|
|
384
375
|
|
|
@@ -407,17 +398,17 @@ Three families aren't finished: Property Editor, Section and Theme Editor, mark
|
|
|
407
398
|
## Other ways to load
|
|
408
399
|
|
|
409
400
|
The root is one of five ways in.
|
|
410
|
-
Each is a real entry
|
|
401
|
+
Each is a real entry, by its name in the `spell-ui` package and by the kit's name, in `spell` and inside the kit.
|
|
411
402
|
|
|
412
|
-
| How |
|
|
403
|
+
| How | `spell-ui` | The kit's name | What it does |
|
|
413
404
|
| --- | --- | --- | --- |
|
|
414
|
-
| everything | `import "spell
|
|
415
|
-
| one family | `import "spell
|
|
416
|
-
| on demand | `import "spell
|
|
417
|
-
| no JavaScript at all | `import "spell/ui/styles/ui.css"`, through your bundler
|
|
418
|
-
| the static render | `spell ssr <pages>` |
|
|
405
|
+
| everything | `import "spell-ui"` | `import "spell/ui"` | defines every family at once |
|
|
406
|
+
| one family | `import "spell-ui/ui-button"` | `spell/ui/ui-button` (`spell/ui/components/ui-button` in full) | each family is its own entry, so a page carries only what it imports |
|
|
407
|
+
| on demand | `import "spell-ui/ui-root"` | `spell/ui/ui-root` | the root loads the rest: this page's way, and the docs site's |
|
|
408
|
+
| no JavaScript at all | not among its published entries yet | `import "spell/ui/styles/ui.css"`, through your bundler, inside the kit | tokens, utilities, typography and plain-HTML styling as one stylesheet; `class="ui-typography"` on `<body>` for Fomantic's page typography |
|
|
409
|
+
| the static render | -- | `spell ssr <pages>` | `ui-*` pages turned into plain HTML in node, for search engines and readers without JavaScript ([README-runtime.md](README-runtime.md#the-static-render)) |
|
|
419
410
|
|
|
420
|
-
-
|
|
411
|
+
- An import map's `spell-ui/` reaches the same entries as files:
|
|
421
412
|
`spell-ui/index.js`, `spell-ui/ui-button.js`, `spell-ui/ui-root.js`.
|
|
422
413
|
- `ui.css` is a build entry: your bundler inlines its `@import`s and resolves its custom media queries,
|
|
423
414
|
which no browser reads by itself.
|
|
@@ -479,7 +470,7 @@ each example's plain class markup on the left, the same example as elements on t
|
|
|
479
470
|
- The rules for working here (how a component is written, imports, the lint guard): [AGENTS.md](AGENTS.md).
|
|
480
471
|
- The docs site, the tools, their environment variables, and Spell UI's `spell` commands:
|
|
481
472
|
[README-site.md](README-site.md).
|
|
482
|
-
- The framework every family is written on, the kit's: [README
|
|
473
|
+
- The framework every family is written on, the kit's: [README/element.md](https://github.com/spell-app/spell/blob/main/README/element.md).
|
|
483
474
|
|
|
484
475
|
<details>
|
|
485
476
|
<summary>Every yarn script, one line each</summary>
|
|
@@ -585,8 +576,8 @@ If you find yourself writing a second copy of any of these, stop and reuse.
|
|
|
585
576
|
<details>
|
|
586
577
|
<summary>More in the docs site</summary>
|
|
587
578
|
|
|
588
|
-
These guides are served by the page server from the
|
|
589
|
-
so they need a checkout with the
|
|
579
|
+
These guides are served by the page server from the epic folder,
|
|
580
|
+
so they need a checkout with the epic folder and the page server running:
|
|
590
581
|
[README-site.md](README-site.md#viewing-it--one-command-from-anywhere-in-the-kit), "Viewing it".
|
|
591
582
|
|
|
592
583
|
- UI Component Creation: `/guides/ui-component-creation.html`
|
|
@@ -597,11 +588,8 @@ so they need a checkout with the content folder and the page server running:
|
|
|
597
588
|
|
|
598
589
|
## 🌱 Coming
|
|
599
590
|
|
|
600
|
-
The one that would change this page most:
|
|
601
|
-
|
|
602
|
-
and an import map can point at a CDN ([above](#thirty-seconds-two-ways)).
|
|
603
|
-
Where it stands: the package is already shaped for it, its published entries pointing at the built `dist/`,
|
|
604
|
-
whose declarations `yarn smoke` checks an app could resolve; it isn't published.
|
|
591
|
+
The one that would change this page most: the first release, planned for December 1, 2026,
|
|
592
|
+
when `npm install spell-ui` drops its `@next` ([above](#thirty-seconds-three-ways)).
|
|
605
593
|
|
|
606
594
|
The rest is on the page that owns each one:
|
|
607
595
|
- a tool that moves a Semantic UI page over: [README-migrating.md](README-migrating.md#-coming--the-migration-tool)
|
|
@@ -617,7 +605,7 @@ The rest is on the page that owns each one:
|
|
|
617
605
|
|
|
618
606
|
| Page | What's on it |
|
|
619
607
|
| --- | --- |
|
|
620
|
-
| [README.md](README.md) | <ul><li>this page: a page in thirty seconds, every request it made, and two screenshots</li><li>three things that move, by contrast with a component library: tags, the page holding the element, four doors for your CSS</li><li>`<ui-root>`, component packs, the 76 families, other ways to load</li><li>what a page costs and assumes; working on it; 🌱
|
|
608
|
+
| [README.md](README.md) | <ul><li>this page: a page in thirty seconds, every request it made, and two screenshots</li><li>three things that move, by contrast with a component library: tags, the page holding the element, four doors for your CSS</li><li>`<ui-root>`, component packs, the 76 families, other ways to load</li><li>what a page costs and assumes; working on it; 🌱 the first release</li></ul> |
|
|
621
609
|
| [README-components.md](README-components.md) | <ul><li>a family is a folder, and a row</li><li>when two families look alike: Select or Dropdown, Modal or Flyout, Toast or Nag ...</li><li>the catalogue: every family by group, with a picture and what other libraries call it</li><li>how a family is laid out, and adding one step by step; written from the data</li></ul> |
|
|
622
610
|
| [README-runtime.md](README-runtime.md) | <ul><li>one runtime per page, not one per tree: eighteen services, one field each</li><li>vocabularies and localization; icons, and using another icon set</li><li>styles; the static render, served from Python too</li><li>Spell UI's half of the element core; 🌱 named icon sets, rendering from a Python app</li></ul> |
|
|
623
611
|
| [README-themes.md](README-themes.md) | <ul><li>two things that move from MUI or Tailwind: custom properties, one colour value</li><li>what ships: about 400 tokens, dark mode, and Spell's four themes</li><li>five recipes, from tokens on `:root` to the app stylesheet and the theme editor</li><li>the theme menu, `<ui-theme-menu>`</li><li>🌱 themes per component</li></ul> |
|
|
@@ -632,5 +620,5 @@ Every other repo's pages: [the kit's index](https://github.com/spell-app/spell/
|
|
|
632
620
|
- [README-frameworks.md](README-frameworks.md): next, if your page is a React, Vue or Solid app
|
|
633
621
|
- [README-components.md](README-components.md): next, to find the family you need by any name you know
|
|
634
622
|
- [README-themes.md](README-themes.md): next, if the default look isn't yours
|
|
635
|
-
- [The kit's README
|
|
623
|
+
- [The kit's README/element.md](https://github.com/spell-app/spell/blob/main/README/element.md): the framework under every element, before you write one
|
|
636
624
|
- [AGENTS.md](AGENTS.md): the rules for working here, before you change a line
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { n as e } from "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
+
import { beforeNextPaint as t, soon as n } from "./core.js";
|
|
3
|
+
//#region ../src/util/Dragging.ts
|
|
4
|
+
var r = /* @__PURE__ */ e({
|
|
5
|
+
DRAG_START_PX: () => 6,
|
|
6
|
+
Dragging: () => i
|
|
7
|
+
}), i = class Dragging {
|
|
8
|
+
element;
|
|
9
|
+
options;
|
|
10
|
+
static current;
|
|
11
|
+
static get cover() {
|
|
12
|
+
return Dragging.madeCover || (Dragging.madeCover = document.createElement("div"), Dragging.madeCover.style.cssText = o), Dragging.madeCover;
|
|
13
|
+
}
|
|
14
|
+
static madeCover;
|
|
15
|
+
isTouch;
|
|
16
|
+
constructor(e, t, n) {
|
|
17
|
+
this.element = e, this.options = n, this.isTouch = t.pointerType === "touch", this.startX = t.clientX, this.startY = t.clientY, this.pointerId = t.pointerId, this.pressedAt = e.getBoundingClientRect();
|
|
18
|
+
let r = { signal: this.listening.signal };
|
|
19
|
+
window.addEventListener("pointermove", this.onMove, r), window.addEventListener("pointerup", this.onUp, r), window.addEventListener("pointercancel", this.onCancel, r), window.addEventListener("keydown", this.onKey, {
|
|
20
|
+
...r,
|
|
21
|
+
capture: !0
|
|
22
|
+
}), window.addEventListener("blur", this.onBlur, r);
|
|
23
|
+
}
|
|
24
|
+
startX;
|
|
25
|
+
startY;
|
|
26
|
+
pressedAt;
|
|
27
|
+
pointerId;
|
|
28
|
+
listening = new AbortController();
|
|
29
|
+
moving = [];
|
|
30
|
+
get carried() {
|
|
31
|
+
return this.moving;
|
|
32
|
+
}
|
|
33
|
+
heldBoxAt(e, t) {
|
|
34
|
+
let { left: n, top: r, width: i, height: a } = this.pressedAt;
|
|
35
|
+
return new DOMRect(n + e - this.startX, r + t - this.startY, i, a);
|
|
36
|
+
}
|
|
37
|
+
get follows() {
|
|
38
|
+
return this.options.follows !== !1;
|
|
39
|
+
}
|
|
40
|
+
over;
|
|
41
|
+
onMove = (e) => {
|
|
42
|
+
if (e.pointerId !== this.pointerId) return;
|
|
43
|
+
let t = e.clientX - this.startX, n = e.clientY - this.startY;
|
|
44
|
+
if (!this.moving.length) {
|
|
45
|
+
if (Math.hypot(t, n) < 6) return;
|
|
46
|
+
this.start();
|
|
47
|
+
}
|
|
48
|
+
if (this.follows) for (let e of this.moving) e.style.translate = `${t}px ${n}px`;
|
|
49
|
+
if (e.preventDefault(), Dragging.send(this.element, "drag", e), this.options.placing) return this.options.placing(e.clientX, e.clientY);
|
|
50
|
+
this.moveOver(Dragging.dropTargetAt(this.element, e.clientX, e.clientY), e);
|
|
51
|
+
};
|
|
52
|
+
moveOver(e, t) {
|
|
53
|
+
e !== this.over && (this.over && Dragging.send(this.over, "dragleave", t), this.over = e, e && Dragging.send(e, "dragenter", t)), e && Dragging.send(e, "dragover", t);
|
|
54
|
+
}
|
|
55
|
+
start() {
|
|
56
|
+
let e = [];
|
|
57
|
+
for (let t = this.element.nextElementSibling; t; t = t.nextElementSibling) e.push(t);
|
|
58
|
+
if (this.moving = this.options.carried ?? [this.element, ...e], this.follows) for (let e of this.moving) e.style.zIndex = a, e.style.pointerEvents = "none";
|
|
59
|
+
getSelection()?.removeAllRanges(), document.documentElement.style.userSelect = "none", this.isTouch || document.body.append(Dragging.cover), Dragging.current = this, this.element.dispatchEvent(new DragEvent("dragstart", {
|
|
60
|
+
bubbles: !0,
|
|
61
|
+
composed: !0
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
onUp = (e) => {
|
|
65
|
+
if (e.pointerId !== this.pointerId || (this.listening.abort(), !this.moving.length)) return;
|
|
66
|
+
Dragging.swallowNextClick();
|
|
67
|
+
let n = this.options.placing ? void 0 : Dragging.dropTargetAt(this.element, e.clientX, e.clientY);
|
|
68
|
+
this.moveOver(n, e);
|
|
69
|
+
try {
|
|
70
|
+
n && Dragging.send(n, "drop", e), this.options.onDrop(n);
|
|
71
|
+
} finally {
|
|
72
|
+
t(() => this.settle());
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
onCancel = (e) => {
|
|
76
|
+
e.pointerId === this.pointerId && this.cancel(e);
|
|
77
|
+
};
|
|
78
|
+
onKey = (e) => {
|
|
79
|
+
e.key === "Escape" && this.moving.length && (e.preventDefault(), e.stopPropagation(), Dragging.swallowNextClick(), this.cancel(e));
|
|
80
|
+
};
|
|
81
|
+
onBlur = (e) => {
|
|
82
|
+
this.moving.length && this.cancel(e);
|
|
83
|
+
};
|
|
84
|
+
cancel(e) {
|
|
85
|
+
this.listening.abort();
|
|
86
|
+
let t = this.moving.length > 0;
|
|
87
|
+
this.over && Dragging.send(this.over, "dragleave", e), this.over = void 0, this.settle(), t && this.options.onCancel?.();
|
|
88
|
+
}
|
|
89
|
+
settle() {
|
|
90
|
+
for (let e of this.follows ? this.moving : []) {
|
|
91
|
+
let t = e.style.translate;
|
|
92
|
+
e.style.translate = "", e.style.pointerEvents = "", e.style.zIndex = "", e.isConnected && t && t !== "0px 0px" && e.animate([{
|
|
93
|
+
translate: t,
|
|
94
|
+
zIndex: a
|
|
95
|
+
}, {
|
|
96
|
+
translate: "0 0",
|
|
97
|
+
zIndex: a
|
|
98
|
+
}], {
|
|
99
|
+
duration: s,
|
|
100
|
+
easing: c
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
document.documentElement.style.userSelect = "", Dragging.cover.remove(), Dragging.current === this && (Dragging.current = void 0), this.element.dispatchEvent(new DragEvent("dragend", {
|
|
104
|
+
bubbles: !0,
|
|
105
|
+
composed: !0
|
|
106
|
+
}));
|
|
107
|
+
}
|
|
108
|
+
static send(e, t, n) {
|
|
109
|
+
let { clientX: r, clientY: i } = "clientX" in n ? n : {
|
|
110
|
+
clientX: 0,
|
|
111
|
+
clientY: 0
|
|
112
|
+
};
|
|
113
|
+
e.dispatchEvent(new DragEvent(t, {
|
|
114
|
+
bubbles: !0,
|
|
115
|
+
composed: !0,
|
|
116
|
+
cancelable: !0,
|
|
117
|
+
clientX: r,
|
|
118
|
+
clientY: i
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
static dropTargetAt(e, t, n) {
|
|
122
|
+
let r = e.getRootNode().elementsFromPoint(t, n).filter((e) => e !== Dragging.cover), i;
|
|
123
|
+
for (let e of r) if (i = Dragging.upFrom(e).find((e) => Dragging.isDropTarget(e)), i) break;
|
|
124
|
+
return i && Dragging.takesDrop(i) ? i : Dragging.rowTargetAt(r, t, n, i) ?? i;
|
|
125
|
+
}
|
|
126
|
+
static rowTargetAt(e, t, n, r) {
|
|
127
|
+
for (let i of e) for (let e of Dragging.upFrom(i)) {
|
|
128
|
+
let i = [...e.children].filter((e) => Dragging.isDropTarget(e));
|
|
129
|
+
if (i.length < 2) continue;
|
|
130
|
+
let a = i.map((e) => ({
|
|
131
|
+
list: e,
|
|
132
|
+
box: e.getBoundingClientRect()
|
|
133
|
+
})).filter(({ box: e }) => e.top <= n && n <= e.bottom), o = r?.localName ?? a.find(({ list: e }) => {
|
|
134
|
+
let n = a.filter((t) => t.list.localName === e.localName).map(({ box: e }) => e);
|
|
135
|
+
return Math.min(...n.map((e) => e.left)) <= t && t <= Math.max(...n.map((e) => e.right));
|
|
136
|
+
})?.list.localName, s = a.filter(({ list: e }) => e.localName === o && Dragging.takesDrop(e));
|
|
137
|
+
return s.length === 1 ? s[0].list : void 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
static upFrom(e) {
|
|
141
|
+
let t = [];
|
|
142
|
+
for (let n = e; n; n = n.parentElement ?? n.getRootNode().host ?? null) t.push(n);
|
|
143
|
+
return t;
|
|
144
|
+
}
|
|
145
|
+
static isDropTarget(e) {
|
|
146
|
+
return Dragging.dropRules.some((t) => t.isDropTarget(e));
|
|
147
|
+
}
|
|
148
|
+
static takesDrop(e) {
|
|
149
|
+
let t = Dragging.dropRules.find((t) => t.isDropTarget(e));
|
|
150
|
+
return !t || t.takesDrop(e);
|
|
151
|
+
}
|
|
152
|
+
static addDropRule(e) {
|
|
153
|
+
Dragging.dropRules.push(e);
|
|
154
|
+
}
|
|
155
|
+
static dropRules = [];
|
|
156
|
+
static swallowNextClick() {
|
|
157
|
+
let swallow = (e) => {
|
|
158
|
+
e.stopPropagation(), e.preventDefault();
|
|
159
|
+
};
|
|
160
|
+
window.addEventListener("click", swallow, {
|
|
161
|
+
capture: !0,
|
|
162
|
+
once: !0
|
|
163
|
+
}), n(() => window.removeEventListener("click", swallow, { capture: !0 }));
|
|
164
|
+
}
|
|
165
|
+
}, a = "1000", o = "position: fixed; inset: 0; z-index: 2147483647; cursor: grabbing", s = 200, c = "cubic-bezier(0.2, 0.7, 0.3, 1)";
|
|
166
|
+
//#endregion
|
|
167
|
+
export { r as n, i as t };
|
|
168
|
+
|
|
169
|
+
//# sourceMappingURL=Dragging-CMZoLEWQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dragging-CMZoLEWQ.js","names":["__exportAll","Dragging_exports","Dragging","DRAG_COVER","element","options","event","listening","left","x","top","y","width","height","dx","dy","target","following","next","DRAGGING_Z_INDEX","wasDragging","from","SLIDE_BACK_MS","SLIDE_BACK_EASING","type","hits","hit","under","at","lists","child","row","list","box","kind","span","other","taking","chain","rule","each","soon"],"sources":["../../src/util/Dragging.ts"],"sourcesContent":["import { beforeNextPaint, soon } from \"./timing\"\n\n/****************\n * ### `Dragging`\n * One drag of a view's element, from pointer down to pointer up: a mouse and a finger alike.\n *\n * - 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.\n * - They follow the pointer by their `translate`, raised above the board.\n * - They ignore the pointer meanwhile, so what's under it can be found.\n * - Or what its owner says (`DragOptions.carried`), staying where it is (`follows: false`):\n * e.g. a task list's selected tasks, dimmed, while a line shows where they'd go\n * (`SpellElement`, epic `outline-spell` P30).\n * - Where it lands: the viewable list's element under the pointer, as `dropTargetAt()` finds it.\n * - It sends the web's own drag events, as `DragEvent`s with no `dataTransfer`,\n * so a page can follow it as it would the browser's drag and drop:\n * - on the dragged element: `dragstart`, `drag` as it moves, `dragend`\n * - on the list under the pointer: `dragenter`, `dragover` as it moves over it, `dragleave`, and `drop`\n * - What's being dragged meanwhile: `Dragging.current`.\n * - Why not the browser's own drag and drop (`draggable=\"true\"`):\n * it's patchy on phones, only a faded picture of one element follows the pointer, and it can't glide or slide back.\n * - A press that doesn't move past `DRAG_START_PX` is no drag: its click goes through as ever.\n * A real drag swallows the click that follows it.\n * - What happens on the drop is its owner's to say (`onDrop`), e.g. `SpellElement`'s:\n * the pile's `when a card is dropped on it`, else the program's `card-drop`.\n * - What still sits where it was dragged from afterwards, a drop nobody took, slides back.\n * - Escape cancels it (epic `debut` P27, Q47): everything slides back, and its owner hears `onCancel`,\n * as it does for a drag the browser takes away, or the window losing focus mid-drag (epic `language` T29).\n * - What moved is drawn again in its new list, and glides there from where it was dropped (`Glides`).\n * - A mouse drag covers the whole page with the closed hand, whatever is under it (`DRAG_COVER`).\n * - A rule can't do that: nothing in a page's sheets reaches into every shadow root,\n * and the code editor sets its own cursor.\n * - A drag can leave finding its place to its owner (`DragOptions.placing`), e.g. the editor's, moving a part:\n * no list hears of it, and `placing` is told where the pointer is.\n * - Plain DOM: no Solid, no core. Its owner hands it the element and what to do.\n * - In util, not Spell UI's runtime: a runner's build may not reach into `spell/ui/runtime`.\n ****************/\nexport class Dragging {\n /** The drag in progress, if any: a list under the pointer asks it what's coming. */\n static current: Dragging | undefined\n\n /** What covers the page during a mouse drag, showing the closed hand: made once, on the first use. */\n private static get cover(): HTMLElement {\n if (!Dragging.madeCover) {\n Dragging.madeCover = document.createElement(\"div\")\n Dragging.madeCover.style.cssText = DRAG_COVER\n }\n return Dragging.madeCover\n }\n private static madeCover: HTMLElement | undefined\n\n /** Was it pressed with a finger? No cursor to show, so no cover. */\n private readonly isTouch: boolean\n\n /** Start watching a press on `element`, `event` its `pointerdown`: a drag once it moves far enough. */\n constructor(\n readonly element: HTMLElement,\n event: PointerEvent,\n private readonly options: DragOptions\n ) {\n this.isTouch = event.pointerType === \"touch\"\n this.startX = event.clientX\n this.startY = event.clientY\n this.pointerId = event.pointerId\n this.pressedAt = element.getBoundingClientRect()\n const listening = { signal: this.listening.signal }\n window.addEventListener(\"pointermove\", this.onMove, listening)\n window.addEventListener(\"pointerup\", this.onUp, listening)\n window.addEventListener(\"pointercancel\", this.onCancel, listening)\n window.addEventListener(\"keydown\", this.onKey, { ...listening, capture: true })\n window.addEventListener(\"blur\", this.onBlur, listening)\n }\n\n /** Where the press started. */\n private readonly startX: number\n private readonly startY: number\n /** Where the element was as it was pressed: where in it the press was, and its size (`heldBoxAt()`). */\n private readonly pressedAt: DOMRect\n /** The pointer pressing: a second finger is ignored. */\n private readonly pointerId: number\n /** Ends the window listeners. */\n private readonly listening = new AbortController()\n /** What's carried, once it's a drag: the element, then its list's items after it -- or what `options` says. */\n private moving: HTMLElement[] = []\n\n /** What's carried: the element first. */\n get carried(): readonly HTMLElement[] {\n return this.moving\n }\n\n /**\n * Where the dragged element would be with the pointer at (`x`, `y`), held where it was pressed:\n * grabbed near its bottom, it's mostly above the pointer.\n * - So a list placing it goes by the element, not the pointer: it lands under the pointer as it was held.\n */\n heldBoxAt(x: number, y: number): DOMRect {\n const { left, top, width, height } = this.pressedAt\n return new DOMRect(left + x - this.startX, top + y - this.startY, width, height)\n }\n\n /** Does what's carried follow the pointer? Else it stays where it is (`DragOptions.follows`). */\n get follows(): boolean {\n return this.options.follows !== false\n }\n\n /** The drop target under the pointer now, if any: it's had `dragenter`, and gets `dragleave` as the pointer leaves. */\n private over: HTMLElement | undefined\n\n /** The pointer moved: past `DRAG_START_PX`, a drag starts; during one, what's dragged follows it. */\n private readonly onMove = (event: PointerEvent) => {\n if (event.pointerId !== this.pointerId) return\n const dx = event.clientX - this.startX\n const dy = event.clientY - this.startY\n if (!this.moving.length) {\n if (Math.hypot(dx, dy) < DRAG_START_PX) return\n this.start()\n }\n if (this.follows) for (const element of this.moving) element.style.translate = `${dx}px ${dy}px`\n event.preventDefault()\n Dragging.send(this.element, \"drag\", event)\n if (this.options.placing) return this.options.placing(event.clientX, event.clientY)\n this.moveOver(Dragging.dropTargetAt(this.element, event.clientX, event.clientY), event)\n }\n\n /** The pointer is over `target` now: `dragleave` on the one it left, `dragenter` on a new one, `dragover` on it. */\n private moveOver(target: HTMLElement | undefined, event: PointerEvent) {\n if (target !== this.over) {\n if (this.over) Dragging.send(this.over, \"dragleave\", event)\n this.over = target\n if (target) Dragging.send(target, \"dragenter\", event)\n }\n if (target) Dragging.send(target, \"dragover\", event)\n }\n\n /**\n * The drag starts: what's carried is raised, and leaves the pointer to what's under it --\n * unless it stays where it is.\n */\n private start() {\n const following: HTMLElement[] = []\n for (let next = this.element.nextElementSibling; next; next = next.nextElementSibling) {\n following.push(next as HTMLElement)\n }\n this.moving = this.options.carried ?? [this.element, ...following]\n if (this.follows) {\n for (const element of this.moving) {\n element.style.zIndex = DRAGGING_Z_INDEX\n element.style.pointerEvents = \"none\"\n }\n }\n // no text selected as the pointer sweeps the page, as the browser's own drag selects none\n getSelection()?.removeAllRanges()\n document.documentElement.style.userSelect = \"none\"\n if (!this.isTouch) document.body.append(Dragging.cover)\n Dragging.current = this\n this.element.dispatchEvent(new DragEvent(\"dragstart\", { bubbles: true, composed: true }))\n }\n\n /** The pointer's let go: a drag drops where it is; a press with no drag is left to its click. */\n private readonly onUp = (event: PointerEvent) => {\n if (event.pointerId !== this.pointerId) return\n this.listening.abort()\n if (!this.moving.length) return\n Dragging.swallowNextClick()\n const target = this.options.placing ? undefined : Dragging.dropTargetAt(this.element, event.clientX, event.clientY)\n this.moveOver(target, event)\n try {\n if (target) Dragging.send(target, \"drop\", event)\n this.options.onDrop(target)\n } finally {\n // after the move is drawn: what's still here wasn't taken, and slides back\n beforeNextPaint(() => this.settle())\n }\n }\n\n /** The browser took the pointer away (a scroll, a system gesture): put everything back. */\n private readonly onCancel = (event: PointerEvent) => {\n if (event.pointerId !== this.pointerId) return\n this.cancel(event)\n }\n\n /** Escape, during a drag: put everything back, and swallow the key. */\n private readonly onKey = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || !this.moving.length) return\n event.preventDefault()\n event.stopPropagation()\n Dragging.swallowNextClick()\n this.cancel(event)\n }\n\n /**\n * The window lost focus mid-drag (another app, a window switch): put everything back.\n * - Its let-go may never reach the page, so the cover would stay up, swallowing every click, until the next press.\n */\n private readonly onBlur = (event: FocusEvent) => {\n if (this.moving.length) this.cancel(event)\n }\n\n /** The drag is cancelled: it leaves the list it's over, slides back, and its owner hears so (`onCancel`). */\n private cancel(event: PointerEvent | KeyboardEvent | FocusEvent) {\n this.listening.abort()\n const wasDragging = this.moving.length > 0\n if (this.over) Dragging.send(this.over, \"dragleave\", event)\n this.over = undefined\n this.settle()\n if (wasDragging) this.options.onCancel?.()\n }\n\n /** What's still where it was dragged from slides back, and takes the pointer again. */\n private settle() {\n for (const element of this.follows ? this.moving : []) {\n const from = element.style.translate\n element.style.translate = \"\"\n element.style.pointerEvents = \"\"\n element.style.zIndex = \"\"\n if (element.isConnected && from && from !== \"0px 0px\") {\n element.animate(\n [\n { translate: from, zIndex: DRAGGING_Z_INDEX },\n { translate: \"0 0\", zIndex: DRAGGING_Z_INDEX }\n ],\n {\n duration: SLIDE_BACK_MS,\n easing: SLIDE_BACK_EASING\n }\n )\n }\n }\n document.documentElement.style.userSelect = \"\"\n Dragging.cover.remove()\n if (Dragging.current === this) Dragging.current = undefined\n this.element.dispatchEvent(new DragEvent(\"dragend\", { bubbles: true, composed: true }))\n }\n\n /** Send drag event `type` to `target`, where `event`'s pointer is: a `DragEvent`, as the browser's own. */\n private static send(target: HTMLElement, type: string, event: PointerEvent | KeyboardEvent | FocusEvent) {\n const { clientX, clientY } = \"clientX\" in event ? event : { clientX: 0, clientY: 0 }\n target.dispatchEvent(new DragEvent(type, { bubbles: true, composed: true, cancelable: true, clientX, clientY }))\n }\n\n /**\n * The element under (`x`, `y`) that may take the drop, searching up from the topmost there, through shadow roots:\n * the first one `isDropTarget()` accepts -- `undefined` if none.\n * - Looked for in `element`'s own tree, where the board is (a runner's shadow root, or the page).\n * - One that won't take it, or a gap between lists: the one list of that row that would, if only one would\n * (`rowTargetAt()`), e.g. a card anywhere over a game's foundations lands on its own suit's.\n */\n static dropTargetAt(element: HTMLElement, x: number, y: number): HTMLElement | undefined {\n const root = element.getRootNode() as Document | ShadowRoot\n const hits = root.elementsFromPoint(x, y).filter((hit) => hit !== Dragging.cover)\n let under: HTMLElement | undefined\n for (const hit of hits) {\n under = Dragging.upFrom(hit).find((at) => Dragging.isDropTarget(at)) as HTMLElement | undefined\n if (under) break\n }\n if (under && Dragging.takesDrop(under)) return under\n return Dragging.rowTargetAt(hits, x, y, under) ?? under\n }\n\n /**\n * 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\n * what's dragged -- `undefined` if none would, or more than one.\n * - The row: the lists side by side under the pointer, in the nearest element around it that holds lists,\n * of the kind it's over (its tag), or whose span it's in.\n */\n private static rowTargetAt(hits: Element[], x: number, y: number, under: HTMLElement | undefined) {\n for (const hit of hits) {\n for (const at of Dragging.upFrom(hit)) {\n const lists = [...at.children].filter((child) => Dragging.isDropTarget(child)) as HTMLElement[]\n if (lists.length < 2) continue\n const row = lists\n .map((list) => ({ list, box: list.getBoundingClientRect() }))\n .filter(({ box }) => box.top <= y && y <= box.bottom)\n const kind =\n under?.localName ??\n row.find(({ list }) => {\n const span = row.filter((other) => other.list.localName === list.localName).map(({ box }) => box)\n return Math.min(...span.map((box) => box.left)) <= x && x <= Math.max(...span.map((box) => box.right))\n })?.list.localName\n const taking = row.filter(({ list }) => list.localName === kind && Dragging.takesDrop(list))\n return taking.length === 1 ? taking[0]!.list : undefined\n }\n }\n return undefined\n }\n\n /** `element` and every element around it, up through shadow roots. */\n private static upFrom(element: Element): Element[] {\n const chain: Element[] = []\n for (let at: Element | null = element; at; at = at.parentElement ?? (at.getRootNode() as ShadowRoot).host ?? null) {\n chain.push(at)\n }\n return chain\n }\n\n /** May `element` take a drop? Yes if any owner's rule says so (`addDropRule()`). */\n static isDropTarget(element: Element): boolean {\n return Dragging.dropRules.some((rule) => rule.isDropTarget(element))\n }\n\n /** Would drop target `element` take what's dragged now? The rule that owns it says; with none, yes. */\n static takesDrop(element: Element): boolean {\n const rule = Dragging.dropRules.find((each) => each.isDropTarget(element))\n return rule ? rule.takesDrop(element) : true\n }\n\n /**\n * Add an owner's rule for what takes a drop, e.g. `SpellElement`'s: a viewable list's element.\n * - A rule, not a setting: each copy of a runtime on the page adds its own, and each knows only its own elements\n * (the editor's layout runs on a copy, beside the program's). One setting, the last copy's, would refuse the rest.\n */\n static addDropRule(rule: DropRule): void {\n Dragging.dropRules.push(rule)\n }\n private static readonly dropRules: DropRule[] = []\n\n /** The click a drag's pointer up makes is no click: swallowed, once, before anything hears it. */\n private static swallowNextClick() {\n const swallow = (event: Event) => {\n event.stopPropagation()\n event.preventDefault()\n }\n window.addEventListener(\"click\", swallow, { capture: true, once: true })\n // a pointer up off the element makes no click: stop waiting for one\n soon(() => window.removeEventListener(\"click\", swallow, { capture: true }))\n }\n}\n\n/** One owner's rule for what takes a drop: `Dragging.addDropRule()`. */\nexport type DropRule = {\n /** May `element` take a drop? Only the owner's own elements. */\n isDropTarget: (element: Element) => boolean\n /** Would `element`, one of its drop targets, take what's dragged now? */\n takesDrop: (element: Element) => boolean\n}\n\n/** How a drag goes: what its owner says. */\nexport type DragOptions = {\n /** What happens on the drop, on `target`, the list under the pointer -- `undefined` for none. */\n onDrop(target: HTMLElement | undefined): void\n /** The drag was cancelled before any drop: Escape, or the browser took the pointer away. */\n onCancel?(): void\n /** What's carried, the dragged element first; default the element and its list's items after it. */\n carried?: HTMLElement[]\n /** Does what's carried follow the pointer? Default yes; `false`: it stays where it is, dimmed by its owner. */\n follows?: boolean\n /** Its owner finds the place itself: told where the pointer is as it moves, and no list hears of the drag. */\n placing?(x: number, y: number): void\n}\n\n/** How far the pointer moves before a press is a drag, in pixels: less is a click. */\nexport const DRAG_START_PX = 6\n\n/** Above the board while dragged. */\nconst DRAGGING_Z_INDEX = \"1000\"\n\n/** How the page's cover looks during a mouse drag (`Dragging.cover`): clear, over everything, the closed hand. */\nconst DRAG_COVER = \"position: fixed; inset: 0; z-index: 2147483647; cursor: grabbing\"\n\n/** How long a drop nobody took slides back, in milliseconds. */\nconst SLIDE_BACK_MS = 200\n\n/** How it slides back: quickly at first, settling into place. */\nconst SLIDE_BACK_EASING = \"cubic-bezier(0.2, 0.7, 0.3, 1)\"\n"],"mappings":";;;;;;IAoCaE,IAAb,MAAa,SAAS;CAmBT;CAEQ;CAnBnB,OAAO;CAGP,WAAmB,QAAqB;EAKtC,OAJK,SAAS,cACZ,SAAS,YAAY,SAAS,cAAc,KAAK,GACjD,SAAS,UAAU,MAAM,UAAUC,IAE9B,SAAS;CAClB;CACA,OAAe;CAGf;CAGA,YACE,GACA,GACA,GACA;EAKA,AARS,KAAA,UAAAC,GAEQ,KAAA,UAAAC,GAEjB,KAAK,UAAUC,EAAM,gBAAgB,SACrC,KAAK,SAASA,EAAM,SACpB,KAAK,SAASA,EAAM,SACpB,KAAK,YAAYA,EAAM,WACvB,KAAK,YAAYF,EAAQ,sBAAsB;EAC/C,IAAMG,IAAY,EAAE,QAAQ,KAAK,UAAU,OAAO;EAKlD,AAJA,OAAO,iBAAiB,eAAe,KAAK,QAAQA,CAAS,GAC7D,OAAO,iBAAiB,aAAa,KAAK,MAAMA,CAAS,GACzD,OAAO,iBAAiB,iBAAiB,KAAK,UAAUA,CAAS,GACjE,OAAO,iBAAiB,WAAW,KAAK,OAAO;GAAE,GAAGA;GAAW,SAAS;EAAK,CAAC,GAC9E,OAAO,iBAAiB,QAAQ,KAAK,QAAQA,CAAS;CACxD;CAGA;CACA;CAEA;CAEA;CAEA,YAA6B,IAAI,gBAAgB;CAEjD,SAAgC,CAAC;CAGjC,IAAI,UAAkC;EACpC,OAAO,KAAK;CACd;CAOA,UAAU,GAAW,GAAoB;EACvC,IAAM,EAAE,SAAM,QAAK,UAAO,cAAW,KAAK;EAC1C,OAAO,IAAI,QAAQC,IAAOC,IAAI,KAAK,QAAQC,IAAMC,IAAI,KAAK,QAAQC,GAAOC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