@kaitify/vue 0.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/lib/core/button/button.vue.d.ts +22 -0
  4. package/lib/core/button/index.d.ts +3 -0
  5. package/lib/core/button/props.d.ts +21 -0
  6. package/lib/core/checkbox/checkbox.vue.d.ts +10 -0
  7. package/lib/core/checkbox/index.d.ts +3 -0
  8. package/lib/core/checkbox/props.d.ts +14 -0
  9. package/lib/core/divider/divider.vue.d.ts +2 -0
  10. package/lib/core/divider/index.d.ts +2 -0
  11. package/lib/core/icon/icon.vue.d.ts +5 -0
  12. package/lib/core/icon/index.d.ts +3 -0
  13. package/lib/core/icon/props.d.ts +6 -0
  14. package/lib/core/popover/index.d.ts +3 -0
  15. package/lib/core/popover/popover.vue.d.ts +52 -0
  16. package/lib/core/popover/props.d.ts +49 -0
  17. package/lib/core/tabs/index.d.ts +3 -0
  18. package/lib/core/tabs/props.d.ts +9 -0
  19. package/lib/core/tabs/tabs.vue.d.ts +21 -0
  20. package/lib/editor/bubble/bubble.vue.d.ts +40 -0
  21. package/lib/editor/bubble/index.d.ts +3 -0
  22. package/lib/editor/bubble/props.d.ts +18 -0
  23. package/lib/editor/menu/built-in/align-center/align-center.vue.d.ts +5 -0
  24. package/lib/editor/menu/built-in/align-center/index.d.ts +3 -0
  25. package/lib/editor/menu/built-in/align-center/props.d.ts +10 -0
  26. package/lib/editor/menu/built-in/align-justify/align-justify.vue.d.ts +5 -0
  27. package/lib/editor/menu/built-in/align-justify/index.d.ts +3 -0
  28. package/lib/editor/menu/built-in/align-justify/props.d.ts +10 -0
  29. package/lib/editor/menu/built-in/align-left/align-left.vue.d.ts +5 -0
  30. package/lib/editor/menu/built-in/align-left/index.d.ts +3 -0
  31. package/lib/editor/menu/built-in/align-left/props.d.ts +10 -0
  32. package/lib/editor/menu/built-in/align-right/align-right.vue.d.ts +5 -0
  33. package/lib/editor/menu/built-in/align-right/index.d.ts +3 -0
  34. package/lib/editor/menu/built-in/align-right/props.d.ts +10 -0
  35. package/lib/editor/menu/built-in/attachment/attachment.vue.d.ts +5 -0
  36. package/lib/editor/menu/built-in/attachment/index.d.ts +3 -0
  37. package/lib/editor/menu/built-in/attachment/props.d.ts +19 -0
  38. package/lib/editor/menu/built-in/back-color/back-color.vue.d.ts +6 -0
  39. package/lib/editor/menu/built-in/back-color/index.d.ts +3 -0
  40. package/lib/editor/menu/built-in/back-color/props.d.ts +15 -0
  41. package/lib/editor/menu/built-in/blockquote/blockquote.vue.d.ts +5 -0
  42. package/lib/editor/menu/built-in/blockquote/index.d.ts +3 -0
  43. package/lib/editor/menu/built-in/blockquote/props.d.ts +10 -0
  44. package/lib/editor/menu/built-in/bold/bold.vue.d.ts +5 -0
  45. package/lib/editor/menu/built-in/bold/index.d.ts +3 -0
  46. package/lib/editor/menu/built-in/bold/props.d.ts +10 -0
  47. package/lib/editor/menu/built-in/clear-format/clear-format.vue.d.ts +5 -0
  48. package/lib/editor/menu/built-in/clear-format/index.d.ts +3 -0
  49. package/lib/editor/menu/built-in/clear-format/props.d.ts +10 -0
  50. package/lib/editor/menu/built-in/code/code.vue.d.ts +5 -0
  51. package/lib/editor/menu/built-in/code/index.d.ts +3 -0
  52. package/lib/editor/menu/built-in/code/props.d.ts +10 -0
  53. package/lib/editor/menu/built-in/code-block/code-block-languages.vue.d.ts +7 -0
  54. package/lib/editor/menu/built-in/code-block/code-block.vue.d.ts +5 -0
  55. package/lib/editor/menu/built-in/code-block/index.d.ts +4 -0
  56. package/lib/editor/menu/built-in/code-block/props.d.ts +32 -0
  57. package/lib/editor/menu/built-in/color/color.vue.d.ts +6 -0
  58. package/lib/editor/menu/built-in/color/index.d.ts +3 -0
  59. package/lib/editor/menu/built-in/color/props.d.ts +15 -0
  60. package/lib/editor/menu/built-in/decrease-indent/decrease-indent.vue.d.ts +5 -0
  61. package/lib/editor/menu/built-in/decrease-indent/index.d.ts +3 -0
  62. package/lib/editor/menu/built-in/decrease-indent/props.d.ts +10 -0
  63. package/lib/editor/menu/built-in/font-family/font-family.vue.d.ts +7 -0
  64. package/lib/editor/menu/built-in/font-family/index.d.ts +3 -0
  65. package/lib/editor/menu/built-in/font-family/props.d.ts +21 -0
  66. package/lib/editor/menu/built-in/font-size/font-size.vue.d.ts +7 -0
  67. package/lib/editor/menu/built-in/font-size/index.d.ts +3 -0
  68. package/lib/editor/menu/built-in/font-size/props.d.ts +21 -0
  69. package/lib/editor/menu/built-in/heading/heading.vue.d.ts +7 -0
  70. package/lib/editor/menu/built-in/heading/index.d.ts +3 -0
  71. package/lib/editor/menu/built-in/heading/props.d.ts +21 -0
  72. package/lib/editor/menu/built-in/horizontal/horizontal.vue.d.ts +5 -0
  73. package/lib/editor/menu/built-in/horizontal/index.d.ts +3 -0
  74. package/lib/editor/menu/built-in/horizontal/props.d.ts +10 -0
  75. package/lib/editor/menu/built-in/image/image.vue.d.ts +5 -0
  76. package/lib/editor/menu/built-in/image/index.d.ts +3 -0
  77. package/lib/editor/menu/built-in/image/props.d.ts +19 -0
  78. package/lib/editor/menu/built-in/increase-indent/increase-indent.vue.d.ts +5 -0
  79. package/lib/editor/menu/built-in/increase-indent/index.d.ts +3 -0
  80. package/lib/editor/menu/built-in/increase-indent/props.d.ts +10 -0
  81. package/lib/editor/menu/built-in/index.d.ts +36 -0
  82. package/lib/editor/menu/built-in/italic/index.d.ts +3 -0
  83. package/lib/editor/menu/built-in/italic/italic.vue.d.ts +5 -0
  84. package/lib/editor/menu/built-in/italic/props.d.ts +10 -0
  85. package/lib/editor/menu/built-in/line-height/index.d.ts +3 -0
  86. package/lib/editor/menu/built-in/line-height/line-height.vue.d.ts +8 -0
  87. package/lib/editor/menu/built-in/line-height/props.d.ts +25 -0
  88. package/lib/editor/menu/built-in/link/index.d.ts +4 -0
  89. package/lib/editor/menu/built-in/link/link-unset.vue.d.ts +5 -0
  90. package/lib/editor/menu/built-in/link/link.vue.d.ts +5 -0
  91. package/lib/editor/menu/built-in/link/props.d.ts +21 -0
  92. package/lib/editor/menu/built-in/math/index.d.ts +3 -0
  93. package/lib/editor/menu/built-in/math/math.vue.d.ts +5 -0
  94. package/lib/editor/menu/built-in/math/props.d.ts +11 -0
  95. package/lib/editor/menu/built-in/ordered-list/index.d.ts +3 -0
  96. package/lib/editor/menu/built-in/ordered-list/ordered-list.vue.d.ts +5 -0
  97. package/lib/editor/menu/built-in/ordered-list/props.d.ts +11 -0
  98. package/lib/editor/menu/built-in/redo/index.d.ts +3 -0
  99. package/lib/editor/menu/built-in/redo/props.d.ts +6 -0
  100. package/lib/editor/menu/built-in/redo/redo.vue.d.ts +5 -0
  101. package/lib/editor/menu/built-in/strikethrough/index.d.ts +3 -0
  102. package/lib/editor/menu/built-in/strikethrough/props.d.ts +10 -0
  103. package/lib/editor/menu/built-in/strikethrough/strikethrough.vue.d.ts +5 -0
  104. package/lib/editor/menu/built-in/subscript/index.d.ts +3 -0
  105. package/lib/editor/menu/built-in/subscript/props.d.ts +10 -0
  106. package/lib/editor/menu/built-in/subscript/subscript.vue.d.ts +5 -0
  107. package/lib/editor/menu/built-in/superscript/index.d.ts +3 -0
  108. package/lib/editor/menu/built-in/superscript/props.d.ts +10 -0
  109. package/lib/editor/menu/built-in/superscript/superscript.vue.d.ts +5 -0
  110. package/lib/editor/menu/built-in/table/index.d.ts +9 -0
  111. package/lib/editor/menu/built-in/table/props.d.ts +97 -0
  112. package/lib/editor/menu/built-in/table/table-add-column.vue.d.ts +5 -0
  113. package/lib/editor/menu/built-in/table/table-add-row.vue.d.ts +5 -0
  114. package/lib/editor/menu/built-in/table/table-delete-column.vue.d.ts +5 -0
  115. package/lib/editor/menu/built-in/table/table-delete-row.vue.d.ts +5 -0
  116. package/lib/editor/menu/built-in/table/table-merge-cell.vue.d.ts +5 -0
  117. package/lib/editor/menu/built-in/table/table-unset.vue.d.ts +5 -0
  118. package/lib/editor/menu/built-in/table/table.vue.d.ts +7 -0
  119. package/lib/editor/menu/built-in/task/index.d.ts +3 -0
  120. package/lib/editor/menu/built-in/task/props.d.ts +10 -0
  121. package/lib/editor/menu/built-in/task/task.vue.d.ts +5 -0
  122. package/lib/editor/menu/built-in/underline/index.d.ts +3 -0
  123. package/lib/editor/menu/built-in/underline/props.d.ts +10 -0
  124. package/lib/editor/menu/built-in/underline/underline.vue.d.ts +5 -0
  125. package/lib/editor/menu/built-in/undo/index.d.ts +3 -0
  126. package/lib/editor/menu/built-in/undo/props.d.ts +6 -0
  127. package/lib/editor/menu/built-in/undo/undo.vue.d.ts +5 -0
  128. package/lib/editor/menu/built-in/unordered-list/index.d.ts +3 -0
  129. package/lib/editor/menu/built-in/unordered-list/props.d.ts +11 -0
  130. package/lib/editor/menu/built-in/unordered-list/unordered-list.vue.d.ts +5 -0
  131. package/lib/editor/menu/built-in/video/index.d.ts +6 -0
  132. package/lib/editor/menu/built-in/video/props.d.ts +49 -0
  133. package/lib/editor/menu/built-in/video/video-controls.vue.d.ts +5 -0
  134. package/lib/editor/menu/built-in/video/video-loop.vue.d.ts +5 -0
  135. package/lib/editor/menu/built-in/video/video-muted.vue.d.ts +5 -0
  136. package/lib/editor/menu/built-in/video/video.vue.d.ts +5 -0
  137. package/lib/editor/menu/built-in/wrap-down/index.d.ts +3 -0
  138. package/lib/editor/menu/built-in/wrap-down/props.d.ts +15 -0
  139. package/lib/editor/menu/built-in/wrap-down/wrap-down.vue.d.ts +5 -0
  140. package/lib/editor/menu/built-in/wrap-up/index.d.ts +3 -0
  141. package/lib/editor/menu/built-in/wrap-up/props.d.ts +15 -0
  142. package/lib/editor/menu/built-in/wrap-up/wrap-up.vue.d.ts +5 -0
  143. package/lib/editor/menu/index.d.ts +4 -0
  144. package/lib/editor/menu/menu.vue.d.ts +164 -0
  145. package/lib/editor/menu/props.d.ts +57 -0
  146. package/lib/editor/wrapper/index.d.ts +3 -0
  147. package/lib/editor/wrapper/props.d.ts +133 -0
  148. package/lib/editor/wrapper/render.d.ts +13 -0
  149. package/lib/editor/wrapper/wrapper.vue.d.ts +79 -0
  150. package/lib/index.d.ts +4 -0
  151. package/lib/kaitify-vue.es.js +44470 -0
  152. package/lib/kaitify-vue.umd.js +2 -0
  153. package/lib/locale/en-us.d.ts +24 -0
  154. package/lib/locale/index.d.ts +2 -0
  155. package/package.json +50 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 so-better
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 ADDED
@@ -0,0 +1,3 @@
1
+ #### 基于@kaitify/core 开发的 vue 富文本编辑器核心库
2
+
3
+ > 具体使用方法请参阅:[@kaitify/vue](https://www.so-better.cn/kaitify-vue/)
@@ -0,0 +1,22 @@
1
+ import { ButtonPropsType } from './props';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<ButtonPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonPropsType> & Readonly<{}>, {
11
+ disabled: boolean;
12
+ block: boolean;
13
+ active: boolean;
14
+ large: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,3 @@
1
+ import { default as Button } from './button.vue';
2
+ export * from './props';
3
+ export { Button };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * 按钮组件的属性类型
3
+ */
4
+ export type ButtonPropsType = {
5
+ /**
6
+ * 是否禁用
7
+ */
8
+ disabled?: boolean;
9
+ /**
10
+ * 是否激活
11
+ */
12
+ active?: boolean;
13
+ /**
14
+ * 是否块级展示
15
+ */
16
+ block?: boolean;
17
+ /**
18
+ * 是否更大的按钮
19
+ */
20
+ large?: boolean;
21
+ };
@@ -0,0 +1,10 @@
1
+ import { CheckboxPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<CheckboxPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ "update:modelValue": (...args: any[]) => void;
4
+ }, string, import('vue').PublicProps, Readonly<CheckboxPropsType> & Readonly<{
5
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
+ }>, {
7
+ disabled: boolean;
8
+ modelValue: boolean;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as Checkbox } from './checkbox.vue';
2
+ export type * from './props';
3
+ export { Checkbox };
@@ -0,0 +1,14 @@
1
+ export type CheckboxPropsType = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ /**
7
+ * 是否选中
8
+ */
9
+ modelValue?: boolean;
10
+ /**
11
+ * label文字
12
+ */
13
+ label?: string;
14
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as Divider } from './divider.vue';
2
+ export { Divider };
@@ -0,0 +1,5 @@
1
+ import { IconPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<IconPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconPropsType> & Readonly<{}>, {
3
+ name: string;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as Icon } from './icon.vue';
2
+ export * from './props';
3
+ export { Icon };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 图标组件的属性类型
3
+ */
4
+ export type IconPropsType = {
5
+ name: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ import { default as Popover } from './popover.vue';
2
+ export * from './props';
3
+ export { Popover };
@@ -0,0 +1,52 @@
1
+ import { Instance } from '@popperjs/core';
2
+ import { PopoverPropsType, PopoverPlacementType } from './props';
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ refer?(_: {}): any;
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {
9
+ referRef: HTMLDivElement;
10
+ popoverRef: HTMLDivElement;
11
+ arrowRef: HTMLDivElement;
12
+ };
13
+ attrs: Partial<{}>;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<PopoverPropsType, {
17
+ visible: import('vue').Ref<boolean, boolean>;
18
+ showPopover: () => void;
19
+ hidePopover: () => void;
20
+ popperInstance: import('vue').Ref<Instance | undefined, Instance | undefined>;
21
+ update: () => Promise<void>;
22
+ realPlacement: import('vue').Ref<PopoverPlacementType, PopoverPlacementType>;
23
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ show: (...args: any[]) => void;
25
+ showing: (...args: any[]) => void;
26
+ shown: (...args: any[]) => void;
27
+ hide: (...args: any[]) => void;
28
+ hiding: (...args: any[]) => void;
29
+ hidden: (...args: any[]) => void;
30
+ }, string, import('vue').PublicProps, Readonly<PopoverPropsType> & Readonly<{
31
+ onShow?: ((...args: any[]) => any) | undefined;
32
+ onShowing?: ((...args: any[]) => any) | undefined;
33
+ onShown?: ((...args: any[]) => any) | undefined;
34
+ onHide?: ((...args: any[]) => any) | undefined;
35
+ onHiding?: ((...args: any[]) => any) | undefined;
36
+ onHidden?: ((...args: any[]) => any) | undefined;
37
+ }>, {
38
+ zIndex: number;
39
+ disabled: boolean;
40
+ animation: "fade" | "translate" | (string & {});
41
+ placement: PopoverPlacementType;
42
+ arrow: boolean;
43
+ trigger: "hover" | "click" | "custom";
44
+ delay: number;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
47
+ export default _default;
48
+ type __VLS_WithTemplateSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,49 @@
1
+ /**
2
+ * 浮层位置类型
3
+ */
4
+ export type PopoverPlacementType = 'auto' | 'auto-start' | 'auto-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end' | 'left-start' | 'left' | 'left-end' | 'right-start' | 'right' | 'right-end';
5
+ /**
6
+ * 浮层组件属性类型
7
+ */
8
+ export type PopoverPropsType = {
9
+ /**
10
+ * 浮层宽度
11
+ */
12
+ width?: string | number;
13
+ /**
14
+ * 浮层最小宽度
15
+ */
16
+ minWidth?: string | number;
17
+ /**
18
+ * 浮层最大高度
19
+ */
20
+ maxHeight?: string | number;
21
+ /**
22
+ * 浮层位置
23
+ */
24
+ placement?: PopoverPlacementType;
25
+ /**
26
+ * 是否显示三角形
27
+ */
28
+ arrow?: boolean;
29
+ /**
30
+ * 触发浮层的方式
31
+ */
32
+ trigger?: 'hover' | 'click' | 'custom';
33
+ /**
34
+ * 浮层显示动画
35
+ */
36
+ animation?: 'fade' | 'translate' | (string & {});
37
+ /**
38
+ * 浮层层级
39
+ */
40
+ zIndex?: number;
41
+ /**
42
+ * 显示延迟时间
43
+ */
44
+ delay?: number;
45
+ /**
46
+ * 是否禁用浮层
47
+ */
48
+ disabled?: boolean;
49
+ };
@@ -0,0 +1,3 @@
1
+ import { default as Tabs } from './tabs.vue';
2
+ export * from './props';
3
+ export { Tabs };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 选项卡组件属性类型
3
+ */
4
+ export type TabsPropsType = {
5
+ /**
6
+ * 选项卡头部名称列表
7
+ */
8
+ names: string[];
9
+ };
@@ -0,0 +1,21 @@
1
+ import { TabsPropsType } from './props';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {
5
+ index: number;
6
+ }): any;
7
+ };
8
+ refs: {};
9
+ attrs: Partial<{}>;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<TabsPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabsPropsType> & Readonly<{}>, {
13
+ names: string[];
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,40 @@
1
+ import { Instance } from '@popperjs/core';
2
+ import { BubblePropsType } from './props';
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {
8
+ elRef: HTMLDivElement;
9
+ };
10
+ attrs: Partial<{}>;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<BubblePropsType, {
14
+ elRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
15
+ popperInstance: import('vue').Ref<Instance | undefined, Instance | undefined>;
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ show: (...args: any[]) => void;
18
+ showing: (...args: any[]) => void;
19
+ shown: (...args: any[]) => void;
20
+ hide: (...args: any[]) => void;
21
+ hiding: (...args: any[]) => void;
22
+ hidden: (...args: any[]) => void;
23
+ }, string, import('vue').PublicProps, Readonly<BubblePropsType> & Readonly<{
24
+ onShow?: ((...args: any[]) => any) | undefined;
25
+ onShowing?: ((...args: any[]) => any) | undefined;
26
+ onShown?: ((...args: any[]) => any) | undefined;
27
+ onHide?: ((...args: any[]) => any) | undefined;
28
+ onHiding?: ((...args: any[]) => any) | undefined;
29
+ onHidden?: ((...args: any[]) => any) | undefined;
30
+ }>, {
31
+ visible: boolean;
32
+ zIndex: number;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,3 @@
1
+ import { default as Bubble } from './bubble.vue';
2
+ export * from './props';
3
+ export { Bubble };
@@ -0,0 +1,18 @@
1
+ import { KNodeMatchOptionType } from '../../index';
2
+ /**
3
+ * 气泡组件的属性类型
4
+ */
5
+ export type BubblePropsType = {
6
+ /**
7
+ * 是否显示
8
+ */
9
+ visible: boolean;
10
+ /**
11
+ * 层级
12
+ */
13
+ zIndex?: number;
14
+ /**
15
+ * 指定条件,每次更新气泡位置时会光标是否在符合条件的节点下,如果符合则根据该节点的真实dom进行定位
16
+ */
17
+ match?: KNodeMatchOptionType;
18
+ };
@@ -0,0 +1,5 @@
1
+ import { AlignCenterMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<AlignCenterMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlignCenterMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as AlignCenterMenu } from './align-center.vue';
2
+ export * from './props';
3
+ export { AlignCenterMenu };
@@ -0,0 +1,10 @@
1
+ export type AlignCenterMenuPropsType = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ /**
7
+ * 快捷键设置
8
+ */
9
+ shortcut?: (e: KeyboardEvent) => boolean;
10
+ };
@@ -0,0 +1,5 @@
1
+ import { AlignJustifyMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<AlignJustifyMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlignJustifyMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as AlignJustifyMenu } from './align-justify.vue';
2
+ export * from './props';
3
+ export { AlignJustifyMenu };
@@ -0,0 +1,10 @@
1
+ export type AlignJustifyMenuPropsType = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ /**
7
+ * 快捷键设置
8
+ */
9
+ shortcut?: (e: KeyboardEvent) => boolean;
10
+ };
@@ -0,0 +1,5 @@
1
+ import { AlignLeftMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<AlignLeftMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlignLeftMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as AlignLeftMenu } from './align-left.vue';
2
+ export * from './props';
3
+ export { AlignLeftMenu };
@@ -0,0 +1,10 @@
1
+ export type AlignLeftMenuPropsType = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ /**
7
+ * 快捷键设置
8
+ */
9
+ shortcut?: (e: KeyboardEvent) => boolean;
10
+ };
@@ -0,0 +1,5 @@
1
+ import { AlignRightMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<AlignRightMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlignRightMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as AlignRightMenu } from './align-right.vue';
2
+ export * from './props';
3
+ export { AlignRightMenu };
@@ -0,0 +1,10 @@
1
+ export type AlignRightMenuPropsType = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ /**
7
+ * 快捷键设置
8
+ */
9
+ shortcut?: (e: KeyboardEvent) => boolean;
10
+ };
@@ -0,0 +1,5 @@
1
+ import { AttachmentMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<AttachmentMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AttachmentMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as AttachmentMenu } from './attachment.vue';
2
+ export * from './props';
3
+ export { AttachmentMenu };
@@ -0,0 +1,19 @@
1
+ import { MenuPropsType } from '../../props';
2
+ export type AttachmentMenuPropsType = {
3
+ /**
4
+ * 是否禁用
5
+ */
6
+ disabled?: boolean;
7
+ /**
8
+ * 浮层属性
9
+ */
10
+ popoverProps?: MenuPropsType['popoverProps'];
11
+ /**
12
+ * 附件logo图片地址
13
+ */
14
+ iconUrl?: string;
15
+ /**
16
+ * 自定义上传方法
17
+ */
18
+ customUpload?: (file: File) => string | Promise<string>;
19
+ };
@@ -0,0 +1,6 @@
1
+ import { BackColorMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<BackColorMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BackColorMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ colors: string[];
5
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as BackColorMenu } from './back-color.vue';
2
+ export * from './props';
3
+ export { BackColorMenu };
@@ -0,0 +1,15 @@
1
+ import { MenuPropsType } from '../../props';
2
+ export type BackColorMenuPropsType = {
3
+ /**
4
+ * 是否禁用
5
+ */
6
+ disabled?: boolean;
7
+ /**
8
+ * 颜色数组
9
+ */
10
+ colors?: string[];
11
+ /**
12
+ * 浮层属性
13
+ */
14
+ popoverProps?: MenuPropsType['popoverProps'];
15
+ };
@@ -0,0 +1,5 @@
1
+ import { BlockquoteMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<BlockquoteMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BlockquoteMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as BlockquoteMenu } from './blockquote.vue';
2
+ export * from './props';
3
+ export { BlockquoteMenu };
@@ -0,0 +1,10 @@
1
+ export type BlockquoteMenuPropsType = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ /**
7
+ * 快捷键设置
8
+ */
9
+ shortcut?: (e: KeyboardEvent) => boolean;
10
+ };
@@ -0,0 +1,5 @@
1
+ import { BoldMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<BoldMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BoldMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as BoldMenu } from './bold.vue';
2
+ export * from './props';
3
+ export { BoldMenu };
@@ -0,0 +1,10 @@
1
+ export type BoldMenuPropsType = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ /**
7
+ * 快捷键设置
8
+ */
9
+ shortcut?: (e: KeyboardEvent) => boolean;
10
+ };
@@ -0,0 +1,5 @@
1
+ import { ClearFormatMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<ClearFormatMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ClearFormatMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as ClearFormatMenu } from './clear-format.vue';
2
+ export * from './props';
3
+ export { ClearFormatMenu };
@@ -0,0 +1,10 @@
1
+ export type ClearFormatMenuPropsType = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ /**
7
+ * 快捷键设置
8
+ */
9
+ shortcut?: (e: KeyboardEvent) => boolean;
10
+ };
@@ -0,0 +1,5 @@
1
+ import { CodeMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<CodeMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CodeMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as CodeMenu } from './code.vue';
2
+ export * from './props';
3
+ export { CodeMenu };
@@ -0,0 +1,10 @@
1
+ export type CodeMenuPropsType = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ /**
7
+ * 快捷键设置
8
+ */
9
+ shortcut?: (e: KeyboardEvent) => boolean;
10
+ };
@@ -0,0 +1,7 @@
1
+ import { HljsLanguageType } from '@kaitify/core';
2
+ import { CodeBlockLanguagesMenuPropsType } from './props';
3
+ declare const _default: import('vue').DefineComponent<CodeBlockLanguagesMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CodeBlockLanguagesMenuPropsType> & Readonly<{}>, {
4
+ disabled: boolean;
5
+ languages: HljsLanguageType[];
6
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { CodeBlockMenuPropsType } from './props';
2
+ declare const _default: import('vue').DefineComponent<CodeBlockMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CodeBlockMenuPropsType> & Readonly<{}>, {
3
+ disabled: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as CodeBlockMenu } from './code-block.vue';
2
+ import { default as CodeBlockLanguagesMenu } from './code-block-languages.vue';
3
+ export * from './props';
4
+ export { CodeBlockMenu, CodeBlockLanguagesMenu };