@leapdevuk/component-toolbox 0.0.129 → 0.0.130

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.130 (2025-07-17)
4
+
5
+ ### Features
6
+
7
+ - Utility function to format a regional local date to UTC convertLocalDateToUTCDateTime
8
+
9
+ ## 0.0.129 (2025-07-17)
10
+
11
+ ### Bug Fixes
12
+
13
+ - Updated lctGetFormattedLocalDateTime to accurately calculate start/end of day
14
+
3
15
  ## 0.0.128 (2025-07-16)
4
16
 
5
17
  ### Documentation
@@ -235,7 +235,6 @@ export declare const formatAsDBDate: (date: Date) => string;
235
235
  * It supports both date-only and datetime formats, and can handle UTC dates.
236
236
  * It also allows for formatting the start or end of the day.
237
237
  * @param inputValue (string | Date | undefined): The date or datetime value to format.
238
- * @param locale (Locale | undefined): The locale to use for formatting. If undefined, it will not format the date.
239
238
  * @param outputAsStartOfDay (boolean): If true, formats the date to the start of the day.
240
239
  * @param outputAsEndOfDay (boolean): If true, formats the date to the end of the day.
241
240
  * @returns (string): A formatted date or datetime string. If the input value is invalid or locale is undefined, it returns an empty string.
@@ -249,7 +248,7 @@ export declare const formatAsDBDate: (date: Date) => string;
249
248
  * const outputAsEndOfDay = convertLocalDateToUTCDateTime(new Date(), enGB, true, false, true, undefined, false, true); // Returns "01/01/2023 23:59"
250
249
  * ```
251
250
  */
252
- export declare const convertLocalDateToUTCDateTime: (inputValue?: string | Date, locale?: Locale, outputAsStartOfDay?: boolean, outputAsEndOfDay?: boolean) => string;
251
+ export declare const convertLocalDateToUTCDateTime: (inputValue?: string | Date, outputAsStartOfDay?: boolean, outputAsEndOfDay?: boolean) => string;
253
252
  /**
254
253
  * This enum defines the types of buttons available in the dialog.
255
254
  * It is used to identify which button was clicked by the user.