@ynput/ayon-frontend-shared 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ContextMenu.es.js +34 -16
- package/dist/DetailsPanel.es.js +307 -311
- package/dist/Feed.es.js +179 -50
- package/dist/ListTable.es.js +99 -92
- package/dist/NewEntity.es.js +1256 -11
- package/dist/ProjectTreeTable.es.js +4459 -2959
- package/dist/SimpleTable.es.js +8 -7
- package/dist/Slicer.es.js +451 -147
- package/dist/Views.es.js +918 -310
- package/dist/api.es.js +331 -329
- package/dist/chunks/Actions.es.js +32 -27
- package/dist/chunks/ColumnDropIndicator.es.js +174 -328
- package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
- package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
- package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/EmptyPlaceholder.es.js +4 -4
- package/dist/chunks/EntityPath.es.js +74 -69
- package/dist/chunks/EntityPickerDialog.es.js +25 -21
- package/dist/chunks/EntityTooltip.es.js +29 -22
- package/dist/chunks/EntityUpdatesContext.es.js +38 -96
- package/dist/chunks/Feed.es.js +2321 -2668
- package/dist/chunks/FilterErrorActions.es.js +25 -229
- package/dist/chunks/Menu.es.js +21 -17
- package/dist/chunks/MenuContext.es.js +14 -256
- package/dist/chunks/MenuItem.es.js +34 -24
- package/dist/chunks/MetaWidget.es.js +2895 -4919
- package/dist/chunks/NewEntityContextInstance.es.js +11 -0
- package/dist/chunks/PlayableIcon.es.js +4215 -1179
- package/dist/chunks/ProjectContext.es.js +102 -66
- package/dist/chunks/RepresentationsList.es.js +4 -4
- package/dist/chunks/ReviewablesSelector.es.js +468 -460
- package/dist/chunks/SimpleForm.es.js +18 -18
- package/dist/chunks/SimpleTable.es.js +15 -13
- package/dist/chunks/Slicer.es.js +109 -98
- package/dist/chunks/TableSettingsFallback.es.js +22 -10
- package/dist/chunks/ThumbnailSimple.es.js +290 -52
- package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
- package/dist/chunks/VideoPlayer.es.js +24 -28
- package/dist/chunks/Watchers.es.js +669 -644
- package/dist/chunks/entityDefinitions.es.js +2 -350
- package/dist/chunks/expandRelativeDates.es.js +27 -0
- package/dist/chunks/extractVersionFromFilename.es.js +28 -0
- package/dist/chunks/getBundleMode.es.js +1 -1
- package/dist/chunks/getUris.es.js +737 -710
- package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
- package/dist/chunks/searchTerms.es.js +179 -174
- package/dist/chunks/useAttributeEnums.es.js +9 -9
- package/dist/chunks/useCreateContextMenu.es.js +66 -90
- package/dist/chunks/useDateRangeFilter.es.js +3 -3
- package/dist/chunks/useHierarchySelection.es.js +24 -0
- package/dist/chunks/useLoadModule.es.js +74 -0
- package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
- package/dist/chunks/versionUploadHelpers.es.js +16 -42
- package/dist/chunks/viewUpdateHelper.es.js +74 -57
- package/dist/components.es.js +1432 -1001
- package/dist/context.es.js +791 -78
- package/dist/hooks.es.js +95 -94
- package/dist/index.es.js +27 -26
- package/dist/types/Actions.d.ts +15 -15
- package/dist/types/ContextMenu.d.ts +19 -16
- package/dist/types/DetailsPanel.d.ts +110 -17
- package/dist/types/EntityPickerDialog.d.ts +15 -15
- package/dist/types/Feed.d.ts +19 -16
- package/dist/types/ListTable.d.ts +15 -15
- package/dist/types/NewEntity.d.ts +24 -18
- package/dist/types/ProjectTreeTable.d.ts +34 -123
- package/dist/types/RepresentationsList.d.ts +15 -15
- package/dist/types/SimpleTable.d.ts +19 -16
- package/dist/types/Slicer.d.ts +18 -15
- package/dist/types/Views.d.ts +19 -16
- package/dist/types/api.d.ts +515 -207
- package/dist/types/components.d.ts +84 -20
- package/dist/types/context.d.ts +108 -25
- package/dist/types/hooks.d.ts +15 -15
- package/dist/types/index.d.ts +15 -15
- package/dist/types/util.d.ts +20 -15
- package/dist/util.es.js +117 -105
- package/package.json +16 -4
- package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
- package/dist/chunks/GlobalContext.es.js +0 -52
- package/dist/chunks/NewEntityContext.es.js +0 -1242
- package/dist/chunks/ProjectFoldersContext.es.js +0 -134
- package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
- package/dist/chunks/VersionUploadContext.es.js +0 -232
- package/dist/chunks/ViewsContext.es.js +0 -878
- package/dist/chunks/mentionTypeOptions.es.js +0 -15
- package/dist/chunks/useColumnDragRestriction.es.js +0 -148
- package/dist/chunks/useLocalStorage.es.js +0 -355
- /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as O, Fragment as I } from "react/jsx-runtime";
|
|
2
2
|
import { useState as V, useEffect as v, useMemo as D, useRef as B, useCallback as R } from "react";
|
|
3
3
|
import { getTextColor as K, InputTextarea as P, InputText as W, InputSwitch as z, InputNumber as k, Dropdown as F, DefaultItemTemplate as M, FormLayout as U, FormRow as q } from "@ynput/ayon-react-components";
|
|
4
|
-
import {
|
|
4
|
+
import { a$ as G } from "./searchTerms.es.js";
|
|
5
5
|
import "./getUris.es.js";
|
|
6
6
|
import "primereact/confirmdialog";
|
|
7
7
|
import b from "styled-components";
|
|
@@ -200,14 +200,7 @@ const H = (e, r) => {
|
|
|
200
200
|
`, se = ({ field: e }) => {
|
|
201
201
|
const r = typeof e.value == "string" ? e.value : "Invalid label value";
|
|
202
202
|
return /* @__PURE__ */ c(ae, { className: e.highlight || "normal", children: /* @__PURE__ */ c(J, { children: r }) });
|
|
203
|
-
},
|
|
204
|
-
display: flex;
|
|
205
|
-
align-items: center;
|
|
206
|
-
justify-content: center;
|
|
207
|
-
gap: var(--base-gap-small);
|
|
208
|
-
padding: 0 4px;
|
|
209
|
-
margin-left: 12px;
|
|
210
|
-
`, le = b.span`
|
|
203
|
+
}, le = b.span`
|
|
211
204
|
overflow: hidden;
|
|
212
205
|
white-space: nowrap;
|
|
213
206
|
text-overflow: ellipsis;
|
|
@@ -235,7 +228,14 @@ const H = (e, r) => {
|
|
|
235
228
|
children: r
|
|
236
229
|
}
|
|
237
230
|
);
|
|
238
|
-
},
|
|
231
|
+
}, Ce = b.div`
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
justify-content: center;
|
|
235
|
+
gap: var(--base-gap-small);
|
|
236
|
+
padding: 0 4px;
|
|
237
|
+
margin-left: 12px;
|
|
238
|
+
`, T = b.button`
|
|
239
239
|
width: auto;
|
|
240
240
|
background: none;
|
|
241
241
|
border: none;
|
|
@@ -327,7 +327,7 @@ const H = (e, r) => {
|
|
|
327
327
|
`, me = (e) => /* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(T, { onClick: () => {
|
|
328
328
|
const t = document.createElement("a");
|
|
329
329
|
t.href = `data:application/octet-stream;base64,${e.value.payload}`, t.download = e.value.filename, document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
330
|
-
}, children: e.value.filename }) }),
|
|
330
|
+
}, children: e.value.filename }) }), $ = (e) => {
|
|
331
331
|
const r = /* @__PURE__ */ O(I, { children: [
|
|
332
332
|
/* @__PURE__ */ c("div", { style: { flex: 1 } }),
|
|
333
333
|
e.badges && e.badges.map((t, n) => /* @__PURE__ */ c(ie, { label: t }, n))
|
|
@@ -342,7 +342,7 @@ const H = (e, r) => {
|
|
|
342
342
|
endContent: r
|
|
343
343
|
}
|
|
344
344
|
);
|
|
345
|
-
},
|
|
345
|
+
}, L = (e = []) => e.map((r) => ({ ...r, value: `${r.value}` })), S = (e = [], r) => e.find((t) => `${t.value}` === r)?.value ?? r, de = ({ field: e, value: r, onChange: t }) => {
|
|
346
346
|
const n = !!(e.disabled || e.readOnly);
|
|
347
347
|
if (e.type === "text") {
|
|
348
348
|
const s = typeof r == "string" ? r : "";
|
|
@@ -395,12 +395,12 @@ const H = (e, r) => {
|
|
|
395
395
|
F,
|
|
396
396
|
{
|
|
397
397
|
widthExpand: !0,
|
|
398
|
-
options:
|
|
398
|
+
options: L(e.options),
|
|
399
399
|
value: s ? [s] : [],
|
|
400
|
-
onSelectionChange: (o) => t(
|
|
400
|
+
onSelectionChange: (o) => t(S(e.options, o[0])),
|
|
401
401
|
className: "form-field",
|
|
402
402
|
multiSelect: !1,
|
|
403
|
-
itemTemplate:
|
|
403
|
+
itemTemplate: $,
|
|
404
404
|
placeholder: e.placeholder,
|
|
405
405
|
disabled: n
|
|
406
406
|
}
|
|
@@ -412,12 +412,12 @@ const H = (e, r) => {
|
|
|
412
412
|
F,
|
|
413
413
|
{
|
|
414
414
|
widthExpand: !0,
|
|
415
|
-
options:
|
|
415
|
+
options: L(e.options),
|
|
416
416
|
value: s,
|
|
417
|
-
onSelectionChange: (o) => t(o.map((m) =>
|
|
417
|
+
onSelectionChange: (o) => t(o.map((m) => S(e.options, m))),
|
|
418
418
|
className: "form-field",
|
|
419
419
|
multiSelect: !0,
|
|
420
|
-
itemTemplate:
|
|
420
|
+
itemTemplate: $,
|
|
421
421
|
placeholder: e.placeholder,
|
|
422
422
|
disabled: n
|
|
423
423
|
}
|
|
@@ -10,10 +10,11 @@ import "lodash";
|
|
|
10
10
|
import "primereact/confirmdialog";
|
|
11
11
|
import "react-toastify";
|
|
12
12
|
import "uuid";
|
|
13
|
-
import {
|
|
13
|
+
import { bs as Ye, bt as Xe } from "./searchTerms.es.js";
|
|
14
14
|
import { E as Ze } from "./EmptyPlaceholder.es.js";
|
|
15
|
-
import
|
|
15
|
+
import "./ContextMenuContextInstance.es.js";
|
|
16
16
|
import "primereact-context/contextmenu";
|
|
17
|
+
import { u as et } from "./useCreateContextMenu.es.js";
|
|
17
18
|
const tt = L.div`
|
|
18
19
|
display: flex;
|
|
19
20
|
|
|
@@ -270,7 +271,7 @@ const tt = L.div`
|
|
|
270
271
|
background-color: var(--md-sys-color-surface-container-high-hover);
|
|
271
272
|
}
|
|
272
273
|
}
|
|
273
|
-
`,
|
|
274
|
+
`, Ft = L.div`
|
|
274
275
|
border-radius: var(--border-radius-m);
|
|
275
276
|
overflow: hidden;
|
|
276
277
|
background-color: var(--md-sys-color-surface-container-low);
|
|
@@ -280,7 +281,7 @@ const tt = L.div`
|
|
|
280
281
|
display: flex;
|
|
281
282
|
flex-direction: column;
|
|
282
283
|
position: relative;
|
|
283
|
-
`,
|
|
284
|
+
`, Nt = L.div`
|
|
284
285
|
padding: 2px;
|
|
285
286
|
width: 100%;
|
|
286
287
|
justify-content: space-between;
|
|
@@ -291,7 +292,7 @@ const tt = L.div`
|
|
|
291
292
|
gap: var(--base-gap-small);
|
|
292
293
|
|
|
293
294
|
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
294
|
-
`,
|
|
295
|
+
`, Dt = L(xe)`
|
|
295
296
|
background-color: unset !important;
|
|
296
297
|
z-index: 110;
|
|
297
298
|
position: relative;
|
|
@@ -330,12 +331,12 @@ function rt({
|
|
|
330
331
|
[t, a, l]
|
|
331
332
|
) };
|
|
332
333
|
}
|
|
333
|
-
const be = Ie(void 0),
|
|
334
|
+
const be = Ie(void 0), at = () => {
|
|
334
335
|
const t = Le(be);
|
|
335
336
|
if (t === void 0)
|
|
336
337
|
throw new Error("useSimpleTableContext must be used within a SimpleTableProvider");
|
|
337
338
|
return t;
|
|
338
|
-
}, it = ({
|
|
339
|
+
}, zt = ({ children: t, ...a }) => /* @__PURE__ */ d(be.Provider, { value: { ...a }, children: t }), it = ({
|
|
339
340
|
isRowExpandable: t,
|
|
340
341
|
isRowExpanded: a,
|
|
341
342
|
enableNonFolderIndent: l = !0,
|
|
@@ -529,7 +530,7 @@ function dt(t, a, l) {
|
|
|
529
530
|
const p = Math.min(u, n), b = Math.max(u, n);
|
|
530
531
|
return t.slice(p, b + 1);
|
|
531
532
|
}
|
|
532
|
-
const
|
|
533
|
+
const Tt = ({
|
|
533
534
|
data: t = [],
|
|
534
535
|
isLoading: a,
|
|
535
536
|
error: l,
|
|
@@ -892,13 +893,14 @@ const zt = ({
|
|
|
892
893
|
export {
|
|
893
894
|
nt as C,
|
|
894
895
|
ot as E,
|
|
895
|
-
|
|
896
|
+
Nt as H,
|
|
896
897
|
it as R,
|
|
897
|
-
|
|
898
|
+
Tt as S,
|
|
898
899
|
tt as T,
|
|
899
|
-
|
|
900
|
-
|
|
900
|
+
Ft as a,
|
|
901
|
+
Dt as b,
|
|
901
902
|
lt as c,
|
|
902
|
-
|
|
903
|
+
be as d,
|
|
904
|
+
zt as e,
|
|
903
905
|
at as u
|
|
904
906
|
};
|