@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,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 };
@@ -134,7 +134,6 @@ interface ISliderState {
134
134
  moveStyle: object;
135
135
  points: object[];
136
136
  labels: object[];
137
- isInit: boolean;
138
137
  isDrag: boolean;
139
138
  sliderSize: number;
140
139
  inputValue: [number, number];
@@ -148,6 +147,7 @@ interface ISliderState {
148
147
  leftBtnStyle: string;
149
148
  leftBtnPercent: number;
150
149
  leftBtnShow: true;
150
+ mouseOuterBtn: boolean;
151
151
  rightBtnStyle: string;
152
152
  rightBtnPercent: number;
153
153
  rightBtnShow: boolean;
@@ -156,6 +156,10 @@ interface ISliderState {
156
156
  tipValue: ComputedRef<string>;
157
157
  formDisabled: ComputedRef<boolean>;
158
158
  disabled: ComputedRef<boolean>;
159
+ /** 使用这个值作为插槽中输入的值,而不是直接用activeValue,来实现在输入时不会被max min属性计算而改变 */
160
+ slotValue: number;
161
+ /** 是否正在输入 */
162
+ isSlotTyping: boolean;
159
163
  }
160
164
  interface ISliderApi {
161
165
  state: ISliderState;
@@ -186,6 +190,9 @@ interface ISliderApi {
186
190
  getPoints: () => void;
187
191
  getLabels: () => void;
188
192
  inputValueChange: () => void;
193
+ handleSlotInputFocus: () => void;
194
+ handleSlotInputBlur: () => void;
195
+ handleSlotInput: (event: Event) => void;
189
196
  }
190
197
  type ISliderRenderlessParams = ISharedRenderlessFunctionParams<ISliderConstants> & {
191
198
  state: ISliderState;
@@ -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;
@@ -9,7 +9,6 @@ declare const tabItemProps: {
9
9
  default: () => {};
10
10
  };
11
11
  title: StringConstructor;
12
- labelContent: FunctionConstructor;
13
12
  name: StringConstructor;
14
13
  withClose: BooleanConstructor;
15
14
  disabled: BooleanConstructor;
@@ -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;
@@ -47,6 +47,10 @@ declare const tabsProps: {
47
47
  expandTabsTitle: StringConstructor;
48
48
  expandTabsMode: StringConstructor;
49
49
  tooltipConfig: (StringConstructor | ObjectConstructor)[];
50
+ optimized: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
50
54
  tiny_mode: StringConstructor;
51
55
  tiny_mode_root: BooleanConstructor;
52
56
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -94,6 +98,7 @@ interface ITabsState {
94
98
  offsetY: number;
95
99
  direction: string;
96
100
  expandPanesWidth: string | number;
101
+ activeIndex: number;
97
102
  morePanes?: ITabsPaneVm[];
98
103
  separator?: boolean;
99
104
  }
@@ -1,2 +1,65 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
1
3
 
2
- export { }
4
+ /**
5
+ * Copyright (c) 2022 - present TinyVue Authors.
6
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
7
+ *
8
+ * Use of this source code is governed by an MIT-style license.
9
+ *
10
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
11
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
12
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
13
+ *
14
+ */
15
+ declare function export_default(delay: any, atBegin: any, callback?: Function): Function;
16
+
17
+ declare const tagGroupProps: {
18
+ size: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ validator: (value: string) => boolean;
22
+ };
23
+ data: {
24
+ type: ArrayConstructor;
25
+ default: () => never[];
26
+ };
27
+ effect: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ validator: (value: string) => boolean;
31
+ };
32
+ tiny_mode: StringConstructor;
33
+ tiny_mode_root: BooleanConstructor;
34
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
35
+ tiny_renderless: FunctionConstructor;
36
+ tiny_theme: StringConstructor;
37
+ tiny_chart_theme: ObjectConstructor;
38
+ };
39
+
40
+ declare const handelItemClick: ({ emit }: Pick<ITagGroupRenderlessParamUtils, 'emit'>) => (item: ITagGroupDataItem, index: number, $event: MouseEvent) => void;
41
+ declare const getHiddenTags: ({ props, vm, state }: Pick<ITagGroupRenderlessParams, 'props' | 'vm' | 'state'>) => () => void;
42
+
43
+ interface ITagGroupDataItem {
44
+ name: string;
45
+ type?: string;
46
+ }
47
+ interface ITagGroupState {
48
+ showMore: boolean;
49
+ hiddenTags: ITagGroupDataItem[];
50
+ }
51
+ type ITagGroupRenderlessParams = ISharedRenderlessFunctionParams<never> & {
52
+ api: ITagGroupApi;
53
+ state: ITagGroupState;
54
+ props: ITagGroupProps;
55
+ };
56
+ type ITagGroupProps = ExtractPropTypes<typeof tagGroupProps>;
57
+ interface ITagGroupApi {
58
+ state: ITagGroupState;
59
+ getHiddenTags: ReturnType<typeof getHiddenTags>;
60
+ handelItemClick: ReturnType<typeof handelItemClick>;
61
+ debouncedGetHiddenTags?: ReturnType<typeof export_default>;
62
+ }
63
+ type ITagGroupRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
64
+
65
+ export { ITagGroupApi, ITagGroupDataItem, ITagGroupProps, ITagGroupRenderlessParamUtils, ITagGroupRenderlessParams, ITagGroupState };
@@ -23,6 +23,14 @@ declare const tagProps: {
23
23
  };
24
24
  beforeDelete: FunctionConstructor;
25
25
  value: (StringConstructor | NumberConstructor)[];
26
+ mini: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ maxWidth: {
31
+ type: (StringConstructor | NumberConstructor)[];
32
+ default: null;
33
+ };
26
34
  tiny_mode: StringConstructor;
27
35
  tiny_mode_root: BooleanConstructor;
28
36
  tiny_template: (FunctionConstructor | ObjectConstructor)[];
@@ -35,6 +43,10 @@ interface ITagState {
35
43
  type: string | undefined;
36
44
  show: boolean;
37
45
  selected: boolean;
46
+ text: string;
47
+ color: string;
48
+ mini: boolean;
49
+ maxWidth: string | number;
38
50
  }
39
51
  interface ITagApi {
40
52
  state: ITagState;
@@ -131,7 +131,7 @@ declare const watchFocusing: (state: ITooltipState) => (value: boolean) => void;
131
131
  declare const focusHandler: ({ slots, api }: Pick<ITooltipRenderlessParams, 'slots' | 'api'>) => () => void;
132
132
  declare const bindEvent: ({ api, state, vm }: Pick<ITooltipRenderlessParams, 'api' | 'state' | 'vm'>) => (reference: HTMLElement) => void;
133
133
  declare const observeCallback: ({ state, popperVmRef }: Pick<ITooltipRenderlessParams, 'state' | 'popperVmRef'>) => (mutationsList: any) => void;
134
- declare const bindPopper: ({ vm, refs, nextTick, popperVmRef }: Pick<ITooltipRenderlessParams, 'vm' | 'refs' | 'nextTick' | 'popperVmRef'>) => (el?: Element) => void;
134
+ declare const bindPopper: ({ vm, nextTick, popperVmRef }: Pick<ITooltipRenderlessParams, 'vm' | 'nextTick' | 'popperVmRef'>) => (el?: Element) => void;
135
135
 
136
136
  type ITooltipProps = ExtractPropTypes<typeof tooltipProps>;
137
137
  interface ITooltipState {
@@ -1,2 +1,184 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
1
3
 
2
- export { }
4
+ declare const $constants: {
5
+ ISCHECKED: string;
6
+ DROPPANEL: string;
7
+ TRANSFERPANEL: string;
8
+ };
9
+ declare const transferProps: {
10
+ _constants: {
11
+ type: ObjectConstructor;
12
+ default: () => {
13
+ ISCHECKED: string;
14
+ DROPPANEL: string;
15
+ TRANSFERPANEL: string;
16
+ };
17
+ };
18
+ buttonTexts: {
19
+ type: ArrayConstructor;
20
+ default: () => never[];
21
+ };
22
+ columns: ArrayConstructor;
23
+ data: {
24
+ type: ArrayConstructor;
25
+ default: () => never[];
26
+ };
27
+ dropConfig: ObjectConstructor;
28
+ filterMethod: FunctionConstructor;
29
+ filterPlaceholder: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ filterable: BooleanConstructor;
34
+ format: {
35
+ type: ObjectConstructor;
36
+ default: () => {};
37
+ };
38
+ leftDefaultChecked: {
39
+ type: ArrayConstructor;
40
+ default: () => never[];
41
+ };
42
+ modelValue: {
43
+ type: ArrayConstructor;
44
+ default: () => never[];
45
+ };
46
+ pagerOp: {
47
+ type: ObjectConstructor;
48
+ default: () => {
49
+ mode: string;
50
+ pageVO: {
51
+ currentPage: number;
52
+ pageSize: number;
53
+ };
54
+ };
55
+ };
56
+ props: {
57
+ type: ObjectConstructor;
58
+ default: () => {
59
+ label: string;
60
+ key: string;
61
+ disabled: string;
62
+ };
63
+ };
64
+ render: ObjectConstructor;
65
+ renderContent: FunctionConstructor;
66
+ renderType: StringConstructor;
67
+ rightDefaultChecked: {
68
+ type: ArrayConstructor;
69
+ default: () => never[];
70
+ };
71
+ showAllBtn: BooleanConstructor;
72
+ showPager: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ targetOrder: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ titles: {
81
+ type: ArrayConstructor;
82
+ default: () => never[];
83
+ };
84
+ toLeftDisable: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ toRightDisable: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ treeOp: ObjectConstructor;
93
+ beforeTransfer: FunctionConstructor;
94
+ tiny_mode: StringConstructor;
95
+ tiny_mode_root: BooleanConstructor;
96
+ tiny_template: (FunctionConstructor | ObjectConstructor)[];
97
+ tiny_renderless: FunctionConstructor;
98
+ tiny_theme: StringConstructor;
99
+ tiny_chart_theme: ObjectConstructor;
100
+ };
101
+
102
+ /** 生成全量数据对应的一个大对象 */
103
+ declare const getObj: (props: ITransferProps) => () => unknown;
104
+ /** 返回左边的数据项 */
105
+ declare const getSourceData: ({ props, Tree }: Pick<ITransferRenderlessParams, "props"> & {
106
+ Tree: string;
107
+ }) => () => unknown[];
108
+ /** 返回右边的数据项 */
109
+ declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "state" | "props"> & {
110
+ Tree: string;
111
+ Table: string;
112
+ }) => () => unknown;
113
+ declare const onSourceCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
114
+ declare const onTargetCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
115
+ declare const addToLeft: ({ emit, props, state }: Pick<ITransferRenderlessParams, 'emit' | 'props' | 'state'>) => (value: undefined | 'all') => void;
116
+ declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "state" | "props" | "refs" | "emit"> & {
117
+ Tree: string;
118
+ }) => (value: undefined | 'all') => void;
119
+ declare const clearQuery: (refs: ITransferRenderlessParams['refs']) => (which: 'left' | 'right') => void;
120
+ /** SortableJs 插件的回调逻辑, 添加,删除,更新事件后,触发本函数 */
121
+ declare const logicFun: ({ props, emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'props' | 'state'>) => ({ event, isAdd, pullMode }: {
122
+ event: any;
123
+ isAdd?: boolean | undefined;
124
+ pullMode?: "sort" | undefined;
125
+ }) => void;
126
+ /** 组件加载后,给左右面板初始化Sortable的功能 */
127
+ declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "refs" | "api"> & {
128
+ droppanel: string;
129
+ queryDom: string;
130
+ }) => () => void;
131
+ declare const getLeftCheckedData: ({ props, state }: Pick<ITransferRenderlessParams, 'state' | 'props'>) => () => ITransferData[];
132
+ declare const getRightCheckedData: ({ props, state }: Pick<ITransferRenderlessParams, 'state' | 'props'>) => () => ITransferData[];
133
+
134
+ interface ITransferData {
135
+ key: string;
136
+ label: string;
137
+ disabled: boolean;
138
+ [customProp: string]: any;
139
+ }
140
+ interface ITransferState {
141
+ /** 左边选中的key的数组 */
142
+ leftChecked: string[];
143
+ /** 右边选中的key的数组 */
144
+ rightChecked: string[];
145
+ leftData: any[];
146
+ rightData: any[];
147
+ dataObj: any;
148
+ /** 左边的全部数据项 */
149
+ sourceData: ITransferData[];
150
+ /** 右边的全部数据 */
151
+ targetData: ITransferData[];
152
+ /** 是否传入了有效的buttonText */
153
+ hasButtonTexts: boolean;
154
+ /** 传递给右面板的 isToLeft 属性 */
155
+ isToLeft: boolean;
156
+ /** 函数。 它传递给2个面板,用于渲染每个数据项 */
157
+ optionRender: any;
158
+ }
159
+ type ITransferProps = ExtractPropTypes<typeof transferProps>;
160
+ type ITransferConstants = typeof $constants;
161
+ type ITransferRenderlessParams = ISharedRenderlessFunctionParams<ITransferConstants> & {
162
+ api: ITransferApi;
163
+ state: ITransferState;
164
+ props: ITransferProps;
165
+ };
166
+ interface ITransferApi {
167
+ state: ITransferState;
168
+ /** 生成全量数据对应的一个大对象 */
169
+ getObj: ReturnType<typeof getObj>;
170
+ clearQuery: ReturnType<typeof clearQuery>;
171
+ getSourceData: ReturnType<typeof getSourceData>;
172
+ addToLeft: ReturnType<typeof addToLeft>;
173
+ getLeftCheckedData: ReturnType<typeof getLeftCheckedData>;
174
+ getRightCheckedData: ReturnType<typeof getRightCheckedData>;
175
+ addToRight: ReturnType<typeof addToRight>;
176
+ onTargetCheckedChange: ReturnType<typeof onTargetCheckedChange>;
177
+ onSourceCheckedChange: ReturnType<typeof onSourceCheckedChange>;
178
+ logicFun: ReturnType<typeof logicFun>;
179
+ getTargetData: ReturnType<typeof getTargetData>;
180
+ sortableEvent: ReturnType<typeof sortableEvent>;
181
+ }
182
+ type ITransferRenderlessParamUtils = ISharedRenderlessParamUtils<ITransferConstants>;
183
+
184
+ export { ITransferApi, ITransferConstants, ITransferData, ITransferProps, ITransferRenderlessParamUtils, ITransferRenderlessParams, ITransferState };