@ynput/ayon-frontend-shared 0.6.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ContextMenu.es.js +44 -27
- package/dist/DetailsPanel.es.js +225 -224
- package/dist/ListTable.es.js +420 -420
- package/dist/NewEntity.es.js +42 -41
- package/dist/ProjectTreeTable.es.js +3517 -3378
- package/dist/Slicer.es.js +301 -276
- package/dist/Views.es.js +366 -352
- package/dist/api.es.js +428 -413
- package/dist/chunks/Actions.es.js +18 -17
- package/dist/chunks/ColumnDropIndicator.es.js +19 -18
- package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
- package/dist/chunks/ContextMenuContextInstance.es.js +4 -3
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +53 -41
- package/dist/chunks/DetailsDialog.es.js +26 -24
- package/dist/chunks/EmptyPlaceholder.es.js +3 -3
- package/dist/chunks/EmptyPlaceholderFlex.styled.es.js +40 -0
- package/dist/chunks/EntityPath.es.js +60 -59
- package/dist/chunks/EntityPickerDialog.es.js +88 -83
- package/dist/chunks/EntityTooltip.es.js +15 -14
- package/dist/chunks/EntityUpdatesContext.es.js +11 -11
- package/dist/chunks/Feed.es.js +864 -859
- package/dist/chunks/FilterErrorActions.es.js +4 -3
- package/dist/chunks/Menu.es.js +633 -289
- package/dist/chunks/MenuContext.es.js +1 -1
- package/dist/chunks/MetaWidget.es.js +2457 -2196
- package/dist/chunks/PlayableIcon.es.js +77 -76
- package/dist/chunks/ProjectContext.es.js +6 -6
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +625 -609
- package/dist/chunks/SimpleForm.es.js +1 -1
- package/dist/chunks/SimpleTable.es.js +386 -363
- package/dist/chunks/Slicer.es.js +954 -821
- package/dist/chunks/{DeleteEntitiesContextInstance.es.js → TableExportContextInstance.es.js} +190 -186
- package/dist/chunks/TableSettingsFallback.es.js +4 -3
- package/dist/chunks/ThumbnailSimple.es.js +100 -99
- package/dist/chunks/VideoPlayer.es.js +1 -1
- package/dist/chunks/Watchers.es.js +222 -221
- package/dist/chunks/getBundleMode.es.js +1 -1
- package/dist/chunks/getEntityTypeIcon.es.js +5 -4
- package/dist/chunks/getUris.es.js +3873 -3736
- package/dist/chunks/realtimeUpdatesUtils.es.js +91 -82
- package/dist/chunks/searchTerms.es.js +621 -499
- package/dist/chunks/sortLists.es.js +22 -0
- package/dist/chunks/useAttributeEnums.es.js +43 -43
- package/dist/chunks/useHierarchySelection.es.js +6 -5
- package/dist/chunks/useLoadModule.es.js +24 -23
- package/dist/chunks/viewUpdateHelper.es.js +16 -15
- package/dist/components.es.js +565 -531
- package/dist/context.es.js +529 -503
- package/dist/hooks.es.js +13 -13
- package/dist/index.es.js +4 -4
- package/dist/types/ContextMenu.d.ts +4 -1
- package/dist/types/Feed.d.ts +1 -1
- package/dist/types/ListTable.d.ts +1 -1
- package/dist/types/ProjectTreeTable.d.ts +123 -13
- package/dist/types/SimpleTable.d.ts +2 -1
- package/dist/types/Slicer.d.ts +26 -1
- package/dist/types/Views.d.ts +2 -0
- package/dist/types/api.d.ts +2359 -590
- package/dist/types/components.d.ts +30 -4
- package/dist/types/context.d.ts +94 -2
- package/dist/types/util.d.ts +54 -0
- package/dist/util.es.js +129 -119
- package/package.json +2 -2
- package/dist/chunks/MenuItem.es.js +0 -420
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsxs as R, jsx as t, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as _, useState as x, useEffect as le, useLayoutEffect as ae, createElement as
|
|
2
|
+
import { useRef as _, useState as x, useEffect as le, useLayoutEffect as ae, createElement as me, Fragment as ke } from "react";
|
|
3
3
|
import "./searchTerms.es.js";
|
|
4
|
-
import {
|
|
4
|
+
import { dx as Me, c0 as Ue, ce as Fe, dj as Te, b3 as Le, aS as We, aN as Ve, dn as Ne } from "./getUris.es.js";
|
|
5
5
|
import "primereact/confirmdialog";
|
|
6
|
-
import { useSensors as $e, useSensor as
|
|
6
|
+
import { useSensors as $e, useSensor as he, PointerSensor as Ae, KeyboardSensor as Oe, DndContext as qe, closestCenter as Ke, DragOverlay as Ze } from "@dnd-kit/core";
|
|
7
7
|
import { useSortable as _e, sortableKeyboardCoordinates as Be, SortableContext as Ge, verticalListSortingStrategy as Qe, arrayMove as He } from "@dnd-kit/sortable";
|
|
8
|
-
import { D as ze, R as Re, a as
|
|
8
|
+
import { D as ze, R as Re, a as Je, b as Xe, L as Ye, c as oe, u as je, d as et, T as tt, e as ge, U as nt, P as rt, C as it, f as at, S as J, M as ve, g as be, h as X, i as ye, j as ot, F as st } from "./Watchers.es.js";
|
|
9
9
|
import { CSS as lt } from "@dnd-kit/utilities";
|
|
10
10
|
import { toast as A } from "react-toastify";
|
|
11
11
|
import { u as ct } from "./useCreateContextMenu.es.js";
|
|
12
12
|
import { c as dt } from "./confirmDelete.es.js";
|
|
13
13
|
import "uuid";
|
|
14
14
|
import { camelCase as ut, upperFirst as pt } from "lodash";
|
|
15
|
-
import { Icon as Ce, Dialog as Se, InputText as xe, Toolbar as ft, Button as ce, SaveButton as
|
|
15
|
+
import { Icon as Ce, Dialog as Se, InputText as xe, Toolbar as ft, Button as ce, SaveButton as mt, FormRow as ht } from "@ynput/ayon-react-components";
|
|
16
16
|
import "@module-federation/enhanced/runtime";
|
|
17
|
-
import { o as Ee } from "./
|
|
17
|
+
import { o as Ee } from "./TableExportContextInstance.es.js";
|
|
18
18
|
import "semver";
|
|
19
19
|
import "react-dom";
|
|
20
20
|
import "react-redux";
|
|
21
|
+
import "react-router-dom";
|
|
21
22
|
import ue from "clsx";
|
|
22
23
|
import gt from "axios";
|
|
23
24
|
import "./ContextMenuContextInstance.es.js";
|
|
@@ -57,7 +58,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
57
58
|
(n) => n.processing && !a.find((I) => I.activityId === n.activityId) && i
|
|
58
59
|
), s = u.filter(
|
|
59
60
|
(n) => n.processing?.eventId
|
|
60
|
-
),
|
|
61
|
+
), m = u.filter(
|
|
61
62
|
(n) => !n.processing?.eventId
|
|
62
63
|
).filter(
|
|
63
64
|
(n) => n.availability === "conversionRequired"
|
|
@@ -66,7 +67,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
66
67
|
playable: a,
|
|
67
68
|
incompatible: y,
|
|
68
69
|
processing: s,
|
|
69
|
-
queued:
|
|
70
|
+
queued: m
|
|
70
71
|
};
|
|
71
72
|
}, xt = ({
|
|
72
73
|
onClose: r,
|
|
@@ -83,9 +84,9 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
83
84
|
f("");
|
|
84
85
|
};
|
|
85
86
|
}, [i, u.current]);
|
|
86
|
-
const [
|
|
87
|
+
const [m, { isLoading: n }] = Me(), I = async () => {
|
|
87
88
|
try {
|
|
88
|
-
await
|
|
89
|
+
await m({
|
|
89
90
|
projectName: a,
|
|
90
91
|
versionId: d,
|
|
91
92
|
activityId: g,
|
|
@@ -98,18 +99,18 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
98
99
|
}
|
|
99
100
|
}, E = (v) => {
|
|
100
101
|
v.preventDefault(), s && I();
|
|
101
|
-
},
|
|
102
|
+
}, h = () => {
|
|
102
103
|
f(""), r();
|
|
103
104
|
};
|
|
104
105
|
return /* @__PURE__ */ t(
|
|
105
106
|
Se,
|
|
106
107
|
{
|
|
107
108
|
onClose: r,
|
|
108
|
-
header: /* @__PURE__ */ t(
|
|
109
|
+
header: /* @__PURE__ */ t(Je, { children: `Editing label: ${i}` }),
|
|
109
110
|
footer: /* @__PURE__ */ R(ft, { children: [
|
|
110
|
-
/* @__PURE__ */ t(ce, { label: "Cancel", onClick:
|
|
111
|
+
/* @__PURE__ */ t(ce, { label: "Cancel", onClick: h, variant: "text" }),
|
|
111
112
|
/* @__PURE__ */ t(
|
|
112
|
-
|
|
113
|
+
mt,
|
|
113
114
|
{
|
|
114
115
|
label: "Save",
|
|
115
116
|
active: !!s,
|
|
@@ -135,26 +136,26 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
135
136
|
) })
|
|
136
137
|
}
|
|
137
138
|
);
|
|
138
|
-
},
|
|
139
|
+
}, on = ({
|
|
139
140
|
projectName: r,
|
|
140
141
|
versionId: i,
|
|
141
142
|
productId: a,
|
|
142
143
|
isLoadingVersion: d,
|
|
143
144
|
scope: g
|
|
144
145
|
}) => {
|
|
145
|
-
const { onOpenViewer: y, user: u, viewer: s, dispatch: f } = Ee(), { data:
|
|
146
|
+
const { onOpenViewer: y, user: u, viewer: s, dispatch: f } = Ee(), { data: m, isLoading: n } = Ue({ projectName: r }, { skip: !r }), I = u.data?.isManager || u.data?.isAdmin || !n && (!m?.activities?.enabled || !!m?.activities?.activities?.includes("reviewable")), {
|
|
146
147
|
data: E,
|
|
147
|
-
isFetching:
|
|
148
|
+
isFetching: h,
|
|
148
149
|
currentData: v
|
|
149
150
|
} = Fe(
|
|
150
151
|
{ projectName: r, versionId: i },
|
|
151
152
|
{ skip: !i || !r }
|
|
152
153
|
), P = !1, V = s?.reviewableIds || [], F = u.name, O = u.data?.isUser, [k, W] = x(null), [M, p] = x(null), c = $e(
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
he(Ae),
|
|
155
|
+
he(Oe, {
|
|
155
156
|
coordinateGetter: Be
|
|
156
157
|
})
|
|
157
|
-
), b = E?.reviewables || [], C = b.find((e) => e.fileId === M), $ = v?.id, K =
|
|
158
|
+
), b = E?.reviewables || [], C = b.find((e) => e.fileId === M), $ = v?.id, K = h && i !== $ || d, N = (e) => {
|
|
158
159
|
if (M) return console.log("Dragging, cannot open review");
|
|
159
160
|
const o = e.currentTarget.id;
|
|
160
161
|
if (!o || !a) return console.error("No reviewable id or product id");
|
|
@@ -239,7 +240,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
239
240
|
};
|
|
240
241
|
return /* @__PURE__ */ R(Q, { children: [
|
|
241
242
|
/* @__PURE__ */ t(
|
|
242
|
-
|
|
243
|
+
Xe,
|
|
243
244
|
{
|
|
244
245
|
projectName: r,
|
|
245
246
|
versionId: i,
|
|
@@ -355,35 +356,35 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
355
356
|
}, [g]), le(() => {
|
|
356
357
|
if (i && y.current && s.startsWith(de) && !u.current) {
|
|
357
358
|
y.current.focus();
|
|
358
|
-
const
|
|
359
|
-
y.current.setSelectionRange(
|
|
359
|
+
const h = de.length, v = s.length;
|
|
360
|
+
y.current.setSelectionRange(h, v), u.current = !0;
|
|
360
361
|
} else i || (u.current = !1);
|
|
361
362
|
}, [i, s]);
|
|
362
|
-
const
|
|
363
|
+
const m = () => {
|
|
363
364
|
s.trim() && d && d(s.trim());
|
|
364
365
|
}, n = () => {
|
|
365
366
|
f(g), a && a();
|
|
366
367
|
}, I = s.trim().length > 0;
|
|
367
368
|
return /* @__PURE__ */ t(Se, { isOpen: i, onClose: n, header: "Upload Entity", footer: /* @__PURE__ */ R("div", { style: { display: "flex", gap: "8px", justifyContent: "flex-end" }, children: [
|
|
368
369
|
/* @__PURE__ */ t(ce, { variant: "text", onClick: n, children: "Cancel" }),
|
|
369
|
-
/* @__PURE__ */ t(ce, { variant: "filled", onClick:
|
|
370
|
-
] }), size: "sm", children: /* @__PURE__ */ t("div", { style: { padding: "16px 0" }, children: /* @__PURE__ */ t(
|
|
370
|
+
/* @__PURE__ */ t(ce, { variant: "filled", onClick: m, disabled: !I, children: "Upload" })
|
|
371
|
+
] }), size: "sm", children: /* @__PURE__ */ t("div", { style: { padding: "16px 0" }, children: /* @__PURE__ */ t(ht, { label: "Product Name", children: /* @__PURE__ */ t(
|
|
371
372
|
xe,
|
|
372
373
|
{
|
|
373
374
|
ref: y,
|
|
374
375
|
placeholder: "Enter product name...",
|
|
375
376
|
value: s,
|
|
376
|
-
onChange: (
|
|
377
|
+
onChange: (h) => f(h.target.value),
|
|
377
378
|
autoFocus: !0,
|
|
378
|
-
onKeyDown: (
|
|
379
|
-
|
|
379
|
+
onKeyDown: (h) => {
|
|
380
|
+
h.key === "Enter" && I ? (h.preventDefault(), m()) : h.key === "Escape" && (h.preventDefault(), n());
|
|
380
381
|
}
|
|
381
382
|
}
|
|
382
383
|
) }) }) });
|
|
383
384
|
}, kt = [
|
|
384
385
|
{ id: "thumbnail", label: "Upload thumbnail", icon: "add_photo_alternate" },
|
|
385
386
|
{ id: "version", label: "Upload version", icon: "layers" }
|
|
386
|
-
],
|
|
387
|
+
], sn = ({
|
|
387
388
|
children: r = [],
|
|
388
389
|
entityType: i,
|
|
389
390
|
entities: a = [],
|
|
@@ -392,7 +393,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
392
393
|
versionsInputRef: y,
|
|
393
394
|
onVersionCreated: u
|
|
394
395
|
}) => {
|
|
395
|
-
const { dispatch: s } = Ee(), f = Dt(), [
|
|
396
|
+
const { dispatch: s } = Ee(), f = Dt(), [m, n] = x(!1), [I, E] = x(null), h = _(0), [v, P] = x(null), [V, F] = x(0), [O, k] = x(!1), [W, M] = x(null), p = a.length === 1 ? a[0] : null, c = p?.task?.id, b = p?.folder?.id, C = p?.product?.id, $ = p?.id, q = !!(p && i !== "representation"), { handleFileUpload: K } = je({
|
|
396
397
|
projectName: d,
|
|
397
398
|
versionId: $,
|
|
398
399
|
taskId: c,
|
|
@@ -406,7 +407,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
406
407
|
F(e);
|
|
407
408
|
}
|
|
408
409
|
}), N = kt.filter((e) => e.id === "version" ? q : !0), w = () => {
|
|
409
|
-
P(null), n(!1), E(null),
|
|
410
|
+
P(null), n(!1), E(null), h.current = 0, F(0), k(!1), M(null);
|
|
410
411
|
}, Z = async (e) => {
|
|
411
412
|
if (!W || !p) {
|
|
412
413
|
k(!1), M(null);
|
|
@@ -511,13 +512,13 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
511
512
|
console.error(o), A.error(o.message), w();
|
|
512
513
|
}
|
|
513
514
|
}, [pe] = Ne(), te = (e) => {
|
|
514
|
-
e.preventDefault(),
|
|
515
|
+
e.preventDefault(), h.current++, h.current === 1 && n(!0);
|
|
515
516
|
}, ne = (e) => {
|
|
516
|
-
e.preventDefault(),
|
|
517
|
+
e.preventDefault(), h.current--, h.current === 0 && (n(!1), E(null));
|
|
517
518
|
}, re = (e) => {
|
|
518
519
|
e.preventDefault();
|
|
519
520
|
}, ie = (e) => {
|
|
520
|
-
if (e.preventDefault(),
|
|
521
|
+
if (e.preventDefault(), h.current = 0, n(!1), E(null), !(!e.dataTransfer.files || e.dataTransfer.files.length === 0)) {
|
|
521
522
|
if (I === "thumbnail") {
|
|
522
523
|
P("thumbnail");
|
|
523
524
|
const o = e.dataTransfer.files[0];
|
|
@@ -537,14 +538,14 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
537
538
|
/* @__PURE__ */ R(
|
|
538
539
|
et,
|
|
539
540
|
{
|
|
540
|
-
className: ue({ dragging:
|
|
541
|
+
className: ue({ dragging: m }),
|
|
541
542
|
onDragEnter: te,
|
|
542
543
|
onDragLeave: ne,
|
|
543
544
|
onDragOver: re,
|
|
544
545
|
onDrop: ie,
|
|
545
546
|
children: [
|
|
546
547
|
/* @__PURE__ */ t(tt, { children: /* @__PURE__ */ t("div", { children: r }) }),
|
|
547
|
-
|
|
548
|
+
m && /* @__PURE__ */ t(ge, { children: N.map((e) => /* @__PURE__ */ t(
|
|
548
549
|
Rt,
|
|
549
550
|
{
|
|
550
551
|
id: e.id,
|
|
@@ -602,7 +603,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
602
603
|
}, se = () => /* @__PURE__ */ t("span", { className: "slash", children: "/" }), Mt = ["more", "versions"], Ie = (r) => {
|
|
603
604
|
const i = r.target, a = i.closest(".dropdown")?.id || "";
|
|
604
605
|
return [i, a];
|
|
605
|
-
},
|
|
606
|
+
}, ln = ({
|
|
606
607
|
projectName: r,
|
|
607
608
|
hideProjectName: i,
|
|
608
609
|
segments: a,
|
|
@@ -611,12 +612,12 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
611
612
|
entityType: y,
|
|
612
613
|
scope: u
|
|
613
614
|
}) => {
|
|
614
|
-
const s = _(null), [f,
|
|
615
|
+
const s = _(null), [f, m] = x(null), [n, I] = x(null), [E, h] = x(!1), v = _(null);
|
|
615
616
|
ae(() => {
|
|
616
|
-
I(null),
|
|
617
|
+
I(null), h(!0);
|
|
617
618
|
}, [a]), ae(() => {
|
|
618
619
|
if (!s.current) {
|
|
619
|
-
|
|
620
|
+
h(!1);
|
|
620
621
|
return;
|
|
621
622
|
}
|
|
622
623
|
const c = s.current, b = c.clientWidth, C = De(c);
|
|
@@ -630,7 +631,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
630
631
|
let w = Array.from($).slice(0, N).filter(
|
|
631
632
|
(Z) => Z.nodeType === Node.ELEMENT_NODE && Z.className.includes("full")
|
|
632
633
|
)?.length || 2;
|
|
633
|
-
w = Math.max(w, 1), I(w),
|
|
634
|
+
w = Math.max(w, 1), I(w), h(!1);
|
|
634
635
|
}, [s.current, E]), ae(() => {
|
|
635
636
|
if (!s.current || !v.current || !n) return;
|
|
636
637
|
const c = s.current, b = De(c) ?? 1 / 0, C = c.clientWidth - b;
|
|
@@ -642,18 +643,18 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
642
643
|
y === "version" && a.length > 0 && (F = a[a.length - 1], O = P.slice(0, -1));
|
|
643
644
|
const k = (c) => {
|
|
644
645
|
const [, b] = Ie(c);
|
|
645
|
-
b && !f &&
|
|
646
|
-
}, W = () =>
|
|
646
|
+
b && !f && m(b);
|
|
647
|
+
}, W = () => m(null), M = (c) => {
|
|
647
648
|
const [b, C] = Ie(c);
|
|
648
649
|
if (!Mt.includes(C)) return;
|
|
649
|
-
!!b.closest("li") ?
|
|
650
|
+
!!b.closest("li") ? m(null) : f !== C && m(C);
|
|
650
651
|
}, p = { scope: u, projectName: r };
|
|
651
652
|
return /* @__PURE__ */ R(at, { className: ue({ loading: g }), id: "entity-path", ref: s, children: [
|
|
652
|
-
!i && /* @__PURE__ */ t(
|
|
653
|
+
!i && /* @__PURE__ */ t(J, { children: r }),
|
|
653
654
|
!!V.length && /* @__PURE__ */ R(Q, { children: [
|
|
654
655
|
!i && /* @__PURE__ */ t(se, {}),
|
|
655
656
|
/* @__PURE__ */ R(
|
|
656
|
-
|
|
657
|
+
J,
|
|
657
658
|
{
|
|
658
659
|
className: "dropdown more",
|
|
659
660
|
id: "more",
|
|
@@ -662,14 +663,14 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
662
663
|
onClick: M,
|
|
663
664
|
children: [
|
|
664
665
|
"...",
|
|
665
|
-
f === "more" && /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t(be, { children: V.map((c) => /* @__PURE__ */
|
|
666
|
+
f === "more" && /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t(be, { children: V.map((c) => /* @__PURE__ */ me(X, { ...p, segment: c, key: c.id }, /* @__PURE__ */ t(ye, { children: c.label }))) }) })
|
|
666
667
|
]
|
|
667
668
|
}
|
|
668
669
|
)
|
|
669
670
|
] }),
|
|
670
671
|
O.map((c) => /* @__PURE__ */ R(ke, { children: [
|
|
671
672
|
/* @__PURE__ */ t(se, {}),
|
|
672
|
-
/* @__PURE__ */ t(
|
|
673
|
+
/* @__PURE__ */ t(X, { ...p, segment: c, className: "full", children: /* @__PURE__ */ t(J, { children: /* @__PURE__ */ t("span", { className: "label", children: c.label }) }) })
|
|
673
674
|
] }, c.id)),
|
|
674
675
|
F && /* @__PURE__ */ R(Q, { children: [
|
|
675
676
|
/* @__PURE__ */ t(se, {}),
|
|
@@ -683,18 +684,18 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
683
684
|
onClick: M,
|
|
684
685
|
children: [
|
|
685
686
|
/* @__PURE__ */ t(
|
|
686
|
-
|
|
687
|
+
X,
|
|
687
688
|
{
|
|
688
689
|
...p,
|
|
689
690
|
segment: F,
|
|
690
691
|
isOpen: f === "versions",
|
|
691
|
-
children: /* @__PURE__ */ R(
|
|
692
|
+
children: /* @__PURE__ */ R(J, { children: [
|
|
692
693
|
/* @__PURE__ */ t(st, { ref: v, className: "label", children: F.label }),
|
|
693
694
|
/* @__PURE__ */ t(Ce, { icon: "expand_more" })
|
|
694
695
|
] })
|
|
695
696
|
}
|
|
696
697
|
),
|
|
697
|
-
f === "versions" && /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t(be, { children: d.map((c) => /* @__PURE__ */
|
|
698
|
+
f === "versions" && /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t(be, { children: d.map((c) => /* @__PURE__ */ me(X, { ...p, segment: c, key: c.id }, /* @__PURE__ */ t(ye, { children: c.label }))) }) })
|
|
698
699
|
]
|
|
699
700
|
}
|
|
700
701
|
)
|
|
@@ -703,8 +704,8 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
703
704
|
}, De = (r) => {
|
|
704
705
|
const i = r.parentElement;
|
|
705
706
|
if (!i) return;
|
|
706
|
-
const a = getComputedStyle(i), d = parseInt(a.paddingLeft) || 0, g = parseInt(a.paddingRight) || 0, y = parseInt(a.gap) || 0, u = i.clientWidth - d - g, s = Array.from(i.children).filter((
|
|
707
|
-
(
|
|
707
|
+
const a = getComputedStyle(i), d = parseInt(a.paddingLeft) || 0, g = parseInt(a.paddingRight) || 0, y = parseInt(a.gap) || 0, u = i.clientWidth - d - g, s = Array.from(i.children).filter((m) => m.id !== "entity-path"), f = Array.from(s).reduce(
|
|
708
|
+
(m, n) => m + n.clientWidth,
|
|
708
709
|
0
|
|
709
710
|
);
|
|
710
711
|
return u - f - y * (s.length - 1);
|
|
@@ -712,14 +713,14 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
|
|
|
712
713
|
const d = a - i;
|
|
713
714
|
let g = 0;
|
|
714
715
|
for (let s = 0; s < a - d; s++) {
|
|
715
|
-
const f = s > 1 ? s + d : s,
|
|
716
|
-
isNaN(
|
|
716
|
+
const f = s > 1 ? s + d : s, m = r[f]?.clientWidth;
|
|
717
|
+
isNaN(m) || (g += m);
|
|
717
718
|
}
|
|
718
719
|
return g + (4 * i - 1) + 40;
|
|
719
720
|
};
|
|
720
721
|
export {
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
722
|
+
sn as E,
|
|
723
|
+
on as R,
|
|
724
|
+
ln as a,
|
|
724
725
|
St as g
|
|
725
726
|
};
|