aq-fe-framework 0.1.115 → 0.1.117

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.
@@ -2,9 +2,6 @@ import {
2
2
  baseAxios_default,
3
3
  useQ_AQ_GetAQModule
4
4
  } from "./chunk-QAWKASVG.mjs";
5
- import {
6
- createGenericStore
7
- } from "./chunk-Y3YGC5IH.mjs";
8
5
  import {
9
6
  U0DateToDDMMYYYString,
10
7
  U0MyValidateEmail,
@@ -15,6 +12,9 @@ import {
15
12
  import {
16
13
  utils_notification_show
17
14
  } from "./chunk-7ZCOFATU.mjs";
15
+ import {
16
+ createGenericStore
17
+ } from "./chunk-Y3YGC5IH.mjs";
18
18
  import {
19
19
  __objRest,
20
20
  __spreadProps,
@@ -6676,6 +6676,12 @@ function AQCard({
6676
6676
  // src/components/DataDisplay/IconText/MyIconText.tsx
6677
6677
  import { Group as Group9, Text as Text8 } from "@mantine/core";
6678
6678
  import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
6679
+ function MyIconText({ icon: Icon, text }) {
6680
+ return /* @__PURE__ */ jsxs25(Group9, { wrap: "nowrap", gap: 10, mt: 3, children: [
6681
+ Icon && /* @__PURE__ */ jsx46(Icon, { stroke: 1.5, size: 16 }),
6682
+ /* @__PURE__ */ jsx46(Text8, { fz: "lg", c: "dimmed", children: text })
6683
+ ] });
6684
+ }
6679
6685
 
6680
6686
  // src/components/DataDisplay/KeyLabel/MyKeyLabel.tsx
6681
6687
  import { Group as Group10, Text as Text9 } from "@mantine/core";
@@ -7253,7 +7259,7 @@ function BasicAppShell({ children, menu }) {
7253
7259
  /* @__PURE__ */ jsxs29(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
7254
7260
  /* @__PURE__ */ jsx53(RenderNavLinks, { items: menu }),
7255
7261
  /* @__PURE__ */ jsx53(Divider2, {}),
7256
- /* @__PURE__ */ jsx53(F_authenticate_Logout, {})
7262
+ /* @__PURE__ */ jsx53(F_Authenticate_Logout, {})
7257
7263
  ] }),
7258
7264
  /* @__PURE__ */ jsxs29(AppShell.Section, { p: "md", children: [
7259
7265
  /* @__PURE__ */ jsx53(Divider2, {}),
@@ -11179,41 +11185,41 @@ function PieChart_VoucherUsedPercentage() {
11179
11185
  ] }) });
11180
11186
  }
11181
11187
 
11182
- // src/modules-features/authenticate/F_authenticate_Logout.tsx
11188
+ // src/modules-features/Authenticate/F_Authenticate_Logout.tsx
11183
11189
  import { Button as Button18 } from "@mantine/core";
11184
11190
  import { IconLogout } from "@tabler/icons-react";
11185
11191
  import { useRouter as useRouter4 } from "next/navigation";
11186
11192
 
11187
- // src/modules-features/authenticate/useS_authenticate.ts
11193
+ // src/modules-features/Authenticate/useS_Authenticate.ts
11188
11194
  var useStore6 = createGenericStore({
11189
11195
  initialState: { token: "" },
11190
11196
  storageKey: "useS_authenticate"
11191
11197
  });
11192
- function useS_authenticate() {
11198
+ function useS_Authenticate() {
11193
11199
  const store = useStore6();
11194
11200
  function logOut() {
11195
11201
  }
11196
11202
  return __spreadValues({}, store);
11197
11203
  }
11198
11204
 
11199
- // src/modules-features/authenticate/F_authenticate_Logout.tsx
11205
+ // src/modules-features/Authenticate/F_Authenticate_Logout.tsx
11200
11206
  import { jsx as jsx131 } from "react/jsx-runtime";
11201
- function F_authenticate_Logout({ redirectURL = "/auth/login" }) {
11207
+ function F_Authenticate_Logout({ redirectURL = "/auth/login" }) {
11202
11208
  const router = useRouter4();
11203
- const S_Authenticate = useS_authenticate();
11209
+ const S_Authenticate = useS_Authenticate();
11204
11210
  return /* @__PURE__ */ jsx131(Button18, { onClick: () => {
11205
11211
  S_Authenticate.setProperty("token", "");
11206
11212
  router.replace(redirectURL);
11207
11213
  }, leftSection: /* @__PURE__ */ jsx131(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
11208
11214
  }
11209
11215
 
11210
- // src/modules-features/authenticate/F_authenticate_SplashPage.tsx
11216
+ // src/modules-features/Authenticate/F_Authenticate_SplashPage.tsx
11211
11217
  import { useRouter as useRouter5 } from "next/navigation";
11212
11218
  import { useEffect as useEffect17 } from "react";
11213
11219
  import { jsx as jsx132 } from "react/jsx-runtime";
11214
11220
  function F_authenticate_SplashPage() {
11215
11221
  const router = useRouter5();
11216
- const S_Authenticate = useS_authenticate();
11222
+ const S_Authenticate = useS_Authenticate();
11217
11223
  useEffect17(() => {
11218
11224
  if (S_Authenticate.state.token == "") {
11219
11225
  router.push("/authenticate/login");
@@ -11224,7 +11230,7 @@ function F_authenticate_SplashPage() {
11224
11230
  return /* @__PURE__ */ jsx132(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
11225
11231
  }
11226
11232
 
11227
- // src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
11233
+ // src/modules-features/Authenticate/F_Authenticate_Login/F_Authenticate_Login.tsx
11228
11234
  import {
11229
11235
  Anchor as Anchor2,
11230
11236
  BackgroundImage,
@@ -11246,12 +11252,12 @@ import Link5 from "next/link";
11246
11252
  import { useRouter as useRouter6 } from "next/navigation";
11247
11253
  import { useState as useState17 } from "react";
11248
11254
 
11249
- // src/modules-features/authenticate/F_authenticate_Login/css.module.css
11255
+ // src/modules-features/Authenticate/F_Authenticate_Login/css.module.css
11250
11256
  var css_default3 = {};
11251
11257
 
11252
- // src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
11258
+ // src/modules-features/Authenticate/F_Authenticate_Login/F_Authenticate_Login.tsx
11253
11259
  import { jsx as jsx133, jsxs as jsxs83 } from "react/jsx-runtime";
11254
- function F_authenticate_Login({
11260
+ function F_Authenticate_Login({
11255
11261
  loginInfo,
11256
11262
  redirectUrlAfterLogin = "/admin/dashboard",
11257
11263
  additionalActions,
@@ -11259,7 +11265,7 @@ function F_authenticate_Login({
11259
11265
  onSuccess
11260
11266
  }) {
11261
11267
  const router = useRouter6();
11262
- const authStore = useS_authenticate();
11268
+ const authStore = useS_Authenticate();
11263
11269
  const loadingState = useState17(false);
11264
11270
  const mutation = useM_Account_Sigin();
11265
11271
  const form = useForm20({
@@ -11406,6 +11412,7 @@ export {
11406
11412
  MyCheckbox,
11407
11413
  MyFlexRow,
11408
11414
  AQCard,
11415
+ MyIconText,
11409
11416
  MyKeyLabel,
11410
11417
  MyNumberFormatter,
11411
11418
  AQStatCard1,
@@ -11478,10 +11485,10 @@ export {
11478
11485
  F_core83092,
11479
11486
  PieChart_DiscountUsedPercentage,
11480
11487
  PieChart_VoucherUsedPercentage,
11481
- useS_authenticate,
11482
- F_authenticate_Logout,
11488
+ useS_Authenticate,
11489
+ F_Authenticate_Logout,
11483
11490
  F_authenticate_SplashPage,
11484
- F_authenticate_Login,
11491
+ F_Authenticate_Login,
11485
11492
  BasicAppShell_transformMenuToEnum,
11486
11493
  BasicAppShell,
11487
11494
  groupToTwoLevels,
@@ -16,7 +16,7 @@
16
16
  display: block;
17
17
  }
18
18
 
19
- /* src/modules-features/authenticate/F_authenticate_Login/css.module.css */
19
+ /* src/modules-features/Authenticate/F_Authenticate_Login/css.module.css */
20
20
  .title {
21
21
  font-family: Greycliff CF, var(--mantine-font-family);
22
22
  font-weight: 900;
@@ -291,6 +291,12 @@ interface IDataTable$1<TData extends MRT_RowData> extends MRT_TableOptions<TData
291
291
  }
292
292
  declare function MyDataTable<TData extends MRT_RowData>({ formats, exportAble, csvConfigProps, rowActionSize, columns, data, renderTopToolbarCustomActions, setSelectedRow, ...rest }: IDataTable$1<TData>): react_jsx_runtime.JSX.Element | undefined;
293
293
 
294
+ interface MyIconTextProps {
295
+ icon?: React.ElementType;
296
+ text?: string;
297
+ }
298
+ declare function MyIconText({ icon: Icon, text }: MyIconTextProps): react_jsx_runtime.JSX.Element;
299
+
294
300
  interface I$4 {
295
301
  keyLabel?: string;
296
302
  label?: string;
@@ -487,4 +493,4 @@ interface IMySkeletonTable extends SkeletonProps {
487
493
  }
488
494
  declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
489
495
 
490
- export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, 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 };
496
+ export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, 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, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, SpotlightTrigger, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
@@ -43,6 +43,7 @@ import {
43
43
  MyFlexEnd,
44
44
  MyFlexRow,
45
45
  MyHtmlWrapper,
46
+ MyIconText,
46
47
  MyKeyLabel,
47
48
  MyNumberFormatter,
48
49
  MyNumberInput,
@@ -64,11 +65,11 @@ import {
64
65
  useS_BasicAppShell,
65
66
  useS_ButtonImport,
66
67
  utils_layout_getItemsWithoutLinks
67
- } from "../chunk-TILJ53ZH.mjs";
68
+ } from "../chunk-VHVUJIOR.mjs";
68
69
  import "../chunk-QAWKASVG.mjs";
69
- import "../chunk-Y3YGC5IH.mjs";
70
70
  import "../chunk-CJDXLINF.mjs";
71
71
  import "../chunk-7ZCOFATU.mjs";
72
+ import "../chunk-Y3YGC5IH.mjs";
72
73
  import "../chunk-FWCSY2DS.mjs";
73
74
  export {
74
75
  AQButtonCreateByImportFile,
@@ -115,6 +116,7 @@ export {
115
116
  MyFlexEnd,
116
117
  MyFlexRow,
117
118
  MyHtmlWrapper,
119
+ MyIconText,
118
120
  MyKeyLabel,
119
121
  MyNumberFormatter,
120
122
  MyNumberInput,
@@ -111,7 +111,7 @@
111
111
  border-top: 1px solid var(--mantine-color-dark-5);
112
112
  }
113
113
 
114
- /* src/modules-features/authenticate/F_authenticate_Login/css.module.css */
114
+ /* src/modules-features/Authenticate/F_Authenticate_Login/css.module.css */
115
115
  .title {
116
116
  font-family: Greycliff CF, var(--mantine-font-family);
117
117
  font-weight: 900;
@@ -501,7 +501,7 @@ declare function PieChart_VoucherUsedPercentage(): react_jsx_runtime.JSX.Element
501
501
  interface I$2 {
502
502
  redirectURL?: string;
503
503
  }
504
- declare function F_authenticate_Logout({ redirectURL }: I$2): react_jsx_runtime.JSX.Element;
504
+ declare function F_Authenticate_Logout({ redirectURL }: I$2): react_jsx_runtime.JSX.Element;
505
505
 
506
506
  declare function F_authenticate_SplashPage(): react_jsx_runtime.JSX.Element;
507
507
 
@@ -511,7 +511,7 @@ interface I$1 {
511
511
  fullName?: string;
512
512
  code?: string;
513
513
  }
514
- declare function useS_authenticate(): {
514
+ declare function useS_Authenticate(): {
515
515
  state: I$1;
516
516
  setState: (newState: I$1) => void;
517
517
  setProperty: <K extends keyof I$1>(key: K, value: I$1[K]) => void;
@@ -529,6 +529,6 @@ interface I {
529
529
  backgroundImage?: string;
530
530
  onSuccess?: (data?: any) => void;
531
531
  }
532
- declare function F_authenticate_Login({ loginInfo, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess }: I): react_jsx_runtime.JSX.Element;
532
+ declare function F_Authenticate_Login({ loginInfo, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess }: I): react_jsx_runtime.JSX.Element;
533
533
 
534
- 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_core60524, 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_core60524_AQModule, type I_core71678_Read, type I_core83092_RolePermission, PieChart_DiscountUsedPercentage, PieChart_VoucherUsedPercentage, useS_authenticate, useS_core60524, useS_core83092, utils_core83092_mergePage };
534
+ 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_core60524, 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_core60524_AQModule, type I_core71678_Read, type I_core83092_RolePermission, PieChart_DiscountUsedPercentage, PieChart_VoucherUsedPercentage, useS_Authenticate, useS_core60524, useS_core83092, utils_core83092_mergePage };
@@ -1,6 +1,6 @@
1
1
  import {
2
- F_authenticate_Login,
3
- F_authenticate_Logout,
2
+ F_Authenticate_Login,
3
+ F_Authenticate_Logout,
4
4
  F_authenticate_SplashPage,
5
5
  F_core12196,
6
6
  F_core12196_Create,
@@ -61,19 +61,19 @@ import {
61
61
  F_core83092_ViewMenuPermissions,
62
62
  PieChart_DiscountUsedPercentage,
63
63
  PieChart_VoucherUsedPercentage,
64
- useS_authenticate,
64
+ useS_Authenticate,
65
65
  useS_core60524,
66
66
  useS_core83092,
67
67
  utils_core83092_mergePage
68
- } from "../chunk-TILJ53ZH.mjs";
68
+ } from "../chunk-VHVUJIOR.mjs";
69
69
  import "../chunk-QAWKASVG.mjs";
70
- import "../chunk-Y3YGC5IH.mjs";
71
70
  import "../chunk-CJDXLINF.mjs";
72
71
  import "../chunk-7ZCOFATU.mjs";
72
+ import "../chunk-Y3YGC5IH.mjs";
73
73
  import "../chunk-FWCSY2DS.mjs";
74
74
  export {
75
- F_authenticate_Login,
76
- F_authenticate_Logout,
75
+ F_Authenticate_Login,
76
+ F_Authenticate_Logout,
77
77
  F_authenticate_SplashPage,
78
78
  F_core12196,
79
79
  F_core12196_Create,
@@ -134,7 +134,7 @@ export {
134
134
  F_core83092_ViewMenuPermissions,
135
135
  PieChart_DiscountUsedPercentage,
136
136
  PieChart_VoucherUsedPercentage,
137
- useS_authenticate,
137
+ useS_Authenticate,
138
138
  useS_core60524,
139
139
  useS_core83092,
140
140
  utils_core83092_mergePage
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.115",
25
+ "version": "0.1.117",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"