aq-fe-framework 0.1.138 → 0.1.139
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.
- package/dist/{chunk-7U5EGTYK.mjs → chunk-2TDR7DML.mjs} +11 -17
- package/dist/{chunk-KI5V7QJP.mjs → chunk-Z6OQG54Q.mjs} +1 -1
- package/dist/components/index.d.mts +3 -2
- package/dist/components/index.mjs +3 -3
- package/dist/hooks/index.mjs +1 -1
- package/dist/modules-features/index.mjs +3 -3
- package/package.json +1 -1
@@ -1,10 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
baseAxios_default,
|
3
3
|
useQ_AQ_GetAQModule
|
4
|
-
} from "./chunk-
|
5
|
-
import {
|
6
|
-
createGenericStore
|
7
|
-
} from "./chunk-Y3YGC5IH.mjs";
|
4
|
+
} from "./chunk-Z6OQG54Q.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,
|
@@ -6746,7 +6746,7 @@ function AQCard({
|
|
6746
6746
|
}
|
6747
6747
|
|
6748
6748
|
// src/components/DataDisplay/CardInformation/MyCardInformation.tsx
|
6749
|
-
import { Box as Box2,
|
6749
|
+
import { Box as Box2, Flex as Flex3, Group as Group9, Paper as Paper6, Text as Text8 } from "@mantine/core";
|
6750
6750
|
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
6751
6751
|
import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
6752
6752
|
function MyCardInformation({
|
@@ -6754,8 +6754,9 @@ function MyCardInformation({
|
|
6754
6754
|
value,
|
6755
6755
|
unit = "",
|
6756
6756
|
description,
|
6757
|
-
|
6758
|
-
diff = 0
|
6757
|
+
icon,
|
6758
|
+
diff = 0,
|
6759
|
+
extraControl
|
6759
6760
|
}) {
|
6760
6761
|
return /* @__PURE__ */ jsxs25(
|
6761
6762
|
Paper6,
|
@@ -6783,7 +6784,7 @@ function MyCardInformation({
|
|
6783
6784
|
/* @__PURE__ */ jsx46("strong", { children: unit })
|
6784
6785
|
] })
|
6785
6786
|
] }),
|
6786
|
-
/* @__PURE__ */ jsx46(Box2, { children:
|
6787
|
+
/* @__PURE__ */ jsx46(Box2, { children: icon })
|
6787
6788
|
] }),
|
6788
6789
|
/* @__PURE__ */ jsxs25(
|
6789
6790
|
Group9,
|
@@ -6821,14 +6822,7 @@ function MyCardInformation({
|
|
6821
6822
|
),
|
6822
6823
|
/* @__PURE__ */ jsxs25(Group9, { justify: "space-between", children: [
|
6823
6824
|
/* @__PURE__ */ jsx46(Text8, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
6824
|
-
|
6825
|
-
Button13,
|
6826
|
-
{
|
6827
|
-
variant: "light",
|
6828
|
-
size: "xs",
|
6829
|
-
children: "Xem chi ti\u1EBFt"
|
6830
|
-
}
|
6831
|
-
)
|
6825
|
+
extraControl
|
6832
6826
|
] })
|
6833
6827
|
]
|
6834
6828
|
},
|
@@ -11356,7 +11350,7 @@ import { useRouter as useRouter4 } from "next/navigation";
|
|
11356
11350
|
// src/modules-features/authenticate/useS_authenticate.ts
|
11357
11351
|
var useStore6 = createGenericStore({
|
11358
11352
|
initialState: { token: "" },
|
11359
|
-
storageKey: "
|
11353
|
+
storageKey: "useS_authenticate"
|
11360
11354
|
});
|
11361
11355
|
function useS_authenticate() {
|
11362
11356
|
const store = useStore6();
|
@@ -6,7 +6,7 @@ var baseAxios = axios.create({
|
|
6
6
|
baseAxios.interceptors.request.use(
|
7
7
|
(config) => {
|
8
8
|
var _a, _b;
|
9
|
-
const tokenData = localStorage.getItem("
|
9
|
+
const tokenData = localStorage.getItem("useS_authenticate");
|
10
10
|
const state = JSON.parse(tokenData);
|
11
11
|
const token = (_b = (_a = state == null ? void 0 : state.state) == null ? void 0 : _a.state) == null ? void 0 : _b.token;
|
12
12
|
if (token) {
|
@@ -281,10 +281,11 @@ interface MyCardInformationProps {
|
|
281
281
|
value?: string;
|
282
282
|
unit?: string;
|
283
283
|
description?: string;
|
284
|
-
|
284
|
+
icon?: ReactNode;
|
285
285
|
diff?: number;
|
286
|
+
extraControl?: ReactNode;
|
286
287
|
}
|
287
|
-
declare function MyCardInformation({ title, value, unit, description,
|
288
|
+
declare function MyCardInformation({ title, value, unit, description, icon, diff, extraControl }: MyCardInformationProps): react_jsx_runtime.JSX.Element;
|
288
289
|
|
289
290
|
type FormatFunction<TData extends MRT_RowData> = (value: any) => any;
|
290
291
|
interface IDataTable$1<TData extends MRT_RowData> extends MRT_TableOptions<TData> {
|
@@ -66,11 +66,11 @@ import {
|
|
66
66
|
useS_BasicAppShell,
|
67
67
|
useS_ButtonImport,
|
68
68
|
utils_layout_getItemsWithoutLinks
|
69
|
-
} from "../chunk-
|
70
|
-
import "../chunk-
|
71
|
-
import "../chunk-Y3YGC5IH.mjs";
|
69
|
+
} from "../chunk-2TDR7DML.mjs";
|
70
|
+
import "../chunk-Z6OQG54Q.mjs";
|
72
71
|
import "../chunk-CJDXLINF.mjs";
|
73
72
|
import "../chunk-7ZCOFATU.mjs";
|
73
|
+
import "../chunk-Y3YGC5IH.mjs";
|
74
74
|
import "../chunk-FWCSY2DS.mjs";
|
75
75
|
export {
|
76
76
|
AQButtonCreateByImportFile,
|
package/dist/hooks/index.mjs
CHANGED
@@ -65,11 +65,11 @@ import {
|
|
65
65
|
useS_core60524,
|
66
66
|
useS_core83092,
|
67
67
|
utils_core83092_mergePage
|
68
|
-
} from "../chunk-
|
69
|
-
import "../chunk-
|
70
|
-
import "../chunk-Y3YGC5IH.mjs";
|
68
|
+
} from "../chunk-2TDR7DML.mjs";
|
69
|
+
import "../chunk-Z6OQG54Q.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
75
|
F_Authenticate_Login,
|