@deviceinsight/ng-ui-scale-lib 10.2.0 → 10.2.2
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/{AccessEditModal-Rn7DKmYR.js → AccessEditModal-kndFZDt-.js} +2 -2
- package/dist/{AccessEditModal-Rn7DKmYR.js.map → AccessEditModal-kndFZDt-.js.map} +1 -1
- package/dist/{BundleManagementContainer-TrGIe0YX.js → BundleManagementContainer-vMlhg6fJ.js} +2 -2
- package/dist/{BundleManagementContainer-TrGIe0YX.js.map → BundleManagementContainer-vMlhg6fJ.js.map} +1 -1
- package/dist/{BundlesContainer-DBDS1cey.js → BundlesContainer-CaC__bAh.js} +3 -3
- package/dist/{BundlesContainer-DBDS1cey.js.map → BundlesContainer-CaC__bAh.js.map} +1 -1
- package/dist/{DatapointImport-DmBB5IO_.js → DatapointImport-Cq8cifAI.js} +2 -2
- package/dist/{DatapointImport-DmBB5IO_.js.map → DatapointImport-Cq8cifAI.js.map} +1 -1
- package/dist/{FileUploadInput-DWMYm62d.js → FileUploadInput-DSyHVZUT.js} +2 -2
- package/dist/{FileUploadInput-DWMYm62d.js.map → FileUploadInput-DSyHVZUT.js.map} +1 -1
- package/dist/{Files-DZoDxerS.js → Files-CJ7EHXzr.js} +3 -3
- package/dist/{Files-DZoDxerS.js.map → Files-CJ7EHXzr.js.map} +1 -1
- package/dist/{GlobalPowerBiReports-B0FFOZL6.js → GlobalPowerBiReports-PsiWcApU.js} +2 -2
- package/dist/{GlobalPowerBiReports-B0FFOZL6.js.map → GlobalPowerBiReports-PsiWcApU.js.map} +1 -1
- package/dist/{JsonSettingWidget-DdS4dPsa.js → JsonSettingWidget-CpZmTuBe.js} +2 -2
- package/dist/{JsonSettingWidget-DdS4dPsa.js.map → JsonSettingWidget-CpZmTuBe.js.map} +1 -1
- package/dist/{LicensesEditPage-DPJ4lLaV.js → LicensesEditPage-CwGor2gV.js} +2 -2
- package/dist/{LicensesEditPage-DPJ4lLaV.js.map → LicensesEditPage-CwGor2gV.js.map} +1 -1
- package/dist/{LicensesList-CkgWMSnM.js → LicensesList-DWQlVNdR.js} +2 -2
- package/dist/{LicensesList-CkgWMSnM.js.map → LicensesList-DWQlVNdR.js.map} +1 -1
- package/dist/{PropertiesEditPage--t5jnFmT.js → PropertiesEditPage-C4jjCoPp.js} +2 -2
- package/dist/{PropertiesEditPage--t5jnFmT.js.map → PropertiesEditPage-C4jjCoPp.js.map} +1 -1
- package/dist/{PropertiesList-BwbcDHUj.js → PropertiesList-CBLvLopM.js} +2 -2
- package/dist/{PropertiesList-BwbcDHUj.js.map → PropertiesList-CBLvLopM.js.map} +1 -1
- package/dist/{TemplateEditPage-IqiYJ6eB.js → TemplateEditPage-d-3_n4YW.js} +4 -4
- package/dist/{TemplateEditPage-IqiYJ6eB.js.map → TemplateEditPage-d-3_n4YW.js.map} +1 -1
- package/dist/{TemplateTextInput-bjR36XPj.js → TemplateTextInput-CQ6XJiql.js} +2 -2
- package/dist/{TemplateTextInput-bjR36XPj.js.map → TemplateTextInput-CQ6XJiql.js.map} +1 -1
- package/dist/{TemplatesListPage-Cv2vJe8b.js → TemplatesListPage-roTvuqft.js} +3 -3
- package/dist/{TemplatesListPage-Cv2vJe8b.js.map → TemplatesListPage-roTvuqft.js.map} +1 -1
- package/dist/{UserGroupAssignments-wEhudUHe.js → UserGroupAssignments-DTXRBp_V.js} +2 -2
- package/dist/{UserGroupAssignments-wEhudUHe.js.map → UserGroupAssignments-DTXRBp_V.js.map} +1 -1
- package/dist/{UserGroupTheme-C16SwuPr.js → UserGroupTheme-CAHBWb9Q.js} +2 -2
- package/dist/{UserGroupTheme-C16SwuPr.js.map → UserGroupTheme-CAHBWb9Q.js.map} +1 -1
- package/dist/api.d.ts +2 -5
- package/dist/api.js +2 -2
- package/dist/index.js +1102 -1085
- package/dist/index.js.map +1 -1
- package/dist/{setTitle-OKcazNTt.js → setTitle-CjnK8p-J.js} +484 -476
- package/dist/setTitle-CjnK8p-J.js.map +1 -0
- package/package.json +14 -13
- package/dist/setTitle-OKcazNTt.js.map +0 -1
|
@@ -678,7 +678,7 @@ function u1({ keyToEdit: e, onClose: t, onSuccess: s }) {
|
|
|
678
678
|
_(() => {
|
|
679
679
|
A("translations", p);
|
|
680
680
|
}, [p, A]);
|
|
681
|
-
const v = g("apiKey"), C = g("translations"),
|
|
681
|
+
const v = g("apiKey"), C = g("translations"), D = async ({ apiKey: P, translations: E }) => {
|
|
682
682
|
$a = P;
|
|
683
683
|
const T = a ? F.getTenantLocizeProject() : F.getMainLocizeProject();
|
|
684
684
|
if (!T) {
|
|
@@ -705,8 +705,8 @@ function u1({ keyToEdit: e, onClose: t, onSuccess: s }) {
|
|
|
705
705
|
);
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
|
-
function
|
|
709
|
-
return m(
|
|
708
|
+
function w() {
|
|
709
|
+
return m(D, (P) => {
|
|
710
710
|
console.warn("Validation error", P);
|
|
711
711
|
})();
|
|
712
712
|
}
|
|
@@ -794,7 +794,7 @@ function u1({ keyToEdit: e, onClose: t, onSuccess: s }) {
|
|
|
794
794
|
N,
|
|
795
795
|
{
|
|
796
796
|
primary: !0,
|
|
797
|
-
onClick:
|
|
797
|
+
onClick: w,
|
|
798
798
|
disabled: S || $e(p, C),
|
|
799
799
|
children: /* @__PURE__ */ n(h, { i18nKey: "general.actions.save", children: "Save" })
|
|
800
800
|
}
|
|
@@ -922,7 +922,7 @@ function p1() {
|
|
|
922
922
|
throw new Error("inixAxiosMsal: globalClientId not properly initialized!");
|
|
923
923
|
return ho;
|
|
924
924
|
}
|
|
925
|
-
const f1 = "10.2.
|
|
925
|
+
const f1 = "10.2.2", m1 = {
|
|
926
926
|
version: f1
|
|
927
927
|
}, g1 = () => is().PROD, w$ = () => m1.version, y1 = [
|
|
928
928
|
/\/v2\/oauth\/token$/,
|
|
@@ -3486,8 +3486,8 @@ function IT({
|
|
|
3486
3486
|
}
|
|
3487
3487
|
const v = DT(e), {
|
|
3488
3488
|
regularProperties: C,
|
|
3489
|
-
addCustomPropertyDescriptor:
|
|
3490
|
-
clear:
|
|
3489
|
+
addCustomPropertyDescriptor: D,
|
|
3490
|
+
clear: w
|
|
3491
3491
|
} = O(Fi), { datapointProperties: P, clear: E } = O(Bi), { customProperties: T, clear: I } = O(Ki);
|
|
3492
3492
|
return /* @__PURE__ */ f(
|
|
3493
3493
|
_i,
|
|
@@ -3508,7 +3508,7 @@ function IT({
|
|
|
3508
3508
|
eT,
|
|
3509
3509
|
{
|
|
3510
3510
|
onSubmit: (R, k) => {
|
|
3511
|
-
|
|
3511
|
+
D({
|
|
3512
3512
|
key: R,
|
|
3513
3513
|
type: k
|
|
3514
3514
|
}), p(!1);
|
|
@@ -3532,7 +3532,7 @@ function IT({
|
|
|
3532
3532
|
}),
|
|
3533
3533
|
badge: Lr(C),
|
|
3534
3534
|
tools: Gr(
|
|
3535
|
-
|
|
3535
|
+
w,
|
|
3536
3536
|
g,
|
|
3537
3537
|
oi(C)
|
|
3538
3538
|
),
|
|
@@ -3844,9 +3844,9 @@ function Xd({
|
|
|
3844
3844
|
onSubmit: c,
|
|
3845
3845
|
onValidationError: d
|
|
3846
3846
|
}) {
|
|
3847
|
-
const { t: u } = G(), [p, m] = b(!1), [g, y] = b(!1), [A, S] = b(!1), [v, C] = b(!1), { regularProperties:
|
|
3848
|
-
() => [...
|
|
3849
|
-
[
|
|
3847
|
+
const { t: u } = G(), [p, m] = b(!1), [g, y] = b(!1), [A, S] = b(!1), [v, C] = b(!1), { regularProperties: D, updateRegularProperties: w } = O(Fi), { datapointProperties: P, updateDatapointProperties: E } = O(Bi), { customProperties: T, updateCustomProperties: I } = O(Ki), R = $(
|
|
3848
|
+
() => [...D, ...P, ...T],
|
|
3849
|
+
[D, P, T]
|
|
3850
3850
|
), k = VT(t, R, s, d, e, u), [U, M] = b(!0);
|
|
3851
3851
|
function K(ye) {
|
|
3852
3852
|
l(ye), M(!0);
|
|
@@ -3875,7 +3875,7 @@ function Xd({
|
|
|
3875
3875
|
y(!0), S(!1);
|
|
3876
3876
|
try {
|
|
3877
3877
|
const ye = ia(t, ie, s), Xe = ye.filter(({ key: ee }) => Yf(ee)), lt = ye.filter(({ key: ee }) => mi(ee)), q = ye.filter(({ key: ee }) => gi(ee));
|
|
3878
|
-
|
|
3878
|
+
w(lt), E(q), I(Xe);
|
|
3879
3879
|
} catch {
|
|
3880
3880
|
} finally {
|
|
3881
3881
|
M(!1);
|
|
@@ -3887,7 +3887,7 @@ function Xd({
|
|
|
3887
3887
|
s,
|
|
3888
3888
|
U,
|
|
3889
3889
|
A,
|
|
3890
|
-
|
|
3890
|
+
w,
|
|
3891
3891
|
E,
|
|
3892
3892
|
I,
|
|
3893
3893
|
ie
|
|
@@ -4005,7 +4005,7 @@ function eu({ children: e, context: t }) {
|
|
|
4005
4005
|
);
|
|
4006
4006
|
}, []), C = z((E) => {
|
|
4007
4007
|
A((T) => T.filter((I) => I.key !== E));
|
|
4008
|
-
}, []),
|
|
4008
|
+
}, []), D = z(
|
|
4009
4009
|
(E) => {
|
|
4010
4010
|
const T = m.find((I) => I.key === E);
|
|
4011
4011
|
if (T) {
|
|
@@ -4014,7 +4014,7 @@ function eu({ children: e, context: t }) {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
},
|
|
4016
4016
|
[m]
|
|
4017
|
-
),
|
|
4017
|
+
), w = z(
|
|
4018
4018
|
(E) => {
|
|
4019
4019
|
const T = y.map(
|
|
4020
4020
|
(R) => E.find((k) => k.key === R.key) || zT(R)
|
|
@@ -4037,9 +4037,9 @@ function eu({ children: e, context: t }) {
|
|
|
4037
4037
|
{
|
|
4038
4038
|
value: {
|
|
4039
4039
|
regularProperties: y,
|
|
4040
|
-
updateRegularProperties:
|
|
4040
|
+
updateRegularProperties: w,
|
|
4041
4041
|
allPropertyDescriptors: m,
|
|
4042
|
-
addProperty:
|
|
4042
|
+
addProperty: D,
|
|
4043
4043
|
deleteProperty: C,
|
|
4044
4044
|
updateProperty: S,
|
|
4045
4045
|
clear: v,
|
|
@@ -5391,7 +5391,7 @@ const $C = (e, t, s) => {
|
|
|
5391
5391
|
formState: { isSubmitting: g, isDirty: y, errors: A },
|
|
5392
5392
|
watch: S,
|
|
5393
5393
|
handleSubmit: v
|
|
5394
|
-
} = m, C = S(),
|
|
5394
|
+
} = m, C = S(), D = r.some(({ key: T }) => T.startsWith("_")), { isValidating: w, validationError: P } = $C(
|
|
5395
5395
|
e?.id,
|
|
5396
5396
|
C,
|
|
5397
5397
|
y
|
|
@@ -5463,8 +5463,8 @@ const $C = (e, t, s) => {
|
|
|
5463
5463
|
className: "with-spinner",
|
|
5464
5464
|
primary: !0,
|
|
5465
5465
|
onClick: E,
|
|
5466
|
-
disabled: g ||
|
|
5467
|
-
children:
|
|
5466
|
+
disabled: g || w,
|
|
5467
|
+
children: w ? /* @__PURE__ */ f(L, { children: [
|
|
5468
5468
|
/* @__PURE__ */ n(ke, { size: 16 }),
|
|
5469
5469
|
" ",
|
|
5470
5470
|
/* @__PURE__ */ n(h, { i18nKey: "general.actions.validating", children: "Validating" })
|
|
@@ -5472,7 +5472,7 @@ const $C = (e, t, s) => {
|
|
|
5472
5472
|
}
|
|
5473
5473
|
),
|
|
5474
5474
|
/* @__PURE__ */ n(N, { disabled: g, onClick: s, children: /* @__PURE__ */ n(h, { i18nKey: "general.actions.cancel", children: "Cancel" }) }),
|
|
5475
|
-
|
|
5475
|
+
D && /* @__PURE__ */ n(
|
|
5476
5476
|
N,
|
|
5477
5477
|
{
|
|
5478
5478
|
naked: !0,
|
|
@@ -6270,7 +6270,7 @@ const Im = ({ title: e, settings: t, context: s }) => {
|
|
|
6270
6270
|
}
|
|
6271
6271
|
T();
|
|
6272
6272
|
}, [l, c, s, A, t]);
|
|
6273
|
-
const C = p ? AE(p) : [],
|
|
6273
|
+
const C = p ? AE(p) : [], D = Nm(i, r, s), w = (T) => `/assets/list?${new URLSearchParams([["query", T]])}`, P = w(D), E = (T, I) => {
|
|
6274
6274
|
let R = `"${T.name}"`;
|
|
6275
6275
|
if (T.datatype === "double" || T.datatype === "long" || T.datatype === "date")
|
|
6276
6276
|
if (I.length === 1 && (R = "[* TO *]"), T === I[I.length - 1])
|
|
@@ -6282,7 +6282,7 @@ const Im = ({ title: e, settings: t, context: s }) => {
|
|
|
6282
6282
|
R = `[${T.name} TO ${k.name}}`;
|
|
6283
6283
|
}
|
|
6284
6284
|
else T.datatype === "boolean" && (R = (!!T.name).toString());
|
|
6285
|
-
return
|
|
6285
|
+
return w(`${D} AND ${T.queryColumn}:${R}`);
|
|
6286
6286
|
};
|
|
6287
6287
|
return /* @__PURE__ */ f("div", { className: "dash-box aggregation", children: [
|
|
6288
6288
|
e && /* @__PURE__ */ n(
|
|
@@ -6470,16 +6470,16 @@ function X$({ children: e }) {
|
|
|
6470
6470
|
return o((v) => ({ ...v, [A]: S })), S;
|
|
6471
6471
|
},
|
|
6472
6472
|
createRole: async (A, S, v) => {
|
|
6473
|
-
const C = v || c?.name,
|
|
6474
|
-
return i((P) => [...P,
|
|
6473
|
+
const C = v || c?.name, D = C ? await kb(A, C) : await Gb(A), w = await pd(D.id, S);
|
|
6474
|
+
return i((P) => [...P, D]), o((P) => ({
|
|
6475
6475
|
...P,
|
|
6476
|
-
[
|
|
6477
|
-
})),
|
|
6476
|
+
[D.id]: w
|
|
6477
|
+
})), D.id;
|
|
6478
6478
|
},
|
|
6479
6479
|
updateRole: async (A, S) => {
|
|
6480
6480
|
const v = await Lb(A), C = await pd(A.id, S);
|
|
6481
|
-
i((
|
|
6482
|
-
...
|
|
6481
|
+
i((D) => D.map((w) => w.id === v.id ? v : w)), o((D) => ({
|
|
6482
|
+
...D,
|
|
6483
6483
|
[v.id]: C
|
|
6484
6484
|
}));
|
|
6485
6485
|
},
|
|
@@ -6915,14 +6915,14 @@ function $E({ config: e, onChangeConfig: t }) {
|
|
|
6915
6915
|
setDirectAssignmentsOnly: S,
|
|
6916
6916
|
setGroupBy: v,
|
|
6917
6917
|
setMetric: C,
|
|
6918
|
-
setProperty:
|
|
6919
|
-
setNumberInterval:
|
|
6918
|
+
setProperty: D,
|
|
6919
|
+
setNumberInterval: w,
|
|
6920
6920
|
setDateInterval: P,
|
|
6921
6921
|
setPreFilter: E
|
|
6922
6922
|
} = _m({
|
|
6923
6923
|
config: e,
|
|
6924
6924
|
onChangeConfig: t
|
|
6925
|
-
}), [T, I] = b(o), [R, k] = b(s), U = $(() => Qt(E, 500), [E]), M = $(() => Qt(
|
|
6925
|
+
}), [T, I] = b(o), [R, k] = b(s), U = $(() => Qt(E, 500), [E]), M = $(() => Qt(w, 500), [w]);
|
|
6926
6926
|
function K(re) {
|
|
6927
6927
|
k(re), U(re);
|
|
6928
6928
|
}
|
|
@@ -6979,7 +6979,7 @@ function $E({ config: e, onChangeConfig: t }) {
|
|
|
6979
6979
|
{
|
|
6980
6980
|
"data-testid": "property-select",
|
|
6981
6981
|
options: m,
|
|
6982
|
-
onChange: (re) =>
|
|
6982
|
+
onChange: (re) => D(re ? re.value : null),
|
|
6983
6983
|
value: y(i || ""),
|
|
6984
6984
|
placeholder: d("dashboard.widgets.aggregation.propertyPlaceholder", {
|
|
6985
6985
|
defaultValue: "Select property ..."
|
|
@@ -8475,7 +8475,7 @@ function BD({ config: e, datapoints: t, asset: s, large: a, showAxisLabel: i })
|
|
|
8475
8475
|
), y = Xi(d, t), A = Cc(y, s, m), { value: S } = Fm(A), v = y && y.datatype === "datapoint" ? y.datapoint.unit : null;
|
|
8476
8476
|
if (!d || !y)
|
|
8477
8477
|
return null;
|
|
8478
|
-
const C = MD(e, S), { min:
|
|
8478
|
+
const C = MD(e, S), { min: D, max: w } = KD(s?.urn ?? "", e, g);
|
|
8479
8479
|
return /* @__PURE__ */ f("div", { className: "chart-container", "data-testid": "datapoint-chart-wrapper", children: [
|
|
8480
8480
|
/* @__PURE__ */ f("div", { className: "chart-title", "data-testid": "title", children: [
|
|
8481
8481
|
u ? /* @__PURE__ */ n("span", { title: u, children: u }) : y.datatype === "datapoint" ? /* @__PURE__ */ n(Oa, { datapoint: y.datapoint }) : d.key,
|
|
@@ -8487,8 +8487,8 @@ function BD({ config: e, datapoints: t, asset: s, large: a, showAxisLabel: i })
|
|
|
8487
8487
|
{
|
|
8488
8488
|
value: typeof S == "number" ? S : 0,
|
|
8489
8489
|
showLabels: i,
|
|
8490
|
-
min:
|
|
8491
|
-
max:
|
|
8490
|
+
min: D,
|
|
8491
|
+
max: w,
|
|
8492
8492
|
firstThreshold: typeof l == "number" ? l : void 0,
|
|
8493
8493
|
secondThreshold: typeof c == "number" ? c : void 0,
|
|
8494
8494
|
className: "chart",
|
|
@@ -9243,7 +9243,7 @@ function hw({
|
|
|
9243
9243
|
isUnavailable: m,
|
|
9244
9244
|
onTabRemove: g
|
|
9245
9245
|
}) {
|
|
9246
|
-
const y = Sn([t]), A = e.type === "asset" ? e.asset.urn : y[t]?.urn, { datapoints: S } = Ht(A), C = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? S,
|
|
9246
|
+
const y = Sn([t]), A = e.type === "asset" ? e.asset.urn : y[t]?.urn, { datapoints: S } = Ht(A), C = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? S, D = C?.find((k) => k.name === u), { t: w } = G(), [P, E] = b({}), T = m ? {
|
|
9247
9247
|
id: "dashboard.widgets.chartsConfiguration.unavailableDatapoint",
|
|
9248
9248
|
defaultValue: "This datapoint is unavailable"
|
|
9249
9249
|
} : void 0;
|
|
@@ -9287,11 +9287,11 @@ function hw({
|
|
|
9287
9287
|
title: T
|
|
9288
9288
|
}
|
|
9289
9289
|
),
|
|
9290
|
-
|
|
9290
|
+
D?.properties?.dpDescription && /* @__PURE__ */ n(L, { children: /* @__PURE__ */ f("div", { className: "description", "data-testid": "dpDescription", children: [
|
|
9291
9291
|
/* @__PURE__ */ n(h, { i18nKey: "rules.dpDescription", children: "Description" }),
|
|
9292
9292
|
":",
|
|
9293
9293
|
" ",
|
|
9294
|
-
We(
|
|
9294
|
+
We(D.properties.dpDescription.toString(), w)
|
|
9295
9295
|
] }) })
|
|
9296
9296
|
]
|
|
9297
9297
|
}
|
|
@@ -9305,7 +9305,7 @@ function hw({
|
|
|
9305
9305
|
{
|
|
9306
9306
|
"data-testid-prefix": "min",
|
|
9307
9307
|
label: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.barchart.chartMin", children: "Bar minimum" }),
|
|
9308
|
-
placeholder:
|
|
9308
|
+
placeholder: w("dashboard.widgets.barchart.minPlaceholder", {
|
|
9309
9309
|
defaultValue: "e.g. 0"
|
|
9310
9310
|
}),
|
|
9311
9311
|
sourceDatapoint: i.minDatapointName,
|
|
@@ -9326,7 +9326,7 @@ function hw({
|
|
|
9326
9326
|
{
|
|
9327
9327
|
"data-testid-prefix": "max",
|
|
9328
9328
|
label: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.barchart.chartMax", children: "Bar maximum" }),
|
|
9329
|
-
placeholder:
|
|
9329
|
+
placeholder: w("dashboard.widgets.barchart.maxPlaceholder", {
|
|
9330
9330
|
defaultValue: "e.g. 100"
|
|
9331
9331
|
}),
|
|
9332
9332
|
sourceDatapoint: i.maxDatapointName,
|
|
@@ -9348,7 +9348,7 @@ function hw({
|
|
|
9348
9348
|
/* @__PURE__ */ n(
|
|
9349
9349
|
"span",
|
|
9350
9350
|
{
|
|
9351
|
-
title:
|
|
9351
|
+
title: w("dashboard.widgets.barchart.color1Tooltip", {
|
|
9352
9352
|
defaultValue: "Default Bar Color"
|
|
9353
9353
|
}),
|
|
9354
9354
|
"data-testid": "first-color-picker-wrapper",
|
|
@@ -9378,7 +9378,7 @@ function hw({
|
|
|
9378
9378
|
Ou,
|
|
9379
9379
|
{
|
|
9380
9380
|
"data-testid": "first-threshold-input",
|
|
9381
|
-
placeholder:
|
|
9381
|
+
placeholder: w("dashboard.widgets.barchart.thresholdPlaceholder1", {
|
|
9382
9382
|
defaultValue: "e.g. 70"
|
|
9383
9383
|
}),
|
|
9384
9384
|
onChange: (k) => a.setFirstThresholdValue(s, k),
|
|
@@ -9389,7 +9389,7 @@ function hw({
|
|
|
9389
9389
|
/* @__PURE__ */ n(
|
|
9390
9390
|
"span",
|
|
9391
9391
|
{
|
|
9392
|
-
title:
|
|
9392
|
+
title: w("dashboard.widgets.barchart.color2Tooltip", {
|
|
9393
9393
|
defaultValue: "Bar Color if Threshold 1 < Value < Threshold 2"
|
|
9394
9394
|
}),
|
|
9395
9395
|
"data-testid": "second-color-picker-wrapper",
|
|
@@ -9420,7 +9420,7 @@ function hw({
|
|
|
9420
9420
|
Ou,
|
|
9421
9421
|
{
|
|
9422
9422
|
"data-testid": "second-threshold-input",
|
|
9423
|
-
placeholder:
|
|
9423
|
+
placeholder: w("dashboard.widgets.barchart.thresholdPlaceholder2", {
|
|
9424
9424
|
defaultValue: "e.g. 90"
|
|
9425
9425
|
}),
|
|
9426
9426
|
onChange: (k) => a.setSecondThresholdValue(s, k),
|
|
@@ -9431,7 +9431,7 @@ function hw({
|
|
|
9431
9431
|
/* @__PURE__ */ n(
|
|
9432
9432
|
"span",
|
|
9433
9433
|
{
|
|
9434
|
-
title:
|
|
9434
|
+
title: w("dashboard.widgets.barchart.color3Tooltip", {
|
|
9435
9435
|
defaultValue: "Bar Color if Value ≥ Threshold 2"
|
|
9436
9436
|
}),
|
|
9437
9437
|
"data-testid": "third-color-picker-wrapper",
|
|
@@ -9499,38 +9499,38 @@ function yw({
|
|
|
9499
9499
|
onChangeConfig: s,
|
|
9500
9500
|
setApplyButtonDisabled: a
|
|
9501
9501
|
}) {
|
|
9502
|
-
const i = FD(t, s), [r, o] = b(0), [l, c] = b(!1), [d, u] = b(!1), [p, m] = b(!1), [g, y] = b(!1), [A, S] = b(!1), [v, C] = b(!1),
|
|
9503
|
-
settings: { tabsConfig:
|
|
9502
|
+
const i = FD(t, s), [r, o] = b(0), [l, c] = b(!1), [d, u] = b(!1), [p, m] = b(!1), [g, y] = b(!1), [A, S] = b(!1), [v, C] = b(!1), D = iw(t, s), {
|
|
9503
|
+
settings: { tabsConfig: w, assetId: P, bulletSize: E, showAxisLabel: T }
|
|
9504
9504
|
} = t, I = an(e, P), { datapoints: R, fetching: k } = Ht(I?.urn), M = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? R, K = (Ce) => {
|
|
9505
|
-
l && (m(!0), y(!0)), u(!1),
|
|
9505
|
+
l && (m(!0), y(!0)), u(!1), D.setSelectedAssetId(Ce.id);
|
|
9506
9506
|
}, Y = () => {
|
|
9507
9507
|
l && (lt(), c(!1)), u(!1);
|
|
9508
9508
|
}, Q = (Ce) => {
|
|
9509
|
-
m(!1), c(!1), y(!1),
|
|
9509
|
+
m(!1), c(!1), y(!1), D.setDatasource(r, bs(Ce));
|
|
9510
9510
|
}, ue = () => {
|
|
9511
9511
|
l && (e.type === "asset" ? (lt(), c(!1)) : g && (u(!0), y(!1))), m(!1);
|
|
9512
9512
|
}, re = (Ce) => {
|
|
9513
|
-
A ? (
|
|
9513
|
+
A ? (D.setScaleMinDatapoint(r, Ce.name), S(!1)) : (D.setScaleMaxDatapoint(r, Ce.name), C(!1));
|
|
9514
9514
|
}, Ae = () => {
|
|
9515
9515
|
A ? S(!1) : C(!1);
|
|
9516
9516
|
}, ie = z(() => {
|
|
9517
|
-
o(
|
|
9518
|
-
}, [
|
|
9517
|
+
o(w.length), c(!0), D.createTab(), e.type !== "asset" && e.type !== "assetDefinition" && !P ? u(!0) : m(!0);
|
|
9518
|
+
}, [D, e, w, P]), X = (Ce) => {
|
|
9519
9519
|
Ce === Hm ? ie() : o(gw(Ce));
|
|
9520
9520
|
}, ye = () => {
|
|
9521
9521
|
u(!0);
|
|
9522
9522
|
}, Xe = () => {
|
|
9523
9523
|
m(!0);
|
|
9524
9524
|
}, lt = () => {
|
|
9525
|
-
|
|
9525
|
+
D.removeTab(r), r >= w.length - 1 && o(0);
|
|
9526
9526
|
};
|
|
9527
9527
|
if (_(() => {
|
|
9528
|
-
i && !
|
|
9529
|
-
}, [
|
|
9528
|
+
i && !w.length && !l && ie();
|
|
9529
|
+
}, [w, l, ie, i]), _(() => {
|
|
9530
9530
|
a(
|
|
9531
|
-
e.type === "assetGroup" && !P || !pw(M,
|
|
9531
|
+
e.type === "assetGroup" && !P || !pw(M, w)
|
|
9532
9532
|
);
|
|
9533
|
-
}, [a, e, P,
|
|
9533
|
+
}, [a, e, P, w, M]), d)
|
|
9534
9534
|
return /* @__PURE__ */ f(L, { children: [
|
|
9535
9535
|
/* @__PURE__ */ n(
|
|
9536
9536
|
jn,
|
|
@@ -9552,7 +9552,7 @@ function yw({
|
|
|
9552
9552
|
allowedDatatypes: ["LONG", "DOUBLE", "FLOAT"]
|
|
9553
9553
|
}
|
|
9554
9554
|
),
|
|
9555
|
-
(!l || g ||
|
|
9555
|
+
(!l || g || w.length > 1) && /* @__PURE__ */ n(N, { onClick: ue, children: /* @__PURE__ */ n(h, { i18nKey: "general.page.back", children: "Back" }) })
|
|
9556
9556
|
] });
|
|
9557
9557
|
if (A || v) {
|
|
9558
9558
|
if (!I && e.type !== "assetDefinition") return /* @__PURE__ */ n(ke, {});
|
|
@@ -9572,11 +9572,11 @@ function yw({
|
|
|
9572
9572
|
] });
|
|
9573
9573
|
}
|
|
9574
9574
|
const q = () => {
|
|
9575
|
-
|
|
9575
|
+
D.setBulletSize(
|
|
9576
9576
|
E === ko || !E ? Oo : ko
|
|
9577
9577
|
);
|
|
9578
9578
|
}, ee = (Ce) => {
|
|
9579
|
-
|
|
9579
|
+
D.setShowAxisLabel(Ce);
|
|
9580
9580
|
}, se = E !== Oo;
|
|
9581
9581
|
return /* @__PURE__ */ f("div", { className: "di bar-chart-widget-config", children: [
|
|
9582
9582
|
/* @__PURE__ */ f("div", { className: "di form", children: [
|
|
@@ -9631,7 +9631,7 @@ function yw({
|
|
|
9631
9631
|
] }),
|
|
9632
9632
|
(() => {
|
|
9633
9633
|
if (!I && e.type !== "assetDefinition" || !i) return /* @__PURE__ */ n(ke, {});
|
|
9634
|
-
const Ce =
|
|
9634
|
+
const Ce = w.map(({ datasource: rt, minDatapointName: Pt, maxDatapointName: wn }) => {
|
|
9635
9635
|
const Ve = rt?.datatype, Nr = rt?.key;
|
|
9636
9636
|
return {
|
|
9637
9637
|
isUnavailable: Ve === "datapoint" && !(M || []).some((Ka) => Ka.name === Nr),
|
|
@@ -9641,7 +9641,7 @@ function yw({
|
|
|
9641
9641
|
datasourceKey: Nr || ""
|
|
9642
9642
|
};
|
|
9643
9643
|
}).filter(Boolean), He = (rt, Pt) => {
|
|
9644
|
-
|
|
9644
|
+
D.changeColor(r, rt, Pt);
|
|
9645
9645
|
}, qe = Ce.map(({ showWarningIcon: rt, isUnavailable: Pt, datasourceKey: wn }, Ve) => ({
|
|
9646
9646
|
name: Kr(Ve),
|
|
9647
9647
|
renderHeading: () => /* @__PURE__ */ f("span", { className: "tabs-heading", children: [
|
|
@@ -9655,13 +9655,13 @@ function yw({
|
|
|
9655
9655
|
{
|
|
9656
9656
|
context: e,
|
|
9657
9657
|
config: t,
|
|
9658
|
-
values:
|
|
9658
|
+
values: w[Ve],
|
|
9659
9659
|
tabNumber: Ve,
|
|
9660
|
-
configUtils:
|
|
9660
|
+
configUtils: D,
|
|
9661
9661
|
onMinDatapointRequested: () => S(!0),
|
|
9662
9662
|
onMaxDatapointRequested: () => C(!0),
|
|
9663
|
-
onMinDatapointReset: () =>
|
|
9664
|
-
onMaxDatapointReset: () =>
|
|
9663
|
+
onMinDatapointReset: () => D.clearScaleMinDatapoint(Ve),
|
|
9664
|
+
onMaxDatapointReset: () => D.clearScaleMaxDatapoint(Ve),
|
|
9665
9665
|
onColorChange: He,
|
|
9666
9666
|
isUnavailable: Pt,
|
|
9667
9667
|
datasourceName: wn,
|
|
@@ -9916,7 +9916,7 @@ function Dw({
|
|
|
9916
9916
|
onDatapointChange: A,
|
|
9917
9917
|
onAssetChange: S
|
|
9918
9918
|
}) {
|
|
9919
|
-
const v = o === "DOUBLE" || o === "LONG", [C,
|
|
9919
|
+
const v = o === "DOUBLE" || o === "LONG", [C, D] = b(`${i}`), [w, P] = b(`${r}`), { t: E } = G();
|
|
9920
9920
|
return /* @__PURE__ */ f("div", { className: "datapoints-edit-form", children: [
|
|
9921
9921
|
/* @__PURE__ */ f("div", { className: "datasource-container", children: [
|
|
9922
9922
|
/* @__PURE__ */ f("div", { className: "buttons", children: [
|
|
@@ -9957,7 +9957,7 @@ function Dw({
|
|
|
9957
9957
|
value: C,
|
|
9958
9958
|
onChange: (T) => {
|
|
9959
9959
|
const I = T.target.value;
|
|
9960
|
-
|
|
9960
|
+
D(I), Br(I, E) === "" && p(parseInt(I));
|
|
9961
9961
|
}
|
|
9962
9962
|
}
|
|
9963
9963
|
)
|
|
@@ -9967,12 +9967,12 @@ function Dw({
|
|
|
9967
9967
|
B,
|
|
9968
9968
|
{
|
|
9969
9969
|
label: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.datapoints.factor", children: "Factor" }),
|
|
9970
|
-
error: Br(
|
|
9970
|
+
error: Br(w, E),
|
|
9971
9971
|
children: /* @__PURE__ */ n(
|
|
9972
9972
|
"input",
|
|
9973
9973
|
{
|
|
9974
9974
|
type: "number",
|
|
9975
|
-
value:
|
|
9975
|
+
value: w,
|
|
9976
9976
|
onChange: (T) => {
|
|
9977
9977
|
const I = T.target.value;
|
|
9978
9978
|
P(I), Ew(I, E) === "" && m(parseFloat(I));
|
|
@@ -10024,9 +10024,9 @@ function ww({
|
|
|
10024
10024
|
a.type === "asset" ? [a.asset.urn] : Object.values(y).map((T) => T?.urn).filter(Z)
|
|
10025
10025
|
), v = Cw(e, s), C = (T) => {
|
|
10026
10026
|
u(T), o(!1), c(!0);
|
|
10027
|
-
},
|
|
10027
|
+
}, D = () => {
|
|
10028
10028
|
o(!1);
|
|
10029
|
-
},
|
|
10029
|
+
}, w = (T) => {
|
|
10030
10030
|
const I = a.type === "asset" ? a.asset : d;
|
|
10031
10031
|
if (p != null)
|
|
10032
10032
|
v.updateDatapointDescriptor(
|
|
@@ -10075,7 +10075,7 @@ function ww({
|
|
|
10075
10075
|
onSelectAsset: ({ asset: T }) => C(T)
|
|
10076
10076
|
}
|
|
10077
10077
|
),
|
|
10078
|
-
t.length > 0 && /* @__PURE__ */ n(N, { onClick:
|
|
10078
|
+
t.length > 0 && /* @__PURE__ */ n(N, { onClick: D, children: /* @__PURE__ */ n(h, { i18nKey: "general.page.back", children: "Back" }) })
|
|
10079
10079
|
] });
|
|
10080
10080
|
if (l) {
|
|
10081
10081
|
const T = a.type === "asset" ? a.asset : y[d?.id ?? t.find((I) => I.id === p)?.assetId ?? -1];
|
|
@@ -10087,7 +10087,7 @@ function ww({
|
|
|
10087
10087
|
assetDefinition: a.type === "assetDefinition" ? a.assetDefinition : void 0,
|
|
10088
10088
|
onSelect: (I) => {
|
|
10089
10089
|
if (I.datatype === "datapoint")
|
|
10090
|
-
|
|
10090
|
+
w(I.datapoint);
|
|
10091
10091
|
else
|
|
10092
10092
|
throw new Error("Unexpected datasource type");
|
|
10093
10093
|
},
|
|
@@ -10333,8 +10333,8 @@ function Ow({
|
|
|
10333
10333
|
selectedBit: S,
|
|
10334
10334
|
optionalLabel: v,
|
|
10335
10335
|
trueColor: C = Pe.getDefaultTrueColor(),
|
|
10336
|
-
falseColor:
|
|
10337
|
-
} = d, { t:
|
|
10336
|
+
falseColor: D = Pe.getDefaultFalseColor()
|
|
10337
|
+
} = d, { t: w } = G(), P = (ie) => {
|
|
10338
10338
|
t(s && ie || a && !ie ? -1 : e, ie);
|
|
10339
10339
|
}, E = (ie, X) => {
|
|
10340
10340
|
l(e, ie, X);
|
|
@@ -10348,7 +10348,7 @@ function Ow({
|
|
|
10348
10348
|
c(e);
|
|
10349
10349
|
};
|
|
10350
10350
|
let U;
|
|
10351
|
-
A && (g ? y ? u?.datatype === "datapoint" && u?.datapoint.properties?.dpDescription && (U = We(u.datapoint.properties.dpDescription.toString(),
|
|
10351
|
+
A && (g ? y ? u?.datatype === "datapoint" && u?.datapoint.properties?.dpDescription && (U = We(u.datapoint.properties.dpDescription.toString(), w)) : U = {
|
|
10352
10352
|
id: "dashboard.widgets.io.incorrectDatatype",
|
|
10353
10353
|
defaultValue: "This datatype is not supported"
|
|
10354
10354
|
} : U = {
|
|
@@ -10426,7 +10426,7 @@ function Ow({
|
|
|
10426
10426
|
{
|
|
10427
10427
|
"data-testid": "false-color-picker-wrapper",
|
|
10428
10428
|
style: {
|
|
10429
|
-
backgroundColor:
|
|
10429
|
+
backgroundColor: D,
|
|
10430
10430
|
position: "relative"
|
|
10431
10431
|
},
|
|
10432
10432
|
onClick: () => P(!1),
|
|
@@ -10434,7 +10434,7 @@ function Ow({
|
|
|
10434
10434
|
ms,
|
|
10435
10435
|
{
|
|
10436
10436
|
colors: m,
|
|
10437
|
-
value:
|
|
10437
|
+
value: D,
|
|
10438
10438
|
pickerStyle: {
|
|
10439
10439
|
width: Gu(m.length)
|
|
10440
10440
|
},
|
|
@@ -10533,9 +10533,9 @@ function Gw({
|
|
|
10533
10533
|
...k,
|
|
10534
10534
|
datasource: bs(R)
|
|
10535
10535
|
})), m(-1);
|
|
10536
|
-
}, C = (R) => y({ isHorizontal: R }),
|
|
10536
|
+
}, C = (R) => y({ isHorizontal: R }), D = (R) => {
|
|
10537
10537
|
y({ items: R });
|
|
10538
|
-
},
|
|
10538
|
+
}, w = (R) => {
|
|
10539
10539
|
A(R, (k) => ({
|
|
10540
10540
|
...k,
|
|
10541
10541
|
datasource: null,
|
|
@@ -10576,7 +10576,7 @@ function Gw({
|
|
|
10576
10576
|
}
|
|
10577
10577
|
)
|
|
10578
10578
|
] }),
|
|
10579
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(Ms, { items: o, onOrderChange:
|
|
10579
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(Ms, { items: o, onOrderChange: D, children: /* @__PURE__ */ f("table", { className: "di reactable", children: [
|
|
10580
10580
|
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ f("tr", { children: [
|
|
10581
10581
|
/* @__PURE__ */ n(
|
|
10582
10582
|
"th",
|
|
@@ -10648,7 +10648,7 @@ function Gw({
|
|
|
10648
10648
|
availableDatapoints: d || [],
|
|
10649
10649
|
assetProperties: I,
|
|
10650
10650
|
showSelectionTable: m,
|
|
10651
|
-
resetDatasource:
|
|
10651
|
+
resetDatasource: w,
|
|
10652
10652
|
changeColor: T,
|
|
10653
10653
|
changeSelectedBit: P,
|
|
10654
10654
|
changeOptionalLabel: E
|
|
@@ -10902,7 +10902,7 @@ function Ww(e, { gaugeEnabled: t, gaugeMinDP: s, gaugeMaxDP: a, selectedAssetId:
|
|
|
10902
10902
|
return { gaugeLiveMin: u, gaugeLiveMax: p };
|
|
10903
10903
|
}
|
|
10904
10904
|
function Hw({ context: e, config: { title: t, settings: s } }) {
|
|
10905
|
-
const a = rn(), { selectedAssetId: i, datasource: r, timestampEnabled: o, unit: l, gaugeEnabled: c } = s, d = an(e, i), { datapoints: u } = Ht(d?.urn), p = Xi(r, u), m = c && p && (Ot(p) || Vn(p)), { gaugeLiveMin: g, gaugeLiveMax: y } = Ww(e, s, u, a), A = Cc(p, d, a), { className: S, style: v } = zw(s, p, A), { value: C, timestamp:
|
|
10905
|
+
const a = rn(), { selectedAssetId: i, datasource: r, timestampEnabled: o, unit: l, gaugeEnabled: c } = s, d = an(e, i), { datapoints: u } = Ht(d?.urn), p = Xi(r, u), m = c && p && (Ot(p) || Vn(p)), { gaugeLiveMin: g, gaugeLiveMax: y } = Ww(e, s, u, a), A = Cc(p, d, a), { className: S, style: v } = zw(s, p, A), { value: C, timestamp: D } = Fm(A), w = gt(), P = mt(), E = Mw(p, s, C, D, w, P);
|
|
10906
10906
|
return /* @__PURE__ */ f("div", { className: `dash-box ${S}`, style: v, children: [
|
|
10907
10907
|
/* @__PURE__ */ n(St, { absolute: !0, linkToAsset: e.type === "assetGroup" ? d : null, title: t }),
|
|
10908
10908
|
/* @__PURE__ */ n("div", { className: "dash-box-cont", children: m ? /* @__PURE__ */ f(L, { children: [
|
|
@@ -10925,7 +10925,7 @@ function Hw({ context: e, config: { title: t, settings: s } }) {
|
|
|
10925
10925
|
"div",
|
|
10926
10926
|
{
|
|
10927
10927
|
className: "pair",
|
|
10928
|
-
title: o &&
|
|
10928
|
+
title: o && D ? xe(D, { timezone: P }) : "",
|
|
10929
10929
|
children: [
|
|
10930
10930
|
/* @__PURE__ */ n("div", { "data-testid": "datapoint-value", className: "val", children: E }),
|
|
10931
10931
|
/* @__PURE__ */ n("div", { className: "sep" }),
|
|
@@ -11164,8 +11164,8 @@ function tN({ context: e, onChangeConfig: t, config: s }) {
|
|
|
11164
11164
|
factor: S,
|
|
11165
11165
|
unit: v,
|
|
11166
11166
|
timestampEnabled: C,
|
|
11167
|
-
gaugeEnabled:
|
|
11168
|
-
gaugeMin:
|
|
11167
|
+
gaugeEnabled: D,
|
|
11168
|
+
gaugeMin: w,
|
|
11169
11169
|
gaugeMinDP: P,
|
|
11170
11170
|
gaugeMax: E,
|
|
11171
11171
|
gaugeMaxDP: T,
|
|
@@ -11324,17 +11324,17 @@ function tN({ context: e, onChangeConfig: t, config: s }) {
|
|
|
11324
11324
|
/* @__PURE__ */ n(
|
|
11325
11325
|
Xw,
|
|
11326
11326
|
{
|
|
11327
|
-
gaugeEnabled:
|
|
11327
|
+
gaugeEnabled: D,
|
|
11328
11328
|
onChange: (X) => ie({ gaugeEnabled: X })
|
|
11329
11329
|
}
|
|
11330
11330
|
),
|
|
11331
|
-
|
|
11331
|
+
D && /* @__PURE__ */ f("div", { "data-testid": "gauge-configuration", children: [
|
|
11332
11332
|
/* @__PURE__ */ n("span", { "data-testid": "gauge-min-value-config-wrapper", children: /* @__PURE__ */ n(
|
|
11333
11333
|
yi,
|
|
11334
11334
|
{
|
|
11335
11335
|
"data-testid-prefix": "min",
|
|
11336
11336
|
label: "Min",
|
|
11337
|
-
value:
|
|
11337
|
+
value: w,
|
|
11338
11338
|
allowDatapoint: !!re,
|
|
11339
11339
|
sourceDatapoint: P ? P.name : null,
|
|
11340
11340
|
onValueChanged: (X) => ie({ gaugeMin: X || 0 }),
|
|
@@ -11771,13 +11771,13 @@ function mN({ context: e, config: t, onChangeConfig: s, setApplyButtonDisabled:
|
|
|
11771
11771
|
}
|
|
11772
11772
|
});
|
|
11773
11773
|
}
|
|
11774
|
-
const { loading: C, blobUrl:
|
|
11774
|
+
const { loading: C, blobUrl: D } = fN(c, e, d?.origin);
|
|
11775
11775
|
_(() => {
|
|
11776
|
-
|
|
11777
|
-
}, [
|
|
11776
|
+
D && A(D);
|
|
11777
|
+
}, [D]), _(() => {
|
|
11778
11778
|
a(u && (!r || !r.sourceId || !r.target));
|
|
11779
11779
|
}, [u, r, a]);
|
|
11780
|
-
function
|
|
11780
|
+
function w(T) {
|
|
11781
11781
|
g(T), T || v({ imageBackgroundColor: Qa });
|
|
11782
11782
|
}
|
|
11783
11783
|
function P({ preview: T, name: I, type: R }) {
|
|
@@ -11830,7 +11830,7 @@ function mN({ context: e, config: t, onChangeConfig: s, setApplyButtonDisabled:
|
|
|
11830
11830
|
/* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ f("div", { className: "standard wide field", children: [
|
|
11831
11831
|
/* @__PURE__ */ n("label", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.image.backgroundColor", children: "Color:" }) }),
|
|
11832
11832
|
/* @__PURE__ */ f("div", { children: [
|
|
11833
|
-
/* @__PURE__ */ n(be, { value: m, onChange:
|
|
11833
|
+
/* @__PURE__ */ n(be, { value: m, onChange: w }),
|
|
11834
11834
|
/* @__PURE__ */ n("label", { className: "field", children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.image.backgroundColor", children: "background color" }) })
|
|
11835
11835
|
] }),
|
|
11836
11836
|
/* @__PURE__ */ n("div", { style: { marginTop: 20, marginLeft: 10 }, children: m && /* @__PURE__ */ n(
|
|
@@ -12337,8 +12337,8 @@ const Bo = (e) => !!e && /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z
|
|
|
12337
12337
|
function LN({ item: e, itemIndex: t, onItemChange: s, onRemoveItem: a, assetFiles: i }) {
|
|
12338
12338
|
const { attributes: r, listeners: o, setNodeRef: l, setActivatorNodeRef: c, transform: d, transition: u, isOver: p } = Ps({
|
|
12339
12339
|
id: e.id
|
|
12340
|
-
}), { t: m } = G(), g = (
|
|
12341
|
-
const
|
|
12340
|
+
}), { t: m } = G(), g = (D) => {
|
|
12341
|
+
const w = D.target.value;
|
|
12342
12342
|
if (e.type === "url") {
|
|
12343
12343
|
const { id: P, type: E, valid: T, url: I } = e;
|
|
12344
12344
|
s(t, {
|
|
@@ -12346,7 +12346,7 @@ function LN({ item: e, itemIndex: t, onItemChange: s, onRemoveItem: a, assetFile
|
|
|
12346
12346
|
type: E,
|
|
12347
12347
|
url: I,
|
|
12348
12348
|
valid: T,
|
|
12349
|
-
label:
|
|
12349
|
+
label: w
|
|
12350
12350
|
});
|
|
12351
12351
|
} else if (e.type === "file") {
|
|
12352
12352
|
const { id: P, type: E, valid: T, file: I } = e;
|
|
@@ -12355,14 +12355,14 @@ function LN({ item: e, itemIndex: t, onItemChange: s, onRemoveItem: a, assetFile
|
|
|
12355
12355
|
type: E,
|
|
12356
12356
|
valid: T,
|
|
12357
12357
|
file: I,
|
|
12358
|
-
label:
|
|
12358
|
+
label: w
|
|
12359
12359
|
});
|
|
12360
12360
|
}
|
|
12361
|
-
}, y = (
|
|
12362
|
-
const
|
|
12363
|
-
e.type === "url" && s(t, kN({ ...e, url:
|
|
12364
|
-
}, A = (
|
|
12365
|
-
const
|
|
12361
|
+
}, y = (D) => {
|
|
12362
|
+
const w = D.target.value;
|
|
12363
|
+
e.type === "url" && s(t, kN({ ...e, url: w }));
|
|
12364
|
+
}, A = (D) => {
|
|
12365
|
+
const w = D.target.value, P = i.find((E) => E.key === w);
|
|
12366
12366
|
P && e.type === "file" && s(t, GN({ ...e, file: P }));
|
|
12367
12367
|
}, S = () => {
|
|
12368
12368
|
a(t);
|
|
@@ -12391,7 +12391,7 @@ function LN({ item: e, itemIndex: t, onItemChange: s, onRemoveItem: a, assetFile
|
|
|
12391
12391
|
"data-testid": "file-select",
|
|
12392
12392
|
children: [
|
|
12393
12393
|
/* @__PURE__ */ n("option", { value: "0", children: m("dashboard.widget.link.selectfile", { defaultValue: "Please Select File..." }) }),
|
|
12394
|
-
i.map((
|
|
12394
|
+
i.map((D) => /* @__PURE__ */ n("option", { value: D.key, children: D.filename }, D.key))
|
|
12395
12395
|
]
|
|
12396
12396
|
}
|
|
12397
12397
|
) }) }),
|
|
@@ -12458,12 +12458,12 @@ function VN({
|
|
|
12458
12458
|
y({
|
|
12459
12459
|
items: [...i, T]
|
|
12460
12460
|
});
|
|
12461
|
-
},
|
|
12461
|
+
}, D = (T) => {
|
|
12462
12462
|
const I = [...i];
|
|
12463
12463
|
I.splice(T, 1), y({
|
|
12464
12464
|
items: I
|
|
12465
12465
|
});
|
|
12466
|
-
},
|
|
12466
|
+
}, w = (T, I) => {
|
|
12467
12467
|
const R = [...i];
|
|
12468
12468
|
R[T] = I, y({
|
|
12469
12469
|
items: R
|
|
@@ -12575,8 +12575,8 @@ function VN({
|
|
|
12575
12575
|
{
|
|
12576
12576
|
item: T,
|
|
12577
12577
|
itemIndex: I,
|
|
12578
|
-
onItemChange:
|
|
12579
|
-
onRemoveItem:
|
|
12578
|
+
onItemChange: w,
|
|
12579
|
+
onRemoveItem: D,
|
|
12580
12580
|
assetFiles: u
|
|
12581
12581
|
},
|
|
12582
12582
|
`item-${I}`
|
|
@@ -13057,9 +13057,9 @@ function pg(e, t, s) {
|
|
|
13057
13057
|
topLeft: S,
|
|
13058
13058
|
bottomRight: v
|
|
13059
13059
|
})
|
|
13060
|
-
]).then(([C,
|
|
13061
|
-
const
|
|
13062
|
-
return C.status === "fulfilled" &&
|
|
13060
|
+
]).then(([C, D]) => {
|
|
13061
|
+
const w = [];
|
|
13062
|
+
return C.status === "fulfilled" && w.push(C.value), D.status === "fulfilled" && w.push(D.value), YN(...w);
|
|
13063
13063
|
})
|
|
13064
13064
|
);
|
|
13065
13065
|
},
|
|
@@ -13410,7 +13410,7 @@ function mg({
|
|
|
13410
13410
|
a,
|
|
13411
13411
|
i,
|
|
13412
13412
|
u
|
|
13413
|
-
), [v, C] = b(!1), [
|
|
13413
|
+
), [v, C] = b(!1), [D, w] = b(!1);
|
|
13414
13414
|
return _(() => {
|
|
13415
13415
|
y && e && v && e(y);
|
|
13416
13416
|
}, [y, e, v]), _(() => {
|
|
@@ -13431,9 +13431,9 @@ function mg({
|
|
|
13431
13431
|
}, [y]), _(() => {
|
|
13432
13432
|
if (y && p) {
|
|
13433
13433
|
const E = A.map((I) => I.getPosition()).filter(Z), T = new google.maps.LatLngBounds();
|
|
13434
|
-
E.length && (
|
|
13434
|
+
E.length && (w(!0), E.forEach((I) => T.extend(I)), y.getBounds()?.contains(T.getCenter()) || y.setCenter(T.getCenter())), !D && t && !t().zoom && (E.length > 1 ? y.fitBounds(T.toJSON(), { left: 10, top: 50, right: 10, bottom: 10 }) : E.length == 1 && y.setCenter(T.getCenter()));
|
|
13435
13435
|
}
|
|
13436
|
-
}, [y, A,
|
|
13436
|
+
}, [y, A, D, t, p]), _(() => {
|
|
13437
13437
|
y && r && WN(y, () => {
|
|
13438
13438
|
r(), S();
|
|
13439
13439
|
});
|
|
@@ -13625,7 +13625,7 @@ function TI({
|
|
|
13625
13625
|
});
|
|
13626
13626
|
},
|
|
13627
13627
|
[u, l, S]
|
|
13628
|
-
), C = AI(u.length > Wr ? [] : u.map(({ urn: E }) => E)),
|
|
13628
|
+
), C = AI(u.length > Wr ? [] : u.map(({ urn: E }) => E)), D = u.map((E) => bg(E, y, t, C[E.urn])).filter(Z), w = z(
|
|
13629
13629
|
(E, T) => {
|
|
13630
13630
|
d(r ? { topLeft: E, bottomRight: T } : { topLeft: "90.0,-180.0", bottomRight: "-90.0,180.0" });
|
|
13631
13631
|
},
|
|
@@ -13637,12 +13637,12 @@ function TI({
|
|
|
13637
13637
|
/* @__PURE__ */ n(
|
|
13638
13638
|
gg,
|
|
13639
13639
|
{
|
|
13640
|
-
markers:
|
|
13640
|
+
markers: D,
|
|
13641
13641
|
onMarkerClick: A,
|
|
13642
13642
|
onClusterClick: v,
|
|
13643
13643
|
autoscaleMarkers: !i,
|
|
13644
13644
|
clustererConfiguration: vI(i),
|
|
13645
|
-
onMapInitialized:
|
|
13645
|
+
onMapInitialized: w,
|
|
13646
13646
|
onMapIdle: P,
|
|
13647
13647
|
remountDependencies: [i],
|
|
13648
13648
|
loading: p,
|
|
@@ -13958,9 +13958,9 @@ function kI({ config: e, onChangeConfig: t, context: s }) {
|
|
|
13958
13958
|
subscribePositionChanges: !o
|
|
13959
13959
|
});
|
|
13960
13960
|
}, y = (C) => {
|
|
13961
|
-
const
|
|
13961
|
+
const D = NI(C);
|
|
13962
13962
|
d({
|
|
13963
|
-
historicalGeofixesPeriod:
|
|
13963
|
+
historicalGeofixesPeriod: D || C
|
|
13964
13964
|
});
|
|
13965
13965
|
}, A = (C) => {
|
|
13966
13966
|
d({
|
|
@@ -14164,16 +14164,16 @@ function Hr({ context: e, orientation: t, properties: s, withHeader: a }) {
|
|
|
14164
14164
|
if (C.type === "assetGroup" && v === "name")
|
|
14165
14165
|
return (C.assetGroup?.displayName || "-").trim();
|
|
14166
14166
|
if (C.type === "asset" || C.type === "assetGroup") {
|
|
14167
|
-
const
|
|
14168
|
-
let
|
|
14169
|
-
if ((
|
|
14167
|
+
const D = C.type === "asset" ? C.asset : C.assetGroup;
|
|
14168
|
+
let w = rr(v, D, c, r, o, i);
|
|
14169
|
+
if ((w == null || w === "") && C.type === "asset" && u) {
|
|
14170
14170
|
const E = u.find((T) => T.id === C.asset.assetDefinitionId)?.staticProperties?.find((T) => T.key === v);
|
|
14171
|
-
E?.value !== null && E?.value !== void 0 && (
|
|
14171
|
+
E?.value !== null && E?.value !== void 0 && (w = String(E.value));
|
|
14172
14172
|
}
|
|
14173
|
-
return
|
|
14173
|
+
return w;
|
|
14174
14174
|
}
|
|
14175
14175
|
if (C.type === "assetDefinition")
|
|
14176
|
-
return C.assetDefinition.staticProperties?.find(({ key:
|
|
14176
|
+
return C.assetDefinition.staticProperties?.find(({ key: D }) => D === v)?.value;
|
|
14177
14177
|
}
|
|
14178
14178
|
return s.length === 0 ? null : /* @__PURE__ */ f(ne, { show: p, className: "masterdata-fields-wrapper", children: [
|
|
14179
14179
|
p && /* @__PURE__ */ n("span", { "data-testid": "loading" }),
|
|
@@ -14414,10 +14414,10 @@ function KI({ assetGroup: e, config: t, onChangeConfig: s }) {
|
|
|
14414
14414
|
function C(T) {
|
|
14415
14415
|
A({ masterdataProperties: [...E, T] });
|
|
14416
14416
|
}
|
|
14417
|
-
function
|
|
14417
|
+
function D(T) {
|
|
14418
14418
|
A({ masterdataProperties: E.filter((I) => I !== T) });
|
|
14419
14419
|
}
|
|
14420
|
-
function
|
|
14420
|
+
function w(T) {
|
|
14421
14421
|
A({ masterdataProperties: T });
|
|
14422
14422
|
}
|
|
14423
14423
|
const {
|
|
@@ -14434,8 +14434,8 @@ function KI({ assetGroup: e, config: t, onChangeConfig: s }) {
|
|
|
14434
14434
|
getI18nKey: Cg,
|
|
14435
14435
|
getValue: v,
|
|
14436
14436
|
onAddProperty: C,
|
|
14437
|
-
onRemoveProperty:
|
|
14438
|
-
onChangeOrder:
|
|
14437
|
+
onRemoveProperty: D,
|
|
14438
|
+
onChangeOrder: w
|
|
14439
14439
|
}
|
|
14440
14440
|
) }),
|
|
14441
14441
|
/* @__PURE__ */ n("div", { className: "panel", children: /* @__PURE__ */ n(
|
|
@@ -14473,13 +14473,13 @@ function BI({
|
|
|
14473
14473
|
}
|
|
14474
14474
|
function g(C) {
|
|
14475
14475
|
u({
|
|
14476
|
-
masterdataProperties: a.filter((
|
|
14476
|
+
masterdataProperties: a.filter((D) => D !== C)
|
|
14477
14477
|
});
|
|
14478
14478
|
}
|
|
14479
14479
|
function y(C) {
|
|
14480
14480
|
u({ masterdataProperties: C });
|
|
14481
14481
|
}
|
|
14482
|
-
const S = ["name", "urn", ...l.filter(({ key: C, deletable:
|
|
14482
|
+
const S = ["name", "urn", ...l.filter(({ key: C, deletable: D }) => !C.startsWith("_") && D).map(({ key: C }) => C)], v = l.filter(({ key: C, deletable: D }) => !C.startsWith("_") && D).reduce((C, { key: D, type: w }) => ({ ...C, [D]: w }), {});
|
|
14483
14483
|
return /* @__PURE__ */ f("div", { className: "di form propertieswidgetconfig", children: [
|
|
14484
14484
|
r && /* @__PURE__ */ n(qn, { asset: e, onClick: () => u({ selectedAssetId: null }) }),
|
|
14485
14485
|
/* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
|
|
@@ -15787,56 +15787,56 @@ function BP({ context: e, settings: t, onChange: s }) {
|
|
|
15787
15787
|
const { assetProperties: a } = Ne(), i = e.type === "asset" ? e.asset.id : t.assetId, r = an(e, i), { datapoints: o, fetching: l } = Ht(r?.urn), d = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? o, { selectDatasourceOfAsset: u, selectDatasourceOfAssetDefinition: p } = O(Ng), { selectAsset: m } = O(wg);
|
|
15788
15788
|
if (e.type === "global")
|
|
15789
15789
|
return null;
|
|
15790
|
-
function g(
|
|
15791
|
-
s({ ...t, conditions:
|
|
15790
|
+
function g(w) {
|
|
15791
|
+
s({ ...t, conditions: w });
|
|
15792
15792
|
}
|
|
15793
|
-
function y(
|
|
15794
|
-
s({ ...t, effect:
|
|
15793
|
+
function y(w) {
|
|
15794
|
+
s({ ...t, effect: w });
|
|
15795
15795
|
}
|
|
15796
|
-
function A(
|
|
15797
|
-
s({ ...t, options:
|
|
15796
|
+
function A(w) {
|
|
15797
|
+
s({ ...t, options: w });
|
|
15798
15798
|
}
|
|
15799
|
-
function S(
|
|
15800
|
-
s({ ...t, bit:
|
|
15799
|
+
function S(w) {
|
|
15800
|
+
s({ ...t, bit: w });
|
|
15801
15801
|
}
|
|
15802
15802
|
async function v() {
|
|
15803
15803
|
if (e.type !== "assetDefinition" && !r) return;
|
|
15804
|
-
const
|
|
15805
|
-
if (!
|
|
15804
|
+
const w = e.type === "assetDefinition" ? await p(e.assetDefinition) : await u(r);
|
|
15805
|
+
if (!w) return;
|
|
15806
15806
|
let P = t.options;
|
|
15807
|
-
t.effect === "color" && (P = { ...P, fromDatasource: oa(
|
|
15807
|
+
t.effect === "color" && (P = { ...P, fromDatasource: oa(w) }), s({ ...t, datasource: bs(w), bit: null, options: P });
|
|
15808
15808
|
}
|
|
15809
15809
|
async function C() {
|
|
15810
|
-
const
|
|
15811
|
-
if (!
|
|
15812
|
-
const P = await u(
|
|
15810
|
+
const w = await m(KP(e));
|
|
15811
|
+
if (!w) return;
|
|
15812
|
+
const P = await u(w.asset);
|
|
15813
15813
|
if (!P) return;
|
|
15814
15814
|
let E = t.options;
|
|
15815
15815
|
t.effect === "color" && (E = { ...E, fromDatasource: oa(P) }), s({
|
|
15816
15816
|
...t,
|
|
15817
|
-
assetId:
|
|
15817
|
+
assetId: w.id,
|
|
15818
15818
|
datasource: bs(P),
|
|
15819
15819
|
bit: null,
|
|
15820
15820
|
options: E
|
|
15821
15821
|
});
|
|
15822
15822
|
}
|
|
15823
|
-
const
|
|
15823
|
+
const D = t.datasource && !l ? Ga(t.datasource, d || [], a) : null;
|
|
15824
15824
|
return /* @__PURE__ */ f("div", { className: "di form svg-widget-settings-form", children: [
|
|
15825
15825
|
/* @__PURE__ */ n("div", { className: "di svg-widget-settings-datapoint", children: /* @__PURE__ */ n(
|
|
15826
15826
|
RP,
|
|
15827
15827
|
{
|
|
15828
15828
|
context: e,
|
|
15829
15829
|
asset: r,
|
|
15830
|
-
datasource:
|
|
15830
|
+
datasource: D,
|
|
15831
15831
|
onDatasourceChange: v,
|
|
15832
15832
|
onAssetChange: C
|
|
15833
15833
|
}
|
|
15834
15834
|
) }),
|
|
15835
|
-
|
|
15835
|
+
D && Ot(D) && /* @__PURE__ */ n(wP, { selectedBit: t.bit, onChange: S }),
|
|
15836
15836
|
/* @__PURE__ */ n(
|
|
15837
15837
|
_P,
|
|
15838
15838
|
{
|
|
15839
|
-
datasource:
|
|
15839
|
+
datasource: D,
|
|
15840
15840
|
conditions: t.conditions,
|
|
15841
15841
|
bit: t.bit,
|
|
15842
15842
|
onChange: g
|
|
@@ -15846,7 +15846,7 @@ function BP({ context: e, settings: t, onChange: s }) {
|
|
|
15846
15846
|
MP,
|
|
15847
15847
|
{
|
|
15848
15848
|
effect: t.effect,
|
|
15849
|
-
datasource:
|
|
15849
|
+
datasource: D,
|
|
15850
15850
|
asset: r,
|
|
15851
15851
|
options: t.options,
|
|
15852
15852
|
onEffectChange: y,
|
|
@@ -16144,7 +16144,7 @@ function QP({
|
|
|
16144
16144
|
missingViewbox: !k?.viewBox?.baseVal?.width || !k?.viewBox?.baseVal?.height
|
|
16145
16145
|
}), u(!1), m(!R);
|
|
16146
16146
|
}
|
|
16147
|
-
function
|
|
16147
|
+
function D() {
|
|
16148
16148
|
S({
|
|
16149
16149
|
imagePath: "",
|
|
16150
16150
|
imageMetaData: null,
|
|
@@ -16152,7 +16152,7 @@ function QP({
|
|
|
16152
16152
|
fieldSettings: r
|
|
16153
16153
|
}), u(!0), m(!1);
|
|
16154
16154
|
}
|
|
16155
|
-
function
|
|
16155
|
+
function w(E) {
|
|
16156
16156
|
l({ ...o, title: E });
|
|
16157
16157
|
}
|
|
16158
16158
|
function P(E) {
|
|
@@ -16165,7 +16165,7 @@ function QP({
|
|
|
16165
16165
|
imagePath: A || "",
|
|
16166
16166
|
onDownloadImage: v,
|
|
16167
16167
|
onSelectImage: C,
|
|
16168
|
-
onClearImage:
|
|
16168
|
+
onClearImage: D,
|
|
16169
16169
|
origin: e.type
|
|
16170
16170
|
}
|
|
16171
16171
|
) }),
|
|
@@ -16175,9 +16175,9 @@ function QP({
|
|
|
16175
16175
|
ZP,
|
|
16176
16176
|
{
|
|
16177
16177
|
title: o.title,
|
|
16178
|
-
onTitleChange:
|
|
16178
|
+
onTitleChange: w,
|
|
16179
16179
|
onDownloadImage: v,
|
|
16180
|
-
onDeleteImage:
|
|
16180
|
+
onDeleteImage: D,
|
|
16181
16181
|
onUpdateImage: () => u(!0),
|
|
16182
16182
|
invalidSvg: p,
|
|
16183
16183
|
imageContent: A
|
|
@@ -17916,7 +17916,7 @@ function es(e, t, s, a, i, r, o, l) {
|
|
|
17916
17916
|
zooming: { type: "x" },
|
|
17917
17917
|
events: {
|
|
17918
17918
|
selection: function(m) {
|
|
17919
|
-
m.originalEvent.preventDefault(), s.current({ tsStart: m.xAxis[0].min, tsEnd: m.xAxis[0].max });
|
|
17919
|
+
return m.originalEvent.preventDefault(), s.current({ tsStart: m.xAxis[0].min, tsEnd: m.xAxis[0].max }), !1;
|
|
17920
17920
|
}
|
|
17921
17921
|
}
|
|
17922
17922
|
},
|
|
@@ -18320,19 +18320,19 @@ function jr(e, t, s, a, i, r, o, l, c, d, u, p) {
|
|
|
18320
18320
|
i
|
|
18321
18321
|
), y = x2(p, F.getTrendMaxSlices()), A = c_(
|
|
18322
18322
|
r,
|
|
18323
|
-
g.map((
|
|
18323
|
+
g.map((D) => D.key),
|
|
18324
18324
|
y
|
|
18325
18325
|
), S = ei.get(A);
|
|
18326
18326
|
if (S)
|
|
18327
|
-
return S.promise.then((
|
|
18327
|
+
return S.promise.then((D) => {
|
|
18328
18328
|
d({
|
|
18329
18329
|
type: "fetchComplete",
|
|
18330
18330
|
updatePeriodRef: l,
|
|
18331
|
-
valuesByTrendDatapointKey:
|
|
18331
|
+
valuesByTrendDatapointKey: D,
|
|
18332
18332
|
dashboardTime: o
|
|
18333
18333
|
});
|
|
18334
|
-
}).catch((
|
|
18335
|
-
|
|
18334
|
+
}).catch((D) => {
|
|
18335
|
+
D.isCanceled || d({ type: "fetchFailed" });
|
|
18336
18336
|
}), S.cancel;
|
|
18337
18337
|
const { promise: v, cancel: C } = K2(
|
|
18338
18338
|
y,
|
|
@@ -18343,15 +18343,15 @@ function jr(e, t, s, a, i, r, o, l, c, d, u, p) {
|
|
|
18343
18343
|
g,
|
|
18344
18344
|
c
|
|
18345
18345
|
);
|
|
18346
|
-
return ei.set(A, { promise: v, cancel: C }), v.then((
|
|
18346
|
+
return ei.set(A, { promise: v, cancel: C }), v.then((D) => {
|
|
18347
18347
|
ei.delete(A), d({
|
|
18348
18348
|
type: "fetchComplete",
|
|
18349
18349
|
updatePeriodRef: l,
|
|
18350
|
-
valuesByTrendDatapointKey:
|
|
18350
|
+
valuesByTrendDatapointKey: D,
|
|
18351
18351
|
dashboardTime: o
|
|
18352
18352
|
});
|
|
18353
|
-
}).catch((
|
|
18354
|
-
ei.delete(A),
|
|
18353
|
+
}).catch((D) => {
|
|
18354
|
+
ei.delete(A), D.isCanceled || d({ type: "fetchFailed" });
|
|
18355
18355
|
}), C;
|
|
18356
18356
|
}
|
|
18357
18357
|
const u_ = ({ children: e, dashboardTime: t }) => {
|
|
@@ -18459,12 +18459,12 @@ const u_ = ({ children: e, dashboardTime: t }) => {
|
|
|
18459
18459
|
});
|
|
18460
18460
|
},
|
|
18461
18461
|
[a]
|
|
18462
|
-
),
|
|
18462
|
+
), D = z(() => {
|
|
18463
18463
|
l({
|
|
18464
18464
|
type: "toggleCombineYAxes",
|
|
18465
18465
|
updatePeriodRef: c
|
|
18466
18466
|
});
|
|
18467
|
-
}, []),
|
|
18467
|
+
}, []), w = z((P, E) => {
|
|
18468
18468
|
l({
|
|
18469
18469
|
type: "toggleTrendDatapoint",
|
|
18470
18470
|
updatePeriodRef: c,
|
|
@@ -18499,8 +18499,8 @@ const u_ = ({ children: e, dashboardTime: t }) => {
|
|
|
18499
18499
|
reloadData: v,
|
|
18500
18500
|
refreshChart: C,
|
|
18501
18501
|
updatePeriod: c.current,
|
|
18502
|
-
toggleTrendDatapoint:
|
|
18503
|
-
toggleCombineYAxes:
|
|
18502
|
+
toggleTrendDatapoint: w,
|
|
18503
|
+
toggleCombineYAxes: D,
|
|
18504
18504
|
liveModeEnabled: o.liveModeEnabled,
|
|
18505
18505
|
globalConfig: o.trendChartGlobalConfig,
|
|
18506
18506
|
openInTrendApp: S
|
|
@@ -18827,11 +18827,11 @@ function w_({
|
|
|
18827
18827
|
openInTrendApp: A,
|
|
18828
18828
|
toggleCombineYAxes: S,
|
|
18829
18829
|
chartContainerRef: v
|
|
18830
|
-
} = O(or), { t: C } = G(),
|
|
18830
|
+
} = O(or), { t: C } = G(), D = pe(null), w = mt(), P = $(
|
|
18831
18831
|
() => Qt((k) => {
|
|
18832
|
-
if (
|
|
18832
|
+
if (D.current && k[0]) {
|
|
18833
18833
|
const { width: U, height: M } = k[0].contentRect;
|
|
18834
|
-
|
|
18834
|
+
D.current.setSize(U, M, !1);
|
|
18835
18835
|
}
|
|
18836
18836
|
}, 100),
|
|
18837
18837
|
[]
|
|
@@ -18845,9 +18845,17 @@ function w_({
|
|
|
18845
18845
|
const U = k;
|
|
18846
18846
|
return (U.type === "area" || U.type === "line") && Array.isArray(U.data);
|
|
18847
18847
|
})) {
|
|
18848
|
-
|
|
18848
|
+
if (D.current)
|
|
18849
|
+
if (!t && D.current.series.length === p.series.length) {
|
|
18850
|
+
const M = D.current.xAxis[0];
|
|
18851
|
+
M && (M.userMin = void 0, M.userMax = void 0), D.current.update(p, !0, !0);
|
|
18852
|
+
} else
|
|
18853
|
+
D.current.destroy(), D.current = Gn.chart(E.current, p);
|
|
18854
|
+
else
|
|
18855
|
+
D.current = Gn.chart(E.current, p);
|
|
18856
|
+
X2(D.current, m);
|
|
18849
18857
|
const { width: k, height: U } = E.current.getBoundingClientRect();
|
|
18850
|
-
k > 0 && U > 0 &&
|
|
18858
|
+
k > 0 && U > 0 && D.current.setSize(k, U, !1);
|
|
18851
18859
|
}
|
|
18852
18860
|
}, [p, m, t, E]);
|
|
18853
18861
|
const T = e.type === "assetGroup", I = DI(a, s, C) || "";
|
|
@@ -18886,7 +18894,7 @@ function w_({
|
|
|
18886
18894
|
period: u,
|
|
18887
18895
|
onChange: r,
|
|
18888
18896
|
inputsHiddenByDefault: !0,
|
|
18889
|
-
timezone:
|
|
18897
|
+
timezone: w,
|
|
18890
18898
|
defaultPeriodName: I
|
|
18891
18899
|
}
|
|
18892
18900
|
),
|
|
@@ -18993,7 +19001,7 @@ function __({
|
|
|
18993
19001
|
},
|
|
18994
19002
|
dashboardTime: p
|
|
18995
19003
|
}) {
|
|
18996
|
-
const { fetchingData: m, fetchData: g, reloadData: y, updatePeriod: A, refreshChart: S, liveModeEnabled: v } = O(or), { period: C } = O(Bs),
|
|
19004
|
+
const { fetchingData: m, fetchData: g, reloadData: y, updatePeriod: A, refreshChart: S, liveModeEnabled: v } = O(or), { period: C } = O(Bs), D = F.getTrendShowLiveModeIndicator(), w = Vi(s), P = $(() => I_(e, s), [e, s]), E = zn(P), { datapointsByUrns: T, fetching: I } = Ra(
|
|
18997
19005
|
e.type === "asset" ? [e.asset.urn] : P
|
|
18998
19006
|
), R = P.length === Object.keys(E).length && !I;
|
|
18999
19007
|
_(() => {
|
|
@@ -19012,7 +19020,7 @@ function __({
|
|
|
19012
19020
|
ti(r, i, p)
|
|
19013
19021
|
);
|
|
19014
19022
|
}, [R]), _(() => {
|
|
19015
|
-
m || (
|
|
19023
|
+
m || (w && (w.settings.periodCount !== r || w.settings.periodType !== i || w.settings.multipleYAxes !== o || w.settings.combineYAxes !== l || w.settings.scaleCombinedAxis !== c || P_(w.settings.datapoints, u)) ? g(
|
|
19016
19024
|
e.type === "asset" ? e.asset.urn : void 0,
|
|
19017
19025
|
{
|
|
19018
19026
|
multipleYAxes: o,
|
|
@@ -19050,7 +19058,7 @@ function __({
|
|
|
19050
19058
|
[A, r, i, p]
|
|
19051
19059
|
);
|
|
19052
19060
|
return /* @__PURE__ */ f("div", { className: `dash-box trendchart ${a === "" ? "without-title" : ""}`, children: [
|
|
19053
|
-
/* @__PURE__ */ n(St, { absolute: !0, linksToAssets: P.map((M) => E[M]).filter(Z), title: a, children:
|
|
19061
|
+
/* @__PURE__ */ n(St, { absolute: !0, linksToAssets: P.map((M) => E[M]).filter(Z), title: a, children: D && /* @__PURE__ */ n(h_, { online: v }) }),
|
|
19054
19062
|
/* @__PURE__ */ n("div", { className: "dash-box-cont", children: /* @__PURE__ */ n(
|
|
19055
19063
|
w_,
|
|
19056
19064
|
{
|
|
@@ -20010,14 +20018,14 @@ const Me = () => {
|
|
|
20010
20018
|
)
|
|
20011
20019
|
);
|
|
20012
20020
|
}
|
|
20013
|
-
function
|
|
20021
|
+
function D(q, ee, se = !1) {
|
|
20014
20022
|
const he = (ee ? g : a).find((Ce) => Ce.key === q.key);
|
|
20015
20023
|
if (se || !he || !he.layout) {
|
|
20016
20024
|
const [Ce, He, qe] = sy(q);
|
|
20017
20025
|
C(He, q.key, ee, Ce, !1, qe);
|
|
20018
20026
|
}
|
|
20019
20027
|
}
|
|
20020
|
-
function
|
|
20028
|
+
function w(q, ee, se, he) {
|
|
20021
20029
|
const Ce = g.find((Ve) => Ve.key === q) || Zo("", S), He = Ce.widgets;
|
|
20022
20030
|
let qe = Ce.layout;
|
|
20023
20031
|
const rt = {
|
|
@@ -20166,10 +20174,10 @@ const Me = () => {
|
|
|
20166
20174
|
handleLayoutChange: C,
|
|
20167
20175
|
setDashboards: i,
|
|
20168
20176
|
setLoading: o,
|
|
20169
|
-
mapWidgetsFromConfig:
|
|
20177
|
+
mapWidgetsFromConfig: D,
|
|
20170
20178
|
refreshTrigger: l,
|
|
20171
20179
|
setEditableDashboards: v,
|
|
20172
|
-
addWidget:
|
|
20180
|
+
addWidget: w,
|
|
20173
20181
|
deleteWidget: P,
|
|
20174
20182
|
changeWidgetConfig: E,
|
|
20175
20183
|
createNewDashboard: T,
|
|
@@ -20291,25 +20299,25 @@ const iy = ({ children: e }) => {
|
|
|
20291
20299
|
function _R(e) {
|
|
20292
20300
|
const t = parseInt(e.params.assetGroupId, 10), { setContextInfo: s } = O($t), { assetGroupDefinitions: a } = O(Ee), { assetGroupProperties: i } = Ne(), { pathname: r } = nt(), [o, l] = b(!1), [c, d] = b(!1), [u, p] = b(null), [m, g] = b(null), [y, A] = b(null), [S, v] = b(!1), C = z(() => {
|
|
20293
20301
|
if (v(!1), t) {
|
|
20294
|
-
const
|
|
20295
|
-
return
|
|
20302
|
+
const D = t, { promise: w, cancel: P } = _e(Promise.all([Bn(D), Fn(D)]));
|
|
20303
|
+
return w.then(([E, T]) => {
|
|
20296
20304
|
const I = a.find(
|
|
20297
20305
|
(R) => R.id === E.definitionId
|
|
20298
20306
|
);
|
|
20299
20307
|
p(E), g(I), A(T), l(!0);
|
|
20300
20308
|
}).catch((E) => {
|
|
20301
|
-
E.isCanceled || (console.error(`AssetGroupDetailContainer: failed to fetch asset group with id ${
|
|
20309
|
+
E.isCanceled || (console.error(`AssetGroupDetailContainer: failed to fetch asset group with id ${D}`, E), d(!0));
|
|
20302
20310
|
}), P;
|
|
20303
20311
|
}
|
|
20304
20312
|
}, [a, t]);
|
|
20305
20313
|
return _(() => C(), [C]), _(() => {
|
|
20306
20314
|
if (u && t === u.id) {
|
|
20307
20315
|
Bt.setContext(u);
|
|
20308
|
-
const
|
|
20309
|
-
|
|
20316
|
+
const D = a.find((w) => w.id === u.definitionId);
|
|
20317
|
+
D ? s({
|
|
20310
20318
|
type: "assetGroup",
|
|
20311
20319
|
assetGroup: u,
|
|
20312
|
-
assetGroupDefinition:
|
|
20320
|
+
assetGroupDefinition: D,
|
|
20313
20321
|
pathname: r
|
|
20314
20322
|
}) : console.error(
|
|
20315
20323
|
`AssetGroupDetailContainer: cannot find AssetGroupDefinition (${u.definitionId}) for AssetGroup (${u.id})`
|
|
@@ -20912,12 +20920,12 @@ function zc({ asset: e, assetGroup: t, children: s }) {
|
|
|
20912
20920
|
} = O(It), [m, g] = b(!1), { user: y } = O(Ie), A = HR(e, t);
|
|
20913
20921
|
_(() => {
|
|
20914
20922
|
l(!0), g(!1);
|
|
20915
|
-
const { promise: C, cancel:
|
|
20916
|
-
return C.then((
|
|
20917
|
-
c(
|
|
20918
|
-
}).catch((
|
|
20919
|
-
|
|
20920
|
-
}),
|
|
20923
|
+
const { promise: C, cancel: D } = _e(JR(A, o, y));
|
|
20924
|
+
return C.then((w) => {
|
|
20925
|
+
c(w), d(w), l(!1);
|
|
20926
|
+
}).catch((w) => {
|
|
20927
|
+
w.isCanceled || (console.error("Couldn't fetch dashboards", w), l(!1), g(!0));
|
|
20928
|
+
}), D;
|
|
20921
20929
|
}, [A, c, d, l, y, o, p]), _(() => () => u(), [u]), _(() => {
|
|
20922
20930
|
if (r.length > 0 && !a.includes("edit") && a.endsWith("/dashboard")) {
|
|
20923
20931
|
const C = ca(a);
|
|
@@ -21029,7 +21037,7 @@ function iO({
|
|
|
21029
21037
|
function A() {
|
|
21030
21038
|
p.isWidgetKeyAvailableInPreviousConfiguration(e.key) || p.deleteWidget(t, e.key), a();
|
|
21031
21039
|
}
|
|
21032
|
-
const S = o.substring(o.lastIndexOf("/") + 1), { editableDashboards: v } = p, C = v.find((P) => P.key === S),
|
|
21040
|
+
const S = o.substring(o.lastIndexOf("/") + 1), { editableDashboards: v } = p, C = v.find((P) => P.key === S), D = C && C.shared ? C.assetGroupId : null, w = U_(e.type);
|
|
21033
21041
|
return /* @__PURE__ */ n(
|
|
21034
21042
|
ge,
|
|
21035
21043
|
{
|
|
@@ -21039,12 +21047,12 @@ function iO({
|
|
|
21039
21047
|
onMouseDown: (P) => {
|
|
21040
21048
|
P.target.closest(".modal-window") || P.stopPropagation();
|
|
21041
21049
|
},
|
|
21042
|
-
content:
|
|
21050
|
+
content: w ? _l(w, {
|
|
21043
21051
|
context: s,
|
|
21044
21052
|
config: d || e,
|
|
21045
21053
|
onChangeConfig: g,
|
|
21046
21054
|
setApplyButtonDisabled: m,
|
|
21047
|
-
assetGroupId:
|
|
21055
|
+
assetGroupId: D,
|
|
21048
21056
|
configChanged: !!d
|
|
21049
21057
|
}) : null,
|
|
21050
21058
|
footer: /* @__PURE__ */ f("div", { children: [
|
|
@@ -21133,17 +21141,17 @@ function el({ dashboardKey: e, editMode: t, hasEditingAuthorities: s, context: a
|
|
|
21133
21141
|
openWidgetConfigKey: p,
|
|
21134
21142
|
deleteWidget: m,
|
|
21135
21143
|
changeWidgetConfig: g
|
|
21136
|
-
} = O(It), { time: y, timeDriveActive: A } = O(ka), { period: S } = O(Bs), v = pe(null), C = pe(null),
|
|
21144
|
+
} = O(It), { time: y, timeDriveActive: A } = O(ka), { period: S } = O(Bs), v = pe(null), C = pe(null), D = Dm(), w = z(() => {
|
|
21137
21145
|
u(e);
|
|
21138
21146
|
}, [e, u]), P = z(
|
|
21139
21147
|
(K) => {
|
|
21140
|
-
if (t &&
|
|
21148
|
+
if (t && D)
|
|
21141
21149
|
try {
|
|
21142
21150
|
d(K, e, t);
|
|
21143
21151
|
} catch {
|
|
21144
21152
|
}
|
|
21145
21153
|
},
|
|
21146
|
-
[e, t, d,
|
|
21154
|
+
[e, t, d, D]
|
|
21147
21155
|
), E = (t ? c : l).find((K) => K.key === e);
|
|
21148
21156
|
if (_(() => {
|
|
21149
21157
|
const K = v.current, Y = C.current;
|
|
@@ -21170,8 +21178,8 @@ function el({ dashboardKey: e, editMode: t, hasEditingAuthorities: s, context: a
|
|
|
21170
21178
|
cols: T,
|
|
21171
21179
|
rowHeight: 70,
|
|
21172
21180
|
onLayoutChange: P,
|
|
21173
|
-
onDragStart:
|
|
21174
|
-
onResizeStart:
|
|
21181
|
+
onDragStart: w,
|
|
21182
|
+
onResizeStart: w,
|
|
21175
21183
|
compactType: I,
|
|
21176
21184
|
preventCollision: !E.autoAdjustLayout,
|
|
21177
21185
|
isDraggable: t && !p,
|
|
@@ -21264,10 +21272,10 @@ function mO() {
|
|
|
21264
21272
|
function C(U) {
|
|
21265
21273
|
U < Date.now() && t(U);
|
|
21266
21274
|
}
|
|
21267
|
-
function
|
|
21268
|
-
e !== o &&
|
|
21275
|
+
function D() {
|
|
21276
|
+
e !== o && w(e);
|
|
21269
21277
|
}
|
|
21270
|
-
function
|
|
21278
|
+
function w(U, M = 0, K = 0) {
|
|
21271
21279
|
if (o != null)
|
|
21272
21280
|
if (M !== 0 && M > 10)
|
|
21273
21281
|
l(e);
|
|
@@ -21279,7 +21287,7 @@ function mO() {
|
|
|
21279
21287
|
a({
|
|
21280
21288
|
min: re,
|
|
21281
21289
|
max: Ae
|
|
21282
|
-
}),
|
|
21290
|
+
}), w(U + Q, ue + 1, Q);
|
|
21283
21291
|
});
|
|
21284
21292
|
}
|
|
21285
21293
|
}
|
|
@@ -21432,7 +21440,7 @@ function mO() {
|
|
|
21432
21440
|
tooltip: !0,
|
|
21433
21441
|
format: ns,
|
|
21434
21442
|
onChange: C,
|
|
21435
|
-
onChangeComplete:
|
|
21443
|
+
onChangeComplete: D,
|
|
21436
21444
|
labels: i
|
|
21437
21445
|
}
|
|
21438
21446
|
),
|
|
@@ -21564,11 +21572,11 @@ function Wc({ context: e }) {
|
|
|
21564
21572
|
}), P.description ? `${P.description}
|
|
21565
21573
|
${E}` : E;
|
|
21566
21574
|
}
|
|
21567
|
-
const C = AO(e, c.authorities),
|
|
21575
|
+
const C = AO(e, c.authorities), D = d("assets.detail.dashboard.title", {
|
|
21568
21576
|
defaultValue: "Dashboard"
|
|
21569
|
-
}),
|
|
21577
|
+
}), w = t.length !== 1 ? D : We(t[0].name || D, d);
|
|
21570
21578
|
return /* @__PURE__ */ f("div", { children: [
|
|
21571
|
-
/* @__PURE__ */ n(le, { title:
|
|
21579
|
+
/* @__PURE__ */ n(le, { title: w, children: /* @__PURE__ */ f(Ke, { children: [
|
|
21572
21580
|
!o && /* @__PURE__ */ n(
|
|
21573
21581
|
"div",
|
|
21574
21582
|
{
|
|
@@ -21634,7 +21642,7 @@ ${E}` : E;
|
|
|
21634
21642
|
path: P.key,
|
|
21635
21643
|
headingTitle: v(P),
|
|
21636
21644
|
renderHeading: () => /* @__PURE__ */ f("span", { "data-testid": `tab-${E}`, children: [
|
|
21637
|
-
We(P.name ||
|
|
21645
|
+
We(P.name || D, d),
|
|
21638
21646
|
" ",
|
|
21639
21647
|
P.shared ? /* @__PURE__ */ n("img", { src: ly, alt: "" }) : null
|
|
21640
21648
|
] }),
|
|
@@ -22142,7 +22150,7 @@ function py({
|
|
|
22142
22150
|
onDashboardDuplicate: r,
|
|
22143
22151
|
openAddWidgetModal: o
|
|
22144
22152
|
}) {
|
|
22145
|
-
const l = O(It), { t: c } = G(), d = Ct(), [u, p] = b(null), [m, g] = b(!1), [y, A] = b(!1), [S, v] = b(!1), [C,
|
|
22153
|
+
const l = O(It), { t: c } = G(), d = Ct(), [u, p] = b(null), [m, g] = b(!1), [y, A] = b(!1), [S, v] = b(!1), [C, D] = b(!1), [w, P] = b(!1), E = e.type === "asset" ? e.asset.id : e.type === "assetGroup" ? e.assetGroup.id : 0, T = t.assetGroupId, I = UO(
|
|
22146
22154
|
e,
|
|
22147
22155
|
i,
|
|
22148
22156
|
s,
|
|
@@ -22325,7 +22333,7 @@ function py({
|
|
|
22325
22333
|
I.canUpdateDashboard && /* @__PURE__ */ f(
|
|
22326
22334
|
ut,
|
|
22327
22335
|
{
|
|
22328
|
-
onClick: () =>
|
|
22336
|
+
onClick: () => D(!0),
|
|
22329
22337
|
"data-testid": "define-column-grid-button",
|
|
22330
22338
|
children: [
|
|
22331
22339
|
/* @__PURE__ */ n(W, { config: !0 }),
|
|
@@ -22403,10 +22411,10 @@ function py({
|
|
|
22403
22411
|
_O,
|
|
22404
22412
|
{
|
|
22405
22413
|
dashboardKey: t.key,
|
|
22406
|
-
onClose: () =>
|
|
22414
|
+
onClose: () => D(!1)
|
|
22407
22415
|
}
|
|
22408
22416
|
),
|
|
22409
|
-
|
|
22417
|
+
w && /* @__PURE__ */ n(GO, { dashboardKey: t.key, onClose: () => P(!1) })
|
|
22410
22418
|
] });
|
|
22411
22419
|
}
|
|
22412
22420
|
function VO(e, t) {
|
|
@@ -22438,8 +22446,8 @@ function MO({ context: e, goToDashboard: t }) {
|
|
|
22438
22446
|
y(!0);
|
|
22439
22447
|
try {
|
|
22440
22448
|
await i(e), y(!1), v();
|
|
22441
|
-
} catch (
|
|
22442
|
-
console.error("Error while saving dashboard",
|
|
22449
|
+
} catch (w) {
|
|
22450
|
+
console.error("Error while saving dashboard", w), y(!1);
|
|
22443
22451
|
}
|
|
22444
22452
|
}
|
|
22445
22453
|
function S() {
|
|
@@ -22451,17 +22459,17 @@ function MO({ context: e, goToDashboard: t }) {
|
|
|
22451
22459
|
function C() {
|
|
22452
22460
|
return !$e(s, a);
|
|
22453
22461
|
}
|
|
22454
|
-
const
|
|
22455
|
-
path:
|
|
22456
|
-
draggingDisabled:
|
|
22457
|
-
renderHeading: () => /* @__PURE__ */ n("span", { "data-testid": `tab-dashboard-${P}`, children:
|
|
22462
|
+
const D = s.map((w, P) => ({
|
|
22463
|
+
path: w.key,
|
|
22464
|
+
draggingDisabled: w.isAssetDefinitionDashboard,
|
|
22465
|
+
renderHeading: () => /* @__PURE__ */ n("span", { "data-testid": `tab-dashboard-${P}`, children: w.name ? w.name : /* @__PURE__ */ n(h, { i18nKey: "dashboard.edit.defaultDashboardName", children: "Dashboard" }) }),
|
|
22458
22466
|
renderBody: () => {
|
|
22459
|
-
const E = a.find((R) => R.key ===
|
|
22467
|
+
const E = a.find((R) => R.key === w.key), T = !E, I = !!(E && E.shared);
|
|
22460
22468
|
return /* @__PURE__ */ n(
|
|
22461
22469
|
py,
|
|
22462
22470
|
{
|
|
22463
22471
|
manyDashboards: s.length > 1,
|
|
22464
|
-
dashboard:
|
|
22472
|
+
dashboard: w,
|
|
22465
22473
|
isNew: T,
|
|
22466
22474
|
previouslyShared: I,
|
|
22467
22475
|
context: e,
|
|
@@ -22471,7 +22479,7 @@ function MO({ context: e, goToDashboard: t }) {
|
|
|
22471
22479
|
);
|
|
22472
22480
|
}
|
|
22473
22481
|
}));
|
|
22474
|
-
return VO(e, d.authorities) &&
|
|
22482
|
+
return VO(e, d.authorities) && D.push({
|
|
22475
22483
|
path: ny,
|
|
22476
22484
|
draggingDisabled: !0,
|
|
22477
22485
|
renderHeading: () => /* @__PURE__ */ n(
|
|
@@ -22501,7 +22509,7 @@ function MO({ context: e, goToDashboard: t }) {
|
|
|
22501
22509
|
}
|
|
22502
22510
|
)
|
|
22503
22511
|
] }),
|
|
22504
|
-
/* @__PURE__ */ n(Pi, { onOrderChange: o, pages:
|
|
22512
|
+
/* @__PURE__ */ n(Pi, { onOrderChange: o, pages: D }),
|
|
22505
22513
|
/* @__PURE__ */ f("div", { className: "di dash edit footer", children: [
|
|
22506
22514
|
/* @__PURE__ */ n("hr", {}),
|
|
22507
22515
|
/* @__PURE__ */ f(Ge, { children: [
|
|
@@ -22522,7 +22530,7 @@ function MO({ context: e, goToDashboard: t }) {
|
|
|
22522
22530
|
/* @__PURE__ */ n(
|
|
22523
22531
|
kt,
|
|
22524
22532
|
{
|
|
22525
|
-
message: (
|
|
22533
|
+
message: (w) => w.pathname.includes("edit") ? !0 : "",
|
|
22526
22534
|
when: !g && C()
|
|
22527
22535
|
}
|
|
22528
22536
|
)
|
|
@@ -22955,10 +22963,10 @@ const tk = {
|
|
|
22955
22963
|
defaultValue: "Edit Data Sheet"
|
|
22956
22964
|
}, nk = ({ assetGroup: e }) => {
|
|
22957
22965
|
const { t } = G(), { assetGroupDefinitions: s } = O(Ee), { push: a } = Se(), [i, r] = b(!1), [o, l] = b(!1), [c, d] = b(!1), [u, p] = b(null), [m, g] = b(null), { reload: y } = O(ry);
|
|
22958
|
-
function A(
|
|
22959
|
-
const
|
|
22966
|
+
function A(D) {
|
|
22967
|
+
const w = dm(D), P = {
|
|
22960
22968
|
id: e.id,
|
|
22961
|
-
...
|
|
22969
|
+
...w
|
|
22962
22970
|
};
|
|
22963
22971
|
return XO(P).then(() => (st("AssetGroupForm"), de(
|
|
22964
22972
|
/* @__PURE__ */ n(h, { i18nKey: Oe.saveSuccess.id, children: Oe.saveSuccess.defaultValue }),
|
|
@@ -22973,8 +22981,8 @@ const tk = {
|
|
|
22973
22981
|
});
|
|
22974
22982
|
}
|
|
22975
22983
|
function S() {
|
|
22976
|
-
d(!0), s0(e.id).then(() => a("/assetgroups")).catch((
|
|
22977
|
-
|
|
22984
|
+
d(!0), s0(e.id).then(() => a("/assetgroups")).catch((D) => {
|
|
22985
|
+
D.response && D.response.data && D.response.data.message ? g(D.response.data.message) : g(
|
|
22978
22986
|
t("assetGroups.detail.edit.unknownDeleteError", {
|
|
22979
22987
|
defaultValue: "Operation failed for unknown reasons"
|
|
22980
22988
|
})
|
|
@@ -22987,12 +22995,12 @@ const tk = {
|
|
|
22987
22995
|
function C() {
|
|
22988
22996
|
l(!0), a0(e.id).then(() => {
|
|
22989
22997
|
r(!0);
|
|
22990
|
-
}).catch((
|
|
22991
|
-
const
|
|
22992
|
-
|
|
22998
|
+
}).catch((D) => {
|
|
22999
|
+
const w = ls(s, D);
|
|
23000
|
+
w ? p(w) : H(
|
|
22993
23001
|
t("assetGroups.form.validation.dryRun.unknownError", {
|
|
22994
23002
|
defaultValue: "Dry run failed with the following error: {{message}}",
|
|
22995
|
-
message:
|
|
23003
|
+
message: D.response?.data?.message || D.message
|
|
22996
23004
|
}),
|
|
22997
23005
|
void 0,
|
|
22998
23006
|
"AssetGroupForm"
|
|
@@ -23059,7 +23067,7 @@ const tk = {
|
|
|
23059
23067
|
}
|
|
23060
23068
|
);
|
|
23061
23069
|
}, ik = Qe({
|
|
23062
|
-
loader: () => import("./Files-
|
|
23070
|
+
loader: () => import("./Files-CJ7EHXzr.js")
|
|
23063
23071
|
}), rk = {
|
|
23064
23072
|
relativePath: "files",
|
|
23065
23073
|
label: {
|
|
@@ -23120,7 +23128,7 @@ function gr(e) {
|
|
|
23120
23128
|
}
|
|
23121
23129
|
function yr(e, t) {
|
|
23122
23130
|
return (s) => function(i) {
|
|
23123
|
-
const { query: r, searchConfig: o } = O(Hf), { paginationSettings: l, writePaginationSettings: c } = O(Ie), { setContextInfo: d } = O($t), { search: u, pathname: p } = nt(), [m, g] = b(null), [y, A] = b(null), [S, v] = b(!1), [C,
|
|
23131
|
+
const { query: r, searchConfig: o } = O(Hf), { paginationSettings: l, writePaginationSettings: c } = O(Ie), { setContextInfo: d } = O($t), { search: u, pathname: p } = nt(), [m, g] = b(null), [y, A] = b(null), [S, v] = b(!1), [C, D] = b(null);
|
|
23124
23132
|
_(() => () => d(), [d]), _(() => {
|
|
23125
23133
|
v(!0);
|
|
23126
23134
|
const T = t.initializePaginationSettings();
|
|
@@ -23140,11 +23148,11 @@ function yr(e, t) {
|
|
|
23140
23148
|
}
|
|
23141
23149
|
});
|
|
23142
23150
|
}
|
|
23143
|
-
|
|
23151
|
+
D(
|
|
23144
23152
|
(k) => $e(k, I) ? k : I
|
|
23145
23153
|
);
|
|
23146
23154
|
}, [u, l]);
|
|
23147
|
-
const
|
|
23155
|
+
const w = z(
|
|
23148
23156
|
(T, I) => {
|
|
23149
23157
|
let R = !1;
|
|
23150
23158
|
const k = () => {
|
|
@@ -23184,7 +23192,7 @@ function yr(e, t) {
|
|
|
23184
23192
|
});
|
|
23185
23193
|
}, [p, m, y, d]), _(() => {
|
|
23186
23194
|
if (C && o)
|
|
23187
|
-
return
|
|
23195
|
+
return w(r, C);
|
|
23188
23196
|
}, [C, r, u, !!o]);
|
|
23189
23197
|
function P(T) {
|
|
23190
23198
|
c({
|
|
@@ -23624,13 +23632,13 @@ const Ek = (e, t) => t.properties.some(({ key: s }) => s === e.key) || t.staticP
|
|
|
23624
23632
|
te,
|
|
23625
23633
|
{
|
|
23626
23634
|
name: "name",
|
|
23627
|
-
render: ({ field: { value: v, onChange: C, onBlur:
|
|
23635
|
+
render: ({ field: { value: v, onChange: C, onBlur: D } }) => /* @__PURE__ */ n(
|
|
23628
23636
|
me,
|
|
23629
23637
|
{
|
|
23630
23638
|
"data-testid": "property-name",
|
|
23631
23639
|
value: v,
|
|
23632
23640
|
onChange: C,
|
|
23633
|
-
onBlur:
|
|
23641
|
+
onBlur: D,
|
|
23634
23642
|
error: l.name?.message,
|
|
23635
23643
|
required: !0,
|
|
23636
23644
|
label: m
|
|
@@ -23642,13 +23650,13 @@ const Ek = (e, t) => t.properties.some(({ key: s }) => s === e.key) || t.staticP
|
|
|
23642
23650
|
te,
|
|
23643
23651
|
{
|
|
23644
23652
|
name: "urn",
|
|
23645
|
-
render: ({ field: { value: v, onChange: C, onBlur:
|
|
23653
|
+
render: ({ field: { value: v, onChange: C, onBlur: D } }) => e || !Ay ? /* @__PURE__ */ n(
|
|
23646
23654
|
me,
|
|
23647
23655
|
{
|
|
23648
23656
|
"data-testid": "property-urn",
|
|
23649
23657
|
value: v,
|
|
23650
23658
|
onChange: C,
|
|
23651
|
-
onBlur:
|
|
23659
|
+
onBlur: D,
|
|
23652
23660
|
required: !0,
|
|
23653
23661
|
disabled: !0,
|
|
23654
23662
|
label: g
|
|
@@ -23669,7 +23677,7 @@ const Ek = (e, t) => t.properties.some(({ key: s }) => s === e.key) || t.staticP
|
|
|
23669
23677
|
te,
|
|
23670
23678
|
{
|
|
23671
23679
|
name: "assetDefinitionId",
|
|
23672
|
-
render: ({ field: { value: v, onChange: C, onBlur:
|
|
23680
|
+
render: ({ field: { value: v, onChange: C, onBlur: D } }) => /* @__PURE__ */ n(
|
|
23673
23681
|
B,
|
|
23674
23682
|
{
|
|
23675
23683
|
"data-testid": "property-assetDefinitionId",
|
|
@@ -23678,10 +23686,10 @@ const Ek = (e, t) => t.properties.some(({ key: s }) => s === e.key) || t.staticP
|
|
|
23678
23686
|
Ck,
|
|
23679
23687
|
{
|
|
23680
23688
|
assetDefinitionId: v,
|
|
23681
|
-
onSelect: (
|
|
23682
|
-
C(
|
|
23689
|
+
onSelect: (w) => {
|
|
23690
|
+
C(w == null || w === "-" ? null : parseInt(w));
|
|
23683
23691
|
},
|
|
23684
|
-
onBlur:
|
|
23692
|
+
onBlur: D
|
|
23685
23693
|
}
|
|
23686
23694
|
)
|
|
23687
23695
|
}
|
|
@@ -23716,8 +23724,8 @@ const Ek = (e, t) => t.properties.some(({ key: s }) => s === e.key) || t.staticP
|
|
|
23716
23724
|
children: /* @__PURE__ */ n(
|
|
23717
23725
|
Je,
|
|
23718
23726
|
{
|
|
23719
|
-
value: u.find((
|
|
23720
|
-
onChange: (
|
|
23727
|
+
value: u.find((D) => D.value === v),
|
|
23728
|
+
onChange: (D) => C(D?.value),
|
|
23721
23729
|
options: u
|
|
23722
23730
|
}
|
|
23723
23731
|
)
|
|
@@ -23838,7 +23846,7 @@ const Vk = (e) => {
|
|
|
23838
23846
|
watch: u,
|
|
23839
23847
|
formState: { dirtyFields: p, isSubmitting: m, isSubmitted: g, isValid: y },
|
|
23840
23848
|
handleSubmit: A
|
|
23841
|
-
} = d, S = Object.keys(p).length > 0, { assetProperties: v } = Ne(), C = v.some(({ key: K }) => K.startsWith("_")), [
|
|
23849
|
+
} = d, S = Object.keys(p).length > 0, { assetProperties: v } = Ne(), C = v.some(({ key: K }) => K.startsWith("_")), [D, w] = b(!1), P = u(), { isDoingDryRun: E, dryRunError: T } = Ok(P, e), I = u("assetDefinitionId");
|
|
23842
23850
|
_(() => {
|
|
23843
23851
|
l(I);
|
|
23844
23852
|
}, [I]);
|
|
@@ -23857,7 +23865,7 @@ const Vk = (e) => {
|
|
|
23857
23865
|
editedAsset: e,
|
|
23858
23866
|
dryRunError: T,
|
|
23859
23867
|
initialGatewayName: s,
|
|
23860
|
-
showHiddenProperties:
|
|
23868
|
+
showHiddenProperties: D
|
|
23861
23869
|
}
|
|
23862
23870
|
),
|
|
23863
23871
|
requiredAuthorities: ["UPDATE_ASSET"]
|
|
@@ -23916,7 +23924,7 @@ const Vk = (e) => {
|
|
|
23916
23924
|
{
|
|
23917
23925
|
naked: !0,
|
|
23918
23926
|
disabled: m,
|
|
23919
|
-
onClick: () =>
|
|
23927
|
+
onClick: () => w(!D),
|
|
23920
23928
|
children: /* @__PURE__ */ n(h, { i18nKey: "form.toggleHiddenProperties", children: "Toggle hidden properties" })
|
|
23921
23929
|
}
|
|
23922
23930
|
)
|
|
@@ -24408,18 +24416,18 @@ const oG = [
|
|
|
24408
24416
|
function pG(e, t, s, a) {
|
|
24409
24417
|
const [i, r] = b(!1), [o, l] = b(), c = zn(e.map((A) => A.assetUrn)), d = xg(o, c, e), [u, p] = b(e), [m, g] = b(s), { queryId: y } = O(Hc);
|
|
24410
24418
|
return _(() => {
|
|
24411
|
-
const A = !y || e !== u || s !== m, S = (
|
|
24419
|
+
const A = !y || e !== u || s !== m, S = (w, P, E, T) => A ? (p(w), g(E), Vg(w, P, E)) : Mc(P, T);
|
|
24412
24420
|
r(!0);
|
|
24413
|
-
const v = S(e, t, s, y), { promise: C, cancel:
|
|
24414
|
-
return C.then((
|
|
24415
|
-
l(
|
|
24416
|
-
}).catch((
|
|
24417
|
-
if (!
|
|
24418
|
-
console.error("Error fetching datapoint values:",
|
|
24419
|
-
const P =
|
|
24421
|
+
const v = S(e, t, s, y), { promise: C, cancel: D } = _e(v);
|
|
24422
|
+
return C.then((w) => {
|
|
24423
|
+
l(w), r(!1), A && w && w.queryId && a(w.queryId);
|
|
24424
|
+
}).catch((w) => {
|
|
24425
|
+
if (!w.isCanceled) {
|
|
24426
|
+
console.error("Error fetching datapoint values:", w), r(!1);
|
|
24427
|
+
const P = w?.response?.data?.message;
|
|
24420
24428
|
P && H(P);
|
|
24421
24429
|
}
|
|
24422
|
-
}),
|
|
24430
|
+
}), D;
|
|
24423
24431
|
}, [e, s, t]), { isLoading: i, pageableContent: d };
|
|
24424
24432
|
}
|
|
24425
24433
|
const fG = {
|
|
@@ -24514,7 +24522,7 @@ const vy = (e) => {
|
|
|
24514
24522
|
);
|
|
24515
24523
|
return { isOperator: t, containsOperator: s, existsOperator: a, numericOperators: i };
|
|
24516
24524
|
}, yG = ({ onRemove: e, filterIndex: t, timeframe: s, propertyNodes: a, operators: i }) => {
|
|
24517
|
-
const { t: r } = G(), { control: o, watch: l, setValue: c } = De(), { containsOperator: d, isOperator: u, numericOperators: p } = vy(r), m = l("asset"), g = l("datapoint"), y = l("datatype"), A = l(`filters.${t}.propertyPath`), [S, v] = b(void 0), [C,
|
|
24525
|
+
const { t: r } = G(), { control: o, watch: l, setValue: c } = De(), { containsOperator: d, isOperator: u, numericOperators: p } = vy(r), m = l("asset"), g = l("datapoint"), y = l("datatype"), A = l(`filters.${t}.propertyPath`), [S, v] = b(void 0), [C, D] = b([]), [w, P] = b(), [E, T] = b(i), [I, R] = b(l(`filters.${t}.operator`)), k = z(
|
|
24518
24526
|
(M) => ({
|
|
24519
24527
|
string: [u, d],
|
|
24520
24528
|
number: p,
|
|
@@ -24544,7 +24552,7 @@ const vy = (e) => {
|
|
|
24544
24552
|
label: String(Y),
|
|
24545
24553
|
type: "item"
|
|
24546
24554
|
}));
|
|
24547
|
-
|
|
24555
|
+
D(K), K.length && K[0].value && (P(K[0]), c(`filters.${t}.value`, K[0].value));
|
|
24548
24556
|
}
|
|
24549
24557
|
});
|
|
24550
24558
|
}, [A, g, m, y, s, t, c]), _(() => {
|
|
@@ -24600,9 +24608,9 @@ const vy = (e) => {
|
|
|
24600
24608
|
Je,
|
|
24601
24609
|
{
|
|
24602
24610
|
"data-testid": "datapoint-explorer-filter-card-input-value-structured",
|
|
24603
|
-
value:
|
|
24604
|
-
value:
|
|
24605
|
-
label:
|
|
24611
|
+
value: w ? {
|
|
24612
|
+
value: w.value,
|
|
24613
|
+
label: w.label,
|
|
24606
24614
|
type: "item"
|
|
24607
24615
|
} : void 0,
|
|
24608
24616
|
onChange: (Q) => {
|
|
@@ -24702,7 +24710,7 @@ const vy = (e) => {
|
|
|
24702
24710
|
{
|
|
24703
24711
|
name: `filters.${t}.value`,
|
|
24704
24712
|
control: o,
|
|
24705
|
-
defaultValue: C.find((M) => M.value ===
|
|
24713
|
+
defaultValue: C.find((M) => M.value === w)?.value || void 0,
|
|
24706
24714
|
render: ({ field: { value: M, onChange: K } }) => /* @__PURE__ */ f("div", { className: "card-lower-right di field", children: [
|
|
24707
24715
|
/* @__PURE__ */ n("label", { children: /* @__PURE__ */ n(h, { i18nKey: "datapointExplorer.value", children: "Value" }) }),
|
|
24708
24716
|
y !== "GEO_POSITION" && U(y, M, K)
|
|
@@ -24734,7 +24742,7 @@ function bG({ timeframe: e }) {
|
|
|
24734
24742
|
} = Fp({
|
|
24735
24743
|
control: s,
|
|
24736
24744
|
name: "filters"
|
|
24737
|
-
}),
|
|
24745
|
+
}), D = zn([m].filter(Z)), { datapoints: w } = AG(D[m ?? ""]?.id), P = y === "BOOLEAN" ? S.length < 1 : S.length < A, E = z(
|
|
24738
24746
|
(U) => U ? {
|
|
24739
24747
|
DOUBLE: c,
|
|
24740
24748
|
LONG: c,
|
|
@@ -24776,7 +24784,7 @@ function bG({ timeframe: e }) {
|
|
|
24776
24784
|
property: "name",
|
|
24777
24785
|
direction: "ASC"
|
|
24778
24786
|
}
|
|
24779
|
-
}), k = (
|
|
24787
|
+
}), k = (w || []).map((U) => ({
|
|
24780
24788
|
value: U.name,
|
|
24781
24789
|
label: U.name,
|
|
24782
24790
|
type: "item"
|
|
@@ -24794,9 +24802,9 @@ function bG({ timeframe: e }) {
|
|
|
24794
24802
|
}, [g, y, m, e.tsStart, e.tsEnd]), _(() => {
|
|
24795
24803
|
i(
|
|
24796
24804
|
"datatype",
|
|
24797
|
-
g || g !== void 0 ?
|
|
24805
|
+
g || g !== void 0 ? w?.find((U) => U.name === g)?.datatype ?? null : null
|
|
24798
24806
|
);
|
|
24799
|
-
}, [g,
|
|
24807
|
+
}, [g, w, i]), /* @__PURE__ */ f("form", { children: [
|
|
24800
24808
|
/* @__PURE__ */ n(
|
|
24801
24809
|
te,
|
|
24802
24810
|
{
|
|
@@ -24984,9 +24992,9 @@ function CG() {
|
|
|
24984
24992
|
}
|
|
24985
24993
|
const C = () => {
|
|
24986
24994
|
u([]);
|
|
24987
|
-
}, w = (I) => {
|
|
24988
|
-
u((R) => R.filter((k) => k.uniqueFilterKey !== I));
|
|
24989
24995
|
}, D = (I) => {
|
|
24996
|
+
u((R) => R.filter((k) => k.uniqueFilterKey !== I));
|
|
24997
|
+
}, w = (I) => {
|
|
24990
24998
|
const R = d.find((k) => k.uniqueFilterKey === I);
|
|
24991
24999
|
R && c({ type: "edit", values: R });
|
|
24992
25000
|
}, P = () => {
|
|
@@ -25033,8 +25041,8 @@ function CG() {
|
|
|
25033
25041
|
eG,
|
|
25034
25042
|
{
|
|
25035
25043
|
onCreate: P,
|
|
25036
|
-
onEdit:
|
|
25037
|
-
onRemove:
|
|
25044
|
+
onEdit: w,
|
|
25045
|
+
onRemove: D,
|
|
25038
25046
|
onRemoveAll: C
|
|
25039
25047
|
}
|
|
25040
25048
|
),
|
|
@@ -25119,12 +25127,12 @@ function wG(e) {
|
|
|
25119
25127
|
i.endsWith("/") && r(i.replace(/(\/)$/, ""));
|
|
25120
25128
|
}, [i, r]);
|
|
25121
25129
|
const v = z(() => {
|
|
25122
|
-
const { promise: C, cancel:
|
|
25123
|
-
return S(!1), C.then((
|
|
25124
|
-
Bt.setContext(
|
|
25125
|
-
}).catch((
|
|
25126
|
-
|
|
25127
|
-
}),
|
|
25130
|
+
const { promise: C, cancel: D } = _e(DG(o));
|
|
25131
|
+
return S(!1), C.then((w) => {
|
|
25132
|
+
Bt.setContext(w.asset), m(w), s(w.asset), c(!0);
|
|
25133
|
+
}).catch((w) => {
|
|
25134
|
+
w.isCanceled || (console.error("UserDetailContainer: error fetching user: ", w), u(!0));
|
|
25135
|
+
}), D;
|
|
25128
25136
|
}, [o, s]);
|
|
25129
25137
|
return _(() => v(), [v]), _(() => () => s(void 0), [s]), _(() => {
|
|
25130
25138
|
p && o === p.asset.id && (y(p.assetGroups), t({
|
|
@@ -25237,7 +25245,7 @@ const NG = (e) => {
|
|
|
25237
25245
|
"Datapoints"
|
|
25238
25246
|
);
|
|
25239
25247
|
}, GG = Qe({
|
|
25240
|
-
loader: () => import("./DatapointImport-
|
|
25248
|
+
loader: () => import("./DatapointImport-Cq8cifAI.js")
|
|
25241
25249
|
});
|
|
25242
25250
|
function Sy({ fetchDatapoints: e, createDatapoint: t, handle: s, addUnit: a }) {
|
|
25243
25251
|
const [i, r] = b([]), [o, l] = b(!1), [c, d] = b(!1);
|
|
@@ -25496,9 +25504,9 @@ function zG({ trendDatapoint: { key: e, settings: t, datapoint: s } }) {
|
|
|
25496
25504
|
i(P), P || (o(null), c(null), d(e, { ...t, scaleAxis: null }));
|
|
25497
25505
|
}, C = (P) => {
|
|
25498
25506
|
o(P), P != null && l != null ? d(e, { ...t, scaleAxis: { min: P, max: l } }) : d(e, { ...t, scaleAxis: null });
|
|
25499
|
-
},
|
|
25507
|
+
}, D = (P) => {
|
|
25500
25508
|
c(P), P != null && r != null ? d(e, { ...t, scaleAxis: { min: r, max: P } }) : d(e, { ...t, scaleAxis: null });
|
|
25501
|
-
},
|
|
25509
|
+
}, w = s.thresholds?.threshold1 == null || s.thresholds?.threshold2 == null;
|
|
25502
25510
|
return /* @__PURE__ */ f("div", { className: "trend-datapoint-settings-panel", children: [
|
|
25503
25511
|
(s.datatype === "DOUBLE" || s.datatype === "LONG") && /* @__PURE__ */ f(L, { children: [
|
|
25504
25512
|
/* @__PURE__ */ f("div", { className: "section", children: [
|
|
@@ -25541,15 +25549,15 @@ function zG({ trendDatapoint: { key: e, settings: t, datapoint: s } }) {
|
|
|
25541
25549
|
size: "full-width"
|
|
25542
25550
|
}
|
|
25543
25551
|
) }),
|
|
25544
|
-
/* @__PURE__ */ n("div", { className: ae("section", { "checkbox-disabled":
|
|
25552
|
+
/* @__PURE__ */ n("div", { className: ae("section", { "checkbox-disabled": w }), children: /* @__PURE__ */ n(
|
|
25545
25553
|
we,
|
|
25546
25554
|
{
|
|
25547
|
-
value: !
|
|
25555
|
+
value: !w && t.showThresholds,
|
|
25548
25556
|
onChange: A,
|
|
25549
25557
|
label: u("trend.showThreshold", { defaultValue: "Show Thresholds" }),
|
|
25550
25558
|
horizontal: !0,
|
|
25551
25559
|
size: "full-width",
|
|
25552
|
-
disabled:
|
|
25560
|
+
disabled: w
|
|
25553
25561
|
}
|
|
25554
25562
|
) }),
|
|
25555
25563
|
/* @__PURE__ */ f("div", { className: ae("section", { "checkbox-disabled": t.combineAxis }), children: [
|
|
@@ -25582,7 +25590,7 @@ function zG({ trendDatapoint: { key: e, settings: t, datapoint: s } }) {
|
|
|
25582
25590
|
Rt,
|
|
25583
25591
|
{
|
|
25584
25592
|
value: l ?? "",
|
|
25585
|
-
onChange:
|
|
25593
|
+
onChange: D,
|
|
25586
25594
|
label: u("trend.max", { defaultValue: "Max" }),
|
|
25587
25595
|
size: "full-width",
|
|
25588
25596
|
min: r ?? void 0,
|
|
@@ -25799,11 +25807,11 @@ function YG() {
|
|
|
25799
25807
|
}) && (y.current ? y.current.series.length === i.series.length ? (y.current.update(i, !0, !0), y.current.series.length !== i.series.length && y.current.update(i, !0, !0)) : (y.current.destroy(), y.current = Gn.chart(g.current, i)) : y.current = Gn.chart(g.current, i), $G(y.current, r));
|
|
25800
25808
|
}, [i, r, g]);
|
|
25801
25809
|
function A(v) {
|
|
25802
|
-
const C = e.find((
|
|
25810
|
+
const C = e.find((D) => D.key === v);
|
|
25803
25811
|
C && u(v, !C.hidden);
|
|
25804
25812
|
}
|
|
25805
25813
|
function S(v) {
|
|
25806
|
-
const C = e.find((
|
|
25814
|
+
const C = e.find((D) => D.key === v);
|
|
25807
25815
|
C && p(C.asset.urn, C.datapoint.name);
|
|
25808
25816
|
}
|
|
25809
25817
|
return /* @__PURE__ */ f("div", { className: ae("di trend", { hidden: !e.length }), children: [
|
|
@@ -26324,7 +26332,7 @@ function gL({
|
|
|
26324
26332
|
e,
|
|
26325
26333
|
o,
|
|
26326
26334
|
l
|
|
26327
|
-
), v = fL(), C = (P) => p(P.map(({ name: E }) => E)),
|
|
26335
|
+
), v = fL(), C = (P) => p(P.map(({ name: E }) => E)), D = vc({ [e.urn]: c.map(({ name: P }) => P) }), w = rL(
|
|
26328
26336
|
e.urn,
|
|
26329
26337
|
mL(c)
|
|
26330
26338
|
);
|
|
@@ -26337,10 +26345,10 @@ function gL({
|
|
|
26337
26345
|
items: pL(
|
|
26338
26346
|
e.urn,
|
|
26339
26347
|
r,
|
|
26340
|
-
|
|
26341
|
-
|
|
26348
|
+
D,
|
|
26349
|
+
w.datapointValues
|
|
26342
26350
|
),
|
|
26343
|
-
isLoading: t ||
|
|
26351
|
+
isLoading: t || w.isLoading,
|
|
26344
26352
|
customSortFunction: v,
|
|
26345
26353
|
onFilteredItemsChanged: C,
|
|
26346
26354
|
onContentChange: d,
|
|
@@ -26389,7 +26397,7 @@ function SL({ asset: e }) {
|
|
|
26389
26397
|
o(!0), i(await Wi(e.id)), o(!1);
|
|
26390
26398
|
}, [e.id]);
|
|
26391
26399
|
_(() => (y(), () => st("AssetDatapointsErrors")), [e.id, y]);
|
|
26392
|
-
const { changeDatapoint: A, updateDatapointsAndPeriod: S } = O(Ma), v = zn(g), [C,
|
|
26400
|
+
const { changeDatapoint: A, updateDatapointsAndPeriod: S } = O(Ma), v = zn(g), [C, D] = b(!1);
|
|
26393
26401
|
_(() => {
|
|
26394
26402
|
if (r || C || !m.series || m.series.some(
|
|
26395
26403
|
({ assetUrn: I }) => I !== e.urn && v[I] === void 0
|
|
@@ -26402,7 +26410,7 @@ function SL({ asset: e }) {
|
|
|
26402
26410
|
}).filter(Z);
|
|
26403
26411
|
return k && U.length > 0 ? { asset: k, datapoints: U } : null;
|
|
26404
26412
|
}).filter(Z);
|
|
26405
|
-
S(T, m.period),
|
|
26413
|
+
S(T, m.period), D(!0);
|
|
26406
26414
|
}, [
|
|
26407
26415
|
e,
|
|
26408
26416
|
v,
|
|
@@ -26412,7 +26420,7 @@ function SL({ asset: e }) {
|
|
|
26412
26420
|
m,
|
|
26413
26421
|
S
|
|
26414
26422
|
]);
|
|
26415
|
-
const
|
|
26423
|
+
const w = async () => {
|
|
26416
26424
|
if (await s({
|
|
26417
26425
|
title: t("datapoints.hide.confirmTitle", { defaultValue: "Hide Datapoints" }),
|
|
26418
26426
|
message: t("datapoints.hide.confirmMessage", {
|
|
@@ -26508,7 +26516,7 @@ function SL({ asset: e }) {
|
|
|
26508
26516
|
amount: d.length,
|
|
26509
26517
|
count: d.length
|
|
26510
26518
|
}),
|
|
26511
|
-
onClick:
|
|
26519
|
+
onClick: w,
|
|
26512
26520
|
disabled: p.length === 0,
|
|
26513
26521
|
children: /* @__PURE__ */ f(
|
|
26514
26522
|
h,
|
|
@@ -26642,25 +26650,25 @@ const TL = {
|
|
|
26642
26650
|
scaleFactor: 0.5,
|
|
26643
26651
|
type: "arrow"
|
|
26644
26652
|
}
|
|
26645
|
-
}, A = [], S = [], v = (
|
|
26646
|
-
A.some((E) => E.id ===
|
|
26647
|
-
id:
|
|
26648
|
-
label:
|
|
26653
|
+
}, A = [], S = [], v = (D, w, P) => {
|
|
26654
|
+
A.some((E) => E.id === D) || A.push({
|
|
26655
|
+
id: D,
|
|
26656
|
+
label: w,
|
|
26649
26657
|
group: P
|
|
26650
26658
|
});
|
|
26651
|
-
}, C = (
|
|
26652
|
-
S.some((P) => P.from ===
|
|
26653
|
-
from:
|
|
26654
|
-
to:
|
|
26659
|
+
}, C = (D, w) => {
|
|
26660
|
+
S.some((P) => P.from === D && P.to === w) || S.push({
|
|
26661
|
+
from: D,
|
|
26662
|
+
to: w,
|
|
26655
26663
|
arrows: y
|
|
26656
26664
|
});
|
|
26657
26665
|
};
|
|
26658
26666
|
g.forEach(
|
|
26659
|
-
(
|
|
26660
|
-
), [...p, ...m].forEach((
|
|
26661
|
-
const
|
|
26662
|
-
v(
|
|
26663
|
-
}), v(`ASSET-${e.id}`, e.name, "ASSET"), p.forEach((
|
|
26667
|
+
(D) => v(`ASSETGROUPDEFINITION-${D.id}`, D.name, "ASSETGROUPDEFINITION")
|
|
26668
|
+
), [...p, ...m].forEach((D) => {
|
|
26669
|
+
const w = `ASSETGROUP-${D.id}`, P = D.parentId ? `ASSETGROUP-${D.parentId}` : null, E = `ASSETGROUPDEFINITION-${D.definitionId}`;
|
|
26670
|
+
v(w, D.displayName || D.name, "ASSETGROUP"), P && C(w, P), C(w, E);
|
|
26671
|
+
}), v(`ASSET-${e.id}`, e.name, "ASSET"), p.forEach((D) => C(`ASSET-${e.id}`, `ASSETGROUP-${D.id}`)), a(A), r(S);
|
|
26664
26672
|
},
|
|
26665
26673
|
[e]
|
|
26666
26674
|
);
|
|
@@ -26772,15 +26780,15 @@ const UL = ({ asset: e, gateway: t, properties: s }) => {
|
|
|
26772
26780
|
_(() => {
|
|
26773
26781
|
o({
|
|
26774
26782
|
fields: vn,
|
|
26775
|
-
search: (
|
|
26776
|
-
Ye(e.assetGroupIds, !1)(
|
|
26783
|
+
search: (w, P) => Tn(
|
|
26784
|
+
Ye(e.assetGroupIds, !1)(w),
|
|
26777
26785
|
P
|
|
26778
|
-
).then((E) => (
|
|
26786
|
+
).then((E) => (w === "" && A.current && i(E.totalElements), E))
|
|
26779
26787
|
});
|
|
26780
26788
|
}, [e.assetGroupIds]), _(() => () => {
|
|
26781
26789
|
A.current = !1, st("AssetForm");
|
|
26782
26790
|
}, []);
|
|
26783
|
-
const S = () => c(!0), v = () => c(!1), C = e.assetDefinitionId ? m ? s.filter((
|
|
26791
|
+
const S = () => c(!0), v = () => c(!1), C = e.assetDefinitionId ? m ? s.filter((w) => m.properties.some(({ key: P }) => P === w.key)) : [] : s, D = e.assetDefinitionId && m ? s.filter((w) => m.staticProperties.some(({ key: P }) => P === w.key)) : [];
|
|
26784
26792
|
return /* @__PURE__ */ f("div", { children: [
|
|
26785
26793
|
/* @__PURE__ */ n(le, { title: GL }),
|
|
26786
26794
|
/* @__PURE__ */ f("div", { children: [
|
|
@@ -26838,12 +26846,12 @@ const UL = ({ asset: e, gateway: t, properties: s }) => {
|
|
|
26838
26846
|
children: LL(e, m)
|
|
26839
26847
|
}
|
|
26840
26848
|
),
|
|
26841
|
-
/* @__PURE__ */ n(Un, { properties: C, getValue: (
|
|
26849
|
+
/* @__PURE__ */ n(Un, { properties: C, getValue: (w) => e.properties[w] }),
|
|
26842
26850
|
/* @__PURE__ */ n(
|
|
26843
26851
|
Un,
|
|
26844
26852
|
{
|
|
26845
|
-
properties:
|
|
26846
|
-
getValue: (
|
|
26853
|
+
properties: D,
|
|
26854
|
+
getValue: (w) => m?.staticProperties?.find((P) => P.key === w)?.value
|
|
26847
26855
|
}
|
|
26848
26856
|
),
|
|
26849
26857
|
/* @__PURE__ */ f(pt, { title: /* @__PURE__ */ n(h, { i18nKey: "assets.detail.datasheet.assetGroups", children: "Asset Groups" }), children: [
|
|
@@ -26883,7 +26891,7 @@ const UL = ({ asset: e, gateway: t, properties: s }) => {
|
|
|
26883
26891
|
searchConfig: r,
|
|
26884
26892
|
columnDefinitions: zt("ASSETS/DATASHEET", !0),
|
|
26885
26893
|
pageSize: 5,
|
|
26886
|
-
uniqueItemKey: (
|
|
26894
|
+
uniqueItemKey: (w) => w.id,
|
|
26887
26895
|
withQueryBuilder: !0,
|
|
26888
26896
|
updateTrigger: g,
|
|
26889
26897
|
searchInputScope: "asset-datasheet",
|
|
@@ -27015,7 +27023,7 @@ const UL = ({ asset: e, gateway: t, properties: s }) => {
|
|
|
27015
27023
|
childRoutes: [WL],
|
|
27016
27024
|
requiredAuthorities: ["READ_ASSET", "READ_ASSET_GROUP"]
|
|
27017
27025
|
}, qL = Qe({
|
|
27018
|
-
loader: () => import("./Files-
|
|
27026
|
+
loader: () => import("./Files-CJ7EHXzr.js")
|
|
27019
27027
|
}), jL = {
|
|
27020
27028
|
relativePath: "files",
|
|
27021
27029
|
label: {
|
|
@@ -27640,7 +27648,7 @@ function D8({ onClose: e, currentRuleIndex: t, isCurrentRuleGlobal: s, admin: a
|
|
|
27640
27648
|
active: !0
|
|
27641
27649
|
});
|
|
27642
27650
|
}
|
|
27643
|
-
function
|
|
27651
|
+
function D({ index: E, value: T, priorityLevel: I }) {
|
|
27644
27652
|
const R = {
|
|
27645
27653
|
prioritySettings: Mt.find((k) => k.priority === I) || ys,
|
|
27646
27654
|
conditionSettings: T
|
|
@@ -27653,7 +27661,7 @@ function D8({ onClose: e, currentRuleIndex: t, isCurrentRuleGlobal: s, admin: a
|
|
|
27653
27661
|
};
|
|
27654
27662
|
});
|
|
27655
27663
|
}
|
|
27656
|
-
function
|
|
27664
|
+
function w(E) {
|
|
27657
27665
|
A((T) => ({
|
|
27658
27666
|
...T,
|
|
27659
27667
|
conditions: [
|
|
@@ -27694,9 +27702,9 @@ function D8({ onClose: e, currentRuleIndex: t, isCurrentRuleGlobal: s, admin: a
|
|
|
27694
27702
|
/* @__PURE__ */ n(
|
|
27695
27703
|
S8,
|
|
27696
27704
|
{
|
|
27697
|
-
onChange:
|
|
27705
|
+
onChange: D,
|
|
27698
27706
|
onAddRowClick: P,
|
|
27699
|
-
onDelete:
|
|
27707
|
+
onDelete: w,
|
|
27700
27708
|
rule: y,
|
|
27701
27709
|
readOnly: v
|
|
27702
27710
|
}
|
|
@@ -27727,24 +27735,24 @@ function w8({ modalVisible: e, setModalVisible: t, admin: s }) {
|
|
|
27727
27735
|
function g() {
|
|
27728
27736
|
u(a.length), m(!1), t(!0);
|
|
27729
27737
|
}
|
|
27730
|
-
function y(
|
|
27731
|
-
u(
|
|
27738
|
+
function y(w) {
|
|
27739
|
+
u(w), m(!1), t(!0);
|
|
27732
27740
|
}
|
|
27733
|
-
function A(
|
|
27734
|
-
const P = a.map((E, T) => T ===
|
|
27741
|
+
function A(w) {
|
|
27742
|
+
const P = a.map((E, T) => T === w ? { ...E, active: !E.active } : E);
|
|
27735
27743
|
r(P);
|
|
27736
27744
|
}
|
|
27737
27745
|
function S() {
|
|
27738
27746
|
u(o.length), m(!0), t(!0);
|
|
27739
27747
|
}
|
|
27740
|
-
function v(
|
|
27741
|
-
u(
|
|
27748
|
+
function v(w) {
|
|
27749
|
+
u(w), m(!0), t(!0);
|
|
27742
27750
|
}
|
|
27743
|
-
function C(
|
|
27744
|
-
const P = o.map((E, T) => T ===
|
|
27751
|
+
function C(w) {
|
|
27752
|
+
const P = o.map((E, T) => T === w ? { ...E, active: !E.active } : E);
|
|
27745
27753
|
c(P);
|
|
27746
27754
|
}
|
|
27747
|
-
function
|
|
27755
|
+
function D() {
|
|
27748
27756
|
t(!1);
|
|
27749
27757
|
}
|
|
27750
27758
|
return /* @__PURE__ */ n("div", { className: "map-marker-condition-settings", children: /* @__PURE__ */ f("div", { className: "map-marker-condition-content", children: [
|
|
@@ -27755,15 +27763,15 @@ function w8({ modalVisible: e, setModalVisible: t, admin: s }) {
|
|
|
27755
27763
|
/* @__PURE__ */ n("hr", {}),
|
|
27756
27764
|
(s || !s && o.length > 0) && /* @__PURE__ */ f("div", { className: "map-marker-condition-list", children: [
|
|
27757
27765
|
/* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(h, { i18nKey: "assets.map.marker.globalMapRules", children: "Global Map Rules" }) }),
|
|
27758
|
-
o.map((
|
|
27766
|
+
o.map((w, P) => /* @__PURE__ */ f("div", { className: "map-marker-condition", children: [
|
|
27759
27767
|
/* @__PURE__ */ n(
|
|
27760
27768
|
Xt,
|
|
27761
27769
|
{
|
|
27762
27770
|
className: "map-marker-condition-name",
|
|
27763
27771
|
horizontal: !0,
|
|
27764
|
-
label:
|
|
27772
|
+
label: w.property.key,
|
|
27765
27773
|
onChange: () => C(P),
|
|
27766
|
-
value:
|
|
27774
|
+
value: w.active || !1
|
|
27767
27775
|
}
|
|
27768
27776
|
),
|
|
27769
27777
|
/* @__PURE__ */ f("div", { className: "map-marker-condition-actions", children: [
|
|
@@ -27805,15 +27813,15 @@ function w8({ modalVisible: e, setModalVisible: t, admin: s }) {
|
|
|
27805
27813
|
!s && /* @__PURE__ */ f("div", { className: "map-marker-condition-list", children: [
|
|
27806
27814
|
/* @__PURE__ */ n("hr", {}),
|
|
27807
27815
|
/* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(h, { i18nKey: "assets.map.marker.customMapRules", children: "Own Map Rules" }) }),
|
|
27808
|
-
a.map((
|
|
27816
|
+
a.map((w, P) => /* @__PURE__ */ f("div", { className: "map-marker-condition", children: [
|
|
27809
27817
|
/* @__PURE__ */ n(
|
|
27810
27818
|
Xt,
|
|
27811
27819
|
{
|
|
27812
27820
|
className: "map-marker-condition-name",
|
|
27813
27821
|
horizontal: !0,
|
|
27814
|
-
label:
|
|
27822
|
+
label: w.property.key,
|
|
27815
27823
|
onChange: () => A(P),
|
|
27816
|
-
value:
|
|
27824
|
+
value: w.active || !1
|
|
27817
27825
|
}
|
|
27818
27826
|
),
|
|
27819
27827
|
/* @__PURE__ */ f("div", { className: "map-marker-condition-actions", children: [
|
|
@@ -27846,7 +27854,7 @@ function w8({ modalVisible: e, setModalVisible: t, admin: s }) {
|
|
|
27846
27854
|
e && /* @__PURE__ */ n(
|
|
27847
27855
|
D8,
|
|
27848
27856
|
{
|
|
27849
|
-
onClose:
|
|
27857
|
+
onClose: D,
|
|
27850
27858
|
currentRuleIndex: d,
|
|
27851
27859
|
isCurrentRuleGlobal: p,
|
|
27852
27860
|
admin: s
|
|
@@ -27956,14 +27964,14 @@ function k8({ isLoading: e, assets: t, onAdditionalQueryChange: s, admin: a = !1
|
|
|
27956
27964
|
const { customRules: i, globalRules: r, priorityMarkerShapes: o } = O(qt), [l, c] = b(null), [d, u] = b(!1), [p, m] = b(!1), [g, y] = b([]), { ref: A } = og(() => {
|
|
27957
27965
|
!p && u(!1);
|
|
27958
27966
|
}, g), S = $(() => ws(
|
|
27959
|
-
t.map((
|
|
27967
|
+
t.map((D) => Iy(D, [...r, ...i]).priority),
|
|
27960
27968
|
Math.floor
|
|
27961
27969
|
), [t, i, r]);
|
|
27962
27970
|
function v() {
|
|
27963
27971
|
u(!d);
|
|
27964
27972
|
}
|
|
27965
|
-
function C(
|
|
27966
|
-
g.includes(
|
|
27973
|
+
function C(D) {
|
|
27974
|
+
g.includes(D) || y([...g, D]);
|
|
27967
27975
|
}
|
|
27968
27976
|
return /* @__PURE__ */ n(Py.Provider, { value: { addIgnoredElement: C }, children: /* @__PURE__ */ n(
|
|
27969
27977
|
"div",
|
|
@@ -27975,21 +27983,21 @@ function k8({ isLoading: e, assets: t, onAdditionalQueryChange: s, admin: a = !1
|
|
|
27975
27983
|
/* @__PURE__ */ n(h, { i18nKey: "assets.map.marker.settings", children: "Settings" }),
|
|
27976
27984
|
/* @__PURE__ */ n("img", { src: _s, alt: "triangle icon", className: "triangle" })
|
|
27977
27985
|
] }) }),
|
|
27978
|
-
_8.map((
|
|
27979
|
-
const
|
|
27980
|
-
({ priority: E }) => E ===
|
|
27986
|
+
_8.map((D) => {
|
|
27987
|
+
const w = S[D.priority] && S[D.priority].length, P = o.find(
|
|
27988
|
+
({ priority: E }) => E === D.priority
|
|
27981
27989
|
)?.shape || "circle";
|
|
27982
27990
|
return /* @__PURE__ */ n(
|
|
27983
27991
|
R8,
|
|
27984
27992
|
{
|
|
27985
|
-
active: l ===
|
|
27986
|
-
priority:
|
|
27993
|
+
active: l === D.label,
|
|
27994
|
+
priority: D,
|
|
27987
27995
|
shape: P,
|
|
27988
27996
|
onClick: c,
|
|
27989
|
-
totalElements:
|
|
27997
|
+
totalElements: w || 0,
|
|
27990
27998
|
onAdditionalQueryChange: s
|
|
27991
27999
|
},
|
|
27992
|
-
|
|
28000
|
+
D.label
|
|
27993
28001
|
);
|
|
27994
28002
|
}),
|
|
27995
28003
|
/* @__PURE__ */ n(
|
|
@@ -28066,14 +28074,14 @@ function x8({ asset: e, className: t }) {
|
|
|
28066
28074
|
_(() => {
|
|
28067
28075
|
async function y() {
|
|
28068
28076
|
if (e && e.assetGroupIds.length > 0) {
|
|
28069
|
-
const
|
|
28070
|
-
e.assetGroupIds.map((
|
|
28077
|
+
const D = await Promise.all(
|
|
28078
|
+
e.assetGroupIds.map((w) => Bn(w))
|
|
28071
28079
|
);
|
|
28072
|
-
i(new Map(
|
|
28080
|
+
i(new Map(D.map((w) => [w.id, w])));
|
|
28073
28081
|
}
|
|
28074
28082
|
u(!1);
|
|
28075
|
-
const A = e?.shadow || {}, S = e ? Object.keys(e.properties).filter((
|
|
28076
|
-
(
|
|
28083
|
+
const A = e?.shadow || {}, S = e ? Object.keys(e.properties).filter((D) => !D.startsWith("_")) : [], C = Object.keys(A).filter(
|
|
28084
|
+
(D) => D.indexOf("processingresult") < 0 && !D.startsWith("dpts.") && !D.startsWith("event.")
|
|
28077
28085
|
);
|
|
28078
28086
|
o(C), c(S);
|
|
28079
28087
|
}
|
|
@@ -28164,13 +28172,13 @@ function Ry({ children: e, admin: t = !1 }) {
|
|
|
28164
28172
|
function C(E, T) {
|
|
28165
28173
|
return E.length === 1 ? E = [] : E.splice(T, 1), E;
|
|
28166
28174
|
}
|
|
28167
|
-
const
|
|
28175
|
+
const D = Ir(async () => {
|
|
28168
28176
|
try {
|
|
28169
28177
|
const E = await sf(ts);
|
|
28170
28178
|
o(E);
|
|
28171
28179
|
} catch {
|
|
28172
28180
|
}
|
|
28173
|
-
}),
|
|
28181
|
+
}), w = Ir(async () => {
|
|
28174
28182
|
try {
|
|
28175
28183
|
const E = await gs(ts);
|
|
28176
28184
|
c(E);
|
|
@@ -28184,7 +28192,7 @@ function Ry({ children: e, admin: t = !1 }) {
|
|
|
28184
28192
|
}
|
|
28185
28193
|
});
|
|
28186
28194
|
return _(() => {
|
|
28187
|
-
|
|
28195
|
+
w(), !t && D();
|
|
28188
28196
|
}, [t]), _(() => {
|
|
28189
28197
|
P();
|
|
28190
28198
|
}, []), /* @__PURE__ */ n(
|
|
@@ -28306,7 +28314,7 @@ function Oy({ admin: e = !1 }) {
|
|
|
28306
28314
|
o(!0), c(m.find((I) => I.urn === T));
|
|
28307
28315
|
},
|
|
28308
28316
|
[m]
|
|
28309
|
-
),
|
|
28317
|
+
), D = z(
|
|
28310
28318
|
(T, I, R) => {
|
|
28311
28319
|
const k = m.filter((U) => T.includes(U.urn));
|
|
28312
28320
|
o(!1), v({
|
|
@@ -28319,7 +28327,7 @@ function Oy({ admin: e = !1 }) {
|
|
|
28319
28327
|
});
|
|
28320
28328
|
},
|
|
28321
28329
|
[m, v]
|
|
28322
|
-
),
|
|
28330
|
+
), w = z(() => {
|
|
28323
28331
|
o(!1), c(void 0);
|
|
28324
28332
|
}, []), P = z((T, I) => {
|
|
28325
28333
|
s({ topLeft: T, bottomRight: I });
|
|
@@ -28336,8 +28344,8 @@ function Oy({ admin: e = !1 }) {
|
|
|
28336
28344
|
}
|
|
28337
28345
|
}),
|
|
28338
28346
|
onMarkerClick: C,
|
|
28339
|
-
onClusterClick:
|
|
28340
|
-
onMapClick:
|
|
28347
|
+
onClusterClick: D,
|
|
28348
|
+
onMapClick: w,
|
|
28341
28349
|
onMapIdle: P,
|
|
28342
28350
|
onMapInitialized: P,
|
|
28343
28351
|
clustererConfiguration: j8,
|
|
@@ -28853,13 +28861,13 @@ function l3({ setting: e }) {
|
|
|
28853
28861
|
};
|
|
28854
28862
|
return _(() => {
|
|
28855
28863
|
(async () => {
|
|
28856
|
-
const
|
|
28857
|
-
p.map(async (
|
|
28858
|
-
const { content: P } = await y0("timeZone",
|
|
28859
|
-
return { timeZone:
|
|
28864
|
+
const D = (await Promise.all(
|
|
28865
|
+
p.map(async (w) => {
|
|
28866
|
+
const { content: P } = await y0("timeZone", w);
|
|
28867
|
+
return { timeZone: w, assets: P };
|
|
28860
28868
|
})
|
|
28861
|
-
)).reduce((
|
|
28862
|
-
i(
|
|
28869
|
+
)).reduce((w, P) => (w[P.timeZone] = P, w), {});
|
|
28870
|
+
i(D);
|
|
28863
28871
|
})();
|
|
28864
28872
|
}, [p]), /* @__PURE__ */ f("div", { className: "selections-setting-widget", children: [
|
|
28865
28873
|
/* @__PURE__ */ f(
|
|
@@ -30207,27 +30215,27 @@ function j3({ setting: e }) {
|
|
|
30207
30215
|
g === "roles" && y === "true" && r(!0);
|
|
30208
30216
|
}, [g, y]);
|
|
30209
30217
|
const A = u ?? [];
|
|
30210
|
-
function S(
|
|
30218
|
+
function S(w) {
|
|
30211
30219
|
if (c)
|
|
30212
30220
|
p(
|
|
30213
30221
|
A.map(
|
|
30214
|
-
(P) => P.id === c.id ? op(c.id,
|
|
30222
|
+
(P) => P.id === c.id ? op(c.id, w) : P
|
|
30215
30223
|
)
|
|
30216
30224
|
);
|
|
30217
30225
|
else {
|
|
30218
30226
|
const P = Math.max(0, ...A.map((E) => E.id)) + 1;
|
|
30219
|
-
p([...A, op(P,
|
|
30227
|
+
p([...A, op(P, w)]);
|
|
30220
30228
|
}
|
|
30221
30229
|
r(!1);
|
|
30222
30230
|
}
|
|
30223
30231
|
function v() {
|
|
30224
30232
|
d(void 0), r(!0);
|
|
30225
30233
|
}
|
|
30226
|
-
function C(
|
|
30227
|
-
d(
|
|
30234
|
+
function C(w) {
|
|
30235
|
+
d(w), r(!0);
|
|
30228
30236
|
}
|
|
30229
|
-
function w
|
|
30230
|
-
p(A.filter((P) => P.id !==
|
|
30237
|
+
function D(w) {
|
|
30238
|
+
p(A.filter((P) => P.id !== w));
|
|
30231
30239
|
}
|
|
30232
30240
|
return /* @__PURE__ */ f("div", { className: "role-templates-widget", children: [
|
|
30233
30241
|
/* @__PURE__ */ n(
|
|
@@ -30245,24 +30253,24 @@ function j3({ setting: e }) {
|
|
|
30245
30253
|
{
|
|
30246
30254
|
name: "name",
|
|
30247
30255
|
label: /* @__PURE__ */ n(h, { i18nKey: "role.name", children: "Name" }),
|
|
30248
|
-
render: ({ name:
|
|
30256
|
+
render: ({ name: w }) => w
|
|
30249
30257
|
},
|
|
30250
30258
|
{
|
|
30251
30259
|
name: "description",
|
|
30252
30260
|
label: /* @__PURE__ */ n(h, { i18nKey: "role.description", children: "Description" }),
|
|
30253
|
-
render: ({ description:
|
|
30261
|
+
render: ({ description: w }) => w
|
|
30254
30262
|
},
|
|
30255
30263
|
{
|
|
30256
30264
|
name: "actions",
|
|
30257
30265
|
label: "",
|
|
30258
30266
|
width: "1%",
|
|
30259
|
-
render: (
|
|
30260
|
-
/* @__PURE__ */ n(N, { naked: !0, onClick: () => C(
|
|
30261
|
-
/* @__PURE__ */ n(N, { naked: !0, onClick: () => w
|
|
30267
|
+
render: (w) => /* @__PURE__ */ f(L, { children: [
|
|
30268
|
+
/* @__PURE__ */ n(N, { naked: !0, onClick: () => C(w), "data-testid": "edit-button", children: /* @__PURE__ */ n(W, { edit: !0 }) }),
|
|
30269
|
+
/* @__PURE__ */ n(N, { naked: !0, onClick: () => D(w.id), "data-testid": "delete-button", children: /* @__PURE__ */ n(W, { del: !0 }) })
|
|
30262
30270
|
] })
|
|
30263
30271
|
}
|
|
30264
30272
|
],
|
|
30265
|
-
uniqueItemKey: ({ name:
|
|
30273
|
+
uniqueItemKey: ({ name: w }) => w,
|
|
30266
30274
|
items: A,
|
|
30267
30275
|
paginationSettings: {
|
|
30268
30276
|
size: 10,
|
|
@@ -30335,8 +30343,8 @@ function Z3({ setting: e, ...t }) {
|
|
|
30335
30343
|
onChange: S,
|
|
30336
30344
|
onBlur: v,
|
|
30337
30345
|
autoFocus: !0,
|
|
30338
|
-
onKeyPress: async (
|
|
30339
|
-
|
|
30346
|
+
onKeyPress: async (D) => {
|
|
30347
|
+
D.key === "Enter" && await g();
|
|
30340
30348
|
},
|
|
30341
30349
|
error: C?.message,
|
|
30342
30350
|
"data-testid": t["data-testid"],
|
|
@@ -30516,7 +30524,7 @@ function rU({ setting: e, ...t }) {
|
|
|
30516
30524
|
}
|
|
30517
30525
|
);
|
|
30518
30526
|
}
|
|
30519
|
-
const oU = Up(() => import("./JsonSettingWidget-
|
|
30527
|
+
const oU = Up(() => import("./JsonSettingWidget-CpZmTuBe.js")), so = Ci.filter(
|
|
30520
30528
|
({ name: e }) => Object.values(cl).every((t) => !t.includes(e))
|
|
30521
30529
|
);
|
|
30522
30530
|
function ao({ setting: e, ...t }) {
|
|
@@ -30560,7 +30568,7 @@ function lU() {
|
|
|
30560
30568
|
const v = await T0() ?? {};
|
|
30561
30569
|
return r(
|
|
30562
30570
|
Object.keys(v).filter(
|
|
30563
|
-
(C) => !ky.includes(C) && !Ci.find((
|
|
30571
|
+
(C) => !ky.includes(C) && !Ci.find((D) => D.name === C)
|
|
30564
30572
|
)
|
|
30565
30573
|
), v;
|
|
30566
30574
|
}
|
|
@@ -30570,11 +30578,11 @@ function lU() {
|
|
|
30570
30578
|
{
|
|
30571
30579
|
title: s(`appSettings.category.${v}`, { defaultValue: v }),
|
|
30572
30580
|
"data-testid": `${v}-section-toggle`,
|
|
30573
|
-
children: cl[v].map((C,
|
|
30574
|
-
const
|
|
30575
|
-
return
|
|
30576
|
-
/* @__PURE__ */ n(ao, { setting:
|
|
30577
|
-
|
|
30581
|
+
children: cl[v].map((C, D) => {
|
|
30582
|
+
const w = Ci.find(({ name: P }) => P === C);
|
|
30583
|
+
return w ? /* @__PURE__ */ f(bt, { children: [
|
|
30584
|
+
/* @__PURE__ */ n(ao, { setting: w, "data-testid": `setting-${w.name}` }),
|
|
30585
|
+
D < cl[v].length - 1 && /* @__PURE__ */ n("hr", {})
|
|
30578
30586
|
] }, C) : null;
|
|
30579
30587
|
})
|
|
30580
30588
|
},
|
|
@@ -30605,7 +30613,7 @@ function lU() {
|
|
|
30605
30613
|
N,
|
|
30606
30614
|
{
|
|
30607
30615
|
onClick: () => {
|
|
30608
|
-
r((
|
|
30616
|
+
r((D) => D.filter((w) => w !== v)), a.unregister(v);
|
|
30609
30617
|
},
|
|
30610
30618
|
children: /* @__PURE__ */ n(W, { del: !0 })
|
|
30611
30619
|
}
|
|
@@ -30627,7 +30635,7 @@ function lU() {
|
|
|
30627
30635
|
const C = Object.fromEntries(
|
|
30628
30636
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30629
30637
|
Object.entries(v).filter(
|
|
30630
|
-
([
|
|
30638
|
+
([D, w]) => w != null && (typeof w != "number" || !isNaN(w))
|
|
30631
30639
|
)
|
|
30632
30640
|
);
|
|
30633
30641
|
t(!0), await C0(JSON.stringify(C)), t(!1), window.location.replace("?success=true");
|
|
@@ -31608,7 +31616,7 @@ function XU({ editedAssetDefinition: e, editedDashboards: t, onSubmit: s, onCanc
|
|
|
31608
31616
|
console.warn("Validation error", E);
|
|
31609
31617
|
})();
|
|
31610
31618
|
}
|
|
31611
|
-
const
|
|
31619
|
+
const w = {
|
|
31612
31620
|
type: "assetDefinition",
|
|
31613
31621
|
assetDefinition: {
|
|
31614
31622
|
id: parseInt(i),
|
|
@@ -31624,7 +31632,7 @@ function XU({ editedAssetDefinition: e, editedDashboards: t, onSubmit: s, onCanc
|
|
|
31624
31632
|
py,
|
|
31625
31633
|
{
|
|
31626
31634
|
dashboard: P.editableDashboards[0] ?? c,
|
|
31627
|
-
context:
|
|
31635
|
+
context: w,
|
|
31628
31636
|
manyDashboards: !1,
|
|
31629
31637
|
isNew: !0,
|
|
31630
31638
|
previouslyShared: !1
|
|
@@ -34046,12 +34054,12 @@ const Sp = Te({
|
|
|
34046
34054
|
const { t: e } = G(), t = Ct(), [s, a] = b([]), [i, r] = b(!1), [o, l] = b(null), [c, d] = b(null), u = /* @__PURE__ */ n(h, { i18nKey: "portalAdmin.sidebarElements.loginproviders.create", children: "Create new Login Provider" }), p = z(async () => {
|
|
34047
34055
|
r(!0);
|
|
34048
34056
|
try {
|
|
34049
|
-
const
|
|
34050
|
-
a(
|
|
34051
|
-
} catch (
|
|
34057
|
+
const D = await wV();
|
|
34058
|
+
a(D), r(!1);
|
|
34059
|
+
} catch (D) {
|
|
34052
34060
|
throw H(
|
|
34053
34061
|
/* @__PURE__ */ n(h, { i18nKey: "authorizationServers.loadingError", children: "loading of the login providers failed" })
|
|
34054
|
-
), console.error("login providers loading failed",
|
|
34062
|
+
), console.error("login providers loading failed", D), D;
|
|
34055
34063
|
} finally {
|
|
34056
34064
|
r(!1);
|
|
34057
34065
|
}
|
|
@@ -34059,32 +34067,32 @@ const Sp = Te({
|
|
|
34059
34067
|
_(() => {
|
|
34060
34068
|
p();
|
|
34061
34069
|
}, [p]);
|
|
34062
|
-
const m = async (
|
|
34070
|
+
const m = async (D) => {
|
|
34063
34071
|
await t({
|
|
34064
34072
|
title: e("authorizationServers.confirmDeleteTitle", { defaultValue: "Delete Login Provider" }),
|
|
34065
34073
|
message: e("authorizationServers.confirmDeleteMessage", {
|
|
34066
34074
|
defaultValue: "Do you really want to delete this login provider?"
|
|
34067
34075
|
})
|
|
34068
|
-
}) && (r(!0), await _V(
|
|
34069
|
-
}, g = async (
|
|
34076
|
+
}) && (r(!0), await _V(D), await p());
|
|
34077
|
+
}, g = async (D, w) => {
|
|
34070
34078
|
await t({
|
|
34071
34079
|
title: e("authorizationServers.confirmDeleteRuleTitle", { defaultValue: "Delete Rule" }),
|
|
34072
34080
|
message: e("authorizationServers.confirmDeleteRuleMessage", {
|
|
34073
34081
|
defaultValue: "Do you really want to delete this Rule?"
|
|
34074
34082
|
})
|
|
34075
|
-
}) && (r(!0), await RV(
|
|
34076
|
-
}, y = (
|
|
34077
|
-
l(
|
|
34078
|
-
}, A = (
|
|
34079
|
-
l(
|
|
34083
|
+
}) && (r(!0), await RV(D, w), await p());
|
|
34084
|
+
}, y = (D) => {
|
|
34085
|
+
l(D), d($V());
|
|
34086
|
+
}, A = (D, w) => {
|
|
34087
|
+
l(D), d(w);
|
|
34080
34088
|
}, S = () => {
|
|
34081
34089
|
l(null), d(null);
|
|
34082
|
-
}, v = async (
|
|
34083
|
-
r(!0), o && (c ? await kV(o,
|
|
34084
|
-
}, C = async (
|
|
34090
|
+
}, v = async (D, w) => {
|
|
34091
|
+
r(!0), o && (c ? await kV(o, D) : await OV(o, D)), l(null), d(null), await p(), w();
|
|
34092
|
+
}, C = async (D, w) => {
|
|
34085
34093
|
r(!0);
|
|
34086
34094
|
try {
|
|
34087
|
-
|
|
34095
|
+
D && D.name ? await PV(D) : await IV(D), await p(), w();
|
|
34088
34096
|
} catch (P) {
|
|
34089
34097
|
throw H(
|
|
34090
34098
|
/* @__PURE__ */ n(h, { i18nKey: "authorizationServers.savingError", children: "Saving of the login providers failed" })
|
|
@@ -34094,7 +34102,7 @@ const Sp = Te({
|
|
|
34094
34102
|
};
|
|
34095
34103
|
return /* @__PURE__ */ f("div", { className: "di authorization-servers", children: [
|
|
34096
34104
|
i && /* @__PURE__ */ n("span", { "data-testid": "loading" }),
|
|
34097
|
-
/* @__PURE__ */ n(Sp.Consumer, { children: ({ editModalOpen:
|
|
34105
|
+
/* @__PURE__ */ n(Sp.Consumer, { children: ({ editModalOpen: D, authorizationServer: w, openModal: P, closeModal: E }) => /* @__PURE__ */ f(L, { children: [
|
|
34098
34106
|
/* @__PURE__ */ n(
|
|
34099
34107
|
le,
|
|
34100
34108
|
{
|
|
@@ -34197,10 +34205,10 @@ const Sp = Te({
|
|
|
34197
34205
|
T.name
|
|
34198
34206
|
)) })
|
|
34199
34207
|
] }),
|
|
34200
|
-
|
|
34208
|
+
D && w && /* @__PURE__ */ n(
|
|
34201
34209
|
LV,
|
|
34202
34210
|
{
|
|
34203
|
-
authorizationServer:
|
|
34211
|
+
authorizationServer: w,
|
|
34204
34212
|
onSubmit: (T) => C(T, E),
|
|
34205
34213
|
onCancel: E
|
|
34206
34214
|
}
|
|
@@ -34210,7 +34218,7 @@ const Sp = Te({
|
|
|
34210
34218
|
VV,
|
|
34211
34219
|
{
|
|
34212
34220
|
authorizationRule: c,
|
|
34213
|
-
onSubmit: (
|
|
34221
|
+
onSubmit: (D) => v(D, S),
|
|
34214
34222
|
onCancel: S
|
|
34215
34223
|
}
|
|
34216
34224
|
)
|
|
@@ -34247,9 +34255,9 @@ var HV = function(t) {
|
|
|
34247
34255
|
})));
|
|
34248
34256
|
};
|
|
34249
34257
|
const qV = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(wt, { pathname: e }) }), jV = Qe({
|
|
34250
|
-
loader: () => import("./BundleManagementContainer-
|
|
34258
|
+
loader: () => import("./BundleManagementContainer-vMlhg6fJ.js")
|
|
34251
34259
|
}), ZV = Qe({
|
|
34252
|
-
loader: () => import("./BundlesContainer-
|
|
34260
|
+
loader: () => import("./BundlesContainer-CaC__bAh.js")
|
|
34253
34261
|
}), YV = {
|
|
34254
34262
|
relativePath: "bundles",
|
|
34255
34263
|
label: {
|
|
@@ -34322,9 +34330,9 @@ function sM(e) {
|
|
|
34322
34330
|
};
|
|
34323
34331
|
}
|
|
34324
34332
|
const aM = "The English version will automatically be used as a fallback. It will always be shown to new users if no other document in a new user's preferred language is available.", iM = ({ editedLocale: e, onSubmit: t, onCancel: s, onDelete: a }) => {
|
|
34325
|
-
const { t: i } = G(), r = nt(), { locales: o } = O(Ee), l = r.state ? r.state.eulaDocuments : void 0, { loading: c, eulaList: d } = sM(l), u = $(() => c ? [] : o.filter((
|
|
34326
|
-
name: `${uA(i,
|
|
34327
|
-
value:
|
|
34333
|
+
const { t: i } = G(), r = nt(), { locales: o } = O(Ee), l = r.state ? r.state.eulaDocuments : void 0, { loading: c, eulaList: d } = sM(l), u = $(() => c ? [] : o.filter((D) => d.every((w) => w.locale !== D)).map((D) => ({
|
|
34334
|
+
name: `${uA(i, D)} (${D})`,
|
|
34335
|
+
value: D
|
|
34328
34336
|
})), [c, o, d, i]), p = d.find((C) => C.locale === e), { handleSubmit: m, control: g, watch: y } = je({
|
|
34329
34337
|
defaultValues: {
|
|
34330
34338
|
locale: e,
|
|
@@ -34336,18 +34344,18 @@ const aM = "The English version will automatically be used as a fallback. It wil
|
|
|
34336
34344
|
}
|
|
34337
34345
|
}), A = !!e, S = y("file"), v = () => {
|
|
34338
34346
|
const C = dA(e);
|
|
34339
|
-
tM(C).then((
|
|
34340
|
-
if (!
|
|
34347
|
+
tM(C).then((D) => {
|
|
34348
|
+
if (!D)
|
|
34341
34349
|
throw new Error(`EULA document for locale ${C} not found`);
|
|
34342
|
-
const { data:
|
|
34350
|
+
const { data: w, meta: P } = D;
|
|
34343
34351
|
Aa(
|
|
34344
|
-
new Blob([
|
|
34352
|
+
new Blob([w], {
|
|
34345
34353
|
type: P.contentType
|
|
34346
34354
|
}),
|
|
34347
34355
|
P.userMetadata["X-Blob-Meta-Filename"]
|
|
34348
34356
|
);
|
|
34349
|
-
}).catch((
|
|
34350
|
-
console.error(
|
|
34357
|
+
}).catch((D) => {
|
|
34358
|
+
console.error(D);
|
|
34351
34359
|
});
|
|
34352
34360
|
};
|
|
34353
34361
|
return /* @__PURE__ */ n(ne, { show: c, children: /* @__PURE__ */ n("form", { onSubmit: m((C) => t(C)), children: /* @__PURE__ */ f("div", { className: "eula", children: [
|
|
@@ -34390,7 +34398,7 @@ const aM = "The English version will automatically be used as a fallback. It wil
|
|
|
34390
34398
|
},
|
|
34391
34399
|
onRemoveFile: () => C.onChange(null),
|
|
34392
34400
|
onSelectFile: C.onChange,
|
|
34393
|
-
previewComponent: ({ file:
|
|
34401
|
+
previewComponent: ({ file: D, onRemoveFile: w }) => /* @__PURE__ */ f(
|
|
34394
34402
|
"strong",
|
|
34395
34403
|
{
|
|
34396
34404
|
style: {
|
|
@@ -34399,8 +34407,8 @@ const aM = "The English version will automatically be used as a fallback. It wil
|
|
|
34399
34407
|
justifyContent: "center"
|
|
34400
34408
|
},
|
|
34401
34409
|
children: [
|
|
34402
|
-
|
|
34403
|
-
/* @__PURE__ */ n(N, { naked: !0, onClick:
|
|
34410
|
+
D && D.name,
|
|
34411
|
+
/* @__PURE__ */ n(N, { naked: !0, onClick: w, "data-testid": "delete-button", children: /* @__PURE__ */ n(W, { del: !0 }) })
|
|
34404
34412
|
]
|
|
34405
34413
|
}
|
|
34406
34414
|
)
|
|
@@ -34713,19 +34721,19 @@ var vM = function(t) {
|
|
|
34713
34721
|
})));
|
|
34714
34722
|
};
|
|
34715
34723
|
const SM = Qe({
|
|
34716
|
-
loader: () => import("./LicensesEditPage-
|
|
34724
|
+
loader: () => import("./LicensesEditPage-CwGor2gV.js")
|
|
34717
34725
|
}), TM = {
|
|
34718
34726
|
relativePath: "create",
|
|
34719
34727
|
component: SM,
|
|
34720
34728
|
requiredAuthorities: ["MANAGE_LICENSES"]
|
|
34721
34729
|
}, CM = Qe({
|
|
34722
|
-
loader: () => import("./LicensesEditPage-
|
|
34730
|
+
loader: () => import("./LicensesEditPage-CwGor2gV.js")
|
|
34723
34731
|
}), EM = {
|
|
34724
34732
|
relativePath: ":licenseName",
|
|
34725
34733
|
component: CM,
|
|
34726
34734
|
requiredAuthorities: ["MANAGE_LICENSES"]
|
|
34727
34735
|
}, DM = Qe({
|
|
34728
|
-
loader: () => import("./LicensesList-
|
|
34736
|
+
loader: () => import("./LicensesList-DWQlVNdR.js")
|
|
34729
34737
|
}), wM = {
|
|
34730
34738
|
relativePath: "licenses",
|
|
34731
34739
|
label: {
|
|
@@ -34768,19 +34776,19 @@ var IM = function(t) {
|
|
|
34768
34776
|
})));
|
|
34769
34777
|
};
|
|
34770
34778
|
const PM = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(wt, { pathname: e }) }), _M = Qe({
|
|
34771
|
-
loader: () => import("./PropertiesEditPage
|
|
34779
|
+
loader: () => import("./PropertiesEditPage-C4jjCoPp.js")
|
|
34772
34780
|
}), RM = {
|
|
34773
34781
|
relativePath: "create",
|
|
34774
34782
|
component: _M,
|
|
34775
34783
|
requiredAuthorities: ["CREATE_PROPERTY"]
|
|
34776
34784
|
}, OM = Qe({
|
|
34777
|
-
loader: () => import("./PropertiesEditPage
|
|
34785
|
+
loader: () => import("./PropertiesEditPage-C4jjCoPp.js")
|
|
34778
34786
|
}), kM = {
|
|
34779
34787
|
relativePath: ":propertyKey",
|
|
34780
34788
|
component: OM,
|
|
34781
34789
|
requiredAuthorities: ["UPDATE_PROPERTY"]
|
|
34782
34790
|
}, GM = Qe({
|
|
34783
|
-
loader: () => import("./PropertiesList-
|
|
34791
|
+
loader: () => import("./PropertiesList-CBLvLopM.js")
|
|
34784
34792
|
}), LM = {
|
|
34785
34793
|
relativePath: "properties",
|
|
34786
34794
|
label: {
|
|
@@ -34815,13 +34823,13 @@ var UM = function(t) {
|
|
|
34815
34823
|
})));
|
|
34816
34824
|
};
|
|
34817
34825
|
const xM = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(wt, { pathname: e }) }), VM = Qe({
|
|
34818
|
-
loader: () => import("./TemplateEditPage-
|
|
34826
|
+
loader: () => import("./TemplateEditPage-d-3_n4YW.js")
|
|
34819
34827
|
}), MM = {
|
|
34820
34828
|
relativePath: ":templateId",
|
|
34821
34829
|
component: VM,
|
|
34822
34830
|
requiredAuthorities: ["WRITE_NOTIFICATION_TEMPLATE"]
|
|
34823
34831
|
}, KM = Qe({
|
|
34824
|
-
loader: () => import("./TemplatesListPage-
|
|
34832
|
+
loader: () => import("./TemplatesListPage-roTvuqft.js")
|
|
34825
34833
|
}), BM = {
|
|
34826
34834
|
relativePath: "list",
|
|
34827
34835
|
label: {
|
|
@@ -34842,7 +34850,7 @@ const xM = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */
|
|
|
34842
34850
|
requiredAuthorities: ["READ_NOTIFICATION_TEMPLATE", "WRITE_NOTIFICATION_TEMPLATE"],
|
|
34843
34851
|
contextAction: xM
|
|
34844
34852
|
}, $M = Qe({
|
|
34845
|
-
loader: () => import("./UserGroupAssignments-
|
|
34853
|
+
loader: () => import("./UserGroupAssignments-DTXRBp_V.js")
|
|
34846
34854
|
}), zM = {
|
|
34847
34855
|
relativePath: "user-group-assignments",
|
|
34848
34856
|
label: {
|
|
@@ -34931,7 +34939,7 @@ const qM = () => /* @__PURE__ */ n(
|
|
|
34931
34939
|
children: /* @__PURE__ */ n(W, { fullscreen: !0, large: !0 })
|
|
34932
34940
|
}
|
|
34933
34941
|
), jM = Qe({
|
|
34934
|
-
loader: () => import("./GlobalPowerBiReports-
|
|
34942
|
+
loader: () => import("./GlobalPowerBiReports-PsiWcApU.js")
|
|
34935
34943
|
}), ZM = {
|
|
34936
34944
|
relativePath: "powerbi",
|
|
34937
34945
|
label: {
|
|
@@ -34950,9 +34958,9 @@ const qM = () => /* @__PURE__ */ n(
|
|
|
34950
34958
|
_(() => {
|
|
34951
34959
|
s && m(!!s.properties._showWelcomeModal);
|
|
34952
34960
|
}, [s]), _(() => {
|
|
34953
|
-
const
|
|
34961
|
+
const w = () => M1().then((I) => o(I)).catch((I) => console.warn("Couldn't fetch start page", I)), P = () => F0().then((I) => c(I)).catch((I) => console.warn("Couldn't read release notes subscription", I)), E = () => $0().then((I) => u(I)).catch((I) => console.warn("Couldn't read show user documentation", I)), T = () => sf("uiConfigurations/searchmode").then((I) => y(I)).catch((I) => console.warn("Couldn't read the default search mode", I));
|
|
34954
34962
|
Promise.all([
|
|
34955
|
-
|
|
34963
|
+
w(),
|
|
34956
34964
|
P(),
|
|
34957
34965
|
E(),
|
|
34958
34966
|
T()
|
|
@@ -34960,14 +34968,14 @@ const qM = () => /* @__PURE__ */ n(
|
|
|
34960
34968
|
}, []);
|
|
34961
34969
|
const A = () => {
|
|
34962
34970
|
o("");
|
|
34963
|
-
}, S = (
|
|
34964
|
-
c(
|
|
34965
|
-
}, v = (
|
|
34966
|
-
u(
|
|
34967
|
-
}, C = (
|
|
34968
|
-
m(
|
|
34969
|
-
},
|
|
34970
|
-
(
|
|
34971
|
+
}, S = (w) => {
|
|
34972
|
+
c(w);
|
|
34973
|
+
}, v = (w) => {
|
|
34974
|
+
u(w);
|
|
34975
|
+
}, C = (w) => {
|
|
34976
|
+
m(w);
|
|
34977
|
+
}, D = (w) => {
|
|
34978
|
+
(w === "full" || w === "context") && y(w);
|
|
34971
34979
|
};
|
|
34972
34980
|
return /* @__PURE__ */ n(ne, { show: a, children: x.cloneElement(e, {
|
|
34973
34981
|
user: s,
|
|
@@ -34981,7 +34989,7 @@ const qM = () => /* @__PURE__ */ n(
|
|
|
34981
34989
|
onReleaseNotesSubscriptionChange: S,
|
|
34982
34990
|
onShowUserDocumentationChange: v,
|
|
34983
34991
|
onShowWelcomeModalAtStartChange: C,
|
|
34984
|
-
onDefaultSearchModeChange:
|
|
34992
|
+
onDefaultSearchModeChange: D
|
|
34985
34993
|
}) });
|
|
34986
34994
|
}, XM = (e) => e.principals.OPEN_ID_CONNECT_LINK && e.principals.OPEN_ID_CONNECT_LINK.length > 0 ? {
|
|
34987
34995
|
id: "user.accountType.EXTERNAL",
|
|
@@ -35455,7 +35463,7 @@ const uK = {
|
|
|
35455
35463
|
R.response.data?.message ?? /* @__PURE__ */ n(h, { i18nKey: "error.unknown", children: "Unknown error occurred" })
|
|
35456
35464
|
) : H(I);
|
|
35457
35465
|
}) : H("Email change: No EMAIL principal!");
|
|
35458
|
-
},
|
|
35466
|
+
}, D = /* @__PURE__ */ n(h, { i18nKey: "user.username", children: "Username" }), w = /* @__PURE__ */ n(h, { i18nKey: "user.email", children: "E-Mail" }), P = /* @__PURE__ */ n(h, { i18nKey: "users.form.masterdata.resetPasswordLabel", children: "Password" });
|
|
35459
35467
|
return /* @__PURE__ */ f("div", { className: "user-profile-column", children: [
|
|
35460
35468
|
e ? /* @__PURE__ */ f(L, { children: [
|
|
35461
35469
|
/* @__PURE__ */ n(B, { size: "full-width", label: /* @__PURE__ */ n(h, { i18nKey: "user.displayName", children: "Display Name" }), children: /* @__PURE__ */ n(
|
|
@@ -35473,8 +35481,8 @@ const uK = {
|
|
|
35473
35481
|
)
|
|
35474
35482
|
}
|
|
35475
35483
|
) }),
|
|
35476
|
-
!!e.principals.USERNAME?.length && /* @__PURE__ */ n(B, { size: "full-width", label:
|
|
35477
|
-
!!e.principals.EMAIL?.length && /* @__PURE__ */ f(B, { className: "big-formfield", label:
|
|
35484
|
+
!!e.principals.USERNAME?.length && /* @__PURE__ */ n(B, { size: "full-width", label: D, "data-testid": "property-username", children: m.username }),
|
|
35485
|
+
!!e.principals.EMAIL?.length && /* @__PURE__ */ f(B, { className: "big-formfield", label: w, "data-testid": "property-email", children: [
|
|
35478
35486
|
/* @__PURE__ */ n("span", { children: m.email }),
|
|
35479
35487
|
(!Ut() || fK(e)) && /* @__PURE__ */ n(
|
|
35480
35488
|
N,
|
|
@@ -35512,7 +35520,7 @@ const uK = {
|
|
|
35512
35520
|
me,
|
|
35513
35521
|
{
|
|
35514
35522
|
"data-testid": "property-username",
|
|
35515
|
-
label:
|
|
35523
|
+
label: D,
|
|
35516
35524
|
value: E,
|
|
35517
35525
|
onChange: T,
|
|
35518
35526
|
onBlur: I,
|
|
@@ -35530,7 +35538,7 @@ const uK = {
|
|
|
35530
35538
|
me,
|
|
35531
35539
|
{
|
|
35532
35540
|
"data-testid": "property-email",
|
|
35533
|
-
label:
|
|
35541
|
+
label: w,
|
|
35534
35542
|
value: E,
|
|
35535
35543
|
onChange: T,
|
|
35536
35544
|
onBlur: I,
|
|
@@ -35798,9 +35806,9 @@ const CK = {
|
|
|
35798
35806
|
} = y, C = () => {
|
|
35799
35807
|
p.push("/profile/account");
|
|
35800
35808
|
};
|
|
35801
|
-
function
|
|
35802
|
-
return v(t, (
|
|
35803
|
-
console.error("form validation error",
|
|
35809
|
+
function D() {
|
|
35810
|
+
return v(t, (w) => {
|
|
35811
|
+
console.error("form validation error", w);
|
|
35804
35812
|
})();
|
|
35805
35813
|
}
|
|
35806
35814
|
return /* @__PURE__ */ n(Et, { ...y, children: /* @__PURE__ */ f(ne, { show: S, children: [
|
|
@@ -35951,7 +35959,7 @@ const CK = {
|
|
|
35951
35959
|
"data-testid": "save-profile-changes-button",
|
|
35952
35960
|
primary: !0,
|
|
35953
35961
|
type: "submit",
|
|
35954
|
-
onClick:
|
|
35962
|
+
onClick: D,
|
|
35955
35963
|
disabled: S,
|
|
35956
35964
|
children: /* @__PURE__ */ n(h, { i18nKey: "general.actions.save", children: "Save" })
|
|
35957
35965
|
}
|
|
@@ -35972,7 +35980,7 @@ const CK = {
|
|
|
35972
35980
|
onShowWelcomeModalAtStartChange: d,
|
|
35973
35981
|
onDefaultSearchModeChange: u
|
|
35974
35982
|
}) => {
|
|
35975
|
-
const { resetAuthenticatedUser: p, setAuthenticatedUser: m, principal: g, paginationSettings: y } = O(Ie), { instance: A } = qv(), { userProperties: S } = Ne(), v = Se(), C = S.some((U) => U.key === "_showWelcomeModal"), [
|
|
35983
|
+
const { resetAuthenticatedUser: p, setAuthenticatedUser: m, principal: g, paginationSettings: y } = O(Ie), { instance: A } = qv(), { userProperties: S } = Ne(), v = Se(), C = S.some((U) => U.key === "_showWelcomeModal"), [D, w] = b(!1), { t: P } = G(), E = Ct();
|
|
35976
35984
|
async function T(U, M) {
|
|
35977
35985
|
Ut() ? await aK(U, A) : await iK(U, M);
|
|
35978
35986
|
}
|
|
@@ -35981,7 +35989,7 @@ const CK = {
|
|
|
35981
35989
|
{
|
|
35982
35990
|
user: e,
|
|
35983
35991
|
onSubmit: async (U) => {
|
|
35984
|
-
|
|
35992
|
+
D && await K1(), Y0(s), Q0(a), lo("uiConfigurations/searchmode", r), s || X0([]), C && (U.properties = { ...U.properties, _showWelcomeModal: i });
|
|
35985
35993
|
const M = bA(e, U);
|
|
35986
35994
|
return yA(e, M, !0).then(() => {
|
|
35987
35995
|
m(g, M, y), sU(M), v.push("/profile/account"), de(/* @__PURE__ */ n(h, { i18nKey: "form.save.success", children: "Saved successfully" }));
|
|
@@ -35993,7 +36001,7 @@ const CK = {
|
|
|
35993
36001
|
showWelcomeModalAtStart: i,
|
|
35994
36002
|
defaultSearchMode: r,
|
|
35995
36003
|
onDeleteStartPage: () => {
|
|
35996
|
-
o(),
|
|
36004
|
+
o(), w(!0);
|
|
35997
36005
|
},
|
|
35998
36006
|
onReleaseNotesSubscriptionChange: l,
|
|
35999
36007
|
onShowUserDocumentationChange: c,
|
|
@@ -37116,12 +37124,12 @@ function vB(e) {
|
|
|
37116
37124
|
tv(v),
|
|
37117
37125
|
Le(["READ_GRANTED_ACCESS"]) ? nv(v) : [],
|
|
37118
37126
|
sv(v)
|
|
37119
|
-
]).then(([C,
|
|
37127
|
+
]).then(([C, D, w, P]) => {
|
|
37120
37128
|
Bt.setContext(C), t({
|
|
37121
37129
|
type: "string",
|
|
37122
37130
|
value: C.displayName || C.name,
|
|
37123
37131
|
pathname: a
|
|
37124
|
-
}), u(C), m(
|
|
37132
|
+
}), u(C), m(D), y(w), S(P), o(!0);
|
|
37125
37133
|
}).catch((C) => {
|
|
37126
37134
|
console.error("UserGroupDetailContainer: error fetching user group: ", C), c(!0);
|
|
37127
37135
|
});
|
|
@@ -38033,10 +38041,10 @@ const c5 = (e) => ({
|
|
|
38033
38041
|
const S = BA(), v = [...i, S];
|
|
38034
38042
|
r(v), d(S);
|
|
38035
38043
|
}, p = (S, v) => {
|
|
38036
|
-
const C = [...i].filter((
|
|
38044
|
+
const C = [...i].filter((D) => S.id !== D.id);
|
|
38037
38045
|
if (v) {
|
|
38038
|
-
const
|
|
38039
|
-
s(
|
|
38046
|
+
const D = [.../* @__PURE__ */ new Set([...e, ...S.requiredAssetGroups])];
|
|
38047
|
+
s(D);
|
|
38040
38048
|
}
|
|
38041
38049
|
C.push(S), r(C), l(S), d(void 0), a(C);
|
|
38042
38050
|
}, m = (S) => {
|
|
@@ -38591,7 +38599,7 @@ var P5 = function(t) {
|
|
|
38591
38599
|
})));
|
|
38592
38600
|
};
|
|
38593
38601
|
const _5 = Qe({
|
|
38594
|
-
loader: () => import("./UserGroupTheme-
|
|
38602
|
+
loader: () => import("./UserGroupTheme-CAHBWb9Q.js")
|
|
38595
38603
|
}), R5 = {
|
|
38596
38604
|
relativePath: "theme",
|
|
38597
38605
|
label: {
|
|
@@ -38781,7 +38789,7 @@ const _5 = Qe({
|
|
|
38781
38789
|
}), {
|
|
38782
38790
|
formState: { dirtyFields: g, isSubmitting: y, errors: A, isSubmitted: S, isValid: v },
|
|
38783
38791
|
handleSubmit: C
|
|
38784
|
-
} = m,
|
|
38792
|
+
} = m, D = r.some((R) => R.key.startsWith("_")), w = Object.keys(g).length > 0;
|
|
38785
38793
|
async function P() {
|
|
38786
38794
|
await C(
|
|
38787
38795
|
async (R) => {
|
|
@@ -38834,14 +38842,14 @@ const _5 = Qe({
|
|
|
38834
38842
|
/* @__PURE__ */ f(Ge, { dividing: !0, children: [
|
|
38835
38843
|
/* @__PURE__ */ n(N, { primary: !0, onClick: P, disabled: y, children: /* @__PURE__ */ n(h, { i18nKey: "general.actions.save", children: "Save" }) }),
|
|
38836
38844
|
/* @__PURE__ */ n(N, { disabled: y, onClick: s, children: /* @__PURE__ */ n(h, { i18nKey: "general.actions.cancel", children: "Cancel" }) }),
|
|
38837
|
-
|
|
38845
|
+
D && /* @__PURE__ */ n(N, { naked: !0, disabled: y, onClick: E, children: /* @__PURE__ */ n(h, { i18nKey: "form.toggleHiddenProperties", children: "Toggle hidden properties" }) })
|
|
38838
38846
|
] }),
|
|
38839
38847
|
A.accountGroupIds && /* @__PURE__ */ n("span", { className: "error-message", children: A.accountGroupIds?.message }),
|
|
38840
38848
|
/* @__PURE__ */ n(
|
|
38841
38849
|
kt,
|
|
38842
38850
|
{
|
|
38843
38851
|
message: (R) => R.pathname.includes("edit") || R.pathname.includes("create") ? !0 : "",
|
|
38844
|
-
when:
|
|
38852
|
+
when: w && !y
|
|
38845
38853
|
}
|
|
38846
38854
|
)
|
|
38847
38855
|
] }) });
|
|
@@ -39478,4 +39486,4 @@ export {
|
|
|
39478
39486
|
Ie as y,
|
|
39479
39487
|
bS as z
|
|
39480
39488
|
};
|
|
39481
|
-
//# sourceMappingURL=setTitle-
|
|
39489
|
+
//# sourceMappingURL=setTitle-CjnK8p-J.js.map
|