@deviceinsight/ng-ui-scale-lib 9.18.8 → 9.20.0
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-a02b50a1.js → AccessEditModal-ee0139fb.js} +24 -23
- package/dist/BundleManagementContainer-093786e5.js +20 -0
- package/dist/{BundlesContainer-498d7121.js → BundlesContainer-54c9cc3a.js} +114 -110
- package/dist/{ContextBarContext-f2968fee.js → ContextBarContext-0c28ce9d.js} +38292 -46174
- package/dist/{DatapointImport-0610eed8.js → DatapointImport-6d394cb5.js} +126 -122
- package/dist/{FileUploadInput-aea4f866.js → FileUploadInput-a23ba785.js} +3 -3
- package/dist/{Files-25853de9.js → Files-4fc0415e.js} +23 -19
- package/dist/GlobalPowerBiReports-f9bf0765.js +11079 -0
- package/dist/{Graph-ad8ad6f9.js → Graph-2840eac2.js} +4 -1
- package/dist/JsonSettingWidget-8908d40b.js +57 -0
- package/dist/{LicensesEditPage-e6c71c43.js → LicensesEditPage-3332b87c.js} +33 -30
- package/dist/{LicensesList-d28c9799.js → LicensesList-6254cd37.js} +17 -13
- package/dist/{PropertiesEditPage-85bc5517.js → PropertiesEditPage-5b148652.js} +24 -21
- package/dist/{PropertiesList-fcf0d837.js → PropertiesList-06478803.js} +17 -13
- package/dist/{TemplateEditPage-a34efc41.js → TemplateEditPage-94088888.js} +28 -23
- package/dist/TemplateTextInput-e8861a0f.js +50 -0
- package/dist/{TemplatesListPage-ce7fea1d.js → TemplatesListPage-866246c6.js} +55 -51
- package/dist/{UserGroupAssignments-8fd3c47d.js → UserGroupAssignments-6feae326.js} +36 -32
- package/dist/{UserGroupTheme-0e8a16c4.js → UserGroupTheme-7ee8e92e.js} +14 -11
- package/dist/api.d.ts +3 -0
- package/dist/api.js +59 -56
- package/dist/{index-e2b27256.js → index-34a2015c.js} +7 -7
- package/dist/index.js +2761 -2765
- package/dist/objectWithoutPropertiesLoose-a4604547.js +26 -0
- package/dist/{react-router-7b367edf.js → react-router-d38ecdf4.js} +113 -108
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/BundleManagementContainer-dbac0259.js +0 -17
- package/dist/GlobalPowerBiReports-06c92d0e.js +0 -11078
- package/dist/JsonSettingWidget-c471537a.js +0 -54
- package/dist/TemplateTextInput-fe5912e7.js +0 -47
- package/dist/extends-0a3e0827.js +0 -13
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aw as s, c$ as f, d0 as v, ag as c, d1 as g, aj as C, ax as x, d2 as l, ae as r, d3 as w, d4 as P } from "./ContextBarContext-0c28ce9d.js";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import { useContext as S } from "react";
|
|
4
|
-
import { P as T } from "./react-router-
|
|
5
|
-
import { Button as
|
|
4
|
+
import { P as T } from "./react-router-d38ecdf4.js";
|
|
5
|
+
import { Button as u, ButtonRow as j, SpinnerContainer as U } from "@deviceinsight/ng-ui-basic-components";
|
|
6
6
|
import { GradientColorPicker as y, ContentHeader as D } from "@deviceinsight/ng-ui-components";
|
|
7
|
+
import "react-i18next";
|
|
7
8
|
import "react-router-dom";
|
|
9
|
+
import "i18next";
|
|
8
10
|
import "@deviceinsight/ng-ui-api-client";
|
|
11
|
+
import "ux4iot-react";
|
|
9
12
|
import "react-dom";
|
|
10
|
-
import "./
|
|
11
|
-
const
|
|
13
|
+
import "./objectWithoutPropertiesLoose-a4604547.js";
|
|
14
|
+
const p = (o) => ("0" + parseInt(o).toString(16)).slice(-2), b = (o) => {
|
|
12
15
|
if (o.includes("#"))
|
|
13
16
|
return o;
|
|
14
17
|
const e = o.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
|
|
15
|
-
return e && e.length === 4 ? `#${
|
|
18
|
+
return e && e.length === 4 ? `#${p(e[1])}${p(e[2])}${p(e[3])}` : "";
|
|
16
19
|
}, I = "#0077bb";
|
|
17
20
|
class L extends d.PureComponent {
|
|
18
21
|
constructor() {
|
|
@@ -52,7 +55,7 @@ class L extends d.PureComponent {
|
|
|
52
55
|
}
|
|
53
56
|
),
|
|
54
57
|
t && /* @__PURE__ */ s.jsx(
|
|
55
|
-
|
|
58
|
+
u,
|
|
56
59
|
{
|
|
57
60
|
onClick: this.handleUnset,
|
|
58
61
|
style: {
|
|
@@ -165,8 +168,8 @@ class O extends d.PureComponent {
|
|
|
165
168
|
}
|
|
166
169
|
),
|
|
167
170
|
/* @__PURE__ */ s.jsxs(j, { dividing: !0, children: [
|
|
168
|
-
/* @__PURE__ */ s.jsx(
|
|
169
|
-
/* @__PURE__ */ s.jsx(
|
|
171
|
+
/* @__PURE__ */ s.jsx(u, { primary: !0, disabled: !n, onClick: this.handleSubmit, children: /* @__PURE__ */ s.jsx(c, { i18nKey: "usergroups.detail.theme.save", children: "Save" }) }),
|
|
172
|
+
/* @__PURE__ */ s.jsx(u, { disabled: !n, onClick: this.togglePreview, children: e ? /* @__PURE__ */ s.jsx(c, { i18nKey: "usergroups.detail.theme.preview", children: "Stop Preview" }) : /* @__PURE__ */ s.jsx(c, { i18nKey: "usergroups.detail.theme.preview", children: "Preview" }) })
|
|
170
173
|
] })
|
|
171
174
|
] });
|
|
172
175
|
}
|
|
@@ -247,7 +250,7 @@ class F extends d.PureComponent {
|
|
|
247
250
|
] });
|
|
248
251
|
}
|
|
249
252
|
}
|
|
250
|
-
const
|
|
253
|
+
const N = ({ usergroup: { id: o } }) => {
|
|
251
254
|
const { user: e } = S(x), t = (i) => {
|
|
252
255
|
if (e)
|
|
253
256
|
return e.accountGroupIds.includes(i);
|
|
@@ -276,5 +279,5 @@ const B = ({ usergroup: { id: o } }) => {
|
|
|
276
279
|
);
|
|
277
280
|
};
|
|
278
281
|
export {
|
|
279
|
-
|
|
282
|
+
N as default
|
|
280
283
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -616,6 +616,7 @@ type RoleTemplate = {
|
|
|
616
616
|
*/
|
|
617
617
|
declare class UIConfiguration {
|
|
618
618
|
appConfiguration: AppConfigurationBundle | null | undefined;
|
|
619
|
+
private storedConfiguration;
|
|
619
620
|
syncWithBackend(uiConfiguration: Record<string, any>): Promise<any>;
|
|
620
621
|
getAppName(): string;
|
|
621
622
|
getFavicon(): string;
|
|
@@ -700,6 +701,8 @@ declare class UIConfiguration {
|
|
|
700
701
|
getPrimaryColorAvoidingGray(): string;
|
|
701
702
|
getUx4IotGrantRequestEndpoint(): string;
|
|
702
703
|
isTestTenant(): boolean;
|
|
704
|
+
private getConfigurationValue;
|
|
705
|
+
getDefaultPlotType(): 'step' | 'line' | 'line-area' | 'step-area' | null;
|
|
703
706
|
}
|
|
704
707
|
declare const _default$1: UIConfiguration;
|
|
705
708
|
|
package/dist/api.js
CHANGED
|
@@ -1,84 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { m as
|
|
4
|
-
import { getAxios as
|
|
5
|
-
import { s as
|
|
1
|
+
import { ai as a, ax as n, aw as i, aN as r, bF as m, cB as c, cC as u, am as f, co as C, bq as d, cD as p } from "./ContextBarContext-0c28ce9d.js";
|
|
2
|
+
import { aQ as G, bv as H, af as V, ae as w, ag as J, cF as K, ad as M, cG as Z, cE as j, cT as k, aJ as q, aX as Q, cJ as W, cK as X, cQ as Y, cR as $, cO as z, cV as ee, cN as se, cP as te, cI as oe, cL as ae, cM as ne, cH as ie, cS as re, as as me, cU as ce, cW as ue, ac as fe, c2 as Ce, ah as de, bY as pe } from "./ContextBarContext-0c28ce9d.js";
|
|
3
|
+
import { m as Ae, a as ye } from "./useCanDeleteBundleVersion-64f35949.js";
|
|
4
|
+
import { getAxios as l } from "@deviceinsight/ng-ui-api-client";
|
|
5
|
+
import { s as xe } from "./customFileCategories-1b64ed45.js";
|
|
6
6
|
import { useContext as t, useEffect as A } from "react";
|
|
7
7
|
import "react-router-dom";
|
|
8
8
|
import "@deviceinsight/ng-ui-basic-components";
|
|
9
9
|
import "@deviceinsight/ng-ui-components";
|
|
10
|
+
import "react-i18next";
|
|
11
|
+
import "i18next";
|
|
12
|
+
import "ux4iot-react";
|
|
10
13
|
import "react-dom";
|
|
11
|
-
const
|
|
14
|
+
const N = (e) => a({
|
|
12
15
|
REACT_APP_TENANT_LOCIZE_PROJECT_ID: e.projectId,
|
|
13
16
|
REACT_APP_TENANT_LOCIZE_API_KEY: e.apiKey,
|
|
14
17
|
REACT_APP_TENANT_LOCIZE_VERSION: e.version
|
|
15
|
-
}),
|
|
16
|
-
function
|
|
18
|
+
}), R = () => l();
|
|
19
|
+
function b() {
|
|
17
20
|
const { user: e } = t(n);
|
|
18
21
|
return e;
|
|
19
22
|
}
|
|
20
|
-
function
|
|
23
|
+
function v({ className: e, icon: s, ...o }) {
|
|
21
24
|
return /* @__PURE__ */ i.jsx("button", { className: r(e, "tool"), ...o, children: s });
|
|
22
25
|
}
|
|
23
|
-
function
|
|
24
|
-
const { addItem: s } = t(
|
|
26
|
+
function B({ children: e }) {
|
|
27
|
+
const { addItem: s } = t(m);
|
|
25
28
|
return A(() => s(e), [s, e]), null;
|
|
26
29
|
}
|
|
27
|
-
function
|
|
28
|
-
return console.warn("Don't use setFavicon. This function is deprecated"),
|
|
30
|
+
function S(e) {
|
|
31
|
+
return console.warn("Don't use setFavicon. This function is deprecated"), c(e, !0);
|
|
29
32
|
}
|
|
30
|
-
function
|
|
31
|
-
return console.warn("Don't use setPrimaryColor. This function is deprecated"),
|
|
33
|
+
function U(e) {
|
|
34
|
+
return console.warn("Don't use setPrimaryColor. This function is deprecated"), u(e, !0);
|
|
32
35
|
}
|
|
33
|
-
const
|
|
36
|
+
const F = {
|
|
34
37
|
onSignin: f,
|
|
35
38
|
onSignout: C,
|
|
36
39
|
onThemeChange: d,
|
|
37
|
-
onUserProfileChange:
|
|
40
|
+
onUserProfileChange: p
|
|
38
41
|
};
|
|
39
42
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
v as ContextBarAction,
|
|
44
|
+
B as ContextBarActionContainer,
|
|
45
|
+
G as HasAuthorities,
|
|
43
46
|
H as RouteApi,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
V as StyleApi,
|
|
48
|
+
w as ThemeApi,
|
|
49
|
+
J as Trans,
|
|
50
|
+
K as TranslationApi,
|
|
48
51
|
M as UiConfigurationApi,
|
|
49
52
|
Z as addCustomHeaderElement,
|
|
50
53
|
j as addI18nextXHRBackend,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
54
|
+
F as eventBus,
|
|
55
|
+
k as generateAssetUrn,
|
|
56
|
+
R as getNguiAxios,
|
|
57
|
+
q as getStartPage,
|
|
58
|
+
Q as hasAuthorities,
|
|
59
|
+
W as modifyAssetColumnDefinitions,
|
|
60
|
+
X as modifyAssetGroupColumnDefinitions,
|
|
61
|
+
Ae as modifyCanDeleteBundle,
|
|
62
|
+
ye as modifyCanDeleteBundleVersion,
|
|
63
|
+
Y as modifyChildAssetGroupsInitialSort,
|
|
64
|
+
$ as modifyCustomSearchProperties,
|
|
65
|
+
z as modifyDashboardWidgets,
|
|
66
|
+
ee as modifyIsDashboardVisible,
|
|
67
|
+
se as modifyMapMarkerIcon,
|
|
68
|
+
te as modifyPropertyVisibility,
|
|
69
|
+
oe as modifyRoutes,
|
|
70
|
+
ae as modifyUserColumnDefinitions,
|
|
71
|
+
ne as modifyUserGroupColumnDefinitions,
|
|
72
|
+
ie as removeCustomHeaderElement,
|
|
73
|
+
re as replaceComponent,
|
|
74
|
+
me as retrieveAuthInfo,
|
|
75
|
+
ce as setContextInfo,
|
|
76
|
+
xe as setCustomFilesCategories,
|
|
77
|
+
ue as setCustomLoginPageElement,
|
|
75
78
|
a as setEnvironment,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
S as setFavicon,
|
|
80
|
+
N as setLocizeProject,
|
|
81
|
+
U as setPrimaryColor,
|
|
82
|
+
fe as setTitle,
|
|
83
|
+
Ce as useAssetTimezone,
|
|
84
|
+
de as useTranslation,
|
|
85
|
+
b as useUserAccountInfo,
|
|
86
|
+
pe as ux4iotGrantRequestFunction
|
|
84
87
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as eu, _ as tu } from "./objectWithoutPropertiesLoose-a4604547.js";
|
|
2
|
+
import { useState as vs, useEffect as Vt, forwardRef as iu, useRef as nu, useImperativeHandle as su } from "react";
|
|
3
|
+
import { aw as ru } from "./ContextBarContext-0c28ce9d.js";
|
|
4
4
|
let sr = [], _a = [];
|
|
5
5
|
(() => {
|
|
6
6
|
let n = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
|
|
@@ -16875,7 +16875,7 @@ function xb(n) {
|
|
|
16875
16875
|
setContainer: R
|
|
16876
16876
|
};
|
|
16877
16877
|
}
|
|
16878
|
-
var Qb = ["className", "value", "selection", "extensions", "onChange", "onStatistics", "onCreateEditor", "onUpdate", "autoFocus", "theme", "height", "minHeight", "maxHeight", "width", "minWidth", "maxWidth", "basicSetup", "placeholder", "indentWithTab", "editable", "readOnly", "root", "initialState"], Nf = /* @__PURE__ */
|
|
16878
|
+
var Qb = ["className", "value", "selection", "extensions", "onChange", "onStatistics", "onCreateEditor", "onUpdate", "autoFocus", "theme", "height", "minHeight", "maxHeight", "width", "minWidth", "maxWidth", "basicSetup", "placeholder", "indentWithTab", "editable", "readOnly", "root", "initialState"], Nf = /* @__PURE__ */ iu((n, e) => {
|
|
16879
16879
|
var {
|
|
16880
16880
|
className: t,
|
|
16881
16881
|
value: i = "",
|
|
@@ -16900,7 +16900,7 @@ var Qb = ["className", "value", "selection", "extensions", "onChange", "onStatis
|
|
|
16900
16900
|
readOnly: k,
|
|
16901
16901
|
root: $,
|
|
16902
16902
|
initialState: R
|
|
16903
|
-
} = n, A =
|
|
16903
|
+
} = n, A = eu(n, Qb), E = nu(null), {
|
|
16904
16904
|
state: D,
|
|
16905
16905
|
view: T,
|
|
16906
16906
|
container: B,
|
|
@@ -16930,14 +16930,14 @@ var Qb = ["className", "value", "selection", "extensions", "onChange", "onStatis
|
|
|
16930
16930
|
extensions: r,
|
|
16931
16931
|
initialState: R
|
|
16932
16932
|
});
|
|
16933
|
-
if (
|
|
16933
|
+
if (su(e, () => ({
|
|
16934
16934
|
editor: E.current,
|
|
16935
16935
|
state: D,
|
|
16936
16936
|
view: T
|
|
16937
16937
|
}), [E, B, D, T]), typeof i != "string")
|
|
16938
16938
|
throw new Error("value must be typeof string but got " + typeof i);
|
|
16939
16939
|
var Y = typeof f == "string" ? "cm-theme-" + f : "cm-theme";
|
|
16940
|
-
return /* @__PURE__ */
|
|
16940
|
+
return /* @__PURE__ */ ru.jsx("div", tu({
|
|
16941
16941
|
ref: E,
|
|
16942
16942
|
className: "" + Y + (t ? " " + t : "")
|
|
16943
16943
|
}, A));
|