bkui-vue 2.0.1-beta.106 → 2.0.1-beta.108

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 (253) hide show
  1. package/dist/index.cjs.js +71 -71
  2. package/dist/index.esm.js +18609 -18772
  3. package/dist/index.umd.js +70 -70
  4. package/dist/style.css +1 -1
  5. package/lib/affix/index.d.ts +111 -57
  6. package/lib/affix/index.js +17 -17
  7. package/lib/alert/index.d.ts +126 -73
  8. package/lib/alert/index.js +20 -20
  9. package/lib/animate-number/index.d.ts +96 -33
  10. package/lib/animate-number/index.js +7 -8
  11. package/lib/backtop/index.d.ts +117 -69
  12. package/lib/backtop/index.js +10 -11
  13. package/lib/badge/index.d.ts +152 -119
  14. package/lib/badge/index.js +19 -19
  15. package/lib/breadcrumb/index.d.ts +119 -67
  16. package/lib/breadcrumb/index.js +17 -17
  17. package/lib/button/button.d.ts +2 -2
  18. package/lib/button/index.d.ts +155 -119
  19. package/lib/button/index.js +20 -19
  20. package/lib/card/index.d.ts +157 -128
  21. package/lib/card/index.js +22 -20
  22. package/lib/cascader/cascader.d.ts +3 -3
  23. package/lib/cascader/index.d.ts +354 -393
  24. package/lib/cascader/index.js +268 -270
  25. package/lib/checkbox/checkbox.d.ts +1 -1
  26. package/lib/checkbox/index.d.ts +175 -143
  27. package/lib/checkbox/index.js +45 -45
  28. package/lib/code-diff/index.d.ts +82 -65
  29. package/lib/code-diff/index.js +438 -381
  30. package/lib/collapse/index.d.ts +175 -156
  31. package/lib/collapse/index.js +27 -28
  32. package/lib/collapse-transition/index.d.ts +94 -19
  33. package/lib/collapse-transition/index.js +3 -4
  34. package/lib/color-picker/color-picker.d.ts +1 -1
  35. package/lib/color-picker/index.d.ts +165 -144
  36. package/lib/color-picker/index.js +41 -43
  37. package/lib/config-provider/index.d.ts +227 -160
  38. package/lib/config-provider/index.js +22 -25
  39. package/lib/config-provider/use-global-config.d.ts +0 -1
  40. package/lib/container/container.d.ts +1 -1
  41. package/lib/container/index.d.ts +85 -74
  42. package/lib/container/index.js +26 -28
  43. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  44. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  45. package/lib/date-picker/date-picker.d.ts +4 -4
  46. package/lib/date-picker/index.d.ts +351 -380
  47. package/lib/date-picker/index.js +79 -80
  48. package/lib/date-picker/panel/date-range.d.ts +1 -1
  49. package/lib/date-picker/panel/date.d.ts +1 -1
  50. package/lib/date-picker/panel/time-range.d.ts +2 -2
  51. package/lib/date-picker/panel/time.d.ts +2 -2
  52. package/lib/date-picker/time-picker.d.ts +4 -4
  53. package/lib/dialog/index.d.ts +269 -299
  54. package/lib/dialog/index.js +228 -227
  55. package/lib/directives/index.js +33 -41
  56. package/lib/divider/index.d.ts +111 -57
  57. package/lib/divider/index.js +2 -3
  58. package/lib/dropdown/dropdown.d.ts +1 -1
  59. package/lib/dropdown/index.d.ts +136 -94
  60. package/lib/dropdown/index.js +22 -24
  61. package/lib/exception/index.d.ts +102 -41
  62. package/lib/exception/index.js +21 -21
  63. package/lib/fixed-navbar/index.d.ts +113 -59
  64. package/lib/fixed-navbar/index.js +2 -3
  65. package/lib/form/form.d.ts +1 -1
  66. package/lib/form/index.d.ts +132 -80
  67. package/lib/form/index.js +22 -21
  68. package/lib/icon/angle-double-down-line.js +17 -17
  69. package/lib/icon/angle-double-left-line.js +17 -17
  70. package/lib/icon/angle-double-left.js +17 -17
  71. package/lib/icon/angle-double-right-line.js +17 -17
  72. package/lib/icon/angle-double-right.js +17 -17
  73. package/lib/icon/angle-double-up-line.js +17 -17
  74. package/lib/icon/angle-down-fill.js +17 -17
  75. package/lib/icon/angle-down-line.js +17 -17
  76. package/lib/icon/angle-down.js +17 -17
  77. package/lib/icon/angle-left.js +17 -17
  78. package/lib/icon/angle-right.js +17 -17
  79. package/lib/icon/angle-up-fill.js +17 -17
  80. package/lib/icon/angle-up.js +17 -17
  81. package/lib/icon/archive-fill.js +17 -17
  82. package/lib/icon/arrows-left.js +17 -17
  83. package/lib/icon/arrows-right.js +17 -17
  84. package/lib/icon/assistant.js +17 -17
  85. package/lib/icon/audio-fill.js +17 -17
  86. package/lib/icon/bk.js +17 -17
  87. package/lib/icon/circle.js +17 -17
  88. package/lib/icon/close-line.js +17 -17
  89. package/lib/icon/close.js +17 -17
  90. package/lib/icon/code.js +17 -17
  91. package/lib/icon/cog-shape.js +17 -17
  92. package/lib/icon/collapse-left.js +17 -17
  93. package/lib/icon/copy-shape.js +17 -17
  94. package/lib/icon/copy.js +17 -17
  95. package/lib/icon/data-shape.js +17 -17
  96. package/lib/icon/del.js +17 -17
  97. package/lib/icon/doc-fill.js +17 -17
  98. package/lib/icon/done.js +17 -17
  99. package/lib/icon/down-shape.js +17 -17
  100. package/lib/icon/down-small.js +17 -17
  101. package/lib/icon/edit-line.js +17 -17
  102. package/lib/icon/ellipsis.js +17 -17
  103. package/lib/icon/enlarge-line.js +17 -17
  104. package/lib/icon/error.js +17 -17
  105. package/lib/icon/excel-fill.js +17 -17
  106. package/lib/icon/exclamation-circle-shape.js +17 -17
  107. package/lib/icon/eye.js +17 -17
  108. package/lib/icon/filliscreen-line.js +17 -17
  109. package/lib/icon/fix-line.js +17 -17
  110. package/lib/icon/fix-shape.js +17 -17
  111. package/lib/icon/folder-open.js +17 -17
  112. package/lib/icon/folder-shape-open.js +17 -17
  113. package/lib/icon/folder-shape.js +17 -17
  114. package/lib/icon/folder.js +17 -17
  115. package/lib/icon/funnel.js +17 -17
  116. package/lib/icon/grag-fill.js +17 -17
  117. package/lib/icon/help-document-fill.js +17 -17
  118. package/lib/icon/help-fill.js +17 -17
  119. package/lib/icon/help.js +17 -17
  120. package/lib/icon/image-fill.js +17 -17
  121. package/lib/icon/img-error.js +17 -17
  122. package/lib/icon/img-placehoulder.js +17 -17
  123. package/lib/icon/info-line.js +17 -17
  124. package/lib/icon/info.js +17 -17
  125. package/lib/icon/left-shape.js +17 -17
  126. package/lib/icon/left-turn-line.js +17 -17
  127. package/lib/icon/loading.js +17 -17
  128. package/lib/icon/narrow-line.js +17 -17
  129. package/lib/icon/original.js +17 -17
  130. package/lib/icon/pdf-fill.js +17 -17
  131. package/lib/icon/play-shape.js +17 -17
  132. package/lib/icon/plus.js +17 -17
  133. package/lib/icon/ppt-fill.js +17 -17
  134. package/lib/icon/qq.js +17 -17
  135. package/lib/icon/right-shape.js +17 -17
  136. package/lib/icon/right-turn-line.js +17 -17
  137. package/lib/icon/search.js +17 -17
  138. package/lib/icon/share.js +17 -17
  139. package/lib/icon/spinner.js +17 -17
  140. package/lib/icon/success.js +17 -17
  141. package/lib/icon/switcher-loading.js +17 -17
  142. package/lib/icon/text-all.js +17 -17
  143. package/lib/icon/text-file.js +17 -17
  144. package/lib/icon/text-fill.js +17 -17
  145. package/lib/icon/transfer.js +17 -17
  146. package/lib/icon/tree-application-shape.js +17 -17
  147. package/lib/icon/unfull-screen.js +17 -17
  148. package/lib/icon/unvisible.js +17 -17
  149. package/lib/icon/up-shape.js +17 -17
  150. package/lib/icon/upload.js +17 -17
  151. package/lib/icon/video-fill.js +17 -17
  152. package/lib/icon/warn.js +17 -17
  153. package/lib/icon/weixin-pro.js +17 -17
  154. package/lib/icon/weixin.js +17 -17
  155. package/lib/image/index.d.ts +149 -113
  156. package/lib/image/index.js +26 -27
  157. package/lib/index.js +1 -1
  158. package/lib/info-box/index.js +233 -232
  159. package/lib/input/index.d.ts +293 -326
  160. package/lib/input/index.js +48 -46
  161. package/lib/link/index.d.ts +122 -73
  162. package/lib/link/index.js +2 -2
  163. package/lib/loading/index.d.ts +156 -130
  164. package/lib/loading/index.js +33 -32
  165. package/lib/loading/loading.d.ts +1 -1
  166. package/lib/menu/index.d.ts +116 -55
  167. package/lib/menu/index.js +25 -26
  168. package/lib/message/index.js +25 -24
  169. package/lib/message/messageConstructor.d.ts +5 -5
  170. package/lib/modal/index.d.ts +185 -171
  171. package/lib/modal/index.js +19 -19
  172. package/lib/navigation/index.d.ts +188 -152
  173. package/lib/navigation/index.js +7 -9
  174. package/lib/notify/index.js +21 -20
  175. package/lib/overflow-title/index.d.ts +256 -343
  176. package/lib/overflow-title/index.js +10 -11
  177. package/lib/pagination/index.d.ts +198 -184
  178. package/lib/pagination/index.js +56 -49
  179. package/lib/plugin-popover/index.js +135 -233
  180. package/lib/pop-confirm/index.d.ts +153 -115
  181. package/lib/pop-confirm/index.js +4 -5
  182. package/lib/pop-confirm/pop-confirm.d.ts +1 -1
  183. package/lib/popover/content.d.ts +1 -1
  184. package/lib/popover/index.d.ts +361 -423
  185. package/lib/popover/index.js +135 -233
  186. package/lib/popover/popover.d.ts +1 -1
  187. package/lib/popover/use-popover-init.d.ts +1 -2
  188. package/lib/popover2/index.d.ts +83 -8
  189. package/lib/popover2/index.js +2 -2
  190. package/lib/process/index.d.ts +137 -93
  191. package/lib/process/index.js +226 -226
  192. package/lib/progress/index.d.ts +187 -178
  193. package/lib/progress/index.js +21 -22
  194. package/lib/progress/progress.d.ts +2 -2
  195. package/lib/radio/index.d.ts +140 -91
  196. package/lib/radio/index.js +48 -46
  197. package/lib/rate/index.d.ts +112 -55
  198. package/lib/rate/index.js +20 -19
  199. package/lib/resize-layout/index.d.ts +192 -168
  200. package/lib/resize-layout/index.js +21 -20
  201. package/lib/resize-layout/resize-layout.d.ts +2 -2
  202. package/lib/scrollbar/index.js +38 -38
  203. package/lib/search-select/index.d.ts +901 -684
  204. package/lib/search-select/index.js +274 -274
  205. package/lib/search-select/input.d.ts +2 -2
  206. package/lib/search-select/search-select.d.ts +188 -133
  207. package/lib/search-select/selected.d.ts +188 -133
  208. package/lib/select/index.d.ts +1333 -1491
  209. package/lib/select/index.js +280 -279
  210. package/lib/select/select.d.ts +169 -132
  211. package/lib/select/selectTagInput.d.ts +2 -2
  212. package/lib/shared/index.js +56 -54
  213. package/lib/sideslider/index.d.ts +201 -197
  214. package/lib/sideslider/index.js +228 -227
  215. package/lib/slider/index.d.ts +210 -214
  216. package/lib/slider/index.js +225 -226
  217. package/lib/steps/index.d.ts +149 -110
  218. package/lib/steps/index.js +231 -230
  219. package/lib/swiper/index.d.ts +127 -81
  220. package/lib/swiper/index.js +18 -18
  221. package/lib/switcher/index.d.ts +174 -152
  222. package/lib/switcher/index.js +22 -20
  223. package/lib/tab/index.d.ts +183 -151
  224. package/lib/tab/index.js +19 -20
  225. package/lib/table/components/table-column.d.ts +1 -1
  226. package/lib/table/hooks/use-columns.d.ts +1 -1
  227. package/lib/table/hooks/use-layout.d.ts +2 -2
  228. package/lib/table/hooks/use-rows.d.ts +1 -1
  229. package/lib/table/index.d.ts +362 -457
  230. package/lib/table/index.js +350 -338
  231. package/lib/table/table.d.ts +1 -1
  232. package/lib/table-column/index.d.ts +150 -104
  233. package/lib/table-column/index.js +19 -18
  234. package/lib/tag/index.d.ts +142 -95
  235. package/lib/tag/index.js +19 -19
  236. package/lib/tag-input/index.d.ts +540 -755
  237. package/lib/tag-input/index.js +58 -52
  238. package/lib/tag-input/tag-input.d.ts +5 -5
  239. package/lib/time-picker/index.d.ts +386 -439
  240. package/lib/timeline/index.d.ts +131 -64
  241. package/lib/timeline/index.js +6 -6
  242. package/lib/transfer/index.d.ts +206 -191
  243. package/lib/tree/index.d.ts +308 -350
  244. package/lib/tree/index.js +74 -71
  245. package/lib/tree/tree.d.ts +1 -1
  246. package/lib/tree/use-tree-init.d.ts +1 -1
  247. package/lib/upload/index.d.ts +273 -311
  248. package/lib/upload/index.js +264 -261
  249. package/lib/upload/upload.d.ts +2 -2
  250. package/lib/virtual-render/index.d.ts +241 -333
  251. package/lib/virtual-render/index.js +29 -29
  252. package/lib/virtual-render/virtual-render.d.ts +1 -1
  253. package/package.json +1 -1
@@ -17306,38 +17306,38 @@ __webpack_require__.d(__webpack_exports__, {
17306
17306
  });
17307
17307
 
17308
17308
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
17309
- function _typeof(o) {
17309
+ function _typeof(obj) {
17310
17310
  "@babel/helpers - typeof";
17311
17311
 
17312
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
17313
- return typeof o;
17314
- } : function (o) {
17315
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
17316
- }, _typeof(o);
17312
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17313
+ return typeof obj;
17314
+ } : function (obj) {
17315
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17316
+ }, _typeof(obj);
17317
17317
  }
17318
17318
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
17319
17319
 
17320
- function toPrimitive(t, r) {
17321
- if ("object" != _typeof(t) || !t) return t;
17322
- var e = t[Symbol.toPrimitive];
17323
- if (void 0 !== e) {
17324
- var i = e.call(t, r || "default");
17325
- if ("object" != _typeof(i)) return i;
17320
+ function _toPrimitive(input, hint) {
17321
+ if (_typeof(input) !== "object" || input === null) return input;
17322
+ var prim = input[Symbol.toPrimitive];
17323
+ if (prim !== undefined) {
17324
+ var res = prim.call(input, hint || "default");
17325
+ if (_typeof(res) !== "object") return res;
17326
17326
  throw new TypeError("@@toPrimitive must return a primitive value.");
17327
17327
  }
17328
- return ("string" === r ? String : Number)(t);
17328
+ return (hint === "string" ? String : Number)(input);
17329
17329
  }
17330
17330
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
17331
17331
 
17332
17332
 
17333
- function toPropertyKey(t) {
17334
- var i = toPrimitive(t, "string");
17335
- return "symbol" == _typeof(i) ? i : String(i);
17333
+ function _toPropertyKey(arg) {
17334
+ var key = _toPrimitive(arg, "string");
17335
+ return _typeof(key) === "symbol" ? key : String(key);
17336
17336
  }
17337
17337
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
17338
17338
 
17339
17339
  function _defineProperty(obj, key, value) {
17340
- key = toPropertyKey(key);
17340
+ key = _toPropertyKey(key);
17341
17341
  if (key in obj) {
17342
17342
  Object.defineProperty(obj, key, {
17343
17343
  value: value,
@@ -17353,15 +17353,15 @@ function _defineProperty(obj, key, value) {
17353
17353
  ;// CONCATENATED MODULE: external "vue"
17354
17354
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17355
17355
  var y = x => () => x
17356
- const external_vue_namespaceObject = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
17356
+ const external_vue_namespaceObject = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
17357
17357
  ;// CONCATENATED MODULE: external "../shared"
17358
17358
  var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17359
17359
  var shared_y = x => () => x
17360
17360
  const shared_namespaceObject = shared_x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType });
17361
17361
  ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
17362
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _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; } } }; }
17363
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _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 _arrayLikeToArray(o, minLen); }
17364
- function _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; }
17362
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
17363
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
17364
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
17365
17365
  /*
17366
17366
  * Tencent is pleased to support the open source community by making
17367
17367
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -17516,8 +17516,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
17516
17516
  * IN THE SOFTWARE.
17517
17517
  */
17518
17518
 
17519
-
17520
- /* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
17519
+ /* harmony default export */ const src_arrow = (defineComponent({
17521
17520
  name: 'PopArrow',
17522
17521
  render: function render() {
17523
17522
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
@@ -17530,6 +17529,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
17530
17529
  }));
17531
17530
  ;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
17532
17531
 
17532
+ var _EMIT_EVENT_TYPES;
17533
17533
  /* eslint-disable @typescript-eslint/naming-convention */
17534
17534
  /*
17535
17535
  * Tencent is pleased to support the open source community by making
@@ -17573,7 +17573,7 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
17573
17573
  var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
17574
17574
  return true;
17575
17575
  };
17576
- var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN);
17576
+ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN), _EMIT_EVENT_TYPES);
17577
17577
  ;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
17578
17578
 
17579
17579
  /*
@@ -17603,8 +17603,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
17603
17603
  */
17604
17604
 
17605
17605
 
17606
-
17607
- /* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
17606
+ /* harmony default export */ const content = (defineComponent({
17608
17607
  name: 'PopContent',
17609
17608
  props: {
17610
17609
  width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
@@ -17624,7 +17623,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
17624
17623
  }
17625
17624
  return val;
17626
17625
  };
17627
- var style = (0,external_vue_namespaceObject.computed)(function () {
17626
+ var style = computed(function () {
17628
17627
  return {
17629
17628
  width: resolveValToPix(props.width),
17630
17629
  height: resolveValToPix(props.height),
@@ -17632,8 +17631,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
17632
17631
  maxWidth: resolveValToPix(props.maxWidth)
17633
17632
  };
17634
17633
  });
17635
- var refContent = (0,external_vue_namespaceObject.ref)(null);
17636
- var refTimer = (0,external_vue_namespaceObject.ref)(null);
17634
+ var refContent = ref(null);
17635
+ var refTimer = ref(null);
17637
17636
  var handleClick = function handleClick(evt) {
17638
17637
  evt.stopPropagation();
17639
17638
  emit('click', evt);
@@ -17653,11 +17652,11 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
17653
17652
  if (props.eventDelay === 0) {
17654
17653
  return;
17655
17654
  }
17656
- (_refContent$value = refContent.value) === null || _refContent$value === void 0 || _refContent$value.style.setProperty('pointer-events', val);
17655
+ (_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.style.setProperty('pointer-events', val);
17657
17656
  };
17658
17657
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
17659
17658
  resolveClassName = _usePrefix.resolveClassName;
17660
- var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
17659
+ var contentClassName = computed(function () {
17661
17660
  return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
17662
17661
  });
17663
17662
  return {
@@ -17681,8 +17680,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
17681
17680
  _this$$slots3;
17682
17681
  var resolveContentStyle = function resolveContentStyle(slot) {
17683
17682
  var _slot$;
17684
- if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
17685
- (0,external_vue_namespaceObject.nextTick)(function () {
17683
+ if (Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
17684
+ nextTick(function () {
17686
17685
  _this.setContentPointerEvent('none');
17687
17686
  _this.resetPointerEvent();
17688
17687
  });
@@ -17867,8 +17866,7 @@ var PopoverProps = {
17867
17866
  * IN THE SOFTWARE.
17868
17867
  */
17869
17868
 
17870
-
17871
- /* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
17869
+ /* harmony default export */ const root = (defineComponent({
17872
17870
  props: {
17873
17871
  "class": shared_namespaceObject.PropTypes.string.def(''),
17874
17872
  mode: shared_namespaceObject.PropTypes.string.def('')
@@ -17883,31 +17881,31 @@ function _arrayWithHoles(arr) {
17883
17881
  if (Array.isArray(arr)) return arr;
17884
17882
  }
17885
17883
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
17886
- function _iterableToArrayLimit(r, l) {
17887
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
17888
- if (null != t) {
17889
- var e,
17890
- n,
17891
- i,
17892
- u,
17893
- a = [],
17894
- f = !0,
17895
- o = !1;
17884
+ function _iterableToArrayLimit(arr, i) {
17885
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
17886
+ if (null != _i) {
17887
+ var _s,
17888
+ _e,
17889
+ _x,
17890
+ _r,
17891
+ _arr = [],
17892
+ _n = !0,
17893
+ _d = !1;
17896
17894
  try {
17897
- if (i = (t = t.call(r)).next, 0 === l) {
17898
- if (Object(t) !== t) return;
17899
- f = !1;
17900
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
17901
- } catch (r) {
17902
- o = !0, n = r;
17895
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
17896
+ if (Object(_i) !== _i) return;
17897
+ _n = !1;
17898
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
17899
+ } catch (err) {
17900
+ _d = !0, _e = err;
17903
17901
  } finally {
17904
17902
  try {
17905
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
17903
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
17906
17904
  } finally {
17907
- if (o) throw n;
17905
+ if (_d) throw _e;
17908
17906
  }
17909
17907
  }
17910
- return a;
17908
+ return _arr;
17911
17909
  }
17912
17910
  }
17913
17911
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
@@ -17938,15 +17936,7 @@ function _nonIterableRest() {
17938
17936
  function _slicedToArray(arr, i) {
17939
17937
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
17940
17938
  }
17941
- // EXTERNAL MODULE: ../../node_modules/lodash/lodash.js
17942
- var lodash = __webpack_require__(6635);
17943
- var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);
17944
17939
  ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
17945
- /**
17946
- * Custom positioning reference element.
17947
- * @see https://floating-ui.com/docs/virtual-elements
17948
- */
17949
-
17950
17940
  const sides = ['top', 'right', 'bottom', 'left'];
17951
17941
  const alignments = ['start', 'end'];
17952
17942
  const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -18134,7 +18124,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
18134
18124
 
18135
18125
  /**
18136
18126
  * Computes the `x` and `y` coordinates that will place the floating element
18137
- * next to a given reference element.
18127
+ * next to a reference element when it is given a certain positioning strategy.
18138
18128
  *
18139
18129
  * This export does not have any `platform` interface logic. You will need to
18140
18130
  * write one for the platform you are using Floating UI with.
@@ -18212,6 +18202,7 @@ const computePosition = async (reference, floating, config) => {
18212
18202
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
18213
18203
  }
18214
18204
  i = -1;
18205
+ continue;
18215
18206
  }
18216
18207
  }
18217
18208
  return {
@@ -18274,7 +18265,6 @@ async function detectOverflow(state, options) {
18274
18265
  y: 1
18275
18266
  };
18276
18267
  const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
18277
- elements,
18278
18268
  rect,
18279
18269
  offsetParent,
18280
18270
  strategy
@@ -18302,8 +18292,7 @@ const arrow = options => ({
18302
18292
  placement,
18303
18293
  rects,
18304
18294
  platform,
18305
- elements,
18306
- middlewareData
18295
+ elements
18307
18296
  } = state;
18308
18297
  // Since `element` is required, we don't Partial<> the type.
18309
18298
  const {
@@ -18351,20 +18340,16 @@ const arrow = options => ({
18351
18340
 
18352
18341
  // If the reference is small enough that the arrow's padding causes it to
18353
18342
  // to point to nothing for an aligned placement, adjust the offset of the
18354
- // floating element itself. To ensure `shift()` continues to take action,
18355
- // a single reset is performed when this is true.
18356
- const shouldAddOffset = !middlewareData.arrow && floating_ui_utils_getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
18357
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
18343
+ // floating element itself. This stops `shift()` from taking action, but can
18344
+ // be worked around by calling it again after the `arrow()` if desired.
18345
+ const shouldAddOffset = floating_ui_utils_getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
18346
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1 - center : max - center : 0;
18358
18347
  return {
18359
- [axis]: coords[axis] + alignmentOffset,
18348
+ [axis]: coords[axis] - alignmentOffset,
18360
18349
  data: {
18361
18350
  [axis]: offset,
18362
- centerOffset: center - offset - alignmentOffset,
18363
- ...(shouldAddOffset && {
18364
- alignmentOffset
18365
- })
18366
- },
18367
- reset: shouldAddOffset
18351
+ centerOffset: center - offset + alignmentOffset
18352
+ }
18368
18353
  };
18369
18354
  }
18370
18355
  });
@@ -18486,7 +18471,7 @@ const flip = function (options) {
18486
18471
  name: 'flip',
18487
18472
  options,
18488
18473
  async fn(state) {
18489
- var _middlewareData$arrow, _middlewareData$flip;
18474
+ var _middlewareData$flip;
18490
18475
  const {
18491
18476
  placement,
18492
18477
  middlewareData,
@@ -18504,14 +18489,6 @@ const flip = function (options) {
18504
18489
  flipAlignment = true,
18505
18490
  ...detectOverflowOptions
18506
18491
  } = floating_ui_utils_evaluate(options, state);
18507
-
18508
- // If a reset by the arrow was caused due to an alignment offset being
18509
- // added, we should skip any logic now since `flip()` has already done its
18510
- // work.
18511
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
18512
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
18513
- return {};
18514
- }
18515
18492
  const side = floating_ui_utils_getSide(placement);
18516
18493
  const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
18517
18494
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
@@ -18789,7 +18766,6 @@ const inline = function (options) {
18789
18766
 
18790
18767
  // For type backwards-compatibility, the `OffsetOptions` type was also
18791
18768
  // Derivable.
18792
-
18793
18769
  async function convertValueToCoords(state, options) {
18794
18770
  const {
18795
18771
  placement,
@@ -18803,6 +18779,8 @@ async function convertValueToCoords(state, options) {
18803
18779
  const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
18804
18780
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
18805
18781
  const rawValue = floating_ui_utils_evaluate(options, state);
18782
+
18783
+ // eslint-disable-next-line prefer-const
18806
18784
  let {
18807
18785
  mainAxis,
18808
18786
  crossAxis,
@@ -18844,27 +18822,15 @@ const offset = function (options) {
18844
18822
  name: 'offset',
18845
18823
  options,
18846
18824
  async fn(state) {
18847
- var _middlewareData$offse, _middlewareData$arrow;
18848
18825
  const {
18849
18826
  x,
18850
- y,
18851
- placement,
18852
- middlewareData
18827
+ y
18853
18828
  } = state;
18854
18829
  const diffCoords = await convertValueToCoords(state, options);
18855
-
18856
- // If the placement is the same and the arrow caused an alignment offset
18857
- // then we don't need to change the positioning coordinates.
18858
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
18859
- return {};
18860
- }
18861
18830
  return {
18862
18831
  x: x + diffCoords.x,
18863
18832
  y: y + diffCoords.y,
18864
- data: {
18865
- ...diffCoords,
18866
- placement
18867
- }
18833
+ data: diffCoords
18868
18834
  };
18869
18835
  }
18870
18836
  };
@@ -19096,7 +19062,7 @@ const size = function (options) {
19096
19062
 
19097
19063
 
19098
19064
 
19099
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
19065
+ ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
19100
19066
  function getNodeName(node) {
19101
19067
  if (isNode(node)) {
19102
19068
  return (node.nodeName || '').toLowerCase();
@@ -19108,7 +19074,7 @@ function getNodeName(node) {
19108
19074
  }
19109
19075
  function getWindow(node) {
19110
19076
  var _node$ownerDocument;
19111
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
19077
+ return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
19112
19078
  }
19113
19079
  function getDocumentElement(node) {
19114
19080
  var _ref;
@@ -19149,17 +19115,6 @@ function isContainingBlock(element) {
19149
19115
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
19150
19116
  return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
19151
19117
  }
19152
- function getContainingBlock(element) {
19153
- let currentNode = getParentNode(element);
19154
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
19155
- if (isContainingBlock(currentNode)) {
19156
- return currentNode;
19157
- } else {
19158
- currentNode = getParentNode(currentNode);
19159
- }
19160
- }
19161
- return null;
19162
- }
19163
19118
  function isWebKit() {
19164
19119
  if (typeof CSS === 'undefined' || !CSS.supports) return false;
19165
19120
  return CSS.supports('-webkit-backdrop-filter', 'none');
@@ -19207,21 +19162,18 @@ function getNearestOverflowAncestor(node) {
19207
19162
  }
19208
19163
  return getNearestOverflowAncestor(parentNode);
19209
19164
  }
19210
- function getOverflowAncestors(node, list, traverseIframes) {
19165
+ function getOverflowAncestors(node, list) {
19211
19166
  var _node$ownerDocument2;
19212
19167
  if (list === void 0) {
19213
19168
  list = [];
19214
19169
  }
19215
- if (traverseIframes === void 0) {
19216
- traverseIframes = true;
19217
- }
19218
19170
  const scrollableAncestor = getNearestOverflowAncestor(node);
19219
19171
  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
19220
19172
  const win = getWindow(scrollableAncestor);
19221
19173
  if (isBody) {
19222
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
19174
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
19223
19175
  }
19224
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
19176
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
19225
19177
  }
19226
19178
 
19227
19179
 
@@ -19501,7 +19453,7 @@ function getClippingElementAncestors(element, cache) {
19501
19453
  if (cachedResult) {
19502
19454
  return cachedResult;
19503
19455
  }
19504
- let result = getOverflowAncestors(element, [], false).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
19456
+ let result = getOverflowAncestors(element).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
19505
19457
  let currentContainingBlockComputedStyle = null;
19506
19458
  const elementIsFixed = getComputedStyle(element).position === 'fixed';
19507
19459
  let currentNode = elementIsFixed ? getParentNode(element) : element;
@@ -19556,14 +19508,7 @@ function getClippingRect(_ref) {
19556
19508
  }
19557
19509
 
19558
19510
  function getDimensions(element) {
19559
- const {
19560
- width,
19561
- height
19562
- } = getCssDimensions(element);
19563
- return {
19564
- width,
19565
- height
19566
- };
19511
+ return getCssDimensions(element);
19567
19512
  }
19568
19513
 
19569
19514
  function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
@@ -19605,6 +19550,17 @@ function getTrueOffsetParent(element, polyfill) {
19605
19550
  }
19606
19551
  return element.offsetParent;
19607
19552
  }
19553
+ function getContainingBlock(element) {
19554
+ let currentNode = getParentNode(element);
19555
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
19556
+ if (isContainingBlock(currentNode)) {
19557
+ return currentNode;
19558
+ } else {
19559
+ currentNode = getParentNode(currentNode);
19560
+ }
19561
+ }
19562
+ return null;
19563
+ }
19608
19564
 
19609
19565
  // Gets the closest ancestor positioned element. Handles some edge cases,
19610
19566
  // such as table ancestors and cross browser bugs.
@@ -19809,66 +19765,10 @@ function autoUpdate(reference, floating, update, options) {
19809
19765
  };
19810
19766
  }
19811
19767
 
19812
- /**
19813
- * Optimizes the visibility of the floating element by choosing the placement
19814
- * that has the most space available automatically, without needing to specify a
19815
- * preferred placement. Alternative to `flip`.
19816
- * @see https://floating-ui.com/docs/autoPlacement
19817
- */
19818
- const floating_ui_dom_autoPlacement = autoPlacement;
19819
-
19820
- /**
19821
- * Optimizes the visibility of the floating element by shifting it in order to
19822
- * keep it in view when it will overflow the clipping boundary.
19823
- * @see https://floating-ui.com/docs/shift
19824
- */
19825
- const floating_ui_dom_shift = shift;
19826
-
19827
- /**
19828
- * Optimizes the visibility of the floating element by flipping the `placement`
19829
- * in order to keep it in view when the preferred placement(s) will overflow the
19830
- * clipping boundary. Alternative to `autoPlacement`.
19831
- * @see https://floating-ui.com/docs/flip
19832
- */
19833
- const floating_ui_dom_flip = flip;
19834
-
19835
- /**
19836
- * Provides data that allows you to change the size of the floating element —
19837
- * for instance, prevent it from overflowing the clipping boundary or match the
19838
- * width of the reference element.
19839
- * @see https://floating-ui.com/docs/size
19840
- */
19841
- const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
19842
-
19843
- /**
19844
- * Provides data to hide the floating element in applicable situations, such as
19845
- * when it is not in the same clipping context as the reference element.
19846
- * @see https://floating-ui.com/docs/hide
19847
- */
19848
- const floating_ui_dom_hide = hide;
19849
-
19850
- /**
19851
- * Provides data to position an inner element of the floating element so that it
19852
- * appears centered to the reference element.
19853
- * @see https://floating-ui.com/docs/arrow
19854
- */
19855
- const floating_ui_dom_arrow = arrow;
19856
-
19857
- /**
19858
- * Provides improved positioning for inline reference elements that can span
19859
- * over multiple lines, such as hyperlinks or range selections.
19860
- * @see https://floating-ui.com/docs/inline
19861
- */
19862
- const floating_ui_dom_inline = inline;
19863
-
19864
- /**
19865
- * Built-in `limiter` that will stop `shift()` at a certain point.
19866
- */
19867
- const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
19868
-
19869
19768
  /**
19870
19769
  * Computes the `x` and `y` coordinates that will place the floating element
19871
- * next to a given reference element.
19770
+ * next to a reference element when it is given a certain CSS positioning
19771
+ * strategy.
19872
19772
  */
19873
19773
  const floating_ui_dom_computePosition = (reference, floating, options) => {
19874
19774
  // This caches the expensive `getClippingElementAncestors` function so that
@@ -19895,6 +19795,9 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
19895
19795
  var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
19896
19796
  var isElement_y = x => () => x
19897
19797
  const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
19798
+ // EXTERNAL MODULE: ../../node_modules/lodash/lodash.js
19799
+ var lodash = __webpack_require__(6635);
19800
+ var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);
19898
19801
  ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
19899
19802
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
19900
19803
  /* harmony default export */ const esm_browser_native = ({
@@ -20210,7 +20113,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
20210
20113
  };
20211
20114
  var resolvePopOptions = function resolvePopOptions(elArrow, props) {
20212
20115
  var modifiers = resolveModifiers();
20213
- var middleware = [offset(modifiers.offset || props.offset), floating_ui_dom_shift({
20116
+ var middleware = [offset(modifiers.offset || props.offset), shift({
20214
20117
  padding: props.padding
20215
20118
  })];
20216
20119
  var options = {
@@ -20218,17 +20121,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
20218
20121
  middleware: middleware
20219
20122
  };
20220
20123
  if (props.arrow) {
20221
- middleware.push(floating_ui_dom_arrow({
20124
+ middleware.push(arrow({
20222
20125
  element: elArrow
20223
20126
  }));
20224
20127
  }
20225
20128
  if (isAutoPlacementAvailable()) {
20226
- middleware.push(floating_ui_dom_autoPlacement());
20129
+ middleware.push(autoPlacement());
20227
20130
  }
20228
- middleware.unshift(floating_ui_dom_inline());
20229
- middleware.push(floating_ui_dom_flip());
20131
+ middleware.unshift(inline());
20132
+ middleware.push(flip());
20230
20133
  if (isHideMiddlewareAvailable()) {
20231
- options.middleware.push(floating_ui_dom_hide());
20134
+ options.middleware.push(hide());
20232
20135
  }
20233
20136
  /**
20234
20137
  * 如果是全屏元素或者指定的虚拟元素
@@ -20639,7 +20542,6 @@ var parentNodeReferId = null;
20639
20542
 
20640
20543
 
20641
20544
 
20642
-
20643
20545
  /* harmony default export */ const use_popover_init = (function (props, ctx, _ref) {
20644
20546
  var refReference = _ref.refReference,
20645
20547
  refContent = _ref.refContent,
@@ -20669,7 +20571,7 @@ var parentNodeReferId = null;
20669
20571
  getFullscreenRoot = _useFloating.getFullscreenRoot,
20670
20572
  stopHide = _useFloating.stopHide;
20671
20573
  var resetPopover = function resetPopover() {
20672
- cleanup === null || cleanup === void 0 || cleanup();
20574
+ cleanup === null || cleanup === void 0 ? void 0 : cleanup();
20673
20575
  createPopInstance();
20674
20576
  };
20675
20577
  var showFn = function showFn() {
@@ -20777,13 +20679,13 @@ var parentNodeReferId = null;
20777
20679
  getPrefixId = _usePopperId.getPrefixId;
20778
20680
  var setFullscreenTag = function setFullscreenTag() {
20779
20681
  var _fullScreenTarget$val2;
20780
- fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
20682
+ fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 ? void 0 : _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
20781
20683
  };
20782
20684
  var clearFullscreenTag = function clearFullscreenTag() {
20783
20685
  var _fullScreenTarget$val3, _fullScreenTarget$val4;
20784
20686
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
20785
20687
  ((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
20786
- element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
20688
+ element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
20787
20689
  });
20788
20690
  };
20789
20691
  var boundary = (0,external_vue_namespaceObject.ref)();
@@ -20821,11 +20723,12 @@ var parentNodeReferId = null;
20821
20723
  beforeInstanceUnmount();
20822
20724
  document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
20823
20725
  };
20824
- var handleClickOutside = lodash_default().debounce(function (_e) {
20825
- if (ReferenceClickSharedState[uniqKey]) {
20826
- ReferenceClickSharedState[uniqKey] = false;
20827
- return;
20828
- }
20726
+ var handleClickOutside = function handleClickOutside(_e) {
20727
+ // TODO: 暂时去除这个特性,满足监控需求,晚点再优化
20728
+ // if (ReferenceClickSharedState[uniqKey]) {
20729
+ // ReferenceClickSharedState[uniqKey] = false;
20730
+ // return;
20731
+ // }
20829
20732
  ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
20830
20733
  isShow: localIsShow.value,
20831
20734
  event: _e
@@ -20837,7 +20740,7 @@ var parentNodeReferId = null;
20837
20740
  if (localIsShow.value) {
20838
20741
  hideFn();
20839
20742
  }
20840
- }, 10);
20743
+ };
20841
20744
  return {
20842
20745
  onMountedFn: onMountedFn,
20843
20746
  onUnmountedFn: onUnmountedFn,
@@ -20895,11 +20798,10 @@ var parentNodeReferId = null;
20895
20798
 
20896
20799
 
20897
20800
 
20898
-
20899
20801
  function _isSlot(s) {
20900
20802
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
20901
20803
  }
20902
- /* harmony default export */ const popover = ((0,external_vue_namespaceObject.defineComponent)({
20804
+ /* harmony default export */ const popover = (defineComponent({
20903
20805
  name: 'Popover',
20904
20806
  components: {
20905
20807
  Content: content,
@@ -20912,13 +20814,13 @@ function _isSlot(s) {
20912
20814
  props: PopoverProps,
20913
20815
  emits: EMIT_EVENT_TYPES,
20914
20816
  setup: function setup(props, ctx) {
20915
- var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
20817
+ var _toRefs = toRefs(props),
20916
20818
  reference = _toRefs.reference;
20917
- var refDefaultReference = (0,external_vue_namespaceObject.ref)();
20918
- var refContent = (0,external_vue_namespaceObject.ref)();
20919
- var refArrow = (0,external_vue_namespaceObject.ref)();
20920
- var refRoot = (0,external_vue_namespaceObject.ref)();
20921
- var refReference = (0,external_vue_namespaceObject.computed)(function () {
20819
+ var refDefaultReference = ref();
20820
+ var refContent = ref();
20821
+ var refArrow = ref();
20822
+ var refRoot = ref();
20823
+ var refReference = computed(function () {
20922
20824
  return reference.value || refDefaultReference.value;
20923
20825
  });
20924
20826
  var _usePopoverInit = use_popover_init(props, ctx, {
@@ -20944,7 +20846,7 @@ function _isSlot(s) {
20944
20846
  boundary = _usePopoverInit.boundary,
20945
20847
  uniqKey = _usePopoverInit.uniqKey;
20946
20848
  if (!props.always && !props.disabled) {
20947
- (0,external_vue_namespaceObject.watch)(function () {
20849
+ watch(function () {
20948
20850
  return props.isShow;
20949
20851
  }, function () {
20950
20852
  props.isShow ? showPopover() : hidePopover();
@@ -20952,7 +20854,7 @@ function _isSlot(s) {
20952
20854
  immediate: true
20953
20855
  });
20954
20856
  }
20955
- (0,external_vue_namespaceObject.watch)(function () {
20857
+ watch(function () {
20956
20858
  return [props.disabled];
20957
20859
  }, function (val) {
20958
20860
  if (val[0]) {
@@ -20962,15 +20864,15 @@ function _isSlot(s) {
20962
20864
  }
20963
20865
  });
20964
20866
  updateBoundary();
20965
- (0,external_vue_namespaceObject.onMounted)(onMountedFn);
20966
- (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
20967
- var isRenderModeShow = (0,external_vue_namespaceObject.computed)(function () {
20867
+ onMounted(onMountedFn);
20868
+ onBeforeUnmount(onUnmountedFn);
20869
+ var isRenderModeShow = computed(function () {
20968
20870
  return props.renderDirective === 'show';
20969
20871
  });
20970
- var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
20872
+ var transBoundary = computed(function () {
20971
20873
  return isRenderModeShow.value || localIsShow.value && !props.disableTeleport;
20972
20874
  });
20973
- var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
20875
+ var contentIsShow = computed(function () {
20974
20876
  if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
20975
20877
  return true;
20976
20878
  }
@@ -21036,7 +20938,7 @@ function _isSlot(s) {
21036
20938
  _this$$slots4;
21037
20939
  var renderReferSlot = function renderReferSlot(slot) {
21038
20940
  var _slot$;
21039
- if (external_vue_namespaceObject.Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
20941
+ if (Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
21040
20942
  return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
21041
20943
  }
21042
20944
  return slot;
@@ -21061,7 +20963,7 @@ function _isSlot(s) {
21061
20963
  "default": function _default() {
21062
20964
  return [_slot2];
21063
20965
  }
21064
- }), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
20966
+ }), (0,external_vue_namespaceObject.createVNode)(Teleport, {
21065
20967
  "disabled": !_this.transBoundary,
21066
20968
  "to": _this.boundary
21067
20969
  }, {
@@ -21167,36 +21069,36 @@ function createPopoverComponent(options) {
21167
21069
  var refReference = (0,external_vue_namespaceObject.ref)();
21168
21070
  var show = function show() {
21169
21071
  var _refReference$value, _refReference$value$s;
21170
- (_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 || _refReference$value$s.call(_refReference$value);
21072
+ (_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 ? void 0 : _refReference$value$s.call(_refReference$value);
21171
21073
  };
21172
21074
  var hide = function hide() {
21173
21075
  var _refReference$value2, _refReference$value2$;
21174
- (_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 || _refReference$value2$.call(_refReference$value2);
21076
+ (_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 ? void 0 : _refReference$value2$.call(_refReference$value2);
21175
21077
  };
21176
21078
  var stopHide = function stopHide() {
21177
21079
  var _refReference$value3, _refReference$value3$;
21178
- (_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 || _refReference$value3$.call(_refReference$value3);
21080
+ (_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 ? void 0 : _refReference$value3$.call(_refReference$value3);
21179
21081
  };
21180
21082
  var updateTarget = function updateTarget(target) {
21181
21083
  var _refReference$value4, _refReference$value4$;
21182
21084
  refProps.target = target;
21183
- (_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 || _refReference$value4$.call(_refReference$value4);
21085
+ (_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 ? void 0 : _refReference$value4$.call(_refReference$value4);
21184
21086
  };
21185
21087
  var handleContentMouseenter = function handleContentMouseenter() {
21186
21088
  var _resolvedOptions$onCo;
21187
- (_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 || _resolvedOptions$onCo.call(resolvedOptions);
21089
+ (_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 ? void 0 : _resolvedOptions$onCo.call(resolvedOptions);
21188
21090
  };
21189
21091
  var handleContentMouseleave = function handleContentMouseleave() {
21190
21092
  var _resolvedOptions$onCo2;
21191
- (_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 || _resolvedOptions$onCo2.call(resolvedOptions);
21093
+ (_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 ? void 0 : _resolvedOptions$onCo2.call(resolvedOptions);
21192
21094
  };
21193
21095
  var handlePopoverHidden = function handlePopoverHidden() {
21194
21096
  var _resolvedOptions$onHi;
21195
- (_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 || _resolvedOptions$onHi.call(resolvedOptions);
21097
+ (_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 ? void 0 : _resolvedOptions$onHi.call(resolvedOptions);
21196
21098
  };
21197
21099
  var handlePopoverShow = function handlePopoverShow() {
21198
21100
  var _resolvedOptions$onSh;
21199
- (_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 || _resolvedOptions$onSh.call(resolvedOptions);
21101
+ (_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 ? void 0 : _resolvedOptions$onSh.call(resolvedOptions);
21200
21102
  };
21201
21103
  expose({
21202
21104
  show: show,
@@ -21245,7 +21147,7 @@ function createPopoverComponent(options) {
21245
21147
  }
21246
21148
  $PopoverInstance.unmount();
21247
21149
  $PopoverInstance = null;
21248
- (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 || _$PopoverInstanceEl.remove();
21150
+ (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 ? void 0 : _$PopoverInstanceEl.remove();
21249
21151
  };
21250
21152
  function close() {
21251
21153
  uninstall();
@@ -21256,17 +21158,17 @@ function createPopoverComponent(options) {
21256
21158
  install();
21257
21159
  if (target) {
21258
21160
  var _$PopoverInstanceVm;
21259
- (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.updateTarget(target);
21161
+ (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 ? void 0 : _$PopoverInstanceVm.updateTarget(target);
21260
21162
  }
21261
- (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.show();
21163
+ (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 ? void 0 : _$PopoverInstanceVm2.show();
21262
21164
  }
21263
21165
  function update(e) {
21264
21166
  var _$PopoverInstanceVm3;
21265
- (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
21167
+ (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 ? void 0 : _$PopoverInstanceVm3.updateTarget(e);
21266
21168
  }
21267
21169
  function hide() {
21268
21170
  var _$PopoverInstanceVm4;
21269
- (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
21171
+ (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 ? void 0 : _$PopoverInstanceVm4.hide();
21270
21172
  }
21271
21173
  immediate && install();
21272
21174
  return {