aq-fe-framework 0.1.807 → 0.1.809

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.
@@ -3214,7 +3214,7 @@ function MyButtonPrintPDF2(_a) {
3214
3214
  }
3215
3215
 
3216
3216
  // src/components/Layouts/HtmlWrapper/MyHtmlWrapper.tsx
3217
- import { ScrollArea as ScrollArea4, Typography } from "@mantine/core";
3217
+ import { Typography } from "@mantine/core";
3218
3218
  import pako from "pako";
3219
3219
  import { jsx as jsx61 } from "react/jsx-runtime";
3220
3220
  function MyHtmlWrapper(_a) {
@@ -3225,11 +3225,13 @@ function MyHtmlWrapper(_a) {
3225
3225
  const cleanedHtml = decompressedData == null ? void 0 : decompressedData.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
3226
3226
  return cleanedHtml.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
3227
3227
  };
3228
- return /* @__PURE__ */ jsx61(ScrollArea4.Autosize, { mah, children: /* @__PURE__ */ jsx61(
3229
- Typography,
3230
- __spreadProps(__spreadValues({}, rest), {
3231
- dangerouslySetInnerHTML: { __html: zip ? extractHtmlFromZip() : html }
3232
- })
3228
+ return /* @__PURE__ */ jsx61(Typography, { children: /* @__PURE__ */ jsx61(
3229
+ "div",
3230
+ {
3231
+ dangerouslySetInnerHTML: {
3232
+ __html: zip ? extractHtmlFromZip() : html
3233
+ }
3234
+ }
3233
3235
  ) });
3234
3236
  }
3235
3237
 
@@ -8674,7 +8676,7 @@ function MyTextArea(_a) {
8674
8676
  }
8675
8677
 
8676
8678
  // src/components/Inputs/TextEditor/MyTextEditor.tsx
8677
- import { Input as Input2, ScrollArea as ScrollArea5 } from "@mantine/core";
8679
+ import { Input as Input2, ScrollArea as ScrollArea4 } from "@mantine/core";
8678
8680
  import { Link as Link3, RichTextEditor as RichTextEditor2 } from "@mantine/tiptap";
8679
8681
  import Highlight4 from "@tiptap/extension-highlight";
8680
8682
  import Image2 from "@tiptap/extension-image";
@@ -8828,7 +8830,7 @@ function MyTextEditor(_a) {
8828
8830
  ] })
8829
8831
  ] }),
8830
8832
  /* @__PURE__ */ jsx78(
8831
- ScrollArea5.Autosize,
8833
+ ScrollArea4.Autosize,
8832
8834
  {
8833
8835
  onMouseDown: () => {
8834
8836
  editor == null ? void 0 : editor.commands.focus();
@@ -8855,7 +8857,7 @@ import {
8855
8857
  Divider as Divider3,
8856
8858
  Group as Group35,
8857
8859
  Image as Image4,
8858
- ScrollArea as ScrollArea7,
8860
+ ScrollArea as ScrollArea6,
8859
8861
  Text as Text26,
8860
8862
  Tooltip as Tooltip7
8861
8863
  } from "@mantine/core";
@@ -9588,7 +9590,7 @@ function Permission_SaveMenuPermission({
9588
9590
  import { useEffect as useEffect17, useState as useState13 } from "react";
9589
9591
 
9590
9592
  // src/module/Permission/usecase/UseCase_PermissionViewCheckTable.tsx
9591
- import { Center as Center6, Checkbox as Checkbox6, Flex as Flex7, Paper as Paper10, ScrollArea as ScrollArea6, Skeleton, Stack as Stack4, Table as Table3, Text as Text22 } from "@mantine/core";
9593
+ import { Center as Center6, Checkbox as Checkbox6, Flex as Flex7, Paper as Paper10, ScrollArea as ScrollArea5, Skeleton, Stack as Stack4, Table as Table3, Text as Text22 } from "@mantine/core";
9592
9594
  import { IconEye, IconFileExport as IconFileExport3, IconPencil as IconPencil3, IconPlus as IconPlus8, IconPrinter as IconPrinter6, IconTrash as IconTrash8 } from "@tabler/icons-react";
9593
9595
  import React3 from "react";
9594
9596
  import { jsx as jsx87, jsxs as jsxs45 } from "react/jsx-runtime";
@@ -9641,7 +9643,7 @@ function UseCase_PermissionViewCheckTable({ value = [], onChange, isLoading }) {
9641
9643
  };
9642
9644
  const duplicateIds = getDuplicateMenuIds(value);
9643
9645
  const groupedMenus = groupMenusByTitle(value);
9644
- return /* @__PURE__ */ jsx87(Paper10, { children: /* @__PURE__ */ jsx87(ScrollArea6, { children: isLoading ? /* @__PURE__ */ jsxs45(Table3, { children: [
9646
+ return /* @__PURE__ */ jsx87(Paper10, { children: /* @__PURE__ */ jsx87(ScrollArea5, { children: isLoading ? /* @__PURE__ */ jsxs45(Table3, { children: [
9645
9647
  /* @__PURE__ */ jsx87(Table3.Thead, { children: /* @__PURE__ */ jsxs45(Table3.Tr, { children: [
9646
9648
  /* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsx87(Skeleton, { height: 12, width: "80%" }) }),
9647
9649
  Array.from({ length: permissionKeys.length }).map((_5, idx) => /* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsx87(Skeleton, { height: 12, width: 40 }) }, idx))
@@ -17418,7 +17420,7 @@ function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect, i
17418
17420
  var _a, _b;
17419
17421
  return /* @__PURE__ */ jsxs132(AppShell.Navbar, { children: [
17420
17422
  /* @__PURE__ */ jsx240(MyAppSpotlight, { menu: filteredMenu }),
17421
- /* @__PURE__ */ jsx240(AppShell.Section, { grow: true, component: ScrollArea7, p: 5, children: /* @__PURE__ */ jsx240(RenderNavLinks, { items: filteredMenu }) }),
17423
+ /* @__PURE__ */ jsx240(AppShell.Section, { grow: true, component: ScrollArea6, p: 5, children: /* @__PURE__ */ jsx240(RenderNavLinks, { items: filteredMenu }) }),
17422
17424
  /* @__PURE__ */ jsxs132(AppShell.Section, { px: "md", children: [
17423
17425
  /* @__PURE__ */ jsx240(Divider3, {}),
17424
17426
  /* @__PURE__ */ jsx240(Feat_Authenticate_Logout, { redirectURL: logoutRedirect }),
@@ -17480,7 +17482,7 @@ import {
17480
17482
  Drawer,
17481
17483
  Group as Group36,
17482
17484
  Image as Image5,
17483
- ScrollArea as ScrollArea8,
17485
+ ScrollArea as ScrollArea7,
17484
17486
  Text as Text27,
17485
17487
  TextInput as TextInput12,
17486
17488
  ThemeIcon as ThemeIcon3,
@@ -17581,7 +17583,7 @@ function HeaderMegaMenu({ children, menus }) {
17581
17583
  title: "Navigation",
17582
17584
  hiddenFrom: "sm",
17583
17585
  zIndex: 1e6,
17584
- children: /* @__PURE__ */ jsxs133(ScrollArea8, { h: "calc(100vh - 80px", mx: "-md", children: [
17586
+ children: /* @__PURE__ */ jsxs133(ScrollArea7, { h: "calc(100vh - 80px", mx: "-md", children: [
17585
17587
  /* @__PURE__ */ jsx242(Divider4, { my: "sm" }),
17586
17588
  /* @__PURE__ */ jsx242(MyFlexColumn2, { h: "100%", gap: 0, children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx242(Button25, { component: Link6, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) }),
17587
17589
  /* @__PURE__ */ jsx242(Divider4, { my: "sm" })
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default, { ReactNode, ComponentProps } from 'react';
3
3
  import { type_action, type_mantineSize } from '../types/index.mjs';
4
- import { ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, MantineSize, InputWrapperProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyProps, TabsProps, SkeletonProps } from '@mantine/core';
4
+ import { ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, MantineSize, InputWrapperProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
5
5
  import { AxiosResponse } from 'axios';
6
6
  import { M as MyApiResponse } from '../createBaseApi-BlBEF93G.mjs';
7
7
  import { useDisclosure, useListState } from '@mantine/hooks';
@@ -259,6 +259,10 @@ interface IMyButtonViewPDF {
259
259
  isActionIcon?: boolean;
260
260
  filePath?: string;
261
261
  }
262
+ /**
263
+ * @deprecated Component này không xài nữa nha mấy ní
264
+ * Vui lòng dùng `MyButtonViewFileAPI` thay thế.
265
+ */
262
266
  declare function MyButtonViewPDF({ id, modalSize, label, src, isActionIcon, filePath, }: IMyButtonViewPDF): react_jsx_runtime.JSX.Element;
263
267
 
264
268
  declare function MyCalendar(): react_jsx_runtime.JSX.Element;
@@ -460,7 +464,7 @@ declare function useHeaderMegaMenuStore(): {
460
464
  resetState: () => void;
461
465
  };
462
466
 
463
- interface HtmlWrapper extends TypographyProps {
467
+ interface HtmlWrapper extends TypographyStylesProviderProps {
464
468
  html: string;
465
469
  mah?: number | string;
466
470
  zip?: boolean;
@@ -70,7 +70,7 @@ import {
70
70
  useHeaderMegaMenuStore,
71
71
  useS_ButtonImport,
72
72
  useStore_BasicAppShell
73
- } from "../chunk-FR64TLWR.mjs";
73
+ } from "../chunk-4OFNNM4J.mjs";
74
74
  import "../chunk-SUH3FFFV.mjs";
75
75
  import "../chunk-RJH5TVHS.mjs";
76
76
  import "../chunk-7NNLZDND.mjs";
@@ -79,8 +79,8 @@ import "../chunk-QSWIVDXC.mjs";
79
79
  import "../chunk-KAC7JMQB.mjs";
80
80
  import "../chunk-K6S7R6LU.mjs";
81
81
  import "../chunk-NSBIYOKX.mjs";
82
- import "../chunk-WZ6PXGGC.mjs";
83
82
  import "../chunk-7ZCOFATU.mjs";
83
+ import "../chunk-WZ6PXGGC.mjs";
84
84
  import "../chunk-FWCSY2DS.mjs";
85
85
  export {
86
86
  AQButtonCreateByImportFile,
@@ -29,7 +29,7 @@ import {
29
29
  MyStatsCard,
30
30
  MyTextInput2 as MyTextInput,
31
31
  MyWeeklySessionSchedulerPicker
32
- } from "../chunk-FR64TLWR.mjs";
32
+ } from "../chunk-4OFNNM4J.mjs";
33
33
  import "../chunk-SUH3FFFV.mjs";
34
34
  import "../chunk-RJH5TVHS.mjs";
35
35
  import "../chunk-7NNLZDND.mjs";
@@ -38,8 +38,8 @@ import "../chunk-QSWIVDXC.mjs";
38
38
  import "../chunk-KAC7JMQB.mjs";
39
39
  import "../chunk-K6S7R6LU.mjs";
40
40
  import "../chunk-NSBIYOKX.mjs";
41
- import "../chunk-WZ6PXGGC.mjs";
42
41
  import "../chunk-7ZCOFATU.mjs";
42
+ import "../chunk-WZ6PXGGC.mjs";
43
43
  import "../chunk-FWCSY2DS.mjs";
44
44
  export {
45
45
  CustomAutocomplete,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-FR64TLWR.mjs";
3
+ } from "../chunk-4OFNNM4J.mjs";
4
4
  import "../chunk-SUH3FFFV.mjs";
5
5
  import "../chunk-RJH5TVHS.mjs";
6
6
  import "../chunk-7NNLZDND.mjs";
@@ -11,8 +11,8 @@ import "../chunk-K6S7R6LU.mjs";
11
11
  import {
12
12
  useMyReactMutation
13
13
  } from "../chunk-NSBIYOKX.mjs";
14
- import "../chunk-WZ6PXGGC.mjs";
15
14
  import "../chunk-7ZCOFATU.mjs";
15
+ import "../chunk-WZ6PXGGC.mjs";
16
16
  import {
17
17
  __objRest,
18
18
  __spreadValues
@@ -13,8 +13,8 @@ import {
13
13
  useMyRouter,
14
14
  useQ_AQ_GetAQModule
15
15
  } from "../chunk-NSBIYOKX.mjs";
16
- import "../chunk-WZ6PXGGC.mjs";
17
16
  import "../chunk-7ZCOFATU.mjs";
17
+ import "../chunk-WZ6PXGGC.mjs";
18
18
  import "../chunk-FWCSY2DS.mjs";
19
19
  export {
20
20
  createBaseApi,
@@ -113,7 +113,7 @@ import {
113
113
  MailTemplateDeleteButton,
114
114
  useS_moduleConfig,
115
115
  useStore_Authenticate
116
- } from "../chunk-FR64TLWR.mjs";
116
+ } from "../chunk-4OFNNM4J.mjs";
117
117
  import "../chunk-SUH3FFFV.mjs";
118
118
  import "../chunk-RJH5TVHS.mjs";
119
119
  import "../chunk-7NNLZDND.mjs";
@@ -122,8 +122,8 @@ import "../chunk-QSWIVDXC.mjs";
122
122
  import "../chunk-KAC7JMQB.mjs";
123
123
  import "../chunk-K6S7R6LU.mjs";
124
124
  import "../chunk-NSBIYOKX.mjs";
125
- import "../chunk-WZ6PXGGC.mjs";
126
125
  import "../chunk-7ZCOFATU.mjs";
126
+ import "../chunk-WZ6PXGGC.mjs";
127
127
  import "../chunk-FWCSY2DS.mjs";
128
128
  export {
129
129
  AcademicYearsCreate,
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-JNYSYNJY.mjs";
4
4
  import {
5
5
  MySelect
6
- } from "../chunk-FR64TLWR.mjs";
6
+ } from "../chunk-4OFNNM4J.mjs";
7
7
  import "../chunk-SUH3FFFV.mjs";
8
8
  import "../chunk-RJH5TVHS.mjs";
9
9
  import "../chunk-7NNLZDND.mjs";
@@ -16,8 +16,8 @@ import {
16
16
  } from "../chunk-U42DQAY7.mjs";
17
17
  import "../chunk-K6S7R6LU.mjs";
18
18
  import "../chunk-NSBIYOKX.mjs";
19
- import "../chunk-WZ6PXGGC.mjs";
20
19
  import "../chunk-7ZCOFATU.mjs";
20
+ import "../chunk-WZ6PXGGC.mjs";
21
21
  import {
22
22
  __objRest,
23
23
  __spreadValues
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "types": "./dist/types/index.d.mts"
59
59
  }
60
60
  },
61
- "version": "0.1.807",
61
+ "version": "0.1.809",
62
62
  "private": false,
63
63
  "files": [
64
64
  "dist"