@duxweb/dvha-core 0.1.20 → 0.1.21
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/cjs/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/cjs/_virtual/dayjs.min.cjs +1 -0
- package/dist/cjs/_virtual/dayjs.min2.cjs +1 -0
- package/dist/cjs/components/auth/can.cjs +1 -1
- package/dist/cjs/components/loader/iframe.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -0
- package/dist/cjs/components/loader/remote/loader.cjs +1 -0
- package/dist/cjs/components/loader/remote/render.cjs +1 -0
- package/dist/cjs/components/overlay/overlay.cjs +1 -1
- package/dist/cjs/components/status/error.cjs +1 -1
- package/dist/cjs/components/status/exception.cjs +1 -0
- package/dist/cjs/components/status/notAuthorized.cjs +1 -1
- package/dist/cjs/components/status/notFound.cjs +1 -1
- package/dist/cjs/directive/permission.cjs +1 -1
- package/dist/cjs/hooks/auth.cjs +1 -1
- package/dist/cjs/hooks/data.cjs +1 -1
- package/dist/cjs/hooks/export.cjs +1 -1
- package/dist/cjs/hooks/form.cjs +1 -1
- package/dist/cjs/hooks/formExtend.cjs +1 -0
- package/dist/cjs/hooks/formValidate.cjs +1 -0
- package/dist/cjs/hooks/i18n.cjs +1 -1
- package/dist/cjs/hooks/importCsv.cjs +1 -1
- package/dist/cjs/hooks/json.cjs +1 -1
- package/dist/cjs/hooks/list.cjs +1 -0
- package/dist/cjs/hooks/manage.cjs +1 -1
- package/dist/cjs/hooks/menu.cjs +1 -1
- package/dist/cjs/hooks/overlay.cjs +1 -1
- package/dist/cjs/hooks/select.cjs +1 -1
- package/dist/cjs/hooks/theme.cjs +2 -2
- package/dist/cjs/hooks/upload.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/node_modules/dayjs/dayjs.min.cjs +1 -0
- package/dist/cjs/node_modules/mitt/dist/mitt.cjs +1 -0
- package/dist/cjs/preset/dataProvider.cjs +1 -1
- package/dist/cjs/preset/i18nProvider.cjs +1 -1
- package/dist/cjs/provider/app.cjs +1 -1
- package/dist/cjs/stores/manage.cjs +1 -1
- package/dist/cjs/stores/tab.cjs +1 -1
- package/dist/cjs/stores/theme.cjs +1 -1
- package/dist/cjs/utils/theme.cjs +9 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
- package/dist/esm/_virtual/dayjs.min.js +7 -0
- package/dist/esm/_virtual/dayjs.min2.js +4 -0
- package/dist/esm/components/auth/can.js +9 -7
- package/dist/esm/components/loader/loader.js +47 -0
- package/dist/esm/components/loader/remote/loader.js +150 -0
- package/dist/esm/components/loader/remote/render.js +19 -0
- package/dist/esm/components/overlay/overlay.js +22 -31
- package/dist/esm/components/status/error.js +3 -3
- package/dist/esm/components/status/exception.js +23 -0
- package/dist/esm/components/status/notAuthorized.js +2 -2
- package/dist/esm/components/status/notFound.js +4 -4
- package/dist/esm/directive/permission.js +5 -3
- package/dist/esm/hooks/auth.js +67 -67
- package/dist/esm/hooks/data.js +164 -160
- package/dist/esm/hooks/export.js +26 -23
- package/dist/esm/hooks/form.js +38 -35
- package/dist/esm/hooks/formExtend.js +38 -0
- package/dist/esm/hooks/formValidate.js +28 -0
- package/dist/esm/hooks/i18n.js +16 -8
- package/dist/esm/hooks/json.js +57 -57
- package/dist/esm/hooks/list.js +179 -0
- package/dist/esm/hooks/manage.js +19 -14
- package/dist/esm/hooks/overlay.js +6 -4
- package/dist/esm/hooks/theme.js +11 -11
- package/dist/esm/index.js +129 -113
- package/dist/esm/main.js +22 -12
- package/dist/esm/node_modules/dayjs/dayjs.min.js +282 -0
- package/dist/esm/node_modules/mitt/dist/mitt.js +19 -0
- package/dist/esm/preset/i18nProvider.js +17 -18
- package/dist/esm/provider/app.js +61 -53
- package/dist/esm/stores/manage.js +23 -15
- package/dist/esm/stores/tab.js +58 -49
- package/dist/esm/utils/theme.js +89 -76
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/loader/loader.d.ts +2 -0
- package/dist/types/components/loader/remote/index.d.ts +2 -0
- package/dist/types/components/loader/remote/loader.d.ts +1 -0
- package/dist/types/components/loader/remote/render.d.ts +1 -0
- package/dist/types/components/status/error.d.ts +1 -2
- package/dist/types/components/status/exception.d.ts +3 -0
- package/dist/types/components/status/index.d.ts +4 -0
- package/dist/types/components/status/notAuthorized.d.ts +1 -2
- package/dist/types/components/status/notFound.d.ts +1 -2
- package/dist/types/config/index.d.ts +1 -0
- package/dist/types/hooks/auth.d.ts +6 -6
- package/dist/types/hooks/data.d.ts +30 -30
- package/dist/types/hooks/form.d.ts +6 -3
- package/dist/types/hooks/formExtend.d.ts +12 -0
- package/dist/types/hooks/formValidate.d.ts +14 -0
- package/dist/types/hooks/i18n.d.ts +2 -0
- package/dist/types/hooks/import.d.ts +1 -2
- package/dist/types/hooks/index.d.ts +4 -1
- package/dist/types/hooks/json.d.ts +1 -1
- package/dist/types/hooks/list.d.ts +66 -0
- package/dist/types/hooks/manage.d.ts +1 -0
- package/dist/types/index.d.ts +6 -5
- package/dist/types/preset/i18nProvider.d.ts +1 -1
- package/dist/types/stores/route.d.ts +180 -180
- package/dist/types/stores/tab.d.ts +1112 -73
- package/dist/types/types/config.d.ts +9 -0
- package/dist/types/types/i18n.d.ts +1 -0
- package/dist/types/types/manage.d.ts +6 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/theme.d.ts +4 -49
- package/package.json +11 -5
- /package/dist/cjs/{hooks/themeColor.cjs → config/color.cjs} +0 -0
- /package/dist/esm/{hooks/themeColor.js → config/color.js} +0 -0
- /package/dist/types/{hooks/themeColor.d.ts → config/color.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './color';
|
|
@@ -34,7 +34,7 @@ export interface IAuthActionParams {
|
|
|
34
34
|
* @param onError Login error callback
|
|
35
35
|
* @returns Login method
|
|
36
36
|
*/
|
|
37
|
-
export declare function useLogin(
|
|
37
|
+
export declare function useLogin(props?: IAuthLoginParams): {
|
|
38
38
|
mutate: (data: Record<string, any>) => Promise<void>;
|
|
39
39
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
40
40
|
};
|
|
@@ -45,7 +45,7 @@ export declare function useLogin({ onSuccess, onError }: IAuthLoginParams): {
|
|
|
45
45
|
* @param onError Logout error callback
|
|
46
46
|
* @returns Logout method
|
|
47
47
|
*/
|
|
48
|
-
export declare function useLogout(
|
|
48
|
+
export declare function useLogout(props?: IAuthLogoutParams): {
|
|
49
49
|
mutate: (params?: any) => Promise<void>;
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
@@ -55,7 +55,7 @@ export declare function useLogout({ onSuccess, onError }: IAuthLogoutParams): {
|
|
|
55
55
|
* @param onError Check error callback
|
|
56
56
|
* @returns Check method
|
|
57
57
|
*/
|
|
58
|
-
export declare function useCheck(
|
|
58
|
+
export declare function useCheck(props?: IAuthCheckParams): {
|
|
59
59
|
mutate: (params?: any) => Promise<void>;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
@@ -65,7 +65,7 @@ export declare function useCheck({ onSuccess, onError }: IAuthCheckParams): {
|
|
|
65
65
|
* @param onError Register error callback
|
|
66
66
|
* @returns Register method
|
|
67
67
|
*/
|
|
68
|
-
export declare function useRegister(
|
|
68
|
+
export declare function useRegister(props?: IAuthLoginParams): {
|
|
69
69
|
mutate: (data: Record<string, any>) => Promise<void>;
|
|
70
70
|
};
|
|
71
71
|
/**
|
|
@@ -74,7 +74,7 @@ export declare function useRegister({ onSuccess, onError }: IAuthLoginParams): {
|
|
|
74
74
|
* @param onError Forgot password error callback
|
|
75
75
|
* @returns Forgot password method
|
|
76
76
|
*/
|
|
77
|
-
export declare function useForgotPassword(
|
|
77
|
+
export declare function useForgotPassword(props?: IAuthActionParams): {
|
|
78
78
|
mutate: (params?: any) => Promise<void>;
|
|
79
79
|
};
|
|
80
80
|
/**
|
|
@@ -83,7 +83,7 @@ export declare function useForgotPassword({ onSuccess, onError }: IAuthActionPar
|
|
|
83
83
|
* @param onError Update password error callback
|
|
84
84
|
* @returns Update password method
|
|
85
85
|
*/
|
|
86
|
-
export declare function useUpdatePassword(
|
|
86
|
+
export declare function useUpdatePassword(props?: IAuthActionParams): {
|
|
87
87
|
mutate: (params?: any) => Promise<void>;
|
|
88
88
|
};
|
|
89
89
|
/**
|
|
@@ -1126,10 +1126,10 @@ export declare function useCreate(params: ICreateParams): {
|
|
|
1126
1126
|
mutate: (variables: IDataProviderCreateOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCreateOptions, unknown> | undefined) => void;
|
|
1127
1127
|
data: import("vue").Ref<undefined, undefined>;
|
|
1128
1128
|
error: import("vue").Ref<null, null>;
|
|
1129
|
+
status: import("vue").Ref<"idle", "idle">;
|
|
1129
1130
|
isError: import("vue").Ref<false, false>;
|
|
1130
1131
|
isPending: import("vue").Ref<false, false>;
|
|
1131
1132
|
isSuccess: import("vue").Ref<false, false>;
|
|
1132
|
-
status: import("vue").Ref<"idle", "idle">;
|
|
1133
1133
|
failureCount: import("vue").Ref<number, number>;
|
|
1134
1134
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1135
1135
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1144,10 +1144,10 @@ export declare function useCreate(params: ICreateParams): {
|
|
|
1144
1144
|
mutate: (variables: IDataProviderCreateOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCreateOptions, unknown> | undefined) => void;
|
|
1145
1145
|
data: import("vue").Ref<undefined, undefined>;
|
|
1146
1146
|
error: import("vue").Ref<null, null>;
|
|
1147
|
+
status: import("vue").Ref<"pending", "pending">;
|
|
1147
1148
|
isError: import("vue").Ref<false, false>;
|
|
1148
1149
|
isPending: import("vue").Ref<true, true>;
|
|
1149
1150
|
isSuccess: import("vue").Ref<false, false>;
|
|
1150
|
-
status: import("vue").Ref<"pending", "pending">;
|
|
1151
1151
|
failureCount: import("vue").Ref<number, number>;
|
|
1152
1152
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1153
1153
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1162,10 +1162,10 @@ export declare function useCreate(params: ICreateParams): {
|
|
|
1162
1162
|
mutate: (variables: IDataProviderCreateOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCreateOptions, unknown> | undefined) => void;
|
|
1163
1163
|
data: import("vue").Ref<undefined, undefined>;
|
|
1164
1164
|
error: import("vue").Ref<Error, Error>;
|
|
1165
|
+
status: import("vue").Ref<"error", "error">;
|
|
1165
1166
|
isError: import("vue").Ref<true, true>;
|
|
1166
1167
|
isPending: import("vue").Ref<false, false>;
|
|
1167
1168
|
isSuccess: import("vue").Ref<false, false>;
|
|
1168
|
-
status: import("vue").Ref<"error", "error">;
|
|
1169
1169
|
failureCount: import("vue").Ref<number, number>;
|
|
1170
1170
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1171
1171
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1180,10 +1180,10 @@ export declare function useCreate(params: ICreateParams): {
|
|
|
1180
1180
|
mutate: (variables: IDataProviderCreateOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCreateOptions, unknown> | undefined) => void;
|
|
1181
1181
|
data: import("vue").Ref<IDataProviderResponse, IDataProviderResponse>;
|
|
1182
1182
|
error: import("vue").Ref<null, null>;
|
|
1183
|
+
status: import("vue").Ref<"success", "success">;
|
|
1183
1184
|
isError: import("vue").Ref<false, false>;
|
|
1184
1185
|
isPending: import("vue").Ref<false, false>;
|
|
1185
1186
|
isSuccess: import("vue").Ref<true, true>;
|
|
1186
|
-
status: import("vue").Ref<"success", "success">;
|
|
1187
1187
|
failureCount: import("vue").Ref<number, number>;
|
|
1188
1188
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1189
1189
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1209,10 +1209,10 @@ export declare function useCreateMany(params: ICreateManyParams): {
|
|
|
1209
1209
|
mutate: (variables: IDataProviderCreateManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCreateManyOptions, unknown> | undefined) => void;
|
|
1210
1210
|
data: import("vue").Ref<undefined, undefined>;
|
|
1211
1211
|
error: import("vue").Ref<null, null>;
|
|
1212
|
+
status: import("vue").Ref<"idle", "idle">;
|
|
1212
1213
|
isError: import("vue").Ref<false, false>;
|
|
1213
1214
|
isPending: import("vue").Ref<false, false>;
|
|
1214
1215
|
isSuccess: import("vue").Ref<false, false>;
|
|
1215
|
-
status: import("vue").Ref<"idle", "idle">;
|
|
1216
1216
|
failureCount: import("vue").Ref<number, number>;
|
|
1217
1217
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1218
1218
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1227,10 +1227,10 @@ export declare function useCreateMany(params: ICreateManyParams): {
|
|
|
1227
1227
|
mutate: (variables: IDataProviderCreateManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCreateManyOptions, unknown> | undefined) => void;
|
|
1228
1228
|
data: import("vue").Ref<undefined, undefined>;
|
|
1229
1229
|
error: import("vue").Ref<null, null>;
|
|
1230
|
+
status: import("vue").Ref<"pending", "pending">;
|
|
1230
1231
|
isError: import("vue").Ref<false, false>;
|
|
1231
1232
|
isPending: import("vue").Ref<true, true>;
|
|
1232
1233
|
isSuccess: import("vue").Ref<false, false>;
|
|
1233
|
-
status: import("vue").Ref<"pending", "pending">;
|
|
1234
1234
|
failureCount: import("vue").Ref<number, number>;
|
|
1235
1235
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1236
1236
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1245,10 +1245,10 @@ export declare function useCreateMany(params: ICreateManyParams): {
|
|
|
1245
1245
|
mutate: (variables: IDataProviderCreateManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCreateManyOptions, unknown> | undefined) => void;
|
|
1246
1246
|
data: import("vue").Ref<undefined, undefined>;
|
|
1247
1247
|
error: import("vue").Ref<Error, Error>;
|
|
1248
|
+
status: import("vue").Ref<"error", "error">;
|
|
1248
1249
|
isError: import("vue").Ref<true, true>;
|
|
1249
1250
|
isPending: import("vue").Ref<false, false>;
|
|
1250
1251
|
isSuccess: import("vue").Ref<false, false>;
|
|
1251
|
-
status: import("vue").Ref<"error", "error">;
|
|
1252
1252
|
failureCount: import("vue").Ref<number, number>;
|
|
1253
1253
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1254
1254
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1263,10 +1263,10 @@ export declare function useCreateMany(params: ICreateManyParams): {
|
|
|
1263
1263
|
mutate: (variables: IDataProviderCreateManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCreateManyOptions, unknown> | undefined) => void;
|
|
1264
1264
|
data: import("vue").Ref<IDataProviderResponse, IDataProviderResponse>;
|
|
1265
1265
|
error: import("vue").Ref<null, null>;
|
|
1266
|
+
status: import("vue").Ref<"success", "success">;
|
|
1266
1267
|
isError: import("vue").Ref<false, false>;
|
|
1267
1268
|
isPending: import("vue").Ref<false, false>;
|
|
1268
1269
|
isSuccess: import("vue").Ref<true, true>;
|
|
1269
|
-
status: import("vue").Ref<"success", "success">;
|
|
1270
1270
|
failureCount: import("vue").Ref<number, number>;
|
|
1271
1271
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1272
1272
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1292,10 +1292,10 @@ export declare function useUpdate(params: IUpdateParams): {
|
|
|
1292
1292
|
mutate: (variables: IDataProviderUpdateOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderUpdateOptions, unknown> | undefined) => void;
|
|
1293
1293
|
data: import("vue").Ref<undefined, undefined>;
|
|
1294
1294
|
error: import("vue").Ref<null, null>;
|
|
1295
|
+
status: import("vue").Ref<"idle", "idle">;
|
|
1295
1296
|
isError: import("vue").Ref<false, false>;
|
|
1296
1297
|
isPending: import("vue").Ref<false, false>;
|
|
1297
1298
|
isSuccess: import("vue").Ref<false, false>;
|
|
1298
|
-
status: import("vue").Ref<"idle", "idle">;
|
|
1299
1299
|
failureCount: import("vue").Ref<number, number>;
|
|
1300
1300
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1301
1301
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1310,10 +1310,10 @@ export declare function useUpdate(params: IUpdateParams): {
|
|
|
1310
1310
|
mutate: (variables: IDataProviderUpdateOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderUpdateOptions, unknown> | undefined) => void;
|
|
1311
1311
|
data: import("vue").Ref<undefined, undefined>;
|
|
1312
1312
|
error: import("vue").Ref<null, null>;
|
|
1313
|
+
status: import("vue").Ref<"pending", "pending">;
|
|
1313
1314
|
isError: import("vue").Ref<false, false>;
|
|
1314
1315
|
isPending: import("vue").Ref<true, true>;
|
|
1315
1316
|
isSuccess: import("vue").Ref<false, false>;
|
|
1316
|
-
status: import("vue").Ref<"pending", "pending">;
|
|
1317
1317
|
failureCount: import("vue").Ref<number, number>;
|
|
1318
1318
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1319
1319
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1328,10 +1328,10 @@ export declare function useUpdate(params: IUpdateParams): {
|
|
|
1328
1328
|
mutate: (variables: IDataProviderUpdateOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderUpdateOptions, unknown> | undefined) => void;
|
|
1329
1329
|
data: import("vue").Ref<undefined, undefined>;
|
|
1330
1330
|
error: import("vue").Ref<Error, Error>;
|
|
1331
|
+
status: import("vue").Ref<"error", "error">;
|
|
1331
1332
|
isError: import("vue").Ref<true, true>;
|
|
1332
1333
|
isPending: import("vue").Ref<false, false>;
|
|
1333
1334
|
isSuccess: import("vue").Ref<false, false>;
|
|
1334
|
-
status: import("vue").Ref<"error", "error">;
|
|
1335
1335
|
failureCount: import("vue").Ref<number, number>;
|
|
1336
1336
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1337
1337
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1346,10 +1346,10 @@ export declare function useUpdate(params: IUpdateParams): {
|
|
|
1346
1346
|
mutate: (variables: IDataProviderUpdateOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderUpdateOptions, unknown> | undefined) => void;
|
|
1347
1347
|
data: import("vue").Ref<IDataProviderResponse, IDataProviderResponse>;
|
|
1348
1348
|
error: import("vue").Ref<null, null>;
|
|
1349
|
+
status: import("vue").Ref<"success", "success">;
|
|
1349
1350
|
isError: import("vue").Ref<false, false>;
|
|
1350
1351
|
isPending: import("vue").Ref<false, false>;
|
|
1351
1352
|
isSuccess: import("vue").Ref<true, true>;
|
|
1352
|
-
status: import("vue").Ref<"success", "success">;
|
|
1353
1353
|
failureCount: import("vue").Ref<number, number>;
|
|
1354
1354
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1355
1355
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1371,10 +1371,10 @@ export declare function useUpdateMany(params: IUpdateManyParams): {
|
|
|
1371
1371
|
mutate: (variables: IDataProviderUpdateManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderUpdateManyOptions, unknown> | undefined) => void;
|
|
1372
1372
|
data: import("vue").Ref<undefined, undefined>;
|
|
1373
1373
|
error: import("vue").Ref<null, null>;
|
|
1374
|
+
status: import("vue").Ref<"idle", "idle">;
|
|
1374
1375
|
isError: import("vue").Ref<false, false>;
|
|
1375
1376
|
isPending: import("vue").Ref<false, false>;
|
|
1376
1377
|
isSuccess: import("vue").Ref<false, false>;
|
|
1377
|
-
status: import("vue").Ref<"idle", "idle">;
|
|
1378
1378
|
failureCount: import("vue").Ref<number, number>;
|
|
1379
1379
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1380
1380
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1389,10 +1389,10 @@ export declare function useUpdateMany(params: IUpdateManyParams): {
|
|
|
1389
1389
|
mutate: (variables: IDataProviderUpdateManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderUpdateManyOptions, unknown> | undefined) => void;
|
|
1390
1390
|
data: import("vue").Ref<undefined, undefined>;
|
|
1391
1391
|
error: import("vue").Ref<null, null>;
|
|
1392
|
+
status: import("vue").Ref<"pending", "pending">;
|
|
1392
1393
|
isError: import("vue").Ref<false, false>;
|
|
1393
1394
|
isPending: import("vue").Ref<true, true>;
|
|
1394
1395
|
isSuccess: import("vue").Ref<false, false>;
|
|
1395
|
-
status: import("vue").Ref<"pending", "pending">;
|
|
1396
1396
|
failureCount: import("vue").Ref<number, number>;
|
|
1397
1397
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1398
1398
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1407,10 +1407,10 @@ export declare function useUpdateMany(params: IUpdateManyParams): {
|
|
|
1407
1407
|
mutate: (variables: IDataProviderUpdateManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderUpdateManyOptions, unknown> | undefined) => void;
|
|
1408
1408
|
data: import("vue").Ref<undefined, undefined>;
|
|
1409
1409
|
error: import("vue").Ref<Error, Error>;
|
|
1410
|
+
status: import("vue").Ref<"error", "error">;
|
|
1410
1411
|
isError: import("vue").Ref<true, true>;
|
|
1411
1412
|
isPending: import("vue").Ref<false, false>;
|
|
1412
1413
|
isSuccess: import("vue").Ref<false, false>;
|
|
1413
|
-
status: import("vue").Ref<"error", "error">;
|
|
1414
1414
|
failureCount: import("vue").Ref<number, number>;
|
|
1415
1415
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1416
1416
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1425,10 +1425,10 @@ export declare function useUpdateMany(params: IUpdateManyParams): {
|
|
|
1425
1425
|
mutate: (variables: IDataProviderUpdateManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderUpdateManyOptions, unknown> | undefined) => void;
|
|
1426
1426
|
data: import("vue").Ref<IDataProviderResponse, IDataProviderResponse>;
|
|
1427
1427
|
error: import("vue").Ref<null, null>;
|
|
1428
|
+
status: import("vue").Ref<"success", "success">;
|
|
1428
1429
|
isError: import("vue").Ref<false, false>;
|
|
1429
1430
|
isPending: import("vue").Ref<false, false>;
|
|
1430
1431
|
isSuccess: import("vue").Ref<true, true>;
|
|
1431
|
-
status: import("vue").Ref<"success", "success">;
|
|
1432
1432
|
failureCount: import("vue").Ref<number, number>;
|
|
1433
1433
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1434
1434
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1454,10 +1454,10 @@ export declare function useDelete(params: IDeleteParams): {
|
|
|
1454
1454
|
mutate: (variables: IDataProviderDeleteOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderDeleteOptions, unknown> | undefined) => void;
|
|
1455
1455
|
data: import("vue").Ref<undefined, undefined>;
|
|
1456
1456
|
error: import("vue").Ref<null, null>;
|
|
1457
|
+
status: import("vue").Ref<"idle", "idle">;
|
|
1457
1458
|
isError: import("vue").Ref<false, false>;
|
|
1458
1459
|
isPending: import("vue").Ref<false, false>;
|
|
1459
1460
|
isSuccess: import("vue").Ref<false, false>;
|
|
1460
|
-
status: import("vue").Ref<"idle", "idle">;
|
|
1461
1461
|
failureCount: import("vue").Ref<number, number>;
|
|
1462
1462
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1463
1463
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1472,10 +1472,10 @@ export declare function useDelete(params: IDeleteParams): {
|
|
|
1472
1472
|
mutate: (variables: IDataProviderDeleteOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderDeleteOptions, unknown> | undefined) => void;
|
|
1473
1473
|
data: import("vue").Ref<undefined, undefined>;
|
|
1474
1474
|
error: import("vue").Ref<null, null>;
|
|
1475
|
+
status: import("vue").Ref<"pending", "pending">;
|
|
1475
1476
|
isError: import("vue").Ref<false, false>;
|
|
1476
1477
|
isPending: import("vue").Ref<true, true>;
|
|
1477
1478
|
isSuccess: import("vue").Ref<false, false>;
|
|
1478
|
-
status: import("vue").Ref<"pending", "pending">;
|
|
1479
1479
|
failureCount: import("vue").Ref<number, number>;
|
|
1480
1480
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1481
1481
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1490,10 +1490,10 @@ export declare function useDelete(params: IDeleteParams): {
|
|
|
1490
1490
|
mutate: (variables: IDataProviderDeleteOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderDeleteOptions, unknown> | undefined) => void;
|
|
1491
1491
|
data: import("vue").Ref<undefined, undefined>;
|
|
1492
1492
|
error: import("vue").Ref<Error, Error>;
|
|
1493
|
+
status: import("vue").Ref<"error", "error">;
|
|
1493
1494
|
isError: import("vue").Ref<true, true>;
|
|
1494
1495
|
isPending: import("vue").Ref<false, false>;
|
|
1495
1496
|
isSuccess: import("vue").Ref<false, false>;
|
|
1496
|
-
status: import("vue").Ref<"error", "error">;
|
|
1497
1497
|
failureCount: import("vue").Ref<number, number>;
|
|
1498
1498
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1499
1499
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1508,10 +1508,10 @@ export declare function useDelete(params: IDeleteParams): {
|
|
|
1508
1508
|
mutate: (variables: IDataProviderDeleteOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderDeleteOptions, unknown> | undefined) => void;
|
|
1509
1509
|
data: import("vue").Ref<IDataProviderResponse, IDataProviderResponse>;
|
|
1510
1510
|
error: import("vue").Ref<null, null>;
|
|
1511
|
+
status: import("vue").Ref<"success", "success">;
|
|
1511
1512
|
isError: import("vue").Ref<false, false>;
|
|
1512
1513
|
isPending: import("vue").Ref<false, false>;
|
|
1513
1514
|
isSuccess: import("vue").Ref<true, true>;
|
|
1514
|
-
status: import("vue").Ref<"success", "success">;
|
|
1515
1515
|
failureCount: import("vue").Ref<number, number>;
|
|
1516
1516
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1517
1517
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1537,10 +1537,10 @@ export declare function useDeleteMany(params: IDeleteManyParams): {
|
|
|
1537
1537
|
mutate: (variables: IDataProviderDeleteManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderDeleteManyOptions, unknown> | undefined) => void;
|
|
1538
1538
|
data: import("vue").Ref<undefined, undefined>;
|
|
1539
1539
|
error: import("vue").Ref<null, null>;
|
|
1540
|
+
status: import("vue").Ref<"idle", "idle">;
|
|
1540
1541
|
isError: import("vue").Ref<false, false>;
|
|
1541
1542
|
isPending: import("vue").Ref<false, false>;
|
|
1542
1543
|
isSuccess: import("vue").Ref<false, false>;
|
|
1543
|
-
status: import("vue").Ref<"idle", "idle">;
|
|
1544
1544
|
failureCount: import("vue").Ref<number, number>;
|
|
1545
1545
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1546
1546
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1555,10 +1555,10 @@ export declare function useDeleteMany(params: IDeleteManyParams): {
|
|
|
1555
1555
|
mutate: (variables: IDataProviderDeleteManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderDeleteManyOptions, unknown> | undefined) => void;
|
|
1556
1556
|
data: import("vue").Ref<undefined, undefined>;
|
|
1557
1557
|
error: import("vue").Ref<null, null>;
|
|
1558
|
+
status: import("vue").Ref<"pending", "pending">;
|
|
1558
1559
|
isError: import("vue").Ref<false, false>;
|
|
1559
1560
|
isPending: import("vue").Ref<true, true>;
|
|
1560
1561
|
isSuccess: import("vue").Ref<false, false>;
|
|
1561
|
-
status: import("vue").Ref<"pending", "pending">;
|
|
1562
1562
|
failureCount: import("vue").Ref<number, number>;
|
|
1563
1563
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1564
1564
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1573,10 +1573,10 @@ export declare function useDeleteMany(params: IDeleteManyParams): {
|
|
|
1573
1573
|
mutate: (variables: IDataProviderDeleteManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderDeleteManyOptions, unknown> | undefined) => void;
|
|
1574
1574
|
data: import("vue").Ref<undefined, undefined>;
|
|
1575
1575
|
error: import("vue").Ref<Error, Error>;
|
|
1576
|
+
status: import("vue").Ref<"error", "error">;
|
|
1576
1577
|
isError: import("vue").Ref<true, true>;
|
|
1577
1578
|
isPending: import("vue").Ref<false, false>;
|
|
1578
1579
|
isSuccess: import("vue").Ref<false, false>;
|
|
1579
|
-
status: import("vue").Ref<"error", "error">;
|
|
1580
1580
|
failureCount: import("vue").Ref<number, number>;
|
|
1581
1581
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1582
1582
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1591,10 +1591,10 @@ export declare function useDeleteMany(params: IDeleteManyParams): {
|
|
|
1591
1591
|
mutate: (variables: IDataProviderDeleteManyOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderDeleteManyOptions, unknown> | undefined) => void;
|
|
1592
1592
|
data: import("vue").Ref<IDataProviderResponse, IDataProviderResponse>;
|
|
1593
1593
|
error: import("vue").Ref<null, null>;
|
|
1594
|
+
status: import("vue").Ref<"success", "success">;
|
|
1594
1595
|
isError: import("vue").Ref<false, false>;
|
|
1595
1596
|
isPending: import("vue").Ref<false, false>;
|
|
1596
1597
|
isSuccess: import("vue").Ref<true, true>;
|
|
1597
|
-
status: import("vue").Ref<"success", "success">;
|
|
1598
1598
|
failureCount: import("vue").Ref<number, number>;
|
|
1599
1599
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1600
1600
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1614,7 +1614,7 @@ export interface ICustomParams extends IDataProviderCustomOptions {
|
|
|
1614
1614
|
* Custom query request
|
|
1615
1615
|
* @param params
|
|
1616
1616
|
*/
|
|
1617
|
-
export declare function useCustom(params
|
|
1617
|
+
export declare function useCustom(params?: ICustomParams): {
|
|
1618
1618
|
isLoading: import("vue").ComputedRef<boolean>;
|
|
1619
1619
|
data: import("vue").Ref<{
|
|
1620
1620
|
[x: string]: any;
|
|
@@ -1859,15 +1859,15 @@ export interface ICustomMutationParams extends IDataProviderCustomOptions {
|
|
|
1859
1859
|
* Custom mutation request
|
|
1860
1860
|
* @param params
|
|
1861
1861
|
*/
|
|
1862
|
-
export declare function useCustomMutation(params
|
|
1862
|
+
export declare function useCustomMutation(params?: ICustomMutationParams): {
|
|
1863
1863
|
isLoading: import("vue").ComputedRef<boolean>;
|
|
1864
1864
|
mutate: (variables: IDataProviderCustomOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCustomOptions, unknown> | undefined) => void;
|
|
1865
1865
|
data: import("vue").Ref<undefined, undefined>;
|
|
1866
1866
|
error: import("vue").Ref<null, null>;
|
|
1867
|
+
status: import("vue").Ref<"idle", "idle">;
|
|
1867
1868
|
isError: import("vue").Ref<false, false>;
|
|
1868
1869
|
isPending: import("vue").Ref<false, false>;
|
|
1869
1870
|
isSuccess: import("vue").Ref<false, false>;
|
|
1870
|
-
status: import("vue").Ref<"idle", "idle">;
|
|
1871
1871
|
failureCount: import("vue").Ref<number, number>;
|
|
1872
1872
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1873
1873
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1882,10 +1882,10 @@ export declare function useCustomMutation(params: ICustomMutationParams): {
|
|
|
1882
1882
|
mutate: (variables: IDataProviderCustomOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCustomOptions, unknown> | undefined) => void;
|
|
1883
1883
|
data: import("vue").Ref<undefined, undefined>;
|
|
1884
1884
|
error: import("vue").Ref<null, null>;
|
|
1885
|
+
status: import("vue").Ref<"pending", "pending">;
|
|
1885
1886
|
isError: import("vue").Ref<false, false>;
|
|
1886
1887
|
isPending: import("vue").Ref<true, true>;
|
|
1887
1888
|
isSuccess: import("vue").Ref<false, false>;
|
|
1888
|
-
status: import("vue").Ref<"pending", "pending">;
|
|
1889
1889
|
failureCount: import("vue").Ref<number, number>;
|
|
1890
1890
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1891
1891
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1900,10 +1900,10 @@ export declare function useCustomMutation(params: ICustomMutationParams): {
|
|
|
1900
1900
|
mutate: (variables: IDataProviderCustomOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCustomOptions, unknown> | undefined) => void;
|
|
1901
1901
|
data: import("vue").Ref<undefined, undefined>;
|
|
1902
1902
|
error: import("vue").Ref<Error, Error>;
|
|
1903
|
+
status: import("vue").Ref<"error", "error">;
|
|
1903
1904
|
isError: import("vue").Ref<true, true>;
|
|
1904
1905
|
isPending: import("vue").Ref<false, false>;
|
|
1905
1906
|
isSuccess: import("vue").Ref<false, false>;
|
|
1906
|
-
status: import("vue").Ref<"error", "error">;
|
|
1907
1907
|
failureCount: import("vue").Ref<number, number>;
|
|
1908
1908
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1909
1909
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1918,10 +1918,10 @@ export declare function useCustomMutation(params: ICustomMutationParams): {
|
|
|
1918
1918
|
mutate: (variables: IDataProviderCustomOptions, options?: import("@tanstack/query-core").MutateOptions<IDataProviderResponse, Error, IDataProviderCustomOptions, unknown> | undefined) => void;
|
|
1919
1919
|
data: import("vue").Ref<IDataProviderResponse, IDataProviderResponse>;
|
|
1920
1920
|
error: import("vue").Ref<null, null>;
|
|
1921
|
+
status: import("vue").Ref<"success", "success">;
|
|
1921
1922
|
isError: import("vue").Ref<false, false>;
|
|
1922
1923
|
isPending: import("vue").Ref<false, false>;
|
|
1923
1924
|
isSuccess: import("vue").Ref<true, true>;
|
|
1924
|
-
status: import("vue").Ref<"success", "success">;
|
|
1925
1925
|
failureCount: import("vue").Ref<number, number>;
|
|
1926
1926
|
failureReason: import("vue").Ref<Error | null, Error | null>;
|
|
1927
1927
|
isPaused: import("vue").Ref<boolean, boolean>;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
import type { MaybeRef } from 'vue';
|
|
1
2
|
import type { IDataProviderError, IDataProviderResponse } from '../types';
|
|
2
3
|
export interface IUseFormProps {
|
|
3
4
|
path?: string;
|
|
4
5
|
id?: string | number;
|
|
5
|
-
form?: Record<string, any
|
|
6
|
+
form?: MaybeRef<Record<string, any>>;
|
|
6
7
|
onSuccess?: (data: IDataProviderResponse) => void;
|
|
7
8
|
onError?: (error: IDataProviderError) => void;
|
|
8
9
|
action?: 'create' | 'edit';
|
|
9
10
|
providerName?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare function useForm(props: IUseFormProps): {
|
|
12
|
-
form: import("vue").Ref<Record<string, any
|
|
13
|
+
form: import("vue").Ref<MaybeRef<Record<string, any>>, MaybeRef<Record<string, any>>>;
|
|
14
|
+
initData: import("vue").Ref<Record<string, any>, MaybeRef<Record<string, any>>>;
|
|
13
15
|
isLoading: import("vue").ComputedRef<boolean>;
|
|
14
|
-
|
|
16
|
+
isEdit: import("vue").ComputedRef<string | number | true | undefined>;
|
|
17
|
+
onSubmit: (data?: Record<string, any>) => void;
|
|
15
18
|
onReset: () => void;
|
|
16
19
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TypedSchema } from 'vee-validate';
|
|
2
|
+
import type { IUseFormProps } from './form';
|
|
3
|
+
export interface UseExtendFormProps extends IUseFormProps {
|
|
4
|
+
rules?: TypedSchema;
|
|
5
|
+
}
|
|
6
|
+
export declare function useExtendForm(props: UseExtendFormProps): {
|
|
7
|
+
isLoading: import("vue").ComputedRef<boolean>;
|
|
8
|
+
isEdit: import("vue").ComputedRef<string | number | true | undefined>;
|
|
9
|
+
form: import("vue").Ref<import("vue").MaybeRef<Record<string, any>>, import("vue").MaybeRef<Record<string, any>>>;
|
|
10
|
+
onSubmit: (data?: Record<string, any>) => void;
|
|
11
|
+
onReset: () => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TypedSchema } from 'vee-validate';
|
|
2
|
+
import type { MaybeRef } from 'vue';
|
|
3
|
+
export interface UseValidateFormProps {
|
|
4
|
+
data?: MaybeRef<Record<string, any>>;
|
|
5
|
+
rules?: TypedSchema;
|
|
6
|
+
}
|
|
7
|
+
export declare function useValidateForm(props: UseValidateFormProps): {
|
|
8
|
+
validate: (opts?: Partial<import("vee-validate").ValidationOptions>) => Promise<import("vee-validate").FormValidationResult<any, any>>;
|
|
9
|
+
reset: () => void;
|
|
10
|
+
submit: (<TReturn = unknown>(cb: import("vee-validate").SubmissionHandler<any, any, TReturn>, onSubmitValidationErrorCb?: import("vee-validate").InvalidSubmissionHandler<any, any> | undefined) => (e?: Event) => Promise<TReturn | undefined>) & {
|
|
11
|
+
withControlled: <TReturn = unknown>(cb: import("vee-validate").SubmissionHandler<any, any, TReturn>, onSubmitValidationErrorCb?: import("vee-validate").InvalidSubmissionHandler<any, any> | undefined) => (e?: Event) => Promise<TReturn | undefined>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare function initFormValidate(): void;
|
|
@@ -2,4 +2,6 @@ export declare function useI18n(): {
|
|
|
2
2
|
t: (key: string, options?: any, defaultMessage?: string) => string | undefined;
|
|
3
3
|
changeLocale: (lang: string) => Promise<any> | undefined;
|
|
4
4
|
getLocale: () => string | undefined;
|
|
5
|
+
loadLocale: (lang: string, messages: Record<string, unknown>) => Promise<any> | undefined;
|
|
6
|
+
mergeLocale: (lang: string, messages: Record<string, unknown>) => void | undefined;
|
|
5
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DefaultError, UseMutationOptions } from '@tanstack/vue-query';
|
|
2
2
|
import type { IDataProviderCustomOptions, IDataProviderError, IDataProviderResponse } from '../types';
|
|
3
|
-
interface IImportProgress {
|
|
3
|
+
export interface IImportProgress {
|
|
4
4
|
totalItems: number;
|
|
5
5
|
processedItems: number;
|
|
6
6
|
totalBatches: number;
|
|
@@ -26,4 +26,3 @@ export declare function useImport(props: IUseImportProps): {
|
|
|
26
26
|
}>;
|
|
27
27
|
trigger: (data: Record<string, any>[]) => Promise<void>;
|
|
28
28
|
};
|
|
29
|
-
export {};
|
|
@@ -4,17 +4,20 @@ export * from './data';
|
|
|
4
4
|
export * from './export';
|
|
5
5
|
export * from './exportCsv';
|
|
6
6
|
export * from './form';
|
|
7
|
+
export * from './formExtend';
|
|
8
|
+
export * from './formValidate';
|
|
7
9
|
export * from './i18n';
|
|
8
10
|
export * from './import';
|
|
9
11
|
export * from './importCsv';
|
|
10
12
|
export * from './json';
|
|
11
13
|
export * from './json/index';
|
|
14
|
+
export * from './list';
|
|
12
15
|
export * from './manage';
|
|
13
16
|
export * from './menu';
|
|
14
17
|
export * from './overlay';
|
|
15
18
|
export * from './select';
|
|
16
19
|
export * from './theme';
|
|
17
20
|
export * from './theme';
|
|
18
|
-
export * from '
|
|
21
|
+
export * from '../config/color';
|
|
19
22
|
export * from './upload';
|
|
20
23
|
export * from './upload/index';
|
|
@@ -9,6 +9,6 @@ export interface UseJsonSchemaProps extends JsonAdaptorOptions {
|
|
|
9
9
|
/**
|
|
10
10
|
* JSON Schema 渲染器
|
|
11
11
|
*/
|
|
12
|
-
export declare function useJsonSchema(props
|
|
12
|
+
export declare function useJsonSchema(props?: UseJsonSchemaProps): {
|
|
13
13
|
render: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { IDataProviderError, IDataProviderPagination, IDataProviderResponse } from '../types';
|
|
2
|
+
import type { IImportProgress } from './import';
|
|
3
|
+
type IListKey = string | number;
|
|
4
|
+
export interface IListPagination {
|
|
5
|
+
page: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
}
|
|
8
|
+
export interface UseExtendListProps {
|
|
9
|
+
path: string;
|
|
10
|
+
key?: IListKey;
|
|
11
|
+
totalField?: string;
|
|
12
|
+
filters?: Record<string, any>;
|
|
13
|
+
sorters?: Record<string, 'asc' | 'desc'>;
|
|
14
|
+
expanded?: boolean;
|
|
15
|
+
pagination?: boolean | IListPagination;
|
|
16
|
+
exportFilename?: string;
|
|
17
|
+
exportMaxPage?: number;
|
|
18
|
+
total?: (data?: IDataProviderResponse) => number;
|
|
19
|
+
onExportSuccess?: (data?: IDataProviderResponse) => void;
|
|
20
|
+
onExportProgress?: (data?: IDataProviderPagination) => void;
|
|
21
|
+
onExportError?: (error?: IDataProviderError) => void;
|
|
22
|
+
onImportSuccess?: (progress?: IImportProgress) => void;
|
|
23
|
+
onImportProgress?: (progress?: IImportProgress) => void;
|
|
24
|
+
onImportError?: (error?: IDataProviderError) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function useExtendList(props: UseExtendListProps): {
|
|
27
|
+
list: import("vue").ComputedRef<Record<string, any>[]>;
|
|
28
|
+
meta: import("vue").ComputedRef<Record<string, any> | undefined>;
|
|
29
|
+
isLoading: import("vue").ComputedRef<boolean>;
|
|
30
|
+
pagination: import("vue").Ref<{
|
|
31
|
+
page: number;
|
|
32
|
+
pageSize: number;
|
|
33
|
+
}, {
|
|
34
|
+
page: number;
|
|
35
|
+
pageSize: number;
|
|
36
|
+
}>;
|
|
37
|
+
filters: import("vue").Ref<Record<string, any>, Record<string, any>>;
|
|
38
|
+
sorters: import("vue").Ref<Record<string, "asc" | "desc">, Record<string, "asc" | "desc">>;
|
|
39
|
+
onRefresh: () => void;
|
|
40
|
+
onUpdateFilters: (v: Record<string, any>) => void;
|
|
41
|
+
onUpdateSorters: (v: Record<string, "asc" | "desc">) => void;
|
|
42
|
+
checkeds: import("vue").Ref<IListKey[], IListKey[]>;
|
|
43
|
+
isAllChecked: import("vue").ComputedRef<boolean>;
|
|
44
|
+
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
45
|
+
toggleChecked: (id: string | number) => void;
|
|
46
|
+
isChecked: (id: string | number) => boolean;
|
|
47
|
+
toggleSelectAll: () => void;
|
|
48
|
+
onUpdateChecked: (v: IListKey[]) => void;
|
|
49
|
+
total: import("vue").ComputedRef<any>;
|
|
50
|
+
page: import("vue").ComputedRef<number>;
|
|
51
|
+
pageSize: import("vue").ComputedRef<number>;
|
|
52
|
+
pageSizes: number[];
|
|
53
|
+
pageCount: import("vue").ComputedRef<number>;
|
|
54
|
+
onUpdatePage: (v: any) => void;
|
|
55
|
+
onUpdatePageSize: (v: any) => void;
|
|
56
|
+
onExport: () => Promise<void>;
|
|
57
|
+
isExporting: import("vue").ComputedRef<boolean>;
|
|
58
|
+
onExportRows: () => Promise<void>;
|
|
59
|
+
isExportingRows: import("vue").ComputedRef<boolean>;
|
|
60
|
+
onImport: () => void;
|
|
61
|
+
isImporting: import("vue").ComputedRef<boolean>;
|
|
62
|
+
autoRefetch: import("vue").Ref<boolean, boolean>;
|
|
63
|
+
onAutoRefetch: () => void;
|
|
64
|
+
autoCountdown: import("vue").ShallowRef<number>;
|
|
65
|
+
};
|
|
66
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './config';
|
|
3
3
|
export * from './hooks';
|
|
4
|
+
export * from './main';
|
|
5
|
+
export * from './preset';
|
|
6
|
+
export * from './provider';
|
|
4
7
|
export * from './router';
|
|
5
8
|
export * from './stores';
|
|
6
|
-
export * from './
|
|
9
|
+
export * from './types';
|
|
7
10
|
export * from './utils';
|
|
8
|
-
export * from './provider';
|
|
9
|
-
export * from './preset';
|