@hortiview/shared-components 0.0.11528 → 0.0.11587

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 (118) hide show
  1. package/README.md +17 -0
  2. package/dist/{BigLoadingSpinner-D7H28pr5.js → BigLoadingSpinner-iegTbDcD.js} +6 -6
  3. package/dist/GenericCard-6J558OgP.js +350 -0
  4. package/dist/{ListAreaService-YS_UUPh5.js → ListAreaService-DOwtdRa4.js} +18 -16
  5. package/dist/_MapCache-B75yWNNd.js +376 -0
  6. package/dist/_baseIsEqual-D0Dsajdb.js +317 -0
  7. package/dist/_getTag-BCf9b56Z.js +81 -0
  8. package/dist/animationframe-EMBh6XeO.js +54 -0
  9. package/dist/component-DsB0poTj.js +571 -0
  10. package/dist/component-neHBNHRu.js +114 -0
  11. package/dist/components/AlertBanner/AlertBanner.js +16 -15
  12. package/dist/components/BaseView/BaseView.js +5 -5
  13. package/dist/components/BasicHeading/BasicHeading.js +25 -24
  14. package/dist/components/BasicHeading/BasicHeading.test.js +9 -9
  15. package/dist/components/BlockView/BlockView.js +5 -5
  16. package/dist/components/ChipCard/ChipCard.js +1765 -14
  17. package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
  18. package/dist/components/ContextMenu/ContextMenu.js +28 -27
  19. package/dist/components/DeleteModal/DeleteModal.js +37 -34
  20. package/dist/components/Disclaimer/Disclaimer.js +11 -9
  21. package/dist/components/EmptyView/EmptyView.js +258 -19
  22. package/dist/components/Filter/Filter.js +58 -54
  23. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
  24. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +1 -1
  25. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5974 -6387
  26. package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +1 -1
  27. package/dist/components/FormComponents/FormNumber/CustomTextField.js +5 -5
  28. package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +1 -1
  29. package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
  30. package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
  31. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +1 -1
  32. package/dist/components/FormComponents/FormSelect/FormSelect.js +3 -3
  33. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
  34. package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
  35. package/dist/components/FormComponents/FormText/FormText.d.ts +1 -1
  36. package/dist/components/FormComponents/FormText/FormText.js +33 -32
  37. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +1 -1
  38. package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
  39. package/dist/components/GenericTable/GenericTable.js +10486 -74
  40. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
  41. package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
  42. package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
  43. package/dist/components/HashTabView/HashTabView.js +1805 -72
  44. package/dist/components/HeaderFilter/HeaderFilter.d.ts +1 -1
  45. package/dist/components/HeaderFilter/HeaderFilter.js +4 -4
  46. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +20 -17
  47. package/dist/components/Iconify/Iconify.d.ts +1 -2
  48. package/dist/components/Iconify/Iconify.js +42 -42
  49. package/dist/components/InfoGroup/InfoGroup.js +30 -28
  50. package/dist/components/ListArea/ListArea.js +29 -27
  51. package/dist/components/ListArea/ListArea.test.js +2 -2
  52. package/dist/components/ListArea/ListAreaService.js +7 -5
  53. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  54. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  55. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -37
  56. package/dist/components/Modal/Modal.d.ts +1 -1
  57. package/dist/components/Modal/Modal.js +926 -9
  58. package/dist/components/ModulePadding/ModulePadding.d.ts +7 -0
  59. package/dist/components/ModulePadding/ModulePadding.js +28 -0
  60. package/dist/components/ModulePadding/ModulePadding.test.d.ts +1 -0
  61. package/dist/components/ModulePadding/ModulePadding.test.js +22 -0
  62. package/dist/components/OverflowTooltip/OverflowTooltip.js +6 -6
  63. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
  64. package/dist/components/SearchBar/SearchBar.js +7 -6
  65. package/dist/components/Select/Select.d.ts +1 -1
  66. package/dist/components/Select/Select.js +13 -13
  67. package/dist/floating-ui.dom-CeD8zknG.js +978 -0
  68. package/dist/get-7ACccM2X.js +114 -0
  69. package/dist/{get-BiqanC9_.js → get-DFv1gXfq.js} +1 -1
  70. package/dist/hooks/useHelperText.js +1 -1
  71. package/dist/identity-DLWZln-X.js +1763 -0
  72. package/dist/index.es-0lQcz8m1.js +444 -0
  73. package/dist/index.es-25EARqhH.js +2027 -0
  74. package/dist/index.es-3043KTnb.js +1066 -0
  75. package/dist/index.es-41ztjcFT.js +724 -0
  76. package/dist/index.es-6TJ1S8Jr.js +954 -0
  77. package/dist/index.es-8GOVkuo-.js +374 -0
  78. package/dist/index.es-B-_jXDuz.js +216 -0
  79. package/dist/index.es-BWgXLqXn.js +102 -0
  80. package/dist/index.es-BtjV0oNv.js +360 -0
  81. package/dist/index.es-BvrQnJ3j.js +509 -0
  82. package/dist/index.es-CF_xy2ns.js +674 -0
  83. package/dist/index.es-CL_Heu1n.js +54 -0
  84. package/dist/index.es-CiqbARoC.js +306 -0
  85. package/dist/index.es-D-CKRzIB.js +63 -0
  86. package/dist/index.es-D6N-XWHe.js +56 -0
  87. package/dist/index.es-DKDgy7Kt.js +45 -0
  88. package/dist/index.es-DntoATwO.js +159 -0
  89. package/dist/index.es-UHKFl8Da.js +7075 -0
  90. package/dist/index.es-d5xhUpJZ.js +3242 -0
  91. package/dist/index.es-da0cf7oE.js +569 -0
  92. package/dist/index.es-h2lMdt7G.js +107 -0
  93. package/dist/index.es-zr101OF5.js +4853 -0
  94. package/dist/{isArray-2zMxXFEr.js → isArray-DN9s620O.js} +3 -3
  95. package/dist/{isArray-C_5XvIlE.js → isArray-Dub1wGJM.js} +1 -1
  96. package/dist/isEmpty-B4GG2s-V.js +31 -0
  97. package/dist/isPlainObject-C273y67K.js +40 -0
  98. package/dist/isString-BW9UHONv.js +21 -0
  99. package/dist/keyboard-Bpt0aBqQ.js +107 -0
  100. package/dist/main.d.ts +1 -0
  101. package/dist/main.js +57 -55
  102. package/dist/orderBy-Bd48bw88.js +316 -0
  103. package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
  104. package/dist/services/UtilService.js +2 -2
  105. package/dist/toString-CrgB_7Pe.js +54 -0
  106. package/dist/tslib.es6-BDCynO9F.js +162 -0
  107. package/dist/types/GenericTable.d.ts +1 -1
  108. package/dist/uniqueId-NU3-C36A.js +18 -0
  109. package/dist/util-DA21pZXj.js +78 -0
  110. package/package.json +1 -1
  111. package/dist/GenericCard-jlt8ZsHi.js +0 -80
  112. package/dist/_Map-Dtlps7IZ.js +0 -113
  113. package/dist/_overArg-_0pUmCsX.js +0 -14
  114. package/dist/get-P-5PYZOE.js +0 -426
  115. package/dist/isEmpty-BimaZd5G.js +0 -225
  116. package/dist/isString-BOHPtrlm.js +0 -44
  117. package/dist/orderBy-BVQIswlJ.js +0 -765
  118. package/dist/react-tooltip.min-Czs4RGD1.js +0 -1400
@@ -0,0 +1,18 @@
1
+ import { g as a } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import { r as d } from "./toString-CrgB_7Pe.js";
3
+ var r, u;
4
+ function q() {
5
+ if (u) return r;
6
+ u = 1;
7
+ var e = d(), i = 0;
8
+ function n(t) {
9
+ var o = ++i;
10
+ return e(t) + o;
11
+ }
12
+ return r = n, r;
13
+ }
14
+ var s = q();
15
+ const I = /* @__PURE__ */ a(s);
16
+ export {
17
+ I as u
18
+ };
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2016 Google Inc.
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ * of this software and associated documentation files (the "Software"), to deal
7
+ * in the Software without restriction, including without limitation the rights
8
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ * copies of the Software, and to permit persons to whom the Software is
10
+ * furnished to do so, subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice shall be included in
13
+ * all copies or substantial portions of the Software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ * THE SOFTWARE.
22
+ */
23
+ var d = {
24
+ animation: {
25
+ prefixed: "-webkit-animation",
26
+ standard: "animation"
27
+ },
28
+ transform: {
29
+ prefixed: "-webkit-transform",
30
+ standard: "transform"
31
+ },
32
+ transition: {
33
+ prefixed: "-webkit-transition",
34
+ standard: "transition"
35
+ }
36
+ }, s = {
37
+ animationend: {
38
+ cssProperty: "animation",
39
+ prefixed: "webkitAnimationEnd",
40
+ standard: "animationend"
41
+ },
42
+ animationiteration: {
43
+ cssProperty: "animation",
44
+ prefixed: "webkitAnimationIteration",
45
+ standard: "animationiteration"
46
+ },
47
+ animationstart: {
48
+ cssProperty: "animation",
49
+ prefixed: "webkitAnimationStart",
50
+ standard: "animationstart"
51
+ },
52
+ transitionend: {
53
+ cssProperty: "transition",
54
+ prefixed: "webkitTransitionEnd",
55
+ standard: "transitionend"
56
+ }
57
+ };
58
+ function m(t) {
59
+ return !!t.document && typeof t.document.createElement == "function";
60
+ }
61
+ function c(t, n) {
62
+ if (m(t) && n in d) {
63
+ var r = t.document.createElement("div"), a = d[n], i = a.standard, e = a.prefixed, o = i in r.style;
64
+ return o ? i : e;
65
+ }
66
+ return n;
67
+ }
68
+ function p(t, n) {
69
+ if (m(t) && n in s) {
70
+ var r = t.document.createElement("div"), a = s[n], i = a.standard, e = a.prefixed, o = a.cssProperty, f = o in r.style;
71
+ return f ? i : e;
72
+ }
73
+ return n;
74
+ }
75
+ export {
76
+ c as a,
77
+ p as g
78
+ };
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.11528",
4
+ "version": "0.0.11587",
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>",
@@ -1,80 +0,0 @@
1
- import { jsx as r, jsxs as d, Fragment as C } from "react/jsx-runtime";
2
- import { Card as h, CardContent as T, CardBody as m, Grid as g, GridRow as v, GridCol as c, TypoSubtitle as y, CardTitle as x, CardDivider as w } from "@element-public/react-components";
3
- import { useMemo as b } from "react";
4
- import { OverflowTooltip as l } from "./components/OverflowTooltip/OverflowTooltip.js";
5
- import './assets/GenericCard.css';const u = "_cardTitle_ny9m0_1", B = "_cardBody_ny9m0_5", N = "_cardContent_ny9m0_10", $ = "_row_ny9m0_14", k = "_font_ny9m0_18", G = "_fontHeader_ny9m0_23", H = "_title_ny9m0_27", S = "_emptyContainer_ny9m0_33", A = "_empty_ny9m0_33", n = {
6
- cardTitle: u,
7
- cardBody: B,
8
- cardContent: N,
9
- row: $,
10
- font: k,
11
- fontHeader: G,
12
- title: H,
13
- emptyContainer: S,
14
- empty: A
15
- }, _ = {
16
- desktopCol: 6,
17
- phoneCol: 2,
18
- tabletCol: 4,
19
- verticalAlign: "bottom"
20
- }, O = ({ item: e, columns: t, hiddenColumns: i }) => {
21
- const o = t.find((a) => a.asCardTitle), f = t.find((a) => a.asCardSubtitle), p = b(
22
- () => t.filter(
23
- (a) => !a.asCardTitle && !a.asCardSubtitle && a.id !== "actions"
24
- ),
25
- [t]
26
- );
27
- return /* @__PURE__ */ r(h, { variant: "raised", "data-testid": `card${o ? "-" + e[o.accessor] : ""}`, children: /* @__PURE__ */ d(T, { className: n.cardContent, "data-testid": "card-content", children: [
28
- /* @__PURE__ */ r(j, { item: e, titleColumn: o, subTitleColumn: f }),
29
- /* @__PURE__ */ r(m, { className: n.cardBody, "data-testid": "card-body", children: /* @__PURE__ */ r(g, { fullHeight: !0, fullWidth: !0, variant: "none", children: p.map((a) => i?.includes(a.id) ? null : /* @__PURE__ */ d(v, { className: n.row, "data-testid": "row", children: [
30
- /* @__PURE__ */ r(c, { horizontalAlign: "right", ..._, children: /* @__PURE__ */ d(
31
- y,
32
- {
33
- level: 2,
34
- themeColor: "text-secondary-on-background",
35
- className: `${n.font} ${n.fontHeader}`,
36
- tag: "div",
37
- children: [
38
- a.header,
39
- ":"
40
- ]
41
- }
42
- ) }),
43
- /* @__PURE__ */ r(c, { horizontalAlign: "left", ..._, children: /* @__PURE__ */ r(s, { column: a, item: e }) })
44
- ] }, a.id)) }) })
45
- ] }) });
46
- }, j = ({ item: e, titleColumn: t, subTitleColumn: i }) => {
47
- const o = e.actions;
48
- return !t && !i && !o ? null : /* @__PURE__ */ d(C, { children: [
49
- /* @__PURE__ */ r(
50
- x,
51
- {
52
- "data-testid": "card-title",
53
- className: n.cardTitle,
54
- primaryText: t !== void 0 && /* @__PURE__ */ r(s, { column: t, item: e, isTitle: !0 }),
55
- secondaryText: i !== void 0 && /* @__PURE__ */ r(s, { column: i, item: e, isTitle: !0 }),
56
- trailingBlock: o,
57
- trailingBlockType: "title-actions"
58
- }
59
- ),
60
- /* @__PURE__ */ r(w, {})
61
- ] });
62
- }, s = ({ item: e, column: t, isTitle: i = !1 }) => t.cellTemplate ? t.cellTemplate({ row: { original: e } }) : i ? /* @__PURE__ */ r(
63
- l,
64
- {
65
- id: `tip_${t.id}_${e[t.accessor]}`,
66
- text: e[t.accessor],
67
- children: /* @__PURE__ */ r("span", { className: n.title, children: e[t.accessor] })
68
- }
69
- ) : /* @__PURE__ */ r(
70
- l,
71
- {
72
- id: `tip_${t.id}_${e[t.accessor]}`,
73
- text: e[t.accessor],
74
- children: /* @__PURE__ */ r(y, { level: 2, themeColor: "text-primary-on-background", className: n.font, children: e[t.accessor] })
75
- }
76
- );
77
- export {
78
- O as G,
79
- n as s
80
- };
@@ -1,113 +0,0 @@
1
- import { a as D, c as M } from "./isArray-2zMxXFEr.js";
2
- var v, h;
3
- function T() {
4
- if (h) return v;
5
- h = 1;
6
- function e(r) {
7
- var t = typeof r;
8
- return r != null && (t == "object" || t == "function");
9
- }
10
- return v = e, v;
11
- }
12
- var f, l;
13
- function J() {
14
- if (l) return f;
15
- l = 1;
16
- var e = D(), r = T(), t = "[object AsyncFunction]", a = "[object Function]", n = "[object GeneratorFunction]", u = "[object Proxy]";
17
- function s(o) {
18
- if (!r(o))
19
- return !1;
20
- var i = e(o);
21
- return i == a || i == n || i == t || i == u;
22
- }
23
- return f = s, f;
24
- }
25
- var _, j;
26
- function V() {
27
- if (j) return _;
28
- j = 1;
29
- var e = M(), r = e["__core-js_shared__"];
30
- return _ = r, _;
31
- }
32
- var g, I;
33
- function m() {
34
- if (I) return g;
35
- I = 1;
36
- var e = V(), r = function() {
37
- var a = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
38
- return a ? "Symbol(src)_1." + a : "";
39
- }();
40
- function t(a) {
41
- return !!r && r in a;
42
- }
43
- return g = t, g;
44
- }
45
- var p, O;
46
- function w() {
47
- if (O) return p;
48
- O = 1;
49
- var e = Function.prototype, r = e.toString;
50
- function t(a) {
51
- if (a != null) {
52
- try {
53
- return r.call(a);
54
- } catch {
55
- }
56
- try {
57
- return a + "";
58
- } catch {
59
- }
60
- }
61
- return "";
62
- }
63
- return p = t, p;
64
- }
65
- var b, R;
66
- function C() {
67
- if (R) return b;
68
- R = 1;
69
- var e = J(), r = m(), t = T(), a = w(), n = /[\\^$.*+?()[\]{}|]/g, u = /^\[object .+?Constructor\]$/, s = Function.prototype, o = Object.prototype, i = s.toString, k = o.hasOwnProperty, P = RegExp(
70
- "^" + i.call(k).replace(n, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
71
- );
72
- function x(c) {
73
- if (!t(c) || r(c))
74
- return !1;
75
- var $ = e(c) ? P : u;
76
- return $.test(a(c));
77
- }
78
- return b = x, b;
79
- }
80
- var d, N;
81
- function E() {
82
- if (N) return d;
83
- N = 1;
84
- function e(r, t) {
85
- return r?.[t];
86
- }
87
- return d = e, d;
88
- }
89
- var q, S;
90
- function G() {
91
- if (S) return q;
92
- S = 1;
93
- var e = C(), r = E();
94
- function t(a, n) {
95
- var u = r(a, n);
96
- return e(u) ? u : void 0;
97
- }
98
- return q = t, q;
99
- }
100
- var y, F;
101
- function H() {
102
- if (F) return y;
103
- F = 1;
104
- var e = G(), r = M(), t = e(r, "Map");
105
- return y = t, y;
106
- }
107
- export {
108
- H as a,
109
- w as b,
110
- J as c,
111
- T as d,
112
- G as r
113
- };
@@ -1,14 +0,0 @@
1
- var r, e;
2
- function i() {
3
- if (e) return r;
4
- e = 1;
5
- function n(u, o) {
6
- return function(t) {
7
- return u(o(t));
8
- };
9
- }
10
- return r = n, r;
11
- }
12
- export {
13
- i as r
14
- };