brd-ui-kit 0.1.75 → 0.1.76
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/brd-ui-kit.css +1 -1
- package/dist/calendar-B5QCV34E.cjs +2 -0
- package/dist/{calendar-DReGV_22.cjs.map → calendar-B5QCV34E.cjs.map} +1 -1
- package/dist/{calendar-C0DXP3T-.js → calendar-Ba3kHG6w.js} +264 -270
- package/dist/{calendar-C0DXP3T-.js.map → calendar-Ba3kHG6w.js.map} +1 -1
- package/dist/{calendar-locale-CP2pxhFK.cjs → calendar-locale-BHyNJPb2.cjs} +2 -2
- package/dist/{calendar-locale-CP2pxhFK.cjs.map → calendar-locale-BHyNJPb2.cjs.map} +1 -1
- package/dist/{calendar-locale-DJf03PI9.js → calendar-locale-DQ9wj0zF.js} +2 -2
- package/dist/{calendar-locale-DJf03PI9.js.map → calendar-locale-DQ9wj0zF.js.map} +1 -1
- package/dist/chart-9H_9wEfR.cjs +63 -0
- package/dist/{chart-C69jBlXa.cjs.map → chart-9H_9wEfR.cjs.map} +1 -1
- package/dist/{chart-CAPCe8o5.js → chart-DFbmMKiQ.js} +2956 -2951
- package/dist/{chart-CAPCe8o5.js.map → chart-DFbmMKiQ.js.map} +1 -1
- package/dist/components/basic-chart/basic-chart.d.ts +1 -1
- package/dist/components/basic-table/basic-table.d.ts +5 -5
- package/dist/components/data-table/data-table-actions-column.d.ts +3 -3
- package/dist/components/data-table/data-table-bulk-actions.d.ts +3 -3
- package/dist/components/data-table/data-table-column-visibility.d.ts +2 -2
- package/dist/components/data-table/data-table-filter.d.ts +2 -2
- package/dist/components/data-table/data-table-row-actions-column.d.ts +3 -3
- package/dist/components/data-table/use-data-table-editable-rows.d.ts +5 -5
- package/dist/components/input-field/input-field.d.ts +3 -3
- package/dist/components/input-phone/input-phone.d.ts +4 -4
- package/dist/components/popover-modal/popover-modal.d.ts +4 -4
- package/dist/components/select-field/select-field.d.ts +2 -2
- package/dist/components/ui/avatar/avatar.d.ts +7 -7
- package/dist/components/ui/badge/badge.d.ts +2 -2
- package/dist/components/ui/button/button.d.ts +3 -3
- package/dist/components/ui/calendar/calendar.d.ts +6 -6
- package/dist/components/ui/calendar/calendar.styles.d.ts +1 -1
- package/dist/components/ui/card/card.d.ts +13 -13
- package/dist/components/ui/chart/chart.d.ts +23 -21
- package/dist/components/ui/checkbox/checkbox.d.ts +4 -4
- package/dist/components/ui/combobox/combobox.d.ts +6 -6
- package/dist/components/ui/dialog/dialog.d.ts +11 -11
- package/dist/components/ui/drawer/drawer.d.ts +11 -11
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +40 -40
- package/dist/components/ui/icon/icon.d.ts +3 -3
- package/dist/components/ui/input/input.d.ts +2 -2
- package/dist/components/ui/input-group/input-group.d.ts +7 -7
- package/dist/components/ui/label/label.d.ts +4 -4
- package/dist/components/ui/pagination/pagination.d.ts +8 -8
- package/dist/components/ui/popover/popover.d.ts +8 -8
- package/dist/components/ui/progress/progress.d.ts +4 -4
- package/dist/components/ui/radio-group/radio-group.d.ts +7 -7
- package/dist/components/ui/select/select.d.ts +11 -11
- package/dist/components/ui/select-calendar-menu/select-calendar-menu.d.ts +4 -4
- package/dist/components/ui/separator/separator.d.ts +4 -4
- package/dist/components/ui/switch/switch.d.ts +4 -4
- package/dist/components/ui/table/table.d.ts +17 -17
- package/dist/components/ui/tabs/tabs.d.ts +8 -8
- package/dist/components/ui/tooltip/tooltip.d.ts +8 -8
- package/dist/components/ui/typography/typography.d.ts +174 -174
- package/dist/components-avatar-uploader-avatar-uploader.cjs +2 -2
- package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.js +35 -36
- package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.cjs +1 -1
- package/dist/components-basic-avatar-basic-avatar.js +3 -3
- package/dist/components-basic-chart-basic-chart.cjs +2 -2
- package/dist/components-basic-chart-basic-chart.cjs.map +1 -1
- package/dist/components-basic-chart-basic-chart.js +106 -108
- package/dist/components-basic-chart-basic-chart.js.map +1 -1
- package/dist/components-basic-table-basic-table.cjs +2 -2
- package/dist/components-basic-table-basic-table.cjs.map +1 -1
- package/dist/components-basic-table-basic-table.js +232 -231
- package/dist/components-basic-table-basic-table.js.map +1 -1
- package/dist/components-data-table-data-table-actions-column.cjs +1 -1
- package/dist/components-data-table-data-table-actions-column.cjs.map +1 -1
- package/dist/components-data-table-data-table-actions-column.js +5 -6
- package/dist/components-data-table-data-table-actions-column.js.map +1 -1
- package/dist/components-data-table-data-table-bulk-actions.cjs +1 -1
- package/dist/components-data-table-data-table-bulk-actions.cjs.map +1 -1
- package/dist/components-data-table-data-table-bulk-actions.js +9 -9
- package/dist/components-data-table-data-table-bulk-actions.js.map +1 -1
- package/dist/components-data-table-data-table-column-visibility.cjs +1 -1
- package/dist/components-data-table-data-table-column-visibility.cjs.map +1 -1
- package/dist/components-data-table-data-table-column-visibility.js +1 -1
- package/dist/components-data-table-data-table-column-visibility.js.map +1 -1
- package/dist/components-data-table-data-table-filter.cjs +1 -1
- package/dist/components-data-table-data-table-filter.cjs.map +1 -1
- package/dist/components-data-table-data-table-filter.js +15 -15
- package/dist/components-data-table-data-table-filter.js.map +1 -1
- package/dist/components-data-table-data-table-row-actions-column.cjs +1 -1
- package/dist/components-data-table-data-table-row-actions-column.cjs.map +1 -1
- package/dist/components-data-table-data-table-row-actions-column.js +19 -20
- package/dist/components-data-table-data-table-row-actions-column.js.map +1 -1
- package/dist/components-data-table-use-data-table-editable-rows.cjs +1 -1
- package/dist/components-data-table-use-data-table-editable-rows.cjs.map +1 -1
- package/dist/components-data-table-use-data-table-editable-rows.js +88 -90
- package/dist/components-data-table-use-data-table-editable-rows.js.map +1 -1
- package/dist/components-input-contact-input-contact.cjs +1 -1
- package/dist/components-input-contact-input-contact.cjs.map +1 -1
- package/dist/components-input-contact-input-contact.js +8 -8
- package/dist/components-input-field-input-field.cjs +1 -1
- package/dist/components-input-field-input-field.cjs.map +1 -1
- package/dist/components-input-field-input-field.js +18 -19
- package/dist/components-input-field-input-field.js.map +1 -1
- package/dist/components-input-password-input-password.cjs +1 -1
- package/dist/components-input-password-input-password.cjs.map +1 -1
- package/dist/components-input-password-input-password.js +4 -4
- package/dist/components-input-phone-input-phone.cjs.map +1 -1
- package/dist/components-input-phone-input-phone.js.map +1 -1
- package/dist/components-popover-modal-popover-modal.cjs +1 -1
- package/dist/components-popover-modal-popover-modal.cjs.map +1 -1
- package/dist/components-popover-modal-popover-modal.js +40 -29
- package/dist/components-popover-modal-popover-modal.js.map +1 -1
- package/dist/components-select-field-select-field.cjs.map +1 -1
- package/dist/components-select-field-select-field.js.map +1 -1
- package/dist/components-ui-avatar-avatar.cjs +1 -1
- package/dist/components-ui-avatar-avatar.cjs.map +1 -1
- package/dist/components-ui-avatar-avatar.js +12 -13
- package/dist/components-ui-avatar-avatar.js.map +1 -1
- package/dist/components-ui-badge-badge.cjs +1 -1
- package/dist/components-ui-badge-badge.cjs.map +1 -1
- package/dist/components-ui-badge-badge.js +10 -11
- package/dist/components-ui-badge-badge.js.map +1 -1
- package/dist/components-ui-button-button.cjs +1 -1
- package/dist/components-ui-button-button.cjs.map +1 -1
- package/dist/components-ui-button-button.js +10 -11
- package/dist/components-ui-button-button.js.map +1 -1
- package/dist/components-ui-button-button.styles.cjs +4 -4
- package/dist/components-ui-button-button.styles.cjs.map +1 -1
- package/dist/components-ui-button-button.styles.js +4 -4
- package/dist/components-ui-button-button.styles.js.map +1 -1
- package/dist/components-ui-calendar-calendar.cjs +1 -1
- package/dist/components-ui-calendar-calendar.js +1 -1
- package/dist/components-ui-calendar-calendar.styles.cjs +1 -1
- package/dist/components-ui-calendar-calendar.styles.cjs.map +1 -1
- package/dist/components-ui-calendar-calendar.styles.js +1 -1
- package/dist/components-ui-calendar-calendar.styles.js.map +1 -1
- package/dist/components-ui-calendar.cjs +1 -1
- package/dist/components-ui-calendar.js +2 -2
- package/dist/components-ui-card-card.cjs +1 -1
- package/dist/components-ui-card-card.cjs.map +1 -1
- package/dist/components-ui-card-card.js +10 -11
- package/dist/components-ui-card-card.js.map +1 -1
- package/dist/components-ui-chart-chart.cjs +1 -1
- package/dist/components-ui-chart-chart.js +1 -1
- package/dist/components-ui-chart.cjs +1 -1
- package/dist/components-ui-chart.js +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs.map +1 -1
- package/dist/components-ui-checkbox-checkbox.js +11 -12
- package/dist/components-ui-checkbox-checkbox.js.map +1 -1
- package/dist/components-ui-combobox-combobox.cjs +5 -5
- package/dist/components-ui-combobox-combobox.cjs.map +1 -1
- package/dist/components-ui-combobox-combobox.js +1477 -1479
- package/dist/components-ui-combobox-combobox.js.map +1 -1
- package/dist/components-ui-dialog-dialog.cjs +1 -1
- package/dist/components-ui-dialog-dialog.cjs.map +1 -1
- package/dist/components-ui-dialog-dialog.js +4 -5
- package/dist/components-ui-dialog-dialog.js.map +1 -1
- package/dist/components-ui-drawer-drawer.cjs +2 -2
- package/dist/components-ui-drawer-drawer.cjs.map +1 -1
- package/dist/components-ui-drawer-drawer.js +16 -19
- package/dist/components-ui-drawer-drawer.js.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +2 -2
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.js +45 -46
- package/dist/components-ui-dropdown-menu-dropdown-menu.js.map +1 -1
- package/dist/components-ui-icon-icon.cjs +1 -1
- package/dist/components-ui-icon-icon.cjs.map +1 -1
- package/dist/components-ui-icon-icon.js +54 -61733
- package/dist/components-ui-icon-icon.js.map +1 -1
- package/dist/components-ui-input-group-input-group.cjs +1 -1
- package/dist/components-ui-input-group-input-group.cjs.map +1 -1
- package/dist/components-ui-input-group-input-group.js +12 -13
- package/dist/components-ui-input-group-input-group.js.map +1 -1
- package/dist/components-ui-input-input.cjs +1 -1
- package/dist/components-ui-input-input.cjs.map +1 -1
- package/dist/components-ui-input-input.js +2 -3
- package/dist/components-ui-input-input.js.map +1 -1
- package/dist/components-ui-label-label.cjs +1 -1
- package/dist/components-ui-label-label.cjs.map +1 -1
- package/dist/components-ui-label-label.js +1 -1
- package/dist/components-ui-label-label.js.map +1 -1
- package/dist/components-ui-pagination-pagination.cjs +1 -1
- package/dist/components-ui-pagination-pagination.cjs.map +1 -1
- package/dist/components-ui-pagination-pagination.js +0 -1
- package/dist/components-ui-pagination-pagination.js.map +1 -1
- package/dist/components-ui-popover-popover.cjs +1 -1
- package/dist/components-ui-popover-popover.cjs.map +1 -1
- package/dist/components-ui-popover-popover.js +14 -19
- package/dist/components-ui-popover-popover.js.map +1 -1
- package/dist/components-ui-progress-progress.cjs +1 -1
- package/dist/components-ui-progress-progress.cjs.map +1 -1
- package/dist/components-ui-progress-progress.js +1 -1
- package/dist/components-ui-progress-progress.js.map +1 -1
- package/dist/components-ui-radio-group-radio-group.cjs +1 -1
- package/dist/components-ui-radio-group-radio-group.cjs.map +1 -1
- package/dist/components-ui-radio-group-radio-group.js +0 -1
- package/dist/components-ui-radio-group-radio-group.js.map +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs.map +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js +53 -47
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js.map +1 -1
- package/dist/components-ui-select-select.cjs +1 -1
- package/dist/components-ui-select-select.cjs.map +1 -1
- package/dist/components-ui-select-select.js +21 -22
- package/dist/components-ui-select-select.js.map +1 -1
- package/dist/components-ui-separator-separator.cjs +1 -1
- package/dist/components-ui-separator-separator.cjs.map +1 -1
- package/dist/components-ui-separator-separator.js +11 -12
- package/dist/components-ui-separator-separator.js.map +1 -1
- package/dist/components-ui-switch-switch.cjs +1 -1
- package/dist/components-ui-switch-switch.cjs.map +1 -1
- package/dist/components-ui-switch-switch.js +6 -7
- package/dist/components-ui-switch-switch.js.map +1 -1
- package/dist/components-ui-table-table.cjs +1 -1
- package/dist/components-ui-table-table.cjs.map +1 -1
- package/dist/components-ui-table-table.js +0 -1
- package/dist/components-ui-table-table.js.map +1 -1
- package/dist/components-ui-tabs-tabs.cjs +2 -2
- package/dist/components-ui-tabs-tabs.cjs.map +1 -1
- package/dist/components-ui-tabs-tabs.js +16 -16
- package/dist/components-ui-tabs-tabs.js.map +1 -1
- package/dist/components-ui-tooltip-tooltip.cjs +1 -1
- package/dist/components-ui-tooltip-tooltip.cjs.map +1 -1
- package/dist/components-ui-tooltip-tooltip.js +9 -10
- package/dist/components-ui-tooltip-tooltip.js.map +1 -1
- package/dist/components-ui-typography-typography.cjs +1 -1
- package/dist/components-ui-typography-typography.cjs.map +1 -1
- package/dist/components-ui-typography-typography.js +7 -7
- package/dist/components-ui-typography-typography.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/calendar-DReGV_22.cjs +0 -2
- package/dist/chart-C69jBlXa.cjs +0 -63
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsx as y, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { jsx as y, jsxs as Ge } from "react/jsx-runtime";
|
|
2
|
+
import * as re from "react";
|
|
3
|
+
import { useMemo as Le, useCallback as me, useLayoutEffect as Ae } from "react";
|
|
4
|
+
import { Table as ze, TableHeader as Oe, TableRow as Y, TableHead as Be, TableBody as Ne, TableCell as Se } from "./components-ui-table-table.js";
|
|
5
|
+
import { cn as z } from "./lib-utils.js";
|
|
6
|
+
import { Input as Te } from "./components-ui-input-input.js";
|
|
7
|
+
import { Textarea as qe } from "./components-ui-textarea-textarea.js";
|
|
7
8
|
function G(e, o) {
|
|
8
9
|
return typeof e == "function" ? e(o) : e;
|
|
9
10
|
}
|
|
@@ -15,13 +16,13 @@ function P(e, o) {
|
|
|
15
16
|
}));
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function Q(e) {
|
|
19
20
|
return e instanceof Function;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function ke(e) {
|
|
22
23
|
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function je(e, o) {
|
|
25
26
|
const t = [], n = (i) => {
|
|
26
27
|
i.forEach((r) => {
|
|
27
28
|
t.push(r);
|
|
@@ -65,7 +66,7 @@ function C(e, o, t, n) {
|
|
|
65
66
|
onChange: n
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function Ue(e, o, t, n) {
|
|
69
70
|
const i = () => {
|
|
70
71
|
var l;
|
|
71
72
|
return (l = r.getValue()) != null ? l : e.options.renderFallbackValue;
|
|
@@ -88,7 +89,7 @@ function qe(e, o, t, n) {
|
|
|
88
89
|
l.createCell == null || l.createCell(r, t, o, e);
|
|
89
90
|
}, {}), r;
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function Ke(e, o, t, n) {
|
|
92
93
|
var i, r;
|
|
93
94
|
const u = {
|
|
94
95
|
...e._getDefaultColumnDef(),
|
|
@@ -129,7 +130,7 @@ function ke(e, o, t, n) {
|
|
|
129
130
|
return m;
|
|
130
131
|
}
|
|
131
132
|
const x = "debugHeaders";
|
|
132
|
-
function
|
|
133
|
+
function Ce(e, o, t) {
|
|
133
134
|
var n;
|
|
134
135
|
let r = {
|
|
135
136
|
id: (n = t.id) != null ? n : o.id,
|
|
@@ -158,20 +159,20 @@ function Se(e, o, t) {
|
|
|
158
159
|
l.createHeader == null || l.createHeader(r, e);
|
|
159
160
|
}), r;
|
|
160
161
|
}
|
|
161
|
-
const
|
|
162
|
+
const Xe = {
|
|
162
163
|
createTable: (e) => {
|
|
163
164
|
e.getHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, i) => {
|
|
164
165
|
var r, l;
|
|
165
166
|
const u = (r = n?.map((m) => t.find((d) => d.id === m)).filter(Boolean)) != null ? r : [], a = (l = i?.map((m) => t.find((d) => d.id === m)).filter(Boolean)) != null ? l : [], g = t.filter((m) => !(n != null && n.includes(m.id)) && !(i != null && i.includes(m.id)));
|
|
166
|
-
return
|
|
167
|
-
}, C(e.options, x, "getHeaderGroups")), e.getCenterHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, i) => (t = t.filter((r) => !(n != null && n.includes(r.id)) && !(i != null && i.includes(r.id))),
|
|
167
|
+
return K(o, [...u, ...g, ...a], e);
|
|
168
|
+
}, C(e.options, x, "getHeaderGroups")), e.getCenterHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, i) => (t = t.filter((r) => !(n != null && n.includes(r.id)) && !(i != null && i.includes(r.id))), K(o, t, e, "center")), C(e.options, x, "getCenterHeaderGroups")), e.getLeftHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
168
169
|
var i;
|
|
169
170
|
const r = (i = n?.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? i : [];
|
|
170
|
-
return
|
|
171
|
+
return K(o, r, e, "left");
|
|
171
172
|
}, C(e.options, x, "getLeftHeaderGroups")), e.getRightHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
172
173
|
var i;
|
|
173
174
|
const r = (i = n?.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? i : [];
|
|
174
|
-
return
|
|
175
|
+
return K(o, r, e, "right");
|
|
175
176
|
}, C(e.options, x, "getRightHeaderGroups")), e.getFooterGroups = S(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, x, "getFooterGroups")), e.getLeftFooterGroups = S(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, x, "getLeftFooterGroups")), e.getCenterFooterGroups = S(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, x, "getCenterFooterGroups")), e.getRightFooterGroups = S(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, x, "getRightFooterGroups")), e.getFlatHeaders = S(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, x, "getFlatHeaders")), e.getLeftFlatHeaders = S(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, x, "getLeftFlatHeaders")), e.getCenterFlatHeaders = S(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, x, "getCenterFlatHeaders")), e.getRightFlatHeaders = S(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, x, "getRightFlatHeaders")), e.getCenterLeafHeaders = S(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
176
177
|
var n;
|
|
177
178
|
return !((n = t.subHeaders) != null && n.length);
|
|
@@ -187,7 +188,7 @@ const je = {
|
|
|
187
188
|
}, C(e.options, x, "getLeafHeaders"));
|
|
188
189
|
}
|
|
189
190
|
};
|
|
190
|
-
function
|
|
191
|
+
function K(e, o, t, n) {
|
|
191
192
|
var i, r;
|
|
192
193
|
let l = 0;
|
|
193
194
|
const u = function(d, s) {
|
|
@@ -210,7 +211,7 @@ function X(e, o, t, n) {
|
|
|
210
211
|
if (v && R.column.parent ? h = R.column.parent : (h = R.column, I = !0), w && w?.column === h)
|
|
211
212
|
w.subHeaders.push(R);
|
|
212
213
|
else {
|
|
213
|
-
const $ =
|
|
214
|
+
const $ = Ce(t, h, {
|
|
214
215
|
id: [n, s, h.id, R?.id].filter(Boolean).join("_"),
|
|
215
216
|
isPlaceholder: I,
|
|
216
217
|
placeholderId: I ? `${p.filter((H) => H.column === h).length}` : void 0,
|
|
@@ -221,7 +222,7 @@ function X(e, o, t, n) {
|
|
|
221
222
|
}
|
|
222
223
|
f.headers.push(R), R.headerGroup = f;
|
|
223
224
|
}), a.push(f), s > 0 && g(p, s - 1);
|
|
224
|
-
}, c = o.map((d, s) =>
|
|
225
|
+
}, c = o.map((d, s) => Ce(t, d, {
|
|
225
226
|
depth: l,
|
|
226
227
|
index: s
|
|
227
228
|
}));
|
|
@@ -271,7 +272,7 @@ const de = (e, o, t, n, i, r, l) => {
|
|
|
271
272
|
return (g = u.getValue(a)) != null ? g : e.options.renderFallbackValue;
|
|
272
273
|
},
|
|
273
274
|
subRows: [],
|
|
274
|
-
getLeafRows: () =>
|
|
275
|
+
getLeafRows: () => je(u.subRows, (a) => a.subRows),
|
|
275
276
|
getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
|
|
276
277
|
getParentRows: () => {
|
|
277
278
|
let a = [], g = u;
|
|
@@ -282,7 +283,7 @@ const de = (e, o, t, n, i, r, l) => {
|
|
|
282
283
|
}
|
|
283
284
|
return a.reverse();
|
|
284
285
|
},
|
|
285
|
-
getAllCells: S(() => [e.getAllLeafColumns()], (a) => a.map((g) =>
|
|
286
|
+
getAllCells: S(() => [e.getAllLeafColumns()], (a) => a.map((g) => Ue(e, u, g, g.id)), C(e.options, "debugRows", "getAllCells")),
|
|
286
287
|
_getAllCellsByColumnId: S(() => [u.getAllCells()], (a) => a.reduce((g, c) => (g[c.column.id] = c, g), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
287
288
|
};
|
|
288
289
|
for (let a = 0; a < e._features.length; a++) {
|
|
@@ -290,48 +291,48 @@ const de = (e, o, t, n, i, r, l) => {
|
|
|
290
291
|
g == null || g.createRow == null || g.createRow(u, e);
|
|
291
292
|
}
|
|
292
293
|
return u;
|
|
293
|
-
},
|
|
294
|
+
}, Je = {
|
|
294
295
|
createColumn: (e, o) => {
|
|
295
296
|
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 = () => {
|
|
296
297
|
if (e._getFacetedMinMaxValues)
|
|
297
298
|
return e._getFacetedMinMaxValues();
|
|
298
299
|
};
|
|
299
300
|
}
|
|
300
|
-
},
|
|
301
|
+
}, ve = (e, o, t) => {
|
|
301
302
|
var n, i;
|
|
302
303
|
const r = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
|
|
303
304
|
return !!(!((i = e.getValue(o)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(r));
|
|
304
305
|
};
|
|
305
|
-
he.autoRemove = (e) => E(e);
|
|
306
|
-
const ve = (e, o, t) => {
|
|
307
|
-
var n;
|
|
308
|
-
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
309
|
-
};
|
|
310
306
|
ve.autoRemove = (e) => E(e);
|
|
311
307
|
const _e = (e, o, t) => {
|
|
312
308
|
var n;
|
|
313
|
-
return ((n = e.getValue(o)) == null || (n = n.toString()) == null
|
|
309
|
+
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
314
310
|
};
|
|
315
311
|
_e.autoRemove = (e) => E(e);
|
|
316
312
|
const Fe = (e, o, t) => {
|
|
317
313
|
var n;
|
|
318
|
-
return (n = e.getValue(o)) == null ? void 0 : n.
|
|
314
|
+
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t?.toLowerCase();
|
|
319
315
|
};
|
|
320
316
|
Fe.autoRemove = (e) => E(e);
|
|
321
|
-
const $e = (e, o, t) =>
|
|
317
|
+
const $e = (e, o, t) => {
|
|
318
|
+
var n;
|
|
319
|
+
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
|
320
|
+
};
|
|
321
|
+
$e.autoRemove = (e) => E(e);
|
|
322
|
+
const Ve = (e, o, t) => !t.some((n) => {
|
|
322
323
|
var i;
|
|
323
324
|
return !((i = e.getValue(o)) != null && i.includes(n));
|
|
324
325
|
});
|
|
325
|
-
|
|
326
|
-
const
|
|
326
|
+
Ve.autoRemove = (e) => E(e) || !(e != null && e.length);
|
|
327
|
+
const Me = (e, o, t) => t.some((n) => {
|
|
327
328
|
var i;
|
|
328
329
|
return (i = e.getValue(o)) == null ? void 0 : i.includes(n);
|
|
329
330
|
});
|
|
330
|
-
|
|
331
|
-
const
|
|
332
|
-
Me.autoRemove = (e) => E(e);
|
|
333
|
-
const xe = (e, o, t) => e.getValue(o) == t;
|
|
331
|
+
Me.autoRemove = (e) => E(e) || !(e != null && e.length);
|
|
332
|
+
const xe = (e, o, t) => e.getValue(o) === t;
|
|
334
333
|
xe.autoRemove = (e) => E(e);
|
|
334
|
+
const Pe = (e, o, t) => e.getValue(o) == t;
|
|
335
|
+
Pe.autoRemove = (e) => E(e);
|
|
335
336
|
const ce = (e, o, t) => {
|
|
336
337
|
let [n, i] = t;
|
|
337
338
|
const r = e.getValue(o);
|
|
@@ -347,20 +348,20 @@ ce.resolveFilterValue = (e) => {
|
|
|
347
348
|
};
|
|
348
349
|
ce.autoRemove = (e) => E(e) || E(e[0]) && E(e[1]);
|
|
349
350
|
const D = {
|
|
350
|
-
includesString:
|
|
351
|
-
includesStringSensitive:
|
|
352
|
-
equalsString:
|
|
353
|
-
arrIncludes:
|
|
354
|
-
arrIncludesAll:
|
|
355
|
-
arrIncludesSome:
|
|
356
|
-
equals:
|
|
357
|
-
weakEquals:
|
|
351
|
+
includesString: ve,
|
|
352
|
+
includesStringSensitive: _e,
|
|
353
|
+
equalsString: Fe,
|
|
354
|
+
arrIncludes: $e,
|
|
355
|
+
arrIncludesAll: Ve,
|
|
356
|
+
arrIncludesSome: Me,
|
|
357
|
+
equals: xe,
|
|
358
|
+
weakEquals: Pe,
|
|
358
359
|
inNumberRange: ce
|
|
359
360
|
};
|
|
360
361
|
function E(e) {
|
|
361
362
|
return e == null || e === "";
|
|
362
363
|
}
|
|
363
|
-
const
|
|
364
|
+
const Qe = {
|
|
364
365
|
getDefaultColumnDef: () => ({
|
|
365
366
|
filterFn: "auto"
|
|
366
367
|
}),
|
|
@@ -379,7 +380,7 @@ const Ke = {
|
|
|
379
380
|
return typeof n == "string" ? D.includesString : typeof n == "number" ? D.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? D.equals : Array.isArray(n) ? D.arrIncludes : D.weakEquals;
|
|
380
381
|
}, e.getFilterFn = () => {
|
|
381
382
|
var t, n;
|
|
382
|
-
return
|
|
383
|
+
return Q(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
383
384
|
// @ts-ignore
|
|
384
385
|
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : D[e.columnDef.filterFn]
|
|
385
386
|
);
|
|
@@ -395,7 +396,7 @@ const Ke = {
|
|
|
395
396
|
}, e.setFilterValue = (t) => {
|
|
396
397
|
o.setColumnFilters((n) => {
|
|
397
398
|
const i = e.getFilterFn(), r = n?.find((c) => c.id === e.id), l = G(t, r ? r.value : void 0);
|
|
398
|
-
if (
|
|
399
|
+
if (Re(i, l, e)) {
|
|
399
400
|
var u;
|
|
400
401
|
return (u = n?.filter((c) => c.id !== e.id)) != null ? u : [];
|
|
401
402
|
}
|
|
@@ -422,7 +423,7 @@ const Ke = {
|
|
|
422
423
|
const u = t.find((a) => a.id === l.id);
|
|
423
424
|
if (u) {
|
|
424
425
|
const a = u.getFilterFn();
|
|
425
|
-
if (
|
|
426
|
+
if (Re(a, l.value, u))
|
|
426
427
|
return !1;
|
|
427
428
|
}
|
|
428
429
|
return !0;
|
|
@@ -435,57 +436,57 @@ const Ke = {
|
|
|
435
436
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
436
437
|
}
|
|
437
438
|
};
|
|
438
|
-
function
|
|
439
|
+
function Re(e, o, t) {
|
|
439
440
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
440
441
|
}
|
|
441
|
-
const
|
|
442
|
+
const We = (e, o, t) => t.reduce((n, i) => {
|
|
442
443
|
const r = i.getValue(e);
|
|
443
444
|
return n + (typeof r == "number" ? r : 0);
|
|
444
|
-
}, 0),
|
|
445
|
+
}, 0), Ye = (e, o, t) => {
|
|
445
446
|
let n;
|
|
446
447
|
return t.forEach((i) => {
|
|
447
448
|
const r = i.getValue(e);
|
|
448
449
|
r != null && (n > r || n === void 0 && r >= r) && (n = r);
|
|
449
450
|
}), n;
|
|
450
|
-
},
|
|
451
|
+
}, Ze = (e, o, t) => {
|
|
451
452
|
let n;
|
|
452
453
|
return t.forEach((i) => {
|
|
453
454
|
const r = i.getValue(e);
|
|
454
455
|
r != null && (n < r || n === void 0 && r >= r) && (n = r);
|
|
455
456
|
}), n;
|
|
456
|
-
},
|
|
457
|
+
}, be = (e, o, t) => {
|
|
457
458
|
let n, i;
|
|
458
459
|
return t.forEach((r) => {
|
|
459
460
|
const l = r.getValue(e);
|
|
460
461
|
l != null && (n === void 0 ? l >= l && (n = i = l) : (n > l && (n = l), i < l && (i = l)));
|
|
461
462
|
}), [n, i];
|
|
462
|
-
},
|
|
463
|
+
}, et = (e, o) => {
|
|
463
464
|
let t = 0, n = 0;
|
|
464
465
|
if (o.forEach((i) => {
|
|
465
466
|
let r = i.getValue(e);
|
|
466
467
|
r != null && (r = +r) >= r && (++t, n += r);
|
|
467
468
|
}), t) return n / t;
|
|
468
|
-
},
|
|
469
|
+
}, tt = (e, o) => {
|
|
469
470
|
if (!o.length)
|
|
470
471
|
return;
|
|
471
472
|
const t = o.map((r) => r.getValue(e));
|
|
472
|
-
if (!
|
|
473
|
+
if (!ke(t))
|
|
473
474
|
return;
|
|
474
475
|
if (t.length === 1)
|
|
475
476
|
return t[0];
|
|
476
477
|
const n = Math.floor(t.length / 2), i = t.sort((r, l) => r - l);
|
|
477
478
|
return t.length % 2 !== 0 ? i[n] : (i[n - 1] + i[n]) / 2;
|
|
478
|
-
},
|
|
479
|
-
sum:
|
|
480
|
-
min:
|
|
481
|
-
max:
|
|
482
|
-
extent:
|
|
483
|
-
mean:
|
|
484
|
-
median:
|
|
485
|
-
unique:
|
|
486
|
-
uniqueCount:
|
|
487
|
-
count:
|
|
488
|
-
},
|
|
479
|
+
}, nt = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), ot = (e, o) => new Set(o.map((t) => t.getValue(e))).size, it = (e, o) => o.length, Z = {
|
|
480
|
+
sum: We,
|
|
481
|
+
min: Ye,
|
|
482
|
+
max: Ze,
|
|
483
|
+
extent: be,
|
|
484
|
+
mean: et,
|
|
485
|
+
median: tt,
|
|
486
|
+
unique: nt,
|
|
487
|
+
uniqueCount: ot,
|
|
488
|
+
count: it
|
|
489
|
+
}, rt = {
|
|
489
490
|
getDefaultColumnDef: () => ({
|
|
490
491
|
aggregatedCell: (e) => {
|
|
491
492
|
var o, t;
|
|
@@ -521,14 +522,14 @@ const Xe = (e, o, t) => t.reduce((n, i) => {
|
|
|
521
522
|
}, e.getAutoAggregationFn = () => {
|
|
522
523
|
const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
|
|
523
524
|
if (typeof n == "number")
|
|
524
|
-
return
|
|
525
|
+
return Z.sum;
|
|
525
526
|
if (Object.prototype.toString.call(n) === "[object Date]")
|
|
526
|
-
return
|
|
527
|
+
return Z.extent;
|
|
527
528
|
}, e.getAggregationFn = () => {
|
|
528
529
|
var t, n;
|
|
529
530
|
if (!e)
|
|
530
531
|
throw new Error();
|
|
531
|
-
return
|
|
532
|
+
return Q(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 : Z[e.columnDef.aggregationFn];
|
|
532
533
|
};
|
|
533
534
|
},
|
|
534
535
|
createTable: (e) => {
|
|
@@ -552,13 +553,13 @@ const Xe = (e, o, t) => t.reduce((n, i) => {
|
|
|
552
553
|
};
|
|
553
554
|
}
|
|
554
555
|
};
|
|
555
|
-
function
|
|
556
|
+
function lt(e, o, t) {
|
|
556
557
|
if (!(o != null && o.length) || !t)
|
|
557
558
|
return e;
|
|
558
559
|
const n = e.filter((r) => !o.includes(r.id));
|
|
559
560
|
return t === "remove" ? n : [...o.map((r) => e.find((l) => l.id === r)).filter(Boolean), ...n];
|
|
560
561
|
}
|
|
561
|
-
const
|
|
562
|
+
const st = {
|
|
562
563
|
getInitialState: (e) => ({
|
|
563
564
|
columnOrder: [],
|
|
564
565
|
...e
|
|
@@ -567,12 +568,12 @@ const it = {
|
|
|
567
568
|
onColumnOrderChange: P("columnOrder", e)
|
|
568
569
|
}),
|
|
569
570
|
createColumn: (e, o) => {
|
|
570
|
-
e.getIndex = S((t) => [
|
|
571
|
+
e.getIndex = S((t) => [k(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
571
572
|
var n;
|
|
572
|
-
return ((n =
|
|
573
|
+
return ((n = k(o, t)[0]) == null ? void 0 : n.id) === e.id;
|
|
573
574
|
}, e.getIsLastColumn = (t) => {
|
|
574
575
|
var n;
|
|
575
|
-
const i =
|
|
576
|
+
const i = k(o, t);
|
|
576
577
|
return ((n = i[i.length - 1]) == null ? void 0 : n.id) === e.id;
|
|
577
578
|
};
|
|
578
579
|
},
|
|
@@ -592,15 +593,15 @@ const it = {
|
|
|
592
593
|
}
|
|
593
594
|
r = [...r, ...u];
|
|
594
595
|
}
|
|
595
|
-
return
|
|
596
|
+
return lt(r, t, n);
|
|
596
597
|
}, C(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
597
598
|
}
|
|
598
|
-
},
|
|
599
|
+
}, b = () => ({
|
|
599
600
|
left: [],
|
|
600
601
|
right: []
|
|
601
|
-
}),
|
|
602
|
+
}), ut = {
|
|
602
603
|
getInitialState: (e) => ({
|
|
603
|
-
columnPinning:
|
|
604
|
+
columnPinning: b(),
|
|
604
605
|
...e
|
|
605
606
|
}),
|
|
606
607
|
getDefaultOptions: (e) => ({
|
|
@@ -660,7 +661,7 @@ const it = {
|
|
|
660
661
|
createTable: (e) => {
|
|
661
662
|
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
662
663
|
var t, n;
|
|
663
|
-
return e.setColumnPinning(o ?
|
|
664
|
+
return e.setColumnPinning(o ? b() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : b());
|
|
664
665
|
}, e.getIsSomeColumnsPinned = (o) => {
|
|
665
666
|
var t;
|
|
666
667
|
const n = e.getState().columnPinning;
|
|
@@ -675,25 +676,25 @@ const it = {
|
|
|
675
676
|
}, C(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
676
677
|
}
|
|
677
678
|
};
|
|
678
|
-
function
|
|
679
|
+
function at(e) {
|
|
679
680
|
return e || (typeof document < "u" ? document : null);
|
|
680
681
|
}
|
|
681
|
-
const
|
|
682
|
+
const X = {
|
|
682
683
|
size: 150,
|
|
683
684
|
minSize: 20,
|
|
684
685
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
685
|
-
},
|
|
686
|
+
}, ee = () => ({
|
|
686
687
|
startOffset: null,
|
|
687
688
|
startSize: null,
|
|
688
689
|
deltaOffset: null,
|
|
689
690
|
deltaPercentage: null,
|
|
690
691
|
isResizingColumn: !1,
|
|
691
692
|
columnSizingStart: []
|
|
692
|
-
}),
|
|
693
|
-
getDefaultColumnDef: () =>
|
|
693
|
+
}), gt = {
|
|
694
|
+
getDefaultColumnDef: () => X,
|
|
694
695
|
getInitialState: (e) => ({
|
|
695
696
|
columnSizing: {},
|
|
696
|
-
columnSizingInfo:
|
|
697
|
+
columnSizingInfo: ee(),
|
|
697
698
|
...e
|
|
698
699
|
}),
|
|
699
700
|
getDefaultOptions: (e) => ({
|
|
@@ -706,8 +707,8 @@ const J = {
|
|
|
706
707
|
e.getSize = () => {
|
|
707
708
|
var t, n, i;
|
|
708
709
|
const r = o.getState().columnSizing[e.id];
|
|
709
|
-
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t :
|
|
710
|
-
}, e.getStart = S((t) => [t,
|
|
710
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : X.minSize, (n = r ?? e.columnDef.size) != null ? n : X.size), (i = e.columnDef.maxSize) != null ? i : X.maxSize);
|
|
711
|
+
}, e.getStart = S((t) => [t, k(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((i, r) => i + r.getSize(), 0), C(o.options, "debugColumns", "getStart")), e.getAfter = S((t) => [t, k(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((i, r) => i + r.getSize(), 0), C(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
711
712
|
o.setColumnSizing((t) => {
|
|
712
713
|
let {
|
|
713
714
|
[e.id]: n,
|
|
@@ -741,19 +742,19 @@ const J = {
|
|
|
741
742
|
}, e.getResizeHandler = (t) => {
|
|
742
743
|
const n = o.getColumn(e.column.id), i = n?.getCanResize();
|
|
743
744
|
return (r) => {
|
|
744
|
-
if (!n || !i || (r.persist == null || r.persist(),
|
|
745
|
+
if (!n || !i || (r.persist == null || r.persist(), te(r) && r.touches && r.touches.length > 1))
|
|
745
746
|
return;
|
|
746
|
-
const l = e.getSize(), u = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[n.id, n.getSize()]], a =
|
|
747
|
+
const l = e.getSize(), u = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[n.id, n.getSize()]], a = te(r) ? Math.round(r.touches[0].clientX) : r.clientX, g = {}, c = (w, v) => {
|
|
747
748
|
typeof v == "number" && (o.setColumnSizingInfo((h) => {
|
|
748
749
|
var I, $;
|
|
749
|
-
const H = o.options.columnResizeDirection === "rtl" ? -1 : 1, V = (v - ((I = h?.startOffset) != null ? I : 0)) * H,
|
|
750
|
-
return h.columnSizingStart.forEach((
|
|
751
|
-
let [
|
|
752
|
-
g[
|
|
750
|
+
const H = o.options.columnResizeDirection === "rtl" ? -1 : 1, V = (v - ((I = h?.startOffset) != null ? I : 0)) * H, O = Math.max(V / (($ = h?.startSize) != null ? $ : 0), -0.999999);
|
|
751
|
+
return h.columnSizingStart.forEach((j) => {
|
|
752
|
+
let [B, U] = j;
|
|
753
|
+
g[B] = Math.round(Math.max(U + U * O, 0) * 100) / 100;
|
|
753
754
|
}), {
|
|
754
755
|
...h,
|
|
755
756
|
deltaOffset: V,
|
|
756
|
-
deltaPercentage:
|
|
757
|
+
deltaPercentage: O
|
|
757
758
|
};
|
|
758
759
|
}), (o.options.columnResizeMode === "onChange" || w === "end") && o.setColumnSizing((h) => ({
|
|
759
760
|
...h,
|
|
@@ -769,7 +770,7 @@ const J = {
|
|
|
769
770
|
deltaPercentage: null,
|
|
770
771
|
columnSizingStart: []
|
|
771
772
|
}));
|
|
772
|
-
}, s =
|
|
773
|
+
}, s = at(t), f = {
|
|
773
774
|
moveHandler: (w) => m(w.clientX),
|
|
774
775
|
upHandler: (w) => {
|
|
775
776
|
s?.removeEventListener("mousemove", f.moveHandler), s?.removeEventListener("mouseup", f.upHandler), d(w.clientX);
|
|
@@ -780,10 +781,10 @@ const J = {
|
|
|
780
781
|
var v;
|
|
781
782
|
s?.removeEventListener("touchmove", p.moveHandler), s?.removeEventListener("touchend", p.upHandler), w.cancelable && (w.preventDefault(), w.stopPropagation()), d((v = w.touches[0]) == null ? void 0 : v.clientX);
|
|
782
783
|
}
|
|
783
|
-
}, R =
|
|
784
|
+
}, R = dt() ? {
|
|
784
785
|
passive: !1
|
|
785
786
|
} : !1;
|
|
786
|
-
|
|
787
|
+
te(r) ? (s?.addEventListener("touchmove", p.moveHandler, R), s?.addEventListener("touchend", p.upHandler, R)) : (s?.addEventListener("mousemove", f.moveHandler, R), s?.addEventListener("mouseup", f.upHandler, R)), o.setColumnSizingInfo((w) => ({
|
|
787
788
|
...w,
|
|
788
789
|
startOffset: a,
|
|
789
790
|
startSize: l,
|
|
@@ -801,7 +802,7 @@ const J = {
|
|
|
801
802
|
e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
802
803
|
}, e.resetHeaderSizeInfo = (o) => {
|
|
803
804
|
var t;
|
|
804
|
-
e.setColumnSizingInfo(o ?
|
|
805
|
+
e.setColumnSizingInfo(o ? ee() : (t = e.initialState.columnSizingInfo) != null ? t : ee());
|
|
805
806
|
}, e.getTotalSize = () => {
|
|
806
807
|
var o, t;
|
|
807
808
|
return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, i) => n + i.getSize(), 0)) != null ? o : 0;
|
|
@@ -817,9 +818,9 @@ const J = {
|
|
|
817
818
|
};
|
|
818
819
|
}
|
|
819
820
|
};
|
|
820
|
-
let
|
|
821
|
-
function
|
|
822
|
-
if (typeof
|
|
821
|
+
let J = null;
|
|
822
|
+
function dt() {
|
|
823
|
+
if (typeof J == "boolean") return J;
|
|
823
824
|
let e = !1;
|
|
824
825
|
try {
|
|
825
826
|
const o = {
|
|
@@ -832,12 +833,12 @@ function ut() {
|
|
|
832
833
|
} catch {
|
|
833
834
|
e = !1;
|
|
834
835
|
}
|
|
835
|
-
return
|
|
836
|
+
return J = e, J;
|
|
836
837
|
}
|
|
837
|
-
function
|
|
838
|
+
function te(e) {
|
|
838
839
|
return e.type === "touchstart";
|
|
839
840
|
}
|
|
840
|
-
const
|
|
841
|
+
const ct = {
|
|
841
842
|
getInitialState: (e) => ({
|
|
842
843
|
columnVisibility: {},
|
|
843
844
|
...e
|
|
@@ -882,17 +883,17 @@ const at = {
|
|
|
882
883
|
};
|
|
883
884
|
}
|
|
884
885
|
};
|
|
885
|
-
function
|
|
886
|
+
function k(e, o) {
|
|
886
887
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
887
888
|
}
|
|
888
|
-
const
|
|
889
|
+
const ft = {
|
|
889
890
|
createTable: (e) => {
|
|
890
891
|
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 = () => {
|
|
891
892
|
if (e._getGlobalFacetedMinMaxValues)
|
|
892
893
|
return e._getGlobalFacetedMinMaxValues();
|
|
893
894
|
};
|
|
894
895
|
}
|
|
895
|
-
},
|
|
896
|
+
}, pt = {
|
|
896
897
|
getInitialState: (e) => ({
|
|
897
898
|
globalFilter: void 0,
|
|
898
899
|
...e
|
|
@@ -918,14 +919,14 @@ const gt = {
|
|
|
918
919
|
const {
|
|
919
920
|
globalFilterFn: n
|
|
920
921
|
} = e.options;
|
|
921
|
-
return
|
|
922
|
+
return Q(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : D[n];
|
|
922
923
|
}, e.setGlobalFilter = (o) => {
|
|
923
924
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
|
|
924
925
|
}, e.resetGlobalFilter = (o) => {
|
|
925
926
|
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
|
926
927
|
};
|
|
927
928
|
}
|
|
928
|
-
},
|
|
929
|
+
}, mt = {
|
|
929
930
|
getInitialState: (e) => ({
|
|
930
931
|
expanded: {},
|
|
931
932
|
...e
|
|
@@ -1012,14 +1013,14 @@ const gt = {
|
|
|
1012
1013
|
};
|
|
1013
1014
|
};
|
|
1014
1015
|
}
|
|
1015
|
-
}, le = 0, se = 10,
|
|
1016
|
+
}, le = 0, se = 10, ne = () => ({
|
|
1016
1017
|
pageIndex: le,
|
|
1017
1018
|
pageSize: se
|
|
1018
|
-
}),
|
|
1019
|
+
}), St = {
|
|
1019
1020
|
getInitialState: (e) => ({
|
|
1020
1021
|
...e,
|
|
1021
1022
|
pagination: {
|
|
1022
|
-
...
|
|
1023
|
+
...ne(),
|
|
1023
1024
|
...e?.pagination
|
|
1024
1025
|
}
|
|
1025
1026
|
}),
|
|
@@ -1047,7 +1048,7 @@ const gt = {
|
|
|
1047
1048
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(i);
|
|
1048
1049
|
}, e.resetPagination = (n) => {
|
|
1049
1050
|
var i;
|
|
1050
|
-
e.setPagination(n ?
|
|
1051
|
+
e.setPagination(n ? ne() : (i = e.initialState.pagination) != null ? i : ne());
|
|
1051
1052
|
}, e.setPageIndex = (n) => {
|
|
1052
1053
|
e.setPagination((i) => {
|
|
1053
1054
|
let r = G(n, i.pageIndex);
|
|
@@ -1095,12 +1096,12 @@ const gt = {
|
|
|
1095
1096
|
return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
|
|
1096
1097
|
};
|
|
1097
1098
|
}
|
|
1098
|
-
},
|
|
1099
|
+
}, oe = () => ({
|
|
1099
1100
|
top: [],
|
|
1100
1101
|
bottom: []
|
|
1101
|
-
}),
|
|
1102
|
+
}), Ct = {
|
|
1102
1103
|
getInitialState: (e) => ({
|
|
1103
|
-
rowPinning:
|
|
1104
|
+
rowPinning: oe(),
|
|
1104
1105
|
...e
|
|
1105
1106
|
}),
|
|
1106
1107
|
getDefaultOptions: (e) => ({
|
|
@@ -1169,7 +1170,7 @@ const gt = {
|
|
|
1169
1170
|
createTable: (e) => {
|
|
1170
1171
|
e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
|
|
1171
1172
|
var t, n;
|
|
1172
|
-
return e.setRowPinning(o ?
|
|
1173
|
+
return e.setRowPinning(o ? oe() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : oe());
|
|
1173
1174
|
}, e.getIsSomeRowsPinned = (o) => {
|
|
1174
1175
|
var t;
|
|
1175
1176
|
const n = e.getState().rowPinning;
|
|
@@ -1199,7 +1200,7 @@ const gt = {
|
|
|
1199
1200
|
return o.filter((r) => !i.has(r.id));
|
|
1200
1201
|
}, C(e.options, "debugRows", "getCenterRows"));
|
|
1201
1202
|
}
|
|
1202
|
-
},
|
|
1203
|
+
}, Rt = {
|
|
1203
1204
|
getInitialState: (e) => ({
|
|
1204
1205
|
rowSelection: {},
|
|
1205
1206
|
...e
|
|
@@ -1236,15 +1237,15 @@ const gt = {
|
|
|
1236
1237
|
return e.getRowModel().rows.forEach((r) => {
|
|
1237
1238
|
ue(i, r.id, n, !0, e);
|
|
1238
1239
|
}), i;
|
|
1239
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ?
|
|
1240
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? ie(e, t) : {
|
|
1240
1241
|
rows: [],
|
|
1241
1242
|
flatRows: [],
|
|
1242
1243
|
rowsById: {}
|
|
1243
|
-
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ?
|
|
1244
|
+
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? ie(e, t) : {
|
|
1244
1245
|
rows: [],
|
|
1245
1246
|
flatRows: [],
|
|
1246
1247
|
rowsById: {}
|
|
1247
|
-
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ?
|
|
1248
|
+
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? ie(e, t) : {
|
|
1248
1249
|
rows: [],
|
|
1249
1250
|
flatRows: [],
|
|
1250
1251
|
rowsById: {}
|
|
@@ -1322,7 +1323,7 @@ const gt = {
|
|
|
1322
1323
|
const l = i.getRow(o, !0);
|
|
1323
1324
|
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (r = l.subRows) != null && r.length && l.getCanSelectSubRows() && l.subRows.forEach((u) => ue(e, u.id, t, n, i));
|
|
1324
1325
|
};
|
|
1325
|
-
function
|
|
1326
|
+
function ie(e, o) {
|
|
1326
1327
|
const t = e.getState().rowSelection, n = [], i = {}, r = function(l, u) {
|
|
1327
1328
|
return l.map((a) => {
|
|
1328
1329
|
var g;
|
|
@@ -1355,17 +1356,17 @@ function ae(e, o, t) {
|
|
|
1355
1356
|
}
|
|
1356
1357
|
}), i ? "all" : r ? "some" : !1;
|
|
1357
1358
|
}
|
|
1358
|
-
const ge = /([0-9]+)/gm,
|
|
1359
|
+
const ge = /([0-9]+)/gm, wt = (e, o, t) => Ie(L(e.getValue(t)).toLowerCase(), L(o.getValue(t)).toLowerCase()), ht = (e, o, t) => Ie(L(e.getValue(t)), L(o.getValue(t))), vt = (e, o, t) => pe(L(e.getValue(t)).toLowerCase(), L(o.getValue(t)).toLowerCase()), _t = (e, o, t) => pe(L(e.getValue(t)), L(o.getValue(t))), Ft = (e, o, t) => {
|
|
1359
1360
|
const n = e.getValue(t), i = o.getValue(t);
|
|
1360
1361
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
1361
|
-
},
|
|
1362
|
+
}, $t = (e, o, t) => pe(e.getValue(t), o.getValue(t));
|
|
1362
1363
|
function pe(e, o) {
|
|
1363
1364
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1364
1365
|
}
|
|
1365
1366
|
function L(e) {
|
|
1366
1367
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1367
1368
|
}
|
|
1368
|
-
function
|
|
1369
|
+
function Ie(e, o) {
|
|
1369
1370
|
const t = e.split(ge).filter(Boolean), n = o.split(ge).filter(Boolean);
|
|
1370
1371
|
for (; t.length && n.length; ) {
|
|
1371
1372
|
const i = t.shift(), r = n.shift(), l = parseInt(i, 10), u = parseInt(r, 10), a = [l, u].sort();
|
|
@@ -1385,14 +1386,14 @@ function Pe(e, o) {
|
|
|
1385
1386
|
}
|
|
1386
1387
|
return t.length - n.length;
|
|
1387
1388
|
}
|
|
1388
|
-
const
|
|
1389
|
-
alphanumeric:
|
|
1390
|
-
alphanumericCaseSensitive:
|
|
1391
|
-
text:
|
|
1392
|
-
textCaseSensitive:
|
|
1393
|
-
datetime:
|
|
1394
|
-
basic:
|
|
1395
|
-
},
|
|
1389
|
+
const q = {
|
|
1390
|
+
alphanumeric: wt,
|
|
1391
|
+
alphanumericCaseSensitive: ht,
|
|
1392
|
+
text: vt,
|
|
1393
|
+
textCaseSensitive: _t,
|
|
1394
|
+
datetime: Ft,
|
|
1395
|
+
basic: $t
|
|
1396
|
+
}, Vt = {
|
|
1396
1397
|
getInitialState: (e) => ({
|
|
1397
1398
|
sorting: [],
|
|
1398
1399
|
...e
|
|
@@ -1412,11 +1413,11 @@ const k = {
|
|
|
1412
1413
|
for (const i of t) {
|
|
1413
1414
|
const r = i?.getValue(e.id);
|
|
1414
1415
|
if (Object.prototype.toString.call(r) === "[object Date]")
|
|
1415
|
-
return
|
|
1416
|
+
return q.datetime;
|
|
1416
1417
|
if (typeof r == "string" && (n = !0, r.split(ge).length > 1))
|
|
1417
|
-
return
|
|
1418
|
+
return q.alphanumeric;
|
|
1418
1419
|
}
|
|
1419
|
-
return n ?
|
|
1420
|
+
return n ? q.text : q.basic;
|
|
1420
1421
|
}, e.getAutoSortDir = () => {
|
|
1421
1422
|
const t = o.getFilteredRowModel().flatRows[0];
|
|
1422
1423
|
return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
|
|
@@ -1424,7 +1425,7 @@ const k = {
|
|
|
1424
1425
|
var t, n;
|
|
1425
1426
|
if (!e)
|
|
1426
1427
|
throw new Error();
|
|
1427
|
-
return
|
|
1428
|
+
return Q(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 : q[e.columnDef.sortingFn];
|
|
1428
1429
|
}, e.toggleSorting = (t, n) => {
|
|
1429
1430
|
const i = e.getNextSortingOrder(), r = typeof t < "u" && t !== null;
|
|
1430
1431
|
o.setSorting((l) => {
|
|
@@ -1481,30 +1482,30 @@ const k = {
|
|
|
1481
1482
|
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
1482
1483
|
}, 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());
|
|
1483
1484
|
}
|
|
1484
|
-
},
|
|
1485
|
-
|
|
1486
|
-
at,
|
|
1487
|
-
it,
|
|
1488
|
-
rt,
|
|
1489
|
-
Ue,
|
|
1490
|
-
Ke,
|
|
1491
|
-
gt,
|
|
1492
|
-
//depends on ColumnFaceting
|
|
1493
|
-
dt,
|
|
1494
|
-
//depends on ColumnFiltering
|
|
1495
|
-
_t,
|
|
1496
|
-
nt,
|
|
1497
|
-
//depends on RowSorting
|
|
1485
|
+
}, Mt = [
|
|
1486
|
+
Xe,
|
|
1498
1487
|
ct,
|
|
1488
|
+
st,
|
|
1489
|
+
ut,
|
|
1490
|
+
Je,
|
|
1491
|
+
Qe,
|
|
1499
1492
|
ft,
|
|
1493
|
+
//depends on ColumnFaceting
|
|
1500
1494
|
pt,
|
|
1495
|
+
//depends on ColumnFiltering
|
|
1496
|
+
Vt,
|
|
1497
|
+
rt,
|
|
1498
|
+
//depends on RowSorting
|
|
1501
1499
|
mt,
|
|
1502
|
-
|
|
1500
|
+
St,
|
|
1501
|
+
Ct,
|
|
1502
|
+
Rt,
|
|
1503
|
+
gt
|
|
1503
1504
|
];
|
|
1504
|
-
function
|
|
1505
|
+
function xt(e) {
|
|
1505
1506
|
var o, t;
|
|
1506
1507
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1507
|
-
const n = [...
|
|
1508
|
+
const n = [...Mt, ...(o = e._features) != null ? o : []];
|
|
1508
1509
|
let i = {
|
|
1509
1510
|
_features: n
|
|
1510
1511
|
};
|
|
@@ -1584,7 +1585,7 @@ function $t(e) {
|
|
|
1584
1585
|
getAllColumns: S(() => [i._getColumnDefs()], (d) => {
|
|
1585
1586
|
const s = function(f, p, R) {
|
|
1586
1587
|
return R === void 0 && (R = 0), f.map((w) => {
|
|
1587
|
-
const v =
|
|
1588
|
+
const v = Ke(i, w, R, p), h = w;
|
|
1588
1589
|
return v.columns = h.columns ? s(h.columns, v, R + 1) : [], v;
|
|
1589
1590
|
});
|
|
1590
1591
|
};
|
|
@@ -1608,7 +1609,7 @@ function $t(e) {
|
|
|
1608
1609
|
}
|
|
1609
1610
|
return i;
|
|
1610
1611
|
}
|
|
1611
|
-
function
|
|
1612
|
+
function Pt() {
|
|
1612
1613
|
return (e) => S(() => [e.options.data], (o) => {
|
|
1613
1614
|
const t = {
|
|
1614
1615
|
rows: [],
|
|
@@ -1629,7 +1630,7 @@ function Vt() {
|
|
|
1629
1630
|
return t.rows = n(o), t;
|
|
1630
1631
|
}, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
1631
1632
|
}
|
|
1632
|
-
function
|
|
1633
|
+
function It(e) {
|
|
1633
1634
|
const o = [], t = (n) => {
|
|
1634
1635
|
var i;
|
|
1635
1636
|
o.push(n), (i = n.subRows) != null && i.length && n.getIsExpanded() && n.subRows.forEach(t);
|
|
@@ -1640,10 +1641,10 @@ function Mt(e) {
|
|
|
1640
1641
|
rowsById: e.rowsById
|
|
1641
1642
|
};
|
|
1642
1643
|
}
|
|
1643
|
-
function
|
|
1644
|
-
return t.options.filterFromLeafRows ?
|
|
1644
|
+
function yt(e, o, t) {
|
|
1645
|
+
return t.options.filterFromLeafRows ? Et(e, o, t) : Dt(e, o, t);
|
|
1645
1646
|
}
|
|
1646
|
-
function
|
|
1647
|
+
function Et(e, o, t) {
|
|
1647
1648
|
var n;
|
|
1648
1649
|
const i = [], r = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(a, g) {
|
|
1649
1650
|
g === void 0 && (g = 0);
|
|
@@ -1672,7 +1673,7 @@ function Pt(e, o, t) {
|
|
|
1672
1673
|
rowsById: r
|
|
1673
1674
|
};
|
|
1674
1675
|
}
|
|
1675
|
-
function
|
|
1676
|
+
function Dt(e, o, t) {
|
|
1676
1677
|
var n;
|
|
1677
1678
|
const i = [], r = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(a, g) {
|
|
1678
1679
|
g === void 0 && (g = 0);
|
|
@@ -1696,7 +1697,7 @@ function It(e, o, t) {
|
|
|
1696
1697
|
rowsById: r
|
|
1697
1698
|
};
|
|
1698
1699
|
}
|
|
1699
|
-
function
|
|
1700
|
+
function Ht() {
|
|
1700
1701
|
return (e) => S(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
|
|
1701
1702
|
if (!o.rows.length || !(t != null && t.length) && !n) {
|
|
1702
1703
|
for (let d = 0; d < o.flatRows.length; d++)
|
|
@@ -1760,10 +1761,10 @@ function yt() {
|
|
|
1760
1761
|
return !1;
|
|
1761
1762
|
return !0;
|
|
1762
1763
|
};
|
|
1763
|
-
return
|
|
1764
|
+
return yt(o.rows, m, e);
|
|
1764
1765
|
}, C(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
1765
1766
|
}
|
|
1766
|
-
function
|
|
1767
|
+
function Gt(e) {
|
|
1767
1768
|
return (o) => S(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
|
|
1768
1769
|
if (!n.rows.length)
|
|
1769
1770
|
return n;
|
|
@@ -1783,7 +1784,7 @@ function Et(e) {
|
|
|
1783
1784
|
rows: l,
|
|
1784
1785
|
flatRows: u,
|
|
1785
1786
|
rowsById: a
|
|
1786
|
-
} : m =
|
|
1787
|
+
} : m = It({
|
|
1787
1788
|
rows: l,
|
|
1788
1789
|
flatRows: u,
|
|
1789
1790
|
rowsById: a
|
|
@@ -1794,7 +1795,7 @@ function Et(e) {
|
|
|
1794
1795
|
return m.rows.forEach(d), m;
|
|
1795
1796
|
}, C(o.options, "debugTable", "getPaginationRowModel"));
|
|
1796
1797
|
}
|
|
1797
|
-
function
|
|
1798
|
+
function Lt() {
|
|
1798
1799
|
return (e) => S(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
1799
1800
|
if (!t.rows.length || !(o != null && o.length))
|
|
1800
1801
|
return t;
|
|
@@ -1843,22 +1844,22 @@ function Dt() {
|
|
|
1843
1844
|
};
|
|
1844
1845
|
}, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
1845
1846
|
}
|
|
1846
|
-
function
|
|
1847
|
-
return e ?
|
|
1847
|
+
function we(e, o) {
|
|
1848
|
+
return e ? At(e) ? /* @__PURE__ */ re.createElement(e, o) : e : null;
|
|
1848
1849
|
}
|
|
1849
|
-
function
|
|
1850
|
-
return
|
|
1850
|
+
function At(e) {
|
|
1851
|
+
return zt(e) || typeof e == "function" || Ot(e);
|
|
1851
1852
|
}
|
|
1852
|
-
function
|
|
1853
|
+
function zt(e) {
|
|
1853
1854
|
return typeof e == "function" && (() => {
|
|
1854
1855
|
const o = Object.getPrototypeOf(e);
|
|
1855
1856
|
return o.prototype && o.prototype.isReactComponent;
|
|
1856
1857
|
})();
|
|
1857
1858
|
}
|
|
1858
|
-
function
|
|
1859
|
+
function Ot(e) {
|
|
1859
1860
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
1860
1861
|
}
|
|
1861
|
-
function
|
|
1862
|
+
function Bt(e) {
|
|
1862
1863
|
const o = {
|
|
1863
1864
|
state: {},
|
|
1864
1865
|
// Dummy state
|
|
@@ -1867,9 +1868,9 @@ function At(e) {
|
|
|
1867
1868
|
// noop
|
|
1868
1869
|
renderFallbackValue: null,
|
|
1869
1870
|
...e
|
|
1870
|
-
}, [t] =
|
|
1871
|
-
current:
|
|
1872
|
-
})), [n, i] =
|
|
1871
|
+
}, [t] = re.useState(() => ({
|
|
1872
|
+
current: xt(o)
|
|
1873
|
+
})), [n, i] = re.useState(() => t.current.initialState);
|
|
1873
1874
|
return t.current.setOptions((r) => ({
|
|
1874
1875
|
...r,
|
|
1875
1876
|
...e,
|
|
@@ -1884,24 +1885,24 @@ function At(e) {
|
|
|
1884
1885
|
}
|
|
1885
1886
|
})), t.current;
|
|
1886
1887
|
}
|
|
1887
|
-
function
|
|
1888
|
+
function he(e) {
|
|
1888
1889
|
return e.meta;
|
|
1889
1890
|
}
|
|
1890
|
-
function
|
|
1891
|
+
function Nt(e, o) {
|
|
1891
1892
|
if (o?.editKey)
|
|
1892
1893
|
return o.editKey;
|
|
1893
1894
|
if ("accessorKey" in e && typeof e.accessorKey == "string")
|
|
1894
1895
|
return e.accessorKey;
|
|
1895
1896
|
}
|
|
1896
|
-
function
|
|
1897
|
+
function Tt(e, o, t) {
|
|
1897
1898
|
const n = t?.getEditValue?.(e) ?? e[o];
|
|
1898
1899
|
return typeof n == "string" ? n : typeof n == "number" || typeof n == "boolean" ? String(n) : "";
|
|
1899
1900
|
}
|
|
1900
|
-
function
|
|
1901
|
+
function qt() {
|
|
1901
1902
|
const e = window.getSelection();
|
|
1902
1903
|
return !!e && !e.isCollapsed && e.toString().trim().length > 0;
|
|
1903
1904
|
}
|
|
1904
|
-
function
|
|
1905
|
+
function Qt({
|
|
1905
1906
|
columns: e,
|
|
1906
1907
|
data: o,
|
|
1907
1908
|
emptyState: t,
|
|
@@ -1927,26 +1928,26 @@ function Ut({
|
|
|
1927
1928
|
autoResetPageIndex: H,
|
|
1928
1929
|
className: V
|
|
1929
1930
|
}) {
|
|
1930
|
-
const
|
|
1931
|
+
const O = R && !!w, j = l !== void 0, B = a !== void 0, U = Le(
|
|
1931
1932
|
() => ({
|
|
1932
1933
|
sorting: n,
|
|
1933
1934
|
columnFilters: i,
|
|
1934
1935
|
...c && { pagination: c },
|
|
1935
1936
|
globalFilter: m,
|
|
1936
|
-
...
|
|
1937
|
-
...
|
|
1937
|
+
...j && { columnVisibility: r ?? {} },
|
|
1938
|
+
...B && { rowSelection: u ?? {} }
|
|
1938
1939
|
}),
|
|
1939
1940
|
[
|
|
1940
1941
|
n,
|
|
1941
1942
|
i,
|
|
1942
1943
|
c,
|
|
1943
1944
|
m,
|
|
1944
|
-
|
|
1945
|
+
j,
|
|
1945
1946
|
r,
|
|
1946
|
-
|
|
1947
|
+
B,
|
|
1947
1948
|
u
|
|
1948
1949
|
]
|
|
1949
|
-
),
|
|
1950
|
+
), W = me(
|
|
1950
1951
|
(_, M) => {
|
|
1951
1952
|
$?.((F) => ({
|
|
1952
1953
|
...F,
|
|
@@ -1954,59 +1955,59 @@ function Ut({
|
|
|
1954
1955
|
}));
|
|
1955
1956
|
},
|
|
1956
1957
|
[$]
|
|
1957
|
-
),
|
|
1958
|
+
), A = Bt({
|
|
1958
1959
|
data: o,
|
|
1959
1960
|
columns: e,
|
|
1960
|
-
state:
|
|
1961
|
+
state: U,
|
|
1961
1962
|
onSortingChange: s,
|
|
1962
1963
|
onColumnFiltersChange: f,
|
|
1963
1964
|
onPaginationChange: p,
|
|
1964
1965
|
onColumnVisibilityChange: l,
|
|
1965
1966
|
onRowSelectionChange: a,
|
|
1966
1967
|
getRowId: g,
|
|
1967
|
-
enableRowSelection:
|
|
1968
|
-
getCoreRowModel:
|
|
1969
|
-
getPaginationRowModel:
|
|
1970
|
-
getSortedRowModel:
|
|
1971
|
-
getFilteredRowModel:
|
|
1968
|
+
enableRowSelection: B,
|
|
1969
|
+
getCoreRowModel: Pt(),
|
|
1970
|
+
getPaginationRowModel: Gt(),
|
|
1971
|
+
getSortedRowModel: Lt(),
|
|
1972
|
+
getFilteredRowModel: Ht(),
|
|
1972
1973
|
onGlobalFilterChange: d,
|
|
1973
1974
|
globalFilterFn: "includesString",
|
|
1974
1975
|
autoResetPageIndex: H
|
|
1975
1976
|
});
|
|
1976
|
-
|
|
1977
|
-
v?.(
|
|
1978
|
-
}, [v,
|
|
1979
|
-
const
|
|
1977
|
+
Ae(() => {
|
|
1978
|
+
v?.(A);
|
|
1979
|
+
}, [v, A]);
|
|
1980
|
+
const ye = me(
|
|
1980
1981
|
(_, M, F) => _.editComponent === "textarea" ? /* @__PURE__ */ y(
|
|
1981
|
-
|
|
1982
|
+
qe,
|
|
1982
1983
|
{
|
|
1983
1984
|
value: F,
|
|
1984
1985
|
placeholder: _.editPlaceholder,
|
|
1985
1986
|
className: _.editClassName,
|
|
1986
|
-
onChange: (
|
|
1987
|
+
onChange: (N) => W(M, N.target.value)
|
|
1987
1988
|
}
|
|
1988
1989
|
) : /* @__PURE__ */ y(
|
|
1989
|
-
|
|
1990
|
+
Te,
|
|
1990
1991
|
{
|
|
1991
1992
|
value: F,
|
|
1992
1993
|
placeholder: _.editPlaceholder,
|
|
1993
1994
|
className: _.editClassName,
|
|
1994
|
-
onChange: (
|
|
1995
|
+
onChange: (N) => W(M, N.target.value)
|
|
1995
1996
|
}
|
|
1996
1997
|
),
|
|
1997
|
-
[
|
|
1998
|
+
[W]
|
|
1998
1999
|
);
|
|
1999
|
-
return /* @__PURE__ */ y("div", { className: V?.className, children: /* @__PURE__ */
|
|
2000
|
-
/* @__PURE__ */ y(
|
|
2001
|
-
|
|
2000
|
+
return /* @__PURE__ */ y("div", { className: V?.className, children: /* @__PURE__ */ Ge(ze, { className: V?.tableClassName, children: [
|
|
2001
|
+
/* @__PURE__ */ y(Oe, { className: V?.headerClassName, children: A.getHeaderGroups().map((_) => /* @__PURE__ */ y(
|
|
2002
|
+
Y,
|
|
2002
2003
|
{
|
|
2003
|
-
className:
|
|
2004
|
+
className: z(V?.rowClassName, V?.headRowClassName),
|
|
2004
2005
|
children: _.headers.map((M) => {
|
|
2005
|
-
const F =
|
|
2006
|
+
const F = he(M.column.columnDef);
|
|
2006
2007
|
return /* @__PURE__ */ y(
|
|
2007
|
-
|
|
2008
|
+
Be,
|
|
2008
2009
|
{
|
|
2009
|
-
className:
|
|
2010
|
+
className: z(
|
|
2010
2011
|
F?.className,
|
|
2011
2012
|
F?.headClassName,
|
|
2012
2013
|
V?.headCellClassName
|
|
@@ -2015,7 +2016,7 @@ function Ut({
|
|
|
2015
2016
|
...F?.style,
|
|
2016
2017
|
...F?.headStyle
|
|
2017
2018
|
},
|
|
2018
|
-
children: M.isPlaceholder ? null :
|
|
2019
|
+
children: M.isPlaceholder ? null : we(M.column.columnDef.header, M.getContext())
|
|
2019
2020
|
},
|
|
2020
2021
|
M.id
|
|
2021
2022
|
);
|
|
@@ -2023,28 +2024,28 @@ function Ut({
|
|
|
2023
2024
|
},
|
|
2024
2025
|
_.id
|
|
2025
2026
|
)) }),
|
|
2026
|
-
/* @__PURE__ */ y(
|
|
2027
|
-
|
|
2027
|
+
/* @__PURE__ */ y(Ne, { children: A.getRowModel().rows.length ? A.getRowModel().rows.map((_) => /* @__PURE__ */ y(
|
|
2028
|
+
Y,
|
|
2028
2029
|
{
|
|
2029
|
-
className:
|
|
2030
|
+
className: z(
|
|
2030
2031
|
V?.rowClassName,
|
|
2031
2032
|
V?.bodyRowClassName,
|
|
2032
2033
|
h === _.id && V?.editingRowClassName
|
|
2033
2034
|
),
|
|
2034
2035
|
"data-state": _.getIsSelected() && "selected",
|
|
2035
|
-
clickable:
|
|
2036
|
-
onClick:
|
|
2037
|
-
|
|
2036
|
+
clickable: O && h !== _.id,
|
|
2037
|
+
onClick: O && h !== _.id ? () => {
|
|
2038
|
+
qt() || w?.(_.original);
|
|
2038
2039
|
} : void 0,
|
|
2039
2040
|
children: _.getVisibleCells().map((M) => {
|
|
2040
|
-
const F =
|
|
2041
|
+
const F = he(M.column.columnDef), N = h === _.id, T = Nt(
|
|
2041
2042
|
M.column.columnDef,
|
|
2042
2043
|
F
|
|
2043
|
-
),
|
|
2044
|
+
), Ee = N && F?.editable === !0 && T !== void 0 && $ !== void 0, De = T !== void 0 ? I?.[T] ?? Tt(_.original, T, F) : "", He = Ee ? ye(F, T, De) : null;
|
|
2044
2045
|
return /* @__PURE__ */ y(
|
|
2045
|
-
|
|
2046
|
+
Se,
|
|
2046
2047
|
{
|
|
2047
|
-
className:
|
|
2048
|
+
className: z(
|
|
2048
2049
|
F?.className,
|
|
2049
2050
|
F?.cellClassName,
|
|
2050
2051
|
V?.cellClassName
|
|
@@ -2053,7 +2054,7 @@ function Ut({
|
|
|
2053
2054
|
...F?.style,
|
|
2054
2055
|
...F?.cellStyle
|
|
2055
2056
|
},
|
|
2056
|
-
children:
|
|
2057
|
+
children: He ?? we(M.column.columnDef.cell, M.getContext())
|
|
2057
2058
|
},
|
|
2058
2059
|
M.id
|
|
2059
2060
|
);
|
|
@@ -2061,14 +2062,14 @@ function Ut({
|
|
|
2061
2062
|
},
|
|
2062
2063
|
_.id
|
|
2063
2064
|
)) : /* @__PURE__ */ y(
|
|
2064
|
-
|
|
2065
|
+
Y,
|
|
2065
2066
|
{
|
|
2066
|
-
className:
|
|
2067
|
+
className: z(V?.rowClassName, V?.emptyRowClassName),
|
|
2067
2068
|
children: /* @__PURE__ */ y(
|
|
2068
|
-
|
|
2069
|
+
Se,
|
|
2069
2070
|
{
|
|
2070
|
-
colSpan: Math.max(1,
|
|
2071
|
-
className:
|
|
2071
|
+
colSpan: Math.max(1, A.getVisibleLeafColumns().length),
|
|
2072
|
+
className: z(V?.cellClassName, V?.emptyCellClassName),
|
|
2072
2073
|
children: t ?? "No results."
|
|
2073
2074
|
}
|
|
2074
2075
|
)
|
|
@@ -2077,6 +2078,6 @@ function Ut({
|
|
|
2077
2078
|
] }) });
|
|
2078
2079
|
}
|
|
2079
2080
|
export {
|
|
2080
|
-
|
|
2081
|
+
Qt as BasicTable
|
|
2081
2082
|
};
|
|
2082
2083
|
//# sourceMappingURL=components-basic-table-basic-table.js.map
|