aq-fe-framework 0.1.456 → 0.1.458

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,7 +2,7 @@ import {
2
2
  MyDataTable,
3
3
  MyFlexColumn,
4
4
  MyFlexRow
5
- } from "./chunk-562G3GRP.mjs";
5
+ } from "./chunk-5A5AGS35.mjs";
6
6
  import {
7
7
  const_object_colors
8
8
  } from "./chunk-OMJJAHOC.mjs";
@@ -343,7 +343,7 @@ function MyButtonModal({
343
343
  isActionIcon = false
344
344
  }) {
345
345
  return /* @__PURE__ */ jsxs2(Fragment2, { children: [
346
- isActionIcon ? /* @__PURE__ */ jsx6(MyActionIcon, __spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "indigo" }, actionIconProps)) : /* @__PURE__ */ jsx6(MyButton, __spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open, color: "indigo" }, buttonProps)),
346
+ isActionIcon ? /* @__PURE__ */ jsx6(MyActionIcon, __spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open }, actionIconProps)) : /* @__PURE__ */ jsx6(MyButton, __spreadValues({ onClick: disclosure == null ? void 0 : disclosure[1].open }, buttonProps)),
347
347
  /* @__PURE__ */ jsx6(
348
348
  Modal2,
349
349
  __spreadProps(__spreadValues({
@@ -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,8 +16,8 @@ import {
16
16
  MyStatsCard,
17
17
  MyTextInput,
18
18
  MyWeeklySessionSchedulerPicker
19
- } from "../chunk-GALHJARG.mjs";
20
- import "../chunk-562G3GRP.mjs";
19
+ } from "../chunk-GTZU2RDA.mjs";
20
+ import "../chunk-5A5AGS35.mjs";
21
21
  import "../chunk-U62R2QKJ.mjs";
22
22
  import "../chunk-5U2JSHSJ.mjs";
23
23
  import "../chunk-GFEMKKFH.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 };
@@ -5,11 +5,17 @@ import {
5
5
  utils_converter_enumToSelectOptions,
6
6
  utils_file_fileToAQDocumentType
7
7
  } from "../chunk-J7PZ4DWS.mjs";
8
+ import {
9
+ baseColumns
10
+ } from "../chunk-BEFEWY44.mjs";
11
+ import {
12
+ U0DateToDDMMYYYString
13
+ } from "../chunk-EWDS5IOF.mjs";
8
14
  import {
9
15
  MyButton as MyButton2,
10
16
  MyDataTableSelectOne,
11
17
  MyTextInput as MyTextInput2
12
- } from "../chunk-GALHJARG.mjs";
18
+ } from "../chunk-GTZU2RDA.mjs";
13
19
  import {
14
20
  F_authenticate_Logout,
15
21
  MyActionIconDelete,
@@ -35,7 +41,7 @@ import {
35
41
  groupToTwoLevels,
36
42
  useS_authenticate,
37
43
  utils_layout_getItemsWithoutLinks
38
- } from "../chunk-562G3GRP.mjs";
44
+ } from "../chunk-5A5AGS35.mjs";
39
45
  import {
40
46
  createGenericStore
41
47
  } from "../chunk-U62R2QKJ.mjs";
@@ -50,12 +56,6 @@ import {
50
56
  enum_emailConfigModule
51
57
  } from "../chunk-VH4ZAD6M.mjs";
52
58
  import "../chunk-K6S7R6LU.mjs";
53
- import {
54
- baseColumns
55
- } from "../chunk-BEFEWY44.mjs";
56
- import {
57
- U0DateToDDMMYYYString
58
- } from "../chunk-EWDS5IOF.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";
@@ -4439,8 +4469,9 @@ function F_pageContentConfig_Save({ menuValues }) {
4439
4469
  import { jsx as jsx85, jsxs as jsxs54 } from "react/jsx-runtime";
4440
4470
  function F_pageContentConfig_ReadMenu() {
4441
4471
  const pageContentQuery = useMyReactQuery({
4442
- queryKey: ["pageContentQuery"],
4443
- axiosFn: () => service_pageContent.getAll()
4472
+ queryKey: ["pageContents"],
4473
+ axiosFn: () => service_pageContent.getAll(),
4474
+ mockData: mockData4
4444
4475
  });
4445
4476
  const device = useMyDevice();
4446
4477
  const columns = useMemo18(() => [
@@ -4472,6 +4503,10 @@ function F_pageContentConfig_ReadMenu() {
4472
4503
  }
4473
4504
  );
4474
4505
  }
4506
+ var mockData4 = groupToTwoLevels(menuData).flatMap((item) => item.links).map((item) => ({
4507
+ name: item == null ? void 0 : item.label,
4508
+ description: ""
4509
+ }));
4475
4510
 
4476
4511
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
4477
4512
  import { jsx as jsx86 } from "react/jsx-runtime";
@@ -4481,7 +4516,7 @@ function F_pageContentConfig() {
4481
4516
 
4482
4517
  // src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
4483
4518
  import { Group as Group5 } from "@mantine/core";
4484
- import { useQuery as useQuery19 } from "@tanstack/react-query";
4519
+ import { useQuery as useQuery18 } from "@tanstack/react-query";
4485
4520
  import { useMemo as useMemo19 } from "react";
4486
4521
 
4487
4522
  // src/modules-features/admin/core/roleCatalog/F_roleCatalog_Delete.tsx
@@ -4549,17 +4584,17 @@ function F_roleCatalog_Read() {
4549
4584
  );
4550
4585
  }
4551
4586
  function useQ_core47643_GetAdminRole2() {
4552
- const query = useQuery19({
4587
+ const query = useQuery18({
4553
4588
  queryKey: ["useQ_core47643_GetAdminRole"],
4554
4589
  queryFn: async () => {
4555
4590
  const res = await baseAxios_default.get("/Role/GetAdminRole");
4556
- if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData3;
4591
+ if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData5;
4557
4592
  return res.data.data;
4558
4593
  }
4559
4594
  });
4560
4595
  return query;
4561
4596
  }
4562
- var mockData3 = [
4597
+ var mockData5 = [
4563
4598
  {
4564
4599
  "aqModuleId": 3,
4565
4600
  "id": 6,
@@ -4601,7 +4636,7 @@ function F_roleCatalog() {
4601
4636
  }
4602
4637
 
4603
4638
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
4604
- import { useQuery as useQuery20 } from "@tanstack/react-query";
4639
+ import { useQuery as useQuery19 } from "@tanstack/react-query";
4605
4640
  import { useMemo as useMemo20 } from "react";
4606
4641
 
4607
4642
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
@@ -4748,7 +4783,7 @@ function F_securityPolicyDocs_Update({ values }) {
4748
4783
  // src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
4749
4784
  import { jsx as jsx94, jsxs as jsxs59 } from "react/jsx-runtime";
4750
4785
  function F_securityPolicyDocs_Read({ SecurityTypeId }) {
4751
- const query = useQuery20({
4786
+ const query = useQuery19({
4752
4787
  queryKey: ["F_securityPolicyDocs_Read"],
4753
4788
  queryFn: async () => {
4754
4789
  var _a;
@@ -4813,7 +4848,7 @@ function F_securityPolicyDocs({ SecurityTypeId }) {
4813
4848
  }
4814
4849
 
4815
4850
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
4816
- import { useQuery as useQuery21 } from "@tanstack/react-query";
4851
+ import { useQuery as useQuery20 } from "@tanstack/react-query";
4817
4852
  import { useMemo as useMemo21 } from "react";
4818
4853
 
4819
4854
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
@@ -5001,7 +5036,7 @@ function F_systemUpdateDocs_Update({ values }) {
5001
5036
  // src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
5002
5037
  import { jsx as jsx99, jsxs as jsxs62 } from "react/jsx-runtime";
5003
5038
  function F_systemUpdateDocs({ RefinementTypeId }) {
5004
- const query = useQuery21({
5039
+ const query = useQuery20({
5005
5040
  queryKey: ["F_systemUpdateDocs_Read"],
5006
5041
  queryFn: async () => {
5007
5042
  var _a;
@@ -5063,7 +5098,7 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
5063
5098
  }
5064
5099
 
5065
5100
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
5066
- import { useQuery as useQuery22 } from "@tanstack/react-query";
5101
+ import { useQuery as useQuery21 } from "@tanstack/react-query";
5067
5102
  import { useMemo as useMemo22 } from "react";
5068
5103
 
5069
5104
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
@@ -5194,7 +5229,7 @@ function F_userGuideDocs_Update({ values }) {
5194
5229
  // src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
5195
5230
  import { jsx as jsx103, jsxs as jsxs65 } from "react/jsx-runtime";
5196
5231
  function F_userGuideDocs_Read({ GuidelineTypeId }) {
5197
- const query = useQuery22({
5232
+ const query = useQuery21({
5198
5233
  queryKey: ["F_userGuideDocs_Read"],
5199
5234
  queryFn: async () => {
5200
5235
  var _a;
@@ -5333,7 +5368,7 @@ function F_workflowProcessDocs_Create({
5333
5368
 
5334
5369
  // src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
5335
5370
  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";
5371
+ import { useQuery as useQuery22 } from "@tanstack/react-query";
5337
5372
  import { IconBug as IconBug6 } from "@tabler/icons-react";
5338
5373
  import { useMemo as useMemo23 } from "react";
5339
5374
 
@@ -5439,7 +5474,7 @@ function F_workflowProcessDocs_Read({
5439
5474
  WorkflowTypeId
5440
5475
  }) {
5441
5476
  var _a, _b, _c;
5442
- const documentAttributeQuery = useQuery23({
5477
+ const documentAttributeQuery = useQuery22({
5443
5478
  queryKey: ["F_workflowProcessDocs_Read", WorkflowTypeId],
5444
5479
  queryFn: async () => {
5445
5480
  var _a2;
@@ -5481,7 +5516,7 @@ function SubRead6({
5481
5516
  documentType,
5482
5517
  WorkflowTypeId
5483
5518
  }) {
5484
- const documentQuery = useQuery23({
5519
+ const documentQuery = useQuery22({
5485
5520
  queryKey: ["SubRead" + documentType],
5486
5521
  queryFn: async () => {
5487
5522
  const result = await baseAxios_default.get(
@@ -5810,8 +5845,8 @@ export {
5810
5845
  F_formTemplateDocs_Read,
5811
5846
  F_formTemplateDocs_Update,
5812
5847
  F_mailConfig,
5848
+ F_mailConfig_CreateUpdate,
5813
5849
  F_mailConfig_Delete,
5814
- F_mailConfig_Form,
5815
5850
  F_mailConfig_Read,
5816
5851
  F_moduleConfig,
5817
5852
  F_organizationPolicyDocs,
@@ -22,15 +22,15 @@ import {
22
22
  utils_time_getHourMinuteFromString,
23
23
  utils_validator_validateCode
24
24
  } from "../chunk-J7PZ4DWS.mjs";
25
- import {
26
- utils_pdf_download
27
- } from "../chunk-5U2JSHSJ.mjs";
28
25
  import {
29
26
  U0DateToDDMMYYYString,
30
27
  utils_date_dateToDDMMYYYString,
31
28
  utils_date_formatToDateTimeStartEnd,
32
29
  utils_date_getHHmm
33
30
  } from "../chunk-EWDS5IOF.mjs";
31
+ import {
32
+ utils_pdf_download
33
+ } from "../chunk-5U2JSHSJ.mjs";
34
34
  import {
35
35
  utils_notification_show
36
36
  } from "../chunk-7ZCOFATU.mjs";
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.456",
45
+ "version": "0.1.458",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"