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

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 +32305 -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 +5 -0
  140. package/lib/directives/index.js +1381 -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,2740 @@
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__icon_85385c3e__ from "../icon";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__input_752b0149__ from "../input";
7
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
9
+ import * as __WEBPACK_EXTERNAL_MODULE__virtual_render_2d1a77c9__ from "../virtual-render";
10
+ import * as __WEBPACK_EXTERNAL_MODULE__tag_7d126a1d__ from "../tag";
11
+ /******/ var __webpack_modules__ = ({
12
+
13
+ /***/ 7162:
14
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
15
+
16
+ module.exports = __webpack_require__(5047);
17
+
18
+
19
+ /***/ }),
20
+
21
+ /***/ 5047:
22
+ /***/ ((module) => {
23
+
24
+ /**
25
+ * Copyright (c) 2014-present, Facebook, Inc.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */
30
+
31
+ var runtime = (function (exports) {
32
+ "use strict";
33
+
34
+ var Op = Object.prototype;
35
+ var hasOwn = Op.hasOwnProperty;
36
+ var undefined; // More compressible than void 0.
37
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
38
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
39
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
40
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
41
+
42
+ function define(obj, key, value) {
43
+ Object.defineProperty(obj, key, {
44
+ value: value,
45
+ enumerable: true,
46
+ configurable: true,
47
+ writable: true
48
+ });
49
+ return obj[key];
50
+ }
51
+ try {
52
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
53
+ define({}, "");
54
+ } catch (err) {
55
+ define = function(obj, key, value) {
56
+ return obj[key] = value;
57
+ };
58
+ }
59
+
60
+ function wrap(innerFn, outerFn, self, tryLocsList) {
61
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
62
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
63
+ var generator = Object.create(protoGenerator.prototype);
64
+ var context = new Context(tryLocsList || []);
65
+
66
+ // The ._invoke method unifies the implementations of the .next,
67
+ // .throw, and .return methods.
68
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
69
+
70
+ return generator;
71
+ }
72
+ exports.wrap = wrap;
73
+
74
+ // Try/catch helper to minimize deoptimizations. Returns a completion
75
+ // record like context.tryEntries[i].completion. This interface could
76
+ // have been (and was previously) designed to take a closure to be
77
+ // invoked without arguments, but in all the cases we care about we
78
+ // already have an existing method we want to call, so there's no need
79
+ // to create a new function object. We can even get away with assuming
80
+ // the method takes exactly one argument, since that happens to be true
81
+ // in every case, so we don't have to touch the arguments object. The
82
+ // only additional allocation required is the completion record, which
83
+ // has a stable shape and so hopefully should be cheap to allocate.
84
+ function tryCatch(fn, obj, arg) {
85
+ try {
86
+ return { type: "normal", arg: fn.call(obj, arg) };
87
+ } catch (err) {
88
+ return { type: "throw", arg: err };
89
+ }
90
+ }
91
+
92
+ var GenStateSuspendedStart = "suspendedStart";
93
+ var GenStateSuspendedYield = "suspendedYield";
94
+ var GenStateExecuting = "executing";
95
+ var GenStateCompleted = "completed";
96
+
97
+ // Returning this object from the innerFn has the same effect as
98
+ // breaking out of the dispatch switch statement.
99
+ var ContinueSentinel = {};
100
+
101
+ // Dummy constructor functions that we use as the .constructor and
102
+ // .constructor.prototype properties for functions that return Generator
103
+ // objects. For full spec compliance, you may wish to configure your
104
+ // minifier not to mangle the names of these two functions.
105
+ function Generator() {}
106
+ function GeneratorFunction() {}
107
+ function GeneratorFunctionPrototype() {}
108
+
109
+ // This is a polyfill for %IteratorPrototype% for environments that
110
+ // don't natively support it.
111
+ var IteratorPrototype = {};
112
+ define(IteratorPrototype, iteratorSymbol, function () {
113
+ return this;
114
+ });
115
+
116
+ var getProto = Object.getPrototypeOf;
117
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
118
+ if (NativeIteratorPrototype &&
119
+ NativeIteratorPrototype !== Op &&
120
+ hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
121
+ // This environment has a native %IteratorPrototype%; use it instead
122
+ // of the polyfill.
123
+ IteratorPrototype = NativeIteratorPrototype;
124
+ }
125
+
126
+ var Gp = GeneratorFunctionPrototype.prototype =
127
+ Generator.prototype = Object.create(IteratorPrototype);
128
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
129
+ define(Gp, "constructor", GeneratorFunctionPrototype);
130
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
131
+ GeneratorFunction.displayName = define(
132
+ GeneratorFunctionPrototype,
133
+ toStringTagSymbol,
134
+ "GeneratorFunction"
135
+ );
136
+
137
+ // Helper for defining the .next, .throw, and .return methods of the
138
+ // Iterator interface in terms of a single ._invoke method.
139
+ function defineIteratorMethods(prototype) {
140
+ ["next", "throw", "return"].forEach(function(method) {
141
+ define(prototype, method, function(arg) {
142
+ return this._invoke(method, arg);
143
+ });
144
+ });
145
+ }
146
+
147
+ exports.isGeneratorFunction = function(genFun) {
148
+ var ctor = typeof genFun === "function" && genFun.constructor;
149
+ return ctor
150
+ ? ctor === GeneratorFunction ||
151
+ // For the native GeneratorFunction constructor, the best we can
152
+ // do is to check its .name property.
153
+ (ctor.displayName || ctor.name) === "GeneratorFunction"
154
+ : false;
155
+ };
156
+
157
+ exports.mark = function(genFun) {
158
+ if (Object.setPrototypeOf) {
159
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
160
+ } else {
161
+ genFun.__proto__ = GeneratorFunctionPrototype;
162
+ define(genFun, toStringTagSymbol, "GeneratorFunction");
163
+ }
164
+ genFun.prototype = Object.create(Gp);
165
+ return genFun;
166
+ };
167
+
168
+ // Within the body of any async function, `await x` is transformed to
169
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
170
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
171
+ // meant to be awaited.
172
+ exports.awrap = function(arg) {
173
+ return { __await: arg };
174
+ };
175
+
176
+ function AsyncIterator(generator, PromiseImpl) {
177
+ function invoke(method, arg, resolve, reject) {
178
+ var record = tryCatch(generator[method], generator, arg);
179
+ if (record.type === "throw") {
180
+ reject(record.arg);
181
+ } else {
182
+ var result = record.arg;
183
+ var value = result.value;
184
+ if (value &&
185
+ typeof value === "object" &&
186
+ hasOwn.call(value, "__await")) {
187
+ return PromiseImpl.resolve(value.__await).then(function(value) {
188
+ invoke("next", value, resolve, reject);
189
+ }, function(err) {
190
+ invoke("throw", err, resolve, reject);
191
+ });
192
+ }
193
+
194
+ return PromiseImpl.resolve(value).then(function(unwrapped) {
195
+ // When a yielded Promise is resolved, its final value becomes
196
+ // the .value of the Promise<{value,done}> result for the
197
+ // current iteration.
198
+ result.value = unwrapped;
199
+ resolve(result);
200
+ }, function(error) {
201
+ // If a rejected Promise was yielded, throw the rejection back
202
+ // into the async generator function so it can be handled there.
203
+ return invoke("throw", error, resolve, reject);
204
+ });
205
+ }
206
+ }
207
+
208
+ var previousPromise;
209
+
210
+ function enqueue(method, arg) {
211
+ function callInvokeWithMethodAndArg() {
212
+ return new PromiseImpl(function(resolve, reject) {
213
+ invoke(method, arg, resolve, reject);
214
+ });
215
+ }
216
+
217
+ return previousPromise =
218
+ // If enqueue has been called before, then we want to wait until
219
+ // all previous Promises have been resolved before calling invoke,
220
+ // so that results are always delivered in the correct order. If
221
+ // enqueue has not been called before, then it is important to
222
+ // call invoke immediately, without waiting on a callback to fire,
223
+ // so that the async generator function has the opportunity to do
224
+ // any necessary setup in a predictable way. This predictability
225
+ // is why the Promise constructor synchronously invokes its
226
+ // executor callback, and why async functions synchronously
227
+ // execute code before the first await. Since we implement simple
228
+ // async functions in terms of async generators, it is especially
229
+ // important to get this right, even though it requires care.
230
+ previousPromise ? previousPromise.then(
231
+ callInvokeWithMethodAndArg,
232
+ // Avoid propagating failures to Promises returned by later
233
+ // invocations of the iterator.
234
+ callInvokeWithMethodAndArg
235
+ ) : callInvokeWithMethodAndArg();
236
+ }
237
+
238
+ // Define the unified helper method that is used to implement .next,
239
+ // .throw, and .return (see defineIteratorMethods).
240
+ this._invoke = enqueue;
241
+ }
242
+
243
+ defineIteratorMethods(AsyncIterator.prototype);
244
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
245
+ return this;
246
+ });
247
+ exports.AsyncIterator = AsyncIterator;
248
+
249
+ // Note that simple async functions are implemented on top of
250
+ // AsyncIterator objects; they just return a Promise for the value of
251
+ // the final result produced by the iterator.
252
+ exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
253
+ if (PromiseImpl === void 0) PromiseImpl = Promise;
254
+
255
+ var iter = new AsyncIterator(
256
+ wrap(innerFn, outerFn, self, tryLocsList),
257
+ PromiseImpl
258
+ );
259
+
260
+ return exports.isGeneratorFunction(outerFn)
261
+ ? iter // If outerFn is a generator, return the full iterator.
262
+ : iter.next().then(function(result) {
263
+ return result.done ? result.value : iter.next();
264
+ });
265
+ };
266
+
267
+ function makeInvokeMethod(innerFn, self, context) {
268
+ var state = GenStateSuspendedStart;
269
+
270
+ return function invoke(method, arg) {
271
+ if (state === GenStateExecuting) {
272
+ throw new Error("Generator is already running");
273
+ }
274
+
275
+ if (state === GenStateCompleted) {
276
+ if (method === "throw") {
277
+ throw arg;
278
+ }
279
+
280
+ // Be forgiving, per 25.3.3.3.3 of the spec:
281
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
282
+ return doneResult();
283
+ }
284
+
285
+ context.method = method;
286
+ context.arg = arg;
287
+
288
+ while (true) {
289
+ var delegate = context.delegate;
290
+ if (delegate) {
291
+ var delegateResult = maybeInvokeDelegate(delegate, context);
292
+ if (delegateResult) {
293
+ if (delegateResult === ContinueSentinel) continue;
294
+ return delegateResult;
295
+ }
296
+ }
297
+
298
+ if (context.method === "next") {
299
+ // Setting context._sent for legacy support of Babel's
300
+ // function.sent implementation.
301
+ context.sent = context._sent = context.arg;
302
+
303
+ } else if (context.method === "throw") {
304
+ if (state === GenStateSuspendedStart) {
305
+ state = GenStateCompleted;
306
+ throw context.arg;
307
+ }
308
+
309
+ context.dispatchException(context.arg);
310
+
311
+ } else if (context.method === "return") {
312
+ context.abrupt("return", context.arg);
313
+ }
314
+
315
+ state = GenStateExecuting;
316
+
317
+ var record = tryCatch(innerFn, self, context);
318
+ if (record.type === "normal") {
319
+ // If an exception is thrown from innerFn, we leave state ===
320
+ // GenStateExecuting and loop back for another invocation.
321
+ state = context.done
322
+ ? GenStateCompleted
323
+ : GenStateSuspendedYield;
324
+
325
+ if (record.arg === ContinueSentinel) {
326
+ continue;
327
+ }
328
+
329
+ return {
330
+ value: record.arg,
331
+ done: context.done
332
+ };
333
+
334
+ } else if (record.type === "throw") {
335
+ state = GenStateCompleted;
336
+ // Dispatch the exception by looping back around to the
337
+ // context.dispatchException(context.arg) call above.
338
+ context.method = "throw";
339
+ context.arg = record.arg;
340
+ }
341
+ }
342
+ };
343
+ }
344
+
345
+ // Call delegate.iterator[context.method](context.arg) and handle the
346
+ // result, either by returning a { value, done } result from the
347
+ // delegate iterator, or by modifying context.method and context.arg,
348
+ // setting context.delegate to null, and returning the ContinueSentinel.
349
+ function maybeInvokeDelegate(delegate, context) {
350
+ var method = delegate.iterator[context.method];
351
+ if (method === undefined) {
352
+ // A .throw or .return when the delegate iterator has no .throw
353
+ // method always terminates the yield* loop.
354
+ context.delegate = null;
355
+
356
+ if (context.method === "throw") {
357
+ // Note: ["return"] must be used for ES3 parsing compatibility.
358
+ if (delegate.iterator["return"]) {
359
+ // If the delegate iterator has a return method, give it a
360
+ // chance to clean up.
361
+ context.method = "return";
362
+ context.arg = undefined;
363
+ maybeInvokeDelegate(delegate, context);
364
+
365
+ if (context.method === "throw") {
366
+ // If maybeInvokeDelegate(context) changed context.method from
367
+ // "return" to "throw", let that override the TypeError below.
368
+ return ContinueSentinel;
369
+ }
370
+ }
371
+
372
+ context.method = "throw";
373
+ context.arg = new TypeError(
374
+ "The iterator does not provide a 'throw' method");
375
+ }
376
+
377
+ return ContinueSentinel;
378
+ }
379
+
380
+ var record = tryCatch(method, delegate.iterator, context.arg);
381
+
382
+ if (record.type === "throw") {
383
+ context.method = "throw";
384
+ context.arg = record.arg;
385
+ context.delegate = null;
386
+ return ContinueSentinel;
387
+ }
388
+
389
+ var info = record.arg;
390
+
391
+ if (! info) {
392
+ context.method = "throw";
393
+ context.arg = new TypeError("iterator result is not an object");
394
+ context.delegate = null;
395
+ return ContinueSentinel;
396
+ }
397
+
398
+ if (info.done) {
399
+ // Assign the result of the finished delegate to the temporary
400
+ // variable specified by delegate.resultName (see delegateYield).
401
+ context[delegate.resultName] = info.value;
402
+
403
+ // Resume execution at the desired location (see delegateYield).
404
+ context.next = delegate.nextLoc;
405
+
406
+ // If context.method was "throw" but the delegate handled the
407
+ // exception, let the outer generator proceed normally. If
408
+ // context.method was "next", forget context.arg since it has been
409
+ // "consumed" by the delegate iterator. If context.method was
410
+ // "return", allow the original .return call to continue in the
411
+ // outer generator.
412
+ if (context.method !== "return") {
413
+ context.method = "next";
414
+ context.arg = undefined;
415
+ }
416
+
417
+ } else {
418
+ // Re-yield the result returned by the delegate method.
419
+ return info;
420
+ }
421
+
422
+ // The delegate iterator is finished, so forget it and continue with
423
+ // the outer generator.
424
+ context.delegate = null;
425
+ return ContinueSentinel;
426
+ }
427
+
428
+ // Define Generator.prototype.{next,throw,return} in terms of the
429
+ // unified ._invoke helper method.
430
+ defineIteratorMethods(Gp);
431
+
432
+ define(Gp, toStringTagSymbol, "Generator");
433
+
434
+ // A Generator should always return itself as the iterator object when the
435
+ // @@iterator function is called on it. Some browsers' implementations of the
436
+ // iterator prototype chain incorrectly implement this, causing the Generator
437
+ // object to not be returned from this call. This ensures that doesn't happen.
438
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
439
+ define(Gp, iteratorSymbol, function() {
440
+ return this;
441
+ });
442
+
443
+ define(Gp, "toString", function() {
444
+ return "[object Generator]";
445
+ });
446
+
447
+ function pushTryEntry(locs) {
448
+ var entry = { tryLoc: locs[0] };
449
+
450
+ if (1 in locs) {
451
+ entry.catchLoc = locs[1];
452
+ }
453
+
454
+ if (2 in locs) {
455
+ entry.finallyLoc = locs[2];
456
+ entry.afterLoc = locs[3];
457
+ }
458
+
459
+ this.tryEntries.push(entry);
460
+ }
461
+
462
+ function resetTryEntry(entry) {
463
+ var record = entry.completion || {};
464
+ record.type = "normal";
465
+ delete record.arg;
466
+ entry.completion = record;
467
+ }
468
+
469
+ function Context(tryLocsList) {
470
+ // The root entry object (effectively a try statement without a catch
471
+ // or a finally block) gives us a place to store values thrown from
472
+ // locations where there is no enclosing try statement.
473
+ this.tryEntries = [{ tryLoc: "root" }];
474
+ tryLocsList.forEach(pushTryEntry, this);
475
+ this.reset(true);
476
+ }
477
+
478
+ exports.keys = function(object) {
479
+ var keys = [];
480
+ for (var key in object) {
481
+ keys.push(key);
482
+ }
483
+ keys.reverse();
484
+
485
+ // Rather than returning an object with a next method, we keep
486
+ // things simple and return the next function itself.
487
+ return function next() {
488
+ while (keys.length) {
489
+ var key = keys.pop();
490
+ if (key in object) {
491
+ next.value = key;
492
+ next.done = false;
493
+ return next;
494
+ }
495
+ }
496
+
497
+ // To avoid creating an additional object, we just hang the .value
498
+ // and .done properties off the next function object itself. This
499
+ // also ensures that the minifier will not anonymize the function.
500
+ next.done = true;
501
+ return next;
502
+ };
503
+ };
504
+
505
+ function values(iterable) {
506
+ if (iterable) {
507
+ var iteratorMethod = iterable[iteratorSymbol];
508
+ if (iteratorMethod) {
509
+ return iteratorMethod.call(iterable);
510
+ }
511
+
512
+ if (typeof iterable.next === "function") {
513
+ return iterable;
514
+ }
515
+
516
+ if (!isNaN(iterable.length)) {
517
+ var i = -1, next = function next() {
518
+ while (++i < iterable.length) {
519
+ if (hasOwn.call(iterable, i)) {
520
+ next.value = iterable[i];
521
+ next.done = false;
522
+ return next;
523
+ }
524
+ }
525
+
526
+ next.value = undefined;
527
+ next.done = true;
528
+
529
+ return next;
530
+ };
531
+
532
+ return next.next = next;
533
+ }
534
+ }
535
+
536
+ // Return an iterator with no values.
537
+ return { next: doneResult };
538
+ }
539
+ exports.values = values;
540
+
541
+ function doneResult() {
542
+ return { value: undefined, done: true };
543
+ }
544
+
545
+ Context.prototype = {
546
+ constructor: Context,
547
+
548
+ reset: function(skipTempReset) {
549
+ this.prev = 0;
550
+ this.next = 0;
551
+ // Resetting context._sent for legacy support of Babel's
552
+ // function.sent implementation.
553
+ this.sent = this._sent = undefined;
554
+ this.done = false;
555
+ this.delegate = null;
556
+
557
+ this.method = "next";
558
+ this.arg = undefined;
559
+
560
+ this.tryEntries.forEach(resetTryEntry);
561
+
562
+ if (!skipTempReset) {
563
+ for (var name in this) {
564
+ // Not sure about the optimal order of these conditions:
565
+ if (name.charAt(0) === "t" &&
566
+ hasOwn.call(this, name) &&
567
+ !isNaN(+name.slice(1))) {
568
+ this[name] = undefined;
569
+ }
570
+ }
571
+ }
572
+ },
573
+
574
+ stop: function() {
575
+ this.done = true;
576
+
577
+ var rootEntry = this.tryEntries[0];
578
+ var rootRecord = rootEntry.completion;
579
+ if (rootRecord.type === "throw") {
580
+ throw rootRecord.arg;
581
+ }
582
+
583
+ return this.rval;
584
+ },
585
+
586
+ dispatchException: function(exception) {
587
+ if (this.done) {
588
+ throw exception;
589
+ }
590
+
591
+ var context = this;
592
+ function handle(loc, caught) {
593
+ record.type = "throw";
594
+ record.arg = exception;
595
+ context.next = loc;
596
+
597
+ if (caught) {
598
+ // If the dispatched exception was caught by a catch block,
599
+ // then let that catch block handle the exception normally.
600
+ context.method = "next";
601
+ context.arg = undefined;
602
+ }
603
+
604
+ return !! caught;
605
+ }
606
+
607
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
608
+ var entry = this.tryEntries[i];
609
+ var record = entry.completion;
610
+
611
+ if (entry.tryLoc === "root") {
612
+ // Exception thrown outside of any try block that could handle
613
+ // it, so set the completion value of the entire function to
614
+ // throw the exception.
615
+ return handle("end");
616
+ }
617
+
618
+ if (entry.tryLoc <= this.prev) {
619
+ var hasCatch = hasOwn.call(entry, "catchLoc");
620
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
621
+
622
+ if (hasCatch && hasFinally) {
623
+ if (this.prev < entry.catchLoc) {
624
+ return handle(entry.catchLoc, true);
625
+ } else if (this.prev < entry.finallyLoc) {
626
+ return handle(entry.finallyLoc);
627
+ }
628
+
629
+ } else if (hasCatch) {
630
+ if (this.prev < entry.catchLoc) {
631
+ return handle(entry.catchLoc, true);
632
+ }
633
+
634
+ } else if (hasFinally) {
635
+ if (this.prev < entry.finallyLoc) {
636
+ return handle(entry.finallyLoc);
637
+ }
638
+
639
+ } else {
640
+ throw new Error("try statement without catch or finally");
641
+ }
642
+ }
643
+ }
644
+ },
645
+
646
+ abrupt: function(type, arg) {
647
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
648
+ var entry = this.tryEntries[i];
649
+ if (entry.tryLoc <= this.prev &&
650
+ hasOwn.call(entry, "finallyLoc") &&
651
+ this.prev < entry.finallyLoc) {
652
+ var finallyEntry = entry;
653
+ break;
654
+ }
655
+ }
656
+
657
+ if (finallyEntry &&
658
+ (type === "break" ||
659
+ type === "continue") &&
660
+ finallyEntry.tryLoc <= arg &&
661
+ arg <= finallyEntry.finallyLoc) {
662
+ // Ignore the finally entry if control is not jumping to a
663
+ // location outside the try/catch block.
664
+ finallyEntry = null;
665
+ }
666
+
667
+ var record = finallyEntry ? finallyEntry.completion : {};
668
+ record.type = type;
669
+ record.arg = arg;
670
+
671
+ if (finallyEntry) {
672
+ this.method = "next";
673
+ this.next = finallyEntry.finallyLoc;
674
+ return ContinueSentinel;
675
+ }
676
+
677
+ return this.complete(record);
678
+ },
679
+
680
+ complete: function(record, afterLoc) {
681
+ if (record.type === "throw") {
682
+ throw record.arg;
683
+ }
684
+
685
+ if (record.type === "break" ||
686
+ record.type === "continue") {
687
+ this.next = record.arg;
688
+ } else if (record.type === "return") {
689
+ this.rval = this.arg = record.arg;
690
+ this.method = "return";
691
+ this.next = "end";
692
+ } else if (record.type === "normal" && afterLoc) {
693
+ this.next = afterLoc;
694
+ }
695
+
696
+ return ContinueSentinel;
697
+ },
698
+
699
+ finish: function(finallyLoc) {
700
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
701
+ var entry = this.tryEntries[i];
702
+ if (entry.finallyLoc === finallyLoc) {
703
+ this.complete(entry.completion, entry.afterLoc);
704
+ resetTryEntry(entry);
705
+ return ContinueSentinel;
706
+ }
707
+ }
708
+ },
709
+
710
+ "catch": function(tryLoc) {
711
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
712
+ var entry = this.tryEntries[i];
713
+ if (entry.tryLoc === tryLoc) {
714
+ var record = entry.completion;
715
+ if (record.type === "throw") {
716
+ var thrown = record.arg;
717
+ resetTryEntry(entry);
718
+ }
719
+ return thrown;
720
+ }
721
+ }
722
+
723
+ // The context.catch method must only be called with a location
724
+ // argument that corresponds to a known catch block.
725
+ throw new Error("illegal catch attempt");
726
+ },
727
+
728
+ delegateYield: function(iterable, resultName, nextLoc) {
729
+ this.delegate = {
730
+ iterator: values(iterable),
731
+ resultName: resultName,
732
+ nextLoc: nextLoc
733
+ };
734
+
735
+ if (this.method === "next") {
736
+ // Deliberately forget the last sent value so that we don't
737
+ // accidentally pass it on to the delegate.
738
+ this.arg = undefined;
739
+ }
740
+
741
+ return ContinueSentinel;
742
+ }
743
+ };
744
+
745
+ // Regardless of whether this script is executing as a CommonJS module
746
+ // or not, return the runtime object so that we can declare the variable
747
+ // regeneratorRuntime in the outer scope, which allows this module to be
748
+ // injected easily by `bin/regenerator --include-runtime script.js`.
749
+ return exports;
750
+
751
+ }(
752
+ // If this script is executing as a CommonJS module, use module.exports
753
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
754
+ // object. Either way, the resulting object will be used to initialize
755
+ // the regeneratorRuntime variable at the top of this file.
756
+ true ? module.exports : 0
757
+ ));
758
+
759
+ try {
760
+ regeneratorRuntime = runtime;
761
+ } catch (accidentalStrictMode) {
762
+ // This module should not be running in strict mode, so the above
763
+ // assignment should always work unless something is misconfigured. Just
764
+ // in case runtime.js accidentally runs in strict mode, in modern engines
765
+ // we can explicitly access globalThis. In older engines we can escape
766
+ // strict mode using a global Function call. This could conceivably fail
767
+ // if a Content Security Policy forbids using Function, but in that case
768
+ // the proper solution is to fix the accidental strict mode problem. If
769
+ // you've misconfigured your bundler to force strict mode and applied a
770
+ // CSP to forbid Function, and you're not willing to fix either of those
771
+ // problems, please detail your unique predicament in a GitHub issue.
772
+ if (typeof globalThis === "object") {
773
+ globalThis.regeneratorRuntime = runtime;
774
+ } else {
775
+ Function("r", "regeneratorRuntime = r")(runtime);
776
+ }
777
+ }
778
+
779
+
780
+ /***/ })
781
+
782
+ /******/ });
783
+ /************************************************************************/
784
+ /******/ // The module cache
785
+ /******/ var __webpack_module_cache__ = {};
786
+ /******/
787
+ /******/ // The require function
788
+ /******/ function __webpack_require__(moduleId) {
789
+ /******/ // Check if module is in cache
790
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
791
+ /******/ if (cachedModule !== undefined) {
792
+ /******/ return cachedModule.exports;
793
+ /******/ }
794
+ /******/ // Create a new module (and put it into the cache)
795
+ /******/ var module = __webpack_module_cache__[moduleId] = {
796
+ /******/ // no module.id needed
797
+ /******/ // no module.loaded needed
798
+ /******/ exports: {}
799
+ /******/ };
800
+ /******/
801
+ /******/ // Execute the module function
802
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
803
+ /******/
804
+ /******/ // Return the exports of the module
805
+ /******/ return module.exports;
806
+ /******/ }
807
+ /******/
808
+ /************************************************************************/
809
+ /******/ /* webpack/runtime/compat get default export */
810
+ /******/ (() => {
811
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
812
+ /******/ __webpack_require__.n = (module) => {
813
+ /******/ var getter = module && module.__esModule ?
814
+ /******/ () => (module['default']) :
815
+ /******/ () => (module);
816
+ /******/ __webpack_require__.d(getter, { a: getter });
817
+ /******/ return getter;
818
+ /******/ };
819
+ /******/ })();
820
+ /******/
821
+ /******/ /* webpack/runtime/define property getters */
822
+ /******/ (() => {
823
+ /******/ // define getter functions for harmony exports
824
+ /******/ __webpack_require__.d = (exports, definition) => {
825
+ /******/ for(var key in definition) {
826
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
827
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
828
+ /******/ }
829
+ /******/ }
830
+ /******/ };
831
+ /******/ })();
832
+ /******/
833
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
834
+ /******/ (() => {
835
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
836
+ /******/ })();
837
+ /******/
838
+ /************************************************************************/
839
+ var __webpack_exports__ = {};
840
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
841
+ (() => {
842
+
843
+ // EXPORTS
844
+ __webpack_require__.d(__webpack_exports__, {
845
+ "T0": () => (/* reexport */ src_option),
846
+ "GE": () => (/* reexport */ optionGroup),
847
+ "i2": () => (/* binding */ BkSelect),
848
+ "ZP": () => (/* binding */ src)
849
+ });
850
+
851
+ ;// CONCATENATED MODULE: external "../shared"
852
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
853
+ var y = x => () => x
854
+ const external_shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["SizeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.SizeEnum, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.TagThemeType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["observerResize"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.observerResize, ["off"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.off, ["on"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.on, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
855
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
856
+ function _defineProperty(obj, key, value) {
857
+ if (key in obj) {
858
+ Object.defineProperty(obj, key, {
859
+ value: value,
860
+ enumerable: true,
861
+ configurable: true,
862
+ writable: true
863
+ });
864
+ } else {
865
+ obj[key] = value;
866
+ }
867
+
868
+ return obj;
869
+ }
870
+ ;// CONCATENATED MODULE: external "vue"
871
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
872
+ var external_vue_y = x => () => x
873
+ 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, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
874
+ ;// CONCATENATED MODULE: external "../icon"
875
+ var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
876
+ var external_icon_y = x => () => x
877
+ const external_icon_namespaceObject = external_icon_x({ ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleUp, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleUpFill, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Done, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Search });
878
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
879
+ var regenerator = __webpack_require__(7162);
880
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
881
+ ;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.js
882
+ /******************************************************************************
883
+ Copyright (c) Microsoft Corporation.
884
+
885
+ Permission to use, copy, modify, and/or distribute this software for any
886
+ purpose with or without fee is hereby granted.
887
+
888
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
889
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
890
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
891
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
892
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
893
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
894
+ PERFORMANCE OF THIS SOFTWARE.
895
+ ***************************************************************************** */
896
+ /* global Reflect, Promise */
897
+
898
+ var extendStatics = function(d, b) {
899
+ extendStatics = Object.setPrototypeOf ||
900
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
901
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
902
+ return extendStatics(d, b);
903
+ };
904
+
905
+ function __extends(d, b) {
906
+ if (typeof b !== "function" && b !== null)
907
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
908
+ extendStatics(d, b);
909
+ function __() { this.constructor = d; }
910
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
911
+ }
912
+
913
+ var __assign = function() {
914
+ __assign = Object.assign || function __assign(t) {
915
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
916
+ s = arguments[i];
917
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
918
+ }
919
+ return t;
920
+ }
921
+ return __assign.apply(this, arguments);
922
+ }
923
+
924
+ function __rest(s, e) {
925
+ var t = {};
926
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
927
+ t[p] = s[p];
928
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
929
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
930
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
931
+ t[p[i]] = s[p[i]];
932
+ }
933
+ return t;
934
+ }
935
+
936
+ function __decorate(decorators, target, key, desc) {
937
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
938
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
939
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
940
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
941
+ }
942
+
943
+ function __param(paramIndex, decorator) {
944
+ return function (target, key) { decorator(target, key, paramIndex); }
945
+ }
946
+
947
+ function __metadata(metadataKey, metadataValue) {
948
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
949
+ }
950
+
951
+ function __awaiter(thisArg, _arguments, P, generator) {
952
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
953
+ return new (P || (P = Promise))(function (resolve, reject) {
954
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
955
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
956
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
957
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
958
+ });
959
+ }
960
+
961
+ function __generator(thisArg, body) {
962
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
963
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
964
+ function verb(n) { return function (v) { return step([n, v]); }; }
965
+ function step(op) {
966
+ if (f) throw new TypeError("Generator is already executing.");
967
+ while (_) try {
968
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
969
+ if (y = 0, t) op = [op[0] & 2, t.value];
970
+ switch (op[0]) {
971
+ case 0: case 1: t = op; break;
972
+ case 4: _.label++; return { value: op[1], done: false };
973
+ case 5: _.label++; y = op[1]; op = [0]; continue;
974
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
975
+ default:
976
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
977
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
978
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
979
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
980
+ if (t[2]) _.ops.pop();
981
+ _.trys.pop(); continue;
982
+ }
983
+ op = body.call(thisArg, _);
984
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
985
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
986
+ }
987
+ }
988
+
989
+ var __createBinding = Object.create ? (function(o, m, k, k2) {
990
+ if (k2 === undefined) k2 = k;
991
+ var desc = Object.getOwnPropertyDescriptor(m, k);
992
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
993
+ desc = { enumerable: true, get: function() { return m[k]; } };
994
+ }
995
+ Object.defineProperty(o, k2, desc);
996
+ }) : (function(o, m, k, k2) {
997
+ if (k2 === undefined) k2 = k;
998
+ o[k2] = m[k];
999
+ });
1000
+
1001
+ function __exportStar(m, o) {
1002
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
1003
+ }
1004
+
1005
+ function __values(o) {
1006
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1007
+ if (m) return m.call(o);
1008
+ if (o && typeof o.length === "number") return {
1009
+ next: function () {
1010
+ if (o && i >= o.length) o = void 0;
1011
+ return { value: o && o[i++], done: !o };
1012
+ }
1013
+ };
1014
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1015
+ }
1016
+
1017
+ function __read(o, n) {
1018
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1019
+ if (!m) return o;
1020
+ var i = m.call(o), r, ar = [], e;
1021
+ try {
1022
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1023
+ }
1024
+ catch (error) { e = { error: error }; }
1025
+ finally {
1026
+ try {
1027
+ if (r && !r.done && (m = i["return"])) m.call(i);
1028
+ }
1029
+ finally { if (e) throw e.error; }
1030
+ }
1031
+ return ar;
1032
+ }
1033
+
1034
+ /** @deprecated */
1035
+ function __spread() {
1036
+ for (var ar = [], i = 0; i < arguments.length; i++)
1037
+ ar = ar.concat(__read(arguments[i]));
1038
+ return ar;
1039
+ }
1040
+
1041
+ /** @deprecated */
1042
+ function __spreadArrays() {
1043
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
1044
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
1045
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
1046
+ r[k] = a[j];
1047
+ return r;
1048
+ }
1049
+
1050
+ function __spreadArray(to, from, pack) {
1051
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1052
+ if (ar || !(i in from)) {
1053
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1054
+ ar[i] = from[i];
1055
+ }
1056
+ }
1057
+ return to.concat(ar || Array.prototype.slice.call(from));
1058
+ }
1059
+
1060
+ function __await(v) {
1061
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
1062
+ }
1063
+
1064
+ function __asyncGenerator(thisArg, _arguments, generator) {
1065
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1066
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
1067
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
1068
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
1069
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
1070
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
1071
+ function fulfill(value) { resume("next", value); }
1072
+ function reject(value) { resume("throw", value); }
1073
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
1074
+ }
1075
+
1076
+ function __asyncDelegator(o) {
1077
+ var i, p;
1078
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
1079
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
1080
+ }
1081
+
1082
+ function __asyncValues(o) {
1083
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1084
+ var m = o[Symbol.asyncIterator], i;
1085
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
1086
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
1087
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
1088
+ }
1089
+
1090
+ function __makeTemplateObject(cooked, raw) {
1091
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
1092
+ return cooked;
1093
+ };
1094
+
1095
+ var __setModuleDefault = Object.create ? (function(o, v) {
1096
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
1097
+ }) : function(o, v) {
1098
+ o["default"] = v;
1099
+ };
1100
+
1101
+ function __importStar(mod) {
1102
+ if (mod && mod.__esModule) return mod;
1103
+ var result = {};
1104
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1105
+ __setModuleDefault(result, mod);
1106
+ return result;
1107
+ }
1108
+
1109
+ function __importDefault(mod) {
1110
+ return (mod && mod.__esModule) ? mod : { default: mod };
1111
+ }
1112
+
1113
+ function __classPrivateFieldGet(receiver, state, kind, f) {
1114
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1115
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1116
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1117
+ }
1118
+
1119
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
1120
+ if (kind === "m") throw new TypeError("Private method is not writable");
1121
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
1122
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1123
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
1124
+ }
1125
+
1126
+ function __classPrivateFieldIn(state, receiver) {
1127
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
1128
+ return typeof state === "function" ? receiver === state : state.has(receiver);
1129
+ }
1130
+
1131
+ ;// CONCATENATED MODULE: ../../packages/select/src/common.ts
1132
+
1133
+
1134
+ /*
1135
+ * Tencent is pleased to support the open source community by making
1136
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1137
+ *
1138
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1139
+ *
1140
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1141
+ *
1142
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1143
+ *
1144
+ * ---------------------------------------------------
1145
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1146
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1147
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1148
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1149
+ *
1150
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1151
+ * the Software.
1152
+ *
1153
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1154
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1155
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1156
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1157
+ * IN THE SOFTWARE.
1158
+ */
1159
+
1160
+
1161
+
1162
+ var selectKey = Symbol('BkSelect');
1163
+ var optionGroupKey = Symbol('BkOptionGroup');
1164
+ function useHover() {
1165
+ var isHover = (0,external_vue_namespaceObject.ref)(false);
1166
+
1167
+ var setHover = function setHover() {
1168
+ isHover.value = true;
1169
+ };
1170
+
1171
+ var cancelHover = function cancelHover() {
1172
+ isHover.value = false;
1173
+ };
1174
+
1175
+ return {
1176
+ isHover: isHover,
1177
+ setHover: setHover,
1178
+ cancelHover: cancelHover
1179
+ };
1180
+ }
1181
+ function useRegistry(data) {
1182
+ // 注册item
1183
+ var register = function register(key, item) {
1184
+ if (!item) return;
1185
+
1186
+ if (data.value.has(key)) {
1187
+ console.warn("repeat ".concat(key), item);
1188
+ return;
1189
+ }
1190
+
1191
+ return data.value.set(key, item);
1192
+ }; // 删除item
1193
+
1194
+
1195
+ var unregister = function unregister(key) {
1196
+ data.value["delete"](key);
1197
+ };
1198
+
1199
+ return {
1200
+ register: register,
1201
+ unregister: unregister
1202
+ };
1203
+ }
1204
+ function useDebouncedRef(value) {
1205
+ var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
1206
+ var timeout;
1207
+ var innerValue = value;
1208
+ return (0,external_vue_namespaceObject.customRef)(function (track, trigger) {
1209
+ return {
1210
+ get: function get() {
1211
+ track();
1212
+ return innerValue;
1213
+ },
1214
+ set: function set(newValue) {
1215
+ clearTimeout(timeout);
1216
+
1217
+ if (newValue === undefined || newValue === '') {
1218
+ innerValue = newValue;
1219
+ trigger();
1220
+ } else {
1221
+ timeout = setTimeout(function () {
1222
+ innerValue = newValue;
1223
+ trigger();
1224
+ }, delay);
1225
+ }
1226
+ }
1227
+ };
1228
+ });
1229
+ }
1230
+ function usePopover(config, triggerRef) {
1231
+ var popoverMinWidth = config.popoverMinWidth;
1232
+ var observerIns = null;
1233
+ var popperWidth = (0,external_vue_namespaceObject.ref)('auto');
1234
+ var isPopoverShow = (0,external_vue_namespaceObject.ref)(false);
1235
+
1236
+ var togglePopover = function togglePopover() {
1237
+ isPopoverShow.value = !isPopoverShow.value;
1238
+ };
1239
+
1240
+ var hidePopover = function hidePopover() {
1241
+ isPopoverShow.value = false;
1242
+ };
1243
+
1244
+ var showPopover = function showPopover() {
1245
+ isPopoverShow.value = true;
1246
+ };
1247
+
1248
+ var triggerRefResize = function triggerRefResize() {
1249
+ var _a;
1250
+
1251
+ popperWidth.value = Math.max((_a = triggerRef.value) === null || _a === void 0 ? void 0 : _a.offsetWidth, popoverMinWidth);
1252
+ };
1253
+
1254
+ (0,external_vue_namespaceObject.onMounted)(function () {
1255
+ if (!triggerRef.value) return;
1256
+ observerIns = (0,external_shared_namespaceObject.observerResize)(triggerRef.value, triggerRefResize, 60, true);
1257
+ observerIns.start();
1258
+ });
1259
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
1260
+ observerIns === null || observerIns === void 0 ? void 0 : observerIns.stop();
1261
+ observerIns = null;
1262
+ });
1263
+ return {
1264
+ isPopoverShow: isPopoverShow,
1265
+ popperWidth: popperWidth,
1266
+ togglePopover: togglePopover,
1267
+ hidePopover: hidePopover,
1268
+ showPopover: showPopover
1269
+ };
1270
+ }
1271
+ function useRemoteSearch(method, callBack) {
1272
+ var _this = this;
1273
+
1274
+ var searchKey = useDebouncedRef('');
1275
+ var searchLoading = (0,external_vue_namespaceObject.ref)(false);
1276
+ (0,external_vue_namespaceObject.watch)(searchKey, function () {
1277
+ return __awaiter(_this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
1278
+ return regenerator_default().wrap(function _callee$(_context) {
1279
+ while (1) {
1280
+ switch (_context.prev = _context.next) {
1281
+ case 0:
1282
+ _context.prev = 0;
1283
+ searchLoading.value = true;
1284
+ _context.next = 4;
1285
+ return method(searchKey.value);
1286
+
1287
+ case 4:
1288
+ searchLoading.value = false;
1289
+ _context.next = 10;
1290
+ break;
1291
+
1292
+ case 7:
1293
+ _context.prev = 7;
1294
+ _context.t0 = _context["catch"](0);
1295
+ console.error(_context.t0);
1296
+
1297
+ case 10:
1298
+ _context.prev = 10;
1299
+ callBack === null || callBack === void 0 ? void 0 : callBack();
1300
+ return _context.finish(10);
1301
+
1302
+ case 13:
1303
+ case "end":
1304
+ return _context.stop();
1305
+ }
1306
+ }
1307
+ }, _callee, null, [[0, 7, 10, 13]]);
1308
+ }));
1309
+ });
1310
+ return {
1311
+ searchKey: searchKey,
1312
+ searchLoading: searchLoading
1313
+ };
1314
+ }
1315
+ function toLowerCase() {
1316
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1317
+ if (!value) return value;
1318
+ return String(value).trim().toLowerCase();
1319
+ }
1320
+ ;
1321
+ ;// CONCATENATED MODULE: ../../packages/select/src/option.tsx
1322
+
1323
+
1324
+
1325
+ /*
1326
+ * Tencent is pleased to support the open source community by making
1327
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1328
+ *
1329
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1330
+ *
1331
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1332
+ *
1333
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1334
+ *
1335
+ * ---------------------------------------------------
1336
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1337
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1338
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1339
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1340
+ *
1341
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1342
+ * the Software.
1343
+ *
1344
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1345
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1346
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1347
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1348
+ * IN THE SOFTWARE.
1349
+ */
1350
+
1351
+
1352
+
1353
+
1354
+ /* harmony default export */ const src_option = ((0,external_vue_namespaceObject.defineComponent)({
1355
+ name: 'Option',
1356
+ props: {
1357
+ value: external_shared_namespaceObject.PropTypes.any,
1358
+ label: external_shared_namespaceObject.PropTypes.string.def(''),
1359
+ disabled: external_shared_namespaceObject.PropTypes.bool.def(false)
1360
+ },
1361
+ setup: function setup(props) {
1362
+ var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
1363
+ proxy = _getCurrentInstance.proxy;
1364
+
1365
+ var states = (0,external_vue_namespaceObject.reactive)({
1366
+ visible: true
1367
+ });
1368
+
1369
+ var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
1370
+ disabled = _toRefs.disabled,
1371
+ value = _toRefs.value;
1372
+
1373
+ var select = (0,external_vue_namespaceObject.inject)(selectKey, null);
1374
+ var group = (0,external_vue_namespaceObject.inject)(optionGroupKey, null);
1375
+ var selected = (0,external_vue_namespaceObject.computed)(function () {
1376
+ var _a;
1377
+
1378
+ return (_a = select === null || select === void 0 ? void 0 : select.selected) === null || _a === void 0 ? void 0 : _a.some(function (item) {
1379
+ return item.value === value.value;
1380
+ });
1381
+ });
1382
+ var multiple = (0,external_vue_namespaceObject.computed)(function () {
1383
+ return select === null || select === void 0 ? void 0 : select.multiple;
1384
+ });
1385
+ var isHover = (0,external_vue_namespaceObject.computed)(function () {
1386
+ return (select === null || select === void 0 ? void 0 : select.activeOptionValue) === value.value;
1387
+ });
1388
+ var showSelectedIcon = (0,external_vue_namespaceObject.computed)(function () {
1389
+ return select === null || select === void 0 ? void 0 : select.showSelectedIcon;
1390
+ });
1391
+
1392
+ var handleOptionClick = function handleOptionClick() {
1393
+ if (disabled.value) return;
1394
+ select === null || select === void 0 ? void 0 : select.handleOptionSelected(proxy);
1395
+ };
1396
+
1397
+ var handleMouseEnter = function handleMouseEnter() {
1398
+ select.activeOptionValue = value.value;
1399
+ };
1400
+
1401
+ (0,external_vue_namespaceObject.onBeforeMount)(function () {
1402
+ select === null || select === void 0 ? void 0 : select.register(value.value, proxy);
1403
+ group === null || group === void 0 ? void 0 : group.register(value.value, proxy);
1404
+ });
1405
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
1406
+ select === null || select === void 0 ? void 0 : select.unregister(value.value);
1407
+ group === null || group === void 0 ? void 0 : group.unregister(value.value);
1408
+ });
1409
+ return Object.assign(Object.assign({}, (0,external_vue_namespaceObject.toRefs)(states)), {
1410
+ selected: selected,
1411
+ multiple: multiple,
1412
+ isHover: isHover,
1413
+ showSelectedIcon: showSelectedIcon,
1414
+ handleOptionClick: handleOptionClick,
1415
+ handleMouseEnter: handleMouseEnter
1416
+ });
1417
+ },
1418
+ render: function render() {
1419
+ var _a, _b, _c;
1420
+
1421
+ var selectItemClass = (0,external_shared_namespaceObject.classes)(_defineProperty({
1422
+ 'is-selected': this.selected,
1423
+ 'is-disabled': this.disabled,
1424
+ 'is-multiple': this.multiple,
1425
+ 'is-hover': this.isHover
1426
+ }, (0,external_shared_namespaceObject.resolveClassName)('select-option'), true));
1427
+ return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("li", {
1428
+ "class": selectItemClass,
1429
+ "onClick": this.handleOptionClick,
1430
+ "onMouseenter": this.handleMouseEnter
1431
+ }, [(_c = (_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_namespaceObject.createVNode)("span", {
1432
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-option-item'),
1433
+ "title": this.label
1434
+ }, [this.label]), this.multiple && this.selected && this.showSelectedIcon && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Done, {
1435
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-selected-icon'),
1436
+ "width": 22,
1437
+ "height": 22
1438
+ }, null)]), [[external_vue_namespaceObject.vShow, this.visible]]);
1439
+ }
1440
+ }));
1441
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1442
+ function _arrayLikeToArray(arr, len) {
1443
+ if (len == null || len > arr.length) len = arr.length;
1444
+
1445
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
1446
+ arr2[i] = arr[i];
1447
+ }
1448
+
1449
+ return arr2;
1450
+ }
1451
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1452
+
1453
+ function _arrayWithoutHoles(arr) {
1454
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1455
+ }
1456
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1457
+ function _iterableToArray(iter) {
1458
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1459
+ }
1460
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1461
+
1462
+ function _unsupportedIterableToArray(o, minLen) {
1463
+ if (!o) return;
1464
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1465
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1466
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1467
+ if (n === "Map" || n === "Set") return Array.from(o);
1468
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1469
+ }
1470
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1471
+ function _nonIterableSpread() {
1472
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1473
+ }
1474
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1475
+
1476
+
1477
+
1478
+
1479
+ function _toConsumableArray(arr) {
1480
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1481
+ }
1482
+ ;// CONCATENATED MODULE: ../../packages/select/src/optionGroup.tsx
1483
+
1484
+
1485
+
1486
+
1487
+ /*
1488
+ * Tencent is pleased to support the open source community by making
1489
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1490
+ *
1491
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1492
+ *
1493
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1494
+ *
1495
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1496
+ *
1497
+ * ---------------------------------------------------
1498
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1499
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1500
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1501
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1502
+ *
1503
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1504
+ * the Software.
1505
+ *
1506
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1507
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1508
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1509
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1510
+ * IN THE SOFTWARE.
1511
+ */
1512
+
1513
+
1514
+
1515
+
1516
+ /* harmony default export */ const optionGroup = ((0,external_vue_namespaceObject.defineComponent)({
1517
+ name: 'OptionGroup',
1518
+ props: {
1519
+ label: external_shared_namespaceObject.PropTypes.string.def(''),
1520
+ disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
1521
+ collapsible: external_shared_namespaceObject.PropTypes.bool.def(false),
1522
+ collapse: external_shared_namespaceObject.PropTypes.bool.def(false) // 是否折叠初始状态
1523
+
1524
+ },
1525
+ setup: function setup(props, _ref) {
1526
+ var emit = _ref.emit;
1527
+ var instance = (0,external_vue_namespaceObject.getCurrentInstance)();
1528
+ var proxy = instance.proxy;
1529
+ var select = (0,external_vue_namespaceObject.inject)(selectKey, null);
1530
+ var states = (0,external_vue_namespaceObject.reactive)({
1531
+ groupCollapse: props.collapse,
1532
+ visible: true
1533
+ });
1534
+ var optionsMap = (0,external_vue_namespaceObject.ref)(new Map());
1535
+
1536
+ var _useRegistry = useRegistry(optionsMap),
1537
+ register = _useRegistry.register,
1538
+ unregister = _useRegistry.unregister;
1539
+
1540
+ var groupLabel = (0,external_vue_namespaceObject.computed)(function () {
1541
+ return "".concat(props.label, " (").concat(_toConsumableArray(optionsMap.value.values()).filter(function (option) {
1542
+ return option.visible;
1543
+ }).length, ")");
1544
+ });
1545
+
1546
+ var handleToggleCollapse = function handleToggleCollapse() {
1547
+ if (!props.collapsible || props.disabled) return;
1548
+ states.groupCollapse = !states.groupCollapse;
1549
+ emit('update:collapse', states.groupCollapse);
1550
+ };
1551
+
1552
+ (0,external_vue_namespaceObject.provide)(optionGroupKey, (0,external_vue_namespaceObject.reactive)(Object.assign(Object.assign({}, (0,external_vue_namespaceObject.toRefs)(props)), {
1553
+ register: register,
1554
+ unregister: unregister,
1555
+ groupCollapse: (0,external_vue_namespaceObject.toRef)(states, 'groupCollapse')
1556
+ })));
1557
+ (0,external_vue_namespaceObject.onBeforeMount)(function () {
1558
+ select === null || select === void 0 ? void 0 : select.registerGroup(instance.uid, proxy);
1559
+ });
1560
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
1561
+ select === null || select === void 0 ? void 0 : select.unregisterGroup(instance.uid);
1562
+ });
1563
+ return Object.assign(Object.assign({}, (0,external_vue_namespaceObject.toRefs)(states)), {
1564
+ groupLabel: groupLabel,
1565
+ handleToggleCollapse: handleToggleCollapse
1566
+ });
1567
+ },
1568
+ render: function render() {
1569
+ var _classes, _classes2;
1570
+
1571
+ var _a, _b;
1572
+
1573
+ var groupClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, (0,external_shared_namespaceObject.resolveClassName)('option-group'), true), _defineProperty(_classes, "collapsible", this.collapsible), _defineProperty(_classes, "disabled", this.disabled), _classes));
1574
+ var groupLabelClass = (0,external_shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, (0,external_shared_namespaceObject.resolveClassName)('option-group-label'), true), _defineProperty(_classes2, "collapsible", this.collapsible), _classes2));
1575
+ var groupLabelIconClass = (0,external_shared_namespaceObject.classes)({
1576
+ 'default-group-label-icon': true,
1577
+ collapse: this.groupCollapse
1578
+ });
1579
+ return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
1580
+ "class": groupClass
1581
+ }, [(0,external_vue_namespaceObject.createVNode)("li", {
1582
+ "class": groupLabelClass,
1583
+ "onClick": this.handleToggleCollapse
1584
+ }, [this.$slots.label ? this.$slots.label() : (0,external_vue_namespaceObject.createVNode)("span", {
1585
+ "class": "default-group-label"
1586
+ }, [this.collapsible && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleUpFill, {
1587
+ "class": groupLabelIconClass
1588
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", {
1589
+ "class": "default-group-label-title"
1590
+ }, [this.groupLabel])])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
1591
+ "class": (0,external_shared_namespaceObject.resolveClassName)('option-group-content')
1592
+ }, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.visible]]);
1593
+ }
1594
+ }));
1595
+ ;// CONCATENATED MODULE: external "lodash"
1596
+ var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1597
+ var external_lodash_y = x => () => x
1598
+ const external_lodash_namespaceObject = external_lodash_x({ ["merge"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.merge });
1599
+ ;// CONCATENATED MODULE: external "../directives"
1600
+ var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1601
+ var external_directives_y = x => () => x
1602
+ const external_directives_namespaceObject = external_directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.clickoutside });
1603
+ ;// CONCATENATED MODULE: external "../input"
1604
+ var external_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1605
+ var external_input_y = x => () => x
1606
+ const external_input_namespaceObject = external_input_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__input_752b0149__["default"] });
1607
+ ;// CONCATENATED MODULE: external "../loading"
1608
+ var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1609
+ var external_loading_y = x => () => x
1610
+ const external_loading_namespaceObject = external_loading_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__["default"] });
1611
+ ;// CONCATENATED MODULE: external "../popover"
1612
+ var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1613
+ var external_popover_y = x => () => x
1614
+ const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
1615
+ ;// CONCATENATED MODULE: external "../virtual-render"
1616
+ var external_virtual_render_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1617
+ var external_virtual_render_y = x => () => x
1618
+ const external_virtual_render_namespaceObject = external_virtual_render_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__virtual_render_2d1a77c9__["default"] });
1619
+ ;// CONCATENATED MODULE: external "../tag"
1620
+ var external_tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1621
+ var external_tag_y = x => () => x
1622
+ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__tag_7d126a1d__["default"] });
1623
+ ;// CONCATENATED MODULE: ../../packages/select/src/selectTagInput.tsx
1624
+
1625
+
1626
+
1627
+
1628
+ /*
1629
+ * Tencent is pleased to support the open source community by making
1630
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1631
+ *
1632
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1633
+ *
1634
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1635
+ *
1636
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1637
+ *
1638
+ * ---------------------------------------------------
1639
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1640
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1641
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1642
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1643
+ *
1644
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1645
+ * the Software.
1646
+ *
1647
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1648
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1649
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1650
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1651
+ * IN THE SOFTWARE.
1652
+ */
1653
+
1654
+
1655
+
1656
+
1657
+ /* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
1658
+ name: 'SelectTagInput',
1659
+ props: {
1660
+ selected: {
1661
+ type: Array,
1662
+ "default": function _default() {
1663
+ return [];
1664
+ }
1665
+ },
1666
+ tagTheme: (0,external_shared_namespaceObject.TagThemeType)(),
1667
+ placeholder: external_shared_namespaceObject.PropTypes.string.def(''),
1668
+ filterable: external_shared_namespaceObject.PropTypes.bool.def(false),
1669
+ allowCreate: external_shared_namespaceObject.PropTypes.bool.def(false),
1670
+ disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
1671
+ modelValue: external_shared_namespaceObject.PropTypes.any,
1672
+ collapseTags: external_shared_namespaceObject.PropTypes.bool.def(false)
1673
+ },
1674
+ emits: ['update:modelValue', 'remove', 'enter'],
1675
+ setup: function setup(props, _ref) {
1676
+ var emit = _ref.emit;
1677
+
1678
+ var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
1679
+ proxy = _getCurrentInstance.proxy;
1680
+
1681
+ var select = (0,external_vue_namespaceObject.inject)(selectKey, null);
1682
+
1683
+ var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
1684
+ modelValue = _toRefs.modelValue,
1685
+ collapseTags = _toRefs.collapseTags,
1686
+ selected = _toRefs.selected;
1687
+
1688
+ var value = (0,external_vue_namespaceObject.ref)(modelValue.value);
1689
+ var inputRef = (0,external_vue_namespaceObject.ref)();
1690
+ var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null);
1691
+ (0,external_vue_namespaceObject.watch)(modelValue, function () {
1692
+ value.value = modelValue.value;
1693
+ });
1694
+ (0,external_vue_namespaceObject.watch)([selected, collapseTags], function () {
1695
+ calcOverflow();
1696
+ }, {
1697
+ flush: 'post'
1698
+ });
1699
+
1700
+ var handleRemoveTag = function handleRemoveTag(val) {
1701
+ emit('remove', val);
1702
+ };
1703
+
1704
+ var focus = function focus() {
1705
+ var _a;
1706
+
1707
+ (_a = inputRef.value) === null || _a === void 0 ? void 0 : _a.focus();
1708
+ };
1709
+
1710
+ var handleInput = function handleInput(e) {
1711
+ emit('update:modelValue', e.target.value);
1712
+ };
1713
+
1714
+ var handleKeydown = function handleKeydown(e) {
1715
+ switch (e.code) {
1716
+ case 'Enter':
1717
+ {
1718
+ emit('enter', e.target.value, e);
1719
+ break;
1720
+ }
1721
+ }
1722
+ };
1723
+
1724
+ var getTagDOM = function getTagDOM(index) {
1725
+ var tags = _toConsumableArray(proxy.$el.querySelectorAll('.bk-tag'));
1726
+
1727
+ return typeof index === 'number' ? tags[index] : tags;
1728
+ }; // 计算出现换行的索引
1729
+
1730
+
1731
+ var calcOverflow = function calcOverflow() {
1732
+ if (!collapseTags.value) return;
1733
+ overflowTagIndex.value = null;
1734
+ setTimeout(function () {
1735
+ var tags = getTagDOM();
1736
+ var tagIndexInSecondRow = tags.findIndex(function (currentTag, index) {
1737
+ if (!index) {
1738
+ return false;
1739
+ }
1740
+
1741
+ var previousTag = tags[index - 1];
1742
+ return previousTag.offsetTop !== currentTag.offsetTop;
1743
+ });
1744
+ overflowTagIndex.value = tagIndexInSecondRow > 0 ? tagIndexInSecondRow : null;
1745
+ });
1746
+ };
1747
+
1748
+ return {
1749
+ select: select,
1750
+ overflowTagIndex: overflowTagIndex,
1751
+ value: value,
1752
+ inputRef: inputRef,
1753
+ handleRemoveTag: handleRemoveTag,
1754
+ focus: focus,
1755
+ handleInput: handleInput,
1756
+ handleKeydown: handleKeydown
1757
+ };
1758
+ },
1759
+ render: function render() {
1760
+ var _classes,
1761
+ _this = this;
1762
+
1763
+ var _a, _b, _c, _d, _e, _f, _g;
1764
+
1765
+ var selectTagClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, (0,external_shared_namespaceObject.resolveClassName)('select-tag'), true), _defineProperty(_classes, (0,external_shared_namespaceObject.resolveClassName)('select-tag--default'), true), _defineProperty(_classes, 'is-disabled', this.disabled), _defineProperty(_classes, 'collapse-tag', this.collapseTags), _classes));
1766
+ var tagWrapperClass = (0,external_shared_namespaceObject.classes)(_defineProperty({}, (0,external_shared_namespaceObject.resolveClassName)('select-tag-wrapper'), true));
1767
+ var inputStyle = {
1768
+ display: this.selected.length && !this.filterable ? 'none' : ''
1769
+ };
1770
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1771
+ "class": selectTagClass
1772
+ }, [(_b = (_a = this.$slots) === null || _a === void 0 ? void 0 : _a.prefix) === null || _b === void 0 ? void 0 : _b.call(_a), (0,external_vue_namespaceObject.createVNode)("span", {
1773
+ "class": tagWrapperClass
1774
+ }, [(_e = (_d = (_c = this.$slots)["default"]) === null || _d === void 0 ? void 0 : _d.call(_c)) !== null && _e !== void 0 ? _e : this.selected.map(function (item, index) {
1775
+ var _a;
1776
+
1777
+ return (0,external_vue_namespaceObject.createVNode)(external_tag_namespaceObject["default"], {
1778
+ "closable": true,
1779
+ "theme": _this.tagTheme,
1780
+ "style": {
1781
+ display: _this.collapseTags && _this.overflowTagIndex && index >= _this.overflowTagIndex ? 'none' : ''
1782
+ },
1783
+ "onClose": function onClose() {
1784
+ return _this.handleRemoveTag(item.value);
1785
+ }
1786
+ }, {
1787
+ "default": function _default() {
1788
+ return [(_a = _this.select) === null || _a === void 0 ? void 0 : _a.handleGetLabelByValue(item.value)];
1789
+ }
1790
+ });
1791
+ }), !!this.overflowTagIndex && this.collapseTags && (0,external_vue_namespaceObject.createVNode)(external_tag_namespaceObject["default"], {
1792
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-overflow-tag')
1793
+ }, {
1794
+ "default": function _default() {
1795
+ return [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selected.length - _this.overflowTagIndex];
1796
+ }
1797
+ })]), (0,external_vue_namespaceObject.createVNode)("input", {
1798
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-tag-input'),
1799
+ "ref": "inputRef",
1800
+ "type": "text",
1801
+ "style": inputStyle,
1802
+ "placeholder": !this.selected.length ? this.placeholder : '',
1803
+ "readonly": !this.filterable,
1804
+ "disabled": this.disabled,
1805
+ "value": !this.filterable ? '' : this.value,
1806
+ "onInput": this.handleInput,
1807
+ "onKeydown": this.handleKeydown
1808
+ }, null), (_g = (_f = this.$slots) === null || _f === void 0 ? void 0 : _f.suffix) === null || _g === void 0 ? void 0 : _g.call(_f)]);
1809
+ }
1810
+ }));
1811
+ ;// CONCATENATED MODULE: ../../packages/select/src/select.tsx
1812
+
1813
+
1814
+
1815
+
1816
+ /*
1817
+ * Tencent is pleased to support the open source community by making
1818
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1819
+ *
1820
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1821
+ *
1822
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1823
+ *
1824
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1825
+ *
1826
+ * ---------------------------------------------------
1827
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1828
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1829
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1830
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1831
+ *
1832
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1833
+ * the Software.
1834
+ *
1835
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1836
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1837
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1838
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1839
+ * IN THE SOFTWARE.
1840
+ */
1841
+
1842
+
1843
+
1844
+
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+ /* harmony default export */ const src_select = ((0,external_vue_namespaceObject.defineComponent)({
1854
+ name: 'Select',
1855
+ directives: {
1856
+ clickoutside: external_directives_namespaceObject.clickoutside
1857
+ },
1858
+ props: {
1859
+ modelValue: external_shared_namespaceObject.PropTypes.any,
1860
+ multiple: external_shared_namespaceObject.PropTypes.bool.def(false),
1861
+ disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
1862
+ size: external_shared_namespaceObject.PropTypes.size().def(external_shared_namespaceObject.SizeEnum.DEFAULT),
1863
+ clearable: external_shared_namespaceObject.PropTypes.bool.def(true),
1864
+ loading: external_shared_namespaceObject.PropTypes.bool.def(false),
1865
+ filterable: external_shared_namespaceObject.PropTypes.bool.def(false),
1866
+ remoteMethod: external_shared_namespaceObject.PropTypes.func,
1867
+ scrollHeight: external_shared_namespaceObject.PropTypes.number.def(200),
1868
+ showSelectAll: external_shared_namespaceObject.PropTypes.bool.def(false),
1869
+ popoverMinWidth: external_shared_namespaceObject.PropTypes.number.def(0),
1870
+ showOnInit: external_shared_namespaceObject.PropTypes.bool.def(false),
1871
+ multipleMode: external_shared_namespaceObject.PropTypes.oneOf(['default', 'tag']).def('default'),
1872
+ tagTheme: (0,external_shared_namespaceObject.TagThemeType)(),
1873
+ behavior: (0,external_shared_namespaceObject.InputBehaviorType)(),
1874
+ collapseTags: external_shared_namespaceObject.PropTypes.bool.def(false),
1875
+ autoHeight: external_shared_namespaceObject.PropTypes.bool.def(true),
1876
+ noDataText: external_shared_namespaceObject.PropTypes.string.def('无数据'),
1877
+ noMatchText: external_shared_namespaceObject.PropTypes.string.def('无匹配数据'),
1878
+ loadingText: external_shared_namespaceObject.PropTypes.string.def('加载中...'),
1879
+ placeholder: external_shared_namespaceObject.PropTypes.string.def('请选择'),
1880
+ searchPlaceholder: external_shared_namespaceObject.PropTypes.string.def('请输入关键字'),
1881
+ selectAllText: external_shared_namespaceObject.PropTypes.string.def('全部'),
1882
+ scrollLoading: external_shared_namespaceObject.PropTypes.bool.def(false),
1883
+ allowCreate: external_shared_namespaceObject.PropTypes.bool.def(false),
1884
+ popoverOptions: external_shared_namespaceObject.PropTypes.object.def({}),
1885
+ customContent: external_shared_namespaceObject.PropTypes.bool.def(false),
1886
+ list: external_shared_namespaceObject.PropTypes.array.def([]),
1887
+ idKey: external_shared_namespaceObject.PropTypes.string.def('value'),
1888
+ displayKey: external_shared_namespaceObject.PropTypes.string.def('label'),
1889
+ withValidate: external_shared_namespaceObject.PropTypes.bool.def(true),
1890
+ showSelectedIcon: external_shared_namespaceObject.PropTypes.bool.def(true),
1891
+ inputSearch: external_shared_namespaceObject.PropTypes.bool.def(true),
1892
+ enableVirtualRender: external_shared_namespaceObject.PropTypes.bool.def(false),
1893
+ allowEmptyValues: external_shared_namespaceObject.PropTypes.array.def([]),
1894
+ autoFocus: external_shared_namespaceObject.PropTypes.bool.def(false),
1895
+ keepSearchValue: external_shared_namespaceObject.PropTypes.bool.def(false) // 隐藏popover时是否保留搜索内容
1896
+
1897
+ },
1898
+ emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur'],
1899
+ setup: function setup(props, _ref) {
1900
+ var emit = _ref.emit;
1901
+
1902
+ var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
1903
+ modelValue = _toRefs.modelValue,
1904
+ disabled = _toRefs.disabled,
1905
+ filterable = _toRefs.filterable,
1906
+ multiple = _toRefs.multiple,
1907
+ remoteMethod = _toRefs.remoteMethod,
1908
+ loading = _toRefs.loading,
1909
+ loadingText = _toRefs.loadingText,
1910
+ noDataText = _toRefs.noDataText,
1911
+ noMatchText = _toRefs.noMatchText,
1912
+ popoverMinWidth = _toRefs.popoverMinWidth,
1913
+ showOnInit = _toRefs.showOnInit,
1914
+ multipleMode = _toRefs.multipleMode,
1915
+ allowCreate = _toRefs.allowCreate,
1916
+ customContent = _toRefs.customContent,
1917
+ showSelectedIcon = _toRefs.showSelectedIcon,
1918
+ inputSearch = _toRefs.inputSearch,
1919
+ enableVirtualRender = _toRefs.enableVirtualRender,
1920
+ showSelectAll = _toRefs.showSelectAll,
1921
+ scrollHeight = _toRefs.scrollHeight,
1922
+ list = _toRefs.list,
1923
+ displayKey = _toRefs.displayKey,
1924
+ collapseTags = _toRefs.collapseTags,
1925
+ autoHeight = _toRefs.autoHeight,
1926
+ popoverOptions = _toRefs.popoverOptions,
1927
+ allowEmptyValues = _toRefs.allowEmptyValues,
1928
+ autoFocus = _toRefs.autoFocus,
1929
+ keepSearchValue = _toRefs.keepSearchValue;
1930
+
1931
+ var formItem = (0,external_shared_namespaceObject.useFormItem)();
1932
+ var inputRef = (0,external_vue_namespaceObject.ref)();
1933
+ var triggerRef = (0,external_vue_namespaceObject.ref)();
1934
+ var contentRef = (0,external_vue_namespaceObject.ref)();
1935
+ var searchRef = (0,external_vue_namespaceObject.ref)();
1936
+ var selectTagInputRef = (0,external_vue_namespaceObject.ref)();
1937
+ var virtualRenderRef = (0,external_vue_namespaceObject.ref)();
1938
+ var popoverRef = (0,external_vue_namespaceObject.ref)();
1939
+ var optionsMap = (0,external_vue_namespaceObject.ref)(new Map());
1940
+ var options = (0,external_vue_namespaceObject.computed)(function () {
1941
+ return _toConsumableArray(optionsMap.value.values());
1942
+ });
1943
+ var groupsMap = (0,external_vue_namespaceObject.ref)(new Map());
1944
+ var selected = (0,external_vue_namespaceObject.ref)([]);
1945
+ var cacheSelectedMap = (0,external_vue_namespaceObject.computed)(function () {
1946
+ return selected.value.reduce(function (pre, item) {
1947
+ pre[item.value] = item.label;
1948
+ return pre;
1949
+ }, {});
1950
+ });
1951
+ var activeOptionValue = (0,external_vue_namespaceObject.ref)(); // 当前悬浮的option
1952
+
1953
+ (0,external_vue_namespaceObject.watch)(modelValue, function () {
1954
+ var _a;
1955
+
1956
+ handleSetSelectedData();
1957
+
1958
+ if (props.withValidate) {
1959
+ (_a = formItem === null || formItem === void 0 ? void 0 : formItem.validate) === null || _a === void 0 ? void 0 : _a.call(formItem, 'change');
1960
+ }
1961
+ }, {
1962
+ deep: true
1963
+ });
1964
+ (0,external_vue_namespaceObject.watch)(selected, function () {
1965
+ var _a;
1966
+
1967
+ (_a = popoverRef.value) === null || _a === void 0 ? void 0 : _a.updatePopover(null, popoverConfig.value);
1968
+ }); // list模式下搜索后的值
1969
+
1970
+ var filterList = (0,external_vue_namespaceObject.computed)(function () {
1971
+ return isRemoteSearch.value ? list.value : list.value.filter(function (item) {
1972
+ var _a;
1973
+
1974
+ return (_a = toLowerCase(String(item[displayKey.value]))) === null || _a === void 0 ? void 0 : _a.includes(toLowerCase(searchKey.value));
1975
+ });
1976
+ }); // select组件是否禁用
1977
+
1978
+ var isDisabled = (0,external_vue_namespaceObject.computed)(function () {
1979
+ return disabled.value || loading.value;
1980
+ }); // modelValue对应的label
1981
+
1982
+ var selectedLabel = (0,external_vue_namespaceObject.computed)(function () {
1983
+ return selected.value.map(function (item) {
1984
+ var _a, _b;
1985
+
1986
+ return ((_b = (_a = optionsMap.value) === null || _a === void 0 ? void 0 : _a.get(item.value)) === null || _b === void 0 ? void 0 : _b.label) || item.label;
1987
+ });
1988
+ }); // 是否全选(todo: 优化)
1989
+
1990
+ var isAllSelected = (0,external_vue_namespaceObject.computed)(function () {
1991
+ var normalSelectedValues = options.value.reduce(function (pre, option) {
1992
+ if (!option.disabled) {
1993
+ pre.push(option.value);
1994
+ }
1995
+
1996
+ return pre;
1997
+ }, []);
1998
+ return normalSelectedValues.length <= selected.value.length && normalSelectedValues.every(function (val) {
1999
+ return selected.value.some(function (item) {
2000
+ return item.value === val;
2001
+ });
2002
+ });
2003
+ }); // 是否含有分组
2004
+
2005
+ var isGroup = (0,external_vue_namespaceObject.computed)(function () {
2006
+ return !!groupsMap.value.size;
2007
+ }); // options是否为空
2008
+
2009
+ var isOptionsEmpty = (0,external_vue_namespaceObject.computed)(function () {
2010
+ return !options.value.length;
2011
+ }); // 是否搜索为空
2012
+
2013
+ var isSearchEmpty = (0,external_vue_namespaceObject.computed)(function () {
2014
+ return options.value.length && options.value.every(function (option) {
2015
+ return !option.visible;
2016
+ });
2017
+ }); // 是否远程搜索
2018
+
2019
+ var isRemoteSearch = (0,external_vue_namespaceObject.computed)(function () {
2020
+ return filterable.value && typeof remoteMethod.value === 'function';
2021
+ }); // 是否显示select下拉内容
2022
+
2023
+ var isShowSelectContent = (0,external_vue_namespaceObject.computed)(function () {
2024
+ return !(searchLoading.value || isOptionsEmpty.value || isSearchEmpty.value) || customContent.value;
2025
+ }); // 是否显示全选
2026
+
2027
+ var isShowSelectAll = (0,external_vue_namespaceObject.computed)(function () {
2028
+ return multiple.value && showSelectAll.value && (!searchKey.value || !filterable.value);
2029
+ }); // 虚拟滚动高度 12 上下边距,32 显示全选时的高度
2030
+
2031
+ var virtualHeight = (0,external_vue_namespaceObject.computed)(function () {
2032
+ return scrollHeight.value - 12 - (isShowSelectAll.value ? 32 : 0);
2033
+ }); // 当前空状态时显示文案
2034
+
2035
+ var curContentText = (0,external_vue_namespaceObject.computed)(function () {
2036
+ if (searchLoading.value) {
2037
+ return loadingText.value;
2038
+ }
2039
+
2040
+ if (isOptionsEmpty.value) {
2041
+ return noDataText.value;
2042
+ }
2043
+
2044
+ if (isSearchEmpty.value) {
2045
+ return noMatchText.value;
2046
+ }
2047
+
2048
+ return '';
2049
+ }); // 是否合并tag以数字形式展示
2050
+
2051
+ var isCollapseTags = (0,external_vue_namespaceObject.computed)(function () {
2052
+ return autoHeight.value ? collapseTags.value && !isPopoverShow.value : collapseTags.value;
2053
+ });
2054
+ var popoverConfig = (0,external_vue_namespaceObject.computed)(function () {
2055
+ return (0,external_lodash_namespaceObject.merge)({
2056
+ theme: 'light bk-select-popover',
2057
+ trigger: 'manual',
2058
+ width: popperWidth.value,
2059
+ arrow: false,
2060
+ placement: 'bottom-start',
2061
+ isShow: isPopoverShow.value,
2062
+ reference: selectTagInputRef.value,
2063
+ offset: 6,
2064
+ popoverDelay: 0
2065
+ }, popoverOptions.value);
2066
+ });
2067
+
2068
+ var _useRegistry = useRegistry(optionsMap),
2069
+ register = _useRegistry.register,
2070
+ unregister = _useRegistry.unregister;
2071
+
2072
+ var _useRegistry2 = useRegistry(groupsMap),
2073
+ registerGroup = _useRegistry2.register,
2074
+ unregisterGroup = _useRegistry2.unregister;
2075
+
2076
+ var _useHover = useHover(),
2077
+ isHover = _useHover.isHover,
2078
+ setHover = _useHover.setHover,
2079
+ cancelHover = _useHover.cancelHover;
2080
+
2081
+ var isFocus = (0,external_vue_namespaceObject.ref)(false);
2082
+
2083
+ var handleFocus = function handleFocus() {
2084
+ if (isFocus.value) return;
2085
+ isFocus.value = true;
2086
+ emit('focus');
2087
+ };
2088
+
2089
+ var handleBlur = function handleBlur() {
2090
+ if (!isFocus.value) return;
2091
+ isFocus.value = false;
2092
+ emit('blur');
2093
+ };
2094
+
2095
+ var _usePopover = usePopover({
2096
+ popoverMinWidth: popoverMinWidth.value
2097
+ }, triggerRef),
2098
+ popperWidth = _usePopover.popperWidth,
2099
+ isPopoverShow = _usePopover.isPopoverShow,
2100
+ hidePopover = _usePopover.hidePopover,
2101
+ showPopover = _usePopover.showPopover,
2102
+ togglePopover = _usePopover.togglePopover;
2103
+
2104
+ (0,external_vue_namespaceObject.watch)(isPopoverShow, function () {
2105
+ emit('toggle', isPopoverShow.value);
2106
+ }); // 输入框是否可以输入内容
2107
+
2108
+ var isInput = (0,external_vue_namespaceObject.computed)(function () {
2109
+ return (filterable.value && inputSearch.value || allowCreate.value) && isPopoverShow.value;
2110
+ });
2111
+ (0,external_vue_namespaceObject.watch)(isPopoverShow, function (isShow) {
2112
+ if (!isShow) {
2113
+ if (!keepSearchValue.value) {
2114
+ searchKey.value = '';
2115
+ }
2116
+ } else {
2117
+ setTimeout(function () {
2118
+ focusInput();
2119
+ initActiveOptionValue();
2120
+ }, 0);
2121
+ }
2122
+ }); // 初始化当前悬浮的option项
2123
+
2124
+ var initActiveOptionValue = function initActiveOptionValue() {
2125
+ var _a;
2126
+
2127
+ var firstSelected = selected.value[0];
2128
+ var option = optionsMap.value.get(firstSelected === null || firstSelected === void 0 ? void 0 : firstSelected.value);
2129
+
2130
+ if (option && !option.disabled && option.visible) {
2131
+ activeOptionValue.value = firstSelected === null || firstSelected === void 0 ? void 0 : firstSelected.value;
2132
+ } else {
2133
+ activeOptionValue.value = (_a = options.value.find(function (option) {
2134
+ return !option.disabled && option.visible;
2135
+ })) === null || _a === void 0 ? void 0 : _a.value;
2136
+ }
2137
+ }; // 默认搜索方法
2138
+
2139
+
2140
+ var defaultSearchMethod = function defaultSearchMethod(value) {
2141
+ if (!filterable.value) return;
2142
+ options.value.forEach(function (option) {
2143
+ var _a;
2144
+
2145
+ option.visible = (_a = toLowerCase(String(option.label))) === null || _a === void 0 ? void 0 : _a.includes(toLowerCase(value));
2146
+ });
2147
+ };
2148
+
2149
+ var _useRemoteSearch = useRemoteSearch(isRemoteSearch.value ? remoteMethod.value : defaultSearchMethod, initActiveOptionValue),
2150
+ searchKey = _useRemoteSearch.searchKey,
2151
+ searchLoading = _useRemoteSearch.searchLoading; // 派发change事件
2152
+
2153
+
2154
+ var emitChange = function emitChange(val) {
2155
+ if (val === modelValue.value) return;
2156
+ emit('update:modelValue', val, modelValue.value);
2157
+ emit('change', val, modelValue.value);
2158
+ }; // 派发toggle事件
2159
+
2160
+
2161
+ var handleTogglePopover = function handleTogglePopover() {
2162
+ if (isDisabled.value) return;
2163
+ handleFocus();
2164
+ togglePopover();
2165
+ }; // 搜索
2166
+
2167
+
2168
+ var handleInputChange = function handleInputChange(value) {
2169
+ if (!filterable.value) return;
2170
+ searchKey.value = value;
2171
+ }; // allow create(创建自定义选项)
2172
+
2173
+
2174
+ var handleInputEnter = function handleInputEnter(val, e) {
2175
+ var value = String(val);
2176
+ if (!allowCreate.value || !value || filterable.value && options.value.find(function (data) {
2177
+ return toLowerCase(String(data.label)) === toLowerCase(value);
2178
+ })) return; // 开启搜索后,正好匹配到自定义选项,则不进行创建操作
2179
+
2180
+ var data = optionsMap.value.get(value);
2181
+ if (data) return; // 已经存在相同值的option时不能创建
2182
+ // todo 优化交互方式
2183
+
2184
+ e.stopPropagation(); // 阻止触发 handleKeyup enter 事件
2185
+
2186
+ if (multiple.value) {
2187
+ selected.value.push({
2188
+ value: value,
2189
+ label: value
2190
+ });
2191
+ emitChange(selected.value.map(function (item) {
2192
+ return item.value;
2193
+ }));
2194
+ } else {
2195
+ selected.value = [{
2196
+ value: value,
2197
+ label: value
2198
+ }];
2199
+ emitChange(value);
2200
+ hidePopover();
2201
+ }
2202
+
2203
+ searchKey.value = '';
2204
+ }; // Option点击事件
2205
+
2206
+
2207
+ var handleOptionSelected = function handleOptionSelected(option) {
2208
+ if (isDisabled.value || !option) return;
2209
+
2210
+ if (multiple.value) {
2211
+ // 多选
2212
+ var index = selected.value.findIndex(function (item) {
2213
+ return item.value === option.value;
2214
+ });
2215
+
2216
+ if (index > -1) {
2217
+ selected.value.splice(index, 1);
2218
+ } else {
2219
+ selected.value.push({
2220
+ value: option.value,
2221
+ label: option.label || option.value
2222
+ });
2223
+ }
2224
+
2225
+ emitChange(selected.value.map(function (item) {
2226
+ return item.value;
2227
+ }));
2228
+ } else {
2229
+ // 单选
2230
+ selected.value = [{
2231
+ label: option.label || option.value,
2232
+ value: option.value
2233
+ }];
2234
+ emitChange(option.value);
2235
+ hidePopover();
2236
+ }
2237
+
2238
+ focusInput();
2239
+ }; // 聚焦输入框
2240
+
2241
+
2242
+ var focusInput = function focusInput() {
2243
+ setTimeout(function () {
2244
+ var _a, _b, _c;
2245
+
2246
+ if (!inputSearch.value && !allowCreate.value) {
2247
+ (_a = searchRef.value) === null || _a === void 0 ? void 0 : _a.focus();
2248
+ } else {
2249
+ if (multipleMode.value === 'tag') {
2250
+ (_b = selectTagInputRef.value) === null || _b === void 0 ? void 0 : _b.focus();
2251
+ } else {
2252
+ (_c = inputRef.value) === null || _c === void 0 ? void 0 : _c.focus();
2253
+ }
2254
+ }
2255
+ }, 0);
2256
+ }; // 清空事件
2257
+
2258
+
2259
+ var handleClear = function handleClear(e) {
2260
+ e.stopPropagation();
2261
+ selected.value = [];
2262
+ emitChange(multiple.value ? [] : '');
2263
+ emit('clear', multiple.value ? [] : '');
2264
+ hidePopover();
2265
+ }; // 全选/取消全选
2266
+
2267
+
2268
+ var handleSelectedAllOptionMouseEnter = function handleSelectedAllOptionMouseEnter() {
2269
+ activeOptionValue.value = '';
2270
+ };
2271
+
2272
+ var handleToggleAll = function handleToggleAll() {
2273
+ if (isAllSelected.value) {
2274
+ selected.value = [];
2275
+ } else {
2276
+ options.value.forEach(function (option) {
2277
+ if (option.disabled || selected.value.find(function (item) {
2278
+ return item.value === option.value;
2279
+ })) return;
2280
+ selected.value.push({
2281
+ value: option.value,
2282
+ label: option.label || option.value
2283
+ });
2284
+ });
2285
+ }
2286
+
2287
+ emitChange(selected.value.map(function (item) {
2288
+ return item.value;
2289
+ }));
2290
+ focusInput();
2291
+ }; // 滚动事件
2292
+
2293
+
2294
+ var handleScroll = function handleScroll(e) {
2295
+ var _e$target = e.target,
2296
+ scrollTop = _e$target.scrollTop,
2297
+ clientHeight = _e$target.clientHeight,
2298
+ scrollHeight = _e$target.scrollHeight;
2299
+
2300
+ if (scrollTop + clientHeight === scrollHeight) {
2301
+ emit('scroll-end');
2302
+ }
2303
+ }; // tag删除事件
2304
+
2305
+
2306
+ var handleDeleteTag = function handleDeleteTag(val) {
2307
+ if (isDisabled.value) return;
2308
+ var index = selected.value.findIndex(function (item) {
2309
+ return item.value === val;
2310
+ });
2311
+
2312
+ if (index > -1) {
2313
+ selected.value.splice(index, 1);
2314
+ emitChange(selected.value.map(function (item) {
2315
+ return item.value;
2316
+ }));
2317
+ }
2318
+ }; // options存在 > 上一次选择的label > 当前值
2319
+
2320
+
2321
+ var handleGetLabelByValue = function handleGetLabelByValue(value) {
2322
+ var _a, _b;
2323
+
2324
+ return ((_b = (_a = optionsMap.value) === null || _a === void 0 ? void 0 : _a.get(value)) === null || _b === void 0 ? void 0 : _b.label) || cacheSelectedMap.value[value] || value;
2325
+ }; // 设置selected选项
2326
+
2327
+
2328
+ var handleSetSelectedData = function handleSetSelectedData() {
2329
+ // 同步内部value值
2330
+ if (Array.isArray(modelValue.value)) {
2331
+ selected.value = _toConsumableArray(modelValue.value.map(function (value) {
2332
+ return {
2333
+ value: value,
2334
+ label: handleGetLabelByValue(value)
2335
+ };
2336
+ }));
2337
+ } else {
2338
+ if (modelValue.value !== undefined || allowEmptyValues.value.includes(modelValue.value)) {
2339
+ selected.value = [{
2340
+ value: modelValue.value,
2341
+ label: handleGetLabelByValue(modelValue.value)
2342
+ }];
2343
+ } else {
2344
+ selected.value = [];
2345
+ }
2346
+ }
2347
+ }; // 处理键盘事件
2348
+
2349
+
2350
+ var handleKeydown = function handleKeydown(e) {
2351
+ var _a, _b, _c, _d;
2352
+
2353
+ if (!((_a = triggerRef.value) === null || _a === void 0 ? void 0 : _a.contains(e.target)) && !((_b = contentRef.value) === null || _b === void 0 ? void 0 : _b.contains(e.target)) && !customContent.value) return;
2354
+ var availableOptions = options.value.filter(function (option) {
2355
+ return !option.disabled && option.visible;
2356
+ });
2357
+ var index = availableOptions.findIndex(function (option) {
2358
+ return option.value === activeOptionValue.value;
2359
+ });
2360
+ if (!availableOptions.length || index === -1) return;
2361
+
2362
+ switch (e.code) {
2363
+ // 下一个option
2364
+ case 'ArrowDown':
2365
+ {
2366
+ e.preventDefault(); // 阻止滚动屏幕
2367
+
2368
+ var nextIndex = index >= availableOptions.length - 1 ? 0 : index + 1;
2369
+ activeOptionValue.value = (_c = availableOptions[nextIndex]) === null || _c === void 0 ? void 0 : _c.value;
2370
+ break;
2371
+ }
2372
+ // 上一个option
2373
+
2374
+ case 'ArrowUp':
2375
+ {
2376
+ e.preventDefault(); // 阻止滚动屏幕
2377
+
2378
+ var preIndex = index === 0 ? availableOptions.length - 1 : index - 1;
2379
+ activeOptionValue.value = (_d = availableOptions[preIndex]) === null || _d === void 0 ? void 0 : _d.value;
2380
+ break;
2381
+ }
2382
+ // 删除选项
2383
+
2384
+ case 'Backspace':
2385
+ {
2386
+ if (!multiple.value || !selected.value.length || searchKey.value.length || e.target === searchRef.value) return; // 单选和下拉搜索不支持回退键删除
2387
+
2388
+ selected.value.pop();
2389
+ emitChange(selected.value.map(function (item) {
2390
+ return item.value;
2391
+ }));
2392
+ break;
2393
+ }
2394
+ // 选择选项
2395
+
2396
+ case 'Enter':
2397
+ {
2398
+ if (!isPopoverShow.value) {
2399
+ isPopoverShow.value = true;
2400
+ } else {
2401
+ var option = optionsMap.value.get(activeOptionValue.value);
2402
+ handleOptionSelected(option);
2403
+ }
2404
+
2405
+ break;
2406
+ }
2407
+ }
2408
+ };
2409
+
2410
+ var handleClickOutside = function handleClickOutside(_ref2) {
2411
+ var event = _ref2.event;
2412
+
2413
+ var _a;
2414
+
2415
+ var target = event.target;
2416
+ if (((_a = triggerRef.value) === null || _a === void 0 ? void 0 : _a.contains(target)) || triggerRef.value === target) return;
2417
+ hidePopover();
2418
+ handleBlur();
2419
+ };
2420
+
2421
+ var handlePopoverShow = function handlePopoverShow() {
2422
+ setTimeout(function () {
2423
+ var _a, _b; // 虚拟滚动首次未更新问题
2424
+
2425
+
2426
+ enableVirtualRender.value && ((_b = (_a = virtualRenderRef.value) === null || _a === void 0 ? void 0 : _a.reset) === null || _b === void 0 ? void 0 : _b.call(_a));
2427
+ });
2428
+ };
2429
+
2430
+ (0,external_vue_namespaceObject.provide)(selectKey, (0,external_vue_namespaceObject.reactive)({
2431
+ multiple: multiple,
2432
+ selected: selected,
2433
+ activeOptionValue: activeOptionValue,
2434
+ showSelectedIcon: showSelectedIcon,
2435
+ register: register,
2436
+ unregister: unregister,
2437
+ registerGroup: registerGroup,
2438
+ unregisterGroup: unregisterGroup,
2439
+ handleOptionSelected: handleOptionSelected,
2440
+ handleGetLabelByValue: handleGetLabelByValue
2441
+ }));
2442
+ (0,external_vue_namespaceObject.onMounted)(function () {
2443
+ handleSetSelectedData();
2444
+ setTimeout(function () {
2445
+ showOnInit.value && showPopover();
2446
+ autoFocus.value && focusInput();
2447
+ });
2448
+ (0,external_shared_namespaceObject.on)(document, 'keydown', handleKeydown);
2449
+ });
2450
+ (0,external_vue_namespaceObject.onBeforeMount)(function () {
2451
+ (0,external_shared_namespaceObject.off)(document, 'keydown', handleKeydown);
2452
+ });
2453
+ return {
2454
+ selected: selected,
2455
+ isInput: isInput,
2456
+ options: options,
2457
+ isDisabled: isDisabled,
2458
+ selectedLabel: selectedLabel,
2459
+ isPopoverShow: isPopoverShow,
2460
+ isHover: isHover,
2461
+ popperWidth: popperWidth,
2462
+ inputRef: inputRef,
2463
+ triggerRef: triggerRef,
2464
+ contentRef: contentRef,
2465
+ searchRef: searchRef,
2466
+ selectTagInputRef: selectTagInputRef,
2467
+ virtualRenderRef: virtualRenderRef,
2468
+ popoverRef: popoverRef,
2469
+ searchLoading: searchLoading,
2470
+ isOptionsEmpty: isOptionsEmpty,
2471
+ isSearchEmpty: isSearchEmpty,
2472
+ isFocus: isFocus,
2473
+ isShowSelectContent: isShowSelectContent,
2474
+ curContentText: curContentText,
2475
+ isGroup: isGroup,
2476
+ searchKey: searchKey,
2477
+ isShowSelectAll: isShowSelectAll,
2478
+ virtualHeight: virtualHeight,
2479
+ filterList: filterList,
2480
+ isCollapseTags: isCollapseTags,
2481
+ popoverConfig: popoverConfig,
2482
+ focusInput: focusInput,
2483
+ setHover: setHover,
2484
+ cancelHover: cancelHover,
2485
+ handleFocus: handleFocus,
2486
+ handleBlur: handleBlur,
2487
+ handleTogglePopover: handleTogglePopover,
2488
+ handleClear: handleClear,
2489
+ hidePopover: hidePopover,
2490
+ showPopover: showPopover,
2491
+ handleToggleAll: handleToggleAll,
2492
+ handleOptionSelected: handleOptionSelected,
2493
+ handleClickOutside: handleClickOutside,
2494
+ handleScroll: handleScroll,
2495
+ handleDeleteTag: handleDeleteTag,
2496
+ handleInputChange: handleInputChange,
2497
+ handleInputEnter: handleInputEnter,
2498
+ handleKeydown: handleKeydown,
2499
+ handleSelectedAllOptionMouseEnter: handleSelectedAllOptionMouseEnter,
2500
+ handlePopoverShow: handlePopoverShow
2501
+ };
2502
+ },
2503
+ render: function render() {
2504
+ var _classes,
2505
+ _this = this;
2506
+
2507
+ var selectClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, (0,external_shared_namespaceObject.resolveClassName)('select'), true), _defineProperty(_classes, 'popover-show', this.isPopoverShow), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-focus', this.isFocus), _defineProperty(_classes, 'is-filterable', this.filterable), _defineProperty(_classes, this.size, true), _defineProperty(_classes, this.behavior, true), _classes));
2508
+
2509
+ var suffixIcon = function suffixIcon() {
2510
+ if (_this.loading) {
2511
+ return (0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
2512
+ "loading": true,
2513
+ "theme": 'primary',
2514
+ "class": "spinner",
2515
+ "mode": "spin",
2516
+ "size": "mini"
2517
+ }, null);
2518
+ }
2519
+
2520
+ if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
2521
+ return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
2522
+ "class": "clear-icon",
2523
+ "onClick": _this.handleClear
2524
+ }, null);
2525
+ }
2526
+
2527
+ return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleUp, {
2528
+ "class": "angle-up"
2529
+ }, null);
2530
+ };
2531
+
2532
+ var renderTriggerInput = function renderTriggerInput() {
2533
+ if (_this.multipleMode === 'tag') {
2534
+ return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
2535
+ "ref": "selectTagInputRef",
2536
+ "modelValue": _this.searchKey,
2537
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
2538
+ return _this.searchKey = $event;
2539
+ },
2540
+ "selected": _this.selected,
2541
+ "tagTheme": _this.tagTheme,
2542
+ "placeholder": _this.placeholder,
2543
+ "filterable": _this.isInput,
2544
+ "disabled": _this.isDisabled,
2545
+ "onRemove": _this.handleDeleteTag,
2546
+ "collapseTags": _this.isCollapseTags,
2547
+ "onEnter": _this.handleInputEnter
2548
+ }, {
2549
+ prefix: function prefix() {
2550
+ var _a, _b;
2551
+
2552
+ return (_b = (_a = _this.$slots).prefix) === null || _b === void 0 ? void 0 : _b.call(_a);
2553
+ },
2554
+ "default": _this.$slots.tag && function () {
2555
+ return _this.$slots.tag({
2556
+ selected: _this.selected
2557
+ });
2558
+ },
2559
+ suffix: function suffix() {
2560
+ return suffixIcon();
2561
+ }
2562
+ });
2563
+ }
2564
+
2565
+ return (0,external_vue_namespaceObject.createVNode)(external_input_namespaceObject["default"], {
2566
+ "ref": "inputRef",
2567
+ "type": "text",
2568
+ "modelValue": _this.isInput ? _this.searchKey : _this.selectedLabel.join(','),
2569
+ "placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.placeholder : _this.placeholder,
2570
+ "readonly": !_this.isInput,
2571
+ "selectReadonly": true,
2572
+ "disabled": _this.isDisabled,
2573
+ "behavior": _this.behavior,
2574
+ "size": _this.size,
2575
+ "withValidate": false,
2576
+ "onInput": _this.handleInputChange,
2577
+ "onEnter": _this.handleInputEnter
2578
+ }, {
2579
+ prefix: function prefix() {
2580
+ var _a, _b;
2581
+
2582
+ return (_b = (_a = _this.$slots).prefix) === null || _b === void 0 ? void 0 : _b.call(_a);
2583
+ },
2584
+ suffix: function suffix() {
2585
+ return suffixIcon();
2586
+ }
2587
+ });
2588
+ };
2589
+
2590
+ var renderSelectTrigger = function renderSelectTrigger() {
2591
+ var _a, _b;
2592
+
2593
+ return (0,external_vue_namespaceObject.createVNode)("div", {
2594
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-trigger'),
2595
+ "style": {
2596
+ height: _this.autoHeight && _this.collapseTags ? '32px' : ''
2597
+ },
2598
+ "ref": "triggerRef",
2599
+ "onClick": _this.handleTogglePopover,
2600
+ "onMouseenter": _this.setHover,
2601
+ "onMouseleave": _this.cancelHover
2602
+ }, [((_b = (_a = _this.$slots).trigger) === null || _b === void 0 ? void 0 : _b.call(_a, {
2603
+ selected: _this.selected
2604
+ })) || renderTriggerInput()]);
2605
+ };
2606
+
2607
+ var renderSelectContent = function renderSelectContent() {
2608
+ var _a, _b;
2609
+
2610
+ return (0,external_vue_namespaceObject.createVNode)("div", {
2611
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-content-wrapper'),
2612
+ "ref": "contentRef"
2613
+ }, [_this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
2614
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-search-wrapper')
2615
+ }, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Search, {
2616
+ "class": "icon-search",
2617
+ "width": 16,
2618
+ "height": 16
2619
+ }, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
2620
+ "ref": "searchRef",
2621
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-search-input'),
2622
+ "placeholder": _this.searchPlaceholder,
2623
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
2624
+ return _this.searchKey = $event;
2625
+ }
2626
+ }, null), [[external_vue_namespaceObject.vModelText, _this.searchKey]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
2627
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-empty')
2628
+ }, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
2629
+ "class": "mr5",
2630
+ "theme": 'primary',
2631
+ "loading": true,
2632
+ "mode": "spin",
2633
+ "size": "mini"
2634
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
2635
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-content')
2636
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
2637
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-dropdown'),
2638
+ "style": {
2639
+ maxHeight: "".concat(_this.scrollHeight, "px")
2640
+ },
2641
+ "onScroll": _this.handleScroll
2642
+ }, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
2643
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-options')
2644
+ }, [_this.isShowSelectAll && (0,external_vue_namespaceObject.createVNode)("li", {
2645
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-option'),
2646
+ "onMouseenter": _this.handleSelectedAllOptionMouseEnter,
2647
+ "onClick": _this.handleToggleAll
2648
+ }, [_this.selectAllText]), _this.enableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(external_virtual_render_namespaceObject["default"], {
2649
+ "list": _this.filterList,
2650
+ "height": _this.virtualHeight,
2651
+ "lineHeight": 32,
2652
+ "ref": "virtualRenderRef"
2653
+ }, {
2654
+ "default": function _default(_ref3) {
2655
+ var data = _ref3.data;
2656
+ return data.map(function (item) {
2657
+ return (0,external_vue_namespaceObject.createVNode)(src_option, {
2658
+ "key": item[_this.idKey],
2659
+ "value": item[_this.idKey],
2660
+ "label": item[_this.displayKey]
2661
+ }, null);
2662
+ });
2663
+ }
2664
+ }) : _this.filterList.map(function (item) {
2665
+ return (0,external_vue_namespaceObject.createVNode)(src_option, {
2666
+ "value": item[_this.idKey],
2667
+ "label": item[_this.displayKey]
2668
+ }, null);
2669
+ }), (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
2670
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-options-loading')
2671
+ }, [(0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
2672
+ "class": "spinner mr5",
2673
+ "theme": 'primary',
2674
+ "loading": true,
2675
+ "mode": "spin",
2676
+ "size": "mini"
2677
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.loadingText])])]), [[external_vue_namespaceObject.vShow, _this.isShowSelectContent]])]), _this.$slots.extension && (0,external_vue_namespaceObject.createVNode)("div", {
2678
+ "class": (0,external_shared_namespaceObject.resolveClassName)('select-extension')
2679
+ }, [_this.$slots.extension()])])]);
2680
+ };
2681
+
2682
+ return (0,external_vue_namespaceObject.createVNode)("div", {
2683
+ "class": selectClass
2684
+ }, [(0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.popoverConfig, {
2685
+ "onClickoutside": this.handleClickOutside,
2686
+ "onAfterShow": this.handlePopoverShow,
2687
+ "ref": "popoverRef"
2688
+ }), {
2689
+ "default": function _default() {
2690
+ return renderSelectTrigger();
2691
+ },
2692
+ content: function content() {
2693
+ return renderSelectContent();
2694
+ }
2695
+ })]);
2696
+ }
2697
+ }));
2698
+ ;// CONCATENATED MODULE: ../../packages/select/src/index.ts
2699
+ /*
2700
+ * Tencent is pleased to support the open source community by making
2701
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2702
+ *
2703
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2704
+ *
2705
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2706
+ *
2707
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2708
+ *
2709
+ * ---------------------------------------------------
2710
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2711
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2712
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2713
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2714
+ *
2715
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2716
+ * the Software.
2717
+ *
2718
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2719
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2720
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2721
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2722
+ * IN THE SOFTWARE.
2723
+ */
2724
+
2725
+
2726
+
2727
+
2728
+ var BkSelect = (0,external_shared_namespaceObject.withInstallProps)(src_select, {
2729
+ Option: src_option,
2730
+ Group: optionGroup
2731
+ });
2732
+ /* harmony default export */ const src = (BkSelect);
2733
+
2734
+ })();
2735
+
2736
+ var __webpack_exports__BkOption = __webpack_exports__.T0;
2737
+ var __webpack_exports__BkOptionGroup = __webpack_exports__.GE;
2738
+ var __webpack_exports__BkSelect = __webpack_exports__.i2;
2739
+ var __webpack_exports__default = __webpack_exports__.ZP;
2740
+ export { __webpack_exports__BkOption as BkOption, __webpack_exports__BkOptionGroup as BkOptionGroup, __webpack_exports__BkSelect as BkSelect, __webpack_exports__default as default };