aq-fe-framework 0.1.229 → 0.1.230
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/hooks/index.d.mts
CHANGED
@@ -20,7 +20,7 @@ declare function createBaseApi<T>(baseUrl: string, axiosInstance: AxiosInstance)
|
|
20
20
|
};
|
21
21
|
|
22
22
|
declare const useLoadAxiosConfig: ({ axiosInstance }: {
|
23
|
-
axiosInstance
|
23
|
+
axiosInstance: AxiosInstance;
|
24
24
|
}) => void;
|
25
25
|
|
26
26
|
interface MyReactMutationProps<IReq, IRes> {
|
@@ -1372,7 +1372,6 @@ function F_core35923() {
|
|
1372
1372
|
import { Grid as Grid2, Paper as Paper4, ScrollArea as ScrollArea2 } from "@mantine/core";
|
1373
1373
|
|
1374
1374
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
1375
|
-
import { Container } from "@mantine/core";
|
1376
1375
|
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
1377
1376
|
import { useEffect, useMemo as useMemo6, useState } from "react";
|
1378
1377
|
|
@@ -1458,7 +1457,7 @@ function F_core38677_ReadUser() {
|
|
1458
1457
|
}, [query.data]);
|
1459
1458
|
if (query.isLoading) return "Loading...";
|
1460
1459
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
1461
|
-
return /* @__PURE__ */ jsx27(
|
1460
|
+
return /* @__PURE__ */ jsx27(
|
1462
1461
|
MyDataTable,
|
1463
1462
|
{
|
1464
1463
|
columns,
|
@@ -1476,7 +1475,7 @@ function F_core38677_ReadUser() {
|
|
1476
1475
|
}),
|
1477
1476
|
state: rowSelection
|
1478
1477
|
}
|
1479
|
-
)
|
1478
|
+
);
|
1480
1479
|
}
|
1481
1480
|
function useQ_Account_GetAdminAccount() {
|
1482
1481
|
const query = useQuery7({
|
@@ -1839,9 +1838,9 @@ function useGetUserPermission() {
|
|
1839
1838
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
1840
1839
|
import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
|
1841
1840
|
function F_core38677({ menuData: menuData2 }) {
|
1842
|
-
return /* @__PURE__ */ jsxs22(Grid2, {
|
1843
|
-
/* @__PURE__ */ jsx30(Grid2.Col, { span:
|
1844
|
-
/* @__PURE__ */ jsx30(Grid2.Col, { span:
|
1841
|
+
return /* @__PURE__ */ jsxs22(Grid2, { children: [
|
1842
|
+
/* @__PURE__ */ jsx30(Grid2.Col, { span: { base: 12, sm: 5 }, children: /* @__PURE__ */ jsx30(ScrollArea2.Autosize, { children: /* @__PURE__ */ jsx30(F_core38677_ReadUser, {}) }) }),
|
1843
|
+
/* @__PURE__ */ jsx30(Grid2.Col, { span: { base: 12, sm: 7 }, children: /* @__PURE__ */ jsxs22(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
1845
1844
|
/* @__PURE__ */ jsx30(ScrollArea2.Autosize, { h: "100%", children: /* @__PURE__ */ jsx30(Paper4, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx30(F_core38677_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
1846
1845
|
/* @__PURE__ */ jsx30(F_core38677_Save, {})
|
1847
1846
|
] }) })
|
@@ -3113,7 +3112,6 @@ function F_core76318({ SecurityTypeId }) {
|
|
3113
3112
|
import { Grid as Grid4, Paper as Paper6, ScrollArea as ScrollArea4 } from "@mantine/core";
|
3114
3113
|
|
3115
3114
|
// src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
|
3116
|
-
import { Container as Container2 } from "@mantine/core";
|
3117
3115
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
3118
3116
|
import { useEffect as useEffect8, useMemo as useMemo13, useState as useState6 } from "react";
|
3119
3117
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
@@ -3125,8 +3123,7 @@ function F_core83092_ReadUser() {
|
|
3125
3123
|
() => [
|
3126
3124
|
{
|
3127
3125
|
header: "H\u1ECD v\xE0 t\xEAn",
|
3128
|
-
accessorKey: "fullName"
|
3129
|
-
size: 60
|
3126
|
+
accessorKey: "fullName"
|
3130
3127
|
},
|
3131
3128
|
{
|
3132
3129
|
header: "Email",
|
@@ -3149,7 +3146,7 @@ function F_core83092_ReadUser() {
|
|
3149
3146
|
}, [query.data]);
|
3150
3147
|
if (query.isLoading) return "Loading...";
|
3151
3148
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
3152
|
-
return /* @__PURE__ */ jsx58(
|
3149
|
+
return /* @__PURE__ */ jsx58(
|
3153
3150
|
MyDataTable,
|
3154
3151
|
{
|
3155
3152
|
columns,
|
@@ -3162,12 +3159,12 @@ function F_core83092_ReadUser() {
|
|
3162
3159
|
onClick: () => handleRowClick(row.id),
|
3163
3160
|
style: {
|
3164
3161
|
cursor: "pointer",
|
3165
|
-
backgroundColor: rowSelection[row.id] ? "
|
3162
|
+
backgroundColor: rowSelection[row.id] ? "var(--mantine-color-blue-light)" : "transparent"
|
3166
3163
|
}
|
3167
3164
|
}),
|
3168
3165
|
state: rowSelection
|
3169
3166
|
}
|
3170
|
-
)
|
3167
|
+
);
|
3171
3168
|
}
|
3172
3169
|
function useQ_core83092_Account_GetAdminAccount() {
|
3173
3170
|
const query = useQuery15({
|
@@ -3445,9 +3442,9 @@ function useGetUserPermission2({ menuData: menuData2 }) {
|
|
3445
3442
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
3446
3443
|
import { jsx as jsx61, jsxs as jsxs39 } from "react/jsx-runtime";
|
3447
3444
|
function F_core83092({ menuData: menuData2 }) {
|
3448
|
-
return /* @__PURE__ */ jsxs39(Grid4, {
|
3449
|
-
/* @__PURE__ */ jsx61(Grid4.Col, { span:
|
3450
|
-
/* @__PURE__ */ jsx61(Grid4.Col, { span:
|
3445
|
+
return /* @__PURE__ */ jsxs39(Grid4, { children: [
|
3446
|
+
/* @__PURE__ */ jsx61(Grid4.Col, { span: { base: 12, sm: 5 }, children: /* @__PURE__ */ jsx61(ScrollArea4.Autosize, { children: /* @__PURE__ */ jsx61(F_core83092_ReadUser, {}) }) }),
|
3447
|
+
/* @__PURE__ */ jsx61(Grid4.Col, { span: { base: 12, sm: 7 }, children: /* @__PURE__ */ jsxs39(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
3451
3448
|
/* @__PURE__ */ jsx61(ScrollArea4.Autosize, { h: "100%", children: /* @__PURE__ */ jsx61(Paper6, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx61(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
3452
3449
|
/* @__PURE__ */ jsx61(F_core83092_Save, {})
|
3453
3450
|
] }) })
|