@carto/ps-react-ui 5.0.0-widgets.6 → 5.0.0-widgets.8

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.
@@ -1 +1 @@
1
- export declare function mergeWidgetConfig<T>(...options: [T | undefined, T | undefined]): T;
1
+ export declare function mergeWidgetConfig<T>(...options: [Partial<T> | undefined, Partial<T> | undefined]): T;
@@ -1,5 +1,11 @@
1
1
  import { ConfigProps } from '../root/types';
2
- import { TableDownloadConfig, TableWidgetConfig, TableColumn } from './types';
2
+ import { TableDownloadConfig, TableWidgetConfig, TableColumn, Mode, SortDirection } from './types';
3
+ export declare const DEFAULT_MODE: Mode;
4
+ export declare const DEFAULT_PAGE = 0;
5
+ export declare const DEFAULT_ROWS_PER_PAGE = 10;
6
+ export declare const DEFAULT_ROWS_PER_PAGE_OPTIONS: number[];
7
+ export declare const DEFAULT_COLUMN_ID: null;
8
+ export declare const DEFAULT_DIRECTION: SortDirection;
3
9
  /**
4
10
  * Default table download configuration
5
11
  * Supports PNG export (screenshot) and CSV export (data)
@@ -1,13 +1,7 @@
1
1
  import { TableRow } from '../types';
2
- export interface UsePaginationOptions {
3
- /** Available rows per page options */
4
- rowsPerPageOptions?: number[];
5
- /** Total rows (for remote pagination) */
6
- total?: number;
7
- /** Callback when page changes (for remote pagination) */
8
- onPageChange?: (page: number, rowsPerPage: number) => void;
9
- }
10
2
  export interface UsePaginationResult<T> {
3
+ /** Whether pagination is enabled */
4
+ paginationEnabled: boolean;
11
5
  /** Current page (0-indexed) */
12
6
  page: number;
13
7
  /** Rows per page */
@@ -36,4 +30,4 @@ export interface UsePaginationResult<T> {
36
30
  * Supports both local (client-side) and remote (server-side) pagination
37
31
  * State is persisted in the widget store for the given widgetId
38
32
  */
39
- export declare function usePagination<T extends TableRow>(widgetId: string, data: T[], options: UsePaginationOptions): UsePaginationResult<T>;
33
+ export declare function usePagination<T extends TableRow>(widgetId: string, data: T[]): UsePaginationResult<T>;
@@ -3,9 +3,12 @@ export interface UseSortOptions {
3
3
  /** Callback when sort changes (for remote sorting) */
4
4
  onSortChange?: (columnId: string, direction: SortDirection) => void;
5
5
  }
6
- export interface UseSortResult<T> {
6
+ export interface UseSortResult<T> extends SortState {
7
+ /** Whether sorting is enabled */
8
+ sortEnabled: boolean;
7
9
  /** Current sort state */
8
- sortState: SortState;
10
+ columnId: string | null;
11
+ direction: SortDirection;
9
12
  /** Sorted data (for local mode) */
10
13
  sortedData: T[];
11
14
  /** Toggle sort on a column */
@@ -20,4 +23,4 @@ export interface UseSortResult<T> {
20
23
  * Supports both local (client-side) and remote (server-side) sorting
21
24
  * State is persisted in the widget store for the given widgetId
22
25
  */
23
- export declare function useSort<T extends TableRow>(widgetId: string, data: T[], options: UseSortOptions): UseSortResult<T>;
26
+ export declare function useSort<T extends TableRow>(widgetId: string, data: T[], options?: UseSortOptions): UseSortResult<T>;
@@ -9,5 +9,5 @@ export { TableSkeleton } from './skeleton';
9
9
  export { sanitizeTableRow, sanitizeTableData } from './serializer';
10
10
  export { getCellValue, compareValues, sortData, paginateData } from './helpers';
11
11
  export { styles as tableStyles } from './style';
12
- export type { TableUIProps, TableColumn, TableRow, TableWidgetData, TablePaginationState, SortDirection, SortState, PaginationMode, SortMode, TableWidgetConfig, TableWidgetState, TableDownloadConfig, TableProps, CellHeaderProps, RowProps, PaginationProps, PaginationActionsProps, } from './types';
12
+ export type { TableUIProps, TableColumn, TableRow, TableWidgetData, TablePaginationState, SortDirection, SortState, Mode, TableWidgetConfig, TableWidgetState, TableDownloadConfig, TableProps, CellHeaderProps, RowProps, PaginationProps, PaginationActionsProps, } from './types';
13
13
  export type { UsePaginationOptions, UsePaginationResult, UseSortOptions, UseSortResult, UseSelectionOptions, UseSelectionResult, } from './hooks';
@@ -63,13 +63,9 @@ export interface SortState {
63
63
  direction: SortDirection;
64
64
  }
65
65
  /**
66
- * Pagination mode
66
+ * Pagination and sort mode
67
67
  */
68
- export type PaginationMode = 'local' | 'remote';
69
- /**
70
- * Sort mode
71
- */
72
- export type SortMode = 'local' | 'remote';
68
+ export type Mode = 'local' | 'remote';
73
69
  /**
74
70
  * Table widget configuration
75
71
  */
@@ -80,25 +76,25 @@ export interface TableWidgetConfig {
80
76
  selectable?: boolean;
81
77
  /** Currently selected row IDs */
82
78
  selected: Set<string | number>;
79
+ /** Pagination and sort mode: local (client-side) or remote (server-side) */
80
+ mode: Mode;
83
81
  /** Pagination configuration */
84
82
  pagination?: {
85
- /** Pagination mode: local (client-side) or remote (server-side) */
86
- mode: PaginationMode;
83
+ /** Current page (0-indexed) */
84
+ page?: number;
87
85
  /** Available rows per page options */
88
86
  rowsPerPageOptions?: number[];
89
87
  /** Default rows per page */
90
- defaultRowsPerPage?: number;
88
+ rowsPerPage?: number;
91
89
  /** Total rows for remote pagination */
92
90
  total?: number;
93
91
  };
94
92
  /** Sort configuration */
95
93
  sort?: {
96
- /** Sort mode: local (client-side) or remote (server-side) */
97
- mode: SortMode;
98
94
  /** Default sort column */
99
- defaultColumnId?: string;
95
+ columnId: string | null;
100
96
  /** Default sort direction */
101
- defaultDirection?: SortDirection;
97
+ direction?: SortDirection;
102
98
  };
103
99
  /** Callback when a row is clicked */
104
100
  onRowClick?: (row: TableRow) => void;
@@ -114,20 +110,8 @@ export interface TableWidgetConfig {
114
110
  /**
115
111
  * Table widget state - includes both configuration and runtime state
116
112
  */
117
- export type TableWidgetState = BaseWidgetState<WrapperState<TableWidgetConfig> & {
113
+ export type TableWidgetState = BaseWidgetState<WrapperState<TableWidgetConfig & {}> & {
118
114
  data: TableWidgetData;
119
- pagination?: {
120
- page: number;
121
- rowsPerPage: number;
122
- rowsPerPageOptions: number[];
123
- mode: PaginationMode;
124
- total?: number;
125
- };
126
- sort?: {
127
- columnId: string | null;
128
- direction: SortDirection;
129
- mode: SortMode;
130
- };
131
115
  }>;
132
116
  /**
133
117
  * Table download configuration
@@ -1,8 +1,8 @@
1
1
  import { jsx as g, jsxs as X, Fragment as ce } from "react/jsx-runtime";
2
- import { c as K } from "react/compiler-runtime";
3
- import { IconButton as q, DialogContent as Se, Typography as ve, DialogTitle as Ie, Dialog as Ce, CircularProgress as _e, MenuItem as ge, ListItemIcon as Te, ListItemText as pe, Menu as he, useTheme as ke, Box as ye, TextField as xe, InputAdornment as de, SvgIcon as Ee } from "@mui/material";
2
+ import { c as U } from "react/compiler-runtime";
3
+ import { IconButton as q, DialogContent as Se, Typography as ve, DialogTitle as Ie, Dialog as Ce, CircularProgress as _e, MenuItem as me, ListItemIcon as Te, ListItemText as ge, Menu as pe, useTheme as ke, Box as ye, TextField as xe, InputAdornment as ae, SvgIcon as Ee } from "@mui/material";
4
4
  import { u as O } from "../widget-store-Dd7_sWZT.js";
5
- import { FullscreenOutlined as Le, Close as we, FileDownloadOutlined as ze, PercentOutlined as $e, SubdirectoryArrowLeftOutlined as We, ZoomInOutlined as De, CheckBoxOutlined as Oe, SearchOutlined as be, ClearOutlined as Re } from "@mui/icons-material";
5
+ import { FullscreenOutlined as Le, Close as we, FileDownloadOutlined as ze, PercentOutlined as $e, SubdirectoryArrowLeftOutlined as We, ZoomInOutlined as De, CheckBoxOutlined as Oe, SearchOutlined as he, ClearOutlined as Re } from "@mui/icons-material";
6
6
  import { useShallow as Q } from "zustand/shallow";
7
7
  import { useState as re, useEffect as j, useRef as se } from "react";
8
8
  import "react-markdown";
@@ -11,10 +11,10 @@ import "../lasso-tool-CYn3ivf-.js";
11
11
  import "../cjs-D9ro6BXv.js";
12
12
  import { T as ee } from "../tooltip-BDnrRKrp.js";
13
13
  import { b as Pe, a as Be, D as Fe } from "../utils-Dv5Z47UQ.js";
14
- import { useSensors as Ae, useSensor as ue, PointerSensor as Ve, KeyboardSensor as Ze, DndContext as Me, closestCenter as He } from "@dnd-kit/core";
14
+ import { useSensors as Ae, useSensor as de, PointerSensor as Ve, KeyboardSensor as Ze, DndContext as Me, closestCenter as He } from "@dnd-kit/core";
15
15
  import { useSortable as je, sortableKeyboardCoordinates as Ge, arrayMove as Ne, SortableContext as Ue, verticalListSortingStrategy as Ke } from "@dnd-kit/sortable";
16
16
  import { CSS as Ye } from "@dnd-kit/utilities";
17
- const fe = {
17
+ const ue = {
18
18
  title: {
19
19
  container: {
20
20
  display: "flex",
@@ -32,7 +32,7 @@ const fe = {
32
32
  }
33
33
  };
34
34
  function Yt(l) {
35
- const e = K(46), {
35
+ const e = U(46), {
36
36
  id: t,
37
37
  labels: L,
38
38
  children: S,
@@ -91,13 +91,13 @@ function Yt(l) {
91
91
  let h;
92
92
  e[25] !== _ ? (h = /* @__PURE__ */ g(q, { onClick: _, children: W }), e[25] = _, e[26] = h) : h = e[26];
93
93
  let I;
94
- e[27] !== E || e[28] !== C || e[29] !== h ? (I = /* @__PURE__ */ X(Ie, { id: E, sx: fe.title.container, children: [
94
+ e[27] !== E || e[28] !== C || e[29] !== h ? (I = /* @__PURE__ */ X(Ie, { id: E, sx: ue.title.container, children: [
95
95
  C,
96
96
  h
97
97
  ] }), e[27] = E, e[28] = C, e[29] = h, e[30] = I) : I = e[30];
98
98
  let y;
99
99
  e[31] !== f ? (y = {
100
- ...fe.content,
100
+ ...ue.content,
101
101
  ...f
102
102
  }, e[31] = f, e[32] = y) : y = e[32];
103
103
  let z;
@@ -117,7 +117,7 @@ function qe(l) {
117
117
  return l.setWidget;
118
118
  }
119
119
  function qt(l) {
120
- const e = K(35), {
120
+ const e = U(35), {
121
121
  id: t,
122
122
  items: L,
123
123
  labels: S,
@@ -174,16 +174,16 @@ function qt(l) {
174
174
  let $;
175
175
  if (e[23] !== m || e[24] !== L) {
176
176
  let D;
177
- e[26] !== m ? (D = (P) => /* @__PURE__ */ X(ge, { disabled: P.disabled, onClick: (F) => void m(F, P), children: [
177
+ e[26] !== m ? (D = (P) => /* @__PURE__ */ X(me, { disabled: P.disabled, onClick: (F) => void m(F, P), children: [
178
178
  P.icon && /* @__PURE__ */ g(Te, { sx: {
179
179
  color: "text.primary"
180
180
  }, children: P.icon }),
181
- /* @__PURE__ */ g(pe, { children: P.label })
181
+ /* @__PURE__ */ g(ge, { children: P.label })
182
182
  ] }, P.id), e[26] = m, e[27] = D) : D = e[27], $ = L.map(D), e[23] = m, e[24] = L, e[25] = $;
183
183
  } else
184
184
  $ = e[25];
185
185
  let R;
186
- e[28] !== T || e[29] !== I || e[30] !== $ ? (R = /* @__PURE__ */ g(he, { variant: "menu", elevation: 8, anchorOrigin: W, transformOrigin: h, anchorEl: T, open: I, onClose: y, MenuListProps: z, children: $ }), e[28] = T, e[29] = I, e[30] = $, e[31] = R) : R = e[31];
186
+ e[28] !== T || e[29] !== I || e[30] !== $ ? (R = /* @__PURE__ */ g(pe, { variant: "menu", elevation: 8, anchorOrigin: W, transformOrigin: h, anchorEl: T, open: I, onClose: y, MenuListProps: z, children: $ }), e[28] = T, e[29] = I, e[30] = $, e[31] = R) : R = e[31];
187
187
  let A;
188
188
  return e[32] !== _ || e[33] !== R ? (A = /* @__PURE__ */ X(ce, { children: [
189
189
  _,
@@ -210,7 +210,7 @@ function Qe(l, e) {
210
210
  }
211
211
  const ie = "relative-data";
212
212
  function Jt(l) {
213
- const e = K(35), {
213
+ const e = U(35), {
214
214
  id: t,
215
215
  order: L,
216
216
  defaultIsRelative: S,
@@ -271,7 +271,7 @@ function nt(l) {
271
271
  function ot(l) {
272
272
  return l.setWidget;
273
273
  }
274
- const me = {
274
+ const fe = {
275
275
  container: {
276
276
  display: "flex",
277
277
  alignItems: "center",
@@ -286,7 +286,7 @@ const me = {
286
286
  }
287
287
  };
288
288
  function Qt(l) {
289
- const e = K(59), {
289
+ const e = U(59), {
290
290
  id: t,
291
291
  defaultZoom: L,
292
292
  defaultZoomStart: S,
@@ -308,13 +308,13 @@ function Qt(l) {
308
308
  inside: !0,
309
309
  xSlider: !0,
310
310
  ySlider: !1
311
- }, T), U = n(t)?.option;
311
+ }, T), Y = n(t)?.option;
312
312
  p(t, {
313
313
  zoom: B,
314
314
  zoomStart: Z,
315
315
  zoomEnd: N,
316
316
  option: {
317
- ...U,
317
+ ...Y,
318
318
  ...J
319
319
  }
320
320
  });
@@ -359,16 +359,16 @@ function Qt(l) {
359
359
  let V;
360
360
  e[39] !== x ? (V = x ?? /* @__PURE__ */ g(De, {}), e[39] = x, e[40] = V) : V = e[40];
361
361
  let M;
362
- e[41] !== u || e[42] !== _ || e[43] !== F || e[44] !== V || e[45] !== o ? (M = /* @__PURE__ */ g(q, { size: "small", "aria-label": F, onClick: _, sx: me.trigger, "data-active": o, ...u, children: V }), e[41] = u, e[42] = _, e[43] = F, e[44] = V, e[45] = o, e[46] = M) : M = e[46];
362
+ e[41] !== u || e[42] !== _ || e[43] !== F || e[44] !== V || e[45] !== o ? (M = /* @__PURE__ */ g(q, { size: "small", "aria-label": F, onClick: _, sx: fe.trigger, "data-active": o, ...u, children: V }), e[41] = u, e[42] = _, e[43] = F, e[44] = V, e[45] = o, e[46] = M) : M = e[46];
363
363
  let H;
364
364
  e[47] !== M || e[48] !== P ? (H = /* @__PURE__ */ g(ee, { title: P, children: M }), e[47] = M, e[48] = P, e[49] = H) : H = e[49];
365
365
  let G;
366
366
  e[50] !== u || e[51] !== d || e[52] !== h || e[53] !== D || e[54] !== o ? (G = o && /* @__PURE__ */ g(ee, { title: D, children: /* @__PURE__ */ g(q, { size: "small", "aria-label": D, onClick: h, ...u, children: d ?? /* @__PURE__ */ g(We, {}) }) }), e[50] = u, e[51] = d, e[52] = h, e[53] = D, e[54] = o, e[55] = G) : G = e[55];
367
- let Y;
368
- return e[56] !== H || e[57] !== G ? (Y = /* @__PURE__ */ X(ye, { sx: me.container, children: [
367
+ let K;
368
+ return e[56] !== H || e[57] !== G ? (K = /* @__PURE__ */ X(ye, { sx: fe.container, children: [
369
369
  H,
370
370
  G
371
- ] }), e[56] = H, e[57] = G, e[58] = Y) : Y = e[58], Y;
371
+ ] }), e[56] = H, e[57] = G, e[58] = K) : K = e[58], K;
372
372
  }
373
373
  function st(l) {
374
374
  return l.getWidget;
@@ -377,12 +377,12 @@ function it(l) {
377
377
  return l.setWidget;
378
378
  }
379
379
  const rt = () => {
380
- const l = K(1);
380
+ const l = U(1);
381
381
  let e;
382
382
  return l[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ g("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ g("path", { d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z", fill: "currentColor" }) }), l[0] = e) : e = l[0], e;
383
383
  };
384
384
  function Xt(l) {
385
- const e = K(30), {
385
+ const e = U(30), {
386
386
  id: t,
387
387
  defaultIsStacked: L,
388
388
  labels: S,
@@ -458,7 +458,7 @@ function dt(l) {
458
458
  }
459
459
  const le = "lock-selection";
460
460
  function el(l) {
461
- const e = K(37), {
461
+ const e = U(37), {
462
462
  id: t,
463
463
  selectedItems: L,
464
464
  order: S,
@@ -539,7 +539,7 @@ function bt(l, e) {
539
539
  }
540
540
  const te = "searcher", St = 300;
541
541
  function tl(l) {
542
- const e = K(49), {
542
+ const e = U(49), {
543
543
  id: t,
544
544
  filterFn: L,
545
545
  order: S,
@@ -549,12 +549,12 @@ function tl(l) {
549
549
  debounceDelay: d
550
550
  } = l, u = S === void 0 ? 20 : S, f = d === void 0 ? St : d, s = se(null), r = se(null);
551
551
  let T;
552
- e[0] !== t ? (T = (U) => U.getWidget(t), e[0] = t, e[1] = T) : T = e[1];
552
+ e[0] !== t ? (T = (Y) => Y.getWidget(t), e[0] = t, e[1] = T) : T = e[1];
553
553
  const p = O(T), n = p?.isSearchEnabled ?? !1, a = p?.searchText ?? "", o = se(n), c = L ?? kt, i = O(Tt), m = O(_t), w = O(Ct), k = O(It), E = O(vt);
554
554
  let C;
555
- e[2] !== t || e[3] !== i ? (C = (U) => {
555
+ e[2] !== t || e[3] !== i ? (C = (Y) => {
556
556
  i(t, {
557
- searchText: U
557
+ searchText: Y
558
558
  });
559
559
  }, e[2] = t, e[3] = i, e[4] = C) : C = e[4];
560
560
  const _ = C;
@@ -563,9 +563,9 @@ function tl(l) {
563
563
  id: te,
564
564
  order: u,
565
565
  enabled: n,
566
- fn: async (U, oe) => {
567
- const ae = oe?.searchText || "";
568
- return ae ? c(U, ae) : U;
566
+ fn: async (Y, oe) => {
567
+ const be = oe?.searchText || "";
568
+ return c(Y, be);
569
569
  },
570
570
  config: {
571
571
  searchText: a
@@ -577,10 +577,10 @@ function tl(l) {
577
577
  k(t, te, n);
578
578
  }, y = [t, n, k], e[14] = n, e[15] = t, e[16] = k, e[17] = I, e[18] = y) : (I = e[17], y = e[18]), j(I, y);
579
579
  let z;
580
- e[19] !== f || e[20] !== t || e[21] !== E ? (z = (U) => {
580
+ e[19] !== f || e[20] !== t || e[21] !== E ? (z = (Y) => {
581
581
  r.current && clearTimeout(r.current), r.current = setTimeout(() => {
582
582
  E(t, te, {
583
- searchText: U
583
+ searchText: Y
584
584
  });
585
585
  }, f);
586
586
  }, e[19] = f, e[20] = t, e[21] = E, e[22] = z) : z = e[22];
@@ -594,8 +594,8 @@ function tl(l) {
594
594
  r.current && clearTimeout(r.current);
595
595
  }, P = [], e[26] = D, e[27] = P) : (D = e[26], P = e[27]), j(D, P);
596
596
  let F;
597
- e[28] !== $ || e[29] !== _ ? (F = (U) => {
598
- const oe = U.target.value;
597
+ e[28] !== $ || e[29] !== _ ? (F = (Y) => {
598
+ const oe = Y.target.value;
599
599
  _(oe), $(oe);
600
600
  }, e[28] = $, e[29] = _, e[30] = F) : F = e[30];
601
601
  const V = F;
@@ -608,11 +608,11 @@ function tl(l) {
608
608
  const H = M;
609
609
  if (!n)
610
610
  return null;
611
- const G = v?.placeholder ?? "Search...", Y = v?.clearAriaLabel ?? "Clear search";
611
+ const G = v?.placeholder ?? "Search...", K = v?.clearAriaLabel ?? "Clear search";
612
612
  let B;
613
- e[35] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ g(de, { position: "start", children: /* @__PURE__ */ g(be, {}) }), e[35] = B) : B = e[35];
613
+ e[35] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ g(ae, { position: "start", children: /* @__PURE__ */ g(he, {}) }), e[35] = B) : B = e[35];
614
614
  let Z;
615
- e[36] !== x || e[37] !== Y || e[38] !== H || e[39] !== a ? (Z = a ? /* @__PURE__ */ g(de, { position: "end", children: /* @__PURE__ */ g(q, { size: "small", "aria-label": Y, onClick: H, edge: "end", children: x ?? /* @__PURE__ */ g(Re, { fontSize: "small" }) }) }) : null, e[36] = x, e[37] = Y, e[38] = H, e[39] = a, e[40] = Z) : Z = e[40];
615
+ e[36] !== x || e[37] !== K || e[38] !== H || e[39] !== a ? (Z = a ? /* @__PURE__ */ g(ae, { position: "end", children: /* @__PURE__ */ g(q, { size: "small", "aria-label": K, onClick: H, edge: "end", children: x ?? /* @__PURE__ */ g(Re, { fontSize: "small" }) }) }) : null, e[36] = x, e[37] = K, e[38] = H, e[39] = a, e[40] = Z) : Z = e[40];
616
616
  let N;
617
617
  e[41] !== Z ? (N = {
618
618
  startAdornment: B,
@@ -642,7 +642,7 @@ const kt = (l, e) => {
642
642
  return Promise.resolve(l.map((L) => L.filter((S) => Object.values(S).some((v) => typeof v == "string" && v.toLowerCase().includes(t)))));
643
643
  };
644
644
  function ll(l) {
645
- const e = K(23), {
645
+ const e = U(23), {
646
646
  id: t,
647
647
  defaultEnabled: L,
648
648
  labels: S,
@@ -666,7 +666,7 @@ function ll(l) {
666
666
  }, e[8] = t, e[9] = r, e[10] = d, e[11] = n) : n = e[11];
667
667
  const a = n, o = r ? S?.disable ?? "Disable search" : S?.enable ?? "Enable search", c = S?.ariaLabel ?? o;
668
668
  let i;
669
- e[12] !== v ? (i = v ?? /* @__PURE__ */ g(be, { fontSize: "small" }), e[12] = v, e[13] = i) : i = e[13];
669
+ e[12] !== v ? (i = v ?? /* @__PURE__ */ g(he, { fontSize: "small" }), e[12] = v, e[13] = i) : i = e[13];
670
670
  let m;
671
671
  e[14] !== b || e[15] !== c || e[16] !== a || e[17] !== r || e[18] !== i ? (m = /* @__PURE__ */ g(q, { size: "small", "aria-label": c, onClick: a, sx: ne.trigger, "data-active": r, ...b, children: i }), e[14] = b, e[15] = c, e[16] = a, e[17] = r, e[18] = i, e[19] = m) : m = e[19];
672
672
  let w;
@@ -679,12 +679,12 @@ function xt(l) {
679
679
  return l.setWidget;
680
680
  }
681
681
  const Et = () => {
682
- const l = K(1);
682
+ const l = U(1);
683
683
  let e;
684
684
  return l[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 18 18", children: /* @__PURE__ */ g("path", { fill: "currentColor", fillRule: "evenodd", d: "M14.25 2.25H3.75c-.825 0-1.5.675-1.5 1.5v10.5c0 .825.675 1.5 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5V3.75c0-.825-.675-1.5-1.5-1.5m-3.75 12h-3V3.75h3zM3.75 3.75H6v10.5H3.75zM12 14.25V3.75h2.25v10.5z", clipRule: "evenodd" }) }), l[0] = e) : e = l[0], e;
685
685
  };
686
686
  function Lt(l) {
687
- const e = K(18), {
687
+ const e = U(18), {
688
688
  column: t
689
689
  } = l;
690
690
  let L;
@@ -718,15 +718,15 @@ function Lt(l) {
718
718
  }
719
719
  }, e[9] = n) : n = e[9];
720
720
  let a;
721
- e[10] !== t.label ? (a = /* @__PURE__ */ g(pe, { children: t.label }), e[10] = t.label, e[11] = a) : a = e[11];
721
+ e[10] !== t.label ? (a = /* @__PURE__ */ g(ge, { children: t.label }), e[10] = t.label, e[11] = a) : a = e[11];
722
722
  let o;
723
- return e[12] !== S || e[13] !== v || e[14] !== b || e[15] !== p || e[16] !== a ? (o = /* @__PURE__ */ g(ge, { ref: b, style: p, ...S, ...v, role: "menuitem", tabIndex: 0, sx: n, children: a }), e[12] = S, e[13] = v, e[14] = b, e[15] = p, e[16] = a, e[17] = o) : o = e[17], o;
723
+ return e[12] !== S || e[13] !== v || e[14] !== b || e[15] !== p || e[16] !== a ? (o = /* @__PURE__ */ g(me, { ref: b, style: p, ...S, ...v, role: "menuitem", tabIndex: 0, sx: n, children: a }), e[12] = S, e[13] = v, e[14] = b, e[15] = p, e[16] = a, e[17] = o) : o = e[17], o;
724
724
  }
725
725
  function wt(l) {
726
726
  return `2px solid ${l.palette.primary.main}`;
727
727
  }
728
728
  function nl(l) {
729
- const e = K(42), {
729
+ const e = U(42), {
730
730
  id: t,
731
731
  labels: L,
732
732
  Icon: S,
@@ -740,7 +740,7 @@ function nl(l) {
740
740
  e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = {
741
741
  coordinateGetter: Ge
742
742
  }, e[2] = r) : r = e[2];
743
- const T = Ae(ue(Ve), ue(Ze, r));
743
+ const T = Ae(de(Ve), de(Ze, r));
744
744
  let p;
745
745
  e[3] !== s ? (p = s?.map($t) ?? [], e[3] = s, e[4] = p) : p = e[4];
746
746
  const n = p;
@@ -762,9 +762,9 @@ function nl(l) {
762
762
  } = V;
763
763
  if (!H || M.id === H.id || !s)
764
764
  return;
765
- const G = s.findIndex((B) => B.id === M.id), Y = s.findIndex((B) => B.id === H.id);
766
- if (G !== -1 && Y !== -1) {
767
- const B = Ne(s, G, Y);
765
+ const G = s.findIndex((B) => B.id === M.id), K = s.findIndex((B) => B.id === H.id);
766
+ if (G !== -1 && K !== -1) {
767
+ const B = Ne(s, G, K);
768
768
  u(t, {
769
769
  columns: B
770
770
  });
@@ -793,7 +793,7 @@ function nl(l) {
793
793
  let A;
794
794
  e[27] !== n || e[28] !== R ? (A = /* @__PURE__ */ g(Ue, { items: n, strategy: Ke, children: R }), e[27] = n, e[28] = R, e[29] = A) : A = e[29];
795
795
  let D;
796
- e[30] !== b || e[31] !== x || e[32] !== E || e[33] !== A ? (D = /* @__PURE__ */ g(he, { id: "change-column-menu", anchorEl: x, open: E, onClose: i, anchorOrigin: z, transformOrigin: $, ...b, children: A }), e[30] = b, e[31] = x, e[32] = E, e[33] = A, e[34] = D) : D = e[34];
796
+ e[30] !== b || e[31] !== x || e[32] !== E || e[33] !== A ? (D = /* @__PURE__ */ g(pe, { id: "change-column-menu", anchorEl: x, open: E, onClose: i, anchorOrigin: z, transformOrigin: $, ...b, children: A }), e[30] = b, e[31] = x, e[32] = E, e[33] = A, e[34] = D) : D = e[34];
797
797
  let P;
798
798
  e[35] !== w || e[36] !== T || e[37] !== D ? (P = /* @__PURE__ */ g(Me, { sensors: T, collisionDetection: He, onDragEnd: w, children: D }), e[35] = w, e[36] = T, e[37] = D, e[38] = P) : P = e[38];
799
799
  let F;