@farris/ui-vue 1.0.0-beta.3 → 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 (196) hide show
  1. package/accordion/package.json +3 -2
  2. package/avatar/package.json +3 -2
  3. package/button/package.json +3 -2
  4. package/button-edit/package.json +3 -2
  5. package/checkbox/package.json +3 -2
  6. package/combo-list/package.json +3 -2
  7. package/data-grid/index.esm.js +1 -2
  8. package/data-grid/index.umd.js +1 -1
  9. package/data-grid/package.json +3 -2
  10. package/date-picker/package.json +3 -2
  11. package/farris.all.esm.js +1 -2
  12. package/farris.all.umd.js +1 -1
  13. package/list-view/package.json +3 -2
  14. package/message-box/package.json +3 -2
  15. package/modal/package.json +3 -2
  16. package/notify/package.json +3 -2
  17. package/package.json +3 -2
  18. package/pagination/package.json +3 -2
  19. package/popover/package.json +3 -2
  20. package/radio-group/package.json +3 -2
  21. package/section/package.json +3 -2
  22. package/switch/package.json +3 -2
  23. package/tabs/package.json +3 -2
  24. package/text/package.json +3 -2
  25. package/tooltip/package.json +3 -2
  26. package/types/accordion/index.d.ts +25 -0
  27. package/types/accordion/src/accordion.component.d.ts +70 -0
  28. package/types/accordion/src/accordion.props.d.ts +50 -0
  29. package/types/accordion/src/components/accordion-item.component.d.ts +38 -0
  30. package/types/accordion/src/components/accordion-item.props.d.ts +34 -0
  31. package/types/avatar/index.d.ts +23 -0
  32. package/types/avatar/src/avatar.component.d.ts +109 -0
  33. package/types/avatar/src/avatar.props.d.ts +96 -0
  34. package/types/avatar/src/composition/types.d.ts +31 -0
  35. package/types/avatar/src/composition/use-image.d.ts +19 -0
  36. package/types/button/index.d.ts +24 -0
  37. package/types/button/src/button-group.component.d.ts +106 -0
  38. package/types/button/src/button-group.props.d.ts +106 -0
  39. package/types/button/src/button.component.d.ts +34 -0
  40. package/types/button/src/button.props.d.ts +47 -0
  41. package/types/button/src/composition/types-group.d.ts +24 -0
  42. package/types/button/src/composition/types.d.ts +24 -0
  43. package/types/button/src/composition/use-button-group.d.ts +19 -0
  44. package/types/button/src/composition/use-button.d.ts +19 -0
  45. package/types/button-edit/index.d.ts +23 -0
  46. package/types/button-edit/src/button-edit.props.d.ts +135 -0
  47. package/types/button-edit/src/composition/types.d.ts +118 -0
  48. package/types/button-edit/src/composition/use-button.d.ts +19 -0
  49. package/types/button-edit/src/composition/use-clear.d.ts +19 -0
  50. package/types/button-edit/src/composition/use-text-box.d.ts +19 -0
  51. package/types/checkbox/index.d.ts +23 -0
  52. package/types/checkbox/src/checkbox-group.component.d.ts +148 -0
  53. package/types/checkbox/src/checkbox-group.props.d.ts +123 -0
  54. package/types/checkbox/src/composition/types.d.ts +46 -0
  55. package/types/checkbox/src/composition/use-checkbox-group.d.ts +19 -0
  56. package/types/combo-list/index.d.ts +25 -0
  57. package/types/combo-list/src/combo-list.props.d.ts +290 -0
  58. package/types/combo-list/src/components/option.component.d.ts +39 -0
  59. package/types/combo-list/src/components/options.component.d.ts +10 -0
  60. package/types/combo-list/src/composition/index.d.ts +18 -0
  61. package/types/combo-list/src/composition/use-combo-list.d.ts +30 -0
  62. package/types/combo-list/src/composition/use-option.d.ts +19 -0
  63. package/types/combo-list/src/composition/use-options.d.ts +2 -0
  64. package/types/combo-list/src/composition/use-panel.d.ts +8 -0
  65. package/types/combo-list/src/const.d.ts +40 -0
  66. package/types/combo-list/src/types.d.ts +186 -0
  67. package/types/data-grid/index.d.ts +23 -0
  68. package/types/data-grid/src/components/data/data-area.component.d.ts +21 -0
  69. package/types/data-grid/src/components/editors/date-picker.component.d.ts +2 -0
  70. package/types/data-grid/src/components/editors/text-area-editor.component.d.ts +2 -0
  71. package/types/data-grid/src/components/editors/text-editor.component.d.ts +17 -0
  72. package/types/data-grid/src/components/header/data-grid-header.component.d.ts +22 -0
  73. package/types/data-grid/src/components/pagination/data-grid-pagination.component.d.ts +5 -0
  74. package/types/data-grid/src/components/scrollbar/horizontal-scrollbar.component.d.ts +21 -0
  75. package/types/data-grid/src/components/scrollbar/vertical-scrollbar.component.d.ts +21 -0
  76. package/types/data-grid/src/components/sidebar/data-grid-sidebar.component.d.ts +21 -0
  77. package/types/data-grid/src/components/summary/data-grid-summary.component.d.ts +5 -0
  78. package/types/data-grid/src/composition/types.d.ts +175 -0
  79. package/types/data-grid/src/composition/use-column.d.ts +17 -0
  80. package/types/data-grid/src/composition/use-data-view.d.ts +19 -0
  81. package/types/data-grid/src/composition/use-edit.d.ts +18 -0
  82. package/types/data-grid/src/composition/use-fit-column.d.ts +20 -0
  83. package/types/data-grid/src/composition/use-group-column.d.ts +22 -0
  84. package/types/data-grid/src/composition/use-group-data.d.ts +3 -0
  85. package/types/data-grid/src/composition/use-positon-style.d.ts +20 -0
  86. package/types/data-grid/src/composition/use-resize.d.ts +20 -0
  87. package/types/data-grid/src/composition/use-row.d.ts +3 -0
  88. package/types/data-grid/src/composition/use-sidebar.d.ts +3 -0
  89. package/types/data-grid/src/composition/use-virtual-scroll.d.ts +20 -0
  90. package/types/data-grid/src/composition/use-visual-data.d.ts +19 -0
  91. package/types/data-grid/src/data-grid.component.d.ts +278 -0
  92. package/types/data-grid/src/data-grid.props.d.ts +650 -0
  93. package/types/date-picker/index.d.ts +28 -0
  94. package/types/date-picker/src/components/calendar/calendar.component.d.ts +166 -0
  95. package/types/date-picker/src/components/calendar/calendar.props.d.ts +94 -0
  96. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +138 -0
  97. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.props.d.ts +81 -0
  98. package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +626 -0
  99. package/types/date-picker/src/components/date-picker-container/date-picker-container.props.d.ts +306 -0
  100. package/types/date-picker/src/components/month/month.component.d.ts +86 -0
  101. package/types/date-picker/src/components/month/month.props.d.ts +57 -0
  102. package/types/date-picker/src/components/year/year.component.d.ts +86 -0
  103. package/types/date-picker/src/components/year/year.props.d.ts +57 -0
  104. package/types/date-picker/src/composition/types.d.ts +102 -0
  105. package/types/date-picker/src/composition/use-calendar.d.ts +2 -0
  106. package/types/date-picker/src/composition/use-compare.d.ts +2 -0
  107. package/types/date-picker/src/composition/use-date.d.ts +2 -0
  108. package/types/date-picker/src/composition/use-disable-date.d.ts +18 -0
  109. package/types/date-picker/src/composition/use-disable-month.d.ts +2 -0
  110. package/types/date-picker/src/composition/use-event.d.ts +45 -0
  111. package/types/date-picker/src/composition/use-mark.d.ts +2 -0
  112. package/types/date-picker/src/composition/use-month.d.ts +2 -0
  113. package/types/date-picker/src/composition/use-number.d.ts +2 -0
  114. package/types/date-picker/src/composition/use-year.d.ts +2 -0
  115. package/types/date-picker/src/date-picker.props.d.ts +168 -0
  116. package/types/date-picker/src/types/calendar.d.ts +30 -0
  117. package/types/date-picker/src/types/common.d.ts +42 -0
  118. package/types/date-picker/src/types/date-model.d.ts +38 -0
  119. package/types/date-picker/src/types/month.d.ts +48 -0
  120. package/types/date-picker/src/types/year.d.ts +24 -0
  121. package/types/index.d.ts +20 -0
  122. package/types/list-view/index.d.ts +23 -0
  123. package/types/list-view/src/components/list-view-checkbox.component.d.ts +32 -0
  124. package/types/list-view/src/components/list-view-checkbox.props.d.ts +31 -0
  125. package/types/list-view/src/list-view.props.d.ts +44 -0
  126. package/types/message-box/index.d.ts +24 -0
  127. package/types/message-box/src/composition/types.d.ts +18 -0
  128. package/types/message-box/src/composition/use-copy.d.ts +18 -0
  129. package/types/message-box/src/message-box.component.d.ts +72 -0
  130. package/types/message-box/src/message-box.props.d.ts +52 -0
  131. package/types/modal/index.d.ts +23 -0
  132. package/types/modal/src/modal.component.d.ts +104 -0
  133. package/types/modal/src/modal.props.d.ts +72 -0
  134. package/types/notify/index.d.ts +26 -0
  135. package/types/notify/src/components/toast.component.d.ts +21 -0
  136. package/types/notify/src/components/toast.props.d.ts +27 -0
  137. package/types/notify/src/notify.props.d.ts +99 -0
  138. package/types/number-range/index.d.ts +23 -0
  139. package/types/number-range/src/composition/types.d.ts +52 -0
  140. package/types/number-range/src/composition/use-data.d.ts +19 -0
  141. package/types/number-range/src/composition/use-util.d.ts +19 -0
  142. package/types/number-range/src/number-range.component.d.ts +247 -0
  143. package/types/number-range/src/number-range.props.d.ts +216 -0
  144. package/types/number-spinner/index.d.ts +23 -0
  145. package/types/number-spinner/src/composition/types.d.ts +52 -0
  146. package/types/number-spinner/src/composition/use-data.d.ts +19 -0
  147. package/types/number-spinner/src/composition/use-util.d.ts +19 -0
  148. package/types/number-spinner/src/number-spinner.component.d.ts +202 -0
  149. package/types/number-spinner/src/number-spinner.props.d.ts +181 -0
  150. package/types/overlay/src/overlay.component.d.ts +20 -0
  151. package/types/overlay/src/overlay.props.d.ts +26 -0
  152. package/types/pagination/index.d.ts +23 -0
  153. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +19 -0
  154. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +20 -0
  155. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +20 -0
  156. package/types/pagination/src/components/pages/page-info.component.d.ts +19 -0
  157. package/types/pagination/src/components/pages/page-list.component.d.ts +19 -0
  158. package/types/pagination/src/components/pages/page-number.component.d.ts +20 -0
  159. package/types/pagination/src/composition/types.d.ts +24 -0
  160. package/types/pagination/src/composition/use-pages.d.ts +18 -0
  161. package/types/pagination/src/pagination.components.d.ts +41 -0
  162. package/types/pagination/src/pagination.props.d.ts +36 -0
  163. package/types/popover/index.d.ts +24 -0
  164. package/types/popover/src/popover.component.d.ts +26 -0
  165. package/types/popover/src/popover.directive.d.ts +5 -0
  166. package/types/popover/src/popover.props.d.ts +30 -0
  167. package/types/radio-group/index.d.ts +23 -0
  168. package/types/radio-group/src/composition/change-radio.d.ts +19 -0
  169. package/types/radio-group/src/composition/types.d.ts +42 -0
  170. package/types/radio-group/src/radio-group.component.d.ts +91 -0
  171. package/types/radio-group/src/radio-group.props.d.ts +87 -0
  172. package/types/section/index.d.ts +23 -0
  173. package/types/section/src/section.component.d.ts +187 -0
  174. package/types/section/src/section.props.d.ts +117 -0
  175. package/types/switch/index.d.ts +23 -0
  176. package/types/switch/src/switch.component.d.ts +66 -0
  177. package/types/switch/src/switch.props.d.ts +52 -0
  178. package/types/tabs/index.d.ts +25 -0
  179. package/types/tabs/src/components/tab-page.component.d.ts +101 -0
  180. package/types/tabs/src/components/tab-page.props.d.ts +63 -0
  181. package/types/tabs/src/composition/types.d.ts +35 -0
  182. package/types/tabs/src/composition/use-tabs.d.ts +18 -0
  183. package/types/tabs/src/tabs.component.d.ts +149 -0
  184. package/types/tabs/src/tabs.props.d.ts +86 -0
  185. package/types/text/index.d.ts +23 -0
  186. package/types/text/src/text.component.d.ts +14 -0
  187. package/types/text/src/text.props.d.ts +26 -0
  188. package/types/tooltip/index.d.ts +24 -0
  189. package/types/tooltip/src/composition/types.d.ts +45 -0
  190. package/types/tooltip/src/composition/use-adjust-placement.d.ts +20 -0
  191. package/types/tooltip/src/composition/use-adjust-position.d.ts +6 -0
  192. package/types/tooltip/src/composition/use-calculate-position.d.ts +21 -0
  193. package/types/tooltip/src/composition/use-relative.d.ts +19 -0
  194. package/types/tooltip/src/composition/use-tooltip-position.d.ts +22 -0
  195. package/types/tooltip/src/tooltip.component.d.ts +56 -0
  196. package/types/tooltip/src/tooltip.props.d.ts +45 -0
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "list-view",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/list-view/index.d.ts"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "message-box",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/message-box/index.d.ts"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "modal",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/modal/index.d.ts"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "notify",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/notify/index.d.ts"
7
8
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@farris/ui-vue",
3
3
  "private": false,
4
- "version": "1.0.0-beta.3",
4
+ "version": "1.0.0-beta.4",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Farris Vue, a Farris Design based Vue3 component library.",
7
7
  "keywords": [
@@ -27,5 +27,6 @@
27
27
  "bignumber.js": "^9.1.1",
28
28
  "lodash": "^4.17.21",
29
29
  "lodash-es": "^4.17.20"
30
- }
30
+ },
31
+ "types": "./types/index.d.ts"
31
32
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "pagination",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/pagination/index.d.ts"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "popover",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/popover/index.d.ts"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "radio-group",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/radio-group/index.d.ts"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "section",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/section/index.d.ts"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "switch",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/switch/index.d.ts"
7
8
  }
package/tabs/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "tabs",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/tabs/index.d.ts"
7
8
  }
package/text/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "text",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/text/index.d.ts"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "tooltip",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
- "style": "style.css"
6
+ "style": "style.css",
7
+ "types": "../types/tooltip/index.d.ts"
7
8
  }
@@ -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 Accordion from './src/accordion.component';
18
+ import AccordionItem from './src/components/accordion-item.component';
19
+ export * from './src/accordion.props';
20
+ export * from './src/components/accordion-item.props';
21
+ export { Accordion, AccordionItem };
22
+ declare const _default: {
23
+ install(app: App): void;
24
+ };
25
+ export default _default;
@@ -0,0 +1,70 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ customClass: {
3
+ type: {
4
+ (arrayLength: number): string[];
5
+ (...items: string[]): string[];
6
+ new (arrayLength: number): string[];
7
+ new (...items: string[]): string[];
8
+ isArray(arg: any): arg is any[];
9
+ readonly prototype: any[];
10
+ from<T>(arrayLike: ArrayLike<T>): T[];
11
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
12
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
13
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
14
+ of<T_4>(...items: T_4[]): T_4[];
15
+ readonly [Symbol.species]: ArrayConstructor;
16
+ };
17
+ default: never[];
18
+ };
19
+ height: {
20
+ type: NumberConstructor;
21
+ };
22
+ width: {
23
+ type: NumberConstructor;
24
+ };
25
+ enableFold: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ expanded: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
+ customClass: {
35
+ type: {
36
+ (arrayLength: number): string[];
37
+ (...items: string[]): string[];
38
+ new (arrayLength: number): string[];
39
+ new (...items: string[]): string[];
40
+ isArray(arg: any): arg is any[];
41
+ readonly prototype: any[];
42
+ from<T>(arrayLike: ArrayLike<T>): T[];
43
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
44
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
45
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
46
+ of<T_4>(...items: T_4[]): T_4[];
47
+ readonly [Symbol.species]: ArrayConstructor;
48
+ };
49
+ default: never[];
50
+ };
51
+ height: {
52
+ type: NumberConstructor;
53
+ };
54
+ width: {
55
+ type: NumberConstructor;
56
+ };
57
+ enableFold: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ expanded: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ }>>, {
66
+ customClass: string[];
67
+ enableFold: boolean;
68
+ expanded: boolean;
69
+ }>;
70
+ export default _default;
@@ -0,0 +1,50 @@
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
+ export declare const accordionProps: {
18
+ customClass: {
19
+ type: {
20
+ (arrayLength: number): string[];
21
+ (...items: string[]): string[];
22
+ new (arrayLength: number): string[];
23
+ new (...items: string[]): string[];
24
+ isArray(arg: any): arg is any[];
25
+ readonly prototype: any[];
26
+ from<T>(arrayLike: ArrayLike<T>): T[];
27
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
28
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
29
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
30
+ of<T_4>(...items: T_4[]): T_4[];
31
+ readonly [Symbol.species]: ArrayConstructor;
32
+ };
33
+ default: never[];
34
+ };
35
+ height: {
36
+ type: NumberConstructor;
37
+ };
38
+ width: {
39
+ type: NumberConstructor;
40
+ };
41
+ enableFold: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ expanded: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ };
50
+ export type AccordionProps = ExtractPropTypes<typeof accordionProps>;
@@ -0,0 +1,38 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ width: {
3
+ type: NumberConstructor;
4
+ };
5
+ height: {
6
+ type: NumberConstructor;
7
+ default: number;
8
+ };
9
+ title: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ disable: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ width: {
19
+ type: NumberConstructor;
20
+ };
21
+ height: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ title: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ disable: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ }>>, {
34
+ height: number;
35
+ title: string;
36
+ disable: boolean;
37
+ }>;
38
+ export default _default;
@@ -0,0 +1,34 @@
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
+ export declare const accordionItemProps: {
18
+ width: {
19
+ type: NumberConstructor;
20
+ };
21
+ height: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ title: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ disable: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ };
34
+ export type AccordionItemProps = ExtractPropTypes<typeof accordionItemProps>;
@@ -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 Avatar from './src/avatar.component';
18
+ export * from './src/avatar.props';
19
+ export { Avatar };
20
+ declare const _default: {
21
+ install(app: App): void;
22
+ };
23
+ export default _default;
@@ -0,0 +1,109 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ avatarWidth: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ avatarHeight: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ cover: {
11
+ type: StringConstructor;
12
+ };
13
+ readonly: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ shape: {
18
+ type: import("vue").PropType<"circle" | "square">;
19
+ default: string;
20
+ };
21
+ maxSize: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ modelValue: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ tile: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ type: {
34
+ type: {
35
+ (arrayLength: number): string[];
36
+ (...items: string[]): string[];
37
+ new (arrayLength: number): string[];
38
+ new (...items: string[]): string[];
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
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
51
+ avatarWidth: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ avatarHeight: {
56
+ type: NumberConstructor;
57
+ default: number;
58
+ };
59
+ cover: {
60
+ type: StringConstructor;
61
+ };
62
+ readonly: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ shape: {
67
+ type: import("vue").PropType<"circle" | "square">;
68
+ default: string;
69
+ };
70
+ maxSize: {
71
+ type: NumberConstructor;
72
+ default: number;
73
+ };
74
+ modelValue: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ tile: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ type: {
83
+ type: {
84
+ (arrayLength: number): string[];
85
+ (...items: string[]): string[];
86
+ new (arrayLength: number): string[];
87
+ new (...items: string[]): string[];
88
+ isArray(arg: any): arg is any[];
89
+ readonly prototype: any[];
90
+ from<T>(arrayLike: ArrayLike<T>): T[];
91
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
92
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
93
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
94
+ of<T_4>(...items: T_4[]): T_4[];
95
+ readonly [Symbol.species]: ArrayConstructor;
96
+ };
97
+ default: never[];
98
+ };
99
+ }>>, {
100
+ type: string[];
101
+ avatarWidth: number;
102
+ avatarHeight: number;
103
+ readonly: boolean;
104
+ shape: "circle" | "square";
105
+ maxSize: number;
106
+ modelValue: string;
107
+ tile: string;
108
+ }>;
109
+ export default _default;
@@ -0,0 +1,96 @@
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, PropType } from 'vue';
17
+ type AvatarShap = 'square' | 'circle';
18
+ export declare const avatarProps: {
19
+ /**
20
+ * 头像宽度
21
+ */
22
+ avatarWidth: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ /**
27
+ * 头像高度
28
+ */
29
+ avatarHeight: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ /**
34
+ * 组件标识
35
+ */
36
+ cover: {
37
+ type: StringConstructor;
38
+ };
39
+ /**
40
+ * 只读
41
+ */
42
+ readonly: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ /**
47
+ * 头像形状
48
+ */
49
+ shape: {
50
+ type: PropType<AvatarShap>;
51
+ default: string;
52
+ };
53
+ /**
54
+ * 头像最大尺寸, 单位MB
55
+ */
56
+ maxSize: {
57
+ type: NumberConstructor;
58
+ default: number;
59
+ };
60
+ /**
61
+ * 组件值
62
+ */
63
+ modelValue: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ /**
68
+ * 头像标题
69
+ */
70
+ tile: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ /**
75
+ * 支持的头像类型
76
+ */
77
+ type: {
78
+ type: {
79
+ (arrayLength: number): string[];
80
+ (...items: string[]): string[];
81
+ new (arrayLength: number): string[];
82
+ new (...items: string[]): string[];
83
+ isArray(arg: any): arg is any[];
84
+ readonly prototype: any[];
85
+ from<T>(arrayLike: ArrayLike<T>): T[];
86
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
87
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
88
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
89
+ of<T_4>(...items: T_4[]): T_4[];
90
+ readonly [Symbol.species]: ArrayConstructor;
91
+ };
92
+ default: never[];
93
+ };
94
+ };
95
+ export type AvatarProps = ExtractPropTypes<typeof avatarProps>;
96
+ export {};
@@ -0,0 +1,31 @@
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 } from 'vue';
17
+ export interface UseImage {
18
+ acceptTypes: ComputedRef<string>;
19
+ imageSource: ComputedRef<string>;
20
+ imageTitle: ComputedRef<string>;
21
+ onClickImage: () => void;
22
+ }
23
+ export interface ImageFile {
24
+ size: number;
25
+ name: string;
26
+ type: string;
27
+ lastModified?: string;
28
+ lastModifiedDate?: Date;
29
+ state?: string;
30
+ base64?: string;
31
+ }
@@ -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 { AvatarProps } from '../avatar.props';
18
+ import { UseImage } from './types';
19
+ export declare function useImage(props: AvatarProps, context: SetupContext, fileInput: any, modelValue: Ref<string>): UseImage;