aq-fe-framework 0.1.439 → 0.1.441

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 = [
@@ -387,7 +387,7 @@ function MyInfoBox({ title, data, paperProps }) {
387
387
  return /* @__PURE__ */ jsx7(Paper, __spreadProps(__spreadValues({ withBorder: true, shadow: "xs", radius: "md", p: "md", bg: const_object_colors.mantineBackgroundBlueLight }, paperProps), { children: /* @__PURE__ */ jsxs3(Stack, { children: [
388
388
  title && /* @__PURE__ */ jsx7(Text, { fw: 600, size: "sm", children: title }),
389
389
  data.map((item, index) => /* @__PURE__ */ jsxs3(Group, { justify: "space-between", children: [
390
- /* @__PURE__ */ jsx7(Text, { size: "sm", c: "dimmed", children: item.label }),
390
+ /* @__PURE__ */ jsx7(Text, { size: "sm", fw: 500, children: item.label }),
391
391
  /* @__PURE__ */ jsx7(Text, { size: "sm", fw: 500, children: item.value })
392
392
  ] }, index))
393
393
  ] }) }));
@@ -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
@@ -14,9 +14,9 @@ import {
14
14
  MyStatsCard,
15
15
  MyTextInput,
16
16
  MyWeeklySessionSchedulerPicker
17
- } from "../chunk-2WD24SBN.mjs";
18
- import "../chunk-RZBHPPQT.mjs";
17
+ } from "../chunk-EOQ32E5F.mjs";
19
18
  import "../chunk-GFEMKKFH.mjs";
19
+ import "../chunk-RZBHPPQT.mjs";
20
20
  import "../chunk-OMJJAHOC.mjs";
21
21
  import "../chunk-K6S7R6LU.mjs";
22
22
  import "../chunk-PRN7KYPD.mjs";
@@ -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,
@@ -42,15 +42,15 @@ import {
42
42
  MyButton as MyButton2,
43
43
  MyDataTableSelectOne,
44
44
  MyTextInput as MyTextInput2
45
- } from "../chunk-2WD24SBN.mjs";
45
+ } from "../chunk-EOQ32E5F.mjs";
46
+ import {
47
+ const_object_documentTypes
48
+ } from "../chunk-GFEMKKFH.mjs";
46
49
  import {
47
50
  MyDataTable,
48
51
  MyFlexColumn,
49
52
  MyFlexRow
50
53
  } from "../chunk-RZBHPPQT.mjs";
51
- import {
52
- const_object_documentTypes
53
- } from "../chunk-GFEMKKFH.mjs";
54
54
  import {
55
55
  const_object_colors
56
56
  } from "../chunk-OMJJAHOC.mjs";
@@ -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.439",
45
+ "version": "0.1.441",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"