@lax-wp/design-system 0.13.35 → 0.13.37-beta.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/components/data-display/infinite-table/head/index.cjs.js +1 -1
- package/dist/components/data-display/infinite-table/head/index.cjs.js.map +1 -1
- package/dist/components/data-display/infinite-table/head/index.d.ts +3 -1
- package/dist/components/data-display/infinite-table/head/index.es.js +50 -48
- package/dist/components/data-display/infinite-table/head/index.es.js.map +1 -1
- package/dist/components/data-display/infinite-table/index.cjs.js +1 -1
- package/dist/components/data-display/infinite-table/index.cjs.js.map +1 -1
- package/dist/components/data-display/infinite-table/index.d.ts +1 -1
- package/dist/components/data-display/infinite-table/index.es.js +190 -188
- package/dist/components/data-display/infinite-table/index.es.js.map +1 -1
- package/dist/components/data-display/infinite-table/types.d.ts +2 -0
- package/dist/components/forms/date-time-field/DateTimeField.cjs.js +1 -1
- package/dist/components/forms/date-time-field/DateTimeField.cjs.js.map +1 -1
- package/dist/components/forms/date-time-field/DateTimeField.es.js +97 -92
- package/dist/components/forms/date-time-field/DateTimeField.es.js.map +1 -1
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.cjs.js +1 -1
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.cjs.js.map +1 -1
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.d.ts +6 -0
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.es.js +172 -142
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.es.js.map +1 -1
- package/dist/components/forms/link-input/LinkInputField.cjs.js +2 -0
- package/dist/components/forms/link-input/LinkInputField.cjs.js.map +1 -0
- package/dist/components/forms/link-input/LinkInputField.d.ts +26 -0
- package/dist/components/forms/link-input/LinkInputField.es.js +113 -0
- package/dist/components/forms/link-input/LinkInputField.es.js.map +1 -0
- package/dist/components/forms/master-data-input/MasterDataInputField.cjs.js +1 -1
- package/dist/components/forms/master-data-input/MasterDataInputField.cjs.js.map +1 -1
- package/dist/components/forms/master-data-input/MasterDataInputField.d.ts +6 -0
- package/dist/components/forms/master-data-input/MasterDataInputField.es.js +199 -169
- package/dist/components/forms/master-data-input/MasterDataInputField.es.js.map +1 -1
- package/dist/components/forms/percentage-input/PercentageInputField.cjs.js +1 -5
- package/dist/components/forms/percentage-input/PercentageInputField.cjs.js.map +1 -1
- package/dist/components/forms/percentage-input/PercentageInputField.d.ts +6 -0
- package/dist/components/forms/percentage-input/PercentageInputField.es.js +141 -134
- package/dist/components/forms/percentage-input/PercentageInputField.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.es.js +407 -405
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsx as s, jsxs as b, Fragment as
|
|
2
|
-
import { useCheckbox as
|
|
3
|
-
import { useTableConfig as
|
|
1
|
+
import { jsx as s, jsxs as b, Fragment as Dr } from "react/jsx-runtime";
|
|
2
|
+
import { useCheckbox as Ar } from "../../../hooks/useCheckbox.es.js";
|
|
3
|
+
import { useTableConfig as Er } from "../../../providers/design-system-provider/hooks.es.js";
|
|
4
4
|
import { mergeViewColumnsWithTableColumns as Lt } from "../../../utils/table.es.js";
|
|
5
5
|
import gt from "../../button/Button.es.js";
|
|
6
|
-
import { FloatingBar as
|
|
6
|
+
import { FloatingBar as Or } from "../../floating-bar/FloatingBar.es.js";
|
|
7
7
|
import { Typography as Te } from "../typography/Typography.es.js";
|
|
8
|
-
import { useSensors as
|
|
9
|
-
import
|
|
10
|
-
import { AutoSizer as
|
|
11
|
-
import { createPortal as
|
|
12
|
-
import { useTable as
|
|
13
|
-
import { Body as
|
|
8
|
+
import { useSensors as _r, useSensor as Vt, MouseSensor as kr, TouchSensor as Rr, DndContext as Mr, closestCorners as Lr, DragOverlay as gr } from "@dnd-kit/core";
|
|
9
|
+
import Vr, { useState as p, useRef as A, useCallback as c, useEffect as y, useMemo as $, forwardRef as jt } from "react";
|
|
10
|
+
import { AutoSizer as jr } from "react-virtualized-auto-sizer";
|
|
11
|
+
import { createPortal as Ir } from "react-dom";
|
|
12
|
+
import { useTable as Pr, useResizeColumns as Br } from "react-table";
|
|
13
|
+
import { Body as Wr } from "./body/index.es.js";
|
|
14
14
|
import { validateCellValue as It } from "./validateCell.es.js";
|
|
15
|
-
import { Row as
|
|
16
|
-
import { TableContext as
|
|
17
|
-
import { CurrencyDropdownPortal as
|
|
18
|
-
import { Head as
|
|
19
|
-
import { PendingEditsFloatingBar as
|
|
20
|
-
import { DATA_ROW_ID_ATTR as
|
|
21
|
-
import { getRowSlotHeight as
|
|
22
|
-
import { NoDataFoundWidgets as
|
|
23
|
-
import { NoDataFound as
|
|
24
|
-
import { Add2Icon as
|
|
25
|
-
const
|
|
15
|
+
import { Row as Hr } from "./body/rows/row.es.js";
|
|
16
|
+
import { TableContext as $r } from "./context.es.js";
|
|
17
|
+
import { CurrencyDropdownPortal as zr } from "./CurrencyDropdownPortal.es.js";
|
|
18
|
+
import { Head as qr } from "./head/index.es.js";
|
|
19
|
+
import { PendingEditsFloatingBar as Ur } from "./PendingEditsFloatingBar.es.js";
|
|
20
|
+
import { DATA_ROW_ID_ATTR as Jr, DATA_COLUMN_KEY_ATTR as Gr, OS_VIEWPORT_SELECTOR as Xr, SCROLL_TO_CELL_COLUMN_WIDTH_FALLBACK as Yr, SCROLL_TO_CELL_LEFT_OFFSET as Zr, DEFAULT_PAGE_SIZE as Cr, DEFAULT_COLUMN_MAX_WIDTH as Qr, DEFAULT_COLUMN_WIDTH as Kr, DEFAULT_COLUMN_MIN_WIDTH as en, DND_ACTIVATION_DISTANCE as Pt, ROW_ADDITIONAL_ACTIONS_DEFAULT_WIDTH as tn, ROW_OPTIONS_COLUMN_WIDTH as ln, TOOLBAR_FIRST_BREAKPOINT as Z, TOOLBAR_SECOND_BREAKPOINT as Ue, DROP_ANIMATION_DURATION as rn, DROP_ANIMATION_EASING as nn } from "./constants.es.js";
|
|
21
|
+
import { getRowSlotHeight as sn, useRowHeight as on } from "./useRowHeight.es.js";
|
|
22
|
+
import { NoDataFoundWidgets as an } from "../empty-state/NoDataFoundWidgets.es.js";
|
|
23
|
+
import { NoDataFound as cn } from "../empty-state/NoDataFound.es.js";
|
|
24
|
+
import { Add2Icon as un } from "../../icon/icons.generated.es.js";
|
|
25
|
+
const dn = jr, Bt = "Create Column", hn = (g, N) => `button-admin-${g.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-_]/g, "") || N}`, In = Vr.memo(
|
|
26
26
|
({
|
|
27
27
|
tableKey: g,
|
|
28
28
|
searchConfig: N = { search: "", handleSearch: () => null, allowAStarSearch: !1 },
|
|
@@ -66,8 +66,9 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
66
66
|
hideRowOptionWidth: Ge,
|
|
67
67
|
checkboxUtilities: V,
|
|
68
68
|
isLoading: se = !1,
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
headerLoading: $t = !1,
|
|
70
|
+
onScroll: zt,
|
|
71
|
+
onScrolling: qt,
|
|
71
72
|
isColumnConfigurable: oe,
|
|
72
73
|
onAddColumnClick: ae,
|
|
73
74
|
emptyMessage: Xe,
|
|
@@ -75,61 +76,61 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
75
76
|
buttons: Ze,
|
|
76
77
|
onEditColumnClick: Ce,
|
|
77
78
|
onDeleteColumnClick: Qe,
|
|
78
|
-
onRowTooltipClick:
|
|
79
|
-
tooltiptext:
|
|
80
|
-
cascadingTableConfig:
|
|
81
|
-
originalsOnly:
|
|
82
|
-
disableOptionsForRowIndex:
|
|
79
|
+
onRowTooltipClick: Ut,
|
|
80
|
+
tooltiptext: Jt,
|
|
81
|
+
cascadingTableConfig: Gt,
|
|
82
|
+
originalsOnly: Xt,
|
|
83
|
+
disableOptionsForRowIndex: Yt,
|
|
83
84
|
tableHeightClass: ie = "h-[calc(100vh-220px)]",
|
|
84
|
-
getFullRowDataOnClick:
|
|
85
|
-
selectedRowId:
|
|
85
|
+
getFullRowDataOnClick: Zt,
|
|
86
|
+
selectedRowId: Ct = null,
|
|
86
87
|
onRowEdit: R,
|
|
87
88
|
onBulkRowEdit: j,
|
|
88
|
-
inlineEditColumns:
|
|
89
|
-
isResizable:
|
|
89
|
+
inlineEditColumns: Qt,
|
|
90
|
+
isResizable: Kt = !0,
|
|
90
91
|
paginationConfig: ce,
|
|
91
92
|
dndSortableUtils: ue,
|
|
92
93
|
multipleContexts: Ke,
|
|
93
94
|
withSortable: Ne,
|
|
94
|
-
withDraggable:
|
|
95
|
-
enableRootDrag:
|
|
96
|
-
pageSize:
|
|
97
|
-
onCascadingRowExpand:
|
|
95
|
+
withDraggable: el,
|
|
96
|
+
enableRootDrag: tl,
|
|
97
|
+
pageSize: ll = Cr,
|
|
98
|
+
onCascadingRowExpand: rl,
|
|
98
99
|
totalItems: et,
|
|
99
100
|
showRecordCount: De = !1,
|
|
100
|
-
getInnerRowData:
|
|
101
|
-
maxLevel:
|
|
102
|
-
expandedRows:
|
|
103
|
-
setExpandedRows:
|
|
104
|
-
showNewItem:
|
|
101
|
+
getInnerRowData: nl,
|
|
102
|
+
maxLevel: sl,
|
|
103
|
+
expandedRows: ol = {},
|
|
104
|
+
setExpandedRows: al,
|
|
105
|
+
showNewItem: il,
|
|
105
106
|
rawData: tt,
|
|
106
|
-
dragConfig:
|
|
107
|
-
isOverlayLoading:
|
|
108
|
-
style:
|
|
107
|
+
dragConfig: cl,
|
|
108
|
+
isOverlayLoading: ul,
|
|
109
|
+
style: dl = {},
|
|
109
110
|
floatingBarConfig: Ae,
|
|
110
|
-
rowWrapper:
|
|
111
|
-
rowLinkConfig:
|
|
112
|
-
isCellClickDisabled:
|
|
111
|
+
rowWrapper: hl,
|
|
112
|
+
rowLinkConfig: ml,
|
|
113
|
+
isCellClickDisabled: pl,
|
|
113
114
|
setHeaderOnParent: Ee,
|
|
114
|
-
optimizeTable:
|
|
115
|
-
multiSelectConfig:
|
|
116
|
-
headerContextOptions:
|
|
117
|
-
showHeaderContextOptions:
|
|
118
|
-
setShowHeaderContextOptions:
|
|
119
|
-
showDataTypeIcon:
|
|
115
|
+
optimizeTable: vl = !1,
|
|
116
|
+
multiSelectConfig: fl,
|
|
117
|
+
headerContextOptions: wl,
|
|
118
|
+
showHeaderContextOptions: Fl,
|
|
119
|
+
setShowHeaderContextOptions: Sl,
|
|
120
|
+
showDataTypeIcon: bl = !1,
|
|
120
121
|
rowAdditionalActions: de,
|
|
121
122
|
rowAdditionalActionsWidth: Oe,
|
|
122
123
|
setVisibleHeaders: _e,
|
|
123
|
-
cellEditing:
|
|
124
|
-
cellEditingValue:
|
|
125
|
-
allowInlineEdit:
|
|
126
|
-
onFieldOperationFlow:
|
|
124
|
+
cellEditing: xl = null,
|
|
125
|
+
cellEditingValue: Tl = null,
|
|
126
|
+
allowInlineEdit: yl = !1,
|
|
127
|
+
onFieldOperationFlow: Nl,
|
|
127
128
|
fieldOperationLoading: I = null,
|
|
128
129
|
onTableActionsReady: ke,
|
|
129
130
|
onPendingEditsChange: lt,
|
|
130
131
|
onCancelPendingEdits: P
|
|
131
132
|
}) => {
|
|
132
|
-
const a =
|
|
133
|
+
const a = Er(), Dl = sn(on()), Al = !!N?.search, rt = n?.columnFilters?.length > 0, q = Al || rt, El = !!V, D = a?.getTableView?.(g) ?? null, [x, U] = p(D || null), [Re, Me] = p(!1), [Le, nt] = p(!1), [Ol, st] = p(null), [w, ge] = p(E), ot = (m.length === 0 || !w.length) && !se, [at, he] = p(null), [_l, kl] = p(!1), [Rl, Ml] = p(null), [Ll, gl] = p(!1), [Vl, me] = p(null), [jl, pe] = p(null), [Il, it] = p({}), [J, Ve] = p(null), [Pl, ct] = p(!1), [O, Bl] = p(0), je = A(null), Ie = A(null), [ut, Wl] = p({ width: 0, height: 0 }), [Hl, B] = p(null), [_, dt] = p(null), [$l, ht] = p(null), [mt, pt] = p(null), [Pe, G] = p({}), Be = A(!1), ve = A(!1), We = A(x);
|
|
133
134
|
We.current = x;
|
|
134
135
|
const vt = A(a);
|
|
135
136
|
vt.current = a;
|
|
@@ -158,7 +159,7 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
158
159
|
y(() => {
|
|
159
160
|
ke && ke({ addPendingEdit: He, hasPendingEdits: bt });
|
|
160
161
|
}, [ke, He, bt]);
|
|
161
|
-
const
|
|
162
|
+
const zl = c((e, t) => {
|
|
162
163
|
k((l) => {
|
|
163
164
|
const r = { ...l };
|
|
164
165
|
if (r[e]) {
|
|
@@ -167,10 +168,10 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
167
168
|
}
|
|
168
169
|
return r;
|
|
169
170
|
});
|
|
170
|
-
}, []),
|
|
171
|
+
}, []), ql = c(
|
|
171
172
|
(e, t) => d[e]?.[t],
|
|
172
173
|
[d]
|
|
173
|
-
),
|
|
174
|
+
), Ul = c(
|
|
174
175
|
(e, t) => !!d[e]?.[t],
|
|
175
176
|
[d]
|
|
176
177
|
), xt = c(() => {
|
|
@@ -181,18 +182,18 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
181
182
|
a?.dispatchEvent?.("SCROLL_TO_TABLE_ROW", { rowIndex: l });
|
|
182
183
|
const r = w.findIndex((o) => o.key === t);
|
|
183
184
|
setTimeout(() => {
|
|
184
|
-
const o = document.querySelector(`[${
|
|
185
|
+
const o = document.querySelector(`[${Jr}="${e}"] [${Gr}="${t}"]`);
|
|
185
186
|
if (o)
|
|
186
187
|
o.scrollIntoView({ behavior: "smooth", block: "center", inline: "center" });
|
|
187
188
|
else if (r > 0) {
|
|
188
|
-
const i = document.querySelector(
|
|
189
|
+
const i = document.querySelector(Xr);
|
|
189
190
|
if (i) {
|
|
190
191
|
let F = 0;
|
|
191
192
|
for (let v = 0; v < r; v++) {
|
|
192
193
|
const T = w[v];
|
|
193
|
-
T?.sticky || (F += T?.width ||
|
|
194
|
+
T?.sticky || (F += T?.width || Yr);
|
|
194
195
|
}
|
|
195
|
-
F = Math.max(0, F -
|
|
196
|
+
F = Math.max(0, F - Zr), i.scrollTo({ left: F, behavior: "smooth" });
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
199
|
B({ rowId: e, columnKey: t });
|
|
@@ -234,7 +235,7 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
234
235
|
}), o.push({ ...T, __editedFields: L });
|
|
235
236
|
}
|
|
236
237
|
}), o.length > 0 && (j ? j(o) : R && R(null, null, null, null, null, { isBulk: !0, rows: o })), k({}), G({}), B(null);
|
|
237
|
-
}, [d, m, R, j, X, we, W, a]),
|
|
238
|
+
}, [d, m, R, j, X, we, W, a]), Jl = c(
|
|
238
239
|
(e) => {
|
|
239
240
|
if (I) return;
|
|
240
241
|
const t = d[e];
|
|
@@ -249,7 +250,7 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
249
250
|
}), B(null);
|
|
250
251
|
},
|
|
251
252
|
[I, P, d]
|
|
252
|
-
),
|
|
253
|
+
), Gl = c(
|
|
253
254
|
(e) => {
|
|
254
255
|
const t = d[e];
|
|
255
256
|
if (!t || Object.keys(t).length === 0) return;
|
|
@@ -283,7 +284,7 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
283
284
|
y(() => {
|
|
284
285
|
lt?.(H > 0, H);
|
|
285
286
|
}, [H, lt]);
|
|
286
|
-
const
|
|
287
|
+
const Xl = $(() => {
|
|
287
288
|
const e = [];
|
|
288
289
|
return Object.entries(d).forEach(([t, l]) => {
|
|
289
290
|
const r = m.findIndex((o) => o.id === t);
|
|
@@ -292,28 +293,28 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
292
293
|
e.push({ rowId: t, columnKey: o, fieldName: F?.Header || F?.display_name || o, value: i.value, originalValue: i.originalValue, meta: i.meta, originalMeta: i.originalMeta, rowIndex: r });
|
|
293
294
|
});
|
|
294
295
|
}), e;
|
|
295
|
-
}, [d, w, m]),
|
|
296
|
+
}, [d, w, m]), Yl = $(() => {
|
|
296
297
|
const e = /* @__PURE__ */ new Map();
|
|
297
298
|
return Object.entries(d).forEach(([t, l]) => {
|
|
298
299
|
const r = m.findIndex((o) => o.id === t);
|
|
299
300
|
e.set(t, { rowId: t, rowIndex: r, editCount: Object.keys(l).length });
|
|
300
301
|
}), Array.from(e.values()).sort((t, l) => t.rowIndex - l.rowIndex);
|
|
301
|
-
}, [d, m]),
|
|
302
|
+
}, [d, m]), Zl = c((e) => dt(e), []), Fe = c(() => dt(null), []), Cl = c(
|
|
302
303
|
(e, t) => {
|
|
303
304
|
ht({ value: e, reference: t }), _?.onSelected && _.onSelected(e, t), Fe();
|
|
304
305
|
},
|
|
305
306
|
[_, Fe]
|
|
306
|
-
),
|
|
307
|
+
), Ql = c(() => ht(null), []), Kl = c((e) => pt(e), []), yt = c(() => pt(null), []), er = c((e, t) => {
|
|
307
308
|
G((l) => ({ ...l, [e]: t }));
|
|
308
|
-
}, []),
|
|
309
|
+
}, []), tr = c(
|
|
309
310
|
(e) => Pe[e],
|
|
310
311
|
[Pe]
|
|
311
|
-
),
|
|
312
|
+
), lr = $(() => {
|
|
312
313
|
const e = ie.match(/h-\[(\d+px)\]/);
|
|
313
314
|
if (e) return e[1];
|
|
314
315
|
const t = ie.match(/h-\[(calc\(.+\))\]/);
|
|
315
316
|
if (t) return t[1].replace(/([+-])/g, " $1 ").replace(/\s+/g, " ");
|
|
316
|
-
}, [ie]),
|
|
317
|
+
}, [ie]), rr = {
|
|
317
318
|
isEmpty: ot,
|
|
318
319
|
isFilters: q,
|
|
319
320
|
isColumnConfigurable: oe,
|
|
@@ -321,45 +322,45 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
321
322
|
emptyMessage: Xe,
|
|
322
323
|
buttons: Ze,
|
|
323
324
|
noDataWidget: Ye
|
|
324
|
-
},
|
|
325
|
+
}, nr = a?.t?.(Bt) ?? Bt, Se = q ? "No Results Found" : Xe || "No Data Found", sr = typeof Se == "string" ? a?.t?.(Se) ?? Se : Se, Nt = { __isLoading: !0 }, or = new Array(1).fill(Nt), ar = new Array(ll).fill(Nt), Y = $(() => w.filter((e) => !!e?.visible), [w]), ir = Pr(
|
|
325
326
|
{
|
|
326
|
-
columns:
|
|
327
|
-
data: [...m, ...se ? m?.length ?
|
|
328
|
-
defaultColumn: { minWidth:
|
|
327
|
+
columns: vl ? Y : w,
|
|
328
|
+
data: [...m, ...se ? m?.length ? or : ar : []],
|
|
329
|
+
defaultColumn: { minWidth: en, width: Kr, maxWidth: Qr }
|
|
329
330
|
},
|
|
330
|
-
|
|
331
|
-
), { getTableProps: Dt, getTableBodyProps: At, headerGroups: be, prepareRow: Et, rows: M } =
|
|
331
|
+
Br
|
|
332
|
+
), { getTableProps: Dt, getTableBodyProps: At, headerGroups: be, prepareRow: Et, rows: M } = ir;
|
|
332
333
|
wt.current = be;
|
|
333
|
-
const
|
|
334
|
+
const cr = JSON.stringify(be[0]?.headers?.map((e) => e?.Header));
|
|
334
335
|
y(() => {
|
|
335
336
|
if (_e) {
|
|
336
337
|
const e = wt.current;
|
|
337
338
|
_e?.(e?.[0]?.headers?.map((t) => t?.Header) ?? []);
|
|
338
339
|
}
|
|
339
|
-
}, [
|
|
340
|
-
const { checkboxConfig: Ot } =
|
|
340
|
+
}, [cr, _e]);
|
|
341
|
+
const { checkboxConfig: Ot } = Ar({
|
|
341
342
|
rows: M,
|
|
342
343
|
checkedIds: V?.checkedIds,
|
|
343
344
|
isCheckAllDisabled: V?.isCheckAllDisabled,
|
|
344
345
|
selectionDisabledRowIds: V?.selectionDisabledRowIds,
|
|
345
346
|
rawData: tt,
|
|
346
|
-
onAllChecked:
|
|
347
|
+
onAllChecked: gl,
|
|
347
348
|
setCheckedIds: V?.setCheckedIds,
|
|
348
349
|
checkboxMetadata: V?.checkboxMetadata
|
|
349
|
-
}),
|
|
350
|
-
Vt(
|
|
351
|
-
Vt(
|
|
352
|
-
),
|
|
353
|
-
function
|
|
350
|
+
}), ur = _r(
|
|
351
|
+
Vt(kr, { activationConstraint: { distance: Pt } }),
|
|
352
|
+
Vt(Rr, { activationConstraint: { distance: Pt } })
|
|
353
|
+
), dr = { easing: nn, duration: rn };
|
|
354
|
+
function hr() {
|
|
354
355
|
return !Ke?.length || !Ne ? M : Ke.reduce((e, t) => (e[t] = M.filter((l) => l.original?.type === t), e), {});
|
|
355
356
|
}
|
|
356
|
-
St.current =
|
|
357
|
-
const
|
|
357
|
+
St.current = hr;
|
|
358
|
+
const mr = (e) => {
|
|
358
359
|
const { active: t } = e;
|
|
359
360
|
Ve(M.find((l) => l.original?.id === t?.id) ?? null);
|
|
360
|
-
},
|
|
361
|
+
}, pr = (e) => {
|
|
361
362
|
const { active: t, over: l } = e;
|
|
362
|
-
l && (ue?.checkDndDragEnd && ue.checkDndDragEnd(t, l,
|
|
363
|
+
l && (ue?.checkDndDragEnd && ue.checkDndDragEnd(t, l, Il, (r) => {
|
|
363
364
|
it(r), ct(!0), ue.onDragSuccess?.({
|
|
364
365
|
draggedId: t.id,
|
|
365
366
|
droppedId: l.id,
|
|
@@ -369,25 +370,25 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
369
370
|
cb: () => ct(!1)
|
|
370
371
|
});
|
|
371
372
|
}), Ve(null));
|
|
372
|
-
},
|
|
373
|
+
}, vr = () => Ve(null), fr = (e) => {
|
|
373
374
|
!h?.onSort && !n?.onFilter || he(at === e ? null : e);
|
|
374
|
-
},
|
|
375
|
-
|
|
375
|
+
}, wr = (e) => {
|
|
376
|
+
Ml(e), kl(!_l), he(null);
|
|
376
377
|
}, $e = c(() => {
|
|
377
378
|
h?.onRemoveSort ? h.onRemoveSort() : h?.onSort && h.onSort("", "");
|
|
378
379
|
}, [h]), xe = c((e = null) => {
|
|
379
380
|
st(e), Me((t) => e ? !0 : !t);
|
|
380
|
-
}, []), ze = c(() => nt((e) => !e), []),
|
|
381
|
+
}, []), ze = c(() => nt((e) => !e), []), Fr = () => {
|
|
381
382
|
const e = be[0]?.headers?.filter((t) => t?.visible !== !1);
|
|
382
383
|
for (let t = 0; t < e.length; t++)
|
|
383
384
|
if (e[t].sticky) return t - 1;
|
|
384
385
|
return e.length - 1;
|
|
385
|
-
},
|
|
386
|
+
}, Sr = c(
|
|
386
387
|
(e) => {
|
|
387
388
|
let t = 0;
|
|
388
389
|
for (let l = e + 1; l < Y.length; l++)
|
|
389
390
|
Y[l].visible !== !1 && (t += Y[l].width ?? 0);
|
|
390
|
-
return de && (t += Oe ||
|
|
391
|
+
return de && (t += Oe || tn), z && (t += Ge ? 0 : ln), t;
|
|
391
392
|
},
|
|
392
393
|
[Y, Oe, Ge, de, z]
|
|
393
394
|
), _t = () => {
|
|
@@ -412,7 +413,7 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
412
413
|
};
|
|
413
414
|
};
|
|
414
415
|
Ft.current = _t;
|
|
415
|
-
const
|
|
416
|
+
const br = (e, t) => {
|
|
416
417
|
const l = _t();
|
|
417
418
|
U({
|
|
418
419
|
...l,
|
|
@@ -432,12 +433,12 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
432
433
|
ve.current = !1;
|
|
433
434
|
}
|
|
434
435
|
}, [n?.columnFilters]);
|
|
435
|
-
const
|
|
436
|
+
const xr = c(
|
|
436
437
|
(e) => {
|
|
437
438
|
ve.current = !0, n?.onRemoveFilter?.(e);
|
|
438
439
|
},
|
|
439
440
|
[n?.onRemoveFilter]
|
|
440
|
-
),
|
|
441
|
+
), Tr = c(() => {
|
|
441
442
|
ve.current = !0, n?.onClearFilter?.();
|
|
442
443
|
}, [n?.onClearFilter]);
|
|
443
444
|
y(() => {
|
|
@@ -454,32 +455,32 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
454
455
|
}), Be.current = !0) : D?.filters && Be.current && JSON.stringify(D.filters) !== JSON.stringify(fe.current?.columnFilters) && fe.current?.onFilter?.(D.filters);
|
|
455
456
|
}, [D]), y(() => {
|
|
456
457
|
if (je.current) {
|
|
457
|
-
const e = new ResizeObserver((t) =>
|
|
458
|
+
const e = new ResizeObserver((t) => Bl(t[0].contentRect.width));
|
|
458
459
|
return e.observe(je.current), () => e.disconnect();
|
|
459
460
|
}
|
|
460
461
|
}, []), y(() => {
|
|
461
462
|
if (!Ie.current) return;
|
|
462
463
|
const e = new ResizeObserver((t) => {
|
|
463
464
|
const { width: l, height: r } = t[0].contentRect;
|
|
464
|
-
|
|
465
|
+
Wl({ width: l, height: r });
|
|
465
466
|
});
|
|
466
467
|
return e.observe(Ie.current), () => e.disconnect();
|
|
467
468
|
}, []);
|
|
468
469
|
const kt = /* @__PURE__ */ s(
|
|
469
|
-
|
|
470
|
+
qr,
|
|
470
471
|
{
|
|
471
|
-
isResizable:
|
|
472
|
+
isResizable: Kt,
|
|
472
473
|
headerGroups: be,
|
|
473
|
-
isCheckbox:
|
|
474
|
+
isCheckbox: El,
|
|
474
475
|
checkboxConfig: Ot,
|
|
475
|
-
isAllChecked:
|
|
476
|
+
isAllChecked: Ll,
|
|
476
477
|
showHeaderOptions: at ?? "",
|
|
477
478
|
setShowHeaderOptions: he,
|
|
478
|
-
isShowSortArrowAsc:
|
|
479
|
-
isShowSortArrowDesc:
|
|
479
|
+
isShowSortArrowAsc: Vl,
|
|
480
|
+
isShowSortArrowDesc: jl,
|
|
480
481
|
onSort: h?.onSort,
|
|
481
482
|
onFilter: n?.onFilter,
|
|
482
|
-
toggleHeaderOption:
|
|
483
|
+
toggleHeaderOption: fr,
|
|
483
484
|
setIsShowSortArrowAsc: me,
|
|
484
485
|
setIsShowSortArrowDesc: pe,
|
|
485
486
|
toggleDataFilterModal: xe,
|
|
@@ -490,11 +491,12 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
490
491
|
onDeleteColumnClick: Qe,
|
|
491
492
|
tableActions: Je || null,
|
|
492
493
|
isLoading: se,
|
|
494
|
+
headerLoading: $t,
|
|
493
495
|
rowAdditionalActions: de ?? null,
|
|
494
496
|
showPendingEditsColumn: H > 0
|
|
495
497
|
}
|
|
496
|
-
), Rt = /* @__PURE__ */ b(
|
|
497
|
-
|
|
498
|
+
), Rt = /* @__PURE__ */ b(Dr, { children: [
|
|
499
|
+
Pl || ul ? /* @__PURE__ */ s("div", { className: "absolute left-0 top-0 w-full h-full z-40 flex items-center justify-center bg-neutral-100 dark:bg-black-700" }) : null,
|
|
498
500
|
/* @__PURE__ */ s(
|
|
499
501
|
"div",
|
|
500
502
|
{
|
|
@@ -502,8 +504,8 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
502
504
|
className: "w-full text-sm text-left text-neutral-500 dark:text-neutral-200 h-full bg-white dark:bg-black-800",
|
|
503
505
|
children: ot ? /* @__PURE__ */ b("div", { className: "z-10", children: [
|
|
504
506
|
kt,
|
|
505
|
-
/* @__PURE__ */ s("div", { className: "absolute w-full", children: a?.renderEmpty ? a.renderEmpty(
|
|
506
|
-
Ye && !q ? /* @__PURE__ */ s(
|
|
507
|
+
/* @__PURE__ */ s("div", { className: "absolute w-full", children: a?.renderEmpty ? a.renderEmpty(rr) : /* @__PURE__ */ b("div", { className: "flex flex-col items-center justify-center w-full h-[12rem] text-neutral-900 dark:text-neutral-200 mt-8", children: [
|
|
508
|
+
Ye && !q ? /* @__PURE__ */ s(an, { widgetType: "TABLE" }) : /* @__PURE__ */ s(cn, { text: sr }),
|
|
507
509
|
oe && !q ? /* @__PURE__ */ s("div", { className: "my-4", children: /* @__PURE__ */ b(
|
|
508
510
|
gt,
|
|
509
511
|
{
|
|
@@ -512,29 +514,29 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
512
514
|
appearance: "ghost",
|
|
513
515
|
onClick: ae,
|
|
514
516
|
children: [
|
|
515
|
-
/* @__PURE__ */ s(
|
|
517
|
+
/* @__PURE__ */ s(un, { className: "text-white dark:text-white" }),
|
|
516
518
|
" ",
|
|
517
|
-
|
|
519
|
+
nr
|
|
518
520
|
]
|
|
519
521
|
}
|
|
520
522
|
) }) : null,
|
|
521
|
-
!q && Ze?.map((e, t) => /* @__PURE__ */ s(gt, { status: "secondary", id:
|
|
523
|
+
!q && Ze?.map((e, t) => /* @__PURE__ */ s(gt, { status: "secondary", id: hn(e.label, t), onClick: e.onClick, children: a?.t?.(e.label) ?? e.label }, `${e.label}-${t}`))
|
|
522
524
|
] }) })
|
|
523
525
|
] }) : /* @__PURE__ */ s(
|
|
524
|
-
|
|
526
|
+
dn,
|
|
525
527
|
{
|
|
526
528
|
style: { width: "100%", height: "100%" },
|
|
527
529
|
renderProp: ({ width: e, height: t }) => {
|
|
528
530
|
const l = e > 0 ? e : ut.width, r = t > 0 ? t : ut.height;
|
|
529
531
|
return l > 0 && r > 0 ? /* @__PURE__ */ s(
|
|
530
|
-
|
|
532
|
+
Wr,
|
|
531
533
|
{
|
|
532
534
|
getTableBodyProps: At,
|
|
533
535
|
rows: M,
|
|
534
536
|
prepareRow: Et,
|
|
535
537
|
isLoading: se,
|
|
536
|
-
onScroll:
|
|
537
|
-
onScrolling:
|
|
538
|
+
onScroll: zt,
|
|
539
|
+
onScrolling: qt,
|
|
538
540
|
columns: E,
|
|
539
541
|
width: l,
|
|
540
542
|
height: r,
|
|
@@ -547,10 +549,10 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
547
549
|
)
|
|
548
550
|
}
|
|
549
551
|
)
|
|
550
|
-
] }),
|
|
552
|
+
] }), yr = jt((e, t) => /* @__PURE__ */ b("div", { className: "h-full w-full", ...e, ref: t, children: [
|
|
551
553
|
kt,
|
|
552
554
|
/* @__PURE__ */ s("div", { className: "relative w-full h-full", children: e?.children })
|
|
553
|
-
] })),
|
|
555
|
+
] })), Nr = jt((e, t) => /* @__PURE__ */ s("div", { className: "h-full w-full", ...e, ref: t, children: /* @__PURE__ */ s("div", { className: "relative w-full h-full", children: e?.children }) })), qe = $(() => a?.renderTableHeader ? a.renderTableHeader({
|
|
554
556
|
tableKey: g,
|
|
555
557
|
search: N?.search,
|
|
556
558
|
handleSearch: N?.handleSearch,
|
|
@@ -622,12 +624,12 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
622
624
|
return y(() => {
|
|
623
625
|
Ee && Ee(qe);
|
|
624
626
|
}, [qe, Ee]), /* @__PURE__ */ b(
|
|
625
|
-
|
|
627
|
+
$r.Provider,
|
|
626
628
|
{
|
|
627
629
|
value: {
|
|
628
|
-
tableWrapper:
|
|
629
|
-
tableBodyWrapper:
|
|
630
|
-
lastNonStickyColumnIndex:
|
|
630
|
+
tableWrapper: yr,
|
|
631
|
+
tableBodyWrapper: Nr,
|
|
632
|
+
lastNonStickyColumnIndex: Fr,
|
|
631
633
|
search: N?.search,
|
|
632
634
|
columnFilters: n?.columnFilters,
|
|
633
635
|
onRowClick: Ht,
|
|
@@ -644,70 +646,70 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
644
646
|
onAddColumnClick: ae,
|
|
645
647
|
onEditColumnClick: Ce,
|
|
646
648
|
onDeleteColumnClick: Qe,
|
|
647
|
-
onRowTooltipClick:
|
|
648
|
-
tooltiptext:
|
|
649
|
-
cascadingTableConfig:
|
|
650
|
-
activeInlineEdit:
|
|
649
|
+
onRowTooltipClick: Ut,
|
|
650
|
+
tooltiptext: Jt,
|
|
651
|
+
cascadingTableConfig: Gt,
|
|
652
|
+
activeInlineEdit: Hl,
|
|
651
653
|
setActiveInlineEdit: B,
|
|
652
|
-
originalsOnly:
|
|
653
|
-
disableOptionsForRowIndex:
|
|
654
|
-
getFullRowDataOnClick:
|
|
655
|
-
selectedRowId:
|
|
656
|
-
getSumOfNextVisibleColumnWidth:
|
|
654
|
+
originalsOnly: Xt,
|
|
655
|
+
disableOptionsForRowIndex: Yt,
|
|
656
|
+
getFullRowDataOnClick: Zt,
|
|
657
|
+
selectedRowId: Ct,
|
|
658
|
+
getSumOfNextVisibleColumnWidth: Sr,
|
|
657
659
|
onRowEdit: R,
|
|
658
|
-
inlineEditColumns:
|
|
660
|
+
inlineEditColumns: Qt,
|
|
659
661
|
tableActions: Je,
|
|
660
662
|
dndSortableUtils: ue,
|
|
661
663
|
withSortable: Ne,
|
|
662
|
-
withDraggable:
|
|
663
|
-
onCascadingRowExpand:
|
|
664
|
-
getInnerRowData:
|
|
664
|
+
withDraggable: el,
|
|
665
|
+
onCascadingRowExpand: rl,
|
|
666
|
+
getInnerRowData: nl,
|
|
665
667
|
tableHeaders: w,
|
|
666
|
-
maxLevel:
|
|
667
|
-
expandedRows:
|
|
668
|
-
setExpandedRows:
|
|
669
|
-
showNewItem:
|
|
668
|
+
maxLevel: sl,
|
|
669
|
+
expandedRows: ol,
|
|
670
|
+
setExpandedRows: al,
|
|
671
|
+
showNewItem: il,
|
|
670
672
|
rawData: tt,
|
|
671
|
-
dragConfig:
|
|
672
|
-
rowWrapper:
|
|
673
|
-
rowLinkConfig:
|
|
674
|
-
isCellClickDisabled:
|
|
673
|
+
dragConfig: cl,
|
|
674
|
+
rowWrapper: hl,
|
|
675
|
+
rowLinkConfig: ml,
|
|
676
|
+
isCellClickDisabled: pl,
|
|
675
677
|
asyncRowOptionsFilter: n?.asyncRowOptionsFilter,
|
|
676
|
-
handleUpdateColumnWidth:
|
|
677
|
-
multiSelectConfig:
|
|
678
|
-
headerContextOptions:
|
|
679
|
-
showHeaderContextOptions:
|
|
680
|
-
setShowHeaderContextOptions:
|
|
678
|
+
handleUpdateColumnWidth: br,
|
|
679
|
+
multiSelectConfig: fl,
|
|
680
|
+
headerContextOptions: wl,
|
|
681
|
+
showHeaderContextOptions: Fl,
|
|
682
|
+
setShowHeaderContextOptions: Sl,
|
|
681
683
|
headerDivWidth: O,
|
|
682
|
-
showDataTypeIcon:
|
|
684
|
+
showDataTypeIcon: bl,
|
|
683
685
|
rowAdditionalActions: de,
|
|
684
686
|
hoverConfig: Wt,
|
|
685
687
|
rowAdditionalActionsWidth: Oe,
|
|
686
|
-
cellEditing:
|
|
687
|
-
cellEditingValue:
|
|
688
|
-
openMasterDataModal:
|
|
688
|
+
cellEditing: xl,
|
|
689
|
+
cellEditingValue: Tl,
|
|
690
|
+
openMasterDataModal: Zl,
|
|
689
691
|
closeMasterDataModal: Fe,
|
|
690
|
-
selectedMasterData:
|
|
691
|
-
clearSelectedMasterData:
|
|
692
|
-
allowInlineEdit:
|
|
693
|
-
openCurrencyDropdown:
|
|
692
|
+
selectedMasterData: $l,
|
|
693
|
+
clearSelectedMasterData: Ql,
|
|
694
|
+
allowInlineEdit: yl,
|
|
695
|
+
openCurrencyDropdown: Kl,
|
|
694
696
|
closeCurrencyDropdown: yt,
|
|
695
697
|
currencyDropdownConfig: mt,
|
|
696
698
|
selectedCurrenciesMap: Pe,
|
|
697
|
-
setCurrencyForCell:
|
|
698
|
-
getCurrencyForCell:
|
|
699
|
+
setCurrencyForCell: er,
|
|
700
|
+
getCurrencyForCell: tr,
|
|
699
701
|
pendingEdits: d,
|
|
700
702
|
addPendingEdit: He,
|
|
701
|
-
removePendingEdit:
|
|
702
|
-
getPendingEdit:
|
|
703
|
-
hasPendingEdit:
|
|
703
|
+
removePendingEdit: zl,
|
|
704
|
+
getPendingEdit: ql,
|
|
705
|
+
hasPendingEdit: Ul,
|
|
704
706
|
clearAllPendingEdits: xt,
|
|
705
707
|
saveAllPendingEdits: Tt,
|
|
706
|
-
clearRowPendingEdits:
|
|
707
|
-
saveRowPendingEdits:
|
|
708
|
+
clearRowPendingEdits: Jl,
|
|
709
|
+
saveRowPendingEdits: Gl,
|
|
708
710
|
pendingEditsCount: H,
|
|
709
711
|
scrollToCell: W,
|
|
710
|
-
onFieldOperationFlow:
|
|
712
|
+
onFieldOperationFlow: Nl,
|
|
711
713
|
fieldOperationLoading: I,
|
|
712
714
|
validateAllPendingEdits: X
|
|
713
715
|
},
|
|
@@ -780,8 +782,8 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
780
782
|
Re ? /* @__PURE__ */ b("div", { className: "flex gap-2 items-center", children: [
|
|
781
783
|
(rt || n?.onResetFilter) && a?.renderActiveFilters && a.renderActiveFilters({
|
|
782
784
|
filters: n?.columnFilters,
|
|
783
|
-
onRemoveFilter:
|
|
784
|
-
onClearFilter:
|
|
785
|
+
onRemoveFilter: xr,
|
|
786
|
+
onClearFilter: Tr,
|
|
785
787
|
onResetFilter: n?.onResetFilter,
|
|
786
788
|
onFilter: n?.onFilter,
|
|
787
789
|
tableHeaders: w,
|
|
@@ -800,12 +802,12 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
800
802
|
}),
|
|
801
803
|
a?.renderFilterButtons && a.renderFilterButtons({
|
|
802
804
|
onClearFilter: n?.onClearFilter,
|
|
803
|
-
onClose:
|
|
805
|
+
onClose: wr,
|
|
804
806
|
modelName: C,
|
|
805
807
|
enableMasterDataEnumSuggestions: Q,
|
|
806
|
-
defaultFilterColumn:
|
|
808
|
+
defaultFilterColumn: Ol,
|
|
807
809
|
resetDefaultFilterColumn: () => st(null),
|
|
808
|
-
column:
|
|
810
|
+
column: Rl,
|
|
809
811
|
onFilter: n?.onFilter,
|
|
810
812
|
tableHeaders: w,
|
|
811
813
|
columnFilters: n?.columnFilters,
|
|
@@ -820,7 +822,7 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
820
822
|
})
|
|
821
823
|
] }) : null
|
|
822
824
|
] }) }) : null,
|
|
823
|
-
Ae && Object.keys(Ae).length ? /* @__PURE__ */ s(
|
|
825
|
+
Ae && Object.keys(Ae).length ? /* @__PURE__ */ s(Or, { ...Ae }) : null,
|
|
824
826
|
!ye && De ? /* @__PURE__ */ b("div", { className: "flex items-center gap-1.5 mb-2", children: [
|
|
825
827
|
/* @__PURE__ */ b(
|
|
826
828
|
"svg",
|
|
@@ -853,15 +855,15 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
853
855
|
ref: Ie,
|
|
854
856
|
className: `w-full ${ce ? "h-auto" : ie} rounded-lg relative border overflow-x-hidden`,
|
|
855
857
|
style: {
|
|
856
|
-
...ce ? { height: m?.length > 0 ? `${(m?.length + 1) *
|
|
857
|
-
...
|
|
858
|
+
...ce ? { height: m?.length > 0 ? `${(m?.length + 1) * Dl + 4}px` : "350px" } : { height: lr },
|
|
859
|
+
...dl
|
|
858
860
|
},
|
|
859
|
-
children:
|
|
861
|
+
children: tl ? Rt : /* @__PURE__ */ b(Mr, { sensors: ur, onDragEnd: pr, onDragStart: mr, onDragCancel: vr, collisionDetection: Lr, children: [
|
|
860
862
|
Rt,
|
|
861
|
-
J ?
|
|
862
|
-
/* @__PURE__ */ s(
|
|
863
|
+
J ? Ir(
|
|
864
|
+
/* @__PURE__ */ s(gr, { adjustScale: !0, dropAnimation: dr, children: /* @__PURE__ */ s("table", { ...Dt(), className: "w-full text-sm text-left text-neutral-500 dark:text-neutral-200 bg-white dark:bg-black-700 table-auto border-collapse", children: /* @__PURE__ */ b("tbody", { ...At(), className: "bg-transparent divide-y divide-neutral-200", children: [
|
|
863
865
|
void Et(J),
|
|
864
|
-
/* @__PURE__ */ s(
|
|
866
|
+
/* @__PURE__ */ s(Hr, { row: J, index: M?.findIndex((e) => e.id === J.original.id) }, J.original.id)
|
|
865
867
|
] }) }) }),
|
|
866
868
|
document.getElementById("full-screen-container") || document.body
|
|
867
869
|
) : null
|
|
@@ -871,7 +873,7 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
871
873
|
ce && a?.renderPagination ? a.renderPagination(ce) : null,
|
|
872
874
|
a?.renderMasterDataModal && a.renderMasterDataModal({
|
|
873
875
|
isVisible: !!_,
|
|
874
|
-
onSelected:
|
|
876
|
+
onSelected: Cl,
|
|
875
877
|
onClose: Fe,
|
|
876
878
|
masterDataColumnName: _?.masterDataColumnName,
|
|
877
879
|
masterDataFilters: _?.masterDataFilters,
|
|
@@ -879,13 +881,13 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
879
881
|
masterDataId: _?.masterDataName,
|
|
880
882
|
showFilters: !0
|
|
881
883
|
}),
|
|
882
|
-
/* @__PURE__ */ s(
|
|
884
|
+
/* @__PURE__ */ s(zr, { config: mt, onClose: yt }),
|
|
883
885
|
/* @__PURE__ */ s(
|
|
884
|
-
|
|
886
|
+
Ur,
|
|
885
887
|
{
|
|
886
888
|
pendingEditsCount: H,
|
|
887
|
-
pendingEditsList:
|
|
888
|
-
rowsWithPendingEdits:
|
|
889
|
+
pendingEditsList: Xl,
|
|
890
|
+
rowsWithPendingEdits: Yl,
|
|
889
891
|
fieldOperationLoading: I,
|
|
890
892
|
onClearAll: xt,
|
|
891
893
|
onSaveAll: Tt,
|
|
@@ -898,6 +900,6 @@ const un = Vr, Bt = "Create Column", dn = (g, N) => `button-admin-${g.toLowerCas
|
|
|
898
900
|
}
|
|
899
901
|
);
|
|
900
902
|
export {
|
|
901
|
-
|
|
903
|
+
In as InfiniteTable
|
|
902
904
|
};
|
|
903
905
|
//# sourceMappingURL=index.es.js.map
|