@ynput/ayon-frontend-shared 0.6.7 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/DetailsPanel.es.js +3 -3
  2. package/dist/Feed.es.js +64 -58
  3. package/dist/ListTable.es.js +5 -5
  4. package/dist/NewEntity.es.js +38 -38
  5. package/dist/ProjectTreeTable.es.js +1314 -1314
  6. package/dist/Slicer.es.js +21 -21
  7. package/dist/Views.es.js +1 -1
  8. package/dist/api.es.js +362 -360
  9. package/dist/chunks/Actions.es.js +21 -21
  10. package/dist/chunks/ColumnDropIndicator.es.js +7 -7
  11. package/dist/chunks/DeleteEntitiesContextInstance.es.js +22 -22
  12. package/dist/chunks/EmptyPlaceholder.es.js +9 -9
  13. package/dist/chunks/EntityPath.es.js +1 -1
  14. package/dist/chunks/EntityUpdatesContext.es.js +1 -1
  15. package/dist/chunks/Feed.es.js +1843 -1830
  16. package/dist/chunks/MetaWidget.es.js +816 -827
  17. package/dist/chunks/PlayableIcon.es.js +124 -85
  18. package/dist/chunks/ProjectContext.es.js +11 -11
  19. package/dist/chunks/ReviewablesSelector.es.js +572 -484
  20. package/dist/chunks/SimpleForm.es.js +6 -5
  21. package/dist/chunks/SimpleTable.es.js +1 -1
  22. package/dist/chunks/Slicer.es.js +75 -75
  23. package/dist/chunks/ThumbnailSimple.es.js +15 -15
  24. package/dist/chunks/Watchers.es.js +35 -35
  25. package/dist/chunks/getBundleMode.es.js +33 -25
  26. package/dist/chunks/getUris.es.js +236 -229
  27. package/dist/chunks/searchTerms.es.js +352 -333
  28. package/dist/chunks/useAttributeEnums.es.js +16 -16
  29. package/dist/chunks/useDateRangeFilter.es.js +85 -59
  30. package/dist/chunks/viewUpdateHelper.es.js +36 -36
  31. package/dist/components.es.js +793 -754
  32. package/dist/context.es.js +121 -120
  33. package/dist/hooks.es.js +15 -15
  34. package/dist/index.es.js +2 -2
  35. package/dist/types/Feed.d.ts +54 -0
  36. package/dist/types/ProjectTreeTable.d.ts +5 -2
  37. package/dist/types/api.d.ts +372 -0
  38. package/dist/types/components.d.ts +516 -0
  39. package/dist/types/util.d.ts +4 -0
  40. package/dist/util.es.js +68 -66
  41. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { jsxs as k, jsx as i, Fragment as Ie } from "react/jsx-runtime";
2
2
  import { Toolbar as ze, Panel as ft, Button as Z, Spacer as Ge, Icon as fe, getTextColor as Ee, Dialog as bt, SEARCH_FILTER_ID as Qe, buildFilterId as Se, getFilterFromId as vt, SearchFilter as yt, AssigneeField as kt } from "@ynput/ayon-react-components";
3
3
  import { useEffect as H, useRef as ee, useMemo as D, useState as X, useContext as wt, useId as xt } from "react";
4
4
  import T, { keyframes as St } from "styled-components";
5
- import { bo as Ct } from "./chunks/searchTerms.es.js";
5
+ import { bp as Ct } from "./chunks/searchTerms.es.js";
6
6
  import { bm as Tt, bK as Nt, bZ as Et, ct as qe, bu as Ke, t as Dt, bO as It, c8 as Pt } from "./chunks/getUris.es.js";
7
7
  import "primereact/confirmdialog";
8
8
  import { o as Ft, y as At, H as Ot, G as Rt, z as jt, w as Xe, A as Vt, B as Ut, E as $t, I as Lt, J as _t, K as Mt, N as Ht, W as Bt, s as Wt } from "./chunks/Watchers.es.js";
@@ -22,7 +22,7 @@ import ie from "clsx";
22
22
  import { A as rn } from "./chunks/Actions.es.js";
23
23
  import "./chunks/ContextMenuContextInstance.es.js";
24
24
  import { g as Ce } from "./chunks/getEntityTypeIcon.es.js";
25
- import { P as ln } from "./chunks/PlayableIcon.es.js";
25
+ import { _ as ln } from "./chunks/PlayableIcon.es.js";
26
26
  import { R as cn } from "./chunks/RepresentationsList.es.js";
27
27
  import { I as dn } from "./chunks/InfoMessage.es.js";
28
28
  import { M as un, a as pn } from "./chunks/Menu.es.js";
@@ -31,7 +31,7 @@ import { u as mn } from "./chunks/VersionUploadContextInstance.es.js";
31
31
  import { p as gn } from "./chunks/pluralize.es.js";
32
32
  import { c as fn } from "./chunks/copyToClipboard.es.js";
33
33
  import { u as bn } from "./chunks/useQueryArgumentChangeLoading.es.js";
34
- import { c as Ze, b as vn } from "./chunks/Feed.es.js";
34
+ import { d as Ze, c as vn } from "./chunks/Feed.es.js";
35
35
  import { A as yn, C as kn } from "./chunks/ThumbnailSimple.es.js";
36
36
  import { o as wn, k as xn } from "./chunks/MetaWidget.es.js";
37
37
  import { t as Sn, c as Cn } from "./chunks/queryFilterToClientFilter.es.js";
package/dist/Feed.es.js CHANGED
@@ -1,18 +1,19 @@
1
1
  import { A as lt, F as dt, u as ut } from "./chunks/ThumbnailSimple.es.js";
2
2
  import { jsxs as V, jsx as A } from "react/jsx-runtime";
3
3
  import { useRef as X, useEffect as _, useMemo as j, useCallback as G } from "react";
4
- import T from "clsx";
4
+ import N from "clsx";
5
5
  import { Icon as z } from "@ynput/ayon-react-components";
6
6
  import { e as J, D as Q, S as Y } from "./chunks/Feed.es.js";
7
- import { A as vt, C as gt, a as yt, F as mt, b as pt, c as ht, d as xt, i as It, f as bt } from "./chunks/Feed.es.js";
7
+ import { A as gt, C as vt, a as mt, b as yt, F as pt, c as ht, d as xt, f as It, i as bt, g as At, r as wt } from "./chunks/Feed.es.js";
8
+ import { b as Et, c as Dt, i as Tt } from "./chunks/PlayableIcon.es.js";
8
9
  const Z = ({ files: c, index: t, activityId: s, onNavigate: e }) => {
9
- const n = c, o = t, u = s, l = () => n[0].id != u, a = () => n[n.length - 1].id != u, r = () => o > 0 || l(), I = () => o < n.find((i) => i.id == u).files.length - 1 || a(), g = () => n[n.findIndex((i) => i.id == u) - 1], m = () => n[n.findIndex((i) => i.id == u) + 1], f = () => g().id, d = () => m().id;
10
+ const n = c, o = t, u = s, l = () => n[0].id != u, a = () => n[n.length - 1].id != u, r = () => o > 0 || l(), I = () => o < n.find((i) => i.id == u).files.length - 1 || a(), v = () => n[n.findIndex((i) => i.id == u) - 1], y = () => n[n.findIndex((i) => i.id == u) + 1], f = () => v().id, d = () => y().id;
10
11
  return {
11
12
  canNavigateDown: a,
12
13
  canNavigateUp: l,
13
14
  canNavigateLeft: r,
14
15
  canNavigateRight: I,
15
- getPreviousActivity: g,
16
+ getPreviousActivity: v,
16
17
  getNextActivityId: d,
17
18
  getByIndexActivity: (i, h) => !i === null || h == null ? { id: null, projectName: null, mime: null, extension: null } : n.find((x) => x.id == i).files[h],
18
19
  navigateUp: () => {
@@ -22,7 +23,7 @@ const Z = ({ files: c, index: t, activityId: s, onNavigate: e }) => {
22
23
  navigateLeft: () => {
23
24
  if (o > 0)
24
25
  return e({ delta: -1 });
25
- const i = g();
26
+ const i = v();
26
27
  e({
27
28
  activityId: i.id,
28
29
  index: i.files.length - 1
@@ -48,82 +49,82 @@ const Z = ({ files: c, index: t, activityId: s, onNavigate: e }) => {
48
49
  canNavigateLeft: a,
49
50
  canNavigateRight: r,
50
51
  getByIndexActivity: I,
51
- navigateUp: g,
52
- navigateDown: m,
52
+ navigateUp: v,
53
+ navigateDown: y,
53
54
  navigateLeft: f,
54
55
  navigateRight: d
55
- } = Z({ files: c, index: t, activityId: s, onNavigate: o }), p = { ...I(s, t), projectName: e }, { id: v, mime: b, extension: w, name: P } = p, i = X(null);
56
+ } = Z({ files: c, index: t, activityId: s, onNavigate: o }), p = { ...I(s, t), projectName: e }, { id: g, mime: b, extension: w, name: k } = p, i = X(null);
56
57
  _(() => {
57
- v && e && i.current?.focus();
58
- }, [v, e]);
58
+ g && e && i.current?.focus();
59
+ }, [g, e]);
59
60
  const h = () => {
60
61
  n();
61
- }, k = Object.values(J).find(
62
- ({ mimeTypes: L }) => L.some((N) => (b || w)?.includes(N))
63
- ), { component: x, id: R, callback: C, fullPreviews: B } = k || {};
62
+ }, P = Object.values(J).find(
63
+ ({ mimeTypes: L }) => L.some((T) => (b || w)?.includes(T))
64
+ ), { component: x, id: R, callback: C, fullPreviews: O } = P || {};
64
65
  if (_(() => {
65
- if (!v || !e || !x || C) return;
66
+ if (!g || !e || !x || C) return;
66
67
  const L = {
67
- ArrowUp: [l, g],
68
- ArrowDown: [u, m],
68
+ ArrowUp: [l, v],
69
+ ArrowDown: [u, y],
69
70
  ArrowLeft: [a, f],
70
71
  ArrowRight: [r, d]
71
- }, N = (y) => {
72
- if (y.key === "Escape") {
73
- y.preventDefault(), y.stopPropagation(), h();
72
+ }, T = (m) => {
73
+ if (m.key === "Escape") {
74
+ m.preventDefault(), m.stopPropagation(), h();
74
75
  return;
75
76
  }
76
- const U = L[y.code];
77
- if (!U) return;
78
- if (y.target instanceof HTMLElement) {
79
- const { tagName: M, isContentEditable: q } = y.target;
80
- if (M === "INPUT" || M === "TEXTAREA" || q) return;
77
+ const M = L[m.code];
78
+ if (!M) return;
79
+ if (m.target instanceof HTMLElement) {
80
+ const { tagName: U, isContentEditable: H } = m.target;
81
+ if (U === "INPUT" || U === "TEXTAREA" || H) return;
81
82
  }
82
- y.preventDefault(), y.stopPropagation();
83
- const [W, H] = U;
84
- W() && H();
83
+ m.preventDefault(), m.stopPropagation();
84
+ const [W, q] = M;
85
+ W() && q();
85
86
  };
86
- return document.addEventListener("keydown", N, !0), () => document.removeEventListener("keydown", N, !0);
87
- }, [v, e, c, t, s, x, C]), !v || !e) return null;
87
+ return document.addEventListener("keydown", T, !0), () => document.removeEventListener("keydown", T, !0);
88
+ }, [g, e, c, t, s, x, C]), !g || !e) return null;
88
89
  if (C)
89
90
  return C(p), null;
90
- const O = () => a() && f(), S = () => r() && d(), D = R === "image", F = R === "video", E = 50;
91
+ const S = () => a() && f(), B = () => r() && d(), E = R === "image", F = R === "video", D = 50;
91
92
  return x ? /* @__PURE__ */ V(
92
93
  Q,
93
94
  {
94
95
  size: "full",
95
- isOpen: !!(v && e),
96
+ isOpen: !!(g && e),
96
97
  onClose: h,
97
- hideCancelButton: D,
98
+ hideCancelButton: E,
98
99
  ref: i,
99
- className: T({ isImage: D }, "block-shortcuts"),
100
- header: D ? null : P,
100
+ className: N({ isImage: E }, "block-shortcuts"),
101
+ header: E ? null : k,
101
102
  children: [
102
- /* @__PURE__ */ A("div", { style: { position: "absolute", inset: 0, zIndex: E }, onClick: h }),
103
+ /* @__PURE__ */ A("div", { style: { position: "absolute", inset: 0, zIndex: D }, onClick: h }),
103
104
  /* @__PURE__ */ A(
104
105
  z,
105
106
  {
106
- style: { zIndex: E + 1 },
107
+ style: { zIndex: D + 1 },
107
108
  icon: "chevron_left",
108
- className: T("navIcon", "left", { disabled: !a() }),
109
- onClick: O
109
+ className: N("navIcon", "left", { disabled: !a() }),
110
+ onClick: S
110
111
  }
111
112
  ),
112
113
  /* @__PURE__ */ A(
113
114
  Y,
114
115
  {
115
- style: { zIndex: E + 1 },
116
- className: T({ scrollable: !D && !F, fill: F }),
117
- children: /* @__PURE__ */ A(x, { file: p, fullPreviews: B })
116
+ style: { zIndex: D + 1 },
117
+ className: N({ scrollable: !E && !F, fill: F }),
118
+ children: /* @__PURE__ */ A(x, { file: p, fullPreviews: O })
118
119
  }
119
120
  ),
120
121
  /* @__PURE__ */ A(
121
122
  z,
122
123
  {
123
- style: { zIndex: E + 1 },
124
+ style: { zIndex: D + 1 },
124
125
  icon: "chevron_right",
125
- className: T("navIcon", "right", { disabled: !r() }),
126
- onClick: S
126
+ className: N("navIcon", "right", { disabled: !r() }),
127
+ onClick: B
127
128
  }
128
129
  )
129
130
  ]
@@ -153,35 +154,40 @@ const Z = ({ files: c, index: t, activityId: s, onNavigate: e }) => {
153
154
  (l) => {
154
155
  const { key: a, target: r, shiftKey: I } = l;
155
156
  if (r.tagName === "TR" && (a === "ArrowDown" || a === "ArrowUp")) {
156
- const g = a === "ArrowDown" ? 1 : -1, m = g === 1 ? r.nextElementSibling : r.previousElementSibling;
157
- if (!m) return;
158
- const f = K(m.classList);
157
+ const v = a === "ArrowDown" ? 1 : -1, y = v === 1 ? r.nextElementSibling : r.previousElementSibling;
158
+ if (!y) return;
159
+ const f = K(y.classList);
159
160
  if (!f && f !== "undefined") return;
160
161
  let d = [f];
161
- I && n && (d = $(s, d, o, f, g));
162
- const p = d, v = d.reduce((b, w) => (b[w] = !0, b), {});
163
- e({ array: p, object: v });
162
+ I && n && (d = $(s, d, o, f, v));
163
+ const p = d, g = d.reduce((b, w) => (b[w] = !0, b), {});
164
+ e({ array: p, object: g });
164
165
  }
165
166
  },
166
167
  [o, s]
167
168
  );
168
169
  };
169
170
  export {
170
- vt as ActivityCategorySelect,
171
+ gt as ActivityCategorySelect,
171
172
  lt as ActivityReferenceTooltip,
172
- gt as CategoryDropdownItem,
173
+ vt as COMMENT_DIRECTIVES,
174
+ mt as CategoryDropdownItem,
173
175
  yt as CategoryTag,
174
- mt as FEED_NEW_COMMENT,
175
- pt as Feed,
176
+ pt as FEED_NEW_COMMENT,
177
+ ht as Feed,
176
178
  dt as FeedContext,
177
- ht as FeedProvider,
179
+ xt as FeedProvider,
178
180
  ot as FileUploadPreview,
179
- xt as activitiesLast,
181
+ It as activitiesLast,
182
+ Et as blockquoteTag,
183
+ Dt as codeTag,
180
184
  J as expandableMimeTypes,
181
185
  K as extractIdFromClassList,
182
186
  $ as getMultiSelection,
183
- It as isCategoryHidden,
184
- bt as isFilePreviewable,
187
+ Tt as inputTag,
188
+ bt as isCategoryHidden,
189
+ At as isFilePreviewable,
190
+ wt as remarkLiteralDirectives,
185
191
  ut as useFeedContext,
186
192
  at as useTableKeyboardNavigation
187
193
  };
@@ -5,23 +5,23 @@ import { flexRender as ot, useReactTable as De, getSortedRowModel as Ee, getExpa
5
5
  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
- import "uuid";
9
8
  import { n as Te, B as we, T as Ve, o as _e, q as ke } from "./chunks/MetaWidget.es.js";
10
9
  import "react-toastify";
11
10
  import "lodash";
12
11
  import "primereact/confirmdialog";
13
- import { bj as Le } from "./chunks/searchTerms.es.js";
12
+ import "uuid";
13
+ import { bk as Le } from "./chunks/searchTerms.es.js";
14
14
  import "lexical";
15
15
  import "@lexical/markdown";
16
- import "@lexical/react/LexicalBlockWithAlignableContents";
17
- import "@lexical/react/LexicalDecoratorBlockNode";
18
16
  import "match-sorter";
19
17
  import "@lexical/code";
20
18
  import "@lexical/list";
21
19
  import "@lexical/rich-text";
22
20
  import "@lexical/selection";
23
21
  import "@lexical/utils";
24
- import { dB as vt, dC as Ge } from "./chunks/getUris.es.js";
22
+ import "@lexical/react/LexicalBlockWithAlignableContents";
23
+ import "@lexical/react/LexicalDecoratorBlockNode";
24
+ import { dC as vt, dD as Ge } from "./chunks/getUris.es.js";
25
25
  import { u as Me } from "./chunks/DeleteEntitiesContextInstance.es.js";
26
26
  import "@module-federation/enhanced/runtime";
27
27
  import "semver";
@@ -3,12 +3,12 @@ import { useState as z, forwardRef as Ue, useRef as ce, useEffect as Le, useLayo
3
3
  import { isEmpty as Ce } from "lodash";
4
4
  import "primereact/confirmdialog";
5
5
  import { toast as me } from "react-toastify";
6
- import { g as Xe, R as Me } from "./chunks/realtimeUpdatesUtils.es.js";
6
+ import { g as Xe, R as je } from "./chunks/realtimeUpdatesUtils.es.js";
7
7
  import { p as be, c as Ze, a as Ge } from "./chunks/iconUtils.es.js";
8
- import { bi as Qe } from "./chunks/searchTerms.es.js";
9
- import { dn as Ye } from "./chunks/getUris.es.js";
8
+ import { bj as Qe } from "./chunks/searchTerms.es.js";
9
+ import { dp as Ye } from "./chunks/getUris.es.js";
10
10
  import "@module-federation/enhanced/runtime";
11
- import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Te, InputNumber as je, Spacer as $e, theme as qe, Dialog as et, ShortcutTag as tt, Toolbar as nt, SaveButton as at } from "@ynput/ayon-react-components";
11
+ import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Te, InputNumber as Me, Spacer as $e, theme as qe, Dialog as et, ShortcutTag as tt, Toolbar as nt, SaveButton as at } from "@ynput/ayon-react-components";
12
12
  import { x as Ne, y as ze, M as rt } from "./chunks/DeleteEntitiesContextInstance.es.js";
13
13
  import "semver";
14
14
  import "./chunks/ContextMenuContextInstance.es.js";
@@ -24,14 +24,14 @@ import "./chunks/PlayableIcon.es.js";
24
24
  import "date-fns";
25
25
  import "lexical";
26
26
  import "@lexical/markdown";
27
- import "@lexical/react/LexicalBlockWithAlignableContents";
28
- import "@lexical/react/LexicalDecoratorBlockNode";
29
27
  import "match-sorter";
30
28
  import "@lexical/code";
31
29
  import "@lexical/list";
32
30
  import "@lexical/rich-text";
33
31
  import "@lexical/selection";
34
32
  import "@lexical/utils";
33
+ import "@lexical/react/LexicalBlockWithAlignableContents";
34
+ import "@lexical/react/LexicalDecoratorBlockNode";
35
35
  import { u as ht } from "./chunks/useHierarchySelection.es.js";
36
36
  import { n as te } from "./chunks/entityDefinitions.es.js";
37
37
  import "@tanstack/react-table";
@@ -42,7 +42,7 @@ const Ee = (i, m, u) => {
42
42
  for (let q = 0; q < u; q++) {
43
43
  const v = h + q * D, O = i.match(/\d+$/);
44
44
  if (!O) return [];
45
- const j = String(v).padStart(O[0].length, "0"), W = i.replace(/\d+$/, j);
45
+ const M = String(v).padStart(O[0].length, "0"), W = i.replace(/\d+$/, M);
46
46
  r.push(W);
47
47
  }
48
48
  return r;
@@ -53,7 +53,7 @@ const Ee = (i, m, u) => {
53
53
  );
54
54
  return c ? c.name : "";
55
55
  }, xn = ({ children: i }) => {
56
- const { projectName: m, ...u } = Ne(), { attribFields: c } = ot(), { findNonInheritedValues: w, getFolderById: h } = ze(), { attrib: n = {}, statuses: D } = u || {}, { anatomy: r } = Ne(), { entity_naming: q = { capitalization: "lower", separator: "_" } } = r, { rowSelection: v, sliceType: O } = st(), j = D?.filter((a) => a.scope?.includes("task"))?.[0]?.name || D?.[0]?.name || "none", W = D?.filter((a) => a.scope?.includes("folder"))?.[0]?.name || D?.[0]?.name || "none", [F, R] = z(null), [p, K] = z(null), L = { label: "", subType: "", name: "" }, [b, ne] = z(L), [H, J] = z({
56
+ const { projectName: m, ...u } = Ne(), { attribFields: c } = ot(), { findNonInheritedValues: w, getFolderById: h } = ze(), { attrib: n = {}, statuses: D } = u || {}, { anatomy: r } = Ne(), { entity_naming: q = { capitalization: "lower", separator: "_" } } = r, { rowSelection: v, sliceType: O } = st(), M = D?.filter((a) => a.scope?.includes("task"))?.[0]?.name || D?.[0]?.name || "none", W = D?.filter((a) => a.scope?.includes("folder"))?.[0]?.name || D?.[0]?.name || "none", [F, R] = z(null), [p, K] = z(null), L = { label: "", subType: "", name: "" }, [b, ne] = z(L), [H, J] = z({
57
57
  active: !1,
58
58
  increment: "",
59
59
  length: 10,
@@ -122,7 +122,7 @@ const Ee = (i, m, u) => {
122
122
  const o = a.filter((C) => C.entityType === "folder"), g = a.filter((C) => C.entityType === "task"), s = (C, I) => {
123
123
  let P = [];
124
124
  for (const l of C) {
125
- const Z = I === "folder" ? l.data.parentId : l.data.folderId, A = k.get(Z) || n, M = Object.keys(A).reduce((N, V) => {
125
+ const Z = I === "folder" ? l.data.parentId : l.data.folderId, A = k.get(Z) || n, j = Object.keys(A).reduce((N, V) => {
126
126
  const oe = c.find((pe) => pe.name === V);
127
127
  if (!oe) return N;
128
128
  const ye = oe.scope?.includes(I), se = !!oe.data.inherit;
@@ -152,7 +152,7 @@ const Ee = (i, m, u) => {
152
152
  ownAttrib: [],
153
153
  path: N,
154
154
  tags: [],
155
- attrib: M,
155
+ attrib: j,
156
156
  links: []
157
157
  // Add empty links object
158
158
  }
@@ -173,7 +173,7 @@ const Ee = (i, m, u) => {
173
173
  active: !0,
174
174
  assignees: l.data.assignees || [],
175
175
  projectName: m,
176
- status: l.data.status || j,
176
+ status: l.data.status || M,
177
177
  folder: {
178
178
  path: l.data.folderId ? d[l.data.folderId] : "",
179
179
  folderType: ""
@@ -185,12 +185,12 @@ const Ee = (i, m, u) => {
185
185
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
186
186
  thumbnailHash: "",
187
187
  subtasks: [],
188
- attrib: M,
188
+ attrib: j,
189
189
  hasReviewables: !1,
190
190
  // Add required field
191
191
  links: [],
192
192
  // Add empty links object
193
- allAttrib: JSON.stringify(M),
193
+ allAttrib: JSON.stringify(j),
194
194
  parents: []
195
195
  }
196
196
  };
@@ -313,7 +313,7 @@ const Ee = (i, m, u) => {
313
313
  dataKey: "name",
314
314
  value: i,
315
315
  valueStyle: c,
316
- onChange: (j) => u(j[0]),
316
+ onChange: (M) => u(M[0]),
317
317
  disabled: h,
318
318
  isChanged: D,
319
319
  placeholder: n,
@@ -484,7 +484,7 @@ const Ct = ({
484
484
  prefixDisabled: q,
485
485
  typeSelectRef: v,
486
486
  onLastInputKeydown: O,
487
- folders: j,
487
+ folders: M,
488
488
  ...W
489
489
  }) => {
490
490
  const { base: F, increment: R, length: p, type: K, id: L, prefix: b, prefixDepth: ne, parentBases: H } = W, J = W.entityType, X = !n && D || q;
@@ -497,14 +497,14 @@ const Ct = ({
497
497
  const C = { [_]: S }, I = { ...W, ...C };
498
498
  if (_ === "type") {
499
499
  let P = !1;
500
- const l = j.find((M) => M.name === S);
501
- for (const M of j) {
500
+ const l = M.find((j) => j.name === S);
501
+ for (const j of M) {
502
502
  if (I.base === "") {
503
503
  P = !0;
504
504
  break;
505
505
  }
506
- for (const N in M)
507
- if (typeof M[N] == "string" && I.base?.toLowerCase().includes(M[N].toLowerCase())) {
506
+ for (const N in j)
507
+ if (typeof j[N] == "string" && I.base?.toLowerCase().includes(j[N].toLowerCase())) {
508
508
  P = !0;
509
509
  break;
510
510
  }
@@ -514,7 +514,7 @@ const Ct = ({
514
514
  I.base = Z + A.base, I.increment = Z + A.increment, I.length = A.length;
515
515
  }
516
516
  if (_ === "base") {
517
- const P = Re(I.type), l = String(S), Z = l.replace(/[^a-zA-Z]/g, ""), A = l.replace(/[^0-9]/g, ""), M = parseInt(A, 10), N = A.length, V = Z + (M + P.difference).toString().padStart(N, "0");
517
+ const P = Re(I.type), l = String(S), Z = l.replace(/[^a-zA-Z]/g, ""), A = l.replace(/[^0-9]/g, ""), j = parseInt(A, 10), N = A.length, V = Z + (j + P.difference).toString().padStart(N, "0");
518
518
  I.increment = V.replace("NaN", "");
519
519
  }
520
520
  if (i(
@@ -558,7 +558,7 @@ const Ct = ({
558
558
  {
559
559
  value: [K],
560
560
  onChange: (s) => B({ target: { value: s, id: "type" } }),
561
- options: j,
561
+ options: M,
562
562
  style: { width: 160 },
563
563
  align: "right"
564
564
  }
@@ -633,7 +633,7 @@ const Ct = ({
633
633
  {
634
634
  value: [K],
635
635
  onChange: (s) => B({ target: { value: s, id: "type" } }),
636
- options: j,
636
+ options: M,
637
637
  style: { width: 160 },
638
638
  align: "right",
639
639
  ref: v
@@ -662,7 +662,7 @@ const Ct = ({
662
662
  n && b && /* @__PURE__ */ f(re, { children: [
663
663
  /* @__PURE__ */ t("label", { children: "Depth" }),
664
664
  /* @__PURE__ */ t(
665
- je,
665
+ Me,
666
666
  {
667
667
  value: ne,
668
668
  id: "prefixDepth",
@@ -706,7 +706,7 @@ const Ct = ({
706
706
  /* @__PURE__ */ f(re, { children: [
707
707
  /* @__PURE__ */ t("label", { children: "Count" }),
708
708
  /* @__PURE__ */ t(
709
- je,
709
+ Me,
710
710
  {
711
711
  value: p,
712
712
  id: "length",
@@ -836,7 +836,7 @@ const Ct = ({
836
836
  labelRef: w,
837
837
  nameInfo: h = ""
838
838
  }) => {
839
- const n = Je(), [D, r] = z(!1), [q, v] = z(void 0), O = ce(null), j = () => {
839
+ const n = Je(), [D, r] = z(!1), [q, v] = z(void 0), O = ce(null), M = () => {
840
840
  r(!0), u(!0), v(m.name), setTimeout(() => {
841
841
  O.current && (O.current.focus(), O.current.select());
842
842
  }, 0);
@@ -845,14 +845,14 @@ const Ct = ({
845
845
  (!K || !O.current?.contains(K)) && (r(!1), u(!1), v(void 0));
846
846
  }, F = (p) => {
847
847
  if (p.key === "ArrowDown" && !p.altKey || p.key === "Tab") {
848
- p.preventDefault(), j();
848
+ p.preventDefault(), M();
849
849
  return;
850
850
  }
851
851
  c(p, !0);
852
852
  }, R = (p) => {
853
853
  if (p.key === "Enter" || p.key === "Escape" || p.key === "ArrowUp" && !p.altKey) {
854
854
  if (p.stopPropagation(), p.key === "Enter" && !D)
855
- return j();
855
+ return M();
856
856
  p.key === "Escape" && q !== void 0 && i(q, "name"), r(!1), u(!1), v(void 0), setTimeout(() => {
857
857
  w.current?.focus();
858
858
  const K = m.label.length || 0;
@@ -888,7 +888,7 @@ const Ct = ({
888
888
  onBlur: W,
889
889
  style: { flex: 1 }
890
890
  }
891
- ) : /* @__PURE__ */ f(Et, { onClick: j, tabIndex: 0, children: [
891
+ ) : /* @__PURE__ */ f(Et, { onClick: M, tabIndex: 0, children: [
892
892
  m.name,
893
893
  " ",
894
894
  /* @__PURE__ */ t(Q, { icon: "edit" })
@@ -933,7 +933,7 @@ const Ct = ({
933
933
  align-items: center;
934
934
  min-height: 32px;
935
935
  color: var(--md-sys-color-outline);
936
- `, Mt = E.span`
936
+ `, jt = E.span`
937
937
  display: flex;
938
938
  align-items: center;
939
939
  gap: var(--base-gap-small);
@@ -963,7 +963,7 @@ const Ct = ({
963
963
  setEntityForm: q,
964
964
  sequenceForm: v,
965
965
  setSequenceForm: O,
966
- onCreateNew: j,
966
+ onCreateNew: M,
967
967
  onOpenNew: W,
968
968
  config: F,
969
969
  parentFolderIds: R
@@ -971,11 +971,11 @@ const Ct = ({
971
971
  if (R !== null) return R;
972
972
  const e = L ? Array.from(L).map((T) => dt(T)) : [], x = Array.from(
973
973
  new Set(
974
- e.filter((T) => T && T.colId !== Me).map((T) => T?.rowId).filter(Boolean)
974
+ e.filter((T) => T && T.colId !== je).map((T) => T?.rowId).filter(Boolean)
975
975
  )
976
976
  ), $ = Array.from(
977
977
  new Set(
978
- e.filter((T) => T?.colId === Me).map((T) => T?.rowId).filter(Boolean)
978
+ e.filter((T) => T?.colId === je).map((T) => T?.rowId).filter(Boolean)
979
979
  )
980
980
  ), le = x.length > 0 ? x : $;
981
981
  if (le.length > 0) {
@@ -1015,7 +1015,7 @@ const Ct = ({
1015
1015
  r.name === ke && ($.name = be($.label, F));
1016
1016
  }
1017
1017
  setTimeout(() => {
1018
- M.current?.focus();
1018
+ j.current?.focus();
1019
1019
  }, 100);
1020
1020
  } else x === "label" ? ($.label = e, S || ($.name = be(e, F))) : x === "name" && (_(!0), $.name = e);
1021
1021
  q($);
@@ -1027,7 +1027,7 @@ const Ct = ({
1027
1027
  prefix: e.prefix,
1028
1028
  prefixDepth: e.prefixDepth
1029
1029
  });
1030
- }, A = ce(null), M = ce(null), N = () => {
1030
+ }, A = ce(null), j = ce(null), N = () => {
1031
1031
  D(null), q(C), O((e) => ({ ...e, active: !1 })), _(!1), a(null);
1032
1032
  }, V = () => setTimeout(() => A.current?.open(), 180), [oe, ye] = z(!1), se = async (e) => {
1033
1033
  const x = Ze(r.label);
@@ -1042,8 +1042,8 @@ const Ct = ({
1042
1042
  }
1043
1043
  ye(!0);
1044
1044
  try {
1045
- const T = await j(d);
1046
- m?.(T, e, d), e ? (M.current && (M.current.focus(), M.current.select()), _(!1)) : N();
1045
+ const T = await M(d);
1046
+ m?.(T, e, d), e ? (j.current && (j.current.focus(), j.current.select()), _(!1)) : N();
1047
1047
  } catch {
1048
1048
  } finally {
1049
1049
  ye(!1);
@@ -1098,7 +1098,7 @@ const Ct = ({
1098
1098
  /* @__PURE__ */ t("span", { children: "Create" })
1099
1099
  ] }),
1100
1100
  itemTemplate: (e) => /* @__PURE__ */ f(
1101
- Mt,
1101
+ jt,
1102
1102
  {
1103
1103
  className: e.disabled ? "disabled" : void 0,
1104
1104
  "data-tooltip": e.disabled ? e.disabledMessage : void 0,
@@ -1231,7 +1231,7 @@ const Ct = ({
1231
1231
  {
1232
1232
  handleChange: l,
1233
1233
  entityForm: r,
1234
- labelRef: M,
1234
+ labelRef: j,
1235
1235
  setNameFocused: s,
1236
1236
  handleKeyDown: pe,
1237
1237
  nameInfo: `Names are auto generated from the label using the Entity Naming setting on the project anatomy. Capitalization: ${F.capitalization}. Separator: "${F.separator}"`