@carto/ps-react-ui 4.3.10 → 4.4.0-chat-ui.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.
Files changed (89) hide show
  1. package/dist/chat.js +798 -0
  2. package/dist/chat.js.map +1 -0
  3. package/dist/components.js +260 -240
  4. package/dist/components.js.map +1 -1
  5. package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
  6. package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
  7. package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
  8. package/dist/types/chat/bubbles/index.d.ts +4 -0
  9. package/dist/types/chat/const.d.ts +3 -0
  10. package/dist/types/chat/containers/chat-content.d.ts +2 -0
  11. package/dist/types/chat/containers/chat-footer.d.ts +2 -0
  12. package/dist/types/chat/containers/chat-header.d.ts +2 -0
  13. package/dist/types/chat/containers/chat-starter.d.ts +2 -0
  14. package/dist/types/chat/containers/index.d.ts +4 -0
  15. package/dist/types/chat/containers/styles.d.ts +101 -0
  16. package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
  17. package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
  18. package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
  19. package/dist/types/chat/feedback/chat-tools.d.ts +2 -0
  20. package/dist/types/chat/feedback/index.d.ts +5 -0
  21. package/dist/types/chat/feedback/styles.d.ts +65 -0
  22. package/dist/types/chat/index.d.ts +16 -0
  23. package/dist/types/chat/types.d.ts +99 -0
  24. package/dist/types/components/copy-button/copy-button.d.ts +2 -0
  25. package/dist/types/components/copy-button/types.d.ts +6 -0
  26. package/dist/types/components/index.d.ts +2 -0
  27. package/dist/widgets/actions.js +22 -21
  28. package/dist/widgets/actions.js.map +1 -1
  29. package/dist/widgets/bar.js +7 -6
  30. package/dist/widgets/bar.js.map +1 -1
  31. package/dist/widgets/category.js +9 -8
  32. package/dist/widgets/category.js.map +1 -1
  33. package/dist/widgets/formula.js +11 -10
  34. package/dist/widgets/formula.js.map +1 -1
  35. package/dist/widgets/histogram.js +7 -6
  36. package/dist/widgets/histogram.js.map +1 -1
  37. package/dist/widgets/markdown.js +9 -8
  38. package/dist/widgets/markdown.js.map +1 -1
  39. package/dist/widgets/pie.js +7 -6
  40. package/dist/widgets/pie.js.map +1 -1
  41. package/dist/widgets/scatterplot.js +7 -6
  42. package/dist/widgets/scatterplot.js.map +1 -1
  43. package/dist/widgets/spread.js +57 -56
  44. package/dist/widgets/spread.js.map +1 -1
  45. package/dist/widgets/table.js +67 -66
  46. package/dist/widgets/table.js.map +1 -1
  47. package/dist/widgets/timeseries.js +23 -22
  48. package/dist/widgets/timeseries.js.map +1 -1
  49. package/dist/widgets/wrapper.js +21 -20
  50. package/dist/widgets/wrapper.js.map +1 -1
  51. package/package.json +7 -3
  52. package/src/chat/bubbles/chat-agent-message.test.tsx +30 -0
  53. package/src/chat/bubbles/chat-agent-message.tsx +11 -0
  54. package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
  55. package/src/chat/bubbles/chat-error-message.tsx +47 -0
  56. package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
  57. package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
  58. package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
  59. package/src/chat/bubbles/chat-user-message.tsx +27 -0
  60. package/src/chat/bubbles/index.ts +4 -0
  61. package/src/chat/bubbles/styles.ts +106 -0
  62. package/src/chat/const.ts +3 -0
  63. package/src/chat/containers/chat-content.test.tsx +15 -0
  64. package/src/chat/containers/chat-content.tsx +32 -0
  65. package/src/chat/containers/chat-footer.test.tsx +34 -0
  66. package/src/chat/containers/chat-footer.tsx +78 -0
  67. package/src/chat/containers/chat-header.test.tsx +28 -0
  68. package/src/chat/containers/chat-header.tsx +29 -0
  69. package/src/chat/containers/chat-starter.test.tsx +32 -0
  70. package/src/chat/containers/chat-starter.tsx +75 -0
  71. package/src/chat/containers/index.ts +4 -0
  72. package/src/chat/containers/styles.ts +107 -0
  73. package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
  74. package/src/chat/feedback/chat-actions-container.tsx +7 -0
  75. package/src/chat/feedback/chat-loader.test.tsx +10 -0
  76. package/src/chat/feedback/chat-loader.tsx +31 -0
  77. package/src/chat/feedback/chat-rating-action.tsx +43 -0
  78. package/src/chat/feedback/chat-thinking.test.tsx +15 -0
  79. package/src/chat/feedback/chat-thinking.tsx +23 -0
  80. package/src/chat/feedback/chat-tools.test.tsx +23 -0
  81. package/src/chat/feedback/chat-tools.tsx +54 -0
  82. package/src/chat/feedback/index.ts +5 -0
  83. package/src/chat/feedback/styles.ts +80 -0
  84. package/src/chat/index.ts +45 -0
  85. package/src/chat/types.ts +124 -0
  86. package/src/components/copy-button/copy-button.test.tsx +41 -0
  87. package/src/components/copy-button/copy-button.tsx +31 -0
  88. package/src/components/copy-button/types.ts +10 -0
  89. package/src/components/index.ts +3 -0
@@ -1,8 +1,8 @@
1
1
  import { jsx as p, jsxs as z } from "react/jsx-runtime";
2
2
  import { c as L } from "react/compiler-runtime";
3
3
  import { TableSortLabel as re, TableCell as j, Checkbox as Y, Link as ce, Typography as ae, TableRow as G, IconButton as B, Box as Z, TablePagination as fe, Table as V, TableHead as I, TableBody as ee, Paper as ue, TableContainer as ge, Skeleton as te } from "@mui/material";
4
- import he from "react-markdown";
5
- import me from "@mui/icons-material/FirstPage";
4
+ import me from "react-markdown";
5
+ import he from "@mui/icons-material/FirstPage";
6
6
  import pe from "@mui/icons-material/KeyboardArrowLeft";
7
7
  import de from "@mui/icons-material/KeyboardArrowRight";
8
8
  import be from "@mui/icons-material/LastPage";
@@ -14,6 +14,7 @@ import "@mui/icons-material";
14
14
  import { d as K, a as J } from "../exports-Cr43OCul.js";
15
15
  import "../lasso-tool-BYbxrJ-7.js";
16
16
  import "../cjs-D4KH3azB.js";
17
+ import "@carto/ps-utils";
17
18
  import "@dnd-kit/core";
18
19
  import "@dnd-kit/sortable";
19
20
  import "@dnd-kit/utilities";
@@ -32,8 +33,8 @@ function _e(n) {
32
33
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
33
34
  "aria-label": "select all rows"
34
35
  }, e[0] = g) : g = e[0];
35
- let m;
36
- return e[1] !== s || e[2] !== c || e[3] !== r ? (m = /* @__PURE__ */ p(j, { padding: "checkbox", children: /* @__PURE__ */ p(Y, { checked: s, indeterminate: c, onChange: r, inputProps: g }) }), e[1] = s, e[2] = c, e[3] = r, e[4] = m) : m = e[4], m;
36
+ let h;
37
+ return e[1] !== s || e[2] !== c || e[3] !== r ? (h = /* @__PURE__ */ p(j, { padding: "checkbox", children: /* @__PURE__ */ p(Y, { checked: s, indeterminate: c, onChange: r, inputProps: g }) }), e[1] = s, e[2] = c, e[3] = r, e[4] = h) : h = e[4], h;
37
38
  }
38
39
  const f = o?.columnId === t.id, a = f ? o.direction : void 0;
39
40
  if (t.sortable && l) {
@@ -41,20 +42,20 @@ function _e(n) {
41
42
  e[5] !== t.width ? (g = {
42
43
  width: t.width
43
44
  }, e[5] = t.width, e[6] = g) : g = e[6];
44
- const m = a ?? "asc";
45
+ const h = a ?? "asc";
45
46
  let d;
46
47
  e[7] !== t.id || e[8] !== l ? (d = () => l(t.id), e[7] = t.id, e[8] = l, e[9] = d) : d = e[9];
47
48
  let S;
48
- e[10] !== t.label || e[11] !== f || e[12] !== m || e[13] !== d ? (S = /* @__PURE__ */ p(re, { active: f, direction: m, onClick: d, children: t.label }), e[10] = t.label, e[11] = f, e[12] = m, e[13] = d, e[14] = S) : S = e[14];
49
+ e[10] !== t.label || e[11] !== f || e[12] !== h || e[13] !== d ? (S = /* @__PURE__ */ p(re, { active: f, direction: h, onClick: d, children: t.label }), e[10] = t.label, e[11] = f, e[12] = h, e[13] = d, e[14] = S) : S = e[14];
49
50
  let y;
50
51
  return e[15] !== t.align || e[16] !== a || e[17] !== g || e[18] !== S ? (y = /* @__PURE__ */ p(j, { align: t.align, style: g, sortDirection: a, children: S }), e[15] = t.align, e[16] = a, e[17] = g, e[18] = S, e[19] = y) : y = e[19], y;
51
52
  }
52
- let h;
53
- e[20] !== t.width ? (h = {
53
+ let m;
54
+ e[20] !== t.width ? (m = {
54
55
  width: t.width
55
- }, e[20] = t.width, e[21] = h) : h = e[21];
56
+ }, e[20] = t.width, e[21] = m) : m = e[21];
56
57
  let _;
57
- return e[22] !== t.align || e[23] !== t.label || e[24] !== h ? (_ = /* @__PURE__ */ p(j, { align: t.align, style: h, children: t.label }), e[22] = t.align, e[23] = t.label, e[24] = h, e[25] = _) : _ = e[25], _;
58
+ return e[22] !== t.align || e[23] !== t.label || e[24] !== m ? (_ = /* @__PURE__ */ p(j, { align: t.align, style: m, children: t.label }), e[22] = t.align, e[23] = t.label, e[24] = m, e[25] = _) : _ = e[25], _;
58
59
  }
59
60
  function Se(n) {
60
61
  return n == null ? "" : Array.isArray(n) ? `[${n.map((t) => typeof t == "string" ? `"${t}"` : String(t)).join(", ")}]` : typeof n == "object" ? JSON.stringify(n) : n;
@@ -121,7 +122,7 @@ function ke(n) {
121
122
  }
122
123
  if (typeof l == "string") {
123
124
  let r;
124
- e[7] !== l ? (r = /* @__PURE__ */ p(he, { components: Te, children: l }), e[7] = l, e[8] = r) : r = e[8];
125
+ e[7] !== l ? (r = /* @__PURE__ */ p(me, { components: Te, children: l }), e[7] = l, e[8] = r) : r = e[8];
125
126
  let f;
126
127
  return e[9] !== t.align || e[10] !== r ? (f = /* @__PURE__ */ p(j, { align: t.align, children: r }), e[9] = t.align, e[10] = r, e[11] = f) : f = e[11], f;
127
128
  }
@@ -141,17 +142,17 @@ function Ae(n) {
141
142
  onSelect: c,
142
143
  onMouseEnter: r,
143
144
  onMouseLeave: f
144
- } = n, a = l === void 0 ? !1 : l, h = i === void 0 ? !1 : i;
145
+ } = n, a = l === void 0 ? !1 : l, m = i === void 0 ? !1 : i;
145
146
  let _;
146
147
  e[0] !== s || e[1] !== t ? (_ = () => {
147
148
  s?.(t);
148
149
  }, e[0] = s, e[1] = t, e[2] = _) : _ = e[2];
149
150
  const g = _;
150
- let m;
151
- e[3] !== c || e[4] !== t ? (m = (A) => {
151
+ let h;
152
+ e[3] !== c || e[4] !== t ? (h = (A) => {
152
153
  A.stopPropagation(), c?.(t);
153
- }, e[3] = c, e[4] = t, e[5] = m) : m = e[5];
154
- const d = m;
154
+ }, e[3] = c, e[4] = t, e[5] = h) : h = e[5];
155
+ const d = h;
155
156
  let S;
156
157
  e[6] !== r || e[7] !== t ? (S = () => {
157
158
  r?.(t);
@@ -167,9 +168,9 @@ function Ae(n) {
167
168
  cursor: T
168
169
  }, e[11] = T, e[12] = u) : u = e[12];
169
170
  let C;
170
- e[13] !== d || e[14] !== a || e[15] !== t || e[16] !== h ? (C = h && /* @__PURE__ */ p(j, { padding: "checkbox", children: /* @__PURE__ */ p(Y, { checked: a, onClick: d, inputProps: {
171
+ e[13] !== d || e[14] !== a || e[15] !== t || e[16] !== m ? (C = m && /* @__PURE__ */ p(j, { padding: "checkbox", children: /* @__PURE__ */ p(Y, { checked: a, onClick: d, inputProps: {
171
172
  "aria-label": `select row ${t.id}`
172
- } }) }), e[13] = d, e[14] = a, e[15] = t, e[16] = h, e[17] = C) : C = e[17];
173
+ } }) }), e[13] = d, e[14] = a, e[15] = t, e[16] = m, e[17] = C) : C = e[17];
173
174
  let k;
174
175
  if (e[18] !== o || e[19] !== t) {
175
176
  let A;
@@ -199,16 +200,16 @@ function ne(n) {
199
200
  i(E, o - 1);
200
201
  }, e[2] = i, e[3] = o, e[4] = f) : f = e[4];
201
202
  const a = f;
202
- let h;
203
- e[5] !== i || e[6] !== o ? (h = (E) => {
203
+ let m;
204
+ e[5] !== i || e[6] !== o ? (m = (E) => {
204
205
  i(E, o + 1);
205
- }, e[5] = i, e[6] = o, e[7] = h) : h = e[7];
206
- const _ = h;
206
+ }, e[5] = i, e[6] = o, e[7] = m) : m = e[7];
207
+ const _ = m;
207
208
  let g;
208
209
  e[8] !== s || e[9] !== i ? (g = (E) => {
209
210
  i(E, s);
210
211
  }, e[8] = s, e[9] = i, e[10] = g) : g = e[10];
211
- const m = g;
212
+ const h = g;
212
213
  let d;
213
214
  e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
214
215
  flexShrink: 0,
@@ -216,7 +217,7 @@ function ne(n) {
216
217
  }, e[11] = d) : d = e[11];
217
218
  const S = o === 0;
218
219
  let y;
219
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ p(me, {}), e[12] = y) : y = e[12];
220
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ p(he, {}), e[12] = y) : y = e[12];
220
221
  let v;
221
222
  e[13] !== r || e[14] !== S ? (v = /* @__PURE__ */ p(B, { onClick: r, disabled: S, "aria-label": "first page", children: y }), e[13] = r, e[14] = S, e[15] = v) : v = e[15];
222
223
  const P = o === 0;
@@ -233,7 +234,7 @@ function ne(n) {
233
234
  let A;
234
235
  e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ p(be, {}), e[24] = A) : A = e[24];
235
236
  let O;
236
- e[25] !== m || e[26] !== R ? (O = /* @__PURE__ */ p(B, { onClick: m, disabled: R, "aria-label": "last page", children: A }), e[25] = m, e[26] = R, e[27] = O) : O = e[27];
237
+ e[25] !== h || e[26] !== R ? (O = /* @__PURE__ */ p(B, { onClick: h, disabled: R, "aria-label": "last page", children: A }), e[25] = h, e[26] = R, e[27] = O) : O = e[27];
237
238
  let b;
238
239
  return e[28] !== T || e[29] !== k || e[30] !== O || e[31] !== v ? (b = /* @__PURE__ */ z(Z, { sx: d, children: [
239
240
  v,
@@ -258,14 +259,14 @@ function $e(n) {
258
259
  e[2] !== s ? (a = (d, S) => {
259
260
  s(S);
260
261
  }, e[2] = s, e[3] = a) : a = e[3];
261
- const h = a;
262
+ const m = a;
262
263
  let _;
263
264
  e[4] !== c ? (_ = (d) => {
264
265
  c(parseInt(d.target.value, 10));
265
266
  }, e[4] = c, e[5] = _) : _ = e[5];
266
267
  const g = _;
267
- let m;
268
- return e[6] !== h || e[7] !== g || e[8] !== t || e[9] !== o || e[10] !== f || e[11] !== l ? (m = /* @__PURE__ */ p(fe, { component: "div", count: l, page: t, rowsPerPage: o, rowsPerPageOptions: f, onPageChange: h, onRowsPerPageChange: g, ActionsComponent: ne }), e[6] = h, e[7] = g, e[8] = t, e[9] = o, e[10] = f, e[11] = l, e[12] = m) : m = e[12], m;
268
+ let h;
269
+ return e[6] !== m || e[7] !== g || e[8] !== t || e[9] !== o || e[10] !== f || e[11] !== l ? (h = /* @__PURE__ */ p(fe, { component: "div", count: l, page: t, rowsPerPage: o, rowsPerPageOptions: f, onPageChange: m, onRowsPerPageChange: g, ActionsComponent: ne }), e[6] = m, e[7] = g, e[8] = t, e[9] = o, e[10] = f, e[11] = l, e[12] = h) : h = e[12], h;
269
270
  }
270
271
  function U(n) {
271
272
  const e = L(10);
@@ -295,7 +296,7 @@ function xe(n) {
295
296
  return e[0] !== n.children || e[1] !== t ? (o = /* @__PURE__ */ p(ge, { ref: t, children: n.children }), e[0] = n.children, e[1] = t, e[2] = o) : o = e[2], o;
296
297
  }
297
298
  const Ee = "local", Re = 0, q = 10, Oe = [5, 10, 25, 50], Q = null, X = "asc";
298
- function rt({
299
+ function ct({
299
300
  refUI: n
300
301
  }) {
301
302
  return [{
@@ -317,7 +318,7 @@ function rt({
317
318
  }
318
319
  }];
319
320
  }
320
- function ct(n = []) {
321
+ function at(n = []) {
321
322
  return {
322
323
  columns: n,
323
324
  selectable: !1,
@@ -325,7 +326,7 @@ function ct(n = []) {
325
326
  mode: Ee
326
327
  };
327
328
  }
328
- function at(n, e) {
329
+ function ft(n, e) {
329
330
  const t = L(50), o = D(Me), l = D(De);
330
331
  let i;
331
332
  t[0] !== n ? (i = ($) => !!$.widgets[n]?.pagination, t[0] = n, t[1] = i) : i = t[1];
@@ -336,15 +337,15 @@ function at(n, e) {
336
337
  let f;
337
338
  t[4] !== n ? (f = ($) => $.widgets[n]?.pagination?.rowsPerPage ?? q, t[4] = n, t[5] = f) : f = t[5];
338
339
  const a = D(w(f));
339
- let h;
340
- t[6] !== n ? (h = ($) => $.widgets[n]?.pagination?.rowsPerPageOptions ?? Oe, t[6] = n, t[7] = h) : h = t[7];
341
- const _ = D(w(h));
340
+ let m;
341
+ t[6] !== n ? (m = ($) => $.widgets[n]?.pagination?.rowsPerPageOptions ?? Oe, t[6] = n, t[7] = m) : m = t[7];
342
+ const _ = D(w(m));
342
343
  let g;
343
344
  t[8] !== e.length || t[9] !== n ? (g = ($) => $.widgets[n]?.pagination?.total ?? e.length, t[8] = e.length, t[9] = n, t[10] = g) : g = t[10];
344
- const m = D(w(g));
345
+ const h = D(w(g));
345
346
  let d;
346
347
  t[11] !== n ? (d = ($) => $.widgets[n]?.mode, t[11] = n, t[12] = d) : d = t[12];
347
- const S = D(w(d)), y = Math.max(0, Math.ceil(m / (a ?? 1)) - 1);
348
+ const S = D(w(d)), y = Math.max(0, Math.ceil(h / (a ?? 1)) - 1);
348
349
  let v;
349
350
  t[13] !== e.length || t[14] !== l || t[15] !== o || t[16] !== n ? (v = ($) => {
350
351
  const N = l(n), oe = N?.pagination?.total ?? e.length, le = N?.pagination?.rowsPerPage ?? q, ie = Math.max(0, Math.ceil(oe / le) - 1), se = Math.max(0, Math.min($, ie));
@@ -391,12 +392,12 @@ function at(n, e) {
391
392
  }
392
393
  const W = M;
393
394
  let F;
394
- return t[37] !== C || t[38] !== R || t[39] !== O || t[40] !== E || t[41] !== r || t[42] !== W || t[43] !== s || t[44] !== a || t[45] !== _ || t[46] !== P || t[47] !== T || t[48] !== m ? (F = {
395
+ return t[37] !== C || t[38] !== R || t[39] !== O || t[40] !== E || t[41] !== r || t[42] !== W || t[43] !== s || t[44] !== a || t[45] !== _ || t[46] !== P || t[47] !== T || t[48] !== h ? (F = {
395
396
  paginationEnabled: s,
396
397
  page: r,
397
398
  rowsPerPage: a,
398
399
  rowsPerPageOptions: _,
399
- total: m,
400
+ total: h,
400
401
  paginatedData: W,
401
402
  setPage: P,
402
403
  setRowsPerPage: T,
@@ -404,7 +405,7 @@ function at(n, e) {
404
405
  goToLastPage: R,
405
406
  goToNextPage: O,
406
407
  goToPreviousPage: E
407
- }, t[37] = C, t[38] = R, t[39] = O, t[40] = E, t[41] = r, t[42] = W, t[43] = s, t[44] = a, t[45] = _, t[46] = P, t[47] = T, t[48] = m, t[49] = F) : F = t[49], F;
408
+ }, t[37] = C, t[38] = R, t[39] = O, t[40] = E, t[41] = r, t[42] = W, t[43] = s, t[44] = a, t[45] = _, t[46] = P, t[47] = T, t[48] = h, t[49] = F) : F = t[49], F;
408
409
  }
409
410
  function De(n) {
410
411
  return n.getWidget;
@@ -412,7 +413,7 @@ function De(n) {
412
413
  function Me(n) {
413
414
  return n.setWidget;
414
415
  }
415
- function ft(n, e) {
416
+ function ut(n, e) {
416
417
  const t = L(31), o = D(Le), l = D(We);
417
418
  let i;
418
419
  t[0] !== n ? (i = (u) => !!u.widgets[n]?.sort, t[0] = n, t[1] = i) : i = t[1];
@@ -423,9 +424,9 @@ function ft(n, e) {
423
424
  let f;
424
425
  t[4] !== n ? (f = (u) => u.widgets[n]?.sort?.direction ?? X, t[4] = n, t[5] = f) : f = t[5];
425
426
  const a = D(w(f));
426
- let h;
427
- t[6] !== n ? (h = (u) => u.widgets[n]?.mode, t[6] = n, t[7] = h) : h = t[7];
428
- const _ = D(w(h));
427
+ let m;
428
+ t[6] !== n ? (m = (u) => u.widgets[n]?.mode, t[6] = n, t[7] = m) : m = t[7];
429
+ const _ = D(w(m));
429
430
  let g;
430
431
  t[8] !== l || t[9] !== o || t[10] !== n ? (g = (u) => {
431
432
  const C = l(n), k = C?.sort?.columnId ?? Q, R = C?.sort?.direction ?? X;
@@ -437,7 +438,7 @@ function ft(n, e) {
437
438
  }
438
439
  });
439
440
  }, t[8] = l, t[9] = o, t[10] = n, t[11] = g) : g = t[11];
440
- const m = g;
441
+ const h = g;
441
442
  let d;
442
443
  t[12] !== o || t[13] !== n ? (d = (u, C) => {
443
444
  o(n, {
@@ -471,15 +472,15 @@ function ft(n, e) {
471
472
  }
472
473
  const x = P;
473
474
  let T;
474
- return t[23] !== v || t[24] !== r || t[25] !== a || t[26] !== S || t[27] !== s || t[28] !== x || t[29] !== m ? (T = {
475
+ return t[23] !== v || t[24] !== r || t[25] !== a || t[26] !== S || t[27] !== s || t[28] !== x || t[29] !== h ? (T = {
475
476
  sortEnabled: s,
476
477
  columnId: r,
477
478
  direction: a,
478
479
  sortedData: x,
479
- toggleSort: m,
480
+ toggleSort: h,
480
481
  setSort: S,
481
482
  clearSort: v
482
- }, t[23] = v, t[24] = r, t[25] = a, t[26] = S, t[27] = s, t[28] = x, t[29] = m, t[30] = T) : T = t[30], T;
483
+ }, t[23] = v, t[24] = r, t[25] = a, t[26] = S, t[27] = s, t[28] = x, t[29] = h, t[30] = T) : T = t[30], T;
483
484
  }
484
485
  function We(n) {
485
486
  return n.getWidget;
@@ -487,7 +488,7 @@ function We(n) {
487
488
  function Le(n) {
488
489
  return n.setWidget;
489
490
  }
490
- function ut(n, e) {
491
+ function gt(n, e) {
491
492
  const t = L(46);
492
493
  let o;
493
494
  t[0] !== e ? (o = e ?? {}, t[0] = e, t[1] = o) : o = t[1];
@@ -500,12 +501,12 @@ function ut(n, e) {
500
501
  let f;
501
502
  t[4] !== r ? (f = r ?? [], t[4] = r, t[5] = f) : f = t[5];
502
503
  const a = f;
503
- let h;
504
- t[6] !== a ? (h = (b) => a.includes(b), t[6] = a, t[7] = h) : h = t[7];
505
- const _ = h;
504
+ let m;
505
+ t[6] !== a ? (m = (b) => a.includes(b), t[6] = a, t[7] = m) : m = t[7];
506
+ const _ = m;
506
507
  let g;
507
508
  t[8] !== a ? (g = (b) => b.length === 0 ? !1 : b.every((E) => a.includes(E.id)), t[8] = a, t[9] = g) : g = t[9];
508
- const m = g;
509
+ const h = g;
509
510
  let d;
510
511
  t[10] !== a ? (d = (b) => {
511
512
  if (b.length === 0)
@@ -555,17 +556,17 @@ function ut(n, e) {
555
556
  }, t[32] = l, t[33] = i, t[34] = n, t[35] = R) : R = t[35];
556
557
  const A = R;
557
558
  let O;
558
- return t[36] !== A || t[37] !== k || t[38] !== m || t[39] !== S || t[40] !== _ || t[41] !== u || t[42] !== a || t[43] !== x || t[44] !== v ? (O = {
559
+ return t[36] !== A || t[37] !== k || t[38] !== h || t[39] !== S || t[40] !== _ || t[41] !== u || t[42] !== a || t[43] !== x || t[44] !== v ? (O = {
559
560
  selectedIds: a,
560
561
  isSelected: _,
561
- isAllSelected: m,
562
+ isAllSelected: h,
562
563
  isIndeterminate: S,
563
564
  toggleRow: v,
564
565
  toggleAll: x,
565
566
  selectRows: u,
566
567
  deselectRows: k,
567
568
  clearSelection: A
568
- }, t[36] = A, t[37] = k, t[38] = m, t[39] = S, t[40] = _, t[41] = u, t[42] = a, t[43] = x, t[44] = v, t[45] = O) : O = t[45], O;
569
+ }, t[36] = A, t[37] = k, t[38] = h, t[39] = S, t[40] = _, t[41] = u, t[42] = a, t[43] = x, t[44] = v, t[45] = O) : O = t[45], O;
569
570
  }
570
571
  function we(n) {
571
572
  return n.id;
@@ -576,7 +577,7 @@ function Ne(n) {
576
577
  function je(n) {
577
578
  return n.setWidget;
578
579
  }
579
- function gt(n) {
580
+ function mt(n) {
580
581
  const e = L(10), {
581
582
  columns: t,
582
583
  rows: o
@@ -590,9 +591,9 @@ function gt(n) {
590
591
  length: i
591
592
  }), e[2] = i, e[3] = c) : c = e[3];
592
593
  let r;
593
- e[4] !== l || e[5] !== c ? (r = /* @__PURE__ */ p(ee, { children: c.map((a, h) => /* @__PURE__ */ p(G, { children: Array.from({
594
+ e[4] !== l || e[5] !== c ? (r = /* @__PURE__ */ p(ee, { children: c.map((a, m) => /* @__PURE__ */ p(G, { children: Array.from({
594
595
  length: l
595
- }).map(Fe) }, h)) }), e[4] = l, e[5] = c, e[6] = r) : r = e[6];
596
+ }).map(Fe) }, m)) }), e[4] = l, e[5] = c, e[6] = r) : r = e[6];
596
597
  let f;
597
598
  return e[7] !== s || e[8] !== r ? (f = /* @__PURE__ */ p(Z, { "aria-label": "Table skeleton", children: /* @__PURE__ */ z(V, { children: [
598
599
  s,
@@ -626,7 +627,7 @@ function He(n) {
626
627
  function ht(n) {
627
628
  return n?.map(He);
628
629
  }
629
- const mt = {
630
+ const pt = {
630
631
  container: {
631
632
  width: "100%",
632
633
  overflow: "auto"
@@ -664,18 +665,18 @@ export {
664
665
  ne as PaginationActions,
665
666
  Ae as Row,
666
667
  U as Table,
667
- gt as TableSkeleton,
668
+ mt as TableSkeleton,
668
669
  ye as compareValues,
669
670
  Se as getCellValue,
670
671
  ve as paginateData,
671
672
  ht as sanitizeTableData,
672
673
  He as sanitizeTableRow,
673
674
  Ce as sortData,
674
- ct as tableConfig,
675
- rt as tableDownloadConfig,
676
- mt as tableStyles,
677
- at as usePagination,
678
- ut as useSelection,
679
- ft as useSort
675
+ at as tableConfig,
676
+ ct as tableDownloadConfig,
677
+ pt as tableStyles,
678
+ ft as usePagination,
679
+ gt as useSelection,
680
+ ut as useSort
680
681
  };
681
682
  //# sourceMappingURL=table.js.map