aq-fe-framework 0.1.869 → 0.1.870
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-F6334KSN.mjs → chunk-AAPLH46O.mjs} +55 -48
- package/dist/components/index.mjs +3 -3
- package/dist/const/index.mjs +1 -1
- package/dist/core/index.mjs +3 -3
- package/dist/modules-features/index.mjs +3 -3
- package/dist/shared/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/{chunk-J64W5V6F.mjs → chunk-FE4HVT67.mjs} +1 -1
|
@@ -3,10 +3,6 @@ import {
|
|
|
3
3
|
useAppStore,
|
|
4
4
|
useStore_Permission
|
|
5
5
|
} from "./chunk-3P5GXZPO.mjs";
|
|
6
|
-
import {
|
|
7
|
-
utils_date,
|
|
8
|
-
utils_mantineReactTable
|
|
9
|
-
} from "./chunk-N7QM7SHQ.mjs";
|
|
10
6
|
import {
|
|
11
7
|
utils_aq_mapBaseEntityToDomain,
|
|
12
8
|
utils_aq_mapDomainToEntity,
|
|
@@ -18,6 +14,10 @@ import {
|
|
|
18
14
|
utils_file_fileToAQDocumentType,
|
|
19
15
|
utils_pdf_download
|
|
20
16
|
} from "./chunk-E4JVWPXS.mjs";
|
|
17
|
+
import {
|
|
18
|
+
utils_date,
|
|
19
|
+
utils_mantineReactTable
|
|
20
|
+
} from "./chunk-N7QM7SHQ.mjs";
|
|
21
21
|
import {
|
|
22
22
|
baseColumns
|
|
23
23
|
} from "./chunk-O7YCQQO5.mjs";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
const_object_colors,
|
|
30
30
|
const_object_documentTypes
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FE4HVT67.mjs";
|
|
32
32
|
import {
|
|
33
33
|
enum_daysOfWeek
|
|
34
34
|
} from "./chunk-K6S7R6LU.mjs";
|
|
@@ -9159,7 +9159,7 @@ import {
|
|
|
9159
9159
|
IconLibraryMinus
|
|
9160
9160
|
} from "@tabler/icons-react";
|
|
9161
9161
|
import { usePathname as usePathname3 } from "next/navigation.js";
|
|
9162
|
-
import { useEffect as
|
|
9162
|
+
import { useEffect as useEffect41, useMemo as useMemo41, useState as useState30 } from "react";
|
|
9163
9163
|
|
|
9164
9164
|
// src/components/Layouts/BasicAppShell/RenderNavLinks.tsx
|
|
9165
9165
|
import { Badge as Badge4, NavLink } from "@mantine/core";
|
|
@@ -14508,6 +14508,7 @@ import { useMemo as useMemo27 } from "react";
|
|
|
14508
14508
|
// src/modules-features/admin/core/mailConfig/F_mailConfig_CreateUpdate.tsx
|
|
14509
14509
|
import { PasswordInput as PasswordInput3, Stack as Stack8 } from "@mantine/core";
|
|
14510
14510
|
import { useForm as useForm29 } from "@mantine/form";
|
|
14511
|
+
import { useEffect as useEffect29 } from "react";
|
|
14511
14512
|
import { jsx as jsx181, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
14512
14513
|
function F_mailConfig_CreateUpdate({ values, emailModule }) {
|
|
14513
14514
|
function getEmailModuleLabelByValue(emailModuleOptions, value) {
|
|
@@ -14542,8 +14543,6 @@ function F_mailConfig_CreateUpdate({ values, emailModule }) {
|
|
|
14542
14543
|
"id": values ? formValues.id : 0,
|
|
14543
14544
|
"code": moduleName,
|
|
14544
14545
|
"name": moduleName,
|
|
14545
|
-
"concurrencyStamp": "string",
|
|
14546
|
-
"isEnabled": true,
|
|
14547
14546
|
"order": 0,
|
|
14548
14547
|
"emailModule": formValues.emailModule,
|
|
14549
14548
|
"hostMailServer": formValues.hostMailServer,
|
|
@@ -14554,6 +14553,12 @@ function F_mailConfig_CreateUpdate({ values, emailModule }) {
|
|
|
14554
14553
|
"password": formValues.password
|
|
14555
14554
|
});
|
|
14556
14555
|
}
|
|
14556
|
+
useEffect29((() => {
|
|
14557
|
+
if (!form) {
|
|
14558
|
+
return;
|
|
14559
|
+
}
|
|
14560
|
+
form.setFieldValue("password", "");
|
|
14561
|
+
}), [form]);
|
|
14557
14562
|
if (values) return /* @__PURE__ */ jsx181(
|
|
14558
14563
|
MyActionIconUpdate,
|
|
14559
14564
|
{
|
|
@@ -14590,18 +14595,18 @@ function FormInput2({ form, emailModule, isUpdate }) {
|
|
|
14590
14595
|
}, form.getInputProps("hostMailServer"))
|
|
14591
14596
|
),
|
|
14592
14597
|
/* @__PURE__ */ jsx181(
|
|
14593
|
-
|
|
14598
|
+
CustomNumberInput,
|
|
14594
14599
|
__spreadValues({
|
|
14595
14600
|
withAsterisk: true,
|
|
14596
|
-
|
|
14601
|
+
max: 65536,
|
|
14597
14602
|
label: "Outgoing port"
|
|
14598
14603
|
}, form.getInputProps("outgoingPort"))
|
|
14599
14604
|
),
|
|
14600
14605
|
/* @__PURE__ */ jsx181(
|
|
14601
|
-
|
|
14606
|
+
CustomNumberInput,
|
|
14602
14607
|
__spreadValues({
|
|
14603
14608
|
withAsterisk: true,
|
|
14604
|
-
|
|
14609
|
+
max: 65536,
|
|
14605
14610
|
label: "Incoming port"
|
|
14606
14611
|
}, form.getInputProps("incomingPort"))
|
|
14607
14612
|
),
|
|
@@ -14624,12 +14629,10 @@ function FormInput2({ form, emailModule, isUpdate }) {
|
|
|
14624
14629
|
),
|
|
14625
14630
|
/* @__PURE__ */ jsx181(
|
|
14626
14631
|
PasswordInput3,
|
|
14627
|
-
|
|
14632
|
+
__spreadValues({
|
|
14628
14633
|
label: "Password",
|
|
14629
14634
|
placeholder: "Nh\u1EADp password"
|
|
14630
|
-
}, form.getInputProps("password"))
|
|
14631
|
-
disabled: isUpdate
|
|
14632
|
-
})
|
|
14635
|
+
}, form.getInputProps("password"))
|
|
14633
14636
|
)
|
|
14634
14637
|
] });
|
|
14635
14638
|
}
|
|
@@ -14912,12 +14915,12 @@ var mockData2 = [
|
|
|
14912
14915
|
];
|
|
14913
14916
|
|
|
14914
14917
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
|
14915
|
-
import { useEffect as
|
|
14918
|
+
import { useEffect as useEffect31 } from "react";
|
|
14916
14919
|
|
|
14917
14920
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
|
14918
14921
|
import { Center as Center9, Grid as Grid8, Image as Image3, Paper as Paper14 } from "@mantine/core";
|
|
14919
14922
|
import { useForm as useForm31 } from "@mantine/form";
|
|
14920
|
-
import { useEffect as
|
|
14923
|
+
import { useEffect as useEffect30 } from "react";
|
|
14921
14924
|
|
|
14922
14925
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
|
14923
14926
|
import { useMutation as useMutation3 } from "@tanstack/react-query";
|
|
@@ -14988,7 +14991,7 @@ function F_moduleConfig_Form() {
|
|
|
14988
14991
|
logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
14989
14992
|
}
|
|
14990
14993
|
});
|
|
14991
|
-
|
|
14994
|
+
useEffect30(() => {
|
|
14992
14995
|
var _a2, _b2;
|
|
14993
14996
|
if (!query.data) return;
|
|
14994
14997
|
const values = {
|
|
@@ -15009,7 +15012,7 @@ function F_moduleConfig_Form() {
|
|
|
15009
15012
|
form.setInitialValues(values);
|
|
15010
15013
|
form.setValues(values);
|
|
15011
15014
|
}, [query.data]);
|
|
15012
|
-
|
|
15015
|
+
useEffect30(() => {
|
|
15013
15016
|
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
|
|
15014
15017
|
const values = {
|
|
15015
15018
|
code: "moduleCode",
|
|
@@ -15116,7 +15119,7 @@ function F_moduleConfig_Form() {
|
|
|
15116
15119
|
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
15117
15120
|
function F_moduleConfig({ AQModuleId }) {
|
|
15118
15121
|
const store = useS_moduleConfig();
|
|
15119
|
-
|
|
15122
|
+
useEffect31(() => {
|
|
15120
15123
|
store.setProperty("AQModuleId", AQModuleId);
|
|
15121
15124
|
}, []);
|
|
15122
15125
|
return /* @__PURE__ */ jsx190(F_moduleConfig_Form, {});
|
|
@@ -15204,7 +15207,7 @@ function F_organizationPolicyDocs_Create({
|
|
|
15204
15207
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
|
15205
15208
|
import { Accordion as Accordion5, Alert as Alert6, Blockquote as Blockquote5, Skeleton as Skeleton6 } from "@mantine/core";
|
|
15206
15209
|
import { IconBug as IconBug6 } from "@tabler/icons-react";
|
|
15207
|
-
import { useEffect as
|
|
15210
|
+
import { useEffect as useEffect32, useMemo as useMemo30, useState as useState23 } from "react";
|
|
15208
15211
|
|
|
15209
15212
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Delete.tsx
|
|
15210
15213
|
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
@@ -15315,7 +15318,7 @@ function F_organizationPolicyDocs_Read({
|
|
|
15315
15318
|
queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
|
|
15316
15319
|
axiosFn: () => service_documentAttribute.GetByType(RegulationsTypeId)
|
|
15317
15320
|
});
|
|
15318
|
-
|
|
15321
|
+
useEffect32(() => {
|
|
15319
15322
|
var _a2;
|
|
15320
15323
|
if (documentAttributeQuery.data && documentAttributeQuery.data.length > 0) {
|
|
15321
15324
|
const firstItemId = (_a2 = documentAttributeQuery.data[0].id) == null ? void 0 : _a2.toString();
|
|
@@ -15937,7 +15940,7 @@ function Adapter_RoleTable2(_a) {
|
|
|
15937
15940
|
|
|
15938
15941
|
// src/modules/Role/adapter/Adapter_RoleForm.tsx
|
|
15939
15942
|
import { useForm as useForm35 } from "@mantine/form";
|
|
15940
|
-
import { useEffect as
|
|
15943
|
+
import { useEffect as useEffect33 } from "react";
|
|
15941
15944
|
|
|
15942
15945
|
// src/modules/Role/usecase/UseCase_RoleForm.tsx
|
|
15943
15946
|
import { Stack as Stack9 } from "@mantine/core";
|
|
@@ -15988,7 +15991,7 @@ function Adapter_RoleForm({
|
|
|
15988
15991
|
},
|
|
15989
15992
|
mutationType: values ? "update" : "create"
|
|
15990
15993
|
});
|
|
15991
|
-
|
|
15994
|
+
useEffect33(() => {
|
|
15992
15995
|
if (!values) return;
|
|
15993
15996
|
form.initialize(values);
|
|
15994
15997
|
}, [values]);
|
|
@@ -16007,7 +16010,7 @@ function Adapter_RoleForm({
|
|
|
16007
16010
|
import { Group as Group34, TextInput as TextInput9 } from "@mantine/core";
|
|
16008
16011
|
import { useDebouncedValue as useDebouncedValue3 } from "@mantine/hooks";
|
|
16009
16012
|
import { IconSearch as IconSearch5 } from "@tabler/icons-react";
|
|
16010
|
-
import { useEffect as
|
|
16013
|
+
import { useEffect as useEffect34, useState as useState25 } from "react";
|
|
16011
16014
|
|
|
16012
16015
|
// src/modules/User/usecase/Usecase_UserTable.tsx
|
|
16013
16016
|
import { useMemo as useMemo36 } from "react";
|
|
@@ -16083,7 +16086,7 @@ function Adapter_UserTable(_a) {
|
|
|
16083
16086
|
});
|
|
16084
16087
|
}
|
|
16085
16088
|
});
|
|
16086
|
-
|
|
16089
|
+
useEffect34(() => {
|
|
16087
16090
|
setGlobalFilter(debouncedSearch);
|
|
16088
16091
|
paginationState[1]({ pageIndex: 0, pageSize: paginationState[0].pageSize });
|
|
16089
16092
|
}, [debouncedSearch]);
|
|
@@ -16122,7 +16125,7 @@ function Adapter_UserTable(_a) {
|
|
|
16122
16125
|
import { useDisclosure as useDisclosure16 } from "@mantine/hooks";
|
|
16123
16126
|
import { notifications as notifications3 } from "@mantine/notifications";
|
|
16124
16127
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
16125
|
-
import { useEffect as
|
|
16128
|
+
import { useEffect as useEffect35, useState as useState26 } from "react";
|
|
16126
16129
|
import { jsx as jsx214 } from "react/jsx-runtime";
|
|
16127
16130
|
function Adapter_UserAddToRole({
|
|
16128
16131
|
roleId,
|
|
@@ -16163,7 +16166,7 @@ function Adapter_UserAddToRole({
|
|
|
16163
16166
|
},
|
|
16164
16167
|
enableDefaultSuccess: false
|
|
16165
16168
|
});
|
|
16166
|
-
|
|
16169
|
+
useEffect35(() => {
|
|
16167
16170
|
if (userIds == null ? void 0 : userIds.length) {
|
|
16168
16171
|
const selected = userIds.reduce((acc, id) => {
|
|
16169
16172
|
acc[id] = true;
|
|
@@ -16218,7 +16221,7 @@ function Adapter_UserDeleteFromRole({
|
|
|
16218
16221
|
}
|
|
16219
16222
|
|
|
16220
16223
|
// src/modules/User/adapter/Adapter_UserTableByRole.tsx
|
|
16221
|
-
import { useEffect as
|
|
16224
|
+
import { useEffect as useEffect36 } from "react";
|
|
16222
16225
|
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
16223
16226
|
function Adapter_UserTableByRole(_a) {
|
|
16224
16227
|
var _b = _a, { byRoleId } = _b, rest = __objRest(_b, ["byRoleId"]);
|
|
@@ -16229,7 +16232,7 @@ function Adapter_UserTableByRole(_a) {
|
|
|
16229
16232
|
return service_role.getUserByRole({ roleId: byRoleId });
|
|
16230
16233
|
}
|
|
16231
16234
|
});
|
|
16232
|
-
|
|
16235
|
+
useEffect36(() => {
|
|
16233
16236
|
if (adminAccountQuery.data && rest.onUserLoad) {
|
|
16234
16237
|
const users = adminAccountQuery.data.map(mapper_user.mapToDomain);
|
|
16235
16238
|
rest.onUserLoad(users);
|
|
@@ -17040,7 +17043,7 @@ function F_workflowProcessDocs_Create({
|
|
|
17040
17043
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
|
17041
17044
|
import { Accordion as Accordion6, Alert as Alert7, Blockquote as Blockquote6, Skeleton as Skeleton7 } from "@mantine/core";
|
|
17042
17045
|
import { IconBug as IconBug7 } from "@tabler/icons-react";
|
|
17043
|
-
import { useEffect as
|
|
17046
|
+
import { useEffect as useEffect37, useMemo as useMemo40, useState as useState28 } from "react";
|
|
17044
17047
|
|
|
17045
17048
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
|
|
17046
17049
|
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
@@ -17151,7 +17154,7 @@ function F_workflowProcessDocs_Read({
|
|
|
17151
17154
|
queryKey: ["F_workflowProcessDocs_Read" + WorkflowTypeId],
|
|
17152
17155
|
axiosFn: () => service_documentAttribute.GetByType(WorkflowTypeId)
|
|
17153
17156
|
});
|
|
17154
|
-
|
|
17157
|
+
useEffect37(() => {
|
|
17155
17158
|
var _a2;
|
|
17156
17159
|
if (documentAttributeQuery.data && documentAttributeQuery.data.length > 0) {
|
|
17157
17160
|
const firstItemId = (_a2 = documentAttributeQuery.data[0].id) == null ? void 0 : _a2.toString();
|
|
@@ -17283,7 +17286,7 @@ import { notifications as notifications4 } from "@mantine/notifications";
|
|
|
17283
17286
|
import { useMutation as useMutation4 } from "@tanstack/react-query";
|
|
17284
17287
|
import Link4 from "next/link.js";
|
|
17285
17288
|
import { useRouter as useRouter4 } from "next/navigation.js";
|
|
17286
|
-
import { useEffect as
|
|
17289
|
+
import { useEffect as useEffect38 } from "react";
|
|
17287
17290
|
|
|
17288
17291
|
// src/modules-features/authenticate/useStore_Authenticate.ts
|
|
17289
17292
|
var useStore5 = createGenericStore({
|
|
@@ -17324,7 +17327,7 @@ function Feat_Authenticate_Login({
|
|
|
17324
17327
|
password: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
17325
17328
|
}
|
|
17326
17329
|
});
|
|
17327
|
-
|
|
17330
|
+
useEffect38(() => {
|
|
17328
17331
|
var _a;
|
|
17329
17332
|
form.setValues({
|
|
17330
17333
|
username: ((_a = authenticateStore.state) == null ? void 0 : _a.username) || "",
|
|
@@ -17466,7 +17469,7 @@ function Feat_Authenticate_Logout({ redirectURL = "/auth/login" }) {
|
|
|
17466
17469
|
|
|
17467
17470
|
// src/modules-features/authenticate/Feat_Authenticate_SSOHandler.tsx
|
|
17468
17471
|
import { useSearchParams } from "next/navigation.js";
|
|
17469
|
-
import { useEffect as
|
|
17472
|
+
import { useEffect as useEffect39, useState as useState29 } from "react";
|
|
17470
17473
|
|
|
17471
17474
|
// src/modules-features/authenticate/useAuthenticateManager.ts
|
|
17472
17475
|
function useAuthenticateManager() {
|
|
@@ -17503,7 +17506,7 @@ function Feat_Authenticate_SSOHandler({
|
|
|
17503
17506
|
const [messError, setMessError] = useState29("");
|
|
17504
17507
|
const studentCode = searchParams.get("code");
|
|
17505
17508
|
const token = searchParams.get("token");
|
|
17506
|
-
|
|
17509
|
+
useEffect39(() => {
|
|
17507
17510
|
localStorage.clear();
|
|
17508
17511
|
if (config4.isLoading == true) return;
|
|
17509
17512
|
if (studentCode && token) {
|
|
@@ -17549,12 +17552,12 @@ function Feat_Authenticate_SSOHandler({
|
|
|
17549
17552
|
|
|
17550
17553
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
|
17551
17554
|
import { useRouter as useRouter6 } from "next/navigation.js";
|
|
17552
|
-
import { useEffect as
|
|
17555
|
+
import { useEffect as useEffect40 } from "react";
|
|
17553
17556
|
import { jsx as jsx241 } from "react/jsx-runtime";
|
|
17554
17557
|
function F_authenticate_SplashPage() {
|
|
17555
17558
|
const router = useRouter6();
|
|
17556
17559
|
const authenticateStore = useStore_Authenticate();
|
|
17557
|
-
|
|
17560
|
+
useEffect40(() => {
|
|
17558
17561
|
if (authenticateStore.state.token == "") {
|
|
17559
17562
|
router.push("/authenticate/login");
|
|
17560
17563
|
return;
|
|
@@ -17915,7 +17918,7 @@ function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect, i
|
|
|
17915
17918
|
return result;
|
|
17916
17919
|
}, [filteredMenu]);
|
|
17917
17920
|
useFavicon(faviconUrl);
|
|
17918
|
-
|
|
17921
|
+
useEffect41(() => {
|
|
17919
17922
|
if (!moduleData) return;
|
|
17920
17923
|
const { code, name, faviconFileDetail, logoFileDetail } = moduleData;
|
|
17921
17924
|
appShellStore.setProperty("moduleCode", code);
|
|
@@ -17928,12 +17931,12 @@ function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect, i
|
|
|
17928
17931
|
return () => URL.revokeObjectURL(url);
|
|
17929
17932
|
}
|
|
17930
17933
|
}, [moduleData]);
|
|
17931
|
-
|
|
17934
|
+
useEffect41(() => {
|
|
17932
17935
|
if (moduleData == null ? void 0 : moduleData.name) {
|
|
17933
17936
|
document.title = moduleData.name;
|
|
17934
17937
|
}
|
|
17935
17938
|
}, [moduleData == null ? void 0 : moduleData.name]);
|
|
17936
|
-
|
|
17939
|
+
useEffect41(() => {
|
|
17937
17940
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
17938
17941
|
const currentItem = allChildItems.find((item) => pathname.includes(item.link));
|
|
17939
17942
|
const currentPermission = (_a = permissionStore.state.permission) == null ? void 0 : _a.find((item) => item.pageId == (currentItem == null ? void 0 : currentItem.pageId));
|
|
@@ -18202,7 +18205,7 @@ import { Badge as Badge6, Breadcrumbs, Center as Center12, Container as Containe
|
|
|
18202
18205
|
import { useClipboard, useDisclosure as useDisclosure20 } from "@mantine/hooks";
|
|
18203
18206
|
import { notifications as notifications5 } from "@mantine/notifications";
|
|
18204
18207
|
import { IconBrandParsinta } from "@tabler/icons-react";
|
|
18205
|
-
import { useEffect as
|
|
18208
|
+
import { useEffect as useEffect42 } from "react";
|
|
18206
18209
|
|
|
18207
18210
|
// src/components/Layouts/PageContent/utils.ts
|
|
18208
18211
|
function getFinalLinkVieo(url) {
|
|
@@ -18277,7 +18280,7 @@ function MyPageContent({
|
|
|
18277
18280
|
});
|
|
18278
18281
|
const videoDisc = useDisclosure20();
|
|
18279
18282
|
const finalTitle = title || basicAppShellStore.state.title;
|
|
18280
|
-
|
|
18283
|
+
useEffect42(() => {
|
|
18281
18284
|
basicAppShellStore.setProperty("fileGuildDetail", void 0);
|
|
18282
18285
|
if (!query.data) return;
|
|
18283
18286
|
basicAppShellStore.setProperty("fileGuildDetail", query.data);
|
|
@@ -18518,7 +18521,7 @@ import {
|
|
|
18518
18521
|
} from "@mantine/core";
|
|
18519
18522
|
import { notifications as notifications6 } from "@mantine/notifications";
|
|
18520
18523
|
import { IconCircleFilled } from "@tabler/icons-react";
|
|
18521
|
-
import { useEffect as
|
|
18524
|
+
import { useEffect as useEffect43, useMemo as useMemo42, useState as useState32 } from "react";
|
|
18522
18525
|
import * as XLSX4 from "xlsx";
|
|
18523
18526
|
import { jsx as jsx254, jsxs as jsxs140 } from "react/jsx-runtime";
|
|
18524
18527
|
function FileImportConfigModal(_a) {
|
|
@@ -18554,7 +18557,7 @@ function FileImportConfigModal(_a) {
|
|
|
18554
18557
|
setDataStartIndex("3");
|
|
18555
18558
|
if (file2) parseExcel(file2);
|
|
18556
18559
|
};
|
|
18557
|
-
|
|
18560
|
+
useEffect43(() => {
|
|
18558
18561
|
const headerRowIndex = titleIndex ? parseInt(titleIndex) - 1 : null;
|
|
18559
18562
|
const dataRowIndex = dataStartIndex ? parseInt(dataStartIndex) - 1 : null;
|
|
18560
18563
|
if (!rawData || headerRowIndex === null || dataRowIndex === null || dataRowIndex >= rawData.length || headerRowIndex >= rawData.length) {
|
|
@@ -18566,7 +18569,11 @@ function FileImportConfigModal(_a) {
|
|
|
18566
18569
|
const result = rawData.slice(dataRowIndex).map((row) => {
|
|
18567
18570
|
const rowObj = {};
|
|
18568
18571
|
headers.forEach((key, idx) => {
|
|
18569
|
-
|
|
18572
|
+
let value = row[idx];
|
|
18573
|
+
if (typeof value === "number" && (key == null ? void 0 : key.toLowerCase().includes("date"))) {
|
|
18574
|
+
value = XLSX4.SSF.format("dd/mm/yyyy", value);
|
|
18575
|
+
}
|
|
18576
|
+
rowObj[key || `col_${idx}`] = value;
|
|
18570
18577
|
});
|
|
18571
18578
|
return rowObj;
|
|
18572
18579
|
});
|
|
@@ -18590,7 +18597,7 @@ function FileImportConfigModal(_a) {
|
|
|
18590
18597
|
return obj;
|
|
18591
18598
|
});
|
|
18592
18599
|
}, [rawData]);
|
|
18593
|
-
|
|
18600
|
+
useEffect43(() => {
|
|
18594
18601
|
if (titleIndex && dataStartIndex && parseInt(dataStartIndex) <= parseInt(titleIndex)) {
|
|
18595
18602
|
setDataStartIndex((parseInt(titleIndex) + 1).toString());
|
|
18596
18603
|
}
|
|
@@ -70,13 +70,13 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-AAPLH46O.mjs";
|
|
74
74
|
import "../chunk-3P5GXZPO.mjs";
|
|
75
|
-
import "../chunk-N7QM7SHQ.mjs";
|
|
76
75
|
import "../chunk-E4JVWPXS.mjs";
|
|
76
|
+
import "../chunk-N7QM7SHQ.mjs";
|
|
77
77
|
import "../chunk-O7YCQQO5.mjs";
|
|
78
78
|
import "../chunk-QSWIVDXC.mjs";
|
|
79
|
-
import "../chunk-
|
|
79
|
+
import "../chunk-FE4HVT67.mjs";
|
|
80
80
|
import "../chunk-K6S7R6LU.mjs";
|
|
81
81
|
import "../chunk-7Y4HBY2D.mjs";
|
|
82
82
|
import "../chunk-WZ6PXGGC.mjs";
|
package/dist/const/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
MyStatsCard,
|
|
30
30
|
MyTextInput2 as MyTextInput,
|
|
31
31
|
MyWeeklySessionSchedulerPicker
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-AAPLH46O.mjs";
|
|
33
33
|
import "../chunk-3P5GXZPO.mjs";
|
|
34
|
-
import "../chunk-N7QM7SHQ.mjs";
|
|
35
34
|
import "../chunk-E4JVWPXS.mjs";
|
|
35
|
+
import "../chunk-N7QM7SHQ.mjs";
|
|
36
36
|
import "../chunk-O7YCQQO5.mjs";
|
|
37
37
|
import "../chunk-QSWIVDXC.mjs";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-FE4HVT67.mjs";
|
|
39
39
|
import "../chunk-K6S7R6LU.mjs";
|
|
40
40
|
import "../chunk-7Y4HBY2D.mjs";
|
|
41
41
|
import "../chunk-WZ6PXGGC.mjs";
|
|
@@ -113,13 +113,13 @@ import {
|
|
|
113
113
|
MailTemplateDeleteButton,
|
|
114
114
|
useS_moduleConfig,
|
|
115
115
|
useStore_Authenticate
|
|
116
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-AAPLH46O.mjs";
|
|
117
117
|
import "../chunk-3P5GXZPO.mjs";
|
|
118
|
-
import "../chunk-N7QM7SHQ.mjs";
|
|
119
118
|
import "../chunk-E4JVWPXS.mjs";
|
|
119
|
+
import "../chunk-N7QM7SHQ.mjs";
|
|
120
120
|
import "../chunk-O7YCQQO5.mjs";
|
|
121
121
|
import "../chunk-QSWIVDXC.mjs";
|
|
122
|
-
import "../chunk-
|
|
122
|
+
import "../chunk-FE4HVT67.mjs";
|
|
123
123
|
import "../chunk-K6S7R6LU.mjs";
|
|
124
124
|
import "../chunk-7Y4HBY2D.mjs";
|
|
125
125
|
import "../chunk-WZ6PXGGC.mjs";
|
package/dist/shared/index.mjs
CHANGED
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
} from "../chunk-RGUQWALX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
MySelect
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-AAPLH46O.mjs";
|
|
8
8
|
import "../chunk-3P5GXZPO.mjs";
|
|
9
|
+
import "../chunk-E4JVWPXS.mjs";
|
|
9
10
|
import {
|
|
10
11
|
utils_converter
|
|
11
12
|
} from "../chunk-N7QM7SHQ.mjs";
|
|
12
|
-
import "../chunk-E4JVWPXS.mjs";
|
|
13
13
|
import "../chunk-O7YCQQO5.mjs";
|
|
14
14
|
import "../chunk-QSWIVDXC.mjs";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-FE4HVT67.mjs";
|
|
16
16
|
import "../chunk-K6S7R6LU.mjs";
|
|
17
17
|
import "../chunk-7Y4HBY2D.mjs";
|
|
18
18
|
import "../chunk-WZ6PXGGC.mjs";
|
package/package.json
CHANGED