@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.
@@ -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 {
@@ -130,6 +130,7 @@ export type WangsIcons =
130
130
  | 'menu-unfold'
131
131
  | 'minus'
132
132
  | 'money-cny-box'
133
+ | 'money-dollar-circle'
133
134
  | 'more'
134
135
  | 'move-to'
135
136
  | 'nfc'
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue",
3
- "version": "1.5.206",
3
+ "version": "1.5.207-alpha.1",
4
4
  "author": "fewangsit",
5
5
  "description": "Wangsit VueJS Component Library",
6
6
  "module": "./wangsvue.es.js",
@@ -1,4 +1,4 @@
1
- import { FileType } from '../blocks/sections/Attachment/AttachmentItem.vue.d';
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';