yc-design-vue 2.0.4 → 2.0.5

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 (291) hide show
  1. package/dist/index.umd.js +1 -0
  2. package/dist/style.css +1 -0
  3. package/es/Affix/index.vue.js +1 -1
  4. package/es/Anchor/Anchor.vue.js +2 -2
  5. package/es/Anchor/AnchorLink.vue.js +2 -2
  6. package/es/Anchor/hooks/useContext.d.ts +2 -2
  7. package/es/Anchor/hooks/useContext.js +3 -3
  8. package/es/AutoComplete/index.d.ts +24 -24
  9. package/es/AutoComplete/index.vue.d.ts +40 -40
  10. package/es/Avatar/Avatar.vue.js +3 -3
  11. package/es/Avatar/AvatarGroup.vue.js +2 -2
  12. package/es/Avatar/hooks/useContext.d.ts +1 -2
  13. package/es/Avatar/hooks/useContext.js +3 -3
  14. package/es/BackTop/index.vue.js +1 -1
  15. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  16. package/es/Button/Button.vue.js +2 -2
  17. package/es/Button/ButtonGroup.vue.js +2 -2
  18. package/es/Button/hooks/useContext.d.ts +1 -2
  19. package/es/Button/hooks/useContext.js +3 -3
  20. package/es/Card/Card.vue.js +2 -2
  21. package/es/Card/CardMeta.vue.js +2 -2
  22. package/es/Card/hooks/useContext.d.ts +2 -2
  23. package/es/Card/hooks/useContext.js +3 -3
  24. package/es/Carousel/Carousel.vue.js +2 -2
  25. package/es/Carousel/CarouselArrow.vue.js +2 -2
  26. package/es/Carousel/CarouselIndicator.vue.js +2 -2
  27. package/es/Carousel/CarouselItem.vue.js +2 -2
  28. package/es/Carousel/hooks/useContext.d.ts +2 -2
  29. package/es/Carousel/hooks/useContext.js +3 -3
  30. package/es/Cascader/Cascader.vue.d.ts +18 -18
  31. package/es/Cascader/Cascader.vue.js +2 -2
  32. package/es/Cascader/CascaderIcon.vue.js +2 -2
  33. package/es/Cascader/CascaderOption.vue.js +2 -2
  34. package/es/Cascader/CascaderPanel.vue.js +2 -2
  35. package/es/Cascader/CascaderSearchPanel.vue.js +2 -2
  36. package/es/Cascader/hooks/useContext.d.ts +2 -2
  37. package/es/Cascader/hooks/useContext.js +3 -3
  38. package/es/Cascader/index.d.ts +21 -21
  39. package/es/Checkbox/Checkbox.vue.js +2 -2
  40. package/es/Checkbox/CheckboxGroup.vue.js +2 -2
  41. package/es/Checkbox/hooks/useContext.d.ts +2 -2
  42. package/es/Checkbox/hooks/useContext.js +3 -3
  43. package/es/Collapse/Collapse.vue.js +2 -2
  44. package/es/Collapse/CollapseItem.vue.js +2 -2
  45. package/es/Collapse/hooks/useContext.d.ts +1 -2
  46. package/es/Collapse/hooks/useContext.js +3 -3
  47. package/es/ColorPicker/ColorControl.vue.js +1 -1
  48. package/es/ColorPicker/ColorPalette.vue.js +1 -1
  49. package/es/ColorPicker/ColorPanel.vue.js +2 -2
  50. package/es/ColorPicker/ColorPicker.vue.js +2 -2
  51. package/es/ColorPicker/hooks/useContext.d.ts +2 -2
  52. package/es/ColorPicker/hooks/useContext.js +3 -3
  53. package/es/Comment/hooks/useContext.d.ts +1 -2
  54. package/es/Comment/hooks/useContext.js +3 -3
  55. package/es/Comment/index.vue.js +2 -2
  56. package/es/Descriptions/Descriptions.vue.js +2 -2
  57. package/es/Descriptions/ReuseItem.vue.js +2 -2
  58. package/es/Descriptions/ReuseTd.vue.js +2 -2
  59. package/es/Descriptions/hooks/useContext.d.ts +2 -2
  60. package/es/Descriptions/hooks/useContext.js +3 -3
  61. package/es/Dropdown/Doption.vue.js +2 -2
  62. package/es/Dropdown/Dropdown.vue.d.ts +2 -2
  63. package/es/Dropdown/Dropdown.vue.js +2 -2
  64. package/es/Dropdown/DropdownButton.vue.d.ts +2 -2
  65. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  66. package/es/Dropdown/hooks/useContext.d.ts +2 -2
  67. package/es/Dropdown/hooks/useContext.js +3 -3
  68. package/es/Dropdown/index.d.ts +10 -10
  69. package/es/Grid/Grid.vue.js +2 -2
  70. package/es/Grid/GridCol.vue.js +2 -2
  71. package/es/Grid/GridItem.vue.js +2 -2
  72. package/es/Grid/GridRow.vue.js +2 -2
  73. package/es/Grid/hooks/useContext.d.ts +1 -2
  74. package/es/Grid/hooks/useContext.js +3 -3
  75. package/es/Image/Image.vue.js +2 -2
  76. package/es/Image/ImagePreview.vue.js +1 -1
  77. package/es/Image/ImagePreviewGroup.vue.js +2 -2
  78. package/es/Image/hooks/useContext.d.ts +2 -2
  79. package/es/Image/hooks/useContext.js +3 -3
  80. package/es/Input/Input.vue.d.ts +2 -2
  81. package/es/Input/InputSuffix.vue.js +2 -2
  82. package/es/Input/index.d.ts +5 -5
  83. package/es/InputNumber/InputNumber.vue.d.ts +14 -14
  84. package/es/InputNumber/index.d.ts +11 -11
  85. package/es/InputTag/index.d.ts +5 -5
  86. package/es/InputTag/index.vue.d.ts +2 -2
  87. package/es/InputTag/index.vue.js +1 -1
  88. package/es/Layout/LayoutSider.vue.js +2 -2
  89. package/es/Layout/hooks/useSiderContext.d.ts +1 -2
  90. package/es/Layout/hooks/useSiderContext.js +3 -3
  91. package/es/List/hooks/useScrollReach.js +1 -0
  92. package/es/Mention/index.d.ts +30 -30
  93. package/es/Mention/index.vue.d.ts +52 -52
  94. package/es/Menu/MenuItem.vue.js +1 -1
  95. package/es/Menu/hooks/useContext.d.ts +2 -2
  96. package/es/Menu/hooks/useContext.js +5 -5
  97. package/es/OverflowList/index.vue.js +2 -2
  98. package/es/Pagination/Pagination.vue.js +2 -2
  99. package/es/Pagination/PaginationItem.vue.js +2 -2
  100. package/es/Pagination/hooks/useContext.d.ts +2 -2
  101. package/es/Pagination/hooks/useContext.js +3 -3
  102. package/es/Popconfirm/index.d.ts +5 -5
  103. package/es/Popconfirm/index.vue.d.ts +2 -2
  104. package/es/Radio/Radio.vue.js +2 -2
  105. package/es/Radio/RadioGroup.vue.js +2 -2
  106. package/es/Radio/hooks/useContext.d.ts +2 -2
  107. package/es/Radio/hooks/useContext.js +3 -3
  108. package/es/Scrollbar/Scrollbar.vue.js +2 -2
  109. package/es/Scrollbar/ScrollbarTrack.vue.js +2 -2
  110. package/es/Scrollbar/hooks/useContext.d.ts +2 -2
  111. package/es/Scrollbar/hooks/useContext.js +3 -3
  112. package/es/Select/Option.vue.js +2 -2
  113. package/es/Select/Select.vue.d.ts +16 -16
  114. package/es/Select/Select.vue.js +2 -2
  115. package/es/Select/SelectIcon.vue.js +2 -2
  116. package/es/Select/SelectRealList.vue.js +2 -2
  117. package/es/Select/SelectView.vue.js +2 -2
  118. package/es/Select/SelectVirtualList.vue.js +3 -3
  119. package/es/Select/hooks/useContext.d.ts +2 -2
  120. package/es/Select/hooks/useContext.js +3 -3
  121. package/es/Select/index.d.ts +16 -16
  122. package/es/Slider/Slider.vue.js +2 -2
  123. package/es/Slider/SliderBtn.vue.js +2 -2
  124. package/es/Slider/SliderInput.vue.js +2 -2
  125. package/es/Slider/SliderTicks.vue.js +2 -2
  126. package/es/Slider/hooks/useContext.d.ts +2 -2
  127. package/es/Slider/hooks/useContext.js +3 -3
  128. package/es/Spin/index.vue.js +1 -1
  129. package/es/Steps/Step.vue.js +2 -2
  130. package/es/Steps/Steps.vue.js +2 -2
  131. package/es/Steps/hooks/useContext.d.ts +1 -2
  132. package/es/Steps/hooks/useContext.js +3 -3
  133. package/es/Switch/index.d.ts +5 -5
  134. package/es/Switch/index.vue.d.ts +2 -2
  135. package/es/Tabs/TabPane.vue.js +2 -2
  136. package/es/Tabs/Tabs.vue.js +2 -2
  137. package/es/Tabs/TabsNavInk.vue.js +2 -2
  138. package/es/Tabs/TabsTab.vue.js +2 -2
  139. package/es/Tabs/hooks/useContext.d.ts +2 -2
  140. package/es/Tabs/hooks/useContext.js +3 -3
  141. package/es/Textarea/hooks/useTextareaHeight.js +1 -1
  142. package/es/Textarea/index.d.ts +5 -5
  143. package/es/Textarea/index.vue.d.ts +2 -2
  144. package/es/TimePicker/TimePicker.vue.d.ts +4 -4
  145. package/es/TimePicker/TimePicker.vue.js +2 -2
  146. package/es/TimePicker/TimePickerPanel.vue.js +2 -2
  147. package/es/TimePicker/hooks/useContext.d.ts +2 -2
  148. package/es/TimePicker/hooks/useContext.js +3 -3
  149. package/es/TimePicker/index.d.ts +10 -10
  150. package/es/Timeline/Timeline.vue.js +2 -2
  151. package/es/Timeline/TimelineItem.vue.js +2 -2
  152. package/es/Timeline/hooks/useContext.d.ts +2 -2
  153. package/es/Timeline/hooks/useContext.js +3 -3
  154. package/es/Transfer/Transfer.vue.js +2 -2
  155. package/es/Transfer/TransferPanel.vue.js +2 -2
  156. package/es/Transfer/hooks/useContext.d.ts +2 -2
  157. package/es/Transfer/hooks/useContext.js +3 -3
  158. package/es/Trigger/hooks/useContext.d.ts +2 -3
  159. package/es/Trigger/hooks/useContext.js +4 -4
  160. package/es/Trigger/hooks/useTriggerPosition.js +1 -1
  161. package/es/Trigger/hooks/useTriggerVisible.js +2 -2
  162. package/es/Typography/TypographyBase.vue.d.ts +12 -12
  163. package/es/Typography/TypographyBase.vue.js +3 -3
  164. package/es/Watermark/index.vue.js +1 -1
  165. package/es/_shared/icons/IconCopy.vue.js +19 -1
  166. package/es/_shared/icons/IconCopy.vue2.js +1 -19
  167. package/es/_shared/icons/IconEdit.vue.js +19 -1
  168. package/es/_shared/icons/IconEdit.vue2.js +1 -19
  169. package/es/_shared/icons/IconEyeClose.vue.js +1 -23
  170. package/es/_shared/icons/IconEyeClose.vue2.js +23 -1
  171. package/es/_shared/icons/IconEyeOpen.vue.js +1 -20
  172. package/es/_shared/icons/IconEyeOpen.vue2.js +20 -1
  173. package/es/_shared/icons/IconSeparator.vue.js +1 -19
  174. package/es/_shared/icons/IconSeparator.vue2.js +19 -1
  175. package/es/_shared/utils/is.d.ts +0 -15
  176. package/es/_shared/utils/vue-utils.d.ts +1 -0
  177. package/es/index.d.ts +5 -5
  178. package/lib/Affix/index.vue.js +1 -1
  179. package/lib/Anchor/hooks/useContext.d.ts +2 -2
  180. package/lib/Anchor/hooks/useContext.js +1 -1
  181. package/lib/AutoComplete/index.d.ts +24 -24
  182. package/lib/AutoComplete/index.vue.d.ts +40 -40
  183. package/lib/Avatar/Avatar.vue.js +1 -1
  184. package/lib/Avatar/hooks/useContext.d.ts +1 -2
  185. package/lib/Avatar/hooks/useContext.js +1 -1
  186. package/lib/BackTop/index.vue.js +1 -1
  187. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  188. package/lib/Button/hooks/useContext.d.ts +1 -2
  189. package/lib/Button/hooks/useContext.js +1 -1
  190. package/lib/Card/hooks/useContext.d.ts +2 -2
  191. package/lib/Card/hooks/useContext.js +1 -1
  192. package/lib/Carousel/hooks/useContext.d.ts +2 -2
  193. package/lib/Carousel/hooks/useContext.js +1 -1
  194. package/lib/Cascader/Cascader.vue.d.ts +18 -18
  195. package/lib/Cascader/hooks/useContext.d.ts +2 -2
  196. package/lib/Cascader/hooks/useContext.js +1 -1
  197. package/lib/Cascader/index.d.ts +21 -21
  198. package/lib/Checkbox/hooks/useContext.d.ts +2 -2
  199. package/lib/Checkbox/hooks/useContext.js +1 -1
  200. package/lib/Collapse/hooks/useContext.d.ts +1 -2
  201. package/lib/Collapse/hooks/useContext.js +1 -1
  202. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  203. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  204. package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
  205. package/lib/ColorPicker/hooks/useContext.js +1 -1
  206. package/lib/Comment/hooks/useContext.d.ts +1 -2
  207. package/lib/Comment/hooks/useContext.js +1 -1
  208. package/lib/Descriptions/hooks/useContext.d.ts +2 -2
  209. package/lib/Descriptions/hooks/useContext.js +1 -1
  210. package/lib/Dropdown/Dropdown.vue.d.ts +2 -2
  211. package/lib/Dropdown/DropdownButton.vue.d.ts +2 -2
  212. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  213. package/lib/Dropdown/hooks/useContext.d.ts +2 -2
  214. package/lib/Dropdown/hooks/useContext.js +1 -1
  215. package/lib/Dropdown/index.d.ts +10 -10
  216. package/lib/Grid/hooks/useContext.d.ts +1 -2
  217. package/lib/Grid/hooks/useContext.js +1 -1
  218. package/lib/Image/ImagePreview.vue.js +1 -1
  219. package/lib/Image/hooks/useContext.d.ts +2 -2
  220. package/lib/Image/hooks/useContext.js +1 -1
  221. package/lib/Input/Input.vue.d.ts +2 -2
  222. package/lib/Input/InputSuffix.vue.js +1 -1
  223. package/lib/Input/index.d.ts +5 -5
  224. package/lib/InputNumber/InputNumber.vue.d.ts +14 -14
  225. package/lib/InputNumber/index.d.ts +11 -11
  226. package/lib/InputTag/index.d.ts +5 -5
  227. package/lib/InputTag/index.vue.d.ts +2 -2
  228. package/lib/InputTag/index.vue.js +1 -1
  229. package/lib/Layout/hooks/useSiderContext.d.ts +1 -2
  230. package/lib/Layout/hooks/useSiderContext.js +1 -1
  231. package/lib/List/hooks/useScrollReach.js +1 -1
  232. package/lib/Mention/index.d.ts +30 -30
  233. package/lib/Mention/index.vue.d.ts +52 -52
  234. package/lib/Menu/MenuItem.vue.js +1 -1
  235. package/lib/Menu/hooks/useContext.d.ts +2 -2
  236. package/lib/Menu/hooks/useContext.js +1 -1
  237. package/lib/OverflowList/index.vue.js +1 -1
  238. package/lib/Pagination/hooks/useContext.d.ts +2 -2
  239. package/lib/Pagination/hooks/useContext.js +1 -1
  240. package/lib/Popconfirm/index.d.ts +5 -5
  241. package/lib/Popconfirm/index.vue.d.ts +2 -2
  242. package/lib/Radio/hooks/useContext.d.ts +2 -2
  243. package/lib/Radio/hooks/useContext.js +1 -1
  244. package/lib/Scrollbar/hooks/useContext.d.ts +2 -2
  245. package/lib/Scrollbar/hooks/useContext.js +1 -1
  246. package/lib/Select/Select.vue.d.ts +16 -16
  247. package/lib/Select/SelectVirtualList.vue.js +1 -1
  248. package/lib/Select/hooks/useContext.d.ts +2 -2
  249. package/lib/Select/hooks/useContext.js +1 -1
  250. package/lib/Select/index.d.ts +16 -16
  251. package/lib/Slider/hooks/useContext.d.ts +2 -2
  252. package/lib/Slider/hooks/useContext.js +1 -1
  253. package/lib/Spin/index.vue.js +1 -1
  254. package/lib/Steps/hooks/useContext.d.ts +1 -2
  255. package/lib/Steps/hooks/useContext.js +1 -1
  256. package/lib/Switch/index.d.ts +5 -5
  257. package/lib/Switch/index.vue.d.ts +2 -2
  258. package/lib/Tabs/hooks/useContext.d.ts +2 -2
  259. package/lib/Tabs/hooks/useContext.js +1 -1
  260. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  261. package/lib/Textarea/index.d.ts +5 -5
  262. package/lib/Textarea/index.vue.d.ts +2 -2
  263. package/lib/TimePicker/TimePicker.vue.d.ts +4 -4
  264. package/lib/TimePicker/hooks/useContext.d.ts +2 -2
  265. package/lib/TimePicker/hooks/useContext.js +1 -1
  266. package/lib/TimePicker/index.d.ts +10 -10
  267. package/lib/Timeline/hooks/useContext.d.ts +2 -2
  268. package/lib/Timeline/hooks/useContext.js +1 -1
  269. package/lib/Transfer/hooks/useContext.d.ts +2 -2
  270. package/lib/Transfer/hooks/useContext.js +1 -1
  271. package/lib/Trigger/hooks/useContext.d.ts +2 -3
  272. package/lib/Trigger/hooks/useContext.js +1 -1
  273. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  274. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  275. package/lib/Typography/TypographyBase.vue.d.ts +12 -12
  276. package/lib/Typography/TypographyBase.vue.js +1 -1
  277. package/lib/Watermark/index.vue.js +1 -1
  278. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  279. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  280. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  281. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  282. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  283. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  284. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  285. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  286. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  287. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  288. package/lib/_shared/utils/is.d.ts +0 -15
  289. package/lib/_shared/utils/vue-utils.d.ts +1 -0
  290. package/lib/index.d.ts +5 -5
  291. package/package.json +1 -1
@@ -11,7 +11,7 @@ interface PaginationContext {
11
11
  baseSize: Ref<number>;
12
12
  bufferSize: Ref<number>;
13
13
  }
14
- declare const _default: () => {
14
+ export default function usePaginationContext(): {
15
15
  provide: (props: RecordType, emits: PaginationEmits) => {
16
16
  total: import('vue').WritableComputedRef<number, number>;
17
17
  size: import('vue').ComputedRef<any>;
@@ -27,4 +27,4 @@ declare const _default: () => {
27
27
  };
28
28
  inject: () => PaginationContext;
29
29
  };
30
- export default _default;
30
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../_shared/utils/control.js"),t=require("../../_shared/utils/global-config.js"),u=require("../../_shared/utils/locale.js"),l="pagination-context";exports.default=()=>({provide:(r,i)=>{const{disabled:o,current:s,defaultCurrent:p,pageSize:n,defaultPageSize:v,pageSizeOptions:c,pageItemStyle:d,activePageItemStyle:g,baseSize:f,bufferSize:S,autoAdjust:m,total:z}=e.toRefs(r),{size:b}=t.getGlobalConfig(r),{t:h}=u.useI18n(),P=a.useControlValue(m.value?z:e.ref(),m.value?0:z.value),y=e.computed(()=>{const e=Math.ceil(P.value/I.value);return e<=1?1:e}),C=e.computed(()=>{if(y.value<f.value)return new Array(y.value).fill(void 0).map((e,a)=>a+1);const e=[],a=j.value-S.value>1,t=j.value+S.value<y.value;let u=0;u=a?t?j.value-S.value:y.value-2*S.value:2;let l=0;l=t?a?j.value+S.value:1+2*S.value:y.value-1,e.push(1),a&&e.push("more-left");for(let r=u;r<=l;r++)e.push(r);return t&&e.push("more-right"),e.push(y.value),e}),j=a.useControlValue(s,p.value,e=>{i("update:current",e),i("change",e)}),I=a.useControlValue(n,v.value,e=>{j.value=1,i("update:pageSize",e),i("page-size-change",e)}),_=e.computed(()=>c.value.map(e=>({label:`${e}${h("pagination.countPerPage")}`,value:e})));return e.provide(l,{computedCurrent:j,computedPageSize:I,disabled:o,pageItemStyle:d,activePageItemStyle:g,pages:y,baseSize:f,bufferSize:S}),{total:P,size:b,pages:y,pagesArray:C,computedCurrent:j,computedPageSize:I,sizeOptions:_,t:h}},inject:()=>e.inject(l,{computedCurrent:e.ref(1),computedPageSize:e.ref(10),disabled:e.ref(!1),pageItemStyle:e.ref({}),activePageItemStyle:e.ref({}),pages:e.ref(0),baseSize:e.ref(6),bufferSize:e.ref(2)})});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../_shared/utils/control.js"),t=require("../../_shared/utils/global-config.js"),u=require("../../_shared/utils/locale.js"),l="pagination-context";exports.default=function(){return{provide:(r,i)=>{const{disabled:o,current:s,defaultCurrent:n,pageSize:p,defaultPageSize:v,pageSizeOptions:c,pageItemStyle:d,activePageItemStyle:g,baseSize:f,bufferSize:S,autoAdjust:m,total:z}=e.toRefs(r),{size:b}=t.getGlobalConfig(r),{t:h}=u.useI18n(),P=a.useControlValue(m.value?z:e.ref(),m.value?0:z.value),y=e.computed(()=>{const e=Math.ceil(P.value/I.value);return e<=1?1:e}),C=e.computed(()=>{if(y.value<f.value)return new Array(y.value).fill(void 0).map((e,a)=>a+1);const e=[],a=j.value-S.value>1,t=j.value+S.value<y.value;let u=0;u=a?t?j.value-S.value:y.value-2*S.value:2;let l=0;l=t?a?j.value+S.value:1+2*S.value:y.value-1,e.push(1),a&&e.push("more-left");for(let r=u;r<=l;r++)e.push(r);return t&&e.push("more-right"),e.push(y.value),e}),j=a.useControlValue(s,n.value,e=>{i("update:current",e),i("change",e)}),I=a.useControlValue(p,v.value,e=>{j.value=1,i("update:pageSize",e),i("page-size-change",e)}),_=e.computed(()=>c.value.map(e=>({label:`${e}${h("pagination.countPerPage")}`,value:e})));return e.provide(l,{computedCurrent:j,computedPageSize:I,disabled:o,pageItemStyle:d,activePageItemStyle:g,pages:y,baseSize:f,bufferSize:S}),{total:P,size:b,pages:y,pagesArray:C,computedCurrent:j,computedPageSize:I,sizeOptions:_,t:h}},inject:()=>e.inject(l,{computedCurrent:e.ref(1),computedPageSize:e.ref(10),disabled:e.ref(!1),pageItemStyle:e.ref({}),activePageItemStyle:e.ref({}),pages:e.ref(0),baseSize:e.ref(6),bufferSize:e.ref(2)})}};
@@ -4,17 +4,17 @@ export type PopconfirmInstance = InstanceType<typeof _Popconfirm>;
4
4
  export * from './type';
5
5
  declare const Popconfirm: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').PopconfirmProps> & Readonly<{
7
+ onCancel?: (() => any) | undefined;
7
8
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
8
9
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
9
- onCancel?: (() => any) | undefined;
10
10
  onOk?: (() => any) | undefined;
11
11
  }>, {
12
12
  hide(): void;
13
13
  show(): void;
14
14
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ cancel: () => any;
15
16
  "update:popupVisible": (value: boolean) => any;
16
17
  "popup-visible-change": (value: boolean) => any;
17
- cancel: () => any;
18
18
  ok: () => any;
19
19
  }, import('vue').PublicProps, {
20
20
  type: import('./type').PopconfirmType;
@@ -282,9 +282,9 @@ declare const Popconfirm: {
282
282
  M: {};
283
283
  Defaults: {};
284
284
  }, Readonly<import('./type').PopconfirmProps> & Readonly<{
285
+ onCancel?: (() => any) | undefined;
285
286
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
286
287
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
287
- onCancel?: (() => any) | undefined;
288
288
  onOk?: (() => any) | undefined;
289
289
  }>, {
290
290
  hide(): void;
@@ -313,17 +313,17 @@ declare const Popconfirm: {
313
313
  __isTeleport?: never;
314
314
  __isSuspense?: never;
315
315
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').PopconfirmProps> & Readonly<{
316
+ onCancel?: (() => any) | undefined;
316
317
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
317
318
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
318
- onCancel?: (() => any) | undefined;
319
319
  onOk?: (() => any) | undefined;
320
320
  }>, {
321
321
  hide(): void;
322
322
  show(): void;
323
323
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
324
+ cancel: () => any;
324
325
  "update:popupVisible": (value: boolean) => any;
325
326
  "popup-visible-change": (value: boolean) => any;
326
- cancel: () => any;
327
327
  ok: () => any;
328
328
  }, string, {
329
329
  type: import('./type').PopconfirmType;
@@ -249,14 +249,14 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
249
249
  hide(): void;
250
250
  show(): void;
251
251
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
252
+ cancel: () => any;
252
253
  "update:popupVisible": (value: boolean) => any;
253
254
  "popup-visible-change": (value: boolean) => any;
254
- cancel: () => any;
255
255
  ok: () => any;
256
256
  }, string, import('vue').PublicProps, Readonly<PopconfirmProps> & Readonly<{
257
+ onCancel?: (() => any) | undefined;
257
258
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
258
259
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
259
- onCancel?: (() => any) | undefined;
260
260
  onOk?: (() => any) | undefined;
261
261
  }>, {
262
262
  type: import('./type').PopconfirmType;
@@ -9,10 +9,10 @@ interface RadioContext {
9
9
  hasGroup: Ref<boolean>;
10
10
  emits: RadioGroupEmits;
11
11
  }
12
- declare const _default: () => {
12
+ export default function useRadioContext(): {
13
13
  provide: (props: RecordType, emits: RadioGroupEmits) => {
14
14
  options: import('vue').ComputedRef<RecordType[]>;
15
15
  };
16
16
  inject: () => RadioContext;
17
17
  };
18
- export default _default;
18
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../_shared/utils/control.js"),t=require("../../_shared/utils/global-config.js"),r=require("../../_shared/utils/is.js"),u="radio-group-context";exports.default=()=>({provide:(i,s)=>{const{modelValue:l,defaultValue:a,disabled:d,type:p,options:n}=e.toRefs(i),{size:c}=t.getGlobalConfig(i),f=o.useControlValue(l,a.value,e=>{s("update:modelValue",e),s("change",e)}),m=e.computed(()=>n.value.map(e=>r.isObject(e)?e:{label:e,value:e}));return e.provide(u,{computedValue:f,type:p,disabled:d,size:c,hasGroup:e.ref(!0),emits:s}),{options:m}},inject:()=>e.inject(u,{computedValue:e.ref(void 0),disabled:e.ref(!1),type:e.ref("radio"),size:e.ref("medium"),hasGroup:e.ref(!1),emits:()=>{}})});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/control.js"),o=require("../../_shared/utils/global-config.js"),r=require("../../_shared/utils/is.js"),u="radio-group-context";exports.default=function(){return{provide:(i,s)=>{const{modelValue:l,defaultValue:a,disabled:d,type:n,options:p}=e.toRefs(i),{size:c}=o.getGlobalConfig(i),f=t.useControlValue(l,a.value,e=>{s("update:modelValue",e),s("change",e)}),m=e.computed(()=>p.value.map(e=>r.isObject(e)?e:{label:e,value:e}));return e.provide(u,{computedValue:f,type:n,disabled:d,size:c,hasGroup:e.ref(!0),emits:s}),{options:m}},inject:()=>e.inject(u,{computedValue:e.ref(void 0),disabled:e.ref(!1),type:e.ref("radio"),size:e.ref("medium"),hasGroup:e.ref(!1),emits:()=>{}})}};
@@ -9,8 +9,8 @@ type ScrollbarContext = {
9
9
  isDragging: Ref<boolean>;
10
10
  scrollRef: Ref<HTMLDivElement | undefined>;
11
11
  };
12
- declare const _default: () => {
12
+ export default function useScrollbarContext(): {
13
13
  provide: (params: ScrollbarContext) => void;
14
14
  inject: () => ScrollbarContext;
15
15
  };
16
- export default _default;
16
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r="scrollbar-context";exports.default=()=>({provide:t=>{e.provide(r,t)},inject:()=>e.inject(r,{curTop:e.ref(0),curLeft:e.ref(0),movableLeft:e.ref(0),movableTop:e.ref(0),thumbHeight:e.ref(0),thumbWidth:e.ref(0),scrollRef:e.ref(),isDragging:e.ref(!1)})});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r="scrollbar-context";exports.default=function(){return{provide:t=>{e.provide(r,t)},inject:()=>e.inject(r,{curTop:e.ref(0),curLeft:e.ref(0),movableLeft:e.ref(0),movableTop:e.ref(0),thumbHeight:e.ref(0),thumbWidth:e.ref(0),scrollRef:e.ref(),isDragging:e.ref(!1)})}};
@@ -264,10 +264,10 @@ declare function __VLS_template(): {
264
264
  readonly tagNowrap?: boolean | undefined;
265
265
  readonly fieldNames?: Record<string, string> | undefined;
266
266
  readonly allowCreate?: boolean | undefined;
267
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
268
267
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
269
268
  readonly onInput?: ((value: string) => any) | undefined;
270
269
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
270
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
271
271
  readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
272
272
  readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
273
273
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -289,13 +289,13 @@ declare function __VLS_template(): {
289
289
  $root: import('vue').ComponentPublicInstance | null;
290
290
  $parent: import('vue').ComponentPublicInstance | null;
291
291
  $host: Element | null;
292
- $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
292
+ $emit: ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
293
293
  $el: HTMLDivElement;
294
294
  $options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
295
- onFocus?: ((ev: FocusEvent) => any) | undefined;
296
295
  onClear?: ((ev: MouseEvent) => any) | undefined;
297
296
  onInput?: ((value: string) => any) | undefined;
298
297
  onBlur?: ((ev: FocusEvent) => any) | undefined;
298
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
299
299
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
300
300
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
301
301
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -305,10 +305,10 @@ declare function __VLS_template(): {
305
305
  focus(): void;
306
306
  blur(): void;
307
307
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
308
- focus: (ev: FocusEvent) => any;
309
308
  clear: (ev: MouseEvent) => any;
310
309
  input: (value: string) => any;
311
310
  blur: (ev: FocusEvent) => any;
311
+ focus: (ev: FocusEvent) => any;
312
312
  remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
313
313
  "update:modelValue": (value: InputTagValue) => any;
314
314
  "update:inputValue": (value: string) => any;
@@ -369,16 +369,16 @@ declare function __VLS_template(): {
369
369
  retainInputValue: import('../InputTag').InputRetainValue;
370
370
  uniqueValue: boolean;
371
371
  }> & Omit<Readonly<import('../InputTag').InputTagProps> & Readonly<{
372
- onFocus?: ((ev: FocusEvent) => any) | undefined;
373
372
  onClear?: ((ev: MouseEvent) => any) | undefined;
374
373
  onInput?: ((value: string) => any) | undefined;
375
374
  onBlur?: ((ev: FocusEvent) => any) | undefined;
375
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
376
376
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
377
377
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
378
378
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
379
379
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
380
380
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
381
- }>, "focus" | "blur" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
381
+ }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
382
382
  focus(): void;
383
383
  blur(): void;
384
384
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -394,12 +394,12 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
394
394
  getPopupRef(): TriggerInstance;
395
395
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
396
396
  change: (value: import('./type').SelectValue) => any;
397
- "update:popupVisible": (value: boolean) => any;
398
- "popup-visible-change": (value: boolean) => any;
399
397
  clear: () => any;
400
398
  search: (value: string) => any;
401
399
  select: (value: SelectOptionValue) => any;
402
400
  remove: (index: string | number, ev: Event) => any;
401
+ "update:popupVisible": (value: boolean) => any;
402
+ "popup-visible-change": (value: boolean) => any;
403
403
  "update:modelValue": (value: import('./type').SelectValue) => any;
404
404
  "update:inputValue": (value: string) => any;
405
405
  "input-value-change": (value: string) => any;
@@ -408,12 +408,12 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
408
408
  "dropdown-reach-bottom": (ev: Event) => any;
409
409
  }, string, import('vue').PublicProps, Readonly<SelectProps> & Readonly<{
410
410
  onChange?: ((value: import('./type').SelectValue) => any) | undefined;
411
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
412
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
413
411
  onClear?: (() => any) | undefined;
414
412
  onSearch?: ((value: string) => any) | undefined;
415
413
  onSelect?: ((value: SelectOptionValue) => any) | undefined;
416
414
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
415
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
416
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
417
417
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
418
418
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
419
419
  "onInput-value-change"?: ((value: string) => any) | undefined;
@@ -713,10 +713,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
713
713
  readonly tagNowrap?: boolean | undefined;
714
714
  readonly fieldNames?: Record<string, string> | undefined;
715
715
  readonly allowCreate?: boolean | undefined;
716
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
717
716
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
718
717
  readonly onInput?: ((value: string) => any) | undefined;
719
718
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
719
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
720
720
  readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
721
721
  readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
722
722
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -738,13 +738,13 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
738
738
  $root: import('vue').ComponentPublicInstance | null;
739
739
  $parent: import('vue').ComponentPublicInstance | null;
740
740
  $host: Element | null;
741
- $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
741
+ $emit: ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
742
742
  $el: HTMLDivElement;
743
743
  $options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
744
- onFocus?: ((ev: FocusEvent) => any) | undefined;
745
744
  onClear?: ((ev: MouseEvent) => any) | undefined;
746
745
  onInput?: ((value: string) => any) | undefined;
747
746
  onBlur?: ((ev: FocusEvent) => any) | undefined;
747
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
748
748
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
749
749
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
750
750
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -754,10 +754,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
754
754
  focus(): void;
755
755
  blur(): void;
756
756
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
757
- focus: (ev: FocusEvent) => any;
758
757
  clear: (ev: MouseEvent) => any;
759
758
  input: (value: string) => any;
760
759
  blur: (ev: FocusEvent) => any;
760
+ focus: (ev: FocusEvent) => any;
761
761
  remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
762
762
  "update:modelValue": (value: InputTagValue) => any;
763
763
  "update:inputValue": (value: string) => any;
@@ -818,16 +818,16 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
818
818
  retainInputValue: import('../InputTag').InputRetainValue;
819
819
  uniqueValue: boolean;
820
820
  }> & Omit<Readonly<import('../InputTag').InputTagProps> & Readonly<{
821
- onFocus?: ((ev: FocusEvent) => any) | undefined;
822
821
  onClear?: ((ev: MouseEvent) => any) | undefined;
823
822
  onInput?: ((value: string) => any) | undefined;
824
823
  onBlur?: ((ev: FocusEvent) => any) | undefined;
824
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
825
825
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
826
826
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
827
827
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
828
828
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
829
829
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
830
- }>, "focus" | "blur" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
830
+ }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
831
831
  focus(): void;
832
832
  blur(): void;
833
833
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js"),r=require("../_shared/utils/vue-utils.js"),o=require("./hooks/useContext.js");require("./index.js");const l=require("./Option.vue.js");;/* empty css */const n=e.defineComponent({__name:"SelectVirtualList",props:{virtualListProps:{}},setup(n){var i,s;const u=n,{virtualListProps:a}=e.toRefs(u),{fieldKey:c,renderOptions:d,slots:p}=o.default().inject(),{list:v,wrapperProps:f,containerProps:m}=t.useVirtualList(d,{overscan:(null==(i=a.value)?void 0:i.buffer)??10,itemHeight:(null==(s=a.value)?void 0:s.itemHeight)||36}),k=e=>{if(p.option)return()=>{var t;return(null==(t=p.option)?void 0:t.call(p,{data:e}))||[]};const{render:t,label:o}=c.value;return e[t]?r.getSlotFunction(e[t]):r.getSlotFunction(e[o])};return(t,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"yc-select-dropdown-virtual-list"},e.unref(m)),[e.createElementVNode("div",e.mergeProps({class:"yc-select-dropdown-list"},e.unref(f)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(v),({data:t})=>(e.openBlock(),e.createBlock(e.unref(l.default),{key:t[e.unref(c).value],value:t[e.unref(c).value],disabled:t[e.unref(c).disabled],"is-fallback-option":t[e.unref(c).isFallbackOption]},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k(t))))]),_:2},1032,["value","disabled","is-fallback-option"]))),128))],16)],16))}});exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../_shared/utils/vue-utils.js"),r=require("./hooks/useContext.js");require("./index.js");const o=require("../node_modules/@vueuse/core/index.js"),l=require("./Option.vue.js");;/* empty css */const n=e.defineComponent({__name:"SelectVirtualList",props:{virtualListProps:{}},setup(n){var i,s;const u=n,{virtualListProps:a}=e.toRefs(u),{fieldKey:c,renderOptions:d,slots:p}=r.default().inject(),{list:v,wrapperProps:f,containerProps:m}=o.useVirtualList(d,{overscan:(null==(i=a.value)?void 0:i.buffer)??10,itemHeight:(null==(s=a.value)?void 0:s.itemHeight)||36}),k=e=>{if(p.option)return()=>{var t;return(null==(t=p.option)?void 0:t.call(p,{data:e}))||[]};const{render:r,label:o}=c.value;return e[r]?t.getSlotFunction(e[r]):t.getSlotFunction(e[o])};return(t,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"yc-select-dropdown-virtual-list"},e.unref(m)),[e.createElementVNode("div",e.mergeProps({class:"yc-select-dropdown-list"},e.unref(f)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(v),({data:t})=>(e.openBlock(),e.createBlock(e.unref(l.default),{key:t[e.unref(c).value],value:t[e.unref(c).value],disabled:t[e.unref(c).disabled],"is-fallback-option":t[e.unref(c).isFallbackOption]},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k(t))))]),_:2},1032,["value","disabled","is-fallback-option"]))),128))],16)],16))}});exports.default=n;
@@ -19,7 +19,7 @@ type SelectContext = {
19
19
  collectOption: (props: RecordType, optionLabel: Ref<string>) => void;
20
20
  emits: SelectEmits;
21
21
  };
22
- declare const _default: () => {
22
+ export default function useSelectContext(): {
23
23
  provide: (props: RecordType, emits: SelectEmits, inputRef: Ref<InputInstance | undefined>) => {
24
24
  computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
25
25
  computedValue: import('vue').WritableComputedRef<SelectValue, SelectValue>;
@@ -78,4 +78,4 @@ declare const _default: () => {
78
78
  };
79
79
  inject: () => SelectContext;
80
80
  };
81
- export default _default;
81
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../_shared/utils/control.js"),t=require("../../_shared/utils/is.js"),u=require("./useSelectOptions.js"),o=require("./useSelectHotkeys.js"),i="select-context";exports.default=()=>({provide:(a,s,r)=>{const{popupVisible:n,defaultPopupVisible:p,modelValue:d,defaultValue:c,inputValue:m,defaultInputValue:v,multiple:f,fieldNames:V,limit:O,allowSearch:b,showExtraOptions:y,valueKey:h,hotkeys:g,options:j,showEmpty:x}=e.toRefs(a),{formatLabel:I,fallbackOption:k,filterOption:w}=a,E=l.useControlValue(n,p.value,e=>{s("update:popupVisible",e),s("popup-visible-change",e)}),S=l.useControlValue(d,c.value?c.value:f.value?[]:"",e=>{s("change",e),s("update:modelValue",e)},e=>f.value?Array.isArray(e)?e:[e]:e),q=l.useControlValue(m,v.value,e=>{s("update:inputValue",e)}),C=e.computed(()=>Object.fromEntries(["id","label","value","disabled","tagProps","render","isFallbackOption"].map(e=>[e,V.value[e]??e]))),L=e=>{var l;const t=null==e?void 0:e.label,u=null==(l=q.value.toLowerCase())?void 0:l.toLowerCase();return!!(null==t?void 0:t.includes(u))},_=e=>b.value?t.isFunction(w)?w(q.value,e):L(e):!(!t.isBoolean(w)||w)||(t.isFunction(w)?w(q.value,e):L(e)),{options:F,renderOptions:K,createOptions:P,selectOptions:A,collectOption:B}=u.default({computedValue:S,multiple:f,showExtraOptions:y,provideOptions:j,getValue:N,fallbackOption:k,formatLabel:I}),M=e.computed(()=>x.value?!b.value||t.isBoolean(w)&&!_?!F.value.length:F.value.every(e=>!_(e)):x.value),{curIndex:H}=o.default({computedValue:S,computedVisible:E,hotkeys:g,limit:O,multiple:f,options:F,blur:R,emits:s});function N(e){return(null==e?void 0:e[h.value])??e}function R(){var e;null==(e=r.value)||e.blur()}return e.provide(i,{computedValue:S,computedInputValue:q,limit:O,multiple:f,curIndex:H,options:F,isEmpty:M,fieldKey:C,renderOptions:K,slots:e.useSlots(),filterOption:_,blur:R,getValue:N,emits:s,collectOption:B}),{computedVisible:E,computedValue:S,computedInputValue:q,selectOptions:A,createOptions:P,options:F}},inject:()=>e.inject(i,{computedValue:e.ref(void 0),computedInputValue:e.ref(""),multiple:e.ref(!1),limit:e.ref(0),curIndex:e.ref(-1),options:e.ref([]),renderOptions:e.ref([]),isEmpty:e.ref(!1),fieldKey:e.ref({}),slots:{},emits:()=>{},blur:()=>{},filterOption:()=>!0,getValue:()=>"",collectOption:()=>{}})});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../_shared/utils/control.js"),t=require("../../_shared/utils/is.js"),u=require("./useSelectOptions.js"),o=require("./useSelectHotkeys.js"),i="select-context";exports.default=function(){return{provide:(a,s,r)=>{const{popupVisible:n,defaultPopupVisible:p,modelValue:c,defaultValue:d,inputValue:m,defaultInputValue:v,multiple:f,fieldNames:V,limit:O,allowSearch:b,showExtraOptions:y,valueKey:h,hotkeys:g,options:j,showEmpty:x}=e.toRefs(a),{formatLabel:I,fallbackOption:k,filterOption:w}=a,E=l.useControlValue(n,p.value,e=>{s("update:popupVisible",e),s("popup-visible-change",e)}),S=l.useControlValue(c,d.value?d.value:f.value?[]:"",e=>{s("change",e),s("update:modelValue",e)},e=>f.value?Array.isArray(e)?e:[e]:e),q=l.useControlValue(m,v.value,e=>{s("update:inputValue",e)}),C=e.computed(()=>Object.fromEntries(["id","label","value","disabled","tagProps","render","isFallbackOption"].map(e=>[e,V.value[e]??e]))),L=e=>{var l;const t=null==e?void 0:e.label,u=null==(l=q.value.toLowerCase())?void 0:l.toLowerCase();return!!(null==t?void 0:t.includes(u))},_=e=>b.value?t.isFunction(w)?w(q.value,e):L(e):!(!t.isBoolean(w)||w)||(t.isFunction(w)?w(q.value,e):L(e)),{options:F,renderOptions:K,createOptions:P,selectOptions:A,collectOption:B}=u.default({computedValue:S,multiple:f,showExtraOptions:y,provideOptions:j,getValue:N,fallbackOption:k,formatLabel:I}),M=e.computed(()=>x.value?!b.value||t.isBoolean(w)&&!_?!F.value.length:F.value.every(e=>!_(e)):x.value),{curIndex:H}=o.default({computedValue:S,computedVisible:E,hotkeys:g,limit:O,multiple:f,options:F,blur:R,emits:s});function N(e){return(null==e?void 0:e[h.value])??e}function R(){var e;null==(e=r.value)||e.blur()}return e.provide(i,{computedValue:S,computedInputValue:q,limit:O,multiple:f,curIndex:H,options:F,isEmpty:M,fieldKey:C,renderOptions:K,slots:e.useSlots(),filterOption:_,blur:R,getValue:N,emits:s,collectOption:B}),{computedVisible:E,computedValue:S,computedInputValue:q,selectOptions:A,createOptions:P,options:F}},inject:()=>e.inject(i,{computedValue:e.ref(void 0),computedInputValue:e.ref(""),multiple:e.ref(!1),limit:e.ref(0),curIndex:e.ref(-1),options:e.ref([]),renderOptions:e.ref([]),isEmpty:e.ref(!1),fieldKey:e.ref({}),slots:{},emits:()=>{},blur:()=>{},filterOption:()=>!0,getValue:()=>"",collectOption:()=>{}})}};
@@ -9,12 +9,12 @@ export * from './type';
9
9
  declare const Select: {
10
10
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SelectProps> & Readonly<{
11
11
  onChange?: ((value: import('./type').SelectValue) => any) | undefined;
12
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
13
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
14
12
  onClear?: (() => any) | undefined;
15
13
  onSearch?: ((value: string) => any) | undefined;
16
14
  onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
17
15
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
16
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
17
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
18
18
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
19
19
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
20
20
  "onInput-value-change"?: ((value: string) => any) | undefined;
@@ -27,12 +27,12 @@ declare const Select: {
27
27
  getPopupRef(): import('..').TriggerInstance;
28
28
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
29
29
  change: (value: import('./type').SelectValue) => any;
30
- "update:popupVisible": (value: boolean) => any;
31
- "popup-visible-change": (value: boolean) => any;
32
30
  clear: () => any;
33
31
  search: (value: string) => any;
34
32
  select: (value: import('./type').SelectOptionValue) => any;
35
33
  remove: (index: string | number, ev: Event) => any;
34
+ "update:popupVisible": (value: boolean) => any;
35
+ "popup-visible-change": (value: boolean) => any;
36
36
  "update:modelValue": (value: import('./type').SelectValue) => any;
37
37
  "update:inputValue": (value: string) => any;
38
38
  "input-value-change": (value: string) => any;
@@ -332,10 +332,10 @@ declare const Select: {
332
332
  readonly tagNowrap?: boolean | undefined;
333
333
  readonly fieldNames?: Record<string, string> | undefined;
334
334
  readonly allowCreate?: boolean | undefined;
335
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
336
335
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
337
336
  readonly onInput?: ((value: string) => any) | undefined;
338
337
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
338
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
339
339
  readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
340
340
  readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
341
341
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -357,13 +357,13 @@ declare const Select: {
357
357
  $root: import('vue').ComponentPublicInstance | null;
358
358
  $parent: import('vue').ComponentPublicInstance | null;
359
359
  $host: Element | null;
360
- $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
360
+ $emit: ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
361
361
  $el: HTMLDivElement;
362
362
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
363
- onFocus?: ((ev: FocusEvent) => any) | undefined;
364
363
  onClear?: ((ev: MouseEvent) => any) | undefined;
365
364
  onInput?: ((value: string) => any) | undefined;
366
365
  onBlur?: ((ev: FocusEvent) => any) | undefined;
366
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
367
367
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
368
368
  "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
369
369
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -373,10 +373,10 @@ declare const Select: {
373
373
  focus(): void;
374
374
  blur(): void;
375
375
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
376
- focus: (ev: FocusEvent) => any;
377
376
  clear: (ev: MouseEvent) => any;
378
377
  input: (value: string) => any;
379
378
  blur: (ev: FocusEvent) => any;
379
+ focus: (ev: FocusEvent) => any;
380
380
  remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
381
381
  "update:modelValue": (value: import('..').InputTagValue) => any;
382
382
  "update:inputValue": (value: string) => any;
@@ -437,16 +437,16 @@ declare const Select: {
437
437
  retainInputValue: import('..').InputRetainValue;
438
438
  uniqueValue: boolean;
439
439
  }> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
440
- onFocus?: ((ev: FocusEvent) => any) | undefined;
441
440
  onClear?: ((ev: MouseEvent) => any) | undefined;
442
441
  onInput?: ((value: string) => any) | undefined;
443
442
  onBlur?: ((ev: FocusEvent) => any) | undefined;
443
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
444
444
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
445
445
  "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
446
446
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
447
447
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
448
448
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
449
- }>, "focus" | "blur" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
449
+ }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
450
450
  focus(): void;
451
451
  blur(): void;
452
452
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -461,12 +461,12 @@ declare const Select: {
461
461
  Defaults: {};
462
462
  }, Readonly<import('./type').SelectProps> & Readonly<{
463
463
  onChange?: ((value: import('./type').SelectValue) => any) | undefined;
464
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
465
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
466
464
  onClear?: (() => any) | undefined;
467
465
  onSearch?: ((value: string) => any) | undefined;
468
466
  onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
469
467
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
468
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
469
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
470
470
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
471
471
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
472
472
  "onInput-value-change"?: ((value: string) => any) | undefined;
@@ -516,12 +516,12 @@ declare const Select: {
516
516
  __isSuspense?: never;
517
517
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').SelectProps> & Readonly<{
518
518
  onChange?: ((value: import('./type').SelectValue) => any) | undefined;
519
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
520
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
521
519
  onClear?: (() => any) | undefined;
522
520
  onSearch?: ((value: string) => any) | undefined;
523
521
  onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
524
522
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
523
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
524
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
525
525
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
526
526
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
527
527
  "onInput-value-change"?: ((value: string) => any) | undefined;
@@ -534,12 +534,12 @@ declare const Select: {
534
534
  getPopupRef(): import('..').TriggerInstance;
535
535
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
536
536
  change: (value: import('./type').SelectValue) => any;
537
- "update:popupVisible": (value: boolean) => any;
538
- "popup-visible-change": (value: boolean) => any;
539
537
  clear: () => any;
540
538
  search: (value: string) => any;
541
539
  select: (value: import('./type').SelectOptionValue) => any;
542
540
  remove: (index: string | number, ev: Event) => any;
541
+ "update:popupVisible": (value: boolean) => any;
542
+ "popup-visible-change": (value: boolean) => any;
543
543
  "update:modelValue": (value: import('./type').SelectValue) => any;
544
544
  "update:inputValue": (value: string) => any;
545
545
  "input-value-change": (value: string) => any;
@@ -18,7 +18,7 @@ type SliderContext = {
18
18
  normalizeValue: (value: number) => number;
19
19
  denormalizeValue: (value: number) => number;
20
20
  };
21
- declare const _default: () => {
21
+ export default function useSliderContext(): {
22
22
  inject: () => SliderContext;
23
23
  provide: (props: RecordType, emits: SliderEmits, trackRef: Ref<HTMLDivElement | undefined>) => {
24
24
  range: Ref<boolean, boolean>;
@@ -41,4 +41,4 @@ declare const _default: () => {
41
41
  normalizeValue: (value: number) => number;
42
42
  };
43
43
  };
44
- export default _default;
44
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../_shared/utils/control.js"),l=require("../../_shared/utils/is.js"),u="slider-context";exports.default=()=>({inject:()=>e.inject(u,{startValue:e.ref(0),endValue:e.ref(0),tempEndValue:e.ref(0),tempStartValue:e.ref(0),range:e.ref(!1),min:e.ref(0),max:e.ref(0),step:e.ref(0),direction:e.ref("horizontal"),disabled:e.ref(!1),showTooltip:e.ref(!0),trackRef:e.ref(),normalizeValue:e=>e,denormalizeValue:e=>e}),provide:(t,r,o)=>{const{modelValue:i,defaultValue:n,step:v,min:s,max:d,direction:m,disabled:c,range:f,showTooltip:p,marks:V}=e.toRefs(t),{formatTooltip:h}=t,g=a.useControlValue(i,f.value&&!l.isArray(n.value)?[0,0]:n.value,e=>{r("update:modelValue",e),r("change",e)}),x=e.computed({get:()=>f.value&&l.isArray(g.value)?g.value[0]:g.value,set(e){f.value&&l.isArray(g.value)?g.value[0]=e:g.value=e,b.value=e}}),b=e.ref(x.value),j=e.computed({get:()=>f.value&&l.isArray(g.value)?g.value[1]:g.value,set(e){f.value&&l.isArray(g.value)?g.value[1]=e:g.value=e,y.value=e}}),y=e.ref(j.value),z=e.computed(()=>{const e=S(v.value),a=[];for(let l=1;l<Math.floor(d.value/v.value);l++){const u=+(l*v.value).toFixed(e);a.push({label:u,value:u})}return a}),M=e.computed(()=>Object.entries(V.value).map(([e,a])=>({value:+e,label:a})));function S(e){const a=e.toString(),l=a.indexOf(".");return-1===l?0:a.length-l-1}function T(e){if(d.value-s.value===0)return 0;return(e-s.value)/(d.value-s.value)*100}return e.provide(u,{startValue:x,endValue:j,tempStartValue:b,tempEndValue:y,range:f,min:s,max:d,step:v,showTooltip:p,disabled:c,direction:m,trackRef:o,formatTooltip:h,normalizeValue:T,denormalizeValue:function(e){const a=(s.value+e/100*(d.value-s.value)-s.value)/v.value,l=Math.round(a),u=s.value+l*v.value,t=S(v.value);return+Math.max(s.value,Math.min(u,d.value)).toFixed(t)}}),{range:f,direction:m,startValue:x,endValue:j,tempStartValue:b,tempEndValue:y,computedValue:g,ticks:z,marks:M,min:s,max:d,normalizeValue:T}}});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../_shared/utils/control.js"),l=require("../../_shared/utils/is.js"),u="slider-context";exports.default=function(){return{inject:()=>e.inject(u,{startValue:e.ref(0),endValue:e.ref(0),tempEndValue:e.ref(0),tempStartValue:e.ref(0),range:e.ref(!1),min:e.ref(0),max:e.ref(0),step:e.ref(0),direction:e.ref("horizontal"),disabled:e.ref(!1),showTooltip:e.ref(!0),trackRef:e.ref(),normalizeValue:e=>e,denormalizeValue:e=>e}),provide:(t,r,o)=>{const{modelValue:n,defaultValue:i,step:v,min:s,max:d,direction:m,disabled:c,range:f,showTooltip:p,marks:V}=e.toRefs(t),{formatTooltip:h}=t,g=a.useControlValue(n,f.value&&!l.isArray(i.value)?[0,0]:i.value,e=>{r("update:modelValue",e),r("change",e)}),x=e.computed({get:()=>f.value&&l.isArray(g.value)?g.value[0]:g.value,set(e){f.value&&l.isArray(g.value)?g.value[0]=e:g.value=e,b.value=e}}),b=e.ref(x.value),j=e.computed({get:()=>f.value&&l.isArray(g.value)?g.value[1]:g.value,set(e){f.value&&l.isArray(g.value)?g.value[1]=e:g.value=e,y.value=e}}),y=e.ref(j.value),z=e.computed(()=>{const e=S(v.value),a=[];for(let l=1;l<Math.floor(d.value/v.value);l++){const u=+(l*v.value).toFixed(e);a.push({label:u,value:u})}return a}),M=e.computed(()=>Object.entries(V.value).map(([e,a])=>({value:+e,label:a})));function S(e){const a=e.toString(),l=a.indexOf(".");return-1===l?0:a.length-l-1}function T(e){if(d.value-s.value===0)return 0;return(e-s.value)/(d.value-s.value)*100}return e.provide(u,{startValue:x,endValue:j,tempStartValue:b,tempEndValue:y,range:f,min:s,max:d,step:v,showTooltip:p,disabled:c,direction:m,trackRef:o,formatTooltip:h,normalizeValue:T,denormalizeValue:function(e){const a=(s.value+e/100*(d.value-s.value)-s.value)/v.value,l=Math.round(a),u=s.value+l*v.value,t=S(v.value);return+Math.max(s.value,Math.min(u,d.value)).toFixed(t)}}),{range:f,direction:m,startValue:x,endValue:j,tempStartValue:b,tempEndValue:y,computedValue:g,ticks:z,marks:M,min:s,max:d,normalizeValue:T}}}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../node_modules/@vueuse/core/index.js"),t=require("../_shared/utils/dom.js");,/* empty css */,/* empty css */;/* empty css */const n=require("../_shared/icons/IconLoading.vue.js"),l={class:"yc-spin"},i={key:0,class:"yc-dot-loading"},a={key:1,class:"yc-spin-tip"},r={key:0,class:"yc-spin-mask"},s=e.defineComponent({name:"Spin",__name:"index",props:{size:{default:20},loading:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},tip:{default:""},hideIcon:{type:Boolean,default:!1},isSizeInherit:{type:Boolean,default:!1}},setup(s){const c=e.useSlots(),{define:d,reuse:u}=o.createReusableTemplate();return(o,s)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(e.unref(d),null,{default:e.withCtx(()=>[o.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-spin-icon",{"yc-spin-icon-loading":!o.dot}]),style:e.normalizeStyle({fontSize:o.isSizeInherit?"inherit":e.unref(t.valueToPx)(o.size)})},[e.renderSlot(o.$slots,"icon",{},()=>[o.dot?(e.openBlock(),e.createElementBlock("div",i,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,o=>e.createElementVNode("div",{key:o,class:"yc-dot-loading-item"})),64))])):(e.openBlock(),e.createBlock(e.unref(n.default),{key:1}))])],6)),o.tip?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(o.$slots,"tip",{},()=>[e.createTextVNode(e.toDisplayString(o.tip),1)])])):e.createCommentVNode("",!0)]),_:3}),c.default?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>[o.loading?(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(e.unref(u))])):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createBlock(e.unref(u),{key:0})),e.renderSlot(o.$slots,"default")]))}});exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../_shared/utils/dom.js"),t=require("../node_modules/@vueuse/core/index.js");,/* empty css */,/* empty css */;/* empty css */const n=require("../_shared/icons/IconLoading.vue.js"),l={class:"yc-spin"},i={key:0,class:"yc-dot-loading"},a={key:1,class:"yc-spin-tip"},r={key:0,class:"yc-spin-mask"},s=e.defineComponent({name:"Spin",__name:"index",props:{size:{default:20},loading:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},tip:{default:""},hideIcon:{type:Boolean,default:!1},isSizeInherit:{type:Boolean,default:!1}},setup(s){const c=e.useSlots(),{define:d,reuse:u}=t.createReusableTemplate();return(t,s)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(e.unref(d),null,{default:e.withCtx(()=>[t.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-spin-icon",{"yc-spin-icon-loading":!t.dot}]),style:e.normalizeStyle({fontSize:t.isSizeInherit?"inherit":e.unref(o.valueToPx)(t.size)})},[e.renderSlot(t.$slots,"icon",{},()=>[t.dot?(e.openBlock(),e.createElementBlock("div",i,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,o=>e.createElementVNode("div",{key:o,class:"yc-dot-loading-item"})),64))])):(e.openBlock(),e.createBlock(e.unref(n.default),{key:1}))])],6)),t.tip?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(t.$slots,"tip",{},()=>[e.createTextVNode(e.toDisplayString(t.tip),1)])])):e.createCommentVNode("",!0)]),_:3}),c.default?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(e.unref(u))])):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createBlock(e.unref(u),{key:0})),e.renderSlot(t.$slots,"default")]))}});exports.default=s;
@@ -1,7 +1,7 @@
1
1
  import { Ref, Reactive } from 'vue';
2
2
  import { StepsEmits, StepStatus, StepType } from '../type';
3
3
  import { Direction, RecordType } from '../../_shared/type';
4
- declare const _default: () => {
4
+ export default function useStepsContext(): {
5
5
  provide: (props: RecordType, emits: StepsEmits) => {
6
6
  direction: import('vue').ComputedRef<Direction>;
7
7
  labelPlacement: import('vue').ComputedRef<Direction>;
@@ -23,4 +23,3 @@ declare const _default: () => {
23
23
  emits: StepsEmits;
24
24
  };
25
25
  };
26
- export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../node_modules/nanoid/index.browser.js"),a=require("../../_shared/utils/is.js"),u=require("../../_shared/utils/control.js"),r="card-context";exports.default=()=>({provide:(t,a)=>{const{status:l,current:s,defaultCurrent:n,lineLess:o,labelPlacement:i,direction:c,small:d,type:v,changeable:p}=e.toRefs(t),f=u.useControlValue(s,n.value,e=>{a("update:current",e)}),m=e.computed(()=>["default","dot"].includes(v.value)?c.value:"horizontal"),h=e.computed(()=>"default"==v.value&&"horizontal"==m.value?i.value:"dot"==v.value?"vertical"==m.value?"horizontal":"vertical":"horizontal"),b=e.reactive(new Map),x=e.ref([]);return e.provide(r,{stepMap:b,computedCurrent:f,lineLess:o,direction:m,status:l,statusArr:x,small:d,type:v,changeable:p,labelPlacement:h,emits:a}),{direction:m,labelPlacement:h,type:v}},inject:u=>{const{status:l}=e.toRefs(u),s=e.inject(r,{stepMap:e.reactive(new Map),computedCurrent:e.ref(0),lineLess:e.ref(!1),direction:e.ref("horizontal"),status:e.ref("process"),statusArr:e.ref([]),small:e.ref(!1),type:e.ref("default"),changeable:e.ref(!1),labelPlacement:e.ref("horizontal"),emits:()=>{}}),{curStep:n,status:o,nextStatus:i}=(()=>{const{stepMap:u,computedCurrent:r,statusArr:n,status:o}=s,i=t.nanoid();u.set(i,i);const c=e.computed(()=>[...u.values()].findIndex(e=>e==i)+1),d=e.computed(()=>a.isUndefined(l.value)?c.value<r.value?"finish":c.value==r.value?o.value??"process":"wait":l.value),v=e.computed(()=>{var e;return null==(e=n.value[c.value])?void 0:e.value});return n.value[c.value-1]=d,e.onBeforeUnmount(()=>{u.delete(i),n.value.splice(c.value-1,1)}),{curStep:c,status:d,nextStatus:v}})();return{...s,curStep:n,status:o,nextStatus:i}}});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../node_modules/nanoid/index.browser.js"),a=require("../../_shared/utils/is.js"),u=require("../../_shared/utils/control.js"),r="card-context";exports.default=function(){return{provide:(t,a)=>{const{status:l,current:s,defaultCurrent:n,lineLess:o,labelPlacement:i,direction:c,small:d,type:v,changeable:p}=e.toRefs(t),f=u.useControlValue(s,n.value,e=>{a("update:current",e)}),m=e.computed(()=>["default","dot"].includes(v.value)?c.value:"horizontal"),h=e.computed(()=>"default"==v.value&&"horizontal"==m.value?i.value:"dot"==v.value?"vertical"==m.value?"horizontal":"vertical":"horizontal"),b=e.reactive(new Map),x=e.ref([]);return e.provide(r,{stepMap:b,computedCurrent:f,lineLess:o,direction:m,status:l,statusArr:x,small:d,type:v,changeable:p,labelPlacement:h,emits:a}),{direction:m,labelPlacement:h,type:v}},inject:u=>{const{status:l}=e.toRefs(u),s=e.inject(r,{stepMap:e.reactive(new Map),computedCurrent:e.ref(0),lineLess:e.ref(!1),direction:e.ref("horizontal"),status:e.ref("process"),statusArr:e.ref([]),small:e.ref(!1),type:e.ref("default"),changeable:e.ref(!1),labelPlacement:e.ref("horizontal"),emits:()=>{}}),{curStep:n,status:o,nextStatus:i}=(()=>{const{stepMap:u,computedCurrent:r,statusArr:n,status:o}=s,i=t.nanoid();u.set(i,i);const c=e.computed(()=>[...u.values()].findIndex(e=>e==i)+1),d=e.computed(()=>a.isUndefined(l.value)?c.value<r.value?"finish":c.value==r.value?o.value??"process":"wait":l.value),v=e.computed(()=>{var e;return null==(e=n.value[c.value])?void 0:e.value});return n.value[c.value-1]=d,e.onBeforeUnmount(()=>{u.delete(i),n.value.splice(c.value-1,1)}),{curStep:c,status:d,nextStatus:v}})();return{...s,curStep:n,status:o,nextStatus:i}}}};
@@ -5,13 +5,13 @@ export * from './type';
5
5
  declare const Switch: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SwitchProps> & Readonly<{
7
7
  onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
8
- onFocus?: ((ev: FocusEvent) => any) | undefined;
9
8
  onBlur?: ((ev: FocusEvent) => any) | undefined;
9
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
10
10
  "onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
12
  change: (value: import('./type').SwitchValue, ev: Event) => any;
13
- focus: (ev: FocusEvent) => any;
14
13
  blur: (ev: FocusEvent) => any;
14
+ focus: (ev: FocusEvent) => any;
15
15
  "update:modelValue": (value: import('./type').SwitchValue) => any;
16
16
  }, import('vue').PublicProps, {
17
17
  size: import('./type').SwitchSize;
@@ -36,8 +36,8 @@ declare const Switch: {
36
36
  Defaults: {};
37
37
  }, Readonly<import('./type').SwitchProps> & Readonly<{
38
38
  onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
39
- onFocus?: ((ev: FocusEvent) => any) | undefined;
40
39
  onBlur?: ((ev: FocusEvent) => any) | undefined;
40
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
41
41
  "onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
42
42
  }>, {}, {}, {}, {}, {
43
43
  size: import('./type').SwitchSize;
@@ -59,13 +59,13 @@ declare const Switch: {
59
59
  __isSuspense?: never;
60
60
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').SwitchProps> & Readonly<{
61
61
  onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
62
- onFocus?: ((ev: FocusEvent) => any) | undefined;
63
62
  onBlur?: ((ev: FocusEvent) => any) | undefined;
63
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
64
64
  "onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
65
65
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
66
66
  change: (value: import('./type').SwitchValue, ev: Event) => any;
67
- focus: (ev: FocusEvent) => any;
68
67
  blur: (ev: FocusEvent) => any;
68
+ focus: (ev: FocusEvent) => any;
69
69
  "update:modelValue": (value: import('./type').SwitchValue) => any;
70
70
  }, string, {
71
71
  size: import('./type').SwitchSize;
@@ -8,13 +8,13 @@ declare function __VLS_template(): {
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
10
  change: (value: SwitchValue, ev: Event) => any;
11
- focus: (ev: FocusEvent) => any;
12
11
  blur: (ev: FocusEvent) => any;
12
+ focus: (ev: FocusEvent) => any;
13
13
  "update:modelValue": (value: SwitchValue) => any;
14
14
  }, string, import('vue').PublicProps, Readonly<SwitchProps> & Readonly<{
15
15
  onChange?: ((value: SwitchValue, ev: Event) => any) | undefined;
16
- onFocus?: ((ev: FocusEvent) => any) | undefined;
17
16
  onBlur?: ((ev: FocusEvent) => any) | undefined;
17
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
18
18
  "onUpdate:modelValue"?: ((value: SwitchValue) => any) | undefined;
19
19
  }>, {
20
20
  size: import('./type').SwitchSize;
@@ -20,7 +20,7 @@ type TabPaneProps = Required<_TabPaneProps>;
20
20
  export type PaneNode = {
21
21
  slots: Slots;
22
22
  } & TabPaneProps;
23
- declare const _default: () => {
23
+ export default function useTabsContext(): {
24
24
  provide: (props: RecordType, emits: TabsEmits, listRef: Ref<HTMLDivElement | undefined>) => {
25
25
  computedActiveKey: import('vue').WritableComputedRef<TabKey, TabKey>;
26
26
  size: import('vue').ComputedRef<any>;
@@ -32,4 +32,4 @@ declare const _default: () => {
32
32
  };
33
33
  inject: () => TabsContext;
34
34
  };
35
- export default _default;
35
+ export {};