@eightshift/ui-components 7.3.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-pLMPWMFq.js → Autocomplete-BUU44AuW.js} +22 -15
- package/dist/{Button-Biwg7zwt.js → Button-_E2Z5G2l.js} +15 -15
- package/dist/{Dialog-C1sh8jbh.js → Dialog-3XLIaepk.js} +127 -110
- package/dist/{Disclosure-B_SHgiUz.js → Disclosure-Dh0z_DEQ.js} +12 -12
- package/dist/{FocusScope-lGkM8AO8.js → FocusScope-BKGWN6UK.js} +7 -7
- package/dist/{Form-BxIJCHYd.js → Form-BWMVEpwR.js} +1 -1
- package/dist/{Heading-B2EsUuu6.js → Heading-BWTs9ckA.js} +3 -3
- package/dist/{Hidden-DYY00jLm.js → Hidden-C4Saxkx9.js} +4 -4
- package/dist/{I18nProvider-Cm6dj5jY.js → I18nProvider-BskRMK8G.js} +3 -3
- package/dist/{Label-B1TkoVOG.js → Label-UpU4cKPh.js} +4 -4
- package/dist/{List---tsVJlI.js → List-BKcyZ8tT.js} +9 -9
- package/dist/{ListBox-BquE0m8z.js → ListBox-DepY-52g.js} +40 -38
- package/dist/{NumberFormatter-JHF0Tadk.js → NumberFormatter-WKBRKiEA.js} +4 -1
- package/dist/{PortalProvider-BYcv24il.js → PortalProvider-Dbcc7pHq.js} +2 -2
- package/dist/{RadioGroup-BxjLooWU.js → RadioGroup-Br9Mn9QJ.js} +42 -25
- package/dist/{SearchField-BkAU0HLm.js → SearchField-q2Fj0L9K.js} +15 -15
- package/dist/SelectionIndicator-CyOcB5ps.js +5 -0
- package/dist/SharedElementTransition-D1LPCrSc.js +10 -0
- package/dist/{Slider-DSv6fyZ6.js → Slider-B8icnyOo.js} +41 -26
- package/dist/{Text-C8pfwn0W.js → Text-D4y19vs8.js} +3 -3
- package/dist/{VisuallyHidden-KcXlGa5p.js → VisuallyHidden-B_LZ_kn7.js} +4 -4
- package/dist/{animation-BJ-2VKdB.js → animation-DpSgtWyu.js} +1 -1
- package/dist/assets/fonts/geist-latin-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-700-normal.woff2 +0 -0
- 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/image-analysis-worker-BuHru-CI.js +1 -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-K6vi4xE0.js → build-module-DG6ZK7Ty.js} +6 -131
- package/dist/button-XSk_8UW7.js +532 -0
- package/dist/{checkbox-t7VrqXv2.js → checkbox-BYaS9tQ5.js} +80 -82
- package/dist/{color-swatch-gU09x9Ga.js → color-swatch-6ZEIXej3.js} +41 -37
- package/dist/components/animated-visibility/animated-visibility.d.ts +37 -0
- package/dist/components/animated-visibility/animated-visibility.js +3 -12
- package/dist/components/base-control/base-control.d.ts +47 -0
- package/dist/components/base-control/base-control.js +15 -22
- package/dist/components/base-control/container.d.ts +99 -0
- package/dist/components/base-control/container.js +55 -68
- package/dist/components/breakpoint-preview/breakpoint-preview.d.ts +59 -0
- package/dist/components/breakpoint-preview/breakpoint-preview.js +87 -100
- package/dist/components/button/button.d.ts +97 -0
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +51 -0
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.d.ts +70 -0
- package/dist/components/color-pickers/color-picker.js +39 -57
- package/dist/components/color-pickers/color-swatch.d.ts +34 -0
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.d.ts +27 -0
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.d.ts +36 -0
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.d.ts +57 -0
- package/dist/components/component-toggle/component-toggle.js +27 -39
- package/dist/components/container-panel/container-panel.d.ts +50 -0
- package/dist/components/container-panel/container-panel.js +15 -29
- package/dist/components/contextual-help/contextual-help.d.ts +51 -0
- package/dist/components/contextual-help/contextual-help.js +82 -0
- package/dist/components/draggable/draggable-context.d.ts +9 -0
- package/dist/components/draggable/draggable-context.js +6 -2
- package/dist/components/draggable/draggable-handle.d.ts +20 -0
- package/dist/components/draggable/draggable-handle.js +3 -5
- package/dist/components/draggable/draggable.d.ts +52 -0
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-context.d.ts +1 -0
- package/dist/components/draggable-list/draggable-list-context.js +2 -2
- package/dist/components/draggable-list/draggable-list-item.d.ts +46 -0
- package/dist/components/draggable-list/draggable-list-item.js +6 -14
- package/dist/components/draggable-list/draggable-list.d.ts +56 -0
- package/dist/components/draggable-list/draggable-list.js +21 -31
- package/dist/components/expandable/expandable.d.ts +63 -0
- package/dist/components/expandable/expandable.js +25 -45
- package/dist/components/index.d.ts +58 -0
- package/dist/components/index.js +19 -18
- package/dist/components/input-field/input-field.d.ts +60 -0
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.d.ts +42 -0
- package/dist/components/item-collection/item-collection.js +16 -17
- package/dist/components/layout/hstack.d.ts +28 -0
- package/dist/components/layout/hstack.js +4 -9
- package/dist/components/layout/vstack.d.ts +28 -0
- package/dist/components/layout/vstack.js +4 -9
- package/dist/components/link-input/link-input.d.ts +74 -0
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.d.ts +41 -0
- package/dist/components/matrix-align/matrix-align.js +64 -73
- package/dist/components/menu/menu.d.ts +191 -0
- package/dist/components/menu/menu.js +47 -82
- package/dist/components/modal/modal.d.ts +66 -0
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notice/notice.d.ts +34 -0
- package/dist/components/notice/notice.js +4 -13
- package/dist/components/number-picker/number-picker.d.ts +65 -0
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.d.ts +96 -0
- package/dist/components/option-select/option-select.js +89 -146
- package/dist/components/options-panel/options-panel.d.ts +97 -0
- package/dist/components/options-panel/options-panel.js +16 -50
- package/dist/components/placeholders/file-picker-shell.d.ts +67 -0
- package/dist/components/placeholders/file-picker-shell.js +30 -37
- package/dist/components/placeholders/file-placeholder.d.ts +29 -0
- package/dist/components/placeholders/file-placeholder.js +8 -11
- package/dist/components/placeholders/image-placeholder.d.ts +37 -0
- package/dist/components/placeholders/image-placeholder.js +28 -42
- package/dist/components/placeholders/media-placeholder.d.ts +34 -0
- package/dist/components/placeholders/media-placeholder.js +23 -34
- package/dist/components/popover/popover.d.ts +108 -0
- package/dist/components/popover/popover.js +28 -57
- package/dist/components/portal-provider/portal-provider.d.ts +22 -0
- package/dist/components/portal-provider/portal-provider.js +6 -7
- package/dist/components/radio/radio.d.ts +108 -0
- package/dist/components/radio/radio.js +65 -66
- package/dist/components/repeater/repeater-context.d.ts +19 -0
- package/dist/components/repeater/repeater-context.js +2 -2
- package/dist/components/repeater/repeater-item.d.ts +35 -0
- package/dist/components/repeater/repeater-item.js +53 -60
- package/dist/components/repeater/repeater.d.ts +98 -0
- package/dist/components/repeater/repeater.js +39 -63
- package/dist/components/responsive/mini-responsive.d.ts +99 -0
- package/dist/components/responsive/mini-responsive.js +116 -115
- package/dist/components/responsive/responsive-legacy.d.ts +101 -0
- package/dist/components/responsive/responsive-legacy.js +75 -80
- package/dist/components/responsive/responsive.d.ts +105 -0
- package/dist/components/responsive/responsive.js +133 -134
- package/dist/components/responsive-preview/responsive-preview.d.ts +48 -0
- package/dist/components/responsive-preview/responsive-preview.js +17 -21
- package/dist/components/rich-label/rich-label.d.ts +49 -0
- package/dist/components/rich-label/rich-label.js +10 -22
- package/dist/components/select/async-multi-select.d.ts +115 -0
- package/dist/components/select/async-multi-select.js +143 -156
- package/dist/components/select/async-select.d.ts +113 -0
- package/dist/components/select/async-select.js +104 -121
- package/dist/components/select/multi-select.d.ts +100 -0
- package/dist/components/select/multi-select.js +104 -108
- package/dist/components/select/shared.d.ts +72 -0
- package/dist/components/select/shared.js +2 -2
- package/dist/components/select/single-select.d.ts +98 -0
- package/dist/components/select/single-select.js +81 -93
- package/dist/components/select/styles.d.ts +12 -0
- package/dist/components/select/styles.js +30 -6
- package/dist/components/slider/column-config-slider.d.ts +73 -0
- package/dist/components/slider/column-config-slider.js +106 -108
- package/dist/components/slider/slider.d.ts +81 -0
- package/dist/components/slider/slider.js +103 -133
- package/dist/components/slider/utils.d.ts +16 -0
- package/dist/components/slider/utils.js +23 -32
- package/dist/components/smart-image/image-analysis-worker.d.ts +1 -0
- package/dist/components/smart-image/smart-image.d.ts +101 -0
- package/dist/components/smart-image/smart-image.js +285 -1
- package/dist/components/spacer/spacer.d.ts +45 -0
- package/dist/components/spacer/spacer.js +12 -19
- package/dist/components/tabs/tabs.d.ts +117 -0
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.d.ts +47 -0
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.d.ts +46 -0
- package/dist/components/toggle/toggle.js +6 -16
- package/dist/components/toggle-button/toggle-button.d.ts +73 -0
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +83 -0
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{debounce-throttle-LSPAPFtq.js → debounce-throttle-DklGQQrz.js} +12 -12
- package/dist/{dist-jw8wvxoG.js → dist-DpXluZqJ.js} +4 -3
- package/dist/{draggable-Cxv-OueQ.js → draggable-9MfdTVWP.js} +1597 -1230
- package/dist/{es-dash-BuShf_ht.js → es-dash-DunirOmV.js} +59 -35
- package/dist/{gradient-editor-CInqVF8v.js → gradient-editor-yqSw0uPA.js} +182 -119
- package/dist/icons/block-icon.d.ts +30 -0
- package/dist/icons/block-icon.js +6 -10
- package/dist/icons/generated-icon-loaders.d.ts +5 -0
- package/dist/icons/generated-icon-loaders.js +2 -1
- package/dist/icons/generic-color-swatch.d.ts +6 -0
- package/dist/icons/generic-color-swatch.js +1 -1
- package/dist/icons/icon.d.ts +18 -0
- package/dist/icons/icon.js +12 -8
- package/dist/icons/icons.d.ts +7 -0
- package/dist/icons/icons.js +1 -1
- package/dist/icons/index.d.ts +7 -0
- package/dist/icons/index.js +3 -3
- package/dist/icons/internal.d.ts +6 -0
- package/dist/icons/internal.js +2 -2
- package/dist/icons/jsx-svg.d.ts +28 -0
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/icons/spinner.d.ts +17 -0
- package/dist/icons/spinner.js +3 -4
- package/dist/icons/ui-icons/a11y-warning.d.ts +1 -0
- package/dist/icons/ui-icons/a11y-warning.js +1 -1
- package/dist/icons/ui-icons/a11y.d.ts +1 -0
- package/dist/icons/ui-icons/a11y.js +1 -1
- package/dist/icons/ui-icons/accelerometer.d.ts +1 -0
- package/dist/icons/ui-icons/accelerometer.js +1 -1
- package/dist/icons/ui-icons/activity-log.d.ts +1 -0
- package/dist/icons/ui-icons/activity-log.js +1 -1
- package/dist/icons/ui-icons/add.d.ts +1 -0
- package/dist/icons/ui-icons/add.js +1 -1
- package/dist/icons/ui-icons/alert.d.ts +1 -0
- package/dist/icons/ui-icons/alert.js +1 -1
- package/dist/icons/ui-icons/align-horizontal-vertical-alt.d.ts +1 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt.js +1 -1
- package/dist/icons/ui-icons/align-horizontal-vertical-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt2.js +1 -1
- package/dist/icons/ui-icons/align-horizontal-vertical.d.ts +1 -0
- package/dist/icons/ui-icons/align-horizontal-vertical.js +1 -1
- package/dist/icons/ui-icons/alt-text-generic-alt.d.ts +1 -0
- package/dist/icons/ui-icons/alt-text-generic-alt.js +1 -1
- package/dist/icons/ui-icons/alt-text-generic.d.ts +1 -0
- package/dist/icons/ui-icons/alt-text-generic.js +1 -1
- package/dist/icons/ui-icons/alt-text.d.ts +1 -0
- package/dist/icons/ui-icons/alt-text.js +1 -1
- package/dist/icons/ui-icons/anchor-page.d.ts +1 -0
- package/dist/icons/ui-icons/anchor-page.js +1 -1
- package/dist/icons/ui-icons/anchor.d.ts +1 -0
- package/dist/icons/ui-icons/anchor.js +1 -1
- package/dist/icons/ui-icons/angle.d.ts +1 -0
- package/dist/icons/ui-icons/angle.js +1 -1
- package/dist/icons/ui-icons/animation-file.d.ts +1 -0
- package/dist/icons/ui-icons/animation-file.js +1 -1
- package/dist/icons/ui-icons/animation-generic.d.ts +1 -0
- package/dist/icons/ui-icons/animation-generic.js +1 -1
- package/dist/icons/ui-icons/animation-list-generic.d.ts +1 -0
- package/dist/icons/ui-icons/animation-list-generic.js +1 -1
- package/dist/icons/ui-icons/animation-settings-generic.d.ts +1 -0
- package/dist/icons/ui-icons/animation-settings-generic.js +1 -1
- package/dist/icons/ui-icons/animation.d.ts +1 -0
- package/dist/icons/ui-icons/animation.js +1 -1
- package/dist/icons/ui-icons/archive-file.d.ts +1 -0
- package/dist/icons/ui-icons/archive-file.js +1 -1
- package/dist/icons/ui-icons/archive.d.ts +1 -0
- package/dist/icons/ui-icons/archive.js +1 -1
- package/dist/icons/ui-icons/aria-label.d.ts +1 -0
- package/dist/icons/ui-icons/aria-label.js +1 -1
- package/dist/icons/ui-icons/arrow-down-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-down-circle-alt.js +1 -1
- package/dist/icons/ui-icons/arrow-down-circle.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-down-circle.js +1 -1
- package/dist/icons/ui-icons/arrow-down-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-down-square-alt.js +1 -1
- package/dist/icons/ui-icons/arrow-down-square.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-down-square.js +1 -1
- package/dist/icons/ui-icons/arrow-down.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-down.js +1 -1
- package/dist/icons/ui-icons/arrow-left-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-left-circle-alt.js +1 -1
- package/dist/icons/ui-icons/arrow-left-circle.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-left-circle.js +1 -1
- package/dist/icons/ui-icons/arrow-left-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-left-square-alt.js +1 -1
- package/dist/icons/ui-icons/arrow-left-square.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-left-square.js +1 -1
- package/dist/icons/ui-icons/arrow-left.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-left.js +1 -1
- package/dist/icons/ui-icons/arrow-right-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-right-circle-alt.js +1 -1
- package/dist/icons/ui-icons/arrow-right-circle.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-right-circle.js +1 -1
- package/dist/icons/ui-icons/arrow-right-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-right-square-alt.js +1 -1
- package/dist/icons/ui-icons/arrow-right-square.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-right-square.js +1 -1
- package/dist/icons/ui-icons/arrow-right.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-right.js +1 -1
- package/dist/icons/ui-icons/arrow-up-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-up-circle-alt.js +1 -1
- package/dist/icons/ui-icons/arrow-up-circle.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-up-circle.js +1 -1
- package/dist/icons/ui-icons/arrow-up-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-up-square-alt.js +1 -1
- package/dist/icons/ui-icons/arrow-up-square.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-up-square.js +1 -1
- package/dist/icons/ui-icons/arrow-up.d.ts +1 -0
- package/dist/icons/ui-icons/arrow-up.js +1 -1
- package/dist/icons/ui-icons/arrows-down.d.ts +1 -0
- package/dist/icons/ui-icons/arrows-down.js +1 -1
- package/dist/icons/ui-icons/arrows-horizontal.d.ts +1 -0
- package/dist/icons/ui-icons/arrows-horizontal.js +1 -1
- package/dist/icons/ui-icons/arrows-left-diagonal.d.ts +1 -0
- package/dist/icons/ui-icons/arrows-left-diagonal.js +1 -1
- package/dist/icons/ui-icons/arrows-left.d.ts +1 -0
- package/dist/icons/ui-icons/arrows-left.js +1 -1
- package/dist/icons/ui-icons/arrows-right-diagonal.d.ts +1 -0
- package/dist/icons/ui-icons/arrows-right-diagonal.js +1 -1
- package/dist/icons/ui-icons/arrows-right.d.ts +1 -0
- package/dist/icons/ui-icons/arrows-right.js +1 -1
- package/dist/icons/ui-icons/arrows-up.d.ts +1 -0
- package/dist/icons/ui-icons/arrows-up.js +1 -1
- package/dist/icons/ui-icons/arrows-vertical.d.ts +1 -0
- package/dist/icons/ui-icons/arrows-vertical.js +1 -1
- package/dist/icons/ui-icons/aspect-ratio-auto.d.ts +1 -0
- package/dist/icons/ui-icons/aspect-ratio-auto.js +1 -1
- package/dist/icons/ui-icons/aspect-ratio-nine-sixteen.d.ts +1 -0
- package/dist/icons/ui-icons/aspect-ratio-nine-sixteen.js +1 -1
- package/dist/icons/ui-icons/aspect-ratio-sixteen-nine.d.ts +1 -0
- package/dist/icons/ui-icons/aspect-ratio-sixteen-nine.js +1 -1
- package/dist/icons/ui-icons/aspect-ratio-square.d.ts +1 -0
- package/dist/icons/ui-icons/aspect-ratio-square.js +1 -1
- package/dist/icons/ui-icons/aspect-ratio-three-two.d.ts +1 -0
- package/dist/icons/ui-icons/aspect-ratio-three-two.js +1 -1
- package/dist/icons/ui-icons/aspect-ratio-twenty-one-nine.d.ts +1 -0
- package/dist/icons/ui-icons/aspect-ratio-twenty-one-nine.js +1 -1
- package/dist/icons/ui-icons/aspect-ratio.d.ts +1 -0
- package/dist/icons/ui-icons/aspect-ratio.js +1 -1
- package/dist/icons/ui-icons/attachment.d.ts +1 -0
- package/dist/icons/ui-icons/attachment.js +1 -1
- package/dist/icons/ui-icons/auto-close.d.ts +1 -0
- package/dist/icons/ui-icons/auto-close.js +1 -1
- package/dist/icons/ui-icons/auto-pause-scroll.d.ts +1 -0
- package/dist/icons/ui-icons/auto-pause-scroll.js +1 -1
- package/dist/icons/ui-icons/auto-pause.d.ts +1 -0
- package/dist/icons/ui-icons/auto-pause.js +1 -1
- package/dist/icons/ui-icons/automatic-alt.d.ts +1 -0
- package/dist/icons/ui-icons/automatic-alt.js +1 -1
- package/dist/icons/ui-icons/automatic.d.ts +1 -0
- package/dist/icons/ui-icons/automatic.js +1 -1
- package/dist/icons/ui-icons/autoplay-alt.d.ts +1 -0
- package/dist/icons/ui-icons/autoplay-alt.js +1 -1
- package/dist/icons/ui-icons/autoplay-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/autoplay-alt2.js +1 -1
- package/dist/icons/ui-icons/autoplay.d.ts +1 -0
- package/dist/icons/ui-icons/autoplay.js +1 -1
- package/dist/icons/ui-icons/award.d.ts +1 -0
- package/dist/icons/ui-icons/award.js +1 -1
- package/dist/icons/ui-icons/background-blur.d.ts +1 -0
- package/dist/icons/ui-icons/background-blur.js +1 -1
- package/dist/icons/ui-icons/background-color-swatch.d.ts +1 -0
- package/dist/icons/ui-icons/background-color-swatch.js +1 -1
- package/dist/icons/ui-icons/background-image.d.ts +1 -0
- package/dist/icons/ui-icons/background-image.js +1 -1
- package/dist/icons/ui-icons/background-repeat.d.ts +1 -0
- package/dist/icons/ui-icons/background-repeat.js +1 -1
- package/dist/icons/ui-icons/background-type-alt.d.ts +1 -0
- package/dist/icons/ui-icons/background-type-alt.js +1 -1
- package/dist/icons/ui-icons/background-type-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/background-type-alt2.js +1 -1
- package/dist/icons/ui-icons/background-type.d.ts +1 -0
- package/dist/icons/ui-icons/background-type.js +1 -1
- package/dist/icons/ui-icons/block-parts.d.ts +1 -0
- package/dist/icons/ui-icons/block-parts.js +1 -1
- package/dist/icons/ui-icons/bold.d.ts +1 -0
- package/dist/icons/ui-icons/bold.js +1 -1
- package/dist/icons/ui-icons/book.d.ts +1 -0
- package/dist/icons/ui-icons/book.js +1 -1
- package/dist/icons/ui-icons/bookmark.d.ts +1 -0
- package/dist/icons/ui-icons/bookmark.js +1 -1
- package/dist/icons/ui-icons/boolean-exclude.d.ts +1 -0
- package/dist/icons/ui-icons/boolean-exclude.js +1 -1
- package/dist/icons/ui-icons/boolean-intersect.d.ts +1 -0
- package/dist/icons/ui-icons/boolean-intersect.js +1 -1
- package/dist/icons/ui-icons/boolean-subtract.d.ts +1 -0
- package/dist/icons/ui-icons/boolean-subtract.js +1 -1
- package/dist/icons/ui-icons/boolean-union.d.ts +1 -0
- package/dist/icons/ui-icons/boolean-union.js +1 -1
- package/dist/icons/ui-icons/border-color.d.ts +1 -0
- package/dist/icons/ui-icons/border-color.js +1 -1
- package/dist/icons/ui-icons/border.d.ts +1 -0
- package/dist/icons/ui-icons/border.js +1 -1
- package/dist/icons/ui-icons/bot-deny.d.ts +1 -0
- package/dist/icons/ui-icons/bot-deny.js +1 -1
- package/dist/icons/ui-icons/bot.d.ts +1 -0
- package/dist/icons/ui-icons/bot.js +1 -1
- package/dist/icons/ui-icons/box.d.ts +1 -0
- package/dist/icons/ui-icons/box.js +1 -1
- package/dist/icons/ui-icons/brain.d.ts +1 -0
- package/dist/icons/ui-icons/brain.js +1 -1
- package/dist/icons/ui-icons/branch-fork.d.ts +1 -0
- package/dist/icons/ui-icons/branch-fork.js +1 -1
- package/dist/icons/ui-icons/branch.d.ts +1 -0
- package/dist/icons/ui-icons/branch.js +1 -1
- package/dist/icons/ui-icons/briefcase.d.ts +1 -0
- package/dist/icons/ui-icons/briefcase.js +1 -1
- package/dist/icons/ui-icons/browser.d.ts +1 -0
- package/dist/icons/ui-icons/browser.js +1 -1
- package/dist/icons/ui-icons/button-disabled.d.ts +1 -0
- package/dist/icons/ui-icons/button-disabled.js +1 -1
- package/dist/icons/ui-icons/button-filled.d.ts +1 -0
- package/dist/icons/ui-icons/button-filled.js +1 -1
- package/dist/icons/ui-icons/button-ghost.d.ts +1 -0
- package/dist/icons/ui-icons/button-ghost.js +1 -1
- package/dist/icons/ui-icons/button-outline.d.ts +1 -0
- package/dist/icons/ui-icons/button-outline.js +1 -1
- package/dist/icons/ui-icons/calculator.d.ts +1 -0
- package/dist/icons/ui-icons/calculator.js +1 -1
- package/dist/icons/ui-icons/calendar-add.d.ts +1 -0
- package/dist/icons/ui-icons/calendar-add.js +1 -1
- package/dist/icons/ui-icons/calendar-download.d.ts +1 -0
- package/dist/icons/ui-icons/calendar-download.js +1 -1
- package/dist/icons/ui-icons/calendar-remove.d.ts +1 -0
- package/dist/icons/ui-icons/calendar-remove.js +1 -1
- package/dist/icons/ui-icons/calendar.d.ts +1 -0
- package/dist/icons/ui-icons/calendar.js +1 -1
- package/dist/icons/ui-icons/caption-generic.d.ts +1 -0
- package/dist/icons/ui-icons/caption-generic.js +1 -1
- package/dist/icons/ui-icons/card-featured.d.ts +1 -0
- package/dist/icons/ui-icons/card-featured.js +1 -1
- package/dist/icons/ui-icons/caret-down-fill.d.ts +1 -0
- package/dist/icons/ui-icons/caret-down-fill.js +1 -1
- package/dist/icons/ui-icons/caret-down.d.ts +1 -0
- package/dist/icons/ui-icons/caret-down.js +1 -1
- package/dist/icons/ui-icons/caret-left-fill.d.ts +1 -0
- package/dist/icons/ui-icons/caret-left-fill.js +1 -1
- package/dist/icons/ui-icons/caret-left.d.ts +1 -0
- package/dist/icons/ui-icons/caret-left.js +1 -1
- package/dist/icons/ui-icons/caret-right-fill.d.ts +1 -0
- package/dist/icons/ui-icons/caret-right-fill.js +1 -1
- package/dist/icons/ui-icons/caret-right.d.ts +1 -0
- package/dist/icons/ui-icons/caret-right.js +1 -1
- package/dist/icons/ui-icons/caret-up-fill.d.ts +1 -0
- package/dist/icons/ui-icons/caret-up-fill.js +1 -1
- package/dist/icons/ui-icons/caret-up.d.ts +1 -0
- package/dist/icons/ui-icons/caret-up.js +1 -1
- package/dist/icons/ui-icons/center-point.d.ts +1 -0
- package/dist/icons/ui-icons/center-point.js +1 -1
- package/dist/icons/ui-icons/chat-bubble-alt.d.ts +1 -0
- package/dist/icons/ui-icons/chat-bubble-alt.js +1 -1
- package/dist/icons/ui-icons/chat-bubble.d.ts +1 -0
- package/dist/icons/ui-icons/chat-bubble.js +1 -1
- package/dist/icons/ui-icons/chat.d.ts +1 -0
- package/dist/icons/ui-icons/chat.js +1 -1
- package/dist/icons/ui-icons/check-circle-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/check-circle-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/check-circle-fill.d.ts +1 -0
- package/dist/icons/ui-icons/check-circle-fill.js +1 -1
- package/dist/icons/ui-icons/check-circle.d.ts +1 -0
- package/dist/icons/ui-icons/check-circle.js +1 -1
- package/dist/icons/ui-icons/check-square.d.ts +1 -0
- package/dist/icons/ui-icons/check-square.js +1 -1
- package/dist/icons/ui-icons/check.d.ts +1 -0
- package/dist/icons/ui-icons/check.js +1 -1
- package/dist/icons/ui-icons/checks-circle.d.ts +1 -0
- package/dist/icons/ui-icons/checks-circle.js +1 -1
- package/dist/icons/ui-icons/checks.d.ts +1 -0
- package/dist/icons/ui-icons/checks.js +1 -1
- package/dist/icons/ui-icons/chevron-down.d.ts +1 -0
- package/dist/icons/ui-icons/chevron-down.js +1 -1
- package/dist/icons/ui-icons/chevron-left.d.ts +1 -0
- package/dist/icons/ui-icons/chevron-left.js +1 -1
- package/dist/icons/ui-icons/chevron-right.d.ts +1 -0
- package/dist/icons/ui-icons/chevron-right.js +1 -1
- package/dist/icons/ui-icons/chevron-up.d.ts +1 -0
- package/dist/icons/ui-icons/chevron-up.js +1 -1
- package/dist/icons/ui-icons/clear-alt.d.ts +1 -0
- package/dist/icons/ui-icons/clear-alt.js +1 -1
- package/dist/icons/ui-icons/clear.d.ts +1 -0
- package/dist/icons/ui-icons/clear.js +1 -1
- package/dist/icons/ui-icons/clipboard-plain.d.ts +1 -0
- package/dist/icons/ui-icons/clipboard-plain.js +1 -1
- package/dist/icons/ui-icons/clipboard.d.ts +1 -0
- package/dist/icons/ui-icons/clipboard.js +1 -1
- package/dist/icons/ui-icons/clock.d.ts +1 -0
- package/dist/icons/ui-icons/clock.js +1 -1
- package/dist/icons/ui-icons/closed-captions.d.ts +1 -0
- package/dist/icons/ui-icons/closed-captions.js +1 -1
- package/dist/icons/ui-icons/code-variable.d.ts +1 -0
- package/dist/icons/ui-icons/code-variable.js +1 -1
- package/dist/icons/ui-icons/code.d.ts +1 -0
- package/dist/icons/ui-icons/code.js +1 -1
- package/dist/icons/ui-icons/color-alt.d.ts +1 -0
- package/dist/icons/ui-icons/color-alt.js +1 -1
- package/dist/icons/ui-icons/color-fill-swatch.d.ts +1 -0
- package/dist/icons/ui-icons/color-fill-swatch.js +1 -1
- package/dist/icons/ui-icons/color-picker-fill.d.ts +1 -0
- package/dist/icons/ui-icons/color-picker-fill.js +1 -1
- package/dist/icons/ui-icons/color-picker-list-marker.d.ts +1 -0
- package/dist/icons/ui-icons/color-picker-list-marker.js +1 -1
- package/dist/icons/ui-icons/color-picker-text-highlight.d.ts +1 -0
- package/dist/icons/ui-icons/color-picker-text-highlight.js +1 -1
- package/dist/icons/ui-icons/color-picker-text.d.ts +1 -0
- package/dist/icons/ui-icons/color-picker-text.js +1 -1
- package/dist/icons/ui-icons/color-select.d.ts +1 -0
- package/dist/icons/ui-icons/color-select.js +1 -1
- package/dist/icons/ui-icons/color.d.ts +1 -0
- package/dist/icons/ui-icons/color.js +1 -1
- package/dist/icons/ui-icons/column-gutters-lr.d.ts +1 -0
- package/dist/icons/ui-icons/column-gutters-lr.js +3 -3
- package/dist/icons/ui-icons/columns.d.ts +1 -0
- package/dist/icons/ui-icons/columns.js +1 -1
- package/dist/icons/ui-icons/columns3366.d.ts +1 -0
- package/dist/icons/ui-icons/columns3366.js +1 -1
- package/dist/icons/ui-icons/columns6633.d.ts +1 -0
- package/dist/icons/ui-icons/columns6633.js +1 -1
- package/dist/icons/ui-icons/component-generic.d.ts +1 -0
- package/dist/icons/ui-icons/component-generic.js +1 -1
- package/dist/icons/ui-icons/component-options.d.ts +1 -0
- package/dist/icons/ui-icons/component-options.js +1 -1
- package/dist/icons/ui-icons/condition-h.d.ts +1 -0
- package/dist/icons/ui-icons/condition-h.js +1 -1
- package/dist/icons/ui-icons/condition-v.d.ts +1 -0
- package/dist/icons/ui-icons/condition-v.js +1 -1
- package/dist/icons/ui-icons/conditional-visibility.d.ts +1 -0
- package/dist/icons/ui-icons/conditional-visibility.js +1 -1
- package/dist/icons/ui-icons/container-height.d.ts +1 -0
- package/dist/icons/ui-icons/container-height.js +1 -1
- package/dist/icons/ui-icons/container-spacing-h.d.ts +1 -0
- package/dist/icons/ui-icons/container-spacing-h.js +1 -1
- package/dist/icons/ui-icons/container-spacing.d.ts +1 -0
- package/dist/icons/ui-icons/container-spacing.js +1 -1
- package/dist/icons/ui-icons/container-width.d.ts +1 -0
- package/dist/icons/ui-icons/container-width.js +1 -1
- package/dist/icons/ui-icons/content-bottom-left.d.ts +1 -0
- package/dist/icons/ui-icons/content-bottom-left.js +1 -1
- package/dist/icons/ui-icons/content-bottom-right.d.ts +1 -0
- package/dist/icons/ui-icons/content-bottom-right.js +1 -1
- package/dist/icons/ui-icons/content-center.d.ts +1 -0
- package/dist/icons/ui-icons/content-center.js +1 -1
- package/dist/icons/ui-icons/content-top-left.d.ts +1 -0
- package/dist/icons/ui-icons/content-top-left.js +1 -1
- package/dist/icons/ui-icons/content-top-right.d.ts +1 -0
- package/dist/icons/ui-icons/content-top-right.js +1 -1
- package/dist/icons/ui-icons/contrast-alt.d.ts +1 -0
- package/dist/icons/ui-icons/contrast-alt.js +1 -1
- package/dist/icons/ui-icons/contrast.d.ts +1 -0
- package/dist/icons/ui-icons/contrast.js +1 -1
- package/dist/icons/ui-icons/cookie-alt.d.ts +1 -0
- package/dist/icons/ui-icons/cookie-alt.js +1 -1
- package/dist/icons/ui-icons/cookie.d.ts +1 -0
- package/dist/icons/ui-icons/cookie.js +1 -1
- package/dist/icons/ui-icons/copy.d.ts +1 -0
- package/dist/icons/ui-icons/copy.js +1 -1
- package/dist/icons/ui-icons/currency.d.ts +1 -0
- package/dist/icons/ui-icons/currency.js +1 -1
- package/dist/icons/ui-icons/current-page.d.ts +1 -0
- package/dist/icons/ui-icons/current-page.js +1 -1
- package/dist/icons/ui-icons/cursor-disabled.d.ts +1 -0
- package/dist/icons/ui-icons/cursor-disabled.js +1 -1
- package/dist/icons/ui-icons/cursor-move.d.ts +1 -0
- package/dist/icons/ui-icons/cursor-move.js +1 -1
- package/dist/icons/ui-icons/dark-mode.d.ts +1 -0
- package/dist/icons/ui-icons/dark-mode.js +1 -1
- package/dist/icons/ui-icons/data.d.ts +1 -0
- package/dist/icons/ui-icons/data.js +1 -1
- package/dist/icons/ui-icons/date-time.d.ts +1 -0
- package/dist/icons/ui-icons/date-time.js +1 -1
- package/dist/icons/ui-icons/defer.d.ts +1 -0
- package/dist/icons/ui-icons/defer.js +1 -1
- package/dist/icons/ui-icons/description-link.d.ts +1 -0
- package/dist/icons/ui-icons/description-link.js +1 -1
- package/dist/icons/ui-icons/design.d.ts +1 -0
- package/dist/icons/ui-icons/design.js +1 -1
- package/dist/icons/ui-icons/dice.d.ts +1 -0
- package/dist/icons/ui-icons/dice.js +1 -1
- package/dist/icons/ui-icons/divider-bottom.d.ts +1 -0
- package/dist/icons/ui-icons/divider-bottom.js +1 -1
- package/dist/icons/ui-icons/divider-side.d.ts +1 -0
- package/dist/icons/ui-icons/divider-side.js +1 -1
- package/dist/icons/ui-icons/divider-status.d.ts +1 -0
- package/dist/icons/ui-icons/divider-status.js +1 -1
- package/dist/icons/ui-icons/divider-top.d.ts +1 -0
- package/dist/icons/ui-icons/divider-top.js +1 -1
- package/dist/icons/ui-icons/divider.d.ts +1 -0
- package/dist/icons/ui-icons/divider.js +1 -1
- package/dist/icons/ui-icons/door-in.d.ts +1 -0
- package/dist/icons/ui-icons/door-in.js +1 -1
- package/dist/icons/ui-icons/door-out.d.ts +1 -0
- package/dist/icons/ui-icons/door-out.js +1 -1
- package/dist/icons/ui-icons/door.d.ts +1 -0
- package/dist/icons/ui-icons/door.js +1 -1
- package/dist/icons/ui-icons/download.d.ts +1 -0
- package/dist/icons/ui-icons/download.js +1 -1
- package/dist/icons/ui-icons/dropdown-caret-alt.d.ts +1 -0
- package/dist/icons/ui-icons/dropdown-caret-alt.js +1 -1
- package/dist/icons/ui-icons/dropdown-caret.d.ts +1 -0
- package/dist/icons/ui-icons/dropdown-caret.js +1 -1
- package/dist/icons/ui-icons/dropdown-close.d.ts +1 -0
- package/dist/icons/ui-icons/dropdown-close.js +1 -1
- package/dist/icons/ui-icons/dropdown-open.d.ts +1 -0
- package/dist/icons/ui-icons/dropdown-open.js +1 -1
- package/dist/icons/ui-icons/dropdown.d.ts +1 -0
- package/dist/icons/ui-icons/dropdown.js +1 -1
- package/dist/icons/ui-icons/dummy-spacer.d.ts +1 -0
- package/dist/icons/ui-icons/dummy-spacer.js +1 -1
- package/dist/icons/ui-icons/edit-options.d.ts +1 -0
- package/dist/icons/ui-icons/edit-options.js +1 -1
- package/dist/icons/ui-icons/edit.d.ts +1 -0
- package/dist/icons/ui-icons/edit.js +1 -1
- package/dist/icons/ui-icons/email-remove.d.ts +1 -0
- package/dist/icons/ui-icons/email-remove.js +1 -1
- package/dist/icons/ui-icons/email.d.ts +1 -0
- package/dist/icons/ui-icons/email.js +1 -1
- package/dist/icons/ui-icons/embed.d.ts +1 -0
- package/dist/icons/ui-icons/embed.js +1 -1
- package/dist/icons/ui-icons/empty-circle.d.ts +1 -0
- package/dist/icons/ui-icons/empty-circle.js +1 -1
- package/dist/icons/ui-icons/empty-rect.d.ts +1 -0
- package/dist/icons/ui-icons/empty-rect.js +1 -1
- package/dist/icons/ui-icons/equal-columns.d.ts +1 -0
- package/dist/icons/ui-icons/equal-columns.js +1 -1
- package/dist/icons/ui-icons/equal-rows.d.ts +1 -0
- package/dist/icons/ui-icons/equal-rows.js +1 -1
- package/dist/icons/ui-icons/equals.d.ts +1 -0
- package/dist/icons/ui-icons/equals.js +1 -1
- package/dist/icons/ui-icons/error-circle-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/error-circle-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/error-circle-fill.d.ts +1 -0
- package/dist/icons/ui-icons/error-circle-fill.js +1 -1
- package/dist/icons/ui-icons/error-circle.d.ts +1 -0
- package/dist/icons/ui-icons/error-circle.js +1 -1
- package/dist/icons/ui-icons/exclude-item-alt.d.ts +1 -0
- package/dist/icons/ui-icons/exclude-item-alt.js +1 -1
- package/dist/icons/ui-icons/exclude-item.d.ts +1 -0
- package/dist/icons/ui-icons/exclude-item.js +1 -1
- package/dist/icons/ui-icons/exclude.d.ts +1 -0
- package/dist/icons/ui-icons/exclude.js +1 -1
- package/dist/icons/ui-icons/expand-xl.d.ts +1 -0
- package/dist/icons/ui-icons/expand-xl.js +1 -1
- package/dist/icons/ui-icons/expand.d.ts +1 -0
- package/dist/icons/ui-icons/expand.js +1 -1
- package/dist/icons/ui-icons/experiment.d.ts +1 -0
- package/dist/icons/ui-icons/experiment.js +1 -1
- package/dist/icons/ui-icons/external-link.d.ts +1 -0
- package/dist/icons/ui-icons/external-link.js +1 -1
- package/dist/icons/ui-icons/extract-alt.d.ts +1 -0
- package/dist/icons/ui-icons/extract-alt.js +1 -1
- package/dist/icons/ui-icons/extract.d.ts +1 -0
- package/dist/icons/ui-icons/extract.js +1 -1
- package/dist/icons/ui-icons/eyedropper.d.ts +1 -0
- package/dist/icons/ui-icons/eyedropper.js +1 -1
- package/dist/icons/ui-icons/fast-forward.d.ts +1 -0
- package/dist/icons/ui-icons/fast-forward.js +1 -1
- package/dist/icons/ui-icons/fast-reverse.d.ts +1 -0
- package/dist/icons/ui-icons/fast-reverse.js +1 -1
- package/dist/icons/ui-icons/field-after-text.d.ts +1 -0
- package/dist/icons/ui-icons/field-after-text.js +1 -1
- package/dist/icons/ui-icons/field-before-text.d.ts +1 -0
- package/dist/icons/ui-icons/field-before-text.js +1 -1
- package/dist/icons/ui-icons/field-disabled.d.ts +1 -0
- package/dist/icons/ui-icons/field-disabled.js +1 -1
- package/dist/icons/ui-icons/field-help.d.ts +1 -0
- package/dist/icons/ui-icons/field-help.js +1 -1
- package/dist/icons/ui-icons/field-label.d.ts +1 -0
- package/dist/icons/ui-icons/field-label.js +1 -1
- package/dist/icons/ui-icons/field-name.d.ts +1 -0
- package/dist/icons/ui-icons/field-name.js +1 -1
- package/dist/icons/ui-icons/field-placeholder.d.ts +1 -0
- package/dist/icons/ui-icons/field-placeholder.js +1 -1
- package/dist/icons/ui-icons/field-readonly.d.ts +1 -0
- package/dist/icons/ui-icons/field-readonly.js +1 -1
- package/dist/icons/ui-icons/field-required.d.ts +1 -0
- package/dist/icons/ui-icons/field-required.js +1 -1
- package/dist/icons/ui-icons/field-type.d.ts +1 -0
- package/dist/icons/ui-icons/field-type.js +1 -1
- package/dist/icons/ui-icons/field-value.d.ts +1 -0
- package/dist/icons/ui-icons/field-value.js +1 -1
- package/dist/icons/ui-icons/field-width.d.ts +1 -0
- package/dist/icons/ui-icons/field-width.js +1 -1
- package/dist/icons/ui-icons/file-download.d.ts +1 -0
- package/dist/icons/ui-icons/file-download.js +1 -1
- package/dist/icons/ui-icons/file-error.d.ts +1 -0
- package/dist/icons/ui-icons/file-error.js +1 -1
- package/dist/icons/ui-icons/file-metadata.d.ts +1 -0
- package/dist/icons/ui-icons/file-metadata.js +1 -1
- package/dist/icons/ui-icons/file-pdf.d.ts +1 -0
- package/dist/icons/ui-icons/file-pdf.js +1 -1
- package/dist/icons/ui-icons/file-size-max.d.ts +1 -0
- package/dist/icons/ui-icons/file-size-max.js +1 -1
- package/dist/icons/ui-icons/file-size-min.d.ts +1 -0
- package/dist/icons/ui-icons/file-size-min.js +1 -1
- package/dist/icons/ui-icons/file-size.d.ts +1 -0
- package/dist/icons/ui-icons/file-size.js +1 -1
- package/dist/icons/ui-icons/file-type.d.ts +1 -0
- package/dist/icons/ui-icons/file-type.js +1 -1
- package/dist/icons/ui-icons/file-upload.d.ts +1 -0
- package/dist/icons/ui-icons/file-upload.js +1 -1
- package/dist/icons/ui-icons/file.d.ts +1 -0
- package/dist/icons/ui-icons/file.js +1 -1
- package/dist/icons/ui-icons/files.d.ts +1 -0
- package/dist/icons/ui-icons/files.js +1 -1
- package/dist/icons/ui-icons/fill-color.d.ts +1 -0
- package/dist/icons/ui-icons/fill-color.js +1 -1
- package/dist/icons/ui-icons/filter-alt.d.ts +1 -0
- package/dist/icons/ui-icons/filter-alt.js +1 -1
- package/dist/icons/ui-icons/filter.d.ts +1 -0
- package/dist/icons/ui-icons/filter.js +1 -1
- package/dist/icons/ui-icons/flag-alt.d.ts +1 -0
- package/dist/icons/ui-icons/flag-alt.js +1 -1
- package/dist/icons/ui-icons/flag.d.ts +1 -0
- package/dist/icons/ui-icons/flag.js +1 -1
- package/dist/icons/ui-icons/flip-h.d.ts +1 -0
- package/dist/icons/ui-icons/flip-h.js +1 -1
- package/dist/icons/ui-icons/flip-v.d.ts +1 -0
- package/dist/icons/ui-icons/flip-v.js +1 -1
- package/dist/icons/ui-icons/focus.d.ts +1 -0
- package/dist/icons/ui-icons/focus.js +1 -1
- package/dist/icons/ui-icons/folder-add.d.ts +1 -0
- package/dist/icons/ui-icons/folder-add.js +1 -1
- package/dist/icons/ui-icons/folder-open-solid.d.ts +1 -0
- package/dist/icons/ui-icons/folder-open-solid.js +1 -1
- package/dist/icons/ui-icons/folder-open.d.ts +1 -0
- package/dist/icons/ui-icons/folder-open.js +1 -1
- package/dist/icons/ui-icons/folder-solid.d.ts +1 -0
- package/dist/icons/ui-icons/folder-solid.js +1 -1
- package/dist/icons/ui-icons/folder-top-level.d.ts +1 -0
- package/dist/icons/ui-icons/folder-top-level.js +1 -1
- package/dist/icons/ui-icons/folder.d.ts +1 -0
- package/dist/icons/ui-icons/folder.js +1 -1
- package/dist/icons/ui-icons/font-family.d.ts +1 -0
- package/dist/icons/ui-icons/font-family.js +1 -1
- package/dist/icons/ui-icons/footer.d.ts +1 -0
- package/dist/icons/ui-icons/footer.js +1 -1
- package/dist/icons/ui-icons/form-alt.d.ts +1 -0
- package/dist/icons/ui-icons/form-alt.js +1 -1
- package/dist/icons/ui-icons/form.d.ts +1 -0
- package/dist/icons/ui-icons/form.js +1 -1
- package/dist/icons/ui-icons/four-columns.d.ts +1 -0
- package/dist/icons/ui-icons/four-columns.js +1 -1
- package/dist/icons/ui-icons/frame.d.ts +1 -0
- package/dist/icons/ui-icons/frame.js +1 -1
- package/dist/icons/ui-icons/full-max-shield.d.ts +1 -0
- package/dist/icons/ui-icons/full-max-shield.js +1 -1
- package/dist/icons/ui-icons/full-max-text.d.ts +1 -0
- package/dist/icons/ui-icons/full-max-text.js +1 -1
- package/dist/icons/ui-icons/full-width-image.d.ts +1 -0
- package/dist/icons/ui-icons/full-width-image.js +1 -1
- package/dist/icons/ui-icons/gears-fill.d.ts +1 -0
- package/dist/icons/ui-icons/gears-fill.js +1 -1
- package/dist/icons/ui-icons/gears.d.ts +1 -0
- package/dist/icons/ui-icons/gears.js +1 -1
- package/dist/icons/ui-icons/generic-color-swatch.d.ts +1 -0
- package/dist/icons/ui-icons/generic-color-swatch.js +1 -1
- package/dist/icons/ui-icons/generic-shapes-alt.d.ts +1 -0
- package/dist/icons/ui-icons/generic-shapes-alt.js +1 -1
- package/dist/icons/ui-icons/generic-shapes.d.ts +1 -0
- package/dist/icons/ui-icons/generic-shapes.js +1 -1
- package/dist/icons/ui-icons/globe-anchor.d.ts +1 -0
- package/dist/icons/ui-icons/globe-anchor.js +1 -1
- package/dist/icons/ui-icons/globe-hash.d.ts +1 -0
- package/dist/icons/ui-icons/globe-hash.js +1 -1
- package/dist/icons/ui-icons/globe.d.ts +1 -0
- package/dist/icons/ui-icons/globe.js +1 -1
- package/dist/icons/ui-icons/google-tag-manager.d.ts +1 -0
- package/dist/icons/ui-icons/google-tag-manager.js +1 -1
- package/dist/icons/ui-icons/gradient-repeat.d.ts +1 -0
- package/dist/icons/ui-icons/gradient-repeat.js +1 -1
- package/dist/icons/ui-icons/gradient-stop.d.ts +1 -0
- package/dist/icons/ui-icons/gradient-stop.js +1 -1
- package/dist/icons/ui-icons/gradient.d.ts +1 -0
- package/dist/icons/ui-icons/gradient.js +1 -1
- package/dist/icons/ui-icons/grid-alt.d.ts +1 -0
- package/dist/icons/ui-icons/grid-alt.js +1 -1
- package/dist/icons/ui-icons/grid-auto-cols.d.ts +1 -0
- package/dist/icons/ui-icons/grid-auto-cols.js +1 -1
- package/dist/icons/ui-icons/grid-auto-rows.d.ts +1 -0
- package/dist/icons/ui-icons/grid-auto-rows.js +1 -1
- package/dist/icons/ui-icons/grid-col.d.ts +1 -0
- package/dist/icons/ui-icons/grid-col.js +1 -1
- package/dist/icons/ui-icons/grid-height.d.ts +1 -0
- package/dist/icons/ui-icons/grid-height.js +1 -1
- package/dist/icons/ui-icons/grid-list-toggle.d.ts +1 -0
- package/dist/icons/ui-icons/grid-list-toggle.js +1 -1
- package/dist/icons/ui-icons/grid-manual.d.ts +1 -0
- package/dist/icons/ui-icons/grid-manual.js +1 -1
- package/dist/icons/ui-icons/grid-row.d.ts +1 -0
- package/dist/icons/ui-icons/grid-row.js +1 -1
- package/dist/icons/ui-icons/grid-width.d.ts +1 -0
- package/dist/icons/ui-icons/grid-width.js +1 -1
- package/dist/icons/ui-icons/group.d.ts +1 -0
- package/dist/icons/ui-icons/group.js +1 -1
- package/dist/icons/ui-icons/gutter.d.ts +1 -0
- package/dist/icons/ui-icons/gutter.js +1 -1
- package/dist/icons/ui-icons/gyroscope.d.ts +1 -0
- package/dist/icons/ui-icons/gyroscope.js +1 -1
- package/dist/icons/ui-icons/h1.d.ts +1 -0
- package/dist/icons/ui-icons/h1.js +1 -1
- package/dist/icons/ui-icons/h2.d.ts +1 -0
- package/dist/icons/ui-icons/h2.js +1 -1
- package/dist/icons/ui-icons/h3.d.ts +1 -0
- package/dist/icons/ui-icons/h3.js +1 -1
- package/dist/icons/ui-icons/h4.d.ts +1 -0
- package/dist/icons/ui-icons/h4.js +1 -1
- package/dist/icons/ui-icons/h5.d.ts +1 -0
- package/dist/icons/ui-icons/h5.js +1 -1
- package/dist/icons/ui-icons/h6.d.ts +1 -0
- package/dist/icons/ui-icons/h6.js +1 -1
- package/dist/icons/ui-icons/hamburger-menu.d.ts +1 -0
- package/dist/icons/ui-icons/hamburger-menu.js +1 -1
- package/dist/icons/ui-icons/hard-drive.d.ts +1 -0
- package/dist/icons/ui-icons/hard-drive.js +1 -1
- package/dist/icons/ui-icons/header.d.ts +1 -0
- package/dist/icons/ui-icons/header.js +1 -1
- package/dist/icons/ui-icons/heading-level-alt.d.ts +1 -0
- package/dist/icons/ui-icons/heading-level-alt.js +1 -1
- package/dist/icons/ui-icons/heading-level.d.ts +1 -0
- package/dist/icons/ui-icons/heading-level.js +1 -1
- package/dist/icons/ui-icons/heading.d.ts +1 -0
- package/dist/icons/ui-icons/heading.js +1 -1
- package/dist/icons/ui-icons/heart-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/heart-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/heart-fill.d.ts +1 -0
- package/dist/icons/ui-icons/heart-fill.js +1 -1
- package/dist/icons/ui-icons/heart.d.ts +1 -0
- package/dist/icons/ui-icons/heart.js +1 -1
- package/dist/icons/ui-icons/height.d.ts +1 -0
- package/dist/icons/ui-icons/height.js +1 -1
- package/dist/icons/ui-icons/help-alt.d.ts +1 -0
- package/dist/icons/ui-icons/help-alt.js +25 -0
- package/dist/icons/ui-icons/help-fill.d.ts +1 -0
- package/dist/icons/ui-icons/help-fill.js +4 -6
- package/dist/icons/ui-icons/help.d.ts +1 -0
- package/dist/icons/ui-icons/help.js +15 -18
- package/dist/icons/ui-icons/hide.d.ts +1 -0
- package/dist/icons/ui-icons/hide.js +1 -1
- package/dist/icons/ui-icons/highlighted-checkmark.d.ts +1 -0
- package/dist/icons/ui-icons/highlighted-checkmark.js +1 -1
- package/dist/icons/ui-icons/highlighted-exclamation-mark.d.ts +1 -0
- package/dist/icons/ui-icons/highlighted-exclamation-mark.js +1 -1
- package/dist/icons/ui-icons/history.d.ts +1 -0
- package/dist/icons/ui-icons/history.js +1 -1
- package/dist/icons/ui-icons/horizontal-align-alt.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align-alt.js +1 -1
- package/dist/icons/ui-icons/horizontal-align-around.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align-around.js +1 -1
- package/dist/icons/ui-icons/horizontal-align-between-alt.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align-between-alt.js +1 -1
- package/dist/icons/ui-icons/horizontal-align-between.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align-between.js +1 -1
- package/dist/icons/ui-icons/horizontal-align-center.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align-center.js +1 -1
- package/dist/icons/ui-icons/horizontal-align-evenly.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align-evenly.js +1 -1
- package/dist/icons/ui-icons/horizontal-align-left.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align-left.js +1 -1
- package/dist/icons/ui-icons/horizontal-align-right.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align-right.js +1 -1
- package/dist/icons/ui-icons/horizontal-align-stretch.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align-stretch.js +1 -1
- package/dist/icons/ui-icons/horizontal-align.d.ts +1 -0
- package/dist/icons/ui-icons/horizontal-align.js +1 -1
- package/dist/icons/ui-icons/hover-background-glow.d.ts +1 -0
- package/dist/icons/ui-icons/hover-background-glow.js +1 -1
- package/dist/icons/ui-icons/hover-background-type.d.ts +1 -0
- package/dist/icons/ui-icons/hover-background-type.js +1 -1
- package/dist/icons/ui-icons/hover-invert-object.d.ts +1 -0
- package/dist/icons/ui-icons/hover-invert-object.js +1 -1
- package/dist/icons/ui-icons/hover-invert-text.d.ts +1 -0
- package/dist/icons/ui-icons/hover-invert-text.js +1 -1
- package/dist/icons/ui-icons/hover-rotate.d.ts +1 -0
- package/dist/icons/ui-icons/hover-rotate.js +1 -1
- package/dist/icons/ui-icons/hover-zoom.d.ts +1 -0
- package/dist/icons/ui-icons/hover-zoom.js +1 -1
- package/dist/icons/ui-icons/hyphenate-alt.d.ts +1 -0
- package/dist/icons/ui-icons/hyphenate-alt.js +1 -1
- package/dist/icons/ui-icons/hyphenate-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/hyphenate-alt2.js +1 -1
- package/dist/icons/ui-icons/hyphenate.d.ts +1 -0
- package/dist/icons/ui-icons/hyphenate.js +1 -1
- package/dist/icons/ui-icons/icon-generic.d.ts +1 -0
- package/dist/icons/ui-icons/icon-generic.js +1 -1
- package/dist/icons/ui-icons/id-card.d.ts +1 -0
- package/dist/icons/ui-icons/id-card.js +1 -1
- package/dist/icons/ui-icons/id.d.ts +1 -0
- package/dist/icons/ui-icons/id.js +1 -1
- package/dist/icons/ui-icons/image-blur.d.ts +1 -0
- package/dist/icons/ui-icons/image-blur.js +1 -1
- package/dist/icons/ui-icons/image-caption.d.ts +1 -0
- package/dist/icons/ui-icons/image-caption.js +1 -1
- package/dist/icons/ui-icons/image-error.d.ts +1 -0
- package/dist/icons/ui-icons/image-error.js +1 -1
- package/dist/icons/ui-icons/image-file.d.ts +1 -0
- package/dist/icons/ui-icons/image-file.js +1 -1
- package/dist/icons/ui-icons/image-lazy-load.d.ts +1 -0
- package/dist/icons/ui-icons/image-lazy-load.js +1 -1
- package/dist/icons/ui-icons/image-opacity.d.ts +1 -0
- package/dist/icons/ui-icons/image-opacity.js +1 -1
- package/dist/icons/ui-icons/image-overlay-alt.d.ts +1 -0
- package/dist/icons/ui-icons/image-overlay-alt.js +1 -1
- package/dist/icons/ui-icons/image-overlay-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/image-overlay-alt2.js +1 -1
- package/dist/icons/ui-icons/image-overlay.d.ts +1 -0
- package/dist/icons/ui-icons/image-overlay.js +1 -1
- package/dist/icons/ui-icons/image-remove.d.ts +1 -0
- package/dist/icons/ui-icons/image-remove.js +1 -1
- package/dist/icons/ui-icons/image.d.ts +1 -0
- package/dist/icons/ui-icons/image.js +1 -1
- package/dist/icons/ui-icons/index.d.ts +752 -0
- package/dist/icons/ui-icons/index.js +2 -2
- package/dist/icons/ui-icons/info-circle-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/info-circle-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/info-circle-fill.d.ts +1 -0
- package/dist/icons/ui-icons/info-circle-fill.js +1 -1
- package/dist/icons/ui-icons/info-circle.d.ts +1 -0
- package/dist/icons/ui-icons/info-circle.js +1 -1
- package/dist/icons/ui-icons/info.d.ts +1 -0
- package/dist/icons/ui-icons/info.js +1 -1
- package/dist/icons/ui-icons/inherit.d.ts +1 -0
- package/dist/icons/ui-icons/inherit.js +1 -1
- package/dist/icons/ui-icons/inline-gradient-format.d.ts +1 -0
- package/dist/icons/ui-icons/inline-gradient-format.js +1 -1
- package/dist/icons/ui-icons/input-field.d.ts +1 -0
- package/dist/icons/ui-icons/input-field.js +1 -1
- package/dist/icons/ui-icons/italic.d.ts +1 -0
- package/dist/icons/ui-icons/italic.js +1 -1
- package/dist/icons/ui-icons/item-limit.d.ts +1 -0
- package/dist/icons/ui-icons/item-limit.js +1 -1
- package/dist/icons/ui-icons/item-select.d.ts +1 -0
- package/dist/icons/ui-icons/item-select.js +1 -1
- package/dist/icons/ui-icons/item-wrap.d.ts +1 -0
- package/dist/icons/ui-icons/item-wrap.js +1 -1
- package/dist/icons/ui-icons/items-per-page.d.ts +1 -0
- package/dist/icons/ui-icons/items-per-page.js +1 -1
- package/dist/icons/ui-icons/items-per-row.d.ts +1 -0
- package/dist/icons/ui-icons/items-per-row.js +1 -1
- package/dist/icons/ui-icons/key.d.ts +1 -0
- package/dist/icons/ui-icons/key.js +1 -1
- package/dist/icons/ui-icons/keyboard.d.ts +1 -0
- package/dist/icons/ui-icons/keyboard.js +1 -1
- package/dist/icons/ui-icons/large.d.ts +1 -0
- package/dist/icons/ui-icons/large.js +1 -1
- package/dist/icons/ui-icons/latest-posts.d.ts +1 -0
- package/dist/icons/ui-icons/latest-posts.js +1 -1
- package/dist/icons/ui-icons/layer-off.d.ts +1 -0
- package/dist/icons/ui-icons/layer-off.js +1 -1
- package/dist/icons/ui-icons/layer.d.ts +1 -0
- package/dist/icons/ui-icons/layer.js +1 -1
- package/dist/icons/ui-icons/layers.d.ts +1 -0
- package/dist/icons/ui-icons/layers.js +1 -1
- package/dist/icons/ui-icons/layout-alt.d.ts +1 -0
- package/dist/icons/ui-icons/layout-alt.js +1 -1
- package/dist/icons/ui-icons/layout-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/layout-alt2.js +1 -1
- package/dist/icons/ui-icons/layout-alt3.d.ts +1 -0
- package/dist/icons/ui-icons/layout-alt3.js +1 -1
- package/dist/icons/ui-icons/layout-alt4.d.ts +1 -0
- package/dist/icons/ui-icons/layout-alt4.js +1 -1
- package/dist/icons/ui-icons/layout-bento-box.d.ts +1 -0
- package/dist/icons/ui-icons/layout-bento-box.js +1 -1
- package/dist/icons/ui-icons/layout-masonry.d.ts +1 -0
- package/dist/icons/ui-icons/layout-masonry.js +1 -1
- package/dist/icons/ui-icons/layout.d.ts +1 -0
- package/dist/icons/ui-icons/layout.js +1 -1
- package/dist/icons/ui-icons/left-panel-alt.d.ts +1 -0
- package/dist/icons/ui-icons/left-panel-alt.js +1 -1
- package/dist/icons/ui-icons/left-panel.d.ts +1 -0
- package/dist/icons/ui-icons/left-panel.js +1 -1
- package/dist/icons/ui-icons/light-bulb-alt.d.ts +1 -0
- package/dist/icons/ui-icons/light-bulb-alt.js +1 -1
- package/dist/icons/ui-icons/light-bulb.d.ts +1 -0
- package/dist/icons/ui-icons/light-bulb.js +1 -1
- package/dist/icons/ui-icons/light-mode.d.ts +1 -0
- package/dist/icons/ui-icons/light-mode.js +1 -1
- package/dist/icons/ui-icons/limit-width.d.ts +1 -0
- package/dist/icons/ui-icons/limit-width.js +1 -1
- package/dist/icons/ui-icons/line-break-alt-off.d.ts +1 -0
- package/dist/icons/ui-icons/line-break-alt-off.js +1 -1
- package/dist/icons/ui-icons/line-break-alt.d.ts +1 -0
- package/dist/icons/ui-icons/line-break-alt.js +1 -1
- package/dist/icons/ui-icons/line-break-off-alt.d.ts +1 -0
- package/dist/icons/ui-icons/line-break-off-alt.js +1 -1
- package/dist/icons/ui-icons/line-break-off.d.ts +1 -0
- package/dist/icons/ui-icons/line-break-off.js +1 -1
- package/dist/icons/ui-icons/line-break.d.ts +1 -0
- package/dist/icons/ui-icons/line-break.js +1 -1
- package/dist/icons/ui-icons/line-breaks-hyphenation.d.ts +1 -0
- package/dist/icons/ui-icons/line-breaks-hyphenation.js +1 -1
- package/dist/icons/ui-icons/link-add.d.ts +1 -0
- package/dist/icons/ui-icons/link-add.js +1 -1
- package/dist/icons/ui-icons/link-nav.d.ts +1 -0
- package/dist/icons/ui-icons/link-nav.js +1 -1
- package/dist/icons/ui-icons/link-remove.d.ts +1 -0
- package/dist/icons/ui-icons/link-remove.js +1 -1
- package/dist/icons/ui-icons/link.d.ts +1 -0
- package/dist/icons/ui-icons/link.js +1 -1
- package/dist/icons/ui-icons/list-indent.d.ts +1 -0
- package/dist/icons/ui-icons/list-indent.js +1 -1
- package/dist/icons/ui-icons/list-ordered.d.ts +1 -0
- package/dist/icons/ui-icons/list-ordered.js +1 -1
- package/dist/icons/ui-icons/list-outdent.d.ts +1 -0
- package/dist/icons/ui-icons/list-outdent.js +1 -1
- package/dist/icons/ui-icons/list-unordered.d.ts +1 -0
- package/dist/icons/ui-icons/list-unordered.js +1 -1
- package/dist/icons/ui-icons/loader-alt.d.ts +1 -0
- package/dist/icons/ui-icons/loader-alt.js +1 -1
- package/dist/icons/ui-icons/loader.d.ts +1 -0
- package/dist/icons/ui-icons/loader.js +1 -1
- package/dist/icons/ui-icons/location-add.d.ts +1 -0
- package/dist/icons/ui-icons/location-add.js +1 -1
- package/dist/icons/ui-icons/location-allow.d.ts +1 -0
- package/dist/icons/ui-icons/location-allow.js +1 -1
- package/dist/icons/ui-icons/location-deny.d.ts +1 -0
- package/dist/icons/ui-icons/location-deny.js +1 -1
- package/dist/icons/ui-icons/location-settings.d.ts +1 -0
- package/dist/icons/ui-icons/location-settings.js +1 -1
- package/dist/icons/ui-icons/location.d.ts +1 -0
- package/dist/icons/ui-icons/location.js +1 -1
- package/dist/icons/ui-icons/lock.d.ts +1 -0
- package/dist/icons/ui-icons/lock.js +1 -1
- package/dist/icons/ui-icons/loop-mode.d.ts +1 -0
- package/dist/icons/ui-icons/loop-mode.js +1 -1
- package/dist/icons/ui-icons/magic-alt-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/magic-alt-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/magic-alt-fill.d.ts +1 -0
- package/dist/icons/ui-icons/magic-alt-fill.js +1 -1
- package/dist/icons/ui-icons/magic-alt.d.ts +1 -0
- package/dist/icons/ui-icons/magic-alt.js +1 -1
- package/dist/icons/ui-icons/magic-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/magic-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/magic-fill.d.ts +1 -0
- package/dist/icons/ui-icons/magic-fill.js +1 -1
- package/dist/icons/ui-icons/magic.d.ts +1 -0
- package/dist/icons/ui-icons/magic.js +1 -1
- package/dist/icons/ui-icons/map-layer-json.d.ts +1 -0
- package/dist/icons/ui-icons/map-layer-json.js +1 -1
- package/dist/icons/ui-icons/map-layer-raster.d.ts +1 -0
- package/dist/icons/ui-icons/map-layer-raster.js +1 -1
- package/dist/icons/ui-icons/map-layer-vector.d.ts +1 -0
- package/dist/icons/ui-icons/map-layer-vector.js +1 -1
- package/dist/icons/ui-icons/map-layer.d.ts +1 -0
- package/dist/icons/ui-icons/map-layer.js +1 -1
- package/dist/icons/ui-icons/map-pin.d.ts +1 -0
- package/dist/icons/ui-icons/map-pin.js +1 -1
- package/dist/icons/ui-icons/matrix-align-control-dot-active.d.ts +1 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-active.js +1 -1
- package/dist/icons/ui-icons/matrix-align-control-dot-inactive.d.ts +1 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-inactive.js +1 -1
- package/dist/icons/ui-icons/media.d.ts +1 -0
- package/dist/icons/ui-icons/media.js +1 -1
- package/dist/icons/ui-icons/medium.d.ts +1 -0
- package/dist/icons/ui-icons/medium.js +1 -1
- package/dist/icons/ui-icons/menu-item-check.d.ts +1 -0
- package/dist/icons/ui-icons/menu-item-check.js +1 -1
- package/dist/icons/ui-icons/menu-item-circle.d.ts +1 -0
- package/dist/icons/ui-icons/menu-item-circle.js +1 -1
- package/dist/icons/ui-icons/microphone.d.ts +1 -0
- package/dist/icons/ui-icons/microphone.js +1 -1
- package/dist/icons/ui-icons/migration-alt-v.d.ts +1 -0
- package/dist/icons/ui-icons/migration-alt-v.js +1 -1
- package/dist/icons/ui-icons/migration-alt.d.ts +1 -0
- package/dist/icons/ui-icons/migration-alt.js +1 -1
- package/dist/icons/ui-icons/migration.d.ts +1 -0
- package/dist/icons/ui-icons/migration.js +1 -1
- package/dist/icons/ui-icons/module.d.ts +1 -0
- package/dist/icons/ui-icons/module.js +1 -1
- package/dist/icons/ui-icons/money-paper.d.ts +1 -0
- package/dist/icons/ui-icons/money-paper.js +1 -1
- package/dist/icons/ui-icons/more-h-circle.d.ts +1 -0
- package/dist/icons/ui-icons/more-h-circle.js +1 -1
- package/dist/icons/ui-icons/more-h.d.ts +1 -0
- package/dist/icons/ui-icons/more-h.js +1 -1
- package/dist/icons/ui-icons/more-v-circle.d.ts +1 -0
- package/dist/icons/ui-icons/more-v-circle.js +1 -1
- package/dist/icons/ui-icons/more-v.d.ts +1 -0
- package/dist/icons/ui-icons/more-v.js +1 -1
- package/dist/icons/ui-icons/mouse-cursor.d.ts +1 -0
- package/dist/icons/ui-icons/mouse-cursor.js +1 -1
- package/dist/icons/ui-icons/mouse-wheel.d.ts +1 -0
- package/dist/icons/ui-icons/mouse-wheel.js +1 -1
- package/dist/icons/ui-icons/multi-item-left-inset-mobile.d.ts +1 -0
- package/dist/icons/ui-icons/multi-item-left-inset-mobile.js +1 -1
- package/dist/icons/ui-icons/multi-item-left-inset.d.ts +1 -0
- package/dist/icons/ui-icons/multi-item-left-inset.js +1 -1
- package/dist/icons/ui-icons/multi-item-right-inset-mobile.d.ts +1 -0
- package/dist/icons/ui-icons/multi-item-right-inset-mobile.js +1 -1
- package/dist/icons/ui-icons/multi-item-right-inset.d.ts +1 -0
- package/dist/icons/ui-icons/multi-item-right-inset.js +1 -1
- package/dist/icons/ui-icons/multiple.d.ts +1 -0
- package/dist/icons/ui-icons/multiple.js +1 -1
- package/dist/icons/ui-icons/music-note.d.ts +1 -0
- package/dist/icons/ui-icons/music-note.js +1 -1
- package/dist/icons/ui-icons/mute-centered.d.ts +1 -0
- package/dist/icons/ui-icons/mute-centered.js +1 -1
- package/dist/icons/ui-icons/mute.d.ts +1 -0
- package/dist/icons/ui-icons/mute.js +1 -1
- package/dist/icons/ui-icons/narrow-bottom.d.ts +1 -0
- package/dist/icons/ui-icons/narrow-bottom.js +1 -1
- package/dist/icons/ui-icons/narrow-left.d.ts +1 -0
- package/dist/icons/ui-icons/narrow-left.js +1 -1
- package/dist/icons/ui-icons/narrow-right.d.ts +1 -0
- package/dist/icons/ui-icons/narrow-right.js +1 -1
- package/dist/icons/ui-icons/narrow-top.d.ts +1 -0
- package/dist/icons/ui-icons/narrow-top.js +1 -1
- package/dist/icons/ui-icons/navigation-buttons.d.ts +1 -0
- package/dist/icons/ui-icons/navigation-buttons.js +1 -1
- package/dist/icons/ui-icons/new-tab.d.ts +1 -0
- package/dist/icons/ui-icons/new-tab.js +1 -1
- package/dist/icons/ui-icons/newspaper.d.ts +1 -0
- package/dist/icons/ui-icons/newspaper.js +1 -1
- package/dist/icons/ui-icons/none.d.ts +1 -0
- package/dist/icons/ui-icons/none.js +1 -1
- package/dist/icons/ui-icons/notebook.d.ts +1 -0
- package/dist/icons/ui-icons/notebook.js +1 -1
- package/dist/icons/ui-icons/num0-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num0-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num0-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num0-circle.js +1 -1
- package/dist/icons/ui-icons/num0-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num0-square-alt.js +1 -1
- package/dist/icons/ui-icons/num0-square.d.ts +1 -0
- package/dist/icons/ui-icons/num0-square.js +1 -1
- package/dist/icons/ui-icons/num1-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num1-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num1-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num1-circle.js +1 -1
- package/dist/icons/ui-icons/num1-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num1-square-alt.js +1 -1
- package/dist/icons/ui-icons/num1-square.d.ts +1 -0
- package/dist/icons/ui-icons/num1-square.js +1 -1
- package/dist/icons/ui-icons/num2-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num2-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num2-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num2-circle.js +1 -1
- package/dist/icons/ui-icons/num2-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num2-square-alt.js +1 -1
- package/dist/icons/ui-icons/num2-square.d.ts +1 -0
- package/dist/icons/ui-icons/num2-square.js +1 -1
- package/dist/icons/ui-icons/num3-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num3-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num3-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num3-circle.js +1 -1
- package/dist/icons/ui-icons/num3-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num3-square-alt.js +1 -1
- package/dist/icons/ui-icons/num3-square.d.ts +1 -0
- package/dist/icons/ui-icons/num3-square.js +1 -1
- package/dist/icons/ui-icons/num4-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num4-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num4-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num4-circle.js +1 -1
- package/dist/icons/ui-icons/num4-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num4-square-alt.js +1 -1
- package/dist/icons/ui-icons/num4-square.d.ts +1 -0
- package/dist/icons/ui-icons/num4-square.js +1 -1
- package/dist/icons/ui-icons/num5-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num5-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num5-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num5-circle.js +1 -1
- package/dist/icons/ui-icons/num5-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num5-square-alt.js +1 -1
- package/dist/icons/ui-icons/num5-square.d.ts +1 -0
- package/dist/icons/ui-icons/num5-square.js +1 -1
- package/dist/icons/ui-icons/num6-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num6-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num6-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num6-circle.js +1 -1
- package/dist/icons/ui-icons/num6-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num6-square-alt.js +1 -1
- package/dist/icons/ui-icons/num6-square.d.ts +1 -0
- package/dist/icons/ui-icons/num6-square.js +1 -1
- package/dist/icons/ui-icons/num7-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num7-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num7-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num7-circle.js +1 -1
- package/dist/icons/ui-icons/num7-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num7-square-alt.js +1 -1
- package/dist/icons/ui-icons/num7-square.d.ts +1 -0
- package/dist/icons/ui-icons/num7-square.js +1 -1
- package/dist/icons/ui-icons/num8-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num8-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num8-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num8-circle.js +1 -1
- package/dist/icons/ui-icons/num8-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num8-square-alt.js +1 -1
- package/dist/icons/ui-icons/num8-square.d.ts +1 -0
- package/dist/icons/ui-icons/num8-square.js +1 -1
- package/dist/icons/ui-icons/num9-circle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num9-circle-alt.js +1 -1
- package/dist/icons/ui-icons/num9-circle.d.ts +1 -0
- package/dist/icons/ui-icons/num9-circle.js +1 -1
- package/dist/icons/ui-icons/num9-square-alt.d.ts +1 -0
- package/dist/icons/ui-icons/num9-square-alt.js +1 -1
- package/dist/icons/ui-icons/num9-square.d.ts +1 -0
- package/dist/icons/ui-icons/num9-square.js +1 -1
- package/dist/icons/ui-icons/office-building.d.ts +1 -0
- package/dist/icons/ui-icons/office-building.js +1 -1
- package/dist/icons/ui-icons/office-buildings.d.ts +1 -0
- package/dist/icons/ui-icons/office-buildings.js +1 -1
- package/dist/icons/ui-icons/offset-auto.d.ts +1 -0
- package/dist/icons/ui-icons/offset-auto.js +1 -1
- package/dist/icons/ui-icons/offset.d.ts +1 -0
- package/dist/icons/ui-icons/offset.js +1 -1
- package/dist/icons/ui-icons/option-list-alt.d.ts +1 -0
- package/dist/icons/ui-icons/option-list-alt.js +1 -1
- package/dist/icons/ui-icons/option-list.d.ts +1 -0
- package/dist/icons/ui-icons/option-list.js +1 -1
- package/dist/icons/ui-icons/options.d.ts +1 -0
- package/dist/icons/ui-icons/options.js +1 -1
- package/dist/icons/ui-icons/order.d.ts +1 -0
- package/dist/icons/ui-icons/order.js +1 -1
- package/dist/icons/ui-icons/padding-bottom.d.ts +1 -0
- package/dist/icons/ui-icons/padding-bottom.js +1 -1
- package/dist/icons/ui-icons/padding-top.d.ts +1 -0
- package/dist/icons/ui-icons/padding-top.js +1 -1
- package/dist/icons/ui-icons/padding.d.ts +1 -0
- package/dist/icons/ui-icons/padding.js +1 -1
- package/dist/icons/ui-icons/pagination.d.ts +1 -0
- package/dist/icons/ui-icons/pagination.js +1 -1
- package/dist/icons/ui-icons/palette-color.d.ts +1 -0
- package/dist/icons/ui-icons/palette-color.js +1 -1
- package/dist/icons/ui-icons/panel-collapse.d.ts +1 -0
- package/dist/icons/ui-icons/panel-collapse.js +1 -1
- package/dist/icons/ui-icons/panel-expand.d.ts +1 -0
- package/dist/icons/ui-icons/panel-expand.js +1 -1
- package/dist/icons/ui-icons/paragraph.d.ts +1 -0
- package/dist/icons/ui-icons/paragraph.js +1 -1
- package/dist/icons/ui-icons/paste.d.ts +1 -0
- package/dist/icons/ui-icons/paste.js +1 -1
- package/dist/icons/ui-icons/pause.d.ts +1 -0
- package/dist/icons/ui-icons/pause.js +1 -1
- package/dist/icons/ui-icons/people-group.d.ts +1 -0
- package/dist/icons/ui-icons/people-group.js +1 -1
- package/dist/icons/ui-icons/people.d.ts +1 -0
- package/dist/icons/ui-icons/people.js +1 -1
- package/dist/icons/ui-icons/person.d.ts +1 -0
- package/dist/icons/ui-icons/person.js +1 -1
- package/dist/icons/ui-icons/photo-camera.d.ts +1 -0
- package/dist/icons/ui-icons/photo-camera.js +1 -1
- package/dist/icons/ui-icons/picture-in-picture.d.ts +1 -0
- package/dist/icons/ui-icons/picture-in-picture.js +1 -1
- package/dist/icons/ui-icons/play-reverse.d.ts +1 -0
- package/dist/icons/ui-icons/play-reverse.js +1 -1
- package/dist/icons/ui-icons/play.d.ts +1 -0
- package/dist/icons/ui-icons/play.js +1 -1
- package/dist/icons/ui-icons/playback-options.d.ts +1 -0
- package/dist/icons/ui-icons/playback-options.js +1 -1
- package/dist/icons/ui-icons/plus-circle-fill-alt.d.ts +1 -0
- package/dist/icons/ui-icons/plus-circle-fill-alt.js +1 -1
- package/dist/icons/ui-icons/plus-circle-fill.d.ts +1 -0
- package/dist/icons/ui-icons/plus-circle-fill.js +1 -1
- package/dist/icons/ui-icons/plus-circle.d.ts +1 -0
- package/dist/icons/ui-icons/plus-circle.js +1 -1
- package/dist/icons/ui-icons/plus-minus-buttons-h.d.ts +1 -0
- package/dist/icons/ui-icons/plus-minus-buttons-h.js +1 -1
- package/dist/icons/ui-icons/plus-minus-buttons-v.d.ts +1 -0
- package/dist/icons/ui-icons/plus-minus-buttons-v.js +1 -1
- package/dist/icons/ui-icons/plus-square-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/plus-square-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/plus-square-fill.d.ts +1 -0
- package/dist/icons/ui-icons/plus-square-fill.js +1 -1
- package/dist/icons/ui-icons/plus-square.d.ts +1 -0
- package/dist/icons/ui-icons/plus-square.js +1 -1
- package/dist/icons/ui-icons/pointer-hand-disabled.d.ts +1 -0
- package/dist/icons/ui-icons/pointer-hand-disabled.js +1 -1
- package/dist/icons/ui-icons/pointer-hand.d.ts +1 -0
- package/dist/icons/ui-icons/pointer-hand.js +1 -1
- package/dist/icons/ui-icons/position-arrows-h.d.ts +1 -0
- package/dist/icons/ui-icons/position-arrows-h.js +1 -1
- package/dist/icons/ui-icons/position-arrows-inverted-h.d.ts +1 -0
- package/dist/icons/ui-icons/position-arrows-inverted-h.js +1 -1
- package/dist/icons/ui-icons/position-arrows-inverted-v.d.ts +1 -0
- package/dist/icons/ui-icons/position-arrows-inverted-v.js +1 -1
- package/dist/icons/ui-icons/position-arrows-inverted.d.ts +1 -0
- package/dist/icons/ui-icons/position-arrows-inverted.js +1 -1
- package/dist/icons/ui-icons/position-arrows-v.d.ts +1 -0
- package/dist/icons/ui-icons/position-arrows-v.js +1 -1
- package/dist/icons/ui-icons/position-arrows.d.ts +1 -0
- package/dist/icons/ui-icons/position-arrows.js +1 -1
- package/dist/icons/ui-icons/position-h-center.d.ts +1 -0
- package/dist/icons/ui-icons/position-h-center.js +1 -1
- package/dist/icons/ui-icons/position-h-end.d.ts +1 -0
- package/dist/icons/ui-icons/position-h-end.js +1 -1
- package/dist/icons/ui-icons/position-h-start.d.ts +1 -0
- package/dist/icons/ui-icons/position-h-start.js +1 -1
- package/dist/icons/ui-icons/position-left.d.ts +1 -0
- package/dist/icons/ui-icons/position-left.js +1 -1
- package/dist/icons/ui-icons/position-right.d.ts +1 -0
- package/dist/icons/ui-icons/position-right.js +1 -1
- package/dist/icons/ui-icons/position-v-center.d.ts +1 -0
- package/dist/icons/ui-icons/position-v-center.js +1 -1
- package/dist/icons/ui-icons/position-v-end.d.ts +1 -0
- package/dist/icons/ui-icons/position-v-end.js +1 -1
- package/dist/icons/ui-icons/position-v-start.d.ts +1 -0
- package/dist/icons/ui-icons/position-v-start.js +1 -1
- package/dist/icons/ui-icons/position2x2-bottom-left.d.ts +1 -0
- package/dist/icons/ui-icons/position2x2-bottom-left.js +1 -1
- package/dist/icons/ui-icons/position2x2-bottom-right.d.ts +1 -0
- package/dist/icons/ui-icons/position2x2-bottom-right.js +1 -1
- package/dist/icons/ui-icons/position2x2-empty.d.ts +1 -0
- package/dist/icons/ui-icons/position2x2-empty.js +1 -1
- package/dist/icons/ui-icons/position2x2-top-left.d.ts +1 -0
- package/dist/icons/ui-icons/position2x2-top-left.js +1 -1
- package/dist/icons/ui-icons/position2x2-top-right.d.ts +1 -0
- package/dist/icons/ui-icons/position2x2-top-right.js +1 -1
- package/dist/icons/ui-icons/position3x3-bottom-center.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-bottom-center.js +1 -1
- package/dist/icons/ui-icons/position3x3-bottom-left.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-bottom-left.js +1 -1
- package/dist/icons/ui-icons/position3x3-bottom-right.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-bottom-right.js +1 -1
- package/dist/icons/ui-icons/position3x3-center-center.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-center-center.js +1 -1
- package/dist/icons/ui-icons/position3x3-center-left.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-center-left.js +1 -1
- package/dist/icons/ui-icons/position3x3-center-right.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-center-right.js +1 -1
- package/dist/icons/ui-icons/position3x3-empty.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-empty.js +1 -1
- package/dist/icons/ui-icons/position3x3-top-center.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-top-center.js +1 -1
- package/dist/icons/ui-icons/position3x3-top-left.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-top-left.js +1 -1
- package/dist/icons/ui-icons/position3x3-top-right.d.ts +1 -0
- package/dist/icons/ui-icons/position3x3-top-right.js +1 -1
- package/dist/icons/ui-icons/positioning-guide-alt.d.ts +1 -0
- package/dist/icons/ui-icons/positioning-guide-alt.js +1 -1
- package/dist/icons/ui-icons/positioning-guide.d.ts +1 -0
- package/dist/icons/ui-icons/positioning-guide.js +1 -1
- package/dist/icons/ui-icons/positioning-width-guide.d.ts +1 -0
- package/dist/icons/ui-icons/positioning-width-guide.js +1 -1
- package/dist/icons/ui-icons/preload.d.ts +1 -0
- package/dist/icons/ui-icons/preload.js +1 -1
- package/dist/icons/ui-icons/preview-responsive.d.ts +1 -0
- package/dist/icons/ui-icons/preview-responsive.js +1 -1
- package/dist/icons/ui-icons/preview.d.ts +1 -0
- package/dist/icons/ui-icons/preview.js +1 -1
- package/dist/icons/ui-icons/progressbar-intermittent.d.ts +1 -0
- package/dist/icons/ui-icons/progressbar-intermittent.js +1 -1
- package/dist/icons/ui-icons/progressbar.d.ts +1 -0
- package/dist/icons/ui-icons/progressbar.js +1 -1
- package/dist/icons/ui-icons/range-max.d.ts +1 -0
- package/dist/icons/ui-icons/range-max.js +1 -1
- package/dist/icons/ui-icons/range-mid.d.ts +1 -0
- package/dist/icons/ui-icons/range-mid.js +1 -1
- package/dist/icons/ui-icons/range-min.d.ts +1 -0
- package/dist/icons/ui-icons/range-min.js +1 -1
- package/dist/icons/ui-icons/range.d.ts +1 -0
- package/dist/icons/ui-icons/range.js +1 -1
- package/dist/icons/ui-icons/read-only.d.ts +1 -0
- package/dist/icons/ui-icons/read-only.js +1 -1
- package/dist/icons/ui-icons/reduce-height-bottom.d.ts +1 -0
- package/dist/icons/ui-icons/reduce-height-bottom.js +1 -1
- package/dist/icons/ui-icons/reduce-height-top.d.ts +1 -0
- package/dist/icons/ui-icons/reduce-height-top.js +1 -1
- package/dist/icons/ui-icons/regex.d.ts +1 -0
- package/dist/icons/ui-icons/regex.js +1 -1
- package/dist/icons/ui-icons/remove.d.ts +1 -0
- package/dist/icons/ui-icons/remove.js +1 -1
- package/dist/icons/ui-icons/rename.d.ts +1 -0
- package/dist/icons/ui-icons/rename.js +1 -1
- package/dist/icons/ui-icons/reorder-grabber-h.d.ts +1 -0
- package/dist/icons/ui-icons/reorder-grabber-h.js +1 -1
- package/dist/icons/ui-icons/reorder-grabber-v.d.ts +1 -0
- package/dist/icons/ui-icons/reorder-grabber-v.js +1 -1
- package/dist/icons/ui-icons/reorder.d.ts +1 -0
- package/dist/icons/ui-icons/reorder.js +1 -1
- package/dist/icons/ui-icons/required-alt.d.ts +1 -0
- package/dist/icons/ui-icons/required-alt.js +1 -1
- package/dist/icons/ui-icons/required.d.ts +1 -0
- package/dist/icons/ui-icons/required.js +1 -1
- package/dist/icons/ui-icons/reset-to-zero.d.ts +1 -0
- package/dist/icons/ui-icons/reset-to-zero.js +1 -1
- package/dist/icons/ui-icons/reset.d.ts +1 -0
- package/dist/icons/ui-icons/reset.js +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt-fill.d.ts +1 -0
- package/dist/icons/ui-icons/responsive-overrides-alt-fill.js +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt.d.ts +1 -0
- package/dist/icons/ui-icons/responsive-overrides-alt.js +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt2-fill.d.ts +1 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2-fill.js +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2.js +1 -1
- package/dist/icons/ui-icons/responsive-overrides-alt3-fill.d.ts +1 -0
- package/dist/icons/ui-icons/responsive-overrides-alt3-fill.js +1 -1
- package/dist/icons/ui-icons/responsive-overrides.d.ts +1 -0
- package/dist/icons/ui-icons/responsive-overrides.js +1 -1
- package/dist/icons/ui-icons/responsive.d.ts +1 -0
- package/dist/icons/ui-icons/responsive.js +1 -1
- package/dist/icons/ui-icons/right-panel-alt.d.ts +1 -0
- package/dist/icons/ui-icons/right-panel-alt.js +1 -1
- package/dist/icons/ui-icons/right-panel.d.ts +1 -0
- package/dist/icons/ui-icons/right-panel.js +1 -1
- package/dist/icons/ui-icons/rotate-left.d.ts +1 -0
- package/dist/icons/ui-icons/rotate-left.js +1 -1
- package/dist/icons/ui-icons/rotate-right.d.ts +1 -0
- package/dist/icons/ui-icons/rotate-right.js +1 -1
- package/dist/icons/ui-icons/rounded-corners.d.ts +1 -0
- package/dist/icons/ui-icons/rounded-corners.js +1 -1
- package/dist/icons/ui-icons/route.d.ts +1 -0
- package/dist/icons/ui-icons/route.js +1 -1
- package/dist/icons/ui-icons/row-add.d.ts +1 -0
- package/dist/icons/ui-icons/row-add.js +1 -1
- package/dist/icons/ui-icons/row-empty.d.ts +1 -0
- package/dist/icons/ui-icons/row-empty.js +1 -1
- package/dist/icons/ui-icons/row.d.ts +1 -0
- package/dist/icons/ui-icons/row.js +1 -1
- package/dist/icons/ui-icons/rows.d.ts +1 -0
- package/dist/icons/ui-icons/rows.js +1 -1
- package/dist/icons/ui-icons/ruler.d.ts +1 -0
- package/dist/icons/ui-icons/ruler.js +1 -1
- package/dist/icons/ui-icons/save.d.ts +1 -0
- package/dist/icons/ui-icons/save.js +1 -1
- package/dist/icons/ui-icons/screen-desktop.d.ts +1 -0
- package/dist/icons/ui-icons/screen-desktop.js +1 -1
- package/dist/icons/ui-icons/screen-large.d.ts +1 -0
- package/dist/icons/ui-icons/screen-large.js +1 -1
- package/dist/icons/ui-icons/screen-mobile.d.ts +1 -0
- package/dist/icons/ui-icons/screen-mobile.js +1 -1
- package/dist/icons/ui-icons/screen-tablet-large.d.ts +1 -0
- package/dist/icons/ui-icons/screen-tablet-large.js +1 -1
- package/dist/icons/ui-icons/screen-tablet.d.ts +1 -0
- package/dist/icons/ui-icons/screen-tablet.js +1 -1
- package/dist/icons/ui-icons/scrollbar-h.d.ts +1 -0
- package/dist/icons/ui-icons/scrollbar-h.js +1 -1
- package/dist/icons/ui-icons/scrollbar-v.d.ts +1 -0
- package/dist/icons/ui-icons/scrollbar-v.js +1 -1
- package/dist/icons/ui-icons/scrollbars.d.ts +1 -0
- package/dist/icons/ui-icons/scrollbars.js +1 -1
- package/dist/icons/ui-icons/search-empty.d.ts +1 -0
- package/dist/icons/ui-icons/search-empty.js +1 -1
- package/dist/icons/ui-icons/search.d.ts +1 -0
- package/dist/icons/ui-icons/search.js +1 -1
- package/dist/icons/ui-icons/separator-h.d.ts +1 -0
- package/dist/icons/ui-icons/separator-h.js +1 -1
- package/dist/icons/ui-icons/separator-v.d.ts +1 -0
- package/dist/icons/ui-icons/separator-v.js +1 -1
- package/dist/icons/ui-icons/shadow.d.ts +1 -0
- package/dist/icons/ui-icons/shadow.js +1 -1
- package/dist/icons/ui-icons/share.d.ts +1 -0
- package/dist/icons/ui-icons/share.js +1 -1
- package/dist/icons/ui-icons/shield-plus-alt.d.ts +1 -0
- package/dist/icons/ui-icons/shield-plus-alt.js +1 -1
- package/dist/icons/ui-icons/shield-plus.d.ts +1 -0
- package/dist/icons/ui-icons/shield-plus.js +1 -1
- package/dist/icons/ui-icons/shield.d.ts +1 -0
- package/dist/icons/ui-icons/shield.js +1 -1
- package/dist/icons/ui-icons/shrink-diagonal-left-xl.d.ts +1 -0
- package/dist/icons/ui-icons/shrink-diagonal-left-xl.js +1 -1
- package/dist/icons/ui-icons/shrink-diagonal-left.d.ts +1 -0
- package/dist/icons/ui-icons/shrink-diagonal-left.js +1 -1
- package/dist/icons/ui-icons/shrink-diagonal-right-xl.d.ts +1 -0
- package/dist/icons/ui-icons/shrink-diagonal-right-xl.js +1 -1
- package/dist/icons/ui-icons/shrink-diagonal-right.d.ts +1 -0
- package/dist/icons/ui-icons/shrink-diagonal-right.js +1 -1
- package/dist/icons/ui-icons/shrink-xl.d.ts +1 -0
- package/dist/icons/ui-icons/shrink-xl.js +1 -1
- package/dist/icons/ui-icons/shrink.d.ts +1 -0
- package/dist/icons/ui-icons/shrink.js +1 -1
- package/dist/icons/ui-icons/shuffle.d.ts +1 -0
- package/dist/icons/ui-icons/shuffle.js +1 -1
- package/dist/icons/ui-icons/sidebar-flip.d.ts +1 -0
- package/dist/icons/ui-icons/sidebar-flip.js +1 -1
- package/dist/icons/ui-icons/sidebar.d.ts +1 -0
- package/dist/icons/ui-icons/sidebar.js +1 -1
- package/dist/icons/ui-icons/single-item-left-inset-mobile.d.ts +1 -0
- package/dist/icons/ui-icons/single-item-left-inset-mobile.js +1 -1
- package/dist/icons/ui-icons/single-item-left-inset.d.ts +1 -0
- package/dist/icons/ui-icons/single-item-left-inset.js +1 -1
- package/dist/icons/ui-icons/single-item-right-inset-mobile.d.ts +1 -0
- package/dist/icons/ui-icons/single-item-right-inset-mobile.js +1 -1
- package/dist/icons/ui-icons/single-item-right-inset.d.ts +1 -0
- package/dist/icons/ui-icons/single-item-right-inset.js +1 -1
- package/dist/icons/ui-icons/size-alt.d.ts +1 -0
- package/dist/icons/ui-icons/size-alt.js +1 -1
- package/dist/icons/ui-icons/size.d.ts +1 -0
- package/dist/icons/ui-icons/size.js +1 -1
- package/dist/icons/ui-icons/slider.d.ts +1 -0
- package/dist/icons/ui-icons/slider.js +1 -1
- package/dist/icons/ui-icons/sliders.d.ts +1 -0
- package/dist/icons/ui-icons/sliders.js +1 -1
- package/dist/icons/ui-icons/small.d.ts +1 -0
- package/dist/icons/ui-icons/small.js +1 -1
- package/dist/icons/ui-icons/solid-circle-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/solid-circle-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/solid-circle-filled.d.ts +1 -0
- package/dist/icons/ui-icons/solid-circle-filled.js +1 -1
- package/dist/icons/ui-icons/solid-circle-gradient.d.ts +1 -0
- package/dist/icons/ui-icons/solid-circle-gradient.js +1 -1
- package/dist/icons/ui-icons/solid-circle.d.ts +1 -0
- package/dist/icons/ui-icons/solid-circle.js +1 -1
- package/dist/icons/ui-icons/solid-color.d.ts +1 -0
- package/dist/icons/ui-icons/solid-color.js +1 -1
- package/dist/icons/ui-icons/solid-rect-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/solid-rect-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/solid-rect-filled.d.ts +1 -0
- package/dist/icons/ui-icons/solid-rect-filled.js +1 -1
- package/dist/icons/ui-icons/solid-rect-gradient.d.ts +1 -0
- package/dist/icons/ui-icons/solid-rect-gradient.js +1 -1
- package/dist/icons/ui-icons/solid-rect.d.ts +1 -0
- package/dist/icons/ui-icons/solid-rect.js +1 -1
- package/dist/icons/ui-icons/sort-asc.d.ts +1 -0
- package/dist/icons/ui-icons/sort-asc.js +1 -1
- package/dist/icons/ui-icons/sort-desc.d.ts +1 -0
- package/dist/icons/ui-icons/sort-desc.js +1 -1
- package/dist/icons/ui-icons/sort-generic.d.ts +1 -0
- package/dist/icons/ui-icons/sort-generic.js +1 -1
- package/dist/icons/ui-icons/spacing-bottom-in.d.ts +1 -0
- package/dist/icons/ui-icons/spacing-bottom-in.js +1 -1
- package/dist/icons/ui-icons/spacing-bottom.d.ts +1 -0
- package/dist/icons/ui-icons/spacing-bottom.js +1 -1
- package/dist/icons/ui-icons/spacing-left-in.d.ts +1 -0
- package/dist/icons/ui-icons/spacing-left-in.js +1 -1
- package/dist/icons/ui-icons/spacing-left.d.ts +1 -0
- package/dist/icons/ui-icons/spacing-left.js +1 -1
- package/dist/icons/ui-icons/spacing-right-in.d.ts +1 -0
- package/dist/icons/ui-icons/spacing-right-in.js +1 -1
- package/dist/icons/ui-icons/spacing-right.d.ts +1 -0
- package/dist/icons/ui-icons/spacing-right.js +1 -1
- package/dist/icons/ui-icons/spacing-top-in.d.ts +1 -0
- package/dist/icons/ui-icons/spacing-top-in.js +1 -1
- package/dist/icons/ui-icons/spacing-top.d.ts +1 -0
- package/dist/icons/ui-icons/spacing-top.js +1 -1
- package/dist/icons/ui-icons/speed.d.ts +1 -0
- package/dist/icons/ui-icons/speed.js +1 -1
- package/dist/icons/ui-icons/stagger.d.ts +1 -0
- package/dist/icons/ui-icons/stagger.js +1 -1
- package/dist/icons/ui-icons/star.d.ts +1 -0
- package/dist/icons/ui-icons/star.js +1 -1
- package/dist/icons/ui-icons/step.d.ts +1 -0
- package/dist/icons/ui-icons/step.js +1 -1
- package/dist/icons/ui-icons/stop.d.ts +1 -0
- package/dist/icons/ui-icons/stop.js +1 -1
- package/dist/icons/ui-icons/swap.d.ts +1 -0
- package/dist/icons/ui-icons/swap.js +1 -1
- package/dist/icons/ui-icons/tag-alt.d.ts +1 -0
- package/dist/icons/ui-icons/tag-alt.js +1 -1
- package/dist/icons/ui-icons/tag.d.ts +1 -0
- package/dist/icons/ui-icons/tag.js +1 -1
- package/dist/icons/ui-icons/text-abc.d.ts +1 -0
- package/dist/icons/ui-icons/text-abc.js +1 -1
- package/dist/icons/ui-icons/text-above.d.ts +1 -0
- package/dist/icons/ui-icons/text-above.js +1 -1
- package/dist/icons/ui-icons/text-align-center.d.ts +1 -0
- package/dist/icons/ui-icons/text-align-center.js +1 -1
- package/dist/icons/ui-icons/text-align-generic.d.ts +1 -0
- package/dist/icons/ui-icons/text-align-generic.js +1 -1
- package/dist/icons/ui-icons/text-align-justify.d.ts +1 -0
- package/dist/icons/ui-icons/text-align-justify.js +1 -1
- package/dist/icons/ui-icons/text-align-left.d.ts +1 -0
- package/dist/icons/ui-icons/text-align-left.js +1 -1
- package/dist/icons/ui-icons/text-align-right.d.ts +1 -0
- package/dist/icons/ui-icons/text-align-right.js +1 -1
- package/dist/icons/ui-icons/text-below.d.ts +1 -0
- package/dist/icons/ui-icons/text-below.js +1 -1
- package/dist/icons/ui-icons/text-box-edit.d.ts +1 -0
- package/dist/icons/ui-icons/text-box-edit.js +1 -1
- package/dist/icons/ui-icons/text-color-swatch.d.ts +1 -0
- package/dist/icons/ui-icons/text-color-swatch.js +1 -1
- package/dist/icons/ui-icons/text-highlight-color-swatch-alt.d.ts +1 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch-alt.js +1 -1
- package/dist/icons/ui-icons/text-highlight-color-swatch.d.ts +1 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch.js +1 -1
- package/dist/icons/ui-icons/text-larger.d.ts +1 -0
- package/dist/icons/ui-icons/text-larger.js +1 -1
- package/dist/icons/ui-icons/text-length.d.ts +1 -0
- package/dist/icons/ui-icons/text-length.js +1 -1
- package/dist/icons/ui-icons/text-size-alt.d.ts +1 -0
- package/dist/icons/ui-icons/text-size-alt.js +1 -1
- package/dist/icons/ui-icons/text-size.d.ts +1 -0
- package/dist/icons/ui-icons/text-size.js +1 -1
- package/dist/icons/ui-icons/text-smaller.d.ts +1 -0
- package/dist/icons/ui-icons/text-smaller.js +1 -1
- package/dist/icons/ui-icons/text-strikethrough.d.ts +1 -0
- package/dist/icons/ui-icons/text-strikethrough.js +1 -1
- package/dist/icons/ui-icons/text-uppercase.d.ts +1 -0
- package/dist/icons/ui-icons/text-uppercase.js +1 -1
- package/dist/icons/ui-icons/text-write.d.ts +1 -0
- package/dist/icons/ui-icons/text-write.js +1 -1
- package/dist/icons/ui-icons/thumbs-down.d.ts +1 -0
- package/dist/icons/ui-icons/thumbs-down.js +1 -1
- package/dist/icons/ui-icons/thumbs-up.d.ts +1 -0
- package/dist/icons/ui-icons/thumbs-up.js +1 -1
- package/dist/icons/ui-icons/title-generic.d.ts +1 -0
- package/dist/icons/ui-icons/title-generic.js +1 -1
- package/dist/icons/ui-icons/toggle-off.d.ts +1 -0
- package/dist/icons/ui-icons/toggle-off.js +1 -1
- package/dist/icons/ui-icons/toggle-on-alt.d.ts +1 -0
- package/dist/icons/ui-icons/toggle-on-alt.js +1 -1
- package/dist/icons/ui-icons/toggle-on.d.ts +1 -0
- package/dist/icons/ui-icons/toggle-on.js +1 -1
- package/dist/icons/ui-icons/tools.d.ts +1 -0
- package/dist/icons/ui-icons/tools.js +1 -1
- package/dist/icons/ui-icons/total-items.d.ts +1 -0
- package/dist/icons/ui-icons/total-items.js +1 -1
- package/dist/icons/ui-icons/trash-alt.d.ts +1 -0
- package/dist/icons/ui-icons/trash-alt.js +1 -1
- package/dist/icons/ui-icons/trash.d.ts +1 -0
- package/dist/icons/ui-icons/trash.js +1 -1
- package/dist/icons/ui-icons/tree-alt.d.ts +1 -0
- package/dist/icons/ui-icons/tree-alt.js +1 -1
- package/dist/icons/ui-icons/tree-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/tree-alt2.js +1 -1
- package/dist/icons/ui-icons/tree.d.ts +1 -0
- package/dist/icons/ui-icons/tree.js +1 -1
- package/dist/icons/ui-icons/troubleshoot-alt.d.ts +1 -0
- package/dist/icons/ui-icons/troubleshoot-alt.js +1 -1
- package/dist/icons/ui-icons/two-cards-left.d.ts +1 -0
- package/dist/icons/ui-icons/two-cards-left.js +1 -1
- package/dist/icons/ui-icons/two-cards-right.d.ts +1 -0
- package/dist/icons/ui-icons/two-cards-right.js +1 -1
- package/dist/icons/ui-icons/two-columns.d.ts +1 -0
- package/dist/icons/ui-icons/two-columns.js +1 -1
- package/dist/icons/ui-icons/typography-options.d.ts +1 -0
- package/dist/icons/ui-icons/typography-options.js +1 -1
- package/dist/icons/ui-icons/typography.d.ts +1 -0
- package/dist/icons/ui-icons/typography.js +1 -1
- package/dist/icons/ui-icons/underline.d.ts +1 -0
- package/dist/icons/ui-icons/underline.js +1 -1
- package/dist/icons/ui-icons/ungroup.d.ts +1 -0
- package/dist/icons/ui-icons/ungroup.js +1 -1
- package/dist/icons/ui-icons/upload.d.ts +1 -0
- package/dist/icons/ui-icons/upload.js +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt.d.ts +1 -0
- package/dist/icons/ui-icons/venn-diagram-alt.js +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/venn-diagram-alt2.js +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt3.d.ts +1 -0
- package/dist/icons/ui-icons/venn-diagram-alt3.js +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt4.d.ts +1 -0
- package/dist/icons/ui-icons/venn-diagram-alt4.js +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt5.d.ts +1 -0
- package/dist/icons/ui-icons/venn-diagram-alt5.js +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt6.d.ts +1 -0
- package/dist/icons/ui-icons/venn-diagram-alt6.js +1 -1
- package/dist/icons/ui-icons/venn-diagram-alt7.d.ts +1 -0
- package/dist/icons/ui-icons/venn-diagram-alt7.js +1 -1
- package/dist/icons/ui-icons/venn-diagram.d.ts +1 -0
- package/dist/icons/ui-icons/venn-diagram.js +1 -1
- package/dist/icons/ui-icons/vertical-align-alt.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align-alt.js +1 -1
- package/dist/icons/ui-icons/vertical-align-around.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align-around.js +1 -1
- package/dist/icons/ui-icons/vertical-align-between-alt.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align-between-alt.js +1 -1
- package/dist/icons/ui-icons/vertical-align-between.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align-between.js +1 -1
- package/dist/icons/ui-icons/vertical-align-bottom.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align-bottom.js +1 -1
- package/dist/icons/ui-icons/vertical-align-center.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align-center.js +1 -1
- package/dist/icons/ui-icons/vertical-align-evenly.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align-evenly.js +1 -1
- package/dist/icons/ui-icons/vertical-align-stretch.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align-stretch.js +1 -1
- package/dist/icons/ui-icons/vertical-align-top.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align-top.js +1 -1
- package/dist/icons/ui-icons/vertical-align.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-align.js +1 -1
- package/dist/icons/ui-icons/vertical-spacing.d.ts +1 -0
- package/dist/icons/ui-icons/vertical-spacing.js +1 -1
- package/dist/icons/ui-icons/video-chapters.d.ts +1 -0
- package/dist/icons/ui-icons/video-chapters.js +1 -1
- package/dist/icons/ui-icons/video-controls.d.ts +1 -0
- package/dist/icons/ui-icons/video-controls.js +1 -1
- package/dist/icons/ui-icons/video-file.d.ts +1 -0
- package/dist/icons/ui-icons/video-file.js +1 -1
- package/dist/icons/ui-icons/video-poster-image.d.ts +1 -0
- package/dist/icons/ui-icons/video-poster-image.js +1 -1
- package/dist/icons/ui-icons/video-subtitle-alt.d.ts +1 -0
- package/dist/icons/ui-icons/video-subtitle-alt.js +1 -1
- package/dist/icons/ui-icons/video-subtitle.d.ts +1 -0
- package/dist/icons/ui-icons/video-subtitle.js +1 -1
- package/dist/icons/ui-icons/video.d.ts +1 -0
- package/dist/icons/ui-icons/video.js +1 -1
- package/dist/icons/ui-icons/visibility-alt.d.ts +1 -0
- package/dist/icons/ui-icons/visibility-alt.js +1 -1
- package/dist/icons/ui-icons/visibility-alt2.d.ts +1 -0
- package/dist/icons/ui-icons/visibility-alt2.js +1 -1
- package/dist/icons/ui-icons/visibility.d.ts +1 -0
- package/dist/icons/ui-icons/visibility.js +1 -1
- package/dist/icons/ui-icons/visible.d.ts +1 -0
- package/dist/icons/ui-icons/visible.js +1 -1
- package/dist/icons/ui-icons/volume.d.ts +1 -0
- package/dist/icons/ui-icons/volume.js +1 -1
- package/dist/icons/ui-icons/warning-circle-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/warning-circle-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/warning-circle-fill.d.ts +1 -0
- package/dist/icons/ui-icons/warning-circle-fill.js +1 -1
- package/dist/icons/ui-icons/warning-circle.d.ts +1 -0
- package/dist/icons/ui-icons/warning-circle.js +1 -1
- package/dist/icons/ui-icons/warning-fill-transparent.d.ts +1 -0
- package/dist/icons/ui-icons/warning-fill-transparent.js +1 -1
- package/dist/icons/ui-icons/warning-fill.d.ts +1 -0
- package/dist/icons/ui-icons/warning-fill.js +1 -1
- package/dist/icons/ui-icons/warning.d.ts +1 -0
- package/dist/icons/ui-icons/warning.js +1 -1
- package/dist/icons/ui-icons/web-video.d.ts +1 -0
- package/dist/icons/ui-icons/web-video.js +1 -1
- package/dist/icons/ui-icons/wide-bottom.d.ts +1 -0
- package/dist/icons/ui-icons/wide-bottom.js +1 -1
- package/dist/icons/ui-icons/wide-left.d.ts +1 -0
- package/dist/icons/ui-icons/wide-left.js +1 -1
- package/dist/icons/ui-icons/wide-right.d.ts +1 -0
- package/dist/icons/ui-icons/wide-right.js +1 -1
- package/dist/icons/ui-icons/wide-top.d.ts +1 -0
- package/dist/icons/ui-icons/wide-top.js +1 -1
- package/dist/icons/ui-icons/width.d.ts +1 -0
- package/dist/icons/ui-icons/width.js +1 -1
- package/dist/icons/ui-icons/wordpress.d.ts +1 -0
- package/dist/icons/ui-icons/wordpress.js +1 -1
- package/dist/icons/ui-icons/wrapper-alt.d.ts +1 -0
- package/dist/icons/ui-icons/wrapper-alt.js +1 -1
- package/dist/icons/ui-icons/wrapper-config.d.ts +1 -0
- package/dist/icons/ui-icons/wrapper-config.js +1 -1
- package/dist/icons/ui-icons/wrapper-off-alt.d.ts +1 -0
- package/dist/icons/ui-icons/wrapper-off-alt.js +1 -1
- package/dist/icons/ui-icons/wrapper-overflow.d.ts +1 -0
- package/dist/icons/ui-icons/wrapper-overflow.js +1 -1
- package/dist/icons/ui-icons/wrapper-simple-alt.d.ts +1 -0
- package/dist/icons/ui-icons/wrapper-simple-alt.js +1 -1
- package/dist/icons/ui-icons/wrapper-simple.d.ts +1 -0
- package/dist/icons/ui-icons/wrapper-simple.js +1 -1
- package/dist/icons/ui-icons/wrapper.d.ts +1 -0
- package/dist/icons/ui-icons/wrapper.js +1 -1
- package/dist/icons/ui-icons/wrench.d.ts +1 -0
- package/dist/icons/ui-icons/wrench.js +1 -1
- package/dist/icons/ui-icons/zap-fill.d.ts +1 -0
- package/dist/icons/ui-icons/zap-fill.js +1 -1
- package/dist/icons/ui-icons/zap.d.ts +1 -0
- package/dist/icons/ui-icons/zap.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -18
- package/dist/{input-field-BdFrxQ-R.js → input-field-nN6BO0oz.js} +38 -49
- package/dist/{jsx-svg-DT1SBWuP.js → jsx-svg-BjGQUBLh.js} +46 -52
- package/dist/{keyboard-CT41mQzR.js → keyboard-g5Amam-c.js} +1 -1
- package/dist/{link-input-BDFhSSvH.js → link-input-BhlPElU8.js} +99 -91
- package/dist/{modal-CJDaBdPh.js → modal-B5axB0Fc.js} +60 -86
- package/dist/{number-MWRvGfyE.js → number-BeC0ySe4.js} +2 -1
- package/dist/{number-picker-BrxrB-xq.js → number-picker-nnOf0XnN.js} +36 -49
- package/dist/{proxy-DjkEpeDL.js → react-y40Dt3ab.js} +539 -446
- package/dist/{shared-CI4kcnm8.js → shared-Ba_bt4s9.js} +80 -84
- package/dist/{solid-color-picker-DXgX-OAm.js → solid-color-picker-CsosgTVa.js} +82 -85
- package/dist/sprintf-xJRAt4p0.js +129 -0
- package/dist/style-admin.d.ts +1 -0
- package/dist/style-editor.d.ts +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/{switch-DNHFoCCx.js → switch-BJ4_OyUm.js} +61 -38
- package/dist/{tabs-C2tPOEYr.js → tabs-wAe0AAyu.js} +190 -111
- package/dist/text-helpers-2j9DuxP1.js +253 -0
- package/dist/{textSelection-BhX_2zV9.js → textSelection-B_Nv6Jz3.js} +1 -1
- package/dist/{toggle-button-DYDp11rq.js → toggle-button-BLJdEp8V.js} +59 -51
- package/dist/{tooltip-C-hT6tN9.js → tooltip-BW9nj5-V.js} +39 -64
- package/dist/{useButton-BMZc4fTX.js → useButton-CPMVLXoX.js} +4 -4
- package/dist/{useCollection-CBVYSuGz.js → useCollection-PzY6FI39.js} +146 -98
- package/dist/{useEvent-ypAU33vv.js → useEvent-CzuFZ2HT.js} +1 -1
- package/dist/{useField-BXf__jxy.js → useField-DrfR8j9h.js} +7 -3
- package/dist/{useFilter-CfKEbIwL.js → useFilter-CiCjo6Na.js} +1 -1
- package/dist/{useFocusRing-BgYY-7ko.js → useFocusRing-CrYHpV7C.js} +3 -2
- package/dist/{useFormReset-BuMc_O4y.js → useFormReset-U6c35PHq.js} +1 -1
- package/dist/{useFormValidation-BcME9D0E.js → useFormValidation-B2q2MGWN.js} +5 -8
- package/dist/{useHover-lyApu3ba.js → useHover-CNsbAR0V.js} +41 -26
- package/dist/{useLabel-Rv8cIIKk.js → useLabel-DuxAjaic.js} +2 -2
- package/dist/{useLabels-xOYtkA8o.js → useLabels-NUsp5IW3.js} +1 -1
- package/dist/{useListState-u6DfeXHi.js → useListState-FLxa7R_U.js} +1 -1
- package/dist/{useLocalizedStringFormatter-CR-bmorj.js → useLocalizedStringFormatter-Ccm8EL_u.js} +1 -1
- package/dist/{useNumberFieldState-xL-ecwNz.js → useNumberFieldState-DWvm7CXu.js} +26 -14
- package/dist/{useNumberFormatter-CR1PAFPG.js → useNumberFormatter-B0_D7a_o.js} +2 -2
- package/dist/{useOverlayTriggerState-AeCx45Gv.js → useOverlayTriggerState-zZ7homyI.js} +17 -16
- package/dist/{usePress-Dnx5rBoD.js → usePress-DRoujMNm.js} +14 -5
- package/dist/useSlot-pRz-v9kC.js +25 -0
- package/dist/{useTextField-BW3ZwGyz.js → useTextField-e8jIFT3s.js} +12 -12
- package/dist/useToggle-CR_ZKvr_.js +115 -0
- package/dist/{useToggleState-D5P01lch.js → useToggleState-ButQxGrJ.js} +1 -1
- package/dist/utilities/array-helpers.d.ts +23 -0
- package/dist/utilities/array-helpers.js +11 -8
- package/dist/utilities/debounce-throttle.d.ts +31 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.d.ts +184 -0
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/general.d.ts +29 -0
- package/dist/utilities/general.js +14 -3
- package/dist/utilities/hash.d.ts +3 -0
- package/dist/utilities/hash.js +1 -1
- package/dist/utilities/index.d.ts +8 -0
- package/dist/utilities/index.js +5 -5
- package/dist/utilities/text-helpers.d.ts +70 -0
- package/dist/utilities/text-helpers.js +1 -102
- package/dist/utilities/types.d.ts +8 -0
- package/dist/utilities/types.js +0 -0
- package/dist/utilities/web-workers.d.ts +34 -0
- package/dist/utilities/web-workers.js +22 -11
- package/dist/{utils-JFcCNFzy.js → utils-Czi6q2Ub.js} +11 -11
- package/package.json +52 -37
- package/dist/SelectionIndicator-Bx_EYBXD.js +0 -13
- package/dist/button-CawAzlko.js +0 -472
- package/dist/components/smart-image/image-analysis-worker.js +0 -128
- package/dist/components/smart-image/worker-inline.js +0 -4
- package/dist/smart-image-eGdMu9s9.js +0 -284
- package/dist/useToggle-BF5wptMP.js +0 -63
- package/dist/useToolbar-BT25-MJg.js +0 -55
- /package/dist/{clsx-BUU5J41u.js → clsx-DQoRUQAf.js} +0 -0
- /package/dist/{filterDOMProps-BfW758QC.js → filterDOMProps-CgeMQsGa.js} +0 -0
- /package/dist/{useAsyncList-DsOh1xIx.js → useAsyncList-B3-uyJgA.js} +0 -0
- /package/dist/{utilities-DV0KKJNR.js → utilities-COki58KB.js} +0 -0
|
@@ -1,16 +1,24 @@
|
|
|
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";
|
|
5
5
|
import { flushSync } from "react-dom";
|
|
6
|
+
//#region node_modules/@dnd-kit/helpers/dist/index.js
|
|
7
|
+
function arrayMove$1(array, from, to) {
|
|
8
|
+
if (from === to) return array;
|
|
9
|
+
const newArray = array.slice();
|
|
10
|
+
newArray.splice(to, 0, newArray.splice(from, 1)[0]);
|
|
11
|
+
return newArray;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
6
14
|
//#region node_modules/@preact/signals-core/dist/signals-core.module.js
|
|
7
15
|
var i = Symbol.for("preact-signals");
|
|
8
16
|
function t() {
|
|
9
17
|
if (!(s > 1)) {
|
|
10
18
|
var i, t = !1;
|
|
11
19
|
(function() {
|
|
12
|
-
var i =
|
|
13
|
-
|
|
20
|
+
var i = c;
|
|
21
|
+
c = void 0;
|
|
14
22
|
while (void 0 !== i) {
|
|
15
23
|
if (i.S.v === i.v) i.S.i = i.i;
|
|
16
24
|
i = i.o;
|
|
@@ -60,7 +68,14 @@ function o(i) {
|
|
|
60
68
|
r = t;
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
|
-
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;
|
|
64
79
|
function a(i) {
|
|
65
80
|
if (void 0 !== r) {
|
|
66
81
|
var t = i.n;
|
|
@@ -143,7 +158,7 @@ l.prototype.U = function(i) {
|
|
|
143
158
|
};
|
|
144
159
|
l.prototype.subscribe = function(i) {
|
|
145
160
|
var t = this;
|
|
146
|
-
return
|
|
161
|
+
return j(function() {
|
|
147
162
|
var n = t.value, o = r;
|
|
148
163
|
r = void 0;
|
|
149
164
|
try {
|
|
@@ -184,18 +199,18 @@ Object.defineProperty(l.prototype, "value", {
|
|
|
184
199
|
if (0 !== s && 0 === v) {
|
|
185
200
|
if (i.l !== e) {
|
|
186
201
|
i.l = e;
|
|
187
|
-
|
|
202
|
+
c = {
|
|
188
203
|
S: i,
|
|
189
204
|
v: i.v,
|
|
190
205
|
i: i.i,
|
|
191
|
-
o:
|
|
206
|
+
o: c
|
|
192
207
|
};
|
|
193
208
|
}
|
|
194
209
|
}
|
|
195
210
|
})(this);
|
|
196
211
|
this.v = i;
|
|
197
212
|
this.i++;
|
|
198
|
-
|
|
213
|
+
d++;
|
|
199
214
|
s++;
|
|
200
215
|
try {
|
|
201
216
|
for (var n = this.t; void 0 !== n; n = n.x) n.t.N();
|
|
@@ -243,7 +258,7 @@ function p(i, t) {
|
|
|
243
258
|
l.call(this, void 0);
|
|
244
259
|
this.x = i;
|
|
245
260
|
this.s = void 0;
|
|
246
|
-
this.g =
|
|
261
|
+
this.g = d - 1;
|
|
247
262
|
this.f = 4;
|
|
248
263
|
this.W = null == t ? void 0 : t.watched;
|
|
249
264
|
this.Z = null == t ? void 0 : t.unwatched;
|
|
@@ -255,8 +270,8 @@ p.prototype.h = function() {
|
|
|
255
270
|
if (1 & this.f) return !1;
|
|
256
271
|
if (32 == (36 & this.f)) return !0;
|
|
257
272
|
this.f &= -5;
|
|
258
|
-
if (this.g ===
|
|
259
|
-
this.g =
|
|
273
|
+
if (this.g === d) return !0;
|
|
274
|
+
this.g = d;
|
|
260
275
|
this.f |= 1;
|
|
261
276
|
if (this.i > 0 && !w(this)) {
|
|
262
277
|
this.f &= -2;
|
|
@@ -394,7 +409,7 @@ E.prototype.d = function() {
|
|
|
394
409
|
E.prototype.dispose = function() {
|
|
395
410
|
this.d();
|
|
396
411
|
};
|
|
397
|
-
function
|
|
412
|
+
function j(i, t) {
|
|
398
413
|
var n = new E(i, t);
|
|
399
414
|
try {
|
|
400
415
|
n.c();
|
|
@@ -575,10 +590,29 @@ function enumerable(enumerable2 = true) {
|
|
|
575
590
|
};
|
|
576
591
|
}
|
|
577
592
|
function effects(...entries) {
|
|
578
|
-
const effects2 = entries.map((fn) =>
|
|
593
|
+
const effects2 = entries.map((fn) => j(fn));
|
|
579
594
|
return () => effects2.forEach((cleanup) => cleanup());
|
|
580
595
|
}
|
|
581
|
-
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;
|
|
582
616
|
_previous_dec2 = [reactive], _current_dec2 = [reactive], _current_dec$1 = [enumerable()], _initial_dec = [enumerable()], _previous_dec = [enumerable()];
|
|
583
617
|
var ValueHistory = class {
|
|
584
618
|
constructor(defaultValue, equals = Object.is) {
|
|
@@ -927,7 +961,11 @@ function rectangleRectangleIntersection(a, b) {
|
|
|
927
961
|
if (left < right && top < bottom) return width * height;
|
|
928
962
|
return 0;
|
|
929
963
|
}
|
|
930
|
-
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;
|
|
931
969
|
var Position$1 = class extends (_a$2 = ValueHistory, _delta_dec$1 = [derived], _direction_dec$1 = [derived], _a$2) {
|
|
932
970
|
constructor(initialValue) {
|
|
933
971
|
const point = Point$1.from(initialValue);
|
|
@@ -1129,7 +1167,10 @@ function descriptor(plugin) {
|
|
|
1129
1167
|
};
|
|
1130
1168
|
return plugin;
|
|
1131
1169
|
}
|
|
1132
|
-
var _disabled_dec = [reactive]
|
|
1170
|
+
var _disabled_dec = [reactive];
|
|
1171
|
+
var _init$3;
|
|
1172
|
+
var _disabled;
|
|
1173
|
+
var _cleanupFunctions$1;
|
|
1133
1174
|
var Plugin = class {
|
|
1134
1175
|
/**
|
|
1135
1176
|
* Creates a new plugin instance.
|
|
@@ -1188,7 +1229,7 @@ var Plugin = class {
|
|
|
1188
1229
|
* @returns A function to dispose of the effect
|
|
1189
1230
|
*/
|
|
1190
1231
|
registerEffect(callback) {
|
|
1191
|
-
const dispose =
|
|
1232
|
+
const dispose = j(callback.bind(this));
|
|
1192
1233
|
__privateGet$4(this, _cleanupFunctions$1).add(dispose);
|
|
1193
1234
|
return dispose;
|
|
1194
1235
|
}
|
|
@@ -1254,9 +1295,13 @@ var PluginRegistry = class {
|
|
|
1254
1295
|
* - Registers new plugins with their options
|
|
1255
1296
|
*/
|
|
1256
1297
|
set values(entries) {
|
|
1257
|
-
const descriptors = entries.map(descriptor).
|
|
1258
|
-
|
|
1259
|
-
|
|
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];
|
|
1260
1305
|
}, []);
|
|
1261
1306
|
const constructors = descriptors.map(({ plugin }) => plugin);
|
|
1262
1307
|
for (const plugin of __privateGet$4(this, _previousValues)) if (!constructors.includes(plugin)) {
|
|
@@ -1333,7 +1378,8 @@ function sortCollisions(a, b) {
|
|
|
1333
1378
|
return b.priority - a.priority;
|
|
1334
1379
|
}
|
|
1335
1380
|
var DEFAULT_VALUE = [];
|
|
1336
|
-
var _previousCoordinates
|
|
1381
|
+
var _previousCoordinates;
|
|
1382
|
+
var _collisions;
|
|
1337
1383
|
var CollisionObserver = class extends Plugin {
|
|
1338
1384
|
/**
|
|
1339
1385
|
* Creates a new CollisionObserver instance.
|
|
@@ -1413,6 +1459,342 @@ var CollisionObserver = class extends Plugin {
|
|
|
1413
1459
|
};
|
|
1414
1460
|
_previousCoordinates = new WeakMap();
|
|
1415
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);
|
|
1416
1798
|
var Monitor = class {
|
|
1417
1799
|
constructor() {
|
|
1418
1800
|
this.registry = new Map();
|
|
@@ -1505,6 +1887,7 @@ var CollisionNotifier = class extends CorePlugin {
|
|
|
1505
1887
|
const { collisionObserver, monitor } = manager;
|
|
1506
1888
|
const { collisions } = collisionObserver;
|
|
1507
1889
|
if (collisionObserver.isDisabled()) return;
|
|
1890
|
+
if (Entity.pendingIdChanges) return;
|
|
1508
1891
|
const event = defaultPreventable({ collisions });
|
|
1509
1892
|
monitor.dispatch("collision", event);
|
|
1510
1893
|
if (event.defaultPrevented) return;
|
|
@@ -1537,12 +1920,20 @@ var CollisionType = ((CollisionType2) => {
|
|
|
1537
1920
|
CollisionType2[CollisionType2["PointerIntersection"] = 2] = "PointerIntersection";
|
|
1538
1921
|
return CollisionType2;
|
|
1539
1922
|
})(CollisionType || {});
|
|
1540
|
-
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;
|
|
1541
1932
|
_current_dec = [derived], _idle_dec = [derived], _initializing_dec = [derived], _initialized_dec = [derived], _dragging_dec = [derived], _dropped_dec = [derived];
|
|
1542
1933
|
var Status = class {
|
|
1543
1934
|
constructor() {
|
|
1544
|
-
__runInitializers$3(
|
|
1545
|
-
__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);
|
|
1546
1937
|
}
|
|
1547
1938
|
get current() {
|
|
1548
1939
|
return this.value;
|
|
@@ -1572,16 +1963,16 @@ var Status = class {
|
|
|
1572
1963
|
this.value = value;
|
|
1573
1964
|
}
|
|
1574
1965
|
};
|
|
1575
|
-
|
|
1966
|
+
_init5$1 = __decoratorStart$3(null);
|
|
1576
1967
|
_value = new WeakMap();
|
|
1577
|
-
__decorateElement$3(
|
|
1578
|
-
__decorateElement$3(
|
|
1579
|
-
__decorateElement$3(
|
|
1580
|
-
__decorateElement$3(
|
|
1581
|
-
__decorateElement$3(
|
|
1582
|
-
__decorateElement$3(
|
|
1583
|
-
__decorateElement$3(
|
|
1584
|
-
__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);
|
|
1585
1976
|
var DragActions = class {
|
|
1586
1977
|
/**
|
|
1587
1978
|
* Creates a new instance of drag actions.
|
|
@@ -1655,11 +2046,13 @@ var DragActions = class {
|
|
|
1655
2046
|
if (controller.signal.aborted) return;
|
|
1656
2047
|
const { status } = dragOperation;
|
|
1657
2048
|
if (status.current !== "initializing") return;
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
2049
|
+
n(() => {
|
|
2050
|
+
dragOperation.status.set("dragging");
|
|
2051
|
+
this.manager.monitor.dispatch("dragstart", {
|
|
2052
|
+
nativeEvent,
|
|
2053
|
+
operation: dragOperation.snapshot(),
|
|
2054
|
+
cancelable: false
|
|
2055
|
+
});
|
|
1663
2056
|
});
|
|
1664
2057
|
});
|
|
1665
2058
|
return controller;
|
|
@@ -1743,7 +2136,7 @@ var DragActions = class {
|
|
|
1743
2136
|
};
|
|
1744
2137
|
if (dropping) {
|
|
1745
2138
|
const { source } = dragOperation;
|
|
1746
|
-
const dispose =
|
|
2139
|
+
const dispose = j(() => {
|
|
1747
2140
|
if ((source == null ? void 0 : source.status) === "idle") {
|
|
1748
2141
|
dispose();
|
|
1749
2142
|
cleanup();
|
|
@@ -1764,255 +2157,15 @@ var DragActions = class {
|
|
|
1764
2157
|
});
|
|
1765
2158
|
}
|
|
1766
2159
|
};
|
|
1767
|
-
var
|
|
1768
|
-
_id_dec = [reactive], _data_dec = [reactive], _disabled_dec2 = [reactive];
|
|
1769
|
-
var Entity = class {
|
|
2160
|
+
var Sensor = class extends Plugin {
|
|
1770
2161
|
/**
|
|
1771
|
-
* Creates a new instance
|
|
2162
|
+
* Creates a new sensor instance.
|
|
1772
2163
|
*
|
|
1773
|
-
* @param
|
|
1774
|
-
* @param
|
|
2164
|
+
* @param manager - The drag drop manager instance
|
|
2165
|
+
* @param options - Optional sensor configuration
|
|
1775
2166
|
*/
|
|
1776
|
-
constructor(
|
|
1777
|
-
|
|
1778
|
-
__privateAdd$4(this, _id, __runInitializers$3(_init3$1, 12, this)), __runInitializers$3(_init3$1, 15, this);
|
|
1779
|
-
__privateAdd$4(this, _data, __runInitializers$3(_init3$1, 16, this)), __runInitializers$3(_init3$1, 19, this);
|
|
1780
|
-
__privateAdd$4(this, _disabled2, __runInitializers$3(_init3$1, 20, this)), __runInitializers$3(_init3$1, 23, this);
|
|
1781
|
-
const { effects: effects6, id, data = {}, disabled = false, register = true } = input;
|
|
1782
|
-
let previousId = id;
|
|
1783
|
-
this.manager = manager;
|
|
1784
|
-
this.id = id;
|
|
1785
|
-
this.data = data;
|
|
1786
|
-
this.disabled = disabled;
|
|
1787
|
-
this.effects = () => {
|
|
1788
|
-
var _a;
|
|
1789
|
-
return [() => {
|
|
1790
|
-
const { id: id2, manager: manager2 } = this;
|
|
1791
|
-
if (id2 === previousId) return;
|
|
1792
|
-
manager2?.registry.register(this);
|
|
1793
|
-
return () => manager2 == null ? void 0 : manager2.registry.unregister(this);
|
|
1794
|
-
}, ...(_a = effects6 == null ? void 0 : effects6()) != null ? _a : []];
|
|
1795
|
-
};
|
|
1796
|
-
this.register = this.register.bind(this);
|
|
1797
|
-
this.unregister = this.unregister.bind(this);
|
|
1798
|
-
this.destroy = this.destroy.bind(this);
|
|
1799
|
-
if (manager && register) queueMicrotask(this.register);
|
|
1800
|
-
}
|
|
1801
|
-
/**
|
|
1802
|
-
* A method that registers the entity with the manager.
|
|
1803
|
-
* @returns CleanupFunction | void
|
|
1804
|
-
*/
|
|
1805
|
-
register() {
|
|
1806
|
-
var _a;
|
|
1807
|
-
return (_a = this.manager) == null ? void 0 : _a.registry.register(this);
|
|
1808
|
-
}
|
|
1809
|
-
/**
|
|
1810
|
-
* A method that unregisters the entity from the manager.
|
|
1811
|
-
* @returns void
|
|
1812
|
-
*/
|
|
1813
|
-
unregister() {
|
|
1814
|
-
var _a;
|
|
1815
|
-
(_a = this.manager) == null || _a.registry.unregister(this);
|
|
1816
|
-
}
|
|
1817
|
-
/**
|
|
1818
|
-
* A method that cleans up the entity when it is no longer needed.
|
|
1819
|
-
* @returns void
|
|
1820
|
-
*/
|
|
1821
|
-
destroy() {
|
|
1822
|
-
var _a;
|
|
1823
|
-
(_a = this.manager) == null || _a.registry.unregister(this);
|
|
1824
|
-
}
|
|
1825
|
-
};
|
|
1826
|
-
_init3$1 = __decoratorStart$3(null);
|
|
1827
|
-
_manager = new WeakMap();
|
|
1828
|
-
_id = new WeakMap();
|
|
1829
|
-
_data = new WeakMap();
|
|
1830
|
-
_disabled2 = new WeakMap();
|
|
1831
|
-
__decorateElement$3(_init3$1, 4, "manager", _manager_dec, Entity, _manager);
|
|
1832
|
-
__decorateElement$3(_init3$1, 4, "id", _id_dec, Entity, _id);
|
|
1833
|
-
__decorateElement$3(_init3$1, 4, "data", _data_dec, Entity, _data);
|
|
1834
|
-
__decorateElement$3(_init3$1, 4, "disabled", _disabled_dec2, Entity, _disabled2);
|
|
1835
|
-
__decoratorMetadata$3(_init3$1, Entity);
|
|
1836
|
-
var EntityRegistry = class {
|
|
1837
|
-
constructor() {
|
|
1838
|
-
this.map = y(new Map());
|
|
1839
|
-
this.cleanupFunctions = new WeakMap();
|
|
1840
|
-
/**
|
|
1841
|
-
* Registers a entity in the registry.
|
|
1842
|
-
* @param key - The unique identifier of the entity.
|
|
1843
|
-
* @param value - The entity to register.
|
|
1844
|
-
* @returns A function that unregisters the entity.
|
|
1845
|
-
*/
|
|
1846
|
-
this.register = (key, value) => {
|
|
1847
|
-
const current = this.map.peek();
|
|
1848
|
-
const currentValue = current.get(key);
|
|
1849
|
-
const unregister = () => this.unregister(key, value);
|
|
1850
|
-
if (currentValue === value) return unregister;
|
|
1851
|
-
if (currentValue) {
|
|
1852
|
-
this.cleanupFunctions.get(currentValue)?.();
|
|
1853
|
-
this.cleanupFunctions.delete(currentValue);
|
|
1854
|
-
}
|
|
1855
|
-
const updatedMap = new Map(current);
|
|
1856
|
-
updatedMap.set(key, value);
|
|
1857
|
-
this.map.value = updatedMap;
|
|
1858
|
-
const cleanup = effects(...value.effects());
|
|
1859
|
-
this.cleanupFunctions.set(value, cleanup);
|
|
1860
|
-
return unregister;
|
|
1861
|
-
};
|
|
1862
|
-
/**
|
|
1863
|
-
* Unregisters an entity from the registry.
|
|
1864
|
-
* @param key - The unique identifier of the entity.
|
|
1865
|
-
* @param value - The entity instance to unregister.
|
|
1866
|
-
*/
|
|
1867
|
-
this.unregister = (key, value) => {
|
|
1868
|
-
const current = this.map.peek();
|
|
1869
|
-
if (current.get(key) !== value) return;
|
|
1870
|
-
this.cleanupFunctions.get(value)?.();
|
|
1871
|
-
this.cleanupFunctions.delete(value);
|
|
1872
|
-
const updatedMap = new Map(current);
|
|
1873
|
-
updatedMap.delete(key);
|
|
1874
|
-
this.map.value = updatedMap;
|
|
1875
|
-
};
|
|
1876
|
-
}
|
|
1877
|
-
/**
|
|
1878
|
-
* Iterator for the EntityRegistry class.
|
|
1879
|
-
* @returns An iterator for the values in the map.
|
|
1880
|
-
*/
|
|
1881
|
-
[Symbol.iterator]() {
|
|
1882
|
-
return this.map.peek().values();
|
|
1883
|
-
}
|
|
1884
|
-
get value() {
|
|
1885
|
-
return this.map.value.values();
|
|
1886
|
-
}
|
|
1887
|
-
/**
|
|
1888
|
-
* Checks if a entity with the given identifier exists in the registry.
|
|
1889
|
-
* @param identifier - The unique identifier of the entity.
|
|
1890
|
-
* @returns True if the entity exists, false otherwise.
|
|
1891
|
-
*/
|
|
1892
|
-
has(identifier) {
|
|
1893
|
-
return this.map.value.has(identifier);
|
|
1894
|
-
}
|
|
1895
|
-
/**
|
|
1896
|
-
* Retrieves a entity from the registry using its identifier.
|
|
1897
|
-
* @param identifier - The unique identifier of the entity.
|
|
1898
|
-
* @returns The entity if it exists, undefined otherwise.
|
|
1899
|
-
*/
|
|
1900
|
-
get(identifier) {
|
|
1901
|
-
return this.map.value.get(identifier);
|
|
1902
|
-
}
|
|
1903
|
-
/**
|
|
1904
|
-
* Destroys all entries in the registry and clears the registry.
|
|
1905
|
-
*/
|
|
1906
|
-
destroy() {
|
|
1907
|
-
for (const entry of this) {
|
|
1908
|
-
this.cleanupFunctions.get(entry)?.();
|
|
1909
|
-
entry.destroy();
|
|
1910
|
-
}
|
|
1911
|
-
this.map.value = new Map();
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
var _isDragSource_dec, _isDragging_dec, _isDropping_dec, _status_dec, _modifiers_dec, _type_dec, _c$1, _init4$1, _type, _modifiers, _status;
|
|
1915
|
-
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) {
|
|
1916
|
-
constructor(_a, manager) {
|
|
1917
|
-
var _b = _a, { modifiers, type, sensors } = _b, input = __objRest$3(_b, [
|
|
1918
|
-
"modifiers",
|
|
1919
|
-
"type",
|
|
1920
|
-
"sensors"
|
|
1921
|
-
]);
|
|
1922
|
-
super(input, manager);
|
|
1923
|
-
__runInitializers$3(_init4$1, 5, this);
|
|
1924
|
-
__privateAdd$4(this, _type, __runInitializers$3(_init4$1, 8, this)), __runInitializers$3(_init4$1, 11, this);
|
|
1925
|
-
__privateAdd$4(this, _modifiers, __runInitializers$3(_init4$1, 12, this)), __runInitializers$3(_init4$1, 15, this);
|
|
1926
|
-
__privateAdd$4(this, _status, __runInitializers$3(_init4$1, 16, this, this.isDragSource ? "dragging" : "idle")), __runInitializers$3(_init4$1, 19, this);
|
|
1927
|
-
this.type = type;
|
|
1928
|
-
this.sensors = sensors;
|
|
1929
|
-
this.modifiers = modifiers;
|
|
1930
|
-
this.alignment = input.alignment;
|
|
1931
|
-
}
|
|
1932
|
-
get isDropping() {
|
|
1933
|
-
return this.status === "dropping" && this.isDragSource;
|
|
1934
|
-
}
|
|
1935
|
-
get isDragging() {
|
|
1936
|
-
return this.status === "dragging" && this.isDragSource;
|
|
1937
|
-
}
|
|
1938
|
-
get isDragSource() {
|
|
1939
|
-
var _a, _b;
|
|
1940
|
-
return ((_b = (_a = this.manager) == null ? void 0 : _a.dragOperation.source) == null ? void 0 : _b.id) === this.id;
|
|
1941
|
-
}
|
|
1942
|
-
};
|
|
1943
|
-
_init4$1 = __decoratorStart$3(_c$1);
|
|
1944
|
-
_type = new WeakMap();
|
|
1945
|
-
_modifiers = new WeakMap();
|
|
1946
|
-
_status = new WeakMap();
|
|
1947
|
-
__decorateElement$3(_init4$1, 4, "type", _type_dec, Draggable$2, _type);
|
|
1948
|
-
__decorateElement$3(_init4$1, 4, "modifiers", _modifiers_dec, Draggable$2, _modifiers);
|
|
1949
|
-
__decorateElement$3(_init4$1, 4, "status", _status_dec, Draggable$2, _status);
|
|
1950
|
-
__decorateElement$3(_init4$1, 2, "isDropping", _isDropping_dec, Draggable$2);
|
|
1951
|
-
__decorateElement$3(_init4$1, 2, "isDragging", _isDragging_dec, Draggable$2);
|
|
1952
|
-
__decorateElement$3(_init4$1, 2, "isDragSource", _isDragSource_dec, Draggable$2);
|
|
1953
|
-
__decoratorMetadata$3(_init4$1, Draggable$2);
|
|
1954
|
-
var _isDropTarget_dec, _shape_dec, _collisionPriority_dec, _collisionDetector_dec, _type_dec2, _accept_dec, _c2$1, _init5$1, _accept, _type2, _collisionDetector, _collisionPriority, _shape;
|
|
1955
|
-
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) {
|
|
1956
|
-
constructor(_a, manager) {
|
|
1957
|
-
var _b = _a, { accept, collisionDetector, collisionPriority, type } = _b, input = __objRest$3(_b, [
|
|
1958
|
-
"accept",
|
|
1959
|
-
"collisionDetector",
|
|
1960
|
-
"collisionPriority",
|
|
1961
|
-
"type"
|
|
1962
|
-
]);
|
|
1963
|
-
super(input, manager);
|
|
1964
|
-
__runInitializers$3(_init5$1, 5, this);
|
|
1965
|
-
__privateAdd$4(this, _accept, __runInitializers$3(_init5$1, 8, this)), __runInitializers$3(_init5$1, 11, this);
|
|
1966
|
-
__privateAdd$4(this, _type2, __runInitializers$3(_init5$1, 12, this)), __runInitializers$3(_init5$1, 15, this);
|
|
1967
|
-
__privateAdd$4(this, _collisionDetector, __runInitializers$3(_init5$1, 16, this)), __runInitializers$3(_init5$1, 19, this);
|
|
1968
|
-
__privateAdd$4(this, _collisionPriority, __runInitializers$3(_init5$1, 20, this)), __runInitializers$3(_init5$1, 23, this);
|
|
1969
|
-
__privateAdd$4(this, _shape, __runInitializers$3(_init5$1, 24, this)), __runInitializers$3(_init5$1, 27, this);
|
|
1970
|
-
this.accept = accept;
|
|
1971
|
-
this.collisionDetector = collisionDetector;
|
|
1972
|
-
this.collisionPriority = collisionPriority;
|
|
1973
|
-
this.type = type;
|
|
1974
|
-
}
|
|
1975
|
-
/**
|
|
1976
|
-
* Checks whether or not the droppable accepts a given draggable.
|
|
1977
|
-
*
|
|
1978
|
-
* @param draggable - The draggable to check
|
|
1979
|
-
* @returns true if the draggable can be dropped here
|
|
1980
|
-
*/
|
|
1981
|
-
accepts(draggable) {
|
|
1982
|
-
const { accept } = this;
|
|
1983
|
-
if (!accept) return true;
|
|
1984
|
-
if (typeof accept === "function") return accept(draggable);
|
|
1985
|
-
if (!draggable.type) return false;
|
|
1986
|
-
if (Array.isArray(accept)) return accept.includes(draggable.type);
|
|
1987
|
-
return draggable.type === accept;
|
|
1988
|
-
}
|
|
1989
|
-
get isDropTarget() {
|
|
1990
|
-
var _a, _b;
|
|
1991
|
-
return ((_b = (_a = this.manager) == null ? void 0 : _a.dragOperation.target) == null ? void 0 : _b.id) === this.id;
|
|
1992
|
-
}
|
|
1993
|
-
};
|
|
1994
|
-
_init5$1 = __decoratorStart$3(_c2$1);
|
|
1995
|
-
_accept = new WeakMap();
|
|
1996
|
-
_type2 = new WeakMap();
|
|
1997
|
-
_collisionDetector = new WeakMap();
|
|
1998
|
-
_collisionPriority = new WeakMap();
|
|
1999
|
-
_shape = new WeakMap();
|
|
2000
|
-
__decorateElement$3(_init5$1, 4, "accept", _accept_dec, Droppable$1, _accept);
|
|
2001
|
-
__decorateElement$3(_init5$1, 4, "type", _type_dec2, Droppable$1, _type2);
|
|
2002
|
-
__decorateElement$3(_init5$1, 4, "collisionDetector", _collisionDetector_dec, Droppable$1, _collisionDetector);
|
|
2003
|
-
__decorateElement$3(_init5$1, 4, "collisionPriority", _collisionPriority_dec, Droppable$1, _collisionPriority);
|
|
2004
|
-
__decorateElement$3(_init5$1, 4, "shape", _shape_dec, Droppable$1, _shape);
|
|
2005
|
-
__decorateElement$3(_init5$1, 2, "isDropTarget", _isDropTarget_dec, Droppable$1);
|
|
2006
|
-
__decoratorMetadata$3(_init5$1, Droppable$1);
|
|
2007
|
-
var Sensor = class extends Plugin {
|
|
2008
|
-
/**
|
|
2009
|
-
* Creates a new sensor instance.
|
|
2010
|
-
*
|
|
2011
|
-
* @param manager - The drag drop manager instance
|
|
2012
|
-
* @param options - Optional sensor configuration
|
|
2013
|
-
*/
|
|
2014
|
-
constructor(manager, options) {
|
|
2015
|
-
super(manager, options);
|
|
2167
|
+
constructor(manager, options) {
|
|
2168
|
+
super(manager, options);
|
|
2016
2169
|
this.manager = manager;
|
|
2017
2170
|
this.options = options;
|
|
2018
2171
|
}
|
|
@@ -2137,7 +2290,25 @@ var DragDropRegistry = class {
|
|
|
2137
2290
|
this.modifiers.destroy();
|
|
2138
2291
|
}
|
|
2139
2292
|
};
|
|
2140
|
-
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;
|
|
2141
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];
|
|
2142
2313
|
var DragOperation = class {
|
|
2143
2314
|
/**
|
|
@@ -2305,7 +2476,8 @@ var DragDropManager$1 = class {
|
|
|
2305
2476
|
const modifiers = resolveCustomizable(raw.modifiers, []);
|
|
2306
2477
|
const renderer = (_a = raw.renderer) != null ? _a : defaultRenderer;
|
|
2307
2478
|
const monitor = new DragDropMonitor(this);
|
|
2308
|
-
|
|
2479
|
+
const registry = new DragDropRegistry(this);
|
|
2480
|
+
this.registry = registry;
|
|
2309
2481
|
this.monitor = monitor;
|
|
2310
2482
|
this.renderer = renderer;
|
|
2311
2483
|
this.actions = new DragActions(this);
|
|
@@ -2380,57 +2552,89 @@ var DragDropManager$1 = class {
|
|
|
2380
2552
|
}
|
|
2381
2553
|
};
|
|
2382
2554
|
//#endregion
|
|
2383
|
-
//#region node_modules/@dnd-kit/
|
|
2384
|
-
var
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
var
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
const intersectionArea = shape.current.intersectionArea(droppable.shape);
|
|
2401
|
-
if (intersectionArea) {
|
|
2402
|
-
const { position } = dragOperation;
|
|
2403
|
-
const distance = Point$1.distance(droppable.shape.center, position.current);
|
|
2404
|
-
const value = intersectionArea / (shape.current.area + droppable.shape.area - intersectionArea) / distance;
|
|
2405
|
-
return {
|
|
2406
|
-
id: droppable.id,
|
|
2407
|
-
value,
|
|
2408
|
-
type: CollisionType.ShapeIntersection,
|
|
2409
|
-
priority: CollisionPriority.Normal
|
|
2410
|
-
};
|
|
2555
|
+
//#region node_modules/@dnd-kit/abstract/modifiers.js
|
|
2556
|
+
var __defProp$3 = Object.defineProperty;
|
|
2557
|
+
var __defProps$3 = Object.defineProperties;
|
|
2558
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
2559
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
2560
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
2561
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
2562
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
2563
|
+
enumerable: true,
|
|
2564
|
+
configurable: true,
|
|
2565
|
+
writable: true,
|
|
2566
|
+
value
|
|
2567
|
+
}) : obj[key] = value;
|
|
2568
|
+
var __spreadValues$3 = (a, b) => {
|
|
2569
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$4.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
2570
|
+
if (__getOwnPropSymbols$4) {
|
|
2571
|
+
for (var prop of __getOwnPropSymbols$4(b)) if (__propIsEnum$4.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
2411
2572
|
}
|
|
2412
|
-
return
|
|
2573
|
+
return a;
|
|
2413
2574
|
};
|
|
2414
|
-
var
|
|
2415
|
-
|
|
2416
|
-
|
|
2575
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
2576
|
+
var _AxisModifier = class _AxisModifier extends Modifier {
|
|
2577
|
+
/**
|
|
2578
|
+
* Applies the axis restriction to the drag operation.
|
|
2579
|
+
*
|
|
2580
|
+
* @param operation - The current drag operation
|
|
2581
|
+
* @returns The modified transform with the axis restriction applied
|
|
2582
|
+
*/
|
|
2583
|
+
apply({ transform }) {
|
|
2584
|
+
if (!this.options) return transform;
|
|
2585
|
+
const { axis, value } = this.options;
|
|
2586
|
+
return __spreadProps$3(__spreadValues$3({}, transform), { [axis]: value });
|
|
2587
|
+
}
|
|
2417
2588
|
};
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2589
|
+
/**
|
|
2590
|
+
* Creates a configured instance of the AxisModifier.
|
|
2591
|
+
*
|
|
2592
|
+
* @param options - The axis restriction options
|
|
2593
|
+
* @returns A configured AxisModifier instance
|
|
2594
|
+
*/
|
|
2595
|
+
_AxisModifier.configure = configurator(_AxisModifier);
|
|
2596
|
+
var AxisModifier = _AxisModifier;
|
|
2597
|
+
var RestrictToVerticalAxis = AxisModifier.configure({
|
|
2598
|
+
axis: "x",
|
|
2599
|
+
value: 0
|
|
2600
|
+
});
|
|
2601
|
+
var RestrictToHorizontalAxis = AxisModifier.configure({
|
|
2602
|
+
axis: "y",
|
|
2603
|
+
value: 0
|
|
2604
|
+
});
|
|
2605
|
+
function restrictShapeToBoundingRectangle(shape, transform, boundingRect) {
|
|
2606
|
+
const value = __spreadValues$3({}, transform);
|
|
2607
|
+
if (shape.boundingRectangle.top + transform.y <= boundingRect.top) value.y = boundingRect.top - shape.boundingRectangle.top;
|
|
2608
|
+
else if (shape.boundingRectangle.bottom + transform.y >= boundingRect.top + boundingRect.height) value.y = boundingRect.top + boundingRect.height - shape.boundingRectangle.bottom;
|
|
2609
|
+
if (shape.boundingRectangle.left + transform.x <= boundingRect.left) value.x = boundingRect.left - shape.boundingRectangle.left;
|
|
2610
|
+
else if (shape.boundingRectangle.right + transform.x >= boundingRect.left + boundingRect.width) value.x = boundingRect.left + boundingRect.width - shape.boundingRectangle.right;
|
|
2611
|
+
return value;
|
|
2612
|
+
}
|
|
2613
|
+
var _SnapModifier = class _SnapModifier extends Modifier {
|
|
2614
|
+
/**
|
|
2615
|
+
* Applies the snap grid to the drag operation.
|
|
2616
|
+
*
|
|
2617
|
+
* @param operation - The current drag operation
|
|
2618
|
+
* @returns The modified transform with coordinates snapped to the grid
|
|
2619
|
+
*/
|
|
2620
|
+
apply({ transform }) {
|
|
2621
|
+
var _a;
|
|
2622
|
+
const { size = 20 } = (_a = this.options) != null ? _a : {};
|
|
2623
|
+
const x = typeof size === "number" ? size : size.x;
|
|
2624
|
+
const y = typeof size === "number" ? size : size.y;
|
|
2625
|
+
return __spreadProps$3(__spreadValues$3({}, transform), {
|
|
2626
|
+
x: Math.ceil(transform.x / x) * x,
|
|
2627
|
+
y: Math.ceil(transform.y / y) * y
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2433
2630
|
};
|
|
2631
|
+
/**
|
|
2632
|
+
* Creates a configured instance of the SnapModifier.
|
|
2633
|
+
*
|
|
2634
|
+
* @param options - The snap grid options
|
|
2635
|
+
* @returns A configured SnapModifier instance
|
|
2636
|
+
*/
|
|
2637
|
+
_SnapModifier.configure = configurator(_SnapModifier);
|
|
2434
2638
|
//#endregion
|
|
2435
2639
|
//#region node_modules/@dnd-kit/dom/utilities.js
|
|
2436
2640
|
var __typeError$3 = (msg) => {
|
|
@@ -2448,13 +2652,14 @@ function isKeyframeEffect(effect) {
|
|
|
2448
2652
|
}
|
|
2449
2653
|
function getFinalKeyframe(element, match) {
|
|
2450
2654
|
const animations2 = element.getAnimations();
|
|
2451
|
-
|
|
2655
|
+
let result = null;
|
|
2656
|
+
for (const animation of animations2) {
|
|
2452
2657
|
if (animation.playState !== "running") continue;
|
|
2453
2658
|
const { effect } = animation;
|
|
2454
2659
|
const matchedKeyframes = (isKeyframeEffect(effect) ? effect.getKeyframes() : []).filter(match);
|
|
2455
|
-
if (matchedKeyframes.length > 0)
|
|
2660
|
+
if (matchedKeyframes.length > 0) result = [matchedKeyframes[matchedKeyframes.length - 1], animation];
|
|
2456
2661
|
}
|
|
2457
|
-
return
|
|
2662
|
+
return result;
|
|
2458
2663
|
}
|
|
2459
2664
|
function getBoundingRectangle(element) {
|
|
2460
2665
|
const { width, height, top, left, bottom, right } = element.getBoundingClientRect();
|
|
@@ -2661,15 +2866,15 @@ function isIFrameElement(element) {
|
|
|
2661
2866
|
return (element == null ? void 0 : element.tagName) === "IFRAME";
|
|
2662
2867
|
}
|
|
2663
2868
|
var ProxiedElements = new WeakMap();
|
|
2664
|
-
function
|
|
2665
|
-
return
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
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
|
+
`);
|
|
2673
2878
|
}
|
|
2674
2879
|
var Listeners = class {
|
|
2675
2880
|
constructor() {
|
|
@@ -2693,8 +2898,13 @@ var Listeners = class {
|
|
|
2693
2898
|
this.entries.add(entry);
|
|
2694
2899
|
entries.push(entry);
|
|
2695
2900
|
}
|
|
2901
|
+
const allEntries = this.entries;
|
|
2696
2902
|
return function cleanup() {
|
|
2697
|
-
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
|
+
}
|
|
2698
2908
|
};
|
|
2699
2909
|
}
|
|
2700
2910
|
};
|
|
@@ -2763,7 +2973,17 @@ var ResizeNotifier = class extends Observer {
|
|
|
2763
2973
|
_initialized = new WeakMap();
|
|
2764
2974
|
var threshold = Array.from({ length: 100 }, (_, index) => index / 100);
|
|
2765
2975
|
var THROTTLE_INTERVAL = 75;
|
|
2766
|
-
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;
|
|
2767
2987
|
var PositionObserver = class {
|
|
2768
2988
|
constructor(element, callback, options = {
|
|
2769
2989
|
debug: false,
|
|
@@ -2940,7 +3160,10 @@ function addScrollListener(element, callback) {
|
|
|
2940
3160
|
}
|
|
2941
3161
|
};
|
|
2942
3162
|
}
|
|
2943
|
-
var _elementObserver
|
|
3163
|
+
var _elementObserver;
|
|
3164
|
+
var _disconnected2;
|
|
3165
|
+
var _frames;
|
|
3166
|
+
var _handleScroll;
|
|
2944
3167
|
var FrameObserver = class {
|
|
2945
3168
|
constructor(element, callback, options) {
|
|
2946
3169
|
this.callback = callback;
|
|
@@ -3127,10 +3350,6 @@ function getScrollableAncestors(element, options = defaultOptions) {
|
|
|
3127
3350
|
if (!element) return scrollParents;
|
|
3128
3351
|
return findScrollableAncestors(element);
|
|
3129
3352
|
}
|
|
3130
|
-
function getFirstScrollableAncestor(node) {
|
|
3131
|
-
const [firstScrollableAncestor] = getScrollableAncestors(node, { limit: 1 });
|
|
3132
|
-
return firstScrollableAncestor != null ? firstScrollableAncestor : null;
|
|
3133
|
-
}
|
|
3134
3353
|
function getFrameTransform(el, boundary = window.frameElement) {
|
|
3135
3354
|
const transform = {
|
|
3136
3355
|
x: 0,
|
|
@@ -3166,7 +3385,7 @@ function getScale(element, boundingRectangle = getBoundingRectangle(element)) {
|
|
|
3166
3385
|
};
|
|
3167
3386
|
}
|
|
3168
3387
|
function parseScale(scale) {
|
|
3169
|
-
if (scale === "none") return null;
|
|
3388
|
+
if (!scale || scale === "none") return null;
|
|
3170
3389
|
const values = scale.split(" ");
|
|
3171
3390
|
const x = parseFloat(values[0]);
|
|
3172
3391
|
const y = parseFloat(values[1]);
|
|
@@ -3177,7 +3396,7 @@ function parseScale(scale) {
|
|
|
3177
3396
|
};
|
|
3178
3397
|
}
|
|
3179
3398
|
function parseTranslate(translate) {
|
|
3180
|
-
if (translate === "none") return null;
|
|
3399
|
+
if (!translate || translate === "none") return null;
|
|
3181
3400
|
const [x, y, z = "0"] = translate.split(" ");
|
|
3182
3401
|
const output = {
|
|
3183
3402
|
x: parseFloat(x),
|
|
@@ -3274,17 +3493,17 @@ function detectScrollIntent(scrollableElement, coordinates, intent, acceleration
|
|
|
3274
3493
|
height: scrollContainerRect.height * thresholdPercentage.y,
|
|
3275
3494
|
width: scrollContainerRect.width * thresholdPercentage.x
|
|
3276
3495
|
};
|
|
3277
|
-
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) {
|
|
3278
3497
|
direction.y = isYAxisInverted ? 1 : -1;
|
|
3279
3498
|
speed.y = acceleration * Math.abs((scrollContainerRect.top + threshold2.height - y) / threshold2.height);
|
|
3280
|
-
} 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) {
|
|
3281
3500
|
direction.y = isYAxisInverted ? -1 : 1;
|
|
3282
3501
|
speed.y = acceleration * Math.abs((scrollContainerRect.bottom - threshold2.height - y) / threshold2.height);
|
|
3283
3502
|
}
|
|
3284
|
-
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) {
|
|
3285
3504
|
direction.x = isXAxisInverted ? -1 : 1;
|
|
3286
3505
|
speed.x = acceleration * Math.abs((scrollContainerRect.right - threshold2.width - x) / threshold2.width);
|
|
3287
|
-
} 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) {
|
|
3288
3507
|
direction.x = isXAxisInverted ? 1 : -1;
|
|
3289
3508
|
speed.x = acceleration * Math.abs((scrollContainerRect.left + threshold2.width - x) / threshold2.width);
|
|
3290
3509
|
}
|
|
@@ -3293,21 +3512,59 @@ function detectScrollIntent(scrollableElement, coordinates, intent, acceleration
|
|
|
3293
3512
|
speed
|
|
3294
3513
|
};
|
|
3295
3514
|
}
|
|
3296
|
-
function
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
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;
|
|
3303
3555
|
}
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
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
|
+
};
|
|
3311
3568
|
}
|
|
3312
3569
|
function applyTransform(rect, parsedTransform, transformOrigin) {
|
|
3313
3570
|
const { scaleX, scaleY, x: translateX, y: translateY } = parsedTransform;
|
|
@@ -3463,32 +3720,37 @@ var DOMRectangle = class extends Rectangle {
|
|
|
3463
3720
|
}
|
|
3464
3721
|
};
|
|
3465
3722
|
function getProjectedTransform(element, computedStyles) {
|
|
3466
|
-
var _a;
|
|
3467
3723
|
const animations2 = element.getAnimations();
|
|
3468
|
-
let projectedTransform = null;
|
|
3469
3724
|
if (!animations2.length) return null;
|
|
3725
|
+
let latestTransform;
|
|
3726
|
+
let latestTranslate;
|
|
3727
|
+
let latestScale;
|
|
3728
|
+
let hasAnimatedProperty = false;
|
|
3470
3729
|
for (const animation of animations2) {
|
|
3471
3730
|
if (animation.playState !== "running") continue;
|
|
3472
3731
|
const keyframes = isKeyframeEffect(animation.effect) ? animation.effect.getKeyframes() : [];
|
|
3473
3732
|
const keyframe = keyframes[keyframes.length - 1];
|
|
3474
3733
|
if (!keyframe) continue;
|
|
3475
3734
|
const { transform, translate, scale } = keyframe;
|
|
3476
|
-
if (transform
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
scaleY: projectedTransform.scaleY * parsedTransform.scaleY
|
|
3488
|
-
} : 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;
|
|
3489
3746
|
}
|
|
3490
3747
|
}
|
|
3491
|
-
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
|
+
});
|
|
3492
3754
|
}
|
|
3493
3755
|
function supportsStyle(element) {
|
|
3494
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";
|
|
@@ -3551,42 +3813,145 @@ function generateUniqueId(prefix) {
|
|
|
3551
3813
|
return `${prefix}-${id}`;
|
|
3552
3814
|
}
|
|
3553
3815
|
//#endregion
|
|
3816
|
+
//#region node_modules/@dnd-kit/dom/modifiers.js
|
|
3817
|
+
var _RestrictToElement = class _RestrictToElement extends Modifier {
|
|
3818
|
+
constructor(manager, options) {
|
|
3819
|
+
super(manager, options);
|
|
3820
|
+
this.boundingRectangle = y(null);
|
|
3821
|
+
this.destroy = j(() => {
|
|
3822
|
+
if (!this.options) return;
|
|
3823
|
+
const { dragOperation } = manager;
|
|
3824
|
+
const { status } = dragOperation;
|
|
3825
|
+
if (status.initialized) {
|
|
3826
|
+
const { element } = this.options;
|
|
3827
|
+
const target = typeof element === "function" ? element(dragOperation) : element;
|
|
3828
|
+
if (!target) return;
|
|
3829
|
+
let timeout;
|
|
3830
|
+
const updateBoundingRectangle = () => {
|
|
3831
|
+
this.boundingRectangle.value = getBoundingRectangle(target);
|
|
3832
|
+
};
|
|
3833
|
+
const handleScroll = () => {
|
|
3834
|
+
if (timeout) return;
|
|
3835
|
+
timeout = setTimeout(() => {
|
|
3836
|
+
updateBoundingRectangle();
|
|
3837
|
+
timeout = void 0;
|
|
3838
|
+
}, 25);
|
|
3839
|
+
};
|
|
3840
|
+
const resizeObserver = new ResizeObserver(updateBoundingRectangle);
|
|
3841
|
+
resizeObserver.observe(target);
|
|
3842
|
+
document.addEventListener("scroll", handleScroll, {
|
|
3843
|
+
passive: true,
|
|
3844
|
+
capture: true
|
|
3845
|
+
});
|
|
3846
|
+
return () => {
|
|
3847
|
+
document.removeEventListener("scroll", handleScroll, { capture: true });
|
|
3848
|
+
resizeObserver.disconnect();
|
|
3849
|
+
this.boundingRectangle.value = null;
|
|
3850
|
+
};
|
|
3851
|
+
}
|
|
3852
|
+
});
|
|
3853
|
+
}
|
|
3854
|
+
apply(operation) {
|
|
3855
|
+
const { shape, transform } = operation;
|
|
3856
|
+
if (!shape) return transform;
|
|
3857
|
+
const boundingRectangle = this.boundingRectangle.value;
|
|
3858
|
+
if (!boundingRectangle) return transform;
|
|
3859
|
+
const { initial, current } = shape;
|
|
3860
|
+
const { height, width } = current.boundingRectangle;
|
|
3861
|
+
return restrictShapeToBoundingRectangle(new Rectangle(initial.center.x - width / 2, initial.center.y - height / 2, width, height), transform, boundingRectangle);
|
|
3862
|
+
}
|
|
3863
|
+
};
|
|
3864
|
+
_RestrictToElement.configure = configurator(_RestrictToElement);
|
|
3865
|
+
var RestrictToElement = _RestrictToElement;
|
|
3866
|
+
//#endregion
|
|
3867
|
+
//#region node_modules/@dnd-kit/collision/dist/index.js
|
|
3868
|
+
var pointerIntersection = ({ dragOperation, droppable }) => {
|
|
3869
|
+
const pointerCoordinates = dragOperation.position.current;
|
|
3870
|
+
if (!pointerCoordinates) return null;
|
|
3871
|
+
const { id } = droppable;
|
|
3872
|
+
if (!droppable.shape) return null;
|
|
3873
|
+
if (droppable.shape.containsPoint(pointerCoordinates)) return {
|
|
3874
|
+
id,
|
|
3875
|
+
value: 1 / Point$1.distance(droppable.shape.center, pointerCoordinates),
|
|
3876
|
+
type: CollisionType.PointerIntersection,
|
|
3877
|
+
priority: CollisionPriority.High
|
|
3878
|
+
};
|
|
3879
|
+
return null;
|
|
3880
|
+
};
|
|
3881
|
+
var shapeIntersection = ({ dragOperation, droppable }) => {
|
|
3882
|
+
const { shape } = dragOperation;
|
|
3883
|
+
if (!droppable.shape || !(shape == null ? void 0 : shape.current)) return null;
|
|
3884
|
+
const intersectionArea = shape.current.intersectionArea(droppable.shape);
|
|
3885
|
+
if (intersectionArea) {
|
|
3886
|
+
const { position } = dragOperation;
|
|
3887
|
+
const distance = Point$1.distance(droppable.shape.center, position.current);
|
|
3888
|
+
const value = intersectionArea / (shape.current.area + droppable.shape.area - intersectionArea) / distance;
|
|
3889
|
+
return {
|
|
3890
|
+
id: droppable.id,
|
|
3891
|
+
value,
|
|
3892
|
+
type: CollisionType.ShapeIntersection,
|
|
3893
|
+
priority: CollisionPriority.Normal
|
|
3894
|
+
};
|
|
3895
|
+
}
|
|
3896
|
+
return null;
|
|
3897
|
+
};
|
|
3898
|
+
var defaultCollisionDetection = (args) => {
|
|
3899
|
+
var _a;
|
|
3900
|
+
return (_a = pointerIntersection(args)) != null ? _a : shapeIntersection(args);
|
|
3901
|
+
};
|
|
3902
|
+
var closestCorners = (input) => {
|
|
3903
|
+
const { dragOperation, droppable } = input;
|
|
3904
|
+
const { shape, position } = dragOperation;
|
|
3905
|
+
if (!droppable.shape) return null;
|
|
3906
|
+
const shapeCorners = shape ? Rectangle.from(shape.current.boundingRectangle).corners : void 0;
|
|
3907
|
+
const value = Rectangle.from(droppable.shape.boundingRectangle).corners.reduce((acc, corner, index) => {
|
|
3908
|
+
var _a;
|
|
3909
|
+
return acc + Point$1.distance(Point$1.from(corner), (_a = shapeCorners == null ? void 0 : shapeCorners[index]) != null ? _a : position.current);
|
|
3910
|
+
}, 0) / 4;
|
|
3911
|
+
return {
|
|
3912
|
+
id: droppable.id,
|
|
3913
|
+
value: 1 / value,
|
|
3914
|
+
type: CollisionType.Collision,
|
|
3915
|
+
priority: CollisionPriority.Normal
|
|
3916
|
+
};
|
|
3917
|
+
};
|
|
3918
|
+
//#endregion
|
|
3554
3919
|
//#region node_modules/@dnd-kit/dom/index.js
|
|
3555
3920
|
var __create$2 = Object.create;
|
|
3556
|
-
var __defProp$
|
|
3557
|
-
var __defProps$
|
|
3921
|
+
var __defProp$2 = Object.defineProperty;
|
|
3922
|
+
var __defProps$2 = Object.defineProperties;
|
|
3558
3923
|
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
3559
|
-
var __getOwnPropDescs$
|
|
3560
|
-
var __getOwnPropSymbols$
|
|
3561
|
-
var __hasOwnProp$
|
|
3562
|
-
var __propIsEnum$
|
|
3924
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
3925
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
3926
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
3927
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
3563
3928
|
var __knownSymbol$2 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
3564
3929
|
var __typeError$2 = (msg) => {
|
|
3565
3930
|
throw TypeError(msg);
|
|
3566
3931
|
};
|
|
3567
|
-
var __defNormalProp$
|
|
3932
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
|
|
3568
3933
|
enumerable: true,
|
|
3569
3934
|
configurable: true,
|
|
3570
3935
|
writable: true,
|
|
3571
3936
|
value
|
|
3572
3937
|
}) : obj[key] = value;
|
|
3573
|
-
var __spreadValues$
|
|
3574
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
3575
|
-
if (__getOwnPropSymbols$
|
|
3576
|
-
for (var prop of __getOwnPropSymbols$
|
|
3938
|
+
var __spreadValues$2 = (a, b) => {
|
|
3939
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$2(a, prop, b[prop]);
|
|
3940
|
+
if (__getOwnPropSymbols$3) {
|
|
3941
|
+
for (var prop of __getOwnPropSymbols$3(b)) if (__propIsEnum$3.call(b, prop)) __defNormalProp$2(a, prop, b[prop]);
|
|
3577
3942
|
}
|
|
3578
3943
|
return a;
|
|
3579
3944
|
};
|
|
3580
|
-
var __spreadProps$
|
|
3581
|
-
var __name = (target, value) => __defProp$
|
|
3945
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
3946
|
+
var __name = (target, value) => __defProp$2(target, "name", {
|
|
3582
3947
|
value,
|
|
3583
3948
|
configurable: true
|
|
3584
3949
|
});
|
|
3585
3950
|
var __objRest$2 = (source, exclude) => {
|
|
3586
3951
|
var target = {};
|
|
3587
|
-
for (var prop in source) if (__hasOwnProp$
|
|
3588
|
-
if (source != null && __getOwnPropSymbols$
|
|
3589
|
-
for (var prop of __getOwnPropSymbols$
|
|
3952
|
+
for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
3953
|
+
if (source != null && __getOwnPropSymbols$3) {
|
|
3954
|
+
for (var prop of __getOwnPropSymbols$3(source)) if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
|
|
3590
3955
|
}
|
|
3591
3956
|
return target;
|
|
3592
3957
|
};
|
|
@@ -3617,7 +3982,7 @@ var __decoratorContext$2 = (kind, name, done, metadata, fns) => ({
|
|
|
3617
3982
|
metadata,
|
|
3618
3983
|
addInitializer: (fn) => done._ ? __typeError$2("Already initialized") : fns.push(__expectFn$2(fn || null))
|
|
3619
3984
|
});
|
|
3620
|
-
var __decoratorMetadata$2 = (array, target) => __defNormalProp$
|
|
3985
|
+
var __decoratorMetadata$2 = (array, target) => __defNormalProp$2(target, __knownSymbol$2("metadata"), array[3]);
|
|
3621
3986
|
var __runInitializers$2 = (array, flags, self, value) => {
|
|
3622
3987
|
for (var i = 0, fns = array[flags >> 1], n = fns && fns.length; i < n; i++) flags & 1 ? fns[i].call(self) : value = fns[i].call(self, value);
|
|
3623
3988
|
return value;
|
|
@@ -3650,7 +4015,7 @@ var __decorateElement$2 = (array, flags, name, decorators, target, extra) => {
|
|
|
3650
4015
|
else if (typeof it !== "object" || it === null) __typeError$2("Object expected");
|
|
3651
4016
|
else __expectFn$2(fn = it.get) && (desc.get = fn), __expectFn$2(fn = it.set) && (desc.set = fn), __expectFn$2(fn = it.init) && initializers.unshift(fn);
|
|
3652
4017
|
}
|
|
3653
|
-
return k || __decoratorMetadata$2(array, target), desc && __defProp$
|
|
4018
|
+
return k || __decoratorMetadata$2(array, target), desc && __defProp$2(target, name, desc), p ? k ^ 4 ? extra : desc : target;
|
|
3654
4019
|
};
|
|
3655
4020
|
var __accessCheck$2 = (obj, member, msg) => member.has(obj) || __typeError$2("Cannot " + msg);
|
|
3656
4021
|
var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError$2("Cannot use the \"in\" operator on this value") : member.has(obj);
|
|
@@ -3805,43 +4170,32 @@ function debounce(fn, wait) {
|
|
|
3805
4170
|
debounced.cancel = () => clearTimeout(timeout);
|
|
3806
4171
|
return debounced;
|
|
3807
4172
|
}
|
|
3808
|
-
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) {
|
|
3809
4188
|
constructor(manager, options) {
|
|
3810
4189
|
super(manager, options);
|
|
3811
|
-
this.manager = manager;
|
|
3812
|
-
const doc = computed(() => {
|
|
3813
|
-
var _a5;
|
|
3814
|
-
return getDocument((_a5 = this.manager.dragOperation.source) == null ? void 0 : _a5.element);
|
|
3815
|
-
});
|
|
3816
|
-
this.destroy = C(() => {
|
|
3817
|
-
var _a5;
|
|
3818
|
-
const { dragOperation } = this.manager;
|
|
3819
|
-
const { cursor = "grabbing", nonce } = (_a5 = this.options) != null ? _a5 : {};
|
|
3820
|
-
if (dragOperation.status.initialized) {
|
|
3821
|
-
const document2 = doc.value;
|
|
3822
|
-
const style = document2.createElement("style");
|
|
3823
|
-
if (nonce) style.setAttribute("nonce", nonce);
|
|
3824
|
-
style.textContent = `* { cursor: ${cursor} !important; }`;
|
|
3825
|
-
document2.head.appendChild(style);
|
|
3826
|
-
return () => style.remove();
|
|
3827
|
-
}
|
|
3828
|
-
});
|
|
3829
|
-
}
|
|
3830
|
-
};
|
|
3831
|
-
var styleRegistry = new Map();
|
|
3832
|
-
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;
|
|
3833
|
-
var StyleSheetManager = class extends (_a$1 = CorePlugin, _additionalRoots_dec = [reactive], _sourceRoot_dec = [derived], _targetRoot_dec = [derived], _roots_dec = [derived], _a$1) {
|
|
3834
|
-
constructor(manager) {
|
|
3835
|
-
super(manager);
|
|
3836
4190
|
__runInitializers$2(_init$2, 5, this);
|
|
3837
|
-
__privateAdd$2(this,
|
|
4191
|
+
__privateAdd$2(this, _StyleInjector_instances);
|
|
3838
4192
|
__privateAdd$2(this, _registeredRules, new Set());
|
|
3839
4193
|
__privateAdd$2(this, _additionalRoots, __runInitializers$2(_init$2, 8, this, new Set())), __runInitializers$2(_init$2, 11, this);
|
|
3840
|
-
this.registerEffect(__privateMethod(this,
|
|
4194
|
+
this.registerEffect(__privateMethod(this, _StyleInjector_instances, syncStyles_fn));
|
|
3841
4195
|
}
|
|
3842
4196
|
/**
|
|
3843
4197
|
* Registers CSS rules to be injected into the active drag operation's
|
|
3844
|
-
* document and shadow roots. The
|
|
4198
|
+
* document and shadow roots. The StyleInjector handles tracking
|
|
3845
4199
|
* which roots need the styles and cleaning up when they're no longer needed.
|
|
3846
4200
|
*
|
|
3847
4201
|
* Returns a cleanup function that unregisters the rules.
|
|
@@ -3892,11 +4246,11 @@ var StyleSheetManager = class extends (_a$1 = CorePlugin, _additionalRoots_dec =
|
|
|
3892
4246
|
_init$2 = __decoratorStart$2(_a$1);
|
|
3893
4247
|
_registeredRules = new WeakMap();
|
|
3894
4248
|
_additionalRoots = new WeakMap();
|
|
3895
|
-
|
|
4249
|
+
_StyleInjector_instances = new WeakSet();
|
|
3896
4250
|
syncStyles_fn = function() {
|
|
3897
4251
|
const { roots } = this;
|
|
3898
4252
|
const cleanups = [];
|
|
3899
|
-
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));
|
|
3900
4254
|
return () => {
|
|
3901
4255
|
for (const cleanup of cleanups) cleanup();
|
|
3902
4256
|
};
|
|
@@ -3909,7 +4263,7 @@ inject_fn = function(root, cssRules) {
|
|
|
3909
4263
|
}
|
|
3910
4264
|
let registration = rootStyles.get(cssRules);
|
|
3911
4265
|
if (!registration) {
|
|
3912
|
-
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);
|
|
3913
4267
|
if (!created) return () => {};
|
|
3914
4268
|
registration = created;
|
|
3915
4269
|
rootStyles.set(cssRules, registration);
|
|
@@ -3929,7 +4283,10 @@ inject_fn = function(root, cssRules) {
|
|
|
3929
4283
|
* giving them the lowest cascade priority.
|
|
3930
4284
|
*/
|
|
3931
4285
|
injectStyleElement_fn = function(root, rootStyles, cssRules) {
|
|
4286
|
+
var _a5;
|
|
3932
4287
|
const style = root.createElement("style");
|
|
4288
|
+
const { nonce } = (_a5 = this.options) != null ? _a5 : {};
|
|
4289
|
+
if (nonce) style.setAttribute("nonce", nonce);
|
|
3933
4290
|
style.textContent = cssRules;
|
|
3934
4291
|
root.head.prepend(style);
|
|
3935
4292
|
const observer = new MutationObserver((entries) => {
|
|
@@ -3977,11 +4334,29 @@ injectAdoptedSheet_fn = function(root, rootStyles, cssRules) {
|
|
|
3977
4334
|
}
|
|
3978
4335
|
};
|
|
3979
4336
|
};
|
|
3980
|
-
__decorateElement$2(_init$2, 4, "additionalRoots", _additionalRoots_dec,
|
|
3981
|
-
__decorateElement$2(_init$2, 2, "sourceRoot", _sourceRoot_dec,
|
|
3982
|
-
__decorateElement$2(_init$2, 2, "targetRoot", _targetRoot_dec,
|
|
3983
|
-
__decorateElement$2(_init$2, 2, "roots", _roots_dec,
|
|
3984
|
-
__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
|
+
};
|
|
3985
4360
|
var ATTR_PREFIX = "data-dnd-";
|
|
3986
4361
|
var DROPPING_ATTRIBUTE = `${ATTR_PREFIX}dropping`;
|
|
3987
4362
|
var CSS_PREFIX = "--dnd-";
|
|
@@ -4010,6 +4385,7 @@ var CSS_RULES = `
|
|
|
4010
4385
|
max-width: var(${CSS_PREFIX}width, auto);
|
|
4011
4386
|
height: var(${CSS_PREFIX}height, auto);
|
|
4012
4387
|
max-height: var(${CSS_PREFIX}height, auto);
|
|
4388
|
+
transform: var(${CSS_PREFIX}transform, none) !important;
|
|
4013
4389
|
transition: var(${CSS_PREFIX}transition) !important;
|
|
4014
4390
|
}
|
|
4015
4391
|
|
|
@@ -4142,7 +4518,7 @@ function createElementMutationObserver(element, placeholder, clone) {
|
|
|
4142
4518
|
} else if (attributeValue !== null) placeholder.setAttribute(attributeName, attributeValue);
|
|
4143
4519
|
else placeholder.removeAttribute(attributeName);
|
|
4144
4520
|
}
|
|
4145
|
-
if (hasChildrenMutations && clone) placeholder.
|
|
4521
|
+
if (hasChildrenMutations && clone) placeholder.replaceChildren(...element.cloneNode(true).childNodes);
|
|
4146
4522
|
});
|
|
4147
4523
|
observer.observe(element, {
|
|
4148
4524
|
attributes: true,
|
|
@@ -4168,6 +4544,10 @@ function createDocumentMutationObserver(element, placeholder, feedbackElement) {
|
|
|
4168
4544
|
}
|
|
4169
4545
|
}
|
|
4170
4546
|
}
|
|
4547
|
+
if (element.isConnected && placeholder.isConnected && element.nextElementSibling !== placeholder) {
|
|
4548
|
+
element.insertAdjacentElement("afterend", placeholder);
|
|
4549
|
+
showPopover(feedbackElement);
|
|
4550
|
+
}
|
|
4171
4551
|
});
|
|
4172
4552
|
observer.observe(element.ownerDocument.body, {
|
|
4173
4553
|
childList: true,
|
|
@@ -4177,7 +4557,7 @@ function createDocumentMutationObserver(element, placeholder, feedbackElement) {
|
|
|
4177
4557
|
}
|
|
4178
4558
|
function createResizeObserver(ctx) {
|
|
4179
4559
|
return new ResizeObserver(() => {
|
|
4180
|
-
var _a5, _b2;
|
|
4560
|
+
var _a5, _b2, _c3;
|
|
4181
4561
|
const placeholderShape = new DOMRectangle(ctx.placeholder, {
|
|
4182
4562
|
frameTransform: ctx.frameTransform,
|
|
4183
4563
|
ignoreTransforms: true
|
|
@@ -4205,7 +4585,16 @@ function createResizeObserver(ctx) {
|
|
|
4205
4585
|
cell.style.width = `${placeholderCell.getBoundingClientRect().width}px`;
|
|
4206
4586
|
}
|
|
4207
4587
|
}
|
|
4208
|
-
|
|
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);
|
|
4209
4598
|
});
|
|
4210
4599
|
}
|
|
4211
4600
|
var DEFAULT_DURATION = 250;
|
|
@@ -4215,6 +4604,7 @@ function runDropAnimation(ctx) {
|
|
|
4215
4604
|
const { animation } = ctx;
|
|
4216
4605
|
if (typeof animation === "function") {
|
|
4217
4606
|
const result = animation({
|
|
4607
|
+
source: ctx.source,
|
|
4218
4608
|
element: ctx.element,
|
|
4219
4609
|
feedbackElement: ctx.feedbackElement,
|
|
4220
4610
|
placeholder: ctx.placeholder,
|
|
@@ -4254,7 +4644,7 @@ function runDropAnimation(ctx) {
|
|
|
4254
4644
|
(_d2 = ctx.getElementMutationObserver()) == null || _d2.takeRecords();
|
|
4255
4645
|
animateTransform({
|
|
4256
4646
|
element: ctx.feedbackElement,
|
|
4257
|
-
keyframes: __spreadProps$
|
|
4647
|
+
keyframes: __spreadProps$2(__spreadValues$2(__spreadValues$2({}, heightKeyframes), widthKeyframes), { translate: [`${currentTranslate.x}px ${currentTranslate.y}px 0`, `${finalTranslate.x}px ${finalTranslate.y}px 0`] }),
|
|
4258
4648
|
options: {
|
|
4259
4649
|
duration: prefersReducedMotion(getWindow(ctx.feedbackElement)) ? 0 : ctx.moved || ctx.feedbackElement !== ctx.element ? duration : 0,
|
|
4260
4650
|
easing
|
|
@@ -4266,7 +4656,13 @@ function runDropAnimation(ctx) {
|
|
|
4266
4656
|
requestAnimationFrame(ctx.restoreFocus);
|
|
4267
4657
|
});
|
|
4268
4658
|
}
|
|
4269
|
-
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;
|
|
4270
4666
|
var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive], _a2) {
|
|
4271
4667
|
constructor(manager, options) {
|
|
4272
4668
|
super(manager, options);
|
|
@@ -4276,8 +4672,8 @@ var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive]
|
|
|
4276
4672
|
initial: {},
|
|
4277
4673
|
current: {}
|
|
4278
4674
|
};
|
|
4279
|
-
const
|
|
4280
|
-
const unregisterStyles =
|
|
4675
|
+
const styleInjector = manager.registry.plugins.get(StyleInjector);
|
|
4676
|
+
const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(CSS_RULES);
|
|
4281
4677
|
if (unregisterStyles) {
|
|
4282
4678
|
const originalDestroy = this.destroy.bind(this);
|
|
4283
4679
|
this.destroy = () => {
|
|
@@ -4285,22 +4681,22 @@ var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive]
|
|
|
4285
4681
|
originalDestroy();
|
|
4286
4682
|
};
|
|
4287
4683
|
}
|
|
4288
|
-
this.registerEffect(__privateMethod(this, _Feedback_instances, trackOverlayRoot_fn).bind(this,
|
|
4684
|
+
this.registerEffect(__privateMethod(this, _Feedback_instances, trackOverlayRoot_fn).bind(this, styleInjector));
|
|
4289
4685
|
this.registerEffect(__privateMethod(this, _Feedback_instances, render_fn));
|
|
4290
4686
|
}
|
|
4291
4687
|
};
|
|
4292
4688
|
_init2 = __decoratorStart$2(_a2);
|
|
4293
4689
|
_overlay = new WeakMap();
|
|
4294
4690
|
_Feedback_instances = new WeakSet();
|
|
4295
|
-
trackOverlayRoot_fn = function(
|
|
4691
|
+
trackOverlayRoot_fn = function(styleInjector) {
|
|
4296
4692
|
const { overlay } = this;
|
|
4297
|
-
if (!overlay || !
|
|
4693
|
+
if (!overlay || !styleInjector) return;
|
|
4298
4694
|
const root = getRoot(overlay);
|
|
4299
4695
|
if (!root) return;
|
|
4300
|
-
return
|
|
4696
|
+
return styleInjector.addRoot(root);
|
|
4301
4697
|
};
|
|
4302
4698
|
render_fn = function() {
|
|
4303
|
-
var _a5, _b2, _c3;
|
|
4699
|
+
var _a5, _b2, _c3, _d2, _e, _f, _g;
|
|
4304
4700
|
const { state, manager, options } = this;
|
|
4305
4701
|
const { dragOperation } = manager;
|
|
4306
4702
|
const { position, source, status } = dragOperation;
|
|
@@ -4310,10 +4706,13 @@ render_fn = function() {
|
|
|
4310
4706
|
return;
|
|
4311
4707
|
}
|
|
4312
4708
|
if (!source) return;
|
|
4313
|
-
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;
|
|
4314
4713
|
if (!element || feedback === "none" || !status.initialized || status.initializing) return;
|
|
4315
4714
|
const { initial } = state;
|
|
4316
|
-
const feedbackElement = (
|
|
4715
|
+
const feedbackElement = (_c3 = this.overlay) != null ? _c3 : element;
|
|
4317
4716
|
const frameTransform = getFrameTransform(feedbackElement);
|
|
4318
4717
|
const elementFrameTransform = getFrameTransform(element);
|
|
4319
4718
|
const crossFrame = !isSameFrame(element, feedbackElement);
|
|
@@ -4331,22 +4730,34 @@ render_fn = function() {
|
|
|
4331
4730
|
height = height / scaleDelta.y;
|
|
4332
4731
|
}
|
|
4333
4732
|
const styles = new Styles(feedbackElement);
|
|
4334
|
-
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;
|
|
4335
4738
|
const clone = feedback === "clone";
|
|
4336
4739
|
const contentBox = boxSizing === "content-box";
|
|
4337
4740
|
const widthOffset = contentBox ? parseInt(paddingInlineStart) + parseInt(paddingInlineEnd) + parseInt(borderInlineStartWidth) + parseInt(borderInlineEndWidth) : 0;
|
|
4338
4741
|
const heightOffset = contentBox ? parseInt(paddingBlockStart) + parseInt(paddingBlockEnd) + parseInt(borderBlockStartWidth) + parseInt(borderBlockEndWidth) : 0;
|
|
4339
4742
|
const placeholder = feedback !== "move" && !this.overlay ? createPlaceholder(source, clone ? "clone" : "hidden") : null;
|
|
4340
4743
|
const isKeyboardOperation = o(() => isKeyboardEvent(manager.dragOperation.activatorEvent));
|
|
4341
|
-
if (translate
|
|
4342
|
-
|
|
4343
|
-
|
|
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
|
+
}
|
|
4344
4753
|
}
|
|
4345
4754
|
if (!initial.transformOrigin) {
|
|
4346
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);
|
|
4347
4758
|
initial.transformOrigin = {
|
|
4348
|
-
x: (current.x -
|
|
4349
|
-
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)
|
|
4350
4761
|
};
|
|
4351
4762
|
}
|
|
4352
4763
|
const { transformOrigin } = initial;
|
|
@@ -4387,7 +4798,7 @@ render_fn = function() {
|
|
|
4387
4798
|
};
|
|
4388
4799
|
feedbackElement.setAttribute(ATTRIBUTE, "true");
|
|
4389
4800
|
const transform = o(() => dragOperation.transform);
|
|
4390
|
-
const initialTranslate = (
|
|
4801
|
+
const initialTranslate = (_f = initial.translate) != null ? _f : {
|
|
4391
4802
|
x: 0,
|
|
4392
4803
|
y: 0
|
|
4393
4804
|
};
|
|
@@ -4400,7 +4811,8 @@ render_fn = function() {
|
|
|
4400
4811
|
top: projected.top + fixedOffset.y,
|
|
4401
4812
|
left: projected.left + fixedOffset.x,
|
|
4402
4813
|
translate: `${tX}px ${tY}px 0`,
|
|
4403
|
-
|
|
4814
|
+
transform: this.overlay ? "none" : initialTransformStyle,
|
|
4815
|
+
transition: feedbackTransition ? `${feedbackTransition}, translate 0ms linear` : "translate 0ms linear",
|
|
4404
4816
|
scale: crossFrame ? `${scaleDelta.x} ${scaleDelta.y}` : "",
|
|
4405
4817
|
"transform-origin": `${transformOrigin.x * 100}% ${transformOrigin.y * 100}%`
|
|
4406
4818
|
}, CSS_PREFIX);
|
|
@@ -4431,6 +4843,7 @@ render_fn = function() {
|
|
|
4431
4843
|
delta,
|
|
4432
4844
|
styles,
|
|
4433
4845
|
dragOperation,
|
|
4846
|
+
getTranslate: () => state.current.translate,
|
|
4434
4847
|
getElementMutationObserver: () => elementMutationObserver,
|
|
4435
4848
|
getSavedCellWidths: () => savedCellWidths,
|
|
4436
4849
|
setSavedCellWidths: (widths) => {
|
|
@@ -4451,7 +4864,7 @@ render_fn = function() {
|
|
|
4451
4864
|
elementMutationObserver = createElementMutationObserver(element, placeholder, clone);
|
|
4452
4865
|
documentMutationObserver = createDocumentMutationObserver(element, placeholder, feedbackElement);
|
|
4453
4866
|
}
|
|
4454
|
-
const id = (
|
|
4867
|
+
const id = (_g = manager.dragOperation.source) == null ? void 0 : _g.id;
|
|
4455
4868
|
const restoreFocus = () => {
|
|
4456
4869
|
var _a6;
|
|
4457
4870
|
if (!isKeyboardOperation || id == null) return;
|
|
@@ -4460,7 +4873,6 @@ render_fn = function() {
|
|
|
4460
4873
|
if (isHTMLElement(focusTarget)) focusTarget.focus();
|
|
4461
4874
|
};
|
|
4462
4875
|
const cleanup = () => {
|
|
4463
|
-
var _a6;
|
|
4464
4876
|
elementMutationObserver?.disconnect();
|
|
4465
4877
|
documentMutationObserver?.disconnect();
|
|
4466
4878
|
resizeObserver.disconnect();
|
|
@@ -4471,19 +4883,25 @@ render_fn = function() {
|
|
|
4471
4883
|
}
|
|
4472
4884
|
feedbackElement.removeAttribute(ATTRIBUTE);
|
|
4473
4885
|
styles.reset();
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
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();
|
|
4482
4900
|
};
|
|
4483
4901
|
const optionsDropAnimation = options == null ? void 0 : options.dropAnimation;
|
|
4484
4902
|
const feedbackPlugin = this;
|
|
4485
4903
|
const cleanupEffects = effects(() => {
|
|
4486
|
-
var _a6;
|
|
4904
|
+
var _a6, _b3, _c4;
|
|
4487
4905
|
const { transform: transform2, status: status2 } = dragOperation;
|
|
4488
4906
|
if (!transform2.x && !transform2.y && !state.current.translate) return;
|
|
4489
4907
|
if (status2.dragging) {
|
|
@@ -4501,9 +4919,10 @@ render_fn = function() {
|
|
|
4501
4919
|
var _a7;
|
|
4502
4920
|
return (_a7 = dragOperation.shape) == null ? void 0 : _a7.current;
|
|
4503
4921
|
});
|
|
4504
|
-
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";
|
|
4505
4924
|
styles.set({
|
|
4506
|
-
transition: `${
|
|
4925
|
+
transition: feedbackTransition ? `${feedbackTransition}, translate ${translateTransition}` : `translate ${translateTransition}`,
|
|
4507
4926
|
translate: `${translate2.x}px ${translate2.y}px 0`
|
|
4508
4927
|
}, CSS_PREFIX);
|
|
4509
4928
|
elementMutationObserver?.takeRecords();
|
|
@@ -4517,7 +4936,7 @@ render_fn = function() {
|
|
|
4517
4936
|
if (dragOperation.status.dropped) {
|
|
4518
4937
|
this.dispose();
|
|
4519
4938
|
source.status = "dropping";
|
|
4520
|
-
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;
|
|
4521
4940
|
let translate2 = state.current.translate;
|
|
4522
4941
|
const moved = translate2 != null;
|
|
4523
4942
|
if (!translate2 && element !== feedbackElement) translate2 = {
|
|
@@ -4530,6 +4949,7 @@ render_fn = function() {
|
|
|
4530
4949
|
}
|
|
4531
4950
|
manager.renderer.rendering.then(() => {
|
|
4532
4951
|
runDropAnimation({
|
|
4952
|
+
source,
|
|
4533
4953
|
element,
|
|
4534
4954
|
feedbackElement,
|
|
4535
4955
|
placeholder,
|
|
@@ -4557,7 +4977,13 @@ _Feedback.configure = configurator(_Feedback);
|
|
|
4557
4977
|
var Feedback = _Feedback;
|
|
4558
4978
|
var LOCKED = true;
|
|
4559
4979
|
var UNLOCKED = false;
|
|
4560
|
-
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;
|
|
4561
4987
|
_a3 = (_dec = [reactive], ScrollDirection.Reverse);
|
|
4562
4988
|
var ScrollLock = class {
|
|
4563
4989
|
constructor() {
|
|
@@ -4596,7 +5022,7 @@ var ScrollIntentTracker = class extends Plugin {
|
|
|
4596
5022
|
const scrollIntent = y(new ScrollIntent());
|
|
4597
5023
|
let previousDelta = null;
|
|
4598
5024
|
this.signal = scrollIntent;
|
|
4599
|
-
|
|
5025
|
+
j(() => {
|
|
4600
5026
|
const { status } = manager.dragOperation;
|
|
4601
5027
|
if (!status.initialized) {
|
|
4602
5028
|
previousDelta = null;
|
|
@@ -4625,7 +5051,12 @@ var ScrollIntentTracker = class extends Plugin {
|
|
|
4625
5051
|
function getDirection$1(a, b) {
|
|
4626
5052
|
return Math.sign(a - b);
|
|
4627
5053
|
}
|
|
4628
|
-
var _autoScrolling_dec
|
|
5054
|
+
var _autoScrolling_dec;
|
|
5055
|
+
var _a4;
|
|
5056
|
+
var _init4;
|
|
5057
|
+
var _autoScrolling;
|
|
5058
|
+
var _meta;
|
|
5059
|
+
var _scroll;
|
|
4629
5060
|
var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive], _a4) {
|
|
4630
5061
|
constructor(manager) {
|
|
4631
5062
|
super(manager);
|
|
@@ -4637,7 +5068,7 @@ var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive],
|
|
|
4637
5068
|
if (by.y) element.scrollTop += by.y;
|
|
4638
5069
|
if (by.x) element.scrollLeft += by.x;
|
|
4639
5070
|
});
|
|
4640
|
-
this.scroll = (options) => {
|
|
5071
|
+
this.scroll = (options, scrollOptions) => {
|
|
4641
5072
|
var _a5;
|
|
4642
5073
|
if (this.disabled) return false;
|
|
4643
5074
|
const elements = this.getScrollableElements();
|
|
@@ -4658,7 +5089,7 @@ var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive],
|
|
|
4658
5089
|
for (const scrollableElement of elements) {
|
|
4659
5090
|
const elementCanScroll = canScroll(scrollableElement, by);
|
|
4660
5091
|
if (elementCanScroll.x || elementCanScroll.y) {
|
|
4661
|
-
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);
|
|
4662
5093
|
if (scrollIntent) {
|
|
4663
5094
|
for (const axis of Axes) if (scrollIntent[axis].isLocked(direction[axis])) {
|
|
4664
5095
|
speed[axis] = 0;
|
|
@@ -4771,24 +5202,36 @@ var scheduler3 = new Scheduler((callback) => {
|
|
|
4771
5202
|
else callback();
|
|
4772
5203
|
});
|
|
4773
5204
|
var AUTOSCROLL_INTERVAL = 10;
|
|
4774
|
-
var
|
|
4775
|
-
constructor(manager,
|
|
4776
|
-
super(manager);
|
|
5205
|
+
var _AutoScroller = class _AutoScroller extends Plugin {
|
|
5206
|
+
constructor(manager, options) {
|
|
5207
|
+
super(manager, options);
|
|
4777
5208
|
const scroller = manager.registry.plugins.get(Scroller);
|
|
4778
5209
|
if (!scroller) throw new Error("AutoScroller plugin depends on Scroller plugin");
|
|
4779
|
-
this.destroy =
|
|
5210
|
+
this.destroy = j(() => {
|
|
5211
|
+
var _a5, _b2, _c3;
|
|
4780
5212
|
if (this.disabled) return;
|
|
4781
5213
|
const { position: _, status } = manager.dragOperation;
|
|
4782
|
-
if (status.dragging)
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
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
|
|
4787
5221
|
};
|
|
4788
|
-
|
|
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
|
+
}
|
|
4789
5230
|
});
|
|
4790
5231
|
}
|
|
4791
5232
|
};
|
|
5233
|
+
_AutoScroller.configure = configurator(_AutoScroller);
|
|
5234
|
+
var AutoScroller = _AutoScroller;
|
|
4792
5235
|
var listenerOptions = {
|
|
4793
5236
|
capture: true,
|
|
4794
5237
|
passive: true
|
|
@@ -4805,7 +5248,7 @@ var ScrollListener = class extends CorePlugin {
|
|
|
4805
5248
|
}, 50));
|
|
4806
5249
|
};
|
|
4807
5250
|
const { dragOperation } = this.manager;
|
|
4808
|
-
this.destroy =
|
|
5251
|
+
this.destroy = j(() => {
|
|
4809
5252
|
var _a5, _b2, _c3;
|
|
4810
5253
|
if (dragOperation.status.dragging) {
|
|
4811
5254
|
const root = (_c3 = (_b2 = (_a5 = dragOperation.source) == null ? void 0 : _a5.element) == null ? void 0 : _b2.ownerDocument) != null ? _c3 : document;
|
|
@@ -4818,27 +5261,30 @@ var ScrollListener = class extends CorePlugin {
|
|
|
4818
5261
|
}
|
|
4819
5262
|
};
|
|
4820
5263
|
_timeout = new WeakMap();
|
|
5264
|
+
var CSS_RULES2 = "* { user-select: none !important; -webkit-user-select: none !important; }";
|
|
4821
5265
|
var PreventSelection = class extends Plugin {
|
|
4822
|
-
constructor(manager
|
|
4823
|
-
super(manager
|
|
5266
|
+
constructor(manager) {
|
|
5267
|
+
super(manager);
|
|
4824
5268
|
this.manager = manager;
|
|
4825
|
-
|
|
4826
|
-
|
|
5269
|
+
const styleInjector = manager.registry.plugins.get(StyleInjector);
|
|
5270
|
+
const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(CSS_RULES2);
|
|
5271
|
+
this.destroy = j(() => {
|
|
4827
5272
|
const { dragOperation } = this.manager;
|
|
4828
|
-
const { nonce } = (_a5 = this.options) != null ? _a5 : {};
|
|
4829
5273
|
if (dragOperation.status.initialized) {
|
|
4830
|
-
const style = document.createElement("style");
|
|
4831
|
-
if (nonce) style.setAttribute("nonce", nonce);
|
|
4832
|
-
style.textContent = `* { user-select: none !important; -webkit-user-select: none !important; }`;
|
|
4833
|
-
document.head.appendChild(style);
|
|
4834
5274
|
removeSelection();
|
|
4835
5275
|
document.addEventListener("selectionchange", removeSelection, { capture: true });
|
|
4836
5276
|
return () => {
|
|
4837
5277
|
document.removeEventListener("selectionchange", removeSelection, { capture: true });
|
|
4838
|
-
style.remove();
|
|
4839
5278
|
};
|
|
4840
5279
|
}
|
|
4841
5280
|
});
|
|
5281
|
+
if (unregisterStyles) {
|
|
5282
|
+
const originalDestroy = this.destroy.bind(this);
|
|
5283
|
+
this.destroy = () => {
|
|
5284
|
+
unregisterStyles();
|
|
5285
|
+
originalDestroy();
|
|
5286
|
+
};
|
|
5287
|
+
}
|
|
4842
5288
|
}
|
|
4843
5289
|
};
|
|
4844
5290
|
function removeSelection() {
|
|
@@ -4886,7 +5332,7 @@ var _KeyboardSensor = class _KeyboardSensor extends Sensor {
|
|
|
4886
5332
|
};
|
|
4887
5333
|
}
|
|
4888
5334
|
bind(source, options = this.options) {
|
|
4889
|
-
return
|
|
5335
|
+
return j(() => {
|
|
4890
5336
|
var _a5;
|
|
4891
5337
|
const target = (_a5 = source.handle) != null ? _a5 : source.element;
|
|
4892
5338
|
const listener = (event) => {
|
|
@@ -5052,7 +5498,8 @@ var DistanceConstraint = class extends ActivationConstraint {
|
|
|
5052
5498
|
}
|
|
5053
5499
|
};
|
|
5054
5500
|
_coordinates = new WeakMap();
|
|
5055
|
-
var _timeout2
|
|
5501
|
+
var _timeout2;
|
|
5502
|
+
var _coordinates2;
|
|
5056
5503
|
var DelayConstraint = class extends ActivationConstraint {
|
|
5057
5504
|
constructor() {
|
|
5058
5505
|
super(...arguments);
|
|
@@ -5116,7 +5563,9 @@ var defaults2 = Object.freeze({
|
|
|
5116
5563
|
if (target === source.handle) return false;
|
|
5117
5564
|
if (!isElement(target)) return false;
|
|
5118
5565
|
if ((_a5 = source.handle) == null ? void 0 : _a5.contains(target)) return false;
|
|
5119
|
-
|
|
5566
|
+
const interactiveElement = getInteractiveElement(target);
|
|
5567
|
+
if (interactiveElement === source.element) return false;
|
|
5568
|
+
return Boolean(interactiveElement);
|
|
5120
5569
|
}
|
|
5121
5570
|
});
|
|
5122
5571
|
var _cleanup;
|
|
@@ -5148,7 +5597,7 @@ var _PointerSensor = class _PointerSensor extends Sensor {
|
|
|
5148
5597
|
return typeof activationConstraints === "function" ? activationConstraints(event, source) : activationConstraints;
|
|
5149
5598
|
}
|
|
5150
5599
|
bind(source, options = this.options) {
|
|
5151
|
-
return
|
|
5600
|
+
return j(() => {
|
|
5152
5601
|
var _a5;
|
|
5153
5602
|
const controller = new AbortController();
|
|
5154
5603
|
const { signal: signal3 } = controller;
|
|
@@ -5259,7 +5708,12 @@ var _PointerSensor = class _PointerSensor extends Sensor {
|
|
|
5259
5708
|
}).signal.aborted) return this.cleanup();
|
|
5260
5709
|
event.preventDefault();
|
|
5261
5710
|
const pointerCaptureTarget = getDocument(event.target).body;
|
|
5262
|
-
|
|
5711
|
+
try {
|
|
5712
|
+
pointerCaptureTarget.setPointerCapture(event.pointerId);
|
|
5713
|
+
} catch (e) {
|
|
5714
|
+
this.handleCancel(event);
|
|
5715
|
+
return;
|
|
5716
|
+
}
|
|
5263
5717
|
const listenerTargets = isElement(event.target) ? [event.target, pointerCaptureTarget] : pointerCaptureTarget;
|
|
5264
5718
|
const unbind = this.listeners.bind(listenerTargets, [
|
|
5265
5719
|
{
|
|
@@ -5291,6 +5745,9 @@ var _PointerSensor = class _PointerSensor extends Sensor {
|
|
|
5291
5745
|
this.cleanup();
|
|
5292
5746
|
}
|
|
5293
5747
|
cleanup() {
|
|
5748
|
+
const { controller } = this;
|
|
5749
|
+
this.controller = void 0;
|
|
5750
|
+
if (controller && !controller.signal.aborted) controller.abort();
|
|
5294
5751
|
this.latest = {
|
|
5295
5752
|
event: void 0,
|
|
5296
5753
|
coordinates: void 0
|
|
@@ -5339,11 +5796,11 @@ var DragDropManager = class extends DragDropManager$1 {
|
|
|
5339
5796
|
const plugins = resolveCustomizable(input.plugins, defaultPreset.plugins);
|
|
5340
5797
|
const sensors = resolveCustomizable(input.sensors, defaultPreset.sensors);
|
|
5341
5798
|
const modifiers = resolveCustomizable(input.modifiers, defaultPreset.modifiers);
|
|
5342
|
-
super(__spreadProps$
|
|
5799
|
+
super(__spreadProps$2(__spreadValues$2({}, input), {
|
|
5343
5800
|
plugins: [
|
|
5344
5801
|
ScrollListener,
|
|
5345
5802
|
Scroller,
|
|
5346
|
-
|
|
5803
|
+
StyleInjector,
|
|
5347
5804
|
...plugins
|
|
5348
5805
|
],
|
|
5349
5806
|
sensors,
|
|
@@ -5351,16 +5808,20 @@ var DragDropManager = class extends DragDropManager$1 {
|
|
|
5351
5808
|
}));
|
|
5352
5809
|
}
|
|
5353
5810
|
};
|
|
5354
|
-
var
|
|
5355
|
-
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) {
|
|
5356
5818
|
constructor(_a5, manager) {
|
|
5357
|
-
var _b2 = _a5, { element, effects: effects2 = () => [], handle
|
|
5819
|
+
var _b2 = _a5, { element, effects: effects2 = () => [], handle } = _b2, input = __objRest$2(_b2, [
|
|
5358
5820
|
"element",
|
|
5359
5821
|
"effects",
|
|
5360
|
-
"handle"
|
|
5361
|
-
"feedback"
|
|
5822
|
+
"handle"
|
|
5362
5823
|
]);
|
|
5363
|
-
super(__spreadValues$
|
|
5824
|
+
super(__spreadValues$2({ effects: () => [...effects2(), () => {
|
|
5364
5825
|
var _a6, _b3;
|
|
5365
5826
|
const { manager: manager2 } = this;
|
|
5366
5827
|
if (!manager2) return;
|
|
@@ -5375,21 +5836,26 @@ var Draggable$1 = class extends (_c = Draggable$2, _handle_dec = [reactive], _el
|
|
|
5375
5836
|
}] }, input), manager);
|
|
5376
5837
|
__privateAdd$2(this, _handle, __runInitializers$2(_init5, 8, this)), __runInitializers$2(_init5, 11, this);
|
|
5377
5838
|
__privateAdd$2(this, _element$1, __runInitializers$2(_init5, 12, this)), __runInitializers$2(_init5, 15, this);
|
|
5378
|
-
__privateAdd$2(this, _feedback, __runInitializers$2(_init5, 16, this)), __runInitializers$2(_init5, 19, this);
|
|
5379
5839
|
this.element = element;
|
|
5380
5840
|
this.handle = handle;
|
|
5381
|
-
this.feedback = feedback;
|
|
5382
5841
|
}
|
|
5383
5842
|
};
|
|
5384
5843
|
_init5 = __decoratorStart$2(_c);
|
|
5385
5844
|
_handle = new WeakMap();
|
|
5386
5845
|
_element$1 = new WeakMap();
|
|
5387
|
-
_feedback = new WeakMap();
|
|
5388
5846
|
__decorateElement$2(_init5, 4, "handle", _handle_dec, Draggable$1, _handle);
|
|
5389
5847
|
__decorateElement$2(_init5, 4, "element", _element_dec, Draggable$1, _element$1);
|
|
5390
|
-
__decorateElement$2(_init5, 4, "feedback", _feedback_dec, Draggable$1, _feedback);
|
|
5391
5848
|
__decoratorMetadata$2(_init5, Draggable$1);
|
|
5392
|
-
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;
|
|
5393
5859
|
var Droppable = class extends (_c2 = Droppable$1, _element_dec2 = [reactive], _proxy_dec = [reactive], _c2) {
|
|
5394
5860
|
constructor(_a5, manager) {
|
|
5395
5861
|
var _b2 = _a5, { element, effects: effects2 = () => [] } = _b2, input = __objRest$2(_b2, ["element", "effects"]);
|
|
@@ -5408,7 +5874,7 @@ var Droppable = class extends (_c2 = Droppable$1, _element_dec2 = [reactive], _p
|
|
|
5408
5874
|
return updatedShape;
|
|
5409
5875
|
};
|
|
5410
5876
|
const observePosition = y(false);
|
|
5411
|
-
super(__spreadProps$
|
|
5877
|
+
super(__spreadProps$2(__spreadValues$2({}, input), {
|
|
5412
5878
|
collisionDetector,
|
|
5413
5879
|
effects: () => [
|
|
5414
5880
|
...effects2(),
|
|
@@ -5459,48 +5925,240 @@ _d = __decorateElement$2(_init6, 20, "#element", _element_dec2, _Droppable_insta
|
|
|
5459
5925
|
__decorateElement$2(_init6, 4, "proxy", _proxy_dec, Droppable, _proxy);
|
|
5460
5926
|
__decoratorMetadata$2(_init6, Droppable);
|
|
5461
5927
|
//#endregion
|
|
5462
|
-
//#region node_modules/@dnd-kit/
|
|
5928
|
+
//#region node_modules/@dnd-kit/react/utilities.js
|
|
5929
|
+
function isRef(value) {
|
|
5930
|
+
return value != null && typeof value === "object" && "current" in value;
|
|
5931
|
+
}
|
|
5932
|
+
function currentValue(value) {
|
|
5933
|
+
var _a;
|
|
5934
|
+
if (value == null) return;
|
|
5935
|
+
if (isRef(value)) return (_a = value.current) != null ? _a : void 0;
|
|
5936
|
+
return value;
|
|
5937
|
+
}
|
|
5938
|
+
//#endregion
|
|
5939
|
+
//#region node_modules/@dnd-kit/react/hooks.js
|
|
5940
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ? useLayoutEffect : useEffect;
|
|
5941
|
+
function useForceUpdate() {
|
|
5942
|
+
const setState = useState(0)[1];
|
|
5943
|
+
return useCallback(() => {
|
|
5944
|
+
setState((value) => value + 1);
|
|
5945
|
+
}, [setState]);
|
|
5946
|
+
}
|
|
5947
|
+
function useDeepSignal(target, synchronous) {
|
|
5948
|
+
const tracked = useRef(new Map());
|
|
5949
|
+
const forceUpdate = useForceUpdate();
|
|
5950
|
+
useIsomorphicLayoutEffect(() => {
|
|
5951
|
+
if (!target) {
|
|
5952
|
+
tracked.current.clear();
|
|
5953
|
+
return;
|
|
5954
|
+
}
|
|
5955
|
+
return j(() => {
|
|
5956
|
+
var _a;
|
|
5957
|
+
let stale = false;
|
|
5958
|
+
let sync = false;
|
|
5959
|
+
for (const entry of tracked.current) {
|
|
5960
|
+
const [key] = entry;
|
|
5961
|
+
const value = o(() => entry[1]);
|
|
5962
|
+
const latestValue = target[key];
|
|
5963
|
+
if (value !== latestValue) {
|
|
5964
|
+
stale = true;
|
|
5965
|
+
tracked.current.set(key, latestValue);
|
|
5966
|
+
sync = (_a = synchronous == null ? void 0 : synchronous(key, value, latestValue)) != null ? _a : false;
|
|
5967
|
+
}
|
|
5968
|
+
}
|
|
5969
|
+
if (stale) if (sync) queueMicrotask(() => flushSync(forceUpdate));
|
|
5970
|
+
else forceUpdate();
|
|
5971
|
+
});
|
|
5972
|
+
}, [target]);
|
|
5973
|
+
return useMemo(() => target ? new Proxy(target, { get(target2, key) {
|
|
5974
|
+
const value = target2[key];
|
|
5975
|
+
tracked.current.set(key, value);
|
|
5976
|
+
return value;
|
|
5977
|
+
} }) : target, [target]);
|
|
5978
|
+
}
|
|
5979
|
+
function useImmediateEffect(callback, _) {
|
|
5980
|
+
callback();
|
|
5981
|
+
}
|
|
5982
|
+
function useLatest(value) {
|
|
5983
|
+
const valueRef = useRef(value);
|
|
5984
|
+
useIsomorphicLayoutEffect(() => {
|
|
5985
|
+
valueRef.current = value;
|
|
5986
|
+
}, [value]);
|
|
5987
|
+
return valueRef;
|
|
5988
|
+
}
|
|
5989
|
+
function useOnValueChange(value, onChange, effect3 = useEffect, compare = Object.is) {
|
|
5990
|
+
const tracked = useRef(value);
|
|
5991
|
+
effect3(() => {
|
|
5992
|
+
const oldValue = tracked.current;
|
|
5993
|
+
if (!compare(value, oldValue)) {
|
|
5994
|
+
tracked.current = value;
|
|
5995
|
+
onChange(value, oldValue);
|
|
5996
|
+
}
|
|
5997
|
+
}, [onChange, value]);
|
|
5998
|
+
}
|
|
5999
|
+
function useOnElementChange(value, onChange) {
|
|
6000
|
+
const previous = useRef(currentValue(value));
|
|
6001
|
+
useIsomorphicLayoutEffect(() => {
|
|
6002
|
+
const current = currentValue(value);
|
|
6003
|
+
if (current !== previous.current) {
|
|
6004
|
+
previous.current = current;
|
|
6005
|
+
onChange(current);
|
|
6006
|
+
}
|
|
6007
|
+
});
|
|
6008
|
+
}
|
|
6009
|
+
//#endregion
|
|
6010
|
+
//#region node_modules/@dnd-kit/react/index.js
|
|
6011
|
+
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
6012
|
+
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
6013
|
+
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
6014
|
+
var __objRest$1 = (source, exclude) => {
|
|
6015
|
+
var target = {};
|
|
6016
|
+
for (var prop in source) if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
6017
|
+
if (source != null && __getOwnPropSymbols$2) {
|
|
6018
|
+
for (var prop of __getOwnPropSymbols$2(source)) if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop)) target[prop] = source[prop];
|
|
6019
|
+
}
|
|
6020
|
+
return target;
|
|
6021
|
+
};
|
|
6022
|
+
var DragDropContext = createContext(new DragDropManager());
|
|
6023
|
+
var Renderer = memo(forwardRef(({ children }, ref) => {
|
|
6024
|
+
const [transitionCount, setTransitionCount] = useState(0);
|
|
6025
|
+
const rendering = useRef(null);
|
|
6026
|
+
const resolver = useRef(null);
|
|
6027
|
+
const renderer = useMemo(() => ({
|
|
6028
|
+
renderer: { get rendering() {
|
|
6029
|
+
var _a2;
|
|
6030
|
+
return (_a2 = rendering.current) != null ? _a2 : Promise.resolve();
|
|
6031
|
+
} },
|
|
6032
|
+
trackRendering(callback) {
|
|
6033
|
+
if (!rendering.current) rendering.current = new Promise((resolve) => {
|
|
6034
|
+
resolver.current = resolve;
|
|
6035
|
+
});
|
|
6036
|
+
startTransition(() => {
|
|
6037
|
+
callback();
|
|
6038
|
+
setTransitionCount((count) => count + 1);
|
|
6039
|
+
});
|
|
6040
|
+
}
|
|
6041
|
+
}), []);
|
|
6042
|
+
useIsomorphicLayoutEffect(() => {
|
|
6043
|
+
var _a2;
|
|
6044
|
+
(_a2 = resolver.current) == null || _a2.call(resolver);
|
|
6045
|
+
rendering.current = null;
|
|
6046
|
+
}, [children, transitionCount]);
|
|
6047
|
+
useImperativeHandle(ref, () => renderer);
|
|
6048
|
+
return null;
|
|
6049
|
+
}));
|
|
6050
|
+
var options = [void 0, deepEqual];
|
|
6051
|
+
function DragDropProvider(_a2) {
|
|
6052
|
+
var _b = _a2, { children, onCollision, onBeforeDragStart, onDragStart, onDragMove, onDragOver, onDragEnd } = _b, input = __objRest$1(_b, [
|
|
6053
|
+
"children",
|
|
6054
|
+
"onCollision",
|
|
6055
|
+
"onBeforeDragStart",
|
|
6056
|
+
"onDragStart",
|
|
6057
|
+
"onDragMove",
|
|
6058
|
+
"onDragOver",
|
|
6059
|
+
"onDragEnd"
|
|
6060
|
+
]);
|
|
6061
|
+
const rendererRef = useRef(null);
|
|
6062
|
+
const { plugins: pluginsInput, modifiers: modifiersInput, sensors: sensorsInput } = input;
|
|
6063
|
+
const plugins = resolveCustomizable(pluginsInput, defaultPreset.plugins);
|
|
6064
|
+
const sensors = resolveCustomizable(sensorsInput, defaultPreset.sensors);
|
|
6065
|
+
const modifiers = resolveCustomizable(modifiersInput, defaultPreset.modifiers);
|
|
6066
|
+
const handleBeforeDragStart = useLatest(onBeforeDragStart);
|
|
6067
|
+
const handleDragStart = useLatest(onDragStart);
|
|
6068
|
+
const handleDragOver = useLatest(onDragOver);
|
|
6069
|
+
const handleDragMove = useLatest(onDragMove);
|
|
6070
|
+
const handleDragEnd = useLatest(onDragEnd);
|
|
6071
|
+
const handleCollision = useLatest(onCollision);
|
|
6072
|
+
const manager = useStableInstance(() => {
|
|
6073
|
+
var _a3;
|
|
6074
|
+
return (_a3 = input.manager) != null ? _a3 : new DragDropManager(input);
|
|
6075
|
+
});
|
|
6076
|
+
useEffect(() => {
|
|
6077
|
+
if (!rendererRef.current) throw new Error("Renderer not found");
|
|
6078
|
+
const { renderer, trackRendering } = rendererRef.current;
|
|
6079
|
+
const { monitor } = manager;
|
|
6080
|
+
manager.renderer = renderer;
|
|
6081
|
+
const listeners = [
|
|
6082
|
+
monitor.addEventListener("beforedragstart", (event) => {
|
|
6083
|
+
const callback = handleBeforeDragStart.current;
|
|
6084
|
+
if (callback) trackRendering(() => callback(event, manager));
|
|
6085
|
+
}),
|
|
6086
|
+
monitor.addEventListener("dragstart", (event) => {
|
|
6087
|
+
var _a3;
|
|
6088
|
+
return (_a3 = handleDragStart.current) == null ? void 0 : _a3.call(handleDragStart, event, manager);
|
|
6089
|
+
}),
|
|
6090
|
+
monitor.addEventListener("dragover", (event) => {
|
|
6091
|
+
const callback = handleDragOver.current;
|
|
6092
|
+
if (callback) trackRendering(() => callback(event, manager));
|
|
6093
|
+
}),
|
|
6094
|
+
monitor.addEventListener("dragmove", (event) => {
|
|
6095
|
+
const callback = handleDragMove.current;
|
|
6096
|
+
if (callback) trackRendering(() => callback(event, manager));
|
|
6097
|
+
}),
|
|
6098
|
+
monitor.addEventListener("dragend", (event) => {
|
|
6099
|
+
const callback = handleDragEnd.current;
|
|
6100
|
+
if (callback) trackRendering(() => callback(event, manager));
|
|
6101
|
+
}),
|
|
6102
|
+
monitor.addEventListener("collision", (event) => {
|
|
6103
|
+
var _a3;
|
|
6104
|
+
return (_a3 = handleCollision.current) == null ? void 0 : _a3.call(handleCollision, event, manager);
|
|
6105
|
+
})
|
|
6106
|
+
];
|
|
6107
|
+
return () => listeners.forEach((dispose) => dispose());
|
|
6108
|
+
}, [manager]);
|
|
6109
|
+
useOnValueChange(plugins, () => manager && (manager.plugins = plugins), ...options);
|
|
6110
|
+
useOnValueChange(sensors, () => manager && (manager.sensors = sensors), ...options);
|
|
6111
|
+
useOnValueChange(modifiers, () => manager && (manager.modifiers = modifiers), ...options);
|
|
6112
|
+
return jsxs(DragDropContext.Provider, {
|
|
6113
|
+
value: manager,
|
|
6114
|
+
children: [jsx(Renderer, {
|
|
6115
|
+
ref: rendererRef,
|
|
6116
|
+
children
|
|
6117
|
+
}), children]
|
|
6118
|
+
});
|
|
6119
|
+
}
|
|
6120
|
+
function useStableInstance(create) {
|
|
6121
|
+
const ref = useRef(null);
|
|
6122
|
+
if (!ref.current) ref.current = create();
|
|
6123
|
+
useInsertionEffect(() => {
|
|
6124
|
+
return () => {
|
|
6125
|
+
var _a2;
|
|
6126
|
+
return (_a2 = ref.current) == null ? void 0 : _a2.destroy();
|
|
6127
|
+
};
|
|
6128
|
+
}, []);
|
|
6129
|
+
return ref.current;
|
|
6130
|
+
}
|
|
6131
|
+
function useDragDropManager() {
|
|
6132
|
+
return useContext(DragDropContext);
|
|
6133
|
+
}
|
|
6134
|
+
function useInstance(initializer) {
|
|
6135
|
+
var _a2;
|
|
6136
|
+
const manager = (_a2 = useDragDropManager()) != null ? _a2 : void 0;
|
|
6137
|
+
const [instance] = useState(() => initializer(manager));
|
|
6138
|
+
if (instance.manager !== manager) instance.manager = manager;
|
|
6139
|
+
useIsomorphicLayoutEffect(instance.register, [manager, instance]);
|
|
6140
|
+
return instance;
|
|
6141
|
+
}
|
|
5463
6142
|
var __create$1 = Object.create;
|
|
5464
|
-
var
|
|
5465
|
-
var __defProps$2 = Object.defineProperties;
|
|
6143
|
+
var __defProp2$1 = Object.defineProperty;
|
|
5466
6144
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
5467
|
-
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
5468
|
-
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
5469
|
-
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
5470
|
-
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
5471
6145
|
var __knownSymbol$1 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
5472
6146
|
var __typeError$1 = (msg) => {
|
|
5473
6147
|
throw TypeError(msg);
|
|
5474
6148
|
};
|
|
5475
|
-
var
|
|
6149
|
+
var __defNormalProp2$1 = (obj, key, value) => key in obj ? __defProp2$1(obj, key, {
|
|
5476
6150
|
enumerable: true,
|
|
5477
6151
|
configurable: true,
|
|
5478
6152
|
writable: true,
|
|
5479
6153
|
value
|
|
5480
6154
|
}) : obj[key] = value;
|
|
5481
|
-
var __spreadValues$2 = (a, b) => {
|
|
5482
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$2(a, prop, b[prop]);
|
|
5483
|
-
if (__getOwnPropSymbols$3) {
|
|
5484
|
-
for (var prop of __getOwnPropSymbols$3(b)) if (__propIsEnum$3.call(b, prop)) __defNormalProp$2(a, prop, b[prop]);
|
|
5485
|
-
}
|
|
5486
|
-
return a;
|
|
5487
|
-
};
|
|
5488
|
-
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
5489
|
-
var __objRest$1 = (source, exclude) => {
|
|
5490
|
-
var target = {};
|
|
5491
|
-
for (var prop in source) if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
5492
|
-
if (source != null && __getOwnPropSymbols$3) {
|
|
5493
|
-
for (var prop of __getOwnPropSymbols$3(source)) if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop)) target[prop] = source[prop];
|
|
5494
|
-
}
|
|
5495
|
-
return target;
|
|
5496
|
-
};
|
|
5497
6155
|
var __decoratorStart$1 = (base) => {
|
|
5498
|
-
var
|
|
6156
|
+
var _a2;
|
|
5499
6157
|
return [
|
|
5500
6158
|
,
|
|
5501
6159
|
,
|
|
5502
6160
|
,
|
|
5503
|
-
__create$1((
|
|
6161
|
+
__create$1((_a2 = base == null ? void 0 : base[__knownSymbol$1("metadata")]) != null ? _a2 : null)
|
|
5504
6162
|
];
|
|
5505
6163
|
};
|
|
5506
6164
|
var __decoratorStrings$1 = [
|
|
@@ -5521,42 +6179,239 @@ var __decoratorContext$1 = (kind, name, done, metadata, fns) => ({
|
|
|
5521
6179
|
metadata,
|
|
5522
6180
|
addInitializer: (fn) => done._ ? __typeError$1("Already initialized") : fns.push(__expectFn$1(fn || null))
|
|
5523
6181
|
});
|
|
5524
|
-
var __decoratorMetadata$1 = (array, target) =>
|
|
6182
|
+
var __decoratorMetadata$1 = (array, target) => __defNormalProp2$1(target, __knownSymbol$1("metadata"), array[3]);
|
|
5525
6183
|
var __runInitializers$1 = (array, flags, self, value) => {
|
|
5526
|
-
for (var i = 0, fns = array[flags >> 1], n = fns && fns.length; i < n; i++)
|
|
6184
|
+
for (var i = 0, fns = array[flags >> 1], n = fns && fns.length; i < n; i++) fns[i].call(self);
|
|
5527
6185
|
return value;
|
|
5528
6186
|
};
|
|
5529
6187
|
var __decorateElement$1 = (array, flags, name, decorators, target, extra) => {
|
|
5530
|
-
var
|
|
5531
|
-
var j =
|
|
5532
|
-
var
|
|
5533
|
-
var desc = (target = target.prototype, __getOwnPropDesc$1(
|
|
5534
|
-
get [name]() {
|
|
5535
|
-
return __privateGet$1(this, extra);
|
|
5536
|
-
},
|
|
5537
|
-
set [name](x) {
|
|
5538
|
-
return __privateSet$1(this, extra, x);
|
|
5539
|
-
}
|
|
5540
|
-
}, name));
|
|
6188
|
+
var it, done, ctx, access, k = flags & 7, s = false, p = false;
|
|
6189
|
+
var j = 2, key = __decoratorStrings$1[k + 5];
|
|
6190
|
+
var extraInitializers = array[j] || (array[j] = []);
|
|
6191
|
+
var desc = (target = target.prototype, __getOwnPropDesc$1(target, name));
|
|
5541
6192
|
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
5542
6193
|
ctx = __decoratorContext$1(k, name, done = {}, array[3], extraInitializers);
|
|
5543
6194
|
ctx.static = s, ctx.private = p, access = ctx.access = { has: (x) => name in x };
|
|
5544
6195
|
access.get = (x) => x[name];
|
|
5545
|
-
|
|
5546
|
-
it
|
|
5547
|
-
get: desc.get,
|
|
5548
|
-
set: desc.set
|
|
5549
|
-
}, ctx), done._ = 1;
|
|
5550
|
-
if (it === void 0) __expectFn$1(it) && (desc[key] = it);
|
|
5551
|
-
else if (typeof it !== "object" || it === null) __typeError$1("Object expected");
|
|
5552
|
-
else __expectFn$1(fn = it.get) && (desc.get = fn), __expectFn$1(fn = it.set) && (desc.set = fn), __expectFn$1(fn = it.init) && initializers.unshift(fn);
|
|
6196
|
+
it = (0, decorators[i])(desc[key], ctx), done._ = 1;
|
|
6197
|
+
__expectFn$1(it) && (desc[key] = it);
|
|
5553
6198
|
}
|
|
5554
|
-
return desc &&
|
|
6199
|
+
return desc && __defProp2$1(target, name, desc), target;
|
|
5555
6200
|
};
|
|
5556
6201
|
var __accessCheck$1 = (obj, member, msg) => member.has(obj) || __typeError$1("Cannot " + msg);
|
|
5557
6202
|
var __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, "read from private field"), member.get(obj));
|
|
5558
6203
|
var __privateAdd$1 = (obj, member, value) => member.has(obj) ? __typeError$1("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
5559
6204
|
var __privateSet$1 = (obj, member, value, setter) => (__accessCheck$1(obj, member, "write to private field"), member.set(obj, value), value);
|
|
6205
|
+
var Point = class _Point {
|
|
6206
|
+
/**
|
|
6207
|
+
* @param {number} Coordinate of the point on the horizontal axis
|
|
6208
|
+
* @param {number} Coordinate of the point on the vertical axis
|
|
6209
|
+
*/
|
|
6210
|
+
constructor(x, y) {
|
|
6211
|
+
this.x = x;
|
|
6212
|
+
this.y = y;
|
|
6213
|
+
}
|
|
6214
|
+
/**
|
|
6215
|
+
* Returns the delta between this point and another point.
|
|
6216
|
+
*
|
|
6217
|
+
* @param {Point} a - A point
|
|
6218
|
+
* @param {Point} b - Another point
|
|
6219
|
+
*/
|
|
6220
|
+
static delta(a, b) {
|
|
6221
|
+
return new _Point(a.x - b.x, a.y - b.y);
|
|
6222
|
+
}
|
|
6223
|
+
/**
|
|
6224
|
+
* Returns the distance (hypotenuse) between this point and another point.
|
|
6225
|
+
*
|
|
6226
|
+
* @param {Point} a - A point
|
|
6227
|
+
* @param {Point} b - Another point
|
|
6228
|
+
*/
|
|
6229
|
+
static distance(a, b) {
|
|
6230
|
+
return Math.hypot(a.x - b.x, a.y - b.y);
|
|
6231
|
+
}
|
|
6232
|
+
/**
|
|
6233
|
+
* Returns true if both points are equal.
|
|
6234
|
+
*
|
|
6235
|
+
* @param {Point} a - A point
|
|
6236
|
+
* @param {Point} b - Another point
|
|
6237
|
+
*/
|
|
6238
|
+
static equals(a, b) {
|
|
6239
|
+
return a.x === b.x && a.y === b.y;
|
|
6240
|
+
}
|
|
6241
|
+
static from({ x, y }) {
|
|
6242
|
+
return new _Point(x, y);
|
|
6243
|
+
}
|
|
6244
|
+
};
|
|
6245
|
+
var _direction_dec;
|
|
6246
|
+
var _delta_dec;
|
|
6247
|
+
var _a;
|
|
6248
|
+
var _timestamp;
|
|
6249
|
+
var _init$1;
|
|
6250
|
+
var Position = class extends (_a = ValueHistory, _delta_dec = [derived], _direction_dec = [derived], _a) {
|
|
6251
|
+
constructor(initialValue) {
|
|
6252
|
+
const point = Point.from(initialValue);
|
|
6253
|
+
super(point, (a, b) => Point.equals(a, b));
|
|
6254
|
+
__runInitializers$1(_init$1, 5, this);
|
|
6255
|
+
__privateAdd$1(this, _timestamp, 0);
|
|
6256
|
+
this.velocity = {
|
|
6257
|
+
x: 0,
|
|
6258
|
+
y: 0
|
|
6259
|
+
};
|
|
6260
|
+
}
|
|
6261
|
+
get delta() {
|
|
6262
|
+
return Point.delta(this.current, this.initial);
|
|
6263
|
+
}
|
|
6264
|
+
get direction() {
|
|
6265
|
+
const { current, previous } = this;
|
|
6266
|
+
if (!previous) return null;
|
|
6267
|
+
const delta = {
|
|
6268
|
+
x: current.x - previous.x,
|
|
6269
|
+
y: current.y - previous.y
|
|
6270
|
+
};
|
|
6271
|
+
if (!delta.x && !delta.y) return null;
|
|
6272
|
+
if (Math.abs(delta.x) > Math.abs(delta.y)) return delta.x > 0 ? "right" : "left";
|
|
6273
|
+
return delta.y > 0 ? "down" : "up";
|
|
6274
|
+
}
|
|
6275
|
+
get current() {
|
|
6276
|
+
return super.current;
|
|
6277
|
+
}
|
|
6278
|
+
set current(coordinates) {
|
|
6279
|
+
const { current } = this;
|
|
6280
|
+
const point = Point.from(coordinates);
|
|
6281
|
+
const delta = {
|
|
6282
|
+
x: point.x - current.x,
|
|
6283
|
+
y: point.y - current.y
|
|
6284
|
+
};
|
|
6285
|
+
const timestamp = Date.now();
|
|
6286
|
+
const timeDelta = timestamp - __privateGet$1(this, _timestamp);
|
|
6287
|
+
const velocity = (delta2) => Math.round(delta2 / timeDelta * 100);
|
|
6288
|
+
n(() => {
|
|
6289
|
+
__privateSet$1(this, _timestamp, timestamp);
|
|
6290
|
+
this.velocity = {
|
|
6291
|
+
x: velocity(delta.x),
|
|
6292
|
+
y: velocity(delta.y)
|
|
6293
|
+
};
|
|
6294
|
+
super.current = point;
|
|
6295
|
+
});
|
|
6296
|
+
}
|
|
6297
|
+
reset(coordinates = this.defaultValue) {
|
|
6298
|
+
super.reset(Point.from(coordinates));
|
|
6299
|
+
this.velocity = {
|
|
6300
|
+
x: 0,
|
|
6301
|
+
y: 0
|
|
6302
|
+
};
|
|
6303
|
+
}
|
|
6304
|
+
};
|
|
6305
|
+
_init$1 = __decoratorStart$1(_a);
|
|
6306
|
+
_timestamp = new WeakMap();
|
|
6307
|
+
__decorateElement$1(_init$1, 2, "delta", _delta_dec, Position);
|
|
6308
|
+
__decorateElement$1(_init$1, 2, "direction", _direction_dec, Position);
|
|
6309
|
+
__decoratorMetadata$1(_init$1, Position);
|
|
6310
|
+
var Axis = ((Axis2) => {
|
|
6311
|
+
Axis2["Horizontal"] = "x";
|
|
6312
|
+
Axis2["Vertical"] = "y";
|
|
6313
|
+
return Axis2;
|
|
6314
|
+
})(Axis || {});
|
|
6315
|
+
Object.values(Axis);
|
|
6316
|
+
//#endregion
|
|
6317
|
+
//#region node_modules/@dnd-kit/dom/sortable.js
|
|
6318
|
+
var __create = Object.create;
|
|
6319
|
+
var __defProp$1 = Object.defineProperty;
|
|
6320
|
+
var __defProps$1 = Object.defineProperties;
|
|
6321
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6322
|
+
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
6323
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
6324
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
6325
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
6326
|
+
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
6327
|
+
var __typeError = (msg) => {
|
|
6328
|
+
throw TypeError(msg);
|
|
6329
|
+
};
|
|
6330
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
|
|
6331
|
+
enumerable: true,
|
|
6332
|
+
configurable: true,
|
|
6333
|
+
writable: true,
|
|
6334
|
+
value
|
|
6335
|
+
}) : obj[key] = value;
|
|
6336
|
+
var __spreadValues$1 = (a, b) => {
|
|
6337
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
6338
|
+
if (__getOwnPropSymbols$1) {
|
|
6339
|
+
for (var prop of __getOwnPropSymbols$1(b)) if (__propIsEnum$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
6340
|
+
}
|
|
6341
|
+
return a;
|
|
6342
|
+
};
|
|
6343
|
+
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
6344
|
+
var __objRest = (source, exclude) => {
|
|
6345
|
+
var target = {};
|
|
6346
|
+
for (var prop in source) if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
6347
|
+
if (source != null && __getOwnPropSymbols$1) {
|
|
6348
|
+
for (var prop of __getOwnPropSymbols$1(source)) if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop)) target[prop] = source[prop];
|
|
6349
|
+
}
|
|
6350
|
+
return target;
|
|
6351
|
+
};
|
|
6352
|
+
var __decoratorStart = (base) => {
|
|
6353
|
+
var _a;
|
|
6354
|
+
return [
|
|
6355
|
+
,
|
|
6356
|
+
,
|
|
6357
|
+
,
|
|
6358
|
+
__create((_a = void 0) != null ? _a : null)
|
|
6359
|
+
];
|
|
6360
|
+
};
|
|
6361
|
+
var __decoratorStrings = [
|
|
6362
|
+
"class",
|
|
6363
|
+
"method",
|
|
6364
|
+
"getter",
|
|
6365
|
+
"setter",
|
|
6366
|
+
"accessor",
|
|
6367
|
+
"field",
|
|
6368
|
+
"value",
|
|
6369
|
+
"get",
|
|
6370
|
+
"set"
|
|
6371
|
+
];
|
|
6372
|
+
var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn;
|
|
6373
|
+
var __decoratorContext = (kind, name, done, metadata, fns) => ({
|
|
6374
|
+
kind: __decoratorStrings[kind],
|
|
6375
|
+
name,
|
|
6376
|
+
metadata,
|
|
6377
|
+
addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null))
|
|
6378
|
+
});
|
|
6379
|
+
var __decoratorMetadata = (array, target) => __defNormalProp$1(target, __knownSymbol("metadata"), array[3]);
|
|
6380
|
+
var __runInitializers = (array, flags, self, value) => {
|
|
6381
|
+
for (var i = 0, fns = array[flags >> 1], n = fns && fns.length; i < n; i++) flags & 1 ? fns[i].call(self) : value = fns[i].call(self, value);
|
|
6382
|
+
return value;
|
|
6383
|
+
};
|
|
6384
|
+
var __decorateElement = (array, flags, name, decorators, target, extra) => {
|
|
6385
|
+
var fn, it, done, ctx, access, k = flags & 7, s = false, p = false;
|
|
6386
|
+
var j = array.length + 1, key = __decoratorStrings[k + 5];
|
|
6387
|
+
var initializers = array[j - 1] = [], extraInitializers = array[j] || (array[j] = []);
|
|
6388
|
+
var desc = (target = target.prototype, __getOwnPropDesc({
|
|
6389
|
+
get [name]() {
|
|
6390
|
+
return __privateGet(this, extra);
|
|
6391
|
+
},
|
|
6392
|
+
set [name](x) {
|
|
6393
|
+
return __privateSet(this, extra, x);
|
|
6394
|
+
}
|
|
6395
|
+
}, name));
|
|
6396
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
6397
|
+
ctx = __decoratorContext(k, name, done = {}, array[3], extraInitializers);
|
|
6398
|
+
ctx.static = s, ctx.private = p, access = ctx.access = { has: (x) => name in x };
|
|
6399
|
+
access.get = (x) => x[name];
|
|
6400
|
+
access.set = (x, y) => x[name] = y;
|
|
6401
|
+
it = (0, decorators[i])({
|
|
6402
|
+
get: desc.get,
|
|
6403
|
+
set: desc.set
|
|
6404
|
+
}, ctx), done._ = 1;
|
|
6405
|
+
if (it === void 0) __expectFn(it) && (desc[key] = it);
|
|
6406
|
+
else if (typeof it !== "object" || it === null) __typeError("Object expected");
|
|
6407
|
+
else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn);
|
|
6408
|
+
}
|
|
6409
|
+
return desc && __defProp$1(target, name, desc), target;
|
|
6410
|
+
};
|
|
6411
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
6412
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), member.get(obj));
|
|
6413
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
6414
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
5560
6415
|
function isSortable(element) {
|
|
5561
6416
|
return element instanceof SortableDroppable || element instanceof SortableDraggable;
|
|
5562
6417
|
}
|
|
@@ -5564,7 +6419,7 @@ var TOLERANCE = 10;
|
|
|
5564
6419
|
var SortableKeyboardPlugin = class extends Plugin {
|
|
5565
6420
|
constructor(manager) {
|
|
5566
6421
|
super(manager);
|
|
5567
|
-
const cleanupEffect =
|
|
6422
|
+
const cleanupEffect = j(() => {
|
|
5568
6423
|
const { dragOperation } = manager;
|
|
5569
6424
|
if (!isKeyboardEvent(dragOperation.activatorEvent)) return;
|
|
5570
6425
|
if (!isSortable(dragOperation.source)) return;
|
|
@@ -5643,43 +6498,47 @@ function getDirection(delta) {
|
|
|
5643
6498
|
else if (y > 0) return "down";
|
|
5644
6499
|
else if (y < 0) return "up";
|
|
5645
6500
|
}
|
|
5646
|
-
var __defProp2
|
|
6501
|
+
var __defProp2 = Object.defineProperty;
|
|
5647
6502
|
var __defProps2 = Object.defineProperties;
|
|
5648
6503
|
var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
|
|
5649
6504
|
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
5650
6505
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
5651
6506
|
var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
|
|
5652
|
-
var __defNormalProp2
|
|
6507
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
|
|
5653
6508
|
enumerable: true,
|
|
5654
6509
|
configurable: true,
|
|
5655
6510
|
writable: true,
|
|
5656
6511
|
value
|
|
5657
6512
|
}) : obj[key] = value;
|
|
5658
6513
|
var __spreadValues2 = (a, b) => {
|
|
5659
|
-
for (var prop in b || (b = {})) if (__hasOwnProp2.call(b, prop)) __defNormalProp2
|
|
6514
|
+
for (var prop in b || (b = {})) if (__hasOwnProp2.call(b, prop)) __defNormalProp2(a, prop, b[prop]);
|
|
5660
6515
|
if (__getOwnPropSymbols2) {
|
|
5661
|
-
for (var prop of __getOwnPropSymbols2(b)) if (__propIsEnum2.call(b, prop)) __defNormalProp2
|
|
6516
|
+
for (var prop of __getOwnPropSymbols2(b)) if (__propIsEnum2.call(b, prop)) __defNormalProp2(a, prop, b[prop]);
|
|
5662
6517
|
}
|
|
5663
6518
|
return a;
|
|
5664
6519
|
};
|
|
5665
6520
|
var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
|
|
5666
|
-
function arrayMove
|
|
6521
|
+
function arrayMove(array, from, to) {
|
|
5667
6522
|
if (from === to) return array;
|
|
5668
6523
|
const newArray = array.slice();
|
|
5669
6524
|
newArray.splice(to, 0, newArray.splice(from, 1)[0]);
|
|
5670
6525
|
return newArray;
|
|
5671
6526
|
}
|
|
6527
|
+
function getRecordKey(items, id) {
|
|
6528
|
+
const key = String(id);
|
|
6529
|
+
return Object.prototype.hasOwnProperty.call(items, key) ? key : void 0;
|
|
6530
|
+
}
|
|
5672
6531
|
function hasSortableIndices(source) {
|
|
5673
6532
|
return "initialIndex" in source && typeof source.initialIndex === "number" && "index" in source && typeof source.index === "number";
|
|
5674
6533
|
}
|
|
5675
6534
|
function mutate(items, event, mutation) {
|
|
5676
|
-
var _a, _b
|
|
6535
|
+
var _a, _b;
|
|
5677
6536
|
const { source, target, canceled } = event.operation;
|
|
5678
6537
|
if (!source || !target || canceled) {
|
|
5679
6538
|
if ("preventDefault" in event) event.preventDefault();
|
|
5680
6539
|
return items;
|
|
5681
6540
|
}
|
|
5682
|
-
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;
|
|
5683
6542
|
if (Array.isArray(items)) {
|
|
5684
6543
|
const sourceIndex2 = items.findIndex((item) => findIndex(item, source.id));
|
|
5685
6544
|
const targetIndex2 = items.findIndex((item) => findIndex(item, target.id));
|
|
@@ -5718,11 +6577,11 @@ function mutate(items, event, mutation) {
|
|
|
5718
6577
|
if (sourceIndex !== -1 && targetIndex !== -1) break;
|
|
5719
6578
|
}
|
|
5720
6579
|
if (sourceIndex === -1 && hasSortableIndices(source)) {
|
|
5721
|
-
const srcParent = source.initialGroup;
|
|
6580
|
+
const srcParent = source.initialGroup == null ? void 0 : getRecordKey(items, source.initialGroup);
|
|
5722
6581
|
const srcIndex = source.initialIndex;
|
|
5723
|
-
const tgtParent = source.group;
|
|
6582
|
+
const tgtParent = source.group == null ? void 0 : getRecordKey(items, source.group);
|
|
5724
6583
|
const tgtIndex = source.index;
|
|
5725
|
-
if (srcParent == null || tgtParent == null
|
|
6584
|
+
if (srcParent == null || tgtParent == null) {
|
|
5726
6585
|
if ("preventDefault" in event) event.preventDefault();
|
|
5727
6586
|
return items;
|
|
5728
6587
|
}
|
|
@@ -5745,19 +6604,21 @@ function mutate(items, event, mutation) {
|
|
|
5745
6604
|
const { dragOperation } = source.manager;
|
|
5746
6605
|
const position = (_b = (_a = dragOperation.shape) == null ? void 0 : _a.current.center) != null ? _b : dragOperation.position.current;
|
|
5747
6606
|
if (targetParent == null) {
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
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;
|
|
5751
6611
|
targetIndex = insertionIndex;
|
|
5752
6612
|
}
|
|
5753
6613
|
}
|
|
5754
6614
|
if (sourceParent == null || targetParent == null || sourceParent === targetParent && sourceIndex === targetIndex) {
|
|
5755
6615
|
if (sourceParent != null && sourceParent === targetParent && sourceIndex === targetIndex && hasSortableIndices(source)) {
|
|
5756
|
-
const
|
|
6616
|
+
const sourceGroupParent = source.group == null ? void 0 : getRecordKey(items, source.group);
|
|
6617
|
+
const hasGroupChanged = source.group != null && sourceGroupParent !== sourceParent;
|
|
5757
6618
|
const hasIndexChanged = source.index !== sourceIndex;
|
|
5758
6619
|
if (hasGroupChanged || hasIndexChanged) {
|
|
5759
|
-
const reconciledTargetParent =
|
|
5760
|
-
if (reconciledTargetParent
|
|
6620
|
+
const reconciledTargetParent = source.group == null ? sourceParent : sourceGroupParent;
|
|
6621
|
+
if (reconciledTargetParent != null) {
|
|
5761
6622
|
if (sourceParent === reconciledTargetParent) return __spreadProps2(__spreadValues2({}, items), { [sourceParent]: mutation(items[sourceParent], sourceIndex, source.index) });
|
|
5762
6623
|
const sourceItem2 = items[sourceParent][sourceIndex];
|
|
5763
6624
|
return __spreadProps2(__spreadValues2({}, items), {
|
|
@@ -5787,7 +6648,20 @@ function mutate(items, event, mutation) {
|
|
|
5787
6648
|
});
|
|
5788
6649
|
}
|
|
5789
6650
|
function move(items, event) {
|
|
5790
|
-
return mutate(items, event, arrayMove
|
|
6651
|
+
return mutate(items, event, arrayMove);
|
|
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;
|
|
5791
6665
|
}
|
|
5792
6666
|
var defaultGroup = "__default__";
|
|
5793
6667
|
var OptimisticSortingPlugin = class extends Plugin {
|
|
@@ -5805,7 +6679,6 @@ var OptimisticSortingPlugin = class extends Plugin {
|
|
|
5805
6679
|
}
|
|
5806
6680
|
instances.add(sortable);
|
|
5807
6681
|
}
|
|
5808
|
-
for (const [group, instances] of sortableInstances) sortableInstances.set(group, new Set(sort(instances)));
|
|
5809
6682
|
return sortableInstances;
|
|
5810
6683
|
};
|
|
5811
6684
|
const unsubscribe = [manager.monitor.addEventListener("dragover", (event, manager2) => {
|
|
@@ -5815,6 +6688,7 @@ var OptimisticSortingPlugin = class extends Plugin {
|
|
|
5815
6688
|
if (!isSortable(source) || !isSortable(target)) return;
|
|
5816
6689
|
if (source.sortable === target.sortable) return;
|
|
5817
6690
|
const instances = getSortableInstances();
|
|
6691
|
+
const sortableIndices = getSortableIndices(instances);
|
|
5818
6692
|
const sameGroup = source.sortable.group === target.sortable.group;
|
|
5819
6693
|
const sourceInstances = instances.get(source.sortable.group);
|
|
5820
6694
|
const targetInstances = sameGroup ? sourceInstances : instances.get(target.sortable.group);
|
|
@@ -5822,20 +6696,17 @@ var OptimisticSortingPlugin = class extends Plugin {
|
|
|
5822
6696
|
queueMicrotask(() => {
|
|
5823
6697
|
if (event.defaultPrevented) return;
|
|
5824
6698
|
manager2.renderer.rendering.then(() => {
|
|
5825
|
-
var _a, _b
|
|
6699
|
+
var _a, _b;
|
|
5826
6700
|
const newInstances = getSortableInstances();
|
|
5827
|
-
|
|
5828
|
-
const entries = Array.from(sortableInstances).entries();
|
|
5829
|
-
for (const [index, sortable] of entries) if (sortable.index !== index || sortable.group !== group || !((_a = newInstances.get(group)) == null ? void 0 : _a.has(sortable))) return;
|
|
5830
|
-
}
|
|
6701
|
+
if (hasChanged(sortableIndices, instances, newInstances)) return;
|
|
5831
6702
|
const sourceElement = source.sortable.element;
|
|
5832
6703
|
const targetElement = target.sortable.element;
|
|
5833
6704
|
if (!targetElement || !sourceElement) return;
|
|
5834
6705
|
if (!sameGroup && target.id === source.sortable.group) return;
|
|
5835
6706
|
const orderedSourceSortables = sort(sourceInstances);
|
|
5836
6707
|
const orderedTargetSortables = sameGroup ? orderedSourceSortables : sort(targetInstances);
|
|
5837
|
-
const sourceGroup = (
|
|
5838
|
-
const targetGroup = (
|
|
6708
|
+
const sourceGroup = (_a = source.sortable.group) != null ? _a : defaultGroup;
|
|
6709
|
+
const targetGroup = (_b = target.sortable.group) != null ? _b : defaultGroup;
|
|
5839
6710
|
const state = {
|
|
5840
6711
|
[sourceGroup]: orderedSourceSortables,
|
|
5841
6712
|
[targetGroup]: orderedTargetSortables
|
|
@@ -5864,21 +6735,21 @@ var OptimisticSortingPlugin = class extends Plugin {
|
|
|
5864
6735
|
if (source.sortable.initialIndex === source.sortable.index && source.sortable.initialGroup === source.sortable.group) return;
|
|
5865
6736
|
queueMicrotask(() => {
|
|
5866
6737
|
const instances = getSortableInstances();
|
|
6738
|
+
const sortableIndices = getSortableIndices(instances);
|
|
5867
6739
|
const initialGroupInstances = instances.get(source.sortable.initialGroup);
|
|
5868
6740
|
if (!initialGroupInstances) return;
|
|
5869
6741
|
manager2.renderer.rendering.then(() => {
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
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);
|
|
5875
6746
|
const sourceElement = source.sortable.element;
|
|
5876
|
-
const target =
|
|
6747
|
+
const target = currentSortables[initialSortables.indexOf(source.sortable)];
|
|
5877
6748
|
const targetElement = target == null ? void 0 : target.element;
|
|
5878
6749
|
if (!target || !targetElement || !sourceElement) return;
|
|
5879
6750
|
reorder(sourceElement, target.index, targetElement, source.index);
|
|
5880
6751
|
n(() => {
|
|
5881
|
-
for (const
|
|
6752
|
+
for (const sortableInstances of instances.values()) {
|
|
5882
6753
|
const entries = Array.from(sortableInstances).values();
|
|
5883
6754
|
for (const sortable of entries) {
|
|
5884
6755
|
sortable.index = sortable.initialIndex;
|
|
@@ -5901,8 +6772,11 @@ function reorder(sourceElement, sourceIndex, targetElement, targetIndex) {
|
|
|
5901
6772
|
function sortByIndex(a, b) {
|
|
5902
6773
|
return a.index - b.index;
|
|
5903
6774
|
}
|
|
5904
|
-
function
|
|
5905
|
-
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);
|
|
5906
6780
|
}
|
|
5907
6781
|
var defaultPlugins = [SortableKeyboardPlugin, OptimisticSortingPlugin];
|
|
5908
6782
|
var defaultSortableTransition = {
|
|
@@ -5910,16 +6784,34 @@ var defaultSortableTransition = {
|
|
|
5910
6784
|
easing: "cubic-bezier(0.25, 1, 0.5, 1)",
|
|
5911
6785
|
idle: false
|
|
5912
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
|
+
}
|
|
5913
6798
|
var store = new WeakStore();
|
|
5914
|
-
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;
|
|
5915
6807
|
_group_dec = [reactive];
|
|
5916
6808
|
var Sortable2 = class {
|
|
5917
6809
|
constructor(_a, manager) {
|
|
5918
|
-
__privateAdd
|
|
5919
|
-
__privateAdd
|
|
5920
|
-
__privateAdd
|
|
5921
|
-
__privateAdd
|
|
5922
|
-
__privateAdd
|
|
6810
|
+
__privateAdd(this, _index, __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
|
|
6811
|
+
__privateAdd(this, _previousGroup);
|
|
6812
|
+
__privateAdd(this, _previousIndex);
|
|
6813
|
+
__privateAdd(this, _group, __runInitializers(_init, 12, this)), __runInitializers(_init, 15, this);
|
|
6814
|
+
__privateAdd(this, _element);
|
|
5923
6815
|
this.register = () => {
|
|
5924
6816
|
n(() => {
|
|
5925
6817
|
var _a, _b;
|
|
@@ -5941,8 +6833,9 @@ var Sortable2 = class {
|
|
|
5941
6833
|
this.draggable.destroy();
|
|
5942
6834
|
});
|
|
5943
6835
|
};
|
|
5944
|
-
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, [
|
|
5945
6837
|
"effects",
|
|
6838
|
+
"disabled",
|
|
5946
6839
|
"group",
|
|
5947
6840
|
"index",
|
|
5948
6841
|
"sensors",
|
|
@@ -5950,8 +6843,12 @@ var Sortable2 = class {
|
|
|
5950
6843
|
"transition",
|
|
5951
6844
|
"plugins"
|
|
5952
6845
|
]);
|
|
5953
|
-
|
|
5954
|
-
|
|
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);
|
|
6849
|
+
this.draggable = new SortableDraggable(__spreadProps$1(__spreadValues$1({}, input), {
|
|
6850
|
+
disabled: disabledState.draggable,
|
|
6851
|
+
plugins,
|
|
5955
6852
|
effects: () => [
|
|
5956
6853
|
() => {
|
|
5957
6854
|
var _a2, _b2, _c;
|
|
@@ -5964,34 +6861,31 @@ var Sortable2 = class {
|
|
|
5964
6861
|
},
|
|
5965
6862
|
() => {
|
|
5966
6863
|
const { index: index2, group: group2, manager: _ } = this;
|
|
5967
|
-
const previousIndex = __privateGet
|
|
5968
|
-
const previousGroup = __privateGet
|
|
6864
|
+
const previousIndex = __privateGet(this, _previousIndex);
|
|
6865
|
+
const previousGroup = __privateGet(this, _previousGroup);
|
|
5969
6866
|
if (index2 !== previousIndex || group2 !== previousGroup) {
|
|
5970
|
-
__privateSet
|
|
5971
|
-
__privateSet
|
|
6867
|
+
__privateSet(this, _previousIndex, index2);
|
|
6868
|
+
__privateSet(this, _previousGroup, group2);
|
|
5972
6869
|
this.animate();
|
|
5973
6870
|
}
|
|
5974
6871
|
},
|
|
5975
6872
|
() => {
|
|
6873
|
+
var _a2, _b2;
|
|
5976
6874
|
const { target } = this;
|
|
5977
|
-
const {
|
|
5978
|
-
if (
|
|
5979
|
-
},
|
|
5980
|
-
() => {
|
|
5981
|
-
const { manager: manager2 } = this;
|
|
5982
|
-
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;
|
|
5983
6877
|
},
|
|
5984
6878
|
...inputEffects()
|
|
5985
6879
|
],
|
|
5986
6880
|
type,
|
|
5987
6881
|
sensors
|
|
5988
6882
|
}), manager, this);
|
|
5989
|
-
__privateSet
|
|
6883
|
+
__privateSet(this, _element, input.element);
|
|
5990
6884
|
this.manager = manager;
|
|
5991
6885
|
this.index = index;
|
|
5992
|
-
__privateSet
|
|
6886
|
+
__privateSet(this, _previousIndex, index);
|
|
5993
6887
|
this.group = group;
|
|
5994
|
-
__privateSet
|
|
6888
|
+
__privateSet(this, _previousGroup, group);
|
|
5995
6889
|
this.type = type;
|
|
5996
6890
|
this.transition = transition;
|
|
5997
6891
|
}
|
|
@@ -6013,6 +6907,7 @@ var Sortable2 = class {
|
|
|
6013
6907
|
manager.renderer.rendering.then(() => {
|
|
6014
6908
|
const { element } = this;
|
|
6015
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();
|
|
6016
6911
|
const updatedShape = this.refreshShape();
|
|
6017
6912
|
if (!updatedShape) return;
|
|
6018
6913
|
const delta = {
|
|
@@ -6023,7 +6918,7 @@ var Sortable2 = class {
|
|
|
6023
6918
|
const currentTranslate = computeTranslate(element, translate, false);
|
|
6024
6919
|
const finalTranslate = computeTranslate(element, translate);
|
|
6025
6920
|
if (delta.x || delta.y) {
|
|
6026
|
-
const resolvedTransition = prefersReducedMotion(getWindow(element)) ? __spreadProps$
|
|
6921
|
+
const resolvedTransition = prefersReducedMotion(getWindow(element)) ? __spreadProps$1(__spreadValues$1({}, transition), { duration: 0 }) : transition;
|
|
6027
6922
|
animateTransform({
|
|
6028
6923
|
element,
|
|
6029
6924
|
keyframes: { translate: [`${currentTranslate.x + delta.x}px ${currentTranslate.y + delta.y}px ${currentTranslate.z}`, `${finalTranslate.x}px ${finalTranslate.y}px ${finalTranslate.z}`] },
|
|
@@ -6046,17 +6941,17 @@ var Sortable2 = class {
|
|
|
6046
6941
|
}
|
|
6047
6942
|
set element(element) {
|
|
6048
6943
|
n(() => {
|
|
6049
|
-
const previousElement = __privateGet
|
|
6944
|
+
const previousElement = __privateGet(this, _element);
|
|
6050
6945
|
const droppableElement = this.droppable.element;
|
|
6051
6946
|
const draggableElement = this.draggable.element;
|
|
6052
6947
|
if (!droppableElement || droppableElement === previousElement) this.droppable.element = element;
|
|
6053
6948
|
if (!draggableElement || draggableElement === previousElement) this.draggable.element = element;
|
|
6054
|
-
__privateSet
|
|
6949
|
+
__privateSet(this, _element, element);
|
|
6055
6950
|
});
|
|
6056
6951
|
}
|
|
6057
6952
|
get element() {
|
|
6058
6953
|
var _a, _b;
|
|
6059
|
-
const element = __privateGet
|
|
6954
|
+
const element = __privateGet(this, _element);
|
|
6060
6955
|
if (!element) return;
|
|
6061
6956
|
return (_b = (_a = ProxiedElements.get(element)) != null ? _a : element) != null ? _b : this.droppable.element;
|
|
6062
6957
|
}
|
|
@@ -6073,15 +6968,21 @@ var Sortable2 = class {
|
|
|
6073
6968
|
return this.draggable.element;
|
|
6074
6969
|
}
|
|
6075
6970
|
get disabled() {
|
|
6076
|
-
|
|
6971
|
+
const { disabled: draggable } = this.draggable;
|
|
6972
|
+
const { disabled: droppable } = this.droppable;
|
|
6973
|
+
return draggable === droppable ? draggable : {
|
|
6974
|
+
draggable,
|
|
6975
|
+
droppable
|
|
6976
|
+
};
|
|
6077
6977
|
}
|
|
6078
|
-
set
|
|
6079
|
-
this.draggable.
|
|
6978
|
+
set plugins(value) {
|
|
6979
|
+
this.draggable.plugins = resolveCustomizable(value, defaultPlugins);
|
|
6080
6980
|
}
|
|
6081
6981
|
set disabled(value) {
|
|
6982
|
+
const disabled = normalizeDisabled(value);
|
|
6082
6983
|
n(() => {
|
|
6083
|
-
this.droppable.disabled =
|
|
6084
|
-
this.draggable.disabled =
|
|
6984
|
+
this.droppable.disabled = disabled.droppable;
|
|
6985
|
+
this.draggable.disabled = disabled.draggable;
|
|
6085
6986
|
});
|
|
6086
6987
|
}
|
|
6087
6988
|
set data(data) {
|
|
@@ -6094,10 +6995,8 @@ var Sortable2 = class {
|
|
|
6094
6995
|
this.draggable.handle = handle;
|
|
6095
6996
|
}
|
|
6096
6997
|
set id(id) {
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
this.draggable.id = id;
|
|
6100
|
-
});
|
|
6998
|
+
this.droppable.id = id;
|
|
6999
|
+
this.draggable.id = id;
|
|
6101
7000
|
}
|
|
6102
7001
|
get id() {
|
|
6103
7002
|
return this.droppable.id;
|
|
@@ -6166,15 +7065,15 @@ var Sortable2 = class {
|
|
|
6166
7065
|
return this.droppable.accepts(draggable);
|
|
6167
7066
|
}
|
|
6168
7067
|
};
|
|
6169
|
-
_init
|
|
7068
|
+
_init = __decoratorStart();
|
|
6170
7069
|
_index = new WeakMap();
|
|
6171
7070
|
_previousGroup = new WeakMap();
|
|
6172
7071
|
_previousIndex = new WeakMap();
|
|
6173
7072
|
_group = new WeakMap();
|
|
6174
7073
|
_element = new WeakMap();
|
|
6175
|
-
__decorateElement
|
|
6176
|
-
__decorateElement
|
|
6177
|
-
__decoratorMetadata
|
|
7074
|
+
__decorateElement(_init, 4, "index", _index_dec, Sortable2, _index);
|
|
7075
|
+
__decorateElement(_init, 4, "group", _group_dec, Sortable2, _group);
|
|
7076
|
+
__decoratorMetadata(_init, Sortable2);
|
|
6178
7077
|
var SortableDraggable = class extends Draggable$1 {
|
|
6179
7078
|
constructor(input, manager, sortable) {
|
|
6180
7079
|
super(input, manager);
|
|
@@ -6206,426 +7105,37 @@ var SortableDroppable = class extends Droppable {
|
|
|
6206
7105
|
}
|
|
6207
7106
|
};
|
|
6208
7107
|
//#endregion
|
|
6209
|
-
//#region node_modules/@dnd-kit/react/utilities.js
|
|
6210
|
-
function isRef(value) {
|
|
6211
|
-
return value != null && typeof value === "object" && "current" in value;
|
|
6212
|
-
}
|
|
6213
|
-
function currentValue(value) {
|
|
6214
|
-
var _a;
|
|
6215
|
-
if (value == null) return;
|
|
6216
|
-
if (isRef(value)) return (_a = value.current) != null ? _a : void 0;
|
|
6217
|
-
return value;
|
|
6218
|
-
}
|
|
6219
|
-
//#endregion
|
|
6220
|
-
//#region node_modules/@dnd-kit/react/hooks.js
|
|
6221
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ? useLayoutEffect : useEffect;
|
|
6222
|
-
function useForceUpdate() {
|
|
6223
|
-
const setState = useState(0)[1];
|
|
6224
|
-
return useCallback(() => {
|
|
6225
|
-
setState((value) => value + 1);
|
|
6226
|
-
}, [setState]);
|
|
6227
|
-
}
|
|
6228
|
-
function useDeepSignal(target, synchronous) {
|
|
6229
|
-
const tracked = useRef(new Map());
|
|
6230
|
-
const forceUpdate = useForceUpdate();
|
|
6231
|
-
useIsomorphicLayoutEffect(() => {
|
|
6232
|
-
if (!target) {
|
|
6233
|
-
tracked.current.clear();
|
|
6234
|
-
return;
|
|
6235
|
-
}
|
|
6236
|
-
return C(() => {
|
|
6237
|
-
var _a;
|
|
6238
|
-
let stale = false;
|
|
6239
|
-
let sync = false;
|
|
6240
|
-
for (const entry of tracked.current) {
|
|
6241
|
-
const [key] = entry;
|
|
6242
|
-
const value = o(() => entry[1]);
|
|
6243
|
-
const latestValue = target[key];
|
|
6244
|
-
if (value !== latestValue) {
|
|
6245
|
-
stale = true;
|
|
6246
|
-
tracked.current.set(key, latestValue);
|
|
6247
|
-
sync = (_a = synchronous == null ? void 0 : synchronous(key, value, latestValue)) != null ? _a : false;
|
|
6248
|
-
}
|
|
6249
|
-
}
|
|
6250
|
-
if (stale) sync ? flushSync(forceUpdate) : forceUpdate();
|
|
6251
|
-
});
|
|
6252
|
-
}, [target]);
|
|
6253
|
-
return useMemo(() => target ? new Proxy(target, { get(target2, key) {
|
|
6254
|
-
const value = target2[key];
|
|
6255
|
-
tracked.current.set(key, value);
|
|
6256
|
-
return value;
|
|
6257
|
-
} }) : target, [target]);
|
|
6258
|
-
}
|
|
6259
|
-
function useImmediateEffect(callback, _) {
|
|
6260
|
-
callback();
|
|
6261
|
-
}
|
|
6262
|
-
function useLatest(value) {
|
|
6263
|
-
const valueRef = useRef(value);
|
|
6264
|
-
useIsomorphicLayoutEffect(() => {
|
|
6265
|
-
valueRef.current = value;
|
|
6266
|
-
}, [value]);
|
|
6267
|
-
return valueRef;
|
|
6268
|
-
}
|
|
6269
|
-
function useOnValueChange(value, onChange, effect3 = useEffect, compare = Object.is) {
|
|
6270
|
-
const tracked = useRef(value);
|
|
6271
|
-
effect3(() => {
|
|
6272
|
-
const oldValue = tracked.current;
|
|
6273
|
-
if (!compare(value, oldValue)) {
|
|
6274
|
-
tracked.current = value;
|
|
6275
|
-
onChange(value, oldValue);
|
|
6276
|
-
}
|
|
6277
|
-
}, [onChange, value]);
|
|
6278
|
-
}
|
|
6279
|
-
function useOnElementChange(value, onChange) {
|
|
6280
|
-
const previous = useRef(currentValue(value));
|
|
6281
|
-
useIsomorphicLayoutEffect(() => {
|
|
6282
|
-
const current = currentValue(value);
|
|
6283
|
-
if (current !== previous.current) {
|
|
6284
|
-
previous.current = current;
|
|
6285
|
-
onChange(current);
|
|
6286
|
-
}
|
|
6287
|
-
});
|
|
6288
|
-
}
|
|
6289
|
-
//#endregion
|
|
6290
|
-
//#region node_modules/@dnd-kit/react/index.js
|
|
6291
|
-
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
6292
|
-
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
6293
|
-
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
6294
|
-
var __objRest = (source, exclude) => {
|
|
6295
|
-
var target = {};
|
|
6296
|
-
for (var prop in source) if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
6297
|
-
if (source != null && __getOwnPropSymbols$2) {
|
|
6298
|
-
for (var prop of __getOwnPropSymbols$2(source)) if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop)) target[prop] = source[prop];
|
|
6299
|
-
}
|
|
6300
|
-
return target;
|
|
6301
|
-
};
|
|
6302
|
-
var DragDropContext = createContext(new DragDropManager());
|
|
6303
|
-
var Renderer = memo(forwardRef(({ children }, ref) => {
|
|
6304
|
-
const [transitionCount, setTransitionCount] = useState(0);
|
|
6305
|
-
const rendering = useRef(null);
|
|
6306
|
-
const resolver = useRef(null);
|
|
6307
|
-
const renderer = useMemo(() => ({
|
|
6308
|
-
renderer: { get rendering() {
|
|
6309
|
-
var _a2;
|
|
6310
|
-
return (_a2 = rendering.current) != null ? _a2 : Promise.resolve();
|
|
6311
|
-
} },
|
|
6312
|
-
trackRendering(callback) {
|
|
6313
|
-
if (!rendering.current) rendering.current = new Promise((resolve) => {
|
|
6314
|
-
resolver.current = resolve;
|
|
6315
|
-
});
|
|
6316
|
-
startTransition(() => {
|
|
6317
|
-
callback();
|
|
6318
|
-
setTransitionCount((count) => count + 1);
|
|
6319
|
-
});
|
|
6320
|
-
}
|
|
6321
|
-
}), []);
|
|
6322
|
-
useIsomorphicLayoutEffect(() => {
|
|
6323
|
-
var _a2;
|
|
6324
|
-
(_a2 = resolver.current) == null || _a2.call(resolver);
|
|
6325
|
-
rendering.current = null;
|
|
6326
|
-
}, [children, transitionCount]);
|
|
6327
|
-
useImperativeHandle(ref, () => renderer);
|
|
6328
|
-
return null;
|
|
6329
|
-
}));
|
|
6330
|
-
var options = [void 0, deepEqual];
|
|
6331
|
-
function DragDropProvider(_a2) {
|
|
6332
|
-
var _b = _a2, { children, onCollision, onBeforeDragStart, onDragStart, onDragMove, onDragOver, onDragEnd } = _b, input = __objRest(_b, [
|
|
6333
|
-
"children",
|
|
6334
|
-
"onCollision",
|
|
6335
|
-
"onBeforeDragStart",
|
|
6336
|
-
"onDragStart",
|
|
6337
|
-
"onDragMove",
|
|
6338
|
-
"onDragOver",
|
|
6339
|
-
"onDragEnd"
|
|
6340
|
-
]);
|
|
6341
|
-
const rendererRef = useRef(null);
|
|
6342
|
-
const { plugins: pluginsInput, modifiers: modifiersInput, sensors: sensorsInput } = input;
|
|
6343
|
-
const plugins = resolveCustomizable(pluginsInput, defaultPreset.plugins);
|
|
6344
|
-
const sensors = resolveCustomizable(sensorsInput, defaultPreset.sensors);
|
|
6345
|
-
const modifiers = resolveCustomizable(modifiersInput, defaultPreset.modifiers);
|
|
6346
|
-
const handleBeforeDragStart = useLatest(onBeforeDragStart);
|
|
6347
|
-
const handleDragStart = useLatest(onDragStart);
|
|
6348
|
-
const handleDragOver = useLatest(onDragOver);
|
|
6349
|
-
const handleDragMove = useLatest(onDragMove);
|
|
6350
|
-
const handleDragEnd = useLatest(onDragEnd);
|
|
6351
|
-
const handleCollision = useLatest(onCollision);
|
|
6352
|
-
const manager = useStableInstance(() => {
|
|
6353
|
-
var _a3;
|
|
6354
|
-
return (_a3 = input.manager) != null ? _a3 : new DragDropManager(input);
|
|
6355
|
-
});
|
|
6356
|
-
useEffect(() => {
|
|
6357
|
-
if (!rendererRef.current) throw new Error("Renderer not found");
|
|
6358
|
-
const { renderer, trackRendering } = rendererRef.current;
|
|
6359
|
-
const { monitor } = manager;
|
|
6360
|
-
manager.renderer = renderer;
|
|
6361
|
-
const listeners = [
|
|
6362
|
-
monitor.addEventListener("beforedragstart", (event) => {
|
|
6363
|
-
const callback = handleBeforeDragStart.current;
|
|
6364
|
-
if (callback) trackRendering(() => callback(event, manager));
|
|
6365
|
-
}),
|
|
6366
|
-
monitor.addEventListener("dragstart", (event) => {
|
|
6367
|
-
var _a3;
|
|
6368
|
-
return (_a3 = handleDragStart.current) == null ? void 0 : _a3.call(handleDragStart, event, manager);
|
|
6369
|
-
}),
|
|
6370
|
-
monitor.addEventListener("dragover", (event) => {
|
|
6371
|
-
const callback = handleDragOver.current;
|
|
6372
|
-
if (callback) trackRendering(() => callback(event, manager));
|
|
6373
|
-
}),
|
|
6374
|
-
monitor.addEventListener("dragmove", (event) => {
|
|
6375
|
-
const callback = handleDragMove.current;
|
|
6376
|
-
if (callback) trackRendering(() => callback(event, manager));
|
|
6377
|
-
}),
|
|
6378
|
-
monitor.addEventListener("dragend", (event) => {
|
|
6379
|
-
const callback = handleDragEnd.current;
|
|
6380
|
-
if (callback) trackRendering(() => callback(event, manager));
|
|
6381
|
-
}),
|
|
6382
|
-
monitor.addEventListener("collision", (event) => {
|
|
6383
|
-
var _a3;
|
|
6384
|
-
return (_a3 = handleCollision.current) == null ? void 0 : _a3.call(handleCollision, event, manager);
|
|
6385
|
-
})
|
|
6386
|
-
];
|
|
6387
|
-
return () => listeners.forEach((dispose) => dispose());
|
|
6388
|
-
}, [manager]);
|
|
6389
|
-
useOnValueChange(plugins, () => manager && (manager.plugins = plugins), ...options);
|
|
6390
|
-
useOnValueChange(sensors, () => manager && (manager.sensors = sensors), ...options);
|
|
6391
|
-
useOnValueChange(modifiers, () => manager && (manager.modifiers = modifiers), ...options);
|
|
6392
|
-
return jsxs(DragDropContext.Provider, {
|
|
6393
|
-
value: manager,
|
|
6394
|
-
children: [jsx(Renderer, {
|
|
6395
|
-
ref: rendererRef,
|
|
6396
|
-
children
|
|
6397
|
-
}), children]
|
|
6398
|
-
});
|
|
6399
|
-
}
|
|
6400
|
-
function useStableInstance(create) {
|
|
6401
|
-
const ref = useRef(null);
|
|
6402
|
-
if (!ref.current) ref.current = create();
|
|
6403
|
-
useInsertionEffect(() => {
|
|
6404
|
-
return () => {
|
|
6405
|
-
var _a2;
|
|
6406
|
-
return (_a2 = ref.current) == null ? void 0 : _a2.destroy();
|
|
6407
|
-
};
|
|
6408
|
-
}, []);
|
|
6409
|
-
return ref.current;
|
|
6410
|
-
}
|
|
6411
|
-
function useDragDropManager() {
|
|
6412
|
-
return useContext(DragDropContext);
|
|
6413
|
-
}
|
|
6414
|
-
function useInstance(initializer) {
|
|
6415
|
-
var _a2;
|
|
6416
|
-
const manager = (_a2 = useDragDropManager()) != null ? _a2 : void 0;
|
|
6417
|
-
const [instance] = useState(() => initializer(manager));
|
|
6418
|
-
if (instance.manager !== manager) instance.manager = manager;
|
|
6419
|
-
useIsomorphicLayoutEffect(instance.register, [manager, instance]);
|
|
6420
|
-
return instance;
|
|
6421
|
-
}
|
|
6422
|
-
var __create = Object.create;
|
|
6423
|
-
var __defProp2 = Object.defineProperty;
|
|
6424
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6425
|
-
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
6426
|
-
var __typeError = (msg) => {
|
|
6427
|
-
throw TypeError(msg);
|
|
6428
|
-
};
|
|
6429
|
-
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
|
|
6430
|
-
enumerable: true,
|
|
6431
|
-
configurable: true,
|
|
6432
|
-
writable: true,
|
|
6433
|
-
value
|
|
6434
|
-
}) : obj[key] = value;
|
|
6435
|
-
var __decoratorStart = (base) => {
|
|
6436
|
-
var _a2;
|
|
6437
|
-
return [
|
|
6438
|
-
,
|
|
6439
|
-
,
|
|
6440
|
-
,
|
|
6441
|
-
__create((_a2 = base == null ? void 0 : base[__knownSymbol("metadata")]) != null ? _a2 : null)
|
|
6442
|
-
];
|
|
6443
|
-
};
|
|
6444
|
-
var __decoratorStrings = [
|
|
6445
|
-
"class",
|
|
6446
|
-
"method",
|
|
6447
|
-
"getter",
|
|
6448
|
-
"setter",
|
|
6449
|
-
"accessor",
|
|
6450
|
-
"field",
|
|
6451
|
-
"value",
|
|
6452
|
-
"get",
|
|
6453
|
-
"set"
|
|
6454
|
-
];
|
|
6455
|
-
var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn;
|
|
6456
|
-
var __decoratorContext = (kind, name, done, metadata, fns) => ({
|
|
6457
|
-
kind: __decoratorStrings[kind],
|
|
6458
|
-
name,
|
|
6459
|
-
metadata,
|
|
6460
|
-
addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null))
|
|
6461
|
-
});
|
|
6462
|
-
var __decoratorMetadata = (array, target) => __defNormalProp2(target, __knownSymbol("metadata"), array[3]);
|
|
6463
|
-
var __runInitializers = (array, flags, self, value) => {
|
|
6464
|
-
for (var i = 0, fns = array[flags >> 1], n = fns && fns.length; i < n; i++) fns[i].call(self);
|
|
6465
|
-
return value;
|
|
6466
|
-
};
|
|
6467
|
-
var __decorateElement = (array, flags, name, decorators, target, extra) => {
|
|
6468
|
-
var it, done, ctx, access, k = flags & 7, s = false, p = false;
|
|
6469
|
-
var j = 2, key = __decoratorStrings[k + 5];
|
|
6470
|
-
var extraInitializers = array[j] || (array[j] = []);
|
|
6471
|
-
var desc = (target = target.prototype, __getOwnPropDesc(target, name));
|
|
6472
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
6473
|
-
ctx = __decoratorContext(k, name, done = {}, array[3], extraInitializers);
|
|
6474
|
-
ctx.static = s, ctx.private = p, access = ctx.access = { has: (x) => name in x };
|
|
6475
|
-
access.get = (x) => x[name];
|
|
6476
|
-
it = (0, decorators[i])(desc[key], ctx), done._ = 1;
|
|
6477
|
-
__expectFn(it) && (desc[key] = it);
|
|
6478
|
-
}
|
|
6479
|
-
return desc && __defProp2(target, name, desc), target;
|
|
6480
|
-
};
|
|
6481
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
6482
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), member.get(obj));
|
|
6483
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
6484
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
6485
|
-
var Point = class _Point {
|
|
6486
|
-
/**
|
|
6487
|
-
* @param {number} Coordinate of the point on the horizontal axis
|
|
6488
|
-
* @param {number} Coordinate of the point on the vertical axis
|
|
6489
|
-
*/
|
|
6490
|
-
constructor(x, y) {
|
|
6491
|
-
this.x = x;
|
|
6492
|
-
this.y = y;
|
|
6493
|
-
}
|
|
6494
|
-
/**
|
|
6495
|
-
* Returns the delta between this point and another point.
|
|
6496
|
-
*
|
|
6497
|
-
* @param {Point} a - A point
|
|
6498
|
-
* @param {Point} b - Another point
|
|
6499
|
-
*/
|
|
6500
|
-
static delta(a, b) {
|
|
6501
|
-
return new _Point(a.x - b.x, a.y - b.y);
|
|
6502
|
-
}
|
|
6503
|
-
/**
|
|
6504
|
-
* Returns the distance (hypotenuse) between this point and another point.
|
|
6505
|
-
*
|
|
6506
|
-
* @param {Point} a - A point
|
|
6507
|
-
* @param {Point} b - Another point
|
|
6508
|
-
*/
|
|
6509
|
-
static distance(a, b) {
|
|
6510
|
-
return Math.hypot(a.x - b.x, a.y - b.y);
|
|
6511
|
-
}
|
|
6512
|
-
/**
|
|
6513
|
-
* Returns true if both points are equal.
|
|
6514
|
-
*
|
|
6515
|
-
* @param {Point} a - A point
|
|
6516
|
-
* @param {Point} b - Another point
|
|
6517
|
-
*/
|
|
6518
|
-
static equals(a, b) {
|
|
6519
|
-
return a.x === b.x && a.y === b.y;
|
|
6520
|
-
}
|
|
6521
|
-
static from({ x, y }) {
|
|
6522
|
-
return new _Point(x, y);
|
|
6523
|
-
}
|
|
6524
|
-
};
|
|
6525
|
-
var _direction_dec;
|
|
6526
|
-
var _delta_dec;
|
|
6527
|
-
var _a;
|
|
6528
|
-
var _timestamp;
|
|
6529
|
-
var _init;
|
|
6530
|
-
var Position = class extends (_a = ValueHistory, _delta_dec = [derived], _direction_dec = [derived], _a) {
|
|
6531
|
-
constructor(initialValue) {
|
|
6532
|
-
const point = Point.from(initialValue);
|
|
6533
|
-
super(point, (a, b) => Point.equals(a, b));
|
|
6534
|
-
__runInitializers(_init, 5, this);
|
|
6535
|
-
__privateAdd(this, _timestamp, 0);
|
|
6536
|
-
this.velocity = {
|
|
6537
|
-
x: 0,
|
|
6538
|
-
y: 0
|
|
6539
|
-
};
|
|
6540
|
-
}
|
|
6541
|
-
get delta() {
|
|
6542
|
-
return Point.delta(this.current, this.initial);
|
|
6543
|
-
}
|
|
6544
|
-
get direction() {
|
|
6545
|
-
const { current, previous } = this;
|
|
6546
|
-
if (!previous) return null;
|
|
6547
|
-
const delta = {
|
|
6548
|
-
x: current.x - previous.x,
|
|
6549
|
-
y: current.y - previous.y
|
|
6550
|
-
};
|
|
6551
|
-
if (!delta.x && !delta.y) return null;
|
|
6552
|
-
if (Math.abs(delta.x) > Math.abs(delta.y)) return delta.x > 0 ? "right" : "left";
|
|
6553
|
-
return delta.y > 0 ? "down" : "up";
|
|
6554
|
-
}
|
|
6555
|
-
get current() {
|
|
6556
|
-
return super.current;
|
|
6557
|
-
}
|
|
6558
|
-
set current(coordinates) {
|
|
6559
|
-
const { current } = this;
|
|
6560
|
-
const point = Point.from(coordinates);
|
|
6561
|
-
const delta = {
|
|
6562
|
-
x: point.x - current.x,
|
|
6563
|
-
y: point.y - current.y
|
|
6564
|
-
};
|
|
6565
|
-
const timestamp = Date.now();
|
|
6566
|
-
const timeDelta = timestamp - __privateGet(this, _timestamp);
|
|
6567
|
-
const velocity = (delta2) => Math.round(delta2 / timeDelta * 100);
|
|
6568
|
-
n(() => {
|
|
6569
|
-
__privateSet(this, _timestamp, timestamp);
|
|
6570
|
-
this.velocity = {
|
|
6571
|
-
x: velocity(delta.x),
|
|
6572
|
-
y: velocity(delta.y)
|
|
6573
|
-
};
|
|
6574
|
-
super.current = point;
|
|
6575
|
-
});
|
|
6576
|
-
}
|
|
6577
|
-
reset(coordinates = this.defaultValue) {
|
|
6578
|
-
super.reset(Point.from(coordinates));
|
|
6579
|
-
this.velocity = {
|
|
6580
|
-
x: 0,
|
|
6581
|
-
y: 0
|
|
6582
|
-
};
|
|
6583
|
-
}
|
|
6584
|
-
};
|
|
6585
|
-
_init = __decoratorStart(_a);
|
|
6586
|
-
_timestamp = new WeakMap();
|
|
6587
|
-
__decorateElement(_init, 2, "delta", _delta_dec, Position);
|
|
6588
|
-
__decorateElement(_init, 2, "direction", _direction_dec, Position);
|
|
6589
|
-
__decoratorMetadata(_init, Position);
|
|
6590
|
-
var Axis = ((Axis2) => {
|
|
6591
|
-
Axis2["Horizontal"] = "x";
|
|
6592
|
-
Axis2["Vertical"] = "y";
|
|
6593
|
-
return Axis2;
|
|
6594
|
-
})(Axis || {});
|
|
6595
|
-
Object.values(Axis);
|
|
6596
|
-
//#endregion
|
|
6597
7108
|
//#region node_modules/@dnd-kit/react/sortable.js
|
|
6598
|
-
var __defProp
|
|
6599
|
-
var __defProps
|
|
6600
|
-
var __getOwnPropDescs
|
|
6601
|
-
var __getOwnPropSymbols
|
|
6602
|
-
var __hasOwnProp
|
|
6603
|
-
var __propIsEnum
|
|
6604
|
-
var __defNormalProp
|
|
7109
|
+
var __defProp = Object.defineProperty;
|
|
7110
|
+
var __defProps = Object.defineProperties;
|
|
7111
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7112
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7113
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7114
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7115
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
6605
7116
|
enumerable: true,
|
|
6606
7117
|
configurable: true,
|
|
6607
7118
|
writable: true,
|
|
6608
7119
|
value
|
|
6609
7120
|
}) : obj[key] = value;
|
|
6610
|
-
var __spreadValues
|
|
6611
|
-
for (var prop in b || (b = {})) if (__hasOwnProp
|
|
6612
|
-
if (__getOwnPropSymbols
|
|
6613
|
-
for (var prop of __getOwnPropSymbols
|
|
7121
|
+
var __spreadValues = (a, b) => {
|
|
7122
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
7123
|
+
if (__getOwnPropSymbols) {
|
|
7124
|
+
for (var prop of __getOwnPropSymbols(b)) if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
6614
7125
|
}
|
|
6615
7126
|
return a;
|
|
6616
7127
|
};
|
|
6617
|
-
var __spreadProps
|
|
7128
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
6618
7129
|
function useSortable(input) {
|
|
6619
|
-
const { accept, collisionDetector, collisionPriority, id, data, element, handle, index, group, disabled,
|
|
6620
|
-
const transition = __spreadValues
|
|
7130
|
+
const { accept, collisionDetector, collisionPriority, id, data, element, handle, index, group, disabled, modifiers, sensors, target, type, plugins } = input;
|
|
7131
|
+
const transition = __spreadValues(__spreadValues({}, defaultSortableTransition), input.transition);
|
|
6621
7132
|
const sortable = useInstance((manager) => {
|
|
6622
|
-
return new Sortable2(__spreadProps
|
|
7133
|
+
return new Sortable2(__spreadProps(__spreadValues({}, input), {
|
|
6623
7134
|
transition,
|
|
6624
7135
|
register: false,
|
|
6625
7136
|
handle: currentValue(handle),
|
|
6626
7137
|
element: currentValue(element),
|
|
6627
|
-
target: currentValue(target)
|
|
6628
|
-
feedback
|
|
7138
|
+
target: currentValue(target)
|
|
6629
7139
|
}), manager);
|
|
6630
7140
|
});
|
|
6631
7141
|
const trackedSortable = useDeepSignal(sortable, shouldUpdateSynchronously);
|
|
@@ -6650,11 +7160,11 @@ function useSortable(input) {
|
|
|
6650
7160
|
useOnElementChange(handle, (handle2) => sortable.handle = handle2);
|
|
6651
7161
|
useOnElementChange(element, (element2) => sortable.element = element2);
|
|
6652
7162
|
useOnElementChange(target, (target2) => sortable.target = target2);
|
|
6653
|
-
useOnValueChange(disabled, () => sortable.disabled = disabled
|
|
6654
|
-
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);
|
|
6655
7165
|
useOnValueChange(collisionDetector, () => sortable.collisionDetector = collisionDetector);
|
|
6656
7166
|
useOnValueChange(collisionPriority, () => sortable.collisionPriority = collisionPriority);
|
|
6657
|
-
useOnValueChange(
|
|
7167
|
+
useOnValueChange(plugins, () => sortable.plugins = plugins, void 0, deepEqual);
|
|
6658
7168
|
useOnValueChange(transition, () => sortable.transition = transition, void 0, deepEqual);
|
|
6659
7169
|
useOnValueChange(modifiers, () => sortable.modifiers = modifiers, void 0, deepEqual);
|
|
6660
7170
|
useOnValueChange(input.alignment, () => sortable.alignment = input.alignment);
|
|
@@ -6697,157 +7207,23 @@ function shouldUpdateSynchronously(key, oldValue, newValue) {
|
|
|
6697
7207
|
return false;
|
|
6698
7208
|
}
|
|
6699
7209
|
//#endregion
|
|
6700
|
-
//#region
|
|
6701
|
-
var
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
configurable: true,
|
|
6710
|
-
writable: true,
|
|
6711
|
-
value
|
|
6712
|
-
}) : obj[key] = value;
|
|
6713
|
-
var __spreadValues = (a, b) => {
|
|
6714
|
-
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
6715
|
-
if (__getOwnPropSymbols) {
|
|
6716
|
-
for (var prop of __getOwnPropSymbols(b)) if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
6717
|
-
}
|
|
6718
|
-
return a;
|
|
6719
|
-
};
|
|
6720
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
6721
|
-
var _AxisModifier = class _AxisModifier extends Modifier {
|
|
6722
|
-
/**
|
|
6723
|
-
* Applies the axis restriction to the drag operation.
|
|
6724
|
-
*
|
|
6725
|
-
* @param operation - The current drag operation
|
|
6726
|
-
* @returns The modified transform with the axis restriction applied
|
|
6727
|
-
*/
|
|
6728
|
-
apply({ transform }) {
|
|
6729
|
-
if (!this.options) return transform;
|
|
6730
|
-
const { axis, value } = this.options;
|
|
6731
|
-
return __spreadProps(__spreadValues({}, transform), { [axis]: value });
|
|
6732
|
-
}
|
|
6733
|
-
};
|
|
6734
|
-
/**
|
|
6735
|
-
* Creates a configured instance of the AxisModifier.
|
|
6736
|
-
*
|
|
6737
|
-
* @param options - The axis restriction options
|
|
6738
|
-
* @returns A configured AxisModifier instance
|
|
6739
|
-
*/
|
|
6740
|
-
_AxisModifier.configure = configurator(_AxisModifier);
|
|
6741
|
-
var AxisModifier = _AxisModifier;
|
|
6742
|
-
var RestrictToVerticalAxis = AxisModifier.configure({
|
|
6743
|
-
axis: "x",
|
|
6744
|
-
value: 0
|
|
6745
|
-
});
|
|
6746
|
-
var RestrictToHorizontalAxis = AxisModifier.configure({
|
|
6747
|
-
axis: "y",
|
|
6748
|
-
value: 0
|
|
6749
|
-
});
|
|
6750
|
-
function restrictShapeToBoundingRectangle(shape, transform, boundingRect) {
|
|
6751
|
-
const value = __spreadValues({}, transform);
|
|
6752
|
-
if (shape.boundingRectangle.top + transform.y <= boundingRect.top) value.y = boundingRect.top - shape.boundingRectangle.top;
|
|
6753
|
-
else if (shape.boundingRectangle.bottom + transform.y >= boundingRect.top + boundingRect.height) value.y = boundingRect.top + boundingRect.height - shape.boundingRectangle.bottom;
|
|
6754
|
-
if (shape.boundingRectangle.left + transform.x <= boundingRect.left) value.x = boundingRect.left - shape.boundingRectangle.left;
|
|
6755
|
-
else if (shape.boundingRectangle.right + transform.x >= boundingRect.left + boundingRect.width) value.x = boundingRect.left + boundingRect.width - shape.boundingRectangle.right;
|
|
6756
|
-
return value;
|
|
6757
|
-
}
|
|
6758
|
-
var _SnapModifier = class _SnapModifier extends Modifier {
|
|
6759
|
-
/**
|
|
6760
|
-
* Applies the snap grid to the drag operation.
|
|
6761
|
-
*
|
|
6762
|
-
* @param operation - The current drag operation
|
|
6763
|
-
* @returns The modified transform with coordinates snapped to the grid
|
|
6764
|
-
*/
|
|
6765
|
-
apply({ transform }) {
|
|
6766
|
-
var _a;
|
|
6767
|
-
const { size = 20 } = (_a = this.options) != null ? _a : {};
|
|
6768
|
-
const x = typeof size === "number" ? size : size.x;
|
|
6769
|
-
const y = typeof size === "number" ? size : size.y;
|
|
6770
|
-
return __spreadProps(__spreadValues({}, transform), {
|
|
6771
|
-
x: Math.ceil(transform.x / x) * x,
|
|
6772
|
-
y: Math.ceil(transform.y / y) * y
|
|
6773
|
-
});
|
|
6774
|
-
}
|
|
6775
|
-
};
|
|
6776
|
-
/**
|
|
6777
|
-
* Creates a configured instance of the SnapModifier.
|
|
6778
|
-
*
|
|
6779
|
-
* @param options - The snap grid options
|
|
6780
|
-
* @returns A configured SnapModifier instance
|
|
6781
|
-
*/
|
|
6782
|
-
_SnapModifier.configure = configurator(_SnapModifier);
|
|
6783
|
-
//#endregion
|
|
6784
|
-
//#region node_modules/@dnd-kit/dom/modifiers.js
|
|
6785
|
-
var _RestrictToElement = class _RestrictToElement extends Modifier {
|
|
6786
|
-
constructor(manager, options) {
|
|
6787
|
-
super(manager, options);
|
|
6788
|
-
this.boundingRectangle = y(null);
|
|
6789
|
-
this.destroy = C(() => {
|
|
6790
|
-
if (!this.options) return;
|
|
6791
|
-
const { dragOperation } = manager;
|
|
6792
|
-
const { status } = dragOperation;
|
|
6793
|
-
if (status.initialized) {
|
|
6794
|
-
const { element } = this.options;
|
|
6795
|
-
const target = typeof element === "function" ? element(dragOperation) : element;
|
|
6796
|
-
if (!target) return;
|
|
6797
|
-
let timeout;
|
|
6798
|
-
const updateBoundingRectangle = () => {
|
|
6799
|
-
this.boundingRectangle.value = getBoundingRectangle(target);
|
|
6800
|
-
};
|
|
6801
|
-
const handleScroll = () => {
|
|
6802
|
-
if (timeout) return;
|
|
6803
|
-
timeout = setTimeout(() => {
|
|
6804
|
-
updateBoundingRectangle();
|
|
6805
|
-
timeout = void 0;
|
|
6806
|
-
}, 25);
|
|
6807
|
-
};
|
|
6808
|
-
const resizeObserver = new ResizeObserver(updateBoundingRectangle);
|
|
6809
|
-
resizeObserver.observe(target);
|
|
6810
|
-
document.addEventListener("scroll", handleScroll, {
|
|
6811
|
-
passive: true,
|
|
6812
|
-
capture: true
|
|
6813
|
-
});
|
|
6814
|
-
return () => {
|
|
6815
|
-
document.removeEventListener("scroll", handleScroll, { capture: true });
|
|
6816
|
-
resizeObserver.disconnect();
|
|
6817
|
-
this.boundingRectangle.value = null;
|
|
6818
|
-
};
|
|
6819
|
-
}
|
|
6820
|
-
});
|
|
6821
|
-
}
|
|
6822
|
-
apply(operation) {
|
|
6823
|
-
const { shape, transform } = operation;
|
|
6824
|
-
if (!shape) return transform;
|
|
6825
|
-
const boundingRectangle = this.boundingRectangle.value;
|
|
6826
|
-
if (!boundingRectangle) return transform;
|
|
6827
|
-
const { initial, current } = shape;
|
|
6828
|
-
const { height, width } = current.boundingRectangle;
|
|
6829
|
-
return restrictShapeToBoundingRectangle(new Rectangle(initial.center.x - width / 2, initial.center.y - height / 2, width, height), transform, boundingRectangle);
|
|
6830
|
-
}
|
|
7210
|
+
//#region lib/components/draggable/draggable.tsx
|
|
7211
|
+
var getSortableIndexes = (event) => {
|
|
7212
|
+
const oldIndex = event.operation?.source?.sortable?.initialIndex;
|
|
7213
|
+
const newIndex = event.operation?.source?.sortable?.index;
|
|
7214
|
+
if (typeof oldIndex !== "number" || typeof newIndex !== "number") return null;
|
|
7215
|
+
return {
|
|
7216
|
+
oldIndex,
|
|
7217
|
+
newIndex
|
|
7218
|
+
};
|
|
6831
7219
|
};
|
|
6832
|
-
_RestrictToElement.configure = configurator(_RestrictToElement);
|
|
6833
|
-
var RestrictToElement = _RestrictToElement;
|
|
6834
|
-
//#endregion
|
|
6835
|
-
//#region node_modules/@dnd-kit/helpers/dist/index.js
|
|
6836
|
-
function arrayMove(array, from, to) {
|
|
6837
|
-
if (from === to) return array;
|
|
6838
|
-
const newArray = array.slice();
|
|
6839
|
-
newArray.splice(to, 0, newArray.splice(from, 1)[0]);
|
|
6840
|
-
return newArray;
|
|
6841
|
-
}
|
|
6842
|
-
//#endregion
|
|
6843
|
-
//#region lib/components/draggable/draggable.jsx
|
|
6844
7220
|
var SortableItem = ({ id, index, disabled, children, axis }) => {
|
|
6845
7221
|
const [element, setElement] = useState(null);
|
|
6846
7222
|
const handleRef = useRef(null);
|
|
6847
|
-
|
|
7223
|
+
const modifiers = [RestrictToElement];
|
|
6848
7224
|
if (axis === "horizontal") modifiers.push(RestrictToHorizontalAxis);
|
|
6849
|
-
if (axis === "vertical") modifiers.push(RestrictToVerticalAxis);
|
|
6850
|
-
const { isDragSource
|
|
7225
|
+
else if (axis === "vertical") modifiers.push(RestrictToVerticalAxis);
|
|
7226
|
+
const { isDragSource } = useSortable({
|
|
6851
7227
|
id,
|
|
6852
7228
|
index,
|
|
6853
7229
|
element,
|
|
@@ -6863,21 +7239,14 @@ var SortableItem = ({ id, index, disabled, children, axis }) => {
|
|
|
6863
7239
|
});
|
|
6864
7240
|
return jsx("div", {
|
|
6865
7241
|
ref: setElement,
|
|
6866
|
-
children: children(handleRef, isDragSource,
|
|
7242
|
+
children: children(handleRef, isDragSource, isDragSource ? "dragging" : "idle")
|
|
6867
7243
|
});
|
|
6868
7244
|
};
|
|
6869
7245
|
/**
|
|
6870
7246
|
* A component that allows re-ordering items freely.
|
|
6871
7247
|
*
|
|
6872
7248
|
* @component
|
|
6873
|
-
* @param {
|
|
6874
|
-
* @param {Object<string, any>[]} props.items - Data to display in the list.
|
|
6875
|
-
* @param {Function} props.onChange - Function to run when the items change.
|
|
6876
|
-
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
6877
|
-
* @param {boolean} [props.noReorder] - If `true`, item reordering is disabled.
|
|
6878
|
-
* @param {Function} [props.onAfterItemRemove] - Function to run after an item is removed.
|
|
6879
|
-
* @param {'both' | 'horizontal' | 'vertical'} [props.axis='both'] - Which axis to allow dragging on.
|
|
6880
|
-
* @param {string} [props.className] - Classes to pass to the component.
|
|
7249
|
+
* @param {DraggableProps} props - Component props.
|
|
6881
7250
|
*
|
|
6882
7251
|
* @returns {JSX.Element} The Draggable component.
|
|
6883
7252
|
*
|
|
@@ -6887,12 +7256,11 @@ var SortableItem = ({ id, index, disabled, children, axis }) => {
|
|
|
6887
7256
|
* onChange={setItems}
|
|
6888
7257
|
* >
|
|
6889
7258
|
* {(item) => {
|
|
6890
|
-
* const { title
|
|
7259
|
+
* const { title } = item;
|
|
6891
7260
|
*
|
|
6892
7261
|
* return (
|
|
6893
7262
|
* <div>
|
|
6894
7263
|
* <DraggableHandle />
|
|
6895
|
-
*
|
|
6896
7264
|
* <span>{title}</span>
|
|
6897
7265
|
* </div>
|
|
6898
7266
|
* );
|
|
@@ -6903,13 +7271,13 @@ var Draggable = (props) => {
|
|
|
6903
7271
|
const { children, items, onChange, noReorder, axis = "both", className, onAfterItemRemove, hidden, ...rest } = props;
|
|
6904
7272
|
const normalizedItems = useMemo(() => Array.isArray(items) ? items : [], [items]);
|
|
6905
7273
|
if (typeof items === "undefined" || items === null || !Array.isArray(items)) console.warn(__("Draggable: 'items' are not an array or are undefined!", "eightshift-ui-components"));
|
|
6906
|
-
const [internalIds, setInternalIds] = useState(normalizedItems.map((_,
|
|
7274
|
+
const [internalIds, setInternalIds] = useState(normalizedItems.map((_, itemIndex) => itemIndex));
|
|
6907
7275
|
useEffect(() => {
|
|
6908
7276
|
setInternalIds((currentIds) => {
|
|
6909
7277
|
if (normalizedItems.length === currentIds.length) return currentIds;
|
|
6910
|
-
return normalizedItems.map((_,
|
|
7278
|
+
return normalizedItems.map((_, itemIndex) => itemIndex);
|
|
6911
7279
|
});
|
|
6912
|
-
}, [normalizedItems
|
|
7280
|
+
}, [normalizedItems]);
|
|
6913
7281
|
if (hidden) return null;
|
|
6914
7282
|
return jsx("div", {
|
|
6915
7283
|
className,
|
|
@@ -6917,16 +7285,15 @@ var Draggable = (props) => {
|
|
|
6917
7285
|
children: jsx(DragDropProvider, {
|
|
6918
7286
|
onDragEnd: (event) => {
|
|
6919
7287
|
if (event?.canceled) return;
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
const newIndex =
|
|
6923
|
-
onChange(arrayMove(normalizedItems, oldIndex, newIndex));
|
|
6924
|
-
setInternalIds(arrayMove(internalIds, oldIndex, newIndex));
|
|
7288
|
+
const sortableIndexes = getSortableIndexes(event);
|
|
7289
|
+
if (!sortableIndexes) return;
|
|
7290
|
+
const { oldIndex, newIndex } = sortableIndexes;
|
|
7291
|
+
onChange(arrayMove$1(normalizedItems, oldIndex, newIndex));
|
|
7292
|
+
setInternalIds(arrayMove$1(internalIds, oldIndex, newIndex));
|
|
6925
7293
|
},
|
|
6926
|
-
children: normalizedItems.map((item,
|
|
6927
|
-
id: `item-${internalIds?.[
|
|
6928
|
-
index,
|
|
6929
|
-
item,
|
|
7294
|
+
children: normalizedItems.map((item, itemIndex) => jsx(SortableItem, {
|
|
7295
|
+
id: `item-${internalIds?.[itemIndex] ?? itemIndex}`,
|
|
7296
|
+
index: itemIndex,
|
|
6930
7297
|
disabled: noReorder,
|
|
6931
7298
|
axis,
|
|
6932
7299
|
children: (handleRef, isDragSource, status) => jsx(DraggableContext.Provider, {
|
|
@@ -6939,21 +7306,21 @@ var Draggable = (props) => {
|
|
|
6939
7306
|
...item,
|
|
6940
7307
|
updateData: (newValue) => {
|
|
6941
7308
|
const updated = [...normalizedItems];
|
|
6942
|
-
updated[
|
|
6943
|
-
...updated[
|
|
7309
|
+
updated[itemIndex] = {
|
|
7310
|
+
...updated[itemIndex],
|
|
6944
7311
|
...newValue
|
|
6945
7312
|
};
|
|
6946
7313
|
onChange(updated);
|
|
6947
7314
|
},
|
|
6948
|
-
itemIndex
|
|
7315
|
+
itemIndex,
|
|
6949
7316
|
deleteItem: () => {
|
|
6950
|
-
onChange(
|
|
6951
|
-
setInternalIds(
|
|
7317
|
+
onChange(normalizedItems.filter((_, index) => index !== itemIndex));
|
|
7318
|
+
setInternalIds(internalIds.filter((_, index) => index !== itemIndex));
|
|
6952
7319
|
if (onAfterItemRemove) onAfterItemRemove(item);
|
|
6953
7320
|
}
|
|
6954
7321
|
})
|
|
6955
7322
|
})
|
|
6956
|
-
}, `item-${internalIds?.[
|
|
7323
|
+
}, `item-${internalIds?.[itemIndex] ?? itemIndex}`))
|
|
6957
7324
|
})
|
|
6958
7325
|
});
|
|
6959
7326
|
};
|