@ynput/ayon-frontend-shared 0.4.7 → 0.6.0
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 +684 -649
- package/dist/Feed.es.js +22 -22
- package/dist/ListTable.es.js +78 -67
- package/dist/ProjectTreeTable.es.js +2185 -2132
- package/dist/Slicer.es.js +152 -120
- package/dist/Views.es.js +1 -1
- package/dist/api.es.js +332 -329
- package/dist/chunks/Actions.es.js +7 -7
- package/dist/chunks/ColumnDropIndicator.es.js +127 -241
- package/dist/chunks/DeleteEntitiesContext.es.js +109 -109
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/DetailsPanelContext.es.js +155 -0
- package/dist/chunks/EntityPath.es.js +40 -40
- package/dist/chunks/EntityPickerDialog.es.js +1 -1
- package/dist/chunks/EntityTooltip.es.js +3 -3
- package/dist/chunks/EntityUpdatesContext.es.js +1 -1
- package/dist/chunks/Feed.es.js +2208 -2611
- package/dist/chunks/FilterErrorActions.es.js +5 -5
- package/dist/chunks/GlobalContext.es.js +21 -21
- package/dist/chunks/InfoMessage.es.js +146 -0
- package/dist/chunks/Menu.es.js +6 -6
- package/dist/chunks/MenuContext.es.js +51 -240
- package/dist/chunks/MenuItem.es.js +1 -1
- package/dist/chunks/MetaWidget.es.js +3211 -3761
- package/dist/chunks/NewEntityContext.es.js +539 -544
- package/dist/chunks/PlayableIcon.es.js +4261 -1163
- package/dist/chunks/ProjectContext.es.js +2 -2
- package/dist/chunks/ProjectFoldersContext.es.js +84 -76
- package/dist/chunks/RepresentationsList.es.js +3 -3
- package/dist/chunks/ReviewablesSelector.es.js +396 -384
- package/dist/chunks/SimpleForm.es.js +9 -9
- package/dist/chunks/SimpleTable.es.js +286 -283
- package/dist/chunks/Slicer.es.js +1129 -689
- package/dist/chunks/TableSettingsFallback.es.js +6 -6
- package/dist/chunks/ThumbnailSimple.es.js +410 -61
- package/dist/chunks/VersionUploadContext.es.js +30 -30
- package/dist/chunks/ViewsContext.es.js +97 -97
- package/dist/chunks/Watchers.es.js +628 -598
- package/dist/chunks/entityDefinitions.es.js +276 -134
- package/dist/chunks/expandRelativeDates.es.js +27 -0
- package/dist/chunks/getBundleMode.es.js +16 -61
- package/dist/chunks/getUris.es.js +329 -322
- package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
- package/dist/chunks/searchTerms.es.js +186 -173
- package/dist/chunks/uriUtils.es.js +48 -0
- package/dist/chunks/useAttributeEnums.es.js +69 -61
- package/dist/chunks/useColumnDragRestriction.es.js +37 -27
- package/dist/chunks/useDateRangeFilter.es.js +3 -3
- package/dist/chunks/useLocalStorage.es.js +8 -8
- package/dist/chunks/useSessionStorage.es.js +61 -0
- package/dist/chunks/viewUpdateHelper.es.js +8 -8
- package/dist/components.es.js +199 -194
- package/dist/context.es.js +60 -58
- package/dist/hooks.es.js +108 -101
- package/dist/index.es.js +20 -14
- package/dist/types/Actions.d.ts +16 -16
- package/dist/types/ContextMenu.d.ts +16 -16
- package/dist/types/DetailsPanel.d.ts +22 -16
- package/dist/types/EntityPickerDialog.d.ts +16 -16
- package/dist/types/Feed.d.ts +16 -16
- package/dist/types/ListTable.d.ts +16 -16
- package/dist/types/NewEntity.d.ts +16 -16
- package/dist/types/ProjectTreeTable.d.ts +48 -22
- package/dist/types/RepresentationsList.d.ts +19 -16
- package/dist/types/SimpleTable.d.ts +17 -16
- package/dist/types/Slicer.d.ts +119 -34
- package/dist/types/Views.d.ts +17 -17
- package/dist/types/api.d.ts +404 -95
- package/dist/types/components.d.ts +86 -25
- package/dist/types/context.d.ts +60 -17
- package/dist/types/hooks.d.ts +16 -16
- package/dist/types/index.d.ts +16 -16
- package/dist/types/util.d.ts +16 -16
- package/dist/util.es.js +108 -97
- package/package.json +26 -13
- package/dist/chunks/mentionTypeOptions.es.js +0 -15
- package/dist/chunks/useSlicerSplitter.es.js +0 -18
|
@@ -9,51 +9,61 @@ import { createPortal as sn } from "react-dom";
|
|
|
9
9
|
import { DndContext as kt, closestCenter as Ct, DragOverlay as Et, useSensors as ln, useSensor as cn, PointerSensor as dn } from "@dnd-kit/core";
|
|
10
10
|
import { useSortable as It, SortableContext as Ke, verticalListSortingStrategy as Ge, arrayMove as un } from "@dnd-kit/sortable";
|
|
11
11
|
import { CSS as Tt } from "@dnd-kit/utilities";
|
|
12
|
-
import { I as eo
|
|
13
|
-
import { S as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import { I as eo } from "./InfoMessage.es.js";
|
|
13
|
+
import { S as pn } from "./SimpleForm.es.js";
|
|
14
|
+
import { bq as to, aY as no, bo as mn, bn as gn, bp as $t, bi as oo, b1 as ro, bm as hn, bg as vn, be as io } from "./searchTerms.es.js";
|
|
15
|
+
import { bj as ao, bp as so, cB as lo, bd as co, dz as ae, cj as uo } from "./getUris.es.js";
|
|
16
16
|
import "primereact/confirmdialog";
|
|
17
|
-
import { u as
|
|
17
|
+
import { u as po, g as mo, v as go } from "./Watchers.es.js";
|
|
18
18
|
import { matchSorter as Ft } from "match-sorter";
|
|
19
|
-
import { J as
|
|
20
|
-
import { u as
|
|
21
|
-
import { toast as
|
|
19
|
+
import { J as ho } from "./JsonViewer.es.js";
|
|
20
|
+
import { u as fn } from "./GlobalContext.es.js";
|
|
21
|
+
import { toast as vo } from "react-toastify";
|
|
22
22
|
import { g as ve } from "./parseHtmlToPlainTextWithLinks.es.js";
|
|
23
23
|
import "uuid";
|
|
24
|
-
import {
|
|
25
|
-
import { Link as
|
|
26
|
-
import {
|
|
24
|
+
import { a as fo } from "./useLocalStorage.es.js";
|
|
25
|
+
import { Link as bo } from "react-router-dom";
|
|
26
|
+
import { aR as Z, u as ke, a as We, b0 as yo, b5 as xo, ah as xe, aS as oe, Y as wo, aY as Mt, aV as Vt, aZ as Bt, b8 as So } from "./MetaWidget.es.js";
|
|
27
27
|
import { k as Xe } from "./DeleteEntitiesContext.es.js";
|
|
28
28
|
import "date-fns";
|
|
29
|
-
import
|
|
29
|
+
import "lexical";
|
|
30
|
+
import "@lexical/markdown";
|
|
31
|
+
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
32
|
+
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
33
|
+
import "@lexical/code";
|
|
34
|
+
import "@lexical/list";
|
|
35
|
+
import "@lexical/rich-text";
|
|
36
|
+
import "@lexical/selection";
|
|
37
|
+
import "@lexical/utils";
|
|
38
|
+
import { a as bn } from "./ProjectContext.es.js";
|
|
30
39
|
import "@tanstack/react-table";
|
|
31
|
-
import { a as
|
|
40
|
+
import { a as ko } from "./useCreateContextMenu.es.js";
|
|
32
41
|
import "@module-federation/enhanced/runtime";
|
|
33
42
|
import "semver";
|
|
34
43
|
import "./ProjectFoldersContextInstance.es.js";
|
|
35
44
|
import { u as Qe } from "./MenuContext.es.js";
|
|
36
45
|
import "react-redux";
|
|
37
46
|
import "./ViewsContext.es.js";
|
|
38
|
-
import { T as
|
|
39
|
-
import { useDebounce as
|
|
40
|
-
import { b as
|
|
47
|
+
import { T as Co, E as Eo } from "./EntityPickerDialog.es.js";
|
|
48
|
+
import { useDebounce as Io } from "primereact/hooks";
|
|
49
|
+
import { b as To, T as yn } from "./useColumnDragRestriction.es.js";
|
|
41
50
|
import "@tanstack/react-virtual";
|
|
51
|
+
import { d as No, e as xn, f as Po } from "./ColumnDropIndicator.es.js";
|
|
42
52
|
import { g as wn } from "./getEntityTypeIcon.es.js";
|
|
43
53
|
import "./EmptyPlaceholder.es.js";
|
|
44
|
-
import {
|
|
45
|
-
import { D as
|
|
54
|
+
import { M as _o, a as Ao, c as Do } from "./Menu.es.js";
|
|
55
|
+
import { D as Lo, R as Oo } from "./realtimeUpdatesUtils.es.js";
|
|
46
56
|
import "./MenuItem.es.js";
|
|
47
57
|
import { a as Sn } from "./VersionUploadContext.es.js";
|
|
48
|
-
import { Skeleton as
|
|
49
|
-
import
|
|
50
|
-
const
|
|
58
|
+
import { Skeleton as Ro } from "primereact/skeleton";
|
|
59
|
+
import $o from "react-perfect-scrollbar";
|
|
60
|
+
const Fo = g.div`
|
|
51
61
|
display: flex;
|
|
52
62
|
width: 100%;
|
|
53
63
|
height: 100%;
|
|
54
64
|
gap: 0;
|
|
55
65
|
padding: ${(e) => e.$padding};
|
|
56
|
-
`,
|
|
66
|
+
`, Mo = g.div`
|
|
57
67
|
width: ${(e) => e.$config.width || "15%"};
|
|
58
68
|
min-width: ${(e) => e.$config.minWidth || "2%"};
|
|
59
69
|
max-width: ${(e) => e.$config.maxWidth || "600px"};
|
|
@@ -61,7 +71,7 @@ const $o = g.div`
|
|
|
61
71
|
flex-shrink: 0;
|
|
62
72
|
border-radius: 4px;
|
|
63
73
|
background-color: var(--md-sys-color-surface-container);
|
|
64
|
-
`,
|
|
74
|
+
`, Vo = g.div`
|
|
65
75
|
display: grid;
|
|
66
76
|
grid-template-columns: repeat(${(e) => e.$config.columns}, 1fr);
|
|
67
77
|
grid-template-rows: repeat(${(e) => e.$config.rows}, 1fr);
|
|
@@ -69,11 +79,11 @@ const $o = g.div`
|
|
|
69
79
|
flex: 1;
|
|
70
80
|
padding: 1rem;
|
|
71
81
|
overflow: auto;
|
|
72
|
-
`,
|
|
82
|
+
`, Bo = g.div`
|
|
73
83
|
border-radius: 4px;
|
|
74
84
|
min-height: ${(e) => e.$minHeight};
|
|
75
85
|
background-color: var(--md-sys-color-surface-container);
|
|
76
|
-
`,
|
|
86
|
+
`, ps = ({
|
|
77
87
|
showSidebar: e = !0,
|
|
78
88
|
sidebarConfig: t = {},
|
|
79
89
|
gridConfig: o = { columns: 3, rows: 3 },
|
|
@@ -82,10 +92,10 @@ const $o = g.div`
|
|
|
82
92
|
...s
|
|
83
93
|
}) => {
|
|
84
94
|
const i = o.columns * o.rows;
|
|
85
|
-
return /* @__PURE__ */ k(
|
|
86
|
-
e && /* @__PURE__ */ n(
|
|
87
|
-
/* @__PURE__ */ n(
|
|
88
|
-
|
|
95
|
+
return /* @__PURE__ */ k(Fo, { $padding: r, ...s, children: [
|
|
96
|
+
e && /* @__PURE__ */ n(Mo, { className: "loading", $config: t, ...a?.sidebar }),
|
|
97
|
+
/* @__PURE__ */ n(Vo, { $config: o, ...a?.grid, children: Array.from({ length: i }).map((v, b) => /* @__PURE__ */ n(
|
|
98
|
+
Bo,
|
|
89
99
|
{
|
|
90
100
|
className: "loading",
|
|
91
101
|
$minHeight: o.itemMinHeight || "200px",
|
|
@@ -94,7 +104,7 @@ const $o = g.div`
|
|
|
94
104
|
b
|
|
95
105
|
)) })
|
|
96
106
|
] });
|
|
97
|
-
},
|
|
107
|
+
}, ms = g.div`
|
|
98
108
|
position: relative;
|
|
99
109
|
width: 100%;
|
|
100
110
|
|
|
@@ -102,7 +112,7 @@ const $o = g.div`
|
|
|
102
112
|
min-height: 32px;
|
|
103
113
|
max-height: 32px;
|
|
104
114
|
}
|
|
105
|
-
`,
|
|
115
|
+
`, gs = g.ul`
|
|
106
116
|
position: absolute;
|
|
107
117
|
top: 100%;
|
|
108
118
|
left: 0;
|
|
@@ -131,7 +141,7 @@ const $o = g.div`
|
|
|
131
141
|
.tip {
|
|
132
142
|
color: var(--md-sys-color-outline);
|
|
133
143
|
}
|
|
134
|
-
`,
|
|
144
|
+
`, Uo = g.div`
|
|
135
145
|
display: flex;
|
|
136
146
|
align-items: center;
|
|
137
147
|
gap: var(--base-gap-medium);
|
|
@@ -175,7 +185,7 @@ const $o = g.div`
|
|
|
175
185
|
padding: 2px;
|
|
176
186
|
font-size: 20px;
|
|
177
187
|
}
|
|
178
|
-
`,
|
|
188
|
+
`, Ho = "__everyone__", zo = "__guests__", Ut = "group:", Ht = "team:", zt = "user:", jt = "guest:", jo = g(G)`
|
|
179
189
|
font-size: ${({ $size: e }) => `${e}px`};
|
|
180
190
|
&.withBackground {
|
|
181
191
|
display: flex;
|
|
@@ -185,7 +195,7 @@ const $o = g.div`
|
|
|
185
195
|
background-color: var(--md-sys-color-surface-container-high);
|
|
186
196
|
padding: 3px;
|
|
187
197
|
}
|
|
188
|
-
`,
|
|
198
|
+
`, Ko = ({
|
|
189
199
|
shareType: e,
|
|
190
200
|
name: t,
|
|
191
201
|
label: o,
|
|
@@ -196,7 +206,7 @@ const $o = g.div`
|
|
|
196
206
|
let i = e, v = t;
|
|
197
207
|
i || (t.startsWith(zt) ? (i = "user", v = t.slice(zt.length)) : t.startsWith(Ut) ? (i = "group", v = t.slice(Ut.length)) : t.startsWith(Ht) ? (i = "team", v = t.slice(Ht.length)) : t.startsWith(jt) && (i = "guest", v = t.slice(jt.length)));
|
|
198
208
|
const b = (c, u) => /* @__PURE__ */ n(
|
|
199
|
-
|
|
209
|
+
jo,
|
|
200
210
|
{
|
|
201
211
|
className: Q({ withBackground: a }),
|
|
202
212
|
icon: c,
|
|
@@ -205,13 +215,13 @@ const $o = g.div`
|
|
|
205
215
|
$size: a ? r - 6 : r
|
|
206
216
|
}
|
|
207
217
|
);
|
|
208
|
-
return i === "user" ? /* @__PURE__ */ n(Jn, { name: v, fullName: s ? o : void 0, size: r }) : i === "group" ? b("shield_person", "Access group") : i === "team" ? b("groups", "Team") : i === "guest" || t ===
|
|
209
|
-
},
|
|
218
|
+
return i === "user" ? /* @__PURE__ */ n(Jn, { name: v, fullName: s ? o : void 0, size: r }) : i === "group" ? b("shield_person", "Access group") : i === "team" ? b("groups", "Team") : i === "guest" || t === zo ? b("badge", "Guest user") : t === Ho ? b("groups", "Everyone with access to the project") : b("person");
|
|
219
|
+
}, hs = {
|
|
210
220
|
0: "No access",
|
|
211
221
|
10: "Viewer",
|
|
212
222
|
20: "Editor",
|
|
213
223
|
30: "Admin"
|
|
214
|
-
},
|
|
224
|
+
}, vs = le(
|
|
215
225
|
({
|
|
216
226
|
name: e,
|
|
217
227
|
label: t,
|
|
@@ -227,8 +237,8 @@ const $o = g.div`
|
|
|
227
237
|
...l
|
|
228
238
|
}, m) => {
|
|
229
239
|
const x = r === "user" || r === "guest", d = x || v, h = x ? e : r;
|
|
230
|
-
return /* @__PURE__ */ k(
|
|
231
|
-
/* @__PURE__ */ n(
|
|
240
|
+
return /* @__PURE__ */ k(Uo, { ...l, ref: m, className: Q(u, { compact: i }), children: [
|
|
241
|
+
/* @__PURE__ */ n(Ko, { shareType: r, name: e, label: t, icon: o }),
|
|
232
242
|
/* @__PURE__ */ k("span", { className: "title-label", children: [
|
|
233
243
|
t || e,
|
|
234
244
|
a ? /* @__PURE__ */ n("span", { className: "name", children: "(you)" }) : d && /* @__PURE__ */ n("span", { className: Q("name", { "float-right": v }), children: h }),
|
|
@@ -238,7 +248,7 @@ const $o = g.div`
|
|
|
238
248
|
s && /* @__PURE__ */ n("span", { className: "owner", children: "Owner" })
|
|
239
249
|
] });
|
|
240
250
|
}
|
|
241
|
-
),
|
|
251
|
+
), Go = g.div`
|
|
242
252
|
display: flex;
|
|
243
253
|
flex-direction: row;
|
|
244
254
|
align-items: center;
|
|
@@ -248,7 +258,7 @@ const $o = g.div`
|
|
|
248
258
|
input {
|
|
249
259
|
width: 100%;
|
|
250
260
|
}
|
|
251
|
-
`,
|
|
261
|
+
`, Yo = ({ value: e = {}, isMin: t, isFloat: o = !1, onChange: r }) => {
|
|
252
262
|
const { le: a, lt: s, ge: i, gt: v } = e, b = i ?? v, c = a ?? s, u = K(null), l = t ? b : c, m = t ? "g" : "l", x = m + "e", d = m + "t", [h, E] = U(e[x] != null || !o);
|
|
253
263
|
J(() => {
|
|
254
264
|
o ? (l !== void 0 && r({ [x]: String(l), [d]: void 0 }), E(!0)) : (r({ [x]: parseInt(String(l))?.toString(), [d]: void 0 }), E(!0));
|
|
@@ -260,7 +270,7 @@ const $o = g.div`
|
|
|
260
270
|
const $ = !h;
|
|
261
271
|
E($), r($ ? { [d]: void 0, [x]: l } : { [d]: l, [x]: void 0 });
|
|
262
272
|
}, p = t ? "greater" : "less", y = t ? ">" : "<", w = t ? "≥" : "≤", P = `Determines if the value should be '${p} than or equal to' (${w}) or 'strictly ${p} than' (${y}). Currently: ${h ? w : y}`;
|
|
263
|
-
return /* @__PURE__ */ k(
|
|
273
|
+
return /* @__PURE__ */ k(Go, { children: [
|
|
264
274
|
/* @__PURE__ */ n(
|
|
265
275
|
on,
|
|
266
276
|
{
|
|
@@ -283,7 +293,7 @@ const $o = g.div`
|
|
|
283
293
|
}
|
|
284
294
|
)
|
|
285
295
|
] });
|
|
286
|
-
},
|
|
296
|
+
}, qo = xt`
|
|
287
297
|
display: flex;
|
|
288
298
|
flex-direction: column;
|
|
289
299
|
align-items: center;
|
|
@@ -303,12 +313,12 @@ const $o = g.div`
|
|
|
303
313
|
&:hover {
|
|
304
314
|
background-color: var(--md-sys-color-surface-container-low-hover);
|
|
305
315
|
}
|
|
306
|
-
`,
|
|
316
|
+
`, Wo = g.div`
|
|
307
317
|
display: flex;
|
|
308
318
|
flex-direction: column;
|
|
309
319
|
justify-content: stretch;
|
|
310
320
|
gap: 4px;
|
|
311
|
-
`,
|
|
321
|
+
`, Xo = g.div`
|
|
312
322
|
justify-content: stretch;
|
|
313
323
|
border-radius: 4px;
|
|
314
324
|
overflow: hidden;
|
|
@@ -316,7 +326,7 @@ const $o = g.div`
|
|
|
316
326
|
&.dragged {
|
|
317
327
|
opacity: 0;
|
|
318
328
|
}
|
|
319
|
-
`,
|
|
329
|
+
`, Qo = g.div`
|
|
320
330
|
${Nt}
|
|
321
331
|
cursor: pointer;
|
|
322
332
|
user-select: none;
|
|
@@ -357,7 +367,7 @@ const $o = g.div`
|
|
|
357
367
|
.spacer {
|
|
358
368
|
flex-grow: 1;
|
|
359
369
|
}
|
|
360
|
-
`,
|
|
370
|
+
`, Jo = g.div`
|
|
361
371
|
display: grid;
|
|
362
372
|
grid-template-rows: 0fr;
|
|
363
373
|
overflow: hidden;
|
|
@@ -365,8 +375,8 @@ const $o = g.div`
|
|
|
365
375
|
&.expanded {
|
|
366
376
|
grid-template-rows: 1fr;
|
|
367
377
|
}
|
|
368
|
-
`,
|
|
369
|
-
${
|
|
378
|
+
`, Zo = g.div`
|
|
379
|
+
${qo}
|
|
370
380
|
align-items: stretch;
|
|
371
381
|
padding: 0 8px;
|
|
372
382
|
min-height: 0;
|
|
@@ -386,11 +396,11 @@ const $o = g.div`
|
|
|
386
396
|
`, Kt = g.div`
|
|
387
397
|
${Nt}
|
|
388
398
|
gap: 4px;
|
|
389
|
-
`,
|
|
399
|
+
`, er = g.div`
|
|
390
400
|
border-radius: 4px;
|
|
391
401
|
width: 14px;
|
|
392
402
|
height: 14px;
|
|
393
|
-
`,
|
|
403
|
+
`, tr = g(Wn)`
|
|
394
404
|
flex-grow: 1;
|
|
395
405
|
width: 100%;
|
|
396
406
|
button div {
|
|
@@ -421,7 +431,7 @@ const $o = g.div`
|
|
|
421
431
|
width: 100%;
|
|
422
432
|
padding-left: 8px;
|
|
423
433
|
user-select: none;
|
|
424
|
-
`,
|
|
434
|
+
`, nr = g(Cn)`
|
|
425
435
|
${kn}
|
|
426
436
|
position: relative;
|
|
427
437
|
cursor: pointer;
|
|
@@ -432,7 +442,7 @@ const $o = g.div`
|
|
|
432
442
|
position: absolute;
|
|
433
443
|
visibility: hidden;
|
|
434
444
|
}
|
|
435
|
-
`,
|
|
445
|
+
`, or = ({
|
|
436
446
|
item: e,
|
|
437
447
|
onChange: t,
|
|
438
448
|
onCommit: o,
|
|
@@ -452,7 +462,7 @@ const $o = g.div`
|
|
|
452
462
|
}, [v, e.isNewAttribute]), J(() => {
|
|
453
463
|
b && !v && !e.isNewAttribute && setTimeout(() => S.current?.focus(), 250);
|
|
454
464
|
}, [b, v, e.isNewAttribute]), /* @__PURE__ */ k(
|
|
455
|
-
|
|
465
|
+
Zo,
|
|
456
466
|
{
|
|
457
467
|
...u?.wrapper,
|
|
458
468
|
...l,
|
|
@@ -524,7 +534,7 @@ const $o = g.div`
|
|
|
524
534
|
}
|
|
525
535
|
),
|
|
526
536
|
/* @__PURE__ */ n(
|
|
527
|
-
|
|
537
|
+
tr,
|
|
528
538
|
{
|
|
529
539
|
ref: y,
|
|
530
540
|
value: [d || "question_mark"],
|
|
@@ -557,7 +567,7 @@ const $o = g.div`
|
|
|
557
567
|
/* @__PURE__ */ n(Fe, { ...u?.color?.label, children: "Color" }),
|
|
558
568
|
/* @__PURE__ */ k(Yt, { style: { position: "relative" }, children: [
|
|
559
569
|
/* @__PURE__ */ k(
|
|
560
|
-
|
|
570
|
+
nr,
|
|
561
571
|
{
|
|
562
572
|
className: h ? "active" : "",
|
|
563
573
|
style: { backgroundColor: h || void 0 },
|
|
@@ -617,7 +627,7 @@ const $o = g.div`
|
|
|
617
627
|
transform: Tt.Translate.toString(E)
|
|
618
628
|
};
|
|
619
629
|
return /* @__PURE__ */ k(
|
|
620
|
-
|
|
630
|
+
Xo,
|
|
621
631
|
{
|
|
622
632
|
ref: h,
|
|
623
633
|
style: f,
|
|
@@ -626,7 +636,7 @@ const $o = g.div`
|
|
|
626
636
|
className: Q(v.className, i?.wrapper?.className, { dragged: t }),
|
|
627
637
|
children: [
|
|
628
638
|
/* @__PURE__ */ k(
|
|
629
|
-
|
|
639
|
+
Qo,
|
|
630
640
|
{
|
|
631
641
|
...i?.header,
|
|
632
642
|
onClick: () => {
|
|
@@ -634,7 +644,7 @@ const $o = g.div`
|
|
|
634
644
|
},
|
|
635
645
|
className: Q(i?.header?.className, { expanded: m }),
|
|
636
646
|
children: [
|
|
637
|
-
l && /* @__PURE__ */ n(
|
|
647
|
+
l && /* @__PURE__ */ n(er, { style: { backgroundColor: l } }),
|
|
638
648
|
u && /* @__PURE__ */ n(G, { className: "icon", icon: u }),
|
|
639
649
|
/* @__PURE__ */ k("span", { children: [
|
|
640
650
|
" ",
|
|
@@ -656,8 +666,8 @@ const $o = g.div`
|
|
|
656
666
|
]
|
|
657
667
|
}
|
|
658
668
|
),
|
|
659
|
-
/* @__PURE__ */ n(
|
|
660
|
-
|
|
669
|
+
/* @__PURE__ */ n(Jo, { className: Q({ expanded: m }), children: /* @__PURE__ */ n(
|
|
670
|
+
or,
|
|
661
671
|
{
|
|
662
672
|
item: e,
|
|
663
673
|
onChange: o,
|
|
@@ -674,7 +684,7 @@ const $o = g.div`
|
|
|
674
684
|
]
|
|
675
685
|
}
|
|
676
686
|
);
|
|
677
|
-
},
|
|
687
|
+
}, rr = ({
|
|
678
688
|
creator: e,
|
|
679
689
|
initialData: t,
|
|
680
690
|
onChange: o,
|
|
@@ -743,19 +753,19 @@ const $o = g.div`
|
|
|
743
753
|
for (; t.includes(v); )
|
|
744
754
|
v = i + o + s++;
|
|
745
755
|
return v;
|
|
746
|
-
},
|
|
756
|
+
}, ir = () => ({
|
|
747
757
|
id: je(),
|
|
748
758
|
isExpanded: !0,
|
|
749
759
|
label: "",
|
|
750
760
|
value: "",
|
|
751
761
|
isLabelFocused: !0,
|
|
752
762
|
isNewAttribute: !1
|
|
753
|
-
}),
|
|
763
|
+
}), ar = (e) => e.filter((t) => t.label !== "" && t.value !== "").map(({ label: t, value: o, icon: r, color: a }) => ({
|
|
754
764
|
label: t,
|
|
755
765
|
value: o,
|
|
756
766
|
icon: r || void 0,
|
|
757
767
|
color: a || void 0
|
|
758
|
-
})),
|
|
768
|
+
})), sr = (e) => e.map(({ label: t, value: o, icon: r, color: a }) => ({
|
|
759
769
|
id: je(),
|
|
760
770
|
isExpanded: !1,
|
|
761
771
|
label: t,
|
|
@@ -764,7 +774,7 @@ const $o = g.div`
|
|
|
764
774
|
color: a,
|
|
765
775
|
isLabelFocused: !1,
|
|
766
776
|
isNewAttribute: !1
|
|
767
|
-
})),
|
|
777
|
+
})), lr = (e, t) => t.map((o, r) => {
|
|
768
778
|
const a = e[r];
|
|
769
779
|
return a ? {
|
|
770
780
|
...o,
|
|
@@ -773,7 +783,7 @@ const $o = g.div`
|
|
|
773
783
|
isLabelFocused: a.isLabelFocused,
|
|
774
784
|
isNewAttribute: a.isNewAttribute
|
|
775
785
|
} : o;
|
|
776
|
-
}),
|
|
786
|
+
}), cr = ({ values: e, onChange: t, onCommit: o, pt: r, ...a }) => {
|
|
777
787
|
if (!e)
|
|
778
788
|
return null;
|
|
779
789
|
const {
|
|
@@ -784,20 +794,20 @@ const $o = g.div`
|
|
|
784
794
|
handleCommitItem: c,
|
|
785
795
|
handleDuplicateItem: u,
|
|
786
796
|
handleDraggableEnd: l
|
|
787
|
-
} =
|
|
788
|
-
creator:
|
|
789
|
-
initialData:
|
|
797
|
+
} = rr({
|
|
798
|
+
creator: ir,
|
|
799
|
+
initialData: sr(e),
|
|
790
800
|
onChange: t,
|
|
791
801
|
onCommit: o,
|
|
792
|
-
normalizer:
|
|
793
|
-
mergeIncomingData:
|
|
802
|
+
normalizer: ar,
|
|
803
|
+
mergeIncomingData: lr
|
|
794
804
|
}), m = (S) => {
|
|
795
805
|
h(S.active.id);
|
|
796
806
|
}, x = (S) => {
|
|
797
807
|
h(null), l(S);
|
|
798
808
|
}, [d, h] = U();
|
|
799
809
|
let E;
|
|
800
|
-
return d && (E = s.find((S) => S.id === d)), /* @__PURE__ */ n(me, { children: /* @__PURE__ */ k(
|
|
810
|
+
return d && (E = s.find((S) => S.id === d)), /* @__PURE__ */ n(me, { children: /* @__PURE__ */ k(Wo, { ...a, children: [
|
|
801
811
|
/* @__PURE__ */ k(
|
|
802
812
|
kt,
|
|
803
813
|
{
|
|
@@ -876,12 +886,12 @@ const $o = g.div`
|
|
|
876
886
|
flex: none;
|
|
877
887
|
width: 20px;
|
|
878
888
|
}
|
|
879
|
-
`, En = ({ icon: e, color: t, reserveSpace: o }) =>
|
|
889
|
+
`, En = ({ icon: e, color: t, reserveSpace: o }) => to(e) ? /* @__PURE__ */ n("img", { src: e, alt: "" }) : e ? /* @__PURE__ */ n(G, { icon: e, style: { color: t } }) : o ? /* @__PURE__ */ n("span", { className: "icon-slot" }) : null, dr = 8, In = 10, ur = g.div`
|
|
880
890
|
display: flex;
|
|
881
891
|
gap: var(--base-gap-large);
|
|
882
892
|
flex: 1;
|
|
883
893
|
min-height: 0;
|
|
884
|
-
`,
|
|
894
|
+
`, pr = g.div`
|
|
885
895
|
display: flex;
|
|
886
896
|
flex-direction: column;
|
|
887
897
|
gap: var(--base-gap-large);
|
|
@@ -907,15 +917,15 @@ const $o = g.div`
|
|
|
907
917
|
font-weight: 500;
|
|
908
918
|
color: var(--md-sys-color-outline);
|
|
909
919
|
padding: 4px 0;
|
|
910
|
-
`,
|
|
920
|
+
`, mr = g.div`
|
|
911
921
|
display: flex;
|
|
912
922
|
flex-direction: column;
|
|
913
923
|
gap: var(--base-gap-large);
|
|
914
924
|
flex: 1;
|
|
915
925
|
min-width: 0;
|
|
916
|
-
`,
|
|
926
|
+
`, gr = g.span`
|
|
917
927
|
color: var(--md-sys-color-outline);
|
|
918
|
-
`,
|
|
928
|
+
`, hr = g.div`
|
|
919
929
|
display: flex;
|
|
920
930
|
flex-direction: column;
|
|
921
931
|
gap: var(--base-gap-large);
|
|
@@ -925,7 +935,7 @@ const $o = g.div`
|
|
|
925
935
|
padding: var(--padding-m);
|
|
926
936
|
border-radius: var(--border-radius-m);
|
|
927
937
|
background-color: var(--md-sys-color-surface-container);
|
|
928
|
-
`,
|
|
938
|
+
`, vr = g(Je)`
|
|
929
939
|
.value {
|
|
930
940
|
margin-left: auto;
|
|
931
941
|
flex: none;
|
|
@@ -934,8 +944,8 @@ const $o = g.div`
|
|
|
934
944
|
}
|
|
935
945
|
`, we = g.span`
|
|
936
946
|
color: var(--md-sys-color-outline);
|
|
937
|
-
`,
|
|
938
|
-
const { projects: o } =
|
|
947
|
+
`, fr = ({ value: e, onChange: t }) => {
|
|
948
|
+
const { projects: o } = fn(), r = o.active.map((a) => ({
|
|
939
949
|
value: a.name,
|
|
940
950
|
label: a.label || a.name
|
|
941
951
|
}));
|
|
@@ -952,7 +962,7 @@ const $o = g.div`
|
|
|
952
962
|
}
|
|
953
963
|
);
|
|
954
964
|
}, Tn = ({ value: e, onChange: t }) => {
|
|
955
|
-
const { data: o = [], isLoading: r } =
|
|
965
|
+
const { data: o = [], isLoading: r } = ao({}), a = o.map((s) => ({
|
|
956
966
|
value: s.name,
|
|
957
967
|
label: s.fullName || s.name
|
|
958
968
|
}));
|
|
@@ -968,27 +978,27 @@ const $o = g.div`
|
|
|
968
978
|
widthExpand: !0
|
|
969
979
|
}
|
|
970
980
|
);
|
|
971
|
-
},
|
|
972
|
-
project_name:
|
|
981
|
+
}, br = {
|
|
982
|
+
project_name: fr,
|
|
973
983
|
user: Tn
|
|
974
|
-
},
|
|
975
|
-
const [r, a] = U({}), [s, i] = U(t), [v, b] = U(""), { user: c } =
|
|
984
|
+
}, yr = ["label", (e) => String(e.value), "description", "fulltext"], xr = ({ resolver: e, settings: t, onClose: o }) => {
|
|
985
|
+
const [r, a] = U({}), [s, i] = U(t), [v, b] = U(""), { user: c } = fn(), u = e.settingsForm || [], l = new Set(u.map((T) => T.name)), m = e.acceptedParams || {}, x = !!c?.data?.isAdmin, d = Object.keys(m).filter(
|
|
976
986
|
(T) => !l.has(T) && (T !== "user" || x)
|
|
977
987
|
), h = x && !("user" in m), E = X(
|
|
978
988
|
() => ({ ...s, ...r }),
|
|
979
989
|
[s, r]
|
|
980
|
-
), { data: S, isFetching: f, isError: p } =
|
|
990
|
+
), { data: S, isFetching: f, isError: p } = no({
|
|
981
991
|
enumName: e.name,
|
|
982
992
|
params: E
|
|
983
993
|
}), y = X(
|
|
984
|
-
() =>
|
|
994
|
+
() => mn(S?.items || []).map((T) => ({
|
|
985
995
|
...T,
|
|
986
|
-
icon:
|
|
996
|
+
icon: gn(T.icon)
|
|
987
997
|
})),
|
|
988
998
|
[S]
|
|
989
999
|
), w = p || !!S?.error, P = v.trim(), $ = X(
|
|
990
1000
|
() => P ? Ft(y, P, {
|
|
991
|
-
keys:
|
|
1001
|
+
keys: yr,
|
|
992
1002
|
threshold: Ft.rankings.CONTAINS
|
|
993
1003
|
}) : y,
|
|
994
1004
|
[y, P]
|
|
@@ -1003,7 +1013,7 @@ const $o = g.div`
|
|
|
1003
1013
|
}
|
|
1004
1014
|
) }),
|
|
1005
1015
|
d.map((T) => {
|
|
1006
|
-
const V = $t(T) ?
|
|
1016
|
+
const V = $t(T) ? br[T] : void 0;
|
|
1007
1017
|
return /* @__PURE__ */ n(te, { label: T, children: V && $t(T) ? /* @__PURE__ */ n(
|
|
1008
1018
|
V,
|
|
1009
1019
|
{
|
|
@@ -1014,8 +1024,8 @@ const $o = g.div`
|
|
|
1014
1024
|
})
|
|
1015
1025
|
] }), z = () => {
|
|
1016
1026
|
if (f)
|
|
1017
|
-
return Array.from({ length:
|
|
1018
|
-
if (w) return /* @__PURE__ */ n(we, { children:
|
|
1027
|
+
return Array.from({ length: dr }).map((T, V) => /* @__PURE__ */ n(Je, { className: "loading" }, V));
|
|
1028
|
+
if (w) return /* @__PURE__ */ n(we, { children: oo(S?.error) });
|
|
1019
1029
|
if (!y.length) {
|
|
1020
1030
|
const T = "project_name" in (e.acceptedParams || {}) && !r.project_name ? " Try selecting a project." : "";
|
|
1021
1031
|
return /* @__PURE__ */ k(we, { children: [
|
|
@@ -1023,7 +1033,7 @@ const $o = g.div`
|
|
|
1023
1033
|
T
|
|
1024
1034
|
] });
|
|
1025
1035
|
}
|
|
1026
|
-
return $.length ? $.map((T) => /* @__PURE__ */ k(
|
|
1036
|
+
return $.length ? $.map((T) => /* @__PURE__ */ k(vr, { title: T.description, children: [
|
|
1027
1037
|
/* @__PURE__ */ n(En, { icon: T.icon, color: T.color, reserveSpace: N }),
|
|
1028
1038
|
/* @__PURE__ */ n("span", { className: "label", children: T.label }),
|
|
1029
1039
|
/* @__PURE__ */ n("span", { className: "value", children: String(T.value) })
|
|
@@ -1042,22 +1052,22 @@ const $o = g.div`
|
|
|
1042
1052
|
size: "full",
|
|
1043
1053
|
style: { width: "95vw", maxWidth: "95vw", height: "95vh", maxHeight: "95vh" },
|
|
1044
1054
|
onKeyDown: B,
|
|
1045
|
-
children: /* @__PURE__ */ k(
|
|
1046
|
-
/* @__PURE__ */ k(
|
|
1055
|
+
children: /* @__PURE__ */ k(ur, { children: [
|
|
1056
|
+
/* @__PURE__ */ k(pr, { children: [
|
|
1047
1057
|
/* @__PURE__ */ k(st, { children: [
|
|
1048
1058
|
/* @__PURE__ */ n(lt, { children: "Context Params" }),
|
|
1049
1059
|
L()
|
|
1050
1060
|
] }),
|
|
1051
1061
|
/* @__PURE__ */ k(st, { children: [
|
|
1052
1062
|
/* @__PURE__ */ n(lt, { children: "Form" }),
|
|
1053
|
-
u.length ? /* @__PURE__ */ n(
|
|
1063
|
+
u.length ? /* @__PURE__ */ n(pn, { fields: u, values: t, onChange: i }) : /* @__PURE__ */ n(we, { children: "This resolver has no settings." })
|
|
1054
1064
|
] }),
|
|
1055
1065
|
/* @__PURE__ */ k(st, { children: [
|
|
1056
1066
|
/* @__PURE__ */ n(lt, { children: "Enum Resolver Data" }),
|
|
1057
|
-
/* @__PURE__ */ n(
|
|
1067
|
+
/* @__PURE__ */ n(ho, { value: e, wrap: !0 })
|
|
1058
1068
|
] })
|
|
1059
1069
|
] }),
|
|
1060
|
-
/* @__PURE__ */ k(
|
|
1070
|
+
/* @__PURE__ */ k(mr, { children: [
|
|
1061
1071
|
/* @__PURE__ */ n(
|
|
1062
1072
|
De,
|
|
1063
1073
|
{
|
|
@@ -1067,16 +1077,16 @@ const $o = g.div`
|
|
|
1067
1077
|
autoFocus: !0
|
|
1068
1078
|
}
|
|
1069
1079
|
),
|
|
1070
|
-
!f && !w && y.length > 0 && /* @__PURE__ */ n(
|
|
1071
|
-
/* @__PURE__ */ n(
|
|
1080
|
+
!f && !w && y.length > 0 && /* @__PURE__ */ n(gr, { children: P ? `${$.length} of ${y.length} ${y.length === 1 ? "item" : "items"}` : `${y.length} ${y.length === 1 ? "item" : "items"}` }),
|
|
1081
|
+
/* @__PURE__ */ n(hr, { children: z() })
|
|
1072
1082
|
] })
|
|
1073
1083
|
] })
|
|
1074
1084
|
}
|
|
1075
1085
|
);
|
|
1076
|
-
}, Ve = "__custom__", ct = 5,
|
|
1086
|
+
}, Ve = "__custom__", ct = 5, wr = [], Sr = "No preview items found.", kr = 5, Cr = {
|
|
1077
1087
|
project_name: "The select options will change based on the project it is used in.",
|
|
1078
1088
|
user: "The select options will change based on the current user."
|
|
1079
|
-
},
|
|
1089
|
+
}, Er = g.div`
|
|
1080
1090
|
display: flex;
|
|
1081
1091
|
flex-direction: column;
|
|
1082
1092
|
gap: var(--base-gap-large);
|
|
@@ -1091,7 +1101,7 @@ const $o = g.div`
|
|
|
1091
1101
|
padding: var(--padding-m);
|
|
1092
1102
|
border-radius: var(--border-radius-m);
|
|
1093
1103
|
background-color: var(--md-sys-color-surface-container);
|
|
1094
|
-
`,
|
|
1104
|
+
`, Ir = g.button`
|
|
1095
1105
|
display: flex;
|
|
1096
1106
|
align-items: center;
|
|
1097
1107
|
align-self: flex-start;
|
|
@@ -1107,7 +1117,7 @@ const $o = g.div`
|
|
|
1107
1117
|
color: var(--md-sys-color-on-surface);
|
|
1108
1118
|
text-decoration: underline;
|
|
1109
1119
|
}
|
|
1110
|
-
`,
|
|
1120
|
+
`, Tr = g(eo)`
|
|
1111
1121
|
cursor: pointer;
|
|
1112
1122
|
padding: var(--padding-s) var(--padding-m);
|
|
1113
1123
|
|
|
@@ -1118,7 +1128,7 @@ const $o = g.div`
|
|
|
1118
1128
|
&:hover {
|
|
1119
1129
|
filter: brightness(1.15);
|
|
1120
1130
|
}
|
|
1121
|
-
`,
|
|
1131
|
+
`, Nr = g(Je)`
|
|
1122
1132
|
&:nth-child(2n) {
|
|
1123
1133
|
width: 80%;
|
|
1124
1134
|
}
|
|
@@ -1126,7 +1136,7 @@ const $o = g.div`
|
|
|
1126
1136
|
&:last-of-type {
|
|
1127
1137
|
width: 64px;
|
|
1128
1138
|
}
|
|
1129
|
-
`,
|
|
1139
|
+
`, Pr = ({
|
|
1130
1140
|
resolver: e,
|
|
1131
1141
|
acceptedParams: t,
|
|
1132
1142
|
settings: o,
|
|
@@ -1135,9 +1145,9 @@ const $o = g.div`
|
|
|
1135
1145
|
const a = X(
|
|
1136
1146
|
() => ({ enumResolver: e, enumResolverSettings: o }),
|
|
1137
1147
|
[e, o]
|
|
1138
|
-
), { options: s, isLoading: i, isError: v, errorMessage: b } =
|
|
1148
|
+
), { options: s, isLoading: i, isError: v, errorMessage: b } = po(a), c = mn(s), u = hn(t);
|
|
1139
1149
|
if (i)
|
|
1140
|
-
return /* @__PURE__ */ n(Be, { children: Array.from({ length: ct + 1 }).map((d, h) => /* @__PURE__ */ n(
|
|
1150
|
+
return /* @__PURE__ */ n(Be, { children: Array.from({ length: ct + 1 }).map((d, h) => /* @__PURE__ */ n(Nr, { className: "loading" }, h)) });
|
|
1141
1151
|
if (v)
|
|
1142
1152
|
return /* @__PURE__ */ n(Be, { children: /* @__PURE__ */ k(Ye, { children: [
|
|
1143
1153
|
'Could not load options for "',
|
|
@@ -1147,24 +1157,24 @@ const $o = g.div`
|
|
|
1147
1157
|
] }) });
|
|
1148
1158
|
if (!c.length)
|
|
1149
1159
|
return /* @__PURE__ */ n(Be, { children: /* @__PURE__ */ k(Ye, { children: [
|
|
1150
|
-
|
|
1160
|
+
Sr,
|
|
1151
1161
|
u.length > 0 && ` This could be because in context parameters (${u.join(
|
|
1152
1162
|
", "
|
|
1153
1163
|
)}) are required to get the items.`
|
|
1154
1164
|
] }) });
|
|
1155
|
-
const l = c.length - ct, m = c.slice(0, ct).map((d) => ({ option: d, icon:
|
|
1165
|
+
const l = c.length - ct, m = c.slice(0, ct).map((d) => ({ option: d, icon: gn(d.icon) })), x = m.some(({ icon: d }) => !!d);
|
|
1156
1166
|
return /* @__PURE__ */ k(Be, { children: [
|
|
1157
1167
|
m.map(({ option: d, icon: h }) => /* @__PURE__ */ k(Je, { children: [
|
|
1158
1168
|
/* @__PURE__ */ n(En, { icon: h, color: d.color, reserveSpace: x }),
|
|
1159
1169
|
/* @__PURE__ */ n("span", { className: "label", children: d.label })
|
|
1160
1170
|
] }, String(d.value))),
|
|
1161
|
-
l > 0 && /* @__PURE__ */ k(
|
|
1171
|
+
l > 0 && /* @__PURE__ */ k(Ir, { type: "button", onClick: r, children: [
|
|
1162
1172
|
"+",
|
|
1163
1173
|
l,
|
|
1164
1174
|
" more"
|
|
1165
1175
|
] })
|
|
1166
1176
|
] });
|
|
1167
|
-
},
|
|
1177
|
+
}, _r = ({
|
|
1168
1178
|
enumValues: e,
|
|
1169
1179
|
enumResolver: t,
|
|
1170
1180
|
enumResolverSettings: o,
|
|
@@ -1172,14 +1182,14 @@ const $o = g.div`
|
|
|
1172
1182
|
onChangeResolver: a,
|
|
1173
1183
|
onChangeResolverSettings: s
|
|
1174
1184
|
}) => {
|
|
1175
|
-
const { data: i = [], isLoading: v, isError: b } =
|
|
1185
|
+
const { data: i = [], isLoading: v, isError: b } = ro(), [c, u] = U(!1), l = () => u(!0), m = [
|
|
1176
1186
|
{ value: Ve, label: "Custom" },
|
|
1177
1187
|
...i.map((p) => ({
|
|
1178
1188
|
value: p.name,
|
|
1179
1189
|
label: p.label || St(p.name)
|
|
1180
1190
|
}))
|
|
1181
|
-
], x = t || Ve, d = i.find((p) => p.name === t), h = d?.settingsForm ||
|
|
1182
|
-
return /* @__PURE__ */ k(
|
|
1191
|
+
], x = t || Ve, d = i.find((p) => p.name === t), h = d?.settingsForm || wr, E = o || {}, S = hn(d?.acceptedParams).map((p) => Cr[p]).join(" ");
|
|
1192
|
+
return /* @__PURE__ */ k(Er, { children: [
|
|
1183
1193
|
/* @__PURE__ */ n(
|
|
1184
1194
|
pe,
|
|
1185
1195
|
{
|
|
@@ -1191,12 +1201,12 @@ const $o = g.div`
|
|
|
1191
1201
|
},
|
|
1192
1202
|
disabled: v || b,
|
|
1193
1203
|
minSelected: 1,
|
|
1194
|
-
searchOnNumber:
|
|
1204
|
+
searchOnNumber: kr,
|
|
1195
1205
|
widthExpand: !0
|
|
1196
1206
|
}
|
|
1197
1207
|
),
|
|
1198
1208
|
x === Ve ? /* @__PURE__ */ n(
|
|
1199
|
-
|
|
1209
|
+
cr,
|
|
1200
1210
|
{
|
|
1201
1211
|
values: e || [],
|
|
1202
1212
|
onChange: (p) => r(p?.length ? p : void 0)
|
|
@@ -1209,7 +1219,7 @@ const $o = g.div`
|
|
|
1209
1219
|
] }),
|
|
1210
1220
|
d?.description && /* @__PURE__ */ n(Ye, { children: d.description }),
|
|
1211
1221
|
S && /* @__PURE__ */ n(
|
|
1212
|
-
|
|
1222
|
+
Tr,
|
|
1213
1223
|
{
|
|
1214
1224
|
message: S,
|
|
1215
1225
|
role: "button",
|
|
@@ -1221,7 +1231,7 @@ const $o = g.div`
|
|
|
1221
1231
|
}
|
|
1222
1232
|
),
|
|
1223
1233
|
h.length > 0 && /* @__PURE__ */ n(
|
|
1224
|
-
|
|
1234
|
+
pn,
|
|
1225
1235
|
{
|
|
1226
1236
|
fields: h,
|
|
1227
1237
|
values: E,
|
|
@@ -1231,7 +1241,7 @@ const $o = g.div`
|
|
|
1231
1241
|
),
|
|
1232
1242
|
d && /* @__PURE__ */ k(me, { children: [
|
|
1233
1243
|
/* @__PURE__ */ n(
|
|
1234
|
-
|
|
1244
|
+
Pr,
|
|
1235
1245
|
{
|
|
1236
1246
|
resolver: d.name,
|
|
1237
1247
|
acceptedParams: d.acceptedParams,
|
|
@@ -1251,7 +1261,7 @@ const $o = g.div`
|
|
|
1251
1261
|
)
|
|
1252
1262
|
] }),
|
|
1253
1263
|
c && d && /* @__PURE__ */ n(
|
|
1254
|
-
|
|
1264
|
+
xr,
|
|
1255
1265
|
{
|
|
1256
1266
|
resolver: d,
|
|
1257
1267
|
settings: E,
|
|
@@ -1283,18 +1293,18 @@ const $o = g.div`
|
|
|
1283
1293
|
{ value: "number", label: "Number", icon: ve("number", "integer") },
|
|
1284
1294
|
{ value: "checkbox", label: "Checkbox", icon: ve("checkbox", "boolean") },
|
|
1285
1295
|
{ value: "datetime", label: "Date and time", icon: ve("datetime", "datetime") }
|
|
1286
|
-
],
|
|
1296
|
+
], Ar = {
|
|
1287
1297
|
text: ["minLength", "maxLength", "regex"],
|
|
1288
1298
|
select: ["enum"],
|
|
1289
1299
|
number: ["ge", "gt", "le", "lt"],
|
|
1290
1300
|
checkbox: [],
|
|
1291
1301
|
datetime: []
|
|
1292
|
-
},
|
|
1302
|
+
}, Dr = {
|
|
1293
1303
|
checkbox: ["example"]
|
|
1294
1304
|
}, vt = (e, t, o) => {
|
|
1295
1305
|
switch (e) {
|
|
1296
1306
|
case "string":
|
|
1297
|
-
return
|
|
1307
|
+
return vn({ enum: t, enumResolver: o }) ? "select" : "text";
|
|
1298
1308
|
case "list_of_strings":
|
|
1299
1309
|
return "select";
|
|
1300
1310
|
case "integer":
|
|
@@ -1307,7 +1317,7 @@ const $o = g.div`
|
|
|
1307
1317
|
default:
|
|
1308
1318
|
return "text";
|
|
1309
1319
|
}
|
|
1310
|
-
},
|
|
1320
|
+
}, Lr = (e, t) => {
|
|
1311
1321
|
switch (e) {
|
|
1312
1322
|
case "text":
|
|
1313
1323
|
return "string";
|
|
@@ -1320,24 +1330,24 @@ const $o = g.div`
|
|
|
1320
1330
|
case "datetime":
|
|
1321
1331
|
return "datetime";
|
|
1322
1332
|
}
|
|
1323
|
-
},
|
|
1333
|
+
}, Or = [
|
|
1324
1334
|
"string",
|
|
1325
1335
|
"integer",
|
|
1326
1336
|
"float",
|
|
1327
1337
|
"boolean",
|
|
1328
1338
|
"datetime",
|
|
1329
1339
|
"list_of_strings"
|
|
1330
|
-
],
|
|
1331
|
-
if (!e || !
|
|
1340
|
+
], fs = (e, t, o) => {
|
|
1341
|
+
if (!e || !Or.includes(e)) return e ?? "";
|
|
1332
1342
|
if (e === "list_of_strings") return "Select (multiple)";
|
|
1333
1343
|
const r = vt(e, t, o);
|
|
1334
1344
|
return ze.find((a) => a.value === r)?.label ?? e;
|
|
1335
|
-
},
|
|
1345
|
+
}, Rr = g.div`
|
|
1336
1346
|
display: flex;
|
|
1337
1347
|
flex-direction: row;
|
|
1338
1348
|
gap: var(--base-gap-large);
|
|
1339
1349
|
align-items: center;
|
|
1340
|
-
`,
|
|
1350
|
+
`, $r = /^[a-zA-Z0-9]{2,64}$/, Fr = [
|
|
1341
1351
|
{ value: "project", label: "Project" },
|
|
1342
1352
|
{ value: "folder", label: "Folder" },
|
|
1343
1353
|
{ value: "task", label: "Task" },
|
|
@@ -1346,7 +1356,7 @@ const $o = g.div`
|
|
|
1346
1356
|
{ value: "representation", label: "Representation" },
|
|
1347
1357
|
{ value: "user", label: "User" },
|
|
1348
1358
|
{ value: "list", label: "List" }
|
|
1349
|
-
],
|
|
1359
|
+
], Mr = [
|
|
1350
1360
|
{ value: "description", scope: null },
|
|
1351
1361
|
{ value: "example", scope: null },
|
|
1352
1362
|
{ value: "default", scope: ["project"] },
|
|
@@ -1354,7 +1364,7 @@ const $o = g.div`
|
|
|
1354
1364
|
value: "inherit",
|
|
1355
1365
|
scope: ["project", "folder", "task", "product", "version", "representation", "user"]
|
|
1356
1366
|
}
|
|
1357
|
-
],
|
|
1367
|
+
], Vr = {
|
|
1358
1368
|
name: "",
|
|
1359
1369
|
scope: ["folder", "task"],
|
|
1360
1370
|
builtin: !1,
|
|
@@ -1379,8 +1389,8 @@ const $o = g.div`
|
|
|
1379
1389
|
le: void 0,
|
|
1380
1390
|
lt: void 0
|
|
1381
1391
|
}
|
|
1382
|
-
},
|
|
1383
|
-
const o = JSON.parse(JSON.stringify(
|
|
1392
|
+
}, Br = (e, t) => {
|
|
1393
|
+
const o = JSON.parse(JSON.stringify(Vr)), r = ["name"];
|
|
1384
1394
|
Object.keys(o).forEach((s) => {
|
|
1385
1395
|
!r.includes(s) && e.includes(s) && s !== "data" && delete o[s];
|
|
1386
1396
|
});
|
|
@@ -1391,7 +1401,7 @@ const $o = g.div`
|
|
|
1391
1401
|
const i = s;
|
|
1392
1402
|
i === "data" && t.data && o.data ? o.data = { ...o.data, ...t.data } : t[i] !== void 0 && (o[i] = t[i]);
|
|
1393
1403
|
}), o;
|
|
1394
|
-
},
|
|
1404
|
+
}, bs = ({
|
|
1395
1405
|
attribute: e,
|
|
1396
1406
|
defaultData: t,
|
|
1397
1407
|
existingNames: o,
|
|
@@ -1405,7 +1415,7 @@ const $o = g.div`
|
|
|
1405
1415
|
const c = t ? {
|
|
1406
1416
|
...t,
|
|
1407
1417
|
name: t.name || (t.data?.title ? at(t.data.title) : void 0)
|
|
1408
|
-
} : void 0, u = e ||
|
|
1418
|
+
} : void 0, u = e || Br(s, {
|
|
1409
1419
|
position: o.length,
|
|
1410
1420
|
...c
|
|
1411
1421
|
}), [l, m] = U(u), [x, d] = U(
|
|
@@ -1427,7 +1437,7 @@ const $o = g.div`
|
|
|
1427
1437
|
});
|
|
1428
1438
|
};
|
|
1429
1439
|
let y = "";
|
|
1430
|
-
l && S && (o.includes(l.name) ? y = "This attribute already exists" :
|
|
1440
|
+
l && S && (o.includes(l.name) ? y = "This attribute already exists" : $r.test(l.name) || (y = "Invalid attribute name: use 2-64 letters or digits, no spaces or symbols"));
|
|
1431
1441
|
const w = () => {
|
|
1432
1442
|
l && v(l);
|
|
1433
1443
|
}, P = /* @__PURE__ */ k("div", { style: { display: "flex", width: "100%", flexDirection: "row" }, children: [
|
|
@@ -1455,17 +1465,17 @@ const $o = g.div`
|
|
|
1455
1465
|
)
|
|
1456
1466
|
] });
|
|
1457
1467
|
let $ = [];
|
|
1458
|
-
|
|
1468
|
+
Mr.forEach((C) => {
|
|
1459
1469
|
(!C?.scope || C?.scope?.some((_) => l?.scope?.includes(_))) && $.push(C.value);
|
|
1460
1470
|
});
|
|
1461
1471
|
const N = [
|
|
1462
|
-
...
|
|
1472
|
+
...Ar[x] ?? [],
|
|
1463
1473
|
...x === "select" && l?.data?.type === "list_of_strings" ? ["minItems", "maxItems"] : []
|
|
1464
|
-
], B =
|
|
1474
|
+
], B = Dr[x] ?? [];
|
|
1465
1475
|
$ = [...$, ...N].filter((C) => !B.includes(C));
|
|
1466
1476
|
const L = {
|
|
1467
1477
|
enum: (C = [], _) => /* @__PURE__ */ n(
|
|
1468
|
-
|
|
1478
|
+
_r,
|
|
1469
1479
|
{
|
|
1470
1480
|
enumValues: C,
|
|
1471
1481
|
enumResolver: l?.data?.enumResolver,
|
|
@@ -1496,7 +1506,7 @@ const $o = g.div`
|
|
|
1496
1506
|
p("title", _), S && f("name", at(_));
|
|
1497
1507
|
}, V = (C) => {
|
|
1498
1508
|
const _ = C[0];
|
|
1499
|
-
d(_), p("type",
|
|
1509
|
+
d(_), p("type", Lr(_, h)), _ !== "select" && (p("enum", void 0), p("enumResolver", void 0), p("enumResolverSettings", void 0), p("minItems", void 0), p("maxItems", void 0)), _ !== "text" && l?.data?.regex && p("regex", ""), p("widget", void 0);
|
|
1500
1510
|
}, R = ze.find((C) => C.value === x)?.widgets;
|
|
1501
1511
|
return /* @__PURE__ */ n(
|
|
1502
1512
|
qe,
|
|
@@ -1525,7 +1535,7 @@ const $o = g.div`
|
|
|
1525
1535
|
!s.includes("scope") && /* @__PURE__ */ n(te, { label: "Scope", children: /* @__PURE__ */ n(
|
|
1526
1536
|
pe,
|
|
1527
1537
|
{
|
|
1528
|
-
options:
|
|
1538
|
+
options: Fr,
|
|
1529
1539
|
disabled: l.builtin,
|
|
1530
1540
|
value: l.scope || [],
|
|
1531
1541
|
onChange: (C) => f("scope", C),
|
|
@@ -1533,7 +1543,7 @@ const $o = g.div`
|
|
|
1533
1543
|
widthExpand: !0
|
|
1534
1544
|
}
|
|
1535
1545
|
) }),
|
|
1536
|
-
!s.includes("type") && /* @__PURE__ */ n(te, { label: "Type", children: /* @__PURE__ */ k(
|
|
1546
|
+
!s.includes("type") && /* @__PURE__ */ n(te, { label: "Type", children: /* @__PURE__ */ k(Rr, { children: [
|
|
1537
1547
|
/* @__PURE__ */ n(
|
|
1538
1548
|
pe,
|
|
1539
1549
|
{
|
|
@@ -1597,7 +1607,7 @@ const $o = g.div`
|
|
|
1597
1607
|
else if (["ge", "gt", "le", "lt"].includes(C)) {
|
|
1598
1608
|
if (["gt", "lt"].includes(C)) return null;
|
|
1599
1609
|
_ = /* @__PURE__ */ n(
|
|
1600
|
-
|
|
1610
|
+
Yo,
|
|
1601
1611
|
{
|
|
1602
1612
|
value: l?.data,
|
|
1603
1613
|
isMin: C === "ge",
|
|
@@ -1655,7 +1665,7 @@ const $o = g.div`
|
|
|
1655
1665
|
] })
|
|
1656
1666
|
}
|
|
1657
1667
|
);
|
|
1658
|
-
},
|
|
1668
|
+
}, Ur = Gn`
|
|
1659
1669
|
from {
|
|
1660
1670
|
opacity: 0;
|
|
1661
1671
|
transform: translateY(-4px);
|
|
@@ -1664,10 +1674,10 @@ const $o = g.div`
|
|
|
1664
1674
|
opacity: 1;
|
|
1665
1675
|
transform: translateY(0);
|
|
1666
1676
|
}
|
|
1667
|
-
`,
|
|
1677
|
+
`, ys = g.div`
|
|
1668
1678
|
position: relative;
|
|
1669
1679
|
display: inline-flex;
|
|
1670
|
-
`,
|
|
1680
|
+
`, xs = g.button`
|
|
1671
1681
|
background: none;
|
|
1672
1682
|
border: none;
|
|
1673
1683
|
padding: 0;
|
|
@@ -1699,7 +1709,7 @@ const $o = g.div`
|
|
|
1699
1709
|
width: 24px;
|
|
1700
1710
|
height: 24px;
|
|
1701
1711
|
}
|
|
1702
|
-
`,
|
|
1712
|
+
`, ws = g(G)`
|
|
1703
1713
|
width: 20px;
|
|
1704
1714
|
height: 20px;
|
|
1705
1715
|
min-width: 20px;
|
|
@@ -1715,13 +1725,13 @@ const $o = g.div`
|
|
|
1715
1725
|
&:hover {
|
|
1716
1726
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
1717
1727
|
}
|
|
1718
|
-
`,
|
|
1728
|
+
`, Ss = g.div`
|
|
1719
1729
|
position: fixed;
|
|
1720
1730
|
z-index: 1001;
|
|
1721
1731
|
background-color: var(--md-sys-color-surface-container-highest);
|
|
1722
1732
|
border-radius: var(--border-radius-l);
|
|
1723
1733
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.2);
|
|
1724
|
-
animation: ${
|
|
1734
|
+
animation: ${Ur} 0.15s ease-out;
|
|
1725
1735
|
|
|
1726
1736
|
&.right {
|
|
1727
1737
|
transform-origin: top right;
|
|
@@ -1730,13 +1740,13 @@ const $o = g.div`
|
|
|
1730
1740
|
&.left {
|
|
1731
1741
|
transform-origin: top left;
|
|
1732
1742
|
}
|
|
1733
|
-
`,
|
|
1743
|
+
`, ks = g.div`
|
|
1734
1744
|
display: flex;
|
|
1735
1745
|
flex-direction: column;
|
|
1736
1746
|
gap: var(--base-gap-small);
|
|
1737
1747
|
padding: var(--padding-m);
|
|
1738
1748
|
position: relative;
|
|
1739
|
-
`,
|
|
1749
|
+
`, Cs = g(H)`
|
|
1740
1750
|
&.hasIcon {
|
|
1741
1751
|
padding: 4px;
|
|
1742
1752
|
}
|
|
@@ -1752,7 +1762,7 @@ const $o = g.div`
|
|
|
1752
1762
|
&:hover {
|
|
1753
1763
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
1754
1764
|
}
|
|
1755
|
-
`,
|
|
1765
|
+
`, Es = g.div`
|
|
1756
1766
|
display: flex;
|
|
1757
1767
|
flex-direction: column;
|
|
1758
1768
|
gap: 4px;
|
|
@@ -1761,7 +1771,7 @@ const $o = g.div`
|
|
|
1761
1771
|
${fe.labelSmall}
|
|
1762
1772
|
color: var(--md-sys-color-outline);
|
|
1763
1773
|
}
|
|
1764
|
-
`,
|
|
1774
|
+
`, Is = g.input`
|
|
1765
1775
|
background-color: var(--md-sys-color-surface-container-low);
|
|
1766
1776
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
1767
1777
|
border-radius: var(--border-radius-m);
|
|
@@ -1783,11 +1793,11 @@ const $o = g.div`
|
|
|
1783
1793
|
cursor: pointer;
|
|
1784
1794
|
filter: invert(0.5);
|
|
1785
1795
|
}
|
|
1786
|
-
`,
|
|
1796
|
+
`, Ts = g(H)`
|
|
1787
1797
|
&:hover {
|
|
1788
1798
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
1789
1799
|
}
|
|
1790
|
-
`,
|
|
1800
|
+
`, Hr = g.div`
|
|
1791
1801
|
position: fixed;
|
|
1792
1802
|
bottom: 14px;
|
|
1793
1803
|
left: 14px;
|
|
@@ -1803,13 +1813,13 @@ const $o = g.div`
|
|
|
1803
1813
|
|
|
1804
1814
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
1805
1815
|
font-weight: 700;
|
|
1806
|
-
`,
|
|
1807
|
-
({ tooltip: e, ...t }, o) => /* @__PURE__ */ n(
|
|
1816
|
+
`, Ns = le(
|
|
1817
|
+
({ tooltip: e, ...t }, o) => /* @__PURE__ */ n(Hr, { "data-tooltip": e, "data-tooltip-delay": 0, ...t, ref: o, children: "Early preview" })
|
|
1808
1818
|
), ft = [
|
|
1809
1819
|
{ value: "hero", label: "Hero", short: "Hero", icon: "star" },
|
|
1810
1820
|
{ value: "latestDone", label: "Latest Done", short: "Done", icon: "check_circle" },
|
|
1811
1821
|
{ value: "latest", label: "Latest", short: "Latest", icon: "fiber_new" }
|
|
1812
|
-
],
|
|
1822
|
+
], Ps = ft.map((e) => e.value), zr = ({ id: e, label: t }) => {
|
|
1813
1823
|
const { attributes: o, listeners: r, setNodeRef: a, transform: s, transition: i, isDragging: v } = It({
|
|
1814
1824
|
id: e
|
|
1815
1825
|
}), b = {
|
|
@@ -1817,7 +1827,7 @@ const $o = g.div`
|
|
|
1817
1827
|
transition: i
|
|
1818
1828
|
};
|
|
1819
1829
|
return /* @__PURE__ */ n(
|
|
1820
|
-
|
|
1830
|
+
Gr,
|
|
1821
1831
|
{
|
|
1822
1832
|
ref: a,
|
|
1823
1833
|
style: b,
|
|
@@ -1830,7 +1840,7 @@ const $o = g.div`
|
|
|
1830
1840
|
] })
|
|
1831
1841
|
}
|
|
1832
1842
|
);
|
|
1833
|
-
},
|
|
1843
|
+
}, _s = ({ value: e, onChange: t }) => {
|
|
1834
1844
|
const [o, r] = U(null), a = ln(
|
|
1835
1845
|
cn(dn, {
|
|
1836
1846
|
activationConstraint: {
|
|
@@ -1856,8 +1866,8 @@ const $o = g.div`
|
|
|
1856
1866
|
}
|
|
1857
1867
|
r(null);
|
|
1858
1868
|
}, b = o ? ft.find((c) => c.value === o) : null;
|
|
1859
|
-
return /* @__PURE__ */ k(
|
|
1860
|
-
/* @__PURE__ */ k(
|
|
1869
|
+
return /* @__PURE__ */ k(jr, { children: [
|
|
1870
|
+
/* @__PURE__ */ k(Yr, { children: [
|
|
1861
1871
|
/* @__PURE__ */ n("span", { className: "label", children: "Product's featured version priority" }),
|
|
1862
1872
|
/* @__PURE__ */ n(
|
|
1863
1873
|
G,
|
|
@@ -1881,7 +1891,7 @@ const $o = g.div`
|
|
|
1881
1891
|
{
|
|
1882
1892
|
items: s.map((c) => c.value),
|
|
1883
1893
|
strategy: Ge,
|
|
1884
|
-
children: /* @__PURE__ */ n(
|
|
1894
|
+
children: /* @__PURE__ */ n(Kr, { children: s.map((c) => /* @__PURE__ */ n(zr, { id: c.value, label: c.label }, c.value)) })
|
|
1885
1895
|
}
|
|
1886
1896
|
),
|
|
1887
1897
|
/* @__PURE__ */ n(Et, { children: b && /* @__PURE__ */ k(Nn, { className: "overlay", children: [
|
|
@@ -1892,15 +1902,15 @@ const $o = g.div`
|
|
|
1892
1902
|
}
|
|
1893
1903
|
)
|
|
1894
1904
|
] });
|
|
1895
|
-
},
|
|
1905
|
+
}, jr = g.div`
|
|
1896
1906
|
display: flex;
|
|
1897
1907
|
flex-direction: column;
|
|
1898
1908
|
gap: var(--base-gap-small);
|
|
1899
|
-
`,
|
|
1909
|
+
`, Kr = g.div`
|
|
1900
1910
|
display: flex;
|
|
1901
1911
|
flex-direction: column;
|
|
1902
1912
|
gap: var(--base-gap-small);
|
|
1903
|
-
`,
|
|
1913
|
+
`, Gr = g.div`
|
|
1904
1914
|
&.dragging {
|
|
1905
1915
|
opacity: 0;
|
|
1906
1916
|
}
|
|
@@ -1934,7 +1944,7 @@ const $o = g.div`
|
|
|
1934
1944
|
`, _n = g.span`
|
|
1935
1945
|
font-weight: 500;
|
|
1936
1946
|
color: var(--md-sys-color-on-surface);
|
|
1937
|
-
`,
|
|
1947
|
+
`, Yr = g.div`
|
|
1938
1948
|
color: var(--md-sys-color-outline);
|
|
1939
1949
|
display: flex;
|
|
1940
1950
|
align-items: center;
|
|
@@ -1948,9 +1958,9 @@ const $o = g.div`
|
|
|
1948
1958
|
.icon {
|
|
1949
1959
|
cursor: pointer;
|
|
1950
1960
|
}
|
|
1951
|
-
`,
|
|
1961
|
+
`, As = le(
|
|
1952
1962
|
({ tooltip: e = "This page will deprecated in a future version", ...t }, o) => /* @__PURE__ */ n(G, { icon: "ad_off", "data-tooltip": e, ...t, ref: o })
|
|
1953
|
-
),
|
|
1963
|
+
), qr = g(H)`
|
|
1954
1964
|
transition: color 0.2s, background-color 0.2s, opacity 0.2s;
|
|
1955
1965
|
|
|
1956
1966
|
.bolt {
|
|
@@ -1983,13 +1993,13 @@ const $o = g.div`
|
|
|
1983
1993
|
&.rounded {
|
|
1984
1994
|
border-radius: var(--border-radius-xl);
|
|
1985
1995
|
}
|
|
1986
|
-
`,
|
|
1996
|
+
`, Ds = le(
|
|
1987
1997
|
({ feature: e, variant: t = "outline", rounded: o = !0, bolt: r = !1, ...a }, s) => {
|
|
1988
|
-
const { setPowerpackDialog: i } =
|
|
1998
|
+
const { setPowerpackDialog: i } = fo(), v = (b) => {
|
|
1989
1999
|
i(e), a.onClick?.(b);
|
|
1990
2000
|
};
|
|
1991
2001
|
return /* @__PURE__ */ k(
|
|
1992
|
-
|
|
2002
|
+
qr,
|
|
1993
2003
|
{
|
|
1994
2004
|
icon: a.icon || "bolt",
|
|
1995
2005
|
...a,
|
|
@@ -2008,21 +2018,21 @@ const $o = g.div`
|
|
|
2008
2018
|
}
|
|
2009
2019
|
);
|
|
2010
2020
|
}
|
|
2011
|
-
),
|
|
2021
|
+
), Wr = "https://ynput.cloud/free-trial", Xr = ({
|
|
2012
2022
|
addon: e
|
|
2013
2023
|
// an addon they are trying to access, e.g. 'powerpack'
|
|
2014
2024
|
}) => {
|
|
2015
|
-
const { data: t } =
|
|
2025
|
+
const { data: t } = so(), o = t?.data?.isAdmin || t?.data?.isManager, { data: r } = lo(void 0, { skip: !t?.name }), { data: a } = co(
|
|
2016
2026
|
{},
|
|
2017
2027
|
{ skip: !o || !r?.instanceId }
|
|
2018
|
-
), s = new URL(
|
|
2028
|
+
), s = new URL(Wr), i = r?.instanceId, v = a || 10;
|
|
2019
2029
|
return s.searchParams.append("seats", v.toString()), i && s.searchParams.append("instance_id", i), e && s.searchParams.append("addon", e), s.toString();
|
|
2020
|
-
},
|
|
2030
|
+
}, Ls = le(
|
|
2021
2031
|
({ children: e, addon: t, ...o }, r) => {
|
|
2022
|
-
const a =
|
|
2032
|
+
const a = Xr({ addon: t });
|
|
2023
2033
|
return /* @__PURE__ */ n("a", { href: a, target: "_blank", rel: "noopener noreferrer", ...o, ref: r, children: e });
|
|
2024
2034
|
}
|
|
2025
|
-
),
|
|
2035
|
+
), Os = g(qe)`
|
|
2026
2036
|
background: linear-gradient(180deg, rgb(0 121 181 / 0%) -12.03%, rgb(4 255 227 / 26%) 105.38%),
|
|
2027
2037
|
#15171c;
|
|
2028
2038
|
|
|
@@ -2044,7 +2054,7 @@ const $o = g.div`
|
|
|
2044
2054
|
.cancelButton {
|
|
2045
2055
|
background-color: unset;
|
|
2046
2056
|
}
|
|
2047
|
-
`,
|
|
2057
|
+
`, Rs = g.div`
|
|
2048
2058
|
display: flex;
|
|
2049
2059
|
flex-direction: column;
|
|
2050
2060
|
align-items: center;
|
|
@@ -2074,7 +2084,7 @@ const $o = g.div`
|
|
|
2074
2084
|
font-size: 32px;
|
|
2075
2085
|
color: var(--md-sys-color-tertiary);
|
|
2076
2086
|
}
|
|
2077
|
-
`,
|
|
2087
|
+
`, $s = g.div`
|
|
2078
2088
|
width: 100%;
|
|
2079
2089
|
|
|
2080
2090
|
h3 {
|
|
@@ -2102,7 +2112,7 @@ const $o = g.div`
|
|
|
2102
2112
|
gap: 8px;
|
|
2103
2113
|
}
|
|
2104
2114
|
}
|
|
2105
|
-
`,
|
|
2115
|
+
`, Fs = g.div`
|
|
2106
2116
|
cursor: pointer;
|
|
2107
2117
|
text-align: center;
|
|
2108
2118
|
margin-top: 16px;
|
|
@@ -2112,7 +2122,7 @@ const $o = g.div`
|
|
|
2112
2122
|
&:hover {
|
|
2113
2123
|
text-decoration: underline;
|
|
2114
2124
|
}
|
|
2115
|
-
`,
|
|
2125
|
+
`, Qr = g(H)`
|
|
2116
2126
|
background-color: var(--md-sys-color-tertiary);
|
|
2117
2127
|
color: var(--md-sys-color-on-tertiary);
|
|
2118
2128
|
padding: 12px 20px;
|
|
@@ -2124,19 +2134,19 @@ const $o = g.div`
|
|
|
2124
2134
|
&:hover {
|
|
2125
2135
|
background-color: var(--md-sys-color-tertiary-hover);
|
|
2126
2136
|
}
|
|
2127
|
-
`,
|
|
2137
|
+
`, Ms = le(({ ...e }, t) => /* @__PURE__ */ n(Qr, { ...e, children: "Try for free!" })), Jr = g.div`
|
|
2128
2138
|
display: flex;
|
|
2129
2139
|
flex-direction: column;
|
|
2130
2140
|
gap: 8px;
|
|
2131
2141
|
border-radius: var(--border-radius-l);
|
|
2132
2142
|
background-color: var(--md-sys-color-secondary-container);
|
|
2133
2143
|
padding: var(--padding-m);
|
|
2134
|
-
`,
|
|
2144
|
+
`, Vs = le(
|
|
2135
2145
|
({ requiredVersion: e, addonName: t, addonLabel: o, ...r }, a) => {
|
|
2136
2146
|
const s = t || "powerpack", i = o || "Power Features";
|
|
2137
|
-
return e ? /* @__PURE__ */ k(
|
|
2147
|
+
return e ? /* @__PURE__ */ k(Jr, { ...r, ref: a, children: [
|
|
2138
2148
|
/* @__PURE__ */ n("span", { children: `${i} version ${e} is required to use this feature.` }),
|
|
2139
|
-
/* @__PURE__ */ n(
|
|
2149
|
+
/* @__PURE__ */ n(bo, { to: `/market?selected=${s}`, children: /* @__PURE__ */ k(H, { variant: "tertiary", children: [
|
|
2140
2150
|
"Update ",
|
|
2141
2151
|
i,
|
|
2142
2152
|
" ",
|
|
@@ -2144,7 +2154,7 @@ const $o = g.div`
|
|
|
2144
2154
|
] }) })
|
|
2145
2155
|
] }) : `Required ${i} version installed already.`;
|
|
2146
2156
|
}
|
|
2147
|
-
),
|
|
2157
|
+
), Zr = g.div`
|
|
2148
2158
|
height: 100%;
|
|
2149
2159
|
/* fixed floor so the panel doesn't resize as its content changes */
|
|
2150
2160
|
min-width: 260px;
|
|
@@ -2154,7 +2164,7 @@ const $o = g.div`
|
|
|
2154
2164
|
z-index: 10;
|
|
2155
2165
|
display: flex;
|
|
2156
2166
|
flex-direction: column;
|
|
2157
|
-
`,
|
|
2167
|
+
`, ei = g.div`
|
|
2158
2168
|
display: flex;
|
|
2159
2169
|
align-items: center;
|
|
2160
2170
|
gap: var(--base-gap-small);
|
|
@@ -2170,14 +2180,14 @@ const $o = g.div`
|
|
|
2170
2180
|
}
|
|
2171
2181
|
`, Xt = g(H)`
|
|
2172
2182
|
padding: 4px !important;
|
|
2173
|
-
`,
|
|
2183
|
+
`, ti = g.h3`
|
|
2174
2184
|
margin: 0;
|
|
2175
2185
|
flex: 1;
|
|
2176
|
-
`,
|
|
2186
|
+
`, ni = g.div`
|
|
2177
2187
|
padding: 8px;
|
|
2178
2188
|
flex: 1;
|
|
2179
2189
|
overflow-y: auto;
|
|
2180
|
-
`,
|
|
2190
|
+
`, oi = g(H)`
|
|
2181
2191
|
width: 100%;
|
|
2182
2192
|
justify-content: flex-start;
|
|
2183
2193
|
margin-bottom: 8px;
|
|
@@ -2195,13 +2205,13 @@ const $o = g.div`
|
|
|
2195
2205
|
.arrow {
|
|
2196
2206
|
color: var(--md-sys-color-outline);
|
|
2197
2207
|
}
|
|
2198
|
-
`,
|
|
2208
|
+
`, ri = ({ settings: e, order: t }) => {
|
|
2199
2209
|
const { isPanelOpen: o, selectedSetting: r, closePanel: a, backToMainMenu: s, selectSetting: i } = Xe(), v = () => r && e.find((m) => m.id === r)?.title || "Settings", b = t ? e.toSorted((l, m) => {
|
|
2200
2210
|
const x = l.id ? t.indexOf(l.id) : -1, d = m.id ? t.indexOf(m.id) : -1;
|
|
2201
2211
|
return x === -1 && d === -1 ? 0 : x === -1 ? 1 : d === -1 ? -1 : x - d;
|
|
2202
2212
|
}) : e, c = e.find((l) => l.id === r), u = () => r ? e.find((m) => m.id === r)?.component : /* @__PURE__ */ n(me, { children: b.map(
|
|
2203
2213
|
(m, x) => m.title ? /* @__PURE__ */ k(
|
|
2204
|
-
|
|
2214
|
+
oi,
|
|
2205
2215
|
{
|
|
2206
2216
|
onClick: () => i(m.id),
|
|
2207
2217
|
variant: "text",
|
|
@@ -2216,14 +2226,14 @@ const $o = g.div`
|
|
|
2216
2226
|
m.id
|
|
2217
2227
|
) : /* @__PURE__ */ n(Yn, { children: m.component }, m.id)
|
|
2218
2228
|
) });
|
|
2219
|
-
return /* @__PURE__ */ k(
|
|
2220
|
-
/* @__PURE__ */ k(
|
|
2229
|
+
return /* @__PURE__ */ k(Zr, { open: o, children: [
|
|
2230
|
+
/* @__PURE__ */ k(ei, { children: [
|
|
2221
2231
|
r && /* @__PURE__ */ n(Xt, { variant: "text", icon: "arrow_back", onClick: s }),
|
|
2222
|
-
/* @__PURE__ */ n(
|
|
2232
|
+
/* @__PURE__ */ n(ti, { children: v() }),
|
|
2223
2233
|
c?.headerActions,
|
|
2224
2234
|
/* @__PURE__ */ n(Xt, { variant: "text", icon: "close", onClick: a })
|
|
2225
2235
|
] }),
|
|
2226
|
-
/* @__PURE__ */ n(
|
|
2236
|
+
/* @__PURE__ */ n(ni, { children: u() })
|
|
2227
2237
|
] });
|
|
2228
2238
|
}, dt = g.ul`
|
|
2229
2239
|
display: flex;
|
|
@@ -2232,7 +2242,7 @@ const $o = g.div`
|
|
|
2232
2242
|
list-style-type: none;
|
|
2233
2243
|
margin: 0;
|
|
2234
2244
|
padding: 0;
|
|
2235
|
-
`,
|
|
2245
|
+
`, ii = g.li`
|
|
2236
2246
|
display: flex;
|
|
2237
2247
|
padding: 2px;
|
|
2238
2248
|
padding-left: 8px;
|
|
@@ -2281,11 +2291,11 @@ const $o = g.div`
|
|
|
2281
2291
|
background-color: unset;
|
|
2282
2292
|
}
|
|
2283
2293
|
}
|
|
2284
|
-
`,
|
|
2294
|
+
`, ai = g.div`
|
|
2285
2295
|
display: flex;
|
|
2286
2296
|
gap: var(--base-gap-small);
|
|
2287
2297
|
margin-left: auto;
|
|
2288
|
-
`,
|
|
2298
|
+
`, si = g(H)`
|
|
2289
2299
|
&& {
|
|
2290
2300
|
background-color: unset;
|
|
2291
2301
|
padding: 4px;
|
|
@@ -2316,7 +2326,7 @@ const $o = g.div`
|
|
|
2316
2326
|
className: v,
|
|
2317
2327
|
...b
|
|
2318
2328
|
}, c) => /* @__PURE__ */ k(
|
|
2319
|
-
|
|
2329
|
+
ii,
|
|
2320
2330
|
{
|
|
2321
2331
|
className: Q("setting-item", v, {
|
|
2322
2332
|
highlighted: a,
|
|
@@ -2335,8 +2345,8 @@ const $o = g.div`
|
|
|
2335
2345
|
] }),
|
|
2336
2346
|
e.label
|
|
2337
2347
|
] }),
|
|
2338
|
-
/* @__PURE__ */ n(
|
|
2339
|
-
|
|
2348
|
+
/* @__PURE__ */ n(ai, { className: "actions", children: t?.map(({ icon: u, className: l, active: m, onClick: x, ...d }, h) => /* @__PURE__ */ k(
|
|
2349
|
+
si,
|
|
2340
2350
|
{
|
|
2341
2351
|
className: Q("action", l, { active: m }),
|
|
2342
2352
|
onClick: s ? void 0 : x,
|
|
@@ -2352,7 +2362,7 @@ const $o = g.div`
|
|
|
2352
2362
|
]
|
|
2353
2363
|
}
|
|
2354
2364
|
)
|
|
2355
|
-
),
|
|
2365
|
+
), li = g(An)`
|
|
2356
2366
|
&:hover {
|
|
2357
2367
|
.pin-action {
|
|
2358
2368
|
opacity: 1;
|
|
@@ -2440,7 +2450,7 @@ const $o = g.div`
|
|
|
2440
2450
|
]
|
|
2441
2451
|
);
|
|
2442
2452
|
return /* @__PURE__ */ n(
|
|
2443
|
-
|
|
2453
|
+
li,
|
|
2444
2454
|
{
|
|
2445
2455
|
id: e,
|
|
2446
2456
|
item: t,
|
|
@@ -2480,7 +2490,7 @@ const $o = g.div`
|
|
|
2480
2490
|
transition: h
|
|
2481
2491
|
};
|
|
2482
2492
|
return /* @__PURE__ */ n(
|
|
2483
|
-
|
|
2493
|
+
ci,
|
|
2484
2494
|
{
|
|
2485
2495
|
ref: x,
|
|
2486
2496
|
style: S,
|
|
@@ -2504,7 +2514,7 @@ const $o = g.div`
|
|
|
2504
2514
|
)
|
|
2505
2515
|
}
|
|
2506
2516
|
);
|
|
2507
|
-
},
|
|
2517
|
+
}, ci = g.div`
|
|
2508
2518
|
&.dragging {
|
|
2509
2519
|
z-index: 1;
|
|
2510
2520
|
opacity: 0;
|
|
@@ -2512,10 +2522,10 @@ const $o = g.div`
|
|
|
2512
2522
|
`, Dn = "text_fields", Ln = ({
|
|
2513
2523
|
field: e,
|
|
2514
2524
|
parentScope: t
|
|
2515
|
-
}) => e ? Z(e) : t ? wn(t) : Dn,
|
|
2525
|
+
}) => e ? Z(e) : t ? wn(t) : Dn, di = (e) => e.length === 1 ? `${e[0].charAt(0).toUpperCase() + e[0].slice(1)} attributes` : "Attributes", On = (e = [], t = []) => [
|
|
2516
2526
|
{
|
|
2517
2527
|
id: "attributes",
|
|
2518
|
-
label:
|
|
2528
|
+
label: di(e),
|
|
2519
2529
|
icon: "text_fields",
|
|
2520
2530
|
match: (o) => !!o.attrib && !o.parentScope
|
|
2521
2531
|
},
|
|
@@ -2595,8 +2605,8 @@ const $o = g.div`
|
|
|
2595
2605
|
const { menuOpen: o, setMenuOpen: r } = Qe();
|
|
2596
2606
|
return J(() => {
|
|
2597
2607
|
!t.length && o === e && r(!1);
|
|
2598
|
-
}, [t.length, o, e, r]), /* @__PURE__ */ n(
|
|
2599
|
-
},
|
|
2608
|
+
}, [t.length, o, e, r]), /* @__PURE__ */ n(_o, { targetId: e, id: e, align: "left", children: /* @__PURE__ */ n(Ao, { menu: t, onClose: () => r(!1) }) });
|
|
2609
|
+
}, ui = 300, Fn = ({
|
|
2600
2610
|
columnVisibility: e,
|
|
2601
2611
|
defaultColumnVisibility: t,
|
|
2602
2612
|
updateColumnVisibility: o,
|
|
@@ -2614,7 +2624,7 @@ const $o = g.div`
|
|
|
2614
2624
|
}, m = ee(() => {
|
|
2615
2625
|
v.current = null;
|
|
2616
2626
|
const f = i.current;
|
|
2617
|
-
f && (b.current = performance.now() +
|
|
2627
|
+
f && (b.current = performance.now() + ui, c.current.updateColumnVisibility(f.next), s(null));
|
|
2618
2628
|
}, []), x = ee(() => {
|
|
2619
2629
|
v.current = null, i.current && s(null);
|
|
2620
2630
|
}, []);
|
|
@@ -2659,10 +2669,10 @@ const $o = g.div`
|
|
|
2659
2669
|
cancelPaint: x,
|
|
2660
2670
|
isPainting: !!a
|
|
2661
2671
|
};
|
|
2662
|
-
}, Ue = "add-column-menu-list",
|
|
2663
|
-
const o =
|
|
2672
|
+
}, Ue = "add-column-menu-list", pi = [], mi = (e, t) => e.parentScope && e.attrib ? `${e.parentScope.charAt(0).toUpperCase()}${e.parentScope.slice(1)} attributes` : Rn(e, t)?.label, He = (e, t) => {
|
|
2673
|
+
const o = mi(e, t);
|
|
2664
2674
|
return { ...e, icon: e.icon ?? Ln(e), ...o ? { path: o } : {} };
|
|
2665
|
-
},
|
|
2675
|
+
}, Bs = ({
|
|
2666
2676
|
icon: e,
|
|
2667
2677
|
label: t,
|
|
2668
2678
|
checked: o,
|
|
@@ -2686,7 +2696,7 @@ const $o = g.div`
|
|
|
2686
2696
|
),
|
|
2687
2697
|
...s
|
|
2688
2698
|
}
|
|
2689
|
-
),
|
|
2699
|
+
), gi = ({
|
|
2690
2700
|
columns: e,
|
|
2691
2701
|
highlighted: t,
|
|
2692
2702
|
columnVisibility: o,
|
|
@@ -2707,7 +2717,7 @@ const $o = g.div`
|
|
|
2707
2717
|
addColumnMenuItems: S,
|
|
2708
2718
|
onColumnDragStart: f,
|
|
2709
2719
|
isColumnDragging: p,
|
|
2710
|
-
scopes: y =
|
|
2720
|
+
scopes: y = pi,
|
|
2711
2721
|
search: w,
|
|
2712
2722
|
onSearchChange: P
|
|
2713
2723
|
}) => {
|
|
@@ -2785,14 +2795,14 @@ const $o = g.div`
|
|
|
2785
2795
|
}),
|
|
2786
2796
|
[e, _, ne, M, Y, y]
|
|
2787
2797
|
), Te = S ?? Ie, _t = typeof w == "string" ? /* @__PURE__ */ n(
|
|
2788
|
-
|
|
2798
|
+
vi,
|
|
2789
2799
|
{
|
|
2790
2800
|
value: w,
|
|
2791
2801
|
onChange: (I) => P?.(I),
|
|
2792
2802
|
onClose: () => P?.(null)
|
|
2793
2803
|
}
|
|
2794
2804
|
) : /* @__PURE__ */ n(
|
|
2795
|
-
|
|
2805
|
+
hi,
|
|
2796
2806
|
{
|
|
2797
2807
|
variant: "text",
|
|
2798
2808
|
icon: "add",
|
|
@@ -2866,7 +2876,7 @@ const $o = g.div`
|
|
|
2866
2876
|
nt !== ot && (nt && !ot ? Pe = Pe.filter((it) => it !== de) : !nt && ot && (Pe = [...Pe, de]));
|
|
2867
2877
|
const rt = [...q, ...D], Dt = rt.indexOf(de), Lt = rt.indexOf(tt);
|
|
2868
2878
|
if (Dt === -1 || Lt === -1) {
|
|
2869
|
-
console.error("Invalid column order state"),
|
|
2879
|
+
console.error("Invalid column order state"), vo.error("Invalid column order state");
|
|
2870
2880
|
return;
|
|
2871
2881
|
}
|
|
2872
2882
|
const Ot = un(rt, Dt, Lt), Kn = Ot.filter((it) => Pe.includes(it));
|
|
@@ -3001,15 +3011,15 @@ const $o = g.div`
|
|
|
3001
3011
|
font-weight: 500;
|
|
3002
3012
|
color: var(--md-sys-color-outline);
|
|
3003
3013
|
padding: 4px 0;
|
|
3004
|
-
`,
|
|
3014
|
+
`, hi = g(H)`
|
|
3005
3015
|
justify-content: flex-start;
|
|
3006
|
-
`,
|
|
3016
|
+
`, vi = g(Co)`
|
|
3007
3017
|
padding: 0;
|
|
3008
3018
|
|
|
3009
3019
|
input {
|
|
3010
3020
|
height: 32px;
|
|
3011
3021
|
}
|
|
3012
|
-
`,
|
|
3022
|
+
`, fi = (e) => {
|
|
3013
3023
|
const {
|
|
3014
3024
|
columnVisibility: t,
|
|
3015
3025
|
defaultColumnVisibility: o,
|
|
@@ -3028,7 +3038,7 @@ const $o = g.div`
|
|
|
3028
3038
|
columnSummaryFormats: h
|
|
3029
3039
|
} = ke();
|
|
3030
3040
|
return /* @__PURE__ */ n(
|
|
3031
|
-
|
|
3041
|
+
gi,
|
|
3032
3042
|
{
|
|
3033
3043
|
...e,
|
|
3034
3044
|
columnVisibility: t,
|
|
@@ -3048,16 +3058,16 @@ const $o = g.div`
|
|
|
3048
3058
|
columnSummaryFormats: h
|
|
3049
3059
|
}
|
|
3050
3060
|
);
|
|
3051
|
-
},
|
|
3061
|
+
}, bi = g.div`
|
|
3052
3062
|
padding: var(--padding-m);
|
|
3053
3063
|
display: flex;
|
|
3054
3064
|
flex-direction: column;
|
|
3055
3065
|
gap: 12px;
|
|
3056
|
-
`,
|
|
3066
|
+
`, yi = g.div`
|
|
3057
3067
|
display: flex;
|
|
3058
3068
|
align-items: center;
|
|
3059
3069
|
gap: 12px;
|
|
3060
|
-
`,
|
|
3070
|
+
`, xi = g.input`
|
|
3061
3071
|
flex: 1;
|
|
3062
3072
|
height: 4px;
|
|
3063
3073
|
border-radius: 2px;
|
|
@@ -3098,11 +3108,11 @@ const $o = g.div`
|
|
|
3098
3108
|
&:hover::-moz-range-thumb {
|
|
3099
3109
|
background: var(--md-sys-color-primary-container);
|
|
3100
3110
|
}
|
|
3101
|
-
`,
|
|
3111
|
+
`, wi = g.span`
|
|
3102
3112
|
color: var(--md-sys-color-on-surface-variant);
|
|
3103
3113
|
min-width: 40px;
|
|
3104
3114
|
text-align: right;
|
|
3105
|
-
`,
|
|
3115
|
+
`, Si = ({
|
|
3106
3116
|
value: e,
|
|
3107
3117
|
onChange: t,
|
|
3108
3118
|
onChangeComplete: o,
|
|
@@ -3120,7 +3130,7 @@ const $o = g.div`
|
|
|
3120
3130
|
const h = ee((y) => {
|
|
3121
3131
|
const w = parseInt(y.target.value, 10);
|
|
3122
3132
|
d(!0), m(w);
|
|
3123
|
-
}, []), E =
|
|
3133
|
+
}, []), E = Io(l, b);
|
|
3124
3134
|
J(() => {
|
|
3125
3135
|
x && t(l);
|
|
3126
3136
|
}, [E, t, x, l]);
|
|
@@ -3129,11 +3139,11 @@ const $o = g.div`
|
|
|
3129
3139
|
}, []), f = ee(() => {
|
|
3130
3140
|
u(!1), d(!1), o && o(l);
|
|
3131
3141
|
}, [l, o]), p = (l - s) / (i - s) * 100;
|
|
3132
|
-
return /* @__PURE__ */ k(
|
|
3142
|
+
return /* @__PURE__ */ k(bi, { children: [
|
|
3133
3143
|
/* @__PURE__ */ n("label", { htmlFor: a, children: r }),
|
|
3134
|
-
/* @__PURE__ */ k(
|
|
3144
|
+
/* @__PURE__ */ k(yi, { children: [
|
|
3135
3145
|
/* @__PURE__ */ n(
|
|
3136
|
-
|
|
3146
|
+
xi,
|
|
3137
3147
|
{
|
|
3138
3148
|
id: a,
|
|
3139
3149
|
type: "range",
|
|
@@ -3149,17 +3159,17 @@ const $o = g.div`
|
|
|
3149
3159
|
}
|
|
3150
3160
|
}
|
|
3151
3161
|
),
|
|
3152
|
-
/* @__PURE__ */ n(
|
|
3162
|
+
/* @__PURE__ */ n(wi, { children: l })
|
|
3153
3163
|
] })
|
|
3154
3164
|
] });
|
|
3155
|
-
}, Se = "hierarchy", mt = "folder", Zt = "name",
|
|
3165
|
+
}, Se = "hierarchy", mt = "folder", Zt = "name", ki = ({ scope: e }) => {
|
|
3156
3166
|
const { groupBy: t, groupByConfig: o, updateGroupBy: r, updateGroupByConfig: a, sorting: s, updateSorting: i } = ke(), {
|
|
3157
3167
|
modules: v,
|
|
3158
3168
|
showHierarchy: b,
|
|
3159
3169
|
updateShowHierarchy: c,
|
|
3160
3170
|
hierarchyOptions: u,
|
|
3161
3171
|
hierarchyActive: l
|
|
3162
|
-
} = We(), m =
|
|
3172
|
+
} = We(), m = To({ scope: e });
|
|
3163
3173
|
if (!v) return null;
|
|
3164
3174
|
const { GroupSettings: x, requiredVersion: d } = v || {}, h = !!c, S = h ? [...u || [
|
|
3165
3175
|
{ value: Se, label: "Hierarchy", icon: "account_tree" },
|
|
@@ -3199,10 +3209,12 @@ const $o = g.div`
|
|
|
3199
3209
|
}
|
|
3200
3210
|
)
|
|
3201
3211
|
};
|
|
3202
|
-
},
|
|
3212
|
+
}, Ci = (e = []) => {
|
|
3203
3213
|
const { sorting: t, updateSorting: o } = ke(), { attribFields: r, scopes: a } = We(), s = [
|
|
3204
|
-
...
|
|
3205
|
-
...r.filter(
|
|
3214
|
+
...yo(a, e),
|
|
3215
|
+
...r.filter(
|
|
3216
|
+
(l) => l.scope?.some((m) => a.includes(m)) && !xo(l)
|
|
3217
|
+
).map((l) => ({
|
|
3206
3218
|
id: `attrib_${l.name}`,
|
|
3207
3219
|
label: l.data.title || l.name
|
|
3208
3220
|
}))
|
|
@@ -3230,11 +3242,11 @@ const $o = g.div`
|
|
|
3230
3242
|
}
|
|
3231
3243
|
)
|
|
3232
3244
|
};
|
|
3233
|
-
}, Pt = [
|
|
3234
|
-
const r = document.querySelector(`[${
|
|
3245
|
+
}, Pt = [Lo, Oo], en = 5, Ei = `#${Do}, [data-column-drag-origin]`, Ii = (e, t) => {
|
|
3246
|
+
const r = document.querySelector(`[${yn}]`)?.getBoundingClientRect();
|
|
3235
3247
|
if (!r || e < r.left || e > r.right || t < r.top || t > r.bottom) return;
|
|
3236
3248
|
const a = Array.from(
|
|
3237
|
-
document.querySelectorAll(
|
|
3249
|
+
document.querySelectorAll(xn)
|
|
3238
3250
|
).filter((v) => !Pt.includes(v.dataset.columnId || "")), s = a.find((v) => {
|
|
3239
3251
|
const b = v.getBoundingClientRect();
|
|
3240
3252
|
return e >= b.left && e < b.right;
|
|
@@ -3243,18 +3255,18 @@ const $o = g.div`
|
|
|
3243
3255
|
const i = a[a.length - 1];
|
|
3244
3256
|
return e >= i.getBoundingClientRect().right ? i : a[0];
|
|
3245
3257
|
}, tn = (e, t) => {
|
|
3246
|
-
const o = document.elementsFromPoint(e, t).map((i) => i.closest?.(
|
|
3258
|
+
const o = document.elementsFromPoint(e, t).map((i) => i.closest?.(xn)).find(Boolean) ?? Ii(e, t), r = o?.dataset.columnId;
|
|
3247
3259
|
if (!o || !r || Pt.includes(r)) return null;
|
|
3248
3260
|
const a = o.getBoundingClientRect(), s = e < a.left + a.width / 2 ? "left" : "right";
|
|
3249
3261
|
return {
|
|
3250
3262
|
columnId: r,
|
|
3251
3263
|
side: s,
|
|
3252
|
-
line:
|
|
3264
|
+
line: Po(o, s)
|
|
3253
3265
|
};
|
|
3254
|
-
},
|
|
3266
|
+
}, Ti = (e, t) => {
|
|
3255
3267
|
const o = e.length ? e : t;
|
|
3256
3268
|
return [...o, ...t.filter((r) => !o.includes(r))];
|
|
3257
|
-
},
|
|
3269
|
+
}, Ni = () => {
|
|
3258
3270
|
const {
|
|
3259
3271
|
columnVisibility: e,
|
|
3260
3272
|
columnOrder: t,
|
|
@@ -3302,7 +3314,7 @@ const $o = g.div`
|
|
|
3302
3314
|
getAllColumns: m
|
|
3303
3315
|
};
|
|
3304
3316
|
const p = ee((N, B) => {
|
|
3305
|
-
const L = f.current, z =
|
|
3317
|
+
const L = f.current, z = Ti(L.columnOrder, L.getAllColumns()).filter(
|
|
3306
3318
|
(C) => C !== N && !Pt.includes(C)
|
|
3307
3319
|
), T = z.indexOf(B.columnId), V = T === -1 ? z.length : T + (B.side === "left" ? 0 : 1), F = [...z.slice(0, V), N, ...z.slice(V)], R = new Set(L.columnPinning.left || []);
|
|
3308
3320
|
R.has(B.columnId) ? R.add(N) : R.delete(N), L.setColumnsConfig({
|
|
@@ -3326,7 +3338,7 @@ const $o = g.div`
|
|
|
3326
3338
|
column: N,
|
|
3327
3339
|
x: B.clientX,
|
|
3328
3340
|
y: B.clientY,
|
|
3329
|
-
origin: L.closest(
|
|
3341
|
+
origin: L.closest(Ei),
|
|
3330
3342
|
immediate: !!B.target.closest?.(".hover-swap"),
|
|
3331
3343
|
grab: {
|
|
3332
3344
|
x: B.clientX - z.left,
|
|
@@ -3348,7 +3360,7 @@ const $o = g.div`
|
|
|
3348
3360
|
R && (Math.abs(V - R.x) < en && Math.abs(F - R.y) < en || !R.immediate && N(V, F, R.origin) || h({ column: R.column, x: V, y: F, grab: R.grab, target: tn(V, F) }));
|
|
3349
3361
|
}, L = () => {
|
|
3350
3362
|
const T = S.current;
|
|
3351
|
-
E.current = null, T && (
|
|
3363
|
+
E.current = null, T && (_i(), T.target && (p(T.column.value, T.target), x(!1)), h(null));
|
|
3352
3364
|
}, z = (T) => {
|
|
3353
3365
|
T.key === "Escape" && y();
|
|
3354
3366
|
};
|
|
@@ -3356,10 +3368,10 @@ const $o = g.div`
|
|
|
3356
3368
|
window.removeEventListener("pointermove", B), window.removeEventListener("pointerup", L), window.removeEventListener("pointercancel", y), window.removeEventListener("keydown", z);
|
|
3357
3369
|
};
|
|
3358
3370
|
}, [p, y, x]);
|
|
3359
|
-
const P = d ? document.querySelector(`[${
|
|
3371
|
+
const P = d ? document.querySelector(`[${yn}]`)?.getBoundingClientRect() : void 0, $ = d ? sn(
|
|
3360
3372
|
/* @__PURE__ */ k(me, { children: [
|
|
3361
3373
|
P && /* @__PURE__ */ n(
|
|
3362
|
-
|
|
3374
|
+
Ai,
|
|
3363
3375
|
{
|
|
3364
3376
|
style: {
|
|
3365
3377
|
left: P.left,
|
|
@@ -3370,38 +3382,38 @@ const $o = g.div`
|
|
|
3370
3382
|
}
|
|
3371
3383
|
),
|
|
3372
3384
|
/* @__PURE__ */ k(
|
|
3373
|
-
|
|
3385
|
+
Di,
|
|
3374
3386
|
{
|
|
3375
3387
|
style: {
|
|
3376
3388
|
left: d.x - d.grab.x,
|
|
3377
3389
|
top: d.y - d.grab.y,
|
|
3378
3390
|
width: d.grab.width
|
|
3379
3391
|
},
|
|
3380
|
-
className:
|
|
3392
|
+
className: Pi(d),
|
|
3381
3393
|
children: [
|
|
3382
3394
|
d.column.icon && /* @__PURE__ */ n(G, { icon: d.column.icon }),
|
|
3383
3395
|
/* @__PURE__ */ n("span", { children: d.column.label })
|
|
3384
3396
|
]
|
|
3385
3397
|
}
|
|
3386
3398
|
),
|
|
3387
|
-
d.target && /* @__PURE__ */ n(
|
|
3399
|
+
d.target && /* @__PURE__ */ n(No, { style: d.target.line })
|
|
3388
3400
|
] }),
|
|
3389
3401
|
document.body
|
|
3390
3402
|
) : null;
|
|
3391
3403
|
return { armDrag: w, cancelDrag: y, isDragging: !!d, dragOverlay: $ };
|
|
3392
|
-
},
|
|
3404
|
+
}, Pi = (e) => e.target ? "over-target" : "", _i = () => {
|
|
3393
3405
|
const e = (t) => {
|
|
3394
3406
|
t.stopPropagation(), t.preventDefault();
|
|
3395
3407
|
};
|
|
3396
3408
|
window.addEventListener("click", e, !0), setTimeout(() => window.removeEventListener("click", e, !0), 0);
|
|
3397
|
-
},
|
|
3409
|
+
}, Ai = g.div`
|
|
3398
3410
|
position: fixed;
|
|
3399
3411
|
box-sizing: border-box;
|
|
3400
3412
|
z-index: 999;
|
|
3401
3413
|
pointer-events: none;
|
|
3402
3414
|
border-radius: 4px;
|
|
3403
3415
|
background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
|
|
3404
|
-
`,
|
|
3416
|
+
`, Di = g.div`
|
|
3405
3417
|
position: fixed;
|
|
3406
3418
|
box-sizing: border-box;
|
|
3407
3419
|
z-index: 2000;
|
|
@@ -3432,7 +3444,7 @@ const $o = g.div`
|
|
|
3432
3444
|
columnVisibility: r,
|
|
3433
3445
|
defaultColumnVisibility: a,
|
|
3434
3446
|
updateColumnVisibility: s
|
|
3435
|
-
}), { armDrag: x, cancelDrag: d, isDragging: h, dragOverlay: E } =
|
|
3447
|
+
}), { armDrag: x, cancelDrag: d, isDragging: h, dragOverlay: E } = Ni(), S = K({ isPainting: m, isDragging: h, cancelPaint: l });
|
|
3436
3448
|
S.current = { isPainting: m, isDragging: h, cancelPaint: l };
|
|
3437
3449
|
const f = ee((w, P) => {
|
|
3438
3450
|
S.current.isDragging || (P && d(), c(w, P));
|
|
@@ -3468,13 +3480,13 @@ const $o = g.div`
|
|
|
3468
3480
|
onColumnDragStart: x,
|
|
3469
3481
|
isColumnDragging: h
|
|
3470
3482
|
};
|
|
3471
|
-
},
|
|
3472
|
-
extraColumns: e =
|
|
3473
|
-
hiddenColumns: t =
|
|
3483
|
+
}, Li = [], Oi = [], Vn = ({
|
|
3484
|
+
extraColumns: e = Li,
|
|
3485
|
+
hiddenColumns: t = Oi,
|
|
3474
3486
|
includeLinks: o = !0,
|
|
3475
3487
|
parentColumns: r = []
|
|
3476
3488
|
}) => {
|
|
3477
|
-
const { linkTypes: a } =
|
|
3489
|
+
const { linkTypes: a } = bn(), { attribFields: s, scopes: i } = We(), v = X(
|
|
3478
3490
|
() => [
|
|
3479
3491
|
{
|
|
3480
3492
|
value: "thumbnail",
|
|
@@ -3483,7 +3495,7 @@ const $o = g.div`
|
|
|
3483
3495
|
},
|
|
3484
3496
|
{
|
|
3485
3497
|
value: "name",
|
|
3486
|
-
label:
|
|
3498
|
+
label: wo(i),
|
|
3487
3499
|
icon: Z("name")
|
|
3488
3500
|
},
|
|
3489
3501
|
{
|
|
@@ -3554,7 +3566,7 @@ const $o = g.div`
|
|
|
3554
3566
|
...s.filter((c) => c.scope?.some((u) => i.includes(u))).map((c) => ({
|
|
3555
3567
|
value: `attrib_${c.name}`,
|
|
3556
3568
|
label: c.data.title || c.name,
|
|
3557
|
-
icon: ve(c.name, c.data.type,
|
|
3569
|
+
icon: ve(c.name, c.data.type, vn(c.data)),
|
|
3558
3570
|
attrib: { builtin: c.builtin, scope: c.scope }
|
|
3559
3571
|
})),
|
|
3560
3572
|
...a && o ? a.filter(
|
|
@@ -3603,14 +3615,14 @@ const $o = g.div`
|
|
|
3603
3615
|
[v, t]
|
|
3604
3616
|
);
|
|
3605
3617
|
return { columns: v, visibleColumns: b, scopes: i };
|
|
3606
|
-
},
|
|
3618
|
+
}, Ri = g(H)`
|
|
3607
3619
|
min-width: 120px;
|
|
3608
|
-
`,
|
|
3620
|
+
`, $i = g(H)`
|
|
3609
3621
|
padding: 4px !important;
|
|
3610
|
-
`,
|
|
3622
|
+
`, Us = ({ defaultSelected: e, className: t, ...o }) => {
|
|
3611
3623
|
const { togglePanel: r, isPanelOpen: a } = Xe();
|
|
3612
3624
|
return /* @__PURE__ */ n(
|
|
3613
|
-
|
|
3625
|
+
Ri,
|
|
3614
3626
|
{
|
|
3615
3627
|
onClick: () => r(e),
|
|
3616
3628
|
icon: "settings",
|
|
@@ -3619,7 +3631,7 @@ const $o = g.div`
|
|
|
3619
3631
|
children: "Customize"
|
|
3620
3632
|
}
|
|
3621
3633
|
);
|
|
3622
|
-
},
|
|
3634
|
+
}, Hs = ({
|
|
3623
3635
|
settings: e = [],
|
|
3624
3636
|
extraColumns: t,
|
|
3625
3637
|
hiddenColumns: o,
|
|
@@ -3652,7 +3664,7 @@ const $o = g.div`
|
|
|
3652
3664
|
hiddenColumns: o,
|
|
3653
3665
|
includeLinks: s,
|
|
3654
3666
|
parentColumns: u
|
|
3655
|
-
}), B = a &&
|
|
3667
|
+
}), B = a && So(a, l), L = N.filter(
|
|
3656
3668
|
(O) => ae(x, O.value, d)
|
|
3657
3669
|
).length, {
|
|
3658
3670
|
menuItems: z,
|
|
@@ -3663,14 +3675,14 @@ const $o = g.div`
|
|
|
3663
3675
|
columns: N,
|
|
3664
3676
|
scopes: m,
|
|
3665
3677
|
extraItems: c
|
|
3666
|
-
}), R =
|
|
3678
|
+
}), R = ki({ scope: b }), C = Ci($), _ = [
|
|
3667
3679
|
{
|
|
3668
3680
|
id: "columns",
|
|
3669
3681
|
title: "Columns",
|
|
3670
3682
|
icon: "view_column",
|
|
3671
3683
|
preview: `${L}/${N.length}`,
|
|
3672
3684
|
headerActions: /* @__PURE__ */ n(
|
|
3673
|
-
|
|
3685
|
+
$i,
|
|
3674
3686
|
{
|
|
3675
3687
|
variant: "text",
|
|
3676
3688
|
icon: "search",
|
|
@@ -3681,7 +3693,7 @@ const $o = g.div`
|
|
|
3681
3693
|
),
|
|
3682
3694
|
component: /* @__PURE__ */ k(me, { children: [
|
|
3683
3695
|
/* @__PURE__ */ n(
|
|
3684
|
-
|
|
3696
|
+
fi,
|
|
3685
3697
|
{
|
|
3686
3698
|
columns: N,
|
|
3687
3699
|
highlighted: B,
|
|
@@ -3701,7 +3713,7 @@ const $o = g.div`
|
|
|
3701
3713
|
{
|
|
3702
3714
|
id: "row-height",
|
|
3703
3715
|
component: /* @__PURE__ */ n(
|
|
3704
|
-
|
|
3716
|
+
Si,
|
|
3705
3717
|
{
|
|
3706
3718
|
value: h,
|
|
3707
3719
|
onChange: E,
|
|
@@ -3716,8 +3728,8 @@ const $o = g.div`
|
|
|
3716
3728
|
if (r.includes(O.id)) return;
|
|
3717
3729
|
const M = _.findIndex((Y) => Y && "id" in Y && Y.id === O.id);
|
|
3718
3730
|
M !== -1 ? _[M] = O : _.push(O);
|
|
3719
|
-
}), /* @__PURE__ */ n(
|
|
3720
|
-
}, gt = "add-column-menu-table",
|
|
3731
|
+
}), /* @__PURE__ */ n(ri, { settings: _, order: v });
|
|
3732
|
+
}, gt = "add-column-menu-table", Fi = g.div`
|
|
3721
3733
|
position: absolute;
|
|
3722
3734
|
top: 4px;
|
|
3723
3735
|
right: 24px;
|
|
@@ -3727,7 +3739,7 @@ const $o = g.div`
|
|
|
3727
3739
|
padding: 2px;
|
|
3728
3740
|
border-radius: 12px;
|
|
3729
3741
|
}
|
|
3730
|
-
`,
|
|
3742
|
+
`, zs = ({
|
|
3731
3743
|
extraColumns: e,
|
|
3732
3744
|
hiddenColumns: t,
|
|
3733
3745
|
includeLinks: o,
|
|
@@ -3744,7 +3756,7 @@ const $o = g.div`
|
|
|
3744
3756
|
scopes: b,
|
|
3745
3757
|
extraItems: r
|
|
3746
3758
|
});
|
|
3747
|
-
return s ? null : /* @__PURE__ */ k(
|
|
3759
|
+
return s ? null : /* @__PURE__ */ k(Fi, { children: [
|
|
3748
3760
|
/* @__PURE__ */ n(
|
|
3749
3761
|
H,
|
|
3750
3762
|
{
|
|
@@ -3759,7 +3771,7 @@ const $o = g.div`
|
|
|
3759
3771
|
/* @__PURE__ */ n(yt, { menuId: gt, menuItems: c }),
|
|
3760
3772
|
l
|
|
3761
3773
|
] });
|
|
3762
|
-
},
|
|
3774
|
+
}, js = g.a`
|
|
3763
3775
|
color: var(--md-sys-color-primary, #0066cc);
|
|
3764
3776
|
text-decoration: none;
|
|
3765
3777
|
cursor: pointer;
|
|
@@ -3771,7 +3783,7 @@ const $o = g.div`
|
|
|
3771
3783
|
&:hover {
|
|
3772
3784
|
text-decoration: underline;
|
|
3773
3785
|
}
|
|
3774
|
-
`,
|
|
3786
|
+
`, Mi = g.div`
|
|
3775
3787
|
display: flex;
|
|
3776
3788
|
gap: var(--base-gap-small);
|
|
3777
3789
|
background-color: var(--md-sys-color-surface-container-high);
|
|
@@ -3784,14 +3796,14 @@ const $o = g.div`
|
|
|
3784
3796
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
3785
3797
|
}
|
|
3786
3798
|
}
|
|
3787
|
-
`,
|
|
3799
|
+
`, Ks = le(
|
|
3788
3800
|
({ showGrid: e, onChange: t, ...o }, r) => (J(() => {
|
|
3789
3801
|
const a = (s) => {
|
|
3790
3802
|
const i = s.target;
|
|
3791
3803
|
i.tagName === "INPUT" || i.tagName === "TEXTAREA" || i.isContentEditable || i.getAttribute("role") === "textbox" || i.tagName === "LI" || (s.key.toLowerCase() === "t" ? t(!1) : s.key.toLowerCase() === "g" && t(!0));
|
|
3792
3804
|
};
|
|
3793
3805
|
return window.addEventListener("keydown", a), () => window.removeEventListener("keydown", a);
|
|
3794
|
-
}, [t]), /* @__PURE__ */ k(
|
|
3806
|
+
}, [t]), /* @__PURE__ */ k(Mi, { ...o, ref: r, children: [
|
|
3795
3807
|
/* @__PURE__ */ n(
|
|
3796
3808
|
nn,
|
|
3797
3809
|
{
|
|
@@ -3815,13 +3827,13 @@ const $o = g.div`
|
|
|
3815
3827
|
}
|
|
3816
3828
|
)
|
|
3817
3829
|
] }))
|
|
3818
|
-
),
|
|
3830
|
+
), Vi = g.form`
|
|
3819
3831
|
display: flex;
|
|
3820
3832
|
flex-direction: column;
|
|
3821
3833
|
gap: var(--base-gap-large);
|
|
3822
3834
|
padding: var(--padding-m);
|
|
3823
3835
|
width: 100%;
|
|
3824
|
-
`,
|
|
3836
|
+
`, Bi = g(wt)`
|
|
3825
3837
|
width: 100%;
|
|
3826
3838
|
margin: auto;
|
|
3827
3839
|
|
|
@@ -3832,12 +3844,12 @@ const $o = g.div`
|
|
|
3832
3844
|
input {
|
|
3833
3845
|
width: 100%;
|
|
3834
3846
|
}
|
|
3835
|
-
`,
|
|
3847
|
+
`, Ui = g.div`
|
|
3836
3848
|
font-size: var(--font-size-xs);
|
|
3837
3849
|
color: var(--md-sys-color-outline);
|
|
3838
3850
|
margin-top: var(--base-gap-small);
|
|
3839
3851
|
line-height: 1.3;
|
|
3840
|
-
`,
|
|
3852
|
+
`, Hi = g.button`
|
|
3841
3853
|
background: none;
|
|
3842
3854
|
border: none;
|
|
3843
3855
|
color: var(--md-sys-color-primary);
|
|
@@ -3850,7 +3862,7 @@ const $o = g.div`
|
|
|
3850
3862
|
&:hover {
|
|
3851
3863
|
color: var(--md-sys-color-primary-dark);
|
|
3852
3864
|
}
|
|
3853
|
-
`,
|
|
3865
|
+
`, zi = g.div`
|
|
3854
3866
|
display: flex;
|
|
3855
3867
|
align-items: start;
|
|
3856
3868
|
gap: var(--base-gap-small);
|
|
@@ -3860,39 +3872,39 @@ const $o = g.div`
|
|
|
3860
3872
|
flex: 1;
|
|
3861
3873
|
min-width: 0;
|
|
3862
3874
|
}
|
|
3863
|
-
`,
|
|
3875
|
+
`, ji = g.div`
|
|
3864
3876
|
font-size: var(--font-size-xs);
|
|
3865
3877
|
color: var(--md-sys-color-primary);
|
|
3866
3878
|
margin-top: var(--base-gap-small);
|
|
3867
3879
|
line-height: 1.3;
|
|
3868
|
-
`,
|
|
3880
|
+
`, Ki = g.div`
|
|
3869
3881
|
position: relative;
|
|
3870
3882
|
min-height: 80px;
|
|
3871
|
-
`,
|
|
3883
|
+
`, Gi = g.div`
|
|
3872
3884
|
display: flex;
|
|
3873
3885
|
align-items: center;
|
|
3874
3886
|
gap: var(--base-gap-small);
|
|
3875
3887
|
width: 100%;
|
|
3876
|
-
`,
|
|
3888
|
+
`, Yi = g(H)`
|
|
3877
3889
|
flex: 1;
|
|
3878
|
-
`,
|
|
3890
|
+
`, qi = g.div`
|
|
3879
3891
|
width: 100%;
|
|
3880
3892
|
overflow: hidden;
|
|
3881
3893
|
display: flex;
|
|
3882
3894
|
min-width: 0;
|
|
3883
|
-
`,
|
|
3895
|
+
`, Wi = g.span`
|
|
3884
3896
|
overflow: hidden;
|
|
3885
3897
|
text-overflow: ellipsis;
|
|
3886
3898
|
white-space: nowrap;
|
|
3887
3899
|
max-width: fit-content;
|
|
3888
3900
|
margin-right: 4px;
|
|
3889
3901
|
flex: 1;
|
|
3890
|
-
`,
|
|
3902
|
+
`, Xi = g.span`
|
|
3891
3903
|
white-space: nowrap;
|
|
3892
3904
|
overflow: hidden;
|
|
3893
3905
|
text-overflow: ellipsis;
|
|
3894
3906
|
font-weight: bold;
|
|
3895
|
-
`,
|
|
3907
|
+
`, Qi = ({
|
|
3896
3908
|
formData: e,
|
|
3897
3909
|
onChange: t,
|
|
3898
3910
|
onSubmit: o,
|
|
@@ -3925,10 +3937,10 @@ const $o = g.div`
|
|
|
3925
3937
|
t("name", D.length > 0 ? D[0] : "");
|
|
3926
3938
|
},
|
|
3927
3939
|
[t]
|
|
3928
|
-
), V = N?.latestVersion ? `v${String(N.latestVersion.version).padStart(3, "0")}` : "", { data: F, isFetching: R } =
|
|
3940
|
+
), V = N?.latestVersion ? `v${String(N.latestVersion.version).padStart(3, "0")}` : "", { data: F, isFetching: R } = uo(
|
|
3929
3941
|
{ projectName: a, taskId: E },
|
|
3930
3942
|
{ skip: !E }
|
|
3931
|
-
), C = f || !!E && R && !S, _ = F?.folderId || w, O =
|
|
3943
|
+
), C = f || !!E && R && !S, _ = F?.folderId || w, O = bn(), M = F?.label || F?.name || S?.label || S?.name || "", Y = F?.taskType || S?.taskType, ne = Y ? O.getTaskType(Y) : void 0, re = ne?.icon || "task_alt", be = F?.path ? F.path.substring(0, F.path.lastIndexOf("/")) : "", ye = O.getProductTypeOptions(), ue = X(() => O.productTypes.reduce((D, q) => (D[q.name] = q, D), {}), [O.productTypes]);
|
|
3932
3944
|
J(() => {
|
|
3933
3945
|
const D = b.current, q = ue[D]?.name || "", he = ue[e.productType]?.name || "";
|
|
3934
3946
|
if (e.productType !== D && q && e.name.startsWith(q)) {
|
|
@@ -3956,7 +3968,7 @@ const $o = g.div`
|
|
|
3956
3968
|
return e.name && !e.name.startsWith(D);
|
|
3957
3969
|
}, ie = !!i;
|
|
3958
3970
|
return /* @__PURE__ */ k(
|
|
3959
|
-
|
|
3971
|
+
Vi,
|
|
3960
3972
|
{
|
|
3961
3973
|
id: "upload-version-form",
|
|
3962
3974
|
ref: u,
|
|
@@ -3969,8 +3981,8 @@ const $o = g.div`
|
|
|
3969
3981
|
}
|
|
3970
3982
|
},
|
|
3971
3983
|
children: [
|
|
3972
|
-
/* @__PURE__ */ k(
|
|
3973
|
-
!r.includes("name") && /* @__PURE__ */ n(te, { label: "Product Name", children: /* @__PURE__ */ k(
|
|
3984
|
+
/* @__PURE__ */ k(Bi, { children: [
|
|
3985
|
+
!r.includes("name") && /* @__PURE__ */ n(te, { label: "Product Name", children: /* @__PURE__ */ k(zi, { children: [
|
|
3974
3986
|
/* @__PURE__ */ k("div", { children: [
|
|
3975
3987
|
/* @__PURE__ */ n(
|
|
3976
3988
|
De,
|
|
@@ -3985,17 +3997,17 @@ const $o = g.div`
|
|
|
3985
3997
|
disabled: ie
|
|
3986
3998
|
}
|
|
3987
3999
|
),
|
|
3988
|
-
N && /* @__PURE__ */ n(
|
|
4000
|
+
N && /* @__PURE__ */ n(ji, { children: N.latestVersion ? /* @__PURE__ */ k(me, { children: [
|
|
3989
4001
|
"Matched existing product (latest: ",
|
|
3990
4002
|
V,
|
|
3991
4003
|
")"
|
|
3992
4004
|
] }) : "Matched existing product (no versions)" }),
|
|
3993
|
-
!N && ce() && /* @__PURE__ */ k(
|
|
4005
|
+
!N && ce() && /* @__PURE__ */ k(Ui, { id: "name-recommendation", children: [
|
|
3994
4006
|
'We recommend prefixing with "',
|
|
3995
4007
|
ue[e.productType]?.name,
|
|
3996
4008
|
'".',
|
|
3997
4009
|
" ",
|
|
3998
|
-
/* @__PURE__ */ n(
|
|
4010
|
+
/* @__PURE__ */ n(Hi, { type: "button", onClick: ge, children: "Apply prefix" })
|
|
3999
4011
|
] })
|
|
4000
4012
|
] }),
|
|
4001
4013
|
!v && !ie && /* @__PURE__ */ n(
|
|
@@ -4050,9 +4062,9 @@ const $o = g.div`
|
|
|
4050
4062
|
disabled: ie
|
|
4051
4063
|
}
|
|
4052
4064
|
) }),
|
|
4053
|
-
/* @__PURE__ */ n(te, { label: "Task", children: /* @__PURE__ */ n(
|
|
4065
|
+
/* @__PURE__ */ n(te, { label: "Task", children: /* @__PURE__ */ n(Gi, { children: C ? /* @__PURE__ */ n(Ro, { height: "20px" }) : E && M ? /* @__PURE__ */ k(me, { children: [
|
|
4054
4066
|
/* @__PURE__ */ k(
|
|
4055
|
-
|
|
4067
|
+
Yi,
|
|
4056
4068
|
{
|
|
4057
4069
|
type: "button",
|
|
4058
4070
|
onClick: () => L(!0),
|
|
@@ -4060,13 +4072,13 @@ const $o = g.div`
|
|
|
4060
4072
|
variant: "text",
|
|
4061
4073
|
children: [
|
|
4062
4074
|
/* @__PURE__ */ n(G, { icon: re, style: { color: ne?.color } }),
|
|
4063
|
-
/* @__PURE__ */ k(
|
|
4064
|
-
be && /* @__PURE__ */ k(
|
|
4075
|
+
/* @__PURE__ */ k(qi, { children: [
|
|
4076
|
+
be && /* @__PURE__ */ k(Wi, { children: [
|
|
4065
4077
|
be.split("/").filter(Boolean).join(" / "),
|
|
4066
4078
|
" /",
|
|
4067
4079
|
" "
|
|
4068
4080
|
] }),
|
|
4069
|
-
/* @__PURE__ */ n(
|
|
4081
|
+
/* @__PURE__ */ n(Xi, { children: M })
|
|
4070
4082
|
] })
|
|
4071
4083
|
]
|
|
4072
4084
|
}
|
|
@@ -4096,7 +4108,7 @@ const $o = g.div`
|
|
|
4096
4108
|
) }) })
|
|
4097
4109
|
] }),
|
|
4098
4110
|
B && /* @__PURE__ */ n(
|
|
4099
|
-
|
|
4111
|
+
Eo,
|
|
4100
4112
|
{
|
|
4101
4113
|
projectName: a,
|
|
4102
4114
|
entityType: "task",
|
|
@@ -4111,8 +4123,8 @@ const $o = g.div`
|
|
|
4111
4123
|
}
|
|
4112
4124
|
),
|
|
4113
4125
|
/* @__PURE__ */ n(te, { label: "Reviewable files" }),
|
|
4114
|
-
/* @__PURE__ */ n(
|
|
4115
|
-
|
|
4126
|
+
/* @__PURE__ */ n(Ki, { children: /* @__PURE__ */ n(
|
|
4127
|
+
mo,
|
|
4116
4128
|
{
|
|
4117
4129
|
projectName: a,
|
|
4118
4130
|
versionId: i,
|
|
@@ -4135,15 +4147,15 @@ const $o = g.div`
|
|
|
4135
4147
|
]
|
|
4136
4148
|
}
|
|
4137
4149
|
);
|
|
4138
|
-
},
|
|
4150
|
+
}, Ji = (e) => {
|
|
4139
4151
|
let t = String(e), o = Math.max(0, 3 - t.length);
|
|
4140
4152
|
return `v${"0".repeat(o)}${t}`;
|
|
4141
|
-
},
|
|
4153
|
+
}, Zi = g.span`
|
|
4142
4154
|
background-color: var(--md-sys-color-error-container);
|
|
4143
4155
|
color: var(--md-sys-color-on-error-container);
|
|
4144
4156
|
padding: var(--padding-s);
|
|
4145
4157
|
border-radius: var(--border-radius-m);
|
|
4146
|
-
`,
|
|
4158
|
+
`, Gs = () => {
|
|
4147
4159
|
const {
|
|
4148
4160
|
isOpen: e,
|
|
4149
4161
|
onCloseVersionUpload: t,
|
|
@@ -4167,7 +4179,7 @@ const $o = g.div`
|
|
|
4167
4179
|
{
|
|
4168
4180
|
type: "submit",
|
|
4169
4181
|
form: "upload-version-form",
|
|
4170
|
-
label: `Create ${
|
|
4182
|
+
label: `Create ${Ji(s.version)}`,
|
|
4171
4183
|
icon: "upload",
|
|
4172
4184
|
active: !0,
|
|
4173
4185
|
saving: c
|
|
@@ -4185,7 +4197,7 @@ const $o = g.div`
|
|
|
4185
4197
|
style: { width: 600, maxHeight: "80vh" },
|
|
4186
4198
|
children: [
|
|
4187
4199
|
/* @__PURE__ */ n(
|
|
4188
|
-
|
|
4200
|
+
Qi,
|
|
4189
4201
|
{
|
|
4190
4202
|
formData: s,
|
|
4191
4203
|
minVersion: i,
|
|
@@ -4197,24 +4209,24 @@ const $o = g.div`
|
|
|
4197
4209
|
productId: d
|
|
4198
4210
|
}
|
|
4199
4211
|
),
|
|
4200
|
-
E && /* @__PURE__ */ n(
|
|
4212
|
+
E && /* @__PURE__ */ n(Zi, { className: "error", children: io(u) })
|
|
4201
4213
|
]
|
|
4202
4214
|
}
|
|
4203
4215
|
);
|
|
4204
|
-
},
|
|
4216
|
+
}, ea = g.div`
|
|
4205
4217
|
position: relative;
|
|
4206
4218
|
flex: 1;
|
|
4207
4219
|
z-index: 1000;
|
|
4208
4220
|
overflow: hidden;
|
|
4209
4221
|
padding-bottom: var(--padding-m);
|
|
4210
|
-
`,
|
|
4222
|
+
`, ta = g($o)`
|
|
4211
4223
|
display: flex;
|
|
4212
4224
|
flex-direction: column;
|
|
4213
4225
|
justify-content: flex-start;
|
|
4214
4226
|
align-items: center;
|
|
4215
4227
|
min-width: fit-content;
|
|
4216
4228
|
gap: var(--base-gap-small);
|
|
4217
|
-
`,
|
|
4229
|
+
`, na = g.div`
|
|
4218
4230
|
position: relative;
|
|
4219
4231
|
display: flex;
|
|
4220
4232
|
flex-direction: column;
|
|
@@ -4264,7 +4276,7 @@ const $o = g.div`
|
|
|
4264
4276
|
border-color: var(--selection-border-color);
|
|
4265
4277
|
color: var(--selection-color);
|
|
4266
4278
|
}
|
|
4267
|
-
`,
|
|
4279
|
+
`, oa = g.span`
|
|
4268
4280
|
padding: var(--padding-m);
|
|
4269
4281
|
border-radius: var(--border-radius-m);
|
|
4270
4282
|
background-color: var(--md-sys-color-surface-container-low);
|
|
@@ -4275,7 +4287,7 @@ const $o = g.div`
|
|
|
4275
4287
|
left: -8px;
|
|
4276
4288
|
transform: translateX(-100%) translateY(-50%);
|
|
4277
4289
|
z-index: 1000;
|
|
4278
|
-
`,
|
|
4290
|
+
`, ra = g(H)`
|
|
4279
4291
|
width: 62px;
|
|
4280
4292
|
min-height: 62px;
|
|
4281
4293
|
background-color: var(--md-sys-color-surface-container-high);
|
|
@@ -4283,7 +4295,7 @@ const $o = g.div`
|
|
|
4283
4295
|
&:hover {
|
|
4284
4296
|
background-color: var(--md-sys-color-surface-container-high-hover);
|
|
4285
4297
|
}
|
|
4286
|
-
`,
|
|
4298
|
+
`, ia = g.div`
|
|
4287
4299
|
border-radius: var(--border-radius-m);
|
|
4288
4300
|
background-color: var(--md-sys-color-surface-container-high);
|
|
4289
4301
|
position: absolute;
|
|
@@ -4291,7 +4303,7 @@ const $o = g.div`
|
|
|
4291
4303
|
right: var(--padding-s);
|
|
4292
4304
|
padding: var(--padding-s);
|
|
4293
4305
|
`;
|
|
4294
|
-
function
|
|
4306
|
+
function aa({
|
|
4295
4307
|
fileId: e,
|
|
4296
4308
|
label: t,
|
|
4297
4309
|
selected: o,
|
|
@@ -4304,9 +4316,9 @@ function ia({
|
|
|
4304
4316
|
selectionVariant: c = "primary",
|
|
4305
4317
|
shortcut: u
|
|
4306
4318
|
}) {
|
|
4307
|
-
const [l] =
|
|
4319
|
+
const [l] = ko();
|
|
4308
4320
|
return /* @__PURE__ */ k(
|
|
4309
|
-
|
|
4321
|
+
na,
|
|
4310
4322
|
{
|
|
4311
4323
|
id: "preview-" + e,
|
|
4312
4324
|
onClick: (m) => i?.(e, m.metaKey || m.ctrlKey),
|
|
@@ -4321,14 +4333,14 @@ function ia({
|
|
|
4321
4333
|
},
|
|
4322
4334
|
tabIndex: 0,
|
|
4323
4335
|
children: [
|
|
4324
|
-
/* @__PURE__ */ n(
|
|
4325
|
-
v && /* @__PURE__ */ n(
|
|
4336
|
+
/* @__PURE__ */ n(go, { src: `/api/projects/${r}/files/${e}/thumbnail` }),
|
|
4337
|
+
v && /* @__PURE__ */ n(ia, { children: v })
|
|
4326
4338
|
]
|
|
4327
4339
|
},
|
|
4328
4340
|
e
|
|
4329
4341
|
);
|
|
4330
4342
|
}
|
|
4331
|
-
const
|
|
4343
|
+
const Ys = le(({
|
|
4332
4344
|
reviewables: e = [],
|
|
4333
4345
|
selected: t = [],
|
|
4334
4346
|
projectName: o,
|
|
@@ -4383,9 +4395,9 @@ const $s = le(({
|
|
|
4383
4395
|
if (f === (E - 1 + p) % p) return "W";
|
|
4384
4396
|
if (f === (E + 1) % p) return "S";
|
|
4385
4397
|
};
|
|
4386
|
-
return /* @__PURE__ */ k(
|
|
4398
|
+
return /* @__PURE__ */ k(ea, { children: [
|
|
4387
4399
|
/* @__PURE__ */ k(
|
|
4388
|
-
|
|
4400
|
+
ta,
|
|
4389
4401
|
{
|
|
4390
4402
|
className: "reviewables",
|
|
4391
4403
|
ref: i,
|
|
@@ -4394,7 +4406,7 @@ const $s = le(({
|
|
|
4394
4406
|
},
|
|
4395
4407
|
children: [
|
|
4396
4408
|
e.map(({ fileId: f, label: p, tag: y, selectionVariant: w, contextMenuItems: P }, $) => /* @__PURE__ */ n(
|
|
4397
|
-
|
|
4409
|
+
aa,
|
|
4398
4410
|
{
|
|
4399
4411
|
shortcut: S($),
|
|
4400
4412
|
projectName: o,
|
|
@@ -4411,7 +4423,7 @@ const $s = le(({
|
|
|
4411
4423
|
f
|
|
4412
4424
|
)),
|
|
4413
4425
|
!!a && /* @__PURE__ */ n(
|
|
4414
|
-
|
|
4426
|
+
ra,
|
|
4415
4427
|
{
|
|
4416
4428
|
icon: "add",
|
|
4417
4429
|
onClick: a,
|
|
@@ -4421,60 +4433,60 @@ const $s = le(({
|
|
|
4421
4433
|
]
|
|
4422
4434
|
}
|
|
4423
4435
|
),
|
|
4424
|
-
b && u && /* @__PURE__ */ n(
|
|
4436
|
+
b && u && /* @__PURE__ */ n(oa, { style: { top: u }, children: b })
|
|
4425
4437
|
] });
|
|
4426
4438
|
});
|
|
4427
4439
|
export {
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4440
|
+
vs as A,
|
|
4441
|
+
Hs as B,
|
|
4442
|
+
ms as C,
|
|
4443
|
+
Ss as D,
|
|
4444
|
+
Ho as E,
|
|
4445
|
+
$s as F,
|
|
4434
4446
|
Ut as G,
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4447
|
+
Ys as H,
|
|
4448
|
+
oi as I,
|
|
4449
|
+
Bs as J,
|
|
4450
|
+
ri as K,
|
|
4451
|
+
As as L,
|
|
4452
|
+
Rs as M,
|
|
4441
4453
|
An as N,
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4454
|
+
Ko as O,
|
|
4455
|
+
Ds as P,
|
|
4456
|
+
Si as Q,
|
|
4457
|
+
Vs as R,
|
|
4458
|
+
gs as S,
|
|
4459
|
+
xs as T,
|
|
4460
|
+
js as U,
|
|
4449
4461
|
Ht as V,
|
|
4450
|
-
|
|
4462
|
+
Ks as W,
|
|
4451
4463
|
zt as X,
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4464
|
+
Gs as Y,
|
|
4465
|
+
fs as Z,
|
|
4466
|
+
ys as a,
|
|
4467
|
+
ks as b,
|
|
4468
|
+
Cs as c,
|
|
4469
|
+
Es as d,
|
|
4470
|
+
Is as e,
|
|
4471
|
+
Ts as f,
|
|
4472
|
+
ws as g,
|
|
4473
|
+
Os as h,
|
|
4474
|
+
Fs as i,
|
|
4475
|
+
Ls as j,
|
|
4476
|
+
Ms as k,
|
|
4465
4477
|
ft as l,
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4478
|
+
hs as m,
|
|
4479
|
+
zs as n,
|
|
4480
|
+
ps as o,
|
|
4481
|
+
bs as p,
|
|
4482
|
+
gi as q,
|
|
4483
|
+
fi as r,
|
|
4484
|
+
Us as s,
|
|
4485
|
+
Ps as t,
|
|
4486
|
+
zo as u,
|
|
4487
|
+
Ns as v,
|
|
4488
|
+
cr as w,
|
|
4489
|
+
or as x,
|
|
4490
|
+
_s as y,
|
|
4479
4491
|
jt as z
|
|
4480
4492
|
};
|