@konstructio/ui 0.1.2-alpha.112 → 0.1.2-alpha.113
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/{AdditionalOptions-D3SZ2WFJ.js → AdditionalOptions-ClcR_Kf7.js} +1 -1
- package/dist/{AlertDialogTrigger-Cdw3C2Tv.js → AlertDialogTrigger-C9xoCZrZ.js} +33 -33
- package/dist/Checkbox-DRdyrKjk.js +252 -0
- package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
- package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
- package/dist/Counter-DMkXIsOO.js +229 -0
- package/dist/DropdownButton-JilCRLJY.js +92 -0
- package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
- package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
- package/dist/Modal-CysTe3zL.js +83 -0
- package/dist/Spinner-CTonkSzG.js +47 -0
- package/dist/Switch-5cdUxbhX.js +215 -0
- package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
- package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
- package/dist/components/Alert/Alert.js +45 -41
- package/dist/components/AlertDialog/AlertDialog.js +42 -42
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Avatar/Avatar.js +37 -0
- package/dist/components/Avatar/Avatar.variants.js +25 -0
- package/dist/components/Avatar/hooks/index.js +5 -0
- package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
- package/dist/components/BadgeGroup/hooks/index.js +4 -0
- package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
- package/dist/components/Breadcrumb/components/index.js +6 -4
- package/dist/components/Button/Button.js +25 -19
- package/dist/components/Button/Button.variants.js +4 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
- package/dist/components/Collapse/Collapse.js +63 -0
- package/dist/components/Command/Command.js +5 -5
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
- package/dist/components/CopyButton/CopyButton.js +29 -29
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/Counter/Counter.variants.js +73 -16
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
- package/dist/components/Datepicker/DatePicker.js +14 -49
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
- package/dist/components/Drawer/Drawer.js +18 -18
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
- package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
- package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/hooks/index.js +3 -1
- package/dist/components/Filter/hooks/useLocale.js +16 -0
- package/dist/components/Filter/utils/index.js +6 -2
- package/dist/components/LineChart/LineChart.js +18 -125
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +22 -3
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +103 -0
- package/dist/components/PasswordRules/PasswordRules.js +51 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +4 -4
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PieChart/PieChart.js +10 -53
- package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
- package/dist/components/ProgressBar/ProgressBar.js +10 -10
- package/dist/components/RadioCard/RadioCard.js +36 -18
- package/dist/components/RadioCard/RadioCard.variants.js +9 -3
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +10 -10
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +15 -15
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +18 -0
- package/dist/components/Skeleton/Skeleton.variants.js +25 -0
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +38 -29
- package/dist/components/Stepper/Stepper.variants.js +55 -19
- package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +52 -24
- package/dist/components/Tabs/Tabs.variants.js +15 -6
- package/dist/components/Tabs/components/Content.js +6 -6
- package/dist/components/Tabs/components/List.js +10 -10
- package/dist/components/Tabs/components/Trigger.js +11 -10
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagsInput/TagsInput.js +159 -0
- package/dist/components/Toast/Toast.js +68 -2
- package/dist/components/Toast/components/ToastCard/ToastCard.js +32 -32
- package/dist/components/Tooltip/Tooltip.js +32 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
- package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
- package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
- package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
- package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
- package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
- package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
- package/dist/components/VirtualizedTable/components/index.js +18 -12
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/utils/index.js +4 -4
- package/dist/components/index.js +180 -154
- package/dist/components-B_SWqhCL.js +147 -0
- package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
- package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
- package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
- package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
- package/dist/dist-BCoDIdCt.js +429 -0
- package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
- package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
- package/dist/dist-Bh7M0KDN.js +367 -0
- package/dist/dist-BqDJX7m1.js +209 -0
- package/dist/dist-C0OhTLFV.js +31 -0
- package/dist/dist-C1a-68Kb.js +120 -0
- package/dist/dist-CK8FUUUn.js +125 -0
- package/dist/dist-CQSCPpFc.js +196 -0
- package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
- package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
- package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
- package/dist/dist-fPYIsxyx.js +465 -0
- package/dist/dist-rsFD9q_X.js +484 -0
- package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
- package/dist/dist-vDSmnSS_.js +41 -0
- package/dist/dist-vUCyiTQy.js +365 -0
- package/dist/es2015-ChhQTsb4.js +74 -0
- package/dist/index.js +194 -168
- package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
- package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
- package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
- package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
- package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
- package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
- package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
- package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
- package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
- package/dist/lib/components/Button/Button.variants.d.ts +1 -1
- package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
- package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
- package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
- package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
- package/dist/lib/components/Counter/Counter.d.ts +7 -4
- package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
- package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
- package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
- package/dist/lib/components/Filter/utils/index.d.ts +1 -0
- package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
- package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
- package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
- package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
- package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
- package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
- package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
- package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
- package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
- package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
- package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
- package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
- package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
- package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
- package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
- package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
- package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
- package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
- package/dist/lib/components/index.d.ts +10 -0
- package/dist/package.json +31 -30
- package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
- package/dist/styles.css +1 -1
- package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
- package/package.json +31 -30
- package/dist/AnimatePresence-BsUYG9bm.js +0 -186
- package/dist/Checkbox-CrNxsm3G.js +0 -247
- package/dist/Counter-DN50BVq6.js +0 -194
- package/dist/DropdownButton-Blhkj-Oi.js +0 -490
- package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
- package/dist/Modal-Bk1I_NCC.js +0 -81
- package/dist/Spinner-smR3esbL.js +0 -47
- package/dist/Switch-CPE8v6Zh.js +0 -199
- package/dist/Toast-CRPLONv9.js +0 -77
- package/dist/components-z-LYRWfq.js +0 -124
- package/dist/dist-CNui_Egg.js +0 -451
- package/dist/dist-CR3FMRzF.js +0 -118
- package/dist/dist-D5Q2IYuC.js +0 -358
- package/dist/dist-D70ZJkHf.js +0 -29
- package/dist/dist-DZ_SU77k.js +0 -437
- package/dist/dist-LRkZdylX.js +0 -174
- package/dist/dist-f8EwfITY.js +0 -194
- package/dist/dist-pWlMx4Fi.js +0 -36
- package/dist/dist-uerXivvM.js +0 -178
- package/dist/dist-xCbHbMLA.js +0 -116
- package/dist/es2015-Hhb87ipX.js +0 -231
- package/dist/react-C685EsYG.js +0 -4730
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as Tt } from "./dist-C_jtUTU9.js";
|
|
2
2
|
import { t as J } from "./utils-DnIJruo0.js";
|
|
3
3
|
import { t as Bt } from "./chevron-right-D4OkgIIT.js";
|
|
4
4
|
import "./components/VirtualizedTable/constants/pagination.js";
|
|
5
5
|
import { TableContext as qt } from "./components/VirtualizedTable/contexts/table.context.js";
|
|
6
|
-
import { getTableId as Je } from "./components/VirtualizedTable/utils/get-table-id.js";
|
|
7
6
|
import { t as fe } from "./events.types-BG1Uh8i6.js";
|
|
8
|
-
import
|
|
7
|
+
import { getTableId as Pe } from "./components/VirtualizedTable/utils/get-table-id.js";
|
|
8
|
+
import * as De from "react";
|
|
9
9
|
import { useCallback as z, useEffect as k, useMemo as U, useRef as b, useState as I } from "react";
|
|
10
10
|
import { jsx as ce } from "react/jsx-runtime";
|
|
11
11
|
import { useQuery as Nt } from "@tanstack/react-query";
|
|
@@ -358,12 +358,12 @@ var ut = (e, o, t) => e.getValue(o) === t;
|
|
|
358
358
|
ut.autoRemove = (e) => A(e);
|
|
359
359
|
var at = (e, o, t) => e.getValue(o) == t;
|
|
360
360
|
at.autoRemove = (e) => A(e);
|
|
361
|
-
var
|
|
361
|
+
var Be = (e, o, t) => {
|
|
362
362
|
let [n, r] = t;
|
|
363
363
|
const i = e.getValue(o);
|
|
364
364
|
return i >= n && i <= r;
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
Be.resolveFilterValue = (e) => {
|
|
367
367
|
let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
|
|
368
368
|
if (i > l) {
|
|
369
369
|
const s = i;
|
|
@@ -371,7 +371,7 @@ Te.resolveFilterValue = (e) => {
|
|
|
371
371
|
}
|
|
372
372
|
return [i, l];
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
Be.autoRemove = (e) => A(e) || A(e[0]) && A(e[1]);
|
|
375
375
|
var H = {
|
|
376
376
|
includesString: nt,
|
|
377
377
|
includesStringSensitive: ot,
|
|
@@ -381,7 +381,7 @@ var H = {
|
|
|
381
381
|
arrIncludesSome: st,
|
|
382
382
|
equals: ut,
|
|
383
383
|
weakEquals: at,
|
|
384
|
-
inNumberRange:
|
|
384
|
+
inNumberRange: Be
|
|
385
385
|
};
|
|
386
386
|
function A(e) {
|
|
387
387
|
return e == null || e === "";
|
|
@@ -488,7 +488,7 @@ var Zt = (e, o, t) => t.reduce((n, r) => {
|
|
|
488
488
|
if (t.length === 1) return t[0];
|
|
489
489
|
const n = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
|
|
490
490
|
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
491
|
-
}, on = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), rn = (e, o) => new Set(o.map((t) => t.getValue(e))).size, ln = (e, o) => o.length,
|
|
491
|
+
}, on = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), rn = (e, o) => new Set(o.map((t) => t.getValue(e))).size, ln = (e, o) => o.length, Ie = {
|
|
492
492
|
sum: Zt,
|
|
493
493
|
min: Jt,
|
|
494
494
|
max: bt,
|
|
@@ -533,12 +533,12 @@ var Zt = (e, o, t) => t.reduce((n, r) => {
|
|
|
533
533
|
};
|
|
534
534
|
}, e.getAutoAggregationFn = () => {
|
|
535
535
|
const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
|
|
536
|
-
if (typeof n == "number") return
|
|
537
|
-
if (Object.prototype.toString.call(n) === "[object Date]") return
|
|
536
|
+
if (typeof n == "number") return Ie.sum;
|
|
537
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return Ie.extent;
|
|
538
538
|
}, e.getAggregationFn = () => {
|
|
539
539
|
var t, n;
|
|
540
540
|
if (!e) throw new Error();
|
|
541
|
-
return Ce(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t :
|
|
541
|
+
return Ce(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : Ie[e.columnDef.aggregationFn];
|
|
542
542
|
};
|
|
543
543
|
},
|
|
544
544
|
createTable: (e) => {
|
|
@@ -604,12 +604,12 @@ var an = {
|
|
|
604
604
|
return un(i, t, n);
|
|
605
605
|
}, C(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
606
606
|
}
|
|
607
|
-
},
|
|
607
|
+
}, Ve = () => ({
|
|
608
608
|
left: [],
|
|
609
609
|
right: []
|
|
610
610
|
}), gn = {
|
|
611
611
|
getInitialState: (e) => ({
|
|
612
|
-
columnPinning:
|
|
612
|
+
columnPinning: Ve(),
|
|
613
613
|
...e
|
|
614
614
|
}),
|
|
615
615
|
getDefaultOptions: (e) => ({ onColumnPinningChange: x("columnPinning", e) }),
|
|
@@ -668,7 +668,7 @@ var an = {
|
|
|
668
668
|
createTable: (e) => {
|
|
669
669
|
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
670
670
|
var t, n;
|
|
671
|
-
return e.setColumnPinning(o ?
|
|
671
|
+
return e.setColumnPinning(o ? Ve() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : Ve());
|
|
672
672
|
}, e.getIsSomeColumnsPinned = (o) => {
|
|
673
673
|
var t;
|
|
674
674
|
const n = e.getState().columnPinning;
|
|
@@ -694,7 +694,7 @@ var Se = {
|
|
|
694
694
|
size: 150,
|
|
695
695
|
minSize: 20,
|
|
696
696
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
697
|
-
},
|
|
697
|
+
}, xe = () => ({
|
|
698
698
|
startOffset: null,
|
|
699
699
|
startSize: null,
|
|
700
700
|
deltaOffset: null,
|
|
@@ -705,7 +705,7 @@ var Se = {
|
|
|
705
705
|
getDefaultColumnDef: () => Se,
|
|
706
706
|
getInitialState: (e) => ({
|
|
707
707
|
columnSizing: {},
|
|
708
|
-
columnSizingInfo:
|
|
708
|
+
columnSizingInfo: xe(),
|
|
709
709
|
...e
|
|
710
710
|
}),
|
|
711
711
|
getDefaultOptions: (e) => ({
|
|
@@ -757,9 +757,9 @@ var Se = {
|
|
|
757
757
|
}, e.getResizeHandler = (t) => {
|
|
758
758
|
const n = o.getColumn(e.column.id), r = n?.getCanResize();
|
|
759
759
|
return (i) => {
|
|
760
|
-
if (!n || !r || (i.persist == null || i.persist(),
|
|
760
|
+
if (!n || !r || (i.persist == null || i.persist(), ye(i) && i.touches && i.touches.length > 1))
|
|
761
761
|
return;
|
|
762
|
-
const l = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], u =
|
|
762
|
+
const l = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], u = ye(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, d = (h, w) => {
|
|
763
763
|
typeof w == "number" && (o.setColumnSizingInfo((_) => {
|
|
764
764
|
var L, P;
|
|
765
765
|
const V = o.options.columnResizeDirection === "rtl" ? -1 : 1, K = (w - ((L = _?.startOffset) != null ? L : 0)) * V, X = Math.max(K / ((P = _?.startSize) != null ? P : 0), -0.999999);
|
|
@@ -797,7 +797,7 @@ var Se = {
|
|
|
797
797
|
c?.removeEventListener("touchmove", v.moveHandler), c?.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), f((w = h.touches[0]) == null ? void 0 : w.clientX);
|
|
798
798
|
}
|
|
799
799
|
}, $ = cn() ? { passive: !1 } : !1;
|
|
800
|
-
|
|
800
|
+
ye(i) ? (c?.addEventListener("touchmove", v.moveHandler, $), c?.addEventListener("touchend", v.upHandler, $)) : (c?.addEventListener("mousemove", p.moveHandler, $), c?.addEventListener("mouseup", p.upHandler, $)), o.setColumnSizingInfo((h) => ({
|
|
801
801
|
...h,
|
|
802
802
|
startOffset: u,
|
|
803
803
|
startSize: l,
|
|
@@ -815,7 +815,7 @@ var Se = {
|
|
|
815
815
|
e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
816
816
|
}, e.resetHeaderSizeInfo = (o) => {
|
|
817
817
|
var t;
|
|
818
|
-
e.setColumnSizingInfo(o ?
|
|
818
|
+
e.setColumnSizingInfo(o ? xe() : (t = e.initialState.columnSizingInfo) != null ? t : xe());
|
|
819
819
|
}, e.getTotalSize = () => {
|
|
820
820
|
var o, t;
|
|
821
821
|
return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
|
@@ -845,7 +845,7 @@ function cn() {
|
|
|
845
845
|
}
|
|
846
846
|
return me = e, me;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function ye(e) {
|
|
849
849
|
return e.type === "touchstart";
|
|
850
850
|
}
|
|
851
851
|
var pn = {
|
|
@@ -1021,14 +1021,14 @@ var Sn = { createTable: (e) => {
|
|
|
1021
1021
|
};
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
|
-
},
|
|
1025
|
-
pageIndex:
|
|
1026
|
-
pageSize:
|
|
1024
|
+
}, He = 0, Ge = 10, Ee = () => ({
|
|
1025
|
+
pageIndex: He,
|
|
1026
|
+
pageSize: Ge
|
|
1027
1027
|
}), vn = {
|
|
1028
1028
|
getInitialState: (e) => ({
|
|
1029
1029
|
...e,
|
|
1030
1030
|
pagination: {
|
|
1031
|
-
...
|
|
1031
|
+
...Ee(),
|
|
1032
1032
|
...e?.pagination
|
|
1033
1033
|
}
|
|
1034
1034
|
}),
|
|
@@ -1054,7 +1054,7 @@ var Sn = { createTable: (e) => {
|
|
|
1054
1054
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
1055
1055
|
}, e.resetPagination = (n) => {
|
|
1056
1056
|
var r;
|
|
1057
|
-
e.setPagination(n ?
|
|
1057
|
+
e.setPagination(n ? Ee() : (r = e.initialState.pagination) != null ? r : Ee());
|
|
1058
1058
|
}, e.setPageIndex = (n) => {
|
|
1059
1059
|
e.setPagination((r) => {
|
|
1060
1060
|
let i = T(n, r.pageIndex);
|
|
@@ -1066,10 +1066,10 @@ var Sn = { createTable: (e) => {
|
|
|
1066
1066
|
});
|
|
1067
1067
|
}, e.resetPageIndex = (n) => {
|
|
1068
1068
|
var r, i;
|
|
1069
|
-
e.setPageIndex(n ?
|
|
1069
|
+
e.setPageIndex(n ? He : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : He);
|
|
1070
1070
|
}, e.resetPageSize = (n) => {
|
|
1071
1071
|
var r, i;
|
|
1072
|
-
e.setPageSize(n ?
|
|
1072
|
+
e.setPageSize(n ? Ge : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : Ge);
|
|
1073
1073
|
}, e.setPageSize = (n) => {
|
|
1074
1074
|
e.setPagination((r) => {
|
|
1075
1075
|
const i = Math.max(1, T(n, r.pageSize)), l = r.pageSize * r.pageIndex, s = Math.floor(l / i);
|
|
@@ -1100,12 +1100,12 @@ var Sn = { createTable: (e) => {
|
|
|
1100
1100
|
return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
|
-
},
|
|
1103
|
+
}, Ae = () => ({
|
|
1104
1104
|
top: [],
|
|
1105
1105
|
bottom: []
|
|
1106
1106
|
}), Rn = {
|
|
1107
1107
|
getInitialState: (e) => ({
|
|
1108
|
-
rowPinning:
|
|
1108
|
+
rowPinning: Ae(),
|
|
1109
1109
|
...e
|
|
1110
1110
|
}),
|
|
1111
1111
|
getDefaultOptions: (e) => ({ onRowPinningChange: x("rowPinning", e) }),
|
|
@@ -1164,7 +1164,7 @@ var Sn = { createTable: (e) => {
|
|
|
1164
1164
|
createTable: (e) => {
|
|
1165
1165
|
e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
|
|
1166
1166
|
var t, n;
|
|
1167
|
-
return e.setRowPinning(o ?
|
|
1167
|
+
return e.setRowPinning(o ? Ae() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : Ae());
|
|
1168
1168
|
}, e.getIsSomeRowsPinned = (o) => {
|
|
1169
1169
|
var t;
|
|
1170
1170
|
const n = e.getState().rowPinning;
|
|
@@ -1219,17 +1219,17 @@ var Sn = { createTable: (e) => {
|
|
|
1219
1219
|
}, e.toggleAllPageRowsSelected = (o) => e.setRowSelection((t) => {
|
|
1220
1220
|
const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), r = { ...t };
|
|
1221
1221
|
return e.getRowModel().rows.forEach((i) => {
|
|
1222
|
-
|
|
1222
|
+
Oe(r, i.id, n, !0, e);
|
|
1223
1223
|
}), r;
|
|
1224
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ?
|
|
1224
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? Le(e, t) : {
|
|
1225
1225
|
rows: [],
|
|
1226
1226
|
flatRows: [],
|
|
1227
1227
|
rowsById: {}
|
|
1228
|
-
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ?
|
|
1228
|
+
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? Le(e, t) : {
|
|
1229
1229
|
rows: [],
|
|
1230
1230
|
flatRows: [],
|
|
1231
1231
|
rowsById: {}
|
|
1232
|
-
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ?
|
|
1232
|
+
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? Le(e, t) : {
|
|
1233
1233
|
rows: [],
|
|
1234
1234
|
flatRows: [],
|
|
1235
1235
|
rowsById: {}
|
|
@@ -1261,17 +1261,17 @@ var Sn = { createTable: (e) => {
|
|
|
1261
1261
|
var l;
|
|
1262
1262
|
if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t) return i;
|
|
1263
1263
|
const s = { ...i };
|
|
1264
|
-
return
|
|
1264
|
+
return Oe(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
|
|
1265
1265
|
});
|
|
1266
1266
|
}, e.getIsSelected = () => {
|
|
1267
1267
|
const { rowSelection: t } = o.getState();
|
|
1268
|
-
return
|
|
1268
|
+
return qe(e, t);
|
|
1269
1269
|
}, e.getIsSomeSelected = () => {
|
|
1270
1270
|
const { rowSelection: t } = o.getState();
|
|
1271
|
-
return
|
|
1271
|
+
return ze(e, t) === "some";
|
|
1272
1272
|
}, e.getIsAllSubRowsSelected = () => {
|
|
1273
1273
|
const { rowSelection: t } = o.getState();
|
|
1274
|
-
return
|
|
1274
|
+
return ze(e, t) === "all";
|
|
1275
1275
|
}, e.getCanSelect = () => {
|
|
1276
1276
|
var t;
|
|
1277
1277
|
return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
|
|
@@ -1289,16 +1289,16 @@ var Sn = { createTable: (e) => {
|
|
|
1289
1289
|
};
|
|
1290
1290
|
};
|
|
1291
1291
|
}
|
|
1292
|
-
},
|
|
1292
|
+
}, Oe = (e, o, t, n, r) => {
|
|
1293
1293
|
var i;
|
|
1294
1294
|
const l = r.getRow(o, !0);
|
|
1295
|
-
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((s) =>
|
|
1295
|
+
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => Oe(e, s.id, t, n, r));
|
|
1296
1296
|
};
|
|
1297
|
-
function
|
|
1297
|
+
function Le(e, o) {
|
|
1298
1298
|
const t = e.getState().rowSelection, n = [], r = {}, i = function(l, s) {
|
|
1299
1299
|
return l.map((u) => {
|
|
1300
1300
|
var a;
|
|
1301
|
-
const d =
|
|
1301
|
+
const d = qe(u, t);
|
|
1302
1302
|
if (d && (n.push(u), r[u.id] = u), (a = u.subRows) != null && a.length && (u = {
|
|
1303
1303
|
...u,
|
|
1304
1304
|
subRows: i(u.subRows)
|
|
@@ -1311,33 +1311,33 @@ function Ae(e, o) {
|
|
|
1311
1311
|
rowsById: r
|
|
1312
1312
|
};
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function qe(e, o) {
|
|
1315
1315
|
var t;
|
|
1316
1316
|
return (t = o[e.id]) != null ? t : !1;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function ze(e, o, t) {
|
|
1319
1319
|
var n;
|
|
1320
1320
|
if (!((n = e.subRows) != null && n.length)) return !1;
|
|
1321
1321
|
let r = !0, i = !1;
|
|
1322
1322
|
return e.subRows.forEach((l) => {
|
|
1323
|
-
if (!(i && !r) && (l.getCanSelect() && (
|
|
1324
|
-
const s =
|
|
1323
|
+
if (!(i && !r) && (l.getCanSelect() && (qe(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
|
|
1324
|
+
const s = ze(l, o);
|
|
1325
1325
|
s === "all" ? i = !0 : (s === "some" && (i = !0), r = !1);
|
|
1326
1326
|
}
|
|
1327
1327
|
}), r ? "all" : i ? "some" : !1;
|
|
1328
1328
|
}
|
|
1329
|
-
var
|
|
1329
|
+
var Te = /([0-9]+)/gm, wn = (e, o, t) => gt(B(e.getValue(t)).toLowerCase(), B(o.getValue(t)).toLowerCase()), _n = (e, o, t) => gt(B(e.getValue(t)), B(o.getValue(t))), Fn = (e, o, t) => Ne(B(e.getValue(t)).toLowerCase(), B(o.getValue(t)).toLowerCase()), $n = (e, o, t) => Ne(B(e.getValue(t)), B(o.getValue(t))), Mn = (e, o, t) => {
|
|
1330
1330
|
const n = e.getValue(t), r = o.getValue(t);
|
|
1331
1331
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1332
|
-
}, Pn = (e, o, t) =>
|
|
1333
|
-
function
|
|
1332
|
+
}, Pn = (e, o, t) => Ne(e.getValue(t), o.getValue(t));
|
|
1333
|
+
function Ne(e, o) {
|
|
1334
1334
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1335
1335
|
}
|
|
1336
1336
|
function B(e) {
|
|
1337
1337
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1338
1338
|
}
|
|
1339
1339
|
function gt(e, o) {
|
|
1340
|
-
const t = e.split(
|
|
1340
|
+
const t = e.split(Te).filter(Boolean), n = o.split(Te).filter(Boolean);
|
|
1341
1341
|
for (; t.length && n.length; ) {
|
|
1342
1342
|
const r = t.shift(), i = n.shift(), l = parseInt(r, 10), s = parseInt(i, 10), u = [l, s].sort();
|
|
1343
1343
|
if (isNaN(u[0])) {
|
|
@@ -1378,7 +1378,7 @@ var ee = {
|
|
|
1378
1378
|
for (const r of t) {
|
|
1379
1379
|
const i = r?.getValue(e.id);
|
|
1380
1380
|
if (Object.prototype.toString.call(i) === "[object Date]") return ee.datetime;
|
|
1381
|
-
if (typeof i == "string" && (n = !0, i.split(
|
|
1381
|
+
if (typeof i == "string" && (n = !0, i.split(Te).length > 1))
|
|
1382
1382
|
return ee.alphanumeric;
|
|
1383
1383
|
}
|
|
1384
1384
|
return n ? ee.text : ee.basic;
|
|
@@ -1623,7 +1623,7 @@ function En() {
|
|
|
1623
1623
|
}, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
1624
1624
|
}
|
|
1625
1625
|
function Qn(e, o) {
|
|
1626
|
-
return e ? An(e) ? /* @__PURE__ */
|
|
1626
|
+
return e ? An(e) ? /* @__PURE__ */ De.createElement(e, o) : e : null;
|
|
1627
1627
|
}
|
|
1628
1628
|
function An(e) {
|
|
1629
1629
|
return Ln(e) || typeof e == "function" || Dn(e);
|
|
@@ -1644,7 +1644,7 @@ function Hn(e) {
|
|
|
1644
1644
|
},
|
|
1645
1645
|
renderFallbackValue: null,
|
|
1646
1646
|
...e
|
|
1647
|
-
}, [t] =
|
|
1647
|
+
}, [t] = De.useState(() => ({ current: xn(o) })), [n, r] = De.useState(() => t.current.initialState);
|
|
1648
1648
|
return t.current.setOptions((i) => ({
|
|
1649
1649
|
...i,
|
|
1650
1650
|
...e,
|
|
@@ -1668,7 +1668,7 @@ var tt = [
|
|
|
1668
1668
|
const o = e();
|
|
1669
1669
|
return o === void 0 || o === "all" ? o : [.../* @__PURE__ */ new Set([...o, ...tt])];
|
|
1670
1670
|
} : [.../* @__PURE__ */ new Set([...e, ...tt])], Yn = ({ children: e, classNameExpandedCell: o, classNameExpandedContent: t, classNameExpandedRow: n, classNameExpandedHeader: r, classNameActiveExpandedRow: i, classNameHoverRow: l, columns: s = [], data: u = [], defaultExpanded: a, enableExpandedRow: d, enableHoverRow: g, expandedState: f, headerContent: c, id: p, isPaginationEnabled: v, queryOptions: $ = {}, totalItems: h, getRowId: w, fetchData: _, onExpandedChange: L, renderExpandedRow: P, keepExpandColumnVisible: V }) => {
|
|
1671
|
-
const [K, X] = I([]), [ve, Re] = I(!!_), [j, W] = I(0), [ne, dt] = I(), [oe, ft] = I(10), [ct, pt] = I(h),
|
|
1671
|
+
const [K, X] = I([]), [ve, Re] = I(!!_), [j, W] = I(0), [ne, dt] = I(), [oe, ft] = I(10), [ct, pt] = I(h), je = _ ? ct : h, St = Math.ceil(je / oe), [re, mt] = I({}), [ie, Ct] = I({}), [le, vt] = I({}), [se, Rt] = I({}), ht = () => {
|
|
1672
1672
|
const S = typeof p == "string" || typeof p == "number" ? [p] : [...p];
|
|
1673
1673
|
return v && S.push(j, oe), ne && S.push(ne), Object.entries(re).forEach(([R, F]) => {
|
|
1674
1674
|
S.push(`${R}:${F.join(",")}`);
|
|
@@ -1679,20 +1679,20 @@ var tt = [
|
|
|
1679
1679
|
}), Object.entries(se).forEach(([R, F]) => {
|
|
1680
1680
|
F && S.push(`${R}:${F}`);
|
|
1681
1681
|
}), S;
|
|
1682
|
-
}, { notifyOnChangeProps: wt, ...
|
|
1682
|
+
}, { notifyOnChangeProps: wt, ...ke } = $, Ue = b({}), Ke = b(!1), G = Nt({
|
|
1683
1683
|
refetchOnMount: !1,
|
|
1684
1684
|
refetchOnWindowFocus: !1,
|
|
1685
|
-
...
|
|
1685
|
+
...ke,
|
|
1686
1686
|
notifyOnChangeProps: On(wt),
|
|
1687
1687
|
queryKey: ht(),
|
|
1688
1688
|
enabled: (S) => {
|
|
1689
1689
|
if (!_) return !1;
|
|
1690
|
-
const { enabled: R } =
|
|
1690
|
+
const { enabled: R } = ke;
|
|
1691
1691
|
return typeof R == "function" ? !!R(S) : R ?? !0;
|
|
1692
1692
|
},
|
|
1693
1693
|
initialData: () => {
|
|
1694
|
-
if (!(
|
|
1695
|
-
return
|
|
1694
|
+
if (!(Ke.current || u.length === 0))
|
|
1695
|
+
return Ke.current = !0, u;
|
|
1696
1696
|
},
|
|
1697
1697
|
queryFn: async ({ signal: S }) => {
|
|
1698
1698
|
const { data: R, totalItemsCount: F } = await _({
|
|
@@ -1704,15 +1704,15 @@ var tt = [
|
|
|
1704
1704
|
...Object.keys(le).length > 0 ? le : {},
|
|
1705
1705
|
...Object.keys(se).length > 0 ? se : {}
|
|
1706
1706
|
}, S);
|
|
1707
|
-
return
|
|
1707
|
+
return Ue.current = { totalItemsCount: F }, R;
|
|
1708
1708
|
}
|
|
1709
|
-
}), [_t,
|
|
1710
|
-
|
|
1711
|
-
const Q = _ ? G.data ?? Gn : u, Ft = _ ? G.isLoading : !1, $t = _ ? G.isFetching : !1, Mt = _ ? G.error : null,
|
|
1709
|
+
}), [_t, Xe] = I(!1), he = b(0), We = b(!0), Qe = b(G.refetch);
|
|
1710
|
+
Qe.current = G.refetch;
|
|
1711
|
+
const Q = _ ? G.data ?? Gn : u, Ft = _ ? G.isLoading : !1, $t = _ ? G.isFetching : !1, Mt = _ ? G.error : null, Ye = !!c;
|
|
1712
1712
|
k(() => {
|
|
1713
1713
|
if (!_ || G.dataUpdatedAt === 0) return;
|
|
1714
1714
|
Re(!1);
|
|
1715
|
-
const { totalItemsCount: S } =
|
|
1715
|
+
const { totalItemsCount: S } = Ue.current;
|
|
1716
1716
|
S && pt(S);
|
|
1717
1717
|
}, [_, G.dataUpdatedAt]);
|
|
1718
1718
|
const Pt = z((S) => {
|
|
@@ -1754,7 +1754,7 @@ var tt = [
|
|
|
1754
1754
|
]);
|
|
1755
1755
|
k(() => {
|
|
1756
1756
|
if (!d) return;
|
|
1757
|
-
const S =
|
|
1757
|
+
const S = Pe(p), R = new AbortController(), F = (Z) => {
|
|
1758
1758
|
const { detail: O } = Z, { rowId: y } = O;
|
|
1759
1759
|
O.tableId !== S || !y || Y((D) => typeof D == "boolean" ? { [y]: !0 } : {
|
|
1760
1760
|
...D,
|
|
@@ -1781,29 +1781,29 @@ var tt = [
|
|
|
1781
1781
|
p,
|
|
1782
1782
|
Y
|
|
1783
1783
|
]), k(() => () => {
|
|
1784
|
-
|
|
1784
|
+
We.current = !1;
|
|
1785
1785
|
}, []), k(() => {
|
|
1786
1786
|
if (!_) return;
|
|
1787
|
-
const S =
|
|
1787
|
+
const S = Pe(p), R = new AbortController(), F = (E) => {
|
|
1788
1788
|
const { detail: ge } = E;
|
|
1789
|
-
ge.tableId !== void 0 && ge.tableId !== S || (he.current += 1,
|
|
1790
|
-
he.current -= 1, he.current === 0 &&
|
|
1789
|
+
ge.tableId !== void 0 && ge.tableId !== S || (he.current += 1, Xe(!0), Qe.current().finally(() => {
|
|
1790
|
+
he.current -= 1, he.current === 0 && We.current && Xe(!1);
|
|
1791
1791
|
}));
|
|
1792
1792
|
};
|
|
1793
1793
|
return document.addEventListener(fe.REFRESH, F, { signal: R.signal }), () => R.abort();
|
|
1794
1794
|
}, [_, p]);
|
|
1795
|
-
const _e = U(() => Q.some((S) => !!S.meta?.expandedRow), [Q]), ue = U(() => Q.map((S, R) => w ? w(S, R) : String(R)), [Q, w]), Ht = U(() => typeof q == "boolean" ? q : ue.some((S) => !!q[S]), [q, ue]), Gt = U(() => typeof V == "boolean" ? V : typeof V == "object" ? ue.some((S) => !!V[S]) : !1, [V, ue]), Fe = _e || P && (Ht || Gt), [N,
|
|
1795
|
+
const _e = U(() => Q.some((S) => !!S.meta?.expandedRow), [Q]), ue = U(() => Q.map((S, R) => w ? w(S, R) : String(R)), [Q, w]), Ht = U(() => typeof q == "boolean" ? q : ue.some((S) => !!q[S]), [q, ue]), Gt = U(() => typeof V == "boolean" ? V : typeof V == "object" ? ue.some((S) => !!V[S]) : !1, [V, ue]), Fe = _e || P && (Ht || Gt), [N, Ze] = I(!!Fe);
|
|
1796
1796
|
k(() => {
|
|
1797
1797
|
if (Fe) {
|
|
1798
|
-
const S = requestAnimationFrame(() =>
|
|
1798
|
+
const S = requestAnimationFrame(() => Ze(!0));
|
|
1799
1799
|
return () => cancelAnimationFrame(S);
|
|
1800
|
-
} else
|
|
1800
|
+
} else Ze(!1);
|
|
1801
1801
|
}, [Fe]);
|
|
1802
|
-
const [ae,
|
|
1802
|
+
const [ae, Je] = I(!N);
|
|
1803
1803
|
k(() => {
|
|
1804
|
-
if (N)
|
|
1804
|
+
if (N) Je(!1);
|
|
1805
1805
|
else {
|
|
1806
|
-
const S = setTimeout(() =>
|
|
1806
|
+
const S = setTimeout(() => Je(!0), 300);
|
|
1807
1807
|
return () => clearTimeout(S);
|
|
1808
1808
|
}
|
|
1809
1809
|
}, [N]);
|
|
@@ -1822,13 +1822,13 @@ var tt = [
|
|
|
1822
1822
|
},
|
|
1823
1823
|
enableSorting: !1,
|
|
1824
1824
|
meta: {
|
|
1825
|
-
headerClassName: J("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", N ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0", ae && J("!border-0 !rounded-none dark:[&+th]:border-l", !
|
|
1825
|
+
headerClassName: J("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", N ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0", ae && J("!border-0 !rounded-none dark:[&+th]:border-l", !Ye && "[&+th]:rounded-tl-lg")),
|
|
1826
1826
|
className: J("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", N ? J("w-10 max-w-10 px-1 text-center", r) : "w-0 max-w-0 !p-0", ae && "!border-0 dark:[&+td]:border-l")
|
|
1827
1827
|
}
|
|
1828
1828
|
}, [
|
|
1829
1829
|
d,
|
|
1830
1830
|
_e,
|
|
1831
|
-
|
|
1831
|
+
Ye,
|
|
1832
1832
|
P,
|
|
1833
1833
|
N,
|
|
1834
1834
|
ae,
|
|
@@ -1869,12 +1869,13 @@ var tt = [
|
|
|
1869
1869
|
pageSize: oe,
|
|
1870
1870
|
sortedData: K,
|
|
1871
1871
|
table: zt,
|
|
1872
|
+
tableId: Pe(p),
|
|
1872
1873
|
tableFetching: $t,
|
|
1873
1874
|
tableLoading: Ft || _t,
|
|
1874
1875
|
tableError: Mt,
|
|
1875
1876
|
headerContent: c,
|
|
1876
1877
|
termOfSearch: ne,
|
|
1877
|
-
totalItems:
|
|
1878
|
+
totalItems: je,
|
|
1878
1879
|
totalPages: St,
|
|
1879
1880
|
handlePage: Et,
|
|
1880
1881
|
onChangeTermOfSearch: Pt,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.2-alpha.
|
|
5
|
+
"version": "0.1.2-alpha.113",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -78,20 +78,20 @@
|
|
|
78
78
|
"test:watch": "vitest dev"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@radix-ui/react-alert-dialog": "^1.1
|
|
82
|
-
"@radix-ui/react-checkbox": "^1.
|
|
83
|
-
"@radix-ui/react-dialog": "^1.1
|
|
84
|
-
"@radix-ui/react-dropdown-menu": "^2.1
|
|
85
|
-
"@radix-ui/react-popover": "^1.1
|
|
86
|
-
"@radix-ui/react-slider": "^1.
|
|
87
|
-
"@radix-ui/react-slot": "^1.
|
|
88
|
-
"@radix-ui/react-switch": "^1.
|
|
89
|
-
"@radix-ui/react-tabs": "^1.1
|
|
90
|
-
"@radix-ui/react-tooltip": "^1.
|
|
91
|
-
"@radix-ui/react-visually-hidden": "^1.2.
|
|
81
|
+
"@radix-ui/react-alert-dialog": "^1.2.1",
|
|
82
|
+
"@radix-ui/react-checkbox": "^1.4.1",
|
|
83
|
+
"@radix-ui/react-dialog": "^1.3.1",
|
|
84
|
+
"@radix-ui/react-dropdown-menu": "^2.2.1",
|
|
85
|
+
"@radix-ui/react-popover": "^1.3.1",
|
|
86
|
+
"@radix-ui/react-slider": "^1.6.1",
|
|
87
|
+
"@radix-ui/react-slot": "^1.5.0",
|
|
88
|
+
"@radix-ui/react-switch": "^1.4.1",
|
|
89
|
+
"@radix-ui/react-tabs": "^1.2.1",
|
|
90
|
+
"@radix-ui/react-tooltip": "^1.4.1",
|
|
91
|
+
"@radix-ui/react-visually-hidden": "^1.2.13",
|
|
92
92
|
"@react-input/mask": "^2.0.4",
|
|
93
93
|
"@tanstack/react-table": "^8.21.3",
|
|
94
|
-
"@tanstack/react-virtual": "^3.14.
|
|
94
|
+
"@tanstack/react-virtual": "^3.14.18",
|
|
95
95
|
"chart.js": "^4.5.1",
|
|
96
96
|
"class-variance-authority": "^0.7.1",
|
|
97
97
|
"clsx": "^2.1.1",
|
|
@@ -102,8 +102,7 @@
|
|
|
102
102
|
"google-libphonenumber": "^3.2.47",
|
|
103
103
|
"i18n-iso-countries": "^7.14.0",
|
|
104
104
|
"js-cookie": "^3.0.8",
|
|
105
|
-
"lucide-react": "^1.
|
|
106
|
-
"motion": "^14.0.0",
|
|
105
|
+
"lucide-react": "^1.56.0",
|
|
107
106
|
"react-chartjs-2": "^5.3.1",
|
|
108
107
|
"react-day-picker": "^10.0.2",
|
|
109
108
|
"react-feather": "^2.0.10",
|
|
@@ -115,6 +114,7 @@
|
|
|
115
114
|
"@tanstack/react-query": "^5.104",
|
|
116
115
|
"@types/react": "*",
|
|
117
116
|
"@types/react-dom": "*",
|
|
117
|
+
"motion": "^14",
|
|
118
118
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0",
|
|
119
119
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0",
|
|
120
120
|
"react-router-dom": "^7",
|
|
@@ -146,48 +146,49 @@
|
|
|
146
146
|
"devDependencies": {
|
|
147
147
|
"@faker-js/faker": "^10.6.0",
|
|
148
148
|
"@rollup/plugin-alias": "^6.0.0",
|
|
149
|
-
"@storybook/addon-docs": "^10.6.
|
|
150
|
-
"@storybook/addon-links": "^10.6.
|
|
151
|
-
"@storybook/react-vite": "^10.6.
|
|
149
|
+
"@storybook/addon-docs": "^10.6.2",
|
|
150
|
+
"@storybook/addon-links": "^10.6.2",
|
|
151
|
+
"@storybook/react-vite": "^10.6.2",
|
|
152
152
|
"@tailwindcss/vite": "^4.3.3",
|
|
153
|
-
"@tanstack/react-query": "^5.104.
|
|
153
|
+
"@tanstack/react-query": "^5.104.2",
|
|
154
154
|
"@testing-library/jest-dom": "^7.0.1",
|
|
155
155
|
"@testing-library/react": "^16.3.3",
|
|
156
|
-
"@testing-library/user-event": "^14.6.
|
|
156
|
+
"@testing-library/user-event": "^14.6.8",
|
|
157
157
|
"@types/google-libphonenumber": "^7.4.31",
|
|
158
158
|
"@types/jest-axe": "^3.5.9",
|
|
159
159
|
"@types/js-cookie": "^3.0.6",
|
|
160
|
-
"@types/lodash": "^4.17.
|
|
160
|
+
"@types/lodash": "^4.17.26",
|
|
161
161
|
"@types/react": "^19.3.0",
|
|
162
162
|
"@types/react-dom": "^19.3.0",
|
|
163
|
-
"@typescript-eslint/eslint-plugin": "^8.71.
|
|
164
|
-
"@typescript-eslint/parser": "^8.71.
|
|
163
|
+
"@typescript-eslint/eslint-plugin": "^8.71.2",
|
|
164
|
+
"@typescript-eslint/parser": "^8.71.2",
|
|
165
165
|
"@vitejs/plugin-react": "^6.1.2",
|
|
166
|
-
"@vitest/coverage-v8": "^5.0.
|
|
166
|
+
"@vitest/coverage-v8": "^5.0.4",
|
|
167
167
|
"autoprefixer": "^10.6.1",
|
|
168
168
|
"eslint": "^9.39.5",
|
|
169
169
|
"eslint-plugin-react": "^7.37.5",
|
|
170
170
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
171
171
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
172
|
-
"eslint-plugin-storybook": "^10.6.
|
|
172
|
+
"eslint-plugin-storybook": "^10.6.2",
|
|
173
173
|
"eslint-plugin-vitest": "^0.5.4",
|
|
174
174
|
"glob": "^13.0.6",
|
|
175
175
|
"husky": "^9.1.7",
|
|
176
176
|
"jest-axe": "^11.0.0",
|
|
177
177
|
"jsdom": "^30.1.2",
|
|
178
178
|
"lodash": "^4.18.1",
|
|
179
|
-
"
|
|
180
|
-
"
|
|
179
|
+
"motion": "^14.2.0",
|
|
180
|
+
"postcss": "^8.5.30",
|
|
181
|
+
"prettier": "^3.9.10",
|
|
181
182
|
"rimraf": "^6.1.3",
|
|
182
|
-
"storybook": "^10.6.
|
|
183
|
+
"storybook": "^10.6.2",
|
|
183
184
|
"tailwindcss": "^4.3.3",
|
|
184
185
|
"ts-node": "^10.9.2",
|
|
185
186
|
"typescript": "^6.0.3",
|
|
186
|
-
"vite": "^8.3.
|
|
187
|
+
"vite": "^8.3.4",
|
|
187
188
|
"vite-plugin-dts": "^5.1.2",
|
|
188
189
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
189
190
|
"vite-plugin-svgr": "^5.2.0",
|
|
190
|
-
"vitest": "^5.0.
|
|
191
|
+
"vitest": "^5.0.4"
|
|
191
192
|
},
|
|
192
193
|
"overrides": {
|
|
193
194
|
"storybook": "$storybook",
|