aq-fe-framework 0.1.446 → 0.1.448

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.
@@ -278,8 +278,14 @@ function utils_time_convertTimeStringToSeconds(time) {
278
278
  const [hours, minutes, seconds] = time.split(":").map(Number);
279
279
  return hours * 3600 + minutes * 60 + seconds;
280
280
  }
281
- function utils_time_getHourMinuteFromString(timeString) {
282
- const [hour, minute] = timeString.split(":");
281
+ function utils_time_getHourMinuteFromString(input) {
282
+ if (!input) return "";
283
+ if (typeof input === "string") {
284
+ const [hour2, minute2] = input.split(":");
285
+ return `${hour2}:${minute2}`;
286
+ }
287
+ const hour = String(input.getHours()).padStart(2, "0");
288
+ const minute = String(input.getMinutes()).padStart(2, "0");
283
289
  return `${hour}:${minute}`;
284
290
  }
285
291
  function utils_time_getCurrentTimeString() {
@@ -4,7 +4,7 @@ import {
4
4
  utils_config_getBaseUrl,
5
5
  utils_converter_enumToSelectOptions,
6
6
  utils_file_fileToAQDocumentType
7
- } from "../chunk-PDIW6MN3.mjs";
7
+ } from "../chunk-J7PZ4DWS.mjs";
8
8
  import {
9
9
  baseColumns
10
10
  } from "../chunk-BEFEWY44.mjs";
@@ -59,7 +59,7 @@ declare function utils_reactQuery_updateListItemInQuery<T>({ queryClient, queryK
59
59
  declare function utils_text_getNormalizedTextFromHtml(html?: string): string;
60
60
 
61
61
  declare function utils_time_convertTimeStringToSeconds(time: string): number;
62
- declare function utils_time_getHourMinuteFromString(timeString: string): string;
62
+ declare function utils_time_getHourMinuteFromString(input?: string | Date): string;
63
63
  declare function utils_time_getCurrentTimeString(): string;
64
64
  declare function utils_time_extractHourMinute(isoString?: string): string;
65
65
 
@@ -21,7 +21,7 @@ import {
21
21
  utils_time_getCurrentTimeString,
22
22
  utils_time_getHourMinuteFromString,
23
23
  utils_validator_validateCode
24
- } from "../chunk-PDIW6MN3.mjs";
24
+ } from "../chunk-J7PZ4DWS.mjs";
25
25
  import {
26
26
  U0DateToDDMMYYYString,
27
27
  utils_date_dateToDDMMYYYString,
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.446",
45
+ "version": "0.1.448",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"