aq-fe-framework 0.1.1133 → 0.1.1135

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.
@@ -1,18 +1,5 @@
1
1
  import {
2
- utils_aq_mapBaseEntityToDomain,
3
- utils_aq_mapDomainToEntity,
4
- utils_converter_enumToSelectOptions,
5
- utils_converter_mapEnumToSelectData,
6
- utils_date_dateToDDMMYYYString,
7
- utils_excel_download,
8
- utils_excel_exportExcel,
9
- utils_excel_handleExport,
10
- utils_file_fileToAQDocumentType,
11
- utils_notification_show,
12
- utils_pdf_download
13
- } from "./chunk-KGBXMHKR.mjs";
14
- import {
15
- createGenericStore as createGenericStore2,
2
+ createGenericStore,
16
3
  useAppStore,
17
4
  useStore_Permission,
18
5
  useStore_ProjectInfo
@@ -26,12 +13,25 @@ import {
26
13
  utils_text
27
14
  } from "./chunk-7ZI7IOEP.mjs";
28
15
  import {
29
- createGenericStore
30
- } from "./chunk-BTITP4TN.mjs";
16
+ utils_aq_mapBaseEntityToDomain,
17
+ utils_aq_mapDomainToEntity,
18
+ utils_converter_enumToSelectOptions,
19
+ utils_converter_mapEnumToSelectData,
20
+ utils_date_dateToDDMMYYYString,
21
+ utils_excel_download,
22
+ utils_excel_exportExcel,
23
+ utils_excel_handleExport,
24
+ utils_file_fileToAQDocumentType,
25
+ utils_notification_show,
26
+ utils_pdf_download
27
+ } from "./chunk-KGBXMHKR.mjs";
31
28
  import {
32
29
  const_object_colors,
33
30
  const_object_documentTypes
34
31
  } from "./chunk-N5DFWFM6.mjs";
32
+ import {
33
+ createGenericStore as createGenericStore2
34
+ } from "./chunk-BTITP4TN.mjs";
35
35
  import {
36
36
  enumLabel_gender,
37
37
  enum_daysOfWeek
@@ -7572,7 +7572,7 @@ function AQStatCard2({
7572
7572
  import { useEffect as useEffect8 } from "react";
7573
7573
 
7574
7574
  // src/components/Layouts/BasicAppShell/useStore_BasicAppShell.ts
7575
- var useStore = createGenericStore({
7575
+ var useStore = createGenericStore2({
7576
7576
  initialState: {
7577
7577
  menuCode: "",
7578
7578
  moduleCode: "Module code",
@@ -10036,7 +10036,7 @@ import { IconSearch as IconSearch4 } from "@tabler/icons-react";
10036
10036
  import { useEffect as useEffect19, useMemo as useMemo8, useState as useState18 } from "react";
10037
10037
 
10038
10038
  // src/modules-features/admin/core/accountManagement/useStore_AccountManagement.ts
10039
- var useStore2 = createGenericStore2({
10039
+ var useStore2 = createGenericStore({
10040
10040
  initialState: {}
10041
10041
  });
10042
10042
  function useStore_AccountManagement() {
@@ -12443,7 +12443,7 @@ import { useEffect as useEffect27 } from "react";
12443
12443
  import { useMutation as useMutation3 } from "@tanstack/react-query";
12444
12444
 
12445
12445
  // src/modules-features/admin/core/moduleConfig/useS_moduleConfig.ts
12446
- var useStore3 = createGenericStore({
12446
+ var useStore3 = createGenericStore2({
12447
12447
  initialState: {}
12448
12448
  });
12449
12449
  function useS_moduleConfig() {
@@ -14645,7 +14645,7 @@ import { useRouter as useRouter4 } from "next/navigation.js";
14645
14645
  import { useEffect as useEffect35 } from "react";
14646
14646
 
14647
14647
  // src/modules-features/authenticate/useStore_Authenticate.ts
14648
- var useStore4 = createGenericStore({
14648
+ var useStore4 = createGenericStore2({
14649
14649
  initialState: { token: "", saveLogin: false, username: "", password: "", workingUnitId: 0, roleIds: [] },
14650
14650
  storageKey: "useStore_Authenticate"
14651
14651
  });
@@ -15475,7 +15475,7 @@ import Link4 from "next/link.js";
15475
15475
  import classes from "./css.module-4ICLUKPO.module.css";
15476
15476
 
15477
15477
  // src/components/Layouts/HeaderMegaMenu/HeaderMegaMenuStore.ts
15478
- var useStore5 = createGenericStore({
15478
+ var useStore5 = createGenericStore2({
15479
15479
  initialState: { name: "\u0110\u0103ng k\xFD kh\xF3a h\u1ECDc" },
15480
15480
  storageKey: "HeaderMegaMenuStore"
15481
15481
  });
@@ -16254,7 +16254,8 @@ function MyRichTextEditor(_a) {
16254
16254
  inputWrapperProps,
16255
16255
  scrollAreaAutosizeProps,
16256
16256
  extraControlsGroup,
16257
- useEditorProps
16257
+ useEditorProps,
16258
+ readOnly
16258
16259
  } = _b, rest = __objRest(_b, [
16259
16260
  "value",
16260
16261
  "onChange",
@@ -16265,9 +16266,11 @@ function MyRichTextEditor(_a) {
16265
16266
  "inputWrapperProps",
16266
16267
  "scrollAreaAutosizeProps",
16267
16268
  "extraControlsGroup",
16268
- "useEditorProps"
16269
+ "useEditorProps",
16270
+ "readOnly"
16269
16271
  ]);
16270
16272
  const editor = useEditor2(__spreadValues({
16273
+ editable: !readOnly,
16271
16274
  extensions: [
16272
16275
  StarterKit2,
16273
16276
  Underline2,
@@ -16865,6 +16868,10 @@ function CustomSelectAPI(_a) {
16865
16868
  }, [autoSelectFirst, query.data, value, onChange]);
16866
16869
  const handleChange = (selectedId) => {
16867
16870
  var _a3;
16871
+ if (!selectedId) {
16872
+ onChange == null ? void 0 : onChange(void 0, void 0);
16873
+ return;
16874
+ }
16868
16875
  const item = (_a3 = query.data) == null ? void 0 : _a3.find((x4) => x4.id === Number(selectedId));
16869
16876
  onChange == null ? void 0 : onChange(Number(selectedId), item);
16870
16877
  };
@@ -16874,7 +16881,7 @@ function CustomSelectAPI(_a) {
16874
16881
  isLoading: query.isLoading,
16875
16882
  isError: query.isError,
16876
16883
  data: options,
16877
- value: value == null ? void 0 : value.toString(),
16884
+ value: value ? value.toString() : void 0,
16878
16885
  onChange: handleChange
16879
16886
  }, rest)
16880
16887
  );
@@ -65,13 +65,13 @@ import {
65
65
  getReadablePageIdSet,
66
66
  useHeaderMegaMenuStore,
67
67
  useStore_BasicAppShell
68
- } from "../chunk-VPZY7ULU.mjs";
69
- import "../chunk-KGBXMHKR.mjs";
68
+ } from "../chunk-3DYRGPIC.mjs";
70
69
  import "../chunk-WW55EZ4B.mjs";
71
70
  import "../chunk-7ZI7IOEP.mjs";
71
+ import "../chunk-KGBXMHKR.mjs";
72
+ import "../chunk-N5DFWFM6.mjs";
72
73
  import "../chunk-NYAWQRB7.mjs";
73
74
  import "../chunk-BTITP4TN.mjs";
74
- import "../chunk-N5DFWFM6.mjs";
75
75
  import "../chunk-VFTEXXA7.mjs";
76
76
  import "../chunk-Z76CSZFI.mjs";
77
77
  import "../chunk-WZ6PXGGC.mjs";
@@ -199,6 +199,7 @@ interface MyRichTextEditorProps extends Omit<InputWrapperProps, "value" | "onCha
199
199
  richTextEditorProps?: Omit<RichTextEditorProps, "children" | "editor">;
200
200
  richTextEditorToolBarProps?: RichTextEditorToolbarProps;
201
201
  richTextEditorContentProps?: RichTextEditorContentProps;
202
+ readOnly?: boolean;
202
203
  /**
203
204
  * @deprecated
204
205
  * Vui lòng dùng `Xài trực tiếp props cấp 1 của MyRichTextEditor luôn giờ nó extend từ InputWrapperProps rồi` từ `core` thay thế.
@@ -208,7 +209,7 @@ interface MyRichTextEditorProps extends Omit<InputWrapperProps, "value" | "onCha
208
209
  extraControlsGroup?: ReactNode;
209
210
  useEditorProps?: UseEditorOptions;
210
211
  }
211
- declare function MyRichTextEditor({ value, onChange, onBlur, richTextEditorProps, richTextEditorToolBarProps, richTextEditorContentProps, inputWrapperProps, scrollAreaAutosizeProps, extraControlsGroup, useEditorProps, ...rest }: MyRichTextEditorProps): react_jsx_runtime.JSX.Element;
212
+ declare function MyRichTextEditor({ value, onChange, onBlur, richTextEditorProps, richTextEditorToolBarProps, richTextEditorContentProps, inputWrapperProps, scrollAreaAutosizeProps, extraControlsGroup, useEditorProps, readOnly, ...rest }: MyRichTextEditorProps): react_jsx_runtime.JSX.Element;
212
213
 
213
214
  interface MySelectFromAPIProps<IRes extends IBaseEntity, IBody = any> extends MySelectProps {
214
215
  queryKey?: QueryKey;
@@ -335,7 +336,7 @@ declare function CustomButtonDeleteListAPI<TData extends MRT_RowData>({ deleteLi
335
336
  interface CustomSelectAPIProps<IRes extends IBaseEntity> extends Omit<MySelectProps, "onChange" | "data" | "value"> {
336
337
  query: ReturnType<typeof useMyReactQuery<IRes[], any>>;
337
338
  value?: number;
338
- onChange?: (value: number, item?: IRes) => void;
339
+ onChange?: (value?: number, item?: IRes) => void;
339
340
  autoSelectFirst?: boolean;
340
341
  getLabel?: (item: IRes) => string;
341
342
  }
@@ -36,13 +36,13 @@ import {
36
36
  MyStatsCard,
37
37
  MyTextInput2 as MyTextInput,
38
38
  MyWeeklySessionSchedulerPicker
39
- } from "../chunk-VPZY7ULU.mjs";
40
- import "../chunk-KGBXMHKR.mjs";
39
+ } from "../chunk-3DYRGPIC.mjs";
41
40
  import "../chunk-WW55EZ4B.mjs";
42
41
  import "../chunk-7ZI7IOEP.mjs";
42
+ import "../chunk-KGBXMHKR.mjs";
43
+ import "../chunk-N5DFWFM6.mjs";
43
44
  import "../chunk-NYAWQRB7.mjs";
44
45
  import "../chunk-BTITP4TN.mjs";
45
- import "../chunk-N5DFWFM6.mjs";
46
46
  import "../chunk-VFTEXXA7.mjs";
47
47
  import "../chunk-Z76CSZFI.mjs";
48
48
  import "../chunk-WZ6PXGGC.mjs";
@@ -64,13 +64,13 @@ import {
64
64
  MailTemplateDeleteButton,
65
65
  useS_moduleConfig,
66
66
  useStore_Authenticate
67
- } from "../chunk-VPZY7ULU.mjs";
68
- import "../chunk-KGBXMHKR.mjs";
67
+ } from "../chunk-3DYRGPIC.mjs";
69
68
  import "../chunk-WW55EZ4B.mjs";
70
69
  import "../chunk-7ZI7IOEP.mjs";
70
+ import "../chunk-KGBXMHKR.mjs";
71
+ import "../chunk-N5DFWFM6.mjs";
71
72
  import "../chunk-NYAWQRB7.mjs";
72
73
  import "../chunk-BTITP4TN.mjs";
73
- import "../chunk-N5DFWFM6.mjs";
74
74
  import "../chunk-VFTEXXA7.mjs";
75
75
  import "../chunk-Z76CSZFI.mjs";
76
76
  import "../chunk-WZ6PXGGC.mjs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  MySelect,
3
3
  Shared_DocTypeSelect
4
- } from "../chunk-VPZY7ULU.mjs";
5
- import "../chunk-KGBXMHKR.mjs";
4
+ } from "../chunk-3DYRGPIC.mjs";
6
5
  import "../chunk-WW55EZ4B.mjs";
7
6
  import {
8
7
  utils_converter
9
8
  } from "../chunk-7ZI7IOEP.mjs";
9
+ import "../chunk-KGBXMHKR.mjs";
10
+ import "../chunk-N5DFWFM6.mjs";
10
11
  import "../chunk-NYAWQRB7.mjs";
11
12
  import "../chunk-BTITP4TN.mjs";
12
- import "../chunk-N5DFWFM6.mjs";
13
13
  import {
14
14
  enumLabel_gender,
15
15
  enum_gender
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "types": "./dist/zod-schemas/index.d.mts"
59
59
  }
60
60
  },
61
- "version": "0.1.1133",
61
+ "version": "0.1.1135",
62
62
  "private": false,
63
63
  "files": [
64
64
  "dist"