@farris/ui-vue 1.0.0-beta.2 → 1.0.0-beta.4

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 (246) hide show
  1. package/accordion/index.esm.js +93 -0
  2. package/accordion/index.umd.js +1 -0
  3. package/accordion/package.json +8 -0
  4. package/accordion/style.css +1 -0
  5. package/avatar/index.esm.js +94 -0
  6. package/avatar/index.umd.js +1 -0
  7. package/avatar/package.json +8 -0
  8. package/avatar/style.css +1 -0
  9. package/button/index.esm.js +206 -0
  10. package/button/index.umd.js +1 -0
  11. package/button/package.json +8 -0
  12. package/button-edit/index.esm.js +300 -0
  13. package/button-edit/index.umd.js +1 -0
  14. package/button-edit/package.json +8 -0
  15. package/checkbox/index.esm.js +97 -0
  16. package/checkbox/index.umd.js +1 -0
  17. package/checkbox/package.json +8 -0
  18. package/combo-list/index.esm.js +457 -0
  19. package/combo-list/index.umd.js +1 -0
  20. package/combo-list/package.json +8 -0
  21. package/data-grid/index.esm.js +1535 -0
  22. package/data-grid/index.umd.js +1 -0
  23. package/data-grid/package.json +8 -0
  24. package/data-grid/style.css +1 -0
  25. package/date-picker/index.esm.js +1479 -0
  26. package/date-picker/index.umd.js +1 -0
  27. package/date-picker/package.json +8 -0
  28. package/date-picker/style.css +1 -0
  29. package/{src/index.esm.js → farris.all.esm.js} +1 -2
  30. package/farris.all.umd.js +1 -0
  31. package/list-view/index.esm.js +144 -0
  32. package/list-view/index.umd.js +1 -0
  33. package/list-view/package.json +8 -0
  34. package/list-view/style.css +1 -0
  35. package/message-box/index.esm.js +499 -0
  36. package/message-box/index.umd.js +1 -0
  37. package/message-box/package.json +8 -0
  38. package/modal/index.esm.js +165 -0
  39. package/modal/index.umd.js +1 -0
  40. package/modal/package.json +8 -0
  41. package/notify/index.esm.js +187 -0
  42. package/notify/index.umd.js +1 -0
  43. package/notify/package.json +8 -0
  44. package/notify/style.css +1 -0
  45. package/package.json +6 -5
  46. package/pagination/index.esm.js +334 -0
  47. package/pagination/index.umd.js +1 -0
  48. package/pagination/package.json +8 -0
  49. package/pagination/style.css +1 -0
  50. package/popover/index.esm.js +83 -0
  51. package/popover/index.umd.js +1 -0
  52. package/popover/package.json +8 -0
  53. package/popover/style.css +1 -0
  54. package/radio-group/index.esm.js +79 -0
  55. package/radio-group/index.umd.js +1 -0
  56. package/radio-group/package.json +8 -0
  57. package/section/index.esm.js +70 -0
  58. package/section/index.umd.js +1 -0
  59. package/section/package.json +8 -0
  60. package/switch/index.esm.js +78 -0
  61. package/switch/index.umd.js +1 -0
  62. package/switch/package.json +8 -0
  63. package/tabs/index.esm.js +385 -0
  64. package/tabs/index.umd.js +1 -0
  65. package/tabs/package.json +8 -0
  66. package/tabs/style.css +1 -0
  67. package/text/index.esm.js +33 -0
  68. package/text/index.umd.js +1 -0
  69. package/text/package.json +8 -0
  70. package/tooltip/index.esm.js +195 -0
  71. package/tooltip/index.umd.js +1 -0
  72. package/tooltip/package.json +8 -0
  73. package/tooltip/style.css +1 -0
  74. package/types/accordion/index.d.ts +25 -0
  75. package/types/accordion/src/accordion.component.d.ts +70 -0
  76. package/types/accordion/src/accordion.props.d.ts +50 -0
  77. package/types/accordion/src/components/accordion-item.component.d.ts +38 -0
  78. package/types/accordion/src/components/accordion-item.props.d.ts +34 -0
  79. package/types/avatar/index.d.ts +23 -0
  80. package/types/avatar/src/avatar.component.d.ts +109 -0
  81. package/types/avatar/src/avatar.props.d.ts +96 -0
  82. package/types/avatar/src/composition/types.d.ts +31 -0
  83. package/types/avatar/src/composition/use-image.d.ts +19 -0
  84. package/types/button/index.d.ts +24 -0
  85. package/types/button/src/button-group.component.d.ts +106 -0
  86. package/types/button/src/button-group.props.d.ts +106 -0
  87. package/types/button/src/button.component.d.ts +34 -0
  88. package/types/button/src/button.props.d.ts +47 -0
  89. package/types/button/src/composition/types-group.d.ts +24 -0
  90. package/types/button/src/composition/types.d.ts +24 -0
  91. package/types/button/src/composition/use-button-group.d.ts +19 -0
  92. package/types/button/src/composition/use-button.d.ts +19 -0
  93. package/types/button-edit/index.d.ts +23 -0
  94. package/types/button-edit/src/button-edit.props.d.ts +135 -0
  95. package/types/button-edit/src/composition/types.d.ts +118 -0
  96. package/types/button-edit/src/composition/use-button.d.ts +19 -0
  97. package/types/button-edit/src/composition/use-clear.d.ts +19 -0
  98. package/types/button-edit/src/composition/use-text-box.d.ts +19 -0
  99. package/types/checkbox/index.d.ts +23 -0
  100. package/types/checkbox/src/checkbox-group.component.d.ts +148 -0
  101. package/types/checkbox/src/checkbox-group.props.d.ts +123 -0
  102. package/types/checkbox/src/composition/types.d.ts +46 -0
  103. package/types/checkbox/src/composition/use-checkbox-group.d.ts +19 -0
  104. package/types/combo-list/index.d.ts +25 -0
  105. package/types/combo-list/src/combo-list.props.d.ts +290 -0
  106. package/types/combo-list/src/components/option.component.d.ts +39 -0
  107. package/types/combo-list/src/components/options.component.d.ts +10 -0
  108. package/types/combo-list/src/composition/index.d.ts +18 -0
  109. package/types/combo-list/src/composition/use-combo-list.d.ts +30 -0
  110. package/types/combo-list/src/composition/use-option.d.ts +19 -0
  111. package/types/combo-list/src/composition/use-options.d.ts +2 -0
  112. package/types/combo-list/src/composition/use-panel.d.ts +8 -0
  113. package/types/combo-list/src/const.d.ts +40 -0
  114. package/types/combo-list/src/types.d.ts +186 -0
  115. package/types/data-grid/index.d.ts +23 -0
  116. package/types/data-grid/src/components/data/data-area.component.d.ts +21 -0
  117. package/types/data-grid/src/components/editors/date-picker.component.d.ts +2 -0
  118. package/types/data-grid/src/components/editors/text-area-editor.component.d.ts +2 -0
  119. package/types/data-grid/src/components/editors/text-editor.component.d.ts +17 -0
  120. package/types/data-grid/src/components/header/data-grid-header.component.d.ts +22 -0
  121. package/types/data-grid/src/components/pagination/data-grid-pagination.component.d.ts +5 -0
  122. package/types/data-grid/src/components/scrollbar/horizontal-scrollbar.component.d.ts +21 -0
  123. package/types/data-grid/src/components/scrollbar/vertical-scrollbar.component.d.ts +21 -0
  124. package/types/data-grid/src/components/sidebar/data-grid-sidebar.component.d.ts +21 -0
  125. package/types/data-grid/src/components/summary/data-grid-summary.component.d.ts +5 -0
  126. package/types/data-grid/src/composition/types.d.ts +175 -0
  127. package/types/data-grid/src/composition/use-column.d.ts +17 -0
  128. package/types/data-grid/src/composition/use-data-view.d.ts +19 -0
  129. package/types/data-grid/src/composition/use-edit.d.ts +18 -0
  130. package/types/data-grid/src/composition/use-fit-column.d.ts +20 -0
  131. package/types/data-grid/src/composition/use-group-column.d.ts +22 -0
  132. package/types/data-grid/src/composition/use-group-data.d.ts +3 -0
  133. package/types/data-grid/src/composition/use-positon-style.d.ts +20 -0
  134. package/types/data-grid/src/composition/use-resize.d.ts +20 -0
  135. package/types/data-grid/src/composition/use-row.d.ts +3 -0
  136. package/types/data-grid/src/composition/use-sidebar.d.ts +3 -0
  137. package/types/data-grid/src/composition/use-virtual-scroll.d.ts +20 -0
  138. package/types/data-grid/src/composition/use-visual-data.d.ts +19 -0
  139. package/types/data-grid/src/data-grid.component.d.ts +278 -0
  140. package/types/data-grid/src/data-grid.props.d.ts +650 -0
  141. package/types/date-picker/index.d.ts +28 -0
  142. package/types/date-picker/src/components/calendar/calendar.component.d.ts +166 -0
  143. package/types/date-picker/src/components/calendar/calendar.props.d.ts +94 -0
  144. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +138 -0
  145. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.props.d.ts +81 -0
  146. package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +626 -0
  147. package/types/date-picker/src/components/date-picker-container/date-picker-container.props.d.ts +306 -0
  148. package/types/date-picker/src/components/month/month.component.d.ts +86 -0
  149. package/types/date-picker/src/components/month/month.props.d.ts +57 -0
  150. package/types/date-picker/src/components/year/year.component.d.ts +86 -0
  151. package/types/date-picker/src/components/year/year.props.d.ts +57 -0
  152. package/types/date-picker/src/composition/types.d.ts +102 -0
  153. package/types/date-picker/src/composition/use-calendar.d.ts +2 -0
  154. package/types/date-picker/src/composition/use-compare.d.ts +2 -0
  155. package/types/date-picker/src/composition/use-date.d.ts +2 -0
  156. package/types/date-picker/src/composition/use-disable-date.d.ts +18 -0
  157. package/types/date-picker/src/composition/use-disable-month.d.ts +2 -0
  158. package/types/date-picker/src/composition/use-event.d.ts +45 -0
  159. package/types/date-picker/src/composition/use-mark.d.ts +2 -0
  160. package/types/date-picker/src/composition/use-month.d.ts +2 -0
  161. package/types/date-picker/src/composition/use-number.d.ts +2 -0
  162. package/types/date-picker/src/composition/use-year.d.ts +2 -0
  163. package/types/date-picker/src/date-picker.props.d.ts +168 -0
  164. package/types/date-picker/src/types/calendar.d.ts +30 -0
  165. package/types/date-picker/src/types/common.d.ts +42 -0
  166. package/types/date-picker/src/types/date-model.d.ts +38 -0
  167. package/types/date-picker/src/types/month.d.ts +48 -0
  168. package/types/date-picker/src/types/year.d.ts +24 -0
  169. package/types/index.d.ts +20 -0
  170. package/types/list-view/index.d.ts +23 -0
  171. package/types/list-view/src/components/list-view-checkbox.component.d.ts +32 -0
  172. package/types/list-view/src/components/list-view-checkbox.props.d.ts +31 -0
  173. package/types/list-view/src/list-view.props.d.ts +44 -0
  174. package/types/message-box/index.d.ts +24 -0
  175. package/types/message-box/src/composition/types.d.ts +18 -0
  176. package/types/message-box/src/composition/use-copy.d.ts +18 -0
  177. package/types/message-box/src/message-box.component.d.ts +72 -0
  178. package/types/message-box/src/message-box.props.d.ts +52 -0
  179. package/types/modal/index.d.ts +23 -0
  180. package/types/modal/src/modal.component.d.ts +104 -0
  181. package/types/modal/src/modal.props.d.ts +72 -0
  182. package/types/notify/index.d.ts +26 -0
  183. package/types/notify/src/components/toast.component.d.ts +21 -0
  184. package/types/notify/src/components/toast.props.d.ts +27 -0
  185. package/types/notify/src/notify.props.d.ts +99 -0
  186. package/types/number-range/index.d.ts +23 -0
  187. package/types/number-range/src/composition/types.d.ts +52 -0
  188. package/types/number-range/src/composition/use-data.d.ts +19 -0
  189. package/types/number-range/src/composition/use-util.d.ts +19 -0
  190. package/types/number-range/src/number-range.component.d.ts +247 -0
  191. package/types/number-range/src/number-range.props.d.ts +216 -0
  192. package/types/number-spinner/index.d.ts +23 -0
  193. package/types/number-spinner/src/composition/types.d.ts +52 -0
  194. package/types/number-spinner/src/composition/use-data.d.ts +19 -0
  195. package/types/number-spinner/src/composition/use-util.d.ts +19 -0
  196. package/types/number-spinner/src/number-spinner.component.d.ts +202 -0
  197. package/types/number-spinner/src/number-spinner.props.d.ts +181 -0
  198. package/types/overlay/src/overlay.component.d.ts +20 -0
  199. package/types/overlay/src/overlay.props.d.ts +26 -0
  200. package/types/pagination/index.d.ts +23 -0
  201. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +19 -0
  202. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +20 -0
  203. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +20 -0
  204. package/types/pagination/src/components/pages/page-info.component.d.ts +19 -0
  205. package/types/pagination/src/components/pages/page-list.component.d.ts +19 -0
  206. package/types/pagination/src/components/pages/page-number.component.d.ts +20 -0
  207. package/types/pagination/src/composition/types.d.ts +24 -0
  208. package/types/pagination/src/composition/use-pages.d.ts +18 -0
  209. package/types/pagination/src/pagination.components.d.ts +41 -0
  210. package/types/pagination/src/pagination.props.d.ts +36 -0
  211. package/types/popover/index.d.ts +24 -0
  212. package/types/popover/src/popover.component.d.ts +26 -0
  213. package/types/popover/src/popover.directive.d.ts +5 -0
  214. package/types/popover/src/popover.props.d.ts +30 -0
  215. package/types/radio-group/index.d.ts +23 -0
  216. package/types/radio-group/src/composition/change-radio.d.ts +19 -0
  217. package/types/radio-group/src/composition/types.d.ts +42 -0
  218. package/types/radio-group/src/radio-group.component.d.ts +91 -0
  219. package/types/radio-group/src/radio-group.props.d.ts +87 -0
  220. package/types/section/index.d.ts +23 -0
  221. package/types/section/src/section.component.d.ts +187 -0
  222. package/types/section/src/section.props.d.ts +117 -0
  223. package/types/switch/index.d.ts +23 -0
  224. package/types/switch/src/switch.component.d.ts +66 -0
  225. package/types/switch/src/switch.props.d.ts +52 -0
  226. package/types/tabs/index.d.ts +25 -0
  227. package/types/tabs/src/components/tab-page.component.d.ts +101 -0
  228. package/types/tabs/src/components/tab-page.props.d.ts +63 -0
  229. package/types/tabs/src/composition/types.d.ts +35 -0
  230. package/types/tabs/src/composition/use-tabs.d.ts +18 -0
  231. package/types/tabs/src/tabs.component.d.ts +149 -0
  232. package/types/tabs/src/tabs.props.d.ts +86 -0
  233. package/types/text/index.d.ts +23 -0
  234. package/types/text/src/text.component.d.ts +14 -0
  235. package/types/text/src/text.props.d.ts +26 -0
  236. package/types/tooltip/index.d.ts +24 -0
  237. package/types/tooltip/src/composition/types.d.ts +45 -0
  238. package/types/tooltip/src/composition/use-adjust-placement.d.ts +20 -0
  239. package/types/tooltip/src/composition/use-adjust-position.d.ts +6 -0
  240. package/types/tooltip/src/composition/use-calculate-position.d.ts +21 -0
  241. package/types/tooltip/src/composition/use-relative.d.ts +19 -0
  242. package/types/tooltip/src/composition/use-tooltip-position.d.ts +22 -0
  243. package/types/tooltip/src/tooltip.component.d.ts +56 -0
  244. package/types/tooltip/src/tooltip.props.d.ts +45 -0
  245. package/src/index.umd.js +0 -1
  246. /package/{src/style.css → style.css} +0 -0
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ComputedRef, Ref } from 'vue';
17
+ export interface UseButton {
18
+ /**
19
+ * 附加按钮的Class
20
+ */
21
+ buttonClass: ComputedRef<Record<string, boolean | undefined>>;
22
+ /**
23
+ * 点击附加按钮事件响应函数
24
+ */
25
+ onClickButton: ($event: Event) => void;
26
+ /**
27
+ * 鼠标移入附加按钮事件响应函数
28
+ */
29
+ onMouseEnterButton: ($event: MouseEvent) => void;
30
+ /**
31
+ * 鼠标移出附加按钮事件响应函数
32
+ */
33
+ onMouseLeaveButton: ($event: MouseEvent) => void;
34
+ /**
35
+ * 鼠标滑过附加按钮事件响应函数
36
+ */
37
+ onMouseOverButton: () => void;
38
+ }
39
+ export interface UseClear {
40
+ /**
41
+ * 启用清空按钮
42
+ */
43
+ enableClearButton: ComputedRef<boolean>;
44
+ /**
45
+ * 显示清空按钮
46
+ */
47
+ showClearButton: Ref<boolean>;
48
+ /**
49
+ * 清空输入框值事件响应函数
50
+ */
51
+ onClearValue: ($event: Event) => void;
52
+ /**
53
+ * 鼠标进入输入框事件响应函数
54
+ */
55
+ onMouseEnterTextBox: ($event: MouseEvent) => void;
56
+ /**
57
+ * 鼠标移出输入框事件响应函数
58
+ */
59
+ onMouseLeaveTextBox: ($event: MouseEvent) => void;
60
+ }
61
+ export interface UseTextBox {
62
+ /**
63
+ * 输入框是否获得焦点
64
+ */
65
+ hasFocusedTextBox: ComputedRef<boolean>;
66
+ /**
67
+ * 输入框是否处于只读状态
68
+ */
69
+ isTextBoxReadonly: ComputedRef<boolean>;
70
+ /**
71
+ * 输入框Class
72
+ */
73
+ textBoxClass: ComputedRef<Record<string, boolean | undefined>>;
74
+ /**
75
+ * 输入框提示语
76
+ */
77
+ textBoxPlaceholder: ComputedRef<string>;
78
+ /**
79
+ * 输入框提示标签
80
+ */
81
+ textBoxTitle: ComputedRef<string>;
82
+ /**
83
+ * 更新输入框的值并触发change事件
84
+ */
85
+ changeTextBoxValue: (newValue: string, showEmitChangeEmit: boolean) => void;
86
+ /**
87
+ * 输入框失去焦点事件响应函数
88
+ */
89
+ onBlurTextBox: ($event: Event) => void;
90
+ /**
91
+ * 鼠标点击输入框事件响应函数
92
+ */
93
+ onClickTextBox: ($event: Event) => void;
94
+ /**
95
+ * 输入框获得焦点事件响应函数
96
+ */
97
+ onFocusTextBox: ($event: Event) => void;
98
+ /**
99
+ * 输入框值变化事件
100
+ */
101
+ onInput: ($event: Event) => void;
102
+ /**
103
+ * 鼠标点击输入框事件响应函数
104
+ */
105
+ onMouseDownTextBox: ($event: MouseEvent) => void;
106
+ /**
107
+ * 键盘在输入框按下事件
108
+ */
109
+ onKeyDownTextBox: ($event: Event) => void;
110
+ /**
111
+ * 键盘在输入框抬起事件
112
+ */
113
+ onKeyUpTextBox: ($event: Event) => void;
114
+ /**
115
+ * 输入框值变化事件响应函数
116
+ */
117
+ onTextBoxValueChange: ($event: Event) => void;
118
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { UseButton } from './types';
17
+ import { Ref, SetupContext } from 'vue';
18
+ import { ButtonEditProps } from '../button-edit.props';
19
+ export declare function useButton(props: ButtonEditProps, context: SetupContext, shouldShowConent: Ref<boolean>): UseButton;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ComputedRef, Ref, SetupContext } from 'vue';
17
+ import { ButtonEditProps } from '../button-edit.props';
18
+ import { UseClear } from './types';
19
+ export declare function useClear(props: ButtonEditProps, context: SetupContext, modelValue: Ref<string>, hasFocusedTextBox: ComputedRef<boolean>, displayText: Ref<string>): UseClear;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Ref, SetupContext } from 'vue';
17
+ import { ButtonEditProps } from '../button-edit.props';
18
+ import { UseTextBox } from './types';
19
+ export declare function useTextBox(props: ButtonEditProps, context: SetupContext, modelValue: Ref<string>, displayText: Ref<string>): UseTextBox;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { App } from 'vue';
17
+ import CheckBoxGroup from './src/checkbox-group.component';
18
+ export * from './src/checkbox-group.props';
19
+ export { CheckBoxGroup };
20
+ declare const _default: {
21
+ install(app: App): void;
22
+ };
23
+ export default _default;
@@ -0,0 +1,148 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ id: StringConstructor;
3
+ name: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ enumData: {
8
+ type: {
9
+ (arrayLength: number): import("./composition/types").Checkbox[];
10
+ (...items: import("./composition/types").Checkbox[]): import("./composition/types").Checkbox[];
11
+ new (arrayLength: number): import("./composition/types").Checkbox[];
12
+ new (...items: import("./composition/types").Checkbox[]): import("./composition/types").Checkbox[];
13
+ isArray(arg: any): arg is any[];
14
+ readonly prototype: any[];
15
+ from<T>(arrayLike: ArrayLike<T>): T[];
16
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
17
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
18
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
19
+ of<T_4>(...items: T_4[]): T_4[];
20
+ readonly [Symbol.species]: ArrayConstructor;
21
+ };
22
+ default: never[];
23
+ };
24
+ textField: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ valueField: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ horizontal: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ disable: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ modelValue: (StringConstructor | {
41
+ (arrayLength: number): string[];
42
+ (...items: string[]): string[];
43
+ new (arrayLength: number): string[];
44
+ new (...items: string[]): string[];
45
+ isArray(arg: any): arg is any[];
46
+ readonly prototype: any[];
47
+ from<T>(arrayLike: ArrayLike<T>): T[];
48
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
49
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
50
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
51
+ of<T_4>(...items: T_4[]): T_4[];
52
+ readonly [Symbol.species]: ArrayConstructor;
53
+ })[];
54
+ tabIndex: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ separator: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ isStringValue: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ loadData: {
67
+ type: FunctionConstructor;
68
+ };
69
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "update:modelValue" | "changeValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
70
+ id: StringConstructor;
71
+ name: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ enumData: {
76
+ type: {
77
+ (arrayLength: number): import("./composition/types").Checkbox[];
78
+ (...items: import("./composition/types").Checkbox[]): import("./composition/types").Checkbox[];
79
+ new (arrayLength: number): import("./composition/types").Checkbox[];
80
+ new (...items: import("./composition/types").Checkbox[]): import("./composition/types").Checkbox[];
81
+ isArray(arg: any): arg is any[];
82
+ readonly prototype: any[];
83
+ from<T>(arrayLike: ArrayLike<T>): T[];
84
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
85
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
86
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
87
+ of<T_4>(...items: T_4[]): T_4[];
88
+ readonly [Symbol.species]: ArrayConstructor;
89
+ };
90
+ default: never[];
91
+ };
92
+ textField: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ valueField: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ horizontal: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ disable: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
108
+ modelValue: (StringConstructor | {
109
+ (arrayLength: number): string[];
110
+ (...items: string[]): string[];
111
+ new (arrayLength: number): string[];
112
+ new (...items: string[]): string[];
113
+ isArray(arg: any): arg is any[];
114
+ readonly prototype: any[];
115
+ from<T>(arrayLike: ArrayLike<T>): T[];
116
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
117
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
118
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
119
+ of<T_4>(...items: T_4[]): T_4[];
120
+ readonly [Symbol.species]: ArrayConstructor;
121
+ })[];
122
+ tabIndex: {
123
+ type: NumberConstructor;
124
+ default: number;
125
+ };
126
+ separator: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ isStringValue: {
131
+ type: BooleanConstructor;
132
+ default: boolean;
133
+ };
134
+ loadData: {
135
+ type: FunctionConstructor;
136
+ };
137
+ }>>, {
138
+ name: string;
139
+ disable: boolean;
140
+ tabIndex: number;
141
+ enumData: import("./composition/types").Checkbox[];
142
+ textField: string;
143
+ valueField: string;
144
+ horizontal: boolean;
145
+ separator: string;
146
+ isStringValue: boolean;
147
+ }>;
148
+ export default _default;
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ExtractPropTypes } from 'vue';
17
+ import { Checkbox } from './composition/types';
18
+ export declare const checkboxGroupProps: {
19
+ /**
20
+ * 组件标识
21
+ */
22
+ id: StringConstructor;
23
+ /**
24
+ * 组件名称
25
+ */
26
+ name: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ /**
31
+ * 单选组枚举数组
32
+ */
33
+ enumData: {
34
+ type: {
35
+ (arrayLength: number): Checkbox[];
36
+ (...items: Checkbox[]): Checkbox[];
37
+ new (arrayLength: number): Checkbox[];
38
+ new (...items: Checkbox[]): Checkbox[];
39
+ isArray(arg: any): arg is any[];
40
+ readonly prototype: any[];
41
+ from<T>(arrayLike: ArrayLike<T>): T[];
42
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
43
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
44
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
45
+ of<T_4>(...items: T_4[]): T_4[];
46
+ readonly [Symbol.species]: ArrayConstructor;
47
+ };
48
+ default: never[];
49
+ };
50
+ /**
51
+ * 枚举数组中展示文本的key值。
52
+ */
53
+ textField: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ /**
58
+ * 枚举数组中枚举值的key值。
59
+ */
60
+ valueField: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ /**
65
+ * 组件是否水平排列
66
+ */
67
+ horizontal: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ /**
72
+ * 禁用组件,不允许切换单选值
73
+ */
74
+ disable: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ /**
79
+ * 组件值,字符串或者数组
80
+ */
81
+ modelValue: (StringConstructor | {
82
+ (arrayLength: number): string[];
83
+ (...items: string[]): string[];
84
+ new (arrayLength: number): string[];
85
+ new (...items: string[]): string[];
86
+ isArray(arg: any): arg is any[];
87
+ readonly prototype: any[];
88
+ from<T>(arrayLike: ArrayLike<T>): T[];
89
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
90
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
91
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
92
+ of<T_4>(...items: T_4[]): T_4[];
93
+ readonly [Symbol.species]: ArrayConstructor;
94
+ })[];
95
+ /**
96
+ * 输入框Tab键索引
97
+ */
98
+ tabIndex: {
99
+ type: NumberConstructor;
100
+ default: number;
101
+ };
102
+ /**
103
+ * 分隔符,默认逗号
104
+ */
105
+ separator: {
106
+ type: StringConstructor;
107
+ default: string;
108
+ };
109
+ /**
110
+ * 值类型是否为字符串
111
+ */
112
+ isStringValue: {
113
+ type: BooleanConstructor;
114
+ default: boolean;
115
+ };
116
+ /**
117
+ * 异步获取枚举数组方法
118
+ */
119
+ loadData: {
120
+ type: FunctionConstructor;
121
+ };
122
+ };
123
+ export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ComputedRef, Ref } from 'vue';
17
+ export interface Checkbox {
18
+ [key: string]: any;
19
+ /**
20
+ * 枚举值
21
+ */
22
+ value: ComputedRef<any>;
23
+ /**
24
+ * 枚举展示文本
25
+ */
26
+ name: ComputedRef<any>;
27
+ }
28
+ export interface ChangeCheckbox {
29
+ enumData: Ref<Array<Checkbox>>;
30
+ /**
31
+ * 获取枚举值
32
+ */
33
+ getValue(item: Checkbox): any;
34
+ /**
35
+ * 获取枚举文本
36
+ */
37
+ getText(item: Checkbox): any;
38
+ /**
39
+ * 校验复选框是否为选中状态
40
+ */
41
+ checked(item: Checkbox): boolean;
42
+ /**
43
+ * 点击复选框事件
44
+ */
45
+ onClickCheckbox: (item: Checkbox, $event: Event) => void;
46
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ChangeCheckbox } from './types';
17
+ import { Ref, SetupContext } from 'vue';
18
+ import { CheckboxGroupProps } from '../checkbox-group.props';
19
+ export declare function useCheckboxGroup(props: CheckboxGroupProps, context: SetupContext, modelValue: Ref<string | Array<string> | undefined>): ChangeCheckbox;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { App } from 'vue';
17
+ import FComboList from './src/combo-list.component';
18
+ export * from './src/types';
19
+ export * from './src/combo-list.props';
20
+ export * from './src/composition';
21
+ export { FComboList };
22
+ declare const _default: {
23
+ install(app: App): void;
24
+ };
25
+ export default _default;