aq-fe-framework 0.1.930 → 0.1.932
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/{chunk-AFO4LYQ2.mjs → chunk-27PL7JLZ.mjs} +7 -2
- package/dist/{chunk-ZLA3IOYE.mjs → chunk-45WRJHBE.mjs} +7 -7
- package/dist/components/index.mjs +4 -4
- package/dist/const/index.mjs +1 -1
- package/dist/core/index.mjs +4 -4
- package/dist/hooks/index.d.mts +5 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/modules-features/index.mjs +4 -4
- package/dist/shared/index.mjs +9 -6
- package/package.json +1 -1
- package/dist/{chunk-SPG47QW7.mjs → chunk-4IP2EYUM.mjs} +1 -1
|
@@ -35,8 +35,13 @@ function useEditableRows() {
|
|
|
35
35
|
function useExportData(table) {
|
|
36
36
|
const selectedRows = table.getSelectedRowModel().rows;
|
|
37
37
|
const allRows = table.getPrePaginationRowModel().rows;
|
|
38
|
-
const
|
|
39
|
-
|
|
38
|
+
const isUsingSelected = selectedRows.length > 0;
|
|
39
|
+
const rows = isUsingSelected ? selectedRows : allRows;
|
|
40
|
+
return {
|
|
41
|
+
data: rows.map((r) => r.original),
|
|
42
|
+
count: rows.length,
|
|
43
|
+
isUsingSelected
|
|
44
|
+
};
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
// src/hooks/useMutationForm.ts
|
|
@@ -4,10 +4,6 @@ import {
|
|
|
4
4
|
useStore_Permission,
|
|
5
5
|
useStore_ProjectInfo
|
|
6
6
|
} from "./chunk-QWHUDAPC.mjs";
|
|
7
|
-
import {
|
|
8
|
-
utils_date,
|
|
9
|
-
utils_mantineReactTable
|
|
10
|
-
} from "./chunk-ZDINCHBS.mjs";
|
|
11
7
|
import {
|
|
12
8
|
utils_aq_mapBaseEntityToDomain,
|
|
13
9
|
utils_aq_mapDomainToEntity,
|
|
@@ -19,6 +15,10 @@ import {
|
|
|
19
15
|
utils_file_fileToAQDocumentType,
|
|
20
16
|
utils_pdf_download
|
|
21
17
|
} from "./chunk-E4JVWPXS.mjs";
|
|
18
|
+
import {
|
|
19
|
+
utils_date,
|
|
20
|
+
utils_mantineReactTable
|
|
21
|
+
} from "./chunk-ZDINCHBS.mjs";
|
|
22
22
|
import {
|
|
23
23
|
baseColumns
|
|
24
24
|
} from "./chunk-O7YCQQO5.mjs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
const_object_colors,
|
|
31
31
|
const_object_documentTypes
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4IP2EYUM.mjs";
|
|
33
33
|
import {
|
|
34
34
|
enum_daysOfWeek
|
|
35
35
|
} from "./chunk-K6S7R6LU.mjs";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
useMyReactMutation,
|
|
43
43
|
useMyReactQuery,
|
|
44
44
|
useQ_AQ_GetAQModule
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-27PL7JLZ.mjs";
|
|
46
46
|
import {
|
|
47
47
|
utils_notification_show
|
|
48
48
|
} from "./chunk-7ZCOFATU.mjs";
|
|
@@ -706,7 +706,7 @@ function CustomEnumBadge(_a) {
|
|
|
706
706
|
"enumColor",
|
|
707
707
|
"enumIcon"
|
|
708
708
|
]);
|
|
709
|
-
if (
|
|
709
|
+
if (value === void 0 || value === null) return null;
|
|
710
710
|
const IconComponent = enumIcon ? enumIcon[value] : void 0;
|
|
711
711
|
const label = enumLabel[value];
|
|
712
712
|
return label ? /* @__PURE__ */ jsx12(
|
|
@@ -70,15 +70,15 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-45WRJHBE.mjs";
|
|
74
74
|
import "../chunk-QWHUDAPC.mjs";
|
|
75
|
-
import "../chunk-ZDINCHBS.mjs";
|
|
76
75
|
import "../chunk-E4JVWPXS.mjs";
|
|
76
|
+
import "../chunk-ZDINCHBS.mjs";
|
|
77
77
|
import "../chunk-O7YCQQO5.mjs";
|
|
78
78
|
import "../chunk-QSWIVDXC.mjs";
|
|
79
|
-
import "../chunk-
|
|
79
|
+
import "../chunk-4IP2EYUM.mjs";
|
|
80
80
|
import "../chunk-K6S7R6LU.mjs";
|
|
81
|
-
import "../chunk-
|
|
81
|
+
import "../chunk-27PL7JLZ.mjs";
|
|
82
82
|
import "../chunk-WZ6PXGGC.mjs";
|
|
83
83
|
import "../chunk-7ZCOFATU.mjs";
|
|
84
84
|
import "../chunk-JD6AELXS.mjs";
|
package/dist/const/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -31,15 +31,15 @@ import {
|
|
|
31
31
|
MyStatsCard,
|
|
32
32
|
MyTextInput2 as MyTextInput,
|
|
33
33
|
MyWeeklySessionSchedulerPicker
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-45WRJHBE.mjs";
|
|
35
35
|
import "../chunk-QWHUDAPC.mjs";
|
|
36
|
-
import "../chunk-ZDINCHBS.mjs";
|
|
37
36
|
import "../chunk-E4JVWPXS.mjs";
|
|
37
|
+
import "../chunk-ZDINCHBS.mjs";
|
|
38
38
|
import "../chunk-O7YCQQO5.mjs";
|
|
39
39
|
import "../chunk-QSWIVDXC.mjs";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-4IP2EYUM.mjs";
|
|
41
41
|
import "../chunk-K6S7R6LU.mjs";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-27PL7JLZ.mjs";
|
|
43
43
|
import "../chunk-WZ6PXGGC.mjs";
|
|
44
44
|
import "../chunk-7ZCOFATU.mjs";
|
|
45
45
|
import "../chunk-JD6AELXS.mjs";
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -26,7 +26,11 @@ declare function useEditableRows<T extends {
|
|
|
26
26
|
* - Nếu có row được chọn -> trả về các row được chọn
|
|
27
27
|
* - Nếu không -> trả về toàn bộ data (prePagination)
|
|
28
28
|
*/
|
|
29
|
-
declare function useExportData<T extends MRT_RowData>(table: MRT_TableInstance<T>):
|
|
29
|
+
declare function useExportData<T extends MRT_RowData>(table: MRT_TableInstance<T>): {
|
|
30
|
+
data: T[];
|
|
31
|
+
count: number;
|
|
32
|
+
isUsingSelected: boolean;
|
|
33
|
+
};
|
|
30
34
|
|
|
31
35
|
interface UseCreateUpdateProps<TForm extends Record<string, any>, TEntity> {
|
|
32
36
|
initValues?: TEntity;
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -113,15 +113,15 @@ import {
|
|
|
113
113
|
MailTemplateDeleteButton,
|
|
114
114
|
useS_moduleConfig,
|
|
115
115
|
useStore_Authenticate
|
|
116
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-45WRJHBE.mjs";
|
|
117
117
|
import "../chunk-QWHUDAPC.mjs";
|
|
118
|
-
import "../chunk-ZDINCHBS.mjs";
|
|
119
118
|
import "../chunk-E4JVWPXS.mjs";
|
|
119
|
+
import "../chunk-ZDINCHBS.mjs";
|
|
120
120
|
import "../chunk-O7YCQQO5.mjs";
|
|
121
121
|
import "../chunk-QSWIVDXC.mjs";
|
|
122
|
-
import "../chunk-
|
|
122
|
+
import "../chunk-4IP2EYUM.mjs";
|
|
123
123
|
import "../chunk-K6S7R6LU.mjs";
|
|
124
|
-
import "../chunk-
|
|
124
|
+
import "../chunk-27PL7JLZ.mjs";
|
|
125
125
|
import "../chunk-WZ6PXGGC.mjs";
|
|
126
126
|
import "../chunk-7ZCOFATU.mjs";
|
|
127
127
|
import "../chunk-JD6AELXS.mjs";
|
package/dist/shared/index.mjs
CHANGED
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
} from "../chunk-RGUQWALX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
MySelect
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-45WRJHBE.mjs";
|
|
8
8
|
import "../chunk-QWHUDAPC.mjs";
|
|
9
|
+
import "../chunk-E4JVWPXS.mjs";
|
|
9
10
|
import {
|
|
10
11
|
utils_converter
|
|
11
12
|
} from "../chunk-ZDINCHBS.mjs";
|
|
12
|
-
import "../chunk-E4JVWPXS.mjs";
|
|
13
13
|
import "../chunk-O7YCQQO5.mjs";
|
|
14
14
|
import "../chunk-QSWIVDXC.mjs";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-4IP2EYUM.mjs";
|
|
16
16
|
import "../chunk-K6S7R6LU.mjs";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-27PL7JLZ.mjs";
|
|
18
18
|
import "../chunk-WZ6PXGGC.mjs";
|
|
19
19
|
import "../chunk-7ZCOFATU.mjs";
|
|
20
20
|
import {
|
|
@@ -22,11 +22,14 @@ import {
|
|
|
22
22
|
__spreadValues
|
|
23
23
|
} from "../chunk-JD6AELXS.mjs";
|
|
24
24
|
|
|
25
|
-
// src/shared/
|
|
25
|
+
// src/shared/Account/Shared_AccountTable.tsx
|
|
26
26
|
import { jsx } from "react/jsx-runtime";
|
|
27
|
+
|
|
28
|
+
// src/shared/GenderSelect/Shared_GenderSelect.tsx
|
|
29
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
27
30
|
function Shared_GenderSelect(_a) {
|
|
28
31
|
var rest = __objRest(_a, []);
|
|
29
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ jsx2(
|
|
30
33
|
MySelect,
|
|
31
34
|
__spreadValues({
|
|
32
35
|
label: "Gi\u1EDBi t\xEDnh",
|
package/package.json
CHANGED