@lax-wp/design-system 0.14.36 → 0.14.37

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.
Files changed (20) hide show
  1. package/dist/components/data-display/infinite-table/CellContextMenuPortal.cjs.js +1 -1
  2. package/dist/components/data-display/infinite-table/CellContextMenuPortal.cjs.js.map +1 -1
  3. package/dist/components/data-display/infinite-table/CellContextMenuPortal.d.ts +16 -1
  4. package/dist/components/data-display/infinite-table/CellContextMenuPortal.es.js +176 -124
  5. package/dist/components/data-display/infinite-table/CellContextMenuPortal.es.js.map +1 -1
  6. package/dist/components/data-display/infinite-table/body/cell/DataCell.cjs.js +1 -1
  7. package/dist/components/data-display/infinite-table/body/cell/DataCell.cjs.js.map +1 -1
  8. package/dist/components/data-display/infinite-table/body/cell/DataCell.es.js +128 -129
  9. package/dist/components/data-display/infinite-table/body/cell/DataCell.es.js.map +1 -1
  10. package/dist/components/data-display/infinite-table/copy-text.cjs.js +3 -0
  11. package/dist/components/data-display/infinite-table/copy-text.cjs.js.map +1 -0
  12. package/dist/components/data-display/infinite-table/copy-text.d.ts +13 -0
  13. package/dist/components/data-display/infinite-table/copy-text.es.js +19 -0
  14. package/dist/components/data-display/infinite-table/copy-text.es.js.map +1 -0
  15. package/dist/components/data-display/infinite-table/index.cjs.js +1 -1
  16. package/dist/components/data-display/infinite-table/index.cjs.js.map +1 -1
  17. package/dist/components/data-display/infinite-table/index.es.js +260 -255
  18. package/dist/components/data-display/infinite-table/index.es.js.map +1 -1
  19. package/dist/components/data-display/infinite-table/types.d.ts +5 -1
  20. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import { jsx as s, jsxs as b, Fragment as Er } from "react/jsx-runtime";
2
2
  import { useCheckbox as Rr } from "../../../hooks/useCheckbox.es.js";
3
- import { useTableConfig as _r } from "../../../providers/design-system-provider/hooks.es.js";
4
- import { canEditTableView as kr, mergeViewColumnsWithTableColumns as Lt } from "../../../utils/table.es.js";
3
+ import { useTableConfig as kr } from "../../../providers/design-system-provider/hooks.es.js";
4
+ import { canEditTableView as _r, mergeViewColumnsWithTableColumns as Lt } from "../../../utils/table.es.js";
5
5
  import gt from "../../button/Button.es.js";
6
6
  import { FloatingBar as Mr } from "../../floating-bar/FloatingBar.es.js";
7
7
  import { Typography as be } from "../typography/Typography.es.js";
8
8
  import { useSensors as Ir, useSensor as Vt, MouseSensor as Lr, TouchSensor as gr, DndContext as Vr, closestCorners as jr, DragOverlay as Br } from "@dnd-kit/core";
9
- import Pr, { useState as h, useRef as O, useCallback as i, useEffect as T, useMemo as z, forwardRef as jt } from "react";
9
+ import Pr, { useState as m, useRef as O, useCallback as i, useEffect as T, useMemo as C, forwardRef as jt } from "react";
10
10
  import { AutoSizer as Wr } from "react-virtualized-auto-sizer";
11
11
  import { createPortal as Hr } from "react-dom";
12
12
  import { useTable as $r, useResizeColumns as zr } from "react-table";
@@ -18,7 +18,7 @@ import { CellContextMenuPortal as Jr } from "./CellContextMenuPortal.es.js";
18
18
  import { CurrencyDropdownPortal as Gr } from "./CurrencyDropdownPortal.es.js";
19
19
  import { Head as Xr } from "./head/index.es.js";
20
20
  import { PendingEditsFloatingBar as Yr } from "./PendingEditsFloatingBar.es.js";
21
- import { DATA_ROW_ID_ATTR as Zr, DATA_COLUMN_KEY_ATTR as Qr, OS_VIEWPORT_SELECTOR as Kr, SCROLL_TO_CELL_COLUMN_WIDTH_FALLBACK as en, SCROLL_TO_CELL_LEFT_OFFSET as tn, DEFAULT_PAGE_SIZE as ln, DEFAULT_COLUMN_MAX_WIDTH as rn, DEFAULT_COLUMN_WIDTH as nn, DEFAULT_COLUMN_MIN_WIDTH as sn, DND_ACTIVATION_DISTANCE as Pt, ROW_ADDITIONAL_ACTIONS_DEFAULT_WIDTH as on, ROW_OPTIONS_COLUMN_WIDTH as an, TOOLBAR_FIRST_BREAKPOINT as Z, TOOLBAR_SECOND_BREAKPOINT as ze, DROP_ANIMATION_DURATION as cn, DROP_ANIMATION_EASING as dn } from "./constants.es.js";
21
+ import { DATA_ROW_ID_ATTR as Zr, DATA_COLUMN_KEY_ATTR as Qr, OS_VIEWPORT_SELECTOR as Kr, SCROLL_TO_CELL_COLUMN_WIDTH_FALLBACK as en, SCROLL_TO_CELL_LEFT_OFFSET as tn, DEFAULT_PAGE_SIZE as ln, DEFAULT_COLUMN_MAX_WIDTH as rn, DEFAULT_COLUMN_WIDTH as nn, DEFAULT_COLUMN_MIN_WIDTH as sn, DND_ACTIVATION_DISTANCE as Pt, ROW_ADDITIONAL_ACTIONS_DEFAULT_WIDTH as on, ROW_OPTIONS_COLUMN_WIDTH as an, TOOLBAR_FIRST_BREAKPOINT as Z, TOOLBAR_SECOND_BREAKPOINT as Ce, DROP_ANIMATION_DURATION as cn, DROP_ANIMATION_EASING as dn } from "./constants.es.js";
22
22
  import { getRowSlotHeight as un, useRowHeight as hn } from "./useRowHeight.es.js";
23
23
  import { NoDataFoundWidgets as mn } from "../empty-state/NoDataFoundWidgets.es.js";
24
24
  import { NoDataFound as pn } from "../empty-state/NoDataFound.es.js";
@@ -39,7 +39,7 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
39
39
  onResetFilter: () => Promise.resolve({}),
40
40
  asyncRowOptionsFilter: () => Promise.resolve({})
41
41
  },
42
- sortConfig: m = {
42
+ sortConfig: p = {
43
43
  onSort: () => null,
44
44
  columnSort: { field: "", order: "" },
45
45
  onRemoveSort: () => null
@@ -64,24 +64,24 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
64
64
  agreementId: ee,
65
65
  enumSuggestionsExtraParams: te,
66
66
  enumSuggestionsData: le,
67
- data: p = [],
67
+ data: u = [],
68
68
  onRowClick: $t,
69
69
  showHeader: xe,
70
70
  showSubHeader: zt = !0,
71
- tableActions: Ce,
72
- rowOptions: C,
73
- hideRowOptionWidth: Ue,
74
- checkboxUtilities: V,
71
+ tableActions: Ue,
72
+ rowOptions: V,
73
+ hideRowOptionWidth: qe,
74
+ checkboxUtilities: j,
75
75
  isLoading: re = !1,
76
76
  onScroll: Ct,
77
77
  onScrolling: Ut,
78
78
  isColumnConfigurable: ne,
79
79
  onAddColumnClick: se,
80
- emptyMessage: qe,
81
- noDataWidget: Je,
82
- buttons: Ge,
83
- onEditColumnClick: Xe,
84
- onDeleteColumnClick: Ye,
80
+ emptyMessage: Je,
81
+ noDataWidget: Ge,
82
+ buttons: Xe,
83
+ onEditColumnClick: Ye,
84
+ onDeleteColumnClick: Ze,
85
85
  onRowTooltipClick: qt,
86
86
  tooltiptext: Jt,
87
87
  cascadingTableConfig: Gt,
@@ -90,26 +90,26 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
90
90
  tableHeightClass: oe = "h-[calc(100vh-220px)]",
91
91
  getFullRowDataOnClick: Zt,
92
92
  selectedRowId: Qt = null,
93
- onRowEdit: k,
94
- onBulkRowEdit: j,
93
+ onRowEdit: _,
94
+ onBulkRowEdit: B,
95
95
  inlineEditColumns: Kt,
96
96
  isResizable: el = !0,
97
97
  paginationConfig: ae,
98
98
  dndSortableUtils: ie,
99
- multipleContexts: Ze,
99
+ multipleContexts: Qe,
100
100
  withSortable: ye,
101
101
  withDraggable: tl,
102
102
  enableRootDrag: ll,
103
103
  pageSize: rl = ln,
104
104
  onCascadingRowExpand: nl,
105
- totalItems: Qe,
105
+ totalItems: Ke,
106
106
  showRecordCount: Te = !1,
107
107
  getInnerRowData: sl,
108
108
  maxLevel: ol,
109
109
  expandedRows: al = {},
110
110
  setExpandedRows: il,
111
111
  showNewItem: cl,
112
- rawData: Ke,
112
+ rawData: et,
113
113
  dragConfig: dl,
114
114
  isOverlayLoading: ul,
115
115
  style: hl = {},
@@ -120,7 +120,7 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
120
120
  setHeaderOnParent: Ne,
121
121
  optimizeTable: vl = !1,
122
122
  multiSelectConfig: wl,
123
- cellContextMenuConfig: et,
123
+ cellContextMenuConfig: tt,
124
124
  headerContextOptions: Fl,
125
125
  showHeaderContextOptions: Sl,
126
126
  setShowHeaderContextOptions: bl,
@@ -132,40 +132,40 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
132
132
  cellEditingValue: Tl = null,
133
133
  allowInlineEdit: Dl = !1,
134
134
  onFieldOperationFlow: Nl,
135
- fieldOperationLoading: B = null,
135
+ fieldOperationLoading: P = null,
136
136
  onTableActionsReady: Ee,
137
- onPendingEditsChange: tt,
138
- onCancelPendingEdits: P
137
+ onPendingEditsChange: lt,
138
+ onCancelPendingEdits: W
139
139
  }) => {
140
- const a = _r(), Ol = un(hn()), Al = !!D?.search, lt = n?.columnFilters?.length > 0, U = Al || lt, El = !!V, N = a?.getTableView?.(g) ?? null, [x, q] = h(N || null), M = !kr(
140
+ const a = kr(), Ol = un(hn()), Al = !!D?.search, rt = n?.columnFilters?.length > 0, U = Al || rt, El = !!j, N = a?.getTableView?.(g) ?? null, [x, q] = m(N || null), M = !_r(
141
141
  x,
142
142
  a?.getUserId?.()
143
- ), [Re, _e] = h(!1), [ke, rt] = h(!1), [Rl, nt] = h(null), [w, Me] = h(A), st = (p.length === 0 || !w.length) && !re, [ot, de] = h(
143
+ ), [Re, ke] = m(!1), [_e, nt] = m(!1), [Rl, st] = m(null), [v, Me] = m(A), ot = (u.length === 0 || !v.length) && !re, [at, de] = m(
144
144
  null
145
- ), [_l, kl] = h(!1), [Ml, Il] = h(null), [Ll, gl] = h(!1), [Vl, ue] = h(
145
+ ), [kl, _l] = m(!1), [Ml, Il] = m(null), [Ll, gl] = m(!1), [Vl, ue] = m(
146
146
  null
147
- ), [jl, he] = h(null), [Bl, at] = h({}), [J, Ie] = h(
147
+ ), [jl, he] = m(null), [Bl, it] = m({}), [J, Ie] = m(
148
148
  null
149
- ), [Pl, it] = h(!1), [E, Wl] = h(0), Le = O(null), ge = O(null), [ct, Hl] = h({
149
+ ), [Pl, ct] = m(!1), [E, Wl] = m(0), Le = O(null), ge = O(null), [dt, Hl] = m({
150
150
  width: 0,
151
151
  height: 0
152
- }), [$l, W] = h(null), [R, dt] = h(null), [zl, ut] = h(null), [ht, mt] = h(null), [Cl, pt] = h(null), [Ve, G] = h({}), je = O(!1), me = O(!1), Be = O(x);
152
+ }), [$l, H] = m(null), [R, ut] = m(null), [zl, ht] = m(null), [mt, pt] = m(null), [Cl, ft] = m(null), [Ve, G] = m({}), je = O(!1), me = O(!1), Be = O(x);
153
153
  Be.current = x;
154
- const ft = O(a);
155
- ft.current = a;
156
- const vt = O(A);
157
- vt.current = A;
154
+ const vt = O(a);
155
+ vt.current = a;
156
+ const wt = O(A);
157
+ wt.current = A;
158
158
  const pe = O(n);
159
159
  pe.current = n;
160
- const wt = O(null), Ft = O(
160
+ const Ft = O(null), St = O(
161
161
  () => ({})
162
- ), St = O(() => ({})), [u, _] = h({}), Pe = i(
162
+ ), bt = O(() => ({})), [h, k] = m({}), Pe = i(
163
163
  (e, t, l) => {
164
- _((r) => {
164
+ k((r) => {
165
165
  const o = r[e]?.[t];
166
166
  let d = l.validationError;
167
167
  if (d === void 0) {
168
- const F = w.find((f) => f.key === t);
168
+ const F = v.find((f) => f.key === t);
169
169
  if (F) {
170
170
  const f = Bt(
171
171
  l.value,
@@ -187,19 +187,19 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
187
187
  };
188
188
  });
189
189
  },
190
- [w]
191
- ), bt = i(() => Object.values(u).some(
190
+ [v]
191
+ ), xt = i(() => Object.values(h).some(
192
192
  (e) => Object.keys(e).length > 0
193
- ), [u]);
193
+ ), [h]);
194
194
  T(() => {
195
195
  Ee && Ee({
196
196
  addPendingEdit: Pe,
197
- hasPendingEdits: bt
197
+ hasPendingEdits: xt
198
198
  });
199
- }, [Ee, Pe, bt]);
199
+ }, [Ee, Pe, xt]);
200
200
  const Ul = i(
201
201
  (e, t) => {
202
- _((l) => {
202
+ k((l) => {
203
203
  const r = { ...l };
204
204
  if (r[e]) {
205
205
  const { [t]: o, ...d } = r[e];
@@ -210,18 +210,18 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
210
210
  },
211
211
  []
212
212
  ), ql = i(
213
- (e, t) => u[e]?.[t],
214
- [u]
213
+ (e, t) => h[e]?.[t],
214
+ [h]
215
215
  ), Jl = i(
216
- (e, t) => !!u[e]?.[t],
217
- [u]
218
- ), xt = i(() => {
219
- B || (P && Object.keys(u).length > 0 && P(u), _({}), G({}), W(null));
220
- }, [B, P, u]), H = i(
216
+ (e, t) => !!h[e]?.[t],
217
+ [h]
218
+ ), yt = i(() => {
219
+ P || (W && Object.keys(h).length > 0 && W(h), k({}), G({}), H(null));
220
+ }, [P, W, h]), $ = i(
221
221
  (e, t, l) => {
222
222
  setTimeout(() => {
223
223
  a?.dispatchEvent?.("SCROLL_TO_TABLE_ROW", { rowIndex: l });
224
- const r = w.findIndex(
224
+ const r = v.findIndex(
225
225
  (o) => o.key === t
226
226
  );
227
227
  setTimeout(() => {
@@ -239,7 +239,7 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
239
239
  if (d) {
240
240
  let F = 0;
241
241
  for (let f = 0; f < r; f++) {
242
- const y = w[f];
242
+ const y = v[f];
243
243
  y?.sticky || (F += y?.width || en);
244
244
  }
245
245
  F = Math.max(
@@ -251,78 +251,78 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
251
251
  });
252
252
  }
253
253
  }
254
- W({ rowId: e, columnKey: t });
254
+ H({ rowId: e, columnKey: t });
255
255
  }, 350);
256
256
  }, 100);
257
257
  },
258
- [w, a]
258
+ [v, a]
259
259
  ), X = i(
260
260
  (e) => {
261
261
  let t = !1, l = null;
262
262
  const r = {}, o = /* @__PURE__ */ new Set();
263
263
  return Object.entries(e).forEach(([d, F]) => {
264
264
  r[d] = {}, Object.entries(F).forEach(([f, y]) => {
265
- const L = w.find((S) => S.key === f), v = Bt(
265
+ const L = v.find((S) => S.key === f), w = Bt(
266
266
  y.value,
267
267
  L
268
268
  );
269
- v.isValid ? r[d][f] = {
269
+ w.isValid ? r[d][f] = {
270
270
  ...y,
271
271
  validationError: null
272
- } : (t = !0, v.error && o.add(v.error), l || (l = { rowId: d, columnKey: f }), r[d][f] = {
272
+ } : (t = !0, w.error && o.add(w.error), l || (l = { rowId: d, columnKey: f }), r[d][f] = {
273
273
  ...y,
274
- validationError: v.error
274
+ validationError: w.error
275
275
  });
276
276
  });
277
277
  }), { hasErrors: t, updatedEdits: r, firstError: l, errorTypes: o };
278
278
  },
279
- [w]
279
+ [v]
280
280
  ), fe = i((e) => {
281
281
  const t = e.has("Field required"), l = e.size > (t ? 1 : 0);
282
282
  return t && l ? "Missing required field(s) and invalid format detected. Please review highlighted field(s)." : t ? "Missing required field(s). Please review highlighted field(s)." : "Invalid field value(s). Please review highlighted field(s).";
283
- }, []), yt = i(() => {
284
- const { hasErrors: e, updatedEdits: t, firstError: l, errorTypes: r } = X(u);
283
+ }, []), Tt = i(() => {
284
+ const { hasErrors: e, updatedEdits: t, firstError: l, errorTypes: r } = X(h);
285
285
  if (e) {
286
- if (_(t), a?.showNotification?.(
286
+ if (k(t), a?.showNotification?.(
287
287
  "error",
288
288
  fe(r)
289
289
  ), l) {
290
- const d = p.findIndex(
290
+ const d = u.findIndex(
291
291
  (F) => F.id === l.rowId
292
292
  );
293
- H(l.rowId, l.columnKey, d);
293
+ $(l.rowId, l.columnKey, d);
294
294
  }
295
295
  return;
296
296
  }
297
297
  const o = [];
298
- Object.entries(u).forEach(([d, F]) => {
299
- const f = p.find(
298
+ Object.entries(h).forEach(([d, F]) => {
299
+ const f = u.find(
300
300
  (y) => y.id === d
301
301
  );
302
302
  if (f) {
303
303
  const y = { ...f }, L = {};
304
- Object.entries(F).forEach(([v, S]) => {
305
- y[v] = S.value, L[v] = { value: S.value, meta: S.meta };
304
+ Object.entries(F).forEach(([w, S]) => {
305
+ y[w] = S.value, L[w] = { value: S.value, meta: S.meta };
306
306
  }), o.push({ ...y, __editedFields: L });
307
307
  }
308
- }), o.length > 0 && (j ? j(o) : k && k(null, null, null, null, null, {
308
+ }), o.length > 0 && (B ? B(o) : _ && _(null, null, null, null, null, {
309
309
  isBulk: !0,
310
310
  rows: o
311
- })), _({}), G({}), W(null);
311
+ })), k({}), G({}), H(null);
312
312
  }, [
313
+ h,
313
314
  u,
314
- p,
315
- k,
316
- j,
315
+ _,
316
+ B,
317
317
  X,
318
318
  fe,
319
- H,
319
+ $,
320
320
  a
321
321
  ]), Gl = i(
322
322
  (e) => {
323
- if (B) return;
324
- const t = u[e];
325
- t && P && P({ [e]: t }), _((l) => {
323
+ if (P) return;
324
+ const t = h[e];
325
+ t && W && W({ [e]: t }), k((l) => {
326
326
  const r = { ...l };
327
327
  return delete r[e], r;
328
328
  }), G((l) => {
@@ -330,76 +330,76 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
330
330
  return Object.keys(r).forEach((o) => {
331
331
  o.startsWith(`${e}-`) && delete r[o];
332
332
  }), r;
333
- }), W(null);
333
+ }), H(null);
334
334
  },
335
- [B, P, u]
335
+ [P, W, h]
336
336
  ), Xl = i(
337
337
  (e) => {
338
- const t = u[e];
338
+ const t = h[e];
339
339
  if (!t || Object.keys(t).length === 0) return;
340
340
  const { hasErrors: l, updatedEdits: r, firstError: o, errorTypes: d } = X({ [e]: t });
341
341
  if (l) {
342
- if (_((v) => ({
343
- ...v,
342
+ if (k((w) => ({
343
+ ...w,
344
344
  [e]: r[e]
345
345
  })), a?.showNotification?.(
346
346
  "error",
347
347
  fe(d)
348
348
  ), o) {
349
- const v = p.findIndex(
349
+ const w = u.findIndex(
350
350
  (S) => S.id === o.rowId
351
351
  );
352
- H(o.rowId, o.columnKey, v);
352
+ $(o.rowId, o.columnKey, w);
353
353
  }
354
354
  return;
355
355
  }
356
- const F = p.find(
357
- (v) => v.id === e
356
+ const F = u.find(
357
+ (w) => w.id === e
358
358
  );
359
359
  if (!F) return;
360
360
  const f = { ...F }, y = {};
361
- Object.entries(t).forEach(([v, S]) => {
362
- f[v] = S.value, y[v] = { value: S.value, meta: S.meta };
361
+ Object.entries(t).forEach(([w, S]) => {
362
+ f[w] = S.value, y[w] = { value: S.value, meta: S.meta };
363
363
  });
364
364
  const L = { ...f, __editedFields: y };
365
- j ? j([L]) : k && k(null, null, null, null, null, {
365
+ B ? B([L]) : _ && _(null, null, null, null, null, {
366
366
  isBulk: !0,
367
367
  rows: [L]
368
- }), _((v) => {
369
- const S = { ...v };
368
+ }), k((w) => {
369
+ const S = { ...w };
370
370
  return delete S[e], S;
371
- }), G((v) => {
372
- const S = { ...v };
371
+ }), G((w) => {
372
+ const S = { ...w };
373
373
  return Object.keys(S).forEach((It) => {
374
374
  It.startsWith(`${e}-`) && delete S[It];
375
375
  }), S;
376
- }), W(null);
376
+ }), H(null);
377
377
  },
378
378
  [
379
+ h,
379
380
  u,
380
- p,
381
- k,
382
- j,
381
+ _,
382
+ B,
383
383
  X,
384
384
  fe,
385
- H,
385
+ $,
386
386
  a
387
387
  ]
388
- ), $ = z(() => Object.values(u).reduce(
388
+ ), z = C(() => Object.values(h).reduce(
389
389
  (e, t) => e + Object.keys(t).length,
390
390
  0
391
- ), [u]);
391
+ ), [h]);
392
392
  T(() => {
393
- tt?.($ > 0, $);
394
- }, [$, tt]);
395
- const Yl = z(() => {
393
+ lt?.(z > 0, z);
394
+ }, [z, lt]);
395
+ const Yl = C(() => {
396
396
  const e = [];
397
- return Object.entries(u).forEach(([t, l]) => {
398
- const r = p.findIndex(
397
+ return Object.entries(h).forEach(([t, l]) => {
398
+ const r = u.findIndex(
399
399
  (o) => o.id === t
400
400
  );
401
401
  Object.entries(l).forEach(([o, d]) => {
402
- const F = w.find((f) => f.key === o);
402
+ const F = v.find((f) => f.key === o);
403
403
  e.push({
404
404
  rowId: t,
405
405
  columnKey: o,
@@ -412,10 +412,10 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
412
412
  });
413
413
  });
414
414
  }), e;
415
- }, [u, w, p]), Zl = z(() => {
415
+ }, [h, v, u]), Zl = C(() => {
416
416
  const e = /* @__PURE__ */ new Map();
417
- return Object.entries(u).forEach(([t, l]) => {
418
- const r = p.findIndex(
417
+ return Object.entries(h).forEach(([t, l]) => {
418
+ const r = u.findIndex(
419
419
  (o) => o.id === t
420
420
  );
421
421
  e.set(t, {
@@ -426,30 +426,30 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
426
426
  }), Array.from(e.values()).sort(
427
427
  (t, l) => t.rowIndex - l.rowIndex
428
428
  );
429
- }, [u, p]), Ql = i(
430
- (e) => dt(e),
429
+ }, [h, u]), Ql = i(
430
+ (e) => ut(e),
431
431
  []
432
432
  ), ve = i(
433
- () => dt(null),
433
+ () => ut(null),
434
434
  []
435
435
  ), Kl = i(
436
436
  (e, t) => {
437
- ut({ value: e, reference: t }), R?.onSelected && R.onSelected(e, t), ve();
437
+ ht({ value: e, reference: t }), R?.onSelected && R.onSelected(e, t), ve();
438
438
  },
439
439
  [R, ve]
440
440
  ), er = i(
441
- () => ut(null),
441
+ () => ht(null),
442
442
  []
443
443
  ), tr = i(
444
- (e) => mt(e),
444
+ (e) => pt(e),
445
445
  []
446
- ), Tt = i(
447
- () => mt(null),
446
+ ), Dt = i(
447
+ () => pt(null),
448
448
  []
449
449
  ), lr = i(
450
- (e) => pt(e),
450
+ (e) => ft(e),
451
451
  []
452
- ), Dt = i(() => pt(null), []), rr = i(
452
+ ), Nt = i(() => ft(null), []), rr = i(
453
453
  (e, t) => {
454
454
  G((l) => ({ ...l, [e]: t }));
455
455
  },
@@ -457,29 +457,29 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
457
457
  ), nr = i(
458
458
  (e) => Ve[e],
459
459
  [Ve]
460
- ), sr = z(() => {
460
+ ), sr = C(() => {
461
461
  const e = oe.match(/h-\[(\d+px)\]/);
462
462
  if (e) return e[1];
463
463
  const t = oe.match(/h-\[(calc\(.+\))\]/);
464
464
  if (t)
465
465
  return t[1].replace(/([+-])/g, " $1 ").replace(/\s+/g, " ");
466
466
  }, [oe]), or = {
467
- isEmpty: st,
467
+ isEmpty: ot,
468
468
  isFilters: U,
469
469
  isColumnConfigurable: ne,
470
470
  handleOnClick: se,
471
- emptyMessage: qe,
472
- buttons: Ge,
473
- noDataWidget: Je
474
- }, ar = a?.t?.(Wt) ?? Wt, we = U ? "No Results Found" : qe || "No Data Found", ir = typeof we == "string" ? a?.t?.(we) ?? we : we, Nt = { __isLoading: !0 }, cr = new Array(1).fill(Nt), dr = new Array(rl).fill(Nt), Y = z(
475
- () => w.filter((e) => !!e?.visible),
476
- [w]
471
+ emptyMessage: Je,
472
+ buttons: Xe,
473
+ noDataWidget: Ge
474
+ }, ar = a?.t?.(Wt) ?? Wt, we = U ? "No Results Found" : Je || "No Data Found", ir = typeof we == "string" ? a?.t?.(we) ?? we : we, Ot = { __isLoading: !0 }, cr = new Array(1).fill(Ot), dr = new Array(rl).fill(Ot), Y = C(
475
+ () => v.filter((e) => !!e?.visible),
476
+ [v]
477
477
  ), ur = $r(
478
478
  {
479
- columns: vl ? Y : w,
479
+ columns: vl ? Y : v,
480
480
  data: [
481
- ...p,
482
- ...re ? p?.length ? cr : dr : []
481
+ ...u,
482
+ ...re ? u?.length ? cr : dr : []
483
483
  ],
484
484
  defaultColumn: {
485
485
  minWidth: sn,
@@ -488,8 +488,8 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
488
488
  }
489
489
  },
490
490
  zr
491
- ), { getTableProps: Ot, getTableBodyProps: At, headerGroups: Fe, prepareRow: Et, rows: I } = ur;
492
- wt.current = Fe;
491
+ ), { getTableProps: At, getTableBodyProps: Et, headerGroups: Fe, prepareRow: Rt, rows: I } = ur;
492
+ Ft.current = Fe;
493
493
  const hr = JSON.stringify(
494
494
  Fe[0]?.headers?.map(
495
495
  (e) => e?.Header
@@ -497,21 +497,21 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
497
497
  );
498
498
  T(() => {
499
499
  if (Ae) {
500
- const e = wt.current;
500
+ const e = Ft.current;
501
501
  Ae?.(
502
502
  e?.[0]?.headers?.map((t) => t?.Header) ?? []
503
503
  );
504
504
  }
505
505
  }, [hr, Ae]);
506
- const { checkboxConfig: Rt } = Rr({
506
+ const { checkboxConfig: We } = Rr({
507
507
  rows: I,
508
- checkedIds: V?.checkedIds,
509
- isCheckAllDisabled: V?.isCheckAllDisabled,
510
- selectionDisabledRowIds: V?.selectionDisabledRowIds,
511
- rawData: Ke,
508
+ checkedIds: j?.checkedIds,
509
+ isCheckAllDisabled: j?.isCheckAllDisabled,
510
+ selectionDisabledRowIds: j?.selectionDisabledRowIds,
511
+ rawData: et,
512
512
  onAllChecked: gl,
513
- setCheckedIds: V?.setCheckedIds,
514
- checkboxMetadata: V?.checkboxMetadata
513
+ setCheckedIds: j?.setCheckedIds,
514
+ checkboxMetadata: j?.checkboxMetadata
515
515
  }), mr = Ir(
516
516
  Vt(Lr, {
517
517
  activationConstraint: { distance: Pt }
@@ -524,14 +524,14 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
524
524
  duration: cn
525
525
  };
526
526
  function fr() {
527
- return !Ze?.length || !ye ? I : Ze.reduce(
527
+ return !Qe?.length || !ye ? I : Qe.reduce(
528
528
  (e, t) => (e[t] = I.filter(
529
529
  (l) => l.original?.type === t
530
530
  ), e),
531
531
  {}
532
532
  );
533
533
  }
534
- St.current = fr;
534
+ bt.current = fr;
535
535
  const vr = (e) => {
536
536
  const { active: t } = e;
537
537
  Ie(
@@ -546,26 +546,26 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
546
546
  l,
547
547
  Bl,
548
548
  (r) => {
549
- at(r), it(!0), ie.onDragSuccess?.({
549
+ it(r), ct(!0), ie.onDragSuccess?.({
550
550
  draggedId: t.id,
551
551
  droppedId: l.id,
552
552
  draggedType: t.data.current?.type,
553
553
  droppedType: l.data.current?.type,
554
554
  updatedList: r,
555
- cb: () => it(!1)
555
+ cb: () => ct(!1)
556
556
  });
557
557
  }
558
558
  ), Ie(null));
559
559
  }, Fr = () => Ie(null), Sr = (e) => {
560
- !m?.onSort && !n?.onFilter || de(ot === e ? null : e);
560
+ !p?.onSort && !n?.onFilter || de(at === e ? null : e);
561
561
  }, br = (e) => {
562
- Il(e), kl(!_l), de(null);
563
- }, We = i(() => {
564
- m?.onRemoveSort ? m.onRemoveSort() : m?.onSort && m.onSort("", "");
565
- }, [m]), Se = i((e = null) => {
566
- nt(e), _e((t) => e ? !0 : !t);
567
- }, []), He = i(
568
- () => rt((e) => !e),
562
+ Il(e), _l(!kl), de(null);
563
+ }, He = i(() => {
564
+ p?.onRemoveSort ? p.onRemoveSort() : p?.onSort && p.onSort("", "");
565
+ }, [p]), Se = i((e = null) => {
566
+ st(e), ke((t) => e ? !0 : !t);
567
+ }, []), $e = i(
568
+ () => nt((e) => !e),
569
569
  []
570
570
  ), xr = () => {
571
571
  const e = Fe[0]?.headers?.filter((t) => t?.visible !== !1);
@@ -577,16 +577,16 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
577
577
  let t = 0;
578
578
  for (let l = e + 1; l < Y.length; l++)
579
579
  Y[l].visible !== !1 && (t += Y[l].width ?? 0);
580
- return ce && (t += Oe || on), C && (t += Ue ? 0 : an), t;
580
+ return ce && (t += Oe || on), V && (t += qe ? 0 : an), t;
581
581
  },
582
582
  [
583
583
  Y,
584
584
  Oe,
585
- Ue,
585
+ qe,
586
586
  ce,
587
- C
587
+ V
588
588
  ]
589
- ), _t = () => {
589
+ ), kt = () => {
590
590
  const e = a?.getUserId?.();
591
591
  return {
592
592
  ...x || {},
@@ -607,9 +607,9 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
607
607
  }))
608
608
  };
609
609
  };
610
- Ft.current = _t;
610
+ St.current = kt;
611
611
  const Tr = (e, t) => {
612
- const l = _t();
612
+ const l = kt();
613
613
  q({
614
614
  ...l,
615
615
  columns: l?.columns?.map(
@@ -619,12 +619,12 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
619
619
  });
620
620
  };
621
621
  T(() => {
622
- if (n?.columnFilters?.length > 0 && _e(!0), M) return;
622
+ if (n?.columnFilters?.length > 0 && ke(!0), M) return;
623
623
  const e = Be.current;
624
624
  if (JSON.stringify(e?.filters || []) !== JSON.stringify(n?.columnFilters || [])) {
625
625
  const t = (e?.filters?.length ?? 0) > 0, l = n?.columnFilters?.length > 0;
626
626
  if (!(t && !l && !me.current)) {
627
- const o = Ft.current();
627
+ const o = St.current();
628
628
  q({
629
629
  ...o,
630
630
  filters: JSON.parse(
@@ -645,8 +645,8 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
645
645
  me.current = !0, n?.onClearFilter?.();
646
646
  }, [n?.onClearFilter]);
647
647
  T(() => {
648
- m?.columnSort?.field ? (rt(!0), m.columnSort.order === "asc" ? (ue(m.columnSort.field), he(null)) : m.columnSort.order === "desc" && (he(m.columnSort.field), ue(null))) : (ue(null), he(null));
649
- }, [m?.columnSort?.field, m?.columnSort?.order]), T(() => {
648
+ p?.columnSort?.field ? (nt(!0), p.columnSort.order === "asc" ? (ue(p.columnSort.field), he(null)) : p.columnSort.order === "desc" && (he(p.columnSort.field), ue(null))) : (ue(null), he(null));
649
+ }, [p?.columnSort?.field, p?.columnSort?.order]), T(() => {
650
650
  Me(
651
651
  Lt(
652
652
  Be.current?.columns || [],
@@ -654,16 +654,16 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
654
654
  )
655
655
  );
656
656
  }, [A]), T(() => {
657
- x?.unsaved && ft.current?.persistTableView?.(x);
657
+ x?.unsaved && vt.current?.persistTableView?.(x);
658
658
  }, [x]), T(() => {
659
- at(
660
- St.current()
659
+ it(
660
+ bt.current()
661
661
  );
662
662
  }, [I.length]), T(() => {
663
663
  q(N || null), N?.columns && Me(
664
664
  Lt(
665
665
  N?.columns || [],
666
- vt.current
666
+ wt.current
667
667
  )
668
668
  ), N?.filters && N.filters.length > 0 && !je.current ? (requestAnimationFrame(() => {
669
669
  pe.current?.onFilter?.(N.filters);
@@ -683,45 +683,45 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
683
683
  });
684
684
  return e.observe(ge.current), () => e.disconnect();
685
685
  }, []);
686
- const kt = /* @__PURE__ */ s(
686
+ const _t = /* @__PURE__ */ s(
687
687
  Xr,
688
688
  {
689
689
  isResizable: el,
690
690
  headerGroups: Fe,
691
691
  isCheckbox: El,
692
- checkboxConfig: Rt,
692
+ checkboxConfig: We,
693
693
  isAllChecked: Ll,
694
- showHeaderOptions: ot ?? "",
694
+ showHeaderOptions: at ?? "",
695
695
  setShowHeaderOptions: de,
696
696
  isShowSortArrowAsc: Vl,
697
697
  isShowSortArrowDesc: jl,
698
- onSort: m?.onSort,
698
+ onSort: p?.onSort,
699
699
  onFilter: n?.onFilter,
700
700
  toggleHeaderOption: Sr,
701
701
  setIsShowSortArrowAsc: ue,
702
702
  setIsShowSortArrowDesc: he,
703
703
  toggleDataFilterModal: Se,
704
- rowOptions: Array.isArray(C) ? C : [],
704
+ rowOptions: Array.isArray(V) ? V : [],
705
705
  isColumnConfigurable: ne ?? !1,
706
706
  onAddColumnClick: se,
707
- onEditColumnClick: Xe,
708
- onDeleteColumnClick: Ye,
709
- tableActions: Ce || null,
707
+ onEditColumnClick: Ye,
708
+ onDeleteColumnClick: Ze,
709
+ tableActions: Ue || null,
710
710
  isLoading: re,
711
711
  rowAdditionalActions: ce ?? null,
712
- showPendingEditsColumn: $ > 0
712
+ showPendingEditsColumn: z > 0
713
713
  }
714
714
  ), Mt = /* @__PURE__ */ b(Er, { children: [
715
715
  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,
716
716
  /* @__PURE__ */ s(
717
717
  "div",
718
718
  {
719
- ...Ot(),
719
+ ...At(),
720
720
  className: "w-full text-sm text-left text-neutral-500 dark:text-neutral-200 h-full bg-white dark:bg-black-800",
721
- children: st ? /* @__PURE__ */ b("div", { className: "z-10", children: [
722
- kt,
721
+ children: ot ? /* @__PURE__ */ b("div", { className: "z-10", children: [
722
+ _t,
723
723
  /* @__PURE__ */ s("div", { className: "absolute w-full", children: a?.renderEmpty ? a.renderEmpty(or) : /* @__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: [
724
- Je && !U ? /* @__PURE__ */ s(mn, { widgetType: "TABLE" }) : /* @__PURE__ */ s(pn, { text: ir }),
724
+ Ge && !U ? /* @__PURE__ */ s(mn, { widgetType: "TABLE" }) : /* @__PURE__ */ s(pn, { text: ir }),
725
725
  ne && !U ? /* @__PURE__ */ s("div", { className: "my-4", children: /* @__PURE__ */ b(
726
726
  gt,
727
727
  {
@@ -736,7 +736,7 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
736
736
  ]
737
737
  }
738
738
  ) }) : null,
739
- !U && Ge?.map((e, t) => /* @__PURE__ */ s(
739
+ !U && Xe?.map((e, t) => /* @__PURE__ */ s(
740
740
  gt,
741
741
  {
742
742
  status: "secondary",
@@ -752,13 +752,13 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
752
752
  {
753
753
  style: { width: "100%", height: "100%" },
754
754
  renderProp: ({ width: e, height: t }) => {
755
- const l = e > 0 ? e : ct.width, r = t > 0 ? t : ct.height;
755
+ const l = e > 0 ? e : dt.width, r = t > 0 ? t : dt.height;
756
756
  return l > 0 && r > 0 ? /* @__PURE__ */ s(
757
757
  Cr,
758
758
  {
759
- getTableBodyProps: At,
759
+ getTableBodyProps: Et,
760
760
  rows: I,
761
- prepareRow: Et,
761
+ prepareRow: Rt,
762
762
  isLoading: re,
763
763
  onScroll: Ct,
764
764
  onScrolling: Ut,
@@ -775,14 +775,14 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
775
775
  }
776
776
  )
777
777
  ] }), Or = jt((e, t) => /* @__PURE__ */ b("div", { className: "h-full w-full", ...e, ref: t, children: [
778
- kt,
778
+ _t,
779
779
  /* @__PURE__ */ s("div", { className: "relative w-full h-full", children: e?.children })
780
- ] })), Ar = 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 }) })), $e = z(() => a?.renderTableHeader ? a.renderTableHeader({
780
+ ] })), Ar = 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 }) })), ze = C(() => a?.renderTableHeader ? a.renderTableHeader({
781
781
  tableKey: g,
782
782
  search: D?.search,
783
783
  handleSearch: D?.handleSearch,
784
784
  toggleShowFilters: Se,
785
- toggleShowSorts: He,
785
+ toggleShowSorts: $e,
786
786
  filterCounts: n?.columnFilters?.length,
787
787
  columns: A,
788
788
  columnFilters: n?.columnFilters,
@@ -794,8 +794,8 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
794
794
  onRemoveFilter: n?.onRemoveFilter,
795
795
  onClearFilter: n?.onClearFilter,
796
796
  onFilter: n?.onFilter,
797
- data: le ?? p,
798
- tableHeaders: w,
797
+ data: le ?? u,
798
+ tableHeaders: v,
799
799
  showTableViewAsModal: c?.showTableViewAsModal,
800
800
  additionalOptions: c?.additionalOptions,
801
801
  inlineActions: c?.inlineActions,
@@ -806,10 +806,10 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
806
806
  setTableHeaders: Me,
807
807
  allowAStarSearch: !!D?.allowAStarSearch,
808
808
  withContent: !!c?.content,
809
- setShowFilters: _e,
810
- sort: m?.columnSort,
811
- onSort: m?.onSort,
812
- onRemoveSort: We,
809
+ setShowFilters: ke,
810
+ sort: p?.columnSort,
811
+ onSort: p?.onSort,
812
+ onRemoveSort: He,
813
813
  showExportButton: c?.showExportButton,
814
814
  onExportClick: c?.onExportClick,
815
815
  agreementId: ee,
@@ -819,7 +819,7 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
819
819
  D?.search,
820
820
  D?.handleSearch,
821
821
  Se,
822
- He,
822
+ $e,
823
823
  n?.columnFilters,
824
824
  A,
825
825
  q,
@@ -829,12 +829,12 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
829
829
  n?.onRemoveFilter,
830
830
  n?.onClearFilter,
831
831
  n?.onFilter,
832
- p,
832
+ u,
833
833
  le,
834
- w,
835
- m?.columnSort,
836
- m?.onSort,
837
- We,
834
+ v,
835
+ p?.columnSort,
836
+ p?.onSort,
837
+ He,
838
838
  a,
839
839
  D?.allowAStarSearch,
840
840
  K,
@@ -842,8 +842,8 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
842
842
  te
843
843
  ]);
844
844
  return T(() => {
845
- Ne && Ne($e);
846
- }, [$e, Ne]), /* @__PURE__ */ b(
845
+ Ne && Ne(ze);
846
+ }, [ze, Ne]), /* @__PURE__ */ b(
847
847
  qr.Provider,
848
848
  {
849
849
  value: {
@@ -853,43 +853,43 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
853
853
  search: D?.search,
854
854
  columnFilters: n?.columnFilters,
855
855
  onRowClick: $t,
856
- onSort: m?.onSort,
856
+ onSort: p?.onSort,
857
857
  onFilter: n?.onFilter,
858
858
  toggleShowFilters: Se,
859
- toggleShowSorts: He,
859
+ toggleShowSorts: $e,
860
860
  onRemoveFilter: n?.onRemoveFilter,
861
861
  onClearFilter: n?.onClearFilter,
862
- rowOptions: C,
863
- checkboxConfig: Rt,
862
+ rowOptions: V,
863
+ checkboxConfig: We,
864
864
  onResetFilter: n?.onResetFilter,
865
865
  isColumnConfigurable: ne,
866
866
  onAddColumnClick: se,
867
- onEditColumnClick: Xe,
868
- onDeleteColumnClick: Ye,
867
+ onEditColumnClick: Ye,
868
+ onDeleteColumnClick: Ze,
869
869
  onRowTooltipClick: qt,
870
870
  tooltiptext: Jt,
871
871
  cascadingTableConfig: Gt,
872
872
  activeInlineEdit: $l,
873
- setActiveInlineEdit: W,
873
+ setActiveInlineEdit: H,
874
874
  originalsOnly: Xt,
875
875
  disableOptionsForRowIndex: Yt,
876
876
  getFullRowDataOnClick: Zt,
877
877
  selectedRowId: Qt,
878
878
  getSumOfNextVisibleColumnWidth: yr,
879
- onRowEdit: k,
879
+ onRowEdit: _,
880
880
  inlineEditColumns: Kt,
881
- tableActions: Ce,
881
+ tableActions: Ue,
882
882
  dndSortableUtils: ie,
883
883
  withSortable: ye,
884
884
  withDraggable: tl,
885
885
  onCascadingRowExpand: nl,
886
886
  getInnerRowData: sl,
887
- tableHeaders: w,
887
+ tableHeaders: v,
888
888
  maxLevel: ol,
889
889
  expandedRows: al,
890
890
  setExpandedRows: il,
891
891
  showNewItem: cl,
892
- rawData: Ke,
892
+ rawData: et,
893
893
  dragConfig: dl,
894
894
  rowWrapper: ml,
895
895
  rowLinkConfig: pl,
@@ -898,9 +898,9 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
898
898
  handleUpdateColumnWidth: Tr,
899
899
  isTableViewReadOnly: M,
900
900
  multiSelectConfig: wl,
901
- cellContextMenuConfig: et,
901
+ cellContextMenuConfig: tt,
902
902
  openCellContextMenu: lr,
903
- closeCellContextMenu: Dt,
903
+ closeCellContextMenu: Nt,
904
904
  headerContextOptions: Fl,
905
905
  showHeaderContextOptions: Sl,
906
906
  setShowHeaderContextOptions: bl,
@@ -917,24 +917,24 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
917
917
  clearSelectedMasterData: er,
918
918
  allowInlineEdit: Dl,
919
919
  openCurrencyDropdown: tr,
920
- closeCurrencyDropdown: Tt,
921
- currencyDropdownConfig: ht,
920
+ closeCurrencyDropdown: Dt,
921
+ currencyDropdownConfig: mt,
922
922
  selectedCurrenciesMap: Ve,
923
923
  setCurrencyForCell: rr,
924
924
  getCurrencyForCell: nr,
925
- pendingEdits: u,
925
+ pendingEdits: h,
926
926
  addPendingEdit: Pe,
927
927
  removePendingEdit: Ul,
928
928
  getPendingEdit: ql,
929
929
  hasPendingEdit: Jl,
930
- clearAllPendingEdits: xt,
931
- saveAllPendingEdits: yt,
930
+ clearAllPendingEdits: yt,
931
+ saveAllPendingEdits: Tt,
932
932
  clearRowPendingEdits: Gl,
933
933
  saveRowPendingEdits: Xl,
934
- pendingEditsCount: $,
935
- scrollToCell: H,
934
+ pendingEditsCount: z,
935
+ scrollToCell: $,
936
936
  onFieldOperationFlow: Nl,
937
- fieldOperationLoading: B,
937
+ fieldOperationLoading: P,
938
938
  validateAllPendingEdits: X
939
939
  },
940
940
  children: [
@@ -985,7 +985,7 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
985
985
  size: "small",
986
986
  variant: "semibold",
987
987
  appearance: "title",
988
- children: (Qe ?? p.length).toLocaleString()
988
+ children: (Ke ?? u.length).toLocaleString()
989
989
  }
990
990
  ),
991
991
  /* @__PURE__ */ s(
@@ -1004,20 +1004,20 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
1004
1004
  /* @__PURE__ */ b(
1005
1005
  "div",
1006
1006
  {
1007
- className: `flex min-w-0 items-center justify-end ${E < Z ? "w-full" : c?.content ? "shrink-0" : "flex-1"} ${E < ze ? "flex-col" : "flex-row flex-wrap"} ${c?.postContent ? "gap-2" : ""}`,
1007
+ className: `flex min-w-0 items-center justify-end ${E < Z ? "w-full" : c?.content ? "shrink-0" : "flex-1"} ${E < Ce ? "flex-col" : "flex-row flex-wrap"} ${c?.postContent ? "gap-2" : ""}`,
1008
1008
  children: [
1009
1009
  Te && c?.preContent ? /* @__PURE__ */ s("div", { className: "flex w-full justify-start items-center", children: c.preContent }) : null,
1010
1010
  /* @__PURE__ */ s(
1011
1011
  "div",
1012
1012
  {
1013
- className: `flex justify-end items-center min-w-0 ${E < ze || E < Z ? "w-full" : ""}`,
1014
- children: $e
1013
+ className: `flex justify-end items-center min-w-0 ${E < Ce || E < Z ? "w-full" : ""}`,
1014
+ children: ze
1015
1015
  }
1016
1016
  ),
1017
1017
  c?.postContent ? /* @__PURE__ */ s(
1018
1018
  "div",
1019
1019
  {
1020
- className: `flex justify-end items-center ${E < ze ? "w-full" : ""}`,
1020
+ className: `flex justify-end items-center ${E < Ce ? "w-full" : ""}`,
1021
1021
  children: c.postContent
1022
1022
  }
1023
1023
  ) : null
@@ -1028,31 +1028,31 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
1028
1028
  }
1029
1029
  ) : null,
1030
1030
  c?.showDivider ? /* @__PURE__ */ s("div", { className: "border-b pb-2 w-full dark:bg-black-800" }) : null,
1031
- zt && (Re || ke) ? /* @__PURE__ */ s("div", { className: "flex justify-between items-center pb-4 dark:bg-black-800", children: /* @__PURE__ */ b("div", { className: "flex gap-2 items-center", children: [
1032
- ke && a?.renderSortItem ? a.renderSortItem({
1033
- sort: m?.columnSort,
1034
- onRemoveSort: We,
1035
- onSort: m?.onSort,
1036
- tableHeaders: w,
1037
- data: p,
1031
+ zt && (Re || _e) ? /* @__PURE__ */ s("div", { className: "flex justify-between items-center pb-4 dark:bg-black-800", children: /* @__PURE__ */ b("div", { className: "flex gap-2 items-center", children: [
1032
+ _e && a?.renderSortItem ? a.renderSortItem({
1033
+ sort: p?.columnSort,
1034
+ onRemoveSort: He,
1035
+ onSort: p?.onSort,
1036
+ tableHeaders: v,
1037
+ data: u,
1038
1038
  disabled: M
1039
1039
  }) : null,
1040
- Re && ke && m?.columnSort?.field !== "" ? /* @__PURE__ */ s("div", { className: "h-8 w-[1px] flex-shrink-0 bg-neutral-200" }) : null,
1040
+ Re && _e && p?.columnSort?.field !== "" ? /* @__PURE__ */ s("div", { className: "h-8 w-[1px] flex-shrink-0 bg-neutral-200" }) : null,
1041
1041
  Re ? /* @__PURE__ */ b("div", { className: "flex gap-2 items-center", children: [
1042
- (lt || n?.onResetFilter) && a?.renderActiveFilters && a.renderActiveFilters({
1042
+ (rt || n?.onResetFilter) && a?.renderActiveFilters && a.renderActiveFilters({
1043
1043
  filters: n?.columnFilters,
1044
1044
  onRemoveFilter: Dr,
1045
1045
  onClearFilter: Nr,
1046
1046
  onResetFilter: n?.onResetFilter,
1047
1047
  onFilter: n?.onFilter,
1048
- tableHeaders: w,
1048
+ tableHeaders: v,
1049
1049
  columnFilters: n?.columnFilters,
1050
1050
  modelName: Q,
1051
1051
  enableMasterDataEnumSuggestions: K,
1052
1052
  noSpacing: !0,
1053
1053
  notionStyle: n?.notionStyle,
1054
1054
  context: n?.context,
1055
- data: le ?? p,
1055
+ data: le ?? u,
1056
1056
  agreementId: ee,
1057
1057
  enumSuggestionsExtraParams: te,
1058
1058
  disabled: M
@@ -1063,12 +1063,12 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
1063
1063
  modelName: Q,
1064
1064
  enableMasterDataEnumSuggestions: K,
1065
1065
  defaultFilterColumn: Rl,
1066
- resetDefaultFilterColumn: () => nt(null),
1066
+ resetDefaultFilterColumn: () => st(null),
1067
1067
  column: Ml,
1068
1068
  onFilter: n?.onFilter,
1069
- tableHeaders: w,
1069
+ tableHeaders: v,
1070
1070
  columnFilters: n?.columnFilters,
1071
- data: le ?? p,
1071
+ data: le ?? u,
1072
1072
  notionStyle: n?.notionStyle,
1073
1073
  context: n?.context,
1074
1074
  agreementId: ee,
@@ -1101,7 +1101,7 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
1101
1101
  ]
1102
1102
  }
1103
1103
  ),
1104
- /* @__PURE__ */ s(be, { size: "small", variant: "semibold", appearance: "title", children: (Qe ?? p.length).toLocaleString() }),
1104
+ /* @__PURE__ */ s(be, { size: "small", variant: "semibold", appearance: "title", children: (Ke ?? u.length).toLocaleString() }),
1105
1105
  /* @__PURE__ */ s(be, { size: "small", variant: "regular", appearance: "subtitle", children: "total records" })
1106
1106
  ] }) : !xe && c?.preContent ? /* @__PURE__ */ s("div", { className: "flex items-center mb-2", children: c.preContent }) : null,
1107
1107
  /* @__PURE__ */ s(
@@ -1111,7 +1111,7 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
1111
1111
  className: `w-full ${ae ? "h-auto" : oe} rounded-lg relative border overflow-x-hidden`,
1112
1112
  style: {
1113
1113
  ...ae ? {
1114
- height: p?.length > 0 ? `${(p?.length + 1) * Ol + 4}px` : "350px"
1114
+ height: u?.length > 0 ? `${(u?.length + 1) * Ol + 4}px` : "350px"
1115
1115
  } : { height: sr },
1116
1116
  ...hl
1117
1117
  },
@@ -1134,15 +1134,15 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
1134
1134
  children: /* @__PURE__ */ s(
1135
1135
  "table",
1136
1136
  {
1137
- ...Ot(),
1137
+ ...At(),
1138
1138
  className: "w-full text-sm text-left text-neutral-500 dark:text-neutral-200 bg-white dark:bg-black-700 table-auto border-collapse",
1139
1139
  children: /* @__PURE__ */ b(
1140
1140
  "tbody",
1141
1141
  {
1142
- ...At(),
1142
+ ...Et(),
1143
1143
  className: "bg-transparent divide-y divide-neutral-200",
1144
1144
  children: [
1145
- void Et(J),
1145
+ void Rt(J),
1146
1146
  /* @__PURE__ */ s(
1147
1147
  Ur,
1148
1148
  {
@@ -1182,28 +1182,33 @@ const vn = Wr, Wt = "Create Column", wn = (g, D) => `button-admin-${g.toLowerCas
1182
1182
  /* @__PURE__ */ s(
1183
1183
  Gr,
1184
1184
  {
1185
- config: ht,
1186
- onClose: Tt
1185
+ config: mt,
1186
+ onClose: Dt
1187
1187
  }
1188
1188
  ),
1189
1189
  /* @__PURE__ */ s(
1190
1190
  Jr,
1191
1191
  {
1192
1192
  state: Cl,
1193
- config: et,
1194
- onClose: Dt
1193
+ config: tt,
1194
+ rowOptions: V,
1195
+ asyncRowOptionsFilter: n?.asyncRowOptionsFilter,
1196
+ checkedIds: We?.checkedIds,
1197
+ rows: u,
1198
+ columns: v,
1199
+ onClose: Nt
1195
1200
  }
1196
1201
  ),
1197
1202
  /* @__PURE__ */ s(
1198
1203
  Yr,
1199
1204
  {
1200
- pendingEditsCount: $,
1205
+ pendingEditsCount: z,
1201
1206
  pendingEditsList: Yl,
1202
1207
  rowsWithPendingEdits: Zl,
1203
- fieldOperationLoading: B,
1204
- onClearAll: xt,
1205
- onSaveAll: yt,
1206
- onScrollToCell: H
1208
+ fieldOperationLoading: P,
1209
+ onClearAll: yt,
1210
+ onSaveAll: Tt,
1211
+ onScrollToCell: $
1207
1212
  }
1208
1213
  )
1209
1214
  ]