@deviceinsight/ng-ui-scale-lib 9.19.0 → 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.
Files changed (32) hide show
  1. package/dist/{AccessEditModal-38c11d48.js → AccessEditModal-ee0139fb.js} +14 -14
  2. package/dist/BundleManagementContainer-093786e5.js +20 -0
  3. package/dist/{BundlesContainer-ff572d82.js → BundlesContainer-54c9cc3a.js} +29 -26
  4. package/dist/{ContextBarContext-0565a593.js → ContextBarContext-0c28ce9d.js} +38167 -46135
  5. package/dist/{DatapointImport-2deee17a.js → DatapointImport-6d394cb5.js} +96 -93
  6. package/dist/{FileUploadInput-87e9d774.js → FileUploadInput-a23ba785.js} +3 -3
  7. package/dist/{Files-f6c464c2.js → Files-4fc0415e.js} +42 -39
  8. package/dist/GlobalPowerBiReports-f9bf0765.js +11079 -0
  9. package/dist/{Graph-fce6bde2.js → Graph-2840eac2.js} +4 -1
  10. package/dist/JsonSettingWidget-8908d40b.js +57 -0
  11. package/dist/{LicensesEditPage-effb07a9.js → LicensesEditPage-3332b87c.js} +33 -30
  12. package/dist/{LicensesList-7832868c.js → LicensesList-6254cd37.js} +12 -9
  13. package/dist/{PropertiesEditPage-e84dd613.js → PropertiesEditPage-5b148652.js} +24 -21
  14. package/dist/{PropertiesList-e8f218de.js → PropertiesList-06478803.js} +14 -11
  15. package/dist/{TemplateEditPage-a3994735.js → TemplateEditPage-94088888.js} +13 -10
  16. package/dist/TemplateTextInput-e8861a0f.js +50 -0
  17. package/dist/{TemplatesListPage-86d0d508.js → TemplatesListPage-866246c6.js} +53 -50
  18. package/dist/{UserGroupAssignments-b2e98796.js → UserGroupAssignments-6feae326.js} +34 -31
  19. package/dist/{UserGroupTheme-6e262174.js → UserGroupTheme-7ee8e92e.js} +14 -11
  20. package/dist/api.d.ts +3 -0
  21. package/dist/api.js +59 -56
  22. package/dist/{index-8f79799f.js → index-34a2015c.js} +7 -7
  23. package/dist/index.js +2761 -2765
  24. package/dist/objectWithoutPropertiesLoose-a4604547.js +26 -0
  25. package/dist/{react-router-824f2efe.js → react-router-d38ecdf4.js} +113 -108
  26. package/dist/style.css +1 -1
  27. package/package.json +4 -4
  28. package/dist/BundleManagementContainer-0efa3cec.js +0 -17
  29. package/dist/GlobalPowerBiReports-f448278b.js +0 -11078
  30. package/dist/JsonSettingWidget-0360cf69.js +0 -54
  31. package/dist/TemplateTextInput-712d3528.js +0 -47
  32. package/dist/extends-0a3e0827.js +0 -13
@@ -1,12 +1,15 @@
1
- import { az as e, ai as s, a_ as y, dd as B, b4 as P, aj as F, bR as V, by as z, am as N, da as W, de as $ } from "./ContextBarContext-0565a593.js";
1
+ import { aw as e, ag as s, aX as y, da as B, b1 as O, ah as F, bP as V, bw as z, aj as N, d7 as W, db as $ } from "./ContextBarContext-0c28ce9d.js";
2
2
  import { useContext as H, useState as T, useCallback as q, useEffect as Y } from "react";
3
- import { Link as J, useLocation as Q } from "react-router-dom";
4
- import { fetchUserGroupById as O, fetchEmailTemplates as _, fetchEmailTemplateAccessById as X, updateEmailTemplate as Z, deleteEmailTemplate as ee } from "@deviceinsight/ng-ui-api-client";
5
- import { Label as G, Button as g, Icon as te, Modal as ae, withConfirm as ne } from "@deviceinsight/ng-ui-basic-components";
3
+ import { Link as X, useLocation as J } from "react-router-dom";
4
+ import { fetchUserGroupById as P, fetchEmailTemplates as _, fetchEmailTemplateAccessById as Q, updateEmailTemplate as Z, deleteEmailTemplate as ee } from "@deviceinsight/ng-ui-api-client";
5
+ import { Label as G, Button as C, Icon as te, Modal as ae, withConfirm as ne } from "@deviceinsight/ng-ui-basic-components";
6
6
  import { MultiMenu as oe, MultiMenuItem as se, InfoBox as ie, messageBoxError as S, ContentHeader as le } from "@deviceinsight/ng-ui-components";
7
- import { A as re } from "./AccessEditModal-38c11d48.js";
7
+ import "react-i18next";
8
+ import { A as re } from "./AccessEditModal-ee0139fb.js";
9
+ import "i18next";
10
+ import "ux4iot-react";
8
11
  import "react-dom";
9
- function ce(r, l, c, h, u) {
12
+ function ce(r, l, c, h, m) {
10
13
  return [
11
14
  {
12
15
  name: "displayName",
@@ -17,7 +20,7 @@ function ce(r, l, c, h, u) {
17
20
  filterType: "text",
18
21
  filterFn: (t, n) => (t.displayName || t.name).toLowerCase().indexOf(n.toLowerCase()) >= 0
19
22
  },
20
- render: (t) => t.id ? /* @__PURE__ */ e.jsx(J, { to: `./${t.id}`, children: t.displayName || t.name }) : "-"
23
+ render: (t) => t.id ? /* @__PURE__ */ e.jsx(X, { to: `./${t.id}`, children: t.displayName || t.name }) : "-"
21
24
  },
22
25
  {
23
26
  name: "message",
@@ -48,8 +51,8 @@ function ce(r, l, c, h, u) {
48
51
  const { accountGroupsWithAccess: n } = t;
49
52
  if (!n || !n.length)
50
53
  return null;
51
- function j(i) {
52
- return u.find((d) => d.id === i) || {
54
+ function g(i) {
55
+ return m.find((u) => u.id === i) || {
53
56
  displayName: "-",
54
57
  id: i
55
58
  };
@@ -60,21 +63,21 @@ function ce(r, l, c, h, u) {
60
63
  {
61
64
  menuButton: /* @__PURE__ */ e.jsx(G, { text: `${n.length} User Groups` }),
62
65
  children: n.map((i) => {
63
- const d = j(i), x = n.filter(
64
- (A) => A !== d.id
66
+ const u = g(i), x = n.filter(
67
+ (A) => A !== u.id
65
68
  );
66
69
  return /* @__PURE__ */ e.jsx(se, { children: /* @__PURE__ */ e.jsx(
67
70
  G,
68
71
  {
69
- text: d.displayName || d.name,
72
+ text: u.displayName || u.name,
70
73
  onDelete: () => l(x, t)
71
74
  }
72
- ) }, d.id);
75
+ ) }, u.id);
73
76
  })
74
77
  }
75
78
  );
76
79
  {
77
- const i = j(n[0]);
80
+ const i = g(n[0]);
78
81
  return /* @__PURE__ */ e.jsx(
79
82
  G,
80
83
  {
@@ -92,7 +95,7 @@ function ce(r, l, c, h, u) {
92
95
  align: "right",
93
96
  render: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
94
97
  y([["READ_ACCOUNT_GROUP"]]) && /* @__PURE__ */ e.jsx(
95
- g,
98
+ C,
96
99
  {
97
100
  naked: !0,
98
101
  onClick: () => c(t),
@@ -101,7 +104,7 @@ function ce(r, l, c, h, u) {
101
104
  }
102
105
  ),
103
106
  y(["DELETE_NOTIFICATION_TEMPLATE"]) && /* @__PURE__ */ e.jsx(
104
- g,
107
+ C,
105
108
  {
106
109
  naked: !0,
107
110
  onClick: () => r(t),
@@ -111,10 +114,10 @@ function ce(r, l, c, h, u) {
111
114
  )
112
115
  ] })
113
116
  } : null
114
- ].filter(P);
117
+ ].filter(O);
115
118
  }
116
- function ue({ onCancel: r, onSave: l, template: c }) {
117
- const { t: h } = F(), u = y(["ACCESS_TO_ALL_NOTIFICATION_TEMPLATES"]), t = u ? h("notificationTemplate.access.delete.authorized", {
119
+ function me({ onCancel: r, onSave: l, template: c }) {
120
+ const { t: h } = F(), m = y(["ACCESS_TO_ALL_NOTIFICATION_TEMPLATES"]), t = m ? h("notificationTemplate.access.delete.authorized", {
118
121
  defaultValue: "You are about to remove all User Groups from a Template. Please note that for all other Users who don't have such Authorities like you (ACCESS_TO_ALL_NOTIFICATION_TEMPLATES), this Template will then be completely hidden!"
119
122
  }) : h("notificationTemplate.access.delete.unauthorized", {
120
123
  defaultValue: "You are about ot remove the last User Groups from a Template. Please note that you wouldn't be able to see it as you do not have the required Authorities. Please contact your Administrator."
@@ -124,31 +127,31 @@ function ue({ onCancel: r, onSave: l, template: c }) {
124
127
  {
125
128
  onOutsideClick: r,
126
129
  header: /* @__PURE__ */ e.jsx(s, { i18nKey: "notificationTemplate.access.delete.modal.title", children: "Remove all authorised User Groups from this Template" }),
127
- content: /* @__PURE__ */ e.jsx(ie, { type: u ? "warning" : "error", icon: V, message: t }),
130
+ content: /* @__PURE__ */ e.jsx(ie, { type: m ? "warning" : "error", icon: V, message: t }),
128
131
  footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
129
- u && /* @__PURE__ */ e.jsx(g, { onClick: () => l([], c), children: /* @__PURE__ */ e.jsx(s, { i18nKey: "general.actions.save", children: "Save" }) }),
130
- /* @__PURE__ */ e.jsx(g, { onClick: () => r(), children: /* @__PURE__ */ e.jsx(s, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
132
+ m && /* @__PURE__ */ e.jsx(C, { onClick: () => l([], c), children: /* @__PURE__ */ e.jsx(s, { i18nKey: "general.actions.save", children: "Save" }) }),
133
+ /* @__PURE__ */ e.jsx(C, { onClick: () => r(), children: /* @__PURE__ */ e.jsx(s, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
131
134
  ] })
132
135
  }
133
136
  );
134
137
  }
135
- const de = {
138
+ const ue = {
136
139
  page: 0,
137
140
  size: 10,
138
141
  sort: {
139
142
  property: "name",
140
143
  direction: "ASC"
141
144
  }
142
- }, me = {
145
+ }, de = {
143
146
  locale: "null",
144
147
  page: 0,
145
148
  size: 2e3
146
149
  };
147
150
  async function pe() {
148
- const r = await _(me);
151
+ const r = await _(de);
149
152
  return await Promise.all(
150
153
  r.map(async (l) => {
151
- const { accountGroupIds: c } = await X(l.id);
154
+ const { accountGroupIds: c } = await Q(l.id);
152
155
  return Promise.resolve({
153
156
  ...l,
154
157
  accountGroupsWithAccess: c,
@@ -158,7 +161,7 @@ async function pe() {
158
161
  );
159
162
  }
160
163
  function fe({ confirm: r }) {
161
- const { setContextInfo: l } = H(z), { pathname: c } = Q(), [h, u] = T([]), [t, n] = T(!0), [j, i] = T(!1), [d, x] = T(!1), [A, I] = T([]), [C, L] = T(), M = /* @__PURE__ */ e.jsx(s, { i18nKey: "portalAdmin.sidebarElements.templates.create", children: "Create new notification template" }), w = q(
164
+ const { setContextInfo: l } = H(z), { pathname: c } = J(), [h, m] = T([]), [t, n] = T(!0), [g, i] = T(!1), [u, x] = T(!1), [A, w] = T([]), [j, L] = T(), M = /* @__PURE__ */ e.jsx(s, { i18nKey: "portalAdmin.sidebarElements.templates.create", children: "Create new notification template" }), I = q(
162
165
  (a) => {
163
166
  l({
164
167
  type: "search",
@@ -180,8 +183,8 @@ function fe({ confirm: r }) {
180
183
  size: 2e3
181
184
  });
182
185
  await Promise.all(o.map((p) => ee(p.id)));
183
- const m = A.filter((p) => p.name !== a.name);
184
- I(m), w(m);
186
+ const d = A.filter((p) => p.name !== a.name);
187
+ w(d), I(d);
185
188
  } catch (o) {
186
189
  console.error("error occured while trying to delete the template", o), S(
187
190
  /* @__PURE__ */ e.jsx(s, { i18nKey: "notificationTemplate.list.deleteTemplate.error", children: "An error occurred while trying to delete the template" })
@@ -206,29 +209,29 @@ function fe({ confirm: r }) {
206
209
  if (o) {
207
210
  n(!0);
208
211
  try {
209
- const m = await _({
212
+ const d = await _({
210
213
  name: o.name,
211
214
  page: 0,
212
215
  size: 2e3
213
216
  }), p = { ...o, accountGroupsWithAccess: a }, f = N.unionBy([p], A, "id");
214
217
  await Promise.all(
215
- m.map(
218
+ d.map(
216
219
  (E) => Z({
217
220
  ...E,
218
221
  accountGroupsWithAccess: a
219
222
  })
220
223
  )
221
224
  );
222
- const K = [
225
+ const R = [
223
226
  ...new Set(
224
227
  N.flatten(
225
228
  f.map(({ accountGroupsWithAccess: E }) => E).filter(Boolean)
226
229
  )
227
230
  )
228
- ], k = await Promise.all(K.map((E) => O(E)));
229
- I(f), u(k), w(f);
230
- } catch (m) {
231
- console.error("error occured while trying to save access on template: ", m), S(
231
+ ], k = await Promise.all(R.map((E) => P(E)));
232
+ w(f), m(k), I(f);
233
+ } catch (d) {
234
+ console.error("error occured while trying to save access on template: ", d), S(
232
235
  /* @__PURE__ */ e.jsx(s, { i18nKey: "notificationTemplate.list.updateTemplate.error", children: "An error occured while trying to save access" })
233
236
  );
234
237
  } finally {
@@ -239,7 +242,7 @@ function fe({ confirm: r }) {
239
242
  function U(a) {
240
243
  L(a), i(!0);
241
244
  }
242
- function R(a) {
245
+ function K(a) {
243
246
  L(a), x(!0);
244
247
  }
245
248
  return Y(() => {
@@ -249,11 +252,11 @@ function fe({ confirm: r }) {
249
252
  const o = await pe();
250
253
  if (a)
251
254
  return;
252
- if (I(o), w(o), y(["READ_ACCOUNT_GROUP"])) {
253
- const m = [
255
+ if (w(o), I(o), y(["READ_ACCOUNT_GROUP"])) {
256
+ const d = [
254
257
  ...new Set(N.flatten(o.map(({ accountGroupsWithAccess: f }) => f)))
255
- ].filter(P), p = await Promise.all(m.map((f) => O(f)));
256
- u(p);
258
+ ].filter(O), p = await Promise.all(d.map((f) => P(f)));
259
+ m(p);
257
260
  }
258
261
  } catch (o) {
259
262
  console.error("error occured while trying to fetch templates: ", o), S(
@@ -291,37 +294,37 @@ function fe({ confirm: r }) {
291
294
  v,
292
295
  b,
293
296
  U,
294
- R,
297
+ K,
295
298
  h
296
299
  ),
297
300
  uniqueItemKey: (a) => `${a.id}`,
298
- paginationSettings: de,
301
+ paginationSettings: ue,
299
302
  items: A,
300
303
  isLoading: t,
301
304
  "data-testid": "notification-templates-table",
302
305
  tableName: "notificationTemplates"
303
306
  }
304
307
  ),
305
- j && C && /* @__PURE__ */ e.jsx(
308
+ g && j && /* @__PURE__ */ e.jsx(
306
309
  re,
307
310
  {
308
311
  onCancel: () => i(!1),
309
312
  onSave: b,
310
313
  loading: t,
311
- template: C
314
+ template: j
312
315
  }
313
316
  ),
314
- d && C && /* @__PURE__ */ e.jsx(
315
- ue,
317
+ u && j && /* @__PURE__ */ e.jsx(
318
+ me,
316
319
  {
317
320
  onCancel: () => x(!1),
318
321
  onSave: b,
319
- template: C
322
+ template: j
320
323
  }
321
324
  )
322
325
  ] });
323
326
  }
324
- const ge = ne(fe);
327
+ const be = ne(fe);
325
328
  export {
326
- ge as default
329
+ be as default
327
330
  };
@@ -1,46 +1,49 @@
1
- import { az as e, db as S, aT as E, bi as _, aj as N, ao as R, ai as o, bo as j, ba as y, dc as M } from "./ContextBarContext-0565a593.js";
1
+ import { aw as e, d8 as S, aQ as E, bf as _, ah as N, al as R, ag as o, bl as j, b7 as y, d9 as M } from "./ContextBarContext-0c28ce9d.js";
2
2
  import { useState as A, useEffect as C } from "react";
3
3
  import { ReactableWithClientSidePagination as U, messageBoxError as T, ContentHeader as w } from "@deviceinsight/ng-ui-components";
4
4
  import { Button as x, Icon as b, Modal as K, useConfirm as V, SpinnerContainer as L } from "@deviceinsight/ng-ui-basic-components";
5
5
  import { getInitialAccountGroupAssignmentRules as v, createInitialAccountGroupAssignmentRule as k, updateInitialAccountGroupAssignmentRule as H, deleteInitialAccountGroupAssignmentRule as q } from "@deviceinsight/ng-ui-api-client";
6
6
  import "react-router-dom";
7
+ import "react-i18next";
8
+ import "i18next";
9
+ import "ux4iot-react";
7
10
  import "react-dom";
8
11
  function D() {
9
- const [n, a] = A([]), [s, i] = A(!1), [f, m] = A(null);
12
+ const [n, a] = A([]), [s, r] = A(!1), [f, m] = A(null);
10
13
  C(() => {
11
- i(!0);
12
- let r = !1;
14
+ r(!0);
15
+ let i = !1;
13
16
  return v().then((l) => {
14
- r || (a(l), i(!1));
17
+ i || (a(l), r(!1));
15
18
  }).catch((l) => {
16
- r || (m(l), i(!1));
19
+ i || (m(l), r(!1));
17
20
  }), () => {
18
- r = !0;
21
+ i = !0;
19
22
  };
20
23
  }, []);
21
- async function g(r) {
24
+ async function g(i) {
22
25
  try {
23
- i(!0);
24
- const l = await k(r);
26
+ r(!0);
27
+ const l = await k(i);
25
28
  a([...n, l]);
26
29
  } finally {
27
- i(!1);
30
+ r(!1);
28
31
  }
29
32
  }
30
- async function c(r, l) {
33
+ async function c(i, l) {
31
34
  try {
32
- i(!0);
33
- const u = await H(r, l);
34
- a(n.map((t) => t.name === r ? u : t));
35
+ r(!0);
36
+ const u = await H(i, l);
37
+ a(n.map((t) => t.name === i ? u : t));
35
38
  } finally {
36
- i(!1);
39
+ r(!1);
37
40
  }
38
41
  }
39
- async function d(r) {
42
+ async function d(i) {
40
43
  try {
41
- i(!0), await q(r), a(n.filter((l) => l.name !== r));
44
+ r(!0), await q(i), a(n.filter((l) => l.name !== i));
42
45
  } finally {
43
- i(!1);
46
+ r(!1);
44
47
  }
45
48
  }
46
49
  return { rules: n, isLoading: s, error: f, createRule: g, editRule: c, deleteRule: d };
@@ -90,7 +93,7 @@ function P({ onEditRuleClick: n, onDeleteRuleClick: a, rules: s }) {
90
93
  U,
91
94
  {
92
95
  columnDefs: F(n, a),
93
- uniqueItemKey: (i) => i.name,
96
+ uniqueItemKey: (r) => r.name,
94
97
  paginationSettings: O,
95
98
  items: s,
96
99
  isLoading: !1,
@@ -104,12 +107,12 @@ function W(n) {
104
107
  if (R.isAxiosError(n) && ((a = n.response) != null && a.data)) {
105
108
  const { fieldErrors: s } = n.response.data;
106
109
  if (s)
107
- return s.map(({ field: i }) => i);
110
+ return s.map(({ field: r }) => r);
108
111
  }
109
112
  }
110
113
  function I({ onSubmit: n, onClose: a, value: s }) {
111
114
  const {
112
- handleSubmit: i,
115
+ handleSubmit: r,
113
116
  formState: { isSubmitting: f },
114
117
  control: m,
115
118
  setError: g
@@ -119,7 +122,7 @@ function I({ onSubmit: n, onClose: a, value: s }) {
119
122
  required: c("userGroupAssignments.ruleModal.validation.required", {
120
123
  defaultValue: "Required field"
121
124
  })
122
- }, r = i(async (l) => {
125
+ }, i = r(async (l) => {
123
126
  var u, t;
124
127
  try {
125
128
  await n(l);
@@ -222,24 +225,24 @@ function I({ onSubmit: n, onClose: a, value: s }) {
222
225
  )
223
226
  ] }),
224
227
  footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
225
- /* @__PURE__ */ e.jsx(x, { primary: !0, onClick: r, disabled: f, children: /* @__PURE__ */ e.jsx(o, { i18nKey: "general.actions.apply", children: "Apply" }) }),
228
+ /* @__PURE__ */ e.jsx(x, { primary: !0, onClick: i, disabled: f, children: /* @__PURE__ */ e.jsx(o, { i18nKey: "general.actions.apply", children: "Apply" }) }),
226
229
  /* @__PURE__ */ e.jsx(x, { onClick: a, disabled: f, children: /* @__PURE__ */ e.jsx(o, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
227
230
  ] })
228
231
  }
229
232
  );
230
233
  }
231
- function Z() {
232
- const { isLoading: n, rules: a, error: s, createRule: i, editRule: f, deleteRule: m } = D(), [g, c] = A(!1), [d, r] = A(null), l = V(), { t: u } = N();
234
+ function te() {
235
+ const { isLoading: n, rules: a, error: s, createRule: r, editRule: f, deleteRule: m } = D(), [g, c] = A(!1), [d, i] = A(null), l = V(), { t: u } = N();
233
236
  C(() => {
234
237
  s && R.isAxiosError(s) && (T(
235
238
  /* @__PURE__ */ e.jsx(o, { i18nKey: "userGroupAssignments.fetchError", children: "An error occurred while loading the initial user group assignment rules" })
236
239
  ), console.error("Error loading initial user group assignment rules", s));
237
240
  }, [s]);
238
241
  async function t(p) {
239
- await i(p), c(!1);
242
+ await r(p), c(!1);
240
243
  }
241
244
  async function h(p) {
242
- d && (await f(d.name, p), r(null));
245
+ d && (await f(d.name, p), i(null));
243
246
  }
244
247
  async function G(p) {
245
248
  await l({
@@ -266,7 +269,7 @@ function Z() {
266
269
  P,
267
270
  {
268
271
  rules: a,
269
- onEditRuleClick: r,
272
+ onEditRuleClick: i,
270
273
  onDeleteRuleClick: G
271
274
  }
272
275
  ),
@@ -282,7 +285,7 @@ function Z() {
282
285
  d && /* @__PURE__ */ e.jsx(
283
286
  I,
284
287
  {
285
- onClose: () => r(null),
288
+ onClose: () => i(null),
286
289
  onSubmit: h,
287
290
  value: d
288
291
  }
@@ -290,5 +293,5 @@ function Z() {
290
293
  ] });
291
294
  }
292
295
  export {
293
- Z as default
296
+ te as default
294
297
  };
@@ -1,18 +1,21 @@
1
- import { az as s, d2 as f, d3 as v, ai as c, d4 as g, am as C, aA as x, d5 as l, ag as r, d6 as w, d7 as P } from "./ContextBarContext-0565a593.js";
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-824f2efe.js";
5
- import { Button as p, ButtonRow as j, SpinnerContainer as U } from "@deviceinsight/ng-ui-basic-components";
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 "./extends-0a3e0827.js";
11
- const u = (o) => ("0" + parseInt(o).toString(16)).slice(-2), b = (o) => {
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 ? `#${u(e[1])}${u(e[2])}${u(e[3])}` : "";
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
- p,
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(p, { primary: !0, disabled: !n, onClick: this.handleSubmit, children: /* @__PURE__ */ s.jsx(c, { i18nKey: "usergroups.detail.theme.save", children: "Save" }) }),
169
- /* @__PURE__ */ s.jsx(p, { 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" }) })
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 B = ({ usergroup: { id: o } }) => {
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
- B as default
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 { al as a, aA as n, az as i, aQ as r, bH as c, cE as u, cF as m, ap as f, cr as C, bs as d, cG as l } from "./ContextBarContext-0565a593.js";
2
- import { aT as F, bx as H, ah as L, ag as O, ai as G, cI as V, af as M, cJ as Z, cH as j, cW as K, aM as $, a_ as k, cM as w, cN as J, cT as Q, cU as W, cR as X, cY as Y, cQ as q, cS as z, cL as ee, cO as se, cP as te, cK as oe, cV as ae, av as ne, cX as ie, cZ as re, ae as ce, c5 as ue, aj as me, b$ as fe } from "./ContextBarContext-0565a593.js";
3
- import { m as de, a as le } from "./useCanDeleteBundleVersion-64f35949.js";
4
- import { getAxios as p } from "@deviceinsight/ng-ui-api-client";
5
- import { s as Ae } from "./customFileCategories-1b64ed45.js";
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 h = (e) => a({
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
- }), _ = () => p();
16
- function D() {
18
+ }), R = () => l();
19
+ function b() {
17
20
  const { user: e } = t(n);
18
21
  return e;
19
22
  }
20
- function N({ className: e, icon: s, ...o }) {
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 R({ children: e }) {
24
- const { addItem: s } = t(c);
26
+ function B({ children: e }) {
27
+ const { addItem: s } = t(m);
25
28
  return A(() => s(e), [s, e]), null;
26
29
  }
27
- function b(e) {
28
- return console.warn("Don't use setFavicon. This function is deprecated"), u(e, !0);
30
+ function S(e) {
31
+ return console.warn("Don't use setFavicon. This function is deprecated"), c(e, !0);
29
32
  }
30
- function v(e) {
31
- return console.warn("Don't use setPrimaryColor. This function is deprecated"), m(e, !0);
33
+ function U(e) {
34
+ return console.warn("Don't use setPrimaryColor. This function is deprecated"), u(e, !0);
32
35
  }
33
- const S = {
36
+ const F = {
34
37
  onSignin: f,
35
38
  onSignout: C,
36
39
  onThemeChange: d,
37
- onUserProfileChange: l
40
+ onUserProfileChange: p
38
41
  };
39
42
  export {
40
- N as ContextBarAction,
41
- R as ContextBarActionContainer,
42
- F as HasAuthorities,
43
+ v as ContextBarAction,
44
+ B as ContextBarActionContainer,
45
+ G as HasAuthorities,
43
46
  H as RouteApi,
44
- L as StyleApi,
45
- O as ThemeApi,
46
- G as Trans,
47
- V as TranslationApi,
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
- S as eventBus,
52
- K as generateAssetUrn,
53
- _ as getNguiAxios,
54
- $ as getStartPage,
55
- k as hasAuthorities,
56
- w as modifyAssetColumnDefinitions,
57
- J as modifyAssetGroupColumnDefinitions,
58
- de as modifyCanDeleteBundle,
59
- le as modifyCanDeleteBundleVersion,
60
- Q as modifyChildAssetGroupsInitialSort,
61
- W as modifyCustomSearchProperties,
62
- X as modifyDashboardWidgets,
63
- Y as modifyIsDashboardVisible,
64
- q as modifyMapMarkerIcon,
65
- z as modifyPropertyVisibility,
66
- ee as modifyRoutes,
67
- se as modifyUserColumnDefinitions,
68
- te as modifyUserGroupColumnDefinitions,
69
- oe as removeCustomHeaderElement,
70
- ae as replaceComponent,
71
- ne as retrieveAuthInfo,
72
- ie as setContextInfo,
73
- Ae as setCustomFilesCategories,
74
- re as setCustomLoginPageElement,
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
- b as setFavicon,
77
- h as setLocizeProject,
78
- v as setPrimaryColor,
79
- ce as setTitle,
80
- ue as useAssetTimezone,
81
- me as useTranslation,
82
- D as useUserAccountInfo,
83
- fe as ux4iotGrantRequestFunction
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
  };