@hortiview/shared-components 0.0.9195 → 0.0.9279
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 → Iconify-DoU6pP1o.js} +73 -67
- package/dist/{_Map-2-rfNHMr.js → _Map-DKsHX-kc.js} +2 -2
- package/dist/{_baseToString-xTcv8tEN.js → _baseToString-dkhmFwqS.js} +1 -1
- package/dist/{_equalByTag-Bi6Uk01d.js → _equalByTag-BZEJl6ST.js} +2 -2
- package/dist/components/BaseView/BaseView.js +45 -37
- package/dist/components/BasicHeading/BasicHeading.js +1 -1
- package/dist/components/BlockView/BlockView.js +15 -15
- package/dist/components/BlockView/BlockView.test.js +4 -4
- package/dist/components/ChipCard/ChipCard.js +11 -9
- package/dist/components/ContextMenu/ContextMenu.js +31 -31
- package/dist/components/ContextMenu/ContextMenu.test.js +17 -17
- package/dist/components/DeleteModal/DeleteModal.js +42 -33
- package/dist/components/EmptyView/EmptyView.js +21 -13
- package/dist/components/Filter/Filter.js +4 -4
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +13 -4
- package/dist/components/FormComponents/FormSelect/FormSelect.js +87 -78
- package/dist/components/FormComponents/FormSlider/FormSlider.js +14 -13
- package/dist/components/FormComponents/FormText/FormText.js +36 -33
- package/dist/components/GenericTable/GenericTable.js +3 -3
- package/dist/components/HashTabView/HashTabView.js +68 -57
- package/dist/components/Iconify/Iconify.js +2 -2
- package/dist/components/Iconify/Iconify.test.js +1 -1
- package/dist/components/ListArea/ListArea.js +174 -165
- package/dist/components/ListArea/ListAreaService.d.ts +2 -0
- package/dist/components/ListArea/ListAreaService.js +42 -32
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +1 -1
- package/dist/components/Modal/Modal.js +3 -2
- package/dist/components/SearchBar/SearchBar.js +16 -15
- package/dist/enums/AvailableCustomIcons.d.ts +20 -14
- package/dist/enums/AvailableCustomIcons.js +1 -1
- package/dist/{get-DAwLfiRB.js → get-BJn2Enx7.js} +1 -1
- package/dist/{iconify.module-D_I3-4iU.js → iconify.module-Cru5NS2X.js} +5 -5
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -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-DoU6pP1o.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,13 +1,14 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Modal as l } from "@element/react-components";
|
|
3
3
|
import { s as m } from "../../modal.module-BlDp1Wiq.js";
|
|
4
|
-
const
|
|
4
|
+
const d = (a) => /* @__PURE__ */ o(
|
|
5
5
|
l,
|
|
6
6
|
{
|
|
7
7
|
...a,
|
|
8
|
+
"data-testid": "modal",
|
|
8
9
|
className: `${a.className ?? ""} ${a.modalSize === "fullscreen" ? m.modal : ""}`
|
|
9
10
|
}
|
|
10
11
|
);
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
d as Modal
|
|
13
14
|
};
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Textfield as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Textfield as l, IconButton as s } from "@element/react-components";
|
|
3
3
|
import { s as c } from "../../searchBar.module-9gKyrZRT.js";
|
|
4
|
-
const
|
|
4
|
+
const p = ({
|
|
5
5
|
className: i = "",
|
|
6
|
-
dense:
|
|
7
|
-
searchTerm:
|
|
8
|
-
setSearchTerm:
|
|
6
|
+
dense: r = !1,
|
|
7
|
+
searchTerm: t,
|
|
8
|
+
setSearchTerm: a,
|
|
9
9
|
placeholder: n
|
|
10
|
-
}) => /* @__PURE__ */
|
|
11
|
-
|
|
10
|
+
}) => /* @__PURE__ */ o(
|
|
11
|
+
l,
|
|
12
12
|
{
|
|
13
|
+
"data-testid": "search-bar-input",
|
|
13
14
|
className: `${i ?? ""} ${c.searchbar}`,
|
|
14
|
-
dense:
|
|
15
|
+
dense: r,
|
|
15
16
|
variant: "outlined",
|
|
16
17
|
placeholder: n,
|
|
17
|
-
value:
|
|
18
|
-
onChange: (
|
|
18
|
+
value: t,
|
|
19
|
+
onChange: (e) => a(e.target.value),
|
|
19
20
|
fullWidth: !0,
|
|
20
|
-
trailingIcon: /* @__PURE__ */
|
|
21
|
+
trailingIcon: /* @__PURE__ */ o(
|
|
21
22
|
s,
|
|
22
23
|
{
|
|
23
|
-
icon:
|
|
24
|
-
onClick: () =>
|
|
24
|
+
icon: t ? "close" : "search",
|
|
25
|
+
onClick: () => t ? a("") : void 0
|
|
25
26
|
}
|
|
26
27
|
)
|
|
27
28
|
}
|
|
28
29
|
);
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
p as SearchBar
|
|
31
32
|
};
|
|
@@ -21,18 +21,24 @@ export declare enum AvailableCustomIcons {
|
|
|
21
21
|
'pd-scouting' = 16,
|
|
22
22
|
'season-end' = 17,
|
|
23
23
|
'vertical-farming' = 18,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
'crop-independent' = 19,
|
|
25
|
+
block = 20,
|
|
26
|
+
cloud = 21,
|
|
27
|
+
farm = 22,
|
|
28
|
+
fertigation = 23,
|
|
29
|
+
glasshouse = 24,
|
|
30
|
+
greenhouse = 25,
|
|
31
|
+
hortiview = 26,
|
|
32
|
+
orchard = 27,
|
|
33
|
+
potato = 28,
|
|
34
|
+
season = 29,
|
|
35
|
+
subscription = 30,
|
|
36
|
+
tomato = 31,
|
|
37
|
+
weather = 32,
|
|
38
|
+
wind = 33,
|
|
39
|
+
apple = 34,
|
|
40
|
+
banana = 35,
|
|
41
|
+
berries = 36,
|
|
42
|
+
citrus = 37,
|
|
43
|
+
grapes = 38
|
|
38
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var d = /* @__PURE__ */ ((r) => (r[r["battery-0"] = 0] = "battery-0", r[r["battery-100"] = 1] = "battery-100", r[r["battery-20"] = 2] = "battery-20", r[r["battery-50"] = 3] = "battery-50", r[r["battery-80"] = 4] = "battery-80", r[r["block-delete"] = 5] = "block-delete", r[r["cloud-rain"] = 6] = "cloud-rain", r[r["cloud-sunny"] = 7] = "cloud-sunny", r[r["crop-health"] = 8] = "crop-health", r[r["farm-delete"] = 9] = "farm-delete", r[r["farm-management"] = 10] = "farm-management", r[r["greenhouse-delete"] = 11] = "greenhouse-delete", r[r["harvest-quality"] = 12] = "harvest-quality", r[r["manage-labour"] = 13] = "manage-labour", r[r["open-field"] = 14] = "open-field", r[r["other-category"] = 15] = "other-category", r[r["pd-scouting"] = 16] = "pd-scouting", r[r["season-end"] = 17] = "season-end", r[r["vertical-farming"] = 18] = "vertical-farming", r[r.block =
|
|
1
|
+
var d = /* @__PURE__ */ ((r) => (r[r["battery-0"] = 0] = "battery-0", r[r["battery-100"] = 1] = "battery-100", r[r["battery-20"] = 2] = "battery-20", r[r["battery-50"] = 3] = "battery-50", r[r["battery-80"] = 4] = "battery-80", r[r["block-delete"] = 5] = "block-delete", r[r["cloud-rain"] = 6] = "cloud-rain", r[r["cloud-sunny"] = 7] = "cloud-sunny", r[r["crop-health"] = 8] = "crop-health", r[r["farm-delete"] = 9] = "farm-delete", r[r["farm-management"] = 10] = "farm-management", r[r["greenhouse-delete"] = 11] = "greenhouse-delete", r[r["harvest-quality"] = 12] = "harvest-quality", r[r["manage-labour"] = 13] = "manage-labour", r[r["open-field"] = 14] = "open-field", r[r["other-category"] = 15] = "other-category", r[r["pd-scouting"] = 16] = "pd-scouting", r[r["season-end"] = 17] = "season-end", r[r["vertical-farming"] = 18] = "vertical-farming", r[r["crop-independent"] = 19] = "crop-independent", r[r.block = 20] = "block", r[r.cloud = 21] = "cloud", r[r.farm = 22] = "farm", r[r.fertigation = 23] = "fertigation", r[r.glasshouse = 24] = "glasshouse", r[r.greenhouse = 25] = "greenhouse", r[r.hortiview = 26] = "hortiview", r[r.orchard = 27] = "orchard", r[r.potato = 28] = "potato", r[r.season = 29] = "season", r[r.subscription = 30] = "subscription", r[r.tomato = 31] = "tomato", r[r.weather = 32] = "weather", r[r.wind = 33] = "wind", r[r.apple = 34] = "apple", r[r.banana = 35] = "banana", r[r.berries = 36] = "berries", r[r.citrus = 37] = "citrus", r[r.grapes = 38] = "grapes", r))(d || {});
|
|
2
2
|
export {
|
|
3
3
|
d as AvailableCustomIcons
|
|
4
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as a } from "./_commonjsHelpers-CT_km90n.js";
|
|
2
2
|
import { a as i } from "./isArray-thIeLpc5.js";
|
|
3
|
-
import { i as e, _ as o, a as f } from "./_baseToString-
|
|
3
|
+
import { i as e, _ as o, a as f } from "./_baseToString-dkhmFwqS.js";
|
|
4
4
|
var g = i, y = e, u = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/;
|
|
5
5
|
function _(r, t) {
|
|
6
6
|
if (g(r))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./assets/iconify.css";
|
|
2
|
-
import { a as T, _ as P, b as V } from "./_Map-
|
|
2
|
+
import { a as T, _ as P, b as V } from "./_Map-DKsHX-kc.js";
|
|
3
3
|
import { c as b, _, b as l, e as h } from "./isArray-thIeLpc5.js";
|
|
4
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) {
|
|
@@ -71,10 +71,10 @@ const er = "_image_178sv_1", cr = {
|
|
|
71
71
|
};
|
|
72
72
|
export {
|
|
73
73
|
or as _,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
nr as a,
|
|
75
|
+
ir as b,
|
|
76
|
+
je as c,
|
|
77
77
|
Je as d,
|
|
78
|
-
|
|
78
|
+
sr as i,
|
|
79
79
|
cr as s
|
|
80
80
|
};
|
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-DoU6pP1o.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";
|
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.9279",
|
|
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>",
|