@fewangsit/wangsvue 1.5.206 → 1.5.207-alpha.1
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/components/badgegroup/BadgeGroup.vue.d.ts +0 -5
- package/components/icon/Icon.vue.d.ts +1 -0
- package/components/username/UserName.vue.d.ts +0 -6
- package/package.json +1 -1
- package/{components/taskdetail/helpers/addAttachment.helper.d.ts → utils/addAttachment.util.d.ts} +3 -2
- package/utils/index.d.ts +2 -0
- package/wangsvue.es.js +9928 -9901
- package/wangsvue.system.js +93 -93
|
@@ -35,11 +35,6 @@ export interface BadgeGroupProps
|
|
|
35
35
|
* The dialog header shown on more button clicked
|
|
36
36
|
*/
|
|
37
37
|
headerLabel?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Specify if the badge should be emptyable
|
|
40
|
-
* @default false
|
|
41
|
-
*/
|
|
42
|
-
emptyable?: boolean;
|
|
43
38
|
}
|
|
44
39
|
|
|
45
40
|
export interface BadgeGroupSlots {
|
|
@@ -81,12 +81,6 @@ export interface UserNameProps extends Partial<UserNameComponentConfigs> {
|
|
|
81
81
|
* The full user Object
|
|
82
82
|
*/
|
|
83
83
|
user?: GeneralUser;
|
|
84
|
-
/**
|
|
85
|
-
* Specify if the component can be emptyable
|
|
86
|
-
*
|
|
87
|
-
* @default false
|
|
88
|
-
*/
|
|
89
|
-
emptyable?: boolean;
|
|
90
84
|
|
|
91
85
|
/**
|
|
92
86
|
* When it sets to false, the props.user will be used
|
package/package.json
CHANGED
package/{components/taskdetail/helpers/addAttachment.helper.d.ts → utils/addAttachment.util.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type FileType = 'link' | 'image' | 'txt' | 'doc' | 'xls' | 'pdf' | 'csv' | 'html' | 'json' | 'mp4' | 'mkv' | 'compressed' | 'unknown';
|
|
2
2
|
export type FormattedFile = {
|
|
3
3
|
name: string;
|
|
4
4
|
type: string;
|
|
@@ -29,9 +29,10 @@ export declare const formatFile: (file: File) => FormattedFile;
|
|
|
29
29
|
* Checks if a file is under the maximum size limit.
|
|
30
30
|
*
|
|
31
31
|
* @param file The file to be checked.
|
|
32
|
+
* @param customFileSize The maximum size limit in megabytes. @default 1
|
|
32
33
|
* @returns True if the file is under the maximum size limit, false otherwise.
|
|
33
34
|
*/
|
|
34
|
-
export declare const validateFileSize: (file: File) => boolean;
|
|
35
|
+
export declare const validateFileSize: (file: File, customFileSize?: number) => boolean;
|
|
35
36
|
/**
|
|
36
37
|
* Checks if a file has a valid type.
|
|
37
38
|
* Make sure user doesn't upload a folder.
|
package/utils/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { default as convertJsonImage } from './convertJsonImage.util';
|
|
|
10
10
|
export { default as useToast } from './toast.util';
|
|
11
11
|
export type { ToastParams, ToastMethod } from './toast.util';
|
|
12
12
|
export type { ITable } from './exportToExcel.util';
|
|
13
|
+
export type { FileType, FormattedFile } from './addAttachment.util';
|
|
13
14
|
export { default as exportToExcel } from './exportToExcel.util';
|
|
14
15
|
export { default as useToast } from './toast.util';
|
|
15
16
|
export { default as getAttachmentIcon } from './getAttachmentIcon.util';
|
|
@@ -21,3 +22,4 @@ export { getNestedProperyValue, isEmptyObject } from './object.util';
|
|
|
21
22
|
export { formatISODate } from './date.util';
|
|
22
23
|
export { genPlaceholder } from './genPlaceholder.util';
|
|
23
24
|
export { checkRouteAccess } from './role.util';
|
|
25
|
+
export { getFileType, formatFile, validateFileSize, validateFileType, } from './addAttachment.util';
|