aq-fe-framework 0.1.113 → 0.1.114

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.
@@ -7457,8 +7457,22 @@ function HeaderMegaMenu({ children, menus }) {
7457
7457
  }
7458
7458
 
7459
7459
  // src/components/Layouts/PageContent/MyPageContent.tsx
7460
- import { Container as Container3, Indicator, Title } from "@mantine/core";
7460
+ import { Code, Container as Container3, Divider as Divider4, Group as Group13, Indicator, Title } from "@mantine/core";
7461
7461
  import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
7462
+ var getStatusColor = (status) => {
7463
+ switch (status) {
7464
+ case "Prototype":
7465
+ return "blue";
7466
+ case "Beta":
7467
+ return "orange";
7468
+ default:
7469
+ return "gray";
7470
+ }
7471
+ };
7472
+ var PageTitle = ({ title: title3, status }) => {
7473
+ const color = getStatusColor(status);
7474
+ return /* @__PURE__ */ jsx55(Indicator, { label: status, size: 16, inline: true, color, disabled: !status, pt: 6, children: /* @__PURE__ */ jsx55(Title, { order: 4, children: title3 }) });
7475
+ };
7462
7476
  function MyPageContent({
7463
7477
  leftTopBar,
7464
7478
  title: title3,
@@ -7470,7 +7484,18 @@ function MyPageContent({
7470
7484
  const basicAppShellStore = useS_BasicAppShell();
7471
7485
  const finalTitle = title3 || basicAppShellStore.state.title;
7472
7486
  return /* @__PURE__ */ jsxs30(Container3, { p: 0, fluid: true, children: [
7473
- "\u01B0qdjqwndkqnwdnqwdj",
7487
+ /* @__PURE__ */ jsxs30(Group13, { justify: "space-between", children: [
7488
+ /* @__PURE__ */ jsxs30(Group13, { children: [
7489
+ canBack && /* @__PURE__ */ jsx55(MyButtonRouterBack, {}),
7490
+ /* @__PURE__ */ jsx55(PageTitle, { title: finalTitle, status }),
7491
+ leftTopBar
7492
+ ] }),
7493
+ /* @__PURE__ */ jsxs30(Group13, { children: [
7494
+ rightTopBar,
7495
+ /* @__PURE__ */ jsx55(Code, { color: "var(--mantine-color-blue-light)", children: basicAppShellStore.state.menuCode })
7496
+ ] })
7497
+ ] }),
7498
+ /* @__PURE__ */ jsx55(Divider4, { my: "xs" }),
7474
7499
  children
7475
7500
  ] });
7476
7501
  }
@@ -7491,7 +7516,7 @@ function MyTab(_a) {
7491
7516
  }
7492
7517
 
7493
7518
  // src/components/RESTAPIComponents/DataTableSelect/MyDataTableSelect.tsx
7494
- import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as Group13, Modal as Modal11 } from "@mantine/core";
7519
+ import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as Group14, Modal as Modal11 } from "@mantine/core";
7495
7520
  import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
7496
7521
  import { IconX as IconX2 } from "@tabler/icons-react";
7497
7522
  import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
@@ -7504,7 +7529,7 @@ function MyDataTableSelect(_a) {
7504
7529
  MyDataTable,
7505
7530
  __spreadValues({
7506
7531
  renderTopToolbarCustomActions: ({ table }) => {
7507
- return /* @__PURE__ */ jsxs32(Group13, { children: [
7532
+ return /* @__PURE__ */ jsxs32(Group14, { children: [
7508
7533
  renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
7509
7534
  /* @__PURE__ */ jsx57(Button15, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
7510
7535
  ] });
@@ -9304,7 +9329,7 @@ function F_core40207({ GuidelineTypeId }) {
9304
9329
  }
9305
9330
 
9306
9331
  // src/modules-features/admin/core/core47643/F_core47643_Read.tsx
9307
- import { Group as Group14 } from "@mantine/core";
9332
+ import { Group as Group15 } from "@mantine/core";
9308
9333
  import { useQuery as useQuery12 } from "@tanstack/react-query";
9309
9334
  import { useMemo as useMemo10 } from "react";
9310
9335
 
@@ -9364,7 +9389,7 @@ function F_core47643_Read() {
9364
9389
  {
9365
9390
  data: query.data,
9366
9391
  columns,
9367
- renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx94(Group14, { children: /* @__PURE__ */ jsx94(F_core47643_Form, {}) }),
9392
+ renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx94(Group15, { children: /* @__PURE__ */ jsx94(F_core47643_Form, {}) }),
9368
9393
  renderRowActions: ({ row }) => /* @__PURE__ */ jsxs57(MyCenterFull, { children: [
9369
9394
  /* @__PURE__ */ jsx94(F_core47643_Form, { values: row.original }),
9370
9395
  /* @__PURE__ */ jsx94(F_core47643_Delete, { values: row.original })
@@ -9745,14 +9770,14 @@ function F_core64229() {
9745
9770
  }
9746
9771
 
9747
9772
  // src/modules-features/admin/core/core71678/F_core71678_Read.tsx
9748
- import { Button as Button17, Group as Group16 } from "@mantine/core";
9773
+ import { Button as Button17, Group as Group17 } from "@mantine/core";
9749
9774
  import { IconShield } from "@tabler/icons-react";
9750
9775
  import { useQuery as useQuery15 } from "@tanstack/react-query";
9751
9776
  import { useRouter as useRouter3 } from "next/navigation";
9752
9777
  import { useMemo as useMemo13, useState as useState13 } from "react";
9753
9778
 
9754
9779
  // src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
9755
- import { Button as Button16, Fieldset as Fieldset6, Group as Group15, Table as Table4 } from "@mantine/core";
9780
+ import { Button as Button16, Fieldset as Fieldset6, Group as Group16, Table as Table4 } from "@mantine/core";
9756
9781
  import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
9757
9782
  import { useMutation as useMutation7, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
9758
9783
  import { useEffect as useEffect12, useMemo as useMemo12, useState as useState12 } from "react";
@@ -9852,7 +9877,7 @@ function F_core71678_ChangePermission({ user }) {
9852
9877
  data: query.data
9853
9878
  }
9854
9879
  ) }),
9855
- /* @__PURE__ */ jsx103(Group15, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx103(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
9880
+ /* @__PURE__ */ jsx103(Group16, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx103(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
9856
9881
  ] });
9857
9882
  }
9858
9883
 
@@ -9986,7 +10011,7 @@ function F_core71678_Read() {
9986
10011
  columns,
9987
10012
  data: AllUserQuery.data,
9988
10013
  renderTopToolbarCustomActions: () => {
9989
- return /* @__PURE__ */ jsxs64(Group16, { children: [
10014
+ return /* @__PURE__ */ jsxs64(Group17, { children: [
9990
10015
  /* @__PURE__ */ jsx107(F_core71678_Create, {}),
9991
10016
  /* @__PURE__ */ jsx107(
9992
10017
  Button17,
@@ -10576,52 +10601,52 @@ function F_core83092({ menuData: menuData2 }) {
10576
10601
 
10577
10602
  // src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
10578
10603
  import { BarChart } from "@mantine/charts";
10579
- import { Group as Group17, Paper as Paper13, Text as Text15, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
10604
+ import { Group as Group18, Paper as Paper13, Text as Text15, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
10580
10605
  import { Fragment as Fragment13, jsx as jsx118, jsxs as jsxs70 } from "react/jsx-runtime";
10581
10606
 
10582
10607
  // src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
10583
10608
  import { BarChart as BarChart2 } from "@mantine/charts";
10584
- import { Group as Group18, Paper as Paper14, Text as Text16, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
10609
+ import { Group as Group19, Paper as Paper14, Text as Text16, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
10585
10610
  import { Fragment as Fragment14, jsx as jsx119, jsxs as jsxs71 } from "react/jsx-runtime";
10586
10611
 
10587
10612
  // src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
10588
10613
  import { BarChart as BarChart3 } from "@mantine/charts";
10589
- import { Group as Group19, Paper as Paper15, Text as Text17, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
10614
+ import { Group as Group20, Paper as Paper15, Text as Text17, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
10590
10615
  import { Fragment as Fragment15, jsx as jsx120, jsxs as jsxs72 } from "react/jsx-runtime";
10591
10616
 
10592
10617
  // src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
10593
10618
  import { BarChart as BarChart4 } from "@mantine/charts";
10594
- import { Group as Group20, Paper as Paper16, Text as Text18, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
10619
+ import { Group as Group21, Paper as Paper16, Text as Text18, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
10595
10620
  import { Fragment as Fragment16, jsx as jsx121, jsxs as jsxs73 } from "react/jsx-runtime";
10596
10621
 
10597
10622
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
10598
10623
  import { BarChart as BarChart5 } from "@mantine/charts";
10599
- import { Group as Group21, Paper as Paper17, Text as Text19, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
10624
+ import { Group as Group22, Paper as Paper17, Text as Text19, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
10600
10625
  import { jsx as jsx122, jsxs as jsxs74 } from "react/jsx-runtime";
10601
10626
 
10602
10627
  // src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
10603
10628
  import { BarChart as BarChart6 } from "@mantine/charts";
10604
- import { Group as Group22, Paper as Paper18, Text as Text20, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
10629
+ import { Group as Group23, Paper as Paper18, Text as Text20, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
10605
10630
  import { jsx as jsx123, jsxs as jsxs75 } from "react/jsx-runtime";
10606
10631
 
10607
10632
  // src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
10608
10633
  import { LineChart } from "@mantine/charts";
10609
- import { Group as Group23, Paper as Paper19, Text as Text21 } from "@mantine/core";
10634
+ import { Group as Group24, Paper as Paper19, Text as Text21 } from "@mantine/core";
10610
10635
  import { Fragment as Fragment17, jsx as jsx124, jsxs as jsxs76 } from "react/jsx-runtime";
10611
10636
 
10612
10637
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
10613
10638
  import { LineChart as LineChart2 } from "@mantine/charts";
10614
- import { Group as Group24, Paper as Paper20, Text as Text22 } from "@mantine/core";
10639
+ import { Group as Group25, Paper as Paper20, Text as Text22 } from "@mantine/core";
10615
10640
  import { Fragment as Fragment18, jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
10616
10641
 
10617
10642
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
10618
10643
  import { LineChart as LineChart3 } from "@mantine/charts";
10619
- import { Group as Group25, Paper as Paper21, Text as Text23 } from "@mantine/core";
10644
+ import { Group as Group26, Paper as Paper21, Text as Text23 } from "@mantine/core";
10620
10645
  import { Fragment as Fragment19, jsx as jsx126, jsxs as jsxs78 } from "react/jsx-runtime";
10621
10646
 
10622
10647
  // src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
10623
10648
  import { LineChart as LineChart4 } from "@mantine/charts";
10624
- import { Group as Group26, Paper as Paper22, Text as Text24 } from "@mantine/core";
10649
+ import { Group as Group27, Paper as Paper22, Text as Text24 } from "@mantine/core";
10625
10650
  import { Fragment as Fragment20, jsx as jsx127, jsxs as jsxs79 } from "react/jsx-runtime";
10626
10651
 
10627
10652
  // src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
@@ -11203,7 +11228,7 @@ import {
11203
11228
  Center as Center6,
11204
11229
  Checkbox as Checkbox5,
11205
11230
  Flex as Flex7,
11206
- Group as Group27,
11231
+ Group as Group28,
11207
11232
  Paper as Paper23,
11208
11233
  PasswordInput as PasswordInput2,
11209
11234
  Text as Text27,
@@ -11304,7 +11329,7 @@ function F_authenticate_Login({
11304
11329
  withAsterisk: true
11305
11330
  })
11306
11331
  ),
11307
- /* @__PURE__ */ jsxs82(Group27, { justify: "space-between", children: [
11332
+ /* @__PURE__ */ jsxs82(Group28, { justify: "space-between", children: [
11308
11333
  /* @__PURE__ */ jsx132(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
11309
11334
  /* @__PURE__ */ jsx132(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
11310
11335
  ] }),
@@ -64,7 +64,7 @@ import {
64
64
  useS_BasicAppShell,
65
65
  useS_ButtonImport,
66
66
  utils_layout_getItemsWithoutLinks
67
- } from "../chunk-2TW6D5FQ.mjs";
67
+ } from "../chunk-ZF3GSXXV.mjs";
68
68
  import "../chunk-QAWKASVG.mjs";
69
69
  import "../chunk-Y3YGC5IH.mjs";
70
70
  import "../chunk-CJDXLINF.mjs";
@@ -65,7 +65,7 @@ import {
65
65
  useS_core60524,
66
66
  useS_core83092,
67
67
  utils_core83092_mergePage
68
- } from "../chunk-2TW6D5FQ.mjs";
68
+ } from "../chunk-ZF3GSXXV.mjs";
69
69
  import "../chunk-QAWKASVG.mjs";
70
70
  import "../chunk-Y3YGC5IH.mjs";
71
71
  import "../chunk-CJDXLINF.mjs";
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.113",
25
+ "version": "0.1.114",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"