aq-fe-framework 0.1.907 → 0.1.909
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-WXTLFDRV.mjs → chunk-676KCV4P.mjs} +6 -6
- package/dist/{chunk-SY2ABDRB.mjs → chunk-PNMAEZJM.mjs} +2 -2
- package/dist/{chunk-UMOQK6IY.mjs → chunk-ZDINCHBS.mjs} +5 -0
- package/dist/components/index.mjs +5 -5
- package/dist/const/index.mjs +1 -1
- package/dist/core/index.mjs +5 -5
- package/dist/hooks/index.d.mts +6 -4
- package/dist/hooks/index.mjs +2 -2
- package/dist/modules-features/index.mjs +5 -5
- package/dist/shared/index.mjs +6 -6
- package/dist/utils-v2/index.d.mts +1 -0
- package/dist/utils-v2/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/{chunk-4IP2EYUM.mjs → chunk-SPG47QW7.mjs} +1 -1
|
@@ -4,6 +4,10 @@ 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";
|
|
7
11
|
import {
|
|
8
12
|
utils_aq_mapBaseEntityToDomain,
|
|
9
13
|
utils_aq_mapDomainToEntity,
|
|
@@ -15,10 +19,6 @@ import {
|
|
|
15
19
|
utils_file_fileToAQDocumentType,
|
|
16
20
|
utils_pdf_download
|
|
17
21
|
} from "./chunk-E4JVWPXS.mjs";
|
|
18
|
-
import {
|
|
19
|
-
utils_date,
|
|
20
|
-
utils_mantineReactTable
|
|
21
|
-
} from "./chunk-UMOQK6IY.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-SPG47QW7.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-PNMAEZJM.mjs";
|
|
46
46
|
import {
|
|
47
47
|
utils_notification_show
|
|
48
48
|
} from "./chunk-7ZCOFATU.mjs";
|
|
@@ -184,7 +184,7 @@ function createMapper(fieldMap) {
|
|
|
184
184
|
return result;
|
|
185
185
|
};
|
|
186
186
|
const toApi = (ui, base = {}) => {
|
|
187
|
-
|
|
187
|
+
const result = __spreadValues({}, base);
|
|
188
188
|
Object.entries(fieldMap).forEach(
|
|
189
189
|
([uiKey, mapping]) => {
|
|
190
190
|
const value = ui[uiKey];
|
|
@@ -192,7 +192,7 @@ function createMapper(fieldMap) {
|
|
|
192
192
|
if (typeof mapping === "string") {
|
|
193
193
|
result[mapping] = value;
|
|
194
194
|
} else {
|
|
195
|
-
|
|
195
|
+
Object.assign(result, mapping.toApi(value, result));
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
);
|
|
@@ -70,17 +70,17 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-676KCV4P.mjs";
|
|
74
74
|
import "../chunk-QWHUDAPC.mjs";
|
|
75
|
+
import "../chunk-ZDINCHBS.mjs";
|
|
75
76
|
import "../chunk-E4JVWPXS.mjs";
|
|
76
|
-
import "../chunk-UMOQK6IY.mjs";
|
|
77
77
|
import "../chunk-O7YCQQO5.mjs";
|
|
78
78
|
import "../chunk-QSWIVDXC.mjs";
|
|
79
|
-
import "../chunk-
|
|
79
|
+
import "../chunk-SPG47QW7.mjs";
|
|
80
80
|
import "../chunk-K6S7R6LU.mjs";
|
|
81
|
-
import "../chunk-
|
|
82
|
-
import "../chunk-7ZCOFATU.mjs";
|
|
81
|
+
import "../chunk-PNMAEZJM.mjs";
|
|
83
82
|
import "../chunk-WZ6PXGGC.mjs";
|
|
83
|
+
import "../chunk-7ZCOFATU.mjs";
|
|
84
84
|
import "../chunk-JD6AELXS.mjs";
|
|
85
85
|
export {
|
|
86
86
|
AQButtonCreateByImportFile,
|
package/dist/const/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -30,17 +30,17 @@ import {
|
|
|
30
30
|
MyStatsCard,
|
|
31
31
|
MyTextInput2 as MyTextInput,
|
|
32
32
|
MyWeeklySessionSchedulerPicker
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-676KCV4P.mjs";
|
|
34
34
|
import "../chunk-QWHUDAPC.mjs";
|
|
35
|
+
import "../chunk-ZDINCHBS.mjs";
|
|
35
36
|
import "../chunk-E4JVWPXS.mjs";
|
|
36
|
-
import "../chunk-UMOQK6IY.mjs";
|
|
37
37
|
import "../chunk-O7YCQQO5.mjs";
|
|
38
38
|
import "../chunk-QSWIVDXC.mjs";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-SPG47QW7.mjs";
|
|
40
40
|
import "../chunk-K6S7R6LU.mjs";
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-7ZCOFATU.mjs";
|
|
41
|
+
import "../chunk-PNMAEZJM.mjs";
|
|
43
42
|
import "../chunk-WZ6PXGGC.mjs";
|
|
43
|
+
import "../chunk-7ZCOFATU.mjs";
|
|
44
44
|
import "../chunk-JD6AELXS.mjs";
|
|
45
45
|
export {
|
|
46
46
|
CustomAutocomplete,
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -67,11 +67,13 @@ interface Mapper<UI, API> {
|
|
|
67
67
|
toUi: (raw: API) => UI;
|
|
68
68
|
toApi: (item: Partial<UI>, currentApi?: Partial<API>) => Partial<API>;
|
|
69
69
|
}
|
|
70
|
-
type FieldMapping<
|
|
71
|
-
toUi: (raw: API) =>
|
|
72
|
-
toApi: (val:
|
|
70
|
+
type FieldMapping<UIField, API> = (keyof API & string) | {
|
|
71
|
+
toUi: (raw: API) => UIField;
|
|
72
|
+
toApi: (val: UIField, currentApi: Partial<API>) => Partial<API>;
|
|
73
73
|
};
|
|
74
|
-
declare function createMapper<UI, API>(fieldMap:
|
|
74
|
+
declare function createMapper<UI, API>(fieldMap: {
|
|
75
|
+
[K in keyof UI]: FieldMapping<UI[K], API>;
|
|
76
|
+
}): Mapper<UI, API>;
|
|
75
77
|
|
|
76
78
|
declare const baseAxios: axios.AxiosInstance;
|
|
77
79
|
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
useMyReactQuery,
|
|
14
14
|
useMyRouter,
|
|
15
15
|
useQ_AQ_GetAQModule
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-7ZCOFATU.mjs";
|
|
16
|
+
} from "../chunk-PNMAEZJM.mjs";
|
|
18
17
|
import "../chunk-WZ6PXGGC.mjs";
|
|
18
|
+
import "../chunk-7ZCOFATU.mjs";
|
|
19
19
|
import "../chunk-JD6AELXS.mjs";
|
|
20
20
|
export {
|
|
21
21
|
createBaseApi,
|
|
@@ -113,17 +113,17 @@ import {
|
|
|
113
113
|
MailTemplateDeleteButton,
|
|
114
114
|
useS_moduleConfig,
|
|
115
115
|
useStore_Authenticate
|
|
116
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-676KCV4P.mjs";
|
|
117
117
|
import "../chunk-QWHUDAPC.mjs";
|
|
118
|
+
import "../chunk-ZDINCHBS.mjs";
|
|
118
119
|
import "../chunk-E4JVWPXS.mjs";
|
|
119
|
-
import "../chunk-UMOQK6IY.mjs";
|
|
120
120
|
import "../chunk-O7YCQQO5.mjs";
|
|
121
121
|
import "../chunk-QSWIVDXC.mjs";
|
|
122
|
-
import "../chunk-
|
|
122
|
+
import "../chunk-SPG47QW7.mjs";
|
|
123
123
|
import "../chunk-K6S7R6LU.mjs";
|
|
124
|
-
import "../chunk-
|
|
125
|
-
import "../chunk-7ZCOFATU.mjs";
|
|
124
|
+
import "../chunk-PNMAEZJM.mjs";
|
|
126
125
|
import "../chunk-WZ6PXGGC.mjs";
|
|
126
|
+
import "../chunk-7ZCOFATU.mjs";
|
|
127
127
|
import "../chunk-JD6AELXS.mjs";
|
|
128
128
|
export {
|
|
129
129
|
AcademicYearsCreate,
|
package/dist/shared/index.mjs
CHANGED
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "../chunk-RGUQWALX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
MySelect
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-676KCV4P.mjs";
|
|
8
8
|
import "../chunk-QWHUDAPC.mjs";
|
|
9
|
-
import "../chunk-E4JVWPXS.mjs";
|
|
10
9
|
import {
|
|
11
10
|
utils_converter
|
|
12
|
-
} from "../chunk-
|
|
11
|
+
} 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-SPG47QW7.mjs";
|
|
16
16
|
import "../chunk-K6S7R6LU.mjs";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-7ZCOFATU.mjs";
|
|
17
|
+
import "../chunk-PNMAEZJM.mjs";
|
|
19
18
|
import "../chunk-WZ6PXGGC.mjs";
|
|
19
|
+
import "../chunk-7ZCOFATU.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__objRest,
|
|
22
22
|
__spreadValues
|
|
@@ -13,6 +13,7 @@ declare const utils_converter: {
|
|
|
13
13
|
label: string;
|
|
14
14
|
}[];
|
|
15
15
|
mapOptionsToSelectData<T extends string>(options: OptionsRecord<T>, t: (key: T) => string): ComboboxData;
|
|
16
|
+
invertObject<TKey extends string | number | symbol, TValue>(options: Record<TKey, TValue>): any;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
declare const utils_currency: {
|
package/dist/utils-v2/index.mjs
CHANGED
package/package.json
CHANGED