@konstructio/ui 0.1.2-alpha.105 → 0.1.2-alpha.107
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/README.md +118 -31
- package/dist/{AdditionalOptions-D0BAS2HG.js → AdditionalOptions-Crcnz0_g.js} +1 -1
- package/dist/{AlertDialogTrigger-BGo_acd5.js → AlertDialogTrigger-ouMGAlJW.js} +39 -39
- package/dist/{Breadcrumb-Cp3abB2w.js → Breadcrumb-MrF1Z6w2.js} +3 -3
- package/dist/{Checkbox-B_ngk9Dj.js → Checkbox-8KnRLpQG.js} +60 -61
- package/dist/{CommandInput-BLq69pOT.js → CommandInput-CGnqfudl.js} +4 -4
- package/dist/{Counter-BV680M5r.js → Counter-CDXdP1Af.js} +3 -3
- package/dist/{DayPicker-kweJz134.js → DayPicker-C22j0Y-u.js} +539 -518
- package/dist/{DropdownButton-DfNojmCW.js → DropdownButton-D4QlKGg7.js} +7 -7
- package/dist/{FlagSelectorList-CkTR3j6O.js → FlagSelectorList-tYZNl-tz.js} +31 -24
- package/dist/{HamburgerTrigger-DRylBL2d.js → HamburgerTrigger-B_NGSZ2r.js} +20 -20
- package/dist/{ImageUpload-DiwymQcU.js → ImageUpload-D7HKSXK8.js} +71 -66
- package/dist/Input-is8n7emP.js +195 -0
- package/dist/{Loading-DUh9PMJN.js → Loading-DO8JOWBV.js} +1 -1
- package/dist/{Modal-Dyn088X7.js → Modal-Dq9BHD_9.js} +4 -4
- package/dist/{Spinner-CUwE2bLm.js → Spinner-BJE79VTl.js} +1 -1
- package/dist/{StepIndicatorContent-CjbjVjS1.js → StepIndicatorContent-BGDvxLzV.js} +1 -1
- package/dist/Switch-C7286Bcu.js +199 -0
- package/dist/{Toast-3NEz7LLa.js → Toast-jSx3Lao8.js} +8 -7
- package/dist/Wrapper-2AUlYAHQ.js +195 -0
- package/dist/{Wrapper-CVJSuYWx.js → Wrapper-CyHxGs4E.js} +4 -4
- package/dist/{Wrapper-DP6Sxngx.js → Wrapper-a7RVCcrn.js} +248 -242
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +27 -25
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -3
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +65 -60
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +10 -9
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +8 -6
- package/dist/components/Card/Card.js +25 -22
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- 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 +2 -2
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +2 -2
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +2 -2
- package/dist/components/Command/components/CommandShortcut.js +1 -1
- package/dist/components/Command/components/DialogContent.js +3 -3
- package/dist/components/Command/components/DialogOverlay.js +2 -2
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +30 -28
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +23 -21
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +48 -41
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +48 -41
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +2 -2
- package/dist/components/Divider/Divider.js +7 -7
- package/dist/components/Drawer/Drawer.js +28 -26
- package/dist/components/Drawer/components/Body/Body.js +1 -1
- package/dist/components/Drawer/components/Footer/Footer.js +1 -1
- package/dist/components/Drawer/components/Header/Header.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +51 -36
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +40 -38
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +1 -1
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +43 -41
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +1 -1
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +2 -2
- package/dist/components/Loading/Loading.js +1 -1
- 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/components/Item/Item.js +1 -1
- 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/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -3
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +17 -16
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +11 -11
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +3 -3
- 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 +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +31 -28
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +2 -2
- package/dist/components/Select/Select.js +43 -36
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
- package/dist/components/Select/components/List/List.js +78 -67
- package/dist/components/Select/components/ListItem/ListItem.js +1 -1
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useNavigationList.js +2 -3
- package/dist/components/Select/hooks/useSelect.js +8 -8
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Label/Label.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +25 -24
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.variants.js +15 -7
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/components/Body.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Table/components/Head.js +1 -1
- package/dist/components/Table/components/Row.js +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/components/Content.js +2 -2
- package/dist/components/Tabs/components/List.js +2 -2
- package/dist/components/Tabs/components/Trigger.js +2 -2
- package/dist/components/Tag/Tag.js +8 -8
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.js +1 -1
- package/dist/components/TagSelect/components/List/List.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +11 -11
- package/dist/components/TextArea/TextArea.js +71 -26
- package/dist/components/TextArea/TextArea.variants.js +49 -13
- package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +114 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +19 -18
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Typography/Typography.js +19 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +2 -2
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +4 -4
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +3 -3
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +12 -12
- package/dist/{components-Cf345jTv.js → components-CaEW5ge4.js} +32 -32
- package/dist/{constants-CxJJRVK3.js → constants-HQIXhj2t.js} +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/{debounce-C5Ycjilj.js → debounce-BdyZeJQk.js} +2 -2
- package/dist/{dist-DFCz63oC2.js → dist-9WbMf_jT.js} +158 -159
- package/dist/{dist-tGUUcv8n.js → dist-AxOGvL82.js} +114 -115
- package/dist/{dist-DDck_2lb.js → dist-BIBFLVt1.js} +117 -116
- package/dist/{dist-BZNE2Tnx.js → dist-BbX4Nrk2.js} +1 -1
- package/dist/{dist-BaPW7qXd2.js → dist-BnCbAI-c.js} +1 -1
- package/dist/{dist-BdobXn93.js → dist-CszFjHAP.js} +2 -2
- package/dist/{dist-C3YVLapk.js → dist-DO3apbIh.js} +24 -24
- package/dist/{dist-CzKqHuqJ2.js → dist-DwxO2RoR.js} +38 -38
- package/dist/{dist-AihTpWdF.js → dist-iUAHw-3y.js} +272 -272
- package/dist/{dist-BlPTJNIm.js → dist-pxvIAJzo.js} +2 -2
- package/dist/es2015-B_07N-UL.js +796 -0
- package/dist/hooks/useMediaQuery.js +1 -1
- package/dist/index.js +14 -14
- package/dist/{isObject-BeFFiVJK.js → isObject-pLoSfdr0.js} +1 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +2 -0
- package/dist/lib/components/Card/Card.types.d.ts +1 -0
- package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +2 -1
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +1 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +1 -0
- package/dist/lib/components/Divider/Divider.d.ts +3 -2
- package/dist/lib/components/Divider/Divider.types.d.ts +4 -0
- package/dist/lib/components/Input/Input.types.d.ts +4 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +2 -0
- package/dist/lib/components/Select/Select.types.d.ts +2 -0
- package/dist/lib/components/Select/components/List/List.types.d.ts +3 -0
- package/dist/lib/components/Select/components/Wrapper.d.ts +2 -0
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +2 -0
- package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
- package/dist/lib/components/Tag/Tag.types.d.ts +1 -0
- package/dist/lib/components/TextArea/TextArea.d.ts +6 -0
- package/dist/lib/components/TextArea/TextArea.types.d.ts +13 -2
- package/dist/lib/components/TextArea/TextArea.variants.d.ts +4 -1
- package/dist/lib/components/TimePicker/TimePicker.types.d.ts +4 -0
- package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -0
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/{libphonenumber-hGupNnJu.js → libphonenumber-BMq3Thej.js} +356 -347
- package/dist/package.json +27 -27
- package/dist/{phone-number.provider-BxQCTxp8.js → phone-number.provider-Dkq_p1Gi.js} +2 -2
- package/dist/{prop-types-CfEYxTbR.js → prop-types-BCUW56rg.js} +1 -1
- package/dist/{react-CvUtBTMg.js → react-7zQ6bvbE.js} +837 -828
- package/dist/{rolldown-runtime-Ck3dxwZt.js → rolldown-runtime-Dw9YIBcH.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table.provider-B0BafHuU.js → table.provider-CWzODR1t.js} +96 -96
- package/dist/{theme.provider-Dw4O3ocC.js → theme.provider-CSL1WCYG.js} +1 -1
- package/dist/{useBreadcrumb-DYfZL_2p.js → useBreadcrumb-Ds_9BeFz.js} +7 -6
- package/dist/utils/index.js +6 -5
- package/dist/{utils-Cx-WzRZF.js → utils-B-6R7kNE.js} +8 -4
- package/dist/{utils-B-BTGYA5.js → utils-DVYdP0CJ.js} +2 -3
- package/dist/{x-BI9jmc7e.js → x-Ierxf0uI.js} +2 -2
- package/package.json +27 -27
- package/dist/Input-Cf44DzfE.js +0 -188
- package/dist/Switch-aPhL5rNG.js +0 -196
- package/dist/Wrapper-R8fik3ah.js +0 -182
- package/dist/es2015-DigR3dar.js +0 -795
- /package/dist/{dist-DGOjiAnB2.js → dist-DGOjiAnB.js} +0 -0
- /package/dist/{dist-pWlMx4Fi2.js → dist-pWlMx4Fi.js} +0 -0
- /package/dist/{x-a_LpoXzG2.js → x-a_LpoXzG.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { t as J } from "./utils-
|
|
3
|
-
import { t as
|
|
1
|
+
import { n as Tt } from "./dist-DX0sBG3Q.js";
|
|
2
|
+
import { t as J } from "./utils-B-6R7kNE.js";
|
|
3
|
+
import { t as Bt } from "./chevron-right-CDwgDdp-.js";
|
|
4
4
|
import "./components/VirtualizedTable/constants/pagination.js";
|
|
5
|
-
import { TableContext as
|
|
5
|
+
import { TableContext as qt } from "./components/VirtualizedTable/contexts/table.context.js";
|
|
6
6
|
import { getTableId as Je } from "./components/VirtualizedTable/utils/get-table-id.js";
|
|
7
7
|
import { t as fe } from "./events.types-BG1Uh8i6.js";
|
|
8
8
|
import * as Le 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
|
-
import { useQuery as
|
|
11
|
+
import { useQuery as Nt } from "@tanstack/react-query";
|
|
12
12
|
function T(e, o) {
|
|
13
13
|
return typeof e == "function" ? e(o) : e;
|
|
14
14
|
}
|
|
@@ -23,10 +23,10 @@ function x(e, o) {
|
|
|
23
23
|
function Ce(e) {
|
|
24
24
|
return e instanceof Function;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function jt(e) {
|
|
27
27
|
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function kt(e, o) {
|
|
30
30
|
const t = [], n = (r) => {
|
|
31
31
|
r.forEach((i) => {
|
|
32
32
|
t.push(i);
|
|
@@ -68,7 +68,7 @@ function C(e, o, t, n) {
|
|
|
68
68
|
onChange: n
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Ut(e, o, t, n) {
|
|
72
72
|
const r = () => {
|
|
73
73
|
var l;
|
|
74
74
|
return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
|
|
@@ -96,7 +96,7 @@ function kt(e, o, t, n) {
|
|
|
96
96
|
l.createCell == null || l.createCell(i, t, o, e);
|
|
97
97
|
}, {}), i;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Kt(e, o, t, n) {
|
|
100
100
|
var r, i;
|
|
101
101
|
const l = {
|
|
102
102
|
...e._getDefaultColumnDef(),
|
|
@@ -161,7 +161,7 @@ function be(e, o, t) {
|
|
|
161
161
|
i.createHeader == null || i.createHeader(r, e);
|
|
162
162
|
}), r;
|
|
163
163
|
}
|
|
164
|
-
var
|
|
164
|
+
var Xt = { createTable: (e) => {
|
|
165
165
|
e.getHeaderGroups = m(() => [
|
|
166
166
|
e.getAllColumns(),
|
|
167
167
|
e.getVisibleLeafColumns(),
|
|
@@ -273,7 +273,7 @@ function pe(e, o, t, n) {
|
|
|
273
273
|
});
|
|
274
274
|
return d((r = (i = u[0]) == null ? void 0 : i.headers) != null ? r : []), u;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
276
|
+
var Wt = (e, o, t, n, r, i, l) => {
|
|
277
277
|
let s = {
|
|
278
278
|
id: o,
|
|
279
279
|
index: n,
|
|
@@ -299,7 +299,7 @@ var Xt = (e, o, t, n, r, i, l) => {
|
|
|
299
299
|
return (a = s.getValue(u)) != null ? a : e.options.renderFallbackValue;
|
|
300
300
|
},
|
|
301
301
|
subRows: i ?? [],
|
|
302
|
-
getLeafRows: () =>
|
|
302
|
+
getLeafRows: () => kt(s.subRows, (u) => u.subRows),
|
|
303
303
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
304
304
|
getParentRows: () => {
|
|
305
305
|
let u = [], a = s;
|
|
@@ -310,7 +310,7 @@ var Xt = (e, o, t, n, r, i, l) => {
|
|
|
310
310
|
}
|
|
311
311
|
return u.reverse();
|
|
312
312
|
},
|
|
313
|
-
getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((a) =>
|
|
313
|
+
getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((a) => Ut(e, s, a, a.id)), C(e.options, "debugRows", "getAllCells")),
|
|
314
314
|
_getAllCellsByColumnId: m(() => [s.getAllCells()], (u) => u.reduce((a, d) => (a[d.column.id] = d, a), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
315
315
|
};
|
|
316
316
|
for (let u = 0; u < e._features.length; u++) {
|
|
@@ -318,7 +318,7 @@ var Xt = (e, o, t, n, r, i, l) => {
|
|
|
318
318
|
a == null || a.createRow == null || a.createRow(s, e);
|
|
319
319
|
}
|
|
320
320
|
return s;
|
|
321
|
-
},
|
|
321
|
+
}, Qt = { createColumn: (e, o) => {
|
|
322
322
|
e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
|
|
323
323
|
if (e._getFacetedMinMaxValues)
|
|
324
324
|
return e._getFacetedMinMaxValues();
|
|
@@ -386,7 +386,7 @@ var H = {
|
|
|
386
386
|
function A(e) {
|
|
387
387
|
return e == null || e === "";
|
|
388
388
|
}
|
|
389
|
-
var
|
|
389
|
+
var Yt = {
|
|
390
390
|
getDefaultColumnDef: () => ({ filterFn: "auto" }),
|
|
391
391
|
getInitialState: (e) => ({
|
|
392
392
|
columnFilters: [],
|
|
@@ -454,51 +454,51 @@ var Qt = {
|
|
|
454
454
|
function et(e, o, t) {
|
|
455
455
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
456
456
|
}
|
|
457
|
-
var
|
|
457
|
+
var Zt = (e, o, t) => t.reduce((n, r) => {
|
|
458
458
|
const i = r.getValue(e);
|
|
459
459
|
return n + (typeof i == "number" ? i : 0);
|
|
460
|
-
}, 0),
|
|
460
|
+
}, 0), Jt = (e, o, t) => {
|
|
461
461
|
let n;
|
|
462
462
|
return t.forEach((r) => {
|
|
463
463
|
const i = r.getValue(e);
|
|
464
464
|
i != null && (n > i || n === void 0 && i >= i) && (n = i);
|
|
465
465
|
}), n;
|
|
466
|
-
},
|
|
466
|
+
}, bt = (e, o, t) => {
|
|
467
467
|
let n;
|
|
468
468
|
return t.forEach((r) => {
|
|
469
469
|
const i = r.getValue(e);
|
|
470
470
|
i != null && (n < i || n === void 0 && i >= i) && (n = i);
|
|
471
471
|
}), n;
|
|
472
|
-
},
|
|
472
|
+
}, en = (e, o, t) => {
|
|
473
473
|
let n, r;
|
|
474
474
|
return t.forEach((i) => {
|
|
475
475
|
const l = i.getValue(e);
|
|
476
476
|
l != null && (n === void 0 ? l >= l && (n = r = l) : (n > l && (n = l), r < l && (r = l)));
|
|
477
477
|
}), [n, r];
|
|
478
|
-
},
|
|
478
|
+
}, tn = (e, o) => {
|
|
479
479
|
let t = 0, n = 0;
|
|
480
480
|
if (o.forEach((r) => {
|
|
481
481
|
let i = r.getValue(e);
|
|
482
482
|
i != null && (i = +i) >= i && (++t, n += i);
|
|
483
483
|
}), t) return n / t;
|
|
484
|
-
},
|
|
484
|
+
}, nn = (e, o) => {
|
|
485
485
|
if (!o.length) return;
|
|
486
486
|
const t = o.map((i) => i.getValue(e));
|
|
487
|
-
if (!
|
|
487
|
+
if (!jt(t)) return;
|
|
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
|
-
},
|
|
492
|
-
sum:
|
|
493
|
-
min:
|
|
494
|
-
max:
|
|
495
|
-
extent:
|
|
496
|
-
mean:
|
|
497
|
-
median:
|
|
498
|
-
unique:
|
|
499
|
-
uniqueCount:
|
|
500
|
-
count:
|
|
501
|
-
},
|
|
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, Pe = {
|
|
492
|
+
sum: Zt,
|
|
493
|
+
min: Jt,
|
|
494
|
+
max: bt,
|
|
495
|
+
extent: en,
|
|
496
|
+
mean: tn,
|
|
497
|
+
median: nn,
|
|
498
|
+
unique: on,
|
|
499
|
+
uniqueCount: rn,
|
|
500
|
+
count: ln
|
|
501
|
+
}, sn = {
|
|
502
502
|
getDefaultColumnDef: () => ({
|
|
503
503
|
aggregatedCell: (e) => {
|
|
504
504
|
var o, t;
|
|
@@ -561,12 +561,12 @@ var Yt = (e, o, t) => t.reduce((n, r) => {
|
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
563
|
};
|
|
564
|
-
function
|
|
564
|
+
function un(e, o, t) {
|
|
565
565
|
if (!(o != null && o.length) || !t) return e;
|
|
566
566
|
const n = e.filter((r) => !o.includes(r.id));
|
|
567
567
|
return t === "remove" ? n : [...o.map((r) => e.find((i) => i.id === r)).filter(Boolean), ...n];
|
|
568
568
|
}
|
|
569
|
-
var
|
|
569
|
+
var an = {
|
|
570
570
|
getInitialState: (e) => ({
|
|
571
571
|
columnOrder: [],
|
|
572
572
|
...e
|
|
@@ -601,13 +601,13 @@ var un = {
|
|
|
601
601
|
}
|
|
602
602
|
i = [...i, ...s];
|
|
603
603
|
}
|
|
604
|
-
return
|
|
604
|
+
return un(i, t, n);
|
|
605
605
|
}, C(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
606
606
|
}
|
|
607
607
|
}, Ie = () => ({
|
|
608
608
|
left: [],
|
|
609
609
|
right: []
|
|
610
|
-
}),
|
|
610
|
+
}), gn = {
|
|
611
611
|
getInitialState: (e) => ({
|
|
612
612
|
columnPinning: Ie(),
|
|
613
613
|
...e
|
|
@@ -687,7 +687,7 @@ var un = {
|
|
|
687
687
|
}, C(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
|
-
function
|
|
690
|
+
function dn(e) {
|
|
691
691
|
return e || (typeof document < "u" ? document : null);
|
|
692
692
|
}
|
|
693
693
|
var Se = {
|
|
@@ -701,7 +701,7 @@ var Se = {
|
|
|
701
701
|
deltaPercentage: null,
|
|
702
702
|
isResizingColumn: !1,
|
|
703
703
|
columnSizingStart: []
|
|
704
|
-
}),
|
|
704
|
+
}), fn = {
|
|
705
705
|
getDefaultColumnDef: () => Se,
|
|
706
706
|
getInitialState: (e) => ({
|
|
707
707
|
columnSizing: {},
|
|
@@ -785,7 +785,7 @@ var Se = {
|
|
|
785
785
|
deltaPercentage: null,
|
|
786
786
|
columnSizingStart: []
|
|
787
787
|
}));
|
|
788
|
-
}, c =
|
|
788
|
+
}, c = dn(t), p = {
|
|
789
789
|
moveHandler: (h) => g(h.clientX),
|
|
790
790
|
upHandler: (h) => {
|
|
791
791
|
c?.removeEventListener("mousemove", p.moveHandler), c?.removeEventListener("mouseup", p.upHandler), f(h.clientX);
|
|
@@ -796,7 +796,7 @@ var Se = {
|
|
|
796
796
|
var w;
|
|
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
|
xe(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,
|
|
@@ -831,7 +831,7 @@ var Se = {
|
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
833
|
}, me = null;
|
|
834
|
-
function
|
|
834
|
+
function cn() {
|
|
835
835
|
if (typeof me == "boolean") return me;
|
|
836
836
|
let e = !1;
|
|
837
837
|
try {
|
|
@@ -848,7 +848,7 @@ function fn() {
|
|
|
848
848
|
function xe(e) {
|
|
849
849
|
return e.type === "touchstart";
|
|
850
850
|
}
|
|
851
|
-
var
|
|
851
|
+
var pn = {
|
|
852
852
|
getInitialState: (e) => ({
|
|
853
853
|
columnVisibility: {},
|
|
854
854
|
...e
|
|
@@ -902,12 +902,12 @@ var cn = {
|
|
|
902
902
|
function te(e, o) {
|
|
903
903
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
904
904
|
}
|
|
905
|
-
var
|
|
905
|
+
var Sn = { createTable: (e) => {
|
|
906
906
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
907
907
|
if (e._getGlobalFacetedMinMaxValues)
|
|
908
908
|
return e._getGlobalFacetedMinMaxValues();
|
|
909
909
|
};
|
|
910
|
-
} },
|
|
910
|
+
} }, mn = {
|
|
911
911
|
getInitialState: (e) => ({
|
|
912
912
|
globalFilter: void 0,
|
|
913
913
|
...e
|
|
@@ -938,7 +938,7 @@ var pn = { createTable: (e) => {
|
|
|
938
938
|
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
|
-
},
|
|
941
|
+
}, Cn = {
|
|
942
942
|
getInitialState: (e) => ({
|
|
943
943
|
expanded: {},
|
|
944
944
|
...e
|
|
@@ -1024,7 +1024,7 @@ var pn = { createTable: (e) => {
|
|
|
1024
1024
|
}, De = 0, He = 10, ye = () => ({
|
|
1025
1025
|
pageIndex: De,
|
|
1026
1026
|
pageSize: He
|
|
1027
|
-
}),
|
|
1027
|
+
}), vn = {
|
|
1028
1028
|
getInitialState: (e) => ({
|
|
1029
1029
|
...e,
|
|
1030
1030
|
pagination: {
|
|
@@ -1103,7 +1103,7 @@ var pn = { createTable: (e) => {
|
|
|
1103
1103
|
}, Ee = () => ({
|
|
1104
1104
|
top: [],
|
|
1105
1105
|
bottom: []
|
|
1106
|
-
}),
|
|
1106
|
+
}), Rn = {
|
|
1107
1107
|
getInitialState: (e) => ({
|
|
1108
1108
|
rowPinning: Ee(),
|
|
1109
1109
|
...e
|
|
@@ -1191,7 +1191,7 @@ var pn = { createTable: (e) => {
|
|
|
1191
1191
|
return o.filter((i) => !r.has(i.id));
|
|
1192
1192
|
}, C(e.options, "debugRows", "getCenterRows"));
|
|
1193
1193
|
}
|
|
1194
|
-
},
|
|
1194
|
+
}, hn = {
|
|
1195
1195
|
getInitialState: (e) => ({
|
|
1196
1196
|
rowSelection: {},
|
|
1197
1197
|
...e
|
|
@@ -1326,10 +1326,10 @@ function Oe(e, o, t) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
}), r ? "all" : i ? "some" : !1;
|
|
1328
1328
|
}
|
|
1329
|
-
var ze = /([0-9]+)/gm,
|
|
1329
|
+
var ze = /([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) => qe(B(e.getValue(t)).toLowerCase(), B(o.getValue(t)).toLowerCase()), $n = (e, o, t) => qe(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
|
-
},
|
|
1332
|
+
}, Pn = (e, o, t) => qe(e.getValue(t), o.getValue(t));
|
|
1333
1333
|
function qe(e, o) {
|
|
1334
1334
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1335
1335
|
}
|
|
@@ -1352,13 +1352,13 @@ function gt(e, o) {
|
|
|
1352
1352
|
return t.length - n.length;
|
|
1353
1353
|
}
|
|
1354
1354
|
var ee = {
|
|
1355
|
-
alphanumeric:
|
|
1356
|
-
alphanumericCaseSensitive:
|
|
1357
|
-
text:
|
|
1358
|
-
textCaseSensitive:
|
|
1359
|
-
datetime:
|
|
1360
|
-
basic:
|
|
1361
|
-
},
|
|
1355
|
+
alphanumeric: wn,
|
|
1356
|
+
alphanumericCaseSensitive: _n,
|
|
1357
|
+
text: Fn,
|
|
1358
|
+
textCaseSensitive: $n,
|
|
1359
|
+
datetime: Mn,
|
|
1360
|
+
basic: Pn
|
|
1361
|
+
}, In = {
|
|
1362
1362
|
getInitialState: (e) => ({
|
|
1363
1363
|
sorting: [],
|
|
1364
1364
|
...e
|
|
@@ -1444,27 +1444,27 @@ var ee = {
|
|
|
1444
1444
|
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
1445
1445
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
1446
1446
|
}
|
|
1447
|
-
},
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
un,
|
|
1447
|
+
}, Vn = [
|
|
1448
|
+
Xt,
|
|
1449
|
+
pn,
|
|
1451
1450
|
an,
|
|
1452
|
-
|
|
1451
|
+
gn,
|
|
1453
1452
|
Qt,
|
|
1454
|
-
|
|
1453
|
+
Yt,
|
|
1455
1454
|
Sn,
|
|
1456
|
-
Pn,
|
|
1457
|
-
ln,
|
|
1458
1455
|
mn,
|
|
1456
|
+
In,
|
|
1457
|
+
sn,
|
|
1459
1458
|
Cn,
|
|
1460
1459
|
vn,
|
|
1461
1460
|
Rn,
|
|
1462
|
-
|
|
1461
|
+
hn,
|
|
1462
|
+
fn
|
|
1463
1463
|
];
|
|
1464
|
-
function
|
|
1464
|
+
function xn(e) {
|
|
1465
1465
|
var o, t;
|
|
1466
1466
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1467
|
-
const n = [...
|
|
1467
|
+
const n = [...Vn, ...(o = e._features) != null ? o : []];
|
|
1468
1468
|
let r = { _features: n };
|
|
1469
1469
|
const i = r._features.reduce((g, f) => Object.assign(g, f.getDefaultOptions == null ? void 0 : f.getDefaultOptions(r)), {}), l = (g) => r.options.mergeOptions ? r.options.mergeOptions(i, g) : {
|
|
1470
1470
|
...i,
|
|
@@ -1534,7 +1534,7 @@ function Vn(e) {
|
|
|
1534
1534
|
getAllColumns: m(() => [r._getColumnDefs()], (g) => {
|
|
1535
1535
|
const f = function(c, p, v) {
|
|
1536
1536
|
return v === void 0 && (v = 0), c.map(($) => {
|
|
1537
|
-
const h =
|
|
1537
|
+
const h = Kt(r, $, v, p), w = $;
|
|
1538
1538
|
return h.columns = w.columns ? f(w.columns, h, v + 1) : [], h;
|
|
1539
1539
|
});
|
|
1540
1540
|
};
|
|
@@ -1555,7 +1555,7 @@ function Vn(e) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
return r;
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function yn() {
|
|
1559
1559
|
return (e) => m(() => [e.options.data], (o) => {
|
|
1560
1560
|
const t = {
|
|
1561
1561
|
rows: [],
|
|
@@ -1565,7 +1565,7 @@ function xn() {
|
|
|
1565
1565
|
i === void 0 && (i = 0);
|
|
1566
1566
|
const s = [];
|
|
1567
1567
|
for (let a = 0; a < r.length; a++) {
|
|
1568
|
-
const d =
|
|
1568
|
+
const d = Wt(e, e._getRowId(r[a], a, l), r[a], a, i, void 0, l?.id);
|
|
1569
1569
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
|
|
1570
1570
|
var u;
|
|
1571
1571
|
d.originalSubRows = e.options.getSubRows(r[a], a), (u = d.originalSubRows) != null && u.length && (d.subRows = n(d.originalSubRows, i + 1, d));
|
|
@@ -1576,7 +1576,7 @@ function xn() {
|
|
|
1576
1576
|
return t.rows = n(o), t;
|
|
1577
1577
|
}, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1579
|
+
function En() {
|
|
1580
1580
|
return (e) => m(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
1581
1581
|
if (!t.rows.length || !(o != null && o.length)) return t;
|
|
1582
1582
|
const n = e.getState().sorting, r = [], i = n.filter((u) => {
|
|
@@ -1622,29 +1622,29 @@ function yn() {
|
|
|
1622
1622
|
};
|
|
1623
1623
|
}, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1626
|
-
return e ?
|
|
1627
|
-
}
|
|
1628
|
-
function En(e) {
|
|
1629
|
-
return An(e) || typeof e == "function" || Ln(e);
|
|
1625
|
+
function Qn(e, o) {
|
|
1626
|
+
return e ? An(e) ? /* @__PURE__ */ Le.createElement(e, o) : e : null;
|
|
1630
1627
|
}
|
|
1631
1628
|
function An(e) {
|
|
1629
|
+
return Ln(e) || typeof e == "function" || Dn(e);
|
|
1630
|
+
}
|
|
1631
|
+
function Ln(e) {
|
|
1632
1632
|
return typeof e == "function" && (() => {
|
|
1633
1633
|
const o = Object.getPrototypeOf(e);
|
|
1634
1634
|
return o.prototype && o.prototype.isReactComponent;
|
|
1635
1635
|
})();
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1637
|
+
function Dn(e) {
|
|
1638
1638
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function Hn(e) {
|
|
1641
1641
|
const o = {
|
|
1642
1642
|
state: {},
|
|
1643
1643
|
onStateChange: () => {
|
|
1644
1644
|
},
|
|
1645
1645
|
renderFallbackValue: null,
|
|
1646
1646
|
...e
|
|
1647
|
-
}, [t] = Le.useState(() => ({ current:
|
|
1647
|
+
}, [t] = Le.useState(() => ({ current: xn(o) })), [n, r] = Le.useState(() => t.current.initialState);
|
|
1648
1648
|
return t.current.setOptions((i) => ({
|
|
1649
1649
|
...i,
|
|
1650
1650
|
...e,
|
|
@@ -1664,10 +1664,10 @@ var tt = [
|
|
|
1664
1664
|
"isLoading",
|
|
1665
1665
|
"isFetching",
|
|
1666
1666
|
"dataUpdatedAt"
|
|
1667
|
-
],
|
|
1667
|
+
], Gn = [], On = (e) => e === void 0 || e === "all" ? e : typeof e == "function" ? () => {
|
|
1668
1668
|
const o = e();
|
|
1669
1669
|
return o === void 0 || o === "all" ? o : [.../* @__PURE__ */ new Set([...o, ...tt])];
|
|
1670
|
-
} : [.../* @__PURE__ */ new Set([...e, ...tt])],
|
|
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
1671
|
const [K, X] = I([]), [ve, Re] = I(!!_), [j, W] = I(0), [ne, dt] = I(), [oe, ft] = I(10), [ct, pt] = I(h), Ne = _ ? ct : h, St = Math.ceil(Ne / 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]) => {
|
|
@@ -1679,11 +1679,11 @@ var tt = [
|
|
|
1679
1679
|
}), Object.entries(se).forEach(([R, F]) => {
|
|
1680
1680
|
F && S.push(`${R}:${F}`);
|
|
1681
1681
|
}), S;
|
|
1682
|
-
}, { notifyOnChangeProps: wt, ...je } = $, ke = b({}), Ue = b(!1), G =
|
|
1682
|
+
}, { notifyOnChangeProps: wt, ...je } = $, ke = b({}), Ue = b(!1), G = Nt({
|
|
1683
1683
|
refetchOnMount: !1,
|
|
1684
1684
|
refetchOnWindowFocus: !1,
|
|
1685
1685
|
...je,
|
|
1686
|
-
notifyOnChangeProps:
|
|
1686
|
+
notifyOnChangeProps: On(wt),
|
|
1687
1687
|
queryKey: ht(),
|
|
1688
1688
|
enabled: (S) => {
|
|
1689
1689
|
if (!_) return !1;
|
|
@@ -1708,7 +1708,7 @@ var tt = [
|
|
|
1708
1708
|
}
|
|
1709
1709
|
}), [_t, Ke] = I(!1), he = b(0), Xe = b(!0), We = b(G.refetch);
|
|
1710
1710
|
We.current = G.refetch;
|
|
1711
|
-
const Q = _ ? G.data ??
|
|
1711
|
+
const Q = _ ? G.data ?? Gn : u, Ft = _ ? G.isLoading : !1, $t = _ ? G.isFetching : !1, Mt = _ ? G.error : null, Qe = !!c;
|
|
1712
1712
|
k(() => {
|
|
1713
1713
|
if (!_ || G.dataUpdatedAt === 0) return;
|
|
1714
1714
|
Re(!1);
|
|
@@ -1809,7 +1809,7 @@ var tt = [
|
|
|
1809
1809
|
}, [N]);
|
|
1810
1810
|
const $e = U(() => !d || !_e && !P ? null : {
|
|
1811
1811
|
id: "__expand",
|
|
1812
|
-
header: () => /* @__PURE__ */ ce(
|
|
1812
|
+
header: () => /* @__PURE__ */ ce(Tt, { children: "Expand Column" }),
|
|
1813
1813
|
cell: ({ row: S }) => {
|
|
1814
1814
|
const { meta: R } = S.original, F = typeof V == "object" && !!V[S.id];
|
|
1815
1815
|
return !R?.expandedRow && !S.getIsExpanded() && !F ? null : /* @__PURE__ */ ce("button", {
|
|
@@ -1817,7 +1817,7 @@ var tt = [
|
|
|
1817
1817
|
className: "hover:cursor-pointer",
|
|
1818
1818
|
onClick: () => S.toggleExpanded(),
|
|
1819
1819
|
"aria-label": S.getIsExpanded() ? "Collapse row" : "Expand row",
|
|
1820
|
-
children: /* @__PURE__ */ ce(
|
|
1820
|
+
children: /* @__PURE__ */ ce(Bt, { className: J("size-4 transition-transform text-slate-400 dark:text-metal-400", { "-rotate-90": S.getIsExpanded() }) })
|
|
1821
1821
|
});
|
|
1822
1822
|
},
|
|
1823
1823
|
enableSorting: !1,
|
|
@@ -1833,9 +1833,9 @@ var tt = [
|
|
|
1833
1833
|
N,
|
|
1834
1834
|
ae,
|
|
1835
1835
|
V
|
|
1836
|
-
]), Ot =
|
|
1836
|
+
]), Ot = U(() => $e ? [$e, ...s] : s, [s, $e]), zt = Hn({
|
|
1837
1837
|
data: Q,
|
|
1838
|
-
columns:
|
|
1838
|
+
columns: Ot,
|
|
1839
1839
|
...w ? { getRowId: w } : {},
|
|
1840
1840
|
state: {
|
|
1841
1841
|
sorting: K,
|
|
@@ -1846,10 +1846,10 @@ var tt = [
|
|
|
1846
1846
|
onExpandedChange: Y,
|
|
1847
1847
|
manualExpanding: !0
|
|
1848
1848
|
} : {},
|
|
1849
|
-
getCoreRowModel:
|
|
1850
|
-
getSortedRowModel:
|
|
1849
|
+
getCoreRowModel: yn(),
|
|
1850
|
+
getSortedRowModel: En()
|
|
1851
1851
|
});
|
|
1852
|
-
return /* @__PURE__ */ ce(
|
|
1852
|
+
return /* @__PURE__ */ ce(qt.Provider, {
|
|
1853
1853
|
value: {
|
|
1854
1854
|
classNameActiveExpandedRow: i,
|
|
1855
1855
|
classNameExpandedCell: o,
|
|
@@ -1868,7 +1868,7 @@ var tt = [
|
|
|
1868
1868
|
page: j,
|
|
1869
1869
|
pageSize: oe,
|
|
1870
1870
|
sortedData: K,
|
|
1871
|
-
table:
|
|
1871
|
+
table: zt,
|
|
1872
1872
|
tableFetching: $t,
|
|
1873
1873
|
tableLoading: Ft || _t,
|
|
1874
1874
|
tableError: Mt,
|
|
@@ -1890,6 +1890,6 @@ var tt = [
|
|
|
1890
1890
|
});
|
|
1891
1891
|
};
|
|
1892
1892
|
export {
|
|
1893
|
-
|
|
1894
|
-
|
|
1893
|
+
Qn as n,
|
|
1894
|
+
Yn as t
|
|
1895
1895
|
};
|
|
@@ -477,11 +477,12 @@ function Wt({ children: e, error: t }) {
|
|
|
477
477
|
if (a) throw a;
|
|
478
478
|
let o = De(n.location, r), i = o.absoluteURL || o.to;
|
|
479
479
|
if (Pt(i)) throw new Error("Invalid redirect location");
|
|
480
|
-
if (Ie && !le.get(t))
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
480
|
+
if (Ie && !le.get(t))
|
|
481
|
+
if (o.isExternal || n.reloadDocument) window.location.href = i;
|
|
482
|
+
else {
|
|
483
|
+
const u = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(o.to, { replace: n.replace }));
|
|
484
|
+
throw le.set(t, u), u;
|
|
485
|
+
}
|
|
485
486
|
return /* @__PURE__ */ l.createElement("meta", {
|
|
486
487
|
httpEquiv: "refresh",
|
|
487
488
|
content: `0;url=${i}`
|
|
@@ -1231,7 +1232,7 @@ function Ce({ title: e, renderScripts: t, isOutsideRemixApp: r, children: n }) {
|
|
|
1231
1232
|
}
|
|
1232
1233
|
var $r = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1233
1234
|
try {
|
|
1234
|
-
$r && (window.__reactRouterVersion = "7.18.
|
|
1235
|
+
$r && (window.__reactRouterVersion = "7.18.2");
|
|
1235
1236
|
} catch {
|
|
1236
1237
|
}
|
|
1237
1238
|
function Pr({ basename: e, children: t, history: r, useTransitions: n }) {
|
package/dist/utils/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as o, i as a, n as e, r, t as i } from "../utils-B-6R7kNE.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
i as cn,
|
|
4
|
+
e as composeIds,
|
|
5
|
+
r as filterByValue,
|
|
6
|
+
a as isClient,
|
|
7
|
+
o as resolveColor
|
|
7
8
|
};
|
|
@@ -1725,10 +1725,14 @@ var Ee = (e, t) => {
|
|
|
1725
1725
|
"selection"
|
|
1726
1726
|
]
|
|
1727
1727
|
};
|
|
1728
|
-
}, Sr = /* @__PURE__ */ tr(Ar), Rr = (...e) => Sr(je(e)), Gr = (e, t) => e.filter((r) => r.toLocaleLowerCase().indexOf(t.toLocaleLowerCase()) > -1), Mr = !!(typeof window < "u" && window.document && window.document.createElement), Pr = (e) => getComputedStyle(document.documentElement).getPropertyValue(e).trim() || e
|
|
1728
|
+
}, Sr = /* @__PURE__ */ tr(Ar), Rr = (...e) => Sr(je(e)), Gr = (e, t) => e.filter((r) => r.toLocaleLowerCase().indexOf(t.toLocaleLowerCase()) > -1), Mr = !!(typeof window < "u" && window.document && window.document.createElement), Pr = (e) => getComputedStyle(document.documentElement).getPropertyValue(e).trim() || e, Lr = (...e) => {
|
|
1729
|
+
const t = e.filter(Boolean).join(" ");
|
|
1730
|
+
return t.length > 0 ? t : void 0;
|
|
1731
|
+
};
|
|
1729
1732
|
export {
|
|
1730
|
-
Pr as
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
+
Pr as a,
|
|
1734
|
+
Mr as i,
|
|
1735
|
+
Lr as n,
|
|
1736
|
+
Gr as r,
|
|
1733
1737
|
Rr as t
|
|
1734
1738
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as we, n as xe, o as ga, r as He, t as v } from "./rolldown-runtime-
|
|
2
|
-
import { a as ke, i as _e, n as he, o as oe, r as Fe, s as fa, t as ve } from "./isObject-
|
|
1
|
+
import { a as we, n as xe, o as ga, r as He, t as v } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { a as ke, i as _e, n as he, o as oe, r as Fe, s as fa, t as ve } from "./isObject-pLoSfdr0.js";
|
|
3
3
|
var da = /* @__PURE__ */ v(((A, l) => {
|
|
4
4
|
var r = Math.floor, i = Math.max, a = Math.min, e = function(h, c) {
|
|
5
5
|
return c ? 2 * h / c : 1;
|
|
@@ -1403,7 +1403,6 @@ var da = /* @__PURE__ */ v(((A, l) => {
|
|
|
1403
1403
|
break;
|
|
1404
1404
|
default:
|
|
1405
1405
|
m.apply(l, U);
|
|
1406
|
-
break;
|
|
1407
1406
|
}
|
|
1408
1407
|
}
|
|
1409
1408
|
function c(f) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as u } from "./rolldown-runtime-
|
|
2
|
-
import { t as c } from "./prop-types-
|
|
1
|
+
import { o as u } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { t as c } from "./prop-types-BCUW56rg.js";
|
|
3
3
|
import l, { forwardRef as m } from "react";
|
|
4
4
|
var a = /* @__PURE__ */ u(c());
|
|
5
5
|
function p() {
|