@envisiongroup/porygon 0.1.0-rc.2 → 0.1.0-rc.4

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 (41) hide show
  1. package/dist/react-components/fields/EFWAttachments/EFWAttachments.js +68 -67
  2. package/dist/react-components/fields/EFWAttachments/EFWAttachments.types.d.ts +8 -2
  3. package/dist/react-components/fields/EFWAttachmentsField/EFWAttachmentsField.js +18 -16
  4. package/dist/react-components/fields/EFWDatePicker/EFWDatePicker.js +79 -100
  5. package/dist/react-components/fields/EFWDatePicker/EFWDatePicker.types.d.ts +6 -1
  6. package/dist/react-components/fields/EFWDatePicker/EFWDatePicker.utils.d.ts +2 -0
  7. package/dist/react-components/fields/EFWDatePicker/EFWDatePicker.utils.js +33 -19
  8. package/dist/react-components/fields/EFWDatePickerField/EFWDatePickerField.js +35 -33
  9. package/dist/react-components/fields/EFWField/EFWField.d.ts +2 -1
  10. package/dist/react-components/fields/EFWField/EFWField.js +39 -33
  11. package/dist/react-components/fields/EFWInput/EFWInput.js +86 -67
  12. package/dist/react-components/fields/EFWInput/EFWInput.types.d.ts +13 -1
  13. package/dist/react-components/fields/EFWInput/EFWInput.utils.js +32 -33
  14. package/dist/react-components/fields/EFWInputField/EFWInputField.js +33 -31
  15. package/dist/react-components/fields/EFWNumberInput/EFWNumberInput.js +136 -121
  16. package/dist/react-components/fields/EFWNumberInput/EFWNumberInput.types.d.ts +12 -0
  17. package/dist/react-components/fields/EFWNumberInputField/EFWNumberInputField.js +31 -29
  18. package/dist/react-components/fields/EFWSwitch/EFWSwitch.js +36 -35
  19. package/dist/react-components/fields/EFWSwitch/EFWSwitch.types.d.ts +6 -0
  20. package/dist/react-components/fields/EFWSwitchField/EFWSwitchField.js +24 -22
  21. package/dist/react-components/fields/EFWSwitchField/EFWSwitchField.types.d.ts +1 -1
  22. package/dist/react-components/fields/EFWTagPicker/EFWTagPicker.js +122 -113
  23. package/dist/react-components/fields/EFWTagPicker/EFWTagPicker.types.d.ts +7 -2
  24. package/dist/react-components/fields/EFWTagPickerField/EFWTagPickerField.js +31 -29
  25. package/dist/react-components/fields/EFWTextArea/EFWTextArea.js +59 -57
  26. package/dist/react-components/fields/EFWTextArea/EFWTextArea.types.d.ts +6 -2
  27. package/dist/react-components/fields/EFWTextAreaField/EFWTextAreaField.js +31 -29
  28. package/dist/react-components/forms/EFWForm/EFWForm.d.ts +2 -1
  29. package/dist/react-components/forms/EFWForm/EFWForm.js +245 -210
  30. package/dist/react-components/forms/EFWForm/EFWForm.types.d.ts +13 -8
  31. package/dist/react-components/forms/EFWForm/EFWForm.utils.js +212 -179
  32. package/dist/react-components/tables/EFWTable/EFWTable.d.ts +1 -1
  33. package/dist/react-components/tables/EFWTable/EFWTable.js +473 -392
  34. package/dist/react-components/tables/EFWTable/EFWTable.types.d.ts +21 -0
  35. package/dist/react-components/tables/EFWTable/components/EFWTableCell/EFWTableCell.js +1 -1
  36. package/dist/react-components/tables/EFWTable/components/EFWTableCommandBar/EFWTableCommandBar.js +68 -77
  37. package/dist/react-components/tables/EFWTable/components/EFWTableHeader/EFWTableHeader.js +4 -4
  38. package/dist/react-components/tables/EFWTable/hooks/useDefaultDeleteButton/useDefaultDeleteButton.js +33 -30
  39. package/dist/react-components/tables/EFWTable/hooks/useDefaultUpdateButton/useDefaultUpdateButton.js +1 -1
  40. package/dist/react-components/tables/EFWTable/hooks/useTableController/useTableController.js +1 -1
  41. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
- import { jsx as b, jsxs as yt } from "react/jsx-runtime";
2
- import * as re from "react";
3
- import { useRef as P, useState as q, useMemo as I, useEffect as T, useCallback as M } from "react";
4
- import { useReactTable as ce, getSortedRowModel as oe, getFilteredRowModel as ie, getCoreRowModel as ae } from "@tanstack/react-table";
5
- import { makeStyles as le, tokens as Y, mergeClasses as ue, Checkbox as wt, Card as de } from "@fluentui/react-components";
6
- import { useTableSelection as fe } from "./hooks/useTableSelection/useTableSelection.js";
7
- import { renderCellContent as me } from "./utils/index.js";
8
- import { useDefaultAddButton as he } from "./hooks/useDefaultAddButton/useDefaultAddButton.js";
9
- import { useDefaultUpdateButton as ge } from "./hooks/useDefaultUpdateButton/useDefaultUpdateButton.js";
10
- import { useDefaultDeleteButton as pe } from "./hooks/useDefaultDeleteButton/useDefaultDeleteButton.js";
11
- import { generateId as y } from "./utils/general.js";
12
- import { EFWTableCommandBar as Se } from "./components/EFWTableCommandBar/EFWTableCommandBar.js";
13
- import { EFWTableHeader as ye } from "./components/EFWTableHeader/EFWTableHeader.js";
14
- import { EFWTableBody as we } from "./components/EFWTableBody/EFWTableBody.js";
15
- import { EFWTableEmpty as xe } from "./components/EFWTableEmpty/EFWTableEmpty.js";
16
- const j = {}, ze = /* @__PURE__ */ new Set(), be = [], v = [], f = 120, _ = 80, Q = 2500, A = 48, De = 48, Ee = le({
1
+ import { jsx as v, jsxs as Ye } from "react/jsx-runtime";
2
+ import * as xt from "react";
3
+ import { useRef as B, useState as q, useCallback as R, useEffect as T, useMemo as F } from "react";
4
+ import { useReactTable as wt, getSortedRowModel as yt, getFilteredRowModel as It, getCoreRowModel as zt } from "@tanstack/react-table";
5
+ import { makeStyles as bt, tokens as K, mergeClasses as Et, Checkbox as $e, Card as Ct } from "@fluentui/react-components";
6
+ import { useTableSelection as vt } from "./hooks/useTableSelection/useTableSelection.js";
7
+ import { renderCellContent as Rt } from "./utils/index.js";
8
+ import { useDefaultAddButton as Mt } from "./hooks/useDefaultAddButton/useDefaultAddButton.js";
9
+ import { useDefaultUpdateButton as Nt } from "./hooks/useDefaultUpdateButton/useDefaultUpdateButton.js";
10
+ import { useDefaultDeleteButton as Wt } from "./hooks/useDefaultDeleteButton/useDefaultDeleteButton.js";
11
+ import { generateId as E } from "./utils/general.js";
12
+ import { EFWTableCommandBar as kt } from "./components/EFWTableCommandBar/EFWTableCommandBar.js";
13
+ import { EFWTableHeader as Tt } from "./components/EFWTableHeader/EFWTableHeader.js";
14
+ import { EFWTableBody as _t } from "./components/EFWTableBody/EFWTableBody.js";
15
+ import { EFWTableEmpty as At } from "./components/EFWTableEmpty/EFWTableEmpty.js";
16
+ const G = {}, Bt = /* @__PURE__ */ new Set(), qe = [], X = [], x = 120, _ = 80, J = 2500, O = 48, Qt = 48, Ft = bt({
17
17
  "efw-table": {},
18
18
  /* Transición suave para el box-shadow en las celdas y cabeceras fijas */
19
19
  "efw-table-scroll-container": {
@@ -23,7 +23,7 @@ const j = {}, ze = /* @__PURE__ */ new Set(), be = [], v = [], f = 120, _ = 80,
23
23
  transform: "translateZ(0)"
24
24
  },
25
25
  "& .table-header": {
26
- boxShadow: `0px 1px 0 0px ${Y.colorNeutralStroke2}`
26
+ boxShadow: `0px 1px 0 0px ${K.colorNeutralStroke2}`
27
27
  },
28
28
  "& .header-cell": {
29
29
  "&.sticky-column": {
@@ -57,540 +57,621 @@ const j = {}, ze = /* @__PURE__ */ new Set(), be = [], v = [], f = 120, _ = 80,
57
57
  }
58
58
  }
59
59
  }
60
- }), Le = ({
61
- appearance: xt = "outline",
62
- style: zt = {},
63
- className: bt = "",
64
- fields: a,
65
- items: B = be,
66
- height: V = 700,
67
- itemSize: Et = 32,
60
+ }), Ut = ({
61
+ appearance: Ge = "outline",
62
+ style: Xe = {},
63
+ className: Je = "",
64
+ fields: f,
65
+ items: te,
66
+ defaultItems: Ke,
67
+ height: ne = 700,
68
+ itemSize: Ve = 32,
68
69
  // tableStyle = 'row',
69
- enableSelection: S = !0,
70
- enableCommandBar: $ = !0,
71
- defaultSelectedItems: Rt = ze,
72
- onSelectionChange: Mt,
73
- onRowClick: G,
74
- resizableColumns: X = !1,
75
- columnSizing: C = j,
76
- useVirtualization: Ct = !1,
77
- autoSizeColumns: N = !1,
78
- tableRef: Nt,
79
- onItemsChange: Wt,
80
- onScroll: U,
81
- addButtonConfig: kt = j,
82
- updateButtonConfig: It = j,
83
- deleteButtonConfig: Tt = j,
84
- alwaysButtons: tt = v,
85
- noSelectionButtons: _t = v,
86
- singleSelectionButtons: At = v,
87
- multiSelectionButtons: et = v,
88
- beforeAddItems: F,
89
- beforeUpdateItems: O,
70
+ enableSelection: I = !0,
71
+ enableCommandBar: V = !0,
72
+ defaultSelectedItems: Ze = Bt,
73
+ onSelectionChange: Qe,
74
+ onRowClick: Z,
75
+ resizableColumns: Q = !1,
76
+ columnSizing: z = G,
77
+ useVirtualization: Ue = !1,
78
+ autoSizeColumns: M = !1,
79
+ tableRef: et,
80
+ onItemsChange: se,
81
+ onScroll: re,
82
+ addButtonConfig: tt = G,
83
+ updateButtonConfig: nt = G,
84
+ deleteButtonConfig: st = G,
85
+ alwaysButtons: ie = X,
86
+ noSelectionButtons: rt = X,
87
+ singleSelectionButtons: it = X,
88
+ multiSelectionButtons: ce = X,
89
+ beforeAddItems: L,
90
+ beforeUpdateItems: D,
90
91
  beforeDeleteItems: H,
91
- columnRenderers: Bt,
92
- useDefaultRendererAsFallback: Ft = !0
92
+ columnRenderers: oe,
93
+ useDefaultRendererAsFallback: ae = !0
93
94
  }) => {
94
- const nt = Ee(), Ot = ue(bt, nt["efw-table"]), W = P(!1), [E, Ht] = q(
95
- () => B.map((t) => ({
96
- ...t,
97
- id: t.id || y()
98
- }))
99
- ), [u, J] = q(() => {
100
- const t = {};
101
- return a.forEach((e) => {
102
- const n = C[e.internalName];
95
+ const le = Ft(), ct = Et(Je, le["efw-table"]), N = B(!1), ue = te !== void 0, [ot, at] = q(() => (Ke || qe).map((t) => ({
96
+ ...t,
97
+ id: t.id || E()
98
+ }))), b = ue ? te || qe : ot, [S, j] = q(() => {
99
+ const e = {};
100
+ return f.forEach((t) => {
101
+ const n = z[t.internalName];
103
102
  if (n?.width) {
104
- const s = n.minWidth ?? _, r = n.maxWidth ?? Q;
105
- t[e.internalName] = Math.min(Math.max(n.width ?? 0, s), r);
103
+ const s = n.minWidth ?? _, i = n.maxWidth ?? J;
104
+ e[t.internalName] = Math.min(Math.max(n.width ?? 0, s), i);
106
105
  }
107
- }), t;
108
- }), [w, st] = q(0), {
109
- rowSelection: R,
110
- setRowSelection: rt,
106
+ }), e;
107
+ }), de = B(z), [C, fe] = q(0), {
108
+ rowSelection: W,
109
+ setRowSelection: he,
111
110
  // selectedIndexes,
112
- deselectAll: ct,
113
- selectSingle: ot,
114
- toggleMultiple: Dt,
111
+ deselectAll: me,
112
+ selectSingle: pe,
113
+ toggleMultiple: lt,
115
114
  // selectMultiple,
116
- getSelectedItems: it,
117
- getSelectedRows: at
118
- } = fe({
119
- initialSelection: Rt,
120
- onSelectionChange: Mt,
121
- enableSelection: S
122
- }), K = P(null), h = P(E), lt = P(/* @__PURE__ */ new Set()), ut = I(() => {
123
- const t = [], e = {};
115
+ getSelectedItems: ge,
116
+ getSelectedRows: Se
117
+ } = vt({
118
+ initialSelection: Ze,
119
+ onSelectionChange: Qe,
120
+ enableSelection: I
121
+ }), xe = B(null), [P, ut] = q(null), dt = R((e) => {
122
+ xe.current = e, ut(e);
123
+ }, []), p = B(b);
124
+ T(() => {
125
+ p.current = b;
126
+ }, [b]);
127
+ const U = B(/* @__PURE__ */ new Set()), we = F(() => {
128
+ const e = [], t = {};
124
129
  let n = 0;
125
- return S && (t.push("select"), e.select = n, n += A), a.forEach((s) => {
126
- const r = C[s.internalName] || {};
127
- if (r.sticky) {
128
- t.push(s.internalName), e[s.internalName] = n;
129
- const c = u[s.internalName] || r.width || f;
130
- n += c;
130
+ return I && (e.push("select"), t.select = n, n += O), f.forEach((s) => {
131
+ const i = z[s.internalName] || {};
132
+ if (i.sticky) {
133
+ e.push(s.internalName), t[s.internalName] = n;
134
+ const r = S[s.internalName] || i.width || x;
135
+ n += r;
131
136
  }
132
- }), { stickyColumns: t, stickyPositions: e };
133
- }, [a, S, C, u]), g = I(() => {
134
- const t = [];
135
- return S && t.push({
137
+ }), { stickyColumns: e, stickyPositions: t };
138
+ }, [f, I, z, S]), w = F(() => {
139
+ const e = [];
140
+ return I && e.push({
136
141
  id: "select",
137
- header: ({ table: e }) => /* @__PURE__ */ b(
138
- wt,
142
+ header: ({ table: t }) => /* @__PURE__ */ v(
143
+ $e,
139
144
  {
140
145
  shape: "circular",
141
- checked: e.getIsAllRowsSelected(),
142
- onChange: e.getToggleAllRowsSelectedHandler(),
146
+ checked: t.getIsAllRowsSelected(),
147
+ onChange: t.getToggleAllRowsSelectedHandler(),
143
148
  "data-checkbox": "true"
144
149
  }
145
150
  ),
146
- cell: ({ row: e }) => /* @__PURE__ */ b(
147
- wt,
151
+ cell: ({ row: t }) => /* @__PURE__ */ v(
152
+ $e,
148
153
  {
149
154
  shape: "circular",
150
- checked: e.getIsSelected(),
155
+ checked: t.getIsSelected(),
151
156
  onChange: (n) => {
152
- n.stopPropagation(), Dt(e.index);
157
+ n.stopPropagation(), lt(t.index);
153
158
  },
154
159
  onClick: (n) => n.stopPropagation(),
155
160
  "data-checkbox": "true"
156
161
  }
157
162
  ),
158
- size: A,
159
- minSize: A,
160
- maxSize: A,
163
+ size: O,
164
+ minSize: O,
165
+ maxSize: O,
161
166
  enableResizing: !1
162
- }), a.forEach((e) => {
163
- const n = C[e.internalName] || {}, s = e.typeAsString === "Note" ? f * 2 : f, r = n.width || s, c = n.minWidth || _, o = n.maxWidth || Q;
164
- t.push({
165
- id: e.internalName,
166
- accessorKey: e.internalName,
167
- header: e.title || e.internalName,
168
- cell: ({ row: i }) => me(
169
- e,
170
- i.original[e.internalName],
171
- i.original,
172
- i.index,
173
- Bt,
174
- Ft
167
+ }), f.forEach((t) => {
168
+ const n = z[t.internalName] || {}, s = t.typeAsString === "Note" ? x * 2 : x, i = n.width || s, r = n.minWidth || _, a = n.maxWidth || J;
169
+ e.push({
170
+ id: t.internalName,
171
+ accessorKey: t.internalName,
172
+ header: t.title || t.internalName,
173
+ cell: ({ row: c }) => Rt(
174
+ t,
175
+ c.original[t.internalName],
176
+ c.original,
177
+ c.index,
178
+ oe,
179
+ ae
175
180
  ),
176
- size: Math.min(Math.max(r, c), o),
177
- minSize: c,
178
- maxSize: o,
179
- enableResizing: X
181
+ size: Math.min(Math.max(i, r), a),
182
+ minSize: r,
183
+ maxSize: a,
184
+ enableResizing: Q
180
185
  });
181
- }), t;
182
- }, [a, S, X, C]), D = I(() => g.reduce((t, e) => {
183
- const s = a.find((c) => c.internalName === e.id)?.typeAsString === "Note" ? f * 2 : f, r = u[e.id] || (typeof e.size == "number" ? e.size : s);
184
- return t + r;
185
- }, 0), [g, u, a]), dt = ce({
186
- data: E,
187
- columns: g,
186
+ }), e;
187
+ }, [
188
+ f,
189
+ I,
190
+ Q,
191
+ z,
192
+ oe,
193
+ ae
194
+ ]);
195
+ T(() => {
196
+ const e = de.current;
197
+ j((t) => {
198
+ let n = !1;
199
+ const s = { ...t }, i = new Set(f.map((r) => r.internalName));
200
+ return Object.keys(s).forEach((r) => {
201
+ i.has(r) || (delete s[r], n = !0);
202
+ }), f.forEach((r) => {
203
+ const a = r.internalName, c = z[a], o = e[a];
204
+ if (c?.width !== void 0) {
205
+ const u = c.minWidth ?? _, h = c.maxWidth ?? J, d = Math.min(Math.max(c.width, u), h);
206
+ s[a] !== d && (s[a] = d, n = !0);
207
+ } else o?.width !== void 0 && s[a] !== void 0 && (delete s[a], n = !0);
208
+ }), n ? s : t;
209
+ }), de.current = z;
210
+ }, [z, f]);
211
+ const Y = F(() => w.reduce((e, t) => {
212
+ const s = f.find((r) => r.internalName === t.id)?.typeAsString === "Note" ? x * 2 : x, i = S[t.id] || (typeof t.size == "number" ? t.size : s);
213
+ return e + i;
214
+ }, 0), [w, S, f]), ye = wt({
215
+ data: b,
216
+ columns: w,
188
217
  state: {
189
- rowSelection: R,
190
- columnSizing: u
218
+ rowSelection: W,
219
+ columnSizing: S
191
220
  },
192
- onRowSelectionChange: rt,
193
- onColumnSizingChange: (t) => {
194
- J((e) => {
195
- const n = typeof t == "function" ? t(e) : t, s = {};
196
- return Object.keys(n).forEach((r) => {
197
- const c = g.find((o) => o.id === r);
198
- if (c) {
199
- const o = c.minSize || _, i = c.maxSize || Q;
200
- W.current ? s[r] = Math.max(n[r], o) : s[r] = Math.min(Math.max(n[r], o), i);
221
+ onRowSelectionChange: he,
222
+ onColumnSizingChange: (e) => {
223
+ j((t) => {
224
+ const n = typeof e == "function" ? e(t) : e, s = {};
225
+ return Object.keys(n).forEach((i) => {
226
+ const r = w.find((a) => a.id === i);
227
+ if (r) {
228
+ const a = r.minSize || _, c = r.maxSize || J;
229
+ N.current ? s[i] = Math.max(n[i], a) : s[i] = Math.min(Math.max(n[i], a), c);
201
230
  }
202
- }), { ...e, ...s };
231
+ }), { ...t, ...s };
203
232
  });
204
233
  },
205
234
  //getRowId: row => row.id as string,
206
- getCoreRowModel: ae(),
207
- getFilteredRowModel: ie(),
208
- getSortedRowModel: oe(),
235
+ getCoreRowModel: zt(),
236
+ getFilteredRowModel: It(),
237
+ getSortedRowModel: yt(),
209
238
  columnResizeMode: "onChange",
210
239
  enableRowSelection: !0,
211
- enableMultiRowSelection: S
240
+ enableMultiRowSelection: I
212
241
  });
213
242
  T(() => {
214
- const t = /* @__PURE__ */ new Set();
215
- Object.keys(R).forEach((e) => {
216
- if (R[e]) {
217
- const n = parseInt(e), s = h.current[n];
218
- s?.id && t.add(s.id);
243
+ const e = /* @__PURE__ */ new Set();
244
+ Object.keys(W).forEach((t) => {
245
+ if (W[t]) {
246
+ const n = parseInt(t), s = p.current[n];
247
+ s?.id && e.add(s.id);
219
248
  }
220
- }), lt.current = t;
221
- }, [R]);
222
- const Lt = M((t) => {
223
- U?.(t);
224
- }, [U]), l = (t) => {
225
- Ht((e) => {
226
- const n = typeof t == "function" ? t(e) : t;
227
- h.current = n;
228
- const s = /* @__PURE__ */ new Set();
229
- if (Object.keys(R).forEach((r) => {
230
- if (R[r]) {
231
- const c = Number(r), o = e[c];
232
- o?.id && s.add(o.id);
233
- }
234
- }), lt.current = s, s.size > 0) {
235
- const r = {};
236
- n.forEach((c, o) => {
237
- c.id && s.has(c.id) && (r[o.toString()] = !0);
238
- }), rt(r);
239
- }
240
- return Wt?.(n), n;
249
+ }), U.current = e;
250
+ }, [W]);
251
+ const ft = R((e) => {
252
+ re?.(e);
253
+ }, [re]), Ie = (e) => {
254
+ const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
255
+ return Object.keys(W).forEach((i) => {
256
+ if (!W[i])
257
+ return;
258
+ const r = Number(i), a = e[r];
259
+ a && (s.add(r), a.id && t.add(a.id), n.add(a));
260
+ }), {
261
+ hasSelection: t.size > 0 || n.size > 0 || s.size > 0,
262
+ selectedIds: t,
263
+ selectedRefs: n,
264
+ selectedIndexes: s,
265
+ sourceLength: e.length
266
+ };
267
+ }, ze = (e, t) => {
268
+ if (!t.hasSelection)
269
+ return;
270
+ const n = t.sourceLength !== e.length, s = {};
271
+ e.forEach((i, r) => {
272
+ if (!i)
273
+ return;
274
+ const a = i.id ? t.selectedIds.has(i.id) : !1, c = t.selectedRefs.has(i), o = !i.id && !n && t.selectedIndexes.has(r);
275
+ (a || c || o) && (s[r.toString()] = !0);
276
+ }), he(s);
277
+ }, g = (e) => {
278
+ if (ue) {
279
+ const t = b, n = typeof e == "function" ? e(t) : e;
280
+ p.current = n;
281
+ const s = Ie(t);
282
+ U.current = s.selectedIds, ze(n, s), se?.(n);
283
+ return;
284
+ }
285
+ at((t) => {
286
+ const n = typeof e == "function" ? e(t) : e;
287
+ p.current = n;
288
+ const s = Ie(t);
289
+ return U.current = s.selectedIds, ze(n, s), se?.(n), n;
241
290
  });
242
- }, Pt = M(() => a, [a]), jt = async (t) => {
291
+ }, be = R(() => f, [f]), Ee = async (e) => {
243
292
  try {
244
- if (F) {
245
- const e = { id: y(), ...t }, n = await F([e], p);
293
+ if (L) {
294
+ const t = { id: E(), ...e }, n = await L([t], y);
246
295
  if (n) {
247
296
  if (n.successful.length > 0) {
248
- const s = n.successful.map((r) => {
249
- const c = r.item;
250
- return c.id ? c : { ...c, id: y() };
297
+ const s = n.successful.map((i) => {
298
+ const r = i.item;
299
+ return r.id ? r : { ...r, id: E() };
251
300
  });
252
- l((r) => [...s, ...r]);
301
+ g((i) => [...s, ...i]);
253
302
  }
254
303
  return n;
255
304
  }
256
- return l((s) => [e, ...s]), {
257
- successful: [{ index: 0, item: e }],
305
+ return g((s) => [t, ...s]), {
306
+ successful: [{ index: 0, item: t }],
258
307
  failed: []
259
308
  };
260
309
  } else {
261
- const e = { id: y(), ...t };
262
- return l((n) => [e, ...n]), {
263
- successful: [{ index: 0, item: e }],
310
+ const t = { id: E(), ...e };
311
+ return g((n) => [t, ...n]), {
312
+ successful: [{ index: 0, item: t }],
264
313
  failed: []
265
314
  };
266
315
  }
267
- } catch (e) {
316
+ } catch (t) {
268
317
  return {
269
318
  successful: [],
270
- failed: [{ index: -1, item: t, error: String(e) }]
319
+ failed: [{ index: -1, item: e, error: String(t) }]
271
320
  };
272
321
  }
273
- }, vt = async (t) => {
274
- if (t.length === 0)
322
+ }, Ce = async (e) => {
323
+ if (e.length === 0)
275
324
  return {
276
325
  successful: [],
277
326
  failed: []
278
327
  };
279
328
  try {
280
- if (F) {
281
- const e = t.map((s) => ({
282
- id: y(),
329
+ if (L) {
330
+ const t = e.map((s) => ({
331
+ id: E(),
283
332
  ...s
284
- })), n = await F(e, p);
333
+ })), n = await L(t, y);
285
334
  if (n) {
286
335
  if (n.successful.length > 0) {
287
- const s = n.successful.map((r) => {
288
- const c = r.item;
289
- return c.id ? c : { ...c, id: y() };
336
+ const s = n.successful.map((i) => {
337
+ const r = i.item;
338
+ return r.id ? r : { ...r, id: E() };
290
339
  });
291
- l((r) => [...s, ...r]);
340
+ g((i) => [...s, ...i]);
292
341
  }
293
342
  return n;
294
343
  }
295
- return l((s) => [...e, ...s]), {
296
- successful: e.map((s, r) => ({ index: r, item: s })),
344
+ return g((s) => [...t, ...s]), {
345
+ successful: t.map((s, i) => ({ index: i, item: s })),
297
346
  failed: []
298
347
  };
299
348
  } else {
300
- const e = t.map((n) => ({
301
- id: y(),
349
+ const t = e.map((n) => ({
350
+ id: E(),
302
351
  ...n
303
352
  }));
304
- return l((n) => [...e, ...n]), {
305
- successful: e.map((n, s) => ({ index: s, item: n })),
353
+ return g((n) => [...t, ...n]), {
354
+ successful: t.map((n, s) => ({ index: s, item: n })),
306
355
  failed: []
307
356
  };
308
357
  }
309
- } catch (e) {
358
+ } catch (t) {
310
359
  return {
311
360
  successful: [],
312
- failed: t.map((n, s) => ({
361
+ failed: e.map((n, s) => ({
313
362
  index: s,
314
363
  item: n,
315
- error: String(e)
364
+ error: String(t)
316
365
  }))
317
366
  };
318
367
  }
319
- }, Yt = async (t, e) => {
368
+ }, ve = async (e, t) => {
369
+ const n = p.current;
370
+ if (e < 0 || e >= n.length)
371
+ return {
372
+ successful: [],
373
+ failed: [{ index: e, item: t, error: "Invalid index" }]
374
+ };
320
375
  try {
321
- if (O) {
322
- const s = await O([{ index: t, item: e }], p);
323
- if (s)
324
- return s.successful.length && l((r) => {
325
- const c = [...r];
326
- return s.successful.forEach(({ index: o, item: i }) => c[o] = i), c;
327
- }), s;
376
+ if (D) {
377
+ const i = await D([{ index: e, item: t }], y);
378
+ if (i)
379
+ return i.successful.length && g((r) => {
380
+ const a = [...r];
381
+ return i.successful.forEach(({ index: c, item: o }) => a[c] = o), a;
382
+ }), i;
328
383
  }
329
- let n;
330
- return l((s) => {
331
- if (t < 0 || t >= s.length) return s;
332
- n = { ...s[t], ...e };
333
- const r = [...s];
334
- return r[t] = n, r;
335
- }), { successful: [{ index: t, item: n }], failed: [] };
336
- } catch (n) {
384
+ let s;
385
+ return g((i) => {
386
+ s = { ...i[e], ...t };
387
+ const r = [...i];
388
+ return r[e] = s, r;
389
+ }), { successful: [{ index: e, item: s }], failed: [] };
390
+ } catch (s) {
337
391
  return {
338
392
  successful: [],
339
- failed: [{ index: t, item: e, error: String(n) }]
393
+ failed: [{ index: e, item: t, error: String(s) }]
340
394
  };
341
395
  }
342
- }, $t = async (t) => {
343
- if (!t.length) return { successful: [], failed: [] };
396
+ }, Re = async (e) => {
397
+ if (!e.length) return { successful: [], failed: [] };
398
+ const t = p.current, n = (r) => r >= 0 && r < t.length, s = e.filter(({ index: r }) => !n(r)).map(({ index: r, item: a }) => ({ index: r, item: a, error: "Invalid index" })), i = e.filter(({ index: r }) => n(r));
344
399
  try {
345
- if (O) {
346
- const s = await O(t, p);
347
- if (s)
348
- return s.successful.length && l((r) => {
349
- const c = [...r];
350
- return s.successful.forEach(({ index: o, item: i }) => c[o] = i), c;
351
- }), s;
400
+ if (D) {
401
+ const c = await D(e, y);
402
+ if (c) {
403
+ const o = c.successful.filter(({ index: l }) => n(l));
404
+ o.length && g((l) => {
405
+ const k = [...l];
406
+ return o.forEach(({ index: m, item: A }) => k[m] = A), k;
407
+ });
408
+ const u = new Set(c.failed.map((l) => l.index)), h = [...c.failed];
409
+ return s.forEach((l) => {
410
+ u.has(l.index) || h.push(l);
411
+ }), c.successful.filter(({ index: l }) => !n(l)).map(({ index: l, item: k }) => ({ index: l, item: k, error: "Invalid index" })).forEach((l) => {
412
+ u.has(l.index) || h.push(l);
413
+ }), { successful: o, failed: h };
414
+ }
352
415
  }
353
- const e = [], n = [];
354
- return l((s) => {
355
- const r = [...s];
356
- return t.forEach(({ index: c, item: o }) => {
357
- c >= 0 && c < r.length ? (r[c] = { ...r[c], ...o }, e.push({ index: c, item: r[c] })) : n.push({ index: c, item: o, error: "Invalid index" });
358
- }), r;
359
- }), { successful: e, failed: n };
360
- } catch (e) {
416
+ const r = [], a = [...s];
417
+ return g((c) => {
418
+ const o = [...c];
419
+ return i.forEach(({ index: u, item: h }) => {
420
+ o[u] = { ...o[u], ...h }, r.push({ index: u, item: o[u] });
421
+ }), o;
422
+ }), { successful: r, failed: a };
423
+ } catch (r) {
361
424
  return {
362
425
  successful: [],
363
- failed: t.map(({ index: n, item: s }) => ({
364
- index: n,
365
- item: s,
366
- error: String(e)
426
+ failed: e.map(({ index: a, item: c }) => ({
427
+ index: a,
428
+ item: c,
429
+ error: String(r)
367
430
  }))
368
431
  };
369
432
  }
370
- }, Gt = async (t) => {
433
+ }, Me = async (e) => {
434
+ const t = p.current;
435
+ if (e < 0 || e >= t.length)
436
+ return {
437
+ successful: [],
438
+ failed: [{ index: e, error: "Invalid index" }]
439
+ };
371
440
  try {
372
441
  if (H) {
373
- const n = E[t], s = await H([{ index: t, item: n }], p);
374
- if (s)
375
- return s.successful.length && l((r) => r.filter((c, o) => o !== t)), s;
442
+ const s = b[e], i = await H([{ index: e, item: s }], y);
443
+ if (i)
444
+ return i.successful.length && g((r) => r.filter((a, c) => c !== e)), i;
376
445
  }
377
- let e;
378
- return l((n) => t < 0 || t >= n.length ? n : (e = n[t], n.filter((s, r) => r !== t))), { successful: [{ index: t, item: e }], failed: [] };
379
- } catch (e) {
446
+ let n;
447
+ return g((s) => (n = s[e], s.filter((i, r) => r !== e))), { successful: [{ index: e, item: n }], failed: [] };
448
+ } catch (n) {
380
449
  return {
381
450
  successful: [],
382
- failed: [{ index: t, error: String(e) }]
451
+ failed: [{ index: e, error: String(n) }]
383
452
  };
384
453
  }
385
- }, Xt = async (t) => {
386
- if (!t.length) return { successful: [], failed: [] };
387
- const e = new Set(t);
454
+ }, Ne = async (e) => {
455
+ if (!e.length) return { successful: [], failed: [] };
456
+ const t = p.current, n = Array.from(new Set(e)), { validIndexes: s, invalidFailures: i } = n.reduce(
457
+ (c, o) => (o >= 0 && o < t.length ? c.validIndexes.push(o) : c.invalidFailures.push({ index: o, error: "Invalid index" }), c),
458
+ { validIndexes: [], invalidFailures: [] }
459
+ ), r = n.map((c) => ({ index: c, item: b[c] })), a = new Set(s);
388
460
  try {
389
461
  if (H) {
390
- const r = [...e].map((o) => ({ index: o, item: E[o] })), c = await H(r, p);
391
- if (c) {
392
- if (c.successful.length) {
393
- const o = new Set(c.successful.map((i) => i.index));
394
- l((i) => i.filter((d, z) => !o.has(z)));
462
+ const u = await H(r, y);
463
+ if (u) {
464
+ const h = u.successful.filter(({ index: m }) => a.has(m));
465
+ if (h.length) {
466
+ const m = new Set(h.map((A) => A.index));
467
+ g((A) => A.filter((Ot, St) => !m.has(St)));
395
468
  }
396
- return c;
469
+ const d = new Set(u.failed.map((m) => m.index)), l = [...u.failed];
470
+ return i.forEach((m) => {
471
+ d.has(m.index) || l.push(m);
472
+ }), u.successful.filter(({ index: m }) => !a.has(m)).map(({ index: m }) => ({ index: m, error: "Invalid index" })).forEach((m) => {
473
+ d.has(m.index) || l.push(m);
474
+ }), { successful: h, failed: l };
397
475
  }
398
476
  }
399
- const n = [];
400
- l((r) => {
401
- const c = [];
402
- return r.forEach((o, i) => {
403
- e.has(i) ? n.push({ index: i, item: o }) : c.push(o);
404
- }), c;
405
- });
406
- const s = t.filter(
407
- (r) => r < 0
408
- /* o -> i >= prevLen, pero no lo conocemos aquí */
409
- ).map((r) => ({ index: r, error: "Invalid index" }));
410
- return { successful: n, failed: s };
411
- } catch (n) {
477
+ const c = new Set(s), o = [];
478
+ return g((u) => {
479
+ const h = [];
480
+ return u.forEach((d, l) => {
481
+ c.has(l) ? o.push({ index: l, item: d }) : h.push(d);
482
+ }), h;
483
+ }), { successful: o, failed: i };
484
+ } catch (c) {
412
485
  return {
413
486
  successful: [],
414
- failed: t.map((s) => ({ index: s, error: String(n) }))
487
+ failed: n.map((o) => ({ index: o, error: String(c) }))
415
488
  };
416
489
  }
417
- }, ft = M((t) => h.current.find((e) => e.id === t), []), Jt = (t) => h.current[t], Kt = (t) => {
418
- l(
419
- t.map((e) => ({ ...e, id: e.id ?? y() }))
490
+ }, We = R((e) => p.current.find((t) => t.id === e), []), ke = (e) => p.current[e], Te = (e) => {
491
+ g(
492
+ e.map((t) => ({ ...t, id: t.id ?? E() }))
420
493
  );
421
- }, Zt = () => {
422
- l([]);
423
- }, qt = (t) => h.current.findIndex((e) => e.id === t), Qt = (t) => h.current.some((e) => e.id === t), Vt = () => h.current.length, Ut = () => [...h.current], mt = M(() => it(h.current), [it]), ht = M(() => at(h.current), [at]), p = I(() => ({
424
- getFields: Pt,
425
- addItem: jt,
426
- addItems: vt,
427
- updateItem: Yt,
428
- updateItems: $t,
429
- deleteItem: Gt,
430
- deleteItems: Xt,
431
- getItem: ft,
432
- getItemByIndex: Jt,
433
- getItems: Ut,
434
- getItemsCount: Vt,
435
- itemExists: Qt,
436
- getItemIndex: qt,
437
- replaceAllItems: Kt,
438
- clearItems: Zt,
439
- deselectAllRows: ct,
440
- getSelectedItems: mt,
441
- getSelectedRows: ht
494
+ }, _e = () => {
495
+ g([]);
496
+ }, Ae = (e) => p.current.findIndex((t) => t.id === e), Be = (e) => p.current.some((t) => t.id === e), Fe = () => p.current.length, Oe = () => [...p.current], Le = R(() => ge(p.current), [ge]), De = R(() => Se(p.current), [Se]), y = F(() => ({
497
+ getFields: be,
498
+ addItem: Ee,
499
+ addItems: Ce,
500
+ updateItem: ve,
501
+ updateItems: Re,
502
+ deleteItem: Me,
503
+ deleteItems: Ne,
504
+ getItem: We,
505
+ getItemByIndex: ke,
506
+ getItems: Oe,
507
+ getItemsCount: Fe,
508
+ itemExists: Be,
509
+ getItemIndex: Ae,
510
+ replaceAllItems: Te,
511
+ clearItems: _e,
512
+ deselectAllRows: me,
513
+ getSelectedItems: Le,
514
+ getSelectedRows: De
442
515
  }), [
443
- a,
444
- ft,
445
- mt,
446
- ht,
447
- ct
516
+ Ee,
517
+ Ce,
518
+ _e,
519
+ Me,
520
+ Ne,
521
+ me,
522
+ f,
523
+ be,
524
+ We,
525
+ ke,
526
+ Ae,
527
+ Oe,
528
+ Fe,
529
+ Le,
530
+ De,
531
+ Be,
532
+ Te,
533
+ ve,
534
+ Re
448
535
  ]);
449
- re.useImperativeHandle(Nt, () => p, [p]), T(() => {
450
- (B.length > 0 || E.length === 0) && l(
451
- () => B.map((t) => ({
452
- ...t,
453
- id: t.id || y()
454
- }))
455
- );
456
- }, [B]);
457
- const te = M((t, e) => {
458
- e?.target && e.target.closest('[data-checkbox="true"]') || (S && ot(t.index), G && G(t.original, t.index));
459
- }, [S, G, ot]), gt = I(() => g.map((t) => {
460
- const n = a.find((r) => r.internalName === t.id)?.typeAsString === "Note" ? f * 2 : f, s = u[t.id] || (typeof t.size == "number" ? t.size : n);
461
- return t.id === "select" ? `${A}px` : `${s}px`;
462
- }).join(" "), [g, u, a]);
536
+ xt.useImperativeHandle(et, () => y, [y]);
537
+ const ht = R((e, t) => {
538
+ t?.target && t.target.closest('[data-checkbox="true"]') || (I && pe(e.index), Z && Z(e.original, e.index));
539
+ }, [I, Z, pe]), He = F(() => w.map((e) => {
540
+ const n = f.find((i) => i.internalName === e.id)?.typeAsString === "Note" ? x * 2 : x, s = S[e.id] || (typeof e.size == "number" ? e.size : n);
541
+ return e.id === "select" ? `${O}px` : `${s}px`;
542
+ }).join(" "), [w, S, f]);
463
543
  T(() => {
464
- const t = K.current;
465
- if (!t) return;
466
- const e = new ResizeObserver((n) => {
467
- for (const s of n)
468
- st(s.contentRect.width);
544
+ if (!P) return;
545
+ const e = new ResizeObserver((t) => {
546
+ for (const n of t)
547
+ fe(n.contentRect.width);
469
548
  });
470
- return e.observe(t), st(t.clientWidth), () => e.disconnect();
471
- }, []), T(() => {
472
- if (!N || w <= 0) return;
473
- let t = 0, e = 0;
549
+ return e.observe(P), fe(P.clientWidth), () => e.disconnect();
550
+ }, [P]), T(() => {
551
+ if (!M || C <= 0 || N.current) return;
552
+ let e = 0, t = 0;
474
553
  const n = [];
475
- g.forEach((d) => {
476
- const k = a.find((x) => x.internalName === d.id)?.typeAsString === "Note" ? f * 2 : f, m = u[d.id] || (typeof d.size == "number" ? d.size : k);
477
- d.enableResizing === !1 ? t += m : (e += m, n.push(d));
554
+ if (w.forEach((o) => {
555
+ const h = f.find((m) => m.internalName === o.id)?.typeAsString === "Note" ? x * 2 : x, d = S[o.id] || (typeof o.size == "number" ? o.size : h);
556
+ !(o.id === "select") ? (t += d, n.push(o)) : e += d;
557
+ }), n.length === 0)
558
+ return;
559
+ const s = e + t;
560
+ if (Math.abs(s - C) < 1) return;
561
+ const i = C - e, r = i / t, a = { ...S };
562
+ let c = 0;
563
+ n.forEach((o, u) => {
564
+ const h = S[o.id] || (typeof o.size == "number" ? o.size : x), d = o.minSize || _;
565
+ let l;
566
+ u === n.length - 1 ? l = i - c : l = Math.round(h * r), l = Math.max(d, l), a[o.id] = l, c += l;
567
+ }), N.current = !0, j(a), requestAnimationFrame(() => {
568
+ N.current = !1;
478
569
  });
479
- const s = t + e;
480
- if (Math.abs(s - w) < 1) return;
481
- const r = w - t, c = r / e, o = { ...u };
482
- let i = 0;
483
- n.forEach((d, z) => {
484
- const k = u[d.id] || (typeof d.size == "number" ? d.size : f), m = d.minSize || _;
485
- let x;
486
- z === n.length - 1 ? x = r - i : x = Math.round(k * c), x = Math.max(m, x), o[d.id] = x, i += x;
487
- }), W.current = !0, J(o), W.current = !1;
488
- }, [N, w, g, a, u]), T(() => {
489
- if (N || w <= 0)
570
+ }, [M, C, w, f]), T(() => {
571
+ if (M || C <= 0)
490
572
  return;
491
- const t = w - D;
492
- if (Math.abs(t) < 1)
573
+ const e = C - Y;
574
+ if (Math.abs(e) < 1)
493
575
  return;
494
- const e = g.filter((m) => m.id && m.id !== "select");
495
- if (e.length === 0) return;
496
- const n = e[e.length - 1], s = n.id, c = a.find((m) => m.internalName === s)?.typeAsString === "Note" ? f * 2 : f, i = (u[s] || (typeof n.size == "number" ? n.size : c)) + t, d = n.minSize || _, z = Math.max(d, i), k = u[s];
497
- Math.abs(k - z) < 1 || (W.current = !0, J((m) => ({
498
- ...m,
499
- [s]: z
500
- })), W.current = !1);
501
- }, [N, w, D, g, a]);
502
- const pt = he(kt), St = ge(It), L = pe(Tt), ee = pt ? [pt, ...tt] : tt, Z = [];
503
- St && Z.push(St), L && Z.push(L);
504
- const ne = [...Z, ...At], se = L ? [L, ...et] : et;
505
- return /* @__PURE__ */ yt(
506
- de,
576
+ const t = w.filter((d) => d.id && d.id !== "select");
577
+ if (t.length === 0) return;
578
+ const n = t[t.length - 1], s = n.id, r = f.find((d) => d.internalName === s)?.typeAsString === "Note" ? x * 2 : x, c = (S[s] || (typeof n.size == "number" ? n.size : r)) + e, o = n.minSize || _, u = Math.max(o, c), h = S[s];
579
+ Math.abs(h - u) < 1 || (N.current = !0, j((d) => ({
580
+ ...d,
581
+ [s]: u
582
+ })), N.current = !1);
583
+ }, [M, C, Y, w, f]);
584
+ const je = Mt(tt), Pe = Nt(nt), $ = Wt(st), mt = je ? [je, ...ie] : ie, ee = [];
585
+ Pe && ee.push(Pe), $ && ee.push($);
586
+ const pt = [...ee, ...it], gt = $ ? [$, ...ce] : ce;
587
+ return /* @__PURE__ */ Ye(
588
+ Ct,
507
589
  {
508
590
  size: "small",
509
- appearance: xt,
510
- className: Ot,
591
+ appearance: Ge,
592
+ className: ct,
511
593
  style: {
512
- backgroundColor: Y.colorNeutralBackground1,
594
+ backgroundColor: K.colorNeutralBackground1,
513
595
  maxWidth: "100%",
514
596
  // margin: "20px 20px",
515
597
  padding: "0px",
516
598
  gap: "0px",
517
- ...zt
599
+ ...Xe
518
600
  },
519
601
  children: [
520
- $ && /* @__PURE__ */ b(
521
- Se,
602
+ V && /* @__PURE__ */ v(
603
+ kt,
522
604
  {
523
- tableMethods: p,
524
- alwaysButtons: ee,
525
- noSelectionButtons: _t,
526
- singleSelectionButtons: ne,
527
- multiSelectionButtons: se,
528
- selectedRows: p.getSelectedRows()
605
+ tableMethods: y,
606
+ alwaysButtons: mt,
607
+ noSelectionButtons: rt,
608
+ singleSelectionButtons: pt,
609
+ multiSelectionButtons: gt,
610
+ selectedRows: y.getSelectedRows()
529
611
  }
530
612
  ),
531
- E.length > 0 ? /* @__PURE__ */ b(
613
+ b.length > 0 ? /* @__PURE__ */ v(
532
614
  "div",
533
615
  {
534
- ref: K,
535
- onScroll: Lt,
536
- className: nt["efw-table-scroll-container"],
616
+ ref: dt,
617
+ onScroll: ft,
618
+ className: le["efw-table-scroll-container"],
537
619
  style: {
538
- maxHeight: $ ? V - 40 : V,
620
+ maxHeight: V ? ne - 40 : ne,
539
621
  overflowY: "auto",
540
622
  overflowX: "auto",
541
- border: `1px solid ${Y.colorNeutralStroke2}`,
542
- borderTop: $ ? "none" : `1px solid ${Y.colorNeutralStroke2}`,
623
+ border: `1px solid ${K.colorNeutralStroke2}`,
624
+ borderTop: V ? "none" : `1px solid ${K.colorNeutralStroke2}`,
543
625
  position: "relative"
544
626
  },
545
- children: /* @__PURE__ */ yt(
627
+ children: /* @__PURE__ */ Ye(
546
628
  "div",
547
629
  {
548
630
  className: "table-container",
549
631
  style: {
550
- minWidth: D,
551
- //width: Math.max(totalTableWidth, 300),
552
- width: N ? w : Math.max(D, 300)
632
+ minWidth: M ? "100%" : Y,
633
+ width: M ? "100%" : Math.max(Y, 300)
553
634
  },
554
635
  children: [
555
- /* @__PURE__ */ b(
556
- ye,
636
+ /* @__PURE__ */ v(
637
+ Tt,
557
638
  {
558
- table: dt,
559
- gridTemplateColumns: gt,
560
- columnSizing: u,
561
- stickyColumnsInfo: ut,
562
- resizableColumns: X
639
+ table: ye,
640
+ gridTemplateColumns: He,
641
+ columnSizing: S,
642
+ stickyColumnsInfo: we,
643
+ resizableColumns: Q
563
644
  }
564
645
  ),
565
- /* @__PURE__ */ b(
566
- we,
646
+ /* @__PURE__ */ v(
647
+ _t,
567
648
  {
568
- table: dt,
569
- fields: a,
570
- tableContainerRef: K,
571
- useVirtualization: Ct,
572
- enableSelection: S,
573
- itemSize: Et,
574
- gridTemplateColumns: gt,
575
- columnSizing: u,
576
- stickyColumnsInfo: ut,
577
- onRowClick: te
649
+ table: ye,
650
+ fields: f,
651
+ tableContainerRef: xe,
652
+ useVirtualization: Ue,
653
+ enableSelection: I,
654
+ itemSize: Ve,
655
+ gridTemplateColumns: He,
656
+ columnSizing: S,
657
+ stickyColumnsInfo: we,
658
+ onRowClick: ht
578
659
  }
579
660
  )
580
661
  ]
581
662
  }
582
663
  )
583
664
  }
584
- ) : /* @__PURE__ */ b(xe, { height: 300 })
665
+ ) : /* @__PURE__ */ v(At, { height: 300 })
585
666
  ]
586
667
  }
587
668
  );
588
669
  };
589
670
  export {
590
- f as COLS_DEF_WIDTH,
591
- Q as COLS_MAX_WIDTH,
671
+ x as COLS_DEF_WIDTH,
672
+ J as COLS_MAX_WIDTH,
592
673
  _ as COLS_MIN_WIDTH,
593
- Le as EFWTable,
594
- De as SELECTOR_CELL_HEIGHT,
595
- A as SELECTOR_CELL_WIDTH
674
+ Ut as EFWTable,
675
+ Qt as SELECTOR_CELL_HEIGHT,
676
+ O as SELECTOR_CELL_WIDTH
596
677
  };