@yiitap/vue 0.4.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 (142) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +13 -0
  3. package/dist/index.cjs +199 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.js +199 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.mjs +45043 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/dist/vue.css +1 -0
  10. package/package.json +120 -0
  11. package/types/__tests__/index.spec.d.ts +1 -0
  12. package/types/components/YiiEditor.vue.d.ts +701 -0
  13. package/types/components/buttons/OAiBtn.vue.d.ts +20 -0
  14. package/types/components/buttons/OAlignDropdown.vue.d.ts +10 -0
  15. package/types/components/buttons/OAlignGroup.vue.d.ts +11 -0
  16. package/types/components/buttons/OBackColorDropdown.vue.d.ts +10 -0
  17. package/types/components/buttons/OEmojiBtn.vue.d.ts +10 -0
  18. package/types/components/buttons/OFontFamilyDropdown.vue.d.ts +10 -0
  19. package/types/components/buttons/OForeColorDropdown.vue.d.ts +10 -0
  20. package/types/components/buttons/OHeadingDropdown.vue.d.ts +10 -0
  21. package/types/components/buttons/OLinkBtn.vue.d.ts +11 -0
  22. package/types/components/buttons/OLinkEditBtn.vue.d.ts +13 -0
  23. package/types/components/buttons/OLinkOpenBtn.vue.d.ts +10 -0
  24. package/types/components/buttons/OListDropdown.vue.d.ts +10 -0
  25. package/types/components/buttons/OListGroup.vue.d.ts +13 -0
  26. package/types/components/buttons/OMoreBubble.vue.d.ts +13 -0
  27. package/types/components/buttons/OSimpleCommandBtn.vue.d.ts +20 -0
  28. package/types/components/buttons/OStyleDropdown.vue.d.ts +10 -0
  29. package/types/components/buttons/OTableBtn.vue.d.ts +10 -0
  30. package/types/components/buttons/OTableGroup.vue.d.ts +13 -0
  31. package/types/components/buttons/OTextColorDropdown.vue.d.ts +11 -0
  32. package/types/components/buttons/OTextFormatDropdown.vue.d.ts +11 -0
  33. package/types/components/common/OBlockList.vue.d.ts +26 -0
  34. package/types/components/common/OBlockListItem.vue.d.ts +16 -0
  35. package/types/components/common/OBlockMenu.vue.d.ts +69 -0
  36. package/types/components/common/OBlockPlaceholder.vue.d.ts +23 -0
  37. package/types/components/common/OBlockPopover.vue.d.ts +534 -0
  38. package/types/components/common/OBlockToolbar.vue.d.ts +593 -0
  39. package/types/components/common/OCalloutColorBoard.vue.d.ts +36 -0
  40. package/types/components/common/OCalloutColorDropdown.vue.d.ts +14 -0
  41. package/types/components/common/OColorBoard.vue.d.ts +36 -0
  42. package/types/components/common/OCommandBtn.vue.d.ts +196 -0
  43. package/types/components/common/OCommonBtn.vue.d.ts +214 -0
  44. package/types/components/common/OContextMenu.vue.d.ts +469 -0
  45. package/types/components/common/ODocToc.vue.d.ts +68 -0
  46. package/types/components/common/OEmojiSelect.vue.d.ts +26 -0
  47. package/types/components/common/OLanguageDropdown.vue.d.ts +18 -0
  48. package/types/components/common/OMediaInput.vue.d.ts +27 -0
  49. package/types/components/common/OMenubarBtn.vue.d.ts +179 -0
  50. package/types/components/common/OMetaInput.vue.d.ts +155 -0
  51. package/types/components/common/ONodeView.vue.d.ts +213 -0
  52. package/types/components/common/OTableCellBackground.vue.d.ts +10 -0
  53. package/types/components/common/OTableGrid.vue.d.ts +6 -0
  54. package/types/components/common/OTextColorBoard.vue.d.ts +36 -0
  55. package/types/components/common/OToast.d.ts +11 -0
  56. package/types/components/common/o-side-menu/AddNode.vue.d.ts +46 -0
  57. package/types/components/common/o-side-menu/AddNodeView.vue.d.ts +50 -0
  58. package/types/components/common/o-side-menu/DragNode.vue.d.ts +54 -0
  59. package/types/components/common/o-side-menu/DragNodeMenu.vue.d.ts +64 -0
  60. package/types/components/common/o-side-menu/DragNodeView.vue.d.ts +50 -0
  61. package/types/components/common/o-side-node/AddNode.vue.d.ts +92 -0
  62. package/types/components/common/o-side-node/AddNodeView.vue.d.ts +96 -0
  63. package/types/components/common/o-side-node/DragNode.vue.d.ts +96 -0
  64. package/types/components/common/o-side-node/DragNodeView.vue.d.ts +96 -0
  65. package/types/components/common/o-side-node/index.vue.d.ts +96 -0
  66. package/types/components/index.d.ts +37 -0
  67. package/types/components/menu.d.ts +1 -0
  68. package/types/components/menus/OAiMenu.vue.d.ts +27 -0
  69. package/types/components/menus/OBubbleMenu.vue.d.ts +39 -0
  70. package/types/components/menus/OFloatingMenu.vue.d.ts +39 -0
  71. package/types/components/menus/OMainMenu.vue.d.ts +59 -0
  72. package/types/components/menus/OSideMenu.vue.d.ts +23 -0
  73. package/types/components/menus/side-menu/index.d.ts +2 -0
  74. package/types/components/ui/OBtn.vue.d.ts +123 -0
  75. package/types/components/ui/OBtnGroup.vue.d.ts +100 -0
  76. package/types/components/ui/OCheckbox.vue.d.ts +27 -0
  77. package/types/components/ui/ODivider.vue.d.ts +14 -0
  78. package/types/components/ui/OIcon.vue.d.ts +50 -0
  79. package/types/components/ui/OInput.vue.d.ts +125 -0
  80. package/types/components/ui/OList.vue.d.ts +56 -0
  81. package/types/components/ui/OListItem.vue.d.ts +42 -0
  82. package/types/components/ui/OPopover.vue.d.ts +242 -0
  83. package/types/components/ui/OTooltip.d.ts +16 -0
  84. package/types/components/ui/OTooltip.vue.d.ts +119 -0
  85. package/types/constants/ai.d.ts +6 -0
  86. package/types/constants/block.d.ts +7 -0
  87. package/types/constants/color.d.ts +5 -0
  88. package/types/constants/data.d.ts +4 -0
  89. package/types/constants/empty-block.d.ts +21 -0
  90. package/types/constants/index.d.ts +4 -0
  91. package/types/constants/language.d.ts +1 -0
  92. package/types/constants/menu.d.ts +31 -0
  93. package/types/extensions/ai-block/index.d.ts +3 -0
  94. package/types/extensions/ai-block/view.vue.d.ts +92 -0
  95. package/types/extensions/blockquote/index.d.ts +3 -0
  96. package/types/extensions/blockquote/view.vue.d.ts +92 -0
  97. package/types/extensions/callout/index.d.ts +3 -0
  98. package/types/extensions/callout/view.vue.d.ts +92 -0
  99. package/types/extensions/char-command/emoji/suggestion.d.ts +14 -0
  100. package/types/extensions/char-command/emoji/view.vue.d.ts +72 -0
  101. package/types/extensions/char-command/slash/suggestion.d.ts +14 -0
  102. package/types/extensions/char-command/slash/view.vue.d.ts +192 -0
  103. package/types/extensions/code-block/index.d.ts +3 -0
  104. package/types/extensions/code-block/view.vue.d.ts +92 -0
  105. package/types/extensions/dynamic.d.ts +7 -0
  106. package/types/extensions/heading/index.d.ts +7 -0
  107. package/types/extensions/heading/view.vue.d.ts +92 -0
  108. package/types/extensions/horizontal-rule/index.d.ts +2 -0
  109. package/types/extensions/horizontal-rule/view.vue.d.ts +92 -0
  110. package/types/extensions/image/index.d.ts +3 -0
  111. package/types/extensions/image/view.vue.d.ts +92 -0
  112. package/types/extensions/index.d.ts +49 -0
  113. package/types/extensions/link/helpers/clickSelectHandler.d.ts +2 -0
  114. package/types/extensions/link/index.d.ts +3 -0
  115. package/types/extensions/paragraph/index.d.ts +2 -0
  116. package/types/extensions/paragraph/view.vue.d.ts +92 -0
  117. package/types/extensions/side-menu/index.d.ts +2 -0
  118. package/types/extensions/side-menu/side-menu-plugin.d.ts +72 -0
  119. package/types/extensions/side-menu/utils.d.ts +50 -0
  120. package/types/extensions/table-cell/index.d.ts +3 -0
  121. package/types/extensions/table-cell/view.vue.d.ts +92 -0
  122. package/types/extensions/table-header/index.d.ts +3 -0
  123. package/types/extensions/table-header/view.vue.d.ts +92 -0
  124. package/types/extensions/table-wrapper/index.d.ts +2 -0
  125. package/types/extensions/table-wrapper/view.vue.d.ts +92 -0
  126. package/types/extensions/video/index.d.ts +2 -0
  127. package/types/extensions/video/view.vue.d.ts +92 -0
  128. package/types/hooks/index.d.ts +5 -0
  129. package/types/hooks/useAi.d.ts +6 -0
  130. package/types/hooks/useI18n.d.ts +8 -0
  131. package/types/hooks/useNodeView.d.ts +6 -0
  132. package/types/hooks/useTheme.d.ts +6 -0
  133. package/types/hooks/useTiptap.d.ts +8 -0
  134. package/types/i18n/index.d.ts +4 -0
  135. package/types/i18n/messages/en.d.ts +232 -0
  136. package/types/i18n/messages/pl.d.ts +182 -0
  137. package/types/i18n/messages/pt-br.d.ts +182 -0
  138. package/types/i18n/messages/zh-hans.d.ts +230 -0
  139. package/types/i18n/messages/zh-hant.d.ts +183 -0
  140. package/types/index.d.ts +11 -0
  141. package/types/utils/convert.d.ts +1 -0
  142. package/types/utils/uuid.d.ts +1 -0
@@ -0,0 +1,196 @@
1
+ import { OIcon, OTooltip } from '../index';
2
+ declare const emit: (event: "click", ...args: any[]) => void;
3
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
4
+ declare var __VLS_10: {};
5
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
6
+ default?: (props: typeof __VLS_10) => any;
7
+ }>;
8
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ icon: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ color: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ background: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ tooltip: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ placement: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ disabled: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ contentClass: {
34
+ type: (StringConstructor | ObjectConstructor)[];
35
+ default: string;
36
+ };
37
+ contentStyle: {
38
+ type: (StringConstructor | ObjectConstructor)[];
39
+ default: string;
40
+ };
41
+ iconClass: {
42
+ type: (StringConstructor | ObjectConstructor)[];
43
+ default: string;
44
+ };
45
+ }>, {
46
+ OIcon: typeof OIcon;
47
+ OTooltip: typeof OTooltip;
48
+ emit: typeof emit;
49
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
+ click: (...args: any[]) => void;
51
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
+ icon: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ color: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ background: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ tooltip: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ placement: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ disabled: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ contentClass: {
77
+ type: (StringConstructor | ObjectConstructor)[];
78
+ default: string;
79
+ };
80
+ contentStyle: {
81
+ type: (StringConstructor | ObjectConstructor)[];
82
+ default: string;
83
+ };
84
+ iconClass: {
85
+ type: (StringConstructor | ObjectConstructor)[];
86
+ default: string;
87
+ };
88
+ }>> & Readonly<{
89
+ onClick?: (...args: any[]) => any;
90
+ }>, {
91
+ color: string;
92
+ icon: string;
93
+ placement: string;
94
+ contentClass: string | Record<string, any>;
95
+ background: string;
96
+ tooltip: string;
97
+ disabled: boolean;
98
+ contentStyle: string | Record<string, any>;
99
+ iconClass: string | Record<string, any>;
100
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
101
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
102
+ icon: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ color: {
107
+ type: StringConstructor;
108
+ default: string;
109
+ };
110
+ background: {
111
+ type: StringConstructor;
112
+ default: string;
113
+ };
114
+ tooltip: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
118
+ placement: {
119
+ type: StringConstructor;
120
+ default: string;
121
+ };
122
+ disabled: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
126
+ contentClass: {
127
+ type: (StringConstructor | ObjectConstructor)[];
128
+ default: string;
129
+ };
130
+ contentStyle: {
131
+ type: (StringConstructor | ObjectConstructor)[];
132
+ default: string;
133
+ };
134
+ iconClass: {
135
+ type: (StringConstructor | ObjectConstructor)[];
136
+ default: string;
137
+ };
138
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
139
+ click: (...args: any[]) => void;
140
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
141
+ icon: {
142
+ type: StringConstructor;
143
+ default: string;
144
+ };
145
+ color: {
146
+ type: StringConstructor;
147
+ default: string;
148
+ };
149
+ background: {
150
+ type: StringConstructor;
151
+ default: string;
152
+ };
153
+ tooltip: {
154
+ type: StringConstructor;
155
+ default: string;
156
+ };
157
+ placement: {
158
+ type: StringConstructor;
159
+ default: string;
160
+ };
161
+ disabled: {
162
+ type: BooleanConstructor;
163
+ default: boolean;
164
+ };
165
+ contentClass: {
166
+ type: (StringConstructor | ObjectConstructor)[];
167
+ default: string;
168
+ };
169
+ contentStyle: {
170
+ type: (StringConstructor | ObjectConstructor)[];
171
+ default: string;
172
+ };
173
+ iconClass: {
174
+ type: (StringConstructor | ObjectConstructor)[];
175
+ default: string;
176
+ };
177
+ }>> & Readonly<{
178
+ onClick?: (...args: any[]) => any;
179
+ }>, {
180
+ color: string;
181
+ icon: string;
182
+ placement: string;
183
+ contentClass: string | Record<string, any>;
184
+ background: string;
185
+ tooltip: string;
186
+ disabled: boolean;
187
+ contentStyle: string | Record<string, any>;
188
+ iconClass: string | Record<string, any>;
189
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
190
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
191
+ export default _default;
192
+ type __VLS_WithSlots<T, S> = T & {
193
+ new (): {
194
+ $slots: S;
195
+ };
196
+ };
@@ -0,0 +1,214 @@
1
+ import { OIcon, OTooltip } from '../index';
2
+ declare function onClick(): void;
3
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
4
+ declare var __VLS_10: {};
5
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
6
+ default?: (props: typeof __VLS_10) => any;
7
+ }>;
8
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ icon: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ color: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ background: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ tooltip: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ placement: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ disabled: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ loading: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ contentClass: {
38
+ type: (StringConstructor | ObjectConstructor)[];
39
+ default: string;
40
+ };
41
+ contentStyle: {
42
+ type: (StringConstructor | ObjectConstructor)[];
43
+ default: string;
44
+ };
45
+ iconClass: {
46
+ type: (StringConstructor | ObjectConstructor)[];
47
+ default: string;
48
+ };
49
+ }>, {
50
+ OIcon: typeof OIcon;
51
+ OTooltip: typeof OTooltip;
52
+ onClick: typeof onClick;
53
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
+ click: (...args: any[]) => void;
55
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56
+ icon: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ color: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ background: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ tooltip: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ placement: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ disabled: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ loading: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ contentClass: {
85
+ type: (StringConstructor | ObjectConstructor)[];
86
+ default: string;
87
+ };
88
+ contentStyle: {
89
+ type: (StringConstructor | ObjectConstructor)[];
90
+ default: string;
91
+ };
92
+ iconClass: {
93
+ type: (StringConstructor | ObjectConstructor)[];
94
+ default: string;
95
+ };
96
+ }>> & Readonly<{
97
+ onClick?: (...args: any[]) => any;
98
+ }>, {
99
+ color: string;
100
+ icon: string;
101
+ placement: string;
102
+ contentClass: string | Record<string, any>;
103
+ background: string;
104
+ tooltip: string;
105
+ disabled: boolean;
106
+ contentStyle: string | Record<string, any>;
107
+ iconClass: string | Record<string, any>;
108
+ loading: boolean;
109
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
110
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
111
+ icon: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
115
+ color: {
116
+ type: StringConstructor;
117
+ default: string;
118
+ };
119
+ background: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ tooltip: {
124
+ type: StringConstructor;
125
+ default: string;
126
+ };
127
+ placement: {
128
+ type: StringConstructor;
129
+ default: string;
130
+ };
131
+ disabled: {
132
+ type: BooleanConstructor;
133
+ default: boolean;
134
+ };
135
+ loading: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
139
+ contentClass: {
140
+ type: (StringConstructor | ObjectConstructor)[];
141
+ default: string;
142
+ };
143
+ contentStyle: {
144
+ type: (StringConstructor | ObjectConstructor)[];
145
+ default: string;
146
+ };
147
+ iconClass: {
148
+ type: (StringConstructor | ObjectConstructor)[];
149
+ default: string;
150
+ };
151
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
152
+ click: (...args: any[]) => void;
153
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
154
+ icon: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
158
+ color: {
159
+ type: StringConstructor;
160
+ default: string;
161
+ };
162
+ background: {
163
+ type: StringConstructor;
164
+ default: string;
165
+ };
166
+ tooltip: {
167
+ type: StringConstructor;
168
+ default: string;
169
+ };
170
+ placement: {
171
+ type: StringConstructor;
172
+ default: string;
173
+ };
174
+ disabled: {
175
+ type: BooleanConstructor;
176
+ default: boolean;
177
+ };
178
+ loading: {
179
+ type: BooleanConstructor;
180
+ default: boolean;
181
+ };
182
+ contentClass: {
183
+ type: (StringConstructor | ObjectConstructor)[];
184
+ default: string;
185
+ };
186
+ contentStyle: {
187
+ type: (StringConstructor | ObjectConstructor)[];
188
+ default: string;
189
+ };
190
+ iconClass: {
191
+ type: (StringConstructor | ObjectConstructor)[];
192
+ default: string;
193
+ };
194
+ }>> & Readonly<{
195
+ onClick?: (...args: any[]) => any;
196
+ }>, {
197
+ color: string;
198
+ icon: string;
199
+ placement: string;
200
+ contentClass: string | Record<string, any>;
201
+ background: string;
202
+ tooltip: string;
203
+ disabled: boolean;
204
+ contentStyle: string | Record<string, any>;
205
+ iconClass: string | Record<string, any>;
206
+ loading: boolean;
207
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
208
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
209
+ export default _default;
210
+ type __VLS_WithSlots<T, S> = T & {
211
+ new (): {
212
+ $slots: S;
213
+ };
214
+ };