@deviceinsight/ng-ui-scale-lib 9.17.1 → 9.18.1

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 (27) hide show
  1. package/dist/{AccessEditModal-ee535c11.js → AccessEditModal-7f7dd35b.js} +17 -17
  2. package/dist/{BundleManagementContainer-e5ea2b74.js → BundleManagementContainer-14ea6dd5.js} +4 -4
  3. package/dist/{BundlesContainer-7fe07aed.js → BundlesContainer-bf7f72ee.js} +18 -18
  4. package/dist/{ContextBarContext-34f0c277.js → ContextBarContext-0ec93c75.js} +11328 -11295
  5. package/dist/{DatapointImport-c3c6b89e.js → DatapointImport-991e2cb4.js} +60 -60
  6. package/dist/{FileUploadInput-46834ef2.js → FileUploadInput-83a88c0d.js} +1 -1
  7. package/dist/{Files-440bbbdb.js → Files-266fbcde.js} +55 -55
  8. package/dist/{GlobalPowerBiReports-d1fd590c.js → GlobalPowerBiReports-b8af443b.js} +1 -1
  9. package/dist/{Graph-df3d0ec9.js → Graph-499b8c29.js} +1 -1
  10. package/dist/{JsonSettingWidget-a8c97ec8.js → JsonSettingWidget-8a23e9a8.js} +11 -11
  11. package/dist/{LicensesEditPage-bf9b5e79.js → LicensesEditPage-9c298d77.js} +19 -19
  12. package/dist/{LicensesList-360b4311.js → LicensesList-ad375f43.js} +7 -7
  13. package/dist/{PropertiesEditPage-a23aa6bd.js → PropertiesEditPage-d6bf8e29.js} +27 -27
  14. package/dist/{PropertiesList-938962b5.js → PropertiesList-cb6ce316.js} +9 -9
  15. package/dist/{TemplateEditPage-2dd1a145.js → TemplateEditPage-584631b9.js} +15 -15
  16. package/dist/{TemplateTextInput-0168206f.js → TemplateTextInput-ba99d8e8.js} +2 -2
  17. package/dist/{TemplatesListPage-81dc71f1.js → TemplatesListPage-9e43955b.js} +26 -26
  18. package/dist/{UserGroupAssignments-2eb66e37.js → UserGroupAssignments-05e6aa96.js} +8 -8
  19. package/dist/{UserGroupTheme-19443576.js → UserGroupTheme-b6fd6fe0.js} +2 -2
  20. package/dist/api.js +21 -21
  21. package/dist/{index-0b2e7cb2.js → index-d8fd8057.js} +28 -28
  22. package/dist/index.js +2049 -2000
  23. package/dist/{react-router-f35246d1.js → react-router-995966c8.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/package.json +1 -1
  26. package/dist/api.d.ts +0 -1173
  27. package/dist/index.d.ts +0 -5
@@ -1,10 +1,10 @@
1
- import { at as e, ag as s, aU as y, db as B, a_ as P, ah as F, bL as V, bs as z, aj as N, d8 as W, dc as $ } from "./ContextBarContext-34f0c277.js";
1
+ import { ay as e, ai as s, aZ as y, dc as B, b3 as P, aj as F, bQ as V, bx as z, am as N, d9 as W, dd as $ } from "./ContextBarContext-0ec93c75.js";
2
2
  import { useContext as H, useState as T, useCallback as q, useEffect as Y } from "react";
3
- import { Link as J, useLocation as Q } from "react-router-dom";
4
- import { fetchUserGroupById as O, fetchEmailTemplates as _, fetchEmailTemplateAccessById as X, updateEmailTemplate as Z, deleteEmailTemplate as ee } from "@deviceinsight/ng-ui-api-client";
5
- import { Label as G, Button as C, Icon as te, Modal as ae, withConfirm as ne } from "@deviceinsight/ng-ui-basic-components";
3
+ import { Link as Q, useLocation as Z } from "react-router-dom";
4
+ import { fetchUserGroupById as O, fetchEmailTemplates as _, fetchEmailTemplateAccessById as J, updateEmailTemplate as X, deleteEmailTemplate as ee } from "@deviceinsight/ng-ui-api-client";
5
+ import { Label as G, Button as g, Icon as te, Modal as ae, withConfirm as ne } from "@deviceinsight/ng-ui-basic-components";
6
6
  import { MultiMenu as oe, MultiMenuItem as se, InfoBox as ie, messageBoxError as S, ContentHeader as le } from "@deviceinsight/ng-ui-components";
7
- import { A as re } from "./AccessEditModal-ee535c11.js";
7
+ import { A as re } from "./AccessEditModal-7f7dd35b.js";
8
8
  import "react-dom";
9
9
  function ce(r, l, c, h, u) {
10
10
  return [
@@ -17,7 +17,7 @@ function ce(r, l, c, h, u) {
17
17
  filterType: "text",
18
18
  filterFn: (t, n) => (t.displayName || t.name).toLowerCase().indexOf(n.toLowerCase()) >= 0
19
19
  },
20
- render: (t) => t.id ? /* @__PURE__ */ e.jsx(J, { to: `./${t.id}`, children: t.displayName || t.name }) : "-"
20
+ render: (t) => t.id ? /* @__PURE__ */ e.jsx(Q, { to: `./${t.id}`, children: t.displayName || t.name }) : "-"
21
21
  },
22
22
  {
23
23
  name: "message",
@@ -48,7 +48,7 @@ function ce(r, l, c, h, u) {
48
48
  const { accountGroupsWithAccess: n } = t;
49
49
  if (!n || !n.length)
50
50
  return null;
51
- function g(i) {
51
+ function j(i) {
52
52
  return u.find((d) => d.id === i) || {
53
53
  displayName: "-",
54
54
  id: i
@@ -60,7 +60,7 @@ function ce(r, l, c, h, u) {
60
60
  {
61
61
  menuButton: /* @__PURE__ */ e.jsx(G, { text: `${n.length} User Groups` }),
62
62
  children: n.map((i) => {
63
- const d = g(i), x = n.filter(
63
+ const d = j(i), x = n.filter(
64
64
  (A) => A !== d.id
65
65
  );
66
66
  return /* @__PURE__ */ e.jsx(se, { children: /* @__PURE__ */ e.jsx(
@@ -74,7 +74,7 @@ function ce(r, l, c, h, u) {
74
74
  }
75
75
  );
76
76
  {
77
- const i = g(n[0]);
77
+ const i = j(n[0]);
78
78
  return /* @__PURE__ */ e.jsx(
79
79
  G,
80
80
  {
@@ -92,7 +92,7 @@ function ce(r, l, c, h, u) {
92
92
  align: "right",
93
93
  render: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
94
94
  y([["READ_ACCOUNT_GROUP"]]) && /* @__PURE__ */ e.jsx(
95
- C,
95
+ g,
96
96
  {
97
97
  naked: !0,
98
98
  onClick: () => c(t),
@@ -101,7 +101,7 @@ function ce(r, l, c, h, u) {
101
101
  }
102
102
  ),
103
103
  y(["DELETE_NOTIFICATION_TEMPLATE"]) && /* @__PURE__ */ e.jsx(
104
- C,
104
+ g,
105
105
  {
106
106
  naked: !0,
107
107
  onClick: () => r(t),
@@ -126,8 +126,8 @@ function ue({ onCancel: r, onSave: l, template: c }) {
126
126
  header: /* @__PURE__ */ e.jsx(s, { i18nKey: "notificationTemplate.access.delete.modal.title", children: "Remove all authorised User Groups from this Template" }),
127
127
  content: /* @__PURE__ */ e.jsx(ie, { type: u ? "warning" : "error", icon: V, message: t }),
128
128
  footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
129
- u && /* @__PURE__ */ e.jsx(C, { onClick: () => l([], c), children: /* @__PURE__ */ e.jsx(s, { i18nKey: "general.actions.save", children: "Save" }) }),
130
- /* @__PURE__ */ e.jsx(C, { onClick: () => r(), children: /* @__PURE__ */ e.jsx(s, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
129
+ u && /* @__PURE__ */ e.jsx(g, { onClick: () => l([], c), children: /* @__PURE__ */ e.jsx(s, { i18nKey: "general.actions.save", children: "Save" }) }),
130
+ /* @__PURE__ */ e.jsx(g, { onClick: () => r(), children: /* @__PURE__ */ e.jsx(s, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
131
131
  ] })
132
132
  }
133
133
  );
@@ -148,7 +148,7 @@ async function pe() {
148
148
  const r = await _(me);
149
149
  return await Promise.all(
150
150
  r.map(async (l) => {
151
- const { accountGroupIds: c } = await X(l.id);
151
+ const { accountGroupIds: c } = await J(l.id);
152
152
  return Promise.resolve({
153
153
  ...l,
154
154
  accountGroupsWithAccess: c,
@@ -158,7 +158,7 @@ async function pe() {
158
158
  );
159
159
  }
160
160
  function fe({ confirm: r }) {
161
- const { setContextInfo: l } = H(z), { pathname: c } = Q(), [h, u] = T([]), [t, n] = T(!0), [g, i] = T(!1), [d, x] = T(!1), [A, I] = T([]), [j, L] = T(), M = /* @__PURE__ */ e.jsx(s, { i18nKey: "portalAdmin.sidebarElements.templates.create", children: "Create new notification template" }), w = q(
161
+ const { setContextInfo: l } = H(z), { pathname: c } = Z(), [h, u] = T([]), [t, n] = T(!0), [j, i] = T(!1), [d, x] = T(!1), [A, I] = T([]), [C, L] = T(), M = /* @__PURE__ */ e.jsx(s, { i18nKey: "portalAdmin.sidebarElements.templates.create", children: "Create new notification template" }), w = q(
162
162
  (a) => {
163
163
  l({
164
164
  type: "search",
@@ -190,7 +190,7 @@ function fe({ confirm: r }) {
190
190
  n(!1);
191
191
  }
192
192
  }
193
- function U(a) {
193
+ function v(a) {
194
194
  r(
195
195
  {
196
196
  id: "notificationTemplate.list.confirmDeleteTitle",
@@ -213,7 +213,7 @@ function fe({ confirm: r }) {
213
213
  }), p = { ...o, accountGroupsWithAccess: a }, f = N.unionBy([p], A, "id");
214
214
  await Promise.all(
215
215
  m.map(
216
- (E) => Z({
216
+ (E) => X({
217
217
  ...E,
218
218
  accountGroupsWithAccess: a
219
219
  })
@@ -236,7 +236,7 @@ function fe({ confirm: r }) {
236
236
  }
237
237
  }
238
238
  }
239
- function v(a) {
239
+ function U(a) {
240
240
  L(a), i(!0);
241
241
  }
242
242
  function K(a) {
@@ -288,9 +288,9 @@ function fe({ confirm: r }) {
288
288
  $,
289
289
  {
290
290
  columnDefs: ce(
291
- U,
292
- b,
293
291
  v,
292
+ b,
293
+ U,
294
294
  K,
295
295
  h
296
296
  ),
@@ -301,26 +301,26 @@ function fe({ confirm: r }) {
301
301
  "data-testid": "notification-templates-table"
302
302
  }
303
303
  ),
304
- g && j && /* @__PURE__ */ e.jsx(
304
+ j && C && /* @__PURE__ */ e.jsx(
305
305
  re,
306
306
  {
307
307
  onCancel: () => i(!1),
308
308
  onSave: b,
309
309
  loading: t,
310
- template: j
310
+ template: C
311
311
  }
312
312
  ),
313
- d && j && /* @__PURE__ */ e.jsx(
313
+ d && C && /* @__PURE__ */ e.jsx(
314
314
  ue,
315
315
  {
316
316
  onCancel: () => x(!1),
317
317
  onSave: b,
318
- template: j
318
+ template: C
319
319
  }
320
320
  )
321
321
  ] });
322
322
  }
323
- const Ce = ne(fe);
323
+ const ge = ne(fe);
324
324
  export {
325
- Ce as default
325
+ ge as default
326
326
  };
@@ -1,8 +1,8 @@
1
- import { at as e, d9 as S, aN as E, bc as _, ah as N, aq as R, ag as o, bi as j, b4 as y, da as M } from "./ContextBarContext-34f0c277.js";
1
+ import { ay as e, da as T, aS as E, bh as _, aj as N, ao as R, ai as o, bn as j, b9 as y, db as M } from "./ContextBarContext-0ec93c75.js";
2
2
  import { useState as A, useEffect as C } from "react";
3
- import { ReactableWithClientSidePagination as U, messageBoxError as T, ContentHeader as w } from "@deviceinsight/ng-ui-components";
3
+ import { ReactableWithClientSidePagination as U, messageBoxError as S, 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
- import { getInitialAccountGroupAssignmentRules as v, createInitialAccountGroupAssignmentRule as k, updateInitialAccountGroupAssignmentRule as q, deleteInitialAccountGroupAssignmentRule as H } from "@deviceinsight/ng-ui-api-client";
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
7
  import "react-dom";
8
8
  function D() {
@@ -30,7 +30,7 @@ function D() {
30
30
  async function c(r, l) {
31
31
  try {
32
32
  i(!0);
33
- const u = await q(r, l);
33
+ const u = await H(r, l);
34
34
  a(n.map((t) => t.name === r ? u : t));
35
35
  } finally {
36
36
  i(!1);
@@ -38,7 +38,7 @@ function D() {
38
38
  }
39
39
  async function d(r) {
40
40
  try {
41
- i(!0), await H(r), a(n.filter((l) => l.name !== r));
41
+ i(!0), await q(r), a(n.filter((l) => l.name !== r));
42
42
  } finally {
43
43
  i(!1);
44
44
  }
@@ -72,7 +72,7 @@ const O = {
72
72
  name: "accountGroup",
73
73
  sortable: !1,
74
74
  label: { id: "userGroupAssignments.col.accountGroup", defaultValue: "Account Group" },
75
- render: ({ accountGroupId: s }) => /* @__PURE__ */ e.jsx(S, { id: s })
75
+ render: ({ accountGroupId: s }) => /* @__PURE__ */ e.jsx(T, { id: s })
76
76
  },
77
77
  {
78
78
  name: "actions",
@@ -130,7 +130,7 @@ function I({ onSubmit: n, onClose: a, value: s }) {
130
130
  message: c("userGroupAssignments.ruleModal.validation.invalid", { defaultValue: "Invalid value" })
131
131
  });
132
132
  else
133
- R.isAxiosError(h) && T(
133
+ R.isAxiosError(h) && S(
134
134
  ((t = (u = h.response) == null ? void 0 : u.data) == null ? void 0 : t.message) ?? c("userGroupAssignments.ruleModal.validation.unknownError", { defaultValue: "An error occurred" })
135
135
  );
136
136
  }
@@ -230,7 +230,7 @@ function I({ onSubmit: n, onClose: a, value: s }) {
230
230
  function Z() {
231
231
  const { isLoading: n, rules: a, error: s, createRule: i, editRule: f, deleteRule: m } = D(), [g, c] = A(!1), [d, r] = A(null), l = V(), { t: u } = N();
232
232
  C(() => {
233
- s && R.isAxiosError(s) && (T(
233
+ s && R.isAxiosError(s) && (S(
234
234
  /* @__PURE__ */ e.jsx(o, { i18nKey: "userGroupAssignments.fetchError", children: "An error occurred while loading the initial user group assignment rules" })
235
235
  ), console.error("Error loading initial user group assignment rules", s));
236
236
  }, [s]);
@@ -1,7 +1,7 @@
1
- import { at as s, d0 as f, d1 as v, ag as c, d2 as g, aj as C, au as x, d3 as l, ae as r, d4 as w, d5 as P } from "./ContextBarContext-34f0c277.js";
1
+ import { ay as s, d1 as f, d2 as v, ai as c, d3 as g, am as C, az as x, d4 as l, ag as r, d5 as w, d6 as P } from "./ContextBarContext-0ec93c75.js";
2
2
  import * as d from "react";
3
3
  import { useContext as S } from "react";
4
- import { P as T } from "./react-router-f35246d1.js";
4
+ import { P as T } from "./react-router-995966c8.js";
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-router-dom";
package/dist/api.js CHANGED
@@ -1,5 +1,5 @@
1
- import { ai as a, au as n, at as i, aK as r, bB as c, cC as u, cD as m, cl as f, co as C, bm as d, cE as l } from "./ContextBarContext-34f0c277.js";
2
- import { aN as F, br as G, af as L, ae as O, ag as V, cG as H, ad as K, cH as M, cF as Z, cU as $, aG as j, aU as k, cK as w, cL as J, cR as W, cS as X, cP as q, cW as Q, cO as Y, cQ as z, cJ as ee, cM as se, cN as te, cI as oe, cT as ae, cx as ne, cV as ie, cX as re, ac as ce, b$ as ue, ah as me, bV as fe } from "./ContextBarContext-34f0c277.js";
1
+ import { al as a, az as n, ay as i, aP as r, bG as c, cD as u, cE as m, ap as f, cq as C, br as d, cF as l } from "./ContextBarContext-0ec93c75.js";
2
+ import { aS as L, bw as F, ah as G, ag as O, ai as H, cH as V, af as Z, cI as j, cG as w, cV as K, aL as M, aZ as k, cL as q, cM as J, cS as W, cT as X, cQ as Y, cX as $, cP as z, cR as Q, cK as ee, cN as se, cO as te, cJ as oe, cU as ae, av as ne, cW as ie, cY as re, ae as ce, c4 as ue, aj as me, b_ as fe } from "./ContextBarContext-0ec93c75.js";
3
3
  import { m as de, a as le } from "./useCanDeleteBundleVersion-64f35949.js";
4
4
  import { getAxios as p } from "@deviceinsight/ng-ui-api-client";
5
5
  import { s as Ae } from "./customFileCategories-1b64ed45.js";
@@ -27,10 +27,10 @@ function R({ children: e }) {
27
27
  function b(e) {
28
28
  return console.warn("Don't use setFavicon. This function is deprecated"), u(e, !0);
29
29
  }
30
- function U(e) {
30
+ function v(e) {
31
31
  return console.warn("Don't use setPrimaryColor. This function is deprecated"), m(e, !0);
32
32
  }
33
- const v = {
33
+ const S = {
34
34
  onSignin: f,
35
35
  onSignout: C,
36
36
  onThemeChange: d,
@@ -39,30 +39,30 @@ const v = {
39
39
  export {
40
40
  N as ContextBarAction,
41
41
  R as ContextBarActionContainer,
42
- F as HasAuthorities,
43
- G as RouteApi,
44
- L as StyleApi,
42
+ L as HasAuthorities,
43
+ F as RouteApi,
44
+ G as StyleApi,
45
45
  O as ThemeApi,
46
- V as Trans,
47
- H as TranslationApi,
48
- K as UiConfigurationApi,
49
- M as addCustomHeaderElement,
50
- Z as addI18nextXHRBackend,
51
- v as eventBus,
52
- $ as generateAssetUrn,
46
+ H as Trans,
47
+ V as TranslationApi,
48
+ Z as UiConfigurationApi,
49
+ j as addCustomHeaderElement,
50
+ w as addI18nextXHRBackend,
51
+ S as eventBus,
52
+ K as generateAssetUrn,
53
53
  _ as getNguiAxios,
54
- j as getStartPage,
54
+ M as getStartPage,
55
55
  k as hasAuthorities,
56
- w as modifyAssetColumnDefinitions,
56
+ q as modifyAssetColumnDefinitions,
57
57
  J as modifyAssetGroupColumnDefinitions,
58
58
  de as modifyCanDeleteBundle,
59
59
  le as modifyCanDeleteBundleVersion,
60
60
  W as modifyChildAssetGroupsInitialSort,
61
61
  X as modifyCustomSearchProperties,
62
- q as modifyDashboardWidgets,
63
- Q as modifyIsDashboardVisible,
64
- Y as modifyMapMarkerIcon,
65
- z as modifyPropertyVisibility,
62
+ Y as modifyDashboardWidgets,
63
+ $ as modifyIsDashboardVisible,
64
+ z as modifyMapMarkerIcon,
65
+ Q as modifyPropertyVisibility,
66
66
  ee as modifyRoutes,
67
67
  se as modifyUserColumnDefinitions,
68
68
  te as modifyUserGroupColumnDefinitions,
@@ -75,7 +75,7 @@ export {
75
75
  a as setEnvironment,
76
76
  b as setFavicon,
77
77
  h as setLocizeProject,
78
- U as setPrimaryColor,
78
+ v as setPrimaryColor,
79
79
  ce as setTitle,
80
80
  ue as useAssetTimezone,
81
81
  me as useTranslation,