@opentiny/vue-renderless 3.13.2 → 3.14.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 (320) hide show
  1. package/action-sheet/index.js +20 -13
  2. package/action-sheet/vue.js +8 -7
  3. package/amount/index.js +100 -25
  4. package/amount/vue.js +102 -26
  5. package/anchor/index.js +1 -0
  6. package/area/index.js +8 -8
  7. package/area/vue.js +5 -5
  8. package/async-flowchart/index.js +16 -3
  9. package/autocomplete/index.js +58 -14
  10. package/autocomplete/vue.js +40 -12
  11. package/badge/index.js +12 -0
  12. package/badge/vue.js +6 -4
  13. package/breadcrumb/vue.js +3 -1
  14. package/breadcrumb-item/vue.js +6 -2
  15. package/button/index.js +5 -1
  16. package/calendar/index.js +2 -86
  17. package/calendar-bar/index.js +18 -4
  18. package/calendar-view/index.js +5 -1
  19. package/calendar-view/vue.js +16 -3
  20. package/card-group/vue.js +4 -2
  21. package/cascader/index.js +86 -34
  22. package/cascader/vue.js +61 -20
  23. package/cascader-menu/index.js +7 -7
  24. package/cascader-menu/vue.js +2 -3
  25. package/cascader-mobile/index.js +36 -23
  26. package/cascader-mobile/vue.js +6 -0
  27. package/cascader-node/index.js +13 -1
  28. package/cascader-node/vue.js +15 -4
  29. package/cascader-panel/index.js +1 -1
  30. package/cascader-select/column-index.js +150 -0
  31. package/cascader-select/column.js +120 -0
  32. package/cascader-select/index.js +29 -165
  33. package/cascader-select/usePicker.js +251 -0
  34. package/cascader-select/useTouch.js +65 -0
  35. package/cascader-select/vue.js +35 -47
  36. package/cell/vue.js +2 -1
  37. package/chart-bar/index.js +2 -3
  38. package/chart-core/deps/constants.js +43 -43
  39. package/chart-core/index.js +1 -1
  40. package/chart-gauge/index.js +2 -2
  41. package/chart-heatmap/index.js +17 -10
  42. package/chart-line/index.js +8 -9
  43. package/chart-tree/index.js +2 -2
  44. package/chart-waterfall/index.js +4 -6
  45. package/checkbox/index.js +18 -1
  46. package/checkbox/vue.js +15 -7
  47. package/checkbox-group/vue.js +1 -0
  48. package/col/vue.js +1 -1
  49. package/collapse/index.js +3 -3
  50. package/color-select-panel/vue.js +0 -7
  51. package/column-list-item/index.js +17 -1
  52. package/column-list-item/vue.js +8 -3
  53. package/common/bigInt.js +2 -2
  54. package/common/date.js +7 -5
  55. package/common/deps/clickoutside.js +6 -2
  56. package/common/deps/date-util.js +4 -2
  57. package/common/deps/dom.js +19 -4
  58. package/common/deps/popper.js +44 -11
  59. package/common/deps/resize-event.js +1 -0
  60. package/common/deps/touch-emulator.js +4 -1
  61. package/common/deps/tree-model/node.js +2 -2
  62. package/common/deps/tree-model/tree-store.js +2 -13
  63. package/common/deps/useRect.js +25 -0
  64. package/common/deps/vue-popper.js +38 -20
  65. package/common/index.js +2 -2
  66. package/common/runtime.js +1 -1
  67. package/common/string.js +2 -2
  68. package/common/type.js +2 -1
  69. package/common/validate/rules/enum.js +1 -1
  70. package/common/validate/rules/pattern.js +2 -2
  71. package/common/validate/rules/range.js +8 -5
  72. package/common/validate/rules/required.js +1 -1
  73. package/common/validate/rules/type.js +5 -5
  74. package/common/validate/rules/whitespace.js +1 -1
  75. package/common/validate/util.js +15 -16
  76. package/common/validate/validations/integer.js +1 -1
  77. package/common/validate/validations/method.js +1 -1
  78. package/currency/index.js +74 -7
  79. package/currency/vue.js +21 -5
  80. package/date-panel/index.js +16 -0
  81. package/date-panel/vue.js +8 -2
  82. package/date-picker-mobile/index.js +12 -0
  83. package/date-picker-mobile/vue.js +7 -1
  84. package/date-range/vue.js +15 -6
  85. package/date-table/index.js +35 -53
  86. package/date-table/vue.js +4 -2
  87. package/dialog-box/index.js +46 -14
  88. package/dialog-box/vue.js +30 -7
  89. package/dialog-select/index.js +6 -3
  90. package/dialog-select/vue.js +8 -4
  91. package/drawer/index.js +27 -5
  92. package/drawer/vue.js +14 -7
  93. package/dropdown/index.js +7 -7
  94. package/dropdown/vue.js +6 -2
  95. package/dropdown-item/index.js +9 -1
  96. package/dropdown-item/mf.js +6 -10
  97. package/dropdown-item/vue.js +20 -7
  98. package/dropdown-menu/index.js +20 -7
  99. package/dropdown-menu/vue.js +4 -3
  100. package/exception/index.js +2 -7
  101. package/exception/vue.js +7 -10
  102. package/fall-menu/index.js +5 -1
  103. package/fall-menu/vue.js +13 -2
  104. package/file-upload/index.js +68 -18
  105. package/file-upload/vue.js +38 -8
  106. package/filter-box/index.js +1 -0
  107. package/float-button/index.js +42 -0
  108. package/float-button/vue.js +101 -0
  109. package/floating-button/index.js +62 -16
  110. package/floating-button/vue.js +27 -9
  111. package/flowchart/index.js +134 -25
  112. package/flowchart/node.js +13 -4
  113. package/flowchart/vue.js +16 -4
  114. package/form/vue.js +8 -0
  115. package/form-item/index.js +5 -5
  116. package/form-item/vue.js +3 -1
  117. package/fullscreen/index.js +5 -5
  118. package/fullscreen/vue.js +3 -3
  119. package/grid/plugins/export.js +5 -2
  120. package/grid/utils/column.js +1 -0
  121. package/grid/utils/dom.js +7 -1
  122. package/image/index.js +6 -1
  123. package/image/vue.js +6 -3
  124. package/image-viewer/index.js +62 -51
  125. package/image-viewer/vue.js +17 -5
  126. package/input/index.js +81 -20
  127. package/input/vue.js +44 -18
  128. package/ip-address/index.js +61 -19
  129. package/ip-address/vue.js +22 -4
  130. package/link/vue.js +3 -1
  131. package/loading/index.js +2 -2
  132. package/loading/vue.js +8 -2
  133. package/logout/index.js +1 -1
  134. package/menu/index.js +15 -2
  135. package/menu/vue.js +22 -17
  136. package/mind-map/index.js +47 -0
  137. package/mind-map/vue.js +53 -0
  138. package/modal/index.js +44 -4
  139. package/modal/vue.js +18 -4
  140. package/multi-select/index.js +186 -11
  141. package/multi-select/vue.js +60 -15
  142. package/multi-select-item/index.js +23 -0
  143. package/multi-select-item/vue.js +31 -0
  144. package/numeric/index.js +48 -12
  145. package/numeric/vue.js +44 -19
  146. package/option/index.js +27 -9
  147. package/option/vue.js +37 -21
  148. package/option-group/index.js +3 -3
  149. package/package.json +1 -1
  150. package/pager/index.js +18 -4
  151. package/pager/vue.js +16 -5
  152. package/picker/index.js +290 -77
  153. package/picker/mb.js +42 -0
  154. package/picker/vue.js +76 -20
  155. package/picker-column/index.js +1 -1
  156. package/pop-upload/vue.js +3 -0
  157. package/popconfirm/index.js +3 -6
  158. package/popconfirm/vue.js +1 -1
  159. package/popeditor/index.js +73 -34
  160. package/popeditor/vue.js +15 -11
  161. package/popover/index.js +4 -4
  162. package/popover/vue.js +6 -6
  163. package/popup/index.js +3 -3
  164. package/popup/vue.js +5 -5
  165. package/pull-refresh/index.js +13 -13
  166. package/pull-refresh/vue.js +5 -4
  167. package/radio/index.js +0 -17
  168. package/radio/vue.js +4 -10
  169. package/rate/index.js +1 -1
  170. package/rate/vue.js +0 -2
  171. package/record/index.js +4 -1
  172. package/rich-text/clipboard.js +54 -0
  173. package/rich-text/index.js +192 -0
  174. package/rich-text/module/file-upload.js +107 -0
  175. package/rich-text/module/image-drop.js +63 -0
  176. package/rich-text/module/image-upload.js +89 -0
  177. package/rich-text/options.js +141 -0
  178. package/rich-text/table-module.js +382 -0
  179. package/rich-text/vue.js +102 -0
  180. package/{rich-text-edtior → rich-text-editor}/index.js +2 -2
  181. package/{rich-text-edtior → rich-text-editor}/vue.js +2 -5
  182. package/scrollbar/index.js +11 -11
  183. package/scrollbar/vue-bar.js +3 -3
  184. package/scrollbar/vue.js +5 -5
  185. package/search/index.js +9 -9
  186. package/search/vue.js +8 -6
  187. package/select/index.js +442 -393
  188. package/select/vue.js +278 -164
  189. package/select-dropdown/index.js +61 -3
  190. package/select-dropdown/vue.js +85 -8
  191. package/select-view/index.js +3 -1
  192. package/selected-box/index.js +2 -0
  193. package/selected-box/vue.js +6 -3
  194. package/signature/index.js +241 -0
  195. package/signature/vue.js +88 -0
  196. package/skeleton/index.js +14 -0
  197. package/skeleton/vue.js +15 -0
  198. package/skeleton-item/vue.js +15 -0
  199. package/slider/index.js +70 -17
  200. package/slider/vue.js +16 -7
  201. package/split/index.js +5 -3
  202. package/split/vue.js +4 -6
  203. package/standard-list-item/index.js +15 -1
  204. package/standard-list-item/vue.js +6 -5
  205. package/steps/index.js +25 -2
  206. package/steps/slide-bar.js +8 -1
  207. package/steps/vue.js +15 -3
  208. package/tab-item-mf/vue.js +14 -8
  209. package/tab-nav/index.js +30 -5
  210. package/tab-nav/vue.js +16 -4
  211. package/tabbar/vue.js +9 -3
  212. package/tabbar-item/vue.js +3 -2
  213. package/tabs/index.js +16 -4
  214. package/tabs/vue.js +2 -1
  215. package/tabs-mf/index.js +20 -6
  216. package/tabs-mf/vue-nav.js +26 -11
  217. package/tabs-mf/vue.js +7 -7
  218. package/tabs-mf/wheel.js +1 -0
  219. package/tag/index.js +1 -1
  220. package/tag-group/index.js +2 -1
  221. package/time/index.js +5 -2
  222. package/time/vue.js +1 -1
  223. package/time-line/index.js +3 -3
  224. package/time-line/vue.js +2 -2
  225. package/time-picker-mobile/index.js +24 -5
  226. package/time-picker-mobile/vue.js +17 -7
  227. package/time-range/index.js +2 -0
  228. package/timeline-item/vue.js +1 -1
  229. package/tooltip/index.js +6 -3
  230. package/tooltip/vue.js +4 -4
  231. package/transfer/index.js +20 -22
  232. package/transfer/vue.js +1 -6
  233. package/transfer-panel/vue.js +3 -5
  234. package/tree/index.js +21 -4
  235. package/tree/vue.js +10 -8
  236. package/tree-menu/index.js +29 -3
  237. package/tree-menu/vue.js +28 -15
  238. package/tree-node/index.js +18 -18
  239. package/tree-node/vue.js +6 -5
  240. package/types/action-sheet.type.d.ts +118 -1
  241. package/types/amount.type.d.ts +168 -1
  242. package/types/area.type.d.ts +134 -1
  243. package/types/async-flowchart.type.d.ts +72 -0
  244. package/types/autocomplete.type.d.ts +199 -1
  245. package/types/badge.type.d.ts +3 -1
  246. package/types/breadcrumb-item.type.d.ts +2 -0
  247. package/types/breadcrumb.type.d.ts +2 -0
  248. package/types/button-group.type.d.ts +3 -3
  249. package/types/button.type.d.ts +4 -0
  250. package/types/cascader-menu.type.d.ts +3 -4
  251. package/types/cascader-node.type.d.ts +5 -2
  252. package/types/cascader-panel.type-2bd03be3.d.ts +241 -0
  253. package/types/cascader-panel.type.d.ts +3 -241
  254. package/types/cascader.type.d.ts +329 -1
  255. package/types/checkbox.type.d.ts +6 -0
  256. package/types/collapse.type.d.ts +19 -2
  257. package/types/date-picker.type.d.ts +38 -1
  258. package/types/dialog-box.type.d.ts +13 -3
  259. package/types/drawer.type.d.ts +133 -1
  260. package/types/{dropdown-item.type-8ea6c633.d.ts → dropdown-item.type-8475a549.d.ts} +7 -13
  261. package/types/dropdown-item.type.d.ts +1 -1
  262. package/types/dropdown-menu.type.d.ts +1 -1
  263. package/types/dropdown.type.d.ts +1 -5
  264. package/types/fall-menu.type.d.ts +94 -1
  265. package/types/file-upload.type.d.ts +1 -1
  266. package/types/float-button.type.d.ts +123 -0
  267. package/types/form-item.type.d.ts +1 -1
  268. package/types/{form.type-d0fd42f3.d.ts → form.type-a2dc0099.d.ts} +4 -1
  269. package/types/form.type.d.ts +1 -1
  270. package/types/{index-e0250f63.d.ts → index-b012f687.d.ts} +9 -0
  271. package/types/input.type.d.ts +2 -6
  272. package/types/ip-address.type.d.ts +160 -1
  273. package/types/link.type.d.ts +6 -3
  274. package/types/loading.type.d.ts +7 -0
  275. package/types/mind-map.type.d.ts +20 -0
  276. package/types/modal.type.d.ts +29 -2
  277. package/types/numeric.type.d.ts +41 -10
  278. package/types/pager.type.d.ts +12 -0
  279. package/types/picker.type.d.ts +18 -0
  280. package/types/popconfirm.type.d.ts +86 -1
  281. package/types/popeditor.type.d.ts +4 -0
  282. package/types/popover.type.d.ts +3 -3
  283. package/types/progress.type.d.ts +2 -0
  284. package/types/radio.type.d.ts +0 -4
  285. package/types/rate.type.d.ts +236 -1
  286. package/types/search.type.d.ts +88 -1
  287. package/types/shared.type.d.ts +1 -1
  288. package/types/skeleton-item.type.d.ts +38 -0
  289. package/types/skeleton.type.d.ts +45 -0
  290. package/types/slider.type.d.ts +49 -10
  291. package/types/steps.type.d.ts +14 -3
  292. package/types/tab-bar.type.d.ts +1 -1
  293. package/types/tab-nav.type.d.ts +7 -2
  294. package/types/tabs.type.d.ts +9 -1
  295. package/types/tag-group.type.d.ts +64 -1
  296. package/types/{time-line.type-d7daa669.d.ts → time-line.type-b155cb4f.d.ts} +12 -0
  297. package/types/time-line.type.d.ts +1 -1
  298. package/types/timeline-item.type.d.ts +1 -1
  299. package/types/tooltip.type.d.ts +2 -2
  300. package/types/transfer.type.d.ts +185 -1
  301. package/types/tree-menu.type.d.ts +210 -1
  302. package/types/upload-dragger.type.d.ts +1 -1
  303. package/types/{upload-list.type-343e8c11.d.ts → upload-list.type-6d6e3d0e.d.ts} +35 -8
  304. package/types/upload-list.type.d.ts +1 -1
  305. package/types/upload.type.d.ts +1 -1
  306. package/types/user-head.type.d.ts +146 -1
  307. package/types/wizard.type.d.ts +1 -0
  308. package/upload/index.js +64 -34
  309. package/upload/vue.js +9 -5
  310. package/upload-dragger/index.js +22 -20
  311. package/upload-list/index.js +24 -18
  312. package/upload-list/vue.js +9 -4
  313. package/user/index.js +35 -26
  314. package/user/vue.js +1 -1
  315. package/user-head/index.js +3 -3
  316. package/watermark/index.js +11 -0
  317. package/wheel/index.js +3 -0
  318. package/wizard/vue.js +4 -2
  319. package/common/deps/modal-queue.js +0 -6
  320. package/common/deps/requestAnimationFrame.js +0 -25
@@ -1,2 +1,135 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { ISharedRenderlessParamUtils } from './shared.type.js';
1
3
 
2
- export { }
4
+ declare const areaProps: {
5
+ modelValue: {};
6
+ placeholder: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ size: StringConstructor;
11
+ disabled: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ props: {
16
+ type: ObjectConstructor;
17
+ default: () => {
18
+ label: string;
19
+ value: string;
20
+ };
21
+ };
22
+ fetchJcr: {
23
+ type: FunctionConstructor;
24
+ };
25
+ fetchRegion: {
26
+ type: FunctionConstructor;
27
+ };
28
+ fetchRep: {
29
+ type: FunctionConstructor;
30
+ };
31
+ fetchOffice: {
32
+ type: FunctionConstructor;
33
+ };
34
+ popperClass: StringConstructor;
35
+ popperAppendToBody: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ tiny_mode: StringConstructor;
40
+ tiny_mode_root: BooleanConstructor;
41
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
42
+ tiny_renderless: FunctionConstructor;
43
+ tiny_theme: StringConstructor;
44
+ tiny_chart_theme: ObjectConstructor;
45
+ };
46
+
47
+ /**
48
+ * Copyright (c) 2022 - present TinyVue Authors.
49
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
50
+ *
51
+ * Use of this source code is governed by an MIT-style license.
52
+ *
53
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
54
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
55
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
56
+ *
57
+ */
58
+ declare const fetchDefaultData: ({ emit, fetchArea, nextTick, props, vm, state }: {
59
+ emit: any;
60
+ fetchArea: any;
61
+ nextTick: any;
62
+ props: any;
63
+ vm: any;
64
+ state: any;
65
+ }) => () => void;
66
+ declare const getRegion: ({ emit, fetchArea, nextTick, props, vm, state }: {
67
+ emit: any;
68
+ fetchArea: any;
69
+ nextTick: any;
70
+ props: any;
71
+ vm: any;
72
+ state: any;
73
+ }) => (value: any) => void;
74
+ declare const getRep: ({ emit, fetchArea, nextTick, props, vm, state }: {
75
+ emit: any;
76
+ fetchArea: any;
77
+ nextTick: any;
78
+ props: any;
79
+ vm: any;
80
+ state: any;
81
+ }) => (value: any) => void;
82
+ declare const getOffice: ({ emit, fetchArea, nextTick, props, vm, state }: {
83
+ emit: any;
84
+ fetchArea: any;
85
+ nextTick: any;
86
+ props: any;
87
+ vm: any;
88
+ state: any;
89
+ }) => (value: any) => void;
90
+ declare const changeOffice: ({ emit, state }: {
91
+ emit: any;
92
+ state: any;
93
+ }) => (value: any) => void;
94
+ declare const beforeMount: ({ api, props }: {
95
+ api: any;
96
+ props: any;
97
+ }) => () => void;
98
+
99
+ interface LabeValue {
100
+ label: string;
101
+ value: string;
102
+ }
103
+ interface IAreaState {
104
+ jcr: string;
105
+ region: string;
106
+ rep: string;
107
+ office: string;
108
+ jcrData: LabeValue[];
109
+ regionData: LabeValue[];
110
+ repData: LabeValue[];
111
+ officeData: LabeValue[];
112
+ }
113
+ interface IAreaRenderlessParams {
114
+ emit: ISharedRenderlessParamUtils['emit'];
115
+ fetchArea: (args: {
116
+ label: string;
117
+ parent: string;
118
+ }) => Promise<LabeValue[]>;
119
+ nextTick: ISharedRenderlessParamUtils['nextTick'];
120
+ props: IAreaProps;
121
+ refs: ISharedRenderlessParamUtils['refs'];
122
+ state: IAreaState;
123
+ }
124
+ type IAreaProps = ExtractPropTypes<typeof areaProps>;
125
+ interface IAreaApi {
126
+ state: IAreaState;
127
+ changeOffice: ReturnType<typeof changeOffice>;
128
+ beforeMount: ReturnType<typeof beforeMount>;
129
+ getRep: ReturnType<typeof getRep>;
130
+ getRegion: ReturnType<typeof getRegion>;
131
+ getOffice: ReturnType<typeof getOffice>;
132
+ fetchDefaultData: ReturnType<typeof fetchDefaultData>;
133
+ }
134
+
135
+ export { IAreaApi, IAreaProps, IAreaRenderlessParams, IAreaState, LabeValue };
@@ -0,0 +1,72 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { ISharedRenderlessParamHooks, ISharedRenderlessParamUtils } from './shared.type.js';
3
+
4
+ declare const asyncFlowchartProps: {
5
+ fetch: {
6
+ type: FunctionConstructor;
7
+ required: boolean;
8
+ };
9
+ tiny_mode: StringConstructor;
10
+ tiny_mode_root: BooleanConstructor;
11
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
12
+ tiny_renderless: FunctionConstructor;
13
+ tiny_theme: StringConstructor;
14
+ tiny_chart_theme: ObjectConstructor;
15
+ };
16
+
17
+ /**
18
+ * Copyright (c) 2022 - present TinyVue Authors.
19
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
20
+ *
21
+ * Use of this source code is governed by an MIT-style license.
22
+ *
23
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
24
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
25
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
26
+ *
27
+ */
28
+ declare const index: any;
29
+
30
+ declare const observeContainerSize: ({ nextTick, vm, state }: {
31
+ nextTick: ISharedRenderlessParamHooks['nextTick'];
32
+ vm: ISharedRenderlessParamUtils['vm'];
33
+ state: IAsyncFlowchartState;
34
+ }) => () => void;
35
+ declare const unobserveContainerSize: (state: IAsyncFlowchartState) => () => void;
36
+ declare const fetchData: ({ Loading, props, state, vm, markRaw, api, nextTick }: {
37
+ Loading: any;
38
+ props: IAsyncFlowchartProps;
39
+ state: IAsyncFlowchartState;
40
+ vm: ISharedRenderlessParamUtils['vm'];
41
+ markRaw: ISharedRenderlessParamHooks['markRaw'];
42
+ api: IAsyncFlowchartApi;
43
+ nextTick: ISharedRenderlessParamHooks['nextTick'];
44
+ }) => () => void;
45
+ declare const handleClickNode: (emit: ISharedRenderlessParamUtils['emit']) => (afterNode: any, e: any) => void;
46
+ declare const handleClickLink: (emit: ISharedRenderlessParamUtils['emit']) => (afterLink: any, e: any) => void;
47
+ declare const handleClickBlank: (emit: ISharedRenderlessParamUtils['emit']) => (param: any, e: any) => void;
48
+ declare const handleClickGroup: (emit: ISharedRenderlessParamUtils['emit']) => (afterGroup: any, e: any) => void;
49
+ declare const refresh: (api: IAsyncFlowchartApi) => () => void;
50
+
51
+ interface IAsyncFlowchartState {
52
+ loading: boolean;
53
+ data: null;
54
+ config: null | {
55
+ nodeWrapperSize: number;
56
+ };
57
+ temporary?: typeof index;
58
+ }
59
+ type IAsyncFlowchartProps = ExtractPropTypes<typeof asyncFlowchartProps>;
60
+ interface IAsyncFlowchartApi {
61
+ state: IAsyncFlowchartState;
62
+ observeContainerSize: ReturnType<typeof observeContainerSize>;
63
+ unobserveContainerSize: ReturnType<typeof unobserveContainerSize>;
64
+ handleClickNode: ReturnType<typeof handleClickNode>;
65
+ handleClickLink: ReturnType<typeof handleClickLink>;
66
+ handleClickBlank: ReturnType<typeof handleClickBlank>;
67
+ handleClickGroup: ReturnType<typeof handleClickGroup>;
68
+ fetchData: ReturnType<typeof fetchData>;
69
+ refresh: ReturnType<typeof refresh>;
70
+ }
71
+
72
+ export { IAsyncFlowchartApi, IAsyncFlowchartProps, IAsyncFlowchartState };
@@ -1,2 +1,200 @@
1
+ import * as vue from 'vue';
2
+ import { Ref, ComputedRef, ExtractPropTypes } from 'vue';
3
+ import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
1
4
 
2
- export { }
5
+ declare const autoCompleteProps: {
6
+ _constants: {
7
+ type: ObjectConstructor;
8
+ default: () => {
9
+ WARP_CLS: string;
10
+ ITEM_CLS: string;
11
+ };
12
+ };
13
+ autofocus: BooleanConstructor;
14
+ clearable: {
15
+ type: BooleanConstructor;
16
+ default: () => boolean;
17
+ };
18
+ customItem: StringConstructor;
19
+ debounce: {
20
+ type: NumberConstructor;
21
+ default: () => number;
22
+ };
23
+ disabled: BooleanConstructor;
24
+ fetchSuggestions: FunctionConstructor;
25
+ hideLoading: BooleanConstructor;
26
+ highlightFirstItem: {
27
+ type: BooleanConstructor;
28
+ default: () => boolean;
29
+ };
30
+ label: StringConstructor;
31
+ maxlength: NumberConstructor;
32
+ minlength: NumberConstructor;
33
+ modelValue: StringConstructor;
34
+ name: StringConstructor;
35
+ placeholder: StringConstructor;
36
+ placement: {
37
+ type: StringConstructor;
38
+ default: () => string;
39
+ };
40
+ popperAppendToBody: {
41
+ type: BooleanConstructor;
42
+ default: () => boolean;
43
+ };
44
+ popperClass: StringConstructor;
45
+ popperOptions: ObjectConstructor;
46
+ prefixIcon: (StringConstructor | ObjectConstructor)[];
47
+ selectWhenUnmatched: {
48
+ type: BooleanConstructor;
49
+ default: () => boolean;
50
+ };
51
+ size: StringConstructor;
52
+ suffixIcon: (StringConstructor | ObjectConstructor)[];
53
+ triggerOnFocus: {
54
+ type: BooleanConstructor;
55
+ default: () => boolean;
56
+ };
57
+ valueKey: {
58
+ type: StringConstructor;
59
+ default: () => string;
60
+ };
61
+ displayOnly: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ tiny_mode: StringConstructor;
66
+ tiny_mode_root: BooleanConstructor;
67
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
68
+ tiny_renderless: FunctionConstructor;
69
+ tiny_theme: StringConstructor;
70
+ tiny_chart_theme: ObjectConstructor;
71
+ };
72
+
73
+ declare const initSuggestionState: ({ reactive, parent, showPopper, popperElm, referenceElm }: {
74
+ reactive: ISharedRenderlessFunctionParams<null>['reactive'];
75
+ parent: IAutoCompleteRenderlessParamUtils['parent'];
76
+ showPopper: Ref<boolean>;
77
+ popperElm: Ref<HTMLElement>;
78
+ referenceElm: Ref<HTMLElement>;
79
+ }) => {
80
+ parent: {
81
+ [x: string]: any;
82
+ $attrs: Record<string, any>;
83
+ $listeners: Record<string, Function>;
84
+ $children: any[];
85
+ $constants: {
86
+ WARP_CLS: string;
87
+ ITEM_CLS: string;
88
+ };
89
+ $el: HTMLElement;
90
+ $mode: "pc" | "mobile-first" | "mobile";
91
+ $nextTick: typeof vue.nextTick;
92
+ $emit: (...args: any[]) => void;
93
+ $off: (eventname?: string | undefined, callback?: Function | undefined) => void;
94
+ $on: (eventname: string, callback: Function) => void;
95
+ $once: (eventname: string, callback: Function) => void;
96
+ $options: {
97
+ componentName: string | undefined;
98
+ };
99
+ $parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
100
+ $refs: Record<string, any>;
101
+ $slots: Record<string, Function>;
102
+ $scopedSlots: Record<string, Function>;
103
+ $set: (target: any, propertyName: any, value: any) => void;
104
+ $renderless: Function;
105
+ $template: any;
106
+ };
107
+ dropdownWidth: string;
108
+ showPopper: boolean;
109
+ popperElm: HTMLElement;
110
+ referenceElm: HTMLElement;
111
+ };
112
+
113
+ /**
114
+ * Copyright (c) 2022 - present TinyVue Authors.
115
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
116
+ *
117
+ * Use of this source code is governed by an MIT-style license.
118
+ *
119
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
120
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
121
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
122
+ *
123
+ */
124
+
125
+ declare const handleChange: ({ api, emit, state, props }: {
126
+ api: IAutoCompleteApi;
127
+ emit: IAutoCompleteRenderlessParamUtils['emit'];
128
+ state: IAutoCompleteState;
129
+ props: IAutoCompleteProps;
130
+ }) => (value: any) => void;
131
+ declare const handleFocus: ({ api, emit, props, state }: {
132
+ api: IAutoCompleteApi;
133
+ emit: IAutoCompleteRenderlessParamUtils['emit'];
134
+ state: IAutoCompleteState;
135
+ props: IAutoCompleteProps;
136
+ }) => (event: any) => void;
137
+ declare const handleBlur: ({ emit, state }: {
138
+ emit: IAutoCompleteRenderlessParamUtils['emit'];
139
+ state: IAutoCompleteState;
140
+ }) => (event: any) => void;
141
+ declare const handleClear: ({ emit, state }: {
142
+ emit: IAutoCompleteRenderlessParamUtils['emit'];
143
+ state: IAutoCompleteState;
144
+ }) => () => void;
145
+ declare const close: (state: IAutoCompleteState) => () => void;
146
+ declare const handleKeyEnter: ({ api, emit, nextTick, props, state }: {
147
+ api: IAutoCompleteApi;
148
+ emit: IAutoCompleteRenderlessParamUtils['emit'];
149
+ nextTick: IAutoCompleteRenderlessParamUtils['nextTick'];
150
+ props: IAutoCompleteProps;
151
+ state: IAutoCompleteState;
152
+ }) => (event: any) => void;
153
+ declare const select: ({ emit, nextTick, props, state }: {
154
+ emit: IAutoCompleteRenderlessParamUtils['emit'];
155
+ nextTick: IAutoCompleteRenderlessParamUtils['nextTick'];
156
+ props: IAutoCompleteProps;
157
+ state: IAutoCompleteState;
158
+ }) => (item: any) => void;
159
+ declare const highlight: ({ constants, vm, state }: {
160
+ constants: IAutoCompleteConstants;
161
+ state: IAutoCompleteState;
162
+ }) => (index: any) => void;
163
+ declare const watchVisible: ({ suggestionState, vm }: {
164
+ suggestionState: IAutoCompleteApi['suggestionState'];
165
+ }) => (val: any) => void;
166
+ declare const mounted: ({ vm, state, suggestionState }: {
167
+ state: IAutoCompleteState;
168
+ suggestionState: IAutoCompleteApi['suggestionState'];
169
+ }) => () => void;
170
+
171
+ interface IAutoCompleteState {
172
+ activated: boolean;
173
+ suggestions: unknown[];
174
+ loading: boolean;
175
+ highlightedIndex: number;
176
+ suggestionDisabled: boolean;
177
+ id: string;
178
+ suggestionVisible: ComputedRef<boolean>;
179
+ }
180
+ type IAutoCompleteProps = ExtractPropTypes<typeof autoCompleteProps>;
181
+ interface IAutoCompleteApi {
182
+ state: IAutoCompleteState;
183
+ doDestroy: (forceDestroy?: boolean | undefined) => void;
184
+ suggestionState: ReturnType<typeof initSuggestionState>;
185
+ close: ReturnType<typeof close>;
186
+ handleBlur: ReturnType<typeof handleBlur>;
187
+ mounted: ReturnType<typeof mounted>;
188
+ highlight: ReturnType<typeof highlight>;
189
+ handleClear: ReturnType<typeof handleClear>;
190
+ select: ReturnType<typeof select>;
191
+ watchVisible: ReturnType<typeof watchVisible>;
192
+ handleChange: ReturnType<typeof handleChange>;
193
+ handleFocus: ReturnType<typeof handleFocus>;
194
+ handleKeyEnter: ReturnType<typeof handleKeyEnter>;
195
+ debouncedGetData: Function;
196
+ }
197
+ type IAutoCompleteConstants = ReturnType<typeof autoCompleteProps._constants.default>;
198
+ type IAutoCompleteRenderlessParamUtils = ISharedRenderlessParamUtils<IAutoCompleteConstants>;
199
+
200
+ export { IAutoCompleteApi, IAutoCompleteConstants, IAutoCompleteProps, IAutoCompleteRenderlessParamUtils, IAutoCompleteState };
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { StyleValue, ExtractPropTypes } from 'vue';
2
2
  import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
3
3
 
4
4
  declare const badgeProps: {
@@ -59,6 +59,7 @@ declare const badgeProps: {
59
59
 
60
60
  declare const computedContent: ({ props, state }: Pick<IBadgeRenderlessParams, 'props' | 'state'>) => () => IBadgeContent;
61
61
  declare const computedValueRef: ({ props }: Pick<IBadgeRenderlessParams, 'props'>) => () => number | undefined;
62
+ declare const computedTransform: ({ designConfig, props }: Pick<IBadgeRenderlessParams, 'designConfig' | 'props'>) => () => StyleValue;
62
63
 
63
64
  type IBadgeContent = string | number | undefined;
64
65
  interface IBadgeState {
@@ -76,6 +77,7 @@ interface IBadgeApi {
76
77
  state: IBadgeState;
77
78
  computedValueRef: ReturnType<typeof computedValueRef>;
78
79
  computedContent: ReturnType<typeof computedContent>;
80
+ computedTransform: ReturnType<typeof computedTransform>;
79
81
  }
80
82
  type IBadgeRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
81
83
 
@@ -7,6 +7,7 @@ declare const breadcrumbItemProps: {
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
9
  };
10
+ size: StringConstructor;
10
11
  option: {
11
12
  type: ObjectConstructor;
12
13
  default: () => {};
@@ -24,6 +25,7 @@ type IBreadcrumbItemRenderlessParams = ISharedRenderlessFunctionParams<never> &
24
25
  props: IBreadcrumbItemProps;
25
26
  };
26
27
  interface IBreadcrumbItemApi {
28
+ state: string | undefined;
27
29
  linkClick: (event: MouseEvent) => void;
28
30
  }
29
31
  type IBreadcrumbItemRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
@@ -26,6 +26,7 @@ declare const breadcrumbProps: {
26
26
  type: StringConstructor;
27
27
  default: string;
28
28
  };
29
+ size: StringConstructor;
29
30
  options: {
30
31
  type: ArrayConstructor;
31
32
  default: () => never[];
@@ -41,6 +42,7 @@ declare const breadcrumbProps: {
41
42
  interface IBreadcrumbState {
42
43
  breadcrumbEmitter: object;
43
44
  currentBreadcrumbItem: object;
45
+ size: string | undefined;
44
46
  }
45
47
  type IBreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>;
46
48
  type IBreadcrumbConstants = typeof $constants;
@@ -59,9 +59,9 @@ interface IButtonGroupItemClass {
59
59
  plain?: boolean;
60
60
  }
61
61
  interface IButtonGroupNode {
62
- text: string;
63
- value: string;
64
- disabled: boolean;
62
+ text?: string;
63
+ value?: string;
64
+ disabled?: boolean;
65
65
  [otherKey: string]: any;
66
66
  }
67
67
  interface IButtonGroupState {
@@ -26,6 +26,10 @@ declare const buttonProps: {
26
26
  type: StringConstructor;
27
27
  default: string;
28
28
  };
29
+ href: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
29
33
  size: {
30
34
  type: StringConstructor;
31
35
  default: string;
@@ -1,5 +1,5 @@
1
1
  import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
2
- import { ICascaderPanelNode, ICascaderPanelApi } from './cascader-panel.type.js';
2
+ import { I as ICascaderPanelNode, a as ICascaderPanelApi } from './cascader-panel.type-2bd03be3.js';
3
3
  import 'vue';
4
4
 
5
5
  /**
@@ -15,11 +15,10 @@ import 'vue';
15
15
  */
16
16
 
17
17
  declare const handleExpand: (state: ICascaderMenuState) => (e: MouseEvent) => HTMLElement;
18
- declare const handleMouseMove: ({ api, parent, refs, state, svg }: Pick<ICascaderMenuRenderlessParams, "state" | "api" | "parent"> & {
18
+ declare const handleMouseMove: ({ api, parent, vm, state, svg }: Pick<ICascaderMenuRenderlessParams, "state" | "api" | "parent" | "vm"> & {
19
19
  svg: string;
20
- refs: ICascaderMenuRenderlessParams['vm']['$refs'];
21
20
  }) => (e: MouseEvent) => void;
22
- declare const clearHoverZone: (refs: ICascaderMenuRenderlessParamUtils['vm']['$refs']) => () => void;
21
+ declare const clearHoverZone: ({ vm }: Pick<ICascaderMenuRenderlessParams, 'vm'>) => () => void;
23
22
 
24
23
  interface ICascaderMenuProps {
25
24
  nodes: ICascaderPanelNode[];
@@ -1,6 +1,6 @@
1
- import { ICascaderPanelNode, ICascaderPanelConfig, ICascaderPanelNodeValue, ICascaderPanelNodePropValue, ICascaderPanelApi } from './cascader-panel.type.js';
1
+ import { VNode } from 'vue';
2
+ import { I as ICascaderPanelNode, b as ICascaderPanelConfig, c as ICascaderPanelNodeValue, d as ICascaderPanelNodePropValue, a as ICascaderPanelApi } from './cascader-panel.type-2bd03be3.js';
2
3
  import { ISharedRenderlessFunctionParams } from './shared.type.js';
3
- import 'vue';
4
4
 
5
5
  /**
6
6
  * Copyright (c) 2022 - present TinyVue Authors.
@@ -19,6 +19,7 @@ declare const handleExpand: ({ api, parent, props, state }: Pick<ICascaderNodeRe
19
19
  declare const handleCheckChange: ({ api, parent, dispatch, state }: Pick<ICascaderNodeRenderlessParams, 'api' | 'parent' | 'dispatch' | 'state'>) => () => void;
20
20
  declare const handleMultiCheckChange: ({ parent, props }: Pick<ICascaderNodeRenderlessParams, 'parent' | 'props'>) => (checked: boolean) => void;
21
21
  declare const isInPath: (props: ICascaderNodeRenderlessParams['props']) => (pathNodes: ICascaderPanelNode[]) => boolean;
22
+ declare const handleNodeClick: ({ state, api }: Pick<ICascaderNodeRenderlessParams, 'api' | 'state'>) => () => void;
22
23
 
23
24
  interface ICascaderNodeProps {
24
25
  node: ICascaderPanelNode;
@@ -33,6 +34,7 @@ interface ICascaderNodeState {
33
34
  inActivePath: boolean;
34
35
  inCheckedPath: boolean;
35
36
  value: ICascaderPanelNodePropValue;
37
+ nodeLabel: string | VNode;
36
38
  }
37
39
  interface ICascaderNodeApi {
38
40
  state: ICascaderNodeState;
@@ -41,6 +43,7 @@ interface ICascaderNodeApi {
41
43
  comptCheckPath: ReturnType<typeof comptCheckPath>;
42
44
  handleCheckChange: ReturnType<typeof handleCheckChange>;
43
45
  handleMultiCheckChange: ReturnType<typeof handleMultiCheckChange>;
46
+ handleNodeClick: ReturnType<typeof handleNodeClick>;
44
47
  }
45
48
  type ICascaderNodeRenderlessParams = ISharedRenderlessFunctionParams<never> & {
46
49
  state: ICascaderNodeState;