@hortiview/shared-components 0.0.9023 → 0.0.9183

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.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
2
  import { TypoDisplay as g, TypoBody as N, Icon as I } from "@element/react-components";
3
- import { I as x } from "../../Iconify-CY9lZjFd.js";
3
+ import { I as x } from "../../Iconify-DV7QhHmp.js";
4
4
  import { AvailableCustomIcons as B } from "../../enums/AvailableCustomIcons.js";
5
5
  import { u as C } from "../../useBreakpoints-MzTZ0tCT.js";
6
6
  import { OverflowTooltip as T } from "../OverflowTooltip/OverflowTooltip.js";
@@ -3,7 +3,7 @@ import { Button as u, Group as c, Icon as D, TypoBody as t } from "@element/reac
3
3
  import { uniqueId as N } from "lodash";
4
4
  import { AvailableCustomIcons as S } from "../../enums/AvailableCustomIcons.js";
5
5
  import { u as x } from "../../useBreakpoints-MzTZ0tCT.js";
6
- import { I as M } from "../../Iconify-CY9lZjFd.js";
6
+ import { I as M } from "../../Iconify-DV7QhHmp.js";
7
7
  import { Modal as j } from "../Modal/Modal.js";
8
8
  import { s as n } from "../../deleteModal.module-Ds3MDzdl.js";
9
9
  const L = ({
@@ -4,14 +4,14 @@ import { useState as y } from "react";
4
4
  import { s as c } from "../../genericTable.module-Dk3yy2S3.js";
5
5
  import { u as A } from "../../useBreakpoints-MzTZ0tCT.js";
6
6
  import "../../alertBanner.module-BPiKN0gh.js";
7
- import { I as H } from "../../Iconify-CY9lZjFd.js";
7
+ import { I as H } from "../../Iconify-DV7QhHmp.js";
8
8
  import "../../react-tooltip.min-BzHiZW8k.js";
9
9
  import "../../overflowTooltip.module-YyRN2MGc.js";
10
10
  import "../../basicHeading.module-BYb8xvuk.js";
11
- import "../../isArray-Ca4KR8TK.js";
12
- import "../../_baseToString-BNXOi2Mf.js";
13
- import "../../_equalByTag-DJhSpgVG.js";
14
- import "../../iconify.module-C89oaw5b.js";
11
+ import "../../isArray-D_4rqWbH.js";
12
+ import "../../_baseToString-CW6fzR92.js";
13
+ import "../../_equalByTag-D07t7TSb.js";
14
+ import "../../iconify.module-BX040Mko.js";
15
15
  import { SearchBar as K } from "../SearchBar/SearchBar.js";
16
16
  import "../../listArea.module-BhO_OJ1S.js";
17
17
  import "../../verticalDivider.module-C3_GL-fH.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as X, jsxs as va } from "react/jsx-runtime";
2
2
  import { Datepicker as fa, Divider as ga, Padding as pa, Button as ba } from "@element/react-components";
3
- import { g as wa } from "../../../get-UxX31Aph.js";
3
+ import { g as wa } from "../../../get-BLA_8TrC.js";
4
4
  import { useMemo as S, useState as ya } from "react";
5
5
  import { useFormContext as Pa, Controller as $a } from "react-hook-form";
6
6
  import { s as L } from "../../../formDatePicker.module-BV3ma_7y.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, Fragment as $, jsxs as b } from "react/jsx-runtime";
2
2
  import { Select as k } from "@element/react-components";
3
- import { g as h } from "../../../get-UxX31Aph.js";
4
- import { i as z } from "../../../isArray-Ca4KR8TK.js";
3
+ import { g as h } from "../../../get-BLA_8TrC.js";
4
+ import { i as z } from "../../../isArray-D_4rqWbH.js";
5
5
  import { useMemo as S } from "react";
6
6
  import { useFormContext as B, Controller as C } from "react-hook-form";
7
7
  import { H as G } from "../../../react-tooltip.min-BzHiZW8k.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, Fragment as S, jsxs as J } from "react/jsx-runtime";
2
2
  import { Textfield as K, TypoCaption as O } from "@element/react-components";
3
- import { g as B } from "../../../get-UxX31Aph.js";
3
+ import { g as B } from "../../../get-BLA_8TrC.js";
4
4
  import { useState as A, useCallback as Q, useMemo as c, useEffect as U } from "react";
5
5
  import { useFormContext as X, Controller as j } from "react-hook-form";
6
6
  import { s as i } from "../../../formText.module-C0by6_DK.js";
@@ -4,13 +4,13 @@ import { Fragment as C } from "react";
4
4
  import { a as t } from "../../genericTable.module-Dk3yy2S3.js";
5
5
  import { u as j } from "../../useBreakpoints-MzTZ0tCT.js";
6
6
  import "../../alertBanner.module-BPiKN0gh.js";
7
- import "../../iconify.module-C89oaw5b.js";
8
- import "../../isArray-Ca4KR8TK.js";
7
+ import "../../iconify.module-BX040Mko.js";
8
+ import "../../isArray-D_4rqWbH.js";
9
9
  import "../../react-tooltip.min-BzHiZW8k.js";
10
10
  import "../../overflowTooltip.module-YyRN2MGc.js";
11
11
  import "../../basicHeading.module-BYb8xvuk.js";
12
- import "../../_baseToString-BNXOi2Mf.js";
13
- import "../../_equalByTag-DJhSpgVG.js";
12
+ import "../../_baseToString-CW6fzR92.js";
13
+ import "../../_equalByTag-D07t7TSb.js";
14
14
  import "../../searchBar.module-9gKyrZRT.js";
15
15
  import "../../listArea.module-BhO_OJ1S.js";
16
16
  import "../../verticalDivider.module-C3_GL-fH.js";
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@element/react-components";
3
- import { I as f } from "../../Iconify-CY9lZjFd.js";
3
+ import { I as f } from "../../Iconify-DV7QhHmp.js";
4
4
  import "../../enums/AvailableCustomIcons.js";
5
- import "../../iconify.module-C89oaw5b.js";
5
+ import "../../iconify.module-BX040Mko.js";
6
6
  export {
7
7
  f as Iconify
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { I as c } from "../../Iconify-CY9lZjFd.js";
2
+ import { I as c } from "../../Iconify-DV7QhHmp.js";
3
3
  import { AvailableCustomIcons as l } from "../../enums/AvailableCustomIcons.js";
4
4
  import { a as r, w as s, s as i } from "../../react.esm-Dy4VzU4L.js";
5
5
  import { d as f, t as a, g as o } from "../../vi.JYQecGiw-BbUbJcT8.js";
@@ -1,12 +1,12 @@
1
1
  import { jsx as b, jsxs as S, Fragment as tr } from "react/jsx-runtime";
2
2
  import { Elevation as ir, Divider as x, List as sr } from "@element/react-components";
3
3
  import { g as ur } from "../../_commonjsHelpers-CT_km90n.js";
4
- import { i as fr, d as lr } from "../../_baseToString-BNXOi2Mf.js";
5
- import { _ as vr, a as E, b as yr, c as Q, d as Y } from "../../get-UxX31Aph.js";
6
- import { _ as Z, a as pr, b as _r } from "../../_equalByTag-DJhSpgVG.js";
7
- import { a as c, g as gr, j as or } from "../../isArray-Ca4KR8TK.js";
8
- import { i as W, a as z, b as V, _ as $r, c as cr, d as Ar } from "../../iconify.module-C89oaw5b.js";
9
- import { _ as br, i as M } from "../../Iconify-CY9lZjFd.js";
4
+ import { i as fr, d as lr } from "../../_baseToString-CW6fzR92.js";
5
+ import { _ as vr, a as E, b as yr, c as Q, d as Y } from "../../get-BLA_8TrC.js";
6
+ import { _ as Z, a as pr, b as _r } from "../../_equalByTag-D07t7TSb.js";
7
+ import { a as c, b as or, d as $r } from "../../isArray-D_4rqWbH.js";
8
+ import { i as W, a as z, b as V, _ as gr, c as cr, d as Ar } from "../../iconify.module-BX040Mko.js";
9
+ import { _ as br, i as M } from "../../Iconify-DV7QhHmp.js";
10
10
  import { useState as dr, useMemo as F } from "react";
11
11
  import { SearchBar as hr } from "../SearchBar/SearchBar.js";
12
12
  import { getGroupedItems as mr, getListedItems as Or } from "./ListAreaService.js";
@@ -48,18 +48,18 @@ function Xr(r, n) {
48
48
  var a = typeof r;
49
49
  return n = n ?? Hr, !!n && (a == "number" || a != "symbol" && Nr.test(r)) && r > -1 && r % 1 == 0 && r < n;
50
50
  }
51
- var j = Xr, Jr = Ur, Qr = W, Yr = c, Zr = z, Wr = j, zr = V, Vr = Object.prototype, jr = Vr.hasOwnProperty;
52
- function kr(r, n) {
51
+ var k = Xr, Jr = Ur, Qr = W, Yr = c, Zr = z, Wr = k, zr = V, Vr = Object.prototype, kr = Vr.hasOwnProperty;
52
+ function jr(r, n) {
53
53
  var a = Yr(r), e = !a && Qr(r), i = !a && !e && Zr(r), t = !a && !e && !i && zr(r), s = a || e || i || t, u = s ? Jr(r.length, String) : [], f = u.length;
54
54
  for (var l in r)
55
- (n || jr.call(r, l)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
55
+ (n || kr.call(r, l)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
56
56
  (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
57
57
  i && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
58
58
  t && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
59
59
  Wr(l, f))) && u.push(l);
60
60
  return u;
61
61
  }
62
- var rn = kr, nn = rn, an = br, en = M;
62
+ var rn = jr, nn = rn, an = br, en = M;
63
63
  function tn(r) {
64
64
  return en(r) ? nn(r) : an(r);
65
65
  }
@@ -68,7 +68,7 @@ function ln(r) {
68
68
  return sn(r, fn, un);
69
69
  }
70
70
  var vn = ln, C = vn, yn = 1, pn = Object.prototype, _n = pn.hasOwnProperty;
71
- function gn(r, n, a, e, i, t) {
71
+ function on(r, n, a, e, i, t) {
72
72
  var s = a & yn, u = C(r), f = u.length, l = C(n), p = l.length;
73
73
  if (f != p && !s)
74
74
  return !1;
@@ -77,29 +77,29 @@ function gn(r, n, a, e, i, t) {
77
77
  if (!(s ? v in n : _n.call(n, v)))
78
78
  return !1;
79
79
  }
80
- var _ = t.get(r), $ = t.get(n);
81
- if (_ && $)
82
- return _ == n && $ == r;
83
- var g = !0;
80
+ var _ = t.get(r), g = t.get(n);
81
+ if (_ && g)
82
+ return _ == n && g == r;
83
+ var o = !0;
84
84
  t.set(r, n), t.set(n, r);
85
- for (var o = s; ++y < f; ) {
85
+ for (var $ = s; ++y < f; ) {
86
86
  v = u[y];
87
87
  var d = r[v], h = n[v];
88
88
  if (e)
89
89
  var B = s ? e(h, d, v, n, r, t) : e(d, h, v, r, n, t);
90
90
  if (!(B === void 0 ? d === h || i(d, h, a, e, t) : B)) {
91
- g = !1;
91
+ o = !1;
92
92
  break;
93
93
  }
94
- o || (o = v == "constructor");
94
+ $ || ($ = v == "constructor");
95
95
  }
96
- if (g && !o) {
96
+ if (o && !$) {
97
97
  var m = r.constructor, O = n.constructor;
98
- m != O && "constructor" in r && "constructor" in n && !(typeof m == "function" && m instanceof m && typeof O == "function" && O instanceof O) && (g = !1);
98
+ m != O && "constructor" in r && "constructor" in n && !(typeof m == "function" && m instanceof m && typeof O == "function" && O instanceof O) && (o = !1);
99
99
  }
100
- return t.delete(r), t.delete(n), g;
100
+ return t.delete(r), t.delete(n), o;
101
101
  }
102
- var on = gn, w = Z, $n = pr, cn = _r, An = on, I = $r, G = c, q = z, bn = V, dn = 1, D = "[object Arguments]", R = "[object Array]", P = "[object Object]", hn = Object.prototype, U = hn.hasOwnProperty;
102
+ var $n = on, w = Z, gn = pr, cn = _r, An = $n, I = gr, G = c, q = z, bn = V, dn = 1, D = "[object Arguments]", R = "[object Array]", P = "[object Object]", hn = Object.prototype, U = hn.hasOwnProperty;
103
103
  function mn(r, n, a, e, i, t) {
104
104
  var s = G(r), u = G(n), f = s ? R : I(r), l = u ? R : I(n);
105
105
  f = f == D ? P : f, l = l == D ? P : l;
@@ -110,21 +110,21 @@ function mn(r, n, a, e, i, t) {
110
110
  s = !0, p = !1;
111
111
  }
112
112
  if (v && !p)
113
- return t || (t = new w()), s || bn(r) ? $n(r, n, a, e, i, t) : cn(r, n, f, a, e, i, t);
113
+ return t || (t = new w()), s || bn(r) ? gn(r, n, a, e, i, t) : cn(r, n, f, a, e, i, t);
114
114
  if (!(a & dn)) {
115
- var _ = p && U.call(r, "__wrapped__"), $ = y && U.call(n, "__wrapped__");
116
- if (_ || $) {
117
- var g = _ ? r.value() : r, o = $ ? n.value() : n;
118
- return t || (t = new w()), i(g, o, a, e, t);
115
+ var _ = p && U.call(r, "__wrapped__"), g = y && U.call(n, "__wrapped__");
116
+ if (_ || g) {
117
+ var o = _ ? r.value() : r, $ = g ? n.value() : n;
118
+ return t || (t = new w()), i(o, $, a, e, t);
119
119
  }
120
120
  }
121
121
  return v ? (t || (t = new w()), An(r, n, a, e, i, t)) : !1;
122
122
  }
123
- var On = mn, Pn = On, H = gr;
124
- function k(r, n, a, e, i) {
125
- return r === n ? !0 : r == null || n == null || !H(r) && !H(n) ? r !== r && n !== n : Pn(r, n, a, e, k, i);
123
+ var On = mn, Pn = On, H = or;
124
+ function j(r, n, a, e, i) {
125
+ return r === n ? !0 : r == null || n == null || !H(r) && !H(n) ? r !== r && n !== n : Pn(r, n, a, e, j, i);
126
126
  }
127
- var rr = k, wn = Z, Ln = rr, En = 1, Mn = 2;
127
+ var rr = j, wn = Z, Ln = rr, En = 1, Mn = 2;
128
128
  function Tn(r, n, a, e) {
129
129
  var i = a.length, t = i, s = !e;
130
130
  if (r == null)
@@ -150,7 +150,7 @@ function Tn(r, n, a, e) {
150
150
  }
151
151
  return !0;
152
152
  }
153
- var Bn = Tn, Sn = or;
153
+ var Bn = Tn, Sn = $r;
154
154
  function xn(r) {
155
155
  return r === r && !Sn(r);
156
156
  }
@@ -179,7 +179,7 @@ var Hn = Un;
179
179
  function Nn(r, n) {
180
180
  return r != null && n in Object(r);
181
181
  }
182
- var Xn = Nn, Jn = vr, Qn = W, Yn = c, Zn = j, Wn = cr, zn = E;
182
+ var Xn = Nn, Jn = vr, Qn = W, Yn = c, Zn = k, Wn = cr, zn = E;
183
183
  function Vn(r, n, a) {
184
184
  n = Jn(n, r);
185
185
  for (var e = -1, i = n.length, t = !1; ++e < i; ) {
@@ -190,9 +190,9 @@ function Vn(r, n, a) {
190
190
  }
191
191
  return t || ++e != i ? t : (i = r == null ? 0 : r.length, !!i && Wn(i) && Zn(s, i) && (Yn(r) || Qn(r)));
192
192
  }
193
- var jn = Vn, kn = Xn, ra = jn;
193
+ var kn = Vn, jn = Xn, ra = kn;
194
194
  function na(r, n) {
195
- return r != null && ra(r, n, kn);
195
+ return r != null && ra(r, n, jn);
196
196
  }
197
197
  var aa = na, ea = rr, ta = yr, ia = aa, sa = Q, ua = nr, fa = ar, la = E, va = 1, ya = 2;
198
198
  function pa(r, n) {
@@ -202,22 +202,22 @@ function pa(r, n) {
202
202
  };
203
203
  }
204
204
  var _a = pa;
205
- function ga(r) {
205
+ function oa(r) {
206
206
  return r;
207
207
  }
208
- var er = ga;
209
- function oa(r) {
208
+ var er = oa;
209
+ function $a(r) {
210
210
  return function(n) {
211
211
  return n?.[r];
212
212
  };
213
213
  }
214
- var $a = oa, ca = Y;
214
+ var ga = $a, ca = Y;
215
215
  function Aa(r) {
216
216
  return function(n) {
217
217
  return ca(n, r);
218
218
  };
219
219
  }
220
- var ba = Aa, da = $a, ha = ba, ma = Q, Oa = E;
220
+ var ba = Aa, da = ga, ha = ba, ma = Q, Oa = E;
221
221
  function Pa(r) {
222
222
  return ma(r) ? da(Oa(r)) : ha(r);
223
223
  }
@@ -259,14 +259,14 @@ function Va(r, n) {
259
259
  e[++a] = n(i, t, s);
260
260
  }), e;
261
261
  }
262
- var ja = Va;
263
- function ka(r, n) {
262
+ var ka = Va;
263
+ function ja(r, n) {
264
264
  var a = r.length;
265
265
  for (r.sort(n); a--; )
266
266
  r[a] = r[a].value;
267
267
  return r;
268
268
  }
269
- var re = ka, N = fr;
269
+ var re = ja, N = fr;
270
270
  function ne(r, n) {
271
271
  if (r !== n) {
272
272
  var a = r !== void 0, e = r === null, i = r === r, t = N(r), s = n !== void 0, u = n === null, f = n === n, l = N(n);
@@ -290,8 +290,8 @@ function te(r, n, a) {
290
290
  }
291
291
  return r.index - n.index;
292
292
  }
293
- var ie = te, L = lr, se = Y, ue = xa, fe = ja, le = re, ve = Ar, ye = ie, pe = er, _e = c;
294
- function ge(r, n, a) {
293
+ var ie = te, L = lr, se = Y, ue = xa, fe = ka, le = re, ve = Ar, ye = ie, pe = er, _e = c;
294
+ function oe(r, n, a) {
295
295
  n.length ? n = L(n, function(t) {
296
296
  return _e(t) ? function(s) {
297
297
  return se(s, t.length === 1 ? t[0] : t);
@@ -309,9 +309,9 @@ function ge(r, n, a) {
309
309
  return ye(t, s, a);
310
310
  });
311
311
  }
312
- var oe = ge, $e = oe, X = c;
312
+ var $e = oe, ge = $e, X = c;
313
313
  function ce(r, n, a, e) {
314
- return r == null ? [] : (X(n) || (n = n == null ? [] : [n]), a = e ? void 0 : a, X(a) || (a = a == null ? [] : [a]), $e(r, n, a));
314
+ return r == null ? [] : (X(n) || (n = n == null ? [] : [n]), a = e ? void 0 : a, X(a) || (a = a == null ? [] : [a]), ge(r, n, a));
315
315
  }
316
316
  var Ae = ce;
317
317
  const J = /* @__PURE__ */ ur(Ae), xe = ({
@@ -330,9 +330,9 @@ const J = /* @__PURE__ */ ur(Ae), xe = ({
330
330
  const [y, v] = dr(""), _ = F(() => {
331
331
  if (!y)
332
332
  return s ? J(r, "title") : r;
333
- const g = r.filter((o) => o.title.toLowerCase().includes(y.toLowerCase()) || o.subTitle?.toLowerCase().includes(y.toLowerCase()) || o.overlineTitle?.toLowerCase().includes(y.toLowerCase()));
334
- return s ? J(g, "title") : g;
335
- }, [y, r, s]), $ = F(
333
+ const o = r.filter(($) => $.title.toLowerCase().includes(y.toLowerCase()) || $.subTitle?.toLowerCase().includes(y.toLowerCase()) || $.overlineTitle?.toLowerCase().includes(y.toLowerCase()));
334
+ return s ? J(o, "title") : o;
335
+ }, [y, r, s]), g = F(
336
336
  () => a ? mr(_, n, u, p) : Or(_, n, u, p),
337
337
  [_, n, u, a, p]
338
338
  );
@@ -354,7 +354,7 @@ const J = /* @__PURE__ */ ur(Ae), xe = ({
354
354
  /* @__PURE__ */ b(
355
355
  sr,
356
356
  {
357
- items: $,
357
+ items: g,
358
358
  className: `${A.list} ${A.primaryText} ${a ? "" : A.roundedBottom}`,
359
359
  style: { maxHeight: f },
360
360
  showDivider: !1
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as B } from "react/jsx-runtime";
2
2
  import { TypoButton as C, Group as b, TypoSubtitle as j, TypoBody as O, Icon as G } from "@element/react-components";
3
- import { I as L } from "../../Iconify-CY9lZjFd.js";
3
+ import { I as L } from "../../Iconify-DV7QhHmp.js";
4
4
  import { AvailableCustomIcons as S } from "../../enums/AvailableCustomIcons.js";
5
5
  import { s as n } from "../../listArea.module-BhO_OJ1S.js";
6
6
  const D = (t, a, c, l) => {
@@ -1,7 +1,7 @@
1
1
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
2
2
  import { TypoBody as e } from "@element/react-components";
3
3
  import { s as r } from "../../../bigLoadingSpinner.module-GgbFol8k.js";
4
- import { I as n } from "../../../Iconify-CY9lZjFd.js";
4
+ import { I as n } from "../../../Iconify-DV7QhHmp.js";
5
5
  const s = ({ text: o }) => /* @__PURE__ */ a("div", { className: r.bigLoadSpinnerCard, role: "progressbar", "data-testid": "loading-spinner", children: [
6
6
  /* @__PURE__ */ i(n, { icon: "hortiview", className: r.logo, "data-testid": "logo-icon" }),
7
7
  /* @__PURE__ */ i(e, { tag: "p", bold: !0, level: 1, className: r.bigLoadSpinnerCardText, children: o })
@@ -1,6 +1,6 @@
1
1
  import { g as a } from "./_commonjsHelpers-CT_km90n.js";
2
- import { a as i } from "./isArray-Ca4KR8TK.js";
3
- import { i as e, _ as o, a as f } from "./_baseToString-BNXOi2Mf.js";
2
+ import { a as i } from "./isArray-D_4rqWbH.js";
3
+ import { i as e, _ as o, a as f } from "./_baseToString-CW6fzR92.js";
4
4
  var g = i, y = e, u = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/;
5
5
  function _(r, t) {
6
6
  if (g(r))
@@ -1,7 +1,8 @@
1
1
  import "./assets/iconify.css";
2
- import { d as T, b as g, _ as O, e as m, f as P, g as l, h as V } from "./isArray-Ca4KR8TK.js";
3
- var C = T, D = g, F = C(D, "DataView"), G = F, L = T, N = g, W = L(N, "Promise"), q = W, R = T, X = g, z = R(X, "Set"), H = z, J = T, K = g, Q = J(K, "WeakMap"), Y = Q, j = G, y = O, d = q, A = H, _ = Y, U = m, i = P, w = "[object Map]", Z = "[object Object]", x = "[object Promise]", M = "[object Set]", S = "[object WeakMap]", I = "[object DataView]", ee = i(j), re = i(y), ae = i(d), te = i(A), oe = i(_), s = U;
4
- (j && s(new j(new ArrayBuffer(1))) != I || y && s(new y()) != w || d && s(d.resolve()) != x || A && s(new A()) != M || _ && s(new _()) != S) && (s = function(e) {
2
+ import { a as T, _ as P, b as V } from "./_Map-CMkK6TmZ.js";
3
+ import { e as g, _, b as l, g as h } from "./isArray-D_4rqWbH.js";
4
+ var C = T, D = g, F = C(D, "DataView"), G = F, L = T, N = g, W = L(N, "Promise"), q = W, R = T, X = g, z = R(X, "Set"), H = z, J = T, K = g, Q = J(K, "WeakMap"), Y = Q, j = G, y = P, d = q, m = H, A = Y, U = _, i = V, w = "[object Map]", Z = "[object Object]", x = "[object Promise]", M = "[object Set]", S = "[object WeakMap]", I = "[object DataView]", ee = i(j), re = i(y), ae = i(d), te = i(m), oe = i(A), s = U;
5
+ (j && s(new j(new ArrayBuffer(1))) != I || y && s(new y()) != w || d && s(d.resolve()) != x || m && s(new m()) != M || A && s(new A()) != S) && (s = function(e) {
5
6
  var a = U(e), n = a == Z ? e.constructor : void 0, o = n ? i(n) : "";
6
7
  if (o)
7
8
  switch (o) {
@@ -18,15 +19,15 @@ var C = T, D = g, F = C(D, "DataView"), G = F, L = T, N = g, W = L(N, "Promise")
18
19
  }
19
20
  return a;
20
21
  });
21
- var tr = s, se = m, ne = l, ie = "[object Arguments]";
22
+ var or = s, se = _, ne = l, ie = "[object Arguments]";
22
23
  function ce(e) {
23
24
  return ne(e) && se(e) == ie;
24
25
  }
25
- var ge = ce, k = ge, be = l, h = Object.prototype, pe = h.hasOwnProperty, ue = h.propertyIsEnumerable, ve = k(/* @__PURE__ */ function() {
26
+ var ge = ce, k = ge, be = l, O = Object.prototype, pe = O.hasOwnProperty, ue = O.propertyIsEnumerable, ve = k(/* @__PURE__ */ function() {
26
27
  return arguments;
27
28
  }()) ? k : function(e) {
28
29
  return be(e) && pe.call(e, "callee") && !ue.call(e, "callee");
29
- }, or = ve, fe = 9007199254740991;
30
+ }, sr = ve, fe = 9007199254740991;
30
31
  function Te(e) {
31
32
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= fe;
32
33
  }
@@ -40,11 +41,11 @@ v.exports;
40
41
  var n = g, o = de, t = a && !a.nodeType && a, b = t && !0 && e && !e.nodeType && e, c = b && b.exports === t, p = c ? n.Buffer : void 0, u = p ? p.isBuffer : void 0, $ = u || o;
41
42
  e.exports = $;
42
43
  })(v, v.exports);
43
- var sr = v.exports, Ae = m, _e = je, me = l, le = "[object Arguments]", $e = "[object Array]", we = "[object Boolean]", xe = "[object Date]", Me = "[object Error]", Se = "[object Function]", Ie = "[object Map]", ke = "[object Number]", Ee = "[object Object]", Be = "[object RegExp]", Ue = "[object Set]", he = "[object String]", Oe = "[object WeakMap]", Pe = "[object ArrayBuffer]", Ve = "[object DataView]", Ce = "[object Float32Array]", De = "[object Float64Array]", Fe = "[object Int8Array]", Ge = "[object Int16Array]", Le = "[object Int32Array]", Ne = "[object Uint8Array]", We = "[object Uint8ClampedArray]", qe = "[object Uint16Array]", Re = "[object Uint32Array]", r = {};
44
+ var nr = v.exports, me = _, Ae = je, _e = l, le = "[object Arguments]", $e = "[object Array]", we = "[object Boolean]", xe = "[object Date]", Me = "[object Error]", Se = "[object Function]", Ie = "[object Map]", ke = "[object Number]", Ee = "[object Object]", Be = "[object RegExp]", Ue = "[object Set]", Oe = "[object String]", Pe = "[object WeakMap]", Ve = "[object ArrayBuffer]", he = "[object DataView]", Ce = "[object Float32Array]", De = "[object Float64Array]", Fe = "[object Int8Array]", Ge = "[object Int16Array]", Le = "[object Int32Array]", Ne = "[object Uint8Array]", We = "[object Uint8ClampedArray]", qe = "[object Uint16Array]", Re = "[object Uint32Array]", r = {};
44
45
  r[Ce] = r[De] = r[Fe] = r[Ge] = r[Le] = r[Ne] = r[We] = r[qe] = r[Re] = !0;
45
- r[le] = r[$e] = r[Pe] = r[we] = r[Ve] = r[xe] = r[Me] = r[Se] = r[Ie] = r[ke] = r[Ee] = r[Be] = r[Ue] = r[he] = r[Oe] = !1;
46
+ r[le] = r[$e] = r[Ve] = r[we] = r[he] = r[xe] = r[Me] = r[Se] = r[Ie] = r[ke] = r[Ee] = r[Be] = r[Ue] = r[Oe] = r[Pe] = !1;
46
47
  function Xe(e) {
47
- return me(e) && _e(e.length) && !!r[Ae(e)];
48
+ return _e(e) && Ae(e.length) && !!r[me(e)];
48
49
  }
49
50
  var ze = Xe;
50
51
  function He(e) {
@@ -55,7 +56,7 @@ function He(e) {
55
56
  var Je = He, f = { exports: {} };
56
57
  f.exports;
57
58
  (function(e, a) {
58
- var n = V, o = a && !a.nodeType && a, t = o && !0 && e && !e.nodeType && e, b = t && t.exports === o, c = b && n.process, p = function() {
59
+ var n = h, o = a && !a.nodeType && a, t = o && !0 && e && !e.nodeType && e, b = t && t.exports === o, c = b && n.process, p = function() {
59
60
  try {
60
61
  var u = t && t.require && t.require("util").types;
61
62
  return u || c && c.binding && c.binding("util");
@@ -64,16 +65,16 @@ f.exports;
64
65
  }();
65
66
  e.exports = p;
66
67
  })(f, f.exports);
67
- var Ke = f.exports, Qe = ze, Ye = Je, E = Ke, B = E && E.isTypedArray, Ze = B ? Ye(B) : Qe, nr = Ze;
68
- const er = "_image_178sv_1", ir = {
68
+ var Ke = f.exports, Qe = ze, Ye = Je, E = Ke, B = E && E.isTypedArray, Ze = B ? Ye(B) : Qe, ir = Ze;
69
+ const er = "_image_178sv_1", cr = {
69
70
  image: er
70
71
  };
71
72
  export {
72
- tr as _,
73
- sr as a,
74
- nr as b,
73
+ or as _,
74
+ nr as a,
75
+ ir as b,
75
76
  je as c,
76
77
  Je as d,
77
- or as i,
78
- ir as s
78
+ sr as i,
79
+ cr as s
79
80
  };
@@ -0,0 +1,43 @@
1
+ import { c as o, g as c } from "./_commonjsHelpers-CT_km90n.js";
2
+ var l = typeof o == "object" && o && o.Object === Object && o, y = l, v = y, T = typeof self == "object" && self && self.Object === Object && self, O = v || T || Function("return this")(), S = O, u = S, d = u.Symbol, s = d, a = s, b = Object.prototype, p = b.hasOwnProperty, m = b.toString, r = a ? a.toStringTag : void 0;
3
+ function $(t) {
4
+ var e = p.call(t, r), f = t[r];
5
+ try {
6
+ t[r] = void 0;
7
+ var g = !0;
8
+ } catch {
9
+ }
10
+ var j = m.call(t);
11
+ return g && (e ? t[r] = f : delete t[r]), j;
12
+ }
13
+ var _ = $, w = Object.prototype, G = w.toString;
14
+ function A(t) {
15
+ return G.call(t);
16
+ }
17
+ var h = A, n = s, P = _, R = h, k = "[object Null]", x = "[object Undefined]", i = n ? n.toStringTag : void 0;
18
+ function F(t) {
19
+ return t == null ? t === void 0 ? x : k : i && i in Object(t) ? P(t) : R(t);
20
+ }
21
+ var z = F;
22
+ function L(t) {
23
+ var e = typeof t;
24
+ return t != null && (e == "object" || e == "function");
25
+ }
26
+ var C = L;
27
+ const B = /* @__PURE__ */ c(C);
28
+ function D(t) {
29
+ return t != null && typeof t == "object";
30
+ }
31
+ var H = D, E = Array.isArray, N = E;
32
+ const I = /* @__PURE__ */ c(N);
33
+ export {
34
+ z as _,
35
+ N as a,
36
+ H as b,
37
+ B as c,
38
+ C as d,
39
+ S as e,
40
+ s as f,
41
+ y as g,
42
+ I as i
43
+ };
package/dist/main.d.ts CHANGED
@@ -29,7 +29,7 @@ export { FormText } from './components/FormComponents/FormText/FormText';
29
29
  export { AvailableCustomIcons } from './enums/AvailableCustomIcons';
30
30
  export { ThemeColor } from './enums/ThemeColor';
31
31
  export { useBreakpoints } from './hooks/useBreakpoints';
32
- export { capitalizeFirstLetters } from './services/UtilService';
32
+ export { capitalizeFirstLetters, trimLeadingAndTrailingSpaces } from './services/UtilService';
33
33
  export type { ActionProps } from './components/ContextMenu/ContextMenu';
34
34
  export type { FormSelectOption } from './components/FormComponents/FormSelect/FormSelect';
35
35
  export type { FormTextProps } from './components/FormComponents/FormText/FormText';
package/dist/main.js CHANGED
@@ -3,18 +3,18 @@ import { AlertBanner as t } from "./components/AlertBanner/AlertBanner.js";
3
3
  import { BaseView as p } from "./components/BaseView/BaseView.js";
4
4
  import { BasicHeading as x } from "./components/BasicHeading/BasicHeading.js";
5
5
  import { BlockView as a } from "./components/BlockView/BlockView.js";
6
- import { ChipCard as c } from "./components/ChipCard/ChipCard.js";
6
+ import { ChipCard as n } from "./components/ChipCard/ChipCard.js";
7
7
  import { ContextMenu as s } from "./components/ContextMenu/ContextMenu.js";
8
8
  import { DeleteModal as F } from "./components/DeleteModal/DeleteModal.js";
9
- import { Disclaimer as C } from "./components/Disclaimer/Disclaimer.js";
10
- import { EmptyView as b } from "./components/EmptyView/EmptyView.js";
11
- import { Filter as u } from "./components/Filter/Filter.js";
12
- import { GenericTable as T } from "./components/GenericTable/GenericTable.js";
13
- import { HashTabView as k } from "./components/HashTabView/HashTabView.js";
14
- import { HeaderFilter as I } from "./components/HeaderFilter/HeaderFilter.js";
15
- import { I as A } from "./Iconify-CY9lZjFd.js";
16
- import { InfoGroup as L } from "./components/InfoGroup/InfoGroup.js";
17
- import { ListArea as g } from "./components/ListArea/ListArea.js";
9
+ import { Disclaimer as S } from "./components/Disclaimer/Disclaimer.js";
10
+ import { EmptyView as T } from "./components/EmptyView/EmptyView.js";
11
+ import { Filter as h } from "./components/Filter/Filter.js";
12
+ import { GenericTable as w } from "./components/GenericTable/GenericTable.js";
13
+ import { HashTabView as g } from "./components/HashTabView/HashTabView.js";
14
+ import { HeaderFilter as A } from "./components/HeaderFilter/HeaderFilter.js";
15
+ import { I } from "./Iconify-DV7QhHmp.js";
16
+ import { InfoGroup as v } from "./components/InfoGroup/InfoGroup.js";
17
+ import { ListArea as M } from "./components/ListArea/ListArea.js";
18
18
  import { LoadingSpinner as G } from "./components/LoadingSpinner/Default/LoadingSpinner.js";
19
19
  import { Modal as E } from "./components/Modal/Modal.js";
20
20
  import { OverflowTooltip as P } from "./components/OverflowTooltip/OverflowTooltip.js";
@@ -30,31 +30,31 @@ import { FormText as mr } from "./components/FormComponents/FormText/FormText.js
30
30
  import { AvailableCustomIcons as fr } from "./enums/AvailableCustomIcons.js";
31
31
  import { ThemeColor as ir } from "./enums/ThemeColor.js";
32
32
  import { u as lr } from "./useBreakpoints-MzTZ0tCT.js";
33
- import { capitalizeFirstLetters as nr } from "./services/UtilService.js";
33
+ import { capitalizeFirstLetters as cr, trimLeadingAndTrailingSpaces as sr } from "./services/UtilService.js";
34
34
  export {
35
35
  t as AlertBanner,
36
36
  fr as AvailableCustomIcons,
37
37
  p as BaseView,
38
38
  x as BasicHeading,
39
39
  a as BlockView,
40
- c as ChipCard,
40
+ n as ChipCard,
41
41
  s as ContextMenu,
42
42
  F as DeleteModal,
43
- C as Disclaimer,
44
- b as EmptyView,
45
- u as Filter,
43
+ S as Disclaimer,
44
+ T as EmptyView,
45
+ h as Filter,
46
46
  Q as FormCheckBox,
47
47
  W as FormDatePicker,
48
48
  _ as FormRadio,
49
49
  rr as FormSelect,
50
50
  er as FormSlider,
51
51
  mr as FormText,
52
- T as GenericTable,
53
- k as HashTabView,
54
- I as HeaderFilter,
55
- A as Iconify,
56
- L as InfoGroup,
57
- g as ListArea,
52
+ w as GenericTable,
53
+ g as HashTabView,
54
+ A as HeaderFilter,
55
+ I as Iconify,
56
+ v as InfoGroup,
57
+ M as ListArea,
58
58
  G as LoadingSpinner,
59
59
  E as Modal,
60
60
  P as OverflowTooltip,
@@ -63,6 +63,7 @@ export {
63
63
  q as SearchBar,
64
64
  ir as ThemeColor,
65
65
  K as VerticalDivider,
66
- nr as capitalizeFirstLetters,
66
+ cr as capitalizeFirstLetters,
67
+ sr as trimLeadingAndTrailingSpaces,
67
68
  lr as useBreakpoints
68
69
  };
@@ -4,3 +4,9 @@
4
4
  * @returns capitalized text string
5
5
  */
6
6
  export declare const capitalizeFirstLetters: (text: string) => string;
7
+ /**
8
+ * Removes leading and trailing spaces from all properties that are typeof string from an object
9
+ * @param value
10
+ * @returns
11
+ */
12
+ export declare const trimLeadingAndTrailingSpaces: <T extends Record<string, unknown>>(obj: T) => T;
@@ -1,4 +1,14 @@
1
- const r = (e) => e.split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()).join(" ");
1
+ import { _ as e, a as n, b as a, i as o, c } from "../isArray-D_4rqWbH.js";
2
+ import { g } from "../_commonjsHelpers-CT_km90n.js";
3
+ var p = e, m = n, f = a, b = "[object String]";
4
+ function j(r) {
5
+ return typeof r == "string" || !m(r) && f(r) && p(r) == b;
6
+ }
7
+ var S = j;
8
+ const A = /* @__PURE__ */ g(S), y = (r) => r.split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()).join(" "), L = (r) => Object.fromEntries(
9
+ Object.entries(r).map(([t, s]) => [t, i(s)])
10
+ ), i = (r) => o(r) ? r.map(i) : c(r) ? L(r) : A(r) ? r.trim() : r;
2
11
  export {
3
- r as capitalizeFirstLetters
12
+ y as capitalizeFirstLetters,
13
+ L as trimLeadingAndTrailingSpaces
4
14
  };