@deviceinsight/ng-ui-scale-lib 9.24.0 → 9.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/{AccessEditModal-f04b44b5.js → AccessEditModal-c2178ad5.js} +3 -3
  2. package/dist/{BundleManagementContainer-36855d44.js → BundleManagementContainer-60c28e65.js} +2 -2
  3. package/dist/{BundlesContainer-f17fefe0.js → BundlesContainer-b3ee1991.js} +28 -28
  4. package/dist/{ContextBarContext-312508b6.js → ContextBarContext-a6c59c97.js} +27061 -26209
  5. package/dist/{DatapointImport-a281089b.js → DatapointImport-f6bdbdbc.js} +61 -61
  6. package/dist/{FileUploadInput-e1b2d5d8.js → FileUploadInput-81bb787f.js} +6 -6
  7. package/dist/{Files-0ab4e355.js → Files-dc240d97.js} +18 -18
  8. package/dist/{GlobalPowerBiReports-9a73fa90.js → GlobalPowerBiReports-3b7feef9.js} +2 -2
  9. package/dist/{Graph-c1b08526.js → Graph-f5463f47.js} +2 -2
  10. package/dist/{JsonSettingWidget-297070b4.js → JsonSettingWidget-307658b8.js} +9 -9
  11. package/dist/{LicensesEditPage-2147817e.js → LicensesEditPage-f62cca26.js} +13 -13
  12. package/dist/{LicensesList-f3708b54.js → LicensesList-85279448.js} +2 -2
  13. package/dist/{PropertiesEditPage-0935b879.js → PropertiesEditPage-4edb93b7.js} +11 -11
  14. package/dist/{PropertiesList-1ad8350d.js → PropertiesList-59c05fe4.js} +7 -7
  15. package/dist/{TemplateEditPage-7a9df6ea.js → TemplateEditPage-fe1b5f44.js} +4 -4
  16. package/dist/{TemplateTextInput-128d90c4.js → TemplateTextInput-34e4356f.js} +6 -6
  17. package/dist/{TemplatesListPage-6dca9756.js → TemplatesListPage-cd3194a7.js} +32 -32
  18. package/dist/{UserGroupAssignments-1d792757.js → UserGroupAssignments-291f29f0.js} +2 -2
  19. package/dist/{UserGroupTheme-ea07247d.js → UserGroupTheme-6768666a.js} +2 -2
  20. package/dist/api.d.ts +1 -0
  21. package/dist/api.js +57 -57
  22. package/dist/{index-464f8665.js → index-738ab9ab.js} +1 -1
  23. package/dist/index.js +1275 -1281
  24. package/dist/style.css +1 -1
  25. package/package.json +5 -3
@@ -1,4 +1,4 @@
1
- import { ax as A, ah as j, aX as w, aw as e, ag as r, bP as I, di as U, dj as O, dk as _, ci as b, dl as m } from "./ContextBarContext-312508b6.js";
1
+ import { ay as A, ah as j, aY as w, ax as e, ag as r, bQ as I, dk as U, dl as O, dm as _, cj as b, dn as m } from "./ContextBarContext-a6c59c97.js";
2
2
  import { useState as f, useContext as E, useMemo as M } from "react";
3
3
  import { Modal as k, SpinnerContainer as K, Button as x } from "@deviceinsight/ng-ui-basic-components";
4
4
  import { InfoBox as F } from "@deviceinsight/ng-ui-components";
@@ -10,7 +10,7 @@ function N(o) {
10
10
  search: (s, t) => W(o(s), t)
11
11
  };
12
12
  }
13
- function P(o, s) {
13
+ function R(o, s) {
14
14
  return s ? m(
15
15
  s.filter((t) => !o.includes(t)),
16
16
  !1
@@ -45,7 +45,7 @@ function q({ onSave: o, onCancel: s, loading: t, template: n }) {
45
45
  U,
46
46
  {
47
47
  searchContext: L,
48
- searchConfig: N(P(l, C)),
48
+ searchConfig: N(R(l, C)),
49
49
  columnDefinitions: O(!0),
50
50
  uniqueItemKey: (c) => c.id,
51
51
  pageSize: 5,
@@ -1,14 +1,14 @@
1
- import { bw as n, aw as r } from "./ContextBarContext-312508b6.js";
1
+ import { bx as n, ax as r } from "./ContextBarContext-a6c59c97.js";
2
2
  import { useContext as m, useEffect as s } from "react";
3
3
  import { useLocation as i } from "react-router-dom";
4
4
  import { messageBoxDismissGroup as a } from "@deviceinsight/ng-ui-components";
5
5
  import { M as p } from "./consts-012135e5.js";
6
+ import "react-dom";
6
7
  import "@deviceinsight/ng-ui-basic-components";
7
8
  import "react-i18next";
8
9
  import "i18next";
9
10
  import "@deviceinsight/ng-ui-api-client";
10
11
  import "ux4iot-react";
11
- import "react-dom";
12
12
  function I({ children: o }) {
13
13
  const { setContextInfo: t } = m(n), { pathname: e } = i();
14
14
  return s(() => (t(), () => {
@@ -1,16 +1,16 @@
1
- import { ah as S, bf as P, aw as e, ag as r, bl as A, b7 as I, d8 as T, aQ as F, b4 as re, aj as ae, d9 as ie, cp as q, da as oe } from "./ContextBarContext-312508b6.js";
1
+ import { ah as S, bg as P, ax as e, ag as r, bm as A, b8 as I, da as T, aR as F, b5 as re, aj as ae, db as ie, cq as q, dc as oe } from "./ContextBarContext-a6c59c97.js";
2
2
  import { useEffect as D, useState as V, useRef as ce, useCallback as ue, createElement as he } from "react";
3
3
  import { useLocation as me } from "react-router-dom";
4
- import { createBundle as xe, deleteBundleFile as je, createBundleFile as fe, releaseBundleVersion as Ee, fetchBundleVersion as G, fetchBundleFiles as z, createBundleVersion as ge, deleteBundleVersion as Be, downloadBundleFile as be, fetchBundleVersions as W, deleteBundle as Ve, fetchAllBundles as De } from "@deviceinsight/ng-ui-api-client";
4
+ import { createBundle as xe, deleteBundleFile as je, createBundleFile as fe, releaseBundleVersion as Ee, fetchBundleVersion as G, fetchBundleFiles as z, createBundleVersion as ge, deleteBundleVersion as be, downloadBundleFile as Be, fetchBundleVersions as W, deleteBundle as Ve, fetchAllBundles as De } from "@deviceinsight/ng-ui-api-client";
5
5
  import { messageBoxSuccess as $, messageBoxError as H, ReactableWithClientSidePagination as Ne, Reactable as Te, ContentHeader as ve } from "@deviceinsight/ng-ui-components";
6
6
  import "react-i18next";
7
7
  import { Modal as p, SpinnerContainer as N, Button as j, Icon as v, Label as pe, AccordionItem as _e, Accordion as ye } from "@deviceinsight/ng-ui-basic-components";
8
8
  import { B as c, Q, a as Ce } from "./consts-012135e5.js";
9
- import { F as Le } from "./FileUploadInput-e1b2d5d8.js";
9
+ import { F as Le } from "./FileUploadInput-81bb787f.js";
10
10
  import { u as Se, b as Ae } from "./useCanDeleteBundleVersion-64f35949.js";
11
+ import "react-dom";
11
12
  import "i18next";
12
13
  import "ux4iot-react";
13
- import "react-dom";
14
14
  const Y = (n) => {
15
15
  n && setTimeout(() => n.focus(), 0);
16
16
  }, Z = (n, t) => {
@@ -103,10 +103,10 @@ function g({
103
103
  successMessages: s,
104
104
  initialData: d
105
105
  }) {
106
- const [l, a] = V(d), [i, u] = V(!1), [o, h] = V(void 0), m = ce(!0), b = ue(async (...B) => {
106
+ const [l, a] = V(d), [i, u] = V(!1), [o, h] = V(void 0), m = ce(!0), B = ue(async (...b) => {
107
107
  try {
108
108
  h(void 0), u(!0);
109
- const f = await n(...B);
109
+ const f = await n(...b);
110
110
  m.current && f && a(f), O(s, $, f);
111
111
  } catch (f) {
112
112
  m.current && h(f), O(t, H, f);
@@ -116,7 +116,7 @@ function g({
116
116
  }, [n, t, s]);
117
117
  return D(() => (m.current = !0, () => {
118
118
  m.current = !1;
119
- }), [n, t, s]), { run: b, data: l, loading: i, error: o };
119
+ }), [n, t, s]), { run: B, data: l, loading: i, error: o };
120
120
  }
121
121
  const K = (n) => n ? /* @__PURE__ */ e.jsx("span", { children: re(n, { showTimezone: !1 }) }) : "-", Fe = ({
122
122
  onViewDetails: n,
@@ -450,7 +450,7 @@ const J = [
450
450
  },
451
451
  Qe
452
452
  ]
453
- }), x = () => s(n.id, i), b = (E) => u(n.id, i, E.id).then(x), B = (E) => h(n.id, i, E, ie()).then(x), f = Oe(b, a);
453
+ }), x = () => s(n.id, i), B = (E) => u(n.id, i, E.id).then(x), b = (E) => h(n.id, i, E, ie()).then(x), f = Oe(B, a);
454
454
  return D(() => {
455
455
  i && s(n.id, i);
456
456
  }, [s, i, n]), /* @__PURE__ */ e.jsxs("div", { className: "bundle-version", children: [
@@ -472,7 +472,7 @@ const J = [
472
472
  onChange: (E) => {
473
473
  if (E) {
474
474
  const _ = new FormData();
475
- _.append("file", E), B(_);
475
+ _.append("file", E), b(_);
476
476
  }
477
477
  }
478
478
  },
@@ -521,11 +521,11 @@ const J = [
521
521
  }), x = g({
522
522
  requestFunction: z,
523
523
  errorMessages: tn
524
- }), { run: b } = m;
524
+ }), { run: B } = m;
525
525
  D(() => {
526
- t && b(n.id, t);
527
- }, [t, b, n]);
528
- const B = !!(x.data && x.data.length);
526
+ t && B(n.id, t);
527
+ }, [t, B, n]);
528
+ const b = !!(x.data && x.data.length);
529
529
  return /* @__PURE__ */ e.jsx(
530
530
  p,
531
531
  {
@@ -544,7 +544,7 @@ const J = [
544
544
  {
545
545
  primary: !0,
546
546
  onClick: () => h.run(n.id, t || "").then(d),
547
- disabled: !B || h.loading,
547
+ disabled: !b || h.loading,
548
548
  children: /* @__PURE__ */ e.jsx(r, { i18nKey: "bundlemanagement.publish", children: "Publish" })
549
549
  }
550
550
  ),
@@ -588,7 +588,7 @@ const J = [
588
588
  }
589
589
  ) }), un = [qe], hn = [Xe], mn = ({ bundle: n, version: t, onCancel: s, loadVersions: d }) => {
590
590
  const { run: l } = g({
591
- requestFunction: Be,
591
+ requestFunction: be,
592
592
  errorMessages: un,
593
593
  successMessages: hn
594
594
  }), a = Se(n, t), i = () => l(n.id, t.id).then(d).then(s);
@@ -621,11 +621,11 @@ const J = [
621
621
  requestFunction: z,
622
622
  errorMessages: jn
623
623
  }), { run: m, loading: x } = g({
624
- requestFunction: (B) => be(n.id, t, B.id).then((f) => {
624
+ requestFunction: (b) => Be(n.id, t, b.id).then((f) => {
625
625
  window.location.replace(f.downloadLink);
626
626
  }),
627
627
  errorMessages: [Pe]
628
- }), b = Ke(m, d);
628
+ }), B = Ke(m, d);
629
629
  return D(() => {
630
630
  t && (l(n.id, t), u(n.id, t));
631
631
  }, [u, l, t, n]), /* @__PURE__ */ e.jsx(
@@ -640,7 +640,7 @@ const J = [
640
640
  {
641
641
  isLoading: x || h,
642
642
  files: o || [],
643
- columnDefs: b
643
+ columnDefs: B
644
644
  }
645
645
  )
646
646
  ] }) }),
@@ -683,44 +683,44 @@ const J = [
683
683
  )
684
684
  ]
685
685
  }
686
- ) }), Bn = {
686
+ ) }), bn = {
687
687
  page: 0,
688
688
  size: 5,
689
689
  sort: {
690
690
  property: "createdAt",
691
691
  direction: "DESC"
692
692
  }
693
- }, bn = [We], Vn = ({ bundle: n, isOpen: t }) => {
693
+ }, Bn = [We], Vn = ({ bundle: n, isOpen: t }) => {
694
694
  const { t: s } = S(), [d, l] = V(!1), [a, i] = V(void 0), [u, o] = V(void 0), [h, m] = V(void 0), x = q();
695
695
  D(() => {
696
696
  const de = x.get(Q), w = x.get(Ce);
697
697
  w && de === n.id && i(w);
698
698
  }, [x, n]);
699
- const b = Fe(
699
+ const B = Fe(
700
700
  {
701
701
  onViewDetails: i,
702
702
  onDelete: m,
703
703
  onEdit: o
704
704
  },
705
705
  s
706
- ), [B, f] = V(Bn), {
706
+ ), [b, f] = V(bn), {
707
707
  run: E,
708
708
  data: _,
709
709
  loading: le
710
710
  } = g({
711
711
  requestFunction: W,
712
- errorMessages: bn
713
- }), M = () => E(n.id, B);
712
+ errorMessages: Bn
713
+ }), M = () => E(n.id, b);
714
714
  return D(() => {
715
- t && E(n.id, B);
716
- }, [t, B, E, n]), /* @__PURE__ */ e.jsxs("div", { "data-testid": c.BUNDLE_VERSION_VIEW, children: [
715
+ t && E(n.id, b);
716
+ }, [t, b, E, n]), /* @__PURE__ */ e.jsxs("div", { "data-testid": c.BUNDLE_VERSION_VIEW, children: [
717
717
  /* @__PURE__ */ e.jsx(
718
718
  gn,
719
719
  {
720
720
  versions: _,
721
- paginationSettings: B,
721
+ paginationSettings: b,
722
722
  setPaginationSettings: f,
723
- columnDefs: b,
723
+ columnDefs: B,
724
724
  loading: le
725
725
  }
726
726
  ),