@ynput/ayon-frontend-shared 0.6.7 → 0.6.9
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/Feed.es.js +64 -58
- package/dist/ListTable.es.js +5 -5
- package/dist/NewEntity.es.js +38 -38
- package/dist/ProjectTreeTable.es.js +1314 -1314
- package/dist/Slicer.es.js +21 -21
- package/dist/Views.es.js +1 -1
- package/dist/api.es.js +362 -360
- package/dist/chunks/Actions.es.js +21 -21
- package/dist/chunks/ColumnDropIndicator.es.js +7 -7
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +22 -22
- package/dist/chunks/EmptyPlaceholder.es.js +9 -9
- package/dist/chunks/EntityPath.es.js +1 -1
- package/dist/chunks/EntityUpdatesContext.es.js +1 -1
- package/dist/chunks/Feed.es.js +1843 -1830
- package/dist/chunks/MetaWidget.es.js +816 -827
- package/dist/chunks/PlayableIcon.es.js +124 -85
- package/dist/chunks/ProjectContext.es.js +11 -11
- package/dist/chunks/ReviewablesSelector.es.js +572 -484
- package/dist/chunks/SimpleForm.es.js +6 -5
- package/dist/chunks/SimpleTable.es.js +1 -1
- package/dist/chunks/Slicer.es.js +75 -75
- package/dist/chunks/ThumbnailSimple.es.js +15 -15
- package/dist/chunks/Watchers.es.js +35 -35
- package/dist/chunks/getBundleMode.es.js +33 -25
- package/dist/chunks/getUris.es.js +236 -229
- package/dist/chunks/searchTerms.es.js +352 -333
- package/dist/chunks/useAttributeEnums.es.js +16 -16
- package/dist/chunks/useDateRangeFilter.es.js +85 -59
- package/dist/chunks/viewUpdateHelper.es.js +36 -36
- package/dist/components.es.js +793 -754
- package/dist/context.es.js +121 -120
- package/dist/hooks.es.js +15 -15
- package/dist/index.es.js +2 -2
- package/dist/types/Feed.d.ts +54 -0
- package/dist/types/ProjectTreeTable.d.ts +5 -2
- package/dist/types/api.d.ts +372 -0
- package/dist/types/components.d.ts +516 -0
- package/dist/types/util.d.ts +4 -0
- package/dist/util.es.js +68 -66
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import "primereact/confirmdialog";
|
|
|
5
5
|
import "react-toastify";
|
|
6
6
|
import { g as it } from "./getEntityTypeIcon.es.js";
|
|
7
7
|
import "uuid";
|
|
8
|
-
import {
|
|
8
|
+
import { b3 as Vn } from "./searchTerms.es.js";
|
|
9
9
|
import qt, { useRef as O, useState as U, useLayoutEffect as oe, useCallback as H, useMemo as _e, useEffect as R, Fragment as Qn, useImperativeHandle as Jn, forwardRef as Vt, useContext as Xn } from "react";
|
|
10
10
|
import { jsx as l, jsxs as S, Fragment as me } from "react/jsx-runtime";
|
|
11
11
|
import P from "clsx";
|
|
@@ -302,6 +302,21 @@ const gr = ({ name: t, fullName: e, imageKey: n, ...o }) => t ? /* @__PURE__ */
|
|
|
302
302
|
"numberList",
|
|
303
303
|
"bulletList",
|
|
304
304
|
"checkList"
|
|
305
|
+
], Pl = [
|
|
306
|
+
"h1",
|
|
307
|
+
"h2",
|
|
308
|
+
"h3",
|
|
309
|
+
"|",
|
|
310
|
+
"bold",
|
|
311
|
+
"italic",
|
|
312
|
+
"strikethrough",
|
|
313
|
+
"link",
|
|
314
|
+
"|",
|
|
315
|
+
"codeBlock",
|
|
316
|
+
"quote",
|
|
317
|
+
"|",
|
|
318
|
+
"numberList",
|
|
319
|
+
"bulletList"
|
|
305
320
|
], Cr = [
|
|
306
321
|
"bold",
|
|
307
322
|
"italic",
|
|
@@ -507,7 +522,7 @@ class ye extends gn {
|
|
|
507
522
|
);
|
|
508
523
|
}
|
|
509
524
|
}
|
|
510
|
-
const pe = (t) => at(new ye(t.trim())), Sr = (t) => t instanceof ye, bn = ["mp4", "mov", "webm", "mkv", "m4v", "ogv", "avi"], Or = ["png", "jpg", "jpeg", "gif", "webp", "svg", "avif", "bmp"], yn = (t) => t?.split(/[?#]/)[0].split(".").pop()?.toLowerCase() || "", vn = (t, ...e) => t?.startsWith("video/") ? "video" : t?.startsWith("image/") ? "image" : e.some((n) => bn.includes(yn(n))) ? "video" : "image", Rr = (t) => t.type.startsWith("image/") || t.type.startsWith("video/") || [...Or, ...bn].includes(yn(t.name)), Ir = /\/api\/projects\/[^/]+\/files\/([\w-]+)/, bt = (t) => t?.match(Ir)?.[1] ?? null, Ar = /^\s*!\[[^\]]*\]\(<?([^\s)>]+)>?(?:\s+"[^"]*")?\)\s*$/, Dr = /^\s*(```|~~~)/,
|
|
525
|
+
const pe = (t) => at(new ye(t.trim())), Sr = (t) => t instanceof ye, bn = ["mp4", "mov", "webm", "mkv", "m4v", "ogv", "avi"], Or = ["png", "jpg", "jpeg", "gif", "webp", "svg", "avif", "bmp"], yn = (t) => t?.split(/[?#]/)[0].split(".").pop()?.toLowerCase() || "", vn = (t, ...e) => t?.startsWith("video/") ? "video" : t?.startsWith("image/") ? "image" : e.some((n) => bn.includes(yn(n))) ? "video" : "image", Rr = (t) => t.type.startsWith("image/") || t.type.startsWith("video/") || [...Or, ...bn].includes(yn(t.name)), Ir = /\/api\/projects\/[^/]+\/files\/([\w-]+)/, bt = (t) => t?.match(Ir)?.[1] ?? null, Ar = /^\s*!\[[^\]]*\]\(<?([^\s)>]+)>?(?:\s+"[^"]*")?\)\s*$/, Dr = /^\s*(```|~~~)/, Bl = (t) => {
|
|
511
526
|
const e = /* @__PURE__ */ new Set();
|
|
512
527
|
let n = !1;
|
|
513
528
|
for (const o of String(t || "").split(`
|
|
@@ -2297,7 +2312,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
|
|
|
2297
2312
|
),
|
|
2298
2313
|
[t]
|
|
2299
2314
|
), null;
|
|
2300
|
-
}, Ft = /^[0-9a-f]{32}$/,
|
|
2315
|
+
}, Ft = /^[0-9a-f]{32}$/, zl = (t, e) => `source:${t}` + (e ? `?${new URLSearchParams({ type: e.type, id: e.id })}` : ""), ze = (t) => {
|
|
2301
2316
|
if (!t) return null;
|
|
2302
2317
|
const e = t.match(/^source:([0-9a-f]{32})(?:\?(.*))?$/);
|
|
2303
2318
|
if (e) {
|
|
@@ -3634,7 +3649,7 @@ const js = (t, e) => {
|
|
|
3634
3649
|
keywords: d,
|
|
3635
3650
|
relevance: n.relevance
|
|
3636
3651
|
};
|
|
3637
|
-
}),
|
|
3652
|
+
}), Fl = ({
|
|
3638
3653
|
suggestions: t = {},
|
|
3639
3654
|
// version options read the product types
|
|
3640
3655
|
project: e = { productTypes: [] },
|
|
@@ -3923,10 +3938,10 @@ const js = (t, e) => {
|
|
|
3923
3938
|
values: z["last-year"](),
|
|
3924
3939
|
icon: "calendar_month"
|
|
3925
3940
|
}
|
|
3926
|
-
],
|
|
3941
|
+
], Kl = An(), ia = () => [
|
|
3927
3942
|
ra,
|
|
3928
3943
|
...An()
|
|
3929
|
-
],
|
|
3944
|
+
], Ul = ia(), Hl = (t, e) => {
|
|
3930
3945
|
if (!t || !e) return null;
|
|
3931
3946
|
try {
|
|
3932
3947
|
const n = B(t), o = B(e);
|
|
@@ -4075,7 +4090,7 @@ const js = (t, e) => {
|
|
|
4075
4090
|
o.set("activity", e);
|
|
4076
4091
|
const i = new URL(`${window.location.origin}/projects/${t}/${r}`);
|
|
4077
4092
|
return i.search = o.toString(), i.toString();
|
|
4078
|
-
},
|
|
4093
|
+
}, jl = x.div`
|
|
4079
4094
|
/* use grid tick for auto height transition */
|
|
4080
4095
|
display: grid;
|
|
4081
4096
|
height: 100%;
|
|
@@ -4103,7 +4118,7 @@ const js = (t, e) => {
|
|
|
4103
4118
|
--button-color-secondary: ${e};
|
|
4104
4119
|
--button-text-color: ${to(t)};
|
|
4105
4120
|
--border-color: ${t};
|
|
4106
|
-
`,
|
|
4121
|
+
`, Gl = x.div`
|
|
4107
4122
|
/* VARS */
|
|
4108
4123
|
--background-color: var(--md-sys-color-surface-container);
|
|
4109
4124
|
--button-color: var(--md-sys-color-primary);
|
|
@@ -4201,14 +4216,14 @@ const js = (t, e) => {
|
|
|
4201
4216
|
/* remove outline */
|
|
4202
4217
|
outline: none;
|
|
4203
4218
|
}
|
|
4204
|
-
`,
|
|
4219
|
+
`, Wl = x.div`
|
|
4205
4220
|
padding: 4px 4px 0;
|
|
4206
|
-
`,
|
|
4221
|
+
`, Yl = x.span`
|
|
4207
4222
|
width: 1px;
|
|
4208
4223
|
height: 18px;
|
|
4209
4224
|
margin: 0 4px;
|
|
4210
4225
|
background-color: var(--md-sys-color-surface-container-hover);
|
|
4211
|
-
`,
|
|
4226
|
+
`, ql = x.footer`
|
|
4212
4227
|
display: flex;
|
|
4213
4228
|
justify-content: space-between;
|
|
4214
4229
|
padding: var(--padding-m);
|
|
@@ -4249,7 +4264,7 @@ const js = (t, e) => {
|
|
|
4249
4264
|
}
|
|
4250
4265
|
}
|
|
4251
4266
|
}
|
|
4252
|
-
`,
|
|
4267
|
+
`, Vl = x.div`
|
|
4253
4268
|
display: inline-flex;
|
|
4254
4269
|
align-items: center;
|
|
4255
4270
|
border-radius: var(--border-radius-m);
|
|
@@ -4263,14 +4278,14 @@ const js = (t, e) => {
|
|
|
4263
4278
|
background-color: var(--md-sys-color-primary-container-hover);
|
|
4264
4279
|
}
|
|
4265
4280
|
}
|
|
4266
|
-
`,
|
|
4281
|
+
`, Ql = x(te)`
|
|
4267
4282
|
color: inherit;
|
|
4268
4283
|
background: transparent;
|
|
4269
4284
|
|
|
4270
4285
|
&:hover {
|
|
4271
4286
|
background-color: var(--md-sys-color-primary-container-hover) !important;
|
|
4272
4287
|
}
|
|
4273
|
-
`,
|
|
4288
|
+
`, Jl = x(te)`
|
|
4274
4289
|
width: 100%;
|
|
4275
4290
|
padding: 4px 6px;
|
|
4276
4291
|
white-space: nowrap;
|
|
@@ -4280,14 +4295,14 @@ const js = (t, e) => {
|
|
|
4280
4295
|
&:hover {
|
|
4281
4296
|
background-color: var(--md-sys-color-surface-container-low) !important;
|
|
4282
4297
|
}
|
|
4283
|
-
`,
|
|
4298
|
+
`, Xl = x(eo)`
|
|
4284
4299
|
min-width: 0;
|
|
4285
4300
|
padding: 4px 8px;
|
|
4286
|
-
`,
|
|
4301
|
+
`, Zl = x(ma)`
|
|
4287
4302
|
margin-left: auto;
|
|
4288
4303
|
flex-shrink: 1;
|
|
4289
4304
|
overflow: hidden;
|
|
4290
|
-
`,
|
|
4305
|
+
`, ec = x.div`
|
|
4291
4306
|
position: absolute;
|
|
4292
4307
|
inset: 0;
|
|
4293
4308
|
user-select: none;
|
|
@@ -4311,18 +4326,18 @@ const js = (t, e) => {
|
|
|
4311
4326
|
.icon {
|
|
4312
4327
|
font-size: 40px;
|
|
4313
4328
|
}
|
|
4314
|
-
`,
|
|
4329
|
+
`, tc = x.span`
|
|
4315
4330
|
padding: 12px 15px;
|
|
4316
4331
|
/* italic */
|
|
4317
4332
|
font-style: italic;
|
|
4318
4333
|
opacity: 0.4;
|
|
4319
|
-
`,
|
|
4334
|
+
`, nc = x.div`
|
|
4320
4335
|
display: grid;
|
|
4321
4336
|
gap: var(--base-gap-medium);
|
|
4322
4337
|
grid-template-columns: 1fr 1fr;
|
|
4323
|
-
`,
|
|
4338
|
+
`, oc = x.div`
|
|
4324
4339
|
margin-top: var(--padding-m);
|
|
4325
|
-
`,
|
|
4340
|
+
`, rc = x(te)`
|
|
4326
4341
|
background: transparent;
|
|
4327
4342
|
border: solid 1px currentColor;
|
|
4328
4343
|
flex-grow: 1;
|
|
@@ -4357,7 +4372,7 @@ const js = (t, e) => {
|
|
|
4357
4372
|
pointer-events: none;
|
|
4358
4373
|
}
|
|
4359
4374
|
}
|
|
4360
|
-
`,
|
|
4375
|
+
`, ic = x.div`
|
|
4361
4376
|
border-radius: var(--border-radius-l);
|
|
4362
4377
|
margin-bottom: var(--padding-m);
|
|
4363
4378
|
user-select: none;
|
|
@@ -4385,7 +4400,7 @@ const js = (t, e) => {
|
|
|
4385
4400
|
x.div`
|
|
4386
4401
|
border-radius: var(--border-radius-m);
|
|
4387
4402
|
`;
|
|
4388
|
-
const
|
|
4403
|
+
const sc = x.li`
|
|
4389
4404
|
/* VARS */
|
|
4390
4405
|
--background-color: var(--md-sys-color-surface-container);
|
|
4391
4406
|
--button-color-secondary: var(--md-sys-color-surface-container-high);
|
|
@@ -4435,7 +4450,7 @@ const ic = x.li`
|
|
|
4435
4450
|
&.isHighlighted {
|
|
4436
4451
|
background-color: var(--md-sys-color-secondary-container);
|
|
4437
4452
|
}
|
|
4438
|
-
`,
|
|
4453
|
+
`, ac = x.div`
|
|
4439
4454
|
background-color: var(--background-color);
|
|
4440
4455
|
border-radius: var(--border-radius-m);
|
|
4441
4456
|
padding: var(--padding-m);
|
|
@@ -4667,7 +4682,7 @@ const Wt = x.pre`
|
|
|
4667
4682
|
color: var(--md-sys-color-tertiary);
|
|
4668
4683
|
white-space: pre-wrap;
|
|
4669
4684
|
word-break: break-word;
|
|
4670
|
-
`,
|
|
4685
|
+
`, lc = x.div`
|
|
4671
4686
|
display: flex;
|
|
4672
4687
|
position: absolute;
|
|
4673
4688
|
right: 4px;
|
|
@@ -4680,7 +4695,7 @@ const Wt = x.pre`
|
|
|
4680
4695
|
|
|
4681
4696
|
/* by default hidden */
|
|
4682
4697
|
opacity: 0;
|
|
4683
|
-
`,
|
|
4698
|
+
`, cc = x(te)`
|
|
4684
4699
|
&.hasIcon {
|
|
4685
4700
|
padding: 4px;
|
|
4686
4701
|
}
|
|
@@ -4695,7 +4710,7 @@ const Wt = x.pre`
|
|
|
4695
4710
|
position: relative;
|
|
4696
4711
|
top: -1px;
|
|
4697
4712
|
}
|
|
4698
|
-
`,
|
|
4713
|
+
`, dc = x.span`
|
|
4699
4714
|
background-color: var(--md-sys-color-secondary-container);
|
|
4700
4715
|
display: flex;
|
|
4701
4716
|
align-items: center;
|
|
@@ -4716,14 +4731,14 @@ const Wt = x.pre`
|
|
|
4716
4731
|
.icon {
|
|
4717
4732
|
font-size: 24px;
|
|
4718
4733
|
}
|
|
4719
|
-
`,
|
|
4734
|
+
`, uc = x.div`
|
|
4720
4735
|
display: flex;
|
|
4721
4736
|
align-items: center;
|
|
4722
4737
|
gap: var(--base-gap-small);
|
|
4723
4738
|
min-width: 0;
|
|
4724
4739
|
overflow-x: auto;
|
|
4725
4740
|
padding-bottom: 4px;
|
|
4726
|
-
`,
|
|
4741
|
+
`, mc = x.button`
|
|
4727
4742
|
display: inline-flex;
|
|
4728
4743
|
align-items: center;
|
|
4729
4744
|
gap: var(--base-gap-small);
|
|
@@ -4779,7 +4794,7 @@ const Wt = x.pre`
|
|
|
4779
4794
|
}
|
|
4780
4795
|
}
|
|
4781
4796
|
return {};
|
|
4782
|
-
}, fa = (t) => qt.Children.toArray(t).map((e) => typeof e == "string" || typeof e == "number" ? String(e) : "").join(""),
|
|
4797
|
+
}, fa = (t) => qt.Children.toArray(t).map((e) => typeof e == "string" || typeof e == "number" ? String(e) : "").join(""), pc = ({ children: t, href: e }, {
|
|
4783
4798
|
entityId: n,
|
|
4784
4799
|
entityType: o,
|
|
4785
4800
|
userName: r,
|
|
@@ -4848,17 +4863,17 @@ const Wt = x.pre`
|
|
|
4848
4863
|
children: w
|
|
4849
4864
|
}
|
|
4850
4865
|
);
|
|
4851
|
-
},
|
|
4866
|
+
}, gc = ({ type: t, checked: e, ...n }, { activity: o, onCheckChange: r }) => t === "checkbox" ? /* @__PURE__ */ l(
|
|
4852
4867
|
aa,
|
|
4853
4868
|
{
|
|
4854
4869
|
checked: !!e,
|
|
4855
4870
|
onChange: (i) => r && r(i, o)
|
|
4856
4871
|
}
|
|
4857
|
-
) : /* @__PURE__ */ l("input", { type: t, disabled: !0, ...n }),
|
|
4872
|
+
) : /* @__PURE__ */ l("input", { type: t, disabled: !0, ...n }), hc = ({ node: t, className: e, children: n }) => {
|
|
4858
4873
|
if (!(!!e?.startsWith("language-") || t?.position && t.position.start.line !== t.position.end.line)) return /* @__PURE__ */ l(pa, { children: n });
|
|
4859
4874
|
const r = e?.replace(/^language-/, ""), i = typeof n == "string" ? n.replace(/\n$/, "") : null, s = i !== null ? yr(i, r) : null;
|
|
4860
4875
|
return s !== null ? /* @__PURE__ */ l(Wt, { children: /* @__PURE__ */ l("code", { className: e, dangerouslySetInnerHTML: { __html: s } }) }) : /* @__PURE__ */ l(Wt, { children: n });
|
|
4861
|
-
},
|
|
4876
|
+
}, fc = ({ children: t }) => {
|
|
4862
4877
|
const e = qt.Children.toArray(t).find((o) => !!o?.props)?.props?.children;
|
|
4863
4878
|
if (!e) return /* @__PURE__ */ l("blockquote", { children: t });
|
|
4864
4879
|
const n = [];
|
|
@@ -4908,67 +4923,91 @@ const Wt = x.pre`
|
|
|
4908
4923
|
z-index: 0;
|
|
4909
4924
|
border-radius: 100%;
|
|
4910
4925
|
}
|
|
4911
|
-
`,
|
|
4926
|
+
`, bc = Vt(
|
|
4912
4927
|
({ className: t, ...e }, n) => /* @__PURE__ */ l(ba, { className: P("playable", t), ...e, ref: n, children: /* @__PURE__ */ l(J, { icon: "play_circle" }) })
|
|
4913
4928
|
);
|
|
4914
4929
|
export {
|
|
4915
|
-
|
|
4916
|
-
|
|
4930
|
+
Ae as $,
|
|
4931
|
+
$n as A,
|
|
4917
4932
|
ae as B,
|
|
4918
4933
|
oa as C,
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4934
|
+
Er as D,
|
|
4935
|
+
be as E,
|
|
4936
|
+
Cr as F,
|
|
4937
|
+
ye as G,
|
|
4938
|
+
Fl as H,
|
|
4939
|
+
vt as I,
|
|
4940
|
+
Ul as J,
|
|
4941
|
+
Kl as K,
|
|
4942
|
+
ia as L,
|
|
4943
|
+
Br as M,
|
|
4929
4944
|
Se as N,
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4945
|
+
Bl as O,
|
|
4946
|
+
$s as P,
|
|
4947
|
+
vn as Q,
|
|
4948
|
+
_r as R,
|
|
4949
|
+
bt as S,
|
|
4950
|
+
zl as T,
|
|
4936
4951
|
gr as U,
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4952
|
+
Rr as V,
|
|
4953
|
+
ai as W,
|
|
4954
|
+
ze as X,
|
|
4940
4955
|
Nr as Y,
|
|
4941
|
-
|
|
4942
|
-
|
|
4956
|
+
j as Z,
|
|
4957
|
+
bc as _,
|
|
4943
4958
|
na as a,
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4959
|
+
ga as a0,
|
|
4960
|
+
rt as a1,
|
|
4961
|
+
Js as a2,
|
|
4962
|
+
ic as a3,
|
|
4963
|
+
nc as a4,
|
|
4964
|
+
rc as a5,
|
|
4965
|
+
jl as a6,
|
|
4966
|
+
Gl as a7,
|
|
4967
|
+
Wl as a8,
|
|
4968
|
+
Yl as a9,
|
|
4969
|
+
tc as aa,
|
|
4970
|
+
ql as ab,
|
|
4971
|
+
ma as ac,
|
|
4972
|
+
Vl as ad,
|
|
4973
|
+
Ql as ae,
|
|
4974
|
+
Xl as af,
|
|
4975
|
+
Jl as ag,
|
|
4976
|
+
Zl as ah,
|
|
4977
|
+
ec as ai,
|
|
4978
|
+
oc as aj,
|
|
4979
|
+
uc as ak,
|
|
4980
|
+
mc as al,
|
|
4981
|
+
ua as am,
|
|
4982
|
+
sc as an,
|
|
4983
|
+
ac as ao,
|
|
4984
|
+
lc as ap,
|
|
4985
|
+
cc as aq,
|
|
4986
|
+
dc as ar,
|
|
4987
|
+
pc as as,
|
|
4988
|
+
fc as b,
|
|
4989
|
+
hc as c,
|
|
4990
|
+
Hl as d,
|
|
4991
|
+
Al as e,
|
|
4953
4992
|
z as f,
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4993
|
+
ra as g,
|
|
4994
|
+
An as h,
|
|
4995
|
+
gc as i,
|
|
4996
|
+
De as j,
|
|
4997
|
+
pe as k,
|
|
4998
|
+
Rt as l,
|
|
4999
|
+
Xe as m,
|
|
5000
|
+
hn as n,
|
|
5001
|
+
Sr as o,
|
|
4963
5002
|
re as p,
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
5003
|
+
et as q,
|
|
5004
|
+
Dl as r,
|
|
5005
|
+
Pl as s,
|
|
5006
|
+
ta as t,
|
|
5007
|
+
Pe as u,
|
|
5008
|
+
Qr as v,
|
|
5009
|
+
ht as w,
|
|
5010
|
+
wr as x,
|
|
5011
|
+
Hs as y,
|
|
5012
|
+
ve as z
|
|
4974
5013
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as P } from "react/jsx-runtime";
|
|
2
2
|
import { useState as M, useCallback as u } from "react";
|
|
3
|
-
import { u as
|
|
4
|
-
import { T as
|
|
3
|
+
import { u as B } from "./useCreateContextMenu.es.js";
|
|
4
|
+
import { T as F, P as S } from "./DeleteEntitiesContextInstance.es.js";
|
|
5
5
|
import "./searchTerms.es.js";
|
|
6
|
-
import { c4 as
|
|
6
|
+
import { c4 as _, c1 as w, dB as G } from "./getUris.es.js";
|
|
7
7
|
import "primereact/confirmdialog";
|
|
8
8
|
import "lodash";
|
|
9
9
|
import "react-toastify";
|
|
@@ -15,7 +15,7 @@ const W = ({
|
|
|
15
15
|
versionsInputRef: e,
|
|
16
16
|
canUploadVersion: r = !1
|
|
17
17
|
}) => {
|
|
18
|
-
const [, a] = M(!1), [T] =
|
|
18
|
+
const [, a] = M(!1), [T] = B(), f = () => a(!1), d = () => {
|
|
19
19
|
c?.current && (c.current.click(), a(!0));
|
|
20
20
|
}, i = () => {
|
|
21
21
|
e?.current && (e.current.click(), a(!0));
|
|
@@ -37,7 +37,7 @@ const W = ({
|
|
|
37
37
|
T(y, s);
|
|
38
38
|
};
|
|
39
39
|
return /* @__PURE__ */ P(
|
|
40
|
-
|
|
40
|
+
F.Provider,
|
|
41
41
|
{
|
|
42
42
|
value: {
|
|
43
43
|
resetFileUploadState: f,
|
|
@@ -94,7 +94,7 @@ const X = ({
|
|
|
94
94
|
isUninitialized: f,
|
|
95
95
|
error: d,
|
|
96
96
|
refetch: i
|
|
97
|
-
} =
|
|
97
|
+
} = _({ projectName: t }, { skip: !t }), { data: l = {}, refetch: y } = w(
|
|
98
98
|
{ projectName: t },
|
|
99
99
|
{ skip: !t }
|
|
100
100
|
), s = l.product_base_types?.default, { data: g } = G(
|
|
@@ -122,17 +122,17 @@ const X = ({
|
|
|
122
122
|
label: o.name,
|
|
123
123
|
icon: o.icon || s?.icon || m("product"),
|
|
124
124
|
color: o.color || s?.color || ""
|
|
125
|
-
})), [p, s]),
|
|
125
|
+
})), [p, s]), U = u(() => {
|
|
126
126
|
i(), y();
|
|
127
|
-
}, [i, y]),
|
|
127
|
+
}, [i, y]), A = {
|
|
128
128
|
getFolderType: h,
|
|
129
129
|
getTaskType: k,
|
|
130
130
|
getProductType: v,
|
|
131
131
|
getProductTypeOptions: x,
|
|
132
|
-
refetch:
|
|
132
|
+
refetch: U
|
|
133
133
|
};
|
|
134
134
|
return /* @__PURE__ */ P(
|
|
135
|
-
|
|
135
|
+
S.Provider,
|
|
136
136
|
{
|
|
137
137
|
value: {
|
|
138
138
|
...Q,
|
|
@@ -145,7 +145,7 @@ const X = ({
|
|
|
145
145
|
isSuccess: T,
|
|
146
146
|
isUninitialized: f,
|
|
147
147
|
error: d,
|
|
148
|
-
...
|
|
148
|
+
...A
|
|
149
149
|
},
|
|
150
150
|
children: c
|
|
151
151
|
}
|