bkui-vue 0.0.2-beta.9 → 0.0.2-beta.91

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 (407) hide show
  1. package/dist/index.cjs.js +143 -161
  2. package/dist/index.esm.js +21050 -23162
  3. package/dist/index.umd.js +143 -161
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.d.ts +1 -1
  15. package/lib/affix/index.d.ts +4 -4
  16. package/lib/affix/index.js +321 -1
  17. package/lib/alert/alert.css +7 -0
  18. package/lib/alert/alert.d.ts +5 -5
  19. package/lib/alert/alert.less +16 -6
  20. package/lib/alert/alert.variable.css +7 -0
  21. package/lib/alert/index.d.ts +10 -10
  22. package/lib/alert/index.js +214 -1
  23. package/lib/animate-number/index.d.ts +1 -1
  24. package/lib/animate-number/index.js +155 -1
  25. package/lib/backtop/backtop.css +8 -8
  26. package/lib/backtop/backtop.less +3 -1
  27. package/lib/backtop/backtop.variable.css +11 -11
  28. package/lib/backtop/index.d.ts +1 -1
  29. package/lib/backtop/index.js +188 -1
  30. package/lib/badge/badge.d.ts +2 -2
  31. package/lib/badge/index.d.ts +7 -7
  32. package/lib/badge/index.js +235 -1
  33. package/lib/breadcrumb/breadcrumb.css +4 -4
  34. package/lib/breadcrumb/breadcrumb.variable.css +4 -4
  35. package/lib/breadcrumb/index.d.ts +2 -2
  36. package/lib/breadcrumb/index.js +309 -1
  37. package/lib/button/button.css +20 -0
  38. package/lib/button/button.less +105 -94
  39. package/lib/button/button.variable.css +20 -0
  40. package/lib/button/index.d.ts +2 -2
  41. package/lib/button/index.js +321 -1
  42. package/lib/card/card.css +4 -4
  43. package/lib/card/card.d.ts +1 -1
  44. package/lib/card/card.variable.css +4 -4
  45. package/lib/card/index.d.ts +4 -4
  46. package/lib/card/index.js +285 -1
  47. package/lib/cascader/cascader.css +4 -4
  48. package/lib/cascader/cascader.d.ts +1 -0
  49. package/lib/cascader/cascader.variable.css +4 -4
  50. package/lib/cascader/index.d.ts +5 -2
  51. package/lib/cascader/index.js +2036 -2
  52. package/lib/cascader/interface.d.ts +1 -1
  53. package/lib/checkbox/checkbox-group.d.ts +6 -3
  54. package/lib/checkbox/checkbox.d.ts +6 -4
  55. package/lib/checkbox/index.d.ts +28 -19
  56. package/lib/checkbox/index.js +545 -1
  57. package/lib/code-diff/index.d.ts +1 -1
  58. package/lib/code-diff/index.js +5501 -1
  59. package/lib/collapse/index.d.ts +2 -2
  60. package/lib/collapse/index.js +570 -1
  61. package/lib/collapse-transition/index.d.ts +128 -2
  62. package/lib/collapse-transition/index.js +177 -1
  63. package/lib/color-picker/color-picker.d.ts +16 -0
  64. package/lib/color-picker/components/recommend-colors.d.ts +16 -0
  65. package/lib/color-picker/index.d.ts +19 -1
  66. package/lib/color-picker/index.js +2665 -1
  67. package/lib/components.js +530 -1
  68. package/lib/config-provider/config-provider.d.ts +3 -0
  69. package/lib/config-provider/index.d.ts +5 -1
  70. package/lib/config-provider/index.js +365 -1
  71. package/lib/config-provider/token.d.ts +1 -0
  72. package/lib/config-provider/use-global-config.d.ts +2 -0
  73. package/lib/config-provider/use-prefix.d.ts +2 -0
  74. package/lib/container/container.css +4 -4
  75. package/lib/container/container.variable.css +4 -4
  76. package/lib/container/index.d.ts +2 -2
  77. package/lib/container/index.js +391 -1
  78. package/lib/date-picker/date-picker.d.ts +4 -2
  79. package/lib/date-picker/index.d.ts +15 -8
  80. package/lib/date-picker/index.js +5555 -1
  81. package/lib/date-picker/panel/date-range.d.ts +2 -1
  82. package/lib/date-picker/time-picker.d.ts +1 -1
  83. package/lib/dialog/dialog.css +2 -0
  84. package/lib/dialog/dialog.variable.css +2 -0
  85. package/lib/dialog/index.d.ts +1 -1
  86. package/lib/dialog/index.js +975 -2
  87. package/lib/directives/index.js +1376 -2
  88. package/lib/directives/tooltips.d.ts +3 -2
  89. package/lib/dist.index.js +87 -1
  90. package/lib/divider/index.d.ts +1 -1
  91. package/lib/divider/index.js +169 -1
  92. package/lib/dropdown/dropdown.css +1 -0
  93. package/lib/dropdown/dropdown.variable.css +1 -0
  94. package/lib/dropdown/index.d.ts +2 -2
  95. package/lib/dropdown/index.js +369 -1
  96. package/lib/exception/index.d.ts +2 -2
  97. package/lib/exception/index.js +385 -1
  98. package/lib/fixed-navbar/index.d.ts +1 -1
  99. package/lib/fixed-navbar/index.js +154 -1
  100. package/lib/form/index.d.ts +3 -3
  101. package/lib/form/index.js +952 -1
  102. package/lib/hooks.d.ts +1 -1
  103. package/lib/hooks.js +73 -1
  104. package/lib/icon/angle-double-down-line.js +191 -1
  105. package/lib/icon/angle-double-left-line.js +191 -1
  106. package/lib/icon/angle-double-left.js +191 -1
  107. package/lib/icon/angle-double-right-line.js +191 -1
  108. package/lib/icon/angle-double-right.js +191 -1
  109. package/lib/icon/angle-double-up-line.js +191 -1
  110. package/lib/icon/angle-down-fill.js +191 -1
  111. package/lib/icon/angle-down-line.js +191 -1
  112. package/lib/icon/angle-down.js +191 -1
  113. package/lib/icon/angle-left.js +191 -1
  114. package/lib/icon/angle-right.js +191 -1
  115. package/lib/icon/angle-up-fill.js +191 -1
  116. package/lib/icon/angle-up.js +191 -1
  117. package/lib/icon/archive-fill.js +191 -1
  118. package/lib/icon/arrows-left.js +191 -1
  119. package/lib/icon/arrows-right.js +191 -1
  120. package/lib/icon/assistant.d.ts +4 -0
  121. package/lib/icon/assistant.js +191 -0
  122. package/lib/icon/audio-fill.js +191 -1
  123. package/lib/icon/bk.js +191 -1
  124. package/lib/icon/circle.js +191 -1
  125. package/lib/icon/close-line.js +191 -1
  126. package/lib/icon/close.js +191 -1
  127. package/lib/icon/code.js +191 -1
  128. package/lib/icon/cog-shape.js +191 -1
  129. package/lib/icon/collapse-left.js +191 -1
  130. package/lib/icon/copy-shape.js +191 -1
  131. package/lib/icon/copy.js +191 -1
  132. package/lib/icon/data-shape.js +191 -1
  133. package/lib/icon/del.js +191 -1
  134. package/lib/icon/doc-fill.js +191 -1
  135. package/lib/icon/done.js +191 -1
  136. package/lib/icon/down-shape.js +191 -1
  137. package/lib/icon/down-small.js +191 -1
  138. package/lib/icon/edit-line.js +191 -1
  139. package/lib/icon/ellipsis.js +191 -1
  140. package/lib/icon/enlarge-line.js +191 -1
  141. package/lib/icon/error.js +191 -1
  142. package/lib/icon/excel-fill.js +191 -1
  143. package/lib/icon/exclamation-circle-shape.js +191 -1
  144. package/lib/icon/eye.js +191 -1
  145. package/lib/icon/filliscreen-line.js +191 -1
  146. package/lib/icon/fix-line.js +191 -1
  147. package/lib/icon/fix-shape.js +191 -1
  148. package/lib/icon/folder-open.js +191 -1
  149. package/lib/icon/folder-shape-open.js +191 -1
  150. package/lib/icon/folder-shape.js +191 -1
  151. package/lib/icon/folder.js +191 -1
  152. package/lib/icon/funnel.js +191 -1
  153. package/lib/icon/help-document-fill.js +191 -1
  154. package/lib/icon/help-fill.js +191 -1
  155. package/lib/icon/help.js +191 -1
  156. package/lib/icon/image-fill.js +276 -1
  157. package/lib/icon/img-error.js +276 -1
  158. package/lib/icon/img-placehoulder.js +276 -1
  159. package/lib/icon/index.d.ts +1 -0
  160. package/lib/icon/index.js +2399 -1
  161. package/lib/icon/info-line.js +276 -1
  162. package/lib/icon/info.js +276 -1
  163. package/lib/icon/left-shape.js +276 -1
  164. package/lib/icon/left-turn-line.js +276 -1
  165. package/lib/icon/narrow-line.js +276 -1
  166. package/lib/icon/original.js +276 -1
  167. package/lib/icon/pdf-fill.js +276 -1
  168. package/lib/icon/play-shape.js +276 -1
  169. package/lib/icon/plus.js +276 -1
  170. package/lib/icon/ppt-fill.js +276 -1
  171. package/lib/icon/qq.js +276 -1
  172. package/lib/icon/right-shape.js +276 -1
  173. package/lib/icon/right-turn-line.js +276 -1
  174. package/lib/icon/search.js +276 -1
  175. package/lib/icon/share.js +276 -1
  176. package/lib/icon/spinner.js +276 -1
  177. package/lib/icon/success.js +276 -1
  178. package/lib/icon/switcher-loading.js +276 -1
  179. package/lib/icon/text-file.js +276 -1
  180. package/lib/icon/text-fill.js +276 -1
  181. package/lib/icon/transfer.js +276 -1
  182. package/lib/icon/tree-application-shape.js +276 -1
  183. package/lib/icon/unfull-screen.js +276 -1
  184. package/lib/icon/unvisible.js +276 -1
  185. package/lib/icon/up-shape.js +276 -1
  186. package/lib/icon/upload.js +276 -1
  187. package/lib/icon/video-fill.js +276 -1
  188. package/lib/icon/warn.js +276 -1
  189. package/lib/icon/weixin-pro.js +276 -1
  190. package/lib/icon/weixin.js +276 -1
  191. package/lib/image/index.d.ts +1 -1
  192. package/lib/image/index.js +641 -1
  193. package/lib/index.js +97 -1
  194. package/lib/info-box/index.js +1165 -2
  195. package/lib/info-box/info-box.css +2 -0
  196. package/lib/info-box/info-box.less +2 -1
  197. package/lib/info-box/info-box.variable.css +2 -0
  198. package/lib/input/index.d.ts +146 -50
  199. package/lib/input/index.js +1218 -1
  200. package/lib/input/input.css +38 -10
  201. package/lib/input/input.d.ts +100 -11
  202. package/lib/input/input.less +53 -14
  203. package/lib/input/input.variable.css +38 -10
  204. package/lib/input/util.d.ts +6 -0
  205. package/lib/link/index.d.ts +4 -4
  206. package/lib/link/index.js +160 -1
  207. package/lib/link/link.d.ts +1 -1
  208. package/lib/loading/index.d.ts +2 -2
  209. package/lib/loading/index.js +381 -1
  210. package/lib/loading/loading.css +4 -4
  211. package/lib/loading/loading.variable.css +4 -4
  212. package/lib/locale/index.js +465 -1
  213. package/lib/locale/lang/en.d.ts +1 -0
  214. package/lib/menu/index.d.ts +2 -2
  215. package/lib/menu/index.js +724 -1
  216. package/lib/menu/menu.css +4 -4
  217. package/lib/menu/menu.variable.css +4 -4
  218. package/lib/message/index.js +1795 -2
  219. package/lib/message/message.css +33 -9
  220. package/lib/message/message.less +78 -54
  221. package/lib/message/message.variable.css +33 -9
  222. package/lib/message/messageConstructor.d.ts +25 -4
  223. package/lib/modal/index.d.ts +2 -2
  224. package/lib/modal/index.js +396 -1
  225. package/lib/modal/modal.css +2 -0
  226. package/lib/modal/modal.variable.css +2 -0
  227. package/lib/navigation/index.d.ts +4 -1
  228. package/lib/navigation/index.js +367 -1
  229. package/lib/navigation/navigation.d.ts +1 -0
  230. package/lib/notify/index.js +397 -1
  231. package/lib/notify/notifyConstructor.d.ts +1 -1
  232. package/lib/overflow-title/components/overflow-title.d.ts +257 -1
  233. package/lib/overflow-title/index.d.ts +387 -2
  234. package/lib/overflow-title/index.js +461 -1
  235. package/lib/overflow-title/props.d.ts +129 -0
  236. package/lib/pagination/index.d.ts +2 -2
  237. package/lib/pagination/index.js +880 -1
  238. package/lib/plugin-popover/index.js +3905 -1
  239. package/lib/plugins/index.js +63 -1
  240. package/lib/pop-confirm/index.d.ts +1 -1
  241. package/lib/pop-confirm/index.js +273 -1
  242. package/lib/popover/content.d.ts +33 -0
  243. package/lib/popover/index.d.ts +74 -16
  244. package/lib/popover/index.js +3913 -1
  245. package/lib/popover/popover.css +1 -0
  246. package/lib/popover/popover.d.ts +40 -7
  247. package/lib/popover/popover.less +3 -2
  248. package/lib/popover/popover.variable.css +1 -0
  249. package/lib/popover/props.d.ts +25 -2
  250. package/lib/popover/use-floating.d.ts +1 -1
  251. package/lib/popover/use-popover-init.d.ts +2 -1
  252. package/lib/popover2/index.d.ts +1 -1
  253. package/lib/popover2/index.js +107 -1
  254. package/lib/preset.d.ts +2 -0
  255. package/lib/preset.js +93 -1
  256. package/lib/process/index.d.ts +1 -1
  257. package/lib/process/index.js +759 -2
  258. package/lib/progress/index.d.ts +1 -1
  259. package/lib/progress/index.js +431 -1
  260. package/lib/progress/progress.css +4 -4
  261. package/lib/progress/progress.variable.css +4 -4
  262. package/lib/radio/index.d.ts +23 -23
  263. package/lib/radio/index.js +627 -1
  264. package/lib/radio/radio-button.d.ts +4 -4
  265. package/lib/radio/radio-group.d.ts +4 -4
  266. package/lib/radio/radio.d.ts +4 -4
  267. package/lib/rate/index.d.ts +8 -4
  268. package/lib/rate/index.js +338 -1
  269. package/lib/rate/rate.d.ts +2 -1
  270. package/lib/resize-layout/index.d.ts +4 -4
  271. package/lib/resize-layout/index.js +429 -1
  272. package/lib/resize-layout/resize-layout.css +12 -0
  273. package/lib/resize-layout/resize-layout.d.ts +1 -1
  274. package/lib/resize-layout/resize-layout.less +12 -0
  275. package/lib/resize-layout/resize-layout.variable.css +12 -0
  276. package/lib/search-select/index.d.ts +62 -29
  277. package/lib/search-select/index.js +2729 -2
  278. package/lib/search-select/input.d.ts +5 -1
  279. package/lib/search-select/menu.d.ts +33 -2
  280. package/lib/search-select/search-select.css +38 -20
  281. package/lib/search-select/search-select.d.ts +23 -20
  282. package/lib/search-select/search-select.less +35 -14
  283. package/lib/search-select/search-select.variable.css +38 -20
  284. package/lib/search-select/selected.d.ts +5 -1
  285. package/lib/search-select/utils.d.ts +13 -5
  286. package/lib/select/common.d.ts +1 -0
  287. package/lib/select/index.d.ts +198 -72
  288. package/lib/select/index.js +2254 -2
  289. package/lib/select/option.d.ts +11 -0
  290. package/lib/select/select.css +13 -5
  291. package/lib/select/select.d.ts +83 -31
  292. package/lib/select/select.less +11 -1
  293. package/lib/select/select.variable.css +37 -29
  294. package/lib/select/selectTagInput.d.ts +8 -5
  295. package/lib/shared/helper.d.ts +1 -1
  296. package/lib/shared/index.js +2689 -1
  297. package/lib/shared/mask-manager.d.ts +3 -4
  298. package/lib/shared/pop-manager.d.ts +6 -2
  299. package/lib/shared/popover.d.ts +2 -2
  300. package/lib/shared/vue-types.d.ts +3 -2
  301. package/lib/sideslider/index.d.ts +1 -1
  302. package/lib/sideslider/index.js +714 -2
  303. package/lib/slider/index.d.ts +1 -1
  304. package/lib/slider/index.js +1291 -2
  305. package/lib/steps/index.d.ts +1 -1
  306. package/lib/steps/index.js +825 -2
  307. package/lib/styles/mixins/animate.css +4 -4
  308. package/lib/styles/mixins/animate.less +10 -6
  309. package/lib/styles/mixins/animate.variable.css +126 -4
  310. package/lib/styles/mixins/clearfix.css +8 -0
  311. package/lib/styles/mixins/clearfix.less +10 -0
  312. package/lib/styles/mixins/clearfix.variable.css +8 -0
  313. package/lib/styles/mixins/mixins.css +72 -0
  314. package/lib/styles/mixins/mixins.less +5 -0
  315. package/lib/styles/mixins/mixins.variable.css +72 -0
  316. package/lib/styles/mixins/popper.less +6 -5
  317. package/lib/swiper/index.d.ts +1 -1
  318. package/lib/swiper/index.js +336 -1
  319. package/lib/swiper/swiper.css +0 -6
  320. package/lib/swiper/swiper.less +0 -8
  321. package/lib/swiper/swiper.variable.css +0 -6
  322. package/lib/switcher/index.d.ts +30 -16
  323. package/lib/switcher/index.js +277 -1
  324. package/lib/switcher/switcher.css +4 -4
  325. package/lib/switcher/switcher.d.ts +74 -5
  326. package/lib/switcher/switcher.variable.css +4 -4
  327. package/lib/tab/index.d.ts +3 -3
  328. package/lib/tab/index.js +914 -1
  329. package/lib/tab/tab-nav.d.ts +12 -2
  330. package/lib/tab/tab-panel.d.ts +1 -1
  331. package/lib/table/components/table-cell.d.ts +22 -24
  332. package/lib/table/components/table-column.d.ts +125 -82
  333. package/lib/table/const.d.ts +24 -2
  334. package/lib/table/events.d.ts +26 -26
  335. package/lib/table/index.d.ts +281 -295
  336. package/lib/table/index.js +6243 -1
  337. package/lib/table/plugins/head-filter.css +3 -0
  338. package/lib/table/plugins/head-filter.less +3 -0
  339. package/lib/table/plugins/head-filter.variable.css +3 -0
  340. package/lib/table/plugins/settings.d.ts +7 -17
  341. package/lib/table/plugins/use-column-resize.d.ts +30 -10
  342. package/lib/table/plugins/use-fixed-column.d.ts +9 -9
  343. package/lib/table/plugins/use-pagination.d.ts +7 -4
  344. package/lib/table/props.d.ts +118 -58
  345. package/lib/table/render.d.ts +7 -17
  346. package/lib/table/table.css +83 -11
  347. package/lib/table/table.d.ts +95 -72
  348. package/lib/table/table.less +59 -21
  349. package/lib/table/table.variable.css +83 -11
  350. package/lib/table/use-attributes.d.ts +55 -0
  351. package/lib/table/use-column.d.ts +264 -49
  352. package/lib/table/use-common.d.ts +1608 -88
  353. package/lib/table/use-render.d.ts +11 -0
  354. package/lib/table/utils.d.ts +30 -29
  355. package/lib/table-column/index.d.ts +241 -408
  356. package/lib/table-column/index.js +766 -1
  357. package/lib/tag/index.d.ts +10 -10
  358. package/lib/tag/index.js +233 -1
  359. package/lib/tag/tag.d.ts +5 -5
  360. package/lib/tag-input/index.d.ts +49 -7
  361. package/lib/tag-input/index.js +1660 -1
  362. package/lib/tag-input/tag-input.css +9 -1
  363. package/lib/tag-input/tag-input.d.ts +32 -4
  364. package/lib/tag-input/tag-input.less +13 -4
  365. package/lib/tag-input/tag-input.variable.css +9 -1
  366. package/lib/tag-input/tag-props.d.ts +16 -2
  367. package/lib/time-picker/index.d.ts +4 -4
  368. package/lib/time-picker/index.js +71 -1
  369. package/lib/timeline/index.d.ts +1 -1
  370. package/lib/timeline/index.js +241 -1
  371. package/lib/transfer/index.d.ts +1 -1
  372. package/lib/transfer/index.js +673 -1
  373. package/lib/tree/constant.d.ts +2 -2
  374. package/lib/tree/index.d.ts +58 -22
  375. package/lib/tree/index.js +2512 -1
  376. package/lib/tree/props.d.ts +18 -6
  377. package/lib/tree/tree.d.ts +32 -11
  378. package/lib/tree/use-node-action.d.ts +5 -3
  379. package/lib/tree/use-node-attribute.d.ts +17 -8
  380. package/lib/tree/use-search.d.ts +2 -2
  381. package/lib/tree/use-tree-init.d.ts +1 -2
  382. package/lib/tree/util.d.ts +8 -3
  383. package/lib/upload/index.d.ts +1 -1
  384. package/lib/upload/index.js +2874 -2
  385. package/lib/upload/upload.css +4 -4
  386. package/lib/upload/upload.type.d.ts +1 -1
  387. package/lib/upload/upload.variable.css +4 -4
  388. package/lib/upload/use-file-handler.d.ts +2 -2
  389. package/lib/virtual-render/index.d.ts +43 -1
  390. package/lib/virtual-render/index.js +865 -1
  391. package/lib/virtual-render/props.d.ts +15 -0
  392. package/lib/virtual-render/v-virtual-render.d.ts +19 -1
  393. package/lib/virtual-render/virtual-render.d.ts +25 -0
  394. package/lib/volar.components.d.ts +24 -24
  395. package/package.json +29 -17
  396. package/lib/cascader/index.js.LICENSE.txt +0 -1
  397. package/lib/dialog/index.js.LICENSE.txt +0 -1
  398. package/lib/directives/index.js.LICENSE.txt +0 -14
  399. package/lib/info-box/index.js.LICENSE.txt +0 -1
  400. package/lib/message/index.js.LICENSE.txt +0 -6
  401. package/lib/process/index.js.LICENSE.txt +0 -1
  402. package/lib/search-select/index.js.LICENSE.txt +0 -1
  403. package/lib/select/index.js.LICENSE.txt +0 -1
  404. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  405. package/lib/slider/index.js.LICENSE.txt +0 -1
  406. package/lib/steps/index.js.LICENSE.txt +0 -1
  407. package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1,2 +1,1291 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../input"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../input","../popover"],t);else{var a="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../input"),require("../popover")):t(e["../shared"],e.vue,e["../config-provider"],e["../input"],e["../popover"]);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,((e,t,a,r,n)=>(()=>{var o={2717:e=>{"use strict";e.exports=a},8133:e=>{"use strict";e.exports=r},5537:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},7609:(e,t,a)=>{var r=a(7425).default;function n(){"use strict";e.exports=n=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},a=Object.prototype,o=a.hasOwnProperty,u=Object.defineProperty||function(e,t,a){e[t]=a.value},l="function"==typeof Symbol?Symbol:{},i=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function v(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{v({},"")}catch(e){v=function(e,t,a){return e[t]=a}}function m(e,t,a,r){var n=t&&t.prototype instanceof p?t:p,o=Object.create(n.prototype),l=new j(r||[]);return u(o,"_invoke",{value:N(e,a,l)}),o}function d(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var f={};function p(){}function h(){}function y(){}var V={};v(V,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(O([])));x&&x!==a&&o.call(x,i)&&(V=x);var g=y.prototype=p.prototype=Object.create(V);function w(e){["next","throw","return"].forEach((function(t){v(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function a(n,u,l,i){var c=d(e[n],e,u);if("throw"!==c.type){var s=c.arg,v=s.value;return v&&"object"==r(v)&&o.call(v,"__await")?t.resolve(v.__await).then((function(e){a("next",e,l,i)}),(function(e){a("throw",e,l,i)})):t.resolve(v).then((function(e){s.value=e,l(s)}),(function(e){return a("throw",e,l,i)}))}i(c.arg)}var n;u(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,n){a(e,r,t,n)}))}return n=n?n.then(o,o):o()}})}function N(e,t,a){var r="suspendedStart";return function(n,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw o;return{value:void 0,done:!0}}for(a.method=n,a.arg=o;;){var u=a.delegate;if(u){var l=S(u,a);if(l){if(l===f)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var i=d(e,t,a);if("normal"===i.type){if(r=a.done?"completed":"suspendedYield",i.arg===f)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(r="completed",a.method="throw",a.arg=i.arg)}}}function S(e,t){var a=t.method,r=e.iterator[a];if(void 0===r)return t.delegate=null,"throw"===a&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f;var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function t(){for(;++a<e.length;)if(o.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=y,u(g,"constructor",{value:y,configurable:!0}),u(y,"constructor",{value:h,configurable:!0}),h.displayName=v(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,v(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},w(L.prototype),v(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,a,r,n,o){void 0===o&&(o=Promise);var u=new L(m(e,a,r,n),o);return t.isGeneratorFunction(a)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},w(g),v(g,s,"Generator"),v(g,i,(function(){return this})),v(g,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var r in t)a.push(r);return a.reverse(),function e(){for(;a.length;){var r=a.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(a,r){return u.type="throw",u.arg=e,t.next=a,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r],u=n.completion;if("root"===n.tryLoc)return a("end");if(n.tryLoc<=this.prev){var l=o.call(n,"catchLoc"),i=o.call(n,"finallyLoc");if(l&&i){if(this.prev<n.catchLoc)return a(n.catchLoc,!0);if(this.prev<n.finallyLoc)return a(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return a(n.catchLoc,!0)}else{if(!i)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return a(n.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var n=r;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var u=n?n.completion:{};return u.type=e,u.arg=t,n?(this.method="next",this.next=n.finallyLoc,f):this.complete(u)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),C(a),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var n=r.arg;C(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:O(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(a){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,a)=>{var r=a(7609)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var a=u[e]={exports:{}};return o[e](a,a.exports,l),a.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";l.r(i),l.d(i,{default:()=>p});var e=l(4212),t=l(748),a=l(2841),r=l.n(a);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var n=l(2717),o=l(8133),u=l.n(o),c=l(5537),s=l.n(c);const v=(0,t.defineComponent)({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:function(){return{}}}},emits:["emitChange","resetSize","update:modelValue"],setup:function(a,r){var o=r.emit,u=(0,t.ref)(!1),l=(0,t.ref)(!1),i=(0,t.ref)(0),c=(0,t.ref)(0),v=(0,t.ref)(0),f=(0,t.ref)(null),p=(0,t.ref)(a.modelValue),h=(0,t.ref)(0),y=(0,t.ref)(0),V=(0,t.ref)(!1),b=(0,t.ref)(null),x=(0,t.computed)((function(){var t,r,n="";if(null===(t=a.params.customContent)||void 0===t?void 0:t[a.modelValue]){var o=a.params.customContent[a.modelValue];n=o.tip||o.label||""}var u=a.params.vertical?e.PlacementEnum.RIGHT:e.PlacementEnum.TOP;return(null===(r=a.params)||void 0===r?void 0:r.showTip)?{content:a.params.formatterTipLabel("".concat(n||(null==a?void 0:a.modelValue)||"0")),placement:u}:{content:"",placement:u}})),g=(0,t.computed)((function(){return"".concat((a.modelValue-a.params.minValue)/(a.params.maxValue-a.params.minValue)*100,"%")})),w=(0,t.computed)((function(){return a.params.vertical?{bottom:g.value}:{left:g.value}})),L=(0,t.computed)((function(){return a.params.formatterButtonLabel(a.modelValue)})),N=function(e){a.params.disable||(e.preventDefault(),S(e),m(window,"mousemove",E),m(window,"touchmove",E),m(window,"mouseup",C),m(window,"touchend",C))},S=function(e){u.value=!0,l.value=!0,a.params.vertical?i.value=e.clientY:c.value=e.clientX,v.value=parseFloat(g.value),f.value=v.value},E=function(e){if(u.value){l.value=!1,o("resetSize");var t=0;a.params.vertical?(h.value=e.clientY,t=(i.value-h.value)/a.params.sliderSize*100):(y.value=e.clientX,t=(y.value-c.value)/a.params.sliderSize*100),f.value=v.value+t,j(f.value)}},C=function e(){V.value=!1,u.value&&(setTimeout((function(){u.value=!1,l.value||(j(f.value),o("emitChange"))}),0),d(window,"mousemove",E),d(window,"touchmove",E),d(window,"mouseup",e),d(window,"touchend",e))},j=function(e){if(null!==e&&!isNaN(e)){e<0?f.value=0:e>100&&(f.value=100);var t=100/((a.params.maxValue-a.params.minValue)/a.params.step),r=Math.round(e/t)*t*(a.params.maxValue-a.params.minValue)*.01+a.params.minValue;r=parseFloat(r.toFixed(a.params.precision)),o("update:modelValue",r),u.value||a.modelValue===p.value||(p.value=a.modelValue)}},O=(0,n.usePrefix)().resolveClassName;return{renderDom:function(){return(0,t.createVNode)("div",{class:["".concat(O("slider-button")),a.params.vertical?"vertical":"horizontal",{grabbing:u.value}],ref:b,tabindex:"0",style:w.value,onClick:function(e){return e.stopPropagation()},onMousedown:N},[Boolean(x.value.content)?(0,t.createVNode)(s(),{content:x.value.content,theme:"dark",placement:x.value.placement,boundary:document.body},{default:function(){return[(0,t.createVNode)("div",{class:["slider-button",{"slider-button-disable":a.params.disable}]},null)]}}):(0,t.createVNode)("div",{class:["slider-button",{"slider-button-disable":a.params.disable}]},null),a.params.showButtonLabel&&!a.params.showIntervalLabel?(0,t.createVNode)("div",{class:["slider-button-label",a.params.vertical?"vertical":"horizontal"]},[L.value]):void 0])},setPosition:j,tip:x}},render:function(){return this.renderDom()}});var m=function(e,t,a){e&&t&&a&&e.addEventListener(t,a,!1)},d=function(e,t,a){e&&t&&a&&e.removeEventListener(t,a,!1)};const f=(0,t.defineComponent)({name:"Slider",props:{modelValue:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.number),e.PropTypes.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object,default:null},formatterLabel:{type:Function,default:function(e){return e}},formatterButtonLabel:{type:Function,default:function(e){return e}},formatterTipLabel:{type:Function,default:function(e){return e}}},emits:["update:modelValue","change"],setup:function(e,a){var o=this,l=a.slots,i=a.emit,c=(0,t.ref)(1),s=(0,t.ref)(null),d=(0,t.ref)(null),f=(0,t.ref)(null),p=(0,t.ref)(0),h=(0,t.ref)(0),y=(0,t.ref)(null),V=(0,t.ref)(null),b=(0,t.ref)(null),x=(0,t.ref)(null),g=(0,t.computed)((function(){var t=[e.minValue,e.maxValue,e.step].map((function(e){var t="".concat(e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,t)})),w=(0,t.computed)((function(){return Math.min(s.value,d.value)})),L=(0,t.computed)((function(){return Math.max(s.value,d.value)})),N=(0,t.computed)((function(){return e.range?"".concat(100*(L.value-w.value)/(e.maxValue-e.minValue),"%"):"".concat(100*(s.value-e.minValue)/(e.maxValue-e.minValue),"%")})),S=(0,t.computed)((function(){return e.range?"".concat(100*(w.value-e.minValue)/(e.maxValue-e.minValue),"%"):"0%"})),E=(0,t.computed)((function(){return e.vertical?{height:N.value,bottom:S.value}:{width:N.value,left:S.value}})),C=(0,t.computed)((function(){if(!e.showInterval||e.minValue>e.maxValue)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),r=[],n=1;n<t;n++)r.push(n*a);return e.range?r.filter((function(t){return t<100*(w.value-e.minValue)/(e.maxValue-e.minValue)||t>100*(L.value-e.minValue)/(e.maxValue-e.minValue)})):r.filter((function(t){return t>100*(s.value-e.minValue)/(e.maxValue-e.minValue)}))})),j=(0,t.computed)((function(){return e.vertical?{height:e.height,width:"4px"}:{}})),O=(0,t.computed)((function(){if(!e.showIntervalLabel)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=100*e.step/(e.maxValue-e.minValue),a=[],r=e.minValue,n=0;r<=e.maxValue;r+=e.step,n++){var o={stepWidth:n*t,stepLabel:e.formatterLabel(r)};a.push(o)}return a})),T=(0,t.computed)((function(){return Array.isArray(e.modelValue)})),_=(0,t.computed)((function(){return e.customContent?Object.keys(e.customContent).sort((function(e,t){return Number(e)-Number(t)})).filter((function(t){return Number(t)>=e.minValue&&Number(t)<=e.maxValue})).map((function(t){var a=e.customContent[t].tip,r=e.customContent[t].label;return{tip:a||r||"",label:r||"",percent:(Number(t)-e.minValue)/(e.maxValue-e.minValue)*100}})):[]})),P=(0,t.computed)((function(){return{vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:g.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:c.value,formatterTipLabel:e.formatterTipLabel}}));(0,t.watch)((function(){return e.modelValue}),(function(){k()})),(0,t.watch)((function(){return s.value}),(function(t){e.range?i("update:modelValue",[w.value,L.value]):i("update:modelValue",t),p.value=t})),(0,t.watch)((function(){return d.value}),(function(e){i("update:modelValue",[w.value,L.value]),h.value=e})),(0,t.onMounted)((function(){e.range?(Array.isArray(e.modelValue)?(s.value=Math.max(e.minValue,Number(e.modelValue[0])),d.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(s.value=e.minValue,d.value=e.maxValue),f.value=[s.value,d.value]):("number"!=typeof e.modelValue||isNaN(e.modelValue)?s.value=e.minValue:s.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),f.value=s.value),B(),m(window,"resize",B())}));var B=function(){y.value&&(c.value=y.value["client".concat(e.vertical?"Height":"Width")])},I=function(t){var a,r;if(t.stopPropagation(),!e.disable){if(B(),e.vertical){var n=null===(a=y.value)||void 0===a?void 0:a.getBoundingClientRect().bottom;G((n-t.clientY)/c.value*100)}else{var o=null===(r=y.value)||void 0===r?void 0:r.getBoundingClientRect().left;G((t.clientX-o)/c.value*100)}z()}},M=function(){return e.range?![w.value,L.value].every((function(e,t){return e===f.value[t]})):e.modelValue!==f.value},k=function(){if(e.minValue>e.maxValue)console.error("min should not be greater than max.");else{var t=e.modelValue;e.range&&Array.isArray(t)?t[1]<e.minValue?i("update:modelValue",[e.minValue,e.minValue]):t[0]>e.maxValue?i("update:modelValue",[e.maxValue,e.maxValue]):t[0]<e.minValue?i("update:modelValue",[e.minValue,t[1]]):t[1]>e.maxValue?i("update:modelValue",[t[0],e.maxValue]):(s.value=Number(t[0]),d.value=Number(t[1]),M()&&(f.value=t.slice())):e.range||"number"!=typeof t||isNaN(t)||(t<e.minValue?i("update:modelValue",e.minValue):t>e.maxValue?i("update:modelValue",e.maxValue):(s.value=t,M()&&(f.value=t)))}},z=function(){return a=o,n=void 0,u=void 0,l=r().mark((function a(){return r().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,t.nextTick)();case 2:i("change",e.range?[w.value,L.value]:e.modelValue);case 3:case"end":return a.stop()}}),a)})),new(u||(u=Promise))((function(e,t){function r(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(t){var a;t.done?e(t.value):(a=t.value,a instanceof u?a:new u((function(e){e(a)}))).then(r,o)}i((l=l.apply(a,n||[])).next())}));var a,n,u,l},F=function(t){return e.vertical?{bottom:"".concat(t,"%")}:{left:"".concat(t,"%")}},G=function(t){if(e.range){var a=e.minValue+t*(e.maxValue-e.minValue)/100;Math.abs(w.value-a)<Math.abs(L.value-a)?x.value=s.value<d.value?V.value:b.value:x.value=s.value>d.value?V.value:b.value,x.value.setPosition(t)}else V.value.setPosition(t)},q=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(p.value=e.minValue,s.value=e.minValue):a>e.maxValue?(p.value=e.maxValue,s.value=e.maxValue):s.value=a}},A=function(t){if(""!==t){var a=parseFloat(t.toString());a<e.minValue?(h.value=e.minValue,d.value=e.minValue):a>e.maxValue?(h.value=e.maxValue,d.value=e.maxValue):d.value=a}},R=function(t){var a;return a="start"===t?e.vertical?e.maxValue:e.minValue:e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[s.value,d.value].includes(a)?"0":"1"},D=(0,n.usePrefix)().resolveClassName;return{renderDom:function(){var a,r;return(0,t.createVNode)("div",{class:["".concat(D("slider")),e.extCls]},[null===(a=l.start)||void 0===a?void 0:a.call(l),(0,t.createVNode)("div",{class:"".concat(D("slider-runway")),ref:y,style:j.value,onClick:I},[(0,t.createVNode)("div",{class:["".concat(D("slider-bar")),e.vertical?"vertical":"horizontal",{disable:e.disable}],style:E.value},null),e.showInterval?C.value.map((function(a,r){return(0,t.createVNode)("div",{key:r,class:["".concat(D("slider-interval")),{vertical:e.vertical}],style:F(a)},null)})):void 0,e.customContent?_.value.map((function(a,r){return(0,t.createVNode)("div",{key:r,class:["".concat(D("slider-interval")),{vertical:e.vertical}],style:F(a.percent)},null)})):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?(0,t.createVNode)("div",{class:["".concat(D("slider-labels")),e.vertical?"vertical":"horizontal"]},[e.showBetweenLabel?[(0,t.createVNode)("div",{class:"label-start",style:[{opacity:R("start")}]},[e.formatterLabel(e.minValue)]),(0,t.createVNode)("div",{class:"label-end",style:[{opacity:R("end")}]},[e.formatterLabel(e.maxValue)])]:e.showIntervalLabel?O.value.map((function(a,r){return(0,t.createVNode)("div",{class:["".concat(D("slider-label")),e.vertical?"vertical":"horizontal"],key:r,style:F(a.stepWidth)},[a.stepLabel])})):e.customContent?_.value.map((function(a,r){return(0,t.createVNode)("div",{class:["".concat(D("slider-label")),e.vertical?"vertical":"horizontal"],key:r,style:F(a.percent)},[a.label])})):void 0]):void 0,(0,t.createVNode)(v,{modelValue:s.value,"onUpdate:modelValue":function(e){return s.value=e},ref:V,params:P.value,onEmitChange:z,onResetSize:B},null),e.range?(0,t.createVNode)(v,{modelValue:d.value,"onUpdate:modelValue":function(e){return d.value=e},ref:b,params:P.value,onEmitChange:z,onResetSize:B},null):void 0]),e.showInput&&!e.vertical?(0,t.createVNode)("div",{class:"".concat(D("slider-input"))},[(0,t.createVNode)("div",{class:"input-item"},[(0,t.createVNode)(u(),{type:"number",modelValue:p.value,max:e.maxValue,min:e.minValue,onChange:q},null)]),T.value&&d.value?[(0,t.createVNode)("div",{class:"input-center"},[(0,t.createTextVNode)("~")]),(0,t.createVNode)("div",{class:"input-item"},[(0,t.createVNode)(u(),{type:"number",modelValue:h.value,max:e.maxValue,min:e.minValue,onChange:A},null)])]:void 0]):void 0,null===(r=l.end)||void 0===r?void 0:r.call(l)])}}},render:function(){return this.renderDom()}}),p=(0,e.withInstall)(f)})(),i})()));
1
+ import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__input_752b0149__ from "../input";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
6
+ /******/ var __webpack_modules__ = ({
7
+
8
+ /***/ 7609:
9
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10
+
11
+ var _typeof = (__webpack_require__(7425)["default"]);
12
+ function _regeneratorRuntime() {
13
+ "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
14
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
15
+ return exports;
16
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
17
+ var exports = {},
18
+ Op = Object.prototype,
19
+ hasOwn = Op.hasOwnProperty,
20
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
21
+ obj[key] = desc.value;
22
+ },
23
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
24
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
25
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
26
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
27
+ function define(obj, key, value) {
28
+ return Object.defineProperty(obj, key, {
29
+ value: value,
30
+ enumerable: !0,
31
+ configurable: !0,
32
+ writable: !0
33
+ }), obj[key];
34
+ }
35
+ try {
36
+ define({}, "");
37
+ } catch (err) {
38
+ define = function define(obj, key, value) {
39
+ return obj[key] = value;
40
+ };
41
+ }
42
+ function wrap(innerFn, outerFn, self, tryLocsList) {
43
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
44
+ generator = Object.create(protoGenerator.prototype),
45
+ context = new Context(tryLocsList || []);
46
+ return defineProperty(generator, "_invoke", {
47
+ value: makeInvokeMethod(innerFn, self, context)
48
+ }), generator;
49
+ }
50
+ function tryCatch(fn, obj, arg) {
51
+ try {
52
+ return {
53
+ type: "normal",
54
+ arg: fn.call(obj, arg)
55
+ };
56
+ } catch (err) {
57
+ return {
58
+ type: "throw",
59
+ arg: err
60
+ };
61
+ }
62
+ }
63
+ exports.wrap = wrap;
64
+ var ContinueSentinel = {};
65
+ function Generator() {}
66
+ function GeneratorFunction() {}
67
+ function GeneratorFunctionPrototype() {}
68
+ var IteratorPrototype = {};
69
+ define(IteratorPrototype, iteratorSymbol, function () {
70
+ return this;
71
+ });
72
+ var getProto = Object.getPrototypeOf,
73
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
74
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
75
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
76
+ function defineIteratorMethods(prototype) {
77
+ ["next", "throw", "return"].forEach(function (method) {
78
+ define(prototype, method, function (arg) {
79
+ return this._invoke(method, arg);
80
+ });
81
+ });
82
+ }
83
+ function AsyncIterator(generator, PromiseImpl) {
84
+ function invoke(method, arg, resolve, reject) {
85
+ var record = tryCatch(generator[method], generator, arg);
86
+ if ("throw" !== record.type) {
87
+ var result = record.arg,
88
+ value = result.value;
89
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
90
+ invoke("next", value, resolve, reject);
91
+ }, function (err) {
92
+ invoke("throw", err, resolve, reject);
93
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
94
+ result.value = unwrapped, resolve(result);
95
+ }, function (error) {
96
+ return invoke("throw", error, resolve, reject);
97
+ });
98
+ }
99
+ reject(record.arg);
100
+ }
101
+ var previousPromise;
102
+ defineProperty(this, "_invoke", {
103
+ value: function value(method, arg) {
104
+ function callInvokeWithMethodAndArg() {
105
+ return new PromiseImpl(function (resolve, reject) {
106
+ invoke(method, arg, resolve, reject);
107
+ });
108
+ }
109
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
110
+ }
111
+ });
112
+ }
113
+ function makeInvokeMethod(innerFn, self, context) {
114
+ var state = "suspendedStart";
115
+ return function (method, arg) {
116
+ if ("executing" === state) throw new Error("Generator is already running");
117
+ if ("completed" === state) {
118
+ if ("throw" === method) throw arg;
119
+ return doneResult();
120
+ }
121
+ for (context.method = method, context.arg = arg;;) {
122
+ var delegate = context.delegate;
123
+ if (delegate) {
124
+ var delegateResult = maybeInvokeDelegate(delegate, context);
125
+ if (delegateResult) {
126
+ if (delegateResult === ContinueSentinel) continue;
127
+ return delegateResult;
128
+ }
129
+ }
130
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
131
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
132
+ context.dispatchException(context.arg);
133
+ } else "return" === context.method && context.abrupt("return", context.arg);
134
+ state = "executing";
135
+ var record = tryCatch(innerFn, self, context);
136
+ if ("normal" === record.type) {
137
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
138
+ return {
139
+ value: record.arg,
140
+ done: context.done
141
+ };
142
+ }
143
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
144
+ }
145
+ };
146
+ }
147
+ function maybeInvokeDelegate(delegate, context) {
148
+ var methodName = context.method,
149
+ method = delegate.iterator[methodName];
150
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
151
+ var record = tryCatch(method, delegate.iterator, context.arg);
152
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
153
+ var info = record.arg;
154
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
155
+ }
156
+ function pushTryEntry(locs) {
157
+ var entry = {
158
+ tryLoc: locs[0]
159
+ };
160
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
161
+ }
162
+ function resetTryEntry(entry) {
163
+ var record = entry.completion || {};
164
+ record.type = "normal", delete record.arg, entry.completion = record;
165
+ }
166
+ function Context(tryLocsList) {
167
+ this.tryEntries = [{
168
+ tryLoc: "root"
169
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
170
+ }
171
+ function values(iterable) {
172
+ if (iterable) {
173
+ var iteratorMethod = iterable[iteratorSymbol];
174
+ if (iteratorMethod) return iteratorMethod.call(iterable);
175
+ if ("function" == typeof iterable.next) return iterable;
176
+ if (!isNaN(iterable.length)) {
177
+ var i = -1,
178
+ next = function next() {
179
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
180
+ return next.value = undefined, next.done = !0, next;
181
+ };
182
+ return next.next = next;
183
+ }
184
+ }
185
+ return {
186
+ next: doneResult
187
+ };
188
+ }
189
+ function doneResult() {
190
+ return {
191
+ value: undefined,
192
+ done: !0
193
+ };
194
+ }
195
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
196
+ value: GeneratorFunctionPrototype,
197
+ configurable: !0
198
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
199
+ value: GeneratorFunction,
200
+ configurable: !0
201
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
202
+ var ctor = "function" == typeof genFun && genFun.constructor;
203
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
204
+ }, exports.mark = function (genFun) {
205
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
206
+ }, exports.awrap = function (arg) {
207
+ return {
208
+ __await: arg
209
+ };
210
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
211
+ return this;
212
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
213
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
214
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
215
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
216
+ return result.done ? result.value : iter.next();
217
+ });
218
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
219
+ return this;
220
+ }), define(Gp, "toString", function () {
221
+ return "[object Generator]";
222
+ }), exports.keys = function (val) {
223
+ var object = Object(val),
224
+ keys = [];
225
+ for (var key in object) keys.push(key);
226
+ return keys.reverse(), function next() {
227
+ for (; keys.length;) {
228
+ var key = keys.pop();
229
+ if (key in object) return next.value = key, next.done = !1, next;
230
+ }
231
+ return next.done = !0, next;
232
+ };
233
+ }, exports.values = values, Context.prototype = {
234
+ constructor: Context,
235
+ reset: function reset(skipTempReset) {
236
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
237
+ },
238
+ stop: function stop() {
239
+ this.done = !0;
240
+ var rootRecord = this.tryEntries[0].completion;
241
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
242
+ return this.rval;
243
+ },
244
+ dispatchException: function dispatchException(exception) {
245
+ if (this.done) throw exception;
246
+ var context = this;
247
+ function handle(loc, caught) {
248
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
249
+ }
250
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
251
+ var entry = this.tryEntries[i],
252
+ record = entry.completion;
253
+ if ("root" === entry.tryLoc) return handle("end");
254
+ if (entry.tryLoc <= this.prev) {
255
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
256
+ hasFinally = hasOwn.call(entry, "finallyLoc");
257
+ if (hasCatch && hasFinally) {
258
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
259
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
260
+ } else if (hasCatch) {
261
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
262
+ } else {
263
+ if (!hasFinally) throw new Error("try statement without catch or finally");
264
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
265
+ }
266
+ }
267
+ }
268
+ },
269
+ abrupt: function abrupt(type, arg) {
270
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
271
+ var entry = this.tryEntries[i];
272
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
273
+ var finallyEntry = entry;
274
+ break;
275
+ }
276
+ }
277
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
278
+ var record = finallyEntry ? finallyEntry.completion : {};
279
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
280
+ },
281
+ complete: function complete(record, afterLoc) {
282
+ if ("throw" === record.type) throw record.arg;
283
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
284
+ },
285
+ finish: function finish(finallyLoc) {
286
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
287
+ var entry = this.tryEntries[i];
288
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
289
+ }
290
+ },
291
+ "catch": function _catch(tryLoc) {
292
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
293
+ var entry = this.tryEntries[i];
294
+ if (entry.tryLoc === tryLoc) {
295
+ var record = entry.completion;
296
+ if ("throw" === record.type) {
297
+ var thrown = record.arg;
298
+ resetTryEntry(entry);
299
+ }
300
+ return thrown;
301
+ }
302
+ }
303
+ throw new Error("illegal catch attempt");
304
+ },
305
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
306
+ return this.delegate = {
307
+ iterator: values(iterable),
308
+ resultName: resultName,
309
+ nextLoc: nextLoc
310
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
311
+ }
312
+ }, exports;
313
+ }
314
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
315
+
316
+ /***/ }),
317
+
318
+ /***/ 7425:
319
+ /***/ ((module) => {
320
+
321
+ function _typeof(obj) {
322
+ "@babel/helpers - typeof";
323
+
324
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
325
+ return typeof obj;
326
+ } : function (obj) {
327
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
328
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
329
+ }
330
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
331
+
332
+ /***/ }),
333
+
334
+ /***/ 2841:
335
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
336
+
337
+ // TODO(Babel 8): Remove this file.
338
+
339
+ var runtime = __webpack_require__(7609)();
340
+ module.exports = runtime;
341
+
342
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
343
+ try {
344
+ regeneratorRuntime = runtime;
345
+ } catch (accidentalStrictMode) {
346
+ if (typeof globalThis === "object") {
347
+ globalThis.regeneratorRuntime = runtime;
348
+ } else {
349
+ Function("r", "regeneratorRuntime = r")(runtime);
350
+ }
351
+ }
352
+
353
+
354
+ /***/ })
355
+
356
+ /******/ });
357
+ /************************************************************************/
358
+ /******/ // The module cache
359
+ /******/ var __webpack_module_cache__ = {};
360
+ /******/
361
+ /******/ // The require function
362
+ /******/ function __webpack_require__(moduleId) {
363
+ /******/ // Check if module is in cache
364
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
365
+ /******/ if (cachedModule !== undefined) {
366
+ /******/ return cachedModule.exports;
367
+ /******/ }
368
+ /******/ // Create a new module (and put it into the cache)
369
+ /******/ var module = __webpack_module_cache__[moduleId] = {
370
+ /******/ // no module.id needed
371
+ /******/ // no module.loaded needed
372
+ /******/ exports: {}
373
+ /******/ };
374
+ /******/
375
+ /******/ // Execute the module function
376
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
377
+ /******/
378
+ /******/ // Return the exports of the module
379
+ /******/ return module.exports;
380
+ /******/ }
381
+ /******/
382
+ /************************************************************************/
383
+ /******/ /* webpack/runtime/compat get default export */
384
+ /******/ (() => {
385
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
386
+ /******/ __webpack_require__.n = (module) => {
387
+ /******/ var getter = module && module.__esModule ?
388
+ /******/ () => (module['default']) :
389
+ /******/ () => (module);
390
+ /******/ __webpack_require__.d(getter, { a: getter });
391
+ /******/ return getter;
392
+ /******/ };
393
+ /******/ })();
394
+ /******/
395
+ /******/ /* webpack/runtime/define property getters */
396
+ /******/ (() => {
397
+ /******/ // define getter functions for harmony exports
398
+ /******/ __webpack_require__.d = (exports, definition) => {
399
+ /******/ for(var key in definition) {
400
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
401
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
402
+ /******/ }
403
+ /******/ }
404
+ /******/ };
405
+ /******/ })();
406
+ /******/
407
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
408
+ /******/ (() => {
409
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
410
+ /******/ })();
411
+ /******/
412
+ /************************************************************************/
413
+ var __webpack_exports__ = {};
414
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
415
+ (() => {
416
+
417
+ // EXPORTS
418
+ __webpack_require__.d(__webpack_exports__, {
419
+ Z: () => (/* binding */ src)
420
+ });
421
+
422
+ ;// CONCATENATED MODULE: external "../shared"
423
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
424
+ var y = x => () => x
425
+ const external_shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
426
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
427
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
428
+ try {
429
+ var info = gen[key](arg);
430
+ var value = info.value;
431
+ } catch (error) {
432
+ reject(error);
433
+ return;
434
+ }
435
+ if (info.done) {
436
+ resolve(value);
437
+ } else {
438
+ Promise.resolve(value).then(_next, _throw);
439
+ }
440
+ }
441
+ function _asyncToGenerator(fn) {
442
+ return function () {
443
+ var self = this,
444
+ args = arguments;
445
+ return new Promise(function (resolve, reject) {
446
+ var gen = fn.apply(self, args);
447
+ function _next(value) {
448
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
449
+ }
450
+ function _throw(err) {
451
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
452
+ }
453
+ _next(undefined);
454
+ });
455
+ };
456
+ }
457
+ ;// CONCATENATED MODULE: external "vue"
458
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
459
+ var external_vue_y = x => () => x
460
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
461
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
462
+ var regenerator = __webpack_require__(2841);
463
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
464
+ ;// CONCATENATED MODULE: external "../config-provider"
465
+ var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
466
+ var external_config_provider_y = x => () => x
467
+ const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
468
+ ;// CONCATENATED MODULE: external "../input"
469
+ var external_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
470
+ var external_input_y = x => () => x
471
+ const external_input_namespaceObject = external_input_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__input_752b0149__["default"] });
472
+ ;// CONCATENATED MODULE: external "../popover"
473
+ var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
474
+ var external_popover_y = x => () => x
475
+ const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
476
+ ;// CONCATENATED MODULE: ../../packages/slider/src/slider-button.tsx
477
+
478
+ /**
479
+ * Tencent is pleased to support the open source community by making
480
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
481
+ *
482
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
483
+ *
484
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
485
+ *
486
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
487
+ *
488
+ * ---------------------------------------------------
489
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
490
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
491
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
492
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
493
+ *
494
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
495
+ * the Software.
496
+ *
497
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
498
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
499
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
500
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
501
+ * IN THE SOFTWARE.
502
+ */
503
+
504
+
505
+
506
+
507
+
508
+ /* harmony default export */ const slider_button = ((0,external_vue_namespaceObject.defineComponent)({
509
+ name: 'SliderButton',
510
+ props: {
511
+ modelValue: {
512
+ type: Number,
513
+ "default": 0
514
+ },
515
+ params: {
516
+ type: Object,
517
+ "default": function _default() {
518
+ return {};
519
+ }
520
+ }
521
+ },
522
+ emits: ['emitChange', 'resetSize', 'update:modelValue'],
523
+ setup: function setup(props, _ref) {
524
+ var emit = _ref.emit;
525
+ var dragging = (0,external_vue_namespaceObject.ref)(false);
526
+ var isClick = (0,external_vue_namespaceObject.ref)(false);
527
+ var startY = (0,external_vue_namespaceObject.ref)(0);
528
+ var startX = (0,external_vue_namespaceObject.ref)(0);
529
+ var startPosition = (0,external_vue_namespaceObject.ref)(0);
530
+ var newPosition = (0,external_vue_namespaceObject.ref)(null);
531
+ var oldValue = (0,external_vue_namespaceObject.ref)(props.modelValue);
532
+ var currentY = (0,external_vue_namespaceObject.ref)(0);
533
+ var currentX = (0,external_vue_namespaceObject.ref)(0);
534
+ var isMove = (0,external_vue_namespaceObject.ref)(false);
535
+ var button = (0,external_vue_namespaceObject.ref)(null);
536
+ var tip = (0,external_vue_namespaceObject.computed)(function () {
537
+ var _props$params$customC, _props$params;
538
+ var tip = '';
539
+ if ((_props$params$customC = props.params.customContent) !== null && _props$params$customC !== void 0 && _props$params$customC[props.modelValue]) {
540
+ var customContent = props.params.customContent[props.modelValue];
541
+ tip = customContent.tip || customContent.label || '';
542
+ }
543
+ var placement = props.params.vertical ? external_shared_namespaceObject.PlacementEnum.RIGHT : external_shared_namespaceObject.PlacementEnum.TOP;
544
+ if ((_props$params = props.params) !== null && _props$params !== void 0 && _props$params.showTip) {
545
+ return {
546
+ content: props.params.formatterTipLabel("".concat(tip || (props === null || props === void 0 ? void 0 : props.modelValue) || '0')),
547
+ placement: placement
548
+ };
549
+ }
550
+ return {
551
+ content: '',
552
+ placement: placement
553
+ };
554
+ });
555
+ var currentPosition = (0,external_vue_namespaceObject.computed)(function () {
556
+ return "".concat((props.modelValue - props.params.minValue) / (props.params.maxValue - props.params.minValue) * 100, "%");
557
+ });
558
+ var wrapperStyle = (0,external_vue_namespaceObject.computed)(function () {
559
+ return props.params.vertical ? {
560
+ bottom: currentPosition.value
561
+ } : {
562
+ left: currentPosition.value
563
+ };
564
+ });
565
+ var buttonLabel = (0,external_vue_namespaceObject.computed)(function () {
566
+ return props.params.formatterButtonLabel(props.modelValue);
567
+ });
568
+ var onButtonDown = function onButtonDown(event) {
569
+ if (props.params.disable) return;
570
+ event.preventDefault();
571
+ onDragStart(event);
572
+ on(window, 'mousemove', onDragging);
573
+ on(window, 'touchmove', onDragging);
574
+ on(window, 'mouseup', onDragEnd);
575
+ on(window, 'touchend', onDragEnd);
576
+ };
577
+ var onDragStart = function onDragStart(event) {
578
+ dragging.value = true;
579
+ isClick.value = true;
580
+ if (props.params.vertical) {
581
+ startY.value = event.clientY;
582
+ } else {
583
+ startX.value = event.clientX;
584
+ }
585
+ startPosition.value = parseFloat(currentPosition.value);
586
+ newPosition.value = startPosition.value;
587
+ };
588
+ var onDragging = function onDragging(event) {
589
+ if (dragging.value) {
590
+ isClick.value = false;
591
+ emit('resetSize');
592
+ var diff = 0;
593
+ if (props.params.vertical) {
594
+ currentY.value = event.clientY;
595
+ diff = (startY.value - currentY.value) / props.params.sliderSize * 100;
596
+ } else {
597
+ currentX.value = event.clientX;
598
+ diff = (currentX.value - startX.value) / props.params.sliderSize * 100;
599
+ }
600
+ newPosition.value = startPosition.value + diff;
601
+ setPosition(newPosition.value);
602
+ }
603
+ };
604
+ var onDragEnd = function onDragEnd() {
605
+ isMove.value = false;
606
+ if (dragging.value) {
607
+ setTimeout(function () {
608
+ dragging.value = false;
609
+ if (!isClick.value) {
610
+ setPosition(newPosition.value);
611
+ emit('emitChange');
612
+ }
613
+ }, 0);
614
+ off(window, 'mousemove', onDragging);
615
+ off(window, 'touchmove', onDragging);
616
+ off(window, 'mouseup', onDragEnd);
617
+ off(window, 'touchend', onDragEnd);
618
+ }
619
+ };
620
+ var setPosition = function setPosition(position) {
621
+ if (position === null || isNaN(position)) return;
622
+ if (position < 0) {
623
+ newPosition.value = 0;
624
+ } else if (position > 100) {
625
+ newPosition.value = 100;
626
+ }
627
+ var lengthPerStep = 100 / ((props.params.maxValue - props.params.minValue) / props.params.step);
628
+ var steps = Math.round(position / lengthPerStep);
629
+ var value = steps * lengthPerStep * (props.params.maxValue - props.params.minValue) * 0.01 + props.params.minValue;
630
+ value = parseFloat(value.toFixed(props.params.precision));
631
+ emit('update:modelValue', value);
632
+ if (!dragging.value && props.modelValue !== oldValue.value) {
633
+ oldValue.value = props.modelValue;
634
+ }
635
+ };
636
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
637
+ resolveClassName = _usePrefix.resolveClassName;
638
+ var renderDom = function renderDom() {
639
+ return (0,external_vue_namespaceObject.createVNode)("div", {
640
+ "class": ["".concat(resolveClassName('slider-button')), props.params.vertical ? 'vertical' : 'horizontal', {
641
+ grabbing: dragging.value
642
+ }],
643
+ "ref": button,
644
+ "tabindex": "0",
645
+ "style": wrapperStyle.value,
646
+ "onClick": function onClick(event) {
647
+ return event.stopPropagation();
648
+ },
649
+ "onMousedown": onButtonDown
650
+ }, [Boolean(tip.value.content) ? (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], {
651
+ "content": tip.value.content,
652
+ "theme": 'dark',
653
+ "placement": tip.value.placement,
654
+ "boundary": document.body
655
+ }, {
656
+ "default": function _default() {
657
+ return [(0,external_vue_namespaceObject.createVNode)("div", {
658
+ "class": ['slider-button', {
659
+ 'slider-button-disable': props.params.disable
660
+ }]
661
+ }, null)];
662
+ }
663
+ })]) : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("div", {
664
+ "class": ['slider-button', {
665
+ 'slider-button-disable': props.params.disable
666
+ }]
667
+ }, null)]), props.params.showButtonLabel && !props.params.showIntervalLabel ? (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("div", {
668
+ "class": ['slider-button-label', props.params.vertical ? 'vertical' : 'horizontal']
669
+ }, [buttonLabel.value])]) : null]);
670
+ };
671
+ return {
672
+ renderDom: renderDom,
673
+ setPosition: setPosition,
674
+ tip: tip
675
+ };
676
+ },
677
+ render: function render() {
678
+ return this.renderDom();
679
+ }
680
+ }));
681
+ ;// CONCATENATED MODULE: ../../packages/slider/src/slider.tsx
682
+
683
+
684
+
685
+ /**
686
+ * Tencent is pleased to support the open source community by making
687
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
688
+ *
689
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
690
+ *
691
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
692
+ *
693
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
694
+ *
695
+ * ---------------------------------------------------
696
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
697
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
698
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
699
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
700
+ *
701
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
702
+ * the Software.
703
+ *
704
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
705
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
706
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
707
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
708
+ * IN THE SOFTWARE.
709
+ */
710
+
711
+
712
+
713
+
714
+
715
+ var on = function on(element, event, handler) {
716
+ if (element && event && handler) {
717
+ element.addEventListener(event, handler, false);
718
+ }
719
+ };
720
+ var off = function off(element, event, handler) {
721
+ if (element && event && handler) {
722
+ element.removeEventListener(event, handler, false);
723
+ }
724
+ };
725
+ /* harmony default export */ const slider = ((0,external_vue_namespaceObject.defineComponent)({
726
+ name: 'Slider',
727
+ props: {
728
+ modelValue: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.number), external_shared_namespaceObject.PropTypes.number]),
729
+ extCls: {
730
+ type: String,
731
+ "default": ''
732
+ },
733
+ vertical: {
734
+ type: Boolean,
735
+ "default": false
736
+ },
737
+ height: {
738
+ type: String,
739
+ "default": '200px'
740
+ },
741
+ disable: {
742
+ type: Boolean,
743
+ "default": false
744
+ },
745
+ showTip: {
746
+ type: Boolean,
747
+ "default": false
748
+ },
749
+ maxValue: {
750
+ type: [Number],
751
+ "default": 100
752
+ },
753
+ minValue: {
754
+ type: [Number],
755
+ "default": 0
756
+ },
757
+ step: {
758
+ type: [Number],
759
+ "default": 1
760
+ },
761
+ range: {
762
+ type: Boolean,
763
+ "default": false
764
+ },
765
+ showInterval: {
766
+ type: Boolean,
767
+ "default": false
768
+ },
769
+ showIntervalLabel: {
770
+ type: Boolean,
771
+ "default": false
772
+ },
773
+ showButtonLabel: {
774
+ type: Boolean,
775
+ "default": false
776
+ },
777
+ showBetweenLabel: {
778
+ type: Boolean,
779
+ "default": false
780
+ },
781
+ showInput: {
782
+ type: Boolean,
783
+ "default": false
784
+ },
785
+ customContent: {
786
+ type: Object,
787
+ "default": null
788
+ },
789
+ formatterLabel: {
790
+ type: Function,
791
+ "default": function _default(value) {
792
+ return value;
793
+ }
794
+ },
795
+ formatterButtonLabel: {
796
+ type: Function,
797
+ "default": function _default(value) {
798
+ return value;
799
+ }
800
+ },
801
+ formatterTipLabel: {
802
+ type: Function,
803
+ "default": function _default(value) {
804
+ return value;
805
+ }
806
+ } // 自定义tip格式
807
+ },
808
+
809
+ emits: ['update:modelValue', 'change'],
810
+ setup: function setup(props, _ref) {
811
+ var slots = _ref.slots,
812
+ emit = _ref.emit;
813
+ /* 滑动选择器长度 */
814
+ var sliderSize = (0,external_vue_namespaceObject.ref)(1);
815
+ /* 第一个滑块与第二个滑块的值 */
816
+ var firstValue = (0,external_vue_namespaceObject.ref)(null);
817
+ var secondValue = (0,external_vue_namespaceObject.ref)(null);
818
+ var oldValue = (0,external_vue_namespaceObject.ref)(null);
819
+ /* 第一个输入框与第二个输入框的值 */
820
+ var firstInput = (0,external_vue_namespaceObject.ref)(0);
821
+ var secondInput = (0,external_vue_namespaceObject.ref)(0);
822
+ /* 以下为refDom */
823
+ var slider = (0,external_vue_namespaceObject.ref)(null);
824
+ var firstbutton = (0,external_vue_namespaceObject.ref)(null);
825
+ var secondbutton = (0,external_vue_namespaceObject.ref)(null);
826
+ var curButtonRef = (0,external_vue_namespaceObject.ref)(null);
827
+ // 小数点后最大位数
828
+ var precision = (0,external_vue_namespaceObject.computed)(function () {
829
+ var precisions = [props.minValue, props.maxValue, props.step].map(function (item) {
830
+ var decimal = "".concat(item).split('.')[1];
831
+ return decimal ? decimal.length : 0;
832
+ });
833
+ return Math.max.apply(null, precisions);
834
+ });
835
+ /* 当前滑块的最小值与最大值 */
836
+ var rangeMinValue = (0,external_vue_namespaceObject.computed)(function () {
837
+ return Math.min(firstValue.value, secondValue.value);
838
+ });
839
+ var rangeMaxValue = (0,external_vue_namespaceObject.computed)(function () {
840
+ return Math.max(firstValue.value, secondValue.value);
841
+ });
842
+ var barSize = (0,external_vue_namespaceObject.computed)(function () {
843
+ return props.range ? "".concat(100 * (rangeMaxValue.value - rangeMinValue.value) / (props.maxValue - props.minValue), "%") : "".concat(100 * (firstValue.value - props.minValue) / (props.maxValue - props.minValue), "%");
844
+ });
845
+ var barStart = (0,external_vue_namespaceObject.computed)(function () {
846
+ return props.range ? "".concat(100 * (rangeMinValue.value - props.minValue) / (props.maxValue - props.minValue), "%") : '0%';
847
+ });
848
+ /* 当前滑动区域的位置与长度 */
849
+ var barStyle = (0,external_vue_namespaceObject.computed)(function () {
850
+ return props.vertical ? {
851
+ height: barSize.value,
852
+ bottom: barStart.value
853
+ } : {
854
+ width: barSize.value,
855
+ left: barStart.value
856
+ };
857
+ });
858
+ /* 断点 */
859
+ var intervals = (0,external_vue_namespaceObject.computed)(function () {
860
+ if (!props.showInterval || props.minValue > props.maxValue) return [];
861
+ if (props.step === 0) {
862
+ console.warn('WARNNING:step should not be 0');
863
+ return [];
864
+ }
865
+ var stopCount = (props.maxValue - props.minValue) / props.step;
866
+ var stepWidth = 100 * props.step / (props.maxValue - props.minValue);
867
+ var result = [];
868
+ for (var i = 1; i < stopCount; i++) {
869
+ result.push(i * stepWidth);
870
+ }
871
+ if (props.range) {
872
+ // eslint-disable-next-line max-len
873
+ return result.filter(function (step) {
874
+ return step < 100 * (rangeMinValue.value - props.minValue) / (props.maxValue - props.minValue) || step > 100 * (rangeMaxValue.value - props.minValue) / (props.maxValue - props.minValue);
875
+ });
876
+ }
877
+ // eslint-disable-next-line max-len
878
+ return result.filter(function (step) {
879
+ return step > 100 * (firstValue.value - props.minValue) / (props.maxValue - props.minValue);
880
+ });
881
+ });
882
+ /* 可滑动区域的样式 */
883
+ var runwayStyle = (0,external_vue_namespaceObject.computed)(function () {
884
+ return props.vertical ? {
885
+ height: props.height,
886
+ width: '4px'
887
+ } : {};
888
+ });
889
+ /* 断点下方的文案 */
890
+ var intervalLabels = (0,external_vue_namespaceObject.computed)(function () {
891
+ if (!props.showIntervalLabel) return [];
892
+ if (props.step === 0) {
893
+ console.warn('WARNNING:step should not be 0');
894
+ return [];
895
+ }
896
+ var stepWidth = 100 * props.step / (props.maxValue - props.minValue);
897
+ var result = [];
898
+ for (var i = props.minValue, j = 0; i <= props.maxValue; i += props.step, j++) {
899
+ var item = {
900
+ stepWidth: j * stepWidth,
901
+ stepLabel: props.formatterLabel(i)
902
+ };
903
+ result.push(item);
904
+ }
905
+ return result;
906
+ });
907
+ /* 是否显示第二个输入框 */
908
+ var showSecondInput = (0,external_vue_namespaceObject.computed)(function () {
909
+ return Array.isArray(props.modelValue);
910
+ });
911
+ /* 自定义断点 */
912
+ var customList = (0,external_vue_namespaceObject.computed)(function () {
913
+ if (!props.customContent) {
914
+ return [];
915
+ }
916
+ return Object.keys(props.customContent).sort(function (a, b) {
917
+ return Number(a) - Number(b);
918
+ }).filter(function (value) {
919
+ return Number(value) >= props.minValue && Number(value) <= props.maxValue;
920
+ }).map(function (item) {
921
+ var tip = props.customContent[item].tip;
922
+ var label = props.customContent[item].label;
923
+ return {
924
+ tip: tip || label || '',
925
+ label: label || '',
926
+ percent: (Number(item) - props.minValue) / (props.maxValue - props.minValue) * 100
927
+ };
928
+ });
929
+ });
930
+ /* 传入到滑块的参数 */
931
+ var buttonParms = (0,external_vue_namespaceObject.computed)(function () {
932
+ return {
933
+ vertical: props.vertical,
934
+ showTip: props.showTip,
935
+ disable: props.disable,
936
+ maxValue: props.maxValue,
937
+ minValue: props.minValue,
938
+ step: props.step,
939
+ precision: precision.value,
940
+ showButtonLabel: props.showButtonLabel,
941
+ formatterButtonLabel: props.formatterButtonLabel,
942
+ showIntervalLabel: props.showIntervalLabel,
943
+ customContent: props.customContent,
944
+ sliderSize: sliderSize.value,
945
+ formatterTipLabel: props.formatterTipLabel
946
+ };
947
+ });
948
+ // 监听
949
+ (0,external_vue_namespaceObject.watch)(function () {
950
+ return props.modelValue;
951
+ }, function () {
952
+ setValues();
953
+ });
954
+ (0,external_vue_namespaceObject.watch)(function () {
955
+ return firstValue.value;
956
+ }, function (val) {
957
+ if (props.range) {
958
+ emit('update:modelValue', [rangeMinValue.value, rangeMaxValue.value]);
959
+ } else {
960
+ emit('update:modelValue', val);
961
+ }
962
+ firstInput.value = val;
963
+ });
964
+ (0,external_vue_namespaceObject.watch)(function () {
965
+ return secondValue.value;
966
+ }, function (val) {
967
+ emit('update:modelValue', [rangeMinValue.value, rangeMaxValue.value]);
968
+ secondInput.value = val;
969
+ });
970
+ /* 初始化 */
971
+ (0,external_vue_namespaceObject.onMounted)(function () {
972
+ if (props.range) {
973
+ if (Array.isArray(props.modelValue)) {
974
+ firstValue.value = Math.max(props.minValue, Number(props.modelValue[0]));
975
+ secondValue.value = Math.min(props.maxValue, Number(props.modelValue[1]));
976
+ } else {
977
+ firstValue.value = props.minValue;
978
+ secondValue.value = props.maxValue;
979
+ }
980
+ oldValue.value = [firstValue.value, secondValue.value];
981
+ } else {
982
+ if (typeof props.modelValue !== 'number' || isNaN(props.modelValue)) {
983
+ firstValue.value = props.minValue;
984
+ } else {
985
+ firstValue.value = Math.min(props.maxValue, Math.max(props.minValue, props.modelValue));
986
+ }
987
+ oldValue.value = firstValue.value;
988
+ }
989
+ resetSize();
990
+ on(window, 'resize', resetSize());
991
+ });
992
+ var resetSize = function resetSize() {
993
+ if (slider.value) {
994
+ sliderSize.value = slider.value["client".concat(props.vertical ? 'Height' : 'Width')];
995
+ }
996
+ };
997
+ /* 点击容器时设置滑块位置 */
998
+ var setButtonPos = function setButtonPos(event) {
999
+ event.stopPropagation();
1000
+ if (props.disable) return;
1001
+ resetSize();
1002
+ if (props.vertical) {
1003
+ var _slider$value;
1004
+ var offsetBottom = (_slider$value = slider.value) === null || _slider$value === void 0 ? void 0 : _slider$value.getBoundingClientRect().bottom;
1005
+ setPosition((offsetBottom - event.clientY) / sliderSize.value * 100);
1006
+ } else {
1007
+ var _slider$value2;
1008
+ var offsetLeft = (_slider$value2 = slider.value) === null || _slider$value2 === void 0 ? void 0 : _slider$value2.getBoundingClientRect().left;
1009
+ setPosition((event.clientX - offsetLeft) / sliderSize.value * 100);
1010
+ }
1011
+ emitChange();
1012
+ };
1013
+ /* 是否更改了值 */
1014
+ var valueChanged = function valueChanged() {
1015
+ if (props.range) {
1016
+ return ![rangeMinValue.value, rangeMaxValue.value].every(function (item, index) {
1017
+ return item === oldValue.value[index];
1018
+ });
1019
+ }
1020
+ return props.modelValue !== oldValue.value;
1021
+ };
1022
+ /* emit */
1023
+ var setValues = function setValues() {
1024
+ if (props.minValue > props.maxValue) {
1025
+ console.error('min should not be greater than max.');
1026
+ return;
1027
+ }
1028
+ var val = props.modelValue;
1029
+ if (props.range && Array.isArray(val)) {
1030
+ if (val[1] < props.minValue) {
1031
+ emit('update:modelValue', [props.minValue, props.minValue]);
1032
+ } else if (val[0] > props.maxValue) {
1033
+ emit('update:modelValue', [props.maxValue, props.maxValue]);
1034
+ } else if (val[0] < props.minValue) {
1035
+ emit('update:modelValue', [props.minValue, val[1]]);
1036
+ } else if (val[1] > props.maxValue) {
1037
+ emit('update:modelValue', [val[0], props.maxValue]);
1038
+ } else {
1039
+ firstValue.value = Number(val[0]);
1040
+ secondValue.value = Number(val[1]);
1041
+ if (valueChanged()) {
1042
+ oldValue.value = val.slice();
1043
+ }
1044
+ }
1045
+ } else if (!props.range && typeof val === 'number' && !isNaN(val)) {
1046
+ if (val < props.minValue) {
1047
+ emit('update:modelValue', props.minValue);
1048
+ } else if (val > props.maxValue) {
1049
+ emit('update:modelValue', props.maxValue);
1050
+ } else {
1051
+ firstValue.value = val;
1052
+ if (valueChanged()) {
1053
+ oldValue.value = val;
1054
+ }
1055
+ }
1056
+ }
1057
+ };
1058
+ /* 派出事件 */
1059
+ var emitChange = /*#__PURE__*/function () {
1060
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
1061
+ return regenerator_default().wrap(function _callee$(_context) {
1062
+ while (1) switch (_context.prev = _context.next) {
1063
+ case 0:
1064
+ _context.next = 2;
1065
+ return (0,external_vue_namespaceObject.nextTick)();
1066
+ case 2:
1067
+ emit('change', props.range ? [rangeMinValue.value, rangeMaxValue.value] : props.modelValue);
1068
+ case 3:
1069
+ case "end":
1070
+ return _context.stop();
1071
+ }
1072
+ }, _callee);
1073
+ }));
1074
+ return function emitChange() {
1075
+ return _ref2.apply(this, arguments);
1076
+ };
1077
+ }();
1078
+ /* 断点样式 */
1079
+ var getIntervalStyle = function getIntervalStyle(position) {
1080
+ return props.vertical ? {
1081
+ bottom: "".concat(position, "%")
1082
+ } : {
1083
+ left: "".concat(position, "%")
1084
+ };
1085
+ };
1086
+ /* 设置滑块位置 */
1087
+ var setPosition = function setPosition(percent) {
1088
+ if (!props.range) {
1089
+ firstbutton.value.setPosition(percent);
1090
+ return;
1091
+ }
1092
+ var targetValue = props.minValue + percent * (props.maxValue - props.minValue) / 100;
1093
+ // 绝对值
1094
+ if (Math.abs(rangeMinValue.value - targetValue) < Math.abs(rangeMaxValue.value - targetValue)) {
1095
+ curButtonRef.value = firstValue.value < secondValue.value ? firstbutton.value : secondbutton.value;
1096
+ } else {
1097
+ curButtonRef.value = firstValue.value > secondValue.value ? firstbutton.value : secondbutton.value;
1098
+ }
1099
+ curButtonRef.value.setPosition(percent);
1100
+ };
1101
+ var firstInputChange = function firstInputChange(v) {
1102
+ if (v === '') {
1103
+ return;
1104
+ }
1105
+ var val = parseFloat(v);
1106
+ if (val < props.minValue) {
1107
+ firstInput.value = props.minValue;
1108
+ firstValue.value = props.minValue;
1109
+ } else if (val > props.maxValue) {
1110
+ firstInput.value = props.maxValue;
1111
+ firstValue.value = props.maxValue;
1112
+ } else {
1113
+ firstValue.value = val;
1114
+ }
1115
+ };
1116
+ var secondInputChange = function secondInputChange(v) {
1117
+ if (v === '') {
1118
+ return;
1119
+ }
1120
+ var val = parseFloat(v.toString());
1121
+ if (val < props.minValue) {
1122
+ secondInput.value = props.minValue;
1123
+ secondValue.value = props.minValue;
1124
+ } else if (val > props.maxValue) {
1125
+ secondInput.value = props.maxValue;
1126
+ secondValue.value = props.maxValue;
1127
+ } else {
1128
+ secondValue.value = val;
1129
+ }
1130
+ };
1131
+ var betweenLabelStyle = function betweenLabelStyle(postion) {
1132
+ var value = 0;
1133
+ if (postion === 'start') {
1134
+ value = props.vertical ? props.maxValue : props.minValue;
1135
+ } else {
1136
+ value = props.vertical ? props.minValue : props.maxValue;
1137
+ }
1138
+ if (props.showButtonLabel && [firstValue.value, secondValue.value].includes(value)) {
1139
+ return '0';
1140
+ }
1141
+ return '1';
1142
+ };
1143
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
1144
+ resolveClassName = _usePrefix.resolveClassName;
1145
+ var renderDom = function renderDom() {
1146
+ var _slots$start, _slots$end;
1147
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1148
+ "class": ["".concat(resolveClassName('slider')), props.extCls]
1149
+ }, [(_slots$start = slots.start) === null || _slots$start === void 0 ? void 0 : _slots$start.call(slots), (0,external_vue_namespaceObject.createVNode)("div", {
1150
+ "class": "".concat(resolveClassName('slider-runway')),
1151
+ "ref": slider,
1152
+ "style": runwayStyle.value,
1153
+ "onClick": setButtonPos
1154
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
1155
+ "class": ["".concat(resolveClassName('slider-bar')), props.vertical ? 'vertical' : 'horizontal', {
1156
+ disable: props.disable
1157
+ }],
1158
+ "style": barStyle.value
1159
+ }, null), props.showInterval ? intervals.value.map(function (interval, index) {
1160
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1161
+ "key": index,
1162
+ "class": ["".concat(resolveClassName('slider-interval')), {
1163
+ vertical: props.vertical
1164
+ }],
1165
+ "style": getIntervalStyle(interval)
1166
+ }, null);
1167
+ }) : undefined, props.customContent ? customList.value.map(function (custom, index) {
1168
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1169
+ "key": index,
1170
+ "class": ["".concat(resolveClassName('slider-interval')), {
1171
+ vertical: props.vertical
1172
+ }],
1173
+ "style": getIntervalStyle(custom.percent)
1174
+ }, null);
1175
+ }) : undefined, props.showBetweenLabel || props.showIntervalLabel || props.customContent ? (0,external_vue_namespaceObject.createVNode)("div", {
1176
+ "class": ["".concat(resolveClassName('slider-labels')), props.vertical ? 'vertical' : 'horizontal']
1177
+ }, [function () {
1178
+ if (props.showBetweenLabel) {
1179
+ return [(0,external_vue_namespaceObject.createVNode)("div", {
1180
+ "class": "label-start",
1181
+ "style": [{
1182
+ opacity: betweenLabelStyle('start')
1183
+ }]
1184
+ }, [props.formatterLabel(props.minValue)]), (0,external_vue_namespaceObject.createVNode)("div", {
1185
+ "class": "label-end",
1186
+ "style": [{
1187
+ opacity: betweenLabelStyle('end')
1188
+ }]
1189
+ }, [props.formatterLabel(props.maxValue)])];
1190
+ }
1191
+ if (props.showIntervalLabel) {
1192
+ return intervalLabels.value.map(function (intervalLabel, index) {
1193
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1194
+ "class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
1195
+ "key": index,
1196
+ "style": getIntervalStyle(intervalLabel.stepWidth)
1197
+ }, [intervalLabel.stepLabel]);
1198
+ });
1199
+ }
1200
+ if (props.customContent) {
1201
+ return customList.value.map(function (item, index) {
1202
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1203
+ "class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
1204
+ "key": index,
1205
+ "style": getIntervalStyle(item.percent)
1206
+ }, [item.label]);
1207
+ });
1208
+ }
1209
+ return undefined;
1210
+ }()]) : undefined, (0,external_vue_namespaceObject.createVNode)(slider_button, {
1211
+ "modelValue": firstValue.value,
1212
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
1213
+ return firstValue.value = $event;
1214
+ },
1215
+ "ref": firstbutton,
1216
+ "params": buttonParms.value,
1217
+ "onEmitChange": emitChange,
1218
+ "onResetSize": resetSize
1219
+ }, null), props.range ? (0,external_vue_namespaceObject.createVNode)(slider_button, {
1220
+ "modelValue": secondValue.value,
1221
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
1222
+ return secondValue.value = $event;
1223
+ },
1224
+ "ref": secondbutton,
1225
+ "params": buttonParms.value,
1226
+ "onEmitChange": emitChange,
1227
+ "onResetSize": resetSize
1228
+ }, null) : undefined]), props.showInput && !props.vertical ? (0,external_vue_namespaceObject.createVNode)("div", {
1229
+ "class": "".concat(resolveClassName('slider-input'))
1230
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
1231
+ "class": "input-item"
1232
+ }, [(0,external_vue_namespaceObject.createVNode)(external_input_namespaceObject["default"], {
1233
+ "type": "number",
1234
+ "modelValue": firstInput.value,
1235
+ "max": props.maxValue,
1236
+ "min": props.minValue,
1237
+ "onChange": firstInputChange
1238
+ }, null)]), showSecondInput.value && secondValue.value ? [(0,external_vue_namespaceObject.createVNode)("div", {
1239
+ "class": "input-center"
1240
+ }, [(0,external_vue_namespaceObject.createTextVNode)("\uFF5E")]), (0,external_vue_namespaceObject.createVNode)("div", {
1241
+ "class": "input-item"
1242
+ }, [(0,external_vue_namespaceObject.createVNode)(external_input_namespaceObject["default"], {
1243
+ "type": "number",
1244
+ "modelValue": secondInput.value,
1245
+ "max": props.maxValue,
1246
+ "min": props.minValue,
1247
+ "onChange": secondInputChange
1248
+ }, null)])] : undefined]) : undefined, (_slots$end = slots.end) === null || _slots$end === void 0 ? void 0 : _slots$end.call(slots)]);
1249
+ };
1250
+ return {
1251
+ renderDom: renderDom
1252
+ };
1253
+ },
1254
+ render: function render() {
1255
+ return this.renderDom();
1256
+ }
1257
+ }));
1258
+ ;// CONCATENATED MODULE: ../../packages/slider/src/index.ts
1259
+ /**
1260
+ * Tencent is pleased to support the open source community by making
1261
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1262
+ *
1263
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1264
+ *
1265
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1266
+ *
1267
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1268
+ *
1269
+ * ---------------------------------------------------
1270
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1271
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1272
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1273
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1274
+ *
1275
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1276
+ * the Software.
1277
+ *
1278
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1279
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1280
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1281
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1282
+ * IN THE SOFTWARE.
1283
+ */
1284
+
1285
+
1286
+ var Slider = (0,external_shared_namespaceObject.withInstall)(slider);
1287
+ /* harmony default export */ const src = (Slider);
1288
+ })();
1289
+
1290
+ var __webpack_exports__default = __webpack_exports__.Z;
1291
+ export { __webpack_exports__default as default };