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
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, toRefs, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createVNode, createBlock, createCommentVNode, withCtx, renderSlot, resolveDynamicComponent, createTextVNode, toDisplayString, withDirectives, vShow } from "vue";
2
2
  import useCollapseContext from "./hooks/useContext.js";
3
- import _sfc_main$1 from "../_shared/components/IconButton/index.vue2.js";
4
- /* empty css */
3
+ import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
4
+ /* empty css */
5
5
  import _sfc_main$3 from "../_shared/components/ExpandTransition/index.vue2.js";
6
6
  /* empty css */
7
7
  import "../node_modules/b-tween/dist/b-tween.es.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent, toRefs, ref, watch, createElementBlock, openBlock, createElementVNode, createVNode, unref, createBlock, createCommentVNode, withCtx, createTextVNode, Fragment } from "vue";
1
+ import { defineComponent, toRefs, ref, watch, createElementBlock, openBlock, createElementVNode, createVNode, unref, withCtx, createBlock, createCommentVNode, createTextVNode, Fragment } from "vue";
2
2
  import { parseColor } from "../_shared/utils/color.js";
3
3
  import "../node_modules/b-tween/dist/b-tween.es.js";
4
4
  import "../node_modules/dayjs/dayjs.min.js";
@@ -14,9 +14,10 @@ import { COLOR_PICKER_FORMAT_OPTIONS } from "../_shared/constants/index.js";
14
14
  import Select from "../Select/index.js";
15
15
  import Input from "../Input/index.js";
16
16
  import InputNumber from "../InputNumber/index.js";
17
+ import _sfc_main$1 from "../Input/InputGroup.vue.js";
18
+ /* empty css */
17
19
  const _hoisted_1 = { class: "yc-color-picker-input-wrapper" };
18
20
  const _hoisted_2 = { class: "yc-color-picker-format" };
19
- const _hoisted_3 = { class: "yc-color-picker-color" };
20
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
21
22
  __name: "ColorInput",
22
23
  props: {
@@ -85,79 +86,82 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
85
86
  size: "mini"
86
87
  }, null, 8, ["modelValue", "options"])
87
88
  ]),
88
- createElementVNode("div", _hoisted_3, [
89
- format.value == "hex" ? (openBlock(), createBlock(unref(Input), {
90
- key: 0,
91
- modelValue: hex.value,
92
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => hex.value = $event),
93
- "max-length": 6,
94
- disabled: _ctx.disabled,
95
- size: "mini",
96
- class: "hex-input",
97
- onBlur: _cache[2] || (_cache[2] = ($event) => handleSet("hex")),
98
- onPressEnter: _cache[3] || (_cache[3] = ($event) => handleSet("hex"))
99
- }, {
100
- prefix: withCtx(() => [..._cache[16] || (_cache[16] = [
101
- createTextVNode(" # ", -1)
102
- ])]),
103
- _: 1
104
- }, 8, ["modelValue", "disabled"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
105
- createVNode(unref(InputNumber), {
106
- modelValue: rgb.value.r,
107
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => rgb.value.r = $event),
108
- min: 0,
109
- max: 255,
110
- disabled: _ctx.disabled,
111
- size: "mini",
112
- class: "rgb-input",
113
- "hide-button": "",
114
- onBlur: _cache[5] || (_cache[5] = ($event) => handleSet("rgb")),
115
- onPressEnter: _cache[6] || (_cache[6] = ($event) => handleSet("rgb"))
116
- }, null, 8, ["modelValue", "disabled"]),
117
- createVNode(unref(InputNumber), {
118
- modelValue: rgb.value.g,
119
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => rgb.value.g = $event),
120
- min: 0,
121
- max: 255,
89
+ createVNode(unref(_sfc_main$1), { class: "yc-color-picker-color" }, {
90
+ default: withCtx(() => [
91
+ format.value == "hex" ? (openBlock(), createBlock(unref(Input), {
92
+ key: 0,
93
+ modelValue: hex.value,
94
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => hex.value = $event),
95
+ "max-length": 6,
122
96
  disabled: _ctx.disabled,
123
97
  size: "mini",
124
- class: "rgb-input",
125
- "hide-button": "",
126
- onBlur: _cache[8] || (_cache[8] = ($event) => handleSet("rgb")),
127
- onPressEnter: _cache[9] || (_cache[9] = ($event) => handleSet("rgb"))
128
- }, null, 8, ["modelValue", "disabled"]),
129
- createVNode(unref(InputNumber), {
130
- modelValue: rgb.value.b,
131
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => rgb.value.b = $event),
98
+ class: "hex-input",
99
+ onBlur: _cache[2] || (_cache[2] = ($event) => handleSet("hex")),
100
+ onPressEnter: _cache[3] || (_cache[3] = ($event) => handleSet("hex"))
101
+ }, {
102
+ prefix: withCtx(() => [..._cache[16] || (_cache[16] = [
103
+ createTextVNode(" # ", -1)
104
+ ])]),
105
+ _: 1
106
+ }, 8, ["modelValue", "disabled"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
107
+ createVNode(unref(InputNumber), {
108
+ modelValue: rgb.value.r,
109
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => rgb.value.r = $event),
110
+ min: 0,
111
+ max: 255,
112
+ disabled: _ctx.disabled,
113
+ size: "mini",
114
+ class: "rgb-input",
115
+ "hide-button": "",
116
+ onBlur: _cache[5] || (_cache[5] = ($event) => handleSet("rgb")),
117
+ onPressEnter: _cache[6] || (_cache[6] = ($event) => handleSet("rgb"))
118
+ }, null, 8, ["modelValue", "disabled"]),
119
+ createVNode(unref(InputNumber), {
120
+ modelValue: rgb.value.g,
121
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => rgb.value.g = $event),
122
+ min: 0,
123
+ max: 255,
124
+ disabled: _ctx.disabled,
125
+ size: "mini",
126
+ class: "rgb-input",
127
+ "hide-button": "",
128
+ onBlur: _cache[8] || (_cache[8] = ($event) => handleSet("rgb")),
129
+ onPressEnter: _cache[9] || (_cache[9] = ($event) => handleSet("rgb"))
130
+ }, null, 8, ["modelValue", "disabled"]),
131
+ createVNode(unref(InputNumber), {
132
+ modelValue: rgb.value.b,
133
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => rgb.value.b = $event),
134
+ min: 0,
135
+ max: 255,
136
+ disabled: _ctx.disabled,
137
+ class: "rgb-input",
138
+ size: "mini",
139
+ "hide-button": "",
140
+ onBlur: _cache[11] || (_cache[11] = ($event) => handleSet("rgb")),
141
+ onPressEnter: _cache[12] || (_cache[12] = ($event) => handleSet("rgb"))
142
+ }, null, 8, ["modelValue", "disabled"])
143
+ ], 64)),
144
+ !_ctx.disabledAlpha ? (openBlock(), createBlock(unref(InputNumber), {
145
+ key: 2,
146
+ modelValue: alpha.value,
147
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => alpha.value = $event),
132
148
  min: 0,
133
- max: 255,
149
+ max: 100,
134
150
  disabled: _ctx.disabled,
135
- class: "rgb-input",
136
151
  size: "mini",
137
152
  "hide-button": "",
138
- onBlur: _cache[11] || (_cache[11] = ($event) => handleSet("rgb")),
139
- onPressEnter: _cache[12] || (_cache[12] = ($event) => handleSet("rgb"))
140
- }, null, 8, ["modelValue", "disabled"])
141
- ], 64)),
142
- !_ctx.disabledAlpha ? (openBlock(), createBlock(unref(InputNumber), {
143
- key: 2,
144
- modelValue: alpha.value,
145
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => alpha.value = $event),
146
- min: 0,
147
- max: 100,
148
- disabled: _ctx.disabled,
149
- size: "mini",
150
- "hide-button": "",
151
- class: "alpha-input",
152
- onBlur: _cache[14] || (_cache[14] = ($event) => handleSet("alpha")),
153
- onPressEnter: _cache[15] || (_cache[15] = ($event) => handleSet("alpha"))
154
- }, {
155
- suffix: withCtx(() => [..._cache[17] || (_cache[17] = [
156
- createTextVNode(" % ", -1)
157
- ])]),
158
- _: 1
159
- }, 8, ["modelValue", "disabled"])) : createCommentVNode("", true)
160
- ])
153
+ class: "alpha-input",
154
+ onBlur: _cache[14] || (_cache[14] = ($event) => handleSet("alpha")),
155
+ onPressEnter: _cache[15] || (_cache[15] = ($event) => handleSet("alpha"))
156
+ }, {
157
+ suffix: withCtx(() => [..._cache[17] || (_cache[17] = [
158
+ createTextVNode(" % ", -1)
159
+ ])]),
160
+ _: 1
161
+ }, 8, ["modelValue", "disabled"])) : createCommentVNode("", true)
162
+ ]),
163
+ _: 1
164
+ })
161
165
  ]);
162
166
  };
163
167
  }
@@ -1 +1 @@
1
- .yc-color-picker-panel{overflow:hidden;width:260px;background-color:var(--color-bg-1);border-radius:var(--border-radius-small);box-shadow:0 8px 20px 0 rgba(0,0,0,0.1)}.yc-color-picker-panel .yc-color-picker-palette{overflow:hidden;position:relative;cursor:pointer;width:100%;height:178px;background-image:linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, rgba(255,255,255,0));border:1px solid var(--color-border-2);border-bottom:0}.yc-color-picker-panel .yc-color-picker-palette .yc-color-picker-handler{position:absolute;width:16px;height:16px;border:2px solid #fff;border-radius:var(--border-radius-circle);background-color:transparent;transform:translate(-50%, -50%)}.yc-color-picker-panel .yc-color-picker-panel-control{padding:12px;display:flex;flex-direction:column;gap:12px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper{display:flex;justify-content:space-between;align-items:center}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper:not(.yc-color-picker-preview)>div{display:flex;flex-direction:column;gap:12px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar{cursor:pointer;position:relative;width:182px;height:14px;border-radius:10px;border:1px solid var(--color-border-2);background-image:linear-gradient(90deg, #f00 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar .yc-color-picker-control-bar-handler{user-select:none;position:absolute;top:50%;transform:translate(-50%, -50%);width:16px;height:16px;border-radius:var(--border-radius-circle);border:1px solid var(--color-border-2)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar .yc-color-picker-control-bar-handler::before{display:block;content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:8px;height:8px;background:currentColor;border-radius:var(--border-radius-circle)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar .yc-color-picker-control-bar-handler::after{display:block;content:'';width:100%;height:100%;background:var(--color-bg-white);border-radius:var(--border-radius-circle)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar-bg{width:fit-content;height:fit-content;background-image:conic-gradient(rgba(0,0,0,0.06) 0 25%, transparent 0 50%, rgba(0,0,0,0.06) 0 75%, transparent 0);background-size:8px 8px;border-radius:10px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-preview{width:40px;height:40px;border:1px solid var(--color-border-2);border-radius:var(--border-radius-medium)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper{display:flex;align-items:center;gap:20px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-input-outer .yc-input-wrapper{padding:0 6px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-input-outer .yc-input-wrapper .yc-input-suffix{padding-left:0}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-format .yc-select{width:58px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color{flex:1;overflow:hidden;display:flex;align-items:center}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .yc-input-outer:first-child .yc-input-wrapper{border-top-left-radius:2px;border-bottom-left-radius:2px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .yc-input-outer:last-child .yc-input-wrapper{border-right-color:var(--color-border-2);border-top-right-radius:2px;border-bottom-right-radius:2px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .yc-input-outer .yc-input-wrapper{border-radius:var(--border-radius-none);border-color:var(--color-border-2);border-right-color:transparent}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .yc-input-outer .yc-input-wrapper:not(.yc-input-disabled):focus-within{border-radius:var(--border-radius-small);border-color:rgb(var(--primary-6))}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .yc-input-outer .yc-input-wrapper .yc-input-prefix{padding-right:6px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .yc-input-number .yc-input{text-align:center}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .rgb-input,.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .hex-input{flex:1}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .alpha-input{width:52px}.yc-color-picker-panel .yc-color-picker-panel-colors{padding:12px;border-top:1px solid var(--color-border-2);display:flex;flex-direction:column;gap:12px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section{display:flex;flex-direction:column;gap:6px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-text{color:var(--color-text-1);font-weight:400;font-size:12px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-empty{margin:6px 0 0 0;color:var(--color-text-3);font-size:12px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-list{display:flex;flex-wrap:wrap;gap:6px 4px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-list .yc-color-picker-color-block{cursor:pointer;width:16px;height:16px;overflow:hidden;background-image:conic-gradient(rgba(0,0,0,0.06) 0 25%, transparent 0 50%, rgba(0,0,0,0.06) 0 75%, transparent 0);background-size:8px 8px;border-radius:var(--border-radius-small);transition:transform ease-out 60ms}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-list .yc-color-picker-color-block:hover{transform:scale(1.1)}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-list .yc-color-picker-color-block .yc-color-picker-block{height:100%;width:100%}.yc-color-picker-panel-disabled{cursor:not-allowed}.yc-color-picker-panel-disabled .yc-color-picker-palette{cursor:not-allowed}.yc-color-picker-panel-disabled .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar{cursor:not-allowed}.yc-color-picker{cursor:pointer;background-color:var(--color-fill-2);border-radius:var(--border-radius-small);display:inline-flex;align-items:center;gap:4px}.yc-color-picker:not(.yc-color-picker-disabled):hover{background-color:var(--color-fill-3)}.yc-color-picker .yc-color-picker-value{color:var(--color-text-1);font-weight:400}.yc-color-picker.yc-color-picker-disabled{cursor:not-allowed;background-color:var(--color-fill-2)}.yc-color-picker.yc-color-picker-disabled .yc-color-picker-value{color:var(--color-text-4)}.yc-color-picker-size-mini{height:24px;padding:4px;font-size:12px}.yc-color-picker-size-mini .yc-color-picker-preview{height:100%;width:calc(24px - 8px)}.yc-color-picker-size-small{height:28px;padding:3px 4px;font-size:14px}.yc-color-picker-size-small .yc-color-picker-preview{height:100%;width:calc(28px - 8px)}.yc-color-picker-size-medium{height:32px;padding:4px;font-size:14px}.yc-color-picker-size-medium .yc-color-picker-preview{height:100%;width:calc(32px - 8px)}.yc-color-picker-size-large{height:36px;padding:5px;font-size:14px}.yc-color-picker-size-large .yc-color-picker-preview{height:100%;width:calc(36px - 10px)}.yc-color-picker-format-popup-content .yc-select-option{font-size:12px;line-height:24px}
1
+ .yc-color-picker-panel{overflow:hidden;width:260px;background-color:var(--color-bg-1);border-radius:var(--border-radius-small);box-shadow:0 8px 20px 0 rgba(0,0,0,0.1)}.yc-color-picker-panel .yc-color-picker-palette{overflow:hidden;position:relative;cursor:pointer;width:100%;height:178px;background-image:linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, rgba(255,255,255,0));border:1px solid var(--color-border-2);border-bottom:0}.yc-color-picker-panel .yc-color-picker-palette .yc-color-picker-handler{position:absolute;width:16px;height:16px;border:2px solid #fff;border-radius:var(--border-radius-circle);background-color:transparent;transform:translate(-50%, -50%)}.yc-color-picker-panel .yc-color-picker-panel-control{padding:12px;display:flex;flex-direction:column;gap:12px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper{display:flex;justify-content:space-between;align-items:center}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper:not(.yc-color-picker-preview)>div{display:flex;flex-direction:column;gap:12px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar{cursor:pointer;position:relative;width:182px;height:14px;border-radius:10px;border:1px solid var(--color-border-2);background-image:linear-gradient(90deg, #f00 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar .yc-color-picker-control-bar-handler{user-select:none;position:absolute;top:50%;transform:translate(-50%, -50%);width:16px;height:16px;border-radius:var(--border-radius-circle);border:1px solid var(--color-border-2)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar .yc-color-picker-control-bar-handler::before{display:block;content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:8px;height:8px;background:currentColor;border-radius:var(--border-radius-circle)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar .yc-color-picker-control-bar-handler::after{display:block;content:'';width:100%;height:100%;background:var(--color-bg-white);border-radius:var(--border-radius-circle)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar-bg{width:fit-content;height:fit-content;background-image:conic-gradient(rgba(0,0,0,0.06) 0 25%, transparent 0 50%, rgba(0,0,0,0.06) 0 75%, transparent 0);background-size:8px 8px;border-radius:10px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-preview{width:40px;height:40px;border:1px solid var(--color-border-2);border-radius:var(--border-radius-medium)}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper{display:flex;align-items:center;gap:20px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-input-outer .yc-input-wrapper{padding:0 6px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-input-outer .yc-input-wrapper .yc-input-suffix{padding-left:0}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-format .yc-select{width:58px}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color{flex:1;overflow:hidden}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .rgb-input,.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .hex-input{flex:1}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .rgb-input.rgb-input .yc-input,.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .hex-input.rgb-input .yc-input{text-align:center}.yc-color-picker-panel .yc-color-picker-panel-control .yc-color-picker-input-wrapper .yc-color-picker-color .alpha-input{width:52px}.yc-color-picker-panel .yc-color-picker-panel-colors{padding:12px;border-top:1px solid var(--color-border-2);display:flex;flex-direction:column;gap:12px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section{display:flex;flex-direction:column;gap:6px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-text{color:var(--color-text-1);font-weight:400;font-size:12px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-empty{margin:6px 0 0 0;color:var(--color-text-3);font-size:12px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-list{display:flex;flex-wrap:wrap;gap:6px 4px}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-list .yc-color-picker-color-block{cursor:pointer;width:16px;height:16px;overflow:hidden;background-image:conic-gradient(rgba(0,0,0,0.06) 0 25%, transparent 0 50%, rgba(0,0,0,0.06) 0 75%, transparent 0);background-size:8px 8px;border-radius:var(--border-radius-small);transition:transform ease-out 60ms}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-list .yc-color-picker-color-block:hover{transform:scale(1.1)}.yc-color-picker-panel .yc-color-picker-panel-colors .yc-color-picker-colors-section .yc-color-picker-colors-list .yc-color-picker-color-block .yc-color-picker-block{height:100%;width:100%}.yc-color-picker-panel-disabled{cursor:not-allowed}.yc-color-picker-panel-disabled .yc-color-picker-palette{cursor:not-allowed}.yc-color-picker-panel-disabled .yc-color-picker-panel-control .yc-color-picker-control-wrapper .yc-color-picker-control-bar{cursor:not-allowed}.yc-color-picker{cursor:pointer;background-color:var(--color-fill-2);border-radius:var(--border-radius-small);display:inline-flex;align-items:center;gap:4px}.yc-color-picker:not(.yc-color-picker-disabled):hover{background-color:var(--color-fill-3)}.yc-color-picker .yc-color-picker-value{color:var(--color-text-1);font-weight:400}.yc-color-picker.yc-color-picker-disabled{cursor:not-allowed;background-color:var(--color-fill-2)}.yc-color-picker.yc-color-picker-disabled .yc-color-picker-value{color:var(--color-text-4)}.yc-color-picker-size-mini{height:24px;padding:4px;font-size:12px}.yc-color-picker-size-mini .yc-color-picker-preview{height:100%;width:calc(24px - 8px)}.yc-color-picker-size-small{height:28px;padding:3px 4px;font-size:14px}.yc-color-picker-size-small .yc-color-picker-preview{height:100%;width:calc(28px - 8px)}.yc-color-picker-size-medium{height:32px;padding:4px;font-size:14px}.yc-color-picker-size-medium .yc-color-picker-preview{height:100%;width:calc(32px - 8px)}.yc-color-picker-size-large{height:36px;padding:5px;font-size:14px}.yc-color-picker-size-large .yc-color-picker-preview{height:100%;width:calc(36px - 10px)}.yc-color-picker-format-popup-content .yc-select-option{font-size:12px;line-height:24px}
@@ -12,8 +12,8 @@ import { useI18n } from "../_shared/utils/locale.js";
12
12
  import "../_shared/utils/time.js";
13
13
  import useModalClose from "../Modal/hooks/useModalClose.js";
14
14
  import Button from "../Button/index.js";
15
- import _sfc_main$1 from "../_shared/components/IconButton/index.vue2.js";
16
- /* empty css */
15
+ import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
16
+ /* empty css */
17
17
  /* empty css */
18
18
  /* empty css */
19
19
  const _hoisted_1 = { class: "yc-drawer-header" };
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps
23
23
  position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
24
24
  popupContainer: import('..').PopupContainer;
25
25
  type: import('../Button').ButtonType;
26
- hideOnSelect: boolean;
27
26
  buttonProps: import('../Button').ButtonProps;
27
+ hideOnSelect: boolean;
28
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
29
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
30
  export default _default;
@@ -9,7 +9,7 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
9
  import "../_shared/utils/dom.js";
10
10
  import "../_shared/utils/locale.js";
11
11
  import "../_shared/utils/time.js";
12
- /* empty css */
12
+ /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import _sfc_main$3 from "../_shared/icons/IconMore.vue.js";
@@ -12,7 +12,7 @@ import { isBoolean, isUndefined } from "../_shared/utils/is.js";
12
12
  import { useControlValue } from "../_shared/utils/hooks.js";
13
13
  import "../_shared/utils/locale.js";
14
14
  import "../_shared/utils/time.js";
15
- /* empty css */
15
+ /* empty css */
16
16
  /* empty css */
17
17
  /* empty css */
18
18
  import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
@@ -154,8 +154,8 @@ declare const Dropdown: {
154
154
  position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
155
155
  popupContainer: import('..').PopupContainer;
156
156
  type: import('..').ButtonType;
157
- hideOnSelect: boolean;
158
157
  buttonProps: import('..').ButtonProps;
158
+ hideOnSelect: boolean;
159
159
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
160
160
  P: {};
161
161
  B: {};
@@ -176,8 +176,8 @@ declare const Dropdown: {
176
176
  position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
177
177
  popupContainer: import('..').PopupContainer;
178
178
  type: import('..').ButtonType;
179
- hideOnSelect: boolean;
180
179
  buttonProps: import('..').ButtonProps;
180
+ hideOnSelect: boolean;
181
181
  }>;
182
182
  __isFragment?: never;
183
183
  __isTeleport?: never;
@@ -199,8 +199,8 @@ declare const Dropdown: {
199
199
  position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
200
200
  popupContainer: import('..').PopupContainer;
201
201
  type: import('..').ButtonType;
202
- hideOnSelect: boolean;
203
202
  buttonProps: import('..').ButtonProps;
203
+ hideOnSelect: boolean;
204
204
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
205
205
  $slots: Readonly<import('./type').DropdownButtonSlots> & import('./type').DropdownButtonSlots;
206
206
  });
@@ -9,7 +9,7 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
9
  import "../_shared/utils/dom.js";
10
10
  import { useI18n } from "../_shared/utils/locale.js";
11
11
  import "../_shared/utils/time.js";
12
- /* empty css */
12
+ /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import _sfc_main$1 from "../_shared/icons/IconEmpty.vue.js";
@@ -10,7 +10,7 @@ import { valueToPx } from "../_shared/utils/dom.js";
10
10
  import { useControlValue } from "../_shared/utils/hooks.js";
11
11
  import { useI18n } from "../_shared/utils/locale.js";
12
12
  import "../_shared/utils/time.js";
13
- /* empty css */
13
+ /* empty css */
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  import _sfc_main$2 from "../_shared/icons/IconImageClose.vue.js";
@@ -12,7 +12,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
12
12
  import { useControlValue } from "../_shared/utils/hooks.js";
13
13
  import "../_shared/utils/locale.js";
14
14
  import "../_shared/utils/time.js";
15
- /* empty css */
15
+ /* empty css */
16
16
  /* empty css */
17
17
  /* empty css */
18
18
  import _sfc_main$2 from "../_shared/icons/IconClose.vue.js";
@@ -9,7 +9,7 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
9
  import "../_shared/utils/dom.js";
10
10
  import "../_shared/utils/locale.js";
11
11
  import "../_shared/utils/time.js";
12
- /* empty css */
12
+ /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
@@ -9,7 +9,7 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
9
  import "../_shared/utils/dom.js";
10
10
  import { useI18n } from "../_shared/utils/locale.js";
11
11
  import "../_shared/utils/time.js";
12
- /* empty css */
12
+ /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import _sfc_main$6 from "../_shared/icons/IconFullScreen.vue2.js";
@@ -12,6 +12,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
12
12
  focus(): void;
13
13
  blur(): void;
14
14
  getInputRef(): HTMLInputElement;
15
+ setCursor?: () => void;
16
+ recordCursor?: () => void;
15
17
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
18
  change: (value: string, ev: Event) => any;
17
19
  focus: (ev: FocusEvent) => any;
@@ -20,8 +22,6 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
20
22
  input: (value: string, ev: Event) => any;
21
23
  keydown: (ev: KeyboardEvent) => any;
22
24
  "update:modelValue": (value: string) => any;
23
- "update:visibility": (value: boolean) => any;
24
- "visibility-change": (value: boolean) => any;
25
25
  pressEnter: (ev: KeyboardEvent) => any;
26
26
  }, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
27
27
  onChange?: ((value: string, ev: Event) => any) | undefined;
@@ -31,8 +31,6 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
31
31
  onInput?: ((value: string, ev: Event) => any) | undefined;
32
32
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
- "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
35
- "onVisibility-change"?: ((value: boolean) => any) | undefined;
36
34
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
37
35
  }>, {
38
36
  error: boolean;
@@ -48,10 +46,6 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
48
46
  wordLength: import('./type').WordLength;
49
47
  wordSlice: import('./type').WordSlice;
50
48
  inputAttrs: import('..').RecordType;
51
- isPassword: boolean;
52
- visibility: boolean;
53
- defaultVisibility: boolean;
54
- invisibleButton: boolean;
55
49
  showInput: boolean;
56
50
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
57
51
  inputRef: HTMLInputElement;
@@ -1,4 +1,4 @@
1
- import { defineComponent, useSlots, toRefs, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createBlock, createCommentVNode, createElementVNode, withCtx, renderSlot, withDirectives, mergeProps, withKeys, vShow, createSlots } from "vue";
1
+ import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeClass, unref, createBlock, createCommentVNode, createElementVNode, withCtx, renderSlot, withDirectives, createVNode, mergeProps, withKeys, vShow, toDisplayString } from "vue";
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
@@ -8,18 +8,19 @@ import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
8
  import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
9
  import "../_shared/utils/dom.js";
10
10
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
11
- import { useControlValue } from "../_shared/utils/hooks.js";
12
11
  import "../_shared/utils/locale.js";
13
12
  import "../_shared/utils/time.js";
14
13
  import useLimitedInput from "./hooks/useLimitedInput.js";
15
- import _sfc_main$2 from "../_shared/components/IconButton/index.vue2.js";
16
- /* empty css */
14
+ import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
15
+ /* empty css */
17
16
  import _sfc_main$1 from "../_shared/components/PreventFocus/index.vue.js";
18
17
  /* empty css */
19
18
  /* empty css */
20
- import _sfc_main$3 from "./InputSuffix.vue.js";
21
- /* empty css */
22
- const _hoisted_1 = ["value", "type", "disabled", "readonly", "placeholder"];
19
+ const _hoisted_1 = ["value", "disabled", "readonly", "placeholder"];
20
+ const _hoisted_2 = {
21
+ key: 0,
22
+ class: "yc-input-word-limit"
23
+ };
23
24
  const _sfc_main = /* @__PURE__ */ defineComponent({
24
25
  ...{
25
26
  name: "Input"
@@ -45,31 +46,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
46
  inputAttrs: { default: () => {
46
47
  return {};
47
48
  } },
48
- isPassword: { type: Boolean, default: false },
49
- visibility: { type: Boolean, default: void 0 },
50
- defaultVisibility: { type: Boolean, default: false },
51
- invisibleButton: { type: Boolean, default: true },
52
49
  showInput: { type: Boolean, default: false }
53
50
  },
54
- emits: ["update:modelValue", "update:visibility", "input", "change", "visibility-change", "pressEnter", "keydown", "clear", "focus", "blur"],
51
+ emits: ["update:modelValue", "input", "change", "pressEnter", "keydown", "clear", "focus", "blur"],
55
52
  setup(__props, { expose: __expose, emit: __emit }) {
56
53
  const $slots = useSlots();
57
54
  const props = __props;
58
55
  const emits = __emit;
59
- const { visibility, defaultVisibility } = toRefs(props);
60
56
  const { size } = getGlobalConfig(props);
61
57
  const inputRef = ref();
62
- const computedVisibility = useControlValue(
63
- visibility,
64
- defaultVisibility.value,
65
- (val) => {
66
- emits("update:visibility", val);
67
- emits("visibility-change", val);
68
- }
69
- );
70
- const type = computed(() => {
71
- return computedVisibility.value ? "password" : "text";
72
- });
73
58
  const {
74
59
  computedValue,
75
60
  showWordLimit,
@@ -77,6 +62,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
77
62
  curLength,
78
63
  maxLength,
79
64
  error,
65
+ recordCursor,
66
+ setCursor,
80
67
  handleInput,
81
68
  handleComposition
82
69
  } = useLimitedInput({
@@ -84,8 +71,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
71
  emits,
85
72
  inputRef
86
73
  });
87
- const handleEvent = async (type2, e) => {
88
- switch (type2) {
74
+ const handleEvent = async (type, e) => {
75
+ switch (type) {
89
76
  case "input":
90
77
  {
91
78
  handleInput(e);
@@ -99,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
86
  case "focus":
100
87
  case "blur":
101
88
  {
102
- emits(type2, e);
89
+ emits(type, e);
103
90
  }
104
91
  break;
105
92
  case "clear":
@@ -118,6 +105,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
105
  }
119
106
  };
120
107
  __expose({
108
+ setCursor,
109
+ recordCursor,
121
110
  focus() {
122
111
  var _a;
123
112
  (_a = inputRef.value) == null ? void 0 : _a.focus();
@@ -166,10 +155,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
166
155
  })) : createCommentVNode("", true),
167
156
  withDirectives(createElementVNode("input", mergeProps({
168
157
  value: unref(computedValue),
169
- type: type.value,
170
158
  disabled: _ctx.disabled,
171
159
  readonly: _ctx.readonly,
172
- placeholder: _ctx.placeholder
160
+ placeholder: _ctx.placeholder,
161
+ type: "text"
173
162
  }, _ctx.inputAttrs, {
174
163
  class: "yc-input",
175
164
  ref_key: "inputRef",
@@ -204,25 +193,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
204
193
  class: "yc-input-clear-button",
205
194
  onClick: _cache[8] || (_cache[8] = ($event) => handleEvent("clear", $event))
206
195
  })) : createCommentVNode("", true),
207
- $slots.suffix || unref(showWordLimit) || _ctx.isPassword && _ctx.invisibleButton ? (openBlock(), createBlock(_sfc_main$3, {
208
- key: 3,
209
- "cur-length": unref(curLength),
210
- "max-length": unref(maxLength),
211
- "computed-value": unref(computedValue),
212
- "show-word-limit": unref(showWordLimit),
213
- "computed-visibility": unref(computedVisibility),
214
- "invisible-button": _ctx.invisibleButton,
215
- "is-password": _ctx.isPassword,
216
- onVisibilityChange: _cache[9] || (_cache[9] = (v) => computedVisibility.value = v)
217
- }, createSlots({ _: 2 }, [
218
- $slots.suffix ? {
219
- name: "suffix",
220
- fn: withCtx(() => [
221
- renderSlot(_ctx.$slots, "suffix")
222
- ]),
223
- key: "0"
224
- } : void 0
225
- ]), 1032, ["cur-length", "max-length", "computed-value", "show-word-limit", "computed-visibility", "invisible-button", "is-password"])) : createCommentVNode("", true)
196
+ createVNode(unref(_sfc_main$1), { class: "yc-input-suffix" }, {
197
+ default: withCtx(() => [
198
+ unref(showWordLimit) ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(curLength)) + "/" + toDisplayString(unref(maxLength)), 1)) : createCommentVNode("", true),
199
+ renderSlot(_ctx.$slots, "extra"),
200
+ renderSlot(_ctx.$slots, "suffix")
201
+ ]),
202
+ _: 3
203
+ })
226
204
  ], 2),
227
205
  $slots.append ? (openBlock(), createBlock(unref(_sfc_main$1), {
228
206
  key: 1,
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,18 @@
1
+ import { defineComponent, createElementBlock, openBlock, renderSlot } from "vue";
2
+ const _hoisted_1 = { class: "yc-input-group" };
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ ...{
5
+ name: "InputGroup"
6
+ },
7
+ __name: "InputGroup",
8
+ setup(__props) {
9
+ return (_ctx, _cache) => {
10
+ return openBlock(), createElementBlock("div", _hoisted_1, [
11
+ renderSlot(_ctx.$slots, "default")
12
+ ]);
13
+ };
14
+ }
15
+ });
16
+ export {
17
+ _sfc_main as default
18
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./InputGroup.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };