@hortiview/shared-components 2.8.2 → 2.8.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [2.8.4](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.3...v2.8.4) (2025-11-12)
2
+
3
+ ### Code Refactoring
4
+
5
+ * remove hours12 from TIME_FORMAT ([3e9cf7e](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/3e9cf7e626532ab4f18a40c6014a783796fe1218))
6
+
7
+ ## [2.8.3](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.2...v2.8.3) (2025-11-07)
8
+
9
+ ### Code Refactoring
10
+
11
+ * center text of info card ([be54789](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/be54789eb0bf0222c446dc0b0af4df0a7d318bd2))
12
+
1
13
  ## [2.8.2](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.1...v2.8.2) (2025-11-07)
2
14
 
3
15
  ### Code Refactoring
@@ -1 +1 @@
1
- ._database_1lcgt_1{color:var(--lmnt-theme-secondary);animation:_spin_1lcgt_1 4s linear infinite}@keyframes _spin_1lcgt_1{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}._done_1lcgt_16{color:var(--lmnt-theme-success)}._iot_1lcgt_20,._platform_1lcgt_21,._other_1lcgt_22{color:var(--lmnt-theme-danger)}._crossedOut_1lcgt_26{position:relative;display:inline-block}._crossedOut_1lcgt_26:after{content:"";position:absolute;width:3rem;height:.25rem;left:50%;top:50%;background:var(--lmnt-theme-danger-on-surface);box-shadow:0 0 0 .125rem var(--lmnt-theme-background);transform:translate(-50%,calc(-50% - .25rem)) rotate(45deg);transform-origin:center;z-index:2}._fullHeight_1lcgt_45{height:100%}
1
+ ._database_x7426_1{color:var(--lmnt-theme-secondary);animation:_spin_x7426_1 4s linear infinite}@keyframes _spin_x7426_1{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}._done_x7426_16{color:var(--lmnt-theme-success)}._iot_x7426_20,._platform_x7426_21,._other_x7426_22{color:var(--lmnt-theme-danger)}._crossedOut_x7426_26{position:relative;display:inline-block}._crossedOut_x7426_26:after{content:"";position:absolute;width:3rem;height:.25rem;left:50%;top:50%;background:var(--lmnt-theme-danger-on-surface);box-shadow:0 0 0 .125rem var(--lmnt-theme-background);transform:translate(-50%,calc(-50% - .25rem)) rotate(45deg);transform-origin:center;z-index:2}._fullHeight_x7426_45{height:100%}._centerText_x7426_49{text-align:center}
@@ -1,34 +1,35 @@
1
- import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
- import { C as d, a as h, b as _ } from "../../index.es-CDMu_yu0.js";
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { C as d, a as _, b as h } from "../../index.es-CDMu_yu0.js";
3
3
  import { G as m } from "../../index.es-Dw1eih7R.js";
4
- import { P as g } from "../../index.es-DFFyENnI.js";
4
+ import { P as f } from "../../index.es-DFFyENnI.js";
5
5
  import { T as s } from "../../index.es-1zrFd4Te.js";
6
- import { Iconify as f } from "../Iconify/Iconify.js";
7
- import '../../assets/InfoCard.css';const u = "_database_1lcgt_1", p = "_spin_1lcgt_1", C = "_done_1lcgt_16", y = "_iot_1lcgt_20", b = "_platform_1lcgt_21", H = "_other_1lcgt_22", N = "_crossedOut_1lcgt_26", k = "_fullHeight_1lcgt_45", n = {
8
- database: u,
6
+ import { Iconify as u } from "../Iconify/Iconify.js";
7
+ import '../../assets/InfoCard.css';const x = "_database_x7426_1", p = "_spin_x7426_1", g = "_done_x7426_16", C = "_iot_x7426_20", y = "_platform_x7426_21", b = "_other_x7426_22", N = "_crossedOut_x7426_26", H = "_fullHeight_x7426_45", T = "_centerText_x7426_49", n = {
8
+ database: x,
9
9
  spin: p,
10
- done: C,
11
- iot: y,
12
- platform: b,
13
- other: H,
10
+ done: g,
11
+ iot: C,
12
+ platform: y,
13
+ other: b,
14
14
  crossedOut: N,
15
- fullHeight: k
15
+ fullHeight: H,
16
+ centerText: T
16
17
  }, G = ({
17
- title: e,
18
+ title: t,
18
19
  subtitle: c,
19
20
  type: a,
20
- isOutlined: l = !0,
21
+ isOutlined: i = !0,
21
22
  isFullHeight: r = !1
22
23
  }) => {
23
24
  const o = r ? n.fullHeight : "";
24
- return /* @__PURE__ */ t(
25
+ return /* @__PURE__ */ e(
25
26
  d,
26
27
  {
27
- variant: l ? "outlined" : "flat",
28
+ variant: i ? "outlined" : "flat",
28
29
  "data-testid": `${a}-health-check-failed-card`,
29
30
  bodyAlignment: "centered",
30
31
  height: r ? "100%" : "auto",
31
- children: /* @__PURE__ */ t(h, { className: o, children: /* @__PURE__ */ t(g, { variant: "airy", className: o, children: /* @__PURE__ */ t(_, { className: o, children: /* @__PURE__ */ i(
32
+ children: /* @__PURE__ */ e(_, { className: o, children: /* @__PURE__ */ e(f, { variant: "airy", className: o, children: /* @__PURE__ */ e(h, { className: o, children: /* @__PURE__ */ l(
32
33
  m,
33
34
  {
34
35
  gap: "none",
@@ -36,22 +37,23 @@ import '../../assets/InfoCard.css';const u = "_database_1lcgt_1", p = "_spin_1lc
36
37
  secondaryAlign: "center",
37
38
  direction: "vertical",
38
39
  fullWidth: !0,
40
+ className: n.centerText,
39
41
  children: [
40
- /* @__PURE__ */ t(x, { type: a }),
41
- /* @__PURE__ */ t(s, { level: 1, bold: !0, children: e }),
42
- /* @__PURE__ */ t(s, { level: 2, themeColor: "text-secondary-on-background", children: c })
42
+ /* @__PURE__ */ e(v, { type: a }),
43
+ /* @__PURE__ */ e(s, { level: 1, bold: !0, children: t }),
44
+ /* @__PURE__ */ e(s, { level: 2, themeColor: "text-secondary-on-background", children: c })
43
45
  ]
44
46
  }
45
47
  ) }) }) })
46
48
  }
47
49
  );
48
- }, v = {
50
+ }, k = {
49
51
  database: "sync",
50
52
  iot: "settings_input_antenna",
51
53
  platform: "engineering",
52
54
  done: "sunny-check",
53
55
  other: "error"
54
- }, x = ({ type: e }) => /* @__PURE__ */ t("span", { className: e === "iot" ? n.crossedOut : "", children: /* @__PURE__ */ t(f, { icon: v[e], className: n[e], iconSize: "xlarge" }) });
56
+ }, v = ({ type: t }) => /* @__PURE__ */ e("span", { className: t === "iot" ? n.crossedOut : "", children: /* @__PURE__ */ e(u, { icon: k[t], className: n[t], iconSize: "xlarge" }) });
55
57
  export {
56
58
  G as InfoCard
57
59
  };
@@ -94,7 +94,7 @@ c("Services Test", () => {
94
94
  ...l,
95
95
  timeZone: "Europe/Istanbul"
96
96
  });
97
- o(s).toBe("ÖS 07:01");
97
+ o(s).toBe("19:01");
98
98
  }), e('should format date correctly for locale "gb', () => {
99
99
  const s = r(t, "en-GB", n);
100
100
  o(s).toBe("20/01/2025");
@@ -9,12 +9,10 @@ export declare const DATE_FORMAT: {
9
9
  export declare const TIME_FORMAT: {
10
10
  readonly hour: "2-digit";
11
11
  readonly minute: "2-digit";
12
- readonly hour12: true;
13
12
  };
14
13
  export declare const DATE_TIME_FORMAT: {
15
14
  readonly hour: "2-digit";
16
15
  readonly minute: "2-digit";
17
- readonly hour12: true;
18
16
  readonly day: "2-digit";
19
17
  readonly month: "2-digit";
20
18
  readonly year: "numeric";
@@ -1,17 +1,16 @@
1
- const t = {
1
+ const i = {
2
2
  day: "2-digit",
3
3
  month: "2-digit",
4
4
  year: "numeric"
5
- }, i = {
5
+ }, t = {
6
6
  hour: "2-digit",
7
- minute: "2-digit",
8
- hour12: !0
9
- }, o = {
10
- ...t,
11
- ...i
7
+ minute: "2-digit"
8
+ }, T = {
9
+ ...i,
10
+ ...t
12
11
  };
13
12
  export {
14
- t as DATE_FORMAT,
15
- o as DATE_TIME_FORMAT,
16
- i as TIME_FORMAT
13
+ i as DATE_FORMAT,
14
+ T as DATE_TIME_FORMAT,
15
+ t as TIME_FORMAT
17
16
  };
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.8.2",
4
+ "version": "2.8.4",
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>",