bkui-vue 0.0.1-beta.389 → 0.0.1-beta.390
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/affix/index.js +60 -128
- package/lib/alert/index.js +56 -124
- package/lib/animate-number/index.js +42 -106
- package/lib/backtop/index.js +61 -133
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +4 -4
- package/lib/badge/index.js +50 -114
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +5 -5
- package/lib/breadcrumb/index.js +67 -133
- package/lib/button/index.js +68 -147
- package/lib/card/index.js +69 -154
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +10 -10
- package/lib/cascader/index.js +168 -242
- package/lib/checkbox/index.js +77 -139
- package/lib/code-diff/index.js +79 -121
- package/lib/collapse/index.js +84 -150
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +4 -4
- package/lib/color-picker/index.js +193 -245
- package/lib/components.js +434 -671
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +4 -4
- package/lib/container/index.js +64 -125
- package/lib/date-picker/date-picker.d.ts +2 -2
- package/lib/date-picker/index.d.ts +7 -7
- package/lib/date-picker/index.js +462 -563
- package/lib/date-picker/panel/time-range.d.ts +3 -3
- package/lib/date-picker/panel/time.d.ts +3 -3
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +7 -7
- package/lib/dialog/index.js +108 -198
- package/lib/directives/index.d.ts +0 -2
- package/lib/directives/index.js +86 -140
- package/lib/dist.index.js +48 -133
- package/lib/divider/index.js +50 -118
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/dropdown/index.js +73 -155
- package/lib/exception/index.js +97 -145
- package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
- package/lib/fixed-navbar/index.d.ts +4 -4
- package/lib/fixed-navbar/index.js +43 -107
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +107 -193
- package/lib/icon/angle-double-down-line.js +30 -90
- package/lib/icon/angle-double-left-line.js +30 -90
- package/lib/icon/angle-double-left.js +30 -90
- package/lib/icon/angle-double-right-line.js +30 -90
- package/lib/icon/angle-double-right.js +30 -90
- package/lib/icon/angle-double-up-line.js +30 -90
- package/lib/icon/angle-down-fill.js +30 -90
- package/lib/icon/angle-down-line.js +30 -90
- package/lib/icon/angle-down.js +30 -90
- package/lib/icon/angle-left.js +30 -90
- package/lib/icon/angle-right.js +30 -90
- package/lib/icon/angle-up-fill.js +30 -90
- package/lib/icon/angle-up.js +30 -90
- package/lib/icon/archive-fill.js +30 -90
- package/lib/icon/arrows-left.js +30 -90
- package/lib/icon/arrows-right.js +30 -90
- package/lib/icon/audio-fill.js +30 -90
- package/lib/icon/bk.js +30 -90
- package/lib/icon/circle.js +30 -90
- package/lib/icon/close-line.js +30 -90
- package/lib/icon/close.js +30 -90
- package/lib/icon/code.js +30 -90
- package/lib/icon/cog-shape.js +30 -90
- package/lib/icon/collapse-left.js +30 -90
- package/lib/icon/copy.js +30 -90
- package/lib/icon/data-shape.js +30 -90
- package/lib/icon/del.js +30 -90
- package/lib/icon/doc-fill.js +30 -90
- package/lib/icon/done.js +30 -90
- package/lib/icon/down-shape.js +30 -90
- package/lib/icon/down-small.js +30 -90
- package/lib/icon/edit-line.js +30 -90
- package/lib/icon/ellipsis.js +30 -90
- package/lib/icon/enlarge-line.js +30 -90
- package/lib/icon/error.js +30 -90
- package/lib/icon/excel-fill.js +30 -90
- package/lib/icon/exclamation-circle-shape.js +30 -90
- package/lib/icon/eye.js +30 -90
- package/lib/icon/filliscreen-line.js +30 -90
- package/lib/icon/folder-open.js +30 -90
- package/lib/icon/folder-shape-open.js +30 -90
- package/lib/icon/folder-shape.js +30 -90
- package/lib/icon/folder.js +30 -90
- package/lib/icon/funnel.js +30 -90
- package/lib/icon/help-document-fill.js +30 -90
- package/lib/icon/help-fill.js +30 -90
- package/lib/icon/help.js +30 -90
- package/lib/icon/image-fill.js +30 -90
- package/lib/icon/img-placehoulder.js +52 -88
- package/lib/icon/index.js +267 -255
- package/lib/icon/info-line.js +52 -88
- package/lib/icon/info.js +52 -88
- package/lib/icon/left-shape.js +52 -88
- package/lib/icon/left-turn-line.js +52 -88
- package/lib/icon/narrow-line.js +52 -88
- package/lib/icon/original.js +52 -88
- package/lib/icon/pdf-fill.js +52 -88
- package/lib/icon/play-shape.js +52 -88
- package/lib/icon/plus.js +52 -88
- package/lib/icon/ppt-fill.js +52 -88
- package/lib/icon/qq.js +52 -88
- package/lib/icon/right-shape.js +52 -88
- package/lib/icon/right-turn-line.js +52 -88
- package/lib/icon/search.js +52 -88
- package/lib/icon/share.js +52 -88
- package/lib/icon/spinner.js +52 -88
- package/lib/icon/success.js +52 -88
- package/lib/icon/switcher-loading.js +52 -88
- package/lib/icon/text-file.js +52 -88
- package/lib/icon/text-fill.js +52 -88
- package/lib/icon/transfer.js +52 -88
- package/lib/icon/tree-application-shape.js +52 -88
- package/lib/icon/unfull-screen.js +52 -88
- package/lib/icon/unvisible.js +52 -88
- package/lib/icon/up-shape.js +52 -88
- package/lib/icon/upload.js +52 -88
- package/lib/icon/video-fill.js +52 -88
- package/lib/icon/warn.js +52 -88
- package/lib/icon/weixin.js +52 -88
- package/lib/image/index.js +164 -213
- package/lib/index.js +50 -134
- package/lib/info-box/index.js +152 -206
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +99 -167
- package/lib/input/input.d.ts +1 -1
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +47 -115
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +67 -127
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.js +92 -156
- package/lib/message/index.js +76 -148
- package/lib/modal/index.d.ts +4 -4
- package/lib/modal/index.js +85 -151
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +66 -134
- package/lib/notify/index.js +81 -153
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.js +92 -128
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/index.js +131 -220
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/plugin-popover/index.js +143 -191
- package/lib/plugins/index.js +33 -100
- package/lib/popover/index.d.ts +10 -10
- package/lib/popover/index.js +148 -194
- package/lib/popover/popover.d.ts +3 -3
- package/lib/popover2/index.js +35 -99
- package/lib/preset.js +37 -104
- package/lib/process/index.d.ts +4 -4
- package/lib/process/index.js +92 -134
- package/lib/process/process.d.ts +1 -1
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +63 -127
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.js +81 -142
- package/lib/rate/index.js +63 -127
- package/lib/resize-layout/index.js +79 -147
- package/lib/search-select/index.js +168 -220
- package/lib/select/index.d.ts +10 -10
- package/lib/select/index.js +315 -394
- package/lib/select/select.d.ts +3 -3
- package/lib/shared/index.js +228 -203
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/index.js +88 -137
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.d.ts +7 -7
- package/lib/slider/index.js +147 -196
- package/lib/slider/slider.d.ts +2 -2
- package/lib/steps/index.js +105 -152
- package/lib/swiper/index.js +62 -126
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/index.js +65 -133
- package/lib/switcher/switcher.d.ts +1 -1
- package/lib/tab/index.d.ts +4 -4
- package/lib/tab/index.js +118 -188
- package/lib/tab/tab.d.ts +1 -1
- package/lib/table/index.js +457 -572
- package/lib/table-column/index.js +129 -197
- package/lib/tag/index.js +58 -130
- package/lib/tag-input/index.d.ts +7 -7
- package/lib/tag-input/index.js +175 -277
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/time-picker/index.d.ts +10 -10
- package/lib/time-picker/index.js +40 -111
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +50 -114
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/transfer/index.js +89 -174
- package/lib/tree/index.js +158 -235
- package/lib/upload/index.d.ts +7 -7
- package/lib/upload/index.js +173 -227
- package/lib/upload/upload-list.d.ts +1 -1
- package/lib/upload/upload-trigger.d.ts +1 -1
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.js +86 -154
- package/package.json +1 -1
@@ -1,15 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
else {
|
7
|
-
var a = typeof exports === 'object' ? factory(require("vue"), require("../directives"), require("../shared"), require("vue-types")) : factory(root["vue"], root["../directives"], root["../shared"], root["vue-types"]);
|
8
|
-
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
-
}
|
10
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__4061__, __WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__210__) => {
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
12
|
-
/******/ var __webpack_modules__ = ({
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
5
|
+
/******/ var __webpack_modules__ = ({
|
13
6
|
|
14
7
|
/***/ 8022:
|
15
8
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
@@ -250,106 +243,60 @@ function v4(options, buf, offset) {
|
|
250
243
|
module.exports = v4;
|
251
244
|
|
252
245
|
|
253
|
-
/***/ }),
|
254
|
-
|
255
|
-
/***/ 4061:
|
256
|
-
/***/ ((module) => {
|
257
|
-
|
258
|
-
"use strict";
|
259
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4061__;
|
260
|
-
|
261
|
-
/***/ }),
|
262
|
-
|
263
|
-
/***/ 4212:
|
264
|
-
/***/ ((module) => {
|
265
|
-
|
266
|
-
"use strict";
|
267
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
268
|
-
|
269
|
-
/***/ }),
|
270
|
-
|
271
|
-
/***/ 748:
|
272
|
-
/***/ ((module) => {
|
273
|
-
|
274
|
-
"use strict";
|
275
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
276
|
-
|
277
|
-
/***/ }),
|
278
|
-
|
279
|
-
/***/ 210:
|
280
|
-
/***/ ((module) => {
|
281
|
-
|
282
|
-
"use strict";
|
283
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__210__;
|
284
|
-
|
285
246
|
/***/ })
|
286
247
|
|
287
|
-
/******/
|
248
|
+
/******/ });
|
288
249
|
/************************************************************************/
|
289
|
-
/******/
|
290
|
-
/******/
|
291
|
-
/******/
|
292
|
-
/******/
|
293
|
-
/******/
|
294
|
-
/******/
|
295
|
-
/******/
|
296
|
-
/******/
|
297
|
-
/******/
|
298
|
-
/******/ }
|
299
|
-
/******/ // Create a new module (and put it into the cache)
|
300
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
301
|
-
/******/ // no module.id needed
|
302
|
-
/******/ // no module.loaded needed
|
303
|
-
/******/ exports: {}
|
304
|
-
/******/ };
|
305
|
-
/******/
|
306
|
-
/******/ // Execute the module function
|
307
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
308
|
-
/******/
|
309
|
-
/******/ // Return the exports of the module
|
310
|
-
/******/ return module.exports;
|
250
|
+
/******/ // The module cache
|
251
|
+
/******/ var __webpack_module_cache__ = {};
|
252
|
+
/******/
|
253
|
+
/******/ // The require function
|
254
|
+
/******/ function __webpack_require__(moduleId) {
|
255
|
+
/******/ // Check if module is in cache
|
256
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
257
|
+
/******/ if (cachedModule !== undefined) {
|
258
|
+
/******/ return cachedModule.exports;
|
311
259
|
/******/ }
|
312
|
-
/******/
|
260
|
+
/******/ // Create a new module (and put it into the cache)
|
261
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
262
|
+
/******/ // no module.id needed
|
263
|
+
/******/ // no module.loaded needed
|
264
|
+
/******/ exports: {}
|
265
|
+
/******/ };
|
266
|
+
/******/
|
267
|
+
/******/ // Execute the module function
|
268
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
269
|
+
/******/
|
270
|
+
/******/ // Return the exports of the module
|
271
|
+
/******/ return module.exports;
|
272
|
+
/******/ }
|
273
|
+
/******/
|
313
274
|
/************************************************************************/
|
314
|
-
/******/
|
315
|
-
/******/
|
316
|
-
/******/
|
317
|
-
/******/
|
318
|
-
/******/
|
319
|
-
/******/
|
320
|
-
/******/
|
321
|
-
/******/ }
|
275
|
+
/******/ /* webpack/runtime/define property getters */
|
276
|
+
/******/ (() => {
|
277
|
+
/******/ // define getter functions for harmony exports
|
278
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
279
|
+
/******/ for(var key in definition) {
|
280
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
281
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
322
282
|
/******/ }
|
323
|
-
/******/ }
|
324
|
-
/******/ }
|
325
|
-
/******/
|
326
|
-
/******/
|
327
|
-
/******/
|
328
|
-
/******/
|
329
|
-
/******/
|
330
|
-
/******/
|
331
|
-
/******/
|
332
|
-
/******/ (() => {
|
333
|
-
/******/ // define __esModule on exports
|
334
|
-
/******/ __webpack_require__.r = (exports) => {
|
335
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
336
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
337
|
-
/******/ }
|
338
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
339
|
-
/******/ };
|
340
|
-
/******/ })();
|
341
|
-
/******/
|
283
|
+
/******/ }
|
284
|
+
/******/ };
|
285
|
+
/******/ })();
|
286
|
+
/******/
|
287
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
288
|
+
/******/ (() => {
|
289
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
290
|
+
/******/ })();
|
291
|
+
/******/
|
342
292
|
/************************************************************************/
|
343
293
|
var __webpack_exports__ = {};
|
344
|
-
// This entry need to be wrapped in an IIFE because it need to be in
|
294
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
345
295
|
(() => {
|
346
|
-
"use strict";
|
347
|
-
// ESM COMPAT FLAG
|
348
|
-
__webpack_require__.r(__webpack_exports__);
|
349
296
|
|
350
297
|
// EXPORTS
|
351
298
|
__webpack_require__.d(__webpack_exports__, {
|
352
|
-
"
|
299
|
+
"Z": () => (/* binding */ src)
|
353
300
|
});
|
354
301
|
|
355
302
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
@@ -367,12 +314,18 @@ function _defineProperty(obj, key, value) {
|
|
367
314
|
|
368
315
|
return obj;
|
369
316
|
}
|
370
|
-
|
371
|
-
var
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
var
|
317
|
+
;// CONCATENATED MODULE: external "vue"
|
318
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
319
|
+
var y = x => () => x
|
320
|
+
const external_vue_namespaceObject = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["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 });
|
321
|
+
;// CONCATENATED MODULE: external "../directives"
|
322
|
+
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
323
|
+
var external_directives_y = x => () => x
|
324
|
+
const external_directives_namespaceObject = external_directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.clickoutside });
|
325
|
+
;// CONCATENATED MODULE: external "../shared"
|
326
|
+
var external_shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
327
|
+
var external_shared_y = x => () => x
|
328
|
+
const external_shared_namespaceObject = external_shared_x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.placementType, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName });
|
376
329
|
;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
|
377
330
|
|
378
331
|
|
@@ -403,11 +356,11 @@ var external_shared_ = __webpack_require__(4212);
|
|
403
356
|
*/
|
404
357
|
|
405
358
|
|
406
|
-
/* harmony default export */ const src_arrow = ((0,
|
359
|
+
/* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
|
407
360
|
name: 'PopArrow',
|
408
361
|
render: function render() {
|
409
|
-
var arrowClassName = (0,
|
410
|
-
return (0,
|
362
|
+
var arrowClassName = (0,external_shared_namespaceObject.resolveClassName)('pop2-arrow');
|
363
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
411
364
|
"class": arrowClassName
|
412
365
|
}, null);
|
413
366
|
}
|
@@ -489,12 +442,12 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
489
442
|
*/
|
490
443
|
|
491
444
|
|
492
|
-
/* harmony default export */ const content = ((0,
|
445
|
+
/* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
|
493
446
|
name: 'PopContent',
|
494
447
|
props: {
|
495
|
-
width:
|
496
|
-
height:
|
497
|
-
maxHeight:
|
448
|
+
width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
|
449
|
+
height: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
|
450
|
+
maxHeight: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto')
|
498
451
|
},
|
499
452
|
setup: function setup(props) {
|
500
453
|
var resolveValToPix = function resolveValToPix(val) {
|
@@ -505,7 +458,7 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
505
458
|
return val;
|
506
459
|
};
|
507
460
|
|
508
|
-
var style = (0,
|
461
|
+
var style = (0,external_vue_namespaceObject.computed)(function () {
|
509
462
|
return {
|
510
463
|
width: resolveValToPix(props.width),
|
511
464
|
height: resolveValToPix(props.height),
|
@@ -519,16 +472,18 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
519
472
|
render: function render() {
|
520
473
|
var _a, _b, _c, _d, _e, _f;
|
521
474
|
|
522
|
-
var className = [(0,
|
523
|
-
return (0,
|
475
|
+
var className = [(0,external_shared_namespaceObject.resolveClassName)('popover'), (0,external_shared_namespaceObject.resolveClassName)('pop2-content')];
|
476
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
524
477
|
"class": className,
|
525
478
|
"tabindex": "-1",
|
526
479
|
"style": this.style
|
527
480
|
}, [(_c = (_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '', (_f = (_e = (_d = this.$slots)["default"]) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : '']);
|
528
481
|
}
|
529
482
|
}));
|
530
|
-
|
531
|
-
var
|
483
|
+
;// CONCATENATED MODULE: external "vue-types"
|
484
|
+
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
485
|
+
var external_vue_types_y = x => () => x
|
486
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["createTypes"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.createTypes, ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
532
487
|
;// CONCATENATED MODULE: ../../packages/shared/src/vue-types.ts
|
533
488
|
|
534
489
|
|
@@ -541,7 +496,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
541
496
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
542
497
|
|
543
498
|
|
544
|
-
var propTypesNS = (0,
|
499
|
+
var propTypesNS = (0,external_vue_types_namespaceObject.createTypes)({}); // 用于创建字符串列表映射至 `K: V` 的函数
|
545
500
|
|
546
501
|
function stringEnum(o) {
|
547
502
|
return o.reduce(function (res, key) {
|
@@ -639,7 +594,7 @@ var TriggerEnum;
|
|
639
594
|
})(TriggerEnum || (TriggerEnum = {}));
|
640
595
|
|
641
596
|
function triggerType() {
|
642
|
-
return (0,
|
597
|
+
return (0,external_vue_types_namespaceObject.toType)('trigger', {}).def(TriggerEnum.HOVER);
|
643
598
|
}
|
644
599
|
;
|
645
600
|
/** 内容渲染类型:目前是在popover内容渲染时使用 */
|
@@ -652,7 +607,7 @@ var RenderType;
|
|
652
607
|
})(RenderType || (RenderType = {}));
|
653
608
|
|
654
609
|
function renderType() {
|
655
|
-
return (0,
|
610
|
+
return (0,external_vue_types_namespaceObject.toType)('trigger', {}).def(RenderType.AUTO);
|
656
611
|
}
|
657
612
|
;
|
658
613
|
var DialogTypeEnum;
|
@@ -807,20 +762,20 @@ var EventProps = {
|
|
807
762
|
onAfterShow: Function
|
808
763
|
};
|
809
764
|
var PopoverProps = Object.assign({
|
810
|
-
isShow:
|
811
|
-
always:
|
812
|
-
disabled:
|
813
|
-
width:
|
814
|
-
height:
|
815
|
-
maxHeight:
|
816
|
-
content:
|
765
|
+
isShow: external_shared_namespaceObject.PropTypes.bool.def(false),
|
766
|
+
always: external_shared_namespaceObject.PropTypes.bool.def(false),
|
767
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
|
768
|
+
width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
|
769
|
+
height: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
|
770
|
+
maxHeight: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
|
771
|
+
content: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def(''),
|
817
772
|
|
818
773
|
/**
|
819
774
|
* 组件显示位置
|
820
775
|
*/
|
821
|
-
placement: (0,
|
776
|
+
placement: (0,external_shared_namespaceObject.placementType)().def(PlacementEnum.TOP),
|
822
777
|
// 'dark', 'light'
|
823
|
-
theme:
|
778
|
+
theme: external_shared_namespaceObject.PropTypes.string.def('dark'),
|
824
779
|
|
825
780
|
/**
|
826
781
|
* 触发方式
|
@@ -834,52 +789,52 @@ var PopoverProps = Object.assign({
|
|
834
789
|
*/
|
835
790
|
renderType: renderType(),
|
836
791
|
// 是否显示箭头
|
837
|
-
arrow:
|
838
|
-
padding:
|
839
|
-
offset:
|
792
|
+
arrow: external_shared_namespaceObject.PropTypes.bool.def(true),
|
793
|
+
padding: external_shared_namespaceObject.PropTypes.number.def(5),
|
794
|
+
offset: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.shape({})]).def(6),
|
840
795
|
|
841
796
|
/**
|
842
797
|
* 弹出内容绑定元素
|
843
798
|
*/
|
844
|
-
boundary:
|
845
|
-
zIndex:
|
846
|
-
disableTeleport:
|
799
|
+
boundary: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string.def('parent'), external_shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]),
|
800
|
+
zIndex: external_shared_namespaceObject.PropTypes.number.def(undefined),
|
801
|
+
disableTeleport: external_shared_namespaceObject.PropTypes.bool.def(false),
|
847
802
|
|
848
803
|
/**
|
849
804
|
* chooses the placement that has the most space available automatically
|
850
805
|
*/
|
851
|
-
autoPlacement:
|
806
|
+
autoPlacement: external_shared_namespaceObject.PropTypes.bool.def(false),
|
852
807
|
|
853
808
|
/**
|
854
809
|
* 当有滚动条,滚动出可是范围时自动隐藏pop
|
855
810
|
*/
|
856
|
-
autoVisibility:
|
811
|
+
autoVisibility: external_shared_namespaceObject.PropTypes.bool.def(true),
|
857
812
|
|
858
813
|
/**
|
859
814
|
* 是否禁用clickoutside
|
860
815
|
*/
|
861
|
-
disableOutsideClick:
|
816
|
+
disableOutsideClick: external_shared_namespaceObject.PropTypes.bool.def(false),
|
862
817
|
|
863
818
|
/**
|
864
819
|
* 是否禁用样式的transform更新位移
|
865
820
|
*/
|
866
|
-
disableTransform:
|
821
|
+
disableTransform: external_shared_namespaceObject.PropTypes.bool.def(false),
|
867
822
|
|
868
823
|
/**
|
869
824
|
* 自定义 reference
|
870
825
|
*/
|
871
|
-
reference:
|
826
|
+
reference: external_shared_namespaceObject.PropTypes.any.def(null),
|
872
827
|
|
873
828
|
/**
|
874
829
|
* 兼容v1版本遗留配置
|
875
830
|
* 不建议使用
|
876
831
|
*/
|
877
|
-
modifiers:
|
832
|
+
modifiers: external_shared_namespaceObject.PropTypes.array.def([]),
|
878
833
|
|
879
834
|
/**
|
880
835
|
* popover显示和隐藏的延时时间
|
881
836
|
*/
|
882
|
-
popoverDelay:
|
837
|
+
popoverDelay: external_shared_namespaceObject.PropTypes.number.def(100)
|
883
838
|
}, EventProps);
|
884
839
|
;// CONCATENATED MODULE: ../../packages/popover/src/reference.tsx
|
885
840
|
/*
|
@@ -908,7 +863,7 @@ var PopoverProps = Object.assign({
|
|
908
863
|
* IN THE SOFTWARE.
|
909
864
|
*/
|
910
865
|
|
911
|
-
/* harmony default export */ const reference = ((0,
|
866
|
+
/* harmony default export */ const reference = ((0,external_vue_namespaceObject.defineComponent)({
|
912
867
|
name: 'PopReference',
|
913
868
|
render: function render() {
|
914
869
|
var _a, _b, _c;
|
@@ -946,14 +901,14 @@ var PopoverProps = Object.assign({
|
|
946
901
|
*/
|
947
902
|
|
948
903
|
|
949
|
-
/* harmony default export */ const root = ((0,
|
904
|
+
/* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
|
950
905
|
props: {
|
951
|
-
"class":
|
906
|
+
"class": external_shared_namespaceObject.PropTypes.string.def('')
|
952
907
|
},
|
953
908
|
render: function render() {
|
954
909
|
var _a, _b;
|
955
910
|
|
956
|
-
return (0,
|
911
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
957
912
|
}
|
958
913
|
}));
|
959
914
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
@@ -1023,7 +978,7 @@ function _slicedToArray(arr, i) {
|
|
1023
978
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
1024
979
|
}
|
1025
980
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs
|
1026
|
-
function t(t){return t.split("-")[0]}function e(t){return t.split("-")[1]}function n(e){return["top","bottom"].includes(t(e))?"x":"y"}function r(t){return"y"===t?"height":"width"}function i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=n(o),m=r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=i(c,r,s),m=r,g={};for(let n=0;n<a.length;n++){const{name:d,fn:p}=a[n],{x:h,y:y,data:x,reset:w}=await p({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=h?h:f,u=null!=y?y:u,g={...g,[d]:{...g[d],...x}},w&&("object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):w.rects),({x:f,y:u}=i(c,m,s))),n=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:g}};function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function s(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:d=!1,padding:p=0}=e,h=a(p),y=c[d?"floating"===g?"reference":"floating":g],x=l(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),w=l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===g?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(c.floating)),strategy:f}):s[g]);return{top:x.top-w.top+h.top,bottom:w.bottom-x.bottom+h.bottom,left:x.left-w.left+h.left,right:w.right-x.right+h.right}}const c=Math.min,f=Math.max;function u(t,e,n){return f(t,c(e,n))}const m=t=>({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=a(l),p={x:s,y:c},h=n(f),y=e(f),x=r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,D=d[v],L=T-w[x]-d[b],k=T/2-w[x]/2+O,E=u(D,k,L),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?k<D?D-k:L-k:0),data:{[h]:E,centerOffset:k-E}}}}),g={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t){return t.replace(/left|right|bottom|top/g,(t=>g[t]))}function p(t,i,o){void 0===o&&(o=!1);const a=e(t),l=n(t),s=r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=d(c)),{main:c,cross:d(c)}}const h={start:"end",end:"start"};function y(t){return t.replace(/start|end/g,(t=>h[t]))}const x=["top","right","bottom","left"],w=x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>e(t)===n)),...i.filter((t=>e(t)!==n))]:i.filter((e=>t(e)===e))).filter((t=>!n||e(t)===n||!!r&&y(t)!==t))}(v,R,b),T=await s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,D=P[O];if(null==D)return{};const{main:L,cross:k}=p(D,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==D)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[t(D)],T[L],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:D,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=t(i),b=g||(v===l||!x?[d(l)]:function(t){const e=d(t);return[y(t),e,y(e)]}(l)),R=[l,...b],A=await s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,D;const t=(null!=(O=null==(D=o.flip)?void 0:D.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var L;const t=null==(L=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function A(t){return x.some((e=>t[e]>=0))}const P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=R(await s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{const e=R(await s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}};const T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=t(o),f=e(o),u="x"===n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function O(t){return"x"===t?"y":"x"}const D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await s(r,m),p=n(t(a)),h=O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},L=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=n(a),d=O(g);let p=m[g],h=m[d];const y="function"==typeof c?c({...l,placement:a}):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);h<r?h=r:h>i&&(h=i)}return{[g]:p,[d]:h}}}},k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c,...u}=n,m=await s(r,u),g=t(i),d=e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=f(m.left,0),x=f(m.right,0),w=f(m.top,0),v=f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:f(m.left,m.right)):m[h])},R=await a.getDimensions(l.floating);null==c||c({...r,...b});const A=await a.getDimensions(l.floating);return R.width!==A.width||R.height!==A.height?{reset:{rects:!0}}:{}}}},E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&p<t.right+w.right&&h>t.top-w.top&&h<t.bottom+w.bottom)))?e:y;if(x.length>=2){if("x"===n(o)){const e=x[0],n=x[x.length-1],r="top"===t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===t(o),r=f(...x.map((t=>t.right))),i=c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};
|
981
|
+
function t(t){return t.split("-")[0]}function e(t){return t.split("-")[1]}function n(e){return["top","bottom"].includes(t(e))?"x":"y"}function r(t){return"y"===t?"height":"width"}function i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=n(o),m=r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=i(c,r,s),m=r,g={};for(let n=0;n<a.length;n++){const{name:d,fn:p}=a[n],{x:h,y:y,data:x,reset:w}=await p({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=h?h:f,u=null!=y?y:u,g={...g,[d]:{...g[d],...x}},w&&("object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):w.rects),({x:f,y:u}=i(c,m,s))),n=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:g}};function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function s(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:d=!1,padding:p=0}=e,h=a(p),y=c[d?"floating"===g?"reference":"floating":g],x=l(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),w=l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===g?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(c.floating)),strategy:f}):s[g]);return{top:x.top-w.top+h.top,bottom:w.bottom-x.bottom+h.bottom,left:x.left-w.left+h.left,right:w.right-x.right+h.right}}const c=Math.min,f=Math.max;function u(t,e,n){return f(t,c(e,n))}const m=t=>({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=a(l),p={x:s,y:c},h=n(f),y=e(f),x=r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,D=d[v],L=T-w[x]-d[b],k=T/2-w[x]/2+O,E=u(D,k,L),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?k<D?D-k:L-k:0),data:{[h]:E,centerOffset:k-E}}}}),g={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t){return t.replace(/left|right|bottom|top/g,(t=>g[t]))}function p(t,i,o){void 0===o&&(o=!1);const a=e(t),l=n(t),s=r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=d(c)),{main:c,cross:d(c)}}const h={start:"end",end:"start"};function floating_ui_core_browser_min_y(t){return t.replace(/start|end/g,(t=>h[t]))}const floating_ui_core_browser_min_x=["top","right","bottom","left"],w=floating_ui_core_browser_min_x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>e(t)===n)),...i.filter((t=>e(t)!==n))]:i.filter((e=>t(e)===e))).filter((t=>!n||e(t)===n||!!r&&floating_ui_core_browser_min_y(t)!==t))}(v,R,b),T=await s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,D=P[O];if(null==D)return{};const{main:L,cross:k}=p(D,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==D)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[t(D)],T[L],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:D,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=t(i),b=g||(v===l||!x?[d(l)]:function(t){const e=d(t);return[floating_ui_core_browser_min_y(t),e,floating_ui_core_browser_min_y(e)]}(l)),R=[l,...b],A=await s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,D;const t=(null!=(O=null==(D=o.flip)?void 0:D.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var L;const t=null==(L=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function A(t){return floating_ui_core_browser_min_x.some((e=>t[e]>=0))}const P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=R(await s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{const e=R(await s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}};const T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=t(o),f=e(o),u="x"===n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function O(t){return"x"===t?"y":"x"}const D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await s(r,m),p=n(t(a)),h=O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},L=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=n(a),d=O(g);let p=m[g],h=m[d];const y="function"==typeof c?c({...l,placement:a}):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);h<r?h=r:h>i&&(h=i)}return{[g]:p,[d]:h}}}},k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c,...u}=n,m=await s(r,u),g=t(i),d=e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=f(m.left,0),x=f(m.right,0),w=f(m.top,0),v=f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:f(m.left,m.right)):m[h])},R=await a.getDimensions(l.floating);null==c||c({...r,...b});const A=await a.getDimensions(l.floating);return R.width!==A.width||R.height!==A.height?{reset:{rects:!0}}:{}}}},E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&p<t.right+w.right&&h>t.top-w.top&&h<t.bottom+w.bottom)))?e:y;if(x.length>=2){if("x"===n(o)){const e=x[0],n=x[x.length-1],r="top"===t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===t(o),r=f(...x.map((t=>t.right))),i=c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};
|
1027
982
|
|
1028
983
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
|
1029
984
|
function floating_ui_dom_browser_min_n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function o(t){if(null==t)return window;if(!floating_ui_dom_browser_min_n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function floating_ui_dom_browser_min_i(t){return o(t).getComputedStyle(t)}function floating_ui_dom_browser_min_r(t){return floating_ui_dom_browser_min_n(t)?"":t?(t.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t){return t instanceof o(t).HTMLElement}function floating_ui_dom_browser_min_f(t){return t instanceof o(t).Element}function floating_ui_dom_browser_min_s(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof o(t).ShadowRoot||t instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t){const{overflow:e,overflowX:n,overflowY:o}=floating_ui_dom_browser_min_i(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function floating_ui_dom_browser_min_d(t){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t))}function floating_ui_dom_browser_min_h(t){const e=/firefox/i.test(floating_ui_dom_browser_min_l()),n=floating_ui_dom_browser_min_i(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t,e,n){var i,r,l,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,h=1;e&&floating_ui_dom_browser_min_c(t)&&(d=t.offsetWidth>0&&floating_ui_dom_browser_min_m(u.width)/t.offsetWidth||1,h=t.offsetHeight>0&&floating_ui_dom_browser_min_m(u.height)/t.offsetHeight||1);const g=floating_ui_dom_browser_min_f(t)?o(t):window,p=!floating_ui_dom_browser_min_a()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,v=(u.top+(p&&null!=(l=null==(s=g.visualViewport)?void 0:s.offsetTop)?l:0))/h,y=u.width/d,x=u.height/h;return{width:y,height:x,top:v,right:w+y,bottom:v+x,left:w,x:w,y:v}}function floating_ui_dom_browser_min_v(t){return(e=t,(e instanceof o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function floating_ui_dom_browser_min_y(t){return floating_ui_dom_browser_min_f(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function floating_ui_dom_browser_min_x(t){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_v(t)).left+floating_ui_dom_browser_min_y(t).scrollLeft}function floating_ui_dom_browser_min_b(t,e,n){const o=floating_ui_dom_browser_min_c(e),i=floating_ui_dom_browser_min_v(e),l=floating_ui_dom_browser_min_w(t,o&&function(t){const e=floating_ui_dom_browser_min_w(t);return floating_ui_dom_browser_min_m(e.width)!==t.offsetWidth||floating_ui_dom_browser_min_m(e.height)!==t.offsetHeight}(e),"fixed"===n);let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==floating_ui_dom_browser_min_r(e)||floating_ui_dom_browser_min_u(i))&&(f=floating_ui_dom_browser_min_y(e)),floating_ui_dom_browser_min_c(e)){const t=floating_ui_dom_browser_min_w(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=floating_ui_dom_browser_min_x(i));return{x:l.left+f.scrollLeft-s.x,y:l.top+f.scrollTop-s.y,width:l.width,height:l.height}}function floating_ui_dom_browser_min_L(t){return"html"===floating_ui_dom_browser_min_r(t)?t:t.assignedSlot||t.parentNode||(floating_ui_dom_browser_min_s(t)?t.host:null)||floating_ui_dom_browser_min_v(t)}function floating_ui_dom_browser_min_R(t){return floating_ui_dom_browser_min_c(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function floating_ui_dom_browser_min_T(t){const e=o(t);let n=floating_ui_dom_browser_min_R(t);for(;n&&floating_ui_dom_browser_min_d(n)&&"static"===getComputedStyle(n).position;)n=floating_ui_dom_browser_min_R(n);return n&&("html"===floating_ui_dom_browser_min_r(n)||"body"===floating_ui_dom_browser_min_r(n)&&"static"===getComputedStyle(n).position&&!floating_ui_dom_browser_min_h(n))?e:n||function(t){let e=floating_ui_dom_browser_min_L(t);for(floating_ui_dom_browser_min_s(e)&&(e=e.host);floating_ui_dom_browser_min_c(e)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e));){if(floating_ui_dom_browser_min_h(e))return e;e=e.parentNode}return null}(t)||e}function W(t){if(floating_ui_dom_browser_min_c(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=floating_ui_dom_browser_min_w(t);return{width:e.width,height:e.height}}function floating_ui_dom_browser_min_E(t){const e=floating_ui_dom_browser_min_L(t);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e))?t.ownerDocument.body:floating_ui_dom_browser_min_c(e)&&floating_ui_dom_browser_min_u(e)?e:floating_ui_dom_browser_min_E(e)}function H(t,e){var n;void 0===e&&(e=[]);const i=floating_ui_dom_browser_min_E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=o(i),c=r?[l].concat(l.visualViewport||[],floating_ui_dom_browser_min_u(i)?i:[]):i,f=e.concat(c);return r?f:f.concat(H(c))}function C(e,n,r){return"viewport"===n?l(function(t,e){const n=o(t),i=floating_ui_dom_browser_min_v(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,s=0;if(r){l=r.width,c=r.height;const t=floating_ui_dom_browser_min_a();(t||!t&&"fixed"===e)&&(f=r.offsetLeft,s=r.offsetTop)}return{width:l,height:c,x:f,y:s}}(e,r)):floating_ui_dom_browser_min_f(n)?function(t,e){const n=floating_ui_dom_browser_min_w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):l(function(t){var e;const n=floating_ui_dom_browser_min_v(t),o=floating_ui_dom_browser_min_y(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=floating_ui_dom_browser_min_p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=floating_ui_dom_browser_min_p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let f=-o.scrollLeft+floating_ui_dom_browser_min_x(t);const s=-o.scrollTop;return"rtl"===floating_ui_dom_browser_min_i(r||n).direction&&(f+=floating_ui_dom_browser_min_p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:f,y:s}}(floating_ui_dom_browser_min_v(e)))}function S(t){const e=H(t),n=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t).position)&&floating_ui_dom_browser_min_c(t)?floating_ui_dom_browser_min_T(t):t;return floating_ui_dom_browser_min_f(n)?e.filter((t=>floating_ui_dom_browser_min_f(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&floating_ui_dom_browser_min_s(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==floating_ui_dom_browser_min_r(t))):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?S(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=C(e,n,i);return t.top=floating_ui_dom_browser_min_p(o.top,t.top),t.right=floating_ui_dom_browser_min_g(o.right,t.right),t.bottom=floating_ui_dom_browser_min_g(o.bottom,t.bottom),t.left=floating_ui_dom_browser_min_p(o.left,t.left),t}),C(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=floating_ui_dom_browser_min_c(n),l=floating_ui_dom_browser_min_v(n);if(n===l)return e;let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==floating_ui_dom_browser_min_r(n)||floating_ui_dom_browser_min_u(l))&&(f=floating_ui_dom_browser_min_y(n)),floating_ui_dom_browser_min_c(n))){const t=floating_ui_dom_browser_min_w(n,!0);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{...e,x:e.x-f.scrollLeft+s.x,y:e.y-f.scrollTop+s.y}},isElement:floating_ui_dom_browser_min_f,getDimensions:W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_v,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:floating_ui_dom_browser_min_b(e,floating_ui_dom_browser_min_T(n),o),floating:{...W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===floating_ui_dom_browser_min_i(t).direction};function N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,s=i&&!c,u=r&&!c,d=s||u?[...floating_ui_dom_browser_min_f(t)?H(t):[],...H(e)]:[];d.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)}));let h,a=null;l&&(a=new ResizeObserver(n),floating_ui_dom_browser_min_f(t)&&!c&&a.observe(t),a.observe(e));let g=c?floating_ui_dom_browser_min_w(t):null;return c&&function e(){const o=floating_ui_dom_browser_min_w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,h=requestAnimationFrame(e)}(),l||n(),()=>{var t;d.forEach((t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)})),null==(t=a)||t.disconnect(),a=null,c&&cancelAnimationFrame(h)}}const z=(t,n,o)=>floating_ui_core_browser_min_o(t,n,{platform:floating_ui_dom_browser_min_D,...o});
|
@@ -1161,8 +1116,8 @@ function _objectDestructuringEmpty(obj) {
|
|
1161
1116
|
refContent = _ref.refContent,
|
1162
1117
|
refArrow = _ref.refArrow,
|
1163
1118
|
refRoot = _ref.refRoot;
|
1164
|
-
var localIsShow = (0,
|
1165
|
-
var fullScreenTarget = (0,
|
1119
|
+
var localIsShow = (0,external_vue_namespaceObject.ref)(false);
|
1120
|
+
var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
|
1166
1121
|
|
1167
1122
|
var isElementFullScreen = function isElementFullScreen() {
|
1168
1123
|
var _a, _b, _c;
|
@@ -1203,7 +1158,7 @@ function _objectDestructuringEmpty(obj) {
|
|
1203
1158
|
* customTheme是指自定义的theme,string类型
|
1204
1159
|
*/
|
1205
1160
|
|
1206
|
-
var compTheme = (0,
|
1161
|
+
var compTheme = (0,external_vue_namespaceObject.computed)(function () {
|
1207
1162
|
var _a, _b;
|
1208
1163
|
|
1209
1164
|
var themes = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.split(/\s+/)) !== null && _b !== void 0 ? _b : [];
|
@@ -1484,7 +1439,7 @@ function _objectDestructuringEmpty(obj) {
|
|
1484
1439
|
|
1485
1440
|
var elContent = resolveTargetElement((_a = refContent.value) === null || _a === void 0 ? void 0 : _a.$el);
|
1486
1441
|
elContent.style.setProperty('display', 'block');
|
1487
|
-
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex :
|
1442
|
+
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : external_shared_namespaceObject.bkZIndexManager.getPopperIndex()));
|
1488
1443
|
updatePopover();
|
1489
1444
|
ctx.emit('afterShow', {
|
1490
1445
|
isShow: true
|
@@ -1574,7 +1529,7 @@ function _objectDestructuringEmpty(obj) {
|
|
1574
1529
|
fullScreenTarget.value = val;
|
1575
1530
|
};
|
1576
1531
|
|
1577
|
-
(0,
|
1532
|
+
(0,external_vue_namespaceObject.watch)(localIsShow, function (val) {
|
1578
1533
|
if (val) {
|
1579
1534
|
hanldePopoverShow();
|
1580
1535
|
} else {
|
@@ -1781,9 +1736,9 @@ var parentNodeReferId = null;
|
|
1781
1736
|
refArrow = _ref.refArrow,
|
1782
1737
|
refRoot = _ref.refRoot;
|
1783
1738
|
var storeEvents = null;
|
1784
|
-
var isFullscreen = (0,
|
1739
|
+
var isFullscreen = (0,external_vue_namespaceObject.ref)(false);
|
1785
1740
|
var fullscreenReferId = getFullscreenUid();
|
1786
|
-
var fullScreenTarget = (0,
|
1741
|
+
var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
|
1787
1742
|
|
1788
1743
|
var _useFloating = use_floating(props, ctx, {
|
1789
1744
|
refReference: refReference,
|
@@ -1903,7 +1858,7 @@ var parentNodeReferId = null;
|
|
1903
1858
|
});
|
1904
1859
|
};
|
1905
1860
|
|
1906
|
-
var boundary = (0,
|
1861
|
+
var boundary = (0,external_vue_namespaceObject.ref)();
|
1907
1862
|
|
1908
1863
|
var beforeInstanceUnmount = function beforeInstanceUnmount() {
|
1909
1864
|
removeEventListener();
|
@@ -2019,8 +1974,7 @@ var parentNodeReferId = null;
|
|
2019
1974
|
|
2020
1975
|
|
2021
1976
|
|
2022
|
-
|
2023
|
-
/* harmony default export */ const popover = ((0,external_vue_.defineComponent)({
|
1977
|
+
/* harmony default export */ const popover = ((0,external_vue_namespaceObject.defineComponent)({
|
2024
1978
|
name: 'Popover',
|
2025
1979
|
components: {
|
2026
1980
|
Content: content,
|
@@ -2028,7 +1982,7 @@ console.info(external_directives_.overflowTitle, '=======');
|
|
2028
1982
|
Root: root
|
2029
1983
|
},
|
2030
1984
|
directives: {
|
2031
|
-
clickoutside:
|
1985
|
+
clickoutside: external_directives_namespaceObject.clickoutside
|
2032
1986
|
},
|
2033
1987
|
props: PopoverProps,
|
2034
1988
|
emits: EMIT_EVENT_TYPES,
|
@@ -2037,14 +1991,14 @@ console.info(external_directives_.overflowTitle, '=======');
|
|
2037
1991
|
theme = props.theme,
|
2038
1992
|
disableTeleport = props.disableTeleport;
|
2039
1993
|
|
2040
|
-
var _toRefs = (0,
|
1994
|
+
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
2041
1995
|
reference = _toRefs.reference;
|
2042
1996
|
|
2043
|
-
var refDefaultReference = (0,
|
2044
|
-
var refContent = (0,
|
2045
|
-
var refArrow = (0,
|
2046
|
-
var refRoot = (0,
|
2047
|
-
var refReference = (0,
|
1997
|
+
var refDefaultReference = (0,external_vue_namespaceObject.ref)();
|
1998
|
+
var refContent = (0,external_vue_namespaceObject.ref)();
|
1999
|
+
var refArrow = (0,external_vue_namespaceObject.ref)();
|
2000
|
+
var refRoot = (0,external_vue_namespaceObject.ref)();
|
2001
|
+
var refReference = (0,external_vue_namespaceObject.computed)(function () {
|
2048
2002
|
return reference.value || refDefaultReference.value;
|
2049
2003
|
});
|
2050
2004
|
|
@@ -2070,7 +2024,7 @@ console.info(external_directives_.overflowTitle, '=======');
|
|
2070
2024
|
boundary = _usePopoverInit.boundary;
|
2071
2025
|
|
2072
2026
|
if (!props.always && !props.disabled) {
|
2073
|
-
(0,
|
2027
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
2074
2028
|
return props.isShow;
|
2075
2029
|
}, function () {
|
2076
2030
|
props.isShow ? showPopover() : hidePopover();
|
@@ -2079,7 +2033,7 @@ console.info(external_directives_.overflowTitle, '=======');
|
|
2079
2033
|
});
|
2080
2034
|
}
|
2081
2035
|
|
2082
|
-
(0,
|
2036
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
2083
2037
|
return [props.disabled];
|
2084
2038
|
}, function (val) {
|
2085
2039
|
if (val[0]) {
|
@@ -2089,9 +2043,9 @@ console.info(external_directives_.overflowTitle, '=======');
|
|
2089
2043
|
}
|
2090
2044
|
});
|
2091
2045
|
updateBoundary();
|
2092
|
-
(0,
|
2093
|
-
(0,
|
2094
|
-
var transBoundary = (0,
|
2046
|
+
(0,external_vue_namespaceObject.onMounted)(onMountedFn);
|
2047
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
|
2048
|
+
var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
|
2095
2049
|
return !disableTeleport;
|
2096
2050
|
});
|
2097
2051
|
|
@@ -2103,8 +2057,8 @@ console.info(external_directives_.overflowTitle, '=======');
|
|
2103
2057
|
hideFn();
|
2104
2058
|
};
|
2105
2059
|
|
2106
|
-
var contentIsShow = (0,
|
2107
|
-
if (props.renderType ===
|
2060
|
+
var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
|
2061
|
+
if (props.renderType === external_shared_namespaceObject.RenderType.AUTO) {
|
2108
2062
|
return true;
|
2109
2063
|
}
|
2110
2064
|
|
@@ -2132,22 +2086,22 @@ console.info(external_directives_.overflowTitle, '=======');
|
|
2132
2086
|
|
2133
2087
|
var _a, _b, _c, _d, _e, _f;
|
2134
2088
|
|
2135
|
-
return (0,
|
2089
|
+
return (0,external_vue_namespaceObject.createVNode)(root, {
|
2136
2090
|
"ref": "refRoot"
|
2137
2091
|
}, {
|
2138
2092
|
"default": function _default() {
|
2139
|
-
return [(0,
|
2093
|
+
return [(0,external_vue_namespaceObject.createVNode)(reference, {
|
2140
2094
|
"ref": "refDefaultReference"
|
2141
2095
|
}, {
|
2142
2096
|
"default": function _default() {
|
2143
|
-
return [(_c = (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,
|
2097
|
+
return [(_c = (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_namespaceObject.createVNode)("span", null, null)];
|
2144
2098
|
}
|
2145
|
-
}), (0,
|
2099
|
+
}), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
2146
2100
|
"to": _this.boundary,
|
2147
2101
|
"disabled": !_this.transBoundary
|
2148
2102
|
}, {
|
2149
2103
|
"default": function _default() {
|
2150
|
-
return [(0,
|
2104
|
+
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(content, {
|
2151
2105
|
"ref": "refContent",
|
2152
2106
|
"data-theme": _this.theme,
|
2153
2107
|
"width": _this.width,
|
@@ -2160,7 +2114,7 @@ console.info(external_directives_.overflowTitle, '=======');
|
|
2160
2114
|
arrow: function arrow() {
|
2161
2115
|
var _a, _b;
|
2162
2116
|
|
2163
|
-
return _this.arrow ? (0,
|
2117
|
+
return _this.arrow ? (0,external_vue_namespaceObject.createVNode)(src_arrow, {
|
2164
2118
|
"ref": "refArrow"
|
2165
2119
|
}, {
|
2166
2120
|
"default": function _default() {
|
@@ -2168,7 +2122,7 @@ console.info(external_directives_.overflowTitle, '=======');
|
|
2168
2122
|
}
|
2169
2123
|
}) : '';
|
2170
2124
|
}
|
2171
|
-
}), [[(0,
|
2125
|
+
}), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]])];
|
2172
2126
|
}
|
2173
2127
|
})];
|
2174
2128
|
}
|
@@ -2227,9 +2181,9 @@ function createPopoverComponent(options) {
|
|
2227
2181
|
name: '$popover',
|
2228
2182
|
setup: function setup(_, _ref) {
|
2229
2183
|
var expose = _ref.expose;
|
2230
|
-
var refProps = (0,
|
2231
|
-
var refReference = (0,
|
2232
|
-
var referStyle = (0,
|
2184
|
+
var refProps = (0,external_vue_namespaceObject.ref)(resolvedOptions);
|
2185
|
+
var refReference = (0,external_vue_namespaceObject.ref)();
|
2186
|
+
var referStyle = (0,external_vue_namespaceObject.ref)({
|
2233
2187
|
position: 'absolute',
|
2234
2188
|
pointerEvents: 'none',
|
2235
2189
|
left: 0,
|
@@ -2286,7 +2240,7 @@ function createPopoverComponent(options) {
|
|
2286
2240
|
(_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.stopHide) === null || _b === void 0 ? void 0 : _b.call(_a);
|
2287
2241
|
};
|
2288
2242
|
|
2289
|
-
var attrs = (0,
|
2243
|
+
var attrs = (0,external_vue_namespaceObject.computed)(function () {
|
2290
2244
|
var excludeKeys = ['target'];
|
2291
2245
|
return Object.keys(refProps.value).filter(function (key) {
|
2292
2246
|
return !excludeKeys.includes(key);
|
@@ -2301,7 +2255,7 @@ function createPopoverComponent(options) {
|
|
2301
2255
|
refProps.value.target = target;
|
2302
2256
|
updateStyle(target);
|
2303
2257
|
(_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.updatePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
|
2304
|
-
(0,
|
2258
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
2305
2259
|
var _a, _b;
|
2306
2260
|
|
2307
2261
|
(_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.updatePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
|
@@ -2327,13 +2281,13 @@ function createPopoverComponent(options) {
|
|
2327
2281
|
stopHide: stopHide
|
2328
2282
|
});
|
2329
2283
|
return function () {
|
2330
|
-
return (0,
|
2284
|
+
return (0,external_vue_namespaceObject.createVNode)(popover, (0,external_vue_namespaceObject.mergeProps)(attrs.value, {
|
2331
2285
|
"ref": refReference,
|
2332
2286
|
"onContentMouseenter": handleContentMouseenter,
|
2333
2287
|
"onContentMouseleave": handleContentMouseleave
|
2334
2288
|
}), {
|
2335
2289
|
"default": function _default() {
|
2336
|
-
return [(0,
|
2290
|
+
return [(0,external_vue_namespaceObject.createVNode)("span", {
|
2337
2291
|
"style": referStyle.value
|
2338
2292
|
}, null)];
|
2339
2293
|
}
|
@@ -2366,7 +2320,7 @@ function createPopoverComponent(options) {
|
|
2366
2320
|
$PopoverInstanceEl = document.createElement('div');
|
2367
2321
|
getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
|
2368
2322
|
setTimeout(function () {
|
2369
|
-
$PopoverInstance = (0,
|
2323
|
+
$PopoverInstance = (0,external_vue_namespaceObject.createApp)(popoverComponent);
|
2370
2324
|
$PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
|
2371
2325
|
});
|
2372
2326
|
}
|
@@ -2442,7 +2396,5 @@ function createPopoverComponent(options) {
|
|
2442
2396
|
/* harmony default export */ const src = (createPopoverComponent);
|
2443
2397
|
})();
|
2444
2398
|
|
2445
|
-
|
2446
|
-
|
2447
|
-
;
|
2448
|
-
});
|
2399
|
+
var __webpack_exports__default = __webpack_exports__.Z;
|
2400
|
+
export { __webpack_exports__default as default };
|