@opentiny/vue-renderless 3.12.1 → 3.13.0-alpha.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 (297) hide show
  1. package/action-sheet/index.js +20 -13
  2. package/action-sheet/vue.js +8 -7
  3. package/alert/index.js +50 -1
  4. package/alert/vue.js +36 -9
  5. package/amount/index.js +100 -25
  6. package/amount/vue.js +102 -26
  7. package/anchor/index.js +1 -0
  8. package/area/index.js +8 -8
  9. package/area/vue.js +5 -5
  10. package/async-flowchart/index.js +16 -3
  11. package/autocomplete/index.js +58 -14
  12. package/autocomplete/vue.js +40 -12
  13. package/badge/index.js +12 -0
  14. package/badge/vue.js +6 -4
  15. package/breadcrumb/vue.js +3 -1
  16. package/breadcrumb-item/vue.js +6 -2
  17. package/button/index.js +5 -1
  18. package/calendar/index.js +2 -86
  19. package/calendar-bar/index.js +20 -6
  20. package/calendar-view/index.js +10 -12
  21. package/calendar-view/vue.js +17 -4
  22. package/cascader/index.js +80 -34
  23. package/cascader/vue.js +49 -19
  24. package/cascader-menu/index.js +7 -7
  25. package/cascader-menu/vue.js +2 -3
  26. package/cascader-mobile/index.js +37 -24
  27. package/cascader-mobile/vue.js +7 -1
  28. package/cascader-node/index.js +13 -1
  29. package/cascader-node/vue.js +15 -4
  30. package/cascader-panel/index.js +1 -1
  31. package/cascader-select/column-index.js +150 -0
  32. package/cascader-select/column.js +120 -0
  33. package/cascader-select/index.js +29 -165
  34. package/cascader-select/usePicker.js +251 -0
  35. package/cascader-select/useTouch.js +65 -0
  36. package/cascader-select/vue.js +35 -47
  37. package/cascader-view/index.js +1 -1
  38. package/cell/vue.js +2 -1
  39. package/chart-bar/index.js +2 -3
  40. package/chart-core/deps/constants.js +43 -43
  41. package/chart-core/index.js +1 -1
  42. package/chart-gauge/index.js +2 -2
  43. package/chart-heatmap/index.js +17 -10
  44. package/chart-line/index.js +8 -9
  45. package/chart-tree/index.js +2 -2
  46. package/chart-waterfall/index.js +4 -6
  47. package/checkbox/index.js +17 -0
  48. package/checkbox/vue.js +16 -7
  49. package/checkbox-group/vue.js +2 -0
  50. package/col/vue.js +3 -2
  51. package/collapse/index.js +3 -3
  52. package/color-select-panel/vue.js +0 -7
  53. package/column-list-item/index.js +17 -1
  54. package/column-list-item/vue.js +8 -3
  55. package/common/date.js +2 -0
  56. package/common/deps/dom.js +19 -4
  57. package/common/deps/popper.js +48 -5
  58. package/common/deps/touch-emulator.js +4 -1
  59. package/common/deps/tree-model/node.js +1 -1
  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 +22 -10
  63. package/common/index.js +1 -1
  64. package/common/runtime.js +1 -1
  65. package/common/type.js +2 -1
  66. package/common/validate/rules/enum.js +1 -1
  67. package/common/validate/rules/pattern.js +2 -2
  68. package/common/validate/rules/range.js +8 -5
  69. package/common/validate/rules/required.js +1 -1
  70. package/common/validate/rules/type.js +5 -5
  71. package/common/validate/rules/whitespace.js +1 -1
  72. package/common/validate/util.js +15 -16
  73. package/common/validate/validations/integer.js +1 -1
  74. package/common/validate/validations/method.js +1 -1
  75. package/container/index.js +17 -1
  76. package/container/vue.js +12 -3
  77. package/currency/index.js +74 -7
  78. package/currency/vue.js +21 -5
  79. package/date-panel/index.js +16 -0
  80. package/date-panel/vue.js +8 -2
  81. package/date-picker-mobile/index.js +12 -0
  82. package/date-picker-mobile/vue.js +7 -1
  83. package/date-range/vue.js +12 -5
  84. package/date-table/index.js +5 -0
  85. package/date-table/vue.js +3 -1
  86. package/dialog-box/index.js +17 -6
  87. package/dialog-select/index.js +6 -3
  88. package/dialog-select/vue.js +8 -4
  89. package/drawer/index.js +26 -5
  90. package/drawer/vue.js +13 -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 +21 -8
  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 +47 -12
  103. package/file-upload/vue.js +38 -8
  104. package/filter-box/index.js +1 -0
  105. package/floating-button/index.js +62 -16
  106. package/floating-button/vue.js +27 -9
  107. package/flowchart/index.js +134 -25
  108. package/flowchart/node.js +13 -4
  109. package/flowchart/vue.js +16 -4
  110. package/form/vue.js +3 -1
  111. package/form-item/index.js +4 -4
  112. package/form-item/vue.js +3 -1
  113. package/fullscreen/index.js +5 -5
  114. package/fullscreen/vue.js +3 -3
  115. package/grid/utils/common.js +10 -5
  116. package/grid/utils/dom.js +7 -1
  117. package/image/index.js +6 -0
  118. package/image/vue.js +6 -3
  119. package/image-viewer/index.js +62 -51
  120. package/image-viewer/vue.js +17 -5
  121. package/input/index.js +89 -22
  122. package/input/vue.js +52 -21
  123. package/ip-address/index.js +61 -19
  124. package/ip-address/vue.js +22 -4
  125. package/label/index.js +56 -0
  126. package/label/vue.js +26 -0
  127. package/link/vue.js +3 -1
  128. package/loading/vue.js +8 -2
  129. package/logout/index.js +1 -1
  130. package/mask/index.js +13 -0
  131. package/mask/vue.js +18 -0
  132. package/mind-map/index.js +47 -0
  133. package/mind-map/vue.js +53 -0
  134. package/multi-select/index.js +150 -10
  135. package/multi-select/vue.js +46 -11
  136. package/multi-select-item/index.js +17 -0
  137. package/multi-select-item/vue.js +31 -0
  138. package/numeric/index.js +51 -9
  139. package/numeric/vue.js +44 -14
  140. package/option/index.js +12 -5
  141. package/option/vue.js +15 -7
  142. package/option-group/index.js +3 -3
  143. package/package.json +1 -1
  144. package/pager/index.js +372 -0
  145. package/pager/vue.js +125 -2
  146. package/picker/index.js +253 -48
  147. package/picker/mb.js +42 -0
  148. package/picker/vue.js +70 -17
  149. package/picker-column/index.js +1 -1
  150. package/pop-upload/index.js +0 -2
  151. package/pop-upload/vue.js +3 -4
  152. package/popconfirm/index.js +3 -6
  153. package/popconfirm/vue.js +1 -1
  154. package/popeditor/index.js +55 -24
  155. package/popeditor/vue.js +15 -11
  156. package/popover/index.js +4 -4
  157. package/popover/vue.js +6 -6
  158. package/popup/index.js +3 -3
  159. package/popup/vue.js +5 -5
  160. package/pull-refresh/index.js +57 -65
  161. package/pull-refresh/vue.js +23 -7
  162. package/radio/index.js +0 -17
  163. package/radio/vue.js +4 -10
  164. package/rate/index.js +1 -1
  165. package/rate/vue.js +0 -2
  166. package/record/index.js +4 -1
  167. package/{rich-text-edtior → rich-text-editor}/index.js +2 -2
  168. package/{rich-text-edtior → rich-text-editor}/vue.js +2 -5
  169. package/scrollbar/index.js +11 -11
  170. package/scrollbar/vue-bar.js +3 -3
  171. package/scrollbar/vue.js +5 -5
  172. package/search/index.js +1 -1
  173. package/search/vue.js +3 -1
  174. package/select/index.js +176 -110
  175. package/select/vue.js +105 -20
  176. package/select-dropdown/index.js +62 -4
  177. package/select-dropdown/vue.js +85 -8
  178. package/select-view/index.js +3 -1
  179. package/signature/index.js +241 -0
  180. package/signature/vue.js +88 -0
  181. package/skeleton/index.js +14 -0
  182. package/skeleton/vue.js +15 -0
  183. package/skeleton-item/vue.js +15 -0
  184. package/slider/index.js +27 -7
  185. package/slider/vue.js +26 -7
  186. package/split/index.js +1 -1
  187. package/split/vue.js +4 -6
  188. package/standard-list-item/index.js +15 -1
  189. package/standard-list-item/vue.js +6 -5
  190. package/steps/index.js +25 -2
  191. package/steps/slide-bar.js +8 -1
  192. package/steps/vue.js +15 -3
  193. package/tab-item-mf/vue.js +14 -8
  194. package/tab-nav/index.js +9 -4
  195. package/tab-nav/vue.js +6 -2
  196. package/tabbar/vue.js +9 -3
  197. package/tabbar-item/vue.js +3 -2
  198. package/tabs/index.js +1 -1
  199. package/tabs/vue.js +1 -0
  200. package/tabs-mf/index.js +20 -6
  201. package/tabs-mf/vue-nav.js +26 -11
  202. package/tabs-mf/vue.js +7 -7
  203. package/tag/index.js +1 -1
  204. package/tag/vue.js +5 -1
  205. package/tag-group/index.js +2 -1
  206. package/tall-storage/index.js +4 -5
  207. package/time/index.js +4 -1
  208. package/time/vue.js +1 -1
  209. package/time-line/vue.js +1 -1
  210. package/time-picker-mobile/index.js +24 -5
  211. package/time-picker-mobile/vue.js +17 -7
  212. package/time-range/index.js +2 -0
  213. package/time-spinner/index.js +0 -3
  214. package/time-spinner/vue.js +2 -3
  215. package/timeline-item/vue.js +1 -1
  216. package/tooltip/index.js +1 -2
  217. package/tooltip/vue.js +3 -3
  218. package/transfer/index.js +20 -22
  219. package/transfer/vue.js +1 -6
  220. package/transfer-panel/vue.js +3 -5
  221. package/tree/index.js +21 -4
  222. package/tree/vue.js +10 -8
  223. package/tree-menu/index.js +27 -3
  224. package/tree-menu/vue.js +27 -14
  225. package/tree-node/index.js +12 -10
  226. package/tree-node/vue.js +6 -5
  227. package/types/action-menu.type.d.ts +5 -0
  228. package/types/action-sheet.type.d.ts +118 -1
  229. package/types/alert.type.d.ts +16 -1
  230. package/types/amount.type.d.ts +168 -1
  231. package/types/area.type.d.ts +134 -1
  232. package/types/async-flowchart.type.d.ts +72 -0
  233. package/types/autocomplete.type.d.ts +199 -1
  234. package/types/badge.type.d.ts +3 -1
  235. package/types/breadcrumb-item.type.d.ts +2 -0
  236. package/types/breadcrumb.type.d.ts +2 -0
  237. package/types/button.type.d.ts +5 -0
  238. package/types/cascader-menu.type.d.ts +3 -4
  239. package/types/cascader-node.type.d.ts +5 -2
  240. package/types/cascader-panel.type-2bd03be3.d.ts +241 -0
  241. package/types/cascader-panel.type.d.ts +3 -241
  242. package/types/cascader.type.d.ts +327 -1
  243. package/types/checkbox.type.d.ts +9 -0
  244. package/types/collapse.type.d.ts +19 -2
  245. package/types/date-picker.type.d.ts +34 -1
  246. package/types/dialog-box.type.d.ts +5 -1
  247. package/types/drawer.type.d.ts +132 -1
  248. package/types/{dropdown-item.type-bf83e929.d.ts → dropdown-item.type-8475a549.d.ts} +8 -14
  249. package/types/dropdown-item.type.d.ts +1 -1
  250. package/types/dropdown-menu.type.d.ts +1 -1
  251. package/types/dropdown.type.d.ts +2 -5
  252. package/types/fall-menu.type.d.ts +94 -1
  253. package/types/file-upload.type.d.ts +1 -1
  254. package/types/form-item.type.d.ts +1 -1
  255. package/types/{form.type-d0fd42f3.d.ts → form.type-d88482e4.d.ts} +3 -0
  256. package/types/form.type.d.ts +1 -1
  257. package/types/input.type.d.ts +23 -9
  258. package/types/ip-address.type.d.ts +160 -1
  259. package/types/label.type.d.ts +81 -0
  260. package/types/link.type.d.ts +6 -3
  261. package/types/mind-map.type.d.ts +20 -0
  262. package/types/modal.type.d.ts +4 -2
  263. package/types/numeric.type.d.ts +36 -9
  264. package/types/pager.type.d.ts +171 -1
  265. package/types/picker.type.d.ts +14 -0
  266. package/types/popconfirm.type.d.ts +85 -1
  267. package/types/popeditor.type.d.ts +4 -0
  268. package/types/popover.type.d.ts +3 -3
  269. package/types/radio.type.d.ts +0 -4
  270. package/types/rate.type.d.ts +236 -1
  271. package/types/search.type.d.ts +88 -1
  272. package/types/shared.type.d.ts +1 -1
  273. package/types/skeleton-item.type.d.ts +38 -0
  274. package/types/skeleton.type.d.ts +45 -0
  275. package/types/slider.type.d.ts +8 -1
  276. package/types/steps.type.d.ts +14 -3
  277. package/types/tab-item.type.d.ts +0 -1
  278. package/types/tab-nav.type.d.ts +6 -1
  279. package/types/tabs.type.d.ts +5 -0
  280. package/types/tag-group.type.d.ts +64 -1
  281. package/types/tag.type.d.ts +12 -0
  282. package/types/tooltip.type.d.ts +1 -1
  283. package/types/transfer.type.d.ts +183 -1
  284. package/types/tree-menu.type.d.ts +210 -1
  285. package/types/upload-dragger.type.d.ts +1 -1
  286. package/types/{upload-list.type-343e8c11.d.ts → upload-list.type-1078fba2.d.ts} +27 -6
  287. package/types/upload-list.type.d.ts +1 -1
  288. package/types/upload.type.d.ts +1 -1
  289. package/types/wizard.type.d.ts +1 -0
  290. package/upload/index.js +59 -29
  291. package/upload/vue.js +6 -4
  292. package/upload-list/index.js +14 -14
  293. package/upload-list/vue.js +5 -2
  294. package/user/index.js +5 -4
  295. package/user-head/index.js +1 -1
  296. package/wheel/index.js +3 -0
  297. package/wizard/vue.js +4 -2
@@ -1,2 +1,172 @@
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
+ import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
1
3
 
2
- export { }
4
+ declare const pagerProps: {
5
+ accurateJumper: {
6
+ type: BooleanConstructor;
7
+ default: () => boolean;
8
+ };
9
+ appendToBody: {
10
+ type: BooleanConstructor;
11
+ default: () => boolean;
12
+ };
13
+ currentPage: {
14
+ type: NumberConstructor;
15
+ default: () => number;
16
+ };
17
+ disabled: {
18
+ type: BooleanConstructor;
19
+ default: () => boolean;
20
+ };
21
+ hideOnSinglePage: BooleanConstructor;
22
+ isBeforePageChange: BooleanConstructor;
23
+ layout: StringConstructor;
24
+ mode: StringConstructor;
25
+ nextText: StringConstructor;
26
+ pageCount: NumberConstructor;
27
+ pageSize: {
28
+ type: NumberConstructor;
29
+ default: () => number;
30
+ };
31
+ pageSizes: {
32
+ type: PropType<number[]>;
33
+ default: () => number[];
34
+ };
35
+ pagerCount: {
36
+ type: NumberConstructor;
37
+ validator: (value: any) => boolean;
38
+ default: () => number;
39
+ };
40
+ popperAppendToBody: {
41
+ type: BooleanConstructor;
42
+ default: () => boolean;
43
+ };
44
+ showTotalLoading: {
45
+ type: BooleanConstructor;
46
+ default: () => boolean;
47
+ };
48
+ customTotal: {
49
+ type: (StringConstructor | BooleanConstructor)[];
50
+ default: () => boolean;
51
+ };
52
+ popperClass: StringConstructor;
53
+ prevText: StringConstructor;
54
+ total: NumberConstructor;
55
+ size: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ align: {
60
+ type: StringConstructor;
61
+ validator: (value: any) => boolean;
62
+ };
63
+ totalFixedLeft: {
64
+ type: BooleanConstructor;
65
+ default: undefined;
66
+ };
67
+ tiny_mode: StringConstructor;
68
+ tiny_mode_root: BooleanConstructor;
69
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
70
+ tiny_renderless: FunctionConstructor;
71
+ tiny_theme: StringConstructor;
72
+ tiny_chart_theme: ObjectConstructor;
73
+ };
74
+
75
+ declare const computedShowPager: ({ props, state }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => () => boolean;
76
+ declare const computedInternalLayout: ({ props }: Pick<IPagerRenderlessParams, 'props'>) => () => string[];
77
+ declare const computedTotalText: ({ props, t }: Pick<IPagerRenderlessParams, 'props' | 't'>) => () => string;
78
+ declare const computedInternalPageCount: ({ props, state }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => () => number | null;
79
+ declare const handleJumperFocus: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (e: Event) => void;
80
+ declare const watchInternalCurrentPage: ({ state, emit }: Pick<IPagerRenderlessParams, 'state' | 'emit'>) => (currentPage: number) => void;
81
+ declare const watchPageSizes: ({ state, props }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => (newVal: number[]) => void;
82
+ declare const watchCurrentPage: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (curPage: number) => void;
83
+ declare const watchInternalPageCount: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (pageCount: number | null) => void;
84
+ declare const watchPageSize: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (pageSize: number) => void;
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;
87
+ declare const handleSizeChange: ({ props, state, api, emit, vm }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit' | 'vm'>) => (val: number) => void;
88
+ declare const handleJumperInput: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (e: Event) => void;
89
+ declare const handleJumperChange: ({ props, state, api }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api'>) => () => void;
90
+ declare const handleJumperClick: ({ props, state, api }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api'>) => () => void;
91
+ declare const isValueNumber: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => () => boolean;
92
+ declare const parseValueNumber: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => () => void;
93
+ declare const handleSizeShowPopover: ({ state, props }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => () => void;
94
+ declare const handleSizeHidePopover: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => () => void;
95
+ declare const canJumperGo: ({ props, state, vm }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'vm'>) => () => boolean;
96
+ declare const beforeSizeChangeHandler: ({ state, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state'>) => (params: any) => void;
97
+ declare const beforePagerChangeHandler: ({ state, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state'>) => (params: any) => void;
98
+ declare const copyEmit: ({ emit }: Pick<IPagerRenderlessParams, 'emit'>) => (...args: any[]) => void;
99
+ declare const beforeChangeHandler: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (val?: number) => boolean;
100
+ declare const handleCurrentChange: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (val: number) => void;
101
+ declare const prev: ({ state, props, api, emit }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit'>) => () => void;
102
+ declare const next: ({ props, state, api, emit }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit'>) => () => void;
103
+ declare const buildBeforePageChangeParam: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (param: any) => any;
104
+ declare const getValidCurrentPage: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: string | number) => any;
105
+ declare const emitChange: ({ state, nextTick, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state' | 'nextTick'>) => () => void;
106
+ declare const setTotal: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: number) => void;
107
+ declare const clickSizes: () => (e: Event) => void;
108
+
109
+ type IPagerProps = ExtractPropTypes<typeof pagerProps>;
110
+ interface IPagerState {
111
+ showPager: boolean;
112
+ showSizes: boolean;
113
+ internalCurrentPage: number;
114
+ internalPageSize: number;
115
+ lastEmittedPage: number;
116
+ userChangePageSize: boolean;
117
+ internalTotal: number | undefined;
118
+ jumperValue: string;
119
+ jumperBackup: string;
120
+ internalLayout: string[];
121
+ totalText: string;
122
+ internalPageCount: number | null;
123
+ showJumperSufix: boolean;
124
+ align: 'left' | 'center' | 'right';
125
+ totalI18n: 'total' | 'totals';
126
+ totalFixedLeft: boolean;
127
+ }
128
+ interface IPagerApi {
129
+ state: IPagerState;
130
+ t: IPagerRenderlessParamUtils['t'];
131
+ computedShowPager: ReturnType<typeof computedShowPager>;
132
+ computedInternalLayout: ReturnType<typeof computedInternalLayout>;
133
+ computedTotalText: ReturnType<typeof computedTotalText>;
134
+ computedInternalPageCount: ReturnType<typeof computedInternalPageCount>;
135
+ handleJumperFocus: ReturnType<typeof handleJumperFocus>;
136
+ handleSizeChange: ReturnType<typeof handleSizeChange>;
137
+ handleJumperInput: ReturnType<typeof handleJumperInput>;
138
+ handleJumperChange: ReturnType<typeof handleJumperChange>;
139
+ handleJumperClick: ReturnType<typeof handleJumperClick>;
140
+ isValueNumber: ReturnType<typeof isValueNumber>;
141
+ parseValueNumber: ReturnType<typeof parseValueNumber>;
142
+ handleSizeShowPopover: ReturnType<typeof handleSizeShowPopover>;
143
+ handleSizeHidePopover: ReturnType<typeof handleSizeHidePopover>;
144
+ canJumperGo: ReturnType<typeof canJumperGo>;
145
+ beforeSizeChangeHandler: ReturnType<typeof beforeSizeChangeHandler>;
146
+ beforePagerChangeHandler: ReturnType<typeof beforePagerChangeHandler>;
147
+ copyEmit: ReturnType<typeof copyEmit>;
148
+ beforeChangeHandler: ReturnType<typeof beforeChangeHandler>;
149
+ handleCurrentChange: ReturnType<typeof handleCurrentChange>;
150
+ prev: ReturnType<typeof prev>;
151
+ next: ReturnType<typeof next>;
152
+ buildBeforePageChangeParam: ReturnType<typeof buildBeforePageChangeParam>;
153
+ getValidCurrentPage: ReturnType<typeof getValidCurrentPage>;
154
+ emitChange: ReturnType<typeof emitChange>;
155
+ setTotal: ReturnType<typeof setTotal>;
156
+ clickSizes: ReturnType<typeof clickSizes>;
157
+ watchInternalCurrentPage: ReturnType<typeof watchInternalCurrentPage>;
158
+ watchPageSizes: ReturnType<typeof watchPageSizes>;
159
+ watchCurrentPage: ReturnType<typeof watchCurrentPage>;
160
+ watchInternalPageCount: ReturnType<typeof watchInternalPageCount>;
161
+ watchPageSize: ReturnType<typeof watchPageSize>;
162
+ watchTotal: ReturnType<typeof watchTotal>;
163
+ watchShowSizes: ReturnType<typeof watchShowSizes>;
164
+ }
165
+ type IPagerRenderlessParams = ISharedRenderlessFunctionParams<never> & {
166
+ api: IPagerApi;
167
+ state: IPagerState;
168
+ props: IPagerProps;
169
+ };
170
+ type IPagerRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
171
+
172
+ export { IPagerApi, IPagerProps, IPagerRenderlessParamUtils, IPagerRenderlessParams, IPagerState };
@@ -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,15 @@ 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
+ };
109
123
  };
110
124
 
111
125
  type IPickerProps = ExtractPropTypes<typeof pickerProps>;
@@ -1,2 +1,86 @@
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
+ trigger: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ validator: (value: string) => boolean;
38
+ };
39
+ cancelButton: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ title: StringConstructor;
44
+ placement: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ width: (StringConstructor | NumberConstructor)[];
49
+ type: (StringConstructor | ObjectConstructor)[];
50
+ reference: {};
51
+ events: ObjectConstructor;
52
+ tiny_mode: StringConstructor;
53
+ tiny_mode_root: BooleanConstructor;
54
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
55
+ tiny_renderless: FunctionConstructor;
56
+ tiny_theme: StringConstructor;
57
+ tiny_chart_theme: ObjectConstructor;
58
+ };
59
+
60
+ declare const hide: ({ state, emit }: Pick<IPopconfirmRenderlessParams, 'state' | 'emit'>) => () => void;
61
+ declare const show: ({ state, props, emit }: Pick<IPopconfirmRenderlessParams, 'state' | 'props' | 'emit'>) => (trigger: any) => void;
62
+ declare const confirm: ({ state, api }: Pick<IPopconfirmRenderlessParams, 'state' | 'api'>) => () => void;
63
+ declare const handleEmit: ({ state, emit, vm }: Pick<IPopconfirmRenderlessParams, 'state' | 'emit' | 'vm'>) => (type: any) => void;
64
+
65
+ interface IPopconfirmState {
66
+ isLock: boolean;
67
+ showPopover: boolean;
68
+ getIcon: string;
69
+ }
70
+ type IPopconfirmProps = ExtractPropTypes<typeof popConfirmProps>;
71
+ type IPopconfirmConstants = typeof $constants;
72
+ type IPopconfirmRenderlessParams = ISharedRenderlessFunctionParams<IPopconfirmConstants> & {
73
+ api: IPopconfirmApi;
74
+ state: IPopconfirmState;
75
+ props: IPopconfirmProps;
76
+ };
77
+ interface IPopconfirmApi {
78
+ state: IPopconfirmState;
79
+ show: ReturnType<typeof show>;
80
+ hide: ReturnType<typeof hide>;
81
+ confirm: ReturnType<typeof confirm>;
82
+ handleEmit: ReturnType<typeof handleEmit>;
83
+ }
84
+ type IPopconfirmRenderlessParamUtils = ISharedRenderlessParamUtils<IPopconfirmConstants>;
85
+
86
+ 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>;
@@ -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 };