@eightshift/ui-components 8.0.0 → 8.1.0
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/dist/{Autocomplete-BtRn6klq.js → Autocomplete-BUU44AuW.js} +22 -15
- package/dist/{Button-9jdCU_L7.js → Button-_E2Z5G2l.js} +14 -14
- package/dist/{Dialog-DpHdFPGk.js → Dialog-3XLIaepk.js} +126 -109
- package/dist/{Disclosure-B3_qLaUB.js → Disclosure-Dh0z_DEQ.js} +11 -11
- package/dist/{FocusScope-CZoILo1u.js → FocusScope-BKGWN6UK.js} +7 -7
- package/dist/{Form-khN5PAN7.js → Form-BWMVEpwR.js} +1 -1
- package/dist/{Heading-V9tM5XWJ.js → Heading-BWTs9ckA.js} +3 -3
- package/dist/{Hidden-ZYMtT5BU.js → Hidden-C4Saxkx9.js} +4 -4
- package/dist/{I18nProvider-iRzqGw-D.js → I18nProvider-BskRMK8G.js} +3 -3
- package/dist/{Label-D8hcesgs.js → Label-UpU4cKPh.js} +4 -4
- package/dist/{List-BNOy0zms.js → List-BKcyZ8tT.js} +6 -6
- package/dist/{ListBox-c3TVEPet.js → ListBox-DepY-52g.js} +39 -37
- package/dist/{NumberFormatter-CJgo_mTg.js → NumberFormatter-WKBRKiEA.js} +4 -1
- package/dist/{PortalProvider-CcgJPJ2x.js → PortalProvider-Dbcc7pHq.js} +2 -2
- package/dist/{RadioGroup-DnE-0ISm.js → RadioGroup-Br9Mn9QJ.js} +41 -24
- package/dist/{SearchField-D45ndgZB.js → SearchField-q2Fj0L9K.js} +14 -14
- package/dist/SelectionIndicator-CyOcB5ps.js +5 -0
- package/dist/SharedElementTransition-D1LPCrSc.js +10 -0
- package/dist/{Slider-BipPsF_i.js → Slider-B8icnyOo.js} +40 -25
- package/dist/{Text-86b6VRkm.js → Text-D4y19vs8.js} +3 -3
- package/dist/{VisuallyHidden-CJBnc-Mm.js → VisuallyHidden-B_LZ_kn7.js} +4 -4
- package/dist/{animation-DR2fvAP0.js → animation-DpSgtWyu.js} +1 -1
- package/dist/assets/fonts/geist-mono-latin-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-700-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
- package/dist/assets/style-admin.css +2 -2
- package/dist/assets/style-editor.css +2 -2
- package/dist/assets/style.css +2 -2
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
- package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
- package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/assets/wp-overrides/replace-fonts.css +1 -1
- package/dist/assets/wp-overrides/restyle-tooltips.css +2 -2
- package/dist/assets/wp-overrides/round-corners.css +1 -1
- package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
- package/dist/{build-module-Bb_b-FCh.js → build-module-DG6ZK7Ty.js} +6 -131
- package/dist/{button-Bxmw0hqk.js → button-XSk_8UW7.js} +57 -8
- package/dist/{checkbox-BvQwgvc_.js → checkbox-BYaS9tQ5.js} +49 -55
- package/dist/{color-swatch-D3QlNt5l.js → color-swatch-6ZEIXej3.js} +18 -12
- package/dist/components/animated-visibility/animated-visibility.d.ts +1 -1
- package/dist/components/base-control/base-control.d.ts +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/base-control/container.d.ts +28 -0
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.d.ts +1 -1
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.d.ts +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.d.ts +1 -1
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.d.ts +2 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.d.ts +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.d.ts +1 -1
- package/dist/components/component-toggle/component-toggle.js +5 -4
- package/dist/components/container-panel/container-panel.d.ts +1 -1
- package/dist/components/container-panel/container-panel.js +3 -3
- package/dist/components/contextual-help/contextual-help.d.ts +1 -1
- package/dist/components/contextual-help/contextual-help.js +3 -3
- package/dist/components/draggable/draggable-handle.d.ts +1 -1
- package/dist/components/draggable/draggable.d.ts +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.d.ts +2 -2
- package/dist/components/draggable-list/draggable-list.d.ts +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.d.ts +1 -1
- package/dist/components/expandable/expandable.js +4 -4
- package/dist/components/index.js +14 -14
- package/dist/components/input-field/input-field.d.ts +1 -1
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.d.ts +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.d.ts +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.d.ts +1 -1
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.d.ts +6 -6
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notice/notice.d.ts +1 -1
- package/dist/components/number-picker/number-picker.d.ts +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.d.ts +1 -1
- package/dist/components/option-select/option-select.js +5 -5
- package/dist/components/options-panel/options-panel.d.ts +4 -9
- package/dist/components/options-panel/options-panel.js +10 -19
- package/dist/components/placeholders/file-picker-shell.d.ts +1 -1
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.d.ts +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/placeholders/image-placeholder.d.ts +1 -1
- package/dist/components/placeholders/media-placeholder.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/popover/popover.js +4 -4
- package/dist/components/portal-provider/portal-provider.d.ts +1 -1
- package/dist/components/portal-provider/portal-provider.js +1 -1
- package/dist/components/radio/radio.d.ts +2 -2
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/repeater/repeater-item.d.ts +1 -1
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.d.ts +1 -1
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.d.ts +1 -1
- package/dist/components/responsive/mini-responsive.js +5 -4
- package/dist/components/responsive/responsive-legacy.d.ts +1 -1
- package/dist/components/responsive/responsive-legacy.js +5 -4
- package/dist/components/responsive/responsive.d.ts +1 -1
- package/dist/components/responsive/responsive.js +5 -4
- package/dist/components/responsive-preview/responsive-preview.d.ts +1 -1
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.d.ts +1 -1
- package/dist/components/select/async-multi-select.d.ts +1 -1
- package/dist/components/select/async-multi-select.js +15 -13
- package/dist/components/select/async-select.d.ts +1 -1
- package/dist/components/select/async-select.js +13 -12
- package/dist/components/select/multi-select.d.ts +1 -1
- package/dist/components/select/multi-select.js +17 -14
- package/dist/components/select/shared.d.ts +2 -2
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.d.ts +1 -1
- package/dist/components/select/single-select.js +11 -11
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.d.ts +2 -2
- package/dist/components/slider/column-config-slider.js +5 -4
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/slider/slider.js +5 -5
- package/dist/components/slider/utils.js +2 -1
- package/dist/components/smart-image/smart-image.d.ts +1 -1
- package/dist/components/smart-image/smart-image.js +4 -3
- package/dist/components/spacer/spacer.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +4 -4
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.d.ts +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toggle/toggle.js +2 -2
- package/dist/components/toggle-button/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{dist-yhJVnp08.js → dist-DpXluZqJ.js} +3 -2
- package/dist/{draggable-ByXjMHm6.js → draggable-9MfdTVWP.js} +978 -612
- package/dist/{gradient-editor-D5-_PaH7.js → gradient-editor-yqSw0uPA.js} +8 -6
- package/dist/icons/icon.d.ts +1 -1
- package/dist/icons/icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/icons/ui-icons/a11y-warning.d.ts +1 -1
- package/dist/icons/ui-icons/a11y.d.ts +1 -1
- package/dist/icons/ui-icons/accelerometer.d.ts +1 -1
- package/dist/icons/ui-icons/activity-log.d.ts +1 -1
- package/dist/icons/ui-icons/add.d.ts +1 -1
- package/dist/icons/ui-icons/alert.d.ts +1 -1
- package/dist/icons/ui-icons/align-horizontal-vertical-alt.d.ts +1 -1
- package/dist/icons/ui-icons/align-horizontal-vertical-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/align-horizontal-vertical.d.ts +1 -1
- package/dist/icons/ui-icons/alt-text-generic-alt.d.ts +1 -1
- package/dist/icons/ui-icons/alt-text-generic.d.ts +1 -1
- package/dist/icons/ui-icons/alt-text.d.ts +1 -1
- package/dist/icons/ui-icons/anchor-page.d.ts +1 -1
- package/dist/icons/ui-icons/anchor.d.ts +1 -1
- package/dist/icons/ui-icons/angle.d.ts +1 -1
- package/dist/icons/ui-icons/animation-file.d.ts +1 -1
- package/dist/icons/ui-icons/animation-generic.d.ts +1 -1
- package/dist/icons/ui-icons/animation-list-generic.d.ts +1 -1
- package/dist/icons/ui-icons/animation-settings-generic.d.ts +1 -1
- package/dist/icons/ui-icons/animation.d.ts +1 -1
- package/dist/icons/ui-icons/archive-file.d.ts +1 -1
- package/dist/icons/ui-icons/archive.d.ts +1 -1
- package/dist/icons/ui-icons/aria-label.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-down-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-down-circle.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-down-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-down-square.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-down.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-left-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-left-circle.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-left-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-left-square.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-left.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-right-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-right-circle.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-right-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-right-square.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-right.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-up-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-up-circle.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-up-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-up-square.d.ts +1 -1
- package/dist/icons/ui-icons/arrow-up.d.ts +1 -1
- package/dist/icons/ui-icons/arrows-down.d.ts +1 -1
- package/dist/icons/ui-icons/arrows-horizontal.d.ts +1 -1
- package/dist/icons/ui-icons/arrows-left-diagonal.d.ts +1 -1
- package/dist/icons/ui-icons/arrows-left.d.ts +1 -1
- package/dist/icons/ui-icons/arrows-right-diagonal.d.ts +1 -1
- package/dist/icons/ui-icons/arrows-right.d.ts +1 -1
- package/dist/icons/ui-icons/arrows-up.d.ts +1 -1
- package/dist/icons/ui-icons/arrows-vertical.d.ts +1 -1
- package/dist/icons/ui-icons/aspect-ratio-auto.d.ts +1 -1
- package/dist/icons/ui-icons/aspect-ratio-nine-sixteen.d.ts +1 -1
- package/dist/icons/ui-icons/aspect-ratio-sixteen-nine.d.ts +1 -1
- package/dist/icons/ui-icons/aspect-ratio-square.d.ts +1 -1
- package/dist/icons/ui-icons/aspect-ratio-three-two.d.ts +1 -1
- package/dist/icons/ui-icons/aspect-ratio-twenty-one-nine.d.ts +1 -1
- package/dist/icons/ui-icons/aspect-ratio.d.ts +1 -1
- package/dist/icons/ui-icons/attachment.d.ts +1 -1
- package/dist/icons/ui-icons/auto-close.d.ts +1 -1
- package/dist/icons/ui-icons/auto-pause-scroll.d.ts +1 -1
- package/dist/icons/ui-icons/auto-pause.d.ts +1 -1
- package/dist/icons/ui-icons/automatic-alt.d.ts +1 -1
- package/dist/icons/ui-icons/automatic.d.ts +1 -1
- package/dist/icons/ui-icons/autoplay-alt.d.ts +1 -1
- package/dist/icons/ui-icons/autoplay-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/autoplay.d.ts +1 -1
- package/dist/icons/ui-icons/award.d.ts +1 -1
- package/dist/icons/ui-icons/background-blur.d.ts +1 -1
- package/dist/icons/ui-icons/background-color-swatch.d.ts +1 -1
- package/dist/icons/ui-icons/background-image.d.ts +1 -1
- package/dist/icons/ui-icons/background-repeat.d.ts +1 -1
- package/dist/icons/ui-icons/background-type-alt.d.ts +1 -1
- package/dist/icons/ui-icons/background-type-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/background-type.d.ts +1 -1
- package/dist/icons/ui-icons/block-parts.d.ts +1 -1
- package/dist/icons/ui-icons/bold.d.ts +1 -1
- package/dist/icons/ui-icons/book.d.ts +1 -1
- package/dist/icons/ui-icons/bookmark.d.ts +1 -1
- package/dist/icons/ui-icons/boolean-exclude.d.ts +1 -1
- package/dist/icons/ui-icons/boolean-intersect.d.ts +1 -1
- package/dist/icons/ui-icons/boolean-subtract.d.ts +1 -1
- package/dist/icons/ui-icons/boolean-union.d.ts +1 -1
- package/dist/icons/ui-icons/border-color.d.ts +1 -1
- package/dist/icons/ui-icons/border.d.ts +1 -1
- package/dist/icons/ui-icons/bot-deny.d.ts +1 -1
- package/dist/icons/ui-icons/bot.d.ts +1 -1
- package/dist/icons/ui-icons/box.d.ts +1 -1
- package/dist/icons/ui-icons/brain.d.ts +1 -1
- package/dist/icons/ui-icons/branch-fork.d.ts +1 -1
- package/dist/icons/ui-icons/branch.d.ts +1 -1
- package/dist/icons/ui-icons/briefcase.d.ts +1 -1
- package/dist/icons/ui-icons/browser.d.ts +1 -1
- package/dist/icons/ui-icons/button-disabled.d.ts +1 -1
- package/dist/icons/ui-icons/button-filled.d.ts +1 -1
- package/dist/icons/ui-icons/button-ghost.d.ts +1 -1
- package/dist/icons/ui-icons/button-outline.d.ts +1 -1
- package/dist/icons/ui-icons/calculator.d.ts +1 -1
- package/dist/icons/ui-icons/calendar-add.d.ts +1 -1
- package/dist/icons/ui-icons/calendar-download.d.ts +1 -1
- package/dist/icons/ui-icons/calendar-remove.d.ts +1 -1
- package/dist/icons/ui-icons/calendar.d.ts +1 -1
- package/dist/icons/ui-icons/caption-generic.d.ts +1 -1
- package/dist/icons/ui-icons/card-featured.d.ts +1 -1
- package/dist/icons/ui-icons/caret-down-fill.d.ts +1 -1
- package/dist/icons/ui-icons/caret-down.d.ts +1 -1
- package/dist/icons/ui-icons/caret-left-fill.d.ts +1 -1
- package/dist/icons/ui-icons/caret-left.d.ts +1 -1
- package/dist/icons/ui-icons/caret-right-fill.d.ts +1 -1
- package/dist/icons/ui-icons/caret-right.d.ts +1 -1
- package/dist/icons/ui-icons/caret-up-fill.d.ts +1 -1
- package/dist/icons/ui-icons/caret-up.d.ts +1 -1
- package/dist/icons/ui-icons/center-point.d.ts +1 -1
- package/dist/icons/ui-icons/chat-bubble-alt.d.ts +1 -1
- package/dist/icons/ui-icons/chat-bubble.d.ts +1 -1
- package/dist/icons/ui-icons/chat.d.ts +1 -1
- package/dist/icons/ui-icons/check-circle-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/check-circle-fill.d.ts +1 -1
- package/dist/icons/ui-icons/check-circle.d.ts +1 -1
- package/dist/icons/ui-icons/check-square.d.ts +1 -1
- package/dist/icons/ui-icons/check.d.ts +1 -1
- package/dist/icons/ui-icons/checks-circle.d.ts +1 -1
- package/dist/icons/ui-icons/checks.d.ts +1 -1
- package/dist/icons/ui-icons/chevron-down.d.ts +1 -1
- package/dist/icons/ui-icons/chevron-left.d.ts +1 -1
- package/dist/icons/ui-icons/chevron-right.d.ts +1 -1
- package/dist/icons/ui-icons/chevron-up.d.ts +1 -1
- package/dist/icons/ui-icons/clear-alt.d.ts +1 -1
- package/dist/icons/ui-icons/clear.d.ts +1 -1
- package/dist/icons/ui-icons/clipboard-plain.d.ts +1 -1
- package/dist/icons/ui-icons/clipboard.d.ts +1 -1
- package/dist/icons/ui-icons/clock.d.ts +1 -1
- package/dist/icons/ui-icons/closed-captions.d.ts +1 -1
- package/dist/icons/ui-icons/code-variable.d.ts +1 -1
- package/dist/icons/ui-icons/code.d.ts +1 -1
- package/dist/icons/ui-icons/color-alt.d.ts +1 -1
- package/dist/icons/ui-icons/color-fill-swatch.d.ts +1 -1
- package/dist/icons/ui-icons/color-picker-fill.d.ts +1 -1
- package/dist/icons/ui-icons/color-picker-list-marker.d.ts +1 -1
- package/dist/icons/ui-icons/color-picker-text-highlight.d.ts +1 -1
- package/dist/icons/ui-icons/color-picker-text.d.ts +1 -1
- package/dist/icons/ui-icons/color-select.d.ts +1 -1
- package/dist/icons/ui-icons/color.d.ts +1 -1
- package/dist/icons/ui-icons/column-gutters-lr.d.ts +1 -1
- package/dist/icons/ui-icons/columns.d.ts +1 -1
- package/dist/icons/ui-icons/columns3366.d.ts +1 -1
- package/dist/icons/ui-icons/columns6633.d.ts +1 -1
- package/dist/icons/ui-icons/component-generic.d.ts +1 -1
- package/dist/icons/ui-icons/component-options.d.ts +1 -1
- package/dist/icons/ui-icons/condition-h.d.ts +1 -1
- package/dist/icons/ui-icons/condition-v.d.ts +1 -1
- package/dist/icons/ui-icons/conditional-visibility.d.ts +1 -1
- package/dist/icons/ui-icons/container-height.d.ts +1 -1
- package/dist/icons/ui-icons/container-spacing-h.d.ts +1 -1
- package/dist/icons/ui-icons/container-spacing.d.ts +1 -1
- package/dist/icons/ui-icons/container-width.d.ts +1 -1
- package/dist/icons/ui-icons/content-bottom-left.d.ts +1 -1
- package/dist/icons/ui-icons/content-bottom-right.d.ts +1 -1
- package/dist/icons/ui-icons/content-center.d.ts +1 -1
- package/dist/icons/ui-icons/content-top-left.d.ts +1 -1
- package/dist/icons/ui-icons/content-top-right.d.ts +1 -1
- package/dist/icons/ui-icons/contrast-alt.d.ts +1 -1
- package/dist/icons/ui-icons/contrast.d.ts +1 -1
- package/dist/icons/ui-icons/cookie-alt.d.ts +1 -1
- package/dist/icons/ui-icons/cookie.d.ts +1 -1
- package/dist/icons/ui-icons/copy.d.ts +1 -1
- package/dist/icons/ui-icons/currency.d.ts +1 -1
- package/dist/icons/ui-icons/current-page.d.ts +1 -1
- package/dist/icons/ui-icons/cursor-disabled.d.ts +1 -1
- package/dist/icons/ui-icons/cursor-move.d.ts +1 -1
- package/dist/icons/ui-icons/dark-mode.d.ts +1 -1
- package/dist/icons/ui-icons/data.d.ts +1 -1
- package/dist/icons/ui-icons/date-time.d.ts +1 -1
- package/dist/icons/ui-icons/defer.d.ts +1 -1
- package/dist/icons/ui-icons/description-link.d.ts +1 -1
- package/dist/icons/ui-icons/design.d.ts +1 -1
- package/dist/icons/ui-icons/dice.d.ts +1 -1
- package/dist/icons/ui-icons/divider-bottom.d.ts +1 -1
- package/dist/icons/ui-icons/divider-side.d.ts +1 -1
- package/dist/icons/ui-icons/divider-status.d.ts +1 -1
- package/dist/icons/ui-icons/divider-top.d.ts +1 -1
- package/dist/icons/ui-icons/divider.d.ts +1 -1
- package/dist/icons/ui-icons/door-in.d.ts +1 -1
- package/dist/icons/ui-icons/door-out.d.ts +1 -1
- package/dist/icons/ui-icons/door.d.ts +1 -1
- package/dist/icons/ui-icons/download.d.ts +1 -1
- package/dist/icons/ui-icons/dropdown-caret-alt.d.ts +1 -1
- package/dist/icons/ui-icons/dropdown-caret.d.ts +1 -1
- package/dist/icons/ui-icons/dropdown-close.d.ts +1 -1
- package/dist/icons/ui-icons/dropdown-open.d.ts +1 -1
- package/dist/icons/ui-icons/dropdown.d.ts +1 -1
- package/dist/icons/ui-icons/dummy-spacer.d.ts +1 -1
- package/dist/icons/ui-icons/edit-options.d.ts +1 -1
- package/dist/icons/ui-icons/edit.d.ts +1 -1
- package/dist/icons/ui-icons/email-remove.d.ts +1 -1
- package/dist/icons/ui-icons/email.d.ts +1 -1
- package/dist/icons/ui-icons/embed.d.ts +1 -1
- package/dist/icons/ui-icons/empty-circle.d.ts +1 -1
- package/dist/icons/ui-icons/empty-rect.d.ts +1 -1
- package/dist/icons/ui-icons/equal-columns.d.ts +1 -1
- package/dist/icons/ui-icons/equal-rows.d.ts +1 -1
- package/dist/icons/ui-icons/equals.d.ts +1 -1
- package/dist/icons/ui-icons/error-circle-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/error-circle-fill.d.ts +1 -1
- package/dist/icons/ui-icons/error-circle.d.ts +1 -1
- package/dist/icons/ui-icons/exclude-item-alt.d.ts +1 -1
- package/dist/icons/ui-icons/exclude-item.d.ts +1 -1
- package/dist/icons/ui-icons/exclude.d.ts +1 -1
- package/dist/icons/ui-icons/expand-xl.d.ts +1 -1
- package/dist/icons/ui-icons/expand.d.ts +1 -1
- package/dist/icons/ui-icons/experiment.d.ts +1 -1
- package/dist/icons/ui-icons/external-link.d.ts +1 -1
- package/dist/icons/ui-icons/extract-alt.d.ts +1 -1
- package/dist/icons/ui-icons/extract.d.ts +1 -1
- package/dist/icons/ui-icons/eyedropper.d.ts +1 -1
- package/dist/icons/ui-icons/fast-forward.d.ts +1 -1
- package/dist/icons/ui-icons/fast-reverse.d.ts +1 -1
- package/dist/icons/ui-icons/field-after-text.d.ts +1 -1
- package/dist/icons/ui-icons/field-before-text.d.ts +1 -1
- package/dist/icons/ui-icons/field-disabled.d.ts +1 -1
- package/dist/icons/ui-icons/field-help.d.ts +1 -1
- package/dist/icons/ui-icons/field-label.d.ts +1 -1
- package/dist/icons/ui-icons/field-name.d.ts +1 -1
- package/dist/icons/ui-icons/field-placeholder.d.ts +1 -1
- package/dist/icons/ui-icons/field-readonly.d.ts +1 -1
- package/dist/icons/ui-icons/field-required.d.ts +1 -1
- package/dist/icons/ui-icons/field-type.d.ts +1 -1
- package/dist/icons/ui-icons/field-value.d.ts +1 -1
- package/dist/icons/ui-icons/field-width.d.ts +1 -1
- package/dist/icons/ui-icons/file-download.d.ts +1 -1
- package/dist/icons/ui-icons/file-error.d.ts +1 -1
- package/dist/icons/ui-icons/file-metadata.d.ts +1 -1
- package/dist/icons/ui-icons/file-pdf.d.ts +1 -1
- package/dist/icons/ui-icons/file-size-max.d.ts +1 -1
- package/dist/icons/ui-icons/file-size-min.d.ts +1 -1
- package/dist/icons/ui-icons/file-size.d.ts +1 -1
- package/dist/icons/ui-icons/file-type.d.ts +1 -1
- package/dist/icons/ui-icons/file-upload.d.ts +1 -1
- package/dist/icons/ui-icons/file.d.ts +1 -1
- package/dist/icons/ui-icons/files.d.ts +1 -1
- package/dist/icons/ui-icons/fill-color.d.ts +1 -1
- package/dist/icons/ui-icons/filter-alt.d.ts +1 -1
- package/dist/icons/ui-icons/filter.d.ts +1 -1
- package/dist/icons/ui-icons/flag-alt.d.ts +1 -1
- package/dist/icons/ui-icons/flag.d.ts +1 -1
- package/dist/icons/ui-icons/flip-h.d.ts +1 -1
- package/dist/icons/ui-icons/flip-v.d.ts +1 -1
- package/dist/icons/ui-icons/focus.d.ts +1 -1
- package/dist/icons/ui-icons/folder-add.d.ts +1 -1
- package/dist/icons/ui-icons/folder-open-solid.d.ts +1 -1
- package/dist/icons/ui-icons/folder-open.d.ts +1 -1
- package/dist/icons/ui-icons/folder-solid.d.ts +1 -1
- package/dist/icons/ui-icons/folder-top-level.d.ts +1 -1
- package/dist/icons/ui-icons/folder.d.ts +1 -1
- package/dist/icons/ui-icons/font-family.d.ts +1 -1
- package/dist/icons/ui-icons/footer.d.ts +1 -1
- package/dist/icons/ui-icons/form-alt.d.ts +1 -1
- package/dist/icons/ui-icons/form.d.ts +1 -1
- package/dist/icons/ui-icons/four-columns.d.ts +1 -1
- package/dist/icons/ui-icons/frame.d.ts +1 -1
- package/dist/icons/ui-icons/full-max-shield.d.ts +1 -1
- package/dist/icons/ui-icons/full-max-text.d.ts +1 -1
- package/dist/icons/ui-icons/full-width-image.d.ts +1 -1
- package/dist/icons/ui-icons/gears-fill.d.ts +1 -1
- package/dist/icons/ui-icons/gears.d.ts +1 -1
- package/dist/icons/ui-icons/generic-color-swatch.d.ts +1 -1
- package/dist/icons/ui-icons/generic-shapes-alt.d.ts +1 -1
- package/dist/icons/ui-icons/generic-shapes.d.ts +1 -1
- package/dist/icons/ui-icons/globe-anchor.d.ts +1 -1
- package/dist/icons/ui-icons/globe-hash.d.ts +1 -1
- package/dist/icons/ui-icons/globe.d.ts +1 -1
- package/dist/icons/ui-icons/google-tag-manager.d.ts +1 -1
- package/dist/icons/ui-icons/gradient-repeat.d.ts +1 -1
- package/dist/icons/ui-icons/gradient-stop.d.ts +1 -1
- package/dist/icons/ui-icons/gradient.d.ts +1 -1
- package/dist/icons/ui-icons/grid-alt.d.ts +1 -1
- package/dist/icons/ui-icons/grid-auto-cols.d.ts +1 -1
- package/dist/icons/ui-icons/grid-auto-rows.d.ts +1 -1
- package/dist/icons/ui-icons/grid-col.d.ts +1 -1
- package/dist/icons/ui-icons/grid-height.d.ts +1 -1
- package/dist/icons/ui-icons/grid-list-toggle.d.ts +1 -1
- package/dist/icons/ui-icons/grid-manual.d.ts +1 -1
- package/dist/icons/ui-icons/grid-row.d.ts +1 -1
- package/dist/icons/ui-icons/grid-width.d.ts +1 -1
- package/dist/icons/ui-icons/group.d.ts +1 -1
- package/dist/icons/ui-icons/gutter.d.ts +1 -1
- package/dist/icons/ui-icons/gyroscope.d.ts +1 -1
- package/dist/icons/ui-icons/h1.d.ts +1 -1
- package/dist/icons/ui-icons/h2.d.ts +1 -1
- package/dist/icons/ui-icons/h3.d.ts +1 -1
- package/dist/icons/ui-icons/h4.d.ts +1 -1
- package/dist/icons/ui-icons/h5.d.ts +1 -1
- package/dist/icons/ui-icons/h6.d.ts +1 -1
- package/dist/icons/ui-icons/hamburger-menu.d.ts +1 -1
- package/dist/icons/ui-icons/hard-drive.d.ts +1 -1
- package/dist/icons/ui-icons/header.d.ts +1 -1
- package/dist/icons/ui-icons/heading-level-alt.d.ts +1 -1
- package/dist/icons/ui-icons/heading-level.d.ts +1 -1
- package/dist/icons/ui-icons/heading.d.ts +1 -1
- package/dist/icons/ui-icons/heart-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/heart-fill.d.ts +1 -1
- package/dist/icons/ui-icons/heart.d.ts +1 -1
- package/dist/icons/ui-icons/height.d.ts +1 -1
- package/dist/icons/ui-icons/help-alt.d.ts +1 -1
- package/dist/icons/ui-icons/help-fill.d.ts +1 -1
- package/dist/icons/ui-icons/help.d.ts +1 -1
- package/dist/icons/ui-icons/hide.d.ts +1 -1
- package/dist/icons/ui-icons/highlighted-checkmark.d.ts +1 -1
- package/dist/icons/ui-icons/highlighted-exclamation-mark.d.ts +1 -1
- package/dist/icons/ui-icons/history.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align-alt.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align-around.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align-between-alt.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align-between.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align-center.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align-evenly.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align-left.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align-right.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align-stretch.d.ts +1 -1
- package/dist/icons/ui-icons/horizontal-align.d.ts +1 -1
- package/dist/icons/ui-icons/hover-background-glow.d.ts +1 -1
- package/dist/icons/ui-icons/hover-background-type.d.ts +1 -1
- package/dist/icons/ui-icons/hover-invert-object.d.ts +1 -1
- package/dist/icons/ui-icons/hover-invert-text.d.ts +1 -1
- package/dist/icons/ui-icons/hover-rotate.d.ts +1 -1
- package/dist/icons/ui-icons/hover-zoom.d.ts +1 -1
- package/dist/icons/ui-icons/hyphenate-alt.d.ts +1 -1
- package/dist/icons/ui-icons/hyphenate-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/hyphenate.d.ts +1 -1
- package/dist/icons/ui-icons/icon-generic.d.ts +1 -1
- package/dist/icons/ui-icons/id-card.d.ts +1 -1
- package/dist/icons/ui-icons/id.d.ts +1 -1
- package/dist/icons/ui-icons/image-blur.d.ts +1 -1
- package/dist/icons/ui-icons/image-caption.d.ts +1 -1
- package/dist/icons/ui-icons/image-error.d.ts +1 -1
- package/dist/icons/ui-icons/image-file.d.ts +1 -1
- package/dist/icons/ui-icons/image-lazy-load.d.ts +1 -1
- package/dist/icons/ui-icons/image-opacity.d.ts +1 -1
- package/dist/icons/ui-icons/image-overlay-alt.d.ts +1 -1
- package/dist/icons/ui-icons/image-overlay-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/image-overlay.d.ts +1 -1
- package/dist/icons/ui-icons/image-remove.d.ts +1 -1
- package/dist/icons/ui-icons/image.d.ts +1 -1
- package/dist/icons/ui-icons/info-circle-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/info-circle-fill.d.ts +1 -1
- package/dist/icons/ui-icons/info-circle.d.ts +1 -1
- package/dist/icons/ui-icons/info.d.ts +1 -1
- package/dist/icons/ui-icons/inherit.d.ts +1 -1
- package/dist/icons/ui-icons/inline-gradient-format.d.ts +1 -1
- package/dist/icons/ui-icons/input-field.d.ts +1 -1
- package/dist/icons/ui-icons/italic.d.ts +1 -1
- package/dist/icons/ui-icons/item-limit.d.ts +1 -1
- package/dist/icons/ui-icons/item-select.d.ts +1 -1
- package/dist/icons/ui-icons/item-wrap.d.ts +1 -1
- package/dist/icons/ui-icons/items-per-page.d.ts +1 -1
- package/dist/icons/ui-icons/items-per-row.d.ts +1 -1
- package/dist/icons/ui-icons/key.d.ts +1 -1
- package/dist/icons/ui-icons/keyboard.d.ts +1 -1
- package/dist/icons/ui-icons/large.d.ts +1 -1
- package/dist/icons/ui-icons/latest-posts.d.ts +1 -1
- package/dist/icons/ui-icons/layer-off.d.ts +1 -1
- package/dist/icons/ui-icons/layer.d.ts +1 -1
- package/dist/icons/ui-icons/layers.d.ts +1 -1
- package/dist/icons/ui-icons/layout-alt.d.ts +1 -1
- package/dist/icons/ui-icons/layout-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/layout-alt3.d.ts +1 -1
- package/dist/icons/ui-icons/layout-alt4.d.ts +1 -1
- package/dist/icons/ui-icons/layout-bento-box.d.ts +1 -1
- package/dist/icons/ui-icons/layout-masonry.d.ts +1 -1
- package/dist/icons/ui-icons/layout.d.ts +1 -1
- package/dist/icons/ui-icons/left-panel-alt.d.ts +1 -1
- package/dist/icons/ui-icons/left-panel.d.ts +1 -1
- package/dist/icons/ui-icons/light-bulb-alt.d.ts +1 -1
- package/dist/icons/ui-icons/light-bulb.d.ts +1 -1
- package/dist/icons/ui-icons/light-mode.d.ts +1 -1
- package/dist/icons/ui-icons/limit-width.d.ts +1 -1
- package/dist/icons/ui-icons/line-break-alt-off.d.ts +1 -1
- package/dist/icons/ui-icons/line-break-alt.d.ts +1 -1
- package/dist/icons/ui-icons/line-break-off-alt.d.ts +1 -1
- package/dist/icons/ui-icons/line-break-off.d.ts +1 -1
- package/dist/icons/ui-icons/line-break.d.ts +1 -1
- package/dist/icons/ui-icons/line-breaks-hyphenation.d.ts +1 -1
- package/dist/icons/ui-icons/link-add.d.ts +1 -1
- package/dist/icons/ui-icons/link-nav.d.ts +1 -1
- package/dist/icons/ui-icons/link-remove.d.ts +1 -1
- package/dist/icons/ui-icons/link.d.ts +1 -1
- package/dist/icons/ui-icons/list-indent.d.ts +1 -1
- package/dist/icons/ui-icons/list-ordered.d.ts +1 -1
- package/dist/icons/ui-icons/list-outdent.d.ts +1 -1
- package/dist/icons/ui-icons/list-unordered.d.ts +1 -1
- package/dist/icons/ui-icons/loader-alt.d.ts +1 -1
- package/dist/icons/ui-icons/loader.d.ts +1 -1
- package/dist/icons/ui-icons/location-add.d.ts +1 -1
- package/dist/icons/ui-icons/location-allow.d.ts +1 -1
- package/dist/icons/ui-icons/location-deny.d.ts +1 -1
- package/dist/icons/ui-icons/location-settings.d.ts +1 -1
- package/dist/icons/ui-icons/location.d.ts +1 -1
- package/dist/icons/ui-icons/lock.d.ts +1 -1
- package/dist/icons/ui-icons/loop-mode.d.ts +1 -1
- package/dist/icons/ui-icons/magic-alt-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/magic-alt-fill.d.ts +1 -1
- package/dist/icons/ui-icons/magic-alt.d.ts +1 -1
- package/dist/icons/ui-icons/magic-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/magic-fill.d.ts +1 -1
- package/dist/icons/ui-icons/magic.d.ts +1 -1
- package/dist/icons/ui-icons/map-layer-json.d.ts +1 -1
- package/dist/icons/ui-icons/map-layer-raster.d.ts +1 -1
- package/dist/icons/ui-icons/map-layer-vector.d.ts +1 -1
- package/dist/icons/ui-icons/map-layer.d.ts +1 -1
- package/dist/icons/ui-icons/map-pin.d.ts +1 -1
- package/dist/icons/ui-icons/matrix-align-control-dot-active.d.ts +1 -1
- package/dist/icons/ui-icons/matrix-align-control-dot-inactive.d.ts +1 -1
- package/dist/icons/ui-icons/media.d.ts +1 -1
- package/dist/icons/ui-icons/medium.d.ts +1 -1
- package/dist/icons/ui-icons/menu-item-check.d.ts +1 -1
- package/dist/icons/ui-icons/menu-item-circle.d.ts +1 -1
- package/dist/icons/ui-icons/microphone.d.ts +1 -1
- package/dist/icons/ui-icons/migration-alt-v.d.ts +1 -1
- package/dist/icons/ui-icons/migration-alt.d.ts +1 -1
- package/dist/icons/ui-icons/migration.d.ts +1 -1
- package/dist/icons/ui-icons/module.d.ts +1 -1
- package/dist/icons/ui-icons/money-paper.d.ts +1 -1
- package/dist/icons/ui-icons/more-h-circle.d.ts +1 -1
- package/dist/icons/ui-icons/more-h.d.ts +1 -1
- package/dist/icons/ui-icons/more-v-circle.d.ts +1 -1
- package/dist/icons/ui-icons/more-v.d.ts +1 -1
- package/dist/icons/ui-icons/mouse-cursor.d.ts +1 -1
- package/dist/icons/ui-icons/mouse-wheel.d.ts +1 -1
- package/dist/icons/ui-icons/multi-item-left-inset-mobile.d.ts +1 -1
- package/dist/icons/ui-icons/multi-item-left-inset.d.ts +1 -1
- package/dist/icons/ui-icons/multi-item-right-inset-mobile.d.ts +1 -1
- package/dist/icons/ui-icons/multi-item-right-inset.d.ts +1 -1
- package/dist/icons/ui-icons/multiple.d.ts +1 -1
- package/dist/icons/ui-icons/music-note.d.ts +1 -1
- package/dist/icons/ui-icons/mute-centered.d.ts +1 -1
- package/dist/icons/ui-icons/mute.d.ts +1 -1
- package/dist/icons/ui-icons/narrow-bottom.d.ts +1 -1
- package/dist/icons/ui-icons/narrow-left.d.ts +1 -1
- package/dist/icons/ui-icons/narrow-right.d.ts +1 -1
- package/dist/icons/ui-icons/narrow-top.d.ts +1 -1
- package/dist/icons/ui-icons/navigation-buttons.d.ts +1 -1
- package/dist/icons/ui-icons/new-tab.d.ts +1 -1
- package/dist/icons/ui-icons/newspaper.d.ts +1 -1
- package/dist/icons/ui-icons/none.d.ts +1 -1
- package/dist/icons/ui-icons/notebook.d.ts +1 -1
- package/dist/icons/ui-icons/num0-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num0-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num0-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num0-square.d.ts +1 -1
- package/dist/icons/ui-icons/num1-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num1-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num1-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num1-square.d.ts +1 -1
- package/dist/icons/ui-icons/num2-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num2-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num2-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num2-square.d.ts +1 -1
- package/dist/icons/ui-icons/num3-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num3-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num3-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num3-square.d.ts +1 -1
- package/dist/icons/ui-icons/num4-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num4-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num4-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num4-square.d.ts +1 -1
- package/dist/icons/ui-icons/num5-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num5-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num5-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num5-square.d.ts +1 -1
- package/dist/icons/ui-icons/num6-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num6-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num6-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num6-square.d.ts +1 -1
- package/dist/icons/ui-icons/num7-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num7-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num7-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num7-square.d.ts +1 -1
- package/dist/icons/ui-icons/num8-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num8-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num8-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num8-square.d.ts +1 -1
- package/dist/icons/ui-icons/num9-circle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num9-circle.d.ts +1 -1
- package/dist/icons/ui-icons/num9-square-alt.d.ts +1 -1
- package/dist/icons/ui-icons/num9-square.d.ts +1 -1
- package/dist/icons/ui-icons/office-building.d.ts +1 -1
- package/dist/icons/ui-icons/office-buildings.d.ts +1 -1
- package/dist/icons/ui-icons/offset-auto.d.ts +1 -1
- package/dist/icons/ui-icons/offset.d.ts +1 -1
- package/dist/icons/ui-icons/option-list-alt.d.ts +1 -1
- package/dist/icons/ui-icons/option-list.d.ts +1 -1
- package/dist/icons/ui-icons/options.d.ts +1 -1
- package/dist/icons/ui-icons/order.d.ts +1 -1
- package/dist/icons/ui-icons/padding-bottom.d.ts +1 -1
- package/dist/icons/ui-icons/padding-top.d.ts +1 -1
- package/dist/icons/ui-icons/padding.d.ts +1 -1
- package/dist/icons/ui-icons/pagination.d.ts +1 -1
- package/dist/icons/ui-icons/palette-color.d.ts +1 -1
- package/dist/icons/ui-icons/panel-collapse.d.ts +1 -1
- package/dist/icons/ui-icons/panel-expand.d.ts +1 -1
- package/dist/icons/ui-icons/paragraph.d.ts +1 -1
- package/dist/icons/ui-icons/paste.d.ts +1 -1
- package/dist/icons/ui-icons/pause.d.ts +1 -1
- package/dist/icons/ui-icons/people-group.d.ts +1 -1
- package/dist/icons/ui-icons/people.d.ts +1 -1
- package/dist/icons/ui-icons/person.d.ts +1 -1
- package/dist/icons/ui-icons/photo-camera.d.ts +1 -1
- package/dist/icons/ui-icons/picture-in-picture.d.ts +1 -1
- package/dist/icons/ui-icons/play-reverse.d.ts +1 -1
- package/dist/icons/ui-icons/play.d.ts +1 -1
- package/dist/icons/ui-icons/playback-options.d.ts +1 -1
- package/dist/icons/ui-icons/plus-circle-fill-alt.d.ts +1 -1
- package/dist/icons/ui-icons/plus-circle-fill.d.ts +1 -1
- package/dist/icons/ui-icons/plus-circle.d.ts +1 -1
- package/dist/icons/ui-icons/plus-minus-buttons-h.d.ts +1 -1
- package/dist/icons/ui-icons/plus-minus-buttons-v.d.ts +1 -1
- package/dist/icons/ui-icons/plus-square-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/plus-square-fill.d.ts +1 -1
- package/dist/icons/ui-icons/plus-square.d.ts +1 -1
- package/dist/icons/ui-icons/pointer-hand-disabled.d.ts +1 -1
- package/dist/icons/ui-icons/pointer-hand.d.ts +1 -1
- package/dist/icons/ui-icons/position-arrows-h.d.ts +1 -1
- package/dist/icons/ui-icons/position-arrows-inverted-h.d.ts +1 -1
- package/dist/icons/ui-icons/position-arrows-inverted-v.d.ts +1 -1
- package/dist/icons/ui-icons/position-arrows-inverted.d.ts +1 -1
- package/dist/icons/ui-icons/position-arrows-v.d.ts +1 -1
- package/dist/icons/ui-icons/position-arrows.d.ts +1 -1
- package/dist/icons/ui-icons/position-h-center.d.ts +1 -1
- package/dist/icons/ui-icons/position-h-end.d.ts +1 -1
- package/dist/icons/ui-icons/position-h-start.d.ts +1 -1
- package/dist/icons/ui-icons/position-left.d.ts +1 -1
- package/dist/icons/ui-icons/position-right.d.ts +1 -1
- package/dist/icons/ui-icons/position-v-center.d.ts +1 -1
- package/dist/icons/ui-icons/position-v-end.d.ts +1 -1
- package/dist/icons/ui-icons/position-v-start.d.ts +1 -1
- package/dist/icons/ui-icons/position2x2-bottom-left.d.ts +1 -1
- package/dist/icons/ui-icons/position2x2-bottom-right.d.ts +1 -1
- package/dist/icons/ui-icons/position2x2-empty.d.ts +1 -1
- package/dist/icons/ui-icons/position2x2-top-left.d.ts +1 -1
- package/dist/icons/ui-icons/position2x2-top-right.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-bottom-center.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-bottom-left.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-bottom-right.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-center-center.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-center-left.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-center-right.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-empty.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-top-center.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-top-left.d.ts +1 -1
- package/dist/icons/ui-icons/position3x3-top-right.d.ts +1 -1
- package/dist/icons/ui-icons/positioning-guide-alt.d.ts +1 -1
- package/dist/icons/ui-icons/positioning-guide.d.ts +1 -1
- package/dist/icons/ui-icons/positioning-width-guide.d.ts +1 -1
- package/dist/icons/ui-icons/preload.d.ts +1 -1
- package/dist/icons/ui-icons/preview-responsive.d.ts +1 -1
- package/dist/icons/ui-icons/preview.d.ts +1 -1
- package/dist/icons/ui-icons/progressbar-intermittent.d.ts +1 -1
- package/dist/icons/ui-icons/progressbar.d.ts +1 -1
- package/dist/icons/ui-icons/range-max.d.ts +1 -1
- package/dist/icons/ui-icons/range-mid.d.ts +1 -1
- package/dist/icons/ui-icons/range-min.d.ts +1 -1
- package/dist/icons/ui-icons/range.d.ts +1 -1
- package/dist/icons/ui-icons/read-only.d.ts +1 -1
- package/dist/icons/ui-icons/reduce-height-bottom.d.ts +1 -1
- package/dist/icons/ui-icons/reduce-height-top.d.ts +1 -1
- package/dist/icons/ui-icons/regex.d.ts +1 -1
- package/dist/icons/ui-icons/remove.d.ts +1 -1
- package/dist/icons/ui-icons/rename.d.ts +1 -1
- package/dist/icons/ui-icons/reorder-grabber-h.d.ts +1 -1
- package/dist/icons/ui-icons/reorder-grabber-v.d.ts +1 -1
- package/dist/icons/ui-icons/reorder.d.ts +1 -1
- package/dist/icons/ui-icons/required-alt.d.ts +1 -1
- package/dist/icons/ui-icons/required.d.ts +1 -1
- package/dist/icons/ui-icons/reset-to-zero.d.ts +1 -1
- package/dist/icons/ui-icons/reset.d.ts +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt-fill.d.ts +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt.d.ts +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt2-fill.d.ts +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt3-fill.d.ts +1 -1
- package/dist/icons/ui-icons/responsive-overrides.d.ts +1 -1
- package/dist/icons/ui-icons/responsive.d.ts +1 -1
- package/dist/icons/ui-icons/right-panel-alt.d.ts +1 -1
- package/dist/icons/ui-icons/right-panel.d.ts +1 -1
- package/dist/icons/ui-icons/rotate-left.d.ts +1 -1
- package/dist/icons/ui-icons/rotate-right.d.ts +1 -1
- package/dist/icons/ui-icons/rounded-corners.d.ts +1 -1
- package/dist/icons/ui-icons/route.d.ts +1 -1
- package/dist/icons/ui-icons/row-add.d.ts +1 -1
- package/dist/icons/ui-icons/row-empty.d.ts +1 -1
- package/dist/icons/ui-icons/row.d.ts +1 -1
- package/dist/icons/ui-icons/rows.d.ts +1 -1
- package/dist/icons/ui-icons/ruler.d.ts +1 -1
- package/dist/icons/ui-icons/save.d.ts +1 -1
- package/dist/icons/ui-icons/screen-desktop.d.ts +1 -1
- package/dist/icons/ui-icons/screen-large.d.ts +1 -1
- package/dist/icons/ui-icons/screen-mobile.d.ts +1 -1
- package/dist/icons/ui-icons/screen-tablet-large.d.ts +1 -1
- package/dist/icons/ui-icons/screen-tablet.d.ts +1 -1
- package/dist/icons/ui-icons/scrollbar-h.d.ts +1 -1
- package/dist/icons/ui-icons/scrollbar-v.d.ts +1 -1
- package/dist/icons/ui-icons/scrollbars.d.ts +1 -1
- package/dist/icons/ui-icons/search-empty.d.ts +1 -1
- package/dist/icons/ui-icons/search.d.ts +1 -1
- package/dist/icons/ui-icons/separator-h.d.ts +1 -1
- package/dist/icons/ui-icons/separator-v.d.ts +1 -1
- package/dist/icons/ui-icons/shadow.d.ts +1 -1
- package/dist/icons/ui-icons/share.d.ts +1 -1
- package/dist/icons/ui-icons/shield-plus-alt.d.ts +1 -1
- package/dist/icons/ui-icons/shield-plus.d.ts +1 -1
- package/dist/icons/ui-icons/shield.d.ts +1 -1
- package/dist/icons/ui-icons/shrink-diagonal-left-xl.d.ts +1 -1
- package/dist/icons/ui-icons/shrink-diagonal-left.d.ts +1 -1
- package/dist/icons/ui-icons/shrink-diagonal-right-xl.d.ts +1 -1
- package/dist/icons/ui-icons/shrink-diagonal-right.d.ts +1 -1
- package/dist/icons/ui-icons/shrink-xl.d.ts +1 -1
- package/dist/icons/ui-icons/shrink.d.ts +1 -1
- package/dist/icons/ui-icons/shuffle.d.ts +1 -1
- package/dist/icons/ui-icons/sidebar-flip.d.ts +1 -1
- package/dist/icons/ui-icons/sidebar.d.ts +1 -1
- package/dist/icons/ui-icons/single-item-left-inset-mobile.d.ts +1 -1
- package/dist/icons/ui-icons/single-item-left-inset.d.ts +1 -1
- package/dist/icons/ui-icons/single-item-right-inset-mobile.d.ts +1 -1
- package/dist/icons/ui-icons/single-item-right-inset.d.ts +1 -1
- package/dist/icons/ui-icons/size-alt.d.ts +1 -1
- package/dist/icons/ui-icons/size.d.ts +1 -1
- package/dist/icons/ui-icons/slider.d.ts +1 -1
- package/dist/icons/ui-icons/sliders.d.ts +1 -1
- package/dist/icons/ui-icons/small.d.ts +1 -1
- package/dist/icons/ui-icons/solid-circle-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/solid-circle-filled.d.ts +1 -1
- package/dist/icons/ui-icons/solid-circle-gradient.d.ts +1 -1
- package/dist/icons/ui-icons/solid-circle.d.ts +1 -1
- package/dist/icons/ui-icons/solid-color.d.ts +1 -1
- package/dist/icons/ui-icons/solid-rect-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/solid-rect-filled.d.ts +1 -1
- package/dist/icons/ui-icons/solid-rect-gradient.d.ts +1 -1
- package/dist/icons/ui-icons/solid-rect.d.ts +1 -1
- package/dist/icons/ui-icons/sort-asc.d.ts +1 -1
- package/dist/icons/ui-icons/sort-desc.d.ts +1 -1
- package/dist/icons/ui-icons/sort-generic.d.ts +1 -1
- package/dist/icons/ui-icons/spacing-bottom-in.d.ts +1 -1
- package/dist/icons/ui-icons/spacing-bottom.d.ts +1 -1
- package/dist/icons/ui-icons/spacing-left-in.d.ts +1 -1
- package/dist/icons/ui-icons/spacing-left.d.ts +1 -1
- package/dist/icons/ui-icons/spacing-right-in.d.ts +1 -1
- package/dist/icons/ui-icons/spacing-right.d.ts +1 -1
- package/dist/icons/ui-icons/spacing-top-in.d.ts +1 -1
- package/dist/icons/ui-icons/spacing-top.d.ts +1 -1
- package/dist/icons/ui-icons/speed.d.ts +1 -1
- package/dist/icons/ui-icons/stagger.d.ts +1 -1
- package/dist/icons/ui-icons/star.d.ts +1 -1
- package/dist/icons/ui-icons/step.d.ts +1 -1
- package/dist/icons/ui-icons/stop.d.ts +1 -1
- package/dist/icons/ui-icons/swap.d.ts +1 -1
- package/dist/icons/ui-icons/tag-alt.d.ts +1 -1
- package/dist/icons/ui-icons/tag.d.ts +1 -1
- package/dist/icons/ui-icons/text-abc.d.ts +1 -1
- package/dist/icons/ui-icons/text-above.d.ts +1 -1
- package/dist/icons/ui-icons/text-align-center.d.ts +1 -1
- package/dist/icons/ui-icons/text-align-generic.d.ts +1 -1
- package/dist/icons/ui-icons/text-align-justify.d.ts +1 -1
- package/dist/icons/ui-icons/text-align-left.d.ts +1 -1
- package/dist/icons/ui-icons/text-align-right.d.ts +1 -1
- package/dist/icons/ui-icons/text-below.d.ts +1 -1
- package/dist/icons/ui-icons/text-box-edit.d.ts +1 -1
- package/dist/icons/ui-icons/text-color-swatch.d.ts +1 -1
- package/dist/icons/ui-icons/text-highlight-color-swatch-alt.d.ts +1 -1
- package/dist/icons/ui-icons/text-highlight-color-swatch.d.ts +1 -1
- package/dist/icons/ui-icons/text-larger.d.ts +1 -1
- package/dist/icons/ui-icons/text-length.d.ts +1 -1
- package/dist/icons/ui-icons/text-size-alt.d.ts +1 -1
- package/dist/icons/ui-icons/text-size.d.ts +1 -1
- package/dist/icons/ui-icons/text-smaller.d.ts +1 -1
- package/dist/icons/ui-icons/text-strikethrough.d.ts +1 -1
- package/dist/icons/ui-icons/text-uppercase.d.ts +1 -1
- package/dist/icons/ui-icons/text-write.d.ts +1 -1
- package/dist/icons/ui-icons/thumbs-down.d.ts +1 -1
- package/dist/icons/ui-icons/thumbs-up.d.ts +1 -1
- package/dist/icons/ui-icons/title-generic.d.ts +1 -1
- package/dist/icons/ui-icons/toggle-off.d.ts +1 -1
- package/dist/icons/ui-icons/toggle-on-alt.d.ts +1 -1
- package/dist/icons/ui-icons/toggle-on.d.ts +1 -1
- package/dist/icons/ui-icons/tools.d.ts +1 -1
- package/dist/icons/ui-icons/total-items.d.ts +1 -1
- package/dist/icons/ui-icons/trash-alt.d.ts +1 -1
- package/dist/icons/ui-icons/trash.d.ts +1 -1
- package/dist/icons/ui-icons/tree-alt.d.ts +1 -1
- package/dist/icons/ui-icons/tree-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/tree.d.ts +1 -1
- package/dist/icons/ui-icons/troubleshoot-alt.d.ts +1 -1
- package/dist/icons/ui-icons/two-cards-left.d.ts +1 -1
- package/dist/icons/ui-icons/two-cards-right.d.ts +1 -1
- package/dist/icons/ui-icons/two-columns.d.ts +1 -1
- package/dist/icons/ui-icons/typography-options.d.ts +1 -1
- package/dist/icons/ui-icons/typography.d.ts +1 -1
- package/dist/icons/ui-icons/underline.d.ts +1 -1
- package/dist/icons/ui-icons/ungroup.d.ts +1 -1
- package/dist/icons/ui-icons/upload.d.ts +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt.d.ts +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt3.d.ts +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt4.d.ts +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt5.d.ts +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt6.d.ts +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt7.d.ts +1 -1
- package/dist/icons/ui-icons/venn-diagram.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align-alt.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align-around.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align-between-alt.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align-between.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align-bottom.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align-center.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align-evenly.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align-stretch.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align-top.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-align.d.ts +1 -1
- package/dist/icons/ui-icons/vertical-spacing.d.ts +1 -1
- package/dist/icons/ui-icons/video-chapters.d.ts +1 -1
- package/dist/icons/ui-icons/video-controls.d.ts +1 -1
- package/dist/icons/ui-icons/video-file.d.ts +1 -1
- package/dist/icons/ui-icons/video-poster-image.d.ts +1 -1
- package/dist/icons/ui-icons/video-subtitle-alt.d.ts +1 -1
- package/dist/icons/ui-icons/video-subtitle.d.ts +1 -1
- package/dist/icons/ui-icons/video.d.ts +1 -1
- package/dist/icons/ui-icons/visibility-alt.d.ts +1 -1
- package/dist/icons/ui-icons/visibility-alt2.d.ts +1 -1
- package/dist/icons/ui-icons/visibility.d.ts +1 -1
- package/dist/icons/ui-icons/visible.d.ts +1 -1
- package/dist/icons/ui-icons/volume.d.ts +1 -1
- package/dist/icons/ui-icons/warning-circle-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/warning-circle-fill.d.ts +1 -1
- package/dist/icons/ui-icons/warning-circle.d.ts +1 -1
- package/dist/icons/ui-icons/warning-fill-transparent.d.ts +1 -1
- package/dist/icons/ui-icons/warning-fill.d.ts +1 -1
- package/dist/icons/ui-icons/warning.d.ts +1 -1
- package/dist/icons/ui-icons/web-video.d.ts +1 -1
- package/dist/icons/ui-icons/wide-bottom.d.ts +1 -1
- package/dist/icons/ui-icons/wide-left.d.ts +1 -1
- package/dist/icons/ui-icons/wide-right.d.ts +1 -1
- package/dist/icons/ui-icons/wide-top.d.ts +1 -1
- package/dist/icons/ui-icons/width.d.ts +1 -1
- package/dist/icons/ui-icons/wordpress.d.ts +1 -1
- package/dist/icons/ui-icons/wrapper-alt.d.ts +1 -1
- package/dist/icons/ui-icons/wrapper-config.d.ts +1 -1
- package/dist/icons/ui-icons/wrapper-off-alt.d.ts +1 -1
- package/dist/icons/ui-icons/wrapper-overflow.d.ts +1 -1
- package/dist/icons/ui-icons/wrapper-simple-alt.d.ts +1 -1
- package/dist/icons/ui-icons/wrapper-simple.d.ts +1 -1
- package/dist/icons/ui-icons/wrapper.d.ts +1 -1
- package/dist/icons/ui-icons/wrench.d.ts +1 -1
- package/dist/icons/ui-icons/zap-fill.d.ts +1 -1
- package/dist/icons/ui-icons/zap.d.ts +1 -1
- package/dist/index.js +14 -14
- package/dist/{input-field-BlZlV8tR.js → input-field-nN6BO0oz.js} +15 -15
- package/dist/{jsx-svg-DHsyyG4y.js → jsx-svg-BjGQUBLh.js} +5 -5
- package/dist/{keyboard-DSfGd-PY.js → keyboard-g5Amam-c.js} +1 -1
- package/dist/{link-input-eyXFRA_1.js → link-input-BhlPElU8.js} +52 -36
- package/dist/{modal-Ct_DKzP5.js → modal-B5axB0Fc.js} +20 -20
- package/dist/{number-Bgzc3wxt.js → number-BeC0ySe4.js} +2 -1
- package/dist/{number-picker-CeOp31Zd.js → number-picker-nnOf0XnN.js} +15 -15
- package/dist/{proxy-5i9ixxY0.js → react-y40Dt3ab.js} +77 -65
- package/dist/{shared-DSy1H9Uy.js → shared-Ba_bt4s9.js} +46 -52
- package/dist/{solid-color-picker-DY1pBp18.js → solid-color-picker-CsosgTVa.js} +42 -35
- package/dist/sprintf-xJRAt4p0.js +129 -0
- package/dist/{switch-85EFSGmJ.js → switch-BJ4_OyUm.js} +34 -18
- package/dist/{tabs-CBG98k4I.js → tabs-wAe0AAyu.js} +34 -29
- package/dist/text-helpers-2j9DuxP1.js +253 -0
- package/dist/{textSelection-DCeeu848.js → textSelection-B_Nv6Jz3.js} +1 -1
- package/dist/{toggle-button-Ba1-pDDV.js → toggle-button-BLJdEp8V.js} +11 -11
- package/dist/{tooltip-CYYcZD_f.js → tooltip-BW9nj5-V.js} +19 -19
- package/dist/{useButton-C5l3uM3M.js → useButton-CPMVLXoX.js} +3 -3
- package/dist/{useCollection-D_QRaKc6.js → useCollection-PzY6FI39.js} +146 -98
- package/dist/{useEvent-9UH7-hIb.js → useEvent-CzuFZ2HT.js} +1 -1
- package/dist/{useField-DZ0cTkNU.js → useField-DrfR8j9h.js} +7 -3
- package/dist/{useFilter-BVcZYNGK.js → useFilter-CiCjo6Na.js} +1 -1
- package/dist/{useFocusRing-KUKJnS3I.js → useFocusRing-CrYHpV7C.js} +3 -2
- package/dist/{useFormReset-Bz-W1XZE.js → useFormReset-U6c35PHq.js} +1 -1
- package/dist/{useFormValidation-BAC0iB4T.js → useFormValidation-B2q2MGWN.js} +5 -8
- package/dist/{useHover-BZbXvQcj.js → useHover-CNsbAR0V.js} +41 -26
- package/dist/{useLabel-Dyb9-lU5.js → useLabel-DuxAjaic.js} +2 -2
- package/dist/{useLabels-DdxgDtMs.js → useLabels-NUsp5IW3.js} +1 -1
- package/dist/{useListState-DdNleQAH.js → useListState-FLxa7R_U.js} +1 -1
- package/dist/{useLocalizedStringFormatter-B5q-uCG6.js → useLocalizedStringFormatter-Ccm8EL_u.js} +1 -1
- package/dist/{useNumberFieldState-D9gldYIv.js → useNumberFieldState-DWvm7CXu.js} +25 -13
- package/dist/{useNumberFormatter-DbIS46GT.js → useNumberFormatter-B0_D7a_o.js} +2 -2
- package/dist/{useOverlayTriggerState-DbYNw1PM.js → useOverlayTriggerState-zZ7homyI.js} +16 -15
- package/dist/{usePress-yLRbMdw6.js → usePress-DRoujMNm.js} +14 -5
- package/dist/useSlot-pRz-v9kC.js +25 -0
- package/dist/{useTextField-BRuuZW8y.js → useTextField-e8jIFT3s.js} +11 -11
- package/dist/useToggle-CR_ZKvr_.js +115 -0
- package/dist/{useToggleState-BTyFw4k9.js → useToggleState-ButQxGrJ.js} +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/text-helpers.js +1 -92
- package/dist/utilities/web-workers.d.ts +3 -2
- package/dist/utilities/web-workers.js +12 -4
- package/dist/{utils-8BmRKOPl.js → utils-Czi6q2Ub.js} +10 -10
- package/package.json +31 -30
- package/dist/SelectionIndicator-CVL8ZTMW.js +0 -13
- package/dist/useToggle-BYDcqWiq.js +0 -63
- package/dist/useToolbar-BKLb8oIP.js +0 -55
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __ } from "./build-module-
|
|
1
|
+
import { t as __ } from "./build-module-DG6ZK7Ty.js";
|
|
2
2
|
import { DraggableContext } from "./components/draggable/draggable-context.js";
|
|
3
3
|
import { createContext, createElement, forwardRef, memo, startTransition, useCallback, useContext, useEffect, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -68,7 +68,14 @@ function o(i) {
|
|
|
68
68
|
r = t;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var f
|
|
71
|
+
var f;
|
|
72
|
+
var h = void 0;
|
|
73
|
+
var s = 0;
|
|
74
|
+
var v = 0;
|
|
75
|
+
var u = 0;
|
|
76
|
+
var e = 0;
|
|
77
|
+
var c = void 0;
|
|
78
|
+
var d = 0;
|
|
72
79
|
function a(i) {
|
|
73
80
|
if (void 0 !== r) {
|
|
74
81
|
var t = i.n;
|
|
@@ -586,7 +593,26 @@ function effects(...entries) {
|
|
|
586
593
|
const effects2 = entries.map((fn) => j(fn));
|
|
587
594
|
return () => effects2.forEach((cleanup) => cleanup());
|
|
588
595
|
}
|
|
589
|
-
var _previous_dec
|
|
596
|
+
var _previous_dec;
|
|
597
|
+
var _initial_dec;
|
|
598
|
+
var _current_dec$1;
|
|
599
|
+
var _current_dec2;
|
|
600
|
+
var _previous_dec2;
|
|
601
|
+
var _initial_dec2 = [reactive];
|
|
602
|
+
var _init$5;
|
|
603
|
+
var _initial;
|
|
604
|
+
var _a$3;
|
|
605
|
+
var initial_get;
|
|
606
|
+
var initial_set;
|
|
607
|
+
var _ValueHistory_instances;
|
|
608
|
+
var _previous;
|
|
609
|
+
var _b$1;
|
|
610
|
+
var previous_get;
|
|
611
|
+
var previous_set;
|
|
612
|
+
var _current;
|
|
613
|
+
var _c$2;
|
|
614
|
+
var current_get;
|
|
615
|
+
var current_set;
|
|
590
616
|
_previous_dec2 = [reactive], _current_dec2 = [reactive], _current_dec$1 = [enumerable()], _initial_dec = [enumerable()], _previous_dec = [enumerable()];
|
|
591
617
|
var ValueHistory = class {
|
|
592
618
|
constructor(defaultValue, equals = Object.is) {
|
|
@@ -935,7 +961,11 @@ function rectangleRectangleIntersection(a, b) {
|
|
|
935
961
|
if (left < right && top < bottom) return width * height;
|
|
936
962
|
return 0;
|
|
937
963
|
}
|
|
938
|
-
var _direction_dec$1
|
|
964
|
+
var _direction_dec$1;
|
|
965
|
+
var _delta_dec$1;
|
|
966
|
+
var _a$2;
|
|
967
|
+
var _timestamp$1;
|
|
968
|
+
var _init$4;
|
|
939
969
|
var Position$1 = class extends (_a$2 = ValueHistory, _delta_dec$1 = [derived], _direction_dec$1 = [derived], _a$2) {
|
|
940
970
|
constructor(initialValue) {
|
|
941
971
|
const point = Point$1.from(initialValue);
|
|
@@ -1137,7 +1167,10 @@ function descriptor(plugin) {
|
|
|
1137
1167
|
};
|
|
1138
1168
|
return plugin;
|
|
1139
1169
|
}
|
|
1140
|
-
var _disabled_dec = [reactive]
|
|
1170
|
+
var _disabled_dec = [reactive];
|
|
1171
|
+
var _init$3;
|
|
1172
|
+
var _disabled;
|
|
1173
|
+
var _cleanupFunctions$1;
|
|
1141
1174
|
var Plugin = class {
|
|
1142
1175
|
/**
|
|
1143
1176
|
* Creates a new plugin instance.
|
|
@@ -1262,9 +1295,13 @@ var PluginRegistry = class {
|
|
|
1262
1295
|
* - Registers new plugins with their options
|
|
1263
1296
|
*/
|
|
1264
1297
|
set values(entries) {
|
|
1265
|
-
const descriptors = entries.map(descriptor).
|
|
1266
|
-
|
|
1267
|
-
|
|
1298
|
+
const descriptors = entries.map(descriptor).reduce((acc, descriptor2) => {
|
|
1299
|
+
const existing = acc.find(({ plugin }) => plugin === descriptor2.plugin);
|
|
1300
|
+
if (existing) {
|
|
1301
|
+
existing.options = descriptor2.options;
|
|
1302
|
+
return acc;
|
|
1303
|
+
}
|
|
1304
|
+
return [...acc, descriptor2];
|
|
1268
1305
|
}, []);
|
|
1269
1306
|
const constructors = descriptors.map(({ plugin }) => plugin);
|
|
1270
1307
|
for (const plugin of __privateGet$4(this, _previousValues)) if (!constructors.includes(plugin)) {
|
|
@@ -1341,7 +1378,8 @@ function sortCollisions(a, b) {
|
|
|
1341
1378
|
return b.priority - a.priority;
|
|
1342
1379
|
}
|
|
1343
1380
|
var DEFAULT_VALUE = [];
|
|
1344
|
-
var _previousCoordinates
|
|
1381
|
+
var _previousCoordinates;
|
|
1382
|
+
var _collisions;
|
|
1345
1383
|
var CollisionObserver = class extends Plugin {
|
|
1346
1384
|
/**
|
|
1347
1385
|
* Creates a new CollisionObserver instance.
|
|
@@ -1421,6 +1459,342 @@ var CollisionObserver = class extends Plugin {
|
|
|
1421
1459
|
};
|
|
1422
1460
|
_previousCoordinates = new WeakMap();
|
|
1423
1461
|
_collisions = new WeakMap();
|
|
1462
|
+
var _disabled_dec2;
|
|
1463
|
+
var _data_dec;
|
|
1464
|
+
var _manager_dec = [reactive];
|
|
1465
|
+
var _Entity_static;
|
|
1466
|
+
var flushIdChanges_fn;
|
|
1467
|
+
var _init2$1;
|
|
1468
|
+
var _manager;
|
|
1469
|
+
var _idSignal;
|
|
1470
|
+
var _data;
|
|
1471
|
+
var _disabled2;
|
|
1472
|
+
_data_dec = [reactive], _disabled_dec2 = [reactive];
|
|
1473
|
+
var _Entity = class _Entity {
|
|
1474
|
+
/**
|
|
1475
|
+
* Creates a new instance of the `Entity` class.
|
|
1476
|
+
*
|
|
1477
|
+
* @param input - An object containing the initial properties of the entity.
|
|
1478
|
+
* @param manager - The manager that controls the drag and drop operations.
|
|
1479
|
+
*/
|
|
1480
|
+
constructor(input, manager) {
|
|
1481
|
+
__privateAdd$4(this, _manager, __runInitializers$3(_init2$1, 8, this)), __runInitializers$3(_init2$1, 11, this);
|
|
1482
|
+
/**
|
|
1483
|
+
* The unique identifier of the entity.
|
|
1484
|
+
*
|
|
1485
|
+
* Setting this property defers the signal update to a microtask,
|
|
1486
|
+
* batching multiple id changes together atomically. This ensures
|
|
1487
|
+
* that when entities swap ids (e.g. during sorting with virtualization),
|
|
1488
|
+
* all registry updates happen in a single transaction.
|
|
1489
|
+
*/
|
|
1490
|
+
__privateAdd$4(this, _idSignal);
|
|
1491
|
+
__privateAdd$4(this, _data, __runInitializers$3(_init2$1, 12, this)), __runInitializers$3(_init2$1, 15, this);
|
|
1492
|
+
__privateAdd$4(this, _disabled2, __runInitializers$3(_init2$1, 16, this)), __runInitializers$3(_init2$1, 19, this);
|
|
1493
|
+
const { effects: effects6, id, data = {}, disabled = false, register = true } = input;
|
|
1494
|
+
let previousId = id;
|
|
1495
|
+
__privateSet$4(this, _idSignal, y(id));
|
|
1496
|
+
this.manager = manager;
|
|
1497
|
+
this.data = data;
|
|
1498
|
+
this.disabled = disabled;
|
|
1499
|
+
this.effects = () => {
|
|
1500
|
+
var _a;
|
|
1501
|
+
return [() => {
|
|
1502
|
+
const { id: id2, manager: manager2 } = this;
|
|
1503
|
+
if (id2 === previousId) return;
|
|
1504
|
+
previousId = id2;
|
|
1505
|
+
manager2?.registry.register(this);
|
|
1506
|
+
return () => manager2 == null ? void 0 : manager2.registry.unregister(this);
|
|
1507
|
+
}, ...(_a = effects6 == null ? void 0 : effects6()) != null ? _a : []];
|
|
1508
|
+
};
|
|
1509
|
+
this.register = this.register.bind(this);
|
|
1510
|
+
this.unregister = this.unregister.bind(this);
|
|
1511
|
+
this.destroy = this.destroy.bind(this);
|
|
1512
|
+
if (manager && register) queueMicrotask(this.register);
|
|
1513
|
+
}
|
|
1514
|
+
get id() {
|
|
1515
|
+
var _a, _b;
|
|
1516
|
+
const signalValue = __privateGet$4(this, _idSignal).value;
|
|
1517
|
+
return (_b = (_a = _Entity.pendingIdChanges) == null ? void 0 : _a.get(this)) != null ? _b : signalValue;
|
|
1518
|
+
}
|
|
1519
|
+
set id(value) {
|
|
1520
|
+
var _a, _b;
|
|
1521
|
+
if (value === ((_b = (_a = _Entity.pendingIdChanges) == null ? void 0 : _a.get(this)) != null ? _b : __privateGet$4(this, _idSignal).peek())) return;
|
|
1522
|
+
if (!_Entity.pendingIdChanges) {
|
|
1523
|
+
_Entity.pendingIdChanges = new Map();
|
|
1524
|
+
queueMicrotask(() => {
|
|
1525
|
+
var _a2;
|
|
1526
|
+
return __privateMethod$2(_a2 = _Entity, _Entity_static, flushIdChanges_fn).call(_a2);
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
_Entity.pendingIdChanges.set(this, value);
|
|
1530
|
+
}
|
|
1531
|
+
/**
|
|
1532
|
+
* A method that registers the entity with the manager.
|
|
1533
|
+
* @returns CleanupFunction | void
|
|
1534
|
+
*/
|
|
1535
|
+
register() {
|
|
1536
|
+
var _a;
|
|
1537
|
+
return (_a = this.manager) == null ? void 0 : _a.registry.register(this);
|
|
1538
|
+
}
|
|
1539
|
+
/**
|
|
1540
|
+
* A method that unregisters the entity from the manager.
|
|
1541
|
+
* @returns void
|
|
1542
|
+
*/
|
|
1543
|
+
unregister() {
|
|
1544
|
+
var _a;
|
|
1545
|
+
(_a = this.manager) == null || _a.registry.unregister(this);
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* A method that cleans up the entity when it is no longer needed.
|
|
1549
|
+
* @returns void
|
|
1550
|
+
*/
|
|
1551
|
+
destroy() {
|
|
1552
|
+
var _a;
|
|
1553
|
+
(_a = this.manager) == null || _a.registry.unregister(this);
|
|
1554
|
+
}
|
|
1555
|
+
};
|
|
1556
|
+
_init2$1 = __decoratorStart$3(null);
|
|
1557
|
+
_Entity_static = new WeakSet();
|
|
1558
|
+
flushIdChanges_fn = function() {
|
|
1559
|
+
const changes = _Entity.pendingIdChanges;
|
|
1560
|
+
_Entity.pendingIdChanges = null;
|
|
1561
|
+
if (changes) n(() => {
|
|
1562
|
+
for (const [entity, id] of changes) __privateGet$4(entity, _idSignal).value = id;
|
|
1563
|
+
});
|
|
1564
|
+
};
|
|
1565
|
+
_manager = new WeakMap();
|
|
1566
|
+
_idSignal = new WeakMap();
|
|
1567
|
+
_data = new WeakMap();
|
|
1568
|
+
_disabled2 = new WeakMap();
|
|
1569
|
+
__decorateElement$3(_init2$1, 4, "manager", _manager_dec, _Entity, _manager);
|
|
1570
|
+
__decorateElement$3(_init2$1, 4, "data", _data_dec, _Entity, _data);
|
|
1571
|
+
__decorateElement$3(_init2$1, 4, "disabled", _disabled_dec2, _Entity, _disabled2);
|
|
1572
|
+
__privateAdd$4(_Entity, _Entity_static);
|
|
1573
|
+
__decoratorMetadata$3(_init2$1, _Entity);
|
|
1574
|
+
_Entity.pendingIdChanges = null;
|
|
1575
|
+
var Entity = _Entity;
|
|
1576
|
+
var EntityRegistry = class {
|
|
1577
|
+
constructor() {
|
|
1578
|
+
this.map = y(new Map());
|
|
1579
|
+
this.cleanupFunctions = new WeakMap();
|
|
1580
|
+
/**
|
|
1581
|
+
* Registers a entity in the registry.
|
|
1582
|
+
* @param key - The unique identifier of the entity.
|
|
1583
|
+
* @param value - The entity to register.
|
|
1584
|
+
* @returns A function that unregisters the entity.
|
|
1585
|
+
*/
|
|
1586
|
+
this.register = (key, value) => {
|
|
1587
|
+
const current = this.map.peek();
|
|
1588
|
+
const currentValue = current.get(key);
|
|
1589
|
+
const unregister = () => this.unregister(key, value);
|
|
1590
|
+
if (currentValue === value) return unregister;
|
|
1591
|
+
if (currentValue) {
|
|
1592
|
+
if (currentValue.id === key) {
|
|
1593
|
+
this.cleanupFunctions.get(currentValue)?.();
|
|
1594
|
+
this.cleanupFunctions.delete(currentValue);
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
const updatedMap = new Map(current);
|
|
1598
|
+
for (const [existingKey, existingValue] of current) if (existingValue === value && existingKey !== key) {
|
|
1599
|
+
updatedMap.delete(existingKey);
|
|
1600
|
+
break;
|
|
1601
|
+
}
|
|
1602
|
+
updatedMap.set(key, value);
|
|
1603
|
+
this.map.value = updatedMap;
|
|
1604
|
+
const cleanup = effects(...value.effects());
|
|
1605
|
+
this.cleanupFunctions.set(value, cleanup);
|
|
1606
|
+
return unregister;
|
|
1607
|
+
};
|
|
1608
|
+
/**
|
|
1609
|
+
* Unregisters an entity from the registry.
|
|
1610
|
+
* @param key - The unique identifier of the entity.
|
|
1611
|
+
* @param value - The entity instance to unregister.
|
|
1612
|
+
*/
|
|
1613
|
+
this.unregister = (key, value) => {
|
|
1614
|
+
const current = this.map.peek();
|
|
1615
|
+
if (current.get(key) !== value) return;
|
|
1616
|
+
this.cleanupFunctions.get(value)?.();
|
|
1617
|
+
this.cleanupFunctions.delete(value);
|
|
1618
|
+
const updatedMap = new Map(current);
|
|
1619
|
+
updatedMap.delete(key);
|
|
1620
|
+
this.map.value = updatedMap;
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* Iterator for the EntityRegistry class.
|
|
1625
|
+
* @returns An iterator for the values in the map.
|
|
1626
|
+
*/
|
|
1627
|
+
[Symbol.iterator]() {
|
|
1628
|
+
return this.map.peek().values();
|
|
1629
|
+
}
|
|
1630
|
+
get value() {
|
|
1631
|
+
return this.map.value.values();
|
|
1632
|
+
}
|
|
1633
|
+
/**
|
|
1634
|
+
* Checks if a entity with the given identifier exists in the registry.
|
|
1635
|
+
* @param identifier - The unique identifier of the entity.
|
|
1636
|
+
* @returns True if the entity exists, false otherwise.
|
|
1637
|
+
*/
|
|
1638
|
+
has(identifier) {
|
|
1639
|
+
return this.map.value.has(identifier);
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* Retrieves a entity from the registry using its identifier.
|
|
1643
|
+
* @param identifier - The unique identifier of the entity.
|
|
1644
|
+
* @returns The entity if it exists, undefined otherwise.
|
|
1645
|
+
*/
|
|
1646
|
+
get(identifier) {
|
|
1647
|
+
return this.map.value.get(identifier);
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* Destroys all entries in the registry and clears the registry.
|
|
1651
|
+
*/
|
|
1652
|
+
destroy() {
|
|
1653
|
+
for (const entry of this) {
|
|
1654
|
+
this.cleanupFunctions.get(entry)?.();
|
|
1655
|
+
entry.destroy();
|
|
1656
|
+
}
|
|
1657
|
+
this.map.value = new Map();
|
|
1658
|
+
}
|
|
1659
|
+
};
|
|
1660
|
+
var _isDragSource_dec;
|
|
1661
|
+
var _isDragging_dec;
|
|
1662
|
+
var _isDropping_dec;
|
|
1663
|
+
var _status_dec;
|
|
1664
|
+
var _modifiers_dec;
|
|
1665
|
+
var _type_dec;
|
|
1666
|
+
var _c$1;
|
|
1667
|
+
var _init3$1;
|
|
1668
|
+
var _type;
|
|
1669
|
+
var _modifiers;
|
|
1670
|
+
var _status;
|
|
1671
|
+
var Draggable$2 = class extends (_c$1 = Entity, _type_dec = [reactive], _modifiers_dec = [reactive], _status_dec = [reactive], _isDropping_dec = [derived], _isDragging_dec = [derived], _isDragSource_dec = [derived], _c$1) {
|
|
1672
|
+
constructor(_a, manager) {
|
|
1673
|
+
var _b = _a, { modifiers, type, sensors, plugins, effects: effects6 } = _b, input = __objRest$3(_b, [
|
|
1674
|
+
"modifiers",
|
|
1675
|
+
"type",
|
|
1676
|
+
"sensors",
|
|
1677
|
+
"plugins",
|
|
1678
|
+
"effects"
|
|
1679
|
+
]);
|
|
1680
|
+
super(__spreadProps$4(__spreadValues$4({}, input), { effects: () => {
|
|
1681
|
+
var _a2;
|
|
1682
|
+
return [...(_a2 = effects6 == null ? void 0 : effects6()) != null ? _a2 : [], () => {
|
|
1683
|
+
const { manager: manager2, plugins: plugins2 } = this;
|
|
1684
|
+
if (!manager2 || !plugins2) return;
|
|
1685
|
+
for (const entry of plugins2) {
|
|
1686
|
+
const { plugin } = descriptor(entry);
|
|
1687
|
+
manager2.registry.plugins.register(plugin);
|
|
1688
|
+
}
|
|
1689
|
+
}];
|
|
1690
|
+
} }), manager);
|
|
1691
|
+
__runInitializers$3(_init3$1, 5, this);
|
|
1692
|
+
__privateAdd$4(this, _type, __runInitializers$3(_init3$1, 8, this)), __runInitializers$3(_init3$1, 11, this);
|
|
1693
|
+
__privateAdd$4(this, _modifiers, __runInitializers$3(_init3$1, 12, this)), __runInitializers$3(_init3$1, 15, this);
|
|
1694
|
+
__privateAdd$4(this, _status, __runInitializers$3(_init3$1, 16, this, this.isDragSource ? "dragging" : "idle")), __runInitializers$3(_init3$1, 19, this);
|
|
1695
|
+
this.type = type;
|
|
1696
|
+
this.sensors = sensors;
|
|
1697
|
+
this.modifiers = modifiers;
|
|
1698
|
+
this.alignment = input.alignment;
|
|
1699
|
+
this.plugins = plugins;
|
|
1700
|
+
}
|
|
1701
|
+
/**
|
|
1702
|
+
* Look up per-entity options for a given plugin constructor.
|
|
1703
|
+
*/
|
|
1704
|
+
pluginConfig(plugin) {
|
|
1705
|
+
if (!this.plugins) return void 0;
|
|
1706
|
+
for (const entry of this.plugins) {
|
|
1707
|
+
const desc = descriptor(entry);
|
|
1708
|
+
if (desc.plugin === plugin) return desc.options;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
get isDropping() {
|
|
1712
|
+
return this.status === "dropping" && this.isDragSource;
|
|
1713
|
+
}
|
|
1714
|
+
get isDragging() {
|
|
1715
|
+
return this.status === "dragging" && this.isDragSource;
|
|
1716
|
+
}
|
|
1717
|
+
get isDragSource() {
|
|
1718
|
+
var _a, _b;
|
|
1719
|
+
return ((_b = (_a = this.manager) == null ? void 0 : _a.dragOperation.source) == null ? void 0 : _b.id) === this.id;
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
_init3$1 = __decoratorStart$3(_c$1);
|
|
1723
|
+
_type = new WeakMap();
|
|
1724
|
+
_modifiers = new WeakMap();
|
|
1725
|
+
_status = new WeakMap();
|
|
1726
|
+
__decorateElement$3(_init3$1, 4, "type", _type_dec, Draggable$2, _type);
|
|
1727
|
+
__decorateElement$3(_init3$1, 4, "modifiers", _modifiers_dec, Draggable$2, _modifiers);
|
|
1728
|
+
__decorateElement$3(_init3$1, 4, "status", _status_dec, Draggable$2, _status);
|
|
1729
|
+
__decorateElement$3(_init3$1, 2, "isDropping", _isDropping_dec, Draggable$2);
|
|
1730
|
+
__decorateElement$3(_init3$1, 2, "isDragging", _isDragging_dec, Draggable$2);
|
|
1731
|
+
__decorateElement$3(_init3$1, 2, "isDragSource", _isDragSource_dec, Draggable$2);
|
|
1732
|
+
__decoratorMetadata$3(_init3$1, Draggable$2);
|
|
1733
|
+
var _isDropTarget_dec;
|
|
1734
|
+
var _shape_dec;
|
|
1735
|
+
var _collisionPriority_dec;
|
|
1736
|
+
var _collisionDetector_dec;
|
|
1737
|
+
var _type_dec2;
|
|
1738
|
+
var _accept_dec;
|
|
1739
|
+
var _c2$1;
|
|
1740
|
+
var _init4$1;
|
|
1741
|
+
var _accept;
|
|
1742
|
+
var _type2;
|
|
1743
|
+
var _collisionDetector;
|
|
1744
|
+
var _collisionPriority;
|
|
1745
|
+
var _shape;
|
|
1746
|
+
var Droppable$1 = class extends (_c2$1 = Entity, _accept_dec = [reactive], _type_dec2 = [reactive], _collisionDetector_dec = [reactive], _collisionPriority_dec = [reactive], _shape_dec = [reactive], _isDropTarget_dec = [derived], _c2$1) {
|
|
1747
|
+
constructor(_a, manager) {
|
|
1748
|
+
var _b = _a, { accept, collisionDetector, collisionPriority, type } = _b, input = __objRest$3(_b, [
|
|
1749
|
+
"accept",
|
|
1750
|
+
"collisionDetector",
|
|
1751
|
+
"collisionPriority",
|
|
1752
|
+
"type"
|
|
1753
|
+
]);
|
|
1754
|
+
super(input, manager);
|
|
1755
|
+
__runInitializers$3(_init4$1, 5, this);
|
|
1756
|
+
__privateAdd$4(this, _accept, __runInitializers$3(_init4$1, 8, this)), __runInitializers$3(_init4$1, 11, this);
|
|
1757
|
+
__privateAdd$4(this, _type2, __runInitializers$3(_init4$1, 12, this)), __runInitializers$3(_init4$1, 15, this);
|
|
1758
|
+
__privateAdd$4(this, _collisionDetector, __runInitializers$3(_init4$1, 16, this)), __runInitializers$3(_init4$1, 19, this);
|
|
1759
|
+
__privateAdd$4(this, _collisionPriority, __runInitializers$3(_init4$1, 20, this)), __runInitializers$3(_init4$1, 23, this);
|
|
1760
|
+
__privateAdd$4(this, _shape, __runInitializers$3(_init4$1, 24, this)), __runInitializers$3(_init4$1, 27, this);
|
|
1761
|
+
this.accept = accept;
|
|
1762
|
+
this.collisionDetector = collisionDetector;
|
|
1763
|
+
this.collisionPriority = collisionPriority;
|
|
1764
|
+
this.type = type;
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
* Checks whether or not the droppable accepts a given draggable.
|
|
1768
|
+
*
|
|
1769
|
+
* @param draggable - The draggable to check
|
|
1770
|
+
* @returns true if the draggable can be dropped here
|
|
1771
|
+
*/
|
|
1772
|
+
accepts(draggable) {
|
|
1773
|
+
const { accept } = this;
|
|
1774
|
+
if (!accept) return true;
|
|
1775
|
+
if (typeof accept === "function") return accept(draggable);
|
|
1776
|
+
if (!draggable.type) return false;
|
|
1777
|
+
if (Array.isArray(accept)) return accept.includes(draggable.type);
|
|
1778
|
+
return draggable.type === accept;
|
|
1779
|
+
}
|
|
1780
|
+
get isDropTarget() {
|
|
1781
|
+
var _a, _b;
|
|
1782
|
+
return ((_b = (_a = this.manager) == null ? void 0 : _a.dragOperation.target) == null ? void 0 : _b.id) === this.id;
|
|
1783
|
+
}
|
|
1784
|
+
};
|
|
1785
|
+
_init4$1 = __decoratorStart$3(_c2$1);
|
|
1786
|
+
_accept = new WeakMap();
|
|
1787
|
+
_type2 = new WeakMap();
|
|
1788
|
+
_collisionDetector = new WeakMap();
|
|
1789
|
+
_collisionPriority = new WeakMap();
|
|
1790
|
+
_shape = new WeakMap();
|
|
1791
|
+
__decorateElement$3(_init4$1, 4, "accept", _accept_dec, Droppable$1, _accept);
|
|
1792
|
+
__decorateElement$3(_init4$1, 4, "type", _type_dec2, Droppable$1, _type2);
|
|
1793
|
+
__decorateElement$3(_init4$1, 4, "collisionDetector", _collisionDetector_dec, Droppable$1, _collisionDetector);
|
|
1794
|
+
__decorateElement$3(_init4$1, 4, "collisionPriority", _collisionPriority_dec, Droppable$1, _collisionPriority);
|
|
1795
|
+
__decorateElement$3(_init4$1, 4, "shape", _shape_dec, Droppable$1, _shape);
|
|
1796
|
+
__decorateElement$3(_init4$1, 2, "isDropTarget", _isDropTarget_dec, Droppable$1);
|
|
1797
|
+
__decoratorMetadata$3(_init4$1, Droppable$1);
|
|
1424
1798
|
var Monitor = class {
|
|
1425
1799
|
constructor() {
|
|
1426
1800
|
this.registry = new Map();
|
|
@@ -1513,6 +1887,7 @@ var CollisionNotifier = class extends CorePlugin {
|
|
|
1513
1887
|
const { collisionObserver, monitor } = manager;
|
|
1514
1888
|
const { collisions } = collisionObserver;
|
|
1515
1889
|
if (collisionObserver.isDisabled()) return;
|
|
1890
|
+
if (Entity.pendingIdChanges) return;
|
|
1516
1891
|
const event = defaultPreventable({ collisions });
|
|
1517
1892
|
monitor.dispatch("collision", event);
|
|
1518
1893
|
if (event.defaultPrevented) return;
|
|
@@ -1545,12 +1920,20 @@ var CollisionType = ((CollisionType2) => {
|
|
|
1545
1920
|
CollisionType2[CollisionType2["PointerIntersection"] = 2] = "PointerIntersection";
|
|
1546
1921
|
return CollisionType2;
|
|
1547
1922
|
})(CollisionType || {});
|
|
1548
|
-
var _dropped_dec
|
|
1923
|
+
var _dropped_dec;
|
|
1924
|
+
var _dragging_dec;
|
|
1925
|
+
var _initialized_dec;
|
|
1926
|
+
var _initializing_dec;
|
|
1927
|
+
var _idle_dec;
|
|
1928
|
+
var _current_dec;
|
|
1929
|
+
var _value_dec = [reactive];
|
|
1930
|
+
var _init5$1;
|
|
1931
|
+
var _value;
|
|
1549
1932
|
_current_dec = [derived], _idle_dec = [derived], _initializing_dec = [derived], _initialized_dec = [derived], _dragging_dec = [derived], _dropped_dec = [derived];
|
|
1550
1933
|
var Status = class {
|
|
1551
1934
|
constructor() {
|
|
1552
|
-
__runInitializers$3(
|
|
1553
|
-
__privateAdd$4(this, _value, __runInitializers$3(
|
|
1935
|
+
__runInitializers$3(_init5$1, 5, this);
|
|
1936
|
+
__privateAdd$4(this, _value, __runInitializers$3(_init5$1, 8, this, "idle")), __runInitializers$3(_init5$1, 11, this);
|
|
1554
1937
|
}
|
|
1555
1938
|
get current() {
|
|
1556
1939
|
return this.value;
|
|
@@ -1580,16 +1963,16 @@ var Status = class {
|
|
|
1580
1963
|
this.value = value;
|
|
1581
1964
|
}
|
|
1582
1965
|
};
|
|
1583
|
-
|
|
1966
|
+
_init5$1 = __decoratorStart$3(null);
|
|
1584
1967
|
_value = new WeakMap();
|
|
1585
|
-
__decorateElement$3(
|
|
1586
|
-
__decorateElement$3(
|
|
1587
|
-
__decorateElement$3(
|
|
1588
|
-
__decorateElement$3(
|
|
1589
|
-
__decorateElement$3(
|
|
1590
|
-
__decorateElement$3(
|
|
1591
|
-
__decorateElement$3(
|
|
1592
|
-
__decoratorMetadata$3(
|
|
1968
|
+
__decorateElement$3(_init5$1, 4, "value", _value_dec, Status, _value);
|
|
1969
|
+
__decorateElement$3(_init5$1, 2, "current", _current_dec, Status);
|
|
1970
|
+
__decorateElement$3(_init5$1, 2, "idle", _idle_dec, Status);
|
|
1971
|
+
__decorateElement$3(_init5$1, 2, "initializing", _initializing_dec, Status);
|
|
1972
|
+
__decorateElement$3(_init5$1, 2, "initialized", _initialized_dec, Status);
|
|
1973
|
+
__decorateElement$3(_init5$1, 2, "dragging", _dragging_dec, Status);
|
|
1974
|
+
__decorateElement$3(_init5$1, 2, "dropped", _dropped_dec, Status);
|
|
1975
|
+
__decoratorMetadata$3(_init5$1, Status);
|
|
1593
1976
|
var DragActions = class {
|
|
1594
1977
|
/**
|
|
1595
1978
|
* Creates a new instance of drag actions.
|
|
@@ -1631,387 +2014,149 @@ var DragActions = class {
|
|
|
1631
2014
|
* @param args - Configuration for the drag operation
|
|
1632
2015
|
* @param args.event - The event that initiated the drag
|
|
1633
2016
|
* @param args.source - The source draggable entity or its identifier
|
|
1634
|
-
* @param args.coordinates - The initial coordinates of the drag
|
|
1635
|
-
* @returns true if the drag operation started successfully
|
|
1636
|
-
* @throws {Error} If there is no drag source or another operation is active
|
|
1637
|
-
*/
|
|
1638
|
-
start(args) {
|
|
1639
|
-
return o(() => {
|
|
1640
|
-
const { dragOperation } = this.manager;
|
|
1641
|
-
if (args.source != null) this.setDragSource(args.source);
|
|
1642
|
-
if (!dragOperation.source) throw new Error("Cannot start a drag operation without a drag source");
|
|
1643
|
-
if (!dragOperation.status.idle) throw new Error("Cannot start a drag operation while another is active");
|
|
1644
|
-
const controller = new AbortController();
|
|
1645
|
-
const { event: nativeEvent, coordinates } = args;
|
|
1646
|
-
n(() => {
|
|
1647
|
-
dragOperation.status.set("initialization-pending");
|
|
1648
|
-
dragOperation.shape = null;
|
|
1649
|
-
dragOperation.canceled = false;
|
|
1650
|
-
dragOperation.activatorEvent = nativeEvent != null ? nativeEvent : null;
|
|
1651
|
-
dragOperation.position.reset(coordinates);
|
|
1652
|
-
});
|
|
1653
|
-
const beforeStartEvent = defaultPreventable({ operation: dragOperation.snapshot() });
|
|
1654
|
-
this.manager.monitor.dispatch("beforedragstart", beforeStartEvent);
|
|
1655
|
-
if (beforeStartEvent.defaultPrevented) {
|
|
1656
|
-
dragOperation.reset();
|
|
1657
|
-
controller.abort();
|
|
1658
|
-
return controller;
|
|
1659
|
-
}
|
|
1660
|
-
dragOperation.status.set("initializing");
|
|
1661
|
-
dragOperation.controller = controller;
|
|
1662
|
-
this.manager.renderer.rendering.then(() => {
|
|
1663
|
-
if (controller.signal.aborted) return;
|
|
1664
|
-
const { status } = dragOperation;
|
|
1665
|
-
if (status.current !== "initializing") return;
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
* Moves the dragged entity to a new position.
|
|
1678
|
-
*
|
|
1679
|
-
* @param args - Configuration for the move operation
|
|
1680
|
-
* @param args.by - Relative coordinates to move by
|
|
1681
|
-
* @param args.to - Absolute coordinates to move to
|
|
1682
|
-
* @param args.event - The event that triggered the move
|
|
1683
|
-
* @param args.cancelable - Whether the move can be canceled
|
|
1684
|
-
* @param args.propagate - Whether to dispatch dragmove events
|
|
1685
|
-
*/
|
|
1686
|
-
move(args) {
|
|
1687
|
-
return o(() => {
|
|
1688
|
-
var _a, _b;
|
|
1689
|
-
const { dragOperation } = this.manager;
|
|
1690
|
-
const { status, controller } = dragOperation;
|
|
1691
|
-
if (!status.dragging || !controller || controller.signal.aborted) return;
|
|
1692
|
-
const event = defaultPreventable({
|
|
1693
|
-
nativeEvent: args.event,
|
|
1694
|
-
operation: dragOperation.snapshot(),
|
|
1695
|
-
by: args.by,
|
|
1696
|
-
to: args.to
|
|
1697
|
-
}, (_a = args.cancelable) != null ? _a : true);
|
|
1698
|
-
if ((_b = args.propagate) != null ? _b : true) this.manager.monitor.dispatch("dragmove", event);
|
|
1699
|
-
queueMicrotask(() => {
|
|
1700
|
-
var _a2, _b2, _c3, _d, _e;
|
|
1701
|
-
if (event.defaultPrevented) return;
|
|
1702
|
-
const coordinates = (_e = args.to) != null ? _e : {
|
|
1703
|
-
x: dragOperation.position.current.x + ((_b2 = (_a2 = args.by) == null ? void 0 : _a2.x) != null ? _b2 : 0),
|
|
1704
|
-
y: dragOperation.position.current.y + ((_d = (_c3 = args.by) == null ? void 0 : _c3.y) != null ? _d : 0)
|
|
1705
|
-
};
|
|
1706
|
-
dragOperation.position.current = coordinates;
|
|
1707
|
-
});
|
|
1708
|
-
});
|
|
1709
|
-
}
|
|
1710
|
-
/**
|
|
1711
|
-
* Stops the current drag operation.
|
|
1712
|
-
*
|
|
1713
|
-
* @param args - Configuration for stopping the operation
|
|
1714
|
-
* @param args.event - The event that triggered the stop
|
|
1715
|
-
* @param args.canceled - Whether the operation was canceled
|
|
1716
|
-
* @remarks
|
|
1717
|
-
* This method:
|
|
1718
|
-
* - Dispatches a dragend event
|
|
1719
|
-
* - Allows suspension of the operation
|
|
1720
|
-
* - Handles cleanup of the operation state
|
|
1721
|
-
*/
|
|
1722
|
-
stop(args = {}) {
|
|
1723
|
-
return o(() => {
|
|
1724
|
-
var _a, _b;
|
|
1725
|
-
const { dragOperation } = this.manager;
|
|
1726
|
-
const { controller } = dragOperation;
|
|
1727
|
-
if (!controller || controller.signal.aborted) return;
|
|
1728
|
-
let promise;
|
|
1729
|
-
const suspend = () => {
|
|
1730
|
-
const output = {
|
|
1731
|
-
resume: () => {},
|
|
1732
|
-
abort: () => {}
|
|
1733
|
-
};
|
|
1734
|
-
promise = new Promise((resolve, reject) => {
|
|
1735
|
-
output.resume = resolve;
|
|
1736
|
-
output.abort = reject;
|
|
1737
|
-
});
|
|
1738
|
-
return output;
|
|
1739
|
-
};
|
|
1740
|
-
controller.abort();
|
|
1741
|
-
const end = () => {
|
|
1742
|
-
this.manager.renderer.rendering.then(() => {
|
|
1743
|
-
dragOperation.status.set("dropped");
|
|
1744
|
-
const dropping = o(() => {
|
|
1745
|
-
var _a2;
|
|
1746
|
-
return ((_a2 = dragOperation.source) == null ? void 0 : _a2.status) === "dropping";
|
|
1747
|
-
});
|
|
1748
|
-
const cleanup = () => {
|
|
1749
|
-
if (dragOperation.controller === controller) dragOperation.controller = void 0;
|
|
1750
|
-
dragOperation.reset();
|
|
1751
|
-
};
|
|
1752
|
-
if (dropping) {
|
|
1753
|
-
const { source } = dragOperation;
|
|
1754
|
-
const dispose = j(() => {
|
|
1755
|
-
if ((source == null ? void 0 : source.status) === "idle") {
|
|
1756
|
-
dispose();
|
|
1757
|
-
cleanup();
|
|
1758
|
-
}
|
|
1759
|
-
});
|
|
1760
|
-
} else this.manager.renderer.rendering.then(cleanup);
|
|
1761
|
-
});
|
|
1762
|
-
};
|
|
1763
|
-
dragOperation.canceled = (_a = args.canceled) != null ? _a : false;
|
|
1764
|
-
this.manager.monitor.dispatch("dragend", {
|
|
1765
|
-
nativeEvent: args.event,
|
|
1766
|
-
operation: dragOperation.snapshot(),
|
|
1767
|
-
canceled: (_b = args.canceled) != null ? _b : false,
|
|
1768
|
-
suspend
|
|
1769
|
-
});
|
|
1770
|
-
if (promise) promise.then(end).catch(() => dragOperation.reset());
|
|
1771
|
-
else end();
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1774
|
-
};
|
|
1775
|
-
var _disabled_dec2, _data_dec, _id_dec, _manager_dec = [reactive], _init3$1, _manager, _id, _data, _disabled2;
|
|
1776
|
-
_id_dec = [reactive], _data_dec = [reactive], _disabled_dec2 = [reactive];
|
|
1777
|
-
var Entity = class {
|
|
1778
|
-
/**
|
|
1779
|
-
* Creates a new instance of the `Entity` class.
|
|
1780
|
-
*
|
|
1781
|
-
* @param input - An object containing the initial properties of the entity.
|
|
1782
|
-
* @param manager - The manager that controls the drag and drop operations.
|
|
1783
|
-
*/
|
|
1784
|
-
constructor(input, manager) {
|
|
1785
|
-
__privateAdd$4(this, _manager, __runInitializers$3(_init3$1, 8, this)), __runInitializers$3(_init3$1, 11, this);
|
|
1786
|
-
__privateAdd$4(this, _id, __runInitializers$3(_init3$1, 12, this)), __runInitializers$3(_init3$1, 15, this);
|
|
1787
|
-
__privateAdd$4(this, _data, __runInitializers$3(_init3$1, 16, this)), __runInitializers$3(_init3$1, 19, this);
|
|
1788
|
-
__privateAdd$4(this, _disabled2, __runInitializers$3(_init3$1, 20, this)), __runInitializers$3(_init3$1, 23, this);
|
|
1789
|
-
const { effects: effects6, id, data = {}, disabled = false, register = true } = input;
|
|
1790
|
-
let previousId = id;
|
|
1791
|
-
this.manager = manager;
|
|
1792
|
-
this.id = id;
|
|
1793
|
-
this.data = data;
|
|
1794
|
-
this.disabled = disabled;
|
|
1795
|
-
this.effects = () => {
|
|
1796
|
-
var _a;
|
|
1797
|
-
return [() => {
|
|
1798
|
-
const { id: id2, manager: manager2 } = this;
|
|
1799
|
-
if (id2 === previousId) return;
|
|
1800
|
-
manager2?.registry.register(this);
|
|
1801
|
-
return () => manager2 == null ? void 0 : manager2.registry.unregister(this);
|
|
1802
|
-
}, ...(_a = effects6 == null ? void 0 : effects6()) != null ? _a : []];
|
|
1803
|
-
};
|
|
1804
|
-
this.register = this.register.bind(this);
|
|
1805
|
-
this.unregister = this.unregister.bind(this);
|
|
1806
|
-
this.destroy = this.destroy.bind(this);
|
|
1807
|
-
if (manager && register) queueMicrotask(this.register);
|
|
1808
|
-
}
|
|
1809
|
-
/**
|
|
1810
|
-
* A method that registers the entity with the manager.
|
|
1811
|
-
* @returns CleanupFunction | void
|
|
1812
|
-
*/
|
|
1813
|
-
register() {
|
|
1814
|
-
var _a;
|
|
1815
|
-
return (_a = this.manager) == null ? void 0 : _a.registry.register(this);
|
|
1816
|
-
}
|
|
1817
|
-
/**
|
|
1818
|
-
* A method that unregisters the entity from the manager.
|
|
1819
|
-
* @returns void
|
|
1820
|
-
*/
|
|
1821
|
-
unregister() {
|
|
1822
|
-
var _a;
|
|
1823
|
-
(_a = this.manager) == null || _a.registry.unregister(this);
|
|
1824
|
-
}
|
|
1825
|
-
/**
|
|
1826
|
-
* A method that cleans up the entity when it is no longer needed.
|
|
1827
|
-
* @returns void
|
|
1828
|
-
*/
|
|
1829
|
-
destroy() {
|
|
1830
|
-
var _a;
|
|
1831
|
-
(_a = this.manager) == null || _a.registry.unregister(this);
|
|
1832
|
-
}
|
|
1833
|
-
};
|
|
1834
|
-
_init3$1 = __decoratorStart$3(null);
|
|
1835
|
-
_manager = new WeakMap();
|
|
1836
|
-
_id = new WeakMap();
|
|
1837
|
-
_data = new WeakMap();
|
|
1838
|
-
_disabled2 = new WeakMap();
|
|
1839
|
-
__decorateElement$3(_init3$1, 4, "manager", _manager_dec, Entity, _manager);
|
|
1840
|
-
__decorateElement$3(_init3$1, 4, "id", _id_dec, Entity, _id);
|
|
1841
|
-
__decorateElement$3(_init3$1, 4, "data", _data_dec, Entity, _data);
|
|
1842
|
-
__decorateElement$3(_init3$1, 4, "disabled", _disabled_dec2, Entity, _disabled2);
|
|
1843
|
-
__decoratorMetadata$3(_init3$1, Entity);
|
|
1844
|
-
var EntityRegistry = class {
|
|
1845
|
-
constructor() {
|
|
1846
|
-
this.map = y(new Map());
|
|
1847
|
-
this.cleanupFunctions = new WeakMap();
|
|
1848
|
-
/**
|
|
1849
|
-
* Registers a entity in the registry.
|
|
1850
|
-
* @param key - The unique identifier of the entity.
|
|
1851
|
-
* @param value - The entity to register.
|
|
1852
|
-
* @returns A function that unregisters the entity.
|
|
1853
|
-
*/
|
|
1854
|
-
this.register = (key, value) => {
|
|
1855
|
-
const current = this.map.peek();
|
|
1856
|
-
const currentValue = current.get(key);
|
|
1857
|
-
const unregister = () => this.unregister(key, value);
|
|
1858
|
-
if (currentValue === value) return unregister;
|
|
1859
|
-
if (currentValue) {
|
|
1860
|
-
this.cleanupFunctions.get(currentValue)?.();
|
|
1861
|
-
this.cleanupFunctions.delete(currentValue);
|
|
1862
|
-
}
|
|
1863
|
-
const updatedMap = new Map(current);
|
|
1864
|
-
updatedMap.set(key, value);
|
|
1865
|
-
this.map.value = updatedMap;
|
|
1866
|
-
const cleanup = effects(...value.effects());
|
|
1867
|
-
this.cleanupFunctions.set(value, cleanup);
|
|
1868
|
-
return unregister;
|
|
1869
|
-
};
|
|
1870
|
-
/**
|
|
1871
|
-
* Unregisters an entity from the registry.
|
|
1872
|
-
* @param key - The unique identifier of the entity.
|
|
1873
|
-
* @param value - The entity instance to unregister.
|
|
1874
|
-
*/
|
|
1875
|
-
this.unregister = (key, value) => {
|
|
1876
|
-
const current = this.map.peek();
|
|
1877
|
-
if (current.get(key) !== value) return;
|
|
1878
|
-
this.cleanupFunctions.get(value)?.();
|
|
1879
|
-
this.cleanupFunctions.delete(value);
|
|
1880
|
-
const updatedMap = new Map(current);
|
|
1881
|
-
updatedMap.delete(key);
|
|
1882
|
-
this.map.value = updatedMap;
|
|
1883
|
-
};
|
|
1884
|
-
}
|
|
1885
|
-
/**
|
|
1886
|
-
* Iterator for the EntityRegistry class.
|
|
1887
|
-
* @returns An iterator for the values in the map.
|
|
1888
|
-
*/
|
|
1889
|
-
[Symbol.iterator]() {
|
|
1890
|
-
return this.map.peek().values();
|
|
1891
|
-
}
|
|
1892
|
-
get value() {
|
|
1893
|
-
return this.map.value.values();
|
|
1894
|
-
}
|
|
1895
|
-
/**
|
|
1896
|
-
* Checks if a entity with the given identifier exists in the registry.
|
|
1897
|
-
* @param identifier - The unique identifier of the entity.
|
|
1898
|
-
* @returns True if the entity exists, false otherwise.
|
|
1899
|
-
*/
|
|
1900
|
-
has(identifier) {
|
|
1901
|
-
return this.map.value.has(identifier);
|
|
1902
|
-
}
|
|
1903
|
-
/**
|
|
1904
|
-
* Retrieves a entity from the registry using its identifier.
|
|
1905
|
-
* @param identifier - The unique identifier of the entity.
|
|
1906
|
-
* @returns The entity if it exists, undefined otherwise.
|
|
1907
|
-
*/
|
|
1908
|
-
get(identifier) {
|
|
1909
|
-
return this.map.value.get(identifier);
|
|
1910
|
-
}
|
|
1911
|
-
/**
|
|
1912
|
-
* Destroys all entries in the registry and clears the registry.
|
|
1913
|
-
*/
|
|
1914
|
-
destroy() {
|
|
1915
|
-
for (const entry of this) {
|
|
1916
|
-
this.cleanupFunctions.get(entry)?.();
|
|
1917
|
-
entry.destroy();
|
|
1918
|
-
}
|
|
1919
|
-
this.map.value = new Map();
|
|
1920
|
-
}
|
|
1921
|
-
};
|
|
1922
|
-
var _isDragSource_dec, _isDragging_dec, _isDropping_dec, _status_dec, _modifiers_dec, _type_dec, _c$1, _init4$1, _type, _modifiers, _status;
|
|
1923
|
-
var Draggable$2 = class extends (_c$1 = Entity, _type_dec = [reactive], _modifiers_dec = [reactive], _status_dec = [reactive], _isDropping_dec = [derived], _isDragging_dec = [derived], _isDragSource_dec = [derived], _c$1) {
|
|
1924
|
-
constructor(_a, manager) {
|
|
1925
|
-
var _b = _a, { modifiers, type, sensors } = _b, input = __objRest$3(_b, [
|
|
1926
|
-
"modifiers",
|
|
1927
|
-
"type",
|
|
1928
|
-
"sensors"
|
|
1929
|
-
]);
|
|
1930
|
-
super(input, manager);
|
|
1931
|
-
__runInitializers$3(_init4$1, 5, this);
|
|
1932
|
-
__privateAdd$4(this, _type, __runInitializers$3(_init4$1, 8, this)), __runInitializers$3(_init4$1, 11, this);
|
|
1933
|
-
__privateAdd$4(this, _modifiers, __runInitializers$3(_init4$1, 12, this)), __runInitializers$3(_init4$1, 15, this);
|
|
1934
|
-
__privateAdd$4(this, _status, __runInitializers$3(_init4$1, 16, this, this.isDragSource ? "dragging" : "idle")), __runInitializers$3(_init4$1, 19, this);
|
|
1935
|
-
this.type = type;
|
|
1936
|
-
this.sensors = sensors;
|
|
1937
|
-
this.modifiers = modifiers;
|
|
1938
|
-
this.alignment = input.alignment;
|
|
1939
|
-
}
|
|
1940
|
-
get isDropping() {
|
|
1941
|
-
return this.status === "dropping" && this.isDragSource;
|
|
1942
|
-
}
|
|
1943
|
-
get isDragging() {
|
|
1944
|
-
return this.status === "dragging" && this.isDragSource;
|
|
1945
|
-
}
|
|
1946
|
-
get isDragSource() {
|
|
1947
|
-
var _a, _b;
|
|
1948
|
-
return ((_b = (_a = this.manager) == null ? void 0 : _a.dragOperation.source) == null ? void 0 : _b.id) === this.id;
|
|
1949
|
-
}
|
|
1950
|
-
};
|
|
1951
|
-
_init4$1 = __decoratorStart$3(_c$1);
|
|
1952
|
-
_type = new WeakMap();
|
|
1953
|
-
_modifiers = new WeakMap();
|
|
1954
|
-
_status = new WeakMap();
|
|
1955
|
-
__decorateElement$3(_init4$1, 4, "type", _type_dec, Draggable$2, _type);
|
|
1956
|
-
__decorateElement$3(_init4$1, 4, "modifiers", _modifiers_dec, Draggable$2, _modifiers);
|
|
1957
|
-
__decorateElement$3(_init4$1, 4, "status", _status_dec, Draggable$2, _status);
|
|
1958
|
-
__decorateElement$3(_init4$1, 2, "isDropping", _isDropping_dec, Draggable$2);
|
|
1959
|
-
__decorateElement$3(_init4$1, 2, "isDragging", _isDragging_dec, Draggable$2);
|
|
1960
|
-
__decorateElement$3(_init4$1, 2, "isDragSource", _isDragSource_dec, Draggable$2);
|
|
1961
|
-
__decoratorMetadata$3(_init4$1, Draggable$2);
|
|
1962
|
-
var _isDropTarget_dec, _shape_dec, _collisionPriority_dec, _collisionDetector_dec, _type_dec2, _accept_dec, _c2$1, _init5$1, _accept, _type2, _collisionDetector, _collisionPriority, _shape;
|
|
1963
|
-
var Droppable$1 = class extends (_c2$1 = Entity, _accept_dec = [reactive], _type_dec2 = [reactive], _collisionDetector_dec = [reactive], _collisionPriority_dec = [reactive], _shape_dec = [reactive], _isDropTarget_dec = [derived], _c2$1) {
|
|
1964
|
-
constructor(_a, manager) {
|
|
1965
|
-
var _b = _a, { accept, collisionDetector, collisionPriority, type } = _b, input = __objRest$3(_b, [
|
|
1966
|
-
"accept",
|
|
1967
|
-
"collisionDetector",
|
|
1968
|
-
"collisionPriority",
|
|
1969
|
-
"type"
|
|
1970
|
-
]);
|
|
1971
|
-
super(input, manager);
|
|
1972
|
-
__runInitializers$3(_init5$1, 5, this);
|
|
1973
|
-
__privateAdd$4(this, _accept, __runInitializers$3(_init5$1, 8, this)), __runInitializers$3(_init5$1, 11, this);
|
|
1974
|
-
__privateAdd$4(this, _type2, __runInitializers$3(_init5$1, 12, this)), __runInitializers$3(_init5$1, 15, this);
|
|
1975
|
-
__privateAdd$4(this, _collisionDetector, __runInitializers$3(_init5$1, 16, this)), __runInitializers$3(_init5$1, 19, this);
|
|
1976
|
-
__privateAdd$4(this, _collisionPriority, __runInitializers$3(_init5$1, 20, this)), __runInitializers$3(_init5$1, 23, this);
|
|
1977
|
-
__privateAdd$4(this, _shape, __runInitializers$3(_init5$1, 24, this)), __runInitializers$3(_init5$1, 27, this);
|
|
1978
|
-
this.accept = accept;
|
|
1979
|
-
this.collisionDetector = collisionDetector;
|
|
1980
|
-
this.collisionPriority = collisionPriority;
|
|
1981
|
-
this.type = type;
|
|
2017
|
+
* @param args.coordinates - The initial coordinates of the drag
|
|
2018
|
+
* @returns true if the drag operation started successfully
|
|
2019
|
+
* @throws {Error} If there is no drag source or another operation is active
|
|
2020
|
+
*/
|
|
2021
|
+
start(args) {
|
|
2022
|
+
return o(() => {
|
|
2023
|
+
const { dragOperation } = this.manager;
|
|
2024
|
+
if (args.source != null) this.setDragSource(args.source);
|
|
2025
|
+
if (!dragOperation.source) throw new Error("Cannot start a drag operation without a drag source");
|
|
2026
|
+
if (!dragOperation.status.idle) throw new Error("Cannot start a drag operation while another is active");
|
|
2027
|
+
const controller = new AbortController();
|
|
2028
|
+
const { event: nativeEvent, coordinates } = args;
|
|
2029
|
+
n(() => {
|
|
2030
|
+
dragOperation.status.set("initialization-pending");
|
|
2031
|
+
dragOperation.shape = null;
|
|
2032
|
+
dragOperation.canceled = false;
|
|
2033
|
+
dragOperation.activatorEvent = nativeEvent != null ? nativeEvent : null;
|
|
2034
|
+
dragOperation.position.reset(coordinates);
|
|
2035
|
+
});
|
|
2036
|
+
const beforeStartEvent = defaultPreventable({ operation: dragOperation.snapshot() });
|
|
2037
|
+
this.manager.monitor.dispatch("beforedragstart", beforeStartEvent);
|
|
2038
|
+
if (beforeStartEvent.defaultPrevented) {
|
|
2039
|
+
dragOperation.reset();
|
|
2040
|
+
controller.abort();
|
|
2041
|
+
return controller;
|
|
2042
|
+
}
|
|
2043
|
+
dragOperation.status.set("initializing");
|
|
2044
|
+
dragOperation.controller = controller;
|
|
2045
|
+
this.manager.renderer.rendering.then(() => {
|
|
2046
|
+
if (controller.signal.aborted) return;
|
|
2047
|
+
const { status } = dragOperation;
|
|
2048
|
+
if (status.current !== "initializing") return;
|
|
2049
|
+
n(() => {
|
|
2050
|
+
dragOperation.status.set("dragging");
|
|
2051
|
+
this.manager.monitor.dispatch("dragstart", {
|
|
2052
|
+
nativeEvent,
|
|
2053
|
+
operation: dragOperation.snapshot(),
|
|
2054
|
+
cancelable: false
|
|
2055
|
+
});
|
|
2056
|
+
});
|
|
2057
|
+
});
|
|
2058
|
+
return controller;
|
|
2059
|
+
});
|
|
1982
2060
|
}
|
|
1983
2061
|
/**
|
|
1984
|
-
*
|
|
2062
|
+
* Moves the dragged entity to a new position.
|
|
1985
2063
|
*
|
|
1986
|
-
* @param
|
|
1987
|
-
* @
|
|
2064
|
+
* @param args - Configuration for the move operation
|
|
2065
|
+
* @param args.by - Relative coordinates to move by
|
|
2066
|
+
* @param args.to - Absolute coordinates to move to
|
|
2067
|
+
* @param args.event - The event that triggered the move
|
|
2068
|
+
* @param args.cancelable - Whether the move can be canceled
|
|
2069
|
+
* @param args.propagate - Whether to dispatch dragmove events
|
|
1988
2070
|
*/
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2071
|
+
move(args) {
|
|
2072
|
+
return o(() => {
|
|
2073
|
+
var _a, _b;
|
|
2074
|
+
const { dragOperation } = this.manager;
|
|
2075
|
+
const { status, controller } = dragOperation;
|
|
2076
|
+
if (!status.dragging || !controller || controller.signal.aborted) return;
|
|
2077
|
+
const event = defaultPreventable({
|
|
2078
|
+
nativeEvent: args.event,
|
|
2079
|
+
operation: dragOperation.snapshot(),
|
|
2080
|
+
by: args.by,
|
|
2081
|
+
to: args.to
|
|
2082
|
+
}, (_a = args.cancelable) != null ? _a : true);
|
|
2083
|
+
if ((_b = args.propagate) != null ? _b : true) this.manager.monitor.dispatch("dragmove", event);
|
|
2084
|
+
queueMicrotask(() => {
|
|
2085
|
+
var _a2, _b2, _c3, _d, _e;
|
|
2086
|
+
if (event.defaultPrevented) return;
|
|
2087
|
+
const coordinates = (_e = args.to) != null ? _e : {
|
|
2088
|
+
x: dragOperation.position.current.x + ((_b2 = (_a2 = args.by) == null ? void 0 : _a2.x) != null ? _b2 : 0),
|
|
2089
|
+
y: dragOperation.position.current.y + ((_d = (_c3 = args.by) == null ? void 0 : _c3.y) != null ? _d : 0)
|
|
2090
|
+
};
|
|
2091
|
+
dragOperation.position.current = coordinates;
|
|
2092
|
+
});
|
|
2093
|
+
});
|
|
1996
2094
|
}
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2095
|
+
/**
|
|
2096
|
+
* Stops the current drag operation.
|
|
2097
|
+
*
|
|
2098
|
+
* @param args - Configuration for stopping the operation
|
|
2099
|
+
* @param args.event - The event that triggered the stop
|
|
2100
|
+
* @param args.canceled - Whether the operation was canceled
|
|
2101
|
+
* @remarks
|
|
2102
|
+
* This method:
|
|
2103
|
+
* - Dispatches a dragend event
|
|
2104
|
+
* - Allows suspension of the operation
|
|
2105
|
+
* - Handles cleanup of the operation state
|
|
2106
|
+
*/
|
|
2107
|
+
stop(args = {}) {
|
|
2108
|
+
return o(() => {
|
|
2109
|
+
var _a, _b;
|
|
2110
|
+
const { dragOperation } = this.manager;
|
|
2111
|
+
const { controller } = dragOperation;
|
|
2112
|
+
if (!controller || controller.signal.aborted) return;
|
|
2113
|
+
let promise;
|
|
2114
|
+
const suspend = () => {
|
|
2115
|
+
const output = {
|
|
2116
|
+
resume: () => {},
|
|
2117
|
+
abort: () => {}
|
|
2118
|
+
};
|
|
2119
|
+
promise = new Promise((resolve, reject) => {
|
|
2120
|
+
output.resume = resolve;
|
|
2121
|
+
output.abort = reject;
|
|
2122
|
+
});
|
|
2123
|
+
return output;
|
|
2124
|
+
};
|
|
2125
|
+
controller.abort();
|
|
2126
|
+
const end = () => {
|
|
2127
|
+
this.manager.renderer.rendering.then(() => {
|
|
2128
|
+
dragOperation.status.set("dropped");
|
|
2129
|
+
const dropping = o(() => {
|
|
2130
|
+
var _a2;
|
|
2131
|
+
return ((_a2 = dragOperation.source) == null ? void 0 : _a2.status) === "dropping";
|
|
2132
|
+
});
|
|
2133
|
+
const cleanup = () => {
|
|
2134
|
+
if (dragOperation.controller === controller) dragOperation.controller = void 0;
|
|
2135
|
+
dragOperation.reset();
|
|
2136
|
+
};
|
|
2137
|
+
if (dropping) {
|
|
2138
|
+
const { source } = dragOperation;
|
|
2139
|
+
const dispose = j(() => {
|
|
2140
|
+
if ((source == null ? void 0 : source.status) === "idle") {
|
|
2141
|
+
dispose();
|
|
2142
|
+
cleanup();
|
|
2143
|
+
}
|
|
2144
|
+
});
|
|
2145
|
+
} else this.manager.renderer.rendering.then(cleanup);
|
|
2146
|
+
});
|
|
2147
|
+
};
|
|
2148
|
+
dragOperation.canceled = (_a = args.canceled) != null ? _a : false;
|
|
2149
|
+
this.manager.monitor.dispatch("dragend", {
|
|
2150
|
+
nativeEvent: args.event,
|
|
2151
|
+
operation: dragOperation.snapshot(),
|
|
2152
|
+
canceled: (_b = args.canceled) != null ? _b : false,
|
|
2153
|
+
suspend
|
|
2154
|
+
});
|
|
2155
|
+
if (promise) promise.then(end).catch(() => dragOperation.reset());
|
|
2156
|
+
else end();
|
|
2157
|
+
});
|
|
2000
2158
|
}
|
|
2001
2159
|
};
|
|
2002
|
-
_init5$1 = __decoratorStart$3(_c2$1);
|
|
2003
|
-
_accept = new WeakMap();
|
|
2004
|
-
_type2 = new WeakMap();
|
|
2005
|
-
_collisionDetector = new WeakMap();
|
|
2006
|
-
_collisionPriority = new WeakMap();
|
|
2007
|
-
_shape = new WeakMap();
|
|
2008
|
-
__decorateElement$3(_init5$1, 4, "accept", _accept_dec, Droppable$1, _accept);
|
|
2009
|
-
__decorateElement$3(_init5$1, 4, "type", _type_dec2, Droppable$1, _type2);
|
|
2010
|
-
__decorateElement$3(_init5$1, 4, "collisionDetector", _collisionDetector_dec, Droppable$1, _collisionDetector);
|
|
2011
|
-
__decorateElement$3(_init5$1, 4, "collisionPriority", _collisionPriority_dec, Droppable$1, _collisionPriority);
|
|
2012
|
-
__decorateElement$3(_init5$1, 4, "shape", _shape_dec, Droppable$1, _shape);
|
|
2013
|
-
__decorateElement$3(_init5$1, 2, "isDropTarget", _isDropTarget_dec, Droppable$1);
|
|
2014
|
-
__decoratorMetadata$3(_init5$1, Droppable$1);
|
|
2015
2160
|
var Sensor = class extends Plugin {
|
|
2016
2161
|
/**
|
|
2017
2162
|
* Creates a new sensor instance.
|
|
@@ -2145,7 +2290,25 @@ var DragDropRegistry = class {
|
|
|
2145
2290
|
this.modifiers.destroy();
|
|
2146
2291
|
}
|
|
2147
2292
|
};
|
|
2148
|
-
var _transform_dec
|
|
2293
|
+
var _transform_dec;
|
|
2294
|
+
var _target_dec;
|
|
2295
|
+
var _source_dec;
|
|
2296
|
+
var _modifiers_dec2;
|
|
2297
|
+
var _targetIdentifier_dec;
|
|
2298
|
+
var _sourceIdentifier_dec;
|
|
2299
|
+
var _activatorEvent_dec;
|
|
2300
|
+
var _canceled_dec;
|
|
2301
|
+
var _shape_dec2 = [derived];
|
|
2302
|
+
var _manager2;
|
|
2303
|
+
var _previousSource;
|
|
2304
|
+
var _shape2;
|
|
2305
|
+
var _init6$1;
|
|
2306
|
+
var _canceled;
|
|
2307
|
+
var _activatorEvent;
|
|
2308
|
+
var _sourceIdentifier;
|
|
2309
|
+
var _targetIdentifier;
|
|
2310
|
+
var _modifiers2;
|
|
2311
|
+
var _transform;
|
|
2149
2312
|
_canceled_dec = [reactive], _activatorEvent_dec = [reactive], _sourceIdentifier_dec = [reactive], _targetIdentifier_dec = [reactive], _modifiers_dec2 = [reactive], _source_dec = [derived], _target_dec = [derived], _transform_dec = [derived];
|
|
2150
2313
|
var DragOperation = class {
|
|
2151
2314
|
/**
|
|
@@ -2489,13 +2652,14 @@ function isKeyframeEffect(effect) {
|
|
|
2489
2652
|
}
|
|
2490
2653
|
function getFinalKeyframe(element, match) {
|
|
2491
2654
|
const animations2 = element.getAnimations();
|
|
2492
|
-
|
|
2655
|
+
let result = null;
|
|
2656
|
+
for (const animation of animations2) {
|
|
2493
2657
|
if (animation.playState !== "running") continue;
|
|
2494
2658
|
const { effect } = animation;
|
|
2495
2659
|
const matchedKeyframes = (isKeyframeEffect(effect) ? effect.getKeyframes() : []).filter(match);
|
|
2496
|
-
if (matchedKeyframes.length > 0)
|
|
2660
|
+
if (matchedKeyframes.length > 0) result = [matchedKeyframes[matchedKeyframes.length - 1], animation];
|
|
2497
2661
|
}
|
|
2498
|
-
return
|
|
2662
|
+
return result;
|
|
2499
2663
|
}
|
|
2500
2664
|
function getBoundingRectangle(element) {
|
|
2501
2665
|
const { width, height, top, left, bottom, right } = element.getBoundingClientRect();
|
|
@@ -2702,15 +2866,15 @@ function isIFrameElement(element) {
|
|
|
2702
2866
|
return (element == null ? void 0 : element.tagName) === "IFRAME";
|
|
2703
2867
|
}
|
|
2704
2868
|
var ProxiedElements = new WeakMap();
|
|
2705
|
-
function
|
|
2706
|
-
return
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2869
|
+
function getInteractiveElement(element) {
|
|
2870
|
+
return element.closest(`
|
|
2871
|
+
input:not([disabled]),
|
|
2872
|
+
select:not([disabled]),
|
|
2873
|
+
textarea:not([disabled]),
|
|
2874
|
+
button:not([disabled]),
|
|
2875
|
+
a[href],
|
|
2876
|
+
[contenteditable]:not([contenteditable="false"])
|
|
2877
|
+
`);
|
|
2714
2878
|
}
|
|
2715
2879
|
var Listeners = class {
|
|
2716
2880
|
constructor() {
|
|
@@ -2734,8 +2898,13 @@ var Listeners = class {
|
|
|
2734
2898
|
this.entries.add(entry);
|
|
2735
2899
|
entries.push(entry);
|
|
2736
2900
|
}
|
|
2901
|
+
const allEntries = this.entries;
|
|
2737
2902
|
return function cleanup() {
|
|
2738
|
-
for (const
|
|
2903
|
+
for (const entry of entries) {
|
|
2904
|
+
const [target2, { type, listener, options }] = entry;
|
|
2905
|
+
target2.removeEventListener(type, listener, options);
|
|
2906
|
+
allEntries.delete(entry);
|
|
2907
|
+
}
|
|
2739
2908
|
};
|
|
2740
2909
|
}
|
|
2741
2910
|
};
|
|
@@ -2804,7 +2973,17 @@ var ResizeNotifier = class extends Observer {
|
|
|
2804
2973
|
_initialized = new WeakMap();
|
|
2805
2974
|
var threshold = Array.from({ length: 100 }, (_, index) => index / 100);
|
|
2806
2975
|
var THROTTLE_INTERVAL = 75;
|
|
2807
|
-
var _visible
|
|
2976
|
+
var _visible;
|
|
2977
|
+
var _previousBoundingClientRect;
|
|
2978
|
+
var _resizeObserver;
|
|
2979
|
+
var _positionObserver;
|
|
2980
|
+
var _visibilityObserver;
|
|
2981
|
+
var _debug;
|
|
2982
|
+
var _disconnected;
|
|
2983
|
+
var _observePosition;
|
|
2984
|
+
var _PositionObserver_instances;
|
|
2985
|
+
var notify_fn;
|
|
2986
|
+
var updateDebug_fn;
|
|
2808
2987
|
var PositionObserver = class {
|
|
2809
2988
|
constructor(element, callback, options = {
|
|
2810
2989
|
debug: false,
|
|
@@ -2981,7 +3160,10 @@ function addScrollListener(element, callback) {
|
|
|
2981
3160
|
}
|
|
2982
3161
|
};
|
|
2983
3162
|
}
|
|
2984
|
-
var _elementObserver
|
|
3163
|
+
var _elementObserver;
|
|
3164
|
+
var _disconnected2;
|
|
3165
|
+
var _frames;
|
|
3166
|
+
var _handleScroll;
|
|
2985
3167
|
var FrameObserver = class {
|
|
2986
3168
|
constructor(element, callback, options) {
|
|
2987
3169
|
this.callback = callback;
|
|
@@ -3168,10 +3350,6 @@ function getScrollableAncestors(element, options = defaultOptions) {
|
|
|
3168
3350
|
if (!element) return scrollParents;
|
|
3169
3351
|
return findScrollableAncestors(element);
|
|
3170
3352
|
}
|
|
3171
|
-
function getFirstScrollableAncestor(node) {
|
|
3172
|
-
const [firstScrollableAncestor] = getScrollableAncestors(node, { limit: 1 });
|
|
3173
|
-
return firstScrollableAncestor != null ? firstScrollableAncestor : null;
|
|
3174
|
-
}
|
|
3175
3353
|
function getFrameTransform(el, boundary = window.frameElement) {
|
|
3176
3354
|
const transform = {
|
|
3177
3355
|
x: 0,
|
|
@@ -3207,7 +3385,7 @@ function getScale(element, boundingRectangle = getBoundingRectangle(element)) {
|
|
|
3207
3385
|
};
|
|
3208
3386
|
}
|
|
3209
3387
|
function parseScale(scale) {
|
|
3210
|
-
if (scale === "none") return null;
|
|
3388
|
+
if (!scale || scale === "none") return null;
|
|
3211
3389
|
const values = scale.split(" ");
|
|
3212
3390
|
const x = parseFloat(values[0]);
|
|
3213
3391
|
const y = parseFloat(values[1]);
|
|
@@ -3218,7 +3396,7 @@ function parseScale(scale) {
|
|
|
3218
3396
|
};
|
|
3219
3397
|
}
|
|
3220
3398
|
function parseTranslate(translate) {
|
|
3221
|
-
if (translate === "none") return null;
|
|
3399
|
+
if (!translate || translate === "none") return null;
|
|
3222
3400
|
const [x, y, z = "0"] = translate.split(" ");
|
|
3223
3401
|
const output = {
|
|
3224
3402
|
x: parseFloat(x),
|
|
@@ -3315,17 +3493,17 @@ function detectScrollIntent(scrollableElement, coordinates, intent, acceleration
|
|
|
3315
3493
|
height: scrollContainerRect.height * thresholdPercentage.y,
|
|
3316
3494
|
width: scrollContainerRect.width * thresholdPercentage.x
|
|
3317
3495
|
};
|
|
3318
|
-
if ((!isTop || isYAxisInverted && !isBottom) && y <= scrollContainerRect.top + threshold2.height && (intent == null ? void 0 : intent.y) !== 1 && x >= scrollContainerRect.left - tolerance.x && x <= scrollContainerRect.right + tolerance.x) {
|
|
3496
|
+
if (threshold2.height > 0 && (!isTop || isYAxisInverted && !isBottom) && y <= scrollContainerRect.top + threshold2.height && (intent == null ? void 0 : intent.y) !== 1 && x >= scrollContainerRect.left - tolerance.x && x <= scrollContainerRect.right + tolerance.x) {
|
|
3319
3497
|
direction.y = isYAxisInverted ? 1 : -1;
|
|
3320
3498
|
speed.y = acceleration * Math.abs((scrollContainerRect.top + threshold2.height - y) / threshold2.height);
|
|
3321
|
-
} else if ((!isBottom || isYAxisInverted && !isTop) && y >= scrollContainerRect.bottom - threshold2.height && (intent == null ? void 0 : intent.y) !== -1 && x >= scrollContainerRect.left - tolerance.x && x <= scrollContainerRect.right + tolerance.x) {
|
|
3499
|
+
} else if (threshold2.height > 0 && (!isBottom || isYAxisInverted && !isTop) && y >= scrollContainerRect.bottom - threshold2.height && (intent == null ? void 0 : intent.y) !== -1 && x >= scrollContainerRect.left - tolerance.x && x <= scrollContainerRect.right + tolerance.x) {
|
|
3322
3500
|
direction.y = isYAxisInverted ? -1 : 1;
|
|
3323
3501
|
speed.y = acceleration * Math.abs((scrollContainerRect.bottom - threshold2.height - y) / threshold2.height);
|
|
3324
3502
|
}
|
|
3325
|
-
if ((!isRight || isXAxisInverted && !isLeft) && x >= scrollContainerRect.right - threshold2.width && (intent == null ? void 0 : intent.x) !== -1 && y >= scrollContainerRect.top - tolerance.y && y <= scrollContainerRect.bottom + tolerance.y) {
|
|
3503
|
+
if (threshold2.width > 0 && (!isRight || isXAxisInverted && !isLeft) && x >= scrollContainerRect.right - threshold2.width && (intent == null ? void 0 : intent.x) !== -1 && y >= scrollContainerRect.top - tolerance.y && y <= scrollContainerRect.bottom + tolerance.y) {
|
|
3326
3504
|
direction.x = isXAxisInverted ? -1 : 1;
|
|
3327
3505
|
speed.x = acceleration * Math.abs((scrollContainerRect.right - threshold2.width - x) / threshold2.width);
|
|
3328
|
-
} else if ((!isLeft || isXAxisInverted && !isRight) && x <= scrollContainerRect.left + threshold2.width && (intent == null ? void 0 : intent.x) !== 1 && y >= scrollContainerRect.top - tolerance.y && y <= scrollContainerRect.bottom + tolerance.y) {
|
|
3506
|
+
} else if (threshold2.width > 0 && (!isLeft || isXAxisInverted && !isRight) && x <= scrollContainerRect.left + threshold2.width && (intent == null ? void 0 : intent.x) !== 1 && y >= scrollContainerRect.top - tolerance.y && y <= scrollContainerRect.bottom + tolerance.y) {
|
|
3329
3507
|
direction.x = isXAxisInverted ? 1 : -1;
|
|
3330
3508
|
speed.x = acceleration * Math.abs((scrollContainerRect.left + threshold2.width - x) / threshold2.width);
|
|
3331
3509
|
}
|
|
@@ -3334,21 +3512,59 @@ function detectScrollIntent(scrollableElement, coordinates, intent, acceleration
|
|
|
3334
3512
|
speed
|
|
3335
3513
|
};
|
|
3336
3514
|
}
|
|
3337
|
-
function
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3515
|
+
function scrollIntoViewIfNeeded(el, { block = "nearest", inline = "nearest" } = {}) {
|
|
3516
|
+
if (!isHTMLElement(el)) return;
|
|
3517
|
+
const scrollableAncestors = getScrollableAncestors(el);
|
|
3518
|
+
const processedAncestors = [];
|
|
3519
|
+
for (const ancestor of scrollableAncestors) {
|
|
3520
|
+
if (!isHTMLElement(ancestor)) continue;
|
|
3521
|
+
const { top, left } = getOffsetRelativeTo(el, ancestor);
|
|
3522
|
+
let adjustedTop = top;
|
|
3523
|
+
let adjustedLeft = left;
|
|
3524
|
+
for (const inner of processedAncestors) {
|
|
3525
|
+
adjustedTop -= inner.scrollTop;
|
|
3526
|
+
adjustedLeft -= inner.scrollLeft;
|
|
3527
|
+
}
|
|
3528
|
+
if (block !== "none") {
|
|
3529
|
+
const overTop = adjustedTop < ancestor.scrollTop;
|
|
3530
|
+
if (overTop !== adjustedTop + el.offsetHeight > ancestor.scrollTop + ancestor.clientHeight) if (block === "center") ancestor.scrollTop = adjustedTop - ancestor.clientHeight / 2 + el.offsetHeight / 2;
|
|
3531
|
+
else if (overTop) ancestor.scrollTop = adjustedTop;
|
|
3532
|
+
else ancestor.scrollTop = adjustedTop + el.offsetHeight - ancestor.clientHeight;
|
|
3533
|
+
}
|
|
3534
|
+
if (inline !== "none") {
|
|
3535
|
+
const overLeft = adjustedLeft < ancestor.scrollLeft;
|
|
3536
|
+
if (overLeft !== adjustedLeft + el.offsetWidth > ancestor.scrollLeft + ancestor.clientWidth) if (inline === "center") ancestor.scrollLeft = adjustedLeft - ancestor.clientWidth / 2 + el.offsetWidth / 2;
|
|
3537
|
+
else if (overLeft) ancestor.scrollLeft = adjustedLeft;
|
|
3538
|
+
else ancestor.scrollLeft = adjustedLeft + el.offsetWidth - ancestor.clientWidth;
|
|
3539
|
+
}
|
|
3540
|
+
processedAncestors.push(ancestor);
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
function getDocumentOffset(element) {
|
|
3544
|
+
let top = 0;
|
|
3545
|
+
let left = 0;
|
|
3546
|
+
let current = element;
|
|
3547
|
+
while (current) {
|
|
3548
|
+
top += current.offsetTop;
|
|
3549
|
+
left += current.offsetLeft;
|
|
3550
|
+
const offsetParent = current.offsetParent;
|
|
3551
|
+
if (!isHTMLElement(offsetParent)) break;
|
|
3552
|
+
top += offsetParent.clientTop;
|
|
3553
|
+
left += offsetParent.clientLeft;
|
|
3554
|
+
current = offsetParent;
|
|
3344
3555
|
}
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3556
|
+
return {
|
|
3557
|
+
top,
|
|
3558
|
+
left
|
|
3559
|
+
};
|
|
3560
|
+
}
|
|
3561
|
+
function getOffsetRelativeTo(element, ancestor) {
|
|
3562
|
+
const elOffset = getDocumentOffset(element);
|
|
3563
|
+
const ancestorOffset = getDocumentOffset(ancestor);
|
|
3564
|
+
return {
|
|
3565
|
+
top: elOffset.top - ancestorOffset.top - ancestor.clientTop,
|
|
3566
|
+
left: elOffset.left - ancestorOffset.left - ancestor.clientLeft
|
|
3567
|
+
};
|
|
3352
3568
|
}
|
|
3353
3569
|
function applyTransform(rect, parsedTransform, transformOrigin) {
|
|
3354
3570
|
const { scaleX, scaleY, x: translateX, y: translateY } = parsedTransform;
|
|
@@ -3504,32 +3720,37 @@ var DOMRectangle = class extends Rectangle {
|
|
|
3504
3720
|
}
|
|
3505
3721
|
};
|
|
3506
3722
|
function getProjectedTransform(element, computedStyles) {
|
|
3507
|
-
var _a;
|
|
3508
3723
|
const animations2 = element.getAnimations();
|
|
3509
|
-
let projectedTransform = null;
|
|
3510
3724
|
if (!animations2.length) return null;
|
|
3725
|
+
let latestTransform;
|
|
3726
|
+
let latestTranslate;
|
|
3727
|
+
let latestScale;
|
|
3728
|
+
let hasAnimatedProperty = false;
|
|
3511
3729
|
for (const animation of animations2) {
|
|
3512
3730
|
if (animation.playState !== "running") continue;
|
|
3513
3731
|
const keyframes = isKeyframeEffect(animation.effect) ? animation.effect.getKeyframes() : [];
|
|
3514
3732
|
const keyframe = keyframes[keyframes.length - 1];
|
|
3515
3733
|
if (!keyframe) continue;
|
|
3516
3734
|
const { transform, translate, scale } = keyframe;
|
|
3517
|
-
if (transform
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
scaleY: projectedTransform.scaleY * parsedTransform.scaleY
|
|
3529
|
-
} : parsedTransform;
|
|
3735
|
+
if (typeof transform === "string" && transform) {
|
|
3736
|
+
latestTransform = transform;
|
|
3737
|
+
hasAnimatedProperty = true;
|
|
3738
|
+
}
|
|
3739
|
+
if (typeof translate === "string" && translate) {
|
|
3740
|
+
latestTranslate = translate;
|
|
3741
|
+
hasAnimatedProperty = true;
|
|
3742
|
+
}
|
|
3743
|
+
if (typeof scale === "string" && scale) {
|
|
3744
|
+
latestScale = scale;
|
|
3745
|
+
hasAnimatedProperty = true;
|
|
3530
3746
|
}
|
|
3531
3747
|
}
|
|
3532
|
-
return
|
|
3748
|
+
if (!hasAnimatedProperty) return null;
|
|
3749
|
+
return parseTransform({
|
|
3750
|
+
transform: latestTransform != null ? latestTransform : computedStyles.transform,
|
|
3751
|
+
translate: latestTranslate != null ? latestTranslate : computedStyles.translate,
|
|
3752
|
+
scale: latestScale != null ? latestScale : computedStyles.scale
|
|
3753
|
+
});
|
|
3533
3754
|
}
|
|
3534
3755
|
function supportsStyle(element) {
|
|
3535
3756
|
return "style" in element && typeof element.style === "object" && element.style !== null && "setProperty" in element.style && "removeProperty" in element.style && typeof element.style.setProperty === "function" && typeof element.style.removeProperty === "function";
|
|
@@ -3949,43 +4170,32 @@ function debounce(fn, wait) {
|
|
|
3949
4170
|
debounced.cancel = () => clearTimeout(timeout);
|
|
3950
4171
|
return debounced;
|
|
3951
4172
|
}
|
|
3952
|
-
var
|
|
4173
|
+
var styleRegistry = new Map();
|
|
4174
|
+
var _roots_dec;
|
|
4175
|
+
var _targetRoot_dec;
|
|
4176
|
+
var _sourceRoot_dec;
|
|
4177
|
+
var _additionalRoots_dec;
|
|
4178
|
+
var _a$1;
|
|
4179
|
+
var _registeredRules;
|
|
4180
|
+
var _init$2;
|
|
4181
|
+
var _additionalRoots;
|
|
4182
|
+
var _StyleInjector_instances;
|
|
4183
|
+
var syncStyles_fn;
|
|
4184
|
+
var inject_fn;
|
|
4185
|
+
var injectStyleElement_fn;
|
|
4186
|
+
var injectAdoptedSheet_fn;
|
|
4187
|
+
var _StyleInjector = class _StyleInjector extends (_a$1 = CorePlugin, _additionalRoots_dec = [reactive], _sourceRoot_dec = [derived], _targetRoot_dec = [derived], _roots_dec = [derived], _a$1) {
|
|
3953
4188
|
constructor(manager, options) {
|
|
3954
4189
|
super(manager, options);
|
|
3955
|
-
this.manager = manager;
|
|
3956
|
-
const doc = computed(() => {
|
|
3957
|
-
var _a5;
|
|
3958
|
-
return getDocument((_a5 = this.manager.dragOperation.source) == null ? void 0 : _a5.element);
|
|
3959
|
-
});
|
|
3960
|
-
this.destroy = j(() => {
|
|
3961
|
-
var _a5;
|
|
3962
|
-
const { dragOperation } = this.manager;
|
|
3963
|
-
const { cursor = "grabbing", nonce } = (_a5 = this.options) != null ? _a5 : {};
|
|
3964
|
-
if (dragOperation.status.initialized) {
|
|
3965
|
-
const document2 = doc.value;
|
|
3966
|
-
const style = document2.createElement("style");
|
|
3967
|
-
if (nonce) style.setAttribute("nonce", nonce);
|
|
3968
|
-
style.textContent = `* { cursor: ${cursor} !important; }`;
|
|
3969
|
-
document2.head.appendChild(style);
|
|
3970
|
-
return () => style.remove();
|
|
3971
|
-
}
|
|
3972
|
-
});
|
|
3973
|
-
}
|
|
3974
|
-
};
|
|
3975
|
-
var styleRegistry = new Map();
|
|
3976
|
-
var _roots_dec, _targetRoot_dec, _sourceRoot_dec, _additionalRoots_dec, _a$1, _registeredRules, _init$2, _additionalRoots, _StyleSheetManager_instances, syncStyles_fn, inject_fn, injectStyleElement_fn, injectAdoptedSheet_fn;
|
|
3977
|
-
var StyleSheetManager = class extends (_a$1 = CorePlugin, _additionalRoots_dec = [reactive], _sourceRoot_dec = [derived], _targetRoot_dec = [derived], _roots_dec = [derived], _a$1) {
|
|
3978
|
-
constructor(manager) {
|
|
3979
|
-
super(manager);
|
|
3980
4190
|
__runInitializers$2(_init$2, 5, this);
|
|
3981
|
-
__privateAdd$2(this,
|
|
4191
|
+
__privateAdd$2(this, _StyleInjector_instances);
|
|
3982
4192
|
__privateAdd$2(this, _registeredRules, new Set());
|
|
3983
4193
|
__privateAdd$2(this, _additionalRoots, __runInitializers$2(_init$2, 8, this, new Set())), __runInitializers$2(_init$2, 11, this);
|
|
3984
|
-
this.registerEffect(__privateMethod(this,
|
|
4194
|
+
this.registerEffect(__privateMethod(this, _StyleInjector_instances, syncStyles_fn));
|
|
3985
4195
|
}
|
|
3986
4196
|
/**
|
|
3987
4197
|
* Registers CSS rules to be injected into the active drag operation's
|
|
3988
|
-
* document and shadow roots. The
|
|
4198
|
+
* document and shadow roots. The StyleInjector handles tracking
|
|
3989
4199
|
* which roots need the styles and cleaning up when they're no longer needed.
|
|
3990
4200
|
*
|
|
3991
4201
|
* Returns a cleanup function that unregisters the rules.
|
|
@@ -4036,11 +4246,11 @@ var StyleSheetManager = class extends (_a$1 = CorePlugin, _additionalRoots_dec =
|
|
|
4036
4246
|
_init$2 = __decoratorStart$2(_a$1);
|
|
4037
4247
|
_registeredRules = new WeakMap();
|
|
4038
4248
|
_additionalRoots = new WeakMap();
|
|
4039
|
-
|
|
4249
|
+
_StyleInjector_instances = new WeakSet();
|
|
4040
4250
|
syncStyles_fn = function() {
|
|
4041
4251
|
const { roots } = this;
|
|
4042
4252
|
const cleanups = [];
|
|
4043
|
-
for (const root of roots) for (const cssRules of __privateGet$2(this, _registeredRules)) cleanups.push(__privateMethod(this,
|
|
4253
|
+
for (const root of roots) for (const cssRules of __privateGet$2(this, _registeredRules)) cleanups.push(__privateMethod(this, _StyleInjector_instances, inject_fn).call(this, root, cssRules));
|
|
4044
4254
|
return () => {
|
|
4045
4255
|
for (const cleanup of cleanups) cleanup();
|
|
4046
4256
|
};
|
|
@@ -4053,7 +4263,7 @@ inject_fn = function(root, cssRules) {
|
|
|
4053
4263
|
}
|
|
4054
4264
|
let registration = rootStyles.get(cssRules);
|
|
4055
4265
|
if (!registration) {
|
|
4056
|
-
const created = isDocument(root) ? __privateMethod(this,
|
|
4266
|
+
const created = isDocument(root) ? __privateMethod(this, _StyleInjector_instances, injectStyleElement_fn).call(this, root, rootStyles, cssRules) : __privateMethod(this, _StyleInjector_instances, injectAdoptedSheet_fn).call(this, root, rootStyles, cssRules);
|
|
4057
4267
|
if (!created) return () => {};
|
|
4058
4268
|
registration = created;
|
|
4059
4269
|
rootStyles.set(cssRules, registration);
|
|
@@ -4073,7 +4283,10 @@ inject_fn = function(root, cssRules) {
|
|
|
4073
4283
|
* giving them the lowest cascade priority.
|
|
4074
4284
|
*/
|
|
4075
4285
|
injectStyleElement_fn = function(root, rootStyles, cssRules) {
|
|
4286
|
+
var _a5;
|
|
4076
4287
|
const style = root.createElement("style");
|
|
4288
|
+
const { nonce } = (_a5 = this.options) != null ? _a5 : {};
|
|
4289
|
+
if (nonce) style.setAttribute("nonce", nonce);
|
|
4077
4290
|
style.textContent = cssRules;
|
|
4078
4291
|
root.head.prepend(style);
|
|
4079
4292
|
const observer = new MutationObserver((entries) => {
|
|
@@ -4121,11 +4334,29 @@ injectAdoptedSheet_fn = function(root, rootStyles, cssRules) {
|
|
|
4121
4334
|
}
|
|
4122
4335
|
};
|
|
4123
4336
|
};
|
|
4124
|
-
__decorateElement$2(_init$2, 4, "additionalRoots", _additionalRoots_dec,
|
|
4125
|
-
__decorateElement$2(_init$2, 2, "sourceRoot", _sourceRoot_dec,
|
|
4126
|
-
__decorateElement$2(_init$2, 2, "targetRoot", _targetRoot_dec,
|
|
4127
|
-
__decorateElement$2(_init$2, 2, "roots", _roots_dec,
|
|
4128
|
-
__decoratorMetadata$2(_init$2,
|
|
4337
|
+
__decorateElement$2(_init$2, 4, "additionalRoots", _additionalRoots_dec, _StyleInjector, _additionalRoots);
|
|
4338
|
+
__decorateElement$2(_init$2, 2, "sourceRoot", _sourceRoot_dec, _StyleInjector);
|
|
4339
|
+
__decorateElement$2(_init$2, 2, "targetRoot", _targetRoot_dec, _StyleInjector);
|
|
4340
|
+
__decorateElement$2(_init$2, 2, "roots", _roots_dec, _StyleInjector);
|
|
4341
|
+
__decoratorMetadata$2(_init$2, _StyleInjector);
|
|
4342
|
+
_StyleInjector.configure = configurator(_StyleInjector);
|
|
4343
|
+
var StyleInjector = _StyleInjector;
|
|
4344
|
+
var Cursor = class extends Plugin {
|
|
4345
|
+
constructor(manager, options) {
|
|
4346
|
+
super(manager, options);
|
|
4347
|
+
this.manager = manager;
|
|
4348
|
+
const { cursor = "grabbing" } = options != null ? options : {};
|
|
4349
|
+
const styleInjector = manager.registry.plugins.get(StyleInjector);
|
|
4350
|
+
const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(`* { cursor: ${cursor} !important; }`);
|
|
4351
|
+
if (unregisterStyles) {
|
|
4352
|
+
const originalDestroy = this.destroy.bind(this);
|
|
4353
|
+
this.destroy = () => {
|
|
4354
|
+
unregisterStyles();
|
|
4355
|
+
originalDestroy();
|
|
4356
|
+
};
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
};
|
|
4129
4360
|
var ATTR_PREFIX = "data-dnd-";
|
|
4130
4361
|
var DROPPING_ATTRIBUTE = `${ATTR_PREFIX}dropping`;
|
|
4131
4362
|
var CSS_PREFIX = "--dnd-";
|
|
@@ -4154,6 +4385,7 @@ var CSS_RULES = `
|
|
|
4154
4385
|
max-width: var(${CSS_PREFIX}width, auto);
|
|
4155
4386
|
height: var(${CSS_PREFIX}height, auto);
|
|
4156
4387
|
max-height: var(${CSS_PREFIX}height, auto);
|
|
4388
|
+
transform: var(${CSS_PREFIX}transform, none) !important;
|
|
4157
4389
|
transition: var(${CSS_PREFIX}transition) !important;
|
|
4158
4390
|
}
|
|
4159
4391
|
|
|
@@ -4286,7 +4518,7 @@ function createElementMutationObserver(element, placeholder, clone) {
|
|
|
4286
4518
|
} else if (attributeValue !== null) placeholder.setAttribute(attributeName, attributeValue);
|
|
4287
4519
|
else placeholder.removeAttribute(attributeName);
|
|
4288
4520
|
}
|
|
4289
|
-
if (hasChildrenMutations && clone) placeholder.
|
|
4521
|
+
if (hasChildrenMutations && clone) placeholder.replaceChildren(...element.cloneNode(true).childNodes);
|
|
4290
4522
|
});
|
|
4291
4523
|
observer.observe(element, {
|
|
4292
4524
|
attributes: true,
|
|
@@ -4312,6 +4544,10 @@ function createDocumentMutationObserver(element, placeholder, feedbackElement) {
|
|
|
4312
4544
|
}
|
|
4313
4545
|
}
|
|
4314
4546
|
}
|
|
4547
|
+
if (element.isConnected && placeholder.isConnected && element.nextElementSibling !== placeholder) {
|
|
4548
|
+
element.insertAdjacentElement("afterend", placeholder);
|
|
4549
|
+
showPopover(feedbackElement);
|
|
4550
|
+
}
|
|
4315
4551
|
});
|
|
4316
4552
|
observer.observe(element.ownerDocument.body, {
|
|
4317
4553
|
childList: true,
|
|
@@ -4321,7 +4557,7 @@ function createDocumentMutationObserver(element, placeholder, feedbackElement) {
|
|
|
4321
4557
|
}
|
|
4322
4558
|
function createResizeObserver(ctx) {
|
|
4323
4559
|
return new ResizeObserver(() => {
|
|
4324
|
-
var _a5, _b2;
|
|
4560
|
+
var _a5, _b2, _c3;
|
|
4325
4561
|
const placeholderShape = new DOMRectangle(ctx.placeholder, {
|
|
4326
4562
|
frameTransform: ctx.frameTransform,
|
|
4327
4563
|
ignoreTransforms: true
|
|
@@ -4349,7 +4585,16 @@ function createResizeObserver(ctx) {
|
|
|
4349
4585
|
cell.style.width = `${placeholderCell.getBoundingClientRect().width}px`;
|
|
4350
4586
|
}
|
|
4351
4587
|
}
|
|
4352
|
-
|
|
4588
|
+
const translate = (_c3 = ctx.getTranslate()) != null ? _c3 : {
|
|
4589
|
+
x: 0,
|
|
4590
|
+
y: 0
|
|
4591
|
+
};
|
|
4592
|
+
const shapeLeft = ctx.left + dX + fixedOffset.x + translate.x;
|
|
4593
|
+
const shapeTop = ctx.top + dY + fixedOffset.y + translate.y;
|
|
4594
|
+
const shapeWidth = placeholderShape.width - ctx.widthOffset;
|
|
4595
|
+
const shapeHeight = placeholderShape.height - ctx.heightOffset;
|
|
4596
|
+
const ft = ctx.frameTransform;
|
|
4597
|
+
ctx.dragOperation.shape = new Rectangle(shapeLeft * ft.scaleX + ft.x, shapeTop * ft.scaleY + ft.y, shapeWidth * ft.scaleX, shapeHeight * ft.scaleY);
|
|
4353
4598
|
});
|
|
4354
4599
|
}
|
|
4355
4600
|
var DEFAULT_DURATION = 250;
|
|
@@ -4359,6 +4604,7 @@ function runDropAnimation(ctx) {
|
|
|
4359
4604
|
const { animation } = ctx;
|
|
4360
4605
|
if (typeof animation === "function") {
|
|
4361
4606
|
const result = animation({
|
|
4607
|
+
source: ctx.source,
|
|
4362
4608
|
element: ctx.element,
|
|
4363
4609
|
feedbackElement: ctx.feedbackElement,
|
|
4364
4610
|
placeholder: ctx.placeholder,
|
|
@@ -4410,7 +4656,13 @@ function runDropAnimation(ctx) {
|
|
|
4410
4656
|
requestAnimationFrame(ctx.restoreFocus);
|
|
4411
4657
|
});
|
|
4412
4658
|
}
|
|
4413
|
-
var _overlay_dec
|
|
4659
|
+
var _overlay_dec;
|
|
4660
|
+
var _a2;
|
|
4661
|
+
var _init2;
|
|
4662
|
+
var _overlay;
|
|
4663
|
+
var _Feedback_instances;
|
|
4664
|
+
var trackOverlayRoot_fn;
|
|
4665
|
+
var render_fn;
|
|
4414
4666
|
var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive], _a2) {
|
|
4415
4667
|
constructor(manager, options) {
|
|
4416
4668
|
super(manager, options);
|
|
@@ -4420,8 +4672,8 @@ var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive]
|
|
|
4420
4672
|
initial: {},
|
|
4421
4673
|
current: {}
|
|
4422
4674
|
};
|
|
4423
|
-
const
|
|
4424
|
-
const unregisterStyles =
|
|
4675
|
+
const styleInjector = manager.registry.plugins.get(StyleInjector);
|
|
4676
|
+
const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(CSS_RULES);
|
|
4425
4677
|
if (unregisterStyles) {
|
|
4426
4678
|
const originalDestroy = this.destroy.bind(this);
|
|
4427
4679
|
this.destroy = () => {
|
|
@@ -4429,22 +4681,22 @@ var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive]
|
|
|
4429
4681
|
originalDestroy();
|
|
4430
4682
|
};
|
|
4431
4683
|
}
|
|
4432
|
-
this.registerEffect(__privateMethod(this, _Feedback_instances, trackOverlayRoot_fn).bind(this,
|
|
4684
|
+
this.registerEffect(__privateMethod(this, _Feedback_instances, trackOverlayRoot_fn).bind(this, styleInjector));
|
|
4433
4685
|
this.registerEffect(__privateMethod(this, _Feedback_instances, render_fn));
|
|
4434
4686
|
}
|
|
4435
4687
|
};
|
|
4436
4688
|
_init2 = __decoratorStart$2(_a2);
|
|
4437
4689
|
_overlay = new WeakMap();
|
|
4438
4690
|
_Feedback_instances = new WeakSet();
|
|
4439
|
-
trackOverlayRoot_fn = function(
|
|
4691
|
+
trackOverlayRoot_fn = function(styleInjector) {
|
|
4440
4692
|
const { overlay } = this;
|
|
4441
|
-
if (!overlay || !
|
|
4693
|
+
if (!overlay || !styleInjector) return;
|
|
4442
4694
|
const root = getRoot(overlay);
|
|
4443
4695
|
if (!root) return;
|
|
4444
|
-
return
|
|
4696
|
+
return styleInjector.addRoot(root);
|
|
4445
4697
|
};
|
|
4446
4698
|
render_fn = function() {
|
|
4447
|
-
var _a5, _b2, _c3;
|
|
4699
|
+
var _a5, _b2, _c3, _d2, _e, _f, _g;
|
|
4448
4700
|
const { state, manager, options } = this;
|
|
4449
4701
|
const { dragOperation } = manager;
|
|
4450
4702
|
const { position, source, status } = dragOperation;
|
|
@@ -4454,10 +4706,13 @@ render_fn = function() {
|
|
|
4454
4706
|
return;
|
|
4455
4707
|
}
|
|
4456
4708
|
if (!source) return;
|
|
4457
|
-
const { element
|
|
4709
|
+
const { element } = source;
|
|
4710
|
+
const entityOptions = source.pluginConfig(_Feedback);
|
|
4711
|
+
const feedbackOption = (_b2 = (_a5 = entityOptions == null ? void 0 : entityOptions.feedback) != null ? _a5 : options == null ? void 0 : options.feedback) != null ? _b2 : "default";
|
|
4712
|
+
const feedback = typeof feedbackOption === "function" ? feedbackOption(source, manager) : feedbackOption;
|
|
4458
4713
|
if (!element || feedback === "none" || !status.initialized || status.initializing) return;
|
|
4459
4714
|
const { initial } = state;
|
|
4460
|
-
const feedbackElement = (
|
|
4715
|
+
const feedbackElement = (_c3 = this.overlay) != null ? _c3 : element;
|
|
4461
4716
|
const frameTransform = getFrameTransform(feedbackElement);
|
|
4462
4717
|
const elementFrameTransform = getFrameTransform(element);
|
|
4463
4718
|
const crossFrame = !isSameFrame(element, feedbackElement);
|
|
@@ -4475,22 +4730,34 @@ render_fn = function() {
|
|
|
4475
4730
|
height = height / scaleDelta.y;
|
|
4476
4731
|
}
|
|
4477
4732
|
const styles = new Styles(feedbackElement);
|
|
4478
|
-
const
|
|
4733
|
+
const elementStyles = getComputedStyles(element);
|
|
4734
|
+
const { transition, translate, boxSizing, paddingBlockStart, paddingBlockEnd, paddingInlineStart, paddingInlineEnd, borderInlineStartWidth, borderInlineEndWidth, borderBlockStartWidth, borderBlockEndWidth } = elementStyles;
|
|
4735
|
+
const feedbackTransition = transition.split(",").filter((t) => !/^\s*(transform|translate|scale)\b/.test(t)).join(",");
|
|
4736
|
+
const parsedTransform = parseTransform(elementStyles);
|
|
4737
|
+
const initialTransformStyle = elementStyles.transform;
|
|
4479
4738
|
const clone = feedback === "clone";
|
|
4480
4739
|
const contentBox = boxSizing === "content-box";
|
|
4481
4740
|
const widthOffset = contentBox ? parseInt(paddingInlineStart) + parseInt(paddingInlineEnd) + parseInt(borderInlineStartWidth) + parseInt(borderInlineEndWidth) : 0;
|
|
4482
4741
|
const heightOffset = contentBox ? parseInt(paddingBlockStart) + parseInt(paddingBlockEnd) + parseInt(borderBlockStartWidth) + parseInt(borderBlockEndWidth) : 0;
|
|
4483
4742
|
const placeholder = feedback !== "move" && !this.overlay ? createPlaceholder(source, clone ? "clone" : "hidden") : null;
|
|
4484
4743
|
const isKeyboardOperation = o(() => isKeyboardEvent(manager.dragOperation.activatorEvent));
|
|
4485
|
-
if (translate
|
|
4486
|
-
|
|
4487
|
-
|
|
4744
|
+
if (!initial.translate) {
|
|
4745
|
+
if (this.overlay && parsedTransform) initial.translate = {
|
|
4746
|
+
x: parsedTransform.x,
|
|
4747
|
+
y: parsedTransform.y
|
|
4748
|
+
};
|
|
4749
|
+
else if (translate !== "none") {
|
|
4750
|
+
const parsedTranslate = parseTranslate(translate);
|
|
4751
|
+
if (parsedTranslate) initial.translate = parsedTranslate;
|
|
4752
|
+
}
|
|
4488
4753
|
}
|
|
4489
4754
|
if (!initial.transformOrigin) {
|
|
4490
4755
|
const current = o(() => position.current);
|
|
4756
|
+
const visualLeft = left + ((_d2 = parsedTransform == null ? void 0 : parsedTransform.x) != null ? _d2 : 0);
|
|
4757
|
+
const visualTop = top + ((_e = parsedTransform == null ? void 0 : parsedTransform.y) != null ? _e : 0);
|
|
4491
4758
|
initial.transformOrigin = {
|
|
4492
|
-
x: (current.x -
|
|
4493
|
-
y: (current.y -
|
|
4759
|
+
x: (current.x - visualLeft * frameTransform.scaleX - frameTransform.x) / (width * frameTransform.scaleX),
|
|
4760
|
+
y: (current.y - visualTop * frameTransform.scaleY - frameTransform.y) / (height * frameTransform.scaleY)
|
|
4494
4761
|
};
|
|
4495
4762
|
}
|
|
4496
4763
|
const { transformOrigin } = initial;
|
|
@@ -4531,7 +4798,7 @@ render_fn = function() {
|
|
|
4531
4798
|
};
|
|
4532
4799
|
feedbackElement.setAttribute(ATTRIBUTE, "true");
|
|
4533
4800
|
const transform = o(() => dragOperation.transform);
|
|
4534
|
-
const initialTranslate = (
|
|
4801
|
+
const initialTranslate = (_f = initial.translate) != null ? _f : {
|
|
4535
4802
|
x: 0,
|
|
4536
4803
|
y: 0
|
|
4537
4804
|
};
|
|
@@ -4544,7 +4811,8 @@ render_fn = function() {
|
|
|
4544
4811
|
top: projected.top + fixedOffset.y,
|
|
4545
4812
|
left: projected.left + fixedOffset.x,
|
|
4546
4813
|
translate: `${tX}px ${tY}px 0`,
|
|
4547
|
-
|
|
4814
|
+
transform: this.overlay ? "none" : initialTransformStyle,
|
|
4815
|
+
transition: feedbackTransition ? `${feedbackTransition}, translate 0ms linear` : "translate 0ms linear",
|
|
4548
4816
|
scale: crossFrame ? `${scaleDelta.x} ${scaleDelta.y}` : "",
|
|
4549
4817
|
"transform-origin": `${transformOrigin.x * 100}% ${transformOrigin.y * 100}%`
|
|
4550
4818
|
}, CSS_PREFIX);
|
|
@@ -4575,6 +4843,7 @@ render_fn = function() {
|
|
|
4575
4843
|
delta,
|
|
4576
4844
|
styles,
|
|
4577
4845
|
dragOperation,
|
|
4846
|
+
getTranslate: () => state.current.translate,
|
|
4578
4847
|
getElementMutationObserver: () => elementMutationObserver,
|
|
4579
4848
|
getSavedCellWidths: () => savedCellWidths,
|
|
4580
4849
|
setSavedCellWidths: (widths) => {
|
|
@@ -4595,7 +4864,7 @@ render_fn = function() {
|
|
|
4595
4864
|
elementMutationObserver = createElementMutationObserver(element, placeholder, clone);
|
|
4596
4865
|
documentMutationObserver = createDocumentMutationObserver(element, placeholder, feedbackElement);
|
|
4597
4866
|
}
|
|
4598
|
-
const id = (
|
|
4867
|
+
const id = (_g = manager.dragOperation.source) == null ? void 0 : _g.id;
|
|
4599
4868
|
const restoreFocus = () => {
|
|
4600
4869
|
var _a6;
|
|
4601
4870
|
if (!isKeyboardOperation || id == null) return;
|
|
@@ -4604,7 +4873,6 @@ render_fn = function() {
|
|
|
4604
4873
|
if (isHTMLElement(focusTarget)) focusTarget.focus();
|
|
4605
4874
|
};
|
|
4606
4875
|
const cleanup = () => {
|
|
4607
|
-
var _a6;
|
|
4608
4876
|
elementMutationObserver?.disconnect();
|
|
4609
4877
|
documentMutationObserver?.disconnect();
|
|
4610
4878
|
resizeObserver.disconnect();
|
|
@@ -4615,19 +4883,25 @@ render_fn = function() {
|
|
|
4615
4883
|
}
|
|
4616
4884
|
feedbackElement.removeAttribute(ATTRIBUTE);
|
|
4617
4885
|
styles.reset();
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4886
|
+
const finalize = () => {
|
|
4887
|
+
var _a6;
|
|
4888
|
+
if (savedCellWidths && isTableRow(element)) {
|
|
4889
|
+
const cells = Array.from(element.cells);
|
|
4890
|
+
for (const [index, cell] of cells.entries()) cell.style.width = (_a6 = savedCellWidths[index]) != null ? _a6 : "";
|
|
4891
|
+
}
|
|
4892
|
+
source.status = "idle";
|
|
4893
|
+
const moved = state.current.translate != null;
|
|
4894
|
+
const isDragging = dragOperation.status.dragging;
|
|
4895
|
+
if (placeholder && (!isDragging && moved || placeholder.parentElement !== feedbackElement.parentElement) && feedbackElement.isConnected) placeholder.replaceWith(feedbackElement);
|
|
4896
|
+
placeholder?.remove();
|
|
4897
|
+
};
|
|
4898
|
+
if (feedbackElement === this.overlay) setTimeout(finalize, 0);
|
|
4899
|
+
else finalize();
|
|
4626
4900
|
};
|
|
4627
4901
|
const optionsDropAnimation = options == null ? void 0 : options.dropAnimation;
|
|
4628
4902
|
const feedbackPlugin = this;
|
|
4629
4903
|
const cleanupEffects = effects(() => {
|
|
4630
|
-
var _a6;
|
|
4904
|
+
var _a6, _b3, _c4;
|
|
4631
4905
|
const { transform: transform2, status: status2 } = dragOperation;
|
|
4632
4906
|
if (!transform2.x && !transform2.y && !state.current.translate) return;
|
|
4633
4907
|
if (status2.dragging) {
|
|
@@ -4645,9 +4919,10 @@ render_fn = function() {
|
|
|
4645
4919
|
var _a7;
|
|
4646
4920
|
return (_a7 = dragOperation.shape) == null ? void 0 : _a7.current;
|
|
4647
4921
|
});
|
|
4648
|
-
const
|
|
4922
|
+
const keyboardTransition = options == null ? void 0 : options.keyboardTransition;
|
|
4923
|
+
const translateTransition = isKeyboardOperation && !reducedMotion && keyboardTransition !== null ? `${(_b3 = keyboardTransition == null ? void 0 : keyboardTransition.duration) != null ? _b3 : 250}ms ${(_c4 = keyboardTransition == null ? void 0 : keyboardTransition.easing) != null ? _c4 : "cubic-bezier(0.25, 1, 0.5, 1)"}` : "0ms linear";
|
|
4649
4924
|
styles.set({
|
|
4650
|
-
transition: `${
|
|
4925
|
+
transition: feedbackTransition ? `${feedbackTransition}, translate ${translateTransition}` : `translate ${translateTransition}`,
|
|
4651
4926
|
translate: `${translate2.x}px ${translate2.y}px 0`
|
|
4652
4927
|
}, CSS_PREFIX);
|
|
4653
4928
|
elementMutationObserver?.takeRecords();
|
|
@@ -4661,7 +4936,7 @@ render_fn = function() {
|
|
|
4661
4936
|
if (dragOperation.status.dropped) {
|
|
4662
4937
|
this.dispose();
|
|
4663
4938
|
source.status = "dropping";
|
|
4664
|
-
const dropAnimationConfig = feedbackPlugin.dropAnimation !== void 0 ? feedbackPlugin.dropAnimation : optionsDropAnimation;
|
|
4939
|
+
const dropAnimationConfig = (entityOptions == null ? void 0 : entityOptions.dropAnimation) !== void 0 ? entityOptions.dropAnimation : feedbackPlugin.dropAnimation !== void 0 ? feedbackPlugin.dropAnimation : optionsDropAnimation;
|
|
4665
4940
|
let translate2 = state.current.translate;
|
|
4666
4941
|
const moved = translate2 != null;
|
|
4667
4942
|
if (!translate2 && element !== feedbackElement) translate2 = {
|
|
@@ -4674,6 +4949,7 @@ render_fn = function() {
|
|
|
4674
4949
|
}
|
|
4675
4950
|
manager.renderer.rendering.then(() => {
|
|
4676
4951
|
runDropAnimation({
|
|
4952
|
+
source,
|
|
4677
4953
|
element,
|
|
4678
4954
|
feedbackElement,
|
|
4679
4955
|
placeholder,
|
|
@@ -4701,7 +4977,13 @@ _Feedback.configure = configurator(_Feedback);
|
|
|
4701
4977
|
var Feedback = _Feedback;
|
|
4702
4978
|
var LOCKED = true;
|
|
4703
4979
|
var UNLOCKED = false;
|
|
4704
|
-
var _dec
|
|
4980
|
+
var _dec;
|
|
4981
|
+
var _a3;
|
|
4982
|
+
var _dec2;
|
|
4983
|
+
var _b = (_dec2 = [reactive], ScrollDirection.Forward);
|
|
4984
|
+
var _init3;
|
|
4985
|
+
var __b;
|
|
4986
|
+
var __a;
|
|
4705
4987
|
_a3 = (_dec = [reactive], ScrollDirection.Reverse);
|
|
4706
4988
|
var ScrollLock = class {
|
|
4707
4989
|
constructor() {
|
|
@@ -4769,7 +5051,12 @@ var ScrollIntentTracker = class extends Plugin {
|
|
|
4769
5051
|
function getDirection$1(a, b) {
|
|
4770
5052
|
return Math.sign(a - b);
|
|
4771
5053
|
}
|
|
4772
|
-
var _autoScrolling_dec
|
|
5054
|
+
var _autoScrolling_dec;
|
|
5055
|
+
var _a4;
|
|
5056
|
+
var _init4;
|
|
5057
|
+
var _autoScrolling;
|
|
5058
|
+
var _meta;
|
|
5059
|
+
var _scroll;
|
|
4773
5060
|
var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive], _a4) {
|
|
4774
5061
|
constructor(manager) {
|
|
4775
5062
|
super(manager);
|
|
@@ -4781,7 +5068,7 @@ var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive],
|
|
|
4781
5068
|
if (by.y) element.scrollTop += by.y;
|
|
4782
5069
|
if (by.x) element.scrollLeft += by.x;
|
|
4783
5070
|
});
|
|
4784
|
-
this.scroll = (options) => {
|
|
5071
|
+
this.scroll = (options, scrollOptions) => {
|
|
4785
5072
|
var _a5;
|
|
4786
5073
|
if (this.disabled) return false;
|
|
4787
5074
|
const elements = this.getScrollableElements();
|
|
@@ -4802,7 +5089,7 @@ var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive],
|
|
|
4802
5089
|
for (const scrollableElement of elements) {
|
|
4803
5090
|
const elementCanScroll = canScroll(scrollableElement, by);
|
|
4804
5091
|
if (elementCanScroll.x || elementCanScroll.y) {
|
|
4805
|
-
const { speed, direction } = detectScrollIntent(scrollableElement, currentPosition, intent);
|
|
5092
|
+
const { speed, direction } = detectScrollIntent(scrollableElement, currentPosition, intent, scrollOptions == null ? void 0 : scrollOptions.acceleration, scrollOptions == null ? void 0 : scrollOptions.threshold);
|
|
4806
5093
|
if (scrollIntent) {
|
|
4807
5094
|
for (const axis of Axes) if (scrollIntent[axis].isLocked(direction[axis])) {
|
|
4808
5095
|
speed[axis] = 0;
|
|
@@ -4915,24 +5202,36 @@ var scheduler3 = new Scheduler((callback) => {
|
|
|
4915
5202
|
else callback();
|
|
4916
5203
|
});
|
|
4917
5204
|
var AUTOSCROLL_INTERVAL = 10;
|
|
4918
|
-
var
|
|
4919
|
-
constructor(manager,
|
|
4920
|
-
super(manager);
|
|
5205
|
+
var _AutoScroller = class _AutoScroller extends Plugin {
|
|
5206
|
+
constructor(manager, options) {
|
|
5207
|
+
super(manager, options);
|
|
4921
5208
|
const scroller = manager.registry.plugins.get(Scroller);
|
|
4922
5209
|
if (!scroller) throw new Error("AutoScroller plugin depends on Scroller plugin");
|
|
4923
5210
|
this.destroy = j(() => {
|
|
5211
|
+
var _a5, _b2, _c3;
|
|
4924
5212
|
if (this.disabled) return;
|
|
4925
5213
|
const { position: _, status } = manager.dragOperation;
|
|
4926
|
-
if (status.dragging)
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
5214
|
+
if (status.dragging) {
|
|
5215
|
+
const scrollOptions = {
|
|
5216
|
+
acceleration: (_a5 = this.options) == null ? void 0 : _a5.acceleration,
|
|
5217
|
+
threshold: typeof ((_b2 = this.options) == null ? void 0 : _b2.threshold) === "number" ? {
|
|
5218
|
+
x: this.options.threshold,
|
|
5219
|
+
y: this.options.threshold
|
|
5220
|
+
} : (_c3 = this.options) == null ? void 0 : _c3.threshold
|
|
4931
5221
|
};
|
|
4932
|
-
|
|
5222
|
+
if (scroller.scroll(void 0, scrollOptions)) {
|
|
5223
|
+
scroller.autoScrolling = true;
|
|
5224
|
+
const interval = setInterval(() => scheduler3.schedule(() => scroller.scroll(void 0, scrollOptions)), AUTOSCROLL_INTERVAL);
|
|
5225
|
+
return () => {
|
|
5226
|
+
clearInterval(interval);
|
|
5227
|
+
};
|
|
5228
|
+
} else scroller.autoScrolling = false;
|
|
5229
|
+
}
|
|
4933
5230
|
});
|
|
4934
5231
|
}
|
|
4935
5232
|
};
|
|
5233
|
+
_AutoScroller.configure = configurator(_AutoScroller);
|
|
5234
|
+
var AutoScroller = _AutoScroller;
|
|
4936
5235
|
var listenerOptions = {
|
|
4937
5236
|
capture: true,
|
|
4938
5237
|
passive: true
|
|
@@ -4962,27 +5261,30 @@ var ScrollListener = class extends CorePlugin {
|
|
|
4962
5261
|
}
|
|
4963
5262
|
};
|
|
4964
5263
|
_timeout = new WeakMap();
|
|
5264
|
+
var CSS_RULES2 = "* { user-select: none !important; -webkit-user-select: none !important; }";
|
|
4965
5265
|
var PreventSelection = class extends Plugin {
|
|
4966
|
-
constructor(manager
|
|
4967
|
-
super(manager
|
|
5266
|
+
constructor(manager) {
|
|
5267
|
+
super(manager);
|
|
4968
5268
|
this.manager = manager;
|
|
5269
|
+
const styleInjector = manager.registry.plugins.get(StyleInjector);
|
|
5270
|
+
const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(CSS_RULES2);
|
|
4969
5271
|
this.destroy = j(() => {
|
|
4970
|
-
var _a5;
|
|
4971
5272
|
const { dragOperation } = this.manager;
|
|
4972
|
-
const { nonce } = (_a5 = this.options) != null ? _a5 : {};
|
|
4973
5273
|
if (dragOperation.status.initialized) {
|
|
4974
|
-
const style = document.createElement("style");
|
|
4975
|
-
if (nonce) style.setAttribute("nonce", nonce);
|
|
4976
|
-
style.textContent = `* { user-select: none !important; -webkit-user-select: none !important; }`;
|
|
4977
|
-
document.head.appendChild(style);
|
|
4978
5274
|
removeSelection();
|
|
4979
5275
|
document.addEventListener("selectionchange", removeSelection, { capture: true });
|
|
4980
5276
|
return () => {
|
|
4981
5277
|
document.removeEventListener("selectionchange", removeSelection, { capture: true });
|
|
4982
|
-
style.remove();
|
|
4983
5278
|
};
|
|
4984
5279
|
}
|
|
4985
5280
|
});
|
|
5281
|
+
if (unregisterStyles) {
|
|
5282
|
+
const originalDestroy = this.destroy.bind(this);
|
|
5283
|
+
this.destroy = () => {
|
|
5284
|
+
unregisterStyles();
|
|
5285
|
+
originalDestroy();
|
|
5286
|
+
};
|
|
5287
|
+
}
|
|
4986
5288
|
}
|
|
4987
5289
|
};
|
|
4988
5290
|
function removeSelection() {
|
|
@@ -5196,7 +5498,8 @@ var DistanceConstraint = class extends ActivationConstraint {
|
|
|
5196
5498
|
}
|
|
5197
5499
|
};
|
|
5198
5500
|
_coordinates = new WeakMap();
|
|
5199
|
-
var _timeout2
|
|
5501
|
+
var _timeout2;
|
|
5502
|
+
var _coordinates2;
|
|
5200
5503
|
var DelayConstraint = class extends ActivationConstraint {
|
|
5201
5504
|
constructor() {
|
|
5202
5505
|
super(...arguments);
|
|
@@ -5260,7 +5563,9 @@ var defaults2 = Object.freeze({
|
|
|
5260
5563
|
if (target === source.handle) return false;
|
|
5261
5564
|
if (!isElement(target)) return false;
|
|
5262
5565
|
if ((_a5 = source.handle) == null ? void 0 : _a5.contains(target)) return false;
|
|
5263
|
-
|
|
5566
|
+
const interactiveElement = getInteractiveElement(target);
|
|
5567
|
+
if (interactiveElement === source.element) return false;
|
|
5568
|
+
return Boolean(interactiveElement);
|
|
5264
5569
|
}
|
|
5265
5570
|
});
|
|
5266
5571
|
var _cleanup;
|
|
@@ -5403,7 +5708,12 @@ var _PointerSensor = class _PointerSensor extends Sensor {
|
|
|
5403
5708
|
}).signal.aborted) return this.cleanup();
|
|
5404
5709
|
event.preventDefault();
|
|
5405
5710
|
const pointerCaptureTarget = getDocument(event.target).body;
|
|
5406
|
-
|
|
5711
|
+
try {
|
|
5712
|
+
pointerCaptureTarget.setPointerCapture(event.pointerId);
|
|
5713
|
+
} catch (e) {
|
|
5714
|
+
this.handleCancel(event);
|
|
5715
|
+
return;
|
|
5716
|
+
}
|
|
5407
5717
|
const listenerTargets = isElement(event.target) ? [event.target, pointerCaptureTarget] : pointerCaptureTarget;
|
|
5408
5718
|
const unbind = this.listeners.bind(listenerTargets, [
|
|
5409
5719
|
{
|
|
@@ -5435,6 +5745,9 @@ var _PointerSensor = class _PointerSensor extends Sensor {
|
|
|
5435
5745
|
this.cleanup();
|
|
5436
5746
|
}
|
|
5437
5747
|
cleanup() {
|
|
5748
|
+
const { controller } = this;
|
|
5749
|
+
this.controller = void 0;
|
|
5750
|
+
if (controller && !controller.signal.aborted) controller.abort();
|
|
5438
5751
|
this.latest = {
|
|
5439
5752
|
event: void 0,
|
|
5440
5753
|
coordinates: void 0
|
|
@@ -5487,7 +5800,7 @@ var DragDropManager = class extends DragDropManager$1 {
|
|
|
5487
5800
|
plugins: [
|
|
5488
5801
|
ScrollListener,
|
|
5489
5802
|
Scroller,
|
|
5490
|
-
|
|
5803
|
+
StyleInjector,
|
|
5491
5804
|
...plugins
|
|
5492
5805
|
],
|
|
5493
5806
|
sensors,
|
|
@@ -5495,14 +5808,18 @@ var DragDropManager = class extends DragDropManager$1 {
|
|
|
5495
5808
|
}));
|
|
5496
5809
|
}
|
|
5497
5810
|
};
|
|
5498
|
-
var
|
|
5499
|
-
var
|
|
5811
|
+
var _element_dec;
|
|
5812
|
+
var _handle_dec;
|
|
5813
|
+
var _c;
|
|
5814
|
+
var _init5;
|
|
5815
|
+
var _handle;
|
|
5816
|
+
var _element$1;
|
|
5817
|
+
var Draggable$1 = class extends (_c = Draggable$2, _handle_dec = [reactive], _element_dec = [reactive], _c) {
|
|
5500
5818
|
constructor(_a5, manager) {
|
|
5501
|
-
var _b2 = _a5, { element, effects: effects2 = () => [], handle
|
|
5819
|
+
var _b2 = _a5, { element, effects: effects2 = () => [], handle } = _b2, input = __objRest$2(_b2, [
|
|
5502
5820
|
"element",
|
|
5503
5821
|
"effects",
|
|
5504
|
-
"handle"
|
|
5505
|
-
"feedback"
|
|
5822
|
+
"handle"
|
|
5506
5823
|
]);
|
|
5507
5824
|
super(__spreadValues$2({ effects: () => [...effects2(), () => {
|
|
5508
5825
|
var _a6, _b3;
|
|
@@ -5519,21 +5836,26 @@ var Draggable$1 = class extends (_c = Draggable$2, _handle_dec = [reactive], _el
|
|
|
5519
5836
|
}] }, input), manager);
|
|
5520
5837
|
__privateAdd$2(this, _handle, __runInitializers$2(_init5, 8, this)), __runInitializers$2(_init5, 11, this);
|
|
5521
5838
|
__privateAdd$2(this, _element$1, __runInitializers$2(_init5, 12, this)), __runInitializers$2(_init5, 15, this);
|
|
5522
|
-
__privateAdd$2(this, _feedback, __runInitializers$2(_init5, 16, this)), __runInitializers$2(_init5, 19, this);
|
|
5523
5839
|
this.element = element;
|
|
5524
5840
|
this.handle = handle;
|
|
5525
|
-
this.feedback = feedback;
|
|
5526
5841
|
}
|
|
5527
5842
|
};
|
|
5528
5843
|
_init5 = __decoratorStart$2(_c);
|
|
5529
5844
|
_handle = new WeakMap();
|
|
5530
5845
|
_element$1 = new WeakMap();
|
|
5531
|
-
_feedback = new WeakMap();
|
|
5532
5846
|
__decorateElement$2(_init5, 4, "handle", _handle_dec, Draggable$1, _handle);
|
|
5533
5847
|
__decorateElement$2(_init5, 4, "element", _element_dec, Draggable$1, _element$1);
|
|
5534
|
-
__decorateElement$2(_init5, 4, "feedback", _feedback_dec, Draggable$1, _feedback);
|
|
5535
5848
|
__decoratorMetadata$2(_init5, Draggable$1);
|
|
5536
|
-
var _proxy_dec
|
|
5849
|
+
var _proxy_dec;
|
|
5850
|
+
var _element_dec2;
|
|
5851
|
+
var _c2;
|
|
5852
|
+
var _init6;
|
|
5853
|
+
var _element2;
|
|
5854
|
+
var _d;
|
|
5855
|
+
var element_get;
|
|
5856
|
+
var element_set;
|
|
5857
|
+
var _Droppable_instances;
|
|
5858
|
+
var _proxy;
|
|
5537
5859
|
var Droppable = class extends (_c2 = Droppable$1, _element_dec2 = [reactive], _proxy_dec = [reactive], _c2) {
|
|
5538
5860
|
constructor(_a5, manager) {
|
|
5539
5861
|
var _b2 = _a5, { element, effects: effects2 = () => [] } = _b2, input = __objRest$2(_b2, ["element", "effects"]);
|
|
@@ -5644,7 +5966,8 @@ function useDeepSignal(target, synchronous) {
|
|
|
5644
5966
|
sync = (_a = synchronous == null ? void 0 : synchronous(key, value, latestValue)) != null ? _a : false;
|
|
5645
5967
|
}
|
|
5646
5968
|
}
|
|
5647
|
-
if (stale) sync
|
|
5969
|
+
if (stale) if (sync) queueMicrotask(() => flushSync(forceUpdate));
|
|
5970
|
+
else forceUpdate();
|
|
5648
5971
|
});
|
|
5649
5972
|
}, [target]);
|
|
5650
5973
|
return useMemo(() => target ? new Proxy(target, { get(target2, key) {
|
|
@@ -6201,17 +6524,21 @@ function arrayMove(array, from, to) {
|
|
|
6201
6524
|
newArray.splice(to, 0, newArray.splice(from, 1)[0]);
|
|
6202
6525
|
return newArray;
|
|
6203
6526
|
}
|
|
6527
|
+
function getRecordKey(items, id) {
|
|
6528
|
+
const key = String(id);
|
|
6529
|
+
return Object.prototype.hasOwnProperty.call(items, key) ? key : void 0;
|
|
6530
|
+
}
|
|
6204
6531
|
function hasSortableIndices(source) {
|
|
6205
6532
|
return "initialIndex" in source && typeof source.initialIndex === "number" && "index" in source && typeof source.index === "number";
|
|
6206
6533
|
}
|
|
6207
6534
|
function mutate(items, event, mutation) {
|
|
6208
|
-
var _a, _b
|
|
6535
|
+
var _a, _b;
|
|
6209
6536
|
const { source, target, canceled } = event.operation;
|
|
6210
6537
|
if (!source || !target || canceled) {
|
|
6211
6538
|
if ("preventDefault" in event) event.preventDefault();
|
|
6212
6539
|
return items;
|
|
6213
6540
|
}
|
|
6214
|
-
const findIndex = (item, id) => item === id || typeof item === "object" && "id" in item && item.id === id;
|
|
6541
|
+
const findIndex = (item, id) => item === id || item !== null && typeof item === "object" && "id" in item && item.id === id;
|
|
6215
6542
|
if (Array.isArray(items)) {
|
|
6216
6543
|
const sourceIndex2 = items.findIndex((item) => findIndex(item, source.id));
|
|
6217
6544
|
const targetIndex2 = items.findIndex((item) => findIndex(item, target.id));
|
|
@@ -6250,11 +6577,11 @@ function mutate(items, event, mutation) {
|
|
|
6250
6577
|
if (sourceIndex !== -1 && targetIndex !== -1) break;
|
|
6251
6578
|
}
|
|
6252
6579
|
if (sourceIndex === -1 && hasSortableIndices(source)) {
|
|
6253
|
-
const srcParent = source.initialGroup;
|
|
6580
|
+
const srcParent = source.initialGroup == null ? void 0 : getRecordKey(items, source.initialGroup);
|
|
6254
6581
|
const srcIndex = source.initialIndex;
|
|
6255
|
-
const tgtParent = source.group;
|
|
6582
|
+
const tgtParent = source.group == null ? void 0 : getRecordKey(items, source.group);
|
|
6256
6583
|
const tgtIndex = source.index;
|
|
6257
|
-
if (srcParent == null || tgtParent == null
|
|
6584
|
+
if (srcParent == null || tgtParent == null) {
|
|
6258
6585
|
if ("preventDefault" in event) event.preventDefault();
|
|
6259
6586
|
return items;
|
|
6260
6587
|
}
|
|
@@ -6277,19 +6604,21 @@ function mutate(items, event, mutation) {
|
|
|
6277
6604
|
const { dragOperation } = source.manager;
|
|
6278
6605
|
const position = (_b = (_a = dragOperation.shape) == null ? void 0 : _a.current.center) != null ? _b : dragOperation.position.current;
|
|
6279
6606
|
if (targetParent == null) {
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6607
|
+
const targetKey = getRecordKey(items, target.id);
|
|
6608
|
+
if (targetKey != null) {
|
|
6609
|
+
const insertionIndex = target.shape && position.y > target.shape.center.y ? items[targetKey].length : 0;
|
|
6610
|
+
targetParent = targetKey;
|
|
6283
6611
|
targetIndex = insertionIndex;
|
|
6284
6612
|
}
|
|
6285
6613
|
}
|
|
6286
6614
|
if (sourceParent == null || targetParent == null || sourceParent === targetParent && sourceIndex === targetIndex) {
|
|
6287
6615
|
if (sourceParent != null && sourceParent === targetParent && sourceIndex === targetIndex && hasSortableIndices(source)) {
|
|
6288
|
-
const
|
|
6616
|
+
const sourceGroupParent = source.group == null ? void 0 : getRecordKey(items, source.group);
|
|
6617
|
+
const hasGroupChanged = source.group != null && sourceGroupParent !== sourceParent;
|
|
6289
6618
|
const hasIndexChanged = source.index !== sourceIndex;
|
|
6290
6619
|
if (hasGroupChanged || hasIndexChanged) {
|
|
6291
|
-
const reconciledTargetParent =
|
|
6292
|
-
if (reconciledTargetParent
|
|
6620
|
+
const reconciledTargetParent = source.group == null ? sourceParent : sourceGroupParent;
|
|
6621
|
+
if (reconciledTargetParent != null) {
|
|
6293
6622
|
if (sourceParent === reconciledTargetParent) return __spreadProps2(__spreadValues2({}, items), { [sourceParent]: mutation(items[sourceParent], sourceIndex, source.index) });
|
|
6294
6623
|
const sourceItem2 = items[sourceParent][sourceIndex];
|
|
6295
6624
|
return __spreadProps2(__spreadValues2({}, items), {
|
|
@@ -6321,6 +6650,19 @@ function mutate(items, event, mutation) {
|
|
|
6321
6650
|
function move(items, event) {
|
|
6322
6651
|
return mutate(items, event, arrayMove);
|
|
6323
6652
|
}
|
|
6653
|
+
function getSortableIndices(instances) {
|
|
6654
|
+
const sortableIndices = new Map();
|
|
6655
|
+
for (const [, group] of instances) for (const sortable of group) sortableIndices.set(sortable.id, sortable.index);
|
|
6656
|
+
return sortableIndices;
|
|
6657
|
+
}
|
|
6658
|
+
function hasChanged(snapshotIndices, instances, newInstances) {
|
|
6659
|
+
var _a;
|
|
6660
|
+
for (const [group, sortables] of instances) for (const sortable of sortables) {
|
|
6661
|
+
const index = snapshotIndices.get(sortable.id);
|
|
6662
|
+
if (sortable.index !== index || sortable.group !== group || !((_a = newInstances.get(group)) == null ? void 0 : _a.has(sortable))) return true;
|
|
6663
|
+
}
|
|
6664
|
+
return false;
|
|
6665
|
+
}
|
|
6324
6666
|
var defaultGroup = "__default__";
|
|
6325
6667
|
var OptimisticSortingPlugin = class extends Plugin {
|
|
6326
6668
|
constructor(manager) {
|
|
@@ -6337,7 +6679,6 @@ var OptimisticSortingPlugin = class extends Plugin {
|
|
|
6337
6679
|
}
|
|
6338
6680
|
instances.add(sortable);
|
|
6339
6681
|
}
|
|
6340
|
-
for (const [group, instances] of sortableInstances) sortableInstances.set(group, new Set(sort(instances)));
|
|
6341
6682
|
return sortableInstances;
|
|
6342
6683
|
};
|
|
6343
6684
|
const unsubscribe = [manager.monitor.addEventListener("dragover", (event, manager2) => {
|
|
@@ -6347,6 +6688,7 @@ var OptimisticSortingPlugin = class extends Plugin {
|
|
|
6347
6688
|
if (!isSortable(source) || !isSortable(target)) return;
|
|
6348
6689
|
if (source.sortable === target.sortable) return;
|
|
6349
6690
|
const instances = getSortableInstances();
|
|
6691
|
+
const sortableIndices = getSortableIndices(instances);
|
|
6350
6692
|
const sameGroup = source.sortable.group === target.sortable.group;
|
|
6351
6693
|
const sourceInstances = instances.get(source.sortable.group);
|
|
6352
6694
|
const targetInstances = sameGroup ? sourceInstances : instances.get(target.sortable.group);
|
|
@@ -6354,20 +6696,17 @@ var OptimisticSortingPlugin = class extends Plugin {
|
|
|
6354
6696
|
queueMicrotask(() => {
|
|
6355
6697
|
if (event.defaultPrevented) return;
|
|
6356
6698
|
manager2.renderer.rendering.then(() => {
|
|
6357
|
-
var _a, _b
|
|
6699
|
+
var _a, _b;
|
|
6358
6700
|
const newInstances = getSortableInstances();
|
|
6359
|
-
|
|
6360
|
-
const entries = Array.from(sortableInstances).entries();
|
|
6361
|
-
for (const [index, sortable] of entries) if (sortable.index !== index || sortable.group !== group || !((_a = newInstances.get(group)) == null ? void 0 : _a.has(sortable))) return;
|
|
6362
|
-
}
|
|
6701
|
+
if (hasChanged(sortableIndices, instances, newInstances)) return;
|
|
6363
6702
|
const sourceElement = source.sortable.element;
|
|
6364
6703
|
const targetElement = target.sortable.element;
|
|
6365
6704
|
if (!targetElement || !sourceElement) return;
|
|
6366
6705
|
if (!sameGroup && target.id === source.sortable.group) return;
|
|
6367
6706
|
const orderedSourceSortables = sort(sourceInstances);
|
|
6368
6707
|
const orderedTargetSortables = sameGroup ? orderedSourceSortables : sort(targetInstances);
|
|
6369
|
-
const sourceGroup = (
|
|
6370
|
-
const targetGroup = (
|
|
6708
|
+
const sourceGroup = (_a = source.sortable.group) != null ? _a : defaultGroup;
|
|
6709
|
+
const targetGroup = (_b = target.sortable.group) != null ? _b : defaultGroup;
|
|
6371
6710
|
const state = {
|
|
6372
6711
|
[sourceGroup]: orderedSourceSortables,
|
|
6373
6712
|
[targetGroup]: orderedTargetSortables
|
|
@@ -6396,21 +6735,21 @@ var OptimisticSortingPlugin = class extends Plugin {
|
|
|
6396
6735
|
if (source.sortable.initialIndex === source.sortable.index && source.sortable.initialGroup === source.sortable.group) return;
|
|
6397
6736
|
queueMicrotask(() => {
|
|
6398
6737
|
const instances = getSortableInstances();
|
|
6738
|
+
const sortableIndices = getSortableIndices(instances);
|
|
6399
6739
|
const initialGroupInstances = instances.get(source.sortable.initialGroup);
|
|
6400
6740
|
if (!initialGroupInstances) return;
|
|
6401
6741
|
manager2.renderer.rendering.then(() => {
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
const initialGroup = sort(initialGroupInstances);
|
|
6742
|
+
const newInstances = getSortableInstances();
|
|
6743
|
+
if (hasChanged(sortableIndices, instances, newInstances)) return;
|
|
6744
|
+
const currentSortables = sort(initialGroupInstances);
|
|
6745
|
+
const initialSortables = sort(initialGroupInstances, sortByInitialIndex);
|
|
6407
6746
|
const sourceElement = source.sortable.element;
|
|
6408
|
-
const target =
|
|
6747
|
+
const target = currentSortables[initialSortables.indexOf(source.sortable)];
|
|
6409
6748
|
const targetElement = target == null ? void 0 : target.element;
|
|
6410
6749
|
if (!target || !targetElement || !sourceElement) return;
|
|
6411
6750
|
reorder(sourceElement, target.index, targetElement, source.index);
|
|
6412
6751
|
n(() => {
|
|
6413
|
-
for (const
|
|
6752
|
+
for (const sortableInstances of instances.values()) {
|
|
6414
6753
|
const entries = Array.from(sortableInstances).values();
|
|
6415
6754
|
for (const sortable of entries) {
|
|
6416
6755
|
sortable.index = sortable.initialIndex;
|
|
@@ -6433,8 +6772,11 @@ function reorder(sourceElement, sourceIndex, targetElement, targetIndex) {
|
|
|
6433
6772
|
function sortByIndex(a, b) {
|
|
6434
6773
|
return a.index - b.index;
|
|
6435
6774
|
}
|
|
6436
|
-
function
|
|
6437
|
-
return
|
|
6775
|
+
function sortByInitialIndex(a, b) {
|
|
6776
|
+
return a.initialIndex - b.initialIndex;
|
|
6777
|
+
}
|
|
6778
|
+
function sort(instances, sortFn = sortByIndex) {
|
|
6779
|
+
return Array.from(instances).sort(sortFn);
|
|
6438
6780
|
}
|
|
6439
6781
|
var defaultPlugins = [SortableKeyboardPlugin, OptimisticSortingPlugin];
|
|
6440
6782
|
var defaultSortableTransition = {
|
|
@@ -6442,8 +6784,26 @@ var defaultSortableTransition = {
|
|
|
6442
6784
|
easing: "cubic-bezier(0.25, 1, 0.5, 1)",
|
|
6443
6785
|
idle: false
|
|
6444
6786
|
};
|
|
6787
|
+
function normalizeDisabled(disabled) {
|
|
6788
|
+
var _a, _b;
|
|
6789
|
+
if (typeof disabled === "boolean") return {
|
|
6790
|
+
draggable: disabled,
|
|
6791
|
+
droppable: disabled
|
|
6792
|
+
};
|
|
6793
|
+
return {
|
|
6794
|
+
draggable: (_a = disabled == null ? void 0 : disabled.draggable) != null ? _a : false,
|
|
6795
|
+
droppable: (_b = disabled == null ? void 0 : disabled.droppable) != null ? _b : false
|
|
6796
|
+
};
|
|
6797
|
+
}
|
|
6445
6798
|
var store = new WeakStore();
|
|
6446
|
-
var _group_dec
|
|
6799
|
+
var _group_dec;
|
|
6800
|
+
var _index_dec = [reactive];
|
|
6801
|
+
var _init;
|
|
6802
|
+
var _index;
|
|
6803
|
+
var _previousGroup;
|
|
6804
|
+
var _previousIndex;
|
|
6805
|
+
var _group;
|
|
6806
|
+
var _element;
|
|
6447
6807
|
_group_dec = [reactive];
|
|
6448
6808
|
var Sortable2 = class {
|
|
6449
6809
|
constructor(_a, manager) {
|
|
@@ -6473,8 +6833,9 @@ var Sortable2 = class {
|
|
|
6473
6833
|
this.draggable.destroy();
|
|
6474
6834
|
});
|
|
6475
6835
|
};
|
|
6476
|
-
var _b = _a, { effects: inputEffects = () => [], group, index, sensors, type, transition = defaultSortableTransition, plugins
|
|
6836
|
+
var _b = _a, { effects: inputEffects = () => [], disabled, group, index, sensors, type, transition = defaultSortableTransition, plugins: pluginsInput } = _b, input = __objRest(_b, [
|
|
6477
6837
|
"effects",
|
|
6838
|
+
"disabled",
|
|
6478
6839
|
"group",
|
|
6479
6840
|
"index",
|
|
6480
6841
|
"sensors",
|
|
@@ -6482,8 +6843,12 @@ var Sortable2 = class {
|
|
|
6482
6843
|
"transition",
|
|
6483
6844
|
"plugins"
|
|
6484
6845
|
]);
|
|
6485
|
-
|
|
6846
|
+
const plugins = resolveCustomizable(pluginsInput, defaultPlugins);
|
|
6847
|
+
const disabledState = normalizeDisabled(disabled);
|
|
6848
|
+
this.droppable = new SortableDroppable(__spreadProps$1(__spreadValues$1({}, input), { disabled: disabledState.droppable }), manager, this);
|
|
6486
6849
|
this.draggable = new SortableDraggable(__spreadProps$1(__spreadValues$1({}, input), {
|
|
6850
|
+
disabled: disabledState.draggable,
|
|
6851
|
+
plugins,
|
|
6487
6852
|
effects: () => [
|
|
6488
6853
|
() => {
|
|
6489
6854
|
var _a2, _b2, _c;
|
|
@@ -6505,13 +6870,10 @@ var Sortable2 = class {
|
|
|
6505
6870
|
}
|
|
6506
6871
|
},
|
|
6507
6872
|
() => {
|
|
6873
|
+
var _a2, _b2;
|
|
6508
6874
|
const { target } = this;
|
|
6509
|
-
const {
|
|
6510
|
-
if (
|
|
6511
|
-
},
|
|
6512
|
-
() => {
|
|
6513
|
-
const { manager: manager2 } = this;
|
|
6514
|
-
for (const plugin of plugins) manager2?.registry.register(plugin);
|
|
6875
|
+
const { isDragSource } = this.draggable;
|
|
6876
|
+
if (((_b2 = (_a2 = this.draggable.pluginConfig(Feedback)) == null ? void 0 : _a2.feedback) != null ? _b2 : "default") === "move" && isDragSource) this.droppable.disabled = !target;
|
|
6515
6877
|
},
|
|
6516
6878
|
...inputEffects()
|
|
6517
6879
|
],
|
|
@@ -6545,6 +6907,7 @@ var Sortable2 = class {
|
|
|
6545
6907
|
manager.renderer.rendering.then(() => {
|
|
6546
6908
|
const { element } = this;
|
|
6547
6909
|
if (!element) return;
|
|
6910
|
+
for (const animation of element.getAnimations()) if ("transitionProperty" in animation && (animation.transitionProperty === "transform" || animation.transitionProperty === "translate" || animation.transitionProperty === "scale")) animation.cancel();
|
|
6548
6911
|
const updatedShape = this.refreshShape();
|
|
6549
6912
|
if (!updatedShape) return;
|
|
6550
6913
|
const delta = {
|
|
@@ -6605,15 +6968,21 @@ var Sortable2 = class {
|
|
|
6605
6968
|
return this.draggable.element;
|
|
6606
6969
|
}
|
|
6607
6970
|
get disabled() {
|
|
6608
|
-
|
|
6971
|
+
const { disabled: draggable } = this.draggable;
|
|
6972
|
+
const { disabled: droppable } = this.droppable;
|
|
6973
|
+
return draggable === droppable ? draggable : {
|
|
6974
|
+
draggable,
|
|
6975
|
+
droppable
|
|
6976
|
+
};
|
|
6609
6977
|
}
|
|
6610
|
-
set
|
|
6611
|
-
this.draggable.
|
|
6978
|
+
set plugins(value) {
|
|
6979
|
+
this.draggable.plugins = resolveCustomizable(value, defaultPlugins);
|
|
6612
6980
|
}
|
|
6613
6981
|
set disabled(value) {
|
|
6982
|
+
const disabled = normalizeDisabled(value);
|
|
6614
6983
|
n(() => {
|
|
6615
|
-
this.droppable.disabled =
|
|
6616
|
-
this.draggable.disabled =
|
|
6984
|
+
this.droppable.disabled = disabled.droppable;
|
|
6985
|
+
this.draggable.disabled = disabled.draggable;
|
|
6617
6986
|
});
|
|
6618
6987
|
}
|
|
6619
6988
|
set data(data) {
|
|
@@ -6626,10 +6995,8 @@ var Sortable2 = class {
|
|
|
6626
6995
|
this.draggable.handle = handle;
|
|
6627
6996
|
}
|
|
6628
6997
|
set id(id) {
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
this.draggable.id = id;
|
|
6632
|
-
});
|
|
6998
|
+
this.droppable.id = id;
|
|
6999
|
+
this.draggable.id = id;
|
|
6633
7000
|
}
|
|
6634
7001
|
get id() {
|
|
6635
7002
|
return this.droppable.id;
|
|
@@ -6760,7 +7127,7 @@ var __spreadValues = (a, b) => {
|
|
|
6760
7127
|
};
|
|
6761
7128
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
6762
7129
|
function useSortable(input) {
|
|
6763
|
-
const { accept, collisionDetector, collisionPriority, id, data, element, handle, index, group, disabled,
|
|
7130
|
+
const { accept, collisionDetector, collisionPriority, id, data, element, handle, index, group, disabled, modifiers, sensors, target, type, plugins } = input;
|
|
6764
7131
|
const transition = __spreadValues(__spreadValues({}, defaultSortableTransition), input.transition);
|
|
6765
7132
|
const sortable = useInstance((manager) => {
|
|
6766
7133
|
return new Sortable2(__spreadProps(__spreadValues({}, input), {
|
|
@@ -6768,8 +7135,7 @@ function useSortable(input) {
|
|
|
6768
7135
|
register: false,
|
|
6769
7136
|
handle: currentValue(handle),
|
|
6770
7137
|
element: currentValue(element),
|
|
6771
|
-
target: currentValue(target)
|
|
6772
|
-
feedback
|
|
7138
|
+
target: currentValue(target)
|
|
6773
7139
|
}), manager);
|
|
6774
7140
|
});
|
|
6775
7141
|
const trackedSortable = useDeepSignal(sortable, shouldUpdateSynchronously);
|
|
@@ -6794,11 +7160,11 @@ function useSortable(input) {
|
|
|
6794
7160
|
useOnElementChange(handle, (handle2) => sortable.handle = handle2);
|
|
6795
7161
|
useOnElementChange(element, (element2) => sortable.element = element2);
|
|
6796
7162
|
useOnElementChange(target, (target2) => sortable.target = target2);
|
|
6797
|
-
useOnValueChange(disabled, () => sortable.disabled = disabled
|
|
6798
|
-
useOnValueChange(sensors, () => sortable.sensors = sensors);
|
|
7163
|
+
useOnValueChange(disabled, () => sortable.disabled = disabled != null ? disabled : false, void 0, deepEqual);
|
|
7164
|
+
useOnValueChange(sensors, () => sortable.sensors = sensors, void 0, deepEqual);
|
|
6799
7165
|
useOnValueChange(collisionDetector, () => sortable.collisionDetector = collisionDetector);
|
|
6800
7166
|
useOnValueChange(collisionPriority, () => sortable.collisionPriority = collisionPriority);
|
|
6801
|
-
useOnValueChange(
|
|
7167
|
+
useOnValueChange(plugins, () => sortable.plugins = plugins, void 0, deepEqual);
|
|
6802
7168
|
useOnValueChange(transition, () => sortable.transition = transition, void 0, deepEqual);
|
|
6803
7169
|
useOnValueChange(modifiers, () => sortable.modifiers = modifiers, void 0, deepEqual);
|
|
6804
7170
|
useOnValueChange(input.alignment, () => sortable.alignment = input.alignment);
|