aq-fe-framework 0.1.154 → 0.1.155
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/{IAQModule-Cn6xUy-6.d.mts → IAQModule-XZYlbivW.d.mts} +1 -1
- package/dist/chunk-5U2JSHSJ.mjs +22 -0
- package/dist/chunk-7ZCOFATU.mjs +42 -0
- package/dist/chunk-FWCSY2DS.mjs +37 -0
- package/dist/chunk-KWCUUD5Z.mjs +235 -0
- package/dist/chunk-PAHZ57DT.mjs +7634 -0
- package/dist/chunk-Y3YGC5IH.mjs +21 -0
- package/dist/chunk-Z6OQG54Q.mjs +39 -0
- package/dist/components/index.css +94 -0
- package/dist/components/index.mjs +143 -62
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.mjs +11 -2
- package/dist/modules-features/index.css +100 -0
- package/dist/modules-features/index.d.mts +1 -1
- package/dist/modules-features/index.mjs +4053 -79
- package/dist/stores/index.mjs +7 -1
- package/dist/utils/index.mjs +45 -9
- package/package.json +1 -1
@@ -0,0 +1,21 @@
|
|
1
|
+
import {
|
2
|
+
__spreadProps,
|
3
|
+
__spreadValues
|
4
|
+
} from "./chunk-FWCSY2DS.mjs";
|
5
|
+
|
6
|
+
// src/stores/CreateGenericStore.ts
|
7
|
+
import { create } from "zustand";
|
8
|
+
import { persist } from "zustand/middleware";
|
9
|
+
function createGenericStore({ initialState, storageKey }) {
|
10
|
+
const storeCreator = (set) => ({
|
11
|
+
state: initialState,
|
12
|
+
setState: (newState) => set({ state: newState }),
|
13
|
+
setProperty: (key, value) => set((store) => ({ state: __spreadProps(__spreadValues({}, store.state), { [key]: value }) })),
|
14
|
+
resetState: () => set({ state: initialState })
|
15
|
+
});
|
16
|
+
return storageKey ? create(persist(storeCreator, { name: storageKey })) : create(storeCreator);
|
17
|
+
}
|
18
|
+
|
19
|
+
export {
|
20
|
+
createGenericStore
|
21
|
+
};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// src/api/baseAxios.ts
|
2
|
+
import axios from "axios";
|
3
|
+
var baseAxios = axios.create({
|
4
|
+
baseURL: process.env.NEXT_PUBLIC_API
|
5
|
+
});
|
6
|
+
baseAxios.interceptors.request.use(
|
7
|
+
(config) => {
|
8
|
+
var _a, _b;
|
9
|
+
const tokenData = localStorage.getItem("useS_authenticate");
|
10
|
+
const state = JSON.parse(tokenData);
|
11
|
+
const token = (_b = (_a = state == null ? void 0 : state.state) == null ? void 0 : _a.state) == null ? void 0 : _b.token;
|
12
|
+
if (token) {
|
13
|
+
config.headers.Authorization = `Bearer ${token}`;
|
14
|
+
}
|
15
|
+
return config;
|
16
|
+
},
|
17
|
+
(error) => {
|
18
|
+
return Promise.reject(error);
|
19
|
+
}
|
20
|
+
);
|
21
|
+
var baseAxios_default = baseAxios;
|
22
|
+
|
23
|
+
// src/hooks/query/AQ/useQ_AQ_GetAQModule.ts
|
24
|
+
import { useQuery } from "@tanstack/react-query";
|
25
|
+
function useQ_AQ_GetAQModule() {
|
26
|
+
const query = useQuery({
|
27
|
+
queryKey: ["/AQ/GetAQModule"],
|
28
|
+
queryFn: async () => {
|
29
|
+
const res = await baseAxios_default.get("/AQ/GetAQModule");
|
30
|
+
return res.data.data;
|
31
|
+
}
|
32
|
+
});
|
33
|
+
return query;
|
34
|
+
}
|
35
|
+
|
36
|
+
export {
|
37
|
+
baseAxios_default,
|
38
|
+
useQ_AQ_GetAQModule
|
39
|
+
};
|
@@ -0,0 +1,94 @@
|
|
1
|
+
/* src/components/Layouts/HeaderMegaMenu/css.module.css */
|
2
|
+
.header {
|
3
|
+
position: sticky;
|
4
|
+
top: 0;
|
5
|
+
z-index: 1;
|
6
|
+
height: calc(3.75rem * var(--mantine-scale));
|
7
|
+
background-color: var(--mantine-color-white);
|
8
|
+
}
|
9
|
+
[data-mantine-color-scheme=dark] .header {
|
10
|
+
background-color: var(--mantine-color-dark);
|
11
|
+
}
|
12
|
+
.header {
|
13
|
+
padding-left: var(--mantine-spacing-md);
|
14
|
+
padding-right: var(--mantine-spacing-md);
|
15
|
+
border-bottom: 1px solid var(--mantine-color-gray-3);
|
16
|
+
}
|
17
|
+
[data-mantine-color-scheme=dark] .header {
|
18
|
+
border-bottom: 1px solid var(--mantine-color-dark-4);
|
19
|
+
}
|
20
|
+
.link {
|
21
|
+
display: flex;
|
22
|
+
align-items: center;
|
23
|
+
height: 100%;
|
24
|
+
padding-left: var(--mantine-spacing-md);
|
25
|
+
padding-right: var(--mantine-spacing-md);
|
26
|
+
text-decoration: none;
|
27
|
+
color: var(--mantine-color-black);
|
28
|
+
}
|
29
|
+
[data-mantine-color-scheme=dark] .link {
|
30
|
+
color: var(--mantine-color-white);
|
31
|
+
}
|
32
|
+
.link {
|
33
|
+
font-weight: 500;
|
34
|
+
font-size: var(--mantine-font-size-sm);
|
35
|
+
}
|
36
|
+
@media (max-width: $mantine-breakpoint-sm) {
|
37
|
+
.link {
|
38
|
+
height: calc(2.625rem * var(--mantine-scale));
|
39
|
+
width: 100%;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
@media (hover: hover) {
|
43
|
+
.link:hover {
|
44
|
+
background-color: var(--mantine-color-gray-0);
|
45
|
+
}
|
46
|
+
[data-mantine-color-scheme=dark] .link:hover {
|
47
|
+
background-color: var(--mantine-color-dark-6);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
@media (hover: none) {
|
51
|
+
.link:active {
|
52
|
+
background-color: var(--mantine-color-gray-0);
|
53
|
+
}
|
54
|
+
[data-mantine-color-scheme=dark] .link:active {
|
55
|
+
background-color: var(--mantine-color-dark-6);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
.subLink {
|
59
|
+
width: 100%;
|
60
|
+
padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);
|
61
|
+
border-radius: var(--mantine-radius-md);
|
62
|
+
}
|
63
|
+
@media (hover: hover) {
|
64
|
+
.subLink:hover {
|
65
|
+
background-color: var(--mantine-color-gray-0);
|
66
|
+
}
|
67
|
+
[data-mantine-color-scheme=dark] .subLink:hover {
|
68
|
+
background-color: var(--mantine-color-dark-7);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
@media (hover: none) {
|
72
|
+
.subLink:active {
|
73
|
+
background-color: var(--mantine-color-gray-0);
|
74
|
+
}
|
75
|
+
[data-mantine-color-scheme=dark] .subLink:active {
|
76
|
+
background-color: var(--mantine-color-dark-7);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
.dropdownFooter {
|
80
|
+
background-color: var(--mantine-color-gray-0);
|
81
|
+
}
|
82
|
+
[data-mantine-color-scheme=dark] .dropdownFooter {
|
83
|
+
background-color: var(--mantine-color-dark-7);
|
84
|
+
}
|
85
|
+
.dropdownFooter {
|
86
|
+
margin: calc(var(--mantine-spacing-md) * -1);
|
87
|
+
margin-top: var(--mantine-spacing-sm);
|
88
|
+
padding: var(--mantine-spacing-md) calc(var(--mantine-spacing-md) * 2);
|
89
|
+
padding-bottom: var(--mantine-spacing-xl);
|
90
|
+
border-top: 1px solid var(--mantine-color-gray-1);
|
91
|
+
}
|
92
|
+
[data-mantine-color-scheme=dark] .dropdownFooter {
|
93
|
+
border-top: 1px solid var(--mantine-color-dark-5);
|
94
|
+
}
|
@@ -1,62 +1,143 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
1
|
+
import {
|
2
|
+
AQButtonCreateByImportFile,
|
3
|
+
AQButtonExportData,
|
4
|
+
AQCard,
|
5
|
+
AQSelectTableByOpenModal,
|
6
|
+
AQStatCard1,
|
7
|
+
BasicAppShell,
|
8
|
+
BasicAppShell_transformMenuToEnum,
|
9
|
+
Boxes,
|
10
|
+
FaviconSetter,
|
11
|
+
HeaderMegaMenu,
|
12
|
+
MyActionIcon,
|
13
|
+
MyActionIconCheck,
|
14
|
+
MyActionIconDelete,
|
15
|
+
MyActionIconDownloadPDF,
|
16
|
+
MyActionIconModal,
|
17
|
+
MyActionIconUpdate,
|
18
|
+
MyActionIconUpload,
|
19
|
+
MyActionIconViewPDF,
|
20
|
+
MyAnchorViewPDF,
|
21
|
+
MyAppSpotlight,
|
22
|
+
MyBoxesBackground,
|
23
|
+
MyBoxesCore,
|
24
|
+
MyButton,
|
25
|
+
MyButtonCreate,
|
26
|
+
MyButtonImport,
|
27
|
+
MyButtonModal,
|
28
|
+
MyButtonPrintPDF,
|
29
|
+
MyButtonPrintTablePDF,
|
30
|
+
MyButtonRouterBack,
|
31
|
+
MyButtonViewPDF,
|
32
|
+
MyCalendar,
|
33
|
+
MyCardInformation,
|
34
|
+
MyCardioLoader,
|
35
|
+
MyCenterFull,
|
36
|
+
MyCheckbox,
|
37
|
+
MyContainer,
|
38
|
+
MyDataTable,
|
39
|
+
MyDataTableSelect,
|
40
|
+
MyDateInput,
|
41
|
+
MyFieldset,
|
42
|
+
MyFileInput,
|
43
|
+
MyFlexColumn,
|
44
|
+
MyFlexEnd,
|
45
|
+
MyFlexRow,
|
46
|
+
MyHtmlWrapper,
|
47
|
+
MyIconText,
|
48
|
+
MyKeyLabel,
|
49
|
+
MyNumberFormatter,
|
50
|
+
MyNumberInput,
|
51
|
+
MyPageContent,
|
52
|
+
MyScheduleX,
|
53
|
+
MySelect,
|
54
|
+
MySelectAPIGet,
|
55
|
+
MySkeletonTable,
|
56
|
+
MySwitchTheme,
|
57
|
+
MyTab,
|
58
|
+
MyTextArea,
|
59
|
+
MyTextEditor,
|
60
|
+
MyTextInput,
|
61
|
+
SelectFieldModal,
|
62
|
+
SelectFileModal,
|
63
|
+
SpotlightTrigger,
|
64
|
+
groupToTwoLevels,
|
65
|
+
useHeaderMegaMenuStore,
|
66
|
+
useS_BasicAppShell,
|
67
|
+
useS_ButtonImport,
|
68
|
+
utils_layout_getItemsWithoutLinks
|
69
|
+
} from "../chunk-PAHZ57DT.mjs";
|
70
|
+
import "../chunk-Z6OQG54Q.mjs";
|
71
|
+
import "../chunk-Y3YGC5IH.mjs";
|
72
|
+
import "../chunk-5U2JSHSJ.mjs";
|
73
|
+
import "../chunk-7ZCOFATU.mjs";
|
74
|
+
import "../chunk-FWCSY2DS.mjs";
|
75
|
+
export {
|
76
|
+
AQButtonCreateByImportFile,
|
77
|
+
AQButtonExportData,
|
78
|
+
AQCard,
|
79
|
+
AQSelectTableByOpenModal,
|
80
|
+
AQStatCard1,
|
81
|
+
BasicAppShell,
|
82
|
+
BasicAppShell_transformMenuToEnum,
|
83
|
+
Boxes,
|
84
|
+
FaviconSetter,
|
85
|
+
HeaderMegaMenu,
|
86
|
+
MyActionIcon,
|
87
|
+
MyActionIconCheck,
|
88
|
+
MyActionIconDelete,
|
89
|
+
MyActionIconDownloadPDF,
|
90
|
+
MyActionIconModal,
|
91
|
+
MyActionIconUpdate,
|
92
|
+
MyActionIconUpload,
|
93
|
+
MyActionIconViewPDF,
|
94
|
+
MyAnchorViewPDF,
|
95
|
+
MyAppSpotlight,
|
96
|
+
MyBoxesBackground,
|
97
|
+
MyBoxesCore,
|
98
|
+
MyButton,
|
99
|
+
MyButtonCreate,
|
100
|
+
MyButtonImport,
|
101
|
+
MyButtonModal,
|
102
|
+
MyButtonPrintPDF,
|
103
|
+
MyButtonPrintTablePDF,
|
104
|
+
MyButtonRouterBack,
|
105
|
+
MyButtonViewPDF,
|
106
|
+
MyCalendar,
|
107
|
+
MyCardInformation,
|
108
|
+
MyCardioLoader,
|
109
|
+
MyCenterFull,
|
110
|
+
MyCheckbox,
|
111
|
+
MyContainer,
|
112
|
+
MyDataTable,
|
113
|
+
MyDataTableSelect,
|
114
|
+
MyDateInput,
|
115
|
+
MyFieldset,
|
116
|
+
MyFileInput,
|
117
|
+
MyFlexColumn,
|
118
|
+
MyFlexEnd,
|
119
|
+
MyFlexRow,
|
120
|
+
MyHtmlWrapper,
|
121
|
+
MyIconText,
|
122
|
+
MyKeyLabel,
|
123
|
+
MyNumberFormatter,
|
124
|
+
MyNumberInput,
|
125
|
+
MyPageContent,
|
126
|
+
MyScheduleX,
|
127
|
+
MySelect,
|
128
|
+
MySelectAPIGet,
|
129
|
+
MySkeletonTable,
|
130
|
+
MySwitchTheme,
|
131
|
+
MyTab,
|
132
|
+
MyTextArea,
|
133
|
+
MyTextEditor,
|
134
|
+
MyTextInput,
|
135
|
+
SelectFieldModal,
|
136
|
+
SelectFileModal,
|
137
|
+
SpotlightTrigger,
|
138
|
+
groupToTwoLevels,
|
139
|
+
useHeaderMegaMenuStore,
|
140
|
+
useS_BasicAppShell,
|
141
|
+
useS_ButtonImport,
|
142
|
+
utils_layout_getItemsWithoutLinks
|
143
|
+
};
|
package/dist/hooks/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
2
|
-
import {
|
2
|
+
import { I as IAQModule } from '../IAQModule-XZYlbivW.mjs';
|
3
3
|
|
4
4
|
declare function useQ_AQ_GetAQModule(): _tanstack_react_query.UseQueryResult<IAQModule, Error>;
|
5
5
|
|
package/dist/hooks/index.mjs
CHANGED
@@ -1,2 +1,11 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import {
|
2
|
+
useQ_AQ_GetAQModule
|
3
|
+
} from "../chunk-Z6OQG54Q.mjs";
|
4
|
+
import "../chunk-7ZCOFATU.mjs";
|
5
|
+
import "../chunk-FWCSY2DS.mjs";
|
6
|
+
|
7
|
+
// src/hooks/custom-hooks/useC_MutationAction.tsx
|
8
|
+
import { useQueryClient } from "@tanstack/react-query";
|
9
|
+
export {
|
10
|
+
useQ_AQ_GetAQModule
|
11
|
+
};
|
@@ -0,0 +1,100 @@
|
|
1
|
+
/* src/components/Layouts/HeaderMegaMenu/css.module.css */
|
2
|
+
.header {
|
3
|
+
position: sticky;
|
4
|
+
top: 0;
|
5
|
+
z-index: 1;
|
6
|
+
height: calc(3.75rem * var(--mantine-scale));
|
7
|
+
background-color: var(--mantine-color-white);
|
8
|
+
}
|
9
|
+
[data-mantine-color-scheme=dark] .header {
|
10
|
+
background-color: var(--mantine-color-dark);
|
11
|
+
}
|
12
|
+
.header {
|
13
|
+
padding-left: var(--mantine-spacing-md);
|
14
|
+
padding-right: var(--mantine-spacing-md);
|
15
|
+
border-bottom: 1px solid var(--mantine-color-gray-3);
|
16
|
+
}
|
17
|
+
[data-mantine-color-scheme=dark] .header {
|
18
|
+
border-bottom: 1px solid var(--mantine-color-dark-4);
|
19
|
+
}
|
20
|
+
.link {
|
21
|
+
display: flex;
|
22
|
+
align-items: center;
|
23
|
+
height: 100%;
|
24
|
+
padding-left: var(--mantine-spacing-md);
|
25
|
+
padding-right: var(--mantine-spacing-md);
|
26
|
+
text-decoration: none;
|
27
|
+
color: var(--mantine-color-black);
|
28
|
+
}
|
29
|
+
[data-mantine-color-scheme=dark] .link {
|
30
|
+
color: var(--mantine-color-white);
|
31
|
+
}
|
32
|
+
.link {
|
33
|
+
font-weight: 500;
|
34
|
+
font-size: var(--mantine-font-size-sm);
|
35
|
+
}
|
36
|
+
@media (max-width: $mantine-breakpoint-sm) {
|
37
|
+
.link {
|
38
|
+
height: calc(2.625rem * var(--mantine-scale));
|
39
|
+
width: 100%;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
@media (hover: hover) {
|
43
|
+
.link:hover {
|
44
|
+
background-color: var(--mantine-color-gray-0);
|
45
|
+
}
|
46
|
+
[data-mantine-color-scheme=dark] .link:hover {
|
47
|
+
background-color: var(--mantine-color-dark-6);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
@media (hover: none) {
|
51
|
+
.link:active {
|
52
|
+
background-color: var(--mantine-color-gray-0);
|
53
|
+
}
|
54
|
+
[data-mantine-color-scheme=dark] .link:active {
|
55
|
+
background-color: var(--mantine-color-dark-6);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
.subLink {
|
59
|
+
width: 100%;
|
60
|
+
padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);
|
61
|
+
border-radius: var(--mantine-radius-md);
|
62
|
+
}
|
63
|
+
@media (hover: hover) {
|
64
|
+
.subLink:hover {
|
65
|
+
background-color: var(--mantine-color-gray-0);
|
66
|
+
}
|
67
|
+
[data-mantine-color-scheme=dark] .subLink:hover {
|
68
|
+
background-color: var(--mantine-color-dark-7);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
@media (hover: none) {
|
72
|
+
.subLink:active {
|
73
|
+
background-color: var(--mantine-color-gray-0);
|
74
|
+
}
|
75
|
+
[data-mantine-color-scheme=dark] .subLink:active {
|
76
|
+
background-color: var(--mantine-color-dark-7);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
.dropdownFooter {
|
80
|
+
background-color: var(--mantine-color-gray-0);
|
81
|
+
}
|
82
|
+
[data-mantine-color-scheme=dark] .dropdownFooter {
|
83
|
+
background-color: var(--mantine-color-dark-7);
|
84
|
+
}
|
85
|
+
.dropdownFooter {
|
86
|
+
margin: calc(var(--mantine-spacing-md) * -1);
|
87
|
+
margin-top: var(--mantine-spacing-sm);
|
88
|
+
padding: var(--mantine-spacing-md) calc(var(--mantine-spacing-md) * 2);
|
89
|
+
padding-bottom: var(--mantine-spacing-xl);
|
90
|
+
border-top: 1px solid var(--mantine-color-gray-1);
|
91
|
+
}
|
92
|
+
[data-mantine-color-scheme=dark] .dropdownFooter {
|
93
|
+
border-top: 1px solid var(--mantine-color-dark-5);
|
94
|
+
}
|
95
|
+
|
96
|
+
/* src/modules-features/authenticate/F_authenticate_Login/css.module.css */
|
97
|
+
.title {
|
98
|
+
font-family: Greycliff CF, var(--mantine-font-family);
|
99
|
+
font-weight: 900;
|
100
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import { SelectProps } from '@mantine/core';
|
3
3
|
import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-DRQbwDjA.mjs';
|
4
|
-
import {
|
4
|
+
import { a as IBaseEntity, I as IAQModule } from '../IAQModule-XZYlbivW.mjs';
|
5
5
|
import { ReactNode } from 'react';
|
6
6
|
|
7
7
|
declare function F_core12196({ FormTypeId }: {
|