@ynput/ayon-frontend-shared 0.6.5 → 0.6.7
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 +3 -3
- package/dist/NewEntity.es.js +15 -15
- package/dist/ProjectTreeTable.es.js +430 -433
- package/dist/Slicer.es.js +11 -11
- package/dist/Views.es.js +213 -206
- package/dist/chunks/CodeEditor.es.js +30 -0
- package/dist/chunks/ColumnDropIndicator.styled.es.js +24 -24
- package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +103 -103
- package/dist/chunks/EntityPath.es.js +2 -2
- package/dist/chunks/EntityTooltip.es.js +1 -1
- package/dist/chunks/Feed.es.js +958 -931
- package/dist/chunks/JsonViewer.es.js +1 -1
- package/dist/chunks/Menu.es.js +169 -167
- package/dist/chunks/MenuItem.es.js +109 -74
- package/dist/chunks/MetaWidget.es.js +1537 -1516
- package/dist/chunks/PlayableIcon.es.js +127 -127
- package/dist/chunks/ReviewablesSelector.es.js +199 -196
- package/dist/chunks/SimpleForm.es.js +78 -75
- package/dist/chunks/SimpleTable.es.js +110 -110
- package/dist/chunks/Slicer.es.js +22 -22
- package/dist/chunks/TableSettingsFallback.es.js +1 -1
- package/dist/chunks/ThumbnailSimple.es.js +2 -2
- package/dist/chunks/VideoPlayer.es.js +1 -1
- package/dist/chunks/Watchers.es.js +19 -19
- package/dist/chunks/afterStartup.es.js +13 -0
- package/dist/chunks/getUris.es.js +926 -964
- package/dist/chunks/queryFilterToClientFilter.es.js +90 -81
- package/dist/chunks/searchTerms.es.js +1 -0
- package/dist/chunks/useHierarchySelection.es.js +2 -2
- package/dist/chunks/useLoadModule.es.js +24 -23
- package/dist/components.es.js +202 -200
- package/dist/context.es.js +521 -492
- package/dist/hooks.es.js +190 -166
- package/dist/types/ContextMenu.d.ts +1 -0
- package/dist/types/Feed.d.ts +1 -1
- package/dist/types/ProjectTreeTable.d.ts +4 -5
- package/dist/types/Slicer.d.ts +1 -1
- package/dist/types/Views.d.ts +13 -2
- package/dist/types/api.d.ts +203 -1175
- package/dist/types/components.d.ts +14 -3
- package/dist/types/context.d.ts +3 -2
- package/dist/types/hooks.d.ts +25 -1
- package/dist/types/util.d.ts +11 -1
- package/dist/util.es.js +44 -41
- package/package.json +2 -2
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsxs as w, jsx as n, Fragment as me } from "react/jsx-runtime";
|
|
2
2
|
import g, { css as It, keyframes as Wn } from "styled-components";
|
|
3
3
|
import { forwardRef as le, useRef as K, useState as U, useEffect as Z, useMemo as X, Fragment as Xn, useCallback as ee, useImperativeHandle as Qn } from "react";
|
|
4
|
-
import { Icon as
|
|
4
|
+
import { Icon as Y, InputNumber as pn, Button as H, IconSelect as Jn, InputText as Ae, Dialog as qe, FormLayout as Et, FormRow as te, Dropdown as pe, LockedInput as Zn, InputSwitch as De, Spacer as mn, SaveButton as gn, theme as fe } from "@ynput/ayon-react-components";
|
|
5
5
|
import { U as eo } from "./PlayableIcon.es.js";
|
|
6
6
|
import J from "clsx";
|
|
7
|
-
import { kebabCase as Me, isEqual as Bt, uniqueId as
|
|
7
|
+
import { kebabCase as Me, isEqual as Bt, uniqueId as Ye, startCase as Tt, camelCase as ut, upperFirst as to } from "lodash";
|
|
8
8
|
import { createPortal as hn } from "react-dom";
|
|
9
9
|
import { DndContext as We, closestCenter as Xe, DragOverlay as Nt, useSensors as Pt, useSensor as _t, PointerSensor as Dt } from "@dnd-kit/core";
|
|
10
|
-
import { useSortable as Qe, SortableContext as
|
|
10
|
+
import { useSortable as Qe, SortableContext as Oe, verticalListSortingStrategy as Le, arrayMove as At } from "@dnd-kit/sortable";
|
|
11
11
|
import { CSS as Je } from "@dnd-kit/utilities";
|
|
12
12
|
import { I as no } from "./InfoMessage.es.js";
|
|
13
13
|
import { S as vn } from "./SimpleForm.es.js";
|
|
14
14
|
import { br as oo, aY as ro, bp as fn, bn, bq as Ut, bg as io, b1 as ao, bm as yn, bj as xn, bi as so } from "./searchTerms.es.js";
|
|
15
15
|
import { bk as lo, bq as co, cD as uo, be as po, dB as ae, cl as mo } from "./getUris.es.js";
|
|
16
16
|
import "primereact/confirmdialog";
|
|
17
|
-
import {
|
|
17
|
+
import { l as go, b as ho, v as vo } from "./Watchers.es.js";
|
|
18
18
|
import { matchSorter as Ht } from "match-sorter";
|
|
19
19
|
import { J as fo } from "./JsonViewer.es.js";
|
|
20
20
|
import "@module-federation/enhanced/runtime";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
21
|
+
import { toast as bo } from "react-toastify";
|
|
22
|
+
import { d as wn, a as yo, a9 as Ze, u as et, x as Sn } from "./DeleteEntitiesContextInstance.es.js";
|
|
23
23
|
import "uuid";
|
|
24
24
|
import "semver";
|
|
25
25
|
import "./ContextMenuContextInstance.es.js";
|
|
26
26
|
import "react-redux";
|
|
27
27
|
import { g as ve } from "./iconUtils.es.js";
|
|
28
28
|
import { Link as xo } from "react-router-dom";
|
|
29
|
-
import {
|
|
29
|
+
import { aY as Q, a as ke, b as tt, b4 as wo, b9 as So, ax as xe, aZ as oe, ae as ko, b0 as zt, a_ as jt, b1 as Kt, ba as Co } from "./MetaWidget.es.js";
|
|
30
30
|
import "@tanstack/react-table";
|
|
31
31
|
import "date-fns";
|
|
32
32
|
import "lexical";
|
|
@@ -43,11 +43,11 @@ import { useDebounce as To } from "primereact/hooks";
|
|
|
43
43
|
import { c as No, a as kn, C as Cn, g as Po } from "./ColumnDropIndicator.es.js";
|
|
44
44
|
import { M as _o, D as Do, R as Ao } from "./realtimeUpdatesUtils.es.js";
|
|
45
45
|
import "@tanstack/react-virtual";
|
|
46
|
-
import { a as
|
|
46
|
+
import { a as Oo } from "./ColumnDropIndicator.styled.es.js";
|
|
47
47
|
import { g as In } from "./getEntityTypeIcon.es.js";
|
|
48
48
|
import "./MenuItem.es.js";
|
|
49
49
|
import "./EmptyPlaceholder.es.js";
|
|
50
|
-
import { M as
|
|
50
|
+
import { M as Lo, a as Ro, c as $o } from "./Menu.es.js";
|
|
51
51
|
import { a as En } from "./VersionUploadContextInstance.es.js";
|
|
52
52
|
import { Skeleton as Fo } from "primereact/skeleton";
|
|
53
53
|
import Mo from "react-perfect-scrollbar";
|
|
@@ -180,7 +180,7 @@ const Bo = g.div`
|
|
|
180
180
|
padding: 2px;
|
|
181
181
|
font-size: 20px;
|
|
182
182
|
}
|
|
183
|
-
`, Ko = "__everyone__",
|
|
183
|
+
`, Ko = "__everyone__", Yo = "__guests__", Yt = "group:", Gt = "team:", qt = "user:", Wt = "guest:", Go = g(Y)`
|
|
184
184
|
font-size: ${({ $size: e }) => `${e}px`};
|
|
185
185
|
&.withBackground {
|
|
186
186
|
display: flex;
|
|
@@ -199,9 +199,9 @@ const Bo = g.div`
|
|
|
199
199
|
withTooltip: s = !0
|
|
200
200
|
}) => {
|
|
201
201
|
let i = e, v = t;
|
|
202
|
-
i || (t.startsWith(qt) ? (i = "user", v = t.slice(qt.length)) : t.startsWith(
|
|
202
|
+
i || (t.startsWith(qt) ? (i = "user", v = t.slice(qt.length)) : t.startsWith(Yt) ? (i = "group", v = t.slice(Yt.length)) : t.startsWith(Gt) ? (i = "team", v = t.slice(Gt.length)) : t.startsWith(Wt) && (i = "guest", v = t.slice(Wt.length)));
|
|
203
203
|
const f = (c, l) => /* @__PURE__ */ n(
|
|
204
|
-
|
|
204
|
+
Go,
|
|
205
205
|
{
|
|
206
206
|
className: J({ withBackground: a }),
|
|
207
207
|
icon: c,
|
|
@@ -210,7 +210,7 @@ const Bo = g.div`
|
|
|
210
210
|
$size: a ? r - 6 : r
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
|
-
return i === "user" ? /* @__PURE__ */ n(eo, { name: v, fullName: s ? o : void 0, size: r }) : i === "group" ? f("shield_person", "Access group") : i === "team" ? f("groups", "Team") : i === "guest" || t ===
|
|
213
|
+
return i === "user" ? /* @__PURE__ */ n(eo, { name: v, fullName: s ? o : void 0, size: r }) : i === "group" ? f("shield_person", "Access group") : i === "team" ? f("groups", "Team") : i === "guest" || t === Yo ? f("badge", "Guest user") : t === Ko ? f("groups", "Everyone with access to the project") : f("person");
|
|
214
214
|
}, ys = le(
|
|
215
215
|
({
|
|
216
216
|
name: e,
|
|
@@ -288,7 +288,7 @@ const Bo = g.div`
|
|
|
288
288
|
flex-direction: column;
|
|
289
289
|
align-items: center;
|
|
290
290
|
gap: 8px;
|
|
291
|
-
`,
|
|
291
|
+
`, Ot = It`
|
|
292
292
|
display: flex;
|
|
293
293
|
align-items: center;
|
|
294
294
|
gap: 8px;
|
|
@@ -317,7 +317,7 @@ const Bo = g.div`
|
|
|
317
317
|
opacity: 0;
|
|
318
318
|
}
|
|
319
319
|
`, er = g.div`
|
|
320
|
-
${
|
|
320
|
+
${Ot}
|
|
321
321
|
cursor: pointer;
|
|
322
322
|
user-select: none;
|
|
323
323
|
padding: 8px;
|
|
@@ -378,13 +378,13 @@ const Bo = g.div`
|
|
|
378
378
|
user-select: none;
|
|
379
379
|
min-width: 80px;
|
|
380
380
|
`, _e = g.div`
|
|
381
|
-
${
|
|
381
|
+
${Ot}
|
|
382
382
|
&.footer {
|
|
383
383
|
justify-content: space-between;
|
|
384
384
|
padding: 0 8px;
|
|
385
385
|
}
|
|
386
386
|
`, Xt = g.div`
|
|
387
|
-
${
|
|
387
|
+
${Ot}
|
|
388
388
|
gap: 4px;
|
|
389
389
|
`, or = g.div`
|
|
390
390
|
border-radius: 4px;
|
|
@@ -635,16 +635,16 @@ const Bo = g.div`
|
|
|
635
635
|
className: J(i?.header?.className, { expanded: u }),
|
|
636
636
|
children: [
|
|
637
637
|
p && /* @__PURE__ */ n(or, { style: { backgroundColor: p } }),
|
|
638
|
-
l && /* @__PURE__ */ n(
|
|
638
|
+
l && /* @__PURE__ */ n(Y, { className: "icon", icon: l }),
|
|
639
639
|
/* @__PURE__ */ w("span", { children: [
|
|
640
640
|
" ",
|
|
641
641
|
c,
|
|
642
642
|
" "
|
|
643
643
|
] }),
|
|
644
644
|
/* @__PURE__ */ n("span", { className: "spacer" }),
|
|
645
|
-
/* @__PURE__ */ n(
|
|
645
|
+
/* @__PURE__ */ n(Y, { className: "icon toggle-expand", icon: u ? "collapse_all" : "expand_all" }),
|
|
646
646
|
/* @__PURE__ */ n(
|
|
647
|
-
|
|
647
|
+
Y,
|
|
648
648
|
{
|
|
649
649
|
...d,
|
|
650
650
|
...y,
|
|
@@ -695,7 +695,7 @@ const Bo = g.div`
|
|
|
695
695
|
}, [t, s, a]), {
|
|
696
696
|
items: i,
|
|
697
697
|
handleAddItem: (h) => {
|
|
698
|
-
f([...i, { ...e(), ...h, id:
|
|
698
|
+
f([...i, { ...e(), ...h, id: Ye() }]);
|
|
699
699
|
},
|
|
700
700
|
handleRemoveItem: (h) => () => {
|
|
701
701
|
f([...i.slice(0, h), ...i.slice(h + 1)]);
|
|
@@ -714,7 +714,7 @@ const Bo = g.div`
|
|
|
714
714
|
handleDuplicateItem: (h, k) => {
|
|
715
715
|
f([
|
|
716
716
|
...i.slice(0, h + 1),
|
|
717
|
-
{ ...i[h], id:
|
|
717
|
+
{ ...i[h], id: Ye(), ...k },
|
|
718
718
|
...i.slice(h + 1)
|
|
719
719
|
]);
|
|
720
720
|
},
|
|
@@ -744,7 +744,7 @@ const Bo = g.div`
|
|
|
744
744
|
v = i + o + s++;
|
|
745
745
|
return v;
|
|
746
746
|
}, lr = () => ({
|
|
747
|
-
id:
|
|
747
|
+
id: Ye(),
|
|
748
748
|
isExpanded: !0,
|
|
749
749
|
label: "",
|
|
750
750
|
value: "",
|
|
@@ -756,7 +756,7 @@ const Bo = g.div`
|
|
|
756
756
|
icon: r || void 0,
|
|
757
757
|
color: a || void 0
|
|
758
758
|
})), dr = (e) => e.map(({ label: t, value: o, icon: r, color: a }) => ({
|
|
759
|
-
id:
|
|
759
|
+
id: Ye(),
|
|
760
760
|
isExpanded: !1,
|
|
761
761
|
label: t,
|
|
762
762
|
value: o.toString(),
|
|
@@ -805,7 +805,7 @@ const Bo = g.div`
|
|
|
805
805
|
onDragStart: u,
|
|
806
806
|
onDragEnd: y,
|
|
807
807
|
children: [
|
|
808
|
-
/* @__PURE__ */ n(
|
|
808
|
+
/* @__PURE__ */ n(Oe, { items: s, strategy: Le, children: s.map((C, b) => /* @__PURE__ */ n(
|
|
809
809
|
Zt,
|
|
810
810
|
{
|
|
811
811
|
item: C,
|
|
@@ -851,7 +851,7 @@ const Bo = g.div`
|
|
|
851
851
|
}
|
|
852
852
|
)
|
|
853
853
|
] }) });
|
|
854
|
-
}, Pn = ({ icon: e, color: t, reserveSpace: o }) => oo(e) ? /* @__PURE__ */ n("img", { src: e, alt: "" }) : e ? /* @__PURE__ */ n(
|
|
854
|
+
}, Pn = ({ icon: e, color: t, reserveSpace: o }) => oo(e) ? /* @__PURE__ */ n("img", { src: e, alt: "" }) : e ? /* @__PURE__ */ n(Y, { icon: e, style: { color: t } }) : o ? /* @__PURE__ */ n("span", { className: "icon-slot" }) : null, nt = g.div`
|
|
855
855
|
display: flex;
|
|
856
856
|
align-items: center;
|
|
857
857
|
gap: var(--base-gap-small);
|
|
@@ -998,7 +998,7 @@ const Bo = g.div`
|
|
|
998
998
|
[x, P]
|
|
999
999
|
), N = $.some((T) => !!T.icon), B = (T) => {
|
|
1000
1000
|
T.stopPropagation(), T.key === "Escape" && o();
|
|
1001
|
-
},
|
|
1001
|
+
}, O = () => !d.length && !h ? /* @__PURE__ */ n(we, { children: "This resolver has no context params." }) : /* @__PURE__ */ w(Et, { children: [
|
|
1002
1002
|
h && /* @__PURE__ */ n(te, { label: "user", children: /* @__PURE__ */ n(
|
|
1003
1003
|
Dn,
|
|
1004
1004
|
{
|
|
@@ -1012,7 +1012,7 @@ const Bo = g.div`
|
|
|
1012
1012
|
V,
|
|
1013
1013
|
{
|
|
1014
1014
|
value: r[T],
|
|
1015
|
-
onChange: (F) => a((
|
|
1015
|
+
onChange: (F) => a((R) => ({ ...R, [T]: F }))
|
|
1016
1016
|
}
|
|
1017
1017
|
) : /* @__PURE__ */ n(we, { children: "Not supported in debug." }) }, T);
|
|
1018
1018
|
})
|
|
@@ -1050,7 +1050,7 @@ const Bo = g.div`
|
|
|
1050
1050
|
/* @__PURE__ */ w(hr, { children: [
|
|
1051
1051
|
/* @__PURE__ */ w(pt, { children: [
|
|
1052
1052
|
/* @__PURE__ */ n(mt, { children: "Context Params" }),
|
|
1053
|
-
|
|
1053
|
+
O()
|
|
1054
1054
|
] }),
|
|
1055
1055
|
/* @__PURE__ */ w(pt, { children: [
|
|
1056
1056
|
/* @__PURE__ */ n(mt, { children: "Form" }),
|
|
@@ -1085,7 +1085,7 @@ const Bo = g.div`
|
|
|
1085
1085
|
flex-direction: column;
|
|
1086
1086
|
gap: var(--base-gap-large);
|
|
1087
1087
|
flex: 1;
|
|
1088
|
-
`,
|
|
1088
|
+
`, Ge = g.span`
|
|
1089
1089
|
color: var(--md-sys-color-outline);
|
|
1090
1090
|
white-space: pre-line;
|
|
1091
1091
|
`, He = g.div`
|
|
@@ -1143,14 +1143,14 @@ const Bo = g.div`
|
|
|
1143
1143
|
if (i)
|
|
1144
1144
|
return /* @__PURE__ */ n(He, { children: Array.from({ length: gt + 1 }).map((d, h) => /* @__PURE__ */ n(Dr, { className: "loading" }, h)) });
|
|
1145
1145
|
if (v)
|
|
1146
|
-
return /* @__PURE__ */ n(He, { children: /* @__PURE__ */ w(
|
|
1146
|
+
return /* @__PURE__ */ n(He, { children: /* @__PURE__ */ w(Ge, { children: [
|
|
1147
1147
|
'Could not load options for "',
|
|
1148
1148
|
e,
|
|
1149
1149
|
'"',
|
|
1150
1150
|
f ? `: ${f}` : "."
|
|
1151
1151
|
] }) });
|
|
1152
1152
|
if (!c.length)
|
|
1153
|
-
return /* @__PURE__ */ n(He, { children: /* @__PURE__ */ w(
|
|
1153
|
+
return /* @__PURE__ */ n(He, { children: /* @__PURE__ */ w(Ge, { children: [
|
|
1154
1154
|
Ir,
|
|
1155
1155
|
l.length > 0 && ` This could be because in context parameters (${l.join(
|
|
1156
1156
|
", "
|
|
@@ -1168,7 +1168,7 @@ const Bo = g.div`
|
|
|
1168
1168
|
" more"
|
|
1169
1169
|
] })
|
|
1170
1170
|
] });
|
|
1171
|
-
},
|
|
1171
|
+
}, Or = ({
|
|
1172
1172
|
enumValues: e,
|
|
1173
1173
|
enumResolver: t,
|
|
1174
1174
|
enumResolverSettings: o,
|
|
@@ -1206,12 +1206,12 @@ const Bo = g.div`
|
|
|
1206
1206
|
onChange: (m) => r(m?.length ? m : void 0)
|
|
1207
1207
|
}
|
|
1208
1208
|
) : /* @__PURE__ */ w(me, { children: [
|
|
1209
|
-
!v && !d && /* @__PURE__ */ w(
|
|
1209
|
+
!v && !d && /* @__PURE__ */ w(Ge, { children: [
|
|
1210
1210
|
'Resolver "',
|
|
1211
1211
|
t,
|
|
1212
1212
|
'" is not available on this server. Options will be empty.'
|
|
1213
1213
|
] }),
|
|
1214
|
-
d?.description && /* @__PURE__ */ n(
|
|
1214
|
+
d?.description && /* @__PURE__ */ n(Ge, { children: d.description }),
|
|
1215
1215
|
C && /* @__PURE__ */ n(
|
|
1216
1216
|
_r,
|
|
1217
1217
|
{
|
|
@@ -1287,13 +1287,13 @@ const Bo = g.div`
|
|
|
1287
1287
|
{ value: "number", label: "Number", icon: ve("number", "integer") },
|
|
1288
1288
|
{ value: "checkbox", label: "Checkbox", icon: ve("checkbox", "boolean") },
|
|
1289
1289
|
{ value: "datetime", label: "Date and time", icon: ve("datetime", "datetime") }
|
|
1290
|
-
],
|
|
1290
|
+
], Lr = {
|
|
1291
1291
|
text: ["minLength", "maxLength", "regex"],
|
|
1292
1292
|
select: ["enum"],
|
|
1293
1293
|
number: ["ge", "gt", "le", "lt"],
|
|
1294
1294
|
checkbox: [],
|
|
1295
1295
|
datetime: []
|
|
1296
|
-
},
|
|
1296
|
+
}, Rr = {
|
|
1297
1297
|
checkbox: ["example"]
|
|
1298
1298
|
}, wt = (e, t, o) => {
|
|
1299
1299
|
switch (e) {
|
|
@@ -1421,13 +1421,13 @@ const Bo = g.div`
|
|
|
1421
1421
|
), k(e.data?.type === "float"));
|
|
1422
1422
|
}, [e]);
|
|
1423
1423
|
const C = !e, b = (I, _) => {
|
|
1424
|
-
u((
|
|
1424
|
+
u((L) => L && { ...L, [I]: _ });
|
|
1425
1425
|
}, m = (I, _) => {
|
|
1426
|
-
u((
|
|
1427
|
-
if (!
|
|
1428
|
-
return
|
|
1429
|
-
const M = { ...
|
|
1430
|
-
return { ...
|
|
1426
|
+
u((L) => {
|
|
1427
|
+
if (!L || !L.data)
|
|
1428
|
+
return L;
|
|
1429
|
+
const M = { ...L.data, [I]: _ };
|
|
1430
|
+
return { ...L, data: M };
|
|
1431
1431
|
});
|
|
1432
1432
|
};
|
|
1433
1433
|
let x = "";
|
|
@@ -1463,34 +1463,34 @@ const Bo = g.div`
|
|
|
1463
1463
|
(!I?.scope || I?.scope?.some((_) => p?.scope?.includes(_))) && $.push(I.value);
|
|
1464
1464
|
});
|
|
1465
1465
|
const N = [
|
|
1466
|
-
...
|
|
1466
|
+
...Lr[y] ?? [],
|
|
1467
1467
|
...y === "select" && p?.data?.type === "list_of_strings" ? ["minItems", "maxItems"] : []
|
|
1468
|
-
], B =
|
|
1468
|
+
], B = Rr[y] ?? [];
|
|
1469
1469
|
$ = [...$, ...N].filter((I) => !B.includes(I));
|
|
1470
|
-
const
|
|
1470
|
+
const O = {
|
|
1471
1471
|
enum: (I = [], _) => /* @__PURE__ */ n(
|
|
1472
|
-
|
|
1472
|
+
Or,
|
|
1473
1473
|
{
|
|
1474
1474
|
enumValues: I,
|
|
1475
1475
|
enumResolver: p?.data?.enumResolver,
|
|
1476
1476
|
enumResolverSettings: p?.data?.enumResolverSettings,
|
|
1477
1477
|
onChangeEnum: _,
|
|
1478
1478
|
onChangeResolver: z,
|
|
1479
|
-
onChangeResolverSettings: (
|
|
1479
|
+
onChangeResolverSettings: (L) => m("enumResolverSettings", L)
|
|
1480
1480
|
}
|
|
1481
1481
|
),
|
|
1482
1482
|
inherit: (I, _) => /* @__PURE__ */ n(
|
|
1483
1483
|
De,
|
|
1484
1484
|
{
|
|
1485
1485
|
checked: I,
|
|
1486
|
-
onChange: (
|
|
1486
|
+
onChange: (L) => _(L.target.checked)
|
|
1487
1487
|
}
|
|
1488
1488
|
),
|
|
1489
1489
|
booleanDefault: (I, _) => /* @__PURE__ */ n(
|
|
1490
1490
|
De,
|
|
1491
1491
|
{
|
|
1492
1492
|
checked: I,
|
|
1493
|
-
onChange: (
|
|
1493
|
+
onChange: (L) => _(L.target.checked)
|
|
1494
1494
|
}
|
|
1495
1495
|
)
|
|
1496
1496
|
}, z = (I) => {
|
|
@@ -1501,7 +1501,7 @@ const Bo = g.div`
|
|
|
1501
1501
|
}, V = (I) => {
|
|
1502
1502
|
const _ = I[0];
|
|
1503
1503
|
d(_), m("type", $r(_, h)), _ !== "select" && (m("enum", void 0), m("enumResolver", void 0), m("enumResolverSettings", void 0), m("minItems", void 0), m("maxItems", void 0)), _ !== "text" && p?.data?.regex && m("regex", ""), m("widget", void 0);
|
|
1504
|
-
},
|
|
1504
|
+
}, R = Ke.find((I) => I.value === y)?.widgets;
|
|
1505
1505
|
return /* @__PURE__ */ n(
|
|
1506
1506
|
qe,
|
|
1507
1507
|
{
|
|
@@ -1551,15 +1551,15 @@ const Bo = g.div`
|
|
|
1551
1551
|
style: { flex: 1 }
|
|
1552
1552
|
}
|
|
1553
1553
|
),
|
|
1554
|
-
|
|
1554
|
+
R && R.length > 0 && /* @__PURE__ */ n(
|
|
1555
1555
|
pe,
|
|
1556
1556
|
{
|
|
1557
1557
|
value: [
|
|
1558
|
-
p.data.widget ||
|
|
1558
|
+
p.data.widget || R.find((I) => I.isDefault)?.value || xt
|
|
1559
1559
|
],
|
|
1560
1560
|
disabled: p.builtin,
|
|
1561
1561
|
dataKey: "value",
|
|
1562
|
-
options:
|
|
1562
|
+
options: R,
|
|
1563
1563
|
onChange: (I) => m("widget", I[0] === xt ? void 0 : I[0]),
|
|
1564
1564
|
style: { flex: 0.5 }
|
|
1565
1565
|
}
|
|
@@ -1589,12 +1589,12 @@ const Bo = g.div`
|
|
|
1589
1589
|
) }),
|
|
1590
1590
|
$.map((I) => {
|
|
1591
1591
|
if (s.includes(I)) return null;
|
|
1592
|
-
let _ = null,
|
|
1592
|
+
let _ = null, L = to(I);
|
|
1593
1593
|
if (I === "enum" || I === "inherit") {
|
|
1594
|
-
const M =
|
|
1595
|
-
_ = M(p?.data[I], (
|
|
1594
|
+
const M = O[I];
|
|
1595
|
+
_ = M(p?.data[I], (G) => m(I, G));
|
|
1596
1596
|
} else if (I === "default" && p?.data?.type === "boolean")
|
|
1597
|
-
_ =
|
|
1597
|
+
_ = O.booleanDefault(
|
|
1598
1598
|
p?.data[I],
|
|
1599
1599
|
(M) => m(I, M)
|
|
1600
1600
|
);
|
|
@@ -1607,9 +1607,9 @@ const Bo = g.div`
|
|
|
1607
1607
|
isMin: I === "ge",
|
|
1608
1608
|
isFloat: p?.data?.type === "float",
|
|
1609
1609
|
onChange: (M) => {
|
|
1610
|
-
const
|
|
1610
|
+
const G = M.ge !== void 0 ? Number(M.ge) : void 0, ne = M.le !== void 0 ? Number(M.le) : void 0;
|
|
1611
1611
|
// @ts-expect-error
|
|
1612
|
-
M.ge !== void 0 && isNaN(
|
|
1612
|
+
M.ge !== void 0 && isNaN(G) || // @ts-expect-error
|
|
1613
1613
|
M.le !== void 0 && isNaN(ne) || u((re) => {
|
|
1614
1614
|
if (!re || !re.data) return re;
|
|
1615
1615
|
const be = { ...re.data, ...M };
|
|
@@ -1617,10 +1617,10 @@ const Bo = g.div`
|
|
|
1617
1617
|
});
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
),
|
|
1620
|
+
), L = I === "ge" ? "Min" : "Max";
|
|
1621
1621
|
} else {
|
|
1622
|
-
const M = (
|
|
1623
|
-
const ne =
|
|
1622
|
+
const M = (G) => {
|
|
1623
|
+
const ne = G.target.value;
|
|
1624
1624
|
switch (I) {
|
|
1625
1625
|
case "minLength":
|
|
1626
1626
|
case "maxLength":
|
|
@@ -1646,7 +1646,7 @@ const Bo = g.div`
|
|
|
1646
1646
|
return /* @__PURE__ */ n(
|
|
1647
1647
|
te,
|
|
1648
1648
|
{
|
|
1649
|
-
label:
|
|
1649
|
+
label: L,
|
|
1650
1650
|
style: {
|
|
1651
1651
|
alignItems: "flex-start"
|
|
1652
1652
|
},
|
|
@@ -1703,7 +1703,7 @@ const Bo = g.div`
|
|
|
1703
1703
|
width: 24px;
|
|
1704
1704
|
height: 24px;
|
|
1705
1705
|
}
|
|
1706
|
-
`, Cs = g(
|
|
1706
|
+
`, Cs = g(Y)`
|
|
1707
1707
|
width: 20px;
|
|
1708
1708
|
height: 20px;
|
|
1709
1709
|
min-width: 20px;
|
|
@@ -1813,7 +1813,7 @@ const Bo = g.div`
|
|
|
1813
1813
|
{ value: "hero", label: "Hero", short: "Hero", icon: "star" },
|
|
1814
1814
|
{ value: "latestDone", label: "Latest Done", short: "Done", icon: "check_circle" },
|
|
1815
1815
|
{ value: "latest", label: "Latest", short: "Latest", icon: "fiber_new" }
|
|
1816
|
-
], As = St.map((e) => e.value),
|
|
1816
|
+
], As = St.map((e) => e.value), Yr = ({ id: e, label: t }) => {
|
|
1817
1817
|
const { attributes: o, listeners: r, setNodeRef: a, transform: s, transition: i, isDragging: v } = Qe({
|
|
1818
1818
|
id: e
|
|
1819
1819
|
}), f = {
|
|
@@ -1829,12 +1829,12 @@ const Bo = g.div`
|
|
|
1829
1829
|
...o,
|
|
1830
1830
|
...r,
|
|
1831
1831
|
children: /* @__PURE__ */ w(An, { children: [
|
|
1832
|
-
/* @__PURE__ */ n(
|
|
1833
|
-
/* @__PURE__ */ n(
|
|
1832
|
+
/* @__PURE__ */ n(On, { children: /* @__PURE__ */ n(Y, { icon: "drag_indicator" }) }),
|
|
1833
|
+
/* @__PURE__ */ n(Ln, { children: t })
|
|
1834
1834
|
] })
|
|
1835
1835
|
}
|
|
1836
1836
|
);
|
|
1837
|
-
},
|
|
1837
|
+
}, Os = ({ value: e, onChange: t }) => {
|
|
1838
1838
|
const [o, r] = U(null), a = Pt(
|
|
1839
1839
|
_t(Dt, {
|
|
1840
1840
|
activationConstraint: {
|
|
@@ -1860,11 +1860,11 @@ const Bo = g.div`
|
|
|
1860
1860
|
}
|
|
1861
1861
|
r(null);
|
|
1862
1862
|
}, f = o ? St.find((c) => c.value === o) : null;
|
|
1863
|
-
return /* @__PURE__ */ w(
|
|
1863
|
+
return /* @__PURE__ */ w(Gr, { children: [
|
|
1864
1864
|
/* @__PURE__ */ w(Xr, { children: [
|
|
1865
1865
|
/* @__PURE__ */ n("span", { className: "label", children: "Product's featured version priority" }),
|
|
1866
1866
|
/* @__PURE__ */ n(
|
|
1867
|
-
|
|
1867
|
+
Y,
|
|
1868
1868
|
{
|
|
1869
1869
|
icon: "info",
|
|
1870
1870
|
"data-tooltip": "Choose which version will be displayed on the product card. The first available from the list will be used.",
|
|
@@ -1881,22 +1881,22 @@ const Bo = g.div`
|
|
|
1881
1881
|
onDragEnd: v,
|
|
1882
1882
|
children: [
|
|
1883
1883
|
/* @__PURE__ */ n(
|
|
1884
|
-
|
|
1884
|
+
Oe,
|
|
1885
1885
|
{
|
|
1886
1886
|
items: s.map((c) => c.value),
|
|
1887
|
-
strategy:
|
|
1888
|
-
children: /* @__PURE__ */ n(qr, { children: s.map((c) => /* @__PURE__ */ n(
|
|
1887
|
+
strategy: Le,
|
|
1888
|
+
children: /* @__PURE__ */ n(qr, { children: s.map((c) => /* @__PURE__ */ n(Yr, { id: c.value, label: c.label }, c.value)) })
|
|
1889
1889
|
}
|
|
1890
1890
|
),
|
|
1891
1891
|
/* @__PURE__ */ n(Nt, { children: f && /* @__PURE__ */ w(An, { className: "overlay", children: [
|
|
1892
|
-
/* @__PURE__ */ n(
|
|
1893
|
-
/* @__PURE__ */ n(
|
|
1892
|
+
/* @__PURE__ */ n(On, { children: /* @__PURE__ */ n(Y, { icon: "drag_indicator" }) }),
|
|
1893
|
+
/* @__PURE__ */ n(Ln, { children: f.label })
|
|
1894
1894
|
] }) })
|
|
1895
1895
|
]
|
|
1896
1896
|
}
|
|
1897
1897
|
)
|
|
1898
1898
|
] });
|
|
1899
|
-
},
|
|
1899
|
+
}, Gr = g.div`
|
|
1900
1900
|
display: flex;
|
|
1901
1901
|
flex-direction: column;
|
|
1902
1902
|
gap: var(--base-gap-small);
|
|
@@ -1931,11 +1931,11 @@ const Bo = g.div`
|
|
|
1931
1931
|
&:active {
|
|
1932
1932
|
cursor: grabbing;
|
|
1933
1933
|
}
|
|
1934
|
-
`,
|
|
1934
|
+
`, On = g.div`
|
|
1935
1935
|
display: flex;
|
|
1936
1936
|
align-items: center;
|
|
1937
1937
|
color: var(--md-sys-color-outline);
|
|
1938
|
-
`,
|
|
1938
|
+
`, Ln = g.span`
|
|
1939
1939
|
font-weight: 500;
|
|
1940
1940
|
color: var(--md-sys-color-on-surface);
|
|
1941
1941
|
`, Xr = g.div`
|
|
@@ -1952,8 +1952,8 @@ const Bo = g.div`
|
|
|
1952
1952
|
.icon {
|
|
1953
1953
|
cursor: pointer;
|
|
1954
1954
|
}
|
|
1955
|
-
`,
|
|
1956
|
-
({ tooltip: e = "This page will deprecated in a future version", ...t }, o) => /* @__PURE__ */ n(
|
|
1955
|
+
`, Ls = le(
|
|
1956
|
+
({ tooltip: e = "This page will deprecated in a future version", ...t }, o) => /* @__PURE__ */ n(Y, { icon: "ad_off", "data-tooltip": e, ...t, ref: o })
|
|
1957
1957
|
), Qr = g(H)`
|
|
1958
1958
|
transition: color 0.2s, background-color 0.2s, opacity 0.2s;
|
|
1959
1959
|
|
|
@@ -1987,9 +1987,9 @@ const Bo = g.div`
|
|
|
1987
1987
|
&.rounded {
|
|
1988
1988
|
border-radius: var(--border-radius-xl);
|
|
1989
1989
|
}
|
|
1990
|
-
`,
|
|
1990
|
+
`, Rs = le(
|
|
1991
1991
|
({ feature: e, variant: t = "outline", rounded: o = !0, bolt: r = !1, ...a }, s) => {
|
|
1992
|
-
const { setPowerpackDialog: i } =
|
|
1992
|
+
const { setPowerpackDialog: i } = yo(), v = (f) => {
|
|
1993
1993
|
i(e), a.onClick?.(f);
|
|
1994
1994
|
};
|
|
1995
1995
|
return /* @__PURE__ */ w(
|
|
@@ -2007,7 +2007,7 @@ const Bo = g.div`
|
|
|
2007
2007
|
"data-tooltip-delay": 0,
|
|
2008
2008
|
children: [
|
|
2009
2009
|
a.children,
|
|
2010
|
-
r && /* @__PURE__ */ n(
|
|
2010
|
+
r && /* @__PURE__ */ n(Y, { icon: "bolt", filled: !0, className: "bolt" })
|
|
2011
2011
|
]
|
|
2012
2012
|
}
|
|
2013
2013
|
);
|
|
@@ -2042,7 +2042,7 @@ const Bo = g.div`
|
|
|
2042
2042
|
}
|
|
2043
2043
|
|
|
2044
2044
|
.icon {
|
|
2045
|
-
font-variation-settings: 'FILL' 1
|
|
2045
|
+
font-variation-settings: 'FILL' 1;
|
|
2046
2046
|
}
|
|
2047
2047
|
|
|
2048
2048
|
.cancelButton {
|
|
@@ -2144,7 +2144,7 @@ const Bo = g.div`
|
|
|
2144
2144
|
"Update ",
|
|
2145
2145
|
i,
|
|
2146
2146
|
" ",
|
|
2147
|
-
/* @__PURE__ */ n(
|
|
2147
|
+
/* @__PURE__ */ n(Y, { icon: "arrow_right_alt" })
|
|
2148
2148
|
] }) })
|
|
2149
2149
|
] }) : `Required ${i} version installed already.`;
|
|
2150
2150
|
}
|
|
@@ -2211,10 +2211,10 @@ const Bo = g.div`
|
|
|
2211
2211
|
variant: "text",
|
|
2212
2212
|
className: "setting-option",
|
|
2213
2213
|
children: [
|
|
2214
|
-
u.icon && /* @__PURE__ */ n(
|
|
2214
|
+
u.icon && /* @__PURE__ */ n(Y, { icon: u.icon }),
|
|
2215
2215
|
/* @__PURE__ */ n("span", { className: "title", children: u.title }),
|
|
2216
2216
|
!!u.preview?.toString() && /* @__PURE__ */ n("span", { className: "preview", children: u.preview }),
|
|
2217
|
-
/* @__PURE__ */ n(
|
|
2217
|
+
/* @__PURE__ */ n(Y, { icon: "chevron_right", className: "arrow" })
|
|
2218
2218
|
]
|
|
2219
2219
|
},
|
|
2220
2220
|
u.id
|
|
@@ -2301,7 +2301,7 @@ const Bo = g.div`
|
|
|
2301
2301
|
|
|
2302
2302
|
&.active {
|
|
2303
2303
|
.icon {
|
|
2304
|
-
font-variation-settings: 'FILL' 1
|
|
2304
|
+
font-variation-settings: 'FILL' 1;
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
2307
|
|
|
@@ -2331,7 +2331,7 @@ const Bo = g.div`
|
|
|
2331
2331
|
ref: c,
|
|
2332
2332
|
children: [
|
|
2333
2333
|
o,
|
|
2334
|
-
e.icon && /* @__PURE__ */ n(
|
|
2334
|
+
e.icon && /* @__PURE__ */ n(Y, { icon: e.icon }),
|
|
2335
2335
|
/* @__PURE__ */ w("span", { className: "label", children: [
|
|
2336
2336
|
e.path && /* @__PURE__ */ w("span", { className: "label-path", children: [
|
|
2337
2337
|
e.path,
|
|
@@ -2346,7 +2346,7 @@ const Bo = g.div`
|
|
|
2346
2346
|
onClick: s ? void 0 : y,
|
|
2347
2347
|
...d,
|
|
2348
2348
|
children: [
|
|
2349
|
-
l && /* @__PURE__ */ n(
|
|
2349
|
+
l && /* @__PURE__ */ n(Y, { icon: l }),
|
|
2350
2350
|
d.children
|
|
2351
2351
|
]
|
|
2352
2352
|
},
|
|
@@ -2461,7 +2461,7 @@ const Bo = g.div`
|
|
|
2461
2461
|
// the row actions arm their own gestures
|
|
2462
2462
|
h.target.closest(".action") ? void 0 : y?.(h)
|
|
2463
2463
|
),
|
|
2464
|
-
startContent: f ? y ? /* @__PURE__ */ n(
|
|
2464
|
+
startContent: f ? y ? /* @__PURE__ */ n(Y, { icon: "drag_indicator", className: "hover-swap" }) : void 0 : /* @__PURE__ */ n("div", { ...i, className: "drag-handle", children: /* @__PURE__ */ n(Y, { icon: "drag_indicator" }) })
|
|
2465
2465
|
}
|
|
2466
2466
|
);
|
|
2467
2467
|
}, nn = ({
|
|
@@ -2513,10 +2513,10 @@ const Bo = g.div`
|
|
|
2513
2513
|
z-index: 1;
|
|
2514
2514
|
opacity: 0;
|
|
2515
2515
|
}
|
|
2516
|
-
`,
|
|
2516
|
+
`, Rn = "text_fields", $n = ({
|
|
2517
2517
|
field: e,
|
|
2518
2518
|
parentScope: t
|
|
2519
|
-
}) => e ? Q(e) : t ? In(t) :
|
|
2519
|
+
}) => e ? Q(e) : t ? In(t) : Rn, mi = (e) => e.length === 1 ? `${e[0].charAt(0).toUpperCase() + e[0].slice(1)} attributes` : "Attributes", Fn = (e = [], t = []) => [
|
|
2520
2520
|
{
|
|
2521
2521
|
id: "attributes",
|
|
2522
2522
|
label: mi(e),
|
|
@@ -2599,7 +2599,7 @@ const Bo = g.div`
|
|
|
2599
2599
|
const { menuOpen: o, setMenuOpen: r } = et();
|
|
2600
2600
|
return Z(() => {
|
|
2601
2601
|
!t.length && o === e && r(!1);
|
|
2602
|
-
}, [t.length, o, e, r]), /* @__PURE__ */ n(
|
|
2602
|
+
}, [t.length, o, e, r]), /* @__PURE__ */ n(Lo, { targetId: e, id: e, align: "left", children: /* @__PURE__ */ n(Ro, { menu: t, onClose: () => r(!1) }) });
|
|
2603
2603
|
}, gi = 300, Bn = ({
|
|
2604
2604
|
columnVisibility: e,
|
|
2605
2605
|
defaultColumnVisibility: t,
|
|
@@ -2715,25 +2715,25 @@ const Bo = g.div`
|
|
|
2715
2715
|
search: S,
|
|
2716
2716
|
onSearchChange: P
|
|
2717
2717
|
}) => {
|
|
2718
|
-
const [$, N] = U(null), [B,
|
|
2718
|
+
const [$, N] = U(null), [B, O] = U(!1), [z, T] = U(!1), [V, F] = U(!1), R = (E) => !!c && E === "name", {
|
|
2719
2719
|
baseVisibility: I,
|
|
2720
2720
|
displayVisibility: _,
|
|
2721
|
-
isVisible:
|
|
2721
|
+
isVisible: L,
|
|
2722
2722
|
onPaintStart: M,
|
|
2723
|
-
onPaintEnter:
|
|
2723
|
+
onPaintEnter: G,
|
|
2724
2724
|
toggle: ne,
|
|
2725
2725
|
cancelPaint: re
|
|
2726
2726
|
} = Bn({
|
|
2727
2727
|
columnVisibility: o,
|
|
2728
2728
|
defaultColumnVisibility: u,
|
|
2729
2729
|
updateColumnVisibility: r,
|
|
2730
|
-
isLocked:
|
|
2730
|
+
isLocked: R
|
|
2731
2731
|
}), { toggleMenuOpen: be } = et(), ye = K(null), ue = K({ columnVisibility: o, updateColumnVisibility: r });
|
|
2732
2732
|
ue.current = { columnVisibility: o, updateColumnVisibility: r };
|
|
2733
|
-
const
|
|
2733
|
+
const Re = K(null);
|
|
2734
2734
|
Z(() => {
|
|
2735
|
-
if (!t ||
|
|
2736
|
-
|
|
2735
|
+
if (!t || Re.current === t || !e.some((j) => j.value === t)) return;
|
|
2736
|
+
Re.current = t;
|
|
2737
2737
|
const { columnVisibility: E, updateColumnVisibility: D } = ue.current;
|
|
2738
2738
|
ae(E, t, u) || D({ ...E, [t]: !0 });
|
|
2739
2739
|
}, [t, e, u]), Z(() => {
|
|
@@ -2745,7 +2745,7 @@ const Bo = g.div`
|
|
|
2745
2745
|
distance: 5
|
|
2746
2746
|
}
|
|
2747
2747
|
})
|
|
2748
|
-
), $e = I, Ce = (E) => !
|
|
2748
|
+
), $e = I, Ce = (E) => !L(E), { visibleColumns: ge, pinnedColumns: ce } = X(() => {
|
|
2749
2749
|
const E = e.filter(
|
|
2750
2750
|
(W) => ae($e, W.value, u)
|
|
2751
2751
|
), D = E.filter((W) => a.left?.includes(W.value));
|
|
@@ -2782,13 +2782,13 @@ const Bo = g.div`
|
|
|
2782
2782
|
() => Vn({
|
|
2783
2783
|
columns: e,
|
|
2784
2784
|
onToggle: ne,
|
|
2785
|
-
isColumnVisible:
|
|
2785
|
+
isColumnVisible: L,
|
|
2786
2786
|
onPaintStart: M,
|
|
2787
|
-
onPaintEnter:
|
|
2787
|
+
onPaintEnter: G,
|
|
2788
2788
|
scopes: x
|
|
2789
2789
|
}),
|
|
2790
|
-
[e, _, ne, M,
|
|
2791
|
-
), Te = C ?? Ee,
|
|
2790
|
+
[e, _, ne, M, G, x]
|
|
2791
|
+
), Te = C ?? Ee, Rt = typeof S == "string" ? /* @__PURE__ */ n(
|
|
2792
2792
|
yi,
|
|
2793
2793
|
{
|
|
2794
2794
|
value: S,
|
|
@@ -2845,32 +2845,32 @@ const Bo = g.div`
|
|
|
2845
2845
|
j.id,
|
|
2846
2846
|
u
|
|
2847
2847
|
), se = a.left?.includes(j.id) || !1;
|
|
2848
|
-
|
|
2848
|
+
O(W && se), F(W && !se);
|
|
2849
2849
|
} else
|
|
2850
2850
|
F(!1);
|
|
2851
2851
|
}, Kn = (E) => {
|
|
2852
|
-
|
|
2852
|
+
O(!1), T(!1), F(!1);
|
|
2853
2853
|
const { active: D, over: j } = E;
|
|
2854
2854
|
if (j && D.id !== j.id) {
|
|
2855
2855
|
const W = [...ge, ...ce].find(
|
|
2856
2856
|
(de) => de.value === D.id
|
|
2857
2857
|
), se = [...ge, ...ce].find((de) => de.value === j.id);
|
|
2858
2858
|
if (W && se) {
|
|
2859
|
-
const de = D.id, at = j.id,
|
|
2859
|
+
const de = D.id, at = j.id, Yn = ae(
|
|
2860
2860
|
o,
|
|
2861
2861
|
de,
|
|
2862
2862
|
u
|
|
2863
|
-
),
|
|
2863
|
+
), Gn = ae(
|
|
2864
2864
|
o,
|
|
2865
2865
|
at,
|
|
2866
2866
|
u
|
|
2867
2867
|
), st = a.left?.includes(de) || !1, lt = a.left?.includes(at) || !1, Ne = $t({});
|
|
2868
|
-
if (
|
|
2868
|
+
if (Yn && Gn) {
|
|
2869
2869
|
let Pe = [...Ne.columnPinning.left || []];
|
|
2870
2870
|
st !== lt && (st && !lt ? Pe = Pe.filter((dt) => dt !== de) : !st && lt && (Pe = [...Pe, de]));
|
|
2871
2871
|
const ct = [...q, ...A], Ft = ct.indexOf(de), Mt = ct.indexOf(at);
|
|
2872
2872
|
if (Ft === -1 || Mt === -1) {
|
|
2873
|
-
console.error("Invalid column order state"),
|
|
2873
|
+
console.error("Invalid column order state"), bo.error("Invalid column order state");
|
|
2874
2874
|
return;
|
|
2875
2875
|
}
|
|
2876
2876
|
const Vt = At(ct, Ft, Mt), qn = Vt.filter((dt) => Pe.includes(dt));
|
|
@@ -2884,7 +2884,7 @@ const Bo = g.div`
|
|
|
2884
2884
|
N(null);
|
|
2885
2885
|
}, Fe = $ ? [...ge, ...ce].find((E) => E.value === $) : null;
|
|
2886
2886
|
return typeof S == "string" ? /* @__PURE__ */ w(on, { ref: ye, "data-column-drag-origin": !0, children: [
|
|
2887
|
-
|
|
2887
|
+
Rt,
|
|
2888
2888
|
/* @__PURE__ */ n(Ct, { menuId: ze, menuItems: Te }),
|
|
2889
2889
|
/* @__PURE__ */ w(vt, { children: [
|
|
2890
2890
|
/* @__PURE__ */ n(ft, { children: "All Columns" }),
|
|
@@ -2896,12 +2896,12 @@ const Bo = g.div`
|
|
|
2896
2896
|
isPinned: a.left?.includes(E.value) || !1,
|
|
2897
2897
|
isHidden: Ce(E.value),
|
|
2898
2898
|
isHighlighted: t === E.value,
|
|
2899
|
-
isDisabled:
|
|
2899
|
+
isDisabled: R(E.value),
|
|
2900
2900
|
hideDragHandle: !0,
|
|
2901
2901
|
onTogglePinning: it,
|
|
2902
2902
|
onToggleVisibility: ne,
|
|
2903
2903
|
onPaintStart: M,
|
|
2904
|
-
onPaintEnter:
|
|
2904
|
+
onPaintEnter: G,
|
|
2905
2905
|
onDragStart: (D) => b?.(E, D)
|
|
2906
2906
|
},
|
|
2907
2907
|
E.value
|
|
@@ -2916,15 +2916,15 @@ const Bo = g.div`
|
|
|
2916
2916
|
onDragOver: jn,
|
|
2917
2917
|
onDragEnd: Kn,
|
|
2918
2918
|
children: /* @__PURE__ */ w(on, { ref: ye, "data-column-drag-origin": !0, children: [
|
|
2919
|
-
|
|
2919
|
+
Rt,
|
|
2920
2920
|
/* @__PURE__ */ n(Ct, { menuId: ze, menuItems: Te }),
|
|
2921
2921
|
ce.length > 0 && /* @__PURE__ */ w(vt, { className: B && !z ? "drop-target" : "", children: [
|
|
2922
2922
|
/* @__PURE__ */ n(ft, { children: "Pinned Columns" }),
|
|
2923
2923
|
/* @__PURE__ */ n(
|
|
2924
|
-
|
|
2924
|
+
Oe,
|
|
2925
2925
|
{
|
|
2926
2926
|
items: Ie.map((E) => E.value),
|
|
2927
|
-
strategy:
|
|
2927
|
+
strategy: Le,
|
|
2928
2928
|
children: /* @__PURE__ */ n(ht, { children: Ie.map((E) => /* @__PURE__ */ n(
|
|
2929
2929
|
nn,
|
|
2930
2930
|
{
|
|
@@ -2932,12 +2932,12 @@ const Bo = g.div`
|
|
|
2932
2932
|
column: je(E, x),
|
|
2933
2933
|
isPinned: !0,
|
|
2934
2934
|
isHidden: Ce(E.value),
|
|
2935
|
-
isDisabled:
|
|
2935
|
+
isDisabled: R(E.value),
|
|
2936
2936
|
isHighlighted: t === E.value,
|
|
2937
2937
|
onTogglePinning: it,
|
|
2938
2938
|
onToggleVisibility: ne,
|
|
2939
2939
|
onPaintStart: M,
|
|
2940
|
-
onPaintEnter:
|
|
2940
|
+
onPaintEnter: G,
|
|
2941
2941
|
onDragStart: (D) => b?.(E, D)
|
|
2942
2942
|
},
|
|
2943
2943
|
E.value
|
|
@@ -2948,10 +2948,10 @@ const Bo = g.div`
|
|
|
2948
2948
|
/* @__PURE__ */ w(vt, { className: z && V ? "drop-target" : "", children: [
|
|
2949
2949
|
/* @__PURE__ */ n(ft, { children: "Visible Columns" }),
|
|
2950
2950
|
/* @__PURE__ */ n(
|
|
2951
|
-
|
|
2951
|
+
Oe,
|
|
2952
2952
|
{
|
|
2953
2953
|
items: ie.map((E) => E.value),
|
|
2954
|
-
strategy:
|
|
2954
|
+
strategy: Le,
|
|
2955
2955
|
children: /* @__PURE__ */ n(ht, { children: ie.map((E) => /* @__PURE__ */ n(
|
|
2956
2956
|
nn,
|
|
2957
2957
|
{
|
|
@@ -2960,11 +2960,11 @@ const Bo = g.div`
|
|
|
2960
2960
|
isPinned: !1,
|
|
2961
2961
|
isHidden: Ce(E.value),
|
|
2962
2962
|
isHighlighted: t === E.value,
|
|
2963
|
-
isDisabled:
|
|
2963
|
+
isDisabled: R(E.value),
|
|
2964
2964
|
onTogglePinning: it,
|
|
2965
2965
|
onToggleVisibility: ne,
|
|
2966
2966
|
onPaintStart: M,
|
|
2967
|
-
onPaintEnter:
|
|
2967
|
+
onPaintEnter: G,
|
|
2968
2968
|
onDragStart: (D) => b?.(E, D)
|
|
2969
2969
|
},
|
|
2970
2970
|
E.value
|
|
@@ -3258,7 +3258,7 @@ const Bo = g.div`
|
|
|
3258
3258
|
"data-sort-id": e.value,
|
|
3259
3259
|
className: c ? "dragging" : void 0,
|
|
3260
3260
|
style: { transform: Je.Translate.toString(v), transition: f },
|
|
3261
|
-
startContent: /* @__PURE__ */ n("div", { ...a, ...s, className: "drag-handle", children: /* @__PURE__ */ n(
|
|
3261
|
+
startContent: /* @__PURE__ */ n("div", { ...a, ...s, className: "drag-handle", children: /* @__PURE__ */ n(Y, { icon: "drag_indicator" }) }),
|
|
3262
3262
|
actions: [
|
|
3263
3263
|
{
|
|
3264
3264
|
icon: t ? "arrow_downward" : "arrow_upward",
|
|
@@ -3302,10 +3302,10 @@ const Bo = g.div`
|
|
|
3302
3302
|
collisionDetection: Xe,
|
|
3303
3303
|
onDragEnd: f,
|
|
3304
3304
|
children: /* @__PURE__ */ n(
|
|
3305
|
-
|
|
3305
|
+
Oe,
|
|
3306
3306
|
{
|
|
3307
3307
|
items: e.map((u) => u.id),
|
|
3308
|
-
strategy:
|
|
3308
|
+
strategy: Le,
|
|
3309
3309
|
children: /* @__PURE__ */ n(ln, { children: e.map((u) => /* @__PURE__ */ n(
|
|
3310
3310
|
Di,
|
|
3311
3311
|
{
|
|
@@ -3339,7 +3339,7 @@ const Bo = g.div`
|
|
|
3339
3339
|
] })
|
|
3340
3340
|
] })
|
|
3341
3341
|
] });
|
|
3342
|
-
},
|
|
3342
|
+
}, Oi = (e = []) => {
|
|
3343
3343
|
const { sorting: t, updateSorting: o } = ke(), { attribFields: r, scopes: a } = tt(), s = [
|
|
3344
3344
|
...wo(a, e).map((l) => ({
|
|
3345
3345
|
value: l.id,
|
|
@@ -3366,11 +3366,11 @@ const Bo = g.div`
|
|
|
3366
3366
|
preview: t.length ? f(t[0].id) + (t.length > 1 ? ` +${t.length - 1}` : "") : "None",
|
|
3367
3367
|
component: /* @__PURE__ */ n(Ai, { sorting: t, options: v, onChange: o })
|
|
3368
3368
|
};
|
|
3369
|
-
},
|
|
3369
|
+
}, Lt = [Do, Ao], cn = 5, Li = `#${$o}, [data-column-drag-origin]`, Ri = (e, t) => {
|
|
3370
3370
|
const r = document.querySelector(`[${kn}]`)?.getBoundingClientRect();
|
|
3371
3371
|
if (!r || e < r.left || e > r.right || t < r.top || t > r.bottom) return;
|
|
3372
3372
|
const a = Array.from(document.querySelectorAll(Cn)).filter(
|
|
3373
|
-
(v) => !
|
|
3373
|
+
(v) => !Lt.includes(v.dataset.columnId || "")
|
|
3374
3374
|
), s = a.find((v) => {
|
|
3375
3375
|
const f = v.getBoundingClientRect();
|
|
3376
3376
|
return e >= f.left && e < f.right;
|
|
@@ -3379,8 +3379,8 @@ const Bo = g.div`
|
|
|
3379
3379
|
const i = a[a.length - 1];
|
|
3380
3380
|
return e >= i.getBoundingClientRect().right ? i : a[0];
|
|
3381
3381
|
}, dn = (e, t) => {
|
|
3382
|
-
const o = document.elementsFromPoint(e, t).map((i) => i.closest?.(Cn)).find(Boolean) ??
|
|
3383
|
-
if (!o || !r ||
|
|
3382
|
+
const o = document.elementsFromPoint(e, t).map((i) => i.closest?.(Cn)).find(Boolean) ?? Ri(e, t), r = o?.dataset.columnId;
|
|
3383
|
+
if (!o || !r || Lt.includes(r)) return null;
|
|
3384
3384
|
const a = o.getBoundingClientRect(), s = e < a.left + a.width / 2 ? "left" : "right";
|
|
3385
3385
|
return {
|
|
3386
3386
|
columnId: r,
|
|
@@ -3438,31 +3438,31 @@ const Bo = g.div`
|
|
|
3438
3438
|
getAllColumns: u
|
|
3439
3439
|
};
|
|
3440
3440
|
const m = ee((N, B) => {
|
|
3441
|
-
const
|
|
3442
|
-
(I) => I !== N && !
|
|
3443
|
-
), T = z.indexOf(B.columnId), V = T === -1 ? z.length : T + (B.side === "left" ? 0 : 1), F = [...z.slice(0, V), N, ...z.slice(V)],
|
|
3444
|
-
|
|
3445
|
-
columnVisibility: { ...
|
|
3441
|
+
const O = b.current, z = $i(O.columnOrder, O.getAllColumns()).filter(
|
|
3442
|
+
(I) => I !== N && !Lt.includes(I)
|
|
3443
|
+
), T = z.indexOf(B.columnId), V = T === -1 ? z.length : T + (B.side === "left" ? 0 : 1), F = [...z.slice(0, V), N, ...z.slice(V)], R = new Set(O.columnPinning.left || []);
|
|
3444
|
+
R.has(B.columnId) ? R.add(N) : R.delete(N), O.setColumnsConfig({
|
|
3445
|
+
columnVisibility: { ...O.columnVisibility, [N]: !0 },
|
|
3446
3446
|
columnOrder: F,
|
|
3447
|
-
columnPinning: { ...
|
|
3448
|
-
columnSizing:
|
|
3449
|
-
columnSummaries:
|
|
3450
|
-
columnSummaryScopes:
|
|
3451
|
-
columnSummaryFormats:
|
|
3452
|
-
groupBy:
|
|
3453
|
-
groupByConfig:
|
|
3454
|
-
sorting:
|
|
3455
|
-
rowHeight:
|
|
3447
|
+
columnPinning: { ...O.columnPinning, left: F.filter((I) => R.has(I)) },
|
|
3448
|
+
columnSizing: O.columnSizing,
|
|
3449
|
+
columnSummaries: O.columnSummaries,
|
|
3450
|
+
columnSummaryScopes: O.columnSummaryScopes,
|
|
3451
|
+
columnSummaryFormats: O.columnSummaryFormats,
|
|
3452
|
+
groupBy: O.groupBy,
|
|
3453
|
+
groupByConfig: O.groupByConfig,
|
|
3454
|
+
sorting: O.sorting,
|
|
3455
|
+
rowHeight: O.rowHeight
|
|
3456
3456
|
});
|
|
3457
3457
|
}, []), x = ee(() => {
|
|
3458
3458
|
k.current = null, C.current && h(null);
|
|
3459
3459
|
}, []), S = ee((N, B) => {
|
|
3460
|
-
const
|
|
3460
|
+
const O = B.currentTarget, z = O.getBoundingClientRect();
|
|
3461
3461
|
k.current = {
|
|
3462
3462
|
column: N,
|
|
3463
3463
|
x: B.clientX,
|
|
3464
3464
|
y: B.clientY,
|
|
3465
|
-
origin:
|
|
3465
|
+
origin: O.closest(Li),
|
|
3466
3466
|
immediate: !!B.target.closest?.(".hover-swap"),
|
|
3467
3467
|
grab: {
|
|
3468
3468
|
x: B.clientX - z.left,
|
|
@@ -3472,7 +3472,7 @@ const Bo = g.div`
|
|
|
3472
3472
|
};
|
|
3473
3473
|
}, []);
|
|
3474
3474
|
Z(() => {
|
|
3475
|
-
const N = (T, V, F) => !!F && document.elementsFromPoint(T, V).some((
|
|
3475
|
+
const N = (T, V, F) => !!F && document.elementsFromPoint(T, V).some((R) => F.contains(R)), B = (T) => {
|
|
3476
3476
|
const { clientX: V, clientY: F } = T;
|
|
3477
3477
|
if (C.current) {
|
|
3478
3478
|
h(
|
|
@@ -3480,16 +3480,16 @@ const Bo = g.div`
|
|
|
3480
3480
|
);
|
|
3481
3481
|
return;
|
|
3482
3482
|
}
|
|
3483
|
-
const
|
|
3484
|
-
|
|
3485
|
-
},
|
|
3483
|
+
const R = k.current;
|
|
3484
|
+
R && (Math.abs(V - R.x) < cn && Math.abs(F - R.y) < cn || !R.immediate && N(V, F, R.origin) || h({ column: R.column, x: V, y: F, grab: R.grab, target: dn(V, F) }));
|
|
3485
|
+
}, O = () => {
|
|
3486
3486
|
const T = C.current;
|
|
3487
3487
|
k.current = null, T && (Vi(), T.target && (m(T.column.value, T.target), y(!1)), h(null));
|
|
3488
3488
|
}, z = (T) => {
|
|
3489
3489
|
T.key === "Escape" && x();
|
|
3490
3490
|
};
|
|
3491
|
-
return window.addEventListener("pointermove", B), window.addEventListener("pointerup",
|
|
3492
|
-
window.removeEventListener("pointermove", B), window.removeEventListener("pointerup",
|
|
3491
|
+
return window.addEventListener("pointermove", B), window.addEventListener("pointerup", O), window.addEventListener("pointercancel", x), window.addEventListener("keydown", z), () => {
|
|
3492
|
+
window.removeEventListener("pointermove", B), window.removeEventListener("pointerup", O), window.removeEventListener("pointercancel", x), window.removeEventListener("keydown", z);
|
|
3493
3493
|
};
|
|
3494
3494
|
}, [m, x, y]);
|
|
3495
3495
|
const P = d ? document.querySelector(`[${kn}]`)?.getBoundingClientRect() : void 0, $ = d ? hn(
|
|
@@ -3515,12 +3515,12 @@ const Bo = g.div`
|
|
|
3515
3515
|
},
|
|
3516
3516
|
className: Mi(d),
|
|
3517
3517
|
children: [
|
|
3518
|
-
d.column.icon && /* @__PURE__ */ n(
|
|
3518
|
+
d.column.icon && /* @__PURE__ */ n(Y, { icon: d.column.icon }),
|
|
3519
3519
|
/* @__PURE__ */ n("span", { children: d.column.label })
|
|
3520
3520
|
]
|
|
3521
3521
|
}
|
|
3522
3522
|
),
|
|
3523
|
-
d.target && /* @__PURE__ */ n(
|
|
3523
|
+
d.target && /* @__PURE__ */ n(Oo, { style: d.target.line })
|
|
3524
3524
|
] }),
|
|
3525
3525
|
document.body
|
|
3526
3526
|
) : null;
|
|
@@ -3736,7 +3736,7 @@ const Bo = g.div`
|
|
|
3736
3736
|
),
|
|
3737
3737
|
...e.map((c) => ({
|
|
3738
3738
|
...c,
|
|
3739
|
-
icon: c.icon ??
|
|
3739
|
+
icon: c.icon ?? Rn
|
|
3740
3740
|
}))
|
|
3741
3741
|
],
|
|
3742
3742
|
[i, s, a, o, r, e]
|
|
@@ -3794,8 +3794,8 @@ const Bo = g.div`
|
|
|
3794
3794
|
hiddenColumns: o,
|
|
3795
3795
|
includeLinks: s,
|
|
3796
3796
|
parentColumns: l
|
|
3797
|
-
}), B = a && Co(a, p),
|
|
3798
|
-
(
|
|
3797
|
+
}), B = a && Co(a, p), O = N.filter(
|
|
3798
|
+
(L) => ae(y, L.value, d)
|
|
3799
3799
|
).length, {
|
|
3800
3800
|
menuItems: z,
|
|
3801
3801
|
dragOverlay: T,
|
|
@@ -3805,12 +3805,12 @@ const Bo = g.div`
|
|
|
3805
3805
|
columns: N,
|
|
3806
3806
|
scopes: u,
|
|
3807
3807
|
extraItems: c
|
|
3808
|
-
}),
|
|
3808
|
+
}), R = Ei({ scope: f }), I = Oi($), _ = [
|
|
3809
3809
|
{
|
|
3810
3810
|
id: "columns",
|
|
3811
3811
|
title: "Columns",
|
|
3812
3812
|
icon: "view_column",
|
|
3813
|
-
preview: `${
|
|
3813
|
+
preview: `${O}/${N.length}`,
|
|
3814
3814
|
headerActions: /* @__PURE__ */ n(
|
|
3815
3815
|
Ki,
|
|
3816
3816
|
{
|
|
@@ -3839,7 +3839,7 @@ const Bo = g.div`
|
|
|
3839
3839
|
] })
|
|
3840
3840
|
},
|
|
3841
3841
|
i ? null : I,
|
|
3842
|
-
|
|
3842
|
+
R,
|
|
3843
3843
|
{
|
|
3844
3844
|
id: "row-height",
|
|
3845
3845
|
component: /* @__PURE__ */ n(
|
|
@@ -3854,12 +3854,12 @@ const Bo = g.div`
|
|
|
3854
3854
|
)
|
|
3855
3855
|
}
|
|
3856
3856
|
].filter(Boolean);
|
|
3857
|
-
return e.forEach((
|
|
3858
|
-
if (r.includes(
|
|
3859
|
-
const M = _.findIndex((
|
|
3860
|
-
M !== -1 ? _[M] =
|
|
3857
|
+
return e.forEach((L) => {
|
|
3858
|
+
if (r.includes(L.id)) return;
|
|
3859
|
+
const M = _.findIndex((G) => G && "id" in G && G.id === L.id);
|
|
3860
|
+
M !== -1 ? _[M] = L : _.push(L);
|
|
3861
3861
|
}), /* @__PURE__ */ n(si, { settings: _, order: v });
|
|
3862
|
-
}, yt = "add-column-menu-table",
|
|
3862
|
+
}, yt = "add-column-menu-table", Yi = g.div`
|
|
3863
3863
|
position: absolute;
|
|
3864
3864
|
top: 4px;
|
|
3865
3865
|
right: 24px;
|
|
@@ -3869,7 +3869,7 @@ const Bo = g.div`
|
|
|
3869
3869
|
padding: 2px;
|
|
3870
3870
|
border-radius: 12px;
|
|
3871
3871
|
}
|
|
3872
|
-
`,
|
|
3872
|
+
`, Ys = ({
|
|
3873
3873
|
extraColumns: e,
|
|
3874
3874
|
hiddenColumns: t,
|
|
3875
3875
|
includeLinks: o,
|
|
@@ -3886,7 +3886,7 @@ const Bo = g.div`
|
|
|
3886
3886
|
scopes: f,
|
|
3887
3887
|
extraItems: r
|
|
3888
3888
|
});
|
|
3889
|
-
return s ? null : /* @__PURE__ */ w(
|
|
3889
|
+
return s ? null : /* @__PURE__ */ w(Yi, { children: [
|
|
3890
3890
|
/* @__PURE__ */ n(
|
|
3891
3891
|
H,
|
|
3892
3892
|
{
|
|
@@ -3901,7 +3901,7 @@ const Bo = g.div`
|
|
|
3901
3901
|
/* @__PURE__ */ n(Ct, { menuId: yt, menuItems: c }),
|
|
3902
3902
|
p
|
|
3903
3903
|
] });
|
|
3904
|
-
},
|
|
3904
|
+
}, Gs = g.a`
|
|
3905
3905
|
color: var(--md-sys-color-primary, #0066cc);
|
|
3906
3906
|
text-decoration: none;
|
|
3907
3907
|
cursor: pointer;
|
|
@@ -3913,7 +3913,7 @@ const Bo = g.div`
|
|
|
3913
3913
|
&:hover {
|
|
3914
3914
|
text-decoration: underline;
|
|
3915
3915
|
}
|
|
3916
|
-
`,
|
|
3916
|
+
`, Gi = g.div`
|
|
3917
3917
|
display: flex;
|
|
3918
3918
|
gap: var(--base-gap-small);
|
|
3919
3919
|
background-color: var(--md-sys-color-surface-container-high);
|
|
@@ -3933,7 +3933,7 @@ const Bo = g.div`
|
|
|
3933
3933
|
i.tagName === "INPUT" || i.tagName === "TEXTAREA" || i.isContentEditable || i.getAttribute("role") === "textbox" || i.tagName === "LI" || s.ctrlKey || s.metaKey || s.altKey || (s.key.toLowerCase() === "t" ? t(!1) : s.key.toLowerCase() === "c" && t(!0));
|
|
3934
3934
|
};
|
|
3935
3935
|
return window.addEventListener("keydown", a), () => window.removeEventListener("keydown", a);
|
|
3936
|
-
}, [t]), /* @__PURE__ */ w(
|
|
3936
|
+
}, [t]), /* @__PURE__ */ w(Gi, { ...o, ref: r, children: [
|
|
3937
3937
|
/* @__PURE__ */ n(
|
|
3938
3938
|
un,
|
|
3939
3939
|
{
|
|
@@ -4059,7 +4059,7 @@ const Bo = g.div`
|
|
|
4059
4059
|
folderProducts: P,
|
|
4060
4060
|
isFolderProductsLoading: $,
|
|
4061
4061
|
matchedProduct: N
|
|
4062
|
-
} = En(), [B,
|
|
4062
|
+
} = En(), [B, O] = U(!1), z = X(
|
|
4063
4063
|
() => P.map((A) => ({ value: A.name, label: A.name })),
|
|
4064
4064
|
[P]
|
|
4065
4065
|
), T = ee(
|
|
@@ -4067,10 +4067,10 @@ const Bo = g.div`
|
|
|
4067
4067
|
t("name", A.length > 0 ? A[0] : "");
|
|
4068
4068
|
},
|
|
4069
4069
|
[t]
|
|
4070
|
-
), V = N?.latestVersion ? `v${String(N.latestVersion.version).padStart(3, "0")}` : "", { data: F, isFetching:
|
|
4070
|
+
), V = N?.latestVersion ? `v${String(N.latestVersion.version).padStart(3, "0")}` : "", { data: F, isFetching: R } = mo(
|
|
4071
4071
|
{ projectName: a, taskId: k },
|
|
4072
4072
|
{ skip: !k }
|
|
4073
|
-
), I = b || !!k &&
|
|
4073
|
+
), I = b || !!k && R && !C, _ = F?.folderId || S, L = Sn(), M = F?.label || F?.name || C?.label || C?.name || "", G = F?.taskType || C?.taskType, ne = G ? L.getTaskType(G) : void 0, re = ne?.icon || "task_alt", be = F?.path ? F.path.substring(0, F.path.lastIndexOf("/")) : "", ye = L.getProductTypeOptions(), ue = X(() => L.productTypes.reduce((A, q) => (A[q.name] = q, A), {}), [L.productTypes]);
|
|
4074
4074
|
Z(() => {
|
|
4075
4075
|
const A = f.current, q = ue[A]?.name || "", he = ue[e.productType]?.name || "";
|
|
4076
4076
|
if (e.productType !== A && q && e.name.startsWith(q)) {
|
|
@@ -4079,7 +4079,7 @@ const Bo = g.div`
|
|
|
4079
4079
|
}
|
|
4080
4080
|
f.current = e.productType;
|
|
4081
4081
|
}, [e.productType, e.name, t]);
|
|
4082
|
-
const
|
|
4082
|
+
const Re = (A) => {
|
|
4083
4083
|
A.preventDefault();
|
|
4084
4084
|
const q = A.nativeEvent.submitter;
|
|
4085
4085
|
q && q.closest(".dropdown") || o(e);
|
|
@@ -4102,7 +4102,7 @@ const Bo = g.div`
|
|
|
4102
4102
|
{
|
|
4103
4103
|
id: "upload-version-form",
|
|
4104
4104
|
ref: l,
|
|
4105
|
-
onSubmit:
|
|
4105
|
+
onSubmit: Re,
|
|
4106
4106
|
noValidate: !0,
|
|
4107
4107
|
onKeyDown: (A) => {
|
|
4108
4108
|
if (A.key === "Enter" && (A.metaKey || A.ctrlKey)) {
|
|
@@ -4197,11 +4197,11 @@ const Bo = g.div`
|
|
|
4197
4197
|
na,
|
|
4198
4198
|
{
|
|
4199
4199
|
type: "button",
|
|
4200
|
-
onClick: () =>
|
|
4200
|
+
onClick: () => O(!0),
|
|
4201
4201
|
disabled: ie,
|
|
4202
4202
|
variant: "text",
|
|
4203
4203
|
children: [
|
|
4204
|
-
/* @__PURE__ */ n(
|
|
4204
|
+
/* @__PURE__ */ n(Y, { icon: re, style: { color: ne?.color } }),
|
|
4205
4205
|
/* @__PURE__ */ w(oa, { children: [
|
|
4206
4206
|
be && /* @__PURE__ */ w(ra, { children: [
|
|
4207
4207
|
be.split("/").filter(Boolean).join(" / "),
|
|
@@ -4232,7 +4232,7 @@ const Bo = g.div`
|
|
|
4232
4232
|
icon: "link",
|
|
4233
4233
|
label: "Link task",
|
|
4234
4234
|
variant: "text",
|
|
4235
|
-
onClick: () =>
|
|
4235
|
+
onClick: () => O(!0),
|
|
4236
4236
|
disabled: ie
|
|
4237
4237
|
}
|
|
4238
4238
|
) }) })
|
|
@@ -4247,9 +4247,9 @@ const Bo = g.div`
|
|
|
4247
4247
|
...k ? { task: { [k]: !0 } } : {}
|
|
4248
4248
|
},
|
|
4249
4249
|
onSubmit: (A) => {
|
|
4250
|
-
A.length > 0 && m(A[0]),
|
|
4250
|
+
A.length > 0 && m(A[0]), O(!1);
|
|
4251
4251
|
},
|
|
4252
|
-
onClose: () =>
|
|
4252
|
+
onClose: () => O(!1)
|
|
4253
4253
|
}
|
|
4254
4254
|
),
|
|
4255
4255
|
/* @__PURE__ */ n(te, { label: "Reviewable files" }),
|
|
@@ -4344,6 +4344,8 @@ const Bo = g.div`
|
|
|
4344
4344
|
}
|
|
4345
4345
|
);
|
|
4346
4346
|
}, ca = g.div`
|
|
4347
|
+
--reviewable-card-width: 62px;
|
|
4348
|
+
|
|
4347
4349
|
position: relative;
|
|
4348
4350
|
flex: 1;
|
|
4349
4351
|
z-index: 1000;
|
|
@@ -4358,6 +4360,7 @@ const Bo = g.div`
|
|
|
4358
4360
|
gap: var(--base-gap-small);
|
|
4359
4361
|
`, ua = g.div`
|
|
4360
4362
|
position: relative;
|
|
4363
|
+
flex-shrink: 0;
|
|
4361
4364
|
display: flex;
|
|
4362
4365
|
flex-direction: column;
|
|
4363
4366
|
align-items: center;
|
|
@@ -4379,9 +4382,8 @@ const Bo = g.div`
|
|
|
4379
4382
|
}
|
|
4380
4383
|
|
|
4381
4384
|
.file-thumbnail {
|
|
4382
|
-
width:
|
|
4383
|
-
|
|
4384
|
-
width: 62px;
|
|
4385
|
+
width: var(--reviewable-card-width);
|
|
4386
|
+
aspect-ratio: 16 / 9;
|
|
4385
4387
|
object-fit: cover;
|
|
4386
4388
|
border-radius: var(--border-radius-m);
|
|
4387
4389
|
}
|
|
@@ -4418,8 +4420,9 @@ const Bo = g.div`
|
|
|
4418
4420
|
transform: translateX(-100%) translateY(-50%);
|
|
4419
4421
|
z-index: 1000;
|
|
4420
4422
|
`, ma = g(H)`
|
|
4421
|
-
width:
|
|
4422
|
-
|
|
4423
|
+
width: var(--reviewable-card-width);
|
|
4424
|
+
aspect-ratio: 16 / 9;
|
|
4425
|
+
flex-shrink: 0;
|
|
4423
4426
|
background-color: var(--md-sys-color-surface-container-high);
|
|
4424
4427
|
|
|
4425
4428
|
&:hover {
|
|
@@ -4573,21 +4576,21 @@ export {
|
|
|
4573
4576
|
Is as D,
|
|
4574
4577
|
Ko as E,
|
|
4575
4578
|
Vs as F,
|
|
4576
|
-
|
|
4579
|
+
Yt as G,
|
|
4577
4580
|
ni as H,
|
|
4578
4581
|
zs as I,
|
|
4579
4582
|
si as J,
|
|
4580
4583
|
ot as K,
|
|
4581
|
-
|
|
4584
|
+
Ls as L,
|
|
4582
4585
|
Ms as M,
|
|
4583
4586
|
qo as N,
|
|
4584
4587
|
Ii as O,
|
|
4585
|
-
|
|
4586
|
-
|
|
4588
|
+
Rs as P,
|
|
4589
|
+
Gs as Q,
|
|
4587
4590
|
Hs as R,
|
|
4588
4591
|
bs as S,
|
|
4589
4592
|
ks as T,
|
|
4590
|
-
|
|
4593
|
+
Gt as U,
|
|
4591
4594
|
qs as V,
|
|
4592
4595
|
qt as W,
|
|
4593
4596
|
Ws as X,
|
|
@@ -4604,18 +4607,18 @@ export {
|
|
|
4604
4607
|
$s as j,
|
|
4605
4608
|
Us as k,
|
|
4606
4609
|
St as l,
|
|
4607
|
-
|
|
4610
|
+
Ys as m,
|
|
4608
4611
|
vs as n,
|
|
4609
4612
|
ws as o,
|
|
4610
4613
|
fi as p,
|
|
4611
4614
|
xi as q,
|
|
4612
4615
|
js as r,
|
|
4613
4616
|
As as s,
|
|
4614
|
-
|
|
4617
|
+
Yo as t,
|
|
4615
4618
|
Ds as u,
|
|
4616
4619
|
pr as v,
|
|
4617
4620
|
ar as w,
|
|
4618
|
-
|
|
4621
|
+
Os as x,
|
|
4619
4622
|
Wt as y,
|
|
4620
4623
|
Ks as z
|
|
4621
4624
|
};
|