@ynput/ayon-frontend-shared 0.6.6 → 0.6.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.
Files changed (53) hide show
  1. package/dist/DetailsPanel.es.js +4 -4
  2. package/dist/ListTable.es.js +2 -2
  3. package/dist/NewEntity.es.js +49 -49
  4. package/dist/ProjectTreeTable.es.js +501 -496
  5. package/dist/Slicer.es.js +27 -27
  6. package/dist/Views.es.js +213 -206
  7. package/dist/api.es.js +362 -360
  8. package/dist/chunks/Actions.es.js +21 -21
  9. package/dist/chunks/CodeEditor.es.js +30 -0
  10. package/dist/chunks/ColumnDropIndicator.es.js +5 -5
  11. package/dist/chunks/ColumnDropIndicator.styled.es.js +24 -24
  12. package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
  13. package/dist/chunks/DeleteEntitiesContextInstance.es.js +96 -96
  14. package/dist/chunks/EmptyPlaceholder.es.js +9 -9
  15. package/dist/chunks/EntityPath.es.js +3 -3
  16. package/dist/chunks/EntityTooltip.es.js +1 -1
  17. package/dist/chunks/EntityUpdatesContext.es.js +1 -1
  18. package/dist/chunks/Feed.es.js +1625 -1573
  19. package/dist/chunks/JsonViewer.es.js +1 -1
  20. package/dist/chunks/Menu.es.js +1 -1
  21. package/dist/chunks/MenuItem.es.js +25 -25
  22. package/dist/chunks/MetaWidget.es.js +1537 -1516
  23. package/dist/chunks/PlayableIcon.es.js +128 -128
  24. package/dist/chunks/ProjectContext.es.js +11 -11
  25. package/dist/chunks/ReviewablesSelector.es.js +553 -462
  26. package/dist/chunks/SimpleForm.es.js +7 -7
  27. package/dist/chunks/SimpleTable.es.js +110 -110
  28. package/dist/chunks/Slicer.es.js +80 -80
  29. package/dist/chunks/TableSettingsFallback.es.js +1 -1
  30. package/dist/chunks/ThumbnailSimple.es.js +17 -17
  31. package/dist/chunks/VideoPlayer.es.js +1 -1
  32. package/dist/chunks/Watchers.es.js +50 -50
  33. package/dist/chunks/afterStartup.es.js +13 -0
  34. package/dist/chunks/getBundleMode.es.js +1 -1
  35. package/dist/chunks/getUris.es.js +797 -827
  36. package/dist/chunks/searchTerms.es.js +353 -336
  37. package/dist/chunks/useAttributeEnums.es.js +16 -16
  38. package/dist/chunks/useHierarchySelection.es.js +2 -2
  39. package/dist/chunks/useLoadModule.es.js +24 -23
  40. package/dist/chunks/viewUpdateHelper.es.js +8 -8
  41. package/dist/components.es.js +205 -202
  42. package/dist/context.es.js +525 -496
  43. package/dist/hooks.es.js +190 -166
  44. package/dist/types/ContextMenu.d.ts +1 -0
  45. package/dist/types/ProjectTreeTable.d.ts +1 -0
  46. package/dist/types/Views.d.ts +11 -0
  47. package/dist/types/api.d.ts +823 -1427
  48. package/dist/types/components.d.ts +9 -1
  49. package/dist/types/context.d.ts +1 -0
  50. package/dist/types/hooks.d.ts +25 -1
  51. package/dist/types/util.d.ts +10 -0
  52. package/dist/util.es.js +45 -42
  53. package/package.json +2 -2
@@ -2,10 +2,10 @@ 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
- import { c 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";
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";
9
9
  import { O as wa, Q as xa, V as Sa, X as Ca, T as Ta } from "./chunks/Watchers.es.js";
10
10
  import { E as zt, R as Gt, a as Qt } from "./chunks/EntityPath.es.js";
11
11
  import { union as ue, upperFirst as Je } from "lodash";
@@ -13,7 +13,7 @@ import "react-toastify";
13
13
  import "uuid";
14
14
  import { a as qt, b as Kt, A as _e, e as Xt } from "./chunks/activeEntities.es.js";
15
15
  import "@module-federation/enhanced/runtime";
16
- import { v as q, u as Jt, T as Yt, a6 as Zt, a0 as en, a8 as tn, B as nn, a7 as sn, X as an } from "./chunks/DeleteEntitiesContextInstance.es.js";
16
+ import { o as q, u as Jt, T as Yt, a6 as Zt, a0 as en, a8 as tn, B as nn, a7 as sn, X as an } from "./chunks/DeleteEntitiesContextInstance.es.js";
17
17
  import "semver";
18
18
  import { T as on, P as Ye } from "./chunks/ProjectContext.es.js";
19
19
  import "react-dom";
@@ -1946,7 +1946,7 @@ const ks = T.div`
1946
1946
  border-radius: var(--border-radius-m);
1947
1947
 
1948
1948
  .icon {
1949
- font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 300, 'opsz' 20;
1949
+ font-variation-settings: 'FILL' 1;
1950
1950
  }
1951
1951
  `, va = () => {
1952
1952
  const { pip: e } = q(), n = e?.entityType, t = e?.entities || [], o = e?.scope || "", s = t.length > 0 && !!n, a = t.map((y) => y.projectName), { data: r = [] } = It({ projects: a }, { skip: !s }), { data: c = {}, isFetching: m } = Pt(
@@ -10,7 +10,7 @@ import { n as Te, B as we, T as Ve, o as _e, q as ke } from "./chunks/MetaWidget
10
10
  import "react-toastify";
11
11
  import "lodash";
12
12
  import "primereact/confirmdialog";
13
- import { bj as Le } from "./chunks/searchTerms.es.js";
13
+ import { bk as Le } from "./chunks/searchTerms.es.js";
14
14
  import "lexical";
15
15
  import "@lexical/markdown";
16
16
  import "@lexical/react/LexicalBlockWithAlignableContents";
@@ -21,7 +21,7 @@ import "@lexical/list";
21
21
  import "@lexical/rich-text";
22
22
  import "@lexical/selection";
23
23
  import "@lexical/utils";
24
- import { dB as vt, dC as Ge } from "./chunks/getUris.es.js";
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,14 +3,14 @@ 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 { x as Te, y as $e, M as et } from "./chunks/DeleteEntitiesContextInstance.es.js";
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
+ import { x as Ne, y as ze, M as rt } from "./chunks/DeleteEntitiesContextInstance.es.js";
12
13
  import "semver";
13
- import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Ne, InputNumber as je, Spacer as ze, theme as qe, Dialog as tt, ShortcutTag as nt, Toolbar as at, SaveButton as rt } from "@ynput/ayon-react-components";
14
14
  import "./chunks/ContextMenuContextInstance.es.js";
15
15
  import Ae from "clsx";
16
16
  import "uuid";
@@ -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 } = Te(), { attribFields: c } = ot(), { findNonInheritedValues: w, getFolderById: h } = $e(), { attrib: n = {}, statuses: D } = u || {}, { anatomy: r } = Te(), { 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
@@ -646,7 +646,7 @@ const Ct = ({
646
646
  /* @__PURE__ */ f(re, { children: [
647
647
  /* @__PURE__ */ t("label", { children: "Prefix" }),
648
648
  /* @__PURE__ */ t(
649
- Ne,
649
+ Te,
650
650
  {
651
651
  checked: b,
652
652
  id: "prefix",
@@ -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",
@@ -718,7 +718,7 @@ const Ct = ({
718
718
  }
719
719
  )
720
720
  ] }),
721
- /* @__PURE__ */ t(ze, {}),
721
+ /* @__PURE__ */ t($e, {}),
722
722
  n && /* @__PURE__ */ t(
723
723
  fe,
724
724
  {
@@ -751,7 +751,7 @@ const Ct = ({
751
751
  onOpenNew: m,
752
752
  enabled: u = !0
753
753
  }) => {
754
- const { menuOpen: c } = Pe(et) || { menuOpen: !1 }, { editingCellId: w } = Pe(lt) || { editingCellId: null };
754
+ const { menuOpen: c } = Pe(rt) || { menuOpen: !1 }, { editingCellId: w } = Pe(lt) || { editingCellId: null };
755
755
  Le(() => {
756
756
  if (!u) return;
757
757
  const h = (n) => {
@@ -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,14 +888,14 @@ 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" })
895
895
  ] })
896
896
  ] })
897
897
  ] });
898
- }, qt = E(tt)`
898
+ }, qt = E(et)`
899
899
  .body {
900
900
  overflow: visible;
901
901
  }
@@ -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);
@@ -956,26 +956,26 @@ const Ct = ({
956
956
  showDialog: c = !0,
957
957
  enableShortcuts: w = !0
958
958
  }) => {
959
- const { ...h } = Te(), {
959
+ const { ...h } = Ne(), {
960
960
  entityType: n,
961
961
  setEntityType: D,
962
962
  entityForm: r,
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
970
- } = ft(), [p, K] = z(!1), { selectedCells: L } = it() || {}, b = ht(), { getFolderById: ne } = $e(), H = ct(), J = H?.getEntityById, X = H?.showHierarchy ?? !0, ae = ge(() => {
970
+ } = ft(), [p, K] = z(!1), { selectedCells: L } = it() || {}, b = ht(), { getFolderById: ne } = ze(), H = ct(), J = H?.getEntityById, X = H?.showHierarchy ?? !0, ae = ge(() => {
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,14 +1098,14 @@ 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,
1105
1105
  children: [
1106
1106
  /* @__PURE__ */ t(Q, { icon: e.icon }),
1107
1107
  /* @__PURE__ */ t("span", { className: "label", children: e.label }),
1108
- /* @__PURE__ */ t(nt, { children: e.shortcut })
1108
+ /* @__PURE__ */ t(tt, { children: e.shortcut })
1109
1109
  ]
1110
1110
  }
1111
1111
  ),
@@ -1126,11 +1126,11 @@ const Ct = ({
1126
1126
  size: v.active ? "lg" : "md",
1127
1127
  style: { maxWidth: v.active ? "unset" : 430 },
1128
1128
  enableBackdropClose: !1,
1129
- footer: /* @__PURE__ */ f(at, { onFocus: () => s(!1), style: { width: "100%" }, children: [
1129
+ footer: /* @__PURE__ */ f(nt, { onFocus: () => s(!1), style: { width: "100%" }, children: [
1130
1130
  n === "folder" && /* @__PURE__ */ f(ue, { children: [
1131
1131
  /* @__PURE__ */ t("span", { children: "Sequence" }),
1132
1132
  /* @__PURE__ */ t(
1133
- Ne,
1133
+ Te,
1134
1134
  {
1135
1135
  checked: v.active,
1136
1136
  onChange: (e) => O({
@@ -1140,17 +1140,17 @@ const Ct = ({
1140
1140
  }
1141
1141
  )
1142
1142
  ] }),
1143
- /* @__PURE__ */ t(ze, {}),
1143
+ /* @__PURE__ */ t($e, {}),
1144
1144
  /* @__PURE__ */ t("span", { children: "Create more" }),
1145
1145
  /* @__PURE__ */ t(
1146
- Ne,
1146
+ Te,
1147
1147
  {
1148
1148
  checked: p,
1149
1149
  onChange: (e) => K(e.target.checked)
1150
1150
  }
1151
1151
  ),
1152
1152
  /* @__PURE__ */ t(
1153
- rt,
1153
+ at,
1154
1154
  {
1155
1155
  label: te[n].createLabel,
1156
1156
  onClick: () => se(p),
@@ -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}"`