bkui-vue 0.0.1-beta.39 → 0.0.1-beta.390

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 (718) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +161 -36
  3. package/dist/index.esm.js +32306 -13036
  4. package/dist/index.umd.js +161 -36
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +123 -0
  11. package/lib/affix/index.d.ts +143 -0
  12. package/lib/affix/index.js +285 -0
  13. package/lib/alert/alert.css +81 -0
  14. package/lib/alert/alert.d.ts +62 -0
  15. package/lib/alert/alert.less +119 -0
  16. package/lib/alert/alert.variable.css +201 -0
  17. package/lib/alert/index.d.ts +180 -0
  18. package/lib/alert/index.js +183 -0
  19. package/lib/animate-number/animate-number.d.ts +27 -0
  20. package/lib/animate-number/index.d.ts +97 -0
  21. package/lib/animate-number/index.js +162 -0
  22. package/lib/backtop/backtop.css +50 -0
  23. package/lib/backtop/backtop.d.ts +60 -0
  24. package/lib/backtop/backtop.less +26 -0
  25. package/lib/backtop/backtop.variable.css +170 -0
  26. package/lib/backtop/index.d.ts +166 -0
  27. package/lib/backtop/index.js +188 -0
  28. package/lib/badge/badge.css +120 -0
  29. package/lib/badge/badge.d.ts +112 -0
  30. package/lib/badge/badge.less +135 -0
  31. package/lib/badge/badge.variable.css +240 -0
  32. package/lib/badge/index.d.ts +267 -0
  33. package/lib/badge/index.js +210 -0
  34. package/lib/breadcrumb/breadcrumb-item.d.ts +38 -0
  35. package/lib/breadcrumb/breadcrumb.css +119 -0
  36. package/lib/breadcrumb/breadcrumb.d.ts +54 -0
  37. package/lib/breadcrumb/breadcrumb.less +65 -0
  38. package/lib/breadcrumb/breadcrumb.variable.css +239 -0
  39. package/lib/breadcrumb/index.d.ts +196 -0
  40. package/lib/breadcrumb/index.js +263 -0
  41. package/lib/breadcrumb/props.d.ts +4 -0
  42. package/lib/button/button-group.d.ts +6 -0
  43. package/lib/button/button.css +300 -0
  44. package/lib/button/button.d.ts +163 -0
  45. package/lib/button/button.less +225 -0
  46. package/lib/button/button.variable.css +420 -0
  47. package/lib/button/index.d.ts +256 -0
  48. package/lib/button/index.js +292 -0
  49. package/lib/card/card.css +158 -0
  50. package/lib/card/card.d.ts +110 -0
  51. package/lib/card/card.less +92 -0
  52. package/lib/card/card.variable.css +278 -0
  53. package/lib/card/index.d.ts +283 -0
  54. package/lib/card/index.js +241 -0
  55. package/lib/cascader/cascader-panel.d.ts +100 -0
  56. package/lib/cascader/cascader.css +173 -0
  57. package/lib/cascader/cascader.d.ts +303 -0
  58. package/lib/cascader/cascader.less +196 -0
  59. package/lib/cascader/cascader.variable.css +293 -0
  60. package/lib/cascader/index.d.ts +868 -0
  61. package/lib/cascader/index.js +2094 -0
  62. package/lib/cascader/interface.d.ts +51 -0
  63. package/lib/cascader/node.d.ts +31 -0
  64. package/lib/cascader/store.d.ts +23 -0
  65. package/lib/checkbox/checkbox-group.d.ts +64 -0
  66. package/lib/checkbox/checkbox.css +100 -0
  67. package/lib/checkbox/checkbox.d.ts +126 -0
  68. package/lib/checkbox/checkbox.less +128 -0
  69. package/lib/checkbox/checkbox.variable.css +220 -0
  70. package/lib/checkbox/common.d.ts +14 -0
  71. package/lib/checkbox/index.d.ts +293 -0
  72. package/lib/checkbox/index.js +509 -0
  73. package/lib/checkbox/type.d.ts +15 -0
  74. package/lib/code-diff/code-diff.css +206 -0
  75. package/lib/code-diff/code-diff.d.ts +80 -0
  76. package/lib/code-diff/code-diff.less +273 -0
  77. package/lib/code-diff/code-diff.variable.css +326 -0
  78. package/lib/code-diff/index.d.ts +154 -0
  79. package/lib/code-diff/index.js +5478 -0
  80. package/lib/collapse/collapse-panel.d.ts +67 -0
  81. package/lib/collapse/collapse.css +46 -0
  82. package/lib/collapse/collapse.d.ts +65 -0
  83. package/lib/collapse/collapse.less +62 -0
  84. package/lib/collapse/collapse.variable.css +166 -0
  85. package/lib/collapse/index.d.ts +258 -0
  86. package/lib/collapse/index.js +632 -0
  87. package/lib/collapse/props.d.ts +79 -0
  88. package/lib/collapse/utils.d.ts +11 -0
  89. package/lib/color-picker/color-picker.css +275 -0
  90. package/lib/color-picker/color-picker.d.ts +144 -0
  91. package/lib/color-picker/color-picker.less +325 -0
  92. package/lib/color-picker/color-picker.variable.css +395 -0
  93. package/lib/color-picker/components/color-input.d.ts +42 -0
  94. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  95. package/lib/color-picker/components/input-container.d.ts +42 -0
  96. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  97. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  98. package/lib/color-picker/index.d.ts +254 -0
  99. package/lib/color-picker/index.js +2764 -0
  100. package/lib/color-picker/utils.d.ts +37 -0
  101. package/lib/components.d.ts +59 -0
  102. package/lib/components.js +522 -0
  103. package/lib/container/col.d.ts +51 -0
  104. package/lib/container/container.css +91 -0
  105. package/lib/container/container.d.ts +83 -0
  106. package/lib/container/container.less +20 -0
  107. package/lib/container/container.variable.css +211 -0
  108. package/lib/container/index.d.ts +223 -0
  109. package/lib/container/index.js +308 -0
  110. package/lib/container/row.d.ts +4 -0
  111. package/lib/date-picker/base/confirm.d.ts +74 -0
  112. package/lib/date-picker/base/date-table.d.ts +96 -0
  113. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  114. package/lib/date-picker/base/time-spinner.d.ts +151 -0
  115. package/lib/date-picker/date-picker.css +434 -0
  116. package/lib/date-picker/date-picker.d.ts +323 -0
  117. package/lib/date-picker/date-picker.less +558 -0
  118. package/lib/date-picker/date-picker.variable.css +554 -0
  119. package/lib/date-picker/fecha.d.ts +6 -0
  120. package/lib/date-picker/index.d.ts +780 -0
  121. package/lib/date-picker/index.js +5500 -0
  122. package/lib/date-picker/interface.d.ts +32 -0
  123. package/lib/date-picker/panel/date-range.d.ts +309 -0
  124. package/lib/date-picker/panel/date.d.ts +206 -0
  125. package/lib/date-picker/panel/time-range.d.ts +489 -0
  126. package/lib/date-picker/panel/time.d.ts +448 -0
  127. package/lib/date-picker/props.d.ts +161 -0
  128. package/lib/date-picker/time-picker.d.ts +381 -0
  129. package/lib/date-picker/utils.d.ts +117 -0
  130. package/lib/dialog/dialog.css +190 -0
  131. package/lib/dialog/dialog.d.ts +311 -0
  132. package/lib/dialog/dialog.less +153 -0
  133. package/lib/dialog/dialog.variable.css +310 -0
  134. package/lib/dialog/index.d.ts +722 -0
  135. package/lib/dialog/index.js +455 -0
  136. package/lib/dialog/props.d.ts +130 -0
  137. package/lib/directives/clickoutside.d.ts +3 -0
  138. package/lib/directives/ellipsis.d.ts +7 -0
  139. package/lib/directives/index.d.ts +4 -0
  140. package/lib/directives/index.js +1374 -0
  141. package/lib/directives/mousewheel.d.ts +3 -0
  142. package/lib/directives/tooltips.d.ts +18 -0
  143. package/lib/dist.index.js +81 -0
  144. package/lib/divider/divider.css +38 -0
  145. package/lib/divider/divider.d.ts +48 -0
  146. package/lib/divider/divider.less +53 -0
  147. package/lib/divider/divider.variable.css +158 -0
  148. package/lib/divider/index.d.ts +142 -0
  149. package/lib/divider/index.js +444 -0
  150. package/lib/divider/props.d.ts +21 -0
  151. package/lib/dropdown/dropdown-item.d.ts +19 -0
  152. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  153. package/lib/dropdown/dropdown.css +49 -0
  154. package/lib/dropdown/dropdown.d.ts +93 -0
  155. package/lib/dropdown/dropdown.less +67 -0
  156. package/lib/dropdown/dropdown.variable.css +169 -0
  157. package/lib/dropdown/index.d.ts +256 -0
  158. package/lib/dropdown/index.js +332 -0
  159. package/lib/exception/exception.css +58 -0
  160. package/lib/exception/exception.d.ts +33 -0
  161. package/lib/exception/exception.less +76 -0
  162. package/lib/exception/exception.variable.css +178 -0
  163. package/lib/exception/index.d.ts +111 -0
  164. package/lib/exception/index.js +357 -0
  165. package/lib/exception/typings/index.d.ts +4 -0
  166. package/lib/fixed-navbar/fixed-navbar.css +42 -0
  167. package/lib/fixed-navbar/fixed-navbar.d.ts +48 -0
  168. package/lib/fixed-navbar/fixed-navbar.less +53 -0
  169. package/lib/fixed-navbar/fixed-navbar.variable.css +162 -0
  170. package/lib/fixed-navbar/index.d.ts +147 -0
  171. package/lib/fixed-navbar/index.js +150 -0
  172. package/lib/form/compose-form-item.d.ts +16 -0
  173. package/lib/form/form-item.d.ts +160 -0
  174. package/lib/form/form.css +137 -0
  175. package/lib/form/form.d.ts +88 -0
  176. package/lib/form/form.less +170 -0
  177. package/lib/form/form.variable.css +257 -0
  178. package/lib/form/index.d.ts +319 -0
  179. package/lib/form/index.js +900 -0
  180. package/lib/form/type.d.ts +22 -0
  181. package/lib/form/utils.d.ts +2 -0
  182. package/lib/form/validator.d.ts +9 -0
  183. package/lib/icon/angle-double-down-line.d.ts +4 -0
  184. package/lib/icon/angle-double-down-line.js +366 -0
  185. package/lib/icon/angle-double-left-line.d.ts +4 -0
  186. package/lib/icon/angle-double-left-line.js +366 -0
  187. package/lib/icon/angle-double-left.d.ts +4 -0
  188. package/lib/icon/angle-double-left.js +366 -0
  189. package/lib/icon/angle-double-right-line.d.ts +4 -0
  190. package/lib/icon/angle-double-right-line.js +366 -0
  191. package/lib/icon/angle-double-right.d.ts +4 -0
  192. package/lib/icon/angle-double-right.js +366 -0
  193. package/lib/icon/angle-double-up-line.d.ts +4 -0
  194. package/lib/icon/angle-double-up-line.js +366 -0
  195. package/lib/icon/angle-down-fill.d.ts +4 -0
  196. package/lib/icon/angle-down-fill.js +366 -0
  197. package/lib/icon/angle-down-line.d.ts +4 -0
  198. package/lib/icon/angle-down-line.js +366 -0
  199. package/lib/icon/angle-down.d.ts +4 -0
  200. package/lib/icon/angle-down.js +366 -0
  201. package/lib/icon/angle-left.d.ts +4 -0
  202. package/lib/icon/angle-left.js +366 -0
  203. package/lib/icon/angle-right.d.ts +4 -0
  204. package/lib/icon/angle-right.js +366 -0
  205. package/lib/icon/angle-up-fill.d.ts +4 -0
  206. package/lib/icon/angle-up-fill.js +366 -0
  207. package/lib/icon/angle-up.d.ts +4 -0
  208. package/lib/icon/angle-up.js +366 -0
  209. package/lib/icon/archive-fill.d.ts +4 -0
  210. package/lib/icon/archive-fill.js +366 -0
  211. package/lib/icon/arrows-left.d.ts +4 -0
  212. package/lib/icon/arrows-left.js +366 -0
  213. package/lib/icon/arrows-right.d.ts +4 -0
  214. package/lib/icon/arrows-right.js +366 -0
  215. package/lib/icon/audio-fill.d.ts +4 -0
  216. package/lib/icon/audio-fill.js +366 -0
  217. package/lib/icon/bk.d.ts +4 -0
  218. package/lib/icon/bk.js +366 -0
  219. package/lib/icon/circle.d.ts +4 -0
  220. package/lib/icon/circle.js +366 -0
  221. package/lib/icon/close-line.d.ts +4 -0
  222. package/lib/icon/close-line.js +366 -0
  223. package/lib/icon/close.d.ts +4 -0
  224. package/lib/icon/close.js +366 -0
  225. package/lib/icon/code.d.ts +4 -0
  226. package/lib/icon/code.js +366 -0
  227. package/lib/icon/cog-shape.d.ts +4 -0
  228. package/lib/icon/cog-shape.js +366 -0
  229. package/lib/icon/collapse-left.d.ts +4 -0
  230. package/lib/icon/collapse-left.js +366 -0
  231. package/lib/icon/copy.d.ts +4 -0
  232. package/lib/icon/copy.js +366 -0
  233. package/lib/icon/data-shape.d.ts +4 -0
  234. package/lib/icon/data-shape.js +366 -0
  235. package/lib/icon/del.d.ts +4 -0
  236. package/lib/icon/del.js +366 -0
  237. package/lib/icon/doc-fill.d.ts +4 -0
  238. package/lib/icon/doc-fill.js +366 -0
  239. package/lib/icon/done.d.ts +4 -0
  240. package/lib/icon/done.js +366 -0
  241. package/lib/icon/down-shape.d.ts +4 -0
  242. package/lib/icon/down-shape.js +366 -0
  243. package/lib/icon/down-small.d.ts +4 -0
  244. package/lib/icon/down-small.js +366 -0
  245. package/lib/icon/edit-line.d.ts +4 -0
  246. package/lib/icon/edit-line.js +366 -0
  247. package/lib/icon/ellipsis.d.ts +4 -0
  248. package/lib/icon/ellipsis.js +366 -0
  249. package/lib/icon/enlarge-line.d.ts +4 -0
  250. package/lib/icon/enlarge-line.js +366 -0
  251. package/lib/icon/error.d.ts +4 -0
  252. package/lib/icon/error.js +366 -0
  253. package/lib/icon/excel-fill.d.ts +4 -0
  254. package/lib/icon/excel-fill.js +366 -0
  255. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  256. package/lib/icon/exclamation-circle-shape.js +366 -0
  257. package/lib/icon/eye.d.ts +4 -0
  258. package/lib/icon/eye.js +366 -0
  259. package/lib/icon/filliscreen-line.d.ts +4 -0
  260. package/lib/icon/filliscreen-line.js +366 -0
  261. package/lib/icon/folder-open.d.ts +4 -0
  262. package/lib/icon/folder-open.js +366 -0
  263. package/lib/icon/folder-shape-open.d.ts +4 -0
  264. package/lib/icon/folder-shape-open.js +366 -0
  265. package/lib/icon/folder-shape.d.ts +4 -0
  266. package/lib/icon/folder-shape.js +366 -0
  267. package/lib/icon/folder.d.ts +4 -0
  268. package/lib/icon/folder.js +366 -0
  269. package/lib/icon/funnel.d.ts +4 -0
  270. package/lib/icon/funnel.js +366 -0
  271. package/lib/icon/help-document-fill.d.ts +4 -0
  272. package/lib/icon/help-document-fill.js +366 -0
  273. package/lib/icon/help-fill.d.ts +4 -0
  274. package/lib/icon/help-fill.js +366 -0
  275. package/lib/icon/help.d.ts +4 -0
  276. package/lib/icon/help.js +366 -0
  277. package/lib/icon/icon.d.ts +12 -0
  278. package/lib/icon/image-fill.d.ts +4 -0
  279. package/lib/icon/image-fill.js +366 -0
  280. package/lib/icon/img-error.d.ts +4 -0
  281. package/lib/icon/img-placehoulder.d.ts +4 -0
  282. package/lib/icon/img-placehoulder.js +412 -0
  283. package/lib/icon/index.d.ts +79 -0
  284. package/lib/icon/index.js +2287 -0
  285. package/lib/icon/info-line.d.ts +4 -0
  286. package/lib/icon/info-line.js +412 -0
  287. package/lib/icon/info.d.ts +4 -0
  288. package/lib/icon/info.js +412 -0
  289. package/lib/icon/left-shape.d.ts +4 -0
  290. package/lib/icon/left-shape.js +412 -0
  291. package/lib/icon/left-turn-line.d.ts +4 -0
  292. package/lib/icon/left-turn-line.js +412 -0
  293. package/lib/icon/narrow-line.d.ts +4 -0
  294. package/lib/icon/narrow-line.js +412 -0
  295. package/lib/icon/original.d.ts +4 -0
  296. package/lib/icon/original.js +412 -0
  297. package/lib/icon/pdf-fill.d.ts +4 -0
  298. package/lib/icon/pdf-fill.js +412 -0
  299. package/lib/icon/play-shape.d.ts +4 -0
  300. package/lib/icon/play-shape.js +412 -0
  301. package/lib/icon/plus.d.ts +4 -0
  302. package/lib/icon/plus.js +412 -0
  303. package/lib/icon/ppt-fill.d.ts +4 -0
  304. package/lib/icon/ppt-fill.js +412 -0
  305. package/lib/icon/qq.d.ts +4 -0
  306. package/lib/icon/qq.js +412 -0
  307. package/lib/icon/right-shape.d.ts +4 -0
  308. package/lib/icon/right-shape.js +412 -0
  309. package/lib/icon/right-turn-line.d.ts +4 -0
  310. package/lib/icon/right-turn-line.js +412 -0
  311. package/lib/icon/search.d.ts +4 -0
  312. package/lib/icon/search.js +412 -0
  313. package/lib/icon/share.d.ts +4 -0
  314. package/lib/icon/share.js +412 -0
  315. package/lib/icon/spinner.d.ts +4 -0
  316. package/lib/icon/spinner.js +412 -0
  317. package/lib/icon/success.d.ts +4 -0
  318. package/lib/icon/success.js +412 -0
  319. package/lib/icon/switcher-loading.d.ts +4 -0
  320. package/lib/icon/switcher-loading.js +412 -0
  321. package/lib/icon/text-file.d.ts +4 -0
  322. package/lib/icon/text-file.js +412 -0
  323. package/lib/icon/text-fill.d.ts +4 -0
  324. package/lib/icon/text-fill.js +412 -0
  325. package/lib/icon/transfer.d.ts +4 -0
  326. package/lib/icon/transfer.js +412 -0
  327. package/lib/icon/tree-application-shape.d.ts +4 -0
  328. package/lib/icon/tree-application-shape.js +412 -0
  329. package/lib/icon/unfull-screen.d.ts +4 -0
  330. package/lib/icon/unfull-screen.js +412 -0
  331. package/lib/icon/unvisible.d.ts +4 -0
  332. package/lib/icon/unvisible.js +412 -0
  333. package/lib/icon/up-shape.d.ts +4 -0
  334. package/lib/icon/up-shape.js +412 -0
  335. package/lib/icon/upload.d.ts +4 -0
  336. package/lib/icon/upload.js +412 -0
  337. package/lib/icon/video-fill.d.ts +4 -0
  338. package/lib/icon/video-fill.js +412 -0
  339. package/lib/icon/warn.d.ts +4 -0
  340. package/lib/icon/warn.js +412 -0
  341. package/lib/icon/weixin.d.ts +4 -0
  342. package/lib/icon/weixin.js +412 -0
  343. package/lib/image/image-viewer.css +142 -0
  344. package/lib/image/image-viewer.d.ts +73 -0
  345. package/lib/image/image-viewer.less +168 -0
  346. package/lib/image/image-viewer.variable.css +142 -0
  347. package/lib/image/image.css +37 -0
  348. package/lib/image/image.d.ts +93 -0
  349. package/lib/image/image.less +44 -0
  350. package/lib/image/image.variable.css +37 -0
  351. package/lib/image/index.d.ts +246 -0
  352. package/lib/image/index.js +824 -0
  353. package/lib/image/props.d.ts +71 -0
  354. package/lib/index.d.ts +4 -0
  355. package/lib/index.js +85 -0
  356. package/lib/info-box/index.d.ts +6 -0
  357. package/lib/info-box/index.js +1730 -0
  358. package/lib/info-box/info-box.css +37 -0
  359. package/lib/info-box/info-box.d.ts +26 -0
  360. package/lib/info-box/info-box.less +51 -0
  361. package/lib/info-box/info-box.variable.css +157 -0
  362. package/lib/input/index.d.ts +528 -0
  363. package/lib/input/index.js +778 -0
  364. package/lib/input/input.css +351 -0
  365. package/lib/input/input.d.ts +337 -0
  366. package/lib/input/input.less +306 -0
  367. package/lib/input/input.variable.css +471 -0
  368. package/lib/link/index.d.ts +172 -0
  369. package/lib/link/index.js +158 -0
  370. package/lib/link/link.css +55 -0
  371. package/lib/link/link.d.ts +60 -0
  372. package/lib/link/link.less +76 -0
  373. package/lib/link/link.variable.css +175 -0
  374. package/lib/loading/index.d.ts +257 -0
  375. package/lib/loading/index.js +249 -0
  376. package/lib/loading/loading.css +305 -0
  377. package/lib/loading/loading.d.ts +160 -0
  378. package/lib/loading/loading.less +193 -0
  379. package/lib/loading/loading.variable.css +425 -0
  380. package/lib/menu/index.d.ts +180 -0
  381. package/lib/menu/index.js +732 -0
  382. package/lib/menu/menu-group.d.ts +14 -0
  383. package/lib/menu/menu-item.d.ts +16 -0
  384. package/lib/menu/menu.css +233 -0
  385. package/lib/menu/menu.d.ts +55 -0
  386. package/lib/menu/menu.less +180 -0
  387. package/lib/menu/menu.variable.css +353 -0
  388. package/lib/menu/submenu.css +3 -0
  389. package/lib/menu/submenu.d.ts +22 -0
  390. package/lib/menu/submenu.less +5 -0
  391. package/lib/menu/submenu.variable.css +123 -0
  392. package/lib/menu/utils.d.ts +41 -0
  393. package/lib/message/index.d.ts +2 -0
  394. package/lib/message/index.js +329 -0
  395. package/lib/message/message.css +74 -0
  396. package/lib/message/message.less +87 -0
  397. package/lib/message/message.variable.css +194 -0
  398. package/lib/message/messageConstructor.d.ts +109 -0
  399. package/lib/modal/index.d.ts +592 -0
  400. package/lib/modal/index.js +329 -0
  401. package/lib/modal/modal.css +73 -0
  402. package/lib/modal/modal.d.ts +209 -0
  403. package/lib/modal/modal.less +48 -0
  404. package/lib/modal/modal.variable.css +193 -0
  405. package/lib/modal/props.mixin.d.ts +87 -0
  406. package/lib/navigation/index.d.ts +311 -0
  407. package/lib/navigation/index.js +363 -0
  408. package/lib/navigation/navigation-title.d.ts +25 -0
  409. package/lib/navigation/navigation.css +184 -0
  410. package/lib/navigation/navigation.d.ts +120 -0
  411. package/lib/navigation/navigation.less +210 -0
  412. package/lib/navigation/navigation.variable.css +304 -0
  413. package/lib/notify/index.d.ts +2 -0
  414. package/lib/notify/index.js +358 -0
  415. package/lib/notify/notify.css +69 -0
  416. package/lib/notify/notify.less +81 -0
  417. package/lib/notify/notify.variable.css +189 -0
  418. package/lib/notify/notifyConstructor.d.ts +132 -0
  419. package/lib/overflow-title/components/OverflowTitle.d.ts +38 -0
  420. package/lib/overflow-title/directive/overflowTitle.d.ts +3 -0
  421. package/lib/overflow-title/index.d.ts +129 -0
  422. package/lib/overflow-title/index.js +476 -0
  423. package/lib/overflow-title/overflow.css +11 -0
  424. package/lib/overflow-title/overflow.less +13 -0
  425. package/lib/overflow-title/overflow.variable.css +11 -0
  426. package/lib/overflow-title/props.d.ts +16 -0
  427. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  428. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  429. package/lib/pagination/index.d.ts +410 -0
  430. package/lib/pagination/index.js +937 -0
  431. package/lib/pagination/pagination.css +205 -0
  432. package/lib/pagination/pagination.d.ts +230 -0
  433. package/lib/pagination/pagination.less +230 -0
  434. package/lib/pagination/pagination.variable.css +325 -0
  435. package/lib/pagination/type.d.ts +6 -0
  436. package/lib/pagination/use-limit.d.ts +8 -0
  437. package/lib/pagination/use-list.d.ts +8 -0
  438. package/lib/pagination/use-small-list.d.ts +5 -0
  439. package/lib/pagination/use-total.d.ts +5 -0
  440. package/lib/plugin-popover/index.d.ts +27 -0
  441. package/lib/plugin-popover/index.js +2400 -0
  442. package/lib/plugins/index.d.ts +1 -0
  443. package/lib/plugins/index.js +63 -0
  444. package/lib/popover/arrow.d.ts +2 -0
  445. package/lib/popover/const.d.ts +16 -0
  446. package/lib/popover/content.d.ts +32 -0
  447. package/lib/popover/index.d.ts +653 -0
  448. package/lib/popover/index.js +2408 -0
  449. package/lib/popover/plugin-popover.d.ts +12 -0
  450. package/lib/popover/popover.css +25 -0
  451. package/lib/popover/popover.d.ts +277 -0
  452. package/lib/popover/popover.less +35 -0
  453. package/lib/popover/popover.variable.css +145 -0
  454. package/lib/popover/props.d.ts +146 -0
  455. package/lib/popover/reference.d.ts +2 -0
  456. package/lib/popover/root.d.ts +16 -0
  457. package/lib/popover/use-floating.d.ts +34 -0
  458. package/lib/popover/use-platform.d.ts +30 -0
  459. package/lib/popover/use-popover-init.d.ts +23 -0
  460. package/lib/popover/use-popper-id.d.ts +6 -0
  461. package/lib/popover/utils.d.ts +2 -0
  462. package/lib/popover2/index.d.ts +44 -0
  463. package/lib/popover2/index.js +108 -0
  464. package/lib/popover2/popover.d.ts +2 -0
  465. package/lib/preset.d.ts +7 -0
  466. package/lib/preset.js +62 -0
  467. package/lib/process/index.d.ts +205 -0
  468. package/lib/process/index.js +1375 -0
  469. package/lib/process/process.css +151 -0
  470. package/lib/process/process.d.ts +131 -0
  471. package/lib/process/process.less +195 -0
  472. package/lib/process/process.variable.css +271 -0
  473. package/lib/progress/circle.d.ts +6 -0
  474. package/lib/progress/index.d.ts +398 -0
  475. package/lib/progress/index.js +415 -0
  476. package/lib/progress/line.d.ts +6 -0
  477. package/lib/progress/progress.css +145 -0
  478. package/lib/progress/progress.d.ts +171 -0
  479. package/lib/progress/progress.less +90 -0
  480. package/lib/progress/progress.variable.css +265 -0
  481. package/lib/radio/common.d.ts +13 -0
  482. package/lib/radio/index.d.ts +288 -0
  483. package/lib/radio/index.js +588 -0
  484. package/lib/radio/radio-button.d.ts +90 -0
  485. package/lib/radio/radio-group.d.ts +57 -0
  486. package/lib/radio/radio.css +139 -0
  487. package/lib/radio/radio.d.ts +87 -0
  488. package/lib/radio/radio.less +177 -0
  489. package/lib/radio/radio.variable.css +259 -0
  490. package/lib/radio/type.d.ts +14 -0
  491. package/lib/rate/index.d.ts +136 -0
  492. package/lib/rate/index.js +294 -0
  493. package/lib/rate/rate.css +10 -0
  494. package/lib/rate/rate.d.ts +43 -0
  495. package/lib/rate/rate.less +11 -0
  496. package/lib/rate/rate.variable.css +10 -0
  497. package/lib/rate/star.css +24 -0
  498. package/lib/rate/star.d.ts +74 -0
  499. package/lib/rate/star.less +29 -0
  500. package/lib/rate/star.variable.css +24 -0
  501. package/lib/resize-layout/index.d.ts +336 -0
  502. package/lib/resize-layout/index.js +427 -0
  503. package/lib/resize-layout/resize-layout.css +177 -0
  504. package/lib/resize-layout/resize-layout.d.ts +127 -0
  505. package/lib/resize-layout/resize-layout.less +217 -0
  506. package/lib/resize-layout/resize-layout.variable.css +297 -0
  507. package/lib/search-select/index.d.ts +823 -0
  508. package/lib/search-select/index.js +3336 -0
  509. package/lib/search-select/input.d.ts +89 -0
  510. package/lib/search-select/menu.d.ts +83 -0
  511. package/lib/search-select/search-select.css +424 -0
  512. package/lib/search-select/search-select.d.ts +342 -0
  513. package/lib/search-select/search-select.less +380 -0
  514. package/lib/search-select/search-select.variable.css +544 -0
  515. package/lib/search-select/selected.d.ts +143 -0
  516. package/lib/search-select/utils.d.ts +88 -0
  517. package/lib/select/common.d.ts +26 -0
  518. package/lib/select/index.d.ts +2039 -0
  519. package/lib/select/index.js +2740 -0
  520. package/lib/select/option.d.ts +37 -0
  521. package/lib/select/optionGroup.d.ts +54 -0
  522. package/lib/select/select.css +399 -0
  523. package/lib/select/select.d.ts +753 -0
  524. package/lib/select/select.less +443 -0
  525. package/lib/select/select.variable.css +519 -0
  526. package/lib/select/selectTagInput.d.ts +93 -0
  527. package/lib/select/type.d.ts +39 -0
  528. package/lib/shared/dom.d.ts +3 -0
  529. package/lib/shared/helper.d.ts +101 -0
  530. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  531. package/lib/shared/hooks/use-form.d.ts +2 -0
  532. package/lib/shared/index.d.ts +74 -0
  533. package/lib/shared/index.js +2838 -0
  534. package/lib/shared/mask-manager.d.ts +80 -0
  535. package/lib/shared/pop-manager.d.ts +38 -0
  536. package/lib/shared/popover.d.ts +131 -0
  537. package/lib/shared/scrollbar-width.d.ts +1 -0
  538. package/lib/shared/token.d.ts +4 -0
  539. package/lib/shared/utils.d.ts +25 -0
  540. package/lib/shared/vue-types.d.ts +213 -0
  541. package/lib/shared/z-index-manager.d.ts +93 -0
  542. package/lib/sideslider/index.d.ts +477 -0
  543. package/lib/sideslider/index.js +1313 -0
  544. package/lib/sideslider/sideslider.css +114 -0
  545. package/lib/sideslider/sideslider.d.ts +203 -0
  546. package/lib/sideslider/sideslider.less +145 -0
  547. package/lib/sideslider/sideslider.variable.css +234 -0
  548. package/lib/slider/index.d.ts +440 -0
  549. package/lib/slider/index.js +2011 -0
  550. package/lib/slider/slider-button.d.ts +81 -0
  551. package/lib/slider/slider.css +149 -0
  552. package/lib/slider/slider.d.ts +201 -0
  553. package/lib/slider/slider.less +179 -0
  554. package/lib/slider/slider.variable.css +269 -0
  555. package/lib/steps/index.d.ts +250 -0
  556. package/lib/steps/index.js +1457 -0
  557. package/lib/steps/steps.css +300 -0
  558. package/lib/steps/steps.d.ts +161 -0
  559. package/lib/steps/steps.less +345 -0
  560. package/lib/steps/steps.variable.css +420 -0
  561. package/lib/styles/index.d.ts +53 -0
  562. package/lib/styles/mixins/animate.css +21 -0
  563. package/lib/styles/mixins/animate.less +27 -0
  564. package/lib/styles/mixins/animate.variable.css +21 -0
  565. package/lib/styles/mixins/clearfix.css +8 -0
  566. package/lib/styles/mixins/clearfix.less +10 -0
  567. package/lib/styles/mixins/clearfix.variable.css +8 -0
  568. package/lib/styles/mixins/ellipsis.less +8 -0
  569. package/lib/styles/mixins/mixins.css +72 -0
  570. package/lib/styles/mixins/mixins.less +5 -0
  571. package/lib/styles/mixins/mixins.variable.css +72 -0
  572. package/lib/styles/mixins/popper.css +43 -0
  573. package/lib/styles/mixins/popper.less +53 -0
  574. package/lib/styles/mixins/popper.variable.css +163 -0
  575. package/lib/styles/mixins/scroll.css +17 -0
  576. package/lib/styles/mixins/scroll.less +22 -0
  577. package/lib/styles/mixins/scroll.variable.css +137 -0
  578. package/lib/styles/mixins/size.less +13 -0
  579. package/lib/styles/reset.css +309 -0
  580. package/lib/styles/reset.less +337 -0
  581. package/lib/styles/reset.variable.css +309 -0
  582. package/lib/styles/themes/themes.less +162 -0
  583. package/lib/swiper/index.d.ts +181 -0
  584. package/lib/swiper/index.js +310 -0
  585. package/lib/swiper/swiper.css +91 -0
  586. package/lib/swiper/swiper.d.ts +65 -0
  587. package/lib/swiper/swiper.less +107 -0
  588. package/lib/swiper/swiper.variable.css +91 -0
  589. package/lib/switcher/index.d.ts +298 -0
  590. package/lib/switcher/index.js +240 -0
  591. package/lib/switcher/switcher.css +323 -0
  592. package/lib/switcher/switcher.d.ts +119 -0
  593. package/lib/switcher/switcher.less +337 -0
  594. package/lib/switcher/switcher.variable.css +443 -0
  595. package/lib/tab/index.d.ts +435 -0
  596. package/lib/tab/index.js +849 -0
  597. package/lib/tab/props.d.ts +207 -0
  598. package/lib/tab/tab-nav.d.ts +169 -0
  599. package/lib/tab/tab-panel.d.ts +68 -0
  600. package/lib/tab/tab.css +223 -0
  601. package/lib/tab/tab.d.ts +139 -0
  602. package/lib/tab/tab.less +285 -0
  603. package/lib/tab/tab.variable.css +343 -0
  604. package/lib/table/components/index.d.ts +3 -0
  605. package/lib/table/components/table-cell.d.ts +38 -0
  606. package/lib/table/components/table-column.d.ts +137 -0
  607. package/lib/table/components/table-row.d.ts +2 -0
  608. package/lib/table/const.d.ts +122 -0
  609. package/lib/table/index.d.ts +1141 -0
  610. package/lib/table/index.js +6520 -0
  611. package/lib/table/plugins/body-empty.d.ts +40 -0
  612. package/lib/table/plugins/col-group.d.ts +38 -0
  613. package/lib/table/plugins/common.d.ts +6 -0
  614. package/lib/table/plugins/head-filter.css +84 -0
  615. package/lib/table/plugins/head-filter.d.ts +26 -0
  616. package/lib/table/plugins/head-filter.less +110 -0
  617. package/lib/table/plugins/head-filter.variable.css +204 -0
  618. package/lib/table/plugins/head-sort.css +25 -0
  619. package/lib/table/plugins/head-sort.d.ts +22 -0
  620. package/lib/table/plugins/head-sort.less +31 -0
  621. package/lib/table/plugins/head-sort.variable.css +145 -0
  622. package/lib/table/plugins/index.d.ts +5 -0
  623. package/lib/table/plugins/settings.css +145 -0
  624. package/lib/table/plugins/settings.d.ts +37 -0
  625. package/lib/table/plugins/settings.less +179 -0
  626. package/lib/table/plugins/settings.variable.css +265 -0
  627. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  628. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  629. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  630. package/lib/table/plugins/use-pagination.d.ts +16 -0
  631. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  632. package/lib/table/props.d.ts +434 -0
  633. package/lib/table/render.d.ts +125 -0
  634. package/lib/table/table.css +1272 -0
  635. package/lib/table/table.d.ts +350 -0
  636. package/lib/table/table.less +365 -0
  637. package/lib/table/table.variable.css +1392 -0
  638. package/lib/table/use-column.d.ts +11 -0
  639. package/lib/table/use-common.d.ts +98 -0
  640. package/lib/table/utils.d.ts +129 -0
  641. package/lib/table-column/index.d.ts +325 -0
  642. package/lib/table-column/index.js +669 -0
  643. package/lib/tag/index.d.ts +229 -0
  644. package/lib/tag/index.js +206 -0
  645. package/lib/tag/tag.css +130 -0
  646. package/lib/tag/tag.d.ts +84 -0
  647. package/lib/tag/tag.less +149 -0
  648. package/lib/tag/tag.variable.css +250 -0
  649. package/lib/tag-input/common.d.ts +36 -0
  650. package/lib/tag-input/index.d.ts +1349 -0
  651. package/lib/tag-input/index.js +1795 -0
  652. package/lib/tag-input/list-tag-render.d.ts +44 -0
  653. package/lib/tag-input/tag-input.css +205 -0
  654. package/lib/tag-input/tag-input.d.ts +631 -0
  655. package/lib/tag-input/tag-input.less +248 -0
  656. package/lib/tag-input/tag-input.variable.css +325 -0
  657. package/lib/tag-input/tag-props.d.ts +252 -0
  658. package/lib/tag-input/tag-render.d.ts +64 -0
  659. package/lib/time-picker/index.d.ts +904 -0
  660. package/lib/time-picker/index.js +71 -0
  661. package/lib/time-picker/time-picker.css +215 -0
  662. package/lib/time-picker/time-picker.less +260 -0
  663. package/lib/time-picker/time-picker.variable.css +335 -0
  664. package/lib/timeline/index.d.ts +129 -0
  665. package/lib/timeline/index.js +251 -0
  666. package/lib/timeline/timeline.css +242 -0
  667. package/lib/timeline/timeline.d.ts +81 -0
  668. package/lib/timeline/timeline.less +252 -0
  669. package/lib/timeline/timeline.variable.css +362 -0
  670. package/lib/transfer/const.d.ts +5 -0
  671. package/lib/transfer/index.d.ts +365 -0
  672. package/lib/transfer/index.js +573 -0
  673. package/lib/transfer/props.d.ts +54 -0
  674. package/lib/transfer/transfer.css +161 -0
  675. package/lib/transfer/transfer.d.ts +160 -0
  676. package/lib/transfer/transfer.less +151 -0
  677. package/lib/transfer/transfer.variable.css +281 -0
  678. package/lib/tree/constant.d.ts +62 -0
  679. package/lib/tree/index.d.ts +647 -0
  680. package/lib/tree/index.js +2840 -0
  681. package/lib/tree/props.d.ts +213 -0
  682. package/lib/tree/tree.css +218 -0
  683. package/lib/tree/tree.d.ts +283 -0
  684. package/lib/tree/tree.less +114 -0
  685. package/lib/tree/tree.variable.css +338 -0
  686. package/lib/tree/use-empty.d.ts +6 -0
  687. package/lib/tree/use-node-action.d.ts +12 -0
  688. package/lib/tree/use-node-async.d.ts +5 -0
  689. package/lib/tree/use-node-attribute.d.ts +33 -0
  690. package/lib/tree/use-node-drag.d.ts +3 -0
  691. package/lib/tree/use-search.d.ts +11 -0
  692. package/lib/tree/use-tree-init.d.ts +15 -0
  693. package/lib/tree/util.d.ts +68 -0
  694. package/lib/upload/index.d.ts +566 -0
  695. package/lib/upload/index.js +3681 -0
  696. package/lib/upload/props.d.ts +111 -0
  697. package/lib/upload/upload-list.d.ts +47 -0
  698. package/lib/upload/upload-trigger.d.ts +51 -0
  699. package/lib/upload/upload.css +425 -0
  700. package/lib/upload/upload.d.ts +246 -0
  701. package/lib/upload/upload.less +464 -0
  702. package/lib/upload/upload.type.d.ts +78 -0
  703. package/lib/upload/upload.variable.css +545 -0
  704. package/lib/upload/use-ajax-upload.d.ts +3 -0
  705. package/lib/upload/use-file-handler.d.ts +44 -0
  706. package/lib/use-message.d.ts +2 -0
  707. package/lib/virtual-render/index.d.ts +602 -0
  708. package/lib/virtual-render/index.js +757 -0
  709. package/lib/virtual-render/props.d.ts +172 -0
  710. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  711. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  712. package/lib/virtual-render/virtual-render.css +33 -0
  713. package/lib/virtual-render/virtual-render.d.ts +266 -0
  714. package/lib/virtual-render/virtual-render.less +22 -0
  715. package/lib/virtual-render/virtual-render.variable.css +153 -0
  716. package/lib/volar.components.d.ts +101 -0
  717. package/package.json +58 -28
  718. package/LICENSE.txt +0 -22
@@ -0,0 +1,2094 @@
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_vue_types_22de060a__ from "vue-types";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
7
+ import * as __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__ from "../checkbox";
8
+ /******/ var __webpack_modules__ = ({
9
+
10
+ /***/ 7162:
11
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
12
+
13
+ /* unused reexport */ __webpack_require__(5047);
14
+
15
+
16
+ /***/ }),
17
+
18
+ /***/ 5047:
19
+ /***/ ((module) => {
20
+
21
+ /**
22
+ * Copyright (c) 2014-present, Facebook, Inc.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */
27
+
28
+ var runtime = (function (exports) {
29
+ "use strict";
30
+
31
+ var Op = Object.prototype;
32
+ var hasOwn = Op.hasOwnProperty;
33
+ var undefined; // More compressible than void 0.
34
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
35
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
36
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
37
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
38
+
39
+ function define(obj, key, value) {
40
+ Object.defineProperty(obj, key, {
41
+ value: value,
42
+ enumerable: true,
43
+ configurable: true,
44
+ writable: true
45
+ });
46
+ return obj[key];
47
+ }
48
+ try {
49
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
50
+ define({}, "");
51
+ } catch (err) {
52
+ define = function(obj, key, value) {
53
+ return obj[key] = value;
54
+ };
55
+ }
56
+
57
+ function wrap(innerFn, outerFn, self, tryLocsList) {
58
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
59
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
60
+ var generator = Object.create(protoGenerator.prototype);
61
+ var context = new Context(tryLocsList || []);
62
+
63
+ // The ._invoke method unifies the implementations of the .next,
64
+ // .throw, and .return methods.
65
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
66
+
67
+ return generator;
68
+ }
69
+ exports.wrap = wrap;
70
+
71
+ // Try/catch helper to minimize deoptimizations. Returns a completion
72
+ // record like context.tryEntries[i].completion. This interface could
73
+ // have been (and was previously) designed to take a closure to be
74
+ // invoked without arguments, but in all the cases we care about we
75
+ // already have an existing method we want to call, so there's no need
76
+ // to create a new function object. We can even get away with assuming
77
+ // the method takes exactly one argument, since that happens to be true
78
+ // in every case, so we don't have to touch the arguments object. The
79
+ // only additional allocation required is the completion record, which
80
+ // has a stable shape and so hopefully should be cheap to allocate.
81
+ function tryCatch(fn, obj, arg) {
82
+ try {
83
+ return { type: "normal", arg: fn.call(obj, arg) };
84
+ } catch (err) {
85
+ return { type: "throw", arg: err };
86
+ }
87
+ }
88
+
89
+ var GenStateSuspendedStart = "suspendedStart";
90
+ var GenStateSuspendedYield = "suspendedYield";
91
+ var GenStateExecuting = "executing";
92
+ var GenStateCompleted = "completed";
93
+
94
+ // Returning this object from the innerFn has the same effect as
95
+ // breaking out of the dispatch switch statement.
96
+ var ContinueSentinel = {};
97
+
98
+ // Dummy constructor functions that we use as the .constructor and
99
+ // .constructor.prototype properties for functions that return Generator
100
+ // objects. For full spec compliance, you may wish to configure your
101
+ // minifier not to mangle the names of these two functions.
102
+ function Generator() {}
103
+ function GeneratorFunction() {}
104
+ function GeneratorFunctionPrototype() {}
105
+
106
+ // This is a polyfill for %IteratorPrototype% for environments that
107
+ // don't natively support it.
108
+ var IteratorPrototype = {};
109
+ define(IteratorPrototype, iteratorSymbol, function () {
110
+ return this;
111
+ });
112
+
113
+ var getProto = Object.getPrototypeOf;
114
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
115
+ if (NativeIteratorPrototype &&
116
+ NativeIteratorPrototype !== Op &&
117
+ hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
118
+ // This environment has a native %IteratorPrototype%; use it instead
119
+ // of the polyfill.
120
+ IteratorPrototype = NativeIteratorPrototype;
121
+ }
122
+
123
+ var Gp = GeneratorFunctionPrototype.prototype =
124
+ Generator.prototype = Object.create(IteratorPrototype);
125
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
126
+ define(Gp, "constructor", GeneratorFunctionPrototype);
127
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
128
+ GeneratorFunction.displayName = define(
129
+ GeneratorFunctionPrototype,
130
+ toStringTagSymbol,
131
+ "GeneratorFunction"
132
+ );
133
+
134
+ // Helper for defining the .next, .throw, and .return methods of the
135
+ // Iterator interface in terms of a single ._invoke method.
136
+ function defineIteratorMethods(prototype) {
137
+ ["next", "throw", "return"].forEach(function(method) {
138
+ define(prototype, method, function(arg) {
139
+ return this._invoke(method, arg);
140
+ });
141
+ });
142
+ }
143
+
144
+ exports.isGeneratorFunction = function(genFun) {
145
+ var ctor = typeof genFun === "function" && genFun.constructor;
146
+ return ctor
147
+ ? ctor === GeneratorFunction ||
148
+ // For the native GeneratorFunction constructor, the best we can
149
+ // do is to check its .name property.
150
+ (ctor.displayName || ctor.name) === "GeneratorFunction"
151
+ : false;
152
+ };
153
+
154
+ exports.mark = function(genFun) {
155
+ if (Object.setPrototypeOf) {
156
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
157
+ } else {
158
+ genFun.__proto__ = GeneratorFunctionPrototype;
159
+ define(genFun, toStringTagSymbol, "GeneratorFunction");
160
+ }
161
+ genFun.prototype = Object.create(Gp);
162
+ return genFun;
163
+ };
164
+
165
+ // Within the body of any async function, `await x` is transformed to
166
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
167
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
168
+ // meant to be awaited.
169
+ exports.awrap = function(arg) {
170
+ return { __await: arg };
171
+ };
172
+
173
+ function AsyncIterator(generator, PromiseImpl) {
174
+ function invoke(method, arg, resolve, reject) {
175
+ var record = tryCatch(generator[method], generator, arg);
176
+ if (record.type === "throw") {
177
+ reject(record.arg);
178
+ } else {
179
+ var result = record.arg;
180
+ var value = result.value;
181
+ if (value &&
182
+ typeof value === "object" &&
183
+ hasOwn.call(value, "__await")) {
184
+ return PromiseImpl.resolve(value.__await).then(function(value) {
185
+ invoke("next", value, resolve, reject);
186
+ }, function(err) {
187
+ invoke("throw", err, resolve, reject);
188
+ });
189
+ }
190
+
191
+ return PromiseImpl.resolve(value).then(function(unwrapped) {
192
+ // When a yielded Promise is resolved, its final value becomes
193
+ // the .value of the Promise<{value,done}> result for the
194
+ // current iteration.
195
+ result.value = unwrapped;
196
+ resolve(result);
197
+ }, function(error) {
198
+ // If a rejected Promise was yielded, throw the rejection back
199
+ // into the async generator function so it can be handled there.
200
+ return invoke("throw", error, resolve, reject);
201
+ });
202
+ }
203
+ }
204
+
205
+ var previousPromise;
206
+
207
+ function enqueue(method, arg) {
208
+ function callInvokeWithMethodAndArg() {
209
+ return new PromiseImpl(function(resolve, reject) {
210
+ invoke(method, arg, resolve, reject);
211
+ });
212
+ }
213
+
214
+ return previousPromise =
215
+ // If enqueue has been called before, then we want to wait until
216
+ // all previous Promises have been resolved before calling invoke,
217
+ // so that results are always delivered in the correct order. If
218
+ // enqueue has not been called before, then it is important to
219
+ // call invoke immediately, without waiting on a callback to fire,
220
+ // so that the async generator function has the opportunity to do
221
+ // any necessary setup in a predictable way. This predictability
222
+ // is why the Promise constructor synchronously invokes its
223
+ // executor callback, and why async functions synchronously
224
+ // execute code before the first await. Since we implement simple
225
+ // async functions in terms of async generators, it is especially
226
+ // important to get this right, even though it requires care.
227
+ previousPromise ? previousPromise.then(
228
+ callInvokeWithMethodAndArg,
229
+ // Avoid propagating failures to Promises returned by later
230
+ // invocations of the iterator.
231
+ callInvokeWithMethodAndArg
232
+ ) : callInvokeWithMethodAndArg();
233
+ }
234
+
235
+ // Define the unified helper method that is used to implement .next,
236
+ // .throw, and .return (see defineIteratorMethods).
237
+ this._invoke = enqueue;
238
+ }
239
+
240
+ defineIteratorMethods(AsyncIterator.prototype);
241
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
242
+ return this;
243
+ });
244
+ exports.AsyncIterator = AsyncIterator;
245
+
246
+ // Note that simple async functions are implemented on top of
247
+ // AsyncIterator objects; they just return a Promise for the value of
248
+ // the final result produced by the iterator.
249
+ exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
250
+ if (PromiseImpl === void 0) PromiseImpl = Promise;
251
+
252
+ var iter = new AsyncIterator(
253
+ wrap(innerFn, outerFn, self, tryLocsList),
254
+ PromiseImpl
255
+ );
256
+
257
+ return exports.isGeneratorFunction(outerFn)
258
+ ? iter // If outerFn is a generator, return the full iterator.
259
+ : iter.next().then(function(result) {
260
+ return result.done ? result.value : iter.next();
261
+ });
262
+ };
263
+
264
+ function makeInvokeMethod(innerFn, self, context) {
265
+ var state = GenStateSuspendedStart;
266
+
267
+ return function invoke(method, arg) {
268
+ if (state === GenStateExecuting) {
269
+ throw new Error("Generator is already running");
270
+ }
271
+
272
+ if (state === GenStateCompleted) {
273
+ if (method === "throw") {
274
+ throw arg;
275
+ }
276
+
277
+ // Be forgiving, per 25.3.3.3.3 of the spec:
278
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
279
+ return doneResult();
280
+ }
281
+
282
+ context.method = method;
283
+ context.arg = arg;
284
+
285
+ while (true) {
286
+ var delegate = context.delegate;
287
+ if (delegate) {
288
+ var delegateResult = maybeInvokeDelegate(delegate, context);
289
+ if (delegateResult) {
290
+ if (delegateResult === ContinueSentinel) continue;
291
+ return delegateResult;
292
+ }
293
+ }
294
+
295
+ if (context.method === "next") {
296
+ // Setting context._sent for legacy support of Babel's
297
+ // function.sent implementation.
298
+ context.sent = context._sent = context.arg;
299
+
300
+ } else if (context.method === "throw") {
301
+ if (state === GenStateSuspendedStart) {
302
+ state = GenStateCompleted;
303
+ throw context.arg;
304
+ }
305
+
306
+ context.dispatchException(context.arg);
307
+
308
+ } else if (context.method === "return") {
309
+ context.abrupt("return", context.arg);
310
+ }
311
+
312
+ state = GenStateExecuting;
313
+
314
+ var record = tryCatch(innerFn, self, context);
315
+ if (record.type === "normal") {
316
+ // If an exception is thrown from innerFn, we leave state ===
317
+ // GenStateExecuting and loop back for another invocation.
318
+ state = context.done
319
+ ? GenStateCompleted
320
+ : GenStateSuspendedYield;
321
+
322
+ if (record.arg === ContinueSentinel) {
323
+ continue;
324
+ }
325
+
326
+ return {
327
+ value: record.arg,
328
+ done: context.done
329
+ };
330
+
331
+ } else if (record.type === "throw") {
332
+ state = GenStateCompleted;
333
+ // Dispatch the exception by looping back around to the
334
+ // context.dispatchException(context.arg) call above.
335
+ context.method = "throw";
336
+ context.arg = record.arg;
337
+ }
338
+ }
339
+ };
340
+ }
341
+
342
+ // Call delegate.iterator[context.method](context.arg) and handle the
343
+ // result, either by returning a { value, done } result from the
344
+ // delegate iterator, or by modifying context.method and context.arg,
345
+ // setting context.delegate to null, and returning the ContinueSentinel.
346
+ function maybeInvokeDelegate(delegate, context) {
347
+ var method = delegate.iterator[context.method];
348
+ if (method === undefined) {
349
+ // A .throw or .return when the delegate iterator has no .throw
350
+ // method always terminates the yield* loop.
351
+ context.delegate = null;
352
+
353
+ if (context.method === "throw") {
354
+ // Note: ["return"] must be used for ES3 parsing compatibility.
355
+ if (delegate.iterator["return"]) {
356
+ // If the delegate iterator has a return method, give it a
357
+ // chance to clean up.
358
+ context.method = "return";
359
+ context.arg = undefined;
360
+ maybeInvokeDelegate(delegate, context);
361
+
362
+ if (context.method === "throw") {
363
+ // If maybeInvokeDelegate(context) changed context.method from
364
+ // "return" to "throw", let that override the TypeError below.
365
+ return ContinueSentinel;
366
+ }
367
+ }
368
+
369
+ context.method = "throw";
370
+ context.arg = new TypeError(
371
+ "The iterator does not provide a 'throw' method");
372
+ }
373
+
374
+ return ContinueSentinel;
375
+ }
376
+
377
+ var record = tryCatch(method, delegate.iterator, context.arg);
378
+
379
+ if (record.type === "throw") {
380
+ context.method = "throw";
381
+ context.arg = record.arg;
382
+ context.delegate = null;
383
+ return ContinueSentinel;
384
+ }
385
+
386
+ var info = record.arg;
387
+
388
+ if (! info) {
389
+ context.method = "throw";
390
+ context.arg = new TypeError("iterator result is not an object");
391
+ context.delegate = null;
392
+ return ContinueSentinel;
393
+ }
394
+
395
+ if (info.done) {
396
+ // Assign the result of the finished delegate to the temporary
397
+ // variable specified by delegate.resultName (see delegateYield).
398
+ context[delegate.resultName] = info.value;
399
+
400
+ // Resume execution at the desired location (see delegateYield).
401
+ context.next = delegate.nextLoc;
402
+
403
+ // If context.method was "throw" but the delegate handled the
404
+ // exception, let the outer generator proceed normally. If
405
+ // context.method was "next", forget context.arg since it has been
406
+ // "consumed" by the delegate iterator. If context.method was
407
+ // "return", allow the original .return call to continue in the
408
+ // outer generator.
409
+ if (context.method !== "return") {
410
+ context.method = "next";
411
+ context.arg = undefined;
412
+ }
413
+
414
+ } else {
415
+ // Re-yield the result returned by the delegate method.
416
+ return info;
417
+ }
418
+
419
+ // The delegate iterator is finished, so forget it and continue with
420
+ // the outer generator.
421
+ context.delegate = null;
422
+ return ContinueSentinel;
423
+ }
424
+
425
+ // Define Generator.prototype.{next,throw,return} in terms of the
426
+ // unified ._invoke helper method.
427
+ defineIteratorMethods(Gp);
428
+
429
+ define(Gp, toStringTagSymbol, "Generator");
430
+
431
+ // A Generator should always return itself as the iterator object when the
432
+ // @@iterator function is called on it. Some browsers' implementations of the
433
+ // iterator prototype chain incorrectly implement this, causing the Generator
434
+ // object to not be returned from this call. This ensures that doesn't happen.
435
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
436
+ define(Gp, iteratorSymbol, function() {
437
+ return this;
438
+ });
439
+
440
+ define(Gp, "toString", function() {
441
+ return "[object Generator]";
442
+ });
443
+
444
+ function pushTryEntry(locs) {
445
+ var entry = { tryLoc: locs[0] };
446
+
447
+ if (1 in locs) {
448
+ entry.catchLoc = locs[1];
449
+ }
450
+
451
+ if (2 in locs) {
452
+ entry.finallyLoc = locs[2];
453
+ entry.afterLoc = locs[3];
454
+ }
455
+
456
+ this.tryEntries.push(entry);
457
+ }
458
+
459
+ function resetTryEntry(entry) {
460
+ var record = entry.completion || {};
461
+ record.type = "normal";
462
+ delete record.arg;
463
+ entry.completion = record;
464
+ }
465
+
466
+ function Context(tryLocsList) {
467
+ // The root entry object (effectively a try statement without a catch
468
+ // or a finally block) gives us a place to store values thrown from
469
+ // locations where there is no enclosing try statement.
470
+ this.tryEntries = [{ tryLoc: "root" }];
471
+ tryLocsList.forEach(pushTryEntry, this);
472
+ this.reset(true);
473
+ }
474
+
475
+ exports.keys = function(object) {
476
+ var keys = [];
477
+ for (var key in object) {
478
+ keys.push(key);
479
+ }
480
+ keys.reverse();
481
+
482
+ // Rather than returning an object with a next method, we keep
483
+ // things simple and return the next function itself.
484
+ return function next() {
485
+ while (keys.length) {
486
+ var key = keys.pop();
487
+ if (key in object) {
488
+ next.value = key;
489
+ next.done = false;
490
+ return next;
491
+ }
492
+ }
493
+
494
+ // To avoid creating an additional object, we just hang the .value
495
+ // and .done properties off the next function object itself. This
496
+ // also ensures that the minifier will not anonymize the function.
497
+ next.done = true;
498
+ return next;
499
+ };
500
+ };
501
+
502
+ function values(iterable) {
503
+ if (iterable) {
504
+ var iteratorMethod = iterable[iteratorSymbol];
505
+ if (iteratorMethod) {
506
+ return iteratorMethod.call(iterable);
507
+ }
508
+
509
+ if (typeof iterable.next === "function") {
510
+ return iterable;
511
+ }
512
+
513
+ if (!isNaN(iterable.length)) {
514
+ var i = -1, next = function next() {
515
+ while (++i < iterable.length) {
516
+ if (hasOwn.call(iterable, i)) {
517
+ next.value = iterable[i];
518
+ next.done = false;
519
+ return next;
520
+ }
521
+ }
522
+
523
+ next.value = undefined;
524
+ next.done = true;
525
+
526
+ return next;
527
+ };
528
+
529
+ return next.next = next;
530
+ }
531
+ }
532
+
533
+ // Return an iterator with no values.
534
+ return { next: doneResult };
535
+ }
536
+ exports.values = values;
537
+
538
+ function doneResult() {
539
+ return { value: undefined, done: true };
540
+ }
541
+
542
+ Context.prototype = {
543
+ constructor: Context,
544
+
545
+ reset: function(skipTempReset) {
546
+ this.prev = 0;
547
+ this.next = 0;
548
+ // Resetting context._sent for legacy support of Babel's
549
+ // function.sent implementation.
550
+ this.sent = this._sent = undefined;
551
+ this.done = false;
552
+ this.delegate = null;
553
+
554
+ this.method = "next";
555
+ this.arg = undefined;
556
+
557
+ this.tryEntries.forEach(resetTryEntry);
558
+
559
+ if (!skipTempReset) {
560
+ for (var name in this) {
561
+ // Not sure about the optimal order of these conditions:
562
+ if (name.charAt(0) === "t" &&
563
+ hasOwn.call(this, name) &&
564
+ !isNaN(+name.slice(1))) {
565
+ this[name] = undefined;
566
+ }
567
+ }
568
+ }
569
+ },
570
+
571
+ stop: function() {
572
+ this.done = true;
573
+
574
+ var rootEntry = this.tryEntries[0];
575
+ var rootRecord = rootEntry.completion;
576
+ if (rootRecord.type === "throw") {
577
+ throw rootRecord.arg;
578
+ }
579
+
580
+ return this.rval;
581
+ },
582
+
583
+ dispatchException: function(exception) {
584
+ if (this.done) {
585
+ throw exception;
586
+ }
587
+
588
+ var context = this;
589
+ function handle(loc, caught) {
590
+ record.type = "throw";
591
+ record.arg = exception;
592
+ context.next = loc;
593
+
594
+ if (caught) {
595
+ // If the dispatched exception was caught by a catch block,
596
+ // then let that catch block handle the exception normally.
597
+ context.method = "next";
598
+ context.arg = undefined;
599
+ }
600
+
601
+ return !! caught;
602
+ }
603
+
604
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
605
+ var entry = this.tryEntries[i];
606
+ var record = entry.completion;
607
+
608
+ if (entry.tryLoc === "root") {
609
+ // Exception thrown outside of any try block that could handle
610
+ // it, so set the completion value of the entire function to
611
+ // throw the exception.
612
+ return handle("end");
613
+ }
614
+
615
+ if (entry.tryLoc <= this.prev) {
616
+ var hasCatch = hasOwn.call(entry, "catchLoc");
617
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
618
+
619
+ if (hasCatch && hasFinally) {
620
+ if (this.prev < entry.catchLoc) {
621
+ return handle(entry.catchLoc, true);
622
+ } else if (this.prev < entry.finallyLoc) {
623
+ return handle(entry.finallyLoc);
624
+ }
625
+
626
+ } else if (hasCatch) {
627
+ if (this.prev < entry.catchLoc) {
628
+ return handle(entry.catchLoc, true);
629
+ }
630
+
631
+ } else if (hasFinally) {
632
+ if (this.prev < entry.finallyLoc) {
633
+ return handle(entry.finallyLoc);
634
+ }
635
+
636
+ } else {
637
+ throw new Error("try statement without catch or finally");
638
+ }
639
+ }
640
+ }
641
+ },
642
+
643
+ abrupt: function(type, arg) {
644
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
645
+ var entry = this.tryEntries[i];
646
+ if (entry.tryLoc <= this.prev &&
647
+ hasOwn.call(entry, "finallyLoc") &&
648
+ this.prev < entry.finallyLoc) {
649
+ var finallyEntry = entry;
650
+ break;
651
+ }
652
+ }
653
+
654
+ if (finallyEntry &&
655
+ (type === "break" ||
656
+ type === "continue") &&
657
+ finallyEntry.tryLoc <= arg &&
658
+ arg <= finallyEntry.finallyLoc) {
659
+ // Ignore the finally entry if control is not jumping to a
660
+ // location outside the try/catch block.
661
+ finallyEntry = null;
662
+ }
663
+
664
+ var record = finallyEntry ? finallyEntry.completion : {};
665
+ record.type = type;
666
+ record.arg = arg;
667
+
668
+ if (finallyEntry) {
669
+ this.method = "next";
670
+ this.next = finallyEntry.finallyLoc;
671
+ return ContinueSentinel;
672
+ }
673
+
674
+ return this.complete(record);
675
+ },
676
+
677
+ complete: function(record, afterLoc) {
678
+ if (record.type === "throw") {
679
+ throw record.arg;
680
+ }
681
+
682
+ if (record.type === "break" ||
683
+ record.type === "continue") {
684
+ this.next = record.arg;
685
+ } else if (record.type === "return") {
686
+ this.rval = this.arg = record.arg;
687
+ this.method = "return";
688
+ this.next = "end";
689
+ } else if (record.type === "normal" && afterLoc) {
690
+ this.next = afterLoc;
691
+ }
692
+
693
+ return ContinueSentinel;
694
+ },
695
+
696
+ finish: function(finallyLoc) {
697
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
698
+ var entry = this.tryEntries[i];
699
+ if (entry.finallyLoc === finallyLoc) {
700
+ this.complete(entry.completion, entry.afterLoc);
701
+ resetTryEntry(entry);
702
+ return ContinueSentinel;
703
+ }
704
+ }
705
+ },
706
+
707
+ "catch": function(tryLoc) {
708
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
709
+ var entry = this.tryEntries[i];
710
+ if (entry.tryLoc === tryLoc) {
711
+ var record = entry.completion;
712
+ if (record.type === "throw") {
713
+ var thrown = record.arg;
714
+ resetTryEntry(entry);
715
+ }
716
+ return thrown;
717
+ }
718
+ }
719
+
720
+ // The context.catch method must only be called with a location
721
+ // argument that corresponds to a known catch block.
722
+ throw new Error("illegal catch attempt");
723
+ },
724
+
725
+ delegateYield: function(iterable, resultName, nextLoc) {
726
+ this.delegate = {
727
+ iterator: values(iterable),
728
+ resultName: resultName,
729
+ nextLoc: nextLoc
730
+ };
731
+
732
+ if (this.method === "next") {
733
+ // Deliberately forget the last sent value so that we don't
734
+ // accidentally pass it on to the delegate.
735
+ this.arg = undefined;
736
+ }
737
+
738
+ return ContinueSentinel;
739
+ }
740
+ };
741
+
742
+ // Regardless of whether this script is executing as a CommonJS module
743
+ // or not, return the runtime object so that we can declare the variable
744
+ // regeneratorRuntime in the outer scope, which allows this module to be
745
+ // injected easily by `bin/regenerator --include-runtime script.js`.
746
+ return exports;
747
+
748
+ }(
749
+ // If this script is executing as a CommonJS module, use module.exports
750
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
751
+ // object. Either way, the resulting object will be used to initialize
752
+ // the regeneratorRuntime variable at the top of this file.
753
+ true ? module.exports : 0
754
+ ));
755
+
756
+ try {
757
+ regeneratorRuntime = runtime;
758
+ } catch (accidentalStrictMode) {
759
+ // This module should not be running in strict mode, so the above
760
+ // assignment should always work unless something is misconfigured. Just
761
+ // in case runtime.js accidentally runs in strict mode, in modern engines
762
+ // we can explicitly access globalThis. In older engines we can escape
763
+ // strict mode using a global Function call. This could conceivably fail
764
+ // if a Content Security Policy forbids using Function, but in that case
765
+ // the proper solution is to fix the accidental strict mode problem. If
766
+ // you've misconfigured your bundler to force strict mode and applied a
767
+ // CSP to forbid Function, and you're not willing to fix either of those
768
+ // problems, please detail your unique predicament in a GitHub issue.
769
+ if (typeof globalThis === "object") {
770
+ globalThis.regeneratorRuntime = runtime;
771
+ } else {
772
+ Function("r", "regeneratorRuntime = r")(runtime);
773
+ }
774
+ }
775
+
776
+
777
+ /***/ })
778
+
779
+ /******/ });
780
+ /************************************************************************/
781
+ /******/ // The module cache
782
+ /******/ var __webpack_module_cache__ = {};
783
+ /******/
784
+ /******/ // The require function
785
+ /******/ function __webpack_require__(moduleId) {
786
+ /******/ // Check if module is in cache
787
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
788
+ /******/ if (cachedModule !== undefined) {
789
+ /******/ return cachedModule.exports;
790
+ /******/ }
791
+ /******/ // Create a new module (and put it into the cache)
792
+ /******/ var module = __webpack_module_cache__[moduleId] = {
793
+ /******/ // no module.id needed
794
+ /******/ // no module.loaded needed
795
+ /******/ exports: {}
796
+ /******/ };
797
+ /******/
798
+ /******/ // Execute the module function
799
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
800
+ /******/
801
+ /******/ // Return the exports of the module
802
+ /******/ return module.exports;
803
+ /******/ }
804
+ /******/
805
+ /************************************************************************/
806
+ /******/ /* webpack/runtime/define property getters */
807
+ /******/ (() => {
808
+ /******/ // define getter functions for harmony exports
809
+ /******/ __webpack_require__.d = (exports, definition) => {
810
+ /******/ for(var key in definition) {
811
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
812
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
813
+ /******/ }
814
+ /******/ }
815
+ /******/ };
816
+ /******/ })();
817
+ /******/
818
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
819
+ /******/ (() => {
820
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
821
+ /******/ })();
822
+ /******/
823
+ /************************************************************************/
824
+ var __webpack_exports__ = {};
825
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
826
+ (() => {
827
+
828
+ // EXPORTS
829
+ __webpack_require__.d(__webpack_exports__, {
830
+ "ib": () => (/* binding */ BkCascader),
831
+ "Hf": () => (/* reexport */ cascader_panel),
832
+ "ZP": () => (/* binding */ src)
833
+ });
834
+
835
+ ;// CONCATENATED MODULE: external "../shared"
836
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
837
+ var y = x => () => x
838
+ const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["arrayEqual"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.arrayEqual, ["capitalize"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.capitalize, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.debounce, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
839
+ ;// CONCATENATED MODULE: external "vue"
840
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
841
+ var external_vue_y = x => () => x
842
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
843
+ ;// CONCATENATED MODULE: external "vue-types"
844
+ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
845
+ var external_vue_types_y = x => () => x
846
+ const external_vue_types_namespaceObject = external_vue_types_x({ ["array"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.array, ["object"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.object });
847
+ ;// CONCATENATED MODULE: external "../directives"
848
+ var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
849
+ var external_directives_y = x => () => x
850
+ const external_directives_namespaceObject = external_directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.clickoutside });
851
+ ;// CONCATENATED MODULE: external "../icon"
852
+ var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
853
+ var external_icon_y = x => () => x
854
+ const external_icon_namespaceObject = external_icon_x({ ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleRight, ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleUp, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Spinner });
855
+ ;// CONCATENATED MODULE: external "../popover"
856
+ var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
857
+ var external_popover_y = x => () => x
858
+ const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
859
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
860
+ var regenerator = __webpack_require__(7162);
861
+ ;// CONCATENATED MODULE: ../../packages/select/src/common.ts
862
+
863
+
864
+ /*
865
+ * Tencent is pleased to support the open source community by making
866
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
867
+ *
868
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
869
+ *
870
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
871
+ *
872
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
873
+ *
874
+ * ---------------------------------------------------
875
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
876
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
877
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
878
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
879
+ *
880
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
881
+ * the Software.
882
+ *
883
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
884
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
885
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
886
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
887
+ * IN THE SOFTWARE.
888
+ */
889
+
890
+
891
+
892
+ var selectKey = Symbol('BkSelect');
893
+ var optionGroupKey = Symbol('BkOptionGroup');
894
+ function useHover() {
895
+ var isHover = (0,external_vue_namespaceObject.ref)(false);
896
+
897
+ var setHover = function setHover() {
898
+ isHover.value = true;
899
+ };
900
+
901
+ var cancelHover = function cancelHover() {
902
+ isHover.value = false;
903
+ };
904
+
905
+ return {
906
+ isHover: isHover,
907
+ setHover: setHover,
908
+ cancelHover: cancelHover
909
+ };
910
+ }
911
+ function useRegistry(data) {
912
+ // 注册item
913
+ var register = function register(key, item) {
914
+ if (!item) return;
915
+
916
+ if (data.value.has(key)) {
917
+ console.warn("repeat ".concat(key), item);
918
+ return;
919
+ }
920
+
921
+ return data.value.set(key, item);
922
+ }; // 删除item
923
+
924
+
925
+ var unregister = function unregister(key) {
926
+ data.value["delete"](key);
927
+ };
928
+
929
+ return {
930
+ register: register,
931
+ unregister: unregister
932
+ };
933
+ }
934
+ function useDebouncedRef(value) {
935
+ var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
936
+ var timeout;
937
+ var innerValue = value;
938
+ return customRef(function (track, trigger) {
939
+ return {
940
+ get: function get() {
941
+ track();
942
+ return innerValue;
943
+ },
944
+ set: function set(newValue) {
945
+ clearTimeout(timeout);
946
+
947
+ if (newValue === undefined || newValue === '') {
948
+ innerValue = newValue;
949
+ trigger();
950
+ } else {
951
+ timeout = setTimeout(function () {
952
+ innerValue = newValue;
953
+ trigger();
954
+ }, delay);
955
+ }
956
+ }
957
+ };
958
+ });
959
+ }
960
+ function usePopover(config, triggerRef) {
961
+ var popoverMinWidth = config.popoverMinWidth;
962
+ var observerIns = null;
963
+ var popperWidth = ref('auto');
964
+ var isPopoverShow = ref(false);
965
+
966
+ var togglePopover = function togglePopover() {
967
+ isPopoverShow.value = !isPopoverShow.value;
968
+ };
969
+
970
+ var hidePopover = function hidePopover() {
971
+ isPopoverShow.value = false;
972
+ };
973
+
974
+ var showPopover = function showPopover() {
975
+ isPopoverShow.value = true;
976
+ };
977
+
978
+ var triggerRefResize = function triggerRefResize() {
979
+ var _a;
980
+
981
+ popperWidth.value = Math.max((_a = triggerRef.value) === null || _a === void 0 ? void 0 : _a.offsetWidth, popoverMinWidth);
982
+ };
983
+
984
+ onMounted(function () {
985
+ if (!triggerRef.value) return;
986
+ observerIns = observerResize(triggerRef.value, triggerRefResize, 60, true);
987
+ observerIns.start();
988
+ });
989
+ onBeforeUnmount(function () {
990
+ observerIns === null || observerIns === void 0 ? void 0 : observerIns.stop();
991
+ observerIns = null;
992
+ });
993
+ return {
994
+ isPopoverShow: isPopoverShow,
995
+ popperWidth: popperWidth,
996
+ togglePopover: togglePopover,
997
+ hidePopover: hidePopover,
998
+ showPopover: showPopover
999
+ };
1000
+ }
1001
+ function useRemoteSearch(method, callBack) {
1002
+ var _this = this;
1003
+
1004
+ var searchKey = useDebouncedRef('');
1005
+ var searchLoading = ref(false);
1006
+ watch(searchKey, function () {
1007
+ return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
1008
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
1009
+ while (1) {
1010
+ switch (_context.prev = _context.next) {
1011
+ case 0:
1012
+ _context.prev = 0;
1013
+ searchLoading.value = true;
1014
+ _context.next = 4;
1015
+ return method(searchKey.value);
1016
+
1017
+ case 4:
1018
+ searchLoading.value = false;
1019
+ _context.next = 10;
1020
+ break;
1021
+
1022
+ case 7:
1023
+ _context.prev = 7;
1024
+ _context.t0 = _context["catch"](0);
1025
+ console.error(_context.t0);
1026
+
1027
+ case 10:
1028
+ _context.prev = 10;
1029
+ callBack === null || callBack === void 0 ? void 0 : callBack();
1030
+ return _context.finish(10);
1031
+
1032
+ case 13:
1033
+ case "end":
1034
+ return _context.stop();
1035
+ }
1036
+ }
1037
+ }, _callee, null, [[0, 7, 10, 13]]);
1038
+ }));
1039
+ });
1040
+ return {
1041
+ searchKey: searchKey,
1042
+ searchLoading: searchLoading
1043
+ };
1044
+ }
1045
+ function toLowerCase() {
1046
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1047
+ if (!value) return value;
1048
+ return String(value).trim().toLowerCase();
1049
+ }
1050
+ ;
1051
+ ;// CONCATENATED MODULE: external "../checkbox"
1052
+ var external_checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1053
+ var external_checkbox_y = x => () => x
1054
+ const external_checkbox_namespaceObject = external_checkbox_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__["default"] });
1055
+ ;// CONCATENATED MODULE: ../../packages/cascader/src/cascader-panel.tsx
1056
+
1057
+
1058
+ /*
1059
+ * Tencent is pleased to support the open source community by making
1060
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1061
+ *
1062
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1063
+ *
1064
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1065
+ *
1066
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1067
+ *
1068
+ * ---------------------------------------------------
1069
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1070
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1071
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1072
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1073
+ *
1074
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1075
+ * the Software.
1076
+ *
1077
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1078
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1079
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1080
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1081
+ * IN THE SOFTWARE.
1082
+ */
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+ /* harmony default export */ const cascader_panel = ((0,external_vue_namespaceObject.defineComponent)({
1089
+ name: 'CascaderPanel',
1090
+ props: {
1091
+ width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.string]).def('auto'),
1092
+ height: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.string]).def(216),
1093
+ store: external_shared_namespaceObject.PropTypes.object.def({}),
1094
+ separator: external_shared_namespaceObject.PropTypes.string.def(''),
1095
+ suggestions: external_shared_namespaceObject.PropTypes.arrayOf((0,external_vue_types_namespaceObject.object)()),
1096
+ isFiltering: external_shared_namespaceObject.PropTypes.bool.def(false),
1097
+ searchKey: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def(''),
1098
+ modelValue: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.oneOfType([(0,external_vue_types_namespaceObject.array)(), String, Number]))
1099
+ },
1100
+ emits: ['update:modelValue'],
1101
+ setup: function setup(props, _ref) {
1102
+ var emit = _ref.emit;
1103
+ var store = props.store;
1104
+ var menus = (0,external_vue_namespaceObject.reactive)({
1105
+ list: [props.store.getNodes()]
1106
+ });
1107
+ var activePath = (0,external_vue_namespaceObject.ref)([]);
1108
+ var checkValue = (0,external_vue_namespaceObject.ref)([]);
1109
+
1110
+ var getSizeComputed = function getSizeComputed(value) {
1111
+ if (typeof value === 'number') {
1112
+ return "".concat(value, "px");
1113
+ }
1114
+
1115
+ return value;
1116
+ };
1117
+
1118
+ var panelHeight = getSizeComputed(props.height);
1119
+ var panelWidth = getSizeComputed(props.width);
1120
+
1121
+ var updateCheckValue = function updateCheckValue(value) {
1122
+ if (value.length === 0) {
1123
+ menus.list = menus.list.slice(0, 1);
1124
+ activePath.value = [];
1125
+ }
1126
+
1127
+ value.forEach(function (id) {
1128
+ var node = store.getNodeById(id);
1129
+ nodeExpandHandler(node);
1130
+ });
1131
+ checkValue.value = value;
1132
+ };
1133
+ /** 节点选中回调
1134
+ * 根据单选、多选配置checkValue
1135
+ * 派发事件,更新选中值
1136
+ */
1137
+
1138
+
1139
+ var nodeCheckHandler = function nodeCheckHandler(node) {
1140
+ if (node.isDisabled) {
1141
+ return;
1142
+ }
1143
+
1144
+ if (node.config.multiple) {
1145
+ checkValue.value = store.getCheckedNodes().map(function (node) {
1146
+ return node.path;
1147
+ });
1148
+ } else {
1149
+ checkValue.value = node.path;
1150
+ }
1151
+
1152
+ emit('update:modelValue', checkValue.value);
1153
+ };
1154
+ /** node点击展开回调 */
1155
+
1156
+
1157
+ var nodeExpandHandler = function nodeExpandHandler(node) {
1158
+ var _a;
1159
+
1160
+ if (!node || (node === null || node === void 0 ? void 0 : node.isDisabled)) return;
1161
+ menus.list = menus.list.slice(0, node.level);
1162
+ activePath.value = activePath.value.slice(0, node.level - 1);
1163
+ /** 如果所点击的node具有children元素,则直接展开
1164
+ * 否则判断是否开启了远程加载,进行远程加载列表
1165
+ */
1166
+
1167
+ if ((_a = node.children) === null || _a === void 0 ? void 0 : _a.length) {
1168
+ menus.list.push(node.children);
1169
+ activePath.value.push(node);
1170
+ return;
1171
+ }
1172
+
1173
+ if (store.config.isRemote && !node.isLeaf) {
1174
+ node.loading = true;
1175
+
1176
+ var updateNodes = function updateNodes(nodeData) {
1177
+ store.appendNodes(nodeData, node || null);
1178
+ menus.list.push(node.children);
1179
+ activePath.value.push(node);
1180
+ node.loading = false;
1181
+ };
1182
+
1183
+ store.config.remoteMethod(node, updateNodes);
1184
+ }
1185
+ };
1186
+
1187
+ var nodeEvent = function nodeEvent(node) {
1188
+ var _node$config = node.config,
1189
+ trigger = _node$config.trigger,
1190
+ checkAnyLevel = _node$config.checkAnyLevel,
1191
+ multiple = _node$config.multiple;
1192
+ var events = {
1193
+ onClick: function onClick(e) {
1194
+ if (!node.isLeaf || multiple) e.stopPropagation();
1195
+ trigger === 'click' && nodeExpandHandler(node);
1196
+ checkAnyLevel && !multiple && nodeCheckHandler(node);
1197
+ node.isLeaf && !multiple && nodeCheckHandler(node);
1198
+ },
1199
+ onMouseenter: function onMouseenter() {
1200
+ trigger === 'hover' && nodeExpandHandler(node);
1201
+ }
1202
+ };
1203
+ return events;
1204
+ };
1205
+
1206
+ var searchPanelEvents = function searchPanelEvents(node) {
1207
+ var multiple = node.config.multiple;
1208
+ var events = {
1209
+ onClick: function onClick(e) {
1210
+ if (multiple) {
1211
+ e.stopPropagation();
1212
+ checkNode(node, !node.checked);
1213
+ return;
1214
+ }
1215
+
1216
+ nodeExpandHandler(node);
1217
+ node.isLeaf && !multiple && nodeCheckHandler(node);
1218
+ }
1219
+ };
1220
+ return events;
1221
+ };
1222
+
1223
+ var isNodeInPath = function isNodeInPath(node) {
1224
+ var currentLevel = activePath.value[node.level - 1] || {};
1225
+ return currentLevel.id === node.id;
1226
+ };
1227
+
1228
+ var isCheckedNode = function isCheckedNode(node, checkValue) {
1229
+ var multiple = node.config.multiple;
1230
+
1231
+ if (multiple) {
1232
+ return checkValue.some(function (val) {
1233
+ return (0,external_shared_namespaceObject.arrayEqual)(val, node.path);
1234
+ });
1235
+ }
1236
+
1237
+ return (0,external_shared_namespaceObject.arrayEqual)(checkValue, node.path);
1238
+ };
1239
+ /** 多选节点checkbox点击的回调 */
1240
+
1241
+
1242
+ var checkNode = function checkNode(node, value) {
1243
+ node.setNodeCheck(value ? value : false);
1244
+ nodeCheckHandler(node);
1245
+ };
1246
+
1247
+ var iconRender = function iconRender(node) {
1248
+ return node.loading ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Spinner, {
1249
+ "class": "icon-spinner"
1250
+ }, null) : (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleRight, {
1251
+ "class": "icon-angle-right"
1252
+ }, null);
1253
+ };
1254
+
1255
+ (0,external_vue_namespaceObject.watch)(function () {
1256
+ return props.modelValue;
1257
+ }, function (value) {
1258
+ updateCheckValue(value);
1259
+ }, {
1260
+ immediate: true
1261
+ });
1262
+ (0,external_vue_namespaceObject.watch)(function () {
1263
+ return props.store;
1264
+ }, function (value) {
1265
+ menus.list = [value.getNodes()];
1266
+ });
1267
+ return {
1268
+ menus: menus,
1269
+ activePath: activePath,
1270
+ nodeExpandHandler: nodeExpandHandler,
1271
+ isNodeInPath: isNodeInPath,
1272
+ nodeEvent: nodeEvent,
1273
+ isCheckedNode: isCheckedNode,
1274
+ checkValue: checkValue,
1275
+ checkNode: checkNode,
1276
+ iconRender: iconRender,
1277
+ panelWidth: panelWidth,
1278
+ panelHeight: panelHeight,
1279
+ searchPanelEvents: searchPanelEvents
1280
+ };
1281
+ },
1282
+ render: function render() {
1283
+ var _this = this;
1284
+
1285
+ var emptyWidth = parseInt(this.panelWidth, 10) > 200 ? this.panelWidth : "".concat(200, "px");
1286
+
1287
+ var searchPanelRender = function searchPanelRender() {
1288
+ return _this.suggestions.length ? (0,external_vue_namespaceObject.createVNode)("ul", {
1289
+ "class": "bk-cascader-panel bk-scroll-y",
1290
+ "style": {
1291
+ height: _this.panelHeight,
1292
+ width: _this.panelWidth
1293
+ }
1294
+ }, [_this.suggestions.map(function (node) {
1295
+ return (0,external_vue_namespaceObject.createVNode)("li", (0,external_vue_namespaceObject.mergeProps)({
1296
+ "class": ['bk-cascader-node', {
1297
+ 'is-selected': _this.isNodeInPath(node)
1298
+ }, {
1299
+ 'is-disabled': node.isDisabled
1300
+ }, {
1301
+ 'is-checked': _this.isCheckedNode(node, _this.checkValue)
1302
+ }]
1303
+ }, _this.searchPanelEvents(node)), [node.pathNames.join(_this.separator)]);
1304
+ })]) : (0,external_vue_namespaceObject.createVNode)("div", {
1305
+ "class": "bk-cascader-search-empty",
1306
+ "style": {
1307
+ width: emptyWidth
1308
+ }
1309
+ }, [(0,external_vue_namespaceObject.createVNode)("span", null, [(0,external_vue_namespaceObject.createTextVNode)("\u6682\u65E0\u641C\u7D22\u7ED3\u679C")])]);
1310
+ };
1311
+
1312
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1313
+ "class": "bk-cascader-panel-wrapper"
1314
+ }, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu) {
1315
+ return (0,external_vue_namespaceObject.createVNode)("ul", {
1316
+ "class": "bk-cascader-panel bk-scroll-y",
1317
+ "style": {
1318
+ height: _this.panelHeight,
1319
+ width: _this.panelWidth
1320
+ }
1321
+ }, [menu.map(function (node) {
1322
+ var _a, _b;
1323
+
1324
+ return (0,external_vue_namespaceObject.createVNode)("li", (0,external_vue_namespaceObject.mergeProps)({
1325
+ "class": ['bk-cascader-node', {
1326
+ 'is-selected': _this.isNodeInPath(node)
1327
+ }, {
1328
+ 'is-disabled': node.isDisabled
1329
+ }, {
1330
+ 'is-checked': !node.config.multiple && _this.isCheckedNode(node, _this.checkValue)
1331
+ }]
1332
+ }, Object.assign(_this.nodeEvent(node), node.config.multiple ? {} : {})), [node.config.multiple && (0,external_vue_namespaceObject.createVNode)(external_checkbox_namespaceObject["default"], {
1333
+ "disabled": node.isDisabled,
1334
+ "modelValue": node.checked,
1335
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
1336
+ return node.checked = $event;
1337
+ },
1338
+ "indeterminate": node.isIndeterminate,
1339
+ "onChange": function onChange(val) {
1340
+ return _this.checkNode(node, val);
1341
+ }
1342
+ }, null), (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a, {
1343
+ node: node,
1344
+ data: node.data
1345
+ }), !node.isLeaf ? _this.iconRender(node) : '']);
1346
+ })]);
1347
+ })]);
1348
+ }
1349
+ }));
1350
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
1351
+ function _classCallCheck(instance, Constructor) {
1352
+ if (!(instance instanceof Constructor)) {
1353
+ throw new TypeError("Cannot call a class as a function");
1354
+ }
1355
+ }
1356
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
1357
+ function _defineProperties(target, props) {
1358
+ for (var i = 0; i < props.length; i++) {
1359
+ var descriptor = props[i];
1360
+ descriptor.enumerable = descriptor.enumerable || false;
1361
+ descriptor.configurable = true;
1362
+ if ("value" in descriptor) descriptor.writable = true;
1363
+ Object.defineProperty(target, descriptor.key, descriptor);
1364
+ }
1365
+ }
1366
+
1367
+ function _createClass(Constructor, protoProps, staticProps) {
1368
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1369
+ if (staticProps) _defineProperties(Constructor, staticProps);
1370
+ Object.defineProperty(Constructor, "prototype", {
1371
+ writable: false
1372
+ });
1373
+ return Constructor;
1374
+ }
1375
+ ;// CONCATENATED MODULE: ../../packages/cascader/src/node.ts
1376
+
1377
+
1378
+
1379
+ /*
1380
+ * Tencent is pleased to support the open source community by making
1381
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1382
+ *
1383
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1384
+ *
1385
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1386
+ *
1387
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1388
+ *
1389
+ * ---------------------------------------------------
1390
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1391
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1392
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1393
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1394
+ *
1395
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1396
+ * the Software.
1397
+ *
1398
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1399
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1400
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1401
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1402
+ * IN THE SOFTWARE.
1403
+ */
1404
+
1405
+ ;
1406
+ /** 除了节点本身的disabled,如果父级是disabled,直接点也必须是disabled */
1407
+
1408
+ function isNodeDisabled(node) {
1409
+ if (node.data.disabled) {
1410
+ return true;
1411
+ }
1412
+
1413
+ if (node.level !== 1) {
1414
+ return isNodeDisabled(node.parent);
1415
+ }
1416
+
1417
+ return node.data.disabled;
1418
+ }
1419
+
1420
+ var Node = /*#__PURE__*/function () {
1421
+ function Node(node, config, parent) {
1422
+ _classCallCheck(this, Node);
1423
+
1424
+ this.data = node;
1425
+ this.config = config;
1426
+ this.parent = parent || null;
1427
+ this.leaf = node.leaf;
1428
+ this.level = !this.parent ? 1 : this.parent.level + 1;
1429
+ this.initState();
1430
+ }
1431
+
1432
+ _createClass(Node, [{
1433
+ key: "initState",
1434
+ value: function initState() {
1435
+ var _this = this;
1436
+
1437
+ var _this$config = this.config,
1438
+ idKey = _this$config.idKey,
1439
+ nameKey = _this$config.nameKey,
1440
+ childrenKey = _this$config.childrenKey;
1441
+ this.id = this.data[idKey];
1442
+ this.name = this.data[nameKey];
1443
+ this.loading = false;
1444
+ this.loaded = false;
1445
+ this.checked = false;
1446
+ var childrenData = this.data[childrenKey];
1447
+ this.children = (childrenData || []).map(function (child) {
1448
+ return new Node(child, _this.config, _this);
1449
+ });
1450
+ this.pathNodes = this.calculateNodesPath();
1451
+ this.path = this.pathNodes.map(function (node) {
1452
+ return node.id;
1453
+ });
1454
+ this.pathNames = this.pathNodes.map(function (node) {
1455
+ return node.name;
1456
+ });
1457
+ }
1458
+ }, {
1459
+ key: "isLeaf",
1460
+ get: function get() {
1461
+ var _a;
1462
+
1463
+ if (this.config.isRemote) {
1464
+ var isLeaf = this.leaf || (this.loaded ? !this.children.length : false);
1465
+ return isLeaf;
1466
+ }
1467
+
1468
+ return !(Array.isArray(this.children) && ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) !== 0);
1469
+ }
1470
+ }, {
1471
+ key: "isDisabled",
1472
+ get: function get() {
1473
+ return isNodeDisabled(this);
1474
+ }
1475
+ }, {
1476
+ key: "broadcast",
1477
+ value: function broadcast(event, checkStatus) {
1478
+ var handlerName = "onParent".concat((0,external_shared_namespaceObject.capitalize)(event));
1479
+ this.children.forEach(function (child) {
1480
+ var _a;
1481
+
1482
+ if (child) {
1483
+ // bottom up
1484
+ child.broadcast(event, checkStatus);
1485
+ (_a = child[handlerName]) === null || _a === void 0 ? void 0 : _a.call(child, checkStatus);
1486
+ }
1487
+ });
1488
+ }
1489
+ }, {
1490
+ key: "emit",
1491
+ value: function emit(event) {
1492
+ var _a;
1493
+
1494
+ var parent = this.parent;
1495
+ var handlerName = "onChild".concat((0,external_shared_namespaceObject.capitalize)(event));
1496
+
1497
+ if (parent) {
1498
+ (_a = parent[handlerName]) === null || _a === void 0 ? void 0 : _a.call(parent);
1499
+ parent.emit(event);
1500
+ }
1501
+ }
1502
+ }, {
1503
+ key: "onParentCheck",
1504
+ value: function onParentCheck(checked) {
1505
+ if (!this.isDisabled) {
1506
+ this.setCheckState(checked);
1507
+ }
1508
+ }
1509
+ }, {
1510
+ key: "onChildCheck",
1511
+ value: function onChildCheck() {
1512
+ var children = this.children;
1513
+ var validChildren = children.filter(function (child) {
1514
+ return !child.isDisabled;
1515
+ });
1516
+ var checked = validChildren.length ? validChildren.every(function (child) {
1517
+ return child.checked;
1518
+ }) : false;
1519
+ this.setCheckState(checked);
1520
+ }
1521
+ }, {
1522
+ key: "setCheckState",
1523
+ value: function setCheckState(checked) {
1524
+ var totalNum = this.children.length;
1525
+ var checkedNum = this.children.reduce(function (c, p) {
1526
+ var tempNum = p.isIndeterminate ? 0.5 : 0;
1527
+ var num = p.checked ? 1 : tempNum;
1528
+ return c + num;
1529
+ }, 0);
1530
+ this.checked = checked;
1531
+ this.isIndeterminate = checkedNum !== totalNum && checkedNum > 0;
1532
+ }
1533
+ }, {
1534
+ key: "setNodeCheck",
1535
+ value: function setNodeCheck(status) {
1536
+ if (this.checked !== status) {
1537
+ if (this.config.checkAnyLevel) {
1538
+ this.checked = status;
1539
+ return;
1540
+ }
1541
+
1542
+ this.broadcast('check', status);
1543
+ this.setCheckState(status);
1544
+ this.emit('check');
1545
+ }
1546
+ }
1547
+ }, {
1548
+ key: "calculateNodesPath",
1549
+ value: function calculateNodesPath() {
1550
+ var nodes = [this];
1551
+ var parent = this.parent;
1552
+
1553
+ while (parent) {
1554
+ nodes.unshift(parent);
1555
+ parent = parent.parent;
1556
+ }
1557
+
1558
+ return nodes;
1559
+ }
1560
+ }]);
1561
+
1562
+ return Node;
1563
+ }();
1564
+
1565
+ /* harmony default export */ const src_node = (Node);
1566
+ ;// CONCATENATED MODULE: ../../packages/cascader/src/store.ts
1567
+
1568
+
1569
+
1570
+ /*
1571
+ * Tencent is pleased to support the open source community by making
1572
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1573
+ *
1574
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1575
+ *
1576
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1577
+ *
1578
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1579
+ *
1580
+ * ---------------------------------------------------
1581
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1582
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1583
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1584
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1585
+ *
1586
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1587
+ * the Software.
1588
+ *
1589
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1590
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1591
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1592
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1593
+ * IN THE SOFTWARE.
1594
+ */
1595
+
1596
+
1597
+
1598
+ var flatNodes = function flatNodes(data, leafOnly) {
1599
+ return data.reduce(function (acc, node) {
1600
+ if (node.isLeaf) {
1601
+ acc.push(node);
1602
+ } else {
1603
+ !leafOnly && acc.push(node); // eslint-disable-next-line no-param-reassign
1604
+
1605
+ acc = acc.concat(flatNodes(node.children, leafOnly));
1606
+ }
1607
+
1608
+ return acc;
1609
+ }, []);
1610
+ };
1611
+
1612
+ var Store = /*#__PURE__*/function () {
1613
+ function Store(props) {
1614
+ var _this = this;
1615
+
1616
+ _classCallCheck(this, Store);
1617
+
1618
+ var list = props.list;
1619
+ this.data = list;
1620
+ this.config = props;
1621
+ this.nodes = this.data.map(function (node) {
1622
+ return new src_node(node, _this.config);
1623
+ });
1624
+ }
1625
+
1626
+ _createClass(Store, [{
1627
+ key: "getNodes",
1628
+ value: function getNodes() {
1629
+ return this.nodes;
1630
+ }
1631
+ /** 清空所有checked */
1632
+
1633
+ }, {
1634
+ key: "clearChecked",
1635
+ value: function clearChecked() {
1636
+ this.getFlattedNodes().forEach(function (node) {
1637
+ node.checked = false;
1638
+ node.isIndeterminate = false;
1639
+ });
1640
+ }
1641
+ /** 移除某一个Tag的check状态 */
1642
+
1643
+ }, {
1644
+ key: "removeTag",
1645
+ value: function removeTag(tag) {
1646
+ this.getFlattedNodes().find(function (node) {
1647
+ if ((0,external_shared_namespaceObject.arrayEqual)(tag, node.path)) {
1648
+ node.checked = false;
1649
+ return true;
1650
+ }
1651
+
1652
+ return false;
1653
+ });
1654
+ }
1655
+ /** 拍平节点,方便筛选 */
1656
+
1657
+ }, {
1658
+ key: "getFlattedNodes",
1659
+ value: function getFlattedNodes() {
1660
+ var leafOnly = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1661
+ return flatNodes(this.nodes, leafOnly);
1662
+ }
1663
+ /** 获取多选下,被选中(checked)的节点 */
1664
+
1665
+ }, {
1666
+ key: "getCheckedNodes",
1667
+ value: function getCheckedNodes() {
1668
+ return this.getFlattedNodes().filter(function (node) {
1669
+ return node.checked;
1670
+ });
1671
+ }
1672
+ /** 根据值获得node实例 */
1673
+
1674
+ }, {
1675
+ key: "getNodeByValue",
1676
+ value: function getNodeByValue(value) {
1677
+ var _a;
1678
+
1679
+ var nodes = this.getFlattedNodes().filter(function (node) {
1680
+ return (0,external_shared_namespaceObject.arrayEqual)(node.path, value);
1681
+ });
1682
+ return (_a = nodes[0]) !== null && _a !== void 0 ? _a : null;
1683
+ }
1684
+ }, {
1685
+ key: "getNodeById",
1686
+ value: function getNodeById(id) {
1687
+ return this.getFlattedNodes().find(function (node) {
1688
+ return node.id === id;
1689
+ });
1690
+ }
1691
+ /** 插入单个节点 */
1692
+
1693
+ }, {
1694
+ key: "appendNode",
1695
+ value: function appendNode(nodeData, parentNode) {
1696
+ var node = new src_node(nodeData, this.config, parentNode);
1697
+ var children = parentNode ? parentNode.children : this.nodes;
1698
+ children.push(node);
1699
+ }
1700
+ }, {
1701
+ key: "appendNodes",
1702
+ value: function appendNodes(nodeDataList, parentNode) {
1703
+ var _this2 = this;
1704
+
1705
+ nodeDataList.forEach(function (node) {
1706
+ return _this2.appendNode(node, parentNode);
1707
+ });
1708
+ }
1709
+ }]);
1710
+
1711
+ return Store;
1712
+ }();
1713
+
1714
+ /* harmony default export */ const src_store = (Store);
1715
+ ;// CONCATENATED MODULE: ../../packages/cascader/src/cascader.tsx
1716
+
1717
+
1718
+ /*
1719
+ * Tencent is pleased to support the open source community by making
1720
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1721
+ *
1722
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1723
+ *
1724
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1725
+ *
1726
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1727
+ *
1728
+ * ---------------------------------------------------
1729
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1730
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1731
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1732
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1733
+ *
1734
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1735
+ * the Software.
1736
+ *
1737
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1738
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1739
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1740
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1741
+ * IN THE SOFTWARE.
1742
+ */
1743
+
1744
+
1745
+
1746
+
1747
+
1748
+
1749
+
1750
+
1751
+
1752
+ /* harmony default export */ const cascader = ((0,external_vue_namespaceObject.defineComponent)({
1753
+ name: 'Cascader',
1754
+ directives: {
1755
+ clickoutside: external_directives_namespaceObject.clickoutside
1756
+ },
1757
+ components: {
1758
+ CascaderPanel: cascader_panel,
1759
+ BkPopover: external_popover_namespaceObject["default"]
1760
+ },
1761
+ props: {
1762
+ modelValue: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.oneOfType([(0,external_vue_types_namespaceObject.array)(), String, Number])),
1763
+ list: external_shared_namespaceObject.PropTypes.array.def([]),
1764
+ placeholder: external_shared_namespaceObject.PropTypes.string.def('请选择'),
1765
+ filterable: external_shared_namespaceObject.PropTypes.bool.def(false),
1766
+ multiple: external_shared_namespaceObject.PropTypes.bool.def(false),
1767
+ disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
1768
+ clearable: external_shared_namespaceObject.PropTypes.bool.def(true),
1769
+ trigger: external_shared_namespaceObject.PropTypes.string.def('click'),
1770
+ checkAnyLevel: external_shared_namespaceObject.PropTypes.bool.def(false),
1771
+ isRemote: external_shared_namespaceObject.PropTypes.bool.def(false),
1772
+ remoteMethod: external_shared_namespaceObject.PropTypes.func,
1773
+ showCompleteName: external_shared_namespaceObject.PropTypes.bool.def(true),
1774
+ idKey: external_shared_namespaceObject.PropTypes.string.def('id'),
1775
+ nameKey: external_shared_namespaceObject.PropTypes.string.def('name'),
1776
+ childrenKey: external_shared_namespaceObject.PropTypes.string.def('children'),
1777
+ separator: external_shared_namespaceObject.PropTypes.string.def('/'),
1778
+ limitOneLine: external_shared_namespaceObject.PropTypes.bool.def(false),
1779
+ extCls: external_shared_namespaceObject.PropTypes.string.def(''),
1780
+ scrollHeight: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.string]).def(216),
1781
+ scrollWidth: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.string]).def('auto')
1782
+ },
1783
+ emits: ['update:modelValue', 'change', 'clear', 'toggle'],
1784
+ setup: function setup(props, _ref) {
1785
+ var emit = _ref.emit;
1786
+ var separator = props.separator,
1787
+ multiple = props.multiple;
1788
+
1789
+ var _useHover = useHover(),
1790
+ isHover = _useHover.isHover,
1791
+ setHover = _useHover.setHover,
1792
+ cancelHover = _useHover.cancelHover;
1793
+
1794
+ var store = (0,external_vue_namespaceObject.ref)(new src_store(props));
1795
+ var panelShow = (0,external_vue_namespaceObject.ref)(false);
1796
+ var selectedText = (0,external_vue_namespaceObject.ref)('');
1797
+ var selectedTags = (0,external_vue_namespaceObject.ref)([]);
1798
+
1799
+ var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
1800
+ modelValue = _toRefs.modelValue;
1801
+
1802
+ var cascaderPanel = (0,external_vue_namespaceObject.ref)();
1803
+ var searchKey = (0,external_vue_namespaceObject.ref)(''); // 支持搜索时,搜索框绑定变量
1804
+
1805
+ var suggestions = (0,external_vue_namespaceObject.ref)([]); // 搜索功能打开时,面板给出的列表
1806
+
1807
+ var isFiltering = (0,external_vue_namespaceObject.ref)(false); // 是否正在搜索,过滤
1808
+
1809
+ var checkedValue = (0,external_vue_namespaceObject.computed)({
1810
+ get: function get() {
1811
+ return modelValue.value;
1812
+ },
1813
+ set: function set(value) {
1814
+ emit('update:modelValue', value);
1815
+ }
1816
+ });
1817
+ var popover = (0,external_vue_namespaceObject.ref)(null);
1818
+ /** 根据配置,获取输入框显示的text */
1819
+
1820
+ var getShowText = function getShowText(node) {
1821
+ return props.showCompleteName ? node.pathNames.join(separator) : node.pathNames[node.pathNames.length - 1];
1822
+ };
1823
+ /** 更新搜索框的值 */
1824
+
1825
+
1826
+ var updateSearchKey = function updateSearchKey() {
1827
+ searchKey.value = selectedText.value;
1828
+ };
1829
+ /** 更新选中 */
1830
+
1831
+
1832
+ var updateValue = function updateValue(val) {
1833
+ var _a;
1834
+ /** 根据配置更新显示内容 */
1835
+
1836
+
1837
+ if (multiple) {
1838
+ selectedTags.value = store.value.getCheckedNodes().map(function (node) {
1839
+ return {
1840
+ text: getShowText(node),
1841
+ key: node.id
1842
+ };
1843
+ });
1844
+ return;
1845
+ }
1846
+ /** 根据val的值,设置selectedText显示内容 */
1847
+
1848
+
1849
+ !props.checkAnyLevel && ((_a = popover === null || popover === void 0 ? void 0 : popover.value) === null || _a === void 0 ? void 0 : _a.hide()); // 非多选,选中后,关闭popover
1850
+
1851
+ if (val.length === 0) {
1852
+ selectedText.value = '';
1853
+ } else {
1854
+ var node = store.value.getNodeByValue(val);
1855
+ if (!node) return;
1856
+ selectedText.value = getShowText(node);
1857
+ }
1858
+
1859
+ updateSearchKey();
1860
+ };
1861
+ /** 清空所选内容,要stopPropagation防止触发下拉 */
1862
+
1863
+
1864
+ var handleClear = function handleClear(e) {
1865
+ e.stopPropagation();
1866
+ store.value.clearChecked();
1867
+ searchKey.value = '';
1868
+ updateValue([]);
1869
+ emit('update:modelValue', []);
1870
+ emit('clear', JSON.parse(JSON.stringify(props.modelValue)));
1871
+ };
1872
+
1873
+ var removeTag = function removeTag(value, index, e) {
1874
+ e.stopPropagation();
1875
+ var current = JSON.parse(JSON.stringify(value));
1876
+ var tag = current.splice(index, 1)[0];
1877
+ store.value.removeTag(tag);
1878
+ updateValue(current);
1879
+ emit('update:modelValue', store.value.getCheckedNodes().map(function (node) {
1880
+ return node.path;
1881
+ }));
1882
+ };
1883
+
1884
+ var modelValueChangeHandler = function modelValueChangeHandler(value, oldValue) {
1885
+ updateValue(value);
1886
+ /** 派发相关事件 */
1887
+
1888
+ emit('update:modelValue', value);
1889
+ oldValue !== undefined && emit('change', value); // oldValue = undefined代表初始化,init不派发change事件
1890
+ };
1891
+
1892
+ var listChangeHandler = function listChangeHandler() {
1893
+ store.value = new src_store(props);
1894
+ updateValue(props.modelValue);
1895
+ };
1896
+
1897
+ var popoverChangeEmitter = function popoverChangeEmitter(val) {
1898
+ emit('toggle', val.isShow);
1899
+ /** 面板收起,搜索状态关闭 */
1900
+
1901
+ if (!val.isShow) {
1902
+ isFiltering.value = false;
1903
+ }
1904
+ };
1905
+
1906
+ var searchInputHandler = (0,external_shared_namespaceObject.debounce)(200, function (e) {
1907
+ var target = e.target;
1908
+ searchKey.value = target.value;
1909
+
1910
+ if (searchKey.value === '') {
1911
+ isFiltering.value = false;
1912
+ return;
1913
+ }
1914
+
1915
+ isFiltering.value = true;
1916
+ var targetNodes = store.value.getFlattedNodes().filter(function (node) {
1917
+ if (props.checkAnyLevel) {
1918
+ return node.pathNames.join(props.separator).includes(searchKey.value);
1919
+ }
1920
+
1921
+ return node.isLeaf && node.pathNames.join(props.separator).includes(searchKey.value);
1922
+ });
1923
+ suggestions.value = targetNodes;
1924
+ !(popover === null || popover === void 0 ? void 0 : popover.value.isShow) && (popover === null || popover === void 0 ? void 0 : popover.value.show());
1925
+ });
1926
+ (0,external_vue_namespaceObject.watch)(function () {
1927
+ return props.modelValue;
1928
+ }, modelValueChangeHandler, {
1929
+ immediate: true
1930
+ });
1931
+ (0,external_vue_namespaceObject.watch)(function () {
1932
+ return props.list;
1933
+ }, listChangeHandler, {
1934
+ deep: true,
1935
+ immediate: true
1936
+ });
1937
+ return {
1938
+ store: store,
1939
+ updateValue: updateValue,
1940
+ panelShow: panelShow,
1941
+ selectedText: selectedText,
1942
+ checkedValue: checkedValue,
1943
+ handleClear: handleClear,
1944
+ isHover: isHover,
1945
+ setHover: setHover,
1946
+ popover: popover,
1947
+ cancelHover: cancelHover,
1948
+ selectedTags: selectedTags,
1949
+ removeTag: removeTag,
1950
+ cascaderPanel: cascaderPanel,
1951
+ popoverChangeEmitter: popoverChangeEmitter,
1952
+ searchKey: searchKey,
1953
+ suggestions: suggestions,
1954
+ isFiltering: isFiltering,
1955
+ searchInputHandler: searchInputHandler
1956
+ };
1957
+ },
1958
+ render: function render() {
1959
+ var _this = this;
1960
+
1961
+ var suffixIcon = function suffixIcon() {
1962
+ if (_this.clearable && _this.isHover) {
1963
+ return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
1964
+ "class": "bk-icon-clear-icon",
1965
+ "onClick": _this.handleClear
1966
+ }, null);
1967
+ }
1968
+
1969
+ return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleUp, {
1970
+ "class": "bk-icon-angle-up"
1971
+ }, null);
1972
+ };
1973
+
1974
+ var renderTags = function renderTags() {
1975
+ if (_this.limitOneLine) {
1976
+ return (0,external_vue_namespaceObject.createVNode)("span", null, [_this.selectedText]);
1977
+ }
1978
+
1979
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1980
+ "class": "cascader-tag-list"
1981
+ }, [_this.selectedTags.map(function (tag, index) {
1982
+ return (0,external_vue_namespaceObject.createVNode)("span", {
1983
+ "class": "cascader-tag-item"
1984
+ }, [(0,external_vue_namespaceObject.createVNode)("span", {
1985
+ "class": "cascader-tag-item-name"
1986
+ }, [tag.text]), (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Error, {
1987
+ "class": "bk-icon-clear-icon",
1988
+ "onClick": function onClick(e) {
1989
+ return _this.removeTag(_this.modelValue, index, e);
1990
+ }
1991
+ }, null)]);
1992
+ })]);
1993
+ };
1994
+
1995
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1996
+ "class": ['bk-cascader', 'bk-cascader-wrapper', this.extCls, {
1997
+ 'bk-is-show-panel': this.panelShow,
1998
+ 'is-unselected': this.modelValue.length === 0,
1999
+ 'is-hover': this.isHover,
2000
+ 'is-filterable': this.filterable
2001
+ }],
2002
+ "tabindex": "0",
2003
+ "data-placeholder": this.placeholder,
2004
+ "onMouseenter": this.setHover,
2005
+ "onMouseleave": this.cancelHover
2006
+ }, [suffixIcon(), (0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], {
2007
+ "placement": "bottom-start",
2008
+ "theme": "light bk-cascader-popover",
2009
+ "trigger": "click",
2010
+ "arrow": false,
2011
+ "class": "bk-cascader-popover-wrapper",
2012
+ "ref": "popover",
2013
+ "onAfterHidden": this.popoverChangeEmitter,
2014
+ "onAfterShow": this.popoverChangeEmitter,
2015
+ "boundary": "body"
2016
+ }, {
2017
+ "default": function _default() {
2018
+ return (0,external_vue_namespaceObject.createVNode)("div", {
2019
+ "class": "bk-cascader-name"
2020
+ }, [_this.multiple && _this.selectedTags.length > 0 && renderTags(), _this.filterable ? (0,external_vue_namespaceObject.createVNode)("input", {
2021
+ "class": "bk-cascader-search-input",
2022
+ "type": "text",
2023
+ "onInput": _this.searchInputHandler,
2024
+ "placeholder": _this.placeholder,
2025
+ "value": _this.searchKey
2026
+ }, null) : (0,external_vue_namespaceObject.createVNode)("span", null, [_this.selectedText])]);
2027
+ },
2028
+ content: function content() {
2029
+ return (0,external_vue_namespaceObject.createVNode)("div", {
2030
+ "class": "bk-cascader-popover"
2031
+ }, [(0,external_vue_namespaceObject.createVNode)(cascader_panel, {
2032
+ "store": _this.store,
2033
+ "ref": "cascaderPanel",
2034
+ "width": _this.scrollWidth,
2035
+ "height": _this.scrollHeight,
2036
+ "search-key": _this.searchKey,
2037
+ "separator": _this.separator,
2038
+ "is-filtering": _this.isFiltering,
2039
+ "suggestions": _this.suggestions,
2040
+ "modelValue": _this.checkedValue,
2041
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
2042
+ return _this.checkedValue = $event;
2043
+ }
2044
+ }, {
2045
+ "default": function _default(scope) {
2046
+ return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_namespaceObject.createVNode)("span", {
2047
+ "class": "bk-cascader-node-name"
2048
+ }, [scope.node.name]);
2049
+ }
2050
+ })]);
2051
+ }
2052
+ })]);
2053
+ }
2054
+ }));
2055
+ ;// CONCATENATED MODULE: ../../packages/cascader/src/index.ts
2056
+ /*
2057
+ * Tencent is pleased to support the open source community by making
2058
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2059
+ *
2060
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2061
+ *
2062
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2063
+ *
2064
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2065
+ *
2066
+ * ---------------------------------------------------
2067
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2068
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2069
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2070
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2071
+ *
2072
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2073
+ * the Software.
2074
+ *
2075
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2076
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2077
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2078
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2079
+ * IN THE SOFTWARE.
2080
+ */
2081
+
2082
+
2083
+
2084
+ var BkCascader = (0,external_shared_namespaceObject.withInstallProps)(cascader, {
2085
+ CascaderPanel: cascader_panel
2086
+ });
2087
+ /* harmony default export */ const src = (BkCascader);
2088
+
2089
+ })();
2090
+
2091
+ var __webpack_exports__BkCascader = __webpack_exports__.ib;
2092
+ var __webpack_exports__BkCascaderPanel = __webpack_exports__.Hf;
2093
+ var __webpack_exports__default = __webpack_exports__.ZP;
2094
+ export { __webpack_exports__BkCascader as BkCascader, __webpack_exports__BkCascaderPanel as BkCascaderPanel, __webpack_exports__default as default };