@deviceinsight/ng-ui-scale-lib 9.25.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.
- package/dist/{AccessEditModal-cedd4fb0.js → AccessEditModal-c2178ad5.js} +3 -3
- package/dist/{BundleManagementContainer-08557220.js → BundleManagementContainer-60c28e65.js} +1 -1
- package/dist/{BundlesContainer-bff2a150.js → BundlesContainer-b3ee1991.js} +27 -27
- package/dist/{ContextBarContext-7e6ed0f4.js → ContextBarContext-a6c59c97.js} +20471 -20240
- package/dist/{DatapointImport-ec7416a8.js → DatapointImport-f6bdbdbc.js} +60 -60
- package/dist/{FileUploadInput-b89d7c2f.js → FileUploadInput-81bb787f.js} +6 -6
- package/dist/{Files-5e4b71b0.js → Files-dc240d97.js} +18 -18
- package/dist/{GlobalPowerBiReports-ad9449e0.js → GlobalPowerBiReports-3b7feef9.js} +1 -1
- package/dist/{Graph-865da2fa.js → Graph-f5463f47.js} +1 -1
- package/dist/{JsonSettingWidget-24f37cfc.js → JsonSettingWidget-307658b8.js} +8 -8
- package/dist/{LicensesEditPage-a0445b99.js → LicensesEditPage-f62cca26.js} +12 -12
- package/dist/{LicensesList-9706b88d.js → LicensesList-85279448.js} +1 -1
- package/dist/{PropertiesEditPage-56eebca4.js → PropertiesEditPage-4edb93b7.js} +10 -10
- package/dist/{PropertiesList-0aa186df.js → PropertiesList-59c05fe4.js} +6 -6
- package/dist/{TemplateEditPage-e281b762.js → TemplateEditPage-fe1b5f44.js} +3 -3
- package/dist/{TemplateTextInput-63d68053.js → TemplateTextInput-34e4356f.js} +5 -5
- package/dist/{TemplatesListPage-f2d7bd81.js → TemplatesListPage-cd3194a7.js} +31 -31
- package/dist/{UserGroupAssignments-b30d1774.js → UserGroupAssignments-291f29f0.js} +1 -1
- package/dist/{UserGroupTheme-0f17124b.js → UserGroupTheme-6768666a.js} +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +56 -56
- package/dist/{index-69036fda.js → index-738ab9ab.js} +1 -1
- package/dist/index.js +1273 -1280
- package/dist/style.css +1 -1
- package/package.json +4 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ay as A, ah as j, aY as w, ax as e, ag as r, bQ as I, dk as U, dl as O, dm as _, cj as b, dn as m } from "./ContextBarContext-a6c59c97.js";
|
|
2
2
|
import { useState as f, useContext as E, useMemo as M } from "react";
|
|
3
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";
|
|
@@ -10,7 +10,7 @@ function N(o) {
|
|
|
10
10
|
search: (s, t) => W(o(s), t)
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function R(o, s) {
|
|
14
14
|
return s ? m(
|
|
15
15
|
s.filter((t) => !o.includes(t)),
|
|
16
16
|
!1
|
|
@@ -45,7 +45,7 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
|
|
|
45
45
|
U,
|
|
46
46
|
{
|
|
47
47
|
searchContext: L,
|
|
48
|
-
searchConfig: N(
|
|
48
|
+
searchConfig: N(R(l, C)),
|
|
49
49
|
columnDefinitions: O(!0),
|
|
50
50
|
uniqueItemKey: (c) => c.id,
|
|
51
51
|
pageSize: 5,
|
package/dist/{BundleManagementContainer-08557220.js → BundleManagementContainer-60c28e65.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bx as n, ax as r } from "./ContextBarContext-a6c59c97.js";
|
|
2
2
|
import { useContext as m, useEffect as s } from "react";
|
|
3
3
|
import { useLocation as i } from "react-router-dom";
|
|
4
4
|
import { messageBoxDismissGroup as a } from "@deviceinsight/ng-ui-components";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ah as S,
|
|
1
|
+
import { ah as S, bg as P, ax as e, ag as r, bm as A, b8 as I, da as T, aR as F, b5 as re, aj as ae, db as ie, cq as q, dc as oe } from "./ContextBarContext-a6c59c97.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
|
-
import { createBundle as xe, deleteBundleFile as je, createBundleFile as fe, releaseBundleVersion as Ee, fetchBundleVersion as G, fetchBundleFiles as z, createBundleVersion as ge, deleteBundleVersion as
|
|
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
6
|
import "react-i18next";
|
|
7
7
|
import { Modal as p, SpinnerContainer as N, Button as j, Icon as v, Label as pe, AccordionItem as _e, Accordion as ye } from "@deviceinsight/ng-ui-basic-components";
|
|
8
8
|
import { B as c, Q, a as Ce } from "./consts-012135e5.js";
|
|
9
|
-
import { F as Le } from "./FileUploadInput-
|
|
9
|
+
import { F as Le } from "./FileUploadInput-81bb787f.js";
|
|
10
10
|
import { u as Se, b as Ae } from "./useCanDeleteBundleVersion-64f35949.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "i18next";
|
|
@@ -103,10 +103,10 @@ function g({
|
|
|
103
103
|
successMessages: s,
|
|
104
104
|
initialData: d
|
|
105
105
|
}) {
|
|
106
|
-
const [l, a] = V(d), [i, u] = V(!1), [o, h] = V(void 0), m = ce(!0),
|
|
106
|
+
const [l, a] = V(d), [i, u] = V(!1), [o, h] = V(void 0), m = ce(!0), B = ue(async (...b) => {
|
|
107
107
|
try {
|
|
108
108
|
h(void 0), u(!0);
|
|
109
|
-
const f = await n(...
|
|
109
|
+
const f = await n(...b);
|
|
110
110
|
m.current && f && a(f), O(s, $, f);
|
|
111
111
|
} catch (f) {
|
|
112
112
|
m.current && h(f), O(t, H, f);
|
|
@@ -116,7 +116,7 @@ function g({
|
|
|
116
116
|
}, [n, t, s]);
|
|
117
117
|
return D(() => (m.current = !0, () => {
|
|
118
118
|
m.current = !1;
|
|
119
|
-
}), [n, t, s]), { run:
|
|
119
|
+
}), [n, t, s]), { run: B, data: l, loading: i, error: o };
|
|
120
120
|
}
|
|
121
121
|
const K = (n) => n ? /* @__PURE__ */ e.jsx("span", { children: re(n, { showTimezone: !1 }) }) : "-", Fe = ({
|
|
122
122
|
onViewDetails: n,
|
|
@@ -450,7 +450,7 @@ const J = [
|
|
|
450
450
|
},
|
|
451
451
|
Qe
|
|
452
452
|
]
|
|
453
|
-
}), x = () => s(n.id, i),
|
|
453
|
+
}), x = () => s(n.id, i), B = (E) => u(n.id, i, E.id).then(x), b = (E) => h(n.id, i, E, ie()).then(x), f = Oe(B, a);
|
|
454
454
|
return D(() => {
|
|
455
455
|
i && s(n.id, i);
|
|
456
456
|
}, [s, i, n]), /* @__PURE__ */ e.jsxs("div", { className: "bundle-version", children: [
|
|
@@ -472,7 +472,7 @@ const J = [
|
|
|
472
472
|
onChange: (E) => {
|
|
473
473
|
if (E) {
|
|
474
474
|
const _ = new FormData();
|
|
475
|
-
_.append("file", E),
|
|
475
|
+
_.append("file", E), b(_);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
},
|
|
@@ -521,11 +521,11 @@ const J = [
|
|
|
521
521
|
}), x = g({
|
|
522
522
|
requestFunction: z,
|
|
523
523
|
errorMessages: tn
|
|
524
|
-
}), { run:
|
|
524
|
+
}), { run: B } = m;
|
|
525
525
|
D(() => {
|
|
526
|
-
t &&
|
|
527
|
-
}, [t,
|
|
528
|
-
const
|
|
526
|
+
t && B(n.id, t);
|
|
527
|
+
}, [t, B, n]);
|
|
528
|
+
const b = !!(x.data && x.data.length);
|
|
529
529
|
return /* @__PURE__ */ e.jsx(
|
|
530
530
|
p,
|
|
531
531
|
{
|
|
@@ -544,7 +544,7 @@ const J = [
|
|
|
544
544
|
{
|
|
545
545
|
primary: !0,
|
|
546
546
|
onClick: () => h.run(n.id, t || "").then(d),
|
|
547
|
-
disabled: !
|
|
547
|
+
disabled: !b || h.loading,
|
|
548
548
|
children: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundlemanagement.publish", children: "Publish" })
|
|
549
549
|
}
|
|
550
550
|
),
|
|
@@ -588,7 +588,7 @@ const J = [
|
|
|
588
588
|
}
|
|
589
589
|
) }), un = [qe], hn = [Xe], mn = ({ bundle: n, version: t, onCancel: s, loadVersions: d }) => {
|
|
590
590
|
const { run: l } = g({
|
|
591
|
-
requestFunction:
|
|
591
|
+
requestFunction: be,
|
|
592
592
|
errorMessages: un,
|
|
593
593
|
successMessages: hn
|
|
594
594
|
}), a = Se(n, t), i = () => l(n.id, t.id).then(d).then(s);
|
|
@@ -621,11 +621,11 @@ const J = [
|
|
|
621
621
|
requestFunction: z,
|
|
622
622
|
errorMessages: jn
|
|
623
623
|
}), { run: m, loading: x } = g({
|
|
624
|
-
requestFunction: (
|
|
624
|
+
requestFunction: (b) => Be(n.id, t, b.id).then((f) => {
|
|
625
625
|
window.location.replace(f.downloadLink);
|
|
626
626
|
}),
|
|
627
627
|
errorMessages: [Pe]
|
|
628
|
-
}),
|
|
628
|
+
}), B = Ke(m, d);
|
|
629
629
|
return D(() => {
|
|
630
630
|
t && (l(n.id, t), u(n.id, t));
|
|
631
631
|
}, [u, l, t, n]), /* @__PURE__ */ e.jsx(
|
|
@@ -640,7 +640,7 @@ const J = [
|
|
|
640
640
|
{
|
|
641
641
|
isLoading: x || h,
|
|
642
642
|
files: o || [],
|
|
643
|
-
columnDefs:
|
|
643
|
+
columnDefs: B
|
|
644
644
|
}
|
|
645
645
|
)
|
|
646
646
|
] }) }),
|
|
@@ -683,44 +683,44 @@ const J = [
|
|
|
683
683
|
)
|
|
684
684
|
]
|
|
685
685
|
}
|
|
686
|
-
) }),
|
|
686
|
+
) }), bn = {
|
|
687
687
|
page: 0,
|
|
688
688
|
size: 5,
|
|
689
689
|
sort: {
|
|
690
690
|
property: "createdAt",
|
|
691
691
|
direction: "DESC"
|
|
692
692
|
}
|
|
693
|
-
},
|
|
693
|
+
}, Bn = [We], Vn = ({ bundle: n, isOpen: t }) => {
|
|
694
694
|
const { t: s } = S(), [d, l] = V(!1), [a, i] = V(void 0), [u, o] = V(void 0), [h, m] = V(void 0), x = q();
|
|
695
695
|
D(() => {
|
|
696
696
|
const de = x.get(Q), w = x.get(Ce);
|
|
697
697
|
w && de === n.id && i(w);
|
|
698
698
|
}, [x, n]);
|
|
699
|
-
const
|
|
699
|
+
const B = Fe(
|
|
700
700
|
{
|
|
701
701
|
onViewDetails: i,
|
|
702
702
|
onDelete: m,
|
|
703
703
|
onEdit: o
|
|
704
704
|
},
|
|
705
705
|
s
|
|
706
|
-
), [
|
|
706
|
+
), [b, f] = V(bn), {
|
|
707
707
|
run: E,
|
|
708
708
|
data: _,
|
|
709
709
|
loading: le
|
|
710
710
|
} = g({
|
|
711
711
|
requestFunction: W,
|
|
712
|
-
errorMessages:
|
|
713
|
-
}), M = () => E(n.id,
|
|
712
|
+
errorMessages: Bn
|
|
713
|
+
}), M = () => E(n.id, b);
|
|
714
714
|
return D(() => {
|
|
715
|
-
t && E(n.id,
|
|
716
|
-
}, [t,
|
|
715
|
+
t && E(n.id, b);
|
|
716
|
+
}, [t, b, E, n]), /* @__PURE__ */ e.jsxs("div", { "data-testid": c.BUNDLE_VERSION_VIEW, children: [
|
|
717
717
|
/* @__PURE__ */ e.jsx(
|
|
718
718
|
gn,
|
|
719
719
|
{
|
|
720
720
|
versions: _,
|
|
721
|
-
paginationSettings:
|
|
721
|
+
paginationSettings: b,
|
|
722
722
|
setPaginationSettings: f,
|
|
723
|
-
columnDefs:
|
|
723
|
+
columnDefs: B,
|
|
724
724
|
loading: le
|
|
725
725
|
}
|
|
726
726
|
),
|