@ynput/ayon-frontend-shared 0.3.10 → 0.3.11

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 (21) hide show
  1. package/dist/api.cjs.js +1 -1
  2. package/dist/api.es.js +123 -122
  3. package/dist/shared/src/api/queries/tasks/updateTasks.cjs.js +1 -1
  4. package/dist/shared/src/api/queries/tasks/updateTasks.cjs.js.map +1 -1
  5. package/dist/shared/src/api/queries/tasks/updateTasks.es.js +40 -22
  6. package/dist/shared/src/api/queries/tasks/updateTasks.es.js.map +1 -1
  7. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
  8. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
  9. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +93 -93
  10. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
  11. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js +4 -4
  12. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js.map +1 -1
  13. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js +226 -226
  14. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js.map +1 -1
  15. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.cjs.js +1 -1
  16. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.cjs.js.map +1 -1
  17. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.es.js +25 -24
  18. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.es.js.map +1 -1
  19. package/dist/types/api/queries/entityLists/types.d.ts +1 -0
  20. package/dist/types/api/queries/tasks/updateTasks.d.ts +7 -0
  21. package/package.json +1 -1
@@ -178,7 +178,7 @@ import "../DetailsPanel/components/TabHeaderAndFilters/TabHeaderAndFilters.style
178
178
  import "../Feed/components/ActivityCategorySelect/ActivityCategorySelect.es.js";
179
179
  import "../Feed/components/ActivityCategorySelect/CategoryDropdownItem.es.js";
180
180
  import "@tanstack/react-virtual";
181
- import { getCellId as N, getCellValue as k } from "./utils/cellUtils.es.js";
181
+ import { getCellId as P, getCellValue as k } from "./utils/cellUtils.es.js";
182
182
  import { TableCellContent as H, LinkColumnHeader as w } from "./ProjectTreeTable.styled.es.js";
183
183
  import { SelectionCell as ii } from "./components/SelectionCell.es.js";
184
184
  import ei from "./components/RowSelectionHeader.es.js";
@@ -190,7 +190,7 @@ import "./context/ProjectTableQueriesContext.es.js";
190
190
  import "./context/ProjectTableContext.es.js";
191
191
  import "./context/ClipboardContext.es.js";
192
192
  import { useColumnSettingsContext as ri } from "./context/ColumnSettingsContext.es.js";
193
- import { NEXT_PAGE_ID as h } from "./hooks/useBuildGroupByTableData.es.js";
193
+ import { NEXT_PAGE_ID as h, parseGroupId as ai } from "./hooks/useBuildGroupByTableData.es.js";
194
194
  import "./context/SelectedRowsContext.es.js";
195
195
  import "./context/DetailsPanelEntityContext.es.js";
196
196
  import "./context/ProjectDataContext.es.js";
@@ -199,8 +199,8 @@ import "../../../../_virtual/semver.es.js";
199
199
  import "react-redux";
200
200
  import "custom-protocol-check";
201
201
  import "./components/GroupSettingsFallback.es.js";
202
- import ai from "./widgets/LoadMoreWidget.es.js";
203
- import { getColumnDisplayConfig as oi } from "./types/columnConfig.es.js";
202
+ import oi from "./widgets/LoadMoreWidget.es.js";
203
+ import { getColumnDisplayConfig as li } from "./types/columnConfig.es.js";
204
204
  import "./components/HeaderActionButton.es.js";
205
205
  import "./components/ColumnHeaderMenu.es.js";
206
206
  import "../EntityPickerDialog/EntityPickerDialog.es.js";
@@ -264,11 +264,11 @@ import "../../components/Menu/Menu.styled.es.js";
264
264
  import "../../components/Menu/MenuItem.es.js";
265
265
  import "./widgets/EmptyWidget.es.js";
266
266
  import "./widgets/ErrorWidget.es.js";
267
- import { MetaWidget as li } from "./widgets/MetaWidget.es.js";
268
- const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, ...c) => d.original.isLoading !== g.original.isLoading ? d.original.isLoading ? 1 : -1 : l(d, g, ...c), D = (l, d) => {
267
+ import { MetaWidget as si } from "./widgets/MetaWidget.es.js";
268
+ const pi = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, ...c) => d.original.isLoading !== g.original.isLoading ? d.original.isLoading ? 1 : -1 : l(d, g, ...c), N = (l, d) => {
269
269
  const g = l.original.path || l.original.name || "", c = d.original.path || d.original.name || "";
270
270
  return g.localeCompare(c);
271
- }, U = (l, d, g) => {
271
+ }, G = (l, d, g) => {
272
272
  const c = k(l.original, g), C = k(d.original, g), R = Array.isArray(c) ? c.length : c ? String(c).length : 0, L = Array.isArray(C) ? C.length : C ? String(C).length : 0;
273
273
  return R - L;
274
274
  }, F = (l, d, g, c) => {
@@ -277,7 +277,7 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
277
277
  const L = c.enum.findIndex((z) => z.value === C);
278
278
  return c.enum.findIndex((z) => z.value === R) - L < 0 ? 1 : -1;
279
279
  } else return c?.type === "datetime" ? O.datetime(l, d, g) : c?.type === "boolean" ? (C === !0 ? 1 : 0) - (R === !0 ? 1 : 0) : O.alphanumeric(l, d, g);
280
- }, pi = (l, d) => `${l.linkType.charAt(0).toUpperCase() + l.linkType.slice(1)} (${d})`, B = (l, d) => `${l.name.replaceAll("_", "").replaceAll("-", "").replaceAll("|", "_")}_${d}`, di = (l, d) => `link_${B(l, d)}`, pa = ({
280
+ }, di = (l, d) => `${l.linkType.charAt(0).toUpperCase() + l.linkType.slice(1)} (${d})`, U = (l, d) => `${l.name.replaceAll("_", "").replaceAll("-", "").replaceAll("|", "_")}_${d}`, mi = (l, d) => `link_${U(l, d)}`, da = ({
281
281
  scopes: l,
282
282
  attribs: d,
283
283
  links: g = [],
@@ -285,12 +285,12 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
285
285
  showHierarchy: C,
286
286
  options: R,
287
287
  excluded: L,
288
- excludedSorting: P,
288
+ excludedSorting: D,
289
289
  extraColumns: z,
290
290
  groupBy: K,
291
- nameLabel: G = "Entity"
291
+ nameLabel: B = "Entity"
292
292
  }) => {
293
- const y = [], m = (i) => !L?.includes(i), I = (i) => !P?.includes(i);
293
+ const y = [], m = (i) => !L?.includes(i), I = (i) => !D?.includes(i);
294
294
  m(W) && y.push({
295
295
  id: W,
296
296
  enableResizing: !1,
@@ -311,7 +311,7 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
311
311
  if (i.original.entityType === "group" || i.original.metaType) return null;
312
312
  const n = t.options.meta;
313
313
  if (!n) return null;
314
- const a = N(i.id, e.id);
314
+ const o = P(i.id, e.id);
315
315
  let r = {
316
316
  entityId: i.original.entityId || i.id,
317
317
  entityType: i.original.entityType,
@@ -320,7 +320,7 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
320
320
  return i.original.thumbnail && (r = i.original.thumbnail), /* @__PURE__ */ s.jsx(
321
321
  J,
322
322
  {
323
- id: a,
323
+ id: o,
324
324
  entityId: r.entityId,
325
325
  entityType: r.entityType,
326
326
  updatedAt: r.updatedAt,
@@ -336,15 +336,15 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
336
336
  }), m("name") && y.push({
337
337
  id: "name",
338
338
  accessorKey: "name",
339
- header: G,
339
+ header: B,
340
340
  minSize: T,
341
- sortingFn: v(D),
341
+ sortingFn: v(N),
342
342
  enableSorting: K ? !1 : I("name"),
343
343
  enableResizing: !0,
344
344
  enablePinning: !0,
345
345
  enableHiding: !K,
346
346
  cell: ({ row: i, column: e, table: t }) => {
347
- const { value: n, id: a, type: r } = f(i, e.id), o = t.options.meta, { isEditing: p } = ti(), { rowHeight: x = 40 } = ri(), S = N(i.id, e.id);
347
+ const { value: n, id: o, type: r } = f(i, e.id), a = t.options.meta, { isEditing: p } = ti(), { rowHeight: x = 40 } = ri(), S = P(i.id, e.id);
348
348
  if (i.original.metaType)
349
349
  return /* @__PURE__ */ s.jsx(
350
350
  H,
@@ -356,18 +356,18 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
356
356
  pointerEvents: "none"
357
357
  },
358
358
  tabIndex: 0,
359
- children: /* @__PURE__ */ s.jsx(li, { metaType: i.original.metaType, label: i.original.label })
359
+ children: /* @__PURE__ */ s.jsx(si, { metaType: i.original.metaType, label: i.original.label })
360
360
  }
361
361
  );
362
362
  if (i.original.entityType === h && i.original.group)
363
363
  return /* @__PURE__ */ s.jsx(
364
- ai,
364
+ oi,
365
365
  {
366
366
  id: i.original.group.value,
367
- onLoadMore: (M) => o?.loadMoreRows?.(M)
367
+ onLoadMore: (M) => a?.loadMoreRows?.(M)
368
368
  }
369
369
  );
370
- const E = i.getCanExpand() && !!i.originalSubRows && (si(i.original.entityType) || !!i.original.group);
370
+ const E = i.getCanExpand() && !!i.originalSubRows && (pi(i.original.entityType) || !!i.original.group);
371
371
  return /* @__PURE__ */ s.jsxs(
372
372
  H,
373
373
  {
@@ -406,31 +406,31 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
406
406
  type: i.original.entityType,
407
407
  isExpandable: E,
408
408
  isExpanded: i.getIsExpanded(),
409
- toggleExpandAll: () => o?.toggleExpandAll?.([i.id]),
409
+ toggleExpandAll: () => a?.toggleExpandAll?.([i.id]),
410
410
  toggleExpanded: i.getToggleExpandedHandler(),
411
411
  rowHeight: x,
412
- columnDisplayConfig: oi(o?.columnsConfig, "name")
412
+ columnDisplayConfig: li(a?.columnsConfig, "name")
413
413
  }
414
414
  ),
415
415
  p(S) && /* @__PURE__ */ s.jsx(
416
416
  b,
417
417
  {
418
- rowId: a,
418
+ rowId: o,
419
419
  className: u("name", { loading: i.original.isLoading }),
420
420
  columnId: e.id,
421
421
  value: n,
422
422
  valueData: {
423
423
  name: i.original.name,
424
424
  label: i.original.label,
425
- meta: o,
426
- entityRowId: a,
425
+ meta: a,
426
+ entityRowId: o,
427
427
  columnId: e.id,
428
428
  hasVersions: !!i.original.hasVersions
429
429
  },
430
430
  entityType: r,
431
431
  attributeData: { type: "name" },
432
432
  isCollapsed: !!i.original.childOnlyMatch,
433
- isReadOnly: o?.readOnly?.includes(e.id)
433
+ isReadOnly: a?.readOnly?.includes(e.id)
434
434
  }
435
435
  )
436
436
  ]
@@ -451,22 +451,22 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
451
451
  enablePinning: !0,
452
452
  enableHiding: !0,
453
453
  cell: ({ row: i, column: e, table: t }) => {
454
- const { value: n, id: a, type: r } = f(i, e.id), o = t.options.meta;
454
+ const { value: n, id: o, type: r } = f(i, e.id), a = t.options.meta;
455
455
  return ["group", h].includes(r) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
456
456
  b,
457
457
  {
458
- rowId: a,
458
+ rowId: o,
459
459
  className: u("status", { loading: i.original.isLoading }),
460
460
  columnId: e.id,
461
461
  value: n,
462
462
  attributeData: { type: "string" },
463
- options: o?.options?.status.filter((p) => p.scope?.includes(r)),
463
+ options: a?.options?.status.filter((p) => p.scope?.includes(r)),
464
464
  isCollapsed: !!i.original.childOnlyMatch,
465
- onChange: (p) => o?.updateEntities?.(
466
- { field: e.id, value: p, type: r, rowId: a },
467
- { selection: o?.selection }
465
+ onChange: (p) => a?.updateEntities?.(
466
+ { field: e.id, value: p, type: r, rowId: o },
467
+ { selection: a?.selection }
468
468
  ),
469
- isReadOnly: o?.readOnly?.includes(e.id) || _(r),
469
+ isReadOnly: a?.readOnly?.includes(e.id) || _(r),
470
470
  pt: {
471
471
  enum: {
472
472
  pt: {
@@ -496,13 +496,13 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
496
496
  enableHiding: !0,
497
497
  sortingFn: v(O.alphanumeric),
498
498
  cell: ({ row: i, column: e, table: t }) => {
499
- const { value: n, id: a, type: r } = f(i, e.id);
499
+ const { value: n, id: o, type: r } = f(i, e.id);
500
500
  if (["group", h].includes(r) || i.original.metaType) return null;
501
- const o = N(i.id, e.id);
501
+ const a = P(i.id, e.id);
502
502
  return /* @__PURE__ */ s.jsxs(
503
503
  H,
504
504
  {
505
- id: o,
505
+ id: a,
506
506
  className: u("entityType", ni, r, { loading: i.original.isLoading }),
507
507
  tabIndex: 0,
508
508
  children: [
@@ -526,13 +526,13 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
526
526
  (i, e, t) => F(i, e, t, { enum: [...R.folderType, ...R.taskType], type: "string" })
527
527
  ),
528
528
  cell: ({ row: i, column: e, table: t }) => {
529
- const { value: n, id: a, type: r } = f(i, e.id);
529
+ const { value: n, id: o, type: r } = f(i, e.id);
530
530
  if (["group", h].includes(r) || i.original.metaType) return null;
531
- const o = r === "folder" ? "folderType" : "taskType", p = t.options.meta, x = r === "folder" && i.original.hasVersions;
531
+ const a = r === "folder" ? "folderType" : "taskType", p = t.options.meta, x = r === "folder" && i.original.hasVersions;
532
532
  return /* @__PURE__ */ s.jsx(
533
533
  b,
534
534
  {
535
- rowId: a,
535
+ rowId: o,
536
536
  className: u("subType", { loading: i.original.isLoading }),
537
537
  columnId: e.id,
538
538
  value: n,
@@ -540,10 +540,10 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
540
540
  options: r === "folder" ? p?.options?.folderType : r === "task" ? p?.options?.taskType : [],
541
541
  isCollapsed: !!i.original.childOnlyMatch,
542
542
  onChange: (S) => p?.updateEntities?.(
543
- { field: o, value: S, type: r, rowId: i.id },
543
+ { field: a, value: S, type: r, rowId: i.id },
544
544
  { selection: p?.selection }
545
545
  ),
546
- isReadOnly: p?.readOnly?.includes(e.id) || p?.readOnly?.includes(o) || x,
546
+ isReadOnly: p?.readOnly?.includes(e.id) || p?.readOnly?.includes(a) || x,
547
547
  tooltip: x ? "Folder type cannot be edited when versions exist within the folder" : void 0
548
548
  }
549
549
  );
@@ -557,10 +557,10 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
557
557
  enableResizing: !0,
558
558
  enablePinning: !0,
559
559
  enableHiding: !0,
560
- sortingFn: v(U),
560
+ sortingFn: v(G),
561
561
  cell: ({ row: i, column: e, table: t }) => {
562
- const n = t.options.meta, { value: a, id: r, type: o } = f(i, e.id);
563
- return ["group", h].includes(o) || i.original.metaType ? null : o === "folder" ? /* @__PURE__ */ s.jsx(
562
+ const n = t.options.meta, { value: o, id: r, type: a } = f(i, e.id);
563
+ return ["group", h].includes(a) || i.original.metaType ? null : a === "folder" ? /* @__PURE__ */ s.jsx(
564
564
  b,
565
565
  {
566
566
  rowId: r,
@@ -575,18 +575,18 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
575
575
  rowId: r,
576
576
  className: u("assignees", { loading: i.original.isLoading }),
577
577
  columnId: e.id,
578
- value: a,
578
+ value: o,
579
579
  attributeData: { type: "list_of_strings" },
580
580
  options: n?.options?.assignee,
581
581
  isCollapsed: !!i.original.childOnlyMatch,
582
582
  onChange: (p) => n?.updateEntities?.(
583
- { field: e.id, value: p, type: o, rowId: i.id },
583
+ { field: e.id, value: p, type: a, rowId: i.id },
584
584
  { selection: n?.selection }
585
585
  ),
586
- isReadOnly: n?.readOnly?.includes(e.id) || _(o),
586
+ isReadOnly: n?.readOnly?.includes(e.id) || _(a),
587
587
  pt: {
588
588
  enum: {
589
- multiSelectClose: a?.length === 0,
589
+ multiSelectClose: o?.length === 0,
590
590
  // close the dropdown on first assignment
591
591
  search: !0,
592
592
  // enable search at all times
@@ -606,11 +606,11 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
606
606
  enablePinning: !0,
607
607
  enableHiding: !0,
608
608
  cell: ({ row: i, column: e, table: t }) => {
609
- const { value: n, id: a, type: r } = f(i, e.id);
609
+ const { value: n, id: o, type: r } = f(i, e.id);
610
610
  return ["group", h].includes(r) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
611
611
  b,
612
612
  {
613
- rowId: a,
613
+ rowId: o,
614
614
  className: u("folder", { loading: i.original.isLoading }),
615
615
  columnId: e.id,
616
616
  value: n,
@@ -628,20 +628,20 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
628
628
  enableResizing: !0,
629
629
  enablePinning: !0,
630
630
  enableHiding: !0,
631
- sortingFn: v(D),
631
+ sortingFn: v(N),
632
632
  cell: ({ row: i, column: e, table: t }) => {
633
- const n = t.options.meta, { value: a, id: r, type: o } = f(i, e.id);
634
- return ["group", h].includes(o) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
633
+ const n = t.options.meta, { value: o, id: r, type: a } = f(i, e.id);
634
+ return ["group", h].includes(a) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
635
635
  b,
636
636
  {
637
637
  rowId: r,
638
638
  className: u("author", { loading: i.original.isLoading }),
639
639
  columnId: e.id,
640
- value: [a],
640
+ value: [o],
641
641
  attributeData: { type: "list_of_strings" },
642
642
  options: n?.options?.assignee,
643
643
  isReadOnly: !0,
644
- isInherited: o === "product"
644
+ isInherited: a === "product"
645
645
  }
646
646
  );
647
647
  }
@@ -654,10 +654,10 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
654
654
  enableResizing: !0,
655
655
  enablePinning: !0,
656
656
  enableHiding: !0,
657
- sortingFn: v(D),
657
+ sortingFn: v(N),
658
658
  cell: ({ row: i, column: e }) => {
659
- const { value: t, id: n, type: a } = f(i, e.id);
660
- if (["group", h].includes(a) || i.original.metaType) return null;
659
+ const { value: t, id: n, type: o } = f(i, e.id);
660
+ if (["group", h].includes(o) || i.original.metaType) return null;
661
661
  let r = i.original.versionName || t;
662
662
  return i.original.entityType === "product" && (r = `${i.original.versionName} (${i.original.versionsCount || 0} versions)`), /* @__PURE__ */ s.jsx(
663
663
  b,
@@ -680,10 +680,10 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
680
680
  enableResizing: !0,
681
681
  enablePinning: !0,
682
682
  enableHiding: !0,
683
- sortingFn: v(D),
683
+ sortingFn: v(N),
684
684
  cell: ({ row: i, column: e }) => {
685
- const { value: t, id: n, type: a } = f(i, e.id);
686
- return ["group", h].includes(a) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
685
+ const { value: t, id: n, type: o } = f(i, e.id);
686
+ return ["group", h].includes(o) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
687
687
  b,
688
688
  {
689
689
  rowId: n,
@@ -704,24 +704,24 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
704
704
  enableResizing: !0,
705
705
  enablePinning: !0,
706
706
  enableHiding: !0,
707
- sortingFn: v(U),
707
+ sortingFn: v(G),
708
708
  cell: ({ row: i, column: e, table: t }) => {
709
- const n = t.options.meta, { value: a, id: r, type: o } = f(i, e.id);
710
- return ["group", h].includes(o) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
709
+ const n = t.options.meta, { value: o, id: r, type: a } = f(i, e.id);
710
+ return ["group", h].includes(a) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
711
711
  b,
712
712
  {
713
713
  rowId: r,
714
714
  className: u("tags", { loading: i.original.isLoading }),
715
715
  columnId: e.id,
716
- value: a,
716
+ value: o,
717
717
  attributeData: { type: "list_of_strings" },
718
718
  options: n?.options?.tag,
719
719
  isCollapsed: !!i.original.childOnlyMatch,
720
720
  onChange: (p) => n?.updateEntities?.(
721
- { field: e.id, value: p, type: o, rowId: i.id },
721
+ { field: e.id, value: p, type: a, rowId: i.id },
722
722
  { selection: n?.selection }
723
723
  ),
724
- isReadOnly: n?.readOnly?.includes(e.id) || _(o),
724
+ isReadOnly: n?.readOnly?.includes(e.id) || _(a),
725
725
  enableCustomValues: !0
726
726
  }
727
727
  );
@@ -737,8 +737,8 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
737
737
  enableHiding: !0,
738
738
  sortingFn: v(O.datetime),
739
739
  cell: ({ row: i, column: e }) => {
740
- const { value: t, id: n, type: a } = f(i, e.id);
741
- return ["group", h].includes(a) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
740
+ const { value: t, id: n, type: o } = f(i, e.id);
741
+ return ["group", h].includes(o) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
742
742
  b,
743
743
  {
744
744
  rowId: n,
@@ -763,8 +763,8 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
763
763
  enableHiding: !0,
764
764
  sortingFn: v(O.datetime),
765
765
  cell: ({ row: i, column: e }) => {
766
- const { value: t, id: n, type: a } = f(i, e.id);
767
- return ["group", h].includes(a) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
766
+ const { value: t, id: n, type: o } = f(i, e.id);
767
+ return ["group", h].includes(o) || i.original.metaType ? null : /* @__PURE__ */ s.jsx(
768
768
  b,
769
769
  {
770
770
  rowId: n,
@@ -788,12 +788,12 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
788
788
  enablePinning: !0,
789
789
  enableHiding: !0,
790
790
  cell: ({ row: i, column: e, table: t }) => {
791
- const n = t.options.meta, { value: a, id: r, type: o } = f(i, e.id);
792
- if (["group", h].includes(o) || i.original.metaType) return null;
793
- N(r, e.id);
791
+ const n = t.options.meta, { value: o, id: r, type: a } = f(i, e.id);
792
+ if (["group", h].includes(a) || i.original.metaType) return null;
793
+ if (a !== "task") return /* @__PURE__ */ s.jsx("div", { className: "readonly" });
794
794
  const p = {
795
- taskId: r,
796
- subtasks: a || []
795
+ taskId: ai(i.id) || i.original.entityId || i.original.id,
796
+ subtasks: o || []
797
797
  };
798
798
  return /* @__PURE__ */ s.jsx(
799
799
  b,
@@ -819,13 +819,13 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
819
819
  header: i.data.title || i.name,
820
820
  minSize: T,
821
821
  filterFn: "fuzzy",
822
- sortingFn: v((t, n, a) => F(t, n, a, i.data)),
822
+ sortingFn: v((t, n, o) => F(t, n, o, i.data)),
823
823
  enableSorting: I(i.name) && I("attrib"),
824
824
  enableResizing: !0,
825
825
  enablePinning: !0,
826
826
  enableHiding: !0,
827
- cell: ({ row: t, column: n, table: a }) => {
828
- const r = a.options.meta, o = n.id.replace("attrib_", ""), { value: p, id: x, type: S } = f(t, o, "attrib"), E = !t.original.ownAttrib?.includes(o);
827
+ cell: ({ row: t, column: n, table: o }) => {
828
+ const r = o.options.meta, a = n.id.replace("attrib_", ""), { value: p, id: x, type: S } = f(t, a, "attrib"), E = !t.original.ownAttrib?.includes(a);
829
829
  return ["group", h].includes(S) || t.original.metaType || !i.scope?.includes(S) && p == null ? null : /* @__PURE__ */ s.jsx(
830
830
  b,
831
831
  {
@@ -841,11 +841,11 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
841
841
  // check attrib is not read only
842
842
  i.readOnly || // check if there is any other reason the cell should be read only
843
843
  r?.readOnly?.some(
844
- (j) => j === o || j === "attrib" && i.builtin
844
+ (j) => j === a || j === "attrib" && i.builtin
845
845
  )
846
846
  ),
847
847
  onChange: (j) => r?.updateEntities?.(
848
- { field: o, value: j, type: S, isAttrib: !0, rowId: t.id },
848
+ { field: a, value: j, type: S, isAttrib: !0, rowId: t.id },
849
849
  { selection: i.data.enum?.length ? r?.selection : void 0 }
850
850
  )
851
851
  }
@@ -853,10 +853,10 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
853
853
  }
854
854
  })), Y = c ? g.filter((i) => !(!m(i.linkType) || !m("link") || !l.includes(i.inputType) && !l.includes(i.outputType))).flatMap((i) => {
855
855
  const e = (t) => ({
856
- id: di(i, t),
857
- accessorKey: `links.${B(i, t)}`,
856
+ id: mi(i, t),
857
+ accessorKey: `links.${U(i, t)}`,
858
858
  header: () => /* @__PURE__ */ s.jsxs(w, { children: [
859
- pi(i, t),
859
+ di(i, t),
860
860
  " ",
861
861
  /* @__PURE__ */ s.jsx(
862
862
  V,
@@ -870,8 +870,8 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
870
870
  enableResizing: !0,
871
871
  enablePinning: !0,
872
872
  enableHiding: !0,
873
- cell: ({ row: n, column: a }) => {
874
- const r = a.id.replace("link_", ""), { id: o, value: p } = f(n, r, "links"), x = p?.map((E) => E.label), S = {
873
+ cell: ({ row: n, column: o }) => {
874
+ const r = o.id.replace("link_", ""), { id: a, value: p } = f(n, r, "links"), x = p?.map((E) => E.label), S = {
875
875
  links: p,
876
876
  direction: t,
877
877
  entityId: n.original.entityId || n.original.id,
@@ -885,9 +885,9 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
885
885
  return /* @__PURE__ */ s.jsx(
886
886
  b,
887
887
  {
888
- rowId: o,
888
+ rowId: a,
889
889
  className: u("links", { loading: n.original.isLoading }),
890
- columnId: a.id,
890
+ columnId: o.id,
891
891
  value: x,
892
892
  valueData: S,
893
893
  folderId: n.original.folderId,
@@ -908,11 +908,11 @@ const si = (l) => ["folder", "product"].includes(l), T = 50, v = (l) => (d, g, .
908
908
  });
909
909
  export {
910
910
  T as COLUMN_MIN_SIZE,
911
- pa as default,
912
- di as getLinkColumnId,
913
- B as getLinkKey,
914
- pi as getLinkLabel,
911
+ da as default,
912
+ mi as getLinkColumnId,
913
+ U as getLinkKey,
914
+ di as getLinkLabel,
915
915
  f as getValueIdType,
916
- si as isEntityExpandable
916
+ pi as isEntityExpandable
917
917
  };
918
918
  //# sourceMappingURL=buildTreeTableColumns.es.js.map