@opentiny/vue-renderless 3.13.1 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) 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/date.js +7 -5
  54. package/common/deps/clickoutside.js +6 -2
  55. package/common/deps/dom.js +19 -4
  56. package/common/deps/popper.js +44 -11
  57. package/common/deps/resize-event.js +1 -0
  58. package/common/deps/touch-emulator.js +4 -1
  59. package/common/deps/tree-model/node.js +2 -2
  60. package/common/deps/tree-model/tree-store.js +2 -13
  61. package/common/deps/useRect.js +25 -0
  62. package/common/deps/vue-popper.js +38 -20
  63. package/common/index.js +2 -2
  64. package/common/runtime.js +1 -1
  65. package/common/string.js +2 -2
  66. package/common/type.js +2 -1
  67. package/common/validate/rules/enum.js +1 -1
  68. package/common/validate/rules/pattern.js +2 -2
  69. package/common/validate/rules/range.js +8 -5
  70. package/common/validate/rules/required.js +1 -1
  71. package/common/validate/rules/type.js +5 -5
  72. package/common/validate/rules/whitespace.js +1 -1
  73. package/common/validate/util.js +15 -16
  74. package/common/validate/validations/integer.js +1 -1
  75. package/common/validate/validations/method.js +1 -1
  76. package/currency/index.js +74 -7
  77. package/currency/vue.js +21 -5
  78. package/date-panel/index.js +16 -0
  79. package/date-panel/vue.js +8 -2
  80. package/date-picker-mobile/index.js +12 -0
  81. package/date-picker-mobile/vue.js +7 -1
  82. package/date-range/vue.js +14 -6
  83. package/date-table/index.js +5 -0
  84. package/date-table/vue.js +3 -1
  85. package/dialog-box/index.js +46 -14
  86. package/dialog-box/vue.js +30 -7
  87. package/dialog-select/index.js +6 -3
  88. package/dialog-select/vue.js +8 -4
  89. package/drawer/index.js +27 -5
  90. package/drawer/vue.js +14 -7
  91. package/dropdown/index.js +7 -7
  92. package/dropdown/vue.js +6 -2
  93. package/dropdown-item/index.js +9 -1
  94. package/dropdown-item/mf.js +6 -10
  95. package/dropdown-item/vue.js +20 -7
  96. package/dropdown-menu/index.js +20 -7
  97. package/dropdown-menu/vue.js +4 -3
  98. package/exception/index.js +2 -7
  99. package/exception/vue.js +7 -10
  100. package/fall-menu/index.js +5 -1
  101. package/fall-menu/vue.js +13 -2
  102. package/file-upload/index.js +68 -18
  103. package/file-upload/vue.js +38 -8
  104. package/filter-box/index.js +1 -0
  105. package/float-button/index.js +42 -0
  106. package/float-button/vue.js +101 -0
  107. package/floating-button/index.js +62 -16
  108. package/floating-button/vue.js +27 -9
  109. package/flowchart/index.js +134 -25
  110. package/flowchart/node.js +13 -4
  111. package/flowchart/vue.js +16 -4
  112. package/form/vue.js +8 -0
  113. package/form-item/index.js +5 -5
  114. package/form-item/vue.js +3 -1
  115. package/fullscreen/index.js +5 -5
  116. package/fullscreen/vue.js +3 -3
  117. package/grid/plugins/export.js +5 -2
  118. package/grid/utils/column.js +1 -0
  119. package/grid/utils/dom.js +7 -1
  120. package/image/index.js +6 -1
  121. package/image/vue.js +6 -3
  122. package/image-viewer/index.js +62 -51
  123. package/image-viewer/vue.js +17 -5
  124. package/input/index.js +81 -20
  125. package/input/vue.js +44 -18
  126. package/ip-address/index.js +61 -19
  127. package/ip-address/vue.js +22 -4
  128. package/link/vue.js +3 -1
  129. package/loading/index.js +2 -2
  130. package/loading/vue.js +8 -2
  131. package/logout/index.js +1 -1
  132. package/menu/index.js +15 -2
  133. package/menu/vue.js +22 -17
  134. package/mind-map/index.js +47 -0
  135. package/mind-map/vue.js +53 -0
  136. package/modal/index.js +44 -4
  137. package/modal/vue.js +18 -4
  138. package/multi-select/index.js +186 -11
  139. package/multi-select/vue.js +60 -15
  140. package/multi-select-item/index.js +23 -0
  141. package/multi-select-item/vue.js +31 -0
  142. package/numeric/index.js +46 -12
  143. package/numeric/vue.js +44 -19
  144. package/option/index.js +27 -9
  145. package/option/vue.js +37 -21
  146. package/option-group/index.js +3 -3
  147. package/package.json +1 -1
  148. package/pager/index.js +18 -4
  149. package/pager/vue.js +16 -5
  150. package/picker/index.js +258 -49
  151. package/picker/mb.js +42 -0
  152. package/picker/vue.js +70 -17
  153. package/picker-column/index.js +1 -1
  154. package/pop-upload/vue.js +3 -0
  155. package/popconfirm/index.js +3 -6
  156. package/popconfirm/vue.js +1 -1
  157. package/popeditor/index.js +71 -32
  158. package/popeditor/vue.js +15 -11
  159. package/popover/index.js +4 -4
  160. package/popover/vue.js +6 -6
  161. package/popup/index.js +3 -3
  162. package/popup/vue.js +5 -5
  163. package/pull-refresh/index.js +13 -13
  164. package/pull-refresh/vue.js +5 -4
  165. package/radio/index.js +0 -17
  166. package/radio/vue.js +4 -10
  167. package/rate/index.js +1 -1
  168. package/rate/vue.js +0 -2
  169. package/record/index.js +4 -1
  170. package/rich-text/clipboard.js +54 -0
  171. package/rich-text/index.js +192 -0
  172. package/rich-text/module/file-upload.js +107 -0
  173. package/rich-text/module/image-drop.js +63 -0
  174. package/rich-text/module/image-upload.js +89 -0
  175. package/rich-text/options.js +141 -0
  176. package/rich-text/table-module.js +382 -0
  177. package/rich-text/vue.js +102 -0
  178. package/{rich-text-edtior → rich-text-editor}/index.js +2 -2
  179. package/{rich-text-edtior → rich-text-editor}/vue.js +2 -5
  180. package/scrollbar/index.js +11 -11
  181. package/scrollbar/vue-bar.js +3 -3
  182. package/scrollbar/vue.js +5 -5
  183. package/search/index.js +9 -9
  184. package/search/vue.js +8 -6
  185. package/select/index.js +457 -389
  186. package/select/vue.js +257 -161
  187. package/select-dropdown/index.js +61 -3
  188. package/select-dropdown/vue.js +85 -8
  189. package/select-view/index.js +3 -1
  190. package/selected-box/index.js +2 -0
  191. package/selected-box/vue.js +6 -3
  192. package/signature/index.js +241 -0
  193. package/signature/vue.js +88 -0
  194. package/skeleton/index.js +14 -0
  195. package/skeleton/vue.js +15 -0
  196. package/skeleton-item/vue.js +15 -0
  197. package/slider/index.js +70 -17
  198. package/slider/vue.js +16 -7
  199. package/split/index.js +5 -3
  200. package/split/vue.js +4 -6
  201. package/standard-list-item/index.js +15 -1
  202. package/standard-list-item/vue.js +6 -5
  203. package/steps/index.js +25 -2
  204. package/steps/slide-bar.js +8 -1
  205. package/steps/vue.js +15 -3
  206. package/tab-item-mf/vue.js +14 -8
  207. package/tab-nav/index.js +30 -5
  208. package/tab-nav/vue.js +16 -4
  209. package/tabbar/vue.js +9 -3
  210. package/tabbar-item/vue.js +3 -2
  211. package/tabs/index.js +16 -4
  212. package/tabs/vue.js +2 -1
  213. package/tabs-mf/index.js +20 -6
  214. package/tabs-mf/vue-nav.js +26 -11
  215. package/tabs-mf/vue.js +7 -7
  216. package/tabs-mf/wheel.js +1 -0
  217. package/tag/index.js +1 -1
  218. package/tag-group/index.js +2 -1
  219. package/time/index.js +5 -2
  220. package/time/vue.js +1 -1
  221. package/time-line/index.js +3 -3
  222. package/time-line/vue.js +2 -2
  223. package/time-picker-mobile/index.js +24 -5
  224. package/time-picker-mobile/vue.js +17 -7
  225. package/time-range/index.js +2 -0
  226. package/timeline-item/vue.js +1 -1
  227. package/tooltip/index.js +6 -3
  228. package/tooltip/vue.js +4 -4
  229. package/transfer/index.js +20 -22
  230. package/transfer/vue.js +1 -6
  231. package/transfer-panel/vue.js +3 -5
  232. package/tree/index.js +21 -4
  233. package/tree/vue.js +10 -8
  234. package/tree-menu/index.js +31 -5
  235. package/tree-menu/vue.js +28 -15
  236. package/tree-node/index.js +18 -18
  237. package/tree-node/vue.js +6 -5
  238. package/types/action-sheet.type.d.ts +118 -1
  239. package/types/alert.type.d.ts +1 -1
  240. package/types/amount.type.d.ts +168 -1
  241. package/types/area.type.d.ts +134 -1
  242. package/types/async-flowchart.type.d.ts +72 -0
  243. package/types/autocomplete.type.d.ts +199 -1
  244. package/types/badge.type.d.ts +3 -1
  245. package/types/breadcrumb-item.type.d.ts +2 -0
  246. package/types/breadcrumb.type.d.ts +2 -0
  247. package/types/button-group.type.d.ts +3 -3
  248. package/types/button.type.d.ts +4 -0
  249. package/types/cascader-menu.type.d.ts +3 -4
  250. package/types/cascader-node.type.d.ts +5 -2
  251. package/types/cascader-panel.type-2bd03be3.d.ts +241 -0
  252. package/types/cascader-panel.type.d.ts +3 -241
  253. package/types/cascader.type.d.ts +329 -1
  254. package/types/checkbox.type.d.ts +9 -3
  255. package/types/collapse.type.d.ts +20 -3
  256. package/types/date-picker.type.d.ts +37 -0
  257. package/types/dialog-box.type.d.ts +13 -3
  258. package/types/drawer.type.d.ts +133 -1
  259. package/types/{dropdown-item.type-8ea6c633.d.ts → dropdown-item.type-8475a549.d.ts} +7 -13
  260. package/types/dropdown-item.type.d.ts +1 -1
  261. package/types/dropdown-menu.type.d.ts +1 -1
  262. package/types/dropdown.type.d.ts +1 -5
  263. package/types/fall-menu.type.d.ts +94 -1
  264. package/types/file-upload.type.d.ts +1 -1
  265. package/types/float-button.type.d.ts +123 -0
  266. package/types/form-item.type.d.ts +1 -1
  267. package/types/{form.type-d0fd42f3.d.ts → form.type-222799ae.d.ts} +5 -2
  268. package/types/form.type.d.ts +1 -1
  269. package/types/{index-e0250f63.d.ts → index-b012f687.d.ts} +9 -0
  270. package/types/input.type.d.ts +1 -5
  271. package/types/ip-address.type.d.ts +160 -1
  272. package/types/link.type.d.ts +6 -3
  273. package/types/loading.type.d.ts +7 -0
  274. package/types/milestone.type.d.ts +1 -1
  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 +13 -1
  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 +5 -1
  282. package/types/popover.type.d.ts +3 -3
  283. package/types/progress.type.d.ts +3 -1
  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 +15 -4
  292. package/types/switch.type.d.ts +3 -3
  293. package/types/tab-bar.type.d.ts +1 -1
  294. package/types/tab-nav.type.d.ts +7 -2
  295. package/types/tabs.type.d.ts +9 -1
  296. package/types/tag-group.type.d.ts +64 -1
  297. package/types/{time-line.type-d7daa669.d.ts → time-line.type-b155cb4f.d.ts} +12 -0
  298. package/types/time-line.type.d.ts +1 -1
  299. package/types/timeline-item.type.d.ts +1 -1
  300. package/types/tooltip.type.d.ts +2 -2
  301. package/types/transfer.type.d.ts +185 -1
  302. package/types/tree-menu.type.d.ts +210 -1
  303. package/types/upload-dragger.type.d.ts +2 -2
  304. package/types/{upload-list.type-343e8c11.d.ts → upload-list.type-a29aea50.d.ts} +31 -8
  305. package/types/upload-list.type.d.ts +1 -1
  306. package/types/upload.type.d.ts +1 -1
  307. package/types/user-head.type.d.ts +146 -1
  308. package/types/wizard.type.d.ts +1 -0
  309. package/upload/index.js +64 -34
  310. package/upload/vue.js +9 -5
  311. package/upload-dragger/index.js +22 -20
  312. package/upload-list/index.js +24 -18
  313. package/upload-list/vue.js +9 -4
  314. package/user/index.js +34 -25
  315. package/user/vue.js +1 -1
  316. package/user-head/index.js +3 -3
  317. package/watermark/index.js +11 -0
  318. package/wheel/index.js +3 -0
  319. package/wizard/vue.js +4 -2
  320. package/common/deps/modal-queue.js +0 -6
  321. package/common/deps/requestAnimationFrame.js +0 -25
@@ -1,2 +1,330 @@
1
+ import { ISharedRenderlessParamUtils } from './shared.type.js';
2
+ import { ExtractPropTypes } from 'vue';
3
+ import { N as Node, d as ICascaderPanelNodePropValue, a as ICascaderPanelApi } from './cascader-panel.type-2bd03be3.js';
1
4
 
2
- export { }
5
+ declare const cascaderProps: {
6
+ _constants: {
7
+ type: ObjectConstructor;
8
+ default: () => {
9
+ placeholder: string;
10
+ COMPONENT_NAME: {
11
+ FormItem: string;
12
+ };
13
+ EVENT_NAME: {
14
+ FormBlur: string;
15
+ FormChange: string;
16
+ };
17
+ defaultNodeConfig: {
18
+ lazy: boolean;
19
+ load: null;
20
+ isLeaf: string;
21
+ afterLoad: null;
22
+ currentNodeKey: null;
23
+ checkStrictly: boolean;
24
+ checkDescendants: null;
25
+ defaultCheckedKeys: null;
26
+ defaultExpandedKeys: null;
27
+ autoExpandParent: null;
28
+ defaultExpandAll: null;
29
+ filterNodeMethod: null;
30
+ };
31
+ };
32
+ };
33
+ autoSize: BooleanConstructor;
34
+ beforeFilter: {
35
+ type: FunctionConstructor;
36
+ default: () => () => void;
37
+ };
38
+ clearable: BooleanConstructor;
39
+ collapseTags: BooleanConstructor;
40
+ debounce: {
41
+ type: NumberConstructor;
42
+ default: number;
43
+ };
44
+ disabled: BooleanConstructor;
45
+ filterMethod: FunctionConstructor;
46
+ filterable: BooleanConstructor;
47
+ modelValue: {};
48
+ options: ArrayConstructor;
49
+ placeholder: {
50
+ type: StringConstructor;
51
+ default: any;
52
+ };
53
+ popperAppendToBody: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ popperClass: StringConstructor;
58
+ props: {
59
+ type: ObjectConstructor;
60
+ default: () => {};
61
+ };
62
+ separator: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ showAllLevels: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ size: StringConstructor;
71
+ shape: StringConstructor;
72
+ label: StringConstructor;
73
+ tip: StringConstructor;
74
+ displayOnly: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ hoverExpand: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ title: StringConstructor;
83
+ showHeader: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ levelTitle: ArrayConstructor;
88
+ blank: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ tiny_mode: StringConstructor;
93
+ tiny_mode_root: BooleanConstructor;
94
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
95
+ tiny_renderless: FunctionConstructor;
96
+ tiny_theme: StringConstructor;
97
+ tiny_chart_theme: ObjectConstructor;
98
+ };
99
+
100
+ /**
101
+ * Copyright (c) 2022 - present TinyVue Authors.
102
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
103
+ *
104
+ * Use of this source code is governed by an MIT-style license.
105
+ *
106
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
107
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
108
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
109
+ *
110
+ */
111
+
112
+ declare const getConfig: ({ parent, props }: {
113
+ parent: ICascadeRenderlessParamUtils['parent'];
114
+ props: ICascaderProps;
115
+ }) => () => Record<string, any>;
116
+ declare const computClearVisible: ({ props, state }: {
117
+ props: ICascaderProps;
118
+ state: ICascaderState;
119
+ }) => () => boolean;
120
+ declare const computePresentContent: ({ api, state }: {
121
+ api: ICascaderApi;
122
+ state: ICascaderState;
123
+ }) => () => void;
124
+ declare const watchValue: ({ api, state }: {
125
+ api: ICascaderApi;
126
+ state: ICascaderState;
127
+ }) => (value: any) => void;
128
+ declare const watchCheckedValue: ({ nextTick, constants, dispatch, api, emit, state }: {
129
+ api: ICascaderApi;
130
+ emit: ICascadeRenderlessParamUtils['emit'];
131
+ state: ICascaderState;
132
+ }) => (value: any) => void;
133
+ declare const selfMounted: ({ api, parent, props, vm, state }: {
134
+ api: ICascaderApi;
135
+ parent: ICascadeRenderlessParamUtils['parent'];
136
+ props: ICascaderProps;
137
+ vm: ICascadeRenderlessParamUtils['vm'];
138
+ state: ICascaderState;
139
+ }) => () => void;
140
+ declare const toggleDropDownVisible: ({ emit, vm, state, updatePopper }: {
141
+ emit: ICascadeRenderlessParamUtils['emit'];
142
+ vm: ICascadeRenderlessParamUtils['vm'];
143
+ state: ICascaderState;
144
+ updatePopper: (popperElm?: HTMLElement | undefined) => void;
145
+ }) => (visible: any) => void;
146
+ declare const handleDropdownLeave: (state: any) => () => void;
147
+ declare const handleKeyDown: ({ api }: {
148
+ api: any;
149
+ }) => (event: any) => void;
150
+ declare const handleFocus: (emit: any) => (e: any) => void;
151
+ declare const handleBlur: ({ emit, api, props }: {
152
+ emit: any;
153
+ api: any;
154
+ props: any;
155
+ }) => (e: any) => void;
156
+ declare const handleInput: ({ api, state, vm }: {
157
+ api: any;
158
+ state: any;
159
+ vm: any;
160
+ }) => (val: any, event: any) => void;
161
+ declare const handleClear: (state: ICascaderState) => (_event: any) => void;
162
+ declare const handleExpandChange: ({ constants, dispatch, emit, nextTick, state, updatePopper }: {
163
+ constants: any;
164
+ dispatch: any;
165
+ emit: any;
166
+ nextTick: any;
167
+ state: any;
168
+ updatePopper: any;
169
+ }) => (value: any) => void;
170
+ declare const focusFirstNode: ({ vm, state }: {
171
+ refs: ICascadeRenderlessParamUtils['refs'];
172
+ state: ICascaderState;
173
+ }) => () => void;
174
+ declare const computePresentText: ({ props, state }: {
175
+ props: ICascaderProps;
176
+ state: ICascaderState;
177
+ }) => () => void;
178
+ declare const computePresentTags: ({ api, props, state }: {
179
+ api: ICascaderApi;
180
+ props: ICascaderProps;
181
+ state: ICascaderState;
182
+ }) => () => void;
183
+ declare const calcCollapseTags: ({ state, vm, nextTick }: {
184
+ state: ICascaderState;
185
+ vm: ICascadeRenderlessParamUtils['vm'];
186
+ nextTick: ICascadeRenderlessParamUtils['nextTick'];
187
+ }) => () => void;
188
+ declare const watchInputHover: ({ vm }: {
189
+ vm: ICascadeRenderlessParamUtils['vm'];
190
+ }) => (newVal: any) => void;
191
+ declare const handleMouseenter: ({ vm, state }: {
192
+ vm: ICascadeRenderlessParamUtils['vm'];
193
+ state: ICascaderState;
194
+ }) => ($event: any) => void;
195
+ declare const handleMouseleave: ({ state }: {
196
+ state: ICascaderState;
197
+ }) => () => boolean;
198
+ declare const getSuggestions: ({ nextTick, props, state, updatePopper }: {
199
+ nextTick: ICascadeRenderlessParamUtils['nextTick'];
200
+ props: ICascaderProps;
201
+ state: ICascaderState;
202
+ updatePopper: any;
203
+ }) => () => void;
204
+ declare const handleSuggestionKeyDown: ({ api }: {
205
+ api: ICascaderApi;
206
+ }) => (event: any) => void;
207
+ declare const handleDelete: ({ api, state }: {
208
+ api: ICascaderApi;
209
+ state: ICascaderState;
210
+ }) => () => void;
211
+ declare const handleSuggestionClick: ({ api, state }: {
212
+ api: ICascaderApi;
213
+ state: ICascaderState;
214
+ }) => (index: number) => void;
215
+ declare const deleteTag: ({ emit, state, api }: {
216
+ emit: ICascadeRenderlessParamUtils['emit'];
217
+ state: ICascaderState;
218
+ api: any;
219
+ }) => (index: any) => void;
220
+ declare const updateStyle: ({ parent, vm, state, updatePopper, nextTick, props }: {
221
+ parent: any;
222
+ vm: any;
223
+ state: any;
224
+ updatePopper: any;
225
+ nextTick: any;
226
+ props: any;
227
+ }) => () => void;
228
+ declare const getCheckedNodes: (state: ICascaderState) => (leafOnly: boolean) => Node[];
229
+ declare const setInputHeightToTag: ({ nextTick, parent, state }: {
230
+ nextTick: ICascadeRenderlessParamUtils['nextTick'];
231
+ parent: ICascadeRenderlessParamUtils['parent'];
232
+ state: ICascaderState;
233
+ }) => () => void;
234
+ declare const handleBeforeUpdate: ({ props, api, state }: {
235
+ props: ICascaderProps;
236
+ api: ICascaderApi;
237
+ state: ICascaderState;
238
+ }) => () => void;
239
+ declare const showPlaceholder: ({ props, state, t, constants }: {
240
+ props: ICascaderProps;
241
+ state: ICascaderState;
242
+ t: ICascadeRenderlessParamUtils['t'];
243
+ constants: ICascaderConstants;
244
+ }) => () => string;
245
+
246
+ interface ICascaderState {
247
+ showAutoWidth: boolean;
248
+ /** popper 元素是否显示。 它是通过v-show 绑定到页面上,造成隐藏时,popperJs并没有destory,有一定的性能影响 */
249
+ dropDownVisible: boolean;
250
+ checkedValue: ICascaderPanelNodePropValue;
251
+ inputHover: boolean;
252
+ inputValue: string | null;
253
+ presentText: string | null;
254
+ present: string | null;
255
+ presentTags: Partial<Node & {
256
+ key: string | number;
257
+ text: string;
258
+ closable: boolean;
259
+ hitState: boolean;
260
+ }>[];
261
+ checkedNodes: (Node & {
262
+ text?: string;
263
+ })[];
264
+ filtering: boolean;
265
+ suggestions: Node[];
266
+ inputInitialHeight: number;
267
+ pressDeleteCount: number;
268
+ realSize: 'medium' | 'small' | 'mini';
269
+ formDisabled: boolean;
270
+ displayOnly: boolean;
271
+ disabled: boolean;
272
+ tagSize: 'mini' | 'small';
273
+ isDisabled: boolean;
274
+ isDisplayOnly: boolean;
275
+ config: {
276
+ multiple?: boolean;
277
+ checkStrictly?: boolean;
278
+ };
279
+ multiple: boolean;
280
+ leafOnly: boolean;
281
+ readonly: boolean;
282
+ clearBtnVisible: boolean;
283
+ panel: Element & ICascaderPanelApi;
284
+ placeholder: boolean;
285
+ inputValues: boolean;
286
+ collapseTagsLength: number;
287
+ isHidden: boolean;
288
+ tooltipVisible: boolean;
289
+ tooltipContent: string;
290
+ }
291
+ type ICascaderProps = ExtractPropTypes<typeof cascaderProps>;
292
+ interface ICascaderApi {
293
+ state: ICascaderState;
294
+ handleFocus: ReturnType<typeof handleFocus>;
295
+ handleClear: ReturnType<typeof handleClear>;
296
+ getCheckedNodes: ReturnType<typeof getCheckedNodes>;
297
+ deleteTag: ReturnType<typeof deleteTag>;
298
+ handleDropdownLeave: ReturnType<typeof handleDropdownLeave>;
299
+ focusFirstNode: ReturnType<typeof focusFirstNode>;
300
+ computClearVisible: ReturnType<typeof computClearVisible>;
301
+ showPlaceholder: ReturnType<typeof showPlaceholder>;
302
+ updateStyle: ReturnType<typeof updateStyle>;
303
+ getSuggestions: ReturnType<typeof getSuggestions>;
304
+ handleExpandChange: ReturnType<typeof handleExpandChange>;
305
+ getConfig: ReturnType<typeof getConfig>;
306
+ setInputHeightToTag: ReturnType<typeof setInputHeightToTag>;
307
+ handleSuggestionClick: ReturnType<typeof handleSuggestionClick>;
308
+ handleDelete: ReturnType<typeof handleDelete>;
309
+ computePresentText: ReturnType<typeof computePresentText>;
310
+ handleSuggestionKeyDown: ReturnType<typeof handleSuggestionKeyDown>;
311
+ handleInput: ReturnType<typeof handleInput>;
312
+ handleKeyDown: ReturnType<typeof handleKeyDown>;
313
+ watchValue: ReturnType<typeof watchValue>;
314
+ computePresentTags: ReturnType<typeof computePresentTags>;
315
+ computePresentContent: ReturnType<typeof computePresentContent>;
316
+ watchCheckedValue: ReturnType<typeof watchCheckedValue>;
317
+ toggleDropDownVisible: ReturnType<typeof toggleDropDownVisible>;
318
+ selfMounted: ReturnType<typeof selfMounted>;
319
+ handleBeforeUpdate: ReturnType<typeof handleBeforeUpdate>;
320
+ handleBlur: ReturnType<typeof handleBlur>;
321
+ calcCollapseTags: ReturnType<typeof calcCollapseTags>;
322
+ watchInputHover: ReturnType<typeof watchInputHover>;
323
+ handleMouseenter: ReturnType<typeof handleMouseenter>;
324
+ handleMouseleave: ReturnType<typeof handleMouseleave>;
325
+ filterHandler: Function;
326
+ }
327
+ type ICascaderConstants = ReturnType<typeof cascaderProps._constants.default>;
328
+ type ICascadeRenderlessParamUtils = ISharedRenderlessParamUtils<ICascaderConstants>;
329
+
330
+ export { ICascadeRenderlessParamUtils, ICascaderApi, ICascaderConstants, ICascaderProps, ICascaderState };
@@ -20,10 +20,10 @@ declare const checkboxProps: {
20
20
  };
21
21
  };
22
22
  modelValue: {
23
- type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
23
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
24
24
  };
25
25
  label: {
26
- type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
26
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
27
27
  default: string;
28
28
  };
29
29
  indeterminate: BooleanConstructor;
@@ -40,7 +40,7 @@ declare const checkboxProps: {
40
40
  border: BooleanConstructor;
41
41
  size: StringConstructor;
42
42
  text: StringConstructor;
43
- customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
43
+ customClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
44
44
  validateEvent: {
45
45
  type: BooleanConstructor;
46
46
  default: boolean;
@@ -54,6 +54,10 @@ declare const checkboxProps: {
54
54
  default: boolean;
55
55
  };
56
56
  iconPosition: PropType<IconPosition>;
57
+ shape: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
57
61
  tiny_mode: StringConstructor;
58
62
  tiny_mode_root: BooleanConstructor;
59
63
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -121,6 +125,8 @@ interface ICheckboxState {
121
125
  model: ICheckboxModalValue | ICheckboxModalValue[];
122
126
  showText: boolean;
123
127
  isShowText: boolean;
128
+ tooltipVisible: boolean;
129
+ displayedValue: string;
124
130
  }
125
131
  type ICheckboxProps = ExtractPropTypes<typeof checkboxProps>;
126
132
  type ICheckboxConstants = typeof $constants;
@@ -24,7 +24,7 @@ declare const collapseProps: {
24
24
  accordion: BooleanConstructor;
25
25
  beforeClose: FunctionConstructor;
26
26
  modelValue: {
27
- type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
27
+ type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
28
28
  default: () => never[];
29
29
  };
30
30
  tiny_mode: StringConstructor;
@@ -35,6 +35,23 @@ declare const collapseProps: {
35
35
  tiny_chart_theme: ObjectConstructor;
36
36
  };
37
37
 
38
+ /**
39
+ * Copyright (c) 2022 - present TinyVue Authors.
40
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
41
+ *
42
+ * Use of this source code is governed by an MIT-style license.
43
+ *
44
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
45
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
46
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
47
+ *
48
+ */
49
+
50
+ declare const setActiveNames: ({ emit, props, state }: Pick<ICollapseRenderlessParams, 'emit' | 'props' | 'state'>) => (activeNames: string | string[]) => void;
51
+ declare const handleItemClick: ({ api, props, state }: Pick<ICollapseRenderlessParams, 'api' | 'props' | 'state'>) => (item?: Object & {
52
+ name: string;
53
+ }) => void;
54
+
38
55
  type ICollapseProps = ExtractPropTypes<typeof collapseProps>;
39
56
  type ICollapseConstants = typeof $constants;
40
57
  interface ICollapseState {
@@ -48,8 +65,8 @@ type ICollapseRenderlessParams = ISharedRenderlessFunctionParams<ICollapseConsta
48
65
  };
49
66
  interface ICollapseApi {
50
67
  state: ICollapseState;
51
- setActiveNames: (activeName: string[] | string) => void;
52
- handleItemClick: (item?: Object) => void;
68
+ setActiveNames: ReturnType<typeof setActiveNames>;
69
+ handleItemClick: ReturnType<typeof handleItemClick>;
53
70
  }
54
71
  type ICollapseRenderlessParamUtils = ISharedRenderlessParamUtils<ICollapseConstants>;
55
72
 
@@ -27,6 +27,39 @@ declare const $constants: {
27
27
  Day: string;
28
28
  };
29
29
  declare const datePickerProps: {
30
+ tabindex: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ timeFormat: StringConstructor;
35
+ suffixIcon: ObjectConstructor;
36
+ label: StringConstructor;
37
+ shape: StringConstructor;
38
+ tip: StringConstructor;
39
+ changeOnConfirm: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ popperAppendToBody: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ isutc8: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ dbTimezone: NumberConstructor;
52
+ timezoneOffset: NumberConstructor;
53
+ iso8601: BooleanConstructor;
54
+ autoFormat: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ title: StringConstructor;
59
+ blank: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
30
63
  type: {
31
64
  type: PropType<"date" | "dates" | "daterange" | "week" | "month" | "monthrange" | "year" | "years" | "yearrange" | "datetime" | "datetimerange">;
32
65
  default: string;
@@ -154,6 +187,10 @@ declare const datePickerProps: {
154
187
  default: boolean;
155
188
  };
156
189
  formatWeeks: FunctionConstructor;
190
+ changeCompat: {
191
+ type: BooleanConstructor;
192
+ default: boolean;
193
+ };
157
194
  tiny_mode: StringConstructor;
158
195
  tiny_mode_root: BooleanConstructor;
159
196
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -56,7 +56,7 @@ declare const dialogBoxProps: {
56
56
  default: () => boolean;
57
57
  };
58
58
  destroyOnClose: {
59
- Boolean: BooleanConstructor;
59
+ type: BooleanConstructor;
60
60
  default: () => boolean;
61
61
  };
62
62
  dialogClass: {
@@ -67,6 +67,10 @@ declare const dialogBoxProps: {
67
67
  type: BooleanConstructor;
68
68
  default: () => boolean;
69
69
  };
70
+ dragOutsideWindow: {
71
+ type: BooleanConstructor;
72
+ default: () => boolean;
73
+ };
70
74
  fullscreen: {
71
75
  type: BooleanConstructor;
72
76
  default: () => boolean;
@@ -141,14 +145,16 @@ declare const dialogBoxProps: {
141
145
  */
142
146
 
143
147
  declare const computedAnimationName: ({ constants, props }: Pick<IDialogBoxRenderlessParams, 'constants' | 'props'>) => () => string;
144
- declare const computedStyle: ({ props, state }: Pick<IDialogBoxRenderlessParams, 'props' | 'state'>) => () => IDialogBoxStyle;
148
+ declare const computedStyle: ({ props, state, designConfig }: Pick<IDialogBoxRenderlessParams, 'props' | 'state' | 'designConfig'>) => () => IDialogBoxStyle;
145
149
  declare const computedBodyStyle: ({ props }: Pick<IDialogBoxRenderlessParams, 'props'>) => () => {
146
150
  maxHeight?: string | undefined;
147
151
  };
148
152
  declare const watchVisible: ({ api, constants, emit, nextTick, parent, props, vm, state }: Pick<IDialogBoxRenderlessParams, 'api' | 'constants' | 'emit' | 'nextTick' | 'parent' | 'props' | 'vm' | 'state'>) => (val: boolean) => void;
149
153
  declare const mounted: ({ api, parent, props }: Pick<IDialogBoxRenderlessParams, 'api' | 'parent' | 'props'>) => () => void;
150
154
  declare const unMounted: ({ api, parent, props }: Pick<IDialogBoxRenderlessParams, 'api' | 'parent' | 'props'>) => () => void;
151
- declare const handleWrapperClick: ({ api, props }: Pick<IDialogBoxRenderlessParams, 'api' | 'props'>) => () => void;
155
+ declare const useMouseEventDown: ({ state }: Pick<IDialogBoxRenderlessParams, 'state'>) => (event: MouseEvent) => void;
156
+ declare const useMouseEventUp: ({ state }: Pick<IDialogBoxRenderlessParams, 'state'>) => (event: MouseEvent) => void;
157
+ declare const handleWrapperClick: ({ api, props, state }: Pick<IDialogBoxRenderlessParams, 'api' | 'props' | 'state'>) => () => void;
152
158
  declare const handleClose: ({ api, constants, emit, parent, props }: Pick<IDialogBoxRenderlessParams, 'api' | 'constants' | 'emit' | 'parent' | 'props'>) => (type?: string) => void;
153
159
  declare const hide: ({ api, emit, state, props }: Pick<IDialogBoxRenderlessParams, 'api' | 'emit' | 'state' | 'props'>) => (cancel?: boolean) => void;
154
160
  declare const handleConfirm: ({ api, emit }: Pick<IDialogBoxRenderlessParams, 'api' | 'emit'>) => () => void;
@@ -195,6 +201,8 @@ interface IDialogBoxState {
195
201
  animationName: string;
196
202
  opened?: boolean;
197
203
  rendered?: boolean;
204
+ mouseUpWrapperFlag: boolean;
205
+ mouseDownWrapperFlag: boolean;
198
206
  }
199
207
  interface IDialogBoxApi {
200
208
  state: IDialogBoxState;
@@ -205,6 +213,8 @@ interface IDialogBoxApi {
205
213
  handleConfirm: ReturnType<typeof handleConfirm>;
206
214
  updatePopper: ReturnType<typeof updatePopper>;
207
215
  handleWrapperClick: ReturnType<typeof handleWrapperClick>;
216
+ useMouseEventDown: ReturnType<typeof useMouseEventDown>;
217
+ useMouseEventUp: ReturnType<typeof useMouseEventUp>;
208
218
  hide: ReturnType<typeof hide>;
209
219
  handleClose: ReturnType<typeof handleClose>;
210
220
  watchVisible: ReturnType<typeof watchVisible>;
@@ -1,2 +1,134 @@
1
+ import { ComputedRef, ExtractPropTypes } from 'vue';
2
+ import { ISharedRenderlessParamUtils } from './shared.type.js';
1
3
 
2
- export { }
4
+ declare const drawerProps: {
5
+ _constants: {
6
+ type: ObjectConstructor;
7
+ default: () => {
8
+ SCROLL_LOCK_CLASS(mode: string): string;
9
+ DEFAULT_WIDTH: string;
10
+ };
11
+ };
12
+ visible: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ customClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
17
+ placement: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ width: {
22
+ type: StringConstructor;
23
+ };
24
+ title: StringConstructor;
25
+ showClose: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ showHeader: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ showFooter: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ mask: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ maskClosable: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ dragable: BooleanConstructor;
46
+ lockScroll: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ flex: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ zIndex: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ beforeClose: FunctionConstructor;
59
+ tipsProps: ObjectConstructor;
60
+ tiny_mode: StringConstructor;
61
+ tiny_mode_root: BooleanConstructor;
62
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
63
+ tiny_renderless: FunctionConstructor;
64
+ tiny_theme: StringConstructor;
65
+ tiny_chart_theme: ObjectConstructor;
66
+ };
67
+
68
+ declare const close: ({ api }: {
69
+ api: any;
70
+ }) => (force?: boolean) => void;
71
+ declare const watchVisible: ({ state }: {
72
+ state: IDrawerState;
73
+ }) => (bool: any) => void;
74
+ declare const watchToggle: ({ emit }: {
75
+ emit: ISharedRenderlessParamUtils['emit'];
76
+ }) => (bool: boolean) => void;
77
+ declare const confirm: ({ api }: {
78
+ api: any;
79
+ }) => () => void;
80
+ declare const mousedown: ({ state, vm }: {
81
+ vm: ISharedRenderlessParamUtils<IDrawerCT>['vm'];
82
+ state: IDrawerState;
83
+ }) => (event: any) => void;
84
+ declare const mousemove: ({ state, props }: {
85
+ state: IDrawerState;
86
+ props: IDrawerProps;
87
+ }) => EventListenerOrEventListenerObject;
88
+ declare const mouseup: ({ state }: {
89
+ state: IDrawerState;
90
+ }) => () => void;
91
+ declare const addDragEvent: ({ api, vm }: {
92
+ api: IDrawerApi;
93
+ vm: ISharedRenderlessParamUtils<IDrawerCT>['vm'];
94
+ }) => () => void;
95
+ declare const removeDragEvent: ({ api, vm }: {
96
+ api: IDrawerApi;
97
+ vm: ISharedRenderlessParamUtils<IDrawerCT>['vm'];
98
+ }) => () => void;
99
+ declare const showScrollbar: (lockScrollClass: any) => () => void;
100
+ declare const hideScrollbar: (lockScrollClass: any) => () => void;
101
+ declare const watchVisibleNotImmediate: ({ api, props }: {
102
+ api: IDrawerApi;
103
+ props: IDrawerProps;
104
+ }) => (visible: boolean) => void;
105
+
106
+ interface IDrawerState {
107
+ toggle: boolean;
108
+ width: number;
109
+ dragEvent: {
110
+ x: number;
111
+ isDrag: boolean;
112
+ offsetWidth: number;
113
+ };
114
+ computedWidth: ComputedRef<string>;
115
+ }
116
+ type IDrawerProps = ExtractPropTypes<typeof drawerProps>;
117
+ interface IDrawerApi {
118
+ state: IDrawerState;
119
+ confirm: ReturnType<typeof confirm>;
120
+ close: ReturnType<typeof close>;
121
+ mousemove: ReturnType<typeof mousemove>;
122
+ mouseup: ReturnType<typeof mouseup>;
123
+ mousedown: ReturnType<typeof mousedown>;
124
+ addDragEvent: ReturnType<typeof addDragEvent>;
125
+ removeDragEvent: ReturnType<typeof removeDragEvent>;
126
+ watchVisible: ReturnType<typeof watchVisible>;
127
+ watchToggle: ReturnType<typeof watchToggle>;
128
+ showScrollbar: ReturnType<typeof showScrollbar>;
129
+ hideScrollbar: ReturnType<typeof hideScrollbar>;
130
+ watchVisibleNotImmediate: ReturnType<typeof watchVisibleNotImmediate>;
131
+ }
132
+ type IDrawerCT = ReturnType<typeof drawerProps._constants.default>;
133
+
134
+ export { IDrawerApi, IDrawerCT, IDrawerProps, IDrawerState };