@daisforge/ui 1.22.0 → 1.23.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/AiAgentPopup-CLGSjg5L.cjs +11 -0
- package/chunks/AiAgentPopup-CtMhai1X.mjs +797 -0
- package/chunks/AnalyticalWidget-Bvcm1qpU.cjs +43 -0
- package/chunks/AnalyticalWidget-CRfihris.mjs +352 -0
- package/chunks/ApprovalCenter-D7K7J-QB.cjs +1 -0
- package/chunks/{ApprovalCenter-DLKZP2AO.mjs → ApprovalCenter-dJpI91uN.mjs} +10 -10
- package/chunks/BlockTitle-CcYYHiOo.cjs +1 -0
- package/chunks/{BlockTitle-DsXxImR6.mjs → BlockTitle-DCmM-9AN.mjs} +2 -2
- package/chunks/{Container-DbZwlfIM.mjs → Container-C7PzvUwd.mjs} +1 -1
- package/chunks/{Container-DHnX1sHY.cjs → Container-bVqI3en9.cjs} +1 -1
- package/chunks/{EmptyState-DH1xawxg.cjs → EmptyState-D-bmtvmy.cjs} +1 -1
- package/chunks/{EmptyState-CUCseg9M.mjs → EmptyState-ZsOlvU4d.mjs} +1 -1
- package/chunks/{FiltersActions-BJ5gD6Nx.mjs → FiltersActions-CS27WxA6.mjs} +15 -15
- package/chunks/FiltersActions-Cie245Po.cjs +1 -0
- package/chunks/{FormSegmentGroup-BYQ6yMK1.cjs → FormSegmentGroup-CNIqOYfm.cjs} +1 -1
- package/chunks/{FormSegmentGroup-C9qYxYT9.mjs → FormSegmentGroup-DwTRM58f.mjs} +1 -1
- package/chunks/{GridDND-DK6SAO8q.cjs → GridDND-Bwmr7gla.cjs} +1 -1
- package/chunks/{GridDND-CqvpXgCY.mjs → GridDND-DC5VoxEY.mjs} +83 -83
- package/chunks/{LeftPanel-C5SsoRJS.mjs → LeftPanel-C10BLKIn.mjs} +1 -1
- package/chunks/{LeftPanel-AyuV7bGS.cjs → LeftPanel-upGFk7jM.cjs} +1 -1
- package/chunks/{ListOfFilters-CfV2bs_4.mjs → ListOfFilters-CEWrWotU.mjs} +3 -3
- package/chunks/{ListOfFilters-mqTsQbq_.cjs → ListOfFilters-DNi-z1cn.cjs} +1 -1
- package/chunks/MassActions-DJiKcC6r.cjs +1 -0
- package/chunks/{MassActions-C6LY-g9r.mjs → MassActions-NLCRjIHw.mjs} +46 -46
- package/chunks/PageTitle-Bg4PNEXS.cjs +9 -0
- package/chunks/{PageTitle-DkfAiZM4.mjs → PageTitle-CXtNgH-b.mjs} +7 -7
- package/chunks/{SplitView-BqS1Jbo4.mjs → SplitView-BzamJzNc.mjs} +17 -17
- package/chunks/{SplitView-DNmd4sJe.cjs → SplitView-DeJ3V-kq.cjs} +1 -1
- package/chunks/Stories-CNlL0Bcb.cjs +1 -0
- package/chunks/{Stories-BnHxMCEZ.mjs → Stories-UUV0GNEV.mjs} +33 -33
- package/chunks/{Table-vv1HTrxe.cjs → Table-CZludfzU.cjs} +6 -6
- package/chunks/{Table-tUWuA3Ri.mjs → Table-FrYs56BB.mjs} +1597 -1586
- package/chunks/{TableCanvas-BX5aciu7.mjs → TableCanvas-CasYPFSm.mjs} +5872 -5633
- package/chunks/TableCanvas-DFne0YHS.cjs +30 -0
- package/chunks/TableGlide-BKSjSgBn.mjs +9131 -0
- package/chunks/TableGlide-C2_HrWEA.cjs +1 -0
- package/chunks/{styles-CJ5y9FKW.mjs → styles-CJPkBVWK.mjs} +6 -6
- package/chunks/{styles-kUWPuNSD.cjs → styles-CpC_FuBg.cjs} +1 -1
- package/chunks/{utils-u1KJ37g3.mjs → utils-Hu77fGGe.mjs} +102 -102
- package/chunks/{utils-ChDQGRjv.cjs → utils-OQNruMpn.cjs} +5 -5
- package/components/AiAgentPopover/index.cjs +1 -1
- package/components/AiAgentPopover/index.mjs +1 -1
- package/components/AiAgentPopup/AiAgentInput.d.ts +3 -0
- package/components/AiAgentPopup/AiAgentLeftPanel.d.ts +6 -0
- package/components/AiAgentPopup/AiAgentPopup.constants.d.ts +32 -0
- package/components/AiAgentPopup/AiAgentPopup.d.ts +3 -0
- package/components/AiAgentPopup/AiAgentPopup.styled.d.ts +33 -0
- package/components/AiAgentPopup/AiAgentPopup.types.d.ts +83 -0
- package/components/AiAgentPopup/AiAgentPopup.utils.d.ts +12 -0
- package/components/AiAgentPopup/AiAgentSurface.d.ts +6 -0
- package/components/AiAgentPopup/hooks/useDrag.d.ts +18 -0
- package/components/AiAgentPopup/hooks/useIsDarkTheme.d.ts +1 -0
- package/components/AiAgentPopup/hooks/usePopupPosition.d.ts +20 -0
- package/components/AiAgentPopup/hooks/usePopupResize.d.ts +40 -0
- package/components/AiAgentPopup/hooks/useStateStorage.d.ts +6 -0
- package/components/AiAgentPopup/index.cjs +1 -0
- package/components/AiAgentPopup/index.d.ts +3 -0
- package/components/AiAgentPopup/index.mjs +5 -0
- package/components/AnalyticalWidget/AnalyticalWidget.d.ts +8 -24
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.d.ts +8 -24
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +2 -2
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +2 -2
- 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/Autocomplete.d.ts +128 -128
- 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/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 +6 -6
- 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 +9 -9
- package/components/PopoverDF/styled.d.ts +1 -23
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/index.mjs +118 -143
- 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/popover.d.ts +1 -23
- 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-searching/styled.d.ts +128 -128
- 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/TableGlideInstance.d.ts +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 +6 -6
- package/components/TableCanvas/TableGlideInstance/type.d.ts +3 -0
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +2 -2
- 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/contexts.d.ts +8 -2
- package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +13 -13
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +2 -2
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +2 -2
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.mjs +4 -4
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +3 -3
- 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 +6 -6
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +4 -4
- 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 +3 -3
- 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 +4 -4
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +6 -6
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +2 -2
- package/components/TableCanvas/feature-pagination/TablePagination.d.ts +2 -0
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +3 -3
- package/components/TableCanvas/feature-popover-table/components/styled.d.ts +1 -23
- 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 +3 -3
- 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/compatibility.d.ts +8 -0
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.d.ts +2 -3
- package/components/TableCanvas/feature-right-sidebar/index.mjs +3 -3
- 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 +7 -7
- 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 +4 -4
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +10 -10
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/styled.d.ts +128 -128
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-sidebar/constants.d.ts +7 -0
- package/components/TableCanvas/feature-sidebar/getCustomSidebarTabs.d.ts +4 -0
- package/components/TableCanvas/feature-sidebar/index.cjs +1 -0
- package/components/TableCanvas/feature-sidebar/index.d.ts +1 -0
- package/components/TableCanvas/feature-sidebar/index.mjs +4 -0
- package/components/TableCanvas/feature-sidebar/ui/BottomSheet.d.ts +6 -0
- package/components/TableCanvas/feature-sidebar/ui/BottomSheet.styled.d.ts +6 -0
- package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/SidebarContentLayout.d.ts +1 -0
- package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/SidebarTabs.d.ts +2 -1
- package/components/TableCanvas/feature-sidebar/ui/TableSidebar.d.ts +16 -0
- package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/styled.d.ts +5 -2
- package/components/TableCanvas/feature-sidebar/useSidebarTabsState.d.ts +14 -0
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-sticky/index.cjs +1 -0
- package/components/TableCanvas/feature-sticky/index.d.ts +3 -0
- package/components/TableCanvas/feature-sticky/index.mjs +5 -0
- package/components/TableCanvas/feature-sticky/types.d.ts +2 -0
- package/components/TableCanvas/feature-sticky/useStickyColumnIndexes.d.ts +8 -0
- package/components/TableCanvas/feature-sticky/useStickyRowIndexes.d.ts +3 -0
- 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 +2 -2
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +4 -4
- 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.d.ts +2 -1
- package/components/TableCanvas/index.mjs +43 -41
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/styles/classNames.d.ts +1 -0
- package/components/TableCanvas/styles/getReservedTableHeight.d.ts +18 -0
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +10 -10
- package/components/TableCanvas/styles/styles.constants.d.ts +1 -1
- package/components/TableCanvas/styles/styles.d.ts +2 -5
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +4 -4
- package/components/TableCanvas/table-hooks/useInlineStyle.d.ts +2 -1
- package/components/TableCanvas/table-hooks/useLeftSidebarValues.d.ts +7 -0
- package/components/TableCanvas/table-hooks/useSidebarOpenState.d.ts +11 -0
- package/components/TableCanvas/table-hooks/useSidebarValues.d.ts +1 -0
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +2 -2
- package/components/TableCanvas/types/table-config.type.d.ts +19 -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/control-block.constants.d.ts +6 -0
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +5 -5
- 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/control-block/types.d.ts +1 -0
- package/components/TableCanvas/widgets/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +5 -5
- package/components/TableCanvas/widgets/mass-actions/MassActions.d.ts +2 -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/hooks/useMassActionsCanvasWidth.d.ts +1 -0
- package/components/TableCanvas/widgets/mass-actions/hooks/useMassActionsCompression.d.ts +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/useMassActionsSidebar.d.ts +4 -1
- package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- package/components/TableCanvas/widgets/table-or-card-UI.d.ts +6 -3
- package/components/TableContract/index.cjs +1 -1
- package/components/TableContract/index.mjs +2 -2
- package/components/TableGlide/TableGlide.d.ts +1 -1
- package/components/TableGlide/constants.d.ts +3 -3
- package/components/TableGlide/content-tokens.generated.d.ts +612 -0
- package/components/TableGlide/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.mjs +1 -1
- package/components/TableGlide/hooks/selection/useBaseHighlightRegions.d.ts +2 -1
- package/components/TableGlide/hooks/selection/useColoringLayers.d.ts +2 -3
- package/components/TableGlide/hooks/selection/useColumnRowHighlightRegions.d.ts +1 -4
- package/components/TableGlide/hooks/selection/useSelectionGeometry.d.ts +3 -1
- package/components/TableGlide/hooks/useErrorCellRanges.d.ts +1 -2
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +31 -31
- package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +4 -4
- 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 +13 -13
- package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +4 -4
- 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 +34 -34
- 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/CanvasLink.d.ts +2 -2
- package/components/TableGlide/lib/canvas/primitives/CanvasText.d.ts +3 -1
- package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.mjs +5 -5
- package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.mjs +2 -2
- package/components/TableGlide/theming/activeTheme.type.d.ts +3 -1
- package/components/TableGlide/theming/cell-fill-override.d.ts +31 -0
- package/components/TableGlide/theming/custom-colors.d.ts +46 -11
- package/components/TableGlide/theming/fill-states.d.ts +19 -0
- package/components/TableGlide/theming/glide-colors.d.ts +14 -14
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableGlide/theming/size-tokens.d.ts +1 -1
- package/components/TableGlide/theming/table-colors.generated.d.ts +529 -0
- package/components/TableGlide/tokens.d.ts +1 -104
- package/components/TableGlide/types.d.ts +3 -5
- 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 +3 -3
- package/components/TourWidget/index.mjs +14 -14
- 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/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.d.ts +3 -1
- package/index.mjs +1864 -1859
- 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/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 +1158 -206
- package/mixins/index.cjs +4 -4
- package/mixins/index.mjs +61 -54
- package/package.json +6 -6
- package/shared/utils/resizable/index.cjs +1 -0
- package/shared/utils/resizable/index.d.ts +2 -0
- package/shared/utils/resizable/index.mjs +39 -0
- package/shared/utils/resizable/resizableConfig.d.ts +16 -0
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/types/index.d.ts +1 -0
- package/types/utility.d.ts +1 -0
- package/utils/breakpoint/index.cjs +1 -1
- package/utils/breakpoint/index.mjs +2 -2
- 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 +8 -8
- package/utils/react/index.cjs +1 -1
- package/utils/react/index.mjs +1 -1
- package/utils/styles/index.cjs +1 -1
- package/utils/styles/index.mjs +1 -1
- package/chunks/AnalyticalWidget-BtyWKJuu.mjs +0 -537
- package/chunks/AnalyticalWidget-YytE3Rlw.cjs +0 -43
- package/chunks/ApprovalCenter-DdsLEipZ.cjs +0 -1
- package/chunks/BlockTitle-DC1McGof.cjs +0 -1
- package/chunks/FiltersActions-Bg5wvHFG.cjs +0 -1
- package/chunks/MassActions-BTrj9l-R.cjs +0 -1
- package/chunks/PageTitle-CrBeieoq.cjs +0 -9
- package/chunks/Stories-UYVANawW.cjs +0 -1
- package/chunks/TableCanvas-qnwh4c5g.cjs +0 -30
- package/chunks/TableGlide-BLbbkn4C.mjs +0 -8154
- package/chunks/TableGlide-CZ2mkokV.cjs +0 -1
- package/components/TableCanvas/feature-right-sidebar/constants.d.ts +0 -1
- package/components/TableCanvas/feature-right-sidebar/ui/TableSidebar.d.ts +0 -16
- /package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/TableSidebar.classnames.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/TableCanvas-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/TableCanvas-DFne0YHS.cjs");exports.useColumns=e.useColumns;exports.useContextMenuValues=e.useContextMenuValues;exports.useContextsValues=e.useContextsValues;exports.useFilteredRows=e.useFilteredRows;exports.useFlattenedRows=e.useFlattenedRows;exports.useInlineStyle=e.useInlineStyle;exports.useIsLoadingTable=e.useIsLoadingTable;exports.useOnCellClick=e.useOnCellClick;exports.useOnRowsChange=e.useOnRowsChange;exports.usePrepareTableConfig=e.usePrepareTableConfig;exports.useRecalculateColumnsWidth=e.useRecalculateColumnsWidth;exports.useRowClass=e.useRowClass;exports.useRowHeight=e.useRowHeight;exports.useRowInstruments=e.useRowInstruments;exports.useRowsWithSkeletonsOrNot=e.useRowsWithSkeletonsOrNot;exports.useSearchValues=e.useSearchValues;exports.useSidebarState=e.useSidebarState;exports.useTableCollapseValues=e.useTableCollapseValues;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cG as a, cH as u, cI as c, cJ as l, cK as t, cL as o, cM as n, cN as C, cO as i, cP as r, cQ as R, cR as w, cS as S, cT as d, cU as h, cV as V, cW as b, cX as g } from "../../../chunks/TableCanvas-CasYPFSm.mjs";
|
|
2
2
|
export {
|
|
3
3
|
a as useColumns,
|
|
4
4
|
u as useContextMenuValues,
|
|
@@ -15,7 +15,7 @@ export {
|
|
|
15
15
|
S as useRowHeight,
|
|
16
16
|
d as useRowInstruments,
|
|
17
17
|
h as useRowsWithSkeletonsOrNot,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
V as useSearchValues,
|
|
19
|
+
b as useSidebarState,
|
|
20
|
+
g as useTableCollapseValues
|
|
21
21
|
};
|
|
@@ -3,7 +3,7 @@ import { ObjectForExtending, TableConfig } from '../types';
|
|
|
3
3
|
import { TableCollapseContextValue } from '../contexts';
|
|
4
4
|
import { default as React, CSSProperties } from 'react';
|
|
5
5
|
|
|
6
|
-
export declare const useInlineStyle: <FilterStateType extends ObjectForExtending, RowIdType extends string | number, RowType extends ObjectForExtending, SummaryRowType = unknown>({ tableConfig, reorderedColumns, filtersAreVisible, style, controlBlockIsHave, fullScreened, paginationActiveInConfig, paginationCustomSize, paginationHeight, isSearchingBellow, tableCollapsingValue, refTableContainer, collapseButtonPlacement, }: {
|
|
6
|
+
export declare const useInlineStyle: <FilterStateType extends ObjectForExtending, RowIdType extends string | number, RowType extends ObjectForExtending, SummaryRowType = unknown>({ tableConfig, reorderedColumns, filtersAreVisible, style, controlBlockIsHave, fullScreened, paginationActiveInConfig, paginationCustomSize, paginationHeight, isSearchingBellow, tableCollapsingValue, refTableContainer, collapseButtonPlacement, hasBottomSheet, }: {
|
|
7
7
|
tableConfig: TableConfig<RowType, SummaryRowType, RowIdType, FilterStateType>;
|
|
8
8
|
reorderedColumns: readonly ColumnConfigInternal<RowType, SummaryRowType>[];
|
|
9
9
|
filtersAreVisible: boolean;
|
|
@@ -17,6 +17,7 @@ export declare const useInlineStyle: <FilterStateType extends ObjectForExtending
|
|
|
17
17
|
tableCollapsingValue: TableCollapseContextValue;
|
|
18
18
|
refTableContainer?: React.RefObject<HTMLElement>;
|
|
19
19
|
collapseButtonPlacement?: 'inside' | 'above';
|
|
20
|
+
hasBottomSheet?: boolean;
|
|
20
21
|
}) => {
|
|
21
22
|
styleMemo: {
|
|
22
23
|
width?: string | number | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TableCanvasSidebarConfig } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const useSidebarOpenState: (config?: Pick<TableCanvasSidebarConfig, 'defaultOpen' | 'openState'>) => {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
toggle: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useSidebarResize: ({ isOpen, width, refTableContainer, }: {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
width: string | number;
|
|
10
|
+
refTableContainer?: React.RefObject<HTMLElement>;
|
|
11
|
+
}) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/TableCanvas-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/TableCanvas-DFne0YHS.cjs");exports.DOM_METADATA_ACTIONS=e.DOM_METADATA_ACTIONS;
|
|
@@ -8,6 +8,7 @@ import { FeatureItem, PinningMenuConfig, SidebarTab } from '../widgets/control-b
|
|
|
8
8
|
import { ControlBlockButtonProps } from '../widgets/control-block/control-block-button.types';
|
|
9
9
|
import { CellReadOnlyEditorGlideInstanceStaticProps, CellsSelectionMode, HighlightActiveType, HoverEffectsConfig, TableGlideCustomProps, TableGlideInstanceProps, TableInfoWithRow } from '../TableGlideInstance/type';
|
|
10
10
|
import { SubRows } from '../feature-tree/types';
|
|
11
|
+
import { StickyColumnsConfig, StickyRowsConfig } from '../feature-sticky/types';
|
|
11
12
|
import { FlattenedRowsArrAndMap, SelectingRowConfig } from '../feature-select-row/types';
|
|
12
13
|
import { SearchingProps } from '../feature-searching/types';
|
|
13
14
|
import { RowsGrouping } from '../feature-rows-grouping/types';
|
|
@@ -103,7 +104,7 @@ export type FilteringConfig<T> = {
|
|
|
103
104
|
renderChipLabel?: (group: Group | null, item: Item) => string;
|
|
104
105
|
};
|
|
105
106
|
export type DefaultSidebarTabIds = 'columns' | 'tableSettings' | 'filtering';
|
|
106
|
-
export type
|
|
107
|
+
export type TableCanvasSidebarConfig = {
|
|
107
108
|
enabled?: boolean;
|
|
108
109
|
defaultOpen?: boolean;
|
|
109
110
|
openState?: [boolean, React.Dispatch<React.SetStateAction<boolean>>];
|
|
@@ -117,6 +118,9 @@ export type SidebarConfig = {
|
|
|
117
118
|
id: Exclude<string, DefaultSidebarTabIds>;
|
|
118
119
|
}>;
|
|
119
120
|
customTabsOrder?: Array<Exclude<string, DefaultSidebarTabIds>>;
|
|
121
|
+
width?: string | number;
|
|
122
|
+
};
|
|
123
|
+
export type SidebarConfig = TableCanvasSidebarConfig & {
|
|
120
124
|
defaultTabs?: Array<{
|
|
121
125
|
id: 'filtering' | 'columns';
|
|
122
126
|
label?: string;
|
|
@@ -136,6 +140,15 @@ export type SidebarConfig = {
|
|
|
136
140
|
iconTooltipText?: string;
|
|
137
141
|
}>;
|
|
138
142
|
};
|
|
143
|
+
export type RightSidebarConfig = SidebarConfig;
|
|
144
|
+
export type LeftSidebarConfig = TableCanvasSidebarConfig;
|
|
145
|
+
export type BottomSheetConfig = {
|
|
146
|
+
enabled?: boolean;
|
|
147
|
+
height?: string | number;
|
|
148
|
+
minHeight?: string | number;
|
|
149
|
+
maxHeight?: string | number;
|
|
150
|
+
content: React.ReactNode;
|
|
151
|
+
};
|
|
139
152
|
export declare function activeViewIs<T extends 'cards' | 'rows'>(checkType: T, viewState: 'cards' | 'rows', view: View): view is ViewMods[T];
|
|
140
153
|
export type ControlBlockSize = 'm' | 's' | 'xs';
|
|
141
154
|
export type ControlBlockConfig = {
|
|
@@ -308,6 +321,8 @@ export type TableConfig<RowType extends ObjectForExtending, SummaryRowType, RowI
|
|
|
308
321
|
containerCss?: string | CSSObject | undefined;
|
|
309
322
|
containerId?: string | undefined;
|
|
310
323
|
unstickyHeader?: boolean;
|
|
324
|
+
stickyColumns?: StickyColumnsConfig<ColumnConfig<RowType, SummaryRowType>>;
|
|
325
|
+
stickyRows?: StickyRowsConfig<RowType>;
|
|
311
326
|
tooltip?: TableConfigTooltip;
|
|
312
327
|
infinityScroll?: InfinityScrollConfig<RowType>;
|
|
313
328
|
isLoading?: boolean | {
|
|
@@ -329,6 +344,9 @@ export type TableConfig<RowType extends ObjectForExtending, SummaryRowType, RowI
|
|
|
329
344
|
keyText?: boolean | KeyTextConfig;
|
|
330
345
|
pagination?: PaginationProps;
|
|
331
346
|
sidebarConfig?: SidebarConfig;
|
|
347
|
+
rightSidebarConfig?: RightSidebarConfig;
|
|
348
|
+
leftSidebarConfig?: LeftSidebarConfig;
|
|
349
|
+
bottomSheetConfig?: BottomSheetConfig;
|
|
332
350
|
searching?: SearchingProps;
|
|
333
351
|
onHeaderContextMenu?: TableGlideInstanceProps<RowType, SummaryRowType>['onHeaderContextMenu'];
|
|
334
352
|
onHeaderContextMenuDropdown?: TableGlideInstanceProps<RowType, SummaryRowType>['onHeaderContextMenuDropdown'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/TableCanvas-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/TableCanvas-DFne0YHS.cjs"),t=require("../../../chunks/utils-OQNruMpn.cjs");exports.calculateMinColumnWidth=e.calculateMinColumnWidth;exports.getDataAttributes=e.getDataAttributes;exports.overflowDotsStyle=e.overflowDotsStyle;exports.pasteOnlyKeysWithNotUndefinedValue=e.pasteOnlyKeysWithNotUndefinedValue;exports.setValueInObj=e.setValueInObj;exports.viewportToContainerPosition=e.viewportToContainerPosition;exports.tableDebug=t.tableDebug;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { bh as a, bi as o, bj as s, bk as b, bl as i, bm as l } from "../../../chunks/TableCanvas-CasYPFSm.mjs";
|
|
2
|
+
import { s as r } from "../../../chunks/utils-Hu77fGGe.mjs";
|
|
3
3
|
export {
|
|
4
4
|
a as calculateMinColumnWidth,
|
|
5
5
|
o as getDataAttributes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const e=require("../../../../../chunks/TableCanvas-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const e=require("../../../../../chunks/TableCanvas-DFne0YHS.cjs");exports.useCompressionFeatures=e.useCompressionFeatures;exports.useControlBlockMeasurements=e.useControlBlockMeasurements;exports.useMeasurementEffects=e.useMeasurementEffects;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import {
|
|
2
|
+
import { cY as r, cZ as t, c_ as a } from "../../../../../chunks/TableCanvas-CasYPFSm.mjs";
|
|
3
3
|
export {
|
|
4
4
|
r as useCompressionFeatures,
|
|
5
5
|
t as useControlBlockMeasurements,
|
|
@@ -82,6 +82,7 @@ declare const SPACING_MAP: {
|
|
|
82
82
|
containerPadding: number;
|
|
83
83
|
leftPartGap: number;
|
|
84
84
|
leftPartPaddingRight: number;
|
|
85
|
+
collapseGap: number;
|
|
85
86
|
rightButtonsGap: number;
|
|
86
87
|
rightButtonsPaddingInline: number;
|
|
87
88
|
rightFeaturesGap: number;
|
|
@@ -91,6 +92,7 @@ declare const SPACING_MAP: {
|
|
|
91
92
|
containerPadding: number;
|
|
92
93
|
leftPartGap: number;
|
|
93
94
|
leftPartPaddingRight: number;
|
|
95
|
+
collapseGap: number;
|
|
94
96
|
rightButtonsGap: number;
|
|
95
97
|
rightButtonsPaddingInline: number;
|
|
96
98
|
rightFeaturesGap: number;
|
|
@@ -100,6 +102,7 @@ declare const SPACING_MAP: {
|
|
|
100
102
|
containerPadding: number;
|
|
101
103
|
leftPartGap: number;
|
|
102
104
|
leftPartPaddingRight: number;
|
|
105
|
+
collapseGap: number;
|
|
103
106
|
rightButtonsGap: number;
|
|
104
107
|
rightButtonsPaddingInline: number;
|
|
105
108
|
rightFeaturesGap: number;
|
|
@@ -111,6 +114,7 @@ export declare const getControlBlockSpacingMap: (size?: ControlBlockSize) => {
|
|
|
111
114
|
containerPadding: number;
|
|
112
115
|
leftPartGap: number;
|
|
113
116
|
leftPartPaddingRight: number;
|
|
117
|
+
collapseGap: number;
|
|
114
118
|
rightButtonsGap: number;
|
|
115
119
|
rightButtonsPaddingInline: number;
|
|
116
120
|
rightFeaturesGap: number;
|
|
@@ -119,6 +123,7 @@ export declare const getControlBlockSpacingMap: (size?: ControlBlockSize) => {
|
|
|
119
123
|
containerPadding: number;
|
|
120
124
|
leftPartGap: number;
|
|
121
125
|
leftPartPaddingRight: number;
|
|
126
|
+
collapseGap: number;
|
|
122
127
|
rightButtonsGap: number;
|
|
123
128
|
rightButtonsPaddingInline: number;
|
|
124
129
|
rightFeaturesGap: number;
|
|
@@ -127,6 +132,7 @@ export declare const getControlBlockSpacingMap: (size?: ControlBlockSize) => {
|
|
|
127
132
|
containerPadding: number;
|
|
128
133
|
leftPartGap: number;
|
|
129
134
|
leftPartPaddingRight: number;
|
|
135
|
+
collapseGap: number;
|
|
130
136
|
rightButtonsGap: number;
|
|
131
137
|
rightButtonsPaddingInline: number;
|
|
132
138
|
rightFeaturesGap: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../chunks/TableCanvas-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../chunks/TableCanvas-DFne0YHS.cjs");exports.CONTROL_BLOCK=o.CONTROL_BLOCK;exports.ControlBlock=o.ControlBlock;exports.ControlBlockLazy=o.ControlBlockLazy;exports.ControlBlockSwitch=o.ControlBlockSwitch;exports.ControlBlockWithoutResize=o.ControlBlockWithoutResize;exports.controlBlockClassNames=o.controlBlockClassNames;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d0 as s, d1 as a, d2 as t, d3 as c, d4 as r, d5 as C } from "../../../../chunks/TableCanvas-CasYPFSm.mjs";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
s as CONTROL_BLOCK,
|
|
4
|
+
a as ControlBlock,
|
|
5
|
+
t as ControlBlockLazy,
|
|
6
|
+
c as ControlBlockSwitch,
|
|
7
7
|
r as ControlBlockWithoutResize,
|
|
8
8
|
C as controlBlockClassNames
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../chunks/TableCanvas-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../chunks/TableCanvas-DFne0YHS.cjs");exports.RightSide=e.RightSide;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../chunks/TableCanvas-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../chunks/TableCanvas-DFne0YHS.cjs");exports.ControlBlock=o.ControlBlock;exports.ControlBlockLazy=o.ControlBlockLazy;exports.MassActions=o.MassActions;exports.NoRowsFallback=o.NoRowsFallback;exports.TableOrCardsUI=o.TableOrCardsUI;exports.renderFilterSortHeader=o.renderFilterSortHeader;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d1 as r, d2 as s, de as d, df as e, dg as l, dh as t } from "../../../chunks/TableCanvas-CasYPFSm.mjs";
|
|
2
2
|
export {
|
|
3
3
|
r as ControlBlock,
|
|
4
4
|
s as ControlBlockLazy,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
d as MassActions,
|
|
6
|
+
e as NoRowsFallback,
|
|
7
|
+
l as TableOrCardsUI,
|
|
8
|
+
t as renderFilterSortHeader
|
|
9
9
|
};
|
|
@@ -2,10 +2,11 @@ import { MassActionButtonProps } from './types';
|
|
|
2
2
|
import { TableDropdownConfigProps } from '../../components/TableDropdown/types';
|
|
3
3
|
import { MassActionsSize } from '../../../MassActions';
|
|
4
4
|
|
|
5
|
-
export declare const MassActions: ({ buttons, isHaveSomeFeatureInSidebar, collapsedDropdownProps, bottom, forceShow, size, }: {
|
|
5
|
+
export declare const MassActions: ({ buttons, isHaveSomeFeatureInSidebar, rightSidebarWidth, collapsedDropdownProps, bottom, forceShow, size, }: {
|
|
6
6
|
buttons?: MassActionButtonProps[];
|
|
7
7
|
collapsedDropdownProps?: TableDropdownConfigProps;
|
|
8
8
|
isHaveSomeFeatureInSidebar?: boolean;
|
|
9
|
+
rightSidebarWidth?: string | number;
|
|
9
10
|
bottom?: number;
|
|
10
11
|
forceShow?: boolean;
|
|
11
12
|
size?: MassActionsSize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../../chunks/TableCanvas-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../../chunks/TableCanvas-DFne0YHS.cjs");exports.useMassActionsButtons=s.useMassActionsButtons;exports.useMassActionsCollapse=s.useMassActionsCollapse;exports.useMassActionsCompression=s.useMassActionsCompression;exports.useMassActionsEffects=s.useMassActionsEffects;exports.useMassActionsPosition=s.useMassActionsPosition;exports.useMassActionsSidebar=s.useMassActionsSidebar;exports.useMassActionsVisibility=s.useMassActionsVisibility;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d6 as i, d7 as o, d8 as t, d9 as e, da as n, db as c, dc as d } from "../../../../../chunks/TableCanvas-CasYPFSm.mjs";
|
|
2
2
|
export {
|
|
3
3
|
i as useMassActionsButtons,
|
|
4
4
|
o as useMassActionsCollapse,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMassActionsCanvasWidth: () => () => number | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MassActionButtonProps } from '../types';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
|
|
4
|
-
export declare const useMassActionsCompression: ({ isCollapsed, containerRef, contentRef, resetButtonRef, buttonRefs, moreButtonRef, collapseButtonRef, summaryCheckboxElRef, buttons,
|
|
4
|
+
export declare const useMassActionsCompression: ({ isCollapsed, containerRef, contentRef, resetButtonRef, buttonRefs, moreButtonRef, collapseButtonRef, summaryCheckboxElRef, buttons, setVisibleButtonsCount, }: {
|
|
5
5
|
isCollapsed: boolean;
|
|
6
6
|
containerRef: React.RefObject<HTMLDivElement>;
|
|
7
7
|
contentRef: React.RefObject<HTMLDivElement>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export declare const useMassActionsSidebar: (
|
|
3
|
+
export declare const useMassActionsSidebar: (values: {
|
|
4
4
|
isCollapsed: boolean;
|
|
5
|
+
isHaveSomeFeatureInSidebar?: boolean;
|
|
6
|
+
rightSidebarWidth?: string | number;
|
|
5
7
|
setIsCollapsed: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
8
|
calculatePositionForState: (targetCollapsed: boolean) => number | undefined;
|
|
7
9
|
calculatePosition: () => void;
|
|
10
|
+
calculateCompression: () => void;
|
|
8
11
|
setTranslateX: React.Dispatch<React.SetStateAction<number | undefined>>;
|
|
9
12
|
shouldApplySidebarOffsetRef: React.MutableRefObject<boolean>;
|
|
10
13
|
}) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../chunks/TableCanvas-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../chunks/TableCanvas-DFne0YHS.cjs");exports.MassActionButton=t.MassActionButton;exports.MassActions=t.MassActions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MassActionButtonProps } from './mass-actions';
|
|
2
|
-
import { ActiveViewModsType, ControlBlockSize, Key, ObjectForExtending, TableConfigTooltip, View } from '../types';
|
|
2
|
+
import { ActiveViewModsType, BottomSheetConfig, ControlBlockSize, Key, ObjectForExtending, TableConfigTooltip, View } from '../types';
|
|
3
3
|
import { ColumnOrColumnGroupGlideInstance, DataEditorRef, HighlightActiveType, TableGlideInstanceProps } from '../TableGlideInstance';
|
|
4
4
|
import { SIZES } from '../styles';
|
|
5
5
|
import { PaginationProps } from '../feature-pagination/types';
|
|
@@ -8,14 +8,17 @@ import { CSSObject, CSSProperties } from 'styled-components';
|
|
|
8
8
|
import { default as React, ReactNode, Ref } from 'react';
|
|
9
9
|
import { MassActionsSize } from '../../MassActions';
|
|
10
10
|
|
|
11
|
-
export declare const TableOrCardsUI: <RowType extends ObjectForExtending, SummRowType, _K extends Key = Key>({ containerProps: { viewProp: { activeView, view }, controlBlock, containerId,
|
|
11
|
+
export declare const TableOrCardsUI: <RowType extends ObjectForExtending, SummRowType, _K extends Key = Key>({ containerProps: { viewProp: { activeView, view }, controlBlock, containerId, rightSidebarBlock, rightSidebarWidth, leftSidebarBlock, bottomSheetConfig, refTableGlobalContainer, refTableContainer, $borderLeftTopRadiusRounded, $borderRightTopRadiusRounded, $borderLeftBottomRadiusRounded, $borderRightBottomRadiusRounded, $containerStyle, $columnsGroupingIsActive, $containerCss, $css, $fullScreened, fullScreenPortal, $tableAndSidebarContainerHeightStyle, $highlightActiveType, collapseButtonPlacement, collapseButtonAboveRightSlot, $borderTopRounded, isHaveSomeFeatureInSidebar, controlBlockSize, }, dataGridProps: { className, rowSize, refTable, onCellContextMenu, CellReadOnlyEditor, ...restDataGridProps }, pagination, setPaginationHeight, loadingOverlayConfig, containerStyle, massActionPanel, tooltip, fullScreened, }: {
|
|
12
12
|
containerProps: {
|
|
13
13
|
viewProp: {
|
|
14
14
|
activeView: ActiveViewModsType;
|
|
15
15
|
view: View;
|
|
16
16
|
};
|
|
17
17
|
controlBlock: ReactNode;
|
|
18
|
-
|
|
18
|
+
rightSidebarBlock: ReactNode;
|
|
19
|
+
rightSidebarWidth?: string | number;
|
|
20
|
+
leftSidebarBlock?: ReactNode;
|
|
21
|
+
bottomSheetConfig?: BottomSheetConfig;
|
|
19
22
|
containerId: string | undefined;
|
|
20
23
|
refTableGlobalContainer: React.MutableRefObject<HTMLDivElement | null>;
|
|
21
24
|
refTableContainer: React.Ref<HTMLDivElement>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("@salutejs/sdds-finai"),d=require("react/jsx-runtime"),xe=require("../ModalDFConfirmation/index.cjs"),k=require("../../chunks/Table-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("@salutejs/sdds-finai"),d=require("react/jsx-runtime"),xe=require("../ModalDFConfirmation/index.cjs"),k=require("../../chunks/Table-CZludfzU.cjs"),f=require("react"),je=require("swr"),Oe=require("@salutejs/plasma-icons"),Be=require("swr/mutation"),W=require("../../constants/index.cjs"),ue=require("@salutejs/sdds-themes/tokens/sdds_finai"),ve=require("styled-components"),Ee=require("../../chunks/utils-OQNruMpn.cjs"),Ae=require("../../layouts/ErrorPage/index.cjs"),H=async(o,t)=>{const r=await o(t);if(!r.ok){const i=new Error,n=await r.json();throw i.status=r.status,i.info=n,i.message=`An error occurred while fetching the data.
|
|
2
2
|
|
|
3
3
|
${JSON.stringify(n,void 0,2)}`,i}return r.json()},ge=class ge{};ge.get=async(t,r)=>H(r,t);let te=ge;const J=class J{};J.createOne=(t,r)=>H(r,{method:"POST",body:JSON.stringify(t)}),J.deleteOne=(t,r)=>H(r,{method:"POST",body:JSON.stringify(t),pathParams:"delete"}),J.updateOne=(t,r)=>H(r,{method:"PUT",body:JSON.stringify(t)});let z=J;const G={sort:"sort",page:"page",pageSize:"pageSize",q:"q"},Ie={height:"500px"},Pe=[{ansiSqlType:"Real",semanticType:"FLOAT",jsType:"number"},{ansiSqlType:"Integer/Int/Int4",semanticType:"INTEGER",jsType:"number"},{ansiSqlType:"Numeric/decimal",semanticType:"DECIMAL",jsType:"number"},{ansiSqlType:"Text",semanticType:"STRING",jsType:"string"},{ansiSqlType:"Date",semanticType:"DATE",jsType:"Date"},{ansiSqlType:"Time",semanticType:"TIME",jsType:"Date"},{ansiSqlType:"Timestamp without timezone",semanticType:"DATETIME",jsType:"Date"},{ansiSqlType:"Timestamp with timezone",semanticType:"TIMESTAMP",jsType:"Date"},{ansiSqlType:"Boolean",semanticType:"BOOLEAN",jsType:"boolean"}],fe=(o,t)=>{const r=o==null?void 0:o[t.shift()];return!r||!t.length?r:fe(r,t)},$=o=>t=>o.split(",").reduce((n,s)=>{const a=fe(t,s.split("."))??"";return n+a},""),M="AddRowsIconButtonWithPopover",E={container:`${M}_container`,bottomBlock:`${M}_bottomBlock`,title:`${M}_title`,description:`${M}_description`,arrowSelector:`${M}_popover-arrow:before`},U={spaceX6:()=>W.s.x6,spaceX8:()=>W.s.x8,spaceX4:()=>W.s.x4,spaceX2:()=>W.s.x2},Ne=ve(N.Popover).withConfig({displayName:"AddRowsIconButtonWithPopover__PopoverStyled"})(["& .",",& .","{background-color:",";}.","{padding:"," 14px;border-radius:",";.","{margin-bottom:",";}.","{color:",";}.","{margin-top:",";display:flex;gap:",";}}"],E.arrowSelector,E.container,()=>ue.surfaceSolidCard,E.container,U.spaceX6,U.spaceX8,E.title,U.spaceX2,E.description,()=>ue.textSecondary,E.bottomBlock,U.spaceX6,U.spaceX4),_e=({onSubmit:o})=>{const[t,r]=f.useState(!1),[i,n]=f.useState(1);return d.jsx(Ne,{opened:t,usePortal:!0,onToggle:s=>r(s),role:"presentation",target:d.jsx(N.IconButton,{size:"xs",view:"clear",children:d.jsx(Oe.IconTableRowAdd,{color:"inherit"})}),placement:"bottom",offset:[0,8],trigger:"click",hasArrow:!0,closeOnOverlayClick:!0,closeOnEsc:!0,isFocusTrapped:!0,children:d.jsxs("div",{className:E.container,children:[d.jsx(N.BodyM,{bold:!0,className:E.title,children:"Добавить строки"}),d.jsx(N.BodyS,{className:E.description,children:"Введите необходимое количество"}),d.jsxs("div",{className:E.bottomBlock,children:[d.jsx(N.NumberInput,{view:"secondary",size:"s",value:i,min:0,onChange:(s,a)=>{a!==void 0&&n(+a)},width:140}),d.jsx(N.Button,{size:"s",view:"accent",onClick:()=>{o(i),r(!1)},children:"Добавить"})]})]})})},se={header:"Удалить строку?",body:"Если удалить строку, восстановить ее и продолжить с ней работу будет невозможно.",mainButton:{view:"negative",text:"Удалить"},secondaryButton:{view:"secondary",text:"Отменить"}},ie={opened:!1,mainButtonOnClick:()=>{},secondaryButtonOnClick:()=>{}},F="NEW_ROW_KEY_XXXXXXXXX",Ce=o=>!!(o!=null&&o[F]),ee=o=>{const t=k.deleteSkeletonFromRow(o);return delete t[F],t};function Re({tableConfigBackendSubRows:o,tableConfigBackendEditing:t,tableConfigColumnsConfig:r,setRowsState:i,fetcher:n,onRowMutationError:s}){const{rowUniqIdKey:a,rowEditable:e,defaultEnabled:l,showToggleEnabledButton:u,saving:c}=t??{},g=(c==null?void 0:c.type)??"onRowChange",C=!!t,p=!!(t!=null&&t.defaultEnabled),[T,A]=f.useState([]),[P,q]=f.useState(!!(t!=null&&t.defaultEnabled)),[O,_]=f.useState(ie),I=f.useCallback((S,w)=>{const b=h=>typeof w=="function"?w(h):w;i(h=>{const m=h.findIndex(S);if(m===-1)return h;const y=[...h],x=y[m],V=b(x);return y[m]=V,y})},[i]);f.useEffect(()=>{q(p)},[p]);const X=o==null?void 0:o.subRowsKey,K=JSON.stringify(e),D=f.useMemo(()=>{if(!C||!a)return null;const S=$(a);return{editing:{rowKeyGetter:S,...K&&{rowEditable(w){const b=JSON.parse(K);return $(b.keyInRow)(w)===b.editableValue}},async onRowsChange(w,b){if(g==="onRowChange"){const h=b.rows[0],m=b.indexes[0];if(!h||m===void 0||m===-1)return;const y=h.after,x=h.before;if(Ce(y)){const j=r==null?void 0:r.every(v=>(y==null?void 0:y[v.key])!==void 0),B=v=>(v==null?void 0:v[F])===(y==null?void 0:y[F]);if(!j){I(B,y);return}try{I(B,L=>k.addSkeletonToRow(L));const v=await z.createOne(ee(y),n);I(B,ee(v))}catch(v){I(B,L=>k.deleteSkeletonFromRow(L)),s==null||s(v)}return}const V=j=>S(j)===S(x);try{I(V,v=>k.addSkeletonToRow(v));const j={before:ee(x),after:ee(y)},B=await z.updateOne(j,n);I(V,k.deleteSkeletonFromRow(B.after))}catch(j){I(V,B=>k.deleteSkeletonFromRow(B)),s==null||s(j)}}},...X&&{subRowsKey:X},defaultEnabled:l,showToggleEnabledButton:u,async onToggleEnableEditing(w){w||i(b=>b.filter(h=>!h[F])),q(w)}}}},[l,C,n,s,K,a,g,i,u,X,r,I]),{isMutating:Y,trigger:Q}=Be("saving",async()=>n({method:"PUT",body:JSON.stringify(T)}),{onError(S,w,b){},onSuccess(S,w,b){}}),Z=P&&g==="onSubmit"?{text:"Сохранить",isLoading:Y,disabled:T.length===0,onClick:()=>{Q()}}:null;return{editing:D,saveButton:Z,...P&&{createOneRowButton:{value:"createOneRow",CustomIconRender:()=>d.jsx(_e,{onSubmit:S=>{if(S>0){const w=Array.from({length:S},(b,h)=>({[F]:crypto.randomUUID()}));i(b=>[...w,...b])}}})},getDeleteOneRowRowInstrument:({row:S})=>({value:"delete",label:"Удалить строку",contentLeft:d.jsx(Oe.IconTrashOutline,{size:"xs",color:"inherit"}),async onItemSelect(){var h;const w=(h=D==null?void 0:D.editing)==null?void 0:h.rowKeyGetter;if(!w)return;const b=async()=>{if(Ce(S)){i(y=>y.filter(x=>x[F]!==S[F]));return}const m=y=>w(y)===w(S);try{I(m,k.addSkeletonToRow(S)),await z.deleteOne(S,n),i(y=>y.filter(x=>!m(x)))}catch(y){I(m,k.deleteSkeletonFromRow(S)),s==null||s(y)}};_({opened:!0,mainButtonOnClick:()=>{b(),_(ie)},secondaryButtonOnClick:()=>{_(ie)}})}})},modalDeletePropsState:O}}const ce=o=>Object.fromEntries(o.map(t=>[t.key,""])),Fe=({tableConfigBackendFiltering:o,dispatchParams:t,columnsConfig:r})=>{const i=!!o,n=r??[],[s,a]=f.useState(ce(n));f.useEffect(()=>{a(ce(n))},[n.length]);const e=f.useMemo(()=>ce(n),[n.length]),l=Ee.useDebouncedValue(s,1e3);return f.useEffect(()=>{t(["filters",l])},[l,t]),f.useMemo(()=>!i||!(Object.keys(e).length===Object.keys(s).length)?null:{filtering:{state:[s,a],manualFiltering:!0,clearedValue:e}},[e,s,i])};function Te(o){const t=Number(o);return typeof o!="number"&&t===0||Number.isNaN(t)?null:t}function qe({tableConfigBackendPagination:o,params:t,dispatchParams:r}){const{defaultPage:i,defaultPageSize:n,total:s,pageSizeList:a}=o??{};return f.useMemo(()=>{if(!i||!n||!s)return null;const e=Te(t.get(G.page))??i,l=Te(t.get(G.pageSize))??n;return{pagination:{count:s,value:e,perPage:l,...a&&{perPageList:a},onChange:(u,c,g)=>{if(typeof u!="number")return;const C=e!==u,p=!!l&&!!c&&+l!==c,T={};if(C&&(T.page=u,T.pageSize=c),p){T.pageSize=c;const A=s?Math.ceil(s/c):0;if(+e>A){const P=A;T.page=P}}Object.keys(T).length&&(r(["pagination",T]),g())}}}},[i,n,r,s,t])}const Ve={debounceDelay:1e3};function De({tableConfigBackendSearching:o,dispatchParams:t}){const{enabled:r,type:i,defaultSearchQuery:n,showSearchBlock:s,debounceDelay:a,isDebounceActive:e,searchClasses:l,placeholder:u}=o??{};return f.useMemo(()=>{if(!r)return null;const c={defaultSearchQuery:n,showSearchBlock:s,debounceDelay:a,isDebounceActive:e,searchClasses:l,placeholder:u};return i==="frontend"?{searching:{enabled:!0,manualSearching:!1,...c}}:{searching:{enabled:!0,manualSearching:!0,onDebouncedChange(g){t(["q",g])},...c,debounceDelay:c.debounceDelay??Ve.debounceDelay}}},[r,n,s,a,e,l,u,i,t])}const ne="sortKey",de="sortOrder";function Le(o,t){return o?{columnKey:o,direction:t?t.toUpperCase():"ASC"}:null}function ze({params:o,dispatchParams:t,tableConfigBackendSorting:r}){const i=!!r,n=(r==null?void 0:r.type)==="backend",s=o.get(ne),a=o.get(de),e=f.useState([]),l=f.useMemo(()=>{const c=Le(s,a),g=c?[c]:[];return[g,C=>{let p=g;typeof C=="function"?p=C(g):p=C,t([ne,p])}]},[t,s,a]),u=i&&(n?l:e);return u?{sorting:{state:u,manualSorting:n}}:null}function Ge(o){const{subRowsKey:t,rowUniqIdKey:r}=o??{},i=!!o;return f.useMemo(()=>!i||t===void 0||r===void 0?null:{subRows:{getSubRows(n){let s=[t];t.includes(".")&&(s=t.split("."));const a=fe(n,s);return Array.isArray(a)?a:void 0},rowKeyGetter:$(r)}},[i,r,t])}function Xe(o,t){const[r,i]=t;switch(r){case"sortKey":{const n=new URLSearchParams(o),[s]=i;return s?(n.set(ne,s.columnKey),n.set(de,s.direction.toLowerCase())):(n.delete(ne),n.delete(de)),n}case"pagination":{const n=new URLSearchParams(o);return Object.entries(i).forEach(([s,a])=>{a&&n.set(s,a.toString())}),n}case"q":{const n=new URLSearchParams(o);return n.set(G.q,i),n}case"filters":{const n=new URLSearchParams(o);return Object.entries(i).forEach(([a,e])=>{if(!((e==null?void 0:e.trim())??"")){n.delete(a);return}n.set(a,e)}),o.get(G.page)&&n.set(G.page,"1"),n}default:return o}}const Ke={true:!0,false:!1},Me=[{value:"true",label:"true"},{value:"false",label:"false"}];function Ue({row:o,column:t,onRowChange:r}){const i=k.useRowContext(),n=o[t.key],s=n===void 0?n:n.toString(),a=f.useRef(null),e=k.useRefTableGlobalContainerContext();return f.useEffect(()=>{setTimeout(()=>{var l,u;(u=(l=a.current)==null?void 0:l.click)==null||u.call(l)},0)},[]),d.jsx(N.Select,{ref:a,portal:e,listWidth:"200px",value:s,size:k.SIZES[i.rowSize].input,onChange:l=>{typeof l=="string"&&r({...o,[t.key]:Ke[l]},!0)},items:Me})}const We={Boolean:{component:o=>d.jsx(Ue,{...o})},Text:{component:"inputString"},"Integer/Int/Int4":{component:"inputNumber"},"Numeric/decimal":{component:"inputNumber"},Real:{component:"inputNumber"},Date:{component:"inputString"},Time:{component:"inputString"},"Timestamp with timezone":{component:"inputString"},"Timestamp without timezone":{component:"inputString"}},ae=(o,t)=>{if(!o)return t?{...We[t],error:{value:()=>!1},editable:!0}:void 0;const{error:r,editable:i,...n}=o,s=r?{value:l=>$(r.value.keyInRow)(l)===r.value.errorValue}:void 0,a=i?l=>i?$(i.keyInRow)(l)===i.editableValue:!1:void 0;return{...s&&{error:s},...a&&{editable:a},...n}},He=(o,t)=>o.map(r=>{const{columnType:i}=r,n=[];t!=null&&t.filtering&&n.push(["filtering",{component:"input",filter:"includes",keyInFilterState:r.key}]);const s=Object.entries(r).map(e=>{const l=e[0];switch(l){case"subRow":{let u=null;const c=e[1];if(!c)return[l,c];const{contentFormat:g,keyOfColumnInSubRow:C,editingCell:p,...T}=c,A=p?ae(p,i):void 0;return u={...T,...g&&{contentFormat:g},...A&&{editingCell:A},...C&&{keyOfColumnInSubRow:P=>{var O,_;return typeof c.keyOfColumnInSubRow=="string"||typeof c.keyOfColumnInSubRow=="number"?c.keyOfColumnInSubRow:((O=c.keyOfColumnInSubRow)==null?void 0:O[P])??((_=c.keyOfColumnInSubRow)==null?void 0:_.default)??""}}},[l,u]}case"searching":{const u=e[1];return u?[l,{valueInRow(g){return g==null?void 0:g[u.keyInRow]}}]:[l,u]}case"summaryCell":{const u="renderSummaryCell",c=e[1];return!c||!c.key&&!c.text?[u,void 0]:[u,({row:C})=>c.text!==void 0?c.text:c.key?C[c.key]:null]}case"columnType":{const u=e[1],c=[l,u];if(!u)return c;const g=r.editingCell;if(!!g)return c;const p="editingCell",T=ae(g,i);return n.push([p,T]),c}case"editingCell":{const u=e[1],c=ae(u,i);return[l,c]}default:return e}});return Object.fromEntries([...n,...s])}),Je=o=>{const{data:{main:t,topSummary:r,bottomSummary:i},meta:{tableConfig:n,columns:s}}=o,a=He(s,n);return{rows:t,columnsConfig:a,tableConfigBackend:n,topSummaryRows:r,bottomSummaryRows:i}},ke=ve.div.withConfig({displayName:"TableOtherView__StyledDiv"})(["&{border:1px solid ",";border-radius:","px;background-color:",";height:",";display:flex;justify-content:center;align-items:center;flex-direction:column;& .spinner{margin-bottom:",";}}"],()=>k.COLORS.border,()=>k.TABLE_BORDER_RADIUS,()=>k.COLORS.white,()=>Ie.height,()=>W.s.x6),le=({view:o,...t})=>o==="loading"?d.jsxs(ke,{...t,children:[d.jsx(N.Spinner,{view:"default",className:"spinner",size:"xl"}),d.jsx(N.H3,{color:ue.textPrimary,children:"Загрузка таблицы"})]}):d.jsx(ke,{...t,children:d.jsx(Ae.ErrorPage,{unknownStatus:{title:"Похоже, таблица не загружается",description:"Попробуйте обновить страницу или зайдите позже"}})}),$e=({fetcher:o,stylesBeforeLoad:t,onRowMutationError:r})=>{var v,L,ye,me,Se,we,be,he,pe;const i=f.useId(),[n,s]=f.useReducer(Xe,void 0,()=>new URLSearchParams),a=n.toString(),{data:e,isValidating:l,isLoading:u,error:c}=je(()=>i+a,async()=>{const R=await te.get({params:a},o);return Je(R)},{keepPreviousData:!0,staleTime:3e3,revalidateOnFocus:!1}),[g,C]=f.useState(()=>{var R;return(R=e==null?void 0:e.tableConfigBackend)!=null&&R.editing?e!=null&&e.rows?e.rows:[]:[]}),p=!!((v=e==null?void 0:e.tableConfigBackend)!=null&&v.editing);f.useEffect(()=>{p&&e!=null&&e.rows&&e!=null&&e.rows&&C(e.rows)},[e==null?void 0:e.rows,p]);const{editing:T,saveButton:A,createOneRowButton:P,getDeleteOneRowRowInstrument:q,modalDeletePropsState:O}=Re({tableConfigBackendSubRows:(L=e==null?void 0:e.tableConfigBackend)==null?void 0:L.subRows,tableConfigBackendEditing:(ye=e==null?void 0:e.tableConfigBackend)==null?void 0:ye.editing,tableConfigColumnsConfig:e==null?void 0:e.columnsConfig,setRowsState:C,rowsFromBackend:(e==null?void 0:e.rows)??[],fetcher:o,onRowMutationError:r}),_=De({tableConfigBackendSearching:(me=e==null?void 0:e.tableConfigBackend)==null?void 0:me.searching,dispatchParams:s}),I=Fe({tableConfigBackendFiltering:(Se=e==null?void 0:e.tableConfigBackend)==null?void 0:Se.filtering,dispatchParams:s,columnsConfig:e==null?void 0:e.columnsConfig}),X=qe({tableConfigBackendPagination:(we=e==null?void 0:e.tableConfigBackend)==null?void 0:we.pagination,params:n,dispatchParams:s}),K=ze({tableConfigBackendSorting:(be=e==null?void 0:e.tableConfigBackend)==null?void 0:be.sorting,params:n,dispatchParams:s}),D=Ge((he=e==null?void 0:e.tableConfigBackend)==null?void 0:he.subRows),Y=f.useMemo(()=>q?{getRowDropdownConfig:R=>({items:[q(R)],dropdownProps:{useItemContentAsButtonContent:!0}}),showInControl:!1,openedState:[!0,()=>{}]}:null,[q]);if(!(e!=null&&e.rows)&&u)return d.jsx(le,{view:"loading",style:t});const Q=(pe=e==null?void 0:e.tableConfigBackend)==null?void 0:pe.containerStyle;if(!(e!=null&&e.rows)||c)return d.jsx(le,{view:"error",style:{...t,...Q}});if(!(e!=null&&e.rows))return d.jsx(le,{view:"error",style:{...t,...Q}});const Z=[...A?[A]:[]],oe=[...P?[P]:[]],re=oe.length>0,S=Z.length>0,w=S||re,{rows:b,columnsConfig:h,tableConfigBackend:m,topSummaryRows:y,bottomSummaryRows:x}=e,V={containerStyle:{...m==null?void 0:m.containerStyle,height:(m==null?void 0:m.height)??Ie.height}},j={...D,...K,...X,..._,...T,...I,...V},B=m?Object.fromEntries(Object.entries(m).filter(([R])=>!j[R])):{};return d.jsxs(d.Fragment,{children:[d.jsx(k.Table,{tableConfig:{isLoading:{boolean:l,skeletonRowsCount:b.length??10},...w&&{controlBlock:{enableAdaptiveCompress:!1,...S&&{rightSideInner:Z},...re&&{customFeatures:oe}}},...Y&&{rowInstruments:Y},...B,...j},columnConfig:h,rows:T?g:b,topSummaryRows:y,bottomSummaryRows:x}),d.jsx(xe.ModalDFConfirmation,{opened:O==null?void 0:O.opened,content:{...se,mainButton:{...se.mainButton,onClick:O==null?void 0:O.mainButtonOnClick},secondaryButton:{...se.secondaryButton,onClick:O==null?void 0:O.secondaryButtonOnClick}}})]})};exports.DATA_TYPES=Pe;exports.DataViewApi=te;exports.EditingApi=z;exports.Q_PARAMS=G;exports.TableContract=$e;exports.fetcherWrapper=H;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BodyM as xe, BodyS as Ee, NumberInput as Pe, Button as _e, IconButton as Ae, Popover as Ve, Select as Fe, Spinner as je, H3 as Re } from "@salutejs/sdds-finai";
|
|
2
2
|
import { jsx as m, jsxs as ne, Fragment as De } from "react/jsx-runtime";
|
|
3
3
|
import { ModalDFConfirmation as Le } from "../ModalDFConfirmation/index.mjs";
|
|
4
|
-
import { a as ie, d as K, u as ze, b as qe, c as Ge, C as ke, e as Xe, f as Ke } from "../../chunks/Table-
|
|
4
|
+
import { a as ie, d as K, u as ze, b as qe, c as Ge, C as ke, e as Xe, f as Ke } from "../../chunks/Table-FrYs56BB.mjs";
|
|
5
5
|
import { useState as V, useCallback as Ue, useEffect as M, useMemo as F, useRef as We, useId as He, useReducer as Je } from "react";
|
|
6
6
|
import Me from "swr";
|
|
7
7
|
import { IconTableRowAdd as $e, IconTrashOutline as Ye } from "@salutejs/plasma-icons";
|
|
@@ -9,7 +9,7 @@ import Qe from "swr/mutation";
|
|
|
9
9
|
import { s as U } from "../../constants/index.mjs";
|
|
10
10
|
import { surfaceSolidCard as Ze, textSecondary as et, textPrimary as tt } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
11
11
|
import Be from "styled-components";
|
|
12
|
-
import { u as nt } from "../../chunks/utils-
|
|
12
|
+
import { u as nt } from "../../chunks/utils-Hu77fGGe.mjs";
|
|
13
13
|
import { ErrorPage as ot } from "../../layouts/ErrorPage/index.mjs";
|
|
14
14
|
const te = async (o, t) => {
|
|
15
15
|
const r = await o(t);
|
|
@@ -6,4 +6,4 @@ export declare class CellContentCache {
|
|
|
6
6
|
get(col: number, row: number): import('@glideappsfinal/glide-data-grid').TextCell | import('@glideappsfinal/glide-data-grid').ImageCell | import('@glideappsfinal/glide-data-grid').BooleanCell | import('@glideappsfinal/glide-data-grid').MarkdownCell | import('@glideappsfinal/glide-data-grid').UriCell | import('@glideappsfinal/glide-data-grid').NumberCell | import('@glideappsfinal/glide-data-grid').CustomCell<{}> | import('@glideappsfinal/glide-data-grid').BubbleCell | import('@glideappsfinal/glide-data-grid').RowIDCell | import('@glideappsfinal/glide-data-grid').LoadingCell | import('@glideappsfinal/glide-data-grid').ProtectedCell | import('@glideappsfinal/glide-data-grid').DrilldownCell | undefined;
|
|
7
7
|
set(colInd: number, rowInd: number, value: GridCell): void;
|
|
8
8
|
}
|
|
9
|
-
export declare const TableGlide: <R extends ObjectForExtending, SR = unknown>({ columns, rows, bottomSummaryRows, rowHeight, width, rowSize, ctxs, freezeColumns, onColumnResize, renderGroupHeader, groupAlignMap, refTable, onColumnsReorder, portalEventTargetRef, onItemHovered: onItemHoveredExternal, unstickyHeader, resizableColumn, minColumnWidth, maxColumnWidth, maxColumnAutoWidth, containerRef: containerRefExternal, containerClassName, containerStyle, renderOverlayFeatures, hideGrid, contentStateNode, fullScreened, editorOverlayPortal, highlightActiveType, cellsSelectionMode, enableColumnSelection, enableRowSelection, enableSelectAll, enableLowDprHairline, gridSelection: gridSelectionExternal, onGridSelectionChange: onGridSelectionChangeExternal, onSelectionEmit, onColumnSelectionChange, pendingColumnSelectionKeys, onColumnSelectionApplied, highlightActiveRow, onHighlightActiveRowChange, highlightActiveRowControlled, highlightRegions: highlightRegionsExternal, checkboxSelectedRowIndexes, checkboxVisibleRowIndexes, hoverEffects, onCellClicked: onCellClickedExternal, onCellContextMenu: onCellContextMenuExternal, onGroupHeaderClicked: onGroupHeaderClickedExternal, onMouseMove: onMouseMoveExternal, onVisibleRegionChanged: onVisibleRegionChangedExternal, portalElementRef: _portalElementRef, ...restProps }: TableGlideProps<R, SR>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const TableGlide: <R extends ObjectForExtending, SR = unknown>({ columns, rows, bottomSummaryRows, rowHeight, width, rowSize, ctxs, freezeColumns, onColumnResize, renderGroupHeader, groupAlignMap, refTable, onColumnsReorder, portalEventTargetRef, onItemHovered: onItemHoveredExternal, unstickyHeader, resizableColumn, minColumnWidth, maxColumnWidth, maxColumnAutoWidth, containerRef: containerRefExternal, containerClassName, containerStyle, renderOverlayFeatures, hideGrid, contentStateNode, containerSlot, fullScreened, editorOverlayPortal, highlightActiveType, cellsSelectionMode, enableColumnSelection, enableRowSelection, enableSelectAll, enableLowDprHairline, gridSelection: gridSelectionExternal, onGridSelectionChange: onGridSelectionChangeExternal, onSelectionEmit, onColumnSelectionChange, pendingColumnSelectionKeys, onColumnSelectionApplied, highlightActiveRow, onHighlightActiveRowChange, highlightActiveRowControlled, highlightRegions: highlightRegionsExternal, checkboxSelectedRowIndexes, checkboxVisibleRowIndexes: _checkboxVisibleRowIndexes, hoverEffects, onCellClicked: onCellClickedExternal, onCellContextMenu: onCellContextMenuExternal, onGroupHeaderClicked: onGroupHeaderClickedExternal, onMouseMove: onMouseMoveExternal, onVisibleRegionChanged: onVisibleRegionChangedExternal, portalElementRef: _portalElementRef, ...restProps }: TableGlideProps<R, SR>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,7 +49,7 @@ export type TableGlideSizeConfig = {
|
|
|
49
49
|
};
|
|
50
50
|
export declare const TABLE_GLIDE_SIZES: {
|
|
51
51
|
readonly small: {
|
|
52
|
-
readonly rowHeight:
|
|
52
|
+
readonly rowHeight: 48 | 20 | 32;
|
|
53
53
|
readonly cell: {
|
|
54
54
|
readonly 'padding-block': `${number}px`;
|
|
55
55
|
readonly 'padding-inline': `${number}px`;
|
|
@@ -73,7 +73,7 @@ export declare const TABLE_GLIDE_SIZES: {
|
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
readonly medium: {
|
|
76
|
-
readonly rowHeight:
|
|
76
|
+
readonly rowHeight: 48 | 20 | 32;
|
|
77
77
|
readonly cell: {
|
|
78
78
|
readonly 'padding-block': `${number}px`;
|
|
79
79
|
readonly 'padding-inline': `${number}px`;
|
|
@@ -97,7 +97,7 @@ export declare const TABLE_GLIDE_SIZES: {
|
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
readonly big: {
|
|
100
|
-
readonly rowHeight:
|
|
100
|
+
readonly rowHeight: 48 | 20 | 32;
|
|
101
101
|
readonly cell: {
|
|
102
102
|
readonly 'padding-block': `${number}px`;
|
|
103
103
|
readonly 'padding-inline': `${number}px`;
|