@hortiview/shared-components 0.0.9183 → 0.0.9195
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/Iconify-B9ptjDuU.js +91 -0
- package/dist/_Map-2-rfNHMr.js +59 -0
- package/dist/{_baseToString-CW6fzR92.js → _baseToString-xTcv8tEN.js} +12 -12
- package/dist/{_equalByTag-D07t7TSb.js → _equalByTag-Bi6Uk01d.js} +13 -13
- package/dist/_overArg-BC4qXKbU.js +9 -0
- package/dist/components/BasicHeading/BasicHeading.js +1 -1
- package/dist/components/DeleteModal/DeleteModal.js +1 -1
- package/dist/components/Filter/Filter.js +37 -36
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +2 -2
- package/dist/components/FormComponents/FormText/FormText.js +1 -1
- package/dist/components/GenericTable/GenericTable.js +16 -15
- package/dist/components/Iconify/Iconify.js +2 -2
- package/dist/components/Iconify/Iconify.test.js +1 -1
- package/dist/components/ListArea/ListArea.js +78 -77
- package/dist/components/ListArea/ListAreaService.js +1 -1
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +1 -1
- package/dist/{get-BLA_8TrC.js → get-DAwLfiRB.js} +2 -2
- package/dist/{iconify.module-BX040Mko.js → iconify.module-D_I3-4iU.js} +11 -11
- package/dist/isArray-thIeLpc5.js +35 -0
- package/dist/isPlainObject-BlCDf1Kc.js +18 -0
- package/dist/main.js +1 -1
- package/dist/services/UtilService.js +6 -5
- package/dist/services/services.test.js +6 -3
- package/package.json +1 -1
- package/dist/Iconify-DV7QhHmp.js +0 -96
- package/dist/_Map-CMkK6TmZ.js +0 -54
- package/dist/isArray-D_4rqWbH.js +0 -43
|
@@ -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-
|
|
8
|
-
import "../../isArray-
|
|
7
|
+
import "../../iconify.module-D_I3-4iU.js";
|
|
8
|
+
import "../../isArray-thIeLpc5.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-
|
|
13
|
-
import "../../_equalByTag-
|
|
12
|
+
import "../../_baseToString-xTcv8tEN.js";
|
|
13
|
+
import "../../_equalByTag-Bi6Uk01d.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";
|
|
@@ -32,15 +32,16 @@ import "react-hook-form";
|
|
|
32
32
|
import "../../formDatePicker.module-BV3ma_7y.js";
|
|
33
33
|
import "../../formSelect.module-DMHh1bp8.js";
|
|
34
34
|
import "../../formText.module-C0by6_DK.js";
|
|
35
|
+
import "../../isPlainObject-BlCDf1Kc.js";
|
|
35
36
|
import { useGenerateColumns as x, useGenerateTableData as _ } from "./GenericTableService.js";
|
|
36
37
|
import { GenericCardList as A } from "./Mobile/GenericCardList.js";
|
|
37
|
-
const
|
|
38
|
-
data:
|
|
39
|
-
hiddenColumns:
|
|
38
|
+
const hr = ({
|
|
39
|
+
data: p = [],
|
|
40
|
+
hiddenColumns: l = [],
|
|
40
41
|
order: f = [],
|
|
41
42
|
cellTemplates: g = void 0,
|
|
42
43
|
tableActions: i = [],
|
|
43
|
-
noContentText:
|
|
44
|
+
noContentText: n = "No data available",
|
|
44
45
|
headerTranslation: h = (a) => a,
|
|
45
46
|
pagination: y = !1,
|
|
46
47
|
getRowActions: s = void 0,
|
|
@@ -50,7 +51,7 @@ const gr = ({
|
|
|
50
51
|
cardSubTitleColumn: T
|
|
51
52
|
}) => {
|
|
52
53
|
const { isDesktop: a } = j(), o = x({
|
|
53
|
-
data:
|
|
54
|
+
data: p,
|
|
54
55
|
order: f,
|
|
55
56
|
cellTemplates: g,
|
|
56
57
|
headerTranslation: h,
|
|
@@ -59,7 +60,7 @@ const gr = ({
|
|
|
59
60
|
cardTitleColumn: v,
|
|
60
61
|
cardSubTitleColumn: T
|
|
61
62
|
}), d = _({
|
|
62
|
-
data:
|
|
63
|
+
data: p,
|
|
63
64
|
getRowActions: s
|
|
64
65
|
});
|
|
65
66
|
return a ? /* @__PURE__ */ r(D, { elevation: 1, className: t.elevation, "data-testid": "generic-table-elevation", children: /* @__PURE__ */ r(
|
|
@@ -70,7 +71,7 @@ const gr = ({
|
|
|
70
71
|
fullWidth: !0,
|
|
71
72
|
alwaysUseDivTags: !0,
|
|
72
73
|
layout: "standard",
|
|
73
|
-
hiddenColumns:
|
|
74
|
+
hiddenColumns: l,
|
|
74
75
|
data: d,
|
|
75
76
|
columns: o,
|
|
76
77
|
leadingContent: e && i?.length === 0 ? /* @__PURE__ */ r(u, { title: e }) : i?.length > 0 && /* @__PURE__ */ r(
|
|
@@ -102,7 +103,7 @@ const gr = ({
|
|
|
102
103
|
primaryAlign: "center",
|
|
103
104
|
secondaryAlign: "center",
|
|
104
105
|
className: t.emptyTable,
|
|
105
|
-
children: /* @__PURE__ */ r(k, { children:
|
|
106
|
+
children: /* @__PURE__ */ r(k, { children: n })
|
|
106
107
|
}
|
|
107
108
|
)
|
|
108
109
|
}
|
|
@@ -111,11 +112,11 @@ const gr = ({
|
|
|
111
112
|
{
|
|
112
113
|
data: d,
|
|
113
114
|
columns: o,
|
|
114
|
-
hiddenColumns:
|
|
115
|
-
noContentText:
|
|
115
|
+
hiddenColumns: l,
|
|
116
|
+
noContentText: n
|
|
116
117
|
}
|
|
117
118
|
) });
|
|
118
119
|
};
|
|
119
120
|
export {
|
|
120
|
-
|
|
121
|
+
hr as GenericTable
|
|
121
122
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@element/react-components";
|
|
3
|
-
import { I as f } from "../../Iconify-
|
|
3
|
+
import { I as f } from "../../Iconify-B9ptjDuU.js";
|
|
4
4
|
import "../../enums/AvailableCustomIcons.js";
|
|
5
|
-
import "../../iconify.module-
|
|
5
|
+
import "../../iconify.module-D_I3-4iU.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-
|
|
2
|
+
import { I as c } from "../../Iconify-B9ptjDuU.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,13 @@
|
|
|
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
|
-
import { g as
|
|
4
|
-
import { i as
|
|
5
|
-
import { _ as vr, a as E, b as
|
|
6
|
-
import { _ as Z, a as
|
|
7
|
-
import { a as c, b as or
|
|
8
|
-
import {
|
|
9
|
-
import { _ as
|
|
3
|
+
import { g as fr } from "../../_commonjsHelpers-CT_km90n.js";
|
|
4
|
+
import { i as ur, d as lr } from "../../_baseToString-xTcv8tEN.js";
|
|
5
|
+
import { _ as vr, a as E, b as pr, c as Q, d as Y } from "../../get-DAwLfiRB.js";
|
|
6
|
+
import { _ as Z, a as yr, b as _r } from "../../_equalByTag-Bi6Uk01d.js";
|
|
7
|
+
import { a as c, b as or } from "../../isArray-thIeLpc5.js";
|
|
8
|
+
import { a as W, b as z, c as V, _ as $r, i as gr, d as cr } from "../../iconify.module-D_I3-4iU.js";
|
|
9
|
+
import { _ as Ar, i as M } from "../../Iconify-B9ptjDuU.js";
|
|
10
|
+
import { c as br } from "../../_Map-2-rfNHMr.js";
|
|
10
11
|
import { useState as dr, useMemo as F } from "react";
|
|
11
12
|
import { SearchBar as hr } from "../SearchBar/SearchBar.js";
|
|
12
13
|
import { getGroupedItems as mr, getListedItems as Or } from "./ListAreaService.js";
|
|
@@ -50,30 +51,30 @@ function Xr(r, n) {
|
|
|
50
51
|
}
|
|
51
52
|
var k = Xr, Jr = Ur, Qr = W, Yr = c, Zr = z, Wr = k, zr = V, Vr = Object.prototype, kr = Vr.hasOwnProperty;
|
|
52
53
|
function jr(r, n) {
|
|
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,
|
|
54
|
+
var a = Yr(r), e = !a && Qr(r), i = !a && !e && Zr(r), t = !a && !e && !i && zr(r), s = a || e || i || t, f = s ? Jr(r.length, String) : [], u = f.length;
|
|
54
55
|
for (var l in r)
|
|
55
56
|
(n || kr.call(r, l)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
56
57
|
(l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
57
58
|
i && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
58
59
|
t && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
|
|
59
|
-
Wr(l,
|
|
60
|
-
return
|
|
60
|
+
Wr(l, u))) && f.push(l);
|
|
61
|
+
return f;
|
|
61
62
|
}
|
|
62
|
-
var rn = jr, nn = rn, an =
|
|
63
|
+
var rn = jr, nn = rn, an = Ar, en = M;
|
|
63
64
|
function tn(r) {
|
|
64
65
|
return en(r) ? nn(r) : an(r);
|
|
65
66
|
}
|
|
66
|
-
var T = tn, sn = Tr,
|
|
67
|
+
var T = tn, sn = Tr, fn = Dr, un = T;
|
|
67
68
|
function ln(r) {
|
|
68
|
-
return sn(r,
|
|
69
|
+
return sn(r, un, fn);
|
|
69
70
|
}
|
|
70
|
-
var vn = ln, C = vn,
|
|
71
|
+
var vn = ln, C = vn, pn = 1, yn = Object.prototype, _n = yn.hasOwnProperty;
|
|
71
72
|
function on(r, n, a, e, i, t) {
|
|
72
|
-
var s = a &
|
|
73
|
-
if (
|
|
73
|
+
var s = a & pn, f = C(r), u = f.length, l = C(n), y = l.length;
|
|
74
|
+
if (u != y && !s)
|
|
74
75
|
return !1;
|
|
75
|
-
for (var
|
|
76
|
-
var v =
|
|
76
|
+
for (var p = u; p--; ) {
|
|
77
|
+
var v = f[p];
|
|
77
78
|
if (!(s ? v in n : _n.call(n, v)))
|
|
78
79
|
return !1;
|
|
79
80
|
}
|
|
@@ -82,8 +83,8 @@ function on(r, n, a, e, i, t) {
|
|
|
82
83
|
return _ == n && g == r;
|
|
83
84
|
var o = !0;
|
|
84
85
|
t.set(r, n), t.set(n, r);
|
|
85
|
-
for (var $ = s; ++
|
|
86
|
-
v =
|
|
86
|
+
for (var $ = s; ++p < u; ) {
|
|
87
|
+
v = f[p];
|
|
87
88
|
var d = r[v], h = n[v];
|
|
88
89
|
if (e)
|
|
89
90
|
var B = s ? e(h, d, v, n, r, t) : e(d, h, v, r, n, t);
|
|
@@ -99,20 +100,20 @@ function on(r, n, a, e, i, t) {
|
|
|
99
100
|
}
|
|
100
101
|
return t.delete(r), t.delete(n), o;
|
|
101
102
|
}
|
|
102
|
-
var $n = on, w = Z, gn =
|
|
103
|
+
var $n = on, w = Z, gn = yr, cn = _r, An = $n, 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;
|
|
103
104
|
function mn(r, n, a, e, i, t) {
|
|
104
|
-
var s = G(r),
|
|
105
|
-
|
|
106
|
-
var
|
|
105
|
+
var s = G(r), f = G(n), u = s ? R : I(r), l = f ? R : I(n);
|
|
106
|
+
u = u == D ? P : u, l = l == D ? P : l;
|
|
107
|
+
var y = u == P, p = l == P, v = u == l;
|
|
107
108
|
if (v && q(r)) {
|
|
108
109
|
if (!q(n))
|
|
109
110
|
return !1;
|
|
110
|
-
s = !0,
|
|
111
|
+
s = !0, y = !1;
|
|
111
112
|
}
|
|
112
|
-
if (v && !
|
|
113
|
-
return t || (t = new w()), s || bn(r) ? gn(r, n, a, e, i, t) : cn(r, n,
|
|
113
|
+
if (v && !y)
|
|
114
|
+
return t || (t = new w()), s || bn(r) ? gn(r, n, a, e, i, t) : cn(r, n, u, a, e, i, t);
|
|
114
115
|
if (!(a & dn)) {
|
|
115
|
-
var _ =
|
|
116
|
+
var _ = y && U.call(r, "__wrapped__"), g = p && U.call(n, "__wrapped__");
|
|
116
117
|
if (_ || g) {
|
|
117
118
|
var o = _ ? r.value() : r, $ = g ? n.value() : n;
|
|
118
119
|
return t || (t = new w()), i(o, $, a, e, t);
|
|
@@ -130,27 +131,27 @@ function Tn(r, n, a, e) {
|
|
|
130
131
|
if (r == null)
|
|
131
132
|
return !t;
|
|
132
133
|
for (r = Object(r); i--; ) {
|
|
133
|
-
var
|
|
134
|
-
if (s &&
|
|
134
|
+
var f = a[i];
|
|
135
|
+
if (s && f[2] ? f[1] !== r[f[0]] : !(f[0] in r))
|
|
135
136
|
return !1;
|
|
136
137
|
}
|
|
137
138
|
for (; ++i < t; ) {
|
|
138
|
-
|
|
139
|
-
var
|
|
140
|
-
if (s &&
|
|
141
|
-
if (l === void 0 && !(
|
|
139
|
+
f = a[i];
|
|
140
|
+
var u = f[0], l = r[u], y = f[1];
|
|
141
|
+
if (s && f[2]) {
|
|
142
|
+
if (l === void 0 && !(u in r))
|
|
142
143
|
return !1;
|
|
143
144
|
} else {
|
|
144
|
-
var
|
|
145
|
+
var p = new wn();
|
|
145
146
|
if (e)
|
|
146
|
-
var v = e(l,
|
|
147
|
-
if (!(v === void 0 ? Ln(
|
|
147
|
+
var v = e(l, y, u, r, n, p);
|
|
148
|
+
if (!(v === void 0 ? Ln(y, l, En | Mn, e, p) : v))
|
|
148
149
|
return !1;
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
return !0;
|
|
152
153
|
}
|
|
153
|
-
var Bn = Tn, Sn =
|
|
154
|
+
var Bn = Tn, Sn = br;
|
|
154
155
|
function xn(r) {
|
|
155
156
|
return r === r && !Sn(r);
|
|
156
157
|
}
|
|
@@ -179,7 +180,7 @@ var Hn = Un;
|
|
|
179
180
|
function Nn(r, n) {
|
|
180
181
|
return r != null && n in Object(r);
|
|
181
182
|
}
|
|
182
|
-
var Xn = Nn, Jn = vr, Qn = W, Yn = c, Zn = k, Wn =
|
|
183
|
+
var Xn = Nn, Jn = vr, Qn = W, Yn = c, Zn = k, Wn = gr, zn = E;
|
|
183
184
|
function Vn(r, n, a) {
|
|
184
185
|
n = Jn(n, r);
|
|
185
186
|
for (var e = -1, i = n.length, t = !1; ++e < i; ) {
|
|
@@ -194,14 +195,14 @@ var kn = Vn, jn = Xn, ra = kn;
|
|
|
194
195
|
function na(r, n) {
|
|
195
196
|
return r != null && ra(r, n, jn);
|
|
196
197
|
}
|
|
197
|
-
var aa = na, ea = rr, ta =
|
|
198
|
-
function
|
|
199
|
-
return sa(r) &&
|
|
198
|
+
var aa = na, ea = rr, ta = pr, ia = aa, sa = Q, fa = nr, ua = ar, la = E, va = 1, pa = 2;
|
|
199
|
+
function ya(r, n) {
|
|
200
|
+
return sa(r) && fa(n) ? ua(la(r), n) : function(a) {
|
|
200
201
|
var e = ta(a, r);
|
|
201
|
-
return e === void 0 && e === n ? ia(a, r) : ea(n, e, va |
|
|
202
|
+
return e === void 0 && e === n ? ia(a, r) : ea(n, e, va | pa);
|
|
202
203
|
};
|
|
203
204
|
}
|
|
204
|
-
var _a =
|
|
205
|
+
var _a = ya;
|
|
205
206
|
function oa(r) {
|
|
206
207
|
return r;
|
|
207
208
|
}
|
|
@@ -228,9 +229,9 @@ function Sa(r) {
|
|
|
228
229
|
var xa = Sa;
|
|
229
230
|
function Fa(r) {
|
|
230
231
|
return function(n, a, e) {
|
|
231
|
-
for (var i = -1, t = Object(n), s = e(n),
|
|
232
|
-
var
|
|
233
|
-
if (a(t[
|
|
232
|
+
for (var i = -1, t = Object(n), s = e(n), f = s.length; f--; ) {
|
|
233
|
+
var u = s[r ? f : ++i];
|
|
234
|
+
if (a(t[u], u, t) === !1)
|
|
234
235
|
break;
|
|
235
236
|
}
|
|
236
237
|
return n;
|
|
@@ -266,47 +267,47 @@ function ja(r, n) {
|
|
|
266
267
|
r[a] = r[a].value;
|
|
267
268
|
return r;
|
|
268
269
|
}
|
|
269
|
-
var re = ja, N =
|
|
270
|
+
var re = ja, N = ur;
|
|
270
271
|
function ne(r, n) {
|
|
271
272
|
if (r !== n) {
|
|
272
|
-
var a = r !== void 0, e = r === null, i = r === r, t = N(r), s = n !== void 0,
|
|
273
|
-
if (!
|
|
273
|
+
var a = r !== void 0, e = r === null, i = r === r, t = N(r), s = n !== void 0, f = n === null, u = n === n, l = N(n);
|
|
274
|
+
if (!f && !l && !t && r > n || t && s && u && !f && !l || e && s && u || !a && u || !i)
|
|
274
275
|
return 1;
|
|
275
|
-
if (!e && !t && !l && r < n || l && a && i && !e && !t ||
|
|
276
|
+
if (!e && !t && !l && r < n || l && a && i && !e && !t || f && a && i || !s && i || !u)
|
|
276
277
|
return -1;
|
|
277
278
|
}
|
|
278
279
|
return 0;
|
|
279
280
|
}
|
|
280
281
|
var ae = ne, ee = ae;
|
|
281
282
|
function te(r, n, a) {
|
|
282
|
-
for (var e = -1, i = r.criteria, t = n.criteria, s = i.length,
|
|
283
|
-
var
|
|
284
|
-
if (
|
|
285
|
-
if (e >=
|
|
286
|
-
return
|
|
283
|
+
for (var e = -1, i = r.criteria, t = n.criteria, s = i.length, f = a.length; ++e < s; ) {
|
|
284
|
+
var u = ee(i[e], t[e]);
|
|
285
|
+
if (u) {
|
|
286
|
+
if (e >= f)
|
|
287
|
+
return u;
|
|
287
288
|
var l = a[e];
|
|
288
|
-
return
|
|
289
|
+
return u * (l == "desc" ? -1 : 1);
|
|
289
290
|
}
|
|
290
291
|
}
|
|
291
292
|
return r.index - n.index;
|
|
292
293
|
}
|
|
293
|
-
var ie = te, L = lr, se = Y,
|
|
294
|
+
var ie = te, L = lr, se = Y, fe = xa, ue = ka, le = re, ve = cr, pe = ie, ye = er, _e = c;
|
|
294
295
|
function oe(r, n, a) {
|
|
295
296
|
n.length ? n = L(n, function(t) {
|
|
296
297
|
return _e(t) ? function(s) {
|
|
297
298
|
return se(s, t.length === 1 ? t[0] : t);
|
|
298
299
|
} : t;
|
|
299
|
-
}) : n = [
|
|
300
|
+
}) : n = [ye];
|
|
300
301
|
var e = -1;
|
|
301
|
-
n = L(n, ve(
|
|
302
|
-
var i =
|
|
303
|
-
var
|
|
302
|
+
n = L(n, ve(fe));
|
|
303
|
+
var i = ue(r, function(t, s, f) {
|
|
304
|
+
var u = L(n, function(l) {
|
|
304
305
|
return l(t);
|
|
305
306
|
});
|
|
306
|
-
return { criteria:
|
|
307
|
+
return { criteria: u, index: ++e, value: t };
|
|
307
308
|
});
|
|
308
309
|
return le(i, function(t, s) {
|
|
309
|
-
return
|
|
310
|
+
return pe(t, s, a);
|
|
310
311
|
});
|
|
311
312
|
}
|
|
312
313
|
var $e = oe, ge = $e, X = c;
|
|
@@ -314,7 +315,7 @@ function ce(r, n, a, e) {
|
|
|
314
315
|
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
316
|
}
|
|
316
317
|
var Ae = ce;
|
|
317
|
-
const J = /* @__PURE__ */
|
|
318
|
+
const J = /* @__PURE__ */ fr(Ae), Fe = ({
|
|
318
319
|
elements: r,
|
|
319
320
|
pathname: n,
|
|
320
321
|
isGrouped: a = !1,
|
|
@@ -322,19 +323,19 @@ const J = /* @__PURE__ */ ur(Ae), xe = ({
|
|
|
322
323
|
searchPlaceholder: i = "",
|
|
323
324
|
isIntegrated: t = !1,
|
|
324
325
|
isSorted: s = !0,
|
|
325
|
-
itemClassName:
|
|
326
|
-
maxHeight:
|
|
326
|
+
itemClassName: f = "",
|
|
327
|
+
maxHeight: u = "100%",
|
|
327
328
|
noElementsView: l,
|
|
328
|
-
routerLinkElement:
|
|
329
|
+
routerLinkElement: y
|
|
329
330
|
}) => {
|
|
330
|
-
const [
|
|
331
|
-
if (!
|
|
331
|
+
const [p, v] = dr(""), _ = F(() => {
|
|
332
|
+
if (!p)
|
|
332
333
|
return s ? J(r, "title") : r;
|
|
333
|
-
const o = r.filter(($) => $.title.toLowerCase().includes(
|
|
334
|
+
const o = r.filter(($) => $.title.toLowerCase().includes(p.toLowerCase()) || $.subTitle?.toLowerCase().includes(p.toLowerCase()) || $.overlineTitle?.toLowerCase().includes(p.toLowerCase()));
|
|
334
335
|
return s ? J(o, "title") : o;
|
|
335
|
-
}, [
|
|
336
|
-
() => a ? mr(_, n,
|
|
337
|
-
[_, n,
|
|
336
|
+
}, [p, r, s]), g = F(
|
|
337
|
+
() => a ? mr(_, n, f, y) : Or(_, n, f, y),
|
|
338
|
+
[_, n, f, a, y]
|
|
338
339
|
);
|
|
339
340
|
return /* @__PURE__ */ b(ir, { elevation: t ? 0 : 1, className: `${A.mainElevation}`, children: /* @__PURE__ */ S("div", { className: A.fullWidth, children: [
|
|
340
341
|
e && r.length > 0 && /* @__PURE__ */ S(tr, { children: [
|
|
@@ -342,7 +343,7 @@ const J = /* @__PURE__ */ ur(Ae), xe = ({
|
|
|
342
343
|
/* @__PURE__ */ b(
|
|
343
344
|
hr,
|
|
344
345
|
{
|
|
345
|
-
searchTerm:
|
|
346
|
+
searchTerm: p,
|
|
346
347
|
setSearchTerm: v,
|
|
347
348
|
className: A.searchbar,
|
|
348
349
|
placeholder: i
|
|
@@ -356,12 +357,12 @@ const J = /* @__PURE__ */ ur(Ae), xe = ({
|
|
|
356
357
|
{
|
|
357
358
|
items: g,
|
|
358
359
|
className: `${A.list} ${A.primaryText} ${a ? "" : A.roundedBottom}`,
|
|
359
|
-
style: { maxHeight:
|
|
360
|
+
style: { maxHeight: u },
|
|
360
361
|
showDivider: !1
|
|
361
362
|
}
|
|
362
363
|
)
|
|
363
364
|
] }) });
|
|
364
365
|
};
|
|
365
366
|
export {
|
|
366
|
-
|
|
367
|
+
Fe as ListArea
|
|
367
368
|
};
|
|
@@ -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-
|
|
3
|
+
import { I as L } from "../../Iconify-B9ptjDuU.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-
|
|
4
|
+
import { I as n } from "../../../Iconify-B9ptjDuU.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-
|
|
3
|
-
import { i as e, _ as o, a as f } from "./_baseToString-
|
|
2
|
+
import { a as i } from "./isArray-thIeLpc5.js";
|
|
3
|
+
import { i as e, _ as o, a as f } from "./_baseToString-xTcv8tEN.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,7 @@
|
|
|
1
1
|
import "./assets/iconify.css";
|
|
2
|
-
import { a as T, _ as P, b as V } from "./_Map-
|
|
3
|
-
import {
|
|
4
|
-
var C = T, D =
|
|
2
|
+
import { a as T, _ as P, b as V } from "./_Map-2-rfNHMr.js";
|
|
3
|
+
import { c as b, _, b as l, e as h } from "./isArray-thIeLpc5.js";
|
|
4
|
+
var C = T, D = b, F = C(D, "DataView"), G = F, L = T, N = b, W = L(N, "Promise"), q = W, R = T, X = b, z = R(X, "Set"), H = z, J = T, K = b, 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
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) {
|
|
6
6
|
var a = U(e), n = a == Z ? e.constructor : void 0, o = n ? i(n) : "";
|
|
7
7
|
if (o)
|
|
@@ -23,10 +23,10 @@ var or = s, se = _, ne = l, ie = "[object Arguments]";
|
|
|
23
23
|
function ce(e) {
|
|
24
24
|
return ne(e) && se(e) == ie;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var be = ce, k = be, ge = l, O = Object.prototype, pe = O.hasOwnProperty, ue = O.propertyIsEnumerable, ve = k(/* @__PURE__ */ function() {
|
|
27
27
|
return arguments;
|
|
28
28
|
}()) ? k : function(e) {
|
|
29
|
-
return
|
|
29
|
+
return ge(e) && pe.call(e, "callee") && !ue.call(e, "callee");
|
|
30
30
|
}, sr = ve, fe = 9007199254740991;
|
|
31
31
|
function Te(e) {
|
|
32
32
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= fe;
|
|
@@ -38,7 +38,7 @@ function ye() {
|
|
|
38
38
|
var de = ye;
|
|
39
39
|
v.exports;
|
|
40
40
|
(function(e, a) {
|
|
41
|
-
var n =
|
|
41
|
+
var n = b, o = de, t = a && !a.nodeType && a, g = t && !0 && e && !e.nodeType && e, c = g && g.exports === t, p = c ? n.Buffer : void 0, u = p ? p.isBuffer : void 0, $ = u || o;
|
|
42
42
|
e.exports = $;
|
|
43
43
|
})(v, v.exports);
|
|
44
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 = {};
|
|
@@ -56,7 +56,7 @@ function He(e) {
|
|
|
56
56
|
var Je = He, f = { exports: {} };
|
|
57
57
|
f.exports;
|
|
58
58
|
(function(e, a) {
|
|
59
|
-
var n = h, o = a && !a.nodeType && a, t = o && !0 && e && !e.nodeType && e,
|
|
59
|
+
var n = h, o = a && !a.nodeType && a, t = o && !0 && e && !e.nodeType && e, g = t && t.exports === o, c = g && n.process, p = function() {
|
|
60
60
|
try {
|
|
61
61
|
var u = t && t.require && t.require("util").types;
|
|
62
62
|
return u || c && c.binding && c.binding("util");
|
|
@@ -71,10 +71,10 @@ const er = "_image_178sv_1", cr = {
|
|
|
71
71
|
};
|
|
72
72
|
export {
|
|
73
73
|
or as _,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
sr as a,
|
|
75
|
+
nr as b,
|
|
76
|
+
ir as c,
|
|
77
77
|
Je as d,
|
|
78
|
-
|
|
78
|
+
je as i,
|
|
79
79
|
cr as s
|
|
80
80
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { c as e, g as l } from "./_commonjsHelpers-CT_km90n.js";
|
|
2
|
+
var j = typeof e == "object" && e && e.Object === Object && e, v = j, y = v, T = typeof self == "object" && self && self.Object === Object && self, S = y || T || Function("return this")(), d = S, O = d, u = O.Symbol, i = u, a = i, c = Object.prototype, m = c.hasOwnProperty, p = c.toString, t = a ? a.toStringTag : void 0;
|
|
3
|
+
function $(r) {
|
|
4
|
+
var b = m.call(r, t), s = r[t];
|
|
5
|
+
try {
|
|
6
|
+
r[t] = void 0;
|
|
7
|
+
var g = !0;
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
var f = p.call(r);
|
|
11
|
+
return g && (b ? r[t] = s : delete r[t]), f;
|
|
12
|
+
}
|
|
13
|
+
var _ = $, w = Object.prototype, G = w.toString;
|
|
14
|
+
function A(r) {
|
|
15
|
+
return G.call(r);
|
|
16
|
+
}
|
|
17
|
+
var h = A, o = i, P = _, R = h, k = "[object Null]", x = "[object Undefined]", n = o ? o.toStringTag : void 0;
|
|
18
|
+
function F(r) {
|
|
19
|
+
return r == null ? r === void 0 ? x : k : n && n in Object(r) ? P(r) : R(r);
|
|
20
|
+
}
|
|
21
|
+
var U = F;
|
|
22
|
+
function L(r) {
|
|
23
|
+
return r != null && typeof r == "object";
|
|
24
|
+
}
|
|
25
|
+
var q = L, C = Array.isArray, D = C;
|
|
26
|
+
const z = /* @__PURE__ */ l(D);
|
|
27
|
+
export {
|
|
28
|
+
U as _,
|
|
29
|
+
D as a,
|
|
30
|
+
q as b,
|
|
31
|
+
d as c,
|
|
32
|
+
i as d,
|
|
33
|
+
v as e,
|
|
34
|
+
z as i
|
|
35
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { g as a } from "./_commonjsHelpers-CT_km90n.js";
|
|
2
|
+
import { _ as c, b as n } from "./isArray-thIeLpc5.js";
|
|
3
|
+
import { _ as i } from "./_overArg-BC4qXKbU.js";
|
|
4
|
+
var s = i, b = s(Object.getPrototypeOf, Object), p = b, j = c, f = p, g = n, O = "[object Object]", v = Function.prototype, l = Object.prototype, e = v.toString, u = l.hasOwnProperty, P = e.call(Object);
|
|
5
|
+
function y(r) {
|
|
6
|
+
if (!g(r) || j(r) != O)
|
|
7
|
+
return !1;
|
|
8
|
+
var o = f(r);
|
|
9
|
+
if (o === null)
|
|
10
|
+
return !0;
|
|
11
|
+
var t = u.call(o, "constructor") && o.constructor;
|
|
12
|
+
return typeof t == "function" && t instanceof t && e.call(t) == P;
|
|
13
|
+
}
|
|
14
|
+
var m = y;
|
|
15
|
+
const S = /* @__PURE__ */ a(m);
|
|
16
|
+
export {
|
|
17
|
+
S as i
|
|
18
|
+
};
|
package/dist/main.js
CHANGED
|
@@ -12,7 +12,7 @@ import { Filter as h } from "./components/Filter/Filter.js";
|
|
|
12
12
|
import { GenericTable as w } from "./components/GenericTable/GenericTable.js";
|
|
13
13
|
import { HashTabView as g } from "./components/HashTabView/HashTabView.js";
|
|
14
14
|
import { HeaderFilter as A } from "./components/HeaderFilter/HeaderFilter.js";
|
|
15
|
-
import { I } from "./Iconify-
|
|
15
|
+
import { I } from "./Iconify-B9ptjDuU.js";
|
|
16
16
|
import { InfoGroup as v } from "./components/InfoGroup/InfoGroup.js";
|
|
17
17
|
import { ListArea as M } from "./components/ListArea/ListArea.js";
|
|
18
18
|
import { LoadingSpinner as G } from "./components/LoadingSpinner/Default/LoadingSpinner.js";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { _ as e, a as n, b as a, i as o
|
|
1
|
+
import { _ as e, a as n, b as a, i as o } from "../isArray-thIeLpc5.js";
|
|
2
|
+
import { i as c } from "../isPlainObject-BlCDf1Kc.js";
|
|
2
3
|
import { g } from "../_commonjsHelpers-CT_km90n.js";
|
|
3
|
-
var
|
|
4
|
+
var m = e, p = n, f = a, b = "[object String]";
|
|
4
5
|
function j(r) {
|
|
5
|
-
return typeof r == "string" || !
|
|
6
|
+
return typeof r == "string" || !p(r) && f(r) && m(r) == b;
|
|
6
7
|
}
|
|
7
8
|
var S = j;
|
|
8
|
-
const A = /* @__PURE__ */ g(S),
|
|
9
|
+
const A = /* @__PURE__ */ g(S), T = (r) => r.split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()).join(" "), L = (r) => Object.fromEntries(
|
|
9
10
|
Object.entries(r).map(([t, s]) => [t, i(s)])
|
|
10
11
|
), i = (r) => o(r) ? r.map(i) : c(r) ? L(r) : A(r) ? r.trim() : r;
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
T as capitalizeFirstLetters,
|
|
13
14
|
L as trimLeadingAndTrailingSpaces
|
|
14
15
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { getBlockNumberByDto as r } from "./BlockService.js";
|
|
2
|
-
import { capitalizeFirstLetters as
|
|
2
|
+
import { capitalizeFirstLetters as a, trimLeadingAndTrailingSpaces as o } from "./UtilService.js";
|
|
3
3
|
import { d as n, t as e, g as s } from "../vi.JYQecGiw-BbUbJcT8.js";
|
|
4
4
|
n("Services Test", () => {
|
|
5
5
|
n("capitalizeFirstLetters", () => {
|
|
6
6
|
e("should capitalize first letters of a lower case string", () => {
|
|
7
|
-
const t =
|
|
7
|
+
const t = a("farm location");
|
|
8
8
|
s(t).toBe("Farm Location");
|
|
9
9
|
}), e("should turn other letters of an all caps string into lower case", () => {
|
|
10
|
-
const t =
|
|
10
|
+
const t = a("FARM LOCATION");
|
|
11
11
|
s(t).toBe("Farm Location");
|
|
12
12
|
});
|
|
13
13
|
}), n("getBlockNumberByDto", () => {
|
|
@@ -48,6 +48,9 @@ n("Services Test", () => {
|
|
|
48
48
|
test1: "test-1",
|
|
49
49
|
test2: { nestedObjectKey: ["test-2", "test-3", 2345] }
|
|
50
50
|
});
|
|
51
|
+
}), e("should not trim date instances", () => {
|
|
52
|
+
const t = { date: /* @__PURE__ */ new Date() };
|
|
53
|
+
s(o(t)).toEqual(t);
|
|
51
54
|
});
|
|
52
55
|
});
|
|
53
56
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
3
|
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9195",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
|
|
7
7
|
"author": "Falk Menge <falk.menge.ext@bayer.com>",
|