@hortiview/shared-components 2.8.3 → 2.8.5

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.5](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.4...v2.8.5) (2025-11-12)
2
+
3
+ ### Bug Fixes
4
+
5
+ * add second to TIME_FORMAT ([e2bf47d](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/e2bf47d14876018362bb6d1b492d8cbf2a9163c1))
6
+
7
+ ## [2.8.4](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.3...v2.8.4) (2025-11-12)
8
+
9
+ ### Code Refactoring
10
+
11
+ * remove hours12 from TIME_FORMAT ([3e9cf7e](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/3e9cf7e626532ab4f18a40c6014a783796fe1218))
12
+
1
13
  ## [2.8.3](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.2...v2.8.3) (2025-11-07)
2
14
 
3
15
  ### Code Refactoring
@@ -1,6 +1,6 @@
1
+ import { DATE_FORMAT as n, TIME_FORMAT as l } from "../types/Time.js";
1
2
  import { getBlockNumberByDto as i } from "./BlockService.js";
2
3
  import { capitalizeFirstLetters as d, trimLeadingAndTrailingSpaces as a, getFormattedDateTime as r } from "./UtilService.js";
3
- import { DATE_FORMAT as n, TIME_FORMAT as l } from "../types/Time.js";
4
4
  import { d as c, t as e, g as o } from "../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  c("Services Test", () => {
6
6
  c("capitalizeFirstLetters", () => {
@@ -76,7 +76,7 @@ c("Services Test", () => {
76
76
  ...l,
77
77
  timeZone: "America/New_York"
78
78
  });
79
- o(s).toBe("11:01 AM");
79
+ o(s).toBe("11:01:50 AM");
80
80
  }), e('should format date correctly for locale "es', () => {
81
81
  const s = r(t, "es", n);
82
82
  o(s).toBe("20/01/2025");
@@ -85,7 +85,7 @@ c("Services Test", () => {
85
85
  ...l,
86
86
  timeZone: "America/Mexico_City"
87
87
  });
88
- o(s).toBe("10:01 a.m.");
88
+ o(s).toBe("10:01:50 a.m.");
89
89
  }), e('should format date correctly for locale "tr', () => {
90
90
  const s = r(t, "tr", n);
91
91
  o(s).toBe("20.01.2025");
@@ -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:50");
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,12 @@ 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;
12
+ readonly second: "2-digit";
13
13
  };
14
14
  export declare const DATE_TIME_FORMAT: {
15
15
  readonly hour: "2-digit";
16
16
  readonly minute: "2-digit";
17
- readonly hour12: true;
17
+ readonly second: "2-digit";
18
18
  readonly day: "2-digit";
19
19
  readonly month: "2-digit";
20
20
  readonly year: "numeric";
@@ -1,17 +1,17 @@
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
7
  minute: "2-digit",
8
- hour12: !0
9
- }, o = {
10
- ...t,
11
- ...i
8
+ second: "2-digit"
9
+ }, d = {
10
+ ...i,
11
+ ...t
12
12
  };
13
13
  export {
14
- t as DATE_FORMAT,
15
- o as DATE_TIME_FORMAT,
16
- i as TIME_FORMAT
14
+ i as DATE_FORMAT,
15
+ d as DATE_TIME_FORMAT,
16
+ t as TIME_FORMAT
17
17
  };
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.3",
4
+ "version": "2.8.5",
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>",