@element-plus/nightly 0.0.20260720 → 0.0.20260722

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 (568) hide show
  1. package/es/components/affix/src/affix.vue.d.ts +4 -4
  2. package/es/components/alert/src/alert.d.ts +1 -1
  3. package/es/components/alert/src/alert.vue.d.ts +1 -1
  4. package/es/components/anchor/src/anchor.vue.d.ts +2 -2
  5. package/es/components/autocomplete/src/autocomplete.d.ts +6 -107
  6. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  7. package/es/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
  8. package/es/components/autocomplete/src/autocomplete.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  9. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  10. package/es/components/avatar/src/avatar-group-props.d.ts +8 -105
  11. package/es/components/avatar/src/avatar-group-props.mjs +9 -1
  12. package/es/components/avatar/src/avatar-group-props.mjs.map +1 -1
  13. package/es/components/avatar/src/avatar-group.d.ts +17 -210
  14. package/es/components/avatar/src/avatar.d.ts +2 -2
  15. package/es/components/backtop/src/backtop.vue.d.ts +1 -1
  16. package/es/components/badge/src/badge.d.ts +3 -7
  17. package/es/components/badge/src/badge.mjs +9 -1
  18. package/es/components/badge/src/badge.mjs.map +1 -1
  19. package/es/components/badge/src/badge.vue.d.ts +2 -0
  20. package/es/components/badge/src/badge.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  21. package/es/components/badge/src/badge2.mjs.map +1 -1
  22. package/es/components/button/src/button-group.d.ts +1 -1
  23. package/es/components/button/src/button-group.vue.d.ts +1 -1
  24. package/es/components/button/src/button.d.ts +1 -1
  25. package/es/components/button/src/button.vue.d.ts +3 -3
  26. package/es/components/button/src/use-button.d.ts +1 -1
  27. package/es/components/calendar/src/calendar.mjs.map +1 -1
  28. package/es/components/calendar/src/calendar.vue.d.ts +1 -1
  29. package/es/components/calendar/style/css.mjs +1 -1
  30. package/es/components/calendar/style/index.mjs +1 -1
  31. package/es/components/card/src/card.d.ts +8 -7
  32. package/es/components/card/src/card.mjs +27 -3
  33. package/es/components/card/src/card.mjs.map +1 -1
  34. package/es/components/card/src/card.vue.d.ts +5 -1
  35. package/es/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  36. package/es/components/card/src/card2.mjs.map +1 -1
  37. package/es/components/carousel/src/carousel.d.ts +2 -2
  38. package/es/components/carousel/src/carousel.vue.d.ts +4 -4
  39. package/es/components/cascader/src/cascader.d.ts +6 -107
  40. package/es/components/cascader/src/cascader.mjs.map +1 -1
  41. package/es/components/cascader/src/cascader.vue.d.ts +20 -18
  42. package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  43. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  44. package/es/components/cascader-panel/src/index.vue.d.ts +3 -3
  45. package/es/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
  46. package/es/components/checkbox/src/checkbox-group.vue.d.ts +4 -4
  47. package/es/components/checkbox/src/checkbox.d.ts +8 -8
  48. package/es/components/checkbox/src/checkbox.vue.d.ts +5 -5
  49. package/es/components/col/src/col.vue.d.ts +1 -1
  50. package/es/components/collapse/src/collapse.d.ts +1 -1
  51. package/es/components/collapse/src/collapse.vue.d.ts +1 -1
  52. package/es/components/color-picker/src/color-picker.d.ts +3 -102
  53. package/es/components/color-picker/src/color-picker.mjs +1 -0
  54. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  55. package/es/components/color-picker/src/color-picker.vue.d.ts +13 -11
  56. package/es/components/color-picker-panel/src/color-picker-panel.d.ts +3 -9
  57. package/es/components/color-picker-panel/src/color-picker-panel.mjs +9 -5
  58. package/es/components/color-picker-panel/src/color-picker-panel.mjs.map +1 -1
  59. package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +4 -1
  60. package/es/components/color-picker-panel/src/color-picker-panel.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  61. package/es/components/color-picker-panel/src/color-picker-panel2.mjs.map +1 -1
  62. package/es/components/config-provider/src/config-provider.d.ts +1 -1
  63. package/es/components/date-picker/src/date-picker.d.ts +16 -216
  64. package/es/components/date-picker/src/props.d.ts +4 -104
  65. package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  66. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
  67. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
  68. package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  69. package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
  70. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +4 -4
  71. package/es/components/date-picker-panel/src/panel-utils.d.ts +9 -9
  72. package/es/components/date-picker-panel/src/props/basic-date-table.mjs.map +1 -1
  73. package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  74. package/es/components/descriptions/src/description-item.d.ts +18 -18
  75. package/es/components/descriptions/src/description.vue.d.ts +1 -1
  76. package/es/components/dialog/src/dialog-content.d.ts +10 -6
  77. package/es/components/dialog/src/dialog-content.mjs +32 -5
  78. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  79. package/es/components/dialog/src/dialog-content.vue.d.ts +4 -0
  80. package/es/components/dialog/src/dialog.d.ts +10 -5
  81. package/es/components/dialog/src/dialog.mjs +11 -14
  82. package/es/components/dialog/src/dialog.mjs.map +1 -1
  83. package/es/components/dialog/src/dialog.vue.d.ts +8 -3
  84. package/es/components/divider/src/divider.d.ts +1 -1
  85. package/es/components/divider/src/divider.vue.d.ts +1 -1
  86. package/es/components/drawer/src/drawer.d.ts +5 -4
  87. package/es/components/drawer/src/drawer.vue.d.ts +8 -3
  88. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  89. package/es/components/dropdown/src/dropdown-item.vue.d.ts +3 -3
  90. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  91. package/es/components/dropdown/src/dropdown.d.ts +6 -107
  92. package/es/components/dropdown/src/dropdown.vue.d.ts +97 -295
  93. package/es/components/dropdown/style/css.mjs +1 -1
  94. package/es/components/dropdown/style/index.mjs +1 -1
  95. package/es/components/form/src/form-item.d.ts +2 -2
  96. package/es/components/form/src/form-item.vue.d.ts +1 -1
  97. package/es/components/form/src/form.d.ts +2 -2
  98. package/es/components/image/src/image.mjs.map +1 -1
  99. package/es/components/image/src/image.vue.d.ts +3 -3
  100. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  101. package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  102. package/es/components/input/src/input.d.ts +3 -3
  103. package/es/components/input/src/input.vue.d.ts +16 -16
  104. package/es/components/input-number/src/input-number.d.ts +2 -2
  105. package/es/components/input-number/src/input-number.vue.d.ts +7 -7
  106. package/es/components/input-otp/src/input-otp.vue.d.ts +4 -4
  107. package/es/components/input-tag/src/input-tag.d.ts +1 -1
  108. package/es/components/input-tag/src/input-tag.vue.d.ts +10 -10
  109. package/es/components/link/src/link.d.ts +1 -1
  110. package/es/components/link/src/link.mjs.map +1 -1
  111. package/es/components/link/src/link.vue.d.ts +1 -1
  112. package/es/components/mention/src/mention.d.ts +5 -106
  113. package/es/components/mention/src/mention.vue.d.ts +5 -5
  114. package/es/components/mention/src/mention.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  115. package/es/components/mention/src/mention2.mjs.map +1 -1
  116. package/es/components/menu/src/menu.d.ts +17 -29
  117. package/es/components/menu/src/menu.mjs +18 -2
  118. package/es/components/menu/src/menu.mjs.map +1 -1
  119. package/es/components/menu/src/sub-menu.d.ts +10 -22
  120. package/es/components/menu/src/sub-menu.mjs +18 -2
  121. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  122. package/es/components/message/src/message.d.ts +4 -4
  123. package/es/components/message/src/message.mjs +6 -1
  124. package/es/components/message/src/message.mjs.map +1 -1
  125. package/es/components/message/src/message.vue.d.ts +6 -5
  126. package/es/components/message/src/method.mjs.map +1 -1
  127. package/es/components/message-box/src/index.vue.d.ts +59 -67
  128. package/es/components/notification/src/notification.d.ts +4 -3
  129. package/es/components/notification/src/notification.mjs +6 -1
  130. package/es/components/notification/src/notification.mjs.map +1 -1
  131. package/es/components/notification/src/notification.vue.d.ts +5 -4
  132. package/es/components/overlay/index.d.ts +4 -12
  133. package/es/components/overlay/src/overlay.d.ts +5 -18
  134. package/es/components/overlay/src/overlay.mjs +9 -5
  135. package/es/components/overlay/src/overlay.mjs.map +1 -1
  136. package/es/components/pagination/src/components/sizes.d.ts +4 -13
  137. package/es/components/pagination/src/components/sizes.mjs +18 -2
  138. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  139. package/es/components/pagination/src/components/sizes.vue.d.ts +7 -24
  140. package/es/components/pagination/src/pagination.d.ts +12 -25
  141. package/es/components/pagination/src/pagination.mjs +15 -2
  142. package/es/components/pagination/src/pagination.mjs.map +1 -1
  143. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  144. package/es/components/popconfirm/src/popconfirm.vue.d.ts +5 -5
  145. package/es/components/popover/src/popover.d.ts +5 -105
  146. package/es/components/popover/src/popover.mjs +1 -0
  147. package/es/components/popover/src/popover.mjs.map +1 -1
  148. package/es/components/popover/src/popover.vue.d.ts +13 -12
  149. package/es/components/popper/src/composables/use-content-dom.d.ts +2 -25
  150. package/es/components/popper/src/composables/use-content.d.ts +4 -4
  151. package/es/components/popper/src/content.d.ts +8 -18
  152. package/es/components/popper/src/content.mjs +13 -7
  153. package/es/components/popper/src/content.mjs.map +1 -1
  154. package/es/components/popper/src/content.vue.d.ts +17 -15
  155. package/es/components/popper/src/popper.d.ts +2 -2
  156. package/es/components/popper/src/popper.mjs.map +1 -1
  157. package/es/components/progress/src/progress.d.ts +1 -1
  158. package/es/components/progress/src/progress.vue.d.ts +1 -1
  159. package/es/components/radio/src/radio-button.d.ts +3 -3
  160. package/es/components/radio/src/radio-button.vue.d.ts +2 -2
  161. package/es/components/radio/src/radio-group.vue.d.ts +5 -5
  162. package/es/components/radio/src/radio.d.ts +6 -6
  163. package/es/components/radio/src/radio.vue.d.ts +3 -3
  164. package/es/components/rate/src/rate.vue.d.ts +1 -1
  165. package/es/components/rate/src/rate.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  166. package/es/components/rate/src/rate2.mjs.map +1 -1
  167. package/es/components/result/src/result.d.ts +1 -1
  168. package/es/components/row/src/row.d.ts +1 -1
  169. package/es/components/scrollbar/src/scrollbar.d.ts +5 -4
  170. package/es/components/scrollbar/src/scrollbar.mjs +12 -2
  171. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  172. package/es/components/scrollbar/src/scrollbar.vue.d.ts +4 -3
  173. package/es/components/scrollbar/src/thumb.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  174. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  175. package/es/components/segmented/index.d.ts +3 -3
  176. package/es/components/segmented/src/segmented.d.ts +1 -1
  177. package/es/components/segmented/src/segmented.vue.d.ts +1 -1
  178. package/es/components/select/src/option.d.ts +2 -2
  179. package/es/components/select/src/option.vue.d.ts +5 -5
  180. package/es/components/select/src/select-dropdown.vue.d.ts +2 -1
  181. package/es/components/select/src/select.d.ts +9 -13
  182. package/es/components/select/src/select.mjs +15 -2
  183. package/es/components/select/src/select.mjs.map +1 -1
  184. package/es/components/select/src/select.vue.d.ts +113 -119
  185. package/es/components/select/src/select.vue_vue_type_script_lang.mjs.map +1 -1
  186. package/es/components/select/src/select2.mjs.map +1 -1
  187. package/es/components/select/src/useOption.d.ts +2 -2
  188. package/es/components/select/src/useSelect.d.ts +5 -5
  189. package/es/components/select/src/useSelect.mjs.map +1 -1
  190. package/es/components/select-v2/src/defaults.d.ts +3 -103
  191. package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
  192. package/es/components/select-v2/src/select.vue.d.ts +89 -287
  193. package/es/components/select-v2/src/useSelect.d.ts +1 -1
  194. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  195. package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
  196. package/es/components/slider/src/button.d.ts +2 -1
  197. package/es/components/slider/src/button.mjs +10 -2
  198. package/es/components/slider/src/button.mjs.map +1 -1
  199. package/es/components/slider/src/button.vue.d.ts +5 -3
  200. package/es/components/slider/src/composables/use-marks.mjs.map +1 -1
  201. package/es/components/slider/src/slider.d.ts +2 -2
  202. package/es/components/slider/src/slider.mjs +6 -1
  203. package/es/components/slider/src/slider.mjs.map +1 -1
  204. package/es/components/slider/src/slider.vue.d.ts +8 -8
  205. package/es/components/space/src/space.d.ts +7 -7
  206. package/es/components/space/src/space.mjs +2 -1
  207. package/es/components/space/src/space.mjs.map +1 -1
  208. package/es/components/space/src/use-space.d.ts +2 -3
  209. package/es/components/splitter/src/split-bar.vue.d.ts +1 -1
  210. package/es/components/steps/src/item.d.ts +1 -1
  211. package/es/components/steps/src/item.vue.d.ts +1 -1
  212. package/es/components/steps/src/steps.d.ts +2 -2
  213. package/es/components/steps/src/steps.vue.d.ts +1 -1
  214. package/es/components/switch/src/switch.vue.d.ts +3 -3
  215. package/es/components/table/src/filter-panel.vue.d.ts +89 -86
  216. package/es/components/table/src/table/defaults.d.ts +5 -5
  217. package/es/components/table/src/table/defaults.mjs.map +1 -1
  218. package/es/components/table/src/table/style-helper.d.ts +1 -1
  219. package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
  220. package/es/components/table/src/table-column/defaults.d.ts +4 -4
  221. package/es/components/table/src/table-header/index.d.ts +14 -14
  222. package/es/components/table/src/table.vue.d.ts +4 -4
  223. package/es/components/tabs/src/tab-nav.d.ts +1 -1
  224. package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
  225. package/es/components/tabs/src/tabs.d.ts +5 -5
  226. package/es/components/tag/src/tag.vue.d.ts +2 -2
  227. package/es/components/text/src/text.vue.d.ts +1 -1
  228. package/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
  229. package/es/components/time-picker/src/common/picker.vue.d.ts +22 -222
  230. package/es/components/time-picker/src/common/props.d.ts +4 -104
  231. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  232. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  233. package/es/components/time-picker/src/time-picker.d.ts +16 -216
  234. package/es/components/time-select/src/time-select.d.ts +6 -10
  235. package/es/components/time-select/src/time-select.mjs +15 -2
  236. package/es/components/time-select/src/time-select.mjs.map +1 -1
  237. package/es/components/time-select/src/time-select.vue.d.ts +11 -10
  238. package/es/components/timeline/src/timeline-item.vue.d.ts +2 -2
  239. package/es/components/tooltip/src/content.d.ts +4 -199
  240. package/es/components/tooltip/src/content.vue.d.ts +18 -16
  241. package/es/components/tooltip/src/tooltip.d.ts +5 -202
  242. package/es/components/tooltip/src/tooltip.vue.d.ts +19 -18
  243. package/es/components/tooltip/src/trigger.d.ts +1 -1
  244. package/es/components/tour/src/content.d.ts +1 -1
  245. package/es/components/tour/src/content.vue.d.ts +1 -1
  246. package/es/components/tour/src/step.d.ts +1 -1
  247. package/es/components/tour/src/tour.d.ts +1 -1
  248. package/es/components/tour/src/tour.vue.d.ts +3 -3
  249. package/es/components/transfer/src/transfer.vue.d.ts +1 -1
  250. package/es/components/tree/src/tree-node.vue.d.ts +14 -14
  251. package/es/components/tree/src/tree.vue.d.ts +16 -16
  252. package/es/components/tree-select/src/select.mjs +1 -5
  253. package/es/components/tree-select/src/select.mjs.map +1 -1
  254. package/es/components/tree-select/src/tree-select-option.d.ts +5 -5
  255. package/es/components/tree-select/src/tree-select.vue.d.ts +33 -41
  256. package/es/components/tree-v2/src/composables/useTree.d.ts +9 -8
  257. package/es/components/tree-v2/src/tree.vue.d.ts +2 -2
  258. package/es/components/upload/src/upload-content.d.ts +1 -1
  259. package/es/components/upload/src/upload-content.vue.d.ts +2 -2
  260. package/es/components/upload/src/upload-list.d.ts +1 -1
  261. package/es/components/upload/src/upload.d.ts +2 -2
  262. package/es/components/upload/src/upload.mjs.map +1 -1
  263. package/es/components/upload/src/upload.vue.d.ts +3 -3
  264. package/es/components/virtual-list/src/builders/build-grid.d.ts +4 -3
  265. package/es/components/virtual-list/src/builders/build-list.d.ts +5 -4
  266. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -3
  267. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +5 -4
  268. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -3
  269. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +5 -4
  270. package/es/components/virtual-list/src/components/scrollbar.d.ts +5 -3
  271. package/es/components/virtual-list/src/props.d.ts +5 -4
  272. package/es/components/virtual-list/src/props.mjs +15 -2
  273. package/es/components/virtual-list/src/props.mjs.map +1 -1
  274. package/es/components/watermark/src/watermark.mjs.map +1 -1
  275. package/es/hooks/use-floating/index.d.ts +8 -8
  276. package/es/hooks/use-popper/index.d.ts +4 -4
  277. package/es/hooks/use-throttle-render/index.mjs.map +1 -1
  278. package/es/utils/index.d.ts +2 -2
  279. package/es/utils/typescript.d.ts +2 -1
  280. package/es/utils/typescript.mjs.map +1 -1
  281. package/es/version.d.ts +1 -1
  282. package/es/version.mjs +1 -1
  283. package/es/version.mjs.map +1 -1
  284. package/lib/components/affix/src/affix.vue.d.ts +4 -4
  285. package/lib/components/alert/src/alert.d.ts +1 -1
  286. package/lib/components/alert/src/alert.vue.d.ts +1 -1
  287. package/lib/components/anchor/src/anchor.vue.d.ts +2 -2
  288. package/lib/components/autocomplete/src/autocomplete.d.ts +6 -107
  289. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  290. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
  291. package/lib/components/autocomplete/src/autocomplete.vue_vue_type_script_setup_true_lang.js.map +1 -1
  292. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  293. package/lib/components/avatar/src/avatar-group-props.d.ts +8 -105
  294. package/lib/components/avatar/src/avatar-group-props.js +9 -1
  295. package/lib/components/avatar/src/avatar-group-props.js.map +1 -1
  296. package/lib/components/avatar/src/avatar-group.d.ts +17 -210
  297. package/lib/components/avatar/src/avatar.d.ts +2 -2
  298. package/lib/components/backtop/src/backtop.vue.d.ts +1 -1
  299. package/lib/components/badge/src/badge.d.ts +3 -7
  300. package/lib/components/badge/src/badge.js +9 -1
  301. package/lib/components/badge/src/badge.js.map +1 -1
  302. package/lib/components/badge/src/badge.vue.d.ts +2 -0
  303. package/lib/components/badge/src/badge.vue_vue_type_script_setup_true_lang.js.map +1 -1
  304. package/lib/components/badge/src/badge2.js.map +1 -1
  305. package/lib/components/button/src/button-group.d.ts +1 -1
  306. package/lib/components/button/src/button-group.vue.d.ts +1 -1
  307. package/lib/components/button/src/button.d.ts +1 -1
  308. package/lib/components/button/src/button.vue.d.ts +3 -3
  309. package/lib/components/button/src/use-button.d.ts +1 -1
  310. package/lib/components/calendar/src/calendar.js.map +1 -1
  311. package/lib/components/calendar/src/calendar.vue.d.ts +1 -1
  312. package/lib/components/calendar/style/css.js +1 -1
  313. package/lib/components/calendar/style/index.js +1 -1
  314. package/lib/components/card/src/card.d.ts +8 -7
  315. package/lib/components/card/src/card.js +27 -3
  316. package/lib/components/card/src/card.js.map +1 -1
  317. package/lib/components/card/src/card.vue.d.ts +5 -1
  318. package/lib/components/card/src/card.vue_vue_type_script_setup_true_lang.js.map +1 -1
  319. package/lib/components/card/src/card2.js.map +1 -1
  320. package/lib/components/carousel/src/carousel.d.ts +2 -2
  321. package/lib/components/carousel/src/carousel.vue.d.ts +4 -4
  322. package/lib/components/cascader/src/cascader.d.ts +6 -107
  323. package/lib/components/cascader/src/cascader.js.map +1 -1
  324. package/lib/components/cascader/src/cascader.vue.d.ts +20 -18
  325. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  326. package/lib/components/cascader/src/cascader2.js.map +1 -1
  327. package/lib/components/cascader-panel/src/index.vue.d.ts +3 -3
  328. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
  329. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +4 -4
  330. package/lib/components/checkbox/src/checkbox.d.ts +8 -8
  331. package/lib/components/checkbox/src/checkbox.vue.d.ts +5 -5
  332. package/lib/components/col/src/col.vue.d.ts +1 -1
  333. package/lib/components/collapse/src/collapse.d.ts +1 -1
  334. package/lib/components/collapse/src/collapse.vue.d.ts +1 -1
  335. package/lib/components/color-picker/src/color-picker.d.ts +3 -102
  336. package/lib/components/color-picker/src/color-picker.js +1 -0
  337. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  338. package/lib/components/color-picker/src/color-picker.vue.d.ts +13 -11
  339. package/lib/components/color-picker-panel/src/color-picker-panel.d.ts +3 -9
  340. package/lib/components/color-picker-panel/src/color-picker-panel.js +9 -5
  341. package/lib/components/color-picker-panel/src/color-picker-panel.js.map +1 -1
  342. package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +4 -1
  343. package/lib/components/color-picker-panel/src/color-picker-panel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  344. package/lib/components/color-picker-panel/src/color-picker-panel2.js.map +1 -1
  345. package/lib/components/config-provider/src/config-provider.d.ts +1 -1
  346. package/lib/components/date-picker/src/date-picker.d.ts +16 -216
  347. package/lib/components/date-picker/src/props.d.ts +4 -104
  348. package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  349. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
  350. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
  351. package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  352. package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
  353. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +4 -4
  354. package/lib/components/date-picker-panel/src/panel-utils.d.ts +9 -9
  355. package/lib/components/date-picker-panel/src/props/basic-date-table.js.map +1 -1
  356. package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  357. package/lib/components/descriptions/src/description-item.d.ts +18 -18
  358. package/lib/components/descriptions/src/description.vue.d.ts +1 -1
  359. package/lib/components/dialog/src/dialog-content.d.ts +10 -6
  360. package/lib/components/dialog/src/dialog-content.js +31 -4
  361. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  362. package/lib/components/dialog/src/dialog-content.vue.d.ts +4 -0
  363. package/lib/components/dialog/src/dialog.d.ts +10 -5
  364. package/lib/components/dialog/src/dialog.js +11 -14
  365. package/lib/components/dialog/src/dialog.js.map +1 -1
  366. package/lib/components/dialog/src/dialog.vue.d.ts +8 -3
  367. package/lib/components/divider/src/divider.d.ts +1 -1
  368. package/lib/components/divider/src/divider.vue.d.ts +1 -1
  369. package/lib/components/drawer/src/drawer.d.ts +5 -4
  370. package/lib/components/drawer/src/drawer.vue.d.ts +8 -3
  371. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  372. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +3 -3
  373. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  374. package/lib/components/dropdown/src/dropdown.d.ts +6 -107
  375. package/lib/components/dropdown/src/dropdown.vue.d.ts +97 -295
  376. package/lib/components/dropdown/style/css.js +1 -1
  377. package/lib/components/dropdown/style/index.js +1 -1
  378. package/lib/components/form/src/form-item.d.ts +2 -2
  379. package/lib/components/form/src/form-item.vue.d.ts +1 -1
  380. package/lib/components/form/src/form.d.ts +2 -2
  381. package/lib/components/image/src/image.js.map +1 -1
  382. package/lib/components/image/src/image.vue.d.ts +3 -3
  383. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  384. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  385. package/lib/components/input/src/input.d.ts +3 -3
  386. package/lib/components/input/src/input.vue.d.ts +16 -16
  387. package/lib/components/input-number/src/input-number.d.ts +2 -2
  388. package/lib/components/input-number/src/input-number.vue.d.ts +7 -7
  389. package/lib/components/input-otp/src/input-otp.vue.d.ts +4 -4
  390. package/lib/components/input-tag/src/input-tag.d.ts +1 -1
  391. package/lib/components/input-tag/src/input-tag.vue.d.ts +10 -10
  392. package/lib/components/link/src/link.d.ts +1 -1
  393. package/lib/components/link/src/link.js.map +1 -1
  394. package/lib/components/link/src/link.vue.d.ts +1 -1
  395. package/lib/components/mention/src/mention.d.ts +5 -106
  396. package/lib/components/mention/src/mention.vue.d.ts +5 -5
  397. package/lib/components/mention/src/mention.vue_vue_type_script_setup_true_lang.js.map +1 -1
  398. package/lib/components/mention/src/mention2.js.map +1 -1
  399. package/lib/components/menu/src/menu.d.ts +17 -29
  400. package/lib/components/menu/src/menu.js +18 -2
  401. package/lib/components/menu/src/menu.js.map +1 -1
  402. package/lib/components/menu/src/sub-menu.d.ts +10 -22
  403. package/lib/components/menu/src/sub-menu.js +18 -2
  404. package/lib/components/menu/src/sub-menu.js.map +1 -1
  405. package/lib/components/message/src/message.d.ts +4 -4
  406. package/lib/components/message/src/message.js +6 -1
  407. package/lib/components/message/src/message.js.map +1 -1
  408. package/lib/components/message/src/message.vue.d.ts +6 -5
  409. package/lib/components/message/src/method.js.map +1 -1
  410. package/lib/components/message-box/src/index.vue.d.ts +59 -67
  411. package/lib/components/notification/src/notification.d.ts +4 -3
  412. package/lib/components/notification/src/notification.js +6 -1
  413. package/lib/components/notification/src/notification.js.map +1 -1
  414. package/lib/components/notification/src/notification.vue.d.ts +5 -4
  415. package/lib/components/overlay/index.d.ts +4 -12
  416. package/lib/components/overlay/src/overlay.d.ts +5 -18
  417. package/lib/components/overlay/src/overlay.js +9 -5
  418. package/lib/components/overlay/src/overlay.js.map +1 -1
  419. package/lib/components/pagination/src/components/sizes.d.ts +4 -13
  420. package/lib/components/pagination/src/components/sizes.js +18 -2
  421. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  422. package/lib/components/pagination/src/components/sizes.vue.d.ts +7 -24
  423. package/lib/components/pagination/src/pagination.d.ts +12 -25
  424. package/lib/components/pagination/src/pagination.js +15 -2
  425. package/lib/components/pagination/src/pagination.js.map +1 -1
  426. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  427. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +5 -5
  428. package/lib/components/popover/src/popover.d.ts +5 -105
  429. package/lib/components/popover/src/popover.js +1 -0
  430. package/lib/components/popover/src/popover.js.map +1 -1
  431. package/lib/components/popover/src/popover.vue.d.ts +13 -12
  432. package/lib/components/popper/src/composables/use-content-dom.d.ts +2 -25
  433. package/lib/components/popper/src/composables/use-content.d.ts +4 -4
  434. package/lib/components/popper/src/content.d.ts +8 -18
  435. package/lib/components/popper/src/content.js +13 -7
  436. package/lib/components/popper/src/content.js.map +1 -1
  437. package/lib/components/popper/src/content.vue.d.ts +17 -15
  438. package/lib/components/popper/src/popper.d.ts +2 -2
  439. package/lib/components/popper/src/popper.js.map +1 -1
  440. package/lib/components/progress/src/progress.d.ts +1 -1
  441. package/lib/components/progress/src/progress.vue.d.ts +1 -1
  442. package/lib/components/radio/src/radio-button.d.ts +3 -3
  443. package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
  444. package/lib/components/radio/src/radio-group.vue.d.ts +5 -5
  445. package/lib/components/radio/src/radio.d.ts +6 -6
  446. package/lib/components/radio/src/radio.vue.d.ts +3 -3
  447. package/lib/components/rate/src/rate.vue.d.ts +1 -1
  448. package/lib/components/rate/src/rate.vue_vue_type_script_setup_true_lang.js.map +1 -1
  449. package/lib/components/rate/src/rate2.js.map +1 -1
  450. package/lib/components/result/src/result.d.ts +1 -1
  451. package/lib/components/row/src/row.d.ts +1 -1
  452. package/lib/components/scrollbar/src/scrollbar.d.ts +5 -4
  453. package/lib/components/scrollbar/src/scrollbar.js +12 -2
  454. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  455. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +4 -3
  456. package/lib/components/scrollbar/src/thumb.vue_vue_type_script_setup_true_lang.js.map +1 -1
  457. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  458. package/lib/components/segmented/index.d.ts +3 -3
  459. package/lib/components/segmented/src/segmented.d.ts +1 -1
  460. package/lib/components/segmented/src/segmented.vue.d.ts +1 -1
  461. package/lib/components/select/src/option.d.ts +2 -2
  462. package/lib/components/select/src/option.vue.d.ts +5 -5
  463. package/lib/components/select/src/select-dropdown.vue.d.ts +2 -1
  464. package/lib/components/select/src/select.d.ts +9 -13
  465. package/lib/components/select/src/select.js +15 -2
  466. package/lib/components/select/src/select.js.map +1 -1
  467. package/lib/components/select/src/select.vue.d.ts +113 -119
  468. package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
  469. package/lib/components/select/src/select2.js.map +1 -1
  470. package/lib/components/select/src/useOption.d.ts +2 -2
  471. package/lib/components/select/src/useSelect.d.ts +5 -5
  472. package/lib/components/select/src/useSelect.js.map +1 -1
  473. package/lib/components/select-v2/src/defaults.d.ts +3 -103
  474. package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
  475. package/lib/components/select-v2/src/select.vue.d.ts +89 -287
  476. package/lib/components/select-v2/src/useSelect.d.ts +1 -1
  477. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  478. package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
  479. package/lib/components/slider/src/button.d.ts +2 -1
  480. package/lib/components/slider/src/button.js +9 -1
  481. package/lib/components/slider/src/button.js.map +1 -1
  482. package/lib/components/slider/src/button.vue.d.ts +5 -3
  483. package/lib/components/slider/src/composables/use-marks.js.map +1 -1
  484. package/lib/components/slider/src/slider.d.ts +2 -2
  485. package/lib/components/slider/src/slider.js +6 -1
  486. package/lib/components/slider/src/slider.js.map +1 -1
  487. package/lib/components/slider/src/slider.vue.d.ts +8 -8
  488. package/lib/components/space/src/space.d.ts +7 -7
  489. package/lib/components/space/src/space.js +2 -1
  490. package/lib/components/space/src/space.js.map +1 -1
  491. package/lib/components/space/src/use-space.d.ts +2 -3
  492. package/lib/components/splitter/src/split-bar.vue.d.ts +1 -1
  493. package/lib/components/steps/src/item.d.ts +1 -1
  494. package/lib/components/steps/src/item.vue.d.ts +1 -1
  495. package/lib/components/steps/src/steps.d.ts +2 -2
  496. package/lib/components/steps/src/steps.vue.d.ts +1 -1
  497. package/lib/components/switch/src/switch.vue.d.ts +3 -3
  498. package/lib/components/table/src/filter-panel.vue.d.ts +89 -86
  499. package/lib/components/table/src/table/defaults.d.ts +5 -5
  500. package/lib/components/table/src/table/defaults.js.map +1 -1
  501. package/lib/components/table/src/table/style-helper.d.ts +1 -1
  502. package/lib/components/table/src/table-body/events-helper.js.map +1 -1
  503. package/lib/components/table/src/table-column/defaults.d.ts +4 -4
  504. package/lib/components/table/src/table-header/index.d.ts +14 -14
  505. package/lib/components/table/src/table.vue.d.ts +4 -4
  506. package/lib/components/tabs/src/tab-nav.d.ts +1 -1
  507. package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
  508. package/lib/components/tabs/src/tabs.d.ts +5 -5
  509. package/lib/components/tag/src/tag.vue.d.ts +2 -2
  510. package/lib/components/text/src/text.vue.d.ts +1 -1
  511. package/lib/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
  512. package/lib/components/time-picker/src/common/picker.vue.d.ts +22 -222
  513. package/lib/components/time-picker/src/common/props.d.ts +4 -104
  514. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  515. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  516. package/lib/components/time-picker/src/time-picker.d.ts +16 -216
  517. package/lib/components/time-select/src/time-select.d.ts +6 -10
  518. package/lib/components/time-select/src/time-select.js +15 -2
  519. package/lib/components/time-select/src/time-select.js.map +1 -1
  520. package/lib/components/time-select/src/time-select.vue.d.ts +11 -10
  521. package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -2
  522. package/lib/components/tooltip/src/content.d.ts +4 -199
  523. package/lib/components/tooltip/src/content.vue.d.ts +18 -16
  524. package/lib/components/tooltip/src/tooltip.d.ts +5 -202
  525. package/lib/components/tooltip/src/tooltip.vue.d.ts +19 -18
  526. package/lib/components/tooltip/src/trigger.d.ts +1 -1
  527. package/lib/components/tour/src/content.d.ts +1 -1
  528. package/lib/components/tour/src/content.vue.d.ts +1 -1
  529. package/lib/components/tour/src/step.d.ts +1 -1
  530. package/lib/components/tour/src/tour.d.ts +1 -1
  531. package/lib/components/tour/src/tour.vue.d.ts +3 -3
  532. package/lib/components/transfer/src/transfer.vue.d.ts +1 -1
  533. package/lib/components/tree/src/tree-node.vue.d.ts +14 -14
  534. package/lib/components/tree/src/tree.vue.d.ts +16 -16
  535. package/lib/components/tree-select/src/select.js +1 -5
  536. package/lib/components/tree-select/src/select.js.map +1 -1
  537. package/lib/components/tree-select/src/tree-select-option.d.ts +5 -5
  538. package/lib/components/tree-select/src/tree-select.vue.d.ts +33 -41
  539. package/lib/components/tree-v2/src/composables/useTree.d.ts +9 -8
  540. package/lib/components/tree-v2/src/tree.vue.d.ts +2 -2
  541. package/lib/components/upload/src/upload-content.d.ts +1 -1
  542. package/lib/components/upload/src/upload-content.vue.d.ts +2 -2
  543. package/lib/components/upload/src/upload-list.d.ts +1 -1
  544. package/lib/components/upload/src/upload.d.ts +2 -2
  545. package/lib/components/upload/src/upload.js.map +1 -1
  546. package/lib/components/upload/src/upload.vue.d.ts +3 -3
  547. package/lib/components/virtual-list/src/builders/build-grid.d.ts +4 -3
  548. package/lib/components/virtual-list/src/builders/build-list.d.ts +5 -4
  549. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -3
  550. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +5 -4
  551. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -3
  552. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +5 -4
  553. package/lib/components/virtual-list/src/components/scrollbar.d.ts +5 -3
  554. package/lib/components/virtual-list/src/props.d.ts +5 -4
  555. package/lib/components/virtual-list/src/props.js +15 -2
  556. package/lib/components/virtual-list/src/props.js.map +1 -1
  557. package/lib/components/watermark/src/watermark.js.map +1 -1
  558. package/lib/hooks/use-floating/index.d.ts +8 -8
  559. package/lib/hooks/use-popper/index.d.ts +4 -4
  560. package/lib/hooks/use-throttle-render/index.js.map +1 -1
  561. package/lib/utils/index.d.ts +2 -2
  562. package/lib/utils/typescript.d.ts +2 -1
  563. package/lib/utils/typescript.js.map +1 -1
  564. package/lib/version.d.ts +1 -1
  565. package/lib/version.js +1 -1
  566. package/lib/version.js.map +1 -1
  567. package/package.json +2 -2
  568. package/web-types.json +1 -1
@@ -13,8 +13,8 @@ declare const __VLS_base: _$vue.DefineComponent<CollapseProps, {
13
13
  "update:modelValue": (value: CollapseModelValue) => void;
14
14
  change: (value: CollapseModelValue) => void;
15
15
  }, string, _$vue.PublicProps, Readonly<CollapseProps> & Readonly<{
16
- onChange?: ((value: CollapseModelValue) => any) | undefined;
17
16
  "onUpdate:modelValue"?: ((value: CollapseModelValue) => any) | undefined;
17
+ onChange?: ((value: CollapseModelValue) => any) | undefined;
18
18
  }>, {
19
19
  modelValue: CollapseModelValue;
20
20
  expandIconPosition: CollapseIconPositionType;
@@ -1,5 +1,6 @@
1
1
  import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
2
2
  import { ComponentSize } from "../../../constants/size.js";
3
+ import { ClassValue } from "../../../utils/typescript.js";
3
4
  import { ElTooltipContentProps } from "../../tooltip/src/content.js";
4
5
  import _default from "./color-picker.vue.js";
5
6
  import { UseEmptyValuesProps } from "../../../hooks/use-empty-values/index.js";
@@ -96,108 +97,7 @@ declare const colorPickerProps: {
96
97
  readonly validator: ((val: unknown) => boolean) | undefined;
97
98
  __epPropKey: true;
98
99
  };
99
- readonly popperClass: {
100
- readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | {
101
- [x: string]: boolean;
102
- } | (string | {
103
- [x: string]: boolean;
104
- } | (string | {
105
- [x: string]: boolean;
106
- } | (string | {
107
- [x: string]: boolean;
108
- } | (string | {
109
- [x: string]: boolean;
110
- } | (string | {
111
- [x: string]: boolean;
112
- } | (string | {
113
- [x: string]: boolean;
114
- } | (string | {
115
- [x: string]: boolean;
116
- } | (string | {
117
- [x: string]: boolean;
118
- } | (string | {
119
- [x: string]: boolean;
120
- } | (string | {
121
- [x: string]: boolean;
122
- } | (string | {
123
- [x: string]: boolean;
124
- } | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
125
- [x: string]: boolean;
126
- } | (string | {
127
- [x: string]: boolean;
128
- } | (string | {
129
- [x: string]: boolean;
130
- } | (string | {
131
- [x: string]: boolean;
132
- } | (string | {
133
- [x: string]: boolean;
134
- } | (string | {
135
- [x: string]: boolean;
136
- } | (string | {
137
- [x: string]: boolean;
138
- } | (string | {
139
- [x: string]: boolean;
140
- } | (string | {
141
- [x: string]: boolean;
142
- } | (string | {
143
- [x: string]: boolean;
144
- } | (string | {
145
- [x: string]: boolean;
146
- } | (string | {
147
- [x: string]: boolean;
148
- } | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
149
- [x: string]: boolean;
150
- } | (string | {
151
- [x: string]: boolean;
152
- } | (string | {
153
- [x: string]: boolean;
154
- } | (string | {
155
- [x: string]: boolean;
156
- } | (string | {
157
- [x: string]: boolean;
158
- } | (string | {
159
- [x: string]: boolean;
160
- } | (string | {
161
- [x: string]: boolean;
162
- } | (string | {
163
- [x: string]: boolean;
164
- } | (string | {
165
- [x: string]: boolean;
166
- } | (string | {
167
- [x: string]: boolean;
168
- } | (string | {
169
- [x: string]: boolean;
170
- } | (string | {
171
- [x: string]: boolean;
172
- } | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
173
- [x: string]: boolean;
174
- } | (string | {
175
- [x: string]: boolean;
176
- } | (string | {
177
- [x: string]: boolean;
178
- } | (string | {
179
- [x: string]: boolean;
180
- } | (string | {
181
- [x: string]: boolean;
182
- } | (string | {
183
- [x: string]: boolean;
184
- } | (string | {
185
- [x: string]: boolean;
186
- } | (string | {
187
- [x: string]: boolean;
188
- } | (string | {
189
- [x: string]: boolean;
190
- } | (string | {
191
- [x: string]: boolean;
192
- } | (string | {
193
- [x: string]: boolean;
194
- } | (string | {
195
- [x: string]: boolean;
196
- } | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
197
- readonly required: false;
198
- readonly validator: ((val: unknown) => boolean) | undefined;
199
- __epPropKey: true;
200
- };
100
+ readonly popperClass: EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
201
101
  readonly popperStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
202
102
  readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
203
103
  readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
@@ -237,6 +137,7 @@ declare const colorPickerPropsDefaults: {
237
137
  readonly modelValue: undefined;
238
138
  readonly disabled: undefined;
239
139
  readonly clearable: true;
140
+ readonly popperClass: undefined;
240
141
  readonly popperStyle: undefined;
241
142
  readonly tabindex: 0;
242
143
  readonly teleported: true;
@@ -110,6 +110,7 @@ const colorPickerPropsDefaults = {
110
110
  modelValue: void 0,
111
111
  disabled: void 0,
112
112
  clearable: true,
113
+ popperClass: void 0,
113
114
  popperStyle: void 0,
114
115
  tabindex: 0,
115
116
  teleported: true,
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker.js","names":["buildProps","definePropType","useSizeProp","useTooltipContentProps","useEmptyValuesProps","useAriaProps","UPDATE_MODEL_EVENT","CHANGE_EVENT"],"sources":["../../../../../../packages/components/color-picker/src/color-picker.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ColorFormats } from '@ctrl/tinycolor'\nimport type ColorPicker from './color-picker.vue'\nimport type { AriaProps, UseEmptyValuesProps } from '@element-plus/hooks'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface ColorPickerProps\n extends UseEmptyValuesProps, Pick<AriaProps, 'ariaLabel'> {\n /**\n * @description when color-picker inactive and persistent is false, the color panel will be destroyed\n */\n persistent?: boolean\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description ColorPicker id\n */\n id?: string\n /**\n * @description whether to display the alpha slider\n */\n showAlpha?: boolean\n /**\n * @description color format of v-model\n */\n colorFormat?: ColorFormats\n /**\n * @description whether to disable the ColorPicker\n */\n disabled?: boolean\n /**\n * @description whether to show clear button\n */\n clearable?: boolean\n /**\n * @description size of ColorPicker\n */\n size?: ComponentSize\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for ColorPicker's dropdown\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description ColorPicker tabindex\n */\n tabindex?: string | number\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported?: ElTooltipContentProps['teleported']\n /**\n * @description which color-picker panel appends to\n */\n appendTo?: ElTooltipContentProps['appendTo']\n /**\n * @description predefined color options\n */\n predefine?: string[]\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerProps` instead.\n */\nexport const colorPickerProps = buildProps({\n /**\n * @description when color-picker inactive and persistent is false, the color panel will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description ColorPicker id\n */\n id: String,\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: {\n type: definePropType<ColorFormats>(String),\n },\n /**\n * @description whether to disable the ColorPicker\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of ColorPicker\n */\n size: useSizeProp,\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for ColorPicker's dropdown\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description ColorPicker tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description which color-picker panel appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport const colorPickerEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n [CHANGE_EVENT]: (val: string | null) => isString(val) || isNil(val),\n activeChange: (val: string | null) => isString(val) || isNil(val),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerProps` instead.\n */\nexport type ColorPickerPropsPublic = ExtractPublicPropTypes<\n typeof colorPickerProps\n>\nexport type ColorPickerEmits = typeof colorPickerEmits\nexport type ColorPickerInstance = InstanceType<typeof ColorPicker> & unknown\n\n/**\n * @description default values for ColorPickerProps, used in components that extend ColorPickerProps\n */\nexport const colorPickerPropsDefaults = {\n persistent: true,\n modelValue: undefined,\n disabled: undefined,\n clearable: true,\n popperStyle: undefined,\n tabindex: 0,\n teleported: true,\n validateEvent: true,\n valueOnClear: undefined,\n} as const\n"],"mappings":";;;;;;;;;;;;;;AAoFA,MAAa,mBAAmBA,kBAAAA,WAAW;;;;CAIzC,YAAY;EACV,MAAM;EACN,SAAS;EACV;;;;CAID,YAAY;EACV,MAAMC,kBAAAA,eAA8B,OAAO;EAC3C,SAAS,KAAA;EACV;;;;CAID,IAAI;;;;CAIJ,WAAW;;;;CAIX,aAAa,EACX,MAAMA,kBAAAA,eAA6B,OAAO,EAC3C;;;;CAID,UAAU;EACR,MAAM;EACN,SAAS,KAAA;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,MAAMC,cAAAA;;;;CAIN,aAAaC,gBAAAA,uBAAuB;;;;CAIpC,aAAaA,gBAAAA,uBAAuB;;;;CAIpC,UAAU;EACR,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,YAAYA,gBAAAA,uBAAuB;;;;CAInC,UAAUA,gBAAAA,uBAAuB;;;;CAIjC,WAAW,EACT,MAAMF,kBAAAA,eAAyB,MAAM,EACtC;;;;CAID,eAAe;EACb,MAAM;EACN,SAAS;EACV;CACD,GAAGG,gBAAAA;CACH,GAAGC,gBAAAA,aAAa,CAAC,YAAY,CAAC;CAC/B,CAAU;AACX,MAAa,mBAAmB;EAC7BC,cAAAA,sBAAsB,SAAA,GAAA,YAAA,UAAgC,IAAI,KAAA,GAAA,eAAA,OAAU,IAAI;EACxEC,cAAAA,gBAAgB,SAAA,GAAA,YAAA,UAAgC,IAAI,KAAA,GAAA,eAAA,OAAU,IAAI;CACnE,eAAe,SAAA,GAAA,YAAA,UAAgC,IAAI,KAAA,GAAA,eAAA,OAAU,IAAI;CACjE,QAAQ,QAAoB,eAAe;CAC3C,OAAO,QAAoB,eAAe;CAC1C,aAAa;CACd;;;;AAcD,MAAa,2BAA2B;CACtC,YAAY;CACZ,YAAY,KAAA;CACZ,UAAU,KAAA;CACV,WAAW;CACX,aAAa,KAAA;CACb,UAAU;CACV,YAAY;CACZ,eAAe;CACf,cAAc,KAAA;CACf"}
1
+ {"version":3,"file":"color-picker.js","names":["buildProps","definePropType","useSizeProp","useTooltipContentProps","useEmptyValuesProps","useAriaProps","UPDATE_MODEL_EVENT","CHANGE_EVENT"],"sources":["../../../../../../packages/components/color-picker/src/color-picker.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ColorFormats } from '@ctrl/tinycolor'\nimport type ColorPicker from './color-picker.vue'\nimport type { AriaProps, UseEmptyValuesProps } from '@element-plus/hooks'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface ColorPickerProps\n extends UseEmptyValuesProps, Pick<AriaProps, 'ariaLabel'> {\n /**\n * @description when color-picker inactive and persistent is false, the color panel will be destroyed\n */\n persistent?: boolean\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description ColorPicker id\n */\n id?: string\n /**\n * @description whether to display the alpha slider\n */\n showAlpha?: boolean\n /**\n * @description color format of v-model\n */\n colorFormat?: ColorFormats\n /**\n * @description whether to disable the ColorPicker\n */\n disabled?: boolean\n /**\n * @description whether to show clear button\n */\n clearable?: boolean\n /**\n * @description size of ColorPicker\n */\n size?: ComponentSize\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for ColorPicker's dropdown\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description ColorPicker tabindex\n */\n tabindex?: string | number\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported?: ElTooltipContentProps['teleported']\n /**\n * @description which color-picker panel appends to\n */\n appendTo?: ElTooltipContentProps['appendTo']\n /**\n * @description predefined color options\n */\n predefine?: string[]\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerProps` instead.\n */\nexport const colorPickerProps = buildProps({\n /**\n * @description when color-picker inactive and persistent is false, the color panel will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description ColorPicker id\n */\n id: String,\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: {\n type: definePropType<ColorFormats>(String),\n },\n /**\n * @description whether to disable the ColorPicker\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of ColorPicker\n */\n size: useSizeProp,\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for ColorPicker's dropdown\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description ColorPicker tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description which color-picker panel appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport const colorPickerEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n [CHANGE_EVENT]: (val: string | null) => isString(val) || isNil(val),\n activeChange: (val: string | null) => isString(val) || isNil(val),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerProps` instead.\n */\nexport type ColorPickerPropsPublic = ExtractPublicPropTypes<\n typeof colorPickerProps\n>\nexport type ColorPickerEmits = typeof colorPickerEmits\nexport type ColorPickerInstance = InstanceType<typeof ColorPicker> & unknown\n\n/**\n * @description default values for ColorPickerProps, used in components that extend ColorPickerProps\n */\nexport const colorPickerPropsDefaults = {\n persistent: true,\n modelValue: undefined,\n disabled: undefined,\n clearable: true,\n popperClass: undefined,\n popperStyle: undefined,\n tabindex: 0,\n teleported: true,\n validateEvent: true,\n valueOnClear: undefined,\n} as const\n"],"mappings":";;;;;;;;;;;;;;AAoFA,MAAa,mBAAmBA,kBAAAA,WAAW;;;;CAIzC,YAAY;EACV,MAAM;EACN,SAAS;EACV;;;;CAID,YAAY;EACV,MAAMC,kBAAAA,eAA8B,OAAO;EAC3C,SAAS,KAAA;EACV;;;;CAID,IAAI;;;;CAIJ,WAAW;;;;CAIX,aAAa,EACX,MAAMA,kBAAAA,eAA6B,OAAO,EAC3C;;;;CAID,UAAU;EACR,MAAM;EACN,SAAS,KAAA;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,MAAMC,cAAAA;;;;CAIN,aAAaC,gBAAAA,uBAAuB;;;;CAIpC,aAAaA,gBAAAA,uBAAuB;;;;CAIpC,UAAU;EACR,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,YAAYA,gBAAAA,uBAAuB;;;;CAInC,UAAUA,gBAAAA,uBAAuB;;;;CAIjC,WAAW,EACT,MAAMF,kBAAAA,eAAyB,MAAM,EACtC;;;;CAID,eAAe;EACb,MAAM;EACN,SAAS;EACV;CACD,GAAGG,gBAAAA;CACH,GAAGC,gBAAAA,aAAa,CAAC,YAAY,CAAC;CAC/B,CAAU;AACX,MAAa,mBAAmB;EAC7BC,cAAAA,sBAAsB,SAAA,GAAA,YAAA,UAAgC,IAAI,KAAA,GAAA,eAAA,OAAU,IAAI;EACxEC,cAAAA,gBAAgB,SAAA,GAAA,YAAA,UAAgC,IAAI,KAAA,GAAA,eAAA,OAAU,IAAI;CACnE,eAAe,SAAA,GAAA,YAAA,UAAgC,IAAI,KAAA,GAAA,eAAA,OAAU,IAAI;CACjE,QAAQ,QAAoB,eAAe;CAC3C,OAAO,QAAoB,eAAe;CAC1C,aAAa;CACd;;;;AAcD,MAAa,2BAA2B;CACtC,YAAY;CACZ,YAAY,KAAA;CACZ,UAAU,KAAA;CACV,WAAW;CACX,aAAa,KAAA;CACb,aAAa,KAAA;CACb,UAAU;CACV,YAAY;CACZ,eAAe;CACf,cAAc,KAAA;CACf"}
@@ -1,3 +1,4 @@
1
+ import { ClassValue } from "../../../utils/typescript.js";
1
2
  import Color from "../../color-picker-panel/src/utils/color.js";
2
3
  import { ColorPickerProps } from "./color-picker.js";
3
4
  import * as _$vue from "vue";
@@ -29,29 +30,30 @@ declare const __VLS_export: _$vue.DefineComponent<ColorPickerProps, {
29
30
  */
30
31
  blur: typeof blur;
31
32
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
32
- blur: (evt: FocusEvent) => void;
33
- focus: (evt: FocusEvent) => void;
34
- clear: () => void;
35
33
  "update:modelValue": (val: string | null) => void;
36
34
  change: (val: string | null) => void;
35
+ clear: () => void;
36
+ focus: (evt: FocusEvent) => void;
37
+ blur: (evt: FocusEvent) => void;
37
38
  activeChange: (val: string | null) => void;
38
39
  }, string, _$vue.PublicProps, Readonly<ColorPickerProps> & Readonly<{
40
+ "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
39
41
  onChange?: ((val: string | null) => any) | undefined;
40
- onBlur?: ((evt: FocusEvent) => any) | undefined;
41
- onFocus?: ((evt: FocusEvent) => any) | undefined;
42
42
  onClear?: (() => any) | undefined;
43
- "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
43
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
44
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
44
45
  onActiveChange?: ((val: string | null) => any) | undefined;
45
46
  }>, {
46
- popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
47
+ valueOnClear: string | number | boolean | Function | null;
47
48
  teleported: boolean;
48
- persistent: boolean;
49
49
  disabled: boolean;
50
- clearable: boolean;
51
- validateEvent: boolean;
52
50
  modelValue: string | null;
53
- valueOnClear: string | number | boolean | Function | null;
51
+ clearable: boolean;
54
52
  tabindex: string | number;
53
+ validateEvent: boolean;
54
+ popperClass: string | false | Record<string, any> | ClassValue[] | null;
55
+ popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
56
+ persistent: boolean;
55
57
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
56
58
  declare const _default: typeof __VLS_export;
57
59
  //#endregion
@@ -1,4 +1,5 @@
1
1
  import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
2
+ import { ClassValue } from "../../../utils/typescript.js";
2
3
  import Color from "./utils/color.js";
3
4
  import _default from "./color-picker-panel.vue.js";
4
5
  import * as _$vue from "vue";
@@ -6,8 +7,6 @@ import { ComputedRef, ExtractPublicPropTypes, InjectionKey, StyleValue } from "v
6
7
  import { ColorFormats } from "@ctrl/tinycolor";
7
8
 
8
9
  //#region ../../packages/components/color-picker-panel/src/color-picker-panel.d.ts
9
- type ClassObjectType = Record<string, boolean>;
10
- type ClassType = string | ClassObjectType | ClassType[];
11
10
  interface ColorPickerPanelProps {
12
11
  /**
13
12
  * @description binding value
@@ -40,7 +39,7 @@ interface ColorPickerPanelProps {
40
39
  /**
41
40
  * @description class names will be passed to hue-slider
42
41
  */
43
- hueSliderClass?: ClassType;
42
+ hueSliderClass?: ClassValue;
44
43
  /**
45
44
  * @description styles will be passed to hue-slider
46
45
  */
@@ -67,12 +66,7 @@ declare const colorPickerPanelProps: {
67
66
  __epPropKey: true;
68
67
  };
69
68
  readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
70
- readonly hueSliderClass: {
71
- readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | ClassObjectType | ClassType[]) | (() => ClassType) | (((new (...args: any[]) => string | ClassObjectType | ClassType[]) | (() => ClassType)) | null)[], unknown, unknown>>;
72
- readonly required: false;
73
- readonly validator: ((val: unknown) => boolean) | undefined;
74
- __epPropKey: true;
75
- };
69
+ readonly hueSliderClass: EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
76
70
  readonly hueSliderStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
77
71
  };
78
72
  declare const colorPickerPanelEmits: {
@@ -49,11 +49,15 @@ const colorPickerPanelProps = require_runtime$1.buildProps({
49
49
  /**
50
50
  * @description class names will be passed to <hue-slider />
51
51
  */
52
- hueSliderClass: { type: require_runtime$1.definePropType([
53
- String,
54
- Array,
55
- Object
56
- ]) },
52
+ hueSliderClass: {
53
+ type: require_runtime$1.definePropType([
54
+ String,
55
+ Array,
56
+ Object,
57
+ Boolean
58
+ ]),
59
+ default: void 0
60
+ },
57
61
  /**
58
62
  * @description styles will be passed to <hue-slider />
59
63
  */
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker-panel.js","names":["buildProps","definePropType","UPDATE_MODEL_EVENT"],"sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type {\n ComputedRef,\n ExtractPublicPropTypes,\n InjectionKey,\n StyleValue,\n} from 'vue'\nimport type { ColorFormats } from '@ctrl/tinycolor'\nimport type ColorPickerPanel from './color-picker-panel.vue'\nimport type Color from './utils/color'\n\ntype ClassObjectType = Record<string, boolean>\ntype ClassType = string | ClassObjectType | ClassType[]\n\nexport interface ColorPickerPanelProps {\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description whether the color picker is bordered\n */\n border?: boolean\n /**\n * @description whether to display the alpha slider\n */\n showAlpha?: boolean\n /**\n * @description color format of v-model\n */\n colorFormat?: ColorFormats\n /**\n * @description whether to disable the color picker\n */\n disabled?: boolean\n /**\n * @description predefined color options\n */\n predefine?: string[]\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n /**\n * @description class names will be passed to hue-slider\n */\n hueSliderClass?: ClassType\n /**\n * @description styles will be passed to hue-slider\n */\n hueSliderStyle?: StyleValue\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerPanelProps` instead.\n */\nexport const colorPickerPanelProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description whether the color picker is bordered\n */\n border: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: {\n type: definePropType<ColorFormats>(String),\n },\n /**\n * @description whether to disable the color picker\n */\n disabled: Boolean,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description class names will be passed to <hue-slider />\n */\n hueSliderClass: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n /**\n * @description styles will be passed to <hue-slider />\n */\n hueSliderStyle: {\n type: definePropType<StyleValue>([String, Array, Object, Boolean]),\n default: undefined,\n },\n} as const)\nexport const colorPickerPanelEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerPanelProps` instead.\n */\nexport type ColorPickerPanelPropsPublic = ExtractPublicPropTypes<\n typeof colorPickerPanelProps\n>\nexport type ColorPickerPanelEmits = typeof colorPickerPanelEmits\nexport type ColorPickerPanelInstance = InstanceType<typeof ColorPickerPanel> &\n unknown\n\nexport interface ColorPickerPanelContext {\n currentColor: ComputedRef<string>\n}\n\nexport interface CommonColorContext {\n color: Color\n}\n\nexport const ROOT_COMMON_COLOR_INJECTION_KEY: InjectionKey<CommonColorContext> =\n Symbol('colorCommonPickerKey')\nexport const colorPickerPanelContextKey: InjectionKey<ColorPickerPanelContext> =\n Symbol('colorPickerPanelContextKey')\n"],"mappings":";;;;;;;;;;AA2DA,MAAa,wBAAwBA,kBAAAA,WAAW;;;;CAI9C,YAAY;EACV,MAAMC,kBAAAA,eAA8B,OAAO;EAC3C,SAAS,KAAA;EACV;;;;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;;;;CAIX,aAAa,EACX,MAAMA,kBAAAA,eAA6B,OAAO,EAC3C;;;;CAID,UAAU;;;;CAIV,WAAW,EACT,MAAMA,kBAAAA,eAAyB,MAAM,EACtC;;;;CAID,eAAe;EACb,MAAM;EACN,SAAS;EACV;;;;CAID,gBAAgB,EACd,MAAMA,kBAAAA,eAA0B;EAAC;EAAQ;EAAO;EAAO,CAAC,EACzD;;;;CAID,gBAAgB;EACd,MAAMA,kBAAAA,eAA2B;GAAC;GAAQ;GAAO;GAAQ;GAAQ,CAAC;EAClE,SAAS,KAAA;EACV;CACF,CAAU;AACX,MAAa,wBAAwB,GAClCC,cAAAA,sBAAsB,SAAA,GAAA,YAAA,UAAgC,IAAI,KAAA,GAAA,eAAA,OAAU,IAAI,EAC1E;AAoBD,MAAa,kCACX,OAAO,uBAAuB;AAChC,MAAa,6BACX,OAAO,6BAA6B"}
1
+ {"version":3,"file":"color-picker-panel.js","names":["buildProps","definePropType","UPDATE_MODEL_EVENT"],"sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type {\n ComputedRef,\n ExtractPublicPropTypes,\n InjectionKey,\n StyleValue,\n} from 'vue'\nimport type { ColorFormats } from '@ctrl/tinycolor'\nimport type { ClassValue } from '@element-plus/utils'\nimport type ColorPickerPanel from './color-picker-panel.vue'\nimport type Color from './utils/color'\n\nexport interface ColorPickerPanelProps {\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description whether the color picker is bordered\n */\n border?: boolean\n /**\n * @description whether to display the alpha slider\n */\n showAlpha?: boolean\n /**\n * @description color format of v-model\n */\n colorFormat?: ColorFormats\n /**\n * @description whether to disable the color picker\n */\n disabled?: boolean\n /**\n * @description predefined color options\n */\n predefine?: string[]\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n /**\n * @description class names will be passed to hue-slider\n */\n hueSliderClass?: ClassValue\n /**\n * @description styles will be passed to hue-slider\n */\n hueSliderStyle?: StyleValue\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerPanelProps` instead.\n */\nexport const colorPickerPanelProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description whether the color picker is bordered\n */\n border: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: {\n type: definePropType<ColorFormats>(String),\n },\n /**\n * @description whether to disable the color picker\n */\n disabled: Boolean,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description class names will be passed to <hue-slider />\n */\n hueSliderClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: undefined,\n },\n /**\n * @description styles will be passed to <hue-slider />\n */\n hueSliderStyle: {\n type: definePropType<StyleValue>([String, Array, Object, Boolean]),\n default: undefined,\n },\n} as const)\nexport const colorPickerPanelEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerPanelProps` instead.\n */\nexport type ColorPickerPanelPropsPublic = ExtractPublicPropTypes<\n typeof colorPickerPanelProps\n>\nexport type ColorPickerPanelEmits = typeof colorPickerPanelEmits\nexport type ColorPickerPanelInstance = InstanceType<typeof ColorPickerPanel> &\n unknown\n\nexport interface ColorPickerPanelContext {\n currentColor: ComputedRef<string>\n}\n\nexport interface CommonColorContext {\n color: Color\n}\n\nexport const ROOT_COMMON_COLOR_INJECTION_KEY: InjectionKey<CommonColorContext> =\n Symbol('colorCommonPickerKey')\nexport const colorPickerPanelContextKey: InjectionKey<ColorPickerPanelContext> =\n Symbol('colorPickerPanelContextKey')\n"],"mappings":";;;;;;;;;;AAyDA,MAAa,wBAAwBA,kBAAAA,WAAW;;;;CAI9C,YAAY;EACV,MAAMC,kBAAAA,eAA8B,OAAO;EAC3C,SAAS,KAAA;EACV;;;;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;;;;CAIX,aAAa,EACX,MAAMA,kBAAAA,eAA6B,OAAO,EAC3C;;;;CAID,UAAU;;;;CAIV,WAAW,EACT,MAAMA,kBAAAA,eAAyB,MAAM,EACtC;;;;CAID,eAAe;EACb,MAAM;EACN,SAAS;EACV;;;;CAID,gBAAgB;EACd,MAAMA,kBAAAA,eAA2B;GAAC;GAAQ;GAAO;GAAQ;GAAQ,CAAC;EAClE,SAAS,KAAA;EACV;;;;CAID,gBAAgB;EACd,MAAMA,kBAAAA,eAA2B;GAAC;GAAQ;GAAO;GAAQ;GAAQ,CAAC;EAClE,SAAS,KAAA;EACV;CACF,CAAU;AACX,MAAa,wBAAwB,GAClCC,cAAAA,sBAAsB,SAAA,GAAA,YAAA,UAAgC,IAAI,KAAA,GAAA,eAAA,OAAU,IAAI,EAC1E;AAoBD,MAAa,kCACX,OAAO,uBAAuB;AAChC,MAAa,6BACX,OAAO,6BAA6B"}
@@ -1,3 +1,4 @@
1
+ import { ClassValue } from "../../../utils/typescript.js";
1
2
  import { InputInstance } from "../../input/src/instance.js";
2
3
  import Color from "./utils/color.js";
3
4
  import { ColorPickerPanelProps } from "./color-picker-panel.js";
@@ -27,10 +28,12 @@ declare const __VLS_base: _$vue.DefineComponent<ColorPickerPanelProps, {
27
28
  }, string, _$vue.PublicProps, Readonly<ColorPickerPanelProps> & Readonly<{
28
29
  "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
29
30
  }>, {
30
- validateEvent: boolean;
31
31
  modelValue: string | null;
32
+ validateEvent: boolean;
32
33
  border: boolean;
33
34
  showAlpha: boolean;
35
+ hueSliderClass: string | false | Record<string, any> | ClassValue[] | null;
36
+ hueSliderStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
34
37
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
35
38
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
39
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker-panel.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.vue"],"sourcesContent":["<template>\n <div\n :class=\"[ns.b(), ns.is('disabled', disabled), ns.is('border', border)]\"\n @focusout=\"handleFocusout\"\n >\n <div :class=\"ns.e('wrapper')\">\n <hue-slider\n ref=\"hueRef\"\n :color=\"color\"\n vertical\n :disabled=\"disabled\"\n :class=\"['hue-slider', hueSliderClass]\"\n :style=\"hueSliderStyle\"\n />\n <sv-panel ref=\"svRef\" :color=\"color\" :disabled=\"disabled\" />\n </div>\n <alpha-slider\n v-if=\"showAlpha\"\n ref=\"alphaRef\"\n :color=\"color\"\n :disabled=\"disabled\"\n />\n <predefine\n v-if=\"predefine\"\n ref=\"predefine\"\n :enable-alpha=\"showAlpha\"\n :color=\"color\"\n :colors=\"predefine\"\n :disabled=\"disabled\"\n />\n <div :class=\"ns.e('footer')\">\n <el-input\n ref=\"inputRef\"\n v-model=\"customInput\"\n :validate-event=\"false\"\n size=\"small\"\n :disabled=\"disabled\"\n @change=\"handleConfirm\"\n />\n <slot name=\"footer\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, nextTick, onMounted, provide, ref, watch } from 'vue'\nimport { ElInput } from '@element-plus/components/input'\nimport { useFormDisabled, useFormItem } from '@element-plus/components/form'\nimport { useNamespace } from '@element-plus/hooks'\nimport { NOOP } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport AlphaSlider from './components/alpha-slider.vue'\nimport HueSlider from './components/hue-slider.vue'\nimport Predefine from './components/predefine.vue'\nimport SvPanel from './components/sv-panel.vue'\nimport {\n ROOT_COMMON_COLOR_INJECTION_KEY,\n colorPickerPanelContextKey,\n colorPickerPanelEmits,\n} from './color-picker-panel'\nimport { useCommonColor } from './composables/use-common-color'\n\nimport type { ColorPickerPanelProps } from './color-picker-panel'\nimport type { InputInstance } from '@element-plus/components/input'\n\ndefineOptions({\n name: 'ElColorPickerPanel',\n})\nconst props = withDefaults(defineProps<ColorPickerPanelProps>(), {\n modelValue: undefined,\n border: true,\n validateEvent: true,\n showAlpha: false,\n})\nconst emit = defineEmits(colorPickerPanelEmits)\n\nconst ns = useNamespace('color-picker-panel')\nconst { formItem } = useFormItem()\nconst disabled = useFormDisabled()\nconst hueRef = ref<InstanceType<typeof HueSlider>>()\nconst svRef = ref<InstanceType<typeof SvPanel>>()\nconst alphaRef = ref<InstanceType<typeof AlphaSlider>>()\nconst inputRef = ref<InputInstance>()\nconst customInput = ref('')\n\nconst { color } = inject(\n ROOT_COMMON_COLOR_INJECTION_KEY,\n () => useCommonColor(props, emit),\n true\n)\n\nfunction handleConfirm() {\n color.fromString(customInput.value)\n if (color.value !== customInput.value) {\n customInput.value = color.value\n }\n}\n\nfunction handleFocusout() {\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch(NOOP)\n }\n}\n\nfunction update() {\n hueRef.value?.update()\n svRef.value?.update()\n alphaRef.value?.update()\n}\n\nonMounted(() => {\n if (props.modelValue) {\n customInput.value = color.value\n }\n nextTick(update)\n})\n\nwatch(\n () => props.modelValue,\n (newVal) => {\n if (newVal !== color.value) {\n newVal ? color.fromString(newVal) : color.clear()\n }\n }\n)\n\nwatch(\n () => color.value,\n (val) => {\n emit(UPDATE_MODEL_EVENT, val)\n customInput.value = val\n if (props.validateEvent) {\n formItem?.validate('change').catch(NOOP)\n }\n }\n)\n\nprovide(colorPickerPanelContextKey, {\n currentColor: computed(() => color.value),\n})\n\ndefineExpose({\n /**\n * @description current color object\n */\n color,\n /**\n * @description custom input ref\n */\n inputRef,\n /**\n * @description update sub components\n */\n update,\n})\n</script>\n"],"mappings":"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"}
1
+ {"version":3,"file":"color-picker-panel.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.vue"],"sourcesContent":["<template>\n <div\n :class=\"[ns.b(), ns.is('disabled', disabled), ns.is('border', border)]\"\n @focusout=\"handleFocusout\"\n >\n <div :class=\"ns.e('wrapper')\">\n <hue-slider\n ref=\"hueRef\"\n :color=\"color\"\n vertical\n :disabled=\"disabled\"\n :class=\"['hue-slider', hueSliderClass]\"\n :style=\"hueSliderStyle\"\n />\n <sv-panel ref=\"svRef\" :color=\"color\" :disabled=\"disabled\" />\n </div>\n <alpha-slider\n v-if=\"showAlpha\"\n ref=\"alphaRef\"\n :color=\"color\"\n :disabled=\"disabled\"\n />\n <predefine\n v-if=\"predefine\"\n ref=\"predefine\"\n :enable-alpha=\"showAlpha\"\n :color=\"color\"\n :colors=\"predefine\"\n :disabled=\"disabled\"\n />\n <div :class=\"ns.e('footer')\">\n <el-input\n ref=\"inputRef\"\n v-model=\"customInput\"\n :validate-event=\"false\"\n size=\"small\"\n :disabled=\"disabled\"\n @change=\"handleConfirm\"\n />\n <slot name=\"footer\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, nextTick, onMounted, provide, ref, watch } from 'vue'\nimport { ElInput } from '@element-plus/components/input'\nimport { useFormDisabled, useFormItem } from '@element-plus/components/form'\nimport { useNamespace } from '@element-plus/hooks'\nimport { NOOP } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport AlphaSlider from './components/alpha-slider.vue'\nimport HueSlider from './components/hue-slider.vue'\nimport Predefine from './components/predefine.vue'\nimport SvPanel from './components/sv-panel.vue'\nimport {\n ROOT_COMMON_COLOR_INJECTION_KEY,\n colorPickerPanelContextKey,\n colorPickerPanelEmits,\n} from './color-picker-panel'\nimport { useCommonColor } from './composables/use-common-color'\n\nimport type { ColorPickerPanelProps } from './color-picker-panel'\nimport type { InputInstance } from '@element-plus/components/input'\n\ndefineOptions({\n name: 'ElColorPickerPanel',\n})\nconst props = withDefaults(defineProps<ColorPickerPanelProps>(), {\n modelValue: undefined,\n border: true,\n validateEvent: true,\n showAlpha: false,\n hueSliderClass: undefined,\n hueSliderStyle: undefined,\n})\nconst emit = defineEmits(colorPickerPanelEmits)\n\nconst ns = useNamespace('color-picker-panel')\nconst { formItem } = useFormItem()\nconst disabled = useFormDisabled()\nconst hueRef = ref<InstanceType<typeof HueSlider>>()\nconst svRef = ref<InstanceType<typeof SvPanel>>()\nconst alphaRef = ref<InstanceType<typeof AlphaSlider>>()\nconst inputRef = ref<InputInstance>()\nconst customInput = ref('')\n\nconst { color } = inject(\n ROOT_COMMON_COLOR_INJECTION_KEY,\n () => useCommonColor(props, emit),\n true\n)\n\nfunction handleConfirm() {\n color.fromString(customInput.value)\n if (color.value !== customInput.value) {\n customInput.value = color.value\n }\n}\n\nfunction handleFocusout() {\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch(NOOP)\n }\n}\n\nfunction update() {\n hueRef.value?.update()\n svRef.value?.update()\n alphaRef.value?.update()\n}\n\nonMounted(() => {\n if (props.modelValue) {\n customInput.value = color.value\n }\n nextTick(update)\n})\n\nwatch(\n () => props.modelValue,\n (newVal) => {\n if (newVal !== color.value) {\n newVal ? color.fromString(newVal) : color.clear()\n }\n }\n)\n\nwatch(\n () => color.value,\n (val) => {\n emit(UPDATE_MODEL_EVENT, val)\n customInput.value = val\n if (props.validateEvent) {\n formItem?.validate('change').catch(NOOP)\n }\n }\n)\n\nprovide(colorPickerPanelContextKey, {\n currentColor: computed(() => color.value),\n})\n\ndefineExpose({\n /**\n * @description current color object\n */\n color,\n /**\n * @description custom input ref\n */\n inputRef,\n /**\n * @description update sub components\n */\n update,\n})\n</script>\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker-panel2.js","names":[],"sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.vue"],"sourcesContent":["<template>\n <div\n :class=\"[ns.b(), ns.is('disabled', disabled), ns.is('border', border)]\"\n @focusout=\"handleFocusout\"\n >\n <div :class=\"ns.e('wrapper')\">\n <hue-slider\n ref=\"hueRef\"\n :color=\"color\"\n vertical\n :disabled=\"disabled\"\n :class=\"['hue-slider', hueSliderClass]\"\n :style=\"hueSliderStyle\"\n />\n <sv-panel ref=\"svRef\" :color=\"color\" :disabled=\"disabled\" />\n </div>\n <alpha-slider\n v-if=\"showAlpha\"\n ref=\"alphaRef\"\n :color=\"color\"\n :disabled=\"disabled\"\n />\n <predefine\n v-if=\"predefine\"\n ref=\"predefine\"\n :enable-alpha=\"showAlpha\"\n :color=\"color\"\n :colors=\"predefine\"\n :disabled=\"disabled\"\n />\n <div :class=\"ns.e('footer')\">\n <el-input\n ref=\"inputRef\"\n v-model=\"customInput\"\n :validate-event=\"false\"\n size=\"small\"\n :disabled=\"disabled\"\n @change=\"handleConfirm\"\n />\n <slot name=\"footer\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, nextTick, onMounted, provide, ref, watch } from 'vue'\nimport { ElInput } from '@element-plus/components/input'\nimport { useFormDisabled, useFormItem } from '@element-plus/components/form'\nimport { useNamespace } from '@element-plus/hooks'\nimport { NOOP } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport AlphaSlider from './components/alpha-slider.vue'\nimport HueSlider from './components/hue-slider.vue'\nimport Predefine from './components/predefine.vue'\nimport SvPanel from './components/sv-panel.vue'\nimport {\n ROOT_COMMON_COLOR_INJECTION_KEY,\n colorPickerPanelContextKey,\n colorPickerPanelEmits,\n} from './color-picker-panel'\nimport { useCommonColor } from './composables/use-common-color'\n\nimport type { ColorPickerPanelProps } from './color-picker-panel'\nimport type { InputInstance } from '@element-plus/components/input'\n\ndefineOptions({\n name: 'ElColorPickerPanel',\n})\nconst props = withDefaults(defineProps<ColorPickerPanelProps>(), {\n modelValue: undefined,\n border: true,\n validateEvent: true,\n showAlpha: false,\n})\nconst emit = defineEmits(colorPickerPanelEmits)\n\nconst ns = useNamespace('color-picker-panel')\nconst { formItem } = useFormItem()\nconst disabled = useFormDisabled()\nconst hueRef = ref<InstanceType<typeof HueSlider>>()\nconst svRef = ref<InstanceType<typeof SvPanel>>()\nconst alphaRef = ref<InstanceType<typeof AlphaSlider>>()\nconst inputRef = ref<InputInstance>()\nconst customInput = ref('')\n\nconst { color } = inject(\n ROOT_COMMON_COLOR_INJECTION_KEY,\n () => useCommonColor(props, emit),\n true\n)\n\nfunction handleConfirm() {\n color.fromString(customInput.value)\n if (color.value !== customInput.value) {\n customInput.value = color.value\n }\n}\n\nfunction handleFocusout() {\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch(NOOP)\n }\n}\n\nfunction update() {\n hueRef.value?.update()\n svRef.value?.update()\n alphaRef.value?.update()\n}\n\nonMounted(() => {\n if (props.modelValue) {\n customInput.value = color.value\n }\n nextTick(update)\n})\n\nwatch(\n () => props.modelValue,\n (newVal) => {\n if (newVal !== color.value) {\n newVal ? color.fromString(newVal) : color.clear()\n }\n }\n)\n\nwatch(\n () => color.value,\n (val) => {\n emit(UPDATE_MODEL_EVENT, val)\n customInput.value = val\n if (props.validateEvent) {\n formItem?.validate('change').catch(NOOP)\n }\n }\n)\n\nprovide(colorPickerPanelContextKey, {\n currentColor: computed(() => color.value),\n})\n\ndefineExpose({\n /**\n * @description current color object\n */\n color,\n /**\n * @description custom input ref\n */\n inputRef,\n /**\n * @description update sub components\n */\n update,\n})\n</script>\n"],"mappings":""}
1
+ {"version":3,"file":"color-picker-panel2.js","names":[],"sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.vue"],"sourcesContent":["<template>\n <div\n :class=\"[ns.b(), ns.is('disabled', disabled), ns.is('border', border)]\"\n @focusout=\"handleFocusout\"\n >\n <div :class=\"ns.e('wrapper')\">\n <hue-slider\n ref=\"hueRef\"\n :color=\"color\"\n vertical\n :disabled=\"disabled\"\n :class=\"['hue-slider', hueSliderClass]\"\n :style=\"hueSliderStyle\"\n />\n <sv-panel ref=\"svRef\" :color=\"color\" :disabled=\"disabled\" />\n </div>\n <alpha-slider\n v-if=\"showAlpha\"\n ref=\"alphaRef\"\n :color=\"color\"\n :disabled=\"disabled\"\n />\n <predefine\n v-if=\"predefine\"\n ref=\"predefine\"\n :enable-alpha=\"showAlpha\"\n :color=\"color\"\n :colors=\"predefine\"\n :disabled=\"disabled\"\n />\n <div :class=\"ns.e('footer')\">\n <el-input\n ref=\"inputRef\"\n v-model=\"customInput\"\n :validate-event=\"false\"\n size=\"small\"\n :disabled=\"disabled\"\n @change=\"handleConfirm\"\n />\n <slot name=\"footer\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, nextTick, onMounted, provide, ref, watch } from 'vue'\nimport { ElInput } from '@element-plus/components/input'\nimport { useFormDisabled, useFormItem } from '@element-plus/components/form'\nimport { useNamespace } from '@element-plus/hooks'\nimport { NOOP } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport AlphaSlider from './components/alpha-slider.vue'\nimport HueSlider from './components/hue-slider.vue'\nimport Predefine from './components/predefine.vue'\nimport SvPanel from './components/sv-panel.vue'\nimport {\n ROOT_COMMON_COLOR_INJECTION_KEY,\n colorPickerPanelContextKey,\n colorPickerPanelEmits,\n} from './color-picker-panel'\nimport { useCommonColor } from './composables/use-common-color'\n\nimport type { ColorPickerPanelProps } from './color-picker-panel'\nimport type { InputInstance } from '@element-plus/components/input'\n\ndefineOptions({\n name: 'ElColorPickerPanel',\n})\nconst props = withDefaults(defineProps<ColorPickerPanelProps>(), {\n modelValue: undefined,\n border: true,\n validateEvent: true,\n showAlpha: false,\n hueSliderClass: undefined,\n hueSliderStyle: undefined,\n})\nconst emit = defineEmits(colorPickerPanelEmits)\n\nconst ns = useNamespace('color-picker-panel')\nconst { formItem } = useFormItem()\nconst disabled = useFormDisabled()\nconst hueRef = ref<InstanceType<typeof HueSlider>>()\nconst svRef = ref<InstanceType<typeof SvPanel>>()\nconst alphaRef = ref<InstanceType<typeof AlphaSlider>>()\nconst inputRef = ref<InputInstance>()\nconst customInput = ref('')\n\nconst { color } = inject(\n ROOT_COMMON_COLOR_INJECTION_KEY,\n () => useCommonColor(props, emit),\n true\n)\n\nfunction handleConfirm() {\n color.fromString(customInput.value)\n if (color.value !== customInput.value) {\n customInput.value = color.value\n }\n}\n\nfunction handleFocusout() {\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch(NOOP)\n }\n}\n\nfunction update() {\n hueRef.value?.update()\n svRef.value?.update()\n alphaRef.value?.update()\n}\n\nonMounted(() => {\n if (props.modelValue) {\n customInput.value = color.value\n }\n nextTick(update)\n})\n\nwatch(\n () => props.modelValue,\n (newVal) => {\n if (newVal !== color.value) {\n newVal ? color.fromString(newVal) : color.clear()\n }\n }\n)\n\nwatch(\n () => color.value,\n (val) => {\n emit(UPDATE_MODEL_EVENT, val)\n customInput.value = val\n if (props.validateEvent) {\n formItem?.validate('change').catch(NOOP)\n }\n }\n)\n\nprovide(colorPickerPanelContextKey, {\n currentColor: computed(() => color.value),\n})\n\ndefineExpose({\n /**\n * @description current color object\n */\n color,\n /**\n * @description custom input ref\n */\n inputRef,\n /**\n * @description update sub components\n */\n update,\n})\n</script>\n"],"mappings":""}
@@ -136,10 +136,10 @@ declare const ConfigProvider: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
136
136
  __epPropKey: true;
137
137
  };
138
138
  }>> & Readonly<{}>, {
139
- readonly valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
140
139
  readonly a11y: EpPropMergeType<BooleanConstructor, unknown, unknown>;
141
140
  readonly keyboardNavigation: EpPropMergeType<BooleanConstructor, unknown, unknown>;
142
141
  readonly namespace: string;
142
+ readonly valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
143
143
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
144
144
  type ConfigProviderInstance = InstanceType<typeof ConfigProvider> & unknown;
145
145
  //#endregion