aq-fe-framework 0.1.721 → 0.1.723
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.
|
@@ -8965,9 +8965,14 @@ var service_account = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER3
|
|
|
8965
8965
|
signIn: (values) => {
|
|
8966
8966
|
return baseAxios_default.post(CONTROLLER3 + `/SignIn`, { values });
|
|
8967
8967
|
},
|
|
8968
|
-
getAdminAccount: (
|
|
8968
|
+
getAdminAccount: (params = {}) => {
|
|
8969
|
+
var _a, _b;
|
|
8969
8970
|
return baseAxios_default.get(CONTROLLER3 + `/GetAdminAccount`, {
|
|
8970
|
-
params:
|
|
8971
|
+
params: {
|
|
8972
|
+
pageNumber: (_a = params.paging) == null ? void 0 : _a.pageNumber,
|
|
8973
|
+
pageSize: (_b = params.paging) == null ? void 0 : _b.pageSize,
|
|
8974
|
+
name: params.name
|
|
8975
|
+
}
|
|
8971
8976
|
});
|
|
8972
8977
|
},
|
|
8973
8978
|
syncAQDataLecturer: () => {
|
|
@@ -8976,7 +8981,9 @@ var service_account = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER3
|
|
|
8976
8981
|
});
|
|
8977
8982
|
|
|
8978
8983
|
// src/module/Account/adapter/Adapter_AccountTable.tsx
|
|
8984
|
+
import { TextInput as TextInput4 } from "@mantine/core";
|
|
8979
8985
|
import { useDebouncedValue } from "@mantine/hooks";
|
|
8986
|
+
import { IconSearch as IconSearch3 } from "@tabler/icons-react";
|
|
8980
8987
|
import { useEffect as useEffect15, useMemo as useMemo7, useState as useState11 } from "react";
|
|
8981
8988
|
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
8982
8989
|
function Account_Table(_a) {
|
|
@@ -8992,8 +8999,11 @@ function Account_Table(_a) {
|
|
|
8992
8999
|
const query = useMyReactQuery({
|
|
8993
9000
|
queryKey: ["accounts", paggingState[0], globalFilter],
|
|
8994
9001
|
axiosFn: () => service_account.getAdminAccount({
|
|
8995
|
-
|
|
8996
|
-
|
|
9002
|
+
paging: {
|
|
9003
|
+
pageNumber: paggingState[0].pageIndex + 1,
|
|
9004
|
+
pageSize: paggingState[0].pageSize
|
|
9005
|
+
},
|
|
9006
|
+
name: globalFilter
|
|
8997
9007
|
}),
|
|
8998
9008
|
options: {
|
|
8999
9009
|
refetchOnWindowFocus: false
|
|
@@ -9020,9 +9030,14 @@ function Account_Table(_a) {
|
|
|
9020
9030
|
if (!query.data) return;
|
|
9021
9031
|
(_c = rest.setIdSelectionOne) == null ? void 0 : _c.call(rest, (_b = (_a3 = query.data[0]) == null ? void 0 : _a3.id) == null ? void 0 : _b.toString());
|
|
9022
9032
|
}, [query.data]);
|
|
9033
|
+
useEffect15(() => {
|
|
9034
|
+
setGlobalFilter(debouncedSearch);
|
|
9035
|
+
paggingState[1]({ pageIndex: 0, pageSize: paggingState[0].pageSize });
|
|
9036
|
+
}, [debouncedSearch]);
|
|
9023
9037
|
return /* @__PURE__ */ jsx81(
|
|
9024
9038
|
MyDataTable,
|
|
9025
9039
|
__spreadValues({
|
|
9040
|
+
enableFilters: false,
|
|
9026
9041
|
enableRowNumbers: false,
|
|
9027
9042
|
columns,
|
|
9028
9043
|
pagination: paggingState[0],
|
|
@@ -9039,7 +9054,17 @@ function Account_Table(_a) {
|
|
|
9039
9054
|
modifiedWhen: item.modifiedWhen
|
|
9040
9055
|
}))) || [],
|
|
9041
9056
|
isLoading: query.isLoading,
|
|
9042
|
-
isError: query.isError
|
|
9057
|
+
isError: query.isError,
|
|
9058
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx81(
|
|
9059
|
+
TextInput4,
|
|
9060
|
+
{
|
|
9061
|
+
w: "250",
|
|
9062
|
+
placeholder: "T\xECm theo t\xE0i kho\u1EA3n ho\u1EB7c h\u1ECD t\xEAn...",
|
|
9063
|
+
leftSection: /* @__PURE__ */ jsx81(IconSearch3, { size: 16 }),
|
|
9064
|
+
value: searchInput,
|
|
9065
|
+
onChange: (e4) => setSearchInput(e4.currentTarget.value)
|
|
9066
|
+
}
|
|
9067
|
+
)
|
|
9043
9068
|
}, rest)
|
|
9044
9069
|
);
|
|
9045
9070
|
}
|
|
@@ -9719,9 +9744,9 @@ function Adapter_UserSyncFormEdusoftnet() {
|
|
|
9719
9744
|
}
|
|
9720
9745
|
|
|
9721
9746
|
// src/modules-features/admin/core/accountManagement/F_accountManagement_Read.tsx
|
|
9722
|
-
import { Badge as Badge5, Group as Group24, TextInput as
|
|
9747
|
+
import { Badge as Badge5, Group as Group24, TextInput as TextInput5 } from "@mantine/core";
|
|
9723
9748
|
import { useDebouncedValue as useDebouncedValue2 } from "@mantine/hooks";
|
|
9724
|
-
import { IconSearch as
|
|
9749
|
+
import { IconSearch as IconSearch4 } from "@tabler/icons-react";
|
|
9725
9750
|
import { useEffect as useEffect20, useMemo as useMemo9, useState as useState16 } from "react";
|
|
9726
9751
|
|
|
9727
9752
|
// src/modules-features/admin/core/accountManagement/F_accountManagement_Delete.tsx
|
|
@@ -9836,11 +9861,11 @@ function F_accountManagement_Read() {
|
|
|
9836
9861
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
9837
9862
|
return /* @__PURE__ */ jsxs49(Group24, { children: [
|
|
9838
9863
|
/* @__PURE__ */ jsx95(
|
|
9839
|
-
|
|
9864
|
+
TextInput5,
|
|
9840
9865
|
{
|
|
9841
9866
|
w: "250",
|
|
9842
9867
|
placeholder: "T\xECm theo t\xE0i kho\u1EA3n ho\u1EB7c h\u1ECD t\xEAn...",
|
|
9843
|
-
leftSection: /* @__PURE__ */ jsx95(
|
|
9868
|
+
leftSection: /* @__PURE__ */ jsx95(IconSearch4, { size: 16 }),
|
|
9844
9869
|
value: searchInput,
|
|
9845
9870
|
onChange: (e4) => setSearchInput(e4.currentTarget.value)
|
|
9846
9871
|
}
|
|
@@ -11825,7 +11850,7 @@ function F_core76318_Delete({
|
|
|
11825
11850
|
}
|
|
11826
11851
|
|
|
11827
11852
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
|
11828
|
-
import { FileInput as FileInput10, TextInput as
|
|
11853
|
+
import { FileInput as FileInput10, TextInput as TextInput6 } from "@mantine/core";
|
|
11829
11854
|
import { useForm as useForm22 } from "@mantine/form";
|
|
11830
11855
|
import { jsx as jsx146, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
11831
11856
|
function F_core76318_Update({ values }) {
|
|
@@ -11857,7 +11882,7 @@ function F_core76318_Update({ values }) {
|
|
|
11857
11882
|
},
|
|
11858
11883
|
children: [
|
|
11859
11884
|
/* @__PURE__ */ jsx146(
|
|
11860
|
-
|
|
11885
|
+
TextInput6,
|
|
11861
11886
|
__spreadValues({
|
|
11862
11887
|
withAsterisk: true,
|
|
11863
11888
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
|
@@ -11871,7 +11896,7 @@ function F_core76318_Update({ values }) {
|
|
|
11871
11896
|
}, form.getInputProps("promulgateDate"))
|
|
11872
11897
|
),
|
|
11873
11898
|
/* @__PURE__ */ jsx146(
|
|
11874
|
-
|
|
11899
|
+
TextInput6,
|
|
11875
11900
|
__spreadValues({
|
|
11876
11901
|
withAsterisk: true,
|
|
11877
11902
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
@@ -11961,7 +11986,7 @@ import { useForm as useForm23 } from "@mantine/form";
|
|
|
11961
11986
|
import { useEffect as useEffect23, useState as useState18 } from "react";
|
|
11962
11987
|
|
|
11963
11988
|
// src/modules-features/admin/core/departmentList/view/departmentCreateOrUpdate.tsx
|
|
11964
|
-
import { Textarea as Textarea5, TextInput as
|
|
11989
|
+
import { Textarea as Textarea5, TextInput as TextInput7 } from "@mantine/core";
|
|
11965
11990
|
import { jsx as jsx149, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
11966
11991
|
var type = {
|
|
11967
11992
|
1: "Khoa",
|
|
@@ -11998,7 +12023,7 @@ function DepartmentCreateOrUpdate({
|
|
|
11998
12023
|
onSubmit,
|
|
11999
12024
|
children: [
|
|
12000
12025
|
/* @__PURE__ */ jsx149(
|
|
12001
|
-
|
|
12026
|
+
TextInput7,
|
|
12002
12027
|
__spreadValues({
|
|
12003
12028
|
disabled: isUpdateMode,
|
|
12004
12029
|
label: "M\xE3 \u0111\u01A1n v\u1ECB",
|
|
@@ -12006,7 +12031,7 @@ function DepartmentCreateOrUpdate({
|
|
|
12006
12031
|
}, form.getInputProps("code"))
|
|
12007
12032
|
),
|
|
12008
12033
|
/* @__PURE__ */ jsx149(
|
|
12009
|
-
|
|
12034
|
+
TextInput7,
|
|
12010
12035
|
__spreadValues({
|
|
12011
12036
|
label: "T\xEAn \u0111\u01A1n v\u1ECB",
|
|
12012
12037
|
placeholder: "\u0110i\u1EC1n t\xEAn \u0111\u01A1n v\u1ECB"
|
|
@@ -14072,7 +14097,7 @@ function F_organizationPolicyDocs({ RegulationsTypeId }) {
|
|
|
14072
14097
|
}
|
|
14073
14098
|
|
|
14074
14099
|
// src/modules/PageContent/Usecase/Usecase_PageContentTable.tsx
|
|
14075
|
-
import { Button as Button20, Group as Group29, TextInput as
|
|
14100
|
+
import { Button as Button20, Group as Group29, TextInput as TextInput8 } from "@mantine/core";
|
|
14076
14101
|
import { useMemo as useMemo30 } from "react";
|
|
14077
14102
|
import { jsx as jsx187, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
14078
14103
|
function Usecase_PageContentTable(_a) {
|
|
@@ -14089,7 +14114,7 @@ function Usecase_PageContentTable(_a) {
|
|
|
14089
14114
|
Cell: ({ row }) => {
|
|
14090
14115
|
console.log(row.original);
|
|
14091
14116
|
return /* @__PURE__ */ jsx187(
|
|
14092
|
-
|
|
14117
|
+
TextInput8,
|
|
14093
14118
|
{
|
|
14094
14119
|
defaultValue: row.original.description,
|
|
14095
14120
|
onChange: (e4) => {
|
|
@@ -14103,7 +14128,7 @@ function Usecase_PageContentTable(_a) {
|
|
|
14103
14128
|
header: "Url video h\u01B0\u1EDBng d\u1EABn",
|
|
14104
14129
|
accessorKey: "videoLink",
|
|
14105
14130
|
Cell: ({ row }) => /* @__PURE__ */ jsx187(
|
|
14106
|
-
|
|
14131
|
+
TextInput8,
|
|
14107
14132
|
{
|
|
14108
14133
|
defaultValue: row.original.videoLink,
|
|
14109
14134
|
onChange: (e4) => {
|
|
@@ -15016,7 +15041,7 @@ function F_securityPolicyDocs_Delete({
|
|
|
15016
15041
|
}
|
|
15017
15042
|
|
|
15018
15043
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Update.tsx
|
|
15019
|
-
import { FileInput as FileInput12, TextInput as
|
|
15044
|
+
import { FileInput as FileInput12, TextInput as TextInput9 } from "@mantine/core";
|
|
15020
15045
|
import { useForm as useForm38 } from "@mantine/form";
|
|
15021
15046
|
import { jsx as jsx212, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
15022
15047
|
function F_securityPolicyDocs_Update({ values }) {
|
|
@@ -15049,7 +15074,7 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
|
15049
15074
|
},
|
|
15050
15075
|
children: [
|
|
15051
15076
|
/* @__PURE__ */ jsx212(
|
|
15052
|
-
|
|
15077
|
+
TextInput9,
|
|
15053
15078
|
__spreadValues({
|
|
15054
15079
|
withAsterisk: true,
|
|
15055
15080
|
readOnly: true,
|
|
@@ -15064,7 +15089,7 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
|
15064
15089
|
}, form.getInputProps("promulgateDate"))
|
|
15065
15090
|
),
|
|
15066
15091
|
/* @__PURE__ */ jsx212(
|
|
15067
|
-
|
|
15092
|
+
TextInput9,
|
|
15068
15093
|
__spreadValues({
|
|
15069
15094
|
withAsterisk: true,
|
|
15070
15095
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
@@ -15885,7 +15910,7 @@ import {
|
|
|
15885
15910
|
Paper as Paper15,
|
|
15886
15911
|
PasswordInput as PasswordInput4,
|
|
15887
15912
|
Text as Text24,
|
|
15888
|
-
TextInput as
|
|
15913
|
+
TextInput as TextInput10,
|
|
15889
15914
|
Title
|
|
15890
15915
|
} from "@mantine/core";
|
|
15891
15916
|
import { useForm as useForm45 } from "@mantine/form";
|
|
@@ -16006,7 +16031,7 @@ function Feat_Authenticate_Login({
|
|
|
16006
16031
|
] }),
|
|
16007
16032
|
/* @__PURE__ */ jsx229("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs125(MyFlexColumn2, { children: [
|
|
16008
16033
|
/* @__PURE__ */ jsx229(
|
|
16009
|
-
|
|
16034
|
+
TextInput10,
|
|
16010
16035
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
|
16011
16036
|
label: "T\xE0i kho\u1EA3n",
|
|
16012
16037
|
placeholder: "Nh\u1EADp t\xE0i kho\u1EA3n c\u1EE7a b\u1EA1n",
|
|
@@ -16599,7 +16624,7 @@ import {
|
|
|
16599
16624
|
Image as Image5,
|
|
16600
16625
|
ScrollArea as ScrollArea8,
|
|
16601
16626
|
Text as Text27,
|
|
16602
|
-
TextInput as
|
|
16627
|
+
TextInput as TextInput11,
|
|
16603
16628
|
ThemeIcon as ThemeIcon2,
|
|
16604
16629
|
UnstyledButton,
|
|
16605
16630
|
useMantineTheme
|
|
@@ -16612,7 +16637,7 @@ import {
|
|
|
16612
16637
|
IconCoin,
|
|
16613
16638
|
IconFingerprint,
|
|
16614
16639
|
IconNotification,
|
|
16615
|
-
IconSearch as
|
|
16640
|
+
IconSearch as IconSearch5
|
|
16616
16641
|
} from "@tabler/icons-react";
|
|
16617
16642
|
import Link6 from "next/link";
|
|
16618
16643
|
|
|
@@ -16682,7 +16707,7 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
16682
16707
|
/* @__PURE__ */ jsx236(Group34, { h: "100%", gap: 5, visibleFrom: "sm", children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx236(Button24, { component: Link6, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) })
|
|
16683
16708
|
] }),
|
|
16684
16709
|
/* @__PURE__ */ jsxs129(Group34, { children: [
|
|
16685
|
-
/* @__PURE__ */ jsx236(
|
|
16710
|
+
/* @__PURE__ */ jsx236(TextInput11, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx236(IconSearch5, {}), radius: "xl", w: "250px" }),
|
|
16686
16711
|
/* @__PURE__ */ jsx236(MySwitchTheme, {})
|
|
16687
16712
|
] }),
|
|
16688
16713
|
/* @__PURE__ */ jsx236(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
package/dist/core/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
MyStatsCard,
|
|
26
26
|
MyTextInput2 as MyTextInput,
|
|
27
27
|
MyWeeklySessionSchedulerPicker
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-RNXH6UCT.mjs";
|
|
29
29
|
import "../chunk-SUH3FFFV.mjs";
|
|
30
30
|
import "../chunk-2B2FKBKX.mjs";
|
|
31
31
|
import "../chunk-7PUDC2WF.mjs";
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
MailTemplateDeleteButton,
|
|
113
113
|
useS_authenticate,
|
|
114
114
|
useS_moduleConfig
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-RNXH6UCT.mjs";
|
|
116
116
|
import "../chunk-SUH3FFFV.mjs";
|
|
117
117
|
import "../chunk-2B2FKBKX.mjs";
|
|
118
118
|
import "../chunk-7PUDC2WF.mjs";
|