@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
@@ -34,6 +34,7 @@ declare const $constants: {
34
34
  change: string;
35
35
  };
36
36
  COMPONENT_NAME: string;
37
+ FILTER_OPTION: string[];
37
38
  };
38
39
  declare const numericProps: {
39
40
  _constants: {
@@ -50,6 +51,7 @@ declare const numericProps: {
50
51
  change: string;
51
52
  };
52
53
  COMPONENT_NAME: string;
54
+ FILTER_OPTION: string[];
53
55
  };
54
56
  };
55
57
  allowEmpty: {
@@ -140,6 +142,28 @@ declare const numericProps: {
140
142
  type: BooleanConstructor;
141
143
  default: boolean;
142
144
  };
145
+ title: {
146
+ type: StringConstructor;
147
+ default: string;
148
+ };
149
+ tip: StringConstructor;
150
+ shape: StringConstructor;
151
+ clearable: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
155
+ filter: {
156
+ type: BooleanConstructor;
157
+ default: boolean;
158
+ };
159
+ blank: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ changeCompat: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
143
167
  tiny_mode: StringConstructor;
144
168
  tiny_mode_root: BooleanConstructor;
145
169
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -165,7 +189,7 @@ declare const initService: (service: INumericRenderlessParamUtils['service']) =>
165
189
  getNumberFormat: Function;
166
190
  };
167
191
  declare const getDecimal: (props: INumericProps) => (value: number) => BigIntDecimal;
168
- declare const watchValue: ({ api, state, nextTick }: Pick<INumericRenderlessParams, 'api' | 'state' | 'nextTick'>) => (value: number) => void;
192
+ declare const watchValue: ({ api, props, state, nextTick }: Pick<INumericRenderlessParams, 'api' | 'state' | 'nextTick' | 'props'>) => (value: number) => void;
169
193
  declare const toPrecision: (state: INumericState) => ({ num, precision }: {
170
194
  num: number;
171
195
  precision: number;
@@ -182,28 +206,32 @@ declare const internalDecrease: ({ api, state }: Pick<INumericRenderlessParams,
182
206
  declare const increase: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => () => void;
183
207
  declare const decrease: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => () => void;
184
208
  declare const handleBlur: ({ constants, dispatch, emit, props, state, api }: Pick<INumericRenderlessParams, 'constants' | 'dispatch' | 'emit' | 'props' | 'state' | 'api'>) => (event: FocusEvent) => void;
185
- declare const handleFocus: ({ emit, state, props, api, refs }: Pick<INumericRenderlessParams, 'emit' | 'state' | 'props' | 'api' | 'refs'>) => (event: FocusEvent) => void;
186
- declare const focus: (refs: INumericRenderlessParams['refs']) => () => void;
187
- declare const setCurrentValue: ({ api, constants, dispatch, emit, props, state }: Pick<INumericRenderlessParams, 'api' | 'constants' | 'dispatch' | 'emit' | 'props' | 'state'>) => (newVal: number) => void;
209
+ declare const handleFocus: ({ emit, state, props, api, vm }: Pick<INumericRenderlessParams, 'emit' | 'state' | 'props' | 'api' | 'vm'>) => (event: FocusEvent) => void;
210
+ declare const focus: (vm: INumericRenderlessParams['vm']) => () => void;
211
+ declare const setCurrentValue: ({ api, constants, dispatch, emit, props, state }: Pick<INumericRenderlessParams, 'api' | 'constants' | 'dispatch' | 'emit' | 'props' | 'state'>) => (newVal: number, emitChangeFlag?: boolean) => void;
188
212
  declare const handleInput: ({ state, api, emit, props }: Pick<INumericRenderlessParams, 'state' | 'api' | 'emit' | 'props'>) => (event: InputEvent) => void;
189
213
  declare const handleInputChange: ({ api, state, props }: Pick<INumericRenderlessParams, 'api' | 'state' | 'props'>) => (event: Event) => void;
190
- declare const select: (refs: INumericRenderlessParams['refs']) => () => any;
214
+ declare const select: (vm: INumericRenderlessParams['vm']) => () => any;
191
215
  declare const mounted: ({ constants, parent, props, state }: Pick<INumericRenderlessParams, 'constants' | 'parent' | 'props' | 'state'>) => () => void;
192
216
  declare const unmounted: ({ parent, state }: Pick<INumericRenderlessParams, 'parent' | 'state'>) => () => void;
193
217
  declare const updated: ({ constants, parent, state }: Pick<INumericRenderlessParams, 'constants' | 'parent' | 'state'>) => () => void;
194
- declare const displayValue: ({ props, state }: Pick<INumericRenderlessParams, 'props' | 'state'>) => () => string | number;
218
+ declare const displayValue: ({ props, state, api }: Pick<INumericRenderlessParams, 'props' | 'state' | 'api'>) => () => string | number;
195
219
  declare const getNumPecision: ({ api, props }: Pick<INumericRenderlessParams, 'api' | 'props'>) => () => number;
196
220
  declare const mouseEvent: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => (event: MouseEvent) => void | boolean;
197
221
  declare const dispatchDisplayedValue: ({ state, api, dispatch }: Pick<INumericRenderlessParams, 'state' | 'api' | 'dispatch'>) => () => void;
198
222
  declare const getDisplayedValue: ({ state, props }: Pick<INumericRenderlessParams, 'state' | 'props'>) => () => string;
199
223
  declare const getDisplayOnlyText: ({ parent, state, props }: Pick<INumericRenderlessParams, 'parent' | 'state' | 'props'>) => () => string | number;
224
+ declare const filterValue: ({ state }: Pick<INumericRenderlessParams, 'state'>) => () => number | string;
225
+ declare const handleClear: ({ state, emit }: Pick<INumericRenderlessParams, 'state' | 'emit'>) => () => void;
226
+ declare const handleChange: ({ state, emit }: Pick<INumericRenderlessParams, 'state' | 'emit'>) => () => void;
200
227
 
201
228
  type INumericProps = ExtractPropTypes<typeof numericProps>;
202
229
  type INumericConstants = typeof $constants;
203
230
  interface INumericState {
204
- currentValue: number;
205
- userInput: number;
206
- lastInput: number;
231
+ radioVal: string;
232
+ currentValue: number | string;
233
+ userInput: number | string;
234
+ lastInput: number | string;
207
235
  inputStatus: boolean;
208
236
  decimal: BigIntDecimal;
209
237
  strictInput: boolean;
@@ -244,6 +272,9 @@ interface INumericApi {
244
272
  dispatchDisplayedValue: ReturnType<typeof dispatchDisplayedValue>;
245
273
  getDisplayedValue: ReturnType<typeof getDisplayedValue>;
246
274
  getDisplayOnlyText: ReturnType<typeof getDisplayOnlyText>;
275
+ filterValue: ReturnType<typeof filterValue>;
276
+ handleClear: ReturnType<typeof handleClear>;
277
+ handleChange: ReturnType<typeof handleChange>;
247
278
  }
248
279
  type INumericRenderlessParams = ISharedRenderlessFunctionParams<INumericConstants> & {
249
280
  api: INumericApi;
@@ -259,7 +290,7 @@ interface INumericUnitPrecision {
259
290
  rounding?: string;
260
291
  zeroize: boolean;
261
292
  }
262
- interface INumericInitStateParams extends Pick<INumericRenderlessParams, 'reactive' | 'computed' | 'props' | 'api' | 'parent'> {
293
+ interface INumericInitStateParams extends Pick<INumericRenderlessParams, 'constants' | 'reactive' | 'computed' | 'props' | 'api' | 'parent'> {
263
294
  $service: ReturnType<typeof initService>;
264
295
  }
265
296
  interface INumericGetEmitValueParams {
@@ -60,6 +60,10 @@ declare const pagerProps: {
60
60
  type: StringConstructor;
61
61
  validator: (value: any) => boolean;
62
62
  };
63
+ totalFixedLeft: {
64
+ type: BooleanConstructor;
65
+ default: undefined;
66
+ };
63
67
  tiny_mode: StringConstructor;
64
68
  tiny_mode_root: BooleanConstructor;
65
69
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -79,6 +83,7 @@ declare const watchCurrentPage: ({ state, api }: Pick<IPagerRenderlessParams, 'a
79
83
  declare const watchInternalPageCount: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (pageCount: number | null) => void;
80
84
  declare const watchPageSize: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (pageSize: number) => void;
81
85
  declare const watchTotal: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (total: number | undefined) => void;
86
+ declare const watchShowSizes: ({ nextTick, vm }: Pick<IPagerRenderlessParams, 'nextTick' | 'vm'>) => (newVal: boolean) => void;
82
87
  declare const handleSizeChange: ({ props, state, api, emit, vm }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit' | 'vm'>) => (val: number) => void;
83
88
  declare const handleJumperInput: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (e: Event) => void;
84
89
  declare const handleJumperChange: ({ props, state, api }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api'>) => () => void;
@@ -99,6 +104,7 @@ declare const buildBeforePageChangeParam: ({ state }: Pick<IPagerRenderlessParam
99
104
  declare const getValidCurrentPage: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: string | number) => any;
100
105
  declare const emitChange: ({ state, nextTick, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state' | 'nextTick'>) => () => void;
101
106
  declare const setTotal: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: number) => void;
107
+ declare const clickSizes: () => (e: Event) => void;
102
108
 
103
109
  type IPagerProps = ExtractPropTypes<typeof pagerProps>;
104
110
  interface IPagerState {
@@ -114,6 +120,10 @@ interface IPagerState {
114
120
  internalLayout: string[];
115
121
  totalText: string;
116
122
  internalPageCount: number | null;
123
+ showJumperSufix: boolean;
124
+ align: 'left' | 'center' | 'right';
125
+ totalI18n: 'total' | 'totals';
126
+ totalFixedLeft: boolean;
117
127
  }
118
128
  interface IPagerApi {
119
129
  state: IPagerState;
@@ -143,12 +153,14 @@ interface IPagerApi {
143
153
  getValidCurrentPage: ReturnType<typeof getValidCurrentPage>;
144
154
  emitChange: ReturnType<typeof emitChange>;
145
155
  setTotal: ReturnType<typeof setTotal>;
156
+ clickSizes: ReturnType<typeof clickSizes>;
146
157
  watchInternalCurrentPage: ReturnType<typeof watchInternalCurrentPage>;
147
158
  watchPageSizes: ReturnType<typeof watchPageSizes>;
148
159
  watchCurrentPage: ReturnType<typeof watchCurrentPage>;
149
160
  watchInternalPageCount: ReturnType<typeof watchInternalPageCount>;
150
161
  watchPageSize: ReturnType<typeof watchPageSize>;
151
162
  watchTotal: ReturnType<typeof watchTotal>;
163
+ watchShowSizes: ReturnType<typeof watchShowSizes>;
152
164
  }
153
165
  type IPagerRenderlessParams = ISharedRenderlessFunctionParams<never> & {
154
166
  api: IPagerApi;
@@ -43,6 +43,10 @@ declare const pickerProps: {
43
43
  type: BooleanConstructor;
44
44
  default: boolean;
45
45
  };
46
+ changeOnConfirm: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
46
50
  disabled: BooleanConstructor;
47
51
  id: {
48
52
  default: string;
@@ -88,6 +92,7 @@ declare const pickerProps: {
88
92
  };
89
93
  dbTimezone: NumberConstructor;
90
94
  timezone: NumberConstructor;
95
+ timezoneOffset: NumberConstructor;
91
96
  iso8601: BooleanConstructor;
92
97
  displayOnly: {
93
98
  type: BooleanConstructor;
@@ -106,6 +111,19 @@ declare const pickerProps: {
106
111
  default: boolean;
107
112
  };
108
113
  formatWeeks: FunctionConstructor;
114
+ autoFormat: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ title: StringConstructor;
119
+ blank: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ changeCompat: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
109
127
  };
110
128
 
111
129
  type IPickerProps = ExtractPropTypes<typeof pickerProps>;
@@ -1,2 +1,87 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
1
3
 
2
- export { }
4
+ declare const $constants: {
5
+ PC_PREFIXCLS: string;
6
+ MOBILE_PREFIXCLS: string;
7
+ Mode: string;
8
+ prefixcls(mode: any): any;
9
+ ICON_MAP: {
10
+ success: string;
11
+ error: string;
12
+ info: string;
13
+ warning: string;
14
+ };
15
+ };
16
+ declare const popConfirmProps: {
17
+ _constants: {
18
+ type: ObjectConstructor;
19
+ default: () => {
20
+ PC_PREFIXCLS: string;
21
+ MOBILE_PREFIXCLS: string;
22
+ Mode: string;
23
+ prefixcls(mode: any): any;
24
+ ICON_MAP: {
25
+ success: string;
26
+ error: string;
27
+ info: string;
28
+ warning: string;
29
+ };
30
+ };
31
+ };
32
+ message: StringConstructor;
33
+ customClass: StringConstructor;
34
+ popperOptions: ObjectConstructor;
35
+ trigger: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ validator: (value: string) => boolean;
39
+ };
40
+ cancelButton: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ title: StringConstructor;
45
+ placement: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ width: (StringConstructor | NumberConstructor)[];
50
+ type: (StringConstructor | ObjectConstructor)[];
51
+ reference: {};
52
+ events: ObjectConstructor;
53
+ tiny_mode: StringConstructor;
54
+ tiny_mode_root: BooleanConstructor;
55
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
56
+ tiny_renderless: FunctionConstructor;
57
+ tiny_theme: StringConstructor;
58
+ tiny_chart_theme: ObjectConstructor;
59
+ };
60
+
61
+ declare const hide: ({ state, emit }: Pick<IPopconfirmRenderlessParams, 'state' | 'emit'>) => () => void;
62
+ declare const show: ({ state, props, emit }: Pick<IPopconfirmRenderlessParams, 'state' | 'props' | 'emit'>) => (trigger: any) => void;
63
+ declare const confirm: ({ state, api }: Pick<IPopconfirmRenderlessParams, 'state' | 'api'>) => () => void;
64
+ declare const handleEmit: ({ state, emit, vm }: Pick<IPopconfirmRenderlessParams, 'state' | 'emit' | 'vm'>) => (type: any) => void;
65
+
66
+ interface IPopconfirmState {
67
+ isLock: boolean;
68
+ showPopover: boolean;
69
+ getIcon: string;
70
+ }
71
+ type IPopconfirmProps = ExtractPropTypes<typeof popConfirmProps>;
72
+ type IPopconfirmConstants = typeof $constants;
73
+ type IPopconfirmRenderlessParams = ISharedRenderlessFunctionParams<IPopconfirmConstants> & {
74
+ api: IPopconfirmApi;
75
+ state: IPopconfirmState;
76
+ props: IPopconfirmProps;
77
+ };
78
+ interface IPopconfirmApi {
79
+ state: IPopconfirmState;
80
+ show: ReturnType<typeof show>;
81
+ hide: ReturnType<typeof hide>;
82
+ confirm: ReturnType<typeof confirm>;
83
+ handleEmit: ReturnType<typeof handleEmit>;
84
+ }
85
+ type IPopconfirmRenderlessParamUtils = ISharedRenderlessParamUtils<IPopconfirmConstants>;
86
+
87
+ export { IPopconfirmApi, IPopconfirmConstants, IPopconfirmProps, IPopconfirmRenderlessParamUtils, IPopconfirmRenderlessParams, IPopconfirmState };
@@ -212,6 +212,10 @@ declare const popeditorProps: {
212
212
  type: BooleanConstructor;
213
213
  default: boolean;
214
214
  };
215
+ radioChangeClose: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
215
219
  tiny_mode: StringConstructor;
216
220
  tiny_mode_root: BooleanConstructor;
217
221
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -92,7 +92,7 @@ declare const popoverProps: {
92
92
  *
93
93
  */
94
94
 
95
- declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "state" | "api" | "props" | "nextTick" | "mode"> & {
95
+ declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "state" | "props" | "nextTick" | "api" | "mode"> & {
96
96
  constants: {
97
97
  IDPREFIX: string;
98
98
  };
@@ -106,7 +106,7 @@ declare const handleBlur: ({ props, state }: Pick<IPopoverRenderlessParams, 'sta
106
106
  declare const handleMouseEnter: ({ props, state }: Pick<IPopoverRenderlessParams, 'state' | 'props'>) => () => void;
107
107
  declare const handleKeydown: ({ api, props }: Pick<IPopoverRenderlessParams, 'api' | 'props'>) => (event: KeyboardEvent) => void;
108
108
  declare const handleMouseLeave: ({ props, state }: Pick<IPopoverRenderlessParams, 'state' | 'props'>) => () => void;
109
- declare const handleDocumentClick: ({ refs, state }: Pick<IPopoverRenderlessParams, 'state' | 'refs'>) => (event: MouseEvent) => void;
109
+ declare const handleDocumentClick: ({ vm, state }: Pick<IPopoverRenderlessParams, 'state' | 'vm'>) => (event: MouseEvent) => void;
110
110
  declare const handleAfterEnter: (emit: IPopoverRenderlessParams['emit']) => () => void;
111
111
  declare const handleAfterLeave: (emit: IPopoverRenderlessParams['emit']) => () => void;
112
112
  /** mobile.vue中,给listData项的点击事件 */
@@ -116,7 +116,7 @@ declare const destroyed: ({ state, api }: Pick<IPopoverRenderlessParams, 'state'
116
116
  declare const computedTooltipId: (constants: {
117
117
  IDPREFIX: string;
118
118
  }) => () => string;
119
- declare const wrapMounted: ({ api, props, refs, state }: Pick<IPopoverRenderlessParams, 'state' | 'api' | 'props' | 'refs'>) => () => void;
119
+ declare const wrapMounted: ({ api, props, vm, state }: Pick<IPopoverRenderlessParams, 'state' | 'api' | 'props' | 'vm'>) => () => void;
120
120
  declare const observeCallback: ({ state, vm }: Pick<IPopoverRenderlessParams, 'state' | 'vm'>) => (mutationsList: any) => void;
121
121
 
122
122
  type IPopoverProps = ExtractPropTypes<typeof popoverProps>;
@@ -18,6 +18,7 @@ declare const $constants: {
18
18
  LARGE: number;
19
19
  };
20
20
  PROGRESS_STATUS: {
21
+ DEFAULT: string;
21
22
  SUCCESS: string;
22
23
  EXCEPTION: string;
23
24
  WARNING: string;
@@ -64,6 +65,7 @@ declare const progressProps: {
64
65
  LARGE: number;
65
66
  };
66
67
  PROGRESS_STATUS: {
68
+ DEFAULT: string;
67
69
  SUCCESS: string;
68
70
  EXCEPTION: string;
69
71
  WARNING: string;
@@ -61,8 +61,6 @@ declare const isDisplayOnly: ({ props }: Pick<IRadioRenderlessParams, 'props'>)
61
61
  declare const tabIndex: ({ props, state }: Pick<IRadioRenderlessParams, 'props' | 'state'>) => () => number;
62
62
  declare const getModel: ({ props, state }: Pick<IRadioRenderlessParams, 'props' | 'state'>) => () => IRadioState['model'];
63
63
  declare const setModel: ({ constants, dispatch, emit, props, vm, state }: Pick<IRadioRenderlessParams, 'constants' | 'dispatch' | 'emit' | 'props' | 'vm' | 'state'>) => (val: IRadioState['model']) => void;
64
- declare const dispatchDisplayedValue: ({ state, dispatch, api }: Pick<IRadioRenderlessParams, 'state' | 'dispatch' | 'api'>) => () => void;
65
- declare const getDisplayedValue: ({ vm, state, props }: Pick<IRadioRenderlessParams, 'vm' | 'props' | 'state'>) => () => string;
66
64
 
67
65
  type IRadioProps = ExtractPropTypes<typeof radioProps>;
68
66
  type IRadioConstants = typeof $constants;
@@ -95,8 +93,6 @@ interface IRadioApi {
95
93
  tabIndex: ReturnType<typeof tabIndex>;
96
94
  getModel: ReturnType<typeof getModel>;
97
95
  setModel: ReturnType<typeof setModel>;
98
- dispatchDisplayedValue: ReturnType<typeof dispatchDisplayedValue>;
99
- getDisplayedValue: ReturnType<typeof getDisplayedValue>;
100
96
  }
101
97
  type IRadioRenderlessParamUtils = ISharedRenderlessParamUtils<IRadioConstants>;
102
98
 
@@ -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 };