aq-fe-framework 0.1.86 → 0.1.87

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.
@@ -7512,6 +7512,15 @@ function F_core12196_Create({ FormTypeId }) {
7512
7512
  // src/modules-features/admin/core/core12196/F_core12196.tsx
7513
7513
  import { Paper as Paper7, Space as Space5 } from "@mantine/core";
7514
7514
  import { jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
7515
+ function F_core12196({
7516
+ FormTypeId
7517
+ }) {
7518
+ return /* @__PURE__ */ jsxs34(Paper7, { p: "md", children: [
7519
+ /* @__PURE__ */ jsx62(MyFlexEnd, { children: /* @__PURE__ */ jsx62(F_core12196_Create, { FormTypeId }) }),
7520
+ /* @__PURE__ */ jsx62(Space5, {}),
7521
+ /* @__PURE__ */ jsx62(F_core12196_Read, { FormTypeId })
7522
+ ] });
7523
+ }
7515
7524
 
7516
7525
  // src/modules-features/admin/core/core16209/F_core16209.tsx
7517
7526
  import { useQuery as useQuery5 } from "@tanstack/react-query";
@@ -8027,6 +8036,22 @@ function F_core27311({
8027
8036
  // src/modules-features/admin/core/core35923/F_core35923.tsx
8028
8037
  import { Grid } from "@mantine/core";
8029
8038
  import { jsx as jsx82, jsxs as jsxs50 } from "react/jsx-runtime";
8039
+ function F_core35923() {
8040
+ return /* @__PURE__ */ jsxs50(MyFieldset, { title: "C\u1EADp nh\u1EADt th\xF4ng tin \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n", children: [
8041
+ /* @__PURE__ */ jsxs50(Grid, { children: [
8042
+ /* @__PURE__ */ jsx82(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx82(MyTextInput, { label: "M\xE3 module", disabled: true }) }),
8043
+ /* @__PURE__ */ jsx82(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx82(MyTextInput, { label: "T\xEAn module" }) }),
8044
+ /* @__PURE__ */ jsx82(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx82(MyTextInput, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
8045
+ /* @__PURE__ */ jsx82(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(MyTextInput, { label: "Email" }) }),
8046
+ /* @__PURE__ */ jsx82(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(MyTextInput, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
8047
+ /* @__PURE__ */ jsx82(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(MyTextInput, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
8048
+ /* @__PURE__ */ jsx82(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(MyTextInput, { label: "Ng\xE0y h\u1EBFt h\u1EA1n" }) }),
8049
+ /* @__PURE__ */ jsx82(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
8050
+ /* @__PURE__ */ jsx82(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(MyFileInput, { label: "Logo (330px x 115px)" }) })
8051
+ ] }),
8052
+ /* @__PURE__ */ jsx82(MyFlexEnd, { children: /* @__PURE__ */ jsx82(MyButton, { crudType: "save" }) })
8053
+ ] });
8054
+ }
8030
8055
 
8031
8056
  // src/modules-features/admin/core/core38677/F_core38677.tsx
8032
8057
  import { Grid as Grid2, Paper as Paper10, ScrollArea as ScrollArea6 } from "@mantine/core";
@@ -8192,7 +8217,6 @@ var menuData = [
8192
8217
  label: "Qu\u1EA3n l\xED h\u1EC7 th\u1ED1ng",
8193
8218
  links: [
8194
8219
  { pageId: 1, name: "Account management", label: "Qu\u1EA3n l\xED t\xE0i kho\u1EA3n", link: "core71678" },
8195
- // { label: "Danh mục quyền", link: "47643", status: "Prototype" },
8196
8220
  { pageId: 2, name: "Access control level", label: "Ph\xE2n quy\u1EC1n c\u1EA5p \u0111\u01A1n v\u1ECB", link: "core38677" },
8197
8221
  { pageId: 3, name: "Access control", label: "Ph\xE2n quy\u1EC1n s\u1EED d\u1EE5ng", link: "core83092" },
8198
8222
  { pageId: 4, name: "Security regulations", label: "Quy \u0111\u1ECBnh an to\xE0n/ b\u1EA3o m\u1EADt th\xF4ng tin", link: "core76318", status: "Default" },
@@ -8444,6 +8468,15 @@ function useGetUserPermission() {
8444
8468
 
8445
8469
  // src/modules-features/admin/core/core38677/F_core38677.tsx
8446
8470
  import { jsx as jsx86, jsxs as jsxs52 } from "react/jsx-runtime";
8471
+ function F_core38677({ menuData: menuData2 }) {
8472
+ return /* @__PURE__ */ jsxs52(Grid2, { grow: true, children: [
8473
+ /* @__PURE__ */ jsx86(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx86(F_core38677_ReadUser, {}) }),
8474
+ /* @__PURE__ */ jsx86(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs52(MyFlexColumn, { h: "80vh", flex: 1, children: [
8475
+ /* @__PURE__ */ jsx86(ScrollArea6.Autosize, { h: "100%", children: /* @__PURE__ */ jsx86(Paper10, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx86(F_core38677_ViewMenuPermissions, { menuData: menuData2 }) }) }),
8476
+ /* @__PURE__ */ jsx86(F_core38677_Save, {})
8477
+ ] }) })
8478
+ ] });
8479
+ }
8447
8480
 
8448
8481
  // src/modules-features/admin/core/core40207/F_core40207_Read.tsx
8449
8482
  import { useQuery as useQuery11 } from "@tanstack/react-query";
@@ -8835,6 +8868,9 @@ function F_core64229_Read() {
8835
8868
 
8836
8869
  // src/modules-features/admin/core/core64229/F_core64229.tsx
8837
8870
  import { jsx as jsx99 } from "react/jsx-runtime";
8871
+ function F_core64229() {
8872
+ return /* @__PURE__ */ jsx99(MyPageContent, { children: /* @__PURE__ */ jsx99(F_core64229_Read, {}) });
8873
+ }
8838
8874
 
8839
8875
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
8840
8876
  import { Button as Button17, Group as Group17 } from "@mantine/core";
@@ -9105,6 +9141,9 @@ function F_core71678_Read() {
9105
9141
 
9106
9142
  // src/modules-features/admin/core/core71678/F_core71678.tsx
9107
9143
  import { jsx as jsx105 } from "react/jsx-runtime";
9144
+ function F_core71678() {
9145
+ return /* @__PURE__ */ jsx105(F_core71678_Read, {});
9146
+ }
9108
9147
 
9109
9148
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
9110
9149
  import { useQuery as useQuery16 } from "@tanstack/react-query";
@@ -9168,9 +9207,61 @@ function F_core76318_Update({ values }) {
9168
9207
 
9169
9208
  // src/modules-features/admin/core/core76318/F_core76318_Read.tsx
9170
9209
  import { jsx as jsx109, jsxs as jsxs66 } from "react/jsx-runtime";
9210
+ function F_core76318_Read() {
9211
+ const query = useQuery16({
9212
+ queryKey: ["F_core76318_Read"],
9213
+ queryFn: async () => {
9214
+ var _a;
9215
+ const result = await baseAxios_default.get(`/Document/GetByType?documentType=${OBJECT_DOCUMENT_TYPES.Security}`);
9216
+ return ((_a = result.data) == null ? void 0 : _a.data) || [];
9217
+ }
9218
+ });
9219
+ const columns = useMemo14(
9220
+ () => [
9221
+ {
9222
+ header: "S\u1ED1 quy \u0111\u1ECBnh",
9223
+ accessorKey: "decisionCode"
9224
+ },
9225
+ {
9226
+ header: "Ng\xE0y ban h\xE0nh",
9227
+ accessorFn: (row) => U0DateToDDMMYYYString(new Date(row.promulgateDate))
9228
+ },
9229
+ {
9230
+ header: "T\xEAn t\xE0i li\u1EC7u",
9231
+ accessorKey: "name"
9232
+ },
9233
+ {
9234
+ header: "File",
9235
+ accessorFn: (row) => {
9236
+ return /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(MyButtonViewPDF, { id: row.id }) });
9237
+ }
9238
+ }
9239
+ ],
9240
+ []
9241
+ );
9242
+ if (query.isLoading) return "Loading...";
9243
+ if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
9244
+ return /* @__PURE__ */ jsx109(
9245
+ MyDataTable,
9246
+ {
9247
+ columns,
9248
+ data: query.data,
9249
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx109(F_core76318_Create, {}),
9250
+ renderRowActions: ({ row }) => {
9251
+ return /* @__PURE__ */ jsxs66(MyCenterFull, { children: [
9252
+ /* @__PURE__ */ jsx109(F_core76318_Update, { values: row.original }),
9253
+ /* @__PURE__ */ jsx109(F_core76318_Delete, { id: row.original.id })
9254
+ ] });
9255
+ }
9256
+ }
9257
+ );
9258
+ }
9171
9259
 
9172
9260
  // src/modules-features/admin/core/core76318/F_core76318.tsx
9173
9261
  import { jsx as jsx110 } from "react/jsx-runtime";
9262
+ function F_core76318() {
9263
+ return /* @__PURE__ */ jsx110(F_core76318_Read, {});
9264
+ }
9174
9265
 
9175
9266
  // src/modules-features/admin/core/core83092/F_core83092.tsx
9176
9267
  import { Grid as Grid3, Paper as Paper11, ScrollArea as ScrollArea8 } from "@mantine/core";
@@ -10334,6 +10425,7 @@ export {
10334
10425
  F_core12196_Update,
10335
10426
  F_core12196_Read,
10336
10427
  F_core12196_Create,
10428
+ F_core12196,
10337
10429
  F_core16209_Create,
10338
10430
  F_core16209_Delete,
10339
10431
  F_core16209_Update,
@@ -10352,11 +10444,13 @@ export {
10352
10444
  F_core27311_Update,
10353
10445
  F_core27311_Read,
10354
10446
  F_core27311,
10447
+ F_core35923,
10355
10448
  useS_core83092,
10356
10449
  utils_core83092_mergePage,
10357
10450
  F_core38677_ReadUser,
10358
10451
  F_core38677_Save,
10359
10452
  F_core38677_ViewMenuPermissions,
10453
+ F_core38677,
10360
10454
  F_core40207_Create,
10361
10455
  F_core40207_Delete,
10362
10456
  F_core40207_Update,
@@ -10369,14 +10463,17 @@ export {
10369
10463
  F_core64229_Form,
10370
10464
  F_core64229_Delete,
10371
10465
  F_core64229_Read,
10466
+ F_core64229,
10372
10467
  F_core71678_ChangePermission,
10373
10468
  F_core71678_Create,
10374
10469
  F_core71678_Delete,
10375
10470
  F_core71678_Update,
10376
10471
  F_core71678_Read,
10472
+ F_core71678,
10377
10473
  F_core76318_Create,
10378
10474
  F_core76318_Delete,
10379
10475
  F_core76318_Update,
10476
+ F_core76318,
10380
10477
  F_core83092_ReadUser,
10381
10478
  F_core83092_Save,
10382
10479
  F_core83092_ViewMenuPermissions,
@@ -63,7 +63,7 @@ import {
63
63
  useS_BasicAppShell,
64
64
  useS_ButtonImport,
65
65
  utils_layout_getItemsWithoutLinks
66
- } from "../chunk-RK3LCVDP.mjs";
66
+ } from "../chunk-LM433N64.mjs";
67
67
  import "../chunk-Y3YGC5IH.mjs";
68
68
  import "../chunk-EEQENBXZ.mjs";
69
69
  import "../chunk-FWCSY2DS.mjs";
@@ -3,6 +3,10 @@ import { SelectProps } from '@mantine/core';
3
3
  import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-CGIz9MsN.mjs';
4
4
  import { ReactNode } from 'react';
5
5
 
6
+ declare function F_core12196({ FormTypeId }: {
7
+ FormTypeId: number;
8
+ }): react_jsx_runtime.JSX.Element;
9
+
6
10
  declare function F_core12196_Create({ FormTypeId }: {
7
11
  FormTypeId: number;
8
12
  }): react_jsx_runtime.JSX.Element;
@@ -231,6 +235,12 @@ declare function F_core27311_Update({ values, WorkflowTypeId }: {
231
235
  WorkflowTypeId: number;
232
236
  }): react_jsx_runtime.JSX.Element;
233
237
 
238
+ declare function F_core35923(): react_jsx_runtime.JSX.Element;
239
+
240
+ declare function F_core38677({ menuData }: {
241
+ menuData: I_BasicAppShell_LinkItem[];
242
+ }): react_jsx_runtime.JSX.Element;
243
+
234
244
  interface IBaseEntity {
235
245
  id?: number;
236
246
  code?: string;
@@ -314,6 +324,8 @@ declare function F_core47643_Form({ values }: {
314
324
 
315
325
  declare function F_core47643_Read(): react_jsx_runtime.JSX.Element | "Đang tải dữ liệu..." | "Có lỗi xảy ra!";
316
326
 
327
+ declare function F_core64229(): react_jsx_runtime.JSX.Element;
328
+
317
329
  declare function F_core64229_Delete({ values }: {
318
330
  values: IBaseEntity;
319
331
  }): react_jsx_runtime.JSX.Element;
@@ -336,6 +348,8 @@ declare function F_core64229_Form({ values }: {
336
348
 
337
349
  declare function F_core64229_Read(): react_jsx_runtime.JSX.Element | "Đang tải";
338
350
 
351
+ declare function F_core71678(): react_jsx_runtime.JSX.Element;
352
+
339
353
  interface IRoles extends IBaseEntity {
340
354
  }
341
355
  interface I_core71678_Read extends IBaseEntity {
@@ -369,6 +383,8 @@ declare function F_core71678_Update({ user }: {
369
383
  user: I$4;
370
384
  }): react_jsx_runtime.JSX.Element;
371
385
 
386
+ declare function F_core76318(): react_jsx_runtime.JSX.Element;
387
+
372
388
  declare function F_core76318_Create(): react_jsx_runtime.JSX.Element;
373
389
 
374
390
  declare function F_core76318_Delete({ id }: {
@@ -482,4 +498,4 @@ interface I {
482
498
  }
483
499
  declare function F_authenticate_Login({ loginInfo, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess }: I): react_jsx_runtime.JSX.Element;
484
500
 
485
- export { F_authenticate_Login, F_authenticate_Logout, F_authenticate_SplashPage, 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_core38677_ReadUser, F_core38677_Save, F_core38677_ViewMenuPermissions, 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_Delete, F_core64229_Form, F_core64229_Read, F_core71678_ChangePermission, F_core71678_Create, F_core71678_Delete, F_core71678_Read, F_core71678_Update, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_core83092, F_core83092_ReadUser, F_core83092_Save, F_core83092_ViewMenuPermissions, type I_core38677_User, type I_core71678_Read, type I_core83092_RolePermission, PieChart_DiscountUsedPercentage, PieChart_VoucherUsedPercentage, useS_authenticate, useS_core83092, utils_core83092_mergePage };
501
+ export { 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_core38677, F_core38677_ReadUser, F_core38677_Save, F_core38677_ViewMenuPermissions, 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_core71678, F_core71678_ChangePermission, F_core71678_Create, F_core71678_Delete, F_core71678_Read, F_core71678_Update, F_core76318, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_core83092, F_core83092_ReadUser, F_core83092_Save, F_core83092_ViewMenuPermissions, type I_core38677_User, type I_core71678_Read, type I_core83092_RolePermission, PieChart_DiscountUsedPercentage, PieChart_VoucherUsedPercentage, useS_authenticate, useS_core83092, utils_core83092_mergePage };
@@ -2,6 +2,7 @@ import {
2
2
  F_authenticate_Login,
3
3
  F_authenticate_Logout,
4
4
  F_authenticate_SplashPage,
5
+ F_core12196,
5
6
  F_core12196_Create,
6
7
  F_core12196_Delete,
7
8
  F_core12196_Read,
@@ -25,6 +26,8 @@ import {
25
26
  F_core27311_Delete,
26
27
  F_core27311_Read,
27
28
  F_core27311_Update,
29
+ F_core35923,
30
+ F_core38677,
28
31
  F_core38677_ReadUser,
29
32
  F_core38677_Save,
30
33
  F_core38677_ViewMenuPermissions,
@@ -37,14 +40,17 @@ import {
37
40
  F_core47643_Delete,
38
41
  F_core47643_Form,
39
42
  F_core47643_Read,
43
+ F_core64229,
40
44
  F_core64229_Delete,
41
45
  F_core64229_Form,
42
46
  F_core64229_Read,
47
+ F_core71678,
43
48
  F_core71678_ChangePermission,
44
49
  F_core71678_Create,
45
50
  F_core71678_Delete,
46
51
  F_core71678_Read,
47
52
  F_core71678_Update,
53
+ F_core76318,
48
54
  F_core76318_Create,
49
55
  F_core76318_Delete,
50
56
  F_core76318_Update,
@@ -57,7 +63,7 @@ import {
57
63
  useS_authenticate,
58
64
  useS_core83092,
59
65
  utils_core83092_mergePage
60
- } from "../chunk-RK3LCVDP.mjs";
66
+ } from "../chunk-LM433N64.mjs";
61
67
  import "../chunk-Y3YGC5IH.mjs";
62
68
  import "../chunk-EEQENBXZ.mjs";
63
69
  import "../chunk-FWCSY2DS.mjs";
@@ -65,6 +71,7 @@ export {
65
71
  F_authenticate_Login,
66
72
  F_authenticate_Logout,
67
73
  F_authenticate_SplashPage,
74
+ F_core12196,
68
75
  F_core12196_Create,
69
76
  F_core12196_Delete,
70
77
  F_core12196_Read,
@@ -88,6 +95,8 @@ export {
88
95
  F_core27311_Delete,
89
96
  F_core27311_Read,
90
97
  F_core27311_Update,
98
+ F_core35923,
99
+ F_core38677,
91
100
  F_core38677_ReadUser,
92
101
  F_core38677_Save,
93
102
  F_core38677_ViewMenuPermissions,
@@ -100,14 +109,17 @@ export {
100
109
  F_core47643_Delete,
101
110
  F_core47643_Form,
102
111
  F_core47643_Read,
112
+ F_core64229,
103
113
  F_core64229_Delete,
104
114
  F_core64229_Form,
105
115
  F_core64229_Read,
116
+ F_core71678,
106
117
  F_core71678_ChangePermission,
107
118
  F_core71678_Create,
108
119
  F_core71678_Delete,
109
120
  F_core71678_Read,
110
121
  F_core71678_Update,
122
+ F_core76318,
111
123
  F_core76318_Create,
112
124
  F_core76318_Delete,
113
125
  F_core76318_Update,
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.86",
21
+ "version": "0.1.87",
22
22
  "private": false,
23
23
  "files": [
24
24
  "dist"