@genesislcap/expression-builder 14.252.0 → 14.253.0

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.
@@ -659,6 +659,41 @@
659
659
  }
660
660
  ]
661
661
  },
662
+ {
663
+ "kind": "javascript-module",
664
+ "path": "src/types/index.ts",
665
+ "declarations": [],
666
+ "exports": [
667
+ {
668
+ "kind": "js",
669
+ "name": "*",
670
+ "declaration": {
671
+ "name": "*",
672
+ "package": "./public.types"
673
+ }
674
+ },
675
+ {
676
+ "kind": "js",
677
+ "name": "*",
678
+ "declaration": {
679
+ "name": "*",
680
+ "package": "./private.types"
681
+ }
682
+ }
683
+ ]
684
+ },
685
+ {
686
+ "kind": "javascript-module",
687
+ "path": "src/types/private.types.ts",
688
+ "declarations": [],
689
+ "exports": []
690
+ },
691
+ {
692
+ "kind": "javascript-module",
693
+ "path": "src/types/public.types.ts",
694
+ "declarations": [],
695
+ "exports": []
696
+ },
662
697
  {
663
698
  "kind": "javascript-module",
664
699
  "path": "src/utils/data-model.ts",
@@ -768,7 +803,7 @@
768
803
  }
769
804
  }
770
805
  ],
771
- "description": "Gets the string representation from a `Date` which is the format a `date` input uses.\n`yyyy-mm-dd`"
806
+ "description": "Gets the string representation from a `Date` which is the format a `date` input uses.\n`yyyy-mm-dd`\nUses UTC methods to ensure consistent output regardless of timezone."
772
807
  },
773
808
  {
774
809
  "kind": "function",
@@ -781,7 +816,7 @@
781
816
  }
782
817
  }
783
818
  ],
784
- "description": "Gets the string representation from a `Date` which is the format a `datetime-local` input uses.\n`yyyy-mm-ddThh:mm:ss`"
819
+ "description": "Gets the string representation from a `Date` which is the format a `datetime-local` input uses.\n`yyyy-mm-ddThh:mm:ss`\nUses UTC methods to ensure consistent output regardless of timezone."
785
820
  }
786
821
  ],
787
822
  "exports": [
@@ -908,41 +943,6 @@
908
943
  }
909
944
  ]
910
945
  },
911
- {
912
- "kind": "javascript-module",
913
- "path": "src/types/index.ts",
914
- "declarations": [],
915
- "exports": [
916
- {
917
- "kind": "js",
918
- "name": "*",
919
- "declaration": {
920
- "name": "*",
921
- "package": "./public.types"
922
- }
923
- },
924
- {
925
- "kind": "js",
926
- "name": "*",
927
- "declaration": {
928
- "name": "*",
929
- "package": "./private.types"
930
- }
931
- }
932
- ]
933
- },
934
- {
935
- "kind": "javascript-module",
936
- "path": "src/types/private.types.ts",
937
- "declarations": [],
938
- "exports": []
939
- },
940
- {
941
- "kind": "javascript-module",
942
- "path": "src/types/public.types.ts",
943
- "declarations": [],
944
- "exports": []
945
- },
946
946
  {
947
947
  "kind": "javascript-module",
948
948
  "path": "src/main/expression-group/expression-group.styles.ts",
@@ -1,12 +1,14 @@
1
1
  /**
2
2
  * Gets the string representation from a `Date` which is the format a `date` input uses.
3
3
  * `yyyy-mm-dd`
4
+ * Uses UTC methods to ensure consistent output regardless of timezone.
4
5
  * @alpha
5
6
  */
6
7
  export declare const formatDateString: (date: Date) => string;
7
8
  /**
8
9
  * Gets the string representation from a `Date` which is the format a `datetime-local` input uses.
9
10
  * `yyyy-mm-ddThh:mm:ss`
11
+ * Uses UTC methods to ensure consistent output regardless of timezone.
10
12
  * @alpha
11
13
  */
12
14
  export declare const formatDateTimeString: (date: Date) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../src/utils/formatting.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,SAAU,IAAI,WAK1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SAAU,IAAI,WAM9C,CAAC"}
1
+ {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../src/utils/formatting.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,SAAU,IAAI,WAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,SAAU,IAAI,WAM9C,CAAC"}
@@ -1,23 +1,25 @@
1
1
  /**
2
2
  * Gets the string representation from a `Date` which is the format a `date` input uses.
3
3
  * `yyyy-mm-dd`
4
+ * Uses UTC methods to ensure consistent output regardless of timezone.
4
5
  * @alpha
5
6
  */
6
7
  export const formatDateString = (date) => {
7
- const year = date.getFullYear();
8
- const month = String(date.getMonth() + 1).padStart(2, '0'); // Months are 0-indexed
9
- const day = String(date.getDate()).padStart(2, '0');
8
+ const year = date.getUTCFullYear();
9
+ const month = String(date.getUTCMonth() + 1).padStart(2, '0'); // Months are 0-indexed
10
+ const day = String(date.getUTCDate()).padStart(2, '0');
10
11
  return `${year}-${month}-${day}`;
11
12
  };
12
13
  /**
13
14
  * Gets the string representation from a `Date` which is the format a `datetime-local` input uses.
14
15
  * `yyyy-mm-ddThh:mm:ss`
16
+ * Uses UTC methods to ensure consistent output regardless of timezone.
15
17
  * @alpha
16
18
  */
17
19
  export const formatDateTimeString = (date) => {
18
20
  const datePart = formatDateString(date);
19
- const hours = String(date.getHours()).padStart(2, '0');
20
- const minutes = String(date.getMinutes()).padStart(2, '0');
21
- const seconds = String(date.getSeconds()).padStart(2, '0');
21
+ const hours = String(date.getUTCHours()).padStart(2, '0');
22
+ const minutes = String(date.getUTCMinutes()).padStart(2, '0');
23
+ const seconds = String(date.getUTCSeconds()).padStart(2, '0');
22
24
  return `${datePart}T${hours}:${minutes}:${seconds}`;
23
25
  };
@@ -170,6 +170,7 @@ declare type FieldTypes = TextInput | NumberInput | CheckboxInput | SelectInput
170
170
  /**
171
171
  * Gets the string representation from a `Date` which is the format a `date` input uses.
172
172
  * `yyyy-mm-dd`
173
+ * Uses UTC methods to ensure consistent output regardless of timezone.
173
174
  * @alpha
174
175
  */
175
176
  export declare const formatDateString: (date: Date) => string;
@@ -177,6 +178,7 @@ export declare const formatDateString: (date: Date) => string;
177
178
  /**
178
179
  * Gets the string representation from a `Date` which is the format a `datetime-local` input uses.
179
180
  * `yyyy-mm-ddThh:mm:ss`
181
+ * Uses UTC methods to ensure consistent output regardless of timezone.
180
182
  * @alpha
181
183
  */
182
184
  export declare const formatDateTimeString: (date: Date) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/expression-builder",
3
3
  "description": "Genesis Foundation Expression Builder",
4
- "version": "14.252.0",
4
+ "version": "14.253.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/expression-builder.d.ts",
@@ -62,5 +62,5 @@
62
62
  "access": "public"
63
63
  },
64
64
  "customElements": "dist/custom-elements.json",
65
- "gitHead": "892ad62fbba0bcd170dc61bc12c08064775257f3"
65
+ "gitHead": "fb4d5d95c8012d110b7e5ca82fc03a037fdb12ef"
66
66
  }