@eightshift/ui-components 6.3.0 → 7.0.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/Button-h6xF_WrP.js +225 -0
- package/dist/Dialog-i5VLQw1o.js +2488 -0
- package/dist/Disclosure-NYWFw9RJ.js +188 -0
- package/dist/FieldError-BWDbP5Db.js +213 -0
- package/dist/FocusScope-CgwbGOBB.js +746 -0
- package/dist/Form-DTMkbrQY.js +5 -0
- package/dist/Heading-Hol-wS_B.js +16 -0
- package/dist/Hidden-8TB37dpK.js +51 -0
- package/dist/Input-BURqyJXW.js +161 -0
- package/dist/Label-DFXXxMKY.js +17 -0
- package/dist/List-CMK5qsNF.js +506 -0
- package/dist/ListBox-B21SgugS.js +601 -0
- package/dist/NumberFormatter-m5VW6MTK.js +122 -0
- package/dist/OverlayArrow-BoloUPQM.js +573 -0
- package/dist/PortalProvider-DinZZCKX.js +14 -0
- package/dist/RSPContexts-C_z0bI8W.js +12 -0
- package/dist/RadioGroup-BwlGtCja.js +329 -0
- package/dist/SearchField-DR_I4_yn.js +765 -0
- package/dist/SelectionIndicator-31L6EI9F.js +13 -0
- package/dist/SelectionManager-B8lLv6Ue.js +2176 -0
- package/dist/Slider-DW1RuMVp.js +827 -0
- package/dist/Text-O6VBBDlP.js +16 -0
- package/dist/VisuallyHidden-CfsnJHZb.js +43 -0
- package/dist/animation-Bd2peown.js +62 -0
- package/dist/assets/style-admin.css +197 -200
- package/dist/assets/style-editor.css +197 -200
- package/dist/assets/style.css +197 -200
- package/dist/build-module-sxK3nxOK.js +855 -0
- package/dist/button-COTeluL8.js +524 -0
- package/dist/checkbox-D0AWkLhp.js +338 -0
- package/dist/clsx-BUU5J41u.js +16 -0
- package/dist/color-swatch-CBYsO_Zs.js +2572 -0
- package/dist/components/animated-visibility/animated-visibility.js +87 -111
- package/dist/components/base-control/base-control.js +73 -86
- package/dist/components/base-control/container.js +199 -227
- package/dist/components/breakpoint-preview/breakpoint-preview.js +162 -158
- package/dist/components/button/button.js +3 -580
- package/dist/components/checkbox/checkbox.js +2 -391
- package/dist/components/color-pickers/color-picker.js +172 -276
- package/dist/components/color-pickers/color-swatch.js +3 -7
- package/dist/components/color-pickers/gradient-editor.js +4 -552
- package/dist/components/color-pickers/solid-color-picker.js +3 -1710
- package/dist/components/component-toggle/component-toggle.js +107 -160
- package/dist/components/container-panel/container-panel.js +94 -151
- package/dist/components/draggable/draggable-context.js +4 -4
- package/dist/components/draggable/draggable-handle.js +27 -43
- package/dist/components/draggable/draggable.js +3 -7638
- package/dist/components/draggable-list/draggable-list-context.js +4 -4
- package/dist/components/draggable-list/draggable-list-item.js +63 -80
- package/dist/components/draggable-list/draggable-list.js +115 -142
- package/dist/components/expandable/expandable.js +105 -407
- package/dist/components/index.js +30 -106
- package/dist/components/input-field/input-field.js +2 -326
- package/dist/components/item-collection/item-collection.js +50 -56
- package/dist/components/layout/hstack.js +27 -29
- package/dist/components/layout/vstack.js +27 -29
- package/dist/components/link-input/link-input.js +3 -1943
- package/dist/components/matrix-align/matrix-align.js +127 -161
- package/dist/components/menu/menu.js +253 -356
- package/dist/components/modal/modal.js +3 -399
- package/dist/components/notice/notice.js +99 -139
- package/dist/components/number-picker/number-picker.js +3 -344
- package/dist/components/option-select/option-select.js +226 -404
- package/dist/components/options-panel/options-panel.js +138 -175
- package/dist/components/placeholders/file-picker-shell.js +91 -141
- package/dist/components/placeholders/file-placeholder.js +41 -53
- package/dist/components/placeholders/image-placeholder.js +65 -96
- package/dist/components/placeholders/media-placeholder.js +65 -68
- package/dist/components/popover/popover.js +147 -221
- package/dist/components/portal-provider/portal-provider.js +23 -21
- package/dist/components/radio/radio.js +246 -294
- package/dist/components/repeater/repeater-context.js +4 -4
- package/dist/components/repeater/repeater-item.js +95 -114
- package/dist/components/repeater/repeater.js +221 -278
- package/dist/components/responsive/mini-responsive.js +403 -495
- package/dist/components/responsive/responsive-legacy.js +271 -336
- package/dist/components/responsive/responsive.js +445 -562
- package/dist/components/responsive-preview/responsive-preview.js +94 -117
- package/dist/components/rich-label/rich-label.js +80 -75
- package/dist/components/select/async-multi-select.js +360 -589
- package/dist/components/select/async-select.js +284 -492
- package/dist/components/select/multi-select.js +340 -552
- package/dist/components/select/shared.js +3 -17
- package/dist/components/select/single-select.js +278 -475
- package/dist/components/select/styles.js +84 -0
- package/dist/components/slider/column-config-slider.js +170 -301
- package/dist/components/slider/slider.js +258 -405
- package/dist/components/slider/utils.js +77 -121
- package/dist/components/smart-image/image-analysis-worker.js +128 -0
- package/dist/components/smart-image/smart-image.js +3 -205
- package/dist/components/smart-image/worker-inline.js +4 -4
- package/dist/components/spacer/spacer.js +80 -94
- package/dist/components/tabs/tabs.js +3 -1051
- package/dist/components/toggle/switch.js +2 -295
- package/dist/components/toggle/toggle.js +54 -64
- package/dist/components/toggle-button/toggle-button.js +2 -451
- package/dist/components/tooltip/tooltip.js +2 -535
- package/dist/context-C-XNeJ_l.js +93 -0
- package/dist/debounce-throttle-DXxSAKpq.js +120 -0
- package/dist/dist-DIK9pFxO.js +55 -0
- package/dist/draggable-CYQyD9gG.js +6961 -0
- package/dist/es-dash-HqXWZZ3_.js +303 -0
- package/dist/filterDOMProps-_2_3GD-K.js +69 -0
- package/dist/general-D-7dwhuF.js +4277 -0
- package/dist/gradient-editor-DbH8NU2p.js +604 -0
- package/dist/icons/block-icon.js +34 -39
- package/dist/icons/generated-icon-loaders.js +759 -0
- package/dist/icons/generic-color-swatch.js +81 -111
- package/dist/icons/icon.js +67 -0
- package/dist/icons/icons.js +218 -3656
- package/dist/icons/index.js +756 -10
- package/dist/icons/internal.js +758 -0
- package/dist/icons/jsx-svg.js +2 -94
- package/dist/icons/spinner.js +16 -18
- package/dist/icons/ui-icons/a11y-warning.js +34 -0
- package/dist/icons/ui-icons/a11y.js +29 -0
- package/dist/icons/ui-icons/accelerometer.js +51 -0
- package/dist/icons/ui-icons/activity-log.js +53 -0
- package/dist/icons/ui-icons/add.js +20 -0
- package/dist/icons/ui-icons/alert.js +31 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt.js +37 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt2.js +36 -0
- package/dist/icons/ui-icons/align-horizontal-vertical.js +34 -0
- package/dist/icons/ui-icons/alt-text-generic-alt.js +19 -0
- package/dist/icons/ui-icons/alt-text-generic.js +25 -0
- package/dist/icons/ui-icons/alt-text.js +36 -0
- package/dist/icons/ui-icons/anchor-page.js +44 -0
- package/dist/icons/ui-icons/anchor.js +28 -0
- package/dist/icons/ui-icons/angle.js +24 -0
- package/dist/icons/ui-icons/animation-file.js +66 -0
- package/dist/icons/ui-icons/animation-generic.js +36 -0
- package/dist/icons/ui-icons/animation-list-generic.js +41 -0
- package/dist/icons/ui-icons/animation-settings-generic.js +41 -0
- package/dist/icons/ui-icons/animation.js +55 -0
- package/dist/icons/ui-icons/archive-file.js +24 -0
- package/dist/icons/ui-icons/archive.js +39 -0
- package/dist/icons/ui-icons/aria-label.js +42 -0
- package/dist/icons/ui-icons/arrow-down-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-down-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-down-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-down-square.js +28 -0
- package/dist/icons/ui-icons/arrow-down.js +20 -0
- package/dist/icons/ui-icons/arrow-left-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-left-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-left-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-left-square.js +28 -0
- package/dist/icons/ui-icons/arrow-left.js +20 -0
- package/dist/icons/ui-icons/arrow-right-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-right-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-right-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-right-square.js +28 -0
- package/dist/icons/ui-icons/arrow-right.js +20 -0
- package/dist/icons/ui-icons/arrow-up-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-up-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-up-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-up-square.js +28 -0
- package/dist/icons/ui-icons/arrow-up.js +20 -0
- package/dist/icons/ui-icons/arrows-down.js +38 -0
- package/dist/icons/ui-icons/arrows-horizontal.js +20 -0
- package/dist/icons/ui-icons/arrows-left-diagonal.js +20 -0
- package/dist/icons/ui-icons/arrows-left.js +38 -0
- package/dist/icons/ui-icons/arrows-right-diagonal.js +20 -0
- package/dist/icons/ui-icons/arrows-right.js +38 -0
- package/dist/icons/ui-icons/arrows-up.js +38 -0
- package/dist/icons/ui-icons/arrows-vertical.js +20 -0
- package/dist/icons/ui-icons/aspect-ratio-auto.js +38 -0
- package/dist/icons/ui-icons/aspect-ratio-nine-sixteen.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-sixteen-nine.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-square.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-three-two.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-twenty-one-nine.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio.js +27 -0
- package/dist/icons/ui-icons/attachment.js +19 -0
- package/dist/icons/ui-icons/auto-close.js +26 -0
- package/dist/icons/ui-icons/auto-pause-scroll.js +39 -0
- package/dist/icons/ui-icons/auto-pause.js +26 -0
- package/dist/icons/ui-icons/automatic-alt.js +19 -0
- package/dist/icons/ui-icons/automatic.js +20 -0
- package/dist/icons/ui-icons/autoplay-alt.js +34 -0
- package/dist/icons/ui-icons/autoplay-alt2.js +23 -0
- package/dist/icons/ui-icons/autoplay.js +36 -0
- package/dist/icons/ui-icons/award.js +39 -0
- package/dist/icons/ui-icons/background-blur.js +66 -0
- package/dist/icons/ui-icons/background-color-swatch.js +48 -0
- package/dist/icons/ui-icons/background-image.js +41 -0
- package/dist/icons/ui-icons/background-repeat.js +95 -0
- package/dist/icons/ui-icons/background-type-alt.js +38 -0
- package/dist/icons/ui-icons/background-type-alt2.js +27 -0
- package/dist/icons/ui-icons/background-type.js +27 -0
- package/dist/icons/ui-icons/block-parts.js +54 -0
- package/dist/icons/ui-icons/bold.js +21 -0
- package/dist/icons/ui-icons/book.js +40 -0
- package/dist/icons/ui-icons/bookmark.js +18 -0
- package/dist/icons/ui-icons/boolean-exclude.js +24 -0
- package/dist/icons/ui-icons/boolean-intersect.js +31 -0
- package/dist/icons/ui-icons/boolean-subtract.js +27 -0
- package/dist/icons/ui-icons/boolean-union.js +33 -0
- package/dist/icons/ui-icons/border-color.js +79 -0
- package/dist/icons/ui-icons/border.js +60 -0
- package/dist/icons/ui-icons/bot-deny.js +61 -0
- package/dist/icons/ui-icons/bot.js +47 -0
- package/dist/icons/ui-icons/box.js +35 -0
- package/dist/icons/ui-icons/brain.js +20 -0
- package/dist/icons/ui-icons/branch-fork.js +46 -0
- package/dist/icons/ui-icons/branch.js +46 -0
- package/dist/icons/ui-icons/briefcase.js +26 -0
- package/dist/icons/ui-icons/browser.js +60 -0
- package/dist/icons/ui-icons/button-disabled.js +30 -0
- package/dist/icons/ui-icons/button-filled.js +19 -0
- package/dist/icons/ui-icons/button-ghost.js +28 -0
- package/dist/icons/ui-icons/button-outline.js +27 -0
- package/dist/icons/ui-icons/calculator.js +139 -0
- package/dist/icons/ui-icons/calendar-add.js +51 -0
- package/dist/icons/ui-icons/calendar-download.js +62 -0
- package/dist/icons/ui-icons/calendar-remove.js +51 -0
- package/dist/icons/ui-icons/calendar.js +34 -0
- package/dist/icons/ui-icons/caption-generic.js +25 -0
- package/dist/icons/ui-icons/card-featured.js +28 -0
- package/dist/icons/ui-icons/caret-down-fill.js +19 -0
- package/dist/icons/ui-icons/caret-down.js +19 -0
- package/dist/icons/ui-icons/caret-left-fill.js +19 -0
- package/dist/icons/ui-icons/caret-left.js +19 -0
- package/dist/icons/ui-icons/caret-right-fill.js +19 -0
- package/dist/icons/ui-icons/caret-right.js +19 -0
- package/dist/icons/ui-icons/caret-up-fill.js +19 -0
- package/dist/icons/ui-icons/caret-up.js +19 -0
- package/dist/icons/ui-icons/center-point.js +25 -0
- package/dist/icons/ui-icons/chat-bubble-alt.js +25 -0
- package/dist/icons/ui-icons/chat-bubble.js +19 -0
- package/dist/icons/ui-icons/chat.js +25 -0
- package/dist/icons/ui-icons/check-circle-fill-transparent.js +24 -0
- package/dist/icons/ui-icons/check-circle-fill.js +17 -0
- package/dist/icons/ui-icons/check-circle.js +27 -0
- package/dist/icons/ui-icons/check-square.js +28 -0
- package/dist/icons/ui-icons/check.js +20 -0
- package/dist/icons/ui-icons/checks-circle.js +26 -0
- package/dist/icons/ui-icons/checks.js +26 -0
- package/dist/icons/ui-icons/chevron-down.js +20 -0
- package/dist/icons/ui-icons/chevron-left.js +20 -0
- package/dist/icons/ui-icons/chevron-right.js +20 -0
- package/dist/icons/ui-icons/chevron-up.js +20 -0
- package/dist/icons/ui-icons/clear-alt.js +25 -0
- package/dist/icons/ui-icons/clear.js +20 -0
- package/dist/icons/ui-icons/clipboard-plain.js +35 -0
- package/dist/icons/ui-icons/clipboard.js +43 -0
- package/dist/icons/ui-icons/clock.js +26 -0
- package/dist/icons/ui-icons/closed-captions.js +27 -0
- package/dist/icons/ui-icons/code-variable.js +20 -0
- package/dist/icons/ui-icons/code.js +20 -0
- package/dist/icons/ui-icons/color-alt.js +40 -0
- package/dist/icons/ui-icons/color-fill-swatch.js +61 -0
- package/dist/icons/ui-icons/color-picker-fill.js +42 -0
- package/dist/icons/ui-icons/color-picker-list-marker.js +41 -0
- package/dist/icons/ui-icons/color-picker-text-highlight.js +19 -0
- package/dist/icons/ui-icons/color-picker-text.js +20 -0
- package/dist/icons/ui-icons/color-select.js +33 -0
- package/dist/icons/ui-icons/color.js +22 -0
- package/dist/icons/ui-icons/column-gutters-lr.js +54 -0
- package/dist/icons/ui-icons/columns.js +42 -0
- package/dist/icons/ui-icons/columns3366.js +30 -0
- package/dist/icons/ui-icons/columns6633.js +30 -0
- package/dist/icons/ui-icons/component-generic.js +27 -0
- package/dist/icons/ui-icons/component-options.js +36 -0
- package/dist/icons/ui-icons/condition-h.js +20 -0
- package/dist/icons/ui-icons/condition-v.js +20 -0
- package/dist/icons/ui-icons/conditional-visibility.js +26 -0
- package/dist/icons/ui-icons/container-height.js +68 -0
- package/dist/icons/ui-icons/container-spacing-h.js +41 -0
- package/dist/icons/ui-icons/container-spacing.js +41 -0
- package/dist/icons/ui-icons/container-width.js +68 -0
- package/dist/icons/ui-icons/content-bottom-left.js +31 -0
- package/dist/icons/ui-icons/content-bottom-right.js +31 -0
- package/dist/icons/ui-icons/content-center.js +31 -0
- package/dist/icons/ui-icons/content-top-left.js +31 -0
- package/dist/icons/ui-icons/content-top-right.js +31 -0
- package/dist/icons/ui-icons/contrast-alt.js +27 -0
- package/dist/icons/ui-icons/contrast.js +26 -0
- package/dist/icons/ui-icons/cookie-alt.js +124 -0
- package/dist/icons/ui-icons/cookie.js +76 -0
- package/dist/icons/ui-icons/copy.js +26 -0
- package/dist/icons/ui-icons/currency.js +48 -0
- package/dist/icons/ui-icons/current-page.js +42 -0
- package/dist/icons/ui-icons/cursor-disabled.js +35 -0
- package/dist/icons/ui-icons/cursor-move.js +20 -0
- package/dist/icons/ui-icons/dark-mode.js +20 -0
- package/dist/icons/ui-icons/data.js +33 -0
- package/dist/icons/ui-icons/date-time.js +67 -0
- package/dist/icons/ui-icons/defer.js +26 -0
- package/dist/icons/ui-icons/description-link.js +40 -0
- package/dist/icons/ui-icons/design.js +48 -0
- package/dist/icons/ui-icons/dice.js +59 -0
- package/dist/icons/ui-icons/divider-bottom.js +23 -0
- package/dist/icons/ui-icons/divider-side.js +53 -0
- package/dist/icons/ui-icons/divider-status.js +53 -0
- package/dist/icons/ui-icons/divider-top.js +23 -0
- package/dist/icons/ui-icons/divider.js +23 -0
- package/dist/icons/ui-icons/door-in.js +32 -0
- package/dist/icons/ui-icons/door-out.js +32 -0
- package/dist/icons/ui-icons/door.js +27 -0
- package/dist/icons/ui-icons/download.js +20 -0
- package/dist/icons/ui-icons/dropdown-caret-alt.js +17 -0
- package/dist/icons/ui-icons/dropdown-caret.js +20 -0
- package/dist/icons/ui-icons/dropdown-close.js +52 -0
- package/dist/icons/ui-icons/dropdown-open.js +38 -0
- package/dist/icons/ui-icons/dropdown.js +38 -0
- package/dist/icons/ui-icons/dummy-spacer.js +17 -0
- package/dist/icons/ui-icons/edit-options.js +32 -0
- package/dist/icons/ui-icons/edit.js +22 -0
- package/dist/icons/ui-icons/email-remove.js +42 -0
- package/dist/icons/ui-icons/email.js +28 -0
- package/dist/icons/ui-icons/embed.js +28 -0
- package/dist/icons/ui-icons/empty-circle.js +23 -0
- package/dist/icons/ui-icons/empty-rect.js +25 -0
- package/dist/icons/ui-icons/equal-columns.js +25 -0
- package/dist/icons/ui-icons/equal-rows.js +25 -0
- package/dist/icons/ui-icons/equals.js +20 -0
- package/dist/icons/ui-icons/error-circle-fill-transparent.js +23 -0
- package/dist/icons/ui-icons/error-circle-fill.js +17 -0
- package/dist/icons/ui-icons/error-circle.js +24 -0
- package/dist/icons/ui-icons/exclude-item-alt.js +38 -0
- package/dist/icons/ui-icons/exclude-item.js +42 -0
- package/dist/icons/ui-icons/exclude.js +29 -0
- package/dist/icons/ui-icons/expand-xl.js +20 -0
- package/dist/icons/ui-icons/expand.js +20 -0
- package/dist/icons/ui-icons/experiment.js +33 -0
- package/dist/icons/ui-icons/external-link.js +25 -0
- package/dist/icons/ui-icons/extract-alt.js +25 -0
- package/dist/icons/ui-icons/extract.js +25 -0
- package/dist/icons/ui-icons/eyedropper.js +36 -0
- package/dist/icons/ui-icons/fast-forward.js +26 -0
- package/dist/icons/ui-icons/fast-reverse.js +26 -0
- package/dist/icons/ui-icons/field-after-text.js +54 -0
- package/dist/icons/ui-icons/field-before-text.js +46 -0
- package/dist/icons/ui-icons/field-disabled.js +35 -0
- package/dist/icons/ui-icons/field-help.js +46 -0
- package/dist/icons/ui-icons/field-label.js +38 -0
- package/dist/icons/ui-icons/field-name.js +45 -0
- package/dist/icons/ui-icons/field-placeholder.js +49 -0
- package/dist/icons/ui-icons/field-readonly.js +36 -0
- package/dist/icons/ui-icons/field-required.js +37 -0
- package/dist/icons/ui-icons/field-type.js +36 -0
- package/dist/icons/ui-icons/field-value.js +46 -0
- package/dist/icons/ui-icons/field-width.js +27 -0
- package/dist/icons/ui-icons/file-download.js +33 -0
- package/dist/icons/ui-icons/file-error.js +25 -0
- package/dist/icons/ui-icons/file-metadata.js +41 -0
- package/dist/icons/ui-icons/file-pdf.js +34 -0
- package/dist/icons/ui-icons/file-size-max.js +33 -0
- package/dist/icons/ui-icons/file-size-min.js +33 -0
- package/dist/icons/ui-icons/file-size.js +34 -0
- package/dist/icons/ui-icons/file-type.js +42 -0
- package/dist/icons/ui-icons/file-upload.js +33 -0
- package/dist/icons/ui-icons/file.js +24 -0
- package/dist/icons/ui-icons/files.js +34 -0
- package/dist/icons/ui-icons/fill-color.js +49 -0
- package/dist/icons/ui-icons/filter-alt.js +24 -0
- package/dist/icons/ui-icons/filter.js +20 -0
- package/dist/icons/ui-icons/flag-alt.js +24 -0
- package/dist/icons/ui-icons/flag.js +24 -0
- package/dist/icons/ui-icons/flip-h.js +27 -0
- package/dist/icons/ui-icons/flip-v.js +27 -0
- package/dist/icons/ui-icons/focus.js +21 -0
- package/dist/icons/ui-icons/folder-add.js +22 -0
- package/dist/icons/ui-icons/folder-open-solid.js +17 -0
- package/dist/icons/ui-icons/folder-open.js +19 -0
- package/dist/icons/ui-icons/folder-solid.js +17 -0
- package/dist/icons/ui-icons/folder-top-level.js +22 -0
- package/dist/icons/ui-icons/folder.js +19 -0
- package/dist/icons/ui-icons/font-family.js +24 -0
- package/dist/icons/ui-icons/footer.js +23 -0
- package/dist/icons/ui-icons/form-alt.js +71 -0
- package/dist/icons/ui-icons/form.js +53 -0
- package/dist/icons/ui-icons/four-columns.js +38 -0
- package/dist/icons/ui-icons/frame.js +33 -0
- package/dist/icons/ui-icons/full-max-shield.js +26 -0
- package/dist/icons/ui-icons/full-max-text.js +20 -0
- package/dist/icons/ui-icons/full-width-image.js +35 -0
- package/dist/icons/ui-icons/gears-fill.js +19 -0
- package/dist/icons/ui-icons/gears.js +38 -0
- package/dist/icons/ui-icons/generic-color-swatch.js +6 -0
- package/dist/icons/ui-icons/generic-shapes-alt.js +33 -0
- package/dist/icons/ui-icons/generic-shapes.js +38 -0
- package/dist/icons/ui-icons/globe-anchor.js +55 -0
- package/dist/icons/ui-icons/globe-hash.js +40 -0
- package/dist/icons/ui-icons/globe.js +37 -0
- package/dist/icons/ui-icons/google-tag-manager.js +36 -0
- package/dist/icons/ui-icons/gradient-repeat.js +41 -0
- package/dist/icons/ui-icons/gradient-stop.js +36 -0
- package/dist/icons/ui-icons/gradient.js +54 -0
- package/dist/icons/ui-icons/grid-alt.js +19 -0
- package/dist/icons/ui-icons/grid-auto-cols.js +46 -0
- package/dist/icons/ui-icons/grid-auto-rows.js +41 -0
- package/dist/icons/ui-icons/grid-col.js +22 -0
- package/dist/icons/ui-icons/grid-height.js +22 -0
- package/dist/icons/ui-icons/grid-list-toggle.js +48 -0
- package/dist/icons/ui-icons/grid-manual.js +18 -0
- package/dist/icons/ui-icons/grid-row.js +22 -0
- package/dist/icons/ui-icons/grid-width.js +22 -0
- package/dist/icons/ui-icons/group.js +33 -0
- package/dist/icons/ui-icons/gutter.js +28 -0
- package/dist/icons/ui-icons/gyroscope.js +53 -0
- package/dist/icons/ui-icons/h1.js +28 -0
- package/dist/icons/ui-icons/h2.js +28 -0
- package/dist/icons/ui-icons/h3.js +28 -0
- package/dist/icons/ui-icons/h4.js +28 -0
- package/dist/icons/ui-icons/h5.js +28 -0
- package/dist/icons/ui-icons/h6.js +28 -0
- package/dist/icons/ui-icons/hamburger-menu.js +19 -0
- package/dist/icons/ui-icons/hard-drive.js +35 -0
- package/dist/icons/ui-icons/header.js +23 -0
- package/dist/icons/ui-icons/heading-level-alt.js +28 -0
- package/dist/icons/ui-icons/heading-level.js +28 -0
- package/dist/icons/ui-icons/heading.js +20 -0
- package/dist/icons/ui-icons/heart-fill-transparent.js +19 -0
- package/dist/icons/ui-icons/heart-fill.js +18 -0
- package/dist/icons/ui-icons/heart.js +18 -0
- package/dist/icons/ui-icons/height.js +30 -0
- package/dist/icons/ui-icons/help-fill.js +19 -0
- package/dist/icons/ui-icons/help.js +38 -0
- package/dist/icons/ui-icons/hide.js +29 -0
- package/dist/icons/ui-icons/highlighted-checkmark.js +24 -0
- package/dist/icons/ui-icons/highlighted-exclamation-mark.js +33 -0
- package/dist/icons/ui-icons/history.js +26 -0
- package/dist/icons/ui-icons/horizontal-align-alt.js +27 -0
- package/dist/icons/ui-icons/horizontal-align-around.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-between-alt.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-between.js +46 -0
- package/dist/icons/ui-icons/horizontal-align-center.js +41 -0
- package/dist/icons/ui-icons/horizontal-align-evenly.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-left.js +44 -0
- package/dist/icons/ui-icons/horizontal-align-right.js +48 -0
- package/dist/icons/ui-icons/horizontal-align-stretch.js +37 -0
- package/dist/icons/ui-icons/horizontal-align.js +35 -0
- package/dist/icons/ui-icons/hover-background-glow.js +61 -0
- package/dist/icons/ui-icons/hover-background-type.js +34 -0
- package/dist/icons/ui-icons/hover-invert-object.js +42 -0
- package/dist/icons/ui-icons/hover-invert-text.js +32 -0
- package/dist/icons/ui-icons/hover-rotate.js +20 -0
- package/dist/icons/ui-icons/hover-zoom.js +25 -0
- package/dist/icons/ui-icons/hyphenate-alt.js +20 -0
- package/dist/icons/ui-icons/hyphenate-alt2.js +20 -0
- package/dist/icons/ui-icons/hyphenate.js +25 -0
- package/dist/icons/ui-icons/icon-generic.js +23 -0
- package/dist/icons/ui-icons/id-card.js +45 -0
- package/dist/icons/ui-icons/id.js +28 -0
- package/dist/icons/ui-icons/image-blur.js +50 -0
- package/dist/icons/ui-icons/image-caption.js +36 -0
- package/dist/icons/ui-icons/image-error.js +36 -0
- package/dist/icons/ui-icons/image-file.js +40 -0
- package/dist/icons/ui-icons/image-lazy-load.js +52 -0
- package/dist/icons/ui-icons/image-opacity.js +31 -0
- package/dist/icons/ui-icons/image-overlay-alt.js +93 -0
- package/dist/icons/ui-icons/image-overlay-alt2.js +93 -0
- package/dist/icons/ui-icons/image-overlay.js +92 -0
- package/dist/icons/ui-icons/image-remove.js +46 -0
- package/dist/icons/ui-icons/image.js +25 -0
- package/dist/icons/ui-icons/index.js +753 -0
- package/dist/icons/ui-icons/info-circle-fill-transparent.js +21 -0
- package/dist/icons/ui-icons/info-circle-fill.js +17 -0
- package/dist/icons/ui-icons/info-circle.js +24 -0
- package/dist/icons/ui-icons/info.js +17 -0
- package/dist/icons/ui-icons/inherit.js +41 -0
- package/dist/icons/ui-icons/inline-gradient-format.js +62 -0
- package/dist/icons/ui-icons/input-field.js +27 -0
- package/dist/icons/ui-icons/italic.js +20 -0
- package/dist/icons/ui-icons/item-limit.js +35 -0
- package/dist/icons/ui-icons/item-select.js +33 -0
- package/dist/icons/ui-icons/item-wrap.js +60 -0
- package/dist/icons/ui-icons/items-per-page.js +48 -0
- package/dist/icons/ui-icons/items-per-row.js +45 -0
- package/dist/icons/ui-icons/key.js +25 -0
- package/dist/icons/ui-icons/keyboard.js +19 -0
- package/dist/icons/ui-icons/large.js +24 -0
- package/dist/icons/ui-icons/latest-posts.js +44 -0
- package/dist/icons/ui-icons/layer-off.js +20 -0
- package/dist/icons/ui-icons/layer.js +19 -0
- package/dist/icons/ui-icons/layers.js +33 -0
- package/dist/icons/ui-icons/layout-alt.js +19 -0
- package/dist/icons/ui-icons/layout-alt2.js +23 -0
- package/dist/icons/ui-icons/layout-alt3.js +19 -0
- package/dist/icons/ui-icons/layout-alt4.js +19 -0
- package/dist/icons/ui-icons/layout-bento-box.js +19 -0
- package/dist/icons/ui-icons/layout-masonry.js +79 -0
- package/dist/icons/ui-icons/layout.js +43 -0
- package/dist/icons/ui-icons/left-panel-alt.js +25 -0
- package/dist/icons/ui-icons/left-panel.js +22 -0
- package/dist/icons/ui-icons/light-bulb-alt.js +30 -0
- package/dist/icons/ui-icons/light-bulb.js +33 -0
- package/dist/icons/ui-icons/light-mode.js +26 -0
- package/dist/icons/ui-icons/limit-width.js +26 -0
- package/dist/icons/ui-icons/line-break-alt-off.js +26 -0
- package/dist/icons/ui-icons/line-break-alt.js +25 -0
- package/dist/icons/ui-icons/line-break-off-alt.js +35 -0
- package/dist/icons/ui-icons/line-break-off.js +41 -0
- package/dist/icons/ui-icons/line-break.js +29 -0
- package/dist/icons/ui-icons/line-breaks-hyphenation.js +36 -0
- package/dist/icons/ui-icons/link-add.js +41 -0
- package/dist/icons/ui-icons/link-nav.js +59 -0
- package/dist/icons/ui-icons/link-remove.js +41 -0
- package/dist/icons/ui-icons/link.js +19 -0
- package/dist/icons/ui-icons/list-indent.js +26 -0
- package/dist/icons/ui-icons/list-ordered.js +43 -0
- package/dist/icons/ui-icons/list-outdent.js +26 -0
- package/dist/icons/ui-icons/list-unordered.js +43 -0
- package/dist/icons/ui-icons/loader-alt.js +19 -0
- package/dist/icons/ui-icons/loader.js +19 -0
- package/dist/icons/ui-icons/location-add.js +44 -0
- package/dist/icons/ui-icons/location-allow.js +44 -0
- package/dist/icons/ui-icons/location-deny.js +44 -0
- package/dist/icons/ui-icons/location-settings.js +36 -0
- package/dist/icons/ui-icons/location.js +26 -0
- package/dist/icons/ui-icons/lock.js +44 -0
- package/dist/icons/ui-icons/loop-mode.js +20 -0
- package/dist/icons/ui-icons/magic-alt-fill-transparent.js +20 -0
- package/dist/icons/ui-icons/magic-alt-fill.js +19 -0
- package/dist/icons/ui-icons/magic-alt.js +19 -0
- package/dist/icons/ui-icons/magic-fill-transparent.js +20 -0
- package/dist/icons/ui-icons/magic-fill.js +19 -0
- package/dist/icons/ui-icons/magic.js +19 -0
- package/dist/icons/ui-icons/map-layer-json.js +35 -0
- package/dist/icons/ui-icons/map-layer-raster.js +121 -0
- package/dist/icons/ui-icons/map-layer-vector.js +81 -0
- package/dist/icons/ui-icons/map-layer.js +26 -0
- package/dist/icons/ui-icons/map-pin.js +41 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-active.js +23 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-inactive.js +21 -0
- package/dist/icons/ui-icons/media.js +49 -0
- package/dist/icons/ui-icons/medium.js +24 -0
- package/dist/icons/ui-icons/menu-item-check.js +20 -0
- package/dist/icons/ui-icons/menu-item-circle.js +19 -0
- package/dist/icons/ui-icons/microphone.js +23 -0
- package/dist/icons/ui-icons/migration-alt-v.js +20 -0
- package/dist/icons/ui-icons/migration-alt.js +20 -0
- package/dist/icons/ui-icons/migration.js +26 -0
- package/dist/icons/ui-icons/module.js +24 -0
- package/dist/icons/ui-icons/money-paper.js +58 -0
- package/dist/icons/ui-icons/more-h-circle.js +40 -0
- package/dist/icons/ui-icons/more-h.js +33 -0
- package/dist/icons/ui-icons/more-v-circle.js +44 -0
- package/dist/icons/ui-icons/more-v.js +36 -0
- package/dist/icons/ui-icons/mouse-cursor.js +20 -0
- package/dist/icons/ui-icons/mouse-wheel.js +27 -0
- package/dist/icons/ui-icons/multi-item-left-inset-mobile.js +58 -0
- package/dist/icons/ui-icons/multi-item-left-inset.js +39 -0
- package/dist/icons/ui-icons/multi-item-right-inset-mobile.js +55 -0
- package/dist/icons/ui-icons/multi-item-right-inset.js +36 -0
- package/dist/icons/ui-icons/multiple.js +34 -0
- package/dist/icons/ui-icons/music-note.js +40 -0
- package/dist/icons/ui-icons/mute-centered.js +20 -0
- package/dist/icons/ui-icons/mute.js +20 -0
- package/dist/icons/ui-icons/narrow-bottom.js +49 -0
- package/dist/icons/ui-icons/narrow-left.js +49 -0
- package/dist/icons/ui-icons/narrow-right.js +49 -0
- package/dist/icons/ui-icons/narrow-top.js +49 -0
- package/dist/icons/ui-icons/navigation-buttons.js +39 -0
- package/dist/icons/ui-icons/new-tab.js +27 -0
- package/dist/icons/ui-icons/newspaper.js +45 -0
- package/dist/icons/ui-icons/none.js +25 -0
- package/dist/icons/ui-icons/notebook.js +44 -0
- package/dist/icons/ui-icons/num0-circle-alt.js +24 -0
- package/dist/icons/ui-icons/num0-circle.js +24 -0
- package/dist/icons/ui-icons/num0-square-alt.js +26 -0
- package/dist/icons/ui-icons/num0-square.js +26 -0
- package/dist/icons/ui-icons/num1-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num1-circle.js +26 -0
- package/dist/icons/ui-icons/num1-square-alt.js +28 -0
- package/dist/icons/ui-icons/num1-square.js +28 -0
- package/dist/icons/ui-icons/num2-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num2-circle.js +26 -0
- package/dist/icons/ui-icons/num2-square-alt.js +28 -0
- package/dist/icons/ui-icons/num2-square.js +28 -0
- package/dist/icons/ui-icons/num3-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num3-circle.js +26 -0
- package/dist/icons/ui-icons/num3-square-alt.js +28 -0
- package/dist/icons/ui-icons/num3-square.js +28 -0
- package/dist/icons/ui-icons/num4-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num4-circle.js +26 -0
- package/dist/icons/ui-icons/num4-square-alt.js +28 -0
- package/dist/icons/ui-icons/num4-square.js +28 -0
- package/dist/icons/ui-icons/num5-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num5-circle.js +26 -0
- package/dist/icons/ui-icons/num5-square-alt.js +28 -0
- package/dist/icons/ui-icons/num5-square.js +28 -0
- package/dist/icons/ui-icons/num6-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num6-circle.js +26 -0
- package/dist/icons/ui-icons/num6-square-alt.js +28 -0
- package/dist/icons/ui-icons/num6-square.js +28 -0
- package/dist/icons/ui-icons/num7-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num7-circle.js +26 -0
- package/dist/icons/ui-icons/num7-square-alt.js +28 -0
- package/dist/icons/ui-icons/num7-square.js +28 -0
- package/dist/icons/ui-icons/num8-circle-alt.js +24 -0
- package/dist/icons/ui-icons/num8-circle.js +24 -0
- package/dist/icons/ui-icons/num8-square-alt.js +26 -0
- package/dist/icons/ui-icons/num8-square.js +26 -0
- package/dist/icons/ui-icons/num9-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num9-circle.js +26 -0
- package/dist/icons/ui-icons/num9-square-alt.js +28 -0
- package/dist/icons/ui-icons/num9-square.js +28 -0
- package/dist/icons/ui-icons/office-building.js +203 -0
- package/dist/icons/ui-icons/office-buildings.js +256 -0
- package/dist/icons/ui-icons/offset-auto.js +46 -0
- package/dist/icons/ui-icons/offset.js +39 -0
- package/dist/icons/ui-icons/option-list-alt.js +61 -0
- package/dist/icons/ui-icons/option-list.js +63 -0
- package/dist/icons/ui-icons/options.js +24 -0
- package/dist/icons/ui-icons/order.js +49 -0
- package/dist/icons/ui-icons/padding-bottom.js +35 -0
- package/dist/icons/ui-icons/padding-top.js +35 -0
- package/dist/icons/ui-icons/padding.js +34 -0
- package/dist/icons/ui-icons/pagination.js +49 -0
- package/dist/icons/ui-icons/palette-color.js +111 -0
- package/dist/icons/ui-icons/panel-collapse.js +41 -0
- package/dist/icons/ui-icons/panel-expand.js +41 -0
- package/dist/icons/ui-icons/paragraph.js +24 -0
- package/dist/icons/ui-icons/paste.js +52 -0
- package/dist/icons/ui-icons/pause.js +20 -0
- package/dist/icons/ui-icons/people-group.js +57 -0
- package/dist/icons/ui-icons/people.js +43 -0
- package/dist/icons/ui-icons/person.js +26 -0
- package/dist/icons/ui-icons/photo-camera.js +26 -0
- package/dist/icons/ui-icons/picture-in-picture.js +33 -0
- package/dist/icons/ui-icons/play-reverse.js +20 -0
- package/dist/icons/ui-icons/play.js +20 -0
- package/dist/icons/ui-icons/playback-options.js +24 -0
- package/dist/icons/ui-icons/plus-circle-fill-alt.js +23 -0
- package/dist/icons/ui-icons/plus-circle-fill.js +17 -0
- package/dist/icons/ui-icons/plus-circle.js +26 -0
- package/dist/icons/ui-icons/plus-minus-buttons-h.js +25 -0
- package/dist/icons/ui-icons/plus-minus-buttons-v.js +25 -0
- package/dist/icons/ui-icons/plus-square-fill-transparent.js +27 -0
- package/dist/icons/ui-icons/plus-square-fill.js +17 -0
- package/dist/icons/ui-icons/plus-square.js +27 -0
- package/dist/icons/ui-icons/pointer-hand-disabled.js +34 -0
- package/dist/icons/ui-icons/pointer-hand.js +20 -0
- package/dist/icons/ui-icons/position-arrows-h.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted-h.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted-v.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted.js +26 -0
- package/dist/icons/ui-icons/position-arrows-v.js +26 -0
- package/dist/icons/ui-icons/position-arrows.js +26 -0
- package/dist/icons/ui-icons/position-h-center.js +43 -0
- package/dist/icons/ui-icons/position-h-end.js +43 -0
- package/dist/icons/ui-icons/position-h-start.js +43 -0
- package/dist/icons/ui-icons/position-left.js +31 -0
- package/dist/icons/ui-icons/position-right.js +31 -0
- package/dist/icons/ui-icons/position-v-center.js +43 -0
- package/dist/icons/ui-icons/position-v-end.js +43 -0
- package/dist/icons/ui-icons/position-v-start.js +43 -0
- package/dist/icons/ui-icons/position2x2-bottom-left.js +52 -0
- package/dist/icons/ui-icons/position2x2-bottom-right.js +52 -0
- package/dist/icons/ui-icons/position2x2-empty.js +51 -0
- package/dist/icons/ui-icons/position2x2-top-left.js +52 -0
- package/dist/icons/ui-icons/position2x2-top-right.js +52 -0
- package/dist/icons/ui-icons/position3x3-bottom-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-bottom-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-bottom-right.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-right.js +97 -0
- package/dist/icons/ui-icons/position3x3-empty.js +96 -0
- package/dist/icons/ui-icons/position3x3-top-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-top-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-top-right.js +97 -0
- package/dist/icons/ui-icons/positioning-guide-alt.js +30 -0
- package/dist/icons/ui-icons/positioning-guide.js +30 -0
- package/dist/icons/ui-icons/positioning-width-guide.js +40 -0
- package/dist/icons/ui-icons/preload.js +44 -0
- package/dist/icons/ui-icons/preview-responsive.js +48 -0
- package/dist/icons/ui-icons/preview.js +35 -0
- package/dist/icons/ui-icons/progressbar-intermittent.js +26 -0
- package/dist/icons/ui-icons/progressbar.js +30 -0
- package/dist/icons/ui-icons/range-max.js +48 -0
- package/dist/icons/ui-icons/range-mid.js +40 -0
- package/dist/icons/ui-icons/range-min.js +48 -0
- package/dist/icons/ui-icons/range.js +61 -0
- package/dist/icons/ui-icons/read-only.js +25 -0
- package/dist/icons/ui-icons/reduce-height-bottom.js +49 -0
- package/dist/icons/ui-icons/reduce-height-top.js +49 -0
- package/dist/icons/ui-icons/regex.js +39 -0
- package/dist/icons/ui-icons/remove.js +20 -0
- package/dist/icons/ui-icons/rename.js +24 -0
- package/dist/icons/ui-icons/reorder-grabber-h.js +51 -0
- package/dist/icons/ui-icons/reorder-grabber-v.js +57 -0
- package/dist/icons/ui-icons/reorder.js +35 -0
- package/dist/icons/ui-icons/required-alt.js +20 -0
- package/dist/icons/ui-icons/required.js +19 -0
- package/dist/icons/ui-icons/reset-to-zero.js +33 -0
- package/dist/icons/ui-icons/reset.js +25 -0
- package/dist/icons/ui-icons/responsive-overrides-alt-fill.js +26 -0
- package/dist/icons/ui-icons/responsive-overrides-alt.js +49 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2-fill.js +34 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2.js +45 -0
- package/dist/icons/ui-icons/responsive-overrides-alt3-fill.js +33 -0
- package/dist/icons/ui-icons/responsive-overrides.js +39 -0
- package/dist/icons/ui-icons/responsive.js +33 -0
- package/dist/icons/ui-icons/right-panel-alt.js +23 -0
- package/dist/icons/ui-icons/right-panel.js +22 -0
- package/dist/icons/ui-icons/rotate-left.js +20 -0
- package/dist/icons/ui-icons/rotate-right.js +20 -0
- package/dist/icons/ui-icons/rounded-corners.js +19 -0
- package/dist/icons/ui-icons/route.js +27 -0
- package/dist/icons/ui-icons/row-add.js +45 -0
- package/dist/icons/ui-icons/row-empty.js +51 -0
- package/dist/icons/ui-icons/row.js +45 -0
- package/dist/icons/ui-icons/rows.js +42 -0
- package/dist/icons/ui-icons/ruler.js +28 -0
- package/dist/icons/ui-icons/save.js +26 -0
- package/dist/icons/ui-icons/screen-desktop.js +32 -0
- package/dist/icons/ui-icons/screen-large.js +23 -0
- package/dist/icons/ui-icons/screen-mobile.js +39 -0
- package/dist/icons/ui-icons/screen-tablet-large.js +36 -0
- package/dist/icons/ui-icons/screen-tablet.js +36 -0
- package/dist/icons/ui-icons/scrollbar-h.js +40 -0
- package/dist/icons/ui-icons/scrollbar-v.js +41 -0
- package/dist/icons/ui-icons/scrollbars.js +55 -0
- package/dist/icons/ui-icons/search-empty.js +37 -0
- package/dist/icons/ui-icons/search.js +25 -0
- package/dist/icons/ui-icons/separator-h.js +41 -0
- package/dist/icons/ui-icons/separator-v.js +39 -0
- package/dist/icons/ui-icons/shadow.js +61 -0
- package/dist/icons/ui-icons/share.js +26 -0
- package/dist/icons/ui-icons/shield-plus-alt.js +27 -0
- package/dist/icons/ui-icons/shield-plus.js +20 -0
- package/dist/icons/ui-icons/shield.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-left-xl.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-left.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-right-xl.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-right.js +20 -0
- package/dist/icons/ui-icons/shrink-xl.js +20 -0
- package/dist/icons/ui-icons/shrink.js +20 -0
- package/dist/icons/ui-icons/shuffle.js +20 -0
- package/dist/icons/ui-icons/sidebar-flip.js +22 -0
- package/dist/icons/ui-icons/sidebar.js +22 -0
- package/dist/icons/ui-icons/single-item-left-inset-mobile.js +48 -0
- package/dist/icons/ui-icons/single-item-left-inset.js +23 -0
- package/dist/icons/ui-icons/single-item-right-inset-mobile.js +50 -0
- package/dist/icons/ui-icons/single-item-right-inset.js +23 -0
- package/dist/icons/ui-icons/size-alt.js +33 -0
- package/dist/icons/ui-icons/size.js +29 -0
- package/dist/icons/ui-icons/slider.js +31 -0
- package/dist/icons/ui-icons/sliders.js +68 -0
- package/dist/icons/ui-icons/small.js +24 -0
- package/dist/icons/ui-icons/solid-circle-fill-transparent.js +22 -0
- package/dist/icons/ui-icons/solid-circle-filled.js +21 -0
- package/dist/icons/ui-icons/solid-circle-gradient.js +31 -0
- package/dist/icons/ui-icons/solid-circle.js +21 -0
- package/dist/icons/ui-icons/solid-color.js +19 -0
- package/dist/icons/ui-icons/solid-rect-fill-transparent.js +24 -0
- package/dist/icons/ui-icons/solid-rect-filled.js +23 -0
- package/dist/icons/ui-icons/solid-rect-gradient.js +33 -0
- package/dist/icons/ui-icons/solid-rect.js +23 -0
- package/dist/icons/ui-icons/sort-asc.js +20 -0
- package/dist/icons/ui-icons/sort-desc.js +20 -0
- package/dist/icons/ui-icons/sort-generic.js +25 -0
- package/dist/icons/ui-icons/spacing-bottom-in.js +23 -0
- package/dist/icons/ui-icons/spacing-bottom.js +23 -0
- package/dist/icons/ui-icons/spacing-left-in.js +23 -0
- package/dist/icons/ui-icons/spacing-left.js +23 -0
- package/dist/icons/ui-icons/spacing-right-in.js +23 -0
- package/dist/icons/ui-icons/spacing-right.js +23 -0
- package/dist/icons/ui-icons/spacing-top-in.js +23 -0
- package/dist/icons/ui-icons/spacing-top.js +23 -0
- package/dist/icons/ui-icons/speed.js +25 -0
- package/dist/icons/ui-icons/stagger.js +53 -0
- package/dist/icons/ui-icons/star.js +18 -0
- package/dist/icons/ui-icons/step.js +27 -0
- package/dist/icons/ui-icons/stop.js +20 -0
- package/dist/icons/ui-icons/swap.js +41 -0
- package/dist/icons/ui-icons/tag-alt.js +24 -0
- package/dist/icons/ui-icons/tag.js +26 -0
- package/dist/icons/ui-icons/text-abc.js +40 -0
- package/dist/icons/ui-icons/text-above.js +25 -0
- package/dist/icons/ui-icons/text-align-center.js +20 -0
- package/dist/icons/ui-icons/text-align-generic.js +20 -0
- package/dist/icons/ui-icons/text-align-justify.js +20 -0
- package/dist/icons/ui-icons/text-align-left.js +20 -0
- package/dist/icons/ui-icons/text-align-right.js +20 -0
- package/dist/icons/ui-icons/text-below.js +25 -0
- package/dist/icons/ui-icons/text-box-edit.js +35 -0
- package/dist/icons/ui-icons/text-color-swatch.js +40 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch-alt.js +49 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch.js +48 -0
- package/dist/icons/ui-icons/text-larger.js +23 -0
- package/dist/icons/ui-icons/text-length.js +20 -0
- package/dist/icons/ui-icons/text-size-alt.js +23 -0
- package/dist/icons/ui-icons/text-size.js +20 -0
- package/dist/icons/ui-icons/text-smaller.js +23 -0
- package/dist/icons/ui-icons/text-strikethrough.js +26 -0
- package/dist/icons/ui-icons/text-uppercase.js +25 -0
- package/dist/icons/ui-icons/text-write.js +39 -0
- package/dist/icons/ui-icons/thumbs-down.js +22 -0
- package/dist/icons/ui-icons/thumbs-up.js +22 -0
- package/dist/icons/ui-icons/title-generic.js +25 -0
- package/dist/icons/ui-icons/toggle-off.js +33 -0
- package/dist/icons/ui-icons/toggle-on-alt.js +19 -0
- package/dist/icons/ui-icons/toggle-on.js +31 -0
- package/dist/icons/ui-icons/tools.js +25 -0
- package/dist/icons/ui-icons/total-items.js +45 -0
- package/dist/icons/ui-icons/trash-alt.js +44 -0
- package/dist/icons/ui-icons/trash.js +33 -0
- package/dist/icons/ui-icons/tree-alt.js +62 -0
- package/dist/icons/ui-icons/tree-alt2.js +79 -0
- package/dist/icons/ui-icons/tree.js +70 -0
- package/dist/icons/ui-icons/troubleshoot-alt.js +39 -0
- package/dist/icons/ui-icons/two-cards-left.js +32 -0
- package/dist/icons/ui-icons/two-cards-right.js +32 -0
- package/dist/icons/ui-icons/two-columns.js +30 -0
- package/dist/icons/ui-icons/typography-options.js +77 -0
- package/dist/icons/ui-icons/typography.js +71 -0
- package/dist/icons/ui-icons/underline.js +19 -0
- package/dist/icons/ui-icons/ungroup.js +39 -0
- package/dist/icons/ui-icons/upload.js +20 -0
- package/dist/icons/ui-icons/venn-diagram-alt.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt2.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt3.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt4.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt5.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt6.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt7.js +39 -0
- package/dist/icons/ui-icons/venn-diagram.js +26 -0
- package/dist/icons/ui-icons/vertical-align-alt.js +27 -0
- package/dist/icons/ui-icons/vertical-align-around.js +39 -0
- package/dist/icons/ui-icons/vertical-align-between-alt.js +39 -0
- package/dist/icons/ui-icons/vertical-align-between.js +48 -0
- package/dist/icons/ui-icons/vertical-align-bottom.js +44 -0
- package/dist/icons/ui-icons/vertical-align-center.js +39 -0
- package/dist/icons/ui-icons/vertical-align-evenly.js +39 -0
- package/dist/icons/ui-icons/vertical-align-stretch.js +39 -0
- package/dist/icons/ui-icons/vertical-align-top.js +46 -0
- package/dist/icons/ui-icons/vertical-align.js +35 -0
- package/dist/icons/ui-icons/vertical-spacing.js +28 -0
- package/dist/icons/ui-icons/video-chapters.js +25 -0
- package/dist/icons/ui-icons/video-controls.js +67 -0
- package/dist/icons/ui-icons/video-file.js +40 -0
- package/dist/icons/ui-icons/video-poster-image.js +40 -0
- package/dist/icons/ui-icons/video-subtitle-alt.js +39 -0
- package/dist/icons/ui-icons/video-subtitle.js +27 -0
- package/dist/icons/ui-icons/video.js +36 -0
- package/dist/icons/ui-icons/visibility-alt.js +40 -0
- package/dist/icons/ui-icons/visibility-alt2.js +41 -0
- package/dist/icons/ui-icons/visibility.js +45 -0
- package/dist/icons/ui-icons/visible.js +28 -0
- package/dist/icons/ui-icons/volume.js +25 -0
- package/dist/icons/ui-icons/warning-circle-fill-transparent.js +30 -0
- package/dist/icons/ui-icons/warning-circle-fill.js +17 -0
- package/dist/icons/ui-icons/warning-circle.js +33 -0
- package/dist/icons/ui-icons/warning-fill-transparent.js +30 -0
- package/dist/icons/ui-icons/warning-fill.js +17 -0
- package/dist/icons/ui-icons/warning.js +30 -0
- package/dist/icons/ui-icons/web-video.js +63 -0
- package/dist/icons/ui-icons/wide-bottom.js +49 -0
- package/dist/icons/ui-icons/wide-left.js +49 -0
- package/dist/icons/ui-icons/wide-right.js +49 -0
- package/dist/icons/ui-icons/wide-top.js +49 -0
- package/dist/icons/ui-icons/width.js +29 -0
- package/dist/icons/ui-icons/wordpress.js +17 -0
- package/dist/icons/ui-icons/wrapper-alt.js +71 -0
- package/dist/icons/ui-icons/wrapper-config.js +41 -0
- package/dist/icons/ui-icons/wrapper-off-alt.js +19 -0
- package/dist/icons/ui-icons/wrapper-overflow.js +31 -0
- package/dist/icons/ui-icons/wrapper-simple-alt.js +58 -0
- package/dist/icons/ui-icons/wrapper-simple.js +32 -0
- package/dist/icons/ui-icons/wrapper.js +42 -0
- package/dist/icons/ui-icons/wrench.js +19 -0
- package/dist/icons/ui-icons/zap-fill.js +20 -0
- package/dist/icons/ui-icons/zap.js +19 -0
- package/dist/index.js +32 -108
- package/dist/input-field-UCZL5bqv.js +290 -0
- package/dist/jsx-svg-OBADs_Qs.js +11123 -0
- package/dist/link-input-D7iDRpOM.js +1821 -0
- package/dist/modal-DbVLYMkH.js +318 -0
- package/dist/number-ZZIxJukn.js +40 -0
- package/dist/number-picker-CkA1iJNZ.js +268 -0
- package/dist/proxy-BG7-_Ou3.js +9638 -0
- package/dist/shared-DFDimxvX.js +1038 -0
- package/dist/smart-image-CbSsEASF.js +284 -0
- package/dist/solid-color-picker-DbT-aoVx.js +1415 -0
- package/dist/style-admin.js +1 -1
- package/dist/style-editor.js +1 -1
- package/dist/style.js +1 -1
- package/dist/switch-L8dFSQWQ.js +274 -0
- package/dist/tabs-BrdyBER5.js +975 -0
- package/dist/textSelection-Dv6WPj0Z.js +45 -0
- package/dist/toggle-button-DJ8jNQ-9.js +424 -0
- package/dist/tooltip-BzJzYlcc.js +440 -0
- package/dist/useAsyncList-BNzwKoX4.js +412 -0
- package/dist/useButton-ra1ZSZ4z.js +57 -0
- package/dist/useEvent-DkZVfgsS.js +22 -0
- package/dist/useField-D0WrzR2F.js +32 -0
- package/dist/useFilter-OiMnf6sb.js +44 -0
- package/dist/useFocusRing-DuYL4cdO.js +98 -0
- package/dist/useFormReset-DdkykzAn.js +18 -0
- package/dist/useHover-qaMm3XFO.js +982 -0
- package/dist/useLabel-2EohW5l6.js +27 -0
- package/dist/useLabels-B2p7RXi5.js +16 -0
- package/dist/useListState-CD_5vfyy.js +147 -0
- package/dist/useLocalizedStringFormatter-Dv2diN3k.js +108 -0
- package/dist/useNumberField-2xbi3jRV.js +1318 -0
- package/dist/useNumberFormatter-C2Cm2mNj.js +10 -0
- package/dist/usePress-ZP1TjkFf.js +678 -0
- package/dist/useToggle-ecIirvIM.js +64 -0
- package/dist/useToggleState-IIDbiKPl.js +23 -0
- package/dist/utilities/array-helpers.js +38 -49
- package/dist/utilities/debounce-throttle.js +2 -123
- package/dist/utilities/es-dash.js +2 -400
- package/dist/utilities/general.js +2 -10
- package/dist/utilities/hash.js +31 -35
- package/dist/utilities/index.js +6 -41
- package/dist/utilities/text-helpers.js +96 -129
- package/dist/utilities/web-workers.js +61 -44
- package/dist/utilities-CPFDXC3B.js +7 -0
- package/dist/utils-B_uiqNa4.js +372 -0
- package/dist/workers/image-analysis.worker.js +56 -48
- package/package.json +30 -18
- package/dist/Button-DtRmB6b8.js +0 -243
- package/dist/Dialog-DTIxSDhz.js +0 -2790
- package/dist/FieldError-BPG0hKfB.js +0 -42
- package/dist/FocusScope-CjFQ7cbd.js +0 -832
- package/dist/Form-Cq3fu75_.js +0 -5
- package/dist/Heading-CY-_gt-U.js +0 -16
- package/dist/Hidden-DOH36apC.js +0 -58
- package/dist/Input-BG9DaxYN.js +0 -169
- package/dist/Label-_aSf9-8u.js +0 -18
- package/dist/List-CQFXnN4w.js +0 -590
- package/dist/ListBox-DXFyyj_r.js +0 -695
- package/dist/NumberFormatter-DA8u1Ot7.js +0 -140
- package/dist/OverlayArrow-Fuxj-1QM.js +0 -614
- package/dist/PortalProvider-BQ1X8vGX.js +0 -19
- package/dist/RSPContexts-CJ-HBf0L.js +0 -18
- package/dist/RadioGroup-DCeiLxLK.js +0 -371
- package/dist/SearchField-B_yKFXRk.js +0 -817
- package/dist/SelectionIndicator-D7WMzeAW.js +0 -7
- package/dist/SelectionManager-B02LcxLr.js +0 -2505
- package/dist/SharedElementTransition-CtoWSaF0.js +0 -12
- package/dist/Slider-bR3fAmim.js +0 -897
- package/dist/Text-CjFEHSfr.js +0 -17
- package/dist/VisuallyHidden-DZnWrkn8.js +0 -48
- package/dist/animation-Dfl8uEb3.js +0 -67
- package/dist/clsx-DgYk2OaC.js +0 -16
- package/dist/color-swatch-bUFkK7ox.js +0 -2570
- package/dist/components/smart-image/image-analysis-worker-next.js +0 -144
- package/dist/components/smart-image/smart-image-next.js +0 -294
- package/dist/context-iUFQCK8m.js +0 -95
- package/dist/default-i18n-CnQeC5Pl.js +0 -731
- package/dist/filterDOMProps-eGTqWSTd.js +0 -71
- package/dist/general-BfKmjm56.js +0 -4378
- package/dist/index-BHpUy2Ix.js +0 -44
- package/dist/index-BL5gdWX4.js +0 -28323
- package/dist/number-7sOvrqo0.js +0 -41
- package/dist/proxy-CNEXmkdK.js +0 -7948
- package/dist/react-jsx-parser.min-DAh4myol.js +0 -11736
- package/dist/shared-CNH8QfV9.js +0 -1111
- package/dist/sprintf-DmNrJSYG.js +0 -51
- package/dist/textSelection-DA3VcKpG.js +0 -46
- package/dist/useAsyncList-DsZvQXls.js +0 -453
- package/dist/useButton-DyMX0EVr.js +0 -59
- package/dist/useEvent-Bfy68GHZ.js +0 -22
- package/dist/useFilter-Bg5C34XC.js +0 -50
- package/dist/useFocusRing-B2glEZ25.js +0 -114
- package/dist/useFormReset-BoxsKyJ9.js +0 -20
- package/dist/useFormValidation-BrbMhS2N.js +0 -232
- package/dist/useHover-DkmPQdGE.js +0 -1047
- package/dist/useLabel-DzXzKZZZ.js +0 -27
- package/dist/useLabels-D8O3gOdV.js +0 -23
- package/dist/useListState-BjnzKozj.js +0 -171
- package/dist/useLocalizedStringFormatter-CEDs0LsA.js +0 -121
- package/dist/useNumberField-CsygZKz9.js +0 -1330
- package/dist/useNumberFormatter-CG_IQXp9.js +0 -13
- package/dist/usePress-Ck5xMtDr.js +0 -701
- package/dist/useToggle-Ddc7N8pR.js +0 -72
- package/dist/useToggleState-H_lORSWO.js +0 -23
- package/dist/utils-Cr3pLd9c.js +0 -420
|
@@ -0,0 +1,2176 @@
|
|
|
1
|
+
import { f as $ff5963eb1fccf552$export$e08e3b67e392101e, g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, h as $b5e257d569688ac6$export$535bd6ca7f90a273, m as $bdb11010cef70236$export$f680877a34711e37, u as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B_uiqNa4.js";
|
|
2
|
+
import { A as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, B as $d4ee10de306f2510$export$b4f377a2b6254582, H as $d4ee10de306f2510$export$e58f029f0fbfdb29, I as $c87311424ea30a05$export$e1865c3bedcd822b, L as $c87311424ea30a05$export$fedb369cb70207f1, M as $c87311424ea30a05$export$6446a186d09e379e, P as $c87311424ea30a05$export$9ac100e40613ea10, R as $7215afc6de606d6b$export$de79e2c695e052f3, T as $03deb23ff14920c4$export$4eaf04e54aa8eed6, V as $d4ee10de306f2510$export$cd4e5573fbe2b576, W as $431fbd86ca7dc216$export$b204af158042fbac, b as $b4b717babfbb907b$export$bebd5a1431fec25d, c as $507fabe10e71c6fb$export$630ff653c5ada6a9, i as $f645667febf57a63$export$f9762fab77588ecb, k as $ea8dcbcb9ea1b556$export$95185d699e05d4d7, s as $3ad3f6e1647bc98d$export$80f3e147d781571c, v as $458b0a5536c1a7cf$export$40bfa8c7b0832715, z as $d4ee10de306f2510$export$4282f70798064fe0 } from "./useHover-qaMm3XFO.js";
|
|
3
|
+
import { r as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CgwbGOBB.js";
|
|
4
|
+
import { t as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-DkZVfgsS.js";
|
|
5
|
+
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-C-XNeJ_l.js";
|
|
6
|
+
import { t as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-ZP1TjkFf.js";
|
|
7
|
+
import { n as $f39a9eba43920ace$export$8dc98ba7eadeaa56 } from "./Hidden-8TB37dpK.js";
|
|
8
|
+
import React, { cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
9
|
+
import { createPortal, flushSync } from "react-dom";
|
|
10
|
+
import { useSyncExternalStore } from "use-sync-external-store/shim/index.js";
|
|
11
|
+
//#region node_modules/@react-aria/utils/dist/useUpdateLayoutEffect.mjs
|
|
12
|
+
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
13
|
+
const isInitialMount = useRef(true);
|
|
14
|
+
const lastDeps = useRef(null);
|
|
15
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
16
|
+
isInitialMount.current = true;
|
|
17
|
+
return () => {
|
|
18
|
+
isInitialMount.current = false;
|
|
19
|
+
};
|
|
20
|
+
}, []);
|
|
21
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
22
|
+
if (isInitialMount.current) isInitialMount.current = false;
|
|
23
|
+
else if (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) effect();
|
|
24
|
+
lastDeps.current = dependencies;
|
|
25
|
+
}, dependencies);
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region node_modules/@react-aria/utils/dist/isScrollable.mjs
|
|
29
|
+
function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow) {
|
|
30
|
+
if (!node) return false;
|
|
31
|
+
let style = window.getComputedStyle(node);
|
|
32
|
+
let root = document.scrollingElement || document.documentElement;
|
|
33
|
+
let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
|
34
|
+
if (node === root && style.overflow !== "hidden") isScrollable = true;
|
|
35
|
+
if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;
|
|
36
|
+
return isScrollable;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region node_modules/@react-aria/utils/dist/getScrollParents.mjs
|
|
40
|
+
function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
|
41
|
+
let parentElements = [];
|
|
42
|
+
let root = document.scrollingElement || document.documentElement;
|
|
43
|
+
do {
|
|
44
|
+
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow)) parentElements.push(node);
|
|
45
|
+
node = node.parentElement;
|
|
46
|
+
} while (node && node !== root);
|
|
47
|
+
return parentElements;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region node_modules/@react-aria/utils/dist/keyboard.mjs
|
|
51
|
+
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
52
|
+
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
53
|
+
return e.ctrlKey;
|
|
54
|
+
}
|
|
55
|
+
var $21f1aa98acb08317$var$nonTextInputTypes = new Set([
|
|
56
|
+
"checkbox",
|
|
57
|
+
"radio",
|
|
58
|
+
"range",
|
|
59
|
+
"color",
|
|
60
|
+
"file",
|
|
61
|
+
"image",
|
|
62
|
+
"button",
|
|
63
|
+
"submit",
|
|
64
|
+
"reset"
|
|
65
|
+
]);
|
|
66
|
+
function $21f1aa98acb08317$export$c57958e35f31ed73(target) {
|
|
67
|
+
return target instanceof HTMLInputElement && !$21f1aa98acb08317$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region node_modules/@react-aria/utils/dist/useDescription.mjs
|
|
71
|
+
var $ef06256079686ba0$var$descriptionId = 0;
|
|
72
|
+
var $ef06256079686ba0$var$descriptionNodes = new Map();
|
|
73
|
+
function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
|
|
74
|
+
let [id, setId] = useState();
|
|
75
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
76
|
+
if (!description) return;
|
|
77
|
+
let desc = $ef06256079686ba0$var$descriptionNodes.get(description);
|
|
78
|
+
if (!desc) {
|
|
79
|
+
let id = `react-aria-description-${$ef06256079686ba0$var$descriptionId++}`;
|
|
80
|
+
setId(id);
|
|
81
|
+
let node = document.createElement("div");
|
|
82
|
+
node.id = id;
|
|
83
|
+
node.style.display = "none";
|
|
84
|
+
node.textContent = description;
|
|
85
|
+
document.body.appendChild(node);
|
|
86
|
+
desc = {
|
|
87
|
+
refCount: 0,
|
|
88
|
+
element: node
|
|
89
|
+
};
|
|
90
|
+
$ef06256079686ba0$var$descriptionNodes.set(description, desc);
|
|
91
|
+
} else setId(desc.element.id);
|
|
92
|
+
desc.refCount++;
|
|
93
|
+
return () => {
|
|
94
|
+
if (desc && --desc.refCount === 0) {
|
|
95
|
+
desc.element.remove();
|
|
96
|
+
$ef06256079686ba0$var$descriptionNodes.delete(description);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}, [description]);
|
|
100
|
+
return { "aria-describedby": description ? id : void 0 };
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region node_modules/@react-aria/utils/dist/scrollIntoView.mjs
|
|
104
|
+
function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element, opts = {}) {
|
|
105
|
+
let { block = "nearest", inline = "nearest" } = opts;
|
|
106
|
+
if (scrollView === element) return;
|
|
107
|
+
let y = scrollView.scrollTop;
|
|
108
|
+
let x = scrollView.scrollLeft;
|
|
109
|
+
let target = element.getBoundingClientRect();
|
|
110
|
+
let view = scrollView.getBoundingClientRect();
|
|
111
|
+
let itemStyle = window.getComputedStyle(element);
|
|
112
|
+
let viewStyle = window.getComputedStyle(scrollView);
|
|
113
|
+
let root = document.scrollingElement || document.documentElement;
|
|
114
|
+
let viewTop = scrollView === root ? 0 : view.top;
|
|
115
|
+
let viewBottom = scrollView === root ? scrollView.clientHeight : view.bottom;
|
|
116
|
+
let viewLeft = scrollView === root ? 0 : view.left;
|
|
117
|
+
let viewRight = scrollView === root ? scrollView.clientWidth : view.right;
|
|
118
|
+
let scrollMarginTop = parseInt(itemStyle.scrollMarginTop, 10) || 0;
|
|
119
|
+
let scrollMarginBottom = parseInt(itemStyle.scrollMarginBottom, 10) || 0;
|
|
120
|
+
let scrollMarginLeft = parseInt(itemStyle.scrollMarginLeft, 10) || 0;
|
|
121
|
+
let scrollMarginRight = parseInt(itemStyle.scrollMarginRight, 10) || 0;
|
|
122
|
+
let scrollPaddingTop = parseInt(viewStyle.scrollPaddingTop, 10) || 0;
|
|
123
|
+
let scrollPaddingBottom = parseInt(viewStyle.scrollPaddingBottom, 10) || 0;
|
|
124
|
+
let scrollPaddingLeft = parseInt(viewStyle.scrollPaddingLeft, 10) || 0;
|
|
125
|
+
let scrollPaddingRight = parseInt(viewStyle.scrollPaddingRight, 10) || 0;
|
|
126
|
+
let borderTopWidth = parseInt(viewStyle.borderTopWidth, 10) || 0;
|
|
127
|
+
let borderBottomWidth = parseInt(viewStyle.borderBottomWidth, 10) || 0;
|
|
128
|
+
let borderLeftWidth = parseInt(viewStyle.borderLeftWidth, 10) || 0;
|
|
129
|
+
let borderRightWidth = parseInt(viewStyle.borderRightWidth, 10) || 0;
|
|
130
|
+
let scrollAreaTop = target.top - scrollMarginTop;
|
|
131
|
+
let scrollAreaBottom = target.bottom + scrollMarginBottom;
|
|
132
|
+
let scrollAreaLeft = target.left - scrollMarginLeft;
|
|
133
|
+
let scrollAreaRight = target.right + scrollMarginRight;
|
|
134
|
+
let scrollBarOffsetX = scrollView === root ? 0 : borderLeftWidth + borderRightWidth;
|
|
135
|
+
let scrollBarOffsetY = scrollView === root ? 0 : borderTopWidth + borderBottomWidth;
|
|
136
|
+
let scrollBarWidth = scrollView.offsetWidth - scrollView.clientWidth - scrollBarOffsetX;
|
|
137
|
+
let scrollBarHeight = scrollView.offsetHeight - scrollView.clientHeight - scrollBarOffsetY;
|
|
138
|
+
let scrollPortTop = viewTop + borderTopWidth + scrollPaddingTop;
|
|
139
|
+
let scrollPortBottom = viewBottom - borderBottomWidth - scrollPaddingBottom - scrollBarHeight;
|
|
140
|
+
let scrollPortLeft = viewLeft + borderLeftWidth + scrollPaddingLeft;
|
|
141
|
+
let scrollPortRight = viewRight - borderRightWidth - scrollPaddingRight;
|
|
142
|
+
if (viewStyle.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1()) scrollPortLeft += scrollBarWidth;
|
|
143
|
+
else scrollPortRight -= scrollBarWidth;
|
|
144
|
+
let shouldScrollBlock = scrollAreaTop < scrollPortTop || scrollAreaBottom > scrollPortBottom;
|
|
145
|
+
let shouldScrollInline = scrollAreaLeft < scrollPortLeft || scrollAreaRight > scrollPortRight;
|
|
146
|
+
if (shouldScrollBlock && block === "start") y += scrollAreaTop - scrollPortTop;
|
|
147
|
+
else if (shouldScrollBlock && block === "center") y += (scrollAreaTop + scrollAreaBottom) / 2 - (scrollPortTop + scrollPortBottom) / 2;
|
|
148
|
+
else if (shouldScrollBlock && block === "end") y += scrollAreaBottom - scrollPortBottom;
|
|
149
|
+
else if (shouldScrollBlock && block === "nearest") {
|
|
150
|
+
let start = scrollAreaTop - scrollPortTop;
|
|
151
|
+
let end = scrollAreaBottom - scrollPortBottom;
|
|
152
|
+
y += Math.abs(start) <= Math.abs(end) ? start : end;
|
|
153
|
+
}
|
|
154
|
+
if (shouldScrollInline && inline === "start") x += scrollAreaLeft - scrollPortLeft;
|
|
155
|
+
else if (shouldScrollInline && inline === "center") x += (scrollAreaLeft + scrollAreaRight) / 2 - (scrollPortLeft + scrollPortRight) / 2;
|
|
156
|
+
else if (shouldScrollInline && inline === "end") x += scrollAreaRight - scrollPortRight;
|
|
157
|
+
else if (shouldScrollInline && inline === "nearest") {
|
|
158
|
+
let start = scrollAreaLeft - scrollPortLeft;
|
|
159
|
+
let end = scrollAreaRight - scrollPortRight;
|
|
160
|
+
x += Math.abs(start) <= Math.abs(end) ? start : end;
|
|
161
|
+
}
|
|
162
|
+
if (process.env.NODE_ENV === "test") {
|
|
163
|
+
scrollView.scrollLeft = x;
|
|
164
|
+
scrollView.scrollTop = y;
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
scrollView.scrollTo({
|
|
168
|
+
left: x,
|
|
169
|
+
top: y
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts = {}) {
|
|
173
|
+
let { containingElement } = opts;
|
|
174
|
+
if (targetElement && targetElement.isConnected) {
|
|
175
|
+
let root = document.scrollingElement || document.documentElement;
|
|
176
|
+
if (!(window.getComputedStyle(root).overflow === "hidden") && !$c87311424ea30a05$export$6446a186d09e379e()) {
|
|
177
|
+
var _targetElement_scrollIntoView;
|
|
178
|
+
let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
|
|
179
|
+
targetElement === null || targetElement === void 0 || (_targetElement_scrollIntoView = targetElement.scrollIntoView) == null || _targetElement_scrollIntoView.call(targetElement, { block: "nearest" });
|
|
180
|
+
let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
|
|
181
|
+
if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
|
|
182
|
+
var _containingElement_scrollIntoView, _targetElement_scrollIntoView1;
|
|
183
|
+
containingElement === null || containingElement === void 0 || (_containingElement_scrollIntoView = containingElement.scrollIntoView) == null || _containingElement_scrollIntoView.call(containingElement, {
|
|
184
|
+
block: "center",
|
|
185
|
+
inline: "center"
|
|
186
|
+
});
|
|
187
|
+
(_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 || _targetElement_scrollIntoView1.call(targetElement, { block: "nearest" });
|
|
188
|
+
}
|
|
189
|
+
} else {
|
|
190
|
+
let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
|
|
191
|
+
let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement, true);
|
|
192
|
+
for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);
|
|
193
|
+
let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
|
|
194
|
+
if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
|
|
195
|
+
scrollParents = containingElement ? $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(containingElement, true) : [];
|
|
196
|
+
for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, containingElement, {
|
|
197
|
+
block: "center",
|
|
198
|
+
inline: "center"
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region node_modules/@react-aria/utils/dist/constants.mjs
|
|
206
|
+
var $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
207
|
+
var $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region node_modules/@react-aria/interactions/dist/useLongPress.mjs
|
|
210
|
+
var $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
211
|
+
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
212
|
+
let { isDisabled, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
213
|
+
const timeRef = useRef(void 0);
|
|
214
|
+
let { addGlobalListener, removeGlobalListener } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
215
|
+
let { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
216
|
+
isDisabled,
|
|
217
|
+
onPressStart(e) {
|
|
218
|
+
e.continuePropagation();
|
|
219
|
+
if (e.pointerType === "mouse" || e.pointerType === "touch") {
|
|
220
|
+
if (onLongPressStart) onLongPressStart({
|
|
221
|
+
...e,
|
|
222
|
+
type: "longpressstart"
|
|
223
|
+
});
|
|
224
|
+
timeRef.current = setTimeout(() => {
|
|
225
|
+
e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: true }));
|
|
226
|
+
if ($431fbd86ca7dc216$export$b204af158042fbac(e.target).activeElement !== e.target) $7215afc6de606d6b$export$de79e2c695e052f3(e.target);
|
|
227
|
+
if (onLongPress) onLongPress({
|
|
228
|
+
...e,
|
|
229
|
+
type: "longpress"
|
|
230
|
+
});
|
|
231
|
+
timeRef.current = void 0;
|
|
232
|
+
}, threshold);
|
|
233
|
+
if (e.pointerType === "touch") {
|
|
234
|
+
let onContextMenu = (e) => {
|
|
235
|
+
e.preventDefault();
|
|
236
|
+
};
|
|
237
|
+
addGlobalListener(e.target, "contextmenu", onContextMenu, { once: true });
|
|
238
|
+
addGlobalListener(window, "pointerup", () => {
|
|
239
|
+
setTimeout(() => {
|
|
240
|
+
removeGlobalListener(e.target, "contextmenu", onContextMenu);
|
|
241
|
+
}, 30);
|
|
242
|
+
}, { once: true });
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
onPressEnd(e) {
|
|
247
|
+
if (timeRef.current) clearTimeout(timeRef.current);
|
|
248
|
+
if (onLongPressEnd && (e.pointerType === "mouse" || e.pointerType === "touch")) onLongPressEnd({
|
|
249
|
+
...e,
|
|
250
|
+
type: "longpressend"
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
return { longPressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, $ef06256079686ba0$export$f8aeda7b10753fa1(onLongPress && !isDisabled ? accessibilityDescription : void 0)) };
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region node_modules/@react-aria/focus/dist/virtualFocus.mjs
|
|
258
|
+
function $55f9b1ae81f22853$export$76e4e37e5339496d(to) {
|
|
259
|
+
let from = $55f9b1ae81f22853$export$759df0d867455a91($431fbd86ca7dc216$export$b204af158042fbac(to));
|
|
260
|
+
if (from !== to) {
|
|
261
|
+
if (from) $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to);
|
|
262
|
+
if (to) $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
function $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to) {
|
|
266
|
+
from.dispatchEvent(new FocusEvent("blur", { relatedTarget: to }));
|
|
267
|
+
from.dispatchEvent(new FocusEvent("focusout", {
|
|
268
|
+
bubbles: true,
|
|
269
|
+
relatedTarget: to
|
|
270
|
+
}));
|
|
271
|
+
}
|
|
272
|
+
function $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from) {
|
|
273
|
+
to.dispatchEvent(new FocusEvent("focus", { relatedTarget: from }));
|
|
274
|
+
to.dispatchEvent(new FocusEvent("focusin", {
|
|
275
|
+
bubbles: true,
|
|
276
|
+
relatedTarget: from
|
|
277
|
+
}));
|
|
278
|
+
}
|
|
279
|
+
function $55f9b1ae81f22853$export$759df0d867455a91(document) {
|
|
280
|
+
let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(document);
|
|
281
|
+
let activeDescendant = activeElement === null || activeElement === void 0 ? void 0 : activeElement.getAttribute("aria-activedescendant");
|
|
282
|
+
if (activeDescendant) return document.getElementById(activeDescendant) || activeElement;
|
|
283
|
+
return activeElement;
|
|
284
|
+
}
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region node_modules/@react-aria/selection/dist/utils.mjs
|
|
287
|
+
function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
|
|
288
|
+
return $c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
|
|
289
|
+
}
|
|
290
|
+
function $feb5ffebff200149$export$c3d8340acf92597f(collectionRef, key) {
|
|
291
|
+
var _collectionRef_current, _collectionRef_current1;
|
|
292
|
+
let selector = `[data-key="${CSS.escape(String(key))}"]`;
|
|
293
|
+
let collection = (_collectionRef_current = collectionRef.current) === null || _collectionRef_current === void 0 ? void 0 : _collectionRef_current.dataset.collection;
|
|
294
|
+
if (collection) selector = `[data-collection="${CSS.escape(collection)}"]${selector}`;
|
|
295
|
+
return (_collectionRef_current1 = collectionRef.current) === null || _collectionRef_current1 === void 0 ? void 0 : _collectionRef_current1.querySelector(selector);
|
|
296
|
+
}
|
|
297
|
+
var $feb5ffebff200149$var$collectionMap = new WeakMap();
|
|
298
|
+
function $feb5ffebff200149$export$881eb0d9f3605d9d(collection) {
|
|
299
|
+
let id = $bdb11010cef70236$export$f680877a34711e37();
|
|
300
|
+
$feb5ffebff200149$var$collectionMap.set(collection, id);
|
|
301
|
+
return id;
|
|
302
|
+
}
|
|
303
|
+
function $feb5ffebff200149$export$6aeb1680a0ae8741(collection) {
|
|
304
|
+
return $feb5ffebff200149$var$collectionMap.get(collection);
|
|
305
|
+
}
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region node_modules/@react-aria/selection/dist/useTypeSelect.mjs
|
|
308
|
+
/**
|
|
309
|
+
* Controls how long to wait before clearing the typeahead buffer.
|
|
310
|
+
*/ var $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
|
|
311
|
+
function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
312
|
+
let { keyboardDelegate, selectionManager, onTypeSelect } = options;
|
|
313
|
+
let state = useRef({
|
|
314
|
+
search: "",
|
|
315
|
+
timeout: void 0
|
|
316
|
+
}).current;
|
|
317
|
+
let onKeyDown = (e) => {
|
|
318
|
+
let character = $fb3050f43d946246$var$getStringForKey(e.key);
|
|
319
|
+
if (!character || e.ctrlKey || e.metaKey || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) || state.search.length === 0 && character === " ") return;
|
|
320
|
+
if (character === " " && state.search.trim().length > 0) {
|
|
321
|
+
e.preventDefault();
|
|
322
|
+
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
323
|
+
}
|
|
324
|
+
state.search += character;
|
|
325
|
+
if (keyboardDelegate.getKeyForSearch != null) {
|
|
326
|
+
let key = keyboardDelegate.getKeyForSearch(state.search, selectionManager.focusedKey);
|
|
327
|
+
if (key == null) key = keyboardDelegate.getKeyForSearch(state.search);
|
|
328
|
+
if (key != null) {
|
|
329
|
+
selectionManager.setFocusedKey(key);
|
|
330
|
+
if (onTypeSelect) onTypeSelect(key);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
clearTimeout(state.timeout);
|
|
334
|
+
state.timeout = setTimeout(() => {
|
|
335
|
+
state.search = "";
|
|
336
|
+
}, $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS);
|
|
337
|
+
};
|
|
338
|
+
return { typeSelectProps: { onKeyDownCapture: keyboardDelegate.getKeyForSearch ? onKeyDown : void 0 } };
|
|
339
|
+
}
|
|
340
|
+
function $fb3050f43d946246$var$getStringForKey(key) {
|
|
341
|
+
if (key.length === 1 || !/^[A-Z]/i.test(key)) return key;
|
|
342
|
+
return "";
|
|
343
|
+
}
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region node_modules/@react-aria/selection/dist/useSelectableCollection.mjs
|
|
346
|
+
function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
347
|
+
let { selectionManager: manager, keyboardDelegate: delegate, ref, autoFocus = false, shouldFocusWrap = false, disallowEmptySelection = false, disallowSelectAll = false, escapeKeyBehavior = "clearSelection", selectOnFocus = manager.selectionBehavior === "replace", disallowTypeAhead = false, shouldUseVirtualFocus, allowsTabNavigation = false, scrollRef = ref, linkBehavior = "action" } = options;
|
|
348
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
349
|
+
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
350
|
+
let onKeyDown = (e) => {
|
|
351
|
+
if (e.altKey && e.key === "Tab") e.preventDefault();
|
|
352
|
+
if (!ref.current || !$d4ee10de306f2510$export$4282f70798064fe0(ref.current, $d4ee10de306f2510$export$e58f029f0fbfdb29(e))) return;
|
|
353
|
+
const navigateToKey = (key, childFocus) => {
|
|
354
|
+
if (key != null) {
|
|
355
|
+
if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) {
|
|
356
|
+
flushSync(() => {
|
|
357
|
+
manager.setFocusedKey(key, childFocus);
|
|
358
|
+
});
|
|
359
|
+
let item = $feb5ffebff200149$export$c3d8340acf92597f(ref, key);
|
|
360
|
+
let itemProps = manager.getItemProps(key);
|
|
361
|
+
if (item) router.open(item, e, itemProps.href, itemProps.routerOptions);
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
manager.setFocusedKey(key, childFocus);
|
|
365
|
+
if (manager.isLink(key) && linkBehavior === "override") return;
|
|
366
|
+
if (e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(key);
|
|
367
|
+
else if (selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.replaceSelection(key);
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
switch (e.key) {
|
|
371
|
+
case "ArrowDown":
|
|
372
|
+
if (delegate.getKeyBelow) {
|
|
373
|
+
var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1;
|
|
374
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
|
|
375
|
+
if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey);
|
|
376
|
+
if (nextKey != null) {
|
|
377
|
+
e.preventDefault();
|
|
378
|
+
navigateToKey(nextKey);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
break;
|
|
382
|
+
case "ArrowUp":
|
|
383
|
+
if (delegate.getKeyAbove) {
|
|
384
|
+
var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1;
|
|
385
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);
|
|
386
|
+
if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey);
|
|
387
|
+
if (nextKey != null) {
|
|
388
|
+
e.preventDefault();
|
|
389
|
+
navigateToKey(nextKey);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
break;
|
|
393
|
+
case "ArrowLeft":
|
|
394
|
+
if (delegate.getKeyLeftOf) {
|
|
395
|
+
var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2;
|
|
396
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;
|
|
397
|
+
if (nextKey == null && shouldFocusWrap) nextKey = direction === "rtl" ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);
|
|
398
|
+
if (nextKey != null) {
|
|
399
|
+
e.preventDefault();
|
|
400
|
+
navigateToKey(nextKey, direction === "rtl" ? "first" : "last");
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
break;
|
|
404
|
+
case "ArrowRight":
|
|
405
|
+
if (delegate.getKeyRightOf) {
|
|
406
|
+
var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3;
|
|
407
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;
|
|
408
|
+
if (nextKey == null && shouldFocusWrap) nextKey = direction === "rtl" ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
|
|
409
|
+
if (nextKey != null) {
|
|
410
|
+
e.preventDefault();
|
|
411
|
+
navigateToKey(nextKey, direction === "rtl" ? "last" : "first");
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
break;
|
|
415
|
+
case "Home":
|
|
416
|
+
if (delegate.getFirstKey) {
|
|
417
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
418
|
+
e.preventDefault();
|
|
419
|
+
let firstKey = delegate.getFirstKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
420
|
+
manager.setFocusedKey(firstKey);
|
|
421
|
+
if (firstKey != null) {
|
|
422
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(firstKey);
|
|
423
|
+
else if (selectOnFocus) manager.replaceSelection(firstKey);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
break;
|
|
427
|
+
case "End":
|
|
428
|
+
if (delegate.getLastKey) {
|
|
429
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
430
|
+
e.preventDefault();
|
|
431
|
+
let lastKey = delegate.getLastKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
432
|
+
manager.setFocusedKey(lastKey);
|
|
433
|
+
if (lastKey != null) {
|
|
434
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(lastKey);
|
|
435
|
+
else if (selectOnFocus) manager.replaceSelection(lastKey);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
break;
|
|
439
|
+
case "PageDown":
|
|
440
|
+
if (delegate.getKeyPageBelow && manager.focusedKey != null) {
|
|
441
|
+
let nextKey = delegate.getKeyPageBelow(manager.focusedKey);
|
|
442
|
+
if (nextKey != null) {
|
|
443
|
+
e.preventDefault();
|
|
444
|
+
navigateToKey(nextKey);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
break;
|
|
448
|
+
case "PageUp":
|
|
449
|
+
if (delegate.getKeyPageAbove && manager.focusedKey != null) {
|
|
450
|
+
let nextKey = delegate.getKeyPageAbove(manager.focusedKey);
|
|
451
|
+
if (nextKey != null) {
|
|
452
|
+
e.preventDefault();
|
|
453
|
+
navigateToKey(nextKey);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
break;
|
|
457
|
+
case "a":
|
|
458
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && manager.selectionMode === "multiple" && disallowSelectAll !== true) {
|
|
459
|
+
e.preventDefault();
|
|
460
|
+
manager.selectAll();
|
|
461
|
+
}
|
|
462
|
+
break;
|
|
463
|
+
case "Escape":
|
|
464
|
+
if (escapeKeyBehavior === "clearSelection" && !disallowEmptySelection && manager.selectedKeys.size !== 0) {
|
|
465
|
+
e.stopPropagation();
|
|
466
|
+
e.preventDefault();
|
|
467
|
+
manager.clearSelection();
|
|
468
|
+
}
|
|
469
|
+
break;
|
|
470
|
+
case "Tab": if (!allowsTabNavigation) {
|
|
471
|
+
if (e.shiftKey) ref.current.focus();
|
|
472
|
+
else {
|
|
473
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, { tabbable: true });
|
|
474
|
+
let next = void 0;
|
|
475
|
+
let last;
|
|
476
|
+
do {
|
|
477
|
+
last = walker.lastChild();
|
|
478
|
+
if (last) next = last;
|
|
479
|
+
} while (last);
|
|
480
|
+
let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576();
|
|
481
|
+
if (next && (!$d4ee10de306f2510$export$b4f377a2b6254582(next) || activeElement && !$b4b717babfbb907b$export$bebd5a1431fec25d(activeElement))) $7215afc6de606d6b$export$de79e2c695e052f3(next);
|
|
482
|
+
}
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
let scrollPos = useRef({
|
|
488
|
+
top: 0,
|
|
489
|
+
left: 0
|
|
490
|
+
});
|
|
491
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(scrollRef, "scroll", () => {
|
|
492
|
+
var _scrollRef_current, _scrollRef_current1;
|
|
493
|
+
var _scrollRef_current_scrollTop, _scrollRef_current_scrollLeft;
|
|
494
|
+
scrollPos.current = {
|
|
495
|
+
top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== void 0 ? _scrollRef_current_scrollTop : 0,
|
|
496
|
+
left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === void 0 ? void 0 : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== void 0 ? _scrollRef_current_scrollLeft : 0
|
|
497
|
+
};
|
|
498
|
+
});
|
|
499
|
+
let onFocus = (e) => {
|
|
500
|
+
if (manager.isFocused) {
|
|
501
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e))) manager.setFocused(false);
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e))) return;
|
|
505
|
+
manager.setFocused(true);
|
|
506
|
+
if (manager.focusedKey == null) {
|
|
507
|
+
var _delegate_getLastKey, _delegate_getFirstKey;
|
|
508
|
+
let navigateToKey = (key) => {
|
|
509
|
+
if (key != null) {
|
|
510
|
+
manager.setFocusedKey(key);
|
|
511
|
+
if (selectOnFocus && !manager.isSelected(key)) manager.replaceSelection(key);
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
let relatedTarget = e.relatedTarget;
|
|
515
|
+
var _manager_lastSelectedKey, _manager_firstSelectedKey;
|
|
516
|
+
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate));
|
|
517
|
+
else navigateToKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
|
|
518
|
+
} else if (scrollRef.current) {
|
|
519
|
+
scrollRef.current.scrollTop = scrollPos.current.top;
|
|
520
|
+
scrollRef.current.scrollLeft = scrollPos.current.left;
|
|
521
|
+
}
|
|
522
|
+
if (manager.focusedKey != null && scrollRef.current) {
|
|
523
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
524
|
+
if (element instanceof HTMLElement) {
|
|
525
|
+
if (!$d4ee10de306f2510$export$b4f377a2b6254582(element) && !shouldUseVirtualFocus) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
526
|
+
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "keyboard") $2f04cbc44ee30ce0$export$c826860796309d1b(element, { containingElement: ref.current });
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
let onBlur = (e) => {
|
|
531
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.relatedTarget)) manager.setFocused(false);
|
|
532
|
+
};
|
|
533
|
+
let shouldVirtualFocusFirst = useRef(false);
|
|
534
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$831c820ad60f9d12, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
535
|
+
let { detail } = e;
|
|
536
|
+
e.stopPropagation();
|
|
537
|
+
manager.setFocused(true);
|
|
538
|
+
if ((detail === null || detail === void 0 ? void 0 : detail.focusStrategy) === "first") shouldVirtualFocusFirst.current = true;
|
|
539
|
+
});
|
|
540
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
541
|
+
if (shouldVirtualFocusFirst.current) {
|
|
542
|
+
var _delegate_getFirstKey;
|
|
543
|
+
var _delegate_getFirstKey1;
|
|
544
|
+
let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
545
|
+
if (keyToFocus == null) {
|
|
546
|
+
let previousActiveElement = $d4ee10de306f2510$export$cd4e5573fbe2b576();
|
|
547
|
+
$55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
548
|
+
$55f9b1ae81f22853$export$2b35b76d2e30e129(previousActiveElement, null);
|
|
549
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
550
|
+
} else {
|
|
551
|
+
manager.setFocusedKey(keyToFocus);
|
|
552
|
+
shouldVirtualFocusFirst.current = false;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}, [manager.collection]);
|
|
556
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
557
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
558
|
+
}, [manager.focusedKey]);
|
|
559
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
560
|
+
var _e_detail;
|
|
561
|
+
e.stopPropagation();
|
|
562
|
+
manager.setFocused(false);
|
|
563
|
+
if ((_e_detail = e.detail) === null || _e_detail === void 0 ? void 0 : _e_detail.clearFocusKey) manager.setFocusedKey(null);
|
|
564
|
+
});
|
|
565
|
+
const autoFocusRef = useRef(autoFocus);
|
|
566
|
+
const didAutoFocusRef = useRef(false);
|
|
567
|
+
useEffect(() => {
|
|
568
|
+
if (autoFocusRef.current) {
|
|
569
|
+
var _delegate_getFirstKey, _delegate_getLastKey;
|
|
570
|
+
let focusedKey = null;
|
|
571
|
+
var _delegate_getFirstKey1;
|
|
572
|
+
if (autoFocus === "first") focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
573
|
+
var _delegate_getLastKey1;
|
|
574
|
+
if (autoFocus === "last") focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== void 0 ? _delegate_getLastKey1 : null;
|
|
575
|
+
let selectedKeys = manager.selectedKeys;
|
|
576
|
+
if (selectedKeys.size) {
|
|
577
|
+
for (let key of selectedKeys) if (manager.canSelectItem(key)) {
|
|
578
|
+
focusedKey = key;
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
manager.setFocused(true);
|
|
583
|
+
manager.setFocusedKey(focusedKey);
|
|
584
|
+
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
585
|
+
if (manager.collection.size > 0) {
|
|
586
|
+
autoFocusRef.current = false;
|
|
587
|
+
didAutoFocusRef.current = true;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
let lastFocusedKey = useRef(manager.focusedKey);
|
|
592
|
+
let raf = useRef(null);
|
|
593
|
+
useEffect(() => {
|
|
594
|
+
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
|
|
595
|
+
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
596
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
597
|
+
if (!(element instanceof HTMLElement)) return;
|
|
598
|
+
if (modality === "keyboard" || didAutoFocusRef.current) {
|
|
599
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
600
|
+
raf.current = requestAnimationFrame(() => {
|
|
601
|
+
if (scrollRef.current) {
|
|
602
|
+
$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element);
|
|
603
|
+
if (modality !== "virtual") $2f04cbc44ee30ce0$export$c826860796309d1b(element, { containingElement: ref.current });
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
609
|
+
lastFocusedKey.current = manager.focusedKey;
|
|
610
|
+
didAutoFocusRef.current = false;
|
|
611
|
+
});
|
|
612
|
+
useEffect(() => {
|
|
613
|
+
return () => {
|
|
614
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
615
|
+
};
|
|
616
|
+
}, []);
|
|
617
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
|
|
618
|
+
e.preventDefault();
|
|
619
|
+
manager.setFocused(true);
|
|
620
|
+
});
|
|
621
|
+
let handlers = {
|
|
622
|
+
onKeyDown,
|
|
623
|
+
onFocus,
|
|
624
|
+
onBlur,
|
|
625
|
+
onMouseDown(e) {
|
|
626
|
+
if (scrollRef.current === $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) e.preventDefault();
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
let { typeSelectProps } = $fb3050f43d946246$export$e32c88dfddc6e1d8({
|
|
630
|
+
keyboardDelegate: delegate,
|
|
631
|
+
selectionManager: manager
|
|
632
|
+
});
|
|
633
|
+
if (!disallowTypeAhead) handlers = $3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers);
|
|
634
|
+
let tabIndex = void 0;
|
|
635
|
+
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
|
|
636
|
+
let collectionId = $feb5ffebff200149$export$881eb0d9f3605d9d(manager.collection);
|
|
637
|
+
return { collectionProps: $3ef42575df84b30b$export$9d1611c77c2fe928(handlers, {
|
|
638
|
+
tabIndex,
|
|
639
|
+
"data-collection": collectionId
|
|
640
|
+
}) };
|
|
641
|
+
}
|
|
642
|
+
//#endregion
|
|
643
|
+
//#region node_modules/@react-aria/selection/dist/useSelectableItem.mjs
|
|
644
|
+
function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
645
|
+
let { id, selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options;
|
|
646
|
+
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
647
|
+
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
648
|
+
let onSelect = (e) => {
|
|
649
|
+
if (e.pointerType === "keyboard" && $feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.toggleSelection(key);
|
|
650
|
+
else {
|
|
651
|
+
if (manager.selectionMode === "none") return;
|
|
652
|
+
if (manager.isLink(key)) {
|
|
653
|
+
if (linkBehavior === "selection" && ref.current) {
|
|
654
|
+
let itemProps = manager.getItemProps(key);
|
|
655
|
+
router.open(ref.current, e, itemProps.href, itemProps.routerOptions);
|
|
656
|
+
manager.setSelectedKeys(manager.selectedKeys);
|
|
657
|
+
return;
|
|
658
|
+
} else if (linkBehavior === "override" || linkBehavior === "none") return;
|
|
659
|
+
}
|
|
660
|
+
if (manager.selectionMode === "single") if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);
|
|
661
|
+
else manager.replaceSelection(key);
|
|
662
|
+
else if (e && e.shiftKey) manager.extendSelection(key);
|
|
663
|
+
else if (manager.selectionBehavior === "toggle" || e && ($21f1aa98acb08317$export$16792effe837dba3(e) || e.pointerType === "touch" || e.pointerType === "virtual")) manager.toggleSelection(key);
|
|
664
|
+
else manager.replaceSelection(key);
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
useEffect(() => {
|
|
668
|
+
if (key === manager.focusedKey && manager.isFocused) if (!shouldUseVirtualFocus) {
|
|
669
|
+
if (focus) focus();
|
|
670
|
+
else if ($d4ee10de306f2510$export$cd4e5573fbe2b576() !== ref.current && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
671
|
+
} else $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
672
|
+
}, [
|
|
673
|
+
ref,
|
|
674
|
+
key,
|
|
675
|
+
manager.focusedKey,
|
|
676
|
+
manager.childFocusStrategy,
|
|
677
|
+
manager.isFocused,
|
|
678
|
+
shouldUseVirtualFocus
|
|
679
|
+
]);
|
|
680
|
+
isDisabled = isDisabled || manager.isDisabled(key);
|
|
681
|
+
let itemProps = {};
|
|
682
|
+
if (!shouldUseVirtualFocus && !isDisabled) itemProps = {
|
|
683
|
+
tabIndex: key === manager.focusedKey ? 0 : -1,
|
|
684
|
+
onFocus(e) {
|
|
685
|
+
if ($d4ee10de306f2510$export$e58f029f0fbfdb29(e) === ref.current) manager.setFocusedKey(key);
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
else if (isDisabled) itemProps.onMouseDown = (e) => {
|
|
689
|
+
e.preventDefault();
|
|
690
|
+
};
|
|
691
|
+
useEffect(() => {
|
|
692
|
+
if (isDisabled && manager.focusedKey === key) manager.setFocusedKey(null);
|
|
693
|
+
}, [
|
|
694
|
+
manager,
|
|
695
|
+
isDisabled,
|
|
696
|
+
key
|
|
697
|
+
]);
|
|
698
|
+
let isLinkOverride = manager.isLink(key) && linkBehavior === "override";
|
|
699
|
+
let isActionOverride = onAction && options["UNSTABLE_itemBehavior"] === "action";
|
|
700
|
+
let hasLinkAction = manager.isLink(key) && linkBehavior !== "selection" && linkBehavior !== "none";
|
|
701
|
+
let allowsSelection = !isDisabled && manager.canSelectItem(key) && !isLinkOverride && !isActionOverride;
|
|
702
|
+
let allowsActions = (onAction || hasLinkAction) && !isDisabled;
|
|
703
|
+
let hasPrimaryAction = allowsActions && (manager.selectionBehavior === "replace" ? !allowsSelection : !allowsSelection || manager.isEmpty);
|
|
704
|
+
let hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === "replace";
|
|
705
|
+
let hasAction = hasPrimaryAction || hasSecondaryAction;
|
|
706
|
+
let modality = useRef(null);
|
|
707
|
+
let longPressEnabled = hasAction && allowsSelection;
|
|
708
|
+
let longPressEnabledOnPressStart = useRef(false);
|
|
709
|
+
let hadPrimaryActionOnPressStart = useRef(false);
|
|
710
|
+
let collectionItemProps = manager.getItemProps(key);
|
|
711
|
+
let performAction = (e) => {
|
|
712
|
+
if (onAction) {
|
|
713
|
+
var _ref_current;
|
|
714
|
+
onAction();
|
|
715
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: true }));
|
|
716
|
+
}
|
|
717
|
+
if (hasLinkAction && ref.current) router.open(ref.current, e, collectionItemProps.href, collectionItemProps.routerOptions);
|
|
718
|
+
};
|
|
719
|
+
let itemPressProps = { ref };
|
|
720
|
+
if (shouldSelectOnPressUp) {
|
|
721
|
+
itemPressProps.onPressStart = (e) => {
|
|
722
|
+
modality.current = e.pointerType;
|
|
723
|
+
longPressEnabledOnPressStart.current = longPressEnabled;
|
|
724
|
+
if (e.pointerType === "keyboard" && (!hasAction || $880e95eb8b93ba9a$var$isSelectionKey(e.key))) onSelect(e);
|
|
725
|
+
};
|
|
726
|
+
if (!allowsDifferentPressOrigin) itemPressProps.onPress = (e) => {
|
|
727
|
+
if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== "mouse") {
|
|
728
|
+
if (e.pointerType === "keyboard" && !$880e95eb8b93ba9a$var$isActionKey(e.key)) return;
|
|
729
|
+
performAction(e);
|
|
730
|
+
} else if (e.pointerType !== "keyboard" && allowsSelection) onSelect(e);
|
|
731
|
+
};
|
|
732
|
+
else {
|
|
733
|
+
itemPressProps.onPressUp = hasPrimaryAction ? void 0 : (e) => {
|
|
734
|
+
if (e.pointerType === "mouse" && allowsSelection) onSelect(e);
|
|
735
|
+
};
|
|
736
|
+
itemPressProps.onPress = hasPrimaryAction ? performAction : (e) => {
|
|
737
|
+
if (e.pointerType !== "keyboard" && e.pointerType !== "mouse" && allowsSelection) onSelect(e);
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
} else {
|
|
741
|
+
itemPressProps.onPressStart = (e) => {
|
|
742
|
+
modality.current = e.pointerType;
|
|
743
|
+
longPressEnabledOnPressStart.current = longPressEnabled;
|
|
744
|
+
hadPrimaryActionOnPressStart.current = hasPrimaryAction;
|
|
745
|
+
if (allowsSelection && (e.pointerType === "mouse" && !hasPrimaryAction || e.pointerType === "keyboard" && (!allowsActions || $880e95eb8b93ba9a$var$isSelectionKey(e.key)))) onSelect(e);
|
|
746
|
+
};
|
|
747
|
+
itemPressProps.onPress = (e) => {
|
|
748
|
+
if (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && hasAction && $880e95eb8b93ba9a$var$isActionKey(e.key) || e.pointerType === "mouse" && hadPrimaryActionOnPressStart.current) {
|
|
749
|
+
if (hasAction) performAction(e);
|
|
750
|
+
else if (allowsSelection) onSelect(e);
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
itemProps["data-collection"] = $feb5ffebff200149$export$6aeb1680a0ae8741(manager.collection);
|
|
755
|
+
itemProps["data-key"] = key;
|
|
756
|
+
itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;
|
|
757
|
+
if (shouldUseVirtualFocus) itemPressProps = $3ef42575df84b30b$export$9d1611c77c2fe928(itemPressProps, {
|
|
758
|
+
onPressStart(e) {
|
|
759
|
+
if (e.pointerType !== "touch") {
|
|
760
|
+
manager.setFocused(true);
|
|
761
|
+
manager.setFocusedKey(key);
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
onPress(e) {
|
|
765
|
+
if (e.pointerType === "touch") {
|
|
766
|
+
manager.setFocused(true);
|
|
767
|
+
manager.setFocusedKey(key);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
if (collectionItemProps) {
|
|
772
|
+
for (let key of [
|
|
773
|
+
"onPressStart",
|
|
774
|
+
"onPressEnd",
|
|
775
|
+
"onPressChange",
|
|
776
|
+
"onPress",
|
|
777
|
+
"onPressUp",
|
|
778
|
+
"onClick"
|
|
779
|
+
]) if (collectionItemProps[key]) itemPressProps[key] = $ff5963eb1fccf552$export$e08e3b67e392101e(itemPressProps[key], collectionItemProps[key]);
|
|
780
|
+
}
|
|
781
|
+
let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21(itemPressProps);
|
|
782
|
+
let onDoubleClick = hasSecondaryAction ? (e) => {
|
|
783
|
+
if (modality.current === "mouse") {
|
|
784
|
+
e.stopPropagation();
|
|
785
|
+
e.preventDefault();
|
|
786
|
+
performAction(e);
|
|
787
|
+
}
|
|
788
|
+
} : void 0;
|
|
789
|
+
let { longPressProps } = $8a26561d2877236e$export$c24ed0104d07eab9({
|
|
790
|
+
isDisabled: !longPressEnabled,
|
|
791
|
+
onLongPress(e) {
|
|
792
|
+
if (e.pointerType === "touch") {
|
|
793
|
+
onSelect(e);
|
|
794
|
+
manager.setSelectionBehavior("toggle");
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
});
|
|
798
|
+
let onDragStartCapture = (e) => {
|
|
799
|
+
if (modality.current === "touch" && longPressEnabledOnPressStart.current) e.preventDefault();
|
|
800
|
+
};
|
|
801
|
+
let onClick = linkBehavior !== "none" && manager.isLink(key) ? (e) => {
|
|
802
|
+
if (!$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) e.preventDefault();
|
|
803
|
+
} : void 0;
|
|
804
|
+
return {
|
|
805
|
+
itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(itemProps, allowsSelection || hasPrimaryAction || shouldUseVirtualFocus && !isDisabled ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
|
|
806
|
+
onDoubleClick,
|
|
807
|
+
onDragStartCapture,
|
|
808
|
+
onClick,
|
|
809
|
+
id
|
|
810
|
+
}, shouldUseVirtualFocus ? { onMouseDown: (e) => e.preventDefault() } : void 0),
|
|
811
|
+
isPressed,
|
|
812
|
+
isSelected: manager.isSelected(key),
|
|
813
|
+
isFocused: manager.isFocused && manager.focusedKey === key,
|
|
814
|
+
isDisabled,
|
|
815
|
+
allowsSelection,
|
|
816
|
+
hasAction
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
function $880e95eb8b93ba9a$var$isActionKey(key) {
|
|
820
|
+
return key === "Enter";
|
|
821
|
+
}
|
|
822
|
+
function $880e95eb8b93ba9a$var$isSelectionKey(key) {
|
|
823
|
+
return key === " ";
|
|
824
|
+
}
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region node_modules/@react-stately/collections/dist/CollectionBuilder.mjs
|
|
827
|
+
var $eb2240fc39a57fa5$export$bf788dd355e3a401 = class {
|
|
828
|
+
build(props, context) {
|
|
829
|
+
this.context = context;
|
|
830
|
+
return $eb2240fc39a57fa5$var$iterable(() => this.iterateCollection(props));
|
|
831
|
+
}
|
|
832
|
+
*iterateCollection(props) {
|
|
833
|
+
let { children, items } = props;
|
|
834
|
+
if (React.isValidElement(children) && children.type === React.Fragment) yield* this.iterateCollection({
|
|
835
|
+
children: children.props.children,
|
|
836
|
+
items
|
|
837
|
+
});
|
|
838
|
+
else if (typeof children === "function") {
|
|
839
|
+
if (!items) throw new Error("props.children was a function but props.items is missing");
|
|
840
|
+
let index = 0;
|
|
841
|
+
for (let item of items) {
|
|
842
|
+
yield* this.getFullNode({
|
|
843
|
+
value: item,
|
|
844
|
+
index
|
|
845
|
+
}, { renderer: children });
|
|
846
|
+
index++;
|
|
847
|
+
}
|
|
848
|
+
} else {
|
|
849
|
+
let items = [];
|
|
850
|
+
React.Children.forEach(children, (child) => {
|
|
851
|
+
if (child) items.push(child);
|
|
852
|
+
});
|
|
853
|
+
let index = 0;
|
|
854
|
+
for (let item of items) {
|
|
855
|
+
let nodes = this.getFullNode({
|
|
856
|
+
element: item,
|
|
857
|
+
index
|
|
858
|
+
}, {});
|
|
859
|
+
for (let node of nodes) {
|
|
860
|
+
index++;
|
|
861
|
+
yield node;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
getKey(item, partialNode, state, parentKey) {
|
|
867
|
+
if (item.key != null) return item.key;
|
|
868
|
+
if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`;
|
|
869
|
+
let v = partialNode.value;
|
|
870
|
+
if (v != null) {
|
|
871
|
+
var _v_key;
|
|
872
|
+
let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
|
|
873
|
+
if (key == null) throw new Error("No key found for item");
|
|
874
|
+
return key;
|
|
875
|
+
}
|
|
876
|
+
return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;
|
|
877
|
+
}
|
|
878
|
+
getChildState(state, partialNode) {
|
|
879
|
+
return { renderer: partialNode.renderer || state.renderer };
|
|
880
|
+
}
|
|
881
|
+
*getFullNode(partialNode, state, parentKey, parentNode) {
|
|
882
|
+
if (React.isValidElement(partialNode.element) && partialNode.element.type === React.Fragment) {
|
|
883
|
+
let children = [];
|
|
884
|
+
React.Children.forEach(partialNode.element.props.children, (child) => {
|
|
885
|
+
children.push(child);
|
|
886
|
+
});
|
|
887
|
+
var _partialNode_index;
|
|
888
|
+
let index = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== void 0 ? _partialNode_index : 0;
|
|
889
|
+
for (const child of children) yield* this.getFullNode({
|
|
890
|
+
element: child,
|
|
891
|
+
index: index++
|
|
892
|
+
}, state, parentKey, parentNode);
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
let element = partialNode.element;
|
|
896
|
+
if (!element && partialNode.value && state && state.renderer) {
|
|
897
|
+
let cached = this.cache.get(partialNode.value);
|
|
898
|
+
if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {
|
|
899
|
+
cached.index = partialNode.index;
|
|
900
|
+
cached.parentKey = parentNode ? parentNode.key : null;
|
|
901
|
+
yield cached;
|
|
902
|
+
return;
|
|
903
|
+
}
|
|
904
|
+
element = state.renderer(partialNode.value);
|
|
905
|
+
}
|
|
906
|
+
if (React.isValidElement(element)) {
|
|
907
|
+
let type = element.type;
|
|
908
|
+
if (typeof type !== "function" && typeof type.getCollectionNode !== "function") {
|
|
909
|
+
let name = element.type;
|
|
910
|
+
throw new Error(`Unknown element <${name}> in collection.`);
|
|
911
|
+
}
|
|
912
|
+
let childNodes = type.getCollectionNode(element.props, this.context);
|
|
913
|
+
var _partialNode_index1;
|
|
914
|
+
let index = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== void 0 ? _partialNode_index1 : 0;
|
|
915
|
+
let result = childNodes.next();
|
|
916
|
+
while (!result.done && result.value) {
|
|
917
|
+
let childNode = result.value;
|
|
918
|
+
partialNode.index = index;
|
|
919
|
+
var _childNode_key;
|
|
920
|
+
let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== void 0 ? _childNode_key : null;
|
|
921
|
+
if (nodeKey == null) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);
|
|
922
|
+
let children = [...this.getFullNode({
|
|
923
|
+
...childNode,
|
|
924
|
+
key: nodeKey,
|
|
925
|
+
index,
|
|
926
|
+
wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)
|
|
927
|
+
}, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode)];
|
|
928
|
+
for (let node of children) {
|
|
929
|
+
var _childNode_value, _ref;
|
|
930
|
+
node.value = (_ref = (_childNode_value = childNode.value) !== null && _childNode_value !== void 0 ? _childNode_value : partialNode.value) !== null && _ref !== void 0 ? _ref : null;
|
|
931
|
+
if (node.value) this.cache.set(node.value, node);
|
|
932
|
+
var _parentNode_type;
|
|
933
|
+
if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize((_parentNode_type = parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== null && _parentNode_type !== void 0 ? _parentNode_type : "unknown parent type")}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
|
|
934
|
+
index++;
|
|
935
|
+
yield node;
|
|
936
|
+
}
|
|
937
|
+
result = childNodes.next(children);
|
|
938
|
+
}
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
if (partialNode.key == null || partialNode.type == null) return;
|
|
942
|
+
let builder = this;
|
|
943
|
+
var _partialNode_value, _partialNode_textValue;
|
|
944
|
+
let node = {
|
|
945
|
+
type: partialNode.type,
|
|
946
|
+
props: partialNode.props,
|
|
947
|
+
key: partialNode.key,
|
|
948
|
+
parentKey: parentNode ? parentNode.key : null,
|
|
949
|
+
value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== void 0 ? _partialNode_value : null,
|
|
950
|
+
level: parentNode ? parentNode.level + 1 : 0,
|
|
951
|
+
index: partialNode.index,
|
|
952
|
+
rendered: partialNode.rendered,
|
|
953
|
+
textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== void 0 ? _partialNode_textValue : "",
|
|
954
|
+
"aria-label": partialNode["aria-label"],
|
|
955
|
+
wrapper: partialNode.wrapper,
|
|
956
|
+
shouldInvalidate: partialNode.shouldInvalidate,
|
|
957
|
+
hasChildNodes: partialNode.hasChildNodes || false,
|
|
958
|
+
childNodes: $eb2240fc39a57fa5$var$iterable(function* () {
|
|
959
|
+
if (!partialNode.hasChildNodes || !partialNode.childNodes) return;
|
|
960
|
+
let index = 0;
|
|
961
|
+
for (let child of partialNode.childNodes()) {
|
|
962
|
+
if (child.key != null) child.key = `${node.key}${child.key}`;
|
|
963
|
+
let nodes = builder.getFullNode({
|
|
964
|
+
...child,
|
|
965
|
+
index
|
|
966
|
+
}, builder.getChildState(state, child), node.key, node);
|
|
967
|
+
for (let node of nodes) {
|
|
968
|
+
index++;
|
|
969
|
+
yield node;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
})
|
|
973
|
+
};
|
|
974
|
+
yield node;
|
|
975
|
+
}
|
|
976
|
+
constructor() {
|
|
977
|
+
this.cache = new WeakMap();
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
function $eb2240fc39a57fa5$var$iterable(iterator) {
|
|
981
|
+
let cache = [];
|
|
982
|
+
let iterable = null;
|
|
983
|
+
return { *[Symbol.iterator]() {
|
|
984
|
+
for (let item of cache) yield item;
|
|
985
|
+
if (!iterable) iterable = iterator();
|
|
986
|
+
for (let item of iterable) {
|
|
987
|
+
cache.push(item);
|
|
988
|
+
yield item;
|
|
989
|
+
}
|
|
990
|
+
} };
|
|
991
|
+
}
|
|
992
|
+
function $eb2240fc39a57fa5$var$compose(outer, inner) {
|
|
993
|
+
if (outer && inner) return (element) => outer(inner(element));
|
|
994
|
+
if (outer) return outer;
|
|
995
|
+
if (inner) return inner;
|
|
996
|
+
}
|
|
997
|
+
function $eb2240fc39a57fa5$var$capitalize(str) {
|
|
998
|
+
return str[0].toUpperCase() + str.slice(1);
|
|
999
|
+
}
|
|
1000
|
+
//#endregion
|
|
1001
|
+
//#region node_modules/@react-stately/collections/dist/useCollection.mjs
|
|
1002
|
+
function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {
|
|
1003
|
+
let builder = useMemo(() => new $eb2240fc39a57fa5$export$bf788dd355e3a401(), []);
|
|
1004
|
+
let { children, items, collection } = props;
|
|
1005
|
+
return useMemo(() => {
|
|
1006
|
+
if (collection) return collection;
|
|
1007
|
+
return factory(builder.build({
|
|
1008
|
+
children,
|
|
1009
|
+
items
|
|
1010
|
+
}, context));
|
|
1011
|
+
}, [
|
|
1012
|
+
builder,
|
|
1013
|
+
children,
|
|
1014
|
+
items,
|
|
1015
|
+
collection,
|
|
1016
|
+
context,
|
|
1017
|
+
factory
|
|
1018
|
+
]);
|
|
1019
|
+
}
|
|
1020
|
+
//#endregion
|
|
1021
|
+
//#region node_modules/@react-stately/collections/dist/getChildNodes.mjs
|
|
1022
|
+
function $c5a24bc478652b5f$export$1005530eda016c13(node, collection) {
|
|
1023
|
+
if (typeof collection.getChildren === "function") return collection.getChildren(node.key);
|
|
1024
|
+
return node.childNodes;
|
|
1025
|
+
}
|
|
1026
|
+
function $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) {
|
|
1027
|
+
return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0);
|
|
1028
|
+
}
|
|
1029
|
+
function $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index) {
|
|
1030
|
+
if (index < 0) return void 0;
|
|
1031
|
+
let i = 0;
|
|
1032
|
+
for (let item of iterable) {
|
|
1033
|
+
if (i === index) return item;
|
|
1034
|
+
i++;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
function $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a, b) {
|
|
1038
|
+
if (a.parentKey === b.parentKey) return a.index - b.index;
|
|
1039
|
+
let aAncestors = [...$c5a24bc478652b5f$var$getAncestors(collection, a), a];
|
|
1040
|
+
let bAncestors = [...$c5a24bc478652b5f$var$getAncestors(collection, b), b];
|
|
1041
|
+
let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i) => a !== bAncestors[i]);
|
|
1042
|
+
if (firstNonMatchingAncestor !== -1) {
|
|
1043
|
+
a = aAncestors[firstNonMatchingAncestor];
|
|
1044
|
+
b = bAncestors[firstNonMatchingAncestor];
|
|
1045
|
+
return a.index - b.index;
|
|
1046
|
+
}
|
|
1047
|
+
if (aAncestors.findIndex((node) => node === b) >= 0) return 1;
|
|
1048
|
+
else if (bAncestors.findIndex((node) => node === a) >= 0) return -1;
|
|
1049
|
+
return -1;
|
|
1050
|
+
}
|
|
1051
|
+
function $c5a24bc478652b5f$var$getAncestors(collection, node) {
|
|
1052
|
+
let parents = [];
|
|
1053
|
+
let currNode = node;
|
|
1054
|
+
while ((currNode === null || currNode === void 0 ? void 0 : currNode.parentKey) != null) {
|
|
1055
|
+
currNode = collection.getItem(currNode.parentKey);
|
|
1056
|
+
if (currNode) parents.unshift(currNode);
|
|
1057
|
+
}
|
|
1058
|
+
return parents;
|
|
1059
|
+
}
|
|
1060
|
+
//#endregion
|
|
1061
|
+
//#region node_modules/@react-aria/collections/dist/BaseCollection.mjs
|
|
1062
|
+
var $23b9f4fcf0fe224b$export$d68d59712b04d9d1 = class {
|
|
1063
|
+
get childNodes() {
|
|
1064
|
+
throw new Error("childNodes is not supported");
|
|
1065
|
+
}
|
|
1066
|
+
clone() {
|
|
1067
|
+
let node = new this.constructor(this.key);
|
|
1068
|
+
node.value = this.value;
|
|
1069
|
+
node.level = this.level;
|
|
1070
|
+
node.hasChildNodes = this.hasChildNodes;
|
|
1071
|
+
node.rendered = this.rendered;
|
|
1072
|
+
node.textValue = this.textValue;
|
|
1073
|
+
node["aria-label"] = this["aria-label"];
|
|
1074
|
+
node.index = this.index;
|
|
1075
|
+
node.parentKey = this.parentKey;
|
|
1076
|
+
node.prevKey = this.prevKey;
|
|
1077
|
+
node.nextKey = this.nextKey;
|
|
1078
|
+
node.firstChildKey = this.firstChildKey;
|
|
1079
|
+
node.lastChildKey = this.lastChildKey;
|
|
1080
|
+
node.props = this.props;
|
|
1081
|
+
node.render = this.render;
|
|
1082
|
+
node.colSpan = this.colSpan;
|
|
1083
|
+
node.colIndex = this.colIndex;
|
|
1084
|
+
return node;
|
|
1085
|
+
}
|
|
1086
|
+
filter(collection, newCollection, filterFn) {
|
|
1087
|
+
let clone = this.clone();
|
|
1088
|
+
newCollection.addDescendants(clone, collection);
|
|
1089
|
+
return clone;
|
|
1090
|
+
}
|
|
1091
|
+
constructor(key) {
|
|
1092
|
+
this.value = null;
|
|
1093
|
+
this.level = 0;
|
|
1094
|
+
this.hasChildNodes = false;
|
|
1095
|
+
this.rendered = null;
|
|
1096
|
+
this.textValue = "";
|
|
1097
|
+
this["aria-label"] = void 0;
|
|
1098
|
+
this.index = 0;
|
|
1099
|
+
this.parentKey = null;
|
|
1100
|
+
this.prevKey = null;
|
|
1101
|
+
this.nextKey = null;
|
|
1102
|
+
this.firstChildKey = null;
|
|
1103
|
+
this.lastChildKey = null;
|
|
1104
|
+
this.props = {};
|
|
1105
|
+
this.colSpan = null;
|
|
1106
|
+
this.colIndex = null;
|
|
1107
|
+
this.type = this.constructor.type;
|
|
1108
|
+
this.key = key;
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
var $23b9f4fcf0fe224b$export$b1918e978f1ee46f = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
1112
|
+
filter(collection, newCollection, filterFn) {
|
|
1113
|
+
let [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, this.firstChildKey, filterFn);
|
|
1114
|
+
let newNode = this.clone();
|
|
1115
|
+
newNode.firstChildKey = firstKey;
|
|
1116
|
+
newNode.lastChildKey = lastKey;
|
|
1117
|
+
return newNode;
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
var $23b9f4fcf0fe224b$export$5ae2504e948afce5 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {};
|
|
1121
|
+
$23b9f4fcf0fe224b$export$5ae2504e948afce5.type = "header";
|
|
1122
|
+
var $23b9f4fcf0fe224b$export$8258a0665a675899 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {};
|
|
1123
|
+
$23b9f4fcf0fe224b$export$8258a0665a675899.type = "loader";
|
|
1124
|
+
var $23b9f4fcf0fe224b$export$fd11f34e1d07f134 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f {
|
|
1125
|
+
filter(collection, newCollection, filterFn) {
|
|
1126
|
+
if (filterFn(this.textValue, this)) {
|
|
1127
|
+
let clone = this.clone();
|
|
1128
|
+
newCollection.addDescendants(clone, collection);
|
|
1129
|
+
return clone;
|
|
1130
|
+
}
|
|
1131
|
+
return null;
|
|
1132
|
+
}
|
|
1133
|
+
};
|
|
1134
|
+
$23b9f4fcf0fe224b$export$fd11f34e1d07f134.type = "item";
|
|
1135
|
+
var $23b9f4fcf0fe224b$export$437f11dc9b403b78 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f {
|
|
1136
|
+
filter(collection, newCollection, filterFn) {
|
|
1137
|
+
let filteredSection = super.filter(collection, newCollection, filterFn);
|
|
1138
|
+
if (filteredSection) {
|
|
1139
|
+
if (filteredSection.lastChildKey !== null) {
|
|
1140
|
+
let lastChild = collection.getItem(filteredSection.lastChildKey);
|
|
1141
|
+
if (lastChild && lastChild.type !== "header") return filteredSection;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
return null;
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
$23b9f4fcf0fe224b$export$437f11dc9b403b78.type = "section";
|
|
1148
|
+
var $23b9f4fcf0fe224b$export$408d25a4e12db025 = class {
|
|
1149
|
+
get size() {
|
|
1150
|
+
return this.itemCount;
|
|
1151
|
+
}
|
|
1152
|
+
getKeys() {
|
|
1153
|
+
return this.keyMap.keys();
|
|
1154
|
+
}
|
|
1155
|
+
*[Symbol.iterator]() {
|
|
1156
|
+
let node = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
|
|
1157
|
+
while (node) {
|
|
1158
|
+
yield node;
|
|
1159
|
+
node = node.nextKey != null ? this.keyMap.get(node.nextKey) : void 0;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
getChildren(key) {
|
|
1163
|
+
let keyMap = this.keyMap;
|
|
1164
|
+
return { *[Symbol.iterator]() {
|
|
1165
|
+
let parent = keyMap.get(key);
|
|
1166
|
+
let node = (parent === null || parent === void 0 ? void 0 : parent.firstChildKey) != null ? keyMap.get(parent.firstChildKey) : null;
|
|
1167
|
+
while (node) {
|
|
1168
|
+
yield node;
|
|
1169
|
+
node = node.nextKey != null ? keyMap.get(node.nextKey) : void 0;
|
|
1170
|
+
}
|
|
1171
|
+
} };
|
|
1172
|
+
}
|
|
1173
|
+
getKeyBefore(key) {
|
|
1174
|
+
let node = this.keyMap.get(key);
|
|
1175
|
+
if (!node) return null;
|
|
1176
|
+
if (node.prevKey != null) {
|
|
1177
|
+
node = this.keyMap.get(node.prevKey);
|
|
1178
|
+
while (node && node.type !== "item" && node.lastChildKey != null) node = this.keyMap.get(node.lastChildKey);
|
|
1179
|
+
var _node_key;
|
|
1180
|
+
return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
|
|
1181
|
+
}
|
|
1182
|
+
return node.parentKey;
|
|
1183
|
+
}
|
|
1184
|
+
getKeyAfter(key) {
|
|
1185
|
+
let node = this.keyMap.get(key);
|
|
1186
|
+
if (!node) return null;
|
|
1187
|
+
if (node.type !== "item" && node.firstChildKey != null) return node.firstChildKey;
|
|
1188
|
+
while (node) {
|
|
1189
|
+
if (node.nextKey != null) return node.nextKey;
|
|
1190
|
+
if (node.parentKey != null) node = this.keyMap.get(node.parentKey);
|
|
1191
|
+
else return null;
|
|
1192
|
+
}
|
|
1193
|
+
return null;
|
|
1194
|
+
}
|
|
1195
|
+
getFirstKey() {
|
|
1196
|
+
return this.firstKey;
|
|
1197
|
+
}
|
|
1198
|
+
getLastKey() {
|
|
1199
|
+
let node = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
|
|
1200
|
+
while ((node === null || node === void 0 ? void 0 : node.lastChildKey) != null) node = this.keyMap.get(node.lastChildKey);
|
|
1201
|
+
var _node_key;
|
|
1202
|
+
return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
|
|
1203
|
+
}
|
|
1204
|
+
getItem(key) {
|
|
1205
|
+
var _this_keyMap_get;
|
|
1206
|
+
return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
|
|
1207
|
+
}
|
|
1208
|
+
at() {
|
|
1209
|
+
throw new Error("Not implemented");
|
|
1210
|
+
}
|
|
1211
|
+
clone() {
|
|
1212
|
+
let Constructor = this.constructor;
|
|
1213
|
+
let collection = new Constructor();
|
|
1214
|
+
collection.keyMap = new Map(this.keyMap);
|
|
1215
|
+
collection.firstKey = this.firstKey;
|
|
1216
|
+
collection.lastKey = this.lastKey;
|
|
1217
|
+
collection.itemCount = this.itemCount;
|
|
1218
|
+
return collection;
|
|
1219
|
+
}
|
|
1220
|
+
addNode(node) {
|
|
1221
|
+
if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
|
|
1222
|
+
if (node.type === "item" && this.keyMap.get(node.key) == null) this.itemCount++;
|
|
1223
|
+
this.keyMap.set(node.key, node);
|
|
1224
|
+
}
|
|
1225
|
+
addDescendants(node, oldCollection) {
|
|
1226
|
+
this.addNode(node);
|
|
1227
|
+
let children = oldCollection.getChildren(node.key);
|
|
1228
|
+
for (let child of children) this.addDescendants(child, oldCollection);
|
|
1229
|
+
}
|
|
1230
|
+
removeNode(key) {
|
|
1231
|
+
if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
|
|
1232
|
+
let node = this.keyMap.get(key);
|
|
1233
|
+
if (node != null && node.type === "item") this.itemCount--;
|
|
1234
|
+
this.keyMap.delete(key);
|
|
1235
|
+
}
|
|
1236
|
+
commit(firstKey, lastKey, isSSR = false) {
|
|
1237
|
+
if (this.frozen) throw new Error("Cannot commit a frozen collection");
|
|
1238
|
+
this.firstKey = firstKey;
|
|
1239
|
+
this.lastKey = lastKey;
|
|
1240
|
+
this.frozen = !isSSR;
|
|
1241
|
+
}
|
|
1242
|
+
filter(filterFn) {
|
|
1243
|
+
let newCollection = new this.constructor();
|
|
1244
|
+
let [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(this, newCollection, this.firstKey, filterFn);
|
|
1245
|
+
newCollection === null || newCollection === void 0 || newCollection.commit(firstKey, lastKey);
|
|
1246
|
+
return newCollection;
|
|
1247
|
+
}
|
|
1248
|
+
constructor() {
|
|
1249
|
+
this.keyMap = new Map();
|
|
1250
|
+
this.firstKey = null;
|
|
1251
|
+
this.lastKey = null;
|
|
1252
|
+
this.frozen = false;
|
|
1253
|
+
this.itemCount = 0;
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1256
|
+
function $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, firstChildKey, filterFn) {
|
|
1257
|
+
if (firstChildKey == null) return [null, null];
|
|
1258
|
+
let firstNode = null;
|
|
1259
|
+
let lastNode = null;
|
|
1260
|
+
let currentNode = collection.getItem(firstChildKey);
|
|
1261
|
+
while (currentNode != null) {
|
|
1262
|
+
let newNode = currentNode.filter(collection, newCollection, filterFn);
|
|
1263
|
+
if (newNode != null) {
|
|
1264
|
+
newNode.nextKey = null;
|
|
1265
|
+
if (lastNode) {
|
|
1266
|
+
newNode.prevKey = lastNode.key;
|
|
1267
|
+
lastNode.nextKey = newNode.key;
|
|
1268
|
+
}
|
|
1269
|
+
if (firstNode == null) firstNode = newNode;
|
|
1270
|
+
newCollection.addNode(newNode);
|
|
1271
|
+
lastNode = newNode;
|
|
1272
|
+
}
|
|
1273
|
+
currentNode = currentNode.nextKey ? collection.getItem(currentNode.nextKey) : null;
|
|
1274
|
+
}
|
|
1275
|
+
if (lastNode && lastNode.type === "separator") {
|
|
1276
|
+
let prevKey = lastNode.prevKey;
|
|
1277
|
+
newCollection.removeNode(lastNode.key);
|
|
1278
|
+
if (prevKey) {
|
|
1279
|
+
lastNode = newCollection.getItem(prevKey);
|
|
1280
|
+
lastNode.nextKey = null;
|
|
1281
|
+
} else lastNode = null;
|
|
1282
|
+
}
|
|
1283
|
+
var _firstNode_key, _lastNode_key;
|
|
1284
|
+
return [(_firstNode_key = firstNode === null || firstNode === void 0 ? void 0 : firstNode.key) !== null && _firstNode_key !== void 0 ? _firstNode_key : null, (_lastNode_key = lastNode === null || lastNode === void 0 ? void 0 : lastNode.key) !== null && _lastNode_key !== void 0 ? _lastNode_key : null];
|
|
1285
|
+
}
|
|
1286
|
+
//#endregion
|
|
1287
|
+
//#region node_modules/@react-aria/collections/dist/Document.mjs
|
|
1288
|
+
var $681cc3c98f569e39$export$410b0c854570d131 = class {
|
|
1289
|
+
*[Symbol.iterator]() {
|
|
1290
|
+
let node = this.firstChild;
|
|
1291
|
+
while (node) {
|
|
1292
|
+
yield node;
|
|
1293
|
+
node = node.nextSibling;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
get firstChild() {
|
|
1297
|
+
return this._firstChild;
|
|
1298
|
+
}
|
|
1299
|
+
set firstChild(firstChild) {
|
|
1300
|
+
this._firstChild = firstChild;
|
|
1301
|
+
this.ownerDocument.markDirty(this);
|
|
1302
|
+
}
|
|
1303
|
+
get lastChild() {
|
|
1304
|
+
return this._lastChild;
|
|
1305
|
+
}
|
|
1306
|
+
set lastChild(lastChild) {
|
|
1307
|
+
this._lastChild = lastChild;
|
|
1308
|
+
this.ownerDocument.markDirty(this);
|
|
1309
|
+
}
|
|
1310
|
+
get previousSibling() {
|
|
1311
|
+
return this._previousSibling;
|
|
1312
|
+
}
|
|
1313
|
+
set previousSibling(previousSibling) {
|
|
1314
|
+
this._previousSibling = previousSibling;
|
|
1315
|
+
this.ownerDocument.markDirty(this);
|
|
1316
|
+
}
|
|
1317
|
+
get nextSibling() {
|
|
1318
|
+
return this._nextSibling;
|
|
1319
|
+
}
|
|
1320
|
+
set nextSibling(nextSibling) {
|
|
1321
|
+
this._nextSibling = nextSibling;
|
|
1322
|
+
this.ownerDocument.markDirty(this);
|
|
1323
|
+
}
|
|
1324
|
+
get parentNode() {
|
|
1325
|
+
return this._parentNode;
|
|
1326
|
+
}
|
|
1327
|
+
set parentNode(parentNode) {
|
|
1328
|
+
this._parentNode = parentNode;
|
|
1329
|
+
this.ownerDocument.markDirty(this);
|
|
1330
|
+
}
|
|
1331
|
+
get isConnected() {
|
|
1332
|
+
var _this_parentNode;
|
|
1333
|
+
return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || false;
|
|
1334
|
+
}
|
|
1335
|
+
invalidateChildIndices(child) {
|
|
1336
|
+
if (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || child.index < this._minInvalidChildIndex.index) {
|
|
1337
|
+
this._minInvalidChildIndex = child;
|
|
1338
|
+
this.ownerDocument.markDirty(this);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
updateChildIndices() {
|
|
1342
|
+
let node = this._minInvalidChildIndex;
|
|
1343
|
+
while (node) {
|
|
1344
|
+
node.index = node.previousSibling ? node.previousSibling.index + 1 : 0;
|
|
1345
|
+
node = node.nextSibling;
|
|
1346
|
+
}
|
|
1347
|
+
this._minInvalidChildIndex = null;
|
|
1348
|
+
}
|
|
1349
|
+
appendChild(child) {
|
|
1350
|
+
if (child.parentNode) child.parentNode.removeChild(child);
|
|
1351
|
+
if (this.firstChild == null) this.firstChild = child;
|
|
1352
|
+
if (this.lastChild) {
|
|
1353
|
+
this.lastChild.nextSibling = child;
|
|
1354
|
+
child.index = this.lastChild.index + 1;
|
|
1355
|
+
child.previousSibling = this.lastChild;
|
|
1356
|
+
} else {
|
|
1357
|
+
child.previousSibling = null;
|
|
1358
|
+
child.index = 0;
|
|
1359
|
+
}
|
|
1360
|
+
child.parentNode = this;
|
|
1361
|
+
child.nextSibling = null;
|
|
1362
|
+
this.lastChild = child;
|
|
1363
|
+
this.ownerDocument.markDirty(this);
|
|
1364
|
+
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
1365
|
+
}
|
|
1366
|
+
insertBefore(newNode, referenceNode) {
|
|
1367
|
+
if (referenceNode == null) return this.appendChild(newNode);
|
|
1368
|
+
if (newNode.parentNode) newNode.parentNode.removeChild(newNode);
|
|
1369
|
+
newNode.nextSibling = referenceNode;
|
|
1370
|
+
newNode.previousSibling = referenceNode.previousSibling;
|
|
1371
|
+
newNode.index = referenceNode.index - 1;
|
|
1372
|
+
if (this.firstChild === referenceNode) this.firstChild = newNode;
|
|
1373
|
+
else if (referenceNode.previousSibling) referenceNode.previousSibling.nextSibling = newNode;
|
|
1374
|
+
referenceNode.previousSibling = newNode;
|
|
1375
|
+
newNode.parentNode = referenceNode.parentNode;
|
|
1376
|
+
this.invalidateChildIndices(newNode);
|
|
1377
|
+
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
1378
|
+
}
|
|
1379
|
+
removeChild(child) {
|
|
1380
|
+
if (child.parentNode !== this) return;
|
|
1381
|
+
if (this._minInvalidChildIndex === child) this._minInvalidChildIndex = null;
|
|
1382
|
+
if (child.nextSibling) {
|
|
1383
|
+
this.invalidateChildIndices(child.nextSibling);
|
|
1384
|
+
child.nextSibling.previousSibling = child.previousSibling;
|
|
1385
|
+
}
|
|
1386
|
+
if (child.previousSibling) child.previousSibling.nextSibling = child.nextSibling;
|
|
1387
|
+
if (this.firstChild === child) this.firstChild = child.nextSibling;
|
|
1388
|
+
if (this.lastChild === child) this.lastChild = child.previousSibling;
|
|
1389
|
+
child.parentNode = null;
|
|
1390
|
+
child.nextSibling = null;
|
|
1391
|
+
child.previousSibling = null;
|
|
1392
|
+
child.index = 0;
|
|
1393
|
+
this.ownerDocument.markDirty(child);
|
|
1394
|
+
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
1395
|
+
}
|
|
1396
|
+
addEventListener() {}
|
|
1397
|
+
removeEventListener() {}
|
|
1398
|
+
get previousVisibleSibling() {
|
|
1399
|
+
let node = this.previousSibling;
|
|
1400
|
+
while (node && node.isHidden) node = node.previousSibling;
|
|
1401
|
+
return node;
|
|
1402
|
+
}
|
|
1403
|
+
get nextVisibleSibling() {
|
|
1404
|
+
let node = this.nextSibling;
|
|
1405
|
+
while (node && node.isHidden) node = node.nextSibling;
|
|
1406
|
+
return node;
|
|
1407
|
+
}
|
|
1408
|
+
get firstVisibleChild() {
|
|
1409
|
+
let node = this.firstChild;
|
|
1410
|
+
while (node && node.isHidden) node = node.nextSibling;
|
|
1411
|
+
return node;
|
|
1412
|
+
}
|
|
1413
|
+
get lastVisibleChild() {
|
|
1414
|
+
let node = this.lastChild;
|
|
1415
|
+
while (node && node.isHidden) node = node.previousSibling;
|
|
1416
|
+
return node;
|
|
1417
|
+
}
|
|
1418
|
+
constructor(ownerDocument) {
|
|
1419
|
+
this._firstChild = null;
|
|
1420
|
+
this._lastChild = null;
|
|
1421
|
+
this._previousSibling = null;
|
|
1422
|
+
this._nextSibling = null;
|
|
1423
|
+
this._parentNode = null;
|
|
1424
|
+
this._minInvalidChildIndex = null;
|
|
1425
|
+
this.ownerDocument = ownerDocument;
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
var $681cc3c98f569e39$export$dc064fe9e59310fd = class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export$410b0c854570d131 {
|
|
1429
|
+
get index() {
|
|
1430
|
+
return this._index;
|
|
1431
|
+
}
|
|
1432
|
+
set index(index) {
|
|
1433
|
+
this._index = index;
|
|
1434
|
+
this.ownerDocument.markDirty(this);
|
|
1435
|
+
}
|
|
1436
|
+
get level() {
|
|
1437
|
+
var _this_parentNode_node;
|
|
1438
|
+
if (this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) return this.parentNode.level + (((_this_parentNode_node = this.parentNode.node) === null || _this_parentNode_node === void 0 ? void 0 : _this_parentNode_node.type) === "item" ? 1 : 0);
|
|
1439
|
+
return 0;
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
* Lazily gets a mutable instance of a Node. If the node has already
|
|
1443
|
+
* been cloned during this update cycle, it just returns the existing one.
|
|
1444
|
+
*/ getMutableNode() {
|
|
1445
|
+
if (this.node == null) return null;
|
|
1446
|
+
if (!this.isMutated) {
|
|
1447
|
+
this.node = this.node.clone();
|
|
1448
|
+
this.isMutated = true;
|
|
1449
|
+
}
|
|
1450
|
+
this.ownerDocument.markDirty(this);
|
|
1451
|
+
return this.node;
|
|
1452
|
+
}
|
|
1453
|
+
updateNode() {
|
|
1454
|
+
var _this_parentNode_node, _this_previousVisibleSibling_node, _this_previousVisibleSibling, _nextSibling_node, _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild;
|
|
1455
|
+
let nextSibling = this.nextVisibleSibling;
|
|
1456
|
+
let node = this.getMutableNode();
|
|
1457
|
+
if (node == null) return;
|
|
1458
|
+
node.index = this.index;
|
|
1459
|
+
node.level = this.level;
|
|
1460
|
+
var _this_parentNode_node_key;
|
|
1461
|
+
node.parentKey = this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd ? (_this_parentNode_node_key = (_this_parentNode_node = this.parentNode.node) === null || _this_parentNode_node === void 0 ? void 0 : _this_parentNode_node.key) !== null && _this_parentNode_node_key !== void 0 ? _this_parentNode_node_key : null : null;
|
|
1462
|
+
var _this_previousVisibleSibling_node_key;
|
|
1463
|
+
node.prevKey = (_this_previousVisibleSibling_node_key = (_this_previousVisibleSibling = this.previousVisibleSibling) === null || _this_previousVisibleSibling === void 0 ? void 0 : (_this_previousVisibleSibling_node = _this_previousVisibleSibling.node) === null || _this_previousVisibleSibling_node === void 0 ? void 0 : _this_previousVisibleSibling_node.key) !== null && _this_previousVisibleSibling_node_key !== void 0 ? _this_previousVisibleSibling_node_key : null;
|
|
1464
|
+
var _nextSibling_node_key;
|
|
1465
|
+
node.nextKey = (_nextSibling_node_key = nextSibling === null || nextSibling === void 0 ? void 0 : (_nextSibling_node = nextSibling.node) === null || _nextSibling_node === void 0 ? void 0 : _nextSibling_node.key) !== null && _nextSibling_node_key !== void 0 ? _nextSibling_node_key : null;
|
|
1466
|
+
node.hasChildNodes = !!this.firstChild;
|
|
1467
|
+
var _this_firstVisibleChild_node_key;
|
|
1468
|
+
node.firstChildKey = (_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 ? void 0 : (_this_firstVisibleChild_node = _this_firstVisibleChild.node) === null || _this_firstVisibleChild_node === void 0 ? void 0 : _this_firstVisibleChild_node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null;
|
|
1469
|
+
var _this_lastVisibleChild_node_key;
|
|
1470
|
+
node.lastChildKey = (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 ? void 0 : (_this_lastVisibleChild_node = _this_lastVisibleChild.node) === null || _this_lastVisibleChild_node === void 0 ? void 0 : _this_lastVisibleChild_node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null;
|
|
1471
|
+
if ((node.colSpan != null || node.colIndex != null) && nextSibling) {
|
|
1472
|
+
var _node_colIndex, _node_colSpan;
|
|
1473
|
+
let nextColIndex = ((_node_colIndex = node.colIndex) !== null && _node_colIndex !== void 0 ? _node_colIndex : node.index) + ((_node_colSpan = node.colSpan) !== null && _node_colSpan !== void 0 ? _node_colSpan : 1);
|
|
1474
|
+
if (nextSibling.node != null && nextColIndex !== nextSibling.node.colIndex) {
|
|
1475
|
+
let siblingNode = nextSibling.getMutableNode();
|
|
1476
|
+
siblingNode.colIndex = nextColIndex;
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
setProps(obj, ref, CollectionNodeClass, rendered, render) {
|
|
1481
|
+
let node;
|
|
1482
|
+
let { value: value1, textValue, id, ...props } = obj;
|
|
1483
|
+
if (this.node == null) {
|
|
1484
|
+
node = new CollectionNodeClass(id !== null && id !== void 0 ? id : `react-aria-${++this.ownerDocument.nodeId}`);
|
|
1485
|
+
this.node = node;
|
|
1486
|
+
} else node = this.getMutableNode();
|
|
1487
|
+
props.ref = ref;
|
|
1488
|
+
node.props = props;
|
|
1489
|
+
node.rendered = rendered;
|
|
1490
|
+
node.render = render;
|
|
1491
|
+
node.value = value1;
|
|
1492
|
+
if (obj["aria-label"]) node["aria-label"] = obj["aria-label"];
|
|
1493
|
+
node.textValue = textValue || (typeof props.children === "string" ? props.children : "") || obj["aria-label"] || "";
|
|
1494
|
+
if (id != null && id !== node.key) throw new Error("Cannot change the id of an item");
|
|
1495
|
+
if (props.colSpan != null) node.colSpan = props.colSpan;
|
|
1496
|
+
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
1497
|
+
}
|
|
1498
|
+
get style() {
|
|
1499
|
+
let element = this;
|
|
1500
|
+
return {
|
|
1501
|
+
get display() {
|
|
1502
|
+
return element.isHidden ? "none" : "";
|
|
1503
|
+
},
|
|
1504
|
+
set display(value) {
|
|
1505
|
+
let isHidden = value === "none";
|
|
1506
|
+
if (element.isHidden !== isHidden) {
|
|
1507
|
+
var _element_parentNode, _element_parentNode1;
|
|
1508
|
+
if (((_element_parentNode = element.parentNode) === null || _element_parentNode === void 0 ? void 0 : _element_parentNode.firstVisibleChild) === element || ((_element_parentNode1 = element.parentNode) === null || _element_parentNode1 === void 0 ? void 0 : _element_parentNode1.lastVisibleChild) === element) element.ownerDocument.markDirty(element.parentNode);
|
|
1509
|
+
let prev = element.previousVisibleSibling;
|
|
1510
|
+
let next = element.nextVisibleSibling;
|
|
1511
|
+
if (prev) element.ownerDocument.markDirty(prev);
|
|
1512
|
+
if (next) element.ownerDocument.markDirty(next);
|
|
1513
|
+
element.isHidden = isHidden;
|
|
1514
|
+
element.ownerDocument.markDirty(element);
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
hasAttribute() {}
|
|
1520
|
+
setAttribute() {}
|
|
1521
|
+
setAttributeNS() {}
|
|
1522
|
+
removeAttribute() {}
|
|
1523
|
+
constructor(type, ownerDocument) {
|
|
1524
|
+
super(ownerDocument), this.nodeType = 8, this.isMutated = true, this._index = 0, this.isHidden = false;
|
|
1525
|
+
this.node = null;
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
var $681cc3c98f569e39$export$b34a105447964f9f = class extends $681cc3c98f569e39$export$410b0c854570d131 {
|
|
1529
|
+
get isConnected() {
|
|
1530
|
+
return true;
|
|
1531
|
+
}
|
|
1532
|
+
createElement(type) {
|
|
1533
|
+
return new $681cc3c98f569e39$export$dc064fe9e59310fd(type, this);
|
|
1534
|
+
}
|
|
1535
|
+
getMutableCollection() {
|
|
1536
|
+
if (!this.nextCollection) this.nextCollection = this.collection.clone();
|
|
1537
|
+
return this.nextCollection;
|
|
1538
|
+
}
|
|
1539
|
+
markDirty(node) {
|
|
1540
|
+
this.dirtyNodes.add(node);
|
|
1541
|
+
}
|
|
1542
|
+
addNode(element) {
|
|
1543
|
+
if (element.isHidden || element.node == null) return;
|
|
1544
|
+
let collection = this.getMutableCollection();
|
|
1545
|
+
if (!collection.getItem(element.node.key)) for (let child of element) this.addNode(child);
|
|
1546
|
+
collection.addNode(element.node);
|
|
1547
|
+
}
|
|
1548
|
+
removeNode(node) {
|
|
1549
|
+
for (let child of node) this.removeNode(child);
|
|
1550
|
+
if (node.node) this.getMutableCollection().removeNode(node.node.key);
|
|
1551
|
+
}
|
|
1552
|
+
/** Finalizes the collection update, updating all nodes and freezing the collection. */ getCollection() {
|
|
1553
|
+
if (this.inSubscription) return this.collection;
|
|
1554
|
+
this.queuedRender = false;
|
|
1555
|
+
this.updateCollection();
|
|
1556
|
+
return this.collection;
|
|
1557
|
+
}
|
|
1558
|
+
updateCollection() {
|
|
1559
|
+
for (let element of this.dirtyNodes) if (element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && (!element.isConnected || element.isHidden)) this.removeNode(element);
|
|
1560
|
+
else element.updateChildIndices();
|
|
1561
|
+
for (let element of this.dirtyNodes) if (element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) {
|
|
1562
|
+
if (element.isConnected && !element.isHidden) {
|
|
1563
|
+
element.updateNode();
|
|
1564
|
+
this.addNode(element);
|
|
1565
|
+
}
|
|
1566
|
+
if (element.node) this.dirtyNodes.delete(element);
|
|
1567
|
+
element.isMutated = false;
|
|
1568
|
+
} else this.dirtyNodes.delete(element);
|
|
1569
|
+
if (this.nextCollection) {
|
|
1570
|
+
var _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild;
|
|
1571
|
+
var _this_firstVisibleChild_node_key, _this_lastVisibleChild_node_key;
|
|
1572
|
+
this.nextCollection.commit((_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 ? void 0 : (_this_firstVisibleChild_node = _this_firstVisibleChild.node) === null || _this_firstVisibleChild_node === void 0 ? void 0 : _this_firstVisibleChild_node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null, (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 ? void 0 : (_this_lastVisibleChild_node = _this_lastVisibleChild.node) === null || _this_lastVisibleChild_node === void 0 ? void 0 : _this_lastVisibleChild_node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null, this.isSSR);
|
|
1573
|
+
if (!this.isSSR) {
|
|
1574
|
+
this.collection = this.nextCollection;
|
|
1575
|
+
this.nextCollection = null;
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
queueUpdate() {
|
|
1580
|
+
if (this.dirtyNodes.size === 0 || this.queuedRender) return;
|
|
1581
|
+
this.queuedRender = true;
|
|
1582
|
+
this.inSubscription = true;
|
|
1583
|
+
if (!this.isSSR) this.collection = this.collection.clone();
|
|
1584
|
+
for (let fn of this.subscriptions) fn();
|
|
1585
|
+
this.inSubscription = false;
|
|
1586
|
+
}
|
|
1587
|
+
subscribe(fn) {
|
|
1588
|
+
this.subscriptions.add(fn);
|
|
1589
|
+
return () => this.subscriptions.delete(fn);
|
|
1590
|
+
}
|
|
1591
|
+
resetAfterSSR() {
|
|
1592
|
+
if (this.isSSR) {
|
|
1593
|
+
this.isSSR = false;
|
|
1594
|
+
this.firstChild = null;
|
|
1595
|
+
this.lastChild = null;
|
|
1596
|
+
this.nodeId = 0;
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
constructor(collection) {
|
|
1600
|
+
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = new Set(), this.isSSR = false, this.nodeId = 0, this.nodesByProps = new WeakMap(), this.nextCollection = null, this.subscriptions = new Set(), this.queuedRender = false, this.inSubscription = false;
|
|
1601
|
+
this.collection = collection;
|
|
1602
|
+
this.nextCollection = collection;
|
|
1603
|
+
}
|
|
1604
|
+
};
|
|
1605
|
+
//#endregion
|
|
1606
|
+
//#region node_modules/@react-aria/collections/dist/useCachedChildren.mjs
|
|
1607
|
+
function $e948873055cbafe4$export$727c8fc270210f13(props) {
|
|
1608
|
+
let { children, items, idScope, addIdAndValue, dependencies = [] } = props;
|
|
1609
|
+
let cache = useMemo(() => new WeakMap(), dependencies);
|
|
1610
|
+
return useMemo(() => {
|
|
1611
|
+
if (items && typeof children === "function") {
|
|
1612
|
+
let res = [];
|
|
1613
|
+
for (let item of items) {
|
|
1614
|
+
let rendered = cache.get(item);
|
|
1615
|
+
if (!rendered) {
|
|
1616
|
+
rendered = children(item);
|
|
1617
|
+
var _rendered_props_id, _ref;
|
|
1618
|
+
let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== void 0 ? _rendered_props_id : item.key) !== null && _ref !== void 0 ? _ref : item.id;
|
|
1619
|
+
if (key == null) throw new Error("Could not determine key for item");
|
|
1620
|
+
if (idScope != null) key = idScope + ":" + key;
|
|
1621
|
+
rendered = cloneElement(rendered, addIdAndValue ? {
|
|
1622
|
+
key,
|
|
1623
|
+
id: key,
|
|
1624
|
+
value: item
|
|
1625
|
+
} : { key });
|
|
1626
|
+
cache.set(item, rendered);
|
|
1627
|
+
}
|
|
1628
|
+
res.push(rendered);
|
|
1629
|
+
}
|
|
1630
|
+
return res;
|
|
1631
|
+
} else if (typeof children !== "function") return children;
|
|
1632
|
+
}, [
|
|
1633
|
+
children,
|
|
1634
|
+
items,
|
|
1635
|
+
cache,
|
|
1636
|
+
idScope,
|
|
1637
|
+
addIdAndValue
|
|
1638
|
+
]);
|
|
1639
|
+
}
|
|
1640
|
+
//#endregion
|
|
1641
|
+
//#region node_modules/@react-aria/collections/dist/CollectionBuilder.mjs
|
|
1642
|
+
var $e1995378a142960e$var$ShallowRenderContext = createContext(false);
|
|
1643
|
+
var $e1995378a142960e$var$CollectionDocumentContext = createContext(null);
|
|
1644
|
+
function $e1995378a142960e$export$bf788dd355e3a401(props) {
|
|
1645
|
+
if (useContext($e1995378a142960e$var$CollectionDocumentContext)) return props.content;
|
|
1646
|
+
let { collection, document } = $e1995378a142960e$var$useCollectionDocument(props.createCollection);
|
|
1647
|
+
return React.createElement(React.Fragment, null, React.createElement($f39a9eba43920ace$export$8dc98ba7eadeaa56, null, React.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, { value: document }, props.content)), React.createElement($e1995378a142960e$var$CollectionInner, {
|
|
1648
|
+
render: props.children,
|
|
1649
|
+
collection
|
|
1650
|
+
}));
|
|
1651
|
+
}
|
|
1652
|
+
function $e1995378a142960e$var$CollectionInner({ collection, render }) {
|
|
1653
|
+
return render(collection);
|
|
1654
|
+
}
|
|
1655
|
+
function $e1995378a142960e$var$useSyncExternalStoreFallback(subscribe, getSnapshot, getServerSnapshot) {
|
|
1656
|
+
let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
1657
|
+
let isSSRRef = useRef(isSSR);
|
|
1658
|
+
isSSRRef.current = isSSR;
|
|
1659
|
+
return useSyncExternalStore(subscribe, useCallback(() => {
|
|
1660
|
+
return isSSRRef.current ? getServerSnapshot() : getSnapshot();
|
|
1661
|
+
}, [getSnapshot, getServerSnapshot]));
|
|
1662
|
+
}
|
|
1663
|
+
var $e1995378a142960e$var$useSyncExternalStore = typeof React["useSyncExternalStore"] === "function" ? React["useSyncExternalStore"] : $e1995378a142960e$var$useSyncExternalStoreFallback;
|
|
1664
|
+
function $e1995378a142960e$var$useCollectionDocument(createCollection) {
|
|
1665
|
+
let [document] = useState(() => new $681cc3c98f569e39$export$b34a105447964f9f((createCollection === null || createCollection === void 0 ? void 0 : createCollection()) || new $23b9f4fcf0fe224b$export$408d25a4e12db025()));
|
|
1666
|
+
return {
|
|
1667
|
+
collection: $e1995378a142960e$var$useSyncExternalStore(useCallback((fn) => document.subscribe(fn), [document]), useCallback(() => {
|
|
1668
|
+
let collection = document.getCollection();
|
|
1669
|
+
if (document.isSSR) document.resetAfterSSR();
|
|
1670
|
+
return collection;
|
|
1671
|
+
}, [document]), useCallback(() => {
|
|
1672
|
+
document.isSSR = true;
|
|
1673
|
+
return document.getCollection();
|
|
1674
|
+
}, [document])),
|
|
1675
|
+
document
|
|
1676
|
+
};
|
|
1677
|
+
}
|
|
1678
|
+
var $e1995378a142960e$var$SSRContext = createContext(null);
|
|
1679
|
+
function $e1995378a142960e$var$createCollectionNodeClass(type) {
|
|
1680
|
+
var _class;
|
|
1681
|
+
return _class = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {}, _class.type = type, _class;
|
|
1682
|
+
}
|
|
1683
|
+
function $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, rendered, children, render) {
|
|
1684
|
+
if (typeof CollectionNodeClass === "string") CollectionNodeClass = $e1995378a142960e$var$createCollectionNodeClass(CollectionNodeClass);
|
|
1685
|
+
let itemRef = useCallback((element) => {
|
|
1686
|
+
element === null || element === void 0 || element.setProps(props, ref, CollectionNodeClass, rendered, render);
|
|
1687
|
+
}, [
|
|
1688
|
+
props,
|
|
1689
|
+
ref,
|
|
1690
|
+
rendered,
|
|
1691
|
+
render,
|
|
1692
|
+
CollectionNodeClass
|
|
1693
|
+
]);
|
|
1694
|
+
let parentNode = useContext($e1995378a142960e$var$SSRContext);
|
|
1695
|
+
if (parentNode) {
|
|
1696
|
+
let element = parentNode.ownerDocument.nodesByProps.get(props);
|
|
1697
|
+
if (!element) {
|
|
1698
|
+
element = parentNode.ownerDocument.createElement(CollectionNodeClass.type);
|
|
1699
|
+
element.setProps(props, ref, CollectionNodeClass, rendered, render);
|
|
1700
|
+
parentNode.appendChild(element);
|
|
1701
|
+
parentNode.ownerDocument.updateCollection();
|
|
1702
|
+
parentNode.ownerDocument.nodesByProps.set(props, element);
|
|
1703
|
+
}
|
|
1704
|
+
return children ? React.createElement($e1995378a142960e$var$SSRContext.Provider, { value: element }, children) : null;
|
|
1705
|
+
}
|
|
1706
|
+
return React.createElement(CollectionNodeClass.type, { ref: itemRef }, children);
|
|
1707
|
+
}
|
|
1708
|
+
function $e1995378a142960e$export$18af5c7a9e9b3664(CollectionNodeClass, render) {
|
|
1709
|
+
let Component = ({ node }) => render(node.props, node.props.ref, node);
|
|
1710
|
+
let Result = forwardRef((props, ref) => {
|
|
1711
|
+
let focusableProps = useContext($f645667febf57a63$export$f9762fab77588ecb);
|
|
1712
|
+
if (!useContext($e1995378a142960e$var$ShallowRenderContext)) {
|
|
1713
|
+
if (render.length >= 3) throw new Error(render.name + " cannot be rendered outside a collection.");
|
|
1714
|
+
return render(props, ref);
|
|
1715
|
+
}
|
|
1716
|
+
return $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, "children" in props ? props.children : null, null, (node) => React.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, { value: focusableProps }, React.createElement(Component, { node })));
|
|
1717
|
+
});
|
|
1718
|
+
Result.displayName = render.name;
|
|
1719
|
+
return Result;
|
|
1720
|
+
}
|
|
1721
|
+
function $e1995378a142960e$export$e953bb1cd0f19726(CollectionNodeClass, render, useChildren = $e1995378a142960e$var$useCollectionChildren) {
|
|
1722
|
+
let Component = ({ node }) => render(node.props, node.props.ref, node);
|
|
1723
|
+
let Result = forwardRef((props, ref) => {
|
|
1724
|
+
let children = useChildren(props);
|
|
1725
|
+
var _useSSRCollectionNode;
|
|
1726
|
+
return (_useSSRCollectionNode = $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, null, children, (node) => React.createElement(Component, { node }))) !== null && _useSSRCollectionNode !== void 0 ? _useSSRCollectionNode : React.createElement(React.Fragment, null);
|
|
1727
|
+
});
|
|
1728
|
+
Result.displayName = render.name;
|
|
1729
|
+
return Result;
|
|
1730
|
+
}
|
|
1731
|
+
function $e1995378a142960e$var$useCollectionChildren(options) {
|
|
1732
|
+
return $e948873055cbafe4$export$727c8fc270210f13({
|
|
1733
|
+
...options,
|
|
1734
|
+
addIdAndValue: true
|
|
1735
|
+
});
|
|
1736
|
+
}
|
|
1737
|
+
var $e1995378a142960e$var$CollectionContext = createContext(null);
|
|
1738
|
+
function $e1995378a142960e$export$fb8073518f34e6ec(props) {
|
|
1739
|
+
let ctx = useContext($e1995378a142960e$var$CollectionContext);
|
|
1740
|
+
let dependencies = ((ctx === null || ctx === void 0 ? void 0 : ctx.dependencies) || []).concat(props.dependencies);
|
|
1741
|
+
var _props_idScope;
|
|
1742
|
+
let idScope = (_props_idScope = props.idScope) !== null && _props_idScope !== void 0 ? _props_idScope : ctx === null || ctx === void 0 ? void 0 : ctx.idScope;
|
|
1743
|
+
let children = $e1995378a142960e$var$useCollectionChildren({
|
|
1744
|
+
...props,
|
|
1745
|
+
idScope,
|
|
1746
|
+
dependencies
|
|
1747
|
+
});
|
|
1748
|
+
if (useContext($e1995378a142960e$var$CollectionDocumentContext)) children = React.createElement($e1995378a142960e$var$CollectionRoot, null, children);
|
|
1749
|
+
ctx = useMemo(() => ({
|
|
1750
|
+
dependencies,
|
|
1751
|
+
idScope
|
|
1752
|
+
}), [idScope, ...dependencies]);
|
|
1753
|
+
return React.createElement($e1995378a142960e$var$CollectionContext.Provider, { value: ctx }, children);
|
|
1754
|
+
}
|
|
1755
|
+
function $e1995378a142960e$var$CollectionRoot({ children }) {
|
|
1756
|
+
let doc = useContext($e1995378a142960e$var$CollectionDocumentContext);
|
|
1757
|
+
let wrappedChildren = useMemo(() => React.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, { value: null }, React.createElement($e1995378a142960e$var$ShallowRenderContext.Provider, { value: true }, children)), [children]);
|
|
1758
|
+
return $b5e257d569688ac6$export$535bd6ca7f90a273() ? React.createElement($e1995378a142960e$var$SSRContext.Provider, { value: doc }, wrappedChildren) : createPortal(wrappedChildren, doc);
|
|
1759
|
+
}
|
|
1760
|
+
//#endregion
|
|
1761
|
+
//#region node_modules/react-aria-components/dist/Collection.mjs
|
|
1762
|
+
var $7135fc7d473fd974$export$d40e14dec8b060a8 = createContext(null);
|
|
1763
|
+
var $7135fc7d473fd974$export$a164736487e3f0ae = {
|
|
1764
|
+
CollectionRoot({ collection, renderDropIndicator }) {
|
|
1765
|
+
return $7135fc7d473fd974$var$useCollectionRender(collection, null, renderDropIndicator);
|
|
1766
|
+
},
|
|
1767
|
+
CollectionBranch({ collection, parent, renderDropIndicator }) {
|
|
1768
|
+
return $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator);
|
|
1769
|
+
}
|
|
1770
|
+
};
|
|
1771
|
+
function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator) {
|
|
1772
|
+
return $e948873055cbafe4$export$727c8fc270210f13({
|
|
1773
|
+
items: parent ? collection.getChildren(parent.key) : collection,
|
|
1774
|
+
dependencies: [renderDropIndicator],
|
|
1775
|
+
children(node) {
|
|
1776
|
+
if (node.type === "content") return React.createElement(React.Fragment, null);
|
|
1777
|
+
let rendered = node.render(node);
|
|
1778
|
+
if (!renderDropIndicator || node.type !== "item") return rendered;
|
|
1779
|
+
return React.createElement(React.Fragment, null, renderDropIndicator({
|
|
1780
|
+
type: "item",
|
|
1781
|
+
key: node.key,
|
|
1782
|
+
dropPosition: "before"
|
|
1783
|
+
}), rendered, $7135fc7d473fd974$export$2dbbd341daed716d(collection, node, renderDropIndicator));
|
|
1784
|
+
}
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
function $7135fc7d473fd974$export$2dbbd341daed716d(collection, node, renderDropIndicator) {
|
|
1788
|
+
let key = node.key;
|
|
1789
|
+
let keyAfter = collection.getKeyAfter(key);
|
|
1790
|
+
let nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
|
|
1791
|
+
while (nextItemInFlattenedCollection != null && nextItemInFlattenedCollection.type !== "item") {
|
|
1792
|
+
keyAfter = collection.getKeyAfter(nextItemInFlattenedCollection.key);
|
|
1793
|
+
nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
|
|
1794
|
+
}
|
|
1795
|
+
let nextItemInSameLevel = node.nextKey != null ? collection.getItem(node.nextKey) : null;
|
|
1796
|
+
while (nextItemInSameLevel != null && nextItemInSameLevel.type !== "item") nextItemInSameLevel = nextItemInSameLevel.nextKey != null ? collection.getItem(nextItemInSameLevel.nextKey) : null;
|
|
1797
|
+
let afterIndicators = [];
|
|
1798
|
+
if (nextItemInSameLevel == null) {
|
|
1799
|
+
let current = node;
|
|
1800
|
+
while ((current === null || current === void 0 ? void 0 : current.type) === "item" && (!nextItemInFlattenedCollection || current.parentKey !== nextItemInFlattenedCollection.parentKey && nextItemInFlattenedCollection.level < current.level)) {
|
|
1801
|
+
let indicator = renderDropIndicator({
|
|
1802
|
+
type: "item",
|
|
1803
|
+
key: current.key,
|
|
1804
|
+
dropPosition: "after"
|
|
1805
|
+
});
|
|
1806
|
+
if (isValidElement(indicator)) afterIndicators.push(cloneElement(indicator, { key: `${current.key}-after` }));
|
|
1807
|
+
current = current.parentKey != null ? collection.getItem(current.parentKey) : null;
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
return afterIndicators;
|
|
1811
|
+
}
|
|
1812
|
+
var $7135fc7d473fd974$export$4feb769f8ddf26c5 = createContext($7135fc7d473fd974$export$a164736487e3f0ae);
|
|
1813
|
+
function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {
|
|
1814
|
+
return useMemo(() => focusedKey != null ? new Set([focusedKey]) : null, [focusedKey]);
|
|
1815
|
+
}
|
|
1816
|
+
//#endregion
|
|
1817
|
+
//#region node_modules/@react-stately/selection/dist/Selection.mjs
|
|
1818
|
+
var $e40ea825a81a3709$export$52baac22726c72bf = class $e40ea825a81a3709$export$52baac22726c72bf extends Set {
|
|
1819
|
+
constructor(keys, anchorKey, currentKey) {
|
|
1820
|
+
super(keys);
|
|
1821
|
+
if (keys instanceof $e40ea825a81a3709$export$52baac22726c72bf) {
|
|
1822
|
+
this.anchorKey = anchorKey !== null && anchorKey !== void 0 ? anchorKey : keys.anchorKey;
|
|
1823
|
+
this.currentKey = currentKey !== null && currentKey !== void 0 ? currentKey : keys.currentKey;
|
|
1824
|
+
} else {
|
|
1825
|
+
this.anchorKey = anchorKey !== null && anchorKey !== void 0 ? anchorKey : null;
|
|
1826
|
+
this.currentKey = currentKey !== null && currentKey !== void 0 ? currentKey : null;
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
};
|
|
1830
|
+
//#endregion
|
|
1831
|
+
//#region node_modules/@react-stately/selection/dist/useMultipleSelectionState.mjs
|
|
1832
|
+
function $7af3f5b51489e0b5$var$equalSets(setA, setB) {
|
|
1833
|
+
if (setA.size !== setB.size) return false;
|
|
1834
|
+
for (let item of setA) if (!setB.has(item)) return false;
|
|
1835
|
+
return true;
|
|
1836
|
+
}
|
|
1837
|
+
function $7af3f5b51489e0b5$export$253fe78d46329472(props) {
|
|
1838
|
+
let { selectionMode = "none", disallowEmptySelection = false, allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = "toggle", disabledBehavior = "all" } = props;
|
|
1839
|
+
let isFocusedRef = useRef(false);
|
|
1840
|
+
let [, setFocused] = useState(false);
|
|
1841
|
+
let focusedKeyRef = useRef(null);
|
|
1842
|
+
let childFocusStrategyRef = useRef(null);
|
|
1843
|
+
let [, setFocusedKey] = useState(null);
|
|
1844
|
+
let [selectedKeys, setSelectedKeys] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(useMemo(() => $7af3f5b51489e0b5$var$convertSelection(props.selectedKeys), [props.selectedKeys]), useMemo(() => $7af3f5b51489e0b5$var$convertSelection(props.defaultSelectedKeys, new $e40ea825a81a3709$export$52baac22726c72bf()), [props.defaultSelectedKeys]), props.onSelectionChange);
|
|
1845
|
+
let disabledKeysProp = useMemo(() => props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [props.disabledKeys]);
|
|
1846
|
+
let [selectionBehavior, setSelectionBehavior] = useState(selectionBehaviorProp);
|
|
1847
|
+
if (selectionBehaviorProp === "replace" && selectionBehavior === "toggle" && typeof selectedKeys === "object" && selectedKeys.size === 0) setSelectionBehavior("replace");
|
|
1848
|
+
let lastSelectionBehavior = useRef(selectionBehaviorProp);
|
|
1849
|
+
useEffect(() => {
|
|
1850
|
+
if (selectionBehaviorProp !== lastSelectionBehavior.current) {
|
|
1851
|
+
setSelectionBehavior(selectionBehaviorProp);
|
|
1852
|
+
lastSelectionBehavior.current = selectionBehaviorProp;
|
|
1853
|
+
}
|
|
1854
|
+
}, [selectionBehaviorProp]);
|
|
1855
|
+
return {
|
|
1856
|
+
selectionMode,
|
|
1857
|
+
disallowEmptySelection,
|
|
1858
|
+
selectionBehavior,
|
|
1859
|
+
setSelectionBehavior,
|
|
1860
|
+
get isFocused() {
|
|
1861
|
+
return isFocusedRef.current;
|
|
1862
|
+
},
|
|
1863
|
+
setFocused(f) {
|
|
1864
|
+
isFocusedRef.current = f;
|
|
1865
|
+
setFocused(f);
|
|
1866
|
+
},
|
|
1867
|
+
get focusedKey() {
|
|
1868
|
+
return focusedKeyRef.current;
|
|
1869
|
+
},
|
|
1870
|
+
get childFocusStrategy() {
|
|
1871
|
+
return childFocusStrategyRef.current;
|
|
1872
|
+
},
|
|
1873
|
+
setFocusedKey(k, childFocusStrategy = "first") {
|
|
1874
|
+
focusedKeyRef.current = k;
|
|
1875
|
+
childFocusStrategyRef.current = childFocusStrategy;
|
|
1876
|
+
setFocusedKey(k);
|
|
1877
|
+
},
|
|
1878
|
+
selectedKeys,
|
|
1879
|
+
setSelectedKeys(keys) {
|
|
1880
|
+
if (allowDuplicateSelectionEvents || !$7af3f5b51489e0b5$var$equalSets(keys, selectedKeys)) setSelectedKeys(keys);
|
|
1881
|
+
},
|
|
1882
|
+
disabledKeys: disabledKeysProp,
|
|
1883
|
+
disabledBehavior
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
function $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) {
|
|
1887
|
+
if (!selection) return defaultValue;
|
|
1888
|
+
return selection === "all" ? "all" : new $e40ea825a81a3709$export$52baac22726c72bf(selection);
|
|
1889
|
+
}
|
|
1890
|
+
//#endregion
|
|
1891
|
+
//#region node_modules/@react-stately/selection/dist/SelectionManager.mjs
|
|
1892
|
+
var $d496c0a20b6e58ec$export$6c8a5aaad13c9852 = class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
1893
|
+
/**
|
|
1894
|
+
* The type of selection that is allowed in the collection.
|
|
1895
|
+
*/ get selectionMode() {
|
|
1896
|
+
return this.state.selectionMode;
|
|
1897
|
+
}
|
|
1898
|
+
/**
|
|
1899
|
+
* Whether the collection allows empty selection.
|
|
1900
|
+
*/ get disallowEmptySelection() {
|
|
1901
|
+
return this.state.disallowEmptySelection;
|
|
1902
|
+
}
|
|
1903
|
+
/**
|
|
1904
|
+
* The selection behavior for the collection.
|
|
1905
|
+
*/ get selectionBehavior() {
|
|
1906
|
+
return this.state.selectionBehavior;
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
* Sets the selection behavior for the collection.
|
|
1910
|
+
*/ setSelectionBehavior(selectionBehavior) {
|
|
1911
|
+
this.state.setSelectionBehavior(selectionBehavior);
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* Whether the collection is currently focused.
|
|
1915
|
+
*/ get isFocused() {
|
|
1916
|
+
return this.state.isFocused;
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
* Sets whether the collection is focused.
|
|
1920
|
+
*/ setFocused(isFocused) {
|
|
1921
|
+
this.state.setFocused(isFocused);
|
|
1922
|
+
}
|
|
1923
|
+
/**
|
|
1924
|
+
* The current focused key in the collection.
|
|
1925
|
+
*/ get focusedKey() {
|
|
1926
|
+
return this.state.focusedKey;
|
|
1927
|
+
}
|
|
1928
|
+
/** Whether the first or last child of the focused key should receive focus. */ get childFocusStrategy() {
|
|
1929
|
+
return this.state.childFocusStrategy;
|
|
1930
|
+
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Sets the focused key.
|
|
1933
|
+
*/ setFocusedKey(key, childFocusStrategy) {
|
|
1934
|
+
if (key == null || this.collection.getItem(key)) this.state.setFocusedKey(key, childFocusStrategy);
|
|
1935
|
+
}
|
|
1936
|
+
/**
|
|
1937
|
+
* The currently selected keys in the collection.
|
|
1938
|
+
*/ get selectedKeys() {
|
|
1939
|
+
return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* The raw selection value for the collection.
|
|
1943
|
+
* Either 'all' for select all, or a set of keys.
|
|
1944
|
+
*/ get rawSelection() {
|
|
1945
|
+
return this.state.selectedKeys;
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Returns whether a key is selected.
|
|
1949
|
+
*/ isSelected(key) {
|
|
1950
|
+
if (this.state.selectionMode === "none") return false;
|
|
1951
|
+
let mappedKey = this.getKey(key);
|
|
1952
|
+
if (mappedKey == null) return false;
|
|
1953
|
+
return this.state.selectedKeys === "all" ? this.canSelectItem(mappedKey) : this.state.selectedKeys.has(mappedKey);
|
|
1954
|
+
}
|
|
1955
|
+
/**
|
|
1956
|
+
* Whether the selection is empty.
|
|
1957
|
+
*/ get isEmpty() {
|
|
1958
|
+
return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
|
|
1959
|
+
}
|
|
1960
|
+
/**
|
|
1961
|
+
* Whether all items in the collection are selected.
|
|
1962
|
+
*/ get isSelectAll() {
|
|
1963
|
+
if (this.isEmpty) return false;
|
|
1964
|
+
if (this.state.selectedKeys === "all") return true;
|
|
1965
|
+
if (this._isSelectAll != null) return this._isSelectAll;
|
|
1966
|
+
let allKeys = this.getSelectAllKeys();
|
|
1967
|
+
let selectedKeys = this.state.selectedKeys;
|
|
1968
|
+
this._isSelectAll = allKeys.every((k) => selectedKeys.has(k));
|
|
1969
|
+
return this._isSelectAll;
|
|
1970
|
+
}
|
|
1971
|
+
get firstSelectedKey() {
|
|
1972
|
+
let first = null;
|
|
1973
|
+
for (let key of this.state.selectedKeys) {
|
|
1974
|
+
let item = this.collection.getItem(key);
|
|
1975
|
+
if (!first || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, first) < 0) first = item;
|
|
1976
|
+
}
|
|
1977
|
+
var _first_key;
|
|
1978
|
+
return (_first_key = first === null || first === void 0 ? void 0 : first.key) !== null && _first_key !== void 0 ? _first_key : null;
|
|
1979
|
+
}
|
|
1980
|
+
get lastSelectedKey() {
|
|
1981
|
+
let last = null;
|
|
1982
|
+
for (let key of this.state.selectedKeys) {
|
|
1983
|
+
let item = this.collection.getItem(key);
|
|
1984
|
+
if (!last || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, last) > 0) last = item;
|
|
1985
|
+
}
|
|
1986
|
+
var _last_key;
|
|
1987
|
+
return (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
|
|
1988
|
+
}
|
|
1989
|
+
get disabledKeys() {
|
|
1990
|
+
return this.state.disabledKeys;
|
|
1991
|
+
}
|
|
1992
|
+
get disabledBehavior() {
|
|
1993
|
+
return this.state.disabledBehavior;
|
|
1994
|
+
}
|
|
1995
|
+
/**
|
|
1996
|
+
* Extends the selection to the given key.
|
|
1997
|
+
*/ extendSelection(toKey) {
|
|
1998
|
+
if (this.selectionMode === "none") return;
|
|
1999
|
+
if (this.selectionMode === "single") {
|
|
2000
|
+
this.replaceSelection(toKey);
|
|
2001
|
+
return;
|
|
2002
|
+
}
|
|
2003
|
+
let mappedToKey = this.getKey(toKey);
|
|
2004
|
+
if (mappedToKey == null) return;
|
|
2005
|
+
let selection;
|
|
2006
|
+
if (this.state.selectedKeys === "all") selection = new $e40ea825a81a3709$export$52baac22726c72bf([mappedToKey], mappedToKey, mappedToKey);
|
|
2007
|
+
else {
|
|
2008
|
+
let selectedKeys = this.state.selectedKeys;
|
|
2009
|
+
var _selectedKeys_anchorKey;
|
|
2010
|
+
let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== void 0 ? _selectedKeys_anchorKey : mappedToKey;
|
|
2011
|
+
selection = new $e40ea825a81a3709$export$52baac22726c72bf(selectedKeys, anchorKey, mappedToKey);
|
|
2012
|
+
var _selectedKeys_currentKey;
|
|
2013
|
+
for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== void 0 ? _selectedKeys_currentKey : mappedToKey)) selection.delete(key);
|
|
2014
|
+
for (let key of this.getKeyRange(mappedToKey, anchorKey)) if (this.canSelectItem(key)) selection.add(key);
|
|
2015
|
+
}
|
|
2016
|
+
this.state.setSelectedKeys(selection);
|
|
2017
|
+
}
|
|
2018
|
+
getKeyRange(from, to) {
|
|
2019
|
+
let fromItem = this.collection.getItem(from);
|
|
2020
|
+
let toItem = this.collection.getItem(to);
|
|
2021
|
+
if (fromItem && toItem) {
|
|
2022
|
+
if ($c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, fromItem, toItem) <= 0) return this.getKeyRangeInternal(from, to);
|
|
2023
|
+
return this.getKeyRangeInternal(to, from);
|
|
2024
|
+
}
|
|
2025
|
+
return [];
|
|
2026
|
+
}
|
|
2027
|
+
getKeyRangeInternal(from, to) {
|
|
2028
|
+
var _this_layoutDelegate;
|
|
2029
|
+
if ((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === void 0 ? void 0 : _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from, to);
|
|
2030
|
+
let keys = [];
|
|
2031
|
+
let key = from;
|
|
2032
|
+
while (key != null) {
|
|
2033
|
+
let item = this.collection.getItem(key);
|
|
2034
|
+
if (item && (item.type === "item" || item.type === "cell" && this.allowsCellSelection)) keys.push(key);
|
|
2035
|
+
if (key === to) return keys;
|
|
2036
|
+
key = this.collection.getKeyAfter(key);
|
|
2037
|
+
}
|
|
2038
|
+
return [];
|
|
2039
|
+
}
|
|
2040
|
+
getKey(key) {
|
|
2041
|
+
let item = this.collection.getItem(key);
|
|
2042
|
+
if (!item) return key;
|
|
2043
|
+
if (item.type === "cell" && this.allowsCellSelection) return key;
|
|
2044
|
+
while (item && item.type !== "item" && item.parentKey != null) item = this.collection.getItem(item.parentKey);
|
|
2045
|
+
if (!item || item.type !== "item") return null;
|
|
2046
|
+
return item.key;
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* Toggles whether the given key is selected.
|
|
2050
|
+
*/ toggleSelection(key) {
|
|
2051
|
+
if (this.selectionMode === "none") return;
|
|
2052
|
+
if (this.selectionMode === "single" && !this.isSelected(key)) {
|
|
2053
|
+
this.replaceSelection(key);
|
|
2054
|
+
return;
|
|
2055
|
+
}
|
|
2056
|
+
let mappedKey = this.getKey(key);
|
|
2057
|
+
if (mappedKey == null) return;
|
|
2058
|
+
let keys = new $e40ea825a81a3709$export$52baac22726c72bf(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
|
|
2059
|
+
if (keys.has(mappedKey)) keys.delete(mappedKey);
|
|
2060
|
+
else if (this.canSelectItem(mappedKey)) {
|
|
2061
|
+
keys.add(mappedKey);
|
|
2062
|
+
keys.anchorKey = mappedKey;
|
|
2063
|
+
keys.currentKey = mappedKey;
|
|
2064
|
+
}
|
|
2065
|
+
if (this.disallowEmptySelection && keys.size === 0) return;
|
|
2066
|
+
this.state.setSelectedKeys(keys);
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* Replaces the selection with only the given key.
|
|
2070
|
+
*/ replaceSelection(key) {
|
|
2071
|
+
if (this.selectionMode === "none") return;
|
|
2072
|
+
let mappedKey = this.getKey(key);
|
|
2073
|
+
if (mappedKey == null) return;
|
|
2074
|
+
let selection = this.canSelectItem(mappedKey) ? new $e40ea825a81a3709$export$52baac22726c72bf([mappedKey], mappedKey, mappedKey) : new $e40ea825a81a3709$export$52baac22726c72bf();
|
|
2075
|
+
this.state.setSelectedKeys(selection);
|
|
2076
|
+
}
|
|
2077
|
+
/**
|
|
2078
|
+
* Replaces the selection with the given keys.
|
|
2079
|
+
*/ setSelectedKeys(keys) {
|
|
2080
|
+
if (this.selectionMode === "none") return;
|
|
2081
|
+
let selection = new $e40ea825a81a3709$export$52baac22726c72bf();
|
|
2082
|
+
for (let key of keys) {
|
|
2083
|
+
let mappedKey = this.getKey(key);
|
|
2084
|
+
if (mappedKey != null) {
|
|
2085
|
+
selection.add(mappedKey);
|
|
2086
|
+
if (this.selectionMode === "single") break;
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
this.state.setSelectedKeys(selection);
|
|
2090
|
+
}
|
|
2091
|
+
getSelectAllKeys() {
|
|
2092
|
+
let keys = [];
|
|
2093
|
+
let addKeys = (key) => {
|
|
2094
|
+
while (key != null) {
|
|
2095
|
+
if (this.canSelectItem(key)) {
|
|
2096
|
+
var _getFirstItem;
|
|
2097
|
+
let item = this.collection.getItem(key);
|
|
2098
|
+
if ((item === null || item === void 0 ? void 0 : item.type) === "item") keys.push(key);
|
|
2099
|
+
var _getFirstItem_key;
|
|
2100
|
+
if ((item === null || item === void 0 ? void 0 : item.hasChildNodes) && (this.allowsCellSelection || item.type !== "item")) addKeys((_getFirstItem_key = (_getFirstItem = $c5a24bc478652b5f$export$fbdeaa6a76694f71($c5a24bc478652b5f$export$1005530eda016c13(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key) !== null && _getFirstItem_key !== void 0 ? _getFirstItem_key : null);
|
|
2101
|
+
}
|
|
2102
|
+
key = this.collection.getKeyAfter(key);
|
|
2103
|
+
}
|
|
2104
|
+
};
|
|
2105
|
+
addKeys(this.collection.getFirstKey());
|
|
2106
|
+
return keys;
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Selects all items in the collection.
|
|
2110
|
+
*/ selectAll() {
|
|
2111
|
+
if (!this.isSelectAll && this.selectionMode === "multiple") this.state.setSelectedKeys("all");
|
|
2112
|
+
}
|
|
2113
|
+
/**
|
|
2114
|
+
* Removes all keys from the selection.
|
|
2115
|
+
*/ clearSelection() {
|
|
2116
|
+
if (!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0)) this.state.setSelectedKeys(new $e40ea825a81a3709$export$52baac22726c72bf());
|
|
2117
|
+
}
|
|
2118
|
+
/**
|
|
2119
|
+
* Toggles between select all and an empty selection.
|
|
2120
|
+
*/ toggleSelectAll() {
|
|
2121
|
+
if (this.isSelectAll) this.clearSelection();
|
|
2122
|
+
else this.selectAll();
|
|
2123
|
+
}
|
|
2124
|
+
select(key, e) {
|
|
2125
|
+
if (this.selectionMode === "none") return;
|
|
2126
|
+
if (this.selectionMode === "single") if (this.isSelected(key) && !this.disallowEmptySelection) this.toggleSelection(key);
|
|
2127
|
+
else this.replaceSelection(key);
|
|
2128
|
+
else if (this.selectionBehavior === "toggle" || e && (e.pointerType === "touch" || e.pointerType === "virtual")) this.toggleSelection(key);
|
|
2129
|
+
else this.replaceSelection(key);
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Returns whether the current selection is equal to the given selection.
|
|
2133
|
+
*/ isSelectionEqual(selection) {
|
|
2134
|
+
if (selection === this.state.selectedKeys) return true;
|
|
2135
|
+
let selectedKeys = this.selectedKeys;
|
|
2136
|
+
if (selection.size !== selectedKeys.size) return false;
|
|
2137
|
+
for (let key of selection) if (!selectedKeys.has(key)) return false;
|
|
2138
|
+
for (let key of selectedKeys) if (!selection.has(key)) return false;
|
|
2139
|
+
return true;
|
|
2140
|
+
}
|
|
2141
|
+
canSelectItem(key) {
|
|
2142
|
+
var _item_props;
|
|
2143
|
+
if (this.state.selectionMode === "none" || this.state.disabledKeys.has(key)) return false;
|
|
2144
|
+
let item = this.collection.getItem(key);
|
|
2145
|
+
if (!item || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || item.type === "cell" && !this.allowsCellSelection) return false;
|
|
2146
|
+
return true;
|
|
2147
|
+
}
|
|
2148
|
+
isDisabled(key) {
|
|
2149
|
+
var _this_collection_getItem_props, _this_collection_getItem;
|
|
2150
|
+
return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(key) || !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.isDisabled));
|
|
2151
|
+
}
|
|
2152
|
+
isLink(key) {
|
|
2153
|
+
var _this_collection_getItem_props, _this_collection_getItem;
|
|
2154
|
+
return !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.href);
|
|
2155
|
+
}
|
|
2156
|
+
getItemProps(key) {
|
|
2157
|
+
var _this_collection_getItem;
|
|
2158
|
+
return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props;
|
|
2159
|
+
}
|
|
2160
|
+
withCollection(collection) {
|
|
2161
|
+
return new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, this.state, {
|
|
2162
|
+
allowsCellSelection: this.allowsCellSelection,
|
|
2163
|
+
layoutDelegate: this.layoutDelegate || void 0
|
|
2164
|
+
});
|
|
2165
|
+
}
|
|
2166
|
+
constructor(collection, state, options) {
|
|
2167
|
+
this.collection = collection;
|
|
2168
|
+
this.state = state;
|
|
2169
|
+
var _options_allowsCellSelection;
|
|
2170
|
+
this.allowsCellSelection = (_options_allowsCellSelection = options === null || options === void 0 ? void 0 : options.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : false;
|
|
2171
|
+
this._isSelectAll = null;
|
|
2172
|
+
this.layoutDelegate = (options === null || options === void 0 ? void 0 : options.layoutDelegate) || null;
|
|
2173
|
+
}
|
|
2174
|
+
};
|
|
2175
|
+
//#endregion
|
|
2176
|
+
export { $21f1aa98acb08317$export$c57958e35f31ed73 as A, $55f9b1ae81f22853$export$6c5dc7e81d2cc29a as C, $5671b20cf9b562b2$export$447a38995de2c711 as D, $8a26561d2877236e$export$c24ed0104d07eab9 as E, $5671b20cf9b562b2$export$831c820ad60f9d12 as O, $55f9b1ae81f22853$export$2b35b76d2e30e129 as S, $55f9b1ae81f22853$export$76e4e37e5339496d as T, $7613b1592d41b092$export$6cd28814d92fa9c9 as _, $7135fc7d473fd974$export$a164736487e3f0ae as a, $fb3050f43d946246$export$e32c88dfddc6e1d8 as b, $e1995378a142960e$export$bf788dd355e3a401 as c, $23b9f4fcf0fe224b$export$437f11dc9b403b78 as d, $23b9f4fcf0fe224b$export$5ae2504e948afce5 as f, $c5a24bc478652b5f$export$1005530eda016c13 as g, $23b9f4fcf0fe224b$export$fd11f34e1d07f134 as h, $7135fc7d473fd974$export$90e00781bc59d8f9 as i, $cc38e7bd3fc7b213$export$2bb74740c4e19def as j, $21f1aa98acb08317$export$16792effe837dba3 as k, $e1995378a142960e$export$e953bb1cd0f19726 as l, $23b9f4fcf0fe224b$export$d68d59712b04d9d1 as m, $7af3f5b51489e0b5$export$253fe78d46329472 as n, $7135fc7d473fd974$export$d40e14dec8b060a8 as o, $23b9f4fcf0fe224b$export$8258a0665a675899 as p, $7135fc7d473fd974$export$4feb769f8ddf26c5 as r, $e1995378a142960e$export$18af5c7a9e9b3664 as s, $d496c0a20b6e58ec$export$6c8a5aaad13c9852 as t, $e1995378a142960e$export$fb8073518f34e6ec as u, $880e95eb8b93ba9a$export$ecf600387e221c37 as v, $55f9b1ae81f22853$export$759df0d867455a91 as w, $feb5ffebff200149$export$c3d8340acf92597f as x, $ae20dd8cbca75726$export$d6daf82dcd84e87c as y };
|