@ynput/ayon-frontend-shared 0.6.2 → 0.6.4
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.
- package/dist/DetailsPanel.es.js +732 -720
- package/dist/NewEntity.es.js +427 -425
- package/dist/ProjectTreeTable.es.js +1524 -1522
- package/dist/chunks/Feed.es.js +1864 -1797
- package/dist/chunks/MetaWidget.es.js +85 -98
- package/dist/chunks/Watchers.es.js +871 -810
- package/dist/components.es.js +1 -1
- package/dist/types/DetailsPanel.d.ts +2 -0
- package/dist/types/Feed.d.ts +2 -1
- package/dist/types/NewEntity.d.ts +2 -1
- package/package.json +1 -1
package/dist/NewEntity.es.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as t, jsxs as f, Fragment as ue } from "react/jsx-runtime";
|
|
2
|
-
import { useState as z, forwardRef as Ue, useRef as ce, useEffect as Le, useLayoutEffect as Ve, useContext as Pe, useMemo as ge } from "react";
|
|
2
|
+
import { useState as z, forwardRef as Ue, useRef as ce, useEffect as Le, useLayoutEffect as Ve, useContext as Pe, useId as Je, useMemo as ge } from "react";
|
|
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
|
|
7
|
-
import { p as be, c as
|
|
8
|
-
import { bi as
|
|
9
|
-
import { dl as
|
|
6
|
+
import { g as Xe, R as Me } from "./chunks/realtimeUpdatesUtils.es.js";
|
|
7
|
+
import { p as be, c as Ze, a as Ge } from "./chunks/parseHtmlToPlainTextWithLinks.es.js";
|
|
8
|
+
import { bi as Qe } from "./chunks/searchTerms.es.js";
|
|
9
|
+
import { dl as Ye } from "./chunks/getUris.es.js";
|
|
10
10
|
import "@module-federation/enhanced/runtime";
|
|
11
|
-
import { x as Te, y as
|
|
11
|
+
import { x as Te, y as $e, M as et } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
12
12
|
import "semver";
|
|
13
|
-
import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Ne, InputNumber as je, Spacer as
|
|
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";
|
|
17
17
|
import "react-dom";
|
|
18
18
|
import "react-redux";
|
|
19
|
-
import { f as
|
|
20
|
-
import { N as
|
|
19
|
+
import { f as ot, d as st, C as lt, g as it, h as ct, p as dt } from "./chunks/MetaWidget.es.js";
|
|
20
|
+
import { N as pt, u as ft } from "./chunks/NewEntityContextInstance.es.js";
|
|
21
21
|
import E from "styled-components";
|
|
22
|
-
import { a as
|
|
22
|
+
import { a as ut, K as mt } from "./chunks/platform.es.js";
|
|
23
23
|
import "./chunks/PlayableIcon.es.js";
|
|
24
24
|
import "date-fns";
|
|
25
25
|
import "lexical";
|
|
@@ -33,45 +33,45 @@ import "@lexical/rich-text";
|
|
|
33
33
|
import "@lexical/selection";
|
|
34
34
|
import "@lexical/utils";
|
|
35
35
|
import "react-router-dom";
|
|
36
|
-
import { u as
|
|
36
|
+
import { u as ht } from "./chunks/useHierarchySelection.es.js";
|
|
37
37
|
import { n as te } from "./chunks/entityDefinitions.es.js";
|
|
38
38
|
import "@tanstack/react-table";
|
|
39
|
-
const Ee = (
|
|
40
|
-
const
|
|
41
|
-
if (isNaN(
|
|
39
|
+
const Ee = (i, m, u) => {
|
|
40
|
+
const c = i.match(/\d+$/), w = m.match(/\d+$/), h = c ? parseInt(c[0], 10) : NaN, D = (w ? parseInt(w[0], 10) : NaN) - h;
|
|
41
|
+
if (isNaN(D)) return [];
|
|
42
42
|
const r = [];
|
|
43
|
-
for (let
|
|
44
|
-
const
|
|
45
|
-
if (!
|
|
46
|
-
const
|
|
47
|
-
r.push(
|
|
43
|
+
for (let q = 0; q < u; q++) {
|
|
44
|
+
const v = h + q * D, O = i.match(/\d+$/);
|
|
45
|
+
if (!O) return [];
|
|
46
|
+
const j = String(v).padStart(O[0].length, "0"), W = i.replace(/\d+$/, j);
|
|
47
|
+
r.push(W);
|
|
48
48
|
}
|
|
49
49
|
return r;
|
|
50
|
-
},
|
|
51
|
-
if (!
|
|
52
|
-
const
|
|
53
|
-
(
|
|
50
|
+
}, yt = (i, m, u) => {
|
|
51
|
+
if (!i || !m) return "";
|
|
52
|
+
const c = (i === "folder" ? u?.folderTypes : u?.taskTypes)?.find(
|
|
53
|
+
(w) => w.name === m
|
|
54
54
|
);
|
|
55
|
-
return
|
|
56
|
-
},
|
|
57
|
-
const { projectName: m, ...u } = Te(), { attribFields:
|
|
55
|
+
return c ? c.name : "";
|
|
56
|
+
}, wn = ({ children: i }) => {
|
|
57
|
+
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({
|
|
58
58
|
active: !1,
|
|
59
59
|
increment: "",
|
|
60
60
|
length: 10,
|
|
61
61
|
prefix: !1,
|
|
62
62
|
prefixDepth: 0
|
|
63
|
-
}), X = (a,
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
const
|
|
67
|
-
(
|
|
63
|
+
}), X = (a, d, y, k) => {
|
|
64
|
+
const o = {};
|
|
65
|
+
if (O !== "hierarchy" && !Ce(v) && a === "task") {
|
|
66
|
+
const g = Object.keys(v).filter(
|
|
67
|
+
(s) => !["hasValue", "noValue"].includes(s)
|
|
68
68
|
);
|
|
69
|
-
switch (
|
|
69
|
+
switch (O) {
|
|
70
70
|
case "assignees":
|
|
71
|
-
|
|
71
|
+
o.assignees = g;
|
|
72
72
|
break;
|
|
73
73
|
case "status":
|
|
74
|
-
|
|
74
|
+
o.status = g[0];
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -79,77 +79,77 @@ const Ee = (c, m, u) => {
|
|
|
79
79
|
type: "create",
|
|
80
80
|
entityType: a,
|
|
81
81
|
data: {
|
|
82
|
-
[`${a}Type`]:
|
|
83
|
-
id:
|
|
84
|
-
label:
|
|
85
|
-
name:
|
|
86
|
-
...
|
|
87
|
-
...
|
|
82
|
+
[`${a}Type`]: d,
|
|
83
|
+
id: Xe(),
|
|
84
|
+
label: y.label || y.name,
|
|
85
|
+
name: y.name,
|
|
86
|
+
...k && { [a === "folder" ? "parentId" : "folderId"]: k },
|
|
87
|
+
...o
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
|
-
}, ae = (a,
|
|
91
|
-
if (
|
|
92
|
-
return
|
|
93
|
-
const
|
|
94
|
-
for (const
|
|
95
|
-
for (const
|
|
96
|
-
const
|
|
97
|
-
|
|
90
|
+
}, ae = (a, d, y, k, o) => {
|
|
91
|
+
if (k.length === 0 && a === "folder")
|
|
92
|
+
return y.map((s) => X(a, d, { name: s }));
|
|
93
|
+
const g = [];
|
|
94
|
+
for (const s of k)
|
|
95
|
+
for (const S of y) {
|
|
96
|
+
const _ = o ? (s.label || s.name) + S : S;
|
|
97
|
+
g.push(X(a, d, { name: _ }, s.id));
|
|
98
98
|
}
|
|
99
|
-
return
|
|
100
|
-
}, de = (a,
|
|
101
|
-
(
|
|
102
|
-
),
|
|
103
|
-
const
|
|
104
|
-
for (const
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
else if (
|
|
108
|
-
if (!
|
|
109
|
-
console.warn("Task operation without folderId:",
|
|
99
|
+
return g;
|
|
100
|
+
}, de = (a, d, y, k, o) => k.length === 0 && a === "folder" ? [X(a, d, { name: o, label: y })] : k.map(
|
|
101
|
+
(g) => X(a, d, { name: o, label: y }, g)
|
|
102
|
+
), U = (a, d = {}) => {
|
|
103
|
+
const y = /* @__PURE__ */ new Set();
|
|
104
|
+
for (const C of a)
|
|
105
|
+
if (C.entityType === "folder")
|
|
106
|
+
C.data?.parentId && y.add(C.data.parentId);
|
|
107
|
+
else if (C.entityType === "task") {
|
|
108
|
+
if (!C.data?.folderId) {
|
|
109
|
+
console.warn("Task operation without folderId:", C);
|
|
110
110
|
continue;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
y.add(C.data.folderId);
|
|
113
113
|
}
|
|
114
|
-
const
|
|
115
|
-
for (const
|
|
116
|
-
if (!
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
const k = /* @__PURE__ */ new Map();
|
|
115
|
+
for (const C of y) {
|
|
116
|
+
if (!C) continue;
|
|
117
|
+
const I = w(
|
|
118
|
+
C,
|
|
119
|
+
c.map((P) => P.name)
|
|
120
120
|
);
|
|
121
|
-
|
|
121
|
+
k.set(C, I);
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const o = a.filter((C) => C.entityType === "folder"), g = a.filter((C) => C.entityType === "task"), s = (C, I) => {
|
|
124
124
|
let P = [];
|
|
125
|
-
for (const
|
|
126
|
-
const Z =
|
|
127
|
-
const oe =
|
|
125
|
+
for (const l of C) {
|
|
126
|
+
const Z = I === "folder" ? l.data.parentId : l.data.folderId, A = k.get(Z) || n, M = Object.keys(A).reduce((N, V) => {
|
|
127
|
+
const oe = c.find((pe) => pe.name === V);
|
|
128
128
|
if (!oe) return N;
|
|
129
|
-
const ye = oe.scope?.includes(
|
|
130
|
-
return ye ? N[
|
|
131
|
-
...
|
|
129
|
+
const ye = oe.scope?.includes(I), se = !!oe.data.inherit;
|
|
130
|
+
return ye ? N[V] = A[V] : se && A[V] && (N[V] = {
|
|
131
|
+
...A[V],
|
|
132
132
|
inherited: !0,
|
|
133
133
|
inheritedFrom: Z
|
|
134
134
|
}), N;
|
|
135
135
|
}, {});
|
|
136
|
-
if (
|
|
137
|
-
let N =
|
|
138
|
-
N = N ? N + "/" +
|
|
139
|
-
const
|
|
136
|
+
if (I === "folder") {
|
|
137
|
+
let N = l.data.parentId && d[l.data.parentId];
|
|
138
|
+
N = N ? N + "/" + l.data.name : "";
|
|
139
|
+
const V = {
|
|
140
140
|
type: "create",
|
|
141
141
|
entityType: "folder",
|
|
142
|
-
entityId:
|
|
142
|
+
entityId: l.data.id,
|
|
143
143
|
data: {
|
|
144
|
-
...
|
|
145
|
-
entityId:
|
|
144
|
+
...l.data,
|
|
145
|
+
entityId: l.data.id,
|
|
146
146
|
entityType: "folder",
|
|
147
147
|
projectName: m,
|
|
148
|
-
folderType:
|
|
148
|
+
folderType: l.data.folderType,
|
|
149
149
|
parents: [],
|
|
150
150
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
151
151
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
152
|
-
status:
|
|
152
|
+
status: W,
|
|
153
153
|
ownAttrib: [],
|
|
154
154
|
path: N,
|
|
155
155
|
tags: [],
|
|
@@ -158,25 +158,25 @@ const Ee = (c, m, u) => {
|
|
|
158
158
|
// Add empty links object
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
P.push(
|
|
161
|
+
P.push(V);
|
|
162
162
|
} else {
|
|
163
163
|
const N = {
|
|
164
164
|
type: "create",
|
|
165
165
|
entityType: "task",
|
|
166
|
-
entityId:
|
|
166
|
+
entityId: l.data.id,
|
|
167
167
|
data: {
|
|
168
|
-
...
|
|
169
|
-
entityId:
|
|
168
|
+
...l.data,
|
|
169
|
+
entityId: l.data.id,
|
|
170
170
|
entityType: "task",
|
|
171
|
-
label:
|
|
172
|
-
taskType:
|
|
173
|
-
folderId:
|
|
171
|
+
label: l.data.label || l.data.name,
|
|
172
|
+
taskType: l.data.taskType || "",
|
|
173
|
+
folderId: l.data.folderId || "",
|
|
174
174
|
active: !0,
|
|
175
|
-
assignees:
|
|
175
|
+
assignees: l.data.assignees || [],
|
|
176
176
|
projectName: m,
|
|
177
|
-
status:
|
|
177
|
+
status: l.data.status || j,
|
|
178
178
|
folder: {
|
|
179
|
-
path:
|
|
179
|
+
path: l.data.folderId ? d[l.data.folderId] : "",
|
|
180
180
|
folderType: ""
|
|
181
181
|
},
|
|
182
182
|
tags: [],
|
|
@@ -199,138 +199,138 @@ const Ee = (c, m, u) => {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
return P;
|
|
202
|
-
},
|
|
203
|
-
|
|
202
|
+
}, S = s(
|
|
203
|
+
o,
|
|
204
204
|
"folder"
|
|
205
|
-
),
|
|
206
|
-
|
|
205
|
+
), _ = s(
|
|
206
|
+
g,
|
|
207
207
|
"task"
|
|
208
208
|
);
|
|
209
|
-
return [...
|
|
210
|
-
}, [Y] =
|
|
211
|
-
if (!
|
|
209
|
+
return [...S, ..._];
|
|
210
|
+
}, [Y] = Ye(), ee = async (a) => {
|
|
211
|
+
if (!F || !b.label || !b.name)
|
|
212
212
|
throw me.error("Please provide a valid name and select an entity type"), new Error("Invalid entity type or label");
|
|
213
|
-
if (
|
|
213
|
+
if (F === "task" && a.length === 0)
|
|
214
214
|
throw me.error("Cannot create a task without selecting a folder"), new Error("No folder selected for task creation");
|
|
215
|
-
let
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
for (const
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
id:
|
|
222
|
-
name:
|
|
223
|
-
label:
|
|
215
|
+
let d;
|
|
216
|
+
if (H.active) {
|
|
217
|
+
const o = [];
|
|
218
|
+
for (const s of a) {
|
|
219
|
+
const S = h(s);
|
|
220
|
+
S && o.push({
|
|
221
|
+
id: S.id,
|
|
222
|
+
name: S.name,
|
|
223
|
+
label: S.label || S.name
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
226
|
+
const g = Ee(b.label, H.increment, H.length);
|
|
227
|
+
d = ae(
|
|
228
|
+
F,
|
|
229
|
+
b.subType,
|
|
230
|
+
g,
|
|
231
|
+
o,
|
|
232
|
+
H.prefix
|
|
233
233
|
);
|
|
234
234
|
} else
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
d = de(
|
|
236
|
+
F,
|
|
237
|
+
b.subType,
|
|
238
|
+
b.label,
|
|
239
239
|
a,
|
|
240
|
-
|
|
240
|
+
b.name
|
|
241
241
|
);
|
|
242
|
-
const
|
|
243
|
-
for (const
|
|
244
|
-
const
|
|
245
|
-
|
|
242
|
+
const y = {};
|
|
243
|
+
for (const o of a) {
|
|
244
|
+
const g = h(o);
|
|
245
|
+
g && (y[g.id] = g.path);
|
|
246
246
|
}
|
|
247
|
-
const
|
|
247
|
+
const k = U(d, y);
|
|
248
248
|
try {
|
|
249
|
-
const
|
|
250
|
-
operationsRequestModel: { operations:
|
|
249
|
+
const o = await Y({
|
|
250
|
+
operationsRequestModel: { operations: d },
|
|
251
251
|
projectName: m,
|
|
252
|
-
patchOperations:
|
|
252
|
+
patchOperations: k
|
|
253
253
|
}).unwrap();
|
|
254
|
-
if (
|
|
255
|
-
return
|
|
254
|
+
if (o?.success && o.operations)
|
|
255
|
+
return o.operations;
|
|
256
256
|
throw {
|
|
257
257
|
error: (
|
|
258
258
|
// @ts-expect-error - res.operations may not be typed
|
|
259
|
-
|
|
259
|
+
o?.operations?.[0]?.error || "An error occurred while creating the entity. Please try again."
|
|
260
260
|
)
|
|
261
261
|
};
|
|
262
|
-
} catch (
|
|
263
|
-
console.log(
|
|
264
|
-
const
|
|
265
|
-
throw me.error(
|
|
262
|
+
} catch (o) {
|
|
263
|
+
console.log(o);
|
|
264
|
+
const g = Qe(o);
|
|
265
|
+
throw me.error(g), new Error(g);
|
|
266
266
|
}
|
|
267
|
-
}, B = (a,
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
subType:
|
|
271
|
-
label:
|
|
272
|
-
name: be(
|
|
267
|
+
}, B = (a, d) => {
|
|
268
|
+
R(a), K(d?.parentFolderIds ?? null);
|
|
269
|
+
const o = ((a === "folder" ? u?.folderTypes : u?.taskTypes) || [])[0].name || "", g = yt(a, o, u), s = {
|
|
270
|
+
subType: o,
|
|
271
|
+
label: g,
|
|
272
|
+
name: be(g, q)
|
|
273
273
|
};
|
|
274
|
-
|
|
275
|
-
...
|
|
274
|
+
d?.isSequence && J((S) => ({
|
|
275
|
+
...S,
|
|
276
276
|
active: !0
|
|
277
|
-
})), ne(
|
|
277
|
+
})), ne(s);
|
|
278
278
|
};
|
|
279
279
|
return /* @__PURE__ */ t(
|
|
280
|
-
|
|
280
|
+
pt.Provider,
|
|
281
281
|
{
|
|
282
282
|
value: {
|
|
283
|
-
config:
|
|
284
|
-
entityType:
|
|
285
|
-
setEntityType:
|
|
286
|
-
entityForm:
|
|
283
|
+
config: q,
|
|
284
|
+
entityType: F,
|
|
285
|
+
setEntityType: R,
|
|
286
|
+
entityForm: b,
|
|
287
287
|
setEntityForm: ne,
|
|
288
|
-
sequenceForm:
|
|
289
|
-
setSequenceForm:
|
|
288
|
+
sequenceForm: H,
|
|
289
|
+
setSequenceForm: J,
|
|
290
290
|
onCreateNew: ee,
|
|
291
291
|
onOpenNew: B,
|
|
292
|
-
parentFolderIds:
|
|
292
|
+
parentFolderIds: p
|
|
293
293
|
},
|
|
294
|
-
children:
|
|
294
|
+
children: i
|
|
295
295
|
}
|
|
296
296
|
);
|
|
297
297
|
}, xe = Ue(
|
|
298
298
|
({
|
|
299
|
-
value:
|
|
299
|
+
value: i,
|
|
300
300
|
options: m,
|
|
301
301
|
onChange: u,
|
|
302
|
-
style:
|
|
303
|
-
mainStyle:
|
|
302
|
+
style: c,
|
|
303
|
+
mainStyle: w,
|
|
304
304
|
disabled: h,
|
|
305
305
|
placeholder: n,
|
|
306
|
-
isChanged:
|
|
306
|
+
isChanged: D,
|
|
307
307
|
align: r,
|
|
308
|
-
type:
|
|
309
|
-
...
|
|
310
|
-
},
|
|
308
|
+
type: q,
|
|
309
|
+
...v
|
|
310
|
+
}, O) => /* @__PURE__ */ t(
|
|
311
311
|
De,
|
|
312
312
|
{
|
|
313
313
|
options: m,
|
|
314
314
|
dataKey: "name",
|
|
315
|
-
value:
|
|
316
|
-
valueStyle:
|
|
317
|
-
onChange: (
|
|
315
|
+
value: i,
|
|
316
|
+
valueStyle: c,
|
|
317
|
+
onChange: (j) => u(j[0]),
|
|
318
318
|
disabled: h,
|
|
319
|
-
isChanged:
|
|
319
|
+
isChanged: D,
|
|
320
320
|
placeholder: n,
|
|
321
321
|
widthExpand: !0,
|
|
322
322
|
search: !0,
|
|
323
323
|
searchFields: ["name"],
|
|
324
324
|
emptyMessage: "None Set",
|
|
325
|
-
style:
|
|
325
|
+
style: w,
|
|
326
326
|
align: r,
|
|
327
|
-
ref:
|
|
328
|
-
...
|
|
327
|
+
ref: O,
|
|
328
|
+
...v
|
|
329
329
|
}
|
|
330
330
|
)
|
|
331
331
|
);
|
|
332
332
|
xe.displayName = "TypeEditor";
|
|
333
|
-
const
|
|
333
|
+
const gt = E.div`
|
|
334
334
|
position: relative;
|
|
335
335
|
display: flex;
|
|
336
336
|
flex-direction: column;
|
|
@@ -347,7 +347,7 @@ const yt = E.div`
|
|
|
347
347
|
&.task {
|
|
348
348
|
width: 100%;
|
|
349
349
|
}
|
|
350
|
-
`,
|
|
350
|
+
`, Be = E.div`
|
|
351
351
|
display: flex;
|
|
352
352
|
flex-direction: column;
|
|
353
353
|
/* panel */
|
|
@@ -378,7 +378,7 @@ const yt = E.div`
|
|
|
378
378
|
.form > .icon {
|
|
379
379
|
padding: 5px 0;
|
|
380
380
|
}
|
|
381
|
-
`,
|
|
381
|
+
`, bt = E(Be)`
|
|
382
382
|
& > div {
|
|
383
383
|
align-items: center;
|
|
384
384
|
}
|
|
@@ -418,7 +418,7 @@ const yt = E.div`
|
|
|
418
418
|
text-overflow: ellipsis;
|
|
419
419
|
white-space: nowrap;
|
|
420
420
|
}
|
|
421
|
-
`,
|
|
421
|
+
`, xt = E.div`
|
|
422
422
|
display: flex;
|
|
423
423
|
flex-direction: column;
|
|
424
424
|
gap: var(--base-gap-small);
|
|
@@ -429,18 +429,18 @@ const yt = E.div`
|
|
|
429
429
|
display: none;
|
|
430
430
|
}
|
|
431
431
|
width: 100%;
|
|
432
|
-
`,
|
|
432
|
+
`, wt = E.div`
|
|
433
433
|
display: flex;
|
|
434
434
|
flex-direction: row;
|
|
435
435
|
align-items: center;
|
|
436
436
|
gap: var(--base-gap-small);
|
|
437
437
|
width: 100%;
|
|
438
|
-
`,
|
|
438
|
+
`, vt = E.div`
|
|
439
439
|
display: flex;
|
|
440
440
|
flex-direction: column;
|
|
441
441
|
gap: var(--base-gap-small);
|
|
442
442
|
z-index: 10;
|
|
443
|
-
`,
|
|
443
|
+
`, It = E.span``, kt = E.span`
|
|
444
444
|
background-color: var(--md-sys-color-surface-container-low);
|
|
445
445
|
padding: 5px 8px;
|
|
446
446
|
border-radius: var(--border-radius);
|
|
@@ -451,16 +451,16 @@ const yt = E.div`
|
|
|
451
451
|
color: var(--md-sys-color-outline);
|
|
452
452
|
min-height: 30px;
|
|
453
453
|
`;
|
|
454
|
-
function
|
|
455
|
-
if (
|
|
456
|
-
return
|
|
454
|
+
function St(i, m, u = "") {
|
|
455
|
+
if (i.length <= m)
|
|
456
|
+
return i.map((c) => u + c).join(", ");
|
|
457
457
|
{
|
|
458
|
-
const
|
|
459
|
-
return `${
|
|
458
|
+
const c = i.slice(0, Math.ceil(m / 2)).map((h) => u + h), w = i.slice(-1).map((h) => u + h);
|
|
459
|
+
return `${c.join(", ")} ... ${w.join(", ")}`;
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
function Re(
|
|
463
|
-
return
|
|
462
|
+
function Re(i) {
|
|
463
|
+
return i === "Shot" ? {
|
|
464
464
|
base: "0010",
|
|
465
465
|
increment: "0020",
|
|
466
466
|
length: 10,
|
|
@@ -472,84 +472,84 @@ function Re(c) {
|
|
|
472
472
|
difference: 1
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
const
|
|
476
|
-
onChange:
|
|
475
|
+
const Ct = ({
|
|
476
|
+
onChange: i,
|
|
477
477
|
parentId: m = null,
|
|
478
478
|
children: u,
|
|
479
|
-
depth:
|
|
480
|
-
onNew:
|
|
479
|
+
depth: c,
|
|
480
|
+
onNew: w,
|
|
481
481
|
index: h,
|
|
482
482
|
nesting: n = !0,
|
|
483
|
-
isRoot:
|
|
483
|
+
isRoot: D,
|
|
484
484
|
parentLabel: r,
|
|
485
|
-
prefixDisabled:
|
|
486
|
-
typeSelectRef:
|
|
487
|
-
onLastInputKeydown:
|
|
488
|
-
folders:
|
|
489
|
-
...
|
|
485
|
+
prefixDisabled: q,
|
|
486
|
+
typeSelectRef: v,
|
|
487
|
+
onLastInputKeydown: O,
|
|
488
|
+
folders: j,
|
|
489
|
+
...W
|
|
490
490
|
}) => {
|
|
491
|
-
const { base:
|
|
491
|
+
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;
|
|
492
492
|
let ae = [];
|
|
493
|
-
|
|
494
|
-
const [de,
|
|
495
|
-
|
|
496
|
-
let { value:
|
|
497
|
-
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
493
|
+
F && R && p && (ae = Ee(F, R, p));
|
|
494
|
+
const [de, U] = z(ae), Y = ce(null), ee = ce(null), B = (s) => {
|
|
495
|
+
s?.preventDefault && s?.preventDefault();
|
|
496
|
+
let { value: S, id: _ } = s.target;
|
|
497
|
+
_ === "prefixDepth" && (S = parseInt(String(S), 10));
|
|
498
|
+
const C = { [_]: S }, I = { ...W, ...C };
|
|
499
|
+
if (_ === "type") {
|
|
500
500
|
let P = !1;
|
|
501
|
-
const
|
|
502
|
-
for (const M of
|
|
503
|
-
if (
|
|
501
|
+
const l = j.find((M) => M.name === S);
|
|
502
|
+
for (const M of j) {
|
|
503
|
+
if (I.base === "") {
|
|
504
504
|
P = !0;
|
|
505
505
|
break;
|
|
506
506
|
}
|
|
507
507
|
for (const N in M)
|
|
508
|
-
if (typeof M[N] == "string" &&
|
|
508
|
+
if (typeof M[N] == "string" && I.base?.toLowerCase().includes(M[N].toLowerCase())) {
|
|
509
509
|
P = !0;
|
|
510
510
|
break;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
if (!P || !
|
|
514
|
-
const Z =
|
|
515
|
-
|
|
513
|
+
if (!P || !l) return;
|
|
514
|
+
const Z = J === "folder" && l.shortName || l.name, A = Re(String(S));
|
|
515
|
+
I.base = Z + A.base, I.increment = Z + A.increment, I.length = A.length;
|
|
516
516
|
}
|
|
517
|
-
if (
|
|
518
|
-
const P = Re(
|
|
519
|
-
|
|
517
|
+
if (_ === "base") {
|
|
518
|
+
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");
|
|
519
|
+
I.increment = V.replace("NaN", "");
|
|
520
520
|
}
|
|
521
|
-
if (
|
|
522
|
-
|
|
523
|
-
typeof
|
|
524
|
-
|
|
525
|
-
),
|
|
526
|
-
const P = Ee(
|
|
527
|
-
|
|
521
|
+
if (i(
|
|
522
|
+
I,
|
|
523
|
+
typeof L == "string" ? L : void 0,
|
|
524
|
+
J
|
|
525
|
+
), I.base && I.increment && I.length) {
|
|
526
|
+
const P = Ee(I.base, I.increment, I.length);
|
|
527
|
+
U(P);
|
|
528
528
|
}
|
|
529
|
-
|
|
529
|
+
_ === "type" && setTimeout(X ? () => {
|
|
530
530
|
Y.current?.focus(), Y.current?.select();
|
|
531
531
|
} : () => {
|
|
532
532
|
ee.current?.focus();
|
|
533
533
|
}, 50);
|
|
534
|
-
}, [a,
|
|
534
|
+
}, [a, d] = z(!0);
|
|
535
535
|
Le(
|
|
536
536
|
() => {
|
|
537
|
-
const
|
|
538
|
-
|
|
537
|
+
const s = setTimeout(() => {
|
|
538
|
+
d(!1);
|
|
539
539
|
}, 1e3);
|
|
540
|
-
return () => clearTimeout(
|
|
540
|
+
return () => clearTimeout(s);
|
|
541
541
|
},
|
|
542
542
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
543
543
|
[]
|
|
544
544
|
);
|
|
545
|
-
const
|
|
545
|
+
const y = St(de, 5, b ? r : void 0), k = ce(null), [o, g] = z(0);
|
|
546
546
|
return Ve(() => {
|
|
547
|
-
|
|
548
|
-
}, [
|
|
549
|
-
|
|
547
|
+
k.current && g(k.current.offsetWidth);
|
|
548
|
+
}, [k.current, b]), J === "task" ? /* @__PURE__ */ t(
|
|
549
|
+
bt,
|
|
550
550
|
{
|
|
551
551
|
className: Ae("task", { "is-new": a, nesting: n, "no-nesting": !n }),
|
|
552
|
-
style: { zIndex: 100 - (
|
|
552
|
+
style: { zIndex: 100 - (c ?? 0) - (h ?? 0) },
|
|
553
553
|
children: /* @__PURE__ */ f(Se, { className: "form", children: [
|
|
554
554
|
/* @__PURE__ */ t(Q, { icon: "task_alt" }),
|
|
555
555
|
/* @__PURE__ */ t("strong", { children: "Task" }),
|
|
@@ -557,9 +557,9 @@ const St = ({
|
|
|
557
557
|
/* @__PURE__ */ t(
|
|
558
558
|
xe,
|
|
559
559
|
{
|
|
560
|
-
value: [
|
|
561
|
-
onChange: (
|
|
562
|
-
options:
|
|
560
|
+
value: [K],
|
|
561
|
+
onChange: (s) => B({ target: { value: s, id: "type" } }),
|
|
562
|
+
options: j,
|
|
563
563
|
style: { width: 160 },
|
|
564
564
|
align: "right"
|
|
565
565
|
}
|
|
@@ -568,7 +568,7 @@ const St = ({
|
|
|
568
568
|
/* @__PURE__ */ t(
|
|
569
569
|
he,
|
|
570
570
|
{
|
|
571
|
-
value:
|
|
571
|
+
value: F,
|
|
572
572
|
id: "base",
|
|
573
573
|
onChange: B,
|
|
574
574
|
placeholder: "compositing...",
|
|
@@ -580,21 +580,21 @@ const St = ({
|
|
|
580
580
|
{
|
|
581
581
|
icon: "close",
|
|
582
582
|
variant: "text",
|
|
583
|
-
onClick: () =>
|
|
583
|
+
onClick: () => i({ id: L, delete: !0 }, m),
|
|
584
584
|
className: "delete"
|
|
585
585
|
}
|
|
586
586
|
)
|
|
587
587
|
] })
|
|
588
588
|
}
|
|
589
|
-
) : /* @__PURE__ */ f(
|
|
590
|
-
/* @__PURE__ */ f(
|
|
591
|
-
n && /* @__PURE__ */ f(
|
|
589
|
+
) : /* @__PURE__ */ f(gt, { className: "folder", children: [
|
|
590
|
+
/* @__PURE__ */ f(wt, { className: "seq", style: { zIndex: 100 - (c ?? 0) - (h ?? 0) }, children: [
|
|
591
|
+
n && /* @__PURE__ */ f(vt, { className: "buttons", children: [
|
|
592
592
|
/* @__PURE__ */ f(Se, { children: [
|
|
593
|
-
|
|
593
|
+
c === 0 && /* @__PURE__ */ t(
|
|
594
594
|
fe,
|
|
595
595
|
{
|
|
596
596
|
icon: "south",
|
|
597
|
-
onClick: () =>
|
|
597
|
+
onClick: () => w?.(null),
|
|
598
598
|
label: "Root",
|
|
599
599
|
title: "add root folder"
|
|
600
600
|
}
|
|
@@ -603,8 +603,8 @@ const St = ({
|
|
|
603
603
|
fe,
|
|
604
604
|
{
|
|
605
605
|
icon: te.folder.icon,
|
|
606
|
-
onClick: () =>
|
|
607
|
-
label:
|
|
606
|
+
onClick: () => L && w?.(L, "folder"),
|
|
607
|
+
label: c === 0 ? te.folder.label : void 0,
|
|
608
608
|
title: "add nested folder"
|
|
609
609
|
}
|
|
610
610
|
)
|
|
@@ -613,18 +613,18 @@ const St = ({
|
|
|
613
613
|
fe,
|
|
614
614
|
{
|
|
615
615
|
icon: te.task.icon,
|
|
616
|
-
onClick: () =>
|
|
617
|
-
label:
|
|
616
|
+
onClick: () => L && w?.(L, "task"),
|
|
617
|
+
label: c === 0 ? te.task.label : void 0,
|
|
618
618
|
title: "add nested task",
|
|
619
619
|
style: { width: "max-content", marginLeft: "auto" }
|
|
620
620
|
}
|
|
621
621
|
)
|
|
622
622
|
] }),
|
|
623
623
|
/* @__PURE__ */ f(
|
|
624
|
-
|
|
624
|
+
Be,
|
|
625
625
|
{
|
|
626
626
|
className: Ae({ "is-new": a, "no-nesting": !n }),
|
|
627
|
-
ref:
|
|
627
|
+
ref: k,
|
|
628
628
|
children: [
|
|
629
629
|
/* @__PURE__ */ f(Se, { className: "form folder", children: [
|
|
630
630
|
/* @__PURE__ */ f(re, { children: [
|
|
@@ -632,26 +632,26 @@ const St = ({
|
|
|
632
632
|
/* @__PURE__ */ t(
|
|
633
633
|
xe,
|
|
634
634
|
{
|
|
635
|
-
value: [
|
|
636
|
-
onChange: (
|
|
637
|
-
options:
|
|
635
|
+
value: [K],
|
|
636
|
+
onChange: (s) => B({ target: { value: s, id: "type" } }),
|
|
637
|
+
options: j,
|
|
638
638
|
style: { width: 160 },
|
|
639
639
|
align: "right",
|
|
640
|
-
ref:
|
|
640
|
+
ref: v
|
|
641
641
|
}
|
|
642
642
|
)
|
|
643
643
|
] }),
|
|
644
644
|
/* @__PURE__ */ t(Q, { icon: "trending_flat" }),
|
|
645
|
-
(
|
|
645
|
+
(c !== 0 || !n) && /* @__PURE__ */ f(ue, { children: [
|
|
646
646
|
/* @__PURE__ */ f(ue, { children: [
|
|
647
647
|
/* @__PURE__ */ f(re, { children: [
|
|
648
648
|
/* @__PURE__ */ t("label", { children: "Prefix" }),
|
|
649
649
|
/* @__PURE__ */ t(
|
|
650
650
|
Ne,
|
|
651
651
|
{
|
|
652
|
-
checked:
|
|
652
|
+
checked: b,
|
|
653
653
|
id: "prefix",
|
|
654
|
-
onChange: () => B({ target: { value: !
|
|
654
|
+
onChange: () => B({ target: { value: !b, id: "prefix" } }),
|
|
655
655
|
disabled: X,
|
|
656
656
|
ref: ee,
|
|
657
657
|
switchStyle: { margin: "4px 0" }
|
|
@@ -660,7 +660,7 @@ const St = ({
|
|
|
660
660
|
] }),
|
|
661
661
|
/* @__PURE__ */ t(Q, { icon: "trending_flat" })
|
|
662
662
|
] }),
|
|
663
|
-
n &&
|
|
663
|
+
n && b && /* @__PURE__ */ f(re, { children: [
|
|
664
664
|
/* @__PURE__ */ t("label", { children: "Depth" }),
|
|
665
665
|
/* @__PURE__ */ t(
|
|
666
666
|
je,
|
|
@@ -668,19 +668,19 @@ const St = ({
|
|
|
668
668
|
value: ne,
|
|
669
669
|
id: "prefixDepth",
|
|
670
670
|
onChange: B,
|
|
671
|
-
max:
|
|
671
|
+
max: H?.length,
|
|
672
672
|
min: 0
|
|
673
673
|
}
|
|
674
674
|
)
|
|
675
675
|
] })
|
|
676
676
|
] }),
|
|
677
|
-
|
|
677
|
+
H && n && /* @__PURE__ */ t(re, { style: { display: b ? "flex" : "none" }, children: /* @__PURE__ */ t(kt, { children: H.join("") }) }),
|
|
678
678
|
/* @__PURE__ */ f(re, { className: "seq", children: [
|
|
679
679
|
/* @__PURE__ */ t("label", { children: "First Name" }),
|
|
680
680
|
/* @__PURE__ */ t(
|
|
681
681
|
he,
|
|
682
682
|
{
|
|
683
|
-
value:
|
|
683
|
+
value: F,
|
|
684
684
|
id: "base",
|
|
685
685
|
ref: Y,
|
|
686
686
|
onChange: B,
|
|
@@ -695,7 +695,7 @@ const St = ({
|
|
|
695
695
|
/* @__PURE__ */ t(
|
|
696
696
|
he,
|
|
697
697
|
{
|
|
698
|
-
value:
|
|
698
|
+
value: R,
|
|
699
699
|
id: "increment",
|
|
700
700
|
onChange: B,
|
|
701
701
|
placeholder: "ep102...",
|
|
@@ -709,62 +709,62 @@ const St = ({
|
|
|
709
709
|
/* @__PURE__ */ t(
|
|
710
710
|
je,
|
|
711
711
|
{
|
|
712
|
-
value:
|
|
712
|
+
value: p,
|
|
713
713
|
id: "length",
|
|
714
714
|
onChange: B,
|
|
715
715
|
placeholder: "15...",
|
|
716
716
|
min: 2,
|
|
717
|
-
onFocus: (
|
|
718
|
-
onKeyDown:
|
|
717
|
+
onFocus: (s) => s.target.select(),
|
|
718
|
+
onKeyDown: O
|
|
719
719
|
}
|
|
720
720
|
)
|
|
721
721
|
] }),
|
|
722
|
-
/* @__PURE__ */ t(
|
|
722
|
+
/* @__PURE__ */ t(ze, {}),
|
|
723
723
|
n && /* @__PURE__ */ t(
|
|
724
724
|
fe,
|
|
725
725
|
{
|
|
726
726
|
icon: "close",
|
|
727
727
|
variant: "text",
|
|
728
|
-
onClick: () =>
|
|
729
|
-
disabled:
|
|
728
|
+
onClick: () => i({ id: L, delete: !0 }),
|
|
729
|
+
disabled: c === 0 && h === 0
|
|
730
730
|
}
|
|
731
731
|
)
|
|
732
732
|
] }),
|
|
733
|
-
!n && /* @__PURE__ */ f(
|
|
733
|
+
!n && /* @__PURE__ */ f(It, { children: [
|
|
734
734
|
"Example: ",
|
|
735
|
-
|
|
735
|
+
y
|
|
736
736
|
] })
|
|
737
737
|
]
|
|
738
738
|
}
|
|
739
739
|
)
|
|
740
740
|
] }),
|
|
741
741
|
n && /* @__PURE__ */ t(
|
|
742
|
-
|
|
742
|
+
xt,
|
|
743
743
|
{
|
|
744
744
|
className: "children",
|
|
745
|
-
style: { width:
|
|
745
|
+
style: { width: o, zIndex: 99 - (c ?? 0) - (h ?? 0) },
|
|
746
746
|
children: u
|
|
747
747
|
}
|
|
748
748
|
)
|
|
749
749
|
] });
|
|
750
|
-
},
|
|
751
|
-
options:
|
|
750
|
+
}, Tt = ({
|
|
751
|
+
options: i,
|
|
752
752
|
onOpenNew: m,
|
|
753
753
|
enabled: u = !0
|
|
754
754
|
}) => {
|
|
755
|
-
const { menuOpen:
|
|
755
|
+
const { menuOpen: c } = Pe(et) || { menuOpen: !1 }, { editingCellId: w } = Pe(lt) || { editingCellId: null };
|
|
756
756
|
Le(() => {
|
|
757
757
|
if (!u) return;
|
|
758
758
|
const h = (n) => {
|
|
759
|
-
if (
|
|
759
|
+
if (c || n.target instanceof HTMLElement && (n.target.tagName === "INPUT" || n.target.tagName === "TEXTAREA" || n.target.isContentEditable || n.target.getAttribute("role") === "textbox") || w || n.ctrlKey || n.metaKey || n.altKey)
|
|
760
760
|
return;
|
|
761
|
-
const
|
|
761
|
+
const D = n.key.toUpperCase(), r = i.find((q) => q.shortcut === D);
|
|
762
762
|
r && !r.disabled && (n.preventDefault(), m(r.type, { isSequence: r.isSequence }));
|
|
763
763
|
};
|
|
764
764
|
return window.addEventListener("keydown", h), () => {
|
|
765
765
|
window.removeEventListener("keydown", h);
|
|
766
766
|
};
|
|
767
|
-
}, [u,
|
|
767
|
+
}, [u, i, m, w, c]);
|
|
768
768
|
}, we = E.label`
|
|
769
769
|
font-size: ${qe.labelMedium};
|
|
770
770
|
color: var(--md-sys-color-outline);
|
|
@@ -783,14 +783,14 @@ const St = ({
|
|
|
783
783
|
font-size: 16px;
|
|
784
784
|
color: var(--md-sys-color-outline);
|
|
785
785
|
}
|
|
786
|
-
`,
|
|
786
|
+
`, Nt = E.div`
|
|
787
787
|
display: flex;
|
|
788
788
|
align-items: center;
|
|
789
789
|
margin-top: 6px;
|
|
790
790
|
gap: var(--base-gap-small);
|
|
791
791
|
width: 100%;
|
|
792
792
|
word-break: break-all;
|
|
793
|
-
`,
|
|
793
|
+
`, Et = E.span`
|
|
794
794
|
position: relative;
|
|
795
795
|
padding: 2px 6px;
|
|
796
796
|
font-size: ${qe.bodySmall};
|
|
@@ -810,7 +810,7 @@ const St = ({
|
|
|
810
810
|
display: flex;
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
`,
|
|
813
|
+
`, Ot = E(he)`
|
|
814
814
|
font-size: ${qe.bodySmall};
|
|
815
815
|
width: 100px;
|
|
816
816
|
max-width: 160px;
|
|
@@ -829,76 +829,78 @@ const St = ({
|
|
|
829
829
|
outline: 1px solid var(--md-sys-color-primary);
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
|
-
`,
|
|
833
|
-
handleChange:
|
|
832
|
+
`, Dt = ({
|
|
833
|
+
handleChange: i,
|
|
834
834
|
entityForm: m,
|
|
835
835
|
setNameFocused: u,
|
|
836
|
-
handleKeyDown:
|
|
837
|
-
labelRef:
|
|
836
|
+
handleKeyDown: c,
|
|
837
|
+
labelRef: w,
|
|
838
838
|
nameInfo: h = ""
|
|
839
839
|
}) => {
|
|
840
|
-
const
|
|
841
|
-
|
|
842
|
-
|
|
840
|
+
const n = Je(), [D, r] = z(!1), [q, v] = z(void 0), O = ce(null), j = () => {
|
|
841
|
+
r(!0), u(!0), v(m.name), setTimeout(() => {
|
|
842
|
+
O.current && (O.current.focus(), O.current.select());
|
|
843
843
|
}, 0);
|
|
844
|
-
},
|
|
845
|
-
const
|
|
846
|
-
(!
|
|
847
|
-
},
|
|
848
|
-
if (
|
|
849
|
-
|
|
844
|
+
}, W = (p) => {
|
|
845
|
+
const K = p.relatedTarget;
|
|
846
|
+
(!K || !O.current?.contains(K)) && (r(!1), u(!1), v(void 0));
|
|
847
|
+
}, F = (p) => {
|
|
848
|
+
if (p.key === "ArrowDown" && !p.altKey || p.key === "Tab") {
|
|
849
|
+
p.preventDefault(), j();
|
|
850
850
|
return;
|
|
851
851
|
}
|
|
852
|
-
|
|
853
|
-
},
|
|
854
|
-
if (
|
|
855
|
-
if (
|
|
856
|
-
return
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
const
|
|
860
|
-
|
|
852
|
+
c(p, !0);
|
|
853
|
+
}, R = (p) => {
|
|
854
|
+
if (p.key === "Enter" || p.key === "Escape" || p.key === "ArrowUp" && !p.altKey) {
|
|
855
|
+
if (p.stopPropagation(), p.key === "Enter" && !D)
|
|
856
|
+
return j();
|
|
857
|
+
p.key === "Escape" && q !== void 0 && i(q, "name"), r(!1), u(!1), v(void 0), setTimeout(() => {
|
|
858
|
+
w.current?.focus();
|
|
859
|
+
const K = m.label.length || 0;
|
|
860
|
+
w.current?.setSelectionRange(K, K);
|
|
861
861
|
}, 0);
|
|
862
862
|
return;
|
|
863
863
|
}
|
|
864
864
|
};
|
|
865
865
|
return /* @__PURE__ */ f(Oe, { style: { flex: 1 }, children: [
|
|
866
|
-
/* @__PURE__ */ t(we, { children: "Label" }),
|
|
866
|
+
/* @__PURE__ */ t(we, { htmlFor: `${n}-label`, children: "Label" }),
|
|
867
867
|
/* @__PURE__ */ t(
|
|
868
868
|
he,
|
|
869
869
|
{
|
|
870
|
+
id: `${n}-label`,
|
|
870
871
|
value: m.label,
|
|
871
|
-
onChange: (
|
|
872
|
-
ref:
|
|
872
|
+
onChange: (p) => i(p.target.value, "label"),
|
|
873
|
+
ref: w,
|
|
873
874
|
onFocus: () => u(!0),
|
|
874
|
-
onKeyDown:
|
|
875
|
+
onKeyDown: F,
|
|
875
876
|
style: { flex: 1, width: "100%" }
|
|
876
877
|
}
|
|
877
878
|
),
|
|
878
|
-
/* @__PURE__ */ f(
|
|
879
|
-
/* @__PURE__ */ t(we, { children: "Name" }),
|
|
879
|
+
/* @__PURE__ */ f(Nt, { onKeyDown: R, children: [
|
|
880
|
+
/* @__PURE__ */ t(we, { htmlFor: `${n}-name`, children: "Name" }),
|
|
880
881
|
h && /* @__PURE__ */ t(Q, { icon: "info", "data-tooltip": h, "data-tooltip-delay": 0 }),
|
|
881
|
-
|
|
882
|
-
|
|
882
|
+
D ? /* @__PURE__ */ t(
|
|
883
|
+
Ot,
|
|
883
884
|
{
|
|
884
|
-
|
|
885
|
+
id: `${n}-name`,
|
|
886
|
+
ref: O,
|
|
885
887
|
value: m.name,
|
|
886
|
-
onChange: (
|
|
887
|
-
onBlur:
|
|
888
|
+
onChange: (p) => i(p.target.value, "name"),
|
|
889
|
+
onBlur: W,
|
|
888
890
|
style: { flex: 1 }
|
|
889
891
|
}
|
|
890
|
-
) : /* @__PURE__ */ f(
|
|
892
|
+
) : /* @__PURE__ */ f(Et, { onClick: j, tabIndex: 0, children: [
|
|
891
893
|
m.name,
|
|
892
894
|
" ",
|
|
893
895
|
/* @__PURE__ */ t(Q, { icon: "edit" })
|
|
894
896
|
] })
|
|
895
897
|
] })
|
|
896
898
|
] });
|
|
897
|
-
},
|
|
899
|
+
}, qt = E(tt)`
|
|
898
900
|
.body {
|
|
899
901
|
overflow: visible;
|
|
900
902
|
}
|
|
901
|
-
`,
|
|
903
|
+
`, Ft = E.div`
|
|
902
904
|
display: flex;
|
|
903
905
|
align-items: flex-start;
|
|
904
906
|
gap: var(--base-gap-large);
|
|
@@ -907,7 +909,7 @@ const St = ({
|
|
|
907
909
|
margin-right: 8px;
|
|
908
910
|
}
|
|
909
911
|
}
|
|
910
|
-
`,
|
|
912
|
+
`, Pt = E(De)`
|
|
911
913
|
overflow: visible;
|
|
912
914
|
min-width: fit-content;
|
|
913
915
|
.button {
|
|
@@ -932,7 +934,7 @@ const St = ({
|
|
|
932
934
|
align-items: center;
|
|
933
935
|
min-height: 32px;
|
|
934
936
|
color: var(--md-sys-color-outline);
|
|
935
|
-
`,
|
|
937
|
+
`, Mt = E.span`
|
|
936
938
|
display: flex;
|
|
937
939
|
align-items: center;
|
|
938
940
|
gap: var(--base-gap-small);
|
|
@@ -948,110 +950,110 @@ const St = ({
|
|
|
948
950
|
&.disabled {
|
|
949
951
|
opacity: 0.5;
|
|
950
952
|
}
|
|
951
|
-
`,
|
|
952
|
-
disabled:
|
|
953
|
+
`, vn = ({
|
|
954
|
+
disabled: i,
|
|
953
955
|
onNewEntities: m,
|
|
954
956
|
showButton: u = !0,
|
|
955
|
-
showDialog:
|
|
956
|
-
enableShortcuts:
|
|
957
|
+
showDialog: c = !0,
|
|
958
|
+
enableShortcuts: w = !0
|
|
957
959
|
}) => {
|
|
958
960
|
const { ...h } = Te(), {
|
|
959
961
|
entityType: n,
|
|
960
|
-
setEntityType:
|
|
962
|
+
setEntityType: D,
|
|
961
963
|
entityForm: r,
|
|
962
|
-
setEntityForm:
|
|
963
|
-
sequenceForm:
|
|
964
|
-
setSequenceForm:
|
|
965
|
-
onCreateNew:
|
|
966
|
-
onOpenNew:
|
|
967
|
-
config:
|
|
968
|
-
parentFolderIds:
|
|
969
|
-
} =
|
|
970
|
-
if (
|
|
971
|
-
const e =
|
|
964
|
+
setEntityForm: q,
|
|
965
|
+
sequenceForm: v,
|
|
966
|
+
setSequenceForm: O,
|
|
967
|
+
onCreateNew: j,
|
|
968
|
+
onOpenNew: W,
|
|
969
|
+
config: F,
|
|
970
|
+
parentFolderIds: R
|
|
971
|
+
} = ft(), [p, K] = z(!1), { selectedCells: L } = it() || {}, b = ht(), { getFolderById: ne } = $e(), H = ct(), J = H?.getEntityById, X = H?.showHierarchy ?? !0, ae = ge(() => {
|
|
972
|
+
if (R !== null) return R;
|
|
973
|
+
const e = L ? Array.from(L).map((T) => dt(T)) : [], x = Array.from(
|
|
972
974
|
new Set(
|
|
973
|
-
e.filter((
|
|
975
|
+
e.filter((T) => T && T.colId !== Me).map((T) => T?.rowId).filter(Boolean)
|
|
974
976
|
)
|
|
975
|
-
),
|
|
977
|
+
), $ = Array.from(
|
|
976
978
|
new Set(
|
|
977
|
-
e.filter((
|
|
979
|
+
e.filter((T) => T?.colId === Me).map((T) => T?.rowId).filter(Boolean)
|
|
978
980
|
)
|
|
979
|
-
), le =
|
|
981
|
+
), le = x.length > 0 ? x : $;
|
|
980
982
|
if (le.length > 0) {
|
|
981
|
-
const
|
|
983
|
+
const T = le.map((G) => J?.(G)), ie = T.filter(
|
|
982
984
|
(G) => G?.entityType === "folder"
|
|
983
|
-
),
|
|
985
|
+
), ke = T.filter(
|
|
984
986
|
(G) => G?.entityType === "task"
|
|
985
987
|
), Fe = Array.from(
|
|
986
988
|
/* @__PURE__ */ new Set([
|
|
987
989
|
...ie.map((G) => G.id),
|
|
988
|
-
...
|
|
990
|
+
...ke.map((G) => G.folderId)
|
|
989
991
|
])
|
|
990
992
|
);
|
|
991
993
|
if (Fe.length) return Fe;
|
|
992
994
|
}
|
|
993
|
-
return
|
|
994
|
-
}, [
|
|
995
|
-
() =>
|
|
996
|
-
const
|
|
997
|
-
return { value: e, label:
|
|
995
|
+
return b ? Object.keys(b).filter((T) => b[T]) : [];
|
|
996
|
+
}, [R, L, b, J]), de = ge(() => R !== null ? R : b ? Object.keys(b).filter((e) => b[e]) : [], [R, b]), U = n === "folder" && !X ? de : ae, Y = ae.length > 0, ee = ge(
|
|
997
|
+
() => U.map((e) => {
|
|
998
|
+
const x = J?.(e) || ne(e);
|
|
999
|
+
return { value: e, label: x?.label || x?.name || e };
|
|
998
1000
|
}),
|
|
999
|
-
[
|
|
1001
|
+
[U, J, ne]
|
|
1000
1002
|
), [B, a] = z(null);
|
|
1001
|
-
let
|
|
1002
|
-
|
|
1003
|
-
const
|
|
1003
|
+
let d = B !== null ? B : U;
|
|
1004
|
+
d = d.filter((e) => U.includes(e)), d.length === 0 && U.length > 0 && (d = U);
|
|
1005
|
+
const y = d.map((e) => ee.find((x) => x.value === e)?.label || "").filter(Boolean), k = y[0] || "", o = Ce(U), [g, s] = z(!1), [S, _] = z(!1), C = { label: "", subType: "", name: "" }, I = () => {
|
|
1004
1006
|
let e = "Add New ";
|
|
1005
|
-
return
|
|
1006
|
-
}, P = (n === "folder" ? h?.folderTypes : h?.taskTypes) || [],
|
|
1007
|
-
if (!
|
|
1008
|
-
let
|
|
1009
|
-
if (
|
|
1010
|
-
const le = P.find((ie) => ie.name === r.subType),
|
|
1011
|
-
if (
|
|
1012
|
-
|
|
1013
|
-
const
|
|
1014
|
-
r.name ===
|
|
1007
|
+
return o && n === "folder" && (e += "Root "), e += n ? te[n].label : "", o || (y.length > 2 ? e += " - " + y.slice(0, 2).join(", ") + ` +${y.length - 2} more` : e += " - " + y.join(", ")), e;
|
|
1008
|
+
}, P = (n === "folder" ? h?.folderTypes : h?.taskTypes) || [], l = (e, x) => {
|
|
1009
|
+
if (!x) return;
|
|
1010
|
+
let $ = { ...r };
|
|
1011
|
+
if ($[x] = e, e && x === "subType") {
|
|
1012
|
+
const le = P.find((ie) => ie.name === r.subType), T = P.find((ie) => ie.name === e);
|
|
1013
|
+
if (T && r.label === le?.name) {
|
|
1014
|
+
$.label = T.name;
|
|
1015
|
+
const ke = be(r.label, F);
|
|
1016
|
+
r.name === ke && ($.name = be($.label, F));
|
|
1015
1017
|
}
|
|
1016
1018
|
setTimeout(() => {
|
|
1017
1019
|
M.current?.focus();
|
|
1018
1020
|
}, 100);
|
|
1019
|
-
} else
|
|
1020
|
-
|
|
1021
|
+
} else x === "label" ? ($.label = e, S || ($.name = be(e, F))) : x === "name" && (_(!0), $.name = e);
|
|
1022
|
+
q($);
|
|
1021
1023
|
}, Z = (e) => {
|
|
1022
|
-
|
|
1023
|
-
...
|
|
1024
|
+
q({ ...r, label: e.base, subType: e.type }), O({
|
|
1025
|
+
...v,
|
|
1024
1026
|
increment: e.increment,
|
|
1025
1027
|
length: e.length,
|
|
1026
1028
|
prefix: e.prefix,
|
|
1027
1029
|
prefixDepth: e.prefixDepth
|
|
1028
1030
|
});
|
|
1029
|
-
},
|
|
1030
|
-
|
|
1031
|
-
},
|
|
1032
|
-
const
|
|
1033
|
-
if (!
|
|
1034
|
-
me.error(
|
|
1031
|
+
}, A = ce(null), M = ce(null), N = () => {
|
|
1032
|
+
D(null), q(C), O((e) => ({ ...e, active: !1 })), _(!1), a(null);
|
|
1033
|
+
}, V = () => setTimeout(() => A.current?.open(), 180), [oe, ye] = z(!1), se = async (e) => {
|
|
1034
|
+
const x = Ze(r.label);
|
|
1035
|
+
if (!x.valid) {
|
|
1036
|
+
me.error(x.error || "Invalid label");
|
|
1035
1037
|
return;
|
|
1036
1038
|
}
|
|
1037
|
-
const { valid:
|
|
1038
|
-
if (
|
|
1039
|
+
const { valid: $, error: le } = Ge(r.name);
|
|
1040
|
+
if (!$) {
|
|
1039
1041
|
me.error(le || "Invalid name");
|
|
1040
1042
|
return;
|
|
1041
1043
|
}
|
|
1042
1044
|
ye(!0);
|
|
1043
1045
|
try {
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1046
|
+
const T = await j(d);
|
|
1047
|
+
m?.(T, e, d), e ? (M.current && (M.current.focus(), M.current.select()), _(!1)) : N();
|
|
1046
1048
|
} catch {
|
|
1047
1049
|
} finally {
|
|
1048
1050
|
ye(!1);
|
|
1049
1051
|
}
|
|
1050
|
-
}, pe = (e,
|
|
1051
|
-
e?.stopPropagation(), e.key === "Enter" ?
|
|
1052
|
+
}, pe = (e, x) => {
|
|
1053
|
+
e?.stopPropagation(), e.key === "Enter" ? x && !e.shiftKey || e.ctrlKey || e.metaKey ? (se(!1), K(!1)) : e.shiftKey && (se(!0), K(!0)) : e.key === "Escape" && N();
|
|
1052
1054
|
}, _e = () => {
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
+
g && (s(!1), setTimeout(() => {
|
|
1056
|
+
A.current?.open();
|
|
1055
1057
|
}, 100));
|
|
1056
1058
|
}, ve = ge(
|
|
1057
1059
|
() => [
|
|
@@ -1080,14 +1082,14 @@ const St = ({
|
|
|
1080
1082
|
],
|
|
1081
1083
|
[Y]
|
|
1082
1084
|
);
|
|
1083
|
-
|
|
1085
|
+
Tt({ options: ve, onOpenNew: W, enabled: w });
|
|
1084
1086
|
const We = (e) => {
|
|
1085
|
-
const
|
|
1086
|
-
|
|
1087
|
-
},
|
|
1087
|
+
const x = ve.find(($) => $.value === e);
|
|
1088
|
+
x && !x.disabled && W(x.type, { isSequence: x.isSequence });
|
|
1089
|
+
}, Ie = n === "task" && Ce(d), He = !r.label || !r.subType || Ie;
|
|
1088
1090
|
return /* @__PURE__ */ f(ue, { children: [
|
|
1089
1091
|
u && /* @__PURE__ */ t(
|
|
1090
|
-
|
|
1092
|
+
Pt,
|
|
1091
1093
|
{
|
|
1092
1094
|
options: ve,
|
|
1093
1095
|
value: [],
|
|
@@ -1097,73 +1099,73 @@ const St = ({
|
|
|
1097
1099
|
/* @__PURE__ */ t("span", { children: "Create" })
|
|
1098
1100
|
] }),
|
|
1099
1101
|
itemTemplate: (e) => /* @__PURE__ */ f(
|
|
1100
|
-
|
|
1102
|
+
Mt,
|
|
1101
1103
|
{
|
|
1102
1104
|
className: e.disabled ? "disabled" : void 0,
|
|
1103
1105
|
"data-tooltip": e.disabled ? e.disabledMessage : void 0,
|
|
1104
1106
|
children: [
|
|
1105
1107
|
/* @__PURE__ */ t(Q, { icon: e.icon }),
|
|
1106
1108
|
/* @__PURE__ */ t("span", { className: "label", children: e.label }),
|
|
1107
|
-
/* @__PURE__ */ t(
|
|
1109
|
+
/* @__PURE__ */ t(nt, { children: e.shortcut })
|
|
1108
1110
|
]
|
|
1109
1111
|
}
|
|
1110
1112
|
),
|
|
1111
1113
|
itemStyle: {
|
|
1112
1114
|
paddingRight: 16
|
|
1113
1115
|
},
|
|
1114
|
-
disabled:
|
|
1116
|
+
disabled: i,
|
|
1115
1117
|
"data-tooltip": "Create new entity"
|
|
1116
1118
|
}
|
|
1117
1119
|
),
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
+
c && n && /* @__PURE__ */ t(
|
|
1121
|
+
qt,
|
|
1120
1122
|
{
|
|
1121
|
-
header:
|
|
1123
|
+
header: I(),
|
|
1122
1124
|
isOpen: !0,
|
|
1123
1125
|
onClose: N,
|
|
1124
|
-
onShow:
|
|
1125
|
-
size:
|
|
1126
|
-
style: { maxWidth:
|
|
1126
|
+
onShow: V,
|
|
1127
|
+
size: v.active ? "lg" : "md",
|
|
1128
|
+
style: { maxWidth: v.active ? "unset" : 430 },
|
|
1127
1129
|
enableBackdropClose: !1,
|
|
1128
|
-
footer: /* @__PURE__ */ f(
|
|
1130
|
+
footer: /* @__PURE__ */ f(at, { onFocus: () => s(!1), style: { width: "100%" }, children: [
|
|
1129
1131
|
n === "folder" && /* @__PURE__ */ f(ue, { children: [
|
|
1130
1132
|
/* @__PURE__ */ t("span", { children: "Sequence" }),
|
|
1131
1133
|
/* @__PURE__ */ t(
|
|
1132
1134
|
Ne,
|
|
1133
1135
|
{
|
|
1134
|
-
checked:
|
|
1135
|
-
onChange: (e) =>
|
|
1136
|
-
...
|
|
1136
|
+
checked: v.active,
|
|
1137
|
+
onChange: (e) => O({
|
|
1138
|
+
...v,
|
|
1137
1139
|
active: e.target.checked
|
|
1138
1140
|
})
|
|
1139
1141
|
}
|
|
1140
1142
|
)
|
|
1141
1143
|
] }),
|
|
1142
|
-
/* @__PURE__ */ t(
|
|
1144
|
+
/* @__PURE__ */ t(ze, {}),
|
|
1143
1145
|
/* @__PURE__ */ t("span", { children: "Create more" }),
|
|
1144
1146
|
/* @__PURE__ */ t(
|
|
1145
1147
|
Ne,
|
|
1146
1148
|
{
|
|
1147
|
-
checked:
|
|
1148
|
-
onChange: (e) =>
|
|
1149
|
+
checked: p,
|
|
1150
|
+
onChange: (e) => K(e.target.checked)
|
|
1149
1151
|
}
|
|
1150
1152
|
),
|
|
1151
1153
|
/* @__PURE__ */ t(
|
|
1152
|
-
|
|
1154
|
+
rt,
|
|
1153
1155
|
{
|
|
1154
1156
|
label: te[n].createLabel,
|
|
1155
|
-
onClick: () => se(
|
|
1157
|
+
onClick: () => se(p),
|
|
1156
1158
|
active: !He || oe,
|
|
1157
|
-
disabled: !r.name || !r.label ||
|
|
1158
|
-
"data-tooltip":
|
|
1159
|
-
"data-shortcut":
|
|
1159
|
+
disabled: !r.name || !r.label || Ie,
|
|
1160
|
+
"data-tooltip": Ie ? "Select a parent folder" : void 0,
|
|
1161
|
+
"data-shortcut": ut("Enter", [mt.Ctrl]),
|
|
1160
1162
|
saving: oe
|
|
1161
1163
|
}
|
|
1162
1164
|
)
|
|
1163
1165
|
] }),
|
|
1164
1166
|
onKeyDown: (e) => pe(e),
|
|
1165
1167
|
onClick: (e) => {
|
|
1166
|
-
e.target.tagName !== "INPUT" &&
|
|
1168
|
+
e.target.tagName !== "INPUT" && s(!1);
|
|
1167
1169
|
},
|
|
1168
1170
|
children: /* @__PURE__ */ f(
|
|
1169
1171
|
"div",
|
|
@@ -1176,10 +1178,10 @@ const St = ({
|
|
|
1176
1178
|
children: [
|
|
1177
1179
|
/* @__PURE__ */ f(Oe, { children: [
|
|
1178
1180
|
/* @__PURE__ */ t(we, { children: "Parent folder" }),
|
|
1179
|
-
|
|
1181
|
+
U.length > 0 ? /* @__PURE__ */ t(
|
|
1180
1182
|
De,
|
|
1181
1183
|
{
|
|
1182
|
-
value:
|
|
1184
|
+
value: d,
|
|
1183
1185
|
options: ee,
|
|
1184
1186
|
onChange: (e) => a(e),
|
|
1185
1187
|
disabled: ee.length <= 1,
|
|
@@ -1188,52 +1190,52 @@ const St = ({
|
|
|
1188
1190
|
}
|
|
1189
1191
|
) : n === "task" ? /* @__PURE__ */ t(Ke, { children: "Select a folder to create a task in" }) : /* @__PURE__ */ t(Ke, { children: "Creating in the project root" })
|
|
1190
1192
|
] }),
|
|
1191
|
-
|
|
1193
|
+
v.active ? (
|
|
1192
1194
|
// @ts-ignore
|
|
1193
1195
|
/* @__PURE__ */ t(
|
|
1194
|
-
|
|
1196
|
+
Ct,
|
|
1195
1197
|
{
|
|
1196
1198
|
base: r.label,
|
|
1197
1199
|
type: r.subType,
|
|
1198
|
-
increment:
|
|
1199
|
-
length:
|
|
1200
|
-
prefix:
|
|
1201
|
-
prefixDepth:
|
|
1202
|
-
parentLabel:
|
|
1200
|
+
increment: v.increment,
|
|
1201
|
+
length: v.length,
|
|
1202
|
+
prefix: v.prefix,
|
|
1203
|
+
prefixDepth: v.prefixDepth,
|
|
1204
|
+
parentLabel: k,
|
|
1203
1205
|
entityType: "folder",
|
|
1204
1206
|
nesting: !1,
|
|
1205
1207
|
onChange: Z,
|
|
1206
|
-
isRoot:
|
|
1207
|
-
typeSelectRef:
|
|
1208
|
+
isRoot: o,
|
|
1209
|
+
typeSelectRef: A,
|
|
1208
1210
|
onLastInputKeydown: (e) => pe(e, !0),
|
|
1209
1211
|
folders: h?.folderTypes || []
|
|
1210
1212
|
}
|
|
1211
1213
|
)
|
|
1212
|
-
) : /* @__PURE__ */ f(
|
|
1214
|
+
) : /* @__PURE__ */ f(Ft, { children: [
|
|
1213
1215
|
/* @__PURE__ */ f(Oe, { children: [
|
|
1214
1216
|
/* @__PURE__ */ t(we, { children: "Type" }),
|
|
1215
1217
|
/* @__PURE__ */ t(
|
|
1216
1218
|
xe,
|
|
1217
1219
|
{
|
|
1218
1220
|
value: [r.subType],
|
|
1219
|
-
onChange: (e) =>
|
|
1221
|
+
onChange: (e) => l(e, "subType"),
|
|
1220
1222
|
options: P,
|
|
1221
1223
|
style: { width: 160 },
|
|
1222
|
-
ref:
|
|
1224
|
+
ref: A,
|
|
1223
1225
|
onFocus: _e,
|
|
1224
|
-
onClick: () =>
|
|
1226
|
+
onClick: () => s(!1)
|
|
1225
1227
|
}
|
|
1226
1228
|
)
|
|
1227
1229
|
] }),
|
|
1228
1230
|
/* @__PURE__ */ t(
|
|
1229
|
-
|
|
1231
|
+
Dt,
|
|
1230
1232
|
{
|
|
1231
|
-
handleChange:
|
|
1233
|
+
handleChange: l,
|
|
1232
1234
|
entityForm: r,
|
|
1233
1235
|
labelRef: M,
|
|
1234
|
-
setNameFocused:
|
|
1236
|
+
setNameFocused: s,
|
|
1235
1237
|
handleKeyDown: pe,
|
|
1236
|
-
nameInfo: `Names are auto generated from the label using the Entity Naming setting on the project anatomy. Capitalization: ${
|
|
1238
|
+
nameInfo: `Names are auto generated from the label using the Entity Naming setting on the project anatomy. Capitalization: ${F.capitalization}. Separator: "${F.separator}"`
|
|
1237
1239
|
}
|
|
1238
1240
|
)
|
|
1239
1241
|
] })
|
|
@@ -1247,12 +1249,12 @@ const St = ({
|
|
|
1247
1249
|
export {
|
|
1248
1250
|
we as InputLabel,
|
|
1249
1251
|
Oe as InputsContainer,
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1252
|
+
Nt as NameRow,
|
|
1253
|
+
vn as NewEntity,
|
|
1254
|
+
pt as NewEntityContext,
|
|
1255
|
+
Dt as NewEntityForm,
|
|
1256
|
+
wn as NewEntityProvider,
|
|
1257
|
+
yt as generateLabel,
|
|
1256
1258
|
te as newEntityDefinitions,
|
|
1257
|
-
|
|
1259
|
+
ft as useNewEntityContext
|
|
1258
1260
|
};
|