aq-fe-framework 0.1.438 → 0.1.440

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  utils_date_dateToDDMMYYYString
3
- } from "./chunk-I2XIN2R3.mjs";
3
+ } from "./chunk-EWDS5IOF.mjs";
4
4
 
5
5
  // src/columns/baseColumns.ts
6
6
  var baseColumns = [
@@ -7,10 +7,11 @@ function U0DateToDDMMYYYString(date) {
7
7
  return `${day}/${month}/${year}`;
8
8
  }
9
9
  function utils_date_dateToDDMMYYYString(date) {
10
- if (!(date instanceof Date) || isNaN(date.getTime())) return "";
11
- const day = String(date.getDate()).padStart(2, "0");
12
- const month = String(date.getMonth() + 1).padStart(2, "0");
13
- const year = date.getFullYear();
10
+ const parsedDate = typeof date === "string" ? new Date(date) : date;
11
+ if (!(parsedDate instanceof Date) || isNaN(parsedDate.getTime())) return "";
12
+ const day = String(parsedDate.getDate()).padStart(2, "0");
13
+ const month = String(parsedDate.getMonth() + 1).padStart(2, "0");
14
+ const year = parsedDate.getFullYear();
14
15
  return `${day}/${month}/${year}`;
15
16
  }
16
17
  function utils_date_formatToDateTimeStartEnd(startDate, endDate) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  baseColumns
3
- } from "../chunk-2SBUKAGS.mjs";
4
- import "../chunk-I2XIN2R3.mjs";
3
+ } from "../chunk-BEFEWY44.mjs";
4
+ import "../chunk-EWDS5IOF.mjs";
5
5
  import "../chunk-FWCSY2DS.mjs";
6
6
  export {
7
7
  baseColumns
@@ -7,10 +7,10 @@ import {
7
7
  } from "../chunk-NRTOFI27.mjs";
8
8
  import {
9
9
  baseColumns
10
- } from "../chunk-2SBUKAGS.mjs";
10
+ } from "../chunk-BEFEWY44.mjs";
11
11
  import {
12
12
  U0DateToDDMMYYYString
13
- } from "../chunk-I2XIN2R3.mjs";
13
+ } from "../chunk-EWDS5IOF.mjs";
14
14
  import {
15
15
  F_authenticate_Logout,
16
16
  MyActionIconDelete,
@@ -22,7 +22,7 @@ declare function utils_converter_enumToSelectOptions<T extends Record<string, st
22
22
  declare function utils_currency_formatWithSuffix(amount: number, suffix?: string): string;
23
23
 
24
24
  declare function U0DateToDDMMYYYString(date: Date): string;
25
- declare function utils_date_dateToDDMMYYYString(date: Date): string;
25
+ declare function utils_date_dateToDDMMYYYString(date: Date | string): string;
26
26
  declare function utils_date_formatToDateTimeStartEnd(startDate: Date, endDate: Date): string;
27
27
  declare function utils_date_getHHmm(date: Date): string;
28
28
 
@@ -26,7 +26,7 @@ import {
26
26
  utils_date_dateToDDMMYYYString,
27
27
  utils_date_formatToDateTimeStartEnd,
28
28
  utils_date_getHHmm
29
- } from "../chunk-I2XIN2R3.mjs";
29
+ } from "../chunk-EWDS5IOF.mjs";
30
30
  import {
31
31
  utils_pdf_download
32
32
  } from "../chunk-5U2JSHSJ.mjs";
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.438",
45
+ "version": "0.1.440",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"