@yiitap/vue 1.2.4 → 1.3.0

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 (43) hide show
  1. package/dist/index.cjs +80 -46
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +80 -46
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +14916 -13330
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/vue.css +1 -1
  8. package/package.json +23 -18
  9. package/types/components/YiiEditor.vue.d.ts +19 -0
  10. package/types/components/buttons/OAiBtn.vue.d.ts +20 -0
  11. package/types/components/common/OBlockList.vue.d.ts +26 -0
  12. package/types/components/common/OBlockListItem.vue.d.ts +16 -0
  13. package/types/components/common/OBlockPopover.vue.d.ts +18 -0
  14. package/types/components/common/OCommonBtn.vue.d.ts +20 -2
  15. package/types/components/common/OMenubarBtn.vue.d.ts +99 -1
  16. package/types/components/common/OToast.d.ts +11 -0
  17. package/types/components/index.d.ts +5 -0
  18. package/types/components/menus/OAiMenu.vue.d.ts +27 -0
  19. package/types/components/menus/OBubbleMenu.vue.d.ts +1 -1
  20. package/types/components/menus/OFloatingMenu.vue.d.ts +1 -1
  21. package/types/components/ui/OBtn.vue.d.ts +36 -0
  22. package/types/components/ui/OBtnGroup.vue.d.ts +100 -0
  23. package/types/components/ui/OInput.vue.d.ts +23 -1
  24. package/types/constants/ai.d.ts +6 -0
  25. package/types/constants/block.d.ts +2 -0
  26. package/types/constants/data.d.ts +4 -0
  27. package/types/constants/index.d.ts +2 -0
  28. package/types/extensions/ai-block/index.d.ts +3 -0
  29. package/types/extensions/ai-block/view.vue.d.ts +92 -0
  30. package/types/extensions/char-command/emoji/suggestion.d.ts +5 -9
  31. package/types/extensions/char-command/slash/suggestion.d.ts +5 -9
  32. package/types/extensions/dynamic.d.ts +1 -1
  33. package/types/extensions/index.d.ts +48 -23
  34. package/types/hooks/index.d.ts +2 -0
  35. package/types/hooks/useAi.d.ts +6 -0
  36. package/types/hooks/useI18n.d.ts +1 -0
  37. package/types/hooks/useNodeView.d.ts +6 -0
  38. package/types/i18n/messages/en.d.ts +44 -0
  39. package/types/i18n/messages/zh-hans.d.ts +42 -0
  40. package/types/i18n/messages/zh-hant.d.ts +1 -0
  41. package/types/index.d.ts +0 -1
  42. package/types/utils/convert.d.ts +1 -0
  43. package/types/constants/demo-article.d.ts +0 -7
@@ -1,3 +1,4 @@
1
+ import { type PropType } from 'vue';
1
2
  import { EditorContent } from '@tiptap/vue-3';
2
3
  import OMainMenu from './menus/OMainMenu.vue';
3
4
  import OBubbleMenu from './menus/OBubbleMenu.vue';
@@ -151,6 +152,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
151
152
  default: string;
152
153
  validator: (value: string) => boolean;
153
154
  };
155
+ aiOption: {
156
+ type: PropType<AiOption>;
157
+ default: () => void;
158
+ };
154
159
  }>, {
155
160
  EditorContent: typeof EditorContent;
156
161
  OMainMenu: typeof OMainMenu;
@@ -294,6 +299,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
294
299
  default: string;
295
300
  validator: (value: string) => boolean;
296
301
  };
302
+ aiOption: {
303
+ type: PropType<AiOption>;
304
+ default: () => void;
305
+ };
297
306
  }>> & Readonly<{
298
307
  onUpdate?: (payload: {
299
308
  json: Object;
@@ -304,6 +313,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
304
313
  transaction: Object;
305
314
  }) => any;
306
315
  }>, {
316
+ aiOption: AiOption;
307
317
  locale: string;
308
318
  darkMode: boolean;
309
319
  content: string | Record<string, any>;
@@ -442,6 +452,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
442
452
  default: string;
443
453
  validator: (value: string) => boolean;
444
454
  };
455
+ aiOption: {
456
+ type: PropType<AiOption>;
457
+ default: () => void;
458
+ };
445
459
  }>, {
446
460
  /**
447
461
  * Editor instance. More about <a href="https://tiptap.dev/docs/editor/api/editor" target="_blank">editor api</a>.
@@ -586,6 +600,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
586
600
  default: string;
587
601
  validator: (value: string) => boolean;
588
602
  };
603
+ aiOption: {
604
+ type: PropType<AiOption>;
605
+ default: () => void;
606
+ };
589
607
  }>> & Readonly<{
590
608
  onUpdate?: (payload: {
591
609
  json: Object;
@@ -596,6 +614,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
596
614
  transaction: Object;
597
615
  }) => any;
598
616
  }>, {
617
+ aiOption: AiOption;
599
618
  locale: string;
600
619
  darkMode: boolean;
601
620
  content: string | Record<string, any>;
@@ -0,0 +1,20 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ name: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ editor: {
7
+ type: ObjectConstructor;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ name: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ editor: {
15
+ type: ObjectConstructor;
16
+ };
17
+ }>> & Readonly<{}>, {
18
+ name: string;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,26 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ items: {
3
+ type: () => BlockOption[];
4
+ required: true;
5
+ };
6
+ useKeyboard: {
7
+ type: BooleanConstructor;
8
+ required: false;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ select: (...args: any[]) => void;
12
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ items: {
14
+ type: () => BlockOption[];
15
+ required: true;
16
+ };
17
+ useKeyboard: {
18
+ type: BooleanConstructor;
19
+ required: false;
20
+ };
21
+ }>> & Readonly<{
22
+ onSelect?: (...args: any[]) => any;
23
+ }>, {
24
+ useKeyboard: boolean;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ export default _default;
@@ -0,0 +1,16 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ item: {
3
+ type: () => BlockOption;
4
+ required: true;
5
+ };
6
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ select: (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
+ item: {
10
+ type: () => BlockOption;
11
+ required: true;
12
+ };
13
+ }>> & Readonly<{
14
+ onSelect?: (...args: any[]) => any;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
@@ -391,6 +391,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
391
391
  type: StringConstructor;
392
392
  default: string;
393
393
  };
394
+ contentClass: {
395
+ type: StringConstructor;
396
+ default: string;
397
+ };
394
398
  offset: {
395
399
  type: PropType<[number, number]>;
396
400
  default: () => [number, number];
@@ -425,6 +429,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
425
429
  type: StringConstructor;
426
430
  default: string;
427
431
  };
432
+ contentClass: {
433
+ type: StringConstructor;
434
+ default: string;
435
+ };
428
436
  offset: {
429
437
  type: PropType<[number, number]>;
430
438
  default: () => [number, number];
@@ -437,6 +445,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
437
445
  offset: [number, number];
438
446
  placement: string;
439
447
  tippyClass: string;
448
+ contentClass: string;
440
449
  modelValue: boolean;
441
450
  showArrow: boolean;
442
451
  hideClickOutside: boolean;
@@ -462,6 +471,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
462
471
  type: StringConstructor;
463
472
  default: string;
464
473
  };
474
+ contentClass: {
475
+ type: StringConstructor;
476
+ default: string;
477
+ };
465
478
  offset: {
466
479
  type: PropType<[number, number]>;
467
480
  default: () => [number, number];
@@ -491,6 +504,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
491
504
  type: StringConstructor;
492
505
  default: string;
493
506
  };
507
+ contentClass: {
508
+ type: StringConstructor;
509
+ default: string;
510
+ };
494
511
  offset: {
495
512
  type: PropType<[number, number]>;
496
513
  default: () => [number, number];
@@ -503,6 +520,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
503
520
  offset: [number, number];
504
521
  placement: string;
505
522
  tippyClass: string;
523
+ contentClass: string;
506
524
  modelValue: boolean;
507
525
  showArrow: boolean;
508
526
  hideClickOutside: boolean;
@@ -1,5 +1,5 @@
1
1
  import { OIcon, OTooltip } from '../index';
2
- declare const emit: (event: "click", ...args: any[]) => void;
2
+ declare function onClick(): void;
3
3
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
4
4
  declare var __VLS_10: {};
5
5
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
@@ -30,6 +30,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
30
30
  type: BooleanConstructor;
31
31
  default: boolean;
32
32
  };
33
+ loading: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
33
37
  contentClass: {
34
38
  type: (StringConstructor | ObjectConstructor)[];
35
39
  default: string;
@@ -45,7 +49,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
45
49
  }>, {
46
50
  OIcon: typeof OIcon;
47
51
  OTooltip: typeof OTooltip;
48
- emit: typeof emit;
52
+ onClick: typeof onClick;
49
53
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
54
  click: (...args: any[]) => void;
51
55
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -73,6 +77,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
73
77
  type: BooleanConstructor;
74
78
  default: boolean;
75
79
  };
80
+ loading: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
76
84
  contentClass: {
77
85
  type: (StringConstructor | ObjectConstructor)[];
78
86
  default: string;
@@ -97,6 +105,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
97
105
  disabled: boolean;
98
106
  contentStyle: string | Record<string, any>;
99
107
  iconClass: string | Record<string, any>;
108
+ loading: boolean;
100
109
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
101
110
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
102
111
  icon: {
@@ -123,6 +132,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
123
132
  type: BooleanConstructor;
124
133
  default: boolean;
125
134
  };
135
+ loading: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
126
139
  contentClass: {
127
140
  type: (StringConstructor | ObjectConstructor)[];
128
141
  default: string;
@@ -162,6 +175,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
162
175
  type: BooleanConstructor;
163
176
  default: boolean;
164
177
  };
178
+ loading: {
179
+ type: BooleanConstructor;
180
+ default: boolean;
181
+ };
165
182
  contentClass: {
166
183
  type: (StringConstructor | ObjectConstructor)[];
167
184
  default: string;
@@ -186,6 +203,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
186
203
  disabled: boolean;
187
204
  contentStyle: string | Record<string, any>;
188
205
  iconClass: string | Record<string, any>;
206
+ loading: boolean;
189
207
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
190
208
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
191
209
  export default _default;
@@ -1,4 +1,96 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ import OIcon from '../ui/OIcon.vue';
2
+ import OTooltip from '../ui/OTooltip.vue';
3
+ declare const emit: (event: "click", ...args: any[]) => void;
4
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
5
+ declare var __VLS_8: {};
6
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
7
+ default?: (props: typeof __VLS_8) => any;
8
+ }>;
9
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ icon: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ color: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ background: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ tooltip: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ placement: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ contentClass: {
31
+ type: (StringConstructor | ObjectConstructor)[];
32
+ default: string;
33
+ };
34
+ contentStyle: {
35
+ type: (StringConstructor | ObjectConstructor)[];
36
+ default: string;
37
+ };
38
+ iconClass: {
39
+ type: (StringConstructor | ObjectConstructor)[];
40
+ default: string;
41
+ };
42
+ }>, {
43
+ OIcon: typeof OIcon;
44
+ OTooltip: typeof OTooltip;
45
+ emit: typeof emit;
46
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
+ click: (...args: any[]) => void;
48
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
49
+ icon: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ color: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ background: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ tooltip: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ placement: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ contentClass: {
70
+ type: (StringConstructor | ObjectConstructor)[];
71
+ default: string;
72
+ };
73
+ contentStyle: {
74
+ type: (StringConstructor | ObjectConstructor)[];
75
+ default: string;
76
+ };
77
+ iconClass: {
78
+ type: (StringConstructor | ObjectConstructor)[];
79
+ default: string;
80
+ };
81
+ }>> & Readonly<{
82
+ onClick?: (...args: any[]) => any;
83
+ }>, {
84
+ color: string;
85
+ icon: string;
86
+ placement: string;
87
+ contentClass: string | Record<string, any>;
88
+ background: string;
89
+ tooltip: string;
90
+ contentStyle: string | Record<string, any>;
91
+ iconClass: string | Record<string, any>;
92
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
93
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
94
  icon: {
3
95
  type: StringConstructor;
4
96
  default: string;
@@ -78,4 +170,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
78
170
  contentStyle: string | Record<string, any>;
79
171
  iconClass: string | Record<string, any>;
80
172
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
173
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
81
174
  export default _default;
175
+ type __VLS_WithSlots<T, S> = T & {
176
+ new (): {
177
+ $slots: S;
178
+ };
179
+ };
@@ -0,0 +1,11 @@
1
+ declare class ToastManager {
2
+ private instances;
3
+ error(message: string, duration?: number): void;
4
+ info(message: string, duration?: number): void;
5
+ success(message: string, duration?: number): void;
6
+ warning(message: string, duration?: number): void;
7
+ show(message: string, type?: 'success' | 'error' | 'info' | 'warning', duration?: number): void;
8
+ private repositionToasts;
9
+ }
10
+ export declare const OToast: ToastManager;
11
+ export {};
@@ -1,4 +1,6 @@
1
1
  export { default as OBlockPlaceholder } from './common/OBlockPlaceholder.vue';
2
+ export { default as OBlockList } from './common/OBlockList.vue';
3
+ export { default as OBlockListItem } from './common/OBlockListItem.vue';
2
4
  export { default as OBlockMenu } from './common/OBlockMenu.vue';
3
5
  export { default as OBlockPopover } from './common/OBlockPopover.vue';
4
6
  export { default as OBlockToolbar } from './common/OBlockToolbar.vue';
@@ -17,10 +19,12 @@ export { default as OMenubarBtn } from './common/OMenubarBtn.vue';
17
19
  export { default as OTableGrid } from './common/OTableGrid.vue';
18
20
  export { default as OTableCellBackground } from './common/OTableCellBackground.vue';
19
21
  export { default as OTextColorBoard } from './common/OTextColorBoard.vue';
22
+ export { OToast } from './common/OToast';
20
23
  export { default as ONodeView } from './common/ONodeView.vue';
21
24
  export { default as AddNode } from './common/o-side-menu/AddNode.vue';
22
25
  export { default as DragNode } from './common/o-side-menu/DragNode.vue';
23
26
  export { default as OBtn } from './ui/OBtn.vue';
27
+ export { default as OBtnGroup } from './ui/OBtnGroup.vue';
24
28
  export { default as OCheckbox } from './ui/OCheckbox.vue';
25
29
  export { default as ODivider } from './ui/ODivider.vue';
26
30
  export { default as OIcon } from './ui/OIcon.vue';
@@ -30,3 +34,4 @@ export { default as OListItem } from './ui/OListItem.vue';
30
34
  export { default as OPopover } from './ui/OPopover.vue';
31
35
  export { default as OTooltip } from './ui/OTooltip.vue';
32
36
  export { default as OMainMenu } from './menus/OMainMenu.vue';
37
+ export { default as OAiMenu } from './menus/OAiMenu.vue';
@@ -0,0 +1,27 @@
1
+ import { Editor } from '@tiptap/core';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ editor: {
4
+ type: typeof Editor;
5
+ required: true;
6
+ };
7
+ menuClass: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ confirm: (...args: any[]) => void;
13
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
+ editor: {
15
+ type: typeof Editor;
16
+ required: true;
17
+ };
18
+ menuClass: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ }>> & Readonly<{
23
+ onConfirm?: (...args: any[]) => any;
24
+ }>, {
25
+ menuClass: string;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
27
+ export default _default;
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
33
33
  };
34
34
  }>> & Readonly<{}>, {
35
35
  menu: unknown[];
36
- tableToolbar: unknown[];
37
36
  menuClass: string;
37
+ tableToolbar: unknown[];
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
39
  export default _default;
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
33
33
  };
34
34
  }>> & Readonly<{}>, {
35
35
  menu: unknown[];
36
- tableToolbar: unknown[];
37
36
  menuClass: string;
37
+ tableToolbar: unknown[];
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
39
  export default _default;
@@ -14,10 +14,18 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
14
14
  type: (StringConstructor | ObjectConstructor)[];
15
15
  default: string;
16
16
  };
17
+ label: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
17
21
  type: {
18
22
  type: StringConstructor;
19
23
  default: string;
20
24
  };
25
+ loading: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
21
29
  }>, {
22
30
  OIcon: typeof OIcon;
23
31
  emit: typeof emit;
@@ -32,16 +40,26 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
32
40
  type: (StringConstructor | ObjectConstructor)[];
33
41
  default: string;
34
42
  };
43
+ label: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
35
47
  type: {
36
48
  type: StringConstructor;
37
49
  default: string;
38
50
  };
51
+ loading: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
39
55
  }>> & Readonly<{
40
56
  onClick?: (...args: any[]) => any;
41
57
  }>, {
42
58
  type: string;
59
+ label: string;
43
60
  icon: string;
44
61
  iconClass: string | Record<string, any>;
62
+ loading: boolean;
45
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
46
64
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
47
65
  icon: {
@@ -52,10 +70,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
52
70
  type: (StringConstructor | ObjectConstructor)[];
53
71
  default: string;
54
72
  };
73
+ label: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
55
77
  type: {
56
78
  type: StringConstructor;
57
79
  default: string;
58
80
  };
81
+ loading: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
59
85
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
86
  click: (...args: any[]) => void;
61
87
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -67,16 +93,26 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
67
93
  type: (StringConstructor | ObjectConstructor)[];
68
94
  default: string;
69
95
  };
96
+ label: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
70
100
  type: {
71
101
  type: StringConstructor;
72
102
  default: string;
73
103
  };
104
+ loading: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
74
108
  }>> & Readonly<{
75
109
  onClick?: (...args: any[]) => any;
76
110
  }>, {
77
111
  type: string;
112
+ label: string;
78
113
  icon: string;
79
114
  iconClass: string | Record<string, any>;
115
+ loading: boolean;
80
116
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81
117
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
82
118
  export default _default;
@@ -0,0 +1,100 @@
1
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ }>;
6
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ icon: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ iconClass: {
12
+ type: (StringConstructor | ObjectConstructor)[];
13
+ default: string;
14
+ };
15
+ label: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ type: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ click: (...args: any[]) => void;
25
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
+ icon: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ iconClass: {
31
+ type: (StringConstructor | ObjectConstructor)[];
32
+ default: string;
33
+ };
34
+ label: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ type: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ }>> & Readonly<{
43
+ onClick?: (...args: any[]) => any;
44
+ }>, {
45
+ type: string;
46
+ label: string;
47
+ icon: string;
48
+ iconClass: string | Record<string, any>;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
50
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
51
+ icon: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ iconClass: {
56
+ type: (StringConstructor | ObjectConstructor)[];
57
+ default: string;
58
+ };
59
+ label: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ type: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
68
+ click: (...args: any[]) => void;
69
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
+ icon: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ iconClass: {
75
+ type: (StringConstructor | ObjectConstructor)[];
76
+ default: string;
77
+ };
78
+ label: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ type: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ }>> & Readonly<{
87
+ onClick?: (...args: any[]) => any;
88
+ }>, {
89
+ type: string;
90
+ label: string;
91
+ icon: string;
92
+ iconClass: string | Record<string, any>;
93
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
94
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
95
+ export default _default;
96
+ type __VLS_WithSlots<T, S> = T & {
97
+ new (): {
98
+ $slots: S;
99
+ };
100
+ };