bkui-vue 2.0.1-beta.99 → 2.0.2-beta.1

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 (346) hide show
  1. package/dist/index.cjs.js +133 -159
  2. package/dist/index.esm.js +26188 -29904
  3. package/dist/index.umd.js +133 -159
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +0 -130
  7. package/lib/affix/affix.variable.css +1 -261
  8. package/lib/affix/index.js +30 -22
  9. package/lib/alert/alert.css +3 -133
  10. package/lib/alert/alert.variable.css +1 -261
  11. package/lib/alert/index.js +30 -22
  12. package/lib/animate-number/index.js +14 -10
  13. package/lib/backtop/backtop.css +3 -133
  14. package/lib/backtop/backtop.variable.css +4 -394
  15. package/lib/backtop/index.js +32 -22
  16. package/lib/badge/badge.css +26 -156
  17. package/lib/badge/badge.variable.css +1 -261
  18. package/lib/badge/index.js +24 -18
  19. package/lib/breadcrumb/breadcrumb.css +5 -135
  20. package/lib/breadcrumb/breadcrumb.variable.css +6 -396
  21. package/lib/breadcrumb/index.js +31 -23
  22. package/lib/button/button.css +143 -273
  23. package/lib/button/button.variable.css +1 -261
  24. package/lib/button/index.d.ts +2 -1
  25. package/lib/button/index.js +36 -26
  26. package/lib/card/card.css +4 -134
  27. package/lib/card/card.variable.css +5 -395
  28. package/lib/card/index.js +47 -33
  29. package/lib/cascader/cascader.css +27 -153
  30. package/lib/cascader/cascader.d.ts +2 -2
  31. package/lib/cascader/cascader.less +5 -0
  32. package/lib/cascader/cascader.variable.css +28 -414
  33. package/lib/cascader/index.d.ts +6 -6
  34. package/lib/cascader/index.js +1609 -859
  35. package/lib/checkbox/checkbox.css +10 -140
  36. package/lib/checkbox/checkbox.variable.css +1 -261
  37. package/lib/checkbox/index.js +44 -34
  38. package/lib/code-diff/code-diff.css +0 -130
  39. package/lib/code-diff/code-diff.variable.css +1 -261
  40. package/lib/code-diff/index.js +83 -79
  41. package/lib/collapse/collapse.css +1 -131
  42. package/lib/collapse/collapse.variable.css +1 -261
  43. package/lib/collapse/index.js +39 -33
  44. package/lib/collapse-transition/collapse-transition.css +0 -130
  45. package/lib/collapse-transition/collapse-transition.variable.css +1 -261
  46. package/lib/collapse-transition/index.js +20 -14
  47. package/lib/color-picker/color-picker.css +0 -130
  48. package/lib/color-picker/color-picker.variable.css +1 -261
  49. package/lib/color-picker/index.js +1646 -440
  50. package/lib/config-provider/config-provider.css +0 -130
  51. package/lib/config-provider/config-provider.variable.css +1 -261
  52. package/lib/config-provider/index.js +34 -26
  53. package/lib/container/container.css +0 -130
  54. package/lib/container/container.variable.css +1 -391
  55. package/lib/container/index.js +27 -21
  56. package/lib/date-picker/date-picker.css +17 -147
  57. package/lib/date-picker/date-picker.variable.css +1 -261
  58. package/lib/date-picker/index.d.ts +2 -1
  59. package/lib/date-picker/index.js +1992 -554
  60. package/lib/dialog/dialog.css +8 -138
  61. package/lib/dialog/dialog.variable.css +9 -399
  62. package/lib/dialog/index.js +101 -87
  63. package/lib/directives/index.d.ts +1 -0
  64. package/lib/directives/index.js +495 -378
  65. package/lib/divider/divider.css +3 -133
  66. package/lib/divider/divider.variable.css +1 -261
  67. package/lib/divider/index.js +21 -15
  68. package/lib/dropdown/dropdown.css +0 -130
  69. package/lib/dropdown/dropdown.variable.css +1 -391
  70. package/lib/dropdown/index.js +43 -31
  71. package/lib/exception/exception.css +0 -130
  72. package/lib/exception/exception.variable.css +1 -261
  73. package/lib/exception/index.js +55 -49
  74. package/lib/fixed-navbar/fixed-navbar.css +4 -134
  75. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -261
  76. package/lib/fixed-navbar/index.js +20 -14
  77. package/lib/form/form.css +0 -130
  78. package/lib/form/form.variable.css +1 -261
  79. package/lib/form/index.js +1623 -198
  80. package/lib/icon/angle-double-down-line.js +14 -12
  81. package/lib/icon/angle-double-left-line.js +14 -12
  82. package/lib/icon/angle-double-left.js +14 -12
  83. package/lib/icon/angle-double-right-line.js +14 -12
  84. package/lib/icon/angle-double-right.js +14 -12
  85. package/lib/icon/angle-double-up-line.js +14 -12
  86. package/lib/icon/angle-down-fill.js +14 -12
  87. package/lib/icon/angle-down-line.js +14 -12
  88. package/lib/icon/angle-down.js +14 -12
  89. package/lib/icon/angle-left.js +14 -12
  90. package/lib/icon/angle-right.js +14 -12
  91. package/lib/icon/angle-up-fill.js +14 -12
  92. package/lib/icon/angle-up.js +14 -12
  93. package/lib/icon/archive-fill.js +14 -12
  94. package/lib/icon/arrows-left.js +14 -12
  95. package/lib/icon/arrows-right.js +14 -12
  96. package/lib/icon/assistant.js +14 -12
  97. package/lib/icon/audio-fill.js +14 -12
  98. package/lib/icon/bk.js +14 -12
  99. package/lib/icon/circle.js +14 -12
  100. package/lib/icon/close-line.js +14 -12
  101. package/lib/icon/close.js +14 -12
  102. package/lib/icon/code.js +14 -12
  103. package/lib/icon/cog-shape.js +14 -12
  104. package/lib/icon/collapse-left.js +14 -12
  105. package/lib/icon/copy-shape.js +14 -12
  106. package/lib/icon/copy.js +14 -12
  107. package/lib/icon/data-shape.js +14 -12
  108. package/lib/icon/del.js +14 -12
  109. package/lib/icon/doc-fill.js +14 -12
  110. package/lib/icon/done.js +14 -12
  111. package/lib/icon/down-shape.js +14 -12
  112. package/lib/icon/down-small.js +14 -12
  113. package/lib/icon/edit-line.js +14 -12
  114. package/lib/icon/ellipsis.js +14 -12
  115. package/lib/icon/enlarge-line.js +14 -12
  116. package/lib/icon/error.js +14 -12
  117. package/lib/icon/excel-fill.js +14 -12
  118. package/lib/icon/exclamation-circle-shape.js +14 -12
  119. package/lib/icon/eye.js +14 -12
  120. package/lib/icon/filliscreen-line.js +14 -12
  121. package/lib/icon/fix-line.js +14 -12
  122. package/lib/icon/fix-shape.js +14 -12
  123. package/lib/icon/folder-open.js +14 -12
  124. package/lib/icon/folder-shape-open.js +14 -12
  125. package/lib/icon/folder-shape.js +14 -12
  126. package/lib/icon/folder.js +14 -12
  127. package/lib/icon/funnel.js +14 -12
  128. package/lib/icon/grag-fill.js +14 -12
  129. package/lib/icon/help-document-fill.js +14 -12
  130. package/lib/icon/help-fill.js +14 -12
  131. package/lib/icon/help.js +14 -12
  132. package/lib/icon/image-fill.js +14 -12
  133. package/lib/icon/img-error.js +14 -12
  134. package/lib/icon/img-placehoulder.js +14 -12
  135. package/lib/icon/info-line.js +14 -12
  136. package/lib/icon/info.js +14 -12
  137. package/lib/icon/left-shape.js +14 -12
  138. package/lib/icon/left-turn-line.js +14 -12
  139. package/lib/icon/loading.js +14 -12
  140. package/lib/icon/narrow-line.js +14 -12
  141. package/lib/icon/original.js +14 -12
  142. package/lib/icon/pdf-fill.js +14 -12
  143. package/lib/icon/play-shape.js +14 -12
  144. package/lib/icon/plus.js +14 -12
  145. package/lib/icon/ppt-fill.js +14 -12
  146. package/lib/icon/qq.js +14 -12
  147. package/lib/icon/right-shape.js +14 -12
  148. package/lib/icon/right-turn-line.js +14 -12
  149. package/lib/icon/search.js +14 -12
  150. package/lib/icon/share.js +14 -12
  151. package/lib/icon/spinner.js +14 -12
  152. package/lib/icon/success.js +14 -12
  153. package/lib/icon/switcher-loading.js +14 -12
  154. package/lib/icon/text-all.js +14 -12
  155. package/lib/icon/text-file.js +14 -12
  156. package/lib/icon/text-fill.js +14 -12
  157. package/lib/icon/transfer.js +14 -12
  158. package/lib/icon/tree-application-shape.js +14 -12
  159. package/lib/icon/unfull-screen.js +14 -12
  160. package/lib/icon/unvisible.js +14 -12
  161. package/lib/icon/up-shape.js +14 -12
  162. package/lib/icon/upload.js +14 -12
  163. package/lib/icon/video-fill.js +14 -12
  164. package/lib/icon/warn.js +14 -12
  165. package/lib/icon/weixin-pro.js +14 -12
  166. package/lib/icon/weixin.js +14 -12
  167. package/lib/image/image-viewer.css +0 -130
  168. package/lib/image/image-viewer.variable.css +1 -261
  169. package/lib/image/image.css +0 -130
  170. package/lib/image/image.variable.css +1 -391
  171. package/lib/image/index.js +1502 -182
  172. package/lib/index.js +1 -1
  173. package/lib/info-box/index.js +101 -87
  174. package/lib/info-box/info-box.css +4 -134
  175. package/lib/info-box/info-box.variable.css +1 -261
  176. package/lib/input/index.js +1342 -42
  177. package/lib/input/input.css +75 -205
  178. package/lib/input/input.variable.css +76 -466
  179. package/lib/link/index.js +26 -18
  180. package/lib/link/link.css +16 -146
  181. package/lib/link/link.variable.css +1 -261
  182. package/lib/loading/index.js +25 -19
  183. package/lib/loading/loading.css +16 -146
  184. package/lib/loading/loading.variable.css +17 -407
  185. package/lib/locale/index.js +3 -3
  186. package/lib/menu/index.js +40 -32
  187. package/lib/menu/menu.css +20 -150
  188. package/lib/menu/menu.variable.css +21 -411
  189. package/lib/menu/submenu.css +0 -130
  190. package/lib/menu/submenu.variable.css +1 -261
  191. package/lib/message/index.js +47 -41
  192. package/lib/message/message.css +21 -151
  193. package/lib/message/message.variable.css +1 -261
  194. package/lib/modal/index.js +42 -29
  195. package/lib/modal/modal.css +4 -134
  196. package/lib/modal/modal.variable.css +5 -395
  197. package/lib/navigation/index.js +27 -19
  198. package/lib/navigation/navigation.css +2 -132
  199. package/lib/navigation/navigation.variable.css +1 -261
  200. package/lib/notify/index.js +37 -27
  201. package/lib/notify/notify.css +7 -137
  202. package/lib/notify/notify.variable.css +1 -261
  203. package/lib/overflow-title/components/overflow-title.d.ts +20 -0
  204. package/lib/overflow-title/index.d.ts +40 -0
  205. package/lib/overflow-title/index.js +43 -30
  206. package/lib/overflow-title/overflow-title.css +3 -0
  207. package/lib/overflow-title/overflow-title.less +4 -0
  208. package/lib/overflow-title/overflow-title.variable.css +3 -0
  209. package/lib/overflow-title/props.d.ts +10 -0
  210. package/lib/pagination/index.d.ts +3 -3
  211. package/lib/pagination/index.js +62 -46
  212. package/lib/pagination/pagination.css +1 -131
  213. package/lib/pagination/pagination.d.ts +1 -1
  214. package/lib/pagination/pagination.variable.css +1 -261
  215. package/lib/plugin-popover/index.d.ts +1 -1
  216. package/lib/plugin-popover/index.js +35 -21266
  217. package/lib/plugins/index.js +7 -5
  218. package/lib/pop-confirm/index.d.ts +8 -0
  219. package/lib/pop-confirm/index.js +64 -40
  220. package/lib/pop-confirm/pop-confirm.css +0 -130
  221. package/lib/pop-confirm/pop-confirm.d.ts +4 -0
  222. package/lib/pop-confirm/pop-confirm.variable.css +1 -261
  223. package/lib/pop-confirm/props.d.ts +3 -0
  224. package/lib/popover/index.d.ts +49 -3
  225. package/lib/popover/index.js +1323 -17381
  226. package/lib/popover/popover.css +0 -130
  227. package/lib/popover/popover.d.ts +23 -1
  228. package/lib/popover/popover.variable.css +1 -261
  229. package/lib/popover/props.d.ts +16 -0
  230. package/lib/popover/use-popover-init.d.ts +1 -2
  231. package/lib/popover/utils.d.ts +1 -1
  232. package/lib/popover2/index.js +14 -10
  233. package/lib/process/index.js +78 -74
  234. package/lib/process/process.css +13 -143
  235. package/lib/process/process.variable.css +1 -261
  236. package/lib/progress/index.js +26 -20
  237. package/lib/progress/progress.css +4 -134
  238. package/lib/progress/progress.variable.css +5 -395
  239. package/lib/radio/index.js +39 -31
  240. package/lib/radio/radio.css +42 -172
  241. package/lib/radio/radio.variable.css +1 -261
  242. package/lib/rate/index.js +25 -19
  243. package/lib/rate/rate.css +0 -130
  244. package/lib/rate/rate.variable.css +1 -261
  245. package/lib/resize-layout/index.js +30 -22
  246. package/lib/resize-layout/resize-layout.css +0 -130
  247. package/lib/resize-layout/resize-layout.variable.css +1 -261
  248. package/lib/scrollbar/css/scrollbar.css +0 -130
  249. package/lib/scrollbar/css/scrollbar.variable.css +1 -261
  250. package/lib/scrollbar/index.js +25 -25
  251. package/lib/search-select/index.d.ts +6 -0
  252. package/lib/search-select/index.js +1514 -238
  253. package/lib/search-select/input.d.ts +1 -0
  254. package/lib/search-select/search-select.css +78 -208
  255. package/lib/search-select/search-select.d.ts +2 -0
  256. package/lib/search-select/search-select.less +39 -39
  257. package/lib/search-select/search-select.variable.css +79 -469
  258. package/lib/search-select/selected.d.ts +2 -0
  259. package/lib/select/index.d.ts +78 -7
  260. package/lib/select/index.js +1460 -181
  261. package/lib/select/select.css +42 -169
  262. package/lib/select/select.d.ts +32 -2
  263. package/lib/select/select.less +4 -0
  264. package/lib/select/select.variable.css +43 -430
  265. package/lib/shared/index.js +57 -49
  266. package/lib/sideslider/index.js +89 -79
  267. package/lib/sideslider/sideslider.css +1 -131
  268. package/lib/sideslider/sideslider.variable.css +1 -261
  269. package/lib/slider/index.js +85 -75
  270. package/lib/slider/slider.css +5 -135
  271. package/lib/slider/slider.variable.css +1 -261
  272. package/lib/steps/index.js +78 -72
  273. package/lib/steps/steps.css +38 -168
  274. package/lib/steps/steps.variable.css +1 -261
  275. package/lib/styles/mixins/animate.css +0 -130
  276. package/lib/styles/mixins/animate.variable.css +1 -261
  277. package/lib/styles/mixins/mixins.css +0 -130
  278. package/lib/styles/mixins/mixins.variable.css +0 -130
  279. package/lib/styles/mixins/popper.css +0 -130
  280. package/lib/styles/mixins/popper.variable.css +1 -261
  281. package/lib/styles/mixins/scroll.css +0 -130
  282. package/lib/styles/mixins/scroll.variable.css +1 -261
  283. package/lib/styles/reset.css +0 -130
  284. package/lib/styles/reset.variable.css +1 -261
  285. package/lib/styles/themes/themes.less +130 -299
  286. package/lib/swiper/index.js +24 -18
  287. package/lib/swiper/swiper.css +0 -130
  288. package/lib/swiper/swiper.variable.css +1 -261
  289. package/lib/switcher/index.js +30 -22
  290. package/lib/switcher/switcher.css +17 -147
  291. package/lib/switcher/switcher.variable.css +18 -408
  292. package/lib/tab/index.js +1324 -43
  293. package/lib/tab/tab.css +26 -156
  294. package/lib/tab/tab.variable.css +1 -261
  295. package/lib/table/components/table-column.d.ts +1 -1
  296. package/lib/table/index.d.ts +7 -7
  297. package/lib/table/index.js +1543 -17458
  298. package/lib/table/plugins/head-filter.css +0 -130
  299. package/lib/table/plugins/head-filter.variable.css +1 -261
  300. package/lib/table/plugins/head-sort.css +0 -130
  301. package/lib/table/plugins/head-sort.variable.css +1 -261
  302. package/lib/table/plugins/settings.css +0 -130
  303. package/lib/table/plugins/settings.variable.css +1 -261
  304. package/lib/table/table.css +189 -319
  305. package/lib/table/table.d.ts +2 -2
  306. package/lib/table/table.variable.css +190 -580
  307. package/lib/table-column/index.d.ts +3 -3
  308. package/lib/table-column/index.js +17 -17995
  309. package/lib/tag/index.js +36 -26
  310. package/lib/tag/tag.css +5 -135
  311. package/lib/tag/tag.variable.css +1 -261
  312. package/lib/tag-input/index.d.ts +52 -10
  313. package/lib/tag-input/index.js +1453 -17423
  314. package/lib/tag-input/tag-input.css +21 -148
  315. package/lib/tag-input/tag-input.d.ts +24 -4
  316. package/lib/tag-input/tag-input.less +4 -0
  317. package/lib/tag-input/tag-input.variable.css +4 -261
  318. package/lib/tag-input/tag-props.d.ts +11 -1
  319. package/lib/tag-input/tag-render.d.ts +2 -2
  320. package/lib/time-picker/index.js +13 -9
  321. package/lib/time-picker/time-picker.css +0 -130
  322. package/lib/time-picker/time-picker.variable.css +1 -261
  323. package/lib/timeline/index.js +21 -15
  324. package/lib/timeline/timeline.css +19 -149
  325. package/lib/timeline/timeline.variable.css +1 -261
  326. package/lib/transfer/index.d.ts +3 -3
  327. package/lib/transfer/index.js +56 -40
  328. package/lib/transfer/transfer.css +19 -149
  329. package/lib/transfer/transfer.d.ts +1 -1
  330. package/lib/transfer/transfer.variable.css +1 -261
  331. package/lib/tree/index.d.ts +3 -3
  332. package/lib/tree/index.js +107 -17342
  333. package/lib/tree/tree.css +10 -140
  334. package/lib/tree/tree.d.ts +1 -1
  335. package/lib/tree/tree.variable.css +11 -401
  336. package/lib/upload/index.js +584 -572
  337. package/lib/upload/upload.css +27 -157
  338. package/lib/upload/upload.variable.css +28 -418
  339. package/lib/virtual-render/index.d.ts +3 -3
  340. package/lib/virtual-render/index.js +59 -17306
  341. package/lib/virtual-render/virtual-render.css +0 -130
  342. package/lib/virtual-render/virtual-render.d.ts +1 -1
  343. package/lib/virtual-render/virtual-render.variable.css +1 -391
  344. package/package.json +1 -1
  345. package/lib/styles/themes/themes.css +0 -130
  346. package/lib/styles/themes/themes.variable.css +0 -130
package/lib/tab/index.js CHANGED
@@ -4,12 +4,657 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../sh
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
7
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
7
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
9
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
10
+ import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
8
11
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
9
- /******/ // The require scope
10
- /******/ var __webpack_require__ = {};
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 1043:
15
+ /***/ ((module) => {
16
+
17
+ /**
18
+ * Copyright (c) 2015, Facebook, Inc.
19
+ * All rights reserved.
20
+ *
21
+ * This source code is licensed under the BSD-style license found in the
22
+ * LICENSE file in the root directory of this source tree. An additional grant
23
+ * of patent rights can be found in the PATENTS file in the same directory.
24
+ *
25
+ * @providesModule ExecutionEnvironment
26
+ */
27
+
28
+ /*jslint evil: true */
29
+
30
+
31
+
32
+ var canUseDOM = !!(
33
+ typeof window !== 'undefined' &&
34
+ window.document &&
35
+ window.document.createElement
36
+ );
37
+
38
+ /**
39
+ * Simple, lightweight module assisting with the detection and context of
40
+ * Worker. Helps avoid circular dependencies and allows code to reason about
41
+ * whether or not they are in a Worker, even if they never include the main
42
+ * `ReactWorker` dependency.
43
+ */
44
+ var ExecutionEnvironment = {
45
+
46
+ canUseDOM: canUseDOM,
47
+
48
+ canUseWorkers: typeof Worker !== 'undefined',
49
+
50
+ canUseEventListeners:
51
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
52
+
53
+ canUseViewport: canUseDOM && !!window.screen,
54
+
55
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
56
+
57
+ };
58
+
59
+ module.exports = ExecutionEnvironment;
60
+
61
+
62
+ /***/ }),
63
+
64
+ /***/ 2586:
65
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
66
+
67
+ /**
68
+ * Copyright 2013-2015, Facebook, Inc.
69
+ * All rights reserved.
70
+ *
71
+ * This source code is licensed under the BSD-style license found in the
72
+ * LICENSE file in the root directory of this source tree. An additional grant
73
+ * of patent rights can be found in the PATENTS file in the same directory.
74
+ *
75
+ * @providesModule isEventSupported
76
+ */
77
+
78
+
79
+
80
+ var ExecutionEnvironment = __webpack_require__(1043);
81
+
82
+ var useHasFeature;
83
+ if (ExecutionEnvironment.canUseDOM) {
84
+ useHasFeature =
85
+ document.implementation &&
86
+ document.implementation.hasFeature &&
87
+ // always returns true in newer browsers as per the standard.
88
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
89
+ document.implementation.hasFeature('', '') !== true;
90
+ }
91
+
92
+ /**
93
+ * Checks if an event is supported in the current execution environment.
94
+ *
95
+ * NOTE: This will not work correctly for non-generic events such as `change`,
96
+ * `reset`, `load`, `error`, and `select`.
97
+ *
98
+ * Borrows from Modernizr.
99
+ *
100
+ * @param {string} eventNameSuffix Event name, e.g. "click".
101
+ * @param {?boolean} capture Check if the capture phase is supported.
102
+ * @return {boolean} True if the event is supported.
103
+ * @internal
104
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
105
+ */
106
+ function isEventSupported(eventNameSuffix, capture) {
107
+ if (!ExecutionEnvironment.canUseDOM ||
108
+ capture && !('addEventListener' in document)) {
109
+ return false;
110
+ }
111
+
112
+ var eventName = 'on' + eventNameSuffix;
113
+ var isSupported = eventName in document;
114
+
115
+ if (!isSupported) {
116
+ var element = document.createElement('div');
117
+ element.setAttribute(eventName, 'return;');
118
+ isSupported = typeof element[eventName] === 'function';
119
+ }
120
+
121
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
122
+ // This is the only way to test support for the `wheel` event in IE9+.
123
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
124
+ }
125
+
126
+ return isSupported;
127
+ }
128
+
129
+ module.exports = isEventSupported;
130
+
131
+
132
+ /***/ }),
133
+
134
+ /***/ 5022:
135
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
136
+
137
+ /**
138
+ * Copyright (c) 2015, Facebook, Inc.
139
+ * All rights reserved.
140
+ *
141
+ * This source code is licensed under the BSD-style license found in the
142
+ * LICENSE file in the root directory of this source tree. An additional grant
143
+ * of patent rights can be found in the PATENTS file in the same directory.
144
+ *
145
+ * @providesModule normalizeWheel
146
+ * @typechecks
147
+ */
148
+
149
+
150
+
151
+ var UserAgent_DEPRECATED = __webpack_require__(7416);
152
+
153
+ var isEventSupported = __webpack_require__(2586);
154
+
155
+
156
+ // Reasonable defaults
157
+ var PIXEL_STEP = 10;
158
+ var LINE_HEIGHT = 40;
159
+ var PAGE_HEIGHT = 800;
160
+
161
+ /**
162
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
163
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
164
+ * your questions.
165
+ *
166
+ * If you need to react to the mouse wheel in a predictable way, this code is
167
+ * like your bestest friend. * hugs *
168
+ *
169
+ * As of today, there are 4 DOM event types you can listen to:
170
+ *
171
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
172
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
173
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
174
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
175
+ *
176
+ * So what to do? The is the best:
177
+ *
178
+ * normalizeWheel.getEventType();
179
+ *
180
+ * In your event callback, use this code to get sane interpretation of the
181
+ * deltas. This code will return an object with properties:
182
+ *
183
+ * spinX -- normalized spin speed (use for zoom) - x plane
184
+ * spinY -- " - y plane
185
+ * pixelX -- normalized distance (to pixels) - x plane
186
+ * pixelY -- " - y plane
187
+ *
188
+ * Wheel values are provided by the browser assuming you are using the wheel to
189
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
190
+ * significantly on different platforms and browsers, forgetting that you can
191
+ * scroll at different speeds. Some devices (like trackpads) emit more events
192
+ * at smaller increments with fine granularity, and some emit massive jumps with
193
+ * linear speed or acceleration.
194
+ *
195
+ * This code does its best to normalize the deltas for you:
196
+ *
197
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
198
+ * dragged). This is super useful for zoom support where you want to
199
+ * throw away the chunky scroll steps on the PC and make those equal to
200
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
201
+ * resolve a single slow step on a wheel to 1.
202
+ *
203
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
204
+ * get the crazy differences between browsers, but at least it'll be in
205
+ * pixels!
206
+ *
207
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
208
+ * should translate to positive value zooming IN, negative zooming OUT.
209
+ * This matches the newer 'wheel' event.
210
+ *
211
+ * Why are there spinX, spinY (or pixels)?
212
+ *
213
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
214
+ * with a mouse. It results in side-scrolling in the browser by default.
215
+ *
216
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
217
+ *
218
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
219
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
220
+ * you know.
221
+ *
222
+ * Implementation info:
223
+ *
224
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
225
+ * average mouse:
226
+ *
227
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
228
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
229
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
230
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
231
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
232
+ *
233
+ * On the trackpad:
234
+ *
235
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
236
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
237
+ *
238
+ * On other/older browsers.. it's more complicated as there can be multiple and
239
+ * also missing delta values.
240
+ *
241
+ * The 'wheel' event is more standard:
242
+ *
243
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
244
+ *
245
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
246
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
247
+ * backward compatibility with older events. Those other values help us
248
+ * better normalize spin speed. Example of what the browsers provide:
249
+ *
250
+ * | event.wheelDelta | event.detail
251
+ * ------------------+------------------+--------------
252
+ * Safari v5/OS X | -120 | 0
253
+ * Safari v5/Win7 | -120 | 0
254
+ * Chrome v17/OS X | -120 | 0
255
+ * Chrome v17/Win7 | -120 | 0
256
+ * IE9/Win7 | -120 | undefined
257
+ * Firefox v4/OS X | undefined | 1
258
+ * Firefox v4/Win7 | undefined | 3
259
+ *
260
+ */
261
+ function normalizeWheel(/*object*/ event) /*object*/ {
262
+ var sX = 0, sY = 0, // spinX, spinY
263
+ pX = 0, pY = 0; // pixelX, pixelY
264
+
265
+ // Legacy
266
+ if ('detail' in event) { sY = event.detail; }
267
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
268
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
269
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
270
+
271
+ // side scrolling on FF with DOMMouseScroll
272
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
273
+ sX = sY;
274
+ sY = 0;
275
+ }
276
+
277
+ pX = sX * PIXEL_STEP;
278
+ pY = sY * PIXEL_STEP;
279
+
280
+ if ('deltaY' in event) { pY = event.deltaY; }
281
+ if ('deltaX' in event) { pX = event.deltaX; }
282
+
283
+ if ((pX || pY) && event.deltaMode) {
284
+ if (event.deltaMode == 1) { // delta in LINE units
285
+ pX *= LINE_HEIGHT;
286
+ pY *= LINE_HEIGHT;
287
+ } else { // delta in PAGE units
288
+ pX *= PAGE_HEIGHT;
289
+ pY *= PAGE_HEIGHT;
290
+ }
291
+ }
292
+
293
+ // Fall-back if spin cannot be determined
294
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
295
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
296
+
297
+ return { spinX : sX,
298
+ spinY : sY,
299
+ pixelX : pX,
300
+ pixelY : pY };
301
+ }
302
+
303
+
304
+ /**
305
+ * The best combination if you prefer spinX + spinY normalization. It favors
306
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
307
+ * 'wheel' event, making spin speed determination impossible.
308
+ */
309
+ normalizeWheel.getEventType = function() /*string*/ {
310
+ return (UserAgent_DEPRECATED.firefox())
311
+ ? 'DOMMouseScroll'
312
+ : (isEventSupported('wheel'))
313
+ ? 'wheel'
314
+ : 'mousewheel';
315
+ };
316
+
317
+ module.exports = normalizeWheel;
318
+
319
+
320
+ /***/ }),
321
+
322
+ /***/ 7416:
323
+ /***/ ((module) => {
324
+
325
+ /**
326
+ * Copyright 2004-present Facebook. All Rights Reserved.
327
+ *
328
+ * @providesModule UserAgent_DEPRECATED
329
+ */
330
+
331
+ /**
332
+ * Provides entirely client-side User Agent and OS detection. You should prefer
333
+ * the non-deprecated UserAgent module when possible, which exposes our
334
+ * authoritative server-side PHP-based detection to the client.
335
+ *
336
+ * Usage is straightforward:
337
+ *
338
+ * if (UserAgent_DEPRECATED.ie()) {
339
+ * // IE
340
+ * }
341
+ *
342
+ * You can also do version checks:
343
+ *
344
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
345
+ * // IE7 or better
346
+ * }
347
+ *
348
+ * The browser functions will return NaN if the browser does not match, so
349
+ * you can also do version compares the other way:
350
+ *
351
+ * if (UserAgent_DEPRECATED.ie() < 7) {
352
+ * // IE6 or worse
353
+ * }
354
+ *
355
+ * Note that the version is a float and may include a minor version number,
356
+ * so you should always use range operators to perform comparisons, not
357
+ * strict equality.
358
+ *
359
+ * **Note:** You should **strongly** prefer capability detection to browser
360
+ * version detection where it's reasonable:
361
+ *
362
+ * http://www.quirksmode.org/js/support.html
363
+ *
364
+ * Further, we have a large number of mature wrapper functions and classes
365
+ * which abstract away many browser irregularities. Check the documentation,
366
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
367
+ * another copy of "event || window.event".
368
+ *
369
+ */
370
+
371
+ var _populated = false;
372
+
373
+ // Browsers
374
+ var _ie, _firefox, _opera, _webkit, _chrome;
375
+
376
+ // Actual IE browser for compatibility mode
377
+ var _ie_real_version;
378
+
379
+ // Platforms
380
+ var _osx, _windows, _linux, _android;
381
+
382
+ // Architectures
383
+ var _win64;
384
+
385
+ // Devices
386
+ var _iphone, _ipad, _native;
387
+
388
+ var _mobile;
389
+
390
+ function _populate() {
391
+ if (_populated) {
392
+ return;
393
+ }
394
+
395
+ _populated = true;
396
+
397
+ // To work around buggy JS libraries that can't handle multi-digit
398
+ // version numbers, Opera 10's user agent string claims it's Opera
399
+ // 9, then later includes a Version/X.Y field:
400
+ //
401
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
402
+ var uas = navigator.userAgent;
403
+ var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
404
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
405
+
406
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
407
+ _ipad = /\b(iP[ao]d)/.exec(uas);
408
+ _android = /Android/i.exec(uas);
409
+ _native = /FBAN\/\w+;/i.exec(uas);
410
+ _mobile = /Mobile/i.exec(uas);
411
+
412
+ // Note that the IE team blog would have you believe you should be checking
413
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
414
+ // from either x64 or ia64; so ultimately, you should just check for Win64
415
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
416
+ // Windows will send 'WOW64' instead.
417
+ _win64 = !!(/Win64/.exec(uas));
418
+
419
+ if (agent) {
420
+ _ie = agent[1] ? parseFloat(agent[1]) : (
421
+ agent[5] ? parseFloat(agent[5]) : NaN);
422
+ // IE compatibility mode
423
+ if (_ie && document && document.documentMode) {
424
+ _ie = document.documentMode;
425
+ }
426
+ // grab the "true" ie version from the trident token if available
427
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
428
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
429
+
430
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
431
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
432
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
433
+ if (_webkit) {
434
+ // We do not add the regexp to the above test, because it will always
435
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
436
+ // the userAgent string.
437
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
438
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
439
+ } else {
440
+ _chrome = NaN;
441
+ }
442
+ } else {
443
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
444
+ }
445
+
446
+ if (os) {
447
+ if (os[1]) {
448
+ // Detect OS X version. If no version number matches, set _osx to true.
449
+ // Version examples: 10, 10_6_1, 10.7
450
+ // Parses version number as a float, taking only first two sets of
451
+ // digits. If only one set of digits is found, returns just the major
452
+ // version number.
453
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
454
+
455
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
456
+ } else {
457
+ _osx = false;
458
+ }
459
+ _windows = !!os[2];
460
+ _linux = !!os[3];
461
+ } else {
462
+ _osx = _windows = _linux = false;
463
+ }
464
+ }
465
+
466
+ var UserAgent_DEPRECATED = {
467
+
468
+ /**
469
+ * Check if the UA is Internet Explorer.
470
+ *
471
+ *
472
+ * @return float|NaN Version number (if match) or NaN.
473
+ */
474
+ ie: function() {
475
+ return _populate() || _ie;
476
+ },
477
+
478
+ /**
479
+ * Check if we're in Internet Explorer compatibility mode.
480
+ *
481
+ * @return bool true if in compatibility mode, false if
482
+ * not compatibility mode or not ie
483
+ */
484
+ ieCompatibilityMode: function() {
485
+ return _populate() || (_ie_real_version > _ie);
486
+ },
487
+
488
+
489
+ /**
490
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
491
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
492
+ * this when we don't need it -- tracked by #601957.
493
+ */
494
+ ie64: function() {
495
+ return UserAgent_DEPRECATED.ie() && _win64;
496
+ },
497
+
498
+ /**
499
+ * Check if the UA is Firefox.
500
+ *
501
+ *
502
+ * @return float|NaN Version number (if match) or NaN.
503
+ */
504
+ firefox: function() {
505
+ return _populate() || _firefox;
506
+ },
507
+
508
+
509
+ /**
510
+ * Check if the UA is Opera.
511
+ *
512
+ *
513
+ * @return float|NaN Version number (if match) or NaN.
514
+ */
515
+ opera: function() {
516
+ return _populate() || _opera;
517
+ },
518
+
519
+
520
+ /**
521
+ * Check if the UA is WebKit.
522
+ *
523
+ *
524
+ * @return float|NaN Version number (if match) or NaN.
525
+ */
526
+ webkit: function() {
527
+ return _populate() || _webkit;
528
+ },
529
+
530
+ /**
531
+ * For Push
532
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
533
+ */
534
+ safari: function() {
535
+ return UserAgent_DEPRECATED.webkit();
536
+ },
537
+
538
+ /**
539
+ * Check if the UA is a Chrome browser.
540
+ *
541
+ *
542
+ * @return float|NaN Version number (if match) or NaN.
543
+ */
544
+ chrome : function() {
545
+ return _populate() || _chrome;
546
+ },
547
+
548
+
549
+ /**
550
+ * Check if the user is running Windows.
551
+ *
552
+ * @return bool `true' if the user's OS is Windows.
553
+ */
554
+ windows: function() {
555
+ return _populate() || _windows;
556
+ },
557
+
558
+
559
+ /**
560
+ * Check if the user is running Mac OS X.
561
+ *
562
+ * @return float|bool Returns a float if a version number is detected,
563
+ * otherwise true/false.
564
+ */
565
+ osx: function() {
566
+ return _populate() || _osx;
567
+ },
568
+
569
+ /**
570
+ * Check if the user is running Linux.
571
+ *
572
+ * @return bool `true' if the user's OS is some flavor of Linux.
573
+ */
574
+ linux: function() {
575
+ return _populate() || _linux;
576
+ },
577
+
578
+ /**
579
+ * Check if the user is running on an iPhone or iPod platform.
580
+ *
581
+ * @return bool `true' if the user is running some flavor of the
582
+ * iPhone OS.
583
+ */
584
+ iphone: function() {
585
+ return _populate() || _iphone;
586
+ },
587
+
588
+ mobile: function() {
589
+ return _populate() || (_iphone || _ipad || _android || _mobile);
590
+ },
591
+
592
+ nativeApp: function() {
593
+ // webviews inside of the native apps
594
+ return _populate() || _native;
595
+ },
596
+
597
+ android: function() {
598
+ return _populate() || _android;
599
+ },
600
+
601
+ ipad: function() {
602
+ return _populate() || _ipad;
603
+ }
604
+ };
605
+
606
+ module.exports = UserAgent_DEPRECATED;
607
+
608
+
609
+ /***/ }),
610
+
611
+ /***/ 8283:
612
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
613
+
614
+ module.exports = __webpack_require__(5022);
615
+
616
+
617
+ /***/ })
618
+
619
+ /******/ });
620
+ /************************************************************************/
621
+ /******/ // The module cache
622
+ /******/ var __webpack_module_cache__ = {};
623
+ /******/
624
+ /******/ // The require function
625
+ /******/ function __webpack_require__(moduleId) {
626
+ /******/ // Check if module is in cache
627
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
628
+ /******/ if (cachedModule !== undefined) {
629
+ /******/ return cachedModule.exports;
630
+ /******/ }
631
+ /******/ // Create a new module (and put it into the cache)
632
+ /******/ var module = __webpack_module_cache__[moduleId] = {
633
+ /******/ // no module.id needed
634
+ /******/ // no module.loaded needed
635
+ /******/ exports: {}
636
+ /******/ };
637
+ /******/
638
+ /******/ // Execute the module function
639
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
640
+ /******/
641
+ /******/ // Return the exports of the module
642
+ /******/ return module.exports;
643
+ /******/ }
11
644
  /******/
12
645
  /************************************************************************/
646
+ /******/ /* webpack/runtime/compat get default export */
647
+ /******/ (() => {
648
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
649
+ /******/ __webpack_require__.n = (module) => {
650
+ /******/ var getter = module && module.__esModule ?
651
+ /******/ () => (module['default']) :
652
+ /******/ () => (module);
653
+ /******/ __webpack_require__.d(getter, { a: getter });
654
+ /******/ return getter;
655
+ /******/ };
656
+ /******/ })();
657
+ /******/
13
658
  /******/ /* webpack/runtime/define property getters */
14
659
  /******/ (() => {
15
660
  /******/ // define getter functions for harmony exports
@@ -39,11 +684,13 @@ __webpack_require__.d(__webpack_exports__, {
39
684
  "default": () => (/* binding */ src)
40
685
  });
41
686
 
42
- ;// CONCATENATED MODULE: external "../shared"
43
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
44
- var y = x => () => x
45
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
46
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
687
+ ;// external "../shared"
688
+ var x = (y) => {
689
+ var x = {}; __webpack_require__.d(x, y); return x
690
+ }
691
+ var y = (x) => (() => (x))
692
+ const shared_namespaceObject = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["renderDirectiveType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["withInstallProps"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps) });
693
+ ;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
47
694
  function _typeof(o) {
48
695
  "@babel/helpers - typeof";
49
696
 
@@ -53,7 +700,7 @@ function _typeof(o) {
53
700
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
54
701
  }, _typeof(o);
55
702
  }
56
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
703
+ ;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
57
704
 
58
705
  function toPrimitive(t, r) {
59
706
  if ("object" != _typeof(t) || !t) return t;
@@ -65,14 +712,14 @@ function toPrimitive(t, r) {
65
712
  }
66
713
  return ("string" === r ? String : Number)(t);
67
714
  }
68
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
715
+ ;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
69
716
 
70
717
 
71
718
  function toPropertyKey(t) {
72
719
  var i = toPrimitive(t, "string");
73
720
  return "symbol" == _typeof(i) ? i : String(i);
74
721
  }
75
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
722
+ ;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
76
723
 
77
724
  function _defineProperty(obj, key, value) {
78
725
  key = toPropertyKey(key);
@@ -88,11 +735,13 @@ function _defineProperty(obj, key, value) {
88
735
  }
89
736
  return obj;
90
737
  }
91
- ;// CONCATENATED MODULE: external "vue-types"
92
- var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
93
- var external_vue_types_y = x => () => x
94
- const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
95
- ;// CONCATENATED MODULE: ../../packages/tab/src/props.ts
738
+ ;// external "vue-types"
739
+ var external_vue_types_x = (y) => {
740
+ var x = {}; __webpack_require__.d(x, y); return x
741
+ }
742
+ var external_vue_types_y = (x) => (() => (x))
743
+ const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
744
+ ;// ../../packages/tab/src/props.ts
96
745
 
97
746
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
98
747
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -232,22 +881,22 @@ var tabNavProps = _objectSpread({
232
881
  labelHeight: shared_namespaceObject.PropTypes.number.def(50),
233
882
  validateActive: shared_namespaceObject.PropTypes.bool.def(true)
234
883
  }, tabNavEventProps);
235
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
884
+ ;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
236
885
  function _arrayLikeToArray(arr, len) {
237
886
  if (len == null || len > arr.length) len = arr.length;
238
887
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
239
888
  return arr2;
240
889
  }
241
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
890
+ ;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
242
891
 
243
892
  function _arrayWithoutHoles(arr) {
244
893
  if (Array.isArray(arr)) return _arrayLikeToArray(arr);
245
894
  }
246
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
895
+ ;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
247
896
  function _iterableToArray(iter) {
248
897
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
249
898
  }
250
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
899
+ ;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
251
900
 
252
901
  function _unsupportedIterableToArray(o, minLen) {
253
902
  if (!o) return;
@@ -257,11 +906,11 @@ function _unsupportedIterableToArray(o, minLen) {
257
906
  if (n === "Map" || n === "Set") return Array.from(o);
258
907
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
259
908
  }
260
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
909
+ ;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
261
910
  function _nonIterableSpread() {
262
911
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
263
912
  }
264
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
913
+ ;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
265
914
 
266
915
 
267
916
 
@@ -269,23 +918,655 @@ function _nonIterableSpread() {
269
918
  function _toConsumableArray(arr) {
270
919
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
271
920
  }
272
- ;// CONCATENATED MODULE: external "vue"
273
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
274
- var external_vue_y = x => () => x
275
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUpdated"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUpdated, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
276
- ;// CONCATENATED MODULE: external "../config-provider"
277
- var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
278
- var config_provider_y = x => () => x
279
- const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
280
- ;// CONCATENATED MODULE: external "../directives"
281
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
282
- var directives_y = x => () => x
283
- const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
284
- ;// CONCATENATED MODULE: external "../icon"
285
- var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
286
- var icon_y = x => () => x
287
- const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Plus"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Plus });
288
- ;// CONCATENATED MODULE: ../../packages/tab/src/tab-nav.tsx
921
+ ;// external "vue"
922
+ var external_vue_x = (y) => {
923
+ var x = {}; __webpack_require__.d(x, y); return x
924
+ }
925
+ var external_vue_y = (x) => (() => (x))
926
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Fragment), ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["getCurrentInstance"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["onUpdated"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onUpdated), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["vShow"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vShow), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
927
+ ;// external "../config-provider"
928
+ var config_provider_x = (y) => {
929
+ var x = {}; __webpack_require__.d(x, y); return x
930
+ }
931
+ var config_provider_y = (x) => (() => (x))
932
+ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
933
+ ;// ../../packages/directives/src/clickoutside.ts
934
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = clickoutside_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
935
+ function clickoutside_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return clickoutside_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return clickoutside_arrayLikeToArray(o, minLen); }
936
+ function clickoutside_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
937
+ /*
938
+ * Tencent is pleased to support the open source community by making
939
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
940
+ *
941
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
942
+ *
943
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
944
+ *
945
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
946
+ *
947
+ * ---------------------------------------------------
948
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
949
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
950
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
951
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
952
+ *
953
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
954
+ * the Software.
955
+ *
956
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
957
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
958
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
959
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
960
+ * IN THE SOFTWARE.
961
+ */
962
+ var isElement = function isElement(e) {
963
+ if (typeof Element === 'undefined') return false;
964
+ return e instanceof Element;
965
+ };
966
+ var nodeList = new Map();
967
+ var startClick;
968
+ document.addEventListener('mousedown', function (e) {
969
+ return startClick = e;
970
+ });
971
+ document.addEventListener('mouseup', function (e) {
972
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
973
+ _step;
974
+ try {
975
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
976
+ var handlers = _step.value;
977
+ var _iterator2 = _createForOfIteratorHelper(handlers),
978
+ _step2;
979
+ try {
980
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
981
+ var documentHandler = _step2.value.documentHandler;
982
+ documentHandler(e, startClick);
983
+ }
984
+ } catch (err) {
985
+ _iterator2.e(err);
986
+ } finally {
987
+ _iterator2.f();
988
+ }
989
+ }
990
+ } catch (err) {
991
+ _iterator.e(err);
992
+ } finally {
993
+ _iterator.f();
994
+ }
995
+ });
996
+ function createDocumentHandler(el, binding) {
997
+ var excludes = [];
998
+ if (Array.isArray(binding.arg)) {
999
+ excludes = binding.arg;
1000
+ } else if (isElement(binding.arg)) {
1001
+ excludes.push(binding.arg);
1002
+ }
1003
+ return function (mouseup, mousedown) {
1004
+ var popperRef = binding.instance.popperRef;
1005
+ var mouseUpTarget = mouseup.target;
1006
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
1007
+ var isBound = !binding || !binding.instance;
1008
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
1009
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
1010
+ var isSelf = el === mouseUpTarget;
1011
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
1012
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
1013
+ }) || excludes.length && excludes.includes(mouseDownTarget);
1014
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
1015
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
1016
+ return;
1017
+ }
1018
+ binding.value(mouseup, mousedown);
1019
+ };
1020
+ }
1021
+ var ClickOutside = {
1022
+ beforeMount: function beforeMount(el, binding) {
1023
+ if (!nodeList.has(el)) {
1024
+ nodeList.set(el, []);
1025
+ }
1026
+ nodeList.get(el).push({
1027
+ documentHandler: createDocumentHandler(el, binding),
1028
+ bindingFn: binding.value
1029
+ });
1030
+ },
1031
+ updated: function updated(el, binding) {
1032
+ if (!nodeList.has(el)) {
1033
+ nodeList.set(el, []);
1034
+ }
1035
+ var handlers = nodeList.get(el);
1036
+ var oldHandlerIndex = handlers.findIndex(function (item) {
1037
+ return item.bindingFn === binding.oldValue;
1038
+ });
1039
+ var newHandler = {
1040
+ documentHandler: createDocumentHandler(el, binding),
1041
+ bindingFn: binding.value
1042
+ };
1043
+ if (oldHandlerIndex >= 0) {
1044
+ // replace the old handler to the new handler
1045
+ handlers.splice(oldHandlerIndex, 1, newHandler);
1046
+ } else {
1047
+ handlers.push(newHandler);
1048
+ }
1049
+ },
1050
+ unmounted: function unmounted(el) {
1051
+ // remove all listeners when a component unmounted
1052
+ nodeList["delete"](el);
1053
+ }
1054
+ };
1055
+ ClickOutside.install = function (app) {
1056
+ app.directive('bkTooltips', ClickOutside);
1057
+ };
1058
+ /* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
1059
+ ;// external "../plugin-popover"
1060
+ var plugin_popover_x = (y) => {
1061
+ var x = {}; __webpack_require__.d(x, y); return x
1062
+ }
1063
+ var plugin_popover_y = (x) => (() => (x))
1064
+ const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
1065
+ ;// ../../packages/directives/src/ellipsis.ts
1066
+
1067
+ /*
1068
+ * Tencent is pleased to support the open source community by making
1069
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1070
+ *
1071
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1072
+ *
1073
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1074
+ *
1075
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1076
+ *
1077
+ * ---------------------------------------------------
1078
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1079
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1080
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1081
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1082
+ *
1083
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1084
+ * the Software.
1085
+ *
1086
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1087
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1088
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1089
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1090
+ * IN THE SOFTWARE.
1091
+ */
1092
+
1093
+ var resolveOptions = function resolveOptions(el, binding) {
1094
+ var options = {
1095
+ content: '',
1096
+ target: el
1097
+ };
1098
+ if (_typeof(binding) === 'object') {
1099
+ Object.assign(options, binding);
1100
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
1101
+ Object.assign(options, binding.popoverOption);
1102
+ }
1103
+ } else {
1104
+ options.content = binding;
1105
+ }
1106
+ return options;
1107
+ };
1108
+ var createInstance = function createInstance(el, binding) {
1109
+ var instance = null;
1110
+ var createTimer = null;
1111
+ var hidePopTimer = null;
1112
+ var options = resolveOptions(el, binding);
1113
+ var disabled = options.disabled;
1114
+ if (disabled || instance) {
1115
+ return;
1116
+ }
1117
+ var handleContentEnter = function handleContentEnter() {
1118
+ hidePopTimer && clearTimeout(hidePopTimer);
1119
+ hidePopTimer = null;
1120
+ };
1121
+ var handleContentLeave = function handleContentLeave() {
1122
+ var _instance, _instance2;
1123
+ if (createTimer) {
1124
+ clearTimeout(createTimer);
1125
+ }
1126
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
1127
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
1128
+ instance = null;
1129
+ };
1130
+ var handleMouseEnter = function handleMouseEnter() {
1131
+ handleContentLeave();
1132
+ createTimer && clearTimeout(createTimer);
1133
+ createTimer = setTimeout(function () {
1134
+ var targetOptions = resolveOptions(el, binding);
1135
+ targetOptions.isShow = true;
1136
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
1137
+ targetOptions.allowHtml = true;
1138
+ Object.assign(targetOptions, {
1139
+ onContentMouseenter: handleContentEnter,
1140
+ onContentMouseleave: handleContentLeave
1141
+ });
1142
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
1143
+ }, 300);
1144
+ };
1145
+ var handleMouseLeave = function handleMouseLeave() {
1146
+ hidePopTimer = setTimeout(function () {
1147
+ var _instance3, _instance4;
1148
+ if (createTimer) {
1149
+ clearTimeout(createTimer);
1150
+ }
1151
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
1152
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
1153
+ instance = null;
1154
+ }, 120);
1155
+ };
1156
+ el.addEventListener('mouseenter', handleMouseEnter);
1157
+ el.addEventListener('mouseleave', handleMouseLeave);
1158
+ var destroyInstance = function destroyInstance(element) {
1159
+ var _ref, _ref2;
1160
+ handleMouseLeave();
1161
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
1162
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
1163
+ };
1164
+ return {
1165
+ destroyInstance: destroyInstance,
1166
+ instance: instance
1167
+ };
1168
+ };
1169
+ var ellipsis = {
1170
+ mounted: function mounted(el, binding) {
1171
+ createInstance(el, binding);
1172
+ }
1173
+ };
1174
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
1175
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
1176
+ var normalize_wheel = __webpack_require__(8283);
1177
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
1178
+ ;// ../../packages/directives/src/mousewheel.ts
1179
+ /*
1180
+ * Tencent is pleased to support the open source community by making
1181
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1182
+ *
1183
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1184
+ *
1185
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1186
+ *
1187
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1188
+ *
1189
+ * ---------------------------------------------------
1190
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1191
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1192
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1193
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1194
+ *
1195
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1196
+ * the Software.
1197
+ *
1198
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1199
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1200
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1201
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1202
+ * IN THE SOFTWARE.
1203
+ */
1204
+
1205
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
1206
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
1207
+ if (element !== null && element !== void 0 && element.addEventListener) {
1208
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
1209
+ var normalized = normalize_wheel_default()(e);
1210
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
1211
+ });
1212
+ }
1213
+ };
1214
+ var mousewheel = {
1215
+ beforeMount: function beforeMount(el, binding) {
1216
+ mousewheelHandler(el, binding.value);
1217
+ }
1218
+ };
1219
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
1220
+ ;// external "@popperjs/core"
1221
+ var core_x = (y) => {
1222
+ var x = {}; __webpack_require__.d(x, y); return x
1223
+ }
1224
+ var core_y = (x) => (() => (x))
1225
+ const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
1226
+ ;// ../../packages/directives/src/tooltips.ts
1227
+
1228
+
1229
+
1230
+ function tooltips_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1231
+ function tooltips_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? tooltips_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : tooltips_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1232
+ /*
1233
+ * Tencent is pleased to support the open source community by making
1234
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1235
+ *
1236
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1237
+ *
1238
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1239
+ *
1240
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1241
+ *
1242
+ * ---------------------------------------------------
1243
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1244
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1245
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1246
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1247
+ *
1248
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1249
+ * the Software.
1250
+ *
1251
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1252
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1253
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1254
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1255
+ * IN THE SOFTWARE.
1256
+ */
1257
+
1258
+
1259
+
1260
+ var tooltips_nodeList = new WeakMap();
1261
+ var tooltips = {
1262
+ beforeMount: function beforeMount(el, binding) {
1263
+ var opts = getOpts(binding);
1264
+ var trigger = opts.trigger,
1265
+ showOnInit = opts.showOnInit;
1266
+ var popper = renderContent(opts);
1267
+ var delayTimeout = null;
1268
+ if (showOnInit) {
1269
+ (0,external_vue_namespaceObject.nextTick)(function () {
1270
+ show(el);
1271
+ });
1272
+ }
1273
+ if (trigger === 'hover') {
1274
+ var hideTimeout = null;
1275
+ el.addEventListener('mouseenter', function () {
1276
+ delayTimeout = setTimeout(function () {
1277
+ show(el);
1278
+ clearTimeout(hideTimeout);
1279
+ clearTimeout(delayTimeout);
1280
+ }, opts.delay);
1281
+ });
1282
+ popper.addEventListener('mouseenter', function () {
1283
+ clearTimeout(hideTimeout);
1284
+ });
1285
+ el.addEventListener('mouseleave', function () {
1286
+ clearTimeout(delayTimeout);
1287
+ hideTimeout = setTimeout(function () {
1288
+ hide(el);
1289
+ }, 100);
1290
+ });
1291
+ el.addEventListener('click', function () {
1292
+ hide(el);
1293
+ });
1294
+ popper.addEventListener('mouseleave', function () {
1295
+ clearTimeout(delayTimeout);
1296
+ hideTimeout = setTimeout(function () {
1297
+ hide(el);
1298
+ }, 100);
1299
+ });
1300
+ } else if (trigger === 'click') {
1301
+ document.body.addEventListener('click', function (event) {
1302
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
1303
+ delayTimeout = setTimeout(function () {
1304
+ show(el);
1305
+ clearTimeout(delayTimeout);
1306
+ }, opts.delay);
1307
+ } else if (popper.hasAttribute('data-show')) {
1308
+ hide(el);
1309
+ }
1310
+ });
1311
+ }
1312
+ tooltips_nodeList.set(el, {
1313
+ opts: opts,
1314
+ popper: popper,
1315
+ popperInstance: null
1316
+ });
1317
+ },
1318
+ updated: function updated(el, binding) {
1319
+ if (tooltips_nodeList.get(el)) {
1320
+ tooltips_nodeList.get(el).opts = getOpts(binding);
1321
+ }
1322
+ },
1323
+ unmounted: function unmounted(el) {
1324
+ hide(el);
1325
+ tooltips_nodeList["delete"](el);
1326
+ }
1327
+ };
1328
+ /**
1329
+ * 初始化配置
1330
+ * @returns tooltips配置
1331
+ */
1332
+ function initOptions() {
1333
+ var defaultOpts = {
1334
+ arrow: true,
1335
+ disabled: false,
1336
+ trigger: 'hover',
1337
+ theme: 'dark',
1338
+ content: '',
1339
+ showOnInit: false,
1340
+ placement: 'top',
1341
+ distance: 8,
1342
+ extCls: '',
1343
+ sameWidth: false,
1344
+ delay: 0,
1345
+ onShow: function onShow() {},
1346
+ onHide: function onHide() {}
1347
+ };
1348
+ return defaultOpts;
1349
+ }
1350
+ /**
1351
+ * 获取配置
1352
+ * @returns tooltips配置
1353
+ */
1354
+ function getOpts(binding) {
1355
+ var opts = initOptions();
1356
+ if (_typeof(binding.value) === 'object') {
1357
+ Object.assign(opts, binding.value);
1358
+ } else {
1359
+ opts.content = binding.value;
1360
+ }
1361
+ return opts;
1362
+ }
1363
+ /**
1364
+ * 创建tooltips DOM
1365
+ * @param opts
1366
+ * @returns
1367
+ */
1368
+ function renderContext(value, content) {
1369
+ if (typeof value === 'string') {
1370
+ content.innerText = value;
1371
+ } else {
1372
+ // 如果 content 是 Vue 组件的实例,则挂载它
1373
+ var container = document.createElement('div');
1374
+ var vnode = (0,external_vue_namespaceObject.h)(value);
1375
+ (0,external_vue_namespaceObject.render)(vnode, container);
1376
+ content.innerHTML = container.innerHTML;
1377
+ }
1378
+ }
1379
+ function renderContent(opts) {
1380
+ var value = opts.content,
1381
+ hasArrow = opts.arrow,
1382
+ theme = opts.theme,
1383
+ extCls = opts.extCls;
1384
+ var isLight = theme === 'light';
1385
+ var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
1386
+ var content = document.createElement('div');
1387
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1388
+ content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
1389
+ content.innerText = value;
1390
+ content.style.zIndex = String(zIndex);
1391
+ renderContext(value, content);
1392
+ if (hasArrow) {
1393
+ var arrow = renderArrow();
1394
+ content.appendChild(arrow);
1395
+ }
1396
+ return content;
1397
+ }
1398
+ /**
1399
+ * 渲染箭头dom
1400
+ * @returns arrow DOM
1401
+ */
1402
+ function renderArrow() {
1403
+ var arrow = document.createElement('div');
1404
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1405
+ arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
1406
+ arrow.setAttribute('data-popper-arrow', '');
1407
+ return arrow;
1408
+ }
1409
+ /**
1410
+ * 创建popper实例
1411
+ * @param el
1412
+ * @param popper
1413
+ * @returns popper实例
1414
+ */
1415
+ function createPopperInstance(el, popper) {
1416
+ var _nodeList$get = tooltips_nodeList.get(el),
1417
+ opts = _nodeList$get.opts;
1418
+ var placement = opts.placement,
1419
+ distance = opts.distance,
1420
+ sameWidth = opts.sameWidth;
1421
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
1422
+ placement: placement,
1423
+ modifiers: [{
1424
+ name: 'offset',
1425
+ options: {
1426
+ offset: [0, distance]
1427
+ }
1428
+ }, {
1429
+ name: 'arrow',
1430
+ options: {
1431
+ padding: 5
1432
+ }
1433
+ }].concat(_toConsumableArray(sameWidth ? [{
1434
+ name: 'sameWidth',
1435
+ enabled: true,
1436
+ phase: 'beforeWrite',
1437
+ requires: ['computeStyles'],
1438
+ fn: function fn(_ref) {
1439
+ var state = _ref.state;
1440
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
1441
+ },
1442
+ effect: function effect(_ref2) {
1443
+ var state = _ref2.state;
1444
+ state.elements.popper.style.overflowWrap = 'break-word';
1445
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
1446
+ }
1447
+ }] : []))
1448
+ });
1449
+ return popperInstance;
1450
+ }
1451
+ /**
1452
+ * 显示
1453
+ * @param el
1454
+ */
1455
+ function show(el) {
1456
+ var _nodeList$get2 = tooltips_nodeList.get(el),
1457
+ popper = _nodeList$get2.popper,
1458
+ opts = _nodeList$get2.opts;
1459
+ var disabled = opts.disabled,
1460
+ content = opts.content,
1461
+ hasArrow = opts.arrow,
1462
+ onShow = opts.onShow,
1463
+ boundary = opts.boundary,
1464
+ _opts$modifiers = opts.modifiers,
1465
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
1466
+ if (disabled) return;
1467
+ renderContext(content, popper);
1468
+ if (hasArrow) {
1469
+ var arrow = renderArrow();
1470
+ popper.appendChild(arrow);
1471
+ }
1472
+ var container = document.body;
1473
+ if (boundary) {
1474
+ if (boundary === 'parent') {
1475
+ container = el.parentElement;
1476
+ } else if (boundary instanceof HTMLElement) {
1477
+ container = boundary;
1478
+ }
1479
+ }
1480
+ container.appendChild(popper);
1481
+ var popperInstance = createPopperInstance(el, popper);
1482
+ onShow();
1483
+ // Make the tooltip visible
1484
+ popper.setAttribute('data-show', '');
1485
+ // Enable the event listeners
1486
+ popperInstance.setOptions(function (options) {
1487
+ return tooltips_objectSpread(tooltips_objectSpread({}, options), {}, {
1488
+ modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
1489
+ name: 'eventListeners',
1490
+ enabled: true
1491
+ }])
1492
+ });
1493
+ });
1494
+ // Update its position
1495
+ popperInstance.forceUpdate();
1496
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
1497
+ }
1498
+ /**
1499
+ * 隐藏
1500
+ * @param el
1501
+ */
1502
+ function hide(el) {
1503
+ if (!tooltips_nodeList.get(el)) return;
1504
+ var _nodeList$get3 = tooltips_nodeList.get(el),
1505
+ popper = _nodeList$get3.popper,
1506
+ popperInstance = _nodeList$get3.popperInstance,
1507
+ opts = _nodeList$get3.opts;
1508
+ var onHide = opts.onHide;
1509
+ if (popper && document.body.contains(popper)) {
1510
+ var _popper$parentNode;
1511
+ popper.removeAttribute('data-show');
1512
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
1513
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
1514
+ onHide();
1515
+ }
1516
+ }
1517
+ /* harmony default export */ const src_tooltips = (tooltips);
1518
+ ;// external "../loading"
1519
+ var external_loading_x = (y) => {
1520
+ var x = {}; __webpack_require__.d(x, y); return x
1521
+ }
1522
+ var external_loading_y = (x) => (() => (x))
1523
+ const external_loading_namespaceObject = external_loading_x({ });
1524
+ ;// external "../overflow-title"
1525
+ var external_overflow_title_x = (y) => {
1526
+ var x = {}; __webpack_require__.d(x, y); return x
1527
+ }
1528
+ var external_overflow_title_y = (x) => (() => (x))
1529
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
1530
+ ;// ../../packages/directives/src/index.ts
1531
+ /*
1532
+ * Tencent is pleased to support the open source community by making
1533
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1534
+ *
1535
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1536
+ *
1537
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1538
+ *
1539
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1540
+ *
1541
+ * ---------------------------------------------------
1542
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1543
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1544
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1545
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1546
+ *
1547
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1548
+ * the Software.
1549
+ *
1550
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1551
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1552
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1553
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1554
+ * IN THE SOFTWARE.
1555
+ */
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
1563
+ ;// external "../icon"
1564
+ var icon_x = (y) => {
1565
+ var x = {}; __webpack_require__.d(x, y); return x
1566
+ }
1567
+ var icon_y = (x) => (() => (x))
1568
+ const icon_namespaceObject = icon_x({ ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Plus"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Plus) });
1569
+ ;// ../../packages/tab/src/tab-nav.tsx
289
1570
 
290
1571
 
291
1572
  function tab_nav_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -323,7 +1604,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
323
1604
  /* harmony default export */ const tab_nav = ((0,external_vue_namespaceObject.defineComponent)({
324
1605
  name: 'TabNav',
325
1606
  directives: {
326
- bkTooltips: directives_namespaceObject.bkTooltips
1607
+ bkTooltips: src_tooltips
327
1608
  },
328
1609
  props: tabNavProps,
329
1610
  setup: function setup(props) {
@@ -632,7 +1913,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
632
1913
  }, [renderActiveBar(), renderNavs()]), operations, setting]);
633
1914
  }
634
1915
  }));
635
- ;// CONCATENATED MODULE: ../../packages/tab/src/tab.tsx
1916
+ ;// ../../packages/tab/src/tab.tsx
636
1917
 
637
1918
 
638
1919
 
@@ -847,7 +2128,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
847
2128
  }, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)])]);
848
2129
  }
849
2130
  }));
850
- ;// CONCATENATED MODULE: ../../packages/tab/src/tab-panel.tsx
2131
+ ;// ../../packages/tab/src/tab-panel.tsx
851
2132
 
852
2133
  /*
853
2134
  * Tencent is pleased to support the open source community by making
@@ -907,7 +2188,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
907
2188
  }, [getContent()]), [[external_vue_namespaceObject.vShow, active]]);
908
2189
  }
909
2190
  }));
910
- ;// CONCATENATED MODULE: ../../packages/tab/src/index.ts
2191
+ ;// ../../packages/tab/src/index.ts
911
2192
 
912
2193
 
913
2194