@deviceinsight/ng-ui-scale-lib 9.18.3 → 9.18.5

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 (26) hide show
  1. package/dist/{AccessEditModal-9e099de6.js → AccessEditModal-282046e1.js} +14 -14
  2. package/dist/{BundleManagementContainer-e2e023e4.js → BundleManagementContainer-ab0967d5.js} +1 -1
  3. package/dist/{BundlesContainer-fe9d8333.js → BundlesContainer-4bd7633a.js} +18 -18
  4. package/dist/{ContextBarContext-925a628f.js → ContextBarContext-ae056648.js} +4247 -4244
  5. package/dist/{DatapointImport-b71a1fb7.js → DatapointImport-13e46d9f.js} +82 -82
  6. package/dist/{FileUploadInput-3a3864f1.js → FileUploadInput-3de5e077.js} +1 -1
  7. package/dist/{Files-f6724431.js → Files-07d37306.js} +51 -51
  8. package/dist/{GlobalPowerBiReports-c65f2db5.js → GlobalPowerBiReports-1bf0686f.js} +1 -1
  9. package/dist/{Graph-a68526cc.js → Graph-d337f320.js} +1 -1
  10. package/dist/{JsonSettingWidget-b2ee4eb1.js → JsonSettingWidget-a34ebb91.js} +6 -6
  11. package/dist/{LicensesEditPage-06347792.js → LicensesEditPage-ef35006f.js} +8 -8
  12. package/dist/{LicensesList-42e68f81.js → LicensesList-e159a259.js} +13 -13
  13. package/dist/{PropertiesEditPage-d30ad124.js → PropertiesEditPage-604ce509.js} +28 -28
  14. package/dist/{PropertiesList-d294ec55.js → PropertiesList-001a49a3.js} +1 -1
  15. package/dist/{TemplateEditPage-a7ec0bd8.js → TemplateEditPage-3d533bcb.js} +9 -9
  16. package/dist/{TemplateTextInput-371f1882.js → TemplateTextInput-1ef5bc21.js} +4 -4
  17. package/dist/{TemplatesListPage-d20e6d3a.js → TemplatesListPage-22c808c6.js} +12 -12
  18. package/dist/{UserGroupAssignments-d1a0ecf7.js → UserGroupAssignments-d59a6035.js} +5 -5
  19. package/dist/{UserGroupTheme-c77740fb.js → UserGroupTheme-035ec6b7.js} +2 -2
  20. package/dist/api.d.ts +1175 -0
  21. package/dist/api.js +17 -17
  22. package/dist/{index-fb9aff4b.js → index-0784a499.js} +28 -28
  23. package/dist/index.d.ts +11 -0
  24. package/dist/index.js +968 -955
  25. package/dist/{react-router-9e614587.js → react-router-34a40365.js} +1 -1
  26. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- import { aj as V, ay as e, ai as p, c_ as D, c$ as R, bs as G, a6 as Y, b6 as z, cr as Z, d0 as q, a_ as _, aS as $ } from "./ContextBarContext-925a628f.js";
2
- import { messageBoxError as J, ReactableWithClientSidePagination as ee, ContentHeader as se, RouteTabs as te } from "@deviceinsight/ng-ui-components";
1
+ import { aj as V, az as e, ai as p, c$ as D, d0 as R, bt as G, a6 as Y, b7 as z, cs as Z, d1 as q, a$ as _, aT as $ } from "./ContextBarContext-ae056648.js";
2
+ import { messageBoxError as J, ReactableWithClientSidePagination as ee, ContentHeader as te, RouteTabs as se } from "@deviceinsight/ng-ui-components";
3
3
  import { useState as B, useCallback as S, useRef as ie, useEffect as U, useMemo as X, createContext as ae, useContext as ne } from "react";
4
4
  import { Modal as le, SpinnerContainer as P, Button as k, Icon as W, useConfirm as oe } from "@deviceinsight/ng-ui-basic-components";
5
- import { F as re } from "./FileUploadInput-3a3864f1.js";
5
+ import { F as re } from "./FileUploadInput-3de5e077.js";
6
6
  import { createPortal as de } from "react-dom";
7
7
  import { Link as ce } from "react-router-dom";
8
8
  import { g as M } from "./customFileCategories-1b64ed45.js";
9
9
  import "@deviceinsight/ng-ui-api-client";
10
- const Ae = ({ fileType: s, onClose: t, onUpload: l }) => {
10
+ const Ae = ({ fileType: t, onClose: s, onUpload: l }) => {
11
11
  const { t: n } = V(), [u, i] = B(null), [m, A] = B(""), [g, f] = B(!1), h = u && !m, d = async (o) => {
12
12
  if (o) {
13
13
  f(!0);
14
14
  try {
15
- await l(o, s), t();
15
+ await l(o, t), s();
16
16
  } catch (F) {
17
17
  J(F.message), console.error(F), f(!1);
18
18
  }
@@ -26,13 +26,13 @@ const Ae = ({ fileType: s, onClose: t, onUpload: l }) => {
26
26
  le,
27
27
  {
28
28
  width: 450,
29
- header: s === "documents" ? /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.uploadForm.addDocument", children: "Add document" }) : /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.uploadForm.addImage", children: "Add image" }),
29
+ header: t === "documents" ? /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.uploadForm.addDocument", children: "Add document" }) : /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.uploadForm.addImage", children: "Add image" }),
30
30
  content: /* @__PURE__ */ e.jsx(P, { show: g, children: /* @__PURE__ */ e.jsx(
31
31
  re,
32
32
  {
33
33
  label: /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.uploadForm.fileLabel", children: "File to upload" }),
34
34
  onChange: x,
35
- imagesOnly: s === "images",
35
+ imagesOnly: t === "images",
36
36
  error: m,
37
37
  required: !0
38
38
  }
@@ -48,28 +48,28 @@ const Ae = ({ fileType: s, onClose: t, onUpload: l }) => {
48
48
  children: /* @__PURE__ */ e.jsx(p, { i18nKey: "general.actions.save", children: "Save" })
49
49
  }
50
50
  ),
51
- /* @__PURE__ */ e.jsx(k, { onClick: t, children: /* @__PURE__ */ e.jsx(p, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
51
+ /* @__PURE__ */ e.jsx(k, { onClick: s, children: /* @__PURE__ */ e.jsx(p, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
52
52
  ] })
53
53
  }
54
54
  );
55
- }, ue = ({ contentType: s, loading: t, content: l }) => /* @__PURE__ */ e.jsx("div", { className: "image-preview", children: /* @__PURE__ */ e.jsxs(P, { show: t, children: [
56
- s === "image/svg+xml" && /* @__PURE__ */ e.jsx(
55
+ }, ue = ({ contentType: t, loading: s, content: l }) => /* @__PURE__ */ e.jsx("div", { className: "image-preview", children: /* @__PURE__ */ e.jsxs(P, { show: s, children: [
56
+ t === "image/svg+xml" && /* @__PURE__ */ e.jsx(
57
57
  "div",
58
58
  {
59
59
  className: "svg-preview",
60
60
  style: {
61
- backgroundImage: `url("${t || !l ? "" : l}")`
61
+ backgroundImage: `url("${s || !l ? "" : l}")`
62
62
  }
63
63
  }
64
64
  ),
65
- s !== "image/svg+xml" && /* @__PURE__ */ e.jsx("img", { src: l, alt: "" })
65
+ t !== "image/svg+xml" && /* @__PURE__ */ e.jsx("img", { src: l, alt: "" })
66
66
  ] }) }), me = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAfCAYAAADwbH0HAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4ggUCDQxnLQ5VQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAGASURBVEjHvde3UgMxEIBhAUNBdoKCHEo/Aa9BCwWtXw7GBRVDGPKAzzahIaeKmhp+CmSP5izJF/a8rXb3mztJJ51SRgB9qkfRb6AVpdQWMCiNANPANlAKD1SAX/6jKolr9F73bgKF1sCGgSKJh9BWBEBOAbPAE52RCtfog6XvLjDUSpoDnqVwD7rXRo3keeAlLQ7MONB9YNhVlArX6KOl/sCJGsULwGtc3IMedkWNJovAW1Tcgx4BI3EXSCTcgx4Do0m3xBLw7sI96Eli1MCXgQ9L8x0HegqMSX32XHg4zsRQA18BPj3oOTCeyVEGrDrQ746TRxAtATeeJ66KH6kavY4wx3I4UHSgl8BXJrhGm66FBJTFcaAANCxNL8zVK4pHRUVxjdYdczrhqUuOA/kkaCpco4Gl6ArIxZim6LhGa5bkWhw0Fg7kHGgA5FNsRT8OrFnu1fU0aBf81rzUbwI/eqDRHpD58pn4HTAZTljXr7yYwQFT1tfbKVfCQK/+Fv8AJCO91qtSsKIAAAAASUVORK5CYII=", ge = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAnCAYAAADtu3N3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4ggUCCsYE1yvpwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAFTSURBVEjHrdY9S5BhFAbgNykUKUIRE10kGxxsUgQXF2lLGppsCTcdGhprCZxqcNCxKRp0EcTJpaWGwBaDhpCIoJZECIQkTOty8Ajvfs7zAy44D/f5aJrkQweGmgLoEtZxioEs9sL5+4CODLQY0DfcyECzUdovjGagCfzGMaYz0DB+4j/mMlAPPsc/PclAnXgX0MuKLME2LldkaRdXM9BCQN8xmIHuRpYOMZaBxiNLfzFTkSV4WJWlZ9ksvQ3oVTZLawG9wZUM9jygT7iegYYCOsVIxQy/6LvXFbO8F3sBLlWAN7Ef4HwFOIkjnOBOBXgP/6Inb1eAj6LcH1ULdjnAj7hWEZmNkgkbYBfep2d/C+zDlwCfVoC3cBD78kEFOIU/6U3eAu9HBnM3Rgt8XHL9tMCV1l3WXZHBzQC3UodegN3YCXC1otx+fA2wpIeHsdA0TXMGpWMqV6FcS+MAAAAASUVORK5CYII=", fe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAnCAYAAAACeRhJAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4ggUCCwH0RU0lQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAFISURBVEjHrdaxS9VhFAZgja43JUy4uETocBsjwSXvLLnYEjQn4pKb4B6I08XJ1SXK6bo4Oogt3T0QHXTLJMGWFDFI83HwDM7f+Z0/4OF7h++8pwfD6O/JDn5gD0NZaM3dfEVfBqphJ7D17KueRDxYzmIj+BXYXBYbxwWuMJXFpnGNc4xlsQ8R8RjPslg7sF0MZqBedALbRi2D1fEtsE/ZiA0cBPYxizVxGtj7LPYKl/iHySz2Fv/xBy+y2EJEPMLTLLYa2Hc8zkAPsBnYFh5msIF72+JNBloM5CeGS5F3uMEZXpYiLfyNnfW6FHmO3xFpNvPnDgNZKkUeoRvIl8xe2rjXfbVSaCWQ/eI2xnwgJxjNtskFxrP9do3pKhp3vooboF3FVdJBbyn0OZAu6qXIUiAHaJQiM4GcoplZUCdRMxNVVEwre9TeAsA6JS24jJJMAAAAAElFTkSuQmCC", xe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAdCAYAAACqhkzFAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4ggUCDYA/1xb7QAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAADlSURBVEjH7dW/CsIwEAbw7ySDjyFOujgJ4jMU3AWp7eJLCE7+2ZzENxB8GmdHV0FBN5f6uVQMIW0aCk45KLSX3I9LCI3AEiRHAGYoj4WInMykKpjcBhA5wJ0t2XAULQF0jedQVqAc4FVEzsZ2PMoKXB16RwADGMAA/gdUJFsAJkZ+WKF2TLKvfWcA9kpELiSbAOaezcTa+xtAKiJP/U+84i+2JBOSHcsFNsjHjvncjGSMgtvui95I9opaIxmRfOXYtHQdLtQL04rWNtTAEq8dN9FamIZucvSuYWmtg6qh9TFj+ZWwD7+x6apgNh+aAAAAAElFTkSuQmCC";
67
- const he = ({ initialImageNumber: s, items: t, onDownload: l, onClose: n }) => {
68
- const [u, i] = B(s), [m, A] = B(), [g, f] = B(!1), h = S(() => i((b) => Math.min(t.length - 1, b + 1)), [t]), d = S(() => i((b) => Math.max(0, b - 1)), []), x = ie({});
67
+ const he = ({ initialImageNumber: t, items: s, onDownload: l, onClose: n }) => {
68
+ const [u, i] = B(t), [m, A] = B(), [g, f] = B(!1), h = S(() => i((b) => Math.min(s.length - 1, b + 1)), [s]), d = S(() => i((b) => Math.max(0, b - 1)), []), x = ie({});
69
69
  U(() => (D.addListener("right", h), D.addListener("left", d), D.addListener("esc", n), () => {
70
70
  D.removeListener("right", h), D.removeListener("left", d), D.removeListener("esc", n);
71
71
  }), [h, d, n]);
72
- const o = t[u];
72
+ const o = s[u];
73
73
  U(() => {
74
74
  const b = x.current[o.key];
75
75
  b ? A(R(o.contentType, b)) : (f(!0), l(o).then((w) => {
@@ -78,7 +78,7 @@ const he = ({ initialImageNumber: s, items: t, onDownload: l, onClose: n }) => {
78
78
  }, [o, l]);
79
79
  const F = () => {
80
80
  G.saveAs(new Blob([x.current[o.key]]), o.filename);
81
- }, I = t.length > 0 && u > 0, v = t.length > 0 && u < t.length - 1, { body: y } = document;
81
+ }, I = s.length > 0 && u > 0, v = s.length > 0 && u < s.length - 1, { body: y } = document;
82
82
  return y ? de(
83
83
  /* @__PURE__ */ e.jsxs("div", { className: "di file-previewer", children: [
84
84
  /* @__PURE__ */ e.jsx("div", { className: "background" }),
@@ -97,7 +97,7 @@ const he = ({ initialImageNumber: s, items: t, onDownload: l, onClose: n }) => {
97
97
  ) : null;
98
98
  };
99
99
  var Q = { exports: {} };
100
- (function(s, t) {
100
+ (function(t, s) {
101
101
  (function(l) {
102
102
  var n = /^(b|B)$/, u = { iec: { bits: ["b", "Kib", "Mib", "Gib", "Tib", "Pib", "Eib", "Zib", "Yib"], bytes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] }, jedec: { bits: ["b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb"], bytes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] } }, i = { iec: ["", "kibi", "mebi", "gibi", "tebi", "pebi", "exbi", "zebi", "yobi"], jedec: ["", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta"] };
103
103
  function m(A) {
@@ -110,7 +110,7 @@ var Q = { exports: {} };
110
110
  return function(g) {
111
111
  return m(g, A);
112
112
  };
113
- }, s.exports = m;
113
+ }, t.exports = m;
114
114
  })();
115
115
  })(Q);
116
116
  var pe = Q.exports;
@@ -122,7 +122,7 @@ const be = /* @__PURE__ */ Y(pe), je = {
122
122
  direction: "DESC"
123
123
  }
124
124
  };
125
- function Be(s, t, l, n, u) {
125
+ function Be(t, s, l, n, u) {
126
126
  return [
127
127
  {
128
128
  name: "filename",
@@ -135,7 +135,7 @@ function Be(s, t, l, n, u) {
135
135
  return i.filename.toLowerCase().indexOf(m.toLowerCase()) !== -1;
136
136
  }
137
137
  },
138
- render: (i) => /* @__PURE__ */ e.jsxs(ce, { to: "#", onClick: () => t(i), children: [
138
+ render: (i) => /* @__PURE__ */ e.jsxs(ce, { to: "#", onClick: () => s(i), children: [
139
139
  i.filename,
140
140
  i.context && /* @__PURE__ */ e.jsxs("span", { children: [
141
141
  " [",
@@ -187,7 +187,7 @@ function Be(s, t, l, n, u) {
187
187
  }
188
188
  ];
189
189
  }
190
- function Fe({ files: s, loading: t, type: l, onFilenameClick: n, onDownload: u, onDelete: i }) {
190
+ function Fe({ files: t, loading: s, type: l, onFilenameClick: n, onDownload: u, onDelete: i }) {
191
191
  const { t: m } = V();
192
192
  return /* @__PURE__ */ e.jsx(
193
193
  ee,
@@ -195,13 +195,13 @@ function Fe({ files: s, loading: t, type: l, onFilenameClick: n, onDownload: u,
195
195
  columnDefs: Be(l, n, u, i, m),
196
196
  uniqueItemKey: (A) => A.key,
197
197
  paginationSettings: je,
198
- items: s,
199
- isLoading: t
198
+ items: t,
199
+ isLoading: s
200
200
  }
201
201
  );
202
202
  }
203
- function K(s, t, l) {
204
- const n = X(() => q(t, l, s), [t, l, s]), [u, i] = B(!1), [m, A] = B([]);
203
+ function K(t, s, l) {
204
+ const n = X(() => q(s, l, t), [s, l, t]), [u, i] = B(!1), [m, A] = B([]);
205
205
  U(() => {
206
206
  const { promise: d, cancel: x } = _(n.fetchFiles());
207
207
  return d.then((o) => {
@@ -250,32 +250,32 @@ const H = {
250
250
  documents: H,
251
251
  images: H
252
252
  });
253
- function Ce({ asset: s, assetGroup: t, children: l }) {
254
- const n = K("documents", s, t), u = K("images", s, t);
253
+ function Ce({ asset: t, assetGroup: s, children: l }) {
254
+ const n = K("documents", t, s), u = K("images", t, s);
255
255
  return /* @__PURE__ */ e.jsx(O.Provider, { value: { documents: n, images: u }, children: l });
256
256
  }
257
- function ve(s) {
258
- const { documents: t, images: l } = ne(O);
259
- return s === "documents" ? t : l;
257
+ function ve(t) {
258
+ const { documents: s, images: l } = ne(O);
259
+ return t === "documents" ? s : l;
260
260
  }
261
- function we(s, t) {
261
+ function we(t, s) {
262
262
  const l = M().map(({ categoryName: n }) => n);
263
- return t && l.includes(t) ? s.filter((n) => n.category === t) : s.filter(
263
+ return s && l.includes(s) ? t.filter((n) => n.category === s) : t.filter(
264
264
  (n) => !n.category || !l.includes(n.category)
265
265
  );
266
266
  }
267
- function E({ type: s, category: t }) {
268
- const { loading: l, files: n, uploadFile: u, deleteFile: i, fetchFile: m } = ve(s), A = X(() => we(n, t), [n, t]), [g, f] = B(!1), [h, d] = B(!1), [x, o] = B(0), { t: F } = V(), I = oe();
267
+ function E({ type: t, category: s }) {
268
+ const { loading: l, files: n, uploadFile: u, deleteFile: i, fetchFile: m } = ve(t), A = X(() => we(n, s), [n, s]), [g, f] = B(!1), [h, d] = B(!1), [x, o] = B(0), { t: F } = V(), I = oe();
269
269
  async function v(j) {
270
270
  const C = await m(j);
271
271
  G.saveAs(new Blob([C]), j.filename);
272
272
  }
273
273
  function y(j) {
274
- s === "images" ? (o(A.indexOf(j)), d(!0)) : v(j);
274
+ t === "images" ? (o(A.indexOf(j)), d(!0)) : v(j);
275
275
  }
276
276
  async function b(j) {
277
277
  try {
278
- await u(j, t);
278
+ await u(j, s);
279
279
  } catch (C) {
280
280
  console.error(C), J(/* @__PURE__ */ e.jsx(p, { i18nKey: "files.error.unknown", children: "Operation failed" }));
281
281
  }
@@ -294,7 +294,7 @@ function E({ type: s, category: t }) {
294
294
  {
295
295
  files: A,
296
296
  loading: l,
297
- type: s,
297
+ type: t,
298
298
  onDownload: v,
299
299
  onFilenameClick: y,
300
300
  onDelete: w
@@ -302,10 +302,10 @@ function E({ type: s, category: t }) {
302
302
  ),
303
303
  /* @__PURE__ */ e.jsx($, { authorities: ["WRITE_ASSET_OR_ASSET_GROUP_FILE"], children: /* @__PURE__ */ e.jsxs(k, { onClick: () => f(!0), "data-testid": "add-file-button", children: [
304
304
  /* @__PURE__ */ e.jsx(W, { add: !0 }),
305
- s === "images" && /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.addImage", children: "Add image" }),
306
- s === "documents" && /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.addFile", children: "Add file" })
305
+ t === "images" && /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.addImage", children: "Add image" }),
306
+ t === "documents" && /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.addFile", children: "Add file" })
307
307
  ] }) }),
308
- g && /* @__PURE__ */ e.jsx(Ae, { fileType: s, onClose: () => f(!1), onUpload: b }),
308
+ g && /* @__PURE__ */ e.jsx(Ae, { fileType: t, onClose: () => f(!1), onUpload: b }),
309
309
  h && /* @__PURE__ */ e.jsx(
310
310
  he,
311
311
  {
@@ -324,27 +324,27 @@ function ye() {
324
324
  renderHeading: () => /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.tabs.documents", children: "Documents" }),
325
325
  renderBody: () => /* @__PURE__ */ e.jsx(E, { type: "documents" })
326
326
  },
327
- ...M().filter(({ type: s }) => s === "documents").map(({ categoryName: s, locizeKey: t, locizeDefaultValue: l }) => ({
328
- path: s,
329
- renderHeading: () => /* @__PURE__ */ e.jsx(p, { i18nKey: t, children: l }),
330
- renderBody: () => /* @__PURE__ */ e.jsx(E, { type: "documents", category: s })
327
+ ...M().filter(({ type: t }) => t === "documents").map(({ categoryName: t, locizeKey: s, locizeDefaultValue: l }) => ({
328
+ path: t,
329
+ renderHeading: () => /* @__PURE__ */ e.jsx(p, { i18nKey: s, children: l }),
330
+ renderBody: () => /* @__PURE__ */ e.jsx(E, { type: "documents", category: t })
331
331
  })),
332
332
  {
333
333
  path: "images",
334
334
  renderHeading: () => /* @__PURE__ */ e.jsx(p, { i18nKey: "assets.detail.files.tabs.images", children: "Images" }),
335
335
  renderBody: () => /* @__PURE__ */ e.jsx(E, { type: "images" })
336
336
  },
337
- ...M().filter(({ type: s }) => s === "images").map(({ categoryName: s, locizeKey: t, locizeDefaultValue: l }) => ({
338
- path: s,
339
- renderHeading: () => /* @__PURE__ */ e.jsx(p, { i18nKey: t, children: l }),
340
- renderBody: () => /* @__PURE__ */ e.jsx(E, { type: "images", category: s })
337
+ ...M().filter(({ type: t }) => t === "images").map(({ categoryName: t, locizeKey: s, locizeDefaultValue: l }) => ({
338
+ path: t,
339
+ renderHeading: () => /* @__PURE__ */ e.jsx(p, { i18nKey: s, children: l }),
340
+ renderBody: () => /* @__PURE__ */ e.jsx(E, { type: "images", category: t })
341
341
  }))
342
342
  ];
343
343
  }
344
- function Le({ asset: s, assetGroup: t }) {
344
+ function Le({ asset: t, assetGroup: s }) {
345
345
  return /* @__PURE__ */ e.jsxs("div", { children: [
346
346
  /* @__PURE__ */ e.jsx(
347
- se,
347
+ te,
348
348
  {
349
349
  title: {
350
350
  id: "assets.detail.files.name",
@@ -352,7 +352,7 @@ function Le({ asset: s, assetGroup: t }) {
352
352
  }
353
353
  }
354
354
  ),
355
- /* @__PURE__ */ e.jsx(Ce, { asset: s, assetGroup: t, children: /* @__PURE__ */ e.jsx(te, { pages: ye() }) })
355
+ /* @__PURE__ */ e.jsx(Ce, { asset: t, assetGroup: s, children: /* @__PURE__ */ e.jsx(se, { pages: ye() }) })
356
356
  ] });
357
357
  }
358
358
  export {
@@ -1,4 +1,4 @@
1
- import { a5 as $t, af as Rr, ay as wt, ai as _e } from "./ContextBarContext-925a628f.js";
1
+ import { a5 as $t, af as Rr, az as wt, ai as _e } from "./ContextBarContext-ae056648.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, ay as mn } from "./ContextBarContext-925a628f.js";
1
+ import { a5 as so, a6 as ro, az as mn } from "./ContextBarContext-ae056648.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 { de as S, dl as j, ay as t, cA as y, ai as C } from "./ContextBarContext-925a628f.js";
2
- import { useState as d, useEffect as v, useCallback as g } from "react";
3
- import { C as V, j as b } from "./index-fb9aff4b.js";
1
+ import { df as S, dm as j, az as t, cB as C, ai as v } from "./ContextBarContext-ae056648.js";
2
+ import { useState as d, useEffect as y, useCallback as g } from "react";
3
+ import { C as V, j as b } from "./index-0784a499.js";
4
4
  import "react-router-dom";
5
5
  import "@deviceinsight/ng-ui-basic-components";
6
6
  import "@deviceinsight/ng-ui-components";
@@ -12,7 +12,7 @@ function w({ setting: e, ...c }) {
12
12
  field: r,
13
13
  fieldState: { error: s }
14
14
  } = j({ name: e.name, control: p }), [f, l] = d(""), [m, h] = d(!1);
15
- v(() => {
15
+ y(() => {
16
16
  if (!m && r.value) {
17
17
  const a = JSON.stringify(r.value, null, 2);
18
18
  l(a), h(!0);
@@ -31,9 +31,9 @@ function w({ setting: e, ...c }) {
31
31
  [i, o, n, e.name]
32
32
  );
33
33
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
34
- y,
34
+ C,
35
35
  {
36
- label: /* @__PURE__ */ t.jsx(C, { i18nKey: `appSettings.property.${e.name}`, children: e.name }),
36
+ label: /* @__PURE__ */ t.jsx(v, { i18nKey: `appSettings.property.${e.name}`, children: e.name }),
37
37
  error: (s == null ? void 0 : s.message) ?? "",
38
38
  size: "full-width",
39
39
  children: /* @__PURE__ */ t.jsx(
@@ -1,9 +1,9 @@
1
- import { aj as w, bh as C, ay as e, ai as n, bn as y, b9 as b, bS as V } from "./ContextBarContext-925a628f.js";
1
+ import { aj as w, bi as C, az as e, ai as n, bo as y, ba as b, bT as V } from "./ContextBarContext-ae056648.js";
2
2
  import { useState as d, useEffect as v } from "react";
3
- import { Prompt as q, useHistory as B, useLocation as H, useParams as T } from "react-router-dom";
3
+ import { Prompt as q, useHistory as T, useLocation as B, useParams as H } from "react-router-dom";
4
4
  import { fetchLicenses as D, fetchLicenseByName as I, updateLicense as R, createLicense as k } from "@deviceinsight/ng-ui-api-client";
5
- import { SpinnerContainer as U, ButtonRow as A, Button as N, Spinner as O } from "@deviceinsight/ng-ui-basic-components";
6
- import { messageBoxError as P, ContentHeader as z, messageBoxSuccess as F } from "@deviceinsight/ng-ui-components";
5
+ import { SpinnerContainer as U, ButtonRow as z, Button as N, Spinner as A } from "@deviceinsight/ng-ui-basic-components";
6
+ import { messageBoxError as P, ContentHeader as O, messageBoxSuccess as F } from "@deviceinsight/ng-ui-components";
7
7
  import "react-dom";
8
8
  function G({ editedLicense: c, onSubmit: u, onCancel: r }) {
9
9
  const { t: a } = w(), {
@@ -99,7 +99,7 @@ function G({ editedLicense: c, onSubmit: u, onCancel: r }) {
99
99
  )
100
100
  }
101
101
  ),
102
- /* @__PURE__ */ e.jsxs(A, { dividing: !0, children: [
102
+ /* @__PURE__ */ e.jsxs(z, { dividing: !0, children: [
103
103
  /* @__PURE__ */ e.jsx(N, { primary: !0, onClick: K, disabled: t, children: /* @__PURE__ */ e.jsx(n, { i18nKey: "general.actions.save", children: "Save" }) }),
104
104
  /* @__PURE__ */ e.jsx(N, { disabled: t, onClick: r, children: /* @__PURE__ */ e.jsx(n, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
105
105
  ] }),
@@ -107,7 +107,7 @@ function G({ editedLicense: c, onSubmit: u, onCancel: r }) {
107
107
  ] });
108
108
  }
109
109
  function _() {
110
- const c = B(), { pathname: u } = H(), { licenseName: r } = T(), [a, p] = d(), [l, t] = d(!1), [x, g] = d(!1);
110
+ const c = T(), { pathname: u } = B(), { licenseName: r } = H(), [a, p] = d(), [l, t] = d(!1), [x, g] = d(!1);
111
111
  if (v(() => {
112
112
  r && (t(!0), I(r).then(p).catch(() => {
113
113
  P(/* @__PURE__ */ e.jsx(n, { i18nKey: "licenses.editPage.fetchingError", children: "Fetching license failed" })), g(!0);
@@ -115,7 +115,7 @@ function _() {
115
115
  }, [r]), x)
116
116
  return /* @__PURE__ */ e.jsx(V, {});
117
117
  if (l)
118
- return /* @__PURE__ */ e.jsx(O, { center: !0 });
118
+ return /* @__PURE__ */ e.jsx(A, { center: !0 });
119
119
  const j = async (f) => {
120
120
  r ? (await R(f), F(/* @__PURE__ */ e.jsx(n, { i18nKey: "licenses.updateSuccess", children: "License updated" }))) : (await k(f), F(/* @__PURE__ */ e.jsx(n, { i18nKey: "licenses.createSuccess", children: "License created" }))), m();
121
121
  }, m = () => {
@@ -123,7 +123,7 @@ function _() {
123
123
  };
124
124
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
125
125
  /* @__PURE__ */ e.jsx(
126
- z,
126
+ O,
127
127
  {
128
128
  title: a ? {
129
129
  id: "licenses.edit.title",
@@ -1,11 +1,11 @@
1
- import { ay as s, ai as a, aj as y, d9 as b, dd as g, aS as j } from "./ContextBarContext-925a628f.js";
1
+ import { az as s, ai as a, aj as y, da as b, de as g, aT as j } from "./ContextBarContext-ae056648.js";
2
2
  import { useState as c, useEffect as f } from "react";
3
3
  import { Link as u } from "react-router-dom";
4
- import { fetchRolesForLicense as C, fetchLicenses as N, deleteLicense as S } from "@deviceinsight/ng-ui-api-client";
5
- import { messageBoxError as h, ContentHeader as E } from "@deviceinsight/ng-ui-components";
6
- import { useConfirm as w, Button as D, Icon as I } from "@deviceinsight/ng-ui-basic-components";
4
+ import { fetchRolesForLicense as C, fetchLicenses as N, deleteLicense as E } from "@deviceinsight/ng-ui-api-client";
5
+ import { messageBoxError as h, ContentHeader as S } from "@deviceinsight/ng-ui-components";
6
+ import { useConfirm as T, Button as w, Icon as D } from "@deviceinsight/ng-ui-basic-components";
7
7
  import "react-dom";
8
- function T({ license: t }) {
8
+ function I({ license: t }) {
9
9
  const [e, n] = c([]), [r, o] = c(!1);
10
10
  return f(() => {
11
11
  o(!0), C(t).then(n).catch(() => {
@@ -56,7 +56,7 @@ function K(t) {
56
56
  {
57
57
  name: "roles",
58
58
  label: /* @__PURE__ */ s.jsx(a, { i18nKey: "licenses.tableHeaders.roles", children: "Roles" }),
59
- render: (e) => /* @__PURE__ */ s.jsx(T, { license: e.name })
59
+ render: (e) => /* @__PURE__ */ s.jsx(I, { license: e.name })
60
60
  },
61
61
  {
62
62
  name: "actions",
@@ -64,7 +64,7 @@ function K(t) {
64
64
  width: "10%",
65
65
  align: "right",
66
66
  render: (e) => /* @__PURE__ */ s.jsx(j, { authorities: ["MANAGE_LICENSES"], children: /* @__PURE__ */ s.jsx(
67
- D,
67
+ w,
68
68
  {
69
69
  naked: !0,
70
70
  title: {
@@ -72,14 +72,14 @@ function K(t) {
72
72
  defaultValue: "Delete this License"
73
73
  },
74
74
  onClick: () => t(e),
75
- children: /* @__PURE__ */ s.jsx(I, { del: !0 })
75
+ children: /* @__PURE__ */ s.jsx(D, { del: !0 })
76
76
  }
77
77
  ) })
78
78
  }
79
79
  ];
80
80
  }
81
- function B() {
82
- const [t, e] = c(!1), [n, r] = c([]), o = w(), { t: i } = y(), p = /* @__PURE__ */ s.jsx(a, { i18nKey: "portalAdmin.sidebarElements.licenses.create", children: "Create new license" });
81
+ function z() {
82
+ const [t, e] = c(!1), [n, r] = c([]), o = T(), { t: i } = y(), p = /* @__PURE__ */ s.jsx(a, { i18nKey: "portalAdmin.sidebarElements.licenses.create", children: "Create new license" });
83
83
  f(() => {
84
84
  (async () => {
85
85
  try {
@@ -100,7 +100,7 @@ function B() {
100
100
  })) {
101
101
  e(!0);
102
102
  try {
103
- await S(l.name), r((d) => d.filter((x) => x.name !== l.name));
103
+ await E(l.name), r((d) => d.filter((x) => x.name !== l.name));
104
104
  } catch (d) {
105
105
  console.error("Delete license error", d), h(
106
106
  i("licenses.deleteFailure", { defaultValue: "Can't delete license because it is in use" })
@@ -111,7 +111,7 @@ function B() {
111
111
  }
112
112
  return /* @__PURE__ */ s.jsxs("div", { "data-testid": "licenses-list", children: [
113
113
  /* @__PURE__ */ s.jsx(
114
- E,
114
+ S,
115
115
  {
116
116
  title: {
117
117
  id: "route.label.licenses.name",
@@ -142,5 +142,5 @@ function B() {
142
142
  ] });
143
143
  }
144
144
  export {
145
- B as default
145
+ z as default
146
146
  };
@@ -1,10 +1,10 @@
1
- import { ay as e, cA as E, aP as V, dm as F, de as L, dl as B, ai as d, aj as G, bh as D, bk as U, bn as h, b9 as w, dn as R, dj as T, dp as A, ao as M, dq as H, dr as X, bS as _, aZ as Y, ds as Z } from "./ContextBarContext-925a628f.js";
2
- import { useState as P, useEffect as $ } from "react";
3
- import { useLocation as z, useHistory as J, useParams as Q } from "react-router-dom";
4
- import { getPropertyById as W, updateProperty as ee, createProperty as re } from "@deviceinsight/ng-ui-api-client";
5
- import { Button as v, Checkbox as k, Icon as O, ButtonRow as te, Spinner as se } from "@deviceinsight/ng-ui-basic-components";
1
+ import { az as e, cB as E, aQ as V, dn as F, df as L, dm as B, ai as d, aj as G, bi as D, bl as U, bo as h, ba as w, dp as R, dk as P, dq as k, ao as M, dr as H, ds as _, bT as X, a_ as z, dt as Q } from "./ContextBarContext-ae056648.js";
2
+ import { useState as S, useEffect as Y } from "react";
3
+ import { useLocation as $, useHistory as J, useParams as W } from "react-router-dom";
4
+ import { getPropertyById as Z, updateProperty as ee, createProperty as re } from "@deviceinsight/ng-ui-api-client";
5
+ import { Button as v, Checkbox as A, Icon as O, ButtonRow as te, Spinner as se } from "@deviceinsight/ng-ui-basic-components";
6
6
  import { messageBoxError as K, ContentHeader as ae } from "@deviceinsight/ng-ui-components";
7
- import { P as ne } from "./react-router-9e614587.js";
7
+ import { P as ne } from "./react-router-34a40365.js";
8
8
  import "react-dom";
9
9
  import "./extends-0a3e0827.js";
10
10
  function le(r) {
@@ -30,7 +30,7 @@ function ie() {
30
30
  getValues: r,
31
31
  formState: { errors: s },
32
32
  trigger: x
33
- } = L(), [c, i] = P(!!r("allowedValues")), {
33
+ } = L(), [c, i] = S(!!r("allowedValues")), {
34
34
  field: { value: t, onChange: a },
35
35
  fieldState: { invalid: u }
36
36
  } = B({
@@ -56,14 +56,14 @@ function ie() {
56
56
  E,
57
57
  {
58
58
  label: /* @__PURE__ */ e.jsxs("div", { className: "di allowed-values-header", children: [
59
- /* @__PURE__ */ e.jsx(k, { type: "toggle", value: c, toggleSmall: !0, onChange: y }),
59
+ /* @__PURE__ */ e.jsx(A, { type: "toggle", value: c, toggleSmall: !0, onChange: y }),
60
60
  " ",
61
61
  /* @__PURE__ */ e.jsx(d, { i18nKey: "properties.labels.allowedValues", children: "Allowed Values" })
62
62
  ] }),
63
63
  error: s.allowedValues ? "Required" : void 0,
64
64
  className: "di allowed-values-container",
65
65
  children: [
66
- /* @__PURE__ */ e.jsx(k, { value: c, onChange: y }),
66
+ /* @__PURE__ */ e.jsx(A, { value: c, onChange: y }),
67
67
  (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: [
68
68
  /* @__PURE__ */ e.jsx(E, { className: "value-container", children: /* @__PURE__ */ e.jsx(
69
69
  "input",
@@ -116,12 +116,12 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
116
116
  async function l(o) {
117
117
  try {
118
118
  await x(o);
119
- } catch (S) {
120
- if (M.isAxiosError(S)) {
121
- const { fieldName: N, message: C } = H(S, i);
119
+ } catch (T) {
120
+ if (M.isAxiosError(T)) {
121
+ const { fieldName: N, message: C } = H(T, i);
122
122
  N ? b(N, { message: C }) : K(C);
123
123
  } else
124
- K(X(i));
124
+ K(_(i));
125
125
  }
126
126
  }
127
127
  return u(l, (o) => {
@@ -175,14 +175,14 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
175
175
  name: "entityTargets",
176
176
  control: a,
177
177
  rules: { validate: (l) => l.length === 0 ? "Required" : void 0 },
178
- render: ({ field: { value: l, onChange: o }, fieldState: { error: S } }) => /* @__PURE__ */ e.jsx(
178
+ render: ({ field: { value: l, onChange: o }, fieldState: { error: T } }) => /* @__PURE__ */ e.jsx(
179
179
  le,
180
180
  {
181
181
  label: /* @__PURE__ */ e.jsx(d, { i18nKey: "properties.labels.entityTargets", children: "Entity targets" }),
182
182
  values: l,
183
183
  onChange: o,
184
184
  options: de,
185
- error: S ? i("properties.form.validation.entityTargets.required", {
185
+ error: T ? i("properties.form.validation.entityTargets.required", {
186
186
  defaultValue: "Please select a at least one entity target"
187
187
  }) : void 0,
188
188
  required: !0,
@@ -197,7 +197,7 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
197
197
  name: "addToAll",
198
198
  control: a,
199
199
  render: ({ field: l }) => /* @__PURE__ */ e.jsx(
200
- T,
200
+ P,
201
201
  {
202
202
  ...l,
203
203
  label: /* @__PURE__ */ e.jsx(d, { i18nKey: "properties.labels.addToSearch", children: "Add to Search" }),
@@ -212,7 +212,7 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
212
212
  name: "unique",
213
213
  control: a,
214
214
  render: ({ field: { value: l, onChange: o } }) => /* @__PURE__ */ e.jsx(
215
- T,
215
+ P,
216
216
  {
217
217
  value: !!l,
218
218
  onChange: o,
@@ -228,7 +228,7 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
228
228
  name: "final",
229
229
  control: a,
230
230
  render: ({ field: { value: l, onChange: o } }) => /* @__PURE__ */ e.jsx(
231
- T,
231
+ P,
232
232
  {
233
233
  value: !!l,
234
234
  onChange: o,
@@ -245,7 +245,7 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
245
245
  name: "minLength",
246
246
  control: a,
247
247
  render: ({ field: { value: l, ...o } }) => /* @__PURE__ */ e.jsx(
248
- A,
248
+ k,
249
249
  {
250
250
  ...o,
251
251
  value: l ?? void 0,
@@ -262,7 +262,7 @@ function ue({ editedProperty: r, isReadonly: s, onSubmit: x, onCancel: c }) {
262
262
  name: "maxLength",
263
263
  control: a,
264
264
  render: ({ field: { value: l, ...o } }) => /* @__PURE__ */ e.jsx(
265
- A,
265
+ k,
266
266
  {
267
267
  ...o,
268
268
  value: l ?? void 0,
@@ -325,11 +325,11 @@ function q(r) {
325
325
  }
326
326
  return r;
327
327
  }
328
- function Pe() {
329
- const { pathname: r } = z(), s = J(), { propertyKey: x } = Q(), [c, i] = P(void 0), [t, a] = P(!0), [u, f] = P(!1);
328
+ function Se() {
329
+ const { pathname: r } = $(), s = J(), { propertyKey: x } = W(), [c, i] = S(void 0), [t, a] = S(!0), [u, f] = S(!1);
330
330
  async function b(m) {
331
331
  try {
332
- const j = await W(m);
332
+ const j = await Z(m);
333
333
  i(j);
334
334
  } catch (j) {
335
335
  console.error(j), f(!0);
@@ -337,20 +337,20 @@ function Pe() {
337
337
  a(!1);
338
338
  }
339
339
  }
340
- $(() => {
340
+ Y(() => {
341
341
  x && x !== "create" ? b(x) : a(!1);
342
342
  }, [x]);
343
343
  function g() {
344
344
  s.push(r.substring(0, r.lastIndexOf("/")));
345
345
  }
346
346
  async function y(m) {
347
- c ? await ee(q(m)) : await re(q(m)), Z(me), g();
347
+ c ? await ee(q(m)) : await re(q(m)), Q(me), g();
348
348
  }
349
349
  function n() {
350
350
  g();
351
351
  }
352
352
  if (u)
353
- return /* @__PURE__ */ e.jsx(_, {});
353
+ return /* @__PURE__ */ e.jsx(X, {});
354
354
  const p = pe(!c);
355
355
  return t ? /* @__PURE__ */ e.jsx(se, { center: !0 }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
356
356
  /* @__PURE__ */ e.jsx(ae, { title: p, parentPageLink: !0 }),
@@ -358,7 +358,7 @@ function Pe() {
358
358
  ue,
359
359
  {
360
360
  editedProperty: c,
361
- isReadonly: !!c && !Y(["UPDATE_PROPERTY"]),
361
+ isReadonly: !!c && !z(["UPDATE_PROPERTY"]),
362
362
  onSubmit: y,
363
363
  onCancel: n
364
364
  }
@@ -366,5 +366,5 @@ function Pe() {
366
366
  ] });
367
367
  }
368
368
  export {
369
- Pe as default
369
+ Se as default
370
370
  };
@@ -1,4 +1,4 @@
1
- import { aZ as f, ay as t, ai as a, be as c, aj as y, d9 as b, dd as T } from "./ContextBarContext-925a628f.js";
1
+ import { a_ as f, az as t, ai as a, bf as c, aj as y, da as b, de as T } from "./ContextBarContext-ae056648.js";
2
2
  import { useContext as m, useState as P, useEffect as h } from "react";
3
3
  import { deleteProperty as A } from "@deviceinsight/ng-ui-api-client";
4
4
  import { Bubble as x, Button as I, Icon as g, withConfirm as O } from "@deviceinsight/ng-ui-basic-components";