@deviceinsight/ng-ui-scale-lib 9.24.0 → 9.26.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 (25) hide show
  1. package/dist/{AccessEditModal-f04b44b5.js → AccessEditModal-c2178ad5.js} +3 -3
  2. package/dist/{BundleManagementContainer-36855d44.js → BundleManagementContainer-60c28e65.js} +2 -2
  3. package/dist/{BundlesContainer-f17fefe0.js → BundlesContainer-b3ee1991.js} +28 -28
  4. package/dist/{ContextBarContext-312508b6.js → ContextBarContext-a6c59c97.js} +27061 -26209
  5. package/dist/{DatapointImport-a281089b.js → DatapointImport-f6bdbdbc.js} +61 -61
  6. package/dist/{FileUploadInput-e1b2d5d8.js → FileUploadInput-81bb787f.js} +6 -6
  7. package/dist/{Files-0ab4e355.js → Files-dc240d97.js} +18 -18
  8. package/dist/{GlobalPowerBiReports-9a73fa90.js → GlobalPowerBiReports-3b7feef9.js} +2 -2
  9. package/dist/{Graph-c1b08526.js → Graph-f5463f47.js} +2 -2
  10. package/dist/{JsonSettingWidget-297070b4.js → JsonSettingWidget-307658b8.js} +9 -9
  11. package/dist/{LicensesEditPage-2147817e.js → LicensesEditPage-f62cca26.js} +13 -13
  12. package/dist/{LicensesList-f3708b54.js → LicensesList-85279448.js} +2 -2
  13. package/dist/{PropertiesEditPage-0935b879.js → PropertiesEditPage-4edb93b7.js} +11 -11
  14. package/dist/{PropertiesList-1ad8350d.js → PropertiesList-59c05fe4.js} +7 -7
  15. package/dist/{TemplateEditPage-7a9df6ea.js → TemplateEditPage-fe1b5f44.js} +4 -4
  16. package/dist/{TemplateTextInput-128d90c4.js → TemplateTextInput-34e4356f.js} +6 -6
  17. package/dist/{TemplatesListPage-6dca9756.js → TemplatesListPage-cd3194a7.js} +32 -32
  18. package/dist/{UserGroupAssignments-1d792757.js → UserGroupAssignments-291f29f0.js} +2 -2
  19. package/dist/{UserGroupTheme-ea07247d.js → UserGroupTheme-6768666a.js} +2 -2
  20. package/dist/api.d.ts +1 -0
  21. package/dist/api.js +57 -57
  22. package/dist/{index-464f8665.js → index-738ab9ab.js} +1 -1
  23. package/dist/index.js +1275 -1281
  24. package/dist/style.css +1 -1
  25. package/package.json +5 -3
@@ -1,13 +1,13 @@
1
- import { aw as s, ag as a, ah as y, da as b, de as g, aQ as j } from "./ContextBarContext-312508b6.js";
1
+ import { ax as s, ag as a, ah as y, dc as b, dg as g, aR as j } from "./ContextBarContext-a6c59c97.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";
5
5
  import { messageBoxError as h, ContentHeader as S } from "@deviceinsight/ng-ui-components";
6
6
  import { useConfirm as w, Button as D, Icon as I } from "@deviceinsight/ng-ui-basic-components";
7
7
  import "react-i18next";
8
+ import "react-dom";
8
9
  import "i18next";
9
10
  import "ux4iot-react";
10
- import "react-dom";
11
11
  function T({ license: t }) {
12
12
  const [e, n] = c([]), [r, o] = c(!1);
13
13
  return f(() => {
@@ -1,13 +1,13 @@
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-312508b6.js";
1
+ import { ax as e, cC as E, aO as V, dq as F, dh as L, dp as B, ag as d, ah as G, bg as D, bj as U, bm as h, b8 as w, dr as R, dm as P, ds as O, al as M, dt as H, du as X, bS as _, aY as Y, dv as $ } from "./ContextBarContext-a6c59c97.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 k, Icon as O, ButtonRow as se, Spinner as ae } from "@deviceinsight/ng-ui-basic-components";
5
+ import { Button as v, Checkbox as A, Icon as k, 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
+ import "react-dom";
8
9
  import "i18next";
9
10
  import "ux4iot-react";
10
- import "react-dom";
11
11
  function le(r) {
12
12
  const { options: s, children: x, onChange: c, values: i, ...t } = r;
13
13
  function a(u) {
@@ -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(k, { type: "toggle", value: c, toggleSmall: !0, onChange: y }),
60
+ /* @__PURE__ */ e.jsx(A, { 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(k, { value: c, onChange: y }),
67
+ /* @__PURE__ */ e.jsx(A, { 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",
@@ -74,13 +74,13 @@ function ie() {
74
74
  onChange: (m) => g(m.target.value, p)
75
75
  }
76
76
  ) }),
77
- /* @__PURE__ */ e.jsx(v, { onClick: () => f(p), children: /* @__PURE__ */ e.jsx(O, { del: !0 }) })
77
+ /* @__PURE__ */ e.jsx(v, { onClick: () => f(p), children: /* @__PURE__ */ e.jsx(k, { del: !0 }) })
78
78
  ] }, p)) })
79
79
  ]
80
80
  }
81
81
  ),
82
82
  c && /* @__PURE__ */ e.jsxs(v, { onClick: () => b(""), children: [
83
- /* @__PURE__ */ e.jsx(O, { add: !0 }),
83
+ /* @__PURE__ */ e.jsx(k, { add: !0 }),
84
84
  /* @__PURE__ */ e.jsx(d, { i18nKey: "properties.labels.allowedValuesAdd", children: "Add" })
85
85
  ] })
86
86
  ] });
@@ -130,7 +130,7 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
130
130
  })();
131
131
  }
132
132
  const p = f("type"), m = !!r, j = p === "STRING" || p === "TEXT", I = !!f("allowedValues");
133
- return /* @__PURE__ */ e.jsx(R, { ...t, children: /* @__PURE__ */ e.jsxs("div", { className: "property-form", children: [
133
+ return /* @__PURE__ */ e.jsx(U, { ...t, children: /* @__PURE__ */ e.jsxs("div", { className: "property-form", children: [
134
134
  /* @__PURE__ */ e.jsx(
135
135
  h,
136
136
  {
@@ -159,7 +159,7 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
159
159
  name: "type",
160
160
  control: a,
161
161
  render: ({ field: l }) => /* @__PURE__ */ e.jsx(
162
- U,
162
+ R,
163
163
  {
164
164
  label: /* @__PURE__ */ e.jsx(d, { i18nKey: "properties.labels.type", children: "Type" }),
165
165
  ...l,
@@ -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
- A,
249
+ O,
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
- A,
266
+ O,
267
267
  {
268
268
  ...o,
269
269
  value: l ?? void 0,
@@ -1,13 +1,13 @@
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-312508b6.js";
1
+ import { aY as c, ax as t, ag as a, bd as f, ah as y, dc as b, dg as m } from "./ContextBarContext-a6c59c97.js";
2
2
  import { useContext as T, useState as h, useEffect as P } from "react";
3
- import { deleteProperty as A } from "@deviceinsight/ng-ui-api-client";
4
- import { Bubble as g, Button as x, Icon as I, withConfirm as O } from "@deviceinsight/ng-ui-basic-components";
3
+ import { deleteProperty as g } from "@deviceinsight/ng-ui-api-client";
4
+ import { Bubble as x, Button as A, Icon as I, withConfirm as O } from "@deviceinsight/ng-ui-basic-components";
5
5
  import { ContentHeader as E } from "@deviceinsight/ng-ui-components";
6
6
  import { Link as v } from "react-router-dom";
7
7
  import "react-i18next";
8
+ import "react-dom";
8
9
  import "i18next";
9
10
  import "ux4iot-react";
10
- import "react-dom";
11
11
  const D = [
12
12
  "name",
13
13
  "urn",
@@ -175,7 +175,7 @@ function G(n, l) {
175
175
  const r = D.includes(e.key);
176
176
  if (o) {
177
177
  const i = /* @__PURE__ */ t.jsx(
178
- x,
178
+ A,
179
179
  {
180
180
  naked: !0,
181
181
  title: {
@@ -188,7 +188,7 @@ function G(n, l) {
188
188
  }
189
189
  );
190
190
  return r ? /* @__PURE__ */ t.jsx(
191
- g,
191
+ x,
192
192
  {
193
193
  content: /* @__PURE__ */ t.jsx(a, { i18nKey: "properties.tableHeaders.reserved", children: "This property is reserved and can't be deleted" }),
194
194
  children: i
@@ -229,7 +229,7 @@ const C = {
229
229
  id: "properties.confirmDeletePropertyMessage",
230
230
  defaultValue: "Do you really want to delete this Property?"
231
231
  }
232
- ), r(!0), await A(s), await p();
232
+ ), r(!0), await g(s), await p();
233
233
  }
234
234
  return /* @__PURE__ */ t.jsxs("div", { "data-testid": "properties-list", children: [
235
235
  /* @__PURE__ */ t.jsx(
@@ -1,14 +1,14 @@
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-312508b6.js";
1
+ import { ax as e, ag as r, da as v, bO as B, dh as $, ah as R, di as M, bm as S, dj as z, b8 as q, bd as U, bg as H, bj as J, bx as Q, bS as X, ad as Y } from "./ContextBarContext-a6c59c97.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-f04b44b5.js";
8
+ import { A as xe } from "./AccessEditModal-c2178ad5.js";
9
+ import "react-dom";
9
10
  import "i18next";
10
11
  import "ux4iot-react";
11
- import "react-dom";
12
12
  const je = (t) => [
13
13
  {
14
14
  name: "locale",
@@ -97,7 +97,7 @@ const je = (t) => [
97
97
  width: 600
98
98
  }
99
99
  );
100
- }, G = Z.lazy(() => import("./TemplateTextInput-128d90c4.js")), ve = (t, a) => t.locale === "default" ? -1 : a.locale === "default" ? 1 : t.locale.localeCompare(a.locale);
100
+ }, G = Z.lazy(() => import("./TemplateTextInput-34e4356f.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,
@@ -1,15 +1,15 @@
1
- import { aw as r, cA as x, aN as n } from "./ContextBarContext-312508b6.js";
1
+ import { ax as r, cC as x, aO as n } from "./ContextBarContext-a6c59c97.js";
2
2
  import j from "react";
3
- import { C as d, j as N } from "./index-464f8665.js";
3
+ import { C as d, j as b } from "./index-738ab9ab.js";
4
4
  import "react-router-dom";
5
+ import "react-dom";
5
6
  import "@deviceinsight/ng-ui-basic-components";
6
7
  import "@deviceinsight/ng-ui-components";
7
8
  import "react-i18next";
8
9
  import "i18next";
9
10
  import "@deviceinsight/ng-ui-api-client";
10
11
  import "ux4iot-react";
11
- import "react-dom";
12
- const P = j.forwardRef(
12
+ const O = j.forwardRef(
13
13
  ({ onFocus: l, onChange: i, refField: c, renderAs: o, ...a }, s) => {
14
14
  function p() {
15
15
  l();
@@ -37,7 +37,7 @@ const P = j.forwardRef(
37
37
  c(t), s && (typeof s == "function" ? s(t) : s.current = t);
38
38
  },
39
39
  onFocus: p,
40
- extensions: [N()]
40
+ extensions: [b()]
41
41
  }
42
42
  )
43
43
  }
@@ -45,5 +45,5 @@ const P = j.forwardRef(
45
45
  }
46
46
  );
47
47
  export {
48
- P as default
48
+ O as default
49
49
  };
@@ -1,14 +1,14 @@
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-312508b6.js";
2
- import { useContext as H, useState as T, useCallback as q, useEffect as Y } from "react";
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";
1
+ import { ax as e, ag as s, aY as x, df as B, b2 as P, ah as F, bQ as V, bx as z, aj as N, dc as W, dg as $ } from "./ContextBarContext-a6c59c97.js";
2
+ import { useContext as H, useState as T, useCallback as Y, useEffect as q } from "react";
3
+ import { Link as Q, useLocation as J } 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
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-f04b44b5.js";
8
+ import { A as re } from "./AccessEditModal-c2178ad5.js";
9
+ import "react-dom";
9
10
  import "i18next";
10
11
  import "ux4iot-react";
11
- import "react-dom";
12
12
  function ce(r, l, c, h, m) {
13
13
  return [
14
14
  {
@@ -20,7 +20,7 @@ function ce(r, l, c, h, m) {
20
20
  filterType: "text",
21
21
  filterFn: (t, n) => (t.displayName || t.name).toLowerCase().indexOf(n.toLowerCase()) >= 0
22
22
  },
23
- render: (t) => t.id ? /* @__PURE__ */ e.jsx(X, { to: `./${t.id}`, children: t.displayName || t.name }) : "-"
23
+ render: (t) => t.id ? /* @__PURE__ */ e.jsx(Q, { to: `./${t.id}`, children: t.displayName || t.name }) : "-"
24
24
  },
25
25
  {
26
26
  name: "message",
@@ -38,7 +38,7 @@ function ce(r, l, c, h, m) {
38
38
  whiteSpace: "normal",
39
39
  render: ({ subject: t }) => /* @__PURE__ */ e.jsx("span", { children: t }) || /* @__PURE__ */ e.jsx(s, { i18nKey: "notificationTemplates.noSubject", children: "None" })
40
40
  },
41
- y(["READ_ACCOUNT_GROUP"]) ? {
41
+ x(["READ_ACCOUNT_GROUP"]) ? {
42
42
  name: "userGroups",
43
43
  label: /* @__PURE__ */ e.jsx(s, { i18nKey: "notificationTemplates.columns.userGroups", children: "Authorised User Groups" }),
44
44
  width: "10%",
@@ -51,7 +51,7 @@ function ce(r, l, c, h, m) {
51
51
  const { accountGroupsWithAccess: n } = t;
52
52
  if (!n || !n.length)
53
53
  return null;
54
- function g(i) {
54
+ function E(i) {
55
55
  return m.find((u) => u.id === i) || {
56
56
  displayName: "-",
57
57
  id: i
@@ -63,21 +63,21 @@ function ce(r, l, c, h, m) {
63
63
  {
64
64
  menuButton: /* @__PURE__ */ e.jsx(G, { text: `${n.length} User Groups` }),
65
65
  children: n.map((i) => {
66
- const u = g(i), x = n.filter(
66
+ const u = E(i), y = n.filter(
67
67
  (A) => A !== u.id
68
68
  );
69
69
  return /* @__PURE__ */ e.jsx(se, { children: /* @__PURE__ */ e.jsx(
70
70
  G,
71
71
  {
72
72
  text: u.displayName || u.name,
73
- onDelete: () => l(x, t)
73
+ onDelete: () => l(y, t)
74
74
  }
75
75
  ) }, u.id);
76
76
  })
77
77
  }
78
78
  );
79
79
  {
80
- const i = g(n[0]);
80
+ const i = E(n[0]);
81
81
  return /* @__PURE__ */ e.jsx(
82
82
  G,
83
83
  {
@@ -88,13 +88,13 @@ function ce(r, l, c, h, m) {
88
88
  }
89
89
  }
90
90
  } : null,
91
- y([["DELETE_NOTIFICATION_TEMPLATE"], ["READ_ACCOUNT_GROUP"]]) ? {
91
+ x([["DELETE_NOTIFICATION_TEMPLATE"], ["READ_ACCOUNT_GROUP"]]) ? {
92
92
  name: "actions",
93
93
  label: "",
94
94
  width: "10%",
95
95
  align: "right",
96
96
  render: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
97
- y([["READ_ACCOUNT_GROUP"]]) && /* @__PURE__ */ e.jsx(
97
+ x([["READ_ACCOUNT_GROUP"]]) && /* @__PURE__ */ e.jsx(
98
98
  C,
99
99
  {
100
100
  naked: !0,
@@ -103,7 +103,7 @@ function ce(r, l, c, h, m) {
103
103
  children: /* @__PURE__ */ e.jsx("img", { className: "di icon", src: B, alt: "key" })
104
104
  }
105
105
  ),
106
- y(["DELETE_NOTIFICATION_TEMPLATE"]) && /* @__PURE__ */ e.jsx(
106
+ x(["DELETE_NOTIFICATION_TEMPLATE"]) && /* @__PURE__ */ e.jsx(
107
107
  C,
108
108
  {
109
109
  naked: !0,
@@ -114,10 +114,10 @@ function ce(r, l, c, h, m) {
114
114
  )
115
115
  ] })
116
116
  } : null
117
- ].filter(O);
117
+ ].filter(P);
118
118
  }
119
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", {
120
+ const { t: h } = F(), m = x(["ACCESS_TO_ALL_NOTIFICATION_TEMPLATES"]), t = m ? h("notificationTemplate.access.delete.authorized", {
121
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!"
122
122
  }) : h("notificationTemplate.access.delete.unauthorized", {
123
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."
@@ -151,7 +151,7 @@ async function pe() {
151
151
  const r = await _(de);
152
152
  return await Promise.all(
153
153
  r.map(async (l) => {
154
- const { accountGroupIds: c } = await Q(l.id);
154
+ const { accountGroupIds: c } = await X(l.id);
155
155
  return Promise.resolve({
156
156
  ...l,
157
157
  accountGroupsWithAccess: c,
@@ -161,7 +161,7 @@ async function pe() {
161
161
  );
162
162
  }
163
163
  function fe({ confirm: r }) {
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(
164
+ const { setContextInfo: l } = H(z), { pathname: c } = J(), [h, m] = T([]), [t, n] = T(!0), [E, i] = T(!1), [u, y] = T(!1), [A, I] = T([]), [j, L] = T(), M = /* @__PURE__ */ e.jsx(s, { i18nKey: "portalAdmin.sidebarElements.templates.create", children: "Create new notification template" }), w = Y(
165
165
  (a) => {
166
166
  l({
167
167
  type: "search",
@@ -184,7 +184,7 @@ function fe({ confirm: r }) {
184
184
  });
185
185
  await Promise.all(o.map((p) => ee(p.id)));
186
186
  const d = A.filter((p) => p.name !== a.name);
187
- w(d), I(d);
187
+ I(d), w(d);
188
188
  } catch (o) {
189
189
  console.error("error occured while trying to delete the template", o), S(
190
190
  /* @__PURE__ */ e.jsx(s, { i18nKey: "notificationTemplate.list.deleteTemplate.error", children: "An error occurred while trying to delete the template" })
@@ -216,8 +216,8 @@ function fe({ confirm: r }) {
216
216
  }), p = { ...o, accountGroupsWithAccess: a }, f = N.unionBy([p], A, "id");
217
217
  await Promise.all(
218
218
  d.map(
219
- (E) => Z({
220
- ...E,
219
+ (g) => Z({
220
+ ...g,
221
221
  accountGroupsWithAccess: a
222
222
  })
223
223
  )
@@ -225,17 +225,17 @@ function fe({ confirm: r }) {
225
225
  const R = [
226
226
  ...new Set(
227
227
  N.flatten(
228
- f.map(({ accountGroupsWithAccess: E }) => E).filter(Boolean)
228
+ f.map(({ accountGroupsWithAccess: g }) => g).filter(Boolean)
229
229
  )
230
230
  )
231
- ], k = await Promise.all(R.map((E) => P(E)));
232
- w(f), m(k), I(f);
231
+ ], k = await Promise.all(R.map((g) => O(g)));
232
+ I(f), m(k), w(f);
233
233
  } catch (d) {
234
234
  console.error("error occured while trying to save access on template: ", d), S(
235
235
  /* @__PURE__ */ e.jsx(s, { i18nKey: "notificationTemplate.list.updateTemplate.error", children: "An error occured while trying to save access" })
236
236
  );
237
237
  } finally {
238
- n(!1), x(!1), i(!1);
238
+ n(!1), y(!1), i(!1);
239
239
  }
240
240
  }
241
241
  }
@@ -243,19 +243,19 @@ function fe({ confirm: r }) {
243
243
  L(a), i(!0);
244
244
  }
245
245
  function K(a) {
246
- L(a), x(!0);
246
+ L(a), y(!0);
247
247
  }
248
- return Y(() => {
248
+ return q(() => {
249
249
  let a = !1;
250
250
  return (async () => {
251
251
  try {
252
252
  const o = await pe();
253
253
  if (a)
254
254
  return;
255
- if (w(o), I(o), y(["READ_ACCOUNT_GROUP"])) {
255
+ if (I(o), w(o), x(["READ_ACCOUNT_GROUP"])) {
256
256
  const d = [
257
257
  ...new Set(N.flatten(o.map(({ accountGroupsWithAccess: f }) => f)))
258
- ].filter(O), p = await Promise.all(d.map((f) => P(f)));
258
+ ].filter(P), p = await Promise.all(d.map((f) => O(f)));
259
259
  m(p);
260
260
  }
261
261
  } catch (o) {
@@ -305,7 +305,7 @@ function fe({ confirm: r }) {
305
305
  tableName: "notificationTemplates"
306
306
  }
307
307
  ),
308
- g && j && /* @__PURE__ */ e.jsx(
308
+ E && j && /* @__PURE__ */ e.jsx(
309
309
  re,
310
310
  {
311
311
  onCancel: () => i(!1),
@@ -317,7 +317,7 @@ function fe({ confirm: r }) {
317
317
  u && j && /* @__PURE__ */ e.jsx(
318
318
  me,
319
319
  {
320
- onCancel: () => x(!1),
320
+ onCancel: () => y(!1),
321
321
  onSave: b,
322
322
  template: j
323
323
  }
@@ -1,13 +1,13 @@
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-312508b6.js";
1
+ import { ax as e, dd as S, aR as E, bg as _, ah as N, al as R, ag as o, bm as j, b8 as y, de as M } from "./ContextBarContext-a6c59c97.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-dom";
7
8
  import "react-i18next";
8
9
  import "i18next";
9
10
  import "ux4iot-react";
10
- import "react-dom";
11
11
  function D() {
12
12
  const [n, a] = A([]), [s, r] = A(!1), [f, m] = A(null);
13
13
  C(() => {
@@ -1,14 +1,14 @@
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-312508b6.js";
1
+ import { ax as s, d4 as f, d5 as v, ag as c, d6 as g, aj as C, ay as x, d7 as l, ae as r, d8 as w, d9 as P } from "./ContextBarContext-a6c59c97.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";
5
5
  import { Button as p, 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
7
  import "react-i18next";
8
+ import "react-dom";
8
9
  import "i18next";
9
10
  import "@deviceinsight/ng-ui-api-client";
10
11
  import "ux4iot-react";
11
- import "react-dom";
12
12
  const u = (o) => ("0" + parseInt(o).toString(16)).slice(-2), b = (o) => {
13
13
  if (o.includes("#"))
14
14
  return o;
package/dist/api.d.ts CHANGED
@@ -703,6 +703,7 @@ declare class UIConfiguration {
703
703
  isTestTenant(): boolean;
704
704
  private getConfigurationValue;
705
705
  getDefaultPlotType(): 'step' | 'line' | 'line-area' | 'step-area' | null;
706
+ getDatapointSortingDisabled(): boolean;
706
707
  }
707
708
  declare const _default$1: UIConfiguration;
708
709
 
package/dist/api.js CHANGED
@@ -1,39 +1,39 @@
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-312508b6.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-312508b6.js";
3
- import { m as ys, a as Ts } from "./useCanDeleteBundleVersion-64f35949.js";
1
+ import { ai as a, ay as n, ax as i, aO as r, bG as c, cF as m, cG as u, am as f, cr as d, br as C, cH as p } from "./ContextBarContext-a6c59c97.js";
2
+ import { aR as H, bw as L, af as V, ae as Z, ag as K, cJ as k, ad as w, cK as M, cI as Y, cX as $, aK as j, aY as J, cN as W, cO as X, cU as q, cV as Q, cS as z, cZ as ee, cR as se, cT as te, cM as oe, cP as ae, cQ as ne, cL as ie, cW as re, cA as ce, cY as me, c_ as ue, c$ as fe, ac as de, c4 as Ce, ah as pe, bZ as le } from "./ContextBarContext-a6c59c97.js";
3
+ import { m as ye, a as Te } from "./useCanDeleteBundleVersion-64f35949.js";
4
4
  import { getAxios as l } from "@deviceinsight/ng-ui-api-client";
5
- import { s as Es } from "./customFileCategories-1b64ed45.js";
5
+ import { s as Ee } from "./customFileCategories-1b64ed45.js";
6
6
  import { useContext as t, useEffect as A } from "react";
7
7
  import "react-router-dom";
8
+ import "react-dom";
8
9
  import "@deviceinsight/ng-ui-basic-components";
9
10
  import "@deviceinsight/ng-ui-components";
10
11
  import "react-i18next";
11
12
  import "i18next";
12
13
  import "ux4iot-react";
13
- import "react-dom";
14
- const N = (s) => a({
15
- REACT_APP_TENANT_LOCIZE_PROJECT_ID: s.projectId,
16
- REACT_APP_TENANT_LOCIZE_API_KEY: s.apiKey,
17
- REACT_APP_TENANT_LOCIZE_VERSION: s.version
18
- }), R = () => l();
14
+ const R = (e) => a({
15
+ REACT_APP_TENANT_LOCIZE_PROJECT_ID: e.projectId,
16
+ REACT_APP_TENANT_LOCIZE_API_KEY: e.apiKey,
17
+ REACT_APP_TENANT_LOCIZE_VERSION: e.version
18
+ }), N = () => l();
19
19
  function b() {
20
- const { user: s } = t(n);
21
- return s;
20
+ const { user: e } = t(n);
21
+ return e;
22
22
  }
23
- function v({ className: s, icon: e, ...o }) {
24
- return /* @__PURE__ */ i.jsx("button", { className: r(s, "tool"), ...o, children: e });
23
+ function v({ className: e, icon: s, ...o }) {
24
+ return /* @__PURE__ */ i.jsx("button", { className: r(e, "tool"), ...o, children: s });
25
25
  }
26
- function B({ children: s }) {
27
- const { addItem: e } = t(c);
28
- return A(() => e(s), [e, s]), null;
26
+ function B({ children: e }) {
27
+ const { addItem: s } = t(c);
28
+ return A(() => s(e), [s, e]), null;
29
29
  }
30
- function S(s) {
31
- return console.warn("Don't use setFavicon. This function is deprecated"), m(s, !0);
30
+ function S(e) {
31
+ return console.warn("Don't use setFavicon. This function is deprecated"), m(e, !0);
32
32
  }
33
- function U(s) {
34
- return console.warn("Don't use setPrimaryColor. This function is deprecated"), u(s, !0);
33
+ function U(e) {
34
+ return console.warn("Don't use setPrimaryColor. This function is deprecated"), u(e, !0);
35
35
  }
36
- const F = {
36
+ const O = {
37
37
  onSignin: f,
38
38
  onSignout: d,
39
39
  onThemeChange: C,
@@ -42,47 +42,47 @@ const F = {
42
42
  export {
43
43
  v as ContextBarAction,
44
44
  B as ContextBarActionContainer,
45
- O as HasAuthorities,
46
- G as RouteApi,
45
+ H as HasAuthorities,
46
+ L as RouteApi,
47
47
  V as StyleApi,
48
48
  Z as ThemeApi,
49
- k as Trans,
50
- q as TranslationApi,
49
+ K as Trans,
50
+ k as TranslationApi,
51
51
  w as UiConfigurationApi,
52
- J as addCustomHeaderElement,
53
- K as addI18nextXHRBackend,
54
- F as eventBus,
55
- M as generateAssetUrn,
56
- R as getNguiAxios,
57
- X as getStartPage,
58
- Y as hasAuthorities,
59
- j as modifyAssetColumnDefinitions,
60
- Q as modifyAssetGroupColumnDefinitions,
61
- ys as modifyCanDeleteBundle,
62
- Ts as modifyCanDeleteBundleVersion,
63
- W as modifyChildAssetGroupsInitialSort,
64
- $ as modifyCustomSearchProperties,
52
+ M as addCustomHeaderElement,
53
+ Y as addI18nextXHRBackend,
54
+ O as eventBus,
55
+ $ as generateAssetUrn,
56
+ N as getNguiAxios,
57
+ j as getStartPage,
58
+ J as hasAuthorities,
59
+ W as modifyAssetColumnDefinitions,
60
+ X as modifyAssetGroupColumnDefinitions,
61
+ ye as modifyCanDeleteBundle,
62
+ Te as modifyCanDeleteBundleVersion,
63
+ q as modifyChildAssetGroupsInitialSort,
64
+ Q as modifyCustomSearchProperties,
65
65
  z as modifyDashboardWidgets,
66
- ss as modifyIsDashboardVisible,
67
- es as modifyMapMarkerIcon,
68
- ts as modifyPropertyVisibility,
69
- os as modifyRoutes,
70
- as as modifyUserColumnDefinitions,
71
- ns as modifyUserGroupColumnDefinitions,
72
- is as removeCustomHeaderElement,
73
- rs as replaceComponent,
74
- cs as retrieveAuthInfo,
75
- ms as setContextInfo,
76
- Es as setCustomFilesCategories,
77
- us as setCustomLoginPageElement,
78
- fs as setDatapointsByAssetIdPreprocessHook,
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
+ ce as retrieveAuthInfo,
75
+ me as setContextInfo,
76
+ Ee as setCustomFilesCategories,
77
+ ue as setCustomLoginPageElement,
78
+ fe as setDatapointsByAssetIdPreprocessHook,
79
79
  a as setEnvironment,
80
80
  S as setFavicon,
81
- N as setLocizeProject,
81
+ R as setLocizeProject,
82
82
  U as setPrimaryColor,
83
- ds as setTitle,
84
- Cs as useAssetTimezone,
85
- ps as useTranslation,
83
+ de as setTitle,
84
+ Ce as useAssetTimezone,
85
+ pe as useTranslation,
86
86
  b as useUserAccountInfo,
87
- ls as ux4iotGrantRequestFunction
87
+ le as ux4iotGrantRequestFunction
88
88
  };
@@ -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-312508b6.js";
2
+ import { ax as su } from "./ContextBarContext-a6c59c97.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++) {