@hortiview/shared-components 2.3.0 → 2.5.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 (115) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +11 -0
  3. package/dist/{AlertBanner-75jjene1.js → AlertBanner-JnX0tJGC.js} +9 -9
  4. package/dist/{BigLoadingSpinner-BbXMCKpm.js → BigLoadingSpinner-chQoiNY9.js} +1 -1
  5. package/dist/{GenericCard-BFYKwkzI.js → GenericCard-c9yuyN3m.js} +3 -3
  6. package/dist/ListAreaService-BY6ZTds9.js +124 -0
  7. package/dist/OfflineView-HbuDPpQL.js +48 -0
  8. package/dist/{_MapCache-B75yWNNd.js → _MapCache-B75dXJyg.js} +2 -2
  9. package/dist/_baseIsEqual-CZNn3LMM.js +241 -0
  10. package/dist/_getAllKeys-tc1bcd1W.js +86 -0
  11. package/dist/{_getTag-BCf9b56Z.js → _getTag-DYHrLaIw.js} +2 -2
  12. package/dist/_setToString-Do1lSQTZ.js +2034 -0
  13. package/dist/assets/ContextMenu.css +1 -1
  14. package/dist/assets/ListAreaService.css +1 -1
  15. package/dist/assets/OfflineView.css +1 -0
  16. package/dist/components/AlertBanner/AlertBanner.js +4 -4
  17. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  18. package/dist/components/AlertBanner/LinkBanner.js +3 -3
  19. package/dist/components/BaseView/BaseView.d.ts +14 -1
  20. package/dist/components/BaseView/BaseView.js +47 -41
  21. package/dist/components/BaseView/BaseView.test.js +51 -34
  22. package/dist/components/BasicHeading/BasicHeading.js +2 -2
  23. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  24. package/dist/components/BlockView/BlockView.js +1 -1
  25. package/dist/components/ChipCard/ChipCard.js +4 -4
  26. package/dist/components/ContextMenu/ContextMenu.d.ts +12 -1
  27. package/dist/components/ContextMenu/ContextMenu.js +40 -36
  28. package/dist/components/ContextMenu/ContextMenu.test.js +42 -19
  29. package/dist/components/DeleteModal/DeleteModal.d.ts +13 -1
  30. package/dist/components/DeleteModal/DeleteModal.js +53 -49
  31. package/dist/components/DeleteModal/DeleteModal.test.js +35 -11
  32. package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
  33. package/dist/components/Disclaimer/Disclaimer.js +3 -3
  34. package/dist/components/EmptyView/EmptyView.js +4 -4
  35. package/dist/components/Filter/Filter.js +17 -16
  36. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  37. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +4 -4
  38. package/dist/components/FormComponents/FormNumber/CustomTextField.js +13 -12
  39. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  40. package/dist/components/FormComponents/FormSelect/FormSelect.js +1 -1
  41. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
  42. package/dist/components/FormComponents/FormSlider/FormSlider.js +4 -4
  43. package/dist/components/FormComponents/FormText/FormText.js +2 -2
  44. package/dist/components/FormComponents/FormToggle/FormToggle.js +3 -3
  45. package/dist/components/GenericTable/GenericTable.d.ts +3 -1
  46. package/dist/components/GenericTable/GenericTable.js +2013 -2030
  47. package/dist/components/GenericTable/GenericTable.test.js +36 -6
  48. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
  49. package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
  50. package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
  51. package/dist/components/HashTabView/HashTabView.js +6 -6
  52. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  53. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +4 -4
  54. package/dist/components/Iconify/Iconify.js +2 -2
  55. package/dist/components/InfoGroup/InfoGroup.js +3 -3
  56. package/dist/components/ListArea/ListArea.js +36 -35
  57. package/dist/components/ListArea/ListArea.test.js +14 -9
  58. package/dist/components/ListArea/ListAreaService.js +9 -7
  59. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  60. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  61. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +6 -6
  62. package/dist/components/Modal/Modal.d.ts +6 -1
  63. package/dist/components/Modal/Modal.js +134 -118
  64. package/dist/components/ModulePadding/ModulePadding.js +9 -8
  65. package/dist/components/OfflineView/OfflineView.d.ts +68 -0
  66. package/dist/components/OfflineView/OfflineView.js +9 -0
  67. package/dist/components/OfflineView/OfflineView.test.d.ts +1 -0
  68. package/dist/components/OfflineView/OfflineView.test.js +24 -0
  69. package/dist/components/OnboardingBanner/OnboardingBanner.js +7 -7
  70. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  71. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
  72. package/dist/components/SearchBar/SearchBar.js +2 -2
  73. package/dist/components/Select/Select.js +1 -1
  74. package/dist/components/Stepper/Stepper.js +1 -1
  75. package/dist/components/Stepper/components/StepperButton.js +1 -1
  76. package/dist/components/Stepper/components/StepperHeader.js +2 -2
  77. package/dist/components/Stepper/components/StepperIndicator.js +1 -1
  78. package/dist/{get-DFv1gXfq.js → get-B8c-T4F8.js} +1 -1
  79. package/dist/{get-7ACccM2X.js → get-C7KpEkVs.js} +1 -1
  80. package/dist/hooks/useHelperText.js +1 -1
  81. package/dist/{index.es-D54RuMc_.js → index.es--yyG47az.js} +2 -2
  82. package/dist/{index.es-DKDgy7Kt.js → index.es-6c1Xbl0N.js} +1 -1
  83. package/dist/{index.es-BWgXLqXn.js → index.es-BTc2I5pe.js} +2 -2
  84. package/dist/{index.es-BtjV0oNv.js → index.es-Bf149BSP.js} +4 -4
  85. package/dist/{index.es-CoFul5zR.js → index.es-BoWmBoqO.js} +8 -8
  86. package/dist/{index.es-CiqbARoC.js → index.es-Bx1E5MPK.js} +4 -4
  87. package/dist/{index.es-fnFnw2P1.js → index.es-CPqaUyn3.js} +10 -10
  88. package/dist/{index.es-25EARqhH.js → index.es-CUuzYysw.js} +4 -4
  89. package/dist/{index.es-DntoATwO.js → index.es-CbBdaRO2.js} +2 -2
  90. package/dist/{index.es-8GOVkuo-.js → index.es-CqgVUhln.js} +3 -3
  91. package/dist/{index.es-BNHI3ZIK.js → index.es-CzUKBF7E.js} +10 -10
  92. package/dist/{index.es-D-CKRzIB.js → index.es-D-ph6ImM.js} +1 -1
  93. package/dist/{index.es-6TJ1S8Jr.js → index.es-DDo_AHL0.js} +7 -7
  94. package/dist/{index.es-3043KTnb.js → index.es-DErA6zWG.js} +2 -2
  95. package/dist/{index.es-h2lMdt7G.js → index.es-DF11ERDs.js} +2 -2
  96. package/dist/{index.es-B-_jXDuz.js → index.es-DMGNht46.js} +1 -1
  97. package/dist/{index.es-Dvj_qpAp.js → index.es-DOX4XTz_.js} +2 -2
  98. package/dist/index.es-DlzwTKbh.js +311 -0
  99. package/dist/{index.es-CL_Heu1n.js → index.es-DxDU9C_B.js} +1 -1
  100. package/dist/{index.es-0lQcz8m1.js → index.es-Kg9soDed.js} +3 -3
  101. package/dist/{index.es-41ztjcFT.js → index.es-U5-b20Gv.js} +4 -4
  102. package/dist/{index.es-BvrQnJ3j.js → index.es-oOD85ZwA.js} +4 -4
  103. package/dist/{index.es-D6N-XWHe.js → index.es-zQBuWUgU.js} +2 -2
  104. package/dist/{isEmpty-B4GG2s-V.js → isEmpty-DsdC9UUD.js} +2 -2
  105. package/dist/main.d.ts +1 -0
  106. package/dist/main.js +66 -64
  107. package/dist/omit-1Eom1PmQ.js +366 -0
  108. package/dist/{orderBy-Bd48bw88.js → orderBy-CyjsW2ET.js} +31 -30
  109. package/dist/types/GenericTable.d.ts +9 -0
  110. package/dist/types/ListElement.d.ts +23 -9
  111. package/package.json +1 -1
  112. package/dist/ListAreaService-BVtuBN0K.js +0 -110
  113. package/dist/_baseIsEqual-D0Dsajdb.js +0 -317
  114. package/dist/identity-DLWZln-X.js +0 -1763
  115. package/dist/index.es-da0cf7oE.js +0 -569
@@ -0,0 +1,366 @@
1
+ import { g as wr } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import { b as Lr } from "./toString-CrgB_7Pe.js";
3
+ import { r as Mr, j as C, k as qe, x as Xe, m as Br, w as Ze, y as ze, h as xr, z as Ur, l as Pr, o as Kr, b as Dr, n as Gr, t as Nr, s as Vr } from "./_setToString-Do1lSQTZ.js";
4
+ import { b as er, a as rr, c as nr, d as Yr, e as Wr, r as $r } from "./_getAllKeys-tc1bcd1W.js";
5
+ import { b as kr, r as Hr } from "./isPlainObject-C273y67K.js";
6
+ import { a as ve } from "./_getTag-DYHrLaIw.js";
7
+ import { c as tr, r as ar, b as ir } from "./isArray-DN9s620O.js";
8
+ import { f as Jr } from "./_MapCache-B75dXJyg.js";
9
+ import { d as Qr, a as sr, b as Xr } from "./get-C7KpEkVs.js";
10
+ var V, Ie;
11
+ function Zr() {
12
+ if (Ie) return V;
13
+ Ie = 1;
14
+ var a = tr(), n = Mr(), e = ar(), r = a ? a.isConcatSpreadable : void 0;
15
+ function t(i) {
16
+ return e(i) || n(i) || !!(r && i && i[r]);
17
+ }
18
+ return V = t, V;
19
+ }
20
+ var Y, he;
21
+ function zr() {
22
+ if (he) return Y;
23
+ he = 1;
24
+ var a = er(), n = Zr();
25
+ function e(r, t, i, u, c) {
26
+ var y = -1, A = r.length;
27
+ for (i || (i = n), c || (c = []); ++y < A; ) {
28
+ var b = r[y];
29
+ t > 0 && i(b) ? t > 1 ? e(b, t - 1, i, u, c) : a(c, b) : u || (c[c.length] = b);
30
+ }
31
+ return c;
32
+ }
33
+ return Y = e, Y;
34
+ }
35
+ var W, je;
36
+ function en() {
37
+ if (je) return W;
38
+ je = 1;
39
+ function a(n, e) {
40
+ for (var r = -1, t = n == null ? 0 : n.length; ++r < t && e(n[r], r, n) !== !1; )
41
+ ;
42
+ return n;
43
+ }
44
+ return W = a, W;
45
+ }
46
+ var $, Re;
47
+ function rn() {
48
+ if (Re) return $;
49
+ Re = 1;
50
+ var a = C(), n = rr();
51
+ function e(r, t) {
52
+ return r && a(t, n(t), r);
53
+ }
54
+ return $ = e, $;
55
+ }
56
+ var k, Oe;
57
+ function nn() {
58
+ if (Oe) return k;
59
+ Oe = 1;
60
+ var a = C(), n = qe();
61
+ function e(r, t) {
62
+ return r && a(t, n(t), r);
63
+ }
64
+ return k = e, k;
65
+ }
66
+ var H, Ce;
67
+ function tn() {
68
+ if (Ce) return H;
69
+ Ce = 1;
70
+ var a = C(), n = nr();
71
+ function e(r, t) {
72
+ return a(r, n(r), t);
73
+ }
74
+ return H = e, H;
75
+ }
76
+ var J, Fe;
77
+ function or() {
78
+ if (Fe) return J;
79
+ Fe = 1;
80
+ var a = er(), n = kr(), e = nr(), r = Yr(), t = Object.getOwnPropertySymbols, i = t ? function(u) {
81
+ for (var c = []; u; )
82
+ a(c, e(u)), u = n(u);
83
+ return c;
84
+ } : r;
85
+ return J = i, J;
86
+ }
87
+ var Q, Ee;
88
+ function an() {
89
+ if (Ee) return Q;
90
+ Ee = 1;
91
+ var a = C(), n = or();
92
+ function e(r, t) {
93
+ return a(r, n(r), t);
94
+ }
95
+ return Q = e, Q;
96
+ }
97
+ var X, we;
98
+ function ur() {
99
+ if (we) return X;
100
+ we = 1;
101
+ var a = Wr(), n = or(), e = qe();
102
+ function r(t) {
103
+ return a(t, e, n);
104
+ }
105
+ return X = r, X;
106
+ }
107
+ var Z, Le;
108
+ function sn() {
109
+ if (Le) return Z;
110
+ Le = 1;
111
+ var a = Object.prototype, n = a.hasOwnProperty;
112
+ function e(r) {
113
+ var t = r.length, i = new r.constructor(t);
114
+ return t && typeof r[0] == "string" && n.call(r, "index") && (i.index = r.index, i.input = r.input), i;
115
+ }
116
+ return Z = e, Z;
117
+ }
118
+ var z, Me;
119
+ function on() {
120
+ if (Me) return z;
121
+ Me = 1;
122
+ var a = Xe();
123
+ function n(e, r) {
124
+ var t = r ? a(e.buffer) : e.buffer;
125
+ return new e.constructor(t, e.byteOffset, e.byteLength);
126
+ }
127
+ return z = n, z;
128
+ }
129
+ var ee, Be;
130
+ function un() {
131
+ if (Be) return ee;
132
+ Be = 1;
133
+ var a = /\w*$/;
134
+ function n(e) {
135
+ var r = new e.constructor(e.source, a.exec(e));
136
+ return r.lastIndex = e.lastIndex, r;
137
+ }
138
+ return ee = n, ee;
139
+ }
140
+ var re, xe;
141
+ function cn() {
142
+ if (xe) return re;
143
+ xe = 1;
144
+ var a = tr(), n = a ? a.prototype : void 0, e = n ? n.valueOf : void 0;
145
+ function r(t) {
146
+ return e ? Object(e.call(t)) : {};
147
+ }
148
+ return re = r, re;
149
+ }
150
+ var ne, Ue;
151
+ function ln() {
152
+ if (Ue) return ne;
153
+ Ue = 1;
154
+ var a = Xe(), n = on(), e = un(), r = cn(), t = Br(), i = "[object Boolean]", u = "[object Date]", c = "[object Map]", y = "[object Number]", A = "[object RegExp]", b = "[object Set]", O = "[object String]", _ = "[object Symbol]", q = "[object ArrayBuffer]", g = "[object DataView]", S = "[object Float32Array]", d = "[object Float64Array]", v = "[object Int8Array]", B = "[object Int16Array]", x = "[object Int32Array]", U = "[object Uint8Array]", P = "[object Uint8ClampedArray]", K = "[object Uint16Array]", D = "[object Uint32Array]";
155
+ function G(f, N, F) {
156
+ var I = f.constructor;
157
+ switch (N) {
158
+ case q:
159
+ return a(f);
160
+ case i:
161
+ case u:
162
+ return new I(+f);
163
+ case g:
164
+ return n(f, F);
165
+ case S:
166
+ case d:
167
+ case v:
168
+ case B:
169
+ case x:
170
+ case U:
171
+ case P:
172
+ case K:
173
+ case D:
174
+ return t(f, F);
175
+ case c:
176
+ return new I();
177
+ case y:
178
+ case O:
179
+ return new I(f);
180
+ case A:
181
+ return e(f);
182
+ case b:
183
+ return new I();
184
+ case _:
185
+ return r(f);
186
+ }
187
+ }
188
+ return ne = G, ne;
189
+ }
190
+ var te, Pe;
191
+ function fn() {
192
+ if (Pe) return te;
193
+ Pe = 1;
194
+ var a = ve(), n = ir(), e = "[object Map]";
195
+ function r(t) {
196
+ return n(t) && a(t) == e;
197
+ }
198
+ return te = r, te;
199
+ }
200
+ var ae, Ke;
201
+ function bn() {
202
+ if (Ke) return ae;
203
+ Ke = 1;
204
+ var a = fn(), n = Ze(), e = ze(), r = e && e.isMap, t = r ? n(r) : a;
205
+ return ae = t, ae;
206
+ }
207
+ var ie, De;
208
+ function gn() {
209
+ if (De) return ie;
210
+ De = 1;
211
+ var a = ve(), n = ir(), e = "[object Set]";
212
+ function r(t) {
213
+ return n(t) && a(t) == e;
214
+ }
215
+ return ie = r, ie;
216
+ }
217
+ var se, Ge;
218
+ function yn() {
219
+ if (Ge) return se;
220
+ Ge = 1;
221
+ var a = gn(), n = Ze(), e = ze(), r = e && e.isSet, t = r ? n(r) : a;
222
+ return se = t, se;
223
+ }
224
+ var oe, Ne;
225
+ function _n() {
226
+ if (Ne) return oe;
227
+ Ne = 1;
228
+ var a = xr(), n = en(), e = Ur(), r = rn(), t = nn(), i = Pr(), u = Gr(), c = tn(), y = an(), A = $r(), b = ur(), O = ve(), _ = sn(), q = ln(), g = Kr(), S = ar(), d = Dr(), v = bn(), B = Jr(), x = yn(), U = rr(), P = qe(), K = 1, D = 2, G = 4, f = "[object Arguments]", N = "[object Array]", F = "[object Boolean]", I = "[object Date]", cr = "[object Error]", me = "[object Function]", lr = "[object GeneratorFunction]", fr = "[object Map]", br = "[object Number]", pe = "[object Object]", gr = "[object RegExp]", yr = "[object Set]", _r = "[object String]", qr = "[object Symbol]", vr = "[object WeakMap]", mr = "[object ArrayBuffer]", pr = "[object DataView]", Ar = "[object Float32Array]", Sr = "[object Float64Array]", Tr = "[object Int8Array]", dr = "[object Int16Array]", Ir = "[object Int32Array]", hr = "[object Uint8Array]", jr = "[object Uint8ClampedArray]", Rr = "[object Uint16Array]", Or = "[object Uint32Array]", o = {};
229
+ o[f] = o[N] = o[mr] = o[pr] = o[F] = o[I] = o[Ar] = o[Sr] = o[Tr] = o[dr] = o[Ir] = o[fr] = o[br] = o[pe] = o[gr] = o[yr] = o[_r] = o[qr] = o[hr] = o[jr] = o[Rr] = o[Or] = !0, o[cr] = o[me] = o[vr] = !1;
230
+ function E(s, h, j, Cr, w, m) {
231
+ var l, L = h & K, M = h & D, Fr = h & G;
232
+ if (j && (l = w ? j(s, Cr, w, m) : j(s)), l !== void 0)
233
+ return l;
234
+ if (!B(s))
235
+ return s;
236
+ var Ae = S(s);
237
+ if (Ae) {
238
+ if (l = _(s), !L)
239
+ return u(s, l);
240
+ } else {
241
+ var R = O(s), Se = R == me || R == lr;
242
+ if (d(s))
243
+ return i(s, L);
244
+ if (R == pe || R == f || Se && !w) {
245
+ if (l = M || Se ? {} : g(s), !L)
246
+ return M ? y(s, t(l, s)) : c(s, r(l, s));
247
+ } else {
248
+ if (!o[R])
249
+ return w ? s : {};
250
+ l = q(s, R, L);
251
+ }
252
+ }
253
+ m || (m = new a());
254
+ var Te = m.get(s);
255
+ if (Te)
256
+ return Te;
257
+ m.set(s, l), x(s) ? s.forEach(function(p) {
258
+ l.add(E(p, h, j, p, s, m));
259
+ }) : v(s) && s.forEach(function(p, T) {
260
+ l.set(T, E(p, h, j, T, s, m));
261
+ });
262
+ var Er = Fr ? M ? b : A : M ? P : U, de = Ae ? void 0 : Er(s);
263
+ return n(de || s, function(p, T) {
264
+ de && (T = p, p = s[T]), e(l, T, E(p, h, j, T, s, m));
265
+ }), l;
266
+ }
267
+ return oe = E, oe;
268
+ }
269
+ var ue, Ve;
270
+ function qn() {
271
+ if (Ve) return ue;
272
+ Ve = 1;
273
+ function a(n) {
274
+ var e = n == null ? 0 : n.length;
275
+ return e ? n[e - 1] : void 0;
276
+ }
277
+ return ue = a, ue;
278
+ }
279
+ var ce, Ye;
280
+ function vn() {
281
+ if (Ye) return ce;
282
+ Ye = 1;
283
+ function a(n, e, r) {
284
+ var t = -1, i = n.length;
285
+ e < 0 && (e = -e > i ? 0 : i + e), r = r > i ? i : r, r < 0 && (r += i), i = e > r ? 0 : r - e >>> 0, e >>>= 0;
286
+ for (var u = Array(i); ++t < i; )
287
+ u[t] = n[t + e];
288
+ return u;
289
+ }
290
+ return ce = a, ce;
291
+ }
292
+ var le, We;
293
+ function mn() {
294
+ if (We) return le;
295
+ We = 1;
296
+ var a = Qr(), n = vn();
297
+ function e(r, t) {
298
+ return t.length < 2 ? r : a(r, n(t, 0, -1));
299
+ }
300
+ return le = e, le;
301
+ }
302
+ var fe, $e;
303
+ function pn() {
304
+ if ($e) return fe;
305
+ $e = 1;
306
+ var a = sr(), n = qn(), e = mn(), r = Xr();
307
+ function t(i, u) {
308
+ return u = a(u, i), i = e(i, u), i == null || delete i[r(n(u))];
309
+ }
310
+ return fe = t, fe;
311
+ }
312
+ var be, ke;
313
+ function An() {
314
+ if (ke) return be;
315
+ ke = 1;
316
+ var a = Hr();
317
+ function n(e) {
318
+ return a(e) ? void 0 : e;
319
+ }
320
+ return be = n, be;
321
+ }
322
+ var ge, He;
323
+ function Sn() {
324
+ if (He) return ge;
325
+ He = 1;
326
+ var a = zr();
327
+ function n(e) {
328
+ var r = e == null ? 0 : e.length;
329
+ return r ? a(e, 1) : [];
330
+ }
331
+ return ge = n, ge;
332
+ }
333
+ var ye, Je;
334
+ function Tn() {
335
+ if (Je) return ye;
336
+ Je = 1;
337
+ var a = Sn(), n = Vr(), e = Nr();
338
+ function r(t) {
339
+ return e(n(t, void 0, a), t + "");
340
+ }
341
+ return ye = r, ye;
342
+ }
343
+ var _e, Qe;
344
+ function dn() {
345
+ if (Qe) return _e;
346
+ Qe = 1;
347
+ var a = Lr(), n = _n(), e = pn(), r = sr(), t = C(), i = An(), u = Tn(), c = ur(), y = 1, A = 2, b = 4, O = u(function(_, q) {
348
+ var g = {};
349
+ if (_ == null)
350
+ return g;
351
+ var S = !1;
352
+ q = a(q, function(v) {
353
+ return v = r(v, _), S || (S = v.length > 1), v;
354
+ }), t(_, c(_), g), S && (g = n(g, y | A | b, i));
355
+ for (var d = q.length; d--; )
356
+ e(g, q[d]);
357
+ return g;
358
+ });
359
+ return _e = O, _e;
360
+ }
361
+ var In = dn();
362
+ const Mn = /* @__PURE__ */ wr(In);
363
+ export {
364
+ Mn as o,
365
+ zr as r
366
+ };
@@ -1,12 +1,13 @@
1
1
  import { g as Mr } from "./_commonjsHelpers-BkfeUUK-.js";
2
2
  import { a as gr, b as Pr } from "./toString-CrgB_7Pe.js";
3
- import { a as Ar, b as U, r as Rr, c as _r, d as hr } from "./get-7ACccM2X.js";
4
- import { h as Or, r as lr, i as Er, j as Br, k as or, l as Cr, a as pr, m as Sr } from "./identity-DLWZln-X.js";
5
- import { r as qr, a as br } from "./_baseIsEqual-D0Dsajdb.js";
6
- import { e as Ir } from "./_MapCache-B75yWNNd.js";
3
+ import { a as Ar, b as k, r as Rr, c as _r, d as hr } from "./get-C7KpEkVs.js";
4
+ import { h as Or, r as Er, v as lr, u as Br, q as or, p as Cr, a as pr, w as Sr } from "./_setToString-Do1lSQTZ.js";
5
+ import { r as qr } from "./_baseIsEqual-CZNn3LMM.js";
6
+ import { f as wr } from "./_MapCache-B75dXJyg.js";
7
+ import { a as br } from "./_getAllKeys-tc1bcd1W.js";
7
8
  import { r as d } from "./isArray-DN9s620O.js";
8
9
  var m, T;
9
- function wr() {
10
+ function Ir() {
10
11
  if (T) return m;
11
12
  T = 1;
12
13
  var i = Or(), a = qr(), r = 1, e = 2;
@@ -41,7 +42,7 @@ var M, J;
41
42
  function vr() {
42
43
  if (J) return M;
43
44
  J = 1;
44
- var i = Ir();
45
+ var i = wr();
45
46
  function a(r) {
46
47
  return r === r && !i(r);
47
48
  }
@@ -76,7 +77,7 @@ var A, X;
76
77
  function Lr() {
77
78
  if (X) return A;
78
79
  X = 1;
79
- var i = wr(), a = Fr(), r = dr();
80
+ var i = Ir(), a = Fr(), r = dr();
80
81
  function e(t) {
81
82
  var n = a(t);
82
83
  return n.length == 1 && n[0][2] ? r(n[0][0], n[0][1]) : function(u) {
@@ -98,7 +99,7 @@ var O, Z;
98
99
  function xr() {
99
100
  if (Z) return O;
100
101
  Z = 1;
101
- var i = Ar(), a = lr(), r = d(), e = Br(), t = Er(), n = U();
102
+ var i = Ar(), a = Er(), r = d(), e = Br(), t = lr(), n = k();
102
103
  function u(s, c, h) {
103
104
  c = i(c, s);
104
105
  for (var _ = -1, f = c.length, o = !1; ++_ < f; ) {
@@ -111,28 +112,28 @@ function xr() {
111
112
  }
112
113
  return O = u, O;
113
114
  }
114
- var l, $;
115
+ var E, $;
115
116
  function Gr() {
116
- if ($) return l;
117
+ if ($) return E;
117
118
  $ = 1;
118
119
  var i = Dr(), a = xr();
119
120
  function r(e, t) {
120
121
  return e != null && a(e, t, i);
121
122
  }
122
- return l = r, l;
123
+ return E = r, E;
123
124
  }
124
- var E, z;
125
+ var l, z;
125
126
  function Kr() {
126
- if (z) return E;
127
+ if (z) return l;
127
128
  z = 1;
128
- var i = qr(), a = Rr(), r = Gr(), e = _r(), t = vr(), n = dr(), u = U(), s = 1, c = 2;
129
+ var i = qr(), a = Rr(), r = Gr(), e = _r(), t = vr(), n = dr(), u = k(), s = 1, c = 2;
129
130
  function h(_, f) {
130
131
  return e(_) && t(f) ? n(u(_), f) : function(o) {
131
132
  var p = a(o, _);
132
133
  return p === void 0 && p === f ? r(o, _) : i(f, p, s | c);
133
134
  };
134
135
  }
135
- return E = h, E;
136
+ return l = h, l;
136
137
  }
137
138
  var B, N;
138
139
  function Hr() {
@@ -146,7 +147,7 @@ function Hr() {
146
147
  return B = i, B;
147
148
  }
148
149
  var C, V;
149
- function kr() {
150
+ function Ur() {
150
151
  if (V) return C;
151
152
  V = 1;
152
153
  var i = hr();
@@ -158,34 +159,34 @@ function kr() {
158
159
  return C = a, C;
159
160
  }
160
161
  var S, j;
161
- function Ur() {
162
+ function kr() {
162
163
  if (j) return S;
163
164
  j = 1;
164
- var i = Hr(), a = kr(), r = _r(), e = U();
165
+ var i = Hr(), a = Ur(), r = _r(), e = k();
165
166
  function t(n) {
166
167
  return r(n) ? i(e(n)) : a(n);
167
168
  }
168
169
  return S = t, S;
169
170
  }
170
- var I, rr;
171
+ var w, rr;
171
172
  function Tr() {
172
- if (rr) return I;
173
+ if (rr) return w;
173
174
  rr = 1;
174
- var i = Lr(), a = Kr(), r = or(), e = d(), t = Ur();
175
+ var i = Lr(), a = Kr(), r = or(), e = d(), t = kr();
175
176
  function n(u) {
176
177
  return typeof u == "function" ? u : u == null ? r : typeof u == "object" ? e(u) ? a(u[0], u[1]) : i(u) : t(u);
177
178
  }
178
- return I = n, I;
179
+ return w = n, w;
179
180
  }
180
- var w, er;
181
+ var I, er;
181
182
  function Jr() {
182
- if (er) return w;
183
+ if (er) return I;
183
184
  er = 1;
184
185
  var i = Cr(), a = br();
185
186
  function r(e, t) {
186
187
  return e && i(e, t, a);
187
188
  }
188
- return w = r, w;
189
+ return I = r, I;
189
190
  }
190
191
  var F, nr;
191
192
  function Qr() {
@@ -298,19 +299,19 @@ function zr() {
298
299
  }
299
300
  return H = h, H;
300
301
  }
301
- var k, cr;
302
+ var U, cr;
302
303
  function Nr() {
303
- if (cr) return k;
304
+ if (cr) return U;
304
305
  cr = 1;
305
306
  var i = zr(), a = d();
306
307
  function r(e, t, n, u) {
307
308
  return e == null ? [] : (a(t) || (t = t == null ? [] : [t]), n = u ? void 0 : n, a(n) || (n = n == null ? [] : [n]), i(e, t, n));
308
309
  }
309
- return k = r, k;
310
+ return U = r, U;
310
311
  }
311
312
  var Vr = Nr();
312
- const ue = /* @__PURE__ */ Mr(Vr);
313
+ const se = /* @__PURE__ */ Mr(Vr);
313
314
  export {
314
- ue as o,
315
+ se as o,
315
316
  zr as r
316
317
  };
@@ -1,4 +1,5 @@
1
1
  import { ListItemProps } from '@element-public/react-list';
2
+ import { OfflineViewProps } from '../components/OfflineView/OfflineView';
2
3
 
3
4
  /**
4
5
  * Props for the GenericTable component {@link GenericTable}
@@ -114,6 +115,14 @@ export type TableLayoutProps<T> = {
114
115
  * @default 'standard'
115
116
  */
116
117
  tableLayout?: 'standard' | 'flex';
118
+ /**
119
+ * Whether the user is online; shows OfflineView when false.
120
+ */
121
+ isOnline?: boolean;
122
+ /**
123
+ * Props forwarded to <OfflineView /> when offline.
124
+ */
125
+ offlineViewProps?: Partial<OfflineViewProps>;
117
126
  };
118
127
  /**
119
128
  * Props for the CellTemplate component {@link CellTemplate}
@@ -34,6 +34,10 @@ export type BaseListElement = {
34
34
  * the baseview normally show the title in the detail view, if you want to show a different title set this
35
35
  */
36
36
  detailTitle?: string;
37
+ /**
38
+ * the baseview normally does not show the subtitle in the detail view, if you want to show a subtitle set this
39
+ */
40
+ detailSubTitle?: string;
37
41
  /**
38
42
  * the subtitle of the list element
39
43
  */
@@ -59,7 +63,7 @@ export type BaseListElement = {
59
63
  */
60
64
  listItemHeight?: string;
61
65
  /**
62
- * the list element acts as a navigation link, if noNavigation is set to true the list element has no link behaivour
66
+ * the list element acts as a navigation link, if noNavigation is set to true the list element has no link behavior
63
67
  */
64
68
  noNavigation?: boolean;
65
69
  /**
@@ -78,23 +82,33 @@ export type BaseListElement = {
78
82
  * an additonal action element shown in the detail section of the base view behind the detail heading
79
83
  */
80
84
  detailAction?: JSX.Element;
81
- };
82
- /**
83
- * The list element to use with BaseView and ListArea, it is an extension of the BaseListElement to handle grouped lists
84
- */
85
- export type ListElement = Omit<BaseListElement, 'component'> & {
86
85
  /**
87
- * the group name of the element, if provided and the List has the `isGroup` property the item is located in that group
86
+ * the group name of the element, if provided and the List or BaseView has the `isGrouped` property the item is located in that group
88
87
  */
89
88
  groupName?: string | JSX.Element;
90
89
  /**
91
- * will be rendered instead of title and subtitle
90
+ * the group component of the group, if provided that group header is this component instead of the name.
91
+ *
92
+ * Be aware, this will only work if the List or BaseView has the `isGrouped` property set to true and a `groupName` is provided
92
93
  */
93
- customTitle?: JSX.Element;
94
+ groupComponent?: JSX.Element;
95
+ /**
96
+ * whether the element should be indented by 1.5rem, @default false
97
+ */
98
+ indentElement?: boolean;
94
99
  /**
95
100
  * a custom class name for the list item
96
101
  */
97
102
  listItemClassName?: string;
103
+ };
104
+ /**
105
+ * The list element to use with BaseView and ListArea, it is an extension of the BaseListElement to handle grouped lists
106
+ */
107
+ export type ListElement = Omit<BaseListElement, 'component'> & {
108
+ /**
109
+ * will be rendered instead of title and subtitle
110
+ */
111
+ customTitle?: JSX.Element;
98
112
  /**
99
113
  * data-testid for testing
100
114
  */
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": "2.3.0",
4
+ "version": "2.5.0",
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>",