@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,237 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
1
3
 
2
- export { }
4
+ declare const $constants: {
5
+ RATENODECLS: string;
6
+ ICON_PREFIXCLS: string;
7
+ DECIMALCLS: string;
8
+ };
9
+ declare const rateProps: {
10
+ _constants: {
11
+ type: ObjectConstructor;
12
+ default: () => {
13
+ RATENODECLS: string;
14
+ ICON_PREFIXCLS: string;
15
+ DECIMALCLS: string;
16
+ };
17
+ };
18
+ allowHalf: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ colors: {
23
+ type: ArrayConstructor;
24
+ default: () => string[];
25
+ };
26
+ disabled: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ disabledVoidColor: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ disabledVoidIconClass: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ highThreshold: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ };
42
+ iconClasses: {
43
+ type: ArrayConstructor;
44
+ default: () => string[];
45
+ };
46
+ lowThreshold: {
47
+ type: NumberConstructor;
48
+ default: number;
49
+ };
50
+ max: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ modelValue: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ radio: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ scoreTemplate: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ showScore: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ showText: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ size: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ space: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ textColor: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ textOnBottom: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ texts: {
91
+ type: ArrayConstructor;
92
+ default: () => any[];
93
+ };
94
+ voidColor: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ voidIconClass: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ tiny_mode: StringConstructor;
103
+ tiny_mode_root: BooleanConstructor;
104
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
105
+ tiny_renderless: FunctionConstructor;
106
+ tiny_theme: StringConstructor;
107
+ tiny_chart_theme: ObjectConstructor;
108
+ };
109
+
110
+ /**
111
+ * Copyright (c) 2022 - present TinyVue Authors.
112
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
113
+ *
114
+ * Use of this source code is governed by an MIT-style license.
115
+ *
116
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
117
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
118
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
119
+ *
120
+ */
121
+
122
+ declare const computedActiveColor: (props: IRateProps) => (state: IRateState) => string;
123
+ declare const computedActiveClass: (props: IRateProps) => (state: IRateState) => string;
124
+ declare const getTextStyle: ({ props, state }: {
125
+ props: any;
126
+ state: any;
127
+ }) => () => {
128
+ color: any;
129
+ };
130
+ declare const handelKey: ({ emit, props, state }: {
131
+ emit: any;
132
+ props: any;
133
+ state: any;
134
+ }) => (event: any) => void;
135
+ declare const selectValue: ({ emit, props, state }: {
136
+ emit: any;
137
+ props: any;
138
+ state: any;
139
+ }) => (value: any) => void;
140
+ declare const setCurrentValue: ({ constants: { RATENODECLS, DECIMALCLS, ICON_PREFIXCLS }, props, state, parent, api }: {
141
+ constants: {
142
+ RATENODECLS: any;
143
+ DECIMALCLS: any;
144
+ ICON_PREFIXCLS: any;
145
+ };
146
+ props: any;
147
+ state: any;
148
+ parent: any;
149
+ api: any;
150
+ }) => ({ event, item }: {
151
+ event: any;
152
+ item: any;
153
+ }) => void;
154
+ declare const resetCurrentValue: ({ props, state }: {
155
+ props: any;
156
+ state: any;
157
+ }) => () => void;
158
+ declare const showDecimalIcon: ({ props, state }: {
159
+ props: any;
160
+ state: any;
161
+ }) => (item: any) => any;
162
+ declare const getIconStyle: ({ api, props, state }: {
163
+ api: any;
164
+ props: any;
165
+ state: any;
166
+ }) => (item: any) => {
167
+ fill: any;
168
+ 'font-size': any;
169
+ };
170
+ declare const computedText: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => string;
171
+ declare const computedDecimalStyle: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => {
172
+ fill: string;
173
+ width: string;
174
+ clip: string;
175
+ clipPath: string;
176
+ fontSize: string;
177
+ };
178
+ declare const computedClasses: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => string[];
179
+ declare const computedClassMap: (props: IRateProps) => {
180
+ lowClass: unknown;
181
+ mediumClass: unknown;
182
+ highClass: unknown;
183
+ voidClass: string;
184
+ disabledVoidClass: string;
185
+ };
186
+ declare const computedColorMap: (props: IRateProps) => {
187
+ lowColor: unknown;
188
+ mediumColor: unknown;
189
+ highColor: unknown;
190
+ voidColor: string;
191
+ disabledVoidColor: string;
192
+ };
193
+ declare const computedVoidClass: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => string;
194
+
195
+ interface IRateState {
196
+ pointerAtLeftHalf: boolean;
197
+ colorMap: ReturnType<typeof computedColorMap>;
198
+ classMap: ReturnType<typeof computedClassMap>;
199
+ text: ReturnType<typeof computedText>;
200
+ activeClass: string;
201
+ activeColor: string;
202
+ classes: ReturnType<typeof computedClasses>;
203
+ decimalIconClass: string;
204
+ voidClass: ReturnType<typeof computedVoidClass>;
205
+ decimalStyle: ReturnType<typeof computedDecimalStyle>;
206
+ hoverIndex: number;
207
+ currentValue: number;
208
+ mouseTarget: null | HTMLElement;
209
+ }
210
+ type IRateProps = ExtractPropTypes<typeof rateProps>;
211
+ type IRateConstants = typeof $constants;
212
+ type IRateRenderlessParams = ISharedRenderlessFunctionParams<IRateConstants> & {
213
+ api: IRateApi;
214
+ state: IRateState;
215
+ props: IRateProps;
216
+ };
217
+ interface IRateApi {
218
+ state: IRateState;
219
+ computedText: typeof computedText;
220
+ computedClasses: typeof computedClasses;
221
+ computedClassMap: typeof computedClassMap;
222
+ computedColorMap: typeof computedColorMap;
223
+ computedVoidClass: typeof computedVoidClass;
224
+ computedDecimalStyle: typeof computedDecimalStyle;
225
+ getTextStyle: ReturnType<typeof getTextStyle>;
226
+ handelKey: ReturnType<typeof handelKey>;
227
+ computedActiveColor: ReturnType<typeof computedActiveColor>;
228
+ computedActiveClass: ReturnType<typeof computedActiveClass>;
229
+ showDecimalIcon: ReturnType<typeof showDecimalIcon>;
230
+ getIconStyle: ReturnType<typeof getIconStyle>;
231
+ selectValue: ReturnType<typeof selectValue>;
232
+ resetCurrentValue: ReturnType<typeof resetCurrentValue>;
233
+ setCurrentValue: ReturnType<typeof setCurrentValue>;
234
+ }
235
+ type IRateRenderlessParamUtils = ISharedRenderlessParamUtils<IRateConstants>;
236
+
237
+ export { IRateApi, IRateConstants, IRateProps, IRateRenderlessParamUtils, IRateRenderlessParams, IRateState };
@@ -1,6 +1,91 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
3
3
 
4
+ declare const searchProps: {
5
+ mini: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
9
+ big: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ buttonText: {
14
+ type: StringConstructor;
15
+ default: () => any;
16
+ };
17
+ /**
18
+ * 设置为透明模式,配置为true时,边框变为透明且收缩后半透明显示,一般用在带有背景的场景
19
+ */
20
+ transparent: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ /**
25
+ * 搜索的类型选项,格式为[{text:'文档',value:1},...],不配置时类型选择固定显示为All
26
+ */
27
+ searchTypes: {
28
+ type: ArrayConstructor;
29
+ default: () => never[];
30
+ };
31
+ /**
32
+ * 设置搜索输入框内的提示占位文本
33
+ */
34
+ placeholder: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ modelValue: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ clearable: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ tabindex: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ /**
51
+ * 配置搜索输入框enter键,enter按下触发搜索
52
+ */
53
+ isEnterSearch: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ /**
58
+ * 配置主题色,primary:蓝 gray:灰
59
+ */
60
+ themeType: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ validator: (value: string) => boolean;
64
+ };
65
+ showButton: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ changeBgColor: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ size: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ typeValue: ObjectConstructor;
78
+ suffixIcon: (StringConstructor | ObjectConstructor)[];
79
+ tiny_mode: StringConstructor;
80
+ tiny_mode_root: BooleanConstructor;
81
+ tiny_template: (FunctionConstructor | ObjectConstructor)[]; /**
82
+ * 搜索的类型选项,格式为[{text:'文档',value:1},...],不配置时类型选择固定显示为All
83
+ */
84
+ tiny_renderless: FunctionConstructor;
85
+ tiny_theme: StringConstructor;
86
+ tiny_chart_theme: ObjectConstructor;
87
+ };
88
+
4
89
  interface ISearchState {
5
90
  show: boolean;
6
91
  focus: boolean;
@@ -10,8 +95,10 @@ interface ISearchState {
10
95
  searchValue: object;
11
96
  types: string[];
12
97
  showClear: boolean;
98
+ formItemSize: string;
99
+ searchSize: string;
13
100
  }
14
- type ISearchProps = ExtractPropTypes<typeof ISearchProps>;
101
+ type ISearchProps = ExtractPropTypes<typeof searchProps>;
15
102
  type ISearchRenderlessParams = ISharedRenderlessFunctionParams<never> & {
16
103
  state: ISearchState;
17
104
  props: ISearchProps;
@@ -112,7 +112,7 @@ interface ISharedRenderlessParamUtils<CT = never> {
112
112
  mergeClass: (...cssClasses: any[]) => string;
113
113
  }
114
114
  /** vue.ts的一个混合上下文,也是index.ts 文件中二层函数的入参混合体。 */
115
- type ISharedRenderlessFunctionParams<CT> = {
115
+ type ISharedRenderlessFunctionParams<CT = null> = {
116
116
  api: object;
117
117
  props: object;
118
118
  state: object;
@@ -0,0 +1,38 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { PropType } from '@opentiny/vue-common';
3
+
4
+ type VariantType = 'image' | 'circle' | 'square';
5
+ type SizeType = 'large' | 'medium' | 'small';
6
+ declare const $constants: {};
7
+ declare const skeletonItemProps: {
8
+ _constants: {
9
+ type: ObjectConstructor;
10
+ default: () => {};
11
+ };
12
+ modelValue: StringConstructor;
13
+ variant: {
14
+ type: PropType<VariantType>;
15
+ default: string;
16
+ };
17
+ size: {
18
+ type: PropType<SizeType>;
19
+ default: string;
20
+ };
21
+ tiny_mode: StringConstructor;
22
+ tiny_mode_root: BooleanConstructor;
23
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
24
+ tiny_renderless: FunctionConstructor;
25
+ tiny_theme: StringConstructor;
26
+ tiny_chart_theme: ObjectConstructor;
27
+ };
28
+
29
+ type ISkeletonItemProps = ExtractPropTypes<typeof skeletonItemProps>;
30
+ type ISkeletonItemConstants = typeof $constants;
31
+ interface ISkeletonItemState {
32
+ isActive: boolean;
33
+ }
34
+ interface ISkeletonItemApi {
35
+ state: ISkeletonItemState;
36
+ }
37
+
38
+ export { ISkeletonItemApi, ISkeletonItemConstants, ISkeletonItemProps, ISkeletonItemState };
@@ -0,0 +1,45 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { PropType } from '@opentiny/vue-common';
3
+
4
+ declare const $constants: {};
5
+ declare const skeletonProps: {
6
+ _constants: {
7
+ type: ObjectConstructor;
8
+ default: () => {};
9
+ };
10
+ modelValue: StringConstructor;
11
+ loading: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ rows: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ avatar: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ rowsWidth: {
24
+ type: PropType<(string | number)[]>;
25
+ default: () => never[];
26
+ };
27
+ active: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ tiny_mode: StringConstructor;
32
+ tiny_mode_root: BooleanConstructor;
33
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
34
+ tiny_renderless: FunctionConstructor;
35
+ tiny_theme: StringConstructor;
36
+ tiny_chart_theme: ObjectConstructor;
37
+ };
38
+
39
+ type ISkeletonProps = ExtractPropTypes<typeof skeletonProps>;
40
+ type ISkeletonConstants = typeof $constants;
41
+ interface ISkeletonApi {
42
+ toPxStyle: (value: string | number) => string | undefined;
43
+ }
44
+
45
+ export { ISkeletonApi, ISkeletonConstants, ISkeletonProps };
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes, ComputedRef } from 'vue';
1
+ import { PropType, ExtractPropTypes, CSSProperties, ComputedRef } from 'vue';
2
2
  import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
3
3
 
4
4
  declare const $constants: {
@@ -9,6 +9,7 @@ declare const $constants: {
9
9
  PC_SLIDER_CLS: string;
10
10
  PC_RANGE_CLS: string;
11
11
  PC_BUTTON_CLS: string;
12
+ PC_LABEL_CLS: string;
12
13
  PC_LEFT_SVG_CLS: string;
13
14
  PC_RIGHT_SVG_CLS: string;
14
15
  MOBILE_TIP_CLS: string;
@@ -40,6 +41,7 @@ declare const sliderProps: {
40
41
  PC_SLIDER_CLS: string;
41
42
  PC_RANGE_CLS: string;
42
43
  PC_BUTTON_CLS: string;
44
+ PC_LABEL_CLS: string;
43
45
  PC_LEFT_SVG_CLS: string;
44
46
  PC_RIGHT_SVG_CLS: string;
45
47
  MOBILE_TIP_CLS: string;
@@ -118,6 +120,13 @@ declare const sliderProps: {
118
120
  type: BooleanConstructor;
119
121
  default: boolean;
120
122
  };
123
+ changeCompat: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ marks: {
128
+ type: PropType<Record<number, string>>;
129
+ };
121
130
  tiny_mode: StringConstructor;
122
131
  tiny_mode_root: BooleanConstructor;
123
132
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -126,15 +135,41 @@ declare const sliderProps: {
126
135
  tiny_chart_theme: ObjectConstructor;
127
136
  };
128
137
 
138
+ /**
139
+ * Copyright (c) 2022 - present TinyVue Authors.
140
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
141
+ *
142
+ * Use of this source code is governed by an MIT-style license.
143
+ *
144
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
145
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
146
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
147
+ *
148
+ */
149
+
150
+ declare const getActiveButtonValue: (state: ISliderRenderlessParams['state']) => () => number | number[];
151
+ interface IMarkListItem {
152
+ value: number;
153
+ label: string;
154
+ percent: number;
155
+ positionStyle: {
156
+ [key: string]: string;
157
+ };
158
+ }
159
+ declare const getMarkList: ({ props }: Pick<ISliderRenderlessParams, 'props'>) => () => IMarkListItem[];
160
+ declare const handleSlotInputFocus: (state: ISliderRenderlessParams['state']) => () => void;
161
+ declare const handleSlotInputBlur: ({ state, api }: Pick<ISliderRenderlessParams, 'api' | 'state'>) => () => void;
162
+ declare const updateSlotValue: ({ state }: Pick<ISliderRenderlessParams, 'state'>) => () => void;
163
+ declare const handleSlotInput: ({ state, api }: Pick<ISliderRenderlessParams, 'api' | 'state'>) => (event: Event, isLeftInput?: boolean) => void;
164
+
129
165
  type ISliderProps = ExtractPropTypes<typeof sliderProps>;
130
166
  type ISliderConstants = typeof $constants;
131
167
  interface ISliderState {
132
168
  tipStyle: object;
133
- barStyle: object;
169
+ barStyle: CSSProperties;
134
170
  moveStyle: object;
135
171
  points: object[];
136
172
  labels: object[];
137
- isInit: boolean;
138
173
  isDrag: boolean;
139
174
  sliderSize: number;
140
175
  inputValue: [number, number];
@@ -156,11 +191,12 @@ interface ISliderState {
156
191
  rangeDiff: ComputedRef<number>;
157
192
  tipValue: ComputedRef<string>;
158
193
  formDisabled: ComputedRef<boolean>;
159
- disabled: ComputedRef<boolean>;
194
+ disabled: boolean;
160
195
  /** 使用这个值作为插槽中输入的值,而不是直接用activeValue,来实现在输入时不会被max min属性计算而改变 */
161
- slotValue: number;
196
+ slotValue: number | number[] | string;
162
197
  /** 是否正在输入 */
163
198
  isSlotTyping: boolean;
199
+ markList: ReturnType<ISliderApi['getMarkList']>;
164
200
  }
165
201
  interface ISliderApi {
166
202
  state: ISliderState;
@@ -171,7 +207,7 @@ interface ISliderApi {
171
207
  bindResize: () => void;
172
208
  setButtonStyle: () => void;
173
209
  calculateValue: (event: Event) => number;
174
- getActiveButtonValue: () => number;
210
+ getActiveButtonValue: ReturnType<typeof getActiveButtonValue>;
175
211
  getActiveButtonIndex: (event: Event) => number;
176
212
  setTipStyle: () => void;
177
213
  customAfterAppearHook: () => void;
@@ -185,15 +221,18 @@ interface ISliderApi {
185
221
  bindMouseMove: () => void;
186
222
  bindMouseDown: () => void;
187
223
  setActiveButtonValue: (currentValue: number) => void;
188
- initSlider: (inputValue: number | [number, number]) => void;
224
+ initSlider: (inputValue: number | number[]) => void;
189
225
  watchModelValue: () => void;
190
226
  watchActiveValue: () => void;
191
227
  getPoints: () => void;
192
228
  getLabels: () => void;
193
229
  inputValueChange: () => void;
194
- handleSlotInputFocus: () => void;
195
- handleSlotInputBlur: () => void;
196
- handleSlotInput: (event: Event) => void;
230
+ inputOnChange: () => void;
231
+ handleSlotInputFocus: ReturnType<typeof handleSlotInputFocus>;
232
+ handleSlotInputBlur: ReturnType<typeof handleSlotInputBlur>;
233
+ handleSlotInput: ReturnType<typeof handleSlotInput>;
234
+ getMarkList: ReturnType<typeof getMarkList>;
235
+ updateSlotValue: ReturnType<typeof updateSlotValue>;
197
236
  }
198
237
  type ISliderRenderlessParams = ISharedRenderlessFunctionParams<ISliderConstants> & {
199
238
  state: ISliderState;
@@ -14,7 +14,7 @@ declare const stepsProps: {
14
14
  type: StringConstructor;
15
15
  default: string;
16
16
  };
17
- data: (ObjectConstructor | ArrayConstructor)[];
17
+ data: (ArrayConstructor | ObjectConstructor)[];
18
18
  space: (StringConstructor | NumberConstructor)[];
19
19
  active: {
20
20
  type: NumberConstructor;
@@ -55,6 +55,12 @@ declare const stepsProps: {
55
55
  tiny_chart_theme: ObjectConstructor;
56
56
  };
57
57
 
58
+ declare const updateStartIndex: ({ state, props }: Pick<IStepsRenderlessParams, 'state' | 'props'>) => () => void;
59
+ declare const isVisibleHandler: ({ state, props }: Pick<IStepsRenderlessParams, 'state' | 'props'>) => (index: number) => IStepsVisibleConfig;
60
+ declare const computedRightNodePos: ({ state, props }: Pick<IStepsRenderlessParams, 'state' | 'props'>) => () => IStepsNodePosConfig[];
61
+ declare const handleMouseenter: ({ state, vm }: Pick<IStepsRenderlessParams, 'state' | 'vm'>) => (e: MouseEvent, placement: string) => void;
62
+ declare const handleMouseleave: (state: IStepsRenderlessParams['state']) => () => void;
63
+
58
64
  type IStepsProps = ExtractPropTypes<typeof stepsProps>;
59
65
  type IStepsRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
60
66
  interface IStepsState {
@@ -62,12 +68,17 @@ interface IStepsState {
62
68
  endIndex: number;
63
69
  rightNodePositions: IStepsNodePosConfig[];
64
70
  computedSpace: number | string;
71
+ popoverVisible: boolean;
72
+ popoverContent: string | null;
73
+ popoverPlacement: string;
65
74
  }
66
75
  interface IStepsApi {
67
76
  state: IStepsState;
68
- updateStartIndex: () => void;
69
- isVisibleHandler: (index: number) => IStepsVisibleConfig;
70
- computedRightNodePos: () => IStepsNodePosConfig[];
77
+ updateStartIndex: ReturnType<typeof updateStartIndex>;
78
+ isVisibleHandler: ReturnType<typeof isVisibleHandler>;
79
+ handleMouseenter: ReturnType<typeof handleMouseenter>;
80
+ handleMouseleave: ReturnType<typeof handleMouseleave>;
81
+ computedRightNodePos: ReturnType<typeof computedRightNodePos>;
71
82
  }
72
83
  type IStepsRenderlessParams = ISharedRenderlessFunctionParams<never> & {
73
84
  props: IStepsProps;
@@ -30,7 +30,7 @@ declare const switchProps: {
30
30
  };
31
31
  falseColor: StringConstructor;
32
32
  falseValue: {
33
- type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
33
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
34
34
  default: boolean;
35
35
  };
36
36
  mini: {
@@ -38,7 +38,7 @@ declare const switchProps: {
38
38
  default: boolean;
39
39
  };
40
40
  modelValue: {
41
- type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
41
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
42
42
  default: boolean;
43
43
  };
44
44
  size: (StringConstructor | NumberConstructor)[];
@@ -48,7 +48,7 @@ declare const switchProps: {
48
48
  };
49
49
  trueColor: StringConstructor;
50
50
  trueValue: {
51
- type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
51
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
52
52
  default: boolean;
53
53
  };
54
54
  beforeChange: FunctionConstructor;
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { ITabsVm } from './tabs.type.js';
3
3
  import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.js';
4
- import { t as tabBarProps } from './index-e0250f63.js';
4
+ import { t as tabBarProps } from './index-b012f687.js';
5
5
 
6
6
  /**
7
7
  * Copyright (c) 2022 - present TinyVue Authors.
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { ITabsProps, ITabsVm } from './tabs.type.js';
3
3
  import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.js';
4
- import { a as tabNavPcProps } from './index-e0250f63.js';
4
+ import { a as tabNavPcProps } from './index-b012f687.js';
5
5
 
6
6
  /**
7
7
  * Copyright (c) 2022 - present TinyVue Authors.
@@ -17,6 +17,7 @@ import { a as tabNavPcProps } from './index-e0250f63.js';
17
17
 
18
18
  declare const computedNavStyle: (state: ITabNavRenderlessParams['state']) => {
19
19
  transform: string;
20
+ width?: string;
20
21
  };
21
22
  declare const scrollIntoView: ({ parent, vm, state }: Pick<ITabNavRenderlessParams, 'parent' | 'vm' | 'state'>) => () => void;
22
23
  declare const computedSizeName: (state: ITabNavRenderlessParams['state']) => 'width' | 'height';
@@ -46,6 +47,10 @@ type ITabNavProps = {
46
47
  } & ExtractPropTypes<typeof tabNavPcProps> & ITabsProps;
47
48
  interface ITabNavStyle {
48
49
  }
50
+ interface ITabLineStyle {
51
+ width: number;
52
+ offset: number;
53
+ }
49
54
  interface ITabNavScrollable {
50
55
  prev: number;
51
56
  next: boolean;
@@ -53,7 +58,7 @@ interface ITabNavScrollable {
53
58
  interface ITabNavState {
54
59
  dragging: boolean;
55
60
  navOffset: number;
56
- lineOffset: number;
61
+ lineStyle: ITabLineStyle;
57
62
  scrollable: boolean | ITabNavScrollable;
58
63
  isFocus: boolean;
59
64
  focusable: boolean;