@ck-ui/component-library 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CalendarGrid-DzsGX04L.js → CalendarGrid-Cu-E76sM.js} +1 -1
- package/dist/DropdownFooter-DYusPa5E.js +99 -0
- package/dist/IconSlot-lz-E7RIY.js +33 -0
- package/dist/{MenuItem-DlaRT10y.js → MenuItem-jNWNRrDR.js} +1 -1
- package/dist/ScrollDropdown-gfB7tdTr.js +80 -0
- package/dist/assets/DateRangePicker-FyjycaFJ.css +1 -0
- package/dist/assets/DropdownFooter-DTuzF-cp.css +1 -0
- package/dist/assets/IconSlot-BhpCcM3C.css +1 -0
- package/dist/assets/ScrollDropdown-Dq3Kic27.css +1 -0
- package/dist/assets/Sidebar-CrD-rucg.css +1 -0
- package/dist/assets/TableChipCell-B2fEKEbC.css +1 -0
- package/dist/assets/ToastContent-B0d7ZeVJ.css +1 -0
- package/dist/assets/index-050F7Cq1.css +1 -0
- package/dist/assets/index-BB_JksPb.css +1 -0
- package/dist/assets/index-BE0-nPjX.css +1 -0
- package/dist/assets/index-BFoXf6nS.css +1 -0
- package/dist/assets/index-BIccl6ps.css +1 -0
- package/dist/assets/index-BZUn0Wdm.css +1 -0
- package/dist/assets/index-BcYUvt6V.css +1 -0
- package/dist/assets/index-Bcdauu8Y.css +1 -0
- package/dist/assets/index-BcfUGu_y.css +1 -0
- package/dist/assets/index-BqELPvtv.css +1 -0
- package/dist/assets/index-C44rlX6h.css +1 -0
- package/dist/assets/index-C8_uOajQ.css +1 -0
- package/dist/assets/index-CAGY1l6E.css +1 -0
- package/dist/assets/index-CCTeose3.css +1 -0
- package/dist/assets/{index-BbJZjGLb.css → index-CV06CpqV.css} +1 -1
- package/dist/assets/index-Ceh4ivv5.css +1 -0
- package/dist/assets/index-Cj3VbHpe.css +1 -0
- package/dist/assets/{index-BXwGxK7I.css → index-CmfUag81.css} +1 -1
- package/dist/assets/index-CuOeYu7b.css +1 -0
- package/dist/assets/index-CuopEZmw.css +1 -0
- package/dist/assets/index-CwPQKjpa.css +1 -0
- package/dist/assets/index-D0X2hwMU.css +1 -0
- package/dist/assets/{index-BgFw4AMY.css → index-DVtITeZI.css} +1 -1
- package/dist/assets/index-DWMUQAdQ.css +1 -0
- package/dist/assets/index-DXeEmcnJ.css +1 -0
- package/dist/assets/index-DaV0QrZW.css +1 -0
- package/dist/assets/index-DePIj7wn.css +1 -0
- package/dist/assets/index-DhtWNfIJ.css +1 -0
- package/dist/assets/index-Dmo2W49y.css +1 -0
- package/dist/assets/index-DoRanRth.css +1 -0
- package/dist/assets/index-DoTtYYv9.css +1 -0
- package/dist/assets/index-F_VkoiK8.css +1 -0
- package/dist/assets/index-V_YjVwnC.css +1 -0
- package/dist/assets/index-cVRrZueX.css +1 -0
- package/dist/assets/{index-rrYSS2rl.css → index-t1PYEt2I.css} +1 -1
- package/dist/assets/index-tNRjcWyS.css +1 -0
- package/dist/assets/main-PzmpqYzB.css +1 -0
- package/dist/assets/styles-BWiKngtQ.css +1 -0
- package/dist/assets/styles-BYpypz4h.css +1 -0
- package/dist/assets/{styles-0GdZsGyi.css → styles-CBX41mCH.css} +1 -1
- package/dist/assets/styles-DGuBVeco.css +1 -0
- package/dist/assets/{styles-DrYTmjez.css → styles-DIZ9K_K2.css} +1 -1
- package/dist/assets/styles-DJ1QnJSM.css +1 -0
- package/dist/assets/styles-DU_mFQrB.css +1 -0
- package/dist/assets/styles-Dikgm2G4.css +1 -0
- package/dist/assets/styles-DzivbMl0.css +1 -0
- package/dist/assets/styles-Ias6f7--.css +1 -0
- package/dist/assets/styles-ak9WG2cT.css +1 -0
- package/dist/assets/styles-dHWZnWrb.css +1 -0
- package/dist/assets/theme-CzZnUu2H.css +1 -0
- package/dist/components/Avatar/index.js +19 -19
- package/dist/components/Breadcrumb/index.js +24 -24
- package/dist/components/Button/index.js +18 -18
- package/dist/components/CKBadge/_types/ckBadge.types.d.ts +17 -0
- package/dist/components/CKBadge/_types/ckBadge.types.d.ts.map +1 -0
- package/dist/components/CKBadge/_types/ckBadge.types.js +4 -0
- package/dist/components/CKBadge/index.d.ts +6 -0
- package/dist/components/CKBadge/index.d.ts.map +1 -0
- package/dist/components/CKBadge/index.js +57 -0
- package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
- package/dist/components/CKButton/_helper/IconSlot.js +1 -1
- package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
- package/dist/components/CKButton/index.js +1 -1
- package/dist/components/CKCheckbox/index.js +30 -30
- package/dist/components/CKTag/index.js +38 -38
- package/dist/components/CardBox/index.js +20 -20
- package/dist/components/Checkbox/index.js +11 -11
- package/dist/components/CostComparatorTable/_helpers/CostCell.js +1 -1
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +1 -1
- package/dist/components/CostComparatorTable/index.js +1 -1
- package/dist/components/DateRangePicker/Calendar/CalendarGrid.js +2 -2
- package/dist/components/DateRangePicker/Calendar/ScrollDropdown.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +298 -206
- package/dist/components/DeviationTag/index.js +19 -19
- package/dist/components/EmptyState/index.js +5 -5
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.js +74 -42
- package/dist/components/FusionChart/_config/helpers.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/helpers.js +5 -5
- package/dist/components/FusionChart/index.d.ts.map +1 -1
- package/dist/components/FusionChart/index.js +440 -411
- package/dist/components/GroupedMultiSelect/_constant/constants.d.ts +2 -0
- package/dist/components/GroupedMultiSelect/_constant/constants.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_constant/constants.js +4 -0
- package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/MenuItem.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +113 -67
- package/dist/components/GroupedMultiSelect/index.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/index.js +187 -164
- package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +1 -1
- package/dist/components/GroupedSingleSelect/index.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/index.js +113 -97
- package/dist/components/IconButton/_types/iconButton.type.d.ts +1 -1
- package/dist/components/IconButton/_types/iconButton.type.d.ts.map +1 -1
- package/dist/components/IconButton/index.js +28 -28
- package/dist/components/MAVDropdown/index.js +65 -65
- package/dist/components/MenuOptions/MenuOptionsWrapper.js +1 -1
- package/dist/components/MenuOptions/_helpers/MenuItem.js +2 -2
- package/dist/components/MenuOptions/_helpers/RadioMenuItem.js +1 -1
- package/dist/components/MenuOptions/_helpers/SubMenu.js +2 -2
- package/dist/components/MenuOptions/index.js +2 -2
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +28 -28
- package/dist/components/MultiSelect/SimpleMultiSelect.js +1 -1
- package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
- package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/Pagination/index.js +37 -37
- package/dist/components/Popover/index.js +2 -2
- package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts +3 -0
- package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts.map +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts +1 -0
- package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts.map +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogContent.js +5 -4
- package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts.map +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogFooter.js +32 -31
- package/dist/components/PopupAndDialogBox/components/DialogHeader.d.ts.map +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogHeader.js +18 -15
- package/dist/components/PopupAndDialogBox/index.js +1 -1
- package/dist/components/ProfileDropdown/index.js +42 -42
- package/dist/components/ProgressBar/index.js +24 -24
- package/dist/components/RadioButton/index.js +25 -25
- package/dist/components/RangeSlider/_types/rangeSlider.types.d.ts +31 -0
- package/dist/components/RangeSlider/_types/rangeSlider.types.d.ts.map +1 -0
- package/dist/components/RangeSlider/_types/rangeSlider.types.js +1 -0
- package/dist/components/RangeSlider/index.d.ts +3 -0
- package/dist/components/RangeSlider/index.d.ts.map +1 -0
- package/dist/components/RangeSlider/index.js +190 -0
- package/dist/components/Search/index.js +33 -33
- package/dist/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.js +103 -99
- package/dist/components/Sidebar/Sidebar.types.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.types.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.utils.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.utils.js +3 -1
- package/dist/components/Sidebar/_helpers/TruncatedLabel.d.ts +15 -0
- package/dist/components/Sidebar/_helpers/TruncatedLabel.d.ts.map +1 -0
- package/dist/components/Sidebar/_helpers/TruncatedLabel.js +26 -0
- package/dist/components/Sidebar/_helpers/animateScroll.d.ts +2 -0
- package/dist/components/Sidebar/_helpers/animateScroll.d.ts.map +1 -0
- package/dist/components/Sidebar/_helpers/animateScroll.js +12 -0
- package/dist/components/Sidebar/_helpers/index.d.ts +3 -0
- package/dist/components/Sidebar/_helpers/index.d.ts.map +1 -0
- package/dist/components/Sidebar/_helpers/index.js +6 -0
- package/dist/components/Sidebar/components/CollapsedTooltip/index.d.ts +3 -4
- package/dist/components/Sidebar/components/CollapsedTooltip/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/CollapsedTooltip/index.js +5 -3
- package/dist/components/Sidebar/components/ContactUsButton/index.d.ts +1 -1
- package/dist/components/Sidebar/components/ContactUsButton/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/ContactUsButton/index.js +60 -14
- package/dist/components/Sidebar/components/ExploreSection/index.d.ts +1 -1
- package/dist/components/Sidebar/components/ExploreSection/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/ExploreSection/index.js +47 -20
- package/dist/components/Sidebar/components/GptCard/index.d.ts +3 -2
- package/dist/components/Sidebar/components/GptCard/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/GptCard/index.js +132 -29
- package/dist/components/Sidebar/components/IconRenderer/index.d.ts +7 -1
- package/dist/components/Sidebar/components/IconRenderer/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/IconRenderer/index.js +82 -13
- package/dist/components/Sidebar/components/MenuItemWrapper/index.d.ts +2 -1
- package/dist/components/Sidebar/components/MenuItemWrapper/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/MenuItemWrapper/index.js +57 -27
- package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.d.ts +1 -1
- package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.js +162 -75
- package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.d.ts +2 -4
- package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.js +74 -52
- package/dist/components/Sidebar/components/MenuRenderer/index.d.ts +2 -1
- package/dist/components/Sidebar/components/MenuRenderer/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/MenuRenderer/index.js +135 -24
- package/dist/components/Sidebar/components/ModuleSwitchButton/index.d.ts +1 -1
- package/dist/components/Sidebar/components/ModuleSwitchButton/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/ModuleSwitchButton/index.js +36 -18
- package/dist/components/Sidebar/components/SectionLabel/index.js +4 -4
- package/dist/components/Sidebar/components/SubMenuWrapper/index.d.ts +2 -1
- package/dist/components/Sidebar/components/SubMenuWrapper/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/SubMenuWrapper/index.js +132 -47
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Sidebar/hooks/useActiveDetection.d.ts +1 -1
- package/dist/components/Sidebar/hooks/useActiveDetection.d.ts.map +1 -1
- package/dist/components/Sidebar/hooks/useActiveDetection.js +4 -1
- package/dist/components/Sidebar/hooks/useMenuState.d.ts +2 -2
- package/dist/components/Sidebar/hooks/useMenuState.d.ts.map +1 -1
- package/dist/components/Sidebar/hooks/useMenuState.js +116 -59
- package/dist/components/Sidebar/hooks/useModuleSwitch.d.ts.map +1 -1
- package/dist/components/Sidebar/hooks/useOverlayScrollbar.d.ts +7 -0
- package/dist/components/Sidebar/hooks/useOverlayScrollbar.d.ts.map +1 -0
- package/dist/components/Sidebar/hooks/useOverlayScrollbar.js +98 -0
- package/dist/components/Sidebar/index.d.ts +3 -3
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Sidebar/types/gpt.types.d.ts +38 -0
- package/dist/components/Sidebar/types/gpt.types.d.ts.map +1 -1
- package/dist/components/Sidebar/types/index.d.ts +1 -1
- package/dist/components/Sidebar/types/index.d.ts.map +1 -1
- package/dist/components/Sidebar/types/sidebar.types.d.ts +8 -1
- package/dist/components/Sidebar/types/sidebar.types.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +8 -5
- package/dist/components/SingleSelectDropdown/index.js +16 -13
- package/dist/components/Stepper/_helper/StepIcon.js +1 -1
- package/dist/components/Stepper/_helper/StepText.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Switch/index.js +6 -6
- package/dist/components/Tab/index.js +38 -38
- package/dist/components/Table/_helpers/ColumnManager/index.js +1 -1
- package/dist/components/Table/_helpers/FilterColumnToolbar.js +1 -1
- package/dist/components/Table/_helpers/TableChipCell.d.ts +21 -0
- package/dist/components/Table/_helpers/TableChipCell.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableChipCell.js +158 -0
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +31 -1528
- package/dist/components/Table/_helpers/TableFilterModal/index.js +1 -1
- package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableRows.js +395 -201
- package/dist/components/Table/_hooks/useFilterColumnState.d.ts.map +1 -1
- package/dist/components/Table/_hooks/useFilterColumnState.js +26 -11
- package/dist/components/Table/_types/table.types.d.ts +18 -1
- package/dist/components/Table/_types/table.types.d.ts.map +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +674 -403
- package/dist/components/Tag/index.js +20 -20
- package/dist/components/TextArea/index.js +31 -31
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/components/TextField/index.js +165 -7351
- package/dist/components/Toast/_helper/ToastContent.js +36 -36
- package/dist/components/Toast/_helper/ToastProvider.js +1 -1
- package/dist/components/Toast/_hooks/useToast.js +1 -1
- package/dist/components/Toggle/index.js +18 -18
- package/dist/components/Tooltip/_helpers/calculatePosition.d.ts +7 -0
- package/dist/components/Tooltip/_helpers/calculatePosition.d.ts.map +1 -0
- package/dist/components/Tooltip/_helpers/calculatePosition.js +27 -0
- package/dist/components/Tooltip/_helpers/index.d.ts +4 -0
- package/dist/components/Tooltip/_helpers/index.d.ts.map +1 -0
- package/dist/components/Tooltip/_helpers/index.js +6 -0
- package/dist/components/Tooltip/_helpers/mergeRef.d.ts +3 -0
- package/dist/components/Tooltip/_helpers/mergeRef.d.ts.map +1 -0
- package/dist/components/Tooltip/_helpers/mergeRef.js +6 -0
- package/dist/components/Tooltip/_types/tooltip.types.d.ts +1 -2
- package/dist/components/Tooltip/_types/tooltip.types.d.ts.map +1 -1
- package/dist/components/Tooltip/index.d.ts +5 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +59 -2041
- package/dist/components/Typography/index.js +23 -23
- package/dist/down-arrow-Con-s3fU.js +5 -0
- package/dist/index-BAG5O9tQ.js +97 -0
- package/dist/{index-BR6M9zUI.js → index-Cc3gWc2P.js} +166 -154
- package/dist/main.d.ts +6 -3
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +163 -157
- package/dist/styles.module-BhZ_Dm1P.js +16 -0
- package/dist/styles.module-Bxs1UJxF.js +15 -0
- package/dist/styles.module-CRMuLY4A.js +13 -0
- package/dist/styles.module-D5ab7LbM.js +40 -0
- package/dist/styles.module-DjiC2kYs.js +20 -0
- package/dist/styles.module-Xxs9bBCg.js +56 -0
- package/dist/styles.module-Y7TzrS2V.js +51 -0
- package/dist/styles.module-aSzD4I4G.js +19 -0
- package/dist/table-filter-BwC2jvAO.js +8 -0
- package/dist/theme/Theme.js +1 -1
- package/dist/theme/theme.css +1 -1
- package/package.json +1 -1
- package/dist/DropdownFooter-DIxlKK1Y.js +0 -96
- package/dist/Grow-gzixxVwK.js +0 -789
- package/dist/IconSlot-DvUwY6Do.js +0 -33
- package/dist/ScrollDropdown-B6iVjMy_.js +0 -80
- package/dist/assets/DateRangePicker-BJW-EAys.css +0 -1
- package/dist/assets/DropdownFooter-CRxQRvLY.css +0 -1
- package/dist/assets/IconSlot-BWv5PQN_.css +0 -1
- package/dist/assets/ScrollDropdown-zzvVGbzo.css +0 -1
- package/dist/assets/Sidebar-D5jVJ-ln.css +0 -1
- package/dist/assets/ToastContent-DpF5zCks.css +0 -1
- package/dist/assets/index-0R9p-l95.css +0 -1
- package/dist/assets/index-31u7i502.css +0 -1
- package/dist/assets/index-B5N2Zvs1.css +0 -1
- package/dist/assets/index-B6Mg98vm.css +0 -1
- package/dist/assets/index-B8lwBNV9.css +0 -1
- package/dist/assets/index-BD0OawaZ.css +0 -1
- package/dist/assets/index-BD0iilmm.css +0 -1
- package/dist/assets/index-BLz-9Nuk.css +0 -1
- package/dist/assets/index-BOXxnraF.css +0 -1
- package/dist/assets/index-BZgvXFWW.css +0 -1
- package/dist/assets/index-BkNXS5fR.css +0 -1
- package/dist/assets/index-Bo4Tx8px.css +0 -1
- package/dist/assets/index-BoQKDmZt.css +0 -1
- package/dist/assets/index-C3K5UCMn.css +0 -1
- package/dist/assets/index-C4-S_v9y.css +0 -1
- package/dist/assets/index-C6j9Ze5V.css +0 -1
- package/dist/assets/index-CSofT_ix.css +0 -1
- package/dist/assets/index-C_Tn9jS-.css +0 -1
- package/dist/assets/index-D2HelNRV.css +0 -1
- package/dist/assets/index-DDdi2wxl.css +0 -1
- package/dist/assets/index-DRigR6XT.css +0 -1
- package/dist/assets/index-Dpv0OAoW.css +0 -1
- package/dist/assets/index-EOsQwhza.css +0 -1
- package/dist/assets/index-UphWJR2V.css +0 -1
- package/dist/assets/index-_Kh8p9R0.css +0 -1
- package/dist/assets/index-eZS6kms7.css +0 -1
- package/dist/assets/index-t78owPAF.css +0 -1
- package/dist/assets/index-tIl-UucG.css +0 -1
- package/dist/assets/index-xlbz19JS.css +0 -1
- package/dist/assets/index-zWDnehqu.css +0 -1
- package/dist/assets/main-3OqLSdPm.css +0 -1
- package/dist/assets/styles-BS1nwHmS.css +0 -1
- package/dist/assets/styles-Be-tqCP9.css +0 -1
- package/dist/assets/styles-C5uYY4fL.css +0 -1
- package/dist/assets/styles-C9rG0Alp.css +0 -1
- package/dist/assets/styles-CZCmGNUn.css +0 -1
- package/dist/assets/styles-CwEfypOd.css +0 -1
- package/dist/assets/styles-CwZG1jzB.css +0 -1
- package/dist/assets/styles-DAFhOzfn.css +0 -1
- package/dist/assets/styles-DGlqPkdv.css +0 -1
- package/dist/assets/theme-CDdq9khQ.css +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/createSimplePaletteValueFilter-BqxST_wX.js +0 -24
- package/dist/index-CSxlVCTW.js +0 -52
- package/dist/isFocusVisible-BzX3wEi7.js +0 -12
- package/dist/styles.module-B5fY7mP8.js +0 -20
- package/dist/styles.module-BXby6f8d.js +0 -16
- package/dist/styles.module-DGDgpLAB.js +0 -29
- package/dist/styles.module-DSbSTQeV.js +0 -56
- package/dist/styles.module-ZyeVE7KZ.js +0 -39
- package/dist/styles.module-r_cdKgD9.js +0 -19
- package/dist/styles.module-xqgv3wwP.js +0 -12
- package/dist/styles.module-yNDMDNO-.js +0 -14
- package/dist/table-filter-C0zetUfo.js +0 -6
- package/dist/useSlot-BAOpgsKZ.js +0 -4687
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { useState as
|
|
1
|
+
import { jsx as s, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { useState as M, useEffect as I, useCallback as L, useRef as Z, useMemo as O } from "react";
|
|
4
4
|
import { flushSync as it } from "react-dom";
|
|
5
5
|
import { u as lt } from "../../OptionList-DU0iA8Y4.js";
|
|
6
6
|
import { u as ct, f as at, g as dt, a as ut, b as mt } from "../../index-Bcvmezbu.js";
|
|
@@ -8,87 +8,100 @@ import { CKButton as Be } from "../CKButton/index.js";
|
|
|
8
8
|
import { Search as ft } from "../Search/index.js";
|
|
9
9
|
import { EmptyState as gt } from "../EmptyState/index.js";
|
|
10
10
|
import { Loader as ht } from "../Loader/index.js";
|
|
11
|
-
import { S as pt, a as yt } from "../../table-filter-
|
|
12
|
-
import { INITIAL_COLUMN_MANAGER_CONFIG as We, ROW_MIN_HEIGHT as
|
|
13
|
-
import
|
|
11
|
+
import { S as pt, a as yt } from "../../table-filter-BwC2jvAO.js";
|
|
12
|
+
import { INITIAL_COLUMN_MANAGER_CONFIG as We, ROW_MIN_HEIGHT as Ct, TABLE_PREFIX as R } from "./constants.js";
|
|
13
|
+
import kt from "./_helpers/TableFilterModal/index.js";
|
|
14
14
|
import bt from "./_helpers/ColumnManager/index.js";
|
|
15
|
-
import
|
|
16
|
-
import { SelectionHeaderCell as
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
15
|
+
import St from "./_helpers/GroupedHeader/index.js";
|
|
16
|
+
import { SelectionHeaderCell as ze } from "./_helpers/SelectionCell/index.js";
|
|
17
|
+
import vt from "./_helpers/TableRows.js";
|
|
18
|
+
import { TableChipCell as wt } from "./_helpers/TableChipCell.js";
|
|
19
|
+
import { CKTag as xt } from "../CKTag/index.js";
|
|
20
|
+
import { useSelection as Et } from "./_hooks/useSelection.js";
|
|
21
|
+
import { useExpansion as Nt } from "./_hooks/useExpansion.js";
|
|
22
|
+
import { useOverlayScrollbar as Mt } from "./_hooks/useOverlayScrollbar.js";
|
|
23
|
+
import { isTableConfigDefault as de, saveToLocalStorage as ue, getTableMinWidth as It, isTableConfigChanged as Lt, pinnedStyle as me, columnLayoutStyle as Re } from "./_utils/table.utils.js";
|
|
22
24
|
import { formatCellValue as De } from "./_utils/formatCellValue.js";
|
|
23
|
-
import '../../assets/styles-
|
|
24
|
-
const
|
|
25
|
+
import '../../assets/styles-DIZ9K_K2.css';/* empty css */
|
|
26
|
+
const Ft = (a) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__PURE__ */ l.createElement("path", { d: "M1.75 8.75006L8.16667 8.75", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M1.75 5.25H5.83333", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M1.75 12.25H11.0833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M10.7913 1.75V8.75M10.7913 1.75C10.3829 1.75 9.61972 2.91334 9.33301 3.20833M10.7913 1.75C11.1998 1.75 11.963 2.91334 12.2497 3.20833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" })), Bt = (a) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__PURE__ */ l.createElement("path", { d: "M1.75 5.24994L8.16667 5.25", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M1.75 8.75H5.83333", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M1.75 1.75H11.0833", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M10.7913 12.25V5.25M10.7913 12.25C10.3829 12.25 9.61972 11.0867 9.33301 10.7917M10.7913 12.25C11.1998 12.25 11.963 11.0867 12.2497 10.7917", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" })), Wt = (a) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__PURE__ */ l.createElement("mask", { id: "mask0_1852_13537", style: {
|
|
25
27
|
maskType: "luminance"
|
|
26
|
-
}, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 14, height: 14 }, /* @__PURE__ */
|
|
28
|
+
}, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 14, height: 14 }, /* @__PURE__ */ l.createElement("path", { d: "M13.708 0.291992V13.708H0.291992V0.291992H13.708Z", fill: "white", stroke: "white", strokeWidth: 0.583333 })), /* @__PURE__ */ l.createElement("g", { mask: "url(#mask0_1852_13537)" }, /* @__PURE__ */ l.createElement("path", { d: "M1.75 4.08325H12.25", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M3.5 7H10.5", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }), /* @__PURE__ */ l.createElement("path", { d: "M5.83398 9.9165H8.16732", stroke: "#2B2B2B", strokeWidth: 0.875, strokeLinecap: "round" }))), zt = (a) => /* @__PURE__ */ l.createElement("svg", { width: 200, height: 180, viewBox: "0 0 200 180", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ l.createElement("ellipse", { cx: 100, cy: 168, rx: 38, ry: 6, fill: "#E0E0E0" }), /* @__PURE__ */ l.createElement("path", { d: "M30 110 C10 110 5 90 20 80 C15 60 35 50 55 60 C60 45 80 38 95 50 C110 38 135 42 140 58 C158 55 170 70 162 85 C175 90 175 110 158 112 Z", fill: "#F0F0F0" }), /* @__PURE__ */ l.createElement("g", { stroke: "#C0C0C0", strokeWidth: 2.5, strokeLinecap: "round" }, /* @__PURE__ */ l.createElement("line", { x1: 28, y1: 22, x2: 28, y2: 32 }), /* @__PURE__ */ l.createElement("line", { x1: 23, y1: 27, x2: 33, y2: 27 }), /* @__PURE__ */ l.createElement("line", { x1: 38, y1: 118, x2: 38, y2: 128 }), /* @__PURE__ */ l.createElement("line", { x1: 33, y1: 123, x2: 43, y2: 123 }), /* @__PURE__ */ l.createElement("line", { x1: 162, y1: 52, x2: 162, y2: 62 }), /* @__PURE__ */ l.createElement("line", { x1: 157, y1: 57, x2: 167, y2: 57 })), /* @__PURE__ */ l.createElement("circle", { cx: 100, cy: 155, r: 2, fill: "#D0D0D0" }), /* @__PURE__ */ l.createElement("g", { transform: "rotate(-8, 100, 90)" }, /* @__PURE__ */ l.createElement("rect", { x: 42, y: 28, width: 112, height: 130, rx: 10, fill: "#DCDCDC" }), /* @__PURE__ */ l.createElement("rect", { x: 44, y: 30, width: 108, height: 126, rx: 9, fill: "white", stroke: "#C2C2C2", strokeWidth: 1.5 }), /* @__PURE__ */ l.createElement("rect", { x: 50, y: 36, width: 96, height: 114, rx: 6, fill: "white", stroke: "#C2C2C2", strokeWidth: 1 }), /* @__PURE__ */ l.createElement("rect", { x: 82, y: 20, width: 32, height: 20, rx: 4, fill: "white", stroke: "#C2C2C2", strokeWidth: 1.5 }), /* @__PURE__ */ l.createElement("path", { d: "M91 20 Q98 14 105 20", stroke: "#C2C2C2", strokeWidth: 1.5, fill: "#F4F4F4" }), /* @__PURE__ */ l.createElement("circle", { cx: 95, cy: 88, r: 26, stroke: "#C2C2C2", strokeWidth: 3, fill: "white" }), /* @__PURE__ */ l.createElement("line", { x1: 113, y1: 106, x2: 128, y2: 121, stroke: "#C2C2C2", strokeWidth: 5, strokeLinecap: "round" }), /* @__PURE__ */ l.createElement("line", { x1: 116, y1: 109, x2: 125, y2: 118, stroke: "#E8E8E8", strokeWidth: 2, strokeLinecap: "round" }))), Ae = (a) => {
|
|
27
29
|
if (typeof a == "number") return a;
|
|
28
30
|
if (a == null) return NaN;
|
|
29
|
-
const
|
|
30
|
-
return
|
|
31
|
-
},
|
|
32
|
-
const
|
|
33
|
-
return Number.isNaN(
|
|
31
|
+
const m = String(a).replace(/[^0-9.-]/g, "");
|
|
32
|
+
return m === "" ? NaN : Number(m);
|
|
33
|
+
}, Rt = (a, m, w) => {
|
|
34
|
+
const p = Ae(a.getValue(w)), d = Ae(m.getValue(w));
|
|
35
|
+
return Number.isNaN(p) && Number.isNaN(d) ? 0 : Number.isNaN(p) ? 1 : Number.isNaN(d) ? -1 : p - d;
|
|
34
36
|
};
|
|
35
|
-
let
|
|
36
|
-
const
|
|
37
|
+
let Ke = !1;
|
|
38
|
+
const Ve = (a) => {
|
|
37
39
|
if (typeof a == "number") return a;
|
|
38
40
|
if (typeof a == "string" && a.trim().endsWith("px")) {
|
|
39
|
-
const
|
|
40
|
-
return Number.isNaN(
|
|
41
|
+
const m = Number.parseFloat(a);
|
|
42
|
+
return Number.isNaN(m) ? void 0 : m;
|
|
41
43
|
}
|
|
42
44
|
};
|
|
43
|
-
function
|
|
45
|
+
function Dt(a, m, w) {
|
|
46
|
+
const p = Array.isArray(a) ? a : a ? [a] : [];
|
|
47
|
+
return p.length === 0 ? "" : /* @__PURE__ */ s(wt, { children: p.map(
|
|
48
|
+
(d, D) => w.renderChip ? /* @__PURE__ */ s("span", { children: w.renderChip(d, m) }, D) : /* @__PURE__ */ s(
|
|
49
|
+
xt,
|
|
50
|
+
{
|
|
51
|
+
variation: "NEUTRAL",
|
|
52
|
+
size: "small",
|
|
53
|
+
fill: "outline",
|
|
54
|
+
shape: "pill",
|
|
55
|
+
children: String(d)
|
|
56
|
+
},
|
|
57
|
+
D
|
|
58
|
+
)
|
|
59
|
+
) });
|
|
60
|
+
}
|
|
61
|
+
function ln({
|
|
44
62
|
config: a = {},
|
|
45
|
-
data:
|
|
46
|
-
maxHeight:
|
|
47
|
-
virtualization:
|
|
63
|
+
data: m = [],
|
|
64
|
+
maxHeight: w = "600px",
|
|
65
|
+
virtualization: p = !1,
|
|
48
66
|
persistTableConfig: d = "",
|
|
49
|
-
message:
|
|
67
|
+
message: D,
|
|
50
68
|
icon: He,
|
|
51
69
|
totalRow: fe,
|
|
52
|
-
selection:
|
|
53
|
-
expandable:
|
|
54
|
-
externalColumnFilters:
|
|
55
|
-
externalTableConfig:
|
|
70
|
+
selection: Q,
|
|
71
|
+
expandable: X,
|
|
72
|
+
externalColumnFilters: Y,
|
|
73
|
+
externalTableConfig: x,
|
|
56
74
|
onConfigChange: Oe,
|
|
57
75
|
isLoading: ge = !1
|
|
58
76
|
}) {
|
|
59
77
|
const {
|
|
60
|
-
headers:
|
|
61
|
-
headerGroups:
|
|
62
|
-
showFilters:
|
|
63
|
-
showColumnManager:
|
|
78
|
+
headers: F = [],
|
|
79
|
+
headerGroups: y,
|
|
80
|
+
showFilters: Te = !0,
|
|
81
|
+
showColumnManager: je = !0,
|
|
64
82
|
columnManagerConfig: he = We,
|
|
65
83
|
toolbarLabels: pe,
|
|
66
84
|
search: g
|
|
67
|
-
} = a ?? {}, ye = pe?.columnManager ?? !0,
|
|
68
|
-
|
|
69
|
-
g?.value !== void 0 &&
|
|
85
|
+
} = a ?? {}, ye = pe?.columnManager ?? !0, Ce = pe?.filter ?? !0, [T, ke] = M(g?.value ?? "");
|
|
86
|
+
I(() => {
|
|
87
|
+
g?.value !== void 0 && ke(g.value);
|
|
70
88
|
}, [g?.value]);
|
|
71
|
-
const be =
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
} = wt(f, Z), {
|
|
81
|
-
expandedIds: Pe,
|
|
82
|
-
toggleExpand: _e
|
|
83
|
-
} = xt(Q), j = A(
|
|
84
|
-
() => L.map((e) => {
|
|
89
|
+
const be = L(
|
|
90
|
+
(e) => {
|
|
91
|
+
ke(e), g?.onSearch?.(e);
|
|
92
|
+
},
|
|
93
|
+
[g]
|
|
94
|
+
), E = Z(null), ee = Z(null);
|
|
95
|
+
Mt(E);
|
|
96
|
+
const { selectionState: A, getRowId: $e, toggleRowSelection: Ge, toggleSelectAll: Se } = Et(m, Q), { expandedIds: Pe, toggleExpand: _e } = Nt(X), j = O(
|
|
97
|
+
() => F.map((e) => {
|
|
85
98
|
let t = "includesString";
|
|
86
99
|
return e.filterable && (e.type === "string" ? t = (n, r, o) => {
|
|
87
100
|
if (!o) return !0;
|
|
88
|
-
const c = Array.isArray(o) ? o : o.values,
|
|
101
|
+
const c = Array.isArray(o) ? o : o.values, i = Array.isArray(o) ? !1 : o.exclude;
|
|
89
102
|
if (!c || c.length === 0) return !0;
|
|
90
103
|
const u = String(n.getValue(r));
|
|
91
|
-
return
|
|
104
|
+
return i ? !c.includes(u) : c.includes(u);
|
|
92
105
|
} : e.type === "number" && (t = (n, r, o) => {
|
|
93
106
|
if (!o) return !0;
|
|
94
107
|
const c = Number(n.getValue(r));
|
|
@@ -97,36 +110,51 @@ function tn({
|
|
|
97
110
|
...e,
|
|
98
111
|
enableSorting: e.sortable !== !1,
|
|
99
112
|
...e.minWidth !== void 0 ? { enableResizing: !1 } : {},
|
|
100
|
-
...e.minSize === void 0 &&
|
|
113
|
+
...e.minSize === void 0 && Ve(e.minWidth) !== void 0 ? { minSize: Ve(e.minWidth) } : {},
|
|
101
114
|
...e.type === "number" ? { sortingFn: "numericSort" } : { sortingFn: "text" },
|
|
102
115
|
filterFn: t,
|
|
103
116
|
...e.renderCell ? {
|
|
104
117
|
cell: (n) => e.renderCell(n.getValue(), n.row.original)
|
|
118
|
+
} : e.type === "chips" ? {
|
|
119
|
+
cell: (n) => Dt(n.getValue(), n.row.original, e)
|
|
105
120
|
} : e.prefix || e.suffix || e.decimalPlaces !== void 0 ? {
|
|
106
|
-
cell: (n) => De(
|
|
121
|
+
cell: (n) => De(
|
|
122
|
+
n.getValue(),
|
|
123
|
+
e
|
|
124
|
+
)
|
|
107
125
|
} : {}
|
|
108
126
|
};
|
|
109
127
|
}),
|
|
110
|
-
[
|
|
111
|
-
),
|
|
128
|
+
[F]
|
|
129
|
+
), K = L(
|
|
112
130
|
() => ({
|
|
113
131
|
...We,
|
|
114
132
|
...he,
|
|
115
133
|
columns: j
|
|
116
134
|
}),
|
|
117
135
|
[he, j]
|
|
118
|
-
),
|
|
119
|
-
const e =
|
|
136
|
+
), ve = () => {
|
|
137
|
+
const e = K();
|
|
120
138
|
if (d)
|
|
121
139
|
try {
|
|
122
|
-
const t = localStorage.getItem(
|
|
140
|
+
const t = localStorage.getItem(
|
|
141
|
+
`${R}-${d}`
|
|
142
|
+
);
|
|
123
143
|
if (t) {
|
|
124
144
|
const n = JSON.parse(t);
|
|
125
145
|
if (n?.tableConfig) {
|
|
126
|
-
const r = n.tableConfig.columns || [], o = /* @__PURE__ */ new Set(), c = r.map(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
146
|
+
const r = n.tableConfig.columns || [], o = /* @__PURE__ */ new Set(), c = r.map(
|
|
147
|
+
(i) => e.columns.find(
|
|
148
|
+
(u) => u.accessorKey === i.accessorKey
|
|
149
|
+
)
|
|
150
|
+
).filter((i) => !i || o.has(i.accessorKey) ? !1 : (o.add(i.accessorKey), !0));
|
|
151
|
+
return e.columns.forEach((i) => {
|
|
152
|
+
c.find((u) => u.accessorKey === i.accessorKey) || c.push(i);
|
|
153
|
+
}), {
|
|
154
|
+
...e,
|
|
155
|
+
...n.tableConfig,
|
|
156
|
+
columns: c
|
|
157
|
+
};
|
|
130
158
|
}
|
|
131
159
|
}
|
|
132
160
|
} catch (t) {
|
|
@@ -136,7 +164,9 @@ function tn({
|
|
|
136
164
|
}, we = () => {
|
|
137
165
|
if (d)
|
|
138
166
|
try {
|
|
139
|
-
const e = localStorage.getItem(
|
|
167
|
+
const e = localStorage.getItem(
|
|
168
|
+
`${R}-${d}`
|
|
169
|
+
);
|
|
140
170
|
if (e) {
|
|
141
171
|
const t = JSON.parse(e);
|
|
142
172
|
if (t?.columnFilters) return t.columnFilters;
|
|
@@ -148,7 +178,9 @@ function tn({
|
|
|
148
178
|
}, qe = () => {
|
|
149
179
|
if (d)
|
|
150
180
|
try {
|
|
151
|
-
const e = localStorage.getItem(
|
|
181
|
+
const e = localStorage.getItem(
|
|
182
|
+
`${R}-${d}`
|
|
183
|
+
);
|
|
152
184
|
if (e) {
|
|
153
185
|
const t = JSON.parse(e);
|
|
154
186
|
if (t?.columnSizing) return t.columnSizing;
|
|
@@ -157,25 +189,35 @@ function tn({
|
|
|
157
189
|
console.error("Failed to load table config from local storage", e);
|
|
158
190
|
}
|
|
159
191
|
return {};
|
|
160
|
-
}, [
|
|
161
|
-
|
|
162
|
-
|
|
192
|
+
}, [C, te] = M(
|
|
193
|
+
ve
|
|
194
|
+
), [B, $] = M(
|
|
195
|
+
ve
|
|
196
|
+
), [V, ne] = M(
|
|
197
|
+
we
|
|
198
|
+
), [G, xe] = M(we), [h, Ee] = M(
|
|
199
|
+
qe
|
|
200
|
+
), oe = Z(h);
|
|
201
|
+
oe.current = h;
|
|
202
|
+
const Ne = L(
|
|
163
203
|
(e) => (t) => {
|
|
164
|
-
const n =
|
|
165
|
-
if (n &&
|
|
166
|
-
const
|
|
204
|
+
const n = E.current;
|
|
205
|
+
if (n && ee.current) {
|
|
206
|
+
const i = ee.current.getVisibleLeafColumns(), u = { ...oe.current }, v = n.querySelector(
|
|
207
|
+
".ckds-dragable-tbody .ckds-dragable-tr"
|
|
208
|
+
);
|
|
167
209
|
if (v) {
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
|
|
210
|
+
const S = v.querySelectorAll(".ckds-dragable-td"), ae = S.length > i.length ? 1 : 0;
|
|
211
|
+
let U = !1;
|
|
212
|
+
i.forEach((Ie, st) => {
|
|
171
213
|
if (u[Ie.id] === void 0) {
|
|
172
|
-
const Le =
|
|
214
|
+
const Le = S[st + ae];
|
|
173
215
|
if (Le) {
|
|
174
216
|
const Fe = Le.offsetWidth;
|
|
175
|
-
Fe > 0 && (u[Ie.id] = Fe,
|
|
217
|
+
Fe > 0 && (u[Ie.id] = Fe, U = !0);
|
|
176
218
|
}
|
|
177
219
|
}
|
|
178
|
-
}),
|
|
220
|
+
}), U && (oe.current = u, it(() => {
|
|
179
221
|
Ee(u);
|
|
180
222
|
}));
|
|
181
223
|
}
|
|
@@ -184,25 +226,29 @@ function tn({
|
|
|
184
226
|
let r = n.scrollWidth;
|
|
185
227
|
const o = () => {
|
|
186
228
|
if (!n) return;
|
|
187
|
-
const
|
|
188
|
-
if (
|
|
189
|
-
const u = r -
|
|
229
|
+
const i = n.scrollWidth;
|
|
230
|
+
if (i < r && n.scrollLeft > 0) {
|
|
231
|
+
const u = r - i;
|
|
190
232
|
n.scrollLeft = Math.max(0, n.scrollLeft - u);
|
|
191
233
|
}
|
|
192
|
-
r =
|
|
234
|
+
r = i;
|
|
193
235
|
}, c = () => {
|
|
194
236
|
document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", c);
|
|
195
237
|
};
|
|
196
238
|
document.addEventListener("mousemove", o), document.addEventListener("mouseup", c);
|
|
197
239
|
},
|
|
198
|
-
[
|
|
199
|
-
), [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
240
|
+
[E]
|
|
241
|
+
), [P, N] = M({
|
|
242
|
+
open: !1,
|
|
243
|
+
type: "",
|
|
244
|
+
activeOption: ""
|
|
245
|
+
});
|
|
246
|
+
I(() => {
|
|
247
|
+
x && te(x);
|
|
248
|
+
}, [x]);
|
|
249
|
+
const f = O(() => {
|
|
250
|
+
const e = x ?? C;
|
|
251
|
+
if (!x) return e;
|
|
206
252
|
const t = new Map(j.map((n) => [n.accessorKey, n]));
|
|
207
253
|
return {
|
|
208
254
|
...e,
|
|
@@ -216,120 +262,166 @@ function tn({
|
|
|
216
262
|
} : n;
|
|
217
263
|
})
|
|
218
264
|
};
|
|
219
|
-
}, [
|
|
265
|
+
}, [x, C, j]), Je = Y ?? V, Ue = O(() => {
|
|
220
266
|
const e = {};
|
|
221
|
-
return
|
|
222
|
-
if (
|
|
267
|
+
return F.forEach((t) => {
|
|
268
|
+
if (f.columnVisibility[t.accessorKey] !== !1) {
|
|
223
269
|
if (t.filterable && (t.type === "string" || !t.type)) {
|
|
224
270
|
const n = [
|
|
225
|
-
...new Set(
|
|
271
|
+
...new Set(
|
|
272
|
+
m.map((r) => String(r[t.accessorKey] ?? "")).filter(Boolean)
|
|
273
|
+
)
|
|
226
274
|
];
|
|
227
|
-
e[t.header] = {
|
|
275
|
+
e[t.header] = {
|
|
276
|
+
type: "checkbox",
|
|
277
|
+
options: n,
|
|
278
|
+
accessorKey: t.accessorKey
|
|
279
|
+
};
|
|
228
280
|
} else if (t.filterable && t.type === "number") {
|
|
229
|
-
const n =
|
|
230
|
-
e[t.header] = {
|
|
281
|
+
const n = m.map((c) => Number(c[t.accessorKey])).filter((c) => !Number.isNaN(c)), r = n.length ? Math.floor(Math.min(...n)) : 0, o = n.length ? Math.ceil(Math.max(...n)) : 0;
|
|
282
|
+
e[t.header] = {
|
|
283
|
+
type: "range",
|
|
284
|
+
values: { min: r, max: o },
|
|
285
|
+
accessorKey: t.accessorKey
|
|
286
|
+
};
|
|
231
287
|
}
|
|
232
288
|
}
|
|
233
289
|
}), e;
|
|
234
|
-
}, [
|
|
235
|
-
|
|
236
|
-
if (d && !
|
|
290
|
+
}, [F, m, f.columnVisibility]);
|
|
291
|
+
I(() => {
|
|
292
|
+
if (d && !Ke)
|
|
237
293
|
try {
|
|
238
|
-
const e =
|
|
239
|
-
|
|
294
|
+
const e = V.length > 0, t = !de(
|
|
295
|
+
C,
|
|
296
|
+
K()
|
|
297
|
+
);
|
|
298
|
+
(e || t) && (Ke = !0);
|
|
240
299
|
} catch (e) {
|
|
241
300
|
console.error("Failed to check toast condition", e);
|
|
242
301
|
}
|
|
243
|
-
}, [d]),
|
|
244
|
-
d && Object.keys(h).length > 0 &&
|
|
245
|
-
|
|
246
|
-
|
|
302
|
+
}, [d]), I(() => {
|
|
303
|
+
d && Object.keys(h).length > 0 && ue(`${R}-${d}`, {
|
|
304
|
+
columnSizing: h
|
|
305
|
+
});
|
|
306
|
+
}, [h, d]), I(() => {
|
|
307
|
+
ne((e) => {
|
|
247
308
|
const t = e.filter(
|
|
248
|
-
(n) =>
|
|
309
|
+
(n) => C.columnVisibility[n.id] !== !1
|
|
249
310
|
);
|
|
250
311
|
return t.length !== e.length ? t : e;
|
|
251
312
|
});
|
|
252
|
-
}, [
|
|
313
|
+
}, [C.columnVisibility]);
|
|
253
314
|
const Ze = () => {
|
|
254
|
-
const e = /* @__PURE__ */ new Set(), t =
|
|
255
|
-
|
|
315
|
+
const e = /* @__PURE__ */ new Set(), t = B.columns.filter((r) => e.has(r.accessorKey) ? !1 : (e.add(r.accessorKey), !0)), n = { ...B, columns: t };
|
|
316
|
+
te(n), N({ type: "", activeOption: "", open: !1 }), d && ue(`${R}-${d}`, {
|
|
317
|
+
tableConfig: n
|
|
318
|
+
}), Oe?.(B);
|
|
256
319
|
}, Qe = () => {
|
|
257
|
-
|
|
258
|
-
}, Xe =
|
|
259
|
-
|
|
320
|
+
$(K);
|
|
321
|
+
}, Xe = L((e, t) => {
|
|
322
|
+
$((n) => {
|
|
260
323
|
const r = [...n.columns], [o] = r.splice(e, 1);
|
|
261
324
|
return r.splice(t, 0, o), { ...n, columns: r };
|
|
262
325
|
});
|
|
263
|
-
}, []), Ye =
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
326
|
+
}, []), Ye = L(
|
|
327
|
+
(e) => {
|
|
328
|
+
te((t) => {
|
|
329
|
+
const n = typeof e == "function" ? e(t.columnVisibility) : e;
|
|
330
|
+
return { ...t, columnVisibility: n };
|
|
331
|
+
});
|
|
332
|
+
},
|
|
333
|
+
[]
|
|
334
|
+
), et = O(() => {
|
|
335
|
+
const e = [], t = [], n = f.columns.filter(
|
|
336
|
+
(i) => f.columnVisibility[i.accessorKey] !== !1
|
|
271
337
|
);
|
|
272
338
|
if (n.length === 0) return { left: e, right: t };
|
|
273
339
|
const r = /* @__PURE__ */ new Set(), o = [];
|
|
274
|
-
if (
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
v.columns.forEach((
|
|
278
|
-
|
|
340
|
+
if (y && y.length > 0) {
|
|
341
|
+
const i = /* @__PURE__ */ new Map();
|
|
342
|
+
y.forEach((v) => {
|
|
343
|
+
v.columns.forEach((S) => {
|
|
344
|
+
i.set(S, v.columns), r.add(S);
|
|
279
345
|
});
|
|
280
346
|
});
|
|
281
347
|
const u = /* @__PURE__ */ new Set();
|
|
282
348
|
for (const v of n) {
|
|
283
|
-
const
|
|
284
|
-
if (
|
|
285
|
-
const
|
|
286
|
-
if (!u.has(
|
|
287
|
-
u.add(
|
|
288
|
-
const
|
|
289
|
-
(
|
|
349
|
+
const S = i.get(v.accessorKey);
|
|
350
|
+
if (S) {
|
|
351
|
+
const ce = S.join(",");
|
|
352
|
+
if (!u.has(ce)) {
|
|
353
|
+
u.add(ce);
|
|
354
|
+
const ae = S.filter(
|
|
355
|
+
(U) => f.columnVisibility[U] !== !1
|
|
290
356
|
);
|
|
291
|
-
o.push({ type: "group", ids:
|
|
357
|
+
o.push({ type: "group", ids: ae });
|
|
292
358
|
}
|
|
293
359
|
} else
|
|
294
360
|
o.push({ type: "single", id: v.accessorKey });
|
|
295
361
|
}
|
|
296
362
|
} else
|
|
297
|
-
n.forEach((
|
|
298
|
-
o.push({
|
|
363
|
+
n.forEach((i) => {
|
|
364
|
+
o.push({
|
|
365
|
+
type: "single",
|
|
366
|
+
id: i.accessorKey
|
|
367
|
+
});
|
|
299
368
|
});
|
|
300
|
-
const c = (
|
|
301
|
-
return
|
|
369
|
+
const c = (i) => i.type === "group" ? i.ids ?? [] : [i.id];
|
|
370
|
+
return f.stickyStart === "first" && o.length > 0 && c(
|
|
371
|
+
o[0]
|
|
372
|
+
).forEach((i) => e.push(i)), f.stickyStart === "firstTwo" && o.length > 1 && (c(
|
|
373
|
+
o[0]
|
|
374
|
+
).forEach((i) => e.push(i)), c(
|
|
375
|
+
o[1]
|
|
376
|
+
).forEach((i) => e.push(i))), f.stickyEnd === "last" && o.length > 0 && c(
|
|
377
|
+
o[o.length - 1]
|
|
378
|
+
).forEach((u) => {
|
|
302
379
|
e.includes(u) || t.push(u);
|
|
303
380
|
}), { left: e, right: t };
|
|
304
|
-
}, [
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
381
|
+
}, [
|
|
382
|
+
f.stickyStart,
|
|
383
|
+
f.stickyEnd,
|
|
384
|
+
f.columns,
|
|
385
|
+
f.columnVisibility,
|
|
386
|
+
y
|
|
387
|
+
]), tt = O(() => {
|
|
388
|
+
if (!g || g.mode !== "frontend" || !T.trim())
|
|
389
|
+
return m;
|
|
390
|
+
const e = T.toLowerCase(), t = F.filter(
|
|
391
|
+
(n) => f.columnVisibility[n.accessorKey] !== !1
|
|
392
|
+
).map((n) => n.accessorKey);
|
|
393
|
+
return m.filter(
|
|
308
394
|
(n) => t.some((r) => {
|
|
309
395
|
const o = n[r];
|
|
310
396
|
return o != null && String(o).toLowerCase().includes(e);
|
|
311
397
|
})
|
|
312
398
|
);
|
|
313
|
-
}, [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
399
|
+
}, [
|
|
400
|
+
g,
|
|
401
|
+
T,
|
|
402
|
+
m,
|
|
403
|
+
F,
|
|
404
|
+
f.columnVisibility
|
|
405
|
+
]);
|
|
406
|
+
I(() => {
|
|
407
|
+
E.current && (E.current.scrollTop = 0);
|
|
408
|
+
}, [m]);
|
|
317
409
|
const k = ct({
|
|
318
410
|
data: tt,
|
|
319
|
-
columns:
|
|
411
|
+
columns: f.columns,
|
|
320
412
|
defaultColumn: {
|
|
321
413
|
minSize: 100
|
|
322
414
|
},
|
|
323
415
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
324
|
-
sortingFns: { numericSort:
|
|
416
|
+
sortingFns: { numericSort: Rt },
|
|
325
417
|
getRowId: (e, t) => $e(e, t),
|
|
326
418
|
state: {
|
|
327
|
-
columnVisibility:
|
|
419
|
+
columnVisibility: f.columnVisibility,
|
|
328
420
|
columnPinning: et,
|
|
329
421
|
columnFilters: Je,
|
|
330
422
|
columnSizing: h
|
|
331
423
|
},
|
|
332
|
-
onColumnFiltersChange:
|
|
424
|
+
onColumnFiltersChange: ne,
|
|
333
425
|
onColumnSizingChange: Ee,
|
|
334
426
|
enableRowSelection: !1,
|
|
335
427
|
enableColumnResizing: !0,
|
|
@@ -339,288 +431,467 @@ function tn({
|
|
|
339
431
|
getSortedRowModel: ut(),
|
|
340
432
|
getFilteredRowModel: dt()
|
|
341
433
|
});
|
|
342
|
-
|
|
343
|
-
const { rows:
|
|
344
|
-
|
|
434
|
+
ee.current = k;
|
|
435
|
+
const { rows: _ } = k.getRowModel(), W = k.getVisibleLeafColumns(), Me = W.length > 0 ? W[W.length - 1].id : null, H = (Q?.enabled ?? !1) && !X?.enabled, q = H ? 40 : 0, re = It(
|
|
436
|
+
W,
|
|
437
|
+
q,
|
|
438
|
+
h
|
|
439
|
+
), J = Z(/* @__PURE__ */ new Map()), nt = L(
|
|
440
|
+
(e) => J.current.get(e) || Ct,
|
|
345
441
|
[]
|
|
346
|
-
),
|
|
347
|
-
count:
|
|
348
|
-
getScrollElement: () =>
|
|
442
|
+
), z = lt({
|
|
443
|
+
count: _.length,
|
|
444
|
+
getScrollElement: () => E.current,
|
|
349
445
|
estimateSize: nt,
|
|
350
446
|
overscan: 5
|
|
351
447
|
});
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
448
|
+
I(() => {
|
|
449
|
+
J.current.clear(), requestAnimationFrame(() => {
|
|
450
|
+
z.measure();
|
|
355
451
|
});
|
|
356
|
-
}, [
|
|
357
|
-
const ot =
|
|
452
|
+
}, [f.wrapText, z]);
|
|
453
|
+
const ot = L(
|
|
358
454
|
(e, t) => {
|
|
359
455
|
if (!t) return;
|
|
360
|
-
const n = t.offsetHeight, r =
|
|
361
|
-
n && r !== n && (
|
|
362
|
-
|
|
456
|
+
const n = t.offsetHeight, r = J.current.get(e);
|
|
457
|
+
n && r !== n && (J.current.set(e, n), requestAnimationFrame(() => {
|
|
458
|
+
z.measure();
|
|
363
459
|
}));
|
|
364
460
|
},
|
|
365
|
-
[
|
|
366
|
-
),
|
|
367
|
-
|
|
461
|
+
[z]
|
|
462
|
+
), se = (e) => e === "asc" ? /* @__PURE__ */ s(Ft, {}) : e === "desc" ? /* @__PURE__ */ s(Bt, {}) : /* @__PURE__ */ s(Wt, {}), rt = P.type === "filter" ? /* @__PURE__ */ s(
|
|
463
|
+
kt,
|
|
368
464
|
{
|
|
369
465
|
filters: Ue,
|
|
370
|
-
draftColumnFilters:
|
|
466
|
+
draftColumnFilters: G,
|
|
371
467
|
setDraftColumnFilters: xe,
|
|
372
468
|
handleApplyFilters: () => {
|
|
373
|
-
|
|
469
|
+
ne(G), N({ ...P, open: !1 }), d && ue(`${R}-${d}`, {
|
|
470
|
+
columnFilters: G
|
|
471
|
+
});
|
|
374
472
|
},
|
|
375
|
-
setModalOpen:
|
|
376
|
-
virtualization:
|
|
377
|
-
isFilterChanged: JSON.stringify(
|
|
473
|
+
setModalOpen: N,
|
|
474
|
+
virtualization: p,
|
|
475
|
+
isFilterChanged: JSON.stringify(G) !== JSON.stringify(V)
|
|
378
476
|
}
|
|
379
|
-
) : /* @__PURE__ */
|
|
477
|
+
) : /* @__PURE__ */ s(
|
|
380
478
|
bt,
|
|
381
479
|
{
|
|
382
|
-
draftConfig:
|
|
383
|
-
setDraftConfig:
|
|
480
|
+
draftConfig: B,
|
|
481
|
+
setDraftConfig: $,
|
|
384
482
|
moveDraftColumn: Xe,
|
|
385
483
|
handleApplyPref: Ze,
|
|
386
|
-
setModalOpen:
|
|
484
|
+
setModalOpen: N,
|
|
387
485
|
handleResetToDefault: Qe,
|
|
388
|
-
isDefault:
|
|
389
|
-
isConfigChanged:
|
|
390
|
-
headerGroupDefs:
|
|
486
|
+
isDefault: de(B, K()),
|
|
487
|
+
isConfigChanged: Lt(B, C),
|
|
488
|
+
headerGroupDefs: y
|
|
391
489
|
}
|
|
392
|
-
),
|
|
393
|
-
return /* @__PURE__ */
|
|
394
|
-
(g ||
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
Be,
|
|
409
|
-
{
|
|
410
|
-
className: `${ae(y, D()) ? "" : "ckds-toolbar-btn-indicator"}`,
|
|
411
|
-
onClick: () => {
|
|
412
|
-
T({ ...y, columnVisibility: { ...y.columnVisibility }, columns: [...y.columns] }), E({ open: !0, type: "columnManager", activeOption: "" });
|
|
413
|
-
},
|
|
414
|
-
variant: "secondary",
|
|
415
|
-
size: "medium",
|
|
416
|
-
icons: { left: /* @__PURE__ */ l(pt, {}) },
|
|
417
|
-
label: ye ? "Column Manager" : void 0,
|
|
418
|
-
iconOnly: !ye
|
|
419
|
-
}
|
|
420
|
-
),
|
|
421
|
-
/* @__PURE__ */ l("div", { style: { borderRight: "1px solid var(--ckcl-black-200, #C2C2C2)", margin: "5px 0" } }),
|
|
422
|
-
ie && /* @__PURE__ */ l(
|
|
423
|
-
Be,
|
|
424
|
-
{
|
|
425
|
-
className: `${K.length > 0 ? "ckds-toolbar-btn-indicator" : ""}`,
|
|
426
|
-
onClick: () => {
|
|
427
|
-
xe(K), E({ open: !0, type: "filter", activeOption: "" });
|
|
428
|
-
},
|
|
429
|
-
variant: "secondary",
|
|
430
|
-
size: "medium",
|
|
431
|
-
icons: { right: /* @__PURE__ */ l(yt, {}) },
|
|
432
|
-
label: ke ? "Filters" : void 0,
|
|
433
|
-
iconOnly: !ke
|
|
434
|
-
}
|
|
435
|
-
)
|
|
436
|
-
] })
|
|
437
|
-
] }),
|
|
438
|
-
/* @__PURE__ */ C("div", { style: { position: "relative", overflow: "hidden", borderRadius: "var(--ckcl-border-radius-lg, 12px)" }, children: [
|
|
439
|
-
ge && /* @__PURE__ */ l(ht, { overlay: !0 }),
|
|
440
|
-
/* @__PURE__ */ l(
|
|
441
|
-
"div",
|
|
442
|
-
{
|
|
443
|
-
className: "ckds-custom-table ckds-custom-scrollbar",
|
|
444
|
-
ref: x,
|
|
445
|
-
style: { maxHeight: H, width: k?.getHeaderGroups()?.[0]?.headers?.length === 1 ? "fit-content" : "100%" },
|
|
446
|
-
children: P.length ? /* @__PURE__ */ C(
|
|
447
|
-
"table",
|
|
490
|
+
), ie = je, le = Te && !Y;
|
|
491
|
+
return /* @__PURE__ */ b("div", { children: [
|
|
492
|
+
(g || ie || le) && /* @__PURE__ */ b(
|
|
493
|
+
"div",
|
|
494
|
+
{
|
|
495
|
+
className: "ckds-filter-wrapper",
|
|
496
|
+
style: {
|
|
497
|
+
display: "flex",
|
|
498
|
+
gap: "8px",
|
|
499
|
+
margin: "16px 0px 12px 0px",
|
|
500
|
+
justifyContent: "space-between",
|
|
501
|
+
alignItems: "center"
|
|
502
|
+
},
|
|
503
|
+
children: [
|
|
504
|
+
/* @__PURE__ */ s("div", { className: "ckds-toolbar-search", children: g && /* @__PURE__ */ s(
|
|
505
|
+
ft,
|
|
448
506
|
{
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
507
|
+
value: T,
|
|
508
|
+
placeholder: g.placeholder ?? "Search",
|
|
509
|
+
debounceMs: g.debounceMs ?? 0,
|
|
510
|
+
onChange: be,
|
|
511
|
+
onClear: () => be(""),
|
|
512
|
+
disabled: ge
|
|
513
|
+
}
|
|
514
|
+
) }),
|
|
515
|
+
(ie || le) && /* @__PURE__ */ b("div", { style: { display: "flex", gap: "8px", alignItems: "center" }, children: [
|
|
516
|
+
ie && /* @__PURE__ */ s(
|
|
517
|
+
Be,
|
|
518
|
+
{
|
|
519
|
+
className: `${de(C, K()) ? "" : "ckds-toolbar-btn-indicator"}`,
|
|
520
|
+
onClick: () => {
|
|
521
|
+
$({
|
|
522
|
+
...C,
|
|
523
|
+
columnVisibility: { ...C.columnVisibility },
|
|
524
|
+
columns: [...C.columns]
|
|
525
|
+
}), N({
|
|
526
|
+
open: !0,
|
|
527
|
+
type: "columnManager",
|
|
528
|
+
activeOption: ""
|
|
529
|
+
});
|
|
530
|
+
},
|
|
531
|
+
variant: "secondary",
|
|
532
|
+
size: "medium",
|
|
533
|
+
icons: { left: /* @__PURE__ */ s(pt, {}) },
|
|
534
|
+
label: ye ? "Column Manager" : void 0,
|
|
535
|
+
iconOnly: !ye
|
|
536
|
+
}
|
|
537
|
+
),
|
|
538
|
+
/* @__PURE__ */ s(
|
|
539
|
+
"div",
|
|
540
|
+
{
|
|
541
|
+
style: {
|
|
542
|
+
borderRight: "1px solid var(--ckcl-black-200, #C2C2C2)",
|
|
543
|
+
margin: "5px 0"
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
),
|
|
547
|
+
le && /* @__PURE__ */ s(
|
|
548
|
+
Be,
|
|
549
|
+
{
|
|
550
|
+
className: `${V.length > 0 ? "ckds-toolbar-btn-indicator" : ""}`,
|
|
551
|
+
onClick: () => {
|
|
552
|
+
xe(V), N({
|
|
553
|
+
open: !0,
|
|
554
|
+
type: "filter",
|
|
555
|
+
activeOption: ""
|
|
556
|
+
});
|
|
557
|
+
},
|
|
558
|
+
variant: "secondary",
|
|
559
|
+
size: "medium",
|
|
560
|
+
icons: { right: /* @__PURE__ */ s(yt, {}) },
|
|
561
|
+
label: Ce ? "Filters" : void 0,
|
|
562
|
+
iconOnly: !Ce
|
|
563
|
+
}
|
|
564
|
+
)
|
|
565
|
+
] })
|
|
566
|
+
]
|
|
567
|
+
}
|
|
568
|
+
),
|
|
569
|
+
/* @__PURE__ */ b(
|
|
570
|
+
"div",
|
|
571
|
+
{
|
|
572
|
+
style: {
|
|
573
|
+
position: "relative",
|
|
574
|
+
overflow: "hidden",
|
|
575
|
+
borderRadius: "var(--ckcl-border-radius-lg, 12px)"
|
|
576
|
+
},
|
|
577
|
+
children: [
|
|
578
|
+
ge && /* @__PURE__ */ s(ht, { overlay: !0 }),
|
|
579
|
+
/* @__PURE__ */ s(
|
|
580
|
+
"div",
|
|
581
|
+
{
|
|
582
|
+
className: "ckds-custom-table ckds-custom-scrollbar",
|
|
583
|
+
ref: E,
|
|
584
|
+
style: {
|
|
585
|
+
maxHeight: w,
|
|
586
|
+
width: k?.getHeaderGroups()?.[0]?.headers?.length === 1 ? "fit-content" : "100%"
|
|
587
|
+
},
|
|
588
|
+
children: _.length ? /* @__PURE__ */ b(
|
|
589
|
+
"table",
|
|
590
|
+
{
|
|
591
|
+
className: "ckds-dragable-table",
|
|
592
|
+
style: {
|
|
593
|
+
width: "100%",
|
|
594
|
+
minWidth: re,
|
|
595
|
+
display: "block"
|
|
596
|
+
},
|
|
597
|
+
children: [
|
|
598
|
+
/* @__PURE__ */ b(
|
|
599
|
+
"thead",
|
|
478
600
|
{
|
|
479
|
-
className: "ckds-dragable-
|
|
480
|
-
style: {
|
|
481
|
-
|
|
482
|
-
|
|
601
|
+
className: "ckds-dragable-thead",
|
|
602
|
+
style: {
|
|
603
|
+
display: "block",
|
|
604
|
+
position: "sticky",
|
|
605
|
+
top: 0,
|
|
606
|
+
zIndex: 10,
|
|
607
|
+
minWidth: re,
|
|
608
|
+
backgroundColor: "var(--ckds-cell-bg-default, #ffffff)"
|
|
609
|
+
},
|
|
610
|
+
children: [
|
|
611
|
+
y && y.length > 0 && /* @__PURE__ */ s(
|
|
612
|
+
St,
|
|
613
|
+
{
|
|
614
|
+
headerGroups: y,
|
|
615
|
+
table: k,
|
|
616
|
+
hasSelection: H,
|
|
617
|
+
getSortIcon: se,
|
|
618
|
+
selectionCell: H ? /* @__PURE__ */ s(
|
|
619
|
+
ze,
|
|
620
|
+
{
|
|
621
|
+
isAllSelected: A.isAllSelected,
|
|
622
|
+
isIndeterminate: A.isIndeterminate,
|
|
623
|
+
onToggleAll: Se
|
|
624
|
+
}
|
|
625
|
+
) : void 0,
|
|
626
|
+
lastColId: Me,
|
|
627
|
+
columnSizing: h,
|
|
628
|
+
pinnedStyle: me,
|
|
629
|
+
selectionOffset: q,
|
|
630
|
+
handleResizeWithScrollFollow: Ne
|
|
631
|
+
}
|
|
632
|
+
),
|
|
633
|
+
!(y && y.length > 0) && k.getHeaderGroups().map((e) => /* @__PURE__ */ b(
|
|
634
|
+
"tr",
|
|
635
|
+
{
|
|
636
|
+
className: "ckds-dragable-tr",
|
|
637
|
+
style: { display: "flex", width: "100%" },
|
|
638
|
+
children: [
|
|
639
|
+
H && /* @__PURE__ */ s(
|
|
640
|
+
"th",
|
|
641
|
+
{
|
|
642
|
+
className: "ckds-dragable-th",
|
|
643
|
+
style: {
|
|
644
|
+
width: 40,
|
|
645
|
+
minWidth: 40,
|
|
646
|
+
maxWidth: 40,
|
|
647
|
+
flex: "0 0 40px",
|
|
648
|
+
display: "flex",
|
|
649
|
+
alignItems: "center",
|
|
650
|
+
justifyContent: "center",
|
|
651
|
+
position: "sticky",
|
|
652
|
+
left: 0,
|
|
653
|
+
zIndex: 2
|
|
654
|
+
},
|
|
655
|
+
children: /* @__PURE__ */ s(
|
|
656
|
+
ze,
|
|
657
|
+
{
|
|
658
|
+
isAllSelected: A.isAllSelected,
|
|
659
|
+
isIndeterminate: A.isIndeterminate,
|
|
660
|
+
onToggleAll: Se
|
|
661
|
+
}
|
|
662
|
+
)
|
|
663
|
+
}
|
|
664
|
+
),
|
|
665
|
+
e.headers.map(
|
|
666
|
+
(t) => {
|
|
667
|
+
const n = t.column.getIsPinned(), r = t.column.id === Me;
|
|
668
|
+
return /* @__PURE__ */ b(
|
|
669
|
+
"th",
|
|
670
|
+
{
|
|
671
|
+
className: "ckds-dragable-th",
|
|
672
|
+
style: {
|
|
673
|
+
...me(
|
|
674
|
+
t.column,
|
|
675
|
+
k,
|
|
676
|
+
q,
|
|
677
|
+
h
|
|
678
|
+
),
|
|
679
|
+
...Re(
|
|
680
|
+
t.column,
|
|
681
|
+
W,
|
|
682
|
+
h
|
|
683
|
+
),
|
|
684
|
+
position: n ? "sticky" : "relative",
|
|
685
|
+
zIndex: n ? 2 : void 0,
|
|
686
|
+
display: "flex",
|
|
687
|
+
flexDirection: "column"
|
|
688
|
+
},
|
|
689
|
+
children: [
|
|
690
|
+
/* @__PURE__ */ b(
|
|
691
|
+
"div",
|
|
692
|
+
{
|
|
693
|
+
style: {
|
|
694
|
+
display: "flex",
|
|
695
|
+
alignItems: "center",
|
|
696
|
+
flex: "1 1 auto",
|
|
697
|
+
minWidth: 0,
|
|
698
|
+
justifyContent: t.column.getCanSort() ? "space-between" : t.column.columnDef.align === "right" ? "flex-end" : t.column.columnDef.align === "center" ? "center" : "flex-start",
|
|
699
|
+
cursor: t.column.getCanSort() ? "pointer" : "default"
|
|
700
|
+
},
|
|
701
|
+
onClick: t.column.getCanSort() ? t.column.getToggleSortingHandler() : void 0,
|
|
702
|
+
role: "button",
|
|
703
|
+
tabIndex: t.column.getCanSort() ? 0 : -1,
|
|
704
|
+
onKeyDown: (o) => {
|
|
705
|
+
t.column.getCanSort() && (o.key === "Enter" || o.key === " ") && t.column.getToggleSortingHandler()?.(
|
|
706
|
+
o
|
|
707
|
+
);
|
|
708
|
+
},
|
|
709
|
+
children: [
|
|
710
|
+
t.column.columnDef.align === "right" && t.column.getCanSort() && /* @__PURE__ */ s("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: se(
|
|
711
|
+
t.column.getIsSorted()
|
|
712
|
+
) }),
|
|
713
|
+
at(
|
|
714
|
+
t.column.columnDef.header,
|
|
715
|
+
t.getContext()
|
|
716
|
+
),
|
|
717
|
+
t.column.columnDef.align !== "right" && t.column.getCanSort() && /* @__PURE__ */ s("span", { className: "ckds-sort-icon", children: se(
|
|
718
|
+
t.column.getIsSorted()
|
|
719
|
+
) })
|
|
720
|
+
]
|
|
721
|
+
}
|
|
722
|
+
),
|
|
723
|
+
!r && t.column.getCanResize() && /* @__PURE__ */ s(
|
|
724
|
+
"div",
|
|
725
|
+
{
|
|
726
|
+
onMouseDown: Ne(
|
|
727
|
+
t.getResizeHandler()
|
|
728
|
+
),
|
|
729
|
+
onTouchStart: t.getResizeHandler(),
|
|
730
|
+
className: "ckds-col-resize-handle",
|
|
731
|
+
role: "separator",
|
|
732
|
+
"aria-orientation": "vertical",
|
|
733
|
+
children: /* @__PURE__ */ s("div", { className: "ckds-col-resize-line" })
|
|
734
|
+
}
|
|
735
|
+
),
|
|
736
|
+
!r && !t.column.getCanResize() && /* @__PURE__ */ s(
|
|
737
|
+
"div",
|
|
738
|
+
{
|
|
739
|
+
className: "ckds-col-resize-handle",
|
|
740
|
+
style: { cursor: "default" },
|
|
741
|
+
children: /* @__PURE__ */ s("div", { className: "ckds-col-resize-line" })
|
|
742
|
+
}
|
|
743
|
+
)
|
|
744
|
+
]
|
|
745
|
+
},
|
|
746
|
+
t.id
|
|
747
|
+
);
|
|
748
|
+
}
|
|
749
|
+
)
|
|
750
|
+
]
|
|
751
|
+
},
|
|
752
|
+
e.id
|
|
753
|
+
))
|
|
754
|
+
]
|
|
755
|
+
}
|
|
756
|
+
),
|
|
757
|
+
/* @__PURE__ */ s(
|
|
758
|
+
"tbody",
|
|
759
|
+
{
|
|
760
|
+
className: "ckds-dragable-tbody",
|
|
761
|
+
style: {
|
|
762
|
+
height: p && _.length ? `${z.getTotalSize()}px` : "auto",
|
|
763
|
+
position: "relative",
|
|
764
|
+
display: "block",
|
|
765
|
+
width: "100%",
|
|
766
|
+
minWidth: re
|
|
767
|
+
},
|
|
768
|
+
children: /* @__PURE__ */ s(
|
|
769
|
+
vt,
|
|
483
770
|
{
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
771
|
+
rows: _,
|
|
772
|
+
virtualization: p,
|
|
773
|
+
rowVirtualizer: z,
|
|
774
|
+
handleMeasure: ot,
|
|
775
|
+
columnSizing: h,
|
|
776
|
+
tableConfig: f,
|
|
777
|
+
table: k,
|
|
778
|
+
selectionState: A,
|
|
779
|
+
selectionConfig: Q,
|
|
780
|
+
onToggleRowSelection: Ge,
|
|
781
|
+
expandableConfig: X,
|
|
782
|
+
expandedIds: Pe,
|
|
783
|
+
onToggleExpand: _e
|
|
487
784
|
}
|
|
488
785
|
)
|
|
489
786
|
}
|
|
490
787
|
),
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
return /* @__PURE__ */ C(
|
|
494
|
-
"th",
|
|
495
|
-
{
|
|
496
|
-
className: "ckds-dragable-th",
|
|
497
|
-
style: {
|
|
498
|
-
...ue(t.column, k, _, h),
|
|
499
|
-
...ze(t.column, B, h),
|
|
500
|
-
position: n ? "sticky" : "relative",
|
|
501
|
-
zIndex: n ? 2 : void 0,
|
|
502
|
-
display: "flex",
|
|
503
|
-
flexDirection: "column"
|
|
504
|
-
},
|
|
505
|
-
children: [
|
|
506
|
-
/* @__PURE__ */ C(
|
|
507
|
-
"div",
|
|
508
|
-
{
|
|
509
|
-
style: {
|
|
510
|
-
display: "flex",
|
|
511
|
-
alignItems: "center",
|
|
512
|
-
flex: "1 1 auto",
|
|
513
|
-
minWidth: 0,
|
|
514
|
-
justifyContent: t.column.getCanSort() ? "space-between" : t.column.columnDef.align === "right" ? "flex-end" : t.column.columnDef.align === "center" ? "center" : "flex-start",
|
|
515
|
-
cursor: t.column.getCanSort() ? "pointer" : "default"
|
|
516
|
-
},
|
|
517
|
-
onClick: t.column.getCanSort() ? t.column.getToggleSortingHandler() : void 0,
|
|
518
|
-
role: "button",
|
|
519
|
-
tabIndex: t.column.getCanSort() ? 0 : -1,
|
|
520
|
-
onKeyDown: (o) => {
|
|
521
|
-
t.column.getCanSort() && (o.key === "Enter" || o.key === " ") && t.column.getToggleSortingHandler()?.(o);
|
|
522
|
-
},
|
|
523
|
-
children: [
|
|
524
|
-
t.column.columnDef.align === "right" && t.column.getCanSort() && /* @__PURE__ */ l("span", { className: "ckds-sort-icon ckds-sort-icon-left", children: re(t.column.getIsSorted()) }),
|
|
525
|
-
at(t.column.columnDef.header, t.getContext()),
|
|
526
|
-
t.column.columnDef.align !== "right" && t.column.getCanSort() && /* @__PURE__ */ l("span", { className: "ckds-sort-icon", children: re(t.column.getIsSorted()) })
|
|
527
|
-
]
|
|
528
|
-
}
|
|
529
|
-
),
|
|
530
|
-
!r && t.column.getCanResize() && /* @__PURE__ */ l(
|
|
531
|
-
"div",
|
|
532
|
-
{
|
|
533
|
-
onMouseDown: Ne(t.getResizeHandler()),
|
|
534
|
-
onTouchStart: t.getResizeHandler(),
|
|
535
|
-
className: "ckds-col-resize-handle",
|
|
536
|
-
role: "separator",
|
|
537
|
-
"aria-orientation": "vertical",
|
|
538
|
-
children: /* @__PURE__ */ l("div", { className: "ckds-col-resize-line" })
|
|
539
|
-
}
|
|
540
|
-
)
|
|
541
|
-
]
|
|
542
|
-
},
|
|
543
|
-
t.id
|
|
544
|
-
);
|
|
545
|
-
})
|
|
546
|
-
] }, e.id))
|
|
547
|
-
] }),
|
|
548
|
-
/* @__PURE__ */ l(
|
|
549
|
-
"tbody",
|
|
550
|
-
{
|
|
551
|
-
className: "ckds-dragable-tbody",
|
|
552
|
-
style: {
|
|
553
|
-
height: S && P.length ? `${W.getTotalSize()}px` : "auto",
|
|
554
|
-
position: "relative",
|
|
555
|
-
display: "block",
|
|
556
|
-
width: "100%",
|
|
557
|
-
minWidth: oe
|
|
558
|
-
},
|
|
559
|
-
children: /* @__PURE__ */ l(
|
|
560
|
-
St,
|
|
561
|
-
{
|
|
562
|
-
rows: P,
|
|
563
|
-
virtualization: S,
|
|
564
|
-
rowVirtualizer: W,
|
|
565
|
-
handleMeasure: ot,
|
|
566
|
-
columnSizing: h,
|
|
567
|
-
tableConfig: m,
|
|
568
|
-
table: k,
|
|
569
|
-
selectionState: z,
|
|
570
|
-
selectionConfig: Z,
|
|
571
|
-
onToggleRowSelection: Ge,
|
|
572
|
-
expandableConfig: Q,
|
|
573
|
-
expandedIds: Pe,
|
|
574
|
-
onToggleExpand: _e
|
|
575
|
-
}
|
|
576
|
-
)
|
|
577
|
-
}
|
|
578
|
-
),
|
|
579
|
-
fe && /* @__PURE__ */ l("tfoot", { className: "ckds-dragable-tfoot", style: { display: "block", position: "sticky", bottom: 0, zIndex: 10, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: /* @__PURE__ */ C("tr", { className: "ckds-dragable-tr", style: { display: "flex", width: "100%" }, children: [
|
|
580
|
-
V && /* @__PURE__ */ l("td", { className: "ckds-dragable-td ckds-dragable-total-td", style: { display: "flex", alignItems: "center", width: 40, minWidth: 40, maxWidth: 40, flex: "0 0 40px", position: "sticky", left: 0, zIndex: 2 } }),
|
|
581
|
-
k.getVisibleLeafColumns().map((e, t) => {
|
|
582
|
-
const n = e.getIsPinned(), r = fe[e.id], o = e.columnDef;
|
|
583
|
-
let c = null;
|
|
584
|
-
t === 0 && r === void 0 ? c = /* @__PURE__ */ l("span", { children: "Total" }) : r !== void 0 && (typeof r == "object" && r !== null ? c = /* @__PURE__ */ l("span", { children: r }) : o.prefix || o.suffix || o.decimalPlaces !== void 0 ? c = /* @__PURE__ */ l("span", { children: De(r, o) }) : c = /* @__PURE__ */ l("span", { children: r }));
|
|
585
|
-
const s = o.align === "right" ? "right" : o.align === "center" ? "center" : "left";
|
|
586
|
-
return /* @__PURE__ */ l(
|
|
587
|
-
"td",
|
|
788
|
+
fe && /* @__PURE__ */ s(
|
|
789
|
+
"tfoot",
|
|
588
790
|
{
|
|
589
|
-
className: "ckds-dragable-
|
|
791
|
+
className: "ckds-dragable-tfoot",
|
|
590
792
|
style: {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
793
|
+
display: "block",
|
|
794
|
+
position: "sticky",
|
|
795
|
+
bottom: 0,
|
|
796
|
+
zIndex: 10,
|
|
797
|
+
backgroundColor: "var(--ckds-cell-bg-default, #ffffff)"
|
|
596
798
|
},
|
|
597
|
-
children: /* @__PURE__ */
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
799
|
+
children: /* @__PURE__ */ b(
|
|
800
|
+
"tr",
|
|
801
|
+
{
|
|
802
|
+
className: "ckds-dragable-tr",
|
|
803
|
+
style: { display: "flex", width: "100%" },
|
|
804
|
+
children: [
|
|
805
|
+
H && /* @__PURE__ */ s(
|
|
806
|
+
"td",
|
|
807
|
+
{
|
|
808
|
+
className: "ckds-dragable-td ckds-dragable-total-td",
|
|
809
|
+
style: {
|
|
810
|
+
display: "flex",
|
|
811
|
+
alignItems: "center",
|
|
812
|
+
width: 40,
|
|
813
|
+
minWidth: 40,
|
|
814
|
+
maxWidth: 40,
|
|
815
|
+
flex: "0 0 40px",
|
|
816
|
+
position: "sticky",
|
|
817
|
+
left: 0,
|
|
818
|
+
zIndex: 2
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
),
|
|
822
|
+
k.getVisibleLeafColumns().map((e, t) => {
|
|
823
|
+
const n = e.getIsPinned(), r = fe[e.id], o = e.columnDef;
|
|
824
|
+
let c = null;
|
|
825
|
+
t === 0 && r === void 0 ? c = /* @__PURE__ */ s("span", { children: "Total" }) : r !== void 0 && (typeof r == "object" && r !== null ? c = /* @__PURE__ */ s("span", { children: r }) : o.prefix || o.suffix || o.decimalPlaces !== void 0 ? c = /* @__PURE__ */ s("span", { children: De(
|
|
826
|
+
r,
|
|
827
|
+
o
|
|
828
|
+
) }) : c = /* @__PURE__ */ s("span", { children: r }));
|
|
829
|
+
const i = o.align === "right" ? "right" : o.align === "center" ? "center" : "left";
|
|
830
|
+
return /* @__PURE__ */ s(
|
|
831
|
+
"td",
|
|
832
|
+
{
|
|
833
|
+
className: "ckds-dragable-td ckds-dragable-total-td",
|
|
834
|
+
style: {
|
|
835
|
+
...me(
|
|
836
|
+
e,
|
|
837
|
+
k,
|
|
838
|
+
q,
|
|
839
|
+
h
|
|
840
|
+
),
|
|
841
|
+
display: "flex",
|
|
842
|
+
alignItems: "center",
|
|
843
|
+
...Re(
|
|
844
|
+
e,
|
|
845
|
+
W,
|
|
846
|
+
h
|
|
847
|
+
),
|
|
848
|
+
zIndex: n ? 2 : void 0
|
|
849
|
+
},
|
|
850
|
+
children: /* @__PURE__ */ s(
|
|
851
|
+
"div",
|
|
852
|
+
{
|
|
853
|
+
style: {
|
|
854
|
+
width: "100%",
|
|
855
|
+
textAlign: i,
|
|
856
|
+
overflow: "hidden",
|
|
857
|
+
textOverflow: "ellipsis",
|
|
858
|
+
whiteSpace: "nowrap"
|
|
859
|
+
},
|
|
860
|
+
children: c
|
|
861
|
+
}
|
|
862
|
+
)
|
|
863
|
+
},
|
|
864
|
+
e.id
|
|
865
|
+
);
|
|
866
|
+
})
|
|
867
|
+
]
|
|
868
|
+
}
|
|
869
|
+
)
|
|
870
|
+
}
|
|
871
|
+
)
|
|
872
|
+
]
|
|
873
|
+
}
|
|
874
|
+
) : /* @__PURE__ */ s(
|
|
875
|
+
gt,
|
|
876
|
+
{
|
|
877
|
+
icon: He ?? /* @__PURE__ */ s(zt, {}),
|
|
878
|
+
message: {
|
|
879
|
+
heading: D?.heading ?? "No data to display",
|
|
880
|
+
content: D?.content ?? "There's no activity recorded for this period or filter selection."
|
|
881
|
+
},
|
|
882
|
+
classNames: { wrapperClass: "ckds-table-empty-state-wrapper" }
|
|
883
|
+
}
|
|
884
|
+
)
|
|
614
885
|
}
|
|
615
886
|
)
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
887
|
+
]
|
|
888
|
+
}
|
|
889
|
+
),
|
|
890
|
+
P.open && !Y && !x && /* @__PURE__ */ s(
|
|
620
891
|
"div",
|
|
621
892
|
{
|
|
622
893
|
className: "ckds-table-filter-modal-wr",
|
|
623
|
-
onClick: () =>
|
|
894
|
+
onClick: () => N({ ...P, open: !1 }),
|
|
624
895
|
role: "dialog",
|
|
625
896
|
"aria-modal": "true",
|
|
626
897
|
style: {
|
|
@@ -632,7 +903,7 @@ function tn({
|
|
|
632
903
|
justifyContent: "center",
|
|
633
904
|
backgroundColor: "rgba(0,0,0,0.3)"
|
|
634
905
|
},
|
|
635
|
-
children: /* @__PURE__ */
|
|
906
|
+
children: /* @__PURE__ */ s(
|
|
636
907
|
"div",
|
|
637
908
|
{
|
|
638
909
|
className: "ckds-table-modal-box",
|
|
@@ -645,6 +916,6 @@ function tn({
|
|
|
645
916
|
] });
|
|
646
917
|
}
|
|
647
918
|
export {
|
|
648
|
-
|
|
649
|
-
|
|
919
|
+
ln as CustomTable,
|
|
920
|
+
ln as default
|
|
650
921
|
};
|