ik-next-ui 0.0.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 (206) hide show
  1. package/dist/Demo/ik.index.es.js +8 -0
  2. package/dist/IkApprovalProcess/ik-next-ui.css +1 -0
  3. package/dist/IkApprovalProcess/ik.index.es.js +2610 -0
  4. package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -0
  5. package/dist/IkApprovalProcessDetail/ik.index.es.js +17033 -0
  6. package/dist/IkAutoCard/ik-next-ui.css +1 -0
  7. package/dist/IkAutoCard/ik.index.es.js +51 -0
  8. package/dist/IkBaseDialog/ik-next-ui.css +1 -0
  9. package/dist/IkBaseDialog/ik.index.es.js +1954 -0
  10. package/dist/IkBottomOperate/ik-next-ui.css +1 -0
  11. package/dist/IkBottomOperate/ik.index.es.js +241 -0
  12. package/dist/IkBtnContent/ik-next-ui.css +1 -0
  13. package/dist/IkBtnContent/ik.index.es.js +80 -0
  14. package/dist/IkCollapseCard/ik-next-ui.css +1 -0
  15. package/dist/IkCollapseCard/ik.index.es.js +1924 -0
  16. package/dist/IkCurrencyInput/ik.index.es.js +60 -0
  17. package/dist/IkDescription/ik-next-ui.css +1 -0
  18. package/dist/IkDescription/ik.index.es.js +16544 -0
  19. package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -0
  20. package/dist/IkDetailPreviewFiles/ik.index.es.js +16540 -0
  21. package/dist/IkDragList/ik-next-ui.css +1 -0
  22. package/dist/IkDragList/ik.index.es.js +445 -0
  23. package/dist/IkEmpty/ik-next-ui.css +1 -0
  24. package/dist/IkEmpty/ik.index.es.js +44 -0
  25. package/dist/IkFileIcon/ik.index.es.js +619 -0
  26. package/dist/IkHorizontalStepBar/ik-next-ui.css +1 -0
  27. package/dist/IkHorizontalStepBar/ik.index.es.js +279 -0
  28. package/dist/IkIconPicker/ik-next-ui.css +1 -0
  29. package/dist/IkIconPicker/ik.index.es.js +2060 -0
  30. package/dist/IkImageUploadEditor/ik-next-ui.css +9 -0
  31. package/dist/IkImageUploadEditor/ik.index.es.js +9489 -0
  32. package/dist/IkImageViewer/ik.index.es.js +552 -0
  33. package/dist/IkMonacoEditor/ik-next-ui.css +1 -0
  34. package/dist/IkMonacoEditor/ik.index.es.js +2566 -0
  35. package/dist/IkOnlyOffice/ik.index.es.js +1612 -0
  36. package/dist/IkPage/ik.index.es.js +1 -0
  37. package/dist/IkPickerUser/ik-next-ui.css +1 -0
  38. package/dist/IkPickerUser/ik.index.es.js +2077 -0
  39. package/dist/IkPlayer/ik-next-ui.css +1 -0
  40. package/dist/IkPlayer/ik.index.es.js +11071 -0
  41. package/dist/IkPreviewFile/ik-next-ui.css +1 -0
  42. package/dist/IkPreviewFile/ik.index.es.js +16385 -0
  43. package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -0
  44. package/dist/IkPreviewFileDialog/ik.index.es.js +15486 -0
  45. package/dist/IkRadioGroup/ik-next-ui.css +1 -0
  46. package/dist/IkRadioGroup/ik.index.es.js +1937 -0
  47. package/dist/IkSelectTag/ik-next-ui.css +1 -0
  48. package/dist/IkSelectTag/ik.index.es.js +359 -0
  49. package/dist/IkSideText/ik-next-ui.css +1 -0
  50. package/dist/IkSideText/ik.index.es.js +2084 -0
  51. package/dist/IkStatu/ik-next-ui.css +1 -0
  52. package/dist/IkStatu/ik.index.es.js +131 -0
  53. package/dist/IkStatuOver/ik-next-ui.css +1 -0
  54. package/dist/IkStatuOver/ik.index.es.js +284 -0
  55. package/dist/IkSvgIcon/ik-next-ui.css +1 -0
  56. package/dist/IkSvgIcon/ik.index.es.js +1845 -0
  57. package/dist/IkTemplateOfficeConfig/ik-next-ui.css +1 -0
  58. package/dist/IkTemplateOfficeConfig/ik.index.es.js +2027 -0
  59. package/dist/IkTinymce/ik-next-ui.css +1 -0
  60. package/dist/IkTinymce/ik.index.es.js +50349 -0
  61. package/dist/IkTooltip/ik.index.es.js +48 -0
  62. package/dist/IkTree/ik-next-ui.css +1 -0
  63. package/dist/IkTree/ik.index.es.js +136 -0
  64. package/dist/IkUploadFile/ik-next-ui.css +1 -0
  65. package/dist/IkUploadFile/ik.index.es.js +17251 -0
  66. package/dist/IkUploadImage/ik-next-ui.css +1 -0
  67. package/dist/IkUploadImage/ik.index.es.js +2946 -0
  68. package/dist/IkVerticalStepBar/ik-next-ui.css +1 -0
  69. package/dist/IkVerticalStepBar/ik.index.es.js +1987 -0
  70. package/dist/Provider/ik.index.es.js +42 -0
  71. package/dist/ik-next-ui.css +9 -0
  72. package/dist/index.es.js +84696 -0
  73. package/dist/index.umd.js +371 -0
  74. package/dist/resolver.cjs +1 -0
  75. package/dist/resolver.js +63 -0
  76. package/dist/src/components/Demo/index.d.ts +4 -0
  77. package/dist/src/components/IkApprovalProcess/index.d.ts +100 -0
  78. package/dist/src/components/IkApprovalProcess/src/IkApprovalProcess.vue.d.ts +100 -0
  79. package/dist/src/components/IkApprovalProcessDetail/index.d.ts +108 -0
  80. package/dist/src/components/IkApprovalProcessDetail/src/IkApprovalProcessDetail.vue.d.ts +109 -0
  81. package/dist/src/components/IkAutoCard/index.d.ts +60 -0
  82. package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +43 -0
  83. package/dist/src/components/IkBaseDialog/index.d.ts +141 -0
  84. package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +23 -0
  85. package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +87 -0
  86. package/dist/src/components/IkBottomOperate/index.d.ts +155 -0
  87. package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +84 -0
  88. package/dist/src/components/IkCollapseCard/index.d.ts +59 -0
  89. package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +36 -0
  90. package/dist/src/components/IkCurrencyInput/index.d.ts +25 -0
  91. package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +25 -0
  92. package/dist/src/components/IkDescription/index.d.ts +235 -0
  93. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +146 -0
  94. package/dist/src/components/IkDetailPreviewFiles/index.d.ts +52 -0
  95. package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +53 -0
  96. package/dist/src/components/IkDragList/index.d.ts +509 -0
  97. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +307 -0
  98. package/dist/src/components/IkDragList/src/default-props.d.ts +150 -0
  99. package/dist/src/components/IkEmpty/index.d.ts +69 -0
  100. package/dist/src/components/IkEmpty/src/index.vue.d.ts +41 -0
  101. package/dist/src/components/IkFileIcon/index.d.ts +40 -0
  102. package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +42 -0
  103. package/dist/src/components/IkHorizontalStepBar/index.d.ts +224 -0
  104. package/dist/src/components/IkHorizontalStepBar/src/IkHorizontalStepBar.vue.d.ts +137 -0
  105. package/dist/src/components/IkIconPicker/index.d.ts +83 -0
  106. package/dist/src/components/IkIconPicker/src/index.vue.d.ts +83 -0
  107. package/dist/src/components/IkImageUploadEditor/index.d.ts +231 -0
  108. package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +232 -0
  109. package/dist/src/components/IkImageViewer/index.d.ts +6 -0
  110. package/dist/src/components/IkImageViewer/src/IkImageViewer.vue.d.ts +11 -0
  111. package/dist/src/components/IkImageViewer/src/image-viewer.d.ts +87 -0
  112. package/dist/src/components/IkMonacoEditor/index.d.ts +229 -0
  113. package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +10 -0
  114. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +232 -0
  115. package/dist/src/components/IkOnlyOffice/index.d.ts +32 -0
  116. package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +32 -0
  117. package/dist/src/components/IkPage/index.d.ts +0 -0
  118. package/dist/src/components/IkPickerUser/index.d.ts +373 -0
  119. package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +41 -0
  120. package/dist/src/components/IkPickerUser/src/default.d.ts +156 -0
  121. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +112 -0
  122. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +110 -0
  123. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +110 -0
  124. package/dist/src/components/IkPickerUser/src/list/props.d.ts +49 -0
  125. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +5 -0
  126. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +375 -0
  127. package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +2 -0
  128. package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +2 -0
  129. package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +2 -0
  130. package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +2 -0
  131. package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +2 -0
  132. package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +15 -0
  133. package/dist/src/components/IkPickerUser/types.d.ts +28 -0
  134. package/dist/src/components/IkPlayer/index.d.ts +82 -0
  135. package/dist/src/components/IkPlayer/src/Player.vue.d.ts +48 -0
  136. package/dist/src/components/IkPreviewFile/index.d.ts +382 -0
  137. package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +231 -0
  138. package/dist/src/components/IkPreviewFileDialog/index.d.ts +80 -0
  139. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +82 -0
  140. package/dist/src/components/IkRadioGroup/index.d.ts +30 -0
  141. package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +32 -0
  142. package/dist/src/components/IkSelectTag/index.d.ts +85 -0
  143. package/dist/src/components/IkSelectTag/src/index.vue.d.ts +49 -0
  144. package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +32 -0
  145. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +115 -0
  146. package/dist/src/components/IkSideText/index.d.ts +113 -0
  147. package/dist/src/components/IkSideText/useLinear.d.ts +3 -0
  148. package/dist/src/components/IkStatu/index.d.ts +117 -0
  149. package/dist/src/components/IkStatu/src/index.vue.d.ts +119 -0
  150. package/dist/src/components/IkStatuOver/index.d.ts +36 -0
  151. package/dist/src/components/IkStatuOver/src/index.vue.d.ts +52 -0
  152. package/dist/src/components/IkSvgIcon/index.d.ts +135 -0
  153. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +146 -0
  154. package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +130 -0
  155. package/dist/src/components/IkTemplateOfficeConfig/src/IkTemplateOfficeConfig.vue.d.ts +130 -0
  156. package/dist/src/components/IkTemplateOfficeConfig/src/templateOfficeData.vue.d.ts +57 -0
  157. package/dist/src/components/IkTinymce/index.d.ts +215 -0
  158. package/dist/src/components/IkTinymce/src/index.vue.d.ts +216 -0
  159. package/dist/src/components/IkTooltip/index.d.ts +84 -0
  160. package/dist/src/components/IkTooltip/src/index.vue.d.ts +52 -0
  161. package/dist/src/components/IkTree/IkTree.vue.d.ts +1597 -0
  162. package/dist/src/components/IkTree/index.d.ts +4693 -0
  163. package/dist/src/components/IkUploadFile/index.d.ts +586 -0
  164. package/dist/src/components/IkUploadFile/src/components/ErrorFileItem.vue.d.ts +27 -0
  165. package/dist/src/components/IkUploadFile/src/components/FileItemCard.vue.d.ts +85 -0
  166. package/dist/src/components/IkUploadFile/src/components/FileItemDefault.vue.d.ts +103 -0
  167. package/dist/src/components/IkUploadFile/src/components/FileItemSimple.vue.d.ts +68 -0
  168. package/dist/src/components/IkUploadFile/src/components/FileItemSimpleIcon.vue.d.ts +112 -0
  169. package/dist/src/components/IkUploadFile/src/components/UploadTriggerButton.vue.d.ts +59 -0
  170. package/dist/src/components/IkUploadFile/src/components/UploadTriggerCard.vue.d.ts +90 -0
  171. package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +35 -0
  172. package/dist/src/components/IkUploadFile/src/hooks/useFileOperations.d.ts +32 -0
  173. package/dist/src/components/IkUploadFile/src/hooks/useUploadFile.d.ts +35 -0
  174. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +349 -0
  175. package/dist/src/components/IkUploadFile/src/types/index.d.ts +133 -0
  176. package/dist/src/components/IkUploadFile/src/utils.d.ts +0 -0
  177. package/dist/src/components/IkUploadImage/index.d.ts +287 -0
  178. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +171 -0
  179. package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +2 -0
  180. package/dist/src/components/IkVerticalStepBar/index.d.ts +79 -0
  181. package/dist/src/components/IkVerticalStepBar/src/IkVerticalStepBar.vue.d.ts +81 -0
  182. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +59 -0
  183. package/dist/src/components/Provider/index.d.ts +99 -0
  184. package/dist/src/components/index.d.ts +37 -0
  185. package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
  186. package/dist/src/components-dev/IkUmoEditor/src/props.d.ts +138 -0
  187. package/dist/src/components-dev/IkUmoEditor/src/types.d.ts +78 -0
  188. package/dist/src/components-dev/IkUmoViewer/index.d.ts +168 -0
  189. package/dist/src/components-dev/IkUmoViewer/src/props.d.ts +85 -0
  190. package/dist/src/components-dev/IkUmoViewer/src/types.d.ts +13 -0
  191. package/dist/src/enum/search.d.ts +88 -0
  192. package/dist/src/iking-ui/component.d.ts +4 -0
  193. package/dist/src/iking-ui/defaults.d.ts +4 -0
  194. package/dist/src/iking-ui/index.d.ts +6 -0
  195. package/dist/src/iking-ui/make-installer.d.ts +5 -0
  196. package/dist/src/iking-ui/resolver.d.ts +16 -0
  197. package/dist/src/utils/approval.d.ts +10 -0
  198. package/dist/src/utils/file.d.ts +27 -0
  199. package/dist/src/utils/index.d.ts +12 -0
  200. package/dist/src/utils/install.d.ts +6 -0
  201. package/dist/src/utils/math.d.ts +3 -0
  202. package/dist/src/utils/object.d.ts +4 -0
  203. package/dist/src/utils/theme.d.ts +1 -0
  204. package/dist/src/utils/typescript.d.ts +6 -0
  205. package/dist/src/utils/use-provider.d.ts +15 -0
  206. package/package.json +236 -0
@@ -0,0 +1,99 @@
1
+ export declare const IkProviderConfig: import('../../utils/typescript').SFCWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ onlyofficeConfig: {
4
+ type: ObjectConstructor;
5
+ default: () => null;
6
+ };
7
+ token: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ userInfo: {
12
+ type: ObjectConstructor;
13
+ default: () => null;
14
+ };
15
+ loadUrl: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ uploadUrl: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
24
+ loadUrl: string;
25
+ uploadUrl: string;
26
+ token: string;
27
+ userInfo: Record<string, any>;
28
+ onlyofficeConfig: Record<string, any>;
29
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
30
+ P: {};
31
+ B: {};
32
+ D: {};
33
+ C: {};
34
+ M: {};
35
+ Defaults: {};
36
+ }, Readonly<import('vue').ExtractPropTypes<{
37
+ onlyofficeConfig: {
38
+ type: ObjectConstructor;
39
+ default: () => null;
40
+ };
41
+ token: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ userInfo: {
46
+ type: ObjectConstructor;
47
+ default: () => null;
48
+ };
49
+ loadUrl: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ uploadUrl: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
58
+ loadUrl: string;
59
+ uploadUrl: string;
60
+ token: string;
61
+ userInfo: Record<string, any>;
62
+ onlyofficeConfig: Record<string, any>;
63
+ }>;
64
+ __isFragment?: never;
65
+ __isTeleport?: never;
66
+ __isSuspense?: never;
67
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
68
+ onlyofficeConfig: {
69
+ type: ObjectConstructor;
70
+ default: () => null;
71
+ };
72
+ token: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ userInfo: {
77
+ type: ObjectConstructor;
78
+ default: () => null;
79
+ };
80
+ loadUrl: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ uploadUrl: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
89
+ loadUrl: string;
90
+ uploadUrl: string;
91
+ token: string;
92
+ userInfo: Record<string, any>;
93
+ onlyofficeConfig: Record<string, any>;
94
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
95
+ $slots: {
96
+ default?(_: {}): any;
97
+ };
98
+ })> & Record<string, any>;
99
+ export default IkProviderConfig;
@@ -0,0 +1,37 @@
1
+ export * from './IkFileIcon';
2
+ export * from './IkVerticalStepBar';
3
+ export * from './IkApprovalProcessDetail';
4
+ export * from './IkApprovalProcess';
5
+ export * from './IkPreviewFile';
6
+ export * from './IkPreviewFileDialog';
7
+ export * from './IkHorizontalStepBar';
8
+ export * from './IkUploadFile';
9
+ export * from './IkUploadImage';
10
+ export * from './IkImageUploadEditor';
11
+ export * from './IkSvgIcon';
12
+ export * from './IkPickerUser';
13
+ export * from './IkBtnContent';
14
+ export * from './IkStatu';
15
+ export * from './IkSideText';
16
+ export * from './IkStatuOver';
17
+ export * from './IkTooltip';
18
+ export * from './IkTree';
19
+ export * from './IkDragList';
20
+ export * from './IkBaseDialog';
21
+ export * from './IkIconPicker';
22
+ export * from './IkRadioGroup';
23
+ export * from './IkMonacoEditor';
24
+ export * from './IkBottomOperate';
25
+ export * from './IkDetailPreviewFiles';
26
+ export * from './IkTinymce';
27
+ export * from './IkCollapseCard';
28
+ export * from './IkEmpty';
29
+ export * from './IkDescription';
30
+ export * from './IkTemplateOfficeConfig';
31
+ export * from './IkAutoCard';
32
+ export * from './IkCurrencyInput';
33
+ export * from './IkOnlyOffice';
34
+ export * from './IkSelectTag';
35
+ export * from './IkImageViewer';
36
+ export * from './Provider';
37
+ export * from './IkPlayer';
@@ -0,0 +1,322 @@
1
+ export declare const IkUmoEditor: import('../../utils/typescript').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ title: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ disabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ height: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ default: string;
17
+ };
18
+ locale: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ theme: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ placeholder: {
27
+ type: (ObjectConstructor | StringConstructor)[];
28
+ default: string;
29
+ };
30
+ toolbarMode: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ menus: {
35
+ type: ArrayConstructor;
36
+ default: () => string[];
37
+ };
38
+ layout: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ pageMargin: {
43
+ type: ObjectConstructor;
44
+ default: () => {
45
+ left: number;
46
+ right: number;
47
+ top: number;
48
+ bottom: number;
49
+ };
50
+ };
51
+ watermark: {
52
+ type: ObjectConstructor;
53
+ default: () => {};
54
+ };
55
+ enableMarkdown: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ enableBubbleMenu: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ enableBlockMenu: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ callback: {
68
+ type: FunctionConstructor;
69
+ default: null;
70
+ };
71
+ videoCallback: {
72
+ type: FunctionConstructor;
73
+ default: null;
74
+ };
75
+ audioCallback: {
76
+ type: FunctionConstructor;
77
+ default: null;
78
+ };
79
+ size: {
80
+ type: NumberConstructor;
81
+ default: number;
82
+ };
83
+ videoSize: {
84
+ type: NumberConstructor;
85
+ default: number;
86
+ };
87
+ uploadUrl: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ loadUrl: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ header: {
96
+ type: ObjectConstructor;
97
+ default: () => {};
98
+ };
99
+ onSave: {
100
+ type: FunctionConstructor;
101
+ default: null;
102
+ };
103
+ cdnUrl: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ userInfo: {
108
+ type: ObjectConstructor;
109
+ default: () => {};
110
+ };
111
+ themeDom: {
112
+ type: (StringConstructor | {
113
+ new (): HTMLElement;
114
+ prototype: HTMLElement;
115
+ })[];
116
+ default: string;
117
+ };
118
+ autoSave: {
119
+ type: ObjectConstructor;
120
+ default: () => {
121
+ enabled: boolean;
122
+ interval: number;
123
+ };
124
+ };
125
+ setting: {
126
+ type: ObjectConstructor;
127
+ default: () => {};
128
+ };
129
+ }>, {
130
+ getHTML: () => string;
131
+ getJSON: () => Record<string, any>;
132
+ getText: () => string;
133
+ setContent: (content: string | Record<string, any>, options?: any) => void;
134
+ insertContent: (content: string, options?: any) => void;
135
+ setReadOnly: (readOnly: boolean) => void;
136
+ setDocument: (options: any) => void;
137
+ setLayout: (mode: "page" | "web") => void;
138
+ setPage: (options: any) => void;
139
+ setWatermark: (options: any) => void;
140
+ setToolbar: (options: any) => void;
141
+ getOptions: () => any;
142
+ getVanillaHTML: () => Promise<string>;
143
+ getContentExcerpt: (length?: number, suffix?: string) => string;
144
+ getSelectionText: () => string;
145
+ editor: any;
146
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
147
+ blur: (...args: any[]) => void;
148
+ focus: (...args: any[]) => void;
149
+ created: (...args: any[]) => void;
150
+ "update:modelValue": (...args: any[]) => void;
151
+ changed: (...args: any[]) => void;
152
+ saved: (...args: any[]) => void;
153
+ destroy: (...args: any[]) => void;
154
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
155
+ modelValue: {
156
+ type: StringConstructor;
157
+ default: string;
158
+ };
159
+ title: {
160
+ type: StringConstructor;
161
+ default: string;
162
+ };
163
+ disabled: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ height: {
168
+ type: (StringConstructor | NumberConstructor)[];
169
+ default: string;
170
+ };
171
+ locale: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
175
+ theme: {
176
+ type: StringConstructor;
177
+ default: string;
178
+ };
179
+ placeholder: {
180
+ type: (ObjectConstructor | StringConstructor)[];
181
+ default: string;
182
+ };
183
+ toolbarMode: {
184
+ type: StringConstructor;
185
+ default: string;
186
+ };
187
+ menus: {
188
+ type: ArrayConstructor;
189
+ default: () => string[];
190
+ };
191
+ layout: {
192
+ type: StringConstructor;
193
+ default: string;
194
+ };
195
+ pageMargin: {
196
+ type: ObjectConstructor;
197
+ default: () => {
198
+ left: number;
199
+ right: number;
200
+ top: number;
201
+ bottom: number;
202
+ };
203
+ };
204
+ watermark: {
205
+ type: ObjectConstructor;
206
+ default: () => {};
207
+ };
208
+ enableMarkdown: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ enableBubbleMenu: {
213
+ type: BooleanConstructor;
214
+ default: boolean;
215
+ };
216
+ enableBlockMenu: {
217
+ type: BooleanConstructor;
218
+ default: boolean;
219
+ };
220
+ callback: {
221
+ type: FunctionConstructor;
222
+ default: null;
223
+ };
224
+ videoCallback: {
225
+ type: FunctionConstructor;
226
+ default: null;
227
+ };
228
+ audioCallback: {
229
+ type: FunctionConstructor;
230
+ default: null;
231
+ };
232
+ size: {
233
+ type: NumberConstructor;
234
+ default: number;
235
+ };
236
+ videoSize: {
237
+ type: NumberConstructor;
238
+ default: number;
239
+ };
240
+ uploadUrl: {
241
+ type: StringConstructor;
242
+ default: string;
243
+ };
244
+ loadUrl: {
245
+ type: StringConstructor;
246
+ default: string;
247
+ };
248
+ header: {
249
+ type: ObjectConstructor;
250
+ default: () => {};
251
+ };
252
+ onSave: {
253
+ type: FunctionConstructor;
254
+ default: null;
255
+ };
256
+ cdnUrl: {
257
+ type: StringConstructor;
258
+ default: string;
259
+ };
260
+ userInfo: {
261
+ type: ObjectConstructor;
262
+ default: () => {};
263
+ };
264
+ themeDom: {
265
+ type: (StringConstructor | {
266
+ new (): HTMLElement;
267
+ prototype: HTMLElement;
268
+ })[];
269
+ default: string;
270
+ };
271
+ autoSave: {
272
+ type: ObjectConstructor;
273
+ default: () => {
274
+ enabled: boolean;
275
+ interval: number;
276
+ };
277
+ };
278
+ setting: {
279
+ type: ObjectConstructor;
280
+ default: () => {};
281
+ };
282
+ }>> & Readonly<{
283
+ onBlur?: ((...args: any[]) => any) | undefined;
284
+ onFocus?: ((...args: any[]) => any) | undefined;
285
+ onCreated?: ((...args: any[]) => any) | undefined;
286
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
287
+ onChanged?: ((...args: any[]) => any) | undefined;
288
+ onSaved?: ((...args: any[]) => any) | undefined;
289
+ onDestroy?: ((...args: any[]) => any) | undefined;
290
+ }>, {
291
+ header: Record<string, any>;
292
+ title: string;
293
+ height: string | number;
294
+ disabled: boolean;
295
+ size: number;
296
+ placeholder: string | Record<string, any>;
297
+ loadUrl: string;
298
+ uploadUrl: string;
299
+ userInfo: Record<string, any>;
300
+ modelValue: string;
301
+ setting: Record<string, any>;
302
+ callback: Function;
303
+ videoCallback: Function;
304
+ videoSize: number;
305
+ audioCallback: Function;
306
+ themeDom: string | HTMLElement;
307
+ theme: string;
308
+ locale: string;
309
+ watermark: Record<string, any>;
310
+ onSave: Function;
311
+ toolbarMode: string;
312
+ menus: unknown[];
313
+ layout: string;
314
+ pageMargin: Record<string, any>;
315
+ enableMarkdown: boolean;
316
+ enableBubbleMenu: boolean;
317
+ enableBlockMenu: boolean;
318
+ cdnUrl: string;
319
+ autoSave: Record<string, any>;
320
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, any>;
321
+ export default IkUmoEditor;
322
+ export * from './src/types';
@@ -0,0 +1,138 @@
1
+ import { PropType } from 'vue';
2
+ import { WatermarkConfig, PageMargin, SaveContent, PageInfo, DocumentInfo } from './types';
3
+
4
+ export declare const umoEditorProps: {
5
+ modelValue: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ title: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ disabled: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ height: {
18
+ type: (StringConstructor | NumberConstructor)[];
19
+ default: string;
20
+ };
21
+ locale: {
22
+ type: PropType<"zh-CN" | "en-US">;
23
+ default: string;
24
+ };
25
+ theme: {
26
+ type: PropType<"light" | "dark" | "auto">;
27
+ default: string;
28
+ };
29
+ placeholder: {
30
+ type: PropType<string | {
31
+ en_US?: string;
32
+ zh_CN?: string;
33
+ }>;
34
+ default: string;
35
+ };
36
+ toolbarMode: {
37
+ type: PropType<"classic" | "ribbon">;
38
+ default: string;
39
+ };
40
+ menus: {
41
+ type: PropType<string[]>;
42
+ default: () => string[];
43
+ };
44
+ layout: {
45
+ type: PropType<"page" | "web">;
46
+ default: string;
47
+ };
48
+ pageMargin: {
49
+ type: PropType<PageMargin>;
50
+ default: () => {
51
+ left: number;
52
+ right: number;
53
+ top: number;
54
+ bottom: number;
55
+ };
56
+ };
57
+ watermark: {
58
+ type: PropType<WatermarkConfig>;
59
+ default: () => {};
60
+ };
61
+ enableMarkdown: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ enableBubbleMenu: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ enableBlockMenu: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ callback: {
74
+ type: PropType<(file: File | any, progress?: any) => Promise<string>>;
75
+ default: null;
76
+ };
77
+ videoCallback: {
78
+ type: PropType<(file: File, progress?: any) => Promise<string>>;
79
+ default: null;
80
+ };
81
+ audioCallback: {
82
+ type: PropType<(file: File, progress?: any) => Promise<string>>;
83
+ default: null;
84
+ };
85
+ size: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ videoSize: {
90
+ type: NumberConstructor;
91
+ default: number;
92
+ };
93
+ uploadUrl: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
97
+ loadUrl: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ header: {
102
+ type: ObjectConstructor;
103
+ default: () => {};
104
+ };
105
+ onSave: {
106
+ type: PropType<(content: SaveContent, page: PageInfo, document: DocumentInfo) => Promise<any>>;
107
+ default: null;
108
+ };
109
+ cdnUrl: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ };
113
+ userInfo: {
114
+ type: ObjectConstructor;
115
+ default: () => {};
116
+ };
117
+ themeDom: {
118
+ type: (StringConstructor | {
119
+ new (): HTMLElement;
120
+ prototype: HTMLElement;
121
+ })[];
122
+ default: string;
123
+ };
124
+ autoSave: {
125
+ type: PropType<{
126
+ enabled: boolean;
127
+ interval: number;
128
+ }>;
129
+ default: () => {
130
+ enabled: boolean;
131
+ interval: number;
132
+ };
133
+ };
134
+ setting: {
135
+ type: ObjectConstructor;
136
+ default: () => {};
137
+ };
138
+ };
@@ -0,0 +1,78 @@
1
+ import { Editor } from '@tiptap/vue-3';
2
+
3
+ export interface UploadResult {
4
+ id: string;
5
+ url: string;
6
+ }
7
+ export interface FileUploadOptions {
8
+ file: File;
9
+ type?: 'image' | 'video' | 'audio' | 'file';
10
+ }
11
+ export interface SaveResult {
12
+ status: 'success' | 'error';
13
+ message?: string;
14
+ }
15
+ export interface SaveContent {
16
+ html: string;
17
+ json: Record<string, any>;
18
+ text: string;
19
+ }
20
+ export interface PageInfo {
21
+ width: number;
22
+ height: number;
23
+ margin: {
24
+ left: number;
25
+ right: number;
26
+ top: number;
27
+ bottom: number;
28
+ };
29
+ orientation: 'portrait' | 'landscape';
30
+ }
31
+ export interface DocumentInfo {
32
+ title: string;
33
+ [key: string]: any;
34
+ }
35
+ export interface WatermarkConfig {
36
+ type: 'compact' | 'spacious';
37
+ text: string;
38
+ alpha?: number;
39
+ fontColor?: string;
40
+ fontSize?: number;
41
+ fontFamily?: string;
42
+ fontWeight?: 'normal' | 'bold' | 'bolder';
43
+ }
44
+ export interface PageMargin {
45
+ left: number;
46
+ right: number;
47
+ top: number;
48
+ bottom: number;
49
+ }
50
+ export interface IkUmoEditorInstance {
51
+ getHTML: () => string;
52
+ getJSON: () => Record<string, any>;
53
+ getText: () => string;
54
+ setContent: (content: string | Record<string, any>, options?: any) => void;
55
+ insertContent: (content: string, options?: any) => void;
56
+ setReadOnly: (readOnly: boolean) => void;
57
+ setDocument: (options: any) => void;
58
+ setLayout: (mode: 'page' | 'web') => void;
59
+ setPage: (options: any) => void;
60
+ setWatermark: (options: WatermarkConfig) => void;
61
+ setToolbar: (options: any) => void;
62
+ getOptions: () => any;
63
+ getVanillaHTML: () => Promise<string>;
64
+ getContentExcerpt: (length?: number, suffix?: string) => string;
65
+ getSelectionText: () => string;
66
+ editor: Editor;
67
+ }
68
+ export interface EditorCreatedEvent {
69
+ editor: Editor;
70
+ }
71
+ export interface EditorChangedEvent {
72
+ editor: Editor;
73
+ }
74
+ export interface EditorSavedEvent {
75
+ content: SaveContent;
76
+ page: PageInfo;
77
+ document: DocumentInfo;
78
+ }