@deviceinsight/ng-ui-scale-lib 9.21.0 → 9.23.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 (24) hide show
  1. package/dist/{AccessEditModal-861d96a6.js → AccessEditModal-16f1845c.js} +1 -1
  2. package/dist/{BundleManagementContainer-492e1a51.js → BundleManagementContainer-4816289d.js} +1 -1
  3. package/dist/{BundlesContainer-56136d83.js → BundlesContainer-64644a1e.js} +2 -2
  4. package/dist/{ContextBarContext-8a081573.js → ContextBarContext-61e5b465.js} +12255 -12182
  5. package/dist/{DatapointImport-8fc8457e.js → DatapointImport-b25d7597.js} +23 -23
  6. package/dist/{FileUploadInput-4459f512.js → FileUploadInput-f3bb848f.js} +1 -1
  7. package/dist/{Files-d47286c7.js → Files-69421c29.js} +2 -2
  8. package/dist/{GlobalPowerBiReports-3de00692.js → GlobalPowerBiReports-18920d83.js} +1 -1
  9. package/dist/{Graph-b5c9417d.js → Graph-5cf1608e.js} +1 -1
  10. package/dist/{JsonSettingWidget-c54df0d6.js → JsonSettingWidget-1ab26371.js} +12 -12
  11. package/dist/{LicensesEditPage-fa4f079f.js → LicensesEditPage-5b6975d2.js} +1 -1
  12. package/dist/{LicensesList-41498d29.js → LicensesList-71cfff35.js} +1 -1
  13. package/dist/{PropertiesEditPage-e4acc179.js → PropertiesEditPage-fec5cee1.js} +6 -6
  14. package/dist/{PropertiesList-fd78361b.js → PropertiesList-08d0d42e.js} +1 -1
  15. package/dist/{TemplateEditPage-a7b34bbc.js → TemplateEditPage-7d8ad12f.js} +26 -26
  16. package/dist/{TemplateTextInput-ac5506a5.js → TemplateTextInput-e4c1ccf0.js} +2 -2
  17. package/dist/{TemplatesListPage-ea78387b.js → TemplatesListPage-a60e02d6.js} +2 -2
  18. package/dist/{UserGroupAssignments-4e7c6567.js → UserGroupAssignments-4d53e0ad.js} +1 -1
  19. package/dist/{UserGroupTheme-16db6c5b.js → UserGroupTheme-07695780.js} +1 -1
  20. package/dist/api.d.ts +1 -2
  21. package/dist/api.js +18 -18
  22. package/dist/{index-852b249c.js → index-3cf7ec87.js} +1 -1
  23. package/dist/index.js +3052 -3004
  24. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { aw as c, a5 as Et, cY as wt, b1 as bt, ag as et, aY as kt, br as It } from "./ContextBarContext-8a081573.js";
1
+ import { aw as c, a5 as Et, c_ as wt, b1 as bt, ag as et, aY as kt, br as It } from "./ContextBarContext-61e5b465.js";
2
2
  import * as Dt from "react";
3
3
  import { createContext as Ot, useState as pt, useEffect as Rt, useContext as At } from "react";
4
4
  import { Spinner as Tt, Button as yt, Icon as Lt, Bubble as jt } from "@deviceinsight/ng-ui-basic-components";
@@ -99,9 +99,9 @@ class Wt extends Dt.PureComponent {
99
99
  return this.createDatapoint(l + 1);
100
100
  const {
101
101
  data: { name: I, datatype: P, unit: q, thresholds: a },
102
- error: Q
102
+ error: Y
103
103
  } = g[l];
104
- if (Q)
104
+ if (Y)
105
105
  return setTimeout(() => this.updateUploadStateAndContinue(l, "CANNOT_UPLOAD"), 0);
106
106
  const N = {
107
107
  name: I,
@@ -250,14 +250,14 @@ License: MIT
250
250
  } };
251
251
  if (a.RECORD_SEP = String.fromCharCode(30), a.UNIT_SEP = String.fromCharCode(31), a.BYTE_ORDER_MARK = "\uFEFF", a.BAD_DELIMITERS = ["\r", `
252
252
  `, '"', a.BYTE_ORDER_MARK], a.WORKERS_SUPPORTED = !x && !!d.Worker, a.NODE_STREAM_INPUT = 1, a.LocalChunkSize = 10485760, a.RemoteChunkSize = 5242880, a.DefaultDelimiter = ",", a.Parser = W, a.ParserHandle = ut, a.NetworkStreamer = J, a.FileStreamer = Z, a.StringStreamer = V, a.ReadableStreamStreamer = ht, d.jQuery) {
253
- var Q = d.jQuery;
254
- Q.fn.parse = function(e) {
253
+ var Y = d.jQuery;
254
+ Y.fn.parse = function(e) {
255
255
  var t = e.config || {}, n = [];
256
256
  return this.each(function(f) {
257
- if (!(Q(this).prop("tagName").toUpperCase() === "INPUT" && Q(this).attr("type").toLowerCase() === "file" && d.FileReader) || !this.files || this.files.length === 0)
257
+ if (!(Y(this).prop("tagName").toUpperCase() === "INPUT" && Y(this).attr("type").toLowerCase() === "file" && d.FileReader) || !this.files || this.files.length === 0)
258
258
  return !0;
259
259
  for (var S = 0; S < this.files.length; S++)
260
- n.push({ file: this.files[S], inputElem: this, instanceConfig: Q.extend({}, t) });
260
+ n.push({ file: this.files[S], inputElem: this, instanceConfig: Y.extend({}, t) });
261
261
  }), i(), this;
262
262
  function i() {
263
263
  if (n.length !== 0) {
@@ -269,7 +269,7 @@ License: MIT
269
269
  return f = "AbortError", S = r.file, F = r.inputElem, D = j.reason, void (w(e.error) && e.error({ name: f }, S, F, D));
270
270
  if (j.action === "skip")
271
271
  return void s();
272
- typeof j.config == "object" && (r.instanceConfig = Q.extend(r.instanceConfig, j.config));
272
+ typeof j.config == "object" && (r.instanceConfig = Y.extend(r.instanceConfig, j.config));
273
273
  } else if (j === "skip")
274
274
  return void s();
275
275
  }
@@ -507,8 +507,8 @@ License: MIT
507
507
  if (R && E(G.data[st]))
508
508
  rt++;
509
509
  else {
510
- var Y = G.data[st].length;
511
- A += Y, H !== void 0 ? 0 < Y && (dt += Math.abs(Y - H), H = Y) : H = Y;
510
+ var Q = G.data[st].length;
511
+ A += Q, H !== void 0 ? 0 < Q && (dt += Math.abs(Q - H), H = Q) : H = Q;
512
512
  }
513
513
  0 < G.data.length && (A /= G.data.length - rt), (it === void 0 || dt <= it) && (lt === void 0 || lt < A) && 1.99 < A && (it = dt, tt = ot, lt = A);
514
514
  }
@@ -643,12 +643,12 @@ License: MIT
643
643
  f(M()), L = [], B = [];
644
644
  }
645
645
  function dt(A, rt, G) {
646
- var st = { nextDelim: void 0, quoteSearch: void 0 }, Y = o.indexOf(t, rt + 1);
647
- if (rt < A && A < Y && (Y < G || G === -1)) {
648
- var gt = o.indexOf(n, Y);
646
+ var st = { nextDelim: void 0, quoteSearch: void 0 }, Q = o.indexOf(t, rt + 1);
647
+ if (rt < A && A < Q && (Q < G || G === -1)) {
648
+ var gt = o.indexOf(n, Q);
649
649
  if (gt === -1)
650
650
  return st;
651
- Y < gt && (Y = o.indexOf(t, Y + 1)), st = dt(gt, Y, G);
651
+ Q < gt && (Q = o.indexOf(t, Q + 1)), st = dt(gt, Q, G);
652
652
  } else
653
653
  st = { nextDelim: A, quoteSearch: rt };
654
654
  return st;
@@ -711,22 +711,22 @@ License: MIT
711
711
  });
712
712
  })(Ct);
713
713
  var Ht = Ct.exports;
714
- const Gt = 20, Yt = (h) => {
714
+ const Gt = 20, Qt = (h) => {
715
715
  const l = [];
716
716
  let g = 0;
717
717
  const d = [...h];
718
718
  return h[0][0] === "DATAPOINT_NAME" && d.shift(), d.forEach((x, I) => {
719
719
  if (g > Gt)
720
720
  throw new Error("INVALID_DOCUMENT");
721
- const [P, q, a, Q, N, J] = x, Z = {};
721
+ const [P, q, a, Y, N, J] = x, Z = {};
722
722
  N && !isNaN(parseInt(N)) && (Z.threshold1 = parseInt(N)), J && !isNaN(parseInt(J)) && (Z.threshold2 = parseInt(J));
723
723
  const V = {
724
724
  idx: I,
725
725
  data: {
726
726
  name: P,
727
727
  datatype: q && q.toUpperCase(),
728
- unit: Q ? {
729
- name: Q,
728
+ unit: Y ? {
729
+ name: Y,
730
730
  print: a
731
731
  } : null,
732
732
  thresholds: Z
@@ -737,12 +737,12 @@ const Gt = 20, Yt = (h) => {
737
737
  if (!wt.includes(q))
738
738
  return g++, V.error = "INVALID_DATATYPE";
739
739
  }), l;
740
- }, Qt = (h) => new Promise((l, g) => {
740
+ }, Yt = (h) => new Promise((l, g) => {
741
741
  Ht.parse(h, {
742
742
  skipEmptyLines: !0,
743
743
  complete: ({ data: d }) => {
744
744
  try {
745
- const x = Yt(d);
745
+ const x = Qt(d);
746
746
  l(x);
747
747
  } catch (x) {
748
748
  g(x);
@@ -804,12 +804,12 @@ function ue(h) {
804
804
  return /* @__PURE__ */ c.jsx(Zt, { children: /* @__PURE__ */ c.jsx(te, { ...h }) });
805
805
  }
806
806
  function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, addUnit: d }) {
807
- const [x, I] = pt([]), [P, q] = pt(null), { pageSize: a, onPageSizeChange: Q } = At(xt), [N, J] = pt(!1);
807
+ const [x, I] = pt([]), [P, q] = pt(null), { pageSize: a, onPageSizeChange: Y } = At(xt), [N, J] = pt(!1);
808
808
  function Z() {
809
809
  I([]), q(null);
810
810
  }
811
811
  function V(K) {
812
- J(!0), I([]), q(null), Qt(K).then(async (W) => {
812
+ J(!0), I([]), q(null), Yt(K).then(async (W) => {
813
813
  await Jt(h, W, d), I(W), l(!0, 0, 0);
814
814
  }).catch((W) => {
815
815
  q(W);
@@ -854,7 +854,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
854
854
  isLoading: N,
855
855
  createDatapoint: g,
856
856
  pageSize: a,
857
- onPageSizeChange: Q
857
+ onPageSizeChange: Y
858
858
  }
859
859
  ) })
860
860
  ] });
@@ -1,4 +1,4 @@
1
- import { aw as t, cy as m } from "./ContextBarContext-8a081573.js";
1
+ import { aw as t, cA as m } from "./ContextBarContext-61e5b465.js";
2
2
  import { useState as p } from "react";
3
3
  import { Button as d, Icon as u } from "@deviceinsight/ng-ui-basic-components";
4
4
  import { ImageUpload as F, FileUpload as x } from "@deviceinsight/ng-ui-components";
@@ -1,9 +1,9 @@
1
- import { ah as V, aw as e, ag as p, cZ as D, c_ as R, br as G, a6 as Y, b4 as z, cp as Z, c$ as q, aY as _, aQ as $ } from "./ContextBarContext-8a081573.js";
1
+ import { ah as V, aw as e, ag as p, c$ as D, d0 as R, br as G, a6 as Y, b4 as z, cr as Z, d1 as q, aY as _, aQ as $ } from "./ContextBarContext-61e5b465.js";
2
2
  import { messageBoxError as J, ReactableWithClientSidePagination as ee, ContentHeader as te, RouteTabs as se } from "@deviceinsight/ng-ui-components";
3
3
  import "react-i18next";
4
4
  import { useState as B, useCallback as S, useRef as ie, useEffect as U, useMemo as X, createContext as ae, useContext as ne } from "react";
5
5
  import { Modal as le, SpinnerContainer as P, Button as k, Icon as W, useConfirm as oe } from "@deviceinsight/ng-ui-basic-components";
6
- import { F as re } from "./FileUploadInput-4459f512.js";
6
+ import { F as re } from "./FileUploadInput-f3bb848f.js";
7
7
  import { createPortal as de } from "react-dom";
8
8
  import { Link as ce } from "react-router-dom";
9
9
  import { g as M } from "./customFileCategories-1b64ed45.js";
@@ -1,4 +1,4 @@
1
- import { a5 as $t, ad as Rr, aw as wt, ag as _e } from "./ContextBarContext-8a081573.js";
1
+ import { a5 as $t, ad as Rr, aw as wt, ag as _e } from "./ContextBarContext-61e5b465.js";
2
2
  import Ar, { useMemo as jr, useState as le, useEffect as He } from "react";
3
3
  import { getParamsForSingleReport as Mr } from "@deviceinsight/ng-ui-api-client";
4
4
  import { Tabs as Ir, Spinner as Br } from "@deviceinsight/ng-ui-basic-components";
@@ -1,4 +1,4 @@
1
- import { a5 as so, a6 as ro, aw as mn } from "./ContextBarContext-8a081573.js";
1
+ import { a5 as so, a6 as ro, aw as mn } from "./ContextBarContext-61e5b465.js";
2
2
  import { useRef as gn, useCallback as oo, useEffect as ao } from "react";
3
3
  import { SpinnerContainer as ho } from "@deviceinsight/ng-ui-basic-components";
4
4
  import "react-router-dom";
@@ -1,6 +1,6 @@
1
- import { dd as S, dk as j, aw as t, cy as y, ag as C } from "./ContextBarContext-8a081573.js";
2
- import { useState as u, useEffect as g, useCallback as v } from "react";
3
- import { C as V, j as b } from "./index-852b249c.js";
1
+ import { df as S, dm as j, aw as t, cA as C, ag as g } from "./ContextBarContext-61e5b465.js";
2
+ import { useState as d, useEffect as v, useCallback as y } from "react";
3
+ import { C as V, j as b } from "./index-3cf7ec87.js";
4
4
  import "react-i18next";
5
5
  import "react-router-dom";
6
6
  import "@deviceinsight/ng-ui-basic-components";
@@ -9,23 +9,23 @@ import "i18next";
9
9
  import "@deviceinsight/ng-ui-api-client";
10
10
  import "ux4iot-react";
11
11
  import "react-dom";
12
- function R({ setting: e, ...c }) {
12
+ function K({ setting: e, ...c }) {
13
13
  const { setValue: o, setError: i, clearErrors: n, control: p } = S(), {
14
14
  field: r,
15
15
  fieldState: { error: s }
16
- } = j({ name: e.name, control: p }), [f, l] = u(""), [m, h] = u(!1);
17
- g(() => {
16
+ } = j({ name: e.name, control: p }), [f, l] = d(""), [m, h] = d(!1);
17
+ v(() => {
18
18
  if (!m && r.value) {
19
19
  const a = JSON.stringify(r.value, null, 2);
20
20
  l(a), h(!0);
21
21
  }
22
22
  }, [r.value, m]);
23
- const x = v(
23
+ const x = y(
24
24
  (a) => {
25
25
  try {
26
26
  l(a);
27
- const d = a === "" ? void 0 : JSON.parse(a);
28
- o(e.name, d, { shouldValidate: !0, shouldDirty: !0 }), n(e.name);
27
+ const u = a === "" ? void 0 : JSON.parse(a);
28
+ o(e.name, u, { shouldValidate: !0, shouldDirty: !0 }), n(e.name);
29
29
  } catch {
30
30
  i(e.name, { message: "Invalid JSON syntax" });
31
31
  }
@@ -33,9 +33,9 @@ function R({ setting: e, ...c }) {
33
33
  [n, i, o, e.name]
34
34
  );
35
35
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
36
- y,
36
+ C,
37
37
  {
38
- label: /* @__PURE__ */ t.jsx(C, { i18nKey: `appSettings.property.${e.name}`, children: e.name }),
38
+ label: /* @__PURE__ */ t.jsx(g, { i18nKey: `appSettings.property.${e.name}`, children: e.name }),
39
39
  error: (s == null ? void 0 : s.message) ?? "",
40
40
  size: "full-width",
41
41
  children: /* @__PURE__ */ t.jsx(
@@ -52,5 +52,5 @@ function R({ setting: e, ...c }) {
52
52
  ) });
53
53
  }
54
54
  export {
55
- R as default
55
+ K as default
56
56
  };
@@ -1,4 +1,4 @@
1
- import { ah as K, bf as C, aw as e, ag as n, bl as y, b7 as b, bR as V } from "./ContextBarContext-8a081573.js";
1
+ import { ah as K, bf as C, aw as e, ag as n, bl as y, b7 as b, bR as V } from "./ContextBarContext-61e5b465.js";
2
2
  import { useState as d, useEffect as v } from "react";
3
3
  import { Prompt as q, useHistory as B, useLocation as H, useParams as R } from "react-router-dom";
4
4
  import { fetchLicenses as T, fetchLicenseByName as D, updateLicense as I, createLicense as k } from "@deviceinsight/ng-ui-api-client";
@@ -1,4 +1,4 @@
1
- import { aw as s, ag as a, ah as y, d8 as b, dc as g, aQ as j } from "./ContextBarContext-8a081573.js";
1
+ import { aw as s, ag as a, ah as y, da as b, de as g, aQ as j } from "./ContextBarContext-61e5b465.js";
2
2
  import { useState as c, useEffect as f } from "react";
3
3
  import { Link as u } from "react-router-dom";
4
4
  import { fetchRolesForLicense as N, fetchLicenses as C, deleteLicense as E } from "@deviceinsight/ng-ui-api-client";
@@ -1,8 +1,8 @@
1
- import { aw as e, cy as E, aN as V, dl as F, dd as L, dk as B, ag as d, ah as G, bf as D, bi as R, bl as h, b7 as w, dm as U, di as P, dn as k, al as M, dp as H, dq as X, bR as _, aX as Y, dr as $ } from "./ContextBarContext-8a081573.js";
1
+ import { aw as e, cA as E, aN as V, dn as F, df as L, dm as B, ag as d, ah as G, bf as D, bi as R, bl as h, b7 as w, dp as U, dk as P, dq as A, al as M, dr as H, ds as X, bR as _, aX as Y, dt as $ } from "./ContextBarContext-61e5b465.js";
2
2
  import { useState as T, useEffect as z } from "react";
3
3
  import { Prompt as J, useLocation as Q, useHistory as W, useParams as Z } from "react-router-dom";
4
4
  import { getPropertyById as ee, updateProperty as re, createProperty as te } from "@deviceinsight/ng-ui-api-client";
5
- import { Button as v, Checkbox as A, Icon as O, ButtonRow as se, Spinner as ae } from "@deviceinsight/ng-ui-basic-components";
5
+ import { Button as v, Checkbox as k, Icon as O, ButtonRow as se, Spinner as ae } from "@deviceinsight/ng-ui-basic-components";
6
6
  import { messageBoxError as K, ContentHeader as ne } from "@deviceinsight/ng-ui-components";
7
7
  import "react-i18next";
8
8
  import "i18next";
@@ -57,14 +57,14 @@ function ie() {
57
57
  E,
58
58
  {
59
59
  label: /* @__PURE__ */ e.jsxs("div", { className: "di allowed-values-header", children: [
60
- /* @__PURE__ */ e.jsx(A, { type: "toggle", value: c, toggleSmall: !0, onChange: y }),
60
+ /* @__PURE__ */ e.jsx(k, { type: "toggle", value: c, toggleSmall: !0, onChange: y }),
61
61
  " ",
62
62
  /* @__PURE__ */ e.jsx(d, { i18nKey: "properties.labels.allowedValues", children: "Allowed Values" })
63
63
  ] }),
64
64
  error: s.allowedValues ? "Required" : void 0,
65
65
  className: "di allowed-values-container",
66
66
  children: [
67
- /* @__PURE__ */ e.jsx(A, { value: c, onChange: y }),
67
+ /* @__PURE__ */ e.jsx(k, { value: c, onChange: y }),
68
68
  (t == null ? void 0 : t.length) === 0 ? /* @__PURE__ */ e.jsx("div", { className: "empty-placeholder", children: /* @__PURE__ */ e.jsx(d, { i18nKey: "properties.labels.allowedValuesEmptyPlaceholder", children: "No values" }) }) : /* @__PURE__ */ e.jsx("ul", { children: t == null ? void 0 : t.map((n, p) => /* @__PURE__ */ e.jsxs("li", { className: "item", children: [
69
69
  /* @__PURE__ */ e.jsx(E, { className: "value-container", children: /* @__PURE__ */ e.jsx(
70
70
  "input",
@@ -246,7 +246,7 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
246
246
  name: "minLength",
247
247
  control: a,
248
248
  render: ({ field: { value: l, ...o } }) => /* @__PURE__ */ e.jsx(
249
- k,
249
+ A,
250
250
  {
251
251
  ...o,
252
252
  value: l ?? void 0,
@@ -263,7 +263,7 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
263
263
  name: "maxLength",
264
264
  control: a,
265
265
  render: ({ field: { value: l, ...o } }) => /* @__PURE__ */ e.jsx(
266
- k,
266
+ A,
267
267
  {
268
268
  ...o,
269
269
  value: l ?? void 0,
@@ -1,4 +1,4 @@
1
- import { aX as c, aw as t, ag as a, bc as f, ah as y, d8 as b, dc as m } from "./ContextBarContext-8a081573.js";
1
+ import { aX as c, aw as t, ag as a, bc as f, ah as y, da as b, de as m } from "./ContextBarContext-61e5b465.js";
2
2
  import { useContext as T, useState as h, useEffect as P } from "react";
3
3
  import { deleteProperty as A } from "@deviceinsight/ng-ui-api-client";
4
4
  import { Bubble as g, Button as x, Icon as I, withConfirm as O } from "@deviceinsight/ng-ui-basic-components";
@@ -1,11 +1,11 @@
1
- import { aw as e, ag as r, d6 as v, bN as B, dd as $, ah as R, de as M, bl as S, df as z, b7 as q, bc as U, bf as H, bi as J, bw as Q, bR as X, ad as Y } from "./ContextBarContext-8a081573.js";
1
+ import { aw as e, ag as r, d8 as v, bN as B, df as $, ah as R, dg as M, bl as S, dh as z, b7 as q, bc as U, bf as H, bi as J, bw as Q, bR as X, ad as Y } from "./ContextBarContext-61e5b465.js";
2
2
  import Z, { useState as C, useRef as D, useContext as O, useEffect as w } from "react";
3
3
  import { Prompt as ee, useParams as te, useHistory as ae, useLocation as ne } from "react-router-dom";
4
4
  import { fetchEmailTemplateById as se, fetchEmailTemplates as ie, createEmailTemplate as oe, updateEmailTemplate as le, deleteEmailTemplate as re } from "@deviceinsight/ng-ui-api-client";
5
5
  import { Modal as _, Button as k, useConfirm as ce, Accordion as de, AccordionItem as ue, Icon as A, ButtonRow as me, SpinnerContainer as fe } from "@deviceinsight/ng-ui-basic-components";
6
6
  import { ReactableWithClientSidePagination as W, nanoid10 as pe, messageBoxError as K, ContentHeader as he } from "@deviceinsight/ng-ui-components";
7
7
  import "react-i18next";
8
- import { A as xe } from "./AccessEditModal-861d96a6.js";
8
+ import { A as xe } from "./AccessEditModal-16f1845c.js";
9
9
  import "i18next";
10
10
  import "ux4iot-react";
11
11
  import "react-dom";
@@ -54,13 +54,13 @@ const je = (t) => [
54
54
  "event.key",
55
55
  "event.ruleId",
56
56
  "event.timestamp?datetime"
57
- ], ye = (t) => [
57
+ ], ge = (t) => [
58
58
  {
59
59
  name: "variable",
60
60
  label: /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.variablePicker.variable", children: "Variable" }),
61
61
  render: (a) => /* @__PURE__ */ e.jsx("div", { onClick: () => t(a), className: "clickable", children: a })
62
62
  }
63
- ], ge = () => {
63
+ ], ye = () => {
64
64
  const { assetProperties: t, assetGroupProperties: a } = B();
65
65
  return {
66
66
  assetProperties: t.filter((n) => !n.key.startsWith("_") && n.deletable),
@@ -69,7 +69,7 @@ const je = (t) => [
69
69
  )
70
70
  };
71
71
  }, Pe = ({ onSelect: t, onCancel: a }) => {
72
- const { assetProperties: n, assetGroupProperties: c } = ge(), s = Te(n, c);
72
+ const { assetProperties: n, assetGroupProperties: c } = ye(), s = Te(n, c);
73
73
  return /* @__PURE__ */ e.jsx(
74
74
  _,
75
75
  {
@@ -78,7 +78,7 @@ const je = (t) => [
78
78
  content: /* @__PURE__ */ e.jsx(
79
79
  W,
80
80
  {
81
- columnDefs: ye(t),
81
+ columnDefs: ge(t),
82
82
  uniqueItemKey: (m) => m,
83
83
  items: s,
84
84
  paginationSettings: {
@@ -97,23 +97,23 @@ const je = (t) => [
97
97
  width: 600
98
98
  }
99
99
  );
100
- }, G = Z.lazy(() => import("./TemplateTextInput-ac5506a5.js")), ve = (t, a) => t.locale === "default" ? -1 : a.locale === "default" ? 1 : t.locale.localeCompare(a.locale);
100
+ }, G = Z.lazy(() => import("./TemplateTextInput-e4c1ccf0.js")), ve = (t, a) => t.locale === "default" ? -1 : a.locale === "default" ? 1 : t.locale.localeCompare(a.locale);
101
101
  function Ce() {
102
102
  const t = ce(), [a, n] = C(!1), [c, s] = C("message"), {
103
103
  watch: m,
104
104
  control: h,
105
105
  setValue: f,
106
106
  formState: { errors: b }
107
- } = $(), { t: g } = R(), P = D(null), d = D(null), o = m("locales");
107
+ } = $(), { t: y } = R(), P = D(null), d = D(null), o = m("locales");
108
108
  async function l(x) {
109
109
  await t({
110
- title: g("notificationTemplate.form.confirmDeleteTitle", { defaultValue: "Delete translation" }),
111
- message: g("notificationTemplate.form.confirmDeleteMessage", {
110
+ title: y("notificationTemplate.form.confirmDeleteTitle", { defaultValue: "Delete translation" }),
111
+ message: y("notificationTemplate.form.confirmDeleteMessage", {
112
112
  defaultValue: "Do you really want to delete this translation?"
113
113
  })
114
114
  }) && f(
115
115
  "locales",
116
- o.filter((y) => y.locale !== x),
116
+ o.filter((g) => g.locale !== x),
117
117
  { shouldDirty: !0 }
118
118
  );
119
119
  }
@@ -123,13 +123,13 @@ function Ce() {
123
123
  function j(x) {
124
124
  const u = c === "subject" ? P.current : d.current;
125
125
  if (u) {
126
- const y = u.state.update({
126
+ const g = u.state.update({
127
127
  changes: {
128
128
  from: u.state.selection.main.head,
129
129
  insert: `\${${x}}`
130
130
  }
131
131
  });
132
- u.dispatch(y), n(!1);
132
+ u.dispatch(g), n(!1);
133
133
  } else
134
134
  throw new Error("Codemirror field not found");
135
135
  }
@@ -137,7 +137,7 @@ function Ce() {
137
137
  /* @__PURE__ */ e.jsx("h2", { children: /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplates.form.languages", children: "Languages" }) }),
138
138
  /* @__PURE__ */ e.jsx(de, { children: [...o].sort(ve).map((x) => {
139
139
  var N;
140
- const { locale: u } = x, y = /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.form.message", children: "Message" }), i = o.indexOf(x), p = !!((N = b.locales) != null && N[i]);
140
+ const { locale: u } = x, g = /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.form.message", children: "Message" }), i = o.indexOf(x), p = !!((N = b.locales) != null && N[i]);
141
141
  return /* @__PURE__ */ e.jsx(
142
142
  ue,
143
143
  {
@@ -173,7 +173,7 @@ function Ce() {
173
173
  onFocus: () => s("subject"),
174
174
  value: V,
175
175
  onChange: L,
176
- error: E ? g("notificationTemplates.form.subjectRequired", {
176
+ error: E ? y("notificationTemplates.form.subjectRequired", {
177
177
  defaultValue: "Please input subject"
178
178
  }) : void 0,
179
179
  label: /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.form.subject", children: "Subject" }),
@@ -203,10 +203,10 @@ function Ce() {
203
203
  onFocus: () => s("text"),
204
204
  value: V,
205
205
  onChange: L,
206
- error: E ? g("notificationTemplates.form.messageRequired", {
206
+ error: E ? y("notificationTemplates.form.messageRequired", {
207
207
  defaultValue: "Please input message"
208
208
  }) : void 0,
209
- label: y,
209
+ label: g,
210
210
  refField: (I) => d.current = I,
211
211
  renderAs: "textarea",
212
212
  required: !0
@@ -297,7 +297,7 @@ function Se({ onCancel: t, onSubmit: a, editedTemplateData: n }) {
297
297
  handleSubmit: m,
298
298
  setValue: h,
299
299
  watch: f,
300
- formState: { isSubmitting: b, isDirty: g }
300
+ formState: { isSubmitting: b, isDirty: y }
301
301
  } = s, [P, d] = C(!1), [o, l] = C(!1), T = f("locales");
302
302
  function j() {
303
303
  return m(a, (i) => {
@@ -310,7 +310,7 @@ function Se({ onCancel: t, onSubmit: a, editedTemplateData: n }) {
310
310
  function u(i) {
311
311
  l(!1), h("locales", [...T, { locale: i, id: 0, text: "", subject: "" }], { shouldDirty: !0 });
312
312
  }
313
- function y() {
313
+ function g() {
314
314
  return c.filter((i) => !T.some((p) => p.locale === i));
315
315
  }
316
316
  return /* @__PURE__ */ e.jsx(J, { ...s, children: /* @__PURE__ */ e.jsxs("div", { className: "template-form", children: [
@@ -321,7 +321,7 @@ function Se({ onCancel: t, onSubmit: a, editedTemplateData: n }) {
321
321
  {
322
322
  onClick: () => l(!0),
323
323
  "data-testid": "add-locale-button",
324
- disabled: !y().length,
324
+ disabled: !g().length,
325
325
  naked: !0,
326
326
  children: [
327
327
  /* @__PURE__ */ e.jsx(A, { add: !0 }),
@@ -340,7 +340,7 @@ function Se({ onCancel: t, onSubmit: a, editedTemplateData: n }) {
340
340
  o && /* @__PURE__ */ e.jsx(
341
341
  be,
342
342
  {
343
- locales: y(),
343
+ locales: g(),
344
344
  onSelect: u,
345
345
  onCancel: () => l(!1)
346
346
  }
@@ -353,7 +353,7 @@ function Se({ onCancel: t, onSubmit: a, editedTemplateData: n }) {
353
353
  loading: b
354
354
  }
355
355
  ),
356
- /* @__PURE__ */ e.jsx(ee, { message: "", when: g && !b })
356
+ /* @__PURE__ */ e.jsx(ee, { message: "", when: y && !b })
357
357
  ] }) });
358
358
  }
359
359
  function Ve() {
@@ -439,12 +439,12 @@ function ze() {
439
439
  []
440
440
  );
441
441
  }
442
- function g(o) {
442
+ function y(o) {
443
443
  const { locales: l } = o, T = s == null ? void 0 : s.displayName, j = (s == null ? void 0 : s.locales) ?? [], x = j.filter(
444
444
  ({ locale: i }) => !l.some((p) => p.locale === i)
445
445
  ), u = l.filter(
446
446
  ({ locale: i }) => !j.some((p) => p.locale === i)
447
- ), y = T === o.displayName ? l.filter((i) => {
447
+ ), g = T === o.displayName ? l.filter((i) => {
448
448
  const p = j.find(
449
449
  (N) => N.locale === i.locale
450
450
  );
@@ -454,13 +454,13 @@ function ze() {
454
454
  );
455
455
  return f(
456
456
  u.map(({ locale: i }) => F(i, o)),
457
- y.map(({ locale: i, id: p }) => Ke(p, i, o)),
457
+ g.map(({ locale: i, id: p }) => Ke(p, i, o)),
458
458
  x.map(({ id: i }) => i)
459
459
  );
460
460
  }
461
461
  async function P(o) {
462
462
  try {
463
- s ? await g(o) : await b(o), d();
463
+ s ? await y(o) : await b(o), d();
464
464
  } catch (l) {
465
465
  console.error("An error occured while trying to submit the template(s): ", l), l.response && l.response.status === 400 ? K(
466
466
  /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplates.form.nameOccupied", children: "Template with this name already exists" })
@@ -1,6 +1,6 @@
1
- import { aw as r, cy as x, aN as n } from "./ContextBarContext-8a081573.js";
1
+ import { aw as r, cA as x, aN as n } from "./ContextBarContext-61e5b465.js";
2
2
  import j from "react";
3
- import { C as d, j as N } from "./index-852b249c.js";
3
+ import { C as d, j as N } from "./index-3cf7ec87.js";
4
4
  import "react-router-dom";
5
5
  import "@deviceinsight/ng-ui-basic-components";
6
6
  import "@deviceinsight/ng-ui-components";
@@ -1,11 +1,11 @@
1
- import { aw as e, ag as s, aX as y, db as B, b1 as O, ah as F, bP as V, bw as z, aj as N, d8 as W, dc as $ } from "./ContextBarContext-8a081573.js";
1
+ import { aw as e, ag as s, aX as y, dd as B, b1 as O, ah as F, bP as V, bw as z, aj as N, da as W, de as $ } from "./ContextBarContext-61e5b465.js";
2
2
  import { useContext as H, useState as T, useCallback as q, useEffect as Y } from "react";
3
3
  import { Link as X, useLocation as J } from "react-router-dom";
4
4
  import { fetchUserGroupById as P, fetchEmailTemplates as _, fetchEmailTemplateAccessById as Q, updateEmailTemplate as Z, deleteEmailTemplate as ee } from "@deviceinsight/ng-ui-api-client";
5
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
7
  import "react-i18next";
8
- import { A as re } from "./AccessEditModal-861d96a6.js";
8
+ import { A as re } from "./AccessEditModal-16f1845c.js";
9
9
  import "i18next";
10
10
  import "ux4iot-react";
11
11
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { aw as e, d9 as S, aQ as E, bf as _, ah as N, al as R, ag as o, bl as j, b7 as y, da as M } from "./ContextBarContext-8a081573.js";
1
+ import { aw as e, db as S, aQ as E, bf as _, ah as N, al as R, ag as o, bl as j, b7 as y, dc as M } from "./ContextBarContext-61e5b465.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";
@@ -1,4 +1,4 @@
1
- import { aw as s, d0 as f, d1 as v, ag as c, d2 as g, aj as C, ax as x, d3 as l, ae as r, d4 as w, d5 as P } from "./ContextBarContext-8a081573.js";
1
+ import { aw as s, d2 as f, d3 as v, ag as c, d4 as g, aj as C, ax as x, d5 as l, ae as r, d6 as w, d7 as P } from "./ContextBarContext-61e5b465.js";
2
2
  import * as d from "react";
3
3
  import { useContext as S } from "react";
4
4
  import { Prompt as T } from "react-router-dom";
package/dist/api.d.ts CHANGED
@@ -673,6 +673,7 @@ declare class UIConfiguration {
673
673
  getDocumentationCustomVersion(): string | null | undefined;
674
674
  getAvailableApps(): Array<string> | null | undefined;
675
675
  getTrendExactValuesMinutes(): number;
676
+ getTrendMaxSlices(): number;
676
677
  getAccountCreationPrinciple(): 'username' | 'email';
677
678
  getEnabledWidgets(): string[] | null | undefined;
678
679
  isDashboardTimeDriveEnabled(context: DashboardContext['type']): boolean;
@@ -680,8 +681,6 @@ declare class UIConfiguration {
680
681
  getEventPriorities(): EventPriority[];
681
682
  getEventPriority(priorityValue: number): EventPriority | null;
682
683
  getDefaultEventPriority(): EventPriority;
683
- getTrendSlicesDivisor(): number;
684
- getTrendSlicesMinimum(): number;
685
684
  getAggregationListSize(): number;
686
685
  getDisplayWelcomeScreen(): boolean;
687
686
  getGitCommitShaShort(): string;
package/dist/api.js CHANGED
@@ -1,5 +1,5 @@
1
- import { ai as a, ax as n, aw as i, aN as r, bF as c, cB as m, cC as u, am as f, co as C, bq as d, cD as p } from "./ContextBarContext-8a081573.js";
2
- import { aQ as O, bv as G, af as V, ae as k, ag as w, cF as J, ad as K, cG as M, cE as X, cT as Z, aJ as j, aX as q, cJ as Q, cK as W, cQ as Y, cR as $, cO as z, cV as ss, cN as es, cP as ts, cI as os, cL as as, cM as ns, cH as is, cS as rs, as as cs, cU as ms, cW as us, cX as fs, ac as Cs, c2 as ds, ah as ps, bY as ls } from "./ContextBarContext-8a081573.js";
1
+ import { ai as a, ax as n, aw as i, aN as r, bF as c, cD as m, cE as u, am as f, cq as d, bq as C, cF as p } from "./ContextBarContext-61e5b465.js";
2
+ import { aQ as O, bv as G, af as V, ae as Z, ag as k, cH as q, ad as w, cI as J, cG as K, cV as M, aJ as X, aX as Y, cL as j, cM as Q, cS as W, cT as $, cQ as z, cX as ss, cP as es, cR as ts, cK as os, cN as as, cO as ns, cJ as is, cU as rs, as as cs, cW as ms, cY as us, cZ as fs, ac as ds, c3 as Cs, ah as ps, bY as ls } from "./ContextBarContext-61e5b465.js";
3
3
  import { m as ys, a as Ts } from "./useCanDeleteBundleVersion-64f35949.js";
4
4
  import { getAxios as l } from "@deviceinsight/ng-ui-api-client";
5
5
  import { s as Es } from "./customFileCategories-1b64ed45.js";
@@ -35,8 +35,8 @@ function U(s) {
35
35
  }
36
36
  const F = {
37
37
  onSignin: f,
38
- onSignout: C,
39
- onThemeChange: d,
38
+ onSignout: d,
39
+ onThemeChange: C,
40
40
  onUserProfileChange: p
41
41
  };
42
42
  export {
@@ -45,22 +45,22 @@ export {
45
45
  O as HasAuthorities,
46
46
  G as RouteApi,
47
47
  V as StyleApi,
48
- k as ThemeApi,
49
- w as Trans,
50
- J as TranslationApi,
51
- K as UiConfigurationApi,
52
- M as addCustomHeaderElement,
53
- X as addI18nextXHRBackend,
48
+ Z as ThemeApi,
49
+ k as Trans,
50
+ q as TranslationApi,
51
+ w as UiConfigurationApi,
52
+ J as addCustomHeaderElement,
53
+ K as addI18nextXHRBackend,
54
54
  F as eventBus,
55
- Z as generateAssetUrn,
55
+ M as generateAssetUrn,
56
56
  R as getNguiAxios,
57
- j as getStartPage,
58
- q as hasAuthorities,
59
- Q as modifyAssetColumnDefinitions,
60
- W as modifyAssetGroupColumnDefinitions,
57
+ X as getStartPage,
58
+ Y as hasAuthorities,
59
+ j as modifyAssetColumnDefinitions,
60
+ Q as modifyAssetGroupColumnDefinitions,
61
61
  ys as modifyCanDeleteBundle,
62
62
  Ts as modifyCanDeleteBundleVersion,
63
- Y as modifyChildAssetGroupsInitialSort,
63
+ W as modifyChildAssetGroupsInitialSort,
64
64
  $ as modifyCustomSearchProperties,
65
65
  z as modifyDashboardWidgets,
66
66
  ss as modifyIsDashboardVisible,
@@ -80,8 +80,8 @@ export {
80
80
  S as setFavicon,
81
81
  N as setLocizeProject,
82
82
  U as setPrimaryColor,
83
- Cs as setTitle,
84
- ds as useAssetTimezone,
83
+ ds as setTitle,
84
+ Cs as useAssetTimezone,
85
85
  ps as useTranslation,
86
86
  b as useUserAccountInfo,
87
87
  ls as ux4iotGrantRequestFunction
@@ -1,5 +1,5 @@
1
1
  import { useState as vs, useEffect as Vt, forwardRef as tu, useRef as iu, useImperativeHandle as nu } from "react";
2
- import { aw as su } from "./ContextBarContext-8a081573.js";
2
+ import { aw as su } from "./ContextBarContext-61e5b465.js";
3
3
  function sr() {
4
4
  return sr = Object.assign ? Object.assign.bind() : function(n) {
5
5
  for (var e = 1; e < arguments.length; e++) {