@deviceinsight/ng-ui-scale-lib 10.0.3 → 10.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccessEditModal-D6QiceL7.js → AccessEditModal--CrrHDx-.js} +2 -2
- package/dist/{AccessEditModal-D6QiceL7.js.map → AccessEditModal--CrrHDx-.js.map} +1 -1
- package/dist/{BundleManagementContainer-DoqJg-vc.js → BundleManagementContainer-pF44tpPR.js} +2 -2
- package/dist/{BundleManagementContainer-DoqJg-vc.js.map → BundleManagementContainer-pF44tpPR.js.map} +1 -1
- package/dist/{BundlesContainer-BhglxtAR.js → BundlesContainer-CZ70n2vt.js} +3 -3
- package/dist/{BundlesContainer-BhglxtAR.js.map → BundlesContainer-CZ70n2vt.js.map} +1 -1
- package/dist/{DatapointImport-CqvusHwg.js → DatapointImport-D5MqlPlb.js} +2 -2
- package/dist/{DatapointImport-CqvusHwg.js.map → DatapointImport-D5MqlPlb.js.map} +1 -1
- package/dist/{FileUploadInput-mAQ_6smW.js → FileUploadInput-gnfjNZsT.js} +2 -2
- package/dist/{FileUploadInput-mAQ_6smW.js.map → FileUploadInput-gnfjNZsT.js.map} +1 -1
- package/dist/{Files-YvPzdFRu.js → Files-B7r5BhB0.js} +3 -3
- package/dist/{Files-YvPzdFRu.js.map → Files-B7r5BhB0.js.map} +1 -1
- package/dist/{GlobalPowerBiReports-DFAcffGd.js → GlobalPowerBiReports-BFCqFXrG.js} +2 -2
- package/dist/{GlobalPowerBiReports-DFAcffGd.js.map → GlobalPowerBiReports-BFCqFXrG.js.map} +1 -1
- package/dist/{JsonSettingWidget-JCcJbhxk.js → JsonSettingWidget-Dmoshz7m.js} +2 -2
- package/dist/{JsonSettingWidget-JCcJbhxk.js.map → JsonSettingWidget-Dmoshz7m.js.map} +1 -1
- package/dist/{LicensesEditPage-RQkcqxud.js → LicensesEditPage-C8vTjupQ.js} +2 -2
- package/dist/{LicensesEditPage-RQkcqxud.js.map → LicensesEditPage-C8vTjupQ.js.map} +1 -1
- package/dist/{LicensesList-B6keazgL.js → LicensesList-yByygj9U.js} +2 -2
- package/dist/{LicensesList-B6keazgL.js.map → LicensesList-yByygj9U.js.map} +1 -1
- package/dist/{PropertiesEditPage-zDsiYApw.js → PropertiesEditPage-W9i-93un.js} +2 -2
- package/dist/{PropertiesEditPage-zDsiYApw.js.map → PropertiesEditPage-W9i-93un.js.map} +1 -1
- package/dist/{PropertiesList-stWeTuRv.js → PropertiesList-BoqIna7m.js} +2 -2
- package/dist/{PropertiesList-stWeTuRv.js.map → PropertiesList-BoqIna7m.js.map} +1 -1
- package/dist/{TemplateEditPage-C4YX7g3F.js → TemplateEditPage-D9OFIKqk.js} +4 -4
- package/dist/{TemplateEditPage-C4YX7g3F.js.map → TemplateEditPage-D9OFIKqk.js.map} +1 -1
- package/dist/{TemplateTextInput-BEQ-Mm5u.js → TemplateTextInput-prp5cWrV.js} +2 -2
- package/dist/{TemplateTextInput-BEQ-Mm5u.js.map → TemplateTextInput-prp5cWrV.js.map} +1 -1
- package/dist/{TemplatesListPage-ChLNNZuy.js → TemplatesListPage-7VM9CVDI.js} +3 -3
- package/dist/{TemplatesListPage-ChLNNZuy.js.map → TemplatesListPage-7VM9CVDI.js.map} +1 -1
- package/dist/{UserGroupAssignments-Ba1VwhcA.js → UserGroupAssignments-Ce4pvexW.js} +2 -2
- package/dist/{UserGroupAssignments-Ba1VwhcA.js.map → UserGroupAssignments-Ce4pvexW.js.map} +1 -1
- package/dist/{UserGroupTheme-0NnVO28I.js → UserGroupTheme-CXQyYGco.js} +2 -2
- package/dist/{UserGroupTheme-0NnVO28I.js.map → UserGroupTheme-CXQyYGco.js.map} +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/{setTitle-DenTN7-s.js → setTitle-DZyXA3i8.js} +195 -181
- package/dist/setTitle-DZyXA3i8.js.map +1 -0
- package/package.json +61 -61
- package/dist/setTitle-DenTN7-s.js.map +0 -1
|
@@ -5,14 +5,14 @@ import zA from "i18next-http-backend";
|
|
|
5
5
|
import { messageBoxError as H, messageBoxSuccess as de, RouteLink as Fe, DateInput as Rp, SelectWithSearch as Je, SelectWithSearchAsync as fs, Reactable as Di, nanoid10 as pt, ContentHeader as le, messageBoxDismissGroup as st, ReactableWithClientSidePagination as Re, Chart as WA, Slider as ea, MultiMenu as Mn, MultiMenuItem as dt, GridColorPicker as Rn, ColorPicker as ms, ImageUpload as Op, uuidV4 as at, PeriodPicker as Es, SvgImage as HA, GradientColorPicker as ta, InfoBox as wi, validateSvg as qA, getSvgElement as jA, FileUpload as _l, getMutableNodeList as ZA, DateTimeInput as YA, RouteTabs as Ni, messageBoxInfo as QA, messageBoxWarn as XA, withPrompt as JA, Pagination as eb } from "@deviceinsight/ng-ui-components";
|
|
6
6
|
import { Bubble as ve, Modal as ge, Button as N, SpinnerContainer as ne, Icon as W, Label as Ue, Checkbox as be, Popup as Ii, Spinner as ke, Accordion as Pi, AccordionItem as dn, ButtonRow as Ge, Tabs as Ds, useConfirm as St, withConfirm as kp } from "@deviceinsight/ng-ui-basic-components";
|
|
7
7
|
import { useTranslation as tb, Trans as on } from "react-i18next";
|
|
8
|
-
import { omit as Ze, isEqual as $e, memoize as yn, isEmpty as _n, partition as nb, cloneDeep as da, camelCase as ua, uniqBy as ha, uniq as pa, debounce as
|
|
8
|
+
import { omit as Ze, isEqual as $e, memoize as yn, isEmpty as _n, partition as nb, cloneDeep as da, camelCase as ua, uniqBy as ha, uniq as pa, debounce as Qt, flatten as Kn, difference as Gp, sortBy as Rl, flatMap as Ol, merge as fa, differenceWith as ld, groupBy as ws, startCase as ro, range as kl, update as cd, xor as sb, set as Hs, orderBy as Lp, lowerCase as dd, capitalize as ab } from "lodash";
|
|
9
9
|
import On from "i18next";
|
|
10
10
|
import { useLocation as nt, Link as ce, Prompt as Ot, useHistory as Se, Redirect as _i, withRouter as ma, Switch as ib, Route as ud, useParams as Ns, MemoryRouter as rb } from "react-router-dom";
|
|
11
11
|
import Mt, { isAxiosError as ob } from "axios";
|
|
12
|
-
import { useForm as je, Controller as te, useController as
|
|
12
|
+
import { useForm as je, Controller as te, useController as en, useFormContext as Ee, FormProvider as Tt, useFieldArray as Up, useWatch as lb } from "react-hook-form";
|
|
13
13
|
import ie from "classnames";
|
|
14
14
|
import * as Pt from "@deviceinsight/ng-ui-api-client";
|
|
15
|
-
import { readAzureB2cConfiguration as xp, setAxios as Vp, refreshToken as cb, revokeAccessToken as db, revokeRefreshToken as ub, deleteStartPage as hb, checkStartPage as pb, readStartPage as fb, writeStartPage as mb, fetchRoleByIds as Gl, searchAssetGroups as Bt, fetchAssetGroupById as Bn, writeAdvancedSearchDefaultProperties as gb, readAdvancedSearchDefaultProperties as yb, fetchShadowKeys as Ab, fetchAssetsByUrn as Mp, searchUsers as Ri, searchUserGroups as
|
|
15
|
+
import { readAzureB2cConfiguration as xp, setAxios as Vp, refreshToken as cb, revokeAccessToken as db, revokeRefreshToken as ub, deleteStartPage as hb, checkStartPage as pb, readStartPage as fb, writeStartPage as mb, fetchRoleByIds as Gl, searchAssetGroups as Bt, fetchAssetGroupById as Bn, writeAdvancedSearchDefaultProperties as gb, readAdvancedSearchDefaultProperties as yb, fetchShadowKeys as Ab, fetchAssetsByUrn as Mp, searchUsers as Ri, searchUserGroups as tn, searchAssets as An, getAncestorGroups as Fn, fetchAssetGroups as Ll, updateAssetGroupDryRun as bb, createAssetGroupDryRun as vb, createAssetGroup as Sb, fetchDatapointsByAssetId as Tb, readAccountGroupObjectBasedOnMembership as Kp, writeAccountGroupObject as Bp, readAssetDefinitionObject as ss, readAssetGroupObject as Gt, readAssetObject as kn, readTenantObject as gs, deleteAssetDefinitionObject as Fp, deleteAssetGroupObject as na, deleteAssetObject as Ul, deleteTenantObject as $p, writeAssetDefinitionObject as zp, writeAssetGroupObject as sa, writeAssetObject as xl, writeTenantObject as Ys, fetchAggregation as Cb, fetchRoles as Vl, fetchAuthoritiesOfRole as Eb, createRoleWithLicense as Db, createRole as wb, setAuthoritiesOfRole as hd, updateRole as Nb, deleteRole as Ib, fetchUsers as Pb, fetchAssetDefinition as Oi, queryLastDatapointsValue as _b, queryDatapointValues as Wp, fetchAssets as Ml, fetchAssetWithShadowById as Is, searchAssetsByGeoBoundingBox as pd, getDatapointValuesByQueryId as Rb, DataTypeToAdxDistinctDatapointType as Ob, getStructuredDatapointPropertyNodes as kb, getStructuredDatapointDistinctValues as Gb, getDatapointValuesByFilters as Lb, fetchAssetDefinitions as Hp, fetchAssetByUrn as Kl, unassignAssetsByIdsDryRun as Ub, unassignAssetsByIds as xb, unassignAssetsByQueryDryRun as Vb, unassignAssetsByQuery as Mb, assignAssetsByQueryDryRun as Kb, assignAssetsByQuery as Bb, assignAssetsByIdsDryRun as Fb, assignAssetsByIds as $b, searchGateways as zb, getAssetGroupHierarchies as Wb, updateAssetGroup as Hb, fetchGrantedAccessesForAssetGroup as qb, fetchUserGroupById as ga, deleteAssetGroup as jb, deleteAssetGroupDryRun as Zb, updateAssetGroupIdsDryRun as Yb, createAssetDryRun as Qb, createAsset as Xb, fetchGatewayById as fd, fetchGroupsByIds as ni, fetchUnits as qp, updateDatapointThresholds as Jb, updateDatapointUnit as e0, addUnit as jp, createDatapoint as t0, deleteDatapoint as n0, fetchAssetGroupDefinitions as s0, assignGateway as a0, unassignGateway as i0, updateAsset as r0, updateAssetGroupIds as o0, deleteAsset as Zp, readAccountObject as Yp, writeAccountObject as oo, searchAssetsByProperty as l0, fetchLicenses as c0, fetchAuthorities as d0, readAccountGroupObject as u0, deleteAccountGroupObject as h0, readUIConfigurations as p0, writeUIConfigurations as f0, updateAssetDefinition as m0, createAssetDefinition as g0, deleteAssetDefinitionDatapoint as y0, createAssetDefinitionDatapoints as A0, updateAssetDefinitionDatapoint as b0, deleteAssetDefinition as v0, updateAssetGroupDefinition as S0, createAssetGroupDefinition as T0, deleteAssetGroupDefinition as C0, fetchAuditLogDifferences as E0, fetchUserByAccountNumber as Qp, fetchAuditLogEntities as D0, fetchAuthorizationServers as w0, fetchAuthorizationServerRules as N0, deleteAuthorizationServerRule as I0, deleteAuthorizationServer as P0, createOrUpdateAuthorizationServer as Xp, createOrUpdateAuthorizationServerRule as Jp, fetchAuthorizationServerRule as _0, readEULA as ef, readEULAList as Bl, deleteEULA as R0, writeEULA as O0, readReleaseNotesSubscription as k0, readShowUserDocumentation as G0, updateUser as L0, updateUserGroupsOfUser as U0, updateRolesOfUser as tf, updateMe as x0, triggerEmailChange as V0, triggerPasswordReset as M0, delete2FADevice as nf, deleteMyAccount as K0, writeReleaseNotesSubscription as B0, writeShowUserDocumentation as F0, writeReleaseNotesVersionsViewed as $0, fetchUserGroups as z0, createUserGroup as W0, updateRoleIdsOfUserGroup as sf, fetchAccesses as H0, fetchGrantedAccesses as q0, fetchAccountGroupAccesses as j0, assignUsersToUserGroupByIds as Z0, assignUsersToUserGroupByQuery as Y0, unassignUsersFromUserGroupByIds as Q0, unassignUsersFromUserGroupByQuery as X0, deleteUserGroup as J0, updateUserGroup as ev, addAccess as tv, deleteAccess as nv, addAccountGroupAccess as sv, deleteAccountGroupAccess as av, deleteGrantedAccess as iv, updateGrantedAccess as rv, createGrantedAccess as ov, createUser as lv, inviteUser as cv, deleteUser as dv, sendUx4iotGrantRequestToEndpoint as uv } from "@deviceinsight/ng-ui-api-client";
|
|
16
16
|
import { zodResolver as $n } from "@hookform/resolvers/zod";
|
|
17
17
|
import J from "dayjs";
|
|
18
18
|
import yt from "keyboardjs";
|
|
@@ -316,7 +316,7 @@ const jv = 64, Zv = (e, t = jv) => {
|
|
|
316
316
|
if (!t || !t.length)
|
|
317
317
|
throw Error(`Tenant UI Configuration: missing env variable '${e}'`);
|
|
318
318
|
return t;
|
|
319
|
-
}, Af = "#1a8ed3", e1 = "48.137154,11.576124",
|
|
319
|
+
}, Af = "#1a8ed3", e1 = "48.137154,11.576124", qt = (e) => typeof e == "boolean" ? e : e ? !!JSON.parse(e) : !1, Ka = (e, t, s) => {
|
|
320
320
|
if (t != null) {
|
|
321
321
|
const a = parseInt(t, 10);
|
|
322
322
|
return isNaN(a) ? (console.error(
|
|
@@ -377,7 +377,7 @@ class t1 {
|
|
|
377
377
|
return Q("REACT_APP_TENANT_CONFIG_URL");
|
|
378
378
|
}
|
|
379
379
|
isTenantShowingAssetQRCodes() {
|
|
380
|
-
return !
|
|
380
|
+
return !qt(Q("REACT_APP_HIDE_ASSET_QR_CODE"));
|
|
381
381
|
}
|
|
382
382
|
getTenant() {
|
|
383
383
|
return ct("REACT_APP_TENANT");
|
|
@@ -416,7 +416,7 @@ class t1 {
|
|
|
416
416
|
return t === "TERMS_ACCEPTANCE_PENDING" || t === "ACTIVE" ? t : "ACTIVE";
|
|
417
417
|
}
|
|
418
418
|
isPubSubStompDebuggingEnabled() {
|
|
419
|
-
return
|
|
419
|
+
return qt(Q("REACT_APP_PUBSUB_STOMP_DEBUGGING"));
|
|
420
420
|
}
|
|
421
421
|
getMainLocizeProject() {
|
|
422
422
|
return {
|
|
@@ -446,7 +446,7 @@ class t1 {
|
|
|
446
446
|
return Ka(t, s, 5e3);
|
|
447
447
|
}
|
|
448
448
|
hasLegalPages() {
|
|
449
|
-
return
|
|
449
|
+
return qt(Q("REACT_APP_LEGAL_PAGES"));
|
|
450
450
|
}
|
|
451
451
|
getAppFooter() {
|
|
452
452
|
return Q("REACT_APP_FOOTER");
|
|
@@ -494,6 +494,9 @@ class t1 {
|
|
|
494
494
|
`Tenant UI Configuration: The minimum value for ${t} is ${i}, using default value ${a}!`
|
|
495
495
|
), a) : o;
|
|
496
496
|
}
|
|
497
|
+
getTrendPreferOutliers() {
|
|
498
|
+
return qt(Q("REACT_APP_TREND_PREFER_OUTLIERS") ?? !1);
|
|
499
|
+
}
|
|
497
500
|
getAccountCreationPrinciple() {
|
|
498
501
|
const t = Q("REACT_APP_ACCOUNT_CREATION_PRINCIPLE");
|
|
499
502
|
switch (t) {
|
|
@@ -554,7 +557,7 @@ class t1 {
|
|
|
554
557
|
return a < 1 ? 20 : a;
|
|
555
558
|
}
|
|
556
559
|
getDisplayWelcomeScreen() {
|
|
557
|
-
return
|
|
560
|
+
return qt(Q("REACT_APP_DISPLAY_WELCOME_SCREEN"));
|
|
558
561
|
}
|
|
559
562
|
getGitCommitShaShort() {
|
|
560
563
|
return Q("REACT_APP_COMMIT_SHORT_SHA");
|
|
@@ -583,13 +586,13 @@ class t1 {
|
|
|
583
586
|
}
|
|
584
587
|
}
|
|
585
588
|
isFavoritesEnabled() {
|
|
586
|
-
return
|
|
589
|
+
return qt(Q("REACT_APP_FAVORITES_ENABLED") ?? !0);
|
|
587
590
|
}
|
|
588
591
|
isHistoryEnabled() {
|
|
589
|
-
return
|
|
592
|
+
return qt(Q("REACT_APP_HISTORY_ENABLED") ?? !0);
|
|
590
593
|
}
|
|
591
594
|
isDatapointValuesUseAdx() {
|
|
592
|
-
return
|
|
595
|
+
return qt(Q("REACT_APP_DATAPOINT_VALUES_USE_ADX") ?? !1);
|
|
593
596
|
}
|
|
594
597
|
getDashboardLabels() {
|
|
595
598
|
return Q("REACT_APP_DASHBOARD_LABELS") ?? [];
|
|
@@ -598,7 +601,7 @@ class t1 {
|
|
|
598
601
|
return Q("REACT_APP_DEFAULT_DASHBOARD_LABEL");
|
|
599
602
|
}
|
|
600
603
|
isReleaseNotesHidden() {
|
|
601
|
-
return
|
|
604
|
+
return qt(Q("REACT_APP_HIDE_RELEASE_NOTES") ?? !1);
|
|
602
605
|
}
|
|
603
606
|
getDefaultSearchMode() {
|
|
604
607
|
return Q("READ_APP_DEFAULT_SEARCH_MODE") || "full";
|
|
@@ -858,7 +861,7 @@ function s1(e) {
|
|
|
858
861
|
return e.displayName || e.name || // @ts-expect-error
|
|
859
862
|
(typeof e == "string" && e.length > 0 ? e : "Unknown");
|
|
860
863
|
}
|
|
861
|
-
function
|
|
864
|
+
function nn(e) {
|
|
862
865
|
return function(s) {
|
|
863
866
|
const a = (i) => {
|
|
864
867
|
const { t: r, i18n: o, ready: l } = G(e), c = { ...i, t: r, i18n: o, tReady: l };
|
|
@@ -904,7 +907,7 @@ function a1() {
|
|
|
904
907
|
throw new Error("inixAxiosMsal: globalClientId not properly initialized!");
|
|
905
908
|
return uo;
|
|
906
909
|
}
|
|
907
|
-
const i1 = "10.
|
|
910
|
+
const i1 = "10.1.1", r1 = {
|
|
908
911
|
version: i1
|
|
909
912
|
}, o1 = () => is().PROD, g$ = () => r1.version, l1 = [
|
|
910
913
|
/\/v2\/oauth\/token$/,
|
|
@@ -1504,7 +1507,7 @@ const J1 = ({ pathname: e, custom: t, t: s }) => {
|
|
|
1504
1507
|
}
|
|
1505
1508
|
const c = window.nguiCiModeActive, d = /* @__PURE__ */ n(W, { documentation: !0, large: !0 });
|
|
1506
1509
|
return c ? /* @__PURE__ */ n(ve, { content: "documentation:" + r, children: /* @__PURE__ */ n(N, { naked: !0, disabled: !0, "data-testid": "documentation-button", children: d }) }) : s(o, { defaultValue: "UNKNOWN" }) !== "UNKNOWN" ? /* @__PURE__ */ n(N, { naked: !0, onClick: l, "data-testid": "documentation-button", children: d }) : null;
|
|
1507
|
-
}, Et =
|
|
1510
|
+
}, Et = nn()(J1), eS = ({ pathname: e }) => {
|
|
1508
1511
|
const { assetGroupDefinitions: t } = O(we);
|
|
1509
1512
|
return _(() => {
|
|
1510
1513
|
async function s() {
|
|
@@ -1806,7 +1809,7 @@ function ze({
|
|
|
1806
1809
|
const c = Ze(r, ["data-testid"]);
|
|
1807
1810
|
return /* @__PURE__ */ n(B, { ...c, children: /* @__PURE__ */ n("select", { ...r, onChange: l, ref: e, value: i ?? "", children: o() }) });
|
|
1808
1811
|
}
|
|
1809
|
-
const
|
|
1812
|
+
const Xt = Pl((e, t) => {
|
|
1810
1813
|
const {
|
|
1811
1814
|
value: s,
|
|
1812
1815
|
onChange: a,
|
|
@@ -1865,7 +1868,7 @@ function aa(e) {
|
|
|
1865
1868
|
Object.entries(e).map(([t, s]) => [hn(t), s])
|
|
1866
1869
|
);
|
|
1867
1870
|
}
|
|
1868
|
-
function
|
|
1871
|
+
function Jt(e) {
|
|
1869
1872
|
return Object.fromEntries(
|
|
1870
1873
|
Object.entries(e ?? {}).map(([t, s]) => [pS(t), s])
|
|
1871
1874
|
);
|
|
@@ -1876,7 +1879,7 @@ const fS = (e, t) => e == null || typeof e == "number" && isNaN(e) ? t === "BOOL
|
|
|
1876
1879
|
errors: { properties: r }
|
|
1877
1880
|
},
|
|
1878
1881
|
field: { value: o, onChange: l, onBlur: c }
|
|
1879
|
-
} =
|
|
1882
|
+
} = en({ name: `properties.${hn(e)}` }), { t: d } = G(), u = hn(e);
|
|
1880
1883
|
return {
|
|
1881
1884
|
label: d(Be(e), { defaultValue: e }),
|
|
1882
1885
|
onChange: l,
|
|
@@ -1916,7 +1919,7 @@ const fS = (e, t) => e == null || typeof e == "number" && isNaN(e) ? t === "BOOL
|
|
|
1916
1919
|
case "GEO":
|
|
1917
1920
|
return /* @__PURE__ */ n(Zl, { ...s });
|
|
1918
1921
|
case "BOOLEAN":
|
|
1919
|
-
return /* @__PURE__ */ n(
|
|
1922
|
+
return /* @__PURE__ */ n(Xt, { ...s, size: "full-width" });
|
|
1920
1923
|
default:
|
|
1921
1924
|
throw Error(`property type ${e.type} not supported`);
|
|
1922
1925
|
}
|
|
@@ -1977,7 +1980,7 @@ const vS = (e, t, s, a) => {
|
|
|
1977
1980
|
case "DATE":
|
|
1978
1981
|
return xe(e, { format: "L" });
|
|
1979
1982
|
case "BOOLEAN":
|
|
1980
|
-
return /* @__PURE__ */ n(
|
|
1983
|
+
return /* @__PURE__ */ n(Xt, { disabled: !0, value: e, onChange: () => {
|
|
1981
1984
|
} });
|
|
1982
1985
|
default:
|
|
1983
1986
|
throw Error(`property type ${t.type} not supported`);
|
|
@@ -2694,7 +2697,7 @@ function qS({ property: e, label: t, onDelete: s, onChange: a }) {
|
|
|
2694
2697
|
)
|
|
2695
2698
|
] });
|
|
2696
2699
|
}
|
|
2697
|
-
const jS =
|
|
2700
|
+
const jS = nn()(qS), Xl = {};
|
|
2698
2701
|
function Jl(e, t) {
|
|
2699
2702
|
Xl[e] = t;
|
|
2700
2703
|
}
|
|
@@ -3843,7 +3846,7 @@ function Xd({
|
|
|
3843
3846
|
},
|
|
3844
3847
|
[s, c]
|
|
3845
3848
|
), { pathname: Y } = nt(), ue = F(() => Y.endsWith("/list") || Y.endsWith("/map"), [Y]), re = F(
|
|
3846
|
-
() =>
|
|
3849
|
+
() => Qt((ye, Xe) => {
|
|
3847
3850
|
ue && q(ye, Xe);
|
|
3848
3851
|
}, 500),
|
|
3849
3852
|
[q, ue]
|
|
@@ -4382,7 +4385,7 @@ const jT = (e) => e.target.tagName && ["INPUT", "SELECT", "TEXTAREA"].includes(e
|
|
|
4382
4385
|
};
|
|
4383
4386
|
class YT extends x.Component {
|
|
4384
4387
|
constructor() {
|
|
4385
|
-
super(...arguments), this.state = { hasFocus: !1, suggestionsQuery: "", isEnterEnabled: !0 }, this.keyboardEventEmitter = new rf(), this.setSuggestionsQuery =
|
|
4388
|
+
super(...arguments), this.state = { hasFocus: !1, suggestionsQuery: "", isEnterEnabled: !0 }, this.keyboardEventEmitter = new rf(), this.setSuggestionsQuery = Qt((t, s) => {
|
|
4386
4389
|
this.setState({
|
|
4387
4390
|
suggestionsQuery: s === "assets" ? ac(t) : t
|
|
4388
4391
|
});
|
|
@@ -4451,7 +4454,7 @@ class YT extends x.Component {
|
|
|
4451
4454
|
] });
|
|
4452
4455
|
}
|
|
4453
4456
|
}
|
|
4454
|
-
const QT =
|
|
4457
|
+
const QT = nn()(YT);
|
|
4455
4458
|
class XT extends x.Component {
|
|
4456
4459
|
constructor() {
|
|
4457
4460
|
super(...arguments), this.state = {
|
|
@@ -4580,7 +4583,7 @@ class XT extends x.Component {
|
|
|
4580
4583
|
return this.renderSearch(this.handleChangeQuery, this.handleSubmitQuery);
|
|
4581
4584
|
}
|
|
4582
4585
|
}
|
|
4583
|
-
const rc =
|
|
4586
|
+
const rc = nn()(
|
|
4584
4587
|
Kf(XT)
|
|
4585
4588
|
), JT = /* @__PURE__ */ f(
|
|
4586
4589
|
"div",
|
|
@@ -4664,7 +4667,7 @@ let ot = class extends tt {
|
|
|
4664
4667
|
isSearching: !1
|
|
4665
4668
|
});
|
|
4666
4669
|
});
|
|
4667
|
-
}, this.handleChangeQuery =
|
|
4670
|
+
}, this.handleChangeQuery = Qt((s) => {
|
|
4668
4671
|
const i = { ...this.state.paginationSettings, page: 0 };
|
|
4669
4672
|
this.setState(
|
|
4670
4673
|
{
|
|
@@ -4956,7 +4959,7 @@ const $i = (e, t, s) => (a) => e(
|
|
|
4956
4959
|
number: 0,
|
|
4957
4960
|
sort: []
|
|
4958
4961
|
};
|
|
4959
|
-
}, dC = $i(Bt, "id"), uC = $i(
|
|
4962
|
+
}, dC = $i(Bt, "id"), uC = $i(tn, "id");
|
|
4960
4963
|
function hC(e) {
|
|
4961
4964
|
return wa(e, "number", oC);
|
|
4962
4965
|
}
|
|
@@ -5130,7 +5133,7 @@ const Tn = async (e, t) => {
|
|
|
5130
5133
|
"data-testid": "set-as-gateway-button",
|
|
5131
5134
|
children: /* @__PURE__ */ f(h, { i18nKey: "assetGroups.form.parent.setAs", children: [
|
|
5132
5135
|
"Set ",
|
|
5133
|
-
{
|
|
5136
|
+
{ assetGroupName: u?.displayName || "" },
|
|
5134
5137
|
" as Parent Asset Group"
|
|
5135
5138
|
] })
|
|
5136
5139
|
}
|
|
@@ -5144,7 +5147,7 @@ const Tn = async (e, t) => {
|
|
|
5144
5147
|
function vC({ onChange: e, disabled: t }) {
|
|
5145
5148
|
const { assetGroupDefinitions: s } = O(we), {
|
|
5146
5149
|
field: { value: a, onChange: i, onBlur: r }
|
|
5147
|
-
} =
|
|
5150
|
+
} = en({
|
|
5148
5151
|
name: "definitionId"
|
|
5149
5152
|
});
|
|
5150
5153
|
return /* @__PURE__ */ n(
|
|
@@ -5323,8 +5326,8 @@ const GC = (e, t, s) => {
|
|
|
5323
5326
|
if (s && !$e(i, a)) {
|
|
5324
5327
|
const p = {
|
|
5325
5328
|
...a,
|
|
5326
|
-
properties:
|
|
5327
|
-
staticProperties:
|
|
5329
|
+
properties: Jt(a.properties ?? {}),
|
|
5330
|
+
staticProperties: Jt(a.staticProperties ?? {})
|
|
5328
5331
|
}, m = e ? () => bb({ id: e, ...p }) : () => vb(p);
|
|
5329
5332
|
d(!0), m().then(() => {
|
|
5330
5333
|
r(a), l(void 0), d(!1);
|
|
@@ -5352,8 +5355,8 @@ const GC = (e, t, s) => {
|
|
|
5352
5355
|
staticProperties: aa(e.staticProperties)
|
|
5353
5356
|
}), nm = (e) => ({
|
|
5354
5357
|
...e,
|
|
5355
|
-
properties:
|
|
5356
|
-
staticProperties:
|
|
5358
|
+
properties: Jt(e.properties),
|
|
5359
|
+
staticProperties: Jt(e.staticProperties)
|
|
5357
5360
|
}), sm = ({ editedAssetGroup: e, onSubmit: t, onCancel: s }) => {
|
|
5358
5361
|
const { assetGroupDefinitions: a } = O(we), i = a[0], { assetGroupProperties: r } = Ne(), [o, l] = b(!1), [c, d] = b(e?.definitionId), u = OC(c), p = e ? UC(e) : LC(i), m = je({
|
|
5359
5362
|
resolver: $n(u),
|
|
@@ -5783,15 +5786,15 @@ const FC = async (e) => {
|
|
|
5783
5786
|
function Na() {
|
|
5784
5787
|
return Lt() ? Df(wd) : cm(wd);
|
|
5785
5788
|
}
|
|
5786
|
-
const oi = "----",
|
|
5787
|
-
|
|
5789
|
+
const oi = "----", Zt = {}, xn = {}, dm = /* @__PURE__ */ new Set(), Ia = (e, t, s) => {
|
|
5790
|
+
Zt[t] = e, s && (xn[t] = s);
|
|
5788
5791
|
}, zC = (e, t, s) => {
|
|
5789
|
-
|
|
5792
|
+
Zt[t] = Zt[e], xn[t] = s;
|
|
5790
5793
|
}, Wi = (e) => {
|
|
5791
|
-
const t =
|
|
5792
|
-
t && (delete
|
|
5793
|
-
}, um = (e) =>
|
|
5794
|
-
const i =
|
|
5794
|
+
const t = Zt[e];
|
|
5795
|
+
t && (delete Zt[e], delete xn[e], Object.values(Zt).includes(t) || URL.revokeObjectURL(t), dm.add(e));
|
|
5796
|
+
}, um = (e) => Zt[e] && !xn[e], Hi = async (e, t, s, a) => {
|
|
5797
|
+
const i = Zt[e];
|
|
5795
5798
|
if (!i && !dm.has(e)) {
|
|
5796
5799
|
let r, o;
|
|
5797
5800
|
const l = e.split("/").pop(), c = "images?meta=true";
|
|
@@ -5864,7 +5867,7 @@ const oi = "----", jt = {}, xn = {}, dm = /* @__PURE__ */ new Set(), Ia = (e, t,
|
|
|
5864
5867
|
return t.data;
|
|
5865
5868
|
}, qC = (e, t) => {
|
|
5866
5869
|
const s = Na(), a = t.map(async ({ dashboard: { shared: i, assetGroupId: r }, imagePath: o }) => {
|
|
5867
|
-
const l = await WC(
|
|
5870
|
+
const l = await WC(Zt[o]), { contentType: c, name: d, context: u } = xn[o], p = {
|
|
5868
5871
|
"X-Blob-Meta-Filename": encodeURIComponent(`${u}${oi}${d}`),
|
|
5869
5872
|
"Content-Type": c
|
|
5870
5873
|
};
|
|
@@ -6346,7 +6349,7 @@ function hc() {
|
|
|
6346
6349
|
}
|
|
6347
6350
|
);
|
|
6348
6351
|
}
|
|
6349
|
-
class
|
|
6352
|
+
class sn extends x.PureComponent {
|
|
6350
6353
|
render() {
|
|
6351
6354
|
const { config: t, onChangeConfig: s, children: a } = this.props;
|
|
6352
6355
|
return /* @__PURE__ */ f("div", { className: "field", children: [
|
|
@@ -6495,7 +6498,7 @@ const yE = async (e, t) => {
|
|
|
6495
6498
|
return [];
|
|
6496
6499
|
const t = pa(Ol(e, ({ accountGroupIds: a }) => a)), s = t.length ? `id:(${t.join(" OR ")})` : null;
|
|
6497
6500
|
if (s) {
|
|
6498
|
-
const { content: a } = await
|
|
6501
|
+
const { content: a } = await tn(s, {
|
|
6499
6502
|
page: 0,
|
|
6500
6503
|
size: t.length,
|
|
6501
6504
|
sort: {
|
|
@@ -6561,7 +6564,7 @@ const fc = async (e, t) => {
|
|
|
6561
6564
|
}
|
|
6562
6565
|
}), H$ = (e) => ({
|
|
6563
6566
|
fields: Da,
|
|
6564
|
-
search:
|
|
6567
|
+
search: tn,
|
|
6565
6568
|
suggestions: {
|
|
6566
6569
|
print: (t) => t.displayName || t.name,
|
|
6567
6570
|
onAccept: e,
|
|
@@ -6893,7 +6896,7 @@ function GE({ config: e, onChangeConfig: t }) {
|
|
|
6893
6896
|
} = Tm({
|
|
6894
6897
|
config: e,
|
|
6895
6898
|
onChangeConfig: t
|
|
6896
|
-
}), [T, I] = b(o), [R, k] = b(s), U = F(() =>
|
|
6899
|
+
}), [T, I] = b(o), [R, k] = b(s), U = F(() => Qt(E, 500), [E]), M = F(() => Qt(w, 500), [w]);
|
|
6897
6900
|
function K(re) {
|
|
6898
6901
|
k(re), U(re);
|
|
6899
6902
|
}
|
|
@@ -7037,7 +7040,7 @@ const LE = ({ config: e, onChangeConfig: t, context: s }) => {
|
|
|
7037
7040
|
r && o === "number" ? d("pie") : !r && o !== "number" && d("number");
|
|
7038
7041
|
}, [o, r, d]), /* @__PURE__ */ f("div", { className: "di aggregation-widget-config", children: [
|
|
7039
7042
|
/* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ f("div", { className: "fields", children: [
|
|
7040
|
-
/* @__PURE__ */ n(
|
|
7043
|
+
/* @__PURE__ */ n(sn, { config: e, onChangeConfig: t }),
|
|
7041
7044
|
/* @__PURE__ */ n("div", { className: "field", children: /* @__PURE__ */ f("div", { className: "standard wide field", children: [
|
|
7042
7045
|
/* @__PURE__ */ n("label", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.aggregation.legend", children: "Small text under value" }) }),
|
|
7043
7046
|
/* @__PURE__ */ n("input", { type: "text", value: i, onChange: (p) => c(p.target.value) })
|
|
@@ -7427,7 +7430,7 @@ const HE = {
|
|
|
7427
7430
|
name: d,
|
|
7428
7431
|
url: `/assetgroups/${c}`
|
|
7429
7432
|
})),
|
|
7430
|
-
multipleItemsLabel: /* @__PURE__ */ f(h, { i18nKey: "asset.assetGroupsCount", children: [
|
|
7433
|
+
multipleItemsLabel: /* @__PURE__ */ f(h, { i18nKey: "asset.assetGroupsCount", count: l.length, children: [
|
|
7431
7434
|
{
|
|
7432
7435
|
count: l.length
|
|
7433
7436
|
},
|
|
@@ -7778,7 +7781,7 @@ function lD({
|
|
|
7778
7781
|
};
|
|
7779
7782
|
return /* @__PURE__ */ f("div", { className: "di table form", children: [
|
|
7780
7783
|
/* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
|
|
7781
|
-
/* @__PURE__ */ n(
|
|
7784
|
+
/* @__PURE__ */ n(sn, { config: e, onChangeConfig: t }),
|
|
7782
7785
|
/* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(
|
|
7783
7786
|
B,
|
|
7784
7787
|
{
|
|
@@ -7808,7 +7811,7 @@ function lD({
|
|
|
7808
7811
|
)
|
|
7809
7812
|
] });
|
|
7810
7813
|
}
|
|
7811
|
-
function
|
|
7814
|
+
function an(e, t) {
|
|
7812
7815
|
const s = Sn(e.type !== "asset" && t ? [t] : []);
|
|
7813
7816
|
return e.type === "asset" ? e.asset : t ? s[t] : null;
|
|
7814
7817
|
}
|
|
@@ -8096,7 +8099,7 @@ function gD(e) {
|
|
|
8096
8099
|
), console.error("Can't fetch datapoint values", t);
|
|
8097
8100
|
};
|
|
8098
8101
|
}
|
|
8099
|
-
function
|
|
8102
|
+
function rn() {
|
|
8100
8103
|
const { t: e } = G();
|
|
8101
8104
|
return F(() => gD(e), [e]);
|
|
8102
8105
|
}
|
|
@@ -8177,31 +8180,33 @@ function km(e) {
|
|
|
8177
8180
|
function TD(e, t) {
|
|
8178
8181
|
return e ? `${e ? Math.ceil((t.tsEnd - t.tsStart) / (e * 1e3)) : void 0}s` : void 0;
|
|
8179
8182
|
}
|
|
8180
|
-
async function Pu(e, t, s, a, i) {
|
|
8181
|
-
const
|
|
8182
|
-
|
|
8183
|
-
([
|
|
8183
|
+
async function Pu(e, t, s, a, i, r) {
|
|
8184
|
+
const o = km(t), l = Object.entries(o), c = TD(a, s), d = !1, u = await Promise.allSettled(
|
|
8185
|
+
l.map(
|
|
8186
|
+
([g, y]) => Wp(
|
|
8184
8187
|
e,
|
|
8185
|
-
|
|
8186
|
-
|
|
8188
|
+
y,
|
|
8189
|
+
g,
|
|
8187
8190
|
s.tsStart,
|
|
8188
8191
|
s.tsEnd,
|
|
8189
|
-
|
|
8192
|
+
c,
|
|
8193
|
+
d,
|
|
8194
|
+
i
|
|
8190
8195
|
)
|
|
8191
8196
|
)
|
|
8192
|
-
),
|
|
8193
|
-
if (
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
}) :
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8197
|
+
), p = [], m = new Map(t.map(({ name: g }) => [g, []]));
|
|
8198
|
+
if (u.forEach((g, y) => {
|
|
8199
|
+
g.status === "rejected" ? l[y][1].forEach((A) => {
|
|
8200
|
+
p.push({ assetUrn: e, dpName: A, reason: g.reason });
|
|
8201
|
+
}) : g.value.asset.datapoints.forEach(({ name: A, values: v }) => {
|
|
8202
|
+
m.set(
|
|
8203
|
+
A,
|
|
8204
|
+
v.map(([S, C]) => [new Date(S).valueOf(), C])
|
|
8200
8205
|
);
|
|
8201
8206
|
});
|
|
8202
|
-
}),
|
|
8203
|
-
throw
|
|
8204
|
-
return
|
|
8207
|
+
}), p.length)
|
|
8208
|
+
throw r(p), Error(`Fetching datapoint values for asset ${e} failed`);
|
|
8209
|
+
return m;
|
|
8205
8210
|
}
|
|
8206
8211
|
const CD = 1e3 * 60 * 60 * 24 * 365;
|
|
8207
8212
|
async function ED(e, t, s, a) {
|
|
@@ -8224,10 +8229,11 @@ async function ED(e, t, s, a) {
|
|
|
8224
8229
|
return c;
|
|
8225
8230
|
}
|
|
8226
8231
|
function vc(e) {
|
|
8232
|
+
const t = $.getTrendPreferOutliers();
|
|
8227
8233
|
return {
|
|
8228
|
-
fetchValues: (
|
|
8229
|
-
fetchSamples: (
|
|
8230
|
-
fetchLastValues: (
|
|
8234
|
+
fetchValues: (s, a, i) => Pu(s, a, i, void 0, t, e),
|
|
8235
|
+
fetchSamples: (s, a, i, r) => Pu(s, a, r, i, t, e),
|
|
8236
|
+
fetchLastValues: (s, a, i) => ED(s, a, i, e)
|
|
8231
8237
|
};
|
|
8232
8238
|
}
|
|
8233
8239
|
const qs = () => {
|
|
@@ -8432,7 +8438,7 @@ function OD({ config: e, datapoints: t, asset: s, large: a, showAxisLabel: i })
|
|
|
8432
8438
|
r,
|
|
8433
8439
|
o,
|
|
8434
8440
|
d?.datatype === "datapoint" ? d?.key : null
|
|
8435
|
-
].filter(Z), m =
|
|
8441
|
+
].filter(Z), m = rn(), g = Hn(
|
|
8436
8442
|
s ? p.map((P) => t.find((E) => E.name === P)).filter(Z).map((P) => ({
|
|
8437
8443
|
assetUrn: s.urn,
|
|
8438
8444
|
dpName: P.name,
|
|
@@ -8502,7 +8508,7 @@ function GD(e) {
|
|
|
8502
8508
|
}
|
|
8503
8509
|
const Ro = "SMALL", Oo = "LARGE";
|
|
8504
8510
|
function LD({ context: e, config: t, config: { title: s } }) {
|
|
8505
|
-
const { assetId: a, tabsConfig: i, bulletSize: r, showAxisLabel: o } = GD(t.settings), l =
|
|
8511
|
+
const { assetId: a, tabsConfig: i, bulletSize: r, showAxisLabel: o } = GD(t.settings), l = an(e, a), { datapoints: c, fetching: d } = Wt(l?.urn), p = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? c;
|
|
8506
8512
|
return /* @__PURE__ */ n(ne, { show: d, children: /* @__PURE__ */ f("div", { className: "dash-box barchart", children: [
|
|
8507
8513
|
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(bt, { linkToAsset: e.type === "assetGroup" ? l : null, title: s }) }),
|
|
8508
8514
|
/* @__PURE__ */ n(
|
|
@@ -9135,7 +9141,7 @@ class ew extends x.Component {
|
|
|
9135
9141
|
] });
|
|
9136
9142
|
}
|
|
9137
9143
|
}
|
|
9138
|
-
const mi =
|
|
9144
|
+
const mi = nn()(ew), tw = (e, t) => e ? typeof e == "string" ? e : t(e.id, { defaultValue: e.defaultValue }) : "", nr = ({ label: e, onClick: t, iconSrc: s, title: a, disabled: i, ...r }) => {
|
|
9139
9145
|
const o = !!e, { t: l } = G(), c = o ? "left" : "center", d = tw(a, l), u = e || /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.selectDatasource", children: "Select Data Source" }), p = e || l("general.actions.edit", {
|
|
9140
9146
|
defaultValue: "Edit"
|
|
9141
9147
|
});
|
|
@@ -9468,7 +9474,7 @@ function lw({
|
|
|
9468
9474
|
}) {
|
|
9469
9475
|
const i = kD(t, s), [r, o] = b(0), [l, c] = b(!1), [d, u] = b(!1), [p, m] = b(!1), [g, y] = b(!1), [A, v] = b(!1), [S, C] = b(!1), D = YD(t, s), {
|
|
9470
9476
|
settings: { tabsConfig: w, assetId: P, bulletSize: E, showAxisLabel: T }
|
|
9471
|
-
} = t, I =
|
|
9477
|
+
} = t, I = an(e, P), { datapoints: R, fetching: k } = Wt(I?.urn), M = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? R, K = (Ce) => {
|
|
9472
9478
|
l && (m(!0), y(!0)), u(!1), D.setSelectedAssetId(Ce.id);
|
|
9473
9479
|
}, q = () => {
|
|
9474
9480
|
l && (lt(), c(!1)), u(!1);
|
|
@@ -9549,7 +9555,7 @@ function lw({
|
|
|
9549
9555
|
/* @__PURE__ */ f("div", { className: "di form", children: [
|
|
9550
9556
|
/* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
|
|
9551
9557
|
/* @__PURE__ */ f("div", { className: "fields", children: [
|
|
9552
|
-
/* @__PURE__ */ n(
|
|
9558
|
+
/* @__PURE__ */ n(sn, { config: t, onChangeConfig: s }),
|
|
9553
9559
|
/* @__PURE__ */ f("div", { className: "field", children: [
|
|
9554
9560
|
/* @__PURE__ */ n("label", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.bulletsize.label", children: "Bullets size" }) }),
|
|
9555
9561
|
/* @__PURE__ */ n(
|
|
@@ -9664,28 +9670,28 @@ function cw(e, t) {
|
|
|
9664
9670
|
function dw(e, t) {
|
|
9665
9671
|
return e ? xe(e[0], { timezone: t }) : "-";
|
|
9666
9672
|
}
|
|
9667
|
-
function uw(e, {
|
|
9673
|
+
function uw(e, { factor: t, dataType: s, decimalPoints: a }, i) {
|
|
9668
9674
|
if (!e)
|
|
9669
9675
|
return "-";
|
|
9670
|
-
switch (
|
|
9676
|
+
switch (s) {
|
|
9671
9677
|
case "BOOLEAN":
|
|
9672
9678
|
return e[1] ? "TRUE" : "FALSE";
|
|
9673
9679
|
case "DOUBLE":
|
|
9674
9680
|
case "LONG":
|
|
9675
|
-
return
|
|
9676
|
-
minimumFractionDigits:
|
|
9677
|
-
maximumFractionDigits:
|
|
9678
|
-
}).format(
|
|
9681
|
+
return new Intl.NumberFormat(i, {
|
|
9682
|
+
minimumFractionDigits: a,
|
|
9683
|
+
maximumFractionDigits: a
|
|
9684
|
+
}).format(t * e[1]);
|
|
9679
9685
|
case "TEXT":
|
|
9680
9686
|
return `${e[1]}`;
|
|
9681
9687
|
case "GEO_POSITION": {
|
|
9682
|
-
const
|
|
9683
|
-
if (typeof
|
|
9684
|
-
return `${
|
|
9685
|
-
throw new Error(`Unexpected geo position value format: ${
|
|
9688
|
+
const r = e[1];
|
|
9689
|
+
if (typeof r == "object")
|
|
9690
|
+
return `${r.latitude}, ${r.longitude}`;
|
|
9691
|
+
throw new Error(`Unexpected geo position value format: ${r}`);
|
|
9686
9692
|
}
|
|
9687
9693
|
default:
|
|
9688
|
-
throw new Error(`Unknown data type: ${
|
|
9694
|
+
throw new Error(`Unknown data type: ${s}`);
|
|
9689
9695
|
}
|
|
9690
9696
|
}
|
|
9691
9697
|
function ku(e) {
|
|
@@ -9694,7 +9700,7 @@ function ku(e) {
|
|
|
9694
9700
|
function hw(e, t) {
|
|
9695
9701
|
const s = ft(), a = mt(), { t: i } = G(), { datapointsByUrn: r, fetchDatapointsForUrn: o } = O(Zi), l = t.type === "asset" ? t.asset : void 0, c = zn(l?.urn ? [] : ku(e)), d = Hn(
|
|
9696
9702
|
cw(e, l?.urn),
|
|
9697
|
-
|
|
9703
|
+
rn()
|
|
9698
9704
|
), u = F(
|
|
9699
9705
|
() => l ? [l.urn] : ku(e),
|
|
9700
9706
|
[l, e]
|
|
@@ -9717,7 +9723,8 @@ function hw(e, t) {
|
|
|
9717
9723
|
assetName: y.name,
|
|
9718
9724
|
datapointName: m.displayName || m.datapointName,
|
|
9719
9725
|
datapointDescription: We((A?.properties?.dpDescription ?? "").toString(), i),
|
|
9720
|
-
value: v == null ? null : uw(v, m, a
|
|
9726
|
+
value: v == null ? null : uw(v, m, a),
|
|
9727
|
+
valueUnit: m.unit ? We(m.unit, i) : null,
|
|
9721
9728
|
timestamp: v == null ? null : dw(v, s)
|
|
9722
9729
|
};
|
|
9723
9730
|
}).filter(Z);
|
|
@@ -9752,7 +9759,10 @@ function pw({
|
|
|
9752
9759
|
label: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.datapoints.col.value", children: "Value" }),
|
|
9753
9760
|
name: "value",
|
|
9754
9761
|
sortable: !0,
|
|
9755
|
-
render: ({ value: o }) => o
|
|
9762
|
+
render: ({ value: o, valueUnit: l }) => o ? /* @__PURE__ */ f(L, { children: [
|
|
9763
|
+
/* @__PURE__ */ n("b", { children: o }),
|
|
9764
|
+
l && ` ${l}`
|
|
9765
|
+
] }) : "-"
|
|
9756
9766
|
},
|
|
9757
9767
|
{
|
|
9758
9768
|
label: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.datapoints.col.time", children: "Time" }),
|
|
@@ -10052,7 +10062,7 @@ function yw({
|
|
|
10052
10062
|
] });
|
|
10053
10063
|
}
|
|
10054
10064
|
return /* @__PURE__ */ f(ne, { show: A, children: [
|
|
10055
|
-
/* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(
|
|
10065
|
+
/* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(sn, { config: e, onChangeConfig: s }) }) }),
|
|
10056
10066
|
/* @__PURE__ */ n(
|
|
10057
10067
|
Ds,
|
|
10058
10068
|
{
|
|
@@ -10177,7 +10187,7 @@ const Lo = {
|
|
|
10177
10187
|
const i = Qi(e.datasource, a), r = Tc(
|
|
10178
10188
|
i,
|
|
10179
10189
|
t,
|
|
10180
|
-
|
|
10190
|
+
rn()
|
|
10181
10191
|
), o = vw(e, i, r), { t: l } = G();
|
|
10182
10192
|
if (!o)
|
|
10183
10193
|
return null;
|
|
@@ -10204,7 +10214,7 @@ function Tw({ context: e, config: t }) {
|
|
|
10204
10214
|
const {
|
|
10205
10215
|
title: s,
|
|
10206
10216
|
settings: { items: a, isHorizontal: i, assetId: r }
|
|
10207
|
-
} = Mm(t), o =
|
|
10217
|
+
} = Mm(t), o = an(e, r), { datapoints: l, fetching: c } = Km(e, o);
|
|
10208
10218
|
return /* @__PURE__ */ n(ne, { show: c, children: /* @__PURE__ */ f("div", { className: "dash-box io", children: [
|
|
10209
10219
|
/* @__PURE__ */ n(bt, { linkToAsset: e.type === "assetGroup" ? o : void 0, title: s }),
|
|
10210
10220
|
/* @__PURE__ */ n("div", { className: "dash-box-cont digitaliowidget", children: /* @__PURE__ */ n(
|
|
@@ -10453,7 +10463,7 @@ function Dw({
|
|
|
10453
10463
|
}) {
|
|
10454
10464
|
const i = Aw(t, s), {
|
|
10455
10465
|
settings: { assetId: r, items: o, isHorizontal: l }
|
|
10456
|
-
} = i, c =
|
|
10466
|
+
} = i, c = an(e, r), { datapoints: d } = Km(e, c), { properties: u } = O(we), [p, m] = b(-1), g = z(
|
|
10457
10467
|
(R) => {
|
|
10458
10468
|
if (R.datatype !== "datapoint")
|
|
10459
10469
|
return !0;
|
|
@@ -10521,7 +10531,7 @@ function Dw({
|
|
|
10521
10531
|
/* @__PURE__ */ f("div", { className: "di form digitaliowidgetconfig", children: [
|
|
10522
10532
|
/* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
|
|
10523
10533
|
/* @__PURE__ */ f("div", { className: "fields", children: [
|
|
10524
|
-
/* @__PURE__ */ n(
|
|
10534
|
+
/* @__PURE__ */ n(sn, { config: i, onChangeConfig: s }),
|
|
10525
10535
|
/* @__PURE__ */ n(
|
|
10526
10536
|
sr,
|
|
10527
10537
|
{
|
|
@@ -10716,7 +10726,7 @@ const ww = 60, Fm = ({ value: e, min: t, max: s, color: a, unit: i, formattedVal
|
|
|
10716
10726
|
} = e;
|
|
10717
10727
|
l.update(r);
|
|
10718
10728
|
}, [r, e]), null), Iw = Rm(Fm())(Nw);
|
|
10719
|
-
function
|
|
10729
|
+
function jt({ value: e, timestamp: t, unit: s, inlineUnit: a, timezone: i }) {
|
|
10720
10730
|
return /* @__PURE__ */ f("div", { className: "val-container", children: [
|
|
10721
10731
|
/* @__PURE__ */ f("div", { "data-testid": "dp-value", children: [
|
|
10722
10732
|
e || "-",
|
|
@@ -10738,13 +10748,13 @@ function _w(e, {
|
|
|
10738
10748
|
gaugeEnabled: l
|
|
10739
10749
|
}, c, d, u, p) {
|
|
10740
10750
|
if (!e)
|
|
10741
|
-
return /* @__PURE__ */ n(
|
|
10751
|
+
return /* @__PURE__ */ n(jt, { timezone: p });
|
|
10742
10752
|
if (c == null)
|
|
10743
|
-
return /* @__PURE__ */ n(
|
|
10753
|
+
return /* @__PURE__ */ n(jt, { timezone: p });
|
|
10744
10754
|
const m = l && o && !!d, g = o ? d : null;
|
|
10745
10755
|
if (Pw(c))
|
|
10746
10756
|
return /* @__PURE__ */ n(
|
|
10747
|
-
|
|
10757
|
+
jt,
|
|
10748
10758
|
{
|
|
10749
10759
|
timezone: p,
|
|
10750
10760
|
value: xi(c.latitude, c.longitude, u),
|
|
@@ -10757,7 +10767,7 @@ function _w(e, {
|
|
|
10757
10767
|
if (Vn(e) || Rt(e)) {
|
|
10758
10768
|
const y = i ? c * i : c;
|
|
10759
10769
|
return /* @__PURE__ */ n(
|
|
10760
|
-
|
|
10770
|
+
jt,
|
|
10761
10771
|
{
|
|
10762
10772
|
timezone: p,
|
|
10763
10773
|
value: ra(y, t || 0, t || 0, !0),
|
|
@@ -10768,7 +10778,7 @@ function _w(e, {
|
|
|
10768
10778
|
);
|
|
10769
10779
|
} else
|
|
10770
10780
|
return /* @__PURE__ */ n(
|
|
10771
|
-
|
|
10781
|
+
jt,
|
|
10772
10782
|
{
|
|
10773
10783
|
timezone: p,
|
|
10774
10784
|
value: ra(c, 0, 0, !0),
|
|
@@ -10779,7 +10789,7 @@ function _w(e, {
|
|
|
10779
10789
|
);
|
|
10780
10790
|
if (vt(e))
|
|
10781
10791
|
return /* @__PURE__ */ n(
|
|
10782
|
-
|
|
10792
|
+
jt,
|
|
10783
10793
|
{
|
|
10784
10794
|
timezone: p,
|
|
10785
10795
|
value: c ? a || "true" : s || "false",
|
|
@@ -10792,7 +10802,7 @@ function _w(e, {
|
|
|
10792
10802
|
const y = c.toString();
|
|
10793
10803
|
return y.includes("\\n") || y.includes(`
|
|
10794
10804
|
`) ? /* @__PURE__ */ n(
|
|
10795
|
-
|
|
10805
|
+
jt,
|
|
10796
10806
|
{
|
|
10797
10807
|
timezone: p,
|
|
10798
10808
|
value: /* @__PURE__ */ n("div", { className: "multiline", children: Kn(y.split("\\n").map((A) => A.split(`
|
|
@@ -10800,9 +10810,9 @@ function _w(e, {
|
|
|
10800
10810
|
timestamp: g,
|
|
10801
10811
|
inlineUnit: m
|
|
10802
10812
|
}
|
|
10803
|
-
) : /* @__PURE__ */ n(
|
|
10813
|
+
) : /* @__PURE__ */ n(jt, { value: y, timestamp: g, unit: r, timezone: p });
|
|
10804
10814
|
}
|
|
10805
|
-
return /* @__PURE__ */ n(
|
|
10815
|
+
return /* @__PURE__ */ n(jt, { timezone: p });
|
|
10806
10816
|
}
|
|
10807
10817
|
const $m = (e) => /^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e), Rw = (e, t) => e.match(new RegExp(`.{${t}}`, "g")), Ow = (e) => parseInt(e.repeat(2 / e.length), 16), kw = (e, t) => {
|
|
10808
10818
|
if (typeof e < "u")
|
|
@@ -10842,7 +10852,7 @@ function Lw({ falseStatus: e, trueStatus: t, falseColor: s, trueColor: a }, i, r
|
|
|
10842
10852
|
};
|
|
10843
10853
|
}
|
|
10844
10854
|
function Uw(e, { gaugeEnabled: t, gaugeMinDP: s, gaugeMaxDP: a, selectedAssetId: i }, r, o) {
|
|
10845
|
-
const l =
|
|
10855
|
+
const l = an(e, i), c = t ? [s?.name, a?.name].filter(Z) : [], d = Hn(
|
|
10846
10856
|
c.map((m) => {
|
|
10847
10857
|
const g = r.find((y) => y.name === m);
|
|
10848
10858
|
return g && l ? {
|
|
@@ -10856,7 +10866,7 @@ function Uw(e, { gaugeEnabled: t, gaugeMinDP: s, gaugeMaxDP: a, selectedAssetId:
|
|
|
10856
10866
|
return { gaugeLiveMin: u, gaugeLiveMax: p };
|
|
10857
10867
|
}
|
|
10858
10868
|
function xw({ context: e, config: { title: t, settings: s } }) {
|
|
10859
|
-
const a =
|
|
10869
|
+
const a = rn(), { selectedAssetId: i, datasource: r, timestampEnabled: o, unit: l, gaugeEnabled: c } = s, d = an(e, i), { datapoints: u } = Wt(d?.urn), p = Qi(r, u), m = c && p && (Rt(p) || Vn(p)), { gaugeLiveMin: g, gaugeLiveMax: y } = Uw(e, s, u, a), A = Tc(p, d, a), { className: v, style: S } = Lw(s, p, A), { value: C, timestamp: D } = Gm(A), w = mt(), P = ft(), E = _w(p, s, C, D, w, P);
|
|
10860
10870
|
return /* @__PURE__ */ f("div", { className: `dash-box ${v}`, style: S, children: [
|
|
10861
10871
|
/* @__PURE__ */ n(bt, { absolute: !0, linkToAsset: e.type === "assetGroup" ? d : null, title: t }),
|
|
10862
10872
|
/* @__PURE__ */ n("div", { className: "dash-box-cont", children: m ? /* @__PURE__ */ f(L, { children: [
|
|
@@ -11131,7 +11141,7 @@ function Hw({ context: e, onChangeConfig: t, config: s }) {
|
|
|
11131
11141
|
falseColor: K,
|
|
11132
11142
|
falseStatus: q
|
|
11133
11143
|
}
|
|
11134
|
-
} = s, Y =
|
|
11144
|
+
} = s, Y = an(e, g), { datapoints: ue } = Wt(Y?.urn), re = e.type === "assetDefinition" ? e.assetDefinition.datapoints : ue, Ae = Qi(y, re), ae = (X) => {
|
|
11135
11145
|
t({ ...s, settings: { ...s.settings, ...X } });
|
|
11136
11146
|
};
|
|
11137
11147
|
return a ? /* @__PURE__ */ n(
|
|
@@ -11202,7 +11212,7 @@ function Hw({ context: e, onChangeConfig: t, config: s }) {
|
|
|
11202
11212
|
),
|
|
11203
11213
|
/* @__PURE__ */ f("div", { className: "di form", children: [
|
|
11204
11214
|
/* @__PURE__ */ n("h2", { className: "di header", children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
|
|
11205
|
-
/* @__PURE__ */ n(
|
|
11215
|
+
/* @__PURE__ */ n(sn, { config: s, onChangeConfig: t }),
|
|
11206
11216
|
Ae && (Vn(Ae) || Rt(Ae)) && /* @__PURE__ */ f(L, { children: [
|
|
11207
11217
|
/* @__PURE__ */ n(
|
|
11208
11218
|
Vw,
|
|
@@ -11689,7 +11699,7 @@ class aN extends x.Component {
|
|
|
11689
11699
|
] });
|
|
11690
11700
|
}
|
|
11691
11701
|
}
|
|
11692
|
-
const Hm =
|
|
11702
|
+
const Hm = nn()(aN), Za = "white";
|
|
11693
11703
|
function iN(e, t, s) {
|
|
11694
11704
|
const [a, i] = b(!1), [r, o] = b(null);
|
|
11695
11705
|
return _(() => {
|
|
@@ -11753,7 +11763,7 @@ function rN({ context: e, config: t, onChangeConfig: s, setApplyButtonDisabled:
|
|
|
11753
11763
|
}
|
|
11754
11764
|
return /* @__PURE__ */ f("div", { className: "di form asset-image-widget-config", children: [
|
|
11755
11765
|
/* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
|
|
11756
|
-
/* @__PURE__ */ n(
|
|
11766
|
+
/* @__PURE__ */ n(sn, { config: t, onChangeConfig: s }),
|
|
11757
11767
|
/* @__PURE__ */ f("div", { className: "fields", children: [
|
|
11758
11768
|
/* @__PURE__ */ n("label", { className: "field", children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.image.link", children: "Link" }) }),
|
|
11759
11769
|
/* @__PURE__ */ n(be, { value: u, onChange: p, type: "toggle", toggleSmall: !0 })
|
|
@@ -11990,7 +12000,7 @@ function uN({ item: e, itemIndex: t, onItemChange: s }) {
|
|
|
11990
12000
|
...a,
|
|
11991
12001
|
children: [
|
|
11992
12002
|
/* @__PURE__ */ n("td", { className: "customDragHandle", children: /* @__PURE__ */ n("span", { className: "handle", "data-testid": "drag-handle", ref: o, ...i, children: /* @__PURE__ */ n("span", { className: "symbol", children: "⋮⋮" }) }) }),
|
|
11993
|
-
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(
|
|
12003
|
+
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Xt, { value: e.visible, onChange: u }) }),
|
|
11994
12004
|
/* @__PURE__ */ f("td", { children: [
|
|
11995
12005
|
/* @__PURE__ */ n(h, { i18nKey: m.id, children: m.defaultValue }),
|
|
11996
12006
|
e.type === "newAssets" && /* @__PURE__ */ n("select", { onChange: p, value: e.active, children: qm.map(({ value: g, trans: y }) => /* @__PURE__ */ n("option", { value: g, children: d(y.id, {
|
|
@@ -12857,13 +12867,13 @@ function UN(e, t) {
|
|
|
12857
12867
|
google.maps.event.addListener(
|
|
12858
12868
|
e,
|
|
12859
12869
|
"click",
|
|
12860
|
-
|
|
12870
|
+
Qt(() => {
|
|
12861
12871
|
t();
|
|
12862
12872
|
}, eg)
|
|
12863
12873
|
);
|
|
12864
12874
|
}
|
|
12865
12875
|
function xN(e, t) {
|
|
12866
|
-
const s =
|
|
12876
|
+
const s = Qt(() => {
|
|
12867
12877
|
const a = e.getBounds(), i = a.getNorthEast(), r = a.getSouthWest();
|
|
12868
12878
|
t(`${i.lat()},${r.lng()}`, `${r.lat()},${i.lng()}`);
|
|
12869
12879
|
}, eg);
|
|
@@ -13515,7 +13525,7 @@ function hI({
|
|
|
13515
13525
|
cI
|
|
13516
13526
|
), m = a && u.length > zr, y = Hn(
|
|
13517
13527
|
uI(a && !m, u),
|
|
13518
|
-
|
|
13528
|
+
rn()
|
|
13519
13529
|
), A = z(
|
|
13520
13530
|
(E) => {
|
|
13521
13531
|
const T = u.find(({ urn: I }) => I === E);
|
|
@@ -13787,7 +13797,7 @@ function Yu({
|
|
|
13787
13797
|
}) {
|
|
13788
13798
|
const { t: r } = G(), { period: o } = O(Bs), l = o ?? a, c = Hn(
|
|
13789
13799
|
SI(e),
|
|
13790
|
-
|
|
13800
|
+
rn()
|
|
13791
13801
|
), d = df(e?.urn ?? ""), u = e ? ug(e, c, t, d) : null, p = u ? [u] : [], { historicalGeoPositions: m, fetching: g } = bI(
|
|
13792
13802
|
!!e && s,
|
|
13793
13803
|
e?.urn,
|
|
@@ -14466,7 +14476,7 @@ function GI({
|
|
|
14466
14476
|
settings: { selectedAssetId: i, context: r }
|
|
14467
14477
|
} = fg(t), [o, l] = b(
|
|
14468
14478
|
kI(i, r, e)
|
|
14469
|
-
), [c, d] = b(null), [u, p] = b(null), m =
|
|
14479
|
+
), [c, d] = b(null), [u, p] = b(null), m = an(e, i);
|
|
14470
14480
|
_(() => {
|
|
14471
14481
|
m && p((C) => C || m);
|
|
14472
14482
|
}, [m]), _(() => {
|
|
@@ -14521,7 +14531,7 @@ function GI({
|
|
|
14521
14531
|
onChangeConfig: s
|
|
14522
14532
|
}
|
|
14523
14533
|
) })), /* @__PURE__ */ f("div", { children: [
|
|
14524
|
-
/* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(
|
|
14534
|
+
/* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(sn, { config: t, onChangeConfig: s }) }) }),
|
|
14525
14535
|
S
|
|
14526
14536
|
] });
|
|
14527
14537
|
}
|
|
@@ -14817,7 +14827,7 @@ function iP(e, t, s) {
|
|
|
14817
14827
|
function rP(e, t) {
|
|
14818
14828
|
const s = nP(e, t.type === "asset" ? t.asset.id : null), a = Sn(t.type === "asset" ? [] : sP(e)), i = Hn(
|
|
14819
14829
|
aP(t, a, s),
|
|
14820
|
-
|
|
14830
|
+
rn()
|
|
14821
14831
|
), { properties: r } = O(we), o = F(() => r.filter((d) => d.entityTargets.includes("ASSET")), [r]), { t: l } = G(), c = ft();
|
|
14822
14832
|
return z(
|
|
14823
14833
|
(d, u) => {
|
|
@@ -15693,7 +15703,7 @@ function _P(e) {
|
|
|
15693
15703
|
}
|
|
15694
15704
|
}
|
|
15695
15705
|
function RP({ context: e, settings: t, onChange: s }) {
|
|
15696
|
-
const { assetProperties: a } = Ne(), i = e.type === "asset" ? e.asset.id : t.assetId, r =
|
|
15706
|
+
const { assetProperties: a } = Ne(), i = e.type === "asset" ? e.asset.id : t.assetId, r = an(e, i), { datapoints: o, fetching: l } = Wt(r?.urn), d = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? o, { selectDatasourceOfAsset: u, selectDatasourceOfAssetDefinition: p } = O(bg), { selectAsset: m } = O(Ag);
|
|
15697
15707
|
if (e.type === "global")
|
|
15698
15708
|
return null;
|
|
15699
15709
|
function g(w) {
|
|
@@ -17288,7 +17298,7 @@ function h2() {
|
|
|
17288
17298
|
return /* @__PURE__ */ f(L, { children: [
|
|
17289
17299
|
/* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
|
|
17290
17300
|
/* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ f("div", { className: "fields", children: [
|
|
17291
|
-
/* @__PURE__ */ n(
|
|
17301
|
+
/* @__PURE__ */ n(sn, { config: t, onChangeConfig: s }),
|
|
17292
17302
|
/* @__PURE__ */ f("div", { className: "field", children: [
|
|
17293
17303
|
/* @__PURE__ */ n("label", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widget.options.interval.label", children: "Interval" }) }),
|
|
17294
17304
|
/* @__PURE__ */ n(
|
|
@@ -17561,7 +17571,7 @@ function w2(e, t, s) {
|
|
|
17561
17571
|
const a = pe(0);
|
|
17562
17572
|
_(() => {
|
|
17563
17573
|
if (!e.current || !t) return;
|
|
17564
|
-
const i =
|
|
17574
|
+
const i = Qt(() => {
|
|
17565
17575
|
if (!e.current) return;
|
|
17566
17576
|
const o = e.current.getBoundingClientRect().width, l = a.current;
|
|
17567
17577
|
l > 0 && o > 0 ? Math.abs(o - l) / l * 100 > 10 && (a.current = o, s()) : o > 0 && (a.current = o);
|
|
@@ -17744,7 +17754,7 @@ function lh(e, t, s) {
|
|
|
17744
17754
|
return {
|
|
17745
17755
|
labels: {
|
|
17746
17756
|
formatter: function() {
|
|
17747
|
-
return `${this.value} ${e.runtimeDatapointUnit
|
|
17757
|
+
return `${this.value}${e.runtimeDatapointUnit ? ` ${e.runtimeDatapointUnit}` : ""}`;
|
|
17748
17758
|
},
|
|
17749
17759
|
style: { color: e.settings.color }
|
|
17750
17760
|
},
|
|
@@ -18273,7 +18283,7 @@ const t_ = ({ children: e, dashboardTime: t }) => {
|
|
|
18273
18283
|
assetDefinitions: r
|
|
18274
18284
|
}), c = pe(() => {
|
|
18275
18285
|
}), d = pe(null), u = pe(() => {
|
|
18276
|
-
}), p =
|
|
18286
|
+
}), p = rn(), m = F(
|
|
18277
18287
|
() => W2(o.currentAssetUrn, o.trendDatapoints),
|
|
18278
18288
|
[o.currentAssetUrn, o.trendDatapoints]
|
|
18279
18289
|
), g = bc(o.liveModeEnabled && m ? m : {});
|
|
@@ -18725,7 +18735,7 @@ function g_({
|
|
|
18725
18735
|
toggleCombineYAxes: v,
|
|
18726
18736
|
chartContainerRef: S
|
|
18727
18737
|
} = O(or), { t: C } = G(), D = pe(null), w = ft(), P = F(
|
|
18728
|
-
() =>
|
|
18738
|
+
() => Qt((k) => {
|
|
18729
18739
|
if (D.current && k[0]) {
|
|
18730
18740
|
const { width: U, height: M } = k[0].contentRect;
|
|
18731
18741
|
D.current.setSize(U, M, !1);
|
|
@@ -18736,12 +18746,16 @@ function g_({
|
|
|
18736
18746
|
_(() => {
|
|
18737
18747
|
E.current && (S.current = E.current);
|
|
18738
18748
|
}, [E, S]), _(() => {
|
|
18739
|
-
E.current && Object.keys(p).length > 0 && p.series && // On the initial render, data is null:
|
|
18749
|
+
if (E.current && Object.keys(p).length > 0 && p.series && // On the initial render, data is null:
|
|
18740
18750
|
// This leads for some reason in certain cases to an error in Highcharts on a subsequent render when activating TimeDrive
|
|
18741
18751
|
p.series.every((k) => {
|
|
18742
18752
|
const U = k;
|
|
18743
18753
|
return (U.type === "area" || U.type === "line") && Array.isArray(U.data);
|
|
18744
|
-
})
|
|
18754
|
+
})) {
|
|
18755
|
+
D.current ? !t && D.current.series.length === p.series.length ? D.current.update(p, !0, !0) : (D.current.destroy(), D.current = Gn.chart(E.current, p)) : D.current = Gn.chart(E.current, p), F2(D.current, m);
|
|
18756
|
+
const { width: k, height: U } = E.current.getBoundingClientRect();
|
|
18757
|
+
k > 0 && U > 0 && D.current.setSize(k, U, !1);
|
|
18758
|
+
}
|
|
18745
18759
|
}, [p, m, t, E]);
|
|
18746
18760
|
const T = e.type === "assetGroup", I = mI(a, s, C) || "";
|
|
18747
18761
|
return /* @__PURE__ */ f("div", { className: "di trend", "data-attribute-datapoints": R(), children: [
|
|
@@ -20989,7 +21003,7 @@ class XR extends x.Component {
|
|
|
20989
21003
|
] });
|
|
20990
21004
|
}
|
|
20991
21005
|
}
|
|
20992
|
-
const JR =
|
|
21006
|
+
const JR = nn()(XR);
|
|
20993
21007
|
function eO({ config: e, context: t, dashboard: s, onDelete: a, onChangeConfig: i }) {
|
|
20994
21008
|
const [r, o] = b(null), { openWidgetConfigKey: l, openConfig: c, closeConfig: d } = O(wt), u = l === e.key, p = () => {
|
|
20995
21009
|
c(e.key), o(e);
|
|
@@ -22957,7 +22971,7 @@ const HO = {
|
|
|
22957
22971
|
}
|
|
22958
22972
|
);
|
|
22959
22973
|
}, YO = Qe({
|
|
22960
|
-
loader: () => import("./Files-
|
|
22974
|
+
loader: () => import("./Files-B7r5BhB0.js")
|
|
22961
22975
|
}), QO = {
|
|
22962
22976
|
relativePath: "files",
|
|
22963
22977
|
label: {
|
|
@@ -23725,7 +23739,7 @@ const Pk = (e) => {
|
|
|
23725
23739
|
properties: aa(e.properties)
|
|
23726
23740
|
}), Rk = (e) => ({
|
|
23727
23741
|
...e,
|
|
23728
|
-
properties:
|
|
23742
|
+
properties: Jt(e.properties)
|
|
23729
23743
|
}), Ar = ({ editedAsset: e, isGateway: t, initialGatewayName: s, onSubmit: a, onCancel: i }) => {
|
|
23730
23744
|
const { t: r } = G(), [o, l] = b(
|
|
23731
23745
|
e?.assetDefinitionId
|
|
@@ -24085,29 +24099,29 @@ function Hk({
|
|
|
24085
24099
|
}
|
|
24086
24100
|
);
|
|
24087
24101
|
}
|
|
24088
|
-
function
|
|
24102
|
+
function Yt(e) {
|
|
24089
24103
|
return e.replace(/\./g, "_");
|
|
24090
24104
|
}
|
|
24091
24105
|
function Oh(e, t) {
|
|
24092
|
-
return `structuredDatapoint.fieldName.${
|
|
24106
|
+
return `structuredDatapoint.fieldName.${Yt(t)}.datapoint.${Yt(e)}.label`;
|
|
24093
24107
|
}
|
|
24094
24108
|
function qk(e) {
|
|
24095
|
-
return `structuredDatapoint.fieldName.${
|
|
24109
|
+
return `structuredDatapoint.fieldName.${Yt(e)}.label`;
|
|
24096
24110
|
}
|
|
24097
24111
|
function Zr({ datapointName: e, fieldName: t }) {
|
|
24098
24112
|
const { i18n: s } = G();
|
|
24099
24113
|
return s.exists(Oh(e, t)) ? /* @__PURE__ */ n(h, { i18nKey: Oh(e, t) }) : /* @__PURE__ */ n(h, { i18nKey: qk(t), children: t });
|
|
24100
24114
|
}
|
|
24101
24115
|
function kh(e, t, s) {
|
|
24102
|
-
return `structuredDatapoint.fieldValue.${
|
|
24116
|
+
return `structuredDatapoint.fieldValue.${Yt(s)}.fieldName.${Yt(t)}.datapoint.${Yt(
|
|
24103
24117
|
e
|
|
24104
24118
|
)}.label`;
|
|
24105
24119
|
}
|
|
24106
24120
|
function Gh(e, t) {
|
|
24107
|
-
return `structuredDatapoint.fieldValue.${
|
|
24121
|
+
return `structuredDatapoint.fieldValue.${Yt(t)}.fieldName.${Yt(e)}.label`;
|
|
24108
24122
|
}
|
|
24109
24123
|
function jk(e) {
|
|
24110
|
-
return `structuredDatapoint.fieldValue.${
|
|
24124
|
+
return `structuredDatapoint.fieldValue.${Yt(e)}.label`;
|
|
24111
24125
|
}
|
|
24112
24126
|
function Yr({
|
|
24113
24127
|
datapointName: e,
|
|
@@ -25135,7 +25149,7 @@ const AG = (e) => {
|
|
|
25135
25149
|
"Datapoints"
|
|
25136
25150
|
);
|
|
25137
25151
|
}, DG = Qe({
|
|
25138
|
-
loader: () => import("./DatapointImport-
|
|
25152
|
+
loader: () => import("./DatapointImport-D5MqlPlb.js")
|
|
25139
25153
|
});
|
|
25140
25154
|
function hy({ fetchDatapoints: e, createDatapoint: t, handle: s, addUnit: a }) {
|
|
25141
25155
|
const [i, r] = b([]), [o, l] = b(!1), [c, d] = b(!1);
|
|
@@ -26050,7 +26064,7 @@ function my({ children: e }) {
|
|
|
26050
26064
|
return /* @__PURE__ */ n(qc.Provider, { value: { units: t, addUnit: a }, children: e });
|
|
26051
26065
|
}
|
|
26052
26066
|
function QG(e, t) {
|
|
26053
|
-
const [s, a] = b(!1), [i, r] = b(), { connectionState: o } = O(Om), l = o !== "socket_connect", c = Ln(t), d =
|
|
26067
|
+
const [s, a] = b(!1), [i, r] = b(), { connectionState: o } = O(Om), l = o !== "socket_connect", c = Ln(t), d = rn(), u = pe(vc(d));
|
|
26054
26068
|
return _(() => {
|
|
26055
26069
|
l && (a(!0), u.current.fetchLastValues(e, c).then((p) => {
|
|
26056
26070
|
r(p), a(!1);
|
|
@@ -26870,7 +26884,7 @@ const NL = ({ asset: e, gateway: t, properties: s }) => {
|
|
|
26870
26884
|
const u = {
|
|
26871
26885
|
...e,
|
|
26872
26886
|
...d,
|
|
26873
|
-
properties:
|
|
26887
|
+
properties: Jt(d.properties)
|
|
26874
26888
|
};
|
|
26875
26889
|
try {
|
|
26876
26890
|
await PL(u), c !== e.gatewayId && await IL(u, c);
|
|
@@ -26913,7 +26927,7 @@ const NL = ({ asset: e, gateway: t, properties: s }) => {
|
|
|
26913
26927
|
childRoutes: [UL],
|
|
26914
26928
|
requiredAuthorities: ["READ_ASSET", "READ_ASSET_GROUP"]
|
|
26915
26929
|
}, VL = Qe({
|
|
26916
|
-
loader: () => import("./Files-
|
|
26930
|
+
loader: () => import("./Files-B7r5BhB0.js")
|
|
26917
26931
|
}), ML = {
|
|
26918
26932
|
relativePath: "files",
|
|
26919
26933
|
label: {
|
|
@@ -27655,7 +27669,7 @@ function y8({ modalVisible: e, setModalVisible: t, admin: s }) {
|
|
|
27655
27669
|
/* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(h, { i18nKey: "assets.map.marker.globalMapRules", children: "Global Map Rules" }) }),
|
|
27656
27670
|
o.map((w, P) => /* @__PURE__ */ f("div", { className: "map-marker-condition", children: [
|
|
27657
27671
|
/* @__PURE__ */ n(
|
|
27658
|
-
|
|
27672
|
+
Xt,
|
|
27659
27673
|
{
|
|
27660
27674
|
className: "map-marker-condition-name",
|
|
27661
27675
|
horizontal: !0,
|
|
@@ -27705,7 +27719,7 @@ function y8({ modalVisible: e, setModalVisible: t, admin: s }) {
|
|
|
27705
27719
|
/* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(h, { i18nKey: "assets.map.marker.customMapRules", children: "Own Map Rules" }) }),
|
|
27706
27720
|
a.map((w, P) => /* @__PURE__ */ f("div", { className: "map-marker-condition", children: [
|
|
27707
27721
|
/* @__PURE__ */ n(
|
|
27708
|
-
|
|
27722
|
+
Xt,
|
|
27709
27723
|
{
|
|
27710
27724
|
className: "map-marker-condition-name",
|
|
27711
27725
|
horizontal: !0,
|
|
@@ -28962,7 +28976,7 @@ class wy extends Pp {
|
|
|
28962
28976
|
}
|
|
28963
28977
|
}
|
|
28964
28978
|
function i3({ setting: e, ...t }) {
|
|
28965
|
-
const { control: s } = Ee(), { field: a } =
|
|
28979
|
+
const { control: s } = Ee(), { field: a } = en({ name: e.name, control: s }), [i, r] = b(
|
|
28966
28980
|
a.value ? e.single ? [a.value] : a.value : []
|
|
28967
28981
|
);
|
|
28968
28982
|
function o(g) {
|
|
@@ -29111,7 +29125,7 @@ function ei(e) {
|
|
|
29111
29125
|
return /^[+-]?\d+(\.\d+)?$/.test(e);
|
|
29112
29126
|
}
|
|
29113
29127
|
function r3({ setting: e, ...t }) {
|
|
29114
|
-
const { control: s } = Ee(), { field: a } =
|
|
29128
|
+
const { control: s } = Ee(), { field: a } = en({ name: e.name, control: s }), [i, r] = b(""), [o, l] = b(""), { t: c } = G();
|
|
29115
29129
|
_(() => {
|
|
29116
29130
|
if (a.value) {
|
|
29117
29131
|
const [p, m] = (a.value ?? "").split(",");
|
|
@@ -29196,7 +29210,7 @@ function o3({ setting: e, ...t }) {
|
|
|
29196
29210
|
) });
|
|
29197
29211
|
}
|
|
29198
29212
|
function jc(e) {
|
|
29199
|
-
const { control: t } = Ee(), { field: s } =
|
|
29213
|
+
const { control: t } = Ee(), { field: s } = en({ name: e, control: t });
|
|
29200
29214
|
return s.value !== void 0;
|
|
29201
29215
|
}
|
|
29202
29216
|
function Ny({ settingName: e, ...t }) {
|
|
@@ -29256,7 +29270,7 @@ function c3({ setting: e, ...t }) {
|
|
|
29256
29270
|
);
|
|
29257
29271
|
}
|
|
29258
29272
|
function d3({ setting: e, ...t }) {
|
|
29259
|
-
const { setValue: s, control: a } = Ee(), { field: i } =
|
|
29273
|
+
const { setValue: s, control: a } = Ee(), { field: i } = en({ name: e.name, control: a }), [r, o] = b(i.value?.split(",") ?? "");
|
|
29260
29274
|
return _(() => {
|
|
29261
29275
|
o(i.value?.split(",") ?? "");
|
|
29262
29276
|
}, [i.value]), /* @__PURE__ */ n(B, { label: /* @__PURE__ */ n(h, { i18nKey: `appSettings.property.${e.name}`, children: e.name }), children: /* @__PURE__ */ n("ul", { children: e.options.map((l) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
@@ -29329,7 +29343,7 @@ function h3({ setting: e }) {
|
|
|
29329
29343
|
] });
|
|
29330
29344
|
}
|
|
29331
29345
|
function p3({ setting: e, ...t }) {
|
|
29332
|
-
const { setValue: s, control: a } = Ee(), { field: i } =
|
|
29346
|
+
const { setValue: s, control: a } = Ee(), { field: i } = en({ name: e.name, control: a }), [r, o] = b([]), [l, c] = b(!1);
|
|
29333
29347
|
_(() => {
|
|
29334
29348
|
!l && i.value && (c(!0), Array.isArray(i.value) && i.value.every(
|
|
29335
29349
|
(m) => typeof m.reportHeading == "string" && typeof m.reportId == "string" && typeof m.workspaceId == "string"
|
|
@@ -30101,7 +30115,7 @@ function V3({ setting: e }) {
|
|
|
30101
30115
|
formState: { errors: s }
|
|
30102
30116
|
} = Ee(), { t: a } = G(), [i, r] = b(!1), [o, l] = b(!1), [c, d] = b(), {
|
|
30103
30117
|
field: { value: u, onChange: p }
|
|
30104
|
-
} =
|
|
30118
|
+
} = en({ name: e.name, control: t }), m = vr(), g = m.get("category"), y = m.get("showModal");
|
|
30105
30119
|
_(() => {
|
|
30106
30120
|
g === "roles" && y === "true" && r(!0);
|
|
30107
30121
|
}, [g, y]);
|
|
@@ -30415,7 +30429,7 @@ function Y3({ setting: e, ...t }) {
|
|
|
30415
30429
|
}
|
|
30416
30430
|
);
|
|
30417
30431
|
}
|
|
30418
|
-
const Q3 = _p(() => import("./JsonSettingWidget-
|
|
30432
|
+
const Q3 = _p(() => import("./JsonSettingWidget-Dmoshz7m.js")), no = Si.filter(
|
|
30419
30433
|
({ name: e }) => Object.values(ol).every((t) => !t.includes(e))
|
|
30420
30434
|
);
|
|
30421
30435
|
function so({ setting: e, ...t }) {
|
|
@@ -32096,7 +32110,7 @@ function mx({ disabled: e, type: t, index: s }) {
|
|
|
32096
32110
|
const {
|
|
32097
32111
|
field: { value: a, onChange: i, onBlur: r },
|
|
32098
32112
|
formState: { errors: o }
|
|
32099
|
-
} =
|
|
32113
|
+
} = en({
|
|
32100
32114
|
name: `selectedProperties.${s}.value`
|
|
32101
32115
|
}), l = o.selectedProperties?.[s]?.value?.message;
|
|
32102
32116
|
switch (t) {
|
|
@@ -33146,7 +33160,7 @@ function ti(e, t) {
|
|
|
33146
33160
|
const Yy = ({ urn: e, name: t }) => ({ id: e, name: t }), Qy = ({ id: e, displayName: t }) => ({ id: String(e), name: t || "" }), Xy = ({ number: e, name: t }) => ({ id: e, name: t ?? "" }), Jy = ({ id: e, name: t }) => ({ id: String(e), name: t }), lV = {
|
|
33147
33161
|
asset: ti(An, Yy),
|
|
33148
33162
|
account: ti(Ri, Xy),
|
|
33149
|
-
accountGroup: ti(
|
|
33163
|
+
accountGroup: ti(tn, Jy),
|
|
33150
33164
|
assetGroup: ti(Bt, Qy)
|
|
33151
33165
|
}, cV = {
|
|
33152
33166
|
asset: (e) => Kl(e).then(Yy),
|
|
@@ -33716,7 +33730,7 @@ const mp = Te({
|
|
|
33716
33730
|
] })
|
|
33717
33731
|
}
|
|
33718
33732
|
);
|
|
33719
|
-
}, wV = async (e, t) =>
|
|
33733
|
+
}, wV = async (e, t) => tn(e, {
|
|
33720
33734
|
page: Math.floor(t / 10),
|
|
33721
33735
|
size: 10,
|
|
33722
33736
|
sort: {
|
|
@@ -34146,9 +34160,9 @@ var UV = function(t) {
|
|
|
34146
34160
|
})));
|
|
34147
34161
|
};
|
|
34148
34162
|
const xV = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(Et, { pathname: e }) }), VV = Qe({
|
|
34149
|
-
loader: () => import("./BundleManagementContainer-
|
|
34163
|
+
loader: () => import("./BundleManagementContainer-pF44tpPR.js")
|
|
34150
34164
|
}), MV = Qe({
|
|
34151
|
-
loader: () => import("./BundlesContainer-
|
|
34165
|
+
loader: () => import("./BundlesContainer-CZ70n2vt.js")
|
|
34152
34166
|
}), KV = {
|
|
34153
34167
|
relativePath: "bundles",
|
|
34154
34168
|
label: {
|
|
@@ -34612,19 +34626,19 @@ var dM = function(t) {
|
|
|
34612
34626
|
})));
|
|
34613
34627
|
};
|
|
34614
34628
|
const uM = Qe({
|
|
34615
|
-
loader: () => import("./LicensesEditPage-
|
|
34629
|
+
loader: () => import("./LicensesEditPage-C8vTjupQ.js")
|
|
34616
34630
|
}), hM = {
|
|
34617
34631
|
relativePath: "create",
|
|
34618
34632
|
component: uM,
|
|
34619
34633
|
requiredAuthorities: ["MANAGE_LICENSES"]
|
|
34620
34634
|
}, pM = Qe({
|
|
34621
|
-
loader: () => import("./LicensesEditPage-
|
|
34635
|
+
loader: () => import("./LicensesEditPage-C8vTjupQ.js")
|
|
34622
34636
|
}), fM = {
|
|
34623
34637
|
relativePath: ":licenseName",
|
|
34624
34638
|
component: pM,
|
|
34625
34639
|
requiredAuthorities: ["MANAGE_LICENSES"]
|
|
34626
34640
|
}, mM = Qe({
|
|
34627
|
-
loader: () => import("./LicensesList-
|
|
34641
|
+
loader: () => import("./LicensesList-yByygj9U.js")
|
|
34628
34642
|
}), gM = {
|
|
34629
34643
|
relativePath: "licenses",
|
|
34630
34644
|
label: {
|
|
@@ -34667,19 +34681,19 @@ var AM = function(t) {
|
|
|
34667
34681
|
})));
|
|
34668
34682
|
};
|
|
34669
34683
|
const bM = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(Et, { pathname: e }) }), vM = Qe({
|
|
34670
|
-
loader: () => import("./PropertiesEditPage-
|
|
34684
|
+
loader: () => import("./PropertiesEditPage-W9i-93un.js")
|
|
34671
34685
|
}), SM = {
|
|
34672
34686
|
relativePath: "create",
|
|
34673
34687
|
component: vM,
|
|
34674
34688
|
requiredAuthorities: ["CREATE_PROPERTY"]
|
|
34675
34689
|
}, TM = Qe({
|
|
34676
|
-
loader: () => import("./PropertiesEditPage-
|
|
34690
|
+
loader: () => import("./PropertiesEditPage-W9i-93un.js")
|
|
34677
34691
|
}), CM = {
|
|
34678
34692
|
relativePath: ":propertyKey",
|
|
34679
34693
|
component: TM,
|
|
34680
34694
|
requiredAuthorities: ["UPDATE_PROPERTY"]
|
|
34681
34695
|
}, EM = Qe({
|
|
34682
|
-
loader: () => import("./PropertiesList-
|
|
34696
|
+
loader: () => import("./PropertiesList-BoqIna7m.js")
|
|
34683
34697
|
}), DM = {
|
|
34684
34698
|
relativePath: "properties",
|
|
34685
34699
|
label: {
|
|
@@ -34714,13 +34728,13 @@ var wM = function(t) {
|
|
|
34714
34728
|
})));
|
|
34715
34729
|
};
|
|
34716
34730
|
const NM = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(Et, { pathname: e }) }), IM = Qe({
|
|
34717
|
-
loader: () => import("./TemplateEditPage-
|
|
34731
|
+
loader: () => import("./TemplateEditPage-D9OFIKqk.js")
|
|
34718
34732
|
}), PM = {
|
|
34719
34733
|
relativePath: ":templateId",
|
|
34720
34734
|
component: IM,
|
|
34721
34735
|
requiredAuthorities: ["WRITE_NOTIFICATION_TEMPLATE"]
|
|
34722
34736
|
}, _M = Qe({
|
|
34723
|
-
loader: () => import("./TemplatesListPage-
|
|
34737
|
+
loader: () => import("./TemplatesListPage-7VM9CVDI.js")
|
|
34724
34738
|
}), RM = {
|
|
34725
34739
|
relativePath: "list",
|
|
34726
34740
|
label: {
|
|
@@ -34741,7 +34755,7 @@ const NM = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */
|
|
|
34741
34755
|
requiredAuthorities: ["READ_NOTIFICATION_TEMPLATE", "WRITE_NOTIFICATION_TEMPLATE"],
|
|
34742
34756
|
contextAction: NM
|
|
34743
34757
|
}, kM = Qe({
|
|
34744
|
-
loader: () => import("./UserGroupAssignments-
|
|
34758
|
+
loader: () => import("./UserGroupAssignments-Ce4pvexW.js")
|
|
34745
34759
|
}), GM = {
|
|
34746
34760
|
relativePath: "user-group-assignments",
|
|
34747
34761
|
label: {
|
|
@@ -34830,7 +34844,7 @@ const xM = () => /* @__PURE__ */ n(
|
|
|
34830
34844
|
children: /* @__PURE__ */ n(W, { fullscreen: !0, large: !0 })
|
|
34831
34845
|
}
|
|
34832
34846
|
), VM = Qe({
|
|
34833
|
-
loader: () => import("./GlobalPowerBiReports-
|
|
34847
|
+
loader: () => import("./GlobalPowerBiReports-BFCqFXrG.js")
|
|
34834
34848
|
}), MM = {
|
|
34835
34849
|
relativePath: "powerbi",
|
|
34836
34850
|
label: {
|
|
@@ -35169,7 +35183,7 @@ const HM = {
|
|
|
35169
35183
|
}
|
|
35170
35184
|
)
|
|
35171
35185
|
] }),
|
|
35172
|
-
children: /* @__PURE__ */ n(
|
|
35186
|
+
children: /* @__PURE__ */ n(Xt, { disabled: !0, value: s, onChange: () => {
|
|
35173
35187
|
} })
|
|
35174
35188
|
}
|
|
35175
35189
|
),
|
|
@@ -35178,7 +35192,7 @@ const HM = {
|
|
|
35178
35192
|
{
|
|
35179
35193
|
size: "full-width",
|
|
35180
35194
|
label: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(h, { i18nKey: "user.showWelcomeModalAtStart", children: "Show the Welcome modal at start" }) }),
|
|
35181
|
-
children: /* @__PURE__ */ n(
|
|
35195
|
+
children: /* @__PURE__ */ n(Xt, { disabled: !0, value: i, onChange: () => {
|
|
35182
35196
|
} })
|
|
35183
35197
|
}
|
|
35184
35198
|
),
|
|
@@ -35237,7 +35251,7 @@ function cA(e, t, s, a, i) {
|
|
|
35237
35251
|
}
|
|
35238
35252
|
const YM = async (e) => {
|
|
35239
35253
|
if (e.length) {
|
|
35240
|
-
const { content: t } = await
|
|
35254
|
+
const { content: t } = await tn(`id:(${e.join(" OR ")})`, {
|
|
35241
35255
|
page: 0,
|
|
35242
35256
|
size: e.length,
|
|
35243
35257
|
sort: {
|
|
@@ -35252,7 +35266,7 @@ const YM = async (e) => {
|
|
|
35252
35266
|
const t = { EMAIL: [{ name: "" }] };
|
|
35253
35267
|
return e.username && $.getAccountCreationPrinciple() !== "email" && (t.USERNAME = [{ name: e.username }]), e.email && (t.EMAIL = [{ name: e.email }]), t;
|
|
35254
35268
|
}, QM = (e, t) => {
|
|
35255
|
-
const s =
|
|
35269
|
+
const s = Jt(
|
|
35256
35270
|
t ? {
|
|
35257
35271
|
...e.properties,
|
|
35258
35272
|
_showWelcomeModal: !0
|
|
@@ -35277,7 +35291,7 @@ const YM = async (e) => {
|
|
|
35277
35291
|
timezone: t.timezone,
|
|
35278
35292
|
accountGroupIds: t.accountGroupIds,
|
|
35279
35293
|
roleIds: t.roleIds,
|
|
35280
|
-
properties: { ...e.properties, ...
|
|
35294
|
+
properties: { ...e.properties, ...Jt(t.properties) },
|
|
35281
35295
|
principals: dA(t)
|
|
35282
35296
|
}), hA = (e) => ({
|
|
35283
35297
|
displayName: e.displayName ?? "",
|
|
@@ -35771,7 +35785,7 @@ const pK = {
|
|
|
35771
35785
|
)
|
|
35772
35786
|
] }),
|
|
35773
35787
|
children: /* @__PURE__ */ n(
|
|
35774
|
-
|
|
35788
|
+
Xt,
|
|
35775
35789
|
{
|
|
35776
35790
|
"data-testid": "subscribe-to-release-notes-switch",
|
|
35777
35791
|
value: a,
|
|
@@ -35787,7 +35801,7 @@ const pK = {
|
|
|
35787
35801
|
"data-testid": "property-showWelcomeModalAtStart",
|
|
35788
35802
|
label: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(h, { i18nKey: "user.showWelcomeModalAtStart", children: "Show the Welcome Modal at start" }) }),
|
|
35789
35803
|
children: /* @__PURE__ */ n(
|
|
35790
|
-
|
|
35804
|
+
Xt,
|
|
35791
35805
|
{
|
|
35792
35806
|
"data-testid": "show-welcome-modal-at-start-switch",
|
|
35793
35807
|
value: i === void 0 || i,
|
|
@@ -36617,7 +36631,7 @@ const KK = () => ({
|
|
|
36617
36631
|
return To ? To(t, e) : t;
|
|
36618
36632
|
};
|
|
36619
36633
|
async function qK(e, t) {
|
|
36620
|
-
return e.trim().length ?
|
|
36634
|
+
return e.trim().length ? tn(e, t) : { ...await z0(t), totalElementsAccurate: !0 };
|
|
36621
36635
|
}
|
|
36622
36636
|
const ed = async (e, t) => {
|
|
36623
36637
|
const s = await qK(e, t), a = s.content, i = a.flatMap((o) => o.roleIds), r = [...new Set(i)].filter(Z);
|
|
@@ -36874,7 +36888,7 @@ function CA(e) {
|
|
|
36874
36888
|
return [
|
|
36875
36889
|
{
|
|
36876
36890
|
...e,
|
|
36877
|
-
properties:
|
|
36891
|
+
properties: Jt(e.properties)
|
|
36878
36892
|
},
|
|
36879
36893
|
e.roleIds
|
|
36880
36894
|
];
|
|
@@ -37116,7 +37130,7 @@ const uB = "usergroupsAssignedUsers", DA = {
|
|
|
37116
37130
|
};
|
|
37117
37131
|
rd.contextType = Ie;
|
|
37118
37132
|
let Cl = rd;
|
|
37119
|
-
const hB =
|
|
37133
|
+
const hB = nn()(Cl), pB = (e, t) => Z0(e, t).catch((s) => {
|
|
37120
37134
|
throw console.error(`failed to assign Users to asset group with id ${e.id}`, s), s;
|
|
37121
37135
|
}), fB = (e, t) => Y0(e, t).catch((s) => {
|
|
37122
37136
|
throw console.error(`failed to assign Users to asset group with id ${e.id}`, s), s;
|
|
@@ -37305,7 +37319,7 @@ const hB = tn()(Cl), pB = (e, t) => Z0(e, t).catch((s) => {
|
|
|
37305
37319
|
};
|
|
37306
37320
|
od.contextType = Ie;
|
|
37307
37321
|
let El = od;
|
|
37308
|
-
const bB = ma(
|
|
37322
|
+
const bB = ma(nn()(El)), vB = {
|
|
37309
37323
|
relativePath: "edit",
|
|
37310
37324
|
component: bB,
|
|
37311
37325
|
requiredAuthorities: ["UPDATE_ACCOUNT"]
|
|
@@ -37679,7 +37693,7 @@ const $B = (e, t, s) => {
|
|
|
37679
37693
|
)
|
|
37680
37694
|
}), _A = (e) => ({
|
|
37681
37695
|
fields: Da,
|
|
37682
|
-
search: (t, s) =>
|
|
37696
|
+
search: (t, s) => tn(Ye(e, !1)(t), s)
|
|
37683
37697
|
}), WB = (e) => e.map((t) => `(${t.requiredAssetGroups.join(" AND ")})`).join(" OR "), io = {
|
|
37684
37698
|
page: 0,
|
|
37685
37699
|
size: 1,
|
|
@@ -38490,7 +38504,7 @@ var b5 = function(t) {
|
|
|
38490
38504
|
})));
|
|
38491
38505
|
};
|
|
38492
38506
|
const v5 = Qe({
|
|
38493
|
-
loader: () => import("./UserGroupTheme-
|
|
38507
|
+
loader: () => import("./UserGroupTheme-CXQyYGco.js")
|
|
38494
38508
|
}), S5 = {
|
|
38495
38509
|
relativePath: "theme",
|
|
38496
38510
|
label: {
|
|
@@ -38861,7 +38875,7 @@ const x5 = {
|
|
|
38861
38875
|
}, V5 = ["INVITED", "TERMS_ACCEPTANCE_PENDING"], M5 = (e) => e.pendingInvitation || V5.includes(e.state), K5 = ({ user: e, roleIds: t, properties: s, isCurrentUser: a, userGroupIds: i }) => {
|
|
38862
38876
|
const { t: r } = G(), [o, l] = b(void 0), [c, d] = b(!1), u = {
|
|
38863
38877
|
fields: Da,
|
|
38864
|
-
search: (A, v) =>
|
|
38878
|
+
search: (A, v) => tn(Ye(i, !1)(A), v).then((S) => (A === "" && l(S.totalElements), S))
|
|
38865
38879
|
}, [p, m] = b(!1);
|
|
38866
38880
|
_(() => () => {
|
|
38867
38881
|
st("UserForm");
|
|
@@ -39244,7 +39258,7 @@ export {
|
|
|
39244
39258
|
Xi as aT,
|
|
39245
39259
|
s6 as aU,
|
|
39246
39260
|
ft as aV,
|
|
39247
|
-
|
|
39261
|
+
rn as aW,
|
|
39248
39262
|
bc as aX,
|
|
39249
39263
|
w2 as aY,
|
|
39250
39264
|
xa as aZ,
|
|
@@ -39322,7 +39336,7 @@ export {
|
|
|
39322
39336
|
vr as bf,
|
|
39323
39337
|
W3 as bg,
|
|
39324
39338
|
br as bh,
|
|
39325
|
-
|
|
39339
|
+
nn as bi,
|
|
39326
39340
|
Hl as bj,
|
|
39327
39341
|
Pd as bk,
|
|
39328
39342
|
h1 as bl,
|
|
@@ -39377,4 +39391,4 @@ export {
|
|
|
39377
39391
|
Ie as y,
|
|
39378
39392
|
dS as z
|
|
39379
39393
|
};
|
|
39380
|
-
//# sourceMappingURL=setTitle-
|
|
39394
|
+
//# sourceMappingURL=setTitle-DZyXA3i8.js.map
|