xyvcard-asset 0.0.23 → 0.0.25

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.
Files changed (46) hide show
  1. package/dist/{assign-D4YB344H.mjs → assign-Cx16U6jb.mjs} +7 -5
  2. package/dist/{edit-yvYhMo5N.mjs → edit-B49ygJbc.mjs} +1 -1
  3. package/dist/{edit-Bwq5Vg9D.mjs → edit-Ds7g0sBn.mjs} +1 -1
  4. package/dist/{edit-D3zlqt11.mjs → edit-DuHNKz_4.mjs} +1 -1
  5. package/dist/{edit-DxvSeH5Y.mjs → edit-JbjxRp1e.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-CA2vVvh7.mjs → edit.vue_vue_type_script_setup_true_lang-BKhYm0-l.mjs} +28 -24
  7. package/dist/{edit.vue_vue_type_script_setup_true_lang-CK2dpk1z.mjs → edit.vue_vue_type_script_setup_true_lang-C06QNWoO.mjs} +120 -115
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-DnzT146Q.mjs → edit.vue_vue_type_script_setup_true_lang-DCQmjaPp.mjs} +10 -8
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-D59t05Ec.mjs → edit.vue_vue_type_script_setup_true_lang-mrDURO_L.mjs} +14 -13
  10. package/dist/{index-4gYJADQ3.mjs → index-5OS9ZzQf.mjs} +1 -1
  11. package/dist/index-BI8iDWzU.mjs +117 -0
  12. package/dist/index-BPuC76hs.mjs +338 -0
  13. package/dist/index-BQdGP1ah.mjs +152 -0
  14. package/dist/{index-DZAvRhPJ.mjs → index-BTfwEQad.mjs} +18 -16
  15. package/dist/index-BTvHsKHc.mjs +48286 -0
  16. package/dist/{index-CVU2G5rZ.mjs → index-B_EEJeEN.mjs} +1 -1
  17. package/dist/{index-CQE1DdOZ.mjs → index-C0Rd9wWv.mjs} +30 -27
  18. package/dist/{index-e_AlnW3A.mjs → index-C0cy2lYz.mjs} +37 -35
  19. package/dist/{index-BmxQiLjm.mjs → index-C33SaJIu.mjs} +48 -46
  20. package/dist/{index-DxQzN9_F.mjs → index-ColX0w7n.mjs} +17 -14
  21. package/dist/{index-Bx1vPk7S.mjs → index-D13F64qL.mjs} +142 -152
  22. package/dist/{index-vfIgwaoQ.mjs → index-DGHhDZ-w.mjs} +24 -22
  23. package/dist/{index-DmX4B8mf.mjs → index-DTHatck1.mjs} +61 -59
  24. package/dist/{index-eTof-sqF.mjs → index-DwPSpT78.mjs} +22 -20
  25. package/dist/index-U4WVV44p.mjs +1412 -0
  26. package/dist/{index-hCldWS2K.mjs → index-yjFsDfGI.mjs} +48 -45
  27. package/dist/index.mjs +2 -2
  28. package/dist/style.css +1 -1
  29. package/dts/api/asset/asset-asset/index.d.ts +1 -8
  30. package/dts/api/asset/asset-site-service/index.d.ts +2 -2
  31. package/dts/api/asset/asset-site-service/types.d.ts +1 -5
  32. package/dts/api/dict.d.ts +1 -4
  33. package/dts/api/index.d.ts +2 -1
  34. package/dts/constant.d.ts +3 -3
  35. package/dts/main.d.ts +1 -0
  36. package/dts/utils/common.d.ts +0 -41
  37. package/dts/views/asset/asset-site/edit.vue.d.ts +1 -1
  38. package/package.json +11 -13
  39. package/dist/index-0_FQdBCk.mjs +0 -322
  40. package/dist/index-BOS2gtjd.mjs +0 -165
  41. package/dist/index-eassrLOa.mjs +0 -1673
  42. package/dts/api/asset/text/index.d.ts +0 -140
  43. package/dts/api/asset/text/types.d.ts +0 -179
  44. package/dts/components/Upload/ImageUpload.vue.d.ts +0 -38
  45. package/dts/components/Upload/MultiUpload.vue.d.ts +0 -24
  46. package/dts/utils/index.d.ts +0 -24
@@ -1,140 +0,0 @@
1
- import type { AxiosPromise } from "axios";
2
- import type { UserReq, UserApi, UserPage, UserCreateReq, UserUpdateReq, UserKey, UserModel, UserKeyList, UserImportReq, UserExportReq, UserResetPwdReq, OpensKey, UserLockReq, UserApprovedReq, DirectoryModel, UserOpenList, UserOpenModel } from "./types";
3
- declare class UserApiImpl implements UserApi {
4
- getKey(model: UserModel): UserKey;
5
- /**
6
- * 获取分页信息
7
- *
8
- * @param queryParams 分页查询参数
9
- * @returns 返回请求结果
10
- */
11
- findPage(query: UserReq): AxiosPromise<UserPage>;
12
- findById(query: UserKey): AxiosPromise<UserModel>;
13
- /**
14
- * 删除用户
15
- *
16
- * @param userId 用户ID
17
- * @returns 返回请求结果
18
- */
19
- delete(query: UserKey): AxiosPromise<UserModel>;
20
- /**
21
- * 批量删除用户
22
- *
23
- * @param ids 用户ID数组
24
- * @returns 返回请求结果
25
- */
26
- batchDelete(keys: UserKey[]): AxiosPromise<number>;
27
- /**
28
- * 添加用户
29
- *
30
- * @param data 用户数据
31
- * @returns 返回请求结果
32
- */
33
- create(data: UserCreateReq): AxiosPromise<UserModel>;
34
- /**
35
- * 编辑用户信息
36
- *
37
- * @param data 用户数据
38
- * @returns 返回请求结果
39
- */
40
- update(data: UserUpdateReq): AxiosPromise<UserModel>;
41
- /**
42
- * 启用禁用用户API
43
- *
44
- * @param userId 用户ID
45
- * @returns 返回请求结果
46
- */
47
- enable(key: UserKey, enable: boolean): AxiosPromise<boolean>;
48
- /**
49
- * 批量启用禁用用户API
50
- *
51
- * @param data 批量启用用户的数据
52
- * @returns 返回请求结果
53
- */
54
- batchEnable(key: UserKeyList, enable: boolean): AxiosPromise<number>;
55
- /**
56
- * 下载用户模板
57
- *
58
- * @returns 返回请求的 Promise 对象
59
- */
60
- downloadTemplate(): AxiosPromise;
61
- /**
62
- * 导入用户
63
- *
64
- * @param data 用户数据
65
- * @returns 返回请求结果
66
- */
67
- importExcel(data: UserImportReq): AxiosPromise<string>;
68
- /**
69
- * 导出用户Excel文件
70
- *
71
- * @param queryParams 查询参数,可选
72
- * @returns 返回一个Promise对象,用于处理响应结果
73
- */
74
- exportExcel(queryParams: UserExportReq): AxiosPromise;
75
- /**
76
- * 导出用户PDF文件
77
- *
78
- * @param queryParams 查询参数,可选
79
- * @returns 返回请求结果
80
- */
81
- exportPdf(queryParams: UserExportReq): AxiosPromise;
82
- /**
83
- * 用户锁定
84
- *
85
- * @param data 锁定用户所需的数据
86
- * @returns 返回请求结果
87
- */
88
- userUnlock(data: UserLockReq): AxiosPromise<number>;
89
- /**
90
- * 重置密码
91
- *
92
- * @param data 包含用户名和新密码的对象
93
- * @returns 返回请求结果
94
- */
95
- resetpwd(data: UserResetPwdReq): AxiosPromise<boolean>;
96
- /**
97
- * 用户审核API
98
- *
99
- * @param data 请求数据
100
- * @returns 返回请求结果
101
- */
102
- approveUserApi(data: UserApprovedReq): AxiosPromise<number>;
103
- /**
104
- * 获取目录API
105
- *
106
- * @returns 返回一个请求对象
107
- */
108
- getDirectoryApi(): AxiosPromise<DirectoryModel>;
109
- /**
110
- * 判断邮箱/手机号/用户名是否存在
111
- *
112
- * @param userId 用户ID
113
- * @param userName 邮箱/手机号/用户名
114
- * @returns 返回请求结果
115
- */
116
- existUser(userId: string, userName: string): AxiosPromise<boolean>;
117
- /**
118
- * 第三方登录列表
119
- *
120
- * @param userId 用户ID
121
- * @returns 返回请求结果
122
- */
123
- openList(query: UserKey): AxiosPromise<UserOpenList>;
124
- /**
125
- * 解绑第三方登录
126
- *
127
- * @param query 请求参数
128
- * @returns 返回请求结果
129
- */
130
- unBindOpens(query: OpensKey): AxiosPromise<UserOpenModel>;
131
- }
132
- declare const userApi: UserApiImpl;
133
- export { userApi };
134
- /**
135
- * 获取用户ID
136
- *
137
- * @param userId 用户ID
138
- * @returns 返回请求结果
139
- */
140
- export declare function userId(userId: string): Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,179 +0,0 @@
1
- import type { EntityApi, EntityPage, EntityReq, EntityModel, EntityTotal, EntityList, EntityImportReq, EntityExportReq, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
2
- /**
3
- * 登录用户信息
4
- */
5
- export interface UserInfo {
6
- userId?: string;
7
- userName?: string;
8
- nickName?: string;
9
- avatar?: string;
10
- tenant: string;
11
- roleCodes: string[];
12
- permCodes: string[];
13
- }
14
- export interface UserApi extends EntityApi {
15
- }
16
- export interface UserReq extends EntityReq {
17
- tenant?: string;
18
- directoryId?: string;
19
- deptId?: string;
20
- loginName?: string;
21
- userStatus?: string;
22
- showDeleted?: boolean;
23
- hasUserStatus?: boolean;
24
- }
25
- export interface UserModel extends EntityModel {
26
- userId?: string;
27
- directoryId?: string;
28
- loginName?: string;
29
- mobilePhone?: string;
30
- mobilePhoneIns?: string;
31
- email?: string;
32
- realName?: string;
33
- nickName?: string;
34
- avatar?: string;
35
- birthDate?: string;
36
- gender?: string;
37
- phoneApproved?: boolean;
38
- emailApproved?: boolean;
39
- approved?: boolean;
40
- status?: string;
41
- lastLockoutTime?: string;
42
- failedTime?: string;
43
- failedCount?: number;
44
- lastLoginTime?: string;
45
- vision?: number;
46
- createBy?: string;
47
- createTime?: string;
48
- updateBy?: string;
49
- updateTime?: string;
50
- deleteBy?: string;
51
- deleted?: boolean;
52
- deleteTime?: string;
53
- mobileEncrypt: boolean;
54
- }
55
- export interface UserPage extends EntityPage {
56
- curPage: number;
57
- pageSize: number;
58
- results: Array<UserModel>;
59
- totalSize: number;
60
- subTotalDto: UserModelTotal;
61
- totalDto: UserModelTotal;
62
- }
63
- export interface UserModelTotal extends EntityTotal {
64
- totalSize: number;
65
- }
66
- export interface UserKey extends EntityKey {
67
- tenant?: string;
68
- userId?: string;
69
- }
70
- export interface UserKeyList extends EntityKeyList {
71
- tenant?: string;
72
- userId?: Array<string>;
73
- }
74
- export interface UserCreateReq extends EntityCreateReq {
75
- tenant?: string;
76
- requestId?: string;
77
- repeatPwd?: string;
78
- avatar?: string;
79
- directoryId?: string;
80
- loginName?: string;
81
- nickName?: string;
82
- realName?: string;
83
- birthDate?: string;
84
- gender?: string;
85
- mobilePhone?: string;
86
- roleIds?: string[];
87
- email?: string;
88
- status?: string;
89
- pwd?: string;
90
- userJobs?: UserJobsItem[];
91
- phoneApproved?: boolean;
92
- emailApproved?: boolean;
93
- }
94
- export interface UserUpdateReq extends EntityUpdateReq {
95
- tenant?: string;
96
- updateMask: string;
97
- requestId?: string;
98
- userId?: string;
99
- avatar?: string;
100
- directoryId?: string;
101
- loginName?: string;
102
- nickName?: string;
103
- realName?: string;
104
- birthDate?: string;
105
- gender?: string;
106
- mobilePhone?: string;
107
- roleIds?: string[];
108
- email?: string;
109
- status?: string;
110
- userJobs?: UserJobsItem[];
111
- phoneApproved?: boolean;
112
- emailApproved?: boolean;
113
- }
114
- export type UserFormReq = UserCreateReq | UserUpdateReq;
115
- export interface UserImportReq extends EntityImportReq {
116
- tenant: string;
117
- requestId: string;
118
- fileNames?: string;
119
- addFlag?: boolean;
120
- updateMask: string;
121
- }
122
- export interface UserExportReq extends EntityExportReq {
123
- tenant: string;
124
- title?: string;
125
- fileName?: string;
126
- req: UserReq;
127
- }
128
- export interface UserEnableKey {
129
- tenant?: string;
130
- enabled?: boolean;
131
- userId?: string;
132
- }
133
- export interface UserEnableKeyList {
134
- tenant?: string;
135
- enabled?: boolean;
136
- userId?: string[];
137
- }
138
- interface UserJobsItem {
139
- deptId: string;
140
- jobId: string;
141
- }
142
- export interface UserResetPwdReq {
143
- tenant?: string;
144
- userId: string;
145
- pwd: string;
146
- repeatPwd: string;
147
- }
148
- export interface OpensKey {
149
- tenant?: string;
150
- appId?: string;
151
- userId?: string;
152
- openId?: string;
153
- }
154
- export interface UserLockReq {
155
- tenant?: string;
156
- lock: boolean;
157
- userId: string[];
158
- }
159
- export interface UserApprovedReq {
160
- tenant?: string;
161
- approved?: string;
162
- userId?: string[];
163
- }
164
- export interface DirectoryModel {
165
- directoryId?: Array<string>;
166
- }
167
- export interface UserOpenModel {
168
- openId?: string;
169
- userId?: string;
170
- appId: string;
171
- unionId?: string;
172
- nickName?: string;
173
- openType: string;
174
- createBy?: string;
175
- }
176
- export interface UserOpenList extends EntityList {
177
- results: Array<UserOpenModel>;
178
- }
179
- export {};
@@ -1,38 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
- listType: {
3
- type: () => "text" | "picture" | "picture-card";
4
- default: string;
5
- };
6
- limit: {
7
- type: NumberConstructor;
8
- default: number;
9
- };
10
- pictureUrl: {
11
- type: ArrayConstructor;
12
- default: () => never[];
13
- };
14
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- filesResponse: (...args: any[]) => void;
16
- uploadFileList: (...args: any[]) => void;
17
- }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
18
- listType: {
19
- type: () => "text" | "picture" | "picture-card";
20
- default: string;
21
- };
22
- limit: {
23
- type: NumberConstructor;
24
- default: number;
25
- };
26
- pictureUrl: {
27
- type: ArrayConstructor;
28
- default: () => never[];
29
- };
30
- }>> & Readonly<{
31
- onFilesResponse?: ((...args: any[]) => any) | undefined;
32
- onUploadFileList?: ((...args: any[]) => any) | undefined;
33
- }>, {
34
- listType: "picture" | "text" | "picture-card";
35
- limit: number;
36
- pictureUrl: unknown[];
37
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
38
- export default _default;
@@ -1,24 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: globalThis.PropType<boolean>;
3
- limit: {
4
- type: NumberConstructor;
5
- default: number;
6
- };
7
- }>, {
8
- clearFileList: () => void;
9
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- filesResponse: (...args: any[]) => void;
11
- uploadFileList: (...args: any[]) => void;
12
- }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
13
- modelValue: globalThis.PropType<boolean>;
14
- limit: {
15
- type: NumberConstructor;
16
- default: number;
17
- };
18
- }>> & Readonly<{
19
- onFilesResponse?: ((...args: any[]) => any) | undefined;
20
- onUploadFileList?: ((...args: any[]) => any) | undefined;
21
- }>, {
22
- limit: number;
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
- export default _default;
@@ -1,24 +0,0 @@
1
- /**
2
- * Check if an element has a class
3
- * @param {HTMLElement} ele
4
- * @param {string} cls
5
- * @returns {boolean}
6
- */
7
- export declare function hasClass(ele: HTMLElement, cls: string): boolean;
8
- /**
9
- * Add class to element
10
- * @param {HTMLElement} ele
11
- * @param {string} cls
12
- */
13
- export declare function addClass(ele: HTMLElement, cls: string): void;
14
- /**
15
- * Remove class from element
16
- * @param {HTMLElement} ele
17
- * @param {string} cls
18
- */
19
- export declare function removeClass(ele: HTMLElement, cls: string): void;
20
- /**
21
- * @param {string} path
22
- * @returns {Boolean}
23
- */
24
- export declare function isExternal(path: string): boolean;