@alfadocs/ui-kit-debug 1.48.0 → 1.49.0
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/_chunks/{agenda-card-C4h0xMGi.js → agenda-card-CjjxlA9K.js} +2 -2
- package/dist/_chunks/{agenda-card-C4h0xMGi.js.map → agenda-card-CjjxlA9K.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-DNZYW2xt.js → agenda-tray-BhZASyJm.js} +2 -2
- package/dist/_chunks/{agenda-tray-DNZYW2xt.js.map → agenda-tray-BhZASyJm.js.map} +1 -1
- package/dist/_chunks/{alia-sidebar-Crn8OGPF.js → alia-sidebar-Dx-oeOV2.js} +3 -3
- package/dist/_chunks/{alia-sidebar-Crn8OGPF.js.map → alia-sidebar-Dx-oeOV2.js.map} +1 -1
- package/dist/_chunks/{appointment-card-CvGU0QP6.js → appointment-card-BgLpE6T5.js} +2 -2
- package/dist/_chunks/{appointment-card-CvGU0QP6.js.map → appointment-card-BgLpE6T5.js.map} +1 -1
- package/dist/_chunks/{appointment-peek--dmWznLZ.js → appointment-peek-BDiCIBb-.js} +2 -2
- package/dist/_chunks/{appointment-peek--dmWznLZ.js.map → appointment-peek-BDiCIBb-.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-y9uYZMUd.js → appointment-timeline-wQ-PdkFV.js} +2 -2
- package/dist/_chunks/{appointment-timeline-y9uYZMUd.js.map → appointment-timeline-wQ-PdkFV.js.map} +1 -1
- package/dist/_chunks/{appointment-tray-BTecNeSb.js → appointment-tray-D7Gt6m8x.js} +2 -2
- package/dist/_chunks/{appointment-tray-BTecNeSb.js.map → appointment-tray-D7Gt6m8x.js.map} +1 -1
- package/dist/_chunks/{avatar-CkDeQOSI.js → avatar-BVvjKNTp.js} +2 -2
- package/dist/_chunks/avatar-BVvjKNTp.js.map +1 -0
- package/dist/_chunks/{balance-badge-cell-CA0YNJMR.js → balance-badge-cell-klaxFNL_.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-CA0YNJMR.js.map → balance-badge-cell-klaxFNL_.js.map} +1 -1
- package/dist/_chunks/{booking-BQYFDcrz.js → booking-BF9pVa2n.js} +377 -381
- package/dist/_chunks/booking-BF9pVa2n.js.map +1 -0
- package/dist/_chunks/{calendar-DjoJ9ovF.js → calendar-Bt44KMNO.js} +3 -2
- package/dist/_chunks/{calendar-DjoJ9ovF.js.map → calendar-Bt44KMNO.js.map} +1 -1
- package/dist/_chunks/calendar-workspace-C_eXL1by.js +10464 -0
- package/dist/_chunks/{calendar-workspace-D8zX9JWm.js.map → calendar-workspace-C_eXL1by.js.map} +1 -1
- package/dist/_chunks/{chat-message-Co_NRGM4.js → chat-message-B4ihjNy3.js} +2 -2
- package/dist/_chunks/{chat-message-Co_NRGM4.js.map → chat-message-B4ihjNy3.js.map} +1 -1
- package/dist/_chunks/{clinical-note-card-DYDQ3q2x.js → clinical-note-card-B7s5BtEl.js} +2 -2
- package/dist/_chunks/{clinical-note-card-DYDQ3q2x.js.map → clinical-note-card-B7s5BtEl.js.map} +1 -1
- package/dist/_chunks/{data-table-DWOSxlsy.js → data-table-CrI3_bjH.js} +411 -410
- package/dist/_chunks/data-table-CrI3_bjH.js.map +1 -0
- package/dist/_chunks/{dependent-selector-BR_8D2Qu.js → dependent-selector-58hTg5rB.js} +2 -2
- package/dist/_chunks/{dependent-selector-BR_8D2Qu.js.map → dependent-selector-58hTg5rB.js.map} +1 -1
- package/dist/_chunks/{entity-summary-Ckz_U00H.js → entity-summary-CFJfBdVP.js} +2 -2
- package/dist/_chunks/{entity-summary-Ckz_U00H.js.map → entity-summary-CFJfBdVP.js.map} +1 -1
- package/dist/_chunks/{file-manager-CqgxLqoA.js → file-manager-C6QQPQV5.js} +2 -2
- package/dist/_chunks/{file-manager-CqgxLqoA.js.map → file-manager-C6QQPQV5.js.map} +1 -1
- package/dist/_chunks/link-cell-renderer-CkNbUsBM.js +867 -0
- package/dist/_chunks/link-cell-renderer-CkNbUsBM.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-Dehuxbi-.js → marketplace-app-shell-1uKqs4gD.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Dehuxbi-.js.map → marketplace-app-shell-1uKqs4gD.js.map} +1 -1
- package/dist/_chunks/{message-card-DKOtnBHy.js → message-card-C2zsvyj0.js} +2 -2
- package/dist/_chunks/{message-card-DKOtnBHy.js.map → message-card-C2zsvyj0.js.map} +1 -1
- package/dist/_chunks/{message-tray-COMEtmyr.js → message-tray-CMlmxdH2.js} +2 -2
- package/dist/_chunks/{message-tray-COMEtmyr.js.map → message-tray-CMlmxdH2.js.map} +1 -1
- package/dist/_chunks/{notes-panel-BiOxZL_0.js → notes-panel-xxpFt-I1.js} +2 -2
- package/dist/_chunks/{notes-panel-BiOxZL_0.js.map → notes-panel-xxpFt-I1.js.map} +1 -1
- package/dist/_chunks/{operator-hero-5061fkY5.js → operator-hero-DyrNLoRO.js} +2 -2
- package/dist/_chunks/{operator-hero-5061fkY5.js.map → operator-hero-DyrNLoRO.js.map} +1 -1
- package/dist/_chunks/{patient-details-C23Hdm8v.js → patient-details-tTlvrJSU.js} +2 -2
- package/dist/_chunks/{patient-details-C23Hdm8v.js.map → patient-details-tTlvrJSU.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-C36L3h7h.js → patient-summary-card-DQ__6DR-.js} +2 -2
- package/dist/_chunks/{patient-summary-card-C36L3h7h.js.map → patient-summary-card-DQ__6DR-.js.map} +1 -1
- package/dist/_chunks/{practice-profile-hero-CPy5h2yI.js → practice-profile-hero-B-WcJYNH.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-CPy5h2yI.js.map → practice-profile-hero-B-WcJYNH.js.map} +1 -1
- package/dist/_chunks/{practice-results-t2BHht91.js → practice-results-EKRiqWtQ.js} +2 -2
- package/dist/_chunks/{practice-results-t2BHht91.js.map → practice-results-EKRiqWtQ.js.map} +1 -1
- package/dist/_chunks/{signature-request-15D363w5.js → signature-request-BUGeG8oD.js} +2 -2
- package/dist/_chunks/{signature-request-15D363w5.js.map → signature-request-BUGeG8oD.js.map} +1 -1
- package/dist/_chunks/{task-card-CTTQfPS6.js → task-card-jaOhnj_q.js} +31 -30
- package/dist/_chunks/task-card-jaOhnj_q.js.map +1 -0
- package/dist/_chunks/{task-tray-JA-qp_pB.js → task-tray-HHyxi9ga.js} +2 -2
- package/dist/_chunks/{task-tray-JA-qp_pB.js.map → task-tray-HHyxi9ga.js.map} +1 -1
- package/dist/_chunks/{tasks-panel-C_dVDQKJ.js → tasks-panel-DbSjq_mz.js} +2 -2
- package/dist/_chunks/{tasks-panel-C_dVDQKJ.js.map → tasks-panel-DbSjq_mz.js.map} +1 -1
- package/dist/_chunks/{timeline-61AihzYz.js → timeline-ChY7iZrs.js} +2 -2
- package/dist/_chunks/{timeline-61AihzYz.js.map → timeline-ChY7iZrs.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-D2FH-cHF.js → use-appointment-details-read-5-hV-2xA.js} +4 -4
- package/dist/_chunks/{use-appointment-details-read-D2FH-cHF.js.map → use-appointment-details-read-5-hV-2xA.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/cascade.d.ts +5 -0
- package/dist/components/booking/cascade.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/data-table/filters/number-filter.d.ts +26 -12
- package/dist/components/data-table/filters/number-filter.d.ts.map +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +3 -2
- package/dist/components/task-card/task-card.d.ts.map +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +19 -14
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +19 -14
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +19 -14
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +19 -14
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +19 -14
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +19 -14
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +5 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +6 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +19 -14
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +19 -14
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +19 -14
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +19 -14
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +19 -14
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +19 -14
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +5 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +6 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +19 -14
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +19 -14
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +19 -14
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +19 -14
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +19 -14
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +19 -14
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +19 -14
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +19 -14
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +19 -14
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +19 -14
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +19 -14
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +19 -14
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +19 -14
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +19 -14
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +19 -14
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +19 -14
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +19 -14
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +19 -14
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +19 -14
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +19 -14
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +34 -34
- package/dist/locales/ar.json +19 -14
- package/dist/locales/de.json +19 -14
- package/dist/locales/el.json +19 -14
- package/dist/locales/en.json +5 -0
- package/dist/locales/es.json +19 -14
- package/dist/locales/fr.json +19 -14
- package/dist/locales/hi.json +19 -14
- package/dist/locales/it.json +5 -0
- package/dist/locales/ja.json +19 -14
- package/dist/locales/nl.json +19 -14
- package/dist/locales/pl.json +19 -14
- package/dist/locales/pt.json +19 -14
- package/dist/locales/ro.json +19 -14
- package/dist/locales/ru.json +19 -14
- package/dist/locales/sq.json +19 -14
- package/dist/locales/sv.json +19 -14
- package/dist/locales/tr.json +19 -14
- package/dist/locales/zh.json +19 -14
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/calendar/calendar-workspace.d.ts +10 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.surface.d.ts +4 -1
- package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +12 -12
- package/dist/_chunks/avatar-CkDeQOSI.js.map +0 -1
- package/dist/_chunks/booking-BQYFDcrz.js.map +0 -1
- package/dist/_chunks/calendar-workspace-D8zX9JWm.js +0 -10423
- package/dist/_chunks/data-table-DWOSxlsy.js.map +0 -1
- package/dist/_chunks/link-cell-renderer-Tswqf6BT.js +0 -778
- package/dist/_chunks/link-cell-renderer-Tswqf6BT.js.map +0 -1
- package/dist/_chunks/task-card-CTTQfPS6.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as s, jsxs as L } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as j, forwardRef as
|
|
2
|
+
import { useMemo as j, forwardRef as B, useState as G, useCallback as D, useEffect as K, useRef as W, createContext as Ce, useContext as Re, isValidElement as At, cloneElement as Pt, useImperativeHandle as Ot } from "react";
|
|
3
3
|
import { S as Mt } from "./skeleton-B1KTdJ4N.js";
|
|
4
4
|
import { E as zt } from "./empty-state-DTBZ1ENT.js";
|
|
5
5
|
import { c as Gt } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as A } from "react-i18next";
|
|
7
7
|
import { useGridFilter as _t, AgGridReact as jt } from "ag-grid-react";
|
|
8
8
|
import { ModuleRegistry as Lt, AllCommunityModule as qt } from "ag-grid-community";
|
|
9
|
-
import { I as
|
|
9
|
+
import { I as $t } from "./icon-button-group-B_426QN_.js";
|
|
10
10
|
import { B as de } from "./button-18oBsI3n.js";
|
|
11
11
|
import { I as oe } from "./icon-button-CY7GU_Se.js";
|
|
12
12
|
import { P as me } from "./popover-Dvb40vPH.js";
|
|
13
|
-
import { C as
|
|
13
|
+
import { C as Wt } from "./checkbox-CZkipDn7.js";
|
|
14
14
|
import { T as Se } from "./text-input-CUvCb6ST.js";
|
|
15
|
-
import { T as
|
|
16
|
-
import { D as
|
|
17
|
-
import { X as
|
|
18
|
-
import { R as
|
|
15
|
+
import { T as $e } from "./tag-B65tLWvD.js";
|
|
16
|
+
import { D as be } from "./dropdown-menu-C8PaW3lR.js";
|
|
17
|
+
import { X as Be } from "./x-B5YnXwCz.js";
|
|
18
|
+
import { R as Bt } from "./refresh-cw-DnI0cLFC.js";
|
|
19
19
|
import { S as Ie } from "./search-QbWPlY5f.js";
|
|
20
20
|
import { c as Kt } from "./createLucideIcon-DhHxpK9K.js";
|
|
21
21
|
import { G as Ht } from "./grip-vertical-onSb1JXO.js";
|
|
@@ -69,11 +69,11 @@ function ar({
|
|
|
69
69
|
markColumnsUserTouched: a,
|
|
70
70
|
children: i
|
|
71
71
|
}) {
|
|
72
|
-
const
|
|
72
|
+
const l = j(
|
|
73
73
|
() => ({ getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: a }),
|
|
74
74
|
[e, t, n, a]
|
|
75
75
|
);
|
|
76
|
-
return /* @__PURE__ */ s(He.Provider, { value:
|
|
76
|
+
return /* @__PURE__ */ s(He.Provider, { value: l, children: i });
|
|
77
77
|
}
|
|
78
78
|
const nr = [
|
|
79
79
|
"data-table-toolbar",
|
|
@@ -87,7 +87,7 @@ const nr = [
|
|
|
87
87
|
// No card surface: the toolbar sits directly on the page background,
|
|
88
88
|
// matching the header-tools layout the Patients / Care Plan List
|
|
89
89
|
// patterns established (the old bg-card + border + shadow bar is gone).
|
|
90
|
-
].join(" "), Ve =
|
|
90
|
+
].join(" "), Ve = B(
|
|
91
91
|
({ className: e, children: t, ...n }, a) => /* @__PURE__ */ s(
|
|
92
92
|
"div",
|
|
93
93
|
{
|
|
@@ -100,7 +100,7 @@ const nr = [
|
|
|
100
100
|
)
|
|
101
101
|
);
|
|
102
102
|
Ve.displayName = "DataTable.Toolbar";
|
|
103
|
-
const Ue =
|
|
103
|
+
const Ue = B(
|
|
104
104
|
({ className: e, children: t, ...n }, a) => /* @__PURE__ */ s(
|
|
105
105
|
"div",
|
|
106
106
|
{
|
|
@@ -120,7 +120,7 @@ const Ue = $(
|
|
|
120
120
|
)
|
|
121
121
|
);
|
|
122
122
|
Ue.displayName = "DataTable.Toolbar.FilterBar";
|
|
123
|
-
const Xe =
|
|
123
|
+
const Xe = B(
|
|
124
124
|
({ className: e, children: t, ...n }, a) => /* @__PURE__ */ s(
|
|
125
125
|
"div",
|
|
126
126
|
{
|
|
@@ -136,12 +136,12 @@ const Xe = $(
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
Xe.displayName = "DataTable.Toolbar.Actions";
|
|
139
|
-
const Ee =
|
|
139
|
+
const Ee = B(
|
|
140
140
|
({ label: e, onExport: t, intent: n = "outline", ...a }, i) => {
|
|
141
|
-
const { t:
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
}, [
|
|
141
|
+
const { t: l } = A(), { getApi: m } = V("DataTable.Toolbar.ExportCsv"), u = D(() => {
|
|
142
|
+
const f = m();
|
|
143
|
+
f && (t ? t(f) : f.exportDataAsCsv());
|
|
144
|
+
}, [m, t]);
|
|
145
145
|
return /* @__PURE__ */ s(
|
|
146
146
|
oe,
|
|
147
147
|
{
|
|
@@ -149,8 +149,8 @@ const Ee = $(
|
|
|
149
149
|
type: "button",
|
|
150
150
|
intent: n,
|
|
151
151
|
icon: /* @__PURE__ */ s(ye, { "aria-hidden": !0 }),
|
|
152
|
-
tooltip: e ??
|
|
153
|
-
onClick:
|
|
152
|
+
tooltip: e ?? l("dataTable.exportCsv"),
|
|
153
|
+
onClick: u,
|
|
154
154
|
...a
|
|
155
155
|
}
|
|
156
156
|
);
|
|
@@ -171,28 +171,28 @@ async function Qe(e, t) {
|
|
|
171
171
|
const [{ jsPDF: n }, { default: a }] = await Promise.all([
|
|
172
172
|
import("./jspdf.es.min-DaapWjR1.js").then((C) => C.j),
|
|
173
173
|
import("./jspdf.plugin.autotable-CSiDNyPn.js")
|
|
174
|
-
]),
|
|
175
|
-
|
|
176
|
-
],
|
|
174
|
+
]), l = (e.getColumns() ?? []).filter((C) => C.isVisible()), m = [
|
|
175
|
+
l.map((C) => e.getDisplayNameForColumn(C, null) ?? "")
|
|
176
|
+
], u = [];
|
|
177
177
|
e.forEachNodeAfterFilterAndSort((C) => {
|
|
178
178
|
if (!C.data) return;
|
|
179
|
-
const c =
|
|
180
|
-
const
|
|
179
|
+
const c = l.map((g) => {
|
|
180
|
+
const T = e.getCellValue({
|
|
181
181
|
rowNode: C,
|
|
182
|
-
colKey:
|
|
182
|
+
colKey: g,
|
|
183
183
|
useFormatter: !0
|
|
184
184
|
});
|
|
185
|
-
return
|
|
185
|
+
return T == null ? "" : String(T);
|
|
186
186
|
});
|
|
187
|
-
|
|
187
|
+
u.push(c);
|
|
188
188
|
});
|
|
189
|
-
const
|
|
189
|
+
const f = ae("--muted", [240, 240, 240]), b = ae("--foreground", [30, 30, 30]), p = ae("--card-foreground", [30, 30, 30]), h = ae("--card", [250, 250, 250]), S = new n({ orientation: "landscape" });
|
|
190
190
|
a(S, {
|
|
191
|
-
head:
|
|
192
|
-
body:
|
|
193
|
-
headStyles: { fillColor:
|
|
194
|
-
bodyStyles: { textColor:
|
|
195
|
-
alternateRowStyles: { fillColor:
|
|
191
|
+
head: m,
|
|
192
|
+
body: u,
|
|
193
|
+
headStyles: { fillColor: f, textColor: b },
|
|
194
|
+
bodyStyles: { textColor: p },
|
|
195
|
+
alternateRowStyles: { fillColor: h },
|
|
196
196
|
styles: {
|
|
197
197
|
font: "helvetica",
|
|
198
198
|
fontSize: 10,
|
|
@@ -200,36 +200,36 @@ async function Qe(e, t) {
|
|
|
200
200
|
}
|
|
201
201
|
}), S.save(t.fileName);
|
|
202
202
|
}
|
|
203
|
-
const De =
|
|
204
|
-
({ label: e, onClick: t, fileName: n, intent: a = "outline", ...i },
|
|
205
|
-
const { t:
|
|
206
|
-
const
|
|
203
|
+
const De = B(
|
|
204
|
+
({ label: e, onClick: t, fileName: n, intent: a = "outline", ...i }, l) => {
|
|
205
|
+
const { t: m } = A(), { getApi: u } = V("DataTable.Toolbar.ExportPdf"), f = D(() => {
|
|
206
|
+
const b = u();
|
|
207
207
|
if (t) {
|
|
208
|
-
t(
|
|
208
|
+
t(b);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
|
-
Qe(
|
|
211
|
+
Qe(b, {
|
|
212
212
|
fileName: n ?? "data-table-export.pdf"
|
|
213
213
|
});
|
|
214
|
-
}, [
|
|
214
|
+
}, [u, t, n]);
|
|
215
215
|
return /* @__PURE__ */ s(
|
|
216
216
|
oe,
|
|
217
217
|
{
|
|
218
|
-
ref:
|
|
218
|
+
ref: l,
|
|
219
219
|
type: "button",
|
|
220
220
|
intent: a,
|
|
221
221
|
icon: /* @__PURE__ */ s(Ke, { "aria-hidden": !0 }),
|
|
222
|
-
tooltip: e ??
|
|
223
|
-
onClick:
|
|
222
|
+
tooltip: e ?? m("dataTable.exportPdf"),
|
|
223
|
+
onClick: f,
|
|
224
224
|
...i
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
227
|
}
|
|
228
228
|
);
|
|
229
229
|
De.displayName = "DataTable.Toolbar.ExportPdf";
|
|
230
|
-
const
|
|
230
|
+
const Fe = B(
|
|
231
231
|
({ label: e, intent: t = "outline", ...n }, a) => {
|
|
232
|
-
const { t: i } = A(), { onPrint:
|
|
232
|
+
const { t: i } = A(), { onPrint: l } = V("DataTable.Toolbar.Print");
|
|
233
233
|
return /* @__PURE__ */ s(
|
|
234
234
|
oe,
|
|
235
235
|
{
|
|
@@ -238,20 +238,20 @@ const Ne = $(
|
|
|
238
238
|
intent: t,
|
|
239
239
|
icon: /* @__PURE__ */ s(Vt, { "aria-hidden": !0 }),
|
|
240
240
|
tooltip: e ?? i("dataTable.print"),
|
|
241
|
-
onClick:
|
|
241
|
+
onClick: l,
|
|
242
242
|
...n
|
|
243
243
|
}
|
|
244
244
|
);
|
|
245
245
|
}
|
|
246
246
|
);
|
|
247
|
-
|
|
247
|
+
Fe.displayName = "DataTable.Toolbar.Print";
|
|
248
248
|
const Je = ({ placeholder: e, debounceMs: t = 150 }) => {
|
|
249
|
-
const { t: n } = A(), { getApi: a } = V("DataTable.Toolbar.QuickSearch"), [i,
|
|
250
|
-
return K(() => (
|
|
251
|
-
const
|
|
252
|
-
|
|
249
|
+
const { t: n } = A(), { getApi: a } = V("DataTable.Toolbar.QuickSearch"), [i, l] = G(""), m = W(void 0);
|
|
250
|
+
return K(() => (m.current && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
251
|
+
const u = a();
|
|
252
|
+
u && u.setGridOption("quickFilterText", i);
|
|
253
253
|
}, t), () => {
|
|
254
|
-
|
|
254
|
+
m.current && window.clearTimeout(m.current);
|
|
255
255
|
}), [i, t, a]), // Slot wrapper caps the search at a sensible legible width on desktop —
|
|
256
256
|
// without this, TextInput's `w-full` lets the QuickSearch absorb the
|
|
257
257
|
// entire FilterBar row and push trailing Actions onto a second line at
|
|
@@ -265,86 +265,87 @@ const Je = ({ placeholder: e, debounceMs: t = 150 }) => {
|
|
|
265
265
|
type: "search",
|
|
266
266
|
size: "sm",
|
|
267
267
|
value: i,
|
|
268
|
-
onChange: (
|
|
268
|
+
onChange: (u) => l(u.target.value),
|
|
269
269
|
placeholder: e ?? n("dataTable.quickSearch.placeholder", "Search…"),
|
|
270
270
|
startAdornment: /* @__PURE__ */ s(Ie, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
271
271
|
clearable: !0,
|
|
272
|
-
onClear: () =>
|
|
272
|
+
onClear: () => l(""),
|
|
273
273
|
"aria-label": n("dataTable.quickSearch.label", "Quick search")
|
|
274
274
|
}
|
|
275
275
|
) });
|
|
276
276
|
};
|
|
277
277
|
Je.displayName = "DataTable.Toolbar.QuickSearch";
|
|
278
|
-
const
|
|
278
|
+
const Ne = B(
|
|
279
279
|
({ onRefresh: e, label: t, intent: n = "outline", ...a }, i) => {
|
|
280
|
-
const { t:
|
|
280
|
+
const { t: l } = A();
|
|
281
281
|
return /* @__PURE__ */ s(
|
|
282
282
|
oe,
|
|
283
283
|
{
|
|
284
284
|
ref: i,
|
|
285
285
|
type: "button",
|
|
286
286
|
intent: n,
|
|
287
|
-
icon: /* @__PURE__ */ s(
|
|
288
|
-
tooltip: t ??
|
|
287
|
+
icon: /* @__PURE__ */ s(Bt, { "aria-hidden": !0 }),
|
|
288
|
+
tooltip: t ?? l("dataTable.refresh", "Refresh"),
|
|
289
289
|
onClick: e,
|
|
290
290
|
...a
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
294
|
);
|
|
295
|
-
|
|
295
|
+
Ne.displayName = "DataTable.Toolbar.Refresh";
|
|
296
296
|
function or(e, t) {
|
|
297
297
|
if (!e || typeof e != "object") return "";
|
|
298
|
-
const n = e
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
298
|
+
const n = e, a = typeof n.type == "string" ? n.type : "", i = (u) => t(
|
|
299
|
+
`dataTable.agGrid.${u}`,
|
|
300
|
+
t(`dataTable.numberFilter.operators.${u}`, u)
|
|
301
|
+
);
|
|
302
|
+
if (a === "blank" || a === "notBlank") return i(a);
|
|
303
|
+
const l = typeof n.filter == "string" || typeof n.filter == "number", m = typeof n.filterTo == "string" || typeof n.filterTo == "number";
|
|
304
|
+
return a === "inRange" && (l || m) ? l && m ? `${n.filter} – ${n.filterTo}` : l ? `${t("dataTable.numberFilter.from", "From")} ${n.filter}` : `${t("dataTable.numberFilter.to", "To")} ${n.filterTo}` : l ? a ? `${i(a)} ${n.filter}` : String(n.filter) : typeof n.dateFrom == "string" ? typeof n.dateTo == "string" && n.dateTo ? `${n.dateFrom} – ${n.dateTo}` : String(n.dateFrom) : Array.isArray(n.values) ? n.values.map(String).join(", ") : "";
|
|
304
305
|
}
|
|
305
306
|
const Ze = () => {
|
|
306
|
-
const { t: e } = A(), { getApi: t } = V("DataTable.Toolbar.FilterChips"), [n, a] = G([]), [i,
|
|
307
|
-
const
|
|
308
|
-
if (!
|
|
309
|
-
a([]),
|
|
307
|
+
const { t: e } = A("ui"), { getApi: t } = V("DataTable.Toolbar.FilterChips"), [n, a] = G([]), [i, l] = G(""), m = D(() => {
|
|
308
|
+
const p = t();
|
|
309
|
+
if (!p) {
|
|
310
|
+
a([]), l("");
|
|
310
311
|
return;
|
|
311
312
|
}
|
|
312
|
-
const
|
|
313
|
-
for (const
|
|
314
|
-
const
|
|
313
|
+
const h = p.getFilterModel() ?? {}, S = p.getColumns() ?? [], C = [];
|
|
314
|
+
for (const g of Object.keys(h)) {
|
|
315
|
+
const T = S.find((R) => R.getColId() === g), w = p.getDisplayNameForColumn(T, null) ?? g;
|
|
315
316
|
C.push({
|
|
316
|
-
colId:
|
|
317
|
-
headerName:
|
|
318
|
-
text: or(
|
|
317
|
+
colId: g,
|
|
318
|
+
headerName: w,
|
|
319
|
+
text: or(h[g], e)
|
|
319
320
|
});
|
|
320
321
|
}
|
|
321
322
|
a(C);
|
|
322
|
-
const c =
|
|
323
|
-
|
|
323
|
+
const c = p.getGridOption("quickFilterText");
|
|
324
|
+
l(typeof c == "string" ? c : "");
|
|
324
325
|
}, [t, e]);
|
|
325
326
|
if (K(() => {
|
|
326
|
-
let
|
|
327
|
-
const
|
|
328
|
-
c.addEventListener("filterChanged",
|
|
327
|
+
let p;
|
|
328
|
+
const h = (c) => m(), S = (c) => {
|
|
329
|
+
c.addEventListener("filterChanged", h), m(), p = () => c.removeEventListener("filterChanged", h);
|
|
329
330
|
}, C = t();
|
|
330
331
|
if (C)
|
|
331
332
|
S(C);
|
|
332
333
|
else {
|
|
333
334
|
const c = window.setInterval(() => {
|
|
334
|
-
const
|
|
335
|
-
|
|
335
|
+
const g = t();
|
|
336
|
+
g && (window.clearInterval(c), S(g));
|
|
336
337
|
}, 50);
|
|
337
|
-
|
|
338
|
+
p = () => window.clearInterval(c);
|
|
338
339
|
}
|
|
339
|
-
return () =>
|
|
340
|
-
}, [t,
|
|
341
|
-
function p
|
|
342
|
-
const
|
|
343
|
-
|
|
340
|
+
return () => p == null ? void 0 : p();
|
|
341
|
+
}, [t, m]), n.length + (i ? 1 : 0) === 0) return null;
|
|
342
|
+
function f(p) {
|
|
343
|
+
const h = t();
|
|
344
|
+
h && (h.setColumnFilterModel(p, null), h.onFilterChanged());
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
-
const
|
|
347
|
-
|
|
346
|
+
function b() {
|
|
347
|
+
const p = t();
|
|
348
|
+
p && (p.setFilterModel(null), p.setGridOption("quickFilterText", ""), l(""));
|
|
348
349
|
}
|
|
349
350
|
return /* @__PURE__ */ L(
|
|
350
351
|
"div",
|
|
@@ -354,28 +355,28 @@ const Ze = () => {
|
|
|
354
355
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
355
356
|
children: [
|
|
356
357
|
i && /* @__PURE__ */ s(
|
|
357
|
-
|
|
358
|
+
$e,
|
|
358
359
|
{
|
|
359
360
|
label: `${e("dataTable.quickSearch.label", "Quick search")}: ${i}`,
|
|
360
361
|
size: "sm",
|
|
361
362
|
variant: "brand",
|
|
362
363
|
fill: "solid",
|
|
363
364
|
onRemove: () => {
|
|
364
|
-
const
|
|
365
|
-
|
|
365
|
+
const p = t();
|
|
366
|
+
p == null || p.setGridOption("quickFilterText", ""), l("");
|
|
366
367
|
}
|
|
367
368
|
}
|
|
368
369
|
),
|
|
369
|
-
n.map((
|
|
370
|
-
|
|
370
|
+
n.map((p) => /* @__PURE__ */ s(
|
|
371
|
+
$e,
|
|
371
372
|
{
|
|
372
|
-
label:
|
|
373
|
+
label: p.text ? `${p.headerName}: ${p.text}` : p.headerName,
|
|
373
374
|
size: "sm",
|
|
374
375
|
variant: "brand",
|
|
375
376
|
fill: "solid",
|
|
376
|
-
onRemove: () => p
|
|
377
|
+
onRemove: () => f(p.colId)
|
|
377
378
|
},
|
|
378
|
-
|
|
379
|
+
p.colId
|
|
379
380
|
)),
|
|
380
381
|
/* @__PURE__ */ s(
|
|
381
382
|
de,
|
|
@@ -383,8 +384,8 @@ const Ze = () => {
|
|
|
383
384
|
type: "button",
|
|
384
385
|
intent: "ghost",
|
|
385
386
|
size: "sm",
|
|
386
|
-
onClick:
|
|
387
|
-
startIcon: /* @__PURE__ */ s(
|
|
387
|
+
onClick: b,
|
|
388
|
+
startIcon: /* @__PURE__ */ s(Be, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
388
389
|
children: e("dataTable.filterChips.clearAll", "Clear all")
|
|
389
390
|
}
|
|
390
391
|
)
|
|
@@ -398,19 +399,19 @@ const Ye = ({
|
|
|
398
399
|
options: t,
|
|
399
400
|
label: n
|
|
400
401
|
}) => {
|
|
401
|
-
const { t: a } = A(), { getApi: i } = V("DataTable.Toolbar.FacetFilter"), [
|
|
402
|
-
function
|
|
403
|
-
|
|
404
|
-
const
|
|
405
|
-
if (
|
|
406
|
-
if (
|
|
407
|
-
|
|
402
|
+
const { t: a } = A(), { getApi: i } = V("DataTable.Toolbar.FacetFilter"), [l, m] = G(null);
|
|
403
|
+
function u(f) {
|
|
404
|
+
m(f);
|
|
405
|
+
const b = i();
|
|
406
|
+
if (b) {
|
|
407
|
+
if (f === null) {
|
|
408
|
+
b.setColumnFilterModel(e, null), b.onFilterChanged();
|
|
408
409
|
return;
|
|
409
410
|
}
|
|
410
|
-
|
|
411
|
+
b.setColumnFilterModel(e, {
|
|
411
412
|
type: "equals",
|
|
412
|
-
filter:
|
|
413
|
-
}),
|
|
413
|
+
filter: f
|
|
414
|
+
}), b.onFilterChanged();
|
|
414
415
|
}
|
|
415
416
|
}
|
|
416
417
|
return /* @__PURE__ */ s(
|
|
@@ -419,19 +420,19 @@ const Ye = ({
|
|
|
419
420
|
role: "group",
|
|
420
421
|
"aria-label": n ?? a("dataTable.facetFilter.label", "Filter"),
|
|
421
422
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
422
|
-
children: t.map((
|
|
423
|
-
const
|
|
423
|
+
children: t.map((f) => {
|
|
424
|
+
const b = l === f.value;
|
|
424
425
|
return /* @__PURE__ */ s(
|
|
425
426
|
de,
|
|
426
427
|
{
|
|
427
428
|
type: "button",
|
|
428
429
|
size: "sm",
|
|
429
|
-
intent:
|
|
430
|
-
"aria-pressed":
|
|
431
|
-
onClick: () =>
|
|
432
|
-
children:
|
|
430
|
+
intent: b ? "primary" : "secondary",
|
|
431
|
+
"aria-pressed": b,
|
|
432
|
+
onClick: () => u(f.value),
|
|
433
|
+
children: f.label
|
|
433
434
|
},
|
|
434
|
-
String(
|
|
435
|
+
String(f.value)
|
|
435
436
|
);
|
|
436
437
|
})
|
|
437
438
|
}
|
|
@@ -441,32 +442,32 @@ Ye.displayName = "DataTable.Toolbar.FacetFilter";
|
|
|
441
442
|
const ir = ["csv", "xlsx", "pdf"];
|
|
442
443
|
async function sr(e, t) {
|
|
443
444
|
if (!e) return;
|
|
444
|
-
const n = await import("./exceljs.min-D2MHbJsF.js").then((
|
|
445
|
+
const n = await import("./exceljs.min-D2MHbJsF.js").then((g) => g.e), a = new n.Workbook(), i = a.addWorksheet("Sheet1"), m = (e.getColumns() ?? []).filter((g) => g.isVisible());
|
|
445
446
|
i.addRow(
|
|
446
|
-
|
|
447
|
-
(
|
|
447
|
+
m.map(
|
|
448
|
+
(g) => e.getDisplayNameForColumn(g, null) ?? g.getColId()
|
|
448
449
|
)
|
|
449
|
-
), e.forEachNodeAfterFilterAndSort((
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
const
|
|
453
|
-
rowNode:
|
|
454
|
-
colKey:
|
|
450
|
+
), e.forEachNodeAfterFilterAndSort((g) => {
|
|
451
|
+
g.data && i.addRow(
|
|
452
|
+
m.map((T) => {
|
|
453
|
+
const w = e.getCellValue({
|
|
454
|
+
rowNode: g,
|
|
455
|
+
colKey: T,
|
|
455
456
|
useFormatter: !0
|
|
456
457
|
});
|
|
457
|
-
return
|
|
458
|
+
return w ?? "";
|
|
458
459
|
})
|
|
459
460
|
);
|
|
460
461
|
});
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
const u = ae("--muted", [240, 240, 240]), f = ae("--foreground", [30, 30, 30]), b = i.getRow(1), p = ([g, T, w]) => `${g.toString(16).padStart(2, "0")}${T.toString(16).padStart(2, "0")}${w.toString(16).padStart(2, "0")}`.toUpperCase();
|
|
463
|
+
b.eachCell((g) => {
|
|
464
|
+
g.font = { bold: !0, color: { argb: `FF${p(f)}` } }, g.fill = {
|
|
464
465
|
type: "pattern",
|
|
465
466
|
pattern: "solid",
|
|
466
|
-
fgColor: { argb: `FF${u
|
|
467
|
+
fgColor: { argb: `FF${p(u)}` }
|
|
467
468
|
};
|
|
468
469
|
});
|
|
469
|
-
const
|
|
470
|
+
const h = await a.xlsx.writeBuffer(), S = new Blob([h], {
|
|
470
471
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
471
472
|
}), C = URL.createObjectURL(S), c = document.createElement("a");
|
|
472
473
|
c.href = C, c.download = t.fileName, document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(C);
|
|
@@ -480,24 +481,24 @@ function lr() {
|
|
|
480
481
|
);
|
|
481
482
|
return e;
|
|
482
483
|
}
|
|
483
|
-
const ke =
|
|
484
|
+
const ke = B(
|
|
484
485
|
({ children: e, label: t, intent: n = "outline", ...a }, i) => {
|
|
485
|
-
const { t:
|
|
486
|
-
return /* @__PURE__ */ s(et.Provider, { value:
|
|
487
|
-
/* @__PURE__ */ s(
|
|
486
|
+
const { t: l } = A(), { getApi: m } = V("DataTable.Toolbar.ExportMenu"), u = j(() => ({ getApi: m }), [m]), f = e ?? ir.map((b) => /* @__PURE__ */ s(Ae, { format: b }, b));
|
|
487
|
+
return /* @__PURE__ */ s(et.Provider, { value: u, children: /* @__PURE__ */ L(be.Root, { children: [
|
|
488
|
+
/* @__PURE__ */ s(be.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
488
489
|
oe,
|
|
489
490
|
{
|
|
490
491
|
ref: i,
|
|
491
492
|
type: "button",
|
|
492
493
|
intent: n,
|
|
493
494
|
icon: /* @__PURE__ */ s(ye, { "aria-hidden": !0 }),
|
|
494
|
-
tooltip: t ??
|
|
495
|
-
"aria-label": t ??
|
|
495
|
+
tooltip: t ?? l("dataTable.export.menu", "Export"),
|
|
496
|
+
"aria-label": t ?? l("dataTable.export.menu", "Export"),
|
|
496
497
|
"aria-haspopup": "menu",
|
|
497
498
|
...a
|
|
498
499
|
}
|
|
499
500
|
) }),
|
|
500
|
-
/* @__PURE__ */ s(
|
|
501
|
+
/* @__PURE__ */ s(be.Content, { align: "end", sideOffset: 4, children: f })
|
|
501
502
|
] }) });
|
|
502
503
|
}
|
|
503
504
|
);
|
|
@@ -514,27 +515,27 @@ const Ae = ({
|
|
|
514
515
|
onClick: n,
|
|
515
516
|
fileName: a
|
|
516
517
|
}) => {
|
|
517
|
-
const { t: i } = A(), { getApi:
|
|
518
|
-
const
|
|
518
|
+
const { t: i } = A(), { getApi: l } = lr(), m = D(() => {
|
|
519
|
+
const u = l();
|
|
519
520
|
if (e === "csv") {
|
|
520
|
-
|
|
521
|
+
u == null || u.exportDataAsCsv();
|
|
521
522
|
return;
|
|
522
523
|
}
|
|
523
524
|
if (e === "pdf") {
|
|
524
|
-
Qe(
|
|
525
|
+
Qe(u, {
|
|
525
526
|
fileName: a ?? "data-table-export.pdf"
|
|
526
527
|
});
|
|
527
528
|
return;
|
|
528
529
|
}
|
|
529
530
|
if (e === "xlsx") {
|
|
530
|
-
sr(
|
|
531
|
+
sr(u, {
|
|
531
532
|
fileName: a ?? "data-table-export.xlsx"
|
|
532
533
|
});
|
|
533
534
|
return;
|
|
534
535
|
}
|
|
535
|
-
n == null || n(
|
|
536
|
-
}, [e, a, n,
|
|
537
|
-
return /* @__PURE__ */ s(
|
|
536
|
+
n == null || n(u);
|
|
537
|
+
}, [e, a, n, l]);
|
|
538
|
+
return /* @__PURE__ */ s(be.Item, { onSelect: m, children: /* @__PURE__ */ L("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
538
539
|
cr(e),
|
|
539
540
|
/* @__PURE__ */ s("span", { children: t ?? dr(i, e) })
|
|
540
541
|
] }) });
|
|
@@ -551,28 +552,28 @@ function ur(e) {
|
|
|
551
552
|
visible: a.isVisible()
|
|
552
553
|
}).filter((a) => a !== null);
|
|
553
554
|
}
|
|
554
|
-
const Pe =
|
|
555
|
-
function({ label: t, icon: n, footer: a, header: i, intent:
|
|
556
|
-
const { t:
|
|
555
|
+
const Pe = B(
|
|
556
|
+
function({ label: t, icon: n, footer: a, header: i, intent: l = "outline", ...m }, u) {
|
|
557
|
+
const { t: f } = A(), { getApi: b, markColumnsUserTouched: p } = V(
|
|
557
558
|
"DataTable.Toolbar.ColumnToggle"
|
|
558
|
-
), [
|
|
559
|
+
), [h, S] = G(!1), [C, c] = G([]), [g, T] = G(null), [w, R] = G(null);
|
|
559
560
|
K(() => {
|
|
560
|
-
|
|
561
|
-
}, [
|
|
561
|
+
h && c(ur(b()));
|
|
562
|
+
}, [h, b]);
|
|
562
563
|
const I = D(
|
|
563
564
|
(v, O) => {
|
|
564
|
-
const M =
|
|
565
|
-
M && (M.setColumnsVisible([v], O),
|
|
566
|
-
(
|
|
567
|
-
(
|
|
565
|
+
const M = b();
|
|
566
|
+
M && (M.setColumnsVisible([v], O), p == null || p([v]), c(
|
|
567
|
+
(N) => N.map(
|
|
568
|
+
(F) => F.colId === v ? { ...F, visible: O } : F
|
|
568
569
|
)
|
|
569
570
|
));
|
|
570
571
|
},
|
|
571
|
-
[
|
|
572
|
+
[b, p]
|
|
572
573
|
), ee = D(
|
|
573
574
|
(v, O) => {
|
|
574
575
|
if (v === O) return;
|
|
575
|
-
const M =
|
|
576
|
+
const M = b();
|
|
576
577
|
if (!M) return;
|
|
577
578
|
c((z) => {
|
|
578
579
|
const E = z.findIndex((Q) => Q.colId === v), ie = z.findIndex((Q) => Q.colId === O);
|
|
@@ -580,26 +581,26 @@ const Pe = $(
|
|
|
580
581
|
const X = [...z], [xe] = X.splice(E, 1);
|
|
581
582
|
return X.splice(ie, 0, xe), X;
|
|
582
583
|
});
|
|
583
|
-
const
|
|
584
|
-
if (!
|
|
585
|
-
|
|
584
|
+
const N = M.getAllGridColumns(), F = N.find((z) => z.getColId() === v), q = N.find((z) => z.getColId() === O);
|
|
585
|
+
if (!F || !q) return;
|
|
586
|
+
F.getPinned() !== q.getPinned() && M.setColumnsPinned([v], q.getPinned() ?? null);
|
|
586
587
|
const U = M.getAllGridColumns().findIndex((z) => z.getColId() === O);
|
|
587
588
|
U >= 0 && M.moveColumns([v], U);
|
|
588
589
|
},
|
|
589
|
-
[
|
|
590
|
-
), _ = t ??
|
|
591
|
-
return /* @__PURE__ */ L(me.Root, { open:
|
|
590
|
+
[b]
|
|
591
|
+
), _ = t ?? f("dataTable.columnToggle");
|
|
592
|
+
return /* @__PURE__ */ L(me.Root, { open: h, onOpenChange: S, children: [
|
|
592
593
|
/* @__PURE__ */ s(me.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
593
594
|
oe,
|
|
594
595
|
{
|
|
595
|
-
ref:
|
|
596
|
+
ref: u,
|
|
596
597
|
type: "button",
|
|
597
|
-
intent:
|
|
598
|
+
intent: l,
|
|
598
599
|
icon: n ?? /* @__PURE__ */ s(tr, { "aria-hidden": !0 }),
|
|
599
600
|
tooltip: _,
|
|
600
601
|
"aria-label": _,
|
|
601
602
|
"aria-haspopup": "dialog",
|
|
602
|
-
...
|
|
603
|
+
...m
|
|
603
604
|
}
|
|
604
605
|
) }),
|
|
605
606
|
/* @__PURE__ */ L(
|
|
@@ -617,29 +618,29 @@ const Pe = $(
|
|
|
617
618
|
className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
|
|
618
619
|
"aria-label": _,
|
|
619
620
|
children: C.map((v) => {
|
|
620
|
-
const O =
|
|
621
|
+
const O = g === v.colId, M = w === v.colId && g !== v.colId;
|
|
621
622
|
return /* @__PURE__ */ L(
|
|
622
623
|
"li",
|
|
623
624
|
{
|
|
624
625
|
draggable: !0,
|
|
625
|
-
onDragStart: (
|
|
626
|
-
|
|
626
|
+
onDragStart: (N) => {
|
|
627
|
+
T(v.colId), N.dataTransfer.effectAllowed = "move", N.dataTransfer.setData("text/plain", v.colId);
|
|
627
628
|
},
|
|
628
|
-
onDragOver: (
|
|
629
|
-
|
|
629
|
+
onDragOver: (N) => {
|
|
630
|
+
N.preventDefault(), N.dataTransfer.dropEffect = "move", R(v.colId);
|
|
630
631
|
},
|
|
631
632
|
onDragLeave: () => {
|
|
632
633
|
R(
|
|
633
|
-
(
|
|
634
|
+
(N) => N === v.colId ? null : N
|
|
634
635
|
);
|
|
635
636
|
},
|
|
636
|
-
onDrop: (
|
|
637
|
-
|
|
638
|
-
const
|
|
639
|
-
|
|
637
|
+
onDrop: (N) => {
|
|
638
|
+
N.preventDefault();
|
|
639
|
+
const F = N.dataTransfer.getData("text/plain");
|
|
640
|
+
F && ee(F, v.colId), T(null), R(null);
|
|
640
641
|
},
|
|
641
642
|
onDragEnd: () => {
|
|
642
|
-
|
|
643
|
+
T(null), R(null);
|
|
643
644
|
},
|
|
644
645
|
className: [
|
|
645
646
|
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs,var(--spacing-xs))] ds:transition-colors",
|
|
@@ -656,11 +657,11 @@ const Pe = $(
|
|
|
656
657
|
}
|
|
657
658
|
),
|
|
658
659
|
/* @__PURE__ */ s(
|
|
659
|
-
|
|
660
|
+
Wt,
|
|
660
661
|
{
|
|
661
662
|
label: v.displayName,
|
|
662
663
|
checked: v.visible,
|
|
663
|
-
onCheckedChange: (
|
|
664
|
+
onCheckedChange: (N) => I(v.colId, N === !0)
|
|
664
665
|
}
|
|
665
666
|
)
|
|
666
667
|
]
|
|
@@ -678,22 +679,22 @@ const Pe = $(
|
|
|
678
679
|
}
|
|
679
680
|
);
|
|
680
681
|
Pe.displayName = "DataTable.Toolbar.ColumnToggle";
|
|
681
|
-
const tt =
|
|
682
|
-
({ label: e, icon: t, onClick: n, variant: a = "default", size: i = "sm", ...
|
|
683
|
-
const { t:
|
|
682
|
+
const tt = B(
|
|
683
|
+
({ label: e, icon: t, onClick: n, variant: a = "default", size: i = "sm", ...l }, m) => {
|
|
684
|
+
const { t: u } = A(), { getApi: f, selectionCount: b } = V(
|
|
684
685
|
"DataTable.Toolbar.BulkAction"
|
|
685
686
|
);
|
|
686
|
-
return
|
|
687
|
+
return b === 0 ? null : /* @__PURE__ */ L(
|
|
687
688
|
de,
|
|
688
689
|
{
|
|
689
|
-
ref:
|
|
690
|
+
ref: m,
|
|
690
691
|
type: "button",
|
|
691
692
|
intent: a === "destructive" ? "destructive" : "secondary",
|
|
692
693
|
size: i,
|
|
693
694
|
startIcon: rr(t),
|
|
694
|
-
onClick: () => n(
|
|
695
|
-
"aria-label": `${e} (${
|
|
696
|
-
...
|
|
695
|
+
onClick: () => n(f()),
|
|
696
|
+
"aria-label": `${e} (${u("dataTable.bulkAction", { count: b })})`,
|
|
697
|
+
...l,
|
|
697
698
|
children: [
|
|
698
699
|
/* @__PURE__ */ s("span", { children: e }),
|
|
699
700
|
/* @__PURE__ */ s(
|
|
@@ -701,7 +702,7 @@ const tt = $(
|
|
|
701
702
|
{
|
|
702
703
|
"aria-hidden": "true",
|
|
703
704
|
className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
|
|
704
|
-
children:
|
|
705
|
+
children: u("dataTable.bulkAction", { count: b })
|
|
705
706
|
}
|
|
706
707
|
)
|
|
707
708
|
]
|
|
@@ -713,26 +714,26 @@ tt.displayName = "DataTable.Toolbar.BulkAction";
|
|
|
713
714
|
for (const e of [
|
|
714
715
|
Ee,
|
|
715
716
|
De,
|
|
716
|
-
Ne,
|
|
717
717
|
Fe,
|
|
718
|
+
Ne,
|
|
718
719
|
ke,
|
|
719
720
|
Pe
|
|
720
721
|
])
|
|
721
722
|
e.rendersIconButton = !0;
|
|
722
723
|
const pr = Object.assign(ke, {
|
|
723
724
|
Item: Ae
|
|
724
|
-
}),
|
|
725
|
+
}), he = Object.assign(Ve, {
|
|
725
726
|
FilterBar: Ue,
|
|
726
727
|
Actions: Xe,
|
|
727
728
|
/** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
|
|
728
729
|
ExportCsv: Ee,
|
|
729
730
|
/** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
|
|
730
731
|
ExportPdf: De,
|
|
731
|
-
Print:
|
|
732
|
+
Print: Fe,
|
|
732
733
|
ColumnToggle: Pe,
|
|
733
734
|
BulkAction: tt,
|
|
734
735
|
QuickSearch: Je,
|
|
735
|
-
Refresh:
|
|
736
|
+
Refresh: Ne,
|
|
736
737
|
FilterChips: Ze,
|
|
737
738
|
FacetFilter: Ye,
|
|
738
739
|
ExportMenu: pr
|
|
@@ -751,9 +752,9 @@ function mr(e) {
|
|
|
751
752
|
function n(a, i) {
|
|
752
753
|
if (i.length === 0) return 0;
|
|
753
754
|
if (i.length > a.length) return -1;
|
|
754
|
-
for (let
|
|
755
|
-
if (t.compare(a.slice(
|
|
756
|
-
return
|
|
755
|
+
for (let l = 0; l <= a.length - i.length; l += 1)
|
|
756
|
+
if (t.compare(a.slice(l, l + i.length), i) === 0)
|
|
757
|
+
return l;
|
|
757
758
|
return -1;
|
|
758
759
|
}
|
|
759
760
|
return {
|
|
@@ -769,17 +770,17 @@ function mr(e) {
|
|
|
769
770
|
function gr(e) {
|
|
770
771
|
return e == null ? null : typeof e == "string" ? e : String(e);
|
|
771
772
|
}
|
|
772
|
-
function
|
|
773
|
-
const { model: t, onModelChange: n, getValue: a, placeholder: i, defaultOperator:
|
|
773
|
+
function br(e) {
|
|
774
|
+
const { model: t, onModelChange: n, getValue: a, placeholder: i, defaultOperator: l } = e, { t: m } = A("ui"), u = (t == null ? void 0 : t.type) ?? l ?? "contains", [f, b] = G(u), [p, h] = G((t == null ? void 0 : t.filter) ?? "");
|
|
774
775
|
K(() => {
|
|
775
|
-
|
|
776
|
-
}, [t,
|
|
776
|
+
b((t == null ? void 0 : t.type) ?? l ?? "contains"), h((t == null ? void 0 : t.filter) ?? "");
|
|
777
|
+
}, [t, l]);
|
|
777
778
|
const S = j(() => mr(Xt.language), []);
|
|
778
779
|
_t({
|
|
779
|
-
doesFilterPass: (
|
|
780
|
+
doesFilterPass: (w) => {
|
|
780
781
|
const R = t;
|
|
781
782
|
if (!R || R.filter === "") return !0;
|
|
782
|
-
const I = gr(a(
|
|
783
|
+
const I = gr(a(w.node));
|
|
783
784
|
if (I === null) return !1;
|
|
784
785
|
switch (R.type) {
|
|
785
786
|
case "equals":
|
|
@@ -798,21 +799,21 @@ function hr(e) {
|
|
|
798
799
|
}
|
|
799
800
|
});
|
|
800
801
|
function C() {
|
|
801
|
-
if (
|
|
802
|
+
if (p.trim() === "") {
|
|
802
803
|
n(null);
|
|
803
804
|
return;
|
|
804
805
|
}
|
|
805
|
-
n({ type:
|
|
806
|
+
n({ type: f, filter: p });
|
|
806
807
|
}
|
|
807
808
|
function c() {
|
|
808
|
-
|
|
809
|
+
h(""), b(l ?? "contains"), n(null);
|
|
809
810
|
}
|
|
810
|
-
const
|
|
811
|
-
(
|
|
812
|
-
value:
|
|
813
|
-
label:
|
|
811
|
+
const g = fr.map(
|
|
812
|
+
(w) => ({
|
|
813
|
+
value: w,
|
|
814
|
+
label: m(`dataTable.textFilter.operators.${w}`)
|
|
814
815
|
})
|
|
815
|
-
),
|
|
816
|
+
), T = i ?? m("dataTable.textFilter.placeholder");
|
|
816
817
|
return /* @__PURE__ */ L(
|
|
817
818
|
"div",
|
|
818
819
|
{
|
|
@@ -823,78 +824,78 @@ function hr(e) {
|
|
|
823
824
|
Qt,
|
|
824
825
|
{
|
|
825
826
|
size: "sm",
|
|
826
|
-
options:
|
|
827
|
-
value:
|
|
828
|
-
onValueChange: (
|
|
829
|
-
|
|
827
|
+
options: g,
|
|
828
|
+
value: f,
|
|
829
|
+
onValueChange: (w) => {
|
|
830
|
+
w !== "" && b(w);
|
|
830
831
|
},
|
|
831
|
-
"aria-label":
|
|
832
|
+
"aria-label": m("dataTable.textFilter.operators.contains")
|
|
832
833
|
}
|
|
833
834
|
),
|
|
834
835
|
/* @__PURE__ */ s(
|
|
835
836
|
Se,
|
|
836
837
|
{
|
|
837
838
|
size: "sm",
|
|
838
|
-
value:
|
|
839
|
-
onChange: (
|
|
840
|
-
onKeyDown: (
|
|
841
|
-
|
|
839
|
+
value: p,
|
|
840
|
+
onChange: (w) => h(w.target.value),
|
|
841
|
+
onKeyDown: (w) => {
|
|
842
|
+
w.key === "Enter" && (w.preventDefault(), C());
|
|
842
843
|
},
|
|
843
|
-
placeholder:
|
|
844
|
-
"aria-label":
|
|
844
|
+
placeholder: T,
|
|
845
|
+
"aria-label": T,
|
|
845
846
|
startAdornment: /* @__PURE__ */ s(Ie, { "aria-hidden": "true", className: "ds:size-4" })
|
|
846
847
|
}
|
|
847
848
|
),
|
|
848
849
|
/* @__PURE__ */ L("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
|
|
849
|
-
/* @__PURE__ */ s(de, { intent: "ghost", size: "sm", onClick: c, type: "button", children:
|
|
850
|
-
/* @__PURE__ */ s(de, { intent: "primary", size: "sm", onClick: C, type: "button", children:
|
|
850
|
+
/* @__PURE__ */ s(de, { intent: "ghost", size: "sm", onClick: c, type: "button", children: m("dataTable.textFilter.clear") }),
|
|
851
|
+
/* @__PURE__ */ s(de, { intent: "primary", size: "sm", onClick: C, type: "button", children: m("dataTable.textFilter.apply") })
|
|
851
852
|
] })
|
|
852
853
|
]
|
|
853
854
|
}
|
|
854
855
|
);
|
|
855
856
|
}
|
|
856
|
-
function
|
|
857
|
-
var
|
|
858
|
-
const { model: t, onModelChange: n, column: a } = e, { t: i } = A("ui"),
|
|
857
|
+
function hr(e) {
|
|
858
|
+
var h, S;
|
|
859
|
+
const { model: t, onModelChange: n, column: a } = e, { t: i } = A("ui"), l = ((S = (h = a == null ? void 0 : a.getColDef) == null ? void 0 : h.call(a)) == null ? void 0 : S.filterParams) ?? {}, m = l.defaultOperator ?? "contains", u = l.placeholder ?? i("dataTable.textFilter.placeholder"), [f, b] = G((t == null ? void 0 : t.filter) ?? "");
|
|
859
860
|
K(() => {
|
|
860
|
-
|
|
861
|
+
b((t == null ? void 0 : t.filter) ?? "");
|
|
861
862
|
}, [t == null ? void 0 : t.filter]), K(() => {
|
|
862
|
-
if (
|
|
863
|
+
if (f === ((t == null ? void 0 : t.filter) ?? "")) return;
|
|
863
864
|
const C = setTimeout(() => {
|
|
864
|
-
if (
|
|
865
|
+
if (f === "") {
|
|
865
866
|
t && n(null);
|
|
866
867
|
return;
|
|
867
868
|
}
|
|
868
|
-
n({ type:
|
|
869
|
+
n({ type: m, filter: f });
|
|
869
870
|
}, 200);
|
|
870
871
|
return () => clearTimeout(C);
|
|
871
|
-
}, [
|
|
872
|
-
function
|
|
873
|
-
|
|
872
|
+
}, [f, m, t, n]);
|
|
873
|
+
function p() {
|
|
874
|
+
b(""), t && n(null);
|
|
874
875
|
}
|
|
875
876
|
return /* @__PURE__ */ s("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
|
|
876
877
|
Se,
|
|
877
878
|
{
|
|
878
879
|
size: "sm",
|
|
879
|
-
value:
|
|
880
|
-
onChange: (C) =>
|
|
881
|
-
placeholder:
|
|
882
|
-
"aria-label":
|
|
880
|
+
value: f,
|
|
881
|
+
onChange: (C) => b(C.target.value),
|
|
882
|
+
placeholder: u,
|
|
883
|
+
"aria-label": u,
|
|
883
884
|
startAdornment: /* @__PURE__ */ s(Ie, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
884
|
-
endAdornment:
|
|
885
|
+
endAdornment: f.length > 0 ? /* @__PURE__ */ s(
|
|
885
886
|
"button",
|
|
886
887
|
{
|
|
887
888
|
type: "button",
|
|
888
889
|
"aria-label": i("dataTable.textFilter.clear"),
|
|
889
|
-
onClick:
|
|
890
|
+
onClick: p,
|
|
890
891
|
className: "ds:pointer-events-auto ds:flex ds:items-center ds:text-[var(--muted-foreground)] ds:hover:text-[var(--foreground)] ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
891
|
-
children: /* @__PURE__ */ s(
|
|
892
|
+
children: /* @__PURE__ */ s(Be, { "aria-hidden": "true", className: "ds:size-4" })
|
|
892
893
|
}
|
|
893
894
|
) : void 0
|
|
894
895
|
}
|
|
895
896
|
) });
|
|
896
897
|
}
|
|
897
|
-
const yr = /* @__PURE__ */ new Set(["presentation", "none"]),
|
|
898
|
+
const yr = /* @__PURE__ */ new Set(["presentation", "none"]), We = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
|
|
898
899
|
function ge(e) {
|
|
899
900
|
const t = e.getAttribute("role");
|
|
900
901
|
t === null || !yr.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
|
|
@@ -904,18 +905,18 @@ function xr(e, t = !0) {
|
|
|
904
905
|
const n = e.current;
|
|
905
906
|
if (!t || !n || typeof MutationObserver > "u") return;
|
|
906
907
|
(() => {
|
|
907
|
-
for (const
|
|
908
|
+
for (const l of n.querySelectorAll(We)) ge(l);
|
|
908
909
|
})();
|
|
909
|
-
const i = new MutationObserver((
|
|
910
|
-
for (const
|
|
911
|
-
if (
|
|
912
|
-
ge(
|
|
910
|
+
const i = new MutationObserver((l) => {
|
|
911
|
+
for (const m of l)
|
|
912
|
+
if (m.type === "attributes")
|
|
913
|
+
ge(m.target);
|
|
913
914
|
else
|
|
914
|
-
for (const
|
|
915
|
-
if (
|
|
916
|
-
ge(
|
|
917
|
-
for (const
|
|
918
|
-
ge(
|
|
915
|
+
for (const u of m.addedNodes)
|
|
916
|
+
if (u instanceof Element) {
|
|
917
|
+
ge(u);
|
|
918
|
+
for (const f of u.querySelectorAll(We))
|
|
919
|
+
ge(f);
|
|
919
920
|
}
|
|
920
921
|
});
|
|
921
922
|
return i.observe(n, {
|
|
@@ -926,8 +927,8 @@ function xr(e, t = !0) {
|
|
|
926
927
|
}), () => i.disconnect();
|
|
927
928
|
}, [e, t]);
|
|
928
929
|
}
|
|
929
|
-
const ne = "__dsDetailOf",
|
|
930
|
-
function
|
|
930
|
+
const ne = "__dsDetailOf", Tr = "ds-data-table-expanded-row", rt = "::detail", wr = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
931
|
+
function $(e) {
|
|
931
932
|
return typeof e == "object" && e !== null && typeof e[ne] == "string";
|
|
932
933
|
}
|
|
933
934
|
function vr(e) {
|
|
@@ -946,37 +947,37 @@ function Rr(e) {
|
|
|
946
947
|
var c;
|
|
947
948
|
const t = Re(
|
|
948
949
|
at
|
|
949
|
-
), { t: n } = A(), a =
|
|
950
|
-
if (
|
|
951
|
-
const
|
|
952
|
-
if (!
|
|
953
|
-
let
|
|
954
|
-
const
|
|
955
|
-
const I = Math.ceil(
|
|
956
|
-
I <= 0 || I ===
|
|
950
|
+
), { t: n } = A(), a = W(null), { data: i, node: l, api: m } = e, u = $(i), f = t == null ? void 0 : t.heights, b = l.id, p = W(t);
|
|
951
|
+
if (p.current = t, K(() => {
|
|
952
|
+
const g = a.current;
|
|
953
|
+
if (!g || !u || !f || b == null) return;
|
|
954
|
+
let T = f.get(b) ?? 0;
|
|
955
|
+
const w = () => {
|
|
956
|
+
const I = Math.ceil(g.getBoundingClientRect().height);
|
|
957
|
+
I <= 0 || I === T || (T = I, f.set(b, I), l.setRowHeight(I), m.onRowHeightChanged());
|
|
957
958
|
};
|
|
958
|
-
|
|
959
|
-
const R = new ResizeObserver(
|
|
960
|
-
return R.observe(
|
|
961
|
-
}, [
|
|
962
|
-
const
|
|
963
|
-
if (!
|
|
964
|
-
const
|
|
959
|
+
w();
|
|
960
|
+
const R = new ResizeObserver(w);
|
|
961
|
+
return R.observe(g), () => R.disconnect();
|
|
962
|
+
}, [m, b, f, u, l]), K(() => {
|
|
963
|
+
const g = a.current, T = g == null ? void 0 : g.parentElement;
|
|
964
|
+
if (!g || !T || !u) return;
|
|
965
|
+
const w = (R) => {
|
|
965
966
|
var I, ee;
|
|
966
|
-
R.target !==
|
|
967
|
+
R.target !== T || R.defaultPrevented || (R.key === "Escape" ? (R.stopPropagation(), (ee = (I = p.current) == null ? void 0 : I.onExpandedRowChange) == null || ee.call(I, null)) : R.key === "Enter" && (R.preventDefault(), (g.querySelector(wr) ?? g).focus()));
|
|
967
968
|
};
|
|
968
|
-
return
|
|
969
|
-
}, [
|
|
970
|
-
const
|
|
971
|
-
return
|
|
969
|
+
return T.addEventListener("keydown", w), () => T.removeEventListener("keydown", w);
|
|
970
|
+
}, [u]), !u) {
|
|
971
|
+
const g = t == null ? void 0 : t.fallbackRenderer;
|
|
972
|
+
return g ? /* @__PURE__ */ s(g, { ...e }) : null;
|
|
972
973
|
}
|
|
973
|
-
const
|
|
974
|
+
const h = i[ne];
|
|
974
975
|
let S;
|
|
975
|
-
if (t != null && t.expanded && t.expanded.id ===
|
|
976
|
+
if (t != null && t.expanded && t.expanded.id === h)
|
|
976
977
|
S = t.expanded.row;
|
|
977
978
|
else {
|
|
978
|
-
const { [ne]:
|
|
979
|
-
S =
|
|
979
|
+
const { [ne]: g, ...T } = i;
|
|
980
|
+
S = T;
|
|
980
981
|
}
|
|
981
982
|
return /* @__PURE__ */ L(
|
|
982
983
|
"div",
|
|
@@ -985,11 +986,11 @@ function Rr(e) {
|
|
|
985
986
|
role: "gridcell",
|
|
986
987
|
tabIndex: -1,
|
|
987
988
|
"data-component": "data-table-expanded-row",
|
|
988
|
-
"data-expanded-row-of":
|
|
989
|
+
"data-expanded-row-of": h,
|
|
989
990
|
className: "ds-data-table-expanded-row-surface",
|
|
990
|
-
onKeyDown: (
|
|
991
|
-
var
|
|
992
|
-
|
|
991
|
+
onKeyDown: (g) => {
|
|
992
|
+
var T;
|
|
993
|
+
g.key !== "Escape" || g.defaultPrevented || (g.stopPropagation(), (T = t == null ? void 0 : t.onExpandedRowChange) == null || T.call(t, null));
|
|
993
994
|
},
|
|
994
995
|
children: [
|
|
995
996
|
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: n("dataTable.expandedRow") }),
|
|
@@ -1266,7 +1267,7 @@ function Dr() {
|
|
|
1266
1267
|
}
|
|
1267
1268
|
);
|
|
1268
1269
|
}
|
|
1269
|
-
function
|
|
1270
|
+
function Fr() {
|
|
1270
1271
|
const { t: e } = A();
|
|
1271
1272
|
return /* @__PURE__ */ s(
|
|
1272
1273
|
zt,
|
|
@@ -1278,7 +1279,7 @@ function Nr() {
|
|
|
1278
1279
|
}
|
|
1279
1280
|
);
|
|
1280
1281
|
}
|
|
1281
|
-
function
|
|
1282
|
+
function Nr(e) {
|
|
1282
1283
|
return e.map(({ pinned: t, ...n }) => n);
|
|
1283
1284
|
}
|
|
1284
1285
|
function kr(e) {
|
|
@@ -1297,8 +1298,8 @@ function Ar(e, t) {
|
|
|
1297
1298
|
if (typeof a != "object" || a === null) return null;
|
|
1298
1299
|
const i = a;
|
|
1299
1300
|
return i.v !== 2 || !Array.isArray(i.state) ? null : {
|
|
1300
|
-
state: i.dir === t ? i.state :
|
|
1301
|
-
touched: Array.isArray(i.touched) ? i.touched.filter((
|
|
1301
|
+
state: i.dir === t ? i.state : Nr(i.state),
|
|
1302
|
+
touched: Array.isArray(i.touched) ? i.touched.filter((l) => typeof l == "string") : []
|
|
1302
1303
|
};
|
|
1303
1304
|
} catch {
|
|
1304
1305
|
return null;
|
|
@@ -1332,19 +1333,19 @@ function Mr(e, t) {
|
|
|
1332
1333
|
columnDefs: n,
|
|
1333
1334
|
rowData: a,
|
|
1334
1335
|
rowSelection: i,
|
|
1335
|
-
pagination:
|
|
1336
|
-
paginationPageSize:
|
|
1337
|
-
paginationPageSizeSelector:
|
|
1338
|
-
gridId:
|
|
1339
|
-
onSelectionChanged:
|
|
1340
|
-
onSortChanged:
|
|
1341
|
-
onFilterChanged:
|
|
1336
|
+
pagination: l = !1,
|
|
1337
|
+
paginationPageSize: m = 25,
|
|
1338
|
+
paginationPageSizeSelector: u = [10, 25, 50, 100],
|
|
1339
|
+
gridId: f,
|
|
1340
|
+
onSelectionChanged: b,
|
|
1341
|
+
onSortChanged: p,
|
|
1342
|
+
onFilterChanged: h,
|
|
1342
1343
|
noRowsOverlay: S,
|
|
1343
1344
|
loadingOverlay: C,
|
|
1344
1345
|
gridOptions: c,
|
|
1345
|
-
density:
|
|
1346
|
-
bordered:
|
|
1347
|
-
heightClass:
|
|
1346
|
+
density: g,
|
|
1347
|
+
bordered: T,
|
|
1348
|
+
heightClass: w = "ds:h-[500px]",
|
|
1348
1349
|
className: R,
|
|
1349
1350
|
getRowClass: I,
|
|
1350
1351
|
pinnedBottomRowData: ee,
|
|
@@ -1352,48 +1353,48 @@ function Mr(e, t) {
|
|
|
1352
1353
|
expandedRowId: v,
|
|
1353
1354
|
renderExpandedRow: O,
|
|
1354
1355
|
onExpandedRowChange: M,
|
|
1355
|
-
children:
|
|
1356
|
-
} = e,
|
|
1357
|
-
if (
|
|
1356
|
+
children: N
|
|
1357
|
+
} = e, F = v !== void 0 || O !== void 0, q = c == null ? void 0 : c.getRowId;
|
|
1358
|
+
if (F && !q)
|
|
1358
1359
|
throw new Error(
|
|
1359
1360
|
"DataTable: `expandedRowId` / `renderExpandedRow` require `gridOptions.getRowId` — the expanded row is addressed by row id, not by index."
|
|
1360
1361
|
);
|
|
1361
|
-
const { t: U, i18n: z } = A(), E =
|
|
1362
|
+
const { t: U, i18n: z } = A(), E = W(null), ie = W(null);
|
|
1362
1363
|
xr(ie);
|
|
1363
|
-
const [X, xe] = G(0), [Q,
|
|
1364
|
+
const [X, xe] = G(0), [Q, Te] = G(""), ot = Er(), Oe = W(v);
|
|
1364
1365
|
Oe.current = v;
|
|
1365
|
-
const
|
|
1366
|
+
const we = j(
|
|
1366
1367
|
() => ({
|
|
1367
1368
|
getSelection: () => {
|
|
1368
|
-
var
|
|
1369
|
-
const r = (
|
|
1369
|
+
var d;
|
|
1370
|
+
const r = (d = E.current) == null ? void 0 : d.api;
|
|
1370
1371
|
if (!r) return [];
|
|
1371
1372
|
const o = [];
|
|
1372
1373
|
for (const y of r.getSelectedNodes())
|
|
1373
|
-
y.id != null &&
|
|
1374
|
+
y.id != null && !$(y.data) && o.push(y.id);
|
|
1374
1375
|
return o;
|
|
1375
1376
|
},
|
|
1376
1377
|
setSelection: (r) => {
|
|
1377
1378
|
var y;
|
|
1378
1379
|
const o = (y = E.current) == null ? void 0 : y.api;
|
|
1379
1380
|
if (!o) return;
|
|
1380
|
-
const
|
|
1381
|
+
const d = new Set(r);
|
|
1381
1382
|
o.forEachNode((x) => {
|
|
1382
|
-
x.id != null && x.setSelected(
|
|
1383
|
+
x.id != null && x.setSelected(d.has(x.id));
|
|
1383
1384
|
});
|
|
1384
1385
|
},
|
|
1385
1386
|
selectRange: (r, o) => {
|
|
1386
1387
|
var qe;
|
|
1387
|
-
const
|
|
1388
|
-
if (!
|
|
1388
|
+
const d = (qe = E.current) == null ? void 0 : qe.api;
|
|
1389
|
+
if (!d) return;
|
|
1389
1390
|
const y = [];
|
|
1390
|
-
|
|
1391
|
-
Y.id != null &&
|
|
1391
|
+
d.forEachNodeAfterFilterAndSort((Y) => {
|
|
1392
|
+
Y.id != null && !$(Y.data) && y.push(Y.id);
|
|
1392
1393
|
});
|
|
1393
1394
|
const x = y.indexOf(r), k = y.indexOf(o);
|
|
1394
1395
|
if (x < 0 || k < 0) return;
|
|
1395
1396
|
const [P, re] = x <= k ? [x, k] : [k, x], Z = new Set(y.slice(P, re + 1));
|
|
1396
|
-
|
|
1397
|
+
d.forEachNode((Y) => {
|
|
1397
1398
|
Y.id != null && Y.setSelected(Z.has(Y.id));
|
|
1398
1399
|
});
|
|
1399
1400
|
},
|
|
@@ -1406,31 +1407,31 @@ function Mr(e, t) {
|
|
|
1406
1407
|
return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.getFilterModel()) ?? {};
|
|
1407
1408
|
},
|
|
1408
1409
|
setFilter: (r) => {
|
|
1409
|
-
var o,
|
|
1410
|
-
(
|
|
1410
|
+
var o, d;
|
|
1411
|
+
(d = (o = E.current) == null ? void 0 : o.api) == null || d.setFilterModel(r);
|
|
1411
1412
|
},
|
|
1412
1413
|
getSort: () => {
|
|
1413
1414
|
var o;
|
|
1414
1415
|
const r = (o = E.current) == null ? void 0 : o.api;
|
|
1415
|
-
return r ? r.getColumnState().filter((
|
|
1416
|
+
return r ? r.getColumnState().filter((d) => d.sort === "asc" || d.sort === "desc").map((d) => ({ colId: d.colId, sort: d.sort })) : [];
|
|
1416
1417
|
},
|
|
1417
1418
|
setSort: (r) => {
|
|
1418
1419
|
var y;
|
|
1419
1420
|
const o = (y = E.current) == null ? void 0 : y.api;
|
|
1420
1421
|
if (!o) return;
|
|
1421
|
-
const
|
|
1422
|
+
const d = o.getColumnState().map((x) => {
|
|
1422
1423
|
const k = r.find((P) => P.colId === x.colId);
|
|
1423
1424
|
return { ...x, sort: k ? k.sort : null };
|
|
1424
1425
|
});
|
|
1425
|
-
o.applyColumnState({ state:
|
|
1426
|
+
o.applyColumnState({ state: d, defaultState: { sort: null } });
|
|
1426
1427
|
},
|
|
1427
1428
|
getCurrentPage: () => {
|
|
1428
1429
|
var r, o;
|
|
1429
1430
|
return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.paginationGetCurrentPage()) ?? 0;
|
|
1430
1431
|
},
|
|
1431
1432
|
goToPage: (r) => {
|
|
1432
|
-
var o,
|
|
1433
|
-
(
|
|
1433
|
+
var o, d;
|
|
1434
|
+
(d = (o = E.current) == null ? void 0 : o.api) == null || d.paginationGoToPage(r);
|
|
1434
1435
|
},
|
|
1435
1436
|
getExpandedRowId: () => Oe.current ?? null,
|
|
1436
1437
|
getUserTouchedColumns: () => [...te.current],
|
|
@@ -1441,14 +1442,14 @@ function Mr(e, t) {
|
|
|
1441
1442
|
}
|
|
1442
1443
|
}),
|
|
1443
1444
|
[]
|
|
1444
|
-
), ce =
|
|
1445
|
+
), ce = W(/* @__PURE__ */ new Map()), te = W(/* @__PURE__ */ new Set()), Me = W(
|
|
1445
1446
|
() => {
|
|
1446
1447
|
}
|
|
1447
1448
|
);
|
|
1448
|
-
Ot(t, () =>
|
|
1449
|
-
const ze = z.dir() === "rtl", it = a === void 0, st = Zt(), { resolvedTheme: Ge } = Yt(), lt = (Ge === "light-accessible" || Ge === "dark-accessible") &&
|
|
1449
|
+
Ot(t, () => we, [we]), Jt(Sr, we, f);
|
|
1450
|
+
const ze = z.dir() === "rtl", it = a === void 0, st = Zt(), { resolvedTheme: Ge } = Yt(), lt = (Ge === "light-accessible" || Ge === "dark-accessible") && g === "compact" ? "default" : g, dt = j(() => {
|
|
1450
1451
|
if (!i) return;
|
|
1451
|
-
const r = (o) =>
|
|
1452
|
+
const r = (o) => !$(o.data);
|
|
1452
1453
|
return i === "single" ? {
|
|
1453
1454
|
mode: "singleRow",
|
|
1454
1455
|
enableClickSelection: !1,
|
|
@@ -1461,35 +1462,35 @@ function Mr(e, t) {
|
|
|
1461
1462
|
isRowSelectable: r
|
|
1462
1463
|
};
|
|
1463
1464
|
}, [i]), ue = ze ? "rtl" : "ltr", H = D(
|
|
1464
|
-
(r, o,
|
|
1465
|
+
(r, o, d) => {
|
|
1465
1466
|
const y = new Set(o);
|
|
1466
1467
|
for (const x of r.getColumnState()) {
|
|
1467
1468
|
if (!y.has(x.colId)) continue;
|
|
1468
1469
|
const k = ce.current.get(x.colId) ?? {};
|
|
1469
|
-
for (const P of
|
|
1470
|
+
for (const P of d) k[P] = x[P];
|
|
1470
1471
|
ce.current.set(x.colId, k);
|
|
1471
1472
|
}
|
|
1472
1473
|
},
|
|
1473
1474
|
[]
|
|
1474
1475
|
), se = D(
|
|
1475
1476
|
(r) => {
|
|
1476
|
-
|
|
1477
|
+
f && Pr(f, r, ue, te.current);
|
|
1477
1478
|
},
|
|
1478
|
-
[
|
|
1479
|
+
[f, ue]
|
|
1479
1480
|
), _e = D(
|
|
1480
1481
|
(r) => {
|
|
1481
|
-
var
|
|
1482
|
+
var d;
|
|
1482
1483
|
for (const y of r) te.current.add(y);
|
|
1483
|
-
const o = (
|
|
1484
|
+
const o = (d = E.current) == null ? void 0 : d.api;
|
|
1484
1485
|
o && (H(o, r, ["hide"]), se(o));
|
|
1485
1486
|
},
|
|
1486
1487
|
[se, H]
|
|
1487
1488
|
);
|
|
1488
1489
|
Me.current = _e;
|
|
1489
1490
|
const ct = D(() => {
|
|
1490
|
-
var
|
|
1491
|
-
if (!((
|
|
1492
|
-
const r = E.current.api, o =
|
|
1491
|
+
var d;
|
|
1492
|
+
if (!((d = E.current) != null && d.api)) return;
|
|
1493
|
+
const r = E.current.api, o = f ? Ar(f, ue) : null;
|
|
1493
1494
|
if (o) {
|
|
1494
1495
|
for (const y of o.touched) te.current.add(y);
|
|
1495
1496
|
r.applyColumnState({
|
|
@@ -1497,11 +1498,11 @@ function Mr(e, t) {
|
|
|
1497
1498
|
applyOrder: !0
|
|
1498
1499
|
}), H(r, o.touched, ["hide"]);
|
|
1499
1500
|
}
|
|
1500
|
-
}, [
|
|
1501
|
+
}, [f, ue, H]), ut = D(
|
|
1501
1502
|
(r) => {
|
|
1502
|
-
var
|
|
1503
|
+
var d;
|
|
1503
1504
|
if (r.source !== "gridOptionsChanged") return;
|
|
1504
|
-
const o = (
|
|
1505
|
+
const o = (d = E.current) == null ? void 0 : d.api;
|
|
1505
1506
|
!o || ce.current.size === 0 || o.applyColumnState({
|
|
1506
1507
|
state: [...ce.current].map(([y, x]) => ({
|
|
1507
1508
|
colId: y,
|
|
@@ -1515,10 +1516,10 @@ function Mr(e, t) {
|
|
|
1515
1516
|
var y;
|
|
1516
1517
|
const o = (y = E.current) == null ? void 0 : y.api;
|
|
1517
1518
|
if (!o) return;
|
|
1518
|
-
const
|
|
1519
|
+
const d = (r.columns ?? (r.column ? [r.column] : [])).map((x) => x.getColId());
|
|
1519
1520
|
if (r.source && Or.has(r.source)) {
|
|
1520
1521
|
if (r.source === "api" && "visible" in r) {
|
|
1521
|
-
const x =
|
|
1522
|
+
const x = d.filter(
|
|
1522
1523
|
(k) => te.current.has(k)
|
|
1523
1524
|
);
|
|
1524
1525
|
x.length > 0 && (H(o, x, ["hide"]), se(o));
|
|
@@ -1526,17 +1527,17 @@ function Mr(e, t) {
|
|
|
1526
1527
|
return;
|
|
1527
1528
|
}
|
|
1528
1529
|
if ("visible" in r) {
|
|
1529
|
-
for (const x of
|
|
1530
|
-
H(o,
|
|
1531
|
-
} else "pinned" in r ? H(o,
|
|
1530
|
+
for (const x of d) te.current.add(x);
|
|
1531
|
+
H(o, d, ["hide"]);
|
|
1532
|
+
} else "pinned" in r ? H(o, d, ["pinned"]) : "flexColumns" in r && H(o, d, ["width", "flex"]);
|
|
1532
1533
|
se(o);
|
|
1533
1534
|
},
|
|
1534
1535
|
[se, H]
|
|
1535
1536
|
), pt = j(() => {
|
|
1536
1537
|
if (!c) return;
|
|
1537
1538
|
const r = { ...c };
|
|
1538
|
-
return delete r.defaultColDef,
|
|
1539
|
-
}, [
|
|
1539
|
+
return delete r.defaultColDef, F && (delete r.getRowId, delete r.isFullWidthRow, delete r.fullWidthCellRenderer, delete r.getRowHeight, delete r.postSortRows, delete r.getRowClass, delete r.defaultCsvExportParams, delete r.defaultExcelExportParams), r;
|
|
1540
|
+
}, [F, c]), je = W(/* @__PURE__ */ new Map()), le = W(c);
|
|
1540
1541
|
le.current = c;
|
|
1541
1542
|
const Le = D(
|
|
1542
1543
|
(r) => {
|
|
@@ -1550,10 +1551,10 @@ function Mr(e, t) {
|
|
|
1550
1551
|
},
|
|
1551
1552
|
[q, c == null ? void 0 : c.context]
|
|
1552
1553
|
), J = j(() => {
|
|
1553
|
-
if (!
|
|
1554
|
+
if (!F || v == null || !a) return null;
|
|
1554
1555
|
const r = a.find((o) => Le(o) === v);
|
|
1555
1556
|
return r === void 0 ? null : { id: v, row: r };
|
|
1556
|
-
}, [
|
|
1557
|
+
}, [F, v, Le, a]), ft = j(() => {
|
|
1557
1558
|
if (!J || !a) return a;
|
|
1558
1559
|
const r = a.indexOf(J.row), o = Cr(J.row, J.id);
|
|
1559
1560
|
return [
|
|
@@ -1562,60 +1563,60 @@ function Mr(e, t) {
|
|
|
1562
1563
|
...a.slice(r + 1)
|
|
1563
1564
|
];
|
|
1564
1565
|
}, [J, a]), mt = D(
|
|
1565
|
-
(r) =>
|
|
1566
|
+
(r) => $(r.data) ? vr(r.data[ne]) : q(r),
|
|
1566
1567
|
[q]
|
|
1567
1568
|
), gt = D(
|
|
1568
1569
|
(r) => {
|
|
1569
|
-
var o,
|
|
1570
|
-
return
|
|
1570
|
+
var o, d;
|
|
1571
|
+
return $(r.rowNode.data) || (((d = (o = le.current) == null ? void 0 : o.isFullWidthRow) == null ? void 0 : d.call(o, r)) ?? !1);
|
|
1571
1572
|
},
|
|
1572
1573
|
[]
|
|
1573
|
-
),
|
|
1574
|
+
), bt = D(
|
|
1574
1575
|
(r) => {
|
|
1575
|
-
var o,
|
|
1576
|
-
return
|
|
1576
|
+
var o, d;
|
|
1577
|
+
return $(r.data) ? je.current.get(r.node.id ?? "") : (d = (o = le.current) == null ? void 0 : o.getRowHeight) == null ? void 0 : d.call(o, r);
|
|
1577
1578
|
},
|
|
1578
1579
|
[]
|
|
1579
|
-
),
|
|
1580
|
+
), ht = D(
|
|
1580
1581
|
(r) => {
|
|
1581
1582
|
var P, re;
|
|
1582
1583
|
(re = (P = le.current) == null ? void 0 : P.postSortRows) == null || re.call(P, r);
|
|
1583
|
-
const { nodes: o } = r,
|
|
1584
|
-
if (
|
|
1585
|
-
const [y] = o.splice(
|
|
1584
|
+
const { nodes: o } = r, d = o.findIndex((Z) => $(Z.data));
|
|
1585
|
+
if (d < 0) return;
|
|
1586
|
+
const [y] = o.splice(d, 1), x = y.data[ne], k = o.findIndex((Z) => Z.id === x);
|
|
1586
1587
|
o.splice(k < 0 ? o.length : k + 1, 0, y);
|
|
1587
1588
|
},
|
|
1588
1589
|
[]
|
|
1589
1590
|
), yt = D(
|
|
1590
1591
|
(r) => {
|
|
1591
|
-
var o,
|
|
1592
|
-
return
|
|
1592
|
+
var o, d;
|
|
1593
|
+
return $(r.data) ? Tr : ((d = (o = le.current) == null ? void 0 : o.getRowClass) == null ? void 0 : d.call(o, r)) ?? (I == null ? void 0 : I(r));
|
|
1593
1594
|
},
|
|
1594
1595
|
[I]
|
|
1595
1596
|
), fe = D(
|
|
1596
|
-
(r) =>
|
|
1597
|
+
(r) => $(r.node.data),
|
|
1597
1598
|
[]
|
|
1598
1599
|
), xt = j(() => {
|
|
1599
|
-
if (!
|
|
1600
|
+
if (!F) return;
|
|
1600
1601
|
const r = c == null ? void 0 : c.defaultCsvExportParams;
|
|
1601
1602
|
return {
|
|
1602
1603
|
...r,
|
|
1603
1604
|
shouldRowBeSkipped: (o) => {
|
|
1604
|
-
var
|
|
1605
|
-
return fe(o) || (((
|
|
1605
|
+
var d;
|
|
1606
|
+
return fe(o) || (((d = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : d.call(r, o)) ?? !1);
|
|
1606
1607
|
}
|
|
1607
1608
|
};
|
|
1608
|
-
}, [
|
|
1609
|
-
if (!
|
|
1609
|
+
}, [F, c == null ? void 0 : c.defaultCsvExportParams, fe]), Tt = j(() => {
|
|
1610
|
+
if (!F) return;
|
|
1610
1611
|
const r = c == null ? void 0 : c.defaultExcelExportParams;
|
|
1611
1612
|
return {
|
|
1612
1613
|
...r,
|
|
1613
1614
|
shouldRowBeSkipped: (o) => {
|
|
1614
|
-
var
|
|
1615
|
-
return fe(o) || (((
|
|
1615
|
+
var d;
|
|
1616
|
+
return fe(o) || (((d = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : d.call(r, o)) ?? !1);
|
|
1616
1617
|
}
|
|
1617
1618
|
};
|
|
1618
|
-
}, [
|
|
1619
|
+
}, [F, c == null ? void 0 : c.defaultExcelExportParams, fe]), ve = c == null ? void 0 : c.fullWidthCellRenderer, wt = j(
|
|
1619
1620
|
() => ({
|
|
1620
1621
|
renderExpandedRow: O,
|
|
1621
1622
|
onExpandedRowChange: M,
|
|
@@ -1630,43 +1631,43 @@ function Mr(e, t) {
|
|
|
1630
1631
|
O
|
|
1631
1632
|
]
|
|
1632
1633
|
), vt = D(() => {
|
|
1633
|
-
var
|
|
1634
|
-
const r = (
|
|
1634
|
+
var d;
|
|
1635
|
+
const r = (d = E.current) == null ? void 0 : d.api;
|
|
1635
1636
|
if (!r) return;
|
|
1636
|
-
const o = r.getSelectedRows().filter((y) =>
|
|
1637
|
-
xe(o.length),
|
|
1638
|
-
}, [
|
|
1637
|
+
const o = r.getSelectedRows().filter((y) => !$(y));
|
|
1638
|
+
xe(o.length), b == null || b(o);
|
|
1639
|
+
}, [b]), Ct = D(
|
|
1639
1640
|
(r) => {
|
|
1640
|
-
var
|
|
1641
|
-
const o = (
|
|
1641
|
+
var d;
|
|
1642
|
+
const o = (d = E.current) == null ? void 0 : d.api;
|
|
1642
1643
|
if (o) {
|
|
1643
1644
|
const x = o.getColumnState().find((k) => k.sort);
|
|
1644
1645
|
if (x) {
|
|
1645
1646
|
const k = x.colId, P = o.getColumnDef(k), re = (P == null ? void 0 : P.headerName) ?? k, Z = x.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
|
|
1646
|
-
|
|
1647
|
+
Te(
|
|
1647
1648
|
U("dataTable.sortAnnounce", {
|
|
1648
1649
|
column: re,
|
|
1649
1650
|
direction: U(Z)
|
|
1650
1651
|
})
|
|
1651
1652
|
);
|
|
1652
1653
|
} else
|
|
1653
|
-
|
|
1654
|
+
Te("");
|
|
1654
1655
|
}
|
|
1655
|
-
|
|
1656
|
+
p == null || p(r);
|
|
1656
1657
|
},
|
|
1657
|
-
[
|
|
1658
|
+
[p, U]
|
|
1658
1659
|
), Rt = D(
|
|
1659
1660
|
(r) => {
|
|
1660
|
-
|
|
1661
|
+
h == null || h(r);
|
|
1661
1662
|
},
|
|
1662
|
-
[
|
|
1663
|
+
[h]
|
|
1663
1664
|
);
|
|
1664
1665
|
K(() => {
|
|
1665
1666
|
if (!Q) return;
|
|
1666
|
-
const r = setTimeout(() =>
|
|
1667
|
+
const r = setTimeout(() => Te(""), 3e3);
|
|
1667
1668
|
return () => clearTimeout(r);
|
|
1668
1669
|
}, [Q]);
|
|
1669
|
-
const St = S ??
|
|
1670
|
+
const St = S ?? Fr, It = C ?? Dr, Et = D(
|
|
1670
1671
|
() => {
|
|
1671
1672
|
var r;
|
|
1672
1673
|
return (r = E.current) == null ? void 0 : r.api;
|
|
@@ -1674,30 +1675,30 @@ function Mr(e, t) {
|
|
|
1674
1675
|
[]
|
|
1675
1676
|
), Dt = D(() => {
|
|
1676
1677
|
typeof window < "u" && window.print();
|
|
1677
|
-
}, []),
|
|
1678
|
+
}, []), Ft = Ir({
|
|
1678
1679
|
density: lt,
|
|
1679
|
-
bordered:
|
|
1680
|
+
bordered: T,
|
|
1680
1681
|
className: R
|
|
1681
|
-
}),
|
|
1682
|
-
|
|
1682
|
+
}), Nt = N ?? /* @__PURE__ */ s("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ L(
|
|
1683
|
+
$t,
|
|
1683
1684
|
{
|
|
1684
1685
|
role: "toolbar",
|
|
1685
1686
|
"aria-label": U("dataTable.tableActions"),
|
|
1686
1687
|
className: "ds:bg-[var(--background)]",
|
|
1687
1688
|
children: [
|
|
1688
|
-
/* @__PURE__ */ s(
|
|
1689
|
-
/* @__PURE__ */ s(
|
|
1690
|
-
/* @__PURE__ */ s(
|
|
1689
|
+
/* @__PURE__ */ s(he.ExportMenu, {}),
|
|
1690
|
+
/* @__PURE__ */ s(he.Print, {}),
|
|
1691
|
+
/* @__PURE__ */ s(he.ColumnToggle, {})
|
|
1691
1692
|
]
|
|
1692
1693
|
}
|
|
1693
|
-
) }), kt = _ ? !1 :
|
|
1694
|
+
) }), kt = _ ? !1 : l;
|
|
1694
1695
|
return /* @__PURE__ */ L(
|
|
1695
1696
|
"div",
|
|
1696
1697
|
{
|
|
1697
1698
|
className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1698
1699
|
"aria-busy": it ? "true" : void 0,
|
|
1699
1700
|
"data-component": "data-table",
|
|
1700
|
-
"data-component-id":
|
|
1701
|
+
"data-component-id": f,
|
|
1701
1702
|
"data-print-mode": _ ? "true" : void 0,
|
|
1702
1703
|
children: [
|
|
1703
1704
|
!_ && /* @__PURE__ */ s(
|
|
@@ -1707,18 +1708,18 @@ function Mr(e, t) {
|
|
|
1707
1708
|
selectionCount: X,
|
|
1708
1709
|
onPrint: Dt,
|
|
1709
1710
|
markColumnsUserTouched: _e,
|
|
1710
|
-
children:
|
|
1711
|
+
children: Nt
|
|
1711
1712
|
}
|
|
1712
1713
|
),
|
|
1713
1714
|
/* @__PURE__ */ s(
|
|
1714
1715
|
"div",
|
|
1715
1716
|
{
|
|
1716
1717
|
ref: ie,
|
|
1717
|
-
className: [
|
|
1718
|
+
className: [Ft, _ ? "" : w].join(" ").trim(),
|
|
1718
1719
|
children: /* @__PURE__ */ s(
|
|
1719
1720
|
at.Provider,
|
|
1720
1721
|
{
|
|
1721
|
-
value:
|
|
1722
|
+
value: wt,
|
|
1722
1723
|
children: /* @__PURE__ */ s(
|
|
1723
1724
|
jt,
|
|
1724
1725
|
{
|
|
@@ -1733,8 +1734,8 @@ function Mr(e, t) {
|
|
|
1733
1734
|
// language instead of AG Grid's stock browser-skinned input.
|
|
1734
1735
|
// Number / date / select columns opt into their dedicated
|
|
1735
1736
|
// wrapper per-column.
|
|
1736
|
-
filter:
|
|
1737
|
-
floatingFilterComponent:
|
|
1737
|
+
filter: br,
|
|
1738
|
+
floatingFilterComponent: hr,
|
|
1738
1739
|
resizable: !0,
|
|
1739
1740
|
floatingFilter: !0,
|
|
1740
1741
|
// §13d — faint sort icon advertises which columns are
|
|
@@ -1744,8 +1745,8 @@ function Mr(e, t) {
|
|
|
1744
1745
|
},
|
|
1745
1746
|
rowSelection: dt,
|
|
1746
1747
|
pagination: kt,
|
|
1747
|
-
paginationPageSize:
|
|
1748
|
-
paginationPageSizeSelector:
|
|
1748
|
+
paginationPageSize: m,
|
|
1749
|
+
paginationPageSizeSelector: u,
|
|
1749
1750
|
paginationNumberFormatter: (r) => new Intl.NumberFormat(z.language).format(r.value),
|
|
1750
1751
|
animateRows: !st,
|
|
1751
1752
|
enableRtl: ze,
|
|
@@ -1768,7 +1769,7 @@ function Mr(e, t) {
|
|
|
1768
1769
|
localeText: ot,
|
|
1769
1770
|
noRowsOverlayComponent: St,
|
|
1770
1771
|
loadingOverlayComponent: It,
|
|
1771
|
-
getRowClass:
|
|
1772
|
+
getRowClass: F ? yt : I,
|
|
1772
1773
|
pinnedBottomRowData: ee,
|
|
1773
1774
|
domLayout: _ ? "autoHeight" : void 0,
|
|
1774
1775
|
onGridReady: ct,
|
|
@@ -1781,14 +1782,14 @@ function Mr(e, t) {
|
|
|
1781
1782
|
onFilterChanged: Rt,
|
|
1782
1783
|
onSelectionChanged: vt,
|
|
1783
1784
|
...pt,
|
|
1784
|
-
...
|
|
1785
|
+
...F ? {
|
|
1785
1786
|
getRowId: mt,
|
|
1786
1787
|
isFullWidthRow: gt,
|
|
1787
1788
|
fullWidthCellRenderer: Rr,
|
|
1788
|
-
getRowHeight:
|
|
1789
|
-
postSortRows:
|
|
1789
|
+
getRowHeight: bt,
|
|
1790
|
+
postSortRows: ht,
|
|
1790
1791
|
defaultCsvExportParams: xt,
|
|
1791
|
-
defaultExcelExportParams:
|
|
1792
|
+
defaultExcelExportParams: Tt
|
|
1792
1793
|
} : {}
|
|
1793
1794
|
}
|
|
1794
1795
|
)
|
|
@@ -1802,22 +1803,22 @@ function Mr(e, t) {
|
|
|
1802
1803
|
}
|
|
1803
1804
|
);
|
|
1804
1805
|
}
|
|
1805
|
-
const nt =
|
|
1806
|
+
const nt = B(Mr);
|
|
1806
1807
|
nt.displayName = "DataTable";
|
|
1807
1808
|
const ma = Object.assign(nt, {
|
|
1808
|
-
Toolbar:
|
|
1809
|
+
Toolbar: he
|
|
1809
1810
|
});
|
|
1810
1811
|
export {
|
|
1811
1812
|
ma as D,
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1813
|
+
Tr as E,
|
|
1814
|
+
br as T,
|
|
1815
|
+
hr as a,
|
|
1816
|
+
he as b,
|
|
1816
1817
|
ar as c,
|
|
1817
1818
|
Sr as d,
|
|
1818
1819
|
Qe as e,
|
|
1819
1820
|
vr as f,
|
|
1820
1821
|
fa as g,
|
|
1821
|
-
|
|
1822
|
+
$ as i
|
|
1822
1823
|
};
|
|
1823
|
-
//# sourceMappingURL=data-table-
|
|
1824
|
+
//# sourceMappingURL=data-table-CrI3_bjH.js.map
|