@daisforge/ui 1.14.1 → 1.16.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/chunks/AnalyticalWidget-BWcBjoNh.mjs +535 -0
- package/chunks/AnalyticalWidget-z2HzQ4aA.cjs +43 -0
- package/chunks/{ApprovalCenter-XCXGHaEP.mjs → ApprovalCenter-BqN8Zjol.mjs} +2 -2
- package/chunks/{ApprovalCenter-DG3YvEkY.cjs → ApprovalCenter-CGs7n-2C.cjs} +1 -1
- package/chunks/{BlockTitle-DDWF1ZeV.mjs → BlockTitle-BM2EE1b1.mjs} +2 -2
- package/chunks/{BlockTitle-3YmyxJHJ.cjs → BlockTitle-o2QTRA7D.cjs} +1 -1
- package/chunks/{Container-CJX4h6tb.cjs → Container-CrB1jwqH.cjs} +1 -1
- package/chunks/{Container-BlAaXm8V.mjs → Container-Cy8w2JOq.mjs} +1 -1
- package/chunks/{EmptyState-BB3duGQw.mjs → EmptyState-B205JfZA.mjs} +1 -1
- package/chunks/{EmptyState-Du-RIjie.cjs → EmptyState-CcxlsZm0.cjs} +1 -1
- package/chunks/{FiltersActions-C38x0y5T.mjs → FiltersActions-C5OGUDDx.mjs} +4 -4
- package/chunks/{FiltersActions-CvAwGV9F.cjs → FiltersActions-CKimtYsU.cjs} +1 -1
- package/chunks/{FormSegmentGroup-DcOPPn3M.cjs → FormSegmentGroup-CCCqRgCG.cjs} +1 -1
- package/chunks/{FormSegmentGroup-9b3w4_KU.mjs → FormSegmentGroup-E1JurEt7.mjs} +1 -1
- package/chunks/{GridDND-BnK1dEhJ.mjs → GridDND-D9T2wqLt.mjs} +126 -132
- package/chunks/GridDND-DkL6-TgS.cjs +1 -0
- package/chunks/{LeftPanel-Ciehaz28.cjs → LeftPanel-B3-ySDMW.cjs} +1 -1
- package/chunks/{LeftPanel-DuIinlBm.mjs → LeftPanel-HZu3ECqD.mjs} +1 -1
- package/chunks/{ListOfFilters-DNzfSG-p.cjs → ListOfFilters-B8XF6KiI.cjs} +1 -1
- package/chunks/{ListOfFilters-Cji5UH2J.mjs → ListOfFilters-BEDW_v5t.mjs} +3 -3
- package/chunks/{MassActions-DCk9APKP.cjs → MassActions-BHNmuh3s.cjs} +1 -1
- package/chunks/{MassActions-BOG04zip.mjs → MassActions-C66ulAuq.mjs} +3 -3
- package/chunks/{PageTitle-BIllremL.cjs → PageTitle-BEdQpyZh.cjs} +1 -1
- package/chunks/{PageTitle-CQ_6jZ0x.mjs → PageTitle-BVbWaV52.mjs} +2 -2
- package/chunks/{SplitView-Dm62AAZj.mjs → SplitView-DYHeCnl9.mjs} +1 -1
- package/chunks/{SplitView-DdLshcIk.cjs → SplitView-UKIBuvTi.cjs} +1 -1
- package/chunks/Stories-DVh7iByM.cjs +1 -0
- package/chunks/{Stories-dFpUqS5T.mjs → Stories-lNAuXVJN.mjs} +260 -245
- package/chunks/{Table-CrJFfavU.cjs → Table-C-lLZklk.cjs} +5 -5
- package/chunks/{Table-f0CmcIhI.mjs → Table-C_1QGsh8.mjs} +16 -11
- package/chunks/{TableCanvas-1bi1WWeP.mjs → TableCanvas--g37wjRi.mjs} +3537 -3474
- package/chunks/TableCanvas-uzBMXlx6.cjs +30 -0
- package/chunks/{TableGlide-DGKw3w0G.mjs → TableGlide-Cjcw7Wur.mjs} +912 -819
- package/chunks/TableGlide-DTBZ1jNA.cjs +1 -0
- package/chunks/styles-BBVEBDDw.mjs +132 -0
- package/chunks/styles-C-pJNMSQ.cjs +2 -0
- package/chunks/{utils-DvDFSlCG.cjs → utils-CUW5bd8S.cjs} +5 -5
- package/chunks/{utils-D4eJY8pa.mjs → utils-YKicAHp0.mjs} +38 -38
- package/chunks/vendor-BzEO8Fvp.cjs +6043 -0
- package/chunks/vendor-DBRfVjyT.mjs +6054 -0
- package/components/AiAgentPopover/index.cjs +1 -1
- package/components/AiAgentPopover/index.mjs +1 -1
- package/components/AnalyticalWidget/AnalyticalWidget.constants.d.ts +2 -0
- package/components/AnalyticalWidget/AnalyticalWidget.d.ts +13 -54
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.d.ts +14 -0
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.styled.d.ts +3 -0
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.d.ts +3 -2
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.mjs +4 -3
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +2 -2
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.d.ts +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.styled.d.ts +1 -75
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.types.d.ts +2 -2
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetTitle.types.d.ts +2 -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/AutocompleteSearch/index.cjs +1 -1
- package/components/AutocompleteSearch/index.mjs +2 -2
- package/components/BlockGradientScroll/index.cjs +1 -1
- package/components/BlockGradientScroll/index.mjs +1 -1
- 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/Collapse/index.cjs +1 -1
- package/components/Collapse/index.mjs +1 -1
- package/components/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- 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/GridDND.ItemWrapper.d.ts +1 -2
- package/components/GridDND/GridDND.d.ts +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 +1 -1
- 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/ModalDF/index.cjs +1 -1
- package/components/ModalDF/index.mjs +1 -1
- package/components/Notification/index.cjs +1 -1
- package/components/Notification/index.mjs +2 -2
- 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 +1 -1
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/index.mjs +1 -1
- 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/AnimatedCounter.d.ts +1 -0
- 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/types/utils.type.d.ts +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/AnimatedCounter.d.ts +1 -0
- 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 +1 -1
- 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-filtering/use-focus-search-input.d.ts +2 -0
- 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/TablePopoverContext.d.ts +3 -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-rows-grouping/types.d.ts +2 -0
- 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/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
- 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/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 +1 -1
- package/components/TableContract/index.mjs +2 -2
- 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/activeTheme.type.d.ts +1 -1
- package/components/TableGlide/theming/custom-colors.d.ts +3 -3
- package/components/TableGlide/theming/glide-colors.d.ts +9 -9
- 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 +1 -1
- package/components/Tooltip/index.cjs +1 -1
- package/components/Tooltip/index.mjs +1 -1
- package/components/TourWidget/index.cjs +1 -1
- package/components/TourWidget/index.mjs +2 -2
- 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 +2 -2
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/ui/FormDatePickerRangeStyled.d.ts +2 -0
- package/formComponents/FormRadioGroupBox/index.cjs +1 -1
- package/formComponents/FormRadioGroupBox/index.mjs +1 -1
- package/formComponents/FormSegments/index.cjs +1 -1
- package/formComponents/FormSegments/index.mjs +1 -1
- package/formComponents/FormSwitch/index.cjs +1 -1
- package/formComponents/FormSwitch/index.mjs +1 -1
- package/index.cjs +1 -1
- package/index.mjs +1787 -1629
- 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 +1 -1
- package/layouts/FiltersActions/FiltersActions.d.ts +2 -2
- package/layouts/FiltersActions/components/Segments.d.ts +2 -2
- 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 +1 -1
- package/layouts/Layout/index.mjs +1 -1
- package/layouts/PageLayout/index.cjs +1 -1
- package/layouts/PageLayout/index.mjs +1 -1
- package/mcp-data/component-index.json +190 -158
- package/mixins/index.cjs +2 -2
- package/mixins/index.mjs +36 -36
- package/package.json +5 -5
- package/shared/utils/inputs/index.cjs +1 -1
- package/shared/utils/inputs/index.mjs +6 -6
- package/styles/DefaultGlobalStyle.d.ts +2 -0
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/themes/index.cjs +1 -1
- package/themes/index.d.ts +2 -0
- package/themes/index.mjs +8 -6
- package/tokens/color/index.cjs +1 -1
- package/tokens/color/index.d.ts +1 -1
- package/tokens/color/index.mjs +1225 -1127
- package/tokens/gradient/index.cjs +1 -1
- package/tokens/gradient/index.d.ts +1 -1
- package/tokens/gradient/index.mjs +126 -70
- package/tokens/index.cjs +1 -1
- package/tokens/index.mjs +1433 -1277
- package/tokens/shadow/index.cjs +1 -1
- package/tokens/shadow/index.d.ts +1 -1
- package/tokens/shadow/index.mjs +9 -7
- 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/getActiveTheme.d.ts +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-B6czTLSw.cjs +0 -43
- package/chunks/AnalyticalWidget-BWggL9xa.mjs +0 -528
- package/chunks/GridDND-CVAlpElj.cjs +0 -1
- package/chunks/Stories-e_CX_1CS.cjs +0 -1
- package/chunks/TableCanvas-DqF5YxEY.cjs +0 -30
- package/chunks/TableGlide-CGAh5x3Q.cjs +0 -1
- package/chunks/styles-BMXAIiBk.mjs +0 -128
- package/chunks/styles-DwCVRGsC.cjs +0 -2
- package/chunks/vendor-BauZZ2hr.mjs +0 -1955
- package/chunks/vendor-C47eH0xy.cjs +0 -1950
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as xe, jsx as
|
|
1
|
+
import { jsxs as xe, jsx as Z } from "react/jsx-runtime";
|
|
2
2
|
import "react-grid-layout/css/styles.css";
|
|
3
3
|
import { iconButtonFilterClassNames as ye } from "../components/IconButton/index.mjs";
|
|
4
4
|
import { useRef as B, useState as P, useLayoutEffect as he, useEffect as et, forwardRef as ge, useCallback as G, useMemo as yt, useImperativeHandle as be } from "react";
|
|
5
|
-
import { b as Qt } from "./AnalyticalWidget-
|
|
5
|
+
import { b as Qt } from "./AnalyticalWidget-BWcBjoNh.mjs";
|
|
6
6
|
import { Responsive as De } from "react-grid-layout";
|
|
7
|
-
import { c as ve } from "./utils-
|
|
7
|
+
import { c as ve } from "./utils-YKicAHp0.mjs";
|
|
8
8
|
import { surfaceTransparentAccent as ke, outlineAccent as Oe, outlineAccentMinor as Ne, shadowDownHardS as Ae, outlineTransparentAccent as Me, shadowDownSoftS as Re } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
9
9
|
import Et, { css as Ge } from "styled-components";
|
|
10
|
-
const
|
|
10
|
+
const J = {
|
|
11
11
|
gridItemWrapper: "grid-dnd__item-wrapper",
|
|
12
12
|
gridItem: "grid-dnd__item",
|
|
13
13
|
dragHandle: "grid-dnd__drag-handle",
|
|
@@ -15,25 +15,19 @@ const U = {
|
|
|
15
15
|
}, Xt = 248, z = 6, Fe = ({
|
|
16
16
|
item: e,
|
|
17
17
|
actionsSlot: n,
|
|
18
|
-
|
|
19
|
-
children: f
|
|
18
|
+
children: r
|
|
20
19
|
}) => /* @__PURE__ */ xe("div", { style: {
|
|
21
20
|
height: "100%",
|
|
22
21
|
position: "relative"
|
|
23
|
-
}, id: e.id, className:
|
|
24
|
-
n
|
|
25
|
-
|
|
26
|
-
right: 16,
|
|
27
|
-
top: 16,
|
|
28
|
-
...r
|
|
29
|
-
}, className: U.noDrag, children: n }),
|
|
30
|
-
f
|
|
22
|
+
}, id: e.id, className: J.gridItemWrapper, children: [
|
|
23
|
+
n,
|
|
24
|
+
r
|
|
31
25
|
] });
|
|
32
26
|
function Ee() {
|
|
33
27
|
const e = B(null), [n, r] = P(0);
|
|
34
28
|
return he(() => {
|
|
35
|
-
const
|
|
36
|
-
if (!
|
|
29
|
+
const a = e.current;
|
|
30
|
+
if (!a)
|
|
37
31
|
return;
|
|
38
32
|
let l = 0;
|
|
39
33
|
const o = ve((s) => {
|
|
@@ -41,7 +35,7 @@ function Ee() {
|
|
|
41
35
|
const d = ((y = s[0]) == null ? void 0 : y.contentRect.width) ?? 0;
|
|
42
36
|
cancelAnimationFrame(l), l = requestAnimationFrame(() => r(d));
|
|
43
37
|
});
|
|
44
|
-
return o.observe(
|
|
38
|
+
return o.observe(a), () => {
|
|
45
39
|
cancelAnimationFrame(l), o.disconnect();
|
|
46
40
|
};
|
|
47
41
|
}, []), {
|
|
@@ -53,28 +47,28 @@ function He(e) {
|
|
|
53
47
|
const {
|
|
54
48
|
onWidthChange: n,
|
|
55
49
|
margin: r,
|
|
56
|
-
cols:
|
|
50
|
+
cols: a,
|
|
57
51
|
containerPadding: l
|
|
58
52
|
} = e, {
|
|
59
53
|
ref: o,
|
|
60
54
|
width: s
|
|
61
55
|
} = Ee(), d = B(0);
|
|
62
56
|
return et(() => {
|
|
63
|
-
s > 0 && s !== d.current && (n == null || n(s, r,
|
|
64
|
-
}, [s, n, r,
|
|
57
|
+
s > 0 && s !== d.current && (n == null || n(s, r, a, l), d.current = s);
|
|
58
|
+
}, [s, n, r, a, l]), /* @__PURE__ */ Z("div", { ref: o, style: {
|
|
65
59
|
width: "100%"
|
|
66
|
-
}, children: s > 0 && /* @__PURE__ */
|
|
60
|
+
}, children: s > 0 && /* @__PURE__ */ Z(De, { ...e, width: s }) });
|
|
67
61
|
}
|
|
68
62
|
const Te = Ge(["background-color:", ";border-radius:16px;outline:1px solid ", ";"], () => ke, () => Oe), We = Et.div.withConfig({
|
|
69
63
|
displayName: "GridDNDstyled__GridDNDContainer"
|
|
70
64
|
})(["width:100%;min-height:400px;max-width:1890px;&:has(.react-grid-placeholder){& .react-grid-item.react-grid-placeholder{", " opacity:1;}}"], Te), Se = Et.div.attrs(() => ({
|
|
71
|
-
className:
|
|
65
|
+
className: J.gridItem
|
|
72
66
|
})).withConfig({
|
|
73
67
|
displayName: "GridDNDstyled__GridItem"
|
|
74
68
|
})(["&.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;"], () => Ne, () => Ae, Qt.topSlot, (e) => e.$isDraggable ? "grab" : "default", (e) => e.$isDraggable ? `2px solid ${Me}` : "none", () => Re), _e = Et.div.withConfig({
|
|
75
69
|
displayName: "GridDNDstyled__GridItemContent"
|
|
76
70
|
})(["height:100%;width:100%;"]), qe = (e) => !e || e === "." || e === "-" || e === " ";
|
|
77
|
-
function tr(e, n, r,
|
|
71
|
+
function tr(e, n, r, a) {
|
|
78
72
|
var d, y;
|
|
79
73
|
const l = [], o = r[n], s = /* @__PURE__ */ new Set();
|
|
80
74
|
for (let N = 0; N < e.length; N++) {
|
|
@@ -120,7 +114,7 @@ function tr(e, n, r, f) {
|
|
|
120
114
|
// Максимальная ширина (ограничена количеством колонок)
|
|
121
115
|
minH: 1,
|
|
122
116
|
// Минимальная высота
|
|
123
|
-
isResizable:
|
|
117
|
+
isResizable: a,
|
|
124
118
|
// Можно ли изменять размер
|
|
125
119
|
static: !1
|
|
126
120
|
// Элемент не статичный (можно перемещать)
|
|
@@ -133,28 +127,28 @@ function er(e) {
|
|
|
133
127
|
return Object.keys(e).sort((n, r) => (e[r] || 0) - (e[n] || 0));
|
|
134
128
|
}
|
|
135
129
|
function rr(e, n) {
|
|
136
|
-
const r = Object.keys(e).sort((
|
|
137
|
-
const o = e[
|
|
130
|
+
const r = Object.keys(e).sort((a, l) => {
|
|
131
|
+
const o = e[a] || 0;
|
|
138
132
|
return (e[l] || 0) - o;
|
|
139
133
|
});
|
|
140
|
-
for (const
|
|
141
|
-
const l = e[
|
|
134
|
+
for (const a of r) {
|
|
135
|
+
const l = e[a];
|
|
142
136
|
if (l !== void 0 && n >= l)
|
|
143
|
-
return
|
|
137
|
+
return a;
|
|
144
138
|
}
|
|
145
139
|
return r[r.length - 1];
|
|
146
140
|
}
|
|
147
141
|
function nr(e, n, r) {
|
|
148
142
|
var l, o;
|
|
149
|
-
const
|
|
150
|
-
if (
|
|
143
|
+
const a = r.indexOf(e);
|
|
144
|
+
if (a === -1)
|
|
151
145
|
return null;
|
|
152
|
-
for (let s =
|
|
146
|
+
for (let s = a - 1; s >= 0; s--) {
|
|
153
147
|
const d = r[s];
|
|
154
148
|
if (d && ((l = n[d]) != null && l.length))
|
|
155
149
|
return d;
|
|
156
150
|
}
|
|
157
|
-
for (let s =
|
|
151
|
+
for (let s = a + 1; s < r.length; s++) {
|
|
158
152
|
const d = r[s];
|
|
159
153
|
if (d && ((o = n[d]) != null && o.length))
|
|
160
154
|
return d;
|
|
@@ -167,13 +161,13 @@ function ir(e, n) {
|
|
|
167
161
|
// Ограничиваем ширину элемента количеством колонок
|
|
168
162
|
w: Math.max(1, Math.min(i.w, n))
|
|
169
163
|
// Старые координаты не важны - будем раскладывать заново
|
|
170
|
-
})).sort((i, m) => i.y - m.y || i.x - m.x),
|
|
171
|
-
for (;
|
|
172
|
-
|
|
164
|
+
})).sort((i, m) => i.y - m.y || i.x - m.x), a = [], l = (i) => {
|
|
165
|
+
for (; a.length < i; )
|
|
166
|
+
a.push(Array(n).fill(!1));
|
|
173
167
|
}, o = (i, m, p, x) => {
|
|
174
168
|
l(m + x);
|
|
175
169
|
for (let u = m; u < m + x; u++) {
|
|
176
|
-
const b =
|
|
170
|
+
const b = a[u];
|
|
177
171
|
if (!b)
|
|
178
172
|
return !1;
|
|
179
173
|
for (let v = i; v < i + p; v++)
|
|
@@ -184,7 +178,7 @@ function ir(e, n) {
|
|
|
184
178
|
}, s = (i, m, p, x) => {
|
|
185
179
|
l(m + x);
|
|
186
180
|
for (let u = m; u < m + x; u++) {
|
|
187
|
-
const b =
|
|
181
|
+
const b = a[u];
|
|
188
182
|
if (b)
|
|
189
183
|
for (let v = i; v < i + p; v++)
|
|
190
184
|
v < b.length && (b[v] = !0);
|
|
@@ -193,7 +187,7 @@ function ir(e, n) {
|
|
|
193
187
|
let m = i;
|
|
194
188
|
for (; ; ) {
|
|
195
189
|
l(m + 1);
|
|
196
|
-
const p =
|
|
190
|
+
const p = a[m];
|
|
197
191
|
if (p && p.some((x) => !x))
|
|
198
192
|
return m;
|
|
199
193
|
m++;
|
|
@@ -247,9 +241,9 @@ const tt = (e) => e === "l" ? {
|
|
|
247
241
|
function Ft(e, n) {
|
|
248
242
|
if (!e || !n || e.length !== n.length)
|
|
249
243
|
return !1;
|
|
250
|
-
const r = [...e].sort((l, o) => l.i > o.i ? 1 : -1),
|
|
244
|
+
const r = [...e].sort((l, o) => l.i > o.i ? 1 : -1), a = [...n].sort((l, o) => l.i > o.i ? 1 : -1);
|
|
251
245
|
for (let l = 0; l < r.length; l += 1) {
|
|
252
|
-
const o = r[l], s =
|
|
246
|
+
const o = r[l], s = a[l];
|
|
253
247
|
if (!o || !s || o.i !== s.i || o.x !== s.x || o.y !== s.y || o.w !== s.w || o.h !== s.h)
|
|
254
248
|
return !1;
|
|
255
249
|
}
|
|
@@ -261,15 +255,15 @@ function gt(e, n, r) {
|
|
|
261
255
|
}
|
|
262
256
|
function Be(e, n, r) {
|
|
263
257
|
gt(e, n + 1, r);
|
|
264
|
-
const
|
|
265
|
-
return
|
|
258
|
+
const a = e[n];
|
|
259
|
+
return a ? a.some((l) => !l) : !1;
|
|
266
260
|
}
|
|
267
|
-
function ht(e, n, r,
|
|
261
|
+
function ht(e, n, r, a = 0) {
|
|
268
262
|
gt(e, n + 1, r);
|
|
269
263
|
const l = e[n];
|
|
270
264
|
if (!l)
|
|
271
265
|
return -1;
|
|
272
|
-
for (let o = Math.max(0,
|
|
266
|
+
for (let o = Math.max(0, a); o < r; o++) {
|
|
273
267
|
if (o >= l.length)
|
|
274
268
|
return -1;
|
|
275
269
|
if (!l[o])
|
|
@@ -277,36 +271,36 @@ function ht(e, n, r, f = 0) {
|
|
|
277
271
|
}
|
|
278
272
|
return -1;
|
|
279
273
|
}
|
|
280
|
-
function Yt(e, n, r,
|
|
274
|
+
function Yt(e, n, r, a, l, o) {
|
|
281
275
|
gt(e, r + l, o);
|
|
282
276
|
for (let s = r; s < r + l; s++) {
|
|
283
277
|
const d = e[s];
|
|
284
278
|
if (!d)
|
|
285
279
|
return !1;
|
|
286
|
-
for (let y = n; y < n +
|
|
280
|
+
for (let y = n; y < n + a; y++)
|
|
287
281
|
if (y >= o || d[y])
|
|
288
282
|
return !1;
|
|
289
283
|
}
|
|
290
284
|
return !0;
|
|
291
285
|
}
|
|
292
|
-
function Ie(e, n, r,
|
|
286
|
+
function Ie(e, n, r, a, l, o) {
|
|
293
287
|
gt(e, r + l, o);
|
|
294
288
|
for (let s = r; s < r + l; s++) {
|
|
295
289
|
const d = e[s];
|
|
296
290
|
if (d)
|
|
297
|
-
for (let y = n; y < n +
|
|
291
|
+
for (let y = n; y < n + a; y++)
|
|
298
292
|
y < o && (d[y] = !0);
|
|
299
293
|
}
|
|
300
294
|
}
|
|
301
295
|
function zt(e, n, r) {
|
|
302
|
-
let
|
|
296
|
+
let a = Math.max(0, n);
|
|
303
297
|
for (; ; ) {
|
|
304
|
-
if (Be(e,
|
|
305
|
-
return
|
|
306
|
-
|
|
298
|
+
if (Be(e, a, r))
|
|
299
|
+
return a;
|
|
300
|
+
a++;
|
|
307
301
|
}
|
|
308
302
|
}
|
|
309
|
-
function $e(e, n, r,
|
|
303
|
+
function $e(e, n, r, a) {
|
|
310
304
|
const l = [], o = [];
|
|
311
305
|
let s = 0, d = 0;
|
|
312
306
|
for (const y of e) {
|
|
@@ -352,7 +346,7 @@ function $e(e, n, r, f) {
|
|
|
352
346
|
minW: 1,
|
|
353
347
|
maxW: r,
|
|
354
348
|
minH: 1,
|
|
355
|
-
isResizable:
|
|
349
|
+
isResizable: a,
|
|
356
350
|
static: !1
|
|
357
351
|
}), u > s)
|
|
358
352
|
s = u, d = Math.max(0, ht(o, s, r, 0)), d === -1 && (s = zt(o, s, r), d = ht(o, s, r, 0));
|
|
@@ -367,9 +361,9 @@ function Pt(e) {
|
|
|
367
361
|
return [...e].sort((n, r) => n.y - r.y || n.x - r.x).map((n) => n.i);
|
|
368
362
|
}
|
|
369
363
|
const sr = (e) => Object.keys(e).sort((n, r) => (e[r] || 0) - (e[n] || 0))[0] ?? "lg";
|
|
370
|
-
function je(e, n, r,
|
|
364
|
+
function je(e, n, r, a, l = 0, o = 0) {
|
|
371
365
|
const s = e.reduce((i, m) => Math.max(i, m.y + m.h), 0), d = Array.from({
|
|
372
|
-
length: Math.max(s, o) +
|
|
366
|
+
length: Math.max(s, o) + a + 1
|
|
373
367
|
}, () => Array(n).fill(!1));
|
|
374
368
|
for (const {
|
|
375
369
|
x: i,
|
|
@@ -384,7 +378,7 @@ function je(e, n, r, f, l = 0, o = 0) {
|
|
|
384
378
|
u >= 0 && v >= 0 && v < n && b && (b[v] = !0);
|
|
385
379
|
}
|
|
386
380
|
const y = (i, m) => {
|
|
387
|
-
for (let p = m; p < m +
|
|
381
|
+
for (let p = m; p < m + a; p++) {
|
|
388
382
|
d[p] || (d[p] = Array(n).fill(!1));
|
|
389
383
|
const x = d[p];
|
|
390
384
|
for (let u = i; u < i + r; u++)
|
|
@@ -393,7 +387,7 @@ function je(e, n, r, f, l = 0, o = 0) {
|
|
|
393
387
|
}
|
|
394
388
|
return !0;
|
|
395
389
|
}, N = (i, m) => {
|
|
396
|
-
for (let p = m; p < m +
|
|
390
|
+
for (let p = m; p < m + a; p++) {
|
|
397
391
|
d[p] || (d[p] = Array(n).fill(!1));
|
|
398
392
|
const x = d[p];
|
|
399
393
|
for (let u = i; u < i + r; u++)
|
|
@@ -417,7 +411,7 @@ const or = (e) => {
|
|
|
417
411
|
}, Xe = ({
|
|
418
412
|
children: e,
|
|
419
413
|
className: n
|
|
420
|
-
}) => /* @__PURE__ */
|
|
414
|
+
}) => /* @__PURE__ */ Z(_e, { className: n, children: e }), Kt = (...e) => (
|
|
421
415
|
// eslint-disable-next-line no-console
|
|
422
416
|
console.log("%c[GridDND]", "color:#6b5b95;font-weight:600", ...e)
|
|
423
417
|
), Ye = ge(({
|
|
@@ -438,7 +432,7 @@ const or = (e) => {
|
|
|
438
432
|
xs: 3,
|
|
439
433
|
xxs: 2
|
|
440
434
|
},
|
|
441
|
-
rowHeights:
|
|
435
|
+
rowHeights: a = {
|
|
442
436
|
lg: 248,
|
|
443
437
|
md: 248,
|
|
444
438
|
sm: 248,
|
|
@@ -458,8 +452,8 @@ const or = (e) => {
|
|
|
458
452
|
compactType: p = "horizontal",
|
|
459
453
|
smartCompact: x = !0,
|
|
460
454
|
resizeHandles: u = ["se", "sw", "ne", "nw", "s", "w", "e", "n"],
|
|
461
|
-
draggableHandle: b = `.${
|
|
462
|
-
draggableCancel: v = `button, input, select, textarea, .${
|
|
455
|
+
draggableHandle: b = `.${J.dragHandle}`,
|
|
456
|
+
draggableCancel: v = `button, input, select, textarea, .${J.noDrag}, .${Qt.topSlot}, .${ye.root}`,
|
|
463
457
|
maxRows: Ut,
|
|
464
458
|
transformScale: Vt,
|
|
465
459
|
// Колбеки
|
|
@@ -480,32 +474,32 @@ const or = (e) => {
|
|
|
480
474
|
gridStyle: Zt,
|
|
481
475
|
enableLogs: Tt = !1
|
|
482
476
|
}, Lt) => {
|
|
483
|
-
const [R, ct] = P(() => e.map((t) => t.id)),
|
|
477
|
+
const [R, ct] = P(() => e.map((t) => t.id)), U = B(Object.fromEntries(e.map((t) => [t.id, tt(t.type)]))), vt = B(!1), V = B({
|
|
484
478
|
lg: [],
|
|
485
479
|
md: [],
|
|
486
480
|
sm: [],
|
|
487
481
|
xs: [],
|
|
488
482
|
xxs: []
|
|
489
|
-
}), K = B("lg"), Q = B([]), j = Dt > 0, [kt, Wt] = P(!1), [Ct, Ot] = P(null), lt = B(null), Nt = B(!1), At = B(null),
|
|
483
|
+
}), K = B("lg"), Q = B([]), j = Dt > 0, [kt, Wt] = P(!1), [Ct, Ot] = P(null), lt = B(null), Nt = B(!1), At = B(null), ft = B(null), C = G(() => {
|
|
490
484
|
lt.current && (clearTimeout(lt.current), lt.current = null);
|
|
491
|
-
}, []),
|
|
485
|
+
}, []), ut = G(() => {
|
|
492
486
|
Wt(!1), Ot(null), Nt.current = !1;
|
|
493
487
|
}, []), te = 64;
|
|
494
488
|
et(() => {
|
|
495
489
|
if (!j || !At.current)
|
|
496
490
|
return;
|
|
497
491
|
const t = At.current;
|
|
498
|
-
let
|
|
492
|
+
let f = null;
|
|
499
493
|
const c = (g, k) => {
|
|
500
494
|
const E = (T) => {
|
|
501
495
|
const W = T.clientX - g, X = T.clientY - k;
|
|
502
|
-
W * W + X * X > te && (C(), Ot(null),
|
|
496
|
+
W * W + X * X > te && (C(), Ot(null), ft.current = null, w());
|
|
503
497
|
};
|
|
504
|
-
document.addEventListener("pointermove", E),
|
|
505
|
-
document.removeEventListener("pointermove", E),
|
|
498
|
+
document.addEventListener("pointermove", E), f = () => {
|
|
499
|
+
document.removeEventListener("pointermove", E), f = null;
|
|
506
500
|
};
|
|
507
501
|
}, w = () => {
|
|
508
|
-
|
|
502
|
+
f == null || f();
|
|
509
503
|
}, h = (g) => {
|
|
510
504
|
const k = g.target;
|
|
511
505
|
return g.offsetX > k.clientWidth || g.offsetY > k.clientHeight;
|
|
@@ -513,15 +507,15 @@ const or = (e) => {
|
|
|
513
507
|
if (g._synthetic || g.button !== 0 || h(g))
|
|
514
508
|
return;
|
|
515
509
|
C(), w();
|
|
516
|
-
const E = g.target.closest(`.${
|
|
517
|
-
Ot(W),
|
|
510
|
+
const E = g.target.closest(`.${J.gridItem}`), T = E == null ? void 0 : E.querySelector(`.${J.gridItemWrapper}`), W = (T == null ? void 0 : T.id) ?? null, X = E == null ? void 0 : E.querySelector(`.${J.dragHandle}`);
|
|
511
|
+
Ot(W), ft.current = {
|
|
518
512
|
clientX: g.clientX,
|
|
519
513
|
clientY: g.clientY,
|
|
520
514
|
handleEl: X
|
|
521
515
|
}, c(g.clientX, g.clientY), lt.current = setTimeout(() => {
|
|
522
516
|
w(), Wt(!0), requestAnimationFrame(() => {
|
|
523
517
|
requestAnimationFrame(() => {
|
|
524
|
-
const Y =
|
|
518
|
+
const Y = ft.current;
|
|
525
519
|
if (!(Y != null && Y.handleEl))
|
|
526
520
|
return;
|
|
527
521
|
const wt = new MouseEvent("mousedown", {
|
|
@@ -537,27 +531,27 @@ const or = (e) => {
|
|
|
537
531
|
});
|
|
538
532
|
}, Dt);
|
|
539
533
|
}, O = () => {
|
|
540
|
-
C(), w(),
|
|
541
|
-
|
|
534
|
+
C(), w(), ft.current = null, Nt.current || requestAnimationFrame(() => {
|
|
535
|
+
ut();
|
|
542
536
|
});
|
|
543
537
|
};
|
|
544
538
|
return t.addEventListener("pointerdown", D), document.addEventListener("pointerup", O), () => {
|
|
545
539
|
t.removeEventListener("pointerdown", D), document.removeEventListener("pointerup", O), C(), w();
|
|
546
540
|
};
|
|
547
|
-
}, [j, Dt, C,
|
|
541
|
+
}, [j, Dt, C, ut]);
|
|
548
542
|
const St = j ? l && kt : l, [I, _t] = P({
|
|
549
543
|
lg: [],
|
|
550
544
|
md: [],
|
|
551
545
|
sm: [],
|
|
552
546
|
xs: [],
|
|
553
547
|
xxs: []
|
|
554
|
-
}), [qt, ee] = P("lg"), [S, re] = P(
|
|
555
|
-
id:
|
|
556
|
-
type: mt(
|
|
557
|
-
})), [mt]), Mt = G((t) =>
|
|
558
|
-
const w = c ?? R, h =
|
|
548
|
+
}), [qt, ee] = P("lg"), [S, re] = P(a.lg ?? Xt), [ne, at] = P(p), [ie, Bt] = P(!1), se = yt(() => b.split(".").join(" "), [b]), oe = yt(() => Ht ?? Xe, [Ht]), dt = yt(() => new Map(e.map((t) => [t.id, t.type])), [e]), L = B(/* @__PURE__ */ new Map()), mt = G((t) => L.current.get(t) ?? dt.get(t) ?? "s", [dt]), $ = G((t) => t.map((f) => ({
|
|
549
|
+
id: f,
|
|
550
|
+
type: mt(f)
|
|
551
|
+
})), [mt]), Mt = G((t) => a[t] ?? a.md ?? Xt, [a]), H = G((t, f, c) => {
|
|
552
|
+
const w = c ?? R, h = f[t] ?? [], D = V.current[t] ?? [], O = new Map(h.map((k) => [k.i, k])), g = new Map(D.map((k) => [k.i, k]));
|
|
559
553
|
return w.map((k) => {
|
|
560
|
-
const E = mt(k), T = O.get(k) ?? g.get(k) ?? null, W =
|
|
554
|
+
const E = mt(k), T = O.get(k) ?? g.get(k) ?? null, W = U.current[k] ?? tt(E), X = T ? {
|
|
561
555
|
x: T.x,
|
|
562
556
|
y: T.y,
|
|
563
557
|
w: T.w,
|
|
@@ -575,8 +569,8 @@ const or = (e) => {
|
|
|
575
569
|
};
|
|
576
570
|
});
|
|
577
571
|
}, [R, mt]), It = G((t) => {
|
|
578
|
-
const
|
|
579
|
-
return
|
|
572
|
+
const f = V.current[t] ?? [];
|
|
573
|
+
return f.length ? f : I[t] ?? [];
|
|
580
574
|
}, [I]), _ = G(
|
|
581
575
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
582
576
|
(...t) => {
|
|
@@ -584,28 +578,28 @@ const or = (e) => {
|
|
|
584
578
|
},
|
|
585
579
|
[Tt]
|
|
586
580
|
), pt = G((t) => {
|
|
587
|
-
|
|
581
|
+
V.current = t, vt.current = !0, Bt(!0), _t(t), requestAnimationFrame(() => {
|
|
588
582
|
requestAnimationFrame(() => {
|
|
589
583
|
vt.current = !1, Bt(!1), Kt("[GridDND] reflow window closed");
|
|
590
584
|
});
|
|
591
585
|
});
|
|
592
586
|
}, []), q = G((t) => {
|
|
593
|
-
const
|
|
587
|
+
const f = {};
|
|
594
588
|
for (const c of Object.keys(r)) {
|
|
595
589
|
const w = r[c] ?? z;
|
|
596
|
-
|
|
590
|
+
f[c] = $e(t, U.current, w, o);
|
|
597
591
|
}
|
|
598
592
|
return _("reflowAllByOrder", {
|
|
599
593
|
order: t,
|
|
600
|
-
out:
|
|
601
|
-
}), pt(
|
|
602
|
-
}, [r, o, pt, _]), $t = G((t,
|
|
594
|
+
out: f
|
|
595
|
+
}), pt(f), f;
|
|
596
|
+
}, [r, o, pt, _]), $t = G((t, f) => {
|
|
603
597
|
if (!x)
|
|
604
598
|
return;
|
|
605
599
|
const c = Date.now();
|
|
606
600
|
if (Q.current.push({
|
|
607
601
|
x: t,
|
|
608
|
-
y:
|
|
602
|
+
y: f,
|
|
609
603
|
timestamp: c
|
|
610
604
|
}), Q.current = Q.current.filter((D) => c - D.timestamp <= 300), Q.current.length < 2)
|
|
611
605
|
return;
|
|
@@ -614,16 +608,16 @@ const or = (e) => {
|
|
|
614
608
|
const O = Q.current[D - 1], g = Q.current[D];
|
|
615
609
|
!O || !g || (w += Math.abs(g.x - O.x), h += Math.abs(g.y - O.y));
|
|
616
610
|
}
|
|
617
|
-
w + h < 10 || (w > h * 1.5 ?
|
|
611
|
+
w + h < 10 || (w > h * 1.5 ? at("horizontal") : h > w * 1.5 && at("vertical"));
|
|
618
612
|
}, [x]), jt = G(() => {
|
|
619
613
|
requestAnimationFrame(() => {
|
|
620
614
|
requestAnimationFrame(() => {
|
|
621
|
-
const t =
|
|
615
|
+
const t = V.current, f = {};
|
|
622
616
|
for (const [c, w] of Object.entries(t))
|
|
623
|
-
|
|
617
|
+
f[c] = w.map((h) => ({
|
|
624
618
|
...h
|
|
625
619
|
}));
|
|
626
|
-
_("[GridDND] forceSyncWithRgl → re-push target layouts"), pt(
|
|
620
|
+
_("[GridDND] forceSyncWithRgl → re-push target layouts"), pt(f);
|
|
627
621
|
});
|
|
628
622
|
});
|
|
629
623
|
}, [pt, _]);
|
|
@@ -631,20 +625,20 @@ const or = (e) => {
|
|
|
631
625
|
q(e.map((t) => t.id));
|
|
632
626
|
}, []), et(() => {
|
|
633
627
|
const t = /* @__PURE__ */ new Set([...dt.keys(), ...R]);
|
|
634
|
-
L.current.forEach((
|
|
628
|
+
L.current.forEach((f, c) => {
|
|
635
629
|
t.has(c) || L.current.delete(c);
|
|
636
630
|
});
|
|
637
631
|
}, [dt, R]), et(() => {
|
|
638
632
|
e.forEach((t) => {
|
|
639
|
-
|
|
633
|
+
U.current[t.id] || (U.current[t.id] = tt(t.type));
|
|
640
634
|
});
|
|
641
635
|
}, [e]);
|
|
642
|
-
const ce = G((t,
|
|
643
|
-
Q.current = [],
|
|
644
|
-
}, [p, st, j]), le = G((t,
|
|
645
|
-
$t(h.clientX, h.clientY), it == null || it(t,
|
|
646
|
-
}, [$t, it]),
|
|
647
|
-
ot == null || ot(t,
|
|
636
|
+
const ce = G((t, f, c, w, h, D) => {
|
|
637
|
+
Q.current = [], at(p), j && (Nt.current = !0), st == null || st(t, f, c, w, h, D);
|
|
638
|
+
}, [p, st, j]), le = G((t, f, c, w, h, D) => {
|
|
639
|
+
$t(h.clientX, h.clientY), it == null || it(t, f, c, w, h, D);
|
|
640
|
+
}, [$t, it]), fe = G((t, f, c, w, h, D) => {
|
|
641
|
+
ot == null || ot(t, f, c, w, h, D), j && ut();
|
|
648
642
|
const O = Pt(t);
|
|
649
643
|
_("[GridDND] dragStop: nextOrder(readingOrder)", O), ct(O);
|
|
650
644
|
const g = q(O), k = K.current, E = H(k, g, O);
|
|
@@ -656,16 +650,16 @@ const or = (e) => {
|
|
|
656
650
|
}, g, {
|
|
657
651
|
itemsOrder: O,
|
|
658
652
|
itemsOrderTyped: $(O)
|
|
659
|
-
}),
|
|
653
|
+
}), at(p);
|
|
660
654
|
const T = t, W = g[k];
|
|
661
655
|
Ft(T, W) ? _("[GridDND] dragStop: live layout == target (OK)") : (_("[GridDND] dragStop: live layout != target → forceSyncWithRgl()"), jt());
|
|
662
|
-
}, [ot, j,
|
|
656
|
+
}, [ot, j, ut, q, H, F, M, r, S, p, jt, _, $]), ue = G((t, f) => {
|
|
663
657
|
_("RGL onLayoutChange", {
|
|
664
658
|
cur: t,
|
|
665
|
-
all:
|
|
659
|
+
all: f
|
|
666
660
|
});
|
|
667
|
-
const c = K.current, w = (
|
|
668
|
-
if (t.length === w && Ft(t,
|
|
661
|
+
const c = K.current, w = (V.current[c] ?? []).length;
|
|
662
|
+
if (t.length === w && Ft(t, V.current[c])) {
|
|
669
663
|
_("[GridDND] onLayoutChange[IGNORED: equals-target]", {
|
|
670
664
|
bp: c
|
|
671
665
|
});
|
|
@@ -681,7 +675,7 @@ const or = (e) => {
|
|
|
681
675
|
const h = r[c] ?? z;
|
|
682
676
|
if (t.some((g) => typeof g.maxW == "number" && g.maxW !== h))
|
|
683
677
|
return;
|
|
684
|
-
if (Ft(t,
|
|
678
|
+
if (Ft(t, V.current[c])) {
|
|
685
679
|
_("[GridDND] onLayoutChange[IGNORED: equals-target]", {
|
|
686
680
|
bp: c
|
|
687
681
|
});
|
|
@@ -708,20 +702,20 @@ const or = (e) => {
|
|
|
708
702
|
}, {
|
|
709
703
|
itemsOrder: R
|
|
710
704
|
});
|
|
711
|
-
}, [M, H, I, r, S, R, _]),
|
|
705
|
+
}, [M, H, I, r, S, R, _]), ae = G((t) => {
|
|
712
706
|
K.current = t, ee(t), re(Mt(t));
|
|
713
|
-
const
|
|
707
|
+
const f = q(R), c = H(t, f, R);
|
|
714
708
|
rt == null || rt(t, {
|
|
715
709
|
breakpoint: t,
|
|
716
710
|
cols: r[t] ?? z,
|
|
717
711
|
rowHeight: Mt(t),
|
|
718
712
|
items: c
|
|
719
713
|
});
|
|
720
|
-
}, [Mt, q, R, H, rt, r]), de = G((t,
|
|
721
|
-
nt == null || nt(t,
|
|
714
|
+
}, [Mt, q, R, H, rt, r]), de = G((t, f, c, w) => {
|
|
715
|
+
nt == null || nt(t, f, c, w);
|
|
722
716
|
}, [nt]), Rt = G((t) => {
|
|
723
|
-
L.current.delete(t), delete
|
|
724
|
-
const c =
|
|
717
|
+
L.current.delete(t), delete U.current[t], ct((f) => {
|
|
718
|
+
const c = f.filter((O) => O !== t), w = q(c), h = K.current, D = H(h, w, c);
|
|
725
719
|
return F == null || F(D), M == null || M({
|
|
726
720
|
breakpoint: h,
|
|
727
721
|
cols: r[h] ?? z,
|
|
@@ -732,12 +726,12 @@ const or = (e) => {
|
|
|
732
726
|
itemsOrderTyped: $(c)
|
|
733
727
|
}), c;
|
|
734
728
|
});
|
|
735
|
-
}, [q, H, F, M, r, S, $]), Gt = G((t,
|
|
729
|
+
}, [q, H, F, M, r, S, $]), Gt = G((t, f) => {
|
|
736
730
|
if (!R.includes(t))
|
|
737
731
|
return;
|
|
738
|
-
L.current.set(t,
|
|
739
|
-
const c = K.current, w = r[c] ?? z, h = tt(
|
|
740
|
-
|
|
732
|
+
L.current.set(t, f);
|
|
733
|
+
const c = K.current, w = r[c] ?? z, h = tt(f);
|
|
734
|
+
U.current[t] = {
|
|
741
735
|
w: Math.max(1, Math.min(h.w, w)),
|
|
742
736
|
h: Math.max(1, h.h)
|
|
743
737
|
};
|
|
@@ -758,28 +752,28 @@ const or = (e) => {
|
|
|
758
752
|
getOrderDetailed: () => $(R),
|
|
759
753
|
setOrder: (t) => {
|
|
760
754
|
ct(t);
|
|
761
|
-
const
|
|
755
|
+
const f = q(t), c = K.current, w = H(c, f, t);
|
|
762
756
|
F == null || F(w), M == null || M({
|
|
763
757
|
breakpoint: c,
|
|
764
758
|
cols: r[c] ?? z,
|
|
765
759
|
rowHeight: S,
|
|
766
760
|
items: w
|
|
767
|
-
},
|
|
761
|
+
}, f, {
|
|
768
762
|
itemsOrder: t,
|
|
769
763
|
itemsOrderTyped: $(t)
|
|
770
764
|
});
|
|
771
765
|
},
|
|
772
|
-
addItem: (t,
|
|
766
|
+
addItem: (t, f) => {
|
|
773
767
|
L.current.set(t.id, t.type);
|
|
774
768
|
const c = tt(t.type), w = K.current, h = r[w] ?? z, D = {
|
|
775
769
|
w: Math.max(1, Math.min(c.w, h)),
|
|
776
770
|
h: Math.max(1, c.h)
|
|
777
771
|
};
|
|
778
|
-
|
|
772
|
+
U.current[t.id] = D;
|
|
779
773
|
const O = It(w);
|
|
780
774
|
let g = 0, k = 0;
|
|
781
|
-
if (
|
|
782
|
-
const wt = Math.max(0, Math.min(
|
|
775
|
+
if (f != null) {
|
|
776
|
+
const wt = Math.max(0, Math.min(f - 1, R.length - 1)), pe = R[wt], xt = O.find((we) => we.i === pe);
|
|
783
777
|
xt && (k = xt.y, g = xt.x + xt.w);
|
|
784
778
|
}
|
|
785
779
|
const E = je(O, h, D.w, D.h, g, k), T = O.concat([{
|
|
@@ -805,34 +799,34 @@ const or = (e) => {
|
|
|
805
799
|
setItemType: Gt,
|
|
806
800
|
getAllLayouts: () => I,
|
|
807
801
|
getCurrentLayout: () => {
|
|
808
|
-
const t = K.current,
|
|
802
|
+
const t = K.current, f = H(t, I, R);
|
|
809
803
|
return {
|
|
810
804
|
breakpoint: t,
|
|
811
805
|
cols: r[t] ?? z,
|
|
812
806
|
rowHeight: S,
|
|
813
|
-
items:
|
|
807
|
+
items: f
|
|
814
808
|
};
|
|
815
809
|
}
|
|
816
810
|
}
|
|
817
811
|
}), [Rt, Gt, R, $, q, H, F, M, r, S, It, I]);
|
|
818
812
|
const me = yt(() => H(qt, I, R), [qt, I, R, H]);
|
|
819
|
-
return /* @__PURE__ */
|
|
813
|
+
return /* @__PURE__ */ Z(We, { ref: At, style: {
|
|
820
814
|
...Jt,
|
|
821
815
|
...j && kt ? {
|
|
822
816
|
userSelect: "none",
|
|
823
817
|
touchAction: "none"
|
|
824
818
|
} : {}
|
|
825
|
-
}, children: /* @__PURE__ */
|
|
819
|
+
}, children: /* @__PURE__ */ Z(He, { className: "layout", layouts: I, breakpoints: n, cols: r, rowHeight: S, margin: s, containerPadding: d, isDraggable: St, isResizable: o, onLayoutChange: ue, onBreakpointChange: ae, autoSize: i, useCSSTransforms: m, preventCollision: y, compactType: ie ? null : x ? ne : p, allowOverlap: N, isBounded: A, draggableHandle: b, draggableCancel: v, resizeHandles: o ? u : [], maxRows: Ut, transformScale: Vt, onWidthChange: de, onDrag: le, onDragStart: ce, onDragStop: fe, style: {
|
|
826
820
|
background: "transparent",
|
|
827
821
|
...Zt
|
|
828
|
-
}, children: me.map((t) => /* @__PURE__ */
|
|
822
|
+
}, children: me.map((t) => /* @__PURE__ */ Z(Se, { $isDraggable: j ? kt && Ct === t.id : l, children: /* @__PURE__ */ Z(oe, { isDraggable: St, className: se, children: typeof bt == "function" ? bt(t, () => Rt(t.id), (f) => Gt(t.id, f)) : bt }) }, t.id)) }) });
|
|
829
823
|
}), ze = Object.assign(Ye, {
|
|
830
824
|
ItemWrapper: Fe
|
|
831
825
|
});
|
|
832
826
|
ze.displayName = "GridDND";
|
|
833
827
|
export {
|
|
834
828
|
ze as G,
|
|
835
|
-
|
|
829
|
+
J as a,
|
|
836
830
|
Xt as b,
|
|
837
831
|
tr as c,
|
|
838
832
|
nr as d,
|