@daisforge/ui 1.12.0 → 1.12.2
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/chunks/AnalyticalWidget-CBi-2MtJ.mjs +528 -0
- package/chunks/AnalyticalWidget-fBDe37Ur.cjs +43 -0
- package/chunks/ApprovalCenter-ClCoA3cr.mjs +176 -0
- package/chunks/ApprovalCenter-oACSjXxE.cjs +1 -0
- package/chunks/BlockTitle-CylSY2DM.cjs +1 -0
- package/chunks/BlockTitle-DTaIqiFF.mjs +85 -0
- package/chunks/Container-CV4sT-bB.mjs +117 -0
- package/chunks/Container-D8Bcg69e.cjs +17 -0
- package/chunks/EmptyState-BD6Ic-OX.cjs +1 -0
- package/chunks/EmptyState-Bct6Wrxv.mjs +459 -0
- package/chunks/FiltersActions-C3yWFtQT.mjs +429 -0
- package/chunks/FiltersActions-D1aQXh5d.cjs +1 -0
- package/chunks/FormDatePickers-BefllAQ_.cjs +1 -0
- package/chunks/FormDatePickers-_soI8Uaa.mjs +503 -0
- package/chunks/FormSegmentGroup-C8kROjlQ.mjs +168 -0
- package/chunks/FormSegmentGroup-DIaBZRWv.cjs +1 -0
- package/chunks/FormTextArea-BBYV56iU.mjs +107 -0
- package/chunks/FormTextArea-C7KG9PXC.cjs +1 -0
- package/chunks/GridDND-BP_H26We.cjs +1 -0
- package/chunks/GridDND-rVSi0xX1.mjs +852 -0
- package/chunks/LeftPanel-CgexykUg.cjs +1 -0
- package/chunks/LeftPanel-bKmeEOHx.mjs +162 -0
- package/chunks/ListOfFilters-DgInAZFi.cjs +1 -0
- package/chunks/ListOfFilters-IEPKSKxx.mjs +243 -0
- package/chunks/MassActions-BCgI08G9.cjs +1 -0
- package/chunks/MassActions-D4nb1_gx.mjs +966 -0
- package/chunks/PageTitle-B0tuR3fU.mjs +123 -0
- package/chunks/PageTitle-BC0PnHgQ.cjs +1 -0
- package/chunks/SplitView-C8de8YKV.mjs +236 -0
- package/chunks/SplitView-OUGciQ51.cjs +12 -0
- package/chunks/Stories--_pE4YtR.mjs +668 -0
- package/chunks/Stories-Dvh6rMeV.cjs +1 -0
- package/chunks/Table-Bj2se1hR.mjs +7757 -0
- package/chunks/Table-CnWVNNoW.cjs +31 -0
- package/chunks/TableCanvas-Y53zQ7M0.mjs +11857 -0
- package/chunks/TableCanvas-eYhmqTbp.cjs +30 -0
- package/chunks/{TableGlide-B61Yi-Hs.mjs → TableGlide-CuBMIM6Q.mjs} +1417 -1554
- package/chunks/TableGlide-CvMz7x7a.cjs +1 -0
- package/chunks/styles-Dd4uEa27.mjs +128 -0
- package/chunks/styles-kPI9R7DO.cjs +2 -0
- package/chunks/{utils-BNelzuI-.mjs → utils-C5SQhoON.mjs} +126 -151
- package/chunks/utils-DKi1rqLX.cjs +25 -0
- package/chunks/{vendor-D8Dozc4m.cjs → vendor-BauZZ2hr.mjs} +7 -33
- package/chunks/{vendor-BG4P-329.mjs → vendor-C47eH0xy.cjs} +2 -634
- package/components/AiAgentPopover/index.cjs +2 -2
- package/components/AiAgentPopover/index.mjs +248 -373
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
- package/components/AnalyticalWidget/index.cjs +1 -1
- package/components/AnalyticalWidget/index.mjs +1 -1
- package/components/ApprovalCenter/components/index.cjs +1 -1
- package/components/ApprovalCenter/components/index.mjs +1 -1
- package/components/ApprovalCenter/index.cjs +1 -1
- package/components/ApprovalCenter/index.mjs +1 -1
- package/components/Autocomplete/index.cjs +1 -1
- package/components/Autocomplete/index.mjs +22 -35
- package/components/AutocompleteSearch/index.cjs +1 -1
- package/components/AutocompleteSearch/index.mjs +33 -83
- package/components/BlockGradientScroll/index.cjs +1 -1
- package/components/BlockGradientScroll/index.mjs +41 -53
- package/components/BlockTitle/index.cjs +1 -1
- package/components/BlockTitle/index.mjs +1 -1
- package/components/BlockTitle/utils/index.cjs +1 -1
- package/components/BlockTitle/utils/index.mjs +1 -1
- package/components/Box/index.mjs +17 -7
- package/components/Collapse/index.cjs +1 -1
- package/components/Collapse/index.mjs +41 -62
- package/components/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- package/components/DatePicker/index.cjs +1 -1
- package/components/DatePicker/index.mjs +21 -59
- package/components/DrawerDF/index.cjs +1 -1
- package/components/DrawerDF/index.mjs +144 -391
- package/components/EmptyState/components/index.cjs +1 -1
- package/components/EmptyState/components/index.mjs +1 -1
- package/components/EmptyState/index.cjs +1 -1
- package/components/EmptyState/index.mjs +1 -1
- package/components/GridDND/index.cjs +1 -1
- package/components/GridDND/index.mjs +1 -1
- package/components/GridDND/utils/index.cjs +1 -1
- package/components/GridDND/utils/index.mjs +1 -1
- package/components/IconButton/index.cjs +1 -1
- package/components/IconButton/index.mjs +49 -112
- package/components/IconSvgSprite/index.cjs +1 -1
- package/components/IconSvgSprite/index.mjs +13 -49
- package/components/LeftPanel/components/index.cjs +1 -1
- package/components/LeftPanel/components/index.mjs +1 -1
- package/components/LeftPanel/hooks/index.cjs +1 -1
- package/components/LeftPanel/hooks/index.mjs +1 -1
- package/components/LeftPanel/index.cjs +1 -1
- package/components/LeftPanel/index.mjs +1 -1
- package/components/LeftPanel/utils/index.cjs +1 -1
- package/components/LeftPanel/utils/index.mjs +1 -1
- package/components/ListOfFilters/index.cjs +1 -1
- package/components/ListOfFilters/index.mjs +1 -1
- package/components/MassActions/hooks/index.cjs +1 -1
- package/components/MassActions/hooks/index.mjs +1 -1
- package/components/MassActions/index.cjs +1 -1
- package/components/MassActions/index.mjs +1 -1
- package/components/MassActionsStatic/index.cjs +2 -2
- package/components/MassActionsStatic/index.mjs +13 -34
- package/components/ModalDF/index.cjs +1 -1
- package/components/ModalDF/index.mjs +169 -381
- package/components/ModalDFConfirmation/index.cjs +1 -1
- package/components/ModalDFConfirmation/index.mjs +66 -114
- package/components/Notification/index.cjs +1 -1
- package/components/Notification/index.mjs +16 -22
- package/components/NumberFormat/index.cjs +1 -1
- package/components/NumberFormat/index.mjs +24 -37
- package/components/NumberFormatAmount/index.cjs +1 -1
- package/components/NumberFormatAmount/index.mjs +12 -27
- package/components/PageTitle/index.cjs +1 -1
- package/components/PageTitle/index.mjs +1 -1
- package/components/PageTitle/utils/index.cjs +1 -1
- package/components/PageTitle/utils/index.mjs +1 -1
- package/components/PopoverDF/index.cjs +1 -1
- package/components/PopoverDF/index.mjs +125 -261
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/index.mjs +141 -308
- package/components/SplitView/index.cjs +1 -1
- package/components/SplitView/index.mjs +1 -1
- package/components/SplitView/utils/index.cjs +1 -1
- package/components/SplitView/utils/index.mjs +1 -1
- package/components/Stories/components/StoriesBanner/index.cjs +1 -1
- package/components/Stories/components/StoriesBanner/index.mjs +1 -1
- package/components/Stories/components/StoriesContent/index.cjs +1 -1
- package/components/Stories/components/StoriesContent/index.mjs +1 -1
- package/components/Stories/components/StoriesPreview/index.cjs +1 -1
- package/components/Stories/components/StoriesPreview/index.mjs +1 -1
- package/components/Stories/components/StoriesProgress/index.cjs +1 -1
- package/components/Stories/components/StoriesProgress/index.mjs +1 -1
- package/components/Stories/components/StoriesViewer/index.cjs +1 -1
- package/components/Stories/components/StoriesViewer/index.mjs +1 -1
- package/components/Stories/index.cjs +1 -1
- package/components/Stories/index.mjs +1 -1
- package/components/Table/components/TableDropdown/index.cjs +1 -1
- package/components/Table/components/TableDropdown/index.mjs +1 -1
- package/components/Table/feature-collapse-table/index.cjs +1 -1
- package/components/Table/feature-collapse-table/index.mjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/Table/feature-column-control/index.cjs +1 -1
- package/components/Table/feature-column-control/index.mjs +1 -1
- package/components/Table/feature-columns-grouping/index.cjs +1 -1
- package/components/Table/feature-columns-grouping/index.mjs +1 -1
- package/components/Table/feature-context-menu/index.cjs +1 -1
- package/components/Table/feature-context-menu/index.mjs +1 -1
- package/components/Table/feature-edit/index.cjs +1 -1
- package/components/Table/feature-edit/index.mjs +1 -1
- package/components/Table/feature-filtering/combobox/index.cjs +1 -1
- package/components/Table/feature-filtering/combobox/index.mjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/Table/feature-filtering/index.cjs +1 -1
- package/components/Table/feature-filtering/index.mjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/Table/feature-infinity-scroll/index.cjs +1 -1
- package/components/Table/feature-infinity-scroll/index.mjs +1 -1
- package/components/Table/feature-key-text/index.cjs +1 -1
- package/components/Table/feature-key-text/index.mjs +1 -1
- package/components/Table/feature-pagination/index.cjs +1 -1
- package/components/Table/feature-pagination/index.mjs +1 -1
- package/components/Table/feature-right-sidebar/index.cjs +1 -1
- package/components/Table/feature-right-sidebar/index.mjs +1 -1
- package/components/Table/feature-row-detail/index.cjs +1 -1
- package/components/Table/feature-row-detail/index.mjs +1 -1
- package/components/Table/feature-row-instruments/index.cjs +1 -1
- package/components/Table/feature-row-instruments/index.mjs +1 -1
- package/components/Table/feature-row-size/index.cjs +1 -1
- package/components/Table/feature-row-size/index.mjs +1 -1
- package/components/Table/feature-rows-grouping/index.cjs +1 -1
- package/components/Table/feature-rows-grouping/index.mjs +1 -1
- package/components/Table/feature-searching/index.cjs +1 -1
- package/components/Table/feature-searching/index.mjs +1 -1
- package/components/Table/feature-select-row/index.cjs +1 -1
- package/components/Table/feature-select-row/index.mjs +1 -1
- package/components/Table/feature-sorting/index.cjs +1 -1
- package/components/Table/feature-sorting/index.mjs +1 -1
- package/components/Table/feature-table-settings/index.cjs +1 -1
- package/components/Table/feature-table-settings/index.mjs +1 -1
- package/components/Table/feature-tree/index.cjs +1 -1
- package/components/Table/feature-tree/index.mjs +1 -1
- package/components/Table/index.cjs +1 -1
- package/components/Table/index.mjs +1 -1
- package/components/Table/renders/formatCell/index.cjs +1 -1
- package/components/Table/renders/formatCell/index.mjs +1 -1
- package/components/Table/styles/index.cjs +1 -1
- package/components/Table/styles/index.mjs +1 -1
- package/components/Table/table-hooks/index.cjs +1 -1
- package/components/Table/table-hooks/index.mjs +1 -1
- package/components/Table/types/index.cjs +1 -1
- package/components/Table/types/index.mjs +1 -1
- package/components/Table/utils/index.cjs +1 -1
- package/components/Table/utils/index.mjs +1 -1
- package/components/Table/widgets/control-block/index.cjs +1 -1
- package/components/Table/widgets/control-block/index.mjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
- package/components/Table/widgets/index.cjs +1 -1
- package/components/Table/widgets/index.mjs +1 -1
- package/components/Table/widgets/mass-actions/index.cjs +1 -1
- package/components/Table/widgets/mass-actions/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-content-state/index.cjs +1 -1
- package/components/TableCanvas/feature-content-state/index.mjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
- package/components/TableCanvas/feature-edit/index.cjs +1 -1
- package/components/TableCanvas/feature-edit/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +3 -3
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +1 -1
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +1 -1
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
- package/components/TableCanvas/feature-row-size/index.cjs +1 -1
- package/components/TableCanvas/feature-row-size/index.mjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-table-settings/TableSettingsWithTabs.d.ts +25 -2
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.d.ts +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +3 -2
- package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-tree/index.cjs +1 -1
- package/components/TableCanvas/feature-tree/index.mjs +1 -1
- package/components/TableCanvas/index.cjs +1 -1
- package/components/TableCanvas/index.mjs +2 -2
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +1 -1
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +1 -1
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/types/table-config.type.d.ts +4 -0
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +2 -2
- package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
- package/components/TableCanvas/widgets/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- package/components/TableContract/index.cjs +2 -2
- package/components/TableContract/index.mjs +540 -798
- package/components/TableGlide/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.mjs +1 -1
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableTabs/index.cjs +1 -1
- package/components/TableTabs/index.mjs +136 -305
- package/components/TextArea/index.cjs +1 -1
- package/components/TextArea/index.mjs +26 -40
- package/components/TextField/index.cjs +1 -1
- package/components/TextField/index.mjs +38 -82
- package/components/Tooltip/index.cjs +1 -1
- package/components/Tooltip/index.mjs +1 -1
- package/components/TourWidget/index.cjs +15 -15
- package/components/TourWidget/index.mjs +176 -371
- package/components/Typography/index.cjs +1 -1
- package/components/Typography/index.mjs +1 -1
- package/components/Widget/index.cjs +1 -1
- package/components/Widget/index.mjs +151 -363
- package/formComponents/FormAutocomplete/index.cjs +1 -1
- package/formComponents/FormAutocomplete/index.mjs +63 -68
- package/formComponents/FormCheckbox/index.cjs +1 -1
- package/formComponents/FormCheckbox/index.mjs +27 -55
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +61 -75
- package/formComponents/FormDatePickers/FormDatePicker/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePicker/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.mjs +1 -1
- package/formComponents/FormDatePickers/index.cjs +1 -1
- package/formComponents/FormDatePickers/index.mjs +1 -1
- package/formComponents/FormMask/index.cjs +1 -1
- package/formComponents/FormMask/index.mjs +61 -66
- package/formComponents/FormNumberFormat/index.cjs +1 -1
- package/formComponents/FormNumberFormat/index.mjs +56 -68
- package/formComponents/FormRadioGroupBox/index.cjs +1 -1
- package/formComponents/FormRadioGroupBox/index.mjs +71 -144
- package/formComponents/FormSegments/index.cjs +1 -1
- package/formComponents/FormSegments/index.mjs +1 -1
- package/formComponents/FormSelect/index.cjs +1 -1
- package/formComponents/FormSelect/index.mjs +62 -76
- package/formComponents/FormSwitch/index.cjs +1 -1
- package/formComponents/FormSwitch/index.mjs +25 -53
- package/formComponents/FormTextArea/index.cjs +1 -1
- package/formComponents/FormTextArea/index.mjs +1 -1
- package/formComponents/FormTextArea/ui/index.cjs +1 -1
- package/formComponents/FormTextArea/ui/index.mjs +1 -1
- package/formComponents/FormTextField/index.cjs +1 -1
- package/formComponents/FormTextField/index.mjs +70 -101
- package/index.cjs +1 -1
- package/index.mjs +21 -21
- package/layouts/Container/index.cjs +1 -1
- package/layouts/Container/index.mjs +1 -1
- package/layouts/Container/lib/utils/index.cjs +1 -1
- package/layouts/Container/lib/utils/index.mjs +1 -1
- package/layouts/ErrorPage/index.cjs +1 -1
- package/layouts/ErrorPage/index.mjs +81 -146
- package/layouts/FiltersActions/hooks/index.cjs +1 -1
- package/layouts/FiltersActions/hooks/index.mjs +1 -1
- package/layouts/FiltersActions/index.cjs +1 -1
- package/layouts/FiltersActions/index.mjs +1 -1
- package/layouts/Layout/index.cjs +5 -5
- package/layouts/Layout/index.mjs +78 -115
- package/layouts/PageLayout/index.cjs +2 -2
- package/layouts/PageLayout/index.mjs +15 -32
- package/mixins/index.cjs +1 -1
- package/mixins/index.mjs +1 -1
- package/package.json +1 -1
- package/shared/ui/Search/index.cjs +1 -1
- package/shared/ui/Search/index.mjs +30 -52
- package/shared/utils/inputs/index.cjs +1 -1
- package/shared/utils/inputs/index.mjs +33 -48
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/themes/index.cjs +1 -1
- package/themes/index.mjs +1 -1
- package/utils/breakpoint/index.cjs +1 -1
- package/utils/breakpoint/index.mjs +1 -1
- package/utils/clickStream/index.cjs +1 -1
- package/utils/clickStream/index.mjs +1 -1
- package/utils/eventBus/index.cjs +1 -1
- package/utils/eventBus/index.mjs +1 -1
- package/utils/hooks/index.cjs +1 -1
- package/utils/hooks/index.mjs +1 -1
- package/utils/index.cjs +1 -1
- package/utils/index.mjs +1 -1
- package/utils/styles/index.cjs +1 -1
- package/utils/styles/index.mjs +1 -1
- package/chunks/AnalyticalWidget-Ca_EuSTO.mjs +0 -868
- package/chunks/AnalyticalWidget-xgvWcsXx.cjs +0 -43
- package/chunks/ApprovalCenter-4aJlJfei.mjs +0 -531
- package/chunks/ApprovalCenter-Ij5NMkY-.cjs +0 -1
- package/chunks/BlockTitle-CgXVHok6.mjs +0 -180
- package/chunks/BlockTitle-SaP9H2PI.cjs +0 -1
- package/chunks/Container-ChuCs63G.cjs +0 -17
- package/chunks/Container-D8RdjkGo.mjs +0 -180
- package/chunks/EmptyState-BxUh2dhY.cjs +0 -1
- package/chunks/EmptyState-C0aHgxrn.mjs +0 -615
- package/chunks/FiltersActions-BekNxF-h.cjs +0 -1
- package/chunks/FiltersActions-CSucE-Ql.mjs +0 -637
- package/chunks/FormDatePickers-BCyW24Pr.cjs +0 -1
- package/chunks/FormDatePickers-DfdGdbwP.mjs +0 -538
- package/chunks/FormSegmentGroup-BKuHtPEn.cjs +0 -1
- package/chunks/FormSegmentGroup-DqFMVBr0.mjs +0 -268
- package/chunks/FormTextArea-CCrYx4pL.mjs +0 -159
- package/chunks/FormTextArea-sly1mY7h.cjs +0 -1
- package/chunks/GridDND-Bycwiynh.mjs +0 -1086
- package/chunks/GridDND-MsZt1fXJ.cjs +0 -1
- package/chunks/LeftPanel-C72uosX_.mjs +0 -303
- package/chunks/LeftPanel-Di-IqpZ_.cjs +0 -1
- package/chunks/ListOfFilters-B3bM1n4w.cjs +0 -1
- package/chunks/ListOfFilters-CPJGgMMc.mjs +0 -462
- package/chunks/MassActions-BbAXi3z9.cjs +0 -1
- package/chunks/MassActions-CZm8vqj8.mjs +0 -1352
- package/chunks/PageTitle-DEsijnDg.cjs +0 -1
- package/chunks/PageTitle-TusD1S2c.mjs +0 -282
- package/chunks/SplitView-BHdftJ9A.cjs +0 -12
- package/chunks/SplitView-Cd-xkxCe.mjs +0 -339
- package/chunks/Stories-CR_EUNO7.mjs +0 -1018
- package/chunks/Stories-CxsYx2OE.cjs +0 -1
- package/chunks/Table--05ONCr1.cjs +0 -31
- package/chunks/Table-l-P3NNUN.mjs +0 -11944
- package/chunks/TableCanvas-D-sndY82.cjs +0 -30
- package/chunks/TableCanvas-D4Bck7wv.mjs +0 -16900
- package/chunks/TableGlide-CbvaAM_H.cjs +0 -1
- package/chunks/styles-D8FDGdVz.mjs +0 -240
- package/chunks/styles-OR0WE1xm.cjs +0 -2
- package/chunks/utils-C93a2mD7.cjs +0 -25
|
@@ -1,1086 +0,0 @@
|
|
|
1
|
-
import { j as P } from "./vendor-BG4P-329.mjs";
|
|
2
|
-
import "react-grid-layout/css/styles.css";
|
|
3
|
-
import { iconButtonFilterClassNames as wt } from "../components/IconButton/index.mjs";
|
|
4
|
-
import { useRef as q, useState as z, useLayoutEffect as Dt, useEffect as te, forwardRef as ht, useCallback as A, useMemo as De, useImperativeHandle as yt } from "react";
|
|
5
|
-
import { b as Ke } from "./AnalyticalWidget-Ca_EuSTO.mjs";
|
|
6
|
-
import { Responsive as gt } from "react-grid-layout";
|
|
7
|
-
import { c as Nt } from "./utils-BNelzuI-.mjs";
|
|
8
|
-
import { surfaceTransparentAccent as bt, outlineAccent as kt, outlineAccentMinor as vt, shadowDownHardS as Gt, outlineTransparentAccent as Ot, shadowDownSoftS as Mt } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
9
|
-
import Fe, { css as Rt } from "styled-components";
|
|
10
|
-
const U = {
|
|
11
|
-
gridItemWrapper: "grid-dnd__item-wrapper",
|
|
12
|
-
gridItem: "grid-dnd__item",
|
|
13
|
-
dragHandle: "grid-dnd__drag-handle",
|
|
14
|
-
noDrag: "grid-dnd__no-drag"
|
|
15
|
-
}, Ve = 248, Y = 6, At = ({
|
|
16
|
-
item: t,
|
|
17
|
-
actionsSlot: n,
|
|
18
|
-
actionsSlotStyle: r,
|
|
19
|
-
children: a
|
|
20
|
-
}) => /* @__PURE__ */ P.jsxDEV(
|
|
21
|
-
"div",
|
|
22
|
-
{
|
|
23
|
-
style: { height: "100%", position: "relative" },
|
|
24
|
-
id: t.id,
|
|
25
|
-
className: U.gridItemWrapper,
|
|
26
|
-
children: [
|
|
27
|
-
n && /* @__PURE__ */ P.jsxDEV(
|
|
28
|
-
"div",
|
|
29
|
-
{
|
|
30
|
-
style: {
|
|
31
|
-
position: "absolute",
|
|
32
|
-
right: 16,
|
|
33
|
-
top: 16,
|
|
34
|
-
...r
|
|
35
|
-
},
|
|
36
|
-
className: U.noDrag,
|
|
37
|
-
children: n
|
|
38
|
-
},
|
|
39
|
-
void 0,
|
|
40
|
-
!1,
|
|
41
|
-
{
|
|
42
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/GridDND/GridDND.ItemWrapper.tsx",
|
|
43
|
-
lineNumber: 25,
|
|
44
|
-
columnNumber: 3
|
|
45
|
-
},
|
|
46
|
-
void 0
|
|
47
|
-
),
|
|
48
|
-
a
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
void 0,
|
|
52
|
-
!0,
|
|
53
|
-
{
|
|
54
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/GridDND/GridDND.ItemWrapper.tsx",
|
|
55
|
-
lineNumber: 19,
|
|
56
|
-
columnNumber: 1
|
|
57
|
-
},
|
|
58
|
-
void 0
|
|
59
|
-
);
|
|
60
|
-
function Et() {
|
|
61
|
-
const t = q(null), [n, r] = z(0);
|
|
62
|
-
return Dt(() => {
|
|
63
|
-
const a = t.current;
|
|
64
|
-
if (!a)
|
|
65
|
-
return;
|
|
66
|
-
let l = 0;
|
|
67
|
-
const o = Nt((s) => {
|
|
68
|
-
var D;
|
|
69
|
-
const f = ((D = s[0]) == null ? void 0 : D.contentRect.width) ?? 0;
|
|
70
|
-
cancelAnimationFrame(l), l = requestAnimationFrame(() => r(f));
|
|
71
|
-
});
|
|
72
|
-
return o.observe(a), () => {
|
|
73
|
-
cancelAnimationFrame(l), o.disconnect();
|
|
74
|
-
};
|
|
75
|
-
}, []), { ref: t, width: n };
|
|
76
|
-
}
|
|
77
|
-
function Ft(t) {
|
|
78
|
-
const { onWidthChange: n, margin: r, cols: a, containerPadding: l } = t, { ref: o, width: s } = Et(), f = q(0);
|
|
79
|
-
return te(() => {
|
|
80
|
-
s > 0 && s !== f.current && (n == null || n(
|
|
81
|
-
s,
|
|
82
|
-
r,
|
|
83
|
-
a,
|
|
84
|
-
l
|
|
85
|
-
), f.current = s);
|
|
86
|
-
}, [s, n, r, a, l]), /* @__PURE__ */ P.jsxDEV("div", { ref: o, style: { width: "100%" }, children: s > 0 && /* @__PURE__ */ P.jsxDEV(gt, { ...t, width: s }, void 0, !1, {
|
|
87
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/GridDND/GridDND.MeasuredContainer.tsx",
|
|
88
|
-
lineNumber: 35,
|
|
89
|
-
columnNumber: 21
|
|
90
|
-
}, this) }, void 0, !1, {
|
|
91
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/GridDND/GridDND.MeasuredContainer.tsx",
|
|
92
|
-
lineNumber: 33,
|
|
93
|
-
columnNumber: 5
|
|
94
|
-
}, this);
|
|
95
|
-
}
|
|
96
|
-
const Ht = Rt(
|
|
97
|
-
["background-color:", ";border-radius:16px;outline:1px solid ", ";"],
|
|
98
|
-
() => bt,
|
|
99
|
-
() => kt
|
|
100
|
-
), Tt = Fe.div.withConfig({ displayName: "GridDNDstyled__GridDNDContainer" })(
|
|
101
|
-
["width:100%;min-height:400px;max-width:1890px;&:has(.react-grid-placeholder){& .react-grid-item.react-grid-placeholder{", " opacity:1;}}"],
|
|
102
|
-
Ht
|
|
103
|
-
), Wt = Fe.div.attrs(() => ({
|
|
104
|
-
className: U.gridItem
|
|
105
|
-
})).withConfig({ displayName: "GridDNDstyled__GridItem" })(
|
|
106
|
-
["&.react-draggable-dragging{outline:2px solid ", ";box-shadow:", ";cursor:grabbing;}& .", "{cursor:default;}height:100%;width:100%;cursor:", ";background-color:white;border-radius:16px;outline:", ";box-shadow:", ";overflow:hidden;"],
|
|
107
|
-
() => vt,
|
|
108
|
-
() => Gt,
|
|
109
|
-
Ke.topSlot,
|
|
110
|
-
(t) => t.$isDraggable ? "grab" : "default",
|
|
111
|
-
(t) => t.$isDraggable ? `2px solid ${Ot}` : "none",
|
|
112
|
-
() => Mt
|
|
113
|
-
), jt = Fe.div.withConfig({ displayName: "GridDNDstyled__GridItemContent" })(["height:100%;width:100%;"]), St = (t) => !t || t === "." || t === "-" || t === " ";
|
|
114
|
-
function Ct(t, n, r, a) {
|
|
115
|
-
var f, D;
|
|
116
|
-
const l = [], o = r[n], s = /* @__PURE__ */ new Set();
|
|
117
|
-
for (let G = 0; G < t.length; G++) {
|
|
118
|
-
const O = t[G];
|
|
119
|
-
if (!O)
|
|
120
|
-
return l;
|
|
121
|
-
for (let i = 0; i < O.length; i++) {
|
|
122
|
-
const m = O[i];
|
|
123
|
-
if (!m || St(m) || s.has(`${m}`))
|
|
124
|
-
continue;
|
|
125
|
-
let p = 0;
|
|
126
|
-
for (let d = i; d < O.length && O[d] === m; d++)
|
|
127
|
-
p++;
|
|
128
|
-
let w = 0;
|
|
129
|
-
for (let d = G; d < t.length; d++) {
|
|
130
|
-
let g = !0;
|
|
131
|
-
for (let b = i; b < i + p; b++)
|
|
132
|
-
if (!((f = t[d]) != null && f[b]) || ((D = t[d]) == null ? void 0 : D[b]) !== m) {
|
|
133
|
-
g = !1;
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
if (!g)
|
|
137
|
-
break;
|
|
138
|
-
w++;
|
|
139
|
-
}
|
|
140
|
-
for (let d = G; d < G + w; d++)
|
|
141
|
-
for (let g = i; g < i + p; g++)
|
|
142
|
-
s.add(`${m}`);
|
|
143
|
-
l.push({
|
|
144
|
-
i: m,
|
|
145
|
-
// ID элемента (имя из grid-template-areas)
|
|
146
|
-
x: i,
|
|
147
|
-
// X координата
|
|
148
|
-
y: G,
|
|
149
|
-
// Y координата
|
|
150
|
-
w: p,
|
|
151
|
-
// Ширина в колонках
|
|
152
|
-
h: w,
|
|
153
|
-
// Высота в строках
|
|
154
|
-
minW: 1,
|
|
155
|
-
// Минимальная ширина
|
|
156
|
-
maxW: o,
|
|
157
|
-
// Максимальная ширина (ограничена количеством колонок)
|
|
158
|
-
minH: 1,
|
|
159
|
-
// Минимальная высота
|
|
160
|
-
isResizable: a,
|
|
161
|
-
// Можно ли изменять размер
|
|
162
|
-
static: !1
|
|
163
|
-
// Элемент не статичный (можно перемещать)
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return l;
|
|
168
|
-
}
|
|
169
|
-
function er(t) {
|
|
170
|
-
return Object.keys(t).sort((n, r) => (t[r] || 0) - (t[n] || 0));
|
|
171
|
-
}
|
|
172
|
-
function tr(t, n) {
|
|
173
|
-
const r = Object.keys(t).sort((a, l) => {
|
|
174
|
-
const o = t[a] || 0;
|
|
175
|
-
return (t[l] || 0) - o;
|
|
176
|
-
});
|
|
177
|
-
for (const a of r) {
|
|
178
|
-
const l = t[a];
|
|
179
|
-
if (l !== void 0 && n >= l)
|
|
180
|
-
return a;
|
|
181
|
-
}
|
|
182
|
-
return r[r.length - 1];
|
|
183
|
-
}
|
|
184
|
-
function rr(t, n, r) {
|
|
185
|
-
var l, o;
|
|
186
|
-
const a = r.indexOf(t);
|
|
187
|
-
if (a === -1)
|
|
188
|
-
return null;
|
|
189
|
-
for (let s = a - 1; s >= 0; s--) {
|
|
190
|
-
const f = r[s];
|
|
191
|
-
if (f && ((l = n[f]) != null && l.length))
|
|
192
|
-
return f;
|
|
193
|
-
}
|
|
194
|
-
for (let s = a + 1; s < r.length; s++) {
|
|
195
|
-
const f = r[s];
|
|
196
|
-
if (f && ((o = n[f]) != null && o.length))
|
|
197
|
-
return f;
|
|
198
|
-
}
|
|
199
|
-
return null;
|
|
200
|
-
}
|
|
201
|
-
function nr(t, n) {
|
|
202
|
-
const r = [...t].map((i) => ({
|
|
203
|
-
...i,
|
|
204
|
-
// Ограничиваем ширину элемента количеством колонок
|
|
205
|
-
w: Math.max(1, Math.min(i.w, n))
|
|
206
|
-
// Старые координаты не важны - будем раскладывать заново
|
|
207
|
-
})).sort((i, m) => i.y - m.y || i.x - m.x), a = [], l = (i) => {
|
|
208
|
-
for (; a.length < i; )
|
|
209
|
-
a.push(Array(n).fill(!1));
|
|
210
|
-
}, o = (i, m, p, w) => {
|
|
211
|
-
l(m + w);
|
|
212
|
-
for (let d = m; d < m + w; d++) {
|
|
213
|
-
const g = a[d];
|
|
214
|
-
if (!g)
|
|
215
|
-
return !1;
|
|
216
|
-
for (let b = i; b < i + p; b++)
|
|
217
|
-
if (b >= n || g[b])
|
|
218
|
-
return !1;
|
|
219
|
-
}
|
|
220
|
-
return !0;
|
|
221
|
-
}, s = (i, m, p, w) => {
|
|
222
|
-
l(m + w);
|
|
223
|
-
for (let d = m; d < m + w; d++) {
|
|
224
|
-
const g = a[d];
|
|
225
|
-
if (g)
|
|
226
|
-
for (let b = i; b < i + p; b++)
|
|
227
|
-
b < g.length && (g[b] = !0);
|
|
228
|
-
}
|
|
229
|
-
}, f = (i) => {
|
|
230
|
-
let m = i;
|
|
231
|
-
for (; ; ) {
|
|
232
|
-
l(m + 1);
|
|
233
|
-
const p = a[m];
|
|
234
|
-
if (p && p.some((w) => !w))
|
|
235
|
-
return m;
|
|
236
|
-
m++;
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
let D = 0, G = 0;
|
|
240
|
-
const O = [];
|
|
241
|
-
for (const i of r) {
|
|
242
|
-
let m = !1;
|
|
243
|
-
for (let w = G; w <= n - i.w; w++)
|
|
244
|
-
if (o(w, D, i.w, i.h)) {
|
|
245
|
-
s(w, D, i.w, i.h), O.push({
|
|
246
|
-
...i,
|
|
247
|
-
x: w,
|
|
248
|
-
y: D
|
|
249
|
-
}), G = w + i.w, G > n - 1 && (D = f(D), G = 0), m = !0;
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
if (m)
|
|
253
|
-
continue;
|
|
254
|
-
D = f(D), G = 0;
|
|
255
|
-
let p = D;
|
|
256
|
-
for (; ; ) {
|
|
257
|
-
let w = !1;
|
|
258
|
-
for (let d = 0; d <= n - i.w; d++)
|
|
259
|
-
if (o(d, p, i.w, i.h)) {
|
|
260
|
-
s(d, p, i.w, i.h), O.push({
|
|
261
|
-
...i,
|
|
262
|
-
x: d,
|
|
263
|
-
y: p
|
|
264
|
-
}), p === D && (G = d + i.w, G > n - 1 && (D = f(D), G = 0)), w = !0;
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
if (w)
|
|
268
|
-
break;
|
|
269
|
-
p++;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
return O;
|
|
273
|
-
}
|
|
274
|
-
const ee = (t) => t === "l" ? {
|
|
275
|
-
w: 2,
|
|
276
|
-
h: 2
|
|
277
|
-
} : t === "m" ? {
|
|
278
|
-
w: 2,
|
|
279
|
-
h: 1
|
|
280
|
-
} : {
|
|
281
|
-
w: 1,
|
|
282
|
-
h: 1
|
|
283
|
-
};
|
|
284
|
-
function Ee(t, n) {
|
|
285
|
-
if (!t || !n || t.length !== n.length)
|
|
286
|
-
return !1;
|
|
287
|
-
const r = [...t].sort((l, o) => l.i > o.i ? 1 : -1), a = [...n].sort((l, o) => l.i > o.i ? 1 : -1);
|
|
288
|
-
for (let l = 0; l < r.length; l += 1) {
|
|
289
|
-
const o = r[l], s = a[l];
|
|
290
|
-
if (!o || !s || o.i !== s.i || o.x !== s.x || o.y !== s.y || o.w !== s.w || o.h !== s.h)
|
|
291
|
-
return !1;
|
|
292
|
-
}
|
|
293
|
-
return !0;
|
|
294
|
-
}
|
|
295
|
-
function ye(t, n, r) {
|
|
296
|
-
for (; t.length < n; )
|
|
297
|
-
t.push(Array(r).fill(!1));
|
|
298
|
-
}
|
|
299
|
-
function _t(t, n, r) {
|
|
300
|
-
ye(t, n + 1, r);
|
|
301
|
-
const a = t[n];
|
|
302
|
-
return a ? a.some((l) => !l) : !1;
|
|
303
|
-
}
|
|
304
|
-
function he(t, n, r, a = 0) {
|
|
305
|
-
ye(t, n + 1, r);
|
|
306
|
-
const l = t[n];
|
|
307
|
-
if (!l)
|
|
308
|
-
return -1;
|
|
309
|
-
for (let o = Math.max(0, a); o < r; o++) {
|
|
310
|
-
if (o >= l.length)
|
|
311
|
-
return -1;
|
|
312
|
-
if (!l[o])
|
|
313
|
-
return o;
|
|
314
|
-
}
|
|
315
|
-
return -1;
|
|
316
|
-
}
|
|
317
|
-
function Xe(t, n, r, a, l, o) {
|
|
318
|
-
ye(t, r + l, o);
|
|
319
|
-
for (let s = r; s < r + l; s++) {
|
|
320
|
-
const f = t[s];
|
|
321
|
-
if (!f)
|
|
322
|
-
return !1;
|
|
323
|
-
for (let D = n; D < n + a; D++)
|
|
324
|
-
if (D >= o || f[D])
|
|
325
|
-
return !1;
|
|
326
|
-
}
|
|
327
|
-
return !0;
|
|
328
|
-
}
|
|
329
|
-
function qt(t, n, r, a, l, o) {
|
|
330
|
-
ye(t, r + l, o);
|
|
331
|
-
for (let s = r; s < r + l; s++) {
|
|
332
|
-
const f = t[s];
|
|
333
|
-
if (f)
|
|
334
|
-
for (let D = n; D < n + a; D++)
|
|
335
|
-
D < o && (f[D] = !0);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
function Ye(t, n, r) {
|
|
339
|
-
let a = Math.max(0, n);
|
|
340
|
-
for (; ; ) {
|
|
341
|
-
if (_t(t, a, r))
|
|
342
|
-
return a;
|
|
343
|
-
a++;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
function It(t, n, r, a) {
|
|
347
|
-
const l = [], o = [];
|
|
348
|
-
let s = 0, f = 0;
|
|
349
|
-
for (const D of t) {
|
|
350
|
-
const G = n[D];
|
|
351
|
-
if (!G)
|
|
352
|
-
continue;
|
|
353
|
-
const O = G, i = Math.max(1, Math.min(O.w, r)), m = Math.max(1, O.h);
|
|
354
|
-
let p = null;
|
|
355
|
-
for (let g = f; g <= r - i; g++)
|
|
356
|
-
if (Xe(o, g, s, i, m, r)) {
|
|
357
|
-
p = {
|
|
358
|
-
x: g,
|
|
359
|
-
y: s
|
|
360
|
-
};
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
if (!p) {
|
|
364
|
-
let g = s + 1;
|
|
365
|
-
for (; ; ) {
|
|
366
|
-
for (let b = 0; b <= r - i; b++)
|
|
367
|
-
if (Xe(o, b, g, i, m, r)) {
|
|
368
|
-
p = {
|
|
369
|
-
x: b,
|
|
370
|
-
y: g
|
|
371
|
-
};
|
|
372
|
-
break;
|
|
373
|
-
}
|
|
374
|
-
if (p)
|
|
375
|
-
break;
|
|
376
|
-
g++;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
const {
|
|
380
|
-
x: w,
|
|
381
|
-
y: d
|
|
382
|
-
} = p;
|
|
383
|
-
if (qt(o, w, d, i, m, r), l.push({
|
|
384
|
-
i: D,
|
|
385
|
-
x: w,
|
|
386
|
-
y: d,
|
|
387
|
-
w: i,
|
|
388
|
-
h: m,
|
|
389
|
-
minW: 1,
|
|
390
|
-
maxW: r,
|
|
391
|
-
minH: 1,
|
|
392
|
-
isResizable: a,
|
|
393
|
-
static: !1
|
|
394
|
-
}), d > s)
|
|
395
|
-
s = d, f = Math.max(0, he(o, s, r, 0)), f === -1 && (s = Ye(o, s, r), f = he(o, s, r, 0));
|
|
396
|
-
else {
|
|
397
|
-
const g = he(o, s, r, w + i);
|
|
398
|
-
g === -1 ? (s = Ye(o, s, r), f = he(o, s, r, 0)) : f = g;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
return l;
|
|
402
|
-
}
|
|
403
|
-
function ze(t) {
|
|
404
|
-
return [...t].sort((n, r) => n.y - r.y || n.x - r.x).map((n) => n.i);
|
|
405
|
-
}
|
|
406
|
-
const ir = (t) => Object.keys(t).sort((n, r) => (t[r] || 0) - (t[n] || 0))[0] ?? "lg";
|
|
407
|
-
function Bt(t, n, r, a, l = 0, o = 0) {
|
|
408
|
-
const s = t.reduce((i, m) => Math.max(i, m.y + m.h), 0), f = Array.from({
|
|
409
|
-
length: Math.max(s, o) + a + 1
|
|
410
|
-
}, () => Array(n).fill(!1));
|
|
411
|
-
for (const {
|
|
412
|
-
x: i,
|
|
413
|
-
y: m,
|
|
414
|
-
w: p,
|
|
415
|
-
h: w
|
|
416
|
-
} of t)
|
|
417
|
-
for (let d = m; d < m + w; d++) {
|
|
418
|
-
f[d] || (f[d] = Array(n).fill(!1));
|
|
419
|
-
const g = f[d];
|
|
420
|
-
for (let b = i; b < i + p; b++)
|
|
421
|
-
d >= 0 && b >= 0 && b < n && g && (g[b] = !0);
|
|
422
|
-
}
|
|
423
|
-
const D = (i, m) => {
|
|
424
|
-
for (let p = m; p < m + a; p++) {
|
|
425
|
-
f[p] || (f[p] = Array(n).fill(!1));
|
|
426
|
-
const w = f[p];
|
|
427
|
-
for (let d = i; d < i + r; d++)
|
|
428
|
-
if (d >= n || w && w[d])
|
|
429
|
-
return !1;
|
|
430
|
-
}
|
|
431
|
-
return !0;
|
|
432
|
-
}, G = (i, m) => {
|
|
433
|
-
for (let p = m; p < m + a; p++) {
|
|
434
|
-
f[p] || (f[p] = Array(n).fill(!1));
|
|
435
|
-
const w = f[p];
|
|
436
|
-
for (let d = i; d < i + r; d++)
|
|
437
|
-
d < n && w && (w[d] = !0);
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
let O = o;
|
|
441
|
-
for (; ; ) {
|
|
442
|
-
f[O] || (f[O] = Array(n).fill(!1));
|
|
443
|
-
for (let i = O === o ? l : 0; i <= n - r; i++)
|
|
444
|
-
if (D(i, O))
|
|
445
|
-
return G(i, O), {
|
|
446
|
-
x: i,
|
|
447
|
-
y: O
|
|
448
|
-
};
|
|
449
|
-
O++;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
const sr = (t) => {
|
|
453
|
-
typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => t(!1)) : setTimeout(() => t(!1), 0);
|
|
454
|
-
}, $t = ({ children: t, className: n }) => /* @__PURE__ */ P.jsxDEV(jt, { className: n, children: t }, void 0, !1, {
|
|
455
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/GridDND/GridDND.tsx",
|
|
456
|
-
lineNumber: 47,
|
|
457
|
-
columnNumber: 1
|
|
458
|
-
}, void 0), Pe = (...t) => (
|
|
459
|
-
// eslint-disable-next-line no-console
|
|
460
|
-
console.log("%c[GridDND]", "color:#6b5b95;font-weight:600", ...t)
|
|
461
|
-
), Vt = ht(
|
|
462
|
-
({
|
|
463
|
-
// Источник истины — последовательность
|
|
464
|
-
items: t,
|
|
465
|
-
// Адаптивность
|
|
466
|
-
breakpoints: n = { lg: 1375, md: 1143, sm: 911, xs: 679, xxs: 0 },
|
|
467
|
-
cols: r = { lg: 6, md: 5, sm: 4, xs: 3, xxs: 2 },
|
|
468
|
-
rowHeights: a = { lg: 248, md: 248, sm: 248, xs: 248, xxs: 248 },
|
|
469
|
-
// RGL поведение
|
|
470
|
-
isDraggable: l = !0,
|
|
471
|
-
isResizable: o = !1,
|
|
472
|
-
margin: s = [16, 16],
|
|
473
|
-
containerPadding: f = [0, 0],
|
|
474
|
-
preventCollision: D = !1,
|
|
475
|
-
allowOverlap: G = !1,
|
|
476
|
-
isBounded: O = !0,
|
|
477
|
-
autoSize: i = !0,
|
|
478
|
-
useCSSTransforms: m = !0,
|
|
479
|
-
compactType: p = "horizontal",
|
|
480
|
-
smartCompact: w = !0,
|
|
481
|
-
resizeHandles: d = ["se", "sw", "ne", "nw", "s", "w", "e", "n"],
|
|
482
|
-
draggableHandle: g = `.${U.dragHandle}`,
|
|
483
|
-
draggableCancel: b = `button, input, select, textarea, .${U.noDrag}, .${Ke.topSlot}, .${wt.root}`,
|
|
484
|
-
maxRows: Qe,
|
|
485
|
-
transformScale: Ue,
|
|
486
|
-
// Колбеки
|
|
487
|
-
onLayoutChange: M,
|
|
488
|
-
onBreakpointChange: re,
|
|
489
|
-
onItemsChange: E,
|
|
490
|
-
onWidthChange: ne,
|
|
491
|
-
onDrag: ie,
|
|
492
|
-
onDragStart: se,
|
|
493
|
-
onDragStop: oe,
|
|
494
|
-
// Контент
|
|
495
|
-
children: ge,
|
|
496
|
-
// Задержка активации D&D
|
|
497
|
-
dragActivationDelay: Ne = 0,
|
|
498
|
-
// Стилизация
|
|
499
|
-
gridItemComponent: He,
|
|
500
|
-
containerStyle: Je,
|
|
501
|
-
gridStyle: Ze,
|
|
502
|
-
enableLogs: Te = !1
|
|
503
|
-
}, Le) => {
|
|
504
|
-
const [R, ce] = z(
|
|
505
|
-
() => t.map((e) => e.id)
|
|
506
|
-
), J = q(
|
|
507
|
-
Object.fromEntries(t.map((e) => [e.id, ee(e.type)]))
|
|
508
|
-
), be = q(!1), Z = q({
|
|
509
|
-
lg: [],
|
|
510
|
-
md: [],
|
|
511
|
-
sm: [],
|
|
512
|
-
xs: [],
|
|
513
|
-
xxs: []
|
|
514
|
-
}), K = q("lg"), Q = q(
|
|
515
|
-
[]
|
|
516
|
-
), $ = Ne > 0, [ke, We] = z(!1), [Ce, ve] = z(null), le = q(
|
|
517
|
-
null
|
|
518
|
-
), Ge = q(!1), Oe = q(null), ue = q(null), C = A(() => {
|
|
519
|
-
le.current && (clearTimeout(le.current), le.current = null);
|
|
520
|
-
}, []), ae = A(() => {
|
|
521
|
-
We(!1), ve(null), Ge.current = !1;
|
|
522
|
-
}, []), et = 64;
|
|
523
|
-
te(
|
|
524
|
-
() => {
|
|
525
|
-
if (!$ || !Oe.current)
|
|
526
|
-
return;
|
|
527
|
-
const e = Oe.current;
|
|
528
|
-
let u = null;
|
|
529
|
-
const c = (y, k) => {
|
|
530
|
-
const F = (T) => {
|
|
531
|
-
const W = T.clientX - y, V = T.clientY - k;
|
|
532
|
-
W * W + V * V > et && (C(), ve(null), ue.current = null, x());
|
|
533
|
-
};
|
|
534
|
-
document.addEventListener("pointermove", F), u = () => {
|
|
535
|
-
document.removeEventListener("pointermove", F), u = null;
|
|
536
|
-
};
|
|
537
|
-
}, x = () => {
|
|
538
|
-
u == null || u();
|
|
539
|
-
}, h = (y) => {
|
|
540
|
-
const k = y.target;
|
|
541
|
-
return y.offsetX > k.clientWidth || y.offsetY > k.clientHeight;
|
|
542
|
-
}, N = (y) => {
|
|
543
|
-
if (y._synthetic || y.button !== 0 || h(y))
|
|
544
|
-
return;
|
|
545
|
-
C(), x();
|
|
546
|
-
const F = y.target.closest(`.${U.gridItem}`), T = F == null ? void 0 : F.querySelector(`.${U.gridItemWrapper}`), W = (T == null ? void 0 : T.id) ?? null, V = F == null ? void 0 : F.querySelector(
|
|
547
|
-
`.${U.dragHandle}`
|
|
548
|
-
);
|
|
549
|
-
ve(W), ue.current = {
|
|
550
|
-
clientX: y.clientX,
|
|
551
|
-
clientY: y.clientY,
|
|
552
|
-
handleEl: V
|
|
553
|
-
}, c(y.clientX, y.clientY), le.current = setTimeout(() => {
|
|
554
|
-
x(), We(!0), requestAnimationFrame(() => {
|
|
555
|
-
requestAnimationFrame(() => {
|
|
556
|
-
const X = ue.current;
|
|
557
|
-
if (!(X != null && X.handleEl))
|
|
558
|
-
return;
|
|
559
|
-
const xe = new MouseEvent("mousedown", {
|
|
560
|
-
bubbles: !0,
|
|
561
|
-
cancelable: !0,
|
|
562
|
-
clientX: X.clientX,
|
|
563
|
-
clientY: X.clientY,
|
|
564
|
-
button: 0,
|
|
565
|
-
buttons: 1
|
|
566
|
-
});
|
|
567
|
-
xe._synthetic = !0, X.handleEl.dispatchEvent(xe);
|
|
568
|
-
});
|
|
569
|
-
});
|
|
570
|
-
}, Ne);
|
|
571
|
-
}, v = () => {
|
|
572
|
-
C(), x(), ue.current = null, Ge.current || requestAnimationFrame(() => {
|
|
573
|
-
ae();
|
|
574
|
-
});
|
|
575
|
-
};
|
|
576
|
-
return e.addEventListener("pointerdown", N), document.addEventListener("pointerup", v), () => {
|
|
577
|
-
e.removeEventListener("pointerdown", N), document.removeEventListener("pointerup", v), C(), x();
|
|
578
|
-
};
|
|
579
|
-
},
|
|
580
|
-
[
|
|
581
|
-
$,
|
|
582
|
-
Ne,
|
|
583
|
-
C,
|
|
584
|
-
ae
|
|
585
|
-
]
|
|
586
|
-
);
|
|
587
|
-
const je = $ ? l && ke : l, [I, Se] = z({
|
|
588
|
-
lg: [],
|
|
589
|
-
md: [],
|
|
590
|
-
sm: [],
|
|
591
|
-
xs: [],
|
|
592
|
-
xxs: []
|
|
593
|
-
}), [_e, tt] = z("lg"), [j, rt] = z(
|
|
594
|
-
a.lg ?? Ve
|
|
595
|
-
), [nt, de] = z(p), [it, qe] = z(!1), st = De(
|
|
596
|
-
() => g.split(".").join(" "),
|
|
597
|
-
[g]
|
|
598
|
-
), ot = De(
|
|
599
|
-
() => He ?? $t,
|
|
600
|
-
[He]
|
|
601
|
-
), fe = De(
|
|
602
|
-
() => new Map(t.map((e) => [e.id, e.type])),
|
|
603
|
-
[t]
|
|
604
|
-
), L = q(/* @__PURE__ */ new Map()), me = A(
|
|
605
|
-
(e) => L.current.get(e) ?? fe.get(e) ?? "s",
|
|
606
|
-
[fe]
|
|
607
|
-
), B = A(
|
|
608
|
-
(e) => e.map((u) => ({ id: u, type: me(u) })),
|
|
609
|
-
[me]
|
|
610
|
-
), Me = A(
|
|
611
|
-
(e) => a[e] ?? a.md ?? Ve,
|
|
612
|
-
[a]
|
|
613
|
-
), H = A(
|
|
614
|
-
(e, u, c) => {
|
|
615
|
-
const x = c ?? R, h = u[e] ?? [], N = Z.current[e] ?? [], v = new Map(h.map((k) => [k.i, k])), y = new Map(N.map((k) => [k.i, k]));
|
|
616
|
-
return x.map((k) => {
|
|
617
|
-
const F = me(k), T = v.get(k) ?? y.get(k) ?? null, W = J.current[k] ?? ee(F), V = T ? { x: T.x, y: T.y, w: T.w, h: T.h } : { x: 0, y: 0, w: W.w, h: W.h };
|
|
618
|
-
return { id: k, type: F, position: V };
|
|
619
|
-
});
|
|
620
|
-
},
|
|
621
|
-
[R, me]
|
|
622
|
-
), Ie = A(
|
|
623
|
-
(e) => {
|
|
624
|
-
const u = Z.current[e] ?? [];
|
|
625
|
-
return u.length ? u : I[e] ?? [];
|
|
626
|
-
},
|
|
627
|
-
[I]
|
|
628
|
-
), S = A(
|
|
629
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
630
|
-
(...e) => {
|
|
631
|
-
Te && Pe(...e);
|
|
632
|
-
},
|
|
633
|
-
[Te]
|
|
634
|
-
), pe = A((e) => {
|
|
635
|
-
Z.current = e, be.current = !0, qe(!0), Se(e), requestAnimationFrame(() => {
|
|
636
|
-
requestAnimationFrame(() => {
|
|
637
|
-
be.current = !1, qe(!1), Pe("[GridDND] reflow window closed");
|
|
638
|
-
});
|
|
639
|
-
});
|
|
640
|
-
}, []), _ = A(
|
|
641
|
-
(e) => {
|
|
642
|
-
const u = {};
|
|
643
|
-
for (const c of Object.keys(r)) {
|
|
644
|
-
const x = r[c] ?? Y;
|
|
645
|
-
u[c] = It(
|
|
646
|
-
e,
|
|
647
|
-
J.current,
|
|
648
|
-
x,
|
|
649
|
-
o
|
|
650
|
-
);
|
|
651
|
-
}
|
|
652
|
-
return S("reflowAllByOrder", { order: e, out: u }), pe(u), u;
|
|
653
|
-
},
|
|
654
|
-
[r, o, pe, S]
|
|
655
|
-
), Be = A(
|
|
656
|
-
(e, u) => {
|
|
657
|
-
if (!w)
|
|
658
|
-
return;
|
|
659
|
-
const c = Date.now();
|
|
660
|
-
if (Q.current.push({ x: e, y: u, timestamp: c }), Q.current = Q.current.filter(
|
|
661
|
-
(N) => c - N.timestamp <= 300
|
|
662
|
-
), Q.current.length < 2)
|
|
663
|
-
return;
|
|
664
|
-
let x = 0, h = 0;
|
|
665
|
-
for (let N = 1; N < Q.current.length; N += 1) {
|
|
666
|
-
const v = Q.current[N - 1], y = Q.current[N];
|
|
667
|
-
!v || !y || (x += Math.abs(y.x - v.x), h += Math.abs(y.y - v.y));
|
|
668
|
-
}
|
|
669
|
-
x + h < 10 || (x > h * 1.5 ? de("horizontal") : h > x * 1.5 && de("vertical"));
|
|
670
|
-
},
|
|
671
|
-
[w]
|
|
672
|
-
), $e = A(() => {
|
|
673
|
-
requestAnimationFrame(() => {
|
|
674
|
-
requestAnimationFrame(() => {
|
|
675
|
-
const e = Z.current, u = {};
|
|
676
|
-
for (const [c, x] of Object.entries(e))
|
|
677
|
-
u[c] = x.map((h) => ({ ...h }));
|
|
678
|
-
S("[GridDND] forceSyncWithRgl → re-push target layouts"), pe(u);
|
|
679
|
-
});
|
|
680
|
-
});
|
|
681
|
-
}, [pe, S]);
|
|
682
|
-
te(() => {
|
|
683
|
-
_(t.map((e) => e.id));
|
|
684
|
-
}, []), te(() => {
|
|
685
|
-
const e = /* @__PURE__ */ new Set([...fe.keys(), ...R]);
|
|
686
|
-
L.current.forEach((u, c) => {
|
|
687
|
-
e.has(c) || L.current.delete(c);
|
|
688
|
-
});
|
|
689
|
-
}, [fe, R]), te(() => {
|
|
690
|
-
t.forEach((e) => {
|
|
691
|
-
J.current[e.id] || (J.current[e.id] = ee(e.type));
|
|
692
|
-
});
|
|
693
|
-
}, [t]);
|
|
694
|
-
const ct = A(
|
|
695
|
-
(e, u, c, x, h, N) => {
|
|
696
|
-
Q.current = [], de(p), $ && (Ge.current = !0), se == null || se(e, u, c, x, h, N);
|
|
697
|
-
},
|
|
698
|
-
[p, se, $]
|
|
699
|
-
), lt = A(
|
|
700
|
-
(e, u, c, x, h, N) => {
|
|
701
|
-
Be(h.clientX, h.clientY), ie == null || ie(e, u, c, x, h, N);
|
|
702
|
-
},
|
|
703
|
-
[Be, ie]
|
|
704
|
-
), ut = A(
|
|
705
|
-
(e, u, c, x, h, N) => {
|
|
706
|
-
oe == null || oe(e, u, c, x, h, N), $ && ae();
|
|
707
|
-
const v = ze(e);
|
|
708
|
-
S("[GridDND] dragStop: nextOrder(readingOrder)", v), ce(v);
|
|
709
|
-
const y = _(v), k = K.current, F = H(k, y, v);
|
|
710
|
-
E == null || E(F), M == null || M(
|
|
711
|
-
{
|
|
712
|
-
breakpoint: k,
|
|
713
|
-
cols: r[k] ?? Y,
|
|
714
|
-
rowHeight: j,
|
|
715
|
-
items: F
|
|
716
|
-
},
|
|
717
|
-
y,
|
|
718
|
-
{ itemsOrder: v, itemsOrderTyped: B(v) }
|
|
719
|
-
), de(p);
|
|
720
|
-
const T = e, W = y[k];
|
|
721
|
-
Ee(T, W) ? S("[GridDND] dragStop: live layout == target (OK)") : (S(
|
|
722
|
-
"[GridDND] dragStop: live layout != target → forceSyncWithRgl()"
|
|
723
|
-
), $e());
|
|
724
|
-
},
|
|
725
|
-
[
|
|
726
|
-
oe,
|
|
727
|
-
$,
|
|
728
|
-
ae,
|
|
729
|
-
_,
|
|
730
|
-
H,
|
|
731
|
-
E,
|
|
732
|
-
M,
|
|
733
|
-
r,
|
|
734
|
-
j,
|
|
735
|
-
p,
|
|
736
|
-
$e,
|
|
737
|
-
S,
|
|
738
|
-
B
|
|
739
|
-
]
|
|
740
|
-
), at = A(
|
|
741
|
-
(e, u) => {
|
|
742
|
-
S("RGL onLayoutChange", { cur: e, all: u });
|
|
743
|
-
const c = K.current, x = (Z.current[c] ?? []).length;
|
|
744
|
-
if (e.length === x && Ee(e, Z.current[c])) {
|
|
745
|
-
S("[GridDND] onLayoutChange[IGNORED: equals-target]", { bp: c });
|
|
746
|
-
return;
|
|
747
|
-
}
|
|
748
|
-
if (be.current) {
|
|
749
|
-
S("[GridDND] onLayoutChange[IGNORED: reflow-window]", {
|
|
750
|
-
bp: c,
|
|
751
|
-
cur: e
|
|
752
|
-
});
|
|
753
|
-
return;
|
|
754
|
-
}
|
|
755
|
-
const h = r[c] ?? Y;
|
|
756
|
-
if (e.some(
|
|
757
|
-
(y) => typeof y.maxW == "number" && y.maxW !== h
|
|
758
|
-
))
|
|
759
|
-
return;
|
|
760
|
-
if (Ee(e, Z.current[c])) {
|
|
761
|
-
S("[GridDND] onLayoutChange[IGNORED: equals-target]", { bp: c });
|
|
762
|
-
return;
|
|
763
|
-
}
|
|
764
|
-
Se((y) => ({ ...y, [c]: e.map((k) => ({ ...k })) }));
|
|
765
|
-
const v = H(c, { ...I, [c]: e });
|
|
766
|
-
M == null || M(
|
|
767
|
-
{
|
|
768
|
-
breakpoint: c,
|
|
769
|
-
cols: h,
|
|
770
|
-
rowHeight: j,
|
|
771
|
-
items: v
|
|
772
|
-
},
|
|
773
|
-
{ ...I, [c]: e },
|
|
774
|
-
{ itemsOrder: R }
|
|
775
|
-
);
|
|
776
|
-
},
|
|
777
|
-
[
|
|
778
|
-
M,
|
|
779
|
-
H,
|
|
780
|
-
I,
|
|
781
|
-
r,
|
|
782
|
-
j,
|
|
783
|
-
R,
|
|
784
|
-
S
|
|
785
|
-
]
|
|
786
|
-
), dt = A(
|
|
787
|
-
(e) => {
|
|
788
|
-
K.current = e, tt(e), rt(Me(e));
|
|
789
|
-
const u = _(R), c = H(e, u, R);
|
|
790
|
-
re == null || re(e, {
|
|
791
|
-
breakpoint: e,
|
|
792
|
-
cols: r[e] ?? Y,
|
|
793
|
-
rowHeight: Me(e),
|
|
794
|
-
items: c
|
|
795
|
-
});
|
|
796
|
-
},
|
|
797
|
-
[
|
|
798
|
-
Me,
|
|
799
|
-
_,
|
|
800
|
-
R,
|
|
801
|
-
H,
|
|
802
|
-
re,
|
|
803
|
-
r
|
|
804
|
-
]
|
|
805
|
-
), ft = A(
|
|
806
|
-
(e, u, c, x) => {
|
|
807
|
-
ne == null || ne(e, u, c, x);
|
|
808
|
-
},
|
|
809
|
-
[ne]
|
|
810
|
-
), Re = A(
|
|
811
|
-
(e) => {
|
|
812
|
-
L.current.delete(e), delete J.current[e], ce((u) => {
|
|
813
|
-
const c = u.filter((v) => v !== e), x = _(c), h = K.current, N = H(h, x, c);
|
|
814
|
-
return E == null || E(N), M == null || M(
|
|
815
|
-
{
|
|
816
|
-
breakpoint: h,
|
|
817
|
-
cols: r[h] ?? Y,
|
|
818
|
-
rowHeight: j,
|
|
819
|
-
items: N
|
|
820
|
-
},
|
|
821
|
-
x,
|
|
822
|
-
{ itemsOrder: c, itemsOrderTyped: B(c) }
|
|
823
|
-
), c;
|
|
824
|
-
});
|
|
825
|
-
},
|
|
826
|
-
[
|
|
827
|
-
_,
|
|
828
|
-
H,
|
|
829
|
-
E,
|
|
830
|
-
M,
|
|
831
|
-
r,
|
|
832
|
-
j,
|
|
833
|
-
B
|
|
834
|
-
]
|
|
835
|
-
), Ae = A(
|
|
836
|
-
(e, u) => {
|
|
837
|
-
if (!R.includes(e))
|
|
838
|
-
return;
|
|
839
|
-
L.current.set(e, u);
|
|
840
|
-
const c = K.current, x = r[c] ?? Y, h = ee(u);
|
|
841
|
-
J.current[e] = {
|
|
842
|
-
w: Math.max(1, Math.min(h.w, x)),
|
|
843
|
-
h: Math.max(1, h.h)
|
|
844
|
-
};
|
|
845
|
-
const N = _(R), v = H(c, N, R);
|
|
846
|
-
E == null || E(v), M == null || M(
|
|
847
|
-
{
|
|
848
|
-
breakpoint: c,
|
|
849
|
-
cols: x,
|
|
850
|
-
rowHeight: j,
|
|
851
|
-
items: v
|
|
852
|
-
},
|
|
853
|
-
N,
|
|
854
|
-
{ itemsOrder: R, itemsOrderTyped: B(R) }
|
|
855
|
-
);
|
|
856
|
-
},
|
|
857
|
-
[
|
|
858
|
-
R,
|
|
859
|
-
r,
|
|
860
|
-
_,
|
|
861
|
-
H,
|
|
862
|
-
E,
|
|
863
|
-
M,
|
|
864
|
-
j,
|
|
865
|
-
B
|
|
866
|
-
]
|
|
867
|
-
);
|
|
868
|
-
yt(
|
|
869
|
-
Le,
|
|
870
|
-
() => ({
|
|
871
|
-
api: {
|
|
872
|
-
getOrder: () => R,
|
|
873
|
-
getOrderDetailed: () => B(R),
|
|
874
|
-
setOrder: (e) => {
|
|
875
|
-
ce(e);
|
|
876
|
-
const u = _(e), c = K.current, x = H(c, u, e);
|
|
877
|
-
E == null || E(x), M == null || M(
|
|
878
|
-
{
|
|
879
|
-
breakpoint: c,
|
|
880
|
-
cols: r[c] ?? Y,
|
|
881
|
-
rowHeight: j,
|
|
882
|
-
items: x
|
|
883
|
-
},
|
|
884
|
-
u,
|
|
885
|
-
{ itemsOrder: e, itemsOrderTyped: B(e) }
|
|
886
|
-
);
|
|
887
|
-
},
|
|
888
|
-
addItem: (e, u) => {
|
|
889
|
-
L.current.set(
|
|
890
|
-
e.id,
|
|
891
|
-
e.type
|
|
892
|
-
);
|
|
893
|
-
const c = ee(e.type), x = K.current, h = r[x] ?? Y, N = {
|
|
894
|
-
w: Math.max(1, Math.min(c.w, h)),
|
|
895
|
-
h: Math.max(1, c.h)
|
|
896
|
-
};
|
|
897
|
-
J.current[e.id] = N;
|
|
898
|
-
const v = Ie(x);
|
|
899
|
-
let y = 0, k = 0;
|
|
900
|
-
if (u != null) {
|
|
901
|
-
const xe = Math.max(
|
|
902
|
-
0,
|
|
903
|
-
Math.min(u - 1, R.length - 1)
|
|
904
|
-
), pt = R[xe], we = v.find((xt) => xt.i === pt);
|
|
905
|
-
we && (k = we.y, y = we.x + we.w);
|
|
906
|
-
}
|
|
907
|
-
const F = Bt(
|
|
908
|
-
v,
|
|
909
|
-
h,
|
|
910
|
-
N.w,
|
|
911
|
-
N.h,
|
|
912
|
-
y,
|
|
913
|
-
k
|
|
914
|
-
), T = v.concat(
|
|
915
|
-
[
|
|
916
|
-
{ i: e.id, x: F.x, y: F.y, w: N.w, h: N.h }
|
|
917
|
-
]
|
|
918
|
-
), W = ze(T);
|
|
919
|
-
ce(W);
|
|
920
|
-
const V = _(W), X = H(x, V, W);
|
|
921
|
-
E == null || E(X), M == null || M(
|
|
922
|
-
{
|
|
923
|
-
breakpoint: x,
|
|
924
|
-
cols: h,
|
|
925
|
-
rowHeight: j,
|
|
926
|
-
items: X
|
|
927
|
-
},
|
|
928
|
-
V,
|
|
929
|
-
{
|
|
930
|
-
itemsOrder: W,
|
|
931
|
-
itemsOrderTyped: B(W)
|
|
932
|
-
}
|
|
933
|
-
);
|
|
934
|
-
},
|
|
935
|
-
removeItem: Re,
|
|
936
|
-
setItemType: Ae,
|
|
937
|
-
getAllLayouts: () => I,
|
|
938
|
-
getCurrentLayout: () => {
|
|
939
|
-
const e = K.current, u = H(e, I, R);
|
|
940
|
-
return {
|
|
941
|
-
breakpoint: e,
|
|
942
|
-
cols: r[e] ?? Y,
|
|
943
|
-
rowHeight: j,
|
|
944
|
-
items: u
|
|
945
|
-
};
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
}),
|
|
949
|
-
[
|
|
950
|
-
Re,
|
|
951
|
-
Ae,
|
|
952
|
-
R,
|
|
953
|
-
B,
|
|
954
|
-
_,
|
|
955
|
-
H,
|
|
956
|
-
E,
|
|
957
|
-
M,
|
|
958
|
-
r,
|
|
959
|
-
j,
|
|
960
|
-
Ie,
|
|
961
|
-
I
|
|
962
|
-
]
|
|
963
|
-
);
|
|
964
|
-
const mt = De(
|
|
965
|
-
() => H(_e, I, R),
|
|
966
|
-
[_e, I, R, H]
|
|
967
|
-
);
|
|
968
|
-
return /* @__PURE__ */ P.jsxDEV(
|
|
969
|
-
Tt,
|
|
970
|
-
{
|
|
971
|
-
ref: Oe,
|
|
972
|
-
style: {
|
|
973
|
-
...Je,
|
|
974
|
-
...$ && ke ? { userSelect: "none", touchAction: "none" } : {}
|
|
975
|
-
},
|
|
976
|
-
children: /* @__PURE__ */ P.jsxDEV(
|
|
977
|
-
Ft,
|
|
978
|
-
{
|
|
979
|
-
className: "layout",
|
|
980
|
-
layouts: I,
|
|
981
|
-
breakpoints: n,
|
|
982
|
-
cols: r,
|
|
983
|
-
rowHeight: j,
|
|
984
|
-
margin: s,
|
|
985
|
-
containerPadding: f,
|
|
986
|
-
isDraggable: je,
|
|
987
|
-
isResizable: o,
|
|
988
|
-
onLayoutChange: at,
|
|
989
|
-
onBreakpointChange: dt,
|
|
990
|
-
autoSize: i,
|
|
991
|
-
useCSSTransforms: m,
|
|
992
|
-
preventCollision: D,
|
|
993
|
-
compactType: it ? null : w ? nt : p,
|
|
994
|
-
allowOverlap: G,
|
|
995
|
-
isBounded: O,
|
|
996
|
-
draggableHandle: g,
|
|
997
|
-
draggableCancel: b,
|
|
998
|
-
resizeHandles: o ? d : [],
|
|
999
|
-
maxRows: Qe,
|
|
1000
|
-
transformScale: Ue,
|
|
1001
|
-
onWidthChange: ft,
|
|
1002
|
-
onDrag: lt,
|
|
1003
|
-
onDragStart: ct,
|
|
1004
|
-
onDragStop: ut,
|
|
1005
|
-
style: { background: "transparent", ...Ze },
|
|
1006
|
-
children: mt.map(
|
|
1007
|
-
(e) => /* @__PURE__ */ P.jsxDEV(
|
|
1008
|
-
Wt,
|
|
1009
|
-
{
|
|
1010
|
-
$isDraggable: $ ? ke && Ce === e.id : l,
|
|
1011
|
-
children: /* @__PURE__ */ P.jsxDEV(
|
|
1012
|
-
ot,
|
|
1013
|
-
{
|
|
1014
|
-
isDraggable: je,
|
|
1015
|
-
className: st,
|
|
1016
|
-
children: typeof ge == "function" ? ge(
|
|
1017
|
-
e,
|
|
1018
|
-
() => Re(e.id),
|
|
1019
|
-
(u) => Ae(e.id, u)
|
|
1020
|
-
) : ge
|
|
1021
|
-
},
|
|
1022
|
-
void 0,
|
|
1023
|
-
!1,
|
|
1024
|
-
{
|
|
1025
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/GridDND/GridDND.tsx",
|
|
1026
|
-
lineNumber: 1088,
|
|
1027
|
-
columnNumber: 15
|
|
1028
|
-
},
|
|
1029
|
-
void 0
|
|
1030
|
-
)
|
|
1031
|
-
},
|
|
1032
|
-
e.id,
|
|
1033
|
-
!1,
|
|
1034
|
-
{
|
|
1035
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/GridDND/GridDND.tsx",
|
|
1036
|
-
lineNumber: 1080,
|
|
1037
|
-
columnNumber: 11
|
|
1038
|
-
},
|
|
1039
|
-
void 0
|
|
1040
|
-
)
|
|
1041
|
-
)
|
|
1042
|
-
},
|
|
1043
|
-
void 0,
|
|
1044
|
-
!1,
|
|
1045
|
-
{
|
|
1046
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/GridDND/GridDND.tsx",
|
|
1047
|
-
lineNumber: 1044,
|
|
1048
|
-
columnNumber: 9
|
|
1049
|
-
},
|
|
1050
|
-
void 0
|
|
1051
|
-
)
|
|
1052
|
-
},
|
|
1053
|
-
void 0,
|
|
1054
|
-
!1,
|
|
1055
|
-
{
|
|
1056
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/GridDND/GridDND.tsx",
|
|
1057
|
-
lineNumber: 1035,
|
|
1058
|
-
columnNumber: 7
|
|
1059
|
-
},
|
|
1060
|
-
void 0
|
|
1061
|
-
);
|
|
1062
|
-
}
|
|
1063
|
-
), Xt = Object.assign(Vt, {
|
|
1064
|
-
ItemWrapper: At
|
|
1065
|
-
});
|
|
1066
|
-
Xt.displayName = "GridDND";
|
|
1067
|
-
export {
|
|
1068
|
-
Xt as G,
|
|
1069
|
-
U as a,
|
|
1070
|
-
Ve as b,
|
|
1071
|
-
Ct as c,
|
|
1072
|
-
rr as d,
|
|
1073
|
-
tr as e,
|
|
1074
|
-
Y as f,
|
|
1075
|
-
Ht as g,
|
|
1076
|
-
nr as h,
|
|
1077
|
-
ee as i,
|
|
1078
|
-
St as j,
|
|
1079
|
-
ir as k,
|
|
1080
|
-
Ee as l,
|
|
1081
|
-
Bt as m,
|
|
1082
|
-
er as o,
|
|
1083
|
-
It as p,
|
|
1084
|
-
ze as r,
|
|
1085
|
-
sr as u
|
|
1086
|
-
};
|