@mingto/mt-ui 1.1.32

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 (155) hide show
  1. package/README.md +19 -0
  2. package/dist/avatar-image/index.d.ts +86 -0
  3. package/dist/avatar-image/src/avatar-image.d.ts +35 -0
  4. package/dist/avatar-image/src/avatar-image.vue.d.ts +45 -0
  5. package/dist/avatar-text/index.d.ts +92 -0
  6. package/dist/avatar-text/src/avatar-text.d.ts +35 -0
  7. package/dist/avatar-text/src/avatar-text.vue.d.ts +62 -0
  8. package/dist/backtop/index.d.ts +103 -0
  9. package/dist/backtop/src/backtop.d.ts +43 -0
  10. package/dist/backtop/src/backtop.vue.d.ts +66 -0
  11. package/dist/badge/index.d.ts +117 -0
  12. package/dist/badge/src/badge.d.ts +48 -0
  13. package/dist/badge/src/badge.vue.d.ts +76 -0
  14. package/dist/button/index.d.ts +230 -0
  15. package/dist/button/src/button.d.ts +93 -0
  16. package/dist/button/src/button.vue.d.ts +144 -0
  17. package/dist/button-group/index.d.ts +18 -0
  18. package/dist/button-group/src/button-group.d.ts +3 -0
  19. package/dist/button-group/src/button-group.vue.d.ts +17 -0
  20. package/dist/cell/index.d.ts +157 -0
  21. package/dist/cell/src/cell.d.ts +56 -0
  22. package/dist/cell/src/cell.vue.d.ts +103 -0
  23. package/dist/cell-group/index.d.ts +83 -0
  24. package/dist/cell-group/src/cell-group.d.ts +104 -0
  25. package/dist/collapse-transition/index.d.ts +18 -0
  26. package/dist/collapse-transition/src/collapse-transition.d.ts +4 -0
  27. package/dist/collapse-transition/src/collapse-transition.vue.d.ts +17 -0
  28. package/dist/config-provider/index.d.ts +51 -0
  29. package/dist/config-provider/src/config-provider.d.ts +32 -0
  30. package/dist/dialog/index.d.ts +414 -0
  31. package/dist/dialog/src/dialog.d.ts +124 -0
  32. package/dist/dialog/src/dialog.vue.d.ts +174 -0
  33. package/dist/dialog/src/layout/dialog-confirm-layout.vue.d.ts +116 -0
  34. package/dist/empty/index.d.ts +86 -0
  35. package/dist/empty/src/empty.d.ts +35 -0
  36. package/dist/empty/src/empty.vue.d.ts +45 -0
  37. package/dist/fade-transition/index.d.ts +49 -0
  38. package/dist/fade-transition/src/fade-transition.d.ts +9 -0
  39. package/dist/fade-transition/src/fade-transition.vue.d.ts +33 -0
  40. package/dist/file-preview/index.d.ts +4 -0
  41. package/dist/file-preview/src/ai-music-preview.vue.d.ts +43 -0
  42. package/dist/file-preview/src/file-preview.d.ts +41 -0
  43. package/dist/file-preview/src/file-preview.vue.d.ts +42 -0
  44. package/dist/file-preview/src/iframe-preview.vue.d.ts +16 -0
  45. package/dist/file-preview/src/image-preview.vue.d.ts +14 -0
  46. package/dist/file-preview/src/method.d.ts +9 -0
  47. package/dist/file-preview/src/music-preview.vue.d.ts +14 -0
  48. package/dist/file-preview/src/video-preview.vue.d.ts +14 -0
  49. package/dist/hooks/dom/index.d.ts +1 -0
  50. package/dist/hooks/dom/use-z-index.d.ts +3 -0
  51. package/dist/hooks/event/index.d.ts +1 -0
  52. package/dist/hooks/event/use-click-outside.d.ts +2 -0
  53. package/dist/hooks/event/use-same-target.d.ts +5 -0
  54. package/dist/hooks/index.d.ts +4 -0
  55. package/dist/hooks/locale/index.d.ts +1 -0
  56. package/dist/hooks/locale/use-locale.d.ts +10 -0
  57. package/dist/hooks/vue/index.d.ts +2 -0
  58. package/dist/hooks/vue/use-children.d.ts +5 -0
  59. package/dist/hooks/vue/use-parent.d.ts +11 -0
  60. package/dist/icon/assets/font/iconfont.json.d.ts +2034 -0
  61. package/dist/icon/index.d.ts +98 -0
  62. package/dist/icon/src/icon.d.ts +42 -0
  63. package/dist/icon/src/icon.vue.d.ts +53 -0
  64. package/dist/image/index.d.ts +142 -0
  65. package/dist/image/src/image.d.ts +50 -0
  66. package/dist/image/src/image.vue.d.ts +92 -0
  67. package/dist/index.d.ts +80 -0
  68. package/dist/index.es.js +64743 -0
  69. package/dist/index.umd.js +64742 -0
  70. package/dist/infinite-scroll/index.d.ts +319 -0
  71. package/dist/infinite-scroll/src/infinite-scroll.d.ts +123 -0
  72. package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +197 -0
  73. package/dist/loading/index.d.ts +72 -0
  74. package/dist/loading/src/loading.d.ts +27 -0
  75. package/dist/loading/src/loading.vue.d.ts +49 -0
  76. package/dist/locale/index.d.ts +17 -0
  77. package/dist/locale/lang/ar.d.ts +40 -0
  78. package/dist/locale/lang/en.d.ts +40 -0
  79. package/dist/locale/lang/ms.d.ts +40 -0
  80. package/dist/locale/lang/th.d.ts +40 -0
  81. package/dist/locale/lang/vi.d.ts +40 -0
  82. package/dist/locale/lang/zh-cn.d.ts +40 -0
  83. package/dist/locale/lang/zh-tw.d.ts +40 -0
  84. package/dist/message/index.d.ts +4 -0
  85. package/dist/message/src/instance.d.ts +16 -0
  86. package/dist/message/src/message.d.ts +69 -0
  87. package/dist/message/src/message.vue.d.ts +96 -0
  88. package/dist/message/src/method.d.ts +3 -0
  89. package/dist/overlay/index.d.ts +54 -0
  90. package/dist/overlay/src/overlay.d.ts +18 -0
  91. package/dist/overlay/src/overlay.vue.d.ts +38 -0
  92. package/dist/popover/index.d.ts +596 -0
  93. package/dist/popover/src/arrow.vue.d.ts +6 -0
  94. package/dist/popover/src/content.vue.d.ts +216 -0
  95. package/dist/popover/src/popover.d.ts +217 -0
  96. package/dist/popover/src/popover.vue.d.ts +344 -0
  97. package/dist/popover/src/trigger-ref.d.ts +17 -0
  98. package/dist/popover/src/trigger.vue.d.ts +59 -0
  99. package/dist/poster/index.d.ts +3 -0
  100. package/dist/poster/src/method.d.ts +51 -0
  101. package/dist/progress/index.d.ts +170 -0
  102. package/dist/progress/src/progress.d.ts +47 -0
  103. package/dist/progress/src/progress.vue.d.ts +109 -0
  104. package/dist/qrcode/index.d.ts +160 -0
  105. package/dist/qrcode/src/qrcode.d.ts +71 -0
  106. package/dist/qrcode/src/qrcode.vue.d.ts +88 -0
  107. package/dist/style.css +20075 -0
  108. package/dist/tab/index.d.ts +57 -0
  109. package/dist/tab/src/tab.d.ts +23 -0
  110. package/dist/tab/src/tab.vue.d.ts +25 -0
  111. package/dist/table/index.d.ts +20 -0
  112. package/dist/table/src/table.vue.d.ts +19 -0
  113. package/dist/table-column/index.d.ts +22 -0
  114. package/dist/table-column/src/table-column.vue.d.ts +21 -0
  115. package/dist/tabs/index.d.ts +71 -0
  116. package/dist/tabs/src/tabs.d.ts +26 -0
  117. package/dist/tabs/src/tabs.vue.d.ts +48 -0
  118. package/dist/tag/index.d.ts +118 -0
  119. package/dist/tag/src/tag.d.ts +44 -0
  120. package/dist/tag/src/tag.vue.d.ts +75 -0
  121. package/dist/teleport/index.d.ts +52 -0
  122. package/dist/teleport/src/teleport.d.ts +12 -0
  123. package/dist/teleport/src/teleport.vue.d.ts +38 -0
  124. package/dist/tooltip/index.d.ts +934 -0
  125. package/dist/tooltip/src/tooltip.d.ts +94 -0
  126. package/dist/tooltip/src/tooltip.vue.d.ts +1295 -0
  127. package/dist/upload/index.d.ts +982 -0
  128. package/dist/upload/src/layout/upload-file-list-layout.vue.d.ts +29 -0
  129. package/dist/upload/src/layout/upload-image-grid-layout.vue.d.ts +59 -0
  130. package/dist/upload/src/layout/upload-image-only-layout.vue.d.ts +59 -0
  131. package/dist/upload/src/trigger/upload-file-list-trigger.vue.d.ts +47 -0
  132. package/dist/upload/src/trigger/upload-image-grid-trigger.vue.d.ts +45 -0
  133. package/dist/upload/src/trigger/upload-image-only-trigger.vue.d.ts +135 -0
  134. package/dist/upload/src/upload-config.d.ts +3 -0
  135. package/dist/upload/src/upload-content.d.ts +63 -0
  136. package/dist/upload/src/upload-content.vue.d.ts +129 -0
  137. package/dist/upload/src/upload-full-screen-drag.vue.d.ts +12 -0
  138. package/dist/upload/src/upload-image-copper.vue.d.ts +9 -0
  139. package/dist/upload/src/upload.d.ts +196 -0
  140. package/dist/upload/src/upload.vue.d.ts +825 -0
  141. package/dist/upload/src/use-full-scree-drag.d.ts +6 -0
  142. package/dist/utils/class/deferred.d.ts +7 -0
  143. package/dist/utils/dom/__test__/is-valid-css-value.test.d.ts +1 -0
  144. package/dist/utils/dom/index.d.ts +2 -0
  145. package/dist/utils/dom/style.d.ts +10 -0
  146. package/dist/utils/dom/unit.d.ts +35 -0
  147. package/dist/utils/function/index.d.ts +1 -0
  148. package/dist/utils/function/shared.d.ts +2 -0
  149. package/dist/utils/index.d.ts +5 -0
  150. package/dist/utils/prop/index.d.ts +1 -0
  151. package/dist/utils/prop/size.d.ts +9 -0
  152. package/dist/utils/vue/children.d.ts +5 -0
  153. package/dist/utils/vue/index.d.ts +2 -0
  154. package/dist/utils/vue/install.d.ts +5 -0
  155. package/package.json +41 -0
@@ -0,0 +1,29 @@
1
+ import { PropType } from 'vue';
2
+ import { UploadFile } from '../upload';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ fileList: {
5
+ type: PropType<UploadFile[]>;
6
+ default: () => never[];
7
+ };
8
+ disabled: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ remove: (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ fileList: {
16
+ type: PropType<UploadFile[]>;
17
+ default: () => never[];
18
+ };
19
+ disabled: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }>> & Readonly<{
24
+ onRemove?: ((...args: any[]) => any) | undefined;
25
+ }>, {
26
+ disabled: boolean;
27
+ fileList: UploadFile[];
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
29
+ export default _default;
@@ -0,0 +1,59 @@
1
+ import { PropType } from 'vue';
2
+ import { CopperOptions, UploadFile } from '../upload';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ fileList: {
5
+ type: PropType<UploadFile[]>;
6
+ default: () => never[];
7
+ };
8
+ disabled: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ copperOptions: {
13
+ type: PropType<CopperOptions>;
14
+ default: () => {};
15
+ };
16
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ remove: (...args: any[]) => void;
18
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ fileList: {
20
+ type: PropType<UploadFile[]>;
21
+ default: () => never[];
22
+ };
23
+ disabled: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ copperOptions: {
28
+ type: PropType<CopperOptions>;
29
+ default: () => {};
30
+ };
31
+ }>> & Readonly<{
32
+ onRemove?: ((...args: any[]) => any) | undefined;
33
+ }>, {
34
+ disabled: boolean;
35
+ copperOptions: CopperOptions;
36
+ fileList: UploadFile[];
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
38
+ copperRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
39
+ open(source: File | string): Promise<{
40
+ file: File;
41
+ }>;
42
+ close(): void;
43
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
44
+ cropperRef: unknown;
45
+ }, any, import('vue').ComponentProvideOptions, {
46
+ P: {};
47
+ B: {};
48
+ D: {};
49
+ C: {};
50
+ M: {};
51
+ Defaults: {};
52
+ }, Readonly<{}> & Readonly<{}>, {
53
+ open(source: File | string): Promise<{
54
+ file: File;
55
+ }>;
56
+ close(): void;
57
+ }, {}, {}, {}, {}> | null;
58
+ }, any>;
59
+ export default _default;
@@ -0,0 +1,59 @@
1
+ import { PropType } from 'vue';
2
+ import { CopperOptions, UploadFile } from '../upload';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ fileList: {
5
+ type: PropType<UploadFile[]>;
6
+ default: () => never[];
7
+ };
8
+ disabled: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ copperOptions: {
13
+ type: PropType<CopperOptions>;
14
+ default: () => {};
15
+ };
16
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ remove: (...args: any[]) => void;
18
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ fileList: {
20
+ type: PropType<UploadFile[]>;
21
+ default: () => never[];
22
+ };
23
+ disabled: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ copperOptions: {
28
+ type: PropType<CopperOptions>;
29
+ default: () => {};
30
+ };
31
+ }>> & Readonly<{
32
+ onRemove?: ((...args: any[]) => any) | undefined;
33
+ }>, {
34
+ disabled: boolean;
35
+ copperOptions: CopperOptions;
36
+ fileList: UploadFile[];
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
38
+ copperRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
39
+ open(source: File | string): Promise<{
40
+ file: File;
41
+ }>;
42
+ close(): void;
43
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
44
+ cropperRef: unknown;
45
+ }, any, import('vue').ComponentProvideOptions, {
46
+ P: {};
47
+ B: {};
48
+ D: {};
49
+ C: {};
50
+ M: {};
51
+ Defaults: {};
52
+ }, Readonly<{}> & Readonly<{}>, {
53
+ open(source: File | string): Promise<{
54
+ file: File;
55
+ }>;
56
+ close(): void;
57
+ }, {}, {}, {}, {}> | null;
58
+ }, HTMLDivElement>;
59
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import { PropType } from 'vue';
2
+ import { UploadFile } from '../upload';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ trigger?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLDivElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ fileList: {
14
+ type: PropType<UploadFile[]>;
15
+ default: () => never[];
16
+ };
17
+ disabled: {
18
+ type: BooleanConstructor;
19
+ };
20
+ description: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
+ fileList: {
26
+ type: PropType<UploadFile[]>;
27
+ default: () => never[];
28
+ };
29
+ disabled: {
30
+ type: BooleanConstructor;
31
+ };
32
+ description: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ }>> & Readonly<{}>, {
37
+ disabled: boolean;
38
+ fileList: UploadFile[];
39
+ description: string;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,45 @@
1
+ import { PropType } from 'vue';
2
+ import { CopperOptions, UploadFile } from '../upload';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<Record<string, any>> & Record<string, any>;
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ fileList: {
12
+ type: PropType<UploadFile[]>;
13
+ default: () => never[];
14
+ };
15
+ disabled: {
16
+ type: BooleanConstructor;
17
+ };
18
+ copperOptions: {
19
+ type: PropType<CopperOptions>;
20
+ default: () => {};
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ fileList: {
24
+ type: PropType<UploadFile[]>;
25
+ default: () => never[];
26
+ };
27
+ disabled: {
28
+ type: BooleanConstructor;
29
+ };
30
+ copperOptions: {
31
+ type: PropType<CopperOptions>;
32
+ default: () => {};
33
+ };
34
+ }>> & Readonly<{}>, {
35
+ disabled: boolean;
36
+ copperOptions: CopperOptions;
37
+ fileList: UploadFile[];
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
40
+ export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,135 @@
1
+ import { PropType } from 'vue';
2
+ import { CopperOptions, UploadFile } from '../upload';
3
+ import { NOOP } from '../../../utils';
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: Readonly<Record<string, any>> & Record<string, any>;
7
+ refs: {
8
+ copperRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
9
+ open(source: File | string): Promise<{
10
+ file: File;
11
+ }>;
12
+ close(): void;
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
14
+ cropperRef: unknown;
15
+ }, any, import('vue').ComponentProvideOptions, {
16
+ P: {};
17
+ B: {};
18
+ D: {};
19
+ C: {};
20
+ M: {};
21
+ Defaults: {};
22
+ }, Readonly<{}> & Readonly<{}>, {
23
+ open(source: File | string): Promise<{
24
+ file: File;
25
+ }>;
26
+ close(): void;
27
+ }, {}, {}, {}, {}> | null;
28
+ inputRef: HTMLInputElement;
29
+ };
30
+ rootEl: HTMLDivElement;
31
+ };
32
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
34
+ fileList: {
35
+ type: PropType<UploadFile[]>;
36
+ default: () => never[];
37
+ };
38
+ disabled: {
39
+ type: BooleanConstructor;
40
+ };
41
+ limit: {
42
+ type: NumberConstructor;
43
+ };
44
+ multiple: {
45
+ type: BooleanConstructor;
46
+ };
47
+ suffixes: {
48
+ type: PropType<string[]>;
49
+ };
50
+ onExceed: {
51
+ type: PropType<(files: File[]) => void>;
52
+ default: typeof NOOP;
53
+ };
54
+ showTrigger: {
55
+ type: BooleanConstructor;
56
+ };
57
+ autoCropper: {
58
+ type: BooleanConstructor;
59
+ };
60
+ copperOptions: {
61
+ type: PropType<CopperOptions>;
62
+ };
63
+ }>, {
64
+ choose(): void;
65
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
66
+ remove: (...args: any[]) => void;
67
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
68
+ fileList: {
69
+ type: PropType<UploadFile[]>;
70
+ default: () => never[];
71
+ };
72
+ disabled: {
73
+ type: BooleanConstructor;
74
+ };
75
+ limit: {
76
+ type: NumberConstructor;
77
+ };
78
+ multiple: {
79
+ type: BooleanConstructor;
80
+ };
81
+ suffixes: {
82
+ type: PropType<string[]>;
83
+ };
84
+ onExceed: {
85
+ type: PropType<(files: File[]) => void>;
86
+ default: typeof NOOP;
87
+ };
88
+ showTrigger: {
89
+ type: BooleanConstructor;
90
+ };
91
+ autoCropper: {
92
+ type: BooleanConstructor;
93
+ };
94
+ copperOptions: {
95
+ type: PropType<CopperOptions>;
96
+ };
97
+ }>> & Readonly<{
98
+ onRemove?: ((...args: any[]) => any) | undefined;
99
+ }>, {
100
+ disabled: boolean;
101
+ multiple: boolean;
102
+ showTrigger: boolean;
103
+ autoCropper: boolean;
104
+ fileList: UploadFile[];
105
+ onExceed: (files: File[]) => void;
106
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
107
+ copperRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
108
+ open(source: File | string): Promise<{
109
+ file: File;
110
+ }>;
111
+ close(): void;
112
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
113
+ cropperRef: unknown;
114
+ }, any, import('vue').ComponentProvideOptions, {
115
+ P: {};
116
+ B: {};
117
+ D: {};
118
+ C: {};
119
+ M: {};
120
+ Defaults: {};
121
+ }, Readonly<{}> & Readonly<{}>, {
122
+ open(source: File | string): Promise<{
123
+ file: File;
124
+ }>;
125
+ close(): void;
126
+ }, {}, {}, {}, {}> | null;
127
+ inputRef: HTMLInputElement;
128
+ }, HTMLDivElement>;
129
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
130
+ export default _default;
131
+ type __VLS_WithTemplateSlots<T, S> = T & {
132
+ new (): {
133
+ $slots: S;
134
+ };
135
+ };
@@ -0,0 +1,3 @@
1
+ import { FileSuffix } from '@minto-ai/tools';
2
+ declare const fileSizeLimitConfigMap: Map<string, Record<FileSuffix, number>>;
3
+ export { fileSizeLimitConfigMap };
@@ -0,0 +1,63 @@
1
+ import { IUploadFileSuccessResponse } from '@minto-ai/obs-server';
2
+ import { FileSuffix } from '@minto-ai/tools';
3
+ import { ExtractPropTypes, PropType } from 'vue';
4
+ import { UploadFile, UploadProgressEvent, UploadRawFile } from './upload';
5
+ import { default as UploadContent } from './upload-content.vue';
6
+ import { NOOP } from '../../utils';
7
+ declare const uploadContentProps: {
8
+ fileList: {
9
+ type: PropType<UploadFile[]>;
10
+ default: () => never[];
11
+ };
12
+ limit: {
13
+ type: NumberConstructor;
14
+ };
15
+ multiple: {
16
+ type: BooleanConstructor;
17
+ };
18
+ size: {
19
+ type: NumberConstructor;
20
+ };
21
+ suffixes: {
22
+ type: PropType<FileSuffix[]>;
23
+ };
24
+ disabled: {
25
+ type: BooleanConstructor;
26
+ };
27
+ onExceed: {
28
+ type: PropType<(files: File[]) => void>;
29
+ default: typeof NOOP;
30
+ };
31
+ onStart: {
32
+ type: PropType<(rawFile: UploadRawFile) => void>;
33
+ default: () => void;
34
+ };
35
+ onReload: {
36
+ type: PropType<(rawFile: UploadRawFile) => void>;
37
+ default: typeof NOOP;
38
+ };
39
+ onProgress: {
40
+ type: PropType<(evtnt: UploadProgressEvent, rawFile: UploadRawFile) => void>;
41
+ default: typeof NOOP;
42
+ };
43
+ onError: {
44
+ type: PropType<(error: Error, rawFile: UploadRawFile) => void>;
45
+ default: typeof NOOP;
46
+ };
47
+ onSuccess: {
48
+ type: PropType<(response: IUploadFileSuccessResponse, rawFile: UploadRawFile) => void>;
49
+ default: typeof NOOP;
50
+ };
51
+ onRemove: {
52
+ type: PropType<(rawFile: UploadRawFile) => void>;
53
+ default: typeof NOOP;
54
+ };
55
+ beforeUpload: {
56
+ type: PropType<(rawFile: UploadRawFile) => Promise<boolean> | boolean>;
57
+ default: typeof NOOP;
58
+ };
59
+ };
60
+ type UploadContentProps = ExtractPropTypes<typeof uploadContentProps>;
61
+ type UploadContentInstance = InstanceType<typeof UploadContent>;
62
+ export type { UploadContentInstance, UploadContentProps, };
63
+ export { uploadContentProps };
@@ -0,0 +1,129 @@
1
+ import { UploadFile, UploadRawFile } from './upload';
2
+ declare function abort(uploadFile?: UploadFile): void;
3
+ declare function choose(): void;
4
+ declare function reload(uid: number, file: File): void;
5
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ fileList: {
7
+ type: import('vue').PropType<UploadFile[]>;
8
+ default: () => never[];
9
+ };
10
+ limit: {
11
+ type: NumberConstructor;
12
+ };
13
+ multiple: {
14
+ type: BooleanConstructor;
15
+ };
16
+ size: {
17
+ type: NumberConstructor;
18
+ };
19
+ suffixes: {
20
+ type: import('vue').PropType<import('@minto-ai/tools').FileSuffix[]>;
21
+ };
22
+ disabled: {
23
+ type: BooleanConstructor;
24
+ };
25
+ onExceed: {
26
+ type: import('vue').PropType<(files: File[]) => void>;
27
+ default: typeof import('../../utils').NOOP;
28
+ };
29
+ onStart: {
30
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
31
+ default: () => void;
32
+ };
33
+ onReload: {
34
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
35
+ default: typeof import('../../utils').NOOP;
36
+ };
37
+ onProgress: {
38
+ type: import('vue').PropType<(evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
39
+ default: typeof import('../../utils').NOOP;
40
+ };
41
+ onError: {
42
+ type: import('vue').PropType<(error: Error, rawFile: UploadRawFile) => void>;
43
+ default: typeof import('../../utils').NOOP;
44
+ };
45
+ onSuccess: {
46
+ type: import('vue').PropType<(response: import('@minto-ai/obs-server').IUploadFileSuccessResponse, rawFile: UploadRawFile) => void>;
47
+ default: typeof import('../../utils').NOOP;
48
+ };
49
+ onRemove: {
50
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
51
+ default: typeof import('../../utils').NOOP;
52
+ };
53
+ beforeUpload: {
54
+ type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean> | boolean>;
55
+ default: typeof import('../../utils').NOOP;
56
+ };
57
+ }>, {
58
+ abort: typeof abort;
59
+ choose: typeof choose;
60
+ reload: typeof reload;
61
+ upload: (files: Array<File>) => void;
62
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
63
+ fileList: {
64
+ type: import('vue').PropType<UploadFile[]>;
65
+ default: () => never[];
66
+ };
67
+ limit: {
68
+ type: NumberConstructor;
69
+ };
70
+ multiple: {
71
+ type: BooleanConstructor;
72
+ };
73
+ size: {
74
+ type: NumberConstructor;
75
+ };
76
+ suffixes: {
77
+ type: import('vue').PropType<import('@minto-ai/tools').FileSuffix[]>;
78
+ };
79
+ disabled: {
80
+ type: BooleanConstructor;
81
+ };
82
+ onExceed: {
83
+ type: import('vue').PropType<(files: File[]) => void>;
84
+ default: typeof import('../../utils').NOOP;
85
+ };
86
+ onStart: {
87
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
88
+ default: () => void;
89
+ };
90
+ onReload: {
91
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
92
+ default: typeof import('../../utils').NOOP;
93
+ };
94
+ onProgress: {
95
+ type: import('vue').PropType<(evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void>;
96
+ default: typeof import('../../utils').NOOP;
97
+ };
98
+ onError: {
99
+ type: import('vue').PropType<(error: Error, rawFile: UploadRawFile) => void>;
100
+ default: typeof import('../../utils').NOOP;
101
+ };
102
+ onSuccess: {
103
+ type: import('vue').PropType<(response: import('@minto-ai/obs-server').IUploadFileSuccessResponse, rawFile: UploadRawFile) => void>;
104
+ default: typeof import('../../utils').NOOP;
105
+ };
106
+ onRemove: {
107
+ type: import('vue').PropType<(rawFile: UploadRawFile) => void>;
108
+ default: typeof import('../../utils').NOOP;
109
+ };
110
+ beforeUpload: {
111
+ type: import('vue').PropType<(rawFile: UploadRawFile) => Promise<boolean> | boolean>;
112
+ default: typeof import('../../utils').NOOP;
113
+ };
114
+ }>> & Readonly<{}>, {
115
+ onError: (error: Error, rawFile: UploadRawFile) => void;
116
+ onProgress: (evtnt: import('./upload').UploadProgressEvent, rawFile: UploadRawFile) => void;
117
+ disabled: boolean;
118
+ multiple: boolean;
119
+ beforeUpload: (rawFile: UploadRawFile) => Promise<boolean> | boolean;
120
+ fileList: UploadFile[];
121
+ onRemove: (rawFile: UploadRawFile) => void;
122
+ onExceed: (files: File[]) => void;
123
+ onStart: (rawFile: UploadRawFile) => void;
124
+ onReload: (rawFile: UploadRawFile) => void;
125
+ onSuccess: (response: import('@minto-ai/obs-server').IUploadFileSuccessResponse, rawFile: UploadRawFile) => void;
126
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
127
+ inputRef: HTMLInputElement;
128
+ }, HTMLDivElement>;
129
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ description: {
3
+ type: StringConstructor;
4
+ };
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
6
+ description: {
7
+ type: StringConstructor;
8
+ };
9
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
10
+ maskRef: HTMLDivElement;
11
+ }, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ open(source: File | string): Promise<{
3
+ file: File;
4
+ }>;
5
+ close(): void;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
7
+ cropperRef: unknown;
8
+ }, any>;
9
+ export default _default;