aq-fe-framework 0.1.464 → 0.1.466
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/{BasicAppShell-CGKvZ5wV.d.mts → BasicAppShell-D3LIC6va.d.mts} +2 -1
- package/dist/{chunk-5A5AGS35.mjs → chunk-AX7LPZJ3.mjs} +5 -5
- package/dist/{chunk-GTZU2RDA.mjs → chunk-PFMLUJQV.mjs} +1 -1
- package/dist/components/index.d.mts +4 -3
- package/dist/components/index.mjs +1 -1
- package/dist/core/index.mjs +3 -3
- package/dist/modules-features/index.d.mts +1 -1
- package/dist/modules-features/index.mjs +14 -14
- package/package.json +1 -1
@@ -16,8 +16,9 @@ interface BasicAppShellProps {
|
|
16
16
|
menu: I_BasicAppShell_LinkItem[];
|
17
17
|
extraTopRight?: ReactNode;
|
18
18
|
title?: string;
|
19
|
+
logoutRedirect?: string;
|
19
20
|
}
|
20
|
-
declare function BasicAppShell({ children, menu, extraTopRight, title }: BasicAppShellProps): react_jsx_runtime.JSX.Element;
|
21
|
+
declare function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect }: BasicAppShellProps): react_jsx_runtime.JSX.Element;
|
21
22
|
declare const groupToTwoLevels: (menu: I_BasicAppShell_LinkItem[]) => I_BasicAppShell_LinkItem[];
|
22
23
|
declare function utils_layout_getItemsWithoutLinks(menu: I_BasicAppShell_LinkItem[]): I_BasicAppShell_LinkItem[];
|
23
24
|
|
@@ -1836,13 +1836,13 @@ function AQSelectTableByOpenModal(_a) {
|
|
1836
1836
|
}
|
1837
1837
|
|
1838
1838
|
// src/components/Button/ButtonPrintPDF/MyButtonPrintPDF.tsx
|
1839
|
-
import { useRef as useRef2 } from "react";
|
1840
1839
|
import { Button as Button10 } from "@mantine/core";
|
1841
1840
|
import { IconPrinter as IconPrinter2 } from "@tabler/icons-react";
|
1841
|
+
import { useRef as useRef2 } from "react";
|
1842
1842
|
import { useReactToPrint } from "react-to-print";
|
1843
1843
|
import { Fragment as Fragment10, jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
1844
1844
|
function MyButtonPrintPDF(_a) {
|
1845
|
-
var _b = _a, { contentToPrint, children } = _b, rest = __objRest(_b, ["contentToPrint", "children"]);
|
1845
|
+
var _b = _a, { contentToPrint, children, autoPadding = true } = _b, rest = __objRest(_b, ["contentToPrint", "children", "autoPadding"]);
|
1846
1846
|
const printRef = useRef2(null);
|
1847
1847
|
const handlePrint = useReactToPrint({
|
1848
1848
|
// Sử dụng documentTitle thay vì content
|
@@ -1855,7 +1855,7 @@ function MyButtonPrintPDF(_a) {
|
|
1855
1855
|
handlePrint();
|
1856
1856
|
}
|
1857
1857
|
return /* @__PURE__ */ jsxs18(Fragment10, { children: [
|
1858
|
-
/* @__PURE__ */ jsx30("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx30("div", { ref: printRef, children: contentToPrint }) }),
|
1858
|
+
/* @__PURE__ */ jsx30("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx30("div", { ref: printRef, style: { padding: autoPadding ? "3cm 2cm 2cm 2cm" : void 0 }, children: contentToPrint }) }),
|
1859
1859
|
/* @__PURE__ */ jsx30(Button10, __spreadProps(__spreadValues({ color: "orange", onClick: handleClick, leftSection: /* @__PURE__ */ jsx30(IconPrinter2, {}) }, rest), { children }))
|
1860
1860
|
] });
|
1861
1861
|
}
|
@@ -7339,7 +7339,7 @@ function BasicAppShell_transformMenuToEnum(prefixProjectName, menu) {
|
|
7339
7339
|
return acc;
|
7340
7340
|
}, {});
|
7341
7341
|
}
|
7342
|
-
function BasicAppShell({ children, menu, extraTopRight, title }) {
|
7342
|
+
function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect }) {
|
7343
7343
|
var _a, _b;
|
7344
7344
|
const pathName = usePathname2();
|
7345
7345
|
const basicAppShellStore = useS_BasicAppShell();
|
@@ -7482,7 +7482,7 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
|
|
7482
7482
|
/* @__PURE__ */ jsx51(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: /* @__PURE__ */ jsx51(RenderNavLinks, { items: menu }) }),
|
7483
7483
|
/* @__PURE__ */ jsxs28(AppShell.Section, { px: "md", children: [
|
7484
7484
|
/* @__PURE__ */ jsx51(Divider2, {}),
|
7485
|
-
/* @__PURE__ */ jsx51(F_authenticate_Logout, {}),
|
7485
|
+
/* @__PURE__ */ jsx51(F_authenticate_Logout, { redirectURL: logoutRedirect }),
|
7486
7486
|
process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1" ? /* @__PURE__ */ jsx51(
|
7487
7487
|
Image3,
|
7488
7488
|
{
|
@@ -6,8 +6,8 @@ import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
|
|
6
6
|
import { AxiosResponse } from 'axios';
|
7
7
|
import { useDisclosure, useListState } from '@mantine/hooks';
|
8
8
|
import { UseFormReturnType, useForm } from '@mantine/form';
|
9
|
-
import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-
|
10
|
-
export { a as BasicAppShell, B as BasicAppShell_transformMenuToEnum, g as groupToTwoLevels, u as utils_layout_getItemsWithoutLinks } from '../BasicAppShell-
|
9
|
+
import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-D3LIC6va.mjs';
|
10
|
+
export { a as BasicAppShell, B as BasicAppShell_transformMenuToEnum, g as groupToTwoLevels, u as utils_layout_getItemsWithoutLinks } from '../BasicAppShell-D3LIC6va.mjs';
|
11
11
|
import { I as IUtils_Excel_ColumnConfig, a as IAQFileDetail } from '../utils_file-G8NTHCO-.mjs';
|
12
12
|
import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
|
13
13
|
import { ConfigOptions } from 'export-to-csv';
|
@@ -219,8 +219,9 @@ declare function AQSelectTableByOpenModal<TData extends MRT_RowData>({ setSelect
|
|
219
219
|
interface I$5 extends ButtonProps {
|
220
220
|
contentToPrint?: ReactNode;
|
221
221
|
children?: ReactNode;
|
222
|
+
autoPadding?: boolean;
|
222
223
|
}
|
223
|
-
declare function MyButtonPrintPDF({ contentToPrint, children, ...rest }: I$5): react_jsx_runtime.JSX.Element;
|
224
|
+
declare function MyButtonPrintPDF({ contentToPrint, children, autoPadding, ...rest }: I$5): react_jsx_runtime.JSX.Element;
|
224
225
|
|
225
226
|
interface FieldConfig {
|
226
227
|
fieldName: string;
|
@@ -65,7 +65,7 @@ import {
|
|
65
65
|
useS_BasicAppShell,
|
66
66
|
useS_ButtonImport,
|
67
67
|
utils_layout_getItemsWithoutLinks
|
68
|
-
} from "../chunk-
|
68
|
+
} from "../chunk-AX7LPZJ3.mjs";
|
69
69
|
import "../chunk-U62R2QKJ.mjs";
|
70
70
|
import "../chunk-5U2JSHSJ.mjs";
|
71
71
|
import "../chunk-OMJJAHOC.mjs";
|
package/dist/core/index.mjs
CHANGED
@@ -16,11 +16,11 @@ import {
|
|
16
16
|
MyStatsCard,
|
17
17
|
MyTextInput,
|
18
18
|
MyWeeklySessionSchedulerPicker
|
19
|
-
} from "../chunk-
|
20
|
-
import "../chunk-
|
19
|
+
} from "../chunk-PFMLUJQV.mjs";
|
20
|
+
import "../chunk-GFEMKKFH.mjs";
|
21
|
+
import "../chunk-AX7LPZJ3.mjs";
|
21
22
|
import "../chunk-U62R2QKJ.mjs";
|
22
23
|
import "../chunk-5U2JSHSJ.mjs";
|
23
|
-
import "../chunk-GFEMKKFH.mjs";
|
24
24
|
import "../chunk-OMJJAHOC.mjs";
|
25
25
|
import "../chunk-K6S7R6LU.mjs";
|
26
26
|
import "../chunk-KFSAV44B.mjs";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-
|
2
|
+
import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-D3LIC6va.mjs';
|
3
3
|
import { I as IBaseEntity } from '../IBaseEntity-BprRafT5.mjs';
|
4
4
|
import { SelectProps, ButtonProps } from '@mantine/core';
|
5
5
|
import { I as IEmailConfig } from '../IEmailConfig-Bza2PzTi.mjs';
|
@@ -12,16 +12,19 @@ import {
|
|
12
12
|
U0DateToDDMMYYYString
|
13
13
|
} from "../chunk-EWDS5IOF.mjs";
|
14
14
|
import {
|
15
|
-
MyButton
|
15
|
+
MyButton,
|
16
16
|
MyDataTableSelectOne,
|
17
17
|
MyTextInput as MyTextInput2
|
18
|
-
} from "../chunk-
|
18
|
+
} from "../chunk-PFMLUJQV.mjs";
|
19
|
+
import {
|
20
|
+
const_object_documentTypes
|
21
|
+
} from "../chunk-GFEMKKFH.mjs";
|
19
22
|
import {
|
20
23
|
F_authenticate_Logout,
|
21
24
|
MyActionIconDelete,
|
22
25
|
MyActionIconUpdate,
|
23
26
|
MyBoxesBackground,
|
24
|
-
MyButton,
|
27
|
+
MyButton as MyButton2,
|
25
28
|
MyButtonCreate,
|
26
29
|
MyButtonModal,
|
27
30
|
MyButtonViewPDF,
|
@@ -41,14 +44,11 @@ import {
|
|
41
44
|
groupToTwoLevels,
|
42
45
|
useS_authenticate,
|
43
46
|
utils_layout_getItemsWithoutLinks
|
44
|
-
} from "../chunk-
|
47
|
+
} from "../chunk-AX7LPZJ3.mjs";
|
45
48
|
import {
|
46
49
|
createGenericStore
|
47
50
|
} from "../chunk-U62R2QKJ.mjs";
|
48
51
|
import "../chunk-5U2JSHSJ.mjs";
|
49
|
-
import {
|
50
|
-
const_object_documentTypes
|
51
|
-
} from "../chunk-GFEMKKFH.mjs";
|
52
52
|
import {
|
53
53
|
const_object_colors
|
54
54
|
} from "../chunk-OMJJAHOC.mjs";
|
@@ -466,7 +466,7 @@ function F_accessControl_Save() {
|
|
466
466
|
}
|
467
467
|
disable[1](false);
|
468
468
|
}, [store.state.rolePermissions]);
|
469
|
-
return /* @__PURE__ */ jsx3(
|
469
|
+
return /* @__PURE__ */ jsx3(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
470
470
|
}
|
471
471
|
|
472
472
|
// src/modules-features/admin/core/accessControl/F_accessControl.tsx
|
@@ -828,7 +828,7 @@ function F_accessControlLevel_Save() {
|
|
828
828
|
}
|
829
829
|
disable[1](false);
|
830
830
|
}, [store.state.rolePermissions]);
|
831
|
-
return /* @__PURE__ */ jsx7(
|
831
|
+
return /* @__PURE__ */ jsx7(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
832
832
|
}
|
833
833
|
|
834
834
|
// src/modules-features/admin/core/accessControlLevel/F_accessControlLevel.tsx
|
@@ -2599,7 +2599,7 @@ function F_core35923() {
|
|
2599
2599
|
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
2600
2600
|
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
2601
2601
|
] }),
|
2602
|
-
/* @__PURE__ */ jsx40(MyFlexEnd, { children: /* @__PURE__ */ jsx40(
|
2602
|
+
/* @__PURE__ */ jsx40(MyFlexEnd, { children: /* @__PURE__ */ jsx40(MyButton2, { crudType: "save" }) })
|
2603
2603
|
] });
|
2604
2604
|
}
|
2605
2605
|
|
@@ -3980,7 +3980,7 @@ function F_moduleConfig_Save({
|
|
3980
3980
|
});
|
3981
3981
|
}
|
3982
3982
|
return /* @__PURE__ */ jsx74(
|
3983
|
-
|
3983
|
+
MyButton2,
|
3984
3984
|
{
|
3985
3985
|
disabled: !form.isDirty(),
|
3986
3986
|
crudType: "save",
|
@@ -4445,13 +4445,13 @@ import { useMemo as useMemo18 } from "react";
|
|
4445
4445
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
4446
4446
|
import { jsx as jsx82 } from "react/jsx-runtime";
|
4447
4447
|
function F_pageContentConfig_DeleteDescription() {
|
4448
|
-
return /* @__PURE__ */ jsx82(
|
4448
|
+
return /* @__PURE__ */ jsx82(MyButton, { actionType: "delete" });
|
4449
4449
|
}
|
4450
4450
|
|
4451
4451
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
4452
4452
|
import { jsx as jsx83 } from "react/jsx-runtime";
|
4453
4453
|
function F_pageContentConfig_Export() {
|
4454
|
-
return /* @__PURE__ */ jsx83(
|
4454
|
+
return /* @__PURE__ */ jsx83(MyButton, { actionType: "export" });
|
4455
4455
|
}
|
4456
4456
|
|
4457
4457
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
|
@@ -4463,7 +4463,7 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
4463
4463
|
return service_pageContent.updateList([{ id: 1 }]);
|
4464
4464
|
}
|
4465
4465
|
});
|
4466
|
-
return /* @__PURE__ */ jsx84(
|
4466
|
+
return /* @__PURE__ */ jsx84(MyButton, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4467
4467
|
}
|
4468
4468
|
|
4469
4469
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|