@deviceinsight/ng-ui-scale-lib 9.20.0 → 9.21.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-ee0139fb.js → AccessEditModal-861d96a6.js} +1 -1
- package/dist/{BundleManagementContainer-093786e5.js → BundleManagementContainer-492e1a51.js} +1 -1
- package/dist/{BundlesContainer-54c9cc3a.js → BundlesContainer-56136d83.js} +2 -2
- package/dist/{ContextBarContext-0c28ce9d.js → ContextBarContext-8a081573.js} +12608 -12555
- package/dist/{DatapointImport-6d394cb5.js → DatapointImport-8fc8457e.js} +46 -46
- package/dist/{FileUploadInput-a23ba785.js → FileUploadInput-4459f512.js} +1 -1
- package/dist/{Files-4fc0415e.js → Files-d47286c7.js} +2 -2
- package/dist/GlobalPowerBiReports-3de00692.js +11081 -0
- package/dist/{Graph-2840eac2.js → Graph-b5c9417d.js} +1 -1
- package/dist/{JsonSettingWidget-8908d40b.js → JsonSettingWidget-c54df0d6.js} +15 -16
- package/dist/{LicensesEditPage-3332b87c.js → LicensesEditPage-fa4f079f.js} +1 -1
- package/dist/{LicensesList-6254cd37.js → LicensesList-41498d29.js} +1 -1
- package/dist/{PropertiesEditPage-5b148652.js → PropertiesEditPage-e4acc179.js} +14 -16
- package/dist/{PropertiesList-06478803.js → PropertiesList-fd78361b.js} +1 -1
- package/dist/{TemplateEditPage-94088888.js → TemplateEditPage-a7b34bbc.js} +23 -25
- package/dist/{TemplateTextInput-e8861a0f.js → TemplateTextInput-ac5506a5.js} +12 -13
- package/dist/{TemplatesListPage-866246c6.js → TemplatesListPage-ea78387b.js} +2 -2
- package/dist/{UserGroupAssignments-6feae326.js → UserGroupAssignments-4e7c6567.js} +1 -1
- package/dist/{UserGroupTheme-7ee8e92e.js → UserGroupTheme-16db6c5b.js} +10 -12
- package/dist/api.d.ts +10 -1
- package/dist/api.js +51 -50
- package/dist/{index-34a2015c.js → index-852b249c.js} +1138 -1117
- package/dist/index.js +239 -239
- package/package.json +1 -1
- package/dist/GlobalPowerBiReports-f9bf0765.js +0 -11079
- package/dist/objectWithoutPropertiesLoose-a4604547.js +0 -26
- package/dist/react-router-d38ecdf4.js +0 -1157
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aw as c, a5 as Et,
|
|
1
|
+
import { aw as c, a5 as Et, cY as wt, b1 as bt, ag as et, aY as kt, br as It } from "./ContextBarContext-8a081573.js";
|
|
2
2
|
import * as Dt from "react";
|
|
3
3
|
import { createContext as Ot, useState as pt, useEffect as Rt, useContext as At } from "react";
|
|
4
4
|
import { Spinner as Tt, Button as yt, Icon as Lt, Bubble as jt } from "@deviceinsight/ng-ui-basic-components";
|
|
@@ -99,9 +99,9 @@ class Wt extends Dt.PureComponent {
|
|
|
99
99
|
return this.createDatapoint(l + 1);
|
|
100
100
|
const {
|
|
101
101
|
data: { name: I, datatype: P, unit: q, thresholds: a },
|
|
102
|
-
error:
|
|
102
|
+
error: Q
|
|
103
103
|
} = g[l];
|
|
104
|
-
if (
|
|
104
|
+
if (Q)
|
|
105
105
|
return setTimeout(() => this.updateUploadStateAndContinue(l, "CANNOT_UPLOAD"), 0);
|
|
106
106
|
const N = {
|
|
107
107
|
name: I,
|
|
@@ -171,7 +171,7 @@ License: MIT
|
|
|
171
171
|
return i.userStep = t.step, i.userChunk = t.chunk, i.userComplete = t.complete, i.userError = t.error, t.step = w(t.step), t.chunk = w(t.chunk), t.complete = w(t.complete), t.error = w(t.error), delete t.worker, void i.postMessage({ input: e, config: t, workerId: i.id });
|
|
172
172
|
}
|
|
173
173
|
var s = null;
|
|
174
|
-
return a.NODE_STREAM_INPUT, typeof e == "string" ? s = t.download ? new J(t) : new
|
|
174
|
+
return a.NODE_STREAM_INPUT, typeof e == "string" ? s = t.download ? new J(t) : new V(t) : e.readable === !0 && w(e.read) && w(e.on) ? s = new ht(t) : (d.File && e instanceof File || e instanceof Object) && (s = new Z(t)), s.stream(e);
|
|
175
175
|
}, unparse: function(e, t) {
|
|
176
176
|
var n = !1, i = !0, s = ",", f = `\r
|
|
177
177
|
`, S = '"', F = S + S, D = !1, r = null, j = !1;
|
|
@@ -249,15 +249,15 @@ License: MIT
|
|
|
249
249
|
}
|
|
250
250
|
} };
|
|
251
251
|
if (a.RECORD_SEP = String.fromCharCode(30), a.UNIT_SEP = String.fromCharCode(31), a.BYTE_ORDER_MARK = "\uFEFF", a.BAD_DELIMITERS = ["\r", `
|
|
252
|
-
`, '"', a.BYTE_ORDER_MARK], a.WORKERS_SUPPORTED = !x && !!d.Worker, a.NODE_STREAM_INPUT = 1, a.LocalChunkSize = 10485760, a.RemoteChunkSize = 5242880, a.DefaultDelimiter = ",", a.Parser = W, a.ParserHandle = ut, a.NetworkStreamer = J, a.FileStreamer = Z, a.StringStreamer =
|
|
253
|
-
var
|
|
254
|
-
|
|
252
|
+
`, '"', a.BYTE_ORDER_MARK], a.WORKERS_SUPPORTED = !x && !!d.Worker, a.NODE_STREAM_INPUT = 1, a.LocalChunkSize = 10485760, a.RemoteChunkSize = 5242880, a.DefaultDelimiter = ",", a.Parser = W, a.ParserHandle = ut, a.NetworkStreamer = J, a.FileStreamer = Z, a.StringStreamer = V, a.ReadableStreamStreamer = ht, d.jQuery) {
|
|
253
|
+
var Q = d.jQuery;
|
|
254
|
+
Q.fn.parse = function(e) {
|
|
255
255
|
var t = e.config || {}, n = [];
|
|
256
256
|
return this.each(function(f) {
|
|
257
|
-
if (!(
|
|
257
|
+
if (!(Q(this).prop("tagName").toUpperCase() === "INPUT" && Q(this).attr("type").toLowerCase() === "file" && d.FileReader) || !this.files || this.files.length === 0)
|
|
258
258
|
return !0;
|
|
259
259
|
for (var S = 0; S < this.files.length; S++)
|
|
260
|
-
n.push({ file: this.files[S], inputElem: this, instanceConfig:
|
|
260
|
+
n.push({ file: this.files[S], inputElem: this, instanceConfig: Q.extend({}, t) });
|
|
261
261
|
}), i(), this;
|
|
262
262
|
function i() {
|
|
263
263
|
if (n.length !== 0) {
|
|
@@ -269,7 +269,7 @@ License: MIT
|
|
|
269
269
|
return f = "AbortError", S = r.file, F = r.inputElem, D = j.reason, void (w(e.error) && e.error({ name: f }, S, F, D));
|
|
270
270
|
if (j.action === "skip")
|
|
271
271
|
return void s();
|
|
272
|
-
typeof j.config == "object" && (r.instanceConfig =
|
|
272
|
+
typeof j.config == "object" && (r.instanceConfig = Q.extend(r.instanceConfig, j.config));
|
|
273
273
|
} else if (j === "skip")
|
|
274
274
|
return void s();
|
|
275
275
|
}
|
|
@@ -376,7 +376,7 @@ License: MIT
|
|
|
376
376
|
this._sendError(t.error);
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function V(e) {
|
|
380
380
|
var t;
|
|
381
381
|
N.call(this, e = e || {}), this.stream = function(n) {
|
|
382
382
|
return t = n, this._nextChunk();
|
|
@@ -484,8 +484,8 @@ License: MIT
|
|
|
484
484
|
var k = e.quoteChar || '"';
|
|
485
485
|
if (e.newline || (e.newline = function(O, p) {
|
|
486
486
|
O = O.substring(0, 1048576);
|
|
487
|
-
var R = new RegExp(K(p) + "([^]*?)" + K(p), "gm"), $ = (O = O.replace(R, "")).split("\r"),
|
|
488
|
-
`), tt = 1 <
|
|
487
|
+
var R = new RegExp(K(p) + "([^]*?)" + K(p), "gm"), $ = (O = O.replace(R, "")).split("\r"), X = O.split(`
|
|
488
|
+
`), tt = 1 < X.length && X[0].length < $[0].length;
|
|
489
489
|
if ($.length === 1 || tt)
|
|
490
490
|
return `
|
|
491
491
|
`;
|
|
@@ -497,18 +497,18 @@ License: MIT
|
|
|
497
497
|
}(u, k)), i = !1, e.delimiter)
|
|
498
498
|
w(e.delimiter) && (e.delimiter = e.delimiter(u), m.meta.delimiter = e.delimiter);
|
|
499
499
|
else {
|
|
500
|
-
var y = function(O, p, R, $,
|
|
500
|
+
var y = function(O, p, R, $, X) {
|
|
501
501
|
var tt, it, H, lt;
|
|
502
|
-
|
|
503
|
-
for (var M = 0; M <
|
|
504
|
-
var ot =
|
|
502
|
+
X = X || [",", " ", "|", ";", a.RECORD_SEP, a.UNIT_SEP];
|
|
503
|
+
for (var M = 0; M < X.length; M++) {
|
|
504
|
+
var ot = X[M], dt = 0, A = 0, rt = 0;
|
|
505
505
|
H = void 0;
|
|
506
506
|
for (var G = new W({ comments: $, delimiter: ot, newline: p, preview: 10 }).parse(O), st = 0; st < G.data.length; st++)
|
|
507
507
|
if (R && E(G.data[st]))
|
|
508
508
|
rt++;
|
|
509
509
|
else {
|
|
510
|
-
var
|
|
511
|
-
A +=
|
|
510
|
+
var Y = G.data[st].length;
|
|
511
|
+
A += Y, H !== void 0 ? 0 < Y && (dt += Math.abs(Y - H), H = Y) : H = Y;
|
|
512
512
|
}
|
|
513
513
|
0 < G.data.length && (A /= G.data.length - rt), (it === void 0 || dt <= it) && (lt === void 0 || lt < A) && 1.99 < A && (it = dt, tt = ot, lt = A);
|
|
514
514
|
}
|
|
@@ -605,9 +605,9 @@ License: MIT
|
|
|
605
605
|
u.push(o.substring(r, p).replace(O, t)), o[r = p + 1 + $ + C] !== t && (p = o.indexOf(t, r)), y = o.indexOf(n, r), v = o.indexOf(i, r);
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
|
-
var
|
|
609
|
-
if (o.substring(p + 1 +
|
|
610
|
-
if (u.push(o.substring(r, p).replace(O, t)), lt(p + 1 +
|
|
608
|
+
var X = it(v);
|
|
609
|
+
if (o.substring(p + 1 + X, p + 1 + X + E) === i) {
|
|
610
|
+
if (u.push(o.substring(r, p).replace(O, t)), lt(p + 1 + X + E), y = o.indexOf(n, r), p = o.indexOf(t, r), U && (ot(), j))
|
|
611
611
|
return M();
|
|
612
612
|
if (S && L.length >= S)
|
|
613
613
|
return M(!0);
|
|
@@ -643,12 +643,12 @@ License: MIT
|
|
|
643
643
|
f(M()), L = [], B = [];
|
|
644
644
|
}
|
|
645
645
|
function dt(A, rt, G) {
|
|
646
|
-
var st = { nextDelim: void 0, quoteSearch: void 0 },
|
|
647
|
-
if (rt < A && A <
|
|
648
|
-
var gt = o.indexOf(n,
|
|
646
|
+
var st = { nextDelim: void 0, quoteSearch: void 0 }, Y = o.indexOf(t, rt + 1);
|
|
647
|
+
if (rt < A && A < Y && (Y < G || G === -1)) {
|
|
648
|
+
var gt = o.indexOf(n, Y);
|
|
649
649
|
if (gt === -1)
|
|
650
650
|
return st;
|
|
651
|
-
|
|
651
|
+
Y < gt && (Y = o.indexOf(t, Y + 1)), st = dt(gt, Y, G);
|
|
652
652
|
} else
|
|
653
653
|
st = { nextDelim: A, quoteSearch: rt };
|
|
654
654
|
return st;
|
|
@@ -707,42 +707,42 @@ License: MIT
|
|
|
707
707
|
var n = a.parse(t.input, t.config);
|
|
708
708
|
n && d.postMessage({ workerId: a.WORKER_ID, results: n, finished: !0 });
|
|
709
709
|
}
|
|
710
|
-
}), (J.prototype = Object.create(N.prototype)).constructor = J, (Z.prototype = Object.create(N.prototype)).constructor = Z, (
|
|
710
|
+
}), (J.prototype = Object.create(N.prototype)).constructor = J, (Z.prototype = Object.create(N.prototype)).constructor = Z, (V.prototype = Object.create(V.prototype)).constructor = V, (ht.prototype = Object.create(N.prototype)).constructor = ht, a;
|
|
711
711
|
});
|
|
712
712
|
})(Ct);
|
|
713
713
|
var Ht = Ct.exports;
|
|
714
|
-
const Gt = 20,
|
|
714
|
+
const Gt = 20, Yt = (h) => {
|
|
715
715
|
const l = [];
|
|
716
716
|
let g = 0;
|
|
717
717
|
const d = [...h];
|
|
718
718
|
return h[0][0] === "DATAPOINT_NAME" && d.shift(), d.forEach((x, I) => {
|
|
719
719
|
if (g > Gt)
|
|
720
720
|
throw new Error("INVALID_DOCUMENT");
|
|
721
|
-
const [P, q, a,
|
|
721
|
+
const [P, q, a, Q, N, J] = x, Z = {};
|
|
722
722
|
N && !isNaN(parseInt(N)) && (Z.threshold1 = parseInt(N)), J && !isNaN(parseInt(J)) && (Z.threshold2 = parseInt(J));
|
|
723
|
-
const
|
|
723
|
+
const V = {
|
|
724
724
|
idx: I,
|
|
725
725
|
data: {
|
|
726
726
|
name: P,
|
|
727
727
|
datatype: q && q.toUpperCase(),
|
|
728
|
-
unit:
|
|
729
|
-
name:
|
|
728
|
+
unit: Q ? {
|
|
729
|
+
name: Q,
|
|
730
730
|
print: a
|
|
731
731
|
} : null,
|
|
732
732
|
thresholds: Z
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
|
-
if (l.push(
|
|
736
|
-
return g++,
|
|
735
|
+
if (l.push(V), x.length < 2)
|
|
736
|
+
return g++, V.error = "INVALID_NUMBER_OF_CELLS";
|
|
737
737
|
if (!wt.includes(q))
|
|
738
|
-
return g++,
|
|
738
|
+
return g++, V.error = "INVALID_DATATYPE";
|
|
739
739
|
}), l;
|
|
740
|
-
},
|
|
740
|
+
}, Qt = (h) => new Promise((l, g) => {
|
|
741
741
|
Ht.parse(h, {
|
|
742
742
|
skipEmptyLines: !0,
|
|
743
743
|
complete: ({ data: d }) => {
|
|
744
744
|
try {
|
|
745
|
-
const x =
|
|
745
|
+
const x = Yt(d);
|
|
746
746
|
l(x);
|
|
747
747
|
} catch (x) {
|
|
748
748
|
g(x);
|
|
@@ -755,14 +755,14 @@ const Gt = 20, Qt = (h) => {
|
|
|
755
755
|
}), $t = (h, l, g) => g.findIndex((d) => (d == null ? void 0 : d.name) === (h == null ? void 0 : h.name)) === l, Jt = async (h, l, g) => {
|
|
756
756
|
const x = l.filter((I) => !I.error).map((I) => I.data.unit).filter((I) => I && !h.some((P) => P.name === I.name)).filter($t).filter(bt).map(g);
|
|
757
757
|
return await Promise.all(x), await Pt();
|
|
758
|
-
},
|
|
758
|
+
}, Vt = [
|
|
759
759
|
"DATAPOINT_NAME,DATAPOINT_TYPE,UNIT_DISPLAY_NAME,UNIT_IDENTIFIER,DATAPOINT_UPPER_THRESHOLD,DATAPOINT_LOWER_THRESHOLD",
|
|
760
760
|
"new_datapoint_1,LONG,°C,degrees-celsius,20,7",
|
|
761
761
|
"new_datapoint_2,LONG,,,,"
|
|
762
762
|
], vt = {
|
|
763
763
|
marginLeft: 15,
|
|
764
764
|
listStyle: "disc"
|
|
765
|
-
},
|
|
765
|
+
}, Xt = () => /* @__PURE__ */ c.jsxs("ul", { style: { ...vt, width: 345 }, children: [
|
|
766
766
|
/* @__PURE__ */ c.jsxs("li", { children: [
|
|
767
767
|
/* @__PURE__ */ c.jsx(et, { i18nKey: "datapointImport.infoColumns", children: "Columns:" }),
|
|
768
768
|
/* @__PURE__ */ c.jsxs("ul", { style: { ...vt, listStyle: "circle" }, children: [
|
|
@@ -804,12 +804,12 @@ function ue(h) {
|
|
|
804
804
|
return /* @__PURE__ */ c.jsx(Zt, { children: /* @__PURE__ */ c.jsx(te, { ...h }) });
|
|
805
805
|
}
|
|
806
806
|
function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, addUnit: d }) {
|
|
807
|
-
const [x, I] = pt([]), [P, q] = pt(null), { pageSize: a, onPageSizeChange:
|
|
807
|
+
const [x, I] = pt([]), [P, q] = pt(null), { pageSize: a, onPageSizeChange: Q } = At(xt), [N, J] = pt(!1);
|
|
808
808
|
function Z() {
|
|
809
809
|
I([]), q(null);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
812
|
-
J(!0), I([]), q(null),
|
|
811
|
+
function V(K) {
|
|
812
|
+
J(!0), I([]), q(null), Qt(K).then(async (W) => {
|
|
813
813
|
await Jt(h, W, d), I(W), l(!0, 0, 0);
|
|
814
814
|
}).catch((W) => {
|
|
815
815
|
q(W);
|
|
@@ -822,7 +822,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
|
|
|
822
822
|
function ut() {
|
|
823
823
|
const K = "datapoint-import-template.csv";
|
|
824
824
|
It.saveAs(
|
|
825
|
-
new Blob([
|
|
825
|
+
new Blob([Vt.join(`
|
|
826
826
|
`)], {
|
|
827
827
|
type: "text/csv"
|
|
828
828
|
}),
|
|
@@ -834,7 +834,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
|
|
|
834
834
|
Ut,
|
|
835
835
|
{
|
|
836
836
|
onRemoveFile: Z,
|
|
837
|
-
onSelectFile:
|
|
837
|
+
onSelectFile: V,
|
|
838
838
|
previewComponent: ({ file: K, onRemoveFile: W }) => /* @__PURE__ */ c.jsxs("strong", { className: "di delete-file-button", children: [
|
|
839
839
|
K ? K.name : "",
|
|
840
840
|
/* @__PURE__ */ c.jsx(yt, { naked: !0, onClick: W, "data-testid": "delete-file-button", children: /* @__PURE__ */ c.jsx(Lt, { del: !0 }) })
|
|
@@ -844,7 +844,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
|
|
|
844
844
|
P && /* @__PURE__ */ c.jsx("div", { className: "di upload-error parsing-error", children: /* @__PURE__ */ c.jsx(et, { i18nKey: "datapointImport.tooManyParsingErrors", children: "Too many parsing errors" }) }),
|
|
845
845
|
!x.length && /* @__PURE__ */ c.jsxs("div", { className: "di download-csv-section", children: [
|
|
846
846
|
/* @__PURE__ */ c.jsx(yt, { onClick: ut, children: /* @__PURE__ */ c.jsx(et, { i18nKey: "datapointImport.downloadSample", children: "Download template csv file" }) }),
|
|
847
|
-
/* @__PURE__ */ c.jsx("label", { className: "csv-upload-info", children: /* @__PURE__ */ c.jsx(jt, { content: /* @__PURE__ */ c.jsx(
|
|
847
|
+
/* @__PURE__ */ c.jsx("label", { className: "csv-upload-info", children: /* @__PURE__ */ c.jsx(jt, { content: /* @__PURE__ */ c.jsx(Xt, {}), children: /* @__PURE__ */ c.jsx("span", { className: "upload-anchor", children: " ?" }) }) })
|
|
848
848
|
] }),
|
|
849
849
|
/* @__PURE__ */ c.jsx("div", { className: "datapoint-import-section", children: /* @__PURE__ */ c.jsx(
|
|
850
850
|
Wt,
|
|
@@ -854,7 +854,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
|
|
|
854
854
|
isLoading: N,
|
|
855
855
|
createDatapoint: g,
|
|
856
856
|
pageSize: a,
|
|
857
|
-
onPageSizeChange:
|
|
857
|
+
onPageSizeChange: Q
|
|
858
858
|
}
|
|
859
859
|
) })
|
|
860
860
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aw as t, cy as m } from "./ContextBarContext-
|
|
1
|
+
import { aw as t, cy as m } from "./ContextBarContext-8a081573.js";
|
|
2
2
|
import { useState as p } from "react";
|
|
3
3
|
import { Button as d, Icon as u } from "@deviceinsight/ng-ui-basic-components";
|
|
4
4
|
import { ImageUpload as F, FileUpload as x } from "@deviceinsight/ng-ui-components";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ah as V, aw as e, ag as p,
|
|
1
|
+
import { ah as V, aw as e, ag as p, cZ as D, c_ as R, br as G, a6 as Y, b4 as z, cp as Z, c$ as q, aY as _, aQ as $ } from "./ContextBarContext-8a081573.js";
|
|
2
2
|
import { messageBoxError as J, ReactableWithClientSidePagination as ee, ContentHeader as te, RouteTabs as se } from "@deviceinsight/ng-ui-components";
|
|
3
3
|
import "react-i18next";
|
|
4
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";
|
|
5
5
|
import { Modal as le, SpinnerContainer as P, Button as k, Icon as W, useConfirm as oe } from "@deviceinsight/ng-ui-basic-components";
|
|
6
|
-
import { F as re } from "./FileUploadInput-
|
|
6
|
+
import { F as re } from "./FileUploadInput-4459f512.js";
|
|
7
7
|
import { createPortal as de } from "react-dom";
|
|
8
8
|
import { Link as ce } from "react-router-dom";
|
|
9
9
|
import { g as M } from "./customFileCategories-1b64ed45.js";
|