aq-fe-framework 0.1.149 → 0.1.151

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.
@@ -23,10 +23,11 @@ function utils_converter_enumToSelectOptions(enumObject) {
23
23
  }
24
24
 
25
25
  // src/utils/utils_currency.ts
26
- function utils_currency_formatWithSuffix(amount, includeCurrency = true, suffix = "") {
26
+ function utils_currency_formatWithSuffix(amount, suffix = "") {
27
27
  const formatter = new Intl.NumberFormat("vi-VN");
28
28
  const formattedAmount = formatter.format(amount);
29
- return includeCurrency ? `${formattedAmount} ${suffix}` : `${formattedAmount}${suffix}`;
29
+ if (suffix) return `${formattedAmount} ${suffix}`;
30
+ return formattedAmount;
30
31
  }
31
32
 
32
33
  // src/utils/utils_date.ts
@@ -37,7 +37,7 @@ import {
37
37
  U0MyValidateEmail,
38
38
  utils_converter_enumToSelectOptions,
39
39
  utils_file_fileToAQDocumentType
40
- } from "../chunk-RHR4AQ6N.mjs";
40
+ } from "../chunk-K4A5DIR2.mjs";
41
41
  import "../chunk-5U2JSHSJ.mjs";
42
42
  import {
43
43
  utils_notification_show
@@ -2175,7 +2175,7 @@ function F_core60524_Form() {
2175
2175
  MyDateInput,
2176
2176
  {
2177
2177
  value: form.getValues().registrationDate,
2178
- onChange: (date) => form.setFieldValue("registrationDate", date),
2178
+ onChange: (date) => form.setFieldValue("registrationDate", new Date(date)),
2179
2179
  label: "Ng\xE0y \u0111\u0103ng k\xFD"
2180
2180
  }
2181
2181
  ) }),
@@ -2183,7 +2183,7 @@ function F_core60524_Form() {
2183
2183
  MyDateInput,
2184
2184
  {
2185
2185
  value: form.getValues().limiteDate,
2186
- onChange: (date) => form.setFieldValue("limiteDate", date),
2186
+ onChange: (date) => form.setFieldValue("limiteDate", new Date(date)),
2187
2187
  label: "Ng\xE0y h\u1EBFt h\u1EA1n"
2188
2188
  }
2189
2189
  ) }),
@@ -14,7 +14,7 @@ declare function utils_converter_enumToSelectOptions<T extends Record<string, st
14
14
  label: string;
15
15
  }>;
16
16
 
17
- declare function utils_currency_formatWithSuffix(amount: number, includeCurrency?: boolean, suffix?: string): string;
17
+ declare function utils_currency_formatWithSuffix(amount: number, suffix?: string): string;
18
18
 
19
19
  declare function U0DateToDDMMYYYString(date: Date): string;
20
20
  declare function utils_date_dateToDDMMYYYString(date: Date): string;
@@ -14,7 +14,7 @@ import {
14
14
  utils_file_fileToAQDocumentType,
15
15
  utils_time_convertTimeStringToSeconds,
16
16
  utils_time_getCurrentTimeString
17
- } from "../chunk-RHR4AQ6N.mjs";
17
+ } from "../chunk-K4A5DIR2.mjs";
18
18
  import {
19
19
  utils_pdf_download
20
20
  } from "../chunk-5U2JSHSJ.mjs";
package/package.json CHANGED
@@ -22,13 +22,14 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.149",
25
+ "version": "0.1.151",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"
29
29
  ],
30
30
  "scripts": {
31
31
  "deploy": "node deploy.js",
32
+ "update-mantine": "npx npm-check-updates @mantine/* @mantinex/* postcss-preset-mantine -u",
32
33
  "dev": "next dev --turbopack -p 3000",
33
34
  "build-next": "next build",
34
35
  "gen": "barrelsby --config barrelsby.json",
@@ -41,20 +42,20 @@
41
42
  "@fullcalendar/core": "^6.1.15",
42
43
  "@fullcalendar/daygrid": "^6.1.15",
43
44
  "@fullcalendar/react": "^6.1.15",
44
- "@mantine/carousel": "^7.15.0",
45
- "@mantine/charts": "^7.15.0",
46
- "@mantine/code-highlight": "^7.15.0",
47
- "@mantine/core": "^7.15.1",
48
- "@mantine/dates": "^7.15.1",
49
- "@mantine/dropzone": "^7.15.0",
50
- "@mantine/form": "^7.15.0",
51
- "@mantine/hooks": "^7.15.1",
52
- "@mantine/modals": "^7.15.0",
53
- "@mantine/notifications": "^7.15.0",
54
- "@mantine/nprogress": "^7.15.0",
55
- "@mantine/spotlight": "^7.15.0",
56
- "@mantine/tiptap": "^7.15.0",
57
- "@mantinex/mantine-logo": "^1.1.0",
45
+ "@mantine/carousel": "^8.0.0",
46
+ "@mantine/charts": "^8.0.0",
47
+ "@mantine/code-highlight": "^8.0.0",
48
+ "@mantine/core": "^8.0.0",
49
+ "@mantine/dates": "^8.0.0",
50
+ "@mantine/dropzone": "^8.0.0",
51
+ "@mantine/form": "^8.0.0",
52
+ "@mantine/hooks": "^8.0.0",
53
+ "@mantine/modals": "^8.0.0",
54
+ "@mantine/notifications": "^8.0.0",
55
+ "@mantine/nprogress": "^8.0.0",
56
+ "@mantine/spotlight": "^8.0.0",
57
+ "@mantine/tiptap": "^8.0.0",
58
+ "@mantinex/mantine-logo": "^2.0.0",
58
59
  "@schedule-x/event-modal": "^2.12.1",
59
60
  "@schedule-x/events-service": "^2.28.0",
60
61
  "@schedule-x/react": "^2.28.0",