@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.
- package/dist/{AccessEditModal-a02b50a1.js → AccessEditModal-ee0139fb.js} +24 -23
- package/dist/BundleManagementContainer-093786e5.js +20 -0
- package/dist/{BundlesContainer-498d7121.js → BundlesContainer-54c9cc3a.js} +114 -110
- package/dist/{ContextBarContext-f2968fee.js → ContextBarContext-0c28ce9d.js} +38292 -46174
- package/dist/{DatapointImport-0610eed8.js → DatapointImport-6d394cb5.js} +126 -122
- package/dist/{FileUploadInput-aea4f866.js → FileUploadInput-a23ba785.js} +3 -3
- package/dist/{Files-25853de9.js → Files-4fc0415e.js} +23 -19
- package/dist/GlobalPowerBiReports-f9bf0765.js +11079 -0
- package/dist/{Graph-ad8ad6f9.js → Graph-2840eac2.js} +4 -1
- package/dist/JsonSettingWidget-8908d40b.js +57 -0
- package/dist/{LicensesEditPage-e6c71c43.js → LicensesEditPage-3332b87c.js} +33 -30
- package/dist/{LicensesList-d28c9799.js → LicensesList-6254cd37.js} +17 -13
- package/dist/{PropertiesEditPage-85bc5517.js → PropertiesEditPage-5b148652.js} +24 -21
- package/dist/{PropertiesList-fcf0d837.js → PropertiesList-06478803.js} +17 -13
- package/dist/{TemplateEditPage-a34efc41.js → TemplateEditPage-94088888.js} +28 -23
- package/dist/TemplateTextInput-e8861a0f.js +50 -0
- package/dist/{TemplatesListPage-ce7fea1d.js → TemplatesListPage-866246c6.js} +55 -51
- package/dist/{UserGroupAssignments-8fd3c47d.js → UserGroupAssignments-6feae326.js} +36 -32
- package/dist/{UserGroupTheme-0e8a16c4.js → UserGroupTheme-7ee8e92e.js} +14 -11
- package/dist/api.d.ts +3 -0
- package/dist/api.js +59 -56
- package/dist/{index-e2b27256.js → index-34a2015c.js} +7 -7
- package/dist/index.js +2761 -2765
- package/dist/objectWithoutPropertiesLoose-a4604547.js +26 -0
- package/dist/{react-router-7b367edf.js → react-router-d38ecdf4.js} +113 -108
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/BundleManagementContainer-dbac0259.js +0 -17
- package/dist/GlobalPowerBiReports-06c92d0e.js +0 -11078
- package/dist/JsonSettingWidget-c471537a.js +0 -54
- package/dist/TemplateTextInput-fe5912e7.js +0 -47
- package/dist/extends-0a3e0827.js +0 -13
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ah as V, aw as e, ag as p, cY as D, cZ as R, br as G, a6 as Y, b4 as z, cp as Z, c_ as q, aY as _, aQ as $ } from "./ContextBarContext-0c28ce9d.js";
|
|
2
2
|
import { messageBoxError as J, ReactableWithClientSidePagination as ee, ContentHeader as te, RouteTabs as se } from "@deviceinsight/ng-ui-components";
|
|
3
|
+
import "react-i18next";
|
|
3
4
|
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
5
|
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-
|
|
6
|
+
import { F as re } from "./FileUploadInput-a23ba785.js";
|
|
6
7
|
import { createPortal as de } from "react-dom";
|
|
7
8
|
import { Link as ce } from "react-router-dom";
|
|
8
9
|
import { g as M } from "./customFileCategories-1b64ed45.js";
|
|
10
|
+
import "i18next";
|
|
9
11
|
import "@deviceinsight/ng-ui-api-client";
|
|
12
|
+
import "ux4iot-react";
|
|
10
13
|
const Ae = ({ fileType: t, onClose: s, onUpload: l }) => {
|
|
11
14
|
const { t: n } = V(), [u, i] = B(null), [m, A] = B(""), [g, f] = B(!1), h = u && !m, d = async (o) => {
|
|
12
15
|
if (o) {
|
|
@@ -72,13 +75,13 @@ const he = ({ initialImageNumber: t, items: s, onDownload: l, onClose: n }) => {
|
|
|
72
75
|
const o = s[u];
|
|
73
76
|
U(() => {
|
|
74
77
|
const b = x.current[o.key];
|
|
75
|
-
b ? A(R(o.contentType, b)) : (f(!0), l(o).then((
|
|
76
|
-
f(!1), x.current[o.key] =
|
|
78
|
+
b ? A(R(o.contentType, b)) : (f(!0), l(o).then((v) => {
|
|
79
|
+
f(!1), x.current[o.key] = v, A(R(o.contentType, v));
|
|
77
80
|
}));
|
|
78
81
|
}, [o, l]);
|
|
79
82
|
const F = () => {
|
|
80
83
|
G.saveAs(new Blob([x.current[o.key]]), o.filename);
|
|
81
|
-
}, I = s.length > 0 && u > 0,
|
|
84
|
+
}, I = s.length > 0 && u > 0, w = s.length > 0 && u < s.length - 1, { body: y } = document;
|
|
82
85
|
return y ? de(
|
|
83
86
|
/* @__PURE__ */ e.jsxs("div", { className: "di file-previewer", children: [
|
|
84
87
|
/* @__PURE__ */ e.jsx("div", { className: "background" }),
|
|
@@ -89,7 +92,7 @@ const he = ({ initialImageNumber: t, items: s, onDownload: l, onClose: n }) => {
|
|
|
89
92
|
/* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
90
93
|
/* @__PURE__ */ e.jsx("div", { className: "left", children: I && /* @__PURE__ */ e.jsx("button", { className: "btn previous", onClick: d, children: /* @__PURE__ */ e.jsx("span", { role: "img", "aria-label": "previous", children: /* @__PURE__ */ e.jsx("img", { src: ge, alt: "previous" }) }) }) }),
|
|
91
94
|
/* @__PURE__ */ e.jsx("div", { className: "center", children: /* @__PURE__ */ e.jsx(ue, { loading: g, content: m, contentType: o.contentType }) }),
|
|
92
|
-
/* @__PURE__ */ e.jsx("div", { className: "right", children:
|
|
95
|
+
/* @__PURE__ */ e.jsx("div", { className: "right", children: w && /* @__PURE__ */ e.jsx("button", { className: "btn next", onClick: h, children: /* @__PURE__ */ e.jsx("span", { role: "img", "aria-label": "next", children: /* @__PURE__ */ e.jsx("img", { src: fe, alt: "next" }) }) }) })
|
|
93
96
|
] }),
|
|
94
97
|
/* @__PURE__ */ e.jsx("div", { className: "footer", children: /* @__PURE__ */ e.jsx("button", { className: "btn download", onClick: F, disabled: g, children: /* @__PURE__ */ e.jsx("span", { role: "img", "aria-label": "close", children: /* @__PURE__ */ e.jsx("img", { src: xe, alt: "download" }) }) }) })
|
|
95
98
|
] }),
|
|
@@ -101,10 +104,10 @@ var Q = { exports: {} };
|
|
|
101
104
|
(function(l) {
|
|
102
105
|
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
106
|
function m(A) {
|
|
104
|
-
var g, f, h, d, x, o, F, I,
|
|
107
|
+
var g, f, h, d, x, o, F, I, w, y, b, v, j, C, L, c = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : {}, a = [], N = 0, r = void 0, T = void 0;
|
|
105
108
|
if (isNaN(A))
|
|
106
109
|
throw new TypeError("Invalid number");
|
|
107
|
-
return f = c.bits === !0, b = c.unix === !0, g = c.base || 2, y = c.round !== void 0 ? c.round : b ? 1 : 2, o = c.locale !== void 0 ? c.locale : "", F = c.localeOptions || {},
|
|
110
|
+
return f = c.bits === !0, b = c.unix === !0, g = c.base || 2, y = c.round !== void 0 ? c.round : b ? 1 : 2, o = c.locale !== void 0 ? c.locale : "", F = c.localeOptions || {}, v = c.separator !== void 0 ? c.separator : "", j = c.spacer !== void 0 ? c.spacer : b ? "" : " ", L = c.symbols || {}, C = g === 2 && c.standard || "jedec", w = c.output || "string", d = c.fullform === !0, x = c.fullforms instanceof Array ? c.fullforms : [], r = c.exponent !== void 0 ? c.exponent : -1, h = 2 < g ? 1e3 : 1024, (I = (T = Number(A)) < 0) && (T = -T), (r === -1 || isNaN(r)) && (r = Math.floor(Math.log(T) / Math.log(h))) < 0 && (r = 0), 8 < r && (r = 8), w === "exponent" ? r : (T === 0 ? (a[0] = 0, a[1] = b ? "" : u[C][f ? "bits" : "bytes"][r]) : (N = T / (g === 2 ? Math.pow(2, 10 * r) : Math.pow(1e3, r)), f && h <= (N *= 8) && r < 8 && (N /= h, r++), a[0] = Number(N.toFixed(0 < r ? y : 0)), a[0] === h && r < 8 && c.exponent === void 0 && (a[0] = 1, r++), a[1] = g === 10 && r === 1 ? f ? "kb" : "kB" : u[C][f ? "bits" : "bytes"][r], b && (a[1] = C === "jedec" ? a[1].charAt(0) : 0 < r ? a[1].replace(/B$/, "") : a[1], n.test(a[1]) && (a[0] = Math.floor(a[0]), a[1] = ""))), I && (a[0] = -a[0]), a[1] = L[a[1]] || a[1], o === !0 ? a[0] = a[0].toLocaleString() : 0 < o.length ? a[0] = a[0].toLocaleString(o, F) : 0 < v.length && (a[0] = a[0].toString().replace(".", v)), w === "array" ? a : (d && (a[1] = x[r] ? x[r] : i[C][r] + (f ? "bit" : "byte") + (a[0] === 1 ? "" : "s")), w === "object" ? { value: a[0], symbol: a[1], exponent: r } : a.join(j)));
|
|
108
111
|
}
|
|
109
112
|
m.partial = function(A) {
|
|
110
113
|
return function(g) {
|
|
@@ -196,7 +199,8 @@ function Fe({ files: t, loading: s, type: l, onFilenameClick: n, onDownload: u,
|
|
|
196
199
|
uniqueItemKey: (A) => A.key,
|
|
197
200
|
paginationSettings: je,
|
|
198
201
|
items: t,
|
|
199
|
-
isLoading: s
|
|
202
|
+
isLoading: s,
|
|
203
|
+
tableName: "filesTable"
|
|
200
204
|
}
|
|
201
205
|
);
|
|
202
206
|
}
|
|
@@ -254,24 +258,24 @@ function Ce({ asset: t, assetGroup: s, children: l }) {
|
|
|
254
258
|
const n = K("documents", t, s), u = K("images", t, s);
|
|
255
259
|
return /* @__PURE__ */ e.jsx(O.Provider, { value: { documents: n, images: u }, children: l });
|
|
256
260
|
}
|
|
257
|
-
function
|
|
261
|
+
function we(t) {
|
|
258
262
|
const { documents: s, images: l } = ne(O);
|
|
259
263
|
return t === "documents" ? s : l;
|
|
260
264
|
}
|
|
261
|
-
function
|
|
265
|
+
function ve(t, s) {
|
|
262
266
|
const l = M().map(({ categoryName: n }) => n);
|
|
263
267
|
return s && l.includes(s) ? t.filter((n) => n.category === s) : t.filter(
|
|
264
268
|
(n) => !n.category || !l.includes(n.category)
|
|
265
269
|
);
|
|
266
270
|
}
|
|
267
271
|
function E({ type: t, category: s }) {
|
|
268
|
-
const { loading: l, files: n, uploadFile: u, deleteFile: i, fetchFile: m } =
|
|
269
|
-
async function
|
|
272
|
+
const { loading: l, files: n, uploadFile: u, deleteFile: i, fetchFile: m } = we(t), A = X(() => ve(n, s), [n, s]), [g, f] = B(!1), [h, d] = B(!1), [x, o] = B(0), { t: F } = V(), I = oe();
|
|
273
|
+
async function w(j) {
|
|
270
274
|
const C = await m(j);
|
|
271
275
|
G.saveAs(new Blob([C]), j.filename);
|
|
272
276
|
}
|
|
273
277
|
function y(j) {
|
|
274
|
-
t === "images" ? (o(A.indexOf(j)), d(!0)) :
|
|
278
|
+
t === "images" ? (o(A.indexOf(j)), d(!0)) : w(j);
|
|
275
279
|
}
|
|
276
280
|
async function b(j) {
|
|
277
281
|
try {
|
|
@@ -280,7 +284,7 @@ function E({ type: t, category: s }) {
|
|
|
280
284
|
console.error(C), J(/* @__PURE__ */ e.jsx(p, { i18nKey: "files.error.unknown", children: "Operation failed" }));
|
|
281
285
|
}
|
|
282
286
|
}
|
|
283
|
-
async function
|
|
287
|
+
async function v(j) {
|
|
284
288
|
await I({
|
|
285
289
|
title: F("assets.detail.files.deleteConfirmTitle", { defaultValue: "Delete File" }),
|
|
286
290
|
message: F("assets.detail.files.deleteConfirmMessage", {
|
|
@@ -295,9 +299,9 @@ function E({ type: t, category: s }) {
|
|
|
295
299
|
files: A,
|
|
296
300
|
loading: l,
|
|
297
301
|
type: t,
|
|
298
|
-
onDownload:
|
|
302
|
+
onDownload: w,
|
|
299
303
|
onFilenameClick: y,
|
|
300
|
-
onDelete:
|
|
304
|
+
onDelete: v
|
|
301
305
|
}
|
|
302
306
|
),
|
|
303
307
|
/* @__PURE__ */ e.jsx($, { authorities: ["WRITE_ASSET_OR_ASSET_GROUP_FILE"], children: /* @__PURE__ */ e.jsxs(k, { onClick: () => f(!0), "data-testid": "add-file-button", children: [
|
|
@@ -341,7 +345,7 @@ function ye() {
|
|
|
341
345
|
}))
|
|
342
346
|
];
|
|
343
347
|
}
|
|
344
|
-
function
|
|
348
|
+
function Ke({ asset: t, assetGroup: s }) {
|
|
345
349
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
346
350
|
/* @__PURE__ */ e.jsx(
|
|
347
351
|
te,
|
|
@@ -356,5 +360,5 @@ function Le({ asset: t, assetGroup: s }) {
|
|
|
356
360
|
] });
|
|
357
361
|
}
|
|
358
362
|
export {
|
|
359
|
-
|
|
363
|
+
Ke as default
|
|
360
364
|
};
|