@ynput/ayon-frontend-shared 0.6.4 → 0.6.6
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 +480 -477
- package/dist/ListTable.es.js +24 -25
- package/dist/NewEntity.es.js +6 -7
- package/dist/ProjectTreeTable.es.js +2018 -2006
- package/dist/Views.es.js +28 -28
- package/dist/api.es.js +291 -289
- package/dist/chunks/Actions.es.js +12 -12
- package/dist/chunks/ColumnDropIndicator.es.js +8 -9
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +31 -25
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +1 -1
- package/dist/chunks/DetailsDialog.es.js +1 -1
- package/dist/chunks/EmptyPlaceholder.es.js +13 -12
- package/dist/chunks/EntityPath.es.js +67 -67
- package/dist/chunks/EntityPickerDialog.es.js +1 -1
- package/dist/chunks/EntityTooltip.es.js +8 -8
- package/dist/chunks/Feed.es.js +1742 -1734
- package/dist/chunks/Menu.es.js +168 -166
- package/dist/chunks/MenuItem.es.js +112 -77
- package/dist/chunks/MetaWidget.es.js +1283 -1279
- package/dist/chunks/PlayableIcon.es.js +458 -451
- package/dist/chunks/ProjectContext.es.js +20 -20
- package/dist/chunks/RepresentationsList.es.js +9 -9
- package/dist/chunks/ReviewablesSelector.es.js +1504 -1374
- package/dist/chunks/SimpleForm.es.js +78 -75
- package/dist/chunks/Slicer.es.js +68 -69
- package/dist/chunks/ThumbnailSimple.es.js +4 -4
- package/dist/chunks/Watchers.es.js +104 -105
- package/dist/chunks/activeEntities.es.js +58 -0
- package/dist/chunks/columnConfigConverter.es.js +57 -63
- package/dist/chunks/getUris.es.js +1014 -960
- package/dist/chunks/iconUtils.es.js +151 -0
- package/dist/chunks/queryFilterToClientFilter.es.js +90 -81
- package/dist/chunks/realtimeUpdatesUtils.es.js +113 -80
- package/dist/chunks/searchTerms.es.js +332 -247
- package/dist/chunks/useAttributeEnums.es.js +34 -34
- package/dist/chunks/viewUpdateHelper.es.js +11 -11
- package/dist/components.es.js +340 -337
- package/dist/context.es.js +48 -48
- package/dist/hooks.es.js +34 -34
- package/dist/index.es.js +1 -1
- package/dist/types/ContextMenu.d.ts +1 -1
- package/dist/types/Feed.d.ts +2 -2
- package/dist/types/ListTable.d.ts +1 -1
- package/dist/types/ProjectTreeTable.d.ts +7 -6
- package/dist/types/SimpleTable.d.ts +1 -1
- package/dist/types/Slicer.d.ts +6 -6
- package/dist/types/Views.d.ts +6 -6
- package/dist/types/api.d.ts +554 -176
- package/dist/types/components.d.ts +73 -11
- package/dist/types/context.d.ts +7 -7
- package/dist/types/util.d.ts +238 -3
- package/dist/util.es.js +127 -114
- package/package.json +1 -1
- package/dist/chunks/extractEntityHierarchyFromParents.es.js +0 -28
- package/dist/chunks/parseHtmlToPlainTextWithLinks.es.js +0 -138
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import r, { keyframes as
|
|
5
|
-
import { isArray as
|
|
6
|
-
import { Link as
|
|
7
|
-
import
|
|
1
|
+
import { jsxs as _, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Button as j, Icon as a, ShortcutTag as z } from "@ynput/ayon-react-components";
|
|
3
|
+
import { forwardRef as F } from "react";
|
|
4
|
+
import r, { keyframes as O } from "styled-components";
|
|
5
|
+
import { isArray as L } from "lodash";
|
|
6
|
+
import { Link as G } from "react-router-dom";
|
|
7
|
+
import S from "clsx";
|
|
8
8
|
import "@module-federation/enhanced/runtime";
|
|
9
9
|
import "./searchTerms.es.js";
|
|
10
10
|
import "./getUris.es.js";
|
|
11
11
|
import "primereact/confirmdialog";
|
|
12
|
-
import { a as
|
|
12
|
+
import { a as T } from "./DeleteEntitiesContextInstance.es.js";
|
|
13
13
|
import "react-toastify";
|
|
14
14
|
import "uuid";
|
|
15
15
|
import "semver";
|
|
16
16
|
import "./ContextMenuContextInstance.es.js";
|
|
17
17
|
import "react-dom";
|
|
18
18
|
import "react-redux";
|
|
19
|
-
const
|
|
19
|
+
const v = 42, $ = 8, po = v + $, mo = r.dialog`
|
|
20
20
|
position: fixed;
|
|
21
21
|
margin: 0;
|
|
22
22
|
inset: 0;
|
|
23
|
-
top: ${
|
|
23
|
+
top: ${v}px;
|
|
24
24
|
width: auto;
|
|
25
25
|
height: auto;
|
|
26
26
|
z-index: 1000;
|
|
@@ -38,7 +38,7 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
38
38
|
display: none;
|
|
39
39
|
}
|
|
40
40
|
padding-bottom: 60px;
|
|
41
|
-
`,
|
|
41
|
+
`, C = O`
|
|
42
42
|
from {
|
|
43
43
|
scale: 0.95;
|
|
44
44
|
opacity: 0.6;
|
|
@@ -47,7 +47,7 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
47
47
|
scale: 1;
|
|
48
48
|
opacity: 1;
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`, go = r.div`
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
gap: var(--base-gap-large);
|
|
@@ -61,7 +61,7 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
61
61
|
z-index: 30;
|
|
62
62
|
|
|
63
63
|
/* animate */
|
|
64
|
-
animation: ${
|
|
64
|
+
animation: ${C} 0.03s ease-in forwards;
|
|
65
65
|
|
|
66
66
|
/* transform origin based on alignment */
|
|
67
67
|
&.right {
|
|
@@ -85,7 +85,7 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
85
85
|
color: var(--md-sys-color-on-surface, #fff) !important;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
88
|
+
`, uo = r.section`
|
|
89
89
|
position: relative;
|
|
90
90
|
display: flex;
|
|
91
91
|
flex-direction: column;
|
|
@@ -98,7 +98,7 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
98
98
|
color: var(--md-sys-color-on-surface);
|
|
99
99
|
z-index: 10;
|
|
100
100
|
overflow: hidden;
|
|
101
|
-
`,
|
|
101
|
+
`, ho = r.div`
|
|
102
102
|
position: relative;
|
|
103
103
|
border-radius: 8px;
|
|
104
104
|
display: flex;
|
|
@@ -122,7 +122,7 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
122
122
|
overflow-x: hidden;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
`,
|
|
125
|
+
`, fo = r.menu`
|
|
126
126
|
/* reset defaults */
|
|
127
127
|
display: flex;
|
|
128
128
|
list-style-type: none;
|
|
@@ -157,7 +157,7 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
157
157
|
opacity: 0.5;
|
|
158
158
|
border-color: var(--md-sys-color-surface-container-highest);
|
|
159
159
|
}
|
|
160
|
-
`,
|
|
160
|
+
`, U = r.li`
|
|
161
161
|
display: flex;
|
|
162
162
|
padding: 6px 16px 6px 12px;
|
|
163
163
|
justify-content: flex-start;
|
|
@@ -176,7 +176,7 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
176
176
|
&:hover {
|
|
177
177
|
background-color: var(--md-sys-color-surface-container-highest);
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
|
|
180
180
|
.hover-swap {
|
|
181
181
|
display: none;
|
|
182
182
|
cursor: grab;
|
|
@@ -272,11 +272,30 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
272
272
|
}
|
|
273
273
|
background-color: unset;
|
|
274
274
|
}
|
|
275
|
-
`,
|
|
275
|
+
`, B = r.div`
|
|
276
|
+
display: flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
gap: var(--base-gap-small);
|
|
279
|
+
margin-left: auto;
|
|
280
|
+
padding-left: 24px;
|
|
281
|
+
`, R = r(j)`
|
|
282
|
+
margin-left: auto;
|
|
283
|
+
&.hasIcon {
|
|
284
|
+
padding: 4px;
|
|
285
|
+
}
|
|
286
|
+
.icon {
|
|
287
|
+
font-size: 16px;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.selected & {
|
|
291
|
+
background-color: var(--md-sys-color-on-primary);
|
|
292
|
+
color: var(--md-sys-color-primary);
|
|
293
|
+
}
|
|
294
|
+
`, W = r.img`
|
|
276
295
|
width: 18px;
|
|
277
296
|
height: 18px;
|
|
278
297
|
object-fit: contain;
|
|
279
|
-
`,
|
|
298
|
+
`, vo = r.footer`
|
|
280
299
|
position: relative;
|
|
281
300
|
display: flex;
|
|
282
301
|
padding: 8px;
|
|
@@ -305,81 +324,97 @@ const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
|
305
324
|
display: flex;
|
|
306
325
|
}
|
|
307
326
|
}
|
|
308
|
-
`,
|
|
327
|
+
`, K = F(
|
|
309
328
|
({
|
|
310
|
-
label:
|
|
311
|
-
icon:
|
|
312
|
-
hoverIcon:
|
|
313
|
-
img:
|
|
314
|
-
highlighted:
|
|
315
|
-
notification:
|
|
316
|
-
selected:
|
|
317
|
-
danger:
|
|
318
|
-
items:
|
|
319
|
-
className:
|
|
320
|
-
isLink:
|
|
321
|
-
isDev:
|
|
322
|
-
shortcut:
|
|
323
|
-
disabled:
|
|
324
|
-
powerFeature:
|
|
325
|
-
active:
|
|
326
|
-
reserveActiveSlot:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
label: i,
|
|
330
|
+
icon: l,
|
|
331
|
+
hoverIcon: s,
|
|
332
|
+
img: c,
|
|
333
|
+
highlighted: y,
|
|
334
|
+
notification: b,
|
|
335
|
+
selected: x,
|
|
336
|
+
danger: w,
|
|
337
|
+
items: k = [],
|
|
338
|
+
className: D,
|
|
339
|
+
isLink: d,
|
|
340
|
+
isDev: N,
|
|
341
|
+
shortcut: p,
|
|
342
|
+
disabled: A,
|
|
343
|
+
powerFeature: I,
|
|
344
|
+
active: m,
|
|
345
|
+
reserveActiveSlot: E,
|
|
346
|
+
endActions: g = [],
|
|
347
|
+
...u
|
|
348
|
+
}, M) => {
|
|
349
|
+
const h = L(i) ? i : [i], { powerLicense: P } = T(), n = !P && I, f = /* @__PURE__ */ _(
|
|
350
|
+
U,
|
|
331
351
|
{
|
|
332
|
-
ref:
|
|
333
|
-
className:
|
|
352
|
+
ref: M,
|
|
353
|
+
className: S(
|
|
334
354
|
"menu-item",
|
|
335
355
|
{
|
|
336
|
-
highlighted:
|
|
337
|
-
selected:
|
|
338
|
-
notification:
|
|
339
|
-
danger:
|
|
340
|
-
dev:
|
|
341
|
-
disabled:
|
|
342
|
-
power:
|
|
356
|
+
highlighted: y,
|
|
357
|
+
selected: x,
|
|
358
|
+
notification: b,
|
|
359
|
+
danger: w,
|
|
360
|
+
dev: N,
|
|
361
|
+
disabled: A,
|
|
362
|
+
power: n
|
|
343
363
|
},
|
|
344
|
-
|
|
364
|
+
D
|
|
345
365
|
),
|
|
346
|
-
...
|
|
347
|
-
"aria-label":
|
|
366
|
+
...u,
|
|
367
|
+
"aria-label": h.join(", "),
|
|
348
368
|
children: [
|
|
349
|
-
(
|
|
350
|
-
|
|
369
|
+
(l || n) && /* @__PURE__ */ o(
|
|
370
|
+
a,
|
|
351
371
|
{
|
|
352
|
-
icon:
|
|
353
|
-
className:
|
|
372
|
+
icon: n ? "bolt" : l,
|
|
373
|
+
className: s && !n ? "hover-swap-default" : void 0
|
|
354
374
|
}
|
|
355
375
|
),
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
(
|
|
361
|
-
|
|
376
|
+
s && !n && /* @__PURE__ */ o(a, { icon: s, className: "hover-swap" }),
|
|
377
|
+
c && /* @__PURE__ */ o(W, { src: c, alt: `${i} icon` }),
|
|
378
|
+
h.map((e, t) => /* @__PURE__ */ o("span", { children: e }, t)),
|
|
379
|
+
p && /* @__PURE__ */ o(z, { style: { minWidth: 22, textAlign: "center" }, align: "right", children: p }),
|
|
380
|
+
(m || E) && /* @__PURE__ */ o(
|
|
381
|
+
a,
|
|
362
382
|
{
|
|
363
383
|
icon: "check",
|
|
364
|
-
style: { marginLeft: "auto", visibility:
|
|
384
|
+
style: { marginLeft: "auto", visibility: m ? "visible" : "hidden" }
|
|
365
385
|
}
|
|
366
386
|
),
|
|
367
|
-
!!
|
|
387
|
+
!!g.length && /* @__PURE__ */ o(B, { children: g.map((e) => /* @__PURE__ */ o(
|
|
388
|
+
R,
|
|
389
|
+
{
|
|
390
|
+
variant: "text",
|
|
391
|
+
icon: e.icon,
|
|
392
|
+
className: "menu-item-end-action",
|
|
393
|
+
"data-tooltip": e.tooltip,
|
|
394
|
+
"aria-label": e.tooltip,
|
|
395
|
+
onClick: (t) => {
|
|
396
|
+
t.stopPropagation(), e.onClick(t);
|
|
397
|
+
},
|
|
398
|
+
onKeyDown: (t) => t.stopPropagation()
|
|
399
|
+
},
|
|
400
|
+
e.icon
|
|
401
|
+
)) }),
|
|
402
|
+
!!k.length && /* @__PURE__ */ o(a, { icon: "arrow_right", className: "more" })
|
|
368
403
|
]
|
|
369
404
|
}
|
|
370
405
|
);
|
|
371
|
-
return
|
|
406
|
+
return d ? /* @__PURE__ */ o(G, { to: d, target: u.target, children: f }) : f;
|
|
372
407
|
}
|
|
373
408
|
);
|
|
374
|
-
|
|
409
|
+
K.displayName = "MenuItem";
|
|
375
410
|
export {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
411
|
+
v as D,
|
|
412
|
+
vo as F,
|
|
413
|
+
ho as M,
|
|
414
|
+
uo as S,
|
|
415
|
+
fo as a,
|
|
416
|
+
K as b,
|
|
417
|
+
po as c,
|
|
418
|
+
mo as d,
|
|
419
|
+
go as e
|
|
385
420
|
};
|