@ynput/ayon-frontend-shared 0.7.6 → 0.8.1
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 +361 -355
- package/dist/Feed.es.js +1 -1
- package/dist/ListTable.es.js +18 -18
- package/dist/NewEntity.es.js +30 -30
- package/dist/ProjectTreeTable.es.js +984 -974
- package/dist/ProjectsTable.es.js +3 -3
- package/dist/Slicer.es.js +53 -50
- package/dist/Views.es.js +150 -151
- package/dist/api.es.js +166 -165
- package/dist/chunks/Actions.es.js +9 -10
- package/dist/chunks/ColumnDropIndicator.es.js +2 -2
- package/dist/chunks/ColumnHeaderMenuUI.es.js +3 -4
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +2 -2
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/EmptyPlaceholder.es.js +7 -7
- package/dist/chunks/EntityPath.es.js +38 -39
- package/dist/chunks/EntityPickerDialog.es.js +65 -66
- package/dist/chunks/EntityTooltip.es.js +18 -19
- package/dist/chunks/Feed.es.js +1381 -1355
- package/dist/chunks/FilmstripEntityCard.es.js +5201 -0
- package/dist/chunks/FilterErrorActions.es.js +2 -3
- package/dist/chunks/GroupSettingsFallback.es.js +2 -2
- package/dist/chunks/Menu.es.js +52 -53
- package/dist/chunks/MetaWidget.es.js +1948 -1875
- package/dist/chunks/ProjectFoldersContext.es.js +40 -40
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +759 -742
- package/dist/chunks/SimpleTable.es.js +2 -1
- package/dist/chunks/Slicer.es.js +49 -50
- package/dist/chunks/TableExportContextInstance.es.js +600 -402
- package/dist/chunks/TableSettingsFallback.es.js +3 -4
- package/dist/chunks/ThumbnailSimple.es.js +114 -99
- package/dist/chunks/VideoPlayer.es.js +8 -9
- package/dist/chunks/Watchers.es.js +928 -871
- package/dist/chunks/expandRelativeDates.es.js +1 -1
- package/dist/chunks/getThumbnailUrl.es.js +33 -21
- package/dist/chunks/getUris.es.js +1580 -1610
- package/dist/chunks/queryFilterToClientFilter.es.js +1 -1
- package/dist/chunks/realtimeUpdatesUtils.es.js +15 -15
- package/dist/chunks/searchTerms.es.js +774 -696
- package/dist/chunks/useAttributeEnums.es.js +22 -22
- package/dist/chunks/useDateRangeFilter.es.js +1 -1
- package/dist/chunks/useHierarchySelection.es.js +3 -4
- package/dist/chunks/useLoadModule.es.js +3 -4
- package/dist/components.es.js +1261 -1206
- package/dist/context.es.js +615 -540
- package/dist/hooks.es.js +193 -171
- package/dist/index.es.js +2 -2
- package/dist/types/Actions.d.ts +10 -8
- package/dist/types/DetailsPanel.d.ts +54 -76
- package/dist/types/EntityPickerDialog.d.ts +12 -6
- package/dist/types/Feed.d.ts +24 -24
- package/dist/types/ListTable.d.ts +33 -27
- package/dist/types/NewEntity.d.ts +26 -39
- package/dist/types/ProjectTreeTable.d.ts +275 -194
- package/dist/types/ProjectsTable.d.ts +6 -6
- package/dist/types/RepresentationsList.d.ts +4 -0
- package/dist/types/Slicer.d.ts +63 -246
- package/dist/types/Views.d.ts +71 -298
- package/dist/types/api.d.ts +3165 -2363
- package/dist/types/components.d.ts +444 -473
- package/dist/types/context.d.ts +285 -572
- package/dist/types/hooks.d.ts +76 -47
- package/dist/types/index.d.ts +6 -0
- package/dist/types/util.d.ts +141 -120
- package/dist/util.es.js +71 -68
- package/package.json +6 -6
- package/dist/chunks/EntityUpdatesContext.es.js +0 -61
- package/dist/chunks/PlayableIcon.es.js +0 -5020
- package/dist/chunks/viewUpdateHelper.es.js +0 -153
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
import { jsxs as S, jsx as o, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
-
import u, { css as Ye, keyframes as Qo, createGlobalStyle as
|
|
3
|
-
import { forwardRef as ce, useRef as H, useState as U, useEffect as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { U as rr } from "./
|
|
6
|
-
import
|
|
7
|
-
import { kebabCase as $e, isEqual as Bt, uniqueId as
|
|
2
|
+
import u, { css as Ye, keyframes as Qo, createGlobalStyle as Zo } from "styled-components";
|
|
3
|
+
import { forwardRef as ce, useRef as H, useState as U, useEffect as Y, useMemo as Z, Fragment as Jo, useCallback as te, useImperativeHandle as er } from "react";
|
|
4
|
+
import { Icon as q, InputNumber as po, Button as B, IconSelect as tr, InputText as De, Dialog as We, FormLayout as Et, FormRow as oe, Dropdown as me, LockedInput as or, InputSwitch as _e, Spacer as go, SaveButton as mo, theme as se } from "@ynput/ayon-react-components";
|
|
5
|
+
import { U as rr } from "./FilmstripEntityCard.es.js";
|
|
6
|
+
import J from "clsx";
|
|
7
|
+
import { kebabCase as $e, isEqual as Bt, uniqueId as qe, startCase as Tt, camelCase as pt, upperFirst as nr } from "lodash";
|
|
8
8
|
import { createPortal as ho } from "react-dom";
|
|
9
9
|
import { DndContext as Xe, closestCenter as Qe, DragOverlay as Nt, useSensors as Pt, useSensor as At, PointerSensor as _t } from "@dnd-kit/core";
|
|
10
|
-
import { useSortable as
|
|
11
|
-
import { CSS as
|
|
10
|
+
import { useSortable as Ze, SortableContext as Le, verticalListSortingStrategy as Re, arrayMove as Dt } from "@dnd-kit/sortable";
|
|
11
|
+
import { CSS as Je } from "@dnd-kit/utilities";
|
|
12
12
|
import { I as ar } from "./InfoMessage.es.js";
|
|
13
|
-
import { S as
|
|
14
|
-
import { bD as ir, b6 as sr, bA as
|
|
15
|
-
import {
|
|
13
|
+
import { S as bo } from "./SimpleForm.es.js";
|
|
14
|
+
import { bD as ir, b6 as sr, bA as fo, by as vo, bC as Vt, bq as lr, bb as cr, bx as yo, bB as xo, bs as dr } from "./searchTerms.es.js";
|
|
15
|
+
import { bp as ur, bv as pr, cL as gr, bj as mr, dK as ie, cs as hr } from "./getUris.es.js";
|
|
16
16
|
import "primereact/confirmdialog";
|
|
17
|
-
import {
|
|
17
|
+
import { l as br, b as fr, v as vr } from "./Watchers.es.js";
|
|
18
18
|
import { matchSorter as Ut } from "match-sorter";
|
|
19
19
|
import { J as yr } from "./JsonViewer.es.js";
|
|
20
20
|
import "@module-federation/enhanced/runtime";
|
|
21
21
|
import "@ynput/ayon-addon/host";
|
|
22
22
|
import { toast as xr } from "react-toastify";
|
|
23
|
-
import { d as wo, b as wr, ah as et, u as tt, y as ko } from "./TableExportContextInstance.es.js";
|
|
24
23
|
import "uuid";
|
|
25
24
|
import "axios";
|
|
25
|
+
import { c as wo, b as wr, ai as et, u as tt, q as ko } from "./TableExportContextInstance.es.js";
|
|
26
26
|
import "semver";
|
|
27
27
|
import "./ContextMenuContextInstance.es.js";
|
|
28
|
-
import "react-redux";
|
|
29
28
|
import { Link as kr } from "react-router-dom";
|
|
30
|
-
import { g as
|
|
31
|
-
import { b7 as
|
|
29
|
+
import { g as fe } from "./iconUtils.es.js";
|
|
30
|
+
import { b7 as G, a as Ce, be as Cr, b as ot, bg as Sr, bn as Ir, aG as xe, b8 as ee, ak as Er, v as Tr, bl as Nr, bb as Ht, b9 as jt, bc as Kt, bo as Pr } from "./MetaWidget.es.js";
|
|
32
31
|
import "@tanstack/react-table";
|
|
33
32
|
import "date-fns";
|
|
34
33
|
import "lexical";
|
|
@@ -41,6 +40,7 @@ import "@lexical/utils";
|
|
|
41
40
|
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
42
41
|
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
43
42
|
import { ContributionView as Ar } from "@ynput/ayon-addon";
|
|
43
|
+
import "react-redux";
|
|
44
44
|
import "@tanstack/react-virtual";
|
|
45
45
|
import { a as _r } from "./addonColumnTags.es.js";
|
|
46
46
|
import { M as Co, a as Dr, b as Lr } from "./Menu.es.js";
|
|
@@ -56,13 +56,14 @@ import { a as To } from "./VersionUploadContextInstance.es.js";
|
|
|
56
56
|
import { Skeleton as Hr } from "primereact/skeleton";
|
|
57
57
|
import jr from "react-perfect-scrollbar";
|
|
58
58
|
import { u as Kr } from "./useCreateContextMenu.es.js";
|
|
59
|
+
import { b as qr } from "./getThumbnailUrl.es.js";
|
|
59
60
|
const Gr = u.div`
|
|
60
61
|
display: flex;
|
|
61
62
|
width: 100%;
|
|
62
63
|
height: 100%;
|
|
63
64
|
gap: 0;
|
|
64
65
|
padding: ${(e) => e.$padding};
|
|
65
|
-
`,
|
|
66
|
+
`, Yr = u.div`
|
|
66
67
|
width: ${(e) => e.$config.width || "15%"};
|
|
67
68
|
min-width: ${(e) => e.$config.minWidth || "2%"};
|
|
68
69
|
max-width: ${(e) => e.$config.maxWidth || "600px"};
|
|
@@ -70,7 +71,7 @@ const Gr = u.div`
|
|
|
70
71
|
flex-shrink: 0;
|
|
71
72
|
border-radius: 4px;
|
|
72
73
|
background-color: var(--md-sys-color-surface-container);
|
|
73
|
-
`,
|
|
74
|
+
`, Wr = u.div`
|
|
74
75
|
display: grid;
|
|
75
76
|
grid-template-columns: repeat(${(e) => e.$config.columns}, 1fr);
|
|
76
77
|
grid-template-rows: repeat(${(e) => e.$config.rows}, 1fr);
|
|
@@ -78,11 +79,11 @@ const Gr = u.div`
|
|
|
78
79
|
flex: 1;
|
|
79
80
|
padding: 1rem;
|
|
80
81
|
overflow: auto;
|
|
81
|
-
`,
|
|
82
|
+
`, Xr = u.div`
|
|
82
83
|
border-radius: 4px;
|
|
83
84
|
min-height: ${(e) => e.$minHeight};
|
|
84
85
|
background-color: var(--md-sys-color-surface-container);
|
|
85
|
-
`,
|
|
86
|
+
`, $s = ({
|
|
86
87
|
showSidebar: e = !0,
|
|
87
88
|
sidebarConfig: t = {},
|
|
88
89
|
gridConfig: r = { columns: 3, rows: 3 },
|
|
@@ -92,18 +93,18 @@ const Gr = u.div`
|
|
|
92
93
|
}) => {
|
|
93
94
|
const a = r.columns * r.rows;
|
|
94
95
|
return /* @__PURE__ */ S(Gr, { $padding: n, ...i, children: [
|
|
95
|
-
e && /* @__PURE__ */ o(
|
|
96
|
-
/* @__PURE__ */ o(
|
|
97
|
-
|
|
96
|
+
e && /* @__PURE__ */ o(Yr, { className: "loading", $config: t, ...s?.sidebar }),
|
|
97
|
+
/* @__PURE__ */ o(Wr, { $config: r, ...s?.grid, children: Array.from({ length: a }).map((h, f) => /* @__PURE__ */ o(
|
|
98
|
+
Xr,
|
|
98
99
|
{
|
|
99
100
|
className: "loading",
|
|
100
101
|
$minHeight: r.itemMinHeight || "200px",
|
|
101
102
|
...s?.gridItem
|
|
102
103
|
},
|
|
103
|
-
|
|
104
|
+
f
|
|
104
105
|
)) })
|
|
105
106
|
] });
|
|
106
|
-
},
|
|
107
|
+
}, Fs = u.div`
|
|
107
108
|
position: relative;
|
|
108
109
|
width: 100%;
|
|
109
110
|
|
|
@@ -111,7 +112,7 @@ const Gr = u.div`
|
|
|
111
112
|
min-height: 32px;
|
|
112
113
|
max-height: 32px;
|
|
113
114
|
}
|
|
114
|
-
`,
|
|
115
|
+
`, Bs = u.ul`
|
|
115
116
|
position: absolute;
|
|
116
117
|
top: 100%;
|
|
117
118
|
left: 0;
|
|
@@ -140,7 +141,7 @@ const Gr = u.div`
|
|
|
140
141
|
.tip {
|
|
141
142
|
color: var(--md-sys-color-outline);
|
|
142
143
|
}
|
|
143
|
-
`,
|
|
144
|
+
`, Qr = u.div`
|
|
144
145
|
display: flex;
|
|
145
146
|
align-items: center;
|
|
146
147
|
gap: var(--base-gap-medium);
|
|
@@ -184,7 +185,7 @@ const Gr = u.div`
|
|
|
184
185
|
padding: 2px;
|
|
185
186
|
font-size: 20px;
|
|
186
187
|
}
|
|
187
|
-
`,
|
|
188
|
+
`, Zr = "__everyone__", Jr = "__guests__", qt = "group:", Gt = "team:", Yt = "user:", Wt = "guest:", en = u(q)`
|
|
188
189
|
font-size: ${({ $size: e }) => `${e}px`};
|
|
189
190
|
&.withBackground {
|
|
190
191
|
display: flex;
|
|
@@ -194,7 +195,7 @@ const Gr = u.div`
|
|
|
194
195
|
background-color: var(--md-sys-color-surface-container-high);
|
|
195
196
|
padding: 3px;
|
|
196
197
|
}
|
|
197
|
-
`,
|
|
198
|
+
`, tn = ({
|
|
198
199
|
shareType: e,
|
|
199
200
|
name: t,
|
|
200
201
|
label: r,
|
|
@@ -203,19 +204,19 @@ const Gr = u.div`
|
|
|
203
204
|
withTooltip: i = !0
|
|
204
205
|
}) => {
|
|
205
206
|
let a = e, h = t;
|
|
206
|
-
a || (t.startsWith(Yt) ? (a = "user", h = t.slice(Yt.length)) : t.startsWith(
|
|
207
|
-
const
|
|
208
|
-
|
|
207
|
+
a || (t.startsWith(Yt) ? (a = "user", h = t.slice(Yt.length)) : t.startsWith(qt) ? (a = "group", h = t.slice(qt.length)) : t.startsWith(Gt) ? (a = "team", h = t.slice(Gt.length)) : t.startsWith(Wt) && (a = "guest", h = t.slice(Wt.length)));
|
|
208
|
+
const f = (c, l) => /* @__PURE__ */ o(
|
|
209
|
+
en,
|
|
209
210
|
{
|
|
210
|
-
className:
|
|
211
|
+
className: J({ withBackground: s }),
|
|
211
212
|
icon: c,
|
|
212
213
|
"data-tooltip": i ? l : void 0,
|
|
213
214
|
"data-tooltip-delay": i ? 0 : void 0,
|
|
214
215
|
$size: s ? n - 6 : n
|
|
215
216
|
}
|
|
216
217
|
);
|
|
217
|
-
return a === "user" ? /* @__PURE__ */ o(rr, { name: h, fullName: i ? r : void 0, size: n }) : a === "group" ?
|
|
218
|
-
},
|
|
218
|
+
return a === "user" ? /* @__PURE__ */ o(rr, { name: h, fullName: i ? r : void 0, size: n }) : a === "group" ? f("shield_person", "Access group") : a === "team" ? f("groups", "Team") : a === "guest" || t === Jr ? f("badge", "Guest user") : t === Zr ? f("groups", "Everyone with access to the project") : f("person");
|
|
219
|
+
}, Vs = ce(
|
|
219
220
|
({
|
|
220
221
|
name: e,
|
|
221
222
|
label: t,
|
|
@@ -225,24 +226,24 @@ const Gr = u.div`
|
|
|
225
226
|
isOwner: i,
|
|
226
227
|
isCompact: a,
|
|
227
228
|
isSearchResult: h,
|
|
228
|
-
labelChildren:
|
|
229
|
+
labelChildren: f,
|
|
229
230
|
children: c,
|
|
230
231
|
className: l,
|
|
231
232
|
...p
|
|
232
233
|
}, d) => {
|
|
233
234
|
const y = n === "user" || n === "guest", v = y || h, x = y ? e : n;
|
|
234
|
-
return /* @__PURE__ */ S(
|
|
235
|
-
/* @__PURE__ */ o(
|
|
235
|
+
return /* @__PURE__ */ S(Qr, { ...p, ref: d, className: J(l, { compact: a }), children: [
|
|
236
|
+
/* @__PURE__ */ o(tn, { shareType: n, name: e, label: t, icon: r }),
|
|
236
237
|
/* @__PURE__ */ S("span", { className: "title-label", children: [
|
|
237
238
|
t || e,
|
|
238
|
-
s ? /* @__PURE__ */ o("span", { className: "name", children: "(you)" }) : v && /* @__PURE__ */ o("span", { className:
|
|
239
|
-
|
|
239
|
+
s ? /* @__PURE__ */ o("span", { className: "name", children: "(you)" }) : v && /* @__PURE__ */ o("span", { className: J("name", { "float-right": h }), children: x }),
|
|
240
|
+
f
|
|
240
241
|
] }),
|
|
241
242
|
c,
|
|
242
243
|
i && /* @__PURE__ */ o("span", { className: "owner", children: "Owner" })
|
|
243
244
|
] });
|
|
244
245
|
}
|
|
245
|
-
),
|
|
246
|
+
), on = u.div`
|
|
246
247
|
display: flex;
|
|
247
248
|
flex-direction: row;
|
|
248
249
|
align-items: center;
|
|
@@ -252,26 +253,26 @@ const Gr = u.div`
|
|
|
252
253
|
input {
|
|
253
254
|
width: 100%;
|
|
254
255
|
}
|
|
255
|
-
`,
|
|
256
|
-
const { le: s, lt: i, ge: a, gt: h } = e,
|
|
257
|
-
|
|
256
|
+
`, rn = ({ value: e = {}, isMin: t, isFloat: r = !1, onChange: n }) => {
|
|
257
|
+
const { le: s, lt: i, ge: a, gt: h } = e, f = a ?? h, c = s ?? i, l = H(null), p = t ? f : c, d = t ? "g" : "l", y = d + "e", v = d + "t", [x, g] = U(e[y] != null || !r);
|
|
258
|
+
Y(() => {
|
|
258
259
|
r ? (p !== void 0 && n({ [y]: String(p), [v]: void 0 }), g(!0)) : (n({ [y]: parseInt(String(p))?.toString(), [v]: void 0 }), g(!0));
|
|
259
260
|
}, [r]);
|
|
260
261
|
const w = (z) => {
|
|
261
262
|
const P = z.target.value;
|
|
262
263
|
n(r ? x ? { [y]: P, [v]: void 0 } : { [y]: void 0, [v]: P } : { [y]: P, [v]: void 0 }), l.current && l.current.setCustomValidity("");
|
|
263
|
-
},
|
|
264
|
+
}, b = () => {
|
|
264
265
|
const z = !x;
|
|
265
266
|
g(z), n(z ? { [v]: void 0, [y]: p } : { [v]: p, [y]: void 0 });
|
|
266
267
|
}, m = t ? "greater" : "less", k = t ? ">" : "<", C = t ? "≥" : "≤", N = `Determines if the value should be '${m} than or equal to' (${C}) or 'strictly ${m} than' (${k}). Currently: ${x ? C : k}`;
|
|
267
|
-
return /* @__PURE__ */ S(
|
|
268
|
+
return /* @__PURE__ */ S(on, { children: [
|
|
268
269
|
/* @__PURE__ */ o(
|
|
269
270
|
po,
|
|
270
271
|
{
|
|
271
272
|
value: p === void 0 ? "" : p,
|
|
272
273
|
onChange: w,
|
|
273
274
|
step: r ? "any" : 1,
|
|
274
|
-
min: t ? void 0 :
|
|
275
|
+
min: t ? void 0 : f,
|
|
275
276
|
max: t ? c : void 0,
|
|
276
277
|
ref: l
|
|
277
278
|
}
|
|
@@ -281,13 +282,13 @@ const Gr = u.div`
|
|
|
281
282
|
{
|
|
282
283
|
label: C,
|
|
283
284
|
selected: x,
|
|
284
|
-
onClick:
|
|
285
|
+
onClick: b,
|
|
285
286
|
"data-tooltip": N,
|
|
286
287
|
"data-tooltip-delay": 0
|
|
287
288
|
}
|
|
288
289
|
)
|
|
289
290
|
] });
|
|
290
|
-
},
|
|
291
|
+
}, nn = Ye`
|
|
291
292
|
display: flex;
|
|
292
293
|
flex-direction: column;
|
|
293
294
|
align-items: center;
|
|
@@ -307,12 +308,12 @@ const Gr = u.div`
|
|
|
307
308
|
&:hover {
|
|
308
309
|
background-color: var(--md-sys-color-surface-container-low-hover);
|
|
309
310
|
}
|
|
310
|
-
`,
|
|
311
|
+
`, an = u.div`
|
|
311
312
|
display: flex;
|
|
312
313
|
flex-direction: column;
|
|
313
314
|
justify-content: stretch;
|
|
314
315
|
gap: 4px;
|
|
315
|
-
`,
|
|
316
|
+
`, sn = u.div`
|
|
316
317
|
justify-content: stretch;
|
|
317
318
|
border-radius: 4px;
|
|
318
319
|
overflow: hidden;
|
|
@@ -320,7 +321,7 @@ const Gr = u.div`
|
|
|
320
321
|
&.dragged {
|
|
321
322
|
opacity: 0;
|
|
322
323
|
}
|
|
323
|
-
`,
|
|
324
|
+
`, ln = u.div`
|
|
324
325
|
${Lt}
|
|
325
326
|
cursor: pointer;
|
|
326
327
|
user-select: none;
|
|
@@ -361,7 +362,7 @@ const Gr = u.div`
|
|
|
361
362
|
.spacer {
|
|
362
363
|
flex-grow: 1;
|
|
363
364
|
}
|
|
364
|
-
`,
|
|
365
|
+
`, cn = u.div`
|
|
365
366
|
display: grid;
|
|
366
367
|
grid-template-rows: 0fr;
|
|
367
368
|
overflow: hidden;
|
|
@@ -369,8 +370,8 @@ const Gr = u.div`
|
|
|
369
370
|
&.expanded {
|
|
370
371
|
grid-template-rows: 1fr;
|
|
371
372
|
}
|
|
372
|
-
`,
|
|
373
|
-
${
|
|
373
|
+
`, dn = u.div`
|
|
374
|
+
${nn}
|
|
374
375
|
align-items: stretch;
|
|
375
376
|
padding: 0 8px;
|
|
376
377
|
min-height: 0;
|
|
@@ -390,11 +391,11 @@ const Gr = u.div`
|
|
|
390
391
|
`, Xt = u.div`
|
|
391
392
|
${Lt}
|
|
392
393
|
gap: 4px;
|
|
393
|
-
`,
|
|
394
|
+
`, un = u.div`
|
|
394
395
|
border-radius: 4px;
|
|
395
396
|
width: 14px;
|
|
396
397
|
height: 14px;
|
|
397
|
-
`,
|
|
398
|
+
`, pn = u(tr)`
|
|
398
399
|
flex-grow: 1;
|
|
399
400
|
width: 100%;
|
|
400
401
|
button div {
|
|
@@ -409,7 +410,7 @@ const Gr = u.div`
|
|
|
409
410
|
border-color: var(--md-sys-color-outline-variant);
|
|
410
411
|
flex-grow: 1;
|
|
411
412
|
padding: 4px 8px;
|
|
412
|
-
`,
|
|
413
|
+
`, Zt = u.div`
|
|
413
414
|
display: flex;
|
|
414
415
|
justify-content: start;
|
|
415
416
|
flex-grow: 1;
|
|
@@ -425,7 +426,7 @@ const Gr = u.div`
|
|
|
425
426
|
width: 100%;
|
|
426
427
|
padding-left: 8px;
|
|
427
428
|
user-select: none;
|
|
428
|
-
`,
|
|
429
|
+
`, gn = u(Po)`
|
|
429
430
|
${No}
|
|
430
431
|
position: relative;
|
|
431
432
|
cursor: pointer;
|
|
@@ -436,7 +437,7 @@ const Gr = u.div`
|
|
|
436
437
|
position: absolute;
|
|
437
438
|
visibility: hidden;
|
|
438
439
|
}
|
|
439
|
-
`,
|
|
440
|
+
`, mn = ({
|
|
440
441
|
item: e,
|
|
441
442
|
onChange: t,
|
|
442
443
|
onCommit: r,
|
|
@@ -445,24 +446,24 @@ const Gr = u.div`
|
|
|
445
446
|
showRemoveButton: i = !0,
|
|
446
447
|
showDuplicateButton: a = !0,
|
|
447
448
|
autoFocus: h = !1,
|
|
448
|
-
isExpanded:
|
|
449
|
+
isExpanded: f = !0,
|
|
449
450
|
className: c,
|
|
450
451
|
pt: l,
|
|
451
452
|
...p
|
|
452
453
|
}) => {
|
|
453
|
-
const { label: d, value: y, icon: v, color: x, isNewAttribute: g } = e, w = H(null),
|
|
454
|
-
return
|
|
454
|
+
const { label: d, value: y, icon: v, color: x, isNewAttribute: g } = e, w = H(null), b = H(null), m = H(null), k = H(null);
|
|
455
|
+
return Y(() => {
|
|
455
456
|
(h || e.isNewAttribute) && w.current?.select();
|
|
456
|
-
}, [h, e.isNewAttribute]),
|
|
457
|
-
|
|
458
|
-
}, [
|
|
459
|
-
|
|
457
|
+
}, [h, e.isNewAttribute]), Y(() => {
|
|
458
|
+
f && !h && !e.isNewAttribute && setTimeout(() => w.current?.focus(), 250);
|
|
459
|
+
}, [f, h, e.isNewAttribute]), /* @__PURE__ */ S(
|
|
460
|
+
dn,
|
|
460
461
|
{
|
|
461
462
|
...l?.wrapper,
|
|
462
463
|
...p,
|
|
463
|
-
className:
|
|
464
|
-
expanded:
|
|
465
|
-
collapsed: !
|
|
464
|
+
className: J(c, l?.wrapper?.className, {
|
|
465
|
+
expanded: f,
|
|
466
|
+
collapsed: !f
|
|
466
467
|
}),
|
|
467
468
|
children: [
|
|
468
469
|
/* @__PURE__ */ S(Ae, { ...l?.label?.wrapper, children: [
|
|
@@ -474,11 +475,11 @@ const Gr = u.div`
|
|
|
474
475
|
value: d,
|
|
475
476
|
autoFocus: h || g,
|
|
476
477
|
...l?.label?.input,
|
|
477
|
-
className:
|
|
478
|
+
className: J(l?.label?.input?.className),
|
|
478
479
|
onChange: (C) => {
|
|
479
480
|
if (!g)
|
|
480
481
|
return t && t(["label"], [C.target.value]);
|
|
481
|
-
|
|
482
|
+
b.current && (b.current.value = $e(C.target.value)), t && t(["label", "value"], [C.target.value, $e(C.target.value)]);
|
|
482
483
|
},
|
|
483
484
|
onBlur: (C) => {
|
|
484
485
|
g ? r && r(["label", "value"], [C.target.value, $e(C.target.value)]) : r && r(["label"], [C.target.value]);
|
|
@@ -501,10 +502,10 @@ const Gr = u.div`
|
|
|
501
502
|
/* @__PURE__ */ o(
|
|
502
503
|
Qt,
|
|
503
504
|
{
|
|
504
|
-
ref:
|
|
505
|
-
value:
|
|
505
|
+
ref: b,
|
|
506
|
+
value: b.current?.value || y,
|
|
506
507
|
...l?.value?.input,
|
|
507
|
-
className:
|
|
508
|
+
className: J(l?.value?.input?.className),
|
|
508
509
|
onChange: (C) => t && t(["value"], [C.target.value]),
|
|
509
510
|
onBlur: (C) => r && r(["value"], [C.target.value]),
|
|
510
511
|
onKeyDown: (C) => {
|
|
@@ -516,7 +517,7 @@ const Gr = u.div`
|
|
|
516
517
|
] }, "value"),
|
|
517
518
|
/* @__PURE__ */ S(Ae, { ...l?.icon?.wrapper, children: [
|
|
518
519
|
/* @__PURE__ */ o(Fe, { ...l?.icon?.label, children: "Icon" }),
|
|
519
|
-
/* @__PURE__ */ S(
|
|
520
|
+
/* @__PURE__ */ S(Zt, { style: { position: "relative" }, children: [
|
|
520
521
|
/* @__PURE__ */ o(
|
|
521
522
|
Po,
|
|
522
523
|
{
|
|
@@ -528,13 +529,13 @@ const Gr = u.div`
|
|
|
528
529
|
}
|
|
529
530
|
),
|
|
530
531
|
/* @__PURE__ */ o(
|
|
531
|
-
|
|
532
|
+
pn,
|
|
532
533
|
{
|
|
533
534
|
ref: k,
|
|
534
535
|
value: [v || "question_mark"],
|
|
535
536
|
widthExpand: !0,
|
|
536
537
|
...l?.icon?.input,
|
|
537
|
-
className:
|
|
538
|
+
className: J(l?.icon?.input?.className),
|
|
538
539
|
style: {
|
|
539
540
|
position: v ? "relative" : "absolute",
|
|
540
541
|
visibility: v ? "visible" : "hidden",
|
|
@@ -559,9 +560,9 @@ const Gr = u.div`
|
|
|
559
560
|
] }, "icon"),
|
|
560
561
|
/* @__PURE__ */ S(Ae, { ...l?.color?.wrapper, children: [
|
|
561
562
|
/* @__PURE__ */ o(Fe, { ...l?.color?.label, children: "Color" }),
|
|
562
|
-
/* @__PURE__ */ S(
|
|
563
|
+
/* @__PURE__ */ S(Zt, { style: { position: "relative" }, children: [
|
|
563
564
|
/* @__PURE__ */ S(
|
|
564
|
-
|
|
565
|
+
gn,
|
|
565
566
|
{
|
|
566
567
|
className: x ? "active" : "",
|
|
567
568
|
style: { backgroundColor: x || void 0 },
|
|
@@ -575,7 +576,7 @@ const Gr = u.div`
|
|
|
575
576
|
ref: m,
|
|
576
577
|
value: x || "#000000",
|
|
577
578
|
...l?.color?.input,
|
|
578
|
-
className:
|
|
579
|
+
className: J(l?.color?.input?.className),
|
|
579
580
|
onChange: (C) => {
|
|
580
581
|
t && t(["color"], [C?.target.value.toString()]), r && r(["color"], [C?.target.value.toString()]);
|
|
581
582
|
}
|
|
@@ -596,14 +597,14 @@ const Gr = u.div`
|
|
|
596
597
|
)
|
|
597
598
|
] })
|
|
598
599
|
] }, "color"),
|
|
599
|
-
(i || a) && /* @__PURE__ */ S(Ae, { ...l?.footer, className:
|
|
600
|
+
(i || a) && /* @__PURE__ */ S(Ae, { ...l?.footer, className: J("footer", l?.footer?.className), children: [
|
|
600
601
|
i && /* @__PURE__ */ o(Xt, { children: /* @__PURE__ */ o(Be, { icon: "close", variant: "text", onClick: n, children: "Remove" }) }),
|
|
601
602
|
a && /* @__PURE__ */ o(Xt, { children: /* @__PURE__ */ o(Be, { icon: "content_copy", variant: "text", onClick: s, children: "Duplicate" }) })
|
|
602
603
|
] })
|
|
603
604
|
]
|
|
604
605
|
}
|
|
605
606
|
);
|
|
606
|
-
},
|
|
607
|
+
}, Jt = ({
|
|
607
608
|
item: e,
|
|
608
609
|
isBeingDragged: t,
|
|
609
610
|
onChange: r,
|
|
@@ -613,42 +614,42 @@ const Gr = u.div`
|
|
|
613
614
|
pt: a,
|
|
614
615
|
...h
|
|
615
616
|
}) => {
|
|
616
|
-
const { id:
|
|
617
|
-
id:
|
|
617
|
+
const { id: f, label: c, icon: l, color: p, isExpanded: d } = e, { attributes: y, listeners: v, setNodeRef: x, transform: g, transition: w } = Ze({
|
|
618
|
+
id: f,
|
|
618
619
|
animateLayoutChanges: () => !1
|
|
619
|
-
}),
|
|
620
|
+
}), b = {
|
|
620
621
|
transition: w,
|
|
621
|
-
transform:
|
|
622
|
+
transform: Je.Translate.toString(g)
|
|
622
623
|
};
|
|
623
624
|
return /* @__PURE__ */ S(
|
|
624
|
-
|
|
625
|
+
sn,
|
|
625
626
|
{
|
|
626
627
|
ref: x,
|
|
627
|
-
style:
|
|
628
|
+
style: b,
|
|
628
629
|
...a?.wrapper,
|
|
629
630
|
...h,
|
|
630
|
-
className:
|
|
631
|
+
className: J(h.className, a?.wrapper?.className, { dragged: t }),
|
|
631
632
|
children: [
|
|
632
633
|
/* @__PURE__ */ S(
|
|
633
|
-
|
|
634
|
+
ln,
|
|
634
635
|
{
|
|
635
636
|
...a?.header,
|
|
636
637
|
onClick: () => {
|
|
637
638
|
r && r(["isExpanded"], [!d]);
|
|
638
639
|
},
|
|
639
|
-
className:
|
|
640
|
+
className: J(a?.header?.className, { expanded: d }),
|
|
640
641
|
children: [
|
|
641
|
-
p && /* @__PURE__ */ o(
|
|
642
|
-
l && /* @__PURE__ */ o(
|
|
642
|
+
p && /* @__PURE__ */ o(un, { style: { backgroundColor: p } }),
|
|
643
|
+
l && /* @__PURE__ */ o(q, { className: "icon", icon: l }),
|
|
643
644
|
/* @__PURE__ */ S("span", { children: [
|
|
644
645
|
" ",
|
|
645
646
|
c,
|
|
646
647
|
" "
|
|
647
648
|
] }),
|
|
648
649
|
/* @__PURE__ */ o("span", { className: "spacer" }),
|
|
649
|
-
/* @__PURE__ */ o(
|
|
650
|
+
/* @__PURE__ */ o(q, { className: "icon toggle-expand", icon: d ? "collapse_all" : "expand_all" }),
|
|
650
651
|
/* @__PURE__ */ o(
|
|
651
|
-
|
|
652
|
+
q,
|
|
652
653
|
{
|
|
653
654
|
...v,
|
|
654
655
|
...y,
|
|
@@ -660,8 +661,8 @@ const Gr = u.div`
|
|
|
660
661
|
]
|
|
661
662
|
}
|
|
662
663
|
),
|
|
663
|
-
/* @__PURE__ */ o(
|
|
664
|
-
|
|
664
|
+
/* @__PURE__ */ o(cn, { className: J({ expanded: d }), children: /* @__PURE__ */ o(
|
|
665
|
+
mn,
|
|
665
666
|
{
|
|
666
667
|
item: e,
|
|
667
668
|
onChange: r,
|
|
@@ -678,7 +679,7 @@ const Gr = u.div`
|
|
|
678
679
|
]
|
|
679
680
|
}
|
|
680
681
|
);
|
|
681
|
-
},
|
|
682
|
+
}, hn = ({
|
|
682
683
|
creator: e,
|
|
683
684
|
initialData: t,
|
|
684
685
|
onChange: r,
|
|
@@ -686,12 +687,12 @@ const Gr = u.div`
|
|
|
686
687
|
normalizer: s,
|
|
687
688
|
mergeIncomingData: i
|
|
688
689
|
}) => {
|
|
689
|
-
const [a, h] = U(t),
|
|
690
|
+
const [a, h] = U(t), f = (x) => {
|
|
690
691
|
h(x);
|
|
691
692
|
const g = s(a), w = s(x);
|
|
692
693
|
Bt(g, w) || r(w);
|
|
693
694
|
};
|
|
694
|
-
return
|
|
695
|
+
return Y(() => {
|
|
695
696
|
h((x) => {
|
|
696
697
|
const g = s(x), w = s(t);
|
|
697
698
|
return Bt(g, w) ? x : i ? i(x, t) : t;
|
|
@@ -699,39 +700,39 @@ const Gr = u.div`
|
|
|
699
700
|
}, [t, i, s]), {
|
|
700
701
|
items: a,
|
|
701
702
|
handleAddItem: (x) => {
|
|
702
|
-
|
|
703
|
+
f([...a, { ...e(), ...x, id: qe() }]);
|
|
703
704
|
},
|
|
704
705
|
handleRemoveItem: (x) => () => {
|
|
705
|
-
|
|
706
|
+
f([...a.slice(0, x), ...a.slice(x + 1)]);
|
|
706
707
|
},
|
|
707
708
|
handleChangeItem: (x) => (g, w) => {
|
|
708
|
-
let
|
|
709
|
-
g.map((m, k) =>
|
|
709
|
+
let b = { ...a[x] };
|
|
710
|
+
g.map((m, k) => b[m] = w[k]), f([...a.slice(0, x), b, ...a.slice(x + 1)]);
|
|
710
711
|
},
|
|
711
712
|
handleCommitItem: (x) => (g, w) => {
|
|
712
713
|
if (!n) return;
|
|
713
|
-
let
|
|
714
|
-
g.map((k, C) =>
|
|
715
|
-
const m = [...a.slice(0, x),
|
|
714
|
+
let b = { ...a[x] };
|
|
715
|
+
g.map((k, C) => b[k] = w[C]);
|
|
716
|
+
const m = [...a.slice(0, x), b, ...a.slice(x + 1)];
|
|
716
717
|
n(s(m));
|
|
717
718
|
},
|
|
718
719
|
handleDuplicateItem: (x, g) => {
|
|
719
|
-
|
|
720
|
+
f([
|
|
720
721
|
...a.slice(0, x + 1),
|
|
721
|
-
{ ...a[x], id:
|
|
722
|
+
{ ...a[x], id: qe(), ...g },
|
|
722
723
|
...a.slice(x + 1)
|
|
723
724
|
]);
|
|
724
725
|
},
|
|
725
726
|
handleDraggableEnd: (x) => {
|
|
726
727
|
if (!x.over)
|
|
727
728
|
return;
|
|
728
|
-
const g = a.find((k) => k.id == x.active.id), w = a.indexOf(g),
|
|
729
|
-
w < m ?
|
|
729
|
+
const g = a.find((k) => k.id == x.active.id), w = a.indexOf(g), b = a.find((k) => k.id == x.over.id), m = a.indexOf(b);
|
|
730
|
+
w < m ? f([
|
|
730
731
|
...a.slice(0, w),
|
|
731
732
|
...a.slice(w + 1, m + 1),
|
|
732
733
|
g,
|
|
733
734
|
...a.slice(m + 1)
|
|
734
|
-
]) :
|
|
735
|
+
]) : f([
|
|
735
736
|
...a.slice(0, m),
|
|
736
737
|
g,
|
|
737
738
|
...a.slice(m, w),
|
|
@@ -747,8 +748,8 @@ const Gr = u.div`
|
|
|
747
748
|
for (; t.includes(h); )
|
|
748
749
|
h = a + r + i++;
|
|
749
750
|
return h;
|
|
750
|
-
},
|
|
751
|
-
id:
|
|
751
|
+
}, bn = () => ({
|
|
752
|
+
id: qe(),
|
|
752
753
|
isExpanded: !0,
|
|
753
754
|
label: "",
|
|
754
755
|
value: "",
|
|
@@ -759,8 +760,8 @@ const Gr = u.div`
|
|
|
759
760
|
value: r,
|
|
760
761
|
icon: n || void 0,
|
|
761
762
|
color: s || void 0
|
|
762
|
-
})),
|
|
763
|
-
id:
|
|
763
|
+
})), vn = (e) => e.map(({ label: t, value: r, icon: n, color: s }) => ({
|
|
764
|
+
id: qe(),
|
|
764
765
|
isExpanded: !1,
|
|
765
766
|
label: t,
|
|
766
767
|
value: r.toString(),
|
|
@@ -768,7 +769,7 @@ const Gr = u.div`
|
|
|
768
769
|
color: s,
|
|
769
770
|
isLabelFocused: !1,
|
|
770
771
|
isNewAttribute: !1
|
|
771
|
-
})),
|
|
772
|
+
})), yn = (e, t) => t.map((r, n) => {
|
|
772
773
|
const s = e[n];
|
|
773
774
|
return s ? {
|
|
774
775
|
...r,
|
|
@@ -777,31 +778,31 @@ const Gr = u.div`
|
|
|
777
778
|
isLabelFocused: s.isLabelFocused,
|
|
778
779
|
isNewAttribute: s.isNewAttribute
|
|
779
780
|
} : r;
|
|
780
|
-
}),
|
|
781
|
+
}), xn = ({ values: e, onChange: t, onCommit: r, pt: n, ...s }) => {
|
|
781
782
|
if (!e)
|
|
782
783
|
return null;
|
|
783
784
|
const {
|
|
784
785
|
items: i,
|
|
785
786
|
handleAddItem: a,
|
|
786
787
|
handleRemoveItem: h,
|
|
787
|
-
handleChangeItem:
|
|
788
|
+
handleChangeItem: f,
|
|
788
789
|
handleCommitItem: c,
|
|
789
790
|
handleDuplicateItem: l,
|
|
790
791
|
handleDraggableEnd: p
|
|
791
|
-
} =
|
|
792
|
-
creator:
|
|
793
|
-
initialData:
|
|
792
|
+
} = hn({
|
|
793
|
+
creator: bn,
|
|
794
|
+
initialData: vn(e),
|
|
794
795
|
onChange: t,
|
|
795
796
|
onCommit: r,
|
|
796
797
|
normalizer: fn,
|
|
797
|
-
mergeIncomingData:
|
|
798
|
+
mergeIncomingData: yn
|
|
798
799
|
}), d = (w) => {
|
|
799
800
|
x(w.active.id);
|
|
800
801
|
}, y = (w) => {
|
|
801
802
|
x(null), p(w);
|
|
802
803
|
}, [v, x] = U();
|
|
803
804
|
let g;
|
|
804
|
-
return v && (g = i.find((w) => w.id === v)), /* @__PURE__ */ o(pe, { children: /* @__PURE__ */ S(
|
|
805
|
+
return v && (g = i.find((w) => w.id === v)), /* @__PURE__ */ o(pe, { children: /* @__PURE__ */ S(an, { ...s, children: [
|
|
805
806
|
/* @__PURE__ */ S(
|
|
806
807
|
Xe,
|
|
807
808
|
{
|
|
@@ -809,24 +810,24 @@ const Gr = u.div`
|
|
|
809
810
|
onDragStart: d,
|
|
810
811
|
onDragEnd: y,
|
|
811
812
|
children: [
|
|
812
|
-
/* @__PURE__ */ o(Le, { items: i, strategy: Re, children: i.map((w,
|
|
813
|
-
|
|
813
|
+
/* @__PURE__ */ o(Le, { items: i, strategy: Re, children: i.map((w, b) => /* @__PURE__ */ o(
|
|
814
|
+
Jt,
|
|
814
815
|
{
|
|
815
816
|
item: w,
|
|
816
817
|
isBeingDragged: w.id === v,
|
|
817
|
-
onChange: b
|
|
818
|
-
onCommit: c(
|
|
819
|
-
onRemove: h(
|
|
820
|
-
onDuplicate: () => l(
|
|
818
|
+
onChange: f(b),
|
|
819
|
+
onCommit: c(b),
|
|
820
|
+
onRemove: h(b),
|
|
821
|
+
onDuplicate: () => l(b, {
|
|
821
822
|
isLabelFocused: !0,
|
|
822
823
|
isNewAttribute: !0,
|
|
823
824
|
label: eo(
|
|
824
|
-
i[
|
|
825
|
+
i[b].label,
|
|
825
826
|
i.map((m) => m.label),
|
|
826
827
|
" "
|
|
827
828
|
),
|
|
828
829
|
value: eo(
|
|
829
|
-
i[
|
|
830
|
+
i[b].value,
|
|
830
831
|
i.map((m) => m.value),
|
|
831
832
|
"-"
|
|
832
833
|
)
|
|
@@ -836,7 +837,7 @@ const Gr = u.div`
|
|
|
836
837
|
`DraggableAttributeEnum_${w.id}`
|
|
837
838
|
)) }),
|
|
838
839
|
ho(
|
|
839
|
-
/* @__PURE__ */ o(Nt, { style: {}, children: g && /* @__PURE__ */ o(
|
|
840
|
+
/* @__PURE__ */ o(Nt, { style: {}, children: g && /* @__PURE__ */ o(Jt, { item: g, ...n?.item }) }),
|
|
840
841
|
document.body
|
|
841
842
|
)
|
|
842
843
|
]
|
|
@@ -855,7 +856,7 @@ const Gr = u.div`
|
|
|
855
856
|
}
|
|
856
857
|
)
|
|
857
858
|
] }) });
|
|
858
|
-
}, Ao = ({ icon: e, color: t, reserveSpace: r }) => ir(e) ? /* @__PURE__ */ o("img", { src: e, alt: "" }) : e ? /* @__PURE__ */ o(
|
|
859
|
+
}, Ao = ({ icon: e, color: t, reserveSpace: r }) => ir(e) ? /* @__PURE__ */ o("img", { src: e, alt: "" }) : e ? /* @__PURE__ */ o(q, { icon: e, style: { color: t } }) : r ? /* @__PURE__ */ o("span", { className: "icon-slot" }) : null, rt = u.div`
|
|
859
860
|
display: flex;
|
|
860
861
|
align-items: center;
|
|
861
862
|
gap: var(--base-gap-small);
|
|
@@ -880,12 +881,12 @@ const Gr = u.div`
|
|
|
880
881
|
flex: none;
|
|
881
882
|
width: 20px;
|
|
882
883
|
}
|
|
883
|
-
`,
|
|
884
|
+
`, wn = 8, _o = 10, kn = u.div`
|
|
884
885
|
display: flex;
|
|
885
886
|
gap: var(--base-gap-large);
|
|
886
887
|
flex: 1;
|
|
887
888
|
min-height: 0;
|
|
888
|
-
`,
|
|
889
|
+
`, Cn = u.div`
|
|
889
890
|
display: flex;
|
|
890
891
|
flex-direction: column;
|
|
891
892
|
gap: var(--base-gap-large);
|
|
@@ -911,15 +912,15 @@ const Gr = u.div`
|
|
|
911
912
|
font-weight: 500;
|
|
912
913
|
color: var(--md-sys-color-outline);
|
|
913
914
|
padding: 4px 0;
|
|
914
|
-
`,
|
|
915
|
+
`, Sn = u.div`
|
|
915
916
|
display: flex;
|
|
916
917
|
flex-direction: column;
|
|
917
918
|
gap: var(--base-gap-large);
|
|
918
919
|
flex: 1;
|
|
919
920
|
min-width: 0;
|
|
920
|
-
`,
|
|
921
|
+
`, In = u.span`
|
|
921
922
|
color: var(--md-sys-color-outline);
|
|
922
|
-
`,
|
|
923
|
+
`, En = u.div`
|
|
923
924
|
display: flex;
|
|
924
925
|
flex-direction: column;
|
|
925
926
|
gap: var(--base-gap-large);
|
|
@@ -929,7 +930,7 @@ const Gr = u.div`
|
|
|
929
930
|
padding: var(--padding-m);
|
|
930
931
|
border-radius: var(--border-radius-m);
|
|
931
932
|
background-color: var(--md-sys-color-surface-container);
|
|
932
|
-
`,
|
|
933
|
+
`, Tn = u(rt)`
|
|
933
934
|
.value {
|
|
934
935
|
margin-left: auto;
|
|
935
936
|
flex: none;
|
|
@@ -938,7 +939,7 @@ const Gr = u.div`
|
|
|
938
939
|
}
|
|
939
940
|
`, we = u.span`
|
|
940
941
|
color: var(--md-sys-color-outline);
|
|
941
|
-
`,
|
|
942
|
+
`, Nn = ({ value: e, onChange: t }) => {
|
|
942
943
|
const { projects: r } = wo(), n = r.active.map((s) => ({
|
|
943
944
|
value: s.name,
|
|
944
945
|
label: s.label || s.name
|
|
@@ -972,31 +973,31 @@ const Gr = u.div`
|
|
|
972
973
|
widthExpand: !0
|
|
973
974
|
}
|
|
974
975
|
);
|
|
975
|
-
},
|
|
976
|
-
project_name:
|
|
976
|
+
}, Pn = {
|
|
977
|
+
project_name: Nn,
|
|
977
978
|
user: Do
|
|
978
|
-
},
|
|
979
|
-
const [n, s] = U({}), [i, a] = U(t), [h,
|
|
979
|
+
}, An = ["label", (e) => String(e.value), "description", "fulltext"], _n = ({ resolver: e, settings: t, onClose: r }) => {
|
|
980
|
+
const [n, s] = U({}), [i, a] = U(t), [h, f] = U(""), { user: c } = wo(), l = e.settingsForm || [], p = new Set(l.map((T) => T.name)), d = e.acceptedParams || {}, y = !!c?.data?.isAdmin, v = Object.keys(d).filter(
|
|
980
981
|
(T) => !p.has(T) && (T !== "user" || y)
|
|
981
|
-
), x = y && !("user" in d), g =
|
|
982
|
+
), x = y && !("user" in d), g = Z(
|
|
982
983
|
() => ({ ...i, ...n }),
|
|
983
984
|
[i, n]
|
|
984
985
|
), {
|
|
985
986
|
data: w,
|
|
986
|
-
isFetching:
|
|
987
|
+
isFetching: b,
|
|
987
988
|
isError: m
|
|
988
989
|
} = sr({
|
|
989
990
|
enumName: e.name,
|
|
990
991
|
params: g
|
|
991
|
-
}), k =
|
|
992
|
-
() =>
|
|
992
|
+
}), k = Z(
|
|
993
|
+
() => fo(w?.items || []).map((T) => ({
|
|
993
994
|
...T,
|
|
994
995
|
icon: vo(T.icon)
|
|
995
996
|
})),
|
|
996
997
|
[w]
|
|
997
|
-
), C = m || !!w?.error, N = h.trim(), z =
|
|
998
|
+
), C = m || !!w?.error, N = h.trim(), z = Z(
|
|
998
999
|
() => N ? Ut(k, N, {
|
|
999
|
-
keys:
|
|
1000
|
+
keys: An,
|
|
1000
1001
|
threshold: Ut.rankings.CONTAINS
|
|
1001
1002
|
}) : k,
|
|
1002
1003
|
[k, N]
|
|
@@ -1011,7 +1012,7 @@ const Gr = u.div`
|
|
|
1011
1012
|
}
|
|
1012
1013
|
) }),
|
|
1013
1014
|
v.map((T) => {
|
|
1014
|
-
const F = Vt(T) ?
|
|
1015
|
+
const F = Vt(T) ? Pn[T] : void 0;
|
|
1015
1016
|
return /* @__PURE__ */ o(oe, { label: T, children: F && Vt(T) ? /* @__PURE__ */ o(
|
|
1016
1017
|
F,
|
|
1017
1018
|
{
|
|
@@ -1021,8 +1022,8 @@ const Gr = u.div`
|
|
|
1021
1022
|
) : /* @__PURE__ */ o(we, { children: "Not supported in debug." }) }, T);
|
|
1022
1023
|
})
|
|
1023
1024
|
] }), j = () => {
|
|
1024
|
-
if (
|
|
1025
|
-
return Array.from({ length:
|
|
1025
|
+
if (b)
|
|
1026
|
+
return Array.from({ length: wn }).map((T, F) => /* @__PURE__ */ o(rt, { className: "loading" }, F));
|
|
1026
1027
|
if (C) return /* @__PURE__ */ o(we, { children: lr(w?.error) });
|
|
1027
1028
|
if (!k.length) {
|
|
1028
1029
|
const T = "project_name" in (e.acceptedParams || {}) && !n.project_name ? " Try selecting a project." : "";
|
|
@@ -1031,7 +1032,7 @@ const Gr = u.div`
|
|
|
1031
1032
|
T
|
|
1032
1033
|
] });
|
|
1033
1034
|
}
|
|
1034
|
-
return z.length ? z.map((T) => /* @__PURE__ */ S(
|
|
1035
|
+
return z.length ? z.map((T) => /* @__PURE__ */ S(Tn, { title: T.description, children: [
|
|
1035
1036
|
/* @__PURE__ */ o(Ao, { icon: T.icon, color: T.color, reserveSpace: P }),
|
|
1036
1037
|
/* @__PURE__ */ o("span", { className: "label", children: T.label }),
|
|
1037
1038
|
/* @__PURE__ */ o("span", { className: "value", children: String(T.value) })
|
|
@@ -1050,46 +1051,46 @@ const Gr = u.div`
|
|
|
1050
1051
|
size: "full",
|
|
1051
1052
|
style: { width: "95vw", maxWidth: "95vw", height: "95vh", maxHeight: "95vh" },
|
|
1052
1053
|
onKeyDown: V,
|
|
1053
|
-
children: /* @__PURE__ */ S(
|
|
1054
|
-
/* @__PURE__ */ S(
|
|
1054
|
+
children: /* @__PURE__ */ S(kn, { children: [
|
|
1055
|
+
/* @__PURE__ */ S(Cn, { children: [
|
|
1055
1056
|
/* @__PURE__ */ S(gt, { children: [
|
|
1056
1057
|
/* @__PURE__ */ o(mt, { children: "Context Params" }),
|
|
1057
1058
|
L()
|
|
1058
1059
|
] }),
|
|
1059
1060
|
/* @__PURE__ */ S(gt, { children: [
|
|
1060
1061
|
/* @__PURE__ */ o(mt, { children: "Form" }),
|
|
1061
|
-
l.length ? /* @__PURE__ */ o(
|
|
1062
|
+
l.length ? /* @__PURE__ */ o(bo, { fields: l, values: t, onChange: a }) : /* @__PURE__ */ o(we, { children: "This resolver has no settings." })
|
|
1062
1063
|
] }),
|
|
1063
1064
|
/* @__PURE__ */ S(gt, { children: [
|
|
1064
1065
|
/* @__PURE__ */ o(mt, { children: "Enum Resolver Data" }),
|
|
1065
1066
|
/* @__PURE__ */ o(yr, { value: e, wrap: !0 })
|
|
1066
1067
|
] })
|
|
1067
1068
|
] }),
|
|
1068
|
-
/* @__PURE__ */ S(
|
|
1069
|
+
/* @__PURE__ */ S(Sn, { children: [
|
|
1069
1070
|
/* @__PURE__ */ o(
|
|
1070
1071
|
De,
|
|
1071
1072
|
{
|
|
1072
1073
|
value: h,
|
|
1073
1074
|
placeholder: "Search items...",
|
|
1074
|
-
onChange: (T) =>
|
|
1075
|
+
onChange: (T) => f(T.target.value),
|
|
1075
1076
|
autoFocus: !0
|
|
1076
1077
|
}
|
|
1077
1078
|
),
|
|
1078
|
-
!
|
|
1079
|
-
/* @__PURE__ */ o(
|
|
1079
|
+
!b && !C && k.length > 0 && /* @__PURE__ */ o(In, { children: N ? `${z.length} of ${k.length} ${k.length === 1 ? "item" : "items"}` : `${k.length} ${k.length === 1 ? "item" : "items"}` }),
|
|
1080
|
+
/* @__PURE__ */ o(En, { children: j() })
|
|
1080
1081
|
] })
|
|
1081
1082
|
] })
|
|
1082
1083
|
}
|
|
1083
1084
|
);
|
|
1084
|
-
}, Ve = "__custom__", ht = 5,
|
|
1085
|
+
}, Ve = "__custom__", ht = 5, Dn = [], Ln = "No preview items found.", Rn = 5, On = {
|
|
1085
1086
|
project_name: "The select options will change based on the project it is used in.",
|
|
1086
1087
|
user: "The select options will change based on the current user."
|
|
1087
|
-
},
|
|
1088
|
+
}, zn = u.div`
|
|
1088
1089
|
display: flex;
|
|
1089
1090
|
flex-direction: column;
|
|
1090
1091
|
gap: var(--base-gap-large);
|
|
1091
1092
|
flex: 1;
|
|
1092
|
-
`,
|
|
1093
|
+
`, Ge = u.span`
|
|
1093
1094
|
color: var(--md-sys-color-outline);
|
|
1094
1095
|
white-space: pre-line;
|
|
1095
1096
|
`, Ue = u.div`
|
|
@@ -1099,7 +1100,7 @@ const Gr = u.div`
|
|
|
1099
1100
|
padding: var(--padding-m);
|
|
1100
1101
|
border-radius: var(--border-radius-m);
|
|
1101
1102
|
background-color: var(--md-sys-color-surface-container);
|
|
1102
|
-
`,
|
|
1103
|
+
`, Mn = u.button`
|
|
1103
1104
|
display: flex;
|
|
1104
1105
|
align-items: center;
|
|
1105
1106
|
align-self: flex-start;
|
|
@@ -1115,7 +1116,7 @@ const Gr = u.div`
|
|
|
1115
1116
|
color: var(--md-sys-color-on-surface);
|
|
1116
1117
|
text-decoration: underline;
|
|
1117
1118
|
}
|
|
1118
|
-
`,
|
|
1119
|
+
`, $n = u(ar)`
|
|
1119
1120
|
cursor: pointer;
|
|
1120
1121
|
padding: var(--padding-s) var(--padding-m);
|
|
1121
1122
|
|
|
@@ -1126,7 +1127,7 @@ const Gr = u.div`
|
|
|
1126
1127
|
&:hover {
|
|
1127
1128
|
filter: brightness(1.15);
|
|
1128
1129
|
}
|
|
1129
|
-
`,
|
|
1130
|
+
`, Fn = u(rt)`
|
|
1130
1131
|
&:nth-child(2n) {
|
|
1131
1132
|
width: 80%;
|
|
1132
1133
|
}
|
|
@@ -1134,28 +1135,28 @@ const Gr = u.div`
|
|
|
1134
1135
|
&:last-of-type {
|
|
1135
1136
|
width: 64px;
|
|
1136
1137
|
}
|
|
1137
|
-
`,
|
|
1138
|
+
`, Bn = ({
|
|
1138
1139
|
resolver: e,
|
|
1139
1140
|
acceptedParams: t,
|
|
1140
1141
|
settings: r,
|
|
1141
1142
|
onShowMore: n
|
|
1142
1143
|
}) => {
|
|
1143
|
-
const s =
|
|
1144
|
+
const s = Z(
|
|
1144
1145
|
() => ({ enumResolver: e, enumResolverSettings: r }),
|
|
1145
1146
|
[e, r]
|
|
1146
|
-
), { options: i, isLoading: a, isError: h, errorMessage:
|
|
1147
|
+
), { options: i, isLoading: a, isError: h, errorMessage: f } = br(s), c = fo(i), l = yo(t);
|
|
1147
1148
|
if (a)
|
|
1148
|
-
return /* @__PURE__ */ o(Ue, { children: Array.from({ length: ht + 1 }).map((v, x) => /* @__PURE__ */ o(
|
|
1149
|
+
return /* @__PURE__ */ o(Ue, { children: Array.from({ length: ht + 1 }).map((v, x) => /* @__PURE__ */ o(Fn, { className: "loading" }, x)) });
|
|
1149
1150
|
if (h)
|
|
1150
|
-
return /* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ S(
|
|
1151
|
+
return /* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ S(Ge, { children: [
|
|
1151
1152
|
'Could not load options for "',
|
|
1152
1153
|
e,
|
|
1153
1154
|
'"',
|
|
1154
|
-
|
|
1155
|
+
f ? `: ${f}` : "."
|
|
1155
1156
|
] }) });
|
|
1156
1157
|
if (!c.length)
|
|
1157
|
-
return /* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ S(
|
|
1158
|
-
|
|
1158
|
+
return /* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ S(Ge, { children: [
|
|
1159
|
+
Ln,
|
|
1159
1160
|
l.length > 0 && ` This could be because in context parameters (${l.join(
|
|
1160
1161
|
", "
|
|
1161
1162
|
)}) are required to get the items.`
|
|
@@ -1166,13 +1167,13 @@ const Gr = u.div`
|
|
|
1166
1167
|
/* @__PURE__ */ o(Ao, { icon: x, color: v.color, reserveSpace: y }),
|
|
1167
1168
|
/* @__PURE__ */ o("span", { className: "label", children: v.label })
|
|
1168
1169
|
] }, String(v.value))),
|
|
1169
|
-
p > 0 && /* @__PURE__ */ S(
|
|
1170
|
+
p > 0 && /* @__PURE__ */ S(Mn, { type: "button", onClick: n, children: [
|
|
1170
1171
|
"+",
|
|
1171
1172
|
p,
|
|
1172
1173
|
" more"
|
|
1173
1174
|
] })
|
|
1174
1175
|
] });
|
|
1175
|
-
},
|
|
1176
|
+
}, Vn = ({
|
|
1176
1177
|
enumValues: e,
|
|
1177
1178
|
enumResolver: t,
|
|
1178
1179
|
enumResolverSettings: r,
|
|
@@ -1180,14 +1181,14 @@ const Gr = u.div`
|
|
|
1180
1181
|
onChangeResolver: s,
|
|
1181
1182
|
onChangeResolverSettings: i
|
|
1182
1183
|
}) => {
|
|
1183
|
-
const { data: a = [], isLoading: h, isError:
|
|
1184
|
+
const { data: a = [], isLoading: h, isError: f } = cr(), [c, l] = U(!1), p = () => l(!0), d = [
|
|
1184
1185
|
{ value: Ve, label: "Custom" },
|
|
1185
1186
|
...a.map((m) => ({
|
|
1186
1187
|
value: m.name,
|
|
1187
1188
|
label: m.label || Tt(m.name)
|
|
1188
1189
|
}))
|
|
1189
|
-
], y = t || Ve, v = a.find((m) => m.name === t), x = v?.settingsForm ||
|
|
1190
|
-
return /* @__PURE__ */ S(
|
|
1190
|
+
], y = t || Ve, v = a.find((m) => m.name === t), x = v?.settingsForm || Dn, g = r || {}, w = yo(v?.acceptedParams).map((m) => On[m]).join(" ");
|
|
1191
|
+
return /* @__PURE__ */ S(zn, { children: [
|
|
1191
1192
|
/* @__PURE__ */ o(
|
|
1192
1193
|
me,
|
|
1193
1194
|
{
|
|
@@ -1197,27 +1198,27 @@ const Gr = u.div`
|
|
|
1197
1198
|
const k = m[0];
|
|
1198
1199
|
!k || k === Ve ? (s(void 0), i(void 0)) : (s(k), i(void 0), n(void 0));
|
|
1199
1200
|
},
|
|
1200
|
-
disabled: h ||
|
|
1201
|
+
disabled: h || f,
|
|
1201
1202
|
minSelected: 1,
|
|
1202
|
-
searchOnNumber:
|
|
1203
|
+
searchOnNumber: Rn,
|
|
1203
1204
|
widthExpand: !0
|
|
1204
1205
|
}
|
|
1205
1206
|
),
|
|
1206
1207
|
y === Ve ? /* @__PURE__ */ o(
|
|
1207
|
-
|
|
1208
|
+
xn,
|
|
1208
1209
|
{
|
|
1209
1210
|
values: e || [],
|
|
1210
1211
|
onChange: (m) => n(m?.length ? m : void 0)
|
|
1211
1212
|
}
|
|
1212
1213
|
) : /* @__PURE__ */ S(pe, { children: [
|
|
1213
|
-
!h && !v && /* @__PURE__ */ S(
|
|
1214
|
+
!h && !v && /* @__PURE__ */ S(Ge, { children: [
|
|
1214
1215
|
'Resolver "',
|
|
1215
1216
|
t,
|
|
1216
1217
|
'" is not available on this server. Options will be empty.'
|
|
1217
1218
|
] }),
|
|
1218
|
-
v?.description && /* @__PURE__ */ o(
|
|
1219
|
+
v?.description && /* @__PURE__ */ o(Ge, { children: v.description }),
|
|
1219
1220
|
w && /* @__PURE__ */ o(
|
|
1220
|
-
|
|
1221
|
+
$n,
|
|
1221
1222
|
{
|
|
1222
1223
|
message: w,
|
|
1223
1224
|
role: "button",
|
|
@@ -1229,7 +1230,7 @@ const Gr = u.div`
|
|
|
1229
1230
|
}
|
|
1230
1231
|
),
|
|
1231
1232
|
x.length > 0 && /* @__PURE__ */ o(
|
|
1232
|
-
|
|
1233
|
+
bo,
|
|
1233
1234
|
{
|
|
1234
1235
|
fields: x,
|
|
1235
1236
|
values: g,
|
|
@@ -1239,7 +1240,7 @@ const Gr = u.div`
|
|
|
1239
1240
|
),
|
|
1240
1241
|
v && /* @__PURE__ */ S(pe, { children: [
|
|
1241
1242
|
/* @__PURE__ */ o(
|
|
1242
|
-
|
|
1243
|
+
Bn,
|
|
1243
1244
|
{
|
|
1244
1245
|
resolver: v.name,
|
|
1245
1246
|
acceptedParams: v.acceptedParams,
|
|
@@ -1259,7 +1260,7 @@ const Gr = u.div`
|
|
|
1259
1260
|
)
|
|
1260
1261
|
] }),
|
|
1261
1262
|
c && v && /* @__PURE__ */ o(
|
|
1262
|
-
|
|
1263
|
+
_n,
|
|
1263
1264
|
{
|
|
1264
1265
|
resolver: v,
|
|
1265
1266
|
settings: g,
|
|
@@ -1272,7 +1273,7 @@ const Gr = u.div`
|
|
|
1272
1273
|
{
|
|
1273
1274
|
value: "text",
|
|
1274
1275
|
label: "Text",
|
|
1275
|
-
icon:
|
|
1276
|
+
icon: fe("text", "string"),
|
|
1276
1277
|
widgets: [
|
|
1277
1278
|
{
|
|
1278
1279
|
value: wt,
|
|
@@ -1287,17 +1288,17 @@ const Gr = u.div`
|
|
|
1287
1288
|
}
|
|
1288
1289
|
]
|
|
1289
1290
|
},
|
|
1290
|
-
{ value: "select", label: "Select", icon:
|
|
1291
|
-
{ value: "number", label: "Number", icon:
|
|
1292
|
-
{ value: "checkbox", label: "Checkbox", icon:
|
|
1293
|
-
{ value: "datetime", label: "Date and time", icon:
|
|
1294
|
-
],
|
|
1291
|
+
{ value: "select", label: "Select", icon: fe("select", "string", !0) },
|
|
1292
|
+
{ value: "number", label: "Number", icon: fe("number", "integer") },
|
|
1293
|
+
{ value: "checkbox", label: "Checkbox", icon: fe("checkbox", "boolean") },
|
|
1294
|
+
{ value: "datetime", label: "Date and time", icon: fe("datetime", "datetime") }
|
|
1295
|
+
], Un = {
|
|
1295
1296
|
text: ["minLength", "maxLength", "regex"],
|
|
1296
1297
|
select: ["enum"],
|
|
1297
1298
|
number: ["ge", "gt", "le", "lt"],
|
|
1298
1299
|
checkbox: [],
|
|
1299
1300
|
datetime: []
|
|
1300
|
-
},
|
|
1301
|
+
}, Hn = {
|
|
1301
1302
|
checkbox: ["example"]
|
|
1302
1303
|
}, kt = (e, t, r) => {
|
|
1303
1304
|
switch (e) {
|
|
@@ -1315,7 +1316,7 @@ const Gr = u.div`
|
|
|
1315
1316
|
default:
|
|
1316
1317
|
return "text";
|
|
1317
1318
|
}
|
|
1318
|
-
},
|
|
1319
|
+
}, jn = (e, t) => {
|
|
1319
1320
|
switch (e) {
|
|
1320
1321
|
case "text":
|
|
1321
1322
|
return "string";
|
|
@@ -1328,24 +1329,24 @@ const Gr = u.div`
|
|
|
1328
1329
|
case "datetime":
|
|
1329
1330
|
return "datetime";
|
|
1330
1331
|
}
|
|
1331
|
-
},
|
|
1332
|
+
}, Kn = [
|
|
1332
1333
|
"string",
|
|
1333
1334
|
"integer",
|
|
1334
1335
|
"float",
|
|
1335
1336
|
"boolean",
|
|
1336
1337
|
"datetime",
|
|
1337
1338
|
"list_of_strings"
|
|
1338
|
-
],
|
|
1339
|
-
if (!e || !
|
|
1339
|
+
], Us = (e, t, r) => {
|
|
1340
|
+
if (!e || !Kn.includes(e)) return e ?? "";
|
|
1340
1341
|
if (e === "list_of_strings") return "Select (multiple)";
|
|
1341
1342
|
const n = kt(e, t, r);
|
|
1342
1343
|
return Ke.find((s) => s.value === n)?.label ?? e;
|
|
1343
|
-
},
|
|
1344
|
+
}, qn = u.div`
|
|
1344
1345
|
display: flex;
|
|
1345
1346
|
flex-direction: row;
|
|
1346
1347
|
gap: var(--base-gap-large);
|
|
1347
1348
|
align-items: center;
|
|
1348
|
-
`, Gn = /^[a-zA-Z0-9]{2,64}$/,
|
|
1349
|
+
`, Gn = /^[a-zA-Z0-9]{2,64}$/, Yn = [
|
|
1349
1350
|
{ value: "project", label: "Project" },
|
|
1350
1351
|
{ value: "folder", label: "Folder" },
|
|
1351
1352
|
{ value: "task", label: "Task" },
|
|
@@ -1354,7 +1355,7 @@ const Gr = u.div`
|
|
|
1354
1355
|
{ value: "representation", label: "Representation" },
|
|
1355
1356
|
{ value: "user", label: "User" },
|
|
1356
1357
|
{ value: "list", label: "List" }
|
|
1357
|
-
],
|
|
1358
|
+
], Wn = [
|
|
1358
1359
|
{ value: "description", scope: null },
|
|
1359
1360
|
{ value: "example", scope: null },
|
|
1360
1361
|
{ value: "default", scope: ["project"] },
|
|
@@ -1362,7 +1363,7 @@ const Gr = u.div`
|
|
|
1362
1363
|
value: "inherit",
|
|
1363
1364
|
scope: ["project", "folder", "task", "product", "version", "representation", "user"]
|
|
1364
1365
|
}
|
|
1365
|
-
],
|
|
1366
|
+
], Xn = {
|
|
1366
1367
|
name: "",
|
|
1367
1368
|
scope: ["folder", "task"],
|
|
1368
1369
|
builtin: !1,
|
|
@@ -1387,8 +1388,8 @@ const Gr = u.div`
|
|
|
1387
1388
|
le: void 0,
|
|
1388
1389
|
lt: void 0
|
|
1389
1390
|
}
|
|
1390
|
-
},
|
|
1391
|
-
const r = JSON.parse(JSON.stringify(
|
|
1391
|
+
}, Qn = (e, t) => {
|
|
1392
|
+
const r = JSON.parse(JSON.stringify(Xn)), n = ["name"];
|
|
1392
1393
|
Object.keys(r).forEach((i) => {
|
|
1393
1394
|
!n.includes(i) && e.includes(i) && i !== "data" && delete r[i];
|
|
1394
1395
|
});
|
|
@@ -1399,7 +1400,7 @@ const Gr = u.div`
|
|
|
1399
1400
|
const a = i;
|
|
1400
1401
|
a === "data" && t.data && r.data ? r.data = { ...r.data, ...t.data } : t[a] !== void 0 && (r[a] = t[a]);
|
|
1401
1402
|
}), r;
|
|
1402
|
-
},
|
|
1403
|
+
}, Hs = ({
|
|
1403
1404
|
attribute: e,
|
|
1404
1405
|
defaultData: t,
|
|
1405
1406
|
existingNames: r,
|
|
@@ -1408,23 +1409,23 @@ const Gr = u.div`
|
|
|
1408
1409
|
excludes: i = [],
|
|
1409
1410
|
onHide: a,
|
|
1410
1411
|
onEdit: h,
|
|
1411
|
-
onDelete:
|
|
1412
|
+
onDelete: f
|
|
1412
1413
|
}) => {
|
|
1413
1414
|
const c = t ? {
|
|
1414
1415
|
...t,
|
|
1415
1416
|
name: t.name || (t.data?.title ? pt(t.data.title) : void 0)
|
|
1416
|
-
} : void 0, l = e ||
|
|
1417
|
+
} : void 0, l = e || Qn(i, {
|
|
1417
1418
|
position: r.length,
|
|
1418
1419
|
...c
|
|
1419
1420
|
}), [p, d] = U(l), [y, v] = U(
|
|
1420
1421
|
() => kt(l?.data?.type, l?.data?.enum, l?.data?.enumResolver)
|
|
1421
1422
|
), [x, g] = U(() => l?.data?.type === "float");
|
|
1422
|
-
|
|
1423
|
+
Y(() => {
|
|
1423
1424
|
e && (d(e), v(
|
|
1424
1425
|
kt(e.data?.type, e.data?.enum, e.data?.enumResolver)
|
|
1425
1426
|
), g(e.data?.type === "float"));
|
|
1426
1427
|
}, [e]);
|
|
1427
|
-
const w = !e,
|
|
1428
|
+
const w = !e, b = (I, A) => {
|
|
1428
1429
|
d((R) => R && { ...R, [I]: A });
|
|
1429
1430
|
}, m = (I, A) => {
|
|
1430
1431
|
d((R) => {
|
|
@@ -1439,14 +1440,14 @@ const Gr = u.div`
|
|
|
1439
1440
|
const C = () => {
|
|
1440
1441
|
p && h(p);
|
|
1441
1442
|
}, N = /* @__PURE__ */ S("div", { style: { display: "flex", width: "100%", flexDirection: "row" }, children: [
|
|
1442
|
-
|
|
1443
|
+
f && e && /* @__PURE__ */ o(
|
|
1443
1444
|
B,
|
|
1444
1445
|
{
|
|
1445
1446
|
variant: "danger",
|
|
1446
1447
|
label: "Delete attribute",
|
|
1447
1448
|
icon: "delete",
|
|
1448
1449
|
disabled: s,
|
|
1449
|
-
onClick:
|
|
1450
|
+
onClick: f
|
|
1450
1451
|
}
|
|
1451
1452
|
),
|
|
1452
1453
|
/* @__PURE__ */ o(go, {}),
|
|
@@ -1463,17 +1464,17 @@ const Gr = u.div`
|
|
|
1463
1464
|
)
|
|
1464
1465
|
] });
|
|
1465
1466
|
let z = [];
|
|
1466
|
-
|
|
1467
|
+
Wn.forEach((I) => {
|
|
1467
1468
|
(!I?.scope || I?.scope?.some((A) => p?.scope?.includes(A))) && z.push(I.value);
|
|
1468
1469
|
});
|
|
1469
1470
|
const P = [
|
|
1470
|
-
...
|
|
1471
|
+
...Un[y] ?? [],
|
|
1471
1472
|
...y === "select" && p?.data?.type === "list_of_strings" ? ["minItems", "maxItems"] : []
|
|
1472
|
-
], V =
|
|
1473
|
+
], V = Hn[y] ?? [];
|
|
1473
1474
|
z = [...z, ...P].filter((I) => !V.includes(I));
|
|
1474
1475
|
const L = {
|
|
1475
1476
|
enum: (I = [], A) => /* @__PURE__ */ o(
|
|
1476
|
-
|
|
1477
|
+
Vn,
|
|
1477
1478
|
{
|
|
1478
1479
|
enumValues: I,
|
|
1479
1480
|
enumResolver: p?.data?.enumResolver,
|
|
@@ -1498,13 +1499,13 @@ const Gr = u.div`
|
|
|
1498
1499
|
}
|
|
1499
1500
|
)
|
|
1500
1501
|
}, j = (I) => {
|
|
1501
|
-
m("enumResolver", I), I && (p?.data?.title || m("title", Tt(I)), w && !p?.name &&
|
|
1502
|
+
m("enumResolver", I), I && (p?.data?.title || m("title", Tt(I)), w && !p?.name && b("name", pt(I)));
|
|
1502
1503
|
}, T = (I) => {
|
|
1503
1504
|
const A = I.target.value;
|
|
1504
|
-
m("title", A), w &&
|
|
1505
|
+
m("title", A), w && b("name", pt(A));
|
|
1505
1506
|
}, F = (I) => {
|
|
1506
1507
|
const A = I[0];
|
|
1507
|
-
v(A), m("type",
|
|
1508
|
+
v(A), m("type", jn(A, x)), A !== "select" && (m("enum", void 0), m("enumResolver", void 0), m("enumResolverSettings", void 0), m("minItems", void 0), m("maxItems", void 0)), A !== "text" && p?.data?.regex && m("regex", ""), m("widget", void 0);
|
|
1508
1509
|
}, O = Ke.find((I) => I.value === y)?.widgets;
|
|
1509
1510
|
return /* @__PURE__ */ o(
|
|
1510
1511
|
We,
|
|
@@ -1526,22 +1527,22 @@ const Gr = u.div`
|
|
|
1526
1527
|
{
|
|
1527
1528
|
value: p.name,
|
|
1528
1529
|
disabled: !w,
|
|
1529
|
-
onSubmit: (I) =>
|
|
1530
|
+
onSubmit: (I) => b("name", I),
|
|
1530
1531
|
label: "name"
|
|
1531
1532
|
}
|
|
1532
1533
|
) }, "name"),
|
|
1533
1534
|
!i.includes("scope") && /* @__PURE__ */ o(oe, { label: "Scope", children: /* @__PURE__ */ o(
|
|
1534
1535
|
me,
|
|
1535
1536
|
{
|
|
1536
|
-
options:
|
|
1537
|
+
options: Yn,
|
|
1537
1538
|
disabled: p.builtin,
|
|
1538
1539
|
value: p.scope || [],
|
|
1539
|
-
onChange: (I) =>
|
|
1540
|
+
onChange: (I) => b("scope", I),
|
|
1540
1541
|
multiSelect: !0,
|
|
1541
1542
|
widthExpand: !0
|
|
1542
1543
|
}
|
|
1543
1544
|
) }),
|
|
1544
|
-
!i.includes("type") && /* @__PURE__ */ o(oe, { label: "Type", children: /* @__PURE__ */ S(
|
|
1545
|
+
!i.includes("type") && /* @__PURE__ */ o(oe, { label: "Type", children: /* @__PURE__ */ S(qn, { children: [
|
|
1545
1546
|
/* @__PURE__ */ o(
|
|
1546
1547
|
me,
|
|
1547
1548
|
{
|
|
@@ -1596,7 +1597,7 @@ const Gr = u.div`
|
|
|
1596
1597
|
let A = null, R = nr(I);
|
|
1597
1598
|
if (I === "enum" || I === "inherit") {
|
|
1598
1599
|
const $ = L[I];
|
|
1599
|
-
A = $(p?.data[I], (
|
|
1600
|
+
A = $(p?.data[I], (W) => m(I, W));
|
|
1600
1601
|
} else if (I === "default" && p?.data?.type === "boolean")
|
|
1601
1602
|
A = L.booleanDefault(
|
|
1602
1603
|
p?.data[I],
|
|
@@ -1605,15 +1606,15 @@ const Gr = u.div`
|
|
|
1605
1606
|
else if (["ge", "gt", "le", "lt"].includes(I)) {
|
|
1606
1607
|
if (["gt", "lt"].includes(I)) return null;
|
|
1607
1608
|
A = /* @__PURE__ */ o(
|
|
1608
|
-
|
|
1609
|
+
rn,
|
|
1609
1610
|
{
|
|
1610
1611
|
value: p?.data,
|
|
1611
1612
|
isMin: I === "ge",
|
|
1612
1613
|
isFloat: p?.data?.type === "float",
|
|
1613
1614
|
onChange: ($) => {
|
|
1614
|
-
const
|
|
1615
|
+
const W = $.ge !== void 0 ? Number($.ge) : void 0, re = $.le !== void 0 ? Number($.le) : void 0;
|
|
1615
1616
|
// @ts-expect-error
|
|
1616
|
-
$.ge !== void 0 && isNaN(
|
|
1617
|
+
$.ge !== void 0 && isNaN(W) || // @ts-expect-error
|
|
1617
1618
|
$.le !== void 0 && isNaN(re) || d((ne) => {
|
|
1618
1619
|
if (!ne || !ne.data) return ne;
|
|
1619
1620
|
const ve = { ...ne.data, ...$ };
|
|
@@ -1623,8 +1624,8 @@ const Gr = u.div`
|
|
|
1623
1624
|
}
|
|
1624
1625
|
), R = I === "ge" ? "Min" : "Max";
|
|
1625
1626
|
} else {
|
|
1626
|
-
const $ = (
|
|
1627
|
-
const re =
|
|
1627
|
+
const $ = (W) => {
|
|
1628
|
+
const re = W.target.value;
|
|
1628
1629
|
switch (I) {
|
|
1629
1630
|
case "minLength":
|
|
1630
1631
|
case "maxLength":
|
|
@@ -1663,7 +1664,7 @@ const Gr = u.div`
|
|
|
1663
1664
|
] })
|
|
1664
1665
|
}
|
|
1665
1666
|
);
|
|
1666
|
-
},
|
|
1667
|
+
}, Zn = Qo`
|
|
1667
1668
|
from {
|
|
1668
1669
|
opacity: 0;
|
|
1669
1670
|
transform: translateY(-4px);
|
|
@@ -1672,10 +1673,10 @@ const Gr = u.div`
|
|
|
1672
1673
|
opacity: 1;
|
|
1673
1674
|
transform: translateY(0);
|
|
1674
1675
|
}
|
|
1675
|
-
`,
|
|
1676
|
+
`, js = u.div`
|
|
1676
1677
|
position: relative;
|
|
1677
1678
|
display: inline-flex;
|
|
1678
|
-
`,
|
|
1679
|
+
`, Ks = u.button`
|
|
1679
1680
|
background: none;
|
|
1680
1681
|
border: none;
|
|
1681
1682
|
padding: 0;
|
|
@@ -1707,7 +1708,7 @@ const Gr = u.div`
|
|
|
1707
1708
|
width: 24px;
|
|
1708
1709
|
height: 24px;
|
|
1709
1710
|
}
|
|
1710
|
-
`,
|
|
1711
|
+
`, qs = u(q)`
|
|
1711
1712
|
width: 20px;
|
|
1712
1713
|
height: 20px;
|
|
1713
1714
|
min-width: 20px;
|
|
@@ -1723,13 +1724,13 @@ const Gr = u.div`
|
|
|
1723
1724
|
&:hover {
|
|
1724
1725
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
1725
1726
|
}
|
|
1726
|
-
`,
|
|
1727
|
+
`, Gs = u.div`
|
|
1727
1728
|
position: fixed;
|
|
1728
1729
|
z-index: 1001;
|
|
1729
1730
|
background-color: var(--md-sys-color-surface-container-highest);
|
|
1730
1731
|
border-radius: var(--border-radius-l);
|
|
1731
1732
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.2);
|
|
1732
|
-
animation: ${
|
|
1733
|
+
animation: ${Zn} 0.15s ease-out;
|
|
1733
1734
|
|
|
1734
1735
|
&.right {
|
|
1735
1736
|
transform-origin: top right;
|
|
@@ -1738,13 +1739,13 @@ const Gr = u.div`
|
|
|
1738
1739
|
&.left {
|
|
1739
1740
|
transform-origin: top left;
|
|
1740
1741
|
}
|
|
1741
|
-
`,
|
|
1742
|
+
`, Ys = u.div`
|
|
1742
1743
|
display: flex;
|
|
1743
1744
|
flex-direction: column;
|
|
1744
1745
|
gap: var(--base-gap-small);
|
|
1745
1746
|
padding: var(--padding-m);
|
|
1746
1747
|
position: relative;
|
|
1747
|
-
`,
|
|
1748
|
+
`, Ws = u(B)`
|
|
1748
1749
|
&.hasIcon {
|
|
1749
1750
|
padding: 4px;
|
|
1750
1751
|
}
|
|
@@ -1760,7 +1761,7 @@ const Gr = u.div`
|
|
|
1760
1761
|
&:hover {
|
|
1761
1762
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
1762
1763
|
}
|
|
1763
|
-
`,
|
|
1764
|
+
`, Xs = u.div`
|
|
1764
1765
|
display: flex;
|
|
1765
1766
|
flex-direction: column;
|
|
1766
1767
|
gap: 4px;
|
|
@@ -1769,7 +1770,7 @@ const Gr = u.div`
|
|
|
1769
1770
|
${se.labelSmall}
|
|
1770
1771
|
color: var(--md-sys-color-outline);
|
|
1771
1772
|
}
|
|
1772
|
-
`,
|
|
1773
|
+
`, Qs = u.input`
|
|
1773
1774
|
background-color: var(--md-sys-color-surface-container-low);
|
|
1774
1775
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
1775
1776
|
border-radius: var(--border-radius-m);
|
|
@@ -1791,7 +1792,7 @@ const Gr = u.div`
|
|
|
1791
1792
|
cursor: pointer;
|
|
1792
1793
|
filter: invert(0.5);
|
|
1793
1794
|
}
|
|
1794
|
-
`,
|
|
1795
|
+
`, Zs = u(B)`
|
|
1795
1796
|
&:hover {
|
|
1796
1797
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
1797
1798
|
}
|
|
@@ -1811,41 +1812,41 @@ const Gr = u.div`
|
|
|
1811
1812
|
|
|
1812
1813
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
1813
1814
|
font-weight: 700;
|
|
1814
|
-
`,
|
|
1815
|
+
`, Js = ce(
|
|
1815
1816
|
({ tooltip: e, ...t }, r) => /* @__PURE__ */ o(Jn, { "data-tooltip": e, "data-tooltip-delay": 0, ...t, ref: r, children: "Early preview" })
|
|
1816
1817
|
), Ct = [
|
|
1817
1818
|
{ value: "hero", label: "Hero", short: "Hero", icon: "star" },
|
|
1818
1819
|
{ value: "latestDone", label: "Latest Done", short: "Done", icon: "check_circle" },
|
|
1819
1820
|
{ value: "latest", label: "Latest", short: "Latest", icon: "fiber_new" }
|
|
1820
|
-
],
|
|
1821
|
-
const { attributes: r, listeners: n, setNodeRef: s, transform: i, transition: a, isDragging: h } =
|
|
1821
|
+
], el = Ct.map((e) => e.value), ea = ({ id: e, label: t }) => {
|
|
1822
|
+
const { attributes: r, listeners: n, setNodeRef: s, transform: i, transition: a, isDragging: h } = Ze({
|
|
1822
1823
|
id: e
|
|
1823
|
-
}),
|
|
1824
|
-
transform:
|
|
1824
|
+
}), f = {
|
|
1825
|
+
transform: Je.Transform.toString(i),
|
|
1825
1826
|
transition: a
|
|
1826
1827
|
};
|
|
1827
1828
|
return /* @__PURE__ */ o(
|
|
1828
|
-
|
|
1829
|
+
ra,
|
|
1829
1830
|
{
|
|
1830
1831
|
ref: s,
|
|
1831
|
-
style:
|
|
1832
|
+
style: f,
|
|
1832
1833
|
className: h ? "dragging" : "",
|
|
1833
1834
|
...r,
|
|
1834
1835
|
...n,
|
|
1835
1836
|
children: /* @__PURE__ */ S(Lo, { children: [
|
|
1836
|
-
/* @__PURE__ */ o(Ro, { children: /* @__PURE__ */ o(
|
|
1837
|
+
/* @__PURE__ */ o(Ro, { children: /* @__PURE__ */ o(q, { icon: "drag_indicator" }) }),
|
|
1837
1838
|
/* @__PURE__ */ o(Oo, { children: t })
|
|
1838
1839
|
] })
|
|
1839
1840
|
}
|
|
1840
1841
|
);
|
|
1841
|
-
},
|
|
1842
|
+
}, tl = ({ value: e, onChange: t }) => {
|
|
1842
1843
|
const [r, n] = U(null), s = Pt(
|
|
1843
1844
|
At(_t, {
|
|
1844
1845
|
activationConstraint: {
|
|
1845
1846
|
distance: 5
|
|
1846
1847
|
}
|
|
1847
1848
|
})
|
|
1848
|
-
), i =
|
|
1849
|
+
), i = Z(() => {
|
|
1849
1850
|
const c = [...Ct];
|
|
1850
1851
|
return e.length > 0 && c.sort((l, p) => {
|
|
1851
1852
|
const d = e.indexOf(l.value), y = e.indexOf(p.value);
|
|
@@ -1863,12 +1864,12 @@ const Gr = u.div`
|
|
|
1863
1864
|
}
|
|
1864
1865
|
}
|
|
1865
1866
|
n(null);
|
|
1866
|
-
},
|
|
1867
|
-
return /* @__PURE__ */ S(
|
|
1868
|
-
/* @__PURE__ */ S(
|
|
1867
|
+
}, f = r ? Ct.find((c) => c.value === r) : null;
|
|
1868
|
+
return /* @__PURE__ */ S(ta, { children: [
|
|
1869
|
+
/* @__PURE__ */ S(na, { children: [
|
|
1869
1870
|
/* @__PURE__ */ o("span", { className: "label", children: "Product's featured version priority" }),
|
|
1870
1871
|
/* @__PURE__ */ o(
|
|
1871
|
-
|
|
1872
|
+
q,
|
|
1872
1873
|
{
|
|
1873
1874
|
icon: "info",
|
|
1874
1875
|
"data-tooltip": "Choose which version will be displayed on the product card. The first available from the list will be used.",
|
|
@@ -1889,26 +1890,26 @@ const Gr = u.div`
|
|
|
1889
1890
|
{
|
|
1890
1891
|
items: i.map((c) => c.value),
|
|
1891
1892
|
strategy: Re,
|
|
1892
|
-
children: /* @__PURE__ */ o(
|
|
1893
|
+
children: /* @__PURE__ */ o(oa, { children: i.map((c) => /* @__PURE__ */ o(ea, { id: c.value, label: c.label }, c.value)) })
|
|
1893
1894
|
}
|
|
1894
1895
|
),
|
|
1895
|
-
/* @__PURE__ */ o(Nt, { children:
|
|
1896
|
-
/* @__PURE__ */ o(Ro, { children: /* @__PURE__ */ o(
|
|
1897
|
-
/* @__PURE__ */ o(Oo, { children:
|
|
1896
|
+
/* @__PURE__ */ o(Nt, { children: f && /* @__PURE__ */ S(Lo, { className: "overlay", children: [
|
|
1897
|
+
/* @__PURE__ */ o(Ro, { children: /* @__PURE__ */ o(q, { icon: "drag_indicator" }) }),
|
|
1898
|
+
/* @__PURE__ */ o(Oo, { children: f.label })
|
|
1898
1899
|
] }) })
|
|
1899
1900
|
]
|
|
1900
1901
|
}
|
|
1901
1902
|
)
|
|
1902
1903
|
] });
|
|
1903
|
-
},
|
|
1904
|
+
}, ta = u.div`
|
|
1904
1905
|
display: flex;
|
|
1905
1906
|
flex-direction: column;
|
|
1906
1907
|
gap: var(--base-gap-small);
|
|
1907
|
-
`,
|
|
1908
|
+
`, oa = u.div`
|
|
1908
1909
|
display: flex;
|
|
1909
1910
|
flex-direction: column;
|
|
1910
1911
|
gap: var(--base-gap-small);
|
|
1911
|
-
`,
|
|
1912
|
+
`, ra = u.div`
|
|
1912
1913
|
&.dragging {
|
|
1913
1914
|
opacity: 0;
|
|
1914
1915
|
}
|
|
@@ -1942,7 +1943,7 @@ const Gr = u.div`
|
|
|
1942
1943
|
`, Oo = u.span`
|
|
1943
1944
|
font-weight: 500;
|
|
1944
1945
|
color: var(--md-sys-color-on-surface);
|
|
1945
|
-
`,
|
|
1946
|
+
`, na = u.div`
|
|
1946
1947
|
color: var(--md-sys-color-outline);
|
|
1947
1948
|
display: flex;
|
|
1948
1949
|
align-items: center;
|
|
@@ -1956,9 +1957,9 @@ const Gr = u.div`
|
|
|
1956
1957
|
.icon {
|
|
1957
1958
|
cursor: pointer;
|
|
1958
1959
|
}
|
|
1959
|
-
`,
|
|
1960
|
-
({ tooltip: e = "This page will deprecated in a future version", ...t }, r) => /* @__PURE__ */ o(
|
|
1961
|
-
),
|
|
1960
|
+
`, ol = ce(
|
|
1961
|
+
({ tooltip: e = "This page will deprecated in a future version", ...t }, r) => /* @__PURE__ */ o(q, { icon: "ad_off", "data-tooltip": e, ...t, ref: r })
|
|
1962
|
+
), aa = u(B)`
|
|
1962
1963
|
transition: color 0.2s, background-color 0.2s, opacity 0.2s;
|
|
1963
1964
|
|
|
1964
1965
|
.bolt {
|
|
@@ -1991,13 +1992,13 @@ const Gr = u.div`
|
|
|
1991
1992
|
&.rounded {
|
|
1992
1993
|
border-radius: var(--border-radius-xl);
|
|
1993
1994
|
}
|
|
1994
|
-
`,
|
|
1995
|
+
`, ia = ce(
|
|
1995
1996
|
({ feature: e, variant: t = "outline", rounded: r = !0, bolt: n = !1, ...s }, i) => {
|
|
1996
|
-
const { setPowerpackDialog: a } = wr(), h = (
|
|
1997
|
-
a(e), s.onClick?.(
|
|
1997
|
+
const { setPowerpackDialog: a } = wr(), h = (f) => {
|
|
1998
|
+
a(e), s.onClick?.(f);
|
|
1998
1999
|
};
|
|
1999
2000
|
return /* @__PURE__ */ S(
|
|
2000
|
-
|
|
2001
|
+
aa,
|
|
2001
2002
|
{
|
|
2002
2003
|
icon: s.icon || "bolt",
|
|
2003
2004
|
...s,
|
|
@@ -2006,33 +2007,33 @@ const Gr = u.div`
|
|
|
2006
2007
|
iconProps: {
|
|
2007
2008
|
filled: t === "filled"
|
|
2008
2009
|
},
|
|
2009
|
-
className:
|
|
2010
|
+
className: J("cloud-button", s.className, { rounded: r }),
|
|
2010
2011
|
"data-tooltip": "Power feature",
|
|
2011
2012
|
"data-tooltip-delay": 0,
|
|
2012
2013
|
children: [
|
|
2013
2014
|
s.children,
|
|
2014
|
-
n && /* @__PURE__ */ o(
|
|
2015
|
+
n && /* @__PURE__ */ o(q, { icon: "bolt", filled: !0, className: "bolt" })
|
|
2015
2016
|
]
|
|
2016
2017
|
}
|
|
2017
2018
|
);
|
|
2018
2019
|
}
|
|
2019
2020
|
);
|
|
2020
|
-
|
|
2021
|
-
const
|
|
2021
|
+
ia.displayName = "PowerpackButton";
|
|
2022
|
+
const sa = "https://ynput.cloud/free-trial", la = ({
|
|
2022
2023
|
addon: e
|
|
2023
2024
|
// an addon they are trying to access, e.g. 'powerpack'
|
|
2024
2025
|
}) => {
|
|
2025
2026
|
const { data: t } = pr(), r = t?.data?.isAdmin || t?.data?.isManager, { data: n } = gr(void 0, { skip: !t?.name }), { data: s } = mr(
|
|
2026
2027
|
{},
|
|
2027
2028
|
{ skip: !r || !n?.instanceId }
|
|
2028
|
-
), i = new URL(
|
|
2029
|
+
), i = new URL(sa), a = n?.instanceId, h = s || 10;
|
|
2029
2030
|
return i.searchParams.append("seats", h.toString()), a && i.searchParams.append("instance_id", a), e && i.searchParams.append("addon", e), i.toString();
|
|
2030
|
-
},
|
|
2031
|
+
}, rl = ce(
|
|
2031
2032
|
({ children: e, addon: t, ...r }, n) => {
|
|
2032
|
-
const s =
|
|
2033
|
+
const s = la({ addon: t });
|
|
2033
2034
|
return /* @__PURE__ */ o("a", { href: s, target: "_blank", rel: "noopener noreferrer", ...r, ref: n, children: e });
|
|
2034
2035
|
}
|
|
2035
|
-
),
|
|
2036
|
+
), nl = u(We)`
|
|
2036
2037
|
background: linear-gradient(180deg, rgb(0 121 181 / 0%) -12.03%, rgb(4 255 227 / 26%) 105.38%),
|
|
2037
2038
|
#15171c;
|
|
2038
2039
|
|
|
@@ -2054,7 +2055,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2054
2055
|
.cancelButton {
|
|
2055
2056
|
background-color: unset;
|
|
2056
2057
|
}
|
|
2057
|
-
`,
|
|
2058
|
+
`, al = u.div`
|
|
2058
2059
|
display: flex;
|
|
2059
2060
|
flex-direction: column;
|
|
2060
2061
|
align-items: center;
|
|
@@ -2084,7 +2085,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2084
2085
|
font-size: 32px;
|
|
2085
2086
|
color: var(--md-sys-color-tertiary);
|
|
2086
2087
|
}
|
|
2087
|
-
`,
|
|
2088
|
+
`, il = u.div`
|
|
2088
2089
|
width: 100%;
|
|
2089
2090
|
|
|
2090
2091
|
h3 {
|
|
@@ -2112,7 +2113,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2112
2113
|
gap: 8px;
|
|
2113
2114
|
}
|
|
2114
2115
|
}
|
|
2115
|
-
`,
|
|
2116
|
+
`, sl = u.div`
|
|
2116
2117
|
cursor: pointer;
|
|
2117
2118
|
text-align: center;
|
|
2118
2119
|
margin-top: 16px;
|
|
@@ -2122,7 +2123,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2122
2123
|
&:hover {
|
|
2123
2124
|
text-decoration: underline;
|
|
2124
2125
|
}
|
|
2125
|
-
`,
|
|
2126
|
+
`, ca = u(B)`
|
|
2126
2127
|
background-color: var(--md-sys-color-tertiary);
|
|
2127
2128
|
color: var(--md-sys-color-on-tertiary);
|
|
2128
2129
|
padding: 12px 20px;
|
|
@@ -2134,27 +2135,27 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2134
2135
|
&:hover {
|
|
2135
2136
|
background-color: var(--md-sys-color-tertiary-hover);
|
|
2136
2137
|
}
|
|
2137
|
-
`,
|
|
2138
|
+
`, ll = ce(({ ...e }, t) => /* @__PURE__ */ o(ca, { ...e, children: "Try for free!" })), da = u.div`
|
|
2138
2139
|
display: flex;
|
|
2139
2140
|
flex-direction: column;
|
|
2140
2141
|
gap: 8px;
|
|
2141
2142
|
border-radius: var(--border-radius-l);
|
|
2142
2143
|
background-color: var(--md-sys-color-secondary-container);
|
|
2143
2144
|
padding: var(--padding-m);
|
|
2144
|
-
`,
|
|
2145
|
+
`, cl = ce(
|
|
2145
2146
|
({ requiredVersion: e, addonName: t, addonLabel: r, ...n }, s) => {
|
|
2146
2147
|
const i = t || "powerpack", a = r || "Power Features";
|
|
2147
|
-
return e ? /* @__PURE__ */ S(
|
|
2148
|
+
return e ? /* @__PURE__ */ S(da, { ...n, ref: s, children: [
|
|
2148
2149
|
/* @__PURE__ */ o("span", { children: `${a} version ${e} is required to use this feature.` }),
|
|
2149
2150
|
/* @__PURE__ */ o(kr, { to: `/market?selected=${i}`, children: /* @__PURE__ */ S(B, { variant: "tertiary", children: [
|
|
2150
2151
|
"Update ",
|
|
2151
2152
|
a,
|
|
2152
2153
|
" ",
|
|
2153
|
-
/* @__PURE__ */ o(
|
|
2154
|
+
/* @__PURE__ */ o(q, { icon: "arrow_right_alt" })
|
|
2154
2155
|
] }) })
|
|
2155
2156
|
] }) : `Required ${a} version installed already.`;
|
|
2156
2157
|
}
|
|
2157
|
-
),
|
|
2158
|
+
), ua = u(B)`
|
|
2158
2159
|
width: 100%;
|
|
2159
2160
|
justify-content: flex-start;
|
|
2160
2161
|
margin-bottom: 8px;
|
|
@@ -2172,7 +2173,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2172
2173
|
.arrow {
|
|
2173
2174
|
color: var(--md-sys-color-outline);
|
|
2174
2175
|
}
|
|
2175
|
-
`,
|
|
2176
|
+
`, pa = u.div`
|
|
2176
2177
|
height: 100%;
|
|
2177
2178
|
/* fixed floor so the panel doesn't resize as its content changes */
|
|
2178
2179
|
min-width: 260px;
|
|
@@ -2182,7 +2183,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2182
2183
|
z-index: 10;
|
|
2183
2184
|
display: flex;
|
|
2184
2185
|
flex-direction: column;
|
|
2185
|
-
`,
|
|
2186
|
+
`, ga = u.div`
|
|
2186
2187
|
display: flex;
|
|
2187
2188
|
align-items: center;
|
|
2188
2189
|
gap: var(--base-gap-small);
|
|
@@ -2198,44 +2199,44 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2198
2199
|
}
|
|
2199
2200
|
`, to = u(B)`
|
|
2200
2201
|
padding: 4px !important;
|
|
2201
|
-
`,
|
|
2202
|
+
`, ma = u.h3`
|
|
2202
2203
|
margin: 0;
|
|
2203
2204
|
flex: 1;
|
|
2204
|
-
`,
|
|
2205
|
+
`, ha = u.div`
|
|
2205
2206
|
padding: 8px;
|
|
2206
2207
|
flex: 1;
|
|
2207
2208
|
overflow-y: auto;
|
|
2208
|
-
`,
|
|
2209
|
-
const { isPanelOpen: r, selectedSetting: n, closePanel: s, backToMainMenu: i, selectSetting: a } = et(), h = () => n && e.find((d) => d.id === n)?.title || "Settings",
|
|
2209
|
+
`, ba = ({ settings: e, order: t }) => {
|
|
2210
|
+
const { isPanelOpen: r, selectedSetting: n, closePanel: s, backToMainMenu: i, selectSetting: a } = et(), h = () => n && e.find((d) => d.id === n)?.title || "Settings", f = t ? e.toSorted((p, d) => {
|
|
2210
2211
|
const y = p.id ? t.indexOf(p.id) : -1, v = d.id ? t.indexOf(d.id) : -1;
|
|
2211
2212
|
return y === -1 && v === -1 ? 0 : y === -1 ? 1 : v === -1 ? -1 : y - v;
|
|
2212
|
-
}) : e, c = e.find((p) => p.id === n), l = () => n ? e.find((d) => d.id === n)?.component : /* @__PURE__ */ o(pe, { children:
|
|
2213
|
+
}) : e, c = e.find((p) => p.id === n), l = () => n ? e.find((d) => d.id === n)?.component : /* @__PURE__ */ o(pe, { children: f.map(
|
|
2213
2214
|
(d, y) => d.title ? /* @__PURE__ */ S(
|
|
2214
|
-
|
|
2215
|
+
ua,
|
|
2215
2216
|
{
|
|
2216
2217
|
onClick: () => a(d.id),
|
|
2217
2218
|
variant: "text",
|
|
2218
2219
|
className: "setting-option",
|
|
2219
2220
|
children: [
|
|
2220
|
-
d.icon && /* @__PURE__ */ o(
|
|
2221
|
+
d.icon && /* @__PURE__ */ o(q, { icon: d.icon }),
|
|
2221
2222
|
/* @__PURE__ */ o("span", { className: "title", children: d.title }),
|
|
2222
2223
|
!!d.preview?.toString() && /* @__PURE__ */ o("span", { className: "preview", children: d.preview }),
|
|
2223
|
-
/* @__PURE__ */ o(
|
|
2224
|
+
/* @__PURE__ */ o(q, { icon: "chevron_right", className: "arrow" })
|
|
2224
2225
|
]
|
|
2225
2226
|
},
|
|
2226
2227
|
d.id
|
|
2227
|
-
) : /* @__PURE__ */ o(
|
|
2228
|
+
) : /* @__PURE__ */ o(Jo, { children: d.component }, d.id)
|
|
2228
2229
|
) });
|
|
2229
|
-
return /* @__PURE__ */ S(
|
|
2230
|
-
/* @__PURE__ */ S(
|
|
2230
|
+
return /* @__PURE__ */ S(pa, { open: r, children: [
|
|
2231
|
+
/* @__PURE__ */ S(ga, { children: [
|
|
2231
2232
|
n && /* @__PURE__ */ o(to, { variant: "text", icon: "arrow_back", onClick: i }),
|
|
2232
|
-
/* @__PURE__ */ o(
|
|
2233
|
+
/* @__PURE__ */ o(ma, { children: h() }),
|
|
2233
2234
|
c?.headerActions,
|
|
2234
2235
|
/* @__PURE__ */ o(to, { variant: "text", icon: "close", onClick: s })
|
|
2235
2236
|
] }),
|
|
2236
|
-
/* @__PURE__ */ o(
|
|
2237
|
+
/* @__PURE__ */ o(ha, { children: l() })
|
|
2237
2238
|
] });
|
|
2238
|
-
},
|
|
2239
|
+
}, bt = u.ul`
|
|
2239
2240
|
display: flex;
|
|
2240
2241
|
flex-direction: column;
|
|
2241
2242
|
gap: 2px;
|
|
@@ -2291,11 +2292,11 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2291
2292
|
background-color: unset;
|
|
2292
2293
|
}
|
|
2293
2294
|
}
|
|
2294
|
-
`,
|
|
2295
|
+
`, va = u.div`
|
|
2295
2296
|
display: flex;
|
|
2296
2297
|
gap: var(--base-gap-small);
|
|
2297
2298
|
margin-left: auto;
|
|
2298
|
-
`,
|
|
2299
|
+
`, ya = u(B)`
|
|
2299
2300
|
&& {
|
|
2300
2301
|
background-color: unset;
|
|
2301
2302
|
padding: 4px;
|
|
@@ -2324,20 +2325,20 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2324
2325
|
isDisabled: i,
|
|
2325
2326
|
disableHover: a,
|
|
2326
2327
|
className: h,
|
|
2327
|
-
...
|
|
2328
|
+
...f
|
|
2328
2329
|
}, c) => /* @__PURE__ */ S(
|
|
2329
2330
|
fa,
|
|
2330
2331
|
{
|
|
2331
|
-
className:
|
|
2332
|
+
className: J("setting-item", h, {
|
|
2332
2333
|
highlighted: s,
|
|
2333
2334
|
disabled: i,
|
|
2334
2335
|
"no-hover": a
|
|
2335
2336
|
}),
|
|
2336
|
-
...
|
|
2337
|
+
...f,
|
|
2337
2338
|
ref: c,
|
|
2338
2339
|
children: [
|
|
2339
2340
|
r,
|
|
2340
|
-
e.icon && /* @__PURE__ */ o(
|
|
2341
|
+
e.icon && /* @__PURE__ */ o(q, { icon: e.icon }),
|
|
2341
2342
|
/* @__PURE__ */ S("span", { className: "label", children: [
|
|
2342
2343
|
e.path && /* @__PURE__ */ S("span", { className: "label-path", children: [
|
|
2343
2344
|
e.path,
|
|
@@ -2345,14 +2346,14 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2345
2346
|
] }),
|
|
2346
2347
|
e.label
|
|
2347
2348
|
] }),
|
|
2348
|
-
/* @__PURE__ */ o(
|
|
2349
|
-
|
|
2349
|
+
/* @__PURE__ */ o(va, { className: "actions", children: t?.map(({ icon: l, className: p, active: d, onClick: y, ...v }, x) => /* @__PURE__ */ S(
|
|
2350
|
+
ya,
|
|
2350
2351
|
{
|
|
2351
|
-
className:
|
|
2352
|
+
className: J("action", p, { active: d }),
|
|
2352
2353
|
onClick: i ? void 0 : y,
|
|
2353
2354
|
...v,
|
|
2354
2355
|
children: [
|
|
2355
|
-
l && /* @__PURE__ */ o(
|
|
2356
|
+
l && /* @__PURE__ */ o(q, { icon: l }),
|
|
2356
2357
|
v.children
|
|
2357
2358
|
]
|
|
2358
2359
|
},
|
|
@@ -2362,7 +2363,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2362
2363
|
]
|
|
2363
2364
|
}
|
|
2364
2365
|
)
|
|
2365
|
-
),
|
|
2366
|
+
), xa = u(nt)`
|
|
2366
2367
|
&:hover {
|
|
2367
2368
|
.pin-action {
|
|
2368
2369
|
opacity: 1;
|
|
@@ -2415,7 +2416,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2415
2416
|
// Dragging props
|
|
2416
2417
|
dragHandleProps: a,
|
|
2417
2418
|
dragOverlay: h = !1,
|
|
2418
|
-
hideDragHandle:
|
|
2419
|
+
hideDragHandle: f = !1,
|
|
2419
2420
|
// Callbacks
|
|
2420
2421
|
onTogglePinning: c,
|
|
2421
2422
|
onToggleVisibility: l,
|
|
@@ -2423,7 +2424,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2423
2424
|
onPaintEnter: d,
|
|
2424
2425
|
onDragStart: y
|
|
2425
2426
|
}) => {
|
|
2426
|
-
const v =
|
|
2427
|
+
const v = Z(
|
|
2427
2428
|
() => [
|
|
2428
2429
|
{
|
|
2429
2430
|
icon: "push_pin",
|
|
@@ -2450,24 +2451,24 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2450
2451
|
]
|
|
2451
2452
|
);
|
|
2452
2453
|
return /* @__PURE__ */ o(
|
|
2453
|
-
|
|
2454
|
+
xa,
|
|
2454
2455
|
{
|
|
2455
2456
|
id: e,
|
|
2456
2457
|
item: t,
|
|
2457
2458
|
actions: v,
|
|
2458
2459
|
isHighlighted: s,
|
|
2459
2460
|
isDisabled: i,
|
|
2460
|
-
className:
|
|
2461
|
+
className: J({
|
|
2461
2462
|
hidden: n,
|
|
2462
2463
|
overlay: h,
|
|
2463
|
-
"drag-reveal":
|
|
2464
|
+
"drag-reveal": f && !!y
|
|
2464
2465
|
}),
|
|
2465
2466
|
onPointerEnter: (x) => d?.(t.value, x.buttons > 0),
|
|
2466
2467
|
onPointerDown: (x) => (
|
|
2467
2468
|
// the row actions arm their own gestures
|
|
2468
2469
|
x.target.closest(".action") ? void 0 : y?.(x)
|
|
2469
2470
|
),
|
|
2470
|
-
startContent:
|
|
2471
|
+
startContent: f ? y ? /* @__PURE__ */ o(q, { icon: "drag_indicator", className: "hover-swap" }) : void 0 : /* @__PURE__ */ o("div", { ...a, className: "drag-handle", children: /* @__PURE__ */ o(q, { icon: "drag_indicator" }) })
|
|
2471
2472
|
}
|
|
2472
2473
|
);
|
|
2473
2474
|
}, oo = ({
|
|
@@ -2479,18 +2480,18 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2479
2480
|
isDisabled: i,
|
|
2480
2481
|
onTogglePinning: a,
|
|
2481
2482
|
onToggleVisibility: h,
|
|
2482
|
-
onPaintStart:
|
|
2483
|
+
onPaintStart: f,
|
|
2483
2484
|
onPaintEnter: c,
|
|
2484
2485
|
onDragStart: l
|
|
2485
2486
|
}) => {
|
|
2486
|
-
const { attributes: p, listeners: d, setNodeRef: y, transform: v, transition: x, isDragging: g } =
|
|
2487
|
+
const { attributes: p, listeners: d, setNodeRef: y, transform: v, transition: x, isDragging: g } = Ze({
|
|
2487
2488
|
id: e
|
|
2488
2489
|
}), w = {
|
|
2489
|
-
transform:
|
|
2490
|
+
transform: Je.Transform.toString(v),
|
|
2490
2491
|
transition: x
|
|
2491
2492
|
};
|
|
2492
2493
|
return /* @__PURE__ */ o(
|
|
2493
|
-
|
|
2494
|
+
wa,
|
|
2494
2495
|
{
|
|
2495
2496
|
ref: y,
|
|
2496
2497
|
style: w,
|
|
@@ -2506,7 +2507,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2506
2507
|
isDisabled: i,
|
|
2507
2508
|
onTogglePinning: a,
|
|
2508
2509
|
onToggleVisibility: h,
|
|
2509
|
-
onPaintStart:
|
|
2510
|
+
onPaintStart: f,
|
|
2510
2511
|
onPaintEnter: c,
|
|
2511
2512
|
onDragStart: l,
|
|
2512
2513
|
dragHandleProps: { ...p, ...d }
|
|
@@ -2514,7 +2515,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2514
2515
|
)
|
|
2515
2516
|
}
|
|
2516
2517
|
);
|
|
2517
|
-
},
|
|
2518
|
+
}, wa = u.div`
|
|
2518
2519
|
&.dragging {
|
|
2519
2520
|
z-index: 1;
|
|
2520
2521
|
opacity: 0;
|
|
@@ -2522,10 +2523,10 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2522
2523
|
`, zo = "text_fields", Mo = ({
|
|
2523
2524
|
field: e,
|
|
2524
2525
|
parentScope: t
|
|
2525
|
-
}) => e ?
|
|
2526
|
+
}) => e ? G(e) : t ? Eo(t) : zo, ka = (e) => e.length === 1 ? `${e[0].charAt(0).toUpperCase() + e[0].slice(1)} attributes` : "Attributes", $o = (e = [], t = []) => [
|
|
2526
2527
|
{
|
|
2527
2528
|
id: "attributes",
|
|
2528
|
-
label:
|
|
2529
|
+
label: ka(e),
|
|
2529
2530
|
icon: "text_fields",
|
|
2530
2531
|
match: (r) => !!r.attrib && !r.parentScope
|
|
2531
2532
|
},
|
|
@@ -2540,7 +2541,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2540
2541
|
match: (n) => n.parentScope === r
|
|
2541
2542
|
})
|
|
2542
2543
|
)
|
|
2543
|
-
],
|
|
2544
|
+
], Ca = (e, t = []) => $o(t, [e]).find((r) => r.match(e)), Fo = ({
|
|
2544
2545
|
columns: e,
|
|
2545
2546
|
onToggle: t,
|
|
2546
2547
|
isColumnVisible: r,
|
|
@@ -2550,7 +2551,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2550
2551
|
scopes: a = [],
|
|
2551
2552
|
extraItems: h = []
|
|
2552
2553
|
}) => {
|
|
2553
|
-
const
|
|
2554
|
+
const f = (g) => {
|
|
2554
2555
|
const w = r(g.value);
|
|
2555
2556
|
return {
|
|
2556
2557
|
id: g.value,
|
|
@@ -2561,24 +2562,24 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2561
2562
|
active: w,
|
|
2562
2563
|
reserveActiveSlot: !0,
|
|
2563
2564
|
onClick: () => t(g.value),
|
|
2564
|
-
onPointerDown: (
|
|
2565
|
-
n?.(g.value), i?.(g,
|
|
2565
|
+
onPointerDown: (b) => {
|
|
2566
|
+
n?.(g.value), i?.(g, b);
|
|
2566
2567
|
},
|
|
2567
|
-
onPointerEnter: (
|
|
2568
|
+
onPointerEnter: (b) => s?.(g.value, b.buttons > 0)
|
|
2568
2569
|
};
|
|
2569
2570
|
}, c = $o(a, e), l = new Map(c.map((g) => [g.id, []])), p = [], d = /* @__PURE__ */ new Map();
|
|
2570
2571
|
e.forEach((g) => {
|
|
2571
|
-
const w = c.find((
|
|
2572
|
+
const w = c.find((b) => b.match(g));
|
|
2572
2573
|
w ? l.get(w.id)?.push(g) : g.menu ? d.set(g.menu, [...d.get(g.menu) || [], g]) : p.push(g);
|
|
2573
2574
|
});
|
|
2574
2575
|
const y = c.filter((g) => l.get(g.id)?.length).map((g) => {
|
|
2575
|
-
const w = l.get(g.id),
|
|
2576
|
+
const w = l.get(g.id), b = w.filter((C) => !!C.attrib), m = w.filter((C) => !C.attrib).toSorted((C, N) => C.label.localeCompare(N.label)).map(f);
|
|
2576
2577
|
if (!g.id.startsWith("parent-"))
|
|
2577
2578
|
return {
|
|
2578
2579
|
id: g.id,
|
|
2579
2580
|
label: g.label,
|
|
2580
2581
|
icon: g.icon,
|
|
2581
|
-
items: (g.id === "attributes" ? w : w.toSorted((C, N) => C.label.localeCompare(N.label))).map(
|
|
2582
|
+
items: (g.id === "attributes" ? w : w.toSorted((C, N) => C.label.localeCompare(N.label))).map(f)
|
|
2582
2583
|
};
|
|
2583
2584
|
const k = g.id.replace("parent-", "");
|
|
2584
2585
|
return {
|
|
@@ -2587,12 +2588,12 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2587
2588
|
icon: g.icon,
|
|
2588
2589
|
items: [
|
|
2589
2590
|
...m,
|
|
2590
|
-
...
|
|
2591
|
+
...b.length ? [
|
|
2591
2592
|
{
|
|
2592
2593
|
id: `${g.id}-attributes`,
|
|
2593
2594
|
label: `${k.charAt(0).toUpperCase()}${k.slice(1)} attributes`,
|
|
2594
2595
|
icon: "text_fields",
|
|
2595
|
-
items:
|
|
2596
|
+
items: b.map(f)
|
|
2596
2597
|
}
|
|
2597
2598
|
] : []
|
|
2598
2599
|
]
|
|
@@ -2601,17 +2602,17 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2601
2602
|
id: `menu-${g}`,
|
|
2602
2603
|
label: g,
|
|
2603
2604
|
icon: "extension",
|
|
2604
|
-
items: w.toSorted((
|
|
2605
|
+
items: w.toSorted((b, m) => b.label.localeCompare(m.label)).map(f)
|
|
2605
2606
|
}));
|
|
2606
|
-
return [p.map(
|
|
2607
|
+
return [p.map(f), [...y, ...v], h].filter(
|
|
2607
2608
|
(g) => g.length
|
|
2608
2609
|
).flatMap((g, w) => w ? [{ id: "divider" }, ...g] : g);
|
|
2609
2610
|
}, It = ({ menuId: e, menuItems: t }) => {
|
|
2610
2611
|
const { menuOpen: r, setMenuOpen: n } = tt();
|
|
2611
|
-
return
|
|
2612
|
+
return Y(() => {
|
|
2612
2613
|
!t.length && r === e && n(!1);
|
|
2613
2614
|
}, [t.length, r, e, n]), /* @__PURE__ */ o(Co, { targetId: e, id: e, align: "left", children: /* @__PURE__ */ o(Dr, { menu: t, onClose: () => n(!1) }) });
|
|
2614
|
-
},
|
|
2615
|
+
}, Sa = 300, Bo = ({
|
|
2615
2616
|
columnVisibility: e,
|
|
2616
2617
|
defaultColumnVisibility: t,
|
|
2617
2618
|
updateColumnVisibility: r,
|
|
@@ -2619,64 +2620,64 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2619
2620
|
}) => {
|
|
2620
2621
|
const [s, i] = U(null), a = H(null);
|
|
2621
2622
|
a.current = s;
|
|
2622
|
-
const h = H(null),
|
|
2623
|
+
const h = H(null), f = H(0), c = H({ columnVisibility: e, defaultColumnVisibility: t, updateColumnVisibility: r });
|
|
2623
2624
|
c.current = { columnVisibility: e, defaultColumnVisibility: t, updateColumnVisibility: r };
|
|
2624
2625
|
const l = H(n);
|
|
2625
2626
|
l.current = n;
|
|
2626
|
-
const p = (
|
|
2627
|
-
const k =
|
|
2628
|
-
return ie(
|
|
2629
|
-
}, d =
|
|
2627
|
+
const p = (b, m) => {
|
|
2628
|
+
const k = b.action === "show";
|
|
2629
|
+
return ie(b.next, m, c.current.defaultColumnVisibility) === k ? b : { ...b, next: { ...b.next, [m]: k } };
|
|
2630
|
+
}, d = te(() => {
|
|
2630
2631
|
h.current = null;
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2633
|
-
}, []), y =
|
|
2632
|
+
const b = a.current;
|
|
2633
|
+
b && (f.current = performance.now() + Sa, c.current.updateColumnVisibility(b.next), i(null));
|
|
2634
|
+
}, []), y = te(() => {
|
|
2634
2635
|
h.current = null, a.current && i(null);
|
|
2635
2636
|
}, []);
|
|
2636
|
-
|
|
2637
|
+
Y(() => (window.addEventListener("pointerup", d), window.addEventListener("pointercancel", y), () => {
|
|
2637
2638
|
window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", y);
|
|
2638
2639
|
}), [d, y]);
|
|
2639
|
-
const v =
|
|
2640
|
-
if (l.current?.(
|
|
2641
|
-
|
|
2642
|
-
const { columnVisibility: m, defaultColumnVisibility: k } = c.current, C = ie(m,
|
|
2643
|
-
h.current = { columnId:
|
|
2644
|
-
}, []), x =
|
|
2640
|
+
const v = te((b) => {
|
|
2641
|
+
if (l.current?.(b)) return;
|
|
2642
|
+
f.current = 0;
|
|
2643
|
+
const { columnVisibility: m, defaultColumnVisibility: k } = c.current, C = ie(m, b, k);
|
|
2644
|
+
h.current = { columnId: b, action: C ? "hide" : "show" };
|
|
2645
|
+
}, []), x = te((b, m) => {
|
|
2645
2646
|
const k = h.current;
|
|
2646
2647
|
if (k) {
|
|
2647
2648
|
if (!m) {
|
|
2648
2649
|
y();
|
|
2649
2650
|
return;
|
|
2650
2651
|
}
|
|
2651
|
-
l.current?.(
|
|
2652
|
+
l.current?.(b) || i((C) => {
|
|
2652
2653
|
const { columnVisibility: N } = c.current, z = C ?? p(
|
|
2653
2654
|
{ action: k.action, base: N, next: N },
|
|
2654
2655
|
k.columnId
|
|
2655
2656
|
);
|
|
2656
|
-
return p(z,
|
|
2657
|
+
return p(z, b);
|
|
2657
2658
|
});
|
|
2658
2659
|
}
|
|
2659
|
-
}, []), g =
|
|
2660
|
-
if (performance.now() <
|
|
2661
|
-
|
|
2660
|
+
}, []), g = te((b) => {
|
|
2661
|
+
if (performance.now() < f.current) {
|
|
2662
|
+
f.current = 0;
|
|
2662
2663
|
return;
|
|
2663
2664
|
}
|
|
2664
|
-
const { columnVisibility: m, defaultColumnVisibility: k, updateColumnVisibility: C } = c.current, N = ie(m,
|
|
2665
|
-
C({ ...m, [
|
|
2665
|
+
const { columnVisibility: m, defaultColumnVisibility: k, updateColumnVisibility: C } = c.current, N = ie(m, b, k);
|
|
2666
|
+
C({ ...m, [b]: !N });
|
|
2666
2667
|
}, []), w = s?.next ?? e;
|
|
2667
2668
|
return {
|
|
2668
2669
|
baseVisibility: s?.base ?? e,
|
|
2669
2670
|
displayVisibility: w,
|
|
2670
|
-
isVisible: (
|
|
2671
|
+
isVisible: (b) => ie(w, b, t),
|
|
2671
2672
|
onPaintStart: v,
|
|
2672
2673
|
onPaintEnter: x,
|
|
2673
2674
|
toggle: g,
|
|
2674
2675
|
cancelPaint: y,
|
|
2675
2676
|
isPainting: !!s
|
|
2676
2677
|
};
|
|
2677
|
-
}, He = "add-column-menu-list",
|
|
2678
|
+
}, He = "add-column-menu-list", Ia = [], Vo = (e, t) => {
|
|
2678
2679
|
if (!(e.attrib || e.parentScope))
|
|
2679
|
-
return
|
|
2680
|
+
return Ca(e, t)?.label ?? e.menu;
|
|
2680
2681
|
}, Uo = (e) => e.parentScope && e.attrib ? Cr(e.parentScope, e.label) : e.label, je = (e, t) => {
|
|
2681
2682
|
const r = Vo(e, t);
|
|
2682
2683
|
return {
|
|
@@ -2685,7 +2686,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2685
2686
|
icon: e.icon ?? Mo(e),
|
|
2686
2687
|
...r ? { path: r } : {}
|
|
2687
2688
|
};
|
|
2688
|
-
},
|
|
2689
|
+
}, dl = ({
|
|
2689
2690
|
icon: e,
|
|
2690
2691
|
label: t,
|
|
2691
2692
|
checked: r,
|
|
@@ -2709,7 +2710,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2709
2710
|
),
|
|
2710
2711
|
...i
|
|
2711
2712
|
}
|
|
2712
|
-
),
|
|
2713
|
+
), Ea = ({
|
|
2713
2714
|
columns: e,
|
|
2714
2715
|
highlighted: t,
|
|
2715
2716
|
columnVisibility: r,
|
|
@@ -2718,7 +2719,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2718
2719
|
updateColumnPinning: i,
|
|
2719
2720
|
columnOrder: a,
|
|
2720
2721
|
setColumnsConfig: h,
|
|
2721
|
-
columnSizing:
|
|
2722
|
+
columnSizing: f,
|
|
2722
2723
|
groupBy: c,
|
|
2723
2724
|
sorting: l,
|
|
2724
2725
|
rowHeight: p,
|
|
@@ -2728,9 +2729,9 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2728
2729
|
columnSummaryFormats: x,
|
|
2729
2730
|
groupByConfig: g,
|
|
2730
2731
|
addColumnMenuItems: w,
|
|
2731
|
-
onColumnDragStart:
|
|
2732
|
+
onColumnDragStart: b,
|
|
2732
2733
|
isColumnDragging: m,
|
|
2733
|
-
scopes: k =
|
|
2734
|
+
scopes: k = Ia,
|
|
2734
2735
|
search: C,
|
|
2735
2736
|
onSearchChange: N
|
|
2736
2737
|
}) => {
|
|
@@ -2739,7 +2740,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2739
2740
|
displayVisibility: A,
|
|
2740
2741
|
isVisible: R,
|
|
2741
2742
|
onPaintStart: $,
|
|
2742
|
-
onPaintEnter:
|
|
2743
|
+
onPaintEnter: W,
|
|
2743
2744
|
toggle: re,
|
|
2744
2745
|
cancelPaint: ne
|
|
2745
2746
|
} = Bo({
|
|
@@ -2750,12 +2751,12 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2750
2751
|
}), { toggleMenuOpen: ve } = tt(), ye = H(null), ge = H({ columnVisibility: r, updateColumnVisibility: n });
|
|
2751
2752
|
ge.current = { columnVisibility: r, updateColumnVisibility: n };
|
|
2752
2753
|
const Oe = H(null);
|
|
2753
|
-
|
|
2754
|
+
Y(() => {
|
|
2754
2755
|
if (!t || Oe.current === t || !e.some((K) => K.value === t)) return;
|
|
2755
2756
|
Oe.current = t;
|
|
2756
2757
|
const { columnVisibility: E, updateColumnVisibility: _ } = ge.current;
|
|
2757
2758
|
ie(E, t, d) || _({ ...E, [t]: !0 });
|
|
2758
|
-
}, [t, e, d]),
|
|
2759
|
+
}, [t, e, d]), Y(() => {
|
|
2759
2760
|
!ye.current || !t || ye.current.querySelector(`#column-settings-${t}`)?.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
2760
2761
|
}, [t, r]);
|
|
2761
2762
|
const at = Pt(
|
|
@@ -2764,58 +2765,58 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2764
2765
|
distance: 5
|
|
2765
2766
|
}
|
|
2766
2767
|
})
|
|
2767
|
-
), ze = I, Se = (E) => !R(E), { visibleColumns: he, pinnedColumns: de } =
|
|
2768
|
+
), ze = I, Se = (E) => !R(E), { visibleColumns: he, pinnedColumns: de } = Z(() => {
|
|
2768
2769
|
const E = e.filter(
|
|
2769
|
-
(
|
|
2770
|
-
), _ = E.filter((
|
|
2770
|
+
(Q) => ie(ze, Q.value, d)
|
|
2771
|
+
), _ = E.filter((Q) => s.left?.includes(Q.value));
|
|
2771
2772
|
return {
|
|
2772
|
-
visibleColumns: E.filter((
|
|
2773
|
+
visibleColumns: E.filter((Q) => !s.left?.includes(Q.value)),
|
|
2773
2774
|
pinnedColumns: _
|
|
2774
2775
|
};
|
|
2775
|
-
}, [e, ze, s, d]), ae =
|
|
2776
|
+
}, [e, ze, s, d]), ae = Z(() => {
|
|
2776
2777
|
const E = [...he];
|
|
2777
2778
|
return a.length > 0 && E.sort((_, K) => {
|
|
2778
|
-
const
|
|
2779
|
-
return
|
|
2779
|
+
const Q = a.indexOf(_.value), le = a.indexOf(K.value);
|
|
2780
|
+
return Q === -1 ? 1 : le === -1 ? -1 : Q - le;
|
|
2780
2781
|
}), E;
|
|
2781
|
-
}, [he, a]), Ie =
|
|
2782
|
+
}, [he, a]), Ie = Z(() => {
|
|
2782
2783
|
const E = [...de];
|
|
2783
2784
|
return a.length > 0 && E.sort((_, K) => {
|
|
2784
|
-
const
|
|
2785
|
-
return
|
|
2785
|
+
const Q = a.indexOf(_.value), le = a.indexOf(K.value);
|
|
2786
|
+
return Q === -1 ? 1 : le === -1 ? -1 : Q - le;
|
|
2786
2787
|
}), E;
|
|
2787
|
-
}, [de, a]), D =
|
|
2788
|
+
}, [de, a]), D = Z(
|
|
2788
2789
|
() => ae.map((E) => E.value),
|
|
2789
2790
|
[ae]
|
|
2790
|
-
),
|
|
2791
|
+
), X = Z(
|
|
2791
2792
|
() => Ie.map((E) => E.value),
|
|
2792
2793
|
[Ie]
|
|
2793
|
-
),
|
|
2794
|
+
), be = Z(() => {
|
|
2794
2795
|
if (typeof C != "string") return [];
|
|
2795
2796
|
const E = C.toLowerCase().split(/\s+/).filter(Boolean);
|
|
2796
2797
|
return e.map((_) => ({ ..._, path: Vo(_, k) })).filter((_) => {
|
|
2797
2798
|
const K = [_.path, Uo(_)].filter(Boolean).join(" / ").toLowerCase();
|
|
2798
|
-
return E.every((
|
|
2799
|
+
return E.every((Q) => K.includes(Q));
|
|
2799
2800
|
}).toSorted((_, K) => +!!_.path - +!!K.path);
|
|
2800
|
-
}, [e, C, k]), Ee =
|
|
2801
|
+
}, [e, C, k]), Ee = Z(
|
|
2801
2802
|
() => Fo({
|
|
2802
2803
|
columns: e,
|
|
2803
2804
|
onToggle: re,
|
|
2804
2805
|
isColumnVisible: R,
|
|
2805
2806
|
onPaintStart: $,
|
|
2806
|
-
onPaintEnter:
|
|
2807
|
+
onPaintEnter: W,
|
|
2807
2808
|
scopes: k
|
|
2808
2809
|
}),
|
|
2809
|
-
[e, A, re, $,
|
|
2810
|
+
[e, A, re, $, W, k]
|
|
2810
2811
|
), Te = w ?? Ee, Ot = typeof C == "string" ? /* @__PURE__ */ o(
|
|
2811
|
-
|
|
2812
|
+
Na,
|
|
2812
2813
|
{
|
|
2813
2814
|
value: C,
|
|
2814
2815
|
onChange: (E) => N?.(E),
|
|
2815
2816
|
onClose: () => N?.(null)
|
|
2816
2817
|
}
|
|
2817
2818
|
) : /* @__PURE__ */ o(
|
|
2818
|
-
|
|
2819
|
+
Ta,
|
|
2819
2820
|
{
|
|
2820
2821
|
variant: "text",
|
|
2821
2822
|
icon: "add",
|
|
@@ -2828,7 +2829,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2828
2829
|
columnVisibility: { ...r },
|
|
2829
2830
|
columnOrder: [...a],
|
|
2830
2831
|
columnPinning: { ...s },
|
|
2831
|
-
columnSizing: { ...
|
|
2832
|
+
columnSizing: { ...f },
|
|
2832
2833
|
columnSummaries: y,
|
|
2833
2834
|
columnSummaryScopes: v,
|
|
2834
2835
|
columnSummaryFormats: x,
|
|
@@ -2856,25 +2857,25 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2856
2857
|
}, Ko = (E) => {
|
|
2857
2858
|
const _ = E.active.id;
|
|
2858
2859
|
P(_), T(s.left?.includes(_) || !1), ne();
|
|
2859
|
-
},
|
|
2860
|
+
}, qo = (E) => {
|
|
2860
2861
|
const { active: _, over: K } = E;
|
|
2861
2862
|
if (K && _.id !== K.id) {
|
|
2862
|
-
const
|
|
2863
|
+
const Q = ie(
|
|
2863
2864
|
r,
|
|
2864
2865
|
K.id,
|
|
2865
2866
|
d
|
|
2866
2867
|
), le = s.left?.includes(K.id) || !1;
|
|
2867
|
-
L(
|
|
2868
|
+
L(Q && le), M(Q && !le);
|
|
2868
2869
|
} else
|
|
2869
2870
|
M(!1);
|
|
2870
|
-
},
|
|
2871
|
+
}, Go = (E) => {
|
|
2871
2872
|
L(!1), T(!1), M(!1);
|
|
2872
2873
|
const { active: _, over: K } = E;
|
|
2873
2874
|
if (K && _.id !== K.id) {
|
|
2874
|
-
const
|
|
2875
|
+
const Q = [...he, ...de].find(
|
|
2875
2876
|
(ue) => ue.value === _.id
|
|
2876
2877
|
), le = [...he, ...de].find((ue) => ue.value === K.id);
|
|
2877
|
-
if (
|
|
2878
|
+
if (Q && le) {
|
|
2878
2879
|
const ue = _.id, st = K.id, Yo = ie(
|
|
2879
2880
|
r,
|
|
2880
2881
|
ue,
|
|
@@ -2887,7 +2888,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2887
2888
|
if (Yo && Wo) {
|
|
2888
2889
|
let Pe = [...Ne.columnPinning.left || []];
|
|
2889
2890
|
lt !== ct && (lt && !ct ? Pe = Pe.filter((ut) => ut !== ue) : !lt && ct && (Pe = [...Pe, ue]));
|
|
2890
|
-
const dt = [...
|
|
2891
|
+
const dt = [...X, ...D], Mt = dt.indexOf(ue), $t = dt.indexOf(st);
|
|
2891
2892
|
if (Mt === -1 || $t === -1) {
|
|
2892
2893
|
console.error("Invalid column order state"), xr.error("Invalid column order state");
|
|
2893
2894
|
return;
|
|
@@ -2905,9 +2906,9 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2905
2906
|
return typeof C == "string" ? /* @__PURE__ */ S(ro, { ref: ye, "data-column-drag-origin": !0, children: [
|
|
2906
2907
|
Ot,
|
|
2907
2908
|
/* @__PURE__ */ o(It, { menuId: He, menuItems: Te }),
|
|
2908
|
-
/* @__PURE__ */ S(
|
|
2909
|
+
/* @__PURE__ */ S(ft, { children: [
|
|
2909
2910
|
/* @__PURE__ */ o(vt, { children: "All Columns" }),
|
|
2910
|
-
/* @__PURE__ */ o(
|
|
2911
|
+
/* @__PURE__ */ o(bt, { children: be.map((E) => /* @__PURE__ */ o(
|
|
2911
2912
|
St,
|
|
2912
2913
|
{
|
|
2913
2914
|
id: `column-settings-${E.value}`,
|
|
@@ -2920,8 +2921,8 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2920
2921
|
onTogglePinning: it,
|
|
2921
2922
|
onToggleVisibility: re,
|
|
2922
2923
|
onPaintStart: $,
|
|
2923
|
-
onPaintEnter:
|
|
2924
|
-
onDragStart: (_) =>
|
|
2924
|
+
onPaintEnter: W,
|
|
2925
|
+
onDragStart: (_) => b?.(E, _)
|
|
2925
2926
|
},
|
|
2926
2927
|
E.value
|
|
2927
2928
|
)) })
|
|
@@ -2932,19 +2933,19 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2932
2933
|
sensors: at,
|
|
2933
2934
|
collisionDetection: Qe,
|
|
2934
2935
|
onDragStart: Ko,
|
|
2935
|
-
onDragOver:
|
|
2936
|
-
onDragEnd:
|
|
2936
|
+
onDragOver: qo,
|
|
2937
|
+
onDragEnd: Go,
|
|
2937
2938
|
children: /* @__PURE__ */ S(ro, { ref: ye, "data-column-drag-origin": !0, children: [
|
|
2938
2939
|
Ot,
|
|
2939
2940
|
/* @__PURE__ */ o(It, { menuId: He, menuItems: Te }),
|
|
2940
|
-
de.length > 0 && /* @__PURE__ */ S(
|
|
2941
|
+
de.length > 0 && /* @__PURE__ */ S(ft, { className: V && !j ? "drop-target" : "", children: [
|
|
2941
2942
|
/* @__PURE__ */ o(vt, { children: "Pinned Columns" }),
|
|
2942
2943
|
/* @__PURE__ */ o(
|
|
2943
2944
|
Le,
|
|
2944
2945
|
{
|
|
2945
2946
|
items: Ie.map((E) => E.value),
|
|
2946
2947
|
strategy: Re,
|
|
2947
|
-
children: /* @__PURE__ */ o(
|
|
2948
|
+
children: /* @__PURE__ */ o(bt, { children: Ie.map((E) => /* @__PURE__ */ o(
|
|
2948
2949
|
oo,
|
|
2949
2950
|
{
|
|
2950
2951
|
id: E.value,
|
|
@@ -2956,22 +2957,22 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2956
2957
|
onTogglePinning: it,
|
|
2957
2958
|
onToggleVisibility: re,
|
|
2958
2959
|
onPaintStart: $,
|
|
2959
|
-
onPaintEnter:
|
|
2960
|
-
onDragStart: (_) =>
|
|
2960
|
+
onPaintEnter: W,
|
|
2961
|
+
onDragStart: (_) => b?.(E, _)
|
|
2961
2962
|
},
|
|
2962
2963
|
E.value
|
|
2963
2964
|
)) })
|
|
2964
2965
|
}
|
|
2965
2966
|
)
|
|
2966
2967
|
] }),
|
|
2967
|
-
/* @__PURE__ */ S(
|
|
2968
|
+
/* @__PURE__ */ S(ft, { className: j && F ? "drop-target" : "", children: [
|
|
2968
2969
|
/* @__PURE__ */ o(vt, { children: "Visible Columns" }),
|
|
2969
2970
|
/* @__PURE__ */ o(
|
|
2970
2971
|
Le,
|
|
2971
2972
|
{
|
|
2972
2973
|
items: ae.map((E) => E.value),
|
|
2973
2974
|
strategy: Re,
|
|
2974
|
-
children: /* @__PURE__ */ o(
|
|
2975
|
+
children: /* @__PURE__ */ o(bt, { children: ae.map((E) => /* @__PURE__ */ o(
|
|
2975
2976
|
oo,
|
|
2976
2977
|
{
|
|
2977
2978
|
id: E.value,
|
|
@@ -2983,8 +2984,8 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
2983
2984
|
onTogglePinning: it,
|
|
2984
2985
|
onToggleVisibility: re,
|
|
2985
2986
|
onPaintStart: $,
|
|
2986
|
-
onPaintEnter:
|
|
2987
|
-
onDragStart: (_) =>
|
|
2987
|
+
onPaintEnter: W,
|
|
2988
|
+
onDragStart: (_) => b?.(E, _)
|
|
2988
2989
|
},
|
|
2989
2990
|
E.value
|
|
2990
2991
|
)) })
|
|
@@ -3008,7 +3009,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3008
3009
|
display: flex;
|
|
3009
3010
|
flex-direction: column;
|
|
3010
3011
|
gap: var(--base-gap-large);
|
|
3011
|
-
`,
|
|
3012
|
+
`, ft = u.section`
|
|
3012
3013
|
position: relative;
|
|
3013
3014
|
display: flex;
|
|
3014
3015
|
flex-direction: column;
|
|
@@ -3024,15 +3025,15 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3024
3025
|
font-weight: 500;
|
|
3025
3026
|
color: var(--md-sys-color-outline);
|
|
3026
3027
|
padding: 4px 0;
|
|
3027
|
-
`,
|
|
3028
|
+
`, Ta = u(B)`
|
|
3028
3029
|
justify-content: flex-start;
|
|
3029
|
-
`,
|
|
3030
|
+
`, Na = u(Rr)`
|
|
3030
3031
|
padding: 0;
|
|
3031
3032
|
|
|
3032
3033
|
input {
|
|
3033
3034
|
height: 32px;
|
|
3034
3035
|
}
|
|
3035
|
-
`,
|
|
3036
|
+
`, Pa = (e) => {
|
|
3036
3037
|
const {
|
|
3037
3038
|
columnVisibility: t,
|
|
3038
3039
|
defaultColumnVisibility: r,
|
|
@@ -3041,7 +3042,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3041
3042
|
updateColumnPinning: i,
|
|
3042
3043
|
columnOrder: a,
|
|
3043
3044
|
setColumnsConfig: h,
|
|
3044
|
-
columnSizing:
|
|
3045
|
+
columnSizing: f,
|
|
3045
3046
|
groupBy: c,
|
|
3046
3047
|
groupByConfig: l,
|
|
3047
3048
|
sorting: p,
|
|
@@ -3051,7 +3052,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3051
3052
|
columnSummaryFormats: x
|
|
3052
3053
|
} = Ce();
|
|
3053
3054
|
return /* @__PURE__ */ o(
|
|
3054
|
-
|
|
3055
|
+
Ea,
|
|
3055
3056
|
{
|
|
3056
3057
|
...e,
|
|
3057
3058
|
columnVisibility: t,
|
|
@@ -3061,7 +3062,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3061
3062
|
updateColumnPinning: i,
|
|
3062
3063
|
columnOrder: a,
|
|
3063
3064
|
setColumnsConfig: h,
|
|
3064
|
-
columnSizing:
|
|
3065
|
+
columnSizing: f,
|
|
3065
3066
|
groupBy: c,
|
|
3066
3067
|
groupByConfig: l,
|
|
3067
3068
|
sorting: p,
|
|
@@ -3071,16 +3072,16 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3071
3072
|
columnSummaryFormats: x
|
|
3072
3073
|
}
|
|
3073
3074
|
);
|
|
3074
|
-
},
|
|
3075
|
+
}, Aa = u.div`
|
|
3075
3076
|
padding: var(--padding-m);
|
|
3076
3077
|
display: flex;
|
|
3077
3078
|
flex-direction: column;
|
|
3078
3079
|
gap: 12px;
|
|
3079
|
-
`,
|
|
3080
|
+
`, _a = u.div`
|
|
3080
3081
|
display: flex;
|
|
3081
3082
|
align-items: center;
|
|
3082
3083
|
gap: 12px;
|
|
3083
|
-
`,
|
|
3084
|
+
`, Da = u.input`
|
|
3084
3085
|
flex: 1;
|
|
3085
3086
|
height: 4px;
|
|
3086
3087
|
border-radius: 2px;
|
|
@@ -3121,11 +3122,11 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3121
3122
|
&:hover::-moz-range-thumb {
|
|
3122
3123
|
background: var(--md-sys-color-primary-container);
|
|
3123
3124
|
}
|
|
3124
|
-
`,
|
|
3125
|
+
`, La = u.span`
|
|
3125
3126
|
color: var(--md-sys-color-on-surface-variant);
|
|
3126
3127
|
min-width: 40px;
|
|
3127
3128
|
text-align: right;
|
|
3128
|
-
`,
|
|
3129
|
+
`, Ra = ({
|
|
3129
3130
|
value: e,
|
|
3130
3131
|
onChange: t,
|
|
3131
3132
|
onChangeComplete: r,
|
|
@@ -3134,29 +3135,29 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3134
3135
|
min: i = 24,
|
|
3135
3136
|
max: a = 200,
|
|
3136
3137
|
step: h = 2,
|
|
3137
|
-
debounceMs:
|
|
3138
|
+
debounceMs: f = 25
|
|
3138
3139
|
}) => {
|
|
3139
3140
|
const [c, l] = U(!1), [p, d] = U(e), [y, v] = U(!1);
|
|
3140
|
-
|
|
3141
|
+
Y(() => {
|
|
3141
3142
|
!c && !y && d(e);
|
|
3142
3143
|
}, [e, c, y]);
|
|
3143
|
-
const x =
|
|
3144
|
+
const x = te((k) => {
|
|
3144
3145
|
const C = parseInt(k.target.value, 10);
|
|
3145
3146
|
v(!0), d(C);
|
|
3146
|
-
}, []), g = zr(p,
|
|
3147
|
-
|
|
3147
|
+
}, []), g = zr(p, f);
|
|
3148
|
+
Y(() => {
|
|
3148
3149
|
y && t(p);
|
|
3149
3150
|
}, [g, t, y, p]);
|
|
3150
|
-
const w =
|
|
3151
|
+
const w = te(() => {
|
|
3151
3152
|
l(!0);
|
|
3152
|
-
}, []),
|
|
3153
|
+
}, []), b = te(() => {
|
|
3153
3154
|
l(!1), v(!1), r && r(p);
|
|
3154
3155
|
}, [p, r]), m = (p - i) / (a - i) * 100;
|
|
3155
|
-
return /* @__PURE__ */ S(
|
|
3156
|
+
return /* @__PURE__ */ S(Aa, { children: [
|
|
3156
3157
|
/* @__PURE__ */ o("label", { htmlFor: s, children: n }),
|
|
3157
|
-
/* @__PURE__ */ S(
|
|
3158
|
+
/* @__PURE__ */ S(_a, { children: [
|
|
3158
3159
|
/* @__PURE__ */ o(
|
|
3159
|
-
|
|
3160
|
+
Da,
|
|
3160
3161
|
{
|
|
3161
3162
|
id: s,
|
|
3162
3163
|
type: "range",
|
|
@@ -3166,19 +3167,19 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3166
3167
|
value: p,
|
|
3167
3168
|
onChange: x,
|
|
3168
3169
|
onMouseDown: w,
|
|
3169
|
-
onMouseUp:
|
|
3170
|
+
onMouseUp: b,
|
|
3170
3171
|
style: {
|
|
3171
3172
|
background: `linear-gradient(to right, var(--md-sys-color-primary) 0%, var(--md-sys-color-primary) ${m}%, var(--md-sys-color-outline-variant) ${m}%, var(--md-sys-color-outline-variant) 100%)`
|
|
3172
3173
|
}
|
|
3173
3174
|
}
|
|
3174
3175
|
),
|
|
3175
|
-
/* @__PURE__ */ o(
|
|
3176
|
+
/* @__PURE__ */ o(La, { children: p })
|
|
3176
3177
|
] })
|
|
3177
3178
|
] });
|
|
3178
|
-
}, ke = "hierarchy", yt = "folder", no = "name",
|
|
3179
|
+
}, ke = "hierarchy", yt = "folder", no = "name", Oa = ({ scope: e }) => {
|
|
3179
3180
|
const { groupBy: t, groupByConfig: r, updateGroupBy: n, updateGroupByConfig: s, sorting: i, updateSorting: a } = Ce(), {
|
|
3180
3181
|
modules: h,
|
|
3181
|
-
showHierarchy:
|
|
3182
|
+
showHierarchy: f,
|
|
3182
3183
|
updateShowHierarchy: c,
|
|
3183
3184
|
hierarchyOptions: l,
|
|
3184
3185
|
hierarchyActive: p
|
|
@@ -3187,10 +3188,10 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3187
3188
|
const { GroupSettings: y, requiredVersion: v } = h || {}, x = !!c, w = x ? [...l || [
|
|
3188
3189
|
{ value: ke, label: "Hierarchy", icon: "account_tree" },
|
|
3189
3190
|
{ value: "folder", label: "Folder", icon: "folder" }
|
|
3190
|
-
], ...d] : d,
|
|
3191
|
+
], ...d] : d, b = p ?? f, m = t ?? (x && b ? { id: ke, desc: !1 } : void 0), k = i?.[0]?.id === no ? !!i[0].desc : !1, C = m?.id === yt || m?.id === ke ? { ...m, desc: k } : m, N = te(
|
|
3191
3192
|
(P) => {
|
|
3192
3193
|
if (P?.id === ke || P?.id === yt) {
|
|
3193
|
-
if (P.id === ke ?
|
|
3194
|
+
if (P.id === ke ? b : t?.id === yt) {
|
|
3194
3195
|
P.desc !== k && a([{ id: no, desc: !!P.desc }]);
|
|
3195
3196
|
return;
|
|
3196
3197
|
}
|
|
@@ -3203,7 +3204,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3203
3204
|
}
|
|
3204
3205
|
n(P);
|
|
3205
3206
|
},
|
|
3206
|
-
[n, c, a, t, k,
|
|
3207
|
+
[n, c, a, t, k, b]
|
|
3207
3208
|
);
|
|
3208
3209
|
return {
|
|
3209
3210
|
id: "group-by",
|
|
@@ -3222,7 +3223,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3222
3223
|
}
|
|
3223
3224
|
)
|
|
3224
3225
|
};
|
|
3225
|
-
},
|
|
3226
|
+
}, za = u.div`
|
|
3226
3227
|
display: flex;
|
|
3227
3228
|
flex-direction: column;
|
|
3228
3229
|
gap: var(--base-gap-large);
|
|
@@ -3240,10 +3241,10 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3240
3241
|
list-style-type: none;
|
|
3241
3242
|
margin: 0;
|
|
3242
3243
|
padding: 0;
|
|
3243
|
-
`,
|
|
3244
|
+
`, Ma = u.span`
|
|
3244
3245
|
color: var(--md-sys-color-outline);
|
|
3245
3246
|
padding: 4px 0;
|
|
3246
|
-
`,
|
|
3247
|
+
`, $a = u(nt)`
|
|
3247
3248
|
.drag-handle {
|
|
3248
3249
|
cursor: grab;
|
|
3249
3250
|
height: 20px;
|
|
@@ -3259,25 +3260,25 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3259
3260
|
cursor: grabbing;
|
|
3260
3261
|
}
|
|
3261
3262
|
}
|
|
3262
|
-
`,
|
|
3263
|
+
`, Fa = u(nt)`
|
|
3263
3264
|
cursor: pointer;
|
|
3264
3265
|
|
|
3265
3266
|
.action {
|
|
3266
3267
|
color: var(--md-sys-color-outline);
|
|
3267
3268
|
}
|
|
3268
|
-
`,
|
|
3269
|
-
const { attributes: s, listeners: i, setNodeRef: a, transform: h, transition:
|
|
3269
|
+
`, Ba = ({ item: e, desc: t, onToggleDirection: r, onRemove: n }) => {
|
|
3270
|
+
const { attributes: s, listeners: i, setNodeRef: a, transform: h, transition: f, isDragging: c } = Ze({
|
|
3270
3271
|
id: e.value
|
|
3271
3272
|
});
|
|
3272
3273
|
return /* @__PURE__ */ o(
|
|
3273
|
-
|
|
3274
|
+
$a,
|
|
3274
3275
|
{
|
|
3275
3276
|
ref: a,
|
|
3276
3277
|
item: e,
|
|
3277
3278
|
"data-sort-id": e.value,
|
|
3278
3279
|
className: c ? "dragging" : void 0,
|
|
3279
|
-
style: { transform:
|
|
3280
|
-
startContent: /* @__PURE__ */ o("div", { ...s, ...i, className: "drag-handle", children: /* @__PURE__ */ o(
|
|
3280
|
+
style: { transform: Je.Translate.toString(h), transition: f },
|
|
3281
|
+
startContent: /* @__PURE__ */ o("div", { ...s, ...i, className: "drag-handle", children: /* @__PURE__ */ o(q, { icon: "drag_indicator" }) }),
|
|
3281
3282
|
actions: [
|
|
3282
3283
|
{
|
|
3283
3284
|
icon: t ? "arrow_downward" : "arrow_upward",
|
|
@@ -3292,7 +3293,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3292
3293
|
]
|
|
3293
3294
|
}
|
|
3294
3295
|
);
|
|
3295
|
-
},
|
|
3296
|
+
}, Va = ({
|
|
3296
3297
|
sorting: e,
|
|
3297
3298
|
options: t,
|
|
3298
3299
|
onChange: r,
|
|
@@ -3306,12 +3307,12 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3306
3307
|
})
|
|
3307
3308
|
), i = (d) => t.find((y) => y.value === d) ?? { value: d, label: d }, a = t.filter(
|
|
3308
3309
|
(d) => !e.some((y) => y.id === d.value)
|
|
3309
|
-
), h = e.length < n,
|
|
3310
|
+
), h = e.length < n, f = ({ active: d, over: y }) => {
|
|
3310
3311
|
if (!y || d.id === y.id) return;
|
|
3311
3312
|
const v = e.findIndex((g) => g.id === d.id), x = e.findIndex((g) => g.id === y.id);
|
|
3312
3313
|
v === -1 || x === -1 || r(Dt(e, v, x));
|
|
3313
3314
|
}, c = (d) => r(e.map((y) => y.id === d ? { ...y, desc: !y.desc } : y)), l = (d) => r(e.filter((y) => y.id !== d)), p = (d) => r([...e, { id: d, desc: !1 }]);
|
|
3314
|
-
return /* @__PURE__ */ S(
|
|
3315
|
+
return /* @__PURE__ */ S(za, { className: "sort-settings", children: [
|
|
3315
3316
|
e.length > 0 && /* @__PURE__ */ S(ao, { className: "sorted", children: [
|
|
3316
3317
|
/* @__PURE__ */ o(io, { children: "Sorted by" }),
|
|
3317
3318
|
/* @__PURE__ */ o(
|
|
@@ -3319,14 +3320,14 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3319
3320
|
{
|
|
3320
3321
|
sensors: s,
|
|
3321
3322
|
collisionDetection: Qe,
|
|
3322
|
-
onDragEnd:
|
|
3323
|
+
onDragEnd: f,
|
|
3323
3324
|
children: /* @__PURE__ */ o(
|
|
3324
3325
|
Le,
|
|
3325
3326
|
{
|
|
3326
3327
|
items: e.map((d) => d.id),
|
|
3327
3328
|
strategy: Re,
|
|
3328
3329
|
children: /* @__PURE__ */ o(so, { children: e.map((d) => /* @__PURE__ */ o(
|
|
3329
|
-
|
|
3330
|
+
Ba,
|
|
3330
3331
|
{
|
|
3331
3332
|
item: i(d.id),
|
|
3332
3333
|
desc: d.desc,
|
|
@@ -3343,7 +3344,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3343
3344
|
/* @__PURE__ */ S(ao, { className: "available", children: [
|
|
3344
3345
|
/* @__PURE__ */ o(io, { children: e.length > 0 ? "Then sort by" : "Sort by" }),
|
|
3345
3346
|
h ? /* @__PURE__ */ o(so, { children: a.map((d) => /* @__PURE__ */ o(
|
|
3346
|
-
|
|
3347
|
+
Fa,
|
|
3347
3348
|
{
|
|
3348
3349
|
item: d,
|
|
3349
3350
|
"data-sort-id": d.value,
|
|
@@ -3351,14 +3352,14 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3351
3352
|
actions: [{ icon: "add" }]
|
|
3352
3353
|
},
|
|
3353
3354
|
d.value
|
|
3354
|
-
)) }) : /* @__PURE__ */ S(
|
|
3355
|
+
)) }) : /* @__PURE__ */ S(Ma, { children: [
|
|
3355
3356
|
"Sorting is limited to ",
|
|
3356
3357
|
n,
|
|
3357
3358
|
" columns."
|
|
3358
3359
|
] })
|
|
3359
3360
|
] })
|
|
3360
3361
|
] });
|
|
3361
|
-
},
|
|
3362
|
+
}, Ua = (e = []) => {
|
|
3362
3363
|
const { sorting: t, updateSorting: r } = Ce(), { attribFields: n, scopes: s } = ot(), i = [
|
|
3363
3364
|
...Sr(s, e).map((l) => ({
|
|
3364
3365
|
value: l.id,
|
|
@@ -3370,35 +3371,35 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3370
3371
|
value: `attrib_${l.name}`,
|
|
3371
3372
|
label: l.data.title || l.name
|
|
3372
3373
|
}))
|
|
3373
|
-
].map((l) => ({ ...l, icon:
|
|
3374
|
+
].map((l) => ({ ...l, icon: G(l.value) })), a = new Set(i.map((l) => l.value)), h = [
|
|
3374
3375
|
...i,
|
|
3375
3376
|
...t.filter((l) => !a.has(l.id)).map((l) => ({
|
|
3376
3377
|
value: l.id,
|
|
3377
3378
|
label: e.find((p) => p.value === l.id)?.label ?? l.id,
|
|
3378
|
-
icon:
|
|
3379
|
+
icon: G(l.id)
|
|
3379
3380
|
}))
|
|
3380
|
-
],
|
|
3381
|
+
], f = (l) => h.find((p) => p.value === l)?.label ?? l;
|
|
3381
3382
|
return {
|
|
3382
3383
|
id: "sort-by",
|
|
3383
3384
|
title: "Sort",
|
|
3384
3385
|
icon: "sort",
|
|
3385
|
-
preview: t.length ?
|
|
3386
|
-
component: /* @__PURE__ */ o(
|
|
3386
|
+
preview: t.length ? f(t[0].id) + (t.length > 1 ? ` +${t.length - 1}` : "") : "None",
|
|
3387
|
+
component: /* @__PURE__ */ o(Va, { sorting: t, options: h, onChange: r })
|
|
3387
3388
|
};
|
|
3388
|
-
}, Rt = [Br, Vr], lo = 5,
|
|
3389
|
+
}, Rt = [Br, Vr], lo = 5, Ha = `#${Lr}, [data-column-drag-origin]`, ja = (e, t) => {
|
|
3389
3390
|
const n = document.querySelector(`[${So}]`)?.getBoundingClientRect();
|
|
3390
3391
|
if (!n || e < n.left || e > n.right || t < n.top || t > n.bottom) return;
|
|
3391
3392
|
const s = Array.from(document.querySelectorAll(Io)).filter(
|
|
3392
3393
|
(h) => !Rt.includes(h.dataset.columnId || "")
|
|
3393
3394
|
), i = s.find((h) => {
|
|
3394
|
-
const
|
|
3395
|
-
return e >=
|
|
3395
|
+
const f = h.getBoundingClientRect();
|
|
3396
|
+
return e >= f.left && e < f.right;
|
|
3396
3397
|
});
|
|
3397
3398
|
if (i || !s.length) return i;
|
|
3398
3399
|
const a = s[s.length - 1];
|
|
3399
3400
|
return e >= a.getBoundingClientRect().right ? a : s[0];
|
|
3400
3401
|
}, co = (e, t) => {
|
|
3401
|
-
const r = document.elementsFromPoint(e, t).map((a) => a.closest?.(Io)).find(Boolean) ??
|
|
3402
|
+
const r = document.elementsFromPoint(e, t).map((a) => a.closest?.(Io)).find(Boolean) ?? ja(e, t), n = r?.dataset.columnId;
|
|
3402
3403
|
if (!r || !n || Rt.includes(n)) return null;
|
|
3403
3404
|
const s = r.getBoundingClientRect(), i = e < s.left + s.width / 2 ? "left" : "right";
|
|
3404
3405
|
return {
|
|
@@ -3406,10 +3407,10 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3406
3407
|
side: i,
|
|
3407
3408
|
line: $r(r, i)
|
|
3408
3409
|
};
|
|
3409
|
-
},
|
|
3410
|
+
}, Ka = (e, t) => {
|
|
3410
3411
|
const r = e.length ? e : t;
|
|
3411
3412
|
return [...r, ...t.filter((n) => !r.includes(n))];
|
|
3412
|
-
},
|
|
3413
|
+
}, qa = () => {
|
|
3413
3414
|
const {
|
|
3414
3415
|
columnVisibility: e,
|
|
3415
3416
|
columnOrder: t,
|
|
@@ -3419,14 +3420,14 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3419
3420
|
columnSummaryScopes: i,
|
|
3420
3421
|
columnSummaryFormats: a,
|
|
3421
3422
|
groupBy: h,
|
|
3422
|
-
groupByConfig:
|
|
3423
|
+
groupByConfig: f,
|
|
3423
3424
|
sorting: c,
|
|
3424
3425
|
rowHeight: l,
|
|
3425
3426
|
setColumnsConfig: p,
|
|
3426
3427
|
getAllColumns: d
|
|
3427
3428
|
} = Ce(), { setMenuOpen: y } = tt(), [v, x] = U(null), g = H(null), w = H(null);
|
|
3428
3429
|
w.current = v;
|
|
3429
|
-
const
|
|
3430
|
+
const b = H({
|
|
3430
3431
|
columnVisibility: e,
|
|
3431
3432
|
columnOrder: t,
|
|
3432
3433
|
columnPinning: r,
|
|
@@ -3435,13 +3436,13 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3435
3436
|
columnSummaryScopes: i,
|
|
3436
3437
|
columnSummaryFormats: a,
|
|
3437
3438
|
groupBy: h,
|
|
3438
|
-
groupByConfig:
|
|
3439
|
+
groupByConfig: f,
|
|
3439
3440
|
sorting: c,
|
|
3440
3441
|
rowHeight: l,
|
|
3441
3442
|
setColumnsConfig: p,
|
|
3442
3443
|
getAllColumns: d
|
|
3443
3444
|
});
|
|
3444
|
-
|
|
3445
|
+
b.current = {
|
|
3445
3446
|
columnVisibility: e,
|
|
3446
3447
|
columnOrder: t,
|
|
3447
3448
|
columnPinning: r,
|
|
@@ -3450,14 +3451,14 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3450
3451
|
columnSummaryScopes: i,
|
|
3451
3452
|
columnSummaryFormats: a,
|
|
3452
3453
|
groupBy: h,
|
|
3453
|
-
groupByConfig:
|
|
3454
|
+
groupByConfig: f,
|
|
3454
3455
|
sorting: c,
|
|
3455
3456
|
rowHeight: l,
|
|
3456
3457
|
setColumnsConfig: p,
|
|
3457
3458
|
getAllColumns: d
|
|
3458
3459
|
};
|
|
3459
|
-
const m =
|
|
3460
|
-
const L =
|
|
3460
|
+
const m = te((P, V) => {
|
|
3461
|
+
const L = b.current, j = Ka(L.columnOrder, L.getAllColumns()).filter(
|
|
3461
3462
|
(I) => I !== P && !Rt.includes(I)
|
|
3462
3463
|
), T = j.indexOf(V.columnId), F = T === -1 ? j.length : T + (V.side === "left" ? 0 : 1), M = [...j.slice(0, F), P, ...j.slice(F)], O = new Set(L.columnPinning.left || []);
|
|
3463
3464
|
O.has(V.columnId) ? O.add(P) : O.delete(P), L.setColumnsConfig({
|
|
@@ -3473,15 +3474,15 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3473
3474
|
sorting: L.sorting,
|
|
3474
3475
|
rowHeight: L.rowHeight
|
|
3475
3476
|
});
|
|
3476
|
-
}, []), k =
|
|
3477
|
+
}, []), k = te(() => {
|
|
3477
3478
|
g.current = null, w.current && x(null);
|
|
3478
|
-
}, []), C =
|
|
3479
|
+
}, []), C = te((P, V) => {
|
|
3479
3480
|
const L = V.currentTarget, j = L.getBoundingClientRect();
|
|
3480
3481
|
g.current = {
|
|
3481
3482
|
column: P,
|
|
3482
3483
|
x: V.clientX,
|
|
3483
3484
|
y: V.clientY,
|
|
3484
|
-
origin: L.closest(
|
|
3485
|
+
origin: L.closest(Ha),
|
|
3485
3486
|
immediate: !!V.target.closest?.(".hover-swap"),
|
|
3486
3487
|
grab: {
|
|
3487
3488
|
x: V.clientX - j.left,
|
|
@@ -3490,7 +3491,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3490
3491
|
}
|
|
3491
3492
|
};
|
|
3492
3493
|
}, []);
|
|
3493
|
-
|
|
3494
|
+
Y(() => {
|
|
3494
3495
|
const P = (T, F, M) => !!M && document.elementsFromPoint(T, F).some((O) => M.contains(O)), V = (T) => {
|
|
3495
3496
|
const { clientX: F, clientY: M } = T;
|
|
3496
3497
|
if (w.current) {
|
|
@@ -3503,7 +3504,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3503
3504
|
O && (Math.abs(F - O.x) < lo && Math.abs(M - O.y) < lo || !O.immediate && P(F, M, O.origin) || x({ column: O.column, x: F, y: M, grab: O.grab, target: co(F, M) }));
|
|
3504
3505
|
}, L = () => {
|
|
3505
3506
|
const T = w.current;
|
|
3506
|
-
g.current = null, T && (
|
|
3507
|
+
g.current = null, T && (Ya(), T.target && (m(T.column.value, T.target), y(!1)), x(null));
|
|
3507
3508
|
}, j = (T) => {
|
|
3508
3509
|
T.key === "Escape" && k();
|
|
3509
3510
|
};
|
|
@@ -3514,7 +3515,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3514
3515
|
const N = v ? document.querySelector(`[${So}]`)?.getBoundingClientRect() : void 0, z = v ? ho(
|
|
3515
3516
|
/* @__PURE__ */ S(pe, { children: [
|
|
3516
3517
|
N && /* @__PURE__ */ o(
|
|
3517
|
-
|
|
3518
|
+
Wa,
|
|
3518
3519
|
{
|
|
3519
3520
|
style: {
|
|
3520
3521
|
left: N.left,
|
|
@@ -3525,7 +3526,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3525
3526
|
}
|
|
3526
3527
|
),
|
|
3527
3528
|
/* @__PURE__ */ S(
|
|
3528
|
-
|
|
3529
|
+
Xa,
|
|
3529
3530
|
{
|
|
3530
3531
|
style: {
|
|
3531
3532
|
left: v.x - v.grab.x,
|
|
@@ -3534,7 +3535,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3534
3535
|
},
|
|
3535
3536
|
className: Ga(v),
|
|
3536
3537
|
children: [
|
|
3537
|
-
v.column.icon && /* @__PURE__ */ o(
|
|
3538
|
+
v.column.icon && /* @__PURE__ */ o(q, { icon: v.column.icon }),
|
|
3538
3539
|
/* @__PURE__ */ o("span", { children: v.column.label })
|
|
3539
3540
|
]
|
|
3540
3541
|
}
|
|
@@ -3544,19 +3545,19 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3544
3545
|
document.body
|
|
3545
3546
|
) : null;
|
|
3546
3547
|
return { armDrag: C, cancelDrag: k, isDragging: !!v, dragOverlay: z };
|
|
3547
|
-
}, Ga = (e) => e.target ? "over-target" : "",
|
|
3548
|
+
}, Ga = (e) => e.target ? "over-target" : "", Ya = () => {
|
|
3548
3549
|
const e = (t) => {
|
|
3549
3550
|
t.stopPropagation(), t.preventDefault();
|
|
3550
3551
|
};
|
|
3551
3552
|
window.addEventListener("click", e, !0), setTimeout(() => window.removeEventListener("click", e, !0), 0);
|
|
3552
|
-
},
|
|
3553
|
+
}, Wa = u.div`
|
|
3553
3554
|
position: fixed;
|
|
3554
3555
|
box-sizing: border-box;
|
|
3555
3556
|
z-index: 999;
|
|
3556
3557
|
pointer-events: none;
|
|
3557
3558
|
border-radius: 4px;
|
|
3558
3559
|
background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
|
|
3559
|
-
`,
|
|
3560
|
+
`, Xa = u.div`
|
|
3560
3561
|
position: fixed;
|
|
3561
3562
|
box-sizing: border-box;
|
|
3562
3563
|
z-index: 2000;
|
|
@@ -3578,7 +3579,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3578
3579
|
const { columnVisibility: n, defaultColumnVisibility: s, updateColumnVisibility: i } = Ce(), {
|
|
3579
3580
|
displayVisibility: a,
|
|
3580
3581
|
isVisible: h,
|
|
3581
|
-
onPaintStart:
|
|
3582
|
+
onPaintStart: f,
|
|
3582
3583
|
onPaintEnter: c,
|
|
3583
3584
|
toggle: l,
|
|
3584
3585
|
cancelPaint: p,
|
|
@@ -3587,25 +3588,25 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3587
3588
|
columnVisibility: n,
|
|
3588
3589
|
defaultColumnVisibility: s,
|
|
3589
3590
|
updateColumnVisibility: i
|
|
3590
|
-
}), { armDrag: y, cancelDrag: v, isDragging: x, dragOverlay: g } =
|
|
3591
|
+
}), { armDrag: y, cancelDrag: v, isDragging: x, dragOverlay: g } = qa(), w = H({ isPainting: d, isDragging: x, cancelPaint: p });
|
|
3591
3592
|
w.current = { isPainting: d, isDragging: x, cancelPaint: p };
|
|
3592
|
-
const
|
|
3593
|
+
const b = te(
|
|
3593
3594
|
(C, N) => {
|
|
3594
3595
|
w.current.isDragging || (N && v(), c(C, N));
|
|
3595
3596
|
},
|
|
3596
3597
|
[v, c]
|
|
3597
|
-
), m =
|
|
3598
|
+
), m = te(
|
|
3598
3599
|
(C, N) => {
|
|
3599
3600
|
w.current.isPainting || y(C, N);
|
|
3600
3601
|
},
|
|
3601
3602
|
[y]
|
|
3602
|
-
), k =
|
|
3603
|
+
), k = Z(
|
|
3603
3604
|
() => Fo({
|
|
3604
3605
|
columns: e,
|
|
3605
3606
|
onToggle: l,
|
|
3606
3607
|
isColumnVisible: h,
|
|
3607
|
-
onPaintStart:
|
|
3608
|
-
onPaintEnter:
|
|
3608
|
+
onPaintStart: f,
|
|
3609
|
+
onPaintEnter: b,
|
|
3609
3610
|
onDragStart: m,
|
|
3610
3611
|
scopes: t,
|
|
3611
3612
|
extraItems: r
|
|
@@ -3615,8 +3616,8 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3615
3616
|
e,
|
|
3616
3617
|
a,
|
|
3617
3618
|
l,
|
|
3618
|
-
b,
|
|
3619
3619
|
f,
|
|
3620
|
+
b,
|
|
3620
3621
|
m,
|
|
3621
3622
|
t,
|
|
3622
3623
|
r
|
|
@@ -3629,99 +3630,109 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3629
3630
|
onColumnDragStart: y,
|
|
3630
3631
|
isColumnDragging: x
|
|
3631
3632
|
};
|
|
3632
|
-
},
|
|
3633
|
-
extraColumns: e =
|
|
3634
|
-
hiddenColumns: t =
|
|
3633
|
+
}, Qa = [], Za = [], jo = ({
|
|
3634
|
+
extraColumns: e = Qa,
|
|
3635
|
+
hiddenColumns: t = Za,
|
|
3635
3636
|
includeLinks: r = !0,
|
|
3636
3637
|
parentColumns: n = []
|
|
3637
3638
|
}) => {
|
|
3638
|
-
const { linkTypes: s } = ko(), { attribFields: i, scopes: a } = ot(), h =
|
|
3639
|
+
const { linkTypes: s } = ko(), { attribFields: i, scopes: a } = ot(), h = Z(
|
|
3639
3640
|
() => [
|
|
3640
3641
|
{
|
|
3641
3642
|
value: "thumbnail",
|
|
3642
|
-
label:
|
|
3643
|
-
icon:
|
|
3643
|
+
label: ee("thumbnail"),
|
|
3644
|
+
icon: G("thumbnail")
|
|
3644
3645
|
},
|
|
3645
3646
|
{
|
|
3646
3647
|
value: "name",
|
|
3647
3648
|
label: Er(a),
|
|
3648
|
-
icon:
|
|
3649
|
+
icon: G("name")
|
|
3649
3650
|
},
|
|
3650
3651
|
{
|
|
3651
3652
|
value: xe.folder,
|
|
3652
|
-
label:
|
|
3653
|
-
icon:
|
|
3653
|
+
label: ee(xe.folder),
|
|
3654
|
+
icon: G(xe.folder)
|
|
3654
3655
|
},
|
|
3655
3656
|
{
|
|
3656
3657
|
value: xe.task,
|
|
3657
|
-
label:
|
|
3658
|
-
icon:
|
|
3658
|
+
label: ee(xe.task),
|
|
3659
|
+
icon: G(xe.task),
|
|
3659
3660
|
hidden: !["product", "version"].some((c) => a.includes(c))
|
|
3660
3661
|
},
|
|
3661
3662
|
{
|
|
3662
3663
|
value: "assignees",
|
|
3663
|
-
label:
|
|
3664
|
-
icon:
|
|
3664
|
+
label: ee("assignees"),
|
|
3665
|
+
icon: G("assignees"),
|
|
3665
3666
|
hidden: !a.includes("task")
|
|
3666
3667
|
},
|
|
3667
3668
|
{
|
|
3668
3669
|
value: "product",
|
|
3669
|
-
label:
|
|
3670
|
-
icon:
|
|
3670
|
+
label: ee("product"),
|
|
3671
|
+
icon: G("product"),
|
|
3671
3672
|
hidden: !["product", "version"].some((c) => a.includes(c))
|
|
3672
3673
|
},
|
|
3673
3674
|
{
|
|
3674
3675
|
value: "entityType",
|
|
3675
|
-
label:
|
|
3676
|
-
icon:
|
|
3676
|
+
label: ee("entityType"),
|
|
3677
|
+
icon: G("entityType")
|
|
3677
3678
|
},
|
|
3678
3679
|
{
|
|
3679
3680
|
value: "status",
|
|
3680
|
-
label:
|
|
3681
|
-
icon:
|
|
3681
|
+
label: ee("status"),
|
|
3682
|
+
icon: G("status")
|
|
3682
3683
|
},
|
|
3683
3684
|
{
|
|
3684
3685
|
value: "subType",
|
|
3685
|
-
label:
|
|
3686
|
-
icon:
|
|
3686
|
+
label: ee("subType", a),
|
|
3687
|
+
icon: G("subType")
|
|
3687
3688
|
},
|
|
3688
3689
|
{
|
|
3689
3690
|
value: "tags",
|
|
3690
|
-
label:
|
|
3691
|
-
icon:
|
|
3691
|
+
label: ee("tags"),
|
|
3692
|
+
icon: G("tags")
|
|
3692
3693
|
},
|
|
3693
3694
|
{
|
|
3694
3695
|
value: "createdAt",
|
|
3695
|
-
label:
|
|
3696
|
-
icon:
|
|
3696
|
+
label: ee("createdAt"),
|
|
3697
|
+
icon: G("createdAt")
|
|
3698
|
+
},
|
|
3699
|
+
{
|
|
3700
|
+
value: "createdBy",
|
|
3701
|
+
label: ee("createdBy"),
|
|
3702
|
+
icon: G("createdBy")
|
|
3697
3703
|
},
|
|
3698
3704
|
{
|
|
3699
3705
|
value: "updatedAt",
|
|
3700
|
-
label:
|
|
3701
|
-
icon:
|
|
3706
|
+
label: ee("updatedAt"),
|
|
3707
|
+
icon: G("updatedAt")
|
|
3708
|
+
},
|
|
3709
|
+
{
|
|
3710
|
+
value: "updatedBy",
|
|
3711
|
+
label: ee("updatedBy"),
|
|
3712
|
+
icon: G("updatedBy")
|
|
3702
3713
|
},
|
|
3703
3714
|
{
|
|
3704
3715
|
value: "subtasks",
|
|
3705
|
-
label:
|
|
3706
|
-
icon:
|
|
3716
|
+
label: ee("subtasks"),
|
|
3717
|
+
icon: G("subtasks"),
|
|
3707
3718
|
hidden: !a.includes("task")
|
|
3708
3719
|
},
|
|
3709
3720
|
{
|
|
3710
3721
|
value: "comments",
|
|
3711
|
-
label:
|
|
3712
|
-
icon:
|
|
3722
|
+
label: ee("comments"),
|
|
3723
|
+
icon: G("comments"),
|
|
3713
3724
|
hidden: !a.some((c) => ["task", "version", "product", "folder"].includes(c))
|
|
3714
3725
|
},
|
|
3715
3726
|
...Tr.map((c) => ({
|
|
3716
3727
|
value: c,
|
|
3717
|
-
label:
|
|
3718
|
-
icon:
|
|
3728
|
+
label: ee(c),
|
|
3729
|
+
icon: G(c),
|
|
3719
3730
|
hidden: !a.some((l) => Nr(c, l))
|
|
3720
3731
|
})),
|
|
3721
3732
|
...i.filter((c) => c.scope?.some((l) => a.includes(l))).map((c) => ({
|
|
3722
3733
|
value: `attrib_${c.name}`,
|
|
3723
3734
|
label: c.data.title || c.name,
|
|
3724
|
-
icon:
|
|
3735
|
+
icon: fe(c.name, c.data.type, xo(c.data)),
|
|
3725
3736
|
attrib: { builtin: c.builtin, scope: c.scope }
|
|
3726
3737
|
})),
|
|
3727
3738
|
...s && r ? s.filter(
|
|
@@ -3754,7 +3765,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3754
3765
|
(c) => i.filter((l) => !l.scope || l.scope.includes(c)).map((l) => ({
|
|
3755
3766
|
value: Kt(c, l.name, !0),
|
|
3756
3767
|
label: l.data.title || l.name,
|
|
3757
|
-
icon:
|
|
3768
|
+
icon: fe(l.name, l.data.type, !!l.data.enum),
|
|
3758
3769
|
attrib: { builtin: l.builtin, scope: l.scope },
|
|
3759
3770
|
parentScope: c
|
|
3760
3771
|
}))
|
|
@@ -3765,16 +3776,16 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3765
3776
|
}))
|
|
3766
3777
|
],
|
|
3767
3778
|
[a, i, s, r, n, e]
|
|
3768
|
-
),
|
|
3779
|
+
), f = Z(
|
|
3769
3780
|
() => h.filter((c) => !c.hidden && !t.includes(c.value)),
|
|
3770
3781
|
[h, t]
|
|
3771
3782
|
);
|
|
3772
|
-
return { columns: h, visibleColumns:
|
|
3783
|
+
return { columns: h, visibleColumns: f, scopes: a };
|
|
3773
3784
|
}, Ja = u(B)`
|
|
3774
3785
|
min-width: 120px;
|
|
3775
|
-
`,
|
|
3786
|
+
`, ei = u(B)`
|
|
3776
3787
|
padding: 4px !important;
|
|
3777
|
-
`,
|
|
3788
|
+
`, ul = ({ defaultSelected: e, className: t, ...r }) => {
|
|
3778
3789
|
const { togglePanel: n, isPanelOpen: s } = et();
|
|
3779
3790
|
return /* @__PURE__ */ o(
|
|
3780
3791
|
Ja,
|
|
@@ -3786,7 +3797,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3786
3797
|
children: "Customize"
|
|
3787
3798
|
}
|
|
3788
3799
|
);
|
|
3789
|
-
},
|
|
3800
|
+
}, pl = ({
|
|
3790
3801
|
settings: e = [],
|
|
3791
3802
|
extraColumns: t,
|
|
3792
3803
|
hiddenColumns: r,
|
|
@@ -3795,7 +3806,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3795
3806
|
includeLinks: i = !0,
|
|
3796
3807
|
hideSortBy: a = !1,
|
|
3797
3808
|
order: h,
|
|
3798
|
-
scope:
|
|
3809
|
+
scope: f,
|
|
3799
3810
|
extraMenuItems: c,
|
|
3800
3811
|
parentColumns: l,
|
|
3801
3812
|
columnIdAliases: p
|
|
@@ -3806,12 +3817,12 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3806
3817
|
rowHeight: x = 34,
|
|
3807
3818
|
updateRowHeight: g,
|
|
3808
3819
|
updateRowHeightWithPersistence: w
|
|
3809
|
-
} = Ce(), { isPanelOpen:
|
|
3810
|
-
|
|
3811
|
-
k !== null && (!
|
|
3812
|
-
}, [
|
|
3813
|
-
const N = `${
|
|
3814
|
-
|
|
3820
|
+
} = Ce(), { isPanelOpen: b, selectedSetting: m } = et(), [k, C] = U(null);
|
|
3821
|
+
Y(() => {
|
|
3822
|
+
k !== null && (!b || m !== "columns") && C(null);
|
|
3823
|
+
}, [b, m, k]);
|
|
3824
|
+
const N = `${f ?? ""}:${d.join()}`;
|
|
3825
|
+
Y(() => {
|
|
3815
3826
|
C(null);
|
|
3816
3827
|
}, [N]);
|
|
3817
3828
|
const { columns: z, visibleColumns: P } = jo({
|
|
@@ -3830,14 +3841,14 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3830
3841
|
columns: P,
|
|
3831
3842
|
scopes: d,
|
|
3832
3843
|
extraItems: c
|
|
3833
|
-
}), O =
|
|
3844
|
+
}), O = Oa({ scope: f }), I = Ua(z), A = [
|
|
3834
3845
|
{
|
|
3835
3846
|
id: "columns",
|
|
3836
3847
|
title: "Columns",
|
|
3837
3848
|
icon: "view_column",
|
|
3838
3849
|
preview: `${L}/${P.length}`,
|
|
3839
3850
|
headerActions: /* @__PURE__ */ o(
|
|
3840
|
-
|
|
3851
|
+
ei,
|
|
3841
3852
|
{
|
|
3842
3853
|
variant: "text",
|
|
3843
3854
|
icon: "search",
|
|
@@ -3848,7 +3859,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3848
3859
|
),
|
|
3849
3860
|
component: /* @__PURE__ */ S(pe, { children: [
|
|
3850
3861
|
/* @__PURE__ */ o(
|
|
3851
|
-
|
|
3862
|
+
Pa,
|
|
3852
3863
|
{
|
|
3853
3864
|
columns: P,
|
|
3854
3865
|
highlighted: V,
|
|
@@ -3868,7 +3879,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3868
3879
|
{
|
|
3869
3880
|
id: "row-height",
|
|
3870
3881
|
component: /* @__PURE__ */ o(
|
|
3871
|
-
|
|
3882
|
+
Ra,
|
|
3872
3883
|
{
|
|
3873
3884
|
value: x,
|
|
3874
3885
|
onChange: g,
|
|
@@ -3881,10 +3892,10 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3881
3892
|
].filter(Boolean);
|
|
3882
3893
|
return e.forEach((R) => {
|
|
3883
3894
|
if (n.includes(R.id)) return;
|
|
3884
|
-
const $ = A.findIndex((
|
|
3895
|
+
const $ = A.findIndex((W) => W && "id" in W && W.id === R.id);
|
|
3885
3896
|
$ !== -1 ? A[$] = R : A.push(R);
|
|
3886
|
-
}), /* @__PURE__ */ o(
|
|
3887
|
-
}, xt = "add-column-menu-table",
|
|
3897
|
+
}), /* @__PURE__ */ o(ba, { settings: A, order: h });
|
|
3898
|
+
}, xt = "add-column-menu-table", ti = u.div`
|
|
3888
3899
|
position: absolute;
|
|
3889
3900
|
top: 4px;
|
|
3890
3901
|
right: 24px;
|
|
@@ -3894,24 +3905,24 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3894
3905
|
padding: 2px;
|
|
3895
3906
|
border-radius: 12px;
|
|
3896
3907
|
}
|
|
3897
|
-
`,
|
|
3908
|
+
`, gl = ({
|
|
3898
3909
|
extraColumns: e,
|
|
3899
3910
|
hiddenColumns: t,
|
|
3900
3911
|
includeLinks: r,
|
|
3901
3912
|
extraMenuItems: n,
|
|
3902
3913
|
parentColumns: s
|
|
3903
3914
|
}) => {
|
|
3904
|
-
const { isPanelOpen: i } = et(), { toggleMenuOpen: a } = tt(), { visibleColumns: h, scopes:
|
|
3915
|
+
const { isPanelOpen: i } = et(), { toggleMenuOpen: a } = tt(), { visibleColumns: h, scopes: f } = jo({
|
|
3905
3916
|
extraColumns: e,
|
|
3906
3917
|
hiddenColumns: t,
|
|
3907
3918
|
includeLinks: r,
|
|
3908
3919
|
parentColumns: s
|
|
3909
3920
|
}), { menuItems: c, hasMenuItems: l, dragOverlay: p } = Ho({
|
|
3910
3921
|
columns: h,
|
|
3911
|
-
scopes:
|
|
3922
|
+
scopes: f,
|
|
3912
3923
|
extraItems: n
|
|
3913
3924
|
});
|
|
3914
|
-
return i ? null : /* @__PURE__ */ S(
|
|
3925
|
+
return i ? null : /* @__PURE__ */ S(ti, { children: [
|
|
3915
3926
|
/* @__PURE__ */ o(
|
|
3916
3927
|
B,
|
|
3917
3928
|
{
|
|
@@ -3926,7 +3937,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3926
3937
|
/* @__PURE__ */ o(It, { menuId: xt, menuItems: c }),
|
|
3927
3938
|
p
|
|
3928
3939
|
] });
|
|
3929
|
-
},
|
|
3940
|
+
}, oi = () => /* @__PURE__ */ o(
|
|
3930
3941
|
"svg",
|
|
3931
3942
|
{
|
|
3932
3943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3937,7 +3948,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3937
3948
|
viewBox: "0 0 16 16",
|
|
3938
3949
|
children: /* @__PURE__ */ o("path", { d: "M13.545 2.907a13.227 13.227 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.19 12.19 0 0 0-3.658 0 8.258 8.258 0 0 0-.412-.833.051.051 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.041.041 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032c.001.014.01.028.021.037a13.276 13.276 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019c.308-.42.582-.863.818-1.329a.05.05 0 0 0-.01-.059.051.051 0 0 0-.018-.011 8.875 8.875 0 0 1-1.248-.595.05.05 0 0 1-.02-.066.051.051 0 0 1 .015-.019c.084-.063.168-.129.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.052.052 0 0 1 .053.007c.08.066.164.132.248.195a.051.051 0 0 1-.004.085 8.254 8.254 0 0 1-1.249.594.05.05 0 0 0-.03.03.052.052 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.235 13.235 0 0 0 4.001-2.02.049.049 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.034.034 0 0 0-.02-.019Zm-8.198 7.307c-.789 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612Zm5.316 0c-.788 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612Z" })
|
|
3939
3950
|
}
|
|
3940
|
-
),
|
|
3951
|
+
), ri = () => /* @__PURE__ */ S(
|
|
3941
3952
|
"svg",
|
|
3942
3953
|
{
|
|
3943
3954
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3951,7 +3962,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3951
3962
|
" "
|
|
3952
3963
|
]
|
|
3953
3964
|
}
|
|
3954
|
-
),
|
|
3965
|
+
), ni = () => /* @__PURE__ */ S(
|
|
3955
3966
|
"svg",
|
|
3956
3967
|
{
|
|
3957
3968
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3965,40 +3976,40 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
3965
3976
|
" "
|
|
3966
3977
|
]
|
|
3967
3978
|
}
|
|
3968
|
-
),
|
|
3979
|
+
), ai = ({ name: e }) => {
|
|
3969
3980
|
const t = {
|
|
3970
|
-
discord: /* @__PURE__ */ o(
|
|
3971
|
-
slack: /* @__PURE__ */ o(
|
|
3972
|
-
google: /* @__PURE__ */ o(
|
|
3981
|
+
discord: /* @__PURE__ */ o(oi, {}),
|
|
3982
|
+
slack: /* @__PURE__ */ o(ni, {}),
|
|
3983
|
+
google: /* @__PURE__ */ o(ri, {})
|
|
3973
3984
|
};
|
|
3974
3985
|
return e.toLowerCase() in t ? t[e.toLowerCase()] : null;
|
|
3975
|
-
},
|
|
3986
|
+
}, ii = u(B)`
|
|
3976
3987
|
max-height: none;
|
|
3977
3988
|
|
|
3978
3989
|
transition: filter 0.2s;
|
|
3979
3990
|
&:hover {
|
|
3980
3991
|
filter: brightness(1.2);
|
|
3981
3992
|
}
|
|
3982
|
-
`,
|
|
3993
|
+
`, ml = ({ url: e, name: t, icon: r, color: n, textColor: s }) => {
|
|
3983
3994
|
const a = n || {
|
|
3984
3995
|
discord: "#5765F2",
|
|
3985
3996
|
slack: "#4A154B",
|
|
3986
3997
|
google: "#D34836"
|
|
3987
3998
|
}[t] || "initial";
|
|
3988
3999
|
return /* @__PURE__ */ o("a", { href: e, title: t, children: /* @__PURE__ */ o(
|
|
3989
|
-
|
|
4000
|
+
ii,
|
|
3990
4001
|
{
|
|
3991
4002
|
style: {
|
|
3992
4003
|
backgroundColor: a,
|
|
3993
4004
|
color: s || "white"
|
|
3994
4005
|
},
|
|
3995
4006
|
label: /* @__PURE__ */ S(pe, { children: [
|
|
3996
|
-
r ? /* @__PURE__ */ o("img", { src: r, style: { height: 36, width: "auto" } }) : /* @__PURE__ */ o(
|
|
4007
|
+
r ? /* @__PURE__ */ o("img", { src: r, style: { height: 36, width: "auto" } }) : /* @__PURE__ */ o(ai, { name: t }),
|
|
3997
4008
|
/* @__PURE__ */ o("span", { className: "label", children: "Login with " + t })
|
|
3998
4009
|
] })
|
|
3999
4010
|
}
|
|
4000
4011
|
) }, t);
|
|
4001
|
-
},
|
|
4012
|
+
}, si = Ye`
|
|
4002
4013
|
--base-size-4: 0.25rem;
|
|
4003
4014
|
--base-size-8: 0.5rem;
|
|
4004
4015
|
--base-size-16: 1rem;
|
|
@@ -5187,7 +5198,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
5187
5198
|
.highlight pre:has(+ .zeroclipboard-container) {
|
|
5188
5199
|
min-height: 52px;
|
|
5189
5200
|
}
|
|
5190
|
-
`,
|
|
5201
|
+
`, hl = u.div`
|
|
5191
5202
|
display: flex;
|
|
5192
5203
|
flex-direction: row;
|
|
5193
5204
|
justify-content: center;
|
|
@@ -5257,7 +5268,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
5257
5268
|
width: 100%;
|
|
5258
5269
|
}
|
|
5259
5270
|
}
|
|
5260
|
-
`,
|
|
5271
|
+
`, bl = u.div`
|
|
5261
5272
|
display: flex;
|
|
5262
5273
|
flex-direction: column;
|
|
5263
5274
|
overflow: auto;
|
|
@@ -5270,7 +5281,7 @@ const ia = "https://ynput.cloud/free-trial", sa = ({
|
|
|
5270
5281
|
button {
|
|
5271
5282
|
width: 100%;
|
|
5272
5283
|
}
|
|
5273
|
-
`,
|
|
5284
|
+
`, fl = u.img`
|
|
5274
5285
|
height: 60px;
|
|
5275
5286
|
`;
|
|
5276
5287
|
u.img`
|
|
@@ -5279,24 +5290,24 @@ u.img`
|
|
|
5279
5290
|
top: 16px;
|
|
5280
5291
|
left: 16px;
|
|
5281
5292
|
`;
|
|
5282
|
-
const
|
|
5293
|
+
const vl = u.img`
|
|
5283
5294
|
max-height: 100%;
|
|
5284
5295
|
width: 100%;
|
|
5285
5296
|
object-fit: contain;
|
|
5286
5297
|
overflow: hidden;
|
|
5287
|
-
`,
|
|
5298
|
+
`, yl = u.img`
|
|
5288
5299
|
position: fixed;
|
|
5289
5300
|
z-index: -10;
|
|
5290
5301
|
object-fit: cover;
|
|
5291
5302
|
width: 100vw;
|
|
5292
5303
|
height: 100vh;
|
|
5293
|
-
`,
|
|
5304
|
+
`, xl = u.div`
|
|
5294
5305
|
max-width: 100%;
|
|
5295
5306
|
height: 100%;
|
|
5296
5307
|
overflow: auto;
|
|
5297
5308
|
|
|
5298
|
-
${
|
|
5299
|
-
`,
|
|
5309
|
+
${si}
|
|
5310
|
+
`, wl = u.p`
|
|
5300
5311
|
color: var(--md-sys-color-outline);
|
|
5301
5312
|
&,
|
|
5302
5313
|
a {
|
|
@@ -5314,7 +5325,7 @@ u.span`
|
|
|
5314
5325
|
${se.labelMedium}
|
|
5315
5326
|
color: var(--md-sys-color-outline);
|
|
5316
5327
|
`;
|
|
5317
|
-
const
|
|
5328
|
+
const li = u.div`
|
|
5318
5329
|
display: flex;
|
|
5319
5330
|
flex-direction: column;
|
|
5320
5331
|
min-height: 0;
|
|
@@ -5323,24 +5334,24 @@ const si = u.div`
|
|
|
5323
5334
|
background-color: var(--md-sys-color-surface-container-high);
|
|
5324
5335
|
color: var(--md-sys-color-on-surface);
|
|
5325
5336
|
outline: none;
|
|
5326
|
-
`,
|
|
5337
|
+
`, ci = ({ anchor: e, close: t, children: r }) => {
|
|
5327
5338
|
const n = H(null);
|
|
5328
|
-
return
|
|
5339
|
+
return Y(() => {
|
|
5329
5340
|
const i = (a) => {
|
|
5330
|
-
const h = n.current?.closest("dialog"),
|
|
5331
|
-
!h || h.contains(
|
|
5341
|
+
const h = n.current?.closest("dialog"), f = a.target;
|
|
5342
|
+
!h || h.contains(f) || e?.contains(f) || f.closest?.("dialog") || a.clientY < h.getBoundingClientRect().top && t();
|
|
5332
5343
|
};
|
|
5333
5344
|
return document.addEventListener("pointerdown", i), () => document.removeEventListener("pointerdown", i);
|
|
5334
|
-
}, [e, t]),
|
|
5345
|
+
}, [e, t]), Y(() => {
|
|
5335
5346
|
const i = requestAnimationFrame(() => {
|
|
5336
5347
|
const a = n.current;
|
|
5337
5348
|
a && !a.contains(document.activeElement) && a.focus();
|
|
5338
5349
|
});
|
|
5339
5350
|
return () => cancelAnimationFrame(i);
|
|
5340
|
-
}, []), /* @__PURE__ */ o(
|
|
5351
|
+
}, []), /* @__PURE__ */ o(li, { ref: n, tabIndex: -1, className: "addon-popover", onKeyDown: (i) => {
|
|
5341
5352
|
i.key === "Escape" && (i.defaultPrevented || !n.current?.contains(i.target)) && i.stopPropagation();
|
|
5342
5353
|
}, children: r });
|
|
5343
|
-
},
|
|
5354
|
+
}, kl = ({
|
|
5344
5355
|
contribution: e,
|
|
5345
5356
|
context: t,
|
|
5346
5357
|
open: r,
|
|
@@ -5354,7 +5365,7 @@ const si = u.div`
|
|
|
5354
5365
|
target: n,
|
|
5355
5366
|
isOpen: r,
|
|
5356
5367
|
onDismiss: t.close,
|
|
5357
|
-
children: /* @__PURE__ */ o(
|
|
5368
|
+
children: /* @__PURE__ */ o(ci, { anchor: n, close: t.close, children: /* @__PURE__ */ o(
|
|
5358
5369
|
Ar,
|
|
5359
5370
|
{
|
|
5360
5371
|
contribution: e,
|
|
@@ -5365,7 +5376,7 @@ const si = u.div`
|
|
|
5365
5376
|
) })
|
|
5366
5377
|
}
|
|
5367
5378
|
);
|
|
5368
|
-
},
|
|
5379
|
+
}, Cl = Zo`
|
|
5369
5380
|
.p-splitter > .p-splitter-gutter {
|
|
5370
5381
|
position: relative;
|
|
5371
5382
|
|
|
@@ -5452,7 +5463,7 @@ const si = u.div`
|
|
|
5452
5463
|
inset: -3px 0;
|
|
5453
5464
|
}
|
|
5454
5465
|
}
|
|
5455
|
-
`,
|
|
5466
|
+
`, Sl = u.a`
|
|
5456
5467
|
color: var(--md-sys-color-primary, #0066cc);
|
|
5457
5468
|
text-decoration: none;
|
|
5458
5469
|
cursor: pointer;
|
|
@@ -5464,7 +5475,7 @@ const si = u.div`
|
|
|
5464
5475
|
&:hover {
|
|
5465
5476
|
text-decoration: underline;
|
|
5466
5477
|
}
|
|
5467
|
-
`,
|
|
5478
|
+
`, di = u.div`
|
|
5468
5479
|
display: flex;
|
|
5469
5480
|
gap: var(--base-gap-small);
|
|
5470
5481
|
background-color: var(--md-sys-color-surface-container-high);
|
|
@@ -5477,14 +5488,14 @@ const si = u.div`
|
|
|
5477
5488
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
5478
5489
|
}
|
|
5479
5490
|
}
|
|
5480
|
-
`,
|
|
5481
|
-
({ showGrid: e, onChange: t, ...r }, n) => (
|
|
5491
|
+
`, Il = ce(
|
|
5492
|
+
({ showGrid: e, onChange: t, ...r }, n) => (Y(() => {
|
|
5482
5493
|
const s = (i) => {
|
|
5483
5494
|
const a = i.target;
|
|
5484
5495
|
a.tagName === "INPUT" || a.tagName === "TEXTAREA" || a.isContentEditable || a.getAttribute("role") === "textbox" || a.tagName === "LI" || i.ctrlKey || i.metaKey || i.altKey || (i.key.toLowerCase() === "t" ? t(!1) : i.key.toLowerCase() === "c" && t(!0));
|
|
5485
5496
|
};
|
|
5486
5497
|
return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
|
|
5487
|
-
}, [t]), /* @__PURE__ */ S(
|
|
5498
|
+
}, [t]), /* @__PURE__ */ S(di, { ...r, ref: n, children: [
|
|
5488
5499
|
/* @__PURE__ */ o(
|
|
5489
5500
|
uo,
|
|
5490
5501
|
{
|
|
@@ -5508,13 +5519,13 @@ const si = u.div`
|
|
|
5508
5519
|
}
|
|
5509
5520
|
)
|
|
5510
5521
|
] }))
|
|
5511
|
-
),
|
|
5522
|
+
), ui = u.form`
|
|
5512
5523
|
display: flex;
|
|
5513
5524
|
flex-direction: column;
|
|
5514
5525
|
gap: var(--base-gap-large);
|
|
5515
5526
|
padding: var(--padding-m);
|
|
5516
5527
|
width: 100%;
|
|
5517
|
-
`,
|
|
5528
|
+
`, pi = u(Et)`
|
|
5518
5529
|
width: 100%;
|
|
5519
5530
|
margin: auto;
|
|
5520
5531
|
|
|
@@ -5525,12 +5536,12 @@ const si = u.div`
|
|
|
5525
5536
|
input {
|
|
5526
5537
|
width: 100%;
|
|
5527
5538
|
}
|
|
5528
|
-
`,
|
|
5539
|
+
`, gi = u.div`
|
|
5529
5540
|
font-size: var(--font-size-xs);
|
|
5530
5541
|
color: var(--md-sys-color-outline);
|
|
5531
5542
|
margin-top: var(--base-gap-small);
|
|
5532
5543
|
line-height: 1.3;
|
|
5533
|
-
`,
|
|
5544
|
+
`, mi = u.button`
|
|
5534
5545
|
background: none;
|
|
5535
5546
|
border: none;
|
|
5536
5547
|
color: var(--md-sys-color-primary);
|
|
@@ -5543,7 +5554,7 @@ const si = u.div`
|
|
|
5543
5554
|
&:hover {
|
|
5544
5555
|
color: var(--md-sys-color-primary-dark);
|
|
5545
5556
|
}
|
|
5546
|
-
`,
|
|
5557
|
+
`, hi = u.div`
|
|
5547
5558
|
display: flex;
|
|
5548
5559
|
align-items: start;
|
|
5549
5560
|
gap: var(--base-gap-small);
|
|
@@ -5553,7 +5564,7 @@ const si = u.div`
|
|
|
5553
5564
|
flex: 1;
|
|
5554
5565
|
min-width: 0;
|
|
5555
5566
|
}
|
|
5556
|
-
`,
|
|
5567
|
+
`, bi = u.div`
|
|
5557
5568
|
font-size: var(--font-size-xs);
|
|
5558
5569
|
color: var(--md-sys-color-primary);
|
|
5559
5570
|
margin-top: var(--base-gap-small);
|
|
@@ -5561,31 +5572,31 @@ const si = u.div`
|
|
|
5561
5572
|
`, fi = u.div`
|
|
5562
5573
|
position: relative;
|
|
5563
5574
|
min-height: 80px;
|
|
5564
|
-
`,
|
|
5575
|
+
`, vi = u.div`
|
|
5565
5576
|
display: flex;
|
|
5566
5577
|
align-items: center;
|
|
5567
5578
|
gap: var(--base-gap-small);
|
|
5568
5579
|
width: 100%;
|
|
5569
|
-
`,
|
|
5580
|
+
`, yi = u(B)`
|
|
5570
5581
|
flex: 1;
|
|
5571
|
-
`,
|
|
5582
|
+
`, xi = u.div`
|
|
5572
5583
|
width: 100%;
|
|
5573
5584
|
overflow: hidden;
|
|
5574
5585
|
display: flex;
|
|
5575
5586
|
min-width: 0;
|
|
5576
|
-
`,
|
|
5587
|
+
`, wi = u.span`
|
|
5577
5588
|
overflow: hidden;
|
|
5578
5589
|
text-overflow: ellipsis;
|
|
5579
5590
|
white-space: nowrap;
|
|
5580
5591
|
max-width: fit-content;
|
|
5581
5592
|
margin-right: 4px;
|
|
5582
5593
|
flex: 1;
|
|
5583
|
-
`,
|
|
5594
|
+
`, ki = u.span`
|
|
5584
5595
|
white-space: nowrap;
|
|
5585
5596
|
overflow: hidden;
|
|
5586
5597
|
text-overflow: ellipsis;
|
|
5587
5598
|
font-weight: bold;
|
|
5588
|
-
`,
|
|
5599
|
+
`, Ci = ({
|
|
5589
5600
|
formData: e,
|
|
5590
5601
|
onChange: t,
|
|
5591
5602
|
onSubmit: r,
|
|
@@ -5595,7 +5606,7 @@ const si = u.div`
|
|
|
5595
5606
|
versionId: a,
|
|
5596
5607
|
productId: h
|
|
5597
5608
|
}) => {
|
|
5598
|
-
const
|
|
5609
|
+
const f = H(e.productType), c = H(null), l = H(null), {
|
|
5599
5610
|
pendingFiles: p,
|
|
5600
5611
|
setPendingFiles: d,
|
|
5601
5612
|
onCloseVersionUpload: y,
|
|
@@ -5603,17 +5614,17 @@ const si = u.div`
|
|
|
5603
5614
|
dispatch: x,
|
|
5604
5615
|
taskId: g,
|
|
5605
5616
|
linkedTask: w,
|
|
5606
|
-
isLoadingTask:
|
|
5617
|
+
isLoadingTask: b,
|
|
5607
5618
|
setTaskId: m,
|
|
5608
5619
|
setLinkedTask: k,
|
|
5609
5620
|
folderId: C,
|
|
5610
5621
|
folderProducts: N,
|
|
5611
5622
|
isFolderProductsLoading: z,
|
|
5612
5623
|
matchedProduct: P
|
|
5613
|
-
} = To(), [V, L] = U(!1), j =
|
|
5624
|
+
} = To(), [V, L] = U(!1), j = Z(
|
|
5614
5625
|
() => N.map((D) => ({ value: D.name, label: D.name })),
|
|
5615
5626
|
[N]
|
|
5616
|
-
), T =
|
|
5627
|
+
), T = te(
|
|
5617
5628
|
(D) => {
|
|
5618
5629
|
t("name", D.length > 0 ? D[0] : "");
|
|
5619
5630
|
},
|
|
@@ -5621,35 +5632,35 @@ const si = u.div`
|
|
|
5621
5632
|
), F = P?.latestVersion ? `v${String(P.latestVersion.version).padStart(3, "0")}` : "", { data: M, isFetching: O } = hr(
|
|
5622
5633
|
{ projectName: s, taskId: g },
|
|
5623
5634
|
{ skip: !g }
|
|
5624
|
-
), I =
|
|
5625
|
-
|
|
5626
|
-
const D =
|
|
5627
|
-
if (e.productType !== D &&
|
|
5628
|
-
const Ee = e.name.slice(
|
|
5635
|
+
), I = b || !!g && O && !w, A = M?.folderId || C, R = ko(), $ = M?.label || M?.name || w?.label || w?.name || "", W = M?.taskType || w?.taskType, re = W ? R.getTaskType(W) : void 0, ne = re?.icon || "task_alt", ve = M?.path ? M.path.substring(0, M.path.lastIndexOf("/")) : "", ye = R.getProductTypeOptions(), ge = Z(() => R.productTypes.reduce((D, X) => (D[X.name] = X, D), {}), [R.productTypes]);
|
|
5636
|
+
Y(() => {
|
|
5637
|
+
const D = f.current, X = ge[D]?.name || "", be = ge[e.productType]?.name || "";
|
|
5638
|
+
if (e.productType !== D && X && e.name.startsWith(X)) {
|
|
5639
|
+
const Ee = e.name.slice(X.length), Te = be + Ee;
|
|
5629
5640
|
t("name", Te);
|
|
5630
5641
|
}
|
|
5631
|
-
|
|
5642
|
+
f.current = e.productType;
|
|
5632
5643
|
}, [e.productType, e.name, t]);
|
|
5633
5644
|
const Oe = (D) => {
|
|
5634
5645
|
D.preventDefault();
|
|
5635
|
-
const
|
|
5636
|
-
|
|
5646
|
+
const X = D.nativeEvent.submitter;
|
|
5647
|
+
X && X.closest(".dropdown") || r(e);
|
|
5637
5648
|
}, at = (D) => {
|
|
5638
|
-
const
|
|
5639
|
-
isNaN(
|
|
5649
|
+
const X = parseInt(D.target.value, 10);
|
|
5650
|
+
isNaN(X) || t("version", X);
|
|
5640
5651
|
}, ze = (D) => {
|
|
5641
5652
|
t("name", D.target.value);
|
|
5642
5653
|
}, Se = (D) => {
|
|
5643
5654
|
D.length > 0 && t("productType", D[0]);
|
|
5644
5655
|
}, he = () => {
|
|
5645
|
-
const D = ge[e.productType]?.name || "",
|
|
5656
|
+
const D = ge[e.productType]?.name || "", X = e.name || "", be = X.charAt(0).toUpperCase() + X.slice(1), Ee = D + be;
|
|
5646
5657
|
t("name", Ee);
|
|
5647
5658
|
}, de = () => {
|
|
5648
5659
|
const D = ge[e.productType]?.name || "";
|
|
5649
5660
|
return e.name && !e.name.startsWith(D);
|
|
5650
5661
|
}, ae = !!a;
|
|
5651
5662
|
return /* @__PURE__ */ S(
|
|
5652
|
-
|
|
5663
|
+
ui,
|
|
5653
5664
|
{
|
|
5654
5665
|
id: "upload-version-form",
|
|
5655
5666
|
ref: l,
|
|
@@ -5662,8 +5673,8 @@ const si = u.div`
|
|
|
5662
5673
|
}
|
|
5663
5674
|
},
|
|
5664
5675
|
children: [
|
|
5665
|
-
/* @__PURE__ */ S(
|
|
5666
|
-
!n.includes("name") && /* @__PURE__ */ o(oe, { label: "Product Name", children: /* @__PURE__ */ S(
|
|
5676
|
+
/* @__PURE__ */ S(pi, { children: [
|
|
5677
|
+
!n.includes("name") && /* @__PURE__ */ o(oe, { label: "Product Name", children: /* @__PURE__ */ S(hi, { children: [
|
|
5667
5678
|
/* @__PURE__ */ S("div", { children: [
|
|
5668
5679
|
/* @__PURE__ */ o(
|
|
5669
5680
|
De,
|
|
@@ -5678,17 +5689,17 @@ const si = u.div`
|
|
|
5678
5689
|
disabled: ae
|
|
5679
5690
|
}
|
|
5680
5691
|
),
|
|
5681
|
-
P && /* @__PURE__ */ o(
|
|
5692
|
+
P && /* @__PURE__ */ o(bi, { children: P.latestVersion ? /* @__PURE__ */ S(pe, { children: [
|
|
5682
5693
|
"Matched existing product (latest: ",
|
|
5683
5694
|
F,
|
|
5684
5695
|
")"
|
|
5685
5696
|
] }) : "Matched existing product (no versions)" }),
|
|
5686
|
-
!P && de() && /* @__PURE__ */ S(
|
|
5697
|
+
!P && de() && /* @__PURE__ */ S(gi, { id: "name-recommendation", children: [
|
|
5687
5698
|
'We recommend prefixing with "',
|
|
5688
5699
|
ge[e.productType]?.name,
|
|
5689
5700
|
'".',
|
|
5690
5701
|
" ",
|
|
5691
|
-
/* @__PURE__ */ o(
|
|
5702
|
+
/* @__PURE__ */ o(mi, { type: "button", onClick: he, children: "Apply prefix" })
|
|
5692
5703
|
] })
|
|
5693
5704
|
] }),
|
|
5694
5705
|
!h && !ae && /* @__PURE__ */ o(
|
|
@@ -5702,13 +5713,13 @@ const si = u.div`
|
|
|
5702
5713
|
widthExpand: !1,
|
|
5703
5714
|
disabled: z || N.length === 0,
|
|
5704
5715
|
"aria-label": "Select existing product",
|
|
5705
|
-
valueTemplate: (D,
|
|
5716
|
+
valueTemplate: (D, X, be) => /* @__PURE__ */ o(
|
|
5706
5717
|
B,
|
|
5707
5718
|
{
|
|
5708
5719
|
icon: "inventory_2",
|
|
5709
5720
|
variant: "text",
|
|
5710
5721
|
"data-tooltip": "Browse existing products",
|
|
5711
|
-
selected:
|
|
5722
|
+
selected: be,
|
|
5712
5723
|
tabIndex: -1,
|
|
5713
5724
|
disabled: z || N.length === 0
|
|
5714
5725
|
}
|
|
@@ -5743,23 +5754,23 @@ const si = u.div`
|
|
|
5743
5754
|
disabled: ae
|
|
5744
5755
|
}
|
|
5745
5756
|
) }),
|
|
5746
|
-
/* @__PURE__ */ o(oe, { label: "Task", children: /* @__PURE__ */ o(
|
|
5757
|
+
/* @__PURE__ */ o(oe, { label: "Task", children: /* @__PURE__ */ o(vi, { children: I ? /* @__PURE__ */ o(Hr, { height: "20px" }) : g && $ ? /* @__PURE__ */ S(pe, { children: [
|
|
5747
5758
|
/* @__PURE__ */ S(
|
|
5748
|
-
|
|
5759
|
+
yi,
|
|
5749
5760
|
{
|
|
5750
5761
|
type: "button",
|
|
5751
5762
|
onClick: () => L(!0),
|
|
5752
5763
|
disabled: ae,
|
|
5753
5764
|
variant: "text",
|
|
5754
5765
|
children: [
|
|
5755
|
-
/* @__PURE__ */ o(
|
|
5756
|
-
/* @__PURE__ */ S(
|
|
5757
|
-
ve && /* @__PURE__ */ S(
|
|
5766
|
+
/* @__PURE__ */ o(q, { icon: ne, style: { color: re?.color } }),
|
|
5767
|
+
/* @__PURE__ */ S(xi, { children: [
|
|
5768
|
+
ve && /* @__PURE__ */ S(wi, { children: [
|
|
5758
5769
|
ve.split("/").filter(Boolean).join(" / "),
|
|
5759
5770
|
" /",
|
|
5760
5771
|
" "
|
|
5761
5772
|
] }),
|
|
5762
|
-
/* @__PURE__ */ o(
|
|
5773
|
+
/* @__PURE__ */ o(ki, { children: $ })
|
|
5763
5774
|
] })
|
|
5764
5775
|
]
|
|
5765
5776
|
}
|
|
@@ -5805,7 +5816,7 @@ const si = u.div`
|
|
|
5805
5816
|
),
|
|
5806
5817
|
/* @__PURE__ */ o(oe, { label: "Reviewable files" }),
|
|
5807
5818
|
/* @__PURE__ */ o(fi, { children: /* @__PURE__ */ o(
|
|
5808
|
-
|
|
5819
|
+
fr,
|
|
5809
5820
|
{
|
|
5810
5821
|
projectName: s,
|
|
5811
5822
|
versionId: a,
|
|
@@ -5828,15 +5839,15 @@ const si = u.div`
|
|
|
5828
5839
|
]
|
|
5829
5840
|
}
|
|
5830
5841
|
);
|
|
5831
|
-
},
|
|
5842
|
+
}, Si = (e) => {
|
|
5832
5843
|
let t = String(e), r = Math.max(0, 3 - t.length);
|
|
5833
5844
|
return `v${"0".repeat(r)}${t}`;
|
|
5834
|
-
},
|
|
5845
|
+
}, Ii = u.span`
|
|
5835
5846
|
background-color: var(--md-sys-color-error-container);
|
|
5836
5847
|
color: var(--md-sys-color-on-error-container);
|
|
5837
5848
|
padding: var(--padding-s);
|
|
5838
5849
|
border-radius: var(--border-radius-m);
|
|
5839
|
-
`,
|
|
5850
|
+
`, El = () => {
|
|
5840
5851
|
const {
|
|
5841
5852
|
isOpen: e,
|
|
5842
5853
|
onCloseVersionUpload: t,
|
|
@@ -5846,7 +5857,7 @@ const si = u.div`
|
|
|
5846
5857
|
form: i,
|
|
5847
5858
|
latestVersion: a,
|
|
5848
5859
|
handleFormChange: h,
|
|
5849
|
-
handleFormSubmit:
|
|
5860
|
+
handleFormSubmit: f,
|
|
5850
5861
|
isSubmitting: c,
|
|
5851
5862
|
error: l,
|
|
5852
5863
|
createdProductId: p,
|
|
@@ -5860,7 +5871,7 @@ const si = u.div`
|
|
|
5860
5871
|
{
|
|
5861
5872
|
type: "submit",
|
|
5862
5873
|
form: "upload-version-form",
|
|
5863
|
-
label: `Create ${
|
|
5874
|
+
label: `Create ${Si(i.version)}`,
|
|
5864
5875
|
icon: "upload",
|
|
5865
5876
|
active: !0,
|
|
5866
5877
|
saving: c
|
|
@@ -5878,23 +5889,23 @@ const si = u.div`
|
|
|
5878
5889
|
style: { width: 600, maxHeight: "80vh" },
|
|
5879
5890
|
children: [
|
|
5880
5891
|
/* @__PURE__ */ o(
|
|
5881
|
-
|
|
5892
|
+
Ci,
|
|
5882
5893
|
{
|
|
5883
5894
|
formData: i,
|
|
5884
5895
|
minVersion: a,
|
|
5885
5896
|
onChange: h,
|
|
5886
|
-
onSubmit:
|
|
5897
|
+
onSubmit: f,
|
|
5887
5898
|
hidden: r ? ["name", "productType"] : y ? ["productType"] : [],
|
|
5888
5899
|
projectName: s,
|
|
5889
5900
|
versionId: x,
|
|
5890
5901
|
productId: v
|
|
5891
5902
|
}
|
|
5892
5903
|
),
|
|
5893
|
-
g && /* @__PURE__ */ o(
|
|
5904
|
+
g && /* @__PURE__ */ o(Ii, { className: "error", children: dr(l) })
|
|
5894
5905
|
]
|
|
5895
5906
|
}
|
|
5896
5907
|
);
|
|
5897
|
-
},
|
|
5908
|
+
}, Ei = u.div`
|
|
5898
5909
|
--reviewable-card-width: 62px;
|
|
5899
5910
|
|
|
5900
5911
|
position: relative;
|
|
@@ -5902,14 +5913,14 @@ const si = u.div`
|
|
|
5902
5913
|
z-index: 1000;
|
|
5903
5914
|
overflow: hidden;
|
|
5904
5915
|
padding-bottom: var(--padding-m);
|
|
5905
|
-
`,
|
|
5916
|
+
`, Ti = u(jr)`
|
|
5906
5917
|
display: flex;
|
|
5907
5918
|
flex-direction: column;
|
|
5908
5919
|
justify-content: flex-start;
|
|
5909
5920
|
align-items: center;
|
|
5910
5921
|
min-width: fit-content;
|
|
5911
5922
|
gap: var(--base-gap-small);
|
|
5912
|
-
`,
|
|
5923
|
+
`, Ni = u.div`
|
|
5913
5924
|
position: relative;
|
|
5914
5925
|
flex-shrink: 0;
|
|
5915
5926
|
display: flex;
|
|
@@ -5959,7 +5970,7 @@ const si = u.div`
|
|
|
5959
5970
|
border-color: var(--selection-border-color);
|
|
5960
5971
|
color: var(--selection-color);
|
|
5961
5972
|
}
|
|
5962
|
-
`,
|
|
5973
|
+
`, Pi = u.span`
|
|
5963
5974
|
padding: var(--padding-m);
|
|
5964
5975
|
border-radius: var(--border-radius-m);
|
|
5965
5976
|
background-color: var(--md-sys-color-surface-container-low);
|
|
@@ -5970,7 +5981,7 @@ const si = u.div`
|
|
|
5970
5981
|
left: -8px;
|
|
5971
5982
|
transform: translateX(-100%) translateY(-50%);
|
|
5972
5983
|
z-index: 1000;
|
|
5973
|
-
`,
|
|
5984
|
+
`, Ai = u(B)`
|
|
5974
5985
|
width: var(--reviewable-card-width);
|
|
5975
5986
|
aspect-ratio: 16 / 9;
|
|
5976
5987
|
flex-shrink: 0;
|
|
@@ -5979,7 +5990,7 @@ const si = u.div`
|
|
|
5979
5990
|
&:hover {
|
|
5980
5991
|
background-color: var(--md-sys-color-surface-container-high-hover);
|
|
5981
5992
|
}
|
|
5982
|
-
`,
|
|
5993
|
+
`, _i = u.div`
|
|
5983
5994
|
border-radius: var(--border-radius-m);
|
|
5984
5995
|
background-color: var(--md-sys-color-surface-container-high);
|
|
5985
5996
|
position: absolute;
|
|
@@ -5987,7 +5998,7 @@ const si = u.div`
|
|
|
5987
5998
|
right: var(--padding-s);
|
|
5988
5999
|
padding: var(--padding-s);
|
|
5989
6000
|
`;
|
|
5990
|
-
function
|
|
6001
|
+
function Di({
|
|
5991
6002
|
fileId: e,
|
|
5992
6003
|
label: t,
|
|
5993
6004
|
selected: r,
|
|
@@ -5996,43 +6007,49 @@ function _i({
|
|
|
5996
6007
|
onMouseOver: i,
|
|
5997
6008
|
onChange: a,
|
|
5998
6009
|
tag: h,
|
|
5999
|
-
contextMenuItems:
|
|
6010
|
+
contextMenuItems: f,
|
|
6000
6011
|
selectionVariant: c = "primary",
|
|
6001
6012
|
shortcut: l
|
|
6002
6013
|
}) {
|
|
6003
6014
|
const [p] = Kr();
|
|
6004
6015
|
return /* @__PURE__ */ S(
|
|
6005
|
-
|
|
6016
|
+
Ni,
|
|
6006
6017
|
{
|
|
6007
6018
|
id: "preview-" + e,
|
|
6008
6019
|
onClick: (d) => a?.(e, d.metaKey || d.ctrlKey),
|
|
6009
|
-
className:
|
|
6020
|
+
className: J("reviewable-card", { selected: r }, c),
|
|
6010
6021
|
"data-tooltip": t,
|
|
6011
6022
|
"data-shortcut": l,
|
|
6012
6023
|
"data-shortcut-position": "before",
|
|
6013
6024
|
onMouseOver: (d) => i(d, { label: t }),
|
|
6014
6025
|
onKeyDown: s,
|
|
6015
6026
|
onContextMenu: (d) => {
|
|
6016
|
-
|
|
6027
|
+
f && (d.preventDefault(), p(d, f));
|
|
6017
6028
|
},
|
|
6018
6029
|
tabIndex: 0,
|
|
6019
6030
|
children: [
|
|
6020
|
-
/* @__PURE__ */ o(
|
|
6021
|
-
|
|
6031
|
+
/* @__PURE__ */ o(
|
|
6032
|
+
vr,
|
|
6033
|
+
{
|
|
6034
|
+
src: `/api/projects/${n}/files/${e}/thumbnail`,
|
|
6035
|
+
filmstripSrc: qr(n ?? void 0, e)
|
|
6036
|
+
}
|
|
6037
|
+
),
|
|
6038
|
+
h && /* @__PURE__ */ o(_i, { children: h })
|
|
6022
6039
|
]
|
|
6023
6040
|
},
|
|
6024
6041
|
e
|
|
6025
6042
|
);
|
|
6026
6043
|
}
|
|
6027
|
-
const
|
|
6044
|
+
const Tl = ce(({
|
|
6028
6045
|
reviewables: e = [],
|
|
6029
6046
|
selected: t = [],
|
|
6030
6047
|
projectName: r,
|
|
6031
6048
|
onChange: n,
|
|
6032
6049
|
onUpload: s
|
|
6033
6050
|
}, i) => {
|
|
6034
|
-
const a = H(null), h = H(null), [
|
|
6035
|
-
const m = h.current, k = document.getElementById("preview-" +
|
|
6051
|
+
const a = H(null), h = H(null), [f, c] = U(null), [l, p] = U(null), d = () => h.current?.scrollTop || 0, y = (b) => {
|
|
6052
|
+
const m = h.current, k = document.getElementById("preview-" + b);
|
|
6036
6053
|
if (!m || !k) return;
|
|
6037
6054
|
const C = m.getBoundingClientRect(), N = k.getBoundingClientRect();
|
|
6038
6055
|
N.top < C.top ? m.scrollTop -= C.top - N.top : N.bottom > C.bottom && (m.scrollTop += N.bottom - C.bottom), a.current?.updateScroll?.();
|
|
@@ -6040,9 +6057,9 @@ const Il = ce(({
|
|
|
6040
6057
|
er(
|
|
6041
6058
|
i,
|
|
6042
6059
|
() => ({
|
|
6043
|
-
notifyNavigation: ({ fileId:
|
|
6044
|
-
requestAnimationFrame(() => y(
|
|
6045
|
-
const k = document.getElementById("preview-" +
|
|
6060
|
+
notifyNavigation: ({ fileId: b, label: m }) => {
|
|
6061
|
+
requestAnimationFrame(() => y(b)), c(m ?? null);
|
|
6062
|
+
const k = document.getElementById("preview-" + b);
|
|
6046
6063
|
if (k) {
|
|
6047
6064
|
const C = k.offsetTop + k.offsetHeight / 2 - d();
|
|
6048
6065
|
p(C), k.focus({ preventScroll: !0 });
|
|
@@ -6050,53 +6067,53 @@ const Il = ce(({
|
|
|
6050
6067
|
}
|
|
6051
6068
|
}),
|
|
6052
6069
|
[]
|
|
6053
|
-
),
|
|
6054
|
-
const
|
|
6070
|
+
), Y(() => {
|
|
6071
|
+
const b = (m) => {
|
|
6055
6072
|
m.target.closest(".reviewables") || c(null);
|
|
6056
6073
|
};
|
|
6057
|
-
return window.addEventListener("mousemove",
|
|
6058
|
-
window.removeEventListener("mousemove",
|
|
6074
|
+
return window.addEventListener("mousemove", b), () => {
|
|
6075
|
+
window.removeEventListener("mousemove", b);
|
|
6059
6076
|
};
|
|
6060
6077
|
}, []);
|
|
6061
|
-
const v = (
|
|
6062
|
-
const k =
|
|
6078
|
+
const v = (b, { label: m }) => {
|
|
6079
|
+
const k = b.target.closest(".reviewable-card");
|
|
6063
6080
|
if (!k) return;
|
|
6064
6081
|
c(m ?? null);
|
|
6065
6082
|
const C = k.offsetTop + k.offsetHeight / 2 - d();
|
|
6066
6083
|
p(C);
|
|
6067
|
-
}, x = (
|
|
6068
|
-
if (
|
|
6069
|
-
const m =
|
|
6084
|
+
}, x = (b) => {
|
|
6085
|
+
if (b.key === "Enter" || b.key === " ") {
|
|
6086
|
+
const m = b.target.closest(".reviewable-card");
|
|
6070
6087
|
if (!m) return;
|
|
6071
6088
|
const k = m.id.replace("preview-", "");
|
|
6072
6089
|
n && n(k);
|
|
6073
6090
|
}
|
|
6074
6091
|
};
|
|
6075
6092
|
if (!e.length) return /* @__PURE__ */ o("div", {});
|
|
6076
|
-
const g = e.findIndex(({ fileId:
|
|
6093
|
+
const g = e.findIndex(({ fileId: b }) => t.includes(b)), w = (b) => {
|
|
6077
6094
|
if (e.length < 2 || g === -1) return;
|
|
6078
6095
|
const m = e.length;
|
|
6079
|
-
if (
|
|
6080
|
-
if (
|
|
6096
|
+
if (b === (g - 1 + m) % m) return "W";
|
|
6097
|
+
if (b === (g + 1) % m) return "S";
|
|
6081
6098
|
};
|
|
6082
|
-
return /* @__PURE__ */ S(
|
|
6099
|
+
return /* @__PURE__ */ S(Ei, { children: [
|
|
6083
6100
|
/* @__PURE__ */ S(
|
|
6084
|
-
|
|
6101
|
+
Ti,
|
|
6085
6102
|
{
|
|
6086
6103
|
className: "reviewables",
|
|
6087
6104
|
ref: a,
|
|
6088
|
-
containerRef: (
|
|
6089
|
-
h.current =
|
|
6105
|
+
containerRef: (b) => {
|
|
6106
|
+
h.current = b;
|
|
6090
6107
|
},
|
|
6091
6108
|
children: [
|
|
6092
|
-
e.map(({ fileId:
|
|
6093
|
-
|
|
6109
|
+
e.map(({ fileId: b, label: m, tag: k, selectionVariant: C, contextMenuItems: N }, z) => /* @__PURE__ */ o(
|
|
6110
|
+
Di,
|
|
6094
6111
|
{
|
|
6095
6112
|
shortcut: w(z),
|
|
6096
6113
|
projectName: r,
|
|
6097
|
-
fileId:
|
|
6114
|
+
fileId: b,
|
|
6098
6115
|
label: m,
|
|
6099
|
-
selected: t.includes(
|
|
6116
|
+
selected: t.includes(b),
|
|
6100
6117
|
selectionVariant: C,
|
|
6101
6118
|
tag: k,
|
|
6102
6119
|
contextMenuItems: N,
|
|
@@ -6104,10 +6121,10 @@ const Il = ce(({
|
|
|
6104
6121
|
onKeyDown: x,
|
|
6105
6122
|
onMouseOver: v
|
|
6106
6123
|
},
|
|
6107
|
-
|
|
6124
|
+
b
|
|
6108
6125
|
)),
|
|
6109
6126
|
!!s && /* @__PURE__ */ o(
|
|
6110
|
-
|
|
6127
|
+
Ai,
|
|
6111
6128
|
{
|
|
6112
6129
|
icon: "add",
|
|
6113
6130
|
onClick: s,
|
|
@@ -6117,69 +6134,69 @@ const Il = ce(({
|
|
|
6117
6134
|
]
|
|
6118
6135
|
}
|
|
6119
6136
|
),
|
|
6120
|
-
|
|
6137
|
+
f && l && /* @__PURE__ */ o(Pi, { style: { top: l }, children: f })
|
|
6121
6138
|
] });
|
|
6122
6139
|
});
|
|
6123
6140
|
export {
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6141
|
+
Ra as $,
|
|
6142
|
+
Vs as A,
|
|
6143
|
+
yl as B,
|
|
6144
|
+
Fs as C,
|
|
6145
|
+
Gs as D,
|
|
6146
|
+
Zr as E,
|
|
6147
|
+
il as F,
|
|
6131
6148
|
Jr as G,
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6149
|
+
Js as H,
|
|
6150
|
+
xn as I,
|
|
6151
|
+
mn as J,
|
|
6152
|
+
tl as K,
|
|
6153
|
+
hl as L,
|
|
6154
|
+
al as M,
|
|
6155
|
+
qt as N,
|
|
6139
6156
|
Wt as O,
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6157
|
+
ia as P,
|
|
6158
|
+
ol as Q,
|
|
6159
|
+
cl as R,
|
|
6160
|
+
Bs as S,
|
|
6161
|
+
Ks as T,
|
|
6162
|
+
pl as U,
|
|
6163
|
+
Tl as V,
|
|
6164
|
+
ua as W,
|
|
6165
|
+
dl as X,
|
|
6166
|
+
ba as Y,
|
|
6150
6167
|
nt as Z,
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6168
|
+
tn as _,
|
|
6169
|
+
js as a,
|
|
6170
|
+
Cl as a0,
|
|
6171
|
+
Sl as a1,
|
|
6172
|
+
Gt as a2,
|
|
6173
|
+
Il as a3,
|
|
6157
6174
|
Yt as a4,
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6175
|
+
El as a5,
|
|
6176
|
+
Us as a6,
|
|
6177
|
+
Ys as b,
|
|
6178
|
+
Ws as c,
|
|
6179
|
+
Xs as d,
|
|
6180
|
+
Qs as e,
|
|
6181
|
+
Zs as f,
|
|
6182
|
+
qs as g,
|
|
6183
|
+
nl as h,
|
|
6184
|
+
sl as i,
|
|
6185
|
+
rl as j,
|
|
6186
|
+
ll as k,
|
|
6187
|
+
wl as l,
|
|
6188
|
+
ml as m,
|
|
6189
|
+
vl as n,
|
|
6190
|
+
xl as o,
|
|
6191
|
+
fl as p,
|
|
6192
|
+
bl as q,
|
|
6193
|
+
kl as r,
|
|
6177
6194
|
Ct as s,
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6195
|
+
gl as t,
|
|
6196
|
+
$s as u,
|
|
6197
|
+
Hs as v,
|
|
6198
|
+
Ea as w,
|
|
6199
|
+
Pa as x,
|
|
6200
|
+
ul as y,
|
|
6201
|
+
el as z
|
|
6185
6202
|
};
|