@wfrog/vc-ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/README.md +95 -0
  2. package/dist/es/chunk/-EkpfdcW.mjs +1100 -0
  3. package/dist/es/chunk/8rLUmOVR.mjs +29 -0
  4. package/dist/es/chunk/B-rxnVJv.mjs +3 -0
  5. package/dist/es/chunk/BAGoDD49.mjs +36 -0
  6. package/dist/es/chunk/BAtns-Mc.mjs +96 -0
  7. package/dist/es/chunk/BJS5Pdfp.mjs +55 -0
  8. package/dist/es/chunk/BMzd-IS6.mjs +900 -0
  9. package/dist/es/chunk/BWcCXRRK.mjs +229 -0
  10. package/dist/es/chunk/BX-Ogf7p.mjs +3743 -0
  11. package/dist/es/chunk/B_tU9Nax.mjs +49 -0
  12. package/dist/es/chunk/BdDihk0t.mjs +3420 -0
  13. package/dist/es/chunk/C2LgraHx.mjs +489 -0
  14. package/dist/es/chunk/C5hWsUfD.mjs +64 -0
  15. package/dist/es/chunk/C7iSSBUr.mjs +303 -0
  16. package/dist/es/chunk/CD98REcR.mjs +666 -0
  17. package/dist/es/chunk/CEClY-_T.mjs +445 -0
  18. package/dist/es/chunk/CEm0brzD.mjs +35 -0
  19. package/dist/es/chunk/CMABHk8B.mjs +1942 -0
  20. package/dist/es/chunk/CS4VKsqy.mjs +19 -0
  21. package/dist/es/chunk/CVlj9F0I.mjs +291 -0
  22. package/dist/es/chunk/CZ4ggqDE.mjs +140 -0
  23. package/dist/es/chunk/CaTfZePA.mjs +533 -0
  24. package/dist/es/chunk/Ce9ApjrT.mjs +201 -0
  25. package/dist/es/chunk/ClZGuAIb.mjs +10 -0
  26. package/dist/es/chunk/Coex0GxM.mjs +450 -0
  27. package/dist/es/chunk/Ct6q2FXg.mjs +5 -0
  28. package/dist/es/chunk/CyxEcbcy.mjs +29 -0
  29. package/dist/es/chunk/D389hx_T.mjs +35 -0
  30. package/dist/es/chunk/D3DXeVfC.mjs +1171 -0
  31. package/dist/es/chunk/D3uV7vm-.mjs +45 -0
  32. package/dist/es/chunk/D5259bwd.mjs +50 -0
  33. package/dist/es/chunk/DMHNh_tw.mjs +49 -0
  34. package/dist/es/chunk/DVNTpOBR.mjs +4 -0
  35. package/dist/es/chunk/DZACQ9LT.mjs +95 -0
  36. package/dist/es/chunk/De_EXLIy.mjs +22 -0
  37. package/dist/es/chunk/Dh4jaUSg.mjs +89 -0
  38. package/dist/es/chunk/DhhdKtyu.mjs +439 -0
  39. package/dist/es/chunk/DqUIKX7f.mjs +2039 -0
  40. package/dist/es/chunk/Dqz1zvKN.mjs +59 -0
  41. package/dist/es/chunk/Dvi7RsXg.mjs +727 -0
  42. package/dist/es/chunk/DyDMGLoF.mjs +123 -0
  43. package/dist/es/chunk/E_WRn0OP.mjs +449 -0
  44. package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
  45. package/dist/es/chunk/HSv8BL8o.mjs +72 -0
  46. package/dist/es/chunk/JCIyOUEY.mjs +105 -0
  47. package/dist/es/chunk/O-uhUKF4.mjs +43 -0
  48. package/dist/es/chunk/Spa-JKB4.mjs +1046 -0
  49. package/dist/es/chunk/VAdRxe-1.mjs +16 -0
  50. package/dist/es/chunk/VCrtRnxt.mjs +1477 -0
  51. package/dist/es/chunk/ViP2SEY4.mjs +211 -0
  52. package/dist/es/chunk/aibQ9WSZ.mjs +249 -0
  53. package/dist/es/chunk/nWBcrYxV.mjs +690 -0
  54. package/dist/es/chunk/pcqpp-6-.mjs +9 -0
  55. package/dist/es/chunk/qY9OvNHY.mjs +283 -0
  56. package/dist/es/chunk/su2Zrql0.mjs +53 -0
  57. package/dist/es/chunk/zfg5SOj1.mjs +138 -0
  58. package/dist/es/components/awesome-icon/awesome-icon.d.ts +6 -0
  59. package/dist/es/components/awesome-icon/awesome-icon.mjs +41 -0
  60. package/dist/es/components/awesome-icon/awesome-icon.vue.d.ts +5 -0
  61. package/dist/es/components/awesome-icon/index.d.ts +4 -0
  62. package/dist/es/components/awesome-icon/index.mjs +6 -0
  63. package/dist/es/components/backbottom/backbottom.d.ts +7 -0
  64. package/dist/es/components/backbottom/backbottom.mjs +172 -0
  65. package/dist/es/components/backbottom/backbottom.vue.d.ts +7 -0
  66. package/dist/es/components/backbottom/components/child.vue.d.ts +30 -0
  67. package/dist/es/components/backbottom/index.d.ts +4 -0
  68. package/dist/es/components/backbottom/index.mjs +6 -0
  69. package/dist/es/components/button/button.d.ts +18 -0
  70. package/dist/es/components/button/button.mjs +313 -0
  71. package/dist/es/components/button/button.vue.d.ts +33 -0
  72. package/dist/es/components/button/index.css +9 -0
  73. package/dist/es/components/button/index.d.ts +4 -0
  74. package/dist/es/components/button/index.mjs +6 -0
  75. package/dist/es/components/cdn-tag.vue.d.ts +5 -0
  76. package/dist/es/components/chat-container/chat-container.d.ts +9 -0
  77. package/dist/es/components/chat-container/chat-container.mjs +77 -0
  78. package/dist/es/components/chat-container/chat-container.vue.d.ts +29 -0
  79. package/dist/es/components/chat-container/index.css +9 -0
  80. package/dist/es/components/chat-container/index.d.ts +4 -0
  81. package/dist/es/components/chat-container/index.mjs +6 -0
  82. package/dist/es/components/choice/choice.d.ts +6 -0
  83. package/dist/es/components/choice/choice.mjs +53 -0
  84. package/dist/es/components/choice/choice.vue.d.ts +5 -0
  85. package/dist/es/components/choice/index.css +7 -0
  86. package/dist/es/components/choice/index.d.ts +4 -0
  87. package/dist/es/components/choice/index.mjs +6 -0
  88. package/dist/es/components/choice-boolean/choice-boolean.d.ts +5 -0
  89. package/dist/es/components/choice-boolean/choice-boolean.mjs +32 -0
  90. package/dist/es/components/choice-boolean/choice-boolean.vue.d.ts +10 -0
  91. package/dist/es/components/choice-boolean/index.d.ts +4 -0
  92. package/dist/es/components/choice-boolean/index.mjs +6 -0
  93. package/dist/es/components/config-provider/config-provider.d.ts +16 -0
  94. package/dist/es/components/config-provider/config-provider.mjs +29 -0
  95. package/dist/es/components/config-provider/config-provider.vue.d.ts +18 -0
  96. package/dist/es/components/config-provider/config-provider2.mjs +6 -0
  97. package/dist/es/components/config-provider/index.d.ts +4 -0
  98. package/dist/es/components/config-provider/index.mjs +6 -0
  99. package/dist/es/components/cropper/cropper.d.ts +12 -0
  100. package/dist/es/components/cropper/cropper.mjs +333 -0
  101. package/dist/es/components/cropper/cropper.vue.d.ts +32 -0
  102. package/dist/es/components/cropper/index.css +4 -0
  103. package/dist/es/components/cropper/index.d.ts +4 -0
  104. package/dist/es/components/cropper/index.mjs +6 -0
  105. package/dist/es/components/currency/currency.d.ts +21 -0
  106. package/dist/es/components/currency/currency.mjs +185 -0
  107. package/dist/es/components/currency/currency.vue.d.ts +14 -0
  108. package/dist/es/components/currency/index.css +8 -0
  109. package/dist/es/components/currency/index.d.ts +4 -0
  110. package/dist/es/components/currency/index.mjs +6 -0
  111. package/dist/es/components/daterange-picker/daterange-picker.d.ts +6 -0
  112. package/dist/es/components/daterange-picker/daterange-picker.mjs +5550 -0
  113. package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +13 -0
  114. package/dist/es/components/daterange-picker/index.d.ts +4 -0
  115. package/dist/es/components/daterange-picker/index.mjs +6 -0
  116. package/dist/es/components/dialog/dialog.d.ts +13 -0
  117. package/dist/es/components/dialog/dialog.mjs +537 -0
  118. package/dist/es/components/dialog/dialog.vue.d.ts +38 -0
  119. package/dist/es/components/dialog/index.css +87 -0
  120. package/dist/es/components/dialog/index.d.ts +4 -0
  121. package/dist/es/components/dialog/index.mjs +6 -0
  122. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.d.ts +33 -0
  123. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +412 -0
  124. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.vue.d.ts +23 -0
  125. package/dist/es/components/dialog-camera-upload/index.css +66 -0
  126. package/dist/es/components/dialog-camera-upload/index.d.ts +4 -0
  127. package/dist/es/components/dialog-camera-upload/index.mjs +6 -0
  128. package/dist/es/components/dialog-map-point/dialog-map-point.d.ts +9 -0
  129. package/dist/es/components/dialog-map-point/dialog-map-point.mjs +183 -0
  130. package/dist/es/components/dialog-map-point/dialog-map-point.vue.d.ts +22 -0
  131. package/dist/es/components/dialog-map-point/index.css +11 -0
  132. package/dist/es/components/dialog-map-point/index.d.ts +4 -0
  133. package/dist/es/components/dialog-map-point/index.mjs +6 -0
  134. package/dist/es/components/dialog-upload-images/dialog-upload-images.d.ts +16 -0
  135. package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +1391 -0
  136. package/dist/es/components/dialog-upload-images/dialog-upload-images.vue.d.ts +19 -0
  137. package/dist/es/components/dialog-upload-images/index.css +62 -0
  138. package/dist/es/components/dialog-upload-images/index.d.ts +4 -0
  139. package/dist/es/components/dialog-upload-images/index.mjs +6 -0
  140. package/dist/es/components/document.vue.d.ts +14 -0
  141. package/dist/es/components/drawer/drawer.d.ts +7 -0
  142. package/dist/es/components/drawer/drawer.mjs +412 -0
  143. package/dist/es/components/drawer/drawer.vue.d.ts +31 -0
  144. package/dist/es/components/drawer/index.css +56 -0
  145. package/dist/es/components/drawer/index.d.ts +4 -0
  146. package/dist/es/components/drawer/index.mjs +6 -0
  147. package/dist/es/components/easy-pagination/easy-pagination.d.ts +8 -0
  148. package/dist/es/components/easy-pagination/easy-pagination.mjs +74 -0
  149. package/dist/es/components/easy-pagination/easy-pagination.vue.d.ts +19 -0
  150. package/dist/es/components/easy-pagination/index.css +10 -0
  151. package/dist/es/components/easy-pagination/index.d.ts +4 -0
  152. package/dist/es/components/easy-pagination/index.mjs +6 -0
  153. package/dist/es/components/el-icon/el-icon.d.ts +6 -0
  154. package/dist/es/components/el-icon/el-icon.mjs +46 -0
  155. package/dist/es/components/el-icon/el-icon.vue.d.ts +6 -0
  156. package/dist/es/components/el-icon/index.css +7 -0
  157. package/dist/es/components/el-icon/index.d.ts +4 -0
  158. package/dist/es/components/el-icon/index.mjs +6 -0
  159. package/dist/es/components/example-wrapper.vue.d.ts +19 -0
  160. package/dist/es/components/flag/flag.mjs +44 -0
  161. package/dist/es/components/flag/flag.vue.d.ts +5 -0
  162. package/dist/es/components/flag/flags.d.ts +8 -0
  163. package/dist/es/components/flag/index.d.ts +4 -0
  164. package/dist/es/components/flag/index.mjs +6 -0
  165. package/dist/es/components/icon/icon.d.ts +6 -0
  166. package/dist/es/components/icon/icon.mjs +54 -0
  167. package/dist/es/components/icon/icon.vue.d.ts +3 -0
  168. package/dist/es/components/icon/icon2.mjs +27 -0
  169. package/dist/es/components/icon/index.css +9 -0
  170. package/dist/es/components/icon/index.d.ts +4 -0
  171. package/dist/es/components/icon/index.mjs +6 -0
  172. package/dist/es/components/image/image.d.ts +16 -0
  173. package/dist/es/components/image/image.mjs +167 -0
  174. package/dist/es/components/image/image.vue.d.ts +206 -0
  175. package/dist/es/components/image/index.css +20 -0
  176. package/dist/es/components/image/index.d.ts +4 -0
  177. package/dist/es/components/image/index.mjs +6 -0
  178. package/dist/es/components/input/index.css +9 -0
  179. package/dist/es/components/input/index.d.ts +4 -0
  180. package/dist/es/components/input/index.mjs +6 -0
  181. package/dist/es/components/input/input.d.ts +4 -0
  182. package/dist/es/components/input/input.mjs +85 -0
  183. package/dist/es/components/input/input.vue.d.ts +1232 -0
  184. package/dist/es/components/input-number/index.css +24 -0
  185. package/dist/es/components/input-number/index.d.ts +4 -0
  186. package/dist/es/components/input-number/index.mjs +6 -0
  187. package/dist/es/components/input-number/input-number.d.ts +8 -0
  188. package/dist/es/components/input-number/input-number.mjs +137 -0
  189. package/dist/es/components/input-number/input-number.vue.d.ts +35 -0
  190. package/dist/es/components/pca-picker/components/c.vue.d.ts +123 -0
  191. package/dist/es/components/pca-picker/components/elevator-item.vue.d.ts +7 -0
  192. package/dist/es/components/pca-picker/components/filter.vue.d.ts +2 -0
  193. package/dist/es/components/pca-picker/components/history.vue.d.ts +2 -0
  194. package/dist/es/components/pca-picker/components/hot.vue.d.ts +2 -0
  195. package/dist/es/components/pca-picker/components/p.vue.d.ts +2 -0
  196. package/dist/es/components/pca-picker/components/pca.vue.d.ts +9 -0
  197. package/dist/es/components/pca-picker/index.css +107 -0
  198. package/dist/es/components/pca-picker/index.d.ts +4 -0
  199. package/dist/es/components/pca-picker/index.mjs +6 -0
  200. package/dist/es/components/pca-picker/pca-picker.d.ts +78 -0
  201. package/dist/es/components/pca-picker/pca-picker.mjs +1667 -0
  202. package/dist/es/components/pca-picker/pca-picker.vue.d.ts +583 -0
  203. package/dist/es/components/qr-code/index.d.ts +4 -0
  204. package/dist/es/components/qr-code/index.mjs +6 -0
  205. package/dist/es/components/qr-code/qr-code.d.ts +9 -0
  206. package/dist/es/components/qr-code/qr-code.mjs +69 -0
  207. package/dist/es/components/qr-code/qr-code.vue.d.ts +13 -0
  208. package/dist/es/components/screenfull/index.css +14 -0
  209. package/dist/es/components/screenfull/index.d.ts +4 -0
  210. package/dist/es/components/screenfull/index.mjs +6 -0
  211. package/dist/es/components/screenfull/screenfull.d.ts +4 -0
  212. package/dist/es/components/screenfull/screenfull.mjs +91 -0
  213. package/dist/es/components/screenfull/screenfull.vue.d.ts +20 -0
  214. package/dist/es/components/select/index.css +9 -0
  215. package/dist/es/components/select/index.d.ts +4 -0
  216. package/dist/es/components/select/index.mjs +6 -0
  217. package/dist/es/components/select/select.d.ts +6 -0
  218. package/dist/es/components/select/select.mjs +63 -0
  219. package/dist/es/components/select/select.vue.d.ts +6 -0
  220. package/dist/es/components/single-player/index.css +45 -0
  221. package/dist/es/components/single-player/index.d.ts +4 -0
  222. package/dist/es/components/single-player/index.mjs +6 -0
  223. package/dist/es/components/single-player/single-player.d.ts +4 -0
  224. package/dist/es/components/single-player/single-player.mjs +1172 -0
  225. package/dist/es/components/single-player/single-player.vue.d.ts +13 -0
  226. package/dist/es/components/svg-icon/index.css +9 -0
  227. package/dist/es/components/svg-icon/index.d.ts +4 -0
  228. package/dist/es/components/svg-icon/index.mjs +6 -0
  229. package/dist/es/components/svg-icon/svg-icon.d.ts +5 -0
  230. package/dist/es/components/svg-icon/svg-icon.mjs +46 -0
  231. package/dist/es/components/svg-icon/svg-icon.vue.d.ts +18 -0
  232. package/dist/es/components/switch/index.css +15 -0
  233. package/dist/es/components/switch/index.d.ts +4 -0
  234. package/dist/es/components/switch/index.mjs +6 -0
  235. package/dist/es/components/switch/switch.d.ts +9 -0
  236. package/dist/es/components/switch/switch.mjs +82 -0
  237. package/dist/es/components/switch/switch.vue.d.ts +14 -0
  238. package/dist/es/components/sync-scroll-container/index.css +82 -0
  239. package/dist/es/components/sync-scroll-container/index.d.ts +4 -0
  240. package/dist/es/components/sync-scroll-container/index.mjs +6 -0
  241. package/dist/es/components/sync-scroll-container/sync-scroll-container.d.ts +6 -0
  242. package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +157 -0
  243. package/dist/es/components/sync-scroll-container/sync-scroll-container.vue.d.ts +36 -0
  244. package/dist/es/components/tags/index.css +17 -0
  245. package/dist/es/components/tags/index.d.ts +4 -0
  246. package/dist/es/components/tags/index.mjs +6 -0
  247. package/dist/es/components/tags/tags.d.ts +9 -0
  248. package/dist/es/components/tags/tags.mjs +296 -0
  249. package/dist/es/components/tags/tags.vue.d.ts +20 -0
  250. package/dist/es/components/text-ellipsis/index.css +15 -0
  251. package/dist/es/components/text-ellipsis/index.d.ts +4 -0
  252. package/dist/es/components/text-ellipsis/index.mjs +6 -0
  253. package/dist/es/components/text-ellipsis/text-ellipsis.d.ts +12 -0
  254. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +137 -0
  255. package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +41 -0
  256. package/dist/es/components/thousand-input/index.css +4 -0
  257. package/dist/es/components/thousand-input/index.d.ts +4 -0
  258. package/dist/es/components/thousand-input/index.mjs +6 -0
  259. package/dist/es/components/thousand-input/thousand-input.d.ts +11 -0
  260. package/dist/es/components/thousand-input/thousand-input.mjs +159 -0
  261. package/dist/es/components/thousand-input/thousand-input.vue.d.ts +2558 -0
  262. package/dist/es/components/tinymce/config.d.ts +25 -0
  263. package/dist/es/components/tinymce/index.css +9 -0
  264. package/dist/es/components/tinymce/index.d.ts +4 -0
  265. package/dist/es/components/tinymce/index.mjs +6 -0
  266. package/dist/es/components/tinymce/tinymce.d.ts +9 -0
  267. package/dist/es/components/tinymce/tinymce.mjs +176 -0
  268. package/dist/es/components/tinymce/tinymce.vue.d.ts +20 -0
  269. package/dist/es/components/tree-picker/components/popover-cascader.d.ts +8 -0
  270. package/dist/es/components/tree-picker/components/popover-cascader.vue.d.ts +1361 -0
  271. package/dist/es/components/tree-picker/docs/data.d.ts +2 -0
  272. package/dist/es/components/tree-picker/index.css +41 -0
  273. package/dist/es/components/tree-picker/index.d.ts +4 -0
  274. package/dist/es/components/tree-picker/index.mjs +6 -0
  275. package/dist/es/components/tree-picker/popover-cascader.css +23 -0
  276. package/dist/es/components/tree-picker/tree-picker.d.ts +14 -0
  277. package/dist/es/components/tree-picker/tree-picker.mjs +173 -0
  278. package/dist/es/components/tree-picker/tree-picker.vue.d.ts +575 -0
  279. package/dist/es/components/upload-file/index.css +30 -0
  280. package/dist/es/components/upload-file/index.d.ts +4 -0
  281. package/dist/es/components/upload-file/index.mjs +6 -0
  282. package/dist/es/components/upload-file/upload-file.d.ts +39 -0
  283. package/dist/es/components/upload-file/upload-file.mjs +202 -0
  284. package/dist/es/components/upload-file/upload-file.vue.d.ts +30 -0
  285. package/dist/es/directives/cleave/index.d.ts +3 -0
  286. package/dist/es/directives/focus/index.d.ts +4 -0
  287. package/dist/es/directives/index.d.ts +3 -0
  288. package/dist/es/directives/thousand/index.d.ts +3 -0
  289. package/dist/es/index.d.ts +42 -0
  290. package/dist/es/index.mjs +122 -0
  291. package/dist/es/use/useSmallScreen/index.d.ts +4 -0
  292. package/dist/es/use/useSmallScreen/index.mjs +10 -0
  293. package/dist/es/use/useStore/index.d.ts +3 -0
  294. package/dist/es/use/useStore/index.mjs +22 -0
  295. package/dist/es/utils/index.d.ts +6 -0
  296. package/dist/es/utils/resolver.d.ts +3 -0
  297. package/dist/es/utils/resolver.mjs +24 -0
  298. package/dist/es/utils/typescript.d.ts +6 -0
  299. package/dist/global.d.ts +42 -0
  300. package/dist/index.css +869 -0
  301. package/package.json +58 -0
@@ -0,0 +1,489 @@
1
+ import { c as buildProps } from './E_WRn0OP.mjs';
2
+ import { g as getNative, o as eq, b as isArray, j as isArguments, m as arrayPush, e as castPath, t as toKey, f as isLength, k as isIndex, i as isObject, d as baseGet } from './Spa-JKB4.mjs';
3
+ import { S as Symbol$1 } from './Fo0dZYnz.mjs';
4
+
5
+ /**
6
+ * This method returns the first argument it receives.
7
+ *
8
+ * @static
9
+ * @since 0.1.0
10
+ * @memberOf _
11
+ * @category Util
12
+ * @param {*} value Any value.
13
+ * @returns {*} Returns `value`.
14
+ * @example
15
+ *
16
+ * var object = { 'a': 1 };
17
+ *
18
+ * console.log(_.identity(object) === object);
19
+ * // => true
20
+ */
21
+ function identity(value) {
22
+ return value;
23
+ }
24
+
25
+ /**
26
+ * A faster alternative to `Function#apply`, this function invokes `func`
27
+ * with the `this` binding of `thisArg` and the arguments of `args`.
28
+ *
29
+ * @private
30
+ * @param {Function} func The function to invoke.
31
+ * @param {*} thisArg The `this` binding of `func`.
32
+ * @param {Array} args The arguments to invoke `func` with.
33
+ * @returns {*} Returns the result of `func`.
34
+ */
35
+ function apply(func, thisArg, args) {
36
+ switch (args.length) {
37
+ case 0: return func.call(thisArg);
38
+ case 1: return func.call(thisArg, args[0]);
39
+ case 2: return func.call(thisArg, args[0], args[1]);
40
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
41
+ }
42
+ return func.apply(thisArg, args);
43
+ }
44
+
45
+ /** Used to detect hot functions by number of calls within a span of milliseconds. */
46
+ var HOT_COUNT = 800,
47
+ HOT_SPAN = 16;
48
+
49
+ /* Built-in method references for those with the same name as other `lodash` methods. */
50
+ var nativeNow = Date.now;
51
+
52
+ /**
53
+ * Creates a function that'll short out and invoke `identity` instead
54
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
55
+ * milliseconds.
56
+ *
57
+ * @private
58
+ * @param {Function} func The function to restrict.
59
+ * @returns {Function} Returns the new shortable function.
60
+ */
61
+ function shortOut(func) {
62
+ var count = 0,
63
+ lastCalled = 0;
64
+
65
+ return function() {
66
+ var stamp = nativeNow(),
67
+ remaining = HOT_SPAN - (stamp - lastCalled);
68
+
69
+ lastCalled = stamp;
70
+ if (remaining > 0) {
71
+ if (++count >= HOT_COUNT) {
72
+ return arguments[0];
73
+ }
74
+ } else {
75
+ count = 0;
76
+ }
77
+ return func.apply(undefined, arguments);
78
+ };
79
+ }
80
+
81
+ /**
82
+ * Creates a function that returns `value`.
83
+ *
84
+ * @static
85
+ * @memberOf _
86
+ * @since 2.4.0
87
+ * @category Util
88
+ * @param {*} value The value to return from the new function.
89
+ * @returns {Function} Returns the new constant function.
90
+ * @example
91
+ *
92
+ * var objects = _.times(2, _.constant({ 'a': 1 }));
93
+ *
94
+ * console.log(objects);
95
+ * // => [{ 'a': 1 }, { 'a': 1 }]
96
+ *
97
+ * console.log(objects[0] === objects[1]);
98
+ * // => true
99
+ */
100
+ function constant(value) {
101
+ return function() {
102
+ return value;
103
+ };
104
+ }
105
+
106
+ var defineProperty = (function() {
107
+ try {
108
+ var func = getNative(Object, 'defineProperty');
109
+ func({}, '', {});
110
+ return func;
111
+ } catch (e) {}
112
+ }());
113
+
114
+ /**
115
+ * The base implementation of `setToString` without support for hot loop shorting.
116
+ *
117
+ * @private
118
+ * @param {Function} func The function to modify.
119
+ * @param {Function} string The `toString` result.
120
+ * @returns {Function} Returns `func`.
121
+ */
122
+ var baseSetToString = !defineProperty ? identity : function(func, string) {
123
+ return defineProperty(func, 'toString', {
124
+ 'configurable': true,
125
+ 'enumerable': false,
126
+ 'value': constant(string),
127
+ 'writable': true
128
+ });
129
+ };
130
+
131
+ /**
132
+ * Sets the `toString` method of `func` to return `string`.
133
+ *
134
+ * @private
135
+ * @param {Function} func The function to modify.
136
+ * @param {Function} string The `toString` result.
137
+ * @returns {Function} Returns `func`.
138
+ */
139
+ var setToString = shortOut(baseSetToString);
140
+
141
+ /**
142
+ * The base implementation of `assignValue` and `assignMergeValue` without
143
+ * value checks.
144
+ *
145
+ * @private
146
+ * @param {Object} object The object to modify.
147
+ * @param {string} key The key of the property to assign.
148
+ * @param {*} value The value to assign.
149
+ */
150
+ function baseAssignValue(object, key, value) {
151
+ if (key == '__proto__' && defineProperty) {
152
+ defineProperty(object, key, {
153
+ 'configurable': true,
154
+ 'enumerable': true,
155
+ 'value': value,
156
+ 'writable': true
157
+ });
158
+ } else {
159
+ object[key] = value;
160
+ }
161
+ }
162
+
163
+ /** Used for built-in method references. */
164
+ var objectProto = Object.prototype;
165
+
166
+ /** Used to check objects for own properties. */
167
+ var hasOwnProperty = objectProto.hasOwnProperty;
168
+
169
+ /**
170
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
171
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
172
+ * for equality comparisons.
173
+ *
174
+ * @private
175
+ * @param {Object} object The object to modify.
176
+ * @param {string} key The key of the property to assign.
177
+ * @param {*} value The value to assign.
178
+ */
179
+ function assignValue(object, key, value) {
180
+ var objValue = object[key];
181
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
182
+ (value === undefined && !(key in object))) {
183
+ baseAssignValue(object, key, value);
184
+ }
185
+ }
186
+
187
+ /* Built-in method references for those with the same name as other `lodash` methods. */
188
+ var nativeMax = Math.max;
189
+
190
+ /**
191
+ * A specialized version of `baseRest` which transforms the rest array.
192
+ *
193
+ * @private
194
+ * @param {Function} func The function to apply a rest parameter to.
195
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
196
+ * @param {Function} transform The rest array transform.
197
+ * @returns {Function} Returns the new function.
198
+ */
199
+ function overRest(func, start, transform) {
200
+ start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
201
+ return function() {
202
+ var args = arguments,
203
+ index = -1,
204
+ length = nativeMax(args.length - start, 0),
205
+ array = Array(length);
206
+
207
+ while (++index < length) {
208
+ array[index] = args[start + index];
209
+ }
210
+ index = -1;
211
+ var otherArgs = Array(start + 1);
212
+ while (++index < start) {
213
+ otherArgs[index] = args[index];
214
+ }
215
+ otherArgs[start] = transform(array);
216
+ return apply(func, this, otherArgs);
217
+ };
218
+ }
219
+
220
+ /** Built-in value references. */
221
+ var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : undefined;
222
+
223
+ /**
224
+ * Checks if `value` is a flattenable `arguments` object or array.
225
+ *
226
+ * @private
227
+ * @param {*} value The value to check.
228
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
229
+ */
230
+ function isFlattenable(value) {
231
+ return isArray(value) || isArguments(value) ||
232
+ !!(spreadableSymbol && value && value[spreadableSymbol]);
233
+ }
234
+
235
+ /**
236
+ * The base implementation of `_.flatten` with support for restricting flattening.
237
+ *
238
+ * @private
239
+ * @param {Array} array The array to flatten.
240
+ * @param {number} depth The maximum recursion depth.
241
+ * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
242
+ * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
243
+ * @param {Array} [result=[]] The initial result value.
244
+ * @returns {Array} Returns the new flattened array.
245
+ */
246
+ function baseFlatten(array, depth, predicate, isStrict, result) {
247
+ var index = -1,
248
+ length = array.length;
249
+
250
+ predicate || (predicate = isFlattenable);
251
+ result || (result = []);
252
+
253
+ while (++index < length) {
254
+ var value = array[index];
255
+ if (depth > 0 && predicate(value)) {
256
+ if (depth > 1) {
257
+ // Recursively flatten arrays (susceptible to call stack limits).
258
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
259
+ } else {
260
+ arrayPush(result, value);
261
+ }
262
+ } else {
263
+ result[result.length] = value;
264
+ }
265
+ }
266
+ return result;
267
+ }
268
+
269
+ /**
270
+ * Flattens `array` a single level deep.
271
+ *
272
+ * @static
273
+ * @memberOf _
274
+ * @since 0.1.0
275
+ * @category Array
276
+ * @param {Array} array The array to flatten.
277
+ * @returns {Array} Returns the new flattened array.
278
+ * @example
279
+ *
280
+ * _.flatten([1, [2, [3, [4]], 5]]);
281
+ * // => [1, 2, [3, [4]], 5]
282
+ */
283
+ function flatten(array) {
284
+ var length = array == null ? 0 : array.length;
285
+ return length ? baseFlatten(array, 1) : [];
286
+ }
287
+
288
+ /**
289
+ * A specialized version of `baseRest` which flattens the rest array.
290
+ *
291
+ * @private
292
+ * @param {Function} func The function to apply a rest parameter to.
293
+ * @returns {Function} Returns the new function.
294
+ */
295
+ function flatRest(func) {
296
+ return setToString(overRest(func, undefined, flatten), func + '');
297
+ }
298
+
299
+ /**
300
+ * The base implementation of `_.hasIn` without support for deep paths.
301
+ *
302
+ * @private
303
+ * @param {Object} [object] The object to query.
304
+ * @param {Array|string} key The key to check.
305
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
306
+ */
307
+ function baseHasIn(object, key) {
308
+ return object != null && key in Object(object);
309
+ }
310
+
311
+ /**
312
+ * Checks if `path` exists on `object`.
313
+ *
314
+ * @private
315
+ * @param {Object} object The object to query.
316
+ * @param {Array|string} path The path to check.
317
+ * @param {Function} hasFunc The function to check properties.
318
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
319
+ */
320
+ function hasPath(object, path, hasFunc) {
321
+ path = castPath(path, object);
322
+
323
+ var index = -1,
324
+ length = path.length,
325
+ result = false;
326
+
327
+ while (++index < length) {
328
+ var key = toKey(path[index]);
329
+ if (!(result = object != null && hasFunc(object, key))) {
330
+ break;
331
+ }
332
+ object = object[key];
333
+ }
334
+ if (result || ++index != length) {
335
+ return result;
336
+ }
337
+ length = object == null ? 0 : object.length;
338
+ return !!length && isLength(length) && isIndex(key, length) &&
339
+ (isArray(object) || isArguments(object));
340
+ }
341
+
342
+ /**
343
+ * Checks if `path` is a direct or inherited property of `object`.
344
+ *
345
+ * @static
346
+ * @memberOf _
347
+ * @since 4.0.0
348
+ * @category Object
349
+ * @param {Object} object The object to query.
350
+ * @param {Array|string} path The path to check.
351
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
352
+ * @example
353
+ *
354
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
355
+ *
356
+ * _.hasIn(object, 'a');
357
+ * // => true
358
+ *
359
+ * _.hasIn(object, 'a.b');
360
+ * // => true
361
+ *
362
+ * _.hasIn(object, ['a', 'b']);
363
+ * // => true
364
+ *
365
+ * _.hasIn(object, 'b');
366
+ * // => false
367
+ */
368
+ function hasIn(object, path) {
369
+ return object != null && hasPath(object, path, baseHasIn);
370
+ }
371
+
372
+ /**
373
+ * The base implementation of `_.set`.
374
+ *
375
+ * @private
376
+ * @param {Object} object The object to modify.
377
+ * @param {Array|string} path The path of the property to set.
378
+ * @param {*} value The value to set.
379
+ * @param {Function} [customizer] The function to customize path creation.
380
+ * @returns {Object} Returns `object`.
381
+ */
382
+ function baseSet(object, path, value, customizer) {
383
+ if (!isObject(object)) {
384
+ return object;
385
+ }
386
+ path = castPath(path, object);
387
+
388
+ var index = -1,
389
+ length = path.length,
390
+ lastIndex = length - 1,
391
+ nested = object;
392
+
393
+ while (nested != null && ++index < length) {
394
+ var key = toKey(path[index]),
395
+ newValue = value;
396
+
397
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
398
+ return object;
399
+ }
400
+
401
+ if (index != lastIndex) {
402
+ var objValue = nested[key];
403
+ newValue = undefined;
404
+ if (newValue === undefined) {
405
+ newValue = isObject(objValue)
406
+ ? objValue
407
+ : (isIndex(path[index + 1]) ? [] : {});
408
+ }
409
+ }
410
+ assignValue(nested, key, newValue);
411
+ nested = nested[key];
412
+ }
413
+ return object;
414
+ }
415
+
416
+ /**
417
+ * The base implementation of `_.pickBy` without support for iteratee shorthands.
418
+ *
419
+ * @private
420
+ * @param {Object} object The source object.
421
+ * @param {string[]} paths The property paths to pick.
422
+ * @param {Function} predicate The function invoked per property.
423
+ * @returns {Object} Returns the new object.
424
+ */
425
+ function basePickBy(object, paths, predicate) {
426
+ var index = -1,
427
+ length = paths.length,
428
+ result = {};
429
+
430
+ while (++index < length) {
431
+ var path = paths[index],
432
+ value = baseGet(object, path);
433
+
434
+ if (predicate(value, path)) {
435
+ baseSet(result, castPath(path, object), value);
436
+ }
437
+ }
438
+ return result;
439
+ }
440
+
441
+ /**
442
+ * The base implementation of `_.pick` without support for individual
443
+ * property identifiers.
444
+ *
445
+ * @private
446
+ * @param {Object} object The source object.
447
+ * @param {string[]} paths The property paths to pick.
448
+ * @returns {Object} Returns the new object.
449
+ */
450
+ function basePick(object, paths) {
451
+ return basePickBy(object, paths, function(value, path) {
452
+ return hasIn(object, path);
453
+ });
454
+ }
455
+
456
+ /**
457
+ * Creates an object composed of the picked `object` properties.
458
+ *
459
+ * @static
460
+ * @since 0.1.0
461
+ * @memberOf _
462
+ * @category Object
463
+ * @param {Object} object The source object.
464
+ * @param {...(string|string[])} [paths] The property paths to pick.
465
+ * @returns {Object} Returns the new object.
466
+ * @example
467
+ *
468
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
469
+ *
470
+ * _.pick(object, ['a', 'c']);
471
+ * // => { 'a': 1, 'c': 3 }
472
+ */
473
+ var pick = flatRest(function(object, paths) {
474
+ return object == null ? {} : basePick(object, paths);
475
+ });
476
+
477
+ const ariaProps = buildProps({
478
+ ariaLabel: String,
479
+ ariaOrientation: {
480
+ type: String,
481
+ values: ["horizontal", "vertical", "undefined"]
482
+ },
483
+ ariaControls: String
484
+ });
485
+ const useAriaProps = (arias) => {
486
+ return pick(ariaProps, arias);
487
+ };
488
+
489
+ export { flatRest as a, baseFlatten as b, baseAssignValue as c, assignValue as d, flatten as f, hasIn as h, identity as i, pick as p, useAriaProps as u };
@@ -0,0 +1,64 @@
1
+ import { getCurrentInstance, inject, ref, computed } from 'vue';
2
+ import { c as buildProps, d as definePropType, j as isFunction, i as isArray, e as debugWarn } from './E_WRn0OP.mjs';
3
+ import { i as isEqual } from './-EkpfdcW.mjs';
4
+
5
+ const emptyValuesContextKey = Symbol("emptyValuesContextKey");
6
+ const SCOPE = "use-empty-values";
7
+ const DEFAULT_EMPTY_VALUES = ["", void 0, null];
8
+ const DEFAULT_VALUE_ON_CLEAR = void 0;
9
+ const useEmptyValuesProps = buildProps({
10
+ emptyValues: Array,
11
+ valueOnClear: {
12
+ type: definePropType([
13
+ String,
14
+ Number,
15
+ Boolean,
16
+ Function
17
+ ]),
18
+ default: void 0,
19
+ validator: (val) => {
20
+ val = isFunction(val) ? val() : val;
21
+ if (isArray(val)) {
22
+ return val.every((item) => !item);
23
+ }
24
+ return !val;
25
+ }
26
+ }
27
+ });
28
+ const useEmptyValues = (props, defaultValue) => {
29
+ const config = getCurrentInstance() ? inject(emptyValuesContextKey, ref({})) : ref({});
30
+ const emptyValues = computed(() => props.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES);
31
+ const valueOnClear = computed(() => {
32
+ if (isFunction(props.valueOnClear)) {
33
+ return props.valueOnClear();
34
+ } else if (props.valueOnClear !== void 0) {
35
+ return props.valueOnClear;
36
+ } else if (isFunction(config.value.valueOnClear)) {
37
+ return config.value.valueOnClear();
38
+ } else if (config.value.valueOnClear !== void 0) {
39
+ return config.value.valueOnClear;
40
+ }
41
+ return defaultValue !== void 0 ? defaultValue : DEFAULT_VALUE_ON_CLEAR;
42
+ });
43
+ const isEmptyValue = (value) => {
44
+ let result = true;
45
+ if (isArray(value)) {
46
+ result = emptyValues.value.some((emptyValue) => {
47
+ return isEqual(value, emptyValue);
48
+ });
49
+ } else {
50
+ result = emptyValues.value.includes(value);
51
+ }
52
+ return result;
53
+ };
54
+ if (!isEmptyValue(valueOnClear.value)) {
55
+ debugWarn(SCOPE, "value-on-clear should be a value of empty-values");
56
+ }
57
+ return {
58
+ emptyValues,
59
+ valueOnClear,
60
+ isEmptyValue
61
+ };
62
+ };
63
+
64
+ export { useEmptyValues as a, emptyValuesContextKey as e, useEmptyValuesProps as u };