@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,18 +1,18 @@
|
|
|
1
|
-
import { aj as V,
|
|
2
|
-
import { messageBoxError as J, ReactableWithClientSidePagination as ee, ContentHeader as
|
|
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-
|
|
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:
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
56
|
-
|
|
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("${
|
|
61
|
+
backgroundImage: `url("${s || !l ? "" : l}")`
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
|
|
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:
|
|
68
|
-
const [u, i] = B(
|
|
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 =
|
|
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 =
|
|
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(
|
|
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
|
-
},
|
|
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(
|
|
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: () =>
|
|
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:
|
|
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:
|
|
199
|
-
isLoading:
|
|
198
|
+
items: t,
|
|
199
|
+
isLoading: s
|
|
200
200
|
}
|
|
201
201
|
);
|
|
202
202
|
}
|
|
203
|
-
function K(
|
|
204
|
-
const n = X(() => q(
|
|
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:
|
|
254
|
-
const n = K("documents",
|
|
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(
|
|
258
|
-
const { documents:
|
|
259
|
-
return
|
|
257
|
+
function ve(t) {
|
|
258
|
+
const { documents: s, images: l } = ne(O);
|
|
259
|
+
return t === "documents" ? s : l;
|
|
260
260
|
}
|
|
261
|
-
function we(
|
|
261
|
+
function we(t, s) {
|
|
262
262
|
const l = M().map(({ categoryName: n }) => n);
|
|
263
|
-
return
|
|
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:
|
|
268
|
-
const { loading: l, files: n, uploadFile: u, deleteFile: i, fetchFile: m } = ve(
|
|
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
|
-
|
|
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,
|
|
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:
|
|
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
|
-
|
|
306
|
-
|
|
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:
|
|
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:
|
|
328
|
-
path:
|
|
329
|
-
renderHeading: () => /* @__PURE__ */ e.jsx(p, { i18nKey:
|
|
330
|
-
renderBody: () => /* @__PURE__ */ e.jsx(E, { type: "documents", category:
|
|
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:
|
|
338
|
-
path:
|
|
339
|
-
renderHeading: () => /* @__PURE__ */ e.jsx(p, { i18nKey:
|
|
340
|
-
renderBody: () => /* @__PURE__ */ e.jsx(E, { type: "images", category:
|
|
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:
|
|
344
|
+
function Le({ asset: t, assetGroup: s }) {
|
|
345
345
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
346
346
|
/* @__PURE__ */ e.jsx(
|
|
347
|
-
|
|
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:
|
|
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,
|
|
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,
|
|
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 {
|
|
2
|
-
import { useState as d, useEffect as
|
|
3
|
-
import { C as V, j as b } from "./index-
|
|
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
|
-
|
|
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
|
-
|
|
34
|
+
C,
|
|
35
35
|
{
|
|
36
|
-
label: /* @__PURE__ */ t.jsx(
|
|
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,
|
|
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
|
|
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
|
|
6
|
-
import { messageBoxError as P, ContentHeader as
|
|
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(
|
|
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 =
|
|
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(
|
|
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
|
-
|
|
126
|
+
O,
|
|
127
127
|
{
|
|
128
128
|
title: a ? {
|
|
129
129
|
id: "licenses.edit.title",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
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
|
|
5
|
-
import { messageBoxError as h, ContentHeader as
|
|
6
|
-
import { useConfirm as
|
|
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
|
|
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(
|
|
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
|
-
|
|
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(
|
|
75
|
+
children: /* @__PURE__ */ s.jsx(D, { del: !0 })
|
|
76
76
|
}
|
|
77
77
|
) })
|
|
78
78
|
}
|
|
79
79
|
];
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const [t, e] = c(!1), [n, r] = c([]), o =
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
145
|
+
z as default
|
|
146
146
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useLocation as
|
|
4
|
-
import { getPropertyById as
|
|
5
|
-
import { Button as v, Checkbox as
|
|
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-
|
|
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] =
|
|
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(
|
|
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(
|
|
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 (
|
|
120
|
-
if (M.isAxiosError(
|
|
121
|
-
const { fieldName: N, message: C } = H(
|
|
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(
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
329
|
-
const { pathname: r } =
|
|
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
|
|
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)),
|
|
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 && !
|
|
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
|
-
|
|
369
|
+
Se as default
|
|
370
370
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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";
|