@deviceinsight/ng-ui-scale-lib 9.18.3 → 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.
Files changed (26) hide show
  1. package/dist/{AccessEditModal-9e099de6.js → AccessEditModal-282046e1.js} +14 -14
  2. package/dist/{BundleManagementContainer-e2e023e4.js → BundleManagementContainer-ab0967d5.js} +1 -1
  3. package/dist/{BundlesContainer-fe9d8333.js → BundlesContainer-4bd7633a.js} +18 -18
  4. package/dist/{ContextBarContext-925a628f.js → ContextBarContext-ae056648.js} +4247 -4244
  5. package/dist/{DatapointImport-b71a1fb7.js → DatapointImport-13e46d9f.js} +82 -82
  6. package/dist/{FileUploadInput-3a3864f1.js → FileUploadInput-3de5e077.js} +1 -1
  7. package/dist/{Files-f6724431.js → Files-07d37306.js} +51 -51
  8. package/dist/{GlobalPowerBiReports-c65f2db5.js → GlobalPowerBiReports-1bf0686f.js} +1 -1
  9. package/dist/{Graph-a68526cc.js → Graph-d337f320.js} +1 -1
  10. package/dist/{JsonSettingWidget-b2ee4eb1.js → JsonSettingWidget-a34ebb91.js} +6 -6
  11. package/dist/{LicensesEditPage-06347792.js → LicensesEditPage-ef35006f.js} +8 -8
  12. package/dist/{LicensesList-42e68f81.js → LicensesList-e159a259.js} +13 -13
  13. package/dist/{PropertiesEditPage-d30ad124.js → PropertiesEditPage-604ce509.js} +28 -28
  14. package/dist/{PropertiesList-d294ec55.js → PropertiesList-001a49a3.js} +1 -1
  15. package/dist/{TemplateEditPage-a7ec0bd8.js → TemplateEditPage-3d533bcb.js} +9 -9
  16. package/dist/{TemplateTextInput-371f1882.js → TemplateTextInput-1ef5bc21.js} +4 -4
  17. package/dist/{TemplatesListPage-d20e6d3a.js → TemplatesListPage-22c808c6.js} +12 -12
  18. package/dist/{UserGroupAssignments-d1a0ecf7.js → UserGroupAssignments-d59a6035.js} +5 -5
  19. package/dist/{UserGroupTheme-c77740fb.js → UserGroupTheme-035ec6b7.js} +2 -2
  20. package/dist/api.d.ts +1175 -0
  21. package/dist/api.js +17 -17
  22. package/dist/{index-fb9aff4b.js → index-0784a499.js} +28 -28
  23. package/dist/index.d.ts +11 -0
  24. package/dist/index.js +968 -955
  25. package/dist/{react-router-9e614587.js → react-router-34a40365.js} +1 -1
  26. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { ay as c, a5 as Et, cZ as wt, b3 as kt, ai as et, a_ as bt, bs as It } from "./ContextBarContext-925a628f.js";
1
+ import { az as c, a5 as Et, c_ as wt, b4 as kt, ai as et, a$ as bt, bt as It } from "./ContextBarContext-ae056648.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";
5
5
  import { ReactableWithClientSidePagination as Nt, FileUpload as Ut } from "@deviceinsight/ng-ui-components";
6
- import { fetchUnits as Pt, readAccountObject as Ft, writeAccountObject as zt } from "@deviceinsight/ng-ui-api-client";
6
+ import { fetchUnits as Pt, readAccountObject as zt, writeAccountObject as Ft } from "@deviceinsight/ng-ui-api-client";
7
7
  import "react-router-dom";
8
8
  import "react-dom";
9
9
  function Mt(h) {
@@ -96,9 +96,9 @@ class Wt extends Dt.PureComponent {
96
96
  return this.createDatapoint(l + 1);
97
97
  const {
98
98
  data: { name: I, datatype: P, unit: q, thresholds: a },
99
- error: $
99
+ error: Q
100
100
  } = g[l];
101
- if ($)
101
+ if (Q)
102
102
  return setTimeout(() => this.updateUploadStateAndContinue(l, "CANNOT_UPLOAD"), 0);
103
103
  const N = {
104
104
  name: I,
@@ -161,16 +161,16 @@ License: MIT
161
161
  var i = function() {
162
162
  if (!a.WORKERS_SUPPORTED)
163
163
  return !1;
164
- var f = (F = d.URL || d.webkitURL || null, D = g.toString(), a.BLOB_URL || (a.BLOB_URL = F.createObjectURL(new Blob(["(", D, ")();"], { type: "text/javascript" })))), S = new d.Worker(f), F, D;
164
+ var f = (z = d.URL || d.webkitURL || null, D = g.toString(), a.BLOB_URL || (a.BLOB_URL = z.createObjectURL(new Blob(["(", D, ")();"], { type: "text/javascript" })))), S = new d.Worker(f), z, D;
165
165
  return S.onmessage = ft, S.id = q++, P[S.id] = S;
166
166
  }();
167
167
  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 });
168
168
  }
169
169
  var s = null;
170
- return a.NODE_STREAM_INPUT, typeof e == "string" ? s = t.download ? new Y(t) : new Z(t) : e.readable === !0 && w(e.read) && w(e.on) ? s = new ht(t) : (d.File && e instanceof File || e instanceof Object) && (s = new X(t)), s.stream(e);
170
+ return a.NODE_STREAM_INPUT, typeof e == "string" ? s = t.download ? new Y(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);
171
171
  }, unparse: function(e, t) {
172
172
  var n = !1, i = !0, s = ",", f = `\r
173
- `, S = '"', F = S + S, D = !1, r = null, j = !1;
173
+ `, S = '"', z = S + S, D = !1, r = null, j = !1;
174
174
  (function() {
175
175
  if (typeof t == "object") {
176
176
  if (typeof t.delimiter != "string" || a.BAD_DELIMITERS.filter(function(C) {
@@ -180,17 +180,17 @@ License: MIT
180
180
  throw new Error("Option columns is empty");
181
181
  r = t.columns;
182
182
  }
183
- t.escapeChar !== void 0 && (F = t.escapeChar + S), typeof t.escapeFormulae == "boolean" && (j = t.escapeFormulae);
183
+ t.escapeChar !== void 0 && (z = t.escapeChar + S), typeof t.escapeFormulae == "boolean" && (j = t.escapeFormulae);
184
184
  }
185
185
  })();
186
186
  var o = new RegExp(K(S), "g");
187
187
  if (typeof e == "string" && (e = JSON.parse(e)), Array.isArray(e)) {
188
188
  if (!e.length || Array.isArray(e[0]))
189
- return z(null, e, D);
189
+ return F(null, e, D);
190
190
  if (typeof e[0] == "object")
191
- return z(r || nt(e[0]), e, D);
191
+ return F(r || nt(e[0]), e, D);
192
192
  } else if (typeof e == "object")
193
- return typeof e.data == "string" && (e.data = JSON.parse(e.data)), Array.isArray(e.data) && (e.fields || (e.fields = e.meta && e.meta.fields), e.fields || (e.fields = Array.isArray(e.data[0]) ? e.fields : nt(e.data[0])), Array.isArray(e.data[0]) || typeof e.data[0] == "object" || (e.data = [e.data])), z(e.fields || [], e.data || [], D);
193
+ return typeof e.data == "string" && (e.data = JSON.parse(e.data)), Array.isArray(e.data) && (e.fields || (e.fields = e.meta && e.meta.fields), e.fields || (e.fields = Array.isArray(e.data[0]) ? e.fields : nt(e.data[0])), Array.isArray(e.data[0]) || typeof e.data[0] == "object" || (e.data = [e.data])), F(e.fields || [], e.data || [], D);
194
194
  throw new Error("Unable to serialize unrecognized input");
195
195
  function nt(C) {
196
196
  if (typeof C != "object")
@@ -200,7 +200,7 @@ License: MIT
200
200
  E.push(T);
201
201
  return E;
202
202
  }
203
- function z(C, E, T) {
203
+ function F(C, E, T) {
204
204
  var U = "";
205
205
  typeof C == "string" && (C = JSON.parse(C)), typeof E == "string" && (E = JSON.parse(E));
206
206
  var L = Array.isArray(C) && 0 < C.length, B = !Array.isArray(E[0]);
@@ -235,7 +235,7 @@ License: MIT
235
235
  if (C.constructor === Date)
236
236
  return JSON.stringify(C).slice(1, 25);
237
237
  j === !0 && typeof C == "string" && C.match(/^[=+\-@].*$/) !== null && (C = "'" + C);
238
- var T = C.toString().replace(o, F), U = typeof n == "boolean" && n || typeof n == "function" && n(C, E) || Array.isArray(n) && n[E] || function(L, B) {
238
+ var T = C.toString().replace(o, z), U = typeof n == "boolean" && n || typeof n == "function" && n(C, E) || Array.isArray(n) && n[E] || function(L, B) {
239
239
  for (var u = 0; u < B.length; u++)
240
240
  if (-1 < L.indexOf(B[u]))
241
241
  return !0;
@@ -245,27 +245,27 @@ License: MIT
245
245
  }
246
246
  } };
247
247
  if (a.RECORD_SEP = String.fromCharCode(30), a.UNIT_SEP = String.fromCharCode(31), a.BYTE_ORDER_MARK = "\uFEFF", a.BAD_DELIMITERS = ["\r", `
248
- `, '"', 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 = Y, a.FileStreamer = X, a.StringStreamer = Z, a.ReadableStreamStreamer = ht, d.jQuery) {
249
- var $ = d.jQuery;
250
- $.fn.parse = function(e) {
248
+ `, '"', 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 = Y, a.FileStreamer = Z, a.StringStreamer = V, a.ReadableStreamStreamer = ht, d.jQuery) {
249
+ var Q = d.jQuery;
250
+ Q.fn.parse = function(e) {
251
251
  var t = e.config || {}, n = [];
252
252
  return this.each(function(f) {
253
- if (!($(this).prop("tagName").toUpperCase() === "INPUT" && $(this).attr("type").toLowerCase() === "file" && d.FileReader) || !this.files || this.files.length === 0)
253
+ if (!(Q(this).prop("tagName").toUpperCase() === "INPUT" && Q(this).attr("type").toLowerCase() === "file" && d.FileReader) || !this.files || this.files.length === 0)
254
254
  return !0;
255
255
  for (var S = 0; S < this.files.length; S++)
256
- n.push({ file: this.files[S], inputElem: this, instanceConfig: $.extend({}, t) });
256
+ n.push({ file: this.files[S], inputElem: this, instanceConfig: Q.extend({}, t) });
257
257
  }), i(), this;
258
258
  function i() {
259
259
  if (n.length !== 0) {
260
- var f, S, F, D, r = n[0];
260
+ var f, S, z, D, r = n[0];
261
261
  if (w(e.before)) {
262
262
  var j = e.before(r.file, r.inputElem);
263
263
  if (typeof j == "object") {
264
264
  if (j.action === "abort")
265
- return f = "AbortError", S = r.file, F = r.inputElem, D = j.reason, void (w(e.error) && e.error({ name: f }, S, F, D));
265
+ return f = "AbortError", S = r.file, z = r.inputElem, D = j.reason, void (w(e.error) && e.error({ name: f }, S, z, D));
266
266
  if (j.action === "skip")
267
267
  return void s();
268
- typeof j.config == "object" && (r.instanceConfig = $.extend(r.instanceConfig, j.config));
268
+ typeof j.config == "object" && (r.instanceConfig = Q.extend(r.instanceConfig, j.config));
269
269
  } else if (j === "skip")
270
270
  return void s();
271
271
  }
@@ -297,15 +297,15 @@ License: MIT
297
297
  if (!this._handle.paused() && !this._handle.aborted()) {
298
298
  var S = f.meta.cursor;
299
299
  this._finished || (this._partialLine = s.substring(S - this._baseIndex), this._baseIndex = S), f && f.data && (this._rowCount += f.data.length);
300
- var F = this._finished || this._config.preview && this._rowCount >= this._config.preview;
300
+ var z = this._finished || this._config.preview && this._rowCount >= this._config.preview;
301
301
  if (I)
302
- d.postMessage({ results: f, workerId: a.WORKER_ID, finished: F });
302
+ d.postMessage({ results: f, workerId: a.WORKER_ID, finished: z });
303
303
  else if (w(this._config.chunk) && !n) {
304
304
  if (this._config.chunk(f, this._handle), this._handle.paused() || this._handle.aborted())
305
305
  return void (this._halted = !0);
306
306
  f = void 0, this._completeResults = void 0;
307
307
  }
308
- return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(f.data), this._completeResults.errors = this._completeResults.errors.concat(f.errors), this._completeResults.meta = f.meta), this._completed || !F || !w(this._config.complete) || f && f.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), F || f && f.meta.paused || this._nextChunk(), f;
308
+ return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(f.data), this._completeResults.errors = this._completeResults.errors.concat(f.errors), this._completeResults.meta = f.meta), this._completed || !z || !w(this._config.complete) || f && f.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), z || f && f.meta.paused || this._nextChunk(), f;
309
309
  }
310
310
  this._halted = !0;
311
311
  }, this._sendError = function(t) {
@@ -350,7 +350,7 @@ License: MIT
350
350
  this._sendError(new Error(i));
351
351
  };
352
352
  }
353
- function X(e) {
353
+ function Z(e) {
354
354
  var t, n;
355
355
  (e = e || {}).chunkSize || (e.chunkSize = a.LocalChunkSize), N.call(this, e);
356
356
  var i = typeof FileReader < "u";
@@ -372,7 +372,7 @@ License: MIT
372
372
  this._sendError(t.error);
373
373
  };
374
374
  }
375
- function Z(e) {
375
+ function V(e) {
376
376
  var t;
377
377
  N.call(this, e = e || {}), this.stream = function(n) {
378
378
  return t = n, this._nextChunk();
@@ -411,7 +411,7 @@ License: MIT
411
411
  }, this);
412
412
  }
413
413
  function ut(e) {
414
- var t, n, i, s = Math.pow(2, 53), f = -s, S = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)(e[-+]?\d+)?\s*$/, F = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/, D = this, r = 0, j = 0, o = !1, nt = !1, z = [], m = { data: [], errors: [], meta: {} };
414
+ var t, n, i, s = Math.pow(2, 53), f = -s, S = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)(e[-+]?\d+)?\s*$/, z = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/, D = this, r = 0, j = 0, o = !1, nt = !1, F = [], m = { data: [], errors: [], meta: {} };
415
415
  if (w(e.step)) {
416
416
  var C = e.step;
417
417
  e.step = function(u) {
@@ -435,7 +435,7 @@ License: MIT
435
435
  if (!m)
436
436
  return;
437
437
  function _(b, y) {
438
- w(e.transformHeader) && (b = e.transformHeader(b, y)), z.push(b);
438
+ w(e.transformHeader) && (b = e.transformHeader(b, y)), F.push(b);
439
439
  }
440
440
  if (Array.isArray(m.data[0])) {
441
441
  for (var k = 0; U() && k < m.data.length; k++)
@@ -450,16 +450,16 @@ License: MIT
450
450
  var v, O = e.header ? {} : [];
451
451
  for (v = 0; v < b.length; v++) {
452
452
  var p = v, R = b[v];
453
- e.header && (p = v >= z.length ? "__parsed_extra" : z[v]), e.transform && (R = e.transform(R, p)), R = L(p, R), p === "__parsed_extra" ? (O[p] = O[p] || [], O[p].push(R)) : O[p] = R;
453
+ e.header && (p = v >= F.length ? "__parsed_extra" : F[v]), e.transform && (R = e.transform(R, p)), R = L(p, R), p === "__parsed_extra" ? (O[p] = O[p] || [], O[p].push(R)) : O[p] = R;
454
454
  }
455
- return e.header && (v > z.length ? B("FieldMismatch", "TooManyFields", "Too many fields: expected " + z.length + " fields but parsed " + v, j + y) : v < z.length && B("FieldMismatch", "TooFewFields", "Too few fields: expected " + z.length + " fields but parsed " + v, j + y)), O;
455
+ return e.header && (v > F.length ? B("FieldMismatch", "TooManyFields", "Too many fields: expected " + F.length + " fields but parsed " + v, j + y) : v < F.length && B("FieldMismatch", "TooFewFields", "Too few fields: expected " + F.length + " fields but parsed " + v, j + y)), O;
456
456
  }
457
457
  var k = 1;
458
- return !m.data.length || Array.isArray(m.data[0]) ? (m.data = m.data.map(_), k = m.data.length) : m.data = _(m.data, 0), e.header && m.meta && (m.meta.fields = z), j += k, m;
458
+ return !m.data.length || Array.isArray(m.data[0]) ? (m.data = m.data.map(_), k = m.data.length) : m.data = _(m.data, 0), e.header && m.meta && (m.meta.fields = F), j += k, m;
459
459
  }();
460
460
  }
461
461
  function U() {
462
- return e.header && z.length === 0;
462
+ return e.header && F.length === 0;
463
463
  }
464
464
  function L(u, _) {
465
465
  return k = u, e.dynamicTypingFunction && e.dynamicTyping[k] === void 0 && (e.dynamicTyping[k] = e.dynamicTypingFunction(k)), (e.dynamicTyping[k] || e.dynamicTyping) === !0 ? _ === "true" || _ === "TRUE" || _ !== "false" && _ !== "FALSE" && (function(b) {
@@ -469,7 +469,7 @@ License: MIT
469
469
  return !0;
470
470
  }
471
471
  return !1;
472
- }(_) ? parseFloat(_) : F.test(_) ? new Date(_) : _ === "" ? null : _) : _;
472
+ }(_) ? parseFloat(_) : z.test(_) ? new Date(_) : _ === "" ? null : _) : _;
473
473
  var k;
474
474
  }
475
475
  function B(u, _, k, b) {
@@ -480,8 +480,8 @@ License: MIT
480
480
  var b = e.quoteChar || '"';
481
481
  if (e.newline || (e.newline = function(O, p) {
482
482
  O = O.substring(0, 1048576);
483
- var R = new RegExp(K(p) + "([^]*?)" + K(p), "gm"), J = (O = O.replace(R, "")).split("\r"), V = O.split(`
484
- `), tt = 1 < V.length && V[0].length < J[0].length;
483
+ var R = new RegExp(K(p) + "([^]*?)" + K(p), "gm"), J = (O = O.replace(R, "")).split("\r"), X = O.split(`
484
+ `), tt = 1 < X.length && X[0].length < J[0].length;
485
485
  if (J.length === 1 || tt)
486
486
  return `
487
487
  `;
@@ -493,18 +493,18 @@ License: MIT
493
493
  }(u, b)), i = !1, e.delimiter)
494
494
  w(e.delimiter) && (e.delimiter = e.delimiter(u), m.meta.delimiter = e.delimiter);
495
495
  else {
496
- var y = function(O, p, R, J, V) {
496
+ var y = function(O, p, R, J, X) {
497
497
  var tt, it, H, lt;
498
- V = V || [",", " ", "|", ";", a.RECORD_SEP, a.UNIT_SEP];
499
- for (var M = 0; M < V.length; M++) {
500
- var ot = V[M], dt = 0, A = 0, rt = 0;
498
+ X = X || [",", " ", "|", ";", a.RECORD_SEP, a.UNIT_SEP];
499
+ for (var M = 0; M < X.length; M++) {
500
+ var ot = X[M], dt = 0, A = 0, rt = 0;
501
501
  H = void 0;
502
502
  for (var G = new W({ comments: J, delimiter: ot, newline: p, preview: 10 }).parse(O), st = 0; st < G.data.length; st++)
503
503
  if (R && E(G.data[st]))
504
504
  rt++;
505
505
  else {
506
- var Q = G.data[st].length;
507
- A += Q, H !== void 0 ? 0 < Q && (dt += Math.abs(Q - H), H = Q) : H = Q;
506
+ var $ = G.data[st].length;
507
+ A += $, H !== void 0 ? 0 < $ && (dt += Math.abs($ - H), H = $) : H = $;
508
508
  }
509
509
  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);
510
510
  }
@@ -530,7 +530,7 @@ License: MIT
530
530
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
531
531
  }
532
532
  function W(e) {
533
- var t, n = (e = e || {}).delimiter, i = e.newline, s = e.comments, f = e.step, S = e.preview, F = e.fastMode, D = t = e.quoteChar === void 0 ? '"' : e.quoteChar;
533
+ var t, n = (e = e || {}).delimiter, i = e.newline, s = e.comments, f = e.step, S = e.preview, z = e.fastMode, D = t = e.quoteChar === void 0 ? '"' : e.quoteChar;
534
534
  if (e.escapeChar !== void 0 && (D = e.escapeChar), (typeof n != "string" || -1 < a.BAD_DELIMITERS.indexOf(n)) && (n = ","), s === n)
535
535
  throw new Error("Comment character same as delimiter");
536
536
  s === !0 ? s = "#" : (typeof s != "string" || -1 < a.BAD_DELIMITERS.indexOf(s)) && (s = !1), i !== `
@@ -538,17 +538,17 @@ License: MIT
538
538
  ` && (i = `
539
539
  `);
540
540
  var r = 0, j = !1;
541
- this.parse = function(o, nt, z) {
541
+ this.parse = function(o, nt, F) {
542
542
  if (typeof o != "string")
543
543
  throw new Error("Input must be a string");
544
544
  var m = o.length, C = n.length, E = i.length, T = s.length, U = w(f), L = [], B = [], u = [], _ = r = 0;
545
545
  if (!o)
546
546
  return M();
547
- if (F || F !== !1 && o.indexOf(t) === -1) {
547
+ if (z || z !== !1 && o.indexOf(t) === -1) {
548
548
  for (var k = o.split(i), b = 0; b < k.length; b++) {
549
549
  if (u = k[b], r += u.length, b !== k.length - 1)
550
550
  r += i.length;
551
- else if (z)
551
+ else if (F)
552
552
  return M();
553
553
  if (!s || u.substring(0, T) !== s) {
554
554
  if (U) {
@@ -590,7 +590,7 @@ License: MIT
590
590
  else
591
591
  for (p = r, r++; ; ) {
592
592
  if ((p = o.indexOf(t, p + 1)) === -1)
593
- return z || B.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: L.length, index: r }), H();
593
+ return F || B.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: L.length, index: r }), H();
594
594
  if (p === m - 1)
595
595
  return H(o.substring(r, p).replace(O, t));
596
596
  if (t !== D || o[p + 1] !== D) {
@@ -601,9 +601,9 @@ License: MIT
601
601
  u.push(o.substring(r, p).replace(O, t)), o[r = p + 1 + J + C] !== t && (p = o.indexOf(t, r)), y = o.indexOf(n, r), v = o.indexOf(i, r);
602
602
  break;
603
603
  }
604
- var V = it(v);
605
- if (o.substring(p + 1 + V, p + 1 + V + E) === i) {
606
- if (u.push(o.substring(r, p).replace(O, t)), lt(p + 1 + V + E), y = o.indexOf(n, r), p = o.indexOf(t, r), U && (ot(), j))
604
+ var X = it(v);
605
+ if (o.substring(p + 1 + X, p + 1 + X + E) === i) {
606
+ 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))
607
607
  return M();
608
608
  if (S && L.length >= S)
609
609
  return M(!0);
@@ -627,7 +627,7 @@ License: MIT
627
627
  return rt;
628
628
  }
629
629
  function H(A) {
630
- return z || (A === void 0 && (A = o.substring(r)), u.push(A), r = m, tt(u), U && ot()), M();
630
+ return F || (A === void 0 && (A = o.substring(r)), u.push(A), r = m, tt(u), U && ot()), M();
631
631
  }
632
632
  function lt(A) {
633
633
  r = A, tt(u), u = [], v = o.indexOf(i, r);
@@ -639,12 +639,12 @@ License: MIT
639
639
  f(M()), L = [], B = [];
640
640
  }
641
641
  function dt(A, rt, G) {
642
- var st = { nextDelim: void 0, quoteSearch: void 0 }, Q = o.indexOf(t, rt + 1);
643
- if (rt < A && A < Q && (Q < G || G === -1)) {
644
- var gt = o.indexOf(n, Q);
642
+ var st = { nextDelim: void 0, quoteSearch: void 0 }, $ = o.indexOf(t, rt + 1);
643
+ if (rt < A && A < $ && ($ < G || G === -1)) {
644
+ var gt = o.indexOf(n, $);
645
645
  if (gt === -1)
646
646
  return st;
647
- Q < gt && (Q = o.indexOf(t, Q + 1)), st = dt(gt, Q, G);
647
+ $ < gt && ($ = o.indexOf(t, $ + 1)), st = dt(gt, $, G);
648
648
  } else
649
649
  st = { nextDelim: A, quoteSearch: rt };
650
650
  return st;
@@ -703,42 +703,42 @@ License: MIT
703
703
  var n = a.parse(t.input, t.config);
704
704
  n && d.postMessage({ workerId: a.WORKER_ID, results: n, finished: !0 });
705
705
  }
706
- }), (Y.prototype = Object.create(N.prototype)).constructor = Y, (X.prototype = Object.create(N.prototype)).constructor = X, (Z.prototype = Object.create(Z.prototype)).constructor = Z, (ht.prototype = Object.create(N.prototype)).constructor = ht, a;
706
+ }), (Y.prototype = Object.create(N.prototype)).constructor = Y, (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;
707
707
  });
708
708
  })(Ct);
709
709
  var Ht = Ct.exports;
710
- const Gt = 20, Qt = (h) => {
710
+ const Gt = 20, $t = (h) => {
711
711
  const l = [];
712
712
  let g = 0;
713
713
  const d = [...h];
714
714
  return h[0][0] === "DATAPOINT_NAME" && d.shift(), d.forEach((x, I) => {
715
715
  if (g > Gt)
716
716
  throw new Error("INVALID_DOCUMENT");
717
- const [P, q, a, $, N, Y] = x, X = {};
718
- N && !isNaN(parseInt(N)) && (X.threshold1 = parseInt(N)), Y && !isNaN(parseInt(Y)) && (X.threshold2 = parseInt(Y));
719
- const Z = {
717
+ const [P, q, a, Q, N, Y] = x, Z = {};
718
+ N && !isNaN(parseInt(N)) && (Z.threshold1 = parseInt(N)), Y && !isNaN(parseInt(Y)) && (Z.threshold2 = parseInt(Y));
719
+ const V = {
720
720
  idx: I,
721
721
  data: {
722
722
  name: P,
723
723
  datatype: q && q.toUpperCase(),
724
- unit: $ ? {
725
- name: $,
724
+ unit: Q ? {
725
+ name: Q,
726
726
  print: a
727
727
  } : null,
728
- thresholds: X
728
+ thresholds: Z
729
729
  }
730
730
  };
731
- if (l.push(Z), x.length < 2)
732
- return g++, Z.error = "INVALID_NUMBER_OF_CELLS";
731
+ if (l.push(V), x.length < 2)
732
+ return g++, V.error = "INVALID_NUMBER_OF_CELLS";
733
733
  if (!wt.includes(q))
734
- return g++, Z.error = "INVALID_DATATYPE";
734
+ return g++, V.error = "INVALID_DATATYPE";
735
735
  }), l;
736
- }, $t = (h) => new Promise((l, g) => {
736
+ }, Qt = (h) => new Promise((l, g) => {
737
737
  Ht.parse(h, {
738
738
  skipEmptyLines: !0,
739
739
  complete: ({ data: d }) => {
740
740
  try {
741
- const x = Qt(d);
741
+ const x = $t(d);
742
742
  l(x);
743
743
  } catch (x) {
744
744
  g(x);
@@ -751,14 +751,14 @@ const Gt = 20, Qt = (h) => {
751
751
  }), Jt = (h, l, g) => g.findIndex((d) => (d == null ? void 0 : d.name) === (h == null ? void 0 : h.name)) === l, Yt = async (h, l, g) => {
752
752
  const x = l.filter((I) => !I.error).map((I) => I.data.unit).filter((I) => I && !h.some((P) => P.name === I.name)).filter(Jt).filter(kt).map(g);
753
753
  return await Promise.all(x), await Pt();
754
- }, Zt = [
754
+ }, Vt = [
755
755
  "DATAPOINT_NAME,DATAPOINT_TYPE,UNIT_DISPLAY_NAME,UNIT_IDENTIFIER,DATAPOINT_UPPER_THRESHOLD,DATAPOINT_LOWER_THRESHOLD",
756
756
  "new_datapoint_1,LONG,°C,degrees-celsius,20,7",
757
757
  "new_datapoint_2,LONG,,,,"
758
758
  ], vt = {
759
759
  marginLeft: 15,
760
760
  listStyle: "disc"
761
- }, Vt = () => /* @__PURE__ */ c.jsxs("ul", { style: { ...vt, width: 345 }, children: [
761
+ }, Xt = () => /* @__PURE__ */ c.jsxs("ul", { style: { ...vt, width: 345 }, children: [
762
762
  /* @__PURE__ */ c.jsxs("li", { children: [
763
763
  /* @__PURE__ */ c.jsx(et, { i18nKey: "datapointImport.infoColumns", children: "Columns:" }),
764
764
  /* @__PURE__ */ c.jsxs("ul", { style: { ...vt, listStyle: "circle" }, children: [
@@ -784,12 +784,12 @@ const Gt = 20, Qt = (h) => {
784
784
  onPageSizeChange: () => {
785
785
  }
786
786
  }), St = "uiConfigurations/datapointimportpagination";
787
- function Xt({ children: h }) {
787
+ function Zt({ children: h }) {
788
788
  const [l, g] = pt(10), d = (x) => {
789
- g(x), zt(St, { pageSize: x });
789
+ g(x), Ft(St, { pageSize: x });
790
790
  };
791
791
  return Rt(() => {
792
- const { promise: x, cancel: I } = bt(Ft(St));
792
+ const { promise: x, cancel: I } = bt(zt(St));
793
793
  return x.then((P) => {
794
794
  g((P == null ? void 0 : P.pageSize) ?? 10);
795
795
  }).catch((P) => {
@@ -797,15 +797,15 @@ function Xt({ children: h }) {
797
797
  }, []), /* @__PURE__ */ c.jsx(xt.Provider, { value: { pageSize: l, onPageSizeChange: d }, children: h });
798
798
  }
799
799
  function he(h) {
800
- return /* @__PURE__ */ c.jsx(Xt, { children: /* @__PURE__ */ c.jsx(te, { ...h }) });
800
+ return /* @__PURE__ */ c.jsx(Zt, { children: /* @__PURE__ */ c.jsx(te, { ...h }) });
801
801
  }
802
802
  function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, addUnit: d }) {
803
- const [x, I] = pt([]), [P, q] = pt(null), { pageSize: a, onPageSizeChange: $ } = At(xt), [N, Y] = pt(!1);
804
- function X() {
803
+ const [x, I] = pt([]), [P, q] = pt(null), { pageSize: a, onPageSizeChange: Q } = At(xt), [N, Y] = pt(!1);
804
+ function Z() {
805
805
  I([]), q(null);
806
806
  }
807
- function Z(K) {
808
- Y(!0), I([]), q(null), $t(K).then(async (W) => {
807
+ function V(K) {
808
+ Y(!0), I([]), q(null), Qt(K).then(async (W) => {
809
809
  await Yt(h, W, d), I(W), l(!0, 0, 0);
810
810
  }).catch((W) => {
811
811
  q(W);
@@ -818,7 +818,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
818
818
  function ut() {
819
819
  const K = "datapoint-import-template.csv";
820
820
  It.saveAs(
821
- new Blob([Zt.join(`
821
+ new Blob([Vt.join(`
822
822
  `)], {
823
823
  type: "text/csv"
824
824
  }),
@@ -829,8 +829,8 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
829
829
  /* @__PURE__ */ c.jsx(
830
830
  Ut,
831
831
  {
832
- onRemoveFile: X,
833
- onSelectFile: Z,
832
+ onRemoveFile: Z,
833
+ onSelectFile: V,
834
834
  previewComponent: ({ file: K, onRemoveFile: W }) => /* @__PURE__ */ c.jsxs("strong", { className: "di delete-file-button", children: [
835
835
  K ? K.name : "",
836
836
  /* @__PURE__ */ c.jsx(yt, { naked: !0, onClick: W, "data-testid": "delete-file-button", children: /* @__PURE__ */ c.jsx(Lt, { del: !0 }) })
@@ -840,7 +840,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
840
840
  P && /* @__PURE__ */ c.jsx("div", { className: "di upload-error parsing-error", children: /* @__PURE__ */ c.jsx(et, { i18nKey: "datapointImport.tooManyParsingErrors", children: "Too many parsing errors" }) }),
841
841
  !x.length && /* @__PURE__ */ c.jsxs("div", { className: "di download-csv-section", children: [
842
842
  /* @__PURE__ */ c.jsx(yt, { onClick: ut, children: /* @__PURE__ */ c.jsx(et, { i18nKey: "datapointImport.downloadSample", children: "Download template csv file" }) }),
843
- /* @__PURE__ */ c.jsx("label", { className: "csv-upload-info", children: /* @__PURE__ */ c.jsx(jt, { content: /* @__PURE__ */ c.jsx(Vt, {}), children: /* @__PURE__ */ c.jsx("span", { className: "upload-anchor", children: " ?" }) }) })
843
+ /* @__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: " ?" }) }) })
844
844
  ] }),
845
845
  /* @__PURE__ */ c.jsx("div", { className: "datapoint-import-section", children: /* @__PURE__ */ c.jsx(
846
846
  Wt,
@@ -850,7 +850,7 @@ function te({ existingUnits: h, onChangeUploadStatus: l, createDatapoint: g, add
850
850
  isLoading: N,
851
851
  createDatapoint: g,
852
852
  pageSize: a,
853
- onPageSizeChange: $
853
+ onPageSizeChange: Q
854
854
  }
855
855
  ) })
856
856
  ] });
@@ -1,4 +1,4 @@
1
- import { ay as t, cA as m } from "./ContextBarContext-925a628f.js";
1
+ import { az as t, cB as m } from "./ContextBarContext-ae056648.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";