@senitix/ui 0.4.0 → 0.4.1
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/avatar-BT_SPwFW.cjs +18 -0
- package/dist/{avatar-C0aVNCG9.cjs.map → avatar-BT_SPwFW.cjs.map} +1 -1
- package/dist/avatar-C5-ZWIqT.js +305 -0
- package/dist/{avatar-CN6wcrqY.js.map → avatar-C5-ZWIqT.js.map} +1 -1
- package/dist/calendar-BF5drX5u.cjs +12 -0
- package/dist/{calendar-BUm7YrNf.cjs.map → calendar-BF5drX5u.cjs.map} +1 -1
- package/dist/calendar-CUxm1K7J.js +17 -0
- package/dist/{calendar-ChJkFXXr.js.map → calendar-CUxm1K7J.js.map} +1 -1
- package/dist/calendar-D3RWU0_G.cjs +7 -0
- package/dist/{calendar-SwL5isYC.cjs.map → calendar-D3RWU0_G.cjs.map} +1 -1
- package/dist/{calendar-BFWc4IB7.js → calendar-DgnhzEfp.js} +126 -112
- package/dist/{calendar-BFWc4IB7.js.map → calendar-DgnhzEfp.js.map} +1 -1
- package/dist/{card-tMkUxpmW.cjs → card-DISL3sPJ.cjs} +2 -2
- package/dist/{card-tMkUxpmW.cjs.map → card-DISL3sPJ.cjs.map} +1 -1
- package/dist/{card-K4fxyYwE.js → card-fId5vof_.js} +2 -2
- package/dist/{card-K4fxyYwE.js.map → card-fId5vof_.js.map} +1 -1
- package/dist/{checkbox-CpOq5hkT.js → checkbox-BY2zxQVv.js} +5 -5
- package/dist/{checkbox-CpOq5hkT.js.map → checkbox-BY2zxQVv.js.map} +1 -1
- package/dist/checkbox-CL6u7vL6.cjs +2 -0
- package/dist/{checkbox-D7-LQyCl.cjs.map → checkbox-CL6u7vL6.cjs.map} +1 -1
- package/dist/chevron-down-BiUlxZA-.js +14 -0
- package/dist/{chevron-down-DJ1_YIFu.js.map → chevron-down-BiUlxZA-.js.map} +1 -1
- package/dist/chevron-down-Ce0kqXiD.cjs +7 -0
- package/dist/{chevron-down-DHdXqOqK.cjs.map → chevron-down-Ce0kqXiD.cjs.map} +1 -1
- package/dist/chevron-right-BLyGmyaF.js +14 -0
- package/dist/{chevron-right-B3bovvh0.js.map → chevron-right-BLyGmyaF.js.map} +1 -1
- package/dist/chevron-right-Bxf8i4gi.cjs +7 -0
- package/dist/{chevron-right-Dvyd11q0.cjs.map → chevron-right-Bxf8i4gi.cjs.map} +1 -1
- package/dist/chevron-up-BmYZUtrk.js +12 -0
- package/dist/{chevron-up-CGtXOr51.js.map → chevron-up-BmYZUtrk.js.map} +1 -1
- package/dist/chevron-up-C3RClqXD.cjs +7 -0
- package/dist/{chevron-up-B9fuiZhc.cjs.map → chevron-up-C3RClqXD.cjs.map} +1 -1
- package/dist/components/charts/index.cjs.js +1 -1
- package/dist/components/charts/index.es.js +1 -1
- package/dist/components/data-display/index.cjs.js +1 -1
- package/dist/components/data-display/index.es.js +1 -1
- package/dist/components/dnd/index.cjs.js +1 -1
- package/dist/components/dnd/index.es.js +1 -1
- package/dist/components/feedback/index.cjs.js +1 -1
- package/dist/components/feedback/index.es.js +1 -1
- package/dist/components/forms/index.cjs.js +1 -1
- package/dist/components/forms/index.es.js +1 -1
- package/dist/components/layouts/index.cjs.js +1 -1
- package/dist/components/layouts/index.es.js +1 -1
- package/dist/components/navigation/index.cjs.js +1 -1
- package/dist/components/navigation/index.es.js +1 -1
- package/dist/components/ui/index.cjs.js +1 -1
- package/dist/components/ui/index.es.js +13 -13
- package/dist/{createLucideIcon-BbeNo6vq.js → createLucideIcon-BC8wu-bu.js} +25 -1
- package/dist/{createLucideIcon-BbeNo6vq.js.map → createLucideIcon-BC8wu-bu.js.map} +1 -1
- package/dist/createLucideIcon-Cv8nC2E9.cjs +22 -0
- package/dist/{createLucideIcon-i5GEhNMV.cjs.map → createLucideIcon-Cv8nC2E9.cjs.map} +1 -1
- package/dist/ellipsis-6eUne95u.js +16 -0
- package/dist/{ellipsis-CiKEaUNP.js.map → ellipsis-6eUne95u.js.map} +1 -1
- package/dist/ellipsis-DkM3GBF5.cjs +7 -0
- package/dist/{ellipsis-BW2gWki8.cjs.map → ellipsis-DkM3GBF5.cjs.map} +1 -1
- package/dist/file-Cp5UoYUZ.cjs +7 -0
- package/dist/{file-V_hhCUhr.cjs.map → file-Cp5UoYUZ.cjs.map} +1 -1
- package/dist/file-Cw_u_aJB.js +15 -0
- package/dist/{file-wzTXnWqz.js.map → file-Cw_u_aJB.js.map} +1 -1
- package/dist/filter-tags-DoRzXjuY.cjs +48 -0
- package/dist/{filter-tags-DjUaNXHR.cjs.map → filter-tags-DoRzXjuY.cjs.map} +1 -1
- package/dist/{filter-tags-i_I8qV1N.js → filter-tags-zEQmRhEU.js} +353 -299
- package/dist/{filter-tags-i_I8qV1N.js.map → filter-tags-zEQmRhEU.js.map} +1 -1
- package/dist/{full-calendar-7ac2FFU6.js → full-calendar-5Z4JSj8g.js} +1176 -1143
- package/dist/{full-calendar-7ac2FFU6.js.map → full-calendar-5Z4JSj8g.js.map} +1 -1
- package/dist/full-calendar-DjAvCfuE.cjs +23 -0
- package/dist/{full-calendar-Cpeh5xMP.cjs.map → full-calendar-DjAvCfuE.cjs.map} +1 -1
- package/dist/{global-search-h1rVbP2q.js → global-search-BbZfc-VL.js} +514 -486
- package/dist/global-search-BbZfc-VL.js.map +1 -0
- package/dist/global-search-Bd74_wPV.cjs +22 -0
- package/dist/global-search-Bd74_wPV.cjs.map +1 -0
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +1 -1
- package/dist/index-D2U2F80P.cjs +2 -0
- package/dist/index-D2U2F80P.cjs.map +1 -0
- package/dist/index-DG0KV-sw.cjs +11 -0
- package/dist/{index-CzVK9Zyb.cjs.map → index-DG0KV-sw.cjs.map} +1 -1
- package/dist/{index-Co9o9StL.js → index-Dk_Et2WJ.js} +2 -2
- package/dist/{index-Co9o9StL.js.map → index-Dk_Et2WJ.js.map} +1 -1
- package/dist/{index-CwJPJKOE.js → index-DtaLkIY8.js} +1072 -573
- package/dist/index-DtaLkIY8.js.map +1 -0
- package/dist/index-XnFSmCuh.js +299 -0
- package/dist/{index-l828OqQN.js.map → index-XnFSmCuh.js.map} +1 -1
- package/dist/{index-lT9bLt9X.cjs → index-gVbM3K4f.cjs} +2 -2
- package/dist/{index-lT9bLt9X.cjs.map → index-gVbM3K4f.cjs.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +23 -23
- package/dist/input-BgPy-4Qu.js +3658 -0
- package/dist/{input-D4AoiWxo.js.map → input-BgPy-4Qu.js.map} +1 -1
- package/dist/input-Cfr2WB-P.cjs +47 -0
- package/dist/{input-CZrckPLk.cjs.map → input-Cfr2WB-P.cjs.map} +1 -1
- package/dist/locale-provider-BojNdf1Y.cjs +2 -0
- package/dist/{locale-provider-DHMwuneF.cjs.map → locale-provider-BojNdf1Y.cjs.map} +1 -1
- package/dist/{locale-provider-DanG6RRG.js → locale-provider-DzBeb-X3.js} +62 -61
- package/dist/{locale-provider-DanG6RRG.js.map → locale-provider-DzBeb-X3.js.map} +1 -1
- package/dist/locale-selector-BD1IWk6X.cjs +22 -0
- package/dist/{locale-selector-Ppe0KTi-.cjs.map → locale-selector-BD1IWk6X.cjs.map} +1 -1
- package/dist/locale-selector-DLRSyVye.js +1772 -0
- package/dist/{locale-selector-xn2GpdP9.js.map → locale-selector-DLRSyVye.js.map} +1 -1
- package/dist/minus-C0uyaz70.cjs +7 -0
- package/dist/{minus-BXBFZSZs.cjs.map → minus-C0uyaz70.cjs.map} +1 -1
- package/dist/minus-CiwV65ZG.js +12 -0
- package/dist/{minus-DvlYtl96.js.map → minus-CiwV65ZG.js.map} +1 -1
- package/dist/{multi-container-C2UpSw5f.js → multi-container-BZia7HCU.js} +181 -164
- package/dist/{multi-container-C2UpSw5f.js.map → multi-container-BZia7HCU.js.map} +1 -1
- package/dist/multi-container-BdNbgtPZ.cjs +7 -0
- package/dist/{multi-container-DMKL8c9B.cjs.map → multi-container-BdNbgtPZ.cjs.map} +1 -1
- package/dist/pipeline-Dh052Dvj.cjs +27 -0
- package/dist/{pipeline-By5_8AFg.cjs.map → pipeline-Dh052Dvj.cjs.map} +1 -1
- package/dist/pipeline-DqWvleNy.js +1076 -0
- package/dist/{pipeline-D-QNSU0U.js.map → pipeline-DqWvleNy.js.map} +1 -1
- package/dist/plus-BsV82JJ5.cjs +7 -0
- package/dist/{plus-8wKRkVu-.cjs.map → plus-BsV82JJ5.cjs.map} +1 -1
- package/dist/plus-DxD6rofl.js +15 -0
- package/dist/{plus-CJD68KQD.js.map → plus-DxD6rofl.js.map} +1 -1
- package/dist/popover-BgLxmm1z.cjs +7 -0
- package/dist/{popover-ivh-plLc.cjs.map → popover-BgLxmm1z.cjs.map} +1 -1
- package/dist/{popover-4V4sGe1U.js → popover-PI9jbhnS.js} +85 -75
- package/dist/{popover-4V4sGe1U.js.map → popover-PI9jbhnS.js.map} +1 -1
- package/dist/progress-CTTt_CP3.js +260 -0
- package/dist/{progress-D5AsrWa6.js.map → progress-CTTt_CP3.js.map} +1 -1
- package/dist/progress-CTWb7X1Q.cjs +37 -0
- package/dist/{progress-CFnuLqnS.cjs.map → progress-CTWb7X1Q.cjs.map} +1 -1
- package/dist/providers/index.cjs.js +1 -1
- package/dist/providers/index.es.js +1 -1
- package/dist/{scroll-area-DQeqDp3Y.js → scroll-area-A3jGu-Ta.js} +302 -280
- package/dist/{scroll-area-DQeqDp3Y.js.map → scroll-area-A3jGu-Ta.js.map} +1 -1
- package/dist/scroll-area-DzDnWIYJ.cjs +12 -0
- package/dist/{scroll-area-DYOiJMXh.cjs.map → scroll-area-DzDnWIYJ.cjs.map} +1 -1
- package/dist/select-BJpZrtep.js +989 -0
- package/dist/{select-C1rNBi6c.js.map → select-BJpZrtep.js.map} +1 -1
- package/dist/select-Ii8HRuXa.cjs +2 -0
- package/dist/{select-m-Mqwxu3.cjs.map → select-Ii8HRuXa.cjs.map} +1 -1
- package/dist/separator-BzcDE0Ei.cjs +2 -0
- package/dist/{separator-DBUivkHq.cjs.map → separator-BzcDE0Ei.cjs.map} +1 -1
- package/dist/{separator-DsfoJx-2.js → separator-DyarVo1-.js} +66 -65
- package/dist/{separator-DsfoJx-2.js.map → separator-DyarVo1-.js.map} +1 -1
- package/dist/{sheet-BVWCpq7E.js → sheet-DPSdOoE6.js} +4 -4
- package/dist/{sheet-BVWCpq7E.js.map → sheet-DPSdOoE6.js.map} +1 -1
- package/dist/{sheet-mKiFLVnK.cjs → sheet-XtjvbEMq.cjs} +2 -2
- package/dist/{sheet-mKiFLVnK.cjs.map → sheet-XtjvbEMq.cjs.map} +1 -1
- package/dist/{skeleton-BmGbfJw3.js → skeleton-Bl6FAxHT.js} +2 -2
- package/dist/{skeleton-BmGbfJw3.js.map → skeleton-Bl6FAxHT.js.map} +1 -1
- package/dist/{skeleton-BSwwYaQU.cjs → skeleton-Cb6MWerF.cjs} +2 -2
- package/dist/{skeleton-BSwwYaQU.cjs.map → skeleton-Cb6MWerF.cjs.map} +1 -1
- package/dist/sortable.esm-5DsiICDg.cjs +6 -0
- package/dist/{sortable.esm-DcQYlXi3.cjs.map → sortable.esm-5DsiICDg.cjs.map} +1 -1
- package/dist/{sortable.esm-Blhf_jh1.js → sortable.esm-Cb8oRBzU.js} +42 -42
- package/dist/{sortable.esm-Blhf_jh1.js.map → sortable.esm-Cb8oRBzU.js.map} +1 -1
- package/dist/sparkline-chart-CeCDeMNk.cjs +102 -0
- package/dist/{sparkline-chart-ca3uTzVK.cjs.map → sparkline-chart-CeCDeMNk.cjs.map} +1 -1
- package/dist/{sparkline-chart-Da-ehDGv.js → sparkline-chart-DUS4CoW_.js} +7799 -9094
- package/dist/{sparkline-chart-Da-ehDGv.js.map → sparkline-chart-DUS4CoW_.js.map} +1 -1
- package/dist/styles.css +1 -0
- package/dist/trending-up-BBjz_E69.cjs +7 -0
- package/dist/{trending-up-D3Nfrhi3.cjs.map → trending-up-BBjz_E69.cjs.map} +1 -1
- package/dist/trending-up-BHFXgLWy.js +15 -0
- package/dist/{trending-up-DPwlYzQb.js.map → trending-up-BHFXgLWy.js.map} +1 -1
- package/dist/{use-formatters-l1_2c8z0.js → use-formatters-Bgj3JA4i.js} +731 -746
- package/dist/{use-formatters-l1_2c8z0.js.map → use-formatters-Bgj3JA4i.js.map} +1 -1
- package/dist/use-formatters-CObUgipW.cjs +2 -0
- package/dist/{use-formatters-d97RVcmg.cjs.map → use-formatters-CObUgipW.cjs.map} +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +1 -1
- package/dist/welcome-card-CNuEa6Ck.cjs +67 -0
- package/dist/{welcome-card-CPolYl1D.cjs.map → welcome-card-CNuEa6Ck.cjs.map} +1 -1
- package/dist/{welcome-card-CxMJZ8bv.js → welcome-card-Cp6t6G3j.js} +197 -119
- package/dist/{welcome-card-CxMJZ8bv.js.map → welcome-card-Cp6t6G3j.js.map} +1 -1
- package/package.json +14 -12
- package/dist/avatar-C0aVNCG9.cjs +0 -2
- package/dist/avatar-CN6wcrqY.js +0 -288
- package/dist/calendar-BUm7YrNf.cjs +0 -2
- package/dist/calendar-ChJkFXXr.js +0 -11
- package/dist/calendar-SwL5isYC.cjs +0 -2
- package/dist/checkbox-D7-LQyCl.cjs +0 -2
- package/dist/chevron-down-DHdXqOqK.cjs +0 -2
- package/dist/chevron-down-DJ1_YIFu.js +0 -8
- package/dist/chevron-right-B3bovvh0.js +0 -8
- package/dist/chevron-right-Dvyd11q0.cjs +0 -2
- package/dist/chevron-up-B9fuiZhc.cjs +0 -2
- package/dist/chevron-up-CGtXOr51.js +0 -6
- package/dist/createLucideIcon-i5GEhNMV.cjs +0 -2
- package/dist/ellipsis-BW2gWki8.cjs +0 -2
- package/dist/ellipsis-CiKEaUNP.js +0 -10
- package/dist/file-V_hhCUhr.cjs +0 -2
- package/dist/file-wzTXnWqz.js +0 -9
- package/dist/filter-tags-DjUaNXHR.cjs +0 -5
- package/dist/full-calendar-Cpeh5xMP.cjs +0 -8
- package/dist/global-search-UNXjoFlI.cjs +0 -2
- package/dist/global-search-UNXjoFlI.cjs.map +0 -1
- package/dist/global-search-h1rVbP2q.js.map +0 -1
- package/dist/index-CwJPJKOE.js.map +0 -1
- package/dist/index-CzVK9Zyb.cjs +0 -6
- package/dist/index-l828OqQN.js +0 -288
- package/dist/index-lGzB9daF.cjs +0 -2
- package/dist/index-lGzB9daF.cjs.map +0 -1
- package/dist/input-CZrckPLk.cjs +0 -42
- package/dist/input-D4AoiWxo.js +0 -3629
- package/dist/locale-provider-DHMwuneF.cjs +0 -2
- package/dist/locale-selector-Ppe0KTi-.cjs +0 -2
- package/dist/locale-selector-xn2GpdP9.js +0 -1745
- package/dist/minus-BXBFZSZs.cjs +0 -2
- package/dist/minus-DvlYtl96.js +0 -6
- package/dist/multi-container-DMKL8c9B.cjs +0 -2
- package/dist/pipeline-By5_8AFg.cjs +0 -2
- package/dist/pipeline-D-QNSU0U.js +0 -1036
- package/dist/plus-8wKRkVu-.cjs +0 -2
- package/dist/plus-CJD68KQD.js +0 -9
- package/dist/popover-ivh-plLc.cjs +0 -2
- package/dist/progress-CFnuLqnS.cjs +0 -7
- package/dist/progress-D5AsrWa6.js +0 -222
- package/dist/scroll-area-DYOiJMXh.cjs +0 -2
- package/dist/select-C1rNBi6c.js +0 -974
- package/dist/select-m-Mqwxu3.cjs +0 -2
- package/dist/separator-DBUivkHq.cjs +0 -2
- package/dist/sortable.esm-DcQYlXi3.cjs +0 -6
- package/dist/sparkline-chart-ca3uTzVK.cjs +0 -68
- package/dist/trending-up-D3Nfrhi3.cjs +0 -2
- package/dist/trending-up-DPwlYzQb.js +0 -9
- package/dist/ui.css +0 -1
- package/dist/use-formatters-d97RVcmg.cjs +0 -2
- package/dist/welcome-card-CPolYl1D.cjs +0 -2
|
@@ -1,24 +1,36 @@
|
|
|
1
|
-
import { jsx as c, jsxs as C, Fragment as
|
|
1
|
+
import { jsx as c, jsxs as C, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import * as F from "react";
|
|
3
|
-
import { c as y } from "./index-
|
|
4
|
-
import { a as
|
|
5
|
-
import { C as
|
|
6
|
-
import { I as Qe, D as
|
|
7
|
-
import { S as Fe, c as ye, b as $e, d as Ve, f as Me } from "./select-
|
|
8
|
-
import { C as Pe } from "./chevron-down-
|
|
9
|
-
import { c as
|
|
10
|
-
import { E as Ie } from "./ellipsis-
|
|
11
|
-
import { C as Ne, a as Ze, c as Je, e as De } from "./card-
|
|
12
|
-
import { T as We } from "./trending-up-
|
|
13
|
-
import { M as Ye } from "./minus-
|
|
14
|
-
import { A as et, a as tt, b as nt } from "./avatar-
|
|
15
|
-
|
|
3
|
+
import { c as y } from "./index-DtaLkIY8.js";
|
|
4
|
+
import { a as N, S as Ke, X as K, B as Re } from "./scroll-area-A3jGu-Ta.js";
|
|
5
|
+
import { C as Q } from "./checkbox-BY2zxQVv.js";
|
|
6
|
+
import { I as Qe, D as O, a as T, b as B, d as xe, f as ce, g as Z, c as _e } from "./input-BgPy-4Qu.js";
|
|
7
|
+
import { S as Fe, c as ye, b as $e, d as Ve, f as Me } from "./select-BJpZrtep.js";
|
|
8
|
+
import { C as Pe } from "./chevron-down-BiUlxZA-.js";
|
|
9
|
+
import { c as b } from "./createLucideIcon-BC8wu-bu.js";
|
|
10
|
+
import { E as Ie } from "./ellipsis-6eUne95u.js";
|
|
11
|
+
import { C as Ne, a as Ze, c as Je, e as De } from "./card-fId5vof_.js";
|
|
12
|
+
import { T as We } from "./trending-up-BHFXgLWy.js";
|
|
13
|
+
import { M as Ye } from "./minus-CiwV65ZG.js";
|
|
14
|
+
import { A as et, a as tt, b as nt } from "./avatar-C5-ZWIqT.js";
|
|
15
|
+
/**
|
|
16
|
+
* @license lucide-react v0.441.0 - ISC
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the ISC license.
|
|
19
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
const ot = b("ArrowUpDown", [
|
|
16
22
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
17
23
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
18
24
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
19
25
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
20
26
|
]);
|
|
21
|
-
|
|
27
|
+
/**
|
|
28
|
+
* @license lucide-react v0.441.0 - ISC
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the ISC license.
|
|
31
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/
|
|
33
|
+
const rt = b("EyeOff", [
|
|
22
34
|
[
|
|
23
35
|
"path",
|
|
24
36
|
{
|
|
@@ -36,7 +48,13 @@ const rt = T("EyeOff", [
|
|
|
36
48
|
],
|
|
37
49
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
38
50
|
]);
|
|
39
|
-
|
|
51
|
+
/**
|
|
52
|
+
* @license lucide-react v0.441.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/
|
|
57
|
+
const lt = b("Eye", [
|
|
40
58
|
[
|
|
41
59
|
"path",
|
|
42
60
|
{
|
|
@@ -46,28 +64,50 @@ const lt = T("Eye", [
|
|
|
46
64
|
],
|
|
47
65
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
48
66
|
]);
|
|
49
|
-
|
|
67
|
+
/**
|
|
68
|
+
* @license lucide-react v0.441.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/
|
|
73
|
+
const it = b("Settings2", [
|
|
50
74
|
["path", { d: "M20 7h-9", key: "3s1dr2" }],
|
|
51
75
|
["path", { d: "M14 17H5", key: "gfn3mx" }],
|
|
52
76
|
["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
|
|
53
77
|
["circle", { cx: "7", cy: "7", r: "3", key: "dfmy0x" }]
|
|
54
78
|
]);
|
|
55
|
-
|
|
79
|
+
/**
|
|
80
|
+
* @license lucide-react v0.441.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/
|
|
85
|
+
const st = b("TrendingDown", [
|
|
56
86
|
["polyline", { points: "22 17 13.5 8.5 8.5 13.5 2 7", key: "1r2t7k" }],
|
|
57
87
|
["polyline", { points: "16 17 22 17 22 11", key: "11uiuu" }]
|
|
58
88
|
]);
|
|
59
|
-
|
|
89
|
+
/**
|
|
90
|
+
* table-core
|
|
91
|
+
*
|
|
92
|
+
* Copyright (c) TanStack
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the MIT license found in the
|
|
95
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
96
|
+
*
|
|
97
|
+
* @license MIT
|
|
98
|
+
*/
|
|
99
|
+
function G(e, o) {
|
|
60
100
|
return typeof e == "function" ? e(o) : e;
|
|
61
101
|
}
|
|
62
|
-
function
|
|
102
|
+
function D(e, o) {
|
|
63
103
|
return (t) => {
|
|
64
104
|
o.setState((n) => ({
|
|
65
105
|
...n,
|
|
66
|
-
[e]:
|
|
106
|
+
[e]: G(t, n[e])
|
|
67
107
|
}));
|
|
68
108
|
};
|
|
69
109
|
}
|
|
70
|
-
function
|
|
110
|
+
function W(e) {
|
|
71
111
|
return e instanceof Function;
|
|
72
112
|
}
|
|
73
113
|
function at(e) {
|
|
@@ -102,7 +142,7 @@ function S(e, o, t) {
|
|
|
102
142
|
console.info(`%c⏱ ${s(p, 5)} /${s(f, 5)} ms`, `
|
|
103
143
|
font-size: .6rem;
|
|
104
144
|
font-weight: bold;
|
|
105
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t
|
|
145
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
|
|
106
146
|
}
|
|
107
147
|
return r;
|
|
108
148
|
};
|
|
@@ -111,7 +151,7 @@ function w(e, o, t, n) {
|
|
|
111
151
|
return {
|
|
112
152
|
debug: () => {
|
|
113
153
|
var r;
|
|
114
|
-
return (r = e
|
|
154
|
+
return (r = e == null ? void 0 : e.debugAll) != null ? r : e[o];
|
|
115
155
|
},
|
|
116
156
|
key: process.env.NODE_ENV === "development" && t,
|
|
117
157
|
onChange: n
|
|
@@ -180,7 +220,7 @@ function gt(e, o, t, n) {
|
|
|
180
220
|
g.createColumn == null || g.createColumn(p, e);
|
|
181
221
|
return p;
|
|
182
222
|
}
|
|
183
|
-
const
|
|
223
|
+
const I = "debugHeaders";
|
|
184
224
|
function Se(e, o, t) {
|
|
185
225
|
var n;
|
|
186
226
|
let l = {
|
|
@@ -214,32 +254,32 @@ const ct = {
|
|
|
214
254
|
createTable: (e) => {
|
|
215
255
|
e.getHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
216
256
|
var l, i;
|
|
217
|
-
const a = (l = n
|
|
218
|
-
return
|
|
219
|
-
}, w(e.options,
|
|
257
|
+
const a = (l = n == null ? void 0 : n.map((p) => t.find((g) => g.id === p)).filter(Boolean)) != null ? l : [], u = (i = r == null ? void 0 : r.map((p) => t.find((g) => g.id === p)).filter(Boolean)) != null ? i : [], d = t.filter((p) => !(n != null && n.includes(p.id)) && !(r != null && r.includes(p.id)));
|
|
258
|
+
return q(o, [...a, ...d, ...u], e);
|
|
259
|
+
}, w(e.options, I, "getHeaderGroups")), e.getCenterHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((l) => !(n != null && n.includes(l.id)) && !(r != null && r.includes(l.id))), q(o, t, e, "center")), w(e.options, I, "getCenterHeaderGroups")), e.getLeftHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
220
260
|
var r;
|
|
221
|
-
const l = (r = n
|
|
222
|
-
return
|
|
223
|
-
}, w(e.options,
|
|
261
|
+
const l = (r = n == null ? void 0 : n.map((i) => t.find((a) => a.id === i)).filter(Boolean)) != null ? r : [];
|
|
262
|
+
return q(o, l, e, "left");
|
|
263
|
+
}, w(e.options, I, "getLeftHeaderGroups")), e.getRightHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
224
264
|
var r;
|
|
225
|
-
const l = (r = n
|
|
226
|
-
return
|
|
227
|
-
}, w(e.options,
|
|
265
|
+
const l = (r = n == null ? void 0 : n.map((i) => t.find((a) => a.id === i)).filter(Boolean)) != null ? r : [];
|
|
266
|
+
return q(o, l, e, "right");
|
|
267
|
+
}, w(e.options, I, "getRightHeaderGroups")), e.getFooterGroups = S(() => [e.getHeaderGroups()], (o) => [...o].reverse(), w(e.options, I, "getFooterGroups")), e.getLeftFooterGroups = S(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), w(e.options, I, "getLeftFooterGroups")), e.getCenterFooterGroups = S(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), w(e.options, I, "getCenterFooterGroups")), e.getRightFooterGroups = S(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), w(e.options, I, "getRightFooterGroups")), e.getFlatHeaders = S(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, I, "getFlatHeaders")), e.getLeftFlatHeaders = S(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, I, "getLeftFlatHeaders")), e.getCenterFlatHeaders = S(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, I, "getCenterFlatHeaders")), e.getRightFlatHeaders = S(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, I, "getRightFlatHeaders")), e.getCenterLeafHeaders = S(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
228
268
|
var n;
|
|
229
269
|
return !((n = t.subHeaders) != null && n.length);
|
|
230
|
-
}), w(e.options,
|
|
270
|
+
}), w(e.options, I, "getCenterLeafHeaders")), e.getLeftLeafHeaders = S(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
|
|
231
271
|
var n;
|
|
232
272
|
return !((n = t.subHeaders) != null && n.length);
|
|
233
|
-
}), w(e.options,
|
|
273
|
+
}), w(e.options, I, "getLeftLeafHeaders")), e.getRightLeafHeaders = S(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
|
|
234
274
|
var n;
|
|
235
275
|
return !((n = t.subHeaders) != null && n.length);
|
|
236
|
-
}), w(e.options,
|
|
276
|
+
}), w(e.options, I, "getRightLeafHeaders")), e.getLeafHeaders = S(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
237
277
|
var r, l, i, a, u, d;
|
|
238
278
|
return [...(r = (l = o[0]) == null ? void 0 : l.headers) != null ? r : [], ...(i = (a = t[0]) == null ? void 0 : a.headers) != null ? i : [], ...(u = (d = n[0]) == null ? void 0 : d.headers) != null ? u : []].map((f) => f.getLeafHeaders()).flat();
|
|
239
|
-
}, w(e.options,
|
|
279
|
+
}, w(e.options, I, "getLeafHeaders"));
|
|
240
280
|
}
|
|
241
281
|
};
|
|
242
|
-
function
|
|
282
|
+
function q(e, o, t, n) {
|
|
243
283
|
var r, l;
|
|
244
284
|
let i = 0;
|
|
245
285
|
const a = function(g, s) {
|
|
@@ -256,22 +296,22 @@ function B(e, o, t, n) {
|
|
|
256
296
|
id: [n, `${s}`].filter(Boolean).join("_"),
|
|
257
297
|
headers: []
|
|
258
298
|
}, h = [];
|
|
259
|
-
g.forEach((
|
|
260
|
-
const
|
|
299
|
+
g.forEach((v) => {
|
|
300
|
+
const R = [...h].reverse()[0], $ = v.column.depth === m.depth;
|
|
261
301
|
let V, _ = !1;
|
|
262
|
-
if ($ &&
|
|
263
|
-
|
|
302
|
+
if ($ && v.column.parent ? V = v.column.parent : (V = v.column, _ = !0), R && (R == null ? void 0 : R.column) === V)
|
|
303
|
+
R.subHeaders.push(v);
|
|
264
304
|
else {
|
|
265
|
-
const
|
|
266
|
-
id: [n, s, V.id,
|
|
305
|
+
const P = Se(t, V, {
|
|
306
|
+
id: [n, s, V.id, v == null ? void 0 : v.id].filter(Boolean).join("_"),
|
|
267
307
|
isPlaceholder: _,
|
|
268
|
-
placeholderId: _ ? `${h.filter((
|
|
308
|
+
placeholderId: _ ? `${h.filter((A) => A.column === V).length}` : void 0,
|
|
269
309
|
depth: s,
|
|
270
310
|
index: h.length
|
|
271
311
|
});
|
|
272
|
-
|
|
312
|
+
P.subHeaders.push(v), h.push(P);
|
|
273
313
|
}
|
|
274
|
-
m.headers.push(
|
|
314
|
+
m.headers.push(v), v.headerGroup = m;
|
|
275
315
|
}), u.push(m), s > 0 && d(h, s - 1);
|
|
276
316
|
}, f = o.map((g, s) => Se(t, g, {
|
|
277
317
|
depth: i,
|
|
@@ -279,23 +319,23 @@ function B(e, o, t, n) {
|
|
|
279
319
|
}));
|
|
280
320
|
d(f, i - 1), u.reverse();
|
|
281
321
|
const p = (g) => g.filter((m) => m.column.getIsVisible()).map((m) => {
|
|
282
|
-
let h = 0,
|
|
283
|
-
m.subHeaders && m.subHeaders.length ? (
|
|
322
|
+
let h = 0, v = 0, R = [0];
|
|
323
|
+
m.subHeaders && m.subHeaders.length ? (R = [], p(m.subHeaders).forEach((V) => {
|
|
284
324
|
let {
|
|
285
325
|
colSpan: _,
|
|
286
|
-
rowSpan:
|
|
326
|
+
rowSpan: P
|
|
287
327
|
} = V;
|
|
288
|
-
h += _,
|
|
328
|
+
h += _, R.push(P);
|
|
289
329
|
})) : h = 1;
|
|
290
|
-
const $ = Math.min(...
|
|
291
|
-
return
|
|
330
|
+
const $ = Math.min(...R);
|
|
331
|
+
return v = v + $, m.colSpan = h, m.rowSpan = v, {
|
|
292
332
|
colSpan: h,
|
|
293
|
-
rowSpan:
|
|
333
|
+
rowSpan: v
|
|
294
334
|
};
|
|
295
335
|
});
|
|
296
336
|
return p((r = (l = u[0]) == null ? void 0 : l.headers) != null ? r : []), u;
|
|
297
337
|
}
|
|
298
|
-
const
|
|
338
|
+
const fe = (e, o, t, n, r, l, i) => {
|
|
299
339
|
let a = {
|
|
300
340
|
id: o,
|
|
301
341
|
index: n,
|
|
@@ -354,42 +394,42 @@ const ge = (e, o, t, n, r, l, i) => {
|
|
|
354
394
|
const l = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
|
|
355
395
|
return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(l));
|
|
356
396
|
};
|
|
357
|
-
Ee.autoRemove = (e) =>
|
|
397
|
+
Ee.autoRemove = (e) => E(e);
|
|
358
398
|
const Ae = (e, o, t) => {
|
|
359
399
|
var n;
|
|
360
400
|
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
361
401
|
};
|
|
362
|
-
Ae.autoRemove = (e) =>
|
|
402
|
+
Ae.autoRemove = (e) => E(e);
|
|
363
403
|
const He = (e, o, t) => {
|
|
364
404
|
var n;
|
|
365
|
-
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t
|
|
405
|
+
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
366
406
|
};
|
|
367
|
-
He.autoRemove = (e) =>
|
|
407
|
+
He.autoRemove = (e) => E(e);
|
|
368
408
|
const Ge = (e, o, t) => {
|
|
369
409
|
var n;
|
|
370
410
|
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
|
371
411
|
};
|
|
372
|
-
Ge.autoRemove = (e) =>
|
|
412
|
+
Ge.autoRemove = (e) => E(e);
|
|
373
413
|
const Le = (e, o, t) => !t.some((n) => {
|
|
374
414
|
var r;
|
|
375
415
|
return !((r = e.getValue(o)) != null && r.includes(n));
|
|
376
416
|
});
|
|
377
|
-
Le.autoRemove = (e) =>
|
|
417
|
+
Le.autoRemove = (e) => E(e) || !(e != null && e.length);
|
|
378
418
|
const ze = (e, o, t) => t.some((n) => {
|
|
379
419
|
var r;
|
|
380
420
|
return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
|
|
381
421
|
});
|
|
382
|
-
ze.autoRemove = (e) =>
|
|
422
|
+
ze.autoRemove = (e) => E(e) || !(e != null && e.length);
|
|
383
423
|
const ke = (e, o, t) => e.getValue(o) === t;
|
|
384
|
-
ke.autoRemove = (e) =>
|
|
424
|
+
ke.autoRemove = (e) => E(e);
|
|
385
425
|
const Oe = (e, o, t) => e.getValue(o) == t;
|
|
386
|
-
Oe.autoRemove = (e) =>
|
|
387
|
-
const
|
|
426
|
+
Oe.autoRemove = (e) => E(e);
|
|
427
|
+
const pe = (e, o, t) => {
|
|
388
428
|
let [n, r] = t;
|
|
389
429
|
const l = e.getValue(o);
|
|
390
430
|
return l >= n && l <= r;
|
|
391
431
|
};
|
|
392
|
-
|
|
432
|
+
pe.resolveFilterValue = (e) => {
|
|
393
433
|
let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, l = o === null || Number.isNaN(n) ? -1 / 0 : n, i = t === null || Number.isNaN(r) ? 1 / 0 : r;
|
|
394
434
|
if (l > i) {
|
|
395
435
|
const a = l;
|
|
@@ -397,8 +437,8 @@ ce.resolveFilterValue = (e) => {
|
|
|
397
437
|
}
|
|
398
438
|
return [l, i];
|
|
399
439
|
};
|
|
400
|
-
|
|
401
|
-
const
|
|
440
|
+
pe.autoRemove = (e) => E(e) || E(e[0]) && E(e[1]);
|
|
441
|
+
const H = {
|
|
402
442
|
includesString: Ee,
|
|
403
443
|
includesStringSensitive: Ae,
|
|
404
444
|
equalsString: He,
|
|
@@ -407,9 +447,9 @@ const E = {
|
|
|
407
447
|
arrIncludesSome: ze,
|
|
408
448
|
equals: ke,
|
|
409
449
|
weakEquals: Oe,
|
|
410
|
-
inNumberRange:
|
|
450
|
+
inNumberRange: pe
|
|
411
451
|
};
|
|
412
|
-
function
|
|
452
|
+
function E(e) {
|
|
413
453
|
return e == null || e === "";
|
|
414
454
|
}
|
|
415
455
|
const pt = {
|
|
@@ -421,19 +461,19 @@ const pt = {
|
|
|
421
461
|
...e
|
|
422
462
|
}),
|
|
423
463
|
getDefaultOptions: (e) => ({
|
|
424
|
-
onColumnFiltersChange:
|
|
464
|
+
onColumnFiltersChange: D("columnFilters", e),
|
|
425
465
|
filterFromLeafRows: !1,
|
|
426
466
|
maxLeafRowFilterDepth: 100
|
|
427
467
|
}),
|
|
428
468
|
createColumn: (e, o) => {
|
|
429
469
|
e.getAutoFilterFn = () => {
|
|
430
|
-
const t = o.getCoreRowModel().flatRows[0], n = t
|
|
431
|
-
return typeof n == "string" ?
|
|
470
|
+
const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
|
|
471
|
+
return typeof n == "string" ? H.includesString : typeof n == "number" ? H.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? H.equals : Array.isArray(n) ? H.arrIncludes : H.weakEquals;
|
|
432
472
|
}, e.getFilterFn = () => {
|
|
433
473
|
var t, n;
|
|
434
|
-
return
|
|
474
|
+
return W(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
435
475
|
// @ts-ignore
|
|
436
|
-
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t :
|
|
476
|
+
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : H[e.columnDef.filterFn]
|
|
437
477
|
);
|
|
438
478
|
}, e.getCanFilter = () => {
|
|
439
479
|
var t, n, r;
|
|
@@ -446,10 +486,10 @@ const pt = {
|
|
|
446
486
|
return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
447
487
|
}, e.setFilterValue = (t) => {
|
|
448
488
|
o.setColumnFilters((n) => {
|
|
449
|
-
const r = e.getFilterFn(), l = n
|
|
489
|
+
const r = e.getFilterFn(), l = n == null ? void 0 : n.find((f) => f.id === e.id), i = G(t, l ? l.value : void 0);
|
|
450
490
|
if (we(r, i, e)) {
|
|
451
491
|
var a;
|
|
452
|
-
return (a = n
|
|
492
|
+
return (a = n == null ? void 0 : n.filter((f) => f.id !== e.id)) != null ? a : [];
|
|
453
493
|
}
|
|
454
494
|
const u = {
|
|
455
495
|
id: e.id,
|
|
@@ -457,7 +497,7 @@ const pt = {
|
|
|
457
497
|
};
|
|
458
498
|
if (l) {
|
|
459
499
|
var d;
|
|
460
|
-
return (d = n
|
|
500
|
+
return (d = n == null ? void 0 : n.map((f) => f.id === e.id ? u : f)) != null ? d : [];
|
|
461
501
|
}
|
|
462
502
|
return n != null && n.length ? [...n, u] : [u];
|
|
463
503
|
});
|
|
@@ -470,7 +510,7 @@ const pt = {
|
|
|
470
510
|
e.setColumnFilters = (o) => {
|
|
471
511
|
const t = e.getAllLeafColumns(), n = (r) => {
|
|
472
512
|
var l;
|
|
473
|
-
return (l =
|
|
513
|
+
return (l = G(o, r)) == null ? void 0 : l.filter((i) => {
|
|
474
514
|
const a = t.find((u) => u.id === i.id);
|
|
475
515
|
if (a) {
|
|
476
516
|
const u = a.getFilterFn();
|
|
@@ -527,7 +567,7 @@ const mt = (e, o, t) => t.reduce((n, r) => {
|
|
|
527
567
|
return t[0];
|
|
528
568
|
const n = Math.floor(t.length / 2), r = t.sort((l, i) => l - i);
|
|
529
569
|
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
530
|
-
}, Rt = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), xt = (e, o) => new Set(o.map((t) => t.getValue(e))).size, _t = (e, o) => o.length,
|
|
570
|
+
}, Rt = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), xt = (e, o) => new Set(o.map((t) => t.getValue(e))).size, _t = (e, o) => o.length, Y = {
|
|
531
571
|
sum: mt,
|
|
532
572
|
min: ht,
|
|
533
573
|
max: Ct,
|
|
@@ -550,7 +590,7 @@ const mt = (e, o, t) => t.reduce((n, r) => {
|
|
|
550
590
|
...e
|
|
551
591
|
}),
|
|
552
592
|
getDefaultOptions: (e) => ({
|
|
553
|
-
onGroupingChange:
|
|
593
|
+
onGroupingChange: D("grouping", e),
|
|
554
594
|
groupedColumnMode: "reorder"
|
|
555
595
|
}),
|
|
556
596
|
createColumn: (e, o) => {
|
|
@@ -571,16 +611,16 @@ const mt = (e, o, t) => t.reduce((n, r) => {
|
|
|
571
611
|
t && e.toggleGrouping();
|
|
572
612
|
};
|
|
573
613
|
}, e.getAutoAggregationFn = () => {
|
|
574
|
-
const t = o.getCoreRowModel().flatRows[0], n = t
|
|
614
|
+
const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
|
|
575
615
|
if (typeof n == "number")
|
|
576
|
-
return
|
|
616
|
+
return Y.sum;
|
|
577
617
|
if (Object.prototype.toString.call(n) === "[object Date]")
|
|
578
|
-
return
|
|
618
|
+
return Y.extent;
|
|
579
619
|
}, e.getAggregationFn = () => {
|
|
580
620
|
var t, n;
|
|
581
621
|
if (!e)
|
|
582
622
|
throw new Error();
|
|
583
|
-
return
|
|
623
|
+
return W(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 : Y[e.columnDef.aggregationFn];
|
|
584
624
|
};
|
|
585
625
|
},
|
|
586
626
|
createTable: (e) => {
|
|
@@ -616,15 +656,15 @@ const $t = {
|
|
|
616
656
|
...e
|
|
617
657
|
}),
|
|
618
658
|
getDefaultOptions: (e) => ({
|
|
619
|
-
onColumnOrderChange:
|
|
659
|
+
onColumnOrderChange: D("columnOrder", e)
|
|
620
660
|
}),
|
|
621
661
|
createColumn: (e, o) => {
|
|
622
|
-
e.getIndex = S((t) => [
|
|
662
|
+
e.getIndex = S((t) => [k(o, t)], (t) => t.findIndex((n) => n.id === e.id), w(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
623
663
|
var n;
|
|
624
|
-
return ((n =
|
|
664
|
+
return ((n = k(o, t)[0]) == null ? void 0 : n.id) === e.id;
|
|
625
665
|
}, e.getIsLastColumn = (t) => {
|
|
626
666
|
var n;
|
|
627
|
-
const r =
|
|
667
|
+
const r = k(o, t);
|
|
628
668
|
return ((n = r[r.length - 1]) == null ? void 0 : n.id) === e.id;
|
|
629
669
|
};
|
|
630
670
|
},
|
|
@@ -647,16 +687,16 @@ const $t = {
|
|
|
647
687
|
return yt(l, t, n);
|
|
648
688
|
}, w(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
649
689
|
}
|
|
650
|
-
},
|
|
690
|
+
}, ee = () => ({
|
|
651
691
|
left: [],
|
|
652
692
|
right: []
|
|
653
693
|
}), Vt = {
|
|
654
694
|
getInitialState: (e) => ({
|
|
655
|
-
columnPinning:
|
|
695
|
+
columnPinning: ee(),
|
|
656
696
|
...e
|
|
657
697
|
}),
|
|
658
698
|
getDefaultOptions: (e) => ({
|
|
659
|
-
onColumnPinningChange:
|
|
699
|
+
onColumnPinningChange: D("columnPinning", e)
|
|
660
700
|
}),
|
|
661
701
|
createColumn: (e, o) => {
|
|
662
702
|
e.pin = (t) => {
|
|
@@ -666,20 +706,20 @@ const $t = {
|
|
|
666
706
|
if (t === "right") {
|
|
667
707
|
var a, u;
|
|
668
708
|
return {
|
|
669
|
-
left: ((a = r
|
|
670
|
-
right: [...((u = r
|
|
709
|
+
left: ((a = r == null ? void 0 : r.left) != null ? a : []).filter((p) => !(n != null && n.includes(p))),
|
|
710
|
+
right: [...((u = r == null ? void 0 : r.right) != null ? u : []).filter((p) => !(n != null && n.includes(p))), ...n]
|
|
671
711
|
};
|
|
672
712
|
}
|
|
673
713
|
if (t === "left") {
|
|
674
714
|
var d, f;
|
|
675
715
|
return {
|
|
676
|
-
left: [...((d = r
|
|
677
|
-
right: ((f = r
|
|
716
|
+
left: [...((d = r == null ? void 0 : r.left) != null ? d : []).filter((p) => !(n != null && n.includes(p))), ...n],
|
|
717
|
+
right: ((f = r == null ? void 0 : r.right) != null ? f : []).filter((p) => !(n != null && n.includes(p)))
|
|
678
718
|
};
|
|
679
719
|
}
|
|
680
720
|
return {
|
|
681
|
-
left: ((l = r
|
|
682
|
-
right: ((i = r
|
|
721
|
+
left: ((l = r == null ? void 0 : r.left) != null ? l : []).filter((p) => !(n != null && n.includes(p))),
|
|
722
|
+
right: ((i = r == null ? void 0 : r.right) != null ? i : []).filter((p) => !(n != null && n.includes(p)))
|
|
683
723
|
};
|
|
684
724
|
});
|
|
685
725
|
}, e.getCanPin = () => e.getLeafColumns().some((n) => {
|
|
@@ -689,7 +729,7 @@ const $t = {
|
|
|
689
729
|
const t = e.getLeafColumns().map((a) => a.id), {
|
|
690
730
|
left: n,
|
|
691
731
|
right: r
|
|
692
|
-
} = o.getState().columnPinning, l = t.some((a) => n
|
|
732
|
+
} = o.getState().columnPinning, l = t.some((a) => n == null ? void 0 : n.includes(a)), i = t.some((a) => r == null ? void 0 : r.includes(a));
|
|
693
733
|
return l ? "left" : i ? "right" : !1;
|
|
694
734
|
}, e.getPinnedIndex = () => {
|
|
695
735
|
var t, n;
|
|
@@ -712,7 +752,7 @@ const $t = {
|
|
|
712
752
|
createTable: (e) => {
|
|
713
753
|
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
714
754
|
var t, n;
|
|
715
|
-
return e.setColumnPinning(o ?
|
|
755
|
+
return e.setColumnPinning(o ? ee() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : ee());
|
|
716
756
|
}, e.getIsSomeColumnsPinned = (o) => {
|
|
717
757
|
var t;
|
|
718
758
|
const n = e.getState().columnPinning;
|
|
@@ -730,11 +770,11 @@ const $t = {
|
|
|
730
770
|
function Mt(e) {
|
|
731
771
|
return e || (typeof document < "u" ? document : null);
|
|
732
772
|
}
|
|
733
|
-
const
|
|
773
|
+
const j = {
|
|
734
774
|
size: 150,
|
|
735
775
|
minSize: 20,
|
|
736
776
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
737
|
-
},
|
|
777
|
+
}, te = () => ({
|
|
738
778
|
startOffset: null,
|
|
739
779
|
startSize: null,
|
|
740
780
|
deltaOffset: null,
|
|
@@ -742,24 +782,24 @@ const b = {
|
|
|
742
782
|
isResizingColumn: !1,
|
|
743
783
|
columnSizingStart: []
|
|
744
784
|
}), Pt = {
|
|
745
|
-
getDefaultColumnDef: () =>
|
|
785
|
+
getDefaultColumnDef: () => j,
|
|
746
786
|
getInitialState: (e) => ({
|
|
747
787
|
columnSizing: {},
|
|
748
|
-
columnSizingInfo:
|
|
788
|
+
columnSizingInfo: te(),
|
|
749
789
|
...e
|
|
750
790
|
}),
|
|
751
791
|
getDefaultOptions: (e) => ({
|
|
752
792
|
columnResizeMode: "onEnd",
|
|
753
793
|
columnResizeDirection: "ltr",
|
|
754
|
-
onColumnSizingChange:
|
|
755
|
-
onColumnSizingInfoChange:
|
|
794
|
+
onColumnSizingChange: D("columnSizing", e),
|
|
795
|
+
onColumnSizingInfoChange: D("columnSizingInfo", e)
|
|
756
796
|
}),
|
|
757
797
|
createColumn: (e, o) => {
|
|
758
798
|
e.getSize = () => {
|
|
759
799
|
var t, n, r;
|
|
760
800
|
const l = o.getState().columnSizing[e.id];
|
|
761
|
-
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t :
|
|
762
|
-
}, e.getStart = S((t) => [t,
|
|
801
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : j.minSize, (n = l ?? e.columnDef.size) != null ? n : j.size), (r = e.columnDef.maxSize) != null ? r : j.maxSize);
|
|
802
|
+
}, e.getStart = S((t) => [t, k(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, l) => r + l.getSize(), 0), w(o.options, "debugColumns", "getStart")), e.getAfter = S((t) => [t, k(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, l) => r + l.getSize(), 0), w(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
763
803
|
o.setColumnSizing((t) => {
|
|
764
804
|
let {
|
|
765
805
|
[e.id]: n,
|
|
@@ -791,28 +831,28 @@ const b = {
|
|
|
791
831
|
}
|
|
792
832
|
return 0;
|
|
793
833
|
}, e.getResizeHandler = (t) => {
|
|
794
|
-
const n = o.getColumn(e.column.id), r = n
|
|
834
|
+
const n = o.getColumn(e.column.id), r = n == null ? void 0 : n.getCanResize();
|
|
795
835
|
return (l) => {
|
|
796
|
-
if (!n || !r || (l.persist == null || l.persist(),
|
|
836
|
+
if (!n || !r || (l.persist == null || l.persist(), ne(l) && l.touches && l.touches.length > 1))
|
|
797
837
|
return;
|
|
798
|
-
const i = e.getSize(), a = e ? e.getLeafHeaders().map((
|
|
838
|
+
const i = e.getSize(), a = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u = ne(l) ? Math.round(l.touches[0].clientX) : l.clientX, d = {}, f = (R, $) => {
|
|
799
839
|
typeof $ == "number" && (o.setColumnSizingInfo((V) => {
|
|
800
|
-
var _,
|
|
801
|
-
const
|
|
840
|
+
var _, P;
|
|
841
|
+
const A = o.options.columnResizeDirection === "rtl" ? -1 : 1, x = ($ - ((_ = V == null ? void 0 : V.startOffset) != null ? _ : 0)) * A, M = Math.max(x / ((P = V == null ? void 0 : V.startSize) != null ? P : 0), -0.999999);
|
|
802
842
|
return V.columnSizingStart.forEach((Ue) => {
|
|
803
843
|
let [Xe, Ce] = Ue;
|
|
804
|
-
d[Xe] = Math.round(Math.max(Ce + Ce *
|
|
844
|
+
d[Xe] = Math.round(Math.max(Ce + Ce * M, 0) * 100) / 100;
|
|
805
845
|
}), {
|
|
806
846
|
...V,
|
|
807
|
-
deltaOffset:
|
|
808
|
-
deltaPercentage:
|
|
847
|
+
deltaOffset: x,
|
|
848
|
+
deltaPercentage: M
|
|
809
849
|
};
|
|
810
|
-
}), (o.options.columnResizeMode === "onChange" ||
|
|
850
|
+
}), (o.options.columnResizeMode === "onChange" || R === "end") && o.setColumnSizing((V) => ({
|
|
811
851
|
...V,
|
|
812
852
|
...d
|
|
813
853
|
})));
|
|
814
|
-
}, p = (
|
|
815
|
-
f("end",
|
|
854
|
+
}, p = (R) => f("move", R), g = (R) => {
|
|
855
|
+
f("end", R), o.setColumnSizingInfo(($) => ({
|
|
816
856
|
...$,
|
|
817
857
|
isResizingColumn: !1,
|
|
818
858
|
startOffset: null,
|
|
@@ -822,21 +862,21 @@ const b = {
|
|
|
822
862
|
columnSizingStart: []
|
|
823
863
|
}));
|
|
824
864
|
}, s = Mt(t), m = {
|
|
825
|
-
moveHandler: (
|
|
826
|
-
upHandler: (
|
|
827
|
-
s
|
|
865
|
+
moveHandler: (R) => p(R.clientX),
|
|
866
|
+
upHandler: (R) => {
|
|
867
|
+
s == null || s.removeEventListener("mousemove", m.moveHandler), s == null || s.removeEventListener("mouseup", m.upHandler), g(R.clientX);
|
|
828
868
|
}
|
|
829
869
|
}, h = {
|
|
830
|
-
moveHandler: (
|
|
831
|
-
upHandler: (
|
|
870
|
+
moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), p(R.touches[0].clientX), !1),
|
|
871
|
+
upHandler: (R) => {
|
|
832
872
|
var $;
|
|
833
|
-
s
|
|
873
|
+
s == null || s.removeEventListener("touchmove", h.moveHandler), s == null || s.removeEventListener("touchend", h.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), g(($ = R.touches[0]) == null ? void 0 : $.clientX);
|
|
834
874
|
}
|
|
835
|
-
},
|
|
875
|
+
}, v = It() ? {
|
|
836
876
|
passive: !1
|
|
837
877
|
} : !1;
|
|
838
|
-
|
|
839
|
-
...
|
|
878
|
+
ne(l) ? (s == null || s.addEventListener("touchmove", h.moveHandler, v), s == null || s.addEventListener("touchend", h.upHandler, v)) : (s == null || s.addEventListener("mousemove", m.moveHandler, v), s == null || s.addEventListener("mouseup", m.upHandler, v)), o.setColumnSizingInfo((R) => ({
|
|
879
|
+
...R,
|
|
840
880
|
startOffset: u,
|
|
841
881
|
startSize: i,
|
|
842
882
|
deltaOffset: 0,
|
|
@@ -853,7 +893,7 @@ const b = {
|
|
|
853
893
|
e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
854
894
|
}, e.resetHeaderSizeInfo = (o) => {
|
|
855
895
|
var t;
|
|
856
|
-
e.setColumnSizingInfo(o ?
|
|
896
|
+
e.setColumnSizingInfo(o ? te() : (t = e.initialState.columnSizingInfo) != null ? t : te());
|
|
857
897
|
}, e.getTotalSize = () => {
|
|
858
898
|
var o, t;
|
|
859
899
|
return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
|
@@ -869,9 +909,9 @@ const b = {
|
|
|
869
909
|
};
|
|
870
910
|
}
|
|
871
911
|
};
|
|
872
|
-
let
|
|
912
|
+
let U = null;
|
|
873
913
|
function It() {
|
|
874
|
-
if (typeof
|
|
914
|
+
if (typeof U == "boolean") return U;
|
|
875
915
|
let e = !1;
|
|
876
916
|
try {
|
|
877
917
|
const o = {
|
|
@@ -884,9 +924,9 @@ function It() {
|
|
|
884
924
|
} catch {
|
|
885
925
|
e = !1;
|
|
886
926
|
}
|
|
887
|
-
return
|
|
927
|
+
return U = e, U;
|
|
888
928
|
}
|
|
889
|
-
function
|
|
929
|
+
function ne(e) {
|
|
890
930
|
return e.type === "touchstart";
|
|
891
931
|
}
|
|
892
932
|
const Nt = {
|
|
@@ -895,7 +935,7 @@ const Nt = {
|
|
|
895
935
|
...e
|
|
896
936
|
}),
|
|
897
937
|
getDefaultOptions: (e) => ({
|
|
898
|
-
onColumnVisibilityChange:
|
|
938
|
+
onColumnVisibilityChange: D("columnVisibility", e)
|
|
899
939
|
}),
|
|
900
940
|
createColumn: (e, o) => {
|
|
901
941
|
e.toggleVisibility = (t) => {
|
|
@@ -934,7 +974,7 @@ const Nt = {
|
|
|
934
974
|
};
|
|
935
975
|
}
|
|
936
976
|
};
|
|
937
|
-
function
|
|
977
|
+
function k(e, o) {
|
|
938
978
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
939
979
|
}
|
|
940
980
|
const Dt = {
|
|
@@ -950,7 +990,7 @@ const Dt = {
|
|
|
950
990
|
...e
|
|
951
991
|
}),
|
|
952
992
|
getDefaultOptions: (e) => ({
|
|
953
|
-
onGlobalFilterChange:
|
|
993
|
+
onGlobalFilterChange: D("globalFilter", e),
|
|
954
994
|
globalFilterFn: "auto",
|
|
955
995
|
getColumnCanGlobalFilter: (o) => {
|
|
956
996
|
var t;
|
|
@@ -965,12 +1005,12 @@ const Dt = {
|
|
|
965
1005
|
};
|
|
966
1006
|
},
|
|
967
1007
|
createTable: (e) => {
|
|
968
|
-
e.getGlobalAutoFilterFn = () =>
|
|
1008
|
+
e.getGlobalAutoFilterFn = () => H.includesString, e.getGlobalFilterFn = () => {
|
|
969
1009
|
var o, t;
|
|
970
1010
|
const {
|
|
971
1011
|
globalFilterFn: n
|
|
972
1012
|
} = e.options;
|
|
973
|
-
return
|
|
1013
|
+
return W(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : H[n];
|
|
974
1014
|
}, e.setGlobalFilter = (o) => {
|
|
975
1015
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
|
|
976
1016
|
}, e.resetGlobalFilter = (o) => {
|
|
@@ -983,7 +1023,7 @@ const Dt = {
|
|
|
983
1023
|
...e
|
|
984
1024
|
}),
|
|
985
1025
|
getDefaultOptions: (e) => ({
|
|
986
|
-
onExpandedChange:
|
|
1026
|
+
onExpandedChange: D("expanded", e),
|
|
987
1027
|
paginateExpandedRows: !0
|
|
988
1028
|
}),
|
|
989
1029
|
createTable: (e) => {
|
|
@@ -1048,7 +1088,7 @@ const Dt = {
|
|
|
1048
1088
|
}, e.getIsExpanded = () => {
|
|
1049
1089
|
var t;
|
|
1050
1090
|
const n = o.getState().expanded;
|
|
1051
|
-
return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n
|
|
1091
|
+
return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n != null && n[e.id]);
|
|
1052
1092
|
}, e.getCanExpand = () => {
|
|
1053
1093
|
var t, n, r;
|
|
1054
1094
|
return (t = o.options.getRowCanExpand == null ? void 0 : o.options.getRowCanExpand(e)) != null ? t : ((n = o.options.enableExpanding) != null ? n : !0) && !!((r = e.subRows) != null && r.length);
|
|
@@ -1064,19 +1104,19 @@ const Dt = {
|
|
|
1064
1104
|
};
|
|
1065
1105
|
};
|
|
1066
1106
|
}
|
|
1067
|
-
},
|
|
1068
|
-
pageIndex:
|
|
1069
|
-
pageSize:
|
|
1107
|
+
}, ie = 0, se = 10, oe = () => ({
|
|
1108
|
+
pageIndex: ie,
|
|
1109
|
+
pageSize: se
|
|
1070
1110
|
}), Ht = {
|
|
1071
1111
|
getInitialState: (e) => ({
|
|
1072
1112
|
...e,
|
|
1073
1113
|
pagination: {
|
|
1074
|
-
...
|
|
1075
|
-
...e
|
|
1114
|
+
...oe(),
|
|
1115
|
+
...e == null ? void 0 : e.pagination
|
|
1076
1116
|
}
|
|
1077
1117
|
}),
|
|
1078
1118
|
getDefaultOptions: (e) => ({
|
|
1079
|
-
onPaginationChange:
|
|
1119
|
+
onPaginationChange: D("pagination", e)
|
|
1080
1120
|
}),
|
|
1081
1121
|
createTable: (e) => {
|
|
1082
1122
|
let o = !1, t = !1;
|
|
@@ -1095,14 +1135,14 @@ const Dt = {
|
|
|
1095
1135
|
});
|
|
1096
1136
|
}
|
|
1097
1137
|
}, e.setPagination = (n) => {
|
|
1098
|
-
const r = (l) =>
|
|
1138
|
+
const r = (l) => G(n, l);
|
|
1099
1139
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
1100
1140
|
}, e.resetPagination = (n) => {
|
|
1101
1141
|
var r;
|
|
1102
|
-
e.setPagination(n ?
|
|
1142
|
+
e.setPagination(n ? oe() : (r = e.initialState.pagination) != null ? r : oe());
|
|
1103
1143
|
}, e.setPageIndex = (n) => {
|
|
1104
1144
|
e.setPagination((r) => {
|
|
1105
|
-
let l =
|
|
1145
|
+
let l = G(n, r.pageIndex);
|
|
1106
1146
|
const i = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
1107
1147
|
return l = Math.max(0, Math.min(l, i)), {
|
|
1108
1148
|
...r,
|
|
@@ -1111,13 +1151,13 @@ const Dt = {
|
|
|
1111
1151
|
});
|
|
1112
1152
|
}, e.resetPageIndex = (n) => {
|
|
1113
1153
|
var r, l;
|
|
1114
|
-
e.setPageIndex(n ?
|
|
1154
|
+
e.setPageIndex(n ? ie : (r = (l = e.initialState) == null || (l = l.pagination) == null ? void 0 : l.pageIndex) != null ? r : ie);
|
|
1115
1155
|
}, e.resetPageSize = (n) => {
|
|
1116
1156
|
var r, l;
|
|
1117
|
-
e.setPageSize(n ?
|
|
1157
|
+
e.setPageSize(n ? se : (r = (l = e.initialState) == null || (l = l.pagination) == null ? void 0 : l.pageSize) != null ? r : se);
|
|
1118
1158
|
}, e.setPageSize = (n) => {
|
|
1119
1159
|
e.setPagination((r) => {
|
|
1120
|
-
const l = Math.max(1,
|
|
1160
|
+
const l = Math.max(1, G(n, r.pageSize)), i = r.pageSize * r.pageIndex, a = Math.floor(i / l);
|
|
1121
1161
|
return {
|
|
1122
1162
|
...r,
|
|
1123
1163
|
pageIndex: a,
|
|
@@ -1126,7 +1166,7 @@ const Dt = {
|
|
|
1126
1166
|
});
|
|
1127
1167
|
}, e.setPageCount = (n) => e.setPagination((r) => {
|
|
1128
1168
|
var l;
|
|
1129
|
-
let i =
|
|
1169
|
+
let i = G(n, (l = e.options.pageCount) != null ? l : -1);
|
|
1130
1170
|
return typeof i == "number" && (i = Math.max(-1, i)), {
|
|
1131
1171
|
...r,
|
|
1132
1172
|
pageCount: i
|
|
@@ -1147,16 +1187,16 @@ const Dt = {
|
|
|
1147
1187
|
return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
|
|
1148
1188
|
};
|
|
1149
1189
|
}
|
|
1150
|
-
},
|
|
1190
|
+
}, re = () => ({
|
|
1151
1191
|
top: [],
|
|
1152
1192
|
bottom: []
|
|
1153
1193
|
}), Gt = {
|
|
1154
1194
|
getInitialState: (e) => ({
|
|
1155
|
-
rowPinning:
|
|
1195
|
+
rowPinning: re(),
|
|
1156
1196
|
...e
|
|
1157
1197
|
}),
|
|
1158
1198
|
getDefaultOptions: (e) => ({
|
|
1159
|
-
onRowPinningChange:
|
|
1199
|
+
onRowPinningChange: D("rowPinning", e)
|
|
1160
1200
|
}),
|
|
1161
1201
|
createRow: (e, o) => {
|
|
1162
1202
|
e.pin = (t, n, r) => {
|
|
@@ -1176,20 +1216,20 @@ const Dt = {
|
|
|
1176
1216
|
if (t === "bottom") {
|
|
1177
1217
|
var p, g;
|
|
1178
1218
|
return {
|
|
1179
|
-
top: ((p = u
|
|
1180
|
-
bottom: [...((g = u
|
|
1219
|
+
top: ((p = u == null ? void 0 : u.top) != null ? p : []).filter((h) => !(a != null && a.has(h))),
|
|
1220
|
+
bottom: [...((g = u == null ? void 0 : u.bottom) != null ? g : []).filter((h) => !(a != null && a.has(h))), ...Array.from(a)]
|
|
1181
1221
|
};
|
|
1182
1222
|
}
|
|
1183
1223
|
if (t === "top") {
|
|
1184
1224
|
var s, m;
|
|
1185
1225
|
return {
|
|
1186
|
-
top: [...((s = u
|
|
1187
|
-
bottom: ((m = u
|
|
1226
|
+
top: [...((s = u == null ? void 0 : u.top) != null ? s : []).filter((h) => !(a != null && a.has(h))), ...Array.from(a)],
|
|
1227
|
+
bottom: ((m = u == null ? void 0 : u.bottom) != null ? m : []).filter((h) => !(a != null && a.has(h)))
|
|
1188
1228
|
};
|
|
1189
1229
|
}
|
|
1190
1230
|
return {
|
|
1191
|
-
top: ((d = u
|
|
1192
|
-
bottom: ((f = u
|
|
1231
|
+
top: ((d = u == null ? void 0 : u.top) != null ? d : []).filter((h) => !(a != null && a.has(h))),
|
|
1232
|
+
bottom: ((f = u == null ? void 0 : u.bottom) != null ? f : []).filter((h) => !(a != null && a.has(h)))
|
|
1193
1233
|
};
|
|
1194
1234
|
});
|
|
1195
1235
|
}, e.getCanPin = () => {
|
|
@@ -1203,7 +1243,7 @@ const Dt = {
|
|
|
1203
1243
|
const t = [e.id], {
|
|
1204
1244
|
top: n,
|
|
1205
1245
|
bottom: r
|
|
1206
|
-
} = o.getState().rowPinning, l = t.some((a) => n
|
|
1246
|
+
} = o.getState().rowPinning, l = t.some((a) => n == null ? void 0 : n.includes(a)), i = t.some((a) => r == null ? void 0 : r.includes(a));
|
|
1207
1247
|
return l ? "top" : i ? "bottom" : !1;
|
|
1208
1248
|
}, e.getPinnedIndex = () => {
|
|
1209
1249
|
var t, n;
|
|
@@ -1215,13 +1255,13 @@ const Dt = {
|
|
|
1215
1255
|
} = i;
|
|
1216
1256
|
return a;
|
|
1217
1257
|
});
|
|
1218
|
-
return (n = l
|
|
1258
|
+
return (n = l == null ? void 0 : l.indexOf(e.id)) != null ? n : -1;
|
|
1219
1259
|
};
|
|
1220
1260
|
},
|
|
1221
1261
|
createTable: (e) => {
|
|
1222
1262
|
e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
|
|
1223
1263
|
var t, n;
|
|
1224
|
-
return e.setRowPinning(o ?
|
|
1264
|
+
return e.setRowPinning(o ? re() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : re());
|
|
1225
1265
|
}, e.getIsSomeRowsPinned = (o) => {
|
|
1226
1266
|
var t;
|
|
1227
1267
|
const n = e.getState().rowPinning;
|
|
@@ -1257,7 +1297,7 @@ const Dt = {
|
|
|
1257
1297
|
...e
|
|
1258
1298
|
}),
|
|
1259
1299
|
getDefaultOptions: (e) => ({
|
|
1260
|
-
onRowSelectionChange:
|
|
1300
|
+
onRowSelectionChange: D("rowSelection", e),
|
|
1261
1301
|
enableRowSelection: !0,
|
|
1262
1302
|
enableMultiRowSelection: !0,
|
|
1263
1303
|
enableSubRowSelection: !0
|
|
@@ -1286,17 +1326,17 @@ const Dt = {
|
|
|
1286
1326
|
...t
|
|
1287
1327
|
};
|
|
1288
1328
|
return e.getRowModel().rows.forEach((l) => {
|
|
1289
|
-
|
|
1329
|
+
ae(r, l.id, n, !0, e);
|
|
1290
1330
|
}), r;
|
|
1291
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ?
|
|
1331
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? le(e, t) : {
|
|
1292
1332
|
rows: [],
|
|
1293
1333
|
flatRows: [],
|
|
1294
1334
|
rowsById: {}
|
|
1295
|
-
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ?
|
|
1335
|
+
}, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? le(e, t) : {
|
|
1296
1336
|
rows: [],
|
|
1297
1337
|
flatRows: [],
|
|
1298
1338
|
rowsById: {}
|
|
1299
|
-
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ?
|
|
1339
|
+
}, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? le(e, t) : {
|
|
1300
1340
|
rows: [],
|
|
1301
1341
|
flatRows: [],
|
|
1302
1342
|
rowsById: {}
|
|
@@ -1335,23 +1375,23 @@ const Dt = {
|
|
|
1335
1375
|
const a = {
|
|
1336
1376
|
...l
|
|
1337
1377
|
};
|
|
1338
|
-
return
|
|
1378
|
+
return ae(a, e.id, t, (i = n == null ? void 0 : n.selectChildren) != null ? i : !0, o), a;
|
|
1339
1379
|
});
|
|
1340
1380
|
}, e.getIsSelected = () => {
|
|
1341
1381
|
const {
|
|
1342
1382
|
rowSelection: t
|
|
1343
1383
|
} = o.getState();
|
|
1344
|
-
return
|
|
1384
|
+
return me(e, t);
|
|
1345
1385
|
}, e.getIsSomeSelected = () => {
|
|
1346
1386
|
const {
|
|
1347
1387
|
rowSelection: t
|
|
1348
1388
|
} = o.getState();
|
|
1349
|
-
return
|
|
1389
|
+
return ue(e, t) === "some";
|
|
1350
1390
|
}, e.getIsAllSubRowsSelected = () => {
|
|
1351
1391
|
const {
|
|
1352
1392
|
rowSelection: t
|
|
1353
1393
|
} = o.getState();
|
|
1354
|
-
return
|
|
1394
|
+
return ue(e, t) === "all";
|
|
1355
1395
|
}, e.getCanSelect = () => {
|
|
1356
1396
|
var t;
|
|
1357
1397
|
return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
|
|
@@ -1369,16 +1409,16 @@ const Dt = {
|
|
|
1369
1409
|
};
|
|
1370
1410
|
};
|
|
1371
1411
|
}
|
|
1372
|
-
},
|
|
1412
|
+
}, ae = (e, o, t, n, r) => {
|
|
1373
1413
|
var l;
|
|
1374
1414
|
const i = r.getRow(o, !0);
|
|
1375
|
-
t ? (i.getCanMultiSelect() || Object.keys(e).forEach((a) => delete e[a]), i.getCanSelect() && (e[o] = !0)) : delete e[o], n && (l = i.subRows) != null && l.length && i.getCanSelectSubRows() && i.subRows.forEach((a) =>
|
|
1415
|
+
t ? (i.getCanMultiSelect() || Object.keys(e).forEach((a) => delete e[a]), i.getCanSelect() && (e[o] = !0)) : delete e[o], n && (l = i.subRows) != null && l.length && i.getCanSelectSubRows() && i.subRows.forEach((a) => ae(e, a.id, t, n, r));
|
|
1376
1416
|
};
|
|
1377
|
-
function
|
|
1417
|
+
function le(e, o) {
|
|
1378
1418
|
const t = e.getState().rowSelection, n = [], r = {}, l = function(i, a) {
|
|
1379
1419
|
return i.map((u) => {
|
|
1380
1420
|
var d;
|
|
1381
|
-
const f =
|
|
1421
|
+
const f = me(u, t);
|
|
1382
1422
|
if (f && (n.push(u), r[u.id] = u), (d = u.subRows) != null && d.length && (u = {
|
|
1383
1423
|
...u,
|
|
1384
1424
|
subRows: l(u.subRows)
|
|
@@ -1392,33 +1432,33 @@ function oe(e, o) {
|
|
|
1392
1432
|
rowsById: r
|
|
1393
1433
|
};
|
|
1394
1434
|
}
|
|
1395
|
-
function
|
|
1435
|
+
function me(e, o) {
|
|
1396
1436
|
var t;
|
|
1397
1437
|
return (t = o[e.id]) != null ? t : !1;
|
|
1398
1438
|
}
|
|
1399
|
-
function
|
|
1439
|
+
function ue(e, o, t) {
|
|
1400
1440
|
var n;
|
|
1401
1441
|
if (!((n = e.subRows) != null && n.length)) return !1;
|
|
1402
1442
|
let r = !0, l = !1;
|
|
1403
1443
|
return e.subRows.forEach((i) => {
|
|
1404
|
-
if (!(l && !r) && (i.getCanSelect() && (
|
|
1405
|
-
const a =
|
|
1444
|
+
if (!(l && !r) && (i.getCanSelect() && (me(i, o) ? l = !0 : r = !1), i.subRows && i.subRows.length)) {
|
|
1445
|
+
const a = ue(i, o);
|
|
1406
1446
|
a === "all" ? l = !0 : (a === "some" && (l = !0), r = !1);
|
|
1407
1447
|
}
|
|
1408
1448
|
}), r ? "all" : l ? "some" : !1;
|
|
1409
1449
|
}
|
|
1410
|
-
const
|
|
1450
|
+
const de = /([0-9]+)/gm, zt = (e, o, t) => Te(L(e.getValue(t)).toLowerCase(), L(o.getValue(t)).toLowerCase()), kt = (e, o, t) => Te(L(e.getValue(t)), L(o.getValue(t))), Ot = (e, o, t) => he(L(e.getValue(t)).toLowerCase(), L(o.getValue(t)).toLowerCase()), Tt = (e, o, t) => he(L(e.getValue(t)), L(o.getValue(t))), Bt = (e, o, t) => {
|
|
1411
1451
|
const n = e.getValue(t), r = o.getValue(t);
|
|
1412
1452
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1413
|
-
}, bt = (e, o, t) =>
|
|
1414
|
-
function
|
|
1453
|
+
}, bt = (e, o, t) => he(e.getValue(t), o.getValue(t));
|
|
1454
|
+
function he(e, o) {
|
|
1415
1455
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1416
1456
|
}
|
|
1417
|
-
function
|
|
1457
|
+
function L(e) {
|
|
1418
1458
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1419
1459
|
}
|
|
1420
1460
|
function Te(e, o) {
|
|
1421
|
-
const t = e.split(
|
|
1461
|
+
const t = e.split(de).filter(Boolean), n = o.split(de).filter(Boolean);
|
|
1422
1462
|
for (; t.length && n.length; ) {
|
|
1423
1463
|
const r = t.shift(), l = n.shift(), i = parseInt(r, 10), a = parseInt(l, 10), u = [i, a].sort();
|
|
1424
1464
|
if (isNaN(u[0])) {
|
|
@@ -1437,7 +1477,7 @@ function Te(e, o) {
|
|
|
1437
1477
|
}
|
|
1438
1478
|
return t.length - n.length;
|
|
1439
1479
|
}
|
|
1440
|
-
const
|
|
1480
|
+
const z = {
|
|
1441
1481
|
alphanumeric: zt,
|
|
1442
1482
|
alphanumericCaseSensitive: kt,
|
|
1443
1483
|
text: Ot,
|
|
@@ -1454,7 +1494,7 @@ const G = {
|
|
|
1454
1494
|
sortUndefined: 1
|
|
1455
1495
|
}),
|
|
1456
1496
|
getDefaultOptions: (e) => ({
|
|
1457
|
-
onSortingChange:
|
|
1497
|
+
onSortingChange: D("sorting", e),
|
|
1458
1498
|
isMultiSortEvent: (o) => o.shiftKey
|
|
1459
1499
|
}),
|
|
1460
1500
|
createColumn: (e, o) => {
|
|
@@ -1462,25 +1502,25 @@ const G = {
|
|
|
1462
1502
|
const t = o.getFilteredRowModel().flatRows.slice(10);
|
|
1463
1503
|
let n = !1;
|
|
1464
1504
|
for (const r of t) {
|
|
1465
|
-
const l = r
|
|
1505
|
+
const l = r == null ? void 0 : r.getValue(e.id);
|
|
1466
1506
|
if (Object.prototype.toString.call(l) === "[object Date]")
|
|
1467
|
-
return
|
|
1468
|
-
if (typeof l == "string" && (n = !0, l.split(
|
|
1469
|
-
return
|
|
1507
|
+
return z.datetime;
|
|
1508
|
+
if (typeof l == "string" && (n = !0, l.split(de).length > 1))
|
|
1509
|
+
return z.alphanumeric;
|
|
1470
1510
|
}
|
|
1471
|
-
return n ?
|
|
1511
|
+
return n ? z.text : z.basic;
|
|
1472
1512
|
}, e.getAutoSortDir = () => {
|
|
1473
1513
|
const t = o.getFilteredRowModel().flatRows[0];
|
|
1474
|
-
return typeof t
|
|
1514
|
+
return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
|
|
1475
1515
|
}, e.getSortingFn = () => {
|
|
1476
1516
|
var t, n;
|
|
1477
1517
|
if (!e)
|
|
1478
1518
|
throw new Error();
|
|
1479
|
-
return
|
|
1519
|
+
return W(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : z[e.columnDef.sortingFn];
|
|
1480
1520
|
}, e.toggleSorting = (t, n) => {
|
|
1481
1521
|
const r = e.getNextSortingOrder(), l = typeof t < "u" && t !== null;
|
|
1482
1522
|
o.setSorting((i) => {
|
|
1483
|
-
const a = i
|
|
1523
|
+
const a = i == null ? void 0 : i.find((s) => s.id === e.id), u = i == null ? void 0 : i.findIndex((s) => s.id === e.id);
|
|
1484
1524
|
let d = [], f, p = l ? t : r === "desc";
|
|
1485
1525
|
if (i != null && i.length && e.getCanMultiSort() && n ? a ? f = "toggle" : f = "add" : i != null && i.length && u !== i.length - 1 ? f = "replace" : a ? f = "toggle" : f = "replace", f === "toggle" && (l || r || (f = "remove")), f === "add") {
|
|
1486
1526
|
var g;
|
|
@@ -1594,7 +1634,7 @@ function Ut(e) {
|
|
|
1594
1634
|
r.setState(r.initialState);
|
|
1595
1635
|
},
|
|
1596
1636
|
setOptions: (g) => {
|
|
1597
|
-
const s =
|
|
1637
|
+
const s = G(g, r.options);
|
|
1598
1638
|
r.options = i(s);
|
|
1599
1639
|
},
|
|
1600
1640
|
getState: () => r.options.state,
|
|
@@ -1625,8 +1665,8 @@ function Ut(e) {
|
|
|
1625
1665
|
},
|
|
1626
1666
|
// footer: props => props.header.column.id,
|
|
1627
1667
|
cell: (m) => {
|
|
1628
|
-
var h,
|
|
1629
|
-
return (h = (
|
|
1668
|
+
var h, v;
|
|
1669
|
+
return (h = (v = m.renderValue()) == null || v.toString == null ? void 0 : v.toString()) != null ? h : null;
|
|
1630
1670
|
},
|
|
1631
1671
|
...r._features.reduce((m, h) => Object.assign(m, h.getDefaultColumnDef == null ? void 0 : h.getDefaultColumnDef()), {}),
|
|
1632
1672
|
...g
|
|
@@ -1634,10 +1674,10 @@ function Ut(e) {
|
|
|
1634
1674
|
}, w(e, "debugColumns", "_getDefaultColumnDef")),
|
|
1635
1675
|
_getColumnDefs: () => r.options.columns,
|
|
1636
1676
|
getAllColumns: S(() => [r._getColumnDefs()], (g) => {
|
|
1637
|
-
const s = function(m, h,
|
|
1638
|
-
return
|
|
1639
|
-
const $ = gt(r,
|
|
1640
|
-
return $.columns = V.columns ? s(V.columns, $,
|
|
1677
|
+
const s = function(m, h, v) {
|
|
1678
|
+
return v === void 0 && (v = 0), m.map((R) => {
|
|
1679
|
+
const $ = gt(r, R, v, h), V = R;
|
|
1680
|
+
return $.columns = V.columns ? s(V.columns, $, v + 1) : [], $;
|
|
1641
1681
|
});
|
|
1642
1682
|
};
|
|
1643
1683
|
return s(g);
|
|
@@ -1670,7 +1710,7 @@ function Xt() {
|
|
|
1670
1710
|
l === void 0 && (l = 0);
|
|
1671
1711
|
const a = [];
|
|
1672
1712
|
for (let d = 0; d < r.length; d++) {
|
|
1673
|
-
const f =
|
|
1713
|
+
const f = fe(e, e._getRowId(r[d], d, i), r[d], d, l, void 0, i == null ? void 0 : i.id);
|
|
1674
1714
|
if (t.flatRows.push(f), t.rowsById[f.id] = f, a.push(f), e.options.getSubRows) {
|
|
1675
1715
|
var u;
|
|
1676
1716
|
f.originalSubRows = e.options.getSubRows(r[d], d), (u = f.originalSubRows) != null && u.length && (f.subRows = n(f.originalSubRows, l + 1, f));
|
|
@@ -1703,7 +1743,7 @@ function Zt(e, o, t) {
|
|
|
1703
1743
|
for (let g = 0; g < u.length; g++) {
|
|
1704
1744
|
var p;
|
|
1705
1745
|
let s = u[g];
|
|
1706
|
-
const m =
|
|
1746
|
+
const m = fe(t, s.id, s.original, s.index, s.depth, void 0, s.parentId);
|
|
1707
1747
|
if (m.columnFilters = s.columnFilters, (p = s.subRows) != null && p.length && d < i) {
|
|
1708
1748
|
if (m.subRows = a(s.subRows, d + 1), s = m, o(s) && !m.subRows.length) {
|
|
1709
1749
|
f.push(s), l[s.id] = s, r.push(s);
|
|
@@ -1734,7 +1774,7 @@ function Jt(e, o, t) {
|
|
|
1734
1774
|
if (o(s)) {
|
|
1735
1775
|
var p;
|
|
1736
1776
|
if ((p = s.subRows) != null && p.length && d < i) {
|
|
1737
|
-
const h =
|
|
1777
|
+
const h = fe(t, s.id, s.original, s.index, s.depth, void 0, s.parentId);
|
|
1738
1778
|
h.subRows = a(s.subRows, d + 1), s = h;
|
|
1739
1779
|
}
|
|
1740
1780
|
f.push(s), r.push(s), l[s.id] = s;
|
|
@@ -1788,16 +1828,16 @@ function Wt() {
|
|
|
1788
1828
|
for (let m = 0; m < r.length; m++) {
|
|
1789
1829
|
d = r[m];
|
|
1790
1830
|
const h = d.id;
|
|
1791
|
-
s.columnFilters[h] = d.filterFn(s, h, d.resolvedValue, (
|
|
1792
|
-
s.columnFiltersMeta[h] =
|
|
1831
|
+
s.columnFilters[h] = d.filterFn(s, h, d.resolvedValue, (v) => {
|
|
1832
|
+
s.columnFiltersMeta[h] = v;
|
|
1793
1833
|
});
|
|
1794
1834
|
}
|
|
1795
1835
|
if (l.length) {
|
|
1796
1836
|
for (let m = 0; m < l.length; m++) {
|
|
1797
1837
|
f = l[m];
|
|
1798
1838
|
const h = f.id;
|
|
1799
|
-
if (f.filterFn(s, h, f.resolvedValue, (
|
|
1800
|
-
s.columnFiltersMeta[h] =
|
|
1839
|
+
if (f.filterFn(s, h, f.resolvedValue, (v) => {
|
|
1840
|
+
s.columnFiltersMeta[h] = v;
|
|
1801
1841
|
})) {
|
|
1802
1842
|
s.columnFilters.__global__ = !0;
|
|
1803
1843
|
break;
|
|
@@ -1869,18 +1909,18 @@ function en() {
|
|
|
1869
1909
|
return d.sort((f, p) => {
|
|
1870
1910
|
for (let s = 0; s < l.length; s += 1) {
|
|
1871
1911
|
var g;
|
|
1872
|
-
const m = l[s], h = i[m.id],
|
|
1912
|
+
const m = l[s], h = i[m.id], v = h.sortUndefined, R = (g = m == null ? void 0 : m.desc) != null ? g : !1;
|
|
1873
1913
|
let $ = 0;
|
|
1874
|
-
if (
|
|
1875
|
-
const V = f.getValue(m.id), _ = p.getValue(m.id),
|
|
1876
|
-
if (
|
|
1877
|
-
if (
|
|
1878
|
-
if (
|
|
1879
|
-
$ =
|
|
1914
|
+
if (v) {
|
|
1915
|
+
const V = f.getValue(m.id), _ = p.getValue(m.id), P = V === void 0, A = _ === void 0;
|
|
1916
|
+
if (P || A) {
|
|
1917
|
+
if (v === "first") return P ? -1 : 1;
|
|
1918
|
+
if (v === "last") return P ? 1 : -1;
|
|
1919
|
+
$ = P && A ? 0 : P ? v : -v;
|
|
1880
1920
|
}
|
|
1881
1921
|
}
|
|
1882
1922
|
if ($ === 0 && ($ = h.sortingFn(f, p, m.id)), $ !== 0)
|
|
1883
|
-
return
|
|
1923
|
+
return R && ($ *= -1), h.invertSorting && ($ *= -1), $;
|
|
1884
1924
|
}
|
|
1885
1925
|
return f.index - p.index;
|
|
1886
1926
|
}), d.forEach((f) => {
|
|
@@ -1895,6 +1935,16 @@ function en() {
|
|
|
1895
1935
|
};
|
|
1896
1936
|
}, w(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
1897
1937
|
}
|
|
1938
|
+
/**
|
|
1939
|
+
* react-table
|
|
1940
|
+
*
|
|
1941
|
+
* Copyright (c) TanStack
|
|
1942
|
+
*
|
|
1943
|
+
* This source code is licensed under the MIT license found in the
|
|
1944
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
1945
|
+
*
|
|
1946
|
+
* @license MIT
|
|
1947
|
+
*/
|
|
1898
1948
|
function ve(e, o) {
|
|
1899
1949
|
return e ? tn(e) ? /* @__PURE__ */ F.createElement(e, o) : e : null;
|
|
1900
1950
|
}
|
|
@@ -1953,7 +2003,7 @@ const ln = F.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ c(
|
|
|
1953
2003
|
}
|
|
1954
2004
|
));
|
|
1955
2005
|
ln.displayName = "TableFooter";
|
|
1956
|
-
const
|
|
2006
|
+
const X = F.forwardRef(
|
|
1957
2007
|
({ className: e, ...o }, t) => /* @__PURE__ */ c(
|
|
1958
2008
|
"tr",
|
|
1959
2009
|
{
|
|
@@ -1966,7 +2016,7 @@ const j = F.forwardRef(
|
|
|
1966
2016
|
}
|
|
1967
2017
|
)
|
|
1968
2018
|
);
|
|
1969
|
-
|
|
2019
|
+
X.displayName = "TableRow";
|
|
1970
2020
|
const je = F.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ c(
|
|
1971
2021
|
"th",
|
|
1972
2022
|
{
|
|
@@ -1979,7 +2029,7 @@ const je = F.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ c(
|
|
|
1979
2029
|
}
|
|
1980
2030
|
));
|
|
1981
2031
|
je.displayName = "TableHead";
|
|
1982
|
-
const
|
|
2032
|
+
const ge = F.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ c(
|
|
1983
2033
|
"td",
|
|
1984
2034
|
{
|
|
1985
2035
|
ref: t,
|
|
@@ -1987,7 +2037,7 @@ const ue = F.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ c(
|
|
|
1987
2037
|
...o
|
|
1988
2038
|
}
|
|
1989
2039
|
));
|
|
1990
|
-
|
|
2040
|
+
ge.displayName = "TableCell";
|
|
1991
2041
|
const sn = F.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ c("caption", { ref: t, className: y("mt-4 text-sm text-muted-foreground", e), ...o }));
|
|
1992
2042
|
sn.displayName = "TableCaption";
|
|
1993
2043
|
const an = [10, 20, 30, 40, 50];
|
|
@@ -2004,22 +2054,23 @@ function Dn({
|
|
|
2004
2054
|
onRowClick: d,
|
|
2005
2055
|
className: f
|
|
2006
2056
|
}) {
|
|
2007
|
-
|
|
2057
|
+
var P, A;
|
|
2058
|
+
const [p, g] = F.useState([]), [s, m] = F.useState([]), [h, v] = F.useState({}), [R, $] = F.useState({}), V = F.useMemo(() => i ? [
|
|
2008
2059
|
{
|
|
2009
2060
|
id: "select",
|
|
2010
|
-
header: ({ table:
|
|
2011
|
-
|
|
2061
|
+
header: ({ table: x }) => /* @__PURE__ */ c(
|
|
2062
|
+
Q,
|
|
2012
2063
|
{
|
|
2013
|
-
checked:
|
|
2014
|
-
onCheckedChange: (M) =>
|
|
2064
|
+
checked: x.getIsAllPageRowsSelected() || x.getIsSomePageRowsSelected() && "indeterminate",
|
|
2065
|
+
onCheckedChange: (M) => x.toggleAllPageRowsSelected(!!M),
|
|
2015
2066
|
"aria-label": "Select all"
|
|
2016
2067
|
}
|
|
2017
2068
|
),
|
|
2018
|
-
cell: ({ row:
|
|
2019
|
-
|
|
2069
|
+
cell: ({ row: x }) => /* @__PURE__ */ c(
|
|
2070
|
+
Q,
|
|
2020
2071
|
{
|
|
2021
|
-
checked:
|
|
2022
|
-
onCheckedChange: (M) =>
|
|
2072
|
+
checked: x.getIsSelected(),
|
|
2073
|
+
onCheckedChange: (M) => x.toggleSelected(!!M),
|
|
2023
2074
|
"aria-label": "Select row"
|
|
2024
2075
|
}
|
|
2025
2076
|
),
|
|
@@ -2036,7 +2087,7 @@ function Dn({
|
|
|
2036
2087
|
getPaginationRowModel: Yt(),
|
|
2037
2088
|
getSortedRowModel: en(),
|
|
2038
2089
|
getFilteredRowModel: Wt(),
|
|
2039
|
-
onColumnVisibilityChange:
|
|
2090
|
+
onColumnVisibilityChange: v,
|
|
2040
2091
|
onRowSelectionChange: $,
|
|
2041
2092
|
initialState: {
|
|
2042
2093
|
pagination: {
|
|
@@ -2047,7 +2098,7 @@ function Dn({
|
|
|
2047
2098
|
sorting: p,
|
|
2048
2099
|
columnFilters: s,
|
|
2049
2100
|
columnVisibility: h,
|
|
2050
|
-
rowSelection:
|
|
2101
|
+
rowSelection: R
|
|
2051
2102
|
}
|
|
2052
2103
|
});
|
|
2053
2104
|
return /* @__PURE__ */ C("div", { className: y("w-full", f), children: [
|
|
@@ -2056,43 +2107,46 @@ function Dn({
|
|
|
2056
2107
|
Qe,
|
|
2057
2108
|
{
|
|
2058
2109
|
placeholder: n,
|
|
2059
|
-
value: _.getColumn(t)
|
|
2060
|
-
onChange: (
|
|
2110
|
+
value: ((P = _.getColumn(t)) == null ? void 0 : P.getFilterValue()) ?? "",
|
|
2111
|
+
onChange: (x) => {
|
|
2112
|
+
var M;
|
|
2113
|
+
return (M = _.getColumn(t)) == null ? void 0 : M.setFilterValue(x.target.value);
|
|
2114
|
+
},
|
|
2061
2115
|
className: "max-w-sm"
|
|
2062
2116
|
}
|
|
2063
2117
|
),
|
|
2064
|
-
r && /* @__PURE__ */ C(
|
|
2065
|
-
/* @__PURE__ */ c(
|
|
2118
|
+
r && /* @__PURE__ */ C(O, { children: [
|
|
2119
|
+
/* @__PURE__ */ c(T, { asChild: !0, children: /* @__PURE__ */ C(N, { variant: "outline", className: "ml-auto", children: [
|
|
2066
2120
|
"Columns ",
|
|
2067
2121
|
/* @__PURE__ */ c(Pe, { className: "ml-2 h-4 w-4" })
|
|
2068
2122
|
] }) }),
|
|
2069
|
-
/* @__PURE__ */ c(
|
|
2123
|
+
/* @__PURE__ */ c(B, { align: "end", children: _.getAllColumns().filter((x) => x.getCanHide()).map((x) => /* @__PURE__ */ c(
|
|
2070
2124
|
xe,
|
|
2071
2125
|
{
|
|
2072
2126
|
className: "capitalize",
|
|
2073
|
-
checked:
|
|
2074
|
-
onCheckedChange: (M) =>
|
|
2075
|
-
children:
|
|
2127
|
+
checked: x.getIsVisible(),
|
|
2128
|
+
onCheckedChange: (M) => x.toggleVisibility(!!M),
|
|
2129
|
+
children: x.id
|
|
2076
2130
|
},
|
|
2077
|
-
|
|
2131
|
+
x.id
|
|
2078
2132
|
)) })
|
|
2079
2133
|
] })
|
|
2080
2134
|
] }),
|
|
2081
2135
|
/* @__PURE__ */ c("div", { className: "rounded-md border", children: /* @__PURE__ */ C(Be, { children: [
|
|
2082
|
-
/* @__PURE__ */ c(be, { children: _.getHeaderGroups().map((
|
|
2083
|
-
/* @__PURE__ */ c(qe, { children: _.getRowModel().rows
|
|
2084
|
-
|
|
2136
|
+
/* @__PURE__ */ c(be, { children: _.getHeaderGroups().map((x) => /* @__PURE__ */ c(X, { children: x.headers.map((M) => /* @__PURE__ */ c(je, { children: M.isPlaceholder ? null : ve(M.column.columnDef.header, M.getContext()) }, M.id)) }, x.id)) }),
|
|
2137
|
+
/* @__PURE__ */ c(qe, { children: (A = _.getRowModel().rows) != null && A.length ? _.getRowModel().rows.map((x) => /* @__PURE__ */ c(
|
|
2138
|
+
X,
|
|
2085
2139
|
{
|
|
2086
|
-
"data-state":
|
|
2087
|
-
onClick: () => d
|
|
2140
|
+
"data-state": x.getIsSelected() && "selected",
|
|
2141
|
+
onClick: () => d == null ? void 0 : d(x.original),
|
|
2088
2142
|
className: d ? "cursor-pointer" : "",
|
|
2089
|
-
children:
|
|
2143
|
+
children: x.getVisibleCells().map((M) => /* @__PURE__ */ c(ge, { children: ve(M.column.columnDef.cell, M.getContext()) }, M.id))
|
|
2090
2144
|
},
|
|
2091
|
-
|
|
2092
|
-
)) : /* @__PURE__ */ c(
|
|
2145
|
+
x.id
|
|
2146
|
+
)) : /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(ge, { colSpan: V.length, className: "h-24 text-center", children: "No results." }) }) })
|
|
2093
2147
|
] }) }),
|
|
2094
2148
|
l && /* @__PURE__ */ C("div", { className: "flex items-center justify-between space-x-2 py-4", children: [
|
|
2095
|
-
/* @__PURE__ */ c("div", { className: "flex-1 text-sm text-muted-foreground", children: i && /* @__PURE__ */ C(
|
|
2149
|
+
/* @__PURE__ */ c("div", { className: "flex-1 text-sm text-muted-foreground", children: i && /* @__PURE__ */ C(J, { children: [
|
|
2096
2150
|
_.getFilteredSelectedRowModel().rows.length,
|
|
2097
2151
|
" of",
|
|
2098
2152
|
" ",
|
|
@@ -2106,12 +2160,12 @@ function Dn({
|
|
|
2106
2160
|
Fe,
|
|
2107
2161
|
{
|
|
2108
2162
|
value: `${_.getState().pagination.pageSize}`,
|
|
2109
|
-
onValueChange: (
|
|
2110
|
-
_.setPageSize(Number(
|
|
2163
|
+
onValueChange: (x) => {
|
|
2164
|
+
_.setPageSize(Number(x));
|
|
2111
2165
|
},
|
|
2112
2166
|
children: [
|
|
2113
2167
|
/* @__PURE__ */ c(ye, { size: "sm", width: "sm", children: /* @__PURE__ */ c($e, { placeholder: _.getState().pagination.pageSize }) }),
|
|
2114
|
-
/* @__PURE__ */ c(Ve, { side: "top", children: u.map((
|
|
2168
|
+
/* @__PURE__ */ c(Ve, { side: "top", children: u.map((x) => /* @__PURE__ */ c(Me, { value: `${x}`, children: x }, x)) })
|
|
2115
2169
|
]
|
|
2116
2170
|
}
|
|
2117
2171
|
)
|
|
@@ -2124,7 +2178,7 @@ function Dn({
|
|
|
2124
2178
|
] }),
|
|
2125
2179
|
/* @__PURE__ */ C("div", { className: "flex items-center space-x-2", children: [
|
|
2126
2180
|
/* @__PURE__ */ c(
|
|
2127
|
-
|
|
2181
|
+
N,
|
|
2128
2182
|
{
|
|
2129
2183
|
variant: "outline",
|
|
2130
2184
|
size: "sm",
|
|
@@ -2134,7 +2188,7 @@ function Dn({
|
|
|
2134
2188
|
}
|
|
2135
2189
|
),
|
|
2136
2190
|
/* @__PURE__ */ c(
|
|
2137
|
-
|
|
2191
|
+
N,
|
|
2138
2192
|
{
|
|
2139
2193
|
variant: "outline",
|
|
2140
2194
|
size: "sm",
|
|
@@ -2150,7 +2204,7 @@ function Dn({
|
|
|
2150
2204
|
}
|
|
2151
2205
|
function En(e) {
|
|
2152
2206
|
return ({ column: o }) => /* @__PURE__ */ C(
|
|
2153
|
-
|
|
2207
|
+
N,
|
|
2154
2208
|
{
|
|
2155
2209
|
variant: "ghost",
|
|
2156
2210
|
onClick: () => o.toggleSorting(o.getIsSorted() === "asc"),
|
|
@@ -2162,14 +2216,14 @@ function En(e) {
|
|
|
2162
2216
|
);
|
|
2163
2217
|
}
|
|
2164
2218
|
function An(e) {
|
|
2165
|
-
return ({ row: o }) => /* @__PURE__ */ C(
|
|
2166
|
-
/* @__PURE__ */ c(
|
|
2219
|
+
return ({ row: o }) => /* @__PURE__ */ C(O, { children: [
|
|
2220
|
+
/* @__PURE__ */ c(T, { asChild: !0, children: /* @__PURE__ */ C(N, { variant: "ghost", className: "h-8 w-8 p-0", children: [
|
|
2167
2221
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Open menu" }),
|
|
2168
2222
|
/* @__PURE__ */ c(Ie, { className: "h-4 w-4" })
|
|
2169
2223
|
] }) }),
|
|
2170
|
-
/* @__PURE__ */ C(
|
|
2171
|
-
/* @__PURE__ */ c(
|
|
2172
|
-
/* @__PURE__ */ c(
|
|
2224
|
+
/* @__PURE__ */ C(B, { align: "end", children: [
|
|
2225
|
+
/* @__PURE__ */ c(ce, { children: "Actions" }),
|
|
2226
|
+
/* @__PURE__ */ c(Z, {}),
|
|
2173
2227
|
e.map((t, n) => /* @__PURE__ */ C(_e, { onClick: () => t.onClick(o.original), children: [
|
|
2174
2228
|
t.icon && /* @__PURE__ */ c("span", { className: "mr-2", children: t.icon }),
|
|
2175
2229
|
t.label
|
|
@@ -2179,7 +2233,7 @@ function An(e) {
|
|
|
2179
2233
|
}
|
|
2180
2234
|
const un = F.forwardRef(
|
|
2181
2235
|
({ className: e, title: o, value: t, description: n, trend: r, icon: l, loading: i = !1, ...a }, u) => {
|
|
2182
|
-
const d = r
|
|
2236
|
+
const d = (r == null ? void 0 : r.direction) || (r != null && r.value && r.value > 0 ? "up" : r != null && r.value && r.value < 0 ? "down" : "neutral"), f = d === "up" ? We : d === "down" ? st : Ye, p = d === "up" ? "text-success" : d === "down" ? "text-destructive" : "text-muted-foreground";
|
|
2183
2237
|
return /* @__PURE__ */ C(Ne, { ref: u, className: y("", e), ...a, children: [
|
|
2184
2238
|
/* @__PURE__ */ C(Ze, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
2185
2239
|
/* @__PURE__ */ c(Je, { className: "text-sm font-medium", children: o }),
|
|
@@ -2188,7 +2242,7 @@ const un = F.forwardRef(
|
|
|
2188
2242
|
/* @__PURE__ */ c(De, { children: i ? /* @__PURE__ */ C("div", { className: "space-y-2", children: [
|
|
2189
2243
|
/* @__PURE__ */ c("div", { className: "h-8 w-24 animate-pulse rounded bg-muted" }),
|
|
2190
2244
|
/* @__PURE__ */ c("div", { className: "h-4 w-32 animate-pulse rounded bg-muted" })
|
|
2191
|
-
] }) : /* @__PURE__ */ C(
|
|
2245
|
+
] }) : /* @__PURE__ */ C(J, { children: [
|
|
2192
2246
|
/* @__PURE__ */ c("div", { className: "text-2xl font-bold", children: t }),
|
|
2193
2247
|
(n || r) && /* @__PURE__ */ C("div", { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
|
|
2194
2248
|
r && /* @__PURE__ */ C("span", { className: y("flex items-center gap-1", p), children: [
|
|
@@ -2210,7 +2264,7 @@ const dn = F.forwardRef(
|
|
|
2210
2264
|
/* @__PURE__ */ c("div", { className: "flex-1", children: i ? /* @__PURE__ */ C("div", { className: "space-y-2", children: [
|
|
2211
2265
|
/* @__PURE__ */ c("div", { className: "h-4 w-20 animate-pulse rounded bg-muted" }),
|
|
2212
2266
|
/* @__PURE__ */ c("div", { className: "h-6 w-16 animate-pulse rounded bg-muted" })
|
|
2213
|
-
] }) : /* @__PURE__ */ C(
|
|
2267
|
+
] }) : /* @__PURE__ */ C(J, { children: [
|
|
2214
2268
|
/* @__PURE__ */ c("p", { className: "text-sm font-medium text-muted-foreground", children: o }),
|
|
2215
2269
|
/* @__PURE__ */ c("p", { className: "text-2xl font-bold", children: t }),
|
|
2216
2270
|
n && /* @__PURE__ */ c("p", { className: "text-xs text-muted-foreground", children: n })
|
|
@@ -2330,8 +2384,8 @@ const pn = F.forwardRef(
|
|
|
2330
2384
|
const p = e.map((g) => ({ ...g, visible: !0 }));
|
|
2331
2385
|
o(p);
|
|
2332
2386
|
};
|
|
2333
|
-
return /* @__PURE__ */ C(
|
|
2334
|
-
/* @__PURE__ */ c(
|
|
2387
|
+
return /* @__PURE__ */ C(O, { children: [
|
|
2388
|
+
/* @__PURE__ */ c(T, { asChild: !0, children: /* @__PURE__ */ C(N, { ref: l, variant: "outline", size: "sm", className: y("gap-2", r), children: [
|
|
2335
2389
|
/* @__PURE__ */ c(it, { className: "h-4 w-4" }),
|
|
2336
2390
|
/* @__PURE__ */ c("span", { children: "Columns" }),
|
|
2337
2391
|
/* @__PURE__ */ C("span", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -2342,16 +2396,16 @@ const pn = F.forwardRef(
|
|
|
2342
2396
|
")"
|
|
2343
2397
|
] })
|
|
2344
2398
|
] }) }),
|
|
2345
|
-
/* @__PURE__ */ C(
|
|
2346
|
-
/* @__PURE__ */ C(
|
|
2399
|
+
/* @__PURE__ */ C(B, { align: "end", className: "w-56", children: [
|
|
2400
|
+
/* @__PURE__ */ C(ce, { className: "flex items-center justify-between", children: [
|
|
2347
2401
|
/* @__PURE__ */ c("span", { children: "Toggle Columns" }),
|
|
2348
|
-
/* @__PURE__ */ c(
|
|
2402
|
+
/* @__PURE__ */ c(N, { variant: "ghost", size: "sm", className: "h-auto p-1 text-xs", onClick: f, children: "Reset" })
|
|
2349
2403
|
] }),
|
|
2350
|
-
/* @__PURE__ */ c(
|
|
2351
|
-
t && /* @__PURE__ */ C(
|
|
2404
|
+
/* @__PURE__ */ c(Z, {}),
|
|
2405
|
+
t && /* @__PURE__ */ C(J, { children: [
|
|
2352
2406
|
/* @__PURE__ */ C("div", { className: "flex items-center gap-2 px-2 py-1.5", children: [
|
|
2353
2407
|
/* @__PURE__ */ c(
|
|
2354
|
-
|
|
2408
|
+
Q,
|
|
2355
2409
|
{
|
|
2356
2410
|
id: "select-all",
|
|
2357
2411
|
checked: e.every((p) => p.visible || p.locked),
|
|
@@ -2367,7 +2421,7 @@ const pn = F.forwardRef(
|
|
|
2367
2421
|
}
|
|
2368
2422
|
)
|
|
2369
2423
|
] }),
|
|
2370
|
-
/* @__PURE__ */ c(
|
|
2424
|
+
/* @__PURE__ */ c(Z, {})
|
|
2371
2425
|
] }),
|
|
2372
2426
|
/* @__PURE__ */ c(Ke, { style: { maxHeight: n }, children: /* @__PURE__ */ c("div", { className: "space-y-1 p-1", children: e.map((p) => /* @__PURE__ */ C(
|
|
2373
2427
|
"div",
|
|
@@ -2378,7 +2432,7 @@ const pn = F.forwardRef(
|
|
|
2378
2432
|
),
|
|
2379
2433
|
children: [
|
|
2380
2434
|
/* @__PURE__ */ c(
|
|
2381
|
-
|
|
2435
|
+
Q,
|
|
2382
2436
|
{
|
|
2383
2437
|
id: p.id,
|
|
2384
2438
|
checked: p.visible,
|
|
@@ -2431,13 +2485,13 @@ const mn = F.forwardRef(
|
|
|
2431
2485
|
children: [
|
|
2432
2486
|
/* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
2433
2487
|
/* @__PURE__ */ c(
|
|
2434
|
-
|
|
2488
|
+
N,
|
|
2435
2489
|
{
|
|
2436
2490
|
variant: "ghost",
|
|
2437
2491
|
size: "icon",
|
|
2438
2492
|
className: "h-8 w-8",
|
|
2439
2493
|
onClick: t,
|
|
2440
|
-
children: /* @__PURE__ */ c(
|
|
2494
|
+
children: /* @__PURE__ */ c(K, { className: "h-4 w-4" })
|
|
2441
2495
|
}
|
|
2442
2496
|
),
|
|
2443
2497
|
/* @__PURE__ */ C("span", { className: "text-sm font-medium", children: [
|
|
@@ -2448,7 +2502,7 @@ const mn = F.forwardRef(
|
|
|
2448
2502
|
/* @__PURE__ */ c("div", { className: "mx-2 h-6 w-px bg-border" }),
|
|
2449
2503
|
/* @__PURE__ */ C("div", { className: "flex items-center gap-1", children: [
|
|
2450
2504
|
a.map((d) => /* @__PURE__ */ C(
|
|
2451
|
-
|
|
2505
|
+
N,
|
|
2452
2506
|
{
|
|
2453
2507
|
variant: d.variant === "destructive" ? "destructive" : "ghost",
|
|
2454
2508
|
size: "sm",
|
|
@@ -2462,9 +2516,9 @@ const mn = F.forwardRef(
|
|
|
2462
2516
|
},
|
|
2463
2517
|
d.id
|
|
2464
2518
|
)),
|
|
2465
|
-
u.length > 0 && /* @__PURE__ */ C(
|
|
2466
|
-
/* @__PURE__ */ c(
|
|
2467
|
-
/* @__PURE__ */ c(
|
|
2519
|
+
u.length > 0 && /* @__PURE__ */ C(O, { children: [
|
|
2520
|
+
/* @__PURE__ */ c(T, { asChild: !0, children: /* @__PURE__ */ c(N, { variant: "ghost", size: "icon", className: "h-8 w-8", children: /* @__PURE__ */ c(Ie, { className: "h-4 w-4" }) }) }),
|
|
2521
|
+
/* @__PURE__ */ c(B, { align: "end", children: u.map((d) => /* @__PURE__ */ C(
|
|
2468
2522
|
_e,
|
|
2469
2523
|
{
|
|
2470
2524
|
onClick: () => d.onClick(o),
|
|
@@ -2515,9 +2569,9 @@ const Cn = F.forwardRef(
|
|
|
2515
2569
|
({ className: e, filters: o, onClearAll: t, ...n }, r) => {
|
|
2516
2570
|
const l = o.reduce((i, a) => i + a.value.length, 0);
|
|
2517
2571
|
return /* @__PURE__ */ C("div", { ref: r, className: y("flex flex-wrap items-center gap-2", e), ...n, children: [
|
|
2518
|
-
o.map((i) => /* @__PURE__ */ C(
|
|
2519
|
-
/* @__PURE__ */ c(
|
|
2520
|
-
|
|
2572
|
+
o.map((i) => /* @__PURE__ */ C(O, { children: [
|
|
2573
|
+
/* @__PURE__ */ c(T, { asChild: !0, children: /* @__PURE__ */ C(
|
|
2574
|
+
N,
|
|
2521
2575
|
{
|
|
2522
2576
|
variant: i.value.length > 0 ? "secondary" : "outline",
|
|
2523
2577
|
size: "sm",
|
|
@@ -2529,9 +2583,9 @@ const Cn = F.forwardRef(
|
|
|
2529
2583
|
]
|
|
2530
2584
|
}
|
|
2531
2585
|
) }),
|
|
2532
|
-
/* @__PURE__ */ C(
|
|
2533
|
-
/* @__PURE__ */ c(
|
|
2534
|
-
/* @__PURE__ */ c(
|
|
2586
|
+
/* @__PURE__ */ C(B, { align: "start", className: "w-48", children: [
|
|
2587
|
+
/* @__PURE__ */ c(ce, { children: i.label }),
|
|
2588
|
+
/* @__PURE__ */ c(Z, {}),
|
|
2535
2589
|
i.options.map((a) => /* @__PURE__ */ C(
|
|
2536
2590
|
xe,
|
|
2537
2591
|
{
|
|
@@ -2553,14 +2607,14 @@ const Cn = F.forwardRef(
|
|
|
2553
2607
|
] })
|
|
2554
2608
|
] }, i.id)),
|
|
2555
2609
|
l > 0 && t && /* @__PURE__ */ C(
|
|
2556
|
-
|
|
2610
|
+
N,
|
|
2557
2611
|
{
|
|
2558
2612
|
variant: "ghost",
|
|
2559
2613
|
size: "sm",
|
|
2560
2614
|
className: "gap-1 text-muted-foreground",
|
|
2561
2615
|
onClick: t,
|
|
2562
2616
|
children: [
|
|
2563
|
-
/* @__PURE__ */ c(
|
|
2617
|
+
/* @__PURE__ */ c(K, { className: "h-3.5 w-3.5" }),
|
|
2564
2618
|
"Clear all"
|
|
2565
2619
|
]
|
|
2566
2620
|
}
|
|
@@ -2587,12 +2641,12 @@ const Sn = F.forwardRef(
|
|
|
2587
2641
|
{
|
|
2588
2642
|
onClick: () => t(p.id),
|
|
2589
2643
|
className: "ml-1 rounded-full p-0.5 hover:bg-muted-foreground/20",
|
|
2590
|
-
children: /* @__PURE__ */ c(
|
|
2644
|
+
children: /* @__PURE__ */ c(K, { className: "h-3 w-3" })
|
|
2591
2645
|
}
|
|
2592
2646
|
)
|
|
2593
2647
|
] }, p.id)),
|
|
2594
2648
|
!a && f > 0 && /* @__PURE__ */ C(
|
|
2595
|
-
|
|
2649
|
+
N,
|
|
2596
2650
|
{
|
|
2597
2651
|
variant: "ghost",
|
|
2598
2652
|
size: "sm",
|
|
@@ -2606,7 +2660,7 @@ const Sn = F.forwardRef(
|
|
|
2606
2660
|
}
|
|
2607
2661
|
),
|
|
2608
2662
|
a && f > 0 && /* @__PURE__ */ c(
|
|
2609
|
-
|
|
2663
|
+
N,
|
|
2610
2664
|
{
|
|
2611
2665
|
variant: "ghost",
|
|
2612
2666
|
size: "sm",
|
|
@@ -2616,14 +2670,14 @@ const Sn = F.forwardRef(
|
|
|
2616
2670
|
}
|
|
2617
2671
|
),
|
|
2618
2672
|
n && o.length > 1 && /* @__PURE__ */ C(
|
|
2619
|
-
|
|
2673
|
+
N,
|
|
2620
2674
|
{
|
|
2621
2675
|
variant: "ghost",
|
|
2622
2676
|
size: "sm",
|
|
2623
2677
|
className: "h-6 gap-1 px-2 text-xs text-muted-foreground",
|
|
2624
2678
|
onClick: n,
|
|
2625
2679
|
children: [
|
|
2626
|
-
/* @__PURE__ */ c(
|
|
2680
|
+
/* @__PURE__ */ c(K, { className: "h-3 w-3" }),
|
|
2627
2681
|
"Clear all"
|
|
2628
2682
|
]
|
|
2629
2683
|
}
|
|
@@ -2648,11 +2702,11 @@ export {
|
|
|
2648
2702
|
qe as b,
|
|
2649
2703
|
ln as c,
|
|
2650
2704
|
je as d,
|
|
2651
|
-
|
|
2652
|
-
|
|
2705
|
+
X as e,
|
|
2706
|
+
ge as f,
|
|
2653
2707
|
sn as g,
|
|
2654
2708
|
En as h,
|
|
2655
2709
|
An as i,
|
|
2656
2710
|
cn as j
|
|
2657
2711
|
};
|
|
2658
|
-
//# sourceMappingURL=filter-tags-
|
|
2712
|
+
//# sourceMappingURL=filter-tags-zEQmRhEU.js.map
|