ics-ui-kit 0.1.0-alpha.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/dist/AlertContext-CxjW1LVL.js +13 -0
- package/dist/AlertContext-CxjW1LVL.js.map +1 -0
- package/dist/AlertIcon-5B6AgZpe.js +96 -0
- package/dist/AlertIcon-5B6AgZpe.js.map +1 -0
- package/dist/Button-Dg89xRSi.js +36 -0
- package/dist/Button-Dg89xRSi.js.map +1 -0
- package/dist/ButtonBase-e6qyv6mD.js +158 -0
- package/dist/ButtonBase-e6qyv6mD.js.map +1 -0
- package/dist/CheckboxField-B6ojieD7.js +347 -0
- package/dist/CheckboxField-B6ojieD7.js.map +1 -0
- package/dist/Command-BhbfL5wm.js +554 -0
- package/dist/Command-BhbfL5wm.js.map +1 -0
- package/dist/ComponentVariantProvider-B0SFUaXB.js +8 -0
- package/dist/ComponentVariantProvider-B0SFUaXB.js.map +1 -0
- package/dist/DayPicker-4hE1QEvO.js +2452 -0
- package/dist/DayPicker-4hE1QEvO.js.map +1 -0
- package/dist/Description-BTPMlTT-.js +19 -0
- package/dist/Description-BTPMlTT-.js.map +1 -0
- package/dist/Dialog-ByiJIDhl.js +99 -0
- package/dist/Dialog-ByiJIDhl.js.map +1 -0
- package/dist/Divider-DPW5ZhZ8.js +24 -0
- package/dist/Divider-DPW5ZhZ8.js.map +1 -0
- package/dist/EmptyState-DRKjscH-.js +12 -0
- package/dist/EmptyState-DRKjscH-.js.map +1 -0
- package/dist/ErrorState-B26k67-z.js +11 -0
- package/dist/ErrorState-B26k67-z.js.map +1 -0
- package/dist/FeatureIcon-BGE0Orkc.js +23 -0
- package/dist/FeatureIcon-BGE0Orkc.js.map +1 -0
- package/dist/Field-CSvS9f_a.js +86 -0
- package/dist/Field-CSvS9f_a.js.map +1 -0
- package/dist/FieldLabel-BA0y5lhr.js +70 -0
- package/dist/FieldLabel-BA0y5lhr.js.map +1 -0
- package/dist/FolderSvg-cw0DxNVy.js +742 -0
- package/dist/FolderSvg-cw0DxNVy.js.map +1 -0
- package/dist/FormFooterTemplate-BPspyDbr.js +88 -0
- package/dist/FormFooterTemplate-BPspyDbr.js.map +1 -0
- package/dist/FormHeader--F6b2aRk.js +49 -0
- package/dist/FormHeader--F6b2aRk.js.map +1 -0
- package/dist/FormStack-DvlFQQiP.js +127 -0
- package/dist/FormStack-DvlFQQiP.js.map +1 -0
- package/dist/HintState-BxrCAWqq.js +12 -0
- package/dist/HintState-BxrCAWqq.js.map +1 -0
- package/dist/Icon-DH3ev9GK.js +22 -0
- package/dist/Icon-DH3ev9GK.js.map +1 -0
- package/dist/IconButton-DwkpNgn3.js +33 -0
- package/dist/IconButton-DwkpNgn3.js.map +1 -0
- package/dist/IconTooltip-DhkXc8Uy.js +11 -0
- package/dist/IconTooltip-DhkXc8Uy.js.map +1 -0
- package/dist/Indicator-AqxHWPA9.js +29 -0
- package/dist/Indicator-AqxHWPA9.js.map +1 -0
- package/dist/InputGroup-BvD9Igmt.js +137 -0
- package/dist/InputGroup-BvD9Igmt.js.map +1 -0
- package/dist/InputOTP-B2e1nfSO.js +259 -0
- package/dist/InputOTP-B2e1nfSO.js.map +1 -0
- package/dist/Loader-BpHiL6W-.js +58 -0
- package/dist/Loader-BpHiL6W-.js.map +1 -0
- package/dist/MenuItem-pvsONHlh.js +32 -0
- package/dist/MenuItem-pvsONHlh.js.map +1 -0
- package/dist/MenuItemShortcut-DgPol9Nz.js +21 -0
- package/dist/MenuItemShortcut-DgPol9Nz.js.map +1 -0
- package/dist/MenuItemText-7uPl9P3z.js +20 -0
- package/dist/MenuItemText-7uPl9P3z.js.map +1 -0
- package/dist/Overlay-2XMlxApi.js +28 -0
- package/dist/Overlay-2XMlxApi.js.map +1 -0
- package/dist/Popover-Dvr7y0YY.js +258 -0
- package/dist/Popover-Dvr7y0YY.js.map +1 -0
- package/dist/RichButton-DuPTenmS.js +49 -0
- package/dist/RichButton-DuPTenmS.js.map +1 -0
- package/dist/ScrollArea-CuuTeDn3.js +576 -0
- package/dist/ScrollArea-CuuTeDn3.js.map +1 -0
- package/dist/ScrollShadowContainer-DdrnF8qU.js +36 -0
- package/dist/ScrollShadowContainer-DdrnF8qU.js.map +1 -0
- package/dist/SearchSelectTag-DFCX9zT1.js +56 -0
- package/dist/SearchSelectTag-DFCX9zT1.js.map +1 -0
- package/dist/Select-DRwv6-eZ.js +980 -0
- package/dist/Select-DRwv6-eZ.js.map +1 -0
- package/dist/Sheet-rtwmzm2-.js +83 -0
- package/dist/Sheet-rtwmzm2-.js.map +1 -0
- package/dist/Shortcut-D8L15_ed.js +22 -0
- package/dist/Shortcut-D8L15_ed.js.map +1 -0
- package/dist/Skeleton-y6I-i9q5.js +21 -0
- package/dist/Skeleton-y6I-i9q5.js.map +1 -0
- package/dist/Tag-DdHXTyKF.js +199 -0
- package/dist/Tag-DdHXTyKF.js.map +1 -0
- package/dist/Text-DeBE8AKl.js +22 -0
- package/dist/Text-DeBE8AKl.js.map +1 -0
- package/dist/TextInput-Cj50ImXi.js +205 -0
- package/dist/TextInput-Cj50ImXi.js.map +1 -0
- package/dist/TextOverflowTooltip-DlUgic5y.js +36 -0
- package/dist/TextOverflowTooltip-DlUgic5y.js.map +1 -0
- package/dist/Toggle-v_HT3Gm2.js +40 -0
- package/dist/Toggle-v_HT3Gm2.js.map +1 -0
- package/dist/Tooltip-C4rVuWr4.js +473 -0
- package/dist/Tooltip-C4rVuWr4.js.map +1 -0
- package/dist/TriggerButton-CfDObWP9.js +33 -0
- package/dist/TriggerButton-CfDObWP9.js.map +1 -0
- package/dist/blocks/auth/otp-form/OTPForm.d.ts +47 -0
- package/dist/blocks/auth/otp-form/OTPForm.stories.d.ts +40 -0
- package/dist/blocks/auth/otp-form/components/EmailForm.d.ts +25 -0
- package/dist/blocks/auth/otp-form/components/OTPInputForm.d.ts +27 -0
- package/dist/blocks/auth/otp-form/components/ResendButton.d.ts +14 -0
- package/dist/blocks/auth/otp-form/index.d.ts +3 -0
- package/dist/blocks/auth/otp-form/utils/OTPError.d.ts +8 -0
- package/dist/blocks/auth/otp-form.d.ts +2 -0
- package/dist/blocks/auth/otp-form.js +309 -0
- package/dist/blocks/auth/otp-form.js.map +1 -0
- package/dist/buildMatchPatternFn-d7GTeGl_.js +68 -0
- package/dist/buildMatchPatternFn-d7GTeGl_.js.map +1 -0
- package/dist/{bundle-mjs-D6wdQkGI.js → bundle-mjs-CQ0w4GOB.js} +347 -338
- package/dist/{bundle-mjs-D6wdQkGI.js.map → bundle-mjs-CQ0w4GOB.js.map} +1 -1
- package/dist/{check-C-TqZgvb.js → check-CeyaOoZv.js} +2 -2
- package/dist/{check-C-TqZgvb.js.map → check-CeyaOoZv.js.map} +1 -1
- package/dist/chevron-down-CAOItu8X.js +14 -0
- package/dist/chevron-down-CAOItu8X.js.map +1 -0
- package/dist/chevron-left-D6FtXcdU.js +14 -0
- package/dist/chevron-left-D6FtXcdU.js.map +1 -0
- package/dist/chevron-right-D3juAhA-.js +14 -0
- package/dist/chevron-right-D3juAhA-.js.map +1 -0
- package/dist/chevron-up-UDiVTHo0.js +12 -0
- package/dist/chevron-up-UDiVTHo0.js.map +1 -0
- package/dist/circle-alert-CVIokIC7.js +16 -0
- package/dist/circle-alert-CVIokIC7.js.map +1 -0
- package/dist/circle-x-u75Rx3Tj.js +16 -0
- package/dist/circle-x-u75Rx3Tj.js.map +1 -0
- package/dist/{utils-2yE78m5l.js → cn-dsXlqdJg.js} +2 -2
- package/dist/cn-dsXlqdJg.js.map +1 -0
- package/dist/components/alert/Alert.d.ts +12 -0
- package/dist/components/alert/Alert.stories.d.ts +38 -0
- package/dist/components/alert/AlertContext.d.ts +16 -0
- package/dist/components/alert/components/AlertButton.d.ts +8 -0
- package/dist/components/alert/components/AlertDescription.d.ts +7 -0
- package/dist/components/alert/components/AlertIcon.d.ts +14 -0
- package/dist/components/alert/components/AlertTitle.d.ts +11 -0
- package/dist/components/alert/index.d.ts +6 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +69 -0
- package/dist/components/alert-dialog/AlertDialog.stories.d.ts +32 -0
- package/dist/components/alert-dialog/index.d.ts +1 -0
- package/dist/components/alert-dialog.d.ts +2 -0
- package/dist/components/alert-dialog.js +313 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +2 -0
- package/dist/components/alert.js +50 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/avatar/Avatar.d.ts +7 -0
- package/dist/components/avatar/Avatar.stories.d.ts +10 -0
- package/dist/components/avatar/avatar-fallback/AvatarFallback.d.ts +6 -0
- package/dist/components/avatar/avatar-icon/AvatarIcon.d.ts +6 -0
- package/dist/components/avatar/avatar-image/AvatarImage.d.ts +3 -0
- package/dist/components/avatar/avatar-indicator/AvatarIndicator.d.ts +5 -0
- package/dist/components/avatar/avatar-label/AvatarLabel.d.ts +5 -0
- package/dist/components/avatar/avatar-label/AvatarLabel.stories.d.ts +10 -0
- package/dist/components/avatar/avatar-label/AvatarLabelContext.d.ts +9 -0
- package/dist/components/avatar/avatar-label/components/avatar-label-avatar/AvatarLabelAvatar.d.ts +6 -0
- package/dist/components/avatar/avatar-label/components/avatar-label-description/AvatarLabelDescription.d.ts +10 -0
- package/dist/components/avatar/avatar-label/components/avatar-label-indicator/AvatarLabelIndicator.d.ts +6 -0
- package/dist/components/avatar/avatar-label/components/avatar-label-title/AvatarLabelTitle.d.ts +6 -0
- package/dist/components/avatar/index.d.ts +13 -0
- package/dist/components/avatar.d.ts +2 -0
- package/dist/components/avatar.js +432 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge/Badge.d.ts +7 -382
- package/dist/components/badge.js +24 -46
- package/dist/components/badge.js.map +1 -1
- package/dist/components/banner/Banner.d.ts +5 -0
- package/dist/components/banner/Banner.stories.d.ts +8 -0
- package/dist/components/banner/components/banner-description/BannerDescription.d.ts +5 -0
- package/dist/components/banner/components/banner-title/BannerTitle.d.ts +5 -0
- package/dist/components/banner/components/banner-title/BannerTitle.stories.d.ts +14 -0
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner.d.ts +2 -0
- package/dist/components/banner.js +27 -0
- package/dist/components/banner.js.map +1 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +19 -0
- package/dist/components/breadcrumb/Breadcrumb.stories.d.ts +10 -0
- package/dist/components/breadcrumb/index.d.ts +1 -0
- package/dist/components/breadcrumb.d.ts +2 -0
- package/dist/components/breadcrumb.js +78 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button/button/Button.d.ts +6 -167
- package/dist/components/button/button/Button.stories.d.ts +4 -164
- package/dist/components/button/button-base/ButtonBase.d.ts +7 -328
- package/dist/components/button/icon-button/IconButton.d.ts +5 -466
- package/dist/components/button/icon-button/IconButton.stories.d.ts +21 -2
- package/dist/components/button/index.d.ts +9 -0
- package/dist/components/button/rich-button/RichButton.d.ts +79 -0
- package/dist/components/button/rich-button/RichButton.stories.d.ts +46 -0
- package/dist/components/button/templates/loading-button/LoadingButtonTemplate.d.ts +12 -0
- package/dist/components/button/templates/loading-button/LoadingButtonTemplate.stories.d.ts +21 -0
- package/dist/components/button/trigger-button/TriggerButton.d.ts +13 -0
- package/dist/components/button/trigger-button/TriggerButton.stories.d.ts +7 -0
- package/dist/components/button.js +26 -6
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar/Calendar.d.ts +14 -0
- package/dist/components/calendar/Calendar.stories.d.ts +45 -0
- package/dist/components/calendar/components/calendar-chevron/CalendarChevron.d.ts +12 -0
- package/dist/components/calendar/components/calendar-day-button/CalendarDayButton.d.ts +26 -0
- package/dist/components/calendar/components/calendar-day-button/CalendarDayButton.stories.d.ts +18 -0
- package/dist/components/calendar/components/calendar-next-month-button/CalendarNextMonthButton.d.ts +11 -0
- package/dist/components/calendar/components/calendar-previous-month-button/CalendarPreviousMonthButton.d.ts +11 -0
- package/dist/components/calendar/components/calendar-root/CalendarRoot.d.ts +11 -0
- package/dist/components/calendar/components/calendar-week-day/CalendarWeekDay.d.ts +11 -0
- package/dist/components/calendar/components/calendar-week-day/CalendarWeekDay.stories.d.ts +7 -0
- package/dist/components/calendar/index.d.ts +3 -0
- package/dist/components/calendar.d.ts +2 -0
- package/dist/components/calendar.js +186 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card/Card.d.ts +7 -0
- package/dist/components/card/Card.stories.d.ts +17 -0
- package/dist/components/card/components/ActionCard.d.ts +7 -0
- package/dist/components/card/components/CardFeature.d.ts +7 -0
- package/dist/components/card/components/CardFolder.d.ts +9 -0
- package/dist/components/card/components/CardFooter.d.ts +7 -0
- package/dist/components/card/components/CardMenuTrigger.d.ts +8 -0
- package/dist/components/card/components/CardSubTitle.d.ts +7 -0
- package/dist/components/card/components/CardTitle.d.ts +7 -0
- package/dist/components/card/components/CardVisualBadge.d.ts +7 -0
- package/dist/components/card/components/FolderSvg.d.ts +3 -0
- package/dist/components/card/index.d.ts +19 -0
- package/dist/components/card/styles.d.ts +2 -0
- package/dist/components/card.d.ts +2 -0
- package/dist/components/card.js +159 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel/Carousel.d.ts +17 -0
- package/dist/components/carousel/Carousel.stories.d.ts +8 -0
- package/dist/components/carousel/components/carousel-buttons/CarouselButtons.d.ts +27 -0
- package/dist/components/carousel/components/carousel-item/CarouselItem.d.ts +3 -0
- package/dist/components/carousel/index.d.ts +4 -0
- package/dist/components/carousel/utils/CarouselContext.d.ts +13 -0
- package/dist/components/carousel/utils/useCarousel.d.ts +10 -0
- package/dist/components/carousel.d.ts +2 -0
- package/dist/components/carousel.js +1700 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +49 -2
- package/dist/components/checkbox/Checkbox.test.d.ts +1 -0
- package/dist/components/checkbox/checkbox-field/CheckboxField.d.ts +10 -456
- package/dist/components/checkbox/checkbox-field/CheckboxField.stories.d.ts +3 -228
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox.js +4 -3
- package/dist/components/collapsible/Collapsible.d.ts +6 -0
- package/dist/components/collapsible/Collapsible.stories.d.ts +6 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible.d.ts +2 -0
- package/dist/components/collapsible.js +133 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/color-tile/ColorTile.d.ts +9 -0
- package/dist/components/color-tile/ColorTile.stories.d.ts +6 -0
- package/dist/components/color-tile/index.d.ts +1 -0
- package/dist/components/color-tile.d.ts +2 -0
- package/dist/components/color-tile.js +26 -0
- package/dist/components/color-tile.js.map +1 -0
- package/dist/components/command/Command.d.ts +108 -0
- package/dist/components/command/Command.stories.d.ts +34 -0
- package/dist/components/command/index.d.ts +1 -0
- package/dist/components/command.d.ts +2 -0
- package/dist/components/command.js +15 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/container/Container.d.ts +29 -0
- package/dist/components/container/Container.stories.d.ts +6 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/container.d.ts +2 -0
- package/dist/components/container.js +23 -0
- package/dist/components/container.js.map +1 -0
- package/dist/components/counter/Counter.d.ts +14 -0
- package/dist/components/counter/Counter.stories.d.ts +9 -0
- package/dist/components/counter/index.d.ts +1 -0
- package/dist/components/counter.d.ts +2 -0
- package/dist/components/counter.js +142 -0
- package/dist/components/counter.js.map +1 -0
- package/dist/components/data-table/DataTable.stories.d.ts +8 -0
- package/dist/components/description/Description.d.ts +8 -0
- package/dist/components/description/Description.stories.d.ts +24 -0
- package/dist/components/description/index.d.ts +1 -0
- package/dist/components/description.d.ts +2 -0
- package/dist/components/description.js +5 -0
- package/dist/components/description.js.map +1 -0
- package/dist/components/dialog/Dialog.d.ts +51 -12
- package/dist/components/dialog/Dialog.stories.d.ts +26 -0
- package/dist/components/dialog/DialogTemplates.d.ts +24 -0
- package/dist/components/dialog/index.d.ts +4 -0
- package/dist/components/dialog.d.ts +2 -0
- package/dist/components/dialog.js +47 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/divider/Divider.d.ts +6 -118
- package/dist/components/divider/content-divider/ContentDivider.d.ts +15 -0
- package/dist/components/divider/content-divider/ContentDivider.stories.d.ts +7 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider.d.ts +2 -0
- package/dist/components/divider.js +36 -0
- package/dist/components/divider.js.map +1 -0
- package/dist/components/drawer/Drawer.d.ts +13 -0
- package/dist/components/drawer/Drawer.stories.d.ts +25 -0
- package/dist/components/drawer/components/drawer-body/DrawerBody.d.ts +3 -0
- package/dist/components/drawer/components/drawer-content/DrawerContent.d.ts +19 -0
- package/dist/components/drawer/components/drawer-footer/DrawerFooter.d.ts +3 -0
- package/dist/components/drawer/components/drawer-handler/DrawerHandler.d.ts +2 -0
- package/dist/components/drawer/components/drawer-handler/DrawerHandlerSvg.d.ts +1 -0
- package/dist/components/drawer/components/drawer-header/DrawerHeader.d.ts +3 -0
- package/dist/components/drawer/components/drawer-overlay/DrawerOverlay.d.ts +7 -0
- package/dist/components/drawer/index.d.ts +9 -0
- package/dist/components/{modal/templates/footer-template/ModalFooterTemplate.d.ts → drawer/templates/drawer-footer-template/DrawerFooterTemplate.d.ts} +6 -6
- package/dist/components/drawer/templates/drawer-header-template/DrawerHeaderTemplate.d.ts +10 -0
- package/dist/components/drawer.d.ts +2 -0
- package/dist/components/drawer.js +1232 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts +80 -0
- package/dist/components/dropdown/Dropdown.stories.d.ts +22 -0
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/dropdown/useHoverDropdown.d.ts +68 -0
- package/dist/components/dropdown.d.ts +2 -0
- package/dist/components/dropdown.js +1152 -0
- package/dist/components/dropdown.js.map +1 -0
- package/dist/components/empty-state/EmptyState.d.ts +5 -0
- package/dist/components/empty-state/EmptyState.stories.d.ts +6 -0
- package/dist/components/empty-state/index.d.ts +1 -0
- package/dist/components/empty-state.d.ts +2 -0
- package/dist/components/empty-state.js +5 -0
- package/dist/components/empty-state.js.map +1 -0
- package/dist/components/error-state/ErrorState.d.ts +3 -0
- package/dist/components/error-state/ErrorState.stories.d.ts +6 -0
- package/dist/components/error-state/Retry.d.ts +10 -0
- package/dist/components/error-state/Retry.stories.d.ts +7 -0
- package/dist/components/error-state/index.d.ts +2 -0
- package/dist/components/error-state.d.ts +2 -0
- package/dist/components/error-state.js +16 -0
- package/dist/components/error-state.js.map +1 -0
- package/dist/components/field/Field.d.ts +38 -106
- package/dist/components/field/Field.stories.d.ts +1 -1
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field.d.ts +2 -0
- package/dist/components/field.js +5 -0
- package/dist/components/field.js.map +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +24 -0
- package/dist/components/file-upload/FileUpload.stories.d.ts +19 -0
- package/dist/components/file-upload/components/file-upload-clear-button/FileUploadClearButton.d.ts +9 -0
- package/dist/components/file-upload/components/file-upload-compact-input-zone/FileUploadCompactInputZone.d.ts +9 -0
- package/dist/components/file-upload/components/file-upload-drop-area/FileUploadDropArea.d.ts +12 -0
- package/dist/components/file-upload/components/file-upload-drop-area/FileUploadDropArea.stories.d.ts +18 -0
- package/dist/components/file-upload/components/file-upload-drop-area-icon/FileUploadDropAreaIcon.d.ts +3 -0
- package/dist/components/file-upload/components/file-upload-drop-area-icon/FileUploadDropAreaIcon.stories.d.ts +14 -0
- package/dist/components/file-upload/components/file-upload-error/FileUploadError.d.ts +7 -0
- package/dist/components/file-upload/components/file-upload-error/FileUploadError.stories.d.ts +15 -0
- package/dist/components/file-upload/components/file-upload-icon/FileUploadIcon.d.ts +5 -0
- package/dist/components/file-upload/components/file-upload-icon/FileUploadIcon.stories.d.ts +13 -0
- package/dist/components/file-upload/components/file-upload-inline-drop-area/FileUploadInlineDropArea.d.ts +12 -0
- package/dist/components/file-upload/components/file-upload-inline-drop-area/FileUploadInlineDropArea.stories.d.ts +18 -0
- package/dist/components/file-upload/components/file-upload-input-zone/FileUploadInputZone.d.ts +9 -0
- package/dist/components/file-upload/components/file-upload-item/FileUploadItem.d.ts +12 -0
- package/dist/components/file-upload/components/file-upload-item/FileUploadItem.stories.d.ts +19 -0
- package/dist/components/file-upload/components/file-upload-item-compact/FileUploadItemCompact.d.ts +14 -0
- package/dist/components/file-upload/components/file-upload-item-compact/FileUploadItemCompact.stories.d.ts +19 -0
- package/dist/components/file-upload/file-upload-compact/FileUploadCompact.d.ts +19 -0
- package/dist/components/file-upload/file-upload-compact/FileUploadCompact.stories.d.ts +20 -0
- package/dist/components/file-upload/index.d.ts +11 -0
- package/dist/components/file-upload.d.ts +2 -0
- package/dist/components/file-upload.js +484 -0
- package/dist/components/file-upload.js.map +1 -0
- package/dist/components/form/Form.d.ts +27 -4
- package/dist/components/form/Form.stories.d.ts +22 -7
- package/dist/components/form/components/form-body/FormBody.d.ts +5 -0
- package/dist/components/form/components/form-divider/FormDivider.d.ts +6 -0
- package/dist/components/form/components/form-field/FormField.d.ts +21 -62
- package/dist/components/form/components/form-field/FormField.stories.d.ts +10 -0
- package/dist/components/form/components/form-field-set/FormFieldSet.d.ts +3 -0
- package/dist/components/form/components/form-footer/FormFooter.d.ts +5 -0
- package/dist/components/form/components/form-header/FormHeader.d.ts +16 -0
- package/dist/components/form/components/form-section-header-button/FormSectionHeaderButton.d.ts +17 -0
- package/dist/components/form/components/form-section-title/FormSectionTitle.d.ts +3 -1
- package/dist/components/form/components/form-stack/FormStack.d.ts +3 -0
- package/dist/components/form/index.d.ts +10 -1
- package/dist/components/form/templates/footer-template/FormFooterTemplate.d.ts +24 -0
- package/dist/components/form/templates/header-template/FormHeaderTemplate.d.ts +43 -0
- package/dist/components/form.js +59 -409
- package/dist/components/form.js.map +1 -1
- package/dist/components/hint-state/HintState.d.ts +3 -0
- package/dist/components/hint-state/HintState.stories.d.ts +6 -0
- package/dist/components/hint-state/index.d.ts +1 -0
- package/dist/components/hint-state.d.ts +2 -0
- package/dist/components/hint-state.js +5 -0
- package/dist/components/hint-state.js.map +1 -0
- package/dist/components/icon/Icon.d.ts +9 -48
- package/dist/components/icon/Icon.stories.d.ts +7 -4
- package/dist/components/icon/feature-icon/FeatureIcon.d.ts +4 -75
- package/dist/components/icon/feature-icon/FeatureIcon.stories.d.ts +16 -6
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon-tooltip/IconTooltip.d.ts +5 -4
- package/dist/components/icon-tooltip/index.d.ts +2 -0
- package/dist/components/icon-tooltip.d.ts +2 -0
- package/dist/components/icon-tooltip.js +5 -0
- package/dist/components/icon-tooltip.js.map +1 -0
- package/dist/components/icon.d.ts +2 -0
- package/dist/components/icon.js +7 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/image-placeholder/ImagePlaceholder.d.ts +6 -0
- package/dist/components/image-placeholder/ImagePlaceholder.stories.d.ts +6 -0
- package/dist/components/image-placeholder/index.d.ts +1 -0
- package/dist/components/image-placeholder.d.ts +2 -0
- package/dist/components/image-placeholder.js +22 -0
- package/dist/components/image-placeholder.js.map +1 -0
- package/dist/components/image-preview/ImagePreview.d.ts +23 -0
- package/dist/components/image-preview/ImagePreview.stories.d.ts +6 -0
- package/dist/components/image-preview/index.d.ts +1 -0
- package/dist/components/image-preview/utils.d.ts +1 -0
- package/dist/components/image-preview.d.ts +2 -0
- package/dist/components/image-preview.js +124 -0
- package/dist/components/image-preview.js.map +1 -0
- package/dist/components/image-uploader/ImageUploader.d.ts +27 -0
- package/dist/components/image-uploader/ImageUploader.stories.d.ts +6 -0
- package/dist/components/image-uploader/components/ImageCameraAddSvg.d.ts +5 -0
- package/dist/components/image-uploader/components/ImageUploaderButton.d.ts +8 -0
- package/dist/components/image-uploader/index.d.ts +1 -0
- package/dist/components/image-uploader.d.ts +2 -0
- package/dist/components/image-uploader.js +88 -0
- package/dist/components/image-uploader.js.map +1 -0
- package/dist/components/images/BoxSvg.d.ts +5 -0
- package/dist/components/images/BoxSvg.stories.d.ts +13 -0
- package/dist/components/images/FolderSvg.d.ts +5 -0
- package/dist/components/images/FolderSvg.stories.d.ts +13 -0
- package/dist/components/images/index.d.ts +2 -0
- package/dist/components/images.d.ts +2 -0
- package/dist/components/images.js +6 -0
- package/dist/components/images.js.map +1 -0
- package/dist/components/indicator/Indicator.d.ts +7 -0
- package/dist/components/indicator/Indicator.stories.d.ts +6 -0
- package/dist/components/indicator/index.d.ts +1 -0
- package/dist/components/indicator.d.ts +2 -0
- package/dist/components/indicator.js +5 -0
- package/dist/components/indicator.js.map +1 -0
- package/dist/components/input/components/clear-button/ClearButton.d.ts +3 -3
- package/dist/components/input/file-input/FileInput.d.ts +34 -0
- package/dist/components/input/file-input/FileInput.stories.d.ts +12 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/input/Input.d.ts +5 -2
- package/dist/components/input/input/Input.stories.d.ts +3 -0
- package/dist/components/input/input-group/InputGroup.d.ts +37 -0
- package/dist/components/input/input-group/InputGroup.stories.d.ts +7 -0
- package/dist/components/input/secret-input/SecretInput.d.ts +14 -5
- package/dist/components/input/secret-input/SecretInput.stories.d.ts +4 -0
- package/dist/components/input/styles/inputBaseStyles.d.ts +3 -0
- package/dist/components/input/text-input/TextInput.d.ts +2 -2
- package/dist/components/input/text-input/TextInput.stories.d.ts +2 -2
- package/dist/components/input/web-input/WebInput.d.ts +15 -0
- package/dist/components/input/web-input/WebInput.stories.d.ts +14 -0
- package/dist/components/input-otp/InputOTP.d.ts +29 -0
- package/dist/components/input-otp/InputOTP.stories.d.ts +9 -0
- package/dist/components/input-otp/components/input-otp-group/InputOTPGroup.d.ts +2 -0
- package/dist/components/input-otp/components/input-otp-separator/InputOTPSeparator.d.ts +2 -0
- package/dist/components/input-otp/components/input-otp-slot/InputOTPSlot.d.ts +4 -0
- package/dist/components/input-otp/index.d.ts +4 -0
- package/dist/components/input-otp.d.ts +2 -0
- package/dist/components/input-otp.js +8 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.js +223 -202
- package/dist/components/input.js.map +1 -1
- package/dist/components/label/Label.d.ts +1 -3
- package/dist/components/label/Label.stories.d.ts +1 -5
- package/dist/components/label/field-label/FieldLabel.d.ts +4 -47
- package/dist/components/label/field-label/FieldLabel.stories.d.ts +1 -0
- package/dist/components/label/field-label/components/RequiredIcon.d.ts +5 -0
- package/dist/components/label.js +1 -1
- package/dist/components/loader/Loader.d.ts +6 -0
- package/dist/components/loader/Loader.stories.d.ts +6 -0
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loader.js +5 -0
- package/dist/components/loader.js.map +1 -0
- package/dist/components/menu-item/MenuItem.d.ts +31 -0
- package/dist/components/menu-item/MenuItem.stories.d.ts +6 -0
- package/dist/components/menu-item/MenuItemAction.d.ts +6 -0
- package/dist/components/menu-item/components/menu-item-button/MenuItemButton.d.ts +37 -0
- package/dist/components/menu-item/components/menu-item-button/MenuItemButton.stories.d.ts +7 -0
- package/dist/components/menu-item/components/menu-item-icon/MenuItemIcon.d.ts +7 -0
- package/dist/components/menu-item/components/menu-item-icon/MenuItemIcon.stories.d.ts +6 -0
- package/dist/components/menu-item/components/menu-item-icon-button/MenuItemIconButton.d.ts +5 -0
- package/dist/components/menu-item/components/menu-item-icon-button/MenuItemIconButton.stories.d.ts +7 -0
- package/dist/components/menu-item/components/menu-item-secondary-text/MenuItemSecondaryText.d.ts +21 -0
- package/dist/components/menu-item/components/menu-item-secondary-text/MenuItemSecondaryText.stories.d.ts +6 -0
- package/dist/components/menu-item/components/menu-item-shortcut/MenuItemShortcut.d.ts +21 -0
- package/dist/components/menu-item/components/menu-item-shortcut/MenuItemShortcut.stories.d.ts +6 -0
- package/dist/components/menu-item/components/menu-item-text/MenuItemText.d.ts +21 -0
- package/dist/components/menu-item/components/menu-item-text/MenuItemText.stories.d.ts +6 -0
- package/dist/components/menu-item/index.d.ts +13 -0
- package/dist/components/menu-item/templates/menu-item-action-template/MenuItemActionTemplate.d.ts +12 -0
- package/dist/components/menu-item/templates/menu-item-action-template/MenuItemActionTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item/templates/menu-item-common-template/MenuItemCommonTemplate.d.ts +16 -0
- package/dist/components/menu-item/templates/menu-item-common-template/MenuItemCommonTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item/templates/menu-item-info-template/MenuItemInfoTemplate.d.ts +13 -0
- package/dist/components/menu-item/templates/menu-item-info-template/MenuItemInfoTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item/templates/menu-item-interactive-template/MenuItemInteractiveTemplate.d.ts +16 -0
- package/dist/components/menu-item/templates/menu-item-interactive-template/MenuItemInteractiveTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item/templates/menu-item-rich-template/MenuItemRichTemplate.d.ts +11 -0
- package/dist/components/menu-item/templates/menu-item-rich-template/MenuItemRichTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item.d.ts +2 -0
- package/dist/components/menu-item.js +243 -0
- package/dist/components/menu-item.js.map +1 -0
- package/dist/components/overflow-tooltip/OverflowTooltip.d.ts +29 -0
- package/dist/components/overflow-tooltip/OverflowTooltip.stories.d.ts +9 -0
- package/dist/components/overflow-tooltip/TextOverflowTooltip.d.ts +11 -0
- package/dist/components/overflow-tooltip/TextOverflowTooltip.stories.d.ts +6 -0
- package/dist/components/overflow-tooltip/index.d.ts +3 -0
- package/dist/components/overflow-tooltip/useOverflowTooltip.d.ts +6 -0
- package/dist/components/overflow-tooltip.d.ts +2 -0
- package/dist/components/overflow-tooltip.js +7 -0
- package/dist/components/overflow-tooltip.js.map +1 -0
- package/dist/components/overlay/Overlay.d.ts +45 -0
- package/dist/components/overlay/Overlay.stories.d.ts +6 -0
- package/dist/components/overlay/index.d.ts +1 -0
- package/dist/components/overlay.d.ts +2 -0
- package/dist/components/overlay.js +5 -0
- package/dist/components/overlay.js.map +1 -0
- package/dist/components/page-state/PageState.d.ts +8 -0
- package/dist/components/page-state/PageState.stories.d.ts +9 -0
- package/dist/components/page-state/components/PageStateAction.d.ts +14 -0
- package/dist/components/page-state/components/PageStateBoxSvg.d.ts +6 -0
- package/dist/components/page-state/components/PageStateButtonGroup.d.ts +3 -0
- package/dist/components/page-state/components/PageStateCancel.d.ts +14 -0
- package/dist/components/page-state/components/PageStateDescription.d.ts +8 -0
- package/dist/components/page-state/components/PageStateFeatureIcon.d.ts +7 -0
- package/dist/components/page-state/components/PageStateFolderSvg.d.ts +7 -0
- package/dist/components/page-state/components/PageStateTitle.d.ts +8 -0
- package/dist/components/page-state/context/PageStateContext.d.ts +12 -0
- package/dist/components/page-state/hooks/usePageStateButtonSize.d.ts +3 -0
- package/dist/components/page-state/index.d.ts +10 -0
- package/dist/components/page-state.d.ts +2 -0
- package/dist/components/page-state.js +173 -0
- package/dist/components/page-state.js.map +1 -0
- package/dist/components/popover/Popover.d.ts +31 -0
- package/dist/components/popover/Popover.stories.d.ts +24 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover.d.ts +2 -0
- package/dist/components/popover.js +9 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/portal-container/PortalContainer.d.ts +10 -0
- package/dist/components/portal-container/index.d.ts +2 -0
- package/dist/components/portal-container/portalContainerEvents.d.ts +12 -0
- package/dist/components/portal-container/usePortalContainer.d.ts +10 -0
- package/dist/components/portal-container.d.ts +2 -0
- package/dist/components/portal-container.js +14 -0
- package/dist/components/portal-container.js.map +1 -0
- package/dist/components/progress/Progress.d.ts +15 -0
- package/dist/components/progress/Progress.stories.d.ts +9 -0
- package/dist/components/progress/ProgressBarStyles.d.ts +70 -0
- package/dist/components/progress/components/progress-icon/ProgressIcon.d.ts +5 -0
- package/dist/components/progress/components/progress-icon/ProgressIcon.stories.d.ts +6 -0
- package/dist/components/progress/components/progress-icon-button/ProgressIconButton.d.ts +5 -0
- package/dist/components/progress/components/progress-icon-button/ProgressIconButton.stories.d.ts +6 -0
- package/dist/components/progress/components/progress-text/ProgressText.d.ts +6 -0
- package/dist/components/progress/components/progress-text/ProgressText.stories.d.ts +6 -0
- package/dist/components/progress/index.d.ts +10 -0
- package/dist/components/progress/templates/ProgressBlockTemplate.d.ts +16 -0
- package/dist/components/progress/templates/ProgressBlockTemplate.stories.d.ts +7 -0
- package/dist/components/progress-circle/ProgressCircle.d.ts +186 -0
- package/dist/components/progress-circle/ProgressCircle.stories.d.ts +9 -0
- package/dist/components/progress-circle/components/progress-circle-description/ProgressCircleDescription.d.ts +5 -0
- package/dist/components/progress-circle/components/progress-circle-description/ProgressCircleDescription.stories.d.ts +6 -0
- package/dist/components/progress-circle/components/progress-circle-icon-button/ProgressCircleIconButton.d.ts +70 -0
- package/dist/components/progress-circle/components/progress-circle-icon-button/ProgressCircleIconButton.stories.d.ts +6 -0
- package/dist/components/progress-circle/components/progress-circle-text/ProgressCircleTitle.d.ts +56 -0
- package/dist/components/progress-circle/components/progress-circle-text/ProgressCircleTitle.stories.d.ts +6 -0
- package/dist/components/progress-circle/index.d.ts +5 -0
- package/dist/components/progress-circle/templates/ProgressCircleTemplate.d.ts +13 -0
- package/dist/components/progress-circle/templates/ProgressCircleTemplate.stories.d.ts +8 -0
- package/dist/components/progress-circle.d.ts +2 -0
- package/dist/components/progress-circle.js +187 -0
- package/dist/components/progress-circle.js.map +1 -0
- package/dist/components/progress.d.ts +2 -0
- package/dist/components/progress.js +262 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/prose/Prose.d.ts +9 -0
- package/dist/components/prose/Prose.stories.d.ts +6 -0
- package/dist/components/prose/index.d.ts +1 -0
- package/dist/components/prose.d.ts +2 -0
- package/dist/components/prose.js +12 -0
- package/dist/components/prose.js.map +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +4 -0
- package/dist/components/radio-group/RadioGroup.stories.d.ts +11 -0
- package/dist/components/radio-group/components/RadioGroupItem.d.ts +43 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group.d.ts +2 -0
- package/dist/components/radio-group.js +271 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/resizable/Resizable.d.ts +23 -0
- package/dist/components/resizable/Resizable.stories.d.ts +8 -0
- package/dist/components/resizable/index.d.ts +1 -0
- package/dist/components/resizable.d.ts +2 -0
- package/dist/components/resizable.js +1552 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/scheduler/components/day/Day.d.ts +4 -61
- package/dist/components/scheduler.js +1249 -1244
- package/dist/components/scheduler.js.map +1 -1
- package/dist/components/scroll-area/ScrollArea.d.ts +19 -2
- package/dist/components/scroll-area/ScrollArea.stories.d.ts +5 -2
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area.d.ts +2 -0
- package/dist/components/scroll-area.js +6 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/scroll-shadow-container/ScrollShadowContainer.d.ts +2 -49
- package/dist/components/scroll-shadow-container/ScrollShadowContainer.stories.d.ts +1 -0
- package/dist/components/scroll-shadow-container/index.d.ts +1 -0
- package/dist/components/scroll-shadow-container.js +1 -1
- package/dist/components/search-select/async-search-select/AsyncSearchSelect.d.ts +2 -0
- package/dist/components/search-select/async-search-select/AsyncSearchSelect.stories.d.ts +20 -0
- package/dist/components/search-select/async-search-select/components/AsyncSearchSelectContent.d.ts +42 -0
- package/dist/components/search-select/async-search-select/components/AsyncSearchSelectPopoverContent.d.ts +7 -0
- package/dist/components/search-select/async-search-select/hooks/useAsyncDataLoader.d.ts +48 -0
- package/dist/components/search-select/async-search-select/types.d.ts +99 -0
- package/dist/components/search-select/components/SearchSelectPlaceholder.d.ts +7 -0
- package/dist/components/search-select/components/SearchSelectTag.d.ts +13 -0
- package/dist/components/search-select/components/SearchSelectTextValue.d.ts +7 -0
- package/dist/components/search-select/components/SearchSelectTrigger.d.ts +23 -0
- package/dist/components/search-select/index.d.ts +22 -0
- package/dist/components/search-select/multi-select/MultiSelect.d.ts +87 -0
- package/dist/components/search-select/multi-select/MultiSelect.stories.d.ts +18 -0
- package/dist/components/search-select/search-select/LazySearchSelect.d.ts +16 -0
- package/dist/components/search-select/search-select/LazySearchSelect.stories.d.ts +21 -0
- package/dist/components/search-select/search-select/SearchSelect.d.ts +80 -0
- package/dist/components/search-select/search-select/SearchSelect.stories.d.ts +16 -0
- package/dist/components/search-select/search-select/components/LoadMoreTrigger.d.ts +17 -0
- package/dist/components/search-select/search-select/components/SearchSelectContent.d.ts +10 -0
- package/dist/components/search-select/search-select/components/SearchSelectGroup.d.ts +12 -0
- package/dist/components/search-select/search-select/components/SearchSelectInput.d.ts +9 -0
- package/dist/components/search-select/search-select/components/SearchSelectSeparator.d.ts +12 -0
- package/dist/components/search-select/search-select/utils/fuzzyFilter.d.ts +9 -0
- package/dist/components/search-select.d.ts +2 -0
- package/dist/components/search-select.js +596 -0
- package/dist/components/search-select.js.map +1 -0
- package/dist/components/select/Select.d.ts +39 -27
- package/dist/components/select/Select.stories.d.ts +2 -0
- package/dist/components/select/components/SelectTriggerClearButton.d.ts +6 -0
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select.js +14 -1032
- package/dist/components/select.js.map +1 -1
- package/dist/components/sheet/Sheet.d.ts +35 -0
- package/dist/components/sheet/Sheet.stories.d.ts +20 -0
- package/dist/components/sheet/index.d.ts +1 -0
- package/dist/components/sheet.d.ts +2 -0
- package/dist/components/sheet.js +14 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/shortcut/Shortcut.d.ts +8 -0
- package/dist/components/shortcut/Shortcut.stories.d.ts +22 -0
- package/dist/components/shortcut/index.d.ts +1 -0
- package/dist/components/shortcut.d.ts +2 -0
- package/dist/components/shortcut.js +5 -0
- package/dist/components/shortcut.js.map +1 -0
- package/dist/components/sidebar/Sidebar.d.ts +73 -0
- package/dist/components/sidebar/Sidebar.stories.d.ts +18 -0
- package/dist/components/sidebar/SidebarContext.d.ts +12 -0
- package/dist/components/sidebar/index.d.ts +3 -0
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +505 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +6 -0
- package/dist/components/skeleton/Skeleton.stories.d.ts +9 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/skeleton.js +5 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider/Slider.d.ts +4 -0
- package/dist/components/slider/Slider.stories.d.ts +12 -0
- package/dist/components/slider/components/SliderRange.d.ts +4 -0
- package/dist/components/slider/components/SliderThumb.d.ts +4 -0
- package/dist/components/slider/components/SliderTrack.d.ts +4 -0
- package/dist/components/slider/index.d.ts +4 -0
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +458 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/stepper/Stepper.d.ts +8 -0
- package/dist/components/stepper/Stepper.stories.d.ts +8 -0
- package/dist/components/stepper/StepperContext.d.ts +9 -0
- package/dist/components/stepper/components/stepper-description/StepperDescription.d.ts +1 -0
- package/dist/components/stepper/components/stepper-indicator/StepperIndicator.d.ts +4 -0
- package/dist/components/stepper/components/stepper-item/StepperItem.d.ts +7 -0
- package/dist/components/stepper/components/stepper-item/StepperItemContext.d.ts +11 -0
- package/dist/components/stepper/components/stepper-title/StepperTitle.d.ts +1 -0
- package/dist/components/stepper/components/stepper-trigger/StepperTrigger.d.ts +4 -0
- package/dist/components/stepper/index.d.ts +9 -0
- package/dist/components/stepper/stepper-separator/StepperSeparator.d.ts +1 -0
- package/dist/components/stepper.d.ts +2 -0
- package/dist/components/stepper.js +145 -0
- package/dist/components/stepper.js.map +1 -0
- package/dist/components/switch/Switch.d.ts +5 -180
- package/dist/components/switch/Switch.stories.d.ts +2 -90
- package/dist/components/switch/switch-field/SwitchField.d.ts +9 -315
- package/dist/components/switch/switch-field/SwitchField.stories.d.ts +4 -315
- package/dist/components/switch.js +139 -152
- package/dist/components/switch.js.map +1 -1
- package/dist/components/system-state/SystemState.d.ts +3 -0
- package/dist/components/system-state/SystemState.stories.d.ts +19 -0
- package/dist/components/system-state/components/SystemStateActions.d.ts +10 -0
- package/dist/components/system-state/components/SystemStateCode.d.ts +3 -0
- package/dist/components/system-state/components/SystemStateDescription.d.ts +3 -0
- package/dist/components/system-state/components/SystemStateTitle.d.ts +3 -0
- package/dist/components/system-state/index.d.ts +10 -0
- package/dist/components/system-state.d.ts +2 -0
- package/dist/components/system-state.js +51 -0
- package/dist/components/system-state.js.map +1 -0
- package/dist/components/table/Table.d.ts +18 -0
- package/dist/components/table/Table.stories.d.ts +15 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table.d.ts +2 -0
- package/dist/components/table.js +83 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +7 -0
- package/dist/components/tabs/Tabs.stories.d.ts +8 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs.d.ts +2 -0
- package/dist/components/tabs.js +178 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/tag/Tag.d.ts +59 -1103
- package/dist/components/tag/Tag.stories.d.ts +1 -0
- package/dist/components/tag/index.d.ts +1 -1
- package/dist/components/tag-input/TagInput.d.ts +42 -0
- package/dist/components/tag-input/TagInput.stories.d.ts +9 -0
- package/dist/components/tag-input/index.d.ts +2 -0
- package/dist/components/tag-input.d.ts +2 -0
- package/dist/components/tag-input.js +162 -0
- package/dist/components/tag-input.js.map +1 -0
- package/dist/components/tag.js +7 -188
- package/dist/components/tag.js.map +1 -1
- package/dist/components/text/Text.d.ts +9 -0
- package/dist/components/text/Text.stories.d.ts +24 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text.d.ts +2 -0
- package/dist/components/text.js +5 -0
- package/dist/components/text.js.map +1 -0
- package/dist/components/textarea/autogrow-textarea/AutogrowTextarea.d.ts +12 -0
- package/dist/components/textarea/autogrow-textarea/AutogrowTextarea.stories.d.ts +10 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea/Textarea.d.ts +14 -0
- package/dist/components/textarea/textarea/Textarea.stories.d.ts +7 -0
- package/dist/components/textarea.d.ts +2 -0
- package/dist/components/textarea.js +217 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/timer/Timer.d.ts +5 -0
- package/dist/components/timer/Timer.stories.d.ts +15 -0
- package/dist/components/timer/components/TimerUnit.d.ts +5 -0
- package/dist/components/timer/components/TimerValue.d.ts +5 -0
- package/dist/components/timer/index.d.ts +3 -0
- package/dist/components/timer.d.ts +2 -0
- package/dist/components/timer.js +23 -0
- package/dist/components/timer.js.map +1 -0
- package/dist/components/toast/Toast.d.ts +11 -3
- package/dist/components/toast/Toast.stories.d.ts +3 -0
- package/dist/components/toast/ToastView.d.ts +20 -401
- package/dist/components/toast/components/toast-action/ToastAction.d.ts +1 -0
- package/dist/components/toast/hooks/useToastContext.d.ts +1 -1
- package/dist/components/toast/index.d.ts +4 -1
- package/dist/components/toast.js +460 -470
- package/dist/components/toast.js.map +1 -1
- package/dist/components/toggle/Toggle.d.ts +52 -0
- package/dist/components/toggle/Toggle.stories.d.ts +8 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +6 -0
- package/dist/components/toggle-group/ToggleGroup.stories.d.ts +13 -0
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/toggle-group.d.ts +2 -0
- package/dist/components/toggle-group.js +37 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +2 -0
- package/dist/components/toggle.js +5 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +52 -0
- package/dist/components/toolbar/Toolbar.stories.d.ts +22 -0
- package/dist/components/toolbar/ToolbarContext.d.ts +11 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbar.d.ts +2 -0
- package/dist/components/toolbar.js +304 -0
- package/dist/components/toolbar.js.map +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +34 -0
- package/dist/components/tooltip/Tooltip.stories.d.ts +20 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/useTooltipContext.d.ts +6 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +16 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/createLucideIcon-DwBrHnj9.js +80 -0
- package/dist/{createLucideIcon-DgrNxRV5.js.map → createLucideIcon-DwBrHnj9.js.map} +1 -1
- package/dist/design-tokens.source.json +1 -1
- package/dist/download-BHsj218e.js +16 -0
- package/dist/download-BHsj218e.js.map +1 -0
- package/dist/examples/gramax/CloneRepository.stories.d.ts +5 -0
- package/dist/examples/gramax/NewStorage.stories.d.ts +5 -0
- package/dist/examples/quiz/QuizPage.stories.d.ts +6 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/use-file-upload/errorMessages.d.ts +39 -0
- package/dist/hooks/use-file-upload/index.d.ts +3 -0
- package/dist/hooks/use-file-upload/useFileUpload.d.ts +81 -0
- package/dist/hooks/use-file-upload.d.ts +2 -0
- package/dist/hooks/use-file-upload.js +7 -0
- package/dist/hooks/use-file-upload.js.map +1 -0
- package/dist/hooks/useAutofill.d.ts +8 -0
- package/dist/hooks/useBreakpoints.d.ts +23 -0
- package/dist/hooks/useControllableState.d.ts +13 -0
- package/dist/hooks/useControlledValue.d.ts +10 -0
- package/dist/hooks/useCopyAction.d.ts +7 -0
- package/dist/hooks/useCustomValidity.d.ts +9 -0
- package/dist/hooks/useDataCache.d.ts +77 -0
- package/dist/hooks/useDebounce.d.ts +7 -0
- package/dist/hooks/useFileType.d.ts +4 -0
- package/dist/hooks/useInputWithActions.d.ts +32 -0
- package/dist/hooks/useItemsKeyboardNavigation.d.ts +56 -0
- package/dist/hooks/useSearchCache.test.d.ts +1 -0
- package/dist/hooks/useSearchSelect.d.ts +31 -0
- package/dist/hooks.d.ts +2 -0
- package/dist/hooks.js +14 -0
- package/dist/hooks.js.map +1 -0
- package/dist/image-BqL5JP90.js +16 -0
- package/dist/image-BqL5JP90.js.map +1 -0
- package/dist/index-0ioNhtNM.js +11 -0
- package/dist/index-0ioNhtNM.js.map +1 -0
- package/dist/index-437EL2iq.js +53 -0
- package/dist/index-437EL2iq.js.map +1 -0
- package/dist/index-BGQepRFJ.js +28 -0
- package/dist/index-BGQepRFJ.js.map +1 -0
- package/dist/index-BVqs-uqP.js +234 -0
- package/dist/index-BVqs-uqP.js.map +1 -0
- package/dist/index-BZPx6jYI.js.map +1 -1
- package/dist/index-Bb23HztA.js +33 -0
- package/dist/index-Bb23HztA.js.map +1 -0
- package/dist/index-BpWB3aFK.js +71 -0
- package/dist/index-BpWB3aFK.js.map +1 -0
- package/dist/index-BtQfgaSF.js +61 -0
- package/dist/index-BtQfgaSF.js.map +1 -0
- package/dist/index-ByaXH_ih.js +11 -0
- package/dist/index-ByaXH_ih.js.map +1 -0
- package/dist/index-BzCriPiK.js +671 -0
- package/dist/index-BzCriPiK.js.map +1 -0
- package/dist/index-CCKe-Mpx.js +7 -0
- package/dist/index-CCKe-Mpx.js.map +1 -0
- package/dist/index-CFaU3UXv.js +94 -0
- package/dist/index-CFaU3UXv.js.map +1 -0
- package/dist/index-CLuiUUQ8.js +137 -0
- package/dist/index-CLuiUUQ8.js.map +1 -0
- package/dist/index-CQD-Njgt.js +245 -0
- package/dist/index-CQD-Njgt.js.map +1 -0
- package/dist/index-CmBeyp2d.js +56 -0
- package/dist/index-CmBeyp2d.js.map +1 -0
- package/dist/index-DFZozV_h.js +69 -0
- package/dist/index-DFZozV_h.js.map +1 -0
- package/dist/index-DHsfW5Rj.js +49 -0
- package/dist/index-DHsfW5Rj.js.map +1 -0
- package/dist/index-DHyZ_0Ut.js +181 -0
- package/dist/index-DHyZ_0Ut.js.map +1 -0
- package/dist/index-DLcqcWxM.js +30 -0
- package/dist/index-DLcqcWxM.js.map +1 -0
- package/dist/index-DRo26PBK.js +1525 -0
- package/dist/index-DRo26PBK.js.map +1 -0
- package/dist/index-DnnQs07z.js +33 -0
- package/dist/index-DnnQs07z.js.map +1 -0
- package/dist/index-Uiy0Xwy2.js +32 -0
- package/dist/index-Uiy0Xwy2.js.map +1 -0
- package/dist/index-_ITz1IyW.js +144 -0
- package/dist/index-_ITz1IyW.js.map +1 -0
- package/dist/index-rKs9bXHr.js +7 -0
- package/dist/index-rKs9bXHr.js.map +1 -0
- package/dist/index-xqkGMOJ8.js +14 -0
- package/dist/index-xqkGMOJ8.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.esm-CXA6i4d7.js +1282 -0
- package/dist/index.esm-CXA6i4d7.js.map +1 -0
- package/dist/index.js +53 -1
- package/dist/index.js.map +1 -1
- package/dist/inputBaseStyles-DbzD_jvq.js +34 -0
- package/dist/inputBaseStyles-DbzD_jvq.js.map +1 -0
- package/dist/lib/utils/cn.d.ts +2 -0
- package/dist/lib/utils/dom.d.ts +6 -0
- package/dist/lib/utils/file/downloadFile.d.ts +2 -0
- package/dist/lib/utils/file/formatBytes.d.ts +1 -0
- package/dist/lib/utils/formatCounterValue.d.ts +21 -0
- package/dist/lib/utils/image/imageConverter.d.ts +23 -0
- package/dist/lib/utils/index.d.ts +2 -0
- package/dist/lib/utils/storybook.d.ts +13 -2
- package/dist/lib/utils/styles.d.ts +9 -0
- package/dist/lib/utils/variants.d.ts +35 -0
- package/dist/lib/utils.d.ts +2 -2
- package/dist/lib/utils.js +25 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/loader-circle-D1YXTEGq.js +14 -0
- package/dist/loader-circle-D1YXTEGq.js.map +1 -0
- package/dist/minus-BltQa7Q2.js +12 -0
- package/dist/minus-BltQa7Q2.js.map +1 -0
- package/dist/normalizeDates-9A3c9WYM.js +32 -0
- package/dist/normalizeDates-9A3c9WYM.js.map +1 -0
- package/dist/providers/component-variant-context/ComponentVariantProvider.d.ts +30 -0
- package/dist/providers/component-variant-context/index.d.ts +1 -0
- package/dist/providers/component-variant-context.d.ts +2 -0
- package/dist/providers/component-variant-context.js +6 -0
- package/dist/providers/component-variant-context.js.map +1 -0
- package/dist/rotate-cw-tYRlcg0g.js +15 -0
- package/dist/rotate-cw-tYRlcg0g.js.map +1 -0
- package/dist/search-CDdgqSGg.js +15 -0
- package/dist/search-CDdgqSGg.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.ts.js +7 -0
- package/dist/src/index.ts.js.map +1 -0
- package/dist/styles-scoped.css +4318 -420
- package/dist/styles.css +4313 -417
- package/dist/theme.css +329 -0
- package/dist/theme.d.ts +1 -0
- package/dist/useBreakpoints-D8wKOvil.js +103 -0
- package/dist/useBreakpoints-D8wKOvil.js.map +1 -0
- package/dist/useDebounce-BRah78CF.js +16 -0
- package/dist/useDebounce-BRah78CF.js.map +1 -0
- package/dist/useFileUpload-iDag0iqM.js +197 -0
- package/dist/useFileUpload-iDag0iqM.js.map +1 -0
- package/dist/useItemsKeyboardNavigation-CmeOR30y.js +62 -0
- package/dist/useItemsKeyboardNavigation-CmeOR30y.js.map +1 -0
- package/dist/useMergeRefs-qoKniYqT.js +19 -0
- package/dist/useMergeRefs-qoKniYqT.js.map +1 -0
- package/dist/usePortalContainer-ae6EzS08.js +39 -0
- package/dist/usePortalContainer-ae6EzS08.js.map +1 -0
- package/dist/vendors/date-fns/index.d.ts +19 -0
- package/dist/vendors/date-fns/locale/en-US/index.d.ts +1 -0
- package/dist/vendors/date-fns/locale/en-US.d.ts +2 -0
- package/dist/vendors/date-fns/locale/en-US.js +372 -0
- package/dist/vendors/date-fns/locale/en-US.js.map +1 -0
- package/dist/vendors/date-fns/locale/ru/index.d.ts +1 -0
- package/dist/vendors/date-fns/locale/ru.d.ts +2 -0
- package/dist/vendors/date-fns/locale/ru.js +569 -0
- package/dist/vendors/date-fns/locale/ru.js.map +1 -0
- package/dist/vendors/date-fns.d.ts +2 -0
- package/dist/vendors/date-fns.js +2 -0
- package/dist/vendors/date-fns.js.map +1 -0
- package/dist/vendors/react-day-picker/index.d.ts +22 -0
- package/dist/vendors/react-day-picker.d.ts +2 -0
- package/dist/vendors/react-day-picker.js +87 -0
- package/dist/vendors/react-day-picker.js.map +1 -0
- package/dist/vendors/react-hook-form/index.d.ts +21 -0
- package/dist/vendors/react-hook-form.d.ts +2 -0
- package/dist/vendors/react-hook-form.js +19 -0
- package/dist/vendors/react-hook-form.js.map +1 -0
- package/dist/vendors/tanstack/react-table/index.d.ts +1 -0
- package/dist/vendors/tanstack/react-table.d.ts +2 -0
- package/dist/vendors/tanstack/react-table.js +2090 -0
- package/dist/vendors/tanstack/react-table.js.map +1 -0
- package/dist/vendors/zod/index.d.ts +14 -0
- package/dist/vendors/zod.d.ts +2 -0
- package/dist/vendors/zod.js +3080 -0
- package/dist/vendors/zod.js.map +1 -0
- package/dist/x-tDTt7hTQ.js +15 -0
- package/dist/x-tDTt7hTQ.js.map +1 -0
- package/dist/zod-BMNoK3aM.js +75 -0
- package/dist/zod-BMNoK3aM.js.map +1 -0
- package/package.json +89 -23
- package/tailwind.preset.js +440 -0
- package/dist/Button-Cfe4WIYW.js +0 -57
- package/dist/Button-Cfe4WIYW.js.map +0 -1
- package/dist/ButtonBase-C8kakRHQ.js +0 -184
- package/dist/ButtonBase-C8kakRHQ.js.map +0 -1
- package/dist/CheckboxField-xt0Z5jab.js +0 -251
- package/dist/CheckboxField-xt0Z5jab.js.map +0 -1
- package/dist/Divider-6mgvOWE1.js +0 -57
- package/dist/Divider-6mgvOWE1.js.map +0 -1
- package/dist/FieldDescription-DCE2z2nv.js +0 -37
- package/dist/FieldDescription-DCE2z2nv.js.map +0 -1
- package/dist/FieldLabel--NVcQQhJ.js +0 -64
- package/dist/FieldLabel--NVcQQhJ.js.map +0 -1
- package/dist/Icon-CSPBHL_x.js +0 -19
- package/dist/Icon-CSPBHL_x.js.map +0 -1
- package/dist/IconButton-CTxOql_1.js +0 -55
- package/dist/IconButton-CTxOql_1.js.map +0 -1
- package/dist/ScrollShadowContainer-C4qXz8gc.js +0 -849
- package/dist/ScrollShadowContainer-C4qXz8gc.js.map +0 -1
- package/dist/components/background/Background.d.ts +0 -138
- package/dist/components/background/Background.stories.d.ts +0 -6
- package/dist/components/field-description/FieldDescription.d.ts +0 -4
- package/dist/components/input/secret-input/components/ShowValueToggler.d.ts +0 -7
- package/dist/components/modal/Modal.d.ts +0 -14
- package/dist/components/modal/Modal.stories.d.ts +0 -25
- package/dist/components/modal/components/body/ModalBody.d.ts +0 -2
- package/dist/components/modal/components/footer/ModalFooter.d.ts +0 -2
- package/dist/components/modal/components/header/ModalHeader.d.ts +0 -6
- package/dist/components/modal/index.d.ts +0 -6
- package/dist/components/modal/templates/header-template/ModalHeaderTemplate.d.ts +0 -210
- package/dist/components/modal.d.ts +0 -2
- package/dist/components/modal.js +0 -506
- package/dist/components/modal.js.map +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -7
- package/dist/createLucideIcon-DgrNxRV5.js +0 -112
- package/dist/fonts/inter/InterVariable-Italic.ttf +0 -0
- package/dist/fonts/inter/InterVariable.ttf +0 -0
- package/dist/index-BA36kN2b.js +0 -76
- package/dist/index-BA36kN2b.js.map +0 -1
- package/dist/index-CImD85pK.js +0 -179
- package/dist/index-CImD85pK.js.map +0 -1
- package/dist/index-CR-odn5-.js +0 -2446
- package/dist/index-CR-odn5-.js.map +0 -1
- package/dist/index-CaGtfIqw.js +0 -163
- package/dist/index-CaGtfIqw.js.map +0 -1
- package/dist/index-CfJKNBxG.js +0 -698
- package/dist/index-CfJKNBxG.js.map +0 -1
- package/dist/index-DPws5oAn.js +0 -90
- package/dist/index-DPws5oAn.js.map +0 -1
- package/dist/index-DsEh1WRc.js +0 -1586
- package/dist/index-DsEh1WRc.js.map +0 -1
- package/dist/index-pysSAa5G.js +0 -57
- package/dist/index-pysSAa5G.js.map +0 -1
- package/dist/tooltip-CYQMPCEj.js +0 -365
- package/dist/tooltip-CYQMPCEj.js.map +0 -1
- package/dist/utils-2yE78m5l.js.map +0 -1
- /package/dist/components/{field-description/FieldDescription.stories.d.ts → banner/components/banner-description/BannerDescription.stories.d.ts} +0 -0
|
@@ -1,102 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (Zt)
|
|
9
|
-
for (var n of Zt(e))
|
|
10
|
-
on.call(e, n) && nn(t, n, e[n]);
|
|
11
|
-
return t;
|
|
12
|
-
}, M = (t, e) => ar(t, lr(e));
|
|
13
|
-
var te = (t, e) => {
|
|
14
|
-
var n = {};
|
|
15
|
-
for (var r in t)
|
|
16
|
-
rn.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
17
|
-
if (t != null && Zt)
|
|
18
|
-
for (var r of Zt(t))
|
|
19
|
-
e.indexOf(r) < 0 && on.call(t, r) && (n[r] = t[r]);
|
|
20
|
-
return n;
|
|
21
|
-
};
|
|
22
|
-
var sn = (t, e, n) => new Promise((r, i) => {
|
|
23
|
-
var o = (l) => {
|
|
24
|
-
try {
|
|
25
|
-
s(n.next(l));
|
|
26
|
-
} catch (c) {
|
|
27
|
-
i(c);
|
|
28
|
-
}
|
|
29
|
-
}, a = (l) => {
|
|
30
|
-
try {
|
|
31
|
-
s(n.throw(l));
|
|
32
|
-
} catch (c) {
|
|
33
|
-
i(c);
|
|
34
|
-
}
|
|
35
|
-
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
|
|
36
|
-
s((n = n.apply(t, e)).next());
|
|
37
|
-
});
|
|
38
|
-
import { jsx as D, jsxs as bt } from "react/jsx-runtime";
|
|
39
|
-
import { T as cr } from "../tooltip-CYQMPCEj.js";
|
|
40
|
-
import B, { useLayoutEffect as ur, useEffect as k, useRef as O, useMemo as E, useCallback as L, useState as $, memo as Mn, useReducer as dr, createContext as Tt, useContext as mt, forwardRef as hr, cloneElement as fr, PureComponent as pr } from "react";
|
|
41
|
-
import { c as ut } from "../index-CR-odn5-.js";
|
|
42
|
-
import { unstable_batchedUpdates as ee, createPortal as gr, flushSync as vr } from "react-dom";
|
|
43
|
-
const fe = typeof window != "undefined" && typeof window.document != "undefined" && typeof window.document.createElement != "undefined";
|
|
44
|
-
function At(t) {
|
|
1
|
+
import { jsx as D, jsxs as gt } from "react/jsx-runtime";
|
|
2
|
+
import k, { useLayoutEffect as qn, useEffect as O, useRef as T, useMemo as C, useCallback as A, useState as j, memo as mn, useReducer as Jn, createContext as Mt, useContext as vt, forwardRef as Qn, cloneElement as Zn, PureComponent as tr } from "react";
|
|
3
|
+
import { T as lt } from "../index-BVqs-uqP.js";
|
|
4
|
+
import { unstable_batchedUpdates as Jt, createPortal as er, flushSync as nr } from "react-dom";
|
|
5
|
+
import { a as rr } from "../Tooltip-C4rVuWr4.js";
|
|
6
|
+
const ce = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
7
|
+
function Nt(t) {
|
|
45
8
|
const e = Object.prototype.toString.call(t);
|
|
46
9
|
return e === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
47
10
|
e === "[object global]";
|
|
48
11
|
}
|
|
49
|
-
function
|
|
12
|
+
function Me(t) {
|
|
50
13
|
return "nodeType" in t;
|
|
51
14
|
}
|
|
52
|
-
function
|
|
15
|
+
function U(t) {
|
|
53
16
|
var e, n;
|
|
54
|
-
return t ?
|
|
17
|
+
return t ? Nt(t) ? t : Me(t) && (e = (n = t.ownerDocument) == null ? void 0 : n.defaultView) != null ? e : window : window;
|
|
55
18
|
}
|
|
56
|
-
function
|
|
19
|
+
function Ne(t) {
|
|
57
20
|
const {
|
|
58
21
|
Document: e
|
|
59
|
-
} =
|
|
22
|
+
} = U(t);
|
|
60
23
|
return t instanceof e;
|
|
61
24
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
25
|
+
function jt(t) {
|
|
26
|
+
return Nt(t) ? !1 : t instanceof U(t).HTMLElement;
|
|
64
27
|
}
|
|
65
|
-
function
|
|
66
|
-
return t instanceof
|
|
28
|
+
function wn(t) {
|
|
29
|
+
return t instanceof U(t).SVGElement;
|
|
67
30
|
}
|
|
68
|
-
function
|
|
69
|
-
return t ?
|
|
31
|
+
function Tt(t) {
|
|
32
|
+
return t ? Nt(t) ? t.document : Me(t) ? Ne(t) ? t : jt(t) || wn(t) ? t.ownerDocument : document : document : document;
|
|
70
33
|
}
|
|
71
|
-
const
|
|
72
|
-
function
|
|
73
|
-
const e =
|
|
74
|
-
return
|
|
34
|
+
const at = ce ? qn : O;
|
|
35
|
+
function ue(t) {
|
|
36
|
+
const e = T(t);
|
|
37
|
+
return at(() => {
|
|
75
38
|
e.current = t;
|
|
76
|
-
}),
|
|
39
|
+
}), A(function() {
|
|
77
40
|
for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
|
|
78
41
|
r[i] = arguments[i];
|
|
79
42
|
return e.current == null ? void 0 : e.current(...r);
|
|
80
43
|
}, []);
|
|
81
44
|
}
|
|
82
|
-
function
|
|
83
|
-
const t =
|
|
45
|
+
function ir() {
|
|
46
|
+
const t = T(null), e = A((r, i) => {
|
|
84
47
|
t.current = setInterval(r, i);
|
|
85
|
-
}, []), n =
|
|
48
|
+
}, []), n = A(() => {
|
|
86
49
|
t.current !== null && (clearInterval(t.current), t.current = null);
|
|
87
50
|
}, []);
|
|
88
51
|
return [e, n];
|
|
89
52
|
}
|
|
90
|
-
function
|
|
53
|
+
function Ht(t, e) {
|
|
91
54
|
e === void 0 && (e = [t]);
|
|
92
|
-
const n =
|
|
93
|
-
return
|
|
55
|
+
const n = T(t);
|
|
56
|
+
return at(() => {
|
|
94
57
|
n.current !== t && (n.current = t);
|
|
95
58
|
}, e), n;
|
|
96
59
|
}
|
|
97
|
-
function
|
|
98
|
-
const n =
|
|
99
|
-
return
|
|
60
|
+
function Yt(t, e) {
|
|
61
|
+
const n = T();
|
|
62
|
+
return C(
|
|
100
63
|
() => {
|
|
101
64
|
const r = t(n.current);
|
|
102
65
|
return n.current = r, r;
|
|
@@ -105,32 +68,32 @@ function Xt(t, e) {
|
|
|
105
68
|
[...e]
|
|
106
69
|
);
|
|
107
70
|
}
|
|
108
|
-
function
|
|
109
|
-
const e =
|
|
71
|
+
function re(t) {
|
|
72
|
+
const e = ue(t), n = T(null), r = A(
|
|
110
73
|
(i) => {
|
|
111
|
-
i !== n.current &&
|
|
74
|
+
i !== n.current && e?.(i, n.current), n.current = i;
|
|
112
75
|
},
|
|
113
76
|
//eslint-disable-next-line
|
|
114
77
|
[]
|
|
115
78
|
);
|
|
116
79
|
return [n, r];
|
|
117
80
|
}
|
|
118
|
-
function
|
|
119
|
-
const e =
|
|
120
|
-
return
|
|
81
|
+
function ie(t) {
|
|
82
|
+
const e = T();
|
|
83
|
+
return O(() => {
|
|
121
84
|
e.current = t;
|
|
122
85
|
}, [t]), e.current;
|
|
123
86
|
}
|
|
124
|
-
let
|
|
125
|
-
function
|
|
126
|
-
return
|
|
87
|
+
let we = {};
|
|
88
|
+
function de(t, e) {
|
|
89
|
+
return C(() => {
|
|
127
90
|
if (e)
|
|
128
91
|
return e;
|
|
129
|
-
const n =
|
|
130
|
-
return
|
|
92
|
+
const n = we[t] == null ? 0 : we[t] + 1;
|
|
93
|
+
return we[t] = n, t + "-" + n;
|
|
131
94
|
}, [t, e]);
|
|
132
95
|
}
|
|
133
|
-
function
|
|
96
|
+
function yn(t) {
|
|
134
97
|
return function(e) {
|
|
135
98
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
136
99
|
r[i - 1] = arguments[i];
|
|
@@ -141,31 +104,33 @@ function Tn(t) {
|
|
|
141
104
|
d != null && (o[l] = d + t * c);
|
|
142
105
|
}
|
|
143
106
|
return o;
|
|
144
|
-
},
|
|
107
|
+
}, {
|
|
108
|
+
...e
|
|
109
|
+
});
|
|
145
110
|
};
|
|
146
111
|
}
|
|
147
|
-
const
|
|
148
|
-
function
|
|
112
|
+
const Et = /* @__PURE__ */ yn(1), oe = /* @__PURE__ */ yn(-1);
|
|
113
|
+
function or(t) {
|
|
149
114
|
return "clientX" in t && "clientY" in t;
|
|
150
115
|
}
|
|
151
|
-
function
|
|
116
|
+
function Te(t) {
|
|
152
117
|
if (!t)
|
|
153
118
|
return !1;
|
|
154
119
|
const {
|
|
155
120
|
KeyboardEvent: e
|
|
156
|
-
} =
|
|
121
|
+
} = U(t.target);
|
|
157
122
|
return e && t instanceof e;
|
|
158
123
|
}
|
|
159
|
-
function
|
|
124
|
+
function sr(t) {
|
|
160
125
|
if (!t)
|
|
161
126
|
return !1;
|
|
162
127
|
const {
|
|
163
128
|
TouchEvent: e
|
|
164
|
-
} =
|
|
129
|
+
} = U(t.target);
|
|
165
130
|
return e && t instanceof e;
|
|
166
131
|
}
|
|
167
|
-
function
|
|
168
|
-
if (
|
|
132
|
+
function se(t) {
|
|
133
|
+
if (sr(t)) {
|
|
169
134
|
if (t.touches && t.touches.length) {
|
|
170
135
|
const {
|
|
171
136
|
clientX: e,
|
|
@@ -186,12 +151,12 @@ function ue(t) {
|
|
|
186
151
|
};
|
|
187
152
|
}
|
|
188
153
|
}
|
|
189
|
-
return
|
|
154
|
+
return or(t) ? {
|
|
190
155
|
x: t.clientX,
|
|
191
156
|
y: t.clientY
|
|
192
157
|
} : null;
|
|
193
158
|
}
|
|
194
|
-
const
|
|
159
|
+
const _t = /* @__PURE__ */ Object.freeze({
|
|
195
160
|
Translate: {
|
|
196
161
|
toString(t) {
|
|
197
162
|
if (!t)
|
|
@@ -217,7 +182,7 @@ const jt = /* @__PURE__ */ Object.freeze({
|
|
|
217
182
|
Transform: {
|
|
218
183
|
toString(t) {
|
|
219
184
|
if (t)
|
|
220
|
-
return [
|
|
185
|
+
return [_t.Translate.toString(t), _t.Scale.toString(t)].join(" ");
|
|
221
186
|
}
|
|
222
187
|
},
|
|
223
188
|
Transition: {
|
|
@@ -230,24 +195,24 @@ const jt = /* @__PURE__ */ Object.freeze({
|
|
|
230
195
|
return e + " " + n + "ms " + r;
|
|
231
196
|
}
|
|
232
197
|
}
|
|
233
|
-
}),
|
|
234
|
-
function
|
|
235
|
-
return t.matches(
|
|
198
|
+
}), qe = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
199
|
+
function ar(t) {
|
|
200
|
+
return t.matches(qe) ? t : t.querySelector(qe);
|
|
236
201
|
}
|
|
237
|
-
const
|
|
202
|
+
const lr = {
|
|
238
203
|
display: "none"
|
|
239
204
|
};
|
|
240
|
-
function
|
|
205
|
+
function cr(t) {
|
|
241
206
|
let {
|
|
242
207
|
id: e,
|
|
243
208
|
value: n
|
|
244
209
|
} = t;
|
|
245
|
-
return
|
|
210
|
+
return k.createElement("div", {
|
|
246
211
|
id: e,
|
|
247
|
-
style:
|
|
212
|
+
style: lr
|
|
248
213
|
}, n);
|
|
249
214
|
}
|
|
250
|
-
function
|
|
215
|
+
function ur(t) {
|
|
251
216
|
let {
|
|
252
217
|
id: e,
|
|
253
218
|
announcement: n,
|
|
@@ -267,7 +232,7 @@ function Dr(t) {
|
|
|
267
232
|
clipPath: "inset(100%)",
|
|
268
233
|
whiteSpace: "nowrap"
|
|
269
234
|
};
|
|
270
|
-
return
|
|
235
|
+
return k.createElement("div", {
|
|
271
236
|
id: e,
|
|
272
237
|
style: i,
|
|
273
238
|
role: "status",
|
|
@@ -275,27 +240,27 @@ function Dr(t) {
|
|
|
275
240
|
"aria-atomic": !0
|
|
276
241
|
}, n);
|
|
277
242
|
}
|
|
278
|
-
function
|
|
279
|
-
const [t, e] =
|
|
243
|
+
function dr() {
|
|
244
|
+
const [t, e] = j("");
|
|
280
245
|
return {
|
|
281
|
-
announce:
|
|
246
|
+
announce: A((r) => {
|
|
282
247
|
r != null && e(r);
|
|
283
248
|
}, []),
|
|
284
249
|
announcement: t
|
|
285
250
|
};
|
|
286
251
|
}
|
|
287
|
-
const
|
|
288
|
-
function
|
|
289
|
-
const e =
|
|
290
|
-
|
|
252
|
+
const xn = /* @__PURE__ */ Mt(null);
|
|
253
|
+
function hr(t) {
|
|
254
|
+
const e = vt(xn);
|
|
255
|
+
O(() => {
|
|
291
256
|
if (!e)
|
|
292
257
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
293
258
|
return e(t);
|
|
294
259
|
}, [t, e]);
|
|
295
260
|
}
|
|
296
|
-
function
|
|
297
|
-
const [t] =
|
|
298
|
-
return [
|
|
261
|
+
function fr() {
|
|
262
|
+
const [t] = j(() => /* @__PURE__ */ new Set()), e = A((r) => (t.add(r), () => t.delete(r)), [t]);
|
|
263
|
+
return [A((r) => {
|
|
299
264
|
let {
|
|
300
265
|
type: i,
|
|
301
266
|
event: o
|
|
@@ -306,13 +271,13 @@ function zr() {
|
|
|
306
271
|
});
|
|
307
272
|
}, [t]), e];
|
|
308
273
|
}
|
|
309
|
-
const
|
|
274
|
+
const pr = {
|
|
310
275
|
draggable: `
|
|
311
276
|
To pick up a draggable item, press the space bar.
|
|
312
277
|
While dragging, use the arrow keys to move the item.
|
|
313
278
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
314
279
|
`
|
|
315
|
-
},
|
|
280
|
+
}, gr = {
|
|
316
281
|
onDragStart(t) {
|
|
317
282
|
let {
|
|
318
283
|
active: e
|
|
@@ -340,110 +305,110 @@ const Er = {
|
|
|
340
305
|
return "Dragging was cancelled. Draggable item " + e.id + " was dropped.";
|
|
341
306
|
}
|
|
342
307
|
};
|
|
343
|
-
function
|
|
308
|
+
function vr(t) {
|
|
344
309
|
let {
|
|
345
|
-
announcements: e =
|
|
310
|
+
announcements: e = gr,
|
|
346
311
|
container: n,
|
|
347
312
|
hiddenTextDescribedById: r,
|
|
348
|
-
screenReaderInstructions: i =
|
|
313
|
+
screenReaderInstructions: i = pr
|
|
349
314
|
} = t;
|
|
350
315
|
const {
|
|
351
316
|
announce: o,
|
|
352
317
|
announcement: a
|
|
353
|
-
} =
|
|
354
|
-
if (
|
|
318
|
+
} = dr(), s = de("DndLiveRegion"), [l, c] = j(!1);
|
|
319
|
+
if (O(() => {
|
|
355
320
|
c(!0);
|
|
356
|
-
}, []),
|
|
321
|
+
}, []), hr(C(() => ({
|
|
357
322
|
onDragStart(u) {
|
|
358
323
|
let {
|
|
359
|
-
active:
|
|
324
|
+
active: f
|
|
360
325
|
} = u;
|
|
361
326
|
o(e.onDragStart({
|
|
362
|
-
active:
|
|
327
|
+
active: f
|
|
363
328
|
}));
|
|
364
329
|
},
|
|
365
330
|
onDragMove(u) {
|
|
366
331
|
let {
|
|
367
|
-
active:
|
|
332
|
+
active: f,
|
|
368
333
|
over: p
|
|
369
334
|
} = u;
|
|
370
335
|
e.onDragMove && o(e.onDragMove({
|
|
371
|
-
active:
|
|
336
|
+
active: f,
|
|
372
337
|
over: p
|
|
373
338
|
}));
|
|
374
339
|
},
|
|
375
340
|
onDragOver(u) {
|
|
376
341
|
let {
|
|
377
|
-
active:
|
|
342
|
+
active: f,
|
|
378
343
|
over: p
|
|
379
344
|
} = u;
|
|
380
345
|
o(e.onDragOver({
|
|
381
|
-
active:
|
|
346
|
+
active: f,
|
|
382
347
|
over: p
|
|
383
348
|
}));
|
|
384
349
|
},
|
|
385
350
|
onDragEnd(u) {
|
|
386
351
|
let {
|
|
387
|
-
active:
|
|
352
|
+
active: f,
|
|
388
353
|
over: p
|
|
389
354
|
} = u;
|
|
390
355
|
o(e.onDragEnd({
|
|
391
|
-
active:
|
|
356
|
+
active: f,
|
|
392
357
|
over: p
|
|
393
358
|
}));
|
|
394
359
|
},
|
|
395
360
|
onDragCancel(u) {
|
|
396
361
|
let {
|
|
397
|
-
active:
|
|
362
|
+
active: f,
|
|
398
363
|
over: p
|
|
399
364
|
} = u;
|
|
400
365
|
o(e.onDragCancel({
|
|
401
|
-
active:
|
|
366
|
+
active: f,
|
|
402
367
|
over: p
|
|
403
368
|
}));
|
|
404
369
|
}
|
|
405
370
|
}), [o, e])), !l)
|
|
406
371
|
return null;
|
|
407
|
-
const d =
|
|
372
|
+
const d = k.createElement(k.Fragment, null, k.createElement(cr, {
|
|
408
373
|
id: r,
|
|
409
374
|
value: i.draggable
|
|
410
|
-
}),
|
|
375
|
+
}), k.createElement(ur, {
|
|
411
376
|
id: s,
|
|
412
377
|
announcement: a
|
|
413
378
|
}));
|
|
414
|
-
return n ?
|
|
379
|
+
return n ? er(d, n) : d;
|
|
415
380
|
}
|
|
416
|
-
var
|
|
381
|
+
var I;
|
|
417
382
|
(function(t) {
|
|
418
383
|
t.DragStart = "dragStart", t.DragMove = "dragMove", t.DragEnd = "dragEnd", t.DragCancel = "dragCancel", t.DragOver = "dragOver", t.RegisterDroppable = "registerDroppable", t.SetDroppableDisabled = "setDroppableDisabled", t.UnregisterDroppable = "unregisterDroppable";
|
|
419
|
-
})(
|
|
420
|
-
function
|
|
384
|
+
})(I || (I = {}));
|
|
385
|
+
function ae() {
|
|
421
386
|
}
|
|
422
|
-
function
|
|
423
|
-
return
|
|
387
|
+
function Je(t, e) {
|
|
388
|
+
return C(
|
|
424
389
|
() => ({
|
|
425
390
|
sensor: t,
|
|
426
|
-
options: e
|
|
391
|
+
options: e ?? {}
|
|
427
392
|
}),
|
|
428
393
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
429
394
|
[t, e]
|
|
430
395
|
);
|
|
431
396
|
}
|
|
432
|
-
function
|
|
397
|
+
function br() {
|
|
433
398
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
434
399
|
e[n] = arguments[n];
|
|
435
|
-
return
|
|
400
|
+
return C(
|
|
436
401
|
() => [...e].filter((r) => r != null),
|
|
437
402
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
438
403
|
[...e]
|
|
439
404
|
);
|
|
440
405
|
}
|
|
441
|
-
const
|
|
406
|
+
const et = /* @__PURE__ */ Object.freeze({
|
|
442
407
|
x: 0,
|
|
443
408
|
y: 0
|
|
444
409
|
});
|
|
445
|
-
function
|
|
446
|
-
const n =
|
|
410
|
+
function mr(t, e) {
|
|
411
|
+
const n = se(t);
|
|
447
412
|
if (!n)
|
|
448
413
|
return "0 0";
|
|
449
414
|
const r = {
|
|
@@ -452,7 +417,7 @@ function Ar(t, e) {
|
|
|
452
417
|
};
|
|
453
418
|
return r.x + "% " + r.y + "%";
|
|
454
419
|
}
|
|
455
|
-
function
|
|
420
|
+
function wr(t, e) {
|
|
456
421
|
let {
|
|
457
422
|
data: {
|
|
458
423
|
value: n
|
|
@@ -464,13 +429,13 @@ function Or(t, e) {
|
|
|
464
429
|
} = e;
|
|
465
430
|
return r - n;
|
|
466
431
|
}
|
|
467
|
-
function
|
|
432
|
+
function yr(t, e) {
|
|
468
433
|
if (!t || t.length === 0)
|
|
469
434
|
return null;
|
|
470
435
|
const [n] = t;
|
|
471
436
|
return n[e];
|
|
472
437
|
}
|
|
473
|
-
function
|
|
438
|
+
function xr(t, e) {
|
|
474
439
|
const n = Math.max(e.top, t.top), r = Math.max(e.left, t.left), i = Math.min(e.left + e.width, t.left + t.width), o = Math.min(e.top + e.height, t.top + t.height), a = i - r, s = o - n;
|
|
475
440
|
if (r < i && n < o) {
|
|
476
441
|
const l = e.width * e.height, c = t.width * t.height, d = a * s, u = d / (l + c - d);
|
|
@@ -478,7 +443,7 @@ function kr(t, e) {
|
|
|
478
443
|
}
|
|
479
444
|
return 0;
|
|
480
445
|
}
|
|
481
|
-
const
|
|
446
|
+
const Dr = (t) => {
|
|
482
447
|
let {
|
|
483
448
|
collisionRect: e,
|
|
484
449
|
droppableRects: n,
|
|
@@ -490,7 +455,7 @@ const Pr = (t) => {
|
|
|
490
455
|
id: a
|
|
491
456
|
} = o, s = n.get(a);
|
|
492
457
|
if (s) {
|
|
493
|
-
const l =
|
|
458
|
+
const l = xr(s, e);
|
|
494
459
|
l > 0 && i.push({
|
|
495
460
|
id: a,
|
|
496
461
|
data: {
|
|
@@ -500,34 +465,38 @@ const Pr = (t) => {
|
|
|
500
465
|
});
|
|
501
466
|
}
|
|
502
467
|
}
|
|
503
|
-
return i.sort(
|
|
468
|
+
return i.sort(wr);
|
|
504
469
|
};
|
|
505
|
-
function
|
|
506
|
-
return
|
|
470
|
+
function Sr(t, e, n) {
|
|
471
|
+
return {
|
|
472
|
+
...t,
|
|
507
473
|
scaleX: e && n ? e.width / n.width : 1,
|
|
508
474
|
scaleY: e && n ? e.height / n.height : 1
|
|
509
|
-
}
|
|
475
|
+
};
|
|
510
476
|
}
|
|
511
|
-
function
|
|
477
|
+
function Dn(t, e) {
|
|
512
478
|
return t && e ? {
|
|
513
479
|
x: t.left - e.left,
|
|
514
480
|
y: t.top - e.top
|
|
515
|
-
} :
|
|
481
|
+
} : et;
|
|
516
482
|
}
|
|
517
|
-
function
|
|
483
|
+
function Rr(t) {
|
|
518
484
|
return function(n) {
|
|
519
485
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
520
486
|
i[o - 1] = arguments[o];
|
|
521
|
-
return i.reduce((a, s) =>
|
|
487
|
+
return i.reduce((a, s) => ({
|
|
488
|
+
...a,
|
|
522
489
|
top: a.top + t * s.y,
|
|
523
490
|
bottom: a.bottom + t * s.y,
|
|
524
491
|
left: a.left + t * s.x,
|
|
525
492
|
right: a.right + t * s.x
|
|
526
|
-
}),
|
|
493
|
+
}), {
|
|
494
|
+
...n
|
|
495
|
+
});
|
|
527
496
|
};
|
|
528
497
|
}
|
|
529
|
-
const
|
|
530
|
-
function
|
|
498
|
+
const Cr = /* @__PURE__ */ Rr(1);
|
|
499
|
+
function Sn(t) {
|
|
531
500
|
if (t.startsWith("matrix3d(")) {
|
|
532
501
|
const e = t.slice(9, -1).split(/, /);
|
|
533
502
|
return {
|
|
@@ -547,8 +516,8 @@ function Ln(t) {
|
|
|
547
516
|
}
|
|
548
517
|
return null;
|
|
549
518
|
}
|
|
550
|
-
function
|
|
551
|
-
const r =
|
|
519
|
+
function zr(t, e, n) {
|
|
520
|
+
const r = Sn(e);
|
|
552
521
|
if (!r)
|
|
553
522
|
return t;
|
|
554
523
|
const {
|
|
@@ -566,18 +535,18 @@ function Hr(t, e, n) {
|
|
|
566
535
|
left: l
|
|
567
536
|
};
|
|
568
537
|
}
|
|
569
|
-
const
|
|
538
|
+
const Er = {
|
|
570
539
|
ignoreTransform: !1
|
|
571
540
|
};
|
|
572
|
-
function
|
|
573
|
-
e === void 0 && (e =
|
|
541
|
+
function $t(t, e) {
|
|
542
|
+
e === void 0 && (e = Er);
|
|
574
543
|
let n = t.getBoundingClientRect();
|
|
575
544
|
if (e.ignoreTransform) {
|
|
576
545
|
const {
|
|
577
546
|
transform: c,
|
|
578
547
|
transformOrigin: d
|
|
579
|
-
} =
|
|
580
|
-
c && (n =
|
|
548
|
+
} = U(t).getComputedStyle(t);
|
|
549
|
+
c && (n = zr(n, c, d));
|
|
581
550
|
}
|
|
582
551
|
const {
|
|
583
552
|
top: r,
|
|
@@ -596,12 +565,12 @@ function Ut(t, e) {
|
|
|
596
565
|
right: l
|
|
597
566
|
};
|
|
598
567
|
}
|
|
599
|
-
function
|
|
600
|
-
return
|
|
568
|
+
function Qe(t) {
|
|
569
|
+
return $t(t, {
|
|
601
570
|
ignoreTransform: !0
|
|
602
571
|
});
|
|
603
572
|
}
|
|
604
|
-
function
|
|
573
|
+
function Mr(t) {
|
|
605
574
|
const e = t.innerWidth, n = t.innerHeight;
|
|
606
575
|
return {
|
|
607
576
|
top: 0,
|
|
@@ -612,62 +581,62 @@ function Fr(t) {
|
|
|
612
581
|
height: n
|
|
613
582
|
};
|
|
614
583
|
}
|
|
615
|
-
function
|
|
616
|
-
return e === void 0 && (e =
|
|
584
|
+
function Nr(t, e) {
|
|
585
|
+
return e === void 0 && (e = U(t).getComputedStyle(t)), e.position === "fixed";
|
|
617
586
|
}
|
|
618
|
-
function
|
|
619
|
-
e === void 0 && (e =
|
|
587
|
+
function Tr(t, e) {
|
|
588
|
+
e === void 0 && (e = U(t).getComputedStyle(t));
|
|
620
589
|
const n = /(auto|scroll|overlay)/;
|
|
621
590
|
return ["overflow", "overflowX", "overflowY"].some((i) => {
|
|
622
591
|
const o = e[i];
|
|
623
592
|
return typeof o == "string" ? n.test(o) : !1;
|
|
624
593
|
});
|
|
625
594
|
}
|
|
626
|
-
function
|
|
595
|
+
function Ae(t, e) {
|
|
627
596
|
const n = [];
|
|
628
597
|
function r(i) {
|
|
629
598
|
if (e != null && n.length >= e || !i)
|
|
630
599
|
return n;
|
|
631
|
-
if (
|
|
600
|
+
if (Ne(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
|
|
632
601
|
return n.push(i.scrollingElement), n;
|
|
633
|
-
if (
|
|
602
|
+
if (!jt(i) || wn(i) || n.includes(i))
|
|
634
603
|
return n;
|
|
635
|
-
const o =
|
|
636
|
-
return i !== t &&
|
|
604
|
+
const o = U(t).getComputedStyle(i);
|
|
605
|
+
return i !== t && Tr(i, o) && n.push(i), Nr(i, o) ? n : r(i.parentNode);
|
|
637
606
|
}
|
|
638
607
|
return t ? r(t) : n;
|
|
639
608
|
}
|
|
640
|
-
function
|
|
641
|
-
const [e] =
|
|
642
|
-
return e
|
|
609
|
+
function Rn(t) {
|
|
610
|
+
const [e] = Ae(t, 1);
|
|
611
|
+
return e ?? null;
|
|
643
612
|
}
|
|
644
|
-
function
|
|
645
|
-
return !
|
|
613
|
+
function ye(t) {
|
|
614
|
+
return !ce || !t ? null : Nt(t) ? t : Me(t) ? Ne(t) || t === Tt(t).scrollingElement ? window : jt(t) ? t : null : null;
|
|
646
615
|
}
|
|
647
|
-
function
|
|
648
|
-
return
|
|
616
|
+
function Cn(t) {
|
|
617
|
+
return Nt(t) ? t.scrollX : t.scrollLeft;
|
|
649
618
|
}
|
|
650
|
-
function
|
|
651
|
-
return
|
|
619
|
+
function zn(t) {
|
|
620
|
+
return Nt(t) ? t.scrollY : t.scrollTop;
|
|
652
621
|
}
|
|
653
|
-
function
|
|
622
|
+
function Re(t) {
|
|
654
623
|
return {
|
|
655
|
-
x:
|
|
656
|
-
y:
|
|
624
|
+
x: Cn(t),
|
|
625
|
+
y: zn(t)
|
|
657
626
|
};
|
|
658
627
|
}
|
|
659
|
-
var
|
|
628
|
+
var _;
|
|
660
629
|
(function(t) {
|
|
661
630
|
t[t.Forward = 1] = "Forward", t[t.Backward = -1] = "Backward";
|
|
662
|
-
})(
|
|
663
|
-
function
|
|
664
|
-
return !
|
|
631
|
+
})(_ || (_ = {}));
|
|
632
|
+
function En(t) {
|
|
633
|
+
return !ce || !t ? !1 : t === document.scrollingElement;
|
|
665
634
|
}
|
|
666
|
-
function
|
|
635
|
+
function Mn(t) {
|
|
667
636
|
const e = {
|
|
668
637
|
x: 0,
|
|
669
638
|
y: 0
|
|
670
|
-
}, n =
|
|
639
|
+
}, n = En(t) ? {
|
|
671
640
|
height: window.innerHeight,
|
|
672
641
|
width: window.innerWidth
|
|
673
642
|
} : {
|
|
@@ -686,39 +655,39 @@ function In(t) {
|
|
|
686
655
|
minScroll: e
|
|
687
656
|
};
|
|
688
657
|
}
|
|
689
|
-
const
|
|
658
|
+
const Ar = {
|
|
690
659
|
x: 0.2,
|
|
691
660
|
y: 0.2
|
|
692
661
|
};
|
|
693
|
-
function
|
|
662
|
+
function Or(t, e, n, r, i) {
|
|
694
663
|
let {
|
|
695
664
|
top: o,
|
|
696
665
|
left: a,
|
|
697
666
|
right: s,
|
|
698
667
|
bottom: l
|
|
699
668
|
} = n;
|
|
700
|
-
r === void 0 && (r = 10), i === void 0 && (i =
|
|
669
|
+
r === void 0 && (r = 10), i === void 0 && (i = Ar);
|
|
701
670
|
const {
|
|
702
671
|
isTop: c,
|
|
703
672
|
isBottom: d,
|
|
704
673
|
isLeft: u,
|
|
705
|
-
isRight:
|
|
706
|
-
} =
|
|
674
|
+
isRight: f
|
|
675
|
+
} = Mn(t), p = {
|
|
707
676
|
x: 0,
|
|
708
677
|
y: 0
|
|
709
678
|
}, b = {
|
|
710
679
|
x: 0,
|
|
711
680
|
y: 0
|
|
712
|
-
},
|
|
681
|
+
}, h = {
|
|
713
682
|
height: e.height * i.y,
|
|
714
683
|
width: e.width * i.x
|
|
715
684
|
};
|
|
716
|
-
return !c && o <= e.top +
|
|
685
|
+
return !c && o <= e.top + h.height ? (p.y = _.Backward, b.y = r * Math.abs((e.top + h.height - o) / h.height)) : !d && l >= e.bottom - h.height && (p.y = _.Forward, b.y = r * Math.abs((e.bottom - h.height - l) / h.height)), !f && s >= e.right - h.width ? (p.x = _.Forward, b.x = r * Math.abs((e.right - h.width - s) / h.width)) : !u && a <= e.left + h.width && (p.x = _.Backward, b.x = r * Math.abs((e.left + h.width - a) / h.width)), {
|
|
717
686
|
direction: p,
|
|
718
687
|
speed: b
|
|
719
688
|
};
|
|
720
689
|
}
|
|
721
|
-
function
|
|
690
|
+
function Lr(t) {
|
|
722
691
|
if (t === document.scrollingElement) {
|
|
723
692
|
const {
|
|
724
693
|
innerWidth: o,
|
|
@@ -748,17 +717,17 @@ function Ur(t) {
|
|
|
748
717
|
height: t.clientHeight
|
|
749
718
|
};
|
|
750
719
|
}
|
|
751
|
-
function
|
|
752
|
-
return t.reduce((e, n) =>
|
|
720
|
+
function Nn(t) {
|
|
721
|
+
return t.reduce((e, n) => Et(e, Re(n)), et);
|
|
753
722
|
}
|
|
754
|
-
function
|
|
755
|
-
return t.reduce((e, n) => e +
|
|
723
|
+
function kr(t) {
|
|
724
|
+
return t.reduce((e, n) => e + Cn(n), 0);
|
|
756
725
|
}
|
|
757
|
-
function
|
|
758
|
-
return t.reduce((e, n) => e +
|
|
726
|
+
function Pr(t) {
|
|
727
|
+
return t.reduce((e, n) => e + zn(n), 0);
|
|
759
728
|
}
|
|
760
|
-
function
|
|
761
|
-
if (e === void 0 && (e =
|
|
729
|
+
function Tn(t, e) {
|
|
730
|
+
if (e === void 0 && (e = $t), !t)
|
|
762
731
|
return;
|
|
763
732
|
const {
|
|
764
733
|
top: n,
|
|
@@ -766,18 +735,20 @@ function _n(t, e) {
|
|
|
766
735
|
bottom: i,
|
|
767
736
|
right: o
|
|
768
737
|
} = e(t);
|
|
769
|
-
|
|
738
|
+
Rn(t) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && t.scrollIntoView({
|
|
770
739
|
block: "center",
|
|
771
740
|
inline: "center"
|
|
772
741
|
});
|
|
773
742
|
}
|
|
774
|
-
const
|
|
775
|
-
class
|
|
743
|
+
const Br = [["x", ["left", "right"], kr], ["y", ["top", "bottom"], Pr]];
|
|
744
|
+
class Oe {
|
|
776
745
|
constructor(e, n) {
|
|
777
746
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
778
|
-
const r =
|
|
779
|
-
this.rect =
|
|
780
|
-
|
|
747
|
+
const r = Ae(n), i = Nn(r);
|
|
748
|
+
this.rect = {
|
|
749
|
+
...e
|
|
750
|
+
}, this.width = e.width, this.height = e.height;
|
|
751
|
+
for (const [o, a, s] of Br)
|
|
781
752
|
for (const l of a)
|
|
782
753
|
Object.defineProperty(this, l, {
|
|
783
754
|
get: () => {
|
|
@@ -791,7 +762,7 @@ class We {
|
|
|
791
762
|
});
|
|
792
763
|
}
|
|
793
764
|
}
|
|
794
|
-
class
|
|
765
|
+
class Bt {
|
|
795
766
|
constructor(e) {
|
|
796
767
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
797
768
|
this.listeners.forEach((n) => {
|
|
@@ -805,58 +776,62 @@ class It {
|
|
|
805
776
|
(i = this.target) == null || i.addEventListener(e, n, r), this.listeners.push([e, n, r]);
|
|
806
777
|
}
|
|
807
778
|
}
|
|
808
|
-
function
|
|
779
|
+
function Wr(t) {
|
|
809
780
|
const {
|
|
810
781
|
EventTarget: e
|
|
811
|
-
} =
|
|
812
|
-
return t instanceof e ? t :
|
|
782
|
+
} = U(t);
|
|
783
|
+
return t instanceof e ? t : Tt(t);
|
|
813
784
|
}
|
|
814
|
-
function
|
|
785
|
+
function xe(t, e) {
|
|
815
786
|
const n = Math.abs(t.x), r = Math.abs(t.y);
|
|
816
|
-
return typeof e == "number" ? Math.sqrt(
|
|
787
|
+
return typeof e == "number" ? Math.sqrt(n ** 2 + r ** 2) > e : "x" in e && "y" in e ? n > e.x && r > e.y : "x" in e ? n > e.x : "y" in e ? r > e.y : !1;
|
|
817
788
|
}
|
|
818
|
-
var
|
|
789
|
+
var Q;
|
|
819
790
|
(function(t) {
|
|
820
791
|
t.Click = "click", t.DragStart = "dragstart", t.Keydown = "keydown", t.ContextMenu = "contextmenu", t.Resize = "resize", t.SelectionChange = "selectionchange", t.VisibilityChange = "visibilitychange";
|
|
821
|
-
})(
|
|
822
|
-
function
|
|
792
|
+
})(Q || (Q = {}));
|
|
793
|
+
function Ze(t) {
|
|
823
794
|
t.preventDefault();
|
|
824
795
|
}
|
|
825
|
-
function
|
|
796
|
+
function Ir(t) {
|
|
826
797
|
t.stopPropagation();
|
|
827
798
|
}
|
|
828
|
-
var
|
|
799
|
+
var M;
|
|
829
800
|
(function(t) {
|
|
830
801
|
t.Space = "Space", t.Down = "ArrowDown", t.Right = "ArrowRight", t.Left = "ArrowLeft", t.Up = "ArrowUp", t.Esc = "Escape", t.Enter = "Enter", t.Tab = "Tab";
|
|
831
|
-
})(
|
|
832
|
-
const
|
|
833
|
-
start: [
|
|
834
|
-
cancel: [
|
|
835
|
-
end: [
|
|
836
|
-
},
|
|
802
|
+
})(M || (M = {}));
|
|
803
|
+
const An = {
|
|
804
|
+
start: [M.Space, M.Enter],
|
|
805
|
+
cancel: [M.Esc],
|
|
806
|
+
end: [M.Space, M.Enter, M.Tab]
|
|
807
|
+
}, Hr = (t, e) => {
|
|
837
808
|
let {
|
|
838
809
|
currentCoordinates: n
|
|
839
810
|
} = e;
|
|
840
811
|
switch (t.code) {
|
|
841
|
-
case
|
|
842
|
-
return
|
|
812
|
+
case M.Right:
|
|
813
|
+
return {
|
|
814
|
+
...n,
|
|
843
815
|
x: n.x + 25
|
|
844
|
-
}
|
|
845
|
-
case
|
|
846
|
-
return
|
|
816
|
+
};
|
|
817
|
+
case M.Left:
|
|
818
|
+
return {
|
|
819
|
+
...n,
|
|
847
820
|
x: n.x - 25
|
|
848
|
-
}
|
|
849
|
-
case
|
|
850
|
-
return
|
|
821
|
+
};
|
|
822
|
+
case M.Down:
|
|
823
|
+
return {
|
|
824
|
+
...n,
|
|
851
825
|
y: n.y + 25
|
|
852
|
-
}
|
|
853
|
-
case
|
|
854
|
-
return
|
|
826
|
+
};
|
|
827
|
+
case M.Up:
|
|
828
|
+
return {
|
|
829
|
+
...n,
|
|
855
830
|
y: n.y - 25
|
|
856
|
-
}
|
|
831
|
+
};
|
|
857
832
|
}
|
|
858
833
|
};
|
|
859
|
-
class
|
|
834
|
+
class Le {
|
|
860
835
|
constructor(e) {
|
|
861
836
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = e;
|
|
862
837
|
const {
|
|
@@ -864,27 +839,27 @@ class Ie {
|
|
|
864
839
|
target: n
|
|
865
840
|
}
|
|
866
841
|
} = e;
|
|
867
|
-
this.props = e, this.listeners = new
|
|
842
|
+
this.props = e, this.listeners = new Bt(Tt(n)), this.windowListeners = new Bt(U(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
868
843
|
}
|
|
869
844
|
attach() {
|
|
870
|
-
this.handleStart(), this.windowListeners.add(
|
|
845
|
+
this.handleStart(), this.windowListeners.add(Q.Resize, this.handleCancel), this.windowListeners.add(Q.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(Q.Keydown, this.handleKeyDown));
|
|
871
846
|
}
|
|
872
847
|
handleStart() {
|
|
873
848
|
const {
|
|
874
849
|
activeNode: e,
|
|
875
850
|
onStart: n
|
|
876
851
|
} = this.props, r = e.node.current;
|
|
877
|
-
r &&
|
|
852
|
+
r && Tn(r), n(et);
|
|
878
853
|
}
|
|
879
854
|
handleKeyDown(e) {
|
|
880
|
-
if (
|
|
855
|
+
if (Te(e)) {
|
|
881
856
|
const {
|
|
882
857
|
active: n,
|
|
883
858
|
context: r,
|
|
884
859
|
options: i
|
|
885
860
|
} = this.props, {
|
|
886
|
-
keyboardCodes: o =
|
|
887
|
-
coordinateGetter: a =
|
|
861
|
+
keyboardCodes: o = An,
|
|
862
|
+
coordinateGetter: a = Hr,
|
|
888
863
|
scrollBehavior: s = "smooth"
|
|
889
864
|
} = i, {
|
|
890
865
|
code: l
|
|
@@ -902,7 +877,7 @@ class Ie {
|
|
|
902
877
|
} = r.current, d = c ? {
|
|
903
878
|
x: c.left,
|
|
904
879
|
y: c.top
|
|
905
|
-
} :
|
|
880
|
+
} : et;
|
|
906
881
|
this.referenceCoordinates || (this.referenceCoordinates = d);
|
|
907
882
|
const u = a(e, {
|
|
908
883
|
active: n,
|
|
@@ -910,55 +885,55 @@ class Ie {
|
|
|
910
885
|
currentCoordinates: d
|
|
911
886
|
});
|
|
912
887
|
if (u) {
|
|
913
|
-
const
|
|
888
|
+
const f = oe(u, d), p = {
|
|
914
889
|
x: 0,
|
|
915
890
|
y: 0
|
|
916
891
|
}, {
|
|
917
892
|
scrollableAncestors: b
|
|
918
893
|
} = r.current;
|
|
919
|
-
for (const
|
|
894
|
+
for (const h of b) {
|
|
920
895
|
const g = e.code, {
|
|
921
|
-
isTop:
|
|
922
|
-
isRight:
|
|
896
|
+
isTop: m,
|
|
897
|
+
isRight: w,
|
|
923
898
|
isLeft: v,
|
|
924
|
-
isBottom:
|
|
925
|
-
maxScroll:
|
|
899
|
+
isBottom: y,
|
|
900
|
+
maxScroll: R,
|
|
926
901
|
minScroll: z
|
|
927
|
-
} =
|
|
928
|
-
x: Math.min(g ===
|
|
929
|
-
y: Math.min(g ===
|
|
930
|
-
},
|
|
931
|
-
if (
|
|
932
|
-
const
|
|
933
|
-
if (
|
|
934
|
-
|
|
935
|
-
left:
|
|
902
|
+
} = Mn(h), x = Lr(h), S = {
|
|
903
|
+
x: Math.min(g === M.Right ? x.right - x.width / 2 : x.right, Math.max(g === M.Right ? x.left : x.left + x.width / 2, u.x)),
|
|
904
|
+
y: Math.min(g === M.Down ? x.bottom - x.height / 2 : x.bottom, Math.max(g === M.Down ? x.top : x.top + x.height / 2, u.y))
|
|
905
|
+
}, E = g === M.Right && !w || g === M.Left && !v, L = g === M.Down && !y || g === M.Up && !m;
|
|
906
|
+
if (E && S.x !== u.x) {
|
|
907
|
+
const N = h.scrollLeft + f.x, H = g === M.Right && N <= R.x || g === M.Left && N >= z.x;
|
|
908
|
+
if (H && !f.y) {
|
|
909
|
+
h.scrollTo({
|
|
910
|
+
left: N,
|
|
936
911
|
behavior: s
|
|
937
912
|
});
|
|
938
913
|
return;
|
|
939
914
|
}
|
|
940
|
-
|
|
915
|
+
H ? p.x = h.scrollLeft - N : p.x = g === M.Right ? h.scrollLeft - R.x : h.scrollLeft - z.x, p.x && h.scrollBy({
|
|
941
916
|
left: -p.x,
|
|
942
917
|
behavior: s
|
|
943
918
|
});
|
|
944
919
|
break;
|
|
945
|
-
} else if (
|
|
946
|
-
const
|
|
947
|
-
if (
|
|
948
|
-
|
|
949
|
-
top:
|
|
920
|
+
} else if (L && S.y !== u.y) {
|
|
921
|
+
const N = h.scrollTop + f.y, H = g === M.Down && N <= R.y || g === M.Up && N >= z.y;
|
|
922
|
+
if (H && !f.x) {
|
|
923
|
+
h.scrollTo({
|
|
924
|
+
top: N,
|
|
950
925
|
behavior: s
|
|
951
926
|
});
|
|
952
927
|
return;
|
|
953
928
|
}
|
|
954
|
-
|
|
929
|
+
H ? p.y = h.scrollTop - N : p.y = g === M.Down ? h.scrollTop - R.y : h.scrollTop - z.y, p.y && h.scrollBy({
|
|
955
930
|
top: -p.y,
|
|
956
931
|
behavior: s
|
|
957
932
|
});
|
|
958
933
|
break;
|
|
959
934
|
}
|
|
960
935
|
}
|
|
961
|
-
this.handleMove(e,
|
|
936
|
+
this.handleMove(e, Et(oe(u, this.referenceCoordinates), p));
|
|
962
937
|
}
|
|
963
938
|
}
|
|
964
939
|
}
|
|
@@ -984,11 +959,11 @@ class Ie {
|
|
|
984
959
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
985
960
|
}
|
|
986
961
|
}
|
|
987
|
-
|
|
962
|
+
Le.activators = [{
|
|
988
963
|
eventName: "onKeyDown",
|
|
989
964
|
handler: (t, e, n) => {
|
|
990
965
|
let {
|
|
991
|
-
keyboardCodes: r =
|
|
966
|
+
keyboardCodes: r = An,
|
|
992
967
|
onActivation: i
|
|
993
968
|
} = e, {
|
|
994
969
|
active: o
|
|
@@ -998,29 +973,29 @@ Ie.activators = [{
|
|
|
998
973
|
} = t.nativeEvent;
|
|
999
974
|
if (r.start.includes(a)) {
|
|
1000
975
|
const s = o.activatorNode.current;
|
|
1001
|
-
return s && t.target !== s ? !1 : (t.preventDefault(), i
|
|
976
|
+
return s && t.target !== s ? !1 : (t.preventDefault(), i?.({
|
|
1002
977
|
event: t.nativeEvent
|
|
1003
978
|
}), !0);
|
|
1004
979
|
}
|
|
1005
980
|
return !1;
|
|
1006
981
|
}
|
|
1007
982
|
}];
|
|
1008
|
-
function
|
|
983
|
+
function tn(t) {
|
|
1009
984
|
return !!(t && "distance" in t);
|
|
1010
985
|
}
|
|
1011
|
-
function
|
|
986
|
+
function en(t) {
|
|
1012
987
|
return !!(t && "delay" in t);
|
|
1013
988
|
}
|
|
1014
|
-
class
|
|
989
|
+
class ke {
|
|
1015
990
|
constructor(e, n, r) {
|
|
1016
991
|
var i;
|
|
1017
|
-
r === void 0 && (r =
|
|
992
|
+
r === void 0 && (r = Wr(e.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = e, this.events = n;
|
|
1018
993
|
const {
|
|
1019
994
|
event: o
|
|
1020
995
|
} = e, {
|
|
1021
996
|
target: a
|
|
1022
997
|
} = o;
|
|
1023
|
-
this.props = e, this.events = n, this.document =
|
|
998
|
+
this.props = e, this.events = n, this.document = Tt(a), this.documentListeners = new Bt(this.document), this.listeners = new Bt(r), this.windowListeners = new Bt(U(a)), this.initialCoordinates = (i = se(o)) != null ? i : et, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1024
999
|
}
|
|
1025
1000
|
attach() {
|
|
1026
1001
|
const {
|
|
@@ -1034,18 +1009,18 @@ class He {
|
|
|
1034
1009
|
} = this;
|
|
1035
1010
|
if (this.listeners.add(e.move.name, this.handleMove, {
|
|
1036
1011
|
passive: !1
|
|
1037
|
-
}), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(
|
|
1012
|
+
}), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(Q.Resize, this.handleCancel), this.windowListeners.add(Q.DragStart, Ze), this.windowListeners.add(Q.VisibilityChange, this.handleCancel), this.windowListeners.add(Q.ContextMenu, Ze), this.documentListeners.add(Q.Keydown, this.handleKeydown), n) {
|
|
1038
1013
|
if (r != null && r({
|
|
1039
1014
|
event: this.props.event,
|
|
1040
1015
|
activeNode: this.props.activeNode,
|
|
1041
1016
|
options: this.props.options
|
|
1042
1017
|
}))
|
|
1043
1018
|
return this.handleStart();
|
|
1044
|
-
if (
|
|
1019
|
+
if (en(n)) {
|
|
1045
1020
|
this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
|
|
1046
1021
|
return;
|
|
1047
1022
|
}
|
|
1048
|
-
if (
|
|
1023
|
+
if (tn(n)) {
|
|
1049
1024
|
this.handlePending(n);
|
|
1050
1025
|
return;
|
|
1051
1026
|
}
|
|
@@ -1068,9 +1043,9 @@ class He {
|
|
|
1068
1043
|
} = this, {
|
|
1069
1044
|
onStart: n
|
|
1070
1045
|
} = this.props;
|
|
1071
|
-
e && (this.activated = !0, this.documentListeners.add(
|
|
1046
|
+
e && (this.activated = !0, this.documentListeners.add(Q.Click, Ir, {
|
|
1072
1047
|
capture: !0
|
|
1073
|
-
}), this.removeTextSelection(), this.documentListeners.add(
|
|
1048
|
+
}), this.removeTextSelection(), this.documentListeners.add(Q.SelectionChange, this.removeTextSelection), n(e));
|
|
1074
1049
|
}
|
|
1075
1050
|
handleMove(e) {
|
|
1076
1051
|
var n;
|
|
@@ -1086,15 +1061,15 @@ class He {
|
|
|
1086
1061
|
} = o;
|
|
1087
1062
|
if (!i)
|
|
1088
1063
|
return;
|
|
1089
|
-
const l = (n =
|
|
1064
|
+
const l = (n = se(e)) != null ? n : et, c = oe(i, l);
|
|
1090
1065
|
if (!r && s) {
|
|
1091
|
-
if (
|
|
1092
|
-
if (s.tolerance != null &&
|
|
1066
|
+
if (tn(s)) {
|
|
1067
|
+
if (s.tolerance != null && xe(c, s.tolerance))
|
|
1093
1068
|
return this.handleCancel();
|
|
1094
|
-
if (
|
|
1069
|
+
if (xe(c, s.distance))
|
|
1095
1070
|
return this.handleStart();
|
|
1096
1071
|
}
|
|
1097
|
-
if (
|
|
1072
|
+
if (en(s) && xe(c, s.tolerance))
|
|
1098
1073
|
return this.handleCancel();
|
|
1099
1074
|
this.handlePending(s, c);
|
|
1100
1075
|
return;
|
|
@@ -1116,14 +1091,14 @@ class He {
|
|
|
1116
1091
|
this.detach(), this.activated || e(this.props.active), n();
|
|
1117
1092
|
}
|
|
1118
1093
|
handleKeydown(e) {
|
|
1119
|
-
e.code ===
|
|
1094
|
+
e.code === M.Esc && this.handleCancel();
|
|
1120
1095
|
}
|
|
1121
1096
|
removeTextSelection() {
|
|
1122
1097
|
var e;
|
|
1123
1098
|
(e = this.document.getSelection()) == null || e.removeAllRanges();
|
|
1124
1099
|
}
|
|
1125
1100
|
}
|
|
1126
|
-
const
|
|
1101
|
+
const _r = {
|
|
1127
1102
|
cancel: {
|
|
1128
1103
|
name: "pointercancel"
|
|
1129
1104
|
},
|
|
@@ -1134,15 +1109,15 @@ const Zr = {
|
|
|
1134
1109
|
name: "pointerup"
|
|
1135
1110
|
}
|
|
1136
1111
|
};
|
|
1137
|
-
class
|
|
1112
|
+
class Pe extends ke {
|
|
1138
1113
|
constructor(e) {
|
|
1139
1114
|
const {
|
|
1140
1115
|
event: n
|
|
1141
|
-
} = e, r =
|
|
1142
|
-
super(e,
|
|
1116
|
+
} = e, r = Tt(n.target);
|
|
1117
|
+
super(e, _r, r);
|
|
1143
1118
|
}
|
|
1144
1119
|
}
|
|
1145
|
-
|
|
1120
|
+
Pe.activators = [{
|
|
1146
1121
|
eventName: "onPointerDown",
|
|
1147
1122
|
handler: (t, e) => {
|
|
1148
1123
|
let {
|
|
@@ -1150,12 +1125,12 @@ _e.activators = [{
|
|
|
1150
1125
|
} = t, {
|
|
1151
1126
|
onActivation: r
|
|
1152
1127
|
} = e;
|
|
1153
|
-
return !n.isPrimary || n.button !== 0 ? !1 : (r
|
|
1128
|
+
return !n.isPrimary || n.button !== 0 ? !1 : (r?.({
|
|
1154
1129
|
event: n
|
|
1155
1130
|
}), !0);
|
|
1156
1131
|
}
|
|
1157
1132
|
}];
|
|
1158
|
-
const
|
|
1133
|
+
const Fr = {
|
|
1159
1134
|
move: {
|
|
1160
1135
|
name: "mousemove"
|
|
1161
1136
|
},
|
|
@@ -1163,16 +1138,16 @@ const ti = {
|
|
|
1163
1138
|
name: "mouseup"
|
|
1164
1139
|
}
|
|
1165
1140
|
};
|
|
1166
|
-
var
|
|
1141
|
+
var Ce;
|
|
1167
1142
|
(function(t) {
|
|
1168
1143
|
t[t.RightClick = 2] = "RightClick";
|
|
1169
|
-
})(
|
|
1170
|
-
class
|
|
1144
|
+
})(Ce || (Ce = {}));
|
|
1145
|
+
class jr extends ke {
|
|
1171
1146
|
constructor(e) {
|
|
1172
|
-
super(e,
|
|
1147
|
+
super(e, Fr, Tt(e.event.target));
|
|
1173
1148
|
}
|
|
1174
1149
|
}
|
|
1175
|
-
|
|
1150
|
+
jr.activators = [{
|
|
1176
1151
|
eventName: "onMouseDown",
|
|
1177
1152
|
handler: (t, e) => {
|
|
1178
1153
|
let {
|
|
@@ -1180,12 +1155,12 @@ ei.activators = [{
|
|
|
1180
1155
|
} = t, {
|
|
1181
1156
|
onActivation: r
|
|
1182
1157
|
} = e;
|
|
1183
|
-
return n.button ===
|
|
1158
|
+
return n.button === Ce.RightClick ? !1 : (r?.({
|
|
1184
1159
|
event: n
|
|
1185
1160
|
}), !0);
|
|
1186
1161
|
}
|
|
1187
1162
|
}];
|
|
1188
|
-
const
|
|
1163
|
+
const De = {
|
|
1189
1164
|
cancel: {
|
|
1190
1165
|
name: "touchcancel"
|
|
1191
1166
|
},
|
|
@@ -1196,22 +1171,22 @@ const Ee = {
|
|
|
1196
1171
|
name: "touchend"
|
|
1197
1172
|
}
|
|
1198
1173
|
};
|
|
1199
|
-
class
|
|
1174
|
+
class Yr extends ke {
|
|
1200
1175
|
constructor(e) {
|
|
1201
|
-
super(e,
|
|
1176
|
+
super(e, De);
|
|
1202
1177
|
}
|
|
1203
1178
|
static setup() {
|
|
1204
|
-
return window.addEventListener(
|
|
1179
|
+
return window.addEventListener(De.move.name, e, {
|
|
1205
1180
|
capture: !1,
|
|
1206
1181
|
passive: !1
|
|
1207
1182
|
}), function() {
|
|
1208
|
-
window.removeEventListener(
|
|
1183
|
+
window.removeEventListener(De.move.name, e);
|
|
1209
1184
|
};
|
|
1210
1185
|
function e() {
|
|
1211
1186
|
}
|
|
1212
1187
|
}
|
|
1213
1188
|
}
|
|
1214
|
-
|
|
1189
|
+
Yr.activators = [{
|
|
1215
1190
|
eventName: "onTouchStart",
|
|
1216
1191
|
handler: (t, e) => {
|
|
1217
1192
|
let {
|
|
@@ -1222,158 +1197,158 @@ ni.activators = [{
|
|
|
1222
1197
|
const {
|
|
1223
1198
|
touches: i
|
|
1224
1199
|
} = n;
|
|
1225
|
-
return i.length > 1 ? !1 : (r
|
|
1200
|
+
return i.length > 1 ? !1 : (r?.({
|
|
1226
1201
|
event: n
|
|
1227
1202
|
}), !0);
|
|
1228
1203
|
}
|
|
1229
1204
|
}];
|
|
1230
|
-
var
|
|
1205
|
+
var Wt;
|
|
1231
1206
|
(function(t) {
|
|
1232
1207
|
t[t.Pointer = 0] = "Pointer", t[t.DraggableRect = 1] = "DraggableRect";
|
|
1233
|
-
})(
|
|
1234
|
-
var
|
|
1208
|
+
})(Wt || (Wt = {}));
|
|
1209
|
+
var le;
|
|
1235
1210
|
(function(t) {
|
|
1236
1211
|
t[t.TreeOrder = 0] = "TreeOrder", t[t.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1237
|
-
})(
|
|
1238
|
-
function
|
|
1212
|
+
})(le || (le = {}));
|
|
1213
|
+
function $r(t) {
|
|
1239
1214
|
let {
|
|
1240
1215
|
acceleration: e,
|
|
1241
|
-
activator: n =
|
|
1216
|
+
activator: n = Wt.Pointer,
|
|
1242
1217
|
canScroll: r,
|
|
1243
1218
|
draggingRect: i,
|
|
1244
1219
|
enabled: o,
|
|
1245
1220
|
interval: a = 5,
|
|
1246
|
-
order: s =
|
|
1221
|
+
order: s = le.TreeOrder,
|
|
1247
1222
|
pointerCoordinates: l,
|
|
1248
1223
|
scrollableAncestors: c,
|
|
1249
1224
|
scrollableAncestorRects: d,
|
|
1250
1225
|
delta: u,
|
|
1251
|
-
threshold:
|
|
1226
|
+
threshold: f
|
|
1252
1227
|
} = t;
|
|
1253
|
-
const p =
|
|
1228
|
+
const p = Ur({
|
|
1254
1229
|
delta: u,
|
|
1255
1230
|
disabled: !o
|
|
1256
|
-
}), [b,
|
|
1231
|
+
}), [b, h] = ir(), g = T({
|
|
1257
1232
|
x: 0,
|
|
1258
1233
|
y: 0
|
|
1259
|
-
}),
|
|
1234
|
+
}), m = T({
|
|
1260
1235
|
x: 0,
|
|
1261
1236
|
y: 0
|
|
1262
|
-
}),
|
|
1237
|
+
}), w = C(() => {
|
|
1263
1238
|
switch (n) {
|
|
1264
|
-
case
|
|
1239
|
+
case Wt.Pointer:
|
|
1265
1240
|
return l ? {
|
|
1266
1241
|
top: l.y,
|
|
1267
1242
|
bottom: l.y,
|
|
1268
1243
|
left: l.x,
|
|
1269
1244
|
right: l.x
|
|
1270
1245
|
} : null;
|
|
1271
|
-
case
|
|
1246
|
+
case Wt.DraggableRect:
|
|
1272
1247
|
return i;
|
|
1273
1248
|
}
|
|
1274
|
-
}, [n, i, l]), v =
|
|
1249
|
+
}, [n, i, l]), v = T(null), y = A(() => {
|
|
1275
1250
|
const z = v.current;
|
|
1276
1251
|
if (!z)
|
|
1277
1252
|
return;
|
|
1278
|
-
const
|
|
1279
|
-
z.scrollBy(
|
|
1280
|
-
}, []),
|
|
1281
|
-
|
|
1253
|
+
const x = g.current.x * m.current.x, S = g.current.y * m.current.y;
|
|
1254
|
+
z.scrollBy(x, S);
|
|
1255
|
+
}, []), R = C(() => s === le.TreeOrder ? [...c].reverse() : c, [s, c]);
|
|
1256
|
+
O(
|
|
1282
1257
|
() => {
|
|
1283
|
-
if (!o || !c.length || !
|
|
1284
|
-
|
|
1258
|
+
if (!o || !c.length || !w) {
|
|
1259
|
+
h();
|
|
1285
1260
|
return;
|
|
1286
1261
|
}
|
|
1287
|
-
for (const z of
|
|
1288
|
-
if (
|
|
1262
|
+
for (const z of R) {
|
|
1263
|
+
if (r?.(z) === !1)
|
|
1289
1264
|
continue;
|
|
1290
|
-
const
|
|
1291
|
-
if (!
|
|
1265
|
+
const x = c.indexOf(z), S = d[x];
|
|
1266
|
+
if (!S)
|
|
1292
1267
|
continue;
|
|
1293
1268
|
const {
|
|
1294
|
-
direction:
|
|
1295
|
-
speed:
|
|
1296
|
-
} =
|
|
1297
|
-
for (const
|
|
1298
|
-
p[
|
|
1299
|
-
if (
|
|
1300
|
-
|
|
1269
|
+
direction: E,
|
|
1270
|
+
speed: L
|
|
1271
|
+
} = Or(z, S, w, e, f);
|
|
1272
|
+
for (const N of ["x", "y"])
|
|
1273
|
+
p[N][E[N]] || (L[N] = 0, E[N] = 0);
|
|
1274
|
+
if (L.x > 0 || L.y > 0) {
|
|
1275
|
+
h(), v.current = z, b(y, a), g.current = L, m.current = E;
|
|
1301
1276
|
return;
|
|
1302
1277
|
}
|
|
1303
1278
|
}
|
|
1304
1279
|
g.current = {
|
|
1305
1280
|
x: 0,
|
|
1306
1281
|
y: 0
|
|
1307
|
-
},
|
|
1282
|
+
}, m.current = {
|
|
1308
1283
|
x: 0,
|
|
1309
1284
|
y: 0
|
|
1310
|
-
},
|
|
1285
|
+
}, h();
|
|
1311
1286
|
},
|
|
1312
1287
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1313
1288
|
[
|
|
1314
1289
|
e,
|
|
1315
|
-
|
|
1290
|
+
y,
|
|
1316
1291
|
r,
|
|
1317
|
-
|
|
1292
|
+
h,
|
|
1318
1293
|
o,
|
|
1319
1294
|
a,
|
|
1320
1295
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1321
|
-
JSON.stringify(
|
|
1296
|
+
JSON.stringify(w),
|
|
1322
1297
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1323
1298
|
JSON.stringify(p),
|
|
1324
1299
|
b,
|
|
1325
1300
|
c,
|
|
1326
|
-
|
|
1301
|
+
R,
|
|
1327
1302
|
d,
|
|
1328
1303
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1329
|
-
JSON.stringify(
|
|
1304
|
+
JSON.stringify(f)
|
|
1330
1305
|
]
|
|
1331
1306
|
);
|
|
1332
1307
|
}
|
|
1333
|
-
const
|
|
1308
|
+
const Xr = {
|
|
1334
1309
|
x: {
|
|
1335
|
-
[
|
|
1336
|
-
[
|
|
1310
|
+
[_.Backward]: !1,
|
|
1311
|
+
[_.Forward]: !1
|
|
1337
1312
|
},
|
|
1338
1313
|
y: {
|
|
1339
|
-
[
|
|
1340
|
-
[
|
|
1314
|
+
[_.Backward]: !1,
|
|
1315
|
+
[_.Forward]: !1
|
|
1341
1316
|
}
|
|
1342
1317
|
};
|
|
1343
|
-
function
|
|
1318
|
+
function Ur(t) {
|
|
1344
1319
|
let {
|
|
1345
1320
|
delta: e,
|
|
1346
1321
|
disabled: n
|
|
1347
1322
|
} = t;
|
|
1348
|
-
const r =
|
|
1349
|
-
return
|
|
1323
|
+
const r = ie(e);
|
|
1324
|
+
return Yt((i) => {
|
|
1350
1325
|
if (n || !r || !i)
|
|
1351
|
-
return
|
|
1326
|
+
return Xr;
|
|
1352
1327
|
const o = {
|
|
1353
1328
|
x: Math.sign(e.x - r.x),
|
|
1354
1329
|
y: Math.sign(e.y - r.y)
|
|
1355
1330
|
};
|
|
1356
1331
|
return {
|
|
1357
1332
|
x: {
|
|
1358
|
-
[
|
|
1359
|
-
[
|
|
1333
|
+
[_.Backward]: i.x[_.Backward] || o.x === -1,
|
|
1334
|
+
[_.Forward]: i.x[_.Forward] || o.x === 1
|
|
1360
1335
|
},
|
|
1361
1336
|
y: {
|
|
1362
|
-
[
|
|
1363
|
-
[
|
|
1337
|
+
[_.Backward]: i.y[_.Backward] || o.y === -1,
|
|
1338
|
+
[_.Forward]: i.y[_.Forward] || o.y === 1
|
|
1364
1339
|
}
|
|
1365
1340
|
};
|
|
1366
1341
|
}, [n, e, r]);
|
|
1367
1342
|
}
|
|
1368
|
-
function
|
|
1343
|
+
function Kr(t, e) {
|
|
1369
1344
|
const n = e != null ? t.get(e) : void 0, r = n ? n.node.current : null;
|
|
1370
|
-
return
|
|
1345
|
+
return Yt((i) => {
|
|
1371
1346
|
var o;
|
|
1372
|
-
return e == null ? null : (o = r
|
|
1347
|
+
return e == null ? null : (o = r ?? i) != null ? o : null;
|
|
1373
1348
|
}, [r, e]);
|
|
1374
1349
|
}
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1350
|
+
function Gr(t, e) {
|
|
1351
|
+
return C(() => t.reduce((n, r) => {
|
|
1377
1352
|
const {
|
|
1378
1353
|
sensor: i
|
|
1379
1354
|
} = r, o = i.activators.map((a) => ({
|
|
@@ -1383,61 +1358,61 @@ function ai(t, e) {
|
|
|
1383
1358
|
return [...n, ...o];
|
|
1384
1359
|
}, []), [t, e]);
|
|
1385
1360
|
}
|
|
1386
|
-
var
|
|
1361
|
+
var Ft;
|
|
1387
1362
|
(function(t) {
|
|
1388
1363
|
t[t.Always = 0] = "Always", t[t.BeforeDragging = 1] = "BeforeDragging", t[t.WhileDragging = 2] = "WhileDragging";
|
|
1389
|
-
})(
|
|
1390
|
-
var
|
|
1364
|
+
})(Ft || (Ft = {}));
|
|
1365
|
+
var ze;
|
|
1391
1366
|
(function(t) {
|
|
1392
1367
|
t.Optimized = "optimized";
|
|
1393
|
-
})(
|
|
1394
|
-
const
|
|
1395
|
-
function
|
|
1368
|
+
})(ze || (ze = {}));
|
|
1369
|
+
const nn = /* @__PURE__ */ new Map();
|
|
1370
|
+
function Vr(t, e) {
|
|
1396
1371
|
let {
|
|
1397
1372
|
dragging: n,
|
|
1398
1373
|
dependencies: r,
|
|
1399
1374
|
config: i
|
|
1400
1375
|
} = e;
|
|
1401
|
-
const [o, a] =
|
|
1376
|
+
const [o, a] = j(null), {
|
|
1402
1377
|
frequency: s,
|
|
1403
1378
|
measure: l,
|
|
1404
1379
|
strategy: c
|
|
1405
|
-
} = i, d =
|
|
1406
|
-
|
|
1407
|
-
}, [
|
|
1380
|
+
} = i, d = T(t), u = g(), f = Ht(u), p = A(function(m) {
|
|
1381
|
+
m === void 0 && (m = []), !f.current && a((w) => w === null ? m : w.concat(m.filter((v) => !w.includes(v))));
|
|
1382
|
+
}, [f]), b = T(null), h = Yt((m) => {
|
|
1408
1383
|
if (u && !n)
|
|
1409
|
-
return
|
|
1410
|
-
if (!
|
|
1411
|
-
const
|
|
1384
|
+
return nn;
|
|
1385
|
+
if (!m || m === nn || d.current !== t || o != null) {
|
|
1386
|
+
const w = /* @__PURE__ */ new Map();
|
|
1412
1387
|
for (let v of t) {
|
|
1413
1388
|
if (!v)
|
|
1414
1389
|
continue;
|
|
1415
1390
|
if (o && o.length > 0 && !o.includes(v.id) && v.rect.current) {
|
|
1416
|
-
|
|
1391
|
+
w.set(v.id, v.rect.current);
|
|
1417
1392
|
continue;
|
|
1418
1393
|
}
|
|
1419
|
-
const
|
|
1420
|
-
v.rect.current =
|
|
1394
|
+
const y = v.node.current, R = y ? new Oe(l(y), y) : null;
|
|
1395
|
+
v.rect.current = R, R && w.set(v.id, R);
|
|
1421
1396
|
}
|
|
1422
|
-
return
|
|
1397
|
+
return w;
|
|
1423
1398
|
}
|
|
1424
|
-
return
|
|
1399
|
+
return m;
|
|
1425
1400
|
}, [t, o, n, u, l]);
|
|
1426
|
-
return
|
|
1401
|
+
return O(() => {
|
|
1427
1402
|
d.current = t;
|
|
1428
|
-
}, [t]),
|
|
1403
|
+
}, [t]), O(
|
|
1429
1404
|
() => {
|
|
1430
1405
|
u || p();
|
|
1431
1406
|
},
|
|
1432
1407
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1433
1408
|
[n, u]
|
|
1434
|
-
),
|
|
1409
|
+
), O(
|
|
1435
1410
|
() => {
|
|
1436
1411
|
o && o.length > 0 && a(null);
|
|
1437
1412
|
},
|
|
1438
1413
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1439
1414
|
[JSON.stringify(o)]
|
|
1440
|
-
),
|
|
1415
|
+
), O(
|
|
1441
1416
|
() => {
|
|
1442
1417
|
u || typeof s != "number" || b.current !== null || (b.current = setTimeout(() => {
|
|
1443
1418
|
p(), b.current = null;
|
|
@@ -1446,50 +1421,50 @@ function li(t, e) {
|
|
|
1446
1421
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1447
1422
|
[s, u, p, ...r]
|
|
1448
1423
|
), {
|
|
1449
|
-
droppableRects:
|
|
1424
|
+
droppableRects: h,
|
|
1450
1425
|
measureDroppableContainers: p,
|
|
1451
1426
|
measuringScheduled: o != null
|
|
1452
1427
|
};
|
|
1453
1428
|
function g() {
|
|
1454
1429
|
switch (c) {
|
|
1455
|
-
case
|
|
1430
|
+
case Ft.Always:
|
|
1456
1431
|
return !1;
|
|
1457
|
-
case
|
|
1432
|
+
case Ft.BeforeDragging:
|
|
1458
1433
|
return n;
|
|
1459
1434
|
default:
|
|
1460
1435
|
return !n;
|
|
1461
1436
|
}
|
|
1462
1437
|
}
|
|
1463
1438
|
}
|
|
1464
|
-
function
|
|
1465
|
-
return
|
|
1439
|
+
function Be(t, e) {
|
|
1440
|
+
return Yt((n) => t ? n || (typeof e == "function" ? e(t) : t) : null, [e, t]);
|
|
1466
1441
|
}
|
|
1467
|
-
function
|
|
1468
|
-
return
|
|
1442
|
+
function qr(t, e) {
|
|
1443
|
+
return Be(t, e);
|
|
1469
1444
|
}
|
|
1470
|
-
function
|
|
1445
|
+
function Jr(t) {
|
|
1471
1446
|
let {
|
|
1472
1447
|
callback: e,
|
|
1473
1448
|
disabled: n
|
|
1474
1449
|
} = t;
|
|
1475
|
-
const r =
|
|
1476
|
-
if (n || typeof window
|
|
1450
|
+
const r = ue(e), i = C(() => {
|
|
1451
|
+
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
1477
1452
|
return;
|
|
1478
1453
|
const {
|
|
1479
1454
|
MutationObserver: o
|
|
1480
1455
|
} = window;
|
|
1481
1456
|
return new o(r);
|
|
1482
1457
|
}, [r, n]);
|
|
1483
|
-
return
|
|
1458
|
+
return O(() => () => i?.disconnect(), [i]), i;
|
|
1484
1459
|
}
|
|
1485
|
-
function
|
|
1460
|
+
function he(t) {
|
|
1486
1461
|
let {
|
|
1487
1462
|
callback: e,
|
|
1488
1463
|
disabled: n
|
|
1489
1464
|
} = t;
|
|
1490
|
-
const r =
|
|
1465
|
+
const r = ue(e), i = C(
|
|
1491
1466
|
() => {
|
|
1492
|
-
if (n || typeof window
|
|
1467
|
+
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
1493
1468
|
return;
|
|
1494
1469
|
const {
|
|
1495
1470
|
ResizeObserver: o
|
|
@@ -1499,27 +1474,27 @@ function ve(t) {
|
|
|
1499
1474
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1500
1475
|
[n]
|
|
1501
1476
|
);
|
|
1502
|
-
return
|
|
1477
|
+
return O(() => () => i?.disconnect(), [i]), i;
|
|
1503
1478
|
}
|
|
1504
|
-
function
|
|
1505
|
-
return new
|
|
1479
|
+
function Qr(t) {
|
|
1480
|
+
return new Oe($t(t), t);
|
|
1506
1481
|
}
|
|
1507
|
-
function
|
|
1508
|
-
e === void 0 && (e =
|
|
1509
|
-
const [r, i] =
|
|
1482
|
+
function rn(t, e, n) {
|
|
1483
|
+
e === void 0 && (e = Qr);
|
|
1484
|
+
const [r, i] = j(null);
|
|
1510
1485
|
function o() {
|
|
1511
1486
|
i((l) => {
|
|
1512
1487
|
if (!t)
|
|
1513
1488
|
return null;
|
|
1514
1489
|
if (t.isConnected === !1) {
|
|
1515
1490
|
var c;
|
|
1516
|
-
return (c = l
|
|
1491
|
+
return (c = l ?? n) != null ? c : null;
|
|
1517
1492
|
}
|
|
1518
1493
|
const d = e(t);
|
|
1519
1494
|
return JSON.stringify(l) === JSON.stringify(d) ? l : d;
|
|
1520
1495
|
});
|
|
1521
1496
|
}
|
|
1522
|
-
const a =
|
|
1497
|
+
const a = Jr({
|
|
1523
1498
|
callback(l) {
|
|
1524
1499
|
if (t)
|
|
1525
1500
|
for (const c of l) {
|
|
@@ -1533,41 +1508,41 @@ function pn(t, e, n) {
|
|
|
1533
1508
|
}
|
|
1534
1509
|
}
|
|
1535
1510
|
}
|
|
1536
|
-
}), s =
|
|
1511
|
+
}), s = he({
|
|
1537
1512
|
callback: o
|
|
1538
1513
|
});
|
|
1539
|
-
return
|
|
1540
|
-
o(), t ? (s
|
|
1514
|
+
return at(() => {
|
|
1515
|
+
o(), t ? (s?.observe(t), a?.observe(document.body, {
|
|
1541
1516
|
childList: !0,
|
|
1542
1517
|
subtree: !0
|
|
1543
|
-
})) : (s
|
|
1518
|
+
})) : (s?.disconnect(), a?.disconnect());
|
|
1544
1519
|
}, [t]), r;
|
|
1545
1520
|
}
|
|
1546
|
-
function
|
|
1547
|
-
const e =
|
|
1548
|
-
return
|
|
1521
|
+
function Zr(t) {
|
|
1522
|
+
const e = Be(t);
|
|
1523
|
+
return Dn(t, e);
|
|
1549
1524
|
}
|
|
1550
|
-
const
|
|
1551
|
-
function
|
|
1552
|
-
const e =
|
|
1553
|
-
return
|
|
1525
|
+
const on = [];
|
|
1526
|
+
function ti(t) {
|
|
1527
|
+
const e = T(t), n = Yt((r) => t ? r && r !== on && t && e.current && t.parentNode === e.current.parentNode ? r : Ae(t) : on, [t]);
|
|
1528
|
+
return O(() => {
|
|
1554
1529
|
e.current = t;
|
|
1555
1530
|
}, [t]), n;
|
|
1556
1531
|
}
|
|
1557
|
-
function
|
|
1558
|
-
const [e, n] =
|
|
1559
|
-
const a =
|
|
1560
|
-
a && n((s) => s ? (s.set(a,
|
|
1532
|
+
function ei(t) {
|
|
1533
|
+
const [e, n] = j(null), r = T(t), i = A((o) => {
|
|
1534
|
+
const a = ye(o.target);
|
|
1535
|
+
a && n((s) => s ? (s.set(a, Re(a)), new Map(s)) : null);
|
|
1561
1536
|
}, []);
|
|
1562
|
-
return
|
|
1537
|
+
return O(() => {
|
|
1563
1538
|
const o = r.current;
|
|
1564
1539
|
if (t !== o) {
|
|
1565
1540
|
a(o);
|
|
1566
1541
|
const s = t.map((l) => {
|
|
1567
|
-
const c =
|
|
1542
|
+
const c = ye(l);
|
|
1568
1543
|
return c ? (c.addEventListener("scroll", i, {
|
|
1569
1544
|
passive: !0
|
|
1570
|
-
}), [c,
|
|
1545
|
+
}), [c, Re(c)]) : null;
|
|
1571
1546
|
}).filter((l) => l != null);
|
|
1572
1547
|
n(s.length ? new Map(s) : null), r.current = t;
|
|
1573
1548
|
}
|
|
@@ -1576,30 +1551,30 @@ function pi(t) {
|
|
|
1576
1551
|
};
|
|
1577
1552
|
function a(s) {
|
|
1578
1553
|
s.forEach((l) => {
|
|
1579
|
-
const c =
|
|
1580
|
-
c
|
|
1554
|
+
const c = ye(l);
|
|
1555
|
+
c?.removeEventListener("scroll", i);
|
|
1581
1556
|
});
|
|
1582
1557
|
}
|
|
1583
|
-
}, [i, t]),
|
|
1558
|
+
}, [i, t]), C(() => t.length ? e ? Array.from(e.values()).reduce((o, a) => Et(o, a), et) : Nn(t) : et, [t, e]);
|
|
1584
1559
|
}
|
|
1585
|
-
function
|
|
1560
|
+
function sn(t, e) {
|
|
1586
1561
|
e === void 0 && (e = []);
|
|
1587
|
-
const n =
|
|
1588
|
-
return
|
|
1562
|
+
const n = T(null);
|
|
1563
|
+
return O(
|
|
1589
1564
|
() => {
|
|
1590
1565
|
n.current = null;
|
|
1591
1566
|
},
|
|
1592
1567
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1593
1568
|
e
|
|
1594
|
-
),
|
|
1595
|
-
const r = t !==
|
|
1569
|
+
), O(() => {
|
|
1570
|
+
const r = t !== et;
|
|
1596
1571
|
r && !n.current && (n.current = t), !r && n.current && (n.current = null);
|
|
1597
|
-
}, [t]), n.current ?
|
|
1572
|
+
}, [t]), n.current ? oe(t, n.current) : et;
|
|
1598
1573
|
}
|
|
1599
|
-
function
|
|
1600
|
-
|
|
1574
|
+
function ni(t) {
|
|
1575
|
+
O(
|
|
1601
1576
|
() => {
|
|
1602
|
-
if (!
|
|
1577
|
+
if (!ce)
|
|
1603
1578
|
return;
|
|
1604
1579
|
const e = t.map((n) => {
|
|
1605
1580
|
let {
|
|
@@ -1609,7 +1584,7 @@ function gi(t) {
|
|
|
1609
1584
|
});
|
|
1610
1585
|
return () => {
|
|
1611
1586
|
for (const n of e)
|
|
1612
|
-
n
|
|
1587
|
+
n?.();
|
|
1613
1588
|
};
|
|
1614
1589
|
},
|
|
1615
1590
|
// TO-DO: Sensors length could theoretically change which would not be a valid dependency
|
|
@@ -1622,8 +1597,8 @@ function gi(t) {
|
|
|
1622
1597
|
})
|
|
1623
1598
|
);
|
|
1624
1599
|
}
|
|
1625
|
-
function
|
|
1626
|
-
return
|
|
1600
|
+
function ri(t, e) {
|
|
1601
|
+
return C(() => t.reduce((n, r) => {
|
|
1627
1602
|
let {
|
|
1628
1603
|
eventName: i,
|
|
1629
1604
|
handler: o
|
|
@@ -1633,83 +1608,84 @@ function vi(t, e) {
|
|
|
1633
1608
|
}, n;
|
|
1634
1609
|
}, {}), [t, e]);
|
|
1635
1610
|
}
|
|
1636
|
-
function
|
|
1637
|
-
return
|
|
1611
|
+
function On(t) {
|
|
1612
|
+
return C(() => t ? Mr(t) : null, [t]);
|
|
1638
1613
|
}
|
|
1639
|
-
const
|
|
1640
|
-
function
|
|
1641
|
-
e === void 0 && (e =
|
|
1642
|
-
const [n] = t, r =
|
|
1614
|
+
const an = [];
|
|
1615
|
+
function ii(t, e) {
|
|
1616
|
+
e === void 0 && (e = $t);
|
|
1617
|
+
const [n] = t, r = On(n ? U(n) : null), [i, o] = j(an);
|
|
1643
1618
|
function a() {
|
|
1644
|
-
o(() => t.length ? t.map((l) =>
|
|
1619
|
+
o(() => t.length ? t.map((l) => En(l) ? r : new Oe(e(l), l)) : an);
|
|
1645
1620
|
}
|
|
1646
|
-
const s =
|
|
1621
|
+
const s = he({
|
|
1647
1622
|
callback: a
|
|
1648
1623
|
});
|
|
1649
|
-
return
|
|
1650
|
-
s
|
|
1624
|
+
return at(() => {
|
|
1625
|
+
s?.disconnect(), a(), t.forEach((l) => s?.observe(l));
|
|
1651
1626
|
}, [t]), i;
|
|
1652
1627
|
}
|
|
1653
|
-
function
|
|
1628
|
+
function Ln(t) {
|
|
1654
1629
|
if (!t)
|
|
1655
1630
|
return null;
|
|
1656
1631
|
if (t.children.length > 1)
|
|
1657
1632
|
return t;
|
|
1658
1633
|
const e = t.children[0];
|
|
1659
|
-
return
|
|
1634
|
+
return jt(e) ? e : t;
|
|
1660
1635
|
}
|
|
1661
|
-
function
|
|
1636
|
+
function oi(t) {
|
|
1662
1637
|
let {
|
|
1663
1638
|
measure: e
|
|
1664
1639
|
} = t;
|
|
1665
|
-
const [n, r] =
|
|
1640
|
+
const [n, r] = j(null), i = A((c) => {
|
|
1666
1641
|
for (const {
|
|
1667
1642
|
target: d
|
|
1668
1643
|
} of c)
|
|
1669
|
-
if (
|
|
1644
|
+
if (jt(d)) {
|
|
1670
1645
|
r((u) => {
|
|
1671
|
-
const
|
|
1672
|
-
return u ?
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1646
|
+
const f = e(d);
|
|
1647
|
+
return u ? {
|
|
1648
|
+
...u,
|
|
1649
|
+
width: f.width,
|
|
1650
|
+
height: f.height
|
|
1651
|
+
} : f;
|
|
1676
1652
|
});
|
|
1677
1653
|
break;
|
|
1678
1654
|
}
|
|
1679
|
-
}, [e]), o =
|
|
1655
|
+
}, [e]), o = he({
|
|
1680
1656
|
callback: i
|
|
1681
|
-
}), a =
|
|
1682
|
-
const d =
|
|
1683
|
-
o
|
|
1684
|
-
}, [e, o]), [s, l] =
|
|
1685
|
-
return
|
|
1657
|
+
}), a = A((c) => {
|
|
1658
|
+
const d = Ln(c);
|
|
1659
|
+
o?.disconnect(), d && o?.observe(d), r(d ? e(d) : null);
|
|
1660
|
+
}, [e, o]), [s, l] = re(a);
|
|
1661
|
+
return C(() => ({
|
|
1686
1662
|
nodeRef: s,
|
|
1687
1663
|
rect: n,
|
|
1688
1664
|
setRef: l
|
|
1689
1665
|
}), [n, s, l]);
|
|
1690
1666
|
}
|
|
1691
|
-
const
|
|
1692
|
-
sensor:
|
|
1667
|
+
const si = [{
|
|
1668
|
+
sensor: Pe,
|
|
1693
1669
|
options: {}
|
|
1694
1670
|
}, {
|
|
1695
|
-
sensor:
|
|
1671
|
+
sensor: Le,
|
|
1696
1672
|
options: {}
|
|
1697
|
-
}],
|
|
1673
|
+
}], ai = {
|
|
1698
1674
|
current: {}
|
|
1699
|
-
},
|
|
1675
|
+
}, ne = {
|
|
1700
1676
|
draggable: {
|
|
1701
|
-
measure:
|
|
1677
|
+
measure: Qe
|
|
1702
1678
|
},
|
|
1703
1679
|
droppable: {
|
|
1704
|
-
measure:
|
|
1705
|
-
strategy:
|
|
1706
|
-
frequency:
|
|
1680
|
+
measure: Qe,
|
|
1681
|
+
strategy: Ft.WhileDragging,
|
|
1682
|
+
frequency: ze.Optimized
|
|
1707
1683
|
},
|
|
1708
1684
|
dragOverlay: {
|
|
1709
|
-
measure:
|
|
1685
|
+
measure: $t
|
|
1710
1686
|
}
|
|
1711
1687
|
};
|
|
1712
|
-
class
|
|
1688
|
+
class It extends Map {
|
|
1713
1689
|
get(e) {
|
|
1714
1690
|
var n;
|
|
1715
1691
|
return e != null && (n = super.get(e)) != null ? n : void 0;
|
|
@@ -1730,7 +1706,7 @@ class _t extends Map {
|
|
|
1730
1706
|
return (n = (r = this.get(e)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
1731
1707
|
}
|
|
1732
1708
|
}
|
|
1733
|
-
const
|
|
1709
|
+
const li = {
|
|
1734
1710
|
activatorEvent: null,
|
|
1735
1711
|
active: null,
|
|
1736
1712
|
activeNode: null,
|
|
@@ -1739,22 +1715,22 @@ const xi = {
|
|
|
1739
1715
|
containerNodeRect: null,
|
|
1740
1716
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1741
1717
|
droppableRects: /* @__PURE__ */ new Map(),
|
|
1742
|
-
droppableContainers: /* @__PURE__ */ new
|
|
1718
|
+
droppableContainers: /* @__PURE__ */ new It(),
|
|
1743
1719
|
over: null,
|
|
1744
1720
|
dragOverlay: {
|
|
1745
1721
|
nodeRef: {
|
|
1746
1722
|
current: null
|
|
1747
1723
|
},
|
|
1748
1724
|
rect: null,
|
|
1749
|
-
setRef:
|
|
1725
|
+
setRef: ae
|
|
1750
1726
|
},
|
|
1751
1727
|
scrollableAncestors: [],
|
|
1752
1728
|
scrollableAncestorRects: [],
|
|
1753
|
-
measuringConfiguration:
|
|
1754
|
-
measureDroppableContainers:
|
|
1729
|
+
measuringConfiguration: ne,
|
|
1730
|
+
measureDroppableContainers: ae,
|
|
1755
1731
|
windowRect: null,
|
|
1756
1732
|
measuringScheduled: !1
|
|
1757
|
-
},
|
|
1733
|
+
}, kn = {
|
|
1758
1734
|
activatorEvent: null,
|
|
1759
1735
|
activators: [],
|
|
1760
1736
|
active: null,
|
|
@@ -1762,12 +1738,12 @@ const xi = {
|
|
|
1762
1738
|
ariaDescribedById: {
|
|
1763
1739
|
draggable: ""
|
|
1764
1740
|
},
|
|
1765
|
-
dispatch:
|
|
1741
|
+
dispatch: ae,
|
|
1766
1742
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1767
1743
|
over: null,
|
|
1768
|
-
measureDroppableContainers:
|
|
1769
|
-
},
|
|
1770
|
-
function
|
|
1744
|
+
measureDroppableContainers: ae
|
|
1745
|
+
}, Xt = /* @__PURE__ */ Mt(kn), Pn = /* @__PURE__ */ Mt(li);
|
|
1746
|
+
function ci() {
|
|
1771
1747
|
return {
|
|
1772
1748
|
draggable: {
|
|
1773
1749
|
active: null,
|
|
@@ -1782,32 +1758,38 @@ function Si() {
|
|
|
1782
1758
|
}
|
|
1783
1759
|
},
|
|
1784
1760
|
droppable: {
|
|
1785
|
-
containers: new
|
|
1761
|
+
containers: new It()
|
|
1786
1762
|
}
|
|
1787
1763
|
};
|
|
1788
1764
|
}
|
|
1789
|
-
function
|
|
1765
|
+
function ui(t, e) {
|
|
1790
1766
|
switch (e.type) {
|
|
1791
|
-
case
|
|
1792
|
-
return
|
|
1793
|
-
|
|
1767
|
+
case I.DragStart:
|
|
1768
|
+
return {
|
|
1769
|
+
...t,
|
|
1770
|
+
draggable: {
|
|
1771
|
+
...t.draggable,
|
|
1794
1772
|
initialCoordinates: e.initialCoordinates,
|
|
1795
1773
|
active: e.active
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
case
|
|
1799
|
-
return t.draggable.active == null ? t :
|
|
1800
|
-
|
|
1774
|
+
}
|
|
1775
|
+
};
|
|
1776
|
+
case I.DragMove:
|
|
1777
|
+
return t.draggable.active == null ? t : {
|
|
1778
|
+
...t,
|
|
1779
|
+
draggable: {
|
|
1780
|
+
...t.draggable,
|
|
1801
1781
|
translate: {
|
|
1802
1782
|
x: e.coordinates.x - t.draggable.initialCoordinates.x,
|
|
1803
1783
|
y: e.coordinates.y - t.draggable.initialCoordinates.y
|
|
1804
1784
|
}
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
case
|
|
1808
|
-
case
|
|
1809
|
-
return
|
|
1810
|
-
|
|
1785
|
+
}
|
|
1786
|
+
};
|
|
1787
|
+
case I.DragEnd:
|
|
1788
|
+
case I.DragCancel:
|
|
1789
|
+
return {
|
|
1790
|
+
...t,
|
|
1791
|
+
draggable: {
|
|
1792
|
+
...t.draggable,
|
|
1811
1793
|
active: null,
|
|
1812
1794
|
initialCoordinates: {
|
|
1813
1795
|
x: 0,
|
|
@@ -1817,21 +1799,23 @@ function Di(t, e) {
|
|
|
1817
1799
|
x: 0,
|
|
1818
1800
|
y: 0
|
|
1819
1801
|
}
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
case
|
|
1802
|
+
}
|
|
1803
|
+
};
|
|
1804
|
+
case I.RegisterDroppable: {
|
|
1823
1805
|
const {
|
|
1824
1806
|
element: n
|
|
1825
1807
|
} = e, {
|
|
1826
1808
|
id: r
|
|
1827
|
-
} = n, i = new
|
|
1828
|
-
return i.set(r, n),
|
|
1829
|
-
|
|
1809
|
+
} = n, i = new It(t.droppable.containers);
|
|
1810
|
+
return i.set(r, n), {
|
|
1811
|
+
...t,
|
|
1812
|
+
droppable: {
|
|
1813
|
+
...t.droppable,
|
|
1830
1814
|
containers: i
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1815
|
+
}
|
|
1816
|
+
};
|
|
1833
1817
|
}
|
|
1834
|
-
case
|
|
1818
|
+
case I.SetDroppableDisabled: {
|
|
1835
1819
|
const {
|
|
1836
1820
|
id: n,
|
|
1837
1821
|
key: r,
|
|
@@ -1839,34 +1823,39 @@ function Di(t, e) {
|
|
|
1839
1823
|
} = e, o = t.droppable.containers.get(n);
|
|
1840
1824
|
if (!o || r !== o.key)
|
|
1841
1825
|
return t;
|
|
1842
|
-
const a = new
|
|
1843
|
-
return a.set(n,
|
|
1826
|
+
const a = new It(t.droppable.containers);
|
|
1827
|
+
return a.set(n, {
|
|
1828
|
+
...o,
|
|
1844
1829
|
disabled: i
|
|
1845
|
-
})
|
|
1846
|
-
|
|
1830
|
+
}), {
|
|
1831
|
+
...t,
|
|
1832
|
+
droppable: {
|
|
1833
|
+
...t.droppable,
|
|
1847
1834
|
containers: a
|
|
1848
|
-
}
|
|
1849
|
-
}
|
|
1835
|
+
}
|
|
1836
|
+
};
|
|
1850
1837
|
}
|
|
1851
|
-
case
|
|
1838
|
+
case I.UnregisterDroppable: {
|
|
1852
1839
|
const {
|
|
1853
1840
|
id: n,
|
|
1854
1841
|
key: r
|
|
1855
1842
|
} = e, i = t.droppable.containers.get(n);
|
|
1856
1843
|
if (!i || r !== i.key)
|
|
1857
1844
|
return t;
|
|
1858
|
-
const o = new
|
|
1859
|
-
return o.delete(n),
|
|
1860
|
-
|
|
1845
|
+
const o = new It(t.droppable.containers);
|
|
1846
|
+
return o.delete(n), {
|
|
1847
|
+
...t,
|
|
1848
|
+
droppable: {
|
|
1849
|
+
...t.droppable,
|
|
1861
1850
|
containers: o
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1864
1853
|
}
|
|
1865
1854
|
default:
|
|
1866
1855
|
return t;
|
|
1867
1856
|
}
|
|
1868
1857
|
}
|
|
1869
|
-
function
|
|
1858
|
+
function di(t) {
|
|
1870
1859
|
let {
|
|
1871
1860
|
disabled: e
|
|
1872
1861
|
} = t;
|
|
@@ -1874,10 +1863,10 @@ function Ri(t) {
|
|
|
1874
1863
|
active: n,
|
|
1875
1864
|
activatorEvent: r,
|
|
1876
1865
|
draggableNodes: i
|
|
1877
|
-
} =
|
|
1878
|
-
return
|
|
1866
|
+
} = vt(Xt), o = ie(r), a = ie(n?.id);
|
|
1867
|
+
return O(() => {
|
|
1879
1868
|
if (!e && !r && o && a != null) {
|
|
1880
|
-
if (!
|
|
1869
|
+
if (!Te(o) || document.activeElement === o.target)
|
|
1881
1870
|
return;
|
|
1882
1871
|
const s = i.get(a);
|
|
1883
1872
|
if (!s)
|
|
@@ -1892,7 +1881,7 @@ function Ri(t) {
|
|
|
1892
1881
|
for (const d of [l.current, c.current]) {
|
|
1893
1882
|
if (!d)
|
|
1894
1883
|
continue;
|
|
1895
|
-
const u =
|
|
1884
|
+
const u = ar(d);
|
|
1896
1885
|
if (u) {
|
|
1897
1886
|
u.focus();
|
|
1898
1887
|
break;
|
|
@@ -1902,600 +1891,606 @@ function Ri(t) {
|
|
|
1902
1891
|
}
|
|
1903
1892
|
}, [r, e, i, a, o]), null;
|
|
1904
1893
|
}
|
|
1905
|
-
function
|
|
1906
|
-
let
|
|
1907
|
-
transform: n
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
}
|
|
1914
|
-
}
|
|
1915
|
-
function
|
|
1916
|
-
return
|
|
1894
|
+
function Bn(t, e) {
|
|
1895
|
+
let {
|
|
1896
|
+
transform: n,
|
|
1897
|
+
...r
|
|
1898
|
+
} = e;
|
|
1899
|
+
return t != null && t.length ? t.reduce((i, o) => o({
|
|
1900
|
+
transform: i,
|
|
1901
|
+
...r
|
|
1902
|
+
}), n) : n;
|
|
1903
|
+
}
|
|
1904
|
+
function hi(t) {
|
|
1905
|
+
return C(
|
|
1917
1906
|
() => ({
|
|
1918
|
-
draggable:
|
|
1919
|
-
|
|
1920
|
-
|
|
1907
|
+
draggable: {
|
|
1908
|
+
...ne.draggable,
|
|
1909
|
+
...t?.draggable
|
|
1910
|
+
},
|
|
1911
|
+
droppable: {
|
|
1912
|
+
...ne.droppable,
|
|
1913
|
+
...t?.droppable
|
|
1914
|
+
},
|
|
1915
|
+
dragOverlay: {
|
|
1916
|
+
...ne.dragOverlay,
|
|
1917
|
+
...t?.dragOverlay
|
|
1918
|
+
}
|
|
1921
1919
|
}),
|
|
1922
1920
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1923
|
-
[t
|
|
1921
|
+
[t?.draggable, t?.droppable, t?.dragOverlay]
|
|
1924
1922
|
);
|
|
1925
1923
|
}
|
|
1926
|
-
function
|
|
1924
|
+
function fi(t) {
|
|
1927
1925
|
let {
|
|
1928
1926
|
activeNode: e,
|
|
1929
1927
|
measure: n,
|
|
1930
1928
|
initialRect: r,
|
|
1931
1929
|
config: i = !0
|
|
1932
1930
|
} = t;
|
|
1933
|
-
const o =
|
|
1931
|
+
const o = T(!1), {
|
|
1934
1932
|
x: a,
|
|
1935
1933
|
y: s
|
|
1936
1934
|
} = typeof i == "boolean" ? {
|
|
1937
1935
|
x: i,
|
|
1938
1936
|
y: i
|
|
1939
1937
|
} : i;
|
|
1940
|
-
|
|
1938
|
+
at(() => {
|
|
1941
1939
|
if (!a && !s || !e) {
|
|
1942
1940
|
o.current = !1;
|
|
1943
1941
|
return;
|
|
1944
1942
|
}
|
|
1945
1943
|
if (o.current || !r)
|
|
1946
1944
|
return;
|
|
1947
|
-
const c = e
|
|
1945
|
+
const c = e?.node.current;
|
|
1948
1946
|
if (!c || c.isConnected === !1)
|
|
1949
1947
|
return;
|
|
1950
|
-
const d = n(c), u =
|
|
1948
|
+
const d = n(c), u = Dn(d, r);
|
|
1951
1949
|
if (a || (u.x = 0), s || (u.y = 0), o.current = !0, Math.abs(u.x) > 0 || Math.abs(u.y) > 0) {
|
|
1952
|
-
const
|
|
1953
|
-
|
|
1950
|
+
const f = Rn(c);
|
|
1951
|
+
f && f.scrollBy({
|
|
1954
1952
|
top: u.y,
|
|
1955
1953
|
left: u.x
|
|
1956
1954
|
});
|
|
1957
1955
|
}
|
|
1958
1956
|
}, [e, a, s, r, n]);
|
|
1959
1957
|
}
|
|
1960
|
-
const
|
|
1958
|
+
const fe = /* @__PURE__ */ Mt({
|
|
1959
|
+
...et,
|
|
1961
1960
|
scaleX: 1,
|
|
1962
1961
|
scaleY: 1
|
|
1963
|
-
})
|
|
1964
|
-
var
|
|
1962
|
+
});
|
|
1963
|
+
var pt;
|
|
1965
1964
|
(function(t) {
|
|
1966
1965
|
t[t.Uninitialized = 0] = "Uninitialized", t[t.Initializing = 1] = "Initializing", t[t.Initialized = 2] = "Initialized";
|
|
1967
|
-
})(
|
|
1968
|
-
const
|
|
1966
|
+
})(pt || (pt = {}));
|
|
1967
|
+
const pi = /* @__PURE__ */ mn(function(e) {
|
|
1969
1968
|
var n, r, i, o;
|
|
1970
|
-
let
|
|
1969
|
+
let {
|
|
1971
1970
|
id: a,
|
|
1972
1971
|
accessibility: s,
|
|
1973
1972
|
autoScroll: l = !0,
|
|
1974
1973
|
children: c,
|
|
1975
|
-
sensors: d =
|
|
1976
|
-
collisionDetection: u =
|
|
1977
|
-
measuring:
|
|
1978
|
-
modifiers: p
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
"autoScroll",
|
|
1983
|
-
"children",
|
|
1984
|
-
"sensors",
|
|
1985
|
-
"collisionDetection",
|
|
1986
|
-
"measuring",
|
|
1987
|
-
"modifiers"
|
|
1988
|
-
]);
|
|
1989
|
-
const f = dr(Di, void 0, Si), [g, w] = f, [y, v] = zr(), [x, C] = $(vt.Uninitialized), z = x === vt.Initialized, {
|
|
1974
|
+
sensors: d = si,
|
|
1975
|
+
collisionDetection: u = Dr,
|
|
1976
|
+
measuring: f,
|
|
1977
|
+
modifiers: p,
|
|
1978
|
+
...b
|
|
1979
|
+
} = e;
|
|
1980
|
+
const h = Jn(ui, void 0, ci), [g, m] = h, [w, v] = fr(), [y, R] = j(pt.Uninitialized), z = y === pt.Initialized, {
|
|
1990
1981
|
draggable: {
|
|
1991
|
-
active:
|
|
1992
|
-
nodes:
|
|
1993
|
-
translate:
|
|
1982
|
+
active: x,
|
|
1983
|
+
nodes: S,
|
|
1984
|
+
translate: E
|
|
1994
1985
|
},
|
|
1995
1986
|
droppable: {
|
|
1996
|
-
containers:
|
|
1987
|
+
containers: L
|
|
1997
1988
|
}
|
|
1998
|
-
} = g,
|
|
1989
|
+
} = g, N = x != null ? S.get(x) : null, H = T({
|
|
1999
1990
|
initial: null,
|
|
2000
1991
|
translated: null
|
|
2001
|
-
}),
|
|
2002
|
-
var
|
|
2003
|
-
return
|
|
2004
|
-
id:
|
|
1992
|
+
}), P = C(() => {
|
|
1993
|
+
var Y;
|
|
1994
|
+
return x != null ? {
|
|
1995
|
+
id: x,
|
|
2005
1996
|
// It's possible for the active node to unmount while dragging
|
|
2006
|
-
data: (
|
|
2007
|
-
rect:
|
|
1997
|
+
data: (Y = N?.data) != null ? Y : ai,
|
|
1998
|
+
rect: H
|
|
2008
1999
|
} : null;
|
|
2009
|
-
}, [
|
|
2010
|
-
droppableRects:
|
|
2011
|
-
measureDroppableContainers:
|
|
2012
|
-
measuringScheduled:
|
|
2013
|
-
} =
|
|
2000
|
+
}, [x, N]), W = T(null), [q, $] = j(null), [X, Ut] = j(null), ot = Ht(b, Object.values(b)), yt = de("DndDescribedBy", a), pe = C(() => L.getEnabled(), [L]), bt = hi(f), {
|
|
2001
|
+
droppableRects: xt,
|
|
2002
|
+
measureDroppableContainers: Kt,
|
|
2003
|
+
measuringScheduled: We
|
|
2004
|
+
} = Vr(pe, {
|
|
2014
2005
|
dragging: z,
|
|
2015
|
-
dependencies: [
|
|
2016
|
-
config:
|
|
2017
|
-
}),
|
|
2018
|
-
|
|
2019
|
-
activeNode:
|
|
2020
|
-
config:
|
|
2021
|
-
initialRect:
|
|
2022
|
-
measure:
|
|
2006
|
+
dependencies: [E.x, E.y],
|
|
2007
|
+
config: bt.droppable
|
|
2008
|
+
}), Z = Kr(S, x), Ie = C(() => X ? se(X) : null, [X]), He = Vn(), _e = qr(Z, bt.draggable.measure);
|
|
2009
|
+
fi({
|
|
2010
|
+
activeNode: x != null ? S.get(x) : null,
|
|
2011
|
+
config: He.layoutShiftCompensation,
|
|
2012
|
+
initialRect: _e,
|
|
2013
|
+
measure: bt.draggable.measure
|
|
2023
2014
|
});
|
|
2024
|
-
const
|
|
2015
|
+
const tt = rn(Z, bt.draggable.measure, _e), ge = rn(Z ? Z.parentElement : null), mt = T({
|
|
2025
2016
|
activatorEvent: null,
|
|
2026
2017
|
active: null,
|
|
2027
|
-
activeNode:
|
|
2018
|
+
activeNode: Z,
|
|
2028
2019
|
collisionRect: null,
|
|
2029
2020
|
collisions: null,
|
|
2030
|
-
droppableRects:
|
|
2031
|
-
draggableNodes:
|
|
2021
|
+
droppableRects: xt,
|
|
2022
|
+
draggableNodes: S,
|
|
2032
2023
|
draggingNode: null,
|
|
2033
2024
|
draggingNodeRect: null,
|
|
2034
|
-
droppableContainers:
|
|
2025
|
+
droppableContainers: L,
|
|
2035
2026
|
over: null,
|
|
2036
2027
|
scrollableAncestors: [],
|
|
2037
2028
|
scrollAdjustedTranslate: null
|
|
2038
|
-
}),
|
|
2039
|
-
measure:
|
|
2040
|
-
}),
|
|
2029
|
+
}), Fe = L.getNodeFor((n = mt.current.over) == null ? void 0 : n.id), wt = oi({
|
|
2030
|
+
measure: bt.dragOverlay.measure
|
|
2031
|
+
}), Gt = (r = wt.nodeRef.current) != null ? r : Z, Dt = z ? (i = wt.rect) != null ? i : tt : null, je = !!(wt.nodeRef.current && wt.rect), Ye = Zr(je ? null : tt), ve = On(Gt ? U(Gt) : null), ct = ti(z ? Fe ?? Z : null), Vt = ii(ct), qt = Bn(p, {
|
|
2041
2032
|
transform: {
|
|
2042
|
-
x:
|
|
2043
|
-
y:
|
|
2033
|
+
x: E.x - Ye.x,
|
|
2034
|
+
y: E.y - Ye.y,
|
|
2044
2035
|
scaleX: 1,
|
|
2045
2036
|
scaleY: 1
|
|
2046
2037
|
},
|
|
2047
|
-
activatorEvent:
|
|
2048
|
-
active:
|
|
2049
|
-
activeNodeRect:
|
|
2050
|
-
containerNodeRect:
|
|
2051
|
-
draggingNodeRect:
|
|
2052
|
-
over:
|
|
2053
|
-
overlayNodeRect:
|
|
2054
|
-
scrollableAncestors:
|
|
2055
|
-
scrollableAncestorRects:
|
|
2056
|
-
windowRect:
|
|
2057
|
-
}),
|
|
2058
|
-
active:
|
|
2059
|
-
collisionRect:
|
|
2060
|
-
droppableRects:
|
|
2061
|
-
droppableContainers:
|
|
2062
|
-
pointerCoordinates:
|
|
2063
|
-
}) : null,
|
|
2064
|
-
(
|
|
2038
|
+
activatorEvent: X,
|
|
2039
|
+
active: P,
|
|
2040
|
+
activeNodeRect: tt,
|
|
2041
|
+
containerNodeRect: ge,
|
|
2042
|
+
draggingNodeRect: Dt,
|
|
2043
|
+
over: mt.current.over,
|
|
2044
|
+
overlayNodeRect: wt.rect,
|
|
2045
|
+
scrollableAncestors: ct,
|
|
2046
|
+
scrollableAncestorRects: Vt,
|
|
2047
|
+
windowRect: ve
|
|
2048
|
+
}), $e = Ie ? Et(Ie, E) : null, Xe = ei(ct), jn = sn(Xe), Yn = sn(Xe, [tt]), St = Et(qt, jn), Rt = Dt ? Cr(Dt, qt) : null, Ot = P && Rt ? u({
|
|
2049
|
+
active: P,
|
|
2050
|
+
collisionRect: Rt,
|
|
2051
|
+
droppableRects: xt,
|
|
2052
|
+
droppableContainers: pe,
|
|
2053
|
+
pointerCoordinates: $e
|
|
2054
|
+
}) : null, Ue = yr(Ot, "id"), [ut, Ke] = j(null), $n = je ? qt : Et(qt, Yn), Xn = Sr($n, (o = ut?.rect) != null ? o : null, tt), be = T(null), Ge = A(
|
|
2055
|
+
(Y, K) => {
|
|
2065
2056
|
let {
|
|
2066
|
-
sensor:
|
|
2067
|
-
options:
|
|
2068
|
-
} =
|
|
2069
|
-
if (
|
|
2057
|
+
sensor: G,
|
|
2058
|
+
options: dt
|
|
2059
|
+
} = K;
|
|
2060
|
+
if (W.current == null)
|
|
2070
2061
|
return;
|
|
2071
|
-
const
|
|
2072
|
-
if (!
|
|
2062
|
+
const J = S.get(W.current);
|
|
2063
|
+
if (!J)
|
|
2073
2064
|
return;
|
|
2074
|
-
const
|
|
2075
|
-
active:
|
|
2076
|
-
activeNode:
|
|
2077
|
-
event:
|
|
2078
|
-
options:
|
|
2065
|
+
const V = Y.nativeEvent, nt = new G({
|
|
2066
|
+
active: W.current,
|
|
2067
|
+
activeNode: J,
|
|
2068
|
+
event: V,
|
|
2069
|
+
options: dt,
|
|
2079
2070
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2080
2071
|
// otherwise they are frozen in time with the stale arguments
|
|
2081
|
-
context:
|
|
2082
|
-
onAbort(
|
|
2083
|
-
if (!
|
|
2072
|
+
context: mt,
|
|
2073
|
+
onAbort(F) {
|
|
2074
|
+
if (!S.get(F))
|
|
2084
2075
|
return;
|
|
2085
2076
|
const {
|
|
2086
|
-
onDragAbort:
|
|
2087
|
-
} =
|
|
2088
|
-
id:
|
|
2077
|
+
onDragAbort: rt
|
|
2078
|
+
} = ot.current, st = {
|
|
2079
|
+
id: F
|
|
2089
2080
|
};
|
|
2090
|
-
|
|
2081
|
+
rt?.(st), w({
|
|
2091
2082
|
type: "onDragAbort",
|
|
2092
|
-
event:
|
|
2083
|
+
event: st
|
|
2093
2084
|
});
|
|
2094
2085
|
},
|
|
2095
|
-
onPending(
|
|
2096
|
-
if (!
|
|
2086
|
+
onPending(F, ht, rt, st) {
|
|
2087
|
+
if (!S.get(F))
|
|
2097
2088
|
return;
|
|
2098
2089
|
const {
|
|
2099
|
-
onDragPending:
|
|
2100
|
-
} =
|
|
2101
|
-
id:
|
|
2102
|
-
constraint:
|
|
2103
|
-
initialCoordinates:
|
|
2104
|
-
offset:
|
|
2090
|
+
onDragPending: kt
|
|
2091
|
+
} = ot.current, ft = {
|
|
2092
|
+
id: F,
|
|
2093
|
+
constraint: ht,
|
|
2094
|
+
initialCoordinates: rt,
|
|
2095
|
+
offset: st
|
|
2105
2096
|
};
|
|
2106
|
-
|
|
2097
|
+
kt?.(ft), w({
|
|
2107
2098
|
type: "onDragPending",
|
|
2108
|
-
event:
|
|
2099
|
+
event: ft
|
|
2109
2100
|
});
|
|
2110
2101
|
},
|
|
2111
|
-
onStart(
|
|
2112
|
-
const
|
|
2113
|
-
if (
|
|
2102
|
+
onStart(F) {
|
|
2103
|
+
const ht = W.current;
|
|
2104
|
+
if (ht == null)
|
|
2114
2105
|
return;
|
|
2115
|
-
const
|
|
2116
|
-
if (!
|
|
2106
|
+
const rt = S.get(ht);
|
|
2107
|
+
if (!rt)
|
|
2117
2108
|
return;
|
|
2118
2109
|
const {
|
|
2119
|
-
onDragStart:
|
|
2120
|
-
} =
|
|
2121
|
-
activatorEvent:
|
|
2110
|
+
onDragStart: st
|
|
2111
|
+
} = ot.current, Lt = {
|
|
2112
|
+
activatorEvent: V,
|
|
2122
2113
|
active: {
|
|
2123
|
-
id:
|
|
2124
|
-
data:
|
|
2125
|
-
rect:
|
|
2114
|
+
id: ht,
|
|
2115
|
+
data: rt.data,
|
|
2116
|
+
rect: H
|
|
2126
2117
|
}
|
|
2127
2118
|
};
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
type:
|
|
2131
|
-
initialCoordinates:
|
|
2132
|
-
active:
|
|
2133
|
-
}),
|
|
2119
|
+
Jt(() => {
|
|
2120
|
+
st?.(Lt), R(pt.Initializing), m({
|
|
2121
|
+
type: I.DragStart,
|
|
2122
|
+
initialCoordinates: F,
|
|
2123
|
+
active: ht
|
|
2124
|
+
}), w({
|
|
2134
2125
|
type: "onDragStart",
|
|
2135
|
-
event:
|
|
2136
|
-
}),
|
|
2126
|
+
event: Lt
|
|
2127
|
+
}), $(be.current), Ut(V);
|
|
2137
2128
|
});
|
|
2138
2129
|
},
|
|
2139
|
-
onMove(
|
|
2140
|
-
|
|
2141
|
-
type:
|
|
2142
|
-
coordinates:
|
|
2130
|
+
onMove(F) {
|
|
2131
|
+
m({
|
|
2132
|
+
type: I.DragMove,
|
|
2133
|
+
coordinates: F
|
|
2143
2134
|
});
|
|
2144
2135
|
},
|
|
2145
|
-
onEnd:
|
|
2146
|
-
onCancel:
|
|
2136
|
+
onEnd: Ct(I.DragEnd),
|
|
2137
|
+
onCancel: Ct(I.DragCancel)
|
|
2147
2138
|
});
|
|
2148
|
-
|
|
2149
|
-
function
|
|
2150
|
-
return function() {
|
|
2151
|
-
|
|
2139
|
+
be.current = nt;
|
|
2140
|
+
function Ct(F) {
|
|
2141
|
+
return async function() {
|
|
2142
|
+
const {
|
|
2143
|
+
active: rt,
|
|
2144
|
+
collisions: st,
|
|
2145
|
+
over: Lt,
|
|
2146
|
+
scrollAdjustedTranslate: kt
|
|
2147
|
+
} = mt.current;
|
|
2148
|
+
let ft = null;
|
|
2149
|
+
if (rt && kt) {
|
|
2152
2150
|
const {
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2151
|
+
cancelDrop: Pt
|
|
2152
|
+
} = ot.current;
|
|
2153
|
+
ft = {
|
|
2154
|
+
activatorEvent: V,
|
|
2155
|
+
active: rt,
|
|
2156
|
+
collisions: st,
|
|
2157
|
+
delta: kt,
|
|
2158
|
+
over: Lt
|
|
2159
|
+
}, F === I.DragEnd && typeof Pt == "function" && await Promise.resolve(Pt(ft)) && (F = I.DragCancel);
|
|
2160
|
+
}
|
|
2161
|
+
W.current = null, Jt(() => {
|
|
2162
|
+
m({
|
|
2163
|
+
type: F
|
|
2164
|
+
}), R(pt.Uninitialized), Ke(null), $(null), Ut(null), be.current = null;
|
|
2165
|
+
const Pt = F === I.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2166
|
+
if (ft) {
|
|
2167
|
+
const me = ot.current[Pt];
|
|
2168
|
+
me?.(ft), w({
|
|
2169
|
+
type: Pt,
|
|
2170
|
+
event: ft
|
|
2171
|
+
});
|
|
2170
2172
|
}
|
|
2171
|
-
H.current = null, ee(() => {
|
|
2172
|
-
w({
|
|
2173
|
-
type: Y
|
|
2174
|
-
}), C(vt.Uninitialized), Qe(null), U(null), Gt(null), xe.current = null;
|
|
2175
|
-
const Wt = Y === _.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2176
|
-
if (gt) {
|
|
2177
|
-
const Se = at.current[Wt];
|
|
2178
|
-
Se == null || Se(gt), y({
|
|
2179
|
-
type: Wt,
|
|
2180
|
-
event: gt
|
|
2181
|
-
});
|
|
2182
|
-
}
|
|
2183
|
-
});
|
|
2184
2173
|
});
|
|
2185
2174
|
};
|
|
2186
2175
|
}
|
|
2187
2176
|
},
|
|
2188
2177
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2189
|
-
[
|
|
2190
|
-
),
|
|
2191
|
-
const
|
|
2178
|
+
[S]
|
|
2179
|
+
), Un = A((Y, K) => (G, dt) => {
|
|
2180
|
+
const J = G.nativeEvent, V = S.get(dt);
|
|
2192
2181
|
if (
|
|
2193
2182
|
// Another sensor is already instantiating
|
|
2194
|
-
|
|
2195
|
-
!
|
|
2196
|
-
|
|
2183
|
+
W.current !== null || // No active draggable
|
|
2184
|
+
!V || // Event has already been captured
|
|
2185
|
+
J.dndKit || J.defaultPrevented
|
|
2197
2186
|
)
|
|
2198
2187
|
return;
|
|
2199
|
-
const
|
|
2200
|
-
active:
|
|
2188
|
+
const nt = {
|
|
2189
|
+
active: V
|
|
2201
2190
|
};
|
|
2202
|
-
|
|
2203
|
-
capturedBy:
|
|
2204
|
-
},
|
|
2205
|
-
}, [
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
}, [
|
|
2191
|
+
Y(G, K.options, nt) === !0 && (J.dndKit = {
|
|
2192
|
+
capturedBy: K.sensor
|
|
2193
|
+
}, W.current = dt, Ge(G, K));
|
|
2194
|
+
}, [S, Ge]), Ve = Gr(d, Un);
|
|
2195
|
+
ni(d), at(() => {
|
|
2196
|
+
tt && y === pt.Initializing && R(pt.Initialized);
|
|
2197
|
+
}, [tt, y]), O(
|
|
2209
2198
|
() => {
|
|
2210
2199
|
const {
|
|
2211
|
-
onDragMove:
|
|
2212
|
-
} =
|
|
2213
|
-
active:
|
|
2214
|
-
activatorEvent:
|
|
2215
|
-
collisions:
|
|
2216
|
-
over:
|
|
2217
|
-
} =
|
|
2218
|
-
if (!
|
|
2200
|
+
onDragMove: Y
|
|
2201
|
+
} = ot.current, {
|
|
2202
|
+
active: K,
|
|
2203
|
+
activatorEvent: G,
|
|
2204
|
+
collisions: dt,
|
|
2205
|
+
over: J
|
|
2206
|
+
} = mt.current;
|
|
2207
|
+
if (!K || !G)
|
|
2219
2208
|
return;
|
|
2220
|
-
const
|
|
2221
|
-
active:
|
|
2222
|
-
activatorEvent:
|
|
2223
|
-
collisions:
|
|
2209
|
+
const V = {
|
|
2210
|
+
active: K,
|
|
2211
|
+
activatorEvent: G,
|
|
2212
|
+
collisions: dt,
|
|
2224
2213
|
delta: {
|
|
2225
|
-
x:
|
|
2226
|
-
y:
|
|
2214
|
+
x: St.x,
|
|
2215
|
+
y: St.y
|
|
2227
2216
|
},
|
|
2228
|
-
over:
|
|
2217
|
+
over: J
|
|
2229
2218
|
};
|
|
2230
|
-
|
|
2231
|
-
|
|
2219
|
+
Jt(() => {
|
|
2220
|
+
Y?.(V), w({
|
|
2232
2221
|
type: "onDragMove",
|
|
2233
|
-
event:
|
|
2222
|
+
event: V
|
|
2234
2223
|
});
|
|
2235
2224
|
});
|
|
2236
2225
|
},
|
|
2237
2226
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2238
|
-
[
|
|
2239
|
-
),
|
|
2227
|
+
[St.x, St.y]
|
|
2228
|
+
), O(
|
|
2240
2229
|
() => {
|
|
2241
2230
|
const {
|
|
2242
|
-
active:
|
|
2243
|
-
activatorEvent:
|
|
2244
|
-
collisions:
|
|
2245
|
-
droppableContainers:
|
|
2246
|
-
scrollAdjustedTranslate:
|
|
2247
|
-
} =
|
|
2248
|
-
if (!
|
|
2231
|
+
active: Y,
|
|
2232
|
+
activatorEvent: K,
|
|
2233
|
+
collisions: G,
|
|
2234
|
+
droppableContainers: dt,
|
|
2235
|
+
scrollAdjustedTranslate: J
|
|
2236
|
+
} = mt.current;
|
|
2237
|
+
if (!Y || W.current == null || !K || !J)
|
|
2249
2238
|
return;
|
|
2250
2239
|
const {
|
|
2251
|
-
onDragOver:
|
|
2252
|
-
} =
|
|
2253
|
-
id:
|
|
2254
|
-
rect:
|
|
2255
|
-
data:
|
|
2256
|
-
disabled:
|
|
2257
|
-
} : null,
|
|
2258
|
-
active:
|
|
2259
|
-
activatorEvent:
|
|
2260
|
-
collisions:
|
|
2240
|
+
onDragOver: V
|
|
2241
|
+
} = ot.current, nt = dt.get(Ue), Ct = nt && nt.rect.current ? {
|
|
2242
|
+
id: nt.id,
|
|
2243
|
+
rect: nt.rect.current,
|
|
2244
|
+
data: nt.data,
|
|
2245
|
+
disabled: nt.disabled
|
|
2246
|
+
} : null, F = {
|
|
2247
|
+
active: Y,
|
|
2248
|
+
activatorEvent: K,
|
|
2249
|
+
collisions: G,
|
|
2261
2250
|
delta: {
|
|
2262
|
-
x:
|
|
2263
|
-
y:
|
|
2251
|
+
x: J.x,
|
|
2252
|
+
y: J.y
|
|
2264
2253
|
},
|
|
2265
|
-
over:
|
|
2254
|
+
over: Ct
|
|
2266
2255
|
};
|
|
2267
|
-
|
|
2268
|
-
|
|
2256
|
+
Jt(() => {
|
|
2257
|
+
Ke(Ct), V?.(F), w({
|
|
2269
2258
|
type: "onDragOver",
|
|
2270
|
-
event:
|
|
2259
|
+
event: F
|
|
2271
2260
|
});
|
|
2272
2261
|
});
|
|
2273
2262
|
},
|
|
2274
2263
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2275
|
-
[
|
|
2276
|
-
),
|
|
2277
|
-
|
|
2278
|
-
activatorEvent:
|
|
2279
|
-
active:
|
|
2280
|
-
activeNode:
|
|
2281
|
-
collisionRect:
|
|
2282
|
-
collisions:
|
|
2283
|
-
droppableRects:
|
|
2284
|
-
draggableNodes:
|
|
2285
|
-
draggingNode:
|
|
2286
|
-
draggingNodeRect:
|
|
2287
|
-
droppableContainers:
|
|
2288
|
-
over:
|
|
2289
|
-
scrollableAncestors:
|
|
2290
|
-
scrollAdjustedTranslate:
|
|
2291
|
-
},
|
|
2292
|
-
initial:
|
|
2293
|
-
translated:
|
|
2264
|
+
[Ue]
|
|
2265
|
+
), at(() => {
|
|
2266
|
+
mt.current = {
|
|
2267
|
+
activatorEvent: X,
|
|
2268
|
+
active: P,
|
|
2269
|
+
activeNode: Z,
|
|
2270
|
+
collisionRect: Rt,
|
|
2271
|
+
collisions: Ot,
|
|
2272
|
+
droppableRects: xt,
|
|
2273
|
+
draggableNodes: S,
|
|
2274
|
+
draggingNode: Gt,
|
|
2275
|
+
draggingNodeRect: Dt,
|
|
2276
|
+
droppableContainers: L,
|
|
2277
|
+
over: ut,
|
|
2278
|
+
scrollableAncestors: ct,
|
|
2279
|
+
scrollAdjustedTranslate: St
|
|
2280
|
+
}, H.current = {
|
|
2281
|
+
initial: Dt,
|
|
2282
|
+
translated: Rt
|
|
2294
2283
|
};
|
|
2295
|
-
}, [
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2284
|
+
}, [P, Z, Ot, Rt, S, Gt, Dt, xt, L, ut, ct, St]), $r({
|
|
2285
|
+
...He,
|
|
2286
|
+
delta: E,
|
|
2287
|
+
draggingRect: Rt,
|
|
2288
|
+
pointerCoordinates: $e,
|
|
2289
|
+
scrollableAncestors: ct,
|
|
2290
|
+
scrollableAncestorRects: Vt
|
|
2291
|
+
});
|
|
2292
|
+
const Kn = C(() => ({
|
|
2293
|
+
active: P,
|
|
2294
|
+
activeNode: Z,
|
|
2295
|
+
activeNodeRect: tt,
|
|
2296
|
+
activatorEvent: X,
|
|
2297
|
+
collisions: Ot,
|
|
2298
|
+
containerNodeRect: ge,
|
|
2299
|
+
dragOverlay: wt,
|
|
2300
|
+
draggableNodes: S,
|
|
2301
|
+
droppableContainers: L,
|
|
2302
|
+
droppableRects: xt,
|
|
2303
|
+
over: ut,
|
|
2304
|
+
measureDroppableContainers: Kt,
|
|
2305
|
+
scrollableAncestors: ct,
|
|
2306
|
+
scrollableAncestorRects: Vt,
|
|
2307
|
+
measuringConfiguration: bt,
|
|
2308
|
+
measuringScheduled: We,
|
|
2309
|
+
windowRect: ve
|
|
2310
|
+
}), [P, Z, tt, X, Ot, ge, wt, S, L, xt, ut, Kt, ct, Vt, bt, We, ve]), Gn = C(() => ({
|
|
2311
|
+
activatorEvent: X,
|
|
2312
|
+
activators: Ve,
|
|
2313
|
+
active: P,
|
|
2314
|
+
activeNodeRect: tt,
|
|
2325
2315
|
ariaDescribedById: {
|
|
2326
|
-
draggable:
|
|
2316
|
+
draggable: yt
|
|
2327
2317
|
},
|
|
2328
|
-
dispatch:
|
|
2329
|
-
draggableNodes:
|
|
2330
|
-
over:
|
|
2331
|
-
measureDroppableContainers:
|
|
2332
|
-
}), [
|
|
2333
|
-
return
|
|
2318
|
+
dispatch: m,
|
|
2319
|
+
draggableNodes: S,
|
|
2320
|
+
over: ut,
|
|
2321
|
+
measureDroppableContainers: Kt
|
|
2322
|
+
}), [X, Ve, P, tt, m, yt, S, ut, Kt]);
|
|
2323
|
+
return k.createElement(xn.Provider, {
|
|
2334
2324
|
value: v
|
|
2335
|
-
},
|
|
2336
|
-
value:
|
|
2337
|
-
},
|
|
2338
|
-
value:
|
|
2339
|
-
},
|
|
2340
|
-
value:
|
|
2341
|
-
}, c)),
|
|
2342
|
-
disabled:
|
|
2343
|
-
})),
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
enabled:
|
|
2325
|
+
}, k.createElement(Xt.Provider, {
|
|
2326
|
+
value: Gn
|
|
2327
|
+
}, k.createElement(Pn.Provider, {
|
|
2328
|
+
value: Kn
|
|
2329
|
+
}, k.createElement(fe.Provider, {
|
|
2330
|
+
value: Xn
|
|
2331
|
+
}, c)), k.createElement(di, {
|
|
2332
|
+
disabled: s?.restoreFocus === !1
|
|
2333
|
+
})), k.createElement(vr, {
|
|
2334
|
+
...s,
|
|
2335
|
+
hiddenTextDescribedById: yt
|
|
2336
|
+
}));
|
|
2337
|
+
function Vn() {
|
|
2338
|
+
const Y = q?.autoScrollEnabled === !1, K = typeof l == "object" ? l.enabled === !1 : l === !1, G = z && !Y && !K;
|
|
2339
|
+
return typeof l == "object" ? {
|
|
2340
|
+
...l,
|
|
2341
|
+
enabled: G
|
|
2342
|
+
} : {
|
|
2343
|
+
enabled: G
|
|
2352
2344
|
};
|
|
2353
2345
|
}
|
|
2354
|
-
}),
|
|
2355
|
-
function
|
|
2346
|
+
}), gi = /* @__PURE__ */ Mt(null), ln = "button", vi = "Draggable";
|
|
2347
|
+
function bi(t) {
|
|
2356
2348
|
let {
|
|
2357
2349
|
id: e,
|
|
2358
2350
|
data: n,
|
|
2359
2351
|
disabled: r = !1,
|
|
2360
2352
|
attributes: i
|
|
2361
2353
|
} = t;
|
|
2362
|
-
const o =
|
|
2354
|
+
const o = de(vi), {
|
|
2363
2355
|
activators: a,
|
|
2364
2356
|
activatorEvent: s,
|
|
2365
2357
|
active: l,
|
|
2366
2358
|
activeNodeRect: c,
|
|
2367
2359
|
ariaDescribedById: d,
|
|
2368
2360
|
draggableNodes: u,
|
|
2369
|
-
over:
|
|
2370
|
-
} =
|
|
2371
|
-
role: p =
|
|
2361
|
+
over: f
|
|
2362
|
+
} = vt(Xt), {
|
|
2363
|
+
role: p = ln,
|
|
2372
2364
|
roleDescription: b = "draggable",
|
|
2373
|
-
tabIndex:
|
|
2374
|
-
} = i
|
|
2375
|
-
|
|
2365
|
+
tabIndex: h = 0
|
|
2366
|
+
} = i ?? {}, g = l?.id === e, m = vt(g ? fe : gi), [w, v] = re(), [y, R] = re(), z = ri(a, e), x = Ht(n);
|
|
2367
|
+
at(
|
|
2376
2368
|
() => (u.set(e, {
|
|
2377
2369
|
id: e,
|
|
2378
2370
|
key: o,
|
|
2379
|
-
node:
|
|
2380
|
-
activatorNode:
|
|
2381
|
-
data:
|
|
2371
|
+
node: w,
|
|
2372
|
+
activatorNode: y,
|
|
2373
|
+
data: x
|
|
2382
2374
|
}), () => {
|
|
2383
|
-
const
|
|
2384
|
-
|
|
2375
|
+
const E = u.get(e);
|
|
2376
|
+
E && E.key === o && u.delete(e);
|
|
2385
2377
|
}),
|
|
2386
2378
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2387
2379
|
[u, e]
|
|
2388
2380
|
);
|
|
2389
|
-
const
|
|
2381
|
+
const S = C(() => ({
|
|
2390
2382
|
role: p,
|
|
2391
|
-
tabIndex:
|
|
2383
|
+
tabIndex: h,
|
|
2392
2384
|
"aria-disabled": r,
|
|
2393
|
-
"aria-pressed": g && p ===
|
|
2385
|
+
"aria-pressed": g && p === ln ? !0 : void 0,
|
|
2394
2386
|
"aria-roledescription": b,
|
|
2395
2387
|
"aria-describedby": d.draggable
|
|
2396
|
-
}), [r, p,
|
|
2388
|
+
}), [r, p, h, g, b, d.draggable]);
|
|
2397
2389
|
return {
|
|
2398
2390
|
active: l,
|
|
2399
2391
|
activatorEvent: s,
|
|
2400
2392
|
activeNodeRect: c,
|
|
2401
|
-
attributes:
|
|
2393
|
+
attributes: S,
|
|
2402
2394
|
isDragging: g,
|
|
2403
2395
|
listeners: r ? void 0 : z,
|
|
2404
|
-
node:
|
|
2405
|
-
over:
|
|
2396
|
+
node: w,
|
|
2397
|
+
over: f,
|
|
2406
2398
|
setNodeRef: v,
|
|
2407
|
-
setActivatorNodeRef:
|
|
2408
|
-
transform:
|
|
2399
|
+
setActivatorNodeRef: R,
|
|
2400
|
+
transform: m
|
|
2409
2401
|
};
|
|
2410
2402
|
}
|
|
2411
|
-
function
|
|
2412
|
-
return
|
|
2403
|
+
function mi() {
|
|
2404
|
+
return vt(Pn);
|
|
2413
2405
|
}
|
|
2414
|
-
const
|
|
2406
|
+
const wi = "Droppable", yi = {
|
|
2415
2407
|
timeout: 25
|
|
2416
2408
|
};
|
|
2417
|
-
function
|
|
2409
|
+
function xi(t) {
|
|
2418
2410
|
let {
|
|
2419
2411
|
data: e,
|
|
2420
2412
|
disabled: n = !1,
|
|
2421
2413
|
id: r,
|
|
2422
2414
|
resizeObserverConfig: i
|
|
2423
2415
|
} = t;
|
|
2424
|
-
const o =
|
|
2416
|
+
const o = de(wi), {
|
|
2425
2417
|
active: a,
|
|
2426
2418
|
dispatch: s,
|
|
2427
2419
|
over: l,
|
|
2428
2420
|
measureDroppableContainers: c
|
|
2429
|
-
} =
|
|
2421
|
+
} = vt(Xt), d = T({
|
|
2430
2422
|
disabled: n
|
|
2431
|
-
}), u =
|
|
2423
|
+
}), u = T(!1), f = T(null), p = T(null), {
|
|
2432
2424
|
disabled: b,
|
|
2433
|
-
updateMeasurementsFor:
|
|
2425
|
+
updateMeasurementsFor: h,
|
|
2434
2426
|
timeout: g
|
|
2435
|
-
} =
|
|
2427
|
+
} = {
|
|
2428
|
+
...yi,
|
|
2429
|
+
...i
|
|
2430
|
+
}, m = Ht(h ?? r), w = A(
|
|
2436
2431
|
() => {
|
|
2437
2432
|
if (!u.current) {
|
|
2438
2433
|
u.current = !0;
|
|
2439
2434
|
return;
|
|
2440
2435
|
}
|
|
2441
2436
|
p.current != null && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
2442
|
-
c(Array.isArray(
|
|
2437
|
+
c(Array.isArray(m.current) ? m.current : [m.current]), p.current = null;
|
|
2443
2438
|
}, g);
|
|
2444
2439
|
},
|
|
2445
2440
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2446
2441
|
[g]
|
|
2447
|
-
), v =
|
|
2448
|
-
callback:
|
|
2442
|
+
), v = he({
|
|
2443
|
+
callback: w,
|
|
2449
2444
|
disabled: b || !a
|
|
2450
|
-
}),
|
|
2451
|
-
v && (
|
|
2452
|
-
}, [v]), [
|
|
2453
|
-
return
|
|
2454
|
-
!v || !
|
|
2455
|
-
}, [
|
|
2445
|
+
}), y = A((S, E) => {
|
|
2446
|
+
v && (E && (v.unobserve(E), u.current = !1), S && v.observe(S));
|
|
2447
|
+
}, [v]), [R, z] = re(y), x = Ht(e);
|
|
2448
|
+
return O(() => {
|
|
2449
|
+
!v || !R.current || (v.disconnect(), u.current = !1, v.observe(R.current));
|
|
2450
|
+
}, [R, v]), O(
|
|
2456
2451
|
() => (s({
|
|
2457
|
-
type:
|
|
2452
|
+
type: I.RegisterDroppable,
|
|
2458
2453
|
element: {
|
|
2459
2454
|
id: r,
|
|
2460
2455
|
key: o,
|
|
2461
2456
|
disabled: n,
|
|
2462
|
-
node:
|
|
2463
|
-
rect:
|
|
2464
|
-
data:
|
|
2457
|
+
node: R,
|
|
2458
|
+
rect: f,
|
|
2459
|
+
data: x
|
|
2465
2460
|
}
|
|
2466
2461
|
}), () => s({
|
|
2467
|
-
type:
|
|
2462
|
+
type: I.UnregisterDroppable,
|
|
2468
2463
|
key: o,
|
|
2469
2464
|
id: r
|
|
2470
2465
|
})),
|
|
2471
2466
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2472
2467
|
[r]
|
|
2473
|
-
),
|
|
2468
|
+
), O(() => {
|
|
2474
2469
|
n !== d.current.disabled && (s({
|
|
2475
|
-
type:
|
|
2470
|
+
type: I.SetDroppableDisabled,
|
|
2476
2471
|
id: r,
|
|
2477
2472
|
key: o,
|
|
2478
2473
|
disabled: n
|
|
2479
2474
|
}), d.current.disabled = n);
|
|
2480
2475
|
}, [r, o, n, s]), {
|
|
2481
2476
|
active: a,
|
|
2482
|
-
rect:
|
|
2483
|
-
isOver:
|
|
2484
|
-
node:
|
|
2477
|
+
rect: f,
|
|
2478
|
+
isOver: l?.id === r,
|
|
2479
|
+
node: R,
|
|
2485
2480
|
over: l,
|
|
2486
2481
|
setNodeRef: z
|
|
2487
2482
|
};
|
|
2488
2483
|
}
|
|
2489
|
-
function
|
|
2484
|
+
function Di(t) {
|
|
2490
2485
|
let {
|
|
2491
2486
|
animation: e,
|
|
2492
2487
|
children: n
|
|
2493
2488
|
} = t;
|
|
2494
|
-
const [r, i] =
|
|
2495
|
-
return !n && !r && s && i(s),
|
|
2489
|
+
const [r, i] = j(null), [o, a] = j(null), s = ie(n);
|
|
2490
|
+
return !n && !r && s && i(s), at(() => {
|
|
2496
2491
|
if (!o)
|
|
2497
2492
|
return;
|
|
2498
|
-
const l = r
|
|
2493
|
+
const l = r?.key, c = r?.props.id;
|
|
2499
2494
|
if (l == null || c == null) {
|
|
2500
2495
|
i(null);
|
|
2501
2496
|
return;
|
|
@@ -2503,30 +2498,30 @@ function Pi(t) {
|
|
|
2503
2498
|
Promise.resolve(e(c, o)).then(() => {
|
|
2504
2499
|
i(null);
|
|
2505
2500
|
});
|
|
2506
|
-
}, [e, r, o]),
|
|
2501
|
+
}, [e, r, o]), k.createElement(k.Fragment, null, n, r ? Zn(r, {
|
|
2507
2502
|
ref: a
|
|
2508
2503
|
}) : null);
|
|
2509
2504
|
}
|
|
2510
|
-
const
|
|
2505
|
+
const Si = {
|
|
2511
2506
|
x: 0,
|
|
2512
2507
|
y: 0,
|
|
2513
2508
|
scaleX: 1,
|
|
2514
2509
|
scaleY: 1
|
|
2515
2510
|
};
|
|
2516
|
-
function
|
|
2511
|
+
function Ri(t) {
|
|
2517
2512
|
let {
|
|
2518
2513
|
children: e
|
|
2519
2514
|
} = t;
|
|
2520
|
-
return
|
|
2521
|
-
value:
|
|
2522
|
-
},
|
|
2523
|
-
value:
|
|
2515
|
+
return k.createElement(Xt.Provider, {
|
|
2516
|
+
value: kn
|
|
2517
|
+
}, k.createElement(fe.Provider, {
|
|
2518
|
+
value: Si
|
|
2524
2519
|
}, e));
|
|
2525
2520
|
}
|
|
2526
|
-
const
|
|
2521
|
+
const Ci = {
|
|
2527
2522
|
position: "fixed",
|
|
2528
2523
|
touchAction: "none"
|
|
2529
|
-
},
|
|
2524
|
+
}, zi = (t) => Te(t) ? "transform 250ms ease" : void 0, Ei = /* @__PURE__ */ Qn((t, e) => {
|
|
2530
2525
|
let {
|
|
2531
2526
|
as: n,
|
|
2532
2527
|
activatorEvent: r,
|
|
@@ -2536,28 +2531,31 @@ const Ii = {
|
|
|
2536
2531
|
rect: s,
|
|
2537
2532
|
style: l,
|
|
2538
2533
|
transform: c,
|
|
2539
|
-
transition: d =
|
|
2534
|
+
transition: d = zi
|
|
2540
2535
|
} = t;
|
|
2541
2536
|
if (!s)
|
|
2542
2537
|
return null;
|
|
2543
|
-
const u = i ? c :
|
|
2538
|
+
const u = i ? c : {
|
|
2539
|
+
...c,
|
|
2544
2540
|
scaleX: 1,
|
|
2545
2541
|
scaleY: 1
|
|
2546
|
-
}
|
|
2542
|
+
}, f = {
|
|
2543
|
+
...Ci,
|
|
2547
2544
|
width: s.width,
|
|
2548
2545
|
height: s.height,
|
|
2549
2546
|
top: s.top,
|
|
2550
2547
|
left: s.left,
|
|
2551
|
-
transform:
|
|
2552
|
-
transformOrigin: i && r ?
|
|
2553
|
-
transition: typeof d == "function" ? d(r) : d
|
|
2554
|
-
|
|
2555
|
-
|
|
2548
|
+
transform: _t.Transform.toString(u),
|
|
2549
|
+
transformOrigin: i && r ? mr(r, s) : void 0,
|
|
2550
|
+
transition: typeof d == "function" ? d(r) : d,
|
|
2551
|
+
...l
|
|
2552
|
+
};
|
|
2553
|
+
return k.createElement(n, {
|
|
2556
2554
|
className: a,
|
|
2557
|
-
style:
|
|
2555
|
+
style: f,
|
|
2558
2556
|
ref: e
|
|
2559
2557
|
}, o);
|
|
2560
|
-
}),
|
|
2558
|
+
}), Mi = (t) => (e) => {
|
|
2561
2559
|
let {
|
|
2562
2560
|
active: n,
|
|
2563
2561
|
dragOverlay: r
|
|
@@ -2577,7 +2575,7 @@ const Ii = {
|
|
|
2577
2575
|
n.node.style.setProperty(l, c);
|
|
2578
2576
|
a != null && a.active && n.node.classList.remove(a.active);
|
|
2579
2577
|
};
|
|
2580
|
-
},
|
|
2578
|
+
}, Ni = (t) => {
|
|
2581
2579
|
let {
|
|
2582
2580
|
transform: {
|
|
2583
2581
|
initial: e,
|
|
@@ -2585,15 +2583,15 @@ const Ii = {
|
|
|
2585
2583
|
}
|
|
2586
2584
|
} = t;
|
|
2587
2585
|
return [{
|
|
2588
|
-
transform:
|
|
2586
|
+
transform: _t.Transform.toString(e)
|
|
2589
2587
|
}, {
|
|
2590
|
-
transform:
|
|
2588
|
+
transform: _t.Transform.toString(n)
|
|
2591
2589
|
}];
|
|
2592
|
-
},
|
|
2590
|
+
}, Ti = {
|
|
2593
2591
|
duration: 250,
|
|
2594
2592
|
easing: "ease",
|
|
2595
|
-
keyframes:
|
|
2596
|
-
sideEffects: /* @__PURE__ */
|
|
2593
|
+
keyframes: Ni,
|
|
2594
|
+
sideEffects: /* @__PURE__ */ Mi({
|
|
2597
2595
|
styles: {
|
|
2598
2596
|
active: {
|
|
2599
2597
|
opacity: "0"
|
|
@@ -2601,14 +2599,14 @@ const Ii = {
|
|
|
2601
2599
|
}
|
|
2602
2600
|
})
|
|
2603
2601
|
};
|
|
2604
|
-
function
|
|
2602
|
+
function Ai(t) {
|
|
2605
2603
|
let {
|
|
2606
2604
|
config: e,
|
|
2607
2605
|
draggableNodes: n,
|
|
2608
2606
|
droppableContainers: r,
|
|
2609
2607
|
measuringConfiguration: i
|
|
2610
2608
|
} = t;
|
|
2611
|
-
return
|
|
2609
|
+
return ue((o, a) => {
|
|
2612
2610
|
if (e === null)
|
|
2613
2611
|
return;
|
|
2614
2612
|
const s = n.get(o);
|
|
@@ -2617,16 +2615,16 @@ function $i(t) {
|
|
|
2617
2615
|
const l = s.node.current;
|
|
2618
2616
|
if (!l)
|
|
2619
2617
|
return;
|
|
2620
|
-
const c =
|
|
2618
|
+
const c = Ln(a);
|
|
2621
2619
|
if (!c)
|
|
2622
2620
|
return;
|
|
2623
2621
|
const {
|
|
2624
2622
|
transform: d
|
|
2625
|
-
} =
|
|
2623
|
+
} = U(a).getComputedStyle(a), u = Sn(d);
|
|
2626
2624
|
if (!u)
|
|
2627
2625
|
return;
|
|
2628
|
-
const
|
|
2629
|
-
return
|
|
2626
|
+
const f = typeof e == "function" ? e : Oi(e);
|
|
2627
|
+
return Tn(l, i.draggable.measure), f({
|
|
2630
2628
|
active: {
|
|
2631
2629
|
id: o,
|
|
2632
2630
|
data: s.data,
|
|
@@ -2644,23 +2642,23 @@ function $i(t) {
|
|
|
2644
2642
|
});
|
|
2645
2643
|
});
|
|
2646
2644
|
}
|
|
2647
|
-
function
|
|
2645
|
+
function Oi(t) {
|
|
2648
2646
|
const {
|
|
2649
2647
|
duration: e,
|
|
2650
2648
|
easing: n,
|
|
2651
2649
|
sideEffects: r,
|
|
2652
2650
|
keyframes: i
|
|
2653
|
-
} =
|
|
2651
|
+
} = {
|
|
2652
|
+
...Ti,
|
|
2653
|
+
...t
|
|
2654
|
+
};
|
|
2654
2655
|
return (o) => {
|
|
2655
|
-
let
|
|
2656
|
+
let {
|
|
2656
2657
|
active: a,
|
|
2657
2658
|
dragOverlay: s,
|
|
2658
|
-
transform: l
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
"dragOverlay",
|
|
2662
|
-
"transform"
|
|
2663
|
-
]);
|
|
2659
|
+
transform: l,
|
|
2660
|
+
...c
|
|
2661
|
+
} = o;
|
|
2664
2662
|
if (!e)
|
|
2665
2663
|
return;
|
|
2666
2664
|
const d = {
|
|
@@ -2669,42 +2667,45 @@ function Xi(t) {
|
|
|
2669
2667
|
}, u = {
|
|
2670
2668
|
scaleX: l.scaleX !== 1 ? a.rect.width * l.scaleX / s.rect.width : 1,
|
|
2671
2669
|
scaleY: l.scaleY !== 1 ? a.rect.height * l.scaleY / s.rect.height : 1
|
|
2672
|
-
},
|
|
2670
|
+
}, f = {
|
|
2673
2671
|
x: l.x - d.x,
|
|
2674
|
-
y: l.y - d.y
|
|
2675
|
-
|
|
2672
|
+
y: l.y - d.y,
|
|
2673
|
+
...u
|
|
2674
|
+
}, p = i({
|
|
2675
|
+
...c,
|
|
2676
2676
|
active: a,
|
|
2677
2677
|
dragOverlay: s,
|
|
2678
2678
|
transform: {
|
|
2679
2679
|
initial: l,
|
|
2680
|
-
final:
|
|
2680
|
+
final: f
|
|
2681
2681
|
}
|
|
2682
|
-
})
|
|
2683
|
-
if (JSON.stringify(b) === JSON.stringify(
|
|
2682
|
+
}), [b] = p, h = p[p.length - 1];
|
|
2683
|
+
if (JSON.stringify(b) === JSON.stringify(h))
|
|
2684
2684
|
return;
|
|
2685
|
-
const g = r
|
|
2685
|
+
const g = r?.({
|
|
2686
2686
|
active: a,
|
|
2687
|
-
dragOverlay: s
|
|
2688
|
-
|
|
2687
|
+
dragOverlay: s,
|
|
2688
|
+
...c
|
|
2689
|
+
}), m = s.node.animate(p, {
|
|
2689
2690
|
duration: e,
|
|
2690
2691
|
easing: n,
|
|
2691
2692
|
fill: "forwards"
|
|
2692
2693
|
});
|
|
2693
|
-
return new Promise((
|
|
2694
|
-
|
|
2695
|
-
g
|
|
2694
|
+
return new Promise((w) => {
|
|
2695
|
+
m.onfinish = () => {
|
|
2696
|
+
g?.(), w();
|
|
2696
2697
|
};
|
|
2697
2698
|
});
|
|
2698
2699
|
};
|
|
2699
2700
|
}
|
|
2700
|
-
let
|
|
2701
|
-
function
|
|
2702
|
-
return
|
|
2701
|
+
let cn = 0;
|
|
2702
|
+
function Li(t) {
|
|
2703
|
+
return C(() => {
|
|
2703
2704
|
if (t != null)
|
|
2704
|
-
return
|
|
2705
|
+
return cn++, cn;
|
|
2705
2706
|
}, [t]);
|
|
2706
2707
|
}
|
|
2707
|
-
const
|
|
2708
|
+
const ki = /* @__PURE__ */ k.memo((t) => {
|
|
2708
2709
|
let {
|
|
2709
2710
|
adjustScale: e = !1,
|
|
2710
2711
|
children: n,
|
|
@@ -2719,56 +2720,57 @@ const Ki = /* @__PURE__ */ B.memo((t) => {
|
|
|
2719
2720
|
const {
|
|
2720
2721
|
activatorEvent: d,
|
|
2721
2722
|
active: u,
|
|
2722
|
-
activeNodeRect:
|
|
2723
|
+
activeNodeRect: f,
|
|
2723
2724
|
containerNodeRect: p,
|
|
2724
2725
|
draggableNodes: b,
|
|
2725
|
-
droppableContainers:
|
|
2726
|
+
droppableContainers: h,
|
|
2726
2727
|
dragOverlay: g,
|
|
2727
|
-
over:
|
|
2728
|
-
measuringConfiguration:
|
|
2728
|
+
over: m,
|
|
2729
|
+
measuringConfiguration: w,
|
|
2729
2730
|
scrollableAncestors: v,
|
|
2730
|
-
scrollableAncestorRects:
|
|
2731
|
-
windowRect:
|
|
2732
|
-
} =
|
|
2731
|
+
scrollableAncestorRects: y,
|
|
2732
|
+
windowRect: R
|
|
2733
|
+
} = mi(), z = vt(fe), x = Li(u?.id), S = Bn(a, {
|
|
2733
2734
|
activatorEvent: d,
|
|
2734
2735
|
active: u,
|
|
2735
|
-
activeNodeRect:
|
|
2736
|
+
activeNodeRect: f,
|
|
2736
2737
|
containerNodeRect: p,
|
|
2737
2738
|
draggingNodeRect: g.rect,
|
|
2738
|
-
over:
|
|
2739
|
+
over: m,
|
|
2739
2740
|
overlayNodeRect: g.rect,
|
|
2740
2741
|
scrollableAncestors: v,
|
|
2741
|
-
scrollableAncestorRects:
|
|
2742
|
+
scrollableAncestorRects: y,
|
|
2742
2743
|
transform: z,
|
|
2743
|
-
windowRect:
|
|
2744
|
-
}),
|
|
2744
|
+
windowRect: R
|
|
2745
|
+
}), E = Be(f), L = Ai({
|
|
2745
2746
|
config: r,
|
|
2746
2747
|
draggableNodes: b,
|
|
2747
|
-
droppableContainers:
|
|
2748
|
-
measuringConfiguration:
|
|
2749
|
-
}),
|
|
2750
|
-
return
|
|
2751
|
-
animation:
|
|
2752
|
-
}, u &&
|
|
2753
|
-
key:
|
|
2748
|
+
droppableContainers: h,
|
|
2749
|
+
measuringConfiguration: w
|
|
2750
|
+
}), N = E ? g.setRef : void 0;
|
|
2751
|
+
return k.createElement(Ri, null, k.createElement(Di, {
|
|
2752
|
+
animation: L
|
|
2753
|
+
}, u && x ? k.createElement(Ei, {
|
|
2754
|
+
key: x,
|
|
2754
2755
|
id: u.id,
|
|
2755
|
-
ref:
|
|
2756
|
+
ref: N,
|
|
2756
2757
|
as: s,
|
|
2757
2758
|
activatorEvent: d,
|
|
2758
2759
|
adjustScale: e,
|
|
2759
2760
|
className: l,
|
|
2760
2761
|
transition: o,
|
|
2761
|
-
rect:
|
|
2762
|
-
style:
|
|
2763
|
-
zIndex: c
|
|
2764
|
-
|
|
2765
|
-
|
|
2762
|
+
rect: E,
|
|
2763
|
+
style: {
|
|
2764
|
+
zIndex: c,
|
|
2765
|
+
...i
|
|
2766
|
+
},
|
|
2767
|
+
transform: S
|
|
2766
2768
|
}, n) : null));
|
|
2767
|
-
}),
|
|
2768
|
-
const t =
|
|
2769
|
+
}), Wn = Mt(void 0), Pi = ({ children: t, value: e }) => /* @__PURE__ */ D(Wn.Provider, { value: e, children: t }), At = () => {
|
|
2770
|
+
const t = vt(Wn);
|
|
2769
2771
|
if (t === void 0)
|
|
2770
2772
|
throw new Error("useScheduler must be used within a SchedulerProvider");
|
|
2771
|
-
const { hourHeight: e, timeSnap: n } = t, r =
|
|
2773
|
+
const { hourHeight: e, timeSnap: n } = t, r = C(() => ({
|
|
2772
2774
|
gridSize: e / 60 * n,
|
|
2773
2775
|
pxToMinutes: (i) => Math.round(i / e * 60),
|
|
2774
2776
|
snapToTime: (i) => {
|
|
@@ -2783,8 +2785,11 @@ const Ki = /* @__PURE__ */ B.memo((t) => {
|
|
|
2783
2785
|
},
|
|
2784
2786
|
minInPx: (i) => i * (e / 60)
|
|
2785
2787
|
}), [e, n]);
|
|
2786
|
-
return
|
|
2787
|
-
|
|
2788
|
+
return {
|
|
2789
|
+
...t,
|
|
2790
|
+
...r
|
|
2791
|
+
};
|
|
2792
|
+
}, Bi = (t, e, n) => {
|
|
2788
2793
|
const r = new Date(t), i = r.getMinutes();
|
|
2789
2794
|
let o;
|
|
2790
2795
|
switch (n) {
|
|
@@ -2798,109 +2803,109 @@ const Ki = /* @__PURE__ */ B.memo((t) => {
|
|
|
2798
2803
|
o = Math.round(i / e) * e;
|
|
2799
2804
|
}
|
|
2800
2805
|
return r.setMinutes(o, 0, 0), r;
|
|
2801
|
-
},
|
|
2802
|
-
function
|
|
2806
|
+
}, In = "data-day-column";
|
|
2807
|
+
function Wi(t, e, n) {
|
|
2803
2808
|
const r = t.target;
|
|
2804
2809
|
if (!r) throw new Error("Target not found");
|
|
2805
|
-
const i = r.closest(`[${
|
|
2810
|
+
const i = r.closest(`[${In}]`);
|
|
2806
2811
|
if (!i) throw new Error("Day column not found");
|
|
2807
2812
|
const o = i.getBoundingClientRect();
|
|
2808
|
-
return
|
|
2813
|
+
return Ii(t.clientY, o, e, n);
|
|
2809
2814
|
}
|
|
2810
|
-
function
|
|
2815
|
+
function Ii(t, e, n, r) {
|
|
2811
2816
|
const o = (t - e.top) / e.height;
|
|
2812
|
-
return
|
|
2817
|
+
return Hi(o, n, r);
|
|
2813
2818
|
}
|
|
2814
|
-
function
|
|
2819
|
+
function Hi(t, e, n) {
|
|
2815
2820
|
const r = Math.floor(t * 1440), i = Math.floor(r / 60), o = r % 60, a = new Date(e);
|
|
2816
|
-
return a.setHours(i, o, 0, 0),
|
|
2821
|
+
return a.setHours(i, o, 0, 0), Bi(a, n);
|
|
2817
2822
|
}
|
|
2818
|
-
function
|
|
2823
|
+
function un() {
|
|
2819
2824
|
const t = /* @__PURE__ */ new Date();
|
|
2820
2825
|
return `${(t.getHours() * 60 + t.getMinutes()) / 1440 * 100}%`;
|
|
2821
2826
|
}
|
|
2822
|
-
function
|
|
2827
|
+
function _i(t) {
|
|
2823
2828
|
const e = [];
|
|
2824
2829
|
t.sort((n, r) => n.startDate.getTime() - r.startDate.getTime());
|
|
2825
2830
|
for (const n of t) {
|
|
2826
|
-
const r = e.find((i) => i.some((o) =>
|
|
2831
|
+
const r = e.find((i) => i.some((o) => Fi(o, n)));
|
|
2827
2832
|
r ? r.push(n) : e.push([n]);
|
|
2828
2833
|
}
|
|
2829
2834
|
return e;
|
|
2830
2835
|
}
|
|
2831
|
-
function
|
|
2836
|
+
function Fi(t, e) {
|
|
2832
2837
|
return t.startDate < e.endDate && t.endDate > e.startDate;
|
|
2833
2838
|
}
|
|
2834
|
-
function
|
|
2835
|
-
const n = /* @__PURE__ */ new Map(), r =
|
|
2839
|
+
function ji(t, e) {
|
|
2840
|
+
const n = /* @__PURE__ */ new Map(), r = _i(t);
|
|
2836
2841
|
for (const i of r)
|
|
2837
2842
|
for (const [o, a] of i.entries())
|
|
2838
2843
|
n.set(a.id, {
|
|
2839
|
-
top:
|
|
2844
|
+
top: Xi(a, e) + "px",
|
|
2840
2845
|
left: `${100 / i.length * o}%`,
|
|
2841
2846
|
width: `${100 / i.length * (o + 1) - 100 / i.length * o}%`
|
|
2842
2847
|
});
|
|
2843
2848
|
return n;
|
|
2844
2849
|
}
|
|
2845
|
-
function
|
|
2850
|
+
function Yi(t) {
|
|
2846
2851
|
return (t.endDate.getTime() - t.startDate.getTime()) / 1e3 / 60;
|
|
2847
2852
|
}
|
|
2848
|
-
function
|
|
2853
|
+
function Hn(t) {
|
|
2849
2854
|
return t / 60;
|
|
2850
2855
|
}
|
|
2851
|
-
function
|
|
2852
|
-
return
|
|
2856
|
+
function $i(t, e) {
|
|
2857
|
+
return Yi(t) * Hn(e);
|
|
2853
2858
|
}
|
|
2854
|
-
function
|
|
2855
|
-
return
|
|
2859
|
+
function Xi(t, e) {
|
|
2860
|
+
return Ui(t.startDate) * Hn(e);
|
|
2856
2861
|
}
|
|
2857
|
-
function
|
|
2862
|
+
function Ui(t) {
|
|
2858
2863
|
return t.getHours() * 60 + t.getMinutes();
|
|
2859
2864
|
}
|
|
2860
|
-
var
|
|
2861
|
-
return
|
|
2865
|
+
var B = function() {
|
|
2866
|
+
return B = Object.assign || function(t) {
|
|
2862
2867
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
2863
2868
|
e = arguments[n];
|
|
2864
2869
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
2865
2870
|
}
|
|
2866
2871
|
return t;
|
|
2867
|
-
},
|
|
2868
|
-
},
|
|
2872
|
+
}, B.apply(this, arguments);
|
|
2873
|
+
}, dn = {
|
|
2869
2874
|
width: "100%",
|
|
2870
2875
|
height: "10px",
|
|
2871
2876
|
top: "0px",
|
|
2872
2877
|
left: "0px",
|
|
2873
2878
|
cursor: "row-resize"
|
|
2874
|
-
},
|
|
2879
|
+
}, hn = {
|
|
2875
2880
|
width: "10px",
|
|
2876
2881
|
height: "100%",
|
|
2877
2882
|
top: "0px",
|
|
2878
2883
|
left: "0px",
|
|
2879
2884
|
cursor: "col-resize"
|
|
2880
|
-
},
|
|
2885
|
+
}, Qt = {
|
|
2881
2886
|
width: "20px",
|
|
2882
2887
|
height: "20px",
|
|
2883
2888
|
position: "absolute",
|
|
2884
2889
|
zIndex: 1
|
|
2885
|
-
},
|
|
2886
|
-
top:
|
|
2887
|
-
right:
|
|
2888
|
-
bottom:
|
|
2889
|
-
left:
|
|
2890
|
-
topRight:
|
|
2891
|
-
bottomRight:
|
|
2892
|
-
bottomLeft:
|
|
2893
|
-
topLeft:
|
|
2894
|
-
},
|
|
2895
|
-
var e = t.onResizeStart, n = t.direction, r = t.children, i = t.replaceStyles, o = t.className, a =
|
|
2890
|
+
}, Ki = {
|
|
2891
|
+
top: B(B({}, dn), { top: "-5px" }),
|
|
2892
|
+
right: B(B({}, hn), { left: void 0, right: "-5px" }),
|
|
2893
|
+
bottom: B(B({}, dn), { top: void 0, bottom: "-5px" }),
|
|
2894
|
+
left: B(B({}, hn), { left: "-5px" }),
|
|
2895
|
+
topRight: B(B({}, Qt), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
|
|
2896
|
+
bottomRight: B(B({}, Qt), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
|
|
2897
|
+
bottomLeft: B(B({}, Qt), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
|
|
2898
|
+
topLeft: B(B({}, Qt), { left: "-10px", top: "-10px", cursor: "nw-resize" })
|
|
2899
|
+
}, Gi = mn(function(t) {
|
|
2900
|
+
var e = t.onResizeStart, n = t.direction, r = t.children, i = t.replaceStyles, o = t.className, a = A(function(c) {
|
|
2896
2901
|
e(c, n);
|
|
2897
|
-
}, [e, n]), s =
|
|
2902
|
+
}, [e, n]), s = A(function(c) {
|
|
2898
2903
|
e(c, n);
|
|
2899
|
-
}, [e, n]), l =
|
|
2900
|
-
return
|
|
2904
|
+
}, [e, n]), l = C(function() {
|
|
2905
|
+
return B(B({ position: "absolute", userSelect: "none" }, Ki[n]), i ?? {});
|
|
2901
2906
|
}, [i, n]);
|
|
2902
2907
|
return D("div", { className: o || void 0, style: l, onMouseDown: a, onTouchStart: s, children: r });
|
|
2903
|
-
}),
|
|
2908
|
+
}), Vi = /* @__PURE__ */ function() {
|
|
2904
2909
|
var t = function(e, n) {
|
|
2905
2910
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
2906
2911
|
r.__proto__ = i;
|
|
@@ -2917,37 +2922,37 @@ var I = function() {
|
|
|
2917
2922
|
}
|
|
2918
2923
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
2919
2924
|
};
|
|
2920
|
-
}(),
|
|
2921
|
-
return
|
|
2925
|
+
}(), it = function() {
|
|
2926
|
+
return it = Object.assign || function(t) {
|
|
2922
2927
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
2923
2928
|
e = arguments[n];
|
|
2924
2929
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
2925
2930
|
}
|
|
2926
2931
|
return t;
|
|
2927
|
-
},
|
|
2928
|
-
},
|
|
2932
|
+
}, it.apply(this, arguments);
|
|
2933
|
+
}, qi = {
|
|
2929
2934
|
width: "auto",
|
|
2930
2935
|
height: "auto"
|
|
2931
|
-
},
|
|
2936
|
+
}, Zt = function(t, e, n) {
|
|
2932
2937
|
return Math.max(Math.min(t, n), e);
|
|
2933
|
-
},
|
|
2938
|
+
}, fn = function(t, e, n) {
|
|
2934
2939
|
var r = Math.round(t / e);
|
|
2935
2940
|
return r * e + n * (r - 1);
|
|
2936
|
-
},
|
|
2941
|
+
}, zt = function(t, e) {
|
|
2937
2942
|
return new RegExp(t, "i").test(e);
|
|
2938
|
-
},
|
|
2943
|
+
}, te = function(t) {
|
|
2939
2944
|
return !!(t.touches && t.touches.length);
|
|
2940
|
-
},
|
|
2945
|
+
}, Ji = function(t) {
|
|
2941
2946
|
return !!((t.clientX || t.clientX === 0) && (t.clientY || t.clientY === 0));
|
|
2942
|
-
},
|
|
2947
|
+
}, pn = function(t, e, n) {
|
|
2943
2948
|
n === void 0 && (n = 0);
|
|
2944
2949
|
var r = e.reduce(function(o, a, s) {
|
|
2945
2950
|
return Math.abs(a - t) < Math.abs(e[o] - t) ? s : o;
|
|
2946
2951
|
}, 0), i = Math.abs(e[r] - t);
|
|
2947
2952
|
return n === 0 || i < n ? e[r] : t;
|
|
2948
|
-
},
|
|
2953
|
+
}, Se = function(t) {
|
|
2949
2954
|
return t = t.toString(), t === "auto" || t.endsWith("px") || t.endsWith("%") || t.endsWith("vh") || t.endsWith("vw") || t.endsWith("vmax") || t.endsWith("vmin") ? t : "".concat(t, "px");
|
|
2950
|
-
},
|
|
2955
|
+
}, ee = function(t, e, n, r) {
|
|
2951
2956
|
if (t && typeof t == "string") {
|
|
2952
2957
|
if (t.endsWith("px"))
|
|
2953
2958
|
return Number(t.replace("px", ""));
|
|
@@ -2965,16 +2970,16 @@ var I = function() {
|
|
|
2965
2970
|
}
|
|
2966
2971
|
}
|
|
2967
2972
|
return t;
|
|
2968
|
-
},
|
|
2969
|
-
return r =
|
|
2970
|
-
maxWidth: typeof r
|
|
2971
|
-
maxHeight: typeof i
|
|
2972
|
-
minWidth: typeof o
|
|
2973
|
-
minHeight: typeof a
|
|
2973
|
+
}, Qi = function(t, e, n, r, i, o, a) {
|
|
2974
|
+
return r = ee(r, t.width, e, n), i = ee(i, t.height, e, n), o = ee(o, t.width, e, n), a = ee(a, t.height, e, n), {
|
|
2975
|
+
maxWidth: typeof r > "u" ? void 0 : Number(r),
|
|
2976
|
+
maxHeight: typeof i > "u" ? void 0 : Number(i),
|
|
2977
|
+
minWidth: typeof o > "u" ? void 0 : Number(o),
|
|
2978
|
+
minHeight: typeof a > "u" ? void 0 : Number(a)
|
|
2974
2979
|
};
|
|
2975
|
-
},
|
|
2980
|
+
}, Zi = function(t) {
|
|
2976
2981
|
return Array.isArray(t) ? t : [t, t];
|
|
2977
|
-
},
|
|
2982
|
+
}, to = [
|
|
2978
2983
|
"as",
|
|
2979
2984
|
"ref",
|
|
2980
2985
|
"style",
|
|
@@ -3006,10 +3011,10 @@ var I = function() {
|
|
|
3006
3011
|
"scale",
|
|
3007
3012
|
"resizeRatio",
|
|
3008
3013
|
"snapGap"
|
|
3009
|
-
],
|
|
3014
|
+
], gn = "__resizable_base__", eo = (
|
|
3010
3015
|
/** @class */
|
|
3011
3016
|
function(t) {
|
|
3012
|
-
|
|
3017
|
+
Vi(e, t);
|
|
3013
3018
|
function e(n) {
|
|
3014
3019
|
var r, i, o, a, s = t.call(this, n) || this;
|
|
3015
3020
|
return s.ratio = 1, s.resizable = null, s.parentLeft = 0, s.parentTop = 0, s.resizableLeft = 0, s.resizableRight = 0, s.resizableTop = 0, s.resizableBottom = 0, s.targetLeft = 0, s.targetTop = 0, s.delta = {
|
|
@@ -3022,7 +3027,7 @@ var I = function() {
|
|
|
3022
3027
|
if (!l)
|
|
3023
3028
|
return null;
|
|
3024
3029
|
var c = s.window.document.createElement("div");
|
|
3025
|
-
return c.style.width = "100%", c.style.height = "100%", c.style.position = "absolute", c.style.transform = "scale(0, 0)", c.style.left = "0", c.style.flex = "0 0 100%", c.classList ? c.classList.add(
|
|
3030
|
+
return c.style.width = "100%", c.style.height = "100%", c.style.position = "absolute", c.style.transform = "scale(0, 0)", c.style.left = "0", c.style.flex = "0 0 100%", c.classList ? c.classList.add(gn) : c.className += gn, l.appendChild(c), c;
|
|
3026
3031
|
}, s.removeBase = function(l) {
|
|
3027
3032
|
var c = s.parentNode;
|
|
3028
3033
|
c && c.removeChild(l);
|
|
@@ -3067,7 +3072,7 @@ var I = function() {
|
|
|
3067
3072
|
configurable: !0
|
|
3068
3073
|
}), Object.defineProperty(e.prototype, "propsSize", {
|
|
3069
3074
|
get: function() {
|
|
3070
|
-
return this.props.size || this.props.defaultSize ||
|
|
3075
|
+
return this.props.size || this.props.defaultSize || qi;
|
|
3071
3076
|
},
|
|
3072
3077
|
enumerable: !1,
|
|
3073
3078
|
configurable: !0
|
|
@@ -3086,7 +3091,7 @@ var I = function() {
|
|
|
3086
3091
|
get: function() {
|
|
3087
3092
|
var n = this, r = this.props.size, i = function(s) {
|
|
3088
3093
|
var l;
|
|
3089
|
-
if (typeof n.state[s]
|
|
3094
|
+
if (typeof n.state[s] > "u" || n.state[s] === "auto")
|
|
3090
3095
|
return "auto";
|
|
3091
3096
|
if (n.propsSize && n.propsSize[s] && (!((l = n.propsSize[s]) === null || l === void 0) && l.toString().endsWith("%"))) {
|
|
3092
3097
|
if (n.state[s].toString().endsWith("%"))
|
|
@@ -3094,8 +3099,8 @@ var I = function() {
|
|
|
3094
3099
|
var c = n.getParentSize(), d = Number(n.state[s].toString().replace("px", "")), u = d / c[s] * 100;
|
|
3095
3100
|
return "".concat(u, "%");
|
|
3096
3101
|
}
|
|
3097
|
-
return
|
|
3098
|
-
}, o = r && typeof r.width
|
|
3102
|
+
return Se(n.state[s]);
|
|
3103
|
+
}, o = r && typeof r.width < "u" && !this.state.isResizing ? Se(r.width) : i("width"), a = r && typeof r.height < "u" && !this.state.isResizing ? Se(r.height) : i("height");
|
|
3099
3104
|
return { width: o, height: a };
|
|
3100
3105
|
},
|
|
3101
3106
|
enumerable: !1,
|
|
@@ -3133,24 +3138,24 @@ var I = function() {
|
|
|
3133
3138
|
this.window && this.unbindEvents();
|
|
3134
3139
|
}, e.prototype.createSizeForCssProperty = function(n, r) {
|
|
3135
3140
|
var i = this.propsSize && this.propsSize[r];
|
|
3136
|
-
return this.state[r] === "auto" && this.state.original[r] === n && (typeof i
|
|
3141
|
+
return this.state[r] === "auto" && this.state.original[r] === n && (typeof i > "u" || i === "auto") ? "auto" : n;
|
|
3137
3142
|
}, e.prototype.calculateNewMaxFromBoundary = function(n, r) {
|
|
3138
|
-
var i = this.props.boundsByDirection, o = this.state.direction, a = i &&
|
|
3143
|
+
var i = this.props.boundsByDirection, o = this.state.direction, a = i && zt("left", o), s = i && zt("top", o), l, c;
|
|
3139
3144
|
if (this.props.bounds === "parent") {
|
|
3140
3145
|
var d = this.parentNode;
|
|
3141
3146
|
d && (l = a ? this.resizableRight - this.parentLeft : d.offsetWidth + (this.parentLeft - this.resizableLeft), c = s ? this.resizableBottom - this.parentTop : d.offsetHeight + (this.parentTop - this.resizableTop));
|
|
3142
3147
|
} else this.props.bounds === "window" ? this.window && (l = a ? this.resizableRight : this.window.innerWidth - this.resizableLeft, c = s ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (l = a ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), c = s ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
|
|
3143
3148
|
return l && Number.isFinite(l) && (n = n && n < l ? n : l), c && Number.isFinite(c) && (r = r && r < c ? r : c), { maxWidth: n, maxHeight: r };
|
|
3144
3149
|
}, e.prototype.calculateNewSizeFromDirection = function(n, r) {
|
|
3145
|
-
var i = this.props.scale || 1, o =
|
|
3146
|
-
return
|
|
3150
|
+
var i = this.props.scale || 1, o = Zi(this.props.resizeRatio || 1), a = o[0], s = o[1], l = this.state, c = l.direction, d = l.original, u = this.props, f = u.lockAspectRatio, p = u.lockAspectRatioExtraHeight, b = u.lockAspectRatioExtraWidth, h = d.width, g = d.height, m = p || 0, w = b || 0;
|
|
3151
|
+
return zt("right", c) && (h = d.width + (n - d.x) * a / i, f && (g = (h - w) / this.ratio + m)), zt("left", c) && (h = d.width - (n - d.x) * a / i, f && (g = (h - w) / this.ratio + m)), zt("bottom", c) && (g = d.height + (r - d.y) * s / i, f && (h = (g - m) * this.ratio + w)), zt("top", c) && (g = d.height - (r - d.y) * s / i, f && (h = (g - m) * this.ratio + w)), { newWidth: h, newHeight: g };
|
|
3147
3152
|
}, e.prototype.calculateNewSizeFromAspectRatio = function(n, r, i, o) {
|
|
3148
|
-
var a = this.props, s = a.lockAspectRatio, l = a.lockAspectRatioExtraHeight, c = a.lockAspectRatioExtraWidth, d = typeof o.width
|
|
3153
|
+
var a = this.props, s = a.lockAspectRatio, l = a.lockAspectRatioExtraHeight, c = a.lockAspectRatioExtraWidth, d = typeof o.width > "u" ? 10 : o.width, u = typeof i.width > "u" || i.width < 0 ? n : i.width, f = typeof o.height > "u" ? 10 : o.height, p = typeof i.height > "u" || i.height < 0 ? r : i.height, b = l || 0, h = c || 0;
|
|
3149
3154
|
if (s) {
|
|
3150
|
-
var g = (
|
|
3151
|
-
n =
|
|
3155
|
+
var g = (f - b) * this.ratio + h, m = (p - b) * this.ratio + h, w = (d - h) / this.ratio + b, v = (u - h) / this.ratio + b, y = Math.max(d, g), R = Math.min(u, m), z = Math.max(f, w), x = Math.min(p, v);
|
|
3156
|
+
n = Zt(n, y, R), r = Zt(r, z, x);
|
|
3152
3157
|
} else
|
|
3153
|
-
n =
|
|
3158
|
+
n = Zt(n, d, u), r = Zt(r, f, p);
|
|
3154
3159
|
return { newWidth: n, newHeight: r };
|
|
3155
3160
|
}, e.prototype.setBoundingClientRect = function() {
|
|
3156
3161
|
var n = 1 / (this.props.scale || 1);
|
|
@@ -3172,12 +3177,12 @@ var I = function() {
|
|
|
3172
3177
|
}, e.prototype.onResizeStart = function(n, r) {
|
|
3173
3178
|
if (!(!this.resizable || !this.window)) {
|
|
3174
3179
|
var i = 0, o = 0;
|
|
3175
|
-
if (n.nativeEvent &&
|
|
3180
|
+
if (n.nativeEvent && Ji(n.nativeEvent) ? (i = n.nativeEvent.clientX, o = n.nativeEvent.clientY) : n.nativeEvent && te(n.nativeEvent) && (i = n.nativeEvent.touches[0].clientX, o = n.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
|
|
3176
3181
|
var a = this.props.onResizeStart(n, r, this.resizable);
|
|
3177
3182
|
if (a === !1)
|
|
3178
3183
|
return;
|
|
3179
3184
|
}
|
|
3180
|
-
this.props.size && (typeof this.props.size.height
|
|
3185
|
+
this.props.size && (typeof this.props.size.height < "u" && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), typeof this.props.size.width < "u" && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height;
|
|
3181
3186
|
var s, l = this.window.getComputedStyle(this.resizable);
|
|
3182
3187
|
if (l.flexBasis !== "auto") {
|
|
3183
3188
|
var c = this.parentNode;
|
|
@@ -3195,7 +3200,7 @@ var I = function() {
|
|
|
3195
3200
|
height: this.size.height
|
|
3196
3201
|
},
|
|
3197
3202
|
isResizing: !0,
|
|
3198
|
-
backgroundStyle:
|
|
3203
|
+
backgroundStyle: it(it({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(n.target).cursor || "auto" }),
|
|
3199
3204
|
direction: r,
|
|
3200
3205
|
flexBasis: s
|
|
3201
3206
|
};
|
|
@@ -3204,63 +3209,63 @@ var I = function() {
|
|
|
3204
3209
|
}, e.prototype.onMouseMove = function(n) {
|
|
3205
3210
|
var r = this;
|
|
3206
3211
|
if (!(!this.state.isResizing || !this.resizable || !this.window)) {
|
|
3207
|
-
if (this.window.TouchEvent &&
|
|
3212
|
+
if (this.window.TouchEvent && te(n))
|
|
3208
3213
|
try {
|
|
3209
3214
|
n.preventDefault(), n.stopPropagation();
|
|
3210
|
-
} catch
|
|
3215
|
+
} catch {
|
|
3211
3216
|
}
|
|
3212
|
-
var i = this.props, o = i.maxWidth, a = i.maxHeight, s = i.minWidth, l = i.minHeight, c =
|
|
3213
|
-
o =
|
|
3214
|
-
var
|
|
3215
|
-
this.props.snap && this.props.snap.x && (
|
|
3216
|
-
var z = this.calculateNewSizeFromAspectRatio(
|
|
3217
|
-
if (
|
|
3218
|
-
var
|
|
3219
|
-
|
|
3217
|
+
var i = this.props, o = i.maxWidth, a = i.maxHeight, s = i.minWidth, l = i.minHeight, c = te(n) ? n.touches[0].clientX : n.clientX, d = te(n) ? n.touches[0].clientY : n.clientY, u = this.state, f = u.direction, p = u.original, b = u.width, h = u.height, g = this.getParentSize(), m = Qi(g, this.window.innerWidth, this.window.innerHeight, o, a, s, l);
|
|
3218
|
+
o = m.maxWidth, a = m.maxHeight, s = m.minWidth, l = m.minHeight;
|
|
3219
|
+
var w = this.calculateNewSizeFromDirection(c, d), v = w.newHeight, y = w.newWidth, R = this.calculateNewMaxFromBoundary(o, a);
|
|
3220
|
+
this.props.snap && this.props.snap.x && (y = pn(y, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (v = pn(v, this.props.snap.y, this.props.snapGap));
|
|
3221
|
+
var z = this.calculateNewSizeFromAspectRatio(y, v, { width: R.maxWidth, height: R.maxHeight }, { width: s, height: l });
|
|
3222
|
+
if (y = z.newWidth, v = z.newHeight, this.props.grid) {
|
|
3223
|
+
var x = fn(y, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), S = fn(v, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), E = this.props.snapGap || 0, L = E === 0 || Math.abs(x - y) <= E ? x : y, N = E === 0 || Math.abs(S - v) <= E ? S : v;
|
|
3224
|
+
y = L, v = N;
|
|
3220
3225
|
}
|
|
3221
|
-
var
|
|
3222
|
-
width:
|
|
3226
|
+
var H = {
|
|
3227
|
+
width: y - p.width,
|
|
3223
3228
|
height: v - p.height
|
|
3224
3229
|
};
|
|
3225
|
-
if (this.delta =
|
|
3230
|
+
if (this.delta = H, b && typeof b == "string") {
|
|
3226
3231
|
if (b.endsWith("%")) {
|
|
3227
|
-
var
|
|
3228
|
-
|
|
3232
|
+
var P = y / g.width * 100;
|
|
3233
|
+
y = "".concat(P, "%");
|
|
3229
3234
|
} else if (b.endsWith("vw")) {
|
|
3230
|
-
var
|
|
3231
|
-
|
|
3235
|
+
var W = y / this.window.innerWidth * 100;
|
|
3236
|
+
y = "".concat(W, "vw");
|
|
3232
3237
|
} else if (b.endsWith("vh")) {
|
|
3233
|
-
var
|
|
3234
|
-
|
|
3238
|
+
var q = y / this.window.innerHeight * 100;
|
|
3239
|
+
y = "".concat(q, "vh");
|
|
3235
3240
|
}
|
|
3236
3241
|
}
|
|
3237
|
-
if (
|
|
3238
|
-
if (
|
|
3239
|
-
var
|
|
3240
|
-
v = "".concat(
|
|
3241
|
-
} else if (
|
|
3242
|
-
var
|
|
3243
|
-
v = "".concat(
|
|
3244
|
-
} else if (
|
|
3245
|
-
var
|
|
3246
|
-
v = "".concat(
|
|
3242
|
+
if (h && typeof h == "string") {
|
|
3243
|
+
if (h.endsWith("%")) {
|
|
3244
|
+
var P = v / g.height * 100;
|
|
3245
|
+
v = "".concat(P, "%");
|
|
3246
|
+
} else if (h.endsWith("vw")) {
|
|
3247
|
+
var W = v / this.window.innerWidth * 100;
|
|
3248
|
+
v = "".concat(W, "vw");
|
|
3249
|
+
} else if (h.endsWith("vh")) {
|
|
3250
|
+
var q = v / this.window.innerHeight * 100;
|
|
3251
|
+
v = "".concat(q, "vh");
|
|
3247
3252
|
}
|
|
3248
3253
|
}
|
|
3249
|
-
var
|
|
3250
|
-
width: this.createSizeForCssProperty(
|
|
3254
|
+
var $ = {
|
|
3255
|
+
width: this.createSizeForCssProperty(y, "width"),
|
|
3251
3256
|
height: this.createSizeForCssProperty(v, "height")
|
|
3252
3257
|
};
|
|
3253
|
-
this.flexDir === "row" ?
|
|
3254
|
-
var
|
|
3255
|
-
|
|
3256
|
-
r.setState(
|
|
3257
|
-
}), this.props.onResize &&
|
|
3258
|
+
this.flexDir === "row" ? $.flexBasis = $.width : this.flexDir === "column" && ($.flexBasis = $.height);
|
|
3259
|
+
var X = this.state.width !== $.width, Ut = this.state.height !== $.height, ot = this.state.flexBasis !== $.flexBasis, yt = X || Ut || ot;
|
|
3260
|
+
yt && nr(function() {
|
|
3261
|
+
r.setState($);
|
|
3262
|
+
}), this.props.onResize && yt && this.props.onResize(n, f, this.resizable, H);
|
|
3258
3263
|
}
|
|
3259
3264
|
}, e.prototype.onMouseUp = function(n) {
|
|
3260
3265
|
var r, i, o = this.state, a = o.isResizing, s = o.direction;
|
|
3261
3266
|
o.original, !(!a || !this.resizable) && (this.props.onResizeStop && this.props.onResizeStop(n, s, this.resizable, this.delta), this.props.size && this.setState({ width: (r = this.props.size.width) !== null && r !== void 0 ? r : "auto", height: (i = this.props.size.height) !== null && i !== void 0 ? i : "auto" }), this.unbindEvents(), this.setState({
|
|
3262
3267
|
isResizing: !1,
|
|
3263
|
-
backgroundStyle:
|
|
3268
|
+
backgroundStyle: it(it({}, this.state.backgroundStyle), { cursor: "auto" })
|
|
3264
3269
|
}));
|
|
3265
3270
|
}, e.prototype.updateSize = function(n) {
|
|
3266
3271
|
var r, i;
|
|
@@ -3270,16 +3275,16 @@ var I = function() {
|
|
|
3270
3275
|
if (!i)
|
|
3271
3276
|
return null;
|
|
3272
3277
|
var d = Object.keys(i).map(function(u) {
|
|
3273
|
-
return i[u] !== !1 ? D(
|
|
3278
|
+
return i[u] !== !1 ? D(Gi, { direction: u, onResizeStart: n.onResizeStart, replaceStyles: o && o[u], className: a && a[u], children: c && c[u] ? c[u] : null }, u) : null;
|
|
3274
3279
|
});
|
|
3275
3280
|
return D("div", { className: l, style: s, children: d });
|
|
3276
3281
|
}, e.prototype.render = function() {
|
|
3277
3282
|
var n = this, r = Object.keys(this.props).reduce(function(a, s) {
|
|
3278
|
-
return
|
|
3279
|
-
}, {}), i =
|
|
3283
|
+
return to.indexOf(s) !== -1 || (a[s] = n.props[s]), a;
|
|
3284
|
+
}, {}), i = it(it(it({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
|
|
3280
3285
|
this.state.flexBasis && (i.flexBasis = this.state.flexBasis);
|
|
3281
3286
|
var o = this.props.as || "div";
|
|
3282
|
-
return
|
|
3287
|
+
return gt(o, it({ style: i, className: this.props.className }, r, {
|
|
3283
3288
|
// `ref` is after `extendsProps` to ensure this one wins over a version
|
|
3284
3289
|
// passed in
|
|
3285
3290
|
ref: function(a) {
|
|
@@ -3315,14 +3320,14 @@ var I = function() {
|
|
|
3315
3320
|
resizeRatio: 1,
|
|
3316
3321
|
snapGap: 0
|
|
3317
3322
|
}, e;
|
|
3318
|
-
}(
|
|
3323
|
+
}(tr)
|
|
3319
3324
|
);
|
|
3320
|
-
const
|
|
3321
|
-
const t =
|
|
3325
|
+
const vn = () => {
|
|
3326
|
+
const t = A((e) => {
|
|
3322
3327
|
e.stopPropagation();
|
|
3323
3328
|
}, []);
|
|
3324
3329
|
return /* @__PURE__ */ D("div", { className: "h-full w-full", onPointerDown: t });
|
|
3325
|
-
},
|
|
3330
|
+
}, bn = lt({
|
|
3326
3331
|
base: "absolute left-0 right-0 select-none",
|
|
3327
3332
|
slots: {
|
|
3328
3333
|
wrapper: "h-full w-full cursor-pointer rounded border border-primary/20 bg-primary/10 px-2 py-1",
|
|
@@ -3335,7 +3340,7 @@ const zn = () => {
|
|
|
3335
3340
|
true: "opacity-50"
|
|
3336
3341
|
}
|
|
3337
3342
|
}
|
|
3338
|
-
}),
|
|
3343
|
+
}), _n = ({ event: t, onEventClick: e, width: n, left: r, top: i }) => {
|
|
3339
3344
|
const {
|
|
3340
3345
|
eventComponent: o,
|
|
3341
3346
|
isDraggable: a,
|
|
@@ -3344,188 +3349,188 @@ const zn = () => {
|
|
|
3344
3349
|
onEventDrop: c,
|
|
3345
3350
|
hourHeight: d,
|
|
3346
3351
|
gridSize: u,
|
|
3347
|
-
pxToMinutes:
|
|
3352
|
+
pxToMinutes: f,
|
|
3348
3353
|
snapToTime: p
|
|
3349
|
-
} =
|
|
3354
|
+
} = At(), b = a ? a(t) : c !== void 0, h = s ? s(t) : l !== void 0, { attributes: g, listeners: m, setNodeRef: w, transform: v } = bi({
|
|
3350
3355
|
id: t.id,
|
|
3351
3356
|
data: { event: t },
|
|
3352
3357
|
disabled: !b
|
|
3353
|
-
}),
|
|
3358
|
+
}), y = !!v, R = C(() => $i(t, d), [t, d]), z = {
|
|
3354
3359
|
top: i,
|
|
3355
|
-
height:
|
|
3360
|
+
height: R,
|
|
3356
3361
|
left: r,
|
|
3357
3362
|
width: n
|
|
3358
3363
|
// transform: CSS.Transform.toString(transform)
|
|
3359
|
-
},
|
|
3360
|
-
(
|
|
3361
|
-
e && (e(t),
|
|
3364
|
+
}, x = A(
|
|
3365
|
+
(H) => {
|
|
3366
|
+
e && (e(t), H.stopPropagation());
|
|
3362
3367
|
},
|
|
3363
3368
|
[e, t]
|
|
3364
|
-
),
|
|
3365
|
-
|
|
3366
|
-
}, []),
|
|
3367
|
-
(
|
|
3368
|
-
if (
|
|
3369
|
-
const
|
|
3370
|
-
l
|
|
3369
|
+
), S = A((H, P, W, q) => {
|
|
3370
|
+
P === "top" && (W.style.transform = `translateY(${-q.height}px)`);
|
|
3371
|
+
}, []), E = A(
|
|
3372
|
+
(H, P, W, q) => {
|
|
3373
|
+
if (P === "bottom") {
|
|
3374
|
+
const $ = f(q.height), X = new Date(t.endDate.getTime() + $ * 60 * 1e3);
|
|
3375
|
+
l?.(t, {
|
|
3371
3376
|
startDate: t.startDate,
|
|
3372
|
-
endDate: p(
|
|
3377
|
+
endDate: p(X)
|
|
3373
3378
|
});
|
|
3374
|
-
} else if (
|
|
3375
|
-
|
|
3376
|
-
const
|
|
3377
|
-
l
|
|
3378
|
-
startDate: p(
|
|
3379
|
+
} else if (P === "top") {
|
|
3380
|
+
W.style.transform = "none";
|
|
3381
|
+
const $ = f(q.height), X = new Date(t.startDate.getTime() - $ * 60 * 1e3);
|
|
3382
|
+
l?.(t, {
|
|
3383
|
+
startDate: p(X),
|
|
3379
3384
|
endDate: t.endDate
|
|
3380
3385
|
});
|
|
3381
3386
|
}
|
|
3382
3387
|
},
|
|
3383
|
-
[t, l,
|
|
3384
|
-
),
|
|
3385
|
-
const { wrapper:
|
|
3386
|
-
return o ? /* @__PURE__ */ D(o, { event: t, baseEventComponent:
|
|
3387
|
-
}, [o, t]), { base:
|
|
3388
|
+
[t, l, f, p]
|
|
3389
|
+
), L = C(() => {
|
|
3390
|
+
const { wrapper: H, title: P } = bn(), W = /* @__PURE__ */ D("div", { className: H(), children: /* @__PURE__ */ D("div", { className: P(), children: t.title }) });
|
|
3391
|
+
return o ? /* @__PURE__ */ D(o, { event: t, baseEventComponent: W }) : W;
|
|
3392
|
+
}, [o, t]), { base: N } = bn();
|
|
3388
3393
|
return /* @__PURE__ */ D(
|
|
3389
3394
|
"div",
|
|
3390
|
-
|
|
3391
|
-
className:
|
|
3392
|
-
ref:
|
|
3393
|
-
style: z
|
|
3394
|
-
|
|
3395
|
-
|
|
3395
|
+
{
|
|
3396
|
+
className: N({ dragging: y }),
|
|
3397
|
+
ref: w,
|
|
3398
|
+
style: z,
|
|
3399
|
+
...b ? g : {},
|
|
3400
|
+
...b ? m : {},
|
|
3401
|
+
onClick: x,
|
|
3396
3402
|
children: /* @__PURE__ */ D(
|
|
3397
|
-
|
|
3403
|
+
eo,
|
|
3398
3404
|
{
|
|
3399
|
-
size: { height:
|
|
3400
|
-
enable:
|
|
3405
|
+
size: { height: R },
|
|
3406
|
+
enable: h ? no : !1,
|
|
3401
3407
|
grid: [0, u],
|
|
3402
|
-
onResize:
|
|
3403
|
-
onResizeStop:
|
|
3408
|
+
onResize: S,
|
|
3409
|
+
onResizeStop: E,
|
|
3404
3410
|
handleComponent: {
|
|
3405
|
-
bottom: /* @__PURE__ */ D(
|
|
3406
|
-
top: /* @__PURE__ */ D(
|
|
3411
|
+
bottom: /* @__PURE__ */ D(vn, {}),
|
|
3412
|
+
top: /* @__PURE__ */ D(vn, {})
|
|
3407
3413
|
},
|
|
3408
|
-
children:
|
|
3414
|
+
children: L
|
|
3409
3415
|
}
|
|
3410
3416
|
)
|
|
3411
|
-
}
|
|
3417
|
+
}
|
|
3412
3418
|
);
|
|
3413
|
-
},
|
|
3419
|
+
}, no = {
|
|
3414
3420
|
top: !0,
|
|
3415
3421
|
bottom: !0
|
|
3416
3422
|
};
|
|
3417
|
-
function
|
|
3423
|
+
function Ee(t) {
|
|
3418
3424
|
return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit" });
|
|
3419
3425
|
}
|
|
3420
|
-
const
|
|
3426
|
+
const ro = lt({
|
|
3421
3427
|
slots: {
|
|
3422
3428
|
currentTime: "absolute left-0 right-0 border-t border-primary/50",
|
|
3423
3429
|
currentTimeLabel: "absolute left-1 -translate-y-1/2 rounded-sm bg-primary px-1 text-xs text-primary-foreground"
|
|
3424
3430
|
}
|
|
3425
|
-
}),
|
|
3426
|
-
const [e, n] =
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
(c = o.current) == null || c.scrollIntoView({ behavior: "instant", block: "center" });
|
|
3431
|
+
}), Fn = ({ showValue: t = !1 }) => {
|
|
3432
|
+
const [e, n] = j(() => un()), [r, i] = j(() => t ? Ee(/* @__PURE__ */ new Date()) : null), o = T(null);
|
|
3433
|
+
O(() => {
|
|
3434
|
+
o.current?.scrollIntoView({ behavior: "instant", block: "center" });
|
|
3430
3435
|
const l = setInterval(() => {
|
|
3431
|
-
n(
|
|
3436
|
+
n(un()), t && i(Ee(/* @__PURE__ */ new Date()));
|
|
3432
3437
|
}, 6e4);
|
|
3433
3438
|
return () => clearInterval(l);
|
|
3434
3439
|
}, [t]);
|
|
3435
|
-
const { currentTime: a, currentTimeLabel: s } =
|
|
3440
|
+
const { currentTime: a, currentTimeLabel: s } = ro();
|
|
3436
3441
|
return /* @__PURE__ */ D("div", { ref: o, className: a(), style: { top: e }, children: t && /* @__PURE__ */ D("span", { className: s(), children: r }) });
|
|
3437
|
-
},
|
|
3442
|
+
}, io = lt({
|
|
3438
3443
|
slots: { wrapper: "relative h-full w-full overflow-visible border-l border-border first:border-l-0" }
|
|
3439
|
-
}),
|
|
3440
|
-
const { timeSnap: n, onDayClick: r, onEventClick: i, hourHeight: o } =
|
|
3441
|
-
const u = new Date(t.setHours(0, 0, 0, 0)),
|
|
3442
|
-
return e.filter((p) => p.startDate <=
|
|
3443
|
-
}, [t, e]), l =
|
|
3444
|
+
}), oo = ({ day: t, events: e }) => {
|
|
3445
|
+
const { timeSnap: n, onDayClick: r, onEventClick: i, hourHeight: o } = At(), { setNodeRef: a } = xi({ id: `day-column-${t.toISOString()}`, data: { day: t } }), s = C(() => {
|
|
3446
|
+
const u = new Date(t.setHours(0, 0, 0, 0)), f = new Date(t.setHours(23, 59, 59, 999));
|
|
3447
|
+
return e.filter((p) => p.startDate <= f && p.endDate >= u);
|
|
3448
|
+
}, [t, e]), l = A(
|
|
3444
3449
|
(u) => {
|
|
3445
|
-
r
|
|
3450
|
+
r?.({ date: Wi(u, t, n ?? 0) });
|
|
3446
3451
|
},
|
|
3447
3452
|
[r, t, n]
|
|
3448
|
-
), c =
|
|
3449
|
-
return /* @__PURE__ */
|
|
3453
|
+
), c = C(() => ji(s, o), [s, o]), { wrapper: d } = io();
|
|
3454
|
+
return /* @__PURE__ */ gt(
|
|
3450
3455
|
"div",
|
|
3451
3456
|
{
|
|
3452
3457
|
className: d(),
|
|
3453
3458
|
style: { height: `${o * 24}px` },
|
|
3454
3459
|
ref: a,
|
|
3455
3460
|
onClick: l,
|
|
3456
|
-
[
|
|
3461
|
+
[In]: "",
|
|
3457
3462
|
children: [
|
|
3458
3463
|
s.map((u) => {
|
|
3459
|
-
const
|
|
3464
|
+
const f = c.get(u.id);
|
|
3460
3465
|
return /* @__PURE__ */ D(
|
|
3461
|
-
|
|
3466
|
+
_n,
|
|
3462
3467
|
{
|
|
3463
3468
|
event: u,
|
|
3464
3469
|
onEventClick: i,
|
|
3465
|
-
top:
|
|
3466
|
-
width:
|
|
3467
|
-
left:
|
|
3470
|
+
top: f?.top,
|
|
3471
|
+
width: f?.width,
|
|
3472
|
+
left: f?.left
|
|
3468
3473
|
},
|
|
3469
3474
|
u.id
|
|
3470
3475
|
);
|
|
3471
3476
|
}),
|
|
3472
|
-
/* @__PURE__ */ D(
|
|
3477
|
+
/* @__PURE__ */ D(Fn, {})
|
|
3473
3478
|
]
|
|
3474
3479
|
}
|
|
3475
3480
|
);
|
|
3476
|
-
},
|
|
3481
|
+
}, so = lt({
|
|
3477
3482
|
base: "flex h-full w-full"
|
|
3478
|
-
}),
|
|
3479
|
-
const { onEventDrop: e, dates: n, gridSize: r, pxToMinutes: i, snapToTime: o } =
|
|
3483
|
+
}), ao = ({ events: t }) => {
|
|
3484
|
+
const { onEventDrop: e, dates: n, gridSize: r, pxToMinutes: i, snapToTime: o } = At(), [a, s] = j(null), l = Je(Pe, { activationConstraint: { distance: 10 } }), c = Je(Le), d = br(l, c), u = A(
|
|
3480
3485
|
(b) => {
|
|
3481
|
-
var C, z, S;
|
|
3482
3486
|
s(null);
|
|
3483
|
-
const
|
|
3484
|
-
v.setDate(
|
|
3485
|
-
const
|
|
3486
|
-
|
|
3487
|
+
const h = b.delta.y, g = b.active.data.current?.event, m = b.over?.data.current?.day, w = i(h), v = new Date(g.startDate.getTime() + w * 60 * 1e3);
|
|
3488
|
+
v.setDate(m.getDate());
|
|
3489
|
+
const y = new Date(g.endDate.getTime() + w * 60 * 1e3);
|
|
3490
|
+
y.setDate(m.getDate()), e?.(g, { startDate: o(v), endDate: o(y) });
|
|
3487
3491
|
},
|
|
3488
3492
|
[e, i, o]
|
|
3489
|
-
),
|
|
3490
|
-
return /* @__PURE__ */
|
|
3491
|
-
/* @__PURE__ */ D("div", { className:
|
|
3492
|
-
/* @__PURE__ */ D(
|
|
3493
|
+
), f = C(() => lo(r), [r]);
|
|
3494
|
+
return /* @__PURE__ */ gt(pi, { onDragStart: p, onDragEnd: u, sensors: d, children: [
|
|
3495
|
+
/* @__PURE__ */ D("div", { className: so(), children: n.map((b, h) => /* @__PURE__ */ D(oo, { day: b, events: t }, h)) }),
|
|
3496
|
+
/* @__PURE__ */ D(ki, { dropAnimation: null, modifiers: [f], children: a ? /* @__PURE__ */ D(_n, { event: t.find((b) => b.id === a) }) : null })
|
|
3493
3497
|
] });
|
|
3494
3498
|
function p(b) {
|
|
3495
3499
|
s(b.active.id);
|
|
3496
3500
|
}
|
|
3497
|
-
},
|
|
3501
|
+
}, lo = (t) => (n) => {
|
|
3498
3502
|
const { transform: r, draggingNodeRect: i, over: o, containerNodeRect: a } = n;
|
|
3499
|
-
if (!i || !
|
|
3503
|
+
if (!i || !o?.rect || !a) return r;
|
|
3500
3504
|
const s = o.rect.left - i.left, l = (a.top - i.top) % t, c = Math.floor(r.y / t) * t + l;
|
|
3501
|
-
return
|
|
3505
|
+
return {
|
|
3506
|
+
...r,
|
|
3502
3507
|
x: s,
|
|
3503
3508
|
y: c
|
|
3504
|
-
}
|
|
3505
|
-
},
|
|
3509
|
+
};
|
|
3510
|
+
}, co = lt({
|
|
3506
3511
|
slots: {
|
|
3507
3512
|
wrapper: "pointer-events-none absolute inset-0 flex h-full flex-col justify-between",
|
|
3508
3513
|
hourRow: "h-full border-t border-border"
|
|
3509
3514
|
}
|
|
3510
|
-
}),
|
|
3511
|
-
const { hourHeight: t } =
|
|
3515
|
+
}), uo = () => {
|
|
3516
|
+
const { hourHeight: t } = At(), { wrapper: e, hourRow: n } = co();
|
|
3512
3517
|
return /* @__PURE__ */ D("div", { className: e(), style: { height: `${t * 24}px` }, children: Array.from({ length: 24 }).map((r, i) => /* @__PURE__ */ D("div", { className: n(), style: { height: `${t}px` } }, i)) });
|
|
3513
|
-
},
|
|
3518
|
+
}, ho = lt({
|
|
3514
3519
|
slots: {
|
|
3515
3520
|
wrapper: "relative h-full",
|
|
3516
3521
|
hourMark: "h-full pl-2 pr-2",
|
|
3517
3522
|
hourLabel: "-translate-y-1/2 text-xs text-muted-foreground"
|
|
3518
3523
|
}
|
|
3519
|
-
}),
|
|
3520
|
-
const { hourHeight: e } =
|
|
3524
|
+
}), fo = ({ showCurrentTime: t = !1 }) => {
|
|
3525
|
+
const { hourHeight: e } = At(), { wrapper: n, hourMark: r, hourLabel: i } = ho(), o = C(() => {
|
|
3521
3526
|
const a = /* @__PURE__ */ new Date();
|
|
3522
|
-
return Array.from({ length: 24 }, (s, l) => (a.setHours(l), a.setMinutes(0), a.setSeconds(0), a.setMilliseconds(0),
|
|
3527
|
+
return Array.from({ length: 24 }, (s, l) => (a.setHours(l), a.setMinutes(0), a.setSeconds(0), a.setMilliseconds(0), Ee(a)));
|
|
3523
3528
|
}, []);
|
|
3524
|
-
return /* @__PURE__ */
|
|
3529
|
+
return /* @__PURE__ */ gt("div", { className: n(), style: { height: `${e * 24}px` }, children: [
|
|
3525
3530
|
o.map((a, s) => /* @__PURE__ */ D("div", { className: r(), style: { height: `${e}px` }, children: s !== 0 && /* @__PURE__ */ D("div", { className: i(), children: a }) }, a)),
|
|
3526
|
-
t && /* @__PURE__ */ D(
|
|
3531
|
+
t && /* @__PURE__ */ D(Fn, { showValue: !0 })
|
|
3527
3532
|
] });
|
|
3528
|
-
},
|
|
3533
|
+
}, po = lt({
|
|
3529
3534
|
slots: {
|
|
3530
3535
|
wrapper: "flex w-full flex-col items-center",
|
|
3531
3536
|
date: "text-3xl font-bold leading-none text-secondary-foreground",
|
|
@@ -3539,23 +3544,23 @@ const bo = ut({
|
|
|
3539
3544
|
}
|
|
3540
3545
|
}
|
|
3541
3546
|
}
|
|
3542
|
-
}),
|
|
3543
|
-
const n =
|
|
3544
|
-
return /* @__PURE__ */
|
|
3547
|
+
}), go = ({ date: t, holyday: e = !1 }) => {
|
|
3548
|
+
const n = C(() => t.toLocaleDateString(void 0, { weekday: "short" }), [t]), r = C(() => t.toLocaleDateString(void 0, { month: "long" }), [t]), { wrapper: i, date: o, dayOfWeek: a, monthName: s } = po({ holyday: e });
|
|
3549
|
+
return /* @__PURE__ */ gt("div", { className: i(), children: [
|
|
3545
3550
|
/* @__PURE__ */ D("div", { className: a(), children: n }),
|
|
3546
3551
|
/* @__PURE__ */ D("div", { className: o(), children: t.getDate() }),
|
|
3547
3552
|
/* @__PURE__ */ D("div", { className: s(), children: r })
|
|
3548
3553
|
] });
|
|
3549
|
-
},
|
|
3550
|
-
const { dates: t } =
|
|
3551
|
-
return /* @__PURE__ */ D("div", { className:
|
|
3552
|
-
},
|
|
3554
|
+
}, vo = lt({ base: "flex w-full justify-between" }), bo = () => {
|
|
3555
|
+
const { dates: t } = At();
|
|
3556
|
+
return /* @__PURE__ */ D("div", { className: vo(), children: t.map((e, n) => /* @__PURE__ */ D(go, { date: e }, n)) });
|
|
3557
|
+
}, mo = lt({
|
|
3553
3558
|
base: "flex h-full flex-col",
|
|
3554
3559
|
slots: {
|
|
3555
3560
|
content: "relative flex flex-1 overflow-auto",
|
|
3556
3561
|
days: "relative flex-1"
|
|
3557
3562
|
}
|
|
3558
|
-
}),
|
|
3563
|
+
}), Ro = ({
|
|
3559
3564
|
events: t,
|
|
3560
3565
|
startDate: e,
|
|
3561
3566
|
endDate: n,
|
|
@@ -3568,23 +3573,23 @@ const bo = ut({
|
|
|
3568
3573
|
showDates: c = !0,
|
|
3569
3574
|
hourHeight: d = 40,
|
|
3570
3575
|
isDraggable: u,
|
|
3571
|
-
isResizable:
|
|
3576
|
+
isResizable: f
|
|
3572
3577
|
}) => {
|
|
3573
|
-
const p =
|
|
3574
|
-
const
|
|
3575
|
-
|
|
3578
|
+
const p = C(() => {
|
|
3579
|
+
const w = e ? new Date(e) : /* @__PURE__ */ new Date();
|
|
3580
|
+
w.setHours(0, 0, 0, 0);
|
|
3576
3581
|
const v = [];
|
|
3577
3582
|
if (!n)
|
|
3578
|
-
v.push(
|
|
3583
|
+
v.push(w);
|
|
3579
3584
|
else {
|
|
3580
|
-
const
|
|
3581
|
-
for (;
|
|
3582
|
-
v.push(new Date(
|
|
3585
|
+
const y = new Date(w);
|
|
3586
|
+
for (; y <= n; )
|
|
3587
|
+
v.push(new Date(y)), y.setDate(y.getDate() + 1);
|
|
3583
3588
|
}
|
|
3584
3589
|
return v;
|
|
3585
|
-
}, [e, n]), { content: b, days:
|
|
3590
|
+
}, [e, n]), { content: b, days: h, base: g } = mo(), m = c ? /* @__PURE__ */ D("div", { children: /* @__PURE__ */ D(bo, {}) }) : null;
|
|
3586
3591
|
return /* @__PURE__ */ D(
|
|
3587
|
-
|
|
3592
|
+
Pi,
|
|
3588
3593
|
{
|
|
3589
3594
|
value: {
|
|
3590
3595
|
dates: p,
|
|
@@ -3596,15 +3601,15 @@ const bo = ut({
|
|
|
3596
3601
|
hourHeight: d,
|
|
3597
3602
|
eventComponent: l,
|
|
3598
3603
|
isDraggable: u,
|
|
3599
|
-
isResizable:
|
|
3604
|
+
isResizable: f
|
|
3600
3605
|
},
|
|
3601
|
-
children: /* @__PURE__ */ D(
|
|
3602
|
-
|
|
3603
|
-
/* @__PURE__ */
|
|
3604
|
-
/* @__PURE__ */ D("div", { children: /* @__PURE__ */ D(
|
|
3605
|
-
/* @__PURE__ */
|
|
3606
|
-
/* @__PURE__ */ D(
|
|
3607
|
-
/* @__PURE__ */ D(
|
|
3606
|
+
children: /* @__PURE__ */ D(rr, { children: /* @__PURE__ */ gt("div", { className: g(), children: [
|
|
3607
|
+
m,
|
|
3608
|
+
/* @__PURE__ */ gt("div", { className: b(), children: [
|
|
3609
|
+
/* @__PURE__ */ D("div", { children: /* @__PURE__ */ D(fo, { showCurrentTime: !0 }) }),
|
|
3610
|
+
/* @__PURE__ */ gt("div", { className: h(), children: [
|
|
3611
|
+
/* @__PURE__ */ D(uo, {}),
|
|
3612
|
+
/* @__PURE__ */ D(ao, { events: t })
|
|
3608
3613
|
] })
|
|
3609
3614
|
] })
|
|
3610
3615
|
] }) })
|
|
@@ -3612,6 +3617,6 @@ const bo = ut({
|
|
|
3612
3617
|
);
|
|
3613
3618
|
};
|
|
3614
3619
|
export {
|
|
3615
|
-
|
|
3620
|
+
Ro as Scheduler
|
|
3616
3621
|
};
|
|
3617
3622
|
//# sourceMappingURL=scheduler.js.map
|