@deviceinsight/ng-ui-scale-lib 9.18.4 → 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.
- package/dist/{AccessEditModal-cdd9bdbe.js → AccessEditModal-282046e1.js} +14 -14
- package/dist/{BundleManagementContainer-cecadff6.js → BundleManagementContainer-ab0967d5.js} +1 -1
- package/dist/{BundlesContainer-6a3a6b7f.js → BundlesContainer-4bd7633a.js} +18 -18
- package/dist/{ContextBarContext-48d70f1c.js → ContextBarContext-ae056648.js} +4247 -4244
- package/dist/{DatapointImport-e3af14a7.js → DatapointImport-13e46d9f.js} +82 -82
- package/dist/{FileUploadInput-676a1a0e.js → FileUploadInput-3de5e077.js} +1 -1
- package/dist/{Files-167b7d8b.js → Files-07d37306.js} +51 -51
- package/dist/{GlobalPowerBiReports-f0504977.js → GlobalPowerBiReports-1bf0686f.js} +1 -1
- package/dist/{Graph-8f20873d.js → Graph-d337f320.js} +1 -1
- package/dist/{JsonSettingWidget-bbb898ed.js → JsonSettingWidget-a34ebb91.js} +6 -6
- package/dist/{LicensesEditPage-a8507923.js → LicensesEditPage-ef35006f.js} +8 -8
- package/dist/{LicensesList-e3fea154.js → LicensesList-e159a259.js} +13 -13
- package/dist/{PropertiesEditPage-fdc7c3ab.js → PropertiesEditPage-604ce509.js} +28 -28
- package/dist/{PropertiesList-d16edee6.js → PropertiesList-001a49a3.js} +1 -1
- package/dist/{TemplateEditPage-5abef5ff.js → TemplateEditPage-3d533bcb.js} +9 -9
- package/dist/{TemplateTextInput-b40d36ff.js → TemplateTextInput-1ef5bc21.js} +4 -4
- package/dist/{TemplatesListPage-cf586809.js → TemplatesListPage-22c808c6.js} +12 -12
- package/dist/{UserGroupAssignments-2da9917f.js → UserGroupAssignments-d59a6035.js} +5 -5
- package/dist/{UserGroupTheme-177dea88.js → UserGroupTheme-035ec6b7.js} +2 -2
- package/dist/api.js +17 -17
- package/dist/{index-7a76fcc9.js → index-0784a499.js} +28 -28
- package/dist/index.d.ts +0 -1
- package/dist/index.js +968 -955
- package/dist/{react-router-bd7ead27.js → react-router-34a40365.js} +1 -1
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
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-ae056648.js";
|
|
2
2
|
import { useState as f, useContext as M, useMemo as k } from "react";
|
|
3
3
|
import { Modal as b, 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
|
|
6
|
-
const
|
|
7
|
-
function
|
|
5
|
+
import { searchUserGroups as R } from "@deviceinsight/ng-ui-api-client";
|
|
6
|
+
const W = "usergroupsWithoutAccessToTemplate";
|
|
7
|
+
function z(o) {
|
|
8
8
|
return {
|
|
9
9
|
fields: E,
|
|
10
|
-
search: (s, t) =>
|
|
10
|
+
search: (s, t) => R(o(s), t)
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function L(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(
|
|
20
|
+
const [i, T] = f([]), [c, S] = f(!0), { user: u } = M(g), l = n && n.accountGroupsWithAccess || [], C = c ? u.accountGroupIds ?? [] : null, G = k(
|
|
21
21
|
() => Math.random(),
|
|
22
22
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23
23
|
[c]
|
|
24
|
-
), { t: d } =
|
|
24
|
+
), { t: d } = y(), h = w(["ACCESS_TO_ALL_NOTIFICATION_TEMPLATES"]), j = (n == null ? void 0 : n.accountGroupsWithAccess) ?? [], p = [...i, ...j].some(
|
|
25
25
|
(a) => u.accountGroupIds.includes(a)
|
|
26
|
-
),
|
|
26
|
+
), A = !h && !p || t;
|
|
27
27
|
return /* @__PURE__ */ e.jsx(
|
|
28
28
|
b,
|
|
29
29
|
{
|
|
@@ -44,15 +44,15 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
|
|
|
44
44
|
/* @__PURE__ */ e.jsx(
|
|
45
45
|
U,
|
|
46
46
|
{
|
|
47
|
-
searchContext:
|
|
48
|
-
searchConfig: L(
|
|
49
|
-
columnDefinitions:
|
|
47
|
+
searchContext: W,
|
|
48
|
+
searchConfig: z(L(l, C)),
|
|
49
|
+
columnDefinitions: _(!0),
|
|
50
50
|
uniqueItemKey: (a) => a.id,
|
|
51
51
|
pageSize: 5,
|
|
52
52
|
onSelectSome: T,
|
|
53
53
|
updateTrigger: G,
|
|
54
54
|
extraHeaderComponent: () => /* @__PURE__ */ e.jsx(
|
|
55
|
-
|
|
55
|
+
O,
|
|
56
56
|
{
|
|
57
57
|
style: {
|
|
58
58
|
flexGrow: 1,
|
|
@@ -76,7 +76,7 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
|
|
|
76
76
|
x,
|
|
77
77
|
{
|
|
78
78
|
primary: !0,
|
|
79
|
-
disabled:
|
|
79
|
+
disabled: A,
|
|
80
80
|
onClick: () => o([...l, ...i], n),
|
|
81
81
|
children: /* @__PURE__ */ e.jsx(r, { i18nKey: "general.actions.save", children: "Save" })
|
|
82
82
|
}
|
package/dist/{BundleManagementContainer-cecadff6.js → BundleManagementContainer-ab0967d5.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { by as n, az as r } from "./ContextBarContext-ae056648.js";
|
|
2
2
|
import { useContext as m, useEffect as s } from "react";
|
|
3
3
|
import { useLocation as a } from "react-router-dom";
|
|
4
4
|
import { messageBoxDismissGroup as i } from "@deviceinsight/ng-ui-components";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { aj as S,
|
|
1
|
+
import { aj as S, bi as P, az as e, ai as r, bo as A, ba as I, d8 as T, aT as F, b7 as re, am as ae, d9 as ie, cq as q, da as oe } from "./ContextBarContext-ae056648.js";
|
|
2
2
|
import { useEffect as D, useState as V, useRef as ce, useCallback as ue, createElement as he } from "react";
|
|
3
3
|
import { useLocation as me } from "react-router-dom";
|
|
4
4
|
import { createBundle as xe, deleteBundleFile as je, createBundleFile as fe, releaseBundleVersion as Ee, fetchBundleVersion as G, fetchBundleFiles as z, createBundleVersion as ge, deleteBundleVersion as Be, downloadBundleFile as be, fetchBundleVersions as W, deleteBundle as Ve, fetchAllBundles as De } from "@deviceinsight/ng-ui-api-client";
|
|
5
5
|
import { messageBoxSuccess as $, messageBoxError as H, ReactableWithClientSidePagination as Ne, Reactable as Te, ContentHeader as ve } from "@deviceinsight/ng-ui-components";
|
|
6
|
-
import { Modal as
|
|
6
|
+
import { Modal as _, SpinnerContainer as N, Button as j, Icon as v, Label as _e, AccordionItem as ye, Accordion as pe } from "@deviceinsight/ng-ui-basic-components";
|
|
7
7
|
import { B as c, Q, a as Ce } from "./consts-012135e5.js";
|
|
8
|
-
import { F as Le } from "./FileUploadInput-
|
|
8
|
+
import { F as Le } from "./FileUploadInput-3de5e077.js";
|
|
9
9
|
import { u as Se, b as Ae } from "./useCanDeleteBundleVersion-64f35949.js";
|
|
10
10
|
import "react-dom";
|
|
11
11
|
const Y = (n) => {
|
|
@@ -34,7 +34,7 @@ const Y = (n) => {
|
|
|
34
34
|
console.warn("Validation error", o);
|
|
35
35
|
})();
|
|
36
36
|
return Z(u, !1), /* @__PURE__ */ e.jsx(
|
|
37
|
-
|
|
37
|
+
_,
|
|
38
38
|
{
|
|
39
39
|
width: 400,
|
|
40
40
|
header: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundle.create.title", children: "Create new Bundle" }),
|
|
@@ -345,7 +345,7 @@ const J = [
|
|
|
345
345
|
)
|
|
346
346
|
}
|
|
347
347
|
], X = ({ count: n }) => /* @__PURE__ */ e.jsx(
|
|
348
|
-
|
|
348
|
+
_e,
|
|
349
349
|
{
|
|
350
350
|
className: "neutral",
|
|
351
351
|
style: {
|
|
@@ -467,8 +467,8 @@ const J = [
|
|
|
467
467
|
},
|
|
468
468
|
onChange: (E) => {
|
|
469
469
|
if (E) {
|
|
470
|
-
const
|
|
471
|
-
|
|
470
|
+
const y = new FormData();
|
|
471
|
+
y.append("file", E), B(y);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
},
|
|
@@ -523,7 +523,7 @@ const J = [
|
|
|
523
523
|
}, [t, b, n]);
|
|
524
524
|
const B = !!(x.data && x.data.length);
|
|
525
525
|
return /* @__PURE__ */ e.jsx(
|
|
526
|
-
|
|
526
|
+
_,
|
|
527
527
|
{
|
|
528
528
|
width: 500,
|
|
529
529
|
header: t ? /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.editversion", children: "Add Files" }) : /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.addversion", children: "Create new Version" }),
|
|
@@ -589,7 +589,7 @@ const J = [
|
|
|
589
589
|
successMessages: hn
|
|
590
590
|
}), a = Se(n, t), i = () => d(n.id, t.id).then(l).then(s);
|
|
591
591
|
return /* @__PURE__ */ e.jsx(
|
|
592
|
-
|
|
592
|
+
_,
|
|
593
593
|
{
|
|
594
594
|
header: /* @__PURE__ */ e.jsx(r, { i18nKey: U.id, children: U.defaultValue }),
|
|
595
595
|
content: /* @__PURE__ */ e.jsx(cn, { version: t, ...a }),
|
|
@@ -625,7 +625,7 @@ const J = [
|
|
|
625
625
|
return D(() => {
|
|
626
626
|
t && (d(n.id, t), u(n.id, t));
|
|
627
627
|
}, [u, d, t, n]), /* @__PURE__ */ e.jsx(
|
|
628
|
-
|
|
628
|
+
_,
|
|
629
629
|
{
|
|
630
630
|
width: 500,
|
|
631
631
|
header: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundleversion.viewVersion", children: "Version Details" }),
|
|
@@ -701,7 +701,7 @@ const J = [
|
|
|
701
701
|
s
|
|
702
702
|
), [B, f] = V(Bn), {
|
|
703
703
|
run: E,
|
|
704
|
-
data:
|
|
704
|
+
data: y,
|
|
705
705
|
loading: de
|
|
706
706
|
} = g({
|
|
707
707
|
requestFunction: W,
|
|
@@ -713,7 +713,7 @@ const J = [
|
|
|
713
713
|
/* @__PURE__ */ e.jsx(
|
|
714
714
|
gn,
|
|
715
715
|
{
|
|
716
|
-
versions:
|
|
716
|
+
versions: y,
|
|
717
717
|
paginationSettings: B,
|
|
718
718
|
setPaginationSettings: f,
|
|
719
719
|
columnDefs: b,
|
|
@@ -764,7 +764,7 @@ const J = [
|
|
|
764
764
|
}, Dn = (n) => {
|
|
765
765
|
const { bundle: t, onDelete: s, isOpen: l } = n, { id: d, name: a } = t;
|
|
766
766
|
return /* @__PURE__ */ he(
|
|
767
|
-
|
|
767
|
+
ye,
|
|
768
768
|
{
|
|
769
769
|
...n,
|
|
770
770
|
"data-testid": c.ACCORDION_ITEM + d,
|
|
@@ -809,7 +809,7 @@ const J = [
|
|
|
809
809
|
"The bundle ",
|
|
810
810
|
/* @__PURE__ */ e.jsx("strong", { children: n }),
|
|
811
811
|
" cannot be deleted."
|
|
812
|
-
] }) }) }) }),
|
|
812
|
+
] }) }) }) }), _n = (n, t) => /* @__PURE__ */ e.jsxs("div", { "data-testid": c.DELETE_BUNDLE_DIALOG, children: [
|
|
813
813
|
/* @__PURE__ */ e.jsx("p", { "data-testid": "deleteBundleModalBody1", children: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundlemanagement.deleteBundleModalBody1", children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
814
814
|
"Do you really want to delete the bundle ",
|
|
815
815
|
/* @__PURE__ */ e.jsx("strong", { children: n }),
|
|
@@ -821,7 +821,7 @@ const J = [
|
|
|
821
821
|
" version(s) and the associated files."
|
|
822
822
|
] }) }) }),
|
|
823
823
|
/* @__PURE__ */ e.jsx("p", { "data-testid": "deleteBundleModalBody3", children: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundlemanagement.deleteBundleModalBody3", children: "This action cannot be undone." }) })
|
|
824
|
-
] }),
|
|
824
|
+
] }), yn = ({ bundle: n, canBeDeleted: t, error: s, processing: l }) => {
|
|
825
825
|
const {
|
|
826
826
|
run: d,
|
|
827
827
|
data: a,
|
|
@@ -837,7 +837,7 @@ const J = [
|
|
|
837
837
|
style: {
|
|
838
838
|
minHeight: 50
|
|
839
839
|
},
|
|
840
|
-
children: !l && !i && (t ?
|
|
840
|
+
children: !l && !i && (t ? _n(n.name, a ? a.totalElements.toString() : void 0) : vn(n.name, s))
|
|
841
841
|
}
|
|
842
842
|
) });
|
|
843
843
|
}, pn = [ke], Cn = [Je], Ln = ({ bundle: n, onCancel: t, loadBundles: s }) => {
|
|
@@ -847,10 +847,10 @@ const J = [
|
|
|
847
847
|
successMessages: Cn
|
|
848
848
|
}), d = Ae(n), a = () => l(n.id).then(s).then(t);
|
|
849
849
|
return /* @__PURE__ */ e.jsx(
|
|
850
|
-
|
|
850
|
+
_,
|
|
851
851
|
{
|
|
852
852
|
header: /* @__PURE__ */ e.jsx(r, { i18nKey: k.id, children: k.defaultValue }),
|
|
853
|
-
content: /* @__PURE__ */ e.jsx(
|
|
853
|
+
content: /* @__PURE__ */ e.jsx(yn, { bundle: n, ...d }),
|
|
854
854
|
footer: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
855
855
|
/* @__PURE__ */ e.jsx(j, { primary: !0, disabled: !d.canBeDeleted, onClick: a, children: /* @__PURE__ */ e.jsx(r, { i18nKey: C.id, children: C.defaultValue }) }),
|
|
856
856
|
/* @__PURE__ */ e.jsx(j, { onClick: t, children: /* @__PURE__ */ e.jsx(r, { i18nKey: L.id, children: L.defaultValue }) })
|