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
@@ -15,6 +15,8 @@ declare const _default: (params: {
15
15
  error: import('vue').WritableComputedRef<boolean, boolean>;
16
16
  disabled: Ref<boolean, boolean>;
17
17
  maxLength: import('vue').ComputedRef<number>;
18
+ setCursor: () => void;
19
+ recordCursor: () => void;
18
20
  handleInput: (e: Event) => Promise<void>;
19
21
  handleComposition: (e: CompositionEvent) => Promise<void> | undefined;
20
22
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../node_modules/b-tween/dist/b-tween.es.js"),require("../../node_modules/dayjs/dayjs.min.js"),require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../node_modules/dayjs/plugin/duration.js"),require("../../node_modules/dayjs/plugin/toObject.js"),require("../../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../../node_modules/dayjs/plugin/isSameOrBefore.js"),require("../../_shared/utils/dom.js");const u=require("../../_shared/utils/is.js"),l=require("../../_shared/utils/hooks.js");require("../../_shared/utils/locale.js"),require("../../_shared/utils/time.js");const r=require("./useCursor.js");exports.default=a=>{const{props:t,emits:o,inputRef:s}=a,{modelValue:i,defaultValue:n,disabled:d,readonly:v,allowClear:m,error:c,showWordLimit:p,maxLength:j}=e.toRefs(t),{wordLength:h,wordSlice:g}=t,{setCursor:y,recordCursor:f}=r.default(s),q=e.computed(()=>{var e;return u.isNumber(j.value)?j.value:null==(e=j.value)?void 0:e.length}),_=e.computed(()=>{var e;return!u.isNumber(j.value)&&(null==(e=j.value)?void 0:e.errorOnly)}),b=l.useControlValue(c,!1),w=l.useControlValue(i,n.value,e=>{o("update:modelValue",e)}),C=e.computed(()=>u.isNumber(q.value)&&p.value),x=e.computed(()=>m.value&&!d.value&&!v.value&&!!w.value.length);let L=0;const S=e.computed(()=>O(w.value)),V=e.ref(!1);function O(e){return u.isFunction(h)?h(e):(null==e?void 0:e.length)||0}const T=async()=>{f(),await e.nextTick(),s.value&&w.value!==s.value.value&&(s.value.value=w.value,y())},N=(e,u)=>{q.value&&O(e)>q.value?_.value?(w.value=e,b.value=!0):w.value=g(e,L):w.value=e,o("input",e,u),T()};return{computedValue:w,showClearBtn:x,showWordLimit:C,curLength:S,error:b,disabled:d,maxLength:q,handleInput:async e=>{const{value:u}=e.target;if(!V.value){if(S.value==q.value&&(L=w.value.length),q.value&&!_.value&&S.value>=q.value&&O(u)>q.value&&"insertText"===e.inputType)return T();N(u,e)}},handleComposition:e=>{const{value:l,selectionStart:r,selectionEnd:a}=e.target;if(V.value="compositionend"!==e.type,!V.value)return q.value&&!_.value&&S.value>=q.value&&O(l)>q.value&&r===a?T():void N(l,e);u.isUndefined(q.value)&&(o("input",l,e),w.value=l)}}};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../node_modules/b-tween/dist/b-tween.es.js"),require("../../node_modules/dayjs/dayjs.min.js"),require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../node_modules/dayjs/plugin/duration.js"),require("../../node_modules/dayjs/plugin/toObject.js"),require("../../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../../node_modules/dayjs/plugin/isSameOrBefore.js"),require("../../_shared/utils/dom.js");const u=require("../../_shared/utils/is.js"),l=require("../../_shared/utils/hooks.js");require("../../_shared/utils/locale.js"),require("../../_shared/utils/time.js");const r=require("./useCursor.js");exports.default=a=>{const{props:o,emits:s,inputRef:t}=a,{modelValue:i,defaultValue:n,disabled:d,readonly:v,allowClear:c,error:m,showWordLimit:p,maxLength:j}=e.toRefs(o),{wordLength:h,wordSlice:g}=o,{setCursor:y,recordCursor:f}=r.default(t),q=e.computed(()=>{var e;return u.isNumber(j.value)?j.value:null==(e=j.value)?void 0:e.length}),_=e.computed(()=>{var e;return!u.isNumber(j.value)&&(null==(e=j.value)?void 0:e.errorOnly)}),b=l.useControlValue(m,!1),C=l.useControlValue(i,n.value,e=>{s("update:modelValue",e)}),w=e.computed(()=>u.isNumber(q.value)&&p.value),x=e.computed(()=>c.value&&!d.value&&!v.value&&!!C.value.length);let L=0;const S=e.computed(()=>O(C.value)),V=e.ref(!1);function O(e){return u.isFunction(h)?h(e):(null==e?void 0:e.length)||0}const T=async()=>{f(),await e.nextTick(),t.value&&C.value!==t.value.value&&(t.value.value=C.value,y())},N=(e,u)=>{q.value&&O(e)>q.value?_.value?(C.value=e,b.value=!0):C.value=g(e,L):C.value=e,s("input",e,u),T()};return{computedValue:C,showClearBtn:x,showWordLimit:w,curLength:S,error:b,disabled:d,maxLength:q,setCursor:y,recordCursor:f,handleInput:async e=>{const{value:u}=e.target;if(!V.value){if(S.value==q.value&&(L=C.value.length),q.value&&!_.value&&S.value>=q.value&&O(u)>q.value&&"insertText"===e.inputType)return T();N(u,e)}},handleComposition:e=>{const{value:l,selectionStart:r,selectionEnd:a}=e.target;if(V.value="compositionend"!==e.type,!V.value)return q.value&&!_.value&&S.value>=q.value&&O(l)>q.value&&r===a?T():void N(l,e);u.isUndefined(q.value)&&(s("input",l,e),C.value=l)}}};
@@ -1 +1 @@
1
- .yc-input-outer{width:100%;display:inline-flex;align-items:center}.yc-input-outer .yc-input-prepend,.yc-input-outer .yc-input-append,.yc-input-outer .yc-input-wrapper{flex-shrink:0;font-size:inherit}.yc-input-outer .yc-input-prepend,.yc-input-outer .yc-input-append{overflow:hidden;height:100%;padding:0 12px;color:var(--color-text-1);font-weight:400;white-space:nowrap;background-color:var(--color-fill-2);display:flex;align-items:center}.yc-input-outer .yc-input-prepend.yc-input-prepend,.yc-input-outer .yc-input-append.yc-input-prepend{border-right:1px solid var(--color-neutral-3);border-top-left-radius:2px;border-bottom-left-radius:2px}.yc-input-outer .yc-input-prepend.yc-input-append,.yc-input-outer .yc-input-append.yc-input-append{border-left:1px solid var(--color-neutral-3);border-top-right-radius:2px;border-bottom-right-radius:2px}.yc-input-has-prepend .yc-input-wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.yc-input-has-append .yc-input-wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.yc-input-error .yc-input-wrapper{background-color:var(--color-danger-light-1)}.yc-input-error .yc-input-wrapper:not(.yc-input-wrapper-disabled):hover{border-color:transparent;background-color:var(--color-danger-light-2)}.yc-input-error .yc-input-wrapper:not(.yc-input-wrapper-disabled):focus-within{background:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.yc-input-disabled{cursor:not-allowed}.yc-input-disabled .yc-input-wrapper{cursor:not-allowed;border-color:transparent;background-color:var(--color-fill-2);color:var(--color-text-4)}.yc-input-disabled .yc-input-wrapper .yc-input-prefix,.yc-input-disabled .yc-input-wrapper .yc-input-suffix{color:inherit}.yc-input-disabled .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-4)}.yc-input-wrapper{flex:1;height:100%;width:100%;cursor:text;padding:0 12px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);transition:color .1s cubic-bezier(0, 0, 1, 1),border-color .1s cubic-bezier(0, 0, 1, 1),background-color .1s cubic-bezier(0, 0, 1, 1);color:var(--color-text-1);font-size:inherit;font-weight:400;display:flex;align-items:center}.yc-input-wrapper:not(.yc-input-wrapper-disabled):hover{border-color:transparent;background-color:var(--color-fill-3)}.yc-input-wrapper:not(.yc-input-wrapper-disabled):hover .yc-input-clear-button{visibility:visible}.yc-input-wrapper:not(.yc-input-wrapper-disabled):focus-within{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.yc-input-wrapper .yc-input-prefix,.yc-input-wrapper .yc-input-suffix,.yc-input-wrapper .yc-input{flex-shrink:0;color:inherit}.yc-input-wrapper .yc-input-prefix,.yc-input-wrapper .yc-input-suffix{height:100%;color:var(--color-text-2);display:flex;justify-content:center;align-items:center}.yc-input-wrapper .yc-input-prefix .yc-input-word-limit,.yc-input-wrapper .yc-input-suffix .yc-input-word-limit{color:var(--color-text-3);font-size:12px}.yc-input-wrapper .yc-input-prefix .yc-icon-button,.yc-input-wrapper .yc-input-suffix .yc-icon-button{color:inherit}.yc-input-wrapper .yc-input-prefix.yc-input-prefix,.yc-input-wrapper .yc-input-suffix.yc-input-prefix{padding-right:12px}.yc-input-wrapper .yc-input-prefix.yc-input-suffix,.yc-input-wrapper .yc-input-suffix.yc-input-suffix{padding-left:12px}.yc-input-wrapper .yc-input-clear-button{visibility:hidden}.yc-input-wrapper .yc-input{flex:1;cursor:inherit;outline:none;border:none;border-radius:var(--border-radius-none);background-color:transparent;color:inherit}.yc-input-wrapper .yc-input::placeholder{color:var(--color-text-3)}.yc-input-size-mini{font-size:12px;height:24px}.yc-input-size-mini .yc-input-wrapper .yc-input{padding:1px 0;line-height:1.667}.yc-input-size-small{font-size:14px;height:28px}.yc-input-size-small .yc-input-wrapper .yc-input{padding:2px 0;line-height:1.5715}.yc-input-size-medium{font-size:14px;height:32px}.yc-input-size-medium .yc-input-wrapper .yc-input{padding:4px 0;line-height:1.5715}.yc-input-size-large{font-size:14px;height:36px}.yc-input-size-large .yc-input-wrapper .yc-input{padding:6px 0;line-height:1.5715}
1
+ .yc-input-outer{width:100%;display:inline-flex;align-items:center}.yc-input-outer .yc-input-prepend,.yc-input-outer .yc-input-append,.yc-input-outer .yc-input-wrapper{flex-shrink:0;font-size:inherit}.yc-input-outer .yc-input-prepend,.yc-input-outer .yc-input-append{overflow:hidden;height:100%;padding:0 12px;color:var(--color-text-1);font-weight:400;white-space:nowrap;background-color:var(--color-fill-2);display:flex;align-items:center}.yc-input-outer .yc-input-prepend{border-right:1px solid var(--color-neutral-3);border-top-left-radius:2px;border-bottom-left-radius:2px}.yc-input-outer .yc-input-append{border-left:1px solid var(--color-neutral-3);border-top-right-radius:2px;border-bottom-right-radius:2px}.yc-input-has-prepend .yc-input-wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.yc-input-has-append .yc-input-wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.yc-input-error .yc-input-wrapper{background-color:var(--color-danger-light-1)}.yc-input-error .yc-input-wrapper:not(.yc-input-wrapper-disabled):hover{border-color:transparent;background-color:var(--color-danger-light-2)}.yc-input-error .yc-input-wrapper:not(.yc-input-wrapper-disabled):focus-within{background:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.yc-input-disabled{cursor:not-allowed}.yc-input-disabled .yc-input-wrapper{cursor:not-allowed;border-color:transparent;background-color:var(--color-fill-2);color:var(--color-text-4)}.yc-input-disabled .yc-input-wrapper .yc-input-prefix,.yc-input-disabled .yc-input-wrapper .yc-input-suffix{color:inherit}.yc-input-disabled .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-4)}.yc-input-search .yc-input-prepend,.yc-input-search .yc-input-append{border:none;padding:0}.yc-input-search .yc-input-prepend .yc-button,.yc-input-search .yc-input-append .yc-button{border-radius:0}.yc-input-wrapper{flex:1;height:100%;width:100%;cursor:text;padding:0 12px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);transition:color .1s cubic-bezier(0, 0, 1, 1),border-color .1s cubic-bezier(0, 0, 1, 1),background-color .1s cubic-bezier(0, 0, 1, 1);color:var(--color-text-1);font-size:inherit;font-weight:400;display:flex;align-items:center}.yc-input-wrapper:not(.yc-input-wrapper-disabled):hover{border-color:transparent;background-color:var(--color-fill-3)}.yc-input-wrapper:not(.yc-input-wrapper-disabled):hover .yc-input-clear-button{visibility:visible}.yc-input-wrapper:not(.yc-input-wrapper-disabled):focus-within{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.yc-input-wrapper .yc-input-prefix,.yc-input-wrapper .yc-input-suffix,.yc-input-wrapper .yc-input{flex-shrink:0;color:inherit}.yc-input-wrapper .yc-input-prefix,.yc-input-wrapper .yc-input-suffix{height:100%;color:var(--color-text-2);display:flex;justify-content:center;align-items:center}.yc-input-wrapper .yc-input-prefix .yc-input-word-limit,.yc-input-wrapper .yc-input-suffix .yc-input-word-limit{color:var(--color-text-3);font-size:12px}.yc-input-wrapper .yc-input-prefix .yc-icon-button,.yc-input-wrapper .yc-input-suffix .yc-icon-button{color:inherit}.yc-input-wrapper .yc-input-prefix.yc-input-prefix,.yc-input-wrapper .yc-input-suffix.yc-input-prefix{padding-right:12px}.yc-input-wrapper .yc-input-prefix.yc-input-suffix,.yc-input-wrapper .yc-input-suffix.yc-input-suffix{padding-left:12px}.yc-input-wrapper .yc-input-clear-button{visibility:hidden}.yc-input-wrapper .yc-input{flex:1;cursor:inherit;outline:none;border:none;border-radius:var(--border-radius-none);background-color:transparent;color:inherit}.yc-input-wrapper .yc-input::placeholder{color:var(--color-text-3)}.yc-input-size-mini{font-size:12px;height:24px}.yc-input-size-mini .yc-input-wrapper .yc-input{padding:1px 0;line-height:1.667}.yc-input-size-small{font-size:14px;height:28px}.yc-input-size-small .yc-input-wrapper .yc-input{padding:2px 0;line-height:1.5715}.yc-input-size-medium{font-size:14px;height:32px}.yc-input-size-medium .yc-input-wrapper .yc-input{padding:4px 0;line-height:1.5715}.yc-input-size-large{font-size:14px;height:36px}.yc-input-size-large .yc-input-wrapper .yc-input{padding:6px 0;line-height:1.5715}.yc-input-group{display:inline-flex;align-items:center}.yc-input-group .yc-input-outer .yc-input-wrapper{border-radius:0}.yc-input-group .yc-input-outer:not(:last-child) .yc-input-wrapper{border-right:1px solid var(--color-neutral-3)}.yc-input-group .yc-input-outer:not(:last-child):not(.yc-input-disabled) .yc-input-wrapper:focus-within{border-right-color:rgb(var(--primary-6))}.yc-input-group .yc-input-outer:not(:last-child):not(.yc-input-disabled).yc-input-error .yc-input-wrapper:focus-within{border-right-color:rgb(var(--danger-6))}.yc-input-group .yc-input-outer:first-child .yc-input-wrapper{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.yc-input-group .yc-input-outer:last-child .yc-input-wrapper{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.yc-input-group .yc-input-tag,.yc-input-group .yc-textarea-wrapper,.yc-input-group .yc-picker{border-radius:0}.yc-input-group .yc-input-tag:not(:last-child),.yc-input-group .yc-textarea-wrapper:not(:last-child),.yc-input-group .yc-picker:not(:last-child){border-right:1px solid var(--color-neutral-3)}.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus{border-right-color:rgb(var(--primary-6))}.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus{border-right-color:rgb(var(--danger-6))}.yc-input-group .yc-input-tag:first-child,.yc-input-group .yc-textarea-wrapper:first-child,.yc-input-group .yc-picker:first-child{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.yc-input-group .yc-input-tag:last-child,.yc-input-group .yc-textarea-wrapper:last-child,.yc-input-group .yc-picker:last-child{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.yc-input-group>.yc-select:not(:last-child) .yc-input-outer .yc-input-wrapper,.yc-input-group .yc-cascader:not(:last-child) .yc-input-outer .yc-input-wrapper{border-radius:0}.yc-input-group>.yc-select:not(:last-child) .yc-input-outer .yc-input-wrapper,.yc-input-group .yc-cascader:not(:last-child) .yc-input-outer .yc-input-wrapper{border-right:1px solid var(--color-neutral-3)}.yc-input-group>.yc-select:not(:last-child) .yc-input-outer:not(.yc-input-disabled) .yc-input-wrapper:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-outer:not(.yc-input-disabled) .yc-input-wrapper:focus-within{border-right-color:rgb(var(--primary-6))}.yc-input-group>.yc-select:not(:last-child) .yc-input-outer:not(.yc-input-disabled).yc-input-error .yc-input-wrapper:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-outer:not(.yc-input-disabled).yc-input-error .yc-input-wrapper:focus-within{border-right-color:rgb(var(--danger-6))}.yc-input-group>.yc-select:not(:last-child) .yc-input-tag,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper,.yc-input-group>.yc-select:not(:last-child) .yc-picker,.yc-input-group .yc-cascader:not(:last-child) .yc-picker{border-radius:0;border-right:1px solid var(--color-neutral-3)}.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus{border-right-color:rgb(var(--primary-6))}.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus{border-right-color:rgb(var(--danger-6))}.yc-input-group>.yc-select:first-child .yc-input-tag,.yc-input-group .yc-cascader:first-child .yc-input-tag,.yc-input-group>.yc-select:first-child .yc-textarea-wrapper,.yc-input-group .yc-cascader:first-child .yc-textarea-wrapper,.yc-input-group>.yc-select:first-child .yc-picker,.yc-input-group .yc-cascader:first-child .yc-picker,.yc-input-group>.yc-select:first-child .yc-input-outer.yc-input-wrapper,.yc-input-group .yc-cascader:first-child .yc-input-outer.yc-input-wrapper{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.yc-input-group>.yc-select:last-child .yc-input-tag,.yc-input-group .yc-cascader:last-child .yc-input-tag,.yc-input-group>.yc-select:last-child .yc-textarea-wrapper,.yc-input-group .yc-cascader:last-child .yc-textarea-wrapper,.yc-input-group>.yc-select:last-child .yc-picker,.yc-input-group .yc-cascader:last-child .yc-picker,.yc-input-group>.yc-select:last-child .yc-input-outer.yc-input-wrapper,.yc-input-group .yc-cascader:last-child .yc-input-outer.yc-input-wrapper{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.reset-base-input .yc-input-wrapper{border-right:1px solid var(--color-neutral-3)}.reset-base-input:not(.yc-input-disabled) .yc-input-wrapper:focus-within{border-right-color:rgb(var(--primary-6))}.reset-base-input:not(.yc-input-disabled).yc-input-error .yc-input-wrapper:focus-within{border-right-color:rgb(var(--danger-6))}.reset-senior-input{border-right:1px solid var(--color-neutral-3)}.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus{border-right-color:rgb(var(--primary-6))}.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus{border-right-color:rgb(var(--danger-6))}.reset-first-border-radius{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.reset-last-border-radius{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}
@@ -1,6 +1,12 @@
1
1
  import { App } from 'vue';
2
2
  import { default as _Input } from './Input.vue';
3
+ import { default as _InputSearch } from './InputSearch.vue';
4
+ import { default as _InputPassword } from './InputPassword.vue';
5
+ import { default as _InputGroup } from './InputGroup.vue';
3
6
  export type InputInstance = InstanceType<typeof _Input>;
7
+ export type InputPasswordInstance = InstanceType<typeof _InputPassword>;
8
+ export type InputSearchInstance = InstanceType<typeof _InputSearch>;
9
+ export type InputGroupInstance = InstanceType<typeof _InputGroup>;
4
10
  export * from './type';
5
11
  declare const Input: {
6
12
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').InputProps> & Readonly<{
@@ -11,13 +17,13 @@ declare const Input: {
11
17
  onInput?: ((value: string, ev: Event) => any) | undefined;
12
18
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
13
19
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
14
- "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
15
- "onVisibility-change"?: ((value: boolean) => any) | undefined;
16
20
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
17
21
  }>, {
18
22
  focus(): void;
19
23
  blur(): void;
20
24
  getInputRef(): HTMLInputElement;
25
+ setCursor?: () => void;
26
+ recordCursor?: () => void;
21
27
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
28
  change: (value: string, ev: Event) => any;
23
29
  focus: (ev: FocusEvent) => any;
@@ -26,8 +32,6 @@ declare const Input: {
26
32
  input: (value: string, ev: Event) => any;
27
33
  keydown: (ev: KeyboardEvent) => any;
28
34
  "update:modelValue": (value: string) => any;
29
- "update:visibility": (value: boolean) => any;
30
- "visibility-change": (value: boolean) => any;
31
35
  pressEnter: (ev: KeyboardEvent) => any;
32
36
  }, import('vue').PublicProps, {
33
37
  error: boolean;
@@ -43,10 +47,6 @@ declare const Input: {
43
47
  wordLength: import('./type').WordLength;
44
48
  wordSlice: import('./type').WordSlice;
45
49
  inputAttrs: import('..').RecordType;
46
- isPassword: boolean;
47
- visibility: boolean;
48
- defaultVisibility: boolean;
49
- invisibleButton: boolean;
50
50
  showInput: boolean;
51
51
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
52
52
  inputRef: HTMLInputElement;
@@ -65,13 +65,13 @@ declare const Input: {
65
65
  onInput?: ((value: string, ev: Event) => any) | undefined;
66
66
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
67
67
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
68
- "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
69
- "onVisibility-change"?: ((value: boolean) => any) | undefined;
70
68
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
71
69
  }>, {
72
70
  focus(): void;
73
71
  blur(): void;
74
72
  getInputRef(): HTMLInputElement;
73
+ setCursor?: () => void;
74
+ recordCursor?: () => void;
75
75
  }, {}, {}, {}, {
76
76
  error: boolean;
77
77
  size: import('..').Size;
@@ -86,10 +86,6 @@ declare const Input: {
86
86
  wordLength: import('./type').WordLength;
87
87
  wordSlice: import('./type').WordSlice;
88
88
  inputAttrs: import('..').RecordType;
89
- isPassword: boolean;
90
- visibility: boolean;
91
- defaultVisibility: boolean;
92
- invisibleButton: boolean;
93
89
  showInput: boolean;
94
90
  }>;
95
91
  __isFragment?: never;
@@ -103,13 +99,13 @@ declare const Input: {
103
99
  onInput?: ((value: string, ev: Event) => any) | undefined;
104
100
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
105
101
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
106
- "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
107
- "onVisibility-change"?: ((value: boolean) => any) | undefined;
108
102
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
109
103
  }>, {
110
104
  focus(): void;
111
105
  blur(): void;
112
106
  getInputRef(): HTMLInputElement;
107
+ setCursor?: () => void;
108
+ recordCursor?: () => void;
113
109
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
114
110
  change: (value: string, ev: Event) => any;
115
111
  focus: (ev: FocusEvent) => any;
@@ -118,8 +114,6 @@ declare const Input: {
118
114
  input: (value: string, ev: Event) => any;
119
115
  keydown: (ev: KeyboardEvent) => any;
120
116
  "update:modelValue": (value: string) => any;
121
- "update:visibility": (value: boolean) => any;
122
- "visibility-change": (value: boolean) => any;
123
117
  pressEnter: (ev: KeyboardEvent) => any;
124
118
  }, string, {
125
119
  error: boolean;
@@ -135,19 +129,442 @@ declare const Input: {
135
129
  wordLength: import('./type').WordLength;
136
130
  wordSlice: import('./type').WordSlice;
137
131
  inputAttrs: import('..').RecordType;
138
- isPassword: boolean;
139
- visibility: boolean;
140
- defaultVisibility: boolean;
141
- invisibleButton: boolean;
142
132
  showInput: boolean;
143
133
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
144
134
  $slots: any;
145
135
  }) & {
136
+ group: {
137
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
138
+ P: {};
139
+ B: {};
140
+ D: {};
141
+ C: {};
142
+ M: {};
143
+ Defaults: {};
144
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
145
+ __isFragment?: never;
146
+ __isTeleport?: never;
147
+ __isSuspense?: never;
148
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
149
+ $slots: {
150
+ default?(_: {}): any;
151
+ };
152
+ });
153
+ password: {
154
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').InputPasswordProps> & Readonly<{
155
+ "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
156
+ "onVisibility-change"?: ((value: boolean) => any) | undefined;
157
+ }>, {
158
+ focus(): void;
159
+ blur(): void;
160
+ getInputRef(): HTMLInputElement;
161
+ setCursor?: () => void;
162
+ recordCursor?: () => void;
163
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
164
+ "update:visibility": (value: boolean) => any;
165
+ "visibility-change": (value: boolean) => any;
166
+ }, import('vue').PublicProps, {
167
+ visibility: boolean;
168
+ defaultVisibility: boolean;
169
+ invisibleButton: boolean;
170
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
171
+ inputRef: ({
172
+ $: import('vue').ComponentInternalInstance;
173
+ $data: {};
174
+ $props: {
175
+ readonly modelValue?: string | undefined;
176
+ readonly defaultValue?: string | undefined;
177
+ readonly size?: import('..').Size | undefined;
178
+ readonly allowClear?: boolean | undefined;
179
+ readonly disabled?: boolean | undefined;
180
+ readonly readonly?: boolean | undefined;
181
+ readonly error?: boolean | undefined;
182
+ readonly placeholder?: string | undefined;
183
+ readonly maxLength?: import('./type').MaxLength | undefined;
184
+ readonly wordLength?: import('./type').WordLength | undefined;
185
+ readonly wordSlice?: import('./type').WordSlice | undefined;
186
+ readonly showWordLimit?: boolean | undefined;
187
+ readonly inputAttrs?: import('..').RecordType | undefined;
188
+ readonly showInput?: boolean | undefined;
189
+ readonly onChange?: ((value: string, ev: Event) => any) | undefined;
190
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
191
+ readonly onClear?: ((ev: MouseEvent) => any) | undefined;
192
+ readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
193
+ readonly onInput?: ((value: string, ev: Event) => any) | undefined;
194
+ readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
195
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
196
+ readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
197
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
198
+ $attrs: {
199
+ [x: string]: unknown;
200
+ };
201
+ $refs: {
202
+ [x: string]: unknown;
203
+ } & {
204
+ inputRef: HTMLInputElement;
205
+ };
206
+ $slots: Readonly<{
207
+ [name: string]: import('vue').Slot<any> | undefined;
208
+ }>;
209
+ $root: import('vue').ComponentPublicInstance | null;
210
+ $parent: import('vue').ComponentPublicInstance | null;
211
+ $host: Element | null;
212
+ $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);
213
+ $el: HTMLDivElement;
214
+ $options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
215
+ onChange?: ((value: string, ev: Event) => any) | undefined;
216
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
217
+ onClear?: ((ev: MouseEvent) => any) | undefined;
218
+ onBlur?: ((ev: FocusEvent) => any) | undefined;
219
+ onInput?: ((value: string, ev: Event) => any) | undefined;
220
+ onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
221
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
222
+ onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
223
+ }>, {
224
+ focus(): void;
225
+ blur(): void;
226
+ getInputRef(): HTMLInputElement;
227
+ setCursor?: () => void;
228
+ recordCursor?: () => void;
229
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
230
+ change: (value: string, ev: Event) => any;
231
+ focus: (ev: FocusEvent) => any;
232
+ clear: (ev: MouseEvent) => any;
233
+ blur: (ev: FocusEvent) => any;
234
+ input: (value: string, ev: Event) => any;
235
+ keydown: (ev: KeyboardEvent) => any;
236
+ "update:modelValue": (value: string) => any;
237
+ pressEnter: (ev: KeyboardEvent) => any;
238
+ }, string, {
239
+ error: boolean;
240
+ size: import('..').Size;
241
+ disabled: boolean;
242
+ placeholder: string;
243
+ modelValue: string;
244
+ defaultValue: string;
245
+ maxLength: import('./type').MaxLength;
246
+ showWordLimit: boolean;
247
+ allowClear: boolean;
248
+ readonly: boolean;
249
+ wordLength: import('./type').WordLength;
250
+ wordSlice: import('./type').WordSlice;
251
+ inputAttrs: import('..').RecordType;
252
+ showInput: boolean;
253
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
254
+ beforeCreate?: (() => void) | (() => void)[];
255
+ created?: (() => void) | (() => void)[];
256
+ beforeMount?: (() => void) | (() => void)[];
257
+ mounted?: (() => void) | (() => void)[];
258
+ beforeUpdate?: (() => void) | (() => void)[];
259
+ updated?: (() => void) | (() => void)[];
260
+ activated?: (() => void) | (() => void)[];
261
+ deactivated?: (() => void) | (() => void)[];
262
+ beforeDestroy?: (() => void) | (() => void)[];
263
+ beforeUnmount?: (() => void) | (() => void)[];
264
+ destroyed?: (() => void) | (() => void)[];
265
+ unmounted?: (() => void) | (() => void)[];
266
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
267
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
268
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
269
+ };
270
+ $forceUpdate: () => void;
271
+ $nextTick: typeof import('vue').nextTick;
272
+ $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;
273
+ } & Readonly<{
274
+ error: boolean;
275
+ size: import('..').Size;
276
+ disabled: boolean;
277
+ placeholder: string;
278
+ modelValue: string;
279
+ defaultValue: string;
280
+ maxLength: import('./type').MaxLength;
281
+ showWordLimit: boolean;
282
+ allowClear: boolean;
283
+ readonly: boolean;
284
+ wordLength: import('./type').WordLength;
285
+ wordSlice: import('./type').WordSlice;
286
+ inputAttrs: import('..').RecordType;
287
+ showInput: boolean;
288
+ }> & Omit<Readonly<import('./type').InputProps> & Readonly<{
289
+ onChange?: ((value: string, ev: Event) => any) | undefined;
290
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
291
+ onClear?: ((ev: MouseEvent) => any) | undefined;
292
+ onBlur?: ((ev: FocusEvent) => any) | undefined;
293
+ onInput?: ((value: string, ev: Event) => any) | undefined;
294
+ onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
295
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
296
+ onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
297
+ }>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
298
+ focus(): void;
299
+ blur(): void;
300
+ getInputRef(): HTMLInputElement;
301
+ setCursor?: () => void;
302
+ recordCursor?: () => void;
303
+ }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
304
+ $slots: any;
305
+ }) | null;
306
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
307
+ P: {};
308
+ B: {};
309
+ D: {};
310
+ C: {};
311
+ M: {};
312
+ Defaults: {};
313
+ }, Readonly<import('./type').InputPasswordProps> & Readonly<{
314
+ "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
315
+ "onVisibility-change"?: ((value: boolean) => any) | undefined;
316
+ }>, {
317
+ focus(): void;
318
+ blur(): void;
319
+ getInputRef(): HTMLInputElement;
320
+ setCursor?: () => void;
321
+ recordCursor?: () => void;
322
+ }, {}, {}, {}, {
323
+ visibility: boolean;
324
+ defaultVisibility: boolean;
325
+ invisibleButton: boolean;
326
+ }>;
327
+ __isFragment?: never;
328
+ __isTeleport?: never;
329
+ __isSuspense?: never;
330
+ } & import('vue').ComponentOptionsBase<Readonly<import('./type').InputPasswordProps> & Readonly<{
331
+ "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
332
+ "onVisibility-change"?: ((value: boolean) => any) | undefined;
333
+ }>, {
334
+ focus(): void;
335
+ blur(): void;
336
+ getInputRef(): HTMLInputElement;
337
+ setCursor?: () => void;
338
+ recordCursor?: () => void;
339
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
340
+ "update:visibility": (value: boolean) => any;
341
+ "visibility-change": (value: boolean) => any;
342
+ }, string, {
343
+ visibility: boolean;
344
+ defaultVisibility: boolean;
345
+ invisibleButton: boolean;
346
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
347
+ $slots: {
348
+ prepend?(_: {}): any;
349
+ append?(_: {}): any;
350
+ prefix?(_: {}): any;
351
+ suffix?(_: {}): any;
352
+ };
353
+ });
354
+ search: {
355
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').InputSearchProps> & Readonly<{
356
+ onSearch?: ((value: string, ev: MouseEvent) => any) | undefined;
357
+ }>, {
358
+ focus(): void;
359
+ blur(): void;
360
+ getInputRef(): HTMLInputElement;
361
+ setCursor?: () => void;
362
+ recordCursor?: () => void;
363
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
364
+ search: (value: string, ev: MouseEvent) => any;
365
+ }, import('vue').PublicProps, {
366
+ size: import('..').Size;
367
+ disabled: boolean;
368
+ loading: boolean;
369
+ searchButton: boolean;
370
+ buttonText: string;
371
+ buttonProps: import('..').ButtonGroupProps;
372
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
373
+ inputRef: ({
374
+ $: import('vue').ComponentInternalInstance;
375
+ $data: {};
376
+ $props: {
377
+ readonly modelValue?: string | undefined;
378
+ readonly defaultValue?: string | undefined;
379
+ readonly size?: import('..').Size | undefined;
380
+ readonly allowClear?: boolean | undefined;
381
+ readonly disabled?: boolean | undefined;
382
+ readonly readonly?: boolean | undefined;
383
+ readonly error?: boolean | undefined;
384
+ readonly placeholder?: string | undefined;
385
+ readonly maxLength?: import('./type').MaxLength | undefined;
386
+ readonly wordLength?: import('./type').WordLength | undefined;
387
+ readonly wordSlice?: import('./type').WordSlice | undefined;
388
+ readonly showWordLimit?: boolean | undefined;
389
+ readonly inputAttrs?: import('..').RecordType | undefined;
390
+ readonly showInput?: boolean | undefined;
391
+ readonly onChange?: ((value: string, ev: Event) => any) | undefined;
392
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
393
+ readonly onClear?: ((ev: MouseEvent) => any) | undefined;
394
+ readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
395
+ readonly onInput?: ((value: string, ev: Event) => any) | undefined;
396
+ readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
397
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
398
+ readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
399
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
400
+ $attrs: {
401
+ [x: string]: unknown;
402
+ };
403
+ $refs: {
404
+ [x: string]: unknown;
405
+ } & {
406
+ inputRef: HTMLInputElement;
407
+ };
408
+ $slots: Readonly<{
409
+ [name: string]: import('vue').Slot<any> | undefined;
410
+ }>;
411
+ $root: import('vue').ComponentPublicInstance | null;
412
+ $parent: import('vue').ComponentPublicInstance | null;
413
+ $host: Element | null;
414
+ $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);
415
+ $el: HTMLDivElement;
416
+ $options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
417
+ onChange?: ((value: string, ev: Event) => any) | undefined;
418
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
419
+ onClear?: ((ev: MouseEvent) => any) | undefined;
420
+ onBlur?: ((ev: FocusEvent) => any) | undefined;
421
+ onInput?: ((value: string, ev: Event) => any) | undefined;
422
+ onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
423
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
424
+ onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
425
+ }>, {
426
+ focus(): void;
427
+ blur(): void;
428
+ getInputRef(): HTMLInputElement;
429
+ setCursor?: () => void;
430
+ recordCursor?: () => void;
431
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
432
+ change: (value: string, ev: Event) => any;
433
+ focus: (ev: FocusEvent) => any;
434
+ clear: (ev: MouseEvent) => any;
435
+ blur: (ev: FocusEvent) => any;
436
+ input: (value: string, ev: Event) => any;
437
+ keydown: (ev: KeyboardEvent) => any;
438
+ "update:modelValue": (value: string) => any;
439
+ pressEnter: (ev: KeyboardEvent) => any;
440
+ }, string, {
441
+ error: boolean;
442
+ size: import('..').Size;
443
+ disabled: boolean;
444
+ placeholder: string;
445
+ modelValue: string;
446
+ defaultValue: string;
447
+ maxLength: import('./type').MaxLength;
448
+ showWordLimit: boolean;
449
+ allowClear: boolean;
450
+ readonly: boolean;
451
+ wordLength: import('./type').WordLength;
452
+ wordSlice: import('./type').WordSlice;
453
+ inputAttrs: import('..').RecordType;
454
+ showInput: boolean;
455
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
456
+ beforeCreate?: (() => void) | (() => void)[];
457
+ created?: (() => void) | (() => void)[];
458
+ beforeMount?: (() => void) | (() => void)[];
459
+ mounted?: (() => void) | (() => void)[];
460
+ beforeUpdate?: (() => void) | (() => void)[];
461
+ updated?: (() => void) | (() => void)[];
462
+ activated?: (() => void) | (() => void)[];
463
+ deactivated?: (() => void) | (() => void)[];
464
+ beforeDestroy?: (() => void) | (() => void)[];
465
+ beforeUnmount?: (() => void) | (() => void)[];
466
+ destroyed?: (() => void) | (() => void)[];
467
+ unmounted?: (() => void) | (() => void)[];
468
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
469
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
470
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
471
+ };
472
+ $forceUpdate: () => void;
473
+ $nextTick: typeof import('vue').nextTick;
474
+ $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;
475
+ } & Readonly<{
476
+ error: boolean;
477
+ size: import('..').Size;
478
+ disabled: boolean;
479
+ placeholder: string;
480
+ modelValue: string;
481
+ defaultValue: string;
482
+ maxLength: import('./type').MaxLength;
483
+ showWordLimit: boolean;
484
+ allowClear: boolean;
485
+ readonly: boolean;
486
+ wordLength: import('./type').WordLength;
487
+ wordSlice: import('./type').WordSlice;
488
+ inputAttrs: import('..').RecordType;
489
+ showInput: boolean;
490
+ }> & Omit<Readonly<import('./type').InputProps> & Readonly<{
491
+ onChange?: ((value: string, ev: Event) => any) | undefined;
492
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
493
+ onClear?: ((ev: MouseEvent) => any) | undefined;
494
+ onBlur?: ((ev: FocusEvent) => any) | undefined;
495
+ onInput?: ((value: string, ev: Event) => any) | undefined;
496
+ onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
497
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
498
+ onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
499
+ }>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
500
+ focus(): void;
501
+ blur(): void;
502
+ getInputRef(): HTMLInputElement;
503
+ setCursor?: () => void;
504
+ recordCursor?: () => void;
505
+ }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
506
+ $slots: any;
507
+ }) | null;
508
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
509
+ P: {};
510
+ B: {};
511
+ D: {};
512
+ C: {};
513
+ M: {};
514
+ Defaults: {};
515
+ }, Readonly<import('./type').InputSearchProps> & Readonly<{
516
+ onSearch?: ((value: string, ev: MouseEvent) => any) | undefined;
517
+ }>, {
518
+ focus(): void;
519
+ blur(): void;
520
+ getInputRef(): HTMLInputElement;
521
+ setCursor?: () => void;
522
+ recordCursor?: () => void;
523
+ }, {}, {}, {}, {
524
+ size: import('..').Size;
525
+ disabled: boolean;
526
+ loading: boolean;
527
+ searchButton: boolean;
528
+ buttonText: string;
529
+ buttonProps: import('..').ButtonGroupProps;
530
+ }>;
531
+ __isFragment?: never;
532
+ __isTeleport?: never;
533
+ __isSuspense?: never;
534
+ } & import('vue').ComponentOptionsBase<Readonly<import('./type').InputSearchProps> & Readonly<{
535
+ onSearch?: ((value: string, ev: MouseEvent) => any) | undefined;
536
+ }>, {
537
+ focus(): void;
538
+ blur(): void;
539
+ getInputRef(): HTMLInputElement;
540
+ setCursor?: () => void;
541
+ recordCursor?: () => void;
542
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
543
+ search: (value: string, ev: MouseEvent) => any;
544
+ }, string, {
545
+ size: import('..').Size;
546
+ disabled: boolean;
547
+ loading: boolean;
548
+ searchButton: boolean;
549
+ buttonText: string;
550
+ buttonProps: import('..').ButtonGroupProps;
551
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
552
+ $slots: {
553
+ prepend?(_: {}): any;
554
+ append?(_: {}): any;
555
+ prefix?(_: {}): any;
556
+ suffix?(_: {}): any;
557
+ };
558
+ });
146
559
  install: (app: App) => void;
147
560
  };
561
+ export { _InputGroup as InputGroup, _InputPassword as InputPassword, _InputSearch as InputSearch, };
148
562
  declare module 'vue' {
149
563
  interface GlobalComponents {
150
564
  YcInput: typeof Input;
565
+ YcInputGroup: typeof _InputGroup;
566
+ YcInputPassword: typeof _InputPassword;
567
+ YcInputSearch: typeof _InputSearch;
151
568
  }
152
569
  }
153
570
  export default Input;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Input.vue.js");;/* empty css */const t=Object.assign(e.default,{install:t=>{t.component("Yc"+e.default.name,e.default)}});exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Input.vue.js");;/* empty css */const u=require("./InputSearch.vue.js"),t=require("./InputPassword.vue.js"),a=require("./InputGroup.vue.js");;/* empty css */const r=Object.assign(e.default,{group:a.default,password:t.default,search:u.default,install:r=>{r.component("Yc"+e.default.name,e.default),r.component("Yc"+u.default.name,u.default),r.component("Yc"+t.default.name,t.default),r.component("Yc"+a.default.name,a.default)}});exports.InputSearch=u.default,exports.InputPassword=t.default,exports.InputGroup=a.default,exports.default=r;