aq-fe-framework 0.1.85 → 0.1.86

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.
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface I_BasicAppShell_LinkItem {
5
+ pageId?: number;
6
+ name?: string;
7
+ label: string;
8
+ status?: "Default" | "Prototype" | "New" | "Menu" | "Change";
9
+ link?: string;
10
+ links?: I_BasicAppShell_LinkItem[];
11
+ }
12
+ declare function BasicAppShell_transformMenuToEnum(prefixProjectName: string, menu: I_BasicAppShell_LinkItem[]): Record<string, number>;
13
+ declare function BasicAppShell({ children, menu }: {
14
+ children: ReactNode;
15
+ menu: I_BasicAppShell_LinkItem[];
16
+ }): react_jsx_runtime.JSX.Element;
17
+ declare const groupToTwoLevels: (menu: I_BasicAppShell_LinkItem[]) => I_BasicAppShell_LinkItem[];
18
+ declare function utils_layout_getItemsWithoutLinks(menu: I_BasicAppShell_LinkItem[]): I_BasicAppShell_LinkItem[];
19
+
20
+ export { BasicAppShell_transformMenuToEnum as B, type I_BasicAppShell_LinkItem as I, BasicAppShell as a, groupToTwoLevels as g, utils_layout_getItemsWithoutLinks as u };
@@ -8224,13 +8224,13 @@ import { useQuery as useQuery10 } from "@tanstack/react-query";
8224
8224
  import React2, { useEffect as useEffect8, useState as useState11 } from "react";
8225
8225
  import { jsx as jsx85, jsxs as jsxs51 } from "react/jsx-runtime";
8226
8226
  var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
8227
- function F_core38677_ViewMenuPermissions() {
8227
+ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
8228
8228
  var _a, _b;
8229
8229
  const store = useS_core83092();
8230
8230
  const query = useGetUserPermission();
8231
8231
  const list = useState11([]);
8232
8232
  useEffect8(() => {
8233
- list[1](groupToTwoLevels(menuData));
8233
+ list[1](groupToTwoLevels(menuData2));
8234
8234
  }, []);
8235
8235
  useEffect8(() => {
8236
8236
  if (!query.data) return;
@@ -9287,13 +9287,13 @@ import { useQuery as useQuery18 } from "@tanstack/react-query";
9287
9287
  import React4, { useEffect as useEffect13, useState as useState16 } from "react";
9288
9288
  import { jsx as jsx113, jsxs as jsxs67 } from "react/jsx-runtime";
9289
9289
  var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
9290
- function F_core83092_ViewMenuPermissions() {
9290
+ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
9291
9291
  var _a, _b;
9292
9292
  const store = useS_core83092();
9293
- const query = useGetUserPermission2();
9293
+ const query = useGetUserPermission2({ menuData: menuData2 });
9294
9294
  const list = useState16([]);
9295
9295
  useEffect13(() => {
9296
- list[1](groupToTwoLevels(menuData));
9296
+ list[1](groupToTwoLevels(menuData2));
9297
9297
  }, []);
9298
9298
  useEffect13(() => {
9299
9299
  if (!query.data) return;
@@ -9468,13 +9468,13 @@ function F_core83092_ViewMenuPermissions() {
9468
9468
  }) })
9469
9469
  ] }) });
9470
9470
  }
9471
- function useGetUserPermission2() {
9471
+ function useGetUserPermission2({ menuData: menuData2 }) {
9472
9472
  const store = useS_core83092();
9473
9473
  const query = useQuery18({
9474
9474
  queryKey: ["F_7p4mh9d75x_AuthorizationTable", store.state.roleId],
9475
9475
  queryFn: async () => {
9476
9476
  const result = await baseAxios_default.get("/Role/GetUserPermission?userId=" + store.state.roleId);
9477
- const menudataFinal = utils_layout_getItemsWithoutLinks(menuData);
9477
+ const menudataFinal = utils_layout_getItemsWithoutLinks(menuData2);
9478
9478
  if (result.data.data.length == 0) {
9479
9479
  const final = menudataFinal.map((item) => ({
9480
9480
  pageId: item.pageId,
@@ -9507,11 +9507,11 @@ function useGetUserPermission2() {
9507
9507
 
9508
9508
  // src/modules-features/admin/core/core83092/F_core83092.tsx
9509
9509
  import { jsx as jsx114, jsxs as jsxs68 } from "react/jsx-runtime";
9510
- function F_core83092() {
9510
+ function F_core83092({ menuData: menuData2 }) {
9511
9511
  return /* @__PURE__ */ jsxs68(Grid3, { grow: true, children: [
9512
9512
  /* @__PURE__ */ jsx114(Grid3.Col, { span: 4, children: /* @__PURE__ */ jsx114(F_core83092_ReadUser, {}) }),
9513
9513
  /* @__PURE__ */ jsx114(Grid3.Col, { span: 8, children: /* @__PURE__ */ jsxs68(MyFlexColumn, { h: "80vh", flex: 1, children: [
9514
- /* @__PURE__ */ jsx114(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx114(Paper11, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx114(F_core83092_ViewMenuPermissions, {}) }) }),
9514
+ /* @__PURE__ */ jsx114(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx114(Paper11, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx114(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
9515
9515
  /* @__PURE__ */ jsx114(F_core83092_Save, {})
9516
9516
  ] }) })
9517
9517
  ] });
@@ -3,6 +3,8 @@ import react__default, { ReactNode, ComponentProps } from 'react';
3
3
  import { MantineSize, ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
4
4
  import { useDisclosure, useListState } from '@mantine/hooks';
5
5
  import { UseFormReturnType, useForm } from '@mantine/form';
6
+ import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-CGIz9MsN.mjs';
7
+ export { a as BasicAppShell, B as BasicAppShell_transformMenuToEnum, g as groupToTwoLevels, u as utils_layout_getItemsWithoutLinks } from '../BasicAppShell-CGIz9MsN.mjs';
6
8
  import { I as IUtils_Excel_ColumnConfig } from '../utils_excel-CLb5lfmI.mjs';
7
9
  import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
8
10
  import { ConfigOptions } from 'export-to-csv';
@@ -82,24 +84,8 @@ declare function MyActionIconViewPDF({ modalSize, pdfLink, ...rest }: IActionIco
82
84
 
83
85
  declare function MySwitchTheme(): react_jsx_runtime.JSX.Element;
84
86
 
85
- interface I0LinkItem {
86
- pageId?: number;
87
- name?: string;
88
- label: string;
89
- status?: "Default" | "Prototype" | "New" | "Menu" | "Change";
90
- link?: string;
91
- links?: I0LinkItem[];
92
- }
93
- declare function BasicAppShell_transformMenuToEnum(prefixProjectName: string, menu: I0LinkItem[]): Record<string, number>;
94
- declare function BasicAppShell({ children, menu }: {
95
- children: ReactNode;
96
- menu: I0LinkItem[];
97
- }): react_jsx_runtime.JSX.Element;
98
- declare const groupToTwoLevels: (menu: I0LinkItem[]) => I0LinkItem[];
99
- declare function utils_layout_getItemsWithoutLinks(menu: I0LinkItem[]): I0LinkItem[];
100
-
101
87
  declare function MyAppSpotlight({ menu }: {
102
- menu: I0LinkItem[];
88
+ menu: I_BasicAppShell_LinkItem[];
103
89
  }): react_jsx_runtime.JSX.Element;
104
90
  declare function SpotlightTrigger(): react_jsx_runtime.JSX.Element;
105
91
 
@@ -494,4 +480,4 @@ interface IMySkeletonTable extends SkeletonProps {
494
480
  }
495
481
  declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
496
482
 
497
- export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, BasicAppShell, BasicAppShell_transformMenuToEnum, Boxes, HeaderMegaMenu, type I0LinkItem, type IAQCardProps, type IMyTextEditor, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, MyDataTableSelect, MyDateInput, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, SpotlightTrigger, groupToTwoLevels, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport, utils_layout_getItemsWithoutLinks };
483
+ export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, MyDataTableSelect, MyDateInput, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, SpotlightTrigger, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
@@ -63,7 +63,7 @@ import {
63
63
  useS_BasicAppShell,
64
64
  useS_ButtonImport,
65
65
  utils_layout_getItemsWithoutLinks
66
- } from "../chunk-XT3GL3UA.mjs";
66
+ } from "../chunk-RK3LCVDP.mjs";
67
67
  import "../chunk-Y3YGC5IH.mjs";
68
68
  import "../chunk-EEQENBXZ.mjs";
69
69
  import "../chunk-FWCSY2DS.mjs";
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { SelectProps } from '@mantine/core';
3
+ import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-CGIz9MsN.mjs';
3
4
  import { ReactNode } from 'react';
4
5
 
5
6
  declare function F_core12196_Create({ FormTypeId }: {
@@ -246,7 +247,9 @@ declare function F_core38677_ReadUser(): react_jsx_runtime.JSX.Element | "Loadin
246
247
 
247
248
  declare function F_core38677_Save(): react_jsx_runtime.JSX.Element;
248
249
 
249
- declare function F_core38677_ViewMenuPermissions(): react_jsx_runtime.JSX.Element | "Đang tải...";
250
+ declare function F_core38677_ViewMenuPermissions({ menuData }: {
251
+ menuData: I_BasicAppShell_LinkItem[];
252
+ }): react_jsx_runtime.JSX.Element | "Đang tải...";
250
253
 
251
254
  declare function F_core40207(): react_jsx_runtime.JSX.Element;
252
255
 
@@ -408,13 +411,17 @@ declare function F_core76318_Update({ values }: {
408
411
  values: I$3;
409
412
  }): react_jsx_runtime.JSX.Element;
410
413
 
411
- declare function F_core83092(): react_jsx_runtime.JSX.Element;
414
+ declare function F_core83092({ menuData }: {
415
+ menuData: I_BasicAppShell_LinkItem[];
416
+ }): react_jsx_runtime.JSX.Element;
412
417
 
413
418
  declare function F_core83092_ReadUser(): react_jsx_runtime.JSX.Element | "Loading..." | "Có lỗi xảy ra!";
414
419
 
415
420
  declare function F_core83092_Save(): react_jsx_runtime.JSX.Element;
416
421
 
417
- declare function F_core83092_ViewMenuPermissions(): react_jsx_runtime.JSX.Element | "Đang tải...";
422
+ declare function F_core83092_ViewMenuPermissions({ menuData }: {
423
+ menuData: I_BasicAppShell_LinkItem[];
424
+ }): react_jsx_runtime.JSX.Element | "Đang tải...";
418
425
 
419
426
  interface I_core83092_RolePermission {
420
427
  pageId?: number;
@@ -57,7 +57,7 @@ import {
57
57
  useS_authenticate,
58
58
  useS_core83092,
59
59
  utils_core83092_mergePage
60
- } from "../chunk-XT3GL3UA.mjs";
60
+ } from "../chunk-RK3LCVDP.mjs";
61
61
  import "../chunk-Y3YGC5IH.mjs";
62
62
  import "../chunk-EEQENBXZ.mjs";
63
63
  import "../chunk-FWCSY2DS.mjs";
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "types": "./dist/modules-features/index.d.mts"
19
19
  }
20
20
  },
21
- "version": "0.1.85",
21
+ "version": "0.1.86",
22
22
  "private": false,
23
23
  "files": [
24
24
  "dist"