yc-design-vue 2.1.8 → 2.2.0

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 (307) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/dist/style.css +1 -1
  3. package/es/Alert/index.vue.js +2 -2
  4. package/es/Avatar/Avatar.vue.d.ts +1 -1
  5. package/es/Avatar/Avatar.vue.js +1 -1
  6. package/es/Avatar/index.d.ts +3 -3
  7. package/es/BackTop/index.vue.js +1 -1
  8. package/es/Badge/index.d.ts +3 -3
  9. package/es/Badge/index.vue.d.ts +1 -1
  10. package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  11. package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  12. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +2 -2
  13. package/es/Button/Button.vue.d.ts +2 -2
  14. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  15. package/es/Button/index.d.ts +9 -9
  16. package/es/Calendar/Calendar.vue.js +2 -2
  17. package/es/Card/Card.vue.d.ts +1 -1
  18. package/es/Card/index.d.ts +3 -3
  19. package/es/Carousel/CarouselArrow.vue.js +1 -1
  20. package/es/Cascader/Cascader.vue.d.ts +12 -44
  21. package/es/Cascader/CascaderIcon.vue.js +2 -2
  22. package/es/Cascader/CascaderOption.vue.js +1 -1
  23. package/es/Cascader/index.d.ts +6 -22
  24. package/es/Checkbox/Checkbox.vue.js +2 -2
  25. package/es/Collapse/CollapseItem.vue.js +2 -2
  26. package/es/ColorPicker/ColorInput.vue.js +73 -69
  27. package/es/ColorPicker/index.css +1 -1
  28. package/es/Drawer/Drawer.vue.js +2 -2
  29. package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
  30. package/es/Dropdown/DropdownButton.vue.js +1 -1
  31. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  32. package/es/Dropdown/index.d.ts +3 -3
  33. package/es/Empty/index.vue.js +1 -1
  34. package/es/Image/Image.vue.js +1 -1
  35. package/es/Image/ImagePreview.vue.js +1 -1
  36. package/es/Image/ImagePreviewArrow.vue.js +1 -1
  37. package/es/Image/ImagePreviewToolbar.vue.js +1 -1
  38. package/es/Input/Input.vue.d.ts +2 -8
  39. package/es/Input/Input.vue.js +26 -48
  40. package/es/Input/InputGroup.vue.d.ts +17 -0
  41. package/es/Input/InputGroup.vue.js +18 -0
  42. package/es/Input/InputGroup.vue3.js +5 -0
  43. package/es/Input/InputPassword.vue.d.ts +309 -0
  44. package/es/Input/InputPassword.vue.js +122 -0
  45. package/es/Input/InputPassword.vue2.js +4 -0
  46. package/es/Input/InputSearch.vue.d.ts +310 -0
  47. package/es/Input/InputSearch.vue.js +133 -0
  48. package/es/Input/InputSearch.vue2.js +4 -0
  49. package/es/Input/hooks/useLimitedInput.d.ts +2 -0
  50. package/es/Input/hooks/useLimitedInput.js +2 -0
  51. package/es/Input/index.css +1 -1
  52. package/es/Input/index.d.ts +439 -22
  53. package/es/Input/index.js +13 -0
  54. package/es/Input/type.d.ts +24 -6
  55. package/es/InputNumber/InputNumber.vue.d.ts +12 -44
  56. package/es/InputNumber/InputOperaBtn.vue.js +1 -1
  57. package/es/InputNumber/index.d.ts +6 -22
  58. package/es/InputTag/index.vue.js +2 -2
  59. package/es/Layout/LayoutSider.vue.js +1 -1
  60. package/es/Link/index.d.ts +3 -3
  61. package/es/Link/index.vue.d.ts +1 -1
  62. package/es/Link/index.vue.js +1 -1
  63. package/es/Menu/Menu.vue.js +1 -1
  64. package/es/Menu/MenuEllipsis.vue.js +1 -1
  65. package/es/Menu/SubMenu.vue.js +1 -1
  66. package/es/Message/Message.vue.js +2 -2
  67. package/es/Modal/Modal.vue.js +2 -2
  68. package/es/Notification/Notification.vue.js +2 -2
  69. package/es/PageHeader/index.vue.js +2 -2
  70. package/es/Pagination/PaginationItem.vue.js +1 -1
  71. package/es/Progress/ProgressCircle.vue.js +1 -1
  72. package/es/Radio/Radio.vue.js +2 -2
  73. package/es/Rate/index.vue.js +1 -1
  74. package/es/ResizeBox/index.vue.js +1 -1
  75. package/es/Select/SelectIcon.vue.js +2 -2
  76. package/es/Spin/index.vue.js +1 -1
  77. package/es/Split/index.vue.js +1 -1
  78. package/es/Statistic/Statistic.vue.d.ts +1 -1
  79. package/es/Statistic/index.d.ts +3 -3
  80. package/es/Steps/Step.vue.d.ts +1 -1
  81. package/es/Steps/Step.vue.js +1 -1
  82. package/es/Steps/Steps.vue.d.ts +1 -1
  83. package/es/Steps/index.d.ts +6 -6
  84. package/es/Tabs/TabButton.vue.js +2 -2
  85. package/es/Tabs/Tabs.vue.js +1 -1
  86. package/es/Tag/index.vue.js +2 -2
  87. package/es/Textarea/index.vue.js +2 -2
  88. package/es/TimePicker/TimePicker.vue.js +2 -2
  89. package/es/TimePicker/TimePickerPanel.vue.js +2 -1
  90. package/es/Transfer/Transfer.vue.js +1 -1
  91. package/es/Transfer/TransferPanel.vue.js +3 -3
  92. package/es/Trigger/index.vue.js +1 -1
  93. package/es/Typography/TypographyBase.vue.d.ts +12 -44
  94. package/es/Typography/TypographyBase.vue.js +3 -3
  95. package/es/Upload/UploadButton.vue.js +1 -1
  96. package/es/Upload/UploadDrag.vue.js +1 -1
  97. package/es/Upload/UploadFileList.vue2.js +2 -2
  98. package/es/Upload/UploadPictureCard.vue2.js +2 -2
  99. package/es/_shared/components/IconButton/{index.vue2.js → index.vue.js} +1 -1
  100. package/es/_shared/components/IconButton/index.vue3.js +2 -2
  101. package/es/_shared/constants/index.js +1 -1
  102. package/es/_shared/icons/IconArrowDown.vue.js +1 -1
  103. package/es/_shared/icons/IconArrowRight.vue.js +1 -1
  104. package/es/_shared/icons/IconCheck.vue.js +1 -1
  105. package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  106. package/es/_shared/icons/IconClose.vue.js +1 -1
  107. package/es/_shared/icons/IconCopy.vue.js +28 -1
  108. package/es/_shared/icons/IconCopy.vue2.js +1 -28
  109. package/es/_shared/icons/IconDelete.vue2.js +1 -1
  110. package/es/_shared/icons/IconDragDot.vue.js +1 -1
  111. package/es/_shared/icons/IconEdit.vue.js +28 -1
  112. package/es/_shared/icons/IconEdit.vue2.js +1 -28
  113. package/es/_shared/icons/IconEmpty.vue.js +1 -1
  114. package/es/_shared/icons/IconError.vue.js +1 -1
  115. package/es/_shared/icons/IconExclamation.vue2.js +1 -1
  116. package/es/_shared/icons/IconEyeClose.vue.js +32 -1
  117. package/es/_shared/icons/IconEyeClose.vue2.js +1 -32
  118. package/es/_shared/icons/IconEyeOpen.vue.js +29 -1
  119. package/es/_shared/icons/IconEyeOpen.vue2.js +1 -29
  120. package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
  121. package/es/_shared/icons/IconFile.vue2.js +1 -1
  122. package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
  123. package/es/_shared/icons/IconImageClose.vue.js +1 -1
  124. package/es/_shared/icons/IconInfo.vue.js +1 -1
  125. package/es/_shared/icons/IconInfoLine.vue.js +1 -1
  126. package/es/_shared/icons/IconLink.vue.js +1 -1
  127. package/es/_shared/icons/IconLoading.vue.js +1 -1
  128. package/es/_shared/icons/IconMenuFold.vue.js +1 -1
  129. package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
  130. package/es/_shared/icons/IconMinus.vue2.js +1 -1
  131. package/es/_shared/icons/IconMore.vue.js +1 -1
  132. package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
  133. package/es/_shared/icons/IconPlus.vue.js +1 -1
  134. package/es/_shared/icons/IconRight.vue.js +1 -1
  135. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
  136. package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
  137. package/es/_shared/icons/IconSearch.vue.js +28 -1
  138. package/es/_shared/icons/IconSearch.vue2.js +1 -28
  139. package/es/_shared/icons/IconSeparator.vue.js +28 -1
  140. package/es/_shared/icons/IconSeparator.vue2.js +1 -28
  141. package/es/_shared/icons/IconStar.vue.js +1 -1
  142. package/es/_shared/icons/IconSuccess.vue.js +1 -1
  143. package/es/_shared/icons/IconTime.vue.js +1 -1
  144. package/es/_shared/icons/IconToTop.vue.js +1 -1
  145. package/es/_shared/icons/IconUpload.vue2.js +1 -1
  146. package/es/_shared/icons/IconWarning.vue.js +1 -1
  147. package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
  148. package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
  149. package/es/index.d.ts +9 -9
  150. package/es/index.js +7 -0
  151. package/es/style.css +1 -1
  152. package/lib/Alert/index.vue.js +1 -1
  153. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  154. package/lib/Avatar/Avatar.vue.js +1 -1
  155. package/lib/Avatar/index.d.ts +3 -3
  156. package/lib/BackTop/index.vue.js +1 -1
  157. package/lib/Badge/index.d.ts +3 -3
  158. package/lib/Badge/index.vue.d.ts +1 -1
  159. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  160. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  161. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  162. package/lib/Button/Button.vue.d.ts +2 -2
  163. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  164. package/lib/Button/index.d.ts +9 -9
  165. package/lib/Calendar/Calendar.vue.js +1 -1
  166. package/lib/Card/Card.vue.d.ts +1 -1
  167. package/lib/Card/index.d.ts +3 -3
  168. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  169. package/lib/Cascader/Cascader.vue.d.ts +12 -44
  170. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  171. package/lib/Cascader/CascaderOption.vue.js +1 -1
  172. package/lib/Cascader/index.d.ts +6 -22
  173. package/lib/Checkbox/Checkbox.vue.js +1 -1
  174. package/lib/Collapse/CollapseItem.vue.js +1 -1
  175. package/lib/ColorPicker/ColorInput.vue.js +1 -1
  176. package/lib/ColorPicker/index.css +1 -1
  177. package/lib/Drawer/Drawer.vue.js +1 -1
  178. package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
  179. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  180. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  181. package/lib/Dropdown/index.d.ts +3 -3
  182. package/lib/Empty/index.vue.js +1 -1
  183. package/lib/Image/Image.vue.js +1 -1
  184. package/lib/Image/ImagePreview.vue.js +1 -1
  185. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  186. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  187. package/lib/Input/Input.vue.d.ts +2 -8
  188. package/lib/Input/Input.vue.js +1 -1
  189. package/lib/Input/InputGroup.vue.d.ts +17 -0
  190. package/lib/Input/InputGroup.vue.js +1 -0
  191. package/lib/Input/{InputSuffix.vue3.js → InputGroup.vue3.js} +1 -1
  192. package/lib/Input/InputPassword.vue.d.ts +309 -0
  193. package/lib/Input/InputPassword.vue.js +1 -0
  194. package/lib/Input/InputPassword.vue2.js +1 -0
  195. package/lib/Input/InputSearch.vue.d.ts +310 -0
  196. package/lib/Input/InputSearch.vue.js +1 -0
  197. package/lib/Input/InputSearch.vue2.js +1 -0
  198. package/lib/Input/hooks/useLimitedInput.d.ts +2 -0
  199. package/lib/Input/hooks/useLimitedInput.js +1 -1
  200. package/lib/Input/index.css +1 -1
  201. package/lib/Input/index.d.ts +439 -22
  202. package/lib/Input/index.js +1 -1
  203. package/lib/Input/type.d.ts +24 -6
  204. package/lib/InputNumber/InputNumber.vue.d.ts +12 -44
  205. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  206. package/lib/InputNumber/index.d.ts +6 -22
  207. package/lib/InputTag/index.vue.js +1 -1
  208. package/lib/Layout/LayoutSider.vue.js +1 -1
  209. package/lib/Link/index.d.ts +3 -3
  210. package/lib/Link/index.vue.d.ts +1 -1
  211. package/lib/Link/index.vue.js +1 -1
  212. package/lib/Menu/Menu.vue.js +1 -1
  213. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  214. package/lib/Menu/SubMenu.vue.js +1 -1
  215. package/lib/Message/Message.vue.js +1 -1
  216. package/lib/Modal/Modal.vue.js +1 -1
  217. package/lib/Notification/Notification.vue.js +1 -1
  218. package/lib/PageHeader/index.vue.js +1 -1
  219. package/lib/Pagination/PaginationItem.vue.js +1 -1
  220. package/lib/Progress/ProgressCircle.vue.js +1 -1
  221. package/lib/Radio/Radio.vue.js +1 -1
  222. package/lib/Rate/index.vue.js +1 -1
  223. package/lib/ResizeBox/index.vue.js +1 -1
  224. package/lib/Select/SelectIcon.vue.js +1 -1
  225. package/lib/Spin/index.vue.js +1 -1
  226. package/lib/Split/index.vue.js +1 -1
  227. package/lib/Statistic/Statistic.vue.d.ts +1 -1
  228. package/lib/Statistic/index.d.ts +3 -3
  229. package/lib/Steps/Step.vue.d.ts +1 -1
  230. package/lib/Steps/Step.vue.js +1 -1
  231. package/lib/Steps/Steps.vue.d.ts +1 -1
  232. package/lib/Steps/index.d.ts +6 -6
  233. package/lib/Tabs/TabButton.vue.js +1 -1
  234. package/lib/Tabs/Tabs.vue.js +1 -1
  235. package/lib/Tag/index.vue.js +1 -1
  236. package/lib/Textarea/index.vue.js +1 -1
  237. package/lib/TimePicker/TimePicker.vue.js +1 -1
  238. package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
  239. package/lib/Transfer/Transfer.vue.js +1 -1
  240. package/lib/Transfer/TransferPanel.vue.js +1 -1
  241. package/lib/Trigger/index.vue.js +1 -1
  242. package/lib/Typography/TypographyBase.vue.d.ts +12 -44
  243. package/lib/Typography/TypographyBase.vue.js +1 -1
  244. package/lib/Upload/UploadButton.vue.js +1 -1
  245. package/lib/Upload/UploadDrag.vue.js +1 -1
  246. package/lib/Upload/UploadFileList.vue2.js +1 -1
  247. package/lib/Upload/UploadPictureCard.vue2.js +1 -1
  248. package/lib/_shared/components/IconButton/index.vue.js +1 -0
  249. package/lib/_shared/components/IconButton/index.vue3.js +1 -1
  250. package/lib/_shared/constants/index.js +1 -1
  251. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  252. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  253. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  254. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  255. package/lib/_shared/icons/IconClose.vue.js +1 -1
  256. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  257. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  258. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  259. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  260. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  261. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  262. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  263. package/lib/_shared/icons/IconError.vue.js +1 -1
  264. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  265. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  266. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  267. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  268. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  269. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  270. package/lib/_shared/icons/IconFile.vue2.js +1 -1
  271. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  272. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  273. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  274. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  275. package/lib/_shared/icons/IconLink.vue.js +1 -1
  276. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  277. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  278. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  279. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  280. package/lib/_shared/icons/IconMore.vue.js +1 -1
  281. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  282. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  283. package/lib/_shared/icons/IconRight.vue.js +1 -1
  284. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  285. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  286. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  287. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  288. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  289. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  290. package/lib/_shared/icons/IconStar.vue.js +1 -1
  291. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  292. package/lib/_shared/icons/IconTime.vue.js +1 -1
  293. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  294. package/lib/_shared/icons/IconUpload.vue2.js +1 -1
  295. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  296. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  297. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  298. package/lib/index.d.ts +9 -9
  299. package/lib/index.js +1 -1
  300. package/lib/style.css +1 -1
  301. package/package.json +1 -1
  302. package/es/Input/InputSuffix.vue.d.ts +0 -31
  303. package/es/Input/InputSuffix.vue.js +0 -58
  304. package/es/Input/InputSuffix.vue3.js +0 -5
  305. package/lib/Input/InputSuffix.vue.d.ts +0 -31
  306. package/lib/Input/InputSuffix.vue.js +0 -1
  307. package/lib/_shared/components/IconButton/index.vue2.js +0 -1
@@ -0,0 +1,309 @@
1
+ import { InputPasswordProps } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ prepend?(_: {}): any;
6
+ append?(_: {}): any;
7
+ prefix?(_: {}): any;
8
+ suffix?(_: {}): any;
9
+ };
10
+ refs: {
11
+ inputRef: ({
12
+ $: import('vue').ComponentInternalInstance;
13
+ $data: {};
14
+ $props: {
15
+ readonly modelValue?: string | undefined;
16
+ readonly defaultValue?: string | undefined;
17
+ readonly size?: import('..').Size | undefined;
18
+ readonly allowClear?: boolean | undefined;
19
+ readonly disabled?: boolean | undefined;
20
+ readonly readonly?: boolean | undefined;
21
+ readonly error?: boolean | undefined;
22
+ readonly placeholder?: string | undefined;
23
+ readonly maxLength?: import('./type').MaxLength | undefined;
24
+ readonly wordLength?: import('./type').WordLength | undefined;
25
+ readonly wordSlice?: import('./type').WordSlice | undefined;
26
+ readonly showWordLimit?: boolean | undefined;
27
+ readonly inputAttrs?: import('..').RecordType | undefined;
28
+ readonly showInput?: boolean | undefined;
29
+ readonly onChange?: ((value: string, ev: Event) => any) | undefined;
30
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
31
+ readonly onClear?: ((ev: MouseEvent) => any) | undefined;
32
+ readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
33
+ readonly onInput?: ((value: string, ev: Event) => any) | undefined;
34
+ readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
35
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
36
+ readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
37
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
38
+ $attrs: {
39
+ [x: string]: unknown;
40
+ };
41
+ $refs: {
42
+ [x: string]: unknown;
43
+ } & {
44
+ inputRef: HTMLInputElement;
45
+ };
46
+ $slots: Readonly<{
47
+ [name: string]: import('vue').Slot<any> | undefined;
48
+ }>;
49
+ $root: import('vue').ComponentPublicInstance | null;
50
+ $parent: import('vue').ComponentPublicInstance | null;
51
+ $host: Element | null;
52
+ $emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
53
+ $el: HTMLDivElement;
54
+ $options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
55
+ onChange?: ((value: string, ev: Event) => any) | undefined;
56
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
57
+ onClear?: ((ev: MouseEvent) => any) | undefined;
58
+ onBlur?: ((ev: FocusEvent) => any) | undefined;
59
+ onInput?: ((value: string, ev: Event) => any) | undefined;
60
+ onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
61
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
62
+ onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
63
+ }>, {
64
+ focus(): void;
65
+ blur(): void;
66
+ getInputRef(): HTMLInputElement;
67
+ setCursor?: () => void;
68
+ recordCursor?: () => void;
69
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
70
+ change: (value: string, ev: Event) => any;
71
+ focus: (ev: FocusEvent) => any;
72
+ clear: (ev: MouseEvent) => any;
73
+ blur: (ev: FocusEvent) => any;
74
+ input: (value: string, ev: Event) => any;
75
+ keydown: (ev: KeyboardEvent) => any;
76
+ "update:modelValue": (value: string) => any;
77
+ pressEnter: (ev: KeyboardEvent) => any;
78
+ }, string, {
79
+ error: boolean;
80
+ size: import('..').Size;
81
+ disabled: boolean;
82
+ placeholder: string;
83
+ modelValue: string;
84
+ defaultValue: string;
85
+ maxLength: import('./type').MaxLength;
86
+ showWordLimit: boolean;
87
+ allowClear: boolean;
88
+ readonly: boolean;
89
+ wordLength: import('./type').WordLength;
90
+ wordSlice: import('./type').WordSlice;
91
+ inputAttrs: import('..').RecordType;
92
+ showInput: boolean;
93
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
94
+ beforeCreate?: (() => void) | (() => void)[];
95
+ created?: (() => void) | (() => void)[];
96
+ beforeMount?: (() => void) | (() => void)[];
97
+ mounted?: (() => void) | (() => void)[];
98
+ beforeUpdate?: (() => void) | (() => void)[];
99
+ updated?: (() => void) | (() => void)[];
100
+ activated?: (() => void) | (() => void)[];
101
+ deactivated?: (() => void) | (() => void)[];
102
+ beforeDestroy?: (() => void) | (() => void)[];
103
+ beforeUnmount?: (() => void) | (() => void)[];
104
+ destroyed?: (() => void) | (() => void)[];
105
+ unmounted?: (() => void) | (() => void)[];
106
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
107
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
108
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
109
+ };
110
+ $forceUpdate: () => void;
111
+ $nextTick: typeof import('vue').nextTick;
112
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
113
+ } & Readonly<{
114
+ error: boolean;
115
+ size: import('..').Size;
116
+ disabled: boolean;
117
+ placeholder: string;
118
+ modelValue: string;
119
+ defaultValue: string;
120
+ maxLength: import('./type').MaxLength;
121
+ showWordLimit: boolean;
122
+ allowClear: boolean;
123
+ readonly: boolean;
124
+ wordLength: import('./type').WordLength;
125
+ wordSlice: import('./type').WordSlice;
126
+ inputAttrs: import('..').RecordType;
127
+ showInput: boolean;
128
+ }> & Omit<Readonly<import('./type').InputProps> & Readonly<{
129
+ onChange?: ((value: string, ev: Event) => any) | undefined;
130
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
131
+ onClear?: ((ev: MouseEvent) => any) | undefined;
132
+ onBlur?: ((ev: FocusEvent) => any) | undefined;
133
+ onInput?: ((value: string, ev: Event) => any) | undefined;
134
+ onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
135
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
136
+ onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
137
+ }>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
138
+ focus(): void;
139
+ blur(): void;
140
+ getInputRef(): HTMLInputElement;
141
+ setCursor?: () => void;
142
+ recordCursor?: () => void;
143
+ }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
144
+ $slots: any;
145
+ }) | null;
146
+ };
147
+ rootEl: HTMLDivElement;
148
+ };
149
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
150
+ declare const __VLS_component: import('vue').DefineComponent<InputPasswordProps, {
151
+ focus(): void;
152
+ blur(): void;
153
+ getInputRef(): HTMLInputElement;
154
+ setCursor?: () => void;
155
+ recordCursor?: () => void;
156
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
157
+ "update:visibility": (value: boolean) => any;
158
+ "visibility-change": (value: boolean) => any;
159
+ }, string, import('vue').PublicProps, Readonly<InputPasswordProps> & Readonly<{
160
+ "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
161
+ "onVisibility-change"?: ((value: boolean) => any) | undefined;
162
+ }>, {
163
+ visibility: boolean;
164
+ defaultVisibility: boolean;
165
+ invisibleButton: boolean;
166
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
167
+ inputRef: ({
168
+ $: import('vue').ComponentInternalInstance;
169
+ $data: {};
170
+ $props: {
171
+ readonly modelValue?: string | undefined;
172
+ readonly defaultValue?: string | undefined;
173
+ readonly size?: import('..').Size | undefined;
174
+ readonly allowClear?: boolean | undefined;
175
+ readonly disabled?: boolean | undefined;
176
+ readonly readonly?: boolean | undefined;
177
+ readonly error?: boolean | undefined;
178
+ readonly placeholder?: string | undefined;
179
+ readonly maxLength?: import('./type').MaxLength | undefined;
180
+ readonly wordLength?: import('./type').WordLength | undefined;
181
+ readonly wordSlice?: import('./type').WordSlice | undefined;
182
+ readonly showWordLimit?: boolean | undefined;
183
+ readonly inputAttrs?: import('..').RecordType | undefined;
184
+ readonly showInput?: boolean | undefined;
185
+ readonly onChange?: ((value: string, ev: Event) => any) | undefined;
186
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
187
+ readonly onClear?: ((ev: MouseEvent) => any) | undefined;
188
+ readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
189
+ readonly onInput?: ((value: string, ev: Event) => any) | undefined;
190
+ readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
191
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
192
+ readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
193
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
194
+ $attrs: {
195
+ [x: string]: unknown;
196
+ };
197
+ $refs: {
198
+ [x: string]: unknown;
199
+ } & {
200
+ inputRef: HTMLInputElement;
201
+ };
202
+ $slots: Readonly<{
203
+ [name: string]: import('vue').Slot<any> | undefined;
204
+ }>;
205
+ $root: import('vue').ComponentPublicInstance | null;
206
+ $parent: import('vue').ComponentPublicInstance | null;
207
+ $host: Element | null;
208
+ $emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
209
+ $el: HTMLDivElement;
210
+ $options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
211
+ onChange?: ((value: string, ev: Event) => any) | undefined;
212
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
213
+ onClear?: ((ev: MouseEvent) => any) | undefined;
214
+ onBlur?: ((ev: FocusEvent) => any) | undefined;
215
+ onInput?: ((value: string, ev: Event) => any) | undefined;
216
+ onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
217
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
218
+ onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
219
+ }>, {
220
+ focus(): void;
221
+ blur(): void;
222
+ getInputRef(): HTMLInputElement;
223
+ setCursor?: () => void;
224
+ recordCursor?: () => void;
225
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
226
+ change: (value: string, ev: Event) => any;
227
+ focus: (ev: FocusEvent) => any;
228
+ clear: (ev: MouseEvent) => any;
229
+ blur: (ev: FocusEvent) => any;
230
+ input: (value: string, ev: Event) => any;
231
+ keydown: (ev: KeyboardEvent) => any;
232
+ "update:modelValue": (value: string) => any;
233
+ pressEnter: (ev: KeyboardEvent) => any;
234
+ }, string, {
235
+ error: boolean;
236
+ size: import('..').Size;
237
+ disabled: boolean;
238
+ placeholder: string;
239
+ modelValue: string;
240
+ defaultValue: string;
241
+ maxLength: import('./type').MaxLength;
242
+ showWordLimit: boolean;
243
+ allowClear: boolean;
244
+ readonly: boolean;
245
+ wordLength: import('./type').WordLength;
246
+ wordSlice: import('./type').WordSlice;
247
+ inputAttrs: import('..').RecordType;
248
+ showInput: boolean;
249
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
250
+ beforeCreate?: (() => void) | (() => void)[];
251
+ created?: (() => void) | (() => void)[];
252
+ beforeMount?: (() => void) | (() => void)[];
253
+ mounted?: (() => void) | (() => void)[];
254
+ beforeUpdate?: (() => void) | (() => void)[];
255
+ updated?: (() => void) | (() => void)[];
256
+ activated?: (() => void) | (() => void)[];
257
+ deactivated?: (() => void) | (() => void)[];
258
+ beforeDestroy?: (() => void) | (() => void)[];
259
+ beforeUnmount?: (() => void) | (() => void)[];
260
+ destroyed?: (() => void) | (() => void)[];
261
+ unmounted?: (() => void) | (() => void)[];
262
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
263
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
264
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
265
+ };
266
+ $forceUpdate: () => void;
267
+ $nextTick: typeof import('vue').nextTick;
268
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
269
+ } & Readonly<{
270
+ error: boolean;
271
+ size: import('..').Size;
272
+ disabled: boolean;
273
+ placeholder: string;
274
+ modelValue: string;
275
+ defaultValue: string;
276
+ maxLength: import('./type').MaxLength;
277
+ showWordLimit: boolean;
278
+ allowClear: boolean;
279
+ readonly: boolean;
280
+ wordLength: import('./type').WordLength;
281
+ wordSlice: import('./type').WordSlice;
282
+ inputAttrs: import('..').RecordType;
283
+ showInput: boolean;
284
+ }> & Omit<Readonly<import('./type').InputProps> & Readonly<{
285
+ onChange?: ((value: string, ev: Event) => any) | undefined;
286
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
287
+ onClear?: ((ev: MouseEvent) => any) | undefined;
288
+ onBlur?: ((ev: FocusEvent) => any) | undefined;
289
+ onInput?: ((value: string, ev: Event) => any) | undefined;
290
+ onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
291
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
292
+ onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
293
+ }>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
294
+ focus(): void;
295
+ blur(): void;
296
+ getInputRef(): HTMLInputElement;
297
+ setCursor?: () => void;
298
+ recordCursor?: () => void;
299
+ }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
300
+ $slots: any;
301
+ }) | null;
302
+ }, HTMLDivElement>;
303
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
304
+ export default _default;
305
+ type __VLS_WithTemplateSlots<T, S> = T & {
306
+ new (): {
307
+ $slots: S;
308
+ };
309
+ };
@@ -0,0 +1,122 @@
1
+ import { defineComponent, toRefs, ref, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, createCommentVNode, renderSlot } from "vue";
2
+ import "../node_modules/b-tween/dist/b-tween.es.js";
3
+ import "../node_modules/dayjs/dayjs.min.js";
4
+ import "../node_modules/tinycolor2/esm/tinycolor.js";
5
+ import "../node_modules/dayjs/plugin/duration.js";
6
+ import "../node_modules/dayjs/plugin/toObject.js";
7
+ import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
+ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
+ import { sleep } from "../_shared/utils/dom.js";
10
+ import { useControlValue } from "../_shared/utils/hooks.js";
11
+ import "../_shared/utils/locale.js";
12
+ import "../_shared/utils/time.js";
13
+ import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
14
+ /* empty css */
15
+ /* empty css */
16
+ /* empty css */
17
+ import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue.js";
18
+ import _sfc_main$3 from "../_shared/icons/IconEyeOpen.vue.js";
19
+ import _sfc_main$1 from "./Input.vue.js";
20
+ /* empty css */
21
+ const _sfc_main = /* @__PURE__ */ defineComponent({
22
+ ...{
23
+ name: "InputPassword"
24
+ },
25
+ __name: "InputPassword",
26
+ props: {
27
+ visibility: { type: Boolean, default: void 0 },
28
+ defaultVisibility: { type: Boolean, default: false },
29
+ invisibleButton: { type: Boolean, default: true }
30
+ },
31
+ emits: ["update:visibility", "visibility-change"],
32
+ setup(__props, { expose: __expose, emit: __emit }) {
33
+ const props = __props;
34
+ const emits = __emit;
35
+ const { visibility, defaultVisibility } = toRefs(props);
36
+ const computedVisibility = useControlValue(
37
+ visibility,
38
+ defaultVisibility.value,
39
+ (val) => {
40
+ emits("update:visibility", val);
41
+ emits("visibility-change", val);
42
+ }
43
+ );
44
+ const inputRef = ref();
45
+ const handleClick = async () => {
46
+ var _a, _b, _c, _d;
47
+ (_b = (_a = inputRef.value) == null ? void 0 : _a.recordCursor) == null ? void 0 : _b.call(_a);
48
+ await sleep(0);
49
+ computedVisibility.value = !computedVisibility.value;
50
+ (_d = (_c = inputRef.value) == null ? void 0 : _c.setCursor) == null ? void 0 : _d.call(_c);
51
+ };
52
+ __expose({
53
+ focus() {
54
+ var _a;
55
+ (_a = inputRef.value) == null ? void 0 : _a.focus();
56
+ },
57
+ blur() {
58
+ var _a;
59
+ (_a = inputRef.value) == null ? void 0 : _a.blur();
60
+ },
61
+ getInputRef() {
62
+ var _a;
63
+ return (_a = inputRef.value) == null ? void 0 : _a.getInputRef();
64
+ }
65
+ });
66
+ return (_ctx, _cache) => {
67
+ return openBlock(), createBlock(_sfc_main$1, mergeProps(_ctx.$attrs, {
68
+ "input-attrs": {
69
+ type: unref(computedVisibility) ? "text" : "password"
70
+ },
71
+ ref_key: "inputRef",
72
+ ref: inputRef
73
+ }), createSlots({
74
+ extra: withCtx(() => [
75
+ _ctx.invisibleButton ? (openBlock(), createBlock(unref(_sfc_main$2), {
76
+ key: 0,
77
+ size: 14,
78
+ onClick: handleClick
79
+ }, {
80
+ default: withCtx(() => [
81
+ unref(computedVisibility) ? (openBlock(), createBlock(unref(_sfc_main$3), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$4), { key: 1 }))
82
+ ]),
83
+ _: 1
84
+ })) : createCommentVNode("", true)
85
+ ]),
86
+ _: 2
87
+ }, [
88
+ _ctx.$slots.prepend ? {
89
+ name: "prepend",
90
+ fn: withCtx(() => [
91
+ renderSlot(_ctx.$slots, "prepend")
92
+ ]),
93
+ key: "0"
94
+ } : void 0,
95
+ _ctx.$slots.append ? {
96
+ name: "append",
97
+ fn: withCtx(() => [
98
+ renderSlot(_ctx.$slots, "append")
99
+ ]),
100
+ key: "1"
101
+ } : void 0,
102
+ _ctx.$slots.prefix ? {
103
+ name: "prefix",
104
+ fn: withCtx(() => [
105
+ renderSlot(_ctx.$slots, "prefix")
106
+ ]),
107
+ key: "2"
108
+ } : void 0,
109
+ _ctx.$slots.suffix ? {
110
+ name: "suffix",
111
+ fn: withCtx(() => [
112
+ renderSlot(_ctx.$slots, "suffix")
113
+ ]),
114
+ key: "3"
115
+ } : void 0
116
+ ]), 1040, ["input-attrs"]);
117
+ };
118
+ }
119
+ });
120
+ export {
121
+ _sfc_main as default
122
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./InputPassword.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };