@deviceinsight/ng-ui-scale-lib 9.18.8 → 9.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/{AccessEditModal-a02b50a1.js → AccessEditModal-ee0139fb.js} +24 -23
  2. package/dist/BundleManagementContainer-093786e5.js +20 -0
  3. package/dist/{BundlesContainer-498d7121.js → BundlesContainer-54c9cc3a.js} +114 -110
  4. package/dist/{ContextBarContext-f2968fee.js → ContextBarContext-0c28ce9d.js} +38292 -46174
  5. package/dist/{DatapointImport-0610eed8.js → DatapointImport-6d394cb5.js} +126 -122
  6. package/dist/{FileUploadInput-aea4f866.js → FileUploadInput-a23ba785.js} +3 -3
  7. package/dist/{Files-25853de9.js → Files-4fc0415e.js} +23 -19
  8. package/dist/GlobalPowerBiReports-f9bf0765.js +11079 -0
  9. package/dist/{Graph-ad8ad6f9.js → Graph-2840eac2.js} +4 -1
  10. package/dist/JsonSettingWidget-8908d40b.js +57 -0
  11. package/dist/{LicensesEditPage-e6c71c43.js → LicensesEditPage-3332b87c.js} +33 -30
  12. package/dist/{LicensesList-d28c9799.js → LicensesList-6254cd37.js} +17 -13
  13. package/dist/{PropertiesEditPage-85bc5517.js → PropertiesEditPage-5b148652.js} +24 -21
  14. package/dist/{PropertiesList-fcf0d837.js → PropertiesList-06478803.js} +17 -13
  15. package/dist/{TemplateEditPage-a34efc41.js → TemplateEditPage-94088888.js} +28 -23
  16. package/dist/TemplateTextInput-e8861a0f.js +50 -0
  17. package/dist/{TemplatesListPage-ce7fea1d.js → TemplatesListPage-866246c6.js} +55 -51
  18. package/dist/{UserGroupAssignments-8fd3c47d.js → UserGroupAssignments-6feae326.js} +36 -32
  19. package/dist/{UserGroupTheme-0e8a16c4.js → UserGroupTheme-7ee8e92e.js} +14 -11
  20. package/dist/api.d.ts +3 -0
  21. package/dist/api.js +59 -56
  22. package/dist/{index-e2b27256.js → index-34a2015c.js} +7 -7
  23. package/dist/index.js +2761 -2765
  24. package/dist/objectWithoutPropertiesLoose-a4604547.js +26 -0
  25. package/dist/{react-router-7b367edf.js → react-router-d38ecdf4.js} +113 -108
  26. package/dist/style.css +1 -1
  27. package/package.json +4 -4
  28. package/dist/BundleManagementContainer-dbac0259.js +0 -17
  29. package/dist/GlobalPowerBiReports-06c92d0e.js +0 -11078
  30. package/dist/JsonSettingWidget-c471537a.js +0 -54
  31. package/dist/TemplateTextInput-fe5912e7.js +0 -47
  32. package/dist/extends-0a3e0827.js +0 -13
@@ -1,31 +1,31 @@
1
- import { aA as g, aj as y, a_ as w, az as e, ai as r, bR as I, di as U, dj as _, dk as O, cj as E, dl as m } from "./ContextBarContext-f2968fee.js";
2
- import { useState as f, useContext as M, useMemo as k } from "react";
3
- import { Modal as b, SpinnerContainer as K, Button as x } from "@deviceinsight/ng-ui-basic-components";
1
+ import { ax as A, ah as j, aX as w, aw as e, ag as r, bP as I, df as U, dg as O, dh as _, cg as b, di as m } from "./ContextBarContext-0c28ce9d.js";
2
+ import { useState as f, useContext as E, useMemo as M } from "react";
3
+ import { Modal as k, SpinnerContainer as K, Button as x } from "@deviceinsight/ng-ui-basic-components";
4
4
  import { InfoBox as F } from "@deviceinsight/ng-ui-components";
5
- import { searchUserGroups as R } from "@deviceinsight/ng-ui-api-client";
6
- const W = "usergroupsWithoutAccessToTemplate";
7
- function z(o) {
5
+ import { searchUserGroups as W } from "@deviceinsight/ng-ui-api-client";
6
+ const L = "usergroupsWithoutAccessToTemplate";
7
+ function N(o) {
8
8
  return {
9
- fields: E,
10
- search: (s, t) => R(o(s), t)
9
+ fields: b,
10
+ search: (s, t) => W(o(s), t)
11
11
  };
12
12
  }
13
- function L(o, s) {
13
+ function P(o, s) {
14
14
  return s ? m(
15
15
  s.filter((t) => !o.includes(t)),
16
16
  !1
17
17
  ) : m(o, !0);
18
18
  }
19
19
  function q({ onSave: o, onCancel: s, loading: t, template: n }) {
20
- const [i, T] = f([]), [c, S] = f(!0), { user: u } = M(g), l = n && n.accountGroupsWithAccess || [], C = c ? u.accountGroupIds ?? [] : null, G = k(
20
+ const [i, T] = f([]), [a, S] = f(!0), { user: u } = E(A), l = n && n.accountGroupsWithAccess || [], C = a ? u.accountGroupIds ?? [] : null, G = M(
21
21
  () => Math.random(),
22
22
  // eslint-disable-next-line react-hooks/exhaustive-deps
23
- [c]
24
- ), { t: d } = y(), h = w(["ACCESS_TO_ALL_NOTIFICATION_TEMPLATES"]), j = (n == null ? void 0 : n.accountGroupsWithAccess) ?? [], p = [...i, ...j].some(
25
- (a) => u.accountGroupIds.includes(a)
26
- ), A = !h && !p || t;
23
+ [a]
24
+ ), { t: d } = j(), h = w(["ACCESS_TO_ALL_NOTIFICATION_TEMPLATES"]), g = (n == null ? void 0 : n.accountGroupsWithAccess) ?? [], p = [...i, ...g].some(
25
+ (c) => u.accountGroupIds.includes(c)
26
+ ), y = !h && !p || t;
27
27
  return /* @__PURE__ */ e.jsx(
28
- b,
28
+ k,
29
29
  {
30
30
  onOutsideClick: s,
31
31
  header: /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.access.modal.title", children: "Authorize User Groups to access this template" }),
@@ -44,21 +44,21 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
44
44
  /* @__PURE__ */ e.jsx(
45
45
  U,
46
46
  {
47
- searchContext: W,
48
- searchConfig: z(L(l, C)),
49
- columnDefinitions: _(!0),
50
- uniqueItemKey: (a) => a.id,
47
+ searchContext: L,
48
+ searchConfig: N(P(l, C)),
49
+ columnDefinitions: O(!0),
50
+ uniqueItemKey: (c) => c.id,
51
51
  pageSize: 5,
52
52
  onSelectSome: T,
53
53
  updateTrigger: G,
54
54
  extraHeaderComponent: () => /* @__PURE__ */ e.jsx(
55
- O,
55
+ _,
56
56
  {
57
57
  style: {
58
58
  flexGrow: 1,
59
59
  marginLeft: "50px"
60
60
  },
61
- value: c,
61
+ value: a,
62
62
  onChange: S,
63
63
  label: d("notificationTemplate.access.modal.showOnlyMyGroups", {
64
64
  defaultValue: "Show only my groups"
@@ -66,7 +66,8 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
66
66
  horizontal: !0
67
67
  }
68
68
  ),
69
- searchInputScope: "notification-template-access-modal"
69
+ searchInputScope: "notification-template-access-modal",
70
+ tableName: "notification-template-access-modal-table"
70
71
  }
71
72
  ),
72
73
  /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.access.modal.note", children: "Please select User Groups to authorise them to access and work with this template." })
@@ -76,7 +77,7 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
76
77
  x,
77
78
  {
78
79
  primary: !0,
79
- disabled: A,
80
+ disabled: y,
80
81
  onClick: () => o([...l, ...i], n),
81
82
  children: /* @__PURE__ */ e.jsx(r, { i18nKey: "general.actions.save", children: "Save" })
82
83
  }
@@ -0,0 +1,20 @@
1
+ import { bw as n, aw as r } from "./ContextBarContext-0c28ce9d.js";
2
+ import { useContext as m, useEffect as s } from "react";
3
+ import { useLocation as i } from "react-router-dom";
4
+ import { messageBoxDismissGroup as a } from "@deviceinsight/ng-ui-components";
5
+ import { M as p } from "./consts-012135e5.js";
6
+ import "@deviceinsight/ng-ui-basic-components";
7
+ import "react-i18next";
8
+ import "i18next";
9
+ import "@deviceinsight/ng-ui-api-client";
10
+ import "ux4iot-react";
11
+ import "react-dom";
12
+ function I({ children: o }) {
13
+ const { setContextInfo: t } = m(n), { pathname: e } = i();
14
+ return s(() => (t(), () => {
15
+ a(p), t();
16
+ }), [e, t]), /* @__PURE__ */ r.jsx("div", { children: o });
17
+ }
18
+ export {
19
+ I as default
20
+ };