handy-uploader 2.0.1 → 2.0.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Ali Jahanpak
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # Handy Uploader Vue
1
+ # Handy Uploader
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/handy-uploader.svg)](https://badge.fury.io/js/handy-uploader)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
  [![Vue 3](https://img.shields.io/badge/Vue-3.x-4FC08D.svg)](https://vuejs.org/)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)
7
7
 
8
- ## 🚀 [Live Demo](https://friendly-varahamihira-45c09f.netlify.app)
8
+ ## 🚀 [Live Demo](https://illustrious-griffin-257b43.netlify.app)
9
9
 
10
10
  A comprehensive Vue 3 file uploader component library with advanced features including **automatic video thumbnail generation**, multiple upload styles, and extensive file type support.
11
11
 
@@ -387,16 +387,16 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
387
387
 
388
388
  ## 🔗 Links
389
389
 
390
- - [GitHub Repository](https://github.com/yourusername/handy-uploader)
390
+ - [GitHub Repository](https://github.com/alijahanpak/vue-file-uploader)
391
391
  - [npm Package](https://www.npmjs.com/package/handy-uploader)
392
- - [Documentation](https://github.com/yourusername/handy-uploader#readme)
393
- - [Issues](https://github.com/yourusername/handy-uploader/issues)
392
+ - [Documentation](https://github.com/alijahanpak/vue-file-uploader#readme)
393
+ - [Issues](https://github.com/alijahanpak/vue-file-uploader/issues)
394
394
 
395
395
  ## 📊 Stats
396
396
 
397
397
  ![npm downloads](https://img.shields.io/npm/dm/handy-uploader.svg)
398
- ![GitHub stars](https://img.shields.io/github/stars/yourusername/handy-uploader.svg)
399
- ![GitHub issues](https://img.shields.io/github/issues/yourusername/handy-uploader.svg)
398
+ ![GitHub stars](https://img.shields.io/github/stars/alijahanpak/handy-uploader.svg)
399
+ ![GitHub issues](https://img.shields.io/github/issues/alijahanpak/handy-uploader.svg)
400
400
 
401
401
  ---
402
402
 
@@ -7,18 +7,10 @@ interface Props {
7
7
  maxFileCount: number;
8
8
  selectedLang: LanguageCollection;
9
9
  }
10
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  openInputDocumentModal: (...args: any[]) => void;
12
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
13
- onOpenInputDocumentModal?: ((...args: any[]) => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
13
+ onOpenInputDocumentModal?: (...args: any[]) => any;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
15
16
  export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToRuntimeProps<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('vue').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
@@ -2,28 +2,8 @@ interface Props {
2
2
  fileFormat: string;
3
3
  size: number;
4
4
  }
5
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
5
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
6
6
  size: number;
7
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
- size: number;
9
- }>>> & Readonly<{}>, {
10
- size: number;
11
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
12
9
  export default _default;
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToRuntimeProps<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
22
- type __VLS_WithDefaults<P, D> = {
23
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
24
- default: D[K];
25
- }> : P[K];
26
- };
27
- type __VLS_Prettify<T> = {
28
- [K in keyof T]: T[K];
29
- } & {};
@@ -13,48 +13,20 @@ interface Props {
13
13
  deletePermission: boolean;
14
14
  selectedLang: LanguageCollection;
15
15
  }
16
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
17
- thumb: boolean;
18
- lang: string;
19
- cols: number;
20
- editPermission: boolean;
21
- deletePermission: boolean;
22
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
17
  openDeleteDialog: (...args: any[]) => void;
24
18
  openEditDocumentDialog: (...args: any[]) => void;
25
19
  setCardTheme: (...args: any[]) => void;
26
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
27
- thumb: boolean;
28
- lang: string;
29
- cols: number;
30
- editPermission: boolean;
31
- deletePermission: boolean;
32
- }>>> & Readonly<{
33
- onOpenDeleteDialog?: ((...args: any[]) => any) | undefined;
34
- onOpenEditDocumentDialog?: ((...args: any[]) => any) | undefined;
35
- onSetCardTheme?: ((...args: any[]) => any) | undefined;
20
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
21
+ onOpenDeleteDialog?: (...args: any[]) => any;
22
+ onOpenEditDocumentDialog?: (...args: any[]) => any;
23
+ onSetCardTheme?: (...args: any[]) => any;
36
24
  }>, {
37
25
  lang: string;
38
26
  thumb: boolean;
39
27
  cols: number;
40
28
  editPermission: boolean;
41
29
  deletePermission: boolean;
42
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: typeof __VLS_export;
43
32
  export default _default;
44
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
- type __VLS_TypePropsToRuntimeProps<T> = {
46
- [K in keyof T]-?: {} extends Pick<T, K> ? {
47
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
48
- } : {
49
- type: import('vue').PropType<T[K]>;
50
- required: true;
51
- };
52
- };
53
- type __VLS_WithDefaults<P, D> = {
54
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
55
- default: D[K];
56
- }> : P[K];
57
- };
58
- type __VLS_Prettify<T> = {
59
- [K in keyof T]: T[K];
60
- } & {};
@@ -11,28 +11,12 @@ interface Props {
11
11
  tableHeight: number;
12
12
  selectedLang: LanguageCollection;
13
13
  }
14
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
- thumb: boolean;
16
- lang: string;
17
- cols: number;
18
- editPermission: boolean;
19
- deletePermission: boolean;
20
- tableFixedHeader: boolean;
21
- tableHeight: number;
22
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
15
  openDeleteDialog: (...args: any[]) => void;
24
16
  openEditDocumentDialog: (...args: any[]) => void;
25
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
26
- thumb: boolean;
27
- lang: string;
28
- cols: number;
29
- editPermission: boolean;
30
- deletePermission: boolean;
31
- tableFixedHeader: boolean;
32
- tableHeight: number;
33
- }>>> & Readonly<{
34
- onOpenDeleteDialog?: ((...args: any[]) => any) | undefined;
35
- onOpenEditDocumentDialog?: ((...args: any[]) => any) | undefined;
17
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
18
+ onOpenDeleteDialog?: (...args: any[]) => any;
19
+ onOpenEditDocumentDialog?: (...args: any[]) => any;
36
20
  }>, {
37
21
  tableFixedHeader: boolean;
38
22
  tableHeight: number;
@@ -41,22 +25,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
41
25
  cols: number;
42
26
  editPermission: boolean;
43
27
  deletePermission: boolean;
44
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: typeof __VLS_export;
45
30
  export default _default;
46
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
47
- type __VLS_TypePropsToRuntimeProps<T> = {
48
- [K in keyof T]-?: {} extends Pick<T, K> ? {
49
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
50
- } : {
51
- type: import('vue').PropType<T[K]>;
52
- required: true;
53
- };
54
- };
55
- type __VLS_WithDefaults<P, D> = {
56
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
57
- default: D[K];
58
- }> : P[K];
59
- };
60
- type __VLS_Prettify<T> = {
61
- [K in keyof T]: T[K];
62
- } & {};
@@ -2,32 +2,12 @@ import type { DocumentAttachment, BaseUploaderProps, CardThemeProps, LanguageCod
2
2
  interface Props extends BaseUploaderProps, CardThemeProps {
3
3
  lang: LanguageCode;
4
4
  }
5
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
6
- thumb: boolean;
7
- lang: string;
8
- cols: number;
9
- editPermission: boolean;
10
- deletePermission: boolean;
11
- outlined: boolean;
12
- raised: boolean;
13
- shaped: boolean;
14
- tile: boolean;
15
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- openDeleteDialog: (index: number, deleteId: string) => void;
17
- openEditDocumentDialog: (item: DocumentAttachment, index: number) => void;
18
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
19
- thumb: boolean;
20
- lang: string;
21
- cols: number;
22
- editPermission: boolean;
23
- deletePermission: boolean;
24
- outlined: boolean;
25
- raised: boolean;
26
- shaped: boolean;
27
- tile: boolean;
28
- }>>> & Readonly<{
29
- onOpenDeleteDialog?: ((index: number, deleteId: string) => any) | undefined;
30
- onOpenEditDocumentDialog?: ((item: DocumentAttachment, index: number) => any) | undefined;
5
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ openDeleteDialog: (index: number, deleteId: string) => any;
7
+ openEditDocumentDialog: (item: DocumentAttachment, index: number) => any;
8
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ onOpenDeleteDialog?: (index: number, deleteId: string) => any;
10
+ onOpenEditDocumentDialog?: (item: DocumentAttachment, index: number) => any;
31
11
  }>, {
32
12
  outlined: boolean;
33
13
  shaped: boolean;
@@ -38,22 +18,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
38
18
  cols: number;
39
19
  editPermission: boolean;
40
20
  deletePermission: boolean;
41
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
42
23
  export default _default;
43
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
- type __VLS_TypePropsToRuntimeProps<T> = {
45
- [K in keyof T]-?: {} extends Pick<T, K> ? {
46
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
47
- } : {
48
- type: import('vue').PropType<T[K]>;
49
- required: true;
50
- };
51
- };
52
- type __VLS_WithDefaults<P, D> = {
53
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
- default: D[K];
55
- }> : P[K];
56
- };
57
- type __VLS_Prettify<T> = {
58
- [K in keyof T]: T[K];
59
- } & {};
@@ -30,28 +30,7 @@ interface Props {
30
30
  shaped?: boolean;
31
31
  tile?: boolean;
32
32
  }
33
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
34
- maxFileSize: number;
35
- fileUploaderType: string;
36
- maxFileCount: number;
37
- badgeCounter: boolean;
38
- btnColor: string;
39
- imageCompressLevel: number;
40
- thumb: boolean;
41
- tableFixedHeader: boolean;
42
- tableHeight: number;
43
- lang: string;
44
- rtlSupport: boolean;
45
- changeFileName: boolean;
46
- addFileDescription: boolean;
47
- addFileTag: boolean;
48
- cols: number;
49
- customLang: null;
50
- insertPermission: boolean;
51
- editPermission: boolean;
52
- deletePermission: boolean;
53
- cardType: string;
54
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
34
  updateCardType: (...args: any[]) => void;
56
35
  updateBadgeCounter: (...args: any[]) => void;
57
36
  updateMaxFileCount: (...args: any[]) => void;
@@ -67,43 +46,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
67
46
  updateTableHeight: (...args: any[]) => void;
68
47
  updateLang: (...args: any[]) => void;
69
48
  updateDocumentAttachment: (...args: any[]) => void;
70
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
71
- maxFileSize: number;
72
- fileUploaderType: string;
73
- maxFileCount: number;
74
- badgeCounter: boolean;
75
- btnColor: string;
76
- imageCompressLevel: number;
77
- thumb: boolean;
78
- tableFixedHeader: boolean;
79
- tableHeight: number;
80
- lang: string;
81
- rtlSupport: boolean;
82
- changeFileName: boolean;
83
- addFileDescription: boolean;
84
- addFileTag: boolean;
85
- cols: number;
86
- customLang: null;
87
- insertPermission: boolean;
88
- editPermission: boolean;
89
- deletePermission: boolean;
90
- cardType: string;
91
- }>>> & Readonly<{
92
- onUpdateCardType?: ((...args: any[]) => any) | undefined;
93
- onUpdateBadgeCounter?: ((...args: any[]) => any) | undefined;
94
- onUpdateMaxFileCount?: ((...args: any[]) => any) | undefined;
95
- onUpdateMaxFileSize?: ((...args: any[]) => any) | undefined;
96
- onUpdateImageCompressor?: ((...args: any[]) => any) | undefined;
97
- onUpdateImageCompressLevel?: ((...args: any[]) => any) | undefined;
98
- onUpdateFileAccept?: ((...args: any[]) => any) | undefined;
99
- onUpdateThumb?: ((...args: any[]) => any) | undefined;
100
- onUpdateChangeFileName?: ((...args: any[]) => any) | undefined;
101
- onUpdateAddFileDescription?: ((...args: any[]) => any) | undefined;
102
- onUpdateTableThumbColumn?: ((...args: any[]) => any) | undefined;
103
- onUpdateTableFixedHeader?: ((...args: any[]) => any) | undefined;
104
- onUpdateTableHeight?: ((...args: any[]) => any) | undefined;
105
- onUpdateLang?: ((...args: any[]) => any) | undefined;
106
- onUpdateDocumentAttachment?: ((...args: any[]) => any) | undefined;
49
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
50
+ onUpdateCardType?: (...args: any[]) => any;
51
+ onUpdateBadgeCounter?: (...args: any[]) => any;
52
+ onUpdateMaxFileCount?: (...args: any[]) => any;
53
+ onUpdateMaxFileSize?: (...args: any[]) => any;
54
+ onUpdateImageCompressor?: (...args: any[]) => any;
55
+ onUpdateImageCompressLevel?: (...args: any[]) => any;
56
+ onUpdateFileAccept?: (...args: any[]) => any;
57
+ onUpdateThumb?: (...args: any[]) => any;
58
+ onUpdateChangeFileName?: (...args: any[]) => any;
59
+ onUpdateAddFileDescription?: (...args: any[]) => any;
60
+ onUpdateTableThumbColumn?: (...args: any[]) => any;
61
+ onUpdateTableFixedHeader?: (...args: any[]) => any;
62
+ onUpdateTableHeight?: (...args: any[]) => any;
63
+ onUpdateLang?: (...args: any[]) => any;
64
+ onUpdateDocumentAttachment?: (...args: any[]) => any;
107
65
  }>, {
108
66
  maxFileSize: number;
109
67
  fileUploaderType: FileUploaderType;
@@ -125,22 +83,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
125
83
  editPermission: boolean;
126
84
  deletePermission: boolean;
127
85
  cardType: CardType;
128
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
86
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
87
+ declare const _default: typeof __VLS_export;
129
88
  export default _default;
130
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
131
- type __VLS_TypePropsToRuntimeProps<T> = {
132
- [K in keyof T]-?: {} extends Pick<T, K> ? {
133
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
134
- } : {
135
- type: import('vue').PropType<T[K]>;
136
- required: true;
137
- };
138
- };
139
- type __VLS_WithDefaults<P, D> = {
140
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
141
- default: D[K];
142
- }> : P[K];
143
- };
144
- type __VLS_Prettify<T> = {
145
- [K in keyof T]: T[K];
146
- } & {};
@@ -17,18 +17,18 @@ export interface ErrorHandlerOptions {
17
17
  export declare function useErrorHandler(options?: ErrorHandlerOptions): {
18
18
  errors: unknown;
19
19
  isLoading: unknown;
20
- addError: (message: string, type?: ErrorInfo['type'], context?: Record<string, any>, action?: ErrorInfo['action']) => string;
20
+ addError: (message: string, type?: ErrorInfo["type"], context?: Record<string, any>, action?: ErrorInfo["action"]) => string;
21
21
  removeError: (id: string) => boolean;
22
22
  clearErrors: () => void;
23
- clearErrorsByType: (type: ErrorInfo['type']) => void;
23
+ clearErrorsByType: (type: ErrorInfo["type"]) => void;
24
24
  handleAsync: <T>(operation: () => Promise<T>, errorMessage?: string, context?: Record<string, any>) => Promise<T | null>;
25
25
  validate: (condition: boolean, message: string, context?: Record<string, any>) => boolean;
26
26
  showSuccess: (message: string, context?: Record<string, any>) => string;
27
27
  showWarning: (message: string, context?: Record<string, any>) => string;
28
28
  showInfo: (message: string, context?: Record<string, any>) => string;
29
- getErrorsByType: (type: ErrorInfo['type']) => ErrorInfo[];
29
+ getErrorsByType: (type: ErrorInfo["type"]) => ErrorInfo[];
30
30
  getLatestError: () => ErrorInfo | null;
31
- hasErrors: (type?: ErrorInfo['type']) => boolean;
31
+ hasErrors: (type?: ErrorInfo["type"]) => boolean;
32
32
  fileUploadErrors: {
33
33
  fileSizeExceeded: (fileName: string, maxSize: number) => string;
34
34
  fileCountExceeded: (maxCount: number) => string;
@@ -23,11 +23,11 @@ export declare function useFileUpload(documentAttachment: Ref<DocumentAttachment
23
23
  totalSize: import("vue").ComputedRef<number>;
24
24
  uploadFiles: (files: FileList | File[]) => Promise<boolean>;
25
25
  removeFile: (index: number) => boolean;
26
- updateFileMetadata: (index: number, updates: Partial<Pick<FileData, 'name' | 'description' | 'tags'>>) => boolean;
26
+ updateFileMetadata: (index: number, updates: Partial<Pick<FileData, "name" | "description" | "tags">>) => boolean;
27
27
  clearAllFiles: () => void;
28
28
  validateFile: (file: File) => {
29
29
  valid: boolean;
30
30
  error?: string;
31
31
  };
32
- showSnackbar: (text: string, color?: 'success' | 'error' | 'warning') => void;
32
+ showSnackbar: (text: string, color?: "success" | "error" | "warning") => void;
33
33
  };
@@ -0,0 +1 @@
1
+ .table-row[data-v-d05b814b]:hover{background-color:#0000000a}.v-table[data-v-d05b814b]{border-radius:8px}.v-table th[data-v-d05b814b]{font-weight:600;background-color:#00000005}.file-card[data-v-f7000da4]{transition:all .3s ease;border-radius:12px!important;overflow:hidden;display:flex;flex-direction:column}.file-card[data-v-f7000da4]:hover{transform:translateY(-2px);box-shadow:0 4px 20px #0000001a!important}.thumbnail-container[data-v-f7000da4]{border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #0000001a}.v-card-title[data-v-f7000da4]{word-break:break-word;display:flex;align-items:center;justify-content:center}.v-chip[data-v-f7000da4]{font-weight:500}.v-btn[data-v-f7000da4]{transition:all .2s ease}.v-btn[data-v-f7000da4]:hover{transform:scale(1.1)}