@ynput/ayon-frontend-shared 0.6.8 → 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.
- package/dist/DetailsPanel.es.js +2 -2
- package/dist/Feed.es.js +64 -58
- package/dist/ListTable.es.js +3 -3
- package/dist/NewEntity.es.js +2 -2
- package/dist/ProjectTreeTable.es.js +1314 -1314
- package/dist/chunks/ColumnDropIndicator.es.js +2 -2
- package/dist/chunks/Feed.es.js +783 -804
- package/dist/chunks/MetaWidget.es.js +814 -825
- package/dist/chunks/PlayableIcon.es.js +123 -84
- package/dist/chunks/ReviewablesSelector.es.js +2 -2
- package/dist/chunks/SimpleForm.es.js +10 -9
- package/dist/chunks/Slicer.es.js +2 -2
- package/dist/chunks/Watchers.es.js +2 -2
- package/dist/chunks/getBundleMode.es.js +33 -25
- package/dist/chunks/useDateRangeFilter.es.js +85 -59
- package/dist/chunks/viewUpdateHelper.es.js +30 -30
- package/dist/components.es.js +791 -753
- package/dist/context.es.js +83 -82
- package/dist/hooks.es.js +2 -2
- package/dist/index.es.js +2 -2
- package/dist/types/Feed.d.ts +54 -0
- package/dist/types/ProjectTreeTable.d.ts +5 -2
- package/dist/types/components.d.ts +512 -0
- package/dist/types/util.d.ts +4 -0
- package/dist/util.es.js +67 -65
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { useRef as Q, useState as B, useLayoutEffect as wt, createElement as fn, forwardRef as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as s, jsxs as z, Fragment as Ae } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as Q, useState as B, useLayoutEffect as wt, createElement as fn, forwardRef as ke, useEffect as Z, Fragment as dt, useMemo as ve, useCallback as j, createContext as fe, useContext as ce, memo as ut } from "react";
|
|
3
|
+
import V from "clsx";
|
|
4
4
|
import x, { css as kt } from "styled-components";
|
|
5
|
-
import { Icon as oe, getTextColor as bn, Dropdown as Ut, BorderedSection as Tt, Button as
|
|
5
|
+
import { Icon as oe, getTextColor as bn, Dropdown as Ut, BorderedSection as Tt, Button as xe, Dialog as vn, InputText as Kt, theme as ze } from "@ynput/ayon-react-components";
|
|
6
6
|
import "@module-federation/enhanced/runtime";
|
|
7
|
-
import { toast as
|
|
7
|
+
import { toast as we } from "react-toastify";
|
|
8
8
|
import { bq as xn, bj as wn, bx as kn, bk as Tn, a as Cn } from "./searchTerms.es.js";
|
|
9
9
|
import { bB as Sn, aV as En, aG as In, cc as Rn, t as Nn, dt as Dn, di as An, ct as Ln, ag as Pn } from "./getUris.es.js";
|
|
10
10
|
import "primereact/confirmdialog";
|
|
@@ -16,26 +16,26 @@ import "semver";
|
|
|
16
16
|
import "./ContextMenuContextInstance.es.js";
|
|
17
17
|
import "react-dom";
|
|
18
18
|
import "react-redux";
|
|
19
|
-
import {
|
|
19
|
+
import { e as at, H as Mn, Z as Fn, r as We, y as pt, a1 as Hn, w as Wn, s as Vn, t as mt, a0 as Un, W as Kn, U as Gn, a2 as jn, _ as Bn } from "./PlayableIcon.es.js";
|
|
20
20
|
import "lexical";
|
|
21
21
|
import "@lexical/markdown";
|
|
22
|
-
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
23
|
-
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
24
22
|
import "match-sorter";
|
|
25
|
-
import { parseISO as
|
|
23
|
+
import { parseISO as Ze, isValid as St, subMilliseconds as st, format as Yn } from "date-fns";
|
|
26
24
|
import "@lexical/code";
|
|
27
25
|
import "@lexical/list";
|
|
28
26
|
import "@lexical/rich-text";
|
|
29
27
|
import "@lexical/selection";
|
|
30
28
|
import "@lexical/utils";
|
|
29
|
+
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
30
|
+
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
31
31
|
import { sortingFns as Ne } from "@tanstack/react-table";
|
|
32
|
-
import { W as
|
|
33
|
-
import Bt, { defaultUrlTransform as
|
|
32
|
+
import { W as qn, R as Et, g as Je, C as Qn, k as Zn } from "./realtimeUpdatesUtils.es.js";
|
|
33
|
+
import Bt, { defaultUrlTransform as Jn } from "react-markdown";
|
|
34
34
|
import Yt from "remark-gfm";
|
|
35
|
-
import { E as
|
|
35
|
+
import { E as Xn } from "./EntityPickerDialog.es.js";
|
|
36
36
|
import { g as be } from "./getEntityTypeIcon.es.js";
|
|
37
|
-
import { g as
|
|
38
|
-
const
|
|
37
|
+
import { g as er } from "./getThumbnailUrl.es.js";
|
|
38
|
+
const tr = x.div`
|
|
39
39
|
display: flex;
|
|
40
40
|
gap: var(--base-gap-small);
|
|
41
41
|
align-items: center;
|
|
@@ -76,12 +76,12 @@ const er = x.div`
|
|
|
76
76
|
top: -9999px;
|
|
77
77
|
left: -9999px;
|
|
78
78
|
z-index: -100;
|
|
79
|
-
`,
|
|
79
|
+
`, nr = x(gt)`
|
|
80
80
|
flex-shrink: 0;
|
|
81
81
|
display: flex;
|
|
82
82
|
justify-content: center;
|
|
83
83
|
align-items: center;
|
|
84
|
-
`,
|
|
84
|
+
`, rr = x(oe)`
|
|
85
85
|
background-color: var(--md-sys-color-surface-container);
|
|
86
86
|
border-radius: var(--border-radius-m);
|
|
87
87
|
width: 24px;
|
|
@@ -106,35 +106,35 @@ const er = x.div`
|
|
|
106
106
|
if (!u || c.length === 0 || c.length !== e.length) return;
|
|
107
107
|
const h = Array.from(u.querySelectorAll(".offscreen-chip"));
|
|
108
108
|
if (h.length !== e.length) return;
|
|
109
|
-
const E = parseFloat(getComputedStyle(u).rowGap) || 0, d = h.map((k) => k.getBoundingClientRect().width), f = h[0].getBoundingClientRect().height,
|
|
110
|
-
let
|
|
111
|
-
const
|
|
112
|
-
|
|
109
|
+
const E = parseFloat(getComputedStyle(u).rowGap) || 0, d = h.map((k) => k.getBoundingClientRect().width), f = h[0].getBoundingClientRect().height, v = u.querySelector(".offscreen-more-chip")?.getBoundingClientRect().width || 60, C = (k, T, A) => {
|
|
110
|
+
let $ = 1, O = 0;
|
|
111
|
+
const U = (D, _) => {
|
|
112
|
+
_ ? O = D : O + E + D <= A ? O += E + D : ($++, O = D);
|
|
113
113
|
};
|
|
114
|
-
for (let
|
|
115
|
-
return
|
|
116
|
-
},
|
|
117
|
-
const k = u.getBoundingClientRect().width,
|
|
118
|
-
let
|
|
119
|
-
for (;
|
|
120
|
-
|
|
114
|
+
for (let D = 0; D < k; D++) U(d[D], D === 0);
|
|
115
|
+
return T && U(T, k === 0), $;
|
|
116
|
+
}, S = () => {
|
|
117
|
+
const k = u.getBoundingClientRect().width, T = u.offsetHeight, A = f ? Math.max(1, Math.floor((T + E) / (f + E))) : 1;
|
|
118
|
+
let $ = e.length;
|
|
119
|
+
for (; $ > 1 && C($, $ < e.length ? v : 0, k) > A; )
|
|
120
|
+
$--;
|
|
121
121
|
l(
|
|
122
|
-
(
|
|
122
|
+
(O) => O.visibleCount === $ && O.rows === A ? O : { visibleCount: $, rows: A }
|
|
123
123
|
);
|
|
124
|
-
}, L = new ResizeObserver(
|
|
125
|
-
return L.observe(u),
|
|
124
|
+
}, L = new ResizeObserver(S);
|
|
125
|
+
return L.observe(u), S(), () => L.disconnect();
|
|
126
126
|
}, [e, c]), t) return null;
|
|
127
127
|
if (!e.length)
|
|
128
|
-
return /* @__PURE__ */ s(
|
|
128
|
+
return /* @__PURE__ */ s(rr, { icon: "add", className: n?.chip?.className });
|
|
129
129
|
const p = e.slice(0, i), y = i ? e.length - p.length : 0;
|
|
130
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ z(tr, { ref: o, className: V({ "multi-row": a > 1 }), children: [
|
|
131
131
|
p.map((u, h) => /* @__PURE__ */ fn(
|
|
132
132
|
gt,
|
|
133
133
|
{
|
|
134
134
|
...n?.chip,
|
|
135
135
|
key: u.label + h,
|
|
136
136
|
"data-tooltip": u.tooltip,
|
|
137
|
-
className:
|
|
137
|
+
className: V(
|
|
138
138
|
"chip",
|
|
139
139
|
{ last: h === p.length - 1 && y > 0 },
|
|
140
140
|
n?.chip?.className
|
|
@@ -145,22 +145,22 @@ const er = x.div`
|
|
|
145
145
|
u.label,
|
|
146
146
|
u.suffix
|
|
147
147
|
)),
|
|
148
|
-
y > 0 && /* @__PURE__ */
|
|
148
|
+
y > 0 && /* @__PURE__ */ z(nr, { className: V("more-chip", n?.chip?.className), children: [
|
|
149
149
|
"+",
|
|
150
150
|
y
|
|
151
151
|
] }),
|
|
152
|
-
c.map((u, h) => /* @__PURE__ */
|
|
152
|
+
c.map((u, h) => /* @__PURE__ */ z(It, { className: "offscreen-chip", children: [
|
|
153
153
|
u.prefix,
|
|
154
154
|
u?.icon && /* @__PURE__ */ s(oe, { icon: u.icon }),
|
|
155
155
|
u.label,
|
|
156
156
|
u.suffix
|
|
157
157
|
] }, u.label + h)),
|
|
158
|
-
c.length > 1 && /* @__PURE__ */
|
|
158
|
+
c.length > 1 && /* @__PURE__ */ z(It, { className: "offscreen-more-chip", children: [
|
|
159
159
|
"+",
|
|
160
160
|
c.length - 1
|
|
161
161
|
] })
|
|
162
162
|
] });
|
|
163
|
-
},
|
|
163
|
+
}, or = x.div`
|
|
164
164
|
width: 8px;
|
|
165
165
|
height: 8px;
|
|
166
166
|
border-radius: 50%;
|
|
@@ -170,9 +170,9 @@ const er = x.div`
|
|
|
170
170
|
top: 50%;
|
|
171
171
|
left: 50%;
|
|
172
172
|
transform: translate(-50%, -50%);
|
|
173
|
-
`,
|
|
174
|
-
({ color: e, ...t }, n) => /* @__PURE__ */ s(
|
|
175
|
-
),
|
|
173
|
+
`, ir = ke(
|
|
174
|
+
({ color: e, ...t }, n) => /* @__PURE__ */ s(or, { style: { backgroundColor: e }, ...t, ref: n })
|
|
175
|
+
), ar = x.input`
|
|
176
176
|
z-index: 10;
|
|
177
177
|
border: none;
|
|
178
178
|
outline: none;
|
|
@@ -186,7 +186,7 @@ const er = x.div`
|
|
|
186
186
|
background-color: transparent;
|
|
187
187
|
width: 100%;
|
|
188
188
|
box-sizing: border-box;
|
|
189
|
-
`,
|
|
189
|
+
`, sr = ke(
|
|
190
190
|
({
|
|
191
191
|
value: e,
|
|
192
192
|
onChange: t,
|
|
@@ -197,7 +197,7 @@ const er = x.div`
|
|
|
197
197
|
}, l) => {
|
|
198
198
|
const [c, m] = B(() => {
|
|
199
199
|
if (e) {
|
|
200
|
-
const d =
|
|
200
|
+
const d = Ze(e);
|
|
201
201
|
if (St(d))
|
|
202
202
|
return at(
|
|
203
203
|
i ? st(d, 1) : d,
|
|
@@ -206,9 +206,9 @@ const er = x.div`
|
|
|
206
206
|
}
|
|
207
207
|
return "";
|
|
208
208
|
});
|
|
209
|
-
|
|
209
|
+
Z(() => {
|
|
210
210
|
if (e) {
|
|
211
|
-
const d =
|
|
211
|
+
const d = Ze(e);
|
|
212
212
|
St(d) ? m(
|
|
213
213
|
at(
|
|
214
214
|
i ? st(d, 1) : d,
|
|
@@ -218,7 +218,7 @@ const er = x.div`
|
|
|
218
218
|
}
|
|
219
219
|
}, [e, i]);
|
|
220
220
|
const p = Q(null);
|
|
221
|
-
|
|
221
|
+
Z(() => {
|
|
222
222
|
o && p.current && (p.current.focus(), setTimeout(() => {
|
|
223
223
|
try {
|
|
224
224
|
p.current?.showPicker();
|
|
@@ -236,13 +236,13 @@ const er = x.div`
|
|
|
236
236
|
}
|
|
237
237
|
}, u = (d) => {
|
|
238
238
|
if (c) {
|
|
239
|
-
const [f,
|
|
240
|
-
if (f &&
|
|
241
|
-
const L = new Date(Date.UTC(f,
|
|
239
|
+
const [f, v, C] = c.split("-").map(Number);
|
|
240
|
+
if (f && v && C) {
|
|
241
|
+
const L = new Date(Date.UTC(f, v - 1, C + Number(i))).toISOString();
|
|
242
242
|
if (d === "Enter")
|
|
243
243
|
return t(L, d), !0;
|
|
244
244
|
if (d === "Click") {
|
|
245
|
-
const k = e ?
|
|
245
|
+
const k = e ? Ze(e).toISOString() : "";
|
|
246
246
|
return L !== k ? (t(L, d), !0) : !1;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -250,7 +250,7 @@ const er = x.div`
|
|
|
250
250
|
return !1;
|
|
251
251
|
};
|
|
252
252
|
return /* @__PURE__ */ s(
|
|
253
|
-
|
|
253
|
+
ar,
|
|
254
254
|
{
|
|
255
255
|
...a,
|
|
256
256
|
ref: p,
|
|
@@ -268,18 +268,18 @@ const er = x.div`
|
|
|
268
268
|
);
|
|
269
269
|
}
|
|
270
270
|
), qe = (e, ...t) => kt`
|
|
271
|
-
@container cell (min-height: ${
|
|
271
|
+
@container cell (min-height: ${qn}px) {
|
|
272
272
|
${kt(e, ...t)}
|
|
273
273
|
}
|
|
274
|
-
`,
|
|
274
|
+
`, lr = x.span`
|
|
275
275
|
white-space: nowrap;
|
|
276
276
|
|
|
277
277
|
${qe`
|
|
278
278
|
white-space: normal;
|
|
279
279
|
`}
|
|
280
|
-
`,
|
|
280
|
+
`, cr = x.span`
|
|
281
281
|
white-space: nowrap;
|
|
282
|
-
`,
|
|
282
|
+
`, dr = ke(
|
|
283
283
|
({
|
|
284
284
|
value: e,
|
|
285
285
|
isEditing: t,
|
|
@@ -295,13 +295,13 @@ const er = x.div`
|
|
|
295
295
|
if (e)
|
|
296
296
|
try {
|
|
297
297
|
const E = l ? "dd-MM-yyyy HH:mm:ss" : "dd-MM-yyyy", d = c ? st(new Date(e), 1) : new Date(e);
|
|
298
|
-
y = l ?
|
|
298
|
+
y = l ? Yn(d, E) : at(d, E);
|
|
299
299
|
} catch {
|
|
300
300
|
console.error("Invalid date value:", e), y = "Invalid Date", u = !0;
|
|
301
301
|
}
|
|
302
302
|
if (t)
|
|
303
303
|
return /* @__PURE__ */ s(
|
|
304
|
-
|
|
304
|
+
sr,
|
|
305
305
|
{
|
|
306
306
|
value: e,
|
|
307
307
|
onChange: i,
|
|
@@ -313,12 +313,12 @@ const er = x.div`
|
|
|
313
313
|
}
|
|
314
314
|
);
|
|
315
315
|
const h = y && !u ? y.split(" ") : [];
|
|
316
|
-
return /* @__PURE__ */ s(
|
|
316
|
+
return /* @__PURE__ */ s(lr, { ...m, ref: p, children: u ? y : h.map((E, d) => /* @__PURE__ */ z(dt, { children: [
|
|
317
317
|
d > 0 && " ",
|
|
318
|
-
/* @__PURE__ */ s(
|
|
318
|
+
/* @__PURE__ */ s(cr, { children: E })
|
|
319
319
|
] }, d)) });
|
|
320
320
|
}
|
|
321
|
-
),
|
|
321
|
+
), ur = "edit-trigger", lt = x.span`
|
|
322
322
|
text-align: left;
|
|
323
323
|
border-radius: var(--border-radius-m);
|
|
324
324
|
padding: 0px 2px;
|
|
@@ -330,7 +330,7 @@ const er = x.div`
|
|
|
330
330
|
&.placeholder {
|
|
331
331
|
color: var(--md-sys-color-outline);
|
|
332
332
|
}
|
|
333
|
-
`,
|
|
333
|
+
`, pr = x.div`
|
|
334
334
|
display: flex;
|
|
335
335
|
gap: 1px;
|
|
336
336
|
align-items: center;
|
|
@@ -397,7 +397,7 @@ const er = x.div`
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
`}
|
|
400
|
-
`,
|
|
400
|
+
`, mr = x.div`
|
|
401
401
|
flex: 1;
|
|
402
402
|
display: flex;
|
|
403
403
|
gap: var(--base-gap-small);
|
|
@@ -407,14 +407,14 @@ const er = x.div`
|
|
|
407
407
|
border-radius: var(--border-radius-m);
|
|
408
408
|
padding: 0px 2px;
|
|
409
409
|
flex-wrap: nowrap;
|
|
410
|
-
`,
|
|
410
|
+
`, gr = x.div`
|
|
411
411
|
display: flex;
|
|
412
412
|
gap: 2px;
|
|
413
413
|
align-items: center;
|
|
414
414
|
|
|
415
415
|
max-width: 100%;
|
|
416
416
|
min-width: 20px;
|
|
417
|
-
`,
|
|
417
|
+
`, hr = x.img`
|
|
418
418
|
width: 20px;
|
|
419
419
|
height: 20px;
|
|
420
420
|
object-fit: cover;
|
|
@@ -423,7 +423,7 @@ const er = x.div`
|
|
|
423
423
|
&.avatar {
|
|
424
424
|
border-radius: 50%;
|
|
425
425
|
}
|
|
426
|
-
`,
|
|
426
|
+
`, yr = x.div`
|
|
427
427
|
border-radius: var(--border-radius-m);
|
|
428
428
|
display: flex;
|
|
429
429
|
justify-content: center;
|
|
@@ -438,7 +438,7 @@ const er = x.div`
|
|
|
438
438
|
&.open {
|
|
439
439
|
background-color: transparent;
|
|
440
440
|
}
|
|
441
|
-
`,
|
|
441
|
+
`, fr = x(oe)`
|
|
442
442
|
transition: rotate 0.2s;
|
|
443
443
|
padding: 2px;
|
|
444
444
|
`, Ge = ({
|
|
@@ -460,73 +460,73 @@ const er = x.div`
|
|
|
460
460
|
img: E = {},
|
|
461
461
|
value: d = {},
|
|
462
462
|
expand: f = {},
|
|
463
|
-
close:
|
|
464
|
-
} = y || {}, { style: C, className:
|
|
463
|
+
close: v = {}
|
|
464
|
+
} = y || {}, { style: C, className: S, ...L } = h, { style: k, className: T, ...A } = E, { style: $, className: O, ...U } = d, { style: D, className: _, ...G } = f, { style: r, className: g, ...w } = v, N = e.every((b) => b.icon), I = !n || !N, R = !N && o && !a, P = !e.length && t;
|
|
465
465
|
return P && (e = [
|
|
466
466
|
{
|
|
467
467
|
label: t,
|
|
468
468
|
value: ""
|
|
469
469
|
}
|
|
470
|
-
]), /* @__PURE__ */
|
|
471
|
-
|
|
470
|
+
]), /* @__PURE__ */ z(
|
|
471
|
+
pr,
|
|
472
472
|
{
|
|
473
|
-
className:
|
|
473
|
+
className: V(p, {
|
|
474
474
|
selected: l,
|
|
475
475
|
item: a,
|
|
476
476
|
"multi-select": o
|
|
477
477
|
}),
|
|
478
478
|
...u,
|
|
479
479
|
children: [
|
|
480
|
-
/* @__PURE__ */ s(
|
|
481
|
-
|
|
480
|
+
/* @__PURE__ */ s(mr, { className: "values", children: e.map((b, M) => /* @__PURE__ */ z(
|
|
481
|
+
gr,
|
|
482
482
|
{
|
|
483
|
-
className:
|
|
483
|
+
className: V({ "has-img": Rt(b.icon) }),
|
|
484
484
|
children: [
|
|
485
|
-
|
|
486
|
-
|
|
485
|
+
b.icon && Rt(b.icon) ? /* @__PURE__ */ s(
|
|
486
|
+
hr,
|
|
487
487
|
{
|
|
488
|
-
src:
|
|
489
|
-
className:
|
|
488
|
+
src: b.icon,
|
|
489
|
+
className: V({ avatar: br(b.icon) }, T),
|
|
490
490
|
style: k,
|
|
491
|
-
"data-tooltip":
|
|
491
|
+
"data-tooltip": b.label,
|
|
492
492
|
...A
|
|
493
493
|
}
|
|
494
|
-
) :
|
|
494
|
+
) : b.icon ? /* @__PURE__ */ s(
|
|
495
495
|
oe,
|
|
496
496
|
{
|
|
497
|
-
icon:
|
|
498
|
-
style: { color:
|
|
499
|
-
className:
|
|
497
|
+
icon: b.icon,
|
|
498
|
+
style: { color: b.color, ...C },
|
|
499
|
+
className: S,
|
|
500
500
|
...L
|
|
501
501
|
}
|
|
502
502
|
) : null,
|
|
503
|
-
(I || !
|
|
503
|
+
(I || !b.icon) && /* @__PURE__ */ s(
|
|
504
504
|
lt,
|
|
505
505
|
{
|
|
506
506
|
style: {
|
|
507
|
-
color: R &&
|
|
508
|
-
backgroundColor: R ?
|
|
509
|
-
|
|
507
|
+
color: R && b.color ? bn(b.color) : m && b.icon ? void 0 : b.color,
|
|
508
|
+
backgroundColor: R ? b.color || "var(--md-sys-color-surface-container)" : "transparent",
|
|
509
|
+
...$
|
|
510
510
|
},
|
|
511
|
-
className:
|
|
512
|
-
"aria-label":
|
|
513
|
-
|
|
514
|
-
children:
|
|
511
|
+
className: V({ placeholder: P }, O),
|
|
512
|
+
"aria-label": b.label,
|
|
513
|
+
...U,
|
|
514
|
+
children: b.label
|
|
515
515
|
}
|
|
516
516
|
)
|
|
517
517
|
]
|
|
518
518
|
},
|
|
519
|
-
|
|
519
|
+
b.value.toString() + M
|
|
520
520
|
)) }),
|
|
521
521
|
!a && !c && /* @__PURE__ */ s(
|
|
522
|
-
|
|
522
|
+
yr,
|
|
523
523
|
{
|
|
524
|
-
className:
|
|
524
|
+
className: V("expand", ur, { open: i }, _),
|
|
525
525
|
children: /* @__PURE__ */ s(
|
|
526
|
-
|
|
526
|
+
fr,
|
|
527
527
|
{
|
|
528
528
|
icon: "expand_more",
|
|
529
|
-
style: { rotate: i ? "180deg" : "0", ...
|
|
529
|
+
style: { rotate: i ? "180deg" : "0", ...D },
|
|
530
530
|
"aria-label": "Expand options",
|
|
531
531
|
...G
|
|
532
532
|
}
|
|
@@ -539,14 +539,14 @@ const er = x.div`
|
|
|
539
539
|
icon: "close",
|
|
540
540
|
style: { marginLeft: "auto", marginRight: 4, ...r },
|
|
541
541
|
"aria-label": "Deselect item",
|
|
542
|
-
className:
|
|
542
|
+
className: V("close", g),
|
|
543
543
|
...w
|
|
544
544
|
}
|
|
545
545
|
)
|
|
546
546
|
]
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
|
-
}, Rt = (e = "") => e.startsWith("/") || e.startsWith("./") || e.startsWith("../") || e.startsWith("http://") || e.startsWith("https://"),
|
|
549
|
+
}, Rt = (e = "") => e.startsWith("/") || e.startsWith("./") || e.startsWith("../") || e.startsWith("http://") || e.startsWith("https://"), br = (e) => e.includes("avatar"), vr = x(Ut)`
|
|
550
550
|
height: 100%;
|
|
551
551
|
width: 100%;
|
|
552
552
|
|
|
@@ -556,7 +556,7 @@ const er = x.div`
|
|
|
556
556
|
height: 100%;
|
|
557
557
|
}
|
|
558
558
|
`}
|
|
559
|
-
`,
|
|
559
|
+
`, xr = ke(
|
|
560
560
|
({
|
|
561
561
|
value: e,
|
|
562
562
|
isEditing: t,
|
|
@@ -573,94 +573,98 @@ const er = x.div`
|
|
|
573
573
|
pt: h,
|
|
574
574
|
...E
|
|
575
575
|
}, d) => {
|
|
576
|
-
const f =
|
|
577
|
-
|
|
578
|
-
|
|
576
|
+
const f = JSON.stringify(e), v = ve(
|
|
577
|
+
() => e.map((D) => D?.toString()).filter((D) => !!D),
|
|
578
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
579
|
+
[f]
|
|
580
|
+
);
|
|
581
|
+
let C = n.filter(
|
|
582
|
+
(D) => v.includes(D.value.toString())
|
|
579
583
|
);
|
|
580
|
-
const
|
|
581
|
-
|
|
582
|
-
if (!n.find((
|
|
583
|
-
const
|
|
584
|
-
label:
|
|
585
|
-
value:
|
|
584
|
+
const S = [];
|
|
585
|
+
v.forEach((D) => {
|
|
586
|
+
if (!n.find((_) => _.value === D)) {
|
|
587
|
+
const _ = {
|
|
588
|
+
label: D,
|
|
589
|
+
value: D,
|
|
586
590
|
// options that are still loading cannot be validated against yet
|
|
587
591
|
color: l || c ? "var(--md-sys-color-surface-container)" : "var(--md-sys-color-error)",
|
|
588
592
|
icon: l || c ? void 0 : "warning"
|
|
589
593
|
};
|
|
590
|
-
|
|
594
|
+
C = [...C, _], S.push(_);
|
|
591
595
|
}
|
|
592
596
|
});
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
t &&
|
|
596
|
-
}, [t,
|
|
597
|
-
if (
|
|
598
|
-
const
|
|
599
|
-
|
|
597
|
+
const L = C.length > 1, k = [...xn(n, v), ...S], T = Q(null), [A, $] = B(!1);
|
|
598
|
+
Z(() => {
|
|
599
|
+
t && T.current && i ? (!T.current.isOpen && T.current?.open(), $(!0)) : $(!1);
|
|
600
|
+
}, [t, T.current, i]), Z(() => {
|
|
601
|
+
if (A && !E.search && k.length < 20) {
|
|
602
|
+
const _ = T.current?.getOptions()?.querySelector("li");
|
|
603
|
+
_ && (_.focus(), _.style.outline = "none");
|
|
600
604
|
}
|
|
601
|
-
}, [
|
|
602
|
-
const
|
|
603
|
-
let
|
|
604
|
-
o?.includes("list") || (
|
|
605
|
+
}, [A, E.search, k.length]);
|
|
606
|
+
const O = !!o?.includes("list"), U = (D) => {
|
|
607
|
+
let _ = l ? D : D.filter((G) => n.find((r) => r.value === G));
|
|
608
|
+
o?.includes("list") || (_ = Array.isArray(_) ? _[0] : _), p(_, "Click");
|
|
605
609
|
};
|
|
606
610
|
return t ? /* @__PURE__ */ s(
|
|
607
|
-
|
|
611
|
+
vr,
|
|
608
612
|
{
|
|
609
|
-
options:
|
|
610
|
-
value:
|
|
611
|
-
ref:
|
|
612
|
-
valueTemplate: (
|
|
613
|
+
options: k,
|
|
614
|
+
value: v,
|
|
615
|
+
ref: T,
|
|
616
|
+
valueTemplate: (D, _, G) => /* @__PURE__ */ s(
|
|
613
617
|
Ge,
|
|
614
618
|
{
|
|
615
|
-
selectedOptions:
|
|
616
|
-
hasMultipleValues:
|
|
617
|
-
isOpen:
|
|
619
|
+
selectedOptions: C,
|
|
620
|
+
hasMultipleValues: _.length > 1,
|
|
621
|
+
isOpen: G,
|
|
618
622
|
isReadOnly: a,
|
|
619
|
-
isMultiSelect:
|
|
623
|
+
isMultiSelect: O,
|
|
620
624
|
...h?.template,
|
|
621
625
|
placeholder: E.placeholder,
|
|
622
|
-
className:
|
|
626
|
+
className: V("enum-dropdown-value", h?.template?.className)
|
|
623
627
|
}
|
|
624
628
|
),
|
|
625
|
-
itemTemplate: (
|
|
629
|
+
itemTemplate: (D, _, G) => /* @__PURE__ */ s(
|
|
626
630
|
Ge,
|
|
627
631
|
{
|
|
628
|
-
selectedOptions: [
|
|
632
|
+
selectedOptions: [D],
|
|
629
633
|
hasMultipleValues: !1,
|
|
630
634
|
isOpen: !1,
|
|
631
635
|
isItem: !0,
|
|
632
|
-
isMultiSelect:
|
|
633
|
-
isSelected:
|
|
636
|
+
isMultiSelect: O,
|
|
637
|
+
isSelected: G,
|
|
634
638
|
...h?.template,
|
|
635
|
-
className:
|
|
639
|
+
className: V("enum-dropdown-item", h?.template?.className)
|
|
636
640
|
}
|
|
637
641
|
),
|
|
638
642
|
widthExpand: !0,
|
|
639
|
-
multiSelect:
|
|
643
|
+
multiSelect: O,
|
|
640
644
|
disableOpen: a,
|
|
641
645
|
disabled: a,
|
|
642
646
|
sortBySelected: !0,
|
|
643
647
|
searchOnNumber: 10,
|
|
644
648
|
...E,
|
|
645
|
-
$multiSelect:
|
|
646
|
-
onChange:
|
|
649
|
+
$multiSelect: O,
|
|
650
|
+
onChange: U,
|
|
647
651
|
onClose: y,
|
|
648
652
|
editable: l
|
|
649
653
|
}
|
|
650
654
|
) : /* @__PURE__ */ s(
|
|
651
655
|
Ge,
|
|
652
656
|
{
|
|
653
|
-
selectedOptions:
|
|
654
|
-
hasMultipleValues:
|
|
655
|
-
isMultiSelect:
|
|
657
|
+
selectedOptions: C,
|
|
658
|
+
hasMultipleValues: L,
|
|
659
|
+
isMultiSelect: O,
|
|
656
660
|
isReadOnly: a,
|
|
657
661
|
...h?.template,
|
|
658
662
|
placeholder: E.placeholder,
|
|
659
|
-
className:
|
|
663
|
+
className: V("enum-value", h?.template?.className, E.className)
|
|
660
664
|
}
|
|
661
665
|
);
|
|
662
666
|
}
|
|
663
|
-
),
|
|
667
|
+
), wr = x.input`
|
|
664
668
|
z-index: 10;
|
|
665
669
|
border: none;
|
|
666
670
|
outline: none;
|
|
@@ -678,17 +682,17 @@ const er = x.div`
|
|
|
678
682
|
padding: 0 8px 0 9px;
|
|
679
683
|
background-color: var(--md-sys-color-surface-container-lowest);
|
|
680
684
|
box-shadow: inset 0 0 0 2px var(--md-sys-color-primary);
|
|
681
|
-
`,
|
|
685
|
+
`, kr = ke(
|
|
682
686
|
({ value: e, onChange: t, onCancel: n, autoFocus: o = !0, type: i = "string", ...a }, l) => {
|
|
683
|
-
const [c, m] = B(e), p = Q(null), y = Q(!1), u = Q(e), h = (
|
|
684
|
-
const C =
|
|
685
|
-
if (
|
|
687
|
+
const [c, m] = B(e), p = Q(null), y = Q(!1), u = Q(e), h = (v) => {
|
|
688
|
+
const C = v != null ? String(v).trim() : "";
|
|
689
|
+
if (v == null) return "";
|
|
686
690
|
if (C === "")
|
|
687
691
|
return i === "string" ? "" : null;
|
|
688
692
|
switch (i) {
|
|
689
693
|
case "integer":
|
|
690
|
-
const
|
|
691
|
-
return isNaN(
|
|
694
|
+
const S = parseInt(C, 10);
|
|
695
|
+
return isNaN(S) ? null : S;
|
|
692
696
|
case "float":
|
|
693
697
|
const L = parseFloat(C);
|
|
694
698
|
return isNaN(L) ? null : L;
|
|
@@ -697,40 +701,40 @@ const er = x.div`
|
|
|
697
701
|
default:
|
|
698
702
|
return C;
|
|
699
703
|
}
|
|
700
|
-
}, E = (
|
|
704
|
+
}, E = (v) => {
|
|
701
705
|
const C = u.current;
|
|
702
706
|
if (i !== "string") {
|
|
703
|
-
const
|
|
704
|
-
if (
|
|
707
|
+
const S = v == null || v === "", L = C == null || C === "";
|
|
708
|
+
if (S && L)
|
|
705
709
|
return !1;
|
|
706
|
-
if (
|
|
710
|
+
if (S !== L)
|
|
707
711
|
return !0;
|
|
708
712
|
}
|
|
709
|
-
return
|
|
713
|
+
return v !== C;
|
|
710
714
|
};
|
|
711
|
-
return
|
|
715
|
+
return Z(() => {
|
|
712
716
|
o && p && p.current && (p.current.focus(), p.current.select());
|
|
713
717
|
}, [o]), /* @__PURE__ */ s(
|
|
714
|
-
|
|
718
|
+
wr,
|
|
715
719
|
{
|
|
716
720
|
...a,
|
|
717
721
|
ref: p,
|
|
718
722
|
value: c,
|
|
719
|
-
onChange: (
|
|
720
|
-
onKeyDown: (
|
|
721
|
-
if (
|
|
722
|
-
|
|
723
|
+
onChange: (v) => m(v.target.value),
|
|
724
|
+
onKeyDown: (v) => {
|
|
725
|
+
if (v.key === "Enter") {
|
|
726
|
+
v.preventDefault();
|
|
723
727
|
const C = h(c);
|
|
724
728
|
if (i === "string" || C !== null)
|
|
725
729
|
t(C, "Enter");
|
|
726
730
|
else {
|
|
727
|
-
const
|
|
728
|
-
|
|
731
|
+
const S = i === "integer" ? "integer" : "number";
|
|
732
|
+
we.error(`Invalid ${S} value. Please enter a valid ${S}.`), n?.();
|
|
729
733
|
}
|
|
730
|
-
} else
|
|
734
|
+
} else v.key === "Escape" && (v.preventDefault(), v.stopPropagation(), y.current = !0, n?.());
|
|
731
735
|
},
|
|
732
|
-
onBlur: (
|
|
733
|
-
if (
|
|
736
|
+
onBlur: (v) => {
|
|
737
|
+
if (v.relatedTarget?.tagName !== "INPUT") {
|
|
734
738
|
if (!y.current) {
|
|
735
739
|
const C = h(c);
|
|
736
740
|
if (!E(C)) {
|
|
@@ -740,8 +744,8 @@ const er = x.div`
|
|
|
740
744
|
if (i === "string" || C !== null)
|
|
741
745
|
t(C, "Click");
|
|
742
746
|
else {
|
|
743
|
-
const
|
|
744
|
-
|
|
747
|
+
const S = i === "integer" ? "integer" : "number";
|
|
748
|
+
we.error(`Invalid ${S} value. Please enter a valid ${S}.`);
|
|
745
749
|
}
|
|
746
750
|
}
|
|
747
751
|
y.current = !1;
|
|
@@ -750,7 +754,7 @@ const er = x.div`
|
|
|
750
754
|
}
|
|
751
755
|
);
|
|
752
756
|
}
|
|
753
|
-
),
|
|
757
|
+
), Tr = x.div`
|
|
754
758
|
padding: 0;
|
|
755
759
|
cursor: pointer;
|
|
756
760
|
display: flex;
|
|
@@ -805,18 +809,18 @@ const er = x.div`
|
|
|
805
809
|
left: var(--padding-s);
|
|
806
810
|
}
|
|
807
811
|
}
|
|
808
|
-
`,
|
|
812
|
+
`, Cr = x.div`
|
|
809
813
|
display: flex;
|
|
810
814
|
justify-content: end;
|
|
811
815
|
align-items: center;
|
|
812
816
|
padding: 8px;
|
|
813
817
|
height: 48px;
|
|
814
818
|
border-top: 1px solid var(--md-sys-color-outline-variant);
|
|
815
|
-
`,
|
|
819
|
+
`, Sr = x.div`
|
|
816
820
|
height: 20px;
|
|
817
821
|
background: var(--md-sys-color-surface-container-low);
|
|
818
822
|
border-radius: 4px;
|
|
819
|
-
`,
|
|
823
|
+
`, Er = x.div`
|
|
820
824
|
display: flex;
|
|
821
825
|
gap: 8px;
|
|
822
826
|
`, Qt = (e, { skip: t } = {}) => {
|
|
@@ -830,7 +834,7 @@ const er = x.div`
|
|
|
830
834
|
},
|
|
831
835
|
{ skip: t || !e?.projectName || !e?.entityId }
|
|
832
836
|
), { entityType: o, productTypes: i, taskTypes: a } = e ?? {};
|
|
833
|
-
return
|
|
837
|
+
return ve(
|
|
834
838
|
() => e ? Mn({
|
|
835
839
|
suggestions: n,
|
|
836
840
|
project: { productTypes: i ?? [] },
|
|
@@ -839,7 +843,7 @@ const er = x.div`
|
|
|
839
843
|
}) : void 0,
|
|
840
844
|
[!!e, n, i, a, o]
|
|
841
845
|
);
|
|
842
|
-
},
|
|
846
|
+
}, Ir = x.div`
|
|
843
847
|
display: flex;
|
|
844
848
|
flex-direction: column;
|
|
845
849
|
background: var(--md-sys-color-surface-container-lowest);
|
|
@@ -857,7 +861,7 @@ const er = x.div`
|
|
|
857
861
|
&.editing {
|
|
858
862
|
border: 2px solid var(--md-sys-color-primary);
|
|
859
863
|
}
|
|
860
|
-
`,
|
|
864
|
+
`, Rr = x.textarea`
|
|
861
865
|
width: 100%;
|
|
862
866
|
height: auto;
|
|
863
867
|
min-height: 88px;
|
|
@@ -869,7 +873,7 @@ const er = x.div`
|
|
|
869
873
|
color: inherit;
|
|
870
874
|
font: inherit;
|
|
871
875
|
padding: 12px;
|
|
872
|
-
`,
|
|
876
|
+
`, Nr = x.div`
|
|
873
877
|
width: 100%;
|
|
874
878
|
white-space: pre-wrap;
|
|
875
879
|
word-break: break-word;
|
|
@@ -878,7 +882,7 @@ const er = x.div`
|
|
|
878
882
|
min-height: 88px;
|
|
879
883
|
max-height: inherit;
|
|
880
884
|
overflow: auto;
|
|
881
|
-
`,
|
|
885
|
+
`, Dr = {
|
|
882
886
|
d: "code",
|
|
883
887
|
o: "number",
|
|
884
888
|
l: "bullet",
|
|
@@ -900,40 +904,40 @@ const er = x.div`
|
|
|
900
904
|
onPreviewMouseLeave: E,
|
|
901
905
|
mentionEntity: d
|
|
902
906
|
}) => {
|
|
903
|
-
const f = Q(p != null),
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}, [
|
|
907
|
-
const
|
|
908
|
-
(
|
|
909
|
-
|
|
907
|
+
const f = Q(p != null), v = typeof e == "string" ? e : e == null ? "" : String(e), [C, S] = B(p ?? v), L = Q(null), k = a === "preview", T = c, A = Q(null), $ = Q(!1), O = Q(null), U = Q(v);
|
|
908
|
+
Z(() => {
|
|
909
|
+
U.current = v;
|
|
910
|
+
}, [v]);
|
|
911
|
+
const D = j(
|
|
912
|
+
(b) => {
|
|
913
|
+
S(b), y?.(b);
|
|
910
914
|
},
|
|
911
915
|
[y]
|
|
912
916
|
);
|
|
913
|
-
|
|
917
|
+
Z(() => {
|
|
914
918
|
if (f.current) {
|
|
915
919
|
f.current = !1;
|
|
916
920
|
return;
|
|
917
921
|
}
|
|
918
|
-
!t && !k ||
|
|
919
|
-
}, [t, k,
|
|
920
|
-
if (k || !t ||
|
|
921
|
-
|
|
922
|
+
!t && !k || S(v);
|
|
923
|
+
}, [t, k, v]), Z(() => {
|
|
924
|
+
if (k || !t || T) {
|
|
925
|
+
$.current = !1;
|
|
922
926
|
return;
|
|
923
927
|
}
|
|
924
|
-
|
|
925
|
-
const
|
|
926
|
-
if (!
|
|
927
|
-
|
|
928
|
-
const M =
|
|
929
|
-
|
|
928
|
+
$.current || requestAnimationFrame(() => {
|
|
929
|
+
const b = A.current;
|
|
930
|
+
if (!b) return;
|
|
931
|
+
b.focus();
|
|
932
|
+
const M = b.value.length;
|
|
933
|
+
b.setSelectionRange(M, M), $.current = !0;
|
|
930
934
|
});
|
|
931
|
-
}, [t, k,
|
|
932
|
-
const
|
|
933
|
-
(
|
|
934
|
-
const M =
|
|
935
|
+
}, [t, k, T]);
|
|
936
|
+
const _ = j(
|
|
937
|
+
(b) => {
|
|
938
|
+
const M = b.trim();
|
|
935
939
|
if (m === "string")
|
|
936
|
-
return { value:
|
|
940
|
+
return { value: b };
|
|
937
941
|
if (M === "")
|
|
938
942
|
return { value: null };
|
|
939
943
|
if (m === "integer") {
|
|
@@ -944,55 +948,55 @@ const er = x.div`
|
|
|
944
948
|
const F = parseFloat(M);
|
|
945
949
|
return Number.isNaN(F) ? { value: null, error: "Invalid number value. Please enter a valid number." } : { value: F };
|
|
946
950
|
}
|
|
947
|
-
return { value:
|
|
951
|
+
return { value: b };
|
|
948
952
|
},
|
|
949
953
|
[m]
|
|
950
954
|
), G = j(
|
|
951
|
-
(
|
|
952
|
-
if (!
|
|
953
|
-
const { value: F, error: te } =
|
|
955
|
+
(b = "Click") => {
|
|
956
|
+
if (!T) {
|
|
957
|
+
const { value: F, error: te } = _(C);
|
|
954
958
|
if (te) {
|
|
955
|
-
|
|
959
|
+
we.error(te);
|
|
956
960
|
return;
|
|
957
961
|
}
|
|
958
|
-
if (
|
|
962
|
+
if (b !== "Enter" && (F === U.current || String(F ?? "") === U.current)) {
|
|
959
963
|
i?.();
|
|
960
964
|
return;
|
|
961
965
|
}
|
|
962
|
-
o?.(F,
|
|
966
|
+
o?.(F, b);
|
|
963
967
|
return;
|
|
964
968
|
}
|
|
965
969
|
const M = L.current?.getMarkdown() ?? C;
|
|
966
|
-
if (
|
|
970
|
+
if (b !== "Enter" && M.trim() === U.current.trim()) {
|
|
967
971
|
i?.();
|
|
968
972
|
return;
|
|
969
973
|
}
|
|
970
|
-
o?.(M,
|
|
974
|
+
o?.(M, b);
|
|
971
975
|
},
|
|
972
|
-
[
|
|
973
|
-
), { projectName: r, productTypes: g, taskTypes: w } = $e(),
|
|
976
|
+
[_, C, T, o, i, y]
|
|
977
|
+
), { projectName: r, productTypes: g, taskTypes: w } = $e(), N = ve(
|
|
974
978
|
() => d?.entityId && d.entityType && r ? { projectName: r, ...d, productTypes: g, taskTypes: w } : void 0,
|
|
975
979
|
[d?.entityId, d?.entityType, r, g, w]
|
|
976
|
-
), I = Qt(
|
|
977
|
-
(
|
|
978
|
-
if (k || !
|
|
979
|
-
if (
|
|
980
|
-
|
|
980
|
+
), I = Qt(N, { skip: k || !T }), R = j(
|
|
981
|
+
(b) => {
|
|
982
|
+
if (k || !T) return;
|
|
983
|
+
if (b.key === "Enter" || b.key === "Escape") {
|
|
984
|
+
b.stopPropagation();
|
|
981
985
|
return;
|
|
982
986
|
}
|
|
983
|
-
if (
|
|
984
|
-
const M =
|
|
985
|
-
!M || !F || (
|
|
987
|
+
if (b.shiftKey || b.altKey || !(b.ctrlKey || b.metaKey)) return;
|
|
988
|
+
const M = Dr[b.key.toLowerCase()], F = L.current?.getEditor();
|
|
989
|
+
!M || !F || (b.preventDefault(), Fn(F, M));
|
|
986
990
|
},
|
|
987
|
-
[k,
|
|
991
|
+
[k, T]
|
|
988
992
|
), P = /* @__PURE__ */ s(
|
|
989
|
-
|
|
993
|
+
Ir,
|
|
990
994
|
{
|
|
991
|
-
ref:
|
|
995
|
+
ref: O,
|
|
992
996
|
className: k ? "preview" : "editing",
|
|
993
997
|
onKeyDown: R,
|
|
994
|
-
onMouseDown: (
|
|
995
|
-
|
|
998
|
+
onMouseDown: (b) => {
|
|
999
|
+
b.stopPropagation();
|
|
996
1000
|
},
|
|
997
1001
|
onMouseEnter: () => {
|
|
998
1002
|
k && h?.();
|
|
@@ -1003,21 +1007,21 @@ const er = x.div`
|
|
|
1003
1007
|
children: /* @__PURE__ */ s(
|
|
1004
1008
|
ht,
|
|
1005
1009
|
{
|
|
1006
|
-
onMouseDown: (
|
|
1007
|
-
|
|
1010
|
+
onMouseDown: (b) => {
|
|
1011
|
+
b.stopPropagation();
|
|
1008
1012
|
},
|
|
1009
|
-
onClick: (
|
|
1010
|
-
if (
|
|
1011
|
-
|
|
1013
|
+
onClick: (b) => {
|
|
1014
|
+
if (b.stopPropagation(), k) {
|
|
1015
|
+
b.target.closest("a") || l?.();
|
|
1012
1016
|
return;
|
|
1013
1017
|
}
|
|
1014
1018
|
},
|
|
1015
|
-
children:
|
|
1019
|
+
children: T ? /* @__PURE__ */ s(
|
|
1016
1020
|
pt,
|
|
1017
1021
|
{
|
|
1018
1022
|
ref: L,
|
|
1019
|
-
value: k ?
|
|
1020
|
-
onChange: k ? void 0 :
|
|
1023
|
+
value: k ? v : C,
|
|
1024
|
+
onChange: k ? void 0 : D,
|
|
1021
1025
|
readOnly: k,
|
|
1022
1026
|
toolbar: !1,
|
|
1023
1027
|
floatingToolbar: !k,
|
|
@@ -1031,19 +1035,19 @@ const er = x.div`
|
|
|
1031
1035
|
onEscape: k ? void 0 : () => i?.()
|
|
1032
1036
|
},
|
|
1033
1037
|
`text-editor-${a}-${t}`
|
|
1034
|
-
) : k ? /* @__PURE__ */ s(
|
|
1035
|
-
|
|
1038
|
+
) : k ? /* @__PURE__ */ s(Nr, { children: v }) : /* @__PURE__ */ s(
|
|
1039
|
+
Rr,
|
|
1036
1040
|
{
|
|
1037
1041
|
ref: A,
|
|
1038
1042
|
value: C,
|
|
1039
|
-
onChange: (
|
|
1040
|
-
onKeyDown: (
|
|
1041
|
-
if (
|
|
1042
|
-
|
|
1043
|
+
onChange: (b) => D(b.target.value),
|
|
1044
|
+
onKeyDown: (b) => {
|
|
1045
|
+
if (b.key === "Escape") {
|
|
1046
|
+
b.preventDefault(), i?.();
|
|
1043
1047
|
return;
|
|
1044
1048
|
}
|
|
1045
|
-
if (
|
|
1046
|
-
|
|
1049
|
+
if (b.key === "Enter" && !b.shiftKey) {
|
|
1050
|
+
b.preventDefault(), G("Enter");
|
|
1047
1051
|
return;
|
|
1048
1052
|
}
|
|
1049
1053
|
},
|
|
@@ -1064,7 +1068,7 @@ const er = x.div`
|
|
|
1064
1068
|
children: P
|
|
1065
1069
|
}
|
|
1066
1070
|
) });
|
|
1067
|
-
},
|
|
1071
|
+
}, Zt = x.span`
|
|
1068
1072
|
overflow: hidden;
|
|
1069
1073
|
text-overflow: ellipsis;
|
|
1070
1074
|
white-space: nowrap;
|
|
@@ -1101,19 +1105,19 @@ const er = x.div`
|
|
|
1101
1105
|
}
|
|
1102
1106
|
`}
|
|
1103
1107
|
`;
|
|
1104
|
-
let
|
|
1105
|
-
const
|
|
1106
|
-
const [t, n] = B(() =>
|
|
1107
|
-
return
|
|
1108
|
+
let Jt, Ar;
|
|
1109
|
+
const Lr = () => Ar ??= import("rehype-raw").then((e) => Jt = e.default), Pr = (e) => {
|
|
1110
|
+
const [t, n] = B(() => Jt);
|
|
1111
|
+
return Z(() => {
|
|
1108
1112
|
if (!e || t) return;
|
|
1109
1113
|
let o = !0;
|
|
1110
|
-
return
|
|
1114
|
+
return Lr().then((i) => {
|
|
1111
1115
|
o && n(() => i);
|
|
1112
1116
|
}), () => {
|
|
1113
1117
|
o = !1;
|
|
1114
1118
|
};
|
|
1115
1119
|
}, [e, t]), t;
|
|
1116
|
-
},
|
|
1120
|
+
}, Xe = x.a`
|
|
1117
1121
|
color: var(--md-sys-color-primary, #0066cc);
|
|
1118
1122
|
text-decoration: none;
|
|
1119
1123
|
cursor: pointer;
|
|
@@ -1124,7 +1128,7 @@ const Ar = () => Dr ??= import("rehype-raw").then((e) => Zt = e.default), Lr = (
|
|
|
1124
1128
|
&:hover {
|
|
1125
1129
|
text-decoration: underline;
|
|
1126
1130
|
}
|
|
1127
|
-
`,
|
|
1131
|
+
`, _r = x.div`
|
|
1128
1132
|
background: var(--md-sys-color-surface-container-lowest);
|
|
1129
1133
|
border-radius: 8px;
|
|
1130
1134
|
padding: 12px;
|
|
@@ -1151,7 +1155,7 @@ const Ar = () => Dr ??= import("rehype-raw").then((e) => Zt = e.default), Lr = (
|
|
|
1151
1155
|
}
|
|
1152
1156
|
}
|
|
1153
1157
|
`;
|
|
1154
|
-
class
|
|
1158
|
+
class $r {
|
|
1155
1159
|
lastShownTime = 0;
|
|
1156
1160
|
warmTimeout = 500;
|
|
1157
1161
|
// ms idle before resetting to cold mode
|
|
@@ -1164,20 +1168,20 @@ class _r {
|
|
|
1164
1168
|
this.lastShownTime = Date.now();
|
|
1165
1169
|
}
|
|
1166
1170
|
}
|
|
1167
|
-
const Dt = new
|
|
1171
|
+
const Dt = new $r(), et = "projectTreeTextPreviewOpen", Or = (e) => {
|
|
1168
1172
|
try {
|
|
1169
1173
|
const t = new URL(e.trim());
|
|
1170
1174
|
return t.protocol === "http:" || t.protocol === "https:";
|
|
1171
1175
|
} catch {
|
|
1172
1176
|
return !1;
|
|
1173
1177
|
}
|
|
1174
|
-
},
|
|
1178
|
+
}, zr = (e) => {
|
|
1175
1179
|
const t = /(https?:\/\/[^\s<>"]+[^\s.,!?;:<>\")\]])/gi;
|
|
1176
|
-
return e.split(t).map((o, i) =>
|
|
1180
|
+
return e.split(t).map((o, i) => Or(o) ? { type: "url", content: o, key: i } : { type: "text", content: o, key: i });
|
|
1177
1181
|
}, At = (e) => {
|
|
1178
1182
|
const t = e?.match(/^@?([a-z]+):(.+)$/);
|
|
1179
1183
|
return !t || !Wn.includes(t[1]) ? null : { type: t[1], id: decodeURIComponent(t[2]) };
|
|
1180
|
-
}, Lt = (e) => /<[^>]*>/.test(e), Pt =
|
|
1184
|
+
}, Lt = (e) => /<[^>]*>/.test(e), Pt = ke(
|
|
1181
1185
|
({
|
|
1182
1186
|
value: e,
|
|
1183
1187
|
option: t,
|
|
@@ -1195,12 +1199,12 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1195
1199
|
setDraftValue: E,
|
|
1196
1200
|
mentionEntity: d,
|
|
1197
1201
|
className: f,
|
|
1198
|
-
...
|
|
1202
|
+
...v
|
|
1199
1203
|
}, C) => {
|
|
1200
|
-
const
|
|
1201
|
-
}), k = h || (() => null),
|
|
1202
|
-
}), [A,
|
|
1203
|
-
|
|
1204
|
+
const S = Pr(!!n), L = u || (() => {
|
|
1205
|
+
}), k = h || (() => null), T = E || (() => {
|
|
1206
|
+
}), [A, $] = B(!1), [O, U] = B(!1), [D, _] = B(!1), [G, r] = B(!1), g = Q(null), w = Q(), N = Q(), I = Q(!1), R = A || O, P = t?.label || e, b = typeof P == "string" ? P : String(P ?? ""), M = !n && !Lt(b) && !b.match(/(https?:\/\/\S+)/gi);
|
|
1207
|
+
Z(() => {
|
|
1204
1208
|
const H = g.current;
|
|
1205
1209
|
if (!H) return;
|
|
1206
1210
|
let K = null;
|
|
@@ -1214,24 +1218,24 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1214
1218
|
return de.observe(H), q(), () => {
|
|
1215
1219
|
K !== null && cancelAnimationFrame(K), de.disconnect();
|
|
1216
1220
|
};
|
|
1217
|
-
}, [
|
|
1221
|
+
}, [b]), Z(() => {
|
|
1218
1222
|
const H = g.current;
|
|
1219
1223
|
if (!H) return;
|
|
1220
1224
|
const K = H.closest("td");
|
|
1221
1225
|
if (!K) return;
|
|
1222
|
-
const q = () =>
|
|
1226
|
+
const q = () => $(!0), de = () => $(!1);
|
|
1223
1227
|
return K.addEventListener("mouseenter", q), K.addEventListener("mouseleave", de), () => {
|
|
1224
1228
|
K.removeEventListener("mouseenter", q), K.removeEventListener("mouseleave", de);
|
|
1225
1229
|
};
|
|
1226
1230
|
}, []);
|
|
1227
1231
|
const F = j((H) => {
|
|
1228
|
-
I.current = H,
|
|
1232
|
+
I.current = H, _(H);
|
|
1229
1233
|
}, []);
|
|
1230
|
-
|
|
1234
|
+
Z(() => (clearTimeout(w.current), clearTimeout(N.current), o ? F(!1) : R ? I.current || G && y && (w.current = setTimeout(() => {
|
|
1231
1235
|
I.current || (F(!0), Dt.markShown(), window.dispatchEvent(new CustomEvent(et, { detail: { cellId: y } })));
|
|
1232
|
-
}, Dt.getDelay())) :
|
|
1233
|
-
clearTimeout(w.current), clearTimeout(
|
|
1234
|
-
}), [R, G, o, y, F]),
|
|
1236
|
+
}, Dt.getDelay())) : N.current = setTimeout(() => F(!1), 300), () => {
|
|
1237
|
+
clearTimeout(w.current), clearTimeout(N.current);
|
|
1238
|
+
}), [R, G, o, y, F]), Z(() => {
|
|
1235
1239
|
const H = (K) => {
|
|
1236
1240
|
K.detail?.cellId !== y && F(!1);
|
|
1237
1241
|
};
|
|
@@ -1239,7 +1243,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1239
1243
|
}, [y, F]);
|
|
1240
1244
|
const te = j(() => {
|
|
1241
1245
|
F(!1), y && L(y);
|
|
1242
|
-
}, [y, L, F]),
|
|
1246
|
+
}, [y, L, F]), W = j(
|
|
1243
1247
|
(H, K) => {
|
|
1244
1248
|
a(H, K === "Enter" ? "Click" : K);
|
|
1245
1249
|
},
|
|
@@ -1248,8 +1252,8 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1248
1252
|
Bt,
|
|
1249
1253
|
{
|
|
1250
1254
|
remarkPlugins: [Yt],
|
|
1251
|
-
rehypePlugins:
|
|
1252
|
-
urlTransform: (K) => At(K) ? K :
|
|
1255
|
+
rehypePlugins: S ? [S] : [],
|
|
1256
|
+
urlTransform: (K) => At(K) ? K : Jn(K),
|
|
1253
1257
|
components: {
|
|
1254
1258
|
p: ({ children: K }) => /* @__PURE__ */ s("span", { children: K }),
|
|
1255
1259
|
a: ({ href: K, children: q }) => {
|
|
@@ -1269,7 +1273,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1269
1273
|
);
|
|
1270
1274
|
}
|
|
1271
1275
|
return /* @__PURE__ */ s(
|
|
1272
|
-
|
|
1276
|
+
Xe,
|
|
1273
1277
|
{
|
|
1274
1278
|
href: K || "#",
|
|
1275
1279
|
onMouseDown: (Ue) => Ue.stopPropagation(),
|
|
@@ -1280,10 +1284,10 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1280
1284
|
);
|
|
1281
1285
|
}
|
|
1282
1286
|
},
|
|
1283
|
-
children:
|
|
1287
|
+
children: b
|
|
1284
1288
|
}
|
|
1285
|
-
) : Lt(
|
|
1286
|
-
|
|
1289
|
+
) : Lt(b) ? $n(b).map((q) => q.type === "url" && q.href ? /* @__PURE__ */ s(
|
|
1290
|
+
Xe,
|
|
1287
1291
|
{
|
|
1288
1292
|
href: q.href,
|
|
1289
1293
|
onMouseDown: (de) => de.stopPropagation(),
|
|
@@ -1292,8 +1296,8 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1292
1296
|
children: q.content
|
|
1293
1297
|
},
|
|
1294
1298
|
q.key
|
|
1295
|
-
) : /* @__PURE__ */ s("span", { style: { whiteSpace: "pre-line" }, children: q.content }, q.key)) :
|
|
1296
|
-
|
|
1299
|
+
) : /* @__PURE__ */ s("span", { style: { whiteSpace: "pre-line" }, children: q.content }, q.key)) : b.match(/(https?:\/\/\S+)/gi) ? zr(b).map((q) => q.type === "url" ? /* @__PURE__ */ s(
|
|
1300
|
+
Xe,
|
|
1297
1301
|
{
|
|
1298
1302
|
href: q.content,
|
|
1299
1303
|
onMouseDown: (de) => de.stopPropagation(),
|
|
@@ -1302,10 +1306,10 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1302
1306
|
children: q.content
|
|
1303
1307
|
},
|
|
1304
1308
|
q.key
|
|
1305
|
-
) : q.content) :
|
|
1309
|
+
) : q.content) : b;
|
|
1306
1310
|
if (o && !n)
|
|
1307
1311
|
return /* @__PURE__ */ s(
|
|
1308
|
-
|
|
1312
|
+
kr,
|
|
1309
1313
|
{
|
|
1310
1314
|
value: e,
|
|
1311
1315
|
onChange: a,
|
|
@@ -1313,17 +1317,17 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1313
1317
|
type: m || "string"
|
|
1314
1318
|
}
|
|
1315
1319
|
);
|
|
1316
|
-
const Y =
|
|
1320
|
+
const Y = V(f, {
|
|
1317
1321
|
markdown: n,
|
|
1318
1322
|
regular: M
|
|
1319
1323
|
});
|
|
1320
|
-
return /* @__PURE__ */
|
|
1321
|
-
/* @__PURE__ */
|
|
1322
|
-
|
|
1324
|
+
return /* @__PURE__ */ z(Ae, { children: [
|
|
1325
|
+
/* @__PURE__ */ z(
|
|
1326
|
+
Zt,
|
|
1323
1327
|
{
|
|
1324
1328
|
className: Y,
|
|
1325
1329
|
style: { color: t?.color, ...c },
|
|
1326
|
-
...
|
|
1330
|
+
...v,
|
|
1327
1331
|
ref: (H) => {
|
|
1328
1332
|
g.current = H, typeof C == "function" ? C(H) : C && (C.current = H);
|
|
1329
1333
|
},
|
|
@@ -1350,15 +1354,15 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1350
1354
|
variant: "edit",
|
|
1351
1355
|
allowMarkdown: !0,
|
|
1352
1356
|
valueType: m || "string",
|
|
1353
|
-
onChange:
|
|
1357
|
+
onChange: W,
|
|
1354
1358
|
onCancelEdit: l,
|
|
1355
1359
|
onDismissWithoutSave: l,
|
|
1356
1360
|
draftValue: k(),
|
|
1357
|
-
onEditingDraftChange:
|
|
1361
|
+
onEditingDraftChange: T,
|
|
1358
1362
|
mentionEntity: d
|
|
1359
1363
|
}
|
|
1360
1364
|
),
|
|
1361
|
-
|
|
1365
|
+
D && !o && n && y && /* @__PURE__ */ s(
|
|
1362
1366
|
Nt,
|
|
1363
1367
|
{
|
|
1364
1368
|
value: e,
|
|
@@ -1369,22 +1373,22 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1369
1373
|
onChange: a,
|
|
1370
1374
|
onCancelEdit: () => F(!1),
|
|
1371
1375
|
onPreviewClick: te,
|
|
1372
|
-
onPreviewMouseEnter: () =>
|
|
1373
|
-
onPreviewMouseLeave: () =>
|
|
1376
|
+
onPreviewMouseEnter: () => U(!0),
|
|
1377
|
+
onPreviewMouseLeave: () => U(!1)
|
|
1374
1378
|
}
|
|
1375
1379
|
),
|
|
1376
|
-
|
|
1380
|
+
D && !o && !n && y && /* @__PURE__ */ s(
|
|
1377
1381
|
We,
|
|
1378
1382
|
{
|
|
1379
1383
|
isEditing: !0,
|
|
1380
1384
|
anchorId: y,
|
|
1381
1385
|
onClose: () => F(!1),
|
|
1382
1386
|
children: /* @__PURE__ */ s(
|
|
1383
|
-
|
|
1387
|
+
_r,
|
|
1384
1388
|
{
|
|
1385
1389
|
onClick: te,
|
|
1386
|
-
onMouseEnter: () =>
|
|
1387
|
-
onMouseLeave: () =>
|
|
1390
|
+
onMouseEnter: () => U(!0),
|
|
1391
|
+
onMouseLeave: () => U(!1),
|
|
1388
1392
|
onMouseDown: (H) => H.stopPropagation(),
|
|
1389
1393
|
children: ee()
|
|
1390
1394
|
}
|
|
@@ -1393,7 +1397,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1393
1397
|
)
|
|
1394
1398
|
] });
|
|
1395
1399
|
}
|
|
1396
|
-
),
|
|
1400
|
+
), Mr = ({
|
|
1397
1401
|
description: e,
|
|
1398
1402
|
enableEditing: t,
|
|
1399
1403
|
isMixed: n,
|
|
@@ -1414,22 +1418,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1414
1418
|
a(!1), c("");
|
|
1415
1419
|
}
|
|
1416
1420
|
};
|
|
1417
|
-
},
|
|
1418
|
-
"h1",
|
|
1419
|
-
"h2",
|
|
1420
|
-
"h3",
|
|
1421
|
-
"|",
|
|
1422
|
-
"bold",
|
|
1423
|
-
"italic",
|
|
1424
|
-
"strikethrough",
|
|
1425
|
-
"link",
|
|
1426
|
-
"|",
|
|
1427
|
-
"codeBlock",
|
|
1428
|
-
"quote",
|
|
1429
|
-
"|",
|
|
1430
|
-
"numberList",
|
|
1431
|
-
"bulletList"
|
|
1432
|
-
], Fr = ({
|
|
1421
|
+
}, Fr = ({
|
|
1433
1422
|
description: e,
|
|
1434
1423
|
isLarge: t = !0,
|
|
1435
1424
|
isMixed: n,
|
|
@@ -1442,26 +1431,26 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1442
1431
|
onMentionClick: p,
|
|
1443
1432
|
onMentionHover: y
|
|
1444
1433
|
}) => {
|
|
1445
|
-
const { isEditing: u, editorValue: h, setEditorValue: E, handleStartEditing: d, handleSave: f, handleCancel:
|
|
1434
|
+
const { isEditing: u, editorValue: h, setEditorValue: E, handleStartEditing: d, handleSave: f, handleCancel: v } = Mr({
|
|
1446
1435
|
description: e,
|
|
1447
1436
|
enableEditing: o,
|
|
1448
1437
|
isMixed: n,
|
|
1449
1438
|
onChange: a
|
|
1450
1439
|
}), C = Qt(m, { skip: !u });
|
|
1451
|
-
if (
|
|
1440
|
+
if (Z(() => {
|
|
1452
1441
|
i && !u && d();
|
|
1453
1442
|
}, [i]), c)
|
|
1454
|
-
return /* @__PURE__ */ s(Tt, { title: "Description", children: /* @__PURE__ */ s(
|
|
1455
|
-
const
|
|
1443
|
+
return /* @__PURE__ */ s(Tt, { title: "Description", children: /* @__PURE__ */ s(Sr, {}) });
|
|
1444
|
+
const S = (k) => {
|
|
1456
1445
|
if (u) return;
|
|
1457
|
-
const
|
|
1458
|
-
if (
|
|
1446
|
+
const T = k.target;
|
|
1447
|
+
if (T.closest("a") || p && T.closest(".mention")) {
|
|
1459
1448
|
k.stopPropagation();
|
|
1460
1449
|
return;
|
|
1461
1450
|
}
|
|
1462
1451
|
d();
|
|
1463
1452
|
}, L = () => {
|
|
1464
|
-
|
|
1453
|
+
v(), l?.();
|
|
1465
1454
|
};
|
|
1466
1455
|
return /* @__PURE__ */ s(
|
|
1467
1456
|
Tt,
|
|
@@ -1471,7 +1460,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1471
1460
|
enableHover: !u,
|
|
1472
1461
|
onClick: u ? void 0 : d,
|
|
1473
1462
|
description: t,
|
|
1474
|
-
children: /* @__PURE__ */
|
|
1463
|
+
children: /* @__PURE__ */ z(Tr, { className: V({ editing: u }), onClick: S, children: [
|
|
1475
1464
|
/* @__PURE__ */ s(ht, { className: "block-shortcuts", children: /* @__PURE__ */ s(
|
|
1476
1465
|
pt,
|
|
1477
1466
|
{
|
|
@@ -1483,7 +1472,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1483
1472
|
onMentionClick: p,
|
|
1484
1473
|
onMentionHover: y,
|
|
1485
1474
|
readOnly: !u,
|
|
1486
|
-
toolbar: u ?
|
|
1475
|
+
toolbar: u ? Vn : !1,
|
|
1487
1476
|
bordered: !1,
|
|
1488
1477
|
autoFocus: u,
|
|
1489
1478
|
minHeight: u ? 60 : 20,
|
|
@@ -1492,14 +1481,14 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1492
1481
|
},
|
|
1493
1482
|
u ? "edit" : "view"
|
|
1494
1483
|
) }),
|
|
1495
|
-
u && /* @__PURE__ */ s(
|
|
1496
|
-
/* @__PURE__ */ s(
|
|
1497
|
-
/* @__PURE__ */ s(
|
|
1484
|
+
u && /* @__PURE__ */ s(Cr, { children: /* @__PURE__ */ z(Er, { children: [
|
|
1485
|
+
/* @__PURE__ */ s(xe, { variant: "text", label: "Cancel", onClick: L }),
|
|
1486
|
+
/* @__PURE__ */ s(xe, { variant: "filled", label: "Save", onClick: f })
|
|
1498
1487
|
] }) })
|
|
1499
1488
|
] })
|
|
1500
1489
|
}
|
|
1501
1490
|
);
|
|
1502
|
-
}, Hr = x(
|
|
1491
|
+
}, Hr = x(xe)`
|
|
1503
1492
|
position: absolute;
|
|
1504
1493
|
right: -40px;
|
|
1505
1494
|
top: 38px;
|
|
@@ -1544,47 +1533,47 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1544
1533
|
showExpand: l
|
|
1545
1534
|
}) => {
|
|
1546
1535
|
const [c, m] = B(e || ""), [p, y] = B(0), [u, h] = B(!1), E = Q(null), d = Q(null), f = o && !i;
|
|
1547
|
-
|
|
1536
|
+
Z(() => {
|
|
1548
1537
|
if (!d.current) return;
|
|
1549
|
-
const A = new ResizeObserver((
|
|
1550
|
-
for (const
|
|
1551
|
-
y(
|
|
1538
|
+
const A = new ResizeObserver(($) => {
|
|
1539
|
+
for (const O of $)
|
|
1540
|
+
y(O.contentRect.width);
|
|
1552
1541
|
});
|
|
1553
1542
|
return A.observe(d.current), () => A.disconnect();
|
|
1554
|
-
}, []),
|
|
1543
|
+
}, []), Z(() => {
|
|
1555
1544
|
f && m(e || "");
|
|
1556
1545
|
}, [f]);
|
|
1557
|
-
const { height:
|
|
1546
|
+
const { height: v, lines: C } = ve(() => {
|
|
1558
1547
|
const A = f ? c : e;
|
|
1559
1548
|
if (!A) return { height: 32, lines: 0 };
|
|
1560
1549
|
if (!p) return { height: 32, lines: 0 };
|
|
1561
|
-
const
|
|
1562
|
-
`),
|
|
1563
|
-
`).reduce((G, r) => G + Math.max(1, Math.ceil(r.length /
|
|
1564
|
-
if (
|
|
1565
|
-
const
|
|
1566
|
-
return { height: Math.min(112,
|
|
1567
|
-
}, [e, p, f, c]),
|
|
1550
|
+
const $ = A.replace(/\\\n/g, `
|
|
1551
|
+
`), U = Math.max(1, Math.floor((p - 7) / 7)), D = $.split(`
|
|
1552
|
+
`).reduce((G, r) => G + Math.max(1, Math.ceil(r.length / U)), 0);
|
|
1553
|
+
if (D <= 1) return { height: 32, lines: D };
|
|
1554
|
+
const _ = 32 + (D - 1) * 20;
|
|
1555
|
+
return { height: Math.min(112, _), lines: D };
|
|
1556
|
+
}, [e, p, f, c]), S = j(() => {
|
|
1568
1557
|
const A = (E.current?.getMarkdown() ?? c).trim();
|
|
1569
1558
|
A !== (e || "").trim() ? t(A) : n?.();
|
|
1570
1559
|
}, [t, n, e, c]), L = j(
|
|
1571
1560
|
(A) => {
|
|
1572
|
-
const
|
|
1573
|
-
if (!(
|
|
1574
|
-
if (
|
|
1561
|
+
const $ = A.relatedTarget;
|
|
1562
|
+
if (!($ && (d.current?.contains($) || $.closest(".md-popover")))) {
|
|
1563
|
+
if ($?.closest(".expand-button")) {
|
|
1575
1564
|
n?.();
|
|
1576
1565
|
return;
|
|
1577
1566
|
}
|
|
1578
|
-
|
|
1567
|
+
S();
|
|
1579
1568
|
}
|
|
1580
1569
|
},
|
|
1581
|
-
[
|
|
1570
|
+
[S, n]
|
|
1582
1571
|
), k = j((A) => {
|
|
1583
1572
|
(A.key === "Escape" || A.key === "Enter" && (A.metaKey || A.ctrlKey)) && A.stopPropagation();
|
|
1584
1573
|
}, []);
|
|
1585
1574
|
if (!e && !f) return null;
|
|
1586
|
-
const
|
|
1587
|
-
return /* @__PURE__ */
|
|
1575
|
+
const T = f && !u;
|
|
1576
|
+
return /* @__PURE__ */ z("div", { ref: d, style: { width: "100%", height: v, position: "relative", minWidth: 0 }, children: [
|
|
1588
1577
|
l && C >= 3 && /* @__PURE__ */ s(
|
|
1589
1578
|
Hr,
|
|
1590
1579
|
{
|
|
@@ -1599,27 +1588,27 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1599
1588
|
/* @__PURE__ */ s(
|
|
1600
1589
|
ht,
|
|
1601
1590
|
{
|
|
1602
|
-
style: { height:
|
|
1591
|
+
style: { height: v, overflow: "auto" },
|
|
1603
1592
|
className: "block-shortcuts compact",
|
|
1604
|
-
onBlur:
|
|
1605
|
-
onKeyDown:
|
|
1593
|
+
onBlur: T ? L : void 0,
|
|
1594
|
+
onKeyDown: T ? k : void 0,
|
|
1606
1595
|
children: /* @__PURE__ */ s(
|
|
1607
1596
|
pt,
|
|
1608
1597
|
{
|
|
1609
1598
|
ref: E,
|
|
1610
|
-
value:
|
|
1611
|
-
onChange:
|
|
1612
|
-
readOnly: !
|
|
1599
|
+
value: T ? c : e || "",
|
|
1600
|
+
onChange: T ? m : void 0,
|
|
1601
|
+
readOnly: !T,
|
|
1613
1602
|
toolbar: !1,
|
|
1614
|
-
floatingToolbar:
|
|
1603
|
+
floatingToolbar: T,
|
|
1615
1604
|
bordered: !1,
|
|
1616
|
-
autoFocus:
|
|
1617
|
-
minHeight:
|
|
1618
|
-
onSubmit:
|
|
1619
|
-
onEscape:
|
|
1605
|
+
autoFocus: T,
|
|
1606
|
+
minHeight: v,
|
|
1607
|
+
onSubmit: T ? S : void 0,
|
|
1608
|
+
onEscape: T ? () => n?.() : void 0,
|
|
1620
1609
|
placeholder: ""
|
|
1621
1610
|
},
|
|
1622
|
-
|
|
1611
|
+
T ? "edit" : "view"
|
|
1623
1612
|
)
|
|
1624
1613
|
}
|
|
1625
1614
|
),
|
|
@@ -1656,7 +1645,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1656
1645
|
border-color: var(--md-sys-color-primary);
|
|
1657
1646
|
appearance: auto;
|
|
1658
1647
|
}
|
|
1659
|
-
`, Ur =
|
|
1648
|
+
`, Ur = ke(
|
|
1660
1649
|
({ value: e, onChange: t, isReadOnly: n, isEditing: o, onCancelEdit: i, isInherited: a, ...l }, c) => n ? /* @__PURE__ */ s(mt, { checked: e, isReadOnly: !0, className: l.className }) : /* @__PURE__ */ s(
|
|
1661
1650
|
Vr,
|
|
1662
1651
|
{
|
|
@@ -1697,7 +1686,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1697
1686
|
background-color: var(--md-sys-color-surface-container-highest);
|
|
1698
1687
|
}
|
|
1699
1688
|
}
|
|
1700
|
-
`,
|
|
1689
|
+
`, Xt = x.h5`
|
|
1701
1690
|
margin: 0;
|
|
1702
1691
|
padding: 0;
|
|
1703
1692
|
padding-bottom: var(--padding-s);
|
|
@@ -1867,18 +1856,18 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
1867
1856
|
position: absolute;
|
|
1868
1857
|
left: 4px;
|
|
1869
1858
|
}
|
|
1870
|
-
`,
|
|
1859
|
+
`, Zr = x(xe)`
|
|
1871
1860
|
min-width: 110px;
|
|
1872
1861
|
flex: 1;
|
|
1873
1862
|
width: 100%;
|
|
1874
|
-
`,
|
|
1863
|
+
`, Jr = x(Kt)`
|
|
1875
1864
|
flex: 1;
|
|
1876
1865
|
border: none;
|
|
1877
1866
|
background-color: var(--md-sys-color-surface-container);
|
|
1878
1867
|
padding-left: 28px;
|
|
1879
1868
|
width: 100%;
|
|
1880
1869
|
min-width: 224px;
|
|
1881
|
-
`,
|
|
1870
|
+
`, Xr = x.div`
|
|
1882
1871
|
color: var(--md-sys-color-error);
|
|
1883
1872
|
margin-top: var(--base-gap-small);
|
|
1884
1873
|
`, eo = x.ul`
|
|
@@ -2065,7 +2054,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2065
2054
|
if (i.length > 0)
|
|
2066
2055
|
throw i.map((a) => a || "Unknown error").join(", ");
|
|
2067
2056
|
} catch (n) {
|
|
2068
|
-
throw
|
|
2057
|
+
throw we.error(`Failed to remove links: ${n}`), n;
|
|
2069
2058
|
}
|
|
2070
2059
|
}, so = async (e, t) => {
|
|
2071
2060
|
if (e.length)
|
|
@@ -2096,20 +2085,20 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2096
2085
|
if (i.length > 0)
|
|
2097
2086
|
throw i.map((a) => wn(a.error) || "Unknown error").join(", ");
|
|
2098
2087
|
} catch (n) {
|
|
2099
|
-
throw
|
|
2088
|
+
throw we.error(`Failed to add links: ${n}`), n;
|
|
2100
2089
|
}
|
|
2101
2090
|
}, lo = ({ projectInfo: e }) => {
|
|
2102
|
-
const { folderTypes: t = [], taskTypes: n = [], productTypes: o = [] } = e || {}, i =
|
|
2091
|
+
const { folderTypes: t = [], taskTypes: n = [], productTypes: o = [] } = e || {}, i = ve(() => {
|
|
2103
2092
|
const m = /* @__PURE__ */ new Map();
|
|
2104
2093
|
for (const p of t)
|
|
2105
2094
|
m.set(p.name, p);
|
|
2106
2095
|
return m;
|
|
2107
|
-
}, [t]), a =
|
|
2096
|
+
}, [t]), a = ve(() => {
|
|
2108
2097
|
const m = /* @__PURE__ */ new Map();
|
|
2109
2098
|
for (const p of n)
|
|
2110
2099
|
m.set(p.name, p);
|
|
2111
2100
|
return m;
|
|
2112
|
-
}, [n]), l =
|
|
2101
|
+
}, [n]), l = ve(() => {
|
|
2113
2102
|
const m = /* @__PURE__ */ new Map();
|
|
2114
2103
|
for (const p of o)
|
|
2115
2104
|
m.set(p.name, p);
|
|
@@ -2143,7 +2132,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2143
2132
|
const o = e.id.replace("attrib.", "");
|
|
2144
2133
|
return o === "status" ? t?.statuses?.map((i) => i.name) || [] : o === "taskType" ? t?.taskTypes?.map((i) => i.name) || [] : o === "folderType" ? t?.folderTypes?.map((i) => i.name) || [] : e.id.startsWith("attrib.") ? n.find((i) => i.name === o)?.data.enum?.map((i) => i.value.toString()) || [] : [];
|
|
2145
2134
|
}, mo = (e, t, n, o, i) => {
|
|
2146
|
-
const a = i(n, e.taskType), l = o.get(e.folderId), c =
|
|
2135
|
+
const a = i(n, e.taskType), l = o.get(e.folderId), c = Xo(
|
|
2147
2136
|
e,
|
|
2148
2137
|
l?.entityType === "folder" ? l : void 0
|
|
2149
2138
|
);
|
|
@@ -2166,7 +2155,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2166
2155
|
const m = $e(), p = lo({ projectInfo: m }), y = j(
|
|
2167
2156
|
(u, h) => {
|
|
2168
2157
|
const E = a ? a(u) : mo(u, h, t, e, p);
|
|
2169
|
-
return t === "task" && (E.primary.links =
|
|
2158
|
+
return t === "task" && (E.primary.links = Jo(u.links, "task", m.anatomy)), {
|
|
2170
2159
|
...E,
|
|
2171
2160
|
id: u.id + vt + h,
|
|
2172
2161
|
// unique id for the task in the group
|
|
@@ -2179,30 +2168,30 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2179
2168
|
(u) => {
|
|
2180
2169
|
const h = /* @__PURE__ */ new Map();
|
|
2181
2170
|
for (const k of n) {
|
|
2182
|
-
const
|
|
2171
|
+
const T = k.value?.toString(), A = _t(T), $ = co(
|
|
2183
2172
|
u.id,
|
|
2184
|
-
|
|
2173
|
+
T,
|
|
2185
2174
|
n,
|
|
2186
2175
|
l,
|
|
2187
2176
|
c
|
|
2188
2177
|
);
|
|
2189
|
-
h.set(
|
|
2178
|
+
h.set(T, {
|
|
2190
2179
|
id: A,
|
|
2191
2180
|
primary: {
|
|
2192
2181
|
id: A,
|
|
2193
2182
|
entityType: "folder",
|
|
2194
|
-
name:
|
|
2195
|
-
label:
|
|
2183
|
+
name: T,
|
|
2184
|
+
label: $.label,
|
|
2196
2185
|
subType: ""
|
|
2197
2186
|
},
|
|
2198
2187
|
subRows: [],
|
|
2199
|
-
group:
|
|
2188
|
+
group: $
|
|
2200
2189
|
});
|
|
2201
2190
|
}
|
|
2202
2191
|
const E = _t(he), d = () => {
|
|
2203
2192
|
let k = h.get(he);
|
|
2204
2193
|
if (!k) {
|
|
2205
|
-
const
|
|
2194
|
+
const T = l?.get(he), A = {
|
|
2206
2195
|
id: E,
|
|
2207
2196
|
primary: {
|
|
2208
2197
|
id: E,
|
|
@@ -2215,8 +2204,8 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2215
2204
|
group: {
|
|
2216
2205
|
value: he,
|
|
2217
2206
|
label: "Ungrouped",
|
|
2218
|
-
count:
|
|
2219
|
-
percentage:
|
|
2207
|
+
count: T?.count,
|
|
2208
|
+
percentage: T?.percentage
|
|
2220
2209
|
}
|
|
2221
2210
|
};
|
|
2222
2211
|
h.set(he, A), k = A;
|
|
@@ -2226,25 +2215,25 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2226
2215
|
(u.id === "tags" || u.id === "assignees" || u.id.startsWith("attrib.")) && d();
|
|
2227
2216
|
for (const [, k] of e) {
|
|
2228
2217
|
if (k.entityType !== t) continue;
|
|
2229
|
-
let
|
|
2218
|
+
let T = [];
|
|
2230
2219
|
if (u.id.startsWith("attrib.")) {
|
|
2231
2220
|
const A = u.id.split(".")[1];
|
|
2232
|
-
|
|
2233
|
-
} else u.id === "folderType" && "folder" in k ?
|
|
2221
|
+
T = nt(k.attrib?.[A]);
|
|
2222
|
+
} else u.id === "folderType" && "folder" in k ? T = nt(
|
|
2234
2223
|
k.folder?.folderType
|
|
2235
|
-
) :
|
|
2236
|
-
|
|
2237
|
-
for (const A of
|
|
2238
|
-
const
|
|
2239
|
-
|
|
2224
|
+
) : T = nt(k[u.id]);
|
|
2225
|
+
T.length === 0 && d().subRows?.push(y(k, he));
|
|
2226
|
+
for (const A of T) {
|
|
2227
|
+
const $ = h.get(A);
|
|
2228
|
+
$ ? $.subRows?.push(y(k, A)) : d().subRows?.push(
|
|
2240
2229
|
y(k, he)
|
|
2241
2230
|
);
|
|
2242
2231
|
}
|
|
2243
2232
|
if ("groups" in k && Array.isArray(k.groups)) {
|
|
2244
2233
|
for (const A of k.groups)
|
|
2245
2234
|
if (A.hasNextPage && h.has(A.value)) {
|
|
2246
|
-
const
|
|
2247
|
-
|
|
2235
|
+
const O = h.get(A.value);
|
|
2236
|
+
O && O.subRows?.push({
|
|
2248
2237
|
id: `${A.value}-next-page`,
|
|
2249
2238
|
primary: {
|
|
2250
2239
|
id: `${A.value}-next-page`,
|
|
@@ -2259,20 +2248,20 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2259
2248
|
}
|
|
2260
2249
|
}
|
|
2261
2250
|
}
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2251
|
+
const v = Array.from(h.values()), C = po(u, m, o), S = u.desc ? -1 : 1;
|
|
2252
|
+
v.sort((k, T) => {
|
|
2264
2253
|
if (k.group?.value === he) return 1;
|
|
2265
|
-
if (
|
|
2254
|
+
if (T.group?.value === he) return -1;
|
|
2266
2255
|
if (C.length) {
|
|
2267
|
-
const A = C.indexOf(k.group?.value || ""),
|
|
2268
|
-
return A !== -1 &&
|
|
2256
|
+
const A = C.indexOf(k.group?.value || ""), $ = C.indexOf(T.group?.value || "");
|
|
2257
|
+
return A !== -1 && $ !== -1 ? (A - $) * S : A !== -1 ? -1 : $ !== -1 ? 1 : (k.group?.label?.localeCompare(T.group?.label || "") || 0) * S;
|
|
2269
2258
|
} else
|
|
2270
|
-
return (k.group?.label?.localeCompare(
|
|
2259
|
+
return (k.group?.label?.localeCompare(T.group?.label || "") || 0) * S;
|
|
2271
2260
|
});
|
|
2272
|
-
const L =
|
|
2261
|
+
const L = v.filter(
|
|
2273
2262
|
(k) => (k.group?.count ?? 0) > 0 || (k.subRows?.length ?? 0) > 0 || k.group?.value === he
|
|
2274
2263
|
);
|
|
2275
|
-
return i ?
|
|
2264
|
+
return i ? v : L;
|
|
2276
2265
|
},
|
|
2277
2266
|
[
|
|
2278
2267
|
e,
|
|
@@ -2325,10 +2314,10 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2325
2314
|
if (!e)
|
|
2326
2315
|
throw new Error("useSelectedRowsContext must be used within a SelectedRowsProvider");
|
|
2327
2316
|
return e;
|
|
2328
|
-
}, To = () => ce(ln), Co = "unknown", Ya = "restricted", qa = "Access Restricted - Insufficient Permissions", Qa = "lock", Me = (e) => e === Co, Pe = "readonly",
|
|
2317
|
+
}, To = () => ce(ln), Co = "unknown", Ya = "restricted", qa = "Access Restricted - Insufficient Permissions", Qa = "lock", Me = (e) => e === Co, Pe = "readonly", Za = (e) => {
|
|
2329
2318
|
const t = e.target;
|
|
2330
2319
|
return t.tagName === "TD" ? t.classList.contains(Pe) || Array.from(t.children).some((n) => n.classList.contains(Pe)) : t.closest(`.${Pe}`) !== null;
|
|
2331
|
-
}, dn = fe(void 0),
|
|
2320
|
+
}, dn = fe(void 0), Ja = {
|
|
2332
2321
|
progress: {
|
|
2333
2322
|
fields: [
|
|
2334
2323
|
{ value: "hierarchy" },
|
|
@@ -2359,7 +2348,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2359
2348
|
{ value: "entityList" }
|
|
2360
2349
|
]
|
|
2361
2350
|
}
|
|
2362
|
-
},
|
|
2351
|
+
}, Xa = () => {
|
|
2363
2352
|
const e = ce(dn);
|
|
2364
2353
|
if (e === void 0)
|
|
2365
2354
|
throw new Error("useSlicerContext must be used within a SlicerProvider");
|
|
@@ -2389,7 +2378,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2389
2378
|
}
|
|
2390
2379
|
}
|
|
2391
2380
|
}
|
|
2392
|
-
`, ts =
|
|
2381
|
+
`, ts = ke(
|
|
2393
2382
|
({ sliceTypes: e, ...t }, n) => {
|
|
2394
2383
|
const { setPowerpackDialog: o } = _n(), i = [...t.options].map((l) => l.value === "hierarchy" ? l : {
|
|
2395
2384
|
...l,
|
|
@@ -2409,7 +2398,7 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2409
2398
|
}
|
|
2410
2399
|
);
|
|
2411
2400
|
}
|
|
2412
|
-
),
|
|
2401
|
+
), Te = "inset 0 1px 0 0 var(--md-sys-color-primary)", Ce = "inset -1px 0 0 0 var(--md-sys-color-primary)", Se = "inset 0 -1px 0 0 var(--md-sys-color-primary)", Ee = "inset 1px 0 0 0 var(--md-sys-color-primary)", ie = (e) => e ? "inset -2px -1px 0 0 var(--md-sys-color-surface-container), inset 1px 0 0 0 var(--md-sys-color-surface-container)" : "inset 1px -1px 0 0 var(--md-sys-color-surface-container)", ct = "drag-handle", ns = x.tr`
|
|
2413
2402
|
display: flex;
|
|
2414
2403
|
position: absolute;
|
|
2415
2404
|
width: 100%;
|
|
@@ -2697,76 +2686,76 @@ const Dt = new _r(), et = "projectTreeTextPreviewOpen", $r = (e) => {
|
|
|
2697
2686
|
|
|
2698
2687
|
/* Shadow combinations - single side */
|
|
2699
2688
|
&.shadow-top:not(.shadow-right):not(.shadow-bottom):not(.shadow-left) {
|
|
2700
|
-
box-shadow: ${
|
|
2689
|
+
box-shadow: ${Te}, ${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2701
2690
|
}
|
|
2702
2691
|
|
|
2703
2692
|
&.shadow-right:not(.shadow-top):not(.shadow-bottom):not(.shadow-left) {
|
|
2704
|
-
box-shadow: ${
|
|
2693
|
+
box-shadow: ${Ce}, ${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2705
2694
|
}
|
|
2706
2695
|
|
|
2707
2696
|
&.shadow-bottom:not(.shadow-top):not(.shadow-right):not(.shadow-left) {
|
|
2708
|
-
box-shadow: ${
|
|
2697
|
+
box-shadow: ${Se}, ${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2709
2698
|
}
|
|
2710
2699
|
|
|
2711
2700
|
&.shadow-left:not(.shadow-top):not(.shadow-right):not(.shadow-bottom) {
|
|
2712
|
-
box-shadow: ${
|
|
2701
|
+
box-shadow: ${Ee}, ${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2713
2702
|
}
|
|
2714
2703
|
|
|
2715
2704
|
/* Two sides */
|
|
2716
2705
|
&.shadow-top.shadow-right:not(.shadow-bottom):not(.shadow-left) {
|
|
2717
|
-
box-shadow: ${
|
|
2706
|
+
box-shadow: ${Te}, ${Ce},
|
|
2718
2707
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2719
2708
|
}
|
|
2720
2709
|
|
|
2721
2710
|
&.shadow-top.shadow-bottom:not(.shadow-right):not(.shadow-left) {
|
|
2722
|
-
box-shadow: ${
|
|
2711
|
+
box-shadow: ${Te}, ${Se},
|
|
2723
2712
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2724
2713
|
}
|
|
2725
2714
|
|
|
2726
2715
|
&.shadow-top.shadow-left:not(.shadow-right):not(.shadow-bottom) {
|
|
2727
|
-
box-shadow: ${
|
|
2716
|
+
box-shadow: ${Te}, ${Ee},
|
|
2728
2717
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2729
2718
|
}
|
|
2730
2719
|
|
|
2731
2720
|
&.shadow-right.shadow-bottom:not(.shadow-top):not(.shadow-left) {
|
|
2732
|
-
box-shadow: ${
|
|
2721
|
+
box-shadow: ${Ce}, ${Se},
|
|
2733
2722
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2734
2723
|
}
|
|
2735
2724
|
|
|
2736
2725
|
&.shadow-right.shadow-left:not(.shadow-top):not(.shadow-bottom) {
|
|
2737
|
-
box-shadow: ${
|
|
2726
|
+
box-shadow: ${Ce}, ${Ee},
|
|
2738
2727
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2739
2728
|
}
|
|
2740
2729
|
|
|
2741
2730
|
&.shadow-bottom.shadow-left:not(.shadow-top):not(.shadow-right) {
|
|
2742
|
-
box-shadow: ${
|
|
2731
|
+
box-shadow: ${Se}, ${Ee},
|
|
2743
2732
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2744
2733
|
}
|
|
2745
2734
|
|
|
2746
2735
|
/* Three sides */
|
|
2747
2736
|
&.shadow-top.shadow-right.shadow-bottom:not(.shadow-left) {
|
|
2748
|
-
box-shadow: ${
|
|
2737
|
+
box-shadow: ${Te}, ${Ce}, ${Se},
|
|
2749
2738
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2750
2739
|
}
|
|
2751
2740
|
|
|
2752
2741
|
&.shadow-top.shadow-right.shadow-left:not(.shadow-bottom) {
|
|
2753
|
-
box-shadow: ${
|
|
2742
|
+
box-shadow: ${Te}, ${Ce}, ${Ee},
|
|
2754
2743
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2755
2744
|
}
|
|
2756
2745
|
|
|
2757
2746
|
&.shadow-top.shadow-bottom.shadow-left:not(.shadow-right) {
|
|
2758
|
-
box-shadow: ${
|
|
2747
|
+
box-shadow: ${Te}, ${Se}, ${Ee},
|
|
2759
2748
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2760
2749
|
}
|
|
2761
2750
|
|
|
2762
2751
|
&.shadow-right.shadow-bottom.shadow-left:not(.shadow-top) {
|
|
2763
|
-
box-shadow: ${
|
|
2752
|
+
box-shadow: ${Ce}, ${Se}, ${Ee},
|
|
2764
2753
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2765
2754
|
}
|
|
2766
2755
|
|
|
2767
2756
|
/* All four sides */
|
|
2768
2757
|
&.shadow-top.shadow-right.shadow-bottom.shadow-left {
|
|
2769
|
-
box-shadow: ${
|
|
2758
|
+
box-shadow: ${Te}, ${Ce}, ${Se}, ${Ee},
|
|
2770
2759
|
${({ $isLastPinned: e }) => ie(e || !1)};
|
|
2771
2760
|
}
|
|
2772
2761
|
|
|
@@ -2970,7 +2959,7 @@ const gs = x.div`
|
|
|
2970
2959
|
[icon='check'] {
|
|
2971
2960
|
display: none;
|
|
2972
2961
|
}
|
|
2973
|
-
`, Ro =
|
|
2962
|
+
`, Ro = ke(
|
|
2974
2963
|
({ isSelected: e, ...t }, n) => /* @__PURE__ */ s(Io, { ...t, ref: n, children: /* @__PURE__ */ s(oe, { icon: "check" }) })
|
|
2975
2964
|
), No = x.div`
|
|
2976
2965
|
position: absolute;
|
|
@@ -3007,7 +2996,7 @@ const gs = x.div`
|
|
|
3007
2996
|
width: 100%;
|
|
3008
2997
|
}
|
|
3009
2998
|
`, Po = ({ label: e = "Load more", id: t, onLoadMore: n }) => /* @__PURE__ */ s(Lo, { id: `load-more-${t}`, className: "load-more", children: /* @__PURE__ */ s(
|
|
3010
|
-
|
|
2999
|
+
xe,
|
|
3011
3000
|
{
|
|
3012
3001
|
label: e,
|
|
3013
3002
|
onClick: (o) => {
|
|
@@ -3025,13 +3014,13 @@ const gs = x.div`
|
|
|
3025
3014
|
if (t in e)
|
|
3026
3015
|
return e[t];
|
|
3027
3016
|
}
|
|
3028
|
-
}, _o = (e, t) => e ? e[t]?.display : void 0, $o = (e) => ["folder", "product"].includes(e),
|
|
3017
|
+
}, _o = (e, t) => e ? e[t]?.display : void 0, $o = (e) => ["folder", "product"].includes(e), X = 50, Oo = [
|
|
3029
3018
|
"string",
|
|
3030
3019
|
"integer",
|
|
3031
3020
|
"float",
|
|
3032
3021
|
"boolean",
|
|
3033
3022
|
"datetime"
|
|
3034
|
-
], zo = (e) => Tn(e) || Oo.includes(e.type),
|
|
3023
|
+
], zo = (e) => Tn(e) || Oo.includes(e.type), J = {
|
|
3035
3024
|
thumbnail: "Thumbnail",
|
|
3036
3025
|
status: "Status",
|
|
3037
3026
|
entityType: "Entity type",
|
|
@@ -3052,7 +3041,7 @@ const gs = x.div`
|
|
|
3052
3041
|
updatedAt: "Updated at",
|
|
3053
3042
|
subtasks: "Subtasks",
|
|
3054
3043
|
comments: "Latest comments"
|
|
3055
|
-
}, ae = (e, t = []) => e === "subType" && t.some((n) => ["product", "version"].includes(n)) ? "Product type" :
|
|
3044
|
+
}, ae = (e, t = []) => e === "subType" && t.some((n) => ["product", "version"].includes(n)) ? "Product type" : J[pe(e)] || e, Mo = {
|
|
3056
3045
|
thumbnail: "image",
|
|
3057
3046
|
name: "title",
|
|
3058
3047
|
entityType: "category",
|
|
@@ -3072,83 +3061,83 @@ const gs = x.div`
|
|
|
3072
3061
|
const t = pe(e);
|
|
3073
3062
|
return Mo[t] ?? Ke(t);
|
|
3074
3063
|
}, De = {
|
|
3075
|
-
thumbnail: { enabled: !1, label:
|
|
3064
|
+
thumbnail: { enabled: !1, label: J.thumbnail },
|
|
3076
3065
|
name: { sortKey: "name", enabled: !0, label: "Name" },
|
|
3077
|
-
entityType: { enabled: !1, label:
|
|
3078
|
-
status: { sortKey: "status", sortDescFirst: !1, enabled: !0, label:
|
|
3066
|
+
entityType: { enabled: !1, label: J.entityType },
|
|
3067
|
+
status: { sortKey: "status", sortDescFirst: !1, enabled: !0, label: J.status },
|
|
3079
3068
|
assignees: {
|
|
3080
3069
|
sortKey: "assignees",
|
|
3081
3070
|
enabled: !0,
|
|
3082
|
-
label:
|
|
3071
|
+
label: J.assignees,
|
|
3083
3072
|
scopes: ["task"]
|
|
3084
3073
|
},
|
|
3085
3074
|
folder_entity: {
|
|
3086
3075
|
sortKey: "folderName",
|
|
3087
3076
|
sortDescFirst: !1,
|
|
3088
3077
|
enabled: !0,
|
|
3089
|
-
label:
|
|
3078
|
+
label: J.folder_entity
|
|
3090
3079
|
},
|
|
3091
3080
|
task_entity: {
|
|
3092
3081
|
sortKey: "taskName",
|
|
3093
3082
|
enabled: !1,
|
|
3094
|
-
label:
|
|
3083
|
+
label: J.task_entity,
|
|
3095
3084
|
scopes: ["version", "product"]
|
|
3096
3085
|
},
|
|
3097
3086
|
author: {
|
|
3098
3087
|
sortKey: "author",
|
|
3099
3088
|
enabled: !0,
|
|
3100
|
-
label:
|
|
3089
|
+
label: J.author,
|
|
3101
3090
|
scopes: ["version", "product"]
|
|
3102
3091
|
},
|
|
3103
3092
|
version: {
|
|
3104
3093
|
sortKey: "version",
|
|
3105
3094
|
sortDescFirst: !0,
|
|
3106
3095
|
enabled: !0,
|
|
3107
|
-
label:
|
|
3096
|
+
label: J.version,
|
|
3108
3097
|
scopes: ["version", "product"]
|
|
3109
3098
|
},
|
|
3110
3099
|
version_entity: {
|
|
3111
3100
|
sortKey: "version",
|
|
3112
3101
|
enabled: !0,
|
|
3113
|
-
label:
|
|
3102
|
+
label: J.version_entity,
|
|
3114
3103
|
scopes: ["version", "product"]
|
|
3115
3104
|
},
|
|
3116
3105
|
product: {
|
|
3117
3106
|
sortKey: "product",
|
|
3118
3107
|
enabled: !0,
|
|
3119
|
-
label:
|
|
3108
|
+
label: J.product,
|
|
3120
3109
|
scopes: ["version", "product"]
|
|
3121
3110
|
},
|
|
3122
3111
|
productBaseType: {
|
|
3123
3112
|
sortKey: "productBaseType",
|
|
3124
3113
|
enabled: !0,
|
|
3125
|
-
label:
|
|
3114
|
+
label: J.productBaseType,
|
|
3126
3115
|
scopes: ["version", "product"]
|
|
3127
3116
|
},
|
|
3128
3117
|
taskType: {
|
|
3129
3118
|
sortKey: "taskType",
|
|
3130
3119
|
sortDescFirst: !0,
|
|
3131
3120
|
enabled: !0,
|
|
3132
|
-
label:
|
|
3121
|
+
label: J.taskType,
|
|
3133
3122
|
scopes: ["version", "product"]
|
|
3134
3123
|
},
|
|
3135
3124
|
folderType: {
|
|
3136
3125
|
sortKey: "folderType",
|
|
3137
3126
|
enabled: !0,
|
|
3138
|
-
label:
|
|
3127
|
+
label: J.folderType,
|
|
3139
3128
|
scopes: ["version", "product"]
|
|
3140
3129
|
},
|
|
3141
3130
|
productType: {
|
|
3142
3131
|
sortKey: "productType",
|
|
3143
3132
|
enabled: !0,
|
|
3144
|
-
label:
|
|
3133
|
+
label: J.productType,
|
|
3145
3134
|
scopes: ["version", "product"]
|
|
3146
3135
|
},
|
|
3147
|
-
tags: { sortKey: "tags", enabled: !0, label:
|
|
3148
|
-
createdAt: { sortKey: "createdAt", enabled: !0, label:
|
|
3149
|
-
updatedAt: { sortKey: "updatedAt", enabled: !0, label:
|
|
3150
|
-
subtasks: { enabled: !1, label:
|
|
3151
|
-
comments: { enabled: !1, label:
|
|
3136
|
+
tags: { sortKey: "tags", enabled: !0, label: J.tags },
|
|
3137
|
+
createdAt: { sortKey: "createdAt", enabled: !0, label: J.createdAt },
|
|
3138
|
+
updatedAt: { sortKey: "updatedAt", enabled: !0, label: J.updatedAt },
|
|
3139
|
+
subtasks: { enabled: !1, label: J.subtasks },
|
|
3140
|
+
comments: { enabled: !1, label: J.comments }
|
|
3152
3141
|
}, ys = (e) => e.includes("version") ? "Version / Product" : e.map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" / "), fs = (e, t = []) => Object.entries(De).filter(
|
|
3153
3142
|
([, n]) => n.enabled && (!n.scopes || !e || n.scopes.some((o) => e.includes(o)))
|
|
3154
3143
|
).map(([n, o]) => ({
|
|
@@ -3157,7 +3146,7 @@ const gs = x.div`
|
|
|
3157
3146
|
})), Fo = (e) => De[pe(e)]?.enabled ?? !e.startsWith("link_"), bs = (e, t = !0, n) => {
|
|
3158
3147
|
if (!e) return;
|
|
3159
3148
|
const o = pe(e);
|
|
3160
|
-
if (
|
|
3149
|
+
if (Ie(o).scope === "primary") {
|
|
3161
3150
|
if (o === "name" && !t) return "path";
|
|
3162
3151
|
if (o === "subType") {
|
|
3163
3152
|
if (n === "folder") return "folderType";
|
|
@@ -3226,7 +3215,7 @@ const gs = x.div`
|
|
|
3226
3215
|
id: o,
|
|
3227
3216
|
header: e.label,
|
|
3228
3217
|
accessorFn: a,
|
|
3229
|
-
minSize:
|
|
3218
|
+
minSize: X,
|
|
3230
3219
|
enableSorting: !1,
|
|
3231
3220
|
enableResizing: !0,
|
|
3232
3221
|
enablePinning: !0,
|
|
@@ -3241,7 +3230,7 @@ const gs = x.div`
|
|
|
3241
3230
|
re,
|
|
3242
3231
|
{
|
|
3243
3232
|
rowId: l.id,
|
|
3244
|
-
className:
|
|
3233
|
+
className: V("parent-column", { loading: l.original.isLoading }),
|
|
3245
3234
|
columnId: c.id,
|
|
3246
3235
|
value: y,
|
|
3247
3236
|
attributeData: { type: e.dataType || "string" },
|
|
@@ -3266,7 +3255,7 @@ const gs = x.div`
|
|
|
3266
3255
|
id: n,
|
|
3267
3256
|
header: mn(t, e.data.title || e.name),
|
|
3268
3257
|
accessorFn: (o) => le(o, t, e.name, !0),
|
|
3269
|
-
minSize:
|
|
3258
|
+
minSize: X,
|
|
3270
3259
|
enableSorting: !1,
|
|
3271
3260
|
enableResizing: !0,
|
|
3272
3261
|
enablePinning: !0,
|
|
@@ -3282,7 +3271,7 @@ const gs = x.div`
|
|
|
3282
3271
|
re,
|
|
3283
3272
|
{
|
|
3284
3273
|
rowId: o.id,
|
|
3285
|
-
className:
|
|
3274
|
+
className: V("attrib", { loading: o.original.isLoading }),
|
|
3286
3275
|
columnId: i.id,
|
|
3287
3276
|
value: m,
|
|
3288
3277
|
attributeData: {
|
|
@@ -3316,7 +3305,7 @@ const gs = x.div`
|
|
|
3316
3305
|
if (t.original.group || t.original.metaType || t.original.isLoading) return null;
|
|
3317
3306
|
const i = o.options.meta, a = e === "primary" ? Vo(t.original) : Re(t.original, e);
|
|
3318
3307
|
return !i || !a ? null : /* @__PURE__ */ s(
|
|
3319
|
-
|
|
3308
|
+
Zi,
|
|
3320
3309
|
{
|
|
3321
3310
|
id: He(t.id, n.id),
|
|
3322
3311
|
entityId: a.id,
|
|
@@ -3324,7 +3313,7 @@ const gs = x.div`
|
|
|
3324
3313
|
thumbnailHash: a.thumbnailHash,
|
|
3325
3314
|
icon: a.icon || void 0,
|
|
3326
3315
|
projectName: i.projectName,
|
|
3327
|
-
className:
|
|
3316
|
+
className: V("thumbnail", { loading: t.original.isLoading }),
|
|
3328
3317
|
isPlayable: a.hasReviewables
|
|
3329
3318
|
}
|
|
3330
3319
|
);
|
|
@@ -3345,7 +3334,7 @@ const gs = x.div`
|
|
|
3345
3334
|
includeParents: h = [],
|
|
3346
3335
|
parentColumns: E = []
|
|
3347
3336
|
}) => {
|
|
3348
|
-
const d = [], f = (r) => !c?.some((g) => pe(g) === pe(r)),
|
|
3337
|
+
const d = [], f = (r) => !c?.some((g) => pe(g) === pe(r)), v = (r) => Fo(r) && !m?.some((g) => pe(g) === pe(r));
|
|
3349
3338
|
f(Et) && d.push({
|
|
3350
3339
|
id: Et,
|
|
3351
3340
|
enableResizing: !1,
|
|
@@ -3359,20 +3348,20 @@ const gs = x.div`
|
|
|
3359
3348
|
id: "name",
|
|
3360
3349
|
accessorFn: (r) => le(r, "primary", "name"),
|
|
3361
3350
|
header: u,
|
|
3362
|
-
minSize:
|
|
3351
|
+
minSize: X,
|
|
3363
3352
|
sortingFn: ne(Le),
|
|
3364
|
-
enableSorting: y && y.id !== "folder" ? !1 :
|
|
3353
|
+
enableSorting: y && y.id !== "folder" ? !1 : v("name"),
|
|
3365
3354
|
enableResizing: !0,
|
|
3366
3355
|
enablePinning: !0,
|
|
3367
3356
|
enableHiding: !(y && y.id !== "folder"),
|
|
3368
3357
|
cell: ({ row: r, column: g, table: w }) => {
|
|
3369
|
-
const { value:
|
|
3358
|
+
const { value: N, id: I, type: R } = me(r, g.id), P = w.options.meta, { isEditing: b } = ft(), { rowHeight: M = 40 } = ho(), F = He(r.id, g.id);
|
|
3370
3359
|
if (r.original.metaType)
|
|
3371
3360
|
return /* @__PURE__ */ s(
|
|
3372
3361
|
rt,
|
|
3373
3362
|
{
|
|
3374
3363
|
id: F,
|
|
3375
|
-
className:
|
|
3364
|
+
className: V("large", "readonly", r.original.primary.entityType),
|
|
3376
3365
|
style: {
|
|
3377
3366
|
paddingLeft: `calc(${r.depth * 1}rem + 8px)`,
|
|
3378
3367
|
pointerEvents: "none"
|
|
@@ -3392,15 +3381,15 @@ const gs = x.div`
|
|
|
3392
3381
|
Po,
|
|
3393
3382
|
{
|
|
3394
3383
|
id: r.original.group.value,
|
|
3395
|
-
onLoadMore: (
|
|
3384
|
+
onLoadMore: (W) => P?.loadMoreRows?.(W)
|
|
3396
3385
|
}
|
|
3397
3386
|
);
|
|
3398
3387
|
const te = r.getCanExpand() && !!r.originalSubRows && ($o(r.original.primary.entityType) || !!r.original.group);
|
|
3399
|
-
return /* @__PURE__ */
|
|
3388
|
+
return /* @__PURE__ */ z(
|
|
3400
3389
|
rt,
|
|
3401
3390
|
{
|
|
3402
3391
|
id: F,
|
|
3403
|
-
className:
|
|
3392
|
+
className: V(
|
|
3404
3393
|
"large",
|
|
3405
3394
|
r.original.group ? "group" : r.original.primary.entityType,
|
|
3406
3395
|
{
|
|
@@ -3442,13 +3431,13 @@ const gs = x.div`
|
|
|
3442
3431
|
columnDisplayConfig: _o(P?.columnsConfig, "name")
|
|
3443
3432
|
}
|
|
3444
3433
|
),
|
|
3445
|
-
!r.original.group &&
|
|
3434
|
+
!r.original.group && b(F) && /* @__PURE__ */ s(
|
|
3446
3435
|
re,
|
|
3447
3436
|
{
|
|
3448
3437
|
rowId: I,
|
|
3449
|
-
className:
|
|
3438
|
+
className: V("name", { loading: r.original.isLoading }),
|
|
3450
3439
|
columnId: g.id,
|
|
3451
|
-
value:
|
|
3440
|
+
value: N,
|
|
3452
3441
|
valueData: {
|
|
3453
3442
|
name: r.original.primary.name,
|
|
3454
3443
|
label: r.original.primary.label,
|
|
@@ -3470,7 +3459,7 @@ const gs = x.div`
|
|
|
3470
3459
|
}), f("status") && d.push({
|
|
3471
3460
|
id: "status",
|
|
3472
3461
|
accessorFn: (r) => le(r, "primary", "status"),
|
|
3473
|
-
minSize:
|
|
3462
|
+
minSize: X,
|
|
3474
3463
|
header: ae("status"),
|
|
3475
3464
|
sortingFn: ne(
|
|
3476
3465
|
ge(
|
|
@@ -3478,27 +3467,27 @@ const gs = x.div`
|
|
|
3478
3467
|
)
|
|
3479
3468
|
),
|
|
3480
3469
|
sortDescFirst: De.status.sortDescFirst,
|
|
3481
|
-
enableSorting:
|
|
3470
|
+
enableSorting: v("status"),
|
|
3482
3471
|
enableResizing: !0,
|
|
3483
3472
|
enablePinning: !0,
|
|
3484
3473
|
enableHiding: !0,
|
|
3485
3474
|
cell: ({ row: r, column: g, table: w }) => {
|
|
3486
|
-
const { value:
|
|
3475
|
+
const { value: N, id: I, type: R } = me(r, g.id), P = w.options.meta;
|
|
3487
3476
|
return ["group", ue].includes(R) || r.original.metaType ? null : /* @__PURE__ */ s(
|
|
3488
3477
|
re,
|
|
3489
3478
|
{
|
|
3490
3479
|
rowId: I,
|
|
3491
|
-
className:
|
|
3480
|
+
className: V("status", { loading: r.original.isLoading }),
|
|
3492
3481
|
columnId: g.id,
|
|
3493
|
-
value:
|
|
3482
|
+
value: N,
|
|
3494
3483
|
attributeData: { type: "string" },
|
|
3495
|
-
options: P?.options?.status.filter((
|
|
3484
|
+
options: P?.options?.status.filter((b) => b.scope?.includes(R)),
|
|
3496
3485
|
isCollapsed: !!r.original.childOnlyMatch,
|
|
3497
|
-
onChange: (
|
|
3498
|
-
{ field: g.id, value:
|
|
3486
|
+
onChange: (b) => P?.updateEntities?.(
|
|
3487
|
+
{ field: g.id, value: b, type: R, rowId: I },
|
|
3499
3488
|
{ selection: P?.selection }
|
|
3500
3489
|
),
|
|
3501
|
-
isReadOnly: P?.readOnly?.includes(g.id) || Me(R) ||
|
|
3490
|
+
isReadOnly: P?.readOnly?.includes(g.id) || Me(R) || Ie(g.id).scope !== "primary",
|
|
3502
3491
|
pt: {
|
|
3503
3492
|
enum: {
|
|
3504
3493
|
pt: {
|
|
@@ -3528,19 +3517,19 @@ const gs = x.div`
|
|
|
3528
3517
|
enableHiding: !0,
|
|
3529
3518
|
sortingFn: ne(ge(Ne.alphanumeric)),
|
|
3530
3519
|
cell: ({ row: r, column: g, table: w }) => {
|
|
3531
|
-
const { value:
|
|
3520
|
+
const { value: N, id: I, type: R } = me(r, g.id);
|
|
3532
3521
|
if (["group", ue].includes(R) || r.original.metaType) return null;
|
|
3533
3522
|
const P = He(r.id, g.id);
|
|
3534
|
-
return /* @__PURE__ */
|
|
3523
|
+
return /* @__PURE__ */ z(
|
|
3535
3524
|
rt,
|
|
3536
3525
|
{
|
|
3537
3526
|
id: P,
|
|
3538
|
-
className:
|
|
3527
|
+
className: V("entityType", Pe, R, { loading: r.original.isLoading }),
|
|
3539
3528
|
tabIndex: 0,
|
|
3540
3529
|
children: [
|
|
3541
3530
|
/* @__PURE__ */ s(oe, { icon: be(R) }),
|
|
3542
3531
|
" ",
|
|
3543
|
-
_e(
|
|
3532
|
+
_e(N)
|
|
3544
3533
|
]
|
|
3545
3534
|
}
|
|
3546
3535
|
);
|
|
@@ -3549,8 +3538,8 @@ const gs = x.div`
|
|
|
3549
3538
|
id: "subType",
|
|
3550
3539
|
accessorFn: Wo,
|
|
3551
3540
|
header: ae("subType", e),
|
|
3552
|
-
minSize:
|
|
3553
|
-
enableSorting:
|
|
3541
|
+
minSize: X,
|
|
3542
|
+
enableSorting: v("subType"),
|
|
3554
3543
|
enableResizing: !0,
|
|
3555
3544
|
enablePinning: !0,
|
|
3556
3545
|
enableHiding: !0,
|
|
@@ -3564,24 +3553,24 @@ const gs = x.div`
|
|
|
3564
3553
|
)
|
|
3565
3554
|
),
|
|
3566
3555
|
cell: ({ row: r, column: g, table: w }) => {
|
|
3567
|
-
const { value:
|
|
3556
|
+
const { value: N, id: I, type: R } = me(r, g.id);
|
|
3568
3557
|
if (["group", ue].includes(R) || r.original.metaType) return null;
|
|
3569
|
-
const P = R === "product" || R === "version",
|
|
3558
|
+
const P = R === "product" || R === "version", b = R === "folder" ? "folderType" : P ? "productType" : "taskType", M = w.options.meta, F = R === "folder" && r.original.primary.entityType === "folder" && r.original.primary.hasVersions;
|
|
3570
3559
|
return /* @__PURE__ */ s(
|
|
3571
3560
|
re,
|
|
3572
3561
|
{
|
|
3573
3562
|
rowId: I,
|
|
3574
|
-
className:
|
|
3563
|
+
className: V("subType", { loading: r.original.isLoading }),
|
|
3575
3564
|
columnId: g.id,
|
|
3576
|
-
value:
|
|
3565
|
+
value: N,
|
|
3577
3566
|
attributeData: { type: "string" },
|
|
3578
3567
|
options: R === "folder" ? M?.options?.folderType : R === "task" ? M?.options?.taskType : P ? M?.options?.productType : [],
|
|
3579
3568
|
isCollapsed: !!r.original.childOnlyMatch,
|
|
3580
3569
|
onChange: (te) => M?.updateEntities?.(
|
|
3581
|
-
{ field:
|
|
3570
|
+
{ field: b, value: te, type: R, rowId: r.id },
|
|
3582
3571
|
{ selection: M?.selection }
|
|
3583
3572
|
),
|
|
3584
|
-
isReadOnly: P || M?.readOnly?.includes(g.id) || M?.readOnly?.includes(
|
|
3573
|
+
isReadOnly: P || M?.readOnly?.includes(g.id) || M?.readOnly?.includes(b) || F || Ie(g.id).scope !== "primary",
|
|
3585
3574
|
tooltip: F ? "Folder type cannot be edited when versions exist within the folder" : void 0,
|
|
3586
3575
|
pt: {
|
|
3587
3576
|
enum: {
|
|
@@ -3599,19 +3588,19 @@ const gs = x.div`
|
|
|
3599
3588
|
id: "assignees",
|
|
3600
3589
|
accessorFn: (r) => le(r, "primary", "assignees"),
|
|
3601
3590
|
header: ae("assignees"),
|
|
3602
|
-
minSize:
|
|
3603
|
-
enableSorting:
|
|
3591
|
+
minSize: X,
|
|
3592
|
+
enableSorting: v("assignees"),
|
|
3604
3593
|
enableResizing: !0,
|
|
3605
3594
|
enablePinning: !0,
|
|
3606
3595
|
enableHiding: !0,
|
|
3607
3596
|
sortingFn: ne(ge(zt)),
|
|
3608
3597
|
cell: ({ row: r, column: g, table: w }) => {
|
|
3609
|
-
const
|
|
3598
|
+
const N = w.options.meta, { value: I, id: R, type: P } = me(r, g.id);
|
|
3610
3599
|
return ["group", ue].includes(P) || r.original.metaType ? null : P === "folder" ? /* @__PURE__ */ s(
|
|
3611
3600
|
re,
|
|
3612
3601
|
{
|
|
3613
3602
|
rowId: R,
|
|
3614
|
-
className:
|
|
3603
|
+
className: V("assignees", { loading: r.original.isLoading }),
|
|
3615
3604
|
columnId: g.id,
|
|
3616
3605
|
value: "",
|
|
3617
3606
|
isPlaceholder: !0
|
|
@@ -3620,17 +3609,17 @@ const gs = x.div`
|
|
|
3620
3609
|
re,
|
|
3621
3610
|
{
|
|
3622
3611
|
rowId: R,
|
|
3623
|
-
className:
|
|
3612
|
+
className: V("assignees", { loading: r.original.isLoading }),
|
|
3624
3613
|
columnId: g.id,
|
|
3625
3614
|
value: I,
|
|
3626
3615
|
attributeData: { type: "list_of_strings" },
|
|
3627
|
-
options:
|
|
3616
|
+
options: N?.options?.assignee,
|
|
3628
3617
|
isCollapsed: !!r.original.childOnlyMatch,
|
|
3629
|
-
onChange: (
|
|
3630
|
-
{ field: g.id, value:
|
|
3631
|
-
{ selection:
|
|
3618
|
+
onChange: (b) => N?.updateEntities?.(
|
|
3619
|
+
{ field: g.id, value: b, type: P, rowId: r.id },
|
|
3620
|
+
{ selection: N?.selection }
|
|
3632
3621
|
),
|
|
3633
|
-
isReadOnly:
|
|
3622
|
+
isReadOnly: N?.readOnly?.includes(g.id) || Me(P) || Ie(g.id).scope !== "primary",
|
|
3634
3623
|
pt: {
|
|
3635
3624
|
enum: {
|
|
3636
3625
|
multiSelectClose: I?.length === 0,
|
|
@@ -3647,25 +3636,25 @@ const gs = x.div`
|
|
|
3647
3636
|
id: se.folder,
|
|
3648
3637
|
accessorFn: (r) => io(r),
|
|
3649
3638
|
header: ae(se.folder),
|
|
3650
|
-
minSize:
|
|
3639
|
+
minSize: X,
|
|
3651
3640
|
sortDescFirst: De.folder_entity.sortDescFirst,
|
|
3652
3641
|
sortingFn: ne(Le),
|
|
3653
|
-
enableSorting:
|
|
3642
|
+
enableSorting: v(se.folder),
|
|
3654
3643
|
enableResizing: !0,
|
|
3655
3644
|
enablePinning: !0,
|
|
3656
3645
|
enableHiding: !0,
|
|
3657
3646
|
cell: ({ row: r, column: g, table: w }) => {
|
|
3658
|
-
const
|
|
3659
|
-
return
|
|
3647
|
+
const N = on(r.original);
|
|
3648
|
+
return N ? /* @__PURE__ */ s(
|
|
3660
3649
|
ot,
|
|
3661
3650
|
{
|
|
3662
|
-
rowId:
|
|
3651
|
+
rowId: N.id,
|
|
3663
3652
|
className: "folder",
|
|
3664
3653
|
columnId: g.id,
|
|
3665
|
-
value:
|
|
3666
|
-
entityId:
|
|
3654
|
+
value: N.label || N.name,
|
|
3655
|
+
entityId: N.id,
|
|
3667
3656
|
entityType: "folder",
|
|
3668
|
-
subType:
|
|
3657
|
+
subType: N.entityType === "folder" ? N.subType : void 0,
|
|
3669
3658
|
isLoading: r.original.isLoading
|
|
3670
3659
|
}
|
|
3671
3660
|
) : null;
|
|
@@ -3674,8 +3663,8 @@ const gs = x.div`
|
|
|
3674
3663
|
id: se.task,
|
|
3675
3664
|
accessorFn: (r) => r.parents?.task?.label || r.parents?.task?.name,
|
|
3676
3665
|
header: ae(se.task),
|
|
3677
|
-
minSize:
|
|
3678
|
-
enableSorting:
|
|
3666
|
+
minSize: X,
|
|
3667
|
+
enableSorting: v(se.task),
|
|
3679
3668
|
enableResizing: !0,
|
|
3680
3669
|
enablePinning: !0,
|
|
3681
3670
|
enableHiding: !0,
|
|
@@ -3700,24 +3689,24 @@ const gs = x.div`
|
|
|
3700
3689
|
id: "author",
|
|
3701
3690
|
accessorFn: (r) => ye(r)?.author,
|
|
3702
3691
|
header: ae("author"),
|
|
3703
|
-
minSize:
|
|
3704
|
-
enableSorting:
|
|
3692
|
+
minSize: X,
|
|
3693
|
+
enableSorting: v("author"),
|
|
3705
3694
|
enableResizing: !0,
|
|
3706
3695
|
enablePinning: !0,
|
|
3707
3696
|
enableHiding: !0,
|
|
3708
3697
|
sortingFn: ne(Le),
|
|
3709
3698
|
cell: ({ row: r, column: g, table: w }) => {
|
|
3710
3699
|
if (r.original.group || r.original.metaType) return null;
|
|
3711
|
-
const
|
|
3700
|
+
const N = w.options.meta, I = ye(r.original), R = I?.author || "", P = I?.entityType || r.original.primary.entityType;
|
|
3712
3701
|
return ["group", ue].includes(P) ? null : /* @__PURE__ */ s(
|
|
3713
3702
|
re,
|
|
3714
3703
|
{
|
|
3715
3704
|
rowId: r.id,
|
|
3716
|
-
className:
|
|
3705
|
+
className: V("author", { loading: r.original.isLoading }),
|
|
3717
3706
|
columnId: g.id,
|
|
3718
3707
|
value: [R],
|
|
3719
3708
|
attributeData: { type: "list_of_strings" },
|
|
3720
|
-
options:
|
|
3709
|
+
options: N?.options?.assignee,
|
|
3721
3710
|
isReadOnly: !0,
|
|
3722
3711
|
isInherited: P === "product"
|
|
3723
3712
|
}
|
|
@@ -3727,17 +3716,17 @@ const gs = x.div`
|
|
|
3727
3716
|
id: se.version,
|
|
3728
3717
|
accessorFn: (r) => ye(r)?.versionName || ye(r)?.name,
|
|
3729
3718
|
header: ae(se.version),
|
|
3730
|
-
minSize:
|
|
3731
|
-
enableSorting:
|
|
3719
|
+
minSize: X,
|
|
3720
|
+
enableSorting: v(se.version),
|
|
3732
3721
|
enableResizing: !0,
|
|
3733
3722
|
enablePinning: !0,
|
|
3734
3723
|
enableHiding: !0,
|
|
3735
3724
|
sortingFn: ne(Le),
|
|
3736
3725
|
cell: ({ row: r, column: g }) => {
|
|
3737
3726
|
if (r.original.group || r.original.metaType) return null;
|
|
3738
|
-
const w = ye(r.original),
|
|
3727
|
+
const w = ye(r.original), N = w?.versionName || w?.name || "", I = w?.entityType || r.original.primary.entityType;
|
|
3739
3728
|
if (["group", ue].includes(I)) return null;
|
|
3740
|
-
let R =
|
|
3729
|
+
let R = N;
|
|
3741
3730
|
return r.original.primary.entityType === "product" && (R = w ? `${w.versionName || w.name} (${r.original.primary.versionsCount || 0} versions)` : ""), /* @__PURE__ */ s(
|
|
3742
3731
|
ot,
|
|
3743
3732
|
{
|
|
@@ -3755,23 +3744,23 @@ const gs = x.div`
|
|
|
3755
3744
|
id: "version",
|
|
3756
3745
|
accessorFn: (r) => ye(r)?.version,
|
|
3757
3746
|
header: ae("version"),
|
|
3758
|
-
minSize:
|
|
3747
|
+
minSize: X,
|
|
3759
3748
|
sortDescFirst: De.version.sortDescFirst,
|
|
3760
|
-
enableSorting:
|
|
3749
|
+
enableSorting: v("version"),
|
|
3761
3750
|
enableResizing: !0,
|
|
3762
3751
|
enablePinning: !0,
|
|
3763
3752
|
enableHiding: !0,
|
|
3764
3753
|
sortingFn: ne(ge(Ne.basic)),
|
|
3765
3754
|
cell: ({ row: r, column: g }) => {
|
|
3766
3755
|
if (r.original.group || r.original.metaType) return null;
|
|
3767
|
-
const w = ye(r.original),
|
|
3756
|
+
const w = ye(r.original), N = w?.version ?? 0, I = w?.entityType || r.original.primary.entityType;
|
|
3768
3757
|
return ["group", ue].includes(I) ? null : /* @__PURE__ */ s(
|
|
3769
3758
|
re,
|
|
3770
3759
|
{
|
|
3771
3760
|
rowId: r.id,
|
|
3772
|
-
className:
|
|
3761
|
+
className: V("version", { loading: r.original.isLoading }),
|
|
3773
3762
|
columnId: g.id,
|
|
3774
|
-
value:
|
|
3763
|
+
value: N,
|
|
3775
3764
|
attributeData: { type: "integer" },
|
|
3776
3765
|
isReadOnly: !0
|
|
3777
3766
|
}
|
|
@@ -3781,22 +3770,22 @@ const gs = x.div`
|
|
|
3781
3770
|
id: "product",
|
|
3782
3771
|
accessorFn: (r) => Fe(r)?.label || Fe(r)?.name,
|
|
3783
3772
|
header: ae("product"),
|
|
3784
|
-
minSize:
|
|
3785
|
-
enableSorting:
|
|
3773
|
+
minSize: X,
|
|
3774
|
+
enableSorting: v("product"),
|
|
3786
3775
|
enableResizing: !0,
|
|
3787
3776
|
enablePinning: !0,
|
|
3788
3777
|
enableHiding: !0,
|
|
3789
3778
|
sortingFn: ne(Le),
|
|
3790
3779
|
cell: ({ row: r, column: g }) => {
|
|
3791
3780
|
if (r.original.group || r.original.metaType) return null;
|
|
3792
|
-
const w = Fe(r.original),
|
|
3781
|
+
const w = Fe(r.original), N = w?.label || w?.name || "", I = w?.entityType || r.original.primary.entityType;
|
|
3793
3782
|
return ["group", ue].includes(I) ? null : /* @__PURE__ */ s(
|
|
3794
3783
|
re,
|
|
3795
3784
|
{
|
|
3796
3785
|
rowId: r.id,
|
|
3797
|
-
className:
|
|
3786
|
+
className: V("product", { loading: r.original.isLoading }),
|
|
3798
3787
|
columnId: g.id,
|
|
3799
|
-
value:
|
|
3788
|
+
value: N,
|
|
3800
3789
|
attributeData: { type: "string" },
|
|
3801
3790
|
isReadOnly: !0
|
|
3802
3791
|
}
|
|
@@ -3806,29 +3795,29 @@ const gs = x.div`
|
|
|
3806
3795
|
id: "tags",
|
|
3807
3796
|
accessorFn: (r) => le(r, "primary", "tags"),
|
|
3808
3797
|
header: ae("tags"),
|
|
3809
|
-
minSize:
|
|
3810
|
-
enableSorting:
|
|
3798
|
+
minSize: X,
|
|
3799
|
+
enableSorting: v("tags"),
|
|
3811
3800
|
enableResizing: !0,
|
|
3812
3801
|
enablePinning: !0,
|
|
3813
3802
|
enableHiding: !0,
|
|
3814
3803
|
sortingFn: ne(ge(zt)),
|
|
3815
3804
|
cell: ({ row: r, column: g, table: w }) => {
|
|
3816
|
-
const
|
|
3805
|
+
const N = w.options.meta, { value: I, id: R, type: P } = me(r, g.id);
|
|
3817
3806
|
return ["group", ue].includes(P) || r.original.metaType ? null : /* @__PURE__ */ s(
|
|
3818
3807
|
re,
|
|
3819
3808
|
{
|
|
3820
3809
|
rowId: R,
|
|
3821
|
-
className:
|
|
3810
|
+
className: V("tags", { loading: r.original.isLoading }),
|
|
3822
3811
|
columnId: g.id,
|
|
3823
3812
|
value: I,
|
|
3824
3813
|
attributeData: { type: "list_of_strings" },
|
|
3825
|
-
options:
|
|
3814
|
+
options: N?.options?.tag,
|
|
3826
3815
|
isCollapsed: !!r.original.childOnlyMatch,
|
|
3827
|
-
onChange: (
|
|
3828
|
-
{ field: g.id, value:
|
|
3829
|
-
{ selection:
|
|
3816
|
+
onChange: (b) => N?.updateEntities?.(
|
|
3817
|
+
{ field: g.id, value: b, type: P, rowId: r.id },
|
|
3818
|
+
{ selection: N?.selection }
|
|
3830
3819
|
),
|
|
3831
|
-
isReadOnly:
|
|
3820
|
+
isReadOnly: N?.readOnly?.includes(g.id) || Me(P) || Ie(g.id).scope !== "primary",
|
|
3832
3821
|
enableCustomValues: !0
|
|
3833
3822
|
}
|
|
3834
3823
|
);
|
|
@@ -3837,19 +3826,19 @@ const gs = x.div`
|
|
|
3837
3826
|
id: "createdAt",
|
|
3838
3827
|
accessorFn: (r) => le(r, "primary", "createdAt"),
|
|
3839
3828
|
header: ae("createdAt"),
|
|
3840
|
-
minSize:
|
|
3841
|
-
enableSorting:
|
|
3829
|
+
minSize: X,
|
|
3830
|
+
enableSorting: v("createdAt"),
|
|
3842
3831
|
enableResizing: !0,
|
|
3843
3832
|
enablePinning: !0,
|
|
3844
3833
|
enableHiding: !0,
|
|
3845
3834
|
sortingFn: ne(ge(Ne.datetime)),
|
|
3846
3835
|
cell: ({ row: r, column: g }) => {
|
|
3847
|
-
const { value: w, id:
|
|
3836
|
+
const { value: w, id: N, type: I } = me(r, g.id);
|
|
3848
3837
|
return ["group", ue].includes(I) || r.original.metaType ? null : /* @__PURE__ */ s(
|
|
3849
3838
|
re,
|
|
3850
3839
|
{
|
|
3851
|
-
rowId:
|
|
3852
|
-
className:
|
|
3840
|
+
rowId: N,
|
|
3841
|
+
className: V("createdAt", { loading: r.original.isLoading }),
|
|
3853
3842
|
columnId: g.id,
|
|
3854
3843
|
value: w,
|
|
3855
3844
|
attributeData: { type: "datetime" },
|
|
@@ -3863,19 +3852,19 @@ const gs = x.div`
|
|
|
3863
3852
|
id: "updatedAt",
|
|
3864
3853
|
accessorFn: (r) => le(r, "primary", "updatedAt"),
|
|
3865
3854
|
header: ae("updatedAt"),
|
|
3866
|
-
minSize:
|
|
3867
|
-
enableSorting:
|
|
3855
|
+
minSize: X,
|
|
3856
|
+
enableSorting: v("updatedAt"),
|
|
3868
3857
|
enableResizing: !0,
|
|
3869
3858
|
enablePinning: !0,
|
|
3870
3859
|
enableHiding: !0,
|
|
3871
3860
|
sortingFn: ne(ge(Ne.datetime)),
|
|
3872
3861
|
cell: ({ row: r, column: g }) => {
|
|
3873
|
-
const { value: w, id:
|
|
3862
|
+
const { value: w, id: N, type: I } = me(r, g.id);
|
|
3874
3863
|
return ["group", ue].includes(I) || r.original.metaType ? null : /* @__PURE__ */ s(
|
|
3875
3864
|
re,
|
|
3876
3865
|
{
|
|
3877
|
-
rowId:
|
|
3878
|
-
className:
|
|
3866
|
+
rowId: N,
|
|
3867
|
+
className: V("updatedAt", { loading: r.original.isLoading }),
|
|
3879
3868
|
columnId: g.id,
|
|
3880
3869
|
value: w,
|
|
3881
3870
|
attributeData: { type: "datetime" },
|
|
@@ -3889,16 +3878,16 @@ const gs = x.div`
|
|
|
3889
3878
|
id: "subtasks",
|
|
3890
3879
|
accessorFn: (r) => r.primary.entityType === "task" ? r.primary.subtasks : void 0,
|
|
3891
3880
|
header: ae("subtasks"),
|
|
3892
|
-
minSize:
|
|
3881
|
+
minSize: X,
|
|
3893
3882
|
enableSorting: !1,
|
|
3894
3883
|
enableResizing: !0,
|
|
3895
3884
|
enablePinning: !0,
|
|
3896
3885
|
enableHiding: !0,
|
|
3897
3886
|
cell: ({ row: r, column: g, table: w }) => {
|
|
3898
|
-
const
|
|
3887
|
+
const N = w.options.meta, { value: I, id: R, type: P } = me(r, g.id);
|
|
3899
3888
|
if (["group", ue].includes(P) || r.original.metaType) return null;
|
|
3900
3889
|
if (P !== "task") return /* @__PURE__ */ s("div", { className: "readonly" });
|
|
3901
|
-
const
|
|
3890
|
+
const b = {
|
|
3902
3891
|
taskId: uo(r.id) || r.original.primary.id,
|
|
3903
3892
|
taskName: r.original.primary.name,
|
|
3904
3893
|
folderId: r.original.parents?.folder?.id ?? void 0,
|
|
@@ -3908,12 +3897,12 @@ const gs = x.div`
|
|
|
3908
3897
|
re,
|
|
3909
3898
|
{
|
|
3910
3899
|
rowId: R,
|
|
3911
|
-
className:
|
|
3900
|
+
className: V("subtasks", { loading: r.original.isLoading }),
|
|
3912
3901
|
columnId: g.id,
|
|
3913
|
-
value:
|
|
3914
|
-
valueData:
|
|
3902
|
+
value: b.subtasks?.map((M) => M.label || M.name) || [],
|
|
3903
|
+
valueData: b,
|
|
3915
3904
|
attributeData: { type: "subtasks" },
|
|
3916
|
-
isReadOnly:
|
|
3905
|
+
isReadOnly: N?.readOnly?.includes(g.id)
|
|
3917
3906
|
}
|
|
3918
3907
|
);
|
|
3919
3908
|
}
|
|
@@ -3921,19 +3910,19 @@ const gs = x.div`
|
|
|
3921
3910
|
id: "comments",
|
|
3922
3911
|
accessorFn: (r) => r.group ? void 0 : r.primary.entityType === "product" ? r.parents?.version?.latestComments || [] : r.primary.latestComments || [],
|
|
3923
3912
|
header: ae("comments"),
|
|
3924
|
-
minSize:
|
|
3913
|
+
minSize: X,
|
|
3925
3914
|
enableSorting: !1,
|
|
3926
3915
|
enableResizing: !0,
|
|
3927
3916
|
enablePinning: !0,
|
|
3928
3917
|
enableHiding: !0,
|
|
3929
3918
|
cell: ({ row: r, column: g }) => {
|
|
3930
3919
|
if (r.original.group || r.original.metaType) return null;
|
|
3931
|
-
const w = r.original.primary.entityType === "product",
|
|
3920
|
+
const w = r.original.primary.entityType === "product", N = w && r.original.parents?.version || r.original.primary, I = w ? r.original.parents?.version?.latestComments || [] : r.original.primary.latestComments || [], R = N.entityType;
|
|
3932
3921
|
return ["group", ue].includes(R) ? null : !r.original.isLoading && !["task", "version", "product", "folder"].includes(R) ? /* @__PURE__ */ s("div", { className: "readonly" }) : /* @__PURE__ */ s(
|
|
3933
3922
|
re,
|
|
3934
3923
|
{
|
|
3935
3924
|
rowId: r.id,
|
|
3936
|
-
className:
|
|
3925
|
+
className: V("comments", { loading: r.original.isLoading }),
|
|
3937
3926
|
columnId: g.id,
|
|
3938
3927
|
value: "",
|
|
3939
3928
|
valueData: I || [],
|
|
@@ -3952,24 +3941,24 @@ const gs = x.div`
|
|
|
3952
3941
|
id: "attrib_" + r.name,
|
|
3953
3942
|
accessorFn: (w) => Ot(w, r),
|
|
3954
3943
|
header: r.data.title || r.name,
|
|
3955
|
-
minSize:
|
|
3944
|
+
minSize: X,
|
|
3956
3945
|
filterFn: "fuzzy",
|
|
3957
3946
|
sortingFn: ne(
|
|
3958
|
-
ge((w,
|
|
3947
|
+
ge((w, N, I) => je(w, N, I, r.data))
|
|
3959
3948
|
),
|
|
3960
|
-
enableSorting: !Uo(r) &&
|
|
3949
|
+
enableSorting: !Uo(r) && v(r.name) && v("attrib"),
|
|
3961
3950
|
enableResizing: !0,
|
|
3962
3951
|
enablePinning: !0,
|
|
3963
3952
|
enableHiding: !0,
|
|
3964
|
-
cell: ({ row: w, column:
|
|
3953
|
+
cell: ({ row: w, column: N, table: I }) => {
|
|
3965
3954
|
if (w.original.group || w.original.metaType) return null;
|
|
3966
|
-
const R = I.options.meta, P =
|
|
3967
|
-
return ["group", ue].includes(
|
|
3955
|
+
const R = I.options.meta, P = N.id.replace("attrib_", ""), { type: b } = me(w, P, "attrib"), M = pn(w.original, r), F = Ot(w.original, r), te = M.id, W = M.entityType, ee = !M.ownAttrib?.includes(P);
|
|
3956
|
+
return ["group", ue].includes(W) || w.original.metaType || !r.scope?.includes(b) && F == null ? null : /* @__PURE__ */ s(
|
|
3968
3957
|
re,
|
|
3969
3958
|
{
|
|
3970
3959
|
rowId: w.id,
|
|
3971
|
-
className:
|
|
3972
|
-
columnId:
|
|
3960
|
+
className: V("attrib", { loading: w.original.isLoading }),
|
|
3961
|
+
columnId: N.id,
|
|
3973
3962
|
value: F,
|
|
3974
3963
|
attributeData: {
|
|
3975
3964
|
type: r.data.type || "string",
|
|
@@ -3982,7 +3971,7 @@ const gs = x.div`
|
|
|
3982
3971
|
pt: {
|
|
3983
3972
|
enum: { error: kn(r.enumError) },
|
|
3984
3973
|
// markdown attributes can mention the users, tasks and versions of the entity
|
|
3985
|
-
text: { mentionEntity: { entityId: te, entityType:
|
|
3974
|
+
text: { mentionEntity: { entityId: te, entityType: W } }
|
|
3986
3975
|
},
|
|
3987
3976
|
midnightExclusiveFields: w.original.midnightExclusiveFields,
|
|
3988
3977
|
isCollapsed: !!w.original.childOnlyMatch,
|
|
@@ -3992,13 +3981,13 @@ const gs = x.div`
|
|
|
3992
3981
|
r.readOnly || // check if there is any other reason the cell should be read only
|
|
3993
3982
|
R?.readOnly?.some(
|
|
3994
3983
|
(H) => H === P || H === "attrib" && r.builtin
|
|
3995
|
-
) ||
|
|
3984
|
+
) || Ie(N.id).scope !== "primary"
|
|
3996
3985
|
),
|
|
3997
3986
|
onChange: (H) => R?.updateEntities?.(
|
|
3998
3987
|
{
|
|
3999
3988
|
field: P,
|
|
4000
3989
|
value: H,
|
|
4001
|
-
type:
|
|
3990
|
+
type: W,
|
|
4002
3991
|
id: te,
|
|
4003
3992
|
isAttrib: !0,
|
|
4004
3993
|
rowId: w.id,
|
|
@@ -4011,13 +4000,13 @@ const gs = x.div`
|
|
|
4011
4000
|
}
|
|
4012
4001
|
);
|
|
4013
4002
|
}
|
|
4014
|
-
})),
|
|
4003
|
+
})), S = (r) => n.filter((g) => !(!f(g.linkType) || !f("link") || !e.includes(g.inputType) && !e.includes(g.outputType))).flatMap(
|
|
4015
4004
|
(g) => ["in", "out"].map((w) => {
|
|
4016
|
-
const
|
|
4005
|
+
const N = Go(g, w);
|
|
4017
4006
|
return {
|
|
4018
|
-
id: r === "primary" ?
|
|
4007
|
+
id: r === "primary" ? N : Ve(r, N),
|
|
4019
4008
|
accessorFn: (R) => R.group ? void 0 : Re(R, r)?.links?.[Ye(g, w)],
|
|
4020
|
-
header: () => /* @__PURE__ */
|
|
4009
|
+
header: () => /* @__PURE__ */ z(Eo, { children: [
|
|
4021
4010
|
r === "primary" ? "" : `${_e(r)} `,
|
|
4022
4011
|
Ko(g, w),
|
|
4023
4012
|
" ",
|
|
@@ -4028,20 +4017,20 @@ const gs = x.div`
|
|
|
4028
4017
|
}
|
|
4029
4018
|
)
|
|
4030
4019
|
] }),
|
|
4031
|
-
minSize:
|
|
4020
|
+
minSize: X,
|
|
4032
4021
|
enableSorting: !1,
|
|
4033
4022
|
enableResizing: !0,
|
|
4034
4023
|
enablePinning: !0,
|
|
4035
4024
|
enableHiding: !0,
|
|
4036
|
-
cell: ({ row: R, column: P, table:
|
|
4025
|
+
cell: ({ row: R, column: P, table: b }) => {
|
|
4037
4026
|
if (R.original.group || R.original.metaType) return null;
|
|
4038
|
-
const { id: M, value: F } = me(R, P.id, "links"), te = F?.map((H) => H.label),
|
|
4039
|
-
if (!
|
|
4040
|
-
const ee = r === "primary" && !!
|
|
4027
|
+
const { id: M, value: F } = me(R, P.id, "links"), te = F?.map((H) => H.label), W = Re(R.original, r);
|
|
4028
|
+
if (!W) return null;
|
|
4029
|
+
const ee = r === "primary" && !!b.options.meta?.loadingLinksEntityIds?.has(W.id), Y = {
|
|
4041
4030
|
links: F,
|
|
4042
4031
|
direction: w,
|
|
4043
|
-
entityId:
|
|
4044
|
-
entityType:
|
|
4032
|
+
entityId: W.id,
|
|
4033
|
+
entityType: W.entityType,
|
|
4045
4034
|
link: {
|
|
4046
4035
|
label: g.linkType,
|
|
4047
4036
|
linkType: g.name,
|
|
@@ -4052,7 +4041,7 @@ const gs = x.div`
|
|
|
4052
4041
|
re,
|
|
4053
4042
|
{
|
|
4054
4043
|
rowId: M,
|
|
4055
|
-
className:
|
|
4044
|
+
className: V("links", { loading: R.original.isLoading }),
|
|
4056
4045
|
columnId: P.id,
|
|
4057
4046
|
value: te,
|
|
4058
4047
|
valueData: Y,
|
|
@@ -4064,7 +4053,7 @@ const gs = x.div`
|
|
|
4064
4053
|
}
|
|
4065
4054
|
};
|
|
4066
4055
|
})
|
|
4067
|
-
), L = o ?
|
|
4056
|
+
), L = o ? S("primary") : [], k = /* @__PURE__ */ new Set([
|
|
4068
4057
|
"status",
|
|
4069
4058
|
"assignees",
|
|
4070
4059
|
"author",
|
|
@@ -4072,28 +4061,28 @@ const gs = x.div`
|
|
|
4072
4061
|
"tags",
|
|
4073
4062
|
"createdAt",
|
|
4074
4063
|
"updatedAt"
|
|
4075
|
-
]),
|
|
4064
|
+
]), T = new Set(
|
|
4076
4065
|
E.map((r) => `${r.scope}:${r.field}`)
|
|
4077
4066
|
), A = h.flatMap(
|
|
4078
4067
|
(r) => d.filter(
|
|
4079
|
-
(g) => k.has(g.id) && !
|
|
4068
|
+
(g) => k.has(g.id) && !T.has(`${r}:${g.id}`)
|
|
4080
4069
|
).map((g) => jo(g, g.id, r))
|
|
4081
|
-
),
|
|
4070
|
+
), $ = E.filter((r) => h.includes(r.scope)).map(Bo), O = f("thumbnail") ? h.map((r) => Mt(r)) : [], U = o ? h.flatMap((r) => S(r)) : [], D = new Set(
|
|
4082
4071
|
h.filter((r) => {
|
|
4083
4072
|
const g = E.filter((w) => w.scope === r);
|
|
4084
4073
|
return g.length === 0 || g.some((w) => w.includeAttributes !== !1);
|
|
4085
4074
|
})
|
|
4086
|
-
),
|
|
4075
|
+
), _ = h.filter((r) => D.has(r)).flatMap(
|
|
4087
4076
|
(r) => t.flatMap((g) => g.scope && !g.scope.includes(r) ? [] : [Yo(g, r)])
|
|
4088
4077
|
), G = [
|
|
4089
4078
|
...d,
|
|
4090
|
-
...
|
|
4079
|
+
...O,
|
|
4091
4080
|
...A,
|
|
4092
|
-
|
|
4081
|
+
...$,
|
|
4093
4082
|
...C,
|
|
4094
|
-
...
|
|
4083
|
+
..._,
|
|
4095
4084
|
...L,
|
|
4096
|
-
|
|
4085
|
+
...U
|
|
4097
4086
|
];
|
|
4098
4087
|
return p && p.forEach(({ column: r, position: g = -1 }) => {
|
|
4099
4088
|
g >= 0 && g < G.length ? G.splice(g, 0, r) : G.push(r);
|
|
@@ -4105,7 +4094,7 @@ const gs = x.div`
|
|
|
4105
4094
|
id: e.original.id,
|
|
4106
4095
|
type: "group"
|
|
4107
4096
|
};
|
|
4108
|
-
const { scope: o, field: i, isAttrib: a } =
|
|
4097
|
+
const { scope: o, field: i, isAttrib: a } = Ie(t), c = Re(e.original, o) || e.original.primary, m = ye(e.original), p = Fe(e.original), y = e.original.primary.entityType === "product", u = o === "primary" && !a && ["author", "version", "versionName"].includes(i), h = o === "primary" && !a && i === "product", E = o === "primary" && !a && i === "subType" && e.original.primary.entityType === "version";
|
|
4109
4098
|
let d = c;
|
|
4110
4099
|
u && m ? d = m : E && p || h && p ? d = p : n === "latestComments" && y && m && (d = m);
|
|
4111
4100
|
let f;
|
|
@@ -4124,8 +4113,8 @@ const gs = x.div`
|
|
|
4124
4113
|
else if (d === c)
|
|
4125
4114
|
f = le(e.original, o, i, a);
|
|
4126
4115
|
else {
|
|
4127
|
-
const
|
|
4128
|
-
f = le(e.original,
|
|
4116
|
+
const v = d.entityType === "version" ? "version" : "product";
|
|
4117
|
+
f = le(e.original, v, i, a);
|
|
4129
4118
|
}
|
|
4130
4119
|
return { value: f, id: e.id, type: d.entityType };
|
|
4131
4120
|
};
|
|
@@ -4136,17 +4125,17 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4136
4125
|
}, Qo = /* @__PURE__ */ new Set(["folder", "task", "product", "version"]), Ve = (e, t, n = !1) => {
|
|
4137
4126
|
const o = n ? `attrib_${t}` : t;
|
|
4138
4127
|
return e === "primary" ? o : `${e}_${o}`;
|
|
4139
|
-
},
|
|
4128
|
+
}, Ie = (e) => {
|
|
4140
4129
|
const [t, ...n] = e.split("_"), o = Qo.has(t) && n.length > 0 ? t : "primary", i = (o === "primary" ? [t, ...n] : n).join("_"), a = i.startsWith("attrib_");
|
|
4141
4130
|
return {
|
|
4142
4131
|
scope: o,
|
|
4143
4132
|
field: a ? i.slice(7) : i,
|
|
4144
4133
|
isAttrib: a
|
|
4145
4134
|
};
|
|
4146
|
-
},
|
|
4135
|
+
}, Zo = (e) => !!e && typeof e == "object" && "primary" in e, ws = (e, t) => {
|
|
4147
4136
|
if (!e || !t) return;
|
|
4148
|
-
if (
|
|
4149
|
-
const { scope: i, field: a, isAttrib: l } =
|
|
4137
|
+
if (Zo(e)) {
|
|
4138
|
+
const { scope: i, field: a, isAttrib: l } = Ie(t);
|
|
4150
4139
|
if (!l && i === "primary") {
|
|
4151
4140
|
if (["author", "version", "versionName"].includes(a)) {
|
|
4152
4141
|
const c = e.parents?.version || (e.primary.entityType === "version" ? e.primary : void 0);
|
|
@@ -4180,7 +4169,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4180
4169
|
}, Cs = (e) => {
|
|
4181
4170
|
const t = [];
|
|
4182
4171
|
return e & 1 && t.push("shadow-top"), e & 2 && t.push("shadow-right"), e & 4 && t.push("shadow-bottom"), e & 8 && t.push("shadow-left"), t;
|
|
4183
|
-
}, Ss = (e, t) => t.get(fo(e)),
|
|
4172
|
+
}, Ss = (e, t) => t.get(fo(e)), Jo = (e, t, n) => e?.reduce((o, i) => {
|
|
4184
4173
|
const { linkType: a, direction: l, entityType: c, id: m, node: p, isRestricted: y } = i;
|
|
4185
4174
|
if (y || !p) {
|
|
4186
4175
|
const d = {
|
|
@@ -4192,8 +4181,8 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4192
4181
|
icon: it(c, void 0, n),
|
|
4193
4182
|
color: void 0,
|
|
4194
4183
|
isRestricted: !0
|
|
4195
|
-
}, f = Ft(a, t, c, l),
|
|
4196
|
-
return o[
|
|
4184
|
+
}, f = Ft(a, t, c, l), v = Ye({ name: f }, l);
|
|
4185
|
+
return o[v] || (o[v] = []), o[v].includes(d) || o[v].push(d), o;
|
|
4197
4186
|
}
|
|
4198
4187
|
const u = {
|
|
4199
4188
|
label: p.label || p.name,
|
|
@@ -4225,7 +4214,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4225
4214
|
hasTasks: e.hasTasks,
|
|
4226
4215
|
hasVersions: e.hasVersions
|
|
4227
4216
|
}
|
|
4228
|
-
}),
|
|
4217
|
+
}), Xo = (e, t) => ({
|
|
4229
4218
|
id: e.id,
|
|
4230
4219
|
primary: {
|
|
4231
4220
|
id: e.id,
|
|
@@ -4300,7 +4289,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4300
4289
|
async (u, h = !0) => {
|
|
4301
4290
|
try {
|
|
4302
4291
|
if (u.some((f) => f.targetEntityId === n))
|
|
4303
|
-
return
|
|
4292
|
+
return we.error("You can't link an entity to itself"), !1;
|
|
4304
4293
|
const d = u.map((f) => ({
|
|
4305
4294
|
targetEntityId: f.targetEntityId,
|
|
4306
4295
|
linkId: f.linkId,
|
|
@@ -4329,7 +4318,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4329
4318
|
async (u, h = !0) => {
|
|
4330
4319
|
try {
|
|
4331
4320
|
if (u.some((f) => f.target.entityId === n)) {
|
|
4332
|
-
|
|
4321
|
+
we.error("You can't link an entity to itself");
|
|
4333
4322
|
return;
|
|
4334
4323
|
}
|
|
4335
4324
|
const d = u.map((f) => ({
|
|
@@ -4361,12 +4350,12 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4361
4350
|
fetchNextPage: l
|
|
4362
4351
|
}) => {
|
|
4363
4352
|
const [c, m] = B(-1), p = Q(null);
|
|
4364
|
-
|
|
4353
|
+
Z(() => {
|
|
4365
4354
|
m(-1);
|
|
4366
|
-
}, [e]),
|
|
4355
|
+
}, [e]), Z(() => {
|
|
4367
4356
|
c >= e.length - 3 && // When within 3 items of the end
|
|
4368
4357
|
i && !a && l && l();
|
|
4369
|
-
}, [c, e.length, i, a, l]),
|
|
4358
|
+
}, [c, e.length, i, a, l]), Z(() => {
|
|
4370
4359
|
if (c >= 0 && p.current) {
|
|
4371
4360
|
const h = p.current.querySelector(
|
|
4372
4361
|
`[data-index="${c}"]`
|
|
@@ -4405,7 +4394,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4405
4394
|
},
|
|
4406
4395
|
[o, e, c, t, n, i]
|
|
4407
4396
|
);
|
|
4408
|
-
|
|
4397
|
+
Z(() => {
|
|
4409
4398
|
if (o)
|
|
4410
4399
|
return document.addEventListener("keydown", y), () => {
|
|
4411
4400
|
document.removeEventListener("keydown", y);
|
|
@@ -4426,7 +4415,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4426
4415
|
containerRef: p,
|
|
4427
4416
|
getItemProps: u
|
|
4428
4417
|
};
|
|
4429
|
-
}, ni = ({}) => Array.from({ length: 3 }, (e, t) => /* @__PURE__ */
|
|
4418
|
+
}, ni = ({}) => Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ z(tn, { className: "loading", children: [
|
|
4430
4419
|
/* @__PURE__ */ s("div", { className: "icon", children: "•" }),
|
|
4431
4420
|
/* @__PURE__ */ s("div", { className: "label", children: "Loading..." }),
|
|
4432
4421
|
/* @__PURE__ */ s("div", { className: "type", children: "•" })
|
|
@@ -4463,31 +4452,31 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4463
4452
|
search: a
|
|
4464
4453
|
},
|
|
4465
4454
|
{ skip: !a }
|
|
4466
|
-
), d =
|
|
4455
|
+
), d = ve(() => m?.pages.flatMap((L) => L.entities) || [], [m]), f = (L) => {
|
|
4467
4456
|
i?.(L.id), l("");
|
|
4468
|
-
},
|
|
4457
|
+
}, v = () => {
|
|
4469
4458
|
n?.();
|
|
4470
|
-
}, { containerRef: C, getItemProps:
|
|
4459
|
+
}, { containerRef: C, getItemProps: S } = ti({
|
|
4471
4460
|
entities: d,
|
|
4472
4461
|
onSelect: f,
|
|
4473
|
-
onClose:
|
|
4462
|
+
onClose: v,
|
|
4474
4463
|
isActive: !!(a && d.length > 0),
|
|
4475
4464
|
hasNextPage: u,
|
|
4476
4465
|
isFetchingNextPage: h,
|
|
4477
4466
|
fetchNextPage: E
|
|
4478
4467
|
});
|
|
4479
|
-
return
|
|
4468
|
+
return Z(() => {
|
|
4480
4469
|
const L = setTimeout(() => {
|
|
4481
4470
|
c.current && c.current.focus();
|
|
4482
4471
|
}, 0);
|
|
4483
4472
|
return () => clearTimeout(L);
|
|
4484
|
-
}, [m, a]), /* @__PURE__ */
|
|
4485
|
-
/* @__PURE__ */ s(
|
|
4486
|
-
/* @__PURE__ */
|
|
4487
|
-
/* @__PURE__ */
|
|
4473
|
+
}, [m, a]), /* @__PURE__ */ z(Yr, { children: [
|
|
4474
|
+
/* @__PURE__ */ s(Xt, { children: "Add new link" }),
|
|
4475
|
+
/* @__PURE__ */ z(qr, { children: [
|
|
4476
|
+
/* @__PURE__ */ z(Qr, { children: [
|
|
4488
4477
|
/* @__PURE__ */ s(oe, { icon: "search", className: "input-search" }),
|
|
4489
4478
|
/* @__PURE__ */ s(
|
|
4490
|
-
|
|
4479
|
+
Jr,
|
|
4491
4480
|
{
|
|
4492
4481
|
ref: c,
|
|
4493
4482
|
value: a,
|
|
@@ -4500,7 +4489,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4500
4489
|
)
|
|
4501
4490
|
] }),
|
|
4502
4491
|
!a && /* @__PURE__ */ s(
|
|
4503
|
-
|
|
4492
|
+
Zr,
|
|
4504
4493
|
{
|
|
4505
4494
|
label: `Pick ${t}s`,
|
|
4506
4495
|
icon: "table_rows",
|
|
@@ -4508,35 +4497,35 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4508
4497
|
}
|
|
4509
4498
|
)
|
|
4510
4499
|
] }),
|
|
4511
|
-
a && m && /* @__PURE__ */
|
|
4500
|
+
a && m && /* @__PURE__ */ z(eo, { ref: C, children: [
|
|
4512
4501
|
m?.pages.map(
|
|
4513
|
-
(L, k) => L.entities.map((
|
|
4514
|
-
const
|
|
4515
|
-
return /* @__PURE__ */
|
|
4502
|
+
(L, k) => L.entities.map((T, A) => {
|
|
4503
|
+
const $ = m.pages.slice(0, k).reduce((O, U) => O + U.entities.length, 0) + A;
|
|
4504
|
+
return /* @__PURE__ */ z(
|
|
4516
4505
|
tn,
|
|
4517
4506
|
{
|
|
4518
|
-
onClick: () => f(
|
|
4507
|
+
onClick: () => f(T),
|
|
4519
4508
|
tabIndex: 0,
|
|
4520
|
-
...
|
|
4509
|
+
...S($),
|
|
4521
4510
|
children: [
|
|
4522
|
-
/* @__PURE__ */ s(Qe, { entity:
|
|
4523
|
-
/* @__PURE__ */
|
|
4524
|
-
|
|
4525
|
-
/* @__PURE__ */ s("span", { children:
|
|
4526
|
-
/* @__PURE__ */ s("span", { children: "/" },
|
|
4527
|
-
] },
|
|
4528
|
-
/* @__PURE__ */ s("strong", { children:
|
|
4511
|
+
/* @__PURE__ */ s(Qe, { entity: T }),
|
|
4512
|
+
/* @__PURE__ */ z("span", { className: "label", children: [
|
|
4513
|
+
T.parents?.map((O, U) => /* @__PURE__ */ z(dt, { children: [
|
|
4514
|
+
/* @__PURE__ */ s("span", { children: O }, U + "-path"),
|
|
4515
|
+
/* @__PURE__ */ s("span", { children: "/" }, U + "-separator")
|
|
4516
|
+
] }, U)),
|
|
4517
|
+
/* @__PURE__ */ s("strong", { children: T.label || T.name })
|
|
4529
4518
|
] }),
|
|
4530
|
-
/* @__PURE__ */ s("span", { className: "type", children:
|
|
4519
|
+
/* @__PURE__ */ s("span", { className: "type", children: T.subType || T.entityType })
|
|
4531
4520
|
]
|
|
4532
4521
|
},
|
|
4533
|
-
|
|
4522
|
+
T.id
|
|
4534
4523
|
);
|
|
4535
4524
|
})
|
|
4536
4525
|
),
|
|
4537
4526
|
(y || h || u) && /* @__PURE__ */ s(ni, {})
|
|
4538
4527
|
] }),
|
|
4539
|
-
!y && p && /* @__PURE__ */ s(
|
|
4528
|
+
!y && p && /* @__PURE__ */ s(Xr, { children: p.message })
|
|
4540
4529
|
] });
|
|
4541
4530
|
}, oi = ({
|
|
4542
4531
|
link: e,
|
|
@@ -4548,22 +4537,22 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4548
4537
|
isManager: l = !1,
|
|
4549
4538
|
readOnly: c = !1
|
|
4550
4539
|
}) => {
|
|
4551
|
-
const [m, p] = B(!1), [y, u] = B(t), h = (
|
|
4552
|
-
|
|
4540
|
+
const [m, p] = B(!1), [y, u] = B(t), h = (S) => {
|
|
4541
|
+
S.stopPropagation(), !(e.isRestricted || c) && (u(t), p(!0));
|
|
4553
4542
|
}, E = () => {
|
|
4554
|
-
const
|
|
4555
|
-
|
|
4543
|
+
const S = Math.max(1, y);
|
|
4544
|
+
S !== t && a?.(S), p(!1);
|
|
4556
4545
|
}, d = () => {
|
|
4557
4546
|
u(t), p(!1);
|
|
4558
|
-
}, f = (
|
|
4559
|
-
|
|
4547
|
+
}, f = (S) => {
|
|
4548
|
+
S.stopPropagation(), S.key === "Enter" ? S.currentTarget.blur() : S.key === "Escape" && d();
|
|
4560
4549
|
}, C = Nn.includes(e.entityType) && !e.isRestricted;
|
|
4561
|
-
return /* @__PURE__ */
|
|
4550
|
+
return /* @__PURE__ */ z(
|
|
4562
4551
|
jr,
|
|
4563
4552
|
{
|
|
4564
4553
|
onClick: () => !m && C && o?.(e.entityId, e.entityType),
|
|
4565
4554
|
"data-tooltip": e.isRestricted ? l ? "Unknown Link - Entity not found" : "Access Restricted - Insufficient Permissions to Entity" : e.parents.join("/") + "/" + e.label,
|
|
4566
|
-
className:
|
|
4555
|
+
className: V({
|
|
4567
4556
|
clickable: C,
|
|
4568
4557
|
selected: n,
|
|
4569
4558
|
restricted: e.isRestricted && !l,
|
|
@@ -4571,9 +4560,9 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4571
4560
|
}),
|
|
4572
4561
|
children: [
|
|
4573
4562
|
/* @__PURE__ */ s(Qe, { entity: { entityType: e.entityType }, icon: e?.icon, color: e.color }),
|
|
4574
|
-
/* @__PURE__ */ s("span", { className: "title", children: e.isRestricted ? /* @__PURE__ */ s("span", { className: "label", children: l ? "Unknown" : "Access Restricted" }) : /* @__PURE__ */
|
|
4575
|
-
e.parents?.map((
|
|
4576
|
-
/* @__PURE__ */ s("span", { children:
|
|
4563
|
+
/* @__PURE__ */ s("span", { className: "title", children: e.isRestricted ? /* @__PURE__ */ s("span", { className: "label", children: l ? "Unknown" : "Access Restricted" }) : /* @__PURE__ */ z(Ae, { children: [
|
|
4564
|
+
e.parents?.map((S, L) => /* @__PURE__ */ z(dt, { children: [
|
|
4565
|
+
/* @__PURE__ */ s("span", { children: S }, L + "-path"),
|
|
4577
4566
|
/* @__PURE__ */ s("span", { children: "/" }, L + "-separator")
|
|
4578
4567
|
] }, L)),
|
|
4579
4568
|
/* @__PURE__ */ s("span", { className: "label", children: e.label })
|
|
@@ -4584,14 +4573,14 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4584
4573
|
value: y,
|
|
4585
4574
|
min: 1,
|
|
4586
4575
|
autoFocus: !0,
|
|
4587
|
-
onChange: (
|
|
4588
|
-
onFocus: (
|
|
4576
|
+
onChange: (S) => u(parseInt(S.target.value) || 1),
|
|
4577
|
+
onFocus: (S) => S.target.select(),
|
|
4589
4578
|
onBlur: E,
|
|
4590
4579
|
onKeyDown: f,
|
|
4591
|
-
onClick: (
|
|
4580
|
+
onClick: (S) => S.stopPropagation(),
|
|
4592
4581
|
"data-tooltip": "Number of links to this entity."
|
|
4593
4582
|
}
|
|
4594
|
-
) : /* @__PURE__ */
|
|
4583
|
+
) : /* @__PURE__ */ z(
|
|
4595
4584
|
en,
|
|
4596
4585
|
{
|
|
4597
4586
|
onClick: h,
|
|
@@ -4604,12 +4593,12 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4604
4593
|
}
|
|
4605
4594
|
)),
|
|
4606
4595
|
!c && (!e.isRestricted || l) && /* @__PURE__ */ s(
|
|
4607
|
-
|
|
4596
|
+
xe,
|
|
4608
4597
|
{
|
|
4609
4598
|
icon: "link_off",
|
|
4610
4599
|
variant: "text",
|
|
4611
4600
|
className: "remove",
|
|
4612
|
-
onClick: (
|
|
4601
|
+
onClick: (S) => i(S, e),
|
|
4613
4602
|
"data-tooltip": t > 1 ? `Remove all ${t} links` : "Remove link"
|
|
4614
4603
|
}
|
|
4615
4604
|
)
|
|
@@ -4650,56 +4639,56 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4650
4639
|
entityType: a,
|
|
4651
4640
|
targetEntityType: c,
|
|
4652
4641
|
linkType: l
|
|
4653
|
-
}), [f,
|
|
4654
|
-
const
|
|
4655
|
-
return
|
|
4656
|
-
},
|
|
4642
|
+
}), [f, v] = B(null), [C, S] = B(!1), [L, k] = B({}), T = gn(n), A = (D) => {
|
|
4643
|
+
const _ = L[D.groupKey];
|
|
4644
|
+
return _ !== void 0 && _ !== D.count ? _ : D.count;
|
|
4645
|
+
}, $ = async (D) => {
|
|
4657
4646
|
if (C) return;
|
|
4658
|
-
|
|
4659
|
-
const
|
|
4660
|
-
|
|
4647
|
+
S(!0);
|
|
4648
|
+
const _ = await d.add(
|
|
4649
|
+
D.map((G) => ({ targetEntityId: G, linkId: Je() }))
|
|
4661
4650
|
);
|
|
4662
|
-
|
|
4663
|
-
},
|
|
4664
|
-
|
|
4665
|
-
|
|
4651
|
+
S(!1), _ && v(null);
|
|
4652
|
+
}, O = (D, _) => {
|
|
4653
|
+
D.stopPropagation(), d.remove(
|
|
4654
|
+
_.linkIds.map((G) => ({
|
|
4666
4655
|
id: G,
|
|
4667
|
-
target: { entityId:
|
|
4656
|
+
target: { entityId: _.entityId, entityType: _.representative.entityType }
|
|
4668
4657
|
}))
|
|
4669
4658
|
);
|
|
4670
|
-
},
|
|
4671
|
-
const G = A(
|
|
4672
|
-
k((g) => ({ ...g, [
|
|
4673
|
-
const r =
|
|
4659
|
+
}, U = (D, _) => {
|
|
4660
|
+
const G = A(D);
|
|
4661
|
+
k((g) => ({ ...g, [D.groupKey]: _ }));
|
|
4662
|
+
const r = _ - G;
|
|
4674
4663
|
if (r > 0) {
|
|
4675
4664
|
const g = Array.from({ length: r }, () => ({
|
|
4676
|
-
targetEntityId:
|
|
4677
|
-
linkId:
|
|
4665
|
+
targetEntityId: D.entityId,
|
|
4666
|
+
linkId: Je()
|
|
4678
4667
|
}));
|
|
4679
4668
|
d.add(g);
|
|
4680
4669
|
} else if (r < 0) {
|
|
4681
|
-
const g =
|
|
4670
|
+
const g = D.linkIds.slice(r).map((w) => ({
|
|
4682
4671
|
id: w,
|
|
4683
|
-
target: { entityId:
|
|
4672
|
+
target: { entityId: D.entityId, entityType: D.representative.entityType }
|
|
4684
4673
|
}));
|
|
4685
4674
|
d.remove(g);
|
|
4686
4675
|
}
|
|
4687
4676
|
};
|
|
4688
|
-
return /* @__PURE__ */
|
|
4689
|
-
/* @__PURE__ */
|
|
4677
|
+
return /* @__PURE__ */ z(Ae, { children: [
|
|
4678
|
+
/* @__PURE__ */ z(
|
|
4690
4679
|
yt,
|
|
4691
4680
|
{
|
|
4692
|
-
onMouseDown: (
|
|
4693
|
-
|
|
4681
|
+
onMouseDown: (D) => {
|
|
4682
|
+
D.target !== document.activeElement && document.activeElement instanceof HTMLInputElement && document.activeElement.blur();
|
|
4694
4683
|
},
|
|
4695
4684
|
children: [
|
|
4696
|
-
/* @__PURE__ */
|
|
4685
|
+
/* @__PURE__ */ z(Kr, { children: [
|
|
4697
4686
|
_e(e),
|
|
4698
4687
|
" links (",
|
|
4699
4688
|
t,
|
|
4700
4689
|
")",
|
|
4701
4690
|
/* @__PURE__ */ s(
|
|
4702
|
-
|
|
4691
|
+
xe,
|
|
4703
4692
|
{
|
|
4704
4693
|
icon: "close",
|
|
4705
4694
|
variant: "text",
|
|
@@ -4710,21 +4699,21 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4710
4699
|
}
|
|
4711
4700
|
)
|
|
4712
4701
|
] }),
|
|
4713
|
-
/* @__PURE__ */
|
|
4714
|
-
|
|
4702
|
+
/* @__PURE__ */ z(Gr, { children: [
|
|
4703
|
+
T.map((D) => /* @__PURE__ */ s(
|
|
4715
4704
|
oi,
|
|
4716
4705
|
{
|
|
4717
|
-
link:
|
|
4718
|
-
count: A(
|
|
4719
|
-
isSelected: p.includes(
|
|
4706
|
+
link: D.representative,
|
|
4707
|
+
count: A(D),
|
|
4708
|
+
isSelected: p.includes(D.entityId),
|
|
4720
4709
|
onEntityClick: u,
|
|
4721
|
-
onRemove: (
|
|
4722
|
-
onCountChange: (
|
|
4710
|
+
onRemove: (_) => O(_, D),
|
|
4711
|
+
onCountChange: (_) => U(D, _),
|
|
4723
4712
|
isManager: E
|
|
4724
4713
|
},
|
|
4725
|
-
|
|
4714
|
+
D.representative.linkId
|
|
4726
4715
|
)),
|
|
4727
|
-
n.length === 0 && /* @__PURE__ */ s(
|
|
4716
|
+
n.length === 0 && /* @__PURE__ */ s(Xt, { children: "No links yet" })
|
|
4728
4717
|
] }),
|
|
4729
4718
|
/* @__PURE__ */ s(
|
|
4730
4719
|
ri,
|
|
@@ -4732,21 +4721,21 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4732
4721
|
targetEntityType: c,
|
|
4733
4722
|
projectName: o,
|
|
4734
4723
|
onClose: y,
|
|
4735
|
-
onAdd: (
|
|
4736
|
-
onSearchTypeChange:
|
|
4724
|
+
onAdd: (D) => d.add([{ targetEntityId: D, linkId: Je() }]),
|
|
4725
|
+
onSearchTypeChange: v
|
|
4737
4726
|
}
|
|
4738
4727
|
)
|
|
4739
4728
|
]
|
|
4740
4729
|
}
|
|
4741
4730
|
),
|
|
4742
4731
|
f === "picker" && /* @__PURE__ */ s(
|
|
4743
|
-
|
|
4732
|
+
Xn,
|
|
4744
4733
|
{
|
|
4745
|
-
onClose: () =>
|
|
4734
|
+
onClose: () => v(null),
|
|
4746
4735
|
projectName: o,
|
|
4747
4736
|
entityType: c,
|
|
4748
4737
|
initialSelection: m ? { folder: { [m]: !0 } } : void 0,
|
|
4749
|
-
onSubmit:
|
|
4738
|
+
onSubmit: $,
|
|
4750
4739
|
isLoading: C,
|
|
4751
4740
|
isMultiSelect: !0
|
|
4752
4741
|
}
|
|
@@ -4792,15 +4781,15 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4792
4781
|
h = cn().clearRowsSelection;
|
|
4793
4782
|
} catch {
|
|
4794
4783
|
}
|
|
4795
|
-
const d = (C,
|
|
4796
|
-
Me(
|
|
4784
|
+
const d = (C, S) => {
|
|
4785
|
+
Me(S) || (h && h(), u ? u({
|
|
4797
4786
|
entityId: C,
|
|
4798
|
-
entityType:
|
|
4799
|
-
}) : console.log("Entity clicked:", C,
|
|
4800
|
-
}, f = e?.links ? ai(e.links) : [],
|
|
4787
|
+
entityType: S
|
|
4788
|
+
}) : console.log("Entity clicked:", C, S));
|
|
4789
|
+
}, f = e?.links ? ai(e.links) : [], v = gn(f);
|
|
4801
4790
|
if (m) {
|
|
4802
|
-
const C = e?.entityId ?? "",
|
|
4803
|
-
return /* @__PURE__ */ s(li, { children: Array.from({ length:
|
|
4791
|
+
const C = e?.entityId ?? "", S = C.charCodeAt(0) % 3 + 1;
|
|
4792
|
+
return /* @__PURE__ */ s(li, { children: Array.from({ length: S }, (L, k) => /* @__PURE__ */ s(
|
|
4804
4793
|
ci,
|
|
4805
4794
|
{
|
|
4806
4795
|
className: "loading",
|
|
@@ -4811,17 +4800,17 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4811
4800
|
k
|
|
4812
4801
|
)) });
|
|
4813
4802
|
}
|
|
4814
|
-
return /* @__PURE__ */
|
|
4803
|
+
return /* @__PURE__ */ z(Ae, { children: [
|
|
4815
4804
|
/* @__PURE__ */ s(
|
|
4816
4805
|
qt,
|
|
4817
4806
|
{
|
|
4818
|
-
values:
|
|
4819
|
-
const
|
|
4807
|
+
values: v.map((C) => {
|
|
4808
|
+
const S = C.representative, L = S.isRestricted ? y ? "Unknown" : "Restricted" : S.label, k = S.isRestricted ? y ? "Unknown Link - Entity not found" : "Access Restricted - Insufficient Permissions to Entity" : S.parents.join("/") + "/" + S.label + (C.count > 1 ? ` (x${C.count})` : "");
|
|
4820
4809
|
return {
|
|
4821
4810
|
label: L,
|
|
4822
4811
|
tooltip: k,
|
|
4823
|
-
icon:
|
|
4824
|
-
suffix: C.count > 1 ? /* @__PURE__ */
|
|
4812
|
+
icon: S.isRestricted ? y ? "help" : "lock" : void 0,
|
|
4813
|
+
suffix: C.count > 1 ? /* @__PURE__ */ z(en, { style: { cursor: "default", pointerEvents: "none" }, children: [
|
|
4825
4814
|
"x",
|
|
4826
4815
|
C.count
|
|
4827
4816
|
] }) : void 0
|
|
@@ -4890,7 +4879,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
4890
4879
|
tooltip: d.description || d.label || d.name,
|
|
4891
4880
|
prefix: /* @__PURE__ */ s(mt, { checked: d.isDone, isReadOnly: !0, style: { fontSize: 20 } })
|
|
4892
4881
|
}));
|
|
4893
|
-
return /* @__PURE__ */
|
|
4882
|
+
return /* @__PURE__ */ z(Ae, { children: [
|
|
4894
4883
|
/* @__PURE__ */ s(
|
|
4895
4884
|
qt,
|
|
4896
4885
|
{
|
|
@@ -5013,16 +5002,16 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5013
5002
|
),
|
|
5014
5003
|
a: ({ href: e, children: t }) => {
|
|
5015
5004
|
const [n, o] = e?.split(":") ?? [];
|
|
5016
|
-
if (n && o &&
|
|
5005
|
+
if (n && o && Un.includes(n)) {
|
|
5017
5006
|
const i = String(t ?? "").replace("@", "");
|
|
5018
|
-
return /* @__PURE__ */
|
|
5007
|
+
return /* @__PURE__ */ z(hi, { children: [
|
|
5019
5008
|
/* @__PURE__ */ s(oe, { icon: yi(n) }),
|
|
5020
5009
|
i
|
|
5021
5010
|
] });
|
|
5022
5011
|
}
|
|
5023
5012
|
return /* @__PURE__ */ s("span", { children: t });
|
|
5024
5013
|
}
|
|
5025
|
-
}, bi = (e) =>
|
|
5014
|
+
}, bi = (e) => Kn(e).replace(/<br\s*\/?>/gi, `
|
|
5026
5015
|
`), vi = ut(({ body: e }) => /* @__PURE__ */ s("div", { className: "body", children: /* @__PURE__ */ s(
|
|
5027
5016
|
Bt,
|
|
5028
5017
|
{
|
|
@@ -5032,12 +5021,12 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5032
5021
|
children: bi(e)
|
|
5033
5022
|
}
|
|
5034
5023
|
) })), xi = (e) => {
|
|
5035
|
-
const t = e.createdAt ?
|
|
5024
|
+
const t = e.createdAt ? jn(new Date(e.createdAt)) : "";
|
|
5036
5025
|
return [e.author, t].filter(Boolean).join(" • ");
|
|
5037
5026
|
}, wi = ({ value: e }) => {
|
|
5038
5027
|
const t = e || [];
|
|
5039
|
-
return t.length ? /* @__PURE__ */ s(mi, { className: "comments-list", children: t.map((n) => /* @__PURE__ */
|
|
5040
|
-
/* @__PURE__ */ s("span", { className: "author", "data-tooltip": xi(n), "data-tooltip-delay": 0, children: /* @__PURE__ */ s(
|
|
5028
|
+
return t.length ? /* @__PURE__ */ s(mi, { className: "comments-list", children: t.map((n) => /* @__PURE__ */ z(gi, { children: [
|
|
5029
|
+
/* @__PURE__ */ s("span", { className: "author", "data-tooltip": xi(n), "data-tooltip-delay": 0, children: /* @__PURE__ */ s(Gn, { name: n.author || "", size: 18 }) }),
|
|
5041
5030
|
/* @__PURE__ */ s(vi, { body: n.body })
|
|
5042
5031
|
] }, n.activityId)) }) : null;
|
|
5043
5032
|
}, ki = x.div`
|
|
@@ -5079,13 +5068,13 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5079
5068
|
nameDisabled: l = !1,
|
|
5080
5069
|
labelDisabled: c = !1
|
|
5081
5070
|
}) => {
|
|
5082
|
-
const { anatomy: m } = $e(), { entity_naming: p = { capitalization: "lower", separator: "_" } } = m, [y, u] = B(o), [h, E] = B(n), { setEditingCellId: d, updateEntities: f } = ft(),
|
|
5083
|
-
|
|
5071
|
+
const { anatomy: m } = $e(), { entity_naming: p = { capitalization: "lower", separator: "_" } } = m, [y, u] = B(o), [h, E] = B(n), { setEditingCellId: d, updateEntities: f } = ft(), v = Q(null), C = Q(null), S = Ct(y, p), L = h === S || !h;
|
|
5072
|
+
Z(() => {
|
|
5084
5073
|
const I = setTimeout(() => {
|
|
5085
|
-
!c &&
|
|
5074
|
+
!c && v.current ? (v.current.focus(), v.current.select()) : !l && C.current && (C.current.focus(), C.current.select());
|
|
5086
5075
|
}, 0);
|
|
5087
5076
|
return () => clearTimeout(I);
|
|
5088
|
-
}, [c, l]),
|
|
5077
|
+
}, [c, l]), Z(() => {
|
|
5089
5078
|
u(o), E(n);
|
|
5090
5079
|
}, [o, n]);
|
|
5091
5080
|
const k = j(async () => {
|
|
@@ -5093,19 +5082,19 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5093
5082
|
if (y !== o && !c) {
|
|
5094
5083
|
const P = On(y);
|
|
5095
5084
|
if (!P.valid) {
|
|
5096
|
-
console.error("Invalid label:", P.error),
|
|
5085
|
+
console.error("Invalid label:", P.error), we.error(`Invalid label: ${P.error}`);
|
|
5097
5086
|
return;
|
|
5098
5087
|
}
|
|
5099
5088
|
}
|
|
5100
5089
|
const R = zn(h);
|
|
5101
5090
|
if (!R.valid || !h) {
|
|
5102
|
-
console.error("Invalid name:", R.error),
|
|
5091
|
+
console.error("Invalid name:", R.error), we.error(`Invalid name: ${R.error}`);
|
|
5103
5092
|
return;
|
|
5104
5093
|
}
|
|
5105
5094
|
d(null), i?.();
|
|
5106
5095
|
try {
|
|
5107
|
-
const { entityRowId: P } = a || {},
|
|
5108
|
-
h !== n && !l && F.push({ field: "name", value: h, type: M, rowId:
|
|
5096
|
+
const { entityRowId: P } = a || {}, b = P, M = t, F = [];
|
|
5097
|
+
h !== n && !l && F.push({ field: "name", value: h, type: M, rowId: b, id: b }), y !== o && !c && F.push({ field: "label", value: y.trim(), type: M, rowId: b, id: b }), F.length && await f(F, !0);
|
|
5109
5098
|
} catch (P) {
|
|
5110
5099
|
console.error("Failed to update entity:", P);
|
|
5111
5100
|
}
|
|
@@ -5123,7 +5112,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5123
5112
|
c,
|
|
5124
5113
|
f,
|
|
5125
5114
|
t
|
|
5126
|
-
]),
|
|
5115
|
+
]), T = j(() => {
|
|
5127
5116
|
d(null), i?.();
|
|
5128
5117
|
}, [d, i]), A = j(
|
|
5129
5118
|
(I) => {
|
|
@@ -5131,10 +5120,10 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5131
5120
|
u(R), L && !l && E(Ct(R, p));
|
|
5132
5121
|
},
|
|
5133
5122
|
[L, l]
|
|
5134
|
-
),
|
|
5123
|
+
), $ = j((I) => {
|
|
5135
5124
|
const R = I.target.value;
|
|
5136
5125
|
E(R);
|
|
5137
|
-
}, []),
|
|
5126
|
+
}, []), O = j(
|
|
5138
5127
|
(I) => {
|
|
5139
5128
|
if (I.key === "ArrowDown") {
|
|
5140
5129
|
if (I.preventDefault(), !l && C.current) {
|
|
@@ -5144,39 +5133,39 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5144
5133
|
}
|
|
5145
5134
|
} else I.key === "Enter" && (I.preventDefault(), k());
|
|
5146
5135
|
},
|
|
5147
|
-
[k,
|
|
5148
|
-
),
|
|
5136
|
+
[k, T, l]
|
|
5137
|
+
), U = j(
|
|
5149
5138
|
(I) => {
|
|
5150
5139
|
if (I.key === "ArrowUp") {
|
|
5151
|
-
if (I.preventDefault(), !c &&
|
|
5152
|
-
|
|
5153
|
-
const R =
|
|
5154
|
-
|
|
5140
|
+
if (I.preventDefault(), !c && v.current) {
|
|
5141
|
+
v.current.focus();
|
|
5142
|
+
const R = v.current.value.length;
|
|
5143
|
+
v.current.setSelectionRange(R, R);
|
|
5155
5144
|
}
|
|
5156
5145
|
} else I.key === "Enter" && (I.preventDefault(), k());
|
|
5157
5146
|
},
|
|
5158
|
-
[k,
|
|
5159
|
-
),
|
|
5147
|
+
[k, T, c]
|
|
5148
|
+
), D = j((I) => {
|
|
5160
5149
|
I.stopPropagation();
|
|
5161
|
-
}, []),
|
|
5150
|
+
}, []), _ = j((I) => {
|
|
5162
5151
|
I.stopPropagation();
|
|
5163
5152
|
}, []), G = j((I) => {
|
|
5164
5153
|
I.stopPropagation();
|
|
5165
5154
|
}, []), r = j((I) => {
|
|
5166
5155
|
I.stopPropagation();
|
|
5167
|
-
}, []), g = (I) => typeof I == "string" ? { disabled: !0, tooltip: I } : { disabled: !!I, tooltip: void 0 }, w = g(c),
|
|
5168
|
-
return /* @__PURE__ */
|
|
5156
|
+
}, []), g = (I) => typeof I == "string" ? { disabled: !0, tooltip: I } : { disabled: !!I, tooltip: void 0 }, w = g(c), N = g(l);
|
|
5157
|
+
return /* @__PURE__ */ z(ki, { id: `editing-container-${e}`, onClick: (I) => I.stopPropagation(), children: [
|
|
5169
5158
|
/* @__PURE__ */ s(
|
|
5170
5159
|
Wt,
|
|
5171
5160
|
{
|
|
5172
|
-
ref:
|
|
5161
|
+
ref: v,
|
|
5173
5162
|
id: `${e}-label`,
|
|
5174
5163
|
type: "text",
|
|
5175
5164
|
value: y,
|
|
5176
5165
|
onChange: A,
|
|
5177
|
-
onKeyDown:
|
|
5178
|
-
onClick:
|
|
5179
|
-
onDoubleClick:
|
|
5166
|
+
onKeyDown: O,
|
|
5167
|
+
onClick: D,
|
|
5168
|
+
onDoubleClick: _,
|
|
5180
5169
|
onMouseDown: G,
|
|
5181
5170
|
onMouseUp: r,
|
|
5182
5171
|
placeholder: `${_e(t)} label...`,
|
|
@@ -5195,17 +5184,17 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5195
5184
|
id: `${e}-name`,
|
|
5196
5185
|
type: "text",
|
|
5197
5186
|
value: h,
|
|
5198
|
-
onChange:
|
|
5199
|
-
onKeyDown:
|
|
5200
|
-
onClick:
|
|
5201
|
-
onDoubleClick:
|
|
5187
|
+
onChange: $,
|
|
5188
|
+
onKeyDown: U,
|
|
5189
|
+
onClick: D,
|
|
5190
|
+
onDoubleClick: _,
|
|
5202
5191
|
onMouseDown: G,
|
|
5203
5192
|
onMouseUp: r,
|
|
5204
5193
|
className: "system-name",
|
|
5205
5194
|
placeholder: `${t}_name`,
|
|
5206
5195
|
autoComplete: "off",
|
|
5207
|
-
disabled:
|
|
5208
|
-
"data-tooltip":
|
|
5196
|
+
disabled: N.disabled,
|
|
5197
|
+
"data-tooltip": N.tooltip,
|
|
5209
5198
|
"data-tooltip-delay": 100
|
|
5210
5199
|
}
|
|
5211
5200
|
)
|
|
@@ -5235,7 +5224,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5235
5224
|
}, Ei = x.div`
|
|
5236
5225
|
position: absolute;
|
|
5237
5226
|
inset: 0;
|
|
5238
|
-
padding: ${
|
|
5227
|
+
padding: ${Qn}px 8px;
|
|
5239
5228
|
display: flex;
|
|
5240
5229
|
align-items: center;
|
|
5241
5230
|
overflow: hidden;
|
|
@@ -5282,40 +5271,40 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5282
5271
|
folderId: E,
|
|
5283
5272
|
midnightExclusiveFields: d,
|
|
5284
5273
|
tooltip: f,
|
|
5285
|
-
onChange:
|
|
5274
|
+
onChange: v,
|
|
5286
5275
|
entityType: C,
|
|
5287
|
-
pt:
|
|
5276
|
+
pt: S,
|
|
5288
5277
|
...L
|
|
5289
5278
|
}) => {
|
|
5290
|
-
const k = Q(null),
|
|
5291
|
-
const
|
|
5292
|
-
if (
|
|
5293
|
-
|
|
5279
|
+
const k = Q(null), T = i?.type, { projectName: A } = $e(), { isEditing: $, setEditingCellId: O, getEditingDraft: U, setEditingDraft: D } = ft(), { isCellFocused: _, gridMap: G, selectCell: r, focusCell: g, selectedCells: w } = oo(), N = He(e, t), I = d?.includes(t) ?? !1, R = $(N), P = _(N), b = () => {
|
|
5280
|
+
const W = G.rowIdToIndex.get(e);
|
|
5281
|
+
if (W === void 0) {
|
|
5282
|
+
O(null);
|
|
5294
5283
|
return;
|
|
5295
5284
|
}
|
|
5296
|
-
const ee = G.indexToRowId.get(
|
|
5285
|
+
const ee = G.indexToRowId.get(W + 1);
|
|
5297
5286
|
if (ee) {
|
|
5298
5287
|
const Y = He(ee, t);
|
|
5299
|
-
r(Y, !1, !1), g(Y),
|
|
5288
|
+
r(Y, !1, !1), g(Y), O(Y);
|
|
5300
5289
|
} else
|
|
5301
|
-
|
|
5302
|
-
}, M = (
|
|
5290
|
+
O(null);
|
|
5291
|
+
}, M = (W, ee) => {
|
|
5303
5292
|
if (p) {
|
|
5304
|
-
|
|
5293
|
+
O(null);
|
|
5305
5294
|
return;
|
|
5306
5295
|
}
|
|
5307
|
-
const Y = w.size > 1 && w.has(
|
|
5308
|
-
if (ee === "Enter" && (Y ||
|
|
5309
|
-
|
|
5296
|
+
const Y = w.size > 1 && w.has(N);
|
|
5297
|
+
if (ee === "Enter" && (Y || T === "boolean")) {
|
|
5298
|
+
O(null), v?.(W, ee);
|
|
5310
5299
|
const H = k.current?.closest("td");
|
|
5311
5300
|
H && H.focus();
|
|
5312
|
-
} else ee === "Enter" ? (
|
|
5301
|
+
} else ee === "Enter" ? (b(), v?.(W, ee)) : ee === "Click" && Ii(W, n) ? (O(null), v?.(W, ee)) : O(null);
|
|
5313
5302
|
}, F = () => {
|
|
5314
|
-
|
|
5315
|
-
const
|
|
5316
|
-
|
|
5317
|
-
}, te =
|
|
5318
|
-
const
|
|
5303
|
+
O(null);
|
|
5304
|
+
const W = k.current?.closest("td");
|
|
5305
|
+
W && W.focus();
|
|
5306
|
+
}, te = ve(() => {
|
|
5307
|
+
const W = {
|
|
5319
5308
|
onChange: M,
|
|
5320
5309
|
onCancelEdit: F,
|
|
5321
5310
|
isEditing: R,
|
|
@@ -5324,23 +5313,23 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5324
5313
|
switch (!0) {
|
|
5325
5314
|
// this is showing the collapsed widget (dot)
|
|
5326
5315
|
case l: {
|
|
5327
|
-
const H = (
|
|
5316
|
+
const H = (T?.includes("list") ? a.find(
|
|
5328
5317
|
(K) => Array.isArray(n) ? n.includes(K.value) : n === K.value
|
|
5329
5318
|
) : void 0)?.color;
|
|
5330
|
-
return /* @__PURE__ */ s(
|
|
5319
|
+
return /* @__PURE__ */ s(ir, { color: H });
|
|
5331
5320
|
}
|
|
5332
|
-
case
|
|
5321
|
+
case T === "name":
|
|
5333
5322
|
return /* @__PURE__ */ s(
|
|
5334
5323
|
Si,
|
|
5335
5324
|
{
|
|
5336
5325
|
value: n,
|
|
5337
5326
|
valueData: o,
|
|
5338
|
-
cellId:
|
|
5327
|
+
cellId: N,
|
|
5339
5328
|
entityType: C || "",
|
|
5340
|
-
...
|
|
5329
|
+
...W
|
|
5341
5330
|
}
|
|
5342
5331
|
);
|
|
5343
|
-
case
|
|
5332
|
+
case T === "links": {
|
|
5344
5333
|
const Y = o, H = si(
|
|
5345
5334
|
Y?.direction || "out",
|
|
5346
5335
|
Y?.link.linkType || "",
|
|
@@ -5350,28 +5339,28 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5350
5339
|
di,
|
|
5351
5340
|
{
|
|
5352
5341
|
value: Y,
|
|
5353
|
-
cellId:
|
|
5342
|
+
cellId: N,
|
|
5354
5343
|
projectName: A,
|
|
5355
5344
|
disabled: !H,
|
|
5356
5345
|
folderId: E,
|
|
5357
5346
|
isLoading: h,
|
|
5358
|
-
...
|
|
5347
|
+
...W
|
|
5359
5348
|
}
|
|
5360
5349
|
);
|
|
5361
5350
|
}
|
|
5362
|
-
case
|
|
5351
|
+
case T === "subtasks":
|
|
5363
5352
|
return /* @__PURE__ */ s(
|
|
5364
5353
|
pi,
|
|
5365
5354
|
{
|
|
5366
5355
|
value: o,
|
|
5367
|
-
cellId:
|
|
5356
|
+
cellId: N,
|
|
5368
5357
|
projectName: A,
|
|
5369
5358
|
disabled: p,
|
|
5370
|
-
...
|
|
5359
|
+
...W
|
|
5371
5360
|
}
|
|
5372
5361
|
);
|
|
5373
|
-
case
|
|
5374
|
-
return /* @__PURE__ */ s(wi, { value: o, ...
|
|
5362
|
+
case T === "comments":
|
|
5363
|
+
return /* @__PURE__ */ s(wi, { value: o, ...W });
|
|
5375
5364
|
case (!!a.length || !!i?.enumResolver): {
|
|
5376
5365
|
const Y = Array.isArray(n) ? n : [n];
|
|
5377
5366
|
if (p) {
|
|
@@ -5382,13 +5371,13 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5382
5371
|
value: Y.join(", "),
|
|
5383
5372
|
isInherited: c,
|
|
5384
5373
|
columnId: t,
|
|
5385
|
-
cellId:
|
|
5374
|
+
cellId: N,
|
|
5386
5375
|
isMarkdown: i?.widget === "markdown",
|
|
5387
|
-
onRequestEdit:
|
|
5388
|
-
getDraftValue:
|
|
5389
|
-
setDraftValue:
|
|
5390
|
-
...
|
|
5391
|
-
...
|
|
5376
|
+
onRequestEdit: O,
|
|
5377
|
+
getDraftValue: U,
|
|
5378
|
+
setDraftValue: D,
|
|
5379
|
+
...W,
|
|
5380
|
+
...S?.text
|
|
5392
5381
|
}
|
|
5393
5382
|
) : /* @__PURE__ */ s(
|
|
5394
5383
|
Ge,
|
|
@@ -5396,65 +5385,65 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5396
5385
|
selectedOptions: H,
|
|
5397
5386
|
isReadOnly: !0,
|
|
5398
5387
|
hasMultipleValues: Y.length > 1,
|
|
5399
|
-
isMultiSelect:
|
|
5400
|
-
...
|
|
5388
|
+
isMultiSelect: T?.includes("list"),
|
|
5389
|
+
...S?.enum?.pt?.template
|
|
5401
5390
|
}
|
|
5402
5391
|
);
|
|
5403
5392
|
}
|
|
5404
5393
|
return /* @__PURE__ */ s(
|
|
5405
|
-
|
|
5394
|
+
xr,
|
|
5406
5395
|
{
|
|
5407
5396
|
value: Y,
|
|
5408
5397
|
options: a,
|
|
5409
|
-
type:
|
|
5410
|
-
onOpen: () =>
|
|
5398
|
+
type: T,
|
|
5399
|
+
onOpen: () => O(N),
|
|
5411
5400
|
enableCustomValues: y,
|
|
5412
5401
|
isLoadingOptions: u,
|
|
5413
|
-
...
|
|
5414
|
-
...
|
|
5402
|
+
...W,
|
|
5403
|
+
...S?.enum
|
|
5415
5404
|
}
|
|
5416
5405
|
);
|
|
5417
5406
|
}
|
|
5418
|
-
case ee.includes(
|
|
5407
|
+
case ee.includes(T):
|
|
5419
5408
|
return /* @__PURE__ */ s(
|
|
5420
5409
|
Pt,
|
|
5421
5410
|
{
|
|
5422
5411
|
value: n,
|
|
5423
5412
|
isInherited: c,
|
|
5424
5413
|
columnId: t,
|
|
5425
|
-
cellId:
|
|
5414
|
+
cellId: N,
|
|
5426
5415
|
isMarkdown: i?.widget === "markdown" || // description SHOULD be default markdown, but lets have this here just in case
|
|
5427
5416
|
t === "attrib_description" || t === "description",
|
|
5428
|
-
type:
|
|
5429
|
-
onRequestEdit:
|
|
5430
|
-
getDraftValue:
|
|
5431
|
-
setDraftValue:
|
|
5432
|
-
...
|
|
5433
|
-
...
|
|
5417
|
+
type: T,
|
|
5418
|
+
onRequestEdit: O,
|
|
5419
|
+
getDraftValue: U,
|
|
5420
|
+
setDraftValue: D,
|
|
5421
|
+
...W,
|
|
5422
|
+
...S?.text
|
|
5434
5423
|
}
|
|
5435
5424
|
);
|
|
5436
|
-
case
|
|
5425
|
+
case T === "datetime":
|
|
5437
5426
|
return /* @__PURE__ */ s(
|
|
5438
|
-
|
|
5427
|
+
dr,
|
|
5439
5428
|
{
|
|
5440
5429
|
value: n || void 0,
|
|
5441
5430
|
isInherited: c,
|
|
5442
5431
|
isMidnightExclusive: I,
|
|
5443
|
-
...
|
|
5444
|
-
...
|
|
5432
|
+
...W,
|
|
5433
|
+
...S?.date
|
|
5445
5434
|
}
|
|
5446
5435
|
);
|
|
5447
|
-
case
|
|
5448
|
-
return /* @__PURE__ */ s(Ur, { value: n, ...
|
|
5436
|
+
case T === "boolean":
|
|
5437
|
+
return /* @__PURE__ */ s(Ur, { value: n, ...W, ...S?.boolean });
|
|
5449
5438
|
case m:
|
|
5450
5439
|
return null;
|
|
5451
5440
|
default:
|
|
5452
5441
|
return null;
|
|
5453
5442
|
}
|
|
5454
5443
|
}, [
|
|
5455
|
-
|
|
5444
|
+
N,
|
|
5456
5445
|
n,
|
|
5457
|
-
|
|
5446
|
+
T,
|
|
5458
5447
|
R,
|
|
5459
5448
|
a,
|
|
5460
5449
|
l,
|
|
@@ -5465,22 +5454,22 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5465
5454
|
Ei,
|
|
5466
5455
|
{
|
|
5467
5456
|
...L,
|
|
5468
|
-
onKeyDown: (
|
|
5469
|
-
L.onKeyDown?.(
|
|
5457
|
+
onKeyDown: (W) => {
|
|
5458
|
+
L.onKeyDown?.(W), !(W.defaultPrevented || W.key !== "Enter" || T !== "boolean" || a.length || i?.enumResolver || p || l) && (W.preventDefault(), W.stopPropagation(), M(!n, "Enter"));
|
|
5470
5459
|
},
|
|
5471
|
-
className:
|
|
5460
|
+
className: V(L.className, {
|
|
5472
5461
|
inherited: c && !R,
|
|
5473
5462
|
[Pe]: p,
|
|
5474
5463
|
editable: !p
|
|
5475
5464
|
}),
|
|
5476
5465
|
ref: k,
|
|
5477
|
-
id:
|
|
5466
|
+
id: N,
|
|
5478
5467
|
"data-tooltip": f || (c && !R && P ? "Inherited" : void 0),
|
|
5479
5468
|
"data-tooltip-delay": 200,
|
|
5480
5469
|
children: te
|
|
5481
5470
|
}
|
|
5482
5471
|
);
|
|
5483
|
-
}, Ri = x(
|
|
5472
|
+
}, Ri = x(xe)`
|
|
5484
5473
|
&.expander {
|
|
5485
5474
|
background-color: unset;
|
|
5486
5475
|
padding: 2px;
|
|
@@ -5600,8 +5589,8 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5600
5589
|
rowHeight: c = 40,
|
|
5601
5590
|
columnDisplayConfig: m
|
|
5602
5591
|
}) => {
|
|
5603
|
-
const p = Me(t.entityType), y = c <
|
|
5604
|
-
return /* @__PURE__ */
|
|
5592
|
+
const p = Me(t.entityType), y = c < Zn, u = y ? "compact" : "stacked", h = $t(m, "path", "compact") ?? !0, E = $t(m, "path", "full") ?? !0, d = y ? h : E;
|
|
5593
|
+
return /* @__PURE__ */ z(Ni, { className: u, children: [
|
|
5605
5594
|
o ? /* @__PURE__ */ s(
|
|
5606
5595
|
Ri,
|
|
5607
5596
|
{
|
|
@@ -5612,7 +5601,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5612
5601
|
icon: i ? "expand_more" : "chevron_right"
|
|
5613
5602
|
}
|
|
5614
5603
|
) : null,
|
|
5615
|
-
/* @__PURE__ */ s(Di, { className: u, children: /* @__PURE__ */ s(Ai, { children: /* @__PURE__ */
|
|
5604
|
+
/* @__PURE__ */ s(Di, { className: u, children: /* @__PURE__ */ s(Ai, { children: /* @__PURE__ */ z(Li, { className: u, children: [
|
|
5616
5605
|
/* @__PURE__ */ s(
|
|
5617
5606
|
Qe,
|
|
5618
5607
|
{
|
|
@@ -5624,8 +5613,8 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5624
5613
|
color: t.color || void 0
|
|
5625
5614
|
}
|
|
5626
5615
|
),
|
|
5627
|
-
/* @__PURE__ */
|
|
5628
|
-
d && !p && /* @__PURE__ */
|
|
5616
|
+
/* @__PURE__ */ z(Pi, { className: u, children: [
|
|
5617
|
+
d && !p && /* @__PURE__ */ z("span", { className: "path", children: [
|
|
5629
5618
|
n,
|
|
5630
5619
|
y && n ? "/" : ""
|
|
5631
5620
|
] }),
|
|
@@ -5633,7 +5622,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5633
5622
|
] })
|
|
5634
5623
|
] }) }) })
|
|
5635
5624
|
] });
|
|
5636
|
-
}, $i = x(
|
|
5625
|
+
}, $i = x(Zt)`
|
|
5637
5626
|
position: absolute;
|
|
5638
5627
|
inset: 0;
|
|
5639
5628
|
padding: 4px 8px;
|
|
@@ -5680,17 +5669,17 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5680
5669
|
$i,
|
|
5681
5670
|
{
|
|
5682
5671
|
id: `${e}-${t}`,
|
|
5683
|
-
className:
|
|
5672
|
+
className: V(zi, Pe, l, { loading: c }),
|
|
5684
5673
|
onMouseDown: u,
|
|
5685
5674
|
"data-tooltip-delay": 200,
|
|
5686
|
-
children: /* @__PURE__ */
|
|
5675
|
+
children: /* @__PURE__ */ z(yn, { onMouseDown: y, children: [
|
|
5687
5676
|
a && /* @__PURE__ */ s(Qe, { entity: { entityType: i, subType: a } }),
|
|
5688
5677
|
String(n ?? ""),
|
|
5689
5678
|
/* @__PURE__ */ s(Oi, { icon: "dock_to_left" })
|
|
5690
5679
|
] })
|
|
5691
5680
|
}
|
|
5692
5681
|
);
|
|
5693
|
-
}, Mi = x(
|
|
5682
|
+
}, Mi = x(xe)`
|
|
5694
5683
|
background-color: unset !important;
|
|
5695
5684
|
padding: 2px !important;
|
|
5696
5685
|
cursor: pointer;
|
|
@@ -5764,7 +5753,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5764
5753
|
isExpanded: m,
|
|
5765
5754
|
isEmpty: p,
|
|
5766
5755
|
toggleExpanded: y
|
|
5767
|
-
}) => /* @__PURE__ */
|
|
5756
|
+
}) => /* @__PURE__ */ z(Fi, { id: e, children: [
|
|
5768
5757
|
/* @__PURE__ */ s(
|
|
5769
5758
|
Mi,
|
|
5770
5759
|
{
|
|
@@ -5775,11 +5764,11 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5775
5764
|
icon: m ? "expand_more" : "chevron_right"
|
|
5776
5765
|
}
|
|
5777
5766
|
),
|
|
5778
|
-
/* @__PURE__ */ s(Hi, { children: /* @__PURE__ */ s(Wi, { children: /* @__PURE__ */
|
|
5767
|
+
/* @__PURE__ */ s(Hi, { children: /* @__PURE__ */ s(Wi, { children: /* @__PURE__ */ z(Vi, { children: [
|
|
5779
5768
|
i && /* @__PURE__ */ s(Ki, { src: i, alt: n, className: "img" }),
|
|
5780
5769
|
o && /* @__PURE__ */ s(oe, { icon: o, style: { color: c || void 0 } }),
|
|
5781
5770
|
/* @__PURE__ */ s(Ui, { style: { color: c || void 0 }, children: /* @__PURE__ */ s("span", { className: "label", children: t || n }) }),
|
|
5782
|
-
a !== void 0 && a > 0 ? /* @__PURE__ */
|
|
5771
|
+
a !== void 0 && a > 0 ? /* @__PURE__ */ z(Vt, { children: [
|
|
5783
5772
|
a,
|
|
5784
5773
|
l !== void 0 && ` (${l}%)`
|
|
5785
5774
|
] }) : p ? /* @__PURE__ */ s(Vt, { children: "(Empty)" }) : null
|
|
@@ -5803,7 +5792,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5803
5792
|
height: 100%;
|
|
5804
5793
|
object-fit: contain;
|
|
5805
5794
|
z-index: 20;
|
|
5806
|
-
`, qi = x(
|
|
5795
|
+
`, qi = x(Bn)`
|
|
5807
5796
|
right: 5px;
|
|
5808
5797
|
top: 5px;
|
|
5809
5798
|
`, Qi = ({
|
|
@@ -5817,12 +5806,12 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5817
5806
|
id: c,
|
|
5818
5807
|
...m
|
|
5819
5808
|
}) => {
|
|
5820
|
-
const p = e && t && n && t !== "product", y =
|
|
5821
|
-
return /* @__PURE__ */
|
|
5809
|
+
const p = e && t && n && t !== "product", y = er({ projectName: e, entityType: t, entityId: n, thumbnailHash: o });
|
|
5810
|
+
return /* @__PURE__ */ z(ji, { className: "thumbnail-widget", id: c, children: [
|
|
5822
5811
|
/* @__PURE__ */ s(Bi, { ...m, children: p && /* @__PURE__ */ s(Yi, { src: l || y || void 0 }) }),
|
|
5823
5812
|
a && /* @__PURE__ */ s(qi, {})
|
|
5824
5813
|
] }, l || y);
|
|
5825
|
-
},
|
|
5814
|
+
}, Zi = ut(Qi), Ji = x.div`
|
|
5826
5815
|
display: flex;
|
|
5827
5816
|
align-items: center;
|
|
5828
5817
|
height: 100%;
|
|
@@ -5831,7 +5820,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5831
5820
|
font-style: italic;
|
|
5832
5821
|
color: var(--md-sys-color-outline);
|
|
5833
5822
|
pointer-events: none;
|
|
5834
|
-
`,
|
|
5823
|
+
`, Xi = ({ label: e }) => /* @__PURE__ */ s(Ji, { children: e }), ea = x.div`
|
|
5835
5824
|
display: flex;
|
|
5836
5825
|
align-items: center;
|
|
5837
5826
|
height: 100%;
|
|
@@ -5843,7 +5832,7 @@ const He = (e, t) => `cell-${e}-${t}`, xs = (e) => {
|
|
|
5843
5832
|
`, ta = ({ label: e }) => /* @__PURE__ */ s(ea, { children: e }), na = ({ metaType: e, label: t }) => {
|
|
5844
5833
|
switch (e) {
|
|
5845
5834
|
case "empty":
|
|
5846
|
-
return /* @__PURE__ */ s(
|
|
5835
|
+
return /* @__PURE__ */ s(Xi, { label: t });
|
|
5847
5836
|
case "error":
|
|
5848
5837
|
return /* @__PURE__ */ s(ta, { label: t });
|
|
5849
5838
|
default:
|
|
@@ -5891,7 +5880,7 @@ export {
|
|
|
5891
5880
|
Pe as a7,
|
|
5892
5881
|
vs as a8,
|
|
5893
5882
|
us as a9,
|
|
5894
|
-
|
|
5883
|
+
Xi as aA,
|
|
5895
5884
|
_i as aB,
|
|
5896
5885
|
ot as aC,
|
|
5897
5886
|
Ge as aD,
|
|
@@ -5908,9 +5897,9 @@ export {
|
|
|
5908
5897
|
vt as aO,
|
|
5909
5898
|
Ao as aP,
|
|
5910
5899
|
Ro as aQ,
|
|
5911
|
-
|
|
5900
|
+
Zt as aR,
|
|
5912
5901
|
pi as aS,
|
|
5913
|
-
|
|
5902
|
+
Zi as aT,
|
|
5914
5903
|
_t as aU,
|
|
5915
5904
|
Es as aV,
|
|
5916
5905
|
Is as aW,
|
|
@@ -5927,7 +5916,7 @@ export {
|
|
|
5927
5916
|
cs as ag,
|
|
5928
5917
|
ms as ah,
|
|
5929
5918
|
cn as ai,
|
|
5930
|
-
|
|
5919
|
+
Za as aj,
|
|
5931
5920
|
$o as ak,
|
|
5932
5921
|
is as al,
|
|
5933
5922
|
rt as am,
|
|
@@ -5936,11 +5925,11 @@ export {
|
|
|
5936
5925
|
as as ap,
|
|
5937
5926
|
rs as aq,
|
|
5938
5927
|
Mo as ar,
|
|
5939
|
-
|
|
5940
|
-
|
|
5928
|
+
J as as,
|
|
5929
|
+
X as at,
|
|
5941
5930
|
De as au,
|
|
5942
5931
|
re as av,
|
|
5943
|
-
|
|
5932
|
+
ir as aw,
|
|
5944
5933
|
se as ax,
|
|
5945
5934
|
no as ay,
|
|
5946
5935
|
zi as az,
|
|
@@ -5958,13 +5947,13 @@ export {
|
|
|
5958
5947
|
pe as ba,
|
|
5959
5948
|
tt as bb,
|
|
5960
5949
|
uo as bc,
|
|
5961
|
-
|
|
5950
|
+
Ie as bd,
|
|
5962
5951
|
ai as be,
|
|
5963
5952
|
to as bf,
|
|
5964
5953
|
To as bg,
|
|
5965
5954
|
dn as c,
|
|
5966
|
-
|
|
5967
|
-
|
|
5955
|
+
Xa as d,
|
|
5956
|
+
Ja as e,
|
|
5968
5957
|
wo as f,
|
|
5969
5958
|
Va as g,
|
|
5970
5959
|
Ga as h,
|
|
@@ -5973,13 +5962,13 @@ export {
|
|
|
5973
5962
|
ui as k,
|
|
5974
5963
|
gn as l,
|
|
5975
5964
|
ei as m,
|
|
5976
|
-
|
|
5977
|
-
|
|
5965
|
+
dr as n,
|
|
5966
|
+
xr as o,
|
|
5978
5967
|
xs as p,
|
|
5979
5968
|
hn as q,
|
|
5980
5969
|
lo as r,
|
|
5981
|
-
|
|
5982
|
-
|
|
5970
|
+
Xo as s,
|
|
5971
|
+
Jo as t,
|
|
5983
5972
|
es as u,
|
|
5984
5973
|
xt as v,
|
|
5985
5974
|
Ss as w,
|