@ynput/ayon-frontend-shared 0.4.6 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DetailsPanel.es.js +686 -653
- package/dist/ListTable.es.js +11 -10
- package/dist/ProjectTreeTable.es.js +2225 -2186
- package/dist/Slicer.es.js +152 -120
- package/dist/api.es.js +202 -201
- package/dist/chunks/Actions.es.js +20 -20
- package/dist/chunks/ColumnDropIndicator.es.js +128 -242
- package/dist/chunks/DeleteEntitiesContext.es.js +37 -37
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/EntityPath.es.js +23 -23
- package/dist/chunks/EntityPickerDialog.es.js +2 -2
- package/dist/chunks/EntityTooltip.es.js +12 -12
- package/dist/chunks/Feed.es.js +16 -16
- package/dist/chunks/FilterErrorActions.es.js +5 -5
- package/dist/chunks/GlobalContext.es.js +14 -14
- package/dist/chunks/InfoMessage.es.js +146 -0
- package/dist/chunks/JsonViewer.es.js +1 -1
- package/dist/chunks/Menu.es.js +5 -5
- package/dist/chunks/MenuContext.es.js +75 -73
- package/dist/chunks/MetaWidget.es.js +1970 -1962
- package/dist/chunks/NewEntityContext.es.js +538 -543
- package/dist/chunks/PlayableIcon.es.js +54 -54
- package/dist/chunks/ProjectContext.es.js +12 -12
- package/dist/chunks/ProjectFoldersContext.es.js +84 -76
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +390 -387
- package/dist/chunks/SimpleTable.es.js +286 -283
- package/dist/chunks/Slicer.es.js +1122 -684
- package/dist/chunks/VersionUploadContext.es.js +26 -26
- package/dist/chunks/VideoPlayer.es.js +1 -1
- package/dist/chunks/ViewsContext.es.js +31 -31
- package/dist/chunks/Watchers.es.js +2 -2
- package/dist/chunks/entityDefinitions.es.js +275 -133
- package/dist/chunks/getUris.es.js +236 -231
- package/dist/chunks/searchTerms.es.js +10 -1
- package/dist/chunks/useAttributeEnums.es.js +69 -61
- package/dist/chunks/useColumnDragRestriction.es.js +1 -1
- package/dist/chunks/useLocalStorage.es.js +11 -11
- package/dist/chunks/viewUpdateHelper.es.js +23 -23
- package/dist/components.es.js +168 -168
- package/dist/hooks.es.js +47 -46
- package/dist/index.es.js +14 -13
- package/dist/types/Actions.d.ts +7 -7
- package/dist/types/ContextMenu.d.ts +7 -7
- package/dist/types/DetailsPanel.d.ts +13 -7
- package/dist/types/EntityPickerDialog.d.ts +7 -7
- package/dist/types/Feed.d.ts +7 -7
- package/dist/types/ListTable.d.ts +7 -7
- package/dist/types/NewEntity.d.ts +7 -7
- package/dist/types/ProjectTreeTable.d.ts +35 -13
- package/dist/types/RepresentationsList.d.ts +10 -7
- package/dist/types/SimpleTable.d.ts +8 -7
- package/dist/types/Slicer.d.ts +110 -25
- package/dist/types/Views.d.ts +7 -7
- package/dist/types/api.d.ts +20 -7
- package/dist/types/components.d.ts +14 -12
- package/dist/types/context.d.ts +7 -7
- package/dist/types/hooks.d.ts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/util.d.ts +7 -7
- package/package.json +11 -1
- package/dist/chunks/useSlicerSplitter.es.js +0 -18
|
@@ -1,146 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { createContext as I, forwardRef as S, useRef as _, useState as M, useEffect as R } from "react";
|
|
2
|
+
import { jsxs as g, jsx as i, Fragment as y } from "react/jsx-runtime";
|
|
3
|
+
import { Button as v, Icon as D } from "@ynput/ayon-react-components";
|
|
4
|
+
import h from "clsx";
|
|
3
5
|
import c from "styled-components";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { u as R } from "./MenuContext.es.js";
|
|
7
|
-
import { d as z, c as D } from "./Menu.es.js";
|
|
6
|
+
import { u as O } from "./MenuContext.es.js";
|
|
7
|
+
import { M as P, a as z } from "./Menu.es.js";
|
|
8
8
|
import "./MenuItem.es.js";
|
|
9
9
|
import "./useLocalStorage.es.js";
|
|
10
10
|
import "@module-federation/enhanced/runtime";
|
|
11
|
-
import "
|
|
12
|
-
import { R as
|
|
11
|
+
import "semver";
|
|
12
|
+
import { R as C, D as w } from "./realtimeUpdatesUtils.es.js";
|
|
13
13
|
import "lodash";
|
|
14
14
|
import "primereact/confirmdialog";
|
|
15
15
|
import "react-toastify";
|
|
16
|
-
import { c as
|
|
16
|
+
import { c as A } from "./copyToClipboard.es.js";
|
|
17
17
|
import "uuid";
|
|
18
18
|
import "./searchTerms.es.js";
|
|
19
|
-
import { createPortal as
|
|
20
|
-
import { useDndContext as
|
|
21
|
-
const F =
|
|
22
|
-
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
gap: 16px;
|
|
26
|
-
padding: var(--padding-m) var(--padding-l);
|
|
27
|
-
border-radius: var(--border-radius-m);
|
|
28
|
-
font-weight: 600;
|
|
29
|
-
|
|
30
|
-
.content {
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
gap: 16px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.icon {
|
|
37
|
-
font-size: 24px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* default background */
|
|
41
|
-
&.info {
|
|
42
|
-
--message-background-color: var(--md-sys-color-secondary-container);
|
|
43
|
-
--message-color: var(--md-sys-color-on-secondary-container);
|
|
44
|
-
--button-background-color: var(--md-sys-color-secondary);
|
|
45
|
-
--button-background-color-hover: var(--md-sys-color-secondary-hover);
|
|
46
|
-
--button-color: var(--md-sys-color-on-secondary);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* warning background */
|
|
50
|
-
&.warning {
|
|
51
|
-
--message-background-color: var(--md-sys-color-warning-container);
|
|
52
|
-
--message-color: var(--md-sys-color-on-warning-container);
|
|
53
|
-
--button-background-color: var(--md-sys-color-warning);
|
|
54
|
-
--button-background-color-hover: hsl(25, 100%, 80%);
|
|
55
|
-
--button-color: var(--md-sys-color-on-warning);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* error background */
|
|
59
|
-
&.error {
|
|
60
|
-
--message-background-color: var(--md-sys-color-error-container);
|
|
61
|
-
--message-color: var(--md-sys-color-on-error-container);
|
|
62
|
-
--button-background-color: var(--md-sys-color-error);
|
|
63
|
-
--button-background-color-hover: var(--md-sys-color-error-hover);
|
|
64
|
-
--button-color: var(--md-sys-color-on-error);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* success background */
|
|
68
|
-
&.success {
|
|
69
|
-
--message-background-color: var(--md-sys-color-tertiary-container);
|
|
70
|
-
--message-color: var(--md-sys-color-on-tertiary-container);
|
|
71
|
-
--button-background-color: var(--md-sys-color-tertiary);
|
|
72
|
-
--button-background-color-hover: var(--md-sys-color-tertiary-hover);
|
|
73
|
-
--button-color: var(--md-sys-color-on-tertiary);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
background-color: var(--message-background-color);
|
|
77
|
-
&,
|
|
78
|
-
.icon {
|
|
79
|
-
color: var(--message-color);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
button {
|
|
83
|
-
&,
|
|
84
|
-
&.hasIcon {
|
|
85
|
-
padding: 4px;
|
|
86
|
-
}
|
|
87
|
-
background-color: var(--button-background-color);
|
|
88
|
-
&,
|
|
89
|
-
.icon {
|
|
90
|
-
color: var(--button-color);
|
|
91
|
-
}
|
|
92
|
-
&:hover {
|
|
93
|
-
background-color: var(--button-background-color-hover);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
`, yo = C(
|
|
97
|
-
({ variant: o = "info", message: t, icon: r, action: n, ...l }, a) => /* @__PURE__ */ m(
|
|
98
|
-
F,
|
|
99
|
-
{
|
|
100
|
-
...l,
|
|
101
|
-
className: g("message", l.className, o),
|
|
102
|
-
ref: a,
|
|
103
|
-
children: [
|
|
104
|
-
/* @__PURE__ */ m("div", { className: "content", children: [
|
|
105
|
-
/* @__PURE__ */ s(w, { icon: r || B(o) }),
|
|
106
|
-
t
|
|
107
|
-
] }),
|
|
108
|
-
n && /* @__PURE__ */ s(
|
|
109
|
-
y,
|
|
110
|
-
{
|
|
111
|
-
icon: n.icon,
|
|
112
|
-
onClick: (u) => {
|
|
113
|
-
u.stopPropagation(), n.callback();
|
|
114
|
-
},
|
|
115
|
-
children: n.label
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
), B = (o) => {
|
|
122
|
-
switch (o) {
|
|
123
|
-
case "info":
|
|
124
|
-
return "info";
|
|
125
|
-
case "warning":
|
|
126
|
-
return "warning";
|
|
127
|
-
case "error":
|
|
128
|
-
return "error";
|
|
129
|
-
case "success":
|
|
130
|
-
return "done_all";
|
|
131
|
-
default:
|
|
132
|
-
return "info";
|
|
133
|
-
}
|
|
134
|
-
}, T = (o) => {
|
|
135
|
-
const t = o.getIsPinned(), r = o.id !== b && o.id !== k ? -30 : 0;
|
|
19
|
+
import { createPortal as E } from "react-dom";
|
|
20
|
+
import { useDndContext as N } from "@dnd-kit/core";
|
|
21
|
+
const F = (t) => {
|
|
22
|
+
const o = t.getIsPinned(), n = t.id !== C && t.id !== w ? -30 : 0;
|
|
136
23
|
return {
|
|
137
|
-
left:
|
|
138
|
-
right:
|
|
139
|
-
position:
|
|
140
|
-
width:
|
|
141
|
-
zIndex:
|
|
24
|
+
left: o === "left" ? `${t.getStart("left") + n}px` : void 0,
|
|
25
|
+
right: o === "right" ? `${t.getAfter("right")}px` : void 0,
|
|
26
|
+
position: o ? "sticky" : "relative",
|
|
27
|
+
width: t.getSize(),
|
|
28
|
+
zIndex: o ? 100 : 0
|
|
142
29
|
};
|
|
143
|
-
},
|
|
30
|
+
}, B = (t) => `calc(var(--col-${t}-size) * 1px)`, ht = I(void 0), gt = S(({ ...t }, o) => /* @__PURE__ */ g(
|
|
144
31
|
"svg",
|
|
145
32
|
{
|
|
146
33
|
width: "25",
|
|
@@ -148,10 +35,10 @@ const F = c.div`
|
|
|
148
35
|
viewBox: "0 0 25 22",
|
|
149
36
|
fill: "none",
|
|
150
37
|
xmlns: "http://www.w3.org/2000/svg",
|
|
151
|
-
...
|
|
152
|
-
ref:
|
|
38
|
+
...t,
|
|
39
|
+
ref: o,
|
|
153
40
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ i(
|
|
155
42
|
"path",
|
|
156
43
|
{
|
|
157
44
|
d: "M0.938178 10.6543C0.816721 5.48877 5.1207 1.23771 10.4975 1.11128C15.8743 0.98486 20.3734 5.02894 20.4948 10.1945C20.6163 15.36 16.3122 19.6111 10.9354 19.7376C9.75118 19.7654 8.61022 19.5914 7.5495 19.2479C7.33438 19.1783 7.0983 19.1794 6.88174 19.2638L5.242 19.9017C4.31715 20.2614 3.35776 19.4629 3.54364 18.4881L3.72118 17.557C3.78241 17.2359 3.67515 16.9129 3.45681 16.6832C1.94083 15.0885 0.992941 12.9834 0.938178 10.6543Z",
|
|
@@ -159,7 +46,7 @@ const F = c.div`
|
|
|
159
46
|
strokeWidth: "1.5"
|
|
160
47
|
}
|
|
161
48
|
),
|
|
162
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ i(
|
|
163
50
|
"path",
|
|
164
51
|
{
|
|
165
52
|
d: "M15.3853 4.70168C19.9873 4.59348 23.892 8.06066 23.9977 12.5556C24.0445 14.5475 23.3301 16.3832 22.121 17.8111C22.0428 17.9034 22.0185 18.0146 22.041 18.108L22.2908 19.1496C22.5495 20.2281 21.5204 21.1699 20.469 20.8169L18.8159 20.2617C18.7509 20.2398 18.6726 20.2401 18.5934 20.2693C17.7115 20.5946 16.7586 20.7823 15.764 20.8057C11.1621 20.9139 7.2573 17.4467 7.1516 12.9517C7.04592 8.45675 10.7834 4.80988 15.3853 4.70168Z",
|
|
@@ -168,7 +55,7 @@ const F = c.div`
|
|
|
168
55
|
strokeWidth: "1.5"
|
|
169
56
|
}
|
|
170
57
|
),
|
|
171
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ i(
|
|
172
59
|
"path",
|
|
173
60
|
{
|
|
174
61
|
d: "M20.1373 12.6133C19.942 15.1992 17.8037 17.2074 15.2107 17.2402L14.7621 17.2459",
|
|
@@ -179,7 +66,7 @@ const F = c.div`
|
|
|
179
66
|
)
|
|
180
67
|
]
|
|
181
68
|
}
|
|
182
|
-
)),
|
|
69
|
+
)), T = c(v)`
|
|
183
70
|
width: 24px;
|
|
184
71
|
height: 24px;
|
|
185
72
|
padding: 2px;
|
|
@@ -201,16 +88,16 @@ const F = c.div`
|
|
|
201
88
|
&.selected {
|
|
202
89
|
display: flex !important;
|
|
203
90
|
}
|
|
204
|
-
`,
|
|
205
|
-
|
|
91
|
+
`, xt = ({ selected: t, style: o, ...n }) => /* @__PURE__ */ i(
|
|
92
|
+
T,
|
|
206
93
|
{
|
|
207
|
-
...
|
|
208
|
-
selected:
|
|
209
|
-
className:
|
|
94
|
+
...n,
|
|
95
|
+
selected: t,
|
|
96
|
+
className: h(n.className, "action", { selected: t }),
|
|
210
97
|
variant: "text",
|
|
211
|
-
style: { ...
|
|
98
|
+
style: { ...o }
|
|
212
99
|
}
|
|
213
|
-
),
|
|
100
|
+
), H = c(v)`
|
|
214
101
|
background-color: unset !important;
|
|
215
102
|
z-index: 110;
|
|
216
103
|
position: relative;
|
|
@@ -227,52 +114,52 @@ const F = c.div`
|
|
|
227
114
|
background-color: var(--md-sys-color-surface-container-hover) !important;
|
|
228
115
|
}
|
|
229
116
|
|
|
230
|
-
${({ $isOpen:
|
|
117
|
+
${({ $isOpen: t }) => t && `
|
|
231
118
|
background-color: var(--md-sys-color-surface-container-hover) !important;
|
|
232
119
|
`}
|
|
233
|
-
`,
|
|
234
|
-
const { toggleMenuOpen:
|
|
235
|
-
return
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
|
|
120
|
+
`, Ct = ({ menuItems: t, menuId: o, className: n }) => {
|
|
121
|
+
const { toggleMenuOpen: r, menuOpen: d } = O(), a = _(null), p = d === o;
|
|
122
|
+
return t.length === 0 ? null : /* @__PURE__ */ g(y, { children: [
|
|
123
|
+
/* @__PURE__ */ i(
|
|
124
|
+
H,
|
|
238
125
|
{
|
|
239
126
|
ref: a,
|
|
240
|
-
className:
|
|
241
|
-
onClick: (
|
|
242
|
-
|
|
127
|
+
className: n,
|
|
128
|
+
onClick: (s) => {
|
|
129
|
+
s.stopPropagation(), r(o);
|
|
243
130
|
},
|
|
244
|
-
onPointerDown: (
|
|
131
|
+
onPointerDown: (s) => s.stopPropagation(),
|
|
245
132
|
icon: "more_horiz",
|
|
246
|
-
$isOpen:
|
|
133
|
+
$isOpen: p
|
|
247
134
|
}
|
|
248
135
|
),
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
|
|
136
|
+
/* @__PURE__ */ i(
|
|
137
|
+
P,
|
|
251
138
|
{
|
|
252
139
|
target: a.current,
|
|
253
|
-
id:
|
|
140
|
+
id: o,
|
|
254
141
|
align: "left",
|
|
255
|
-
onClose: (
|
|
256
|
-
|
|
142
|
+
onClose: (s) => {
|
|
143
|
+
s.stopPropagation(), r(!1);
|
|
257
144
|
},
|
|
258
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: /* @__PURE__ */ i(z, { menu: t, onClose: () => r(!1) })
|
|
259
146
|
}
|
|
260
147
|
)
|
|
261
148
|
] });
|
|
262
|
-
},
|
|
149
|
+
}, U = c.tfoot`
|
|
263
150
|
display: grid !important;
|
|
264
151
|
position: sticky;
|
|
265
152
|
bottom: 0;
|
|
266
153
|
z-index: 10;
|
|
267
154
|
background-color: var(--md-sys-color-surface-container-lowest);
|
|
268
|
-
`,
|
|
155
|
+
`, W = c.tr`
|
|
269
156
|
display: flex;
|
|
270
157
|
background-color: var(--md-sys-color-surface-container-low);
|
|
271
158
|
|
|
272
159
|
&.clickable {
|
|
273
160
|
cursor: pointer;
|
|
274
161
|
}
|
|
275
|
-
`,
|
|
162
|
+
`, $ = c.td`
|
|
276
163
|
position: relative;
|
|
277
164
|
box-shadow: inset 1px 1px 0 0 var(--md-sys-color-surface-container);
|
|
278
165
|
background-color: var(--md-sys-color-surface-container-lowest);
|
|
@@ -296,7 +183,7 @@ const F = c.div`
|
|
|
296
183
|
width: 24px !important;
|
|
297
184
|
min-width: unset;
|
|
298
185
|
}
|
|
299
|
-
`,
|
|
186
|
+
`, V = c.div`
|
|
300
187
|
display: flex;
|
|
301
188
|
align-items: center;
|
|
302
189
|
gap: var(--base-gap-small);
|
|
@@ -315,7 +202,7 @@ const F = c.div`
|
|
|
315
202
|
font-weight: 600;
|
|
316
203
|
color: var(--md-sys-color-on-surface);
|
|
317
204
|
}
|
|
318
|
-
`,
|
|
205
|
+
`, b = c.div`
|
|
319
206
|
width: calc(100% - 1px);
|
|
320
207
|
height: calc(100% - 3px);
|
|
321
208
|
margin-left: 1px;
|
|
@@ -324,135 +211,134 @@ const F = c.div`
|
|
|
324
211
|
width: calc(100% - 3px);
|
|
325
212
|
margin-left: 1px;
|
|
326
213
|
}
|
|
327
|
-
`,
|
|
214
|
+
`, j = c(b)`
|
|
328
215
|
position: absolute;
|
|
329
216
|
inset: 1px 0 2px 1px;
|
|
330
217
|
width: auto;
|
|
331
218
|
height: auto;
|
|
332
219
|
margin: 0;
|
|
333
220
|
pointer-events: none;
|
|
334
|
-
`,
|
|
335
|
-
columnVirtualizer:
|
|
336
|
-
table:
|
|
337
|
-
virtualPaddingLeft:
|
|
338
|
-
virtualPaddingRight:
|
|
339
|
-
renderCellContent:
|
|
221
|
+
`, vt = ({
|
|
222
|
+
columnVirtualizer: t,
|
|
223
|
+
table: o,
|
|
224
|
+
virtualPaddingLeft: n,
|
|
225
|
+
virtualPaddingRight: r,
|
|
226
|
+
renderCellContent: d,
|
|
340
227
|
onClick: a,
|
|
341
|
-
isLoading:
|
|
342
|
-
statsLoading:
|
|
343
|
-
error:
|
|
228
|
+
isLoading: p,
|
|
229
|
+
statsLoading: s,
|
|
230
|
+
error: l
|
|
344
231
|
}) => {
|
|
345
|
-
const
|
|
346
|
-
...
|
|
347
|
-
...
|
|
348
|
-
...
|
|
349
|
-
],
|
|
350
|
-
return /* @__PURE__ */
|
|
351
|
-
|
|
232
|
+
const u = [
|
|
233
|
+
...o.getLeftVisibleLeafColumns(),
|
|
234
|
+
...o.getCenterVisibleLeafColumns(),
|
|
235
|
+
...o.getRightVisibleLeafColumns()
|
|
236
|
+
], f = t.getVirtualItems(), x = l instanceof Error ? l.message : typeof l == "string" ? l : "";
|
|
237
|
+
return /* @__PURE__ */ i(U, { children: /* @__PURE__ */ g(
|
|
238
|
+
W,
|
|
352
239
|
{
|
|
353
|
-
className:
|
|
240
|
+
className: h({ clickable: !!a }),
|
|
354
241
|
onClick: a,
|
|
355
242
|
"data-tooltip": a ? "Power feature" : void 0,
|
|
356
243
|
children: [
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
const e =
|
|
244
|
+
n ? /* @__PURE__ */ i("td", { style: { display: "flex", width: n } }) : null,
|
|
245
|
+
f.map((m) => {
|
|
246
|
+
const e = u[m.index];
|
|
360
247
|
if (!e) return null;
|
|
361
|
-
const
|
|
362
|
-
return /* @__PURE__ */
|
|
363
|
-
|
|
248
|
+
const k = e.id === w || e.id === C, L = e.getIsPinned() === "left" && e.getIsLastColumn("left");
|
|
249
|
+
return /* @__PURE__ */ i(
|
|
250
|
+
$,
|
|
364
251
|
{
|
|
365
|
-
className:
|
|
366
|
-
style: { ...
|
|
367
|
-
children:
|
|
368
|
-
|
|
252
|
+
className: h(e.id, { "last-pinned-left": L }),
|
|
253
|
+
style: { ...F(e), width: B(e.id) },
|
|
254
|
+
children: p ? /* @__PURE__ */ i(
|
|
255
|
+
b,
|
|
369
256
|
{
|
|
370
|
-
className:
|
|
371
|
-
selection: e.id ===
|
|
257
|
+
className: h("loading", "shimmer-dark", {
|
|
258
|
+
selection: e.id === C
|
|
372
259
|
})
|
|
373
260
|
}
|
|
374
|
-
) :
|
|
261
|
+
) : l ? e.id === "name" ? /* @__PURE__ */ g(V, { style: { color: "var(--md-sys-color-error)" }, children: [
|
|
375
262
|
"Error loading stats",
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
-
|
|
263
|
+
/* @__PURE__ */ i(
|
|
264
|
+
D,
|
|
378
265
|
{
|
|
379
266
|
icon: "info",
|
|
380
267
|
style: { fontSize: 16, cursor: "help" },
|
|
381
|
-
"data-tooltip":
|
|
268
|
+
"data-tooltip": x,
|
|
382
269
|
"data-tooltip-as": "markdown"
|
|
383
270
|
}
|
|
384
271
|
),
|
|
385
|
-
/* @__PURE__ */
|
|
386
|
-
|
|
272
|
+
/* @__PURE__ */ i(
|
|
273
|
+
v,
|
|
387
274
|
{
|
|
388
275
|
icon: "content_copy",
|
|
389
276
|
"data-tooltip": "Copy error message",
|
|
390
|
-
onClick: () =>
|
|
277
|
+
onClick: () => A(x),
|
|
391
278
|
iconProps: { style: { fontSize: 16 } },
|
|
392
279
|
style: { padding: 2 },
|
|
393
280
|
variant: "text"
|
|
394
281
|
}
|
|
395
282
|
)
|
|
396
|
-
] }) : null : !
|
|
397
|
-
|
|
398
|
-
|
|
283
|
+
] }) : null : !k && /* @__PURE__ */ g(y, { children: [
|
|
284
|
+
d?.(e.id),
|
|
285
|
+
s && /* @__PURE__ */ i(j, { className: h("loading", "shimmer-dark") })
|
|
399
286
|
] })
|
|
400
287
|
},
|
|
401
288
|
e.id
|
|
402
289
|
);
|
|
403
290
|
}),
|
|
404
|
-
|
|
291
|
+
r ? /* @__PURE__ */ i("td", { style: { display: "flex", width: r } }) : null
|
|
405
292
|
]
|
|
406
293
|
}
|
|
407
294
|
) });
|
|
408
|
-
},
|
|
295
|
+
}, q = "th[data-column-id]", G = c.div`
|
|
409
296
|
position: fixed;
|
|
410
297
|
z-index: 2000;
|
|
411
298
|
pointer-events: none;
|
|
412
299
|
width: 2px;
|
|
413
300
|
background-color: var(--md-sys-color-primary);
|
|
414
|
-
`,
|
|
415
|
-
const
|
|
301
|
+
`, Z = (t, o) => {
|
|
302
|
+
const n = t.getBoundingClientRect(), r = t.closest("table")?.getBoundingClientRect() ?? n;
|
|
416
303
|
return {
|
|
417
|
-
left:
|
|
418
|
-
top:
|
|
419
|
-
height:
|
|
304
|
+
left: o === "left" ? n.left - 1 : n.right - 1,
|
|
305
|
+
top: r.top,
|
|
306
|
+
height: r.height
|
|
420
307
|
};
|
|
421
|
-
},
|
|
422
|
-
const { active:
|
|
423
|
-
return
|
|
424
|
-
if (!
|
|
308
|
+
}, yt = () => {
|
|
309
|
+
const { active: t, over: o } = N(), n = t?.data?.current?.type === "column" ? String(t.id) : null, r = o ? String(o.id) : null, [d, a] = M(null);
|
|
310
|
+
return R(() => {
|
|
311
|
+
if (!n || !r || n === r) {
|
|
425
312
|
a(null);
|
|
426
313
|
return;
|
|
427
314
|
}
|
|
428
|
-
let
|
|
429
|
-
const
|
|
430
|
-
const
|
|
431
|
-
document.querySelectorAll(
|
|
432
|
-
),
|
|
433
|
-
if (
|
|
434
|
-
const
|
|
315
|
+
let p = 0;
|
|
316
|
+
const s = () => {
|
|
317
|
+
const l = Array.from(
|
|
318
|
+
document.querySelectorAll(q)
|
|
319
|
+
), u = l.find((f) => f.dataset.columnId === r);
|
|
320
|
+
if (u) {
|
|
321
|
+
const f = l.findIndex((e) => e.dataset.columnId === n), x = l.indexOf(u), m = Z(u, f < x ? "right" : "left");
|
|
435
322
|
a(
|
|
436
|
-
(e) => e && e.left ===
|
|
323
|
+
(e) => e && e.left === m.left && e.top === m.top && e.height === m.height ? e : m
|
|
437
324
|
);
|
|
438
325
|
}
|
|
439
|
-
|
|
326
|
+
p = requestAnimationFrame(s);
|
|
440
327
|
};
|
|
441
|
-
return
|
|
442
|
-
}, [
|
|
328
|
+
return s(), () => cancelAnimationFrame(p);
|
|
329
|
+
}, [n, r]), d ? E(/* @__PURE__ */ i(G, { style: d }), document.body) : null;
|
|
443
330
|
};
|
|
444
331
|
export {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
Z as
|
|
456
|
-
|
|
457
|
-
H as g
|
|
332
|
+
Ct as C,
|
|
333
|
+
ht as F,
|
|
334
|
+
xt as H,
|
|
335
|
+
gt as S,
|
|
336
|
+
vt as T,
|
|
337
|
+
H as a,
|
|
338
|
+
F as b,
|
|
339
|
+
yt as c,
|
|
340
|
+
G as d,
|
|
341
|
+
q as e,
|
|
342
|
+
Z as f,
|
|
343
|
+
B as g
|
|
458
344
|
};
|