@hortiview/shared-components 0.0.6320 → 0.0.6338

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 (37) hide show
  1. package/dist/assets/DeleteModal.css +1 -1
  2. package/dist/assets/FormSelect.css +1 -1
  3. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  4. package/dist/components/BaseView/BaseView.test.js +1 -1
  5. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  6. package/dist/components/BlockView/BlockView.test.js +1 -1
  7. package/dist/components/ContextMenu/ContextMenu.test.js +1 -1
  8. package/dist/components/DeleteModal/DeleteModal.d.ts +8 -2
  9. package/dist/components/DeleteModal/DeleteModal.js +75 -58
  10. package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
  11. package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
  12. package/dist/components/EmptyView/EmptyView.test.js +1 -1
  13. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
  14. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +1 -1
  15. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +1 -1
  16. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +1 -1
  17. package/dist/components/FormComponents/FormSelect/FormSelect.js +1482 -85
  18. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3049 -40
  19. package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +18 -0
  20. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +9 -0
  21. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +1 -1
  22. package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
  23. package/dist/components/GenericTable/GenericTable.test.js +1 -1
  24. package/dist/components/HashTabView/HashTabView.test.js +1 -1
  25. package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
  26. package/dist/components/Iconify/Iconify.test.js +1 -1
  27. package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
  28. package/dist/components/ListArea/ListArea.test.js +1 -1
  29. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  30. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
  31. package/dist/components/Scrollbar/scrollbar.test.js +1 -1
  32. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  33. package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
  34. package/dist/{react.esm-D9-uytwS.js → react.esm-BBemCHUU.js} +1 -0
  35. package/dist/types/internal/ChangeValueType.d.ts +3 -0
  36. package/dist/types/internal/ChangeValueType.js +1 -0
  37. package/package.json +3 -3
@@ -0,0 +1,18 @@
1
+ import { ChangeValueType } from '../../../types/internal/ChangeValueType';
2
+ type TooltipTextProps = {
3
+ /**
4
+ * the selected option(s) of the select
5
+ */
6
+ value: ChangeValueType | ChangeValueType[] | undefined;
7
+ textKey: string;
8
+ valueKey: string;
9
+ };
10
+ /**
11
+ * creates the tooltip text for the select
12
+ * no option selected: undefined
13
+ * single select: the text of the selected option
14
+ * multi select: a list of the selected options
15
+ * @returns the tooltip text as string or JSX.Element
16
+ */
17
+ export declare const SelectTooltipText: ({ value, textKey, valueKey }: TooltipTextProps) => string | import("react/jsx-runtime").JSX.Element | undefined;
18
+ export {};
@@ -0,0 +1,9 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Group as n, TypoBody as p } from "@element/react-components";
3
+ const m = ({ value: r, textKey: i, valueKey: t }) => {
4
+ if (!(!r || r.length === 0))
5
+ return Array.isArray(r) ? /* @__PURE__ */ e(n, { direction: "vertical", gap: "dense", children: r?.map((o) => /* @__PURE__ */ e(p, { level: 2, children: o[i] }, o[t])) }) : r?.[i];
6
+ };
7
+ export {
8
+ m as SelectTooltipText
9
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { r as a, s as n } from "../../../react.esm-D9-uytwS.js";
2
+ import { r as a, s as n } from "../../../react.esm-BBemCHUU.js";
3
3
  import { FormSlider as l } from "./FormSlider.js";
4
4
  import { v as e, d as m, t as i, g as r } from "../../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  const o = e.fn();
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { r as s, s as r, f as d } from "../../../react.esm-D9-uytwS.js";
2
+ import { r as s, s as r, f as d } from "../../../react.esm-BBemCHUU.js";
3
3
  import { FormText as o } from "./FormText.js";
4
4
  import { v as a, d as i, t as l, g as e } from "../../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  const m = a.fn();
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
- import { r as i, s as e } from "../../react.esm-D9-uytwS.js";
2
+ import { r as i, s as e } from "../../react.esm-BBemCHUU.js";
3
3
  import { GenericTable as c } from "./GenericTable.js";
4
4
  import { d as B, t as d, g as t, v as r } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  B("GenericTable Test", () => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, Fragment as o } from "react/jsx-runtime";
2
- import { r as a, s as e, f as r } from "../../react.esm-D9-uytwS.js";
2
+ import { r as a, s as e, f as r } from "../../react.esm-BBemCHUU.js";
3
3
  import { HashTabView as c } from "./HashTabView.js";
4
4
  import { d as h, t as l, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  const m = [
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { r as i, s as t, f as T } from "../../react.esm-D9-uytwS.js";
2
+ import { r as i, s as t, f as T } from "../../react.esm-BBemCHUU.js";
3
3
  import { HeaderFilter as s } from "./HeaderFilter.js";
4
4
  import { d as c, t as o, v as l, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  c("HeaderFilter-Test", () => {
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { Iconify as c } from "./Iconify.js";
3
3
  import { AvailableCustomIcons as l } from "../../enums/AvailableCustomIcons.js";
4
- import { r, w as s, s as i } from "../../react.esm-D9-uytwS.js";
4
+ import { r, w as s, s as i } from "../../react.esm-BBemCHUU.js";
5
5
  import { d as f, t as a, g as o } from "../../vi.JYQecGiw-BbUbJcT8.js";
6
6
  f("Iconify Test", async () => {
7
7
  const m = Object.keys(l).filter((e) => isNaN(Number(e)));
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { r as l, s as t } from "../../react.esm-D9-uytwS.js";
2
+ import { r as l, s as t } from "../../react.esm-BBemCHUU.js";
3
3
  import { InfoGroup as r } from "./InfoGroup.js";
4
4
  import { d as s, t as i, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  s("InfoGroup Test", () => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, Fragment as i } from "react/jsx-runtime";
2
2
  import { TypoButton as p } from "@element/react-components";
3
- import { r as s, s as a, f as u } from "../../react.esm-D9-uytwS.js";
3
+ import { r as s, s as a, f as u } from "../../react.esm-BBemCHUU.js";
4
4
  import { ListArea as c } from "./ListArea.js";
5
5
  import { g as h } from "../../ListAreaService-zxVNvD59.js";
6
6
  import { d as m, t as n, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { s as r, B as n } from "../../../BigLoadingSpinner-Df2k3xOD.js";
3
- import { r as i, s as e } from "../../../react.esm-D9-uytwS.js";
3
+ import { r as i, s as e } from "../../../react.esm-BBemCHUU.js";
4
4
  import { d as g, t as s, g as t } from "../../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  g("BigLoadingSpinner Test", () => {
6
6
  s("render BigLoadingSpinner with custom loading text", () => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { r as o, s as e } from "../../../react.esm-D9-uytwS.js";
2
+ import { r as o, s as e } from "../../../react.esm-BBemCHUU.js";
3
3
  import { LoadingSpinner as r } from "./LoadingSpinner.js";
4
4
  import { d as a, t as i, g as n } from "../../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  a("LoadingSpinner Test", () => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { r as e, s as t } from "../../react.esm-D9-uytwS.js";
2
+ import { r as e, s as t } from "../../react.esm-BBemCHUU.js";
3
3
  import { ScrollbarY as d, ScrollbarX as l } from "./Scrollbar.js";
4
4
  import { d as c, t as a, g as o } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  c("Scrollbar", () => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { r, s as t, f as h, a as l } from "../../react.esm-D9-uytwS.js";
2
+ import { r, s as t, f as h, a as l } from "../../react.esm-BBemCHUU.js";
3
3
  import { SearchBar as s } from "./SearchBar.js";
4
4
  import { d as m, t as o, v as n, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  m("SearchBar Test", () => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { r } from "../../react.esm-D9-uytwS.js";
2
+ import { r } from "../../react.esm-BBemCHUU.js";
3
3
  import { VerticalDivider as s } from "./VerticalDivider.js";
4
4
  import { d as o, t as l, g as i } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  o("VerticalDivider Test", () => {
@@ -12742,6 +12742,7 @@ if ((typeof process > "u" || !process.env?.RTL_SKIP_AUTO_CLEANUP) && (typeof aft
12742
12742
  export {
12743
12743
  Ft as a,
12744
12744
  re as f,
12745
+ Y as g,
12745
12746
  X1 as r,
12746
12747
  K1 as s,
12747
12748
  ix as w
@@ -0,0 +1,3 @@
1
+ export type ChangeValueType = {
2
+ [key: string]: string;
3
+ };
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.6320",
4
+ "version": "0.0.6338",
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>",
@@ -28,8 +28,6 @@
28
28
  "build-storybook": "storybook build"
29
29
  },
30
30
  "peerDependencies": {
31
- "@element/react-components": "^5.42.4",
32
- "@element/themes": "^5.44.4",
33
31
  "lodash": "^4.17.21",
34
32
  "react": "^18.3.1",
35
33
  "react-dom": "^18.3.1",
@@ -49,6 +47,7 @@
49
47
  "@storybook/test": "^8.1.6",
50
48
  "@testing-library/jest-dom": "^6.4.2",
51
49
  "@testing-library/react": "^14.2.1",
50
+ "@testing-library/user-event": "^14.5.2",
52
51
  "@types/lodash": "^4.17.0",
53
52
  "@types/node": "^20.11.26",
54
53
  "@types/react": "^18.2.64",
@@ -68,6 +67,7 @@
68
67
  "react": "^18.3.1",
69
68
  "react-dom": "^18.3.1",
70
69
  "react-hook-form": "^7.51.2",
70
+ "react-tooltip": "^5.26.4",
71
71
  "storybook": "^8.1.6",
72
72
  "typescript": "^5.2.2",
73
73
  "vite": "^5.1.6",