aq-fe-framework 0.1.457 → 0.1.459

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.
@@ -7483,7 +7483,17 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
7483
7483
  /* @__PURE__ */ jsxs28(AppShell.Section, { px: "md", children: [
7484
7484
  /* @__PURE__ */ jsx51(Divider2, {}),
7485
7485
  /* @__PURE__ */ jsx51(F_authenticate_Logout, {}),
7486
- /* @__PURE__ */ jsx51(
7486
+ process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1" ? /* @__PURE__ */ jsx51(
7487
+ Image3,
7488
+ {
7489
+ fit: "contain",
7490
+ src: `/imgs/mainLogo.png`,
7491
+ h: "115px",
7492
+ fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
7493
+ alt: "Main logo",
7494
+ w: "330px"
7495
+ }
7496
+ ) : /* @__PURE__ */ jsx51(
7487
7497
  Image3,
7488
7498
  {
7489
7499
  fit: "contain",
@@ -2,13 +2,13 @@ import {
2
2
  MyDataTable,
3
3
  MyFlexColumn,
4
4
  MyFlexRow
5
- } from "./chunk-562G3GRP.mjs";
6
- import {
7
- const_object_colors
8
- } from "./chunk-OMJJAHOC.mjs";
5
+ } from "./chunk-5A5AGS35.mjs";
9
6
  import {
10
7
  enum_daysOfWeek
11
8
  } from "./chunk-K6S7R6LU.mjs";
9
+ import {
10
+ const_object_colors
11
+ } from "./chunk-OMJJAHOC.mjs";
12
12
  import {
13
13
  useMyReactMutation,
14
14
  useMyReactQuery
@@ -65,7 +65,7 @@ import {
65
65
  useS_BasicAppShell,
66
66
  useS_ButtonImport,
67
67
  utils_layout_getItemsWithoutLinks
68
- } from "../chunk-562G3GRP.mjs";
68
+ } from "../chunk-5A5AGS35.mjs";
69
69
  import "../chunk-U62R2QKJ.mjs";
70
70
  import "../chunk-5U2JSHSJ.mjs";
71
71
  import "../chunk-OMJJAHOC.mjs";
@@ -16,13 +16,13 @@ import {
16
16
  MyStatsCard,
17
17
  MyTextInput,
18
18
  MyWeeklySessionSchedulerPicker
19
- } from "../chunk-WB7DS7PH.mjs";
20
- import "../chunk-562G3GRP.mjs";
19
+ } from "../chunk-DNCEJ7WI.mjs";
20
+ import "../chunk-5A5AGS35.mjs";
21
21
  import "../chunk-U62R2QKJ.mjs";
22
22
  import "../chunk-5U2JSHSJ.mjs";
23
+ import "../chunk-K6S7R6LU.mjs";
23
24
  import "../chunk-GFEMKKFH.mjs";
24
25
  import "../chunk-OMJJAHOC.mjs";
25
- import "../chunk-K6S7R6LU.mjs";
26
26
  import "../chunk-KFSAV44B.mjs";
27
27
  import "../chunk-7ZCOFATU.mjs";
28
28
  import "../chunk-FWCSY2DS.mjs";
@@ -1,6 +1,6 @@
1
- export { I as IEmailConfig } from '../EmailConfig-Bza2PzTi.mjs';
2
1
  export { I as IAQModule } from '../IAQModule-DfONsRwE.mjs';
3
2
  import { I as IBaseEntity } from '../IBaseEntity-BprRafT5.mjs';
3
+ export { I as IEmailConfig } from '../IEmailConfig-Bza2PzTi.mjs';
4
4
 
5
5
  interface IFile {
6
6
  fileName?: string | undefined;
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-CGKvZ5wV.mjs';
3
3
  import { I as IBaseEntity } from '../IBaseEntity-BprRafT5.mjs';
4
4
  import { SelectProps, ButtonProps } from '@mantine/core';
5
- import { I as IEmailConfig } from '../EmailConfig-Bza2PzTi.mjs';
5
+ import { I as IEmailConfig } from '../IEmailConfig-Bza2PzTi.mjs';
6
6
  import { I as IAQModule } from '../IAQModule-DfONsRwE.mjs';
7
7
  import { ReactNode } from 'react';
8
8
 
@@ -579,14 +579,10 @@ declare function F_formTemplateDocs_Update({ values, FormTypeId, }: {
579
579
 
580
580
  declare function F_mailConfig(): react_jsx_runtime.JSX.Element;
581
581
 
582
- declare function F_mailConfig_Delete({ values }: {
583
- values: IBaseEntity;
584
- }): react_jsx_runtime.JSX.Element;
585
-
586
582
  interface I$9 extends IEmailConfig {
587
583
  password?: string;
588
584
  }
589
- declare function F_mailConfig_Form({ values, emailModule }: {
585
+ declare function F_mailConfig_CreateUpdate({ values, emailModule }: {
590
586
  values?: I$9;
591
587
  emailModule: (string | {
592
588
  value: string;
@@ -594,6 +590,10 @@ declare function F_mailConfig_Form({ values, emailModule }: {
594
590
  })[];
595
591
  }): react_jsx_runtime.JSX.Element;
596
592
 
593
+ declare function F_mailConfig_Delete({ values }: {
594
+ values: IBaseEntity;
595
+ }): react_jsx_runtime.JSX.Element;
596
+
597
597
  declare function F_mailConfig_Read({ emailModule }: {
598
598
  emailModule: (string | {
599
599
  value: string;
@@ -943,4 +943,4 @@ interface F_authenticate_Login_Props {
943
943
  }
944
944
  declare function F_authenticate_Login({ header, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess, showLoginButton, showSaveLogin, showForgotPassword, customSubmit, loginButtonProps }: F_authenticate_Login_Props): react_jsx_runtime.JSX.Element;
945
945
 
946
- export { F_accessControl, F_accessControlLevel, F_accessControlLevel_ReadUser, F_accessControlLevel_Save, F_accessControlLevel_ViewMenuPermissions, F_accessControl_ReadUser, F_accessControl_Save, F_accessControl_ViewMenuPermissions, F_accountManagement, F_accountManagement_ChangePermission, F_accountManagement_Create, F_accountManagement_Delete, F_accountManagement_Read, F_accountManagement_Update, F_authenticate_Login, F_authenticate_Logout, F_authenticate_SplashPage, F_core12196, F_core12196_Create, F_core12196_Delete, F_core12196_Read, F_core12196_Update, F_core16209, F_core16209_Create, F_core16209_Delete, F_core16209_Update, F_core18256, F_core18256_Create, F_core18256_Delete, F_core18256_Read, F_core18256_Select, F_core18256_Update, F_core26965, F_core26965_Create, F_core26965_Delete, F_core26965_Update, F_core27311, F_core27311_Create, F_core27311_Delete, F_core27311_Read, F_core27311_Update, F_core35923, F_core40207, F_core40207_Create, F_core40207_Delete, F_core40207_Read, F_core40207_Update, F_core47643, F_core47643_Delete, F_core47643_Form, F_core47643_Read, F_core64229, F_core64229_Delete, F_core64229_Form, F_core64229_Read, F_core76318, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_documentCategories, F_documentCategories_Create, F_documentCategories_Delete, F_documentCategories_Read, F_documentCategories_Select, F_documentCategories_Update, F_formTemplateDocs, F_formTemplateDocs_Create, F_formTemplateDocs_Delete, F_formTemplateDocs_Read, F_formTemplateDocs_Update, F_mailConfig, F_mailConfig_Delete, F_mailConfig_Form, F_mailConfig_Read, F_moduleConfig, F_organizationPolicyDocs, F_organizationPolicyDocs_Create, F_organizationPolicyDocs_Delete, F_organizationPolicyDocs_Update, F_pageContentConfig, F_roleCatalog, F_roleCatalog_Delete, F_roleCatalog_Form, F_roleCatalog_Read, F_securityPolicyDocs, F_securityPolicyDocs_Create, F_securityPolicyDocs_Delete, F_securityPolicyDocs_Update, F_systemUpdateDocs, F_systemUpdateDocs_Create, F_systemUpdateDocs_Delete, F_systemUpdateDocs_Update, F_userGuideDocs, F_userGuideDocs_Create, F_userGuideDocs_Delete, F_userGuideDocs_Read, F_userGuideDocs_Update, F_workflowProcessDocs, F_workflowProcessDocs_Create, F_workflowProcessDocs_Delete, F_workflowProcessDocs_Read, F_workflowProcessDocs_Update, type I_accessControl_RolePermission, type I_accountManagement_Read, type I_moduleConfig_AQModule, useS_accessControl, useS_authenticate, useS_moduleConfig, utils_accessControl_mergePage };
946
+ export { F_accessControl, F_accessControlLevel, F_accessControlLevel_ReadUser, F_accessControlLevel_Save, F_accessControlLevel_ViewMenuPermissions, F_accessControl_ReadUser, F_accessControl_Save, F_accessControl_ViewMenuPermissions, F_accountManagement, F_accountManagement_ChangePermission, F_accountManagement_Create, F_accountManagement_Delete, F_accountManagement_Read, F_accountManagement_Update, F_authenticate_Login, F_authenticate_Logout, F_authenticate_SplashPage, F_core12196, F_core12196_Create, F_core12196_Delete, F_core12196_Read, F_core12196_Update, F_core16209, F_core16209_Create, F_core16209_Delete, F_core16209_Update, F_core18256, F_core18256_Create, F_core18256_Delete, F_core18256_Read, F_core18256_Select, F_core18256_Update, F_core26965, F_core26965_Create, F_core26965_Delete, F_core26965_Update, F_core27311, F_core27311_Create, F_core27311_Delete, F_core27311_Read, F_core27311_Update, F_core35923, F_core40207, F_core40207_Create, F_core40207_Delete, F_core40207_Read, F_core40207_Update, F_core47643, F_core47643_Delete, F_core47643_Form, F_core47643_Read, F_core64229, F_core64229_Delete, F_core64229_Form, F_core64229_Read, F_core76318, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_documentCategories, F_documentCategories_Create, F_documentCategories_Delete, F_documentCategories_Read, F_documentCategories_Select, F_documentCategories_Update, F_formTemplateDocs, F_formTemplateDocs_Create, F_formTemplateDocs_Delete, F_formTemplateDocs_Read, F_formTemplateDocs_Update, F_mailConfig, F_mailConfig_CreateUpdate, F_mailConfig_Delete, F_mailConfig_Read, F_moduleConfig, F_organizationPolicyDocs, F_organizationPolicyDocs_Create, F_organizationPolicyDocs_Delete, F_organizationPolicyDocs_Update, F_pageContentConfig, F_roleCatalog, F_roleCatalog_Delete, F_roleCatalog_Form, F_roleCatalog_Read, F_securityPolicyDocs, F_securityPolicyDocs_Create, F_securityPolicyDocs_Delete, F_securityPolicyDocs_Update, F_systemUpdateDocs, F_systemUpdateDocs_Create, F_systemUpdateDocs_Delete, F_systemUpdateDocs_Update, F_userGuideDocs, F_userGuideDocs_Create, F_userGuideDocs_Delete, F_userGuideDocs_Read, F_userGuideDocs_Update, F_workflowProcessDocs, F_workflowProcessDocs_Create, F_workflowProcessDocs_Delete, F_workflowProcessDocs_Read, F_workflowProcessDocs_Update, type I_accessControl_RolePermission, type I_accountManagement_Read, type I_moduleConfig_AQModule, useS_accessControl, useS_authenticate, useS_moduleConfig, utils_accessControl_mergePage };
@@ -15,7 +15,7 @@ import {
15
15
  MyButton as MyButton2,
16
16
  MyDataTableSelectOne,
17
17
  MyTextInput as MyTextInput2
18
- } from "../chunk-WB7DS7PH.mjs";
18
+ } from "../chunk-DNCEJ7WI.mjs";
19
19
  import {
20
20
  F_authenticate_Logout,
21
21
  MyActionIconDelete,
@@ -41,21 +41,21 @@ import {
41
41
  groupToTwoLevels,
42
42
  useS_authenticate,
43
43
  utils_layout_getItemsWithoutLinks
44
- } from "../chunk-562G3GRP.mjs";
44
+ } from "../chunk-5A5AGS35.mjs";
45
45
  import {
46
46
  createGenericStore
47
47
  } from "../chunk-U62R2QKJ.mjs";
48
48
  import "../chunk-5U2JSHSJ.mjs";
49
+ import {
50
+ enum_emailConfigModule
51
+ } from "../chunk-VH4ZAD6M.mjs";
52
+ import "../chunk-K6S7R6LU.mjs";
49
53
  import {
50
54
  const_object_documentTypes
51
55
  } from "../chunk-GFEMKKFH.mjs";
52
56
  import {
53
57
  const_object_colors
54
58
  } from "../chunk-OMJJAHOC.mjs";
55
- import {
56
- enum_emailConfigModule
57
- } from "../chunk-VH4ZAD6M.mjs";
58
- import "../chunk-K6S7R6LU.mjs";
59
59
  import {
60
60
  baseAxios_default,
61
61
  createBaseApi,
@@ -538,15 +538,12 @@ var menuData = [
538
538
  {
539
539
  label: "Qu\u1EA3n l\xED h\u1EC7 th\u1ED1ng",
540
540
  links: [
541
- { pageId: 1, name: "accountManagement", label: "Qu\u1EA3n l\xED t\xE0i kho\u1EA3n", link: "accountManagement", note: "Qu\u1EA3n l\xED t\xE0i kho\u1EA3n c\u1EE7a ng\u01B0\u1EDDi d\xF9ng" },
542
- //core71678
543
- { pageId: 2, name: "Access control level", label: "Ph\xE2n quy\u1EC1n c\u1EA5p \u0111\u01A1n v\u1ECB", link: "accessControlLevel", note: "Qu\u1EA3n l\xED t\xE0i kho\u1EA3n c\u1EE7a ng\u01B0\u1EDDi d\xF9ng" },
544
- //core38677
545
- { pageId: 3, name: "Access control", label: "Ph\xE2n quy\u1EC1n s\u1EED d\u1EE5ng", link: "accessControl", note: "Qu\u1EA3n l\xED t\xE0i kho\u1EA3n c\u1EE7a ng\u01B0\u1EDDi d\xF9ng" },
546
- //core83092
547
- { pageId: 4, name: "Security regulations", label: "Quy \u0111\u1ECBnh an to\xE0n/ b\u1EA3o m\u1EADt th\xF4ng tin", link: "core76318" },
548
- { pageId: 5, name: "System updates", label: "Th\xF4ng tin x\xE2y d\u1EF1ng, c\u1EA3i ti\u1EBFn, b\u1EA3o tr\xEC h\u1EC7 th\u1ED1ng", link: "core16209" },
549
- { pageId: 6, name: "User guide", label: "T\xE0i li\u1EC7u h\u01B0\u1EDBng d\u1EABn s\u1EED d\u1EE5ng", link: "core40207" }
541
+ { pageId: 1, name: "Account management", label: "Qu\u1EA3n l\xED t\xE0i kho\u1EA3n", link: "accountManagement" },
542
+ { pageId: 2, name: "Access control level", label: "Ph\xE2n quy\u1EC1n c\u1EA5p \u0111\u01A1n v\u1ECB", link: "accessControlLevel" },
543
+ { pageId: 3, name: "Access control", label: "Ph\xE2n quy\u1EC1n s\u1EED d\u1EE5ng", link: "accessControl" },
544
+ { pageId: 4, name: "Security regulations", label: "Quy \u0111\u1ECBnh an to\xE0n/ b\u1EA3o m\u1EADt th\xF4ng tin", link: "securityPolicyDocs" },
545
+ { pageId: 5, name: "System updates", label: "Th\xF4ng tin x\xE2y d\u1EF1ng, c\u1EA3i ti\u1EBFn, b\u1EA3o tr\xEC h\u1EC7 th\u1ED1ng", link: "systemUpdateDocs" },
546
+ { pageId: 6, name: "User guide", label: "T\xE0i li\u1EC7u h\u01B0\u1EDBng d\u1EABn s\u1EED d\u1EE5ng", link: "userGuideDocs" }
550
547
  ]
551
548
  },
552
549
  {
@@ -558,12 +555,12 @@ var menuData = [
558
555
  ]
559
556
  },
560
557
  {
561
- label: "Danh m\u1EE5c h\u1EC7 th\u1ED1ng ",
558
+ label: "Danh m\u1EE5c h\u1EC7 th\u1ED1ng",
562
559
  links: [
563
- { pageId: 0, name: "Document categories", label: "Danh m\u1EE5c lo\u1EA1i v\u0103n b\u1EA3n", link: "core18256" },
564
- { pageId: 0, name: "", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "core64229" },
565
- { pageId: 0, name: "", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "moduleConfig" },
566
- { pageId: 0, name: "", label: "Danh m\u1EE5c Page Content", link: "pageContentConfig" }
560
+ { pageId: 0, name: "Document categories", label: "Danh m\u1EE5c lo\u1EA1i v\u0103n b\u1EA3n", link: "documentCategories" },
561
+ { pageId: 0, name: "mailConfig", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "mailConfig" },
562
+ { pageId: 0, name: "pageContentConfig", label: "Danh m\u1EE5c Page Content", link: "pageContentConfig" },
563
+ { pageId: 0, name: "moduleConfig", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "moduleConfig" }
567
564
  ]
568
565
  }
569
566
  ];
@@ -3726,31 +3723,18 @@ function F_formTemplateDocs({
3726
3723
  ] });
3727
3724
  }
3728
3725
 
3726
+ // src/api/services/service_emailConfig.ts
3727
+ var CONTROLLER4 = "/EmailConfig";
3728
+ var service_emailConfig = __spreadValues({}, createBaseApi(CONTROLLER4, baseAxios_default));
3729
+
3729
3730
  // src/modules-features/admin/core/mailConfig/F_mailConfig_Read.tsx
3730
- import { useQuery as useQuery17 } from "@tanstack/react-query";
3731
3731
  import { useMemo as useMemo16 } from "react";
3732
3732
 
3733
- // src/modules-features/admin/core/mailConfig/F_mailConfig_Delete.tsx
3734
- import { jsx as jsx70 } from "react/jsx-runtime";
3735
- function F_mailConfig_Delete({ values }) {
3736
- return /* @__PURE__ */ jsx70(
3737
- MyActionIconDelete,
3738
- {
3739
- contextData: values == null ? void 0 : values.code,
3740
- onSubmit: () => {
3741
- return baseAxios_default.post("/EmailConfig/Delete", {
3742
- id: values == null ? void 0 : values.id
3743
- });
3744
- }
3745
- }
3746
- );
3747
- }
3748
-
3749
- // src/modules-features/admin/core/mailConfig/F_mailConfig_Form.tsx
3733
+ // src/modules-features/admin/core/mailConfig/F_mailConfig_CreateUpdate.tsx
3750
3734
  import { PasswordInput as PasswordInput3 } from "@mantine/core";
3751
3735
  import { useForm as useForm23 } from "@mantine/form";
3752
- import { jsx as jsx71, jsxs as jsxs47 } from "react/jsx-runtime";
3753
- function F_mailConfig_Form({ values, emailModule }) {
3736
+ import { jsx as jsx70, jsxs as jsxs47 } from "react/jsx-runtime";
3737
+ function F_mailConfig_CreateUpdate({ values, emailModule }) {
3754
3738
  const form = useForm23({
3755
3739
  mode: "uncontrolled",
3756
3740
  initialValues: values ? values : {
@@ -3775,27 +3759,27 @@ function F_mailConfig_Form({ values, emailModule }) {
3775
3759
  "password": formValues.password
3776
3760
  });
3777
3761
  }
3778
- if (values) return /* @__PURE__ */ jsx71(
3762
+ if (values) return /* @__PURE__ */ jsx70(
3779
3763
  MyActionIconUpdate,
3780
3764
  {
3781
3765
  form,
3782
3766
  onSubmit: handleSubmit,
3783
- children: /* @__PURE__ */ jsx71(FormInput2, { form, emailModule })
3767
+ children: /* @__PURE__ */ jsx70(FormInput2, { form, emailModule })
3784
3768
  }
3785
3769
  );
3786
- return /* @__PURE__ */ jsx71(
3770
+ return /* @__PURE__ */ jsx70(
3787
3771
  MyButtonCreate,
3788
3772
  {
3789
3773
  form,
3790
3774
  onSubmit: handleSubmit,
3791
- children: /* @__PURE__ */ jsx71(FormInput2, { form, emailModule })
3775
+ children: /* @__PURE__ */ jsx70(FormInput2, { form, emailModule })
3792
3776
  }
3793
3777
  );
3794
3778
  }
3795
3779
  function FormInput2({ form, emailModule }) {
3796
3780
  var _a, _b;
3797
3781
  return /* @__PURE__ */ jsxs47(MyFlexColumn, { children: [
3798
- /* @__PURE__ */ jsx71(
3782
+ /* @__PURE__ */ jsx70(
3799
3783
  MySelect,
3800
3784
  __spreadProps(__spreadValues({
3801
3785
  label: "Ph\xE2n h\u1EC7",
@@ -3804,25 +3788,25 @@ function FormInput2({ form, emailModule }) {
3804
3788
  value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
3805
3789
  })
3806
3790
  ),
3807
- /* @__PURE__ */ jsx71(
3791
+ /* @__PURE__ */ jsx70(
3808
3792
  MyTextInput,
3809
3793
  __spreadValues({
3810
3794
  label: "Host mail server"
3811
3795
  }, form.getInputProps("hostMailServer"))
3812
3796
  ),
3813
- /* @__PURE__ */ jsx71(
3797
+ /* @__PURE__ */ jsx70(
3814
3798
  MyNumberInput,
3815
3799
  __spreadValues({
3816
3800
  label: "Outgoing port"
3817
3801
  }, form.getInputProps("outgoingPort"))
3818
3802
  ),
3819
- /* @__PURE__ */ jsx71(
3803
+ /* @__PURE__ */ jsx70(
3820
3804
  MyNumberInput,
3821
3805
  __spreadValues({
3822
3806
  label: "Incoming port"
3823
3807
  }, form.getInputProps("incomingPort"))
3824
3808
  ),
3825
- /* @__PURE__ */ jsx71(
3809
+ /* @__PURE__ */ jsx70(
3826
3810
  MySelect,
3827
3811
  {
3828
3812
  label: "SSL",
@@ -3831,13 +3815,13 @@ function FormInput2({ form, emailModule }) {
3831
3815
  onChange: (e) => form.setFieldValue("sll", e == "true" ? true : false)
3832
3816
  }
3833
3817
  ),
3834
- /* @__PURE__ */ jsx71(
3818
+ /* @__PURE__ */ jsx70(
3835
3819
  MyTextInput,
3836
3820
  __spreadValues({
3837
3821
  label: "Username"
3838
3822
  }, form.getInputProps("userName"))
3839
3823
  ),
3840
- /* @__PURE__ */ jsx71(
3824
+ /* @__PURE__ */ jsx70(
3841
3825
  PasswordInput3,
3842
3826
  __spreadValues({
3843
3827
  label: "Password",
@@ -3847,15 +3831,29 @@ function FormInput2({ form, emailModule }) {
3847
3831
  ] });
3848
3832
  }
3849
3833
 
3834
+ // src/modules-features/admin/core/mailConfig/F_mailConfig_Delete.tsx
3835
+ import { jsx as jsx71 } from "react/jsx-runtime";
3836
+ function F_mailConfig_Delete({ values }) {
3837
+ return /* @__PURE__ */ jsx71(
3838
+ MyActionIconDelete,
3839
+ {
3840
+ contextData: values == null ? void 0 : values.code,
3841
+ onSubmit: () => {
3842
+ return baseAxios_default.post("/EmailConfig/Delete", {
3843
+ id: values == null ? void 0 : values.id
3844
+ });
3845
+ }
3846
+ }
3847
+ );
3848
+ }
3849
+
3850
3850
  // src/modules-features/admin/core/mailConfig/F_mailConfig_Read.tsx
3851
3851
  import { jsx as jsx72, jsxs as jsxs48 } from "react/jsx-runtime";
3852
3852
  function F_mailConfig_Read({ emailModule }) {
3853
- const query = useQuery17({
3854
- queryKey: ["F_core64229_Read"],
3855
- queryFn: async () => {
3856
- const res = await baseAxios_default.get("/EmailConfig/GetAll");
3857
- return res.data.data;
3858
- }
3853
+ const mailConfigQuery = useMyReactQuery({
3854
+ queryKey: ["mailConfigs"],
3855
+ axiosFn: () => service_emailConfig.getAll(),
3856
+ mockData: mockData3
3859
3857
  });
3860
3858
  const columns = useMemo16(() => [
3861
3859
  {
@@ -3892,20 +3890,32 @@ function F_mailConfig_Read({ emailModule }) {
3892
3890
  accessorFn: () => "*******"
3893
3891
  }
3894
3892
  ], []);
3895
- if (query.isLoading) return "\u0110ang t\u1EA3i";
3893
+ if (mailConfigQuery.isLoading) return "\u0110ang t\u1EA3i";
3896
3894
  return /* @__PURE__ */ jsx72(
3897
3895
  MyDataTable,
3898
3896
  {
3897
+ isLoading: mailConfigQuery.isLoading,
3898
+ isError: mailConfigQuery.isError,
3899
3899
  columns,
3900
- data: query.data,
3901
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx72(F_mailConfig_Form, { emailModule }),
3900
+ data: mailConfigQuery.data || [],
3901
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx72(F_mailConfig_CreateUpdate, { emailModule }),
3902
3902
  renderRowActions: ({ row }) => /* @__PURE__ */ jsxs48(MyCenterFull, { children: [
3903
- /* @__PURE__ */ jsx72(F_mailConfig_Form, { values: row.original, emailModule }),
3903
+ /* @__PURE__ */ jsx72(F_mailConfig_CreateUpdate, { values: row.original, emailModule }),
3904
3904
  /* @__PURE__ */ jsx72(F_mailConfig_Delete, { values: row.original })
3905
3905
  ] })
3906
3906
  }
3907
3907
  );
3908
3908
  }
3909
+ var mockData3 = [
3910
+ {
3911
+ emailModule: 1,
3912
+ hostMailServer: "smtp.gmail.com",
3913
+ outgoingPort: 587,
3914
+ incomingPort: 465,
3915
+ sll: true,
3916
+ userName: "prototypeUser@aqtech.vn"
3917
+ }
3918
+ ];
3909
3919
 
3910
3920
  // src/modules-features/admin/core/mailConfig/F_mailConfig.tsx
3911
3921
  import { jsx as jsx73 } from "react/jsx-runtime";
@@ -4011,6 +4021,26 @@ function F_moduleConfig_Form() {
4011
4021
  form.setInitialValues(values);
4012
4022
  form.setValues(values);
4013
4023
  }, [query.data]);
4024
+ useEffect7(() => {
4025
+ if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "0") return;
4026
+ const values = {
4027
+ code: "moduleCode",
4028
+ name: "moduleName",
4029
+ officelName: "C\xF4ng ty ABC",
4030
+ email: "companyABC@gmail.com",
4031
+ phoneNumber: "03422122222",
4032
+ registrationDate: new Date((/* @__PURE__ */ new Date()).setFullYear((/* @__PURE__ */ new Date()).getFullYear() - 1)),
4033
+ limiteDate: new Date((/* @__PURE__ */ new Date()).setFullYear((/* @__PURE__ */ new Date()).getFullYear() + 1)),
4034
+ faviconPath: "",
4035
+ logoPath: "",
4036
+ faviconFile: new File([], "favicon.png"),
4037
+ logoFile: new File([], "logo.png"),
4038
+ faviconFileDetail: void 0,
4039
+ logoFileDetail: void 0
4040
+ };
4041
+ form.setInitialValues(values);
4042
+ form.setValues(values);
4043
+ }, []);
4014
4044
  return /* @__PURE__ */ jsxs49(Paper7, { p: "md", children: [
4015
4045
  /* @__PURE__ */ jsxs49(Grid4, { children: [
4016
4046
  /* @__PURE__ */ jsx75(Grid4.Col, { span: 5, children: /* @__PURE__ */ jsx75(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
@@ -4183,7 +4213,7 @@ function F_organizationPolicyDocs_Create({
4183
4213
 
4184
4214
  // src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
4185
4215
  import { Accordion as Accordion5, Alert as Alert5, Blockquote as Blockquote5, Skeleton as Skeleton5 } from "@mantine/core";
4186
- import { useQuery as useQuery18 } from "@tanstack/react-query";
4216
+ import { useQuery as useQuery17 } from "@tanstack/react-query";
4187
4217
  import { IconBug as IconBug5 } from "@tabler/icons-react";
4188
4218
  import { useMemo as useMemo17 } from "react";
4189
4219
 
@@ -4289,7 +4319,7 @@ function F_organizationPolicyDocs_Read({
4289
4319
  RegulationsTypeId
4290
4320
  }) {
4291
4321
  var _a, _b, _c;
4292
- const documentAttributeQuery = useQuery18({
4322
+ const documentAttributeQuery = useQuery17({
4293
4323
  queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
4294
4324
  queryFn: async () => {
4295
4325
  var _a2;
@@ -4331,7 +4361,7 @@ function SubRead5({
4331
4361
  documentType,
4332
4362
  RegulationsTypeId
4333
4363
  }) {
4334
- const documentQuery = useQuery18({
4364
+ const documentQuery = useQuery17({
4335
4365
  queryKey: ["SubRead" + documentType],
4336
4366
  queryFn: async () => {
4337
4367
  const result = await baseAxios_default.get(
@@ -4404,8 +4434,8 @@ function F_organizationPolicyDocs({ RegulationsTypeId }) {
4404
4434
  }
4405
4435
 
4406
4436
  // src/api/services/service_pageContent.ts
4407
- var CONTROLLER4 = "/eva/PageContent";
4408
- var service_pageContent = __spreadValues({}, createBaseApi(CONTROLLER4, baseAxios_default));
4437
+ var CONTROLLER5 = "/eva/PageContent";
4438
+ var service_pageContent = __spreadValues({}, createBaseApi(CONTROLLER5, baseAxios_default));
4409
4439
 
4410
4440
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
4411
4441
  import { Group as Group4 } from "@mantine/core";
@@ -4437,10 +4467,14 @@ function F_pageContentConfig_Save({ menuValues }) {
4437
4467
 
4438
4468
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
4439
4469
  import { jsx as jsx85, jsxs as jsxs54 } from "react/jsx-runtime";
4440
- function F_pageContentConfig_ReadMenu() {
4470
+ function F_pageContentConfig_ReadMenu({ menudataPrototype }) {
4441
4471
  const pageContentQuery = useMyReactQuery({
4442
- queryKey: ["pageContentQuery"],
4443
- axiosFn: () => service_pageContent.getAll()
4472
+ queryKey: ["pageContents"],
4473
+ axiosFn: () => service_pageContent.getAll(),
4474
+ mockData: groupToTwoLevels(menudataPrototype || []).flatMap((item) => item.links).map((item) => ({
4475
+ name: item == null ? void 0 : item.label,
4476
+ description: ""
4477
+ }))
4444
4478
  });
4445
4479
  const device = useMyDevice();
4446
4480
  const columns = useMemo18(() => [
@@ -4476,12 +4510,12 @@ function F_pageContentConfig_ReadMenu() {
4476
4510
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
4477
4511
  import { jsx as jsx86 } from "react/jsx-runtime";
4478
4512
  function F_pageContentConfig() {
4479
- return /* @__PURE__ */ jsx86(F_pageContentConfig_ReadMenu, {});
4513
+ return /* @__PURE__ */ jsx86(F_pageContentConfig_ReadMenu, { menudataPrototype: menuData });
4480
4514
  }
4481
4515
 
4482
4516
  // src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
4483
4517
  import { Group as Group5 } from "@mantine/core";
4484
- import { useQuery as useQuery19 } from "@tanstack/react-query";
4518
+ import { useQuery as useQuery18 } from "@tanstack/react-query";
4485
4519
  import { useMemo as useMemo19 } from "react";
4486
4520
 
4487
4521
  // src/modules-features/admin/core/roleCatalog/F_roleCatalog_Delete.tsx
@@ -4549,17 +4583,17 @@ function F_roleCatalog_Read() {
4549
4583
  );
4550
4584
  }
4551
4585
  function useQ_core47643_GetAdminRole2() {
4552
- const query = useQuery19({
4586
+ const query = useQuery18({
4553
4587
  queryKey: ["useQ_core47643_GetAdminRole"],
4554
4588
  queryFn: async () => {
4555
4589
  const res = await baseAxios_default.get("/Role/GetAdminRole");
4556
- if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData3;
4590
+ if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData4;
4557
4591
  return res.data.data;
4558
4592
  }
4559
4593
  });
4560
4594
  return query;
4561
4595
  }
4562
- var mockData3 = [
4596
+ var mockData4 = [
4563
4597
  {
4564
4598
  "aqModuleId": 3,
4565
4599
  "id": 6,
@@ -4601,7 +4635,7 @@ function F_roleCatalog() {
4601
4635
  }
4602
4636
 
4603
4637
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
4604
- import { useQuery as useQuery20 } from "@tanstack/react-query";
4638
+ import { useQuery as useQuery19 } from "@tanstack/react-query";
4605
4639
  import { useMemo as useMemo20 } from "react";
4606
4640
 
4607
4641
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
@@ -4748,7 +4782,7 @@ function F_securityPolicyDocs_Update({ values }) {
4748
4782
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
4749
4783
  import { jsx as jsx94, jsxs as jsxs59 } from "react/jsx-runtime";
4750
4784
  function F_securityPolicyDocs_Read({ SecurityTypeId }) {
4751
- const query = useQuery20({
4785
+ const query = useQuery19({
4752
4786
  queryKey: ["F_securityPolicyDocs_Read"],
4753
4787
  queryFn: async () => {
4754
4788
  var _a;
@@ -4813,7 +4847,7 @@ function F_securityPolicyDocs({ SecurityTypeId }) {
4813
4847
  }
4814
4848
 
4815
4849
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
4816
- import { useQuery as useQuery21 } from "@tanstack/react-query";
4850
+ import { useQuery as useQuery20 } from "@tanstack/react-query";
4817
4851
  import { useMemo as useMemo21 } from "react";
4818
4852
 
4819
4853
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
@@ -5001,7 +5035,7 @@ function F_systemUpdateDocs_Update({ values }) {
5001
5035
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
5002
5036
  import { jsx as jsx99, jsxs as jsxs62 } from "react/jsx-runtime";
5003
5037
  function F_systemUpdateDocs({ RefinementTypeId }) {
5004
- const query = useQuery21({
5038
+ const query = useQuery20({
5005
5039
  queryKey: ["F_systemUpdateDocs_Read"],
5006
5040
  queryFn: async () => {
5007
5041
  var _a;
@@ -5063,7 +5097,7 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
5063
5097
  }
5064
5098
 
5065
5099
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
5066
- import { useQuery as useQuery22 } from "@tanstack/react-query";
5100
+ import { useQuery as useQuery21 } from "@tanstack/react-query";
5067
5101
  import { useMemo as useMemo22 } from "react";
5068
5102
 
5069
5103
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
@@ -5194,7 +5228,7 @@ function F_userGuideDocs_Update({ values }) {
5194
5228
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
5195
5229
  import { jsx as jsx103, jsxs as jsxs65 } from "react/jsx-runtime";
5196
5230
  function F_userGuideDocs_Read({ GuidelineTypeId }) {
5197
- const query = useQuery22({
5231
+ const query = useQuery21({
5198
5232
  queryKey: ["F_userGuideDocs_Read"],
5199
5233
  queryFn: async () => {
5200
5234
  var _a;
@@ -5333,7 +5367,7 @@ function F_workflowProcessDocs_Create({
5333
5367
 
5334
5368
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
5335
5369
  import { Accordion as Accordion6, Alert as Alert6, Blockquote as Blockquote6, Skeleton as Skeleton6 } from "@mantine/core";
5336
- import { useQuery as useQuery23 } from "@tanstack/react-query";
5370
+ import { useQuery as useQuery22 } from "@tanstack/react-query";
5337
5371
  import { IconBug as IconBug6 } from "@tabler/icons-react";
5338
5372
  import { useMemo as useMemo23 } from "react";
5339
5373
 
@@ -5439,7 +5473,7 @@ function F_workflowProcessDocs_Read({
5439
5473
  WorkflowTypeId
5440
5474
  }) {
5441
5475
  var _a, _b, _c;
5442
- const documentAttributeQuery = useQuery23({
5476
+ const documentAttributeQuery = useQuery22({
5443
5477
  queryKey: ["F_workflowProcessDocs_Read", WorkflowTypeId],
5444
5478
  queryFn: async () => {
5445
5479
  var _a2;
@@ -5481,7 +5515,7 @@ function SubRead6({
5481
5515
  documentType,
5482
5516
  WorkflowTypeId
5483
5517
  }) {
5484
- const documentQuery = useQuery23({
5518
+ const documentQuery = useQuery22({
5485
5519
  queryKey: ["SubRead" + documentType],
5486
5520
  queryFn: async () => {
5487
5521
  const result = await baseAxios_default.get(
@@ -5810,8 +5844,8 @@ export {
5810
5844
  F_formTemplateDocs_Read,
5811
5845
  F_formTemplateDocs_Update,
5812
5846
  F_mailConfig,
5847
+ F_mailConfig_CreateUpdate,
5813
5848
  F_mailConfig_Delete,
5814
- F_mailConfig_Form,
5815
5849
  F_mailConfig_Read,
5816
5850
  F_moduleConfig,
5817
5851
  F_organizationPolicyDocs,
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.457",
45
+ "version": "0.1.459",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"