@ynput/ayon-frontend-shared 0.5.0 → 0.6.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 (74) hide show
  1. package/dist/DetailsPanel.es.js +88 -86
  2. package/dist/Feed.es.js +22 -22
  3. package/dist/ListTable.es.js +77 -67
  4. package/dist/ProjectTreeTable.es.js +1164 -1150
  5. package/dist/Slicer.es.js +2 -2
  6. package/dist/Views.es.js +1 -1
  7. package/dist/api.es.js +331 -329
  8. package/dist/chunks/Actions.es.js +23 -23
  9. package/dist/chunks/DeleteEntitiesContext.es.js +115 -115
  10. package/dist/chunks/DetailsDialog.es.js +3 -3
  11. package/dist/chunks/DetailsPanelContext.es.js +155 -0
  12. package/dist/chunks/EntityPath.es.js +20 -20
  13. package/dist/chunks/EntityPickerDialog.es.js +1 -1
  14. package/dist/chunks/EntityTooltip.es.js +12 -12
  15. package/dist/chunks/EntityUpdatesContext.es.js +1 -1
  16. package/dist/chunks/Feed.es.js +2208 -2611
  17. package/dist/chunks/FilterErrorActions.es.js +1 -1
  18. package/dist/chunks/GlobalContext.es.js +14 -14
  19. package/dist/chunks/Menu.es.js +1 -1
  20. package/dist/chunks/MenuContext.es.js +51 -242
  21. package/dist/chunks/MenuItem.es.js +1 -1
  22. package/dist/chunks/MetaWidget.es.js +3341 -3899
  23. package/dist/chunks/NewEntityContext.es.js +40 -40
  24. package/dist/chunks/PlayableIcon.es.js +4261 -1163
  25. package/dist/chunks/ProjectContext.es.js +13 -13
  26. package/dist/chunks/ProjectFoldersContext.es.js +5 -5
  27. package/dist/chunks/RepresentationsList.es.js +3 -3
  28. package/dist/chunks/ReviewablesSelector.es.js +85 -76
  29. package/dist/chunks/SimpleForm.es.js +9 -9
  30. package/dist/chunks/SimpleTable.es.js +1 -1
  31. package/dist/chunks/Slicer.es.js +173 -171
  32. package/dist/chunks/TableSettingsFallback.es.js +6 -6
  33. package/dist/chunks/ThumbnailSimple.es.js +410 -61
  34. package/dist/chunks/VersionUploadContext.es.js +29 -29
  35. package/dist/chunks/ViewsContext.es.js +90 -90
  36. package/dist/chunks/Watchers.es.js +628 -598
  37. package/dist/chunks/entityDefinitions.es.js +31 -31
  38. package/dist/chunks/expandRelativeDates.es.js +27 -0
  39. package/dist/chunks/getBundleMode.es.js +16 -61
  40. package/dist/chunks/getUris.es.js +271 -269
  41. package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
  42. package/dist/chunks/searchTerms.es.js +177 -173
  43. package/dist/chunks/uriUtils.es.js +48 -0
  44. package/dist/chunks/useAttributeEnums.es.js +11 -11
  45. package/dist/chunks/useColumnDragRestriction.es.js +37 -27
  46. package/dist/chunks/useDateRangeFilter.es.js +3 -3
  47. package/dist/chunks/useLocalStorage.es.js +9 -9
  48. package/dist/chunks/useSessionStorage.es.js +61 -0
  49. package/dist/chunks/viewUpdateHelper.es.js +19 -19
  50. package/dist/components.es.js +165 -160
  51. package/dist/context.es.js +60 -58
  52. package/dist/hooks.es.js +104 -98
  53. package/dist/index.es.js +18 -13
  54. package/dist/types/Actions.d.ts +16 -16
  55. package/dist/types/ContextMenu.d.ts +16 -16
  56. package/dist/types/DetailsPanel.d.ts +16 -16
  57. package/dist/types/EntityPickerDialog.d.ts +16 -16
  58. package/dist/types/Feed.d.ts +16 -16
  59. package/dist/types/ListTable.d.ts +16 -16
  60. package/dist/types/NewEntity.d.ts +16 -16
  61. package/dist/types/ProjectTreeTable.d.ts +20 -16
  62. package/dist/types/RepresentationsList.d.ts +16 -16
  63. package/dist/types/SimpleTable.d.ts +16 -16
  64. package/dist/types/Slicer.d.ts +16 -16
  65. package/dist/types/Views.d.ts +17 -17
  66. package/dist/types/api.d.ts +391 -95
  67. package/dist/types/components.d.ts +79 -20
  68. package/dist/types/context.d.ts +60 -17
  69. package/dist/types/hooks.d.ts +16 -16
  70. package/dist/types/index.d.ts +16 -16
  71. package/dist/types/util.d.ts +16 -16
  72. package/dist/util.es.js +108 -97
  73. package/package.json +16 -4
  74. package/dist/chunks/mentionTypeOptions.es.js +0 -15
@@ -6,14 +6,24 @@ import { Button as ze, Icon as Ie } from "@ynput/ayon-react-components";
6
6
  import "./chunks/PlayableIcon.es.js";
7
7
  import "date-fns";
8
8
  import "uuid";
9
- import { j as Te, k as we, T as Ve, l as _e, m as ke } from "./chunks/MetaWidget.es.js";
9
+ import { i as Te, B as we, T as Ve, j as _e, k as ke } from "./chunks/MetaWidget.es.js";
10
10
  import "react-toastify";
11
11
  import "lodash";
12
12
  import "primereact/confirmdialog";
13
- import { bf as Le } from "./chunks/searchTerms.es.js";
13
+ import { bg as Le } from "./chunks/searchTerms.es.js";
14
+ import "lexical";
15
+ import "@lexical/markdown";
16
+ import "@lexical/react/LexicalBlockWithAlignableContents";
17
+ import "@lexical/react/LexicalDecoratorBlockNode";
18
+ import "match-sorter";
19
+ import "@lexical/code";
20
+ import "@lexical/list";
21
+ import "@lexical/rich-text";
22
+ import "@lexical/selection";
23
+ import "@lexical/utils";
24
+ import { dz as vt, dA as Ge } from "./chunks/getUris.es.js";
14
25
  import "react-router-dom";
15
26
  import "./chunks/ProjectContext.es.js";
16
- import { dy as vt, dz as Ge } from "./chunks/getUris.es.js";
17
27
  import { a as Me } from "./chunks/useCreateContextMenu.es.js";
18
28
  import "./chunks/DeleteEntitiesContext.es.js";
19
29
  import "./chunks/GlobalContext.es.js";
@@ -421,7 +431,7 @@ const Tt = C.tbody`
421
431
  gap: 2px;
422
432
  flex-shrink: 0;
423
433
  z-index: 1;
424
- `, fn = C.div`
434
+ `, mn = C.div`
425
435
  position: absolute;
426
436
  right: -3px;
427
437
  top: 0;
@@ -455,11 +465,11 @@ const Tt = C.tbody`
455
465
  stopEditing: u,
456
466
  updateValue: a
457
467
  }) => {
458
- const f = Array.isArray(t) ? t : t == null ? [] : [t];
468
+ const m = Array.isArray(t) ? t : t == null ? [] : [t];
459
469
  return /* @__PURE__ */ l(
460
470
  _e,
461
471
  {
462
- value: f,
472
+ value: m,
463
473
  options: e.enum || [],
464
474
  type: e.type,
465
475
  isEditing: o,
@@ -484,7 +494,7 @@ const Tt = C.tbody`
484
494
  getDraftValue: t.getDraftValue,
485
495
  setDraftValue: t.setDraftValue
486
496
  }
487
- ), mn = (t) => /* @__PURE__ */ l(
497
+ ), fn = (t) => /* @__PURE__ */ l(
488
498
  we,
489
499
  {
490
500
  value: !!t.value,
@@ -510,14 +520,14 @@ const Tt = C.tbody`
510
520
  string: Z,
511
521
  integer: Z,
512
522
  float: Z,
513
- boolean: mn,
523
+ boolean: fn,
514
524
  datetime: hn,
515
525
  list_of_strings: tt,
516
526
  list_of_integers: tt,
517
527
  list_of_any: tt,
518
528
  list_of_submodels: wt,
519
529
  dict: wt
520
- }, xo = () => bn, Kt = (t, e) => `list-table-cell-${t}-${e}`, yn = (t) => F(t), Vt = "editable", vn = (t) => !!t && typeof t == "object" && "__listTablePlaceholder" in t, Cn = ({
530
+ }, _o = () => bn, Kt = (t, e) => `list-table-cell-${t}-${e}`, yn = (t) => F(t), Vt = "editable", vn = (t) => !!t && typeof t == "object" && "__listTablePlaceholder" in t, Cn = ({
521
531
  cell: t,
522
532
  row: e,
523
533
  rowIndex: o,
@@ -525,7 +535,7 @@ const Tt = C.tbody`
525
535
  dataTypeWidgets: i,
526
536
  editingState: u,
527
537
  callbacks: a,
528
- isReadOnly: f
538
+ isReadOnly: m
529
539
  }) => {
530
540
  const d = r?.type;
531
541
  if (!d || !i?.[d])
@@ -542,7 +552,7 @@ const Tt = C.tbody`
542
552
  cellId: c,
543
553
  attributeData: r,
544
554
  isEditing: u.editingCellId === c,
545
- isReadOnly: f,
555
+ isReadOnly: m,
546
556
  startEditing: () => u.startEditingCell(c),
547
557
  stopEditing: u.stopEditingCell,
548
558
  updateValue: (h) => {
@@ -562,8 +572,8 @@ const Tt = C.tbody`
562
572
  callbacks: u,
563
573
  editable: a = !0
564
574
  }) => {
565
- const f = vn(t.original);
566
- if (f) {
575
+ const m = vn(t.original);
576
+ if (m) {
567
577
  const d = t.original && typeof t.original == "object" && "label" in t.original ? String(t.original.label ?? "") : "";
568
578
  return /* @__PURE__ */ l(zt, { style: { width: "100%" }, children: /* @__PURE__ */ l(
569
579
  It,
@@ -574,7 +584,7 @@ const Tt = C.tbody`
574
584
  ) }, `${t.id}-placeholder`);
575
585
  }
576
586
  return /* @__PURE__ */ l(xe, { children: t.getVisibleCells().map((d, E, R) => {
577
- const c = Kt(t.id, d.column.id), s = o?.[d.column.id], h = !!d.column.columnDef.meta?.listTableCustomCell, g = s?.type, m = !!g && !h, b = !!(g && r?.[g]), y = i.editingCellId === c, x = a && d.column.columnDef.meta?.editable !== !1, w = !m || f ? null : Cn({
587
+ const c = Kt(t.id, d.column.id), s = o?.[d.column.id], h = !!d.column.columnDef.meta?.listTableCustomCell, g = s?.type, f = !!g && !h, b = !!(g && r?.[g]), y = i.editingCellId === c, x = a && d.column.columnDef.meta?.editable !== !1, w = !f || m ? null : Cn({
578
588
  cell: d,
579
589
  row: t,
580
590
  rowIndex: t.index,
@@ -583,10 +593,10 @@ const Tt = C.tbody`
583
593
  editingState: i,
584
594
  callbacks: u,
585
595
  isReadOnly: !x
586
- }), I = !m || f ? ot(d.column.columnDef.cell, d.getContext()) : w ?? yn(d.getValue());
596
+ }), I = !f || m ? ot(d.column.columnDef.cell, d.getContext()) : w ?? yn(d.getValue());
587
597
  let v = I;
588
598
  e !== null && (e ? v = e(t, I) || I : v = /* @__PURE__ */ l(Je, { children: I }));
589
- const S = x && m && b && !f;
599
+ const S = x && f && b && !m;
590
600
  return S && (v = /* @__PURE__ */ l(
591
601
  qe,
592
602
  {
@@ -648,7 +658,7 @@ function Rn({
648
658
  depth: i,
649
659
  isExpanded: u,
650
660
  onToggle: a,
651
- virtualStart: f,
661
+ virtualStart: m,
652
662
  onContextMenu: d
653
663
  }) {
654
664
  const R = xn(t)?.baseColumnId ?? t, c = Dn(e) ? e : void 0, s = c?.value ?? e, h = c?.label ?? En(R, s);
@@ -656,7 +666,7 @@ function Rn({
656
666
  $t,
657
667
  {
658
668
  style: {
659
- transform: `translateY(${f}px)`,
669
+ transform: `translateY(${m}px)`,
660
670
  paddingLeft: i * 16
661
671
  },
662
672
  onClick: a,
@@ -697,7 +707,7 @@ function Sn({
697
707
  onRowClick: i,
698
708
  onRowDoubleClick: u,
699
709
  onRowContextMenu: a,
700
- cellWrapper: f,
710
+ cellWrapper: m,
701
711
  columnAttributeData: d,
702
712
  dataTypeWidgets: E,
703
713
  editingState: R,
@@ -705,9 +715,9 @@ function Sn({
705
715
  editable: s,
706
716
  isInactive: h
707
717
  }) {
708
- const g = P(t.original), m = kt(t.original), { transform: b, transition: y, setNodeRef: x, isDragging: w } = Ht({
718
+ const g = P(t.original), f = kt(t.original), { transform: b, transition: y, setNodeRef: x, isDragging: w } = Ht({
709
719
  id: t.id,
710
- disabled: g || m
720
+ disabled: g || f
711
721
  });
712
722
  if (g) {
713
723
  const S = t.original;
@@ -745,13 +755,13 @@ function Sn({
745
755
  dragging: w,
746
756
  selected: o,
747
757
  inactive: h,
748
- "placeholder-row": m
758
+ "placeholder-row": f
749
759
  }),
750
760
  children: /* @__PURE__ */ l(
751
761
  Wt,
752
762
  {
753
763
  row: t,
754
- cellWrapper: f,
764
+ cellWrapper: m,
755
765
  columnAttributeData: d,
756
766
  dataTypeWidgets: E,
757
767
  editingState: R,
@@ -771,11 +781,11 @@ function In({
771
781
  enableColumnResizing: i = !1,
772
782
  isLast: u = !1
773
783
  }) {
774
- const { attributes: a, listeners: f, setNodeRef: d, isDragging: E, transform: R, transition: c } = Ht({
784
+ const { attributes: a, listeners: m, setNodeRef: d, isDragging: E, transform: R, transition: c } = Ht({
775
785
  id: t.id,
776
786
  data: { type: "column" },
777
787
  disabled: !e
778
- }), s = t.column, h = o && s.getCanSort(), g = s.getIsSorted(), m = `list-table-menu-${t.id}`, { menuOpen: b } = Ue(), y = b === m, x = h ? [
788
+ }), s = t.column, h = o && s.getCanSort(), g = s.getIsSorted(), f = `list-table-menu-${t.id}`, { menuOpen: b } = Ue(), y = b === f, x = h ? [
779
789
  {
780
790
  id: "sort-asc",
781
791
  label: "Sort ascending",
@@ -820,11 +830,11 @@ function In({
820
830
  resizing: $,
821
831
  sorted: !!g
822
832
  }),
823
- ...e ? { ...a, ...f } : {},
833
+ ...e ? { ...a, ...m } : {},
824
834
  children: [
825
835
  /* @__PURE__ */ l(gn, { children: t.isPlaceholder ? null : ot(t.column.columnDef.header, t.getContext()) }),
826
836
  (v.length > 0 || h) && /* @__PURE__ */ M(pn, { ...B, children: [
827
- v.length > 0 && /* @__PURE__ */ l(Be, { menuItems: v, menuId: m, className: "header-menu" }),
837
+ v.length > 0 && /* @__PURE__ */ l(Be, { menuItems: v, menuId: f, className: "header-menu" }),
828
838
  h && /* @__PURE__ */ l(
829
839
  Ye,
830
840
  {
@@ -839,7 +849,7 @@ function In({
839
849
  )
840
850
  ] }),
841
851
  S && /* @__PURE__ */ l(
842
- fn,
852
+ mn,
843
853
  {
844
854
  className: A("resize-handle", { resizing: z }),
845
855
  style: { transform: H ? `translateX(${H}px)` : void 0 },
@@ -879,15 +889,15 @@ function wn({
879
889
  rowVirtualizer: i,
880
890
  tableContainerRef: u
881
891
  }) {
882
- const [a, f] = L(-1), d = At(-1), E = O(
892
+ const [a, m] = L(-1), d = At(-1), E = O(
883
893
  (c, s, h) => {
884
894
  const g = t[s];
885
895
  if (!(g && W(g))) {
886
896
  if (r && h.shiftKey && d.current >= 0) {
887
- const m = Math.min(d.current, s), b = Math.max(d.current, s), y = t.slice(m, b + 1).filter((x) => !W(x)).map((x) => x.id);
897
+ const f = Math.min(d.current, s), b = Math.max(d.current, s), y = t.slice(f, b + 1).filter((x) => !W(x)).map((x) => x.id);
888
898
  h.metaKey || h.ctrlKey ? o?.(Array.from(/* @__PURE__ */ new Set([...e, ...y]))) : o?.(y);
889
- } else r && (h.metaKey || h.ctrlKey) ? (e.includes(c) ? o?.(e.filter((m) => m !== c)) : o?.([...e, c]), d.current = s) : e.includes(c) ? o?.(e.filter((m) => m !== c)) : (o?.([c]), d.current = s);
890
- f(s), u.current?.focus();
899
+ } else r && (h.metaKey || h.ctrlKey) ? (e.includes(c) ? o?.(e.filter((f) => f !== c)) : o?.([...e, c]), d.current = s) : e.includes(c) ? o?.(e.filter((f) => f !== c)) : (o?.([c]), d.current = s);
900
+ m(s), u.current?.focus();
891
901
  }
892
902
  },
893
903
  [e, t, o, r, u]
@@ -906,17 +916,17 @@ function wn({
906
916
  break;
907
917
  }
908
918
  if (g === a || W(t[g])) return;
909
- const m = t[g]?.id;
910
- if (m) {
919
+ const f = t[g]?.id;
920
+ if (f) {
911
921
  if (c.shiftKey && r)
912
- if (e.includes(m)) {
922
+ if (e.includes(f)) {
913
923
  const b = t[a]?.id;
914
924
  b && o?.(e.filter((y) => y !== b));
915
925
  } else
916
- o?.([...e, m]);
926
+ o?.([...e, f]);
917
927
  else
918
- o?.([m]), d.current = g;
919
- f(g), i.scrollToIndex(g, { behavior: "smooth" });
928
+ o?.([f]), d.current = g;
929
+ m(g), i.scrollToIndex(g, { behavior: "smooth" });
920
930
  }
921
931
  },
922
932
  [a, t, e, o, i]
@@ -924,8 +934,8 @@ function wn({
924
934
  return { activeRowIndex: a, handleRowClick: E, handleKeyDown: R };
925
935
  }
926
936
  function Vn() {
927
- const [t, e] = L(null), [o, r] = L(null), i = O((f) => {
928
- e(f);
937
+ const [t, e] = L(null), [o, r] = L(null), i = O((m) => {
938
+ e(m);
929
939
  }, []), u = O(() => {
930
940
  e(null), r(null);
931
941
  }, []);
@@ -947,14 +957,14 @@ function _n({
947
957
  setColumnOrder: r,
948
958
  onColumnOrderChange: i
949
959
  }) {
950
- const [u, a] = L(null), [f, d] = L(null);
960
+ const [u, a] = L(null), [m, d] = L(null);
951
961
  return {
952
962
  sensors: He(
953
963
  Ct(Oe),
954
964
  Ct($e, { coordinateGetter: Ke })
955
965
  ),
956
966
  activeRowId: u,
957
- activeColumnId: f,
967
+ activeColumnId: m,
958
968
  handleColumnDragStart: (b) => {
959
969
  d(b.active.id);
960
970
  },
@@ -994,7 +1004,7 @@ function kn(t) {
994
1004
  }, [o, e]);
995
1005
  }
996
1006
  const Ln = (t) => t ? Array.isArray(t) ? t.filter(Boolean) : [t] : [];
997
- function Do({
1007
+ function ko({
998
1008
  data: t,
999
1009
  columns: e,
1000
1010
  getRowId: o,
@@ -1002,7 +1012,7 @@ function Do({
1002
1012
  hasNextPage: i,
1003
1013
  isFetchingNextPage: u,
1004
1014
  onUpdateRow: a,
1005
- onOpenViewer: f,
1015
+ onOpenViewer: m,
1006
1016
  editable: d = !0,
1007
1017
  onReorderRows: E,
1008
1018
  rowContextMenuBuilders: R = [],
@@ -1010,7 +1020,7 @@ function Do({
1010
1020
  selectedRows: s = [],
1011
1021
  onSelectedRowsChange: h,
1012
1022
  multiSelection: g = !1,
1013
- cellWrapper: m,
1023
+ cellWrapper: f,
1014
1024
  columnAttributeData: b,
1015
1025
  dataTypeWidgets: y,
1016
1026
  enableColumnReordering: x = !1,
@@ -1086,7 +1096,7 @@ function Do({
1086
1096
  getRowCanExpand: (n) => n.subRows.length > 0,
1087
1097
  meta: {
1088
1098
  updateData: a,
1089
- openViewerDialog: f
1099
+ openViewerDialog: m
1090
1100
  }
1091
1101
  }), { rows: _ } = N.getRowModel(), X = Ae({
1092
1102
  count: i ? _.length + 1 : _.length,
@@ -1146,20 +1156,20 @@ function Do({
1146
1156
  [R, _, s, h, rt]
1147
1157
  ), { editingState: gt } = Vn(), {
1148
1158
  sensors: pt,
1149
- activeRowId: ft,
1150
- activeColumnId: mt,
1159
+ activeRowId: mt,
1160
+ activeColumnId: ft,
1151
1161
  handleColumnDragStart: pe,
1152
- handleColumnDragEnd: fe,
1153
- handleColumnDragCancel: me,
1162
+ handleColumnDragEnd: me,
1163
+ handleColumnDragCancel: fe,
1154
1164
  handleRowDragStart: he,
1155
1165
  handleRowDragEnd: be,
1156
1166
  handleRowDragCancel: ye
1157
- } = _n({ rows: _, columnOrder: ct, onReorderRows: E, setColumnOrder: ut, onColumnOrderChange: I }), ht = et(() => ({ onUpdateRow: a, onOpenViewer: f }), [a, f]), ve = kn(N), Ce = !!N.getState().columnSizingInfo.isResizingColumn;
1167
+ } = _n({ rows: _, columnOrder: ct, onReorderRows: E, setColumnOrder: ut, onColumnOrderChange: I }), ht = et(() => ({ onUpdateRow: a, onOpenViewer: m }), [a, m]), ve = kn(N), Ce = !!N.getState().columnSizingInfo.isResizingColumn;
1158
1168
  Mt(() => {
1159
1169
  const [n] = J.slice(-1);
1160
1170
  n && n.index >= _.length - 1 && i && !u && r?.();
1161
1171
  }, [i, r, _.length, u, J]);
1162
- const q = ft ? _.find((n) => n.id === ft) : null, j = mt ? N.getHeaderGroups()[0]?.headers.find((n) => n.id === mt) : null;
1172
+ const q = mt ? _.find((n) => n.id === mt) : null, j = ft ? N.getHeaderGroups()[0]?.headers.find((n) => n.id === ft) : null;
1163
1173
  return /* @__PURE__ */ l(
1164
1174
  Qe,
1165
1175
  {
@@ -1174,8 +1184,8 @@ function Do({
1174
1184
  sensors: pt,
1175
1185
  collisionDetection: Dt,
1176
1186
  onDragStart: pe,
1177
- onDragEnd: fe,
1178
- onDragCancel: me,
1187
+ onDragEnd: me,
1188
+ onDragCancel: fe,
1179
1189
  modifiers: [Ne],
1180
1190
  children: [
1181
1191
  /* @__PURE__ */ l(tn, { children: N.getHeaderGroups().map((n) => /* @__PURE__ */ l(en, { children: /* @__PURE__ */ l(
@@ -1250,7 +1260,7 @@ function Do({
1250
1260
  onRowClick: de,
1251
1261
  onRowDoubleClick: c ? ue : void 0,
1252
1262
  onRowContextMenu: R.length > 0 ? ge : void 0,
1253
- cellWrapper: m,
1263
+ cellWrapper: f,
1254
1264
  columnAttributeData: b,
1255
1265
  dataTypeWidgets: y,
1256
1266
  editingState: gt,
@@ -1279,7 +1289,7 @@ function Do({
1279
1289
  Wt,
1280
1290
  {
1281
1291
  row: q,
1282
- cellWrapper: m,
1292
+ cellWrapper: f,
1283
1293
  columnAttributeData: b,
1284
1294
  dataTypeWidgets: y,
1285
1295
  editingState: gt,
@@ -1311,38 +1321,38 @@ const Pt = (t) => !!t && typeof t == "object" && ("label" in t || "value" in t),
1311
1321
  }), o.forEach((i) => {
1312
1322
  i.subRows = Ft(i.subRows, e);
1313
1323
  }), [...o, ...r];
1314
- }, Eo = (t, e, o, r, i, u) => {
1315
- const a = [], f = (d, E, R, c) => {
1324
+ }, Lo = (t, e, o, r, i, u) => {
1325
+ const a = [], m = (d, E, R, c) => {
1316
1326
  if (!R.length) {
1317
1327
  d.push(E);
1318
1328
  return;
1319
1329
  }
1320
1330
  const [s, ...h] = R, g = r(s, E) ?? [u(E, s)];
1321
1331
  if (!g.length) {
1322
- f(d, E, h, c);
1332
+ m(d, E, h, c);
1323
1333
  return;
1324
1334
  }
1325
- const m = (b, y, x) => {
1335
+ const f = (b, y, x) => {
1326
1336
  const w = g[y], I = Gn(w), v = `${x}|${s}:${y}:${JSON.stringify(I)}`;
1327
1337
  let S = b.find(
1328
1338
  (z) => nt(z) && z.__groupKey === v
1329
1339
  );
1330
1340
  if (S || (S = i(s, v, w), b.push(S)), y < g.length - 1) {
1331
- m(S.subRows, y + 1, v);
1341
+ f(S.subRows, y + 1, v);
1332
1342
  return;
1333
1343
  }
1334
- f(S.subRows, E, h, v);
1344
+ m(S.subRows, E, h, v);
1335
1345
  };
1336
- m(d, 0, c);
1346
+ f(d, 0, c);
1337
1347
  };
1338
- return t.forEach((d) => f(a, d, e, "root")), Ft(a, o);
1348
+ return t.forEach((d) => m(a, d, e, "root")), Ft(a, o);
1339
1349
  };
1340
1350
  export {
1341
- Do as ListTable,
1342
- Eo as buildGroupedData,
1351
+ ko as ListTable,
1352
+ Lo as buildGroupedData,
1343
1353
  Mn as compareGroupingPathItems,
1344
1354
  bn as defaultListTableDataTypeWidgets,
1345
- xo as getDefaultListTableDataTypeWidgets,
1355
+ _o as getDefaultListTableDataTypeWidgets,
1346
1356
  Gn as getGroupItemValue,
1347
1357
  Kt as getListTableCellId,
1348
1358
  Pt as isListTableGroupDisplayObject,