aq-fe-framework 0.1.1102 → 0.1.1104

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.
@@ -12,6 +12,7 @@ var const_array_daysOfWeek = [
12
12
  // src/const/object/const_aqModuleId.ts
13
13
  var const_aqModuleId = {
14
14
  SAE: 1,
15
+ EVA: 6,
15
16
  SRM: 8,
16
17
  EAQ: 10
17
18
  };
@@ -95,10 +96,10 @@ var const_object_generalMenuData = {
95
96
  };
96
97
 
97
98
  export {
99
+ const_object_colors,
98
100
  const_array_daysOfWeek,
99
101
  const_aqModuleId,
100
102
  const_columnSize,
101
- const_object_colors,
102
103
  const_object_documentTypes,
103
104
  const_object_generalMenuData
104
105
  };
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  const_object_colors,
34
34
  const_object_documentTypes
35
- } from "./chunk-ZEVBN6ZP.mjs";
35
+ } from "./chunk-N5DFWFM6.mjs";
36
36
  import {
37
37
  enumLabel_gender,
38
38
  enum_daysOfWeek
@@ -14353,8 +14353,10 @@ import { Accordion as Accordion5, Alert as Alert6, Blockquote as Blockquote5, Sk
14353
14353
  import { useDisclosure as useDisclosure16 } from "@mantine/hooks";
14354
14354
  import { useQuery as useQuery10 } from "@tanstack/react-query";
14355
14355
  import { jsx as jsx160 } from "react/jsx-runtime";
14356
- function MyButtonViewFileAPI({ filePath }) {
14357
- const disc = useDisclosure16();
14356
+ function MyButtonViewFileAPI(_a) {
14357
+ var _b = _a, { filePath, externalDisc } = _b, rest = __objRest(_b, ["filePath", "externalDisc"]);
14358
+ var _a2;
14359
+ const disc = externalDisc ? externalDisc : useDisclosure16();
14358
14360
  const query = useQuery10({
14359
14361
  queryKey: ["viewFile", filePath],
14360
14362
  queryFn: async () => {
@@ -14365,13 +14367,18 @@ function MyButtonViewFileAPI({ filePath }) {
14365
14367
  });
14366
14368
  return /* @__PURE__ */ jsx160(
14367
14369
  MyButtonViewFile,
14368
- {
14370
+ __spreadProps(__spreadValues({
14369
14371
  file: query.data,
14370
14372
  loading: query.isLoading,
14371
- disclosure: disc,
14372
- toolTipProps: { label: filePath ? void 0 : "Kh\xF4ng c\xF3 \u0111\u01B0\u1EDDng d\u1EABn file" },
14373
- buttonProps: { disabled: filePath == void 0 }
14374
- }
14373
+ disclosure: disc
14374
+ }, rest), {
14375
+ buttonProps: __spreadValues({ disabled: filePath == void 0 }, rest.buttonProps),
14376
+ actionIconProps: {
14377
+ toolTipProps: __spreadValues({
14378
+ label: filePath ? void 0 : "Kh\xF4ng c\xF3 \u0111\u01B0\u1EDDng d\u1EABn file"
14379
+ }, (_a2 = rest.actionIconProps) == null ? void 0 : _a2.toolTipProps)
14380
+ }
14381
+ })
14375
14382
  );
14376
14383
  }
14377
14384
 
@@ -65,13 +65,13 @@ import {
65
65
  getReadablePageIdSet,
66
66
  useHeaderMegaMenuStore,
67
67
  useStore_BasicAppShell
68
- } from "../chunk-NQ6AV2ZB.mjs";
68
+ } from "../chunk-UIXUFYNB.mjs";
69
69
  import "../chunk-WW55EZ4B.mjs";
70
70
  import "../chunk-KGBXMHKR.mjs";
71
71
  import "../chunk-7ZI7IOEP.mjs";
72
72
  import "../chunk-NYAWQRB7.mjs";
73
73
  import "../chunk-BTITP4TN.mjs";
74
- import "../chunk-ZEVBN6ZP.mjs";
74
+ import "../chunk-N5DFWFM6.mjs";
75
75
  import "../chunk-VFTEXXA7.mjs";
76
76
  import "../chunk-Z76CSZFI.mjs";
77
77
  import "../chunk-WZ6PXGGC.mjs";
@@ -1,4 +1,4 @@
1
- export { A as AqModuleId, c as const_aqModuleId } from '../const_aqModuleId-Ch0-3u_X.mjs';
1
+ export { A as AqModuleId, c as const_aqModuleId } from '../const_aqModuleId-DcJjCR3N.mjs';
2
2
  import { I as I_BasicAppShell_LinkItem } from '../types-mIsH5BBF.mjs';
3
3
  import 'react';
4
4
 
@@ -5,7 +5,7 @@ import {
5
5
  const_object_colors,
6
6
  const_object_documentTypes,
7
7
  const_object_generalMenuData
8
- } from "../chunk-ZEVBN6ZP.mjs";
8
+ } from "../chunk-N5DFWFM6.mjs";
9
9
  import "../chunk-JD6AELXS.mjs";
10
10
  export {
11
11
  const_aqModuleId,
@@ -1,5 +1,6 @@
1
1
  declare const const_aqModuleId: {
2
2
  readonly SAE: 1;
3
+ readonly EVA: 6;
3
4
  readonly SRM: 8;
4
5
  readonly EAQ: 10;
5
6
  };
@@ -6,7 +6,7 @@ import { M as MyButtonModalProps, a as MyActionIconProps, b as MyButtonProps, c
6
6
  export { d as MyActionIcon, e as MyButton, f as MyButtonModal } from '../MyButtonDeleteList-BcW55zHU.mjs';
7
7
  import { UseReactToPrintOptions } from 'react-to-print';
8
8
  import { I as IAQFileDetail } from '../utils_file-JlhzjLGS.mjs';
9
- import { useDisclosure } from '@mantine/hooks';
9
+ import { useDisclosure, UseDisclosureReturnValue } from '@mantine/hooks';
10
10
  import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMutation-C4T2Bi5O.mjs';
11
11
  import { AxiosResponse } from 'axios';
12
12
  import { UseQueryResult, QueryKey, UseQueryOptions } from '@tanstack/react-query';
@@ -54,12 +54,12 @@ interface MyButtonPrintPDFProps {
54
54
  }
55
55
  declare function MyButtonPrintPDF({ children, autoPadding, buttonProps, useReactToPrintProps, pageSize, }: MyButtonPrintPDFProps): react_jsx_runtime.JSX.Element;
56
56
 
57
- interface MyButtonViewFile extends Omit<MyButtonModalProps, "disclosure"> {
57
+ interface MyButtonViewFileProps extends Omit<MyButtonModalProps, "disclosure"> {
58
58
  file?: IAQFileDetail;
59
59
  disclosure?: ReturnType<typeof useDisclosure>;
60
60
  loading?: boolean;
61
61
  }
62
- declare function MyButtonViewFile({ file, disclosure, loading, ...rest }: MyButtonViewFile): react_jsx_runtime.JSX.Element;
62
+ declare function MyButtonViewFile({ file, disclosure, loading, ...rest }: MyButtonViewFileProps): react_jsx_runtime.JSX.Element;
63
63
 
64
64
  interface MyButtonCreateUpdateProps<IReq, IRes> {
65
65
  /** Props của modal hiển thị */
@@ -324,8 +324,10 @@ interface CustomDeleteListAPIProps<TData extends MRT_RowData> extends Omit<MyBut
324
324
  }
325
325
  declare function CustomButtonDeleteListAPI<TData extends MRT_RowData>({ deleteListFn, table, ...rest }: CustomDeleteListAPIProps<TData>): react_jsx_runtime.JSX.Element;
326
326
 
327
- declare function MyButtonViewFileAPI({ filePath }: {
327
+ interface MyButtonViewFileAPIProps extends MyButtonViewFileProps {
328
328
  filePath?: string;
329
- }): react_jsx_runtime.JSX.Element;
329
+ externalDisc?: UseDisclosureReturnValue;
330
+ }
331
+ declare function MyButtonViewFileAPI({ filePath, externalDisc, ...rest }: MyButtonViewFileAPIProps): react_jsx_runtime.JSX.Element;
330
332
 
331
- export { CustomAutocomplete, CustomButtonDeleteListAPI, CustomDataTableAPI, CustomEnumBadge, CustomNumberInput, type CustomNumberInputProps, CustomPhoneNumberInput, CustomSwitchTheme, CustomTabs, CustomThemeIconSquareCheck, DroppablePlaceholder, type FieldDefinition, type IWeeklySession, type ModalImportId, MyActionIconProps, MyButtonCreateUpdate, type MyButtonCreateUpdateProps, type MyButtonExportStructureProps, MyButtonModalForm, type MyButtonModalFormProps, MyButtonModalProps, MyButtonPrintPDF, type MyButtonPrintPDFProps, MyButtonProps, MyButtonViewFile, MyButtonViewFileAPI, MyDataTableSelectOne, MyDataTableStagedChanges, type MyDataTableStagedChangesProps, MyDayOfWeekPicker, MyFileInputPreview, MyFlexColumn, MyFlexEnd, MyFlexIconTitle, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyModalImport, MyPrintContent, type MyPrintContentProps, MyRichTextEditor, MySelectFromAPI, type MySelectFromAPIProps, MySelectProps, MyStatsCard, MyTextInput, type MyTextInputProps, MyWeeklySessionSchedulerPicker, type RowDetail, type StagedChange, type ValidationResult, type WeeklySessionSchedulerProps };
333
+ export { CustomAutocomplete, CustomButtonDeleteListAPI, CustomDataTableAPI, CustomEnumBadge, CustomNumberInput, type CustomNumberInputProps, CustomPhoneNumberInput, CustomSwitchTheme, CustomTabs, CustomThemeIconSquareCheck, DroppablePlaceholder, type FieldDefinition, type IWeeklySession, type ModalImportId, MyActionIconProps, MyButtonCreateUpdate, type MyButtonCreateUpdateProps, type MyButtonExportStructureProps, MyButtonModalForm, type MyButtonModalFormProps, MyButtonModalProps, MyButtonPrintPDF, type MyButtonPrintPDFProps, MyButtonProps, MyButtonViewFile, MyButtonViewFileAPI, type MyButtonViewFileProps, MyDataTableSelectOne, MyDataTableStagedChanges, type MyDataTableStagedChangesProps, MyDayOfWeekPicker, MyFileInputPreview, MyFlexColumn, MyFlexEnd, MyFlexIconTitle, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyModalImport, MyPrintContent, type MyPrintContentProps, MyRichTextEditor, MySelectFromAPI, type MySelectFromAPIProps, MySelectProps, MyStatsCard, MyTextInput, type MyTextInputProps, MyWeeklySessionSchedulerPicker, type RowDetail, type StagedChange, type ValidationResult, type WeeklySessionSchedulerProps };
@@ -34,13 +34,13 @@ import {
34
34
  MyStatsCard,
35
35
  MyTextInput2 as MyTextInput,
36
36
  MyWeeklySessionSchedulerPicker
37
- } from "../chunk-NQ6AV2ZB.mjs";
37
+ } from "../chunk-UIXUFYNB.mjs";
38
38
  import "../chunk-WW55EZ4B.mjs";
39
39
  import "../chunk-KGBXMHKR.mjs";
40
40
  import "../chunk-7ZI7IOEP.mjs";
41
41
  import "../chunk-NYAWQRB7.mjs";
42
42
  import "../chunk-BTITP4TN.mjs";
43
- import "../chunk-ZEVBN6ZP.mjs";
43
+ import "../chunk-N5DFWFM6.mjs";
44
44
  import "../chunk-VFTEXXA7.mjs";
45
45
  import "../chunk-Z76CSZFI.mjs";
46
46
  import "../chunk-WZ6PXGGC.mjs";
@@ -97,13 +97,13 @@ import {
97
97
  MailTemplateDeleteButton,
98
98
  useS_moduleConfig,
99
99
  useStore_Authenticate
100
- } from "../chunk-NQ6AV2ZB.mjs";
100
+ } from "../chunk-UIXUFYNB.mjs";
101
101
  import "../chunk-WW55EZ4B.mjs";
102
102
  import "../chunk-KGBXMHKR.mjs";
103
103
  import "../chunk-7ZI7IOEP.mjs";
104
104
  import "../chunk-NYAWQRB7.mjs";
105
105
  import "../chunk-BTITP4TN.mjs";
106
- import "../chunk-ZEVBN6ZP.mjs";
106
+ import "../chunk-N5DFWFM6.mjs";
107
107
  import "../chunk-VFTEXXA7.mjs";
108
108
  import "../chunk-Z76CSZFI.mjs";
109
109
  import "../chunk-WZ6PXGGC.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MySelect
3
- } from "../chunk-NQ6AV2ZB.mjs";
3
+ } from "../chunk-UIXUFYNB.mjs";
4
4
  import "../chunk-WW55EZ4B.mjs";
5
5
  import "../chunk-KGBXMHKR.mjs";
6
6
  import {
@@ -8,7 +8,7 @@ import {
8
8
  } from "../chunk-7ZI7IOEP.mjs";
9
9
  import "../chunk-NYAWQRB7.mjs";
10
10
  import "../chunk-BTITP4TN.mjs";
11
- import "../chunk-ZEVBN6ZP.mjs";
11
+ import "../chunk-N5DFWFM6.mjs";
12
12
  import {
13
13
  enumLabel_gender,
14
14
  enum_gender
@@ -1,6 +1,6 @@
1
1
  import * as zustand from 'zustand';
2
2
  import { I as IPagePermission } from '../IPagePermission-992CbJhp.mjs';
3
- import { A as AqModuleId } from '../const_aqModuleId-Ch0-3u_X.mjs';
3
+ import { A as AqModuleId } from '../const_aqModuleId-DcJjCR3N.mjs';
4
4
 
5
5
  interface AppState {
6
6
  currentPageId?: number | null;
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.1102",
61
+ "version": "0.1.1104",
62
62
  "private": false,
63
63
  "files": [
64
64
  "dist"