bkui-vue 0.0.1-beta.391 → 0.0.1-beta.393
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/dist/index.cjs.js +35 -35
- package/dist/index.esm.js +856 -857
- package/dist/index.umd.js +9 -9
- package/lib/affix/index.js +128 -60
- package/lib/alert/index.js +124 -56
- package/lib/animate-number/index.js +106 -42
- package/lib/backtop/index.js +133 -61
- package/lib/badge/index.js +114 -50
- package/lib/breadcrumb/index.js +133 -67
- package/lib/button/index.js +147 -68
- package/lib/card/index.js +154 -69
- package/lib/cascader/index.js +242 -168
- package/lib/checkbox/index.js +139 -77
- package/lib/code-diff/index.js +121 -79
- package/lib/collapse/index.js +150 -84
- package/lib/color-picker/index.js +245 -193
- package/lib/components.js +671 -434
- package/lib/container/index.js +125 -64
- package/lib/date-picker/index.js +563 -462
- package/lib/dialog/index.js +198 -108
- package/lib/directives/index.js +138 -92
- package/lib/dist.index.js +133 -48
- package/lib/divider/index.js +118 -50
- package/lib/dropdown/index.js +155 -73
- package/lib/exception/index.js +145 -97
- package/lib/fixed-navbar/index.js +107 -43
- package/lib/form/index.js +193 -107
- package/lib/icon/angle-double-down-line.js +90 -30
- package/lib/icon/angle-double-left-line.js +90 -30
- package/lib/icon/angle-double-left.js +90 -30
- package/lib/icon/angle-double-right-line.js +90 -30
- package/lib/icon/angle-double-right.js +90 -30
- package/lib/icon/angle-double-up-line.js +90 -30
- package/lib/icon/angle-down-fill.js +90 -30
- package/lib/icon/angle-down-line.js +90 -30
- package/lib/icon/angle-down.js +90 -30
- package/lib/icon/angle-left.js +90 -30
- package/lib/icon/angle-right.js +90 -30
- package/lib/icon/angle-up-fill.js +90 -30
- package/lib/icon/angle-up.js +90 -30
- package/lib/icon/archive-fill.js +90 -30
- package/lib/icon/arrows-left.js +90 -30
- package/lib/icon/arrows-right.js +90 -30
- package/lib/icon/audio-fill.js +90 -30
- package/lib/icon/bk.js +90 -30
- package/lib/icon/circle.js +90 -30
- package/lib/icon/close-line.js +90 -30
- package/lib/icon/close.js +90 -30
- package/lib/icon/code.js +90 -30
- package/lib/icon/cog-shape.js +90 -30
- package/lib/icon/collapse-left.js +90 -30
- package/lib/icon/copy.js +90 -30
- package/lib/icon/data-shape.js +90 -30
- package/lib/icon/del.js +90 -30
- package/lib/icon/doc-fill.js +90 -30
- package/lib/icon/done.js +90 -30
- package/lib/icon/down-shape.js +90 -30
- package/lib/icon/down-small.js +90 -30
- package/lib/icon/edit-line.js +90 -30
- package/lib/icon/ellipsis.js +90 -30
- package/lib/icon/enlarge-line.js +90 -30
- package/lib/icon/error.js +90 -30
- package/lib/icon/excel-fill.js +90 -30
- package/lib/icon/exclamation-circle-shape.js +90 -30
- package/lib/icon/eye.js +90 -30
- package/lib/icon/filliscreen-line.js +90 -30
- package/lib/icon/folder-open.js +90 -30
- package/lib/icon/folder-shape-open.js +90 -30
- package/lib/icon/folder-shape.js +90 -30
- package/lib/icon/folder.js +90 -30
- package/lib/icon/funnel.js +90 -30
- package/lib/icon/help-document-fill.js +90 -30
- package/lib/icon/help-fill.js +90 -30
- package/lib/icon/help.js +90 -30
- package/lib/icon/image-fill.js +90 -30
- package/lib/icon/img-placehoulder.js +88 -52
- package/lib/icon/index.js +255 -267
- package/lib/icon/info-line.js +88 -52
- package/lib/icon/info.js +88 -52
- package/lib/icon/left-shape.js +88 -52
- package/lib/icon/left-turn-line.js +88 -52
- package/lib/icon/narrow-line.js +88 -52
- package/lib/icon/original.js +88 -52
- package/lib/icon/pdf-fill.js +88 -52
- package/lib/icon/play-shape.js +88 -52
- package/lib/icon/plus.js +88 -52
- package/lib/icon/ppt-fill.js +88 -52
- package/lib/icon/qq.js +88 -52
- package/lib/icon/right-shape.js +88 -52
- package/lib/icon/right-turn-line.js +88 -52
- package/lib/icon/search.js +88 -52
- package/lib/icon/share.js +88 -52
- package/lib/icon/spinner.js +88 -52
- package/lib/icon/success.js +88 -52
- package/lib/icon/switcher-loading.js +88 -52
- package/lib/icon/text-file.js +88 -52
- package/lib/icon/text-fill.js +88 -52
- package/lib/icon/transfer.js +88 -52
- package/lib/icon/tree-application-shape.js +88 -52
- package/lib/icon/unfull-screen.js +88 -52
- package/lib/icon/unvisible.js +88 -52
- package/lib/icon/up-shape.js +88 -52
- package/lib/icon/upload.js +88 -52
- package/lib/icon/video-fill.js +88 -52
- package/lib/icon/warn.js +88 -52
- package/lib/icon/weixin.js +88 -52
- package/lib/image/index.js +213 -164
- package/lib/index.js +134 -50
- package/lib/info-box/index.js +206 -152
- package/lib/input/index.js +167 -99
- package/lib/link/index.js +115 -47
- package/lib/loading/index.js +127 -67
- package/lib/menu/index.js +156 -92
- package/lib/message/index.js +148 -76
- package/lib/modal/index.js +151 -85
- package/lib/navigation/index.js +134 -66
- package/lib/notify/index.js +153 -81
- package/lib/overflow-title/index.js +128 -92
- package/lib/pagination/index.js +220 -131
- package/lib/plugin-popover/index.js +329 -148
- package/lib/plugins/index.js +100 -33
- package/lib/popover/index.js +332 -153
- package/lib/popover2/index.js +99 -35
- package/lib/preset.js +104 -37
- package/lib/process/index.js +134 -92
- package/lib/progress/index.js +127 -63
- package/lib/radio/index.js +142 -81
- package/lib/rate/index.js +127 -63
- package/lib/resize-layout/index.js +147 -79
- package/lib/search-select/index.js +220 -168
- package/lib/select/index.js +394 -315
- package/lib/shared/index.js +203 -228
- package/lib/sideslider/index.js +137 -88
- package/lib/slider/index.js +196 -147
- package/lib/steps/index.js +152 -105
- package/lib/swiper/index.js +126 -62
- package/lib/switcher/index.js +133 -65
- package/lib/tab/index.js +188 -118
- package/lib/table/index.js +572 -457
- package/lib/table-column/index.js +197 -129
- package/lib/tag/index.js +130 -58
- package/lib/tag-input/index.js +277 -175
- package/lib/time-picker/index.js +111 -40
- package/lib/timeline/index.js +114 -50
- package/lib/transfer/index.js +174 -89
- package/lib/tree/index.js +235 -158
- package/lib/upload/index.js +227 -173
- package/lib/virtual-render/index.js +154 -86
- package/package.json +1 -1
package/lib/popover/index.js
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
+
module.exports = factory(require("../shared"), require("vue"), require("vue-types"));
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
5
|
+
define(["../shared", "vue", "vue-types"], factory);
|
6
|
+
else {
|
7
|
+
var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("vue-types")) : factory(root["../shared"], root["vue"], root["vue-types"]);
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
+
}
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__210__) => {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
/******/ var __webpack_modules__ = ({
|
6
13
|
|
7
14
|
/***/ 8022:
|
8
15
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
@@ -243,76 +250,250 @@ function v4(options, buf, offset) {
|
|
243
250
|
module.exports = v4;
|
244
251
|
|
245
252
|
|
253
|
+
/***/ }),
|
254
|
+
|
255
|
+
/***/ 4212:
|
256
|
+
/***/ ((module) => {
|
257
|
+
|
258
|
+
"use strict";
|
259
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
260
|
+
|
261
|
+
/***/ }),
|
262
|
+
|
263
|
+
/***/ 748:
|
264
|
+
/***/ ((module) => {
|
265
|
+
|
266
|
+
"use strict";
|
267
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
268
|
+
|
269
|
+
/***/ }),
|
270
|
+
|
271
|
+
/***/ 210:
|
272
|
+
/***/ ((module) => {
|
273
|
+
|
274
|
+
"use strict";
|
275
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__210__;
|
276
|
+
|
246
277
|
/***/ })
|
247
278
|
|
248
|
-
/******/
|
279
|
+
/******/ });
|
249
280
|
/************************************************************************/
|
250
|
-
/******/
|
251
|
-
/******/
|
252
|
-
/******/
|
253
|
-
/******/
|
254
|
-
/******/
|
255
|
-
/******/
|
256
|
-
/******/
|
257
|
-
/******/
|
258
|
-
/******/
|
281
|
+
/******/ // The module cache
|
282
|
+
/******/ var __webpack_module_cache__ = {};
|
283
|
+
/******/
|
284
|
+
/******/ // The require function
|
285
|
+
/******/ function __webpack_require__(moduleId) {
|
286
|
+
/******/ // Check if module is in cache
|
287
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
288
|
+
/******/ if (cachedModule !== undefined) {
|
289
|
+
/******/ return cachedModule.exports;
|
290
|
+
/******/ }
|
291
|
+
/******/ // Create a new module (and put it into the cache)
|
292
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
293
|
+
/******/ // no module.id needed
|
294
|
+
/******/ // no module.loaded needed
|
295
|
+
/******/ exports: {}
|
296
|
+
/******/ };
|
297
|
+
/******/
|
298
|
+
/******/ // Execute the module function
|
299
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
300
|
+
/******/
|
301
|
+
/******/ // Return the exports of the module
|
302
|
+
/******/ return module.exports;
|
259
303
|
/******/ }
|
260
|
-
/******/
|
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
|
-
/******/
|
304
|
+
/******/
|
274
305
|
/************************************************************************/
|
275
|
-
/******/
|
276
|
-
/******/
|
277
|
-
/******/
|
278
|
-
/******/
|
279
|
-
/******/
|
280
|
-
/******/
|
281
|
-
/******/
|
306
|
+
/******/ /* webpack/runtime/define property getters */
|
307
|
+
/******/ (() => {
|
308
|
+
/******/ // define getter functions for harmony exports
|
309
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
310
|
+
/******/ for(var key in definition) {
|
311
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
312
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
313
|
+
/******/ }
|
282
314
|
/******/ }
|
283
|
-
/******/ }
|
284
|
-
/******/ };
|
285
|
-
/******/
|
286
|
-
/******/
|
287
|
-
/******/
|
288
|
-
/******/ (
|
289
|
-
/******/
|
290
|
-
/******/
|
291
|
-
/******/
|
315
|
+
/******/ };
|
316
|
+
/******/ })();
|
317
|
+
/******/
|
318
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
319
|
+
/******/ (() => {
|
320
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
321
|
+
/******/ })();
|
322
|
+
/******/
|
323
|
+
/******/ /* webpack/runtime/make namespace object */
|
324
|
+
/******/ (() => {
|
325
|
+
/******/ // define __esModule on exports
|
326
|
+
/******/ __webpack_require__.r = (exports) => {
|
327
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
328
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
329
|
+
/******/ }
|
330
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
331
|
+
/******/ };
|
332
|
+
/******/ })();
|
333
|
+
/******/
|
292
334
|
/************************************************************************/
|
293
335
|
var __webpack_exports__ = {};
|
294
|
-
// This entry need to be wrapped in an IIFE because it need to be
|
336
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
295
337
|
(() => {
|
338
|
+
"use strict";
|
339
|
+
// ESM COMPAT FLAG
|
340
|
+
__webpack_require__.r(__webpack_exports__);
|
296
341
|
|
297
342
|
// EXPORTS
|
298
343
|
__webpack_require__.d(__webpack_exports__, {
|
299
|
-
"
|
300
|
-
"
|
301
|
-
"
|
344
|
+
"$bkPopover": () => (/* reexport */ createPopoverComponent),
|
345
|
+
"PopoverProps": () => (/* reexport */ PopoverProps),
|
346
|
+
"default": () => (/* binding */ src)
|
347
|
+
});
|
348
|
+
|
349
|
+
// EXTERNAL MODULE: external "../shared"
|
350
|
+
var external_shared_ = __webpack_require__(4212);
|
351
|
+
// EXTERNAL MODULE: external "vue"
|
352
|
+
var external_vue_ = __webpack_require__(748);
|
353
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
354
|
+
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; } } }; }
|
355
|
+
|
356
|
+
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); }
|
357
|
+
|
358
|
+
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; }
|
359
|
+
|
360
|
+
/*
|
361
|
+
* Tencent is pleased to support the open source community by making
|
362
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
363
|
+
*
|
364
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
365
|
+
*
|
366
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
367
|
+
*
|
368
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
369
|
+
*
|
370
|
+
* ---------------------------------------------------
|
371
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
372
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
373
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
374
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
375
|
+
*
|
376
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
377
|
+
* the Software.
|
378
|
+
*
|
379
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
380
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
381
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
382
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
383
|
+
* IN THE SOFTWARE.
|
384
|
+
*/
|
385
|
+
var isElement = function isElement(e) {
|
386
|
+
if (typeof Element === 'undefined') return false;
|
387
|
+
return e instanceof Element;
|
388
|
+
};
|
389
|
+
|
390
|
+
var nodeList = new Map();
|
391
|
+
var startClick;
|
392
|
+
document.addEventListener('mousedown', function (e) {
|
393
|
+
return startClick = e;
|
394
|
+
});
|
395
|
+
document.addEventListener('mouseup', function (e) {
|
396
|
+
var _iterator = _createForOfIteratorHelper(nodeList.values()),
|
397
|
+
_step;
|
398
|
+
|
399
|
+
try {
|
400
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
401
|
+
var handlers = _step.value;
|
402
|
+
|
403
|
+
var _iterator2 = _createForOfIteratorHelper(handlers),
|
404
|
+
_step2;
|
405
|
+
|
406
|
+
try {
|
407
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
408
|
+
var documentHandler = _step2.value.documentHandler;
|
409
|
+
documentHandler(e, startClick);
|
410
|
+
}
|
411
|
+
} catch (err) {
|
412
|
+
_iterator2.e(err);
|
413
|
+
} finally {
|
414
|
+
_iterator2.f();
|
415
|
+
}
|
416
|
+
}
|
417
|
+
} catch (err) {
|
418
|
+
_iterator.e(err);
|
419
|
+
} finally {
|
420
|
+
_iterator.f();
|
421
|
+
}
|
302
422
|
});
|
303
423
|
|
304
|
-
|
305
|
-
var
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
var
|
315
|
-
|
424
|
+
function createDocumentHandler(el, binding) {
|
425
|
+
var excludes = [];
|
426
|
+
|
427
|
+
if (Array.isArray(binding.arg)) {
|
428
|
+
excludes = binding.arg;
|
429
|
+
} else if (isElement(binding.arg)) {
|
430
|
+
excludes.push(binding.arg);
|
431
|
+
}
|
432
|
+
|
433
|
+
return function (mouseup, mousedown) {
|
434
|
+
var popperRef = binding.instance.popperRef;
|
435
|
+
var mouseUpTarget = mouseup.target;
|
436
|
+
var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
|
437
|
+
var isBound = !binding || !binding.instance;
|
438
|
+
var isTargetExists = !mouseUpTarget || !mouseDownTarget;
|
439
|
+
var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
|
440
|
+
var isSelf = el === mouseUpTarget;
|
441
|
+
var isTargetExcluded = excludes.length && excludes.some(function (item) {
|
442
|
+
return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
|
443
|
+
}) || excludes.length && excludes.includes(mouseDownTarget);
|
444
|
+
var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
|
445
|
+
|
446
|
+
if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
|
447
|
+
return;
|
448
|
+
}
|
449
|
+
|
450
|
+
binding.value(mouseup, mousedown);
|
451
|
+
};
|
452
|
+
}
|
453
|
+
|
454
|
+
var ClickOutside = {
|
455
|
+
beforeMount: function beforeMount(el, binding) {
|
456
|
+
if (!nodeList.has(el)) {
|
457
|
+
nodeList.set(el, []);
|
458
|
+
}
|
459
|
+
|
460
|
+
nodeList.get(el).push({
|
461
|
+
documentHandler: createDocumentHandler(el, binding),
|
462
|
+
bindingFn: binding.value
|
463
|
+
});
|
464
|
+
},
|
465
|
+
updated: function updated(el, binding) {
|
466
|
+
if (!nodeList.has(el)) {
|
467
|
+
nodeList.set(el, []);
|
468
|
+
}
|
469
|
+
|
470
|
+
var handlers = nodeList.get(el);
|
471
|
+
var oldHandlerIndex = handlers.findIndex(function (item) {
|
472
|
+
return item.bindingFn === binding.oldValue;
|
473
|
+
});
|
474
|
+
var newHandler = {
|
475
|
+
documentHandler: createDocumentHandler(el, binding),
|
476
|
+
bindingFn: binding.value
|
477
|
+
};
|
478
|
+
|
479
|
+
if (oldHandlerIndex >= 0) {
|
480
|
+
// replace the old handler to the new handler
|
481
|
+
handlers.splice(oldHandlerIndex, 1, newHandler);
|
482
|
+
} else {
|
483
|
+
handlers.push(newHandler);
|
484
|
+
}
|
485
|
+
},
|
486
|
+
unmounted: function unmounted(el) {
|
487
|
+
// remove all listeners when a component unmounted
|
488
|
+
nodeList["delete"](el);
|
489
|
+
}
|
490
|
+
};
|
491
|
+
|
492
|
+
ClickOutside.install = function (app) {
|
493
|
+
app.directive('bkTooltips', ClickOutside);
|
494
|
+
};
|
495
|
+
|
496
|
+
/* harmony default export */ const clickoutside = (ClickOutside);
|
316
497
|
;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
|
317
498
|
|
318
499
|
|
@@ -343,11 +524,11 @@ const external_directives_namespaceObject = external_directives_x({ ["clickoutsi
|
|
343
524
|
*/
|
344
525
|
|
345
526
|
|
346
|
-
/* harmony default export */ const src_arrow = ((0,
|
527
|
+
/* harmony default export */ const src_arrow = ((0,external_vue_.defineComponent)({
|
347
528
|
name: 'PopArrow',
|
348
529
|
render: function render() {
|
349
|
-
var arrowClassName = (0,
|
350
|
-
return (0,
|
530
|
+
var arrowClassName = (0,external_shared_.resolveClassName)('pop2-arrow');
|
531
|
+
return (0,external_vue_.createVNode)("div", {
|
351
532
|
"class": arrowClassName
|
352
533
|
}, null);
|
353
534
|
}
|
@@ -444,12 +625,12 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
444
625
|
*/
|
445
626
|
|
446
627
|
|
447
|
-
/* harmony default export */ const content = ((0,
|
628
|
+
/* harmony default export */ const content = ((0,external_vue_.defineComponent)({
|
448
629
|
name: 'PopContent',
|
449
630
|
props: {
|
450
|
-
width:
|
451
|
-
height:
|
452
|
-
maxHeight:
|
631
|
+
width: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
|
632
|
+
height: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
|
633
|
+
maxHeight: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto')
|
453
634
|
},
|
454
635
|
setup: function setup(props) {
|
455
636
|
var resolveValToPix = function resolveValToPix(val) {
|
@@ -460,7 +641,7 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
460
641
|
return val;
|
461
642
|
};
|
462
643
|
|
463
|
-
var style = (0,
|
644
|
+
var style = (0,external_vue_.computed)(function () {
|
464
645
|
return {
|
465
646
|
width: resolveValToPix(props.width),
|
466
647
|
height: resolveValToPix(props.height),
|
@@ -474,18 +655,16 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
474
655
|
render: function render() {
|
475
656
|
var _a, _b, _c, _d, _e, _f;
|
476
657
|
|
477
|
-
var className = [(0,
|
478
|
-
return (0,
|
658
|
+
var className = [(0,external_shared_.resolveClassName)('popover'), (0,external_shared_.resolveClassName)('pop2-content')];
|
659
|
+
return (0,external_vue_.createVNode)("div", {
|
479
660
|
"class": className,
|
480
661
|
"tabindex": "-1",
|
481
662
|
"style": this.style
|
482
663
|
}, [(_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 : '']);
|
483
664
|
}
|
484
665
|
}));
|
485
|
-
|
486
|
-
var
|
487
|
-
var external_vue_types_y = x => () => x
|
488
|
-
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 });
|
666
|
+
// EXTERNAL MODULE: external "vue-types"
|
667
|
+
var external_vue_types_ = __webpack_require__(210);
|
489
668
|
;// CONCATENATED MODULE: ../../packages/shared/src/vue-types.ts
|
490
669
|
|
491
670
|
|
@@ -498,7 +677,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
498
677
|
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; } }
|
499
678
|
|
500
679
|
|
501
|
-
var propTypesNS = (0,
|
680
|
+
var propTypesNS = (0,external_vue_types_.createTypes)({}); // 用于创建字符串列表映射至 `K: V` 的函数
|
502
681
|
|
503
682
|
function stringEnum(o) {
|
504
683
|
return o.reduce(function (res, key) {
|
@@ -596,7 +775,7 @@ var TriggerEnum;
|
|
596
775
|
})(TriggerEnum || (TriggerEnum = {}));
|
597
776
|
|
598
777
|
function triggerType() {
|
599
|
-
return (0,
|
778
|
+
return (0,external_vue_types_.toType)('trigger', {}).def(TriggerEnum.HOVER);
|
600
779
|
}
|
601
780
|
;
|
602
781
|
/** 内容渲染类型:目前是在popover内容渲染时使用 */
|
@@ -609,7 +788,7 @@ var RenderType;
|
|
609
788
|
})(RenderType || (RenderType = {}));
|
610
789
|
|
611
790
|
function renderType() {
|
612
|
-
return (0,
|
791
|
+
return (0,external_vue_types_.toType)('trigger', {}).def(RenderType.AUTO);
|
613
792
|
}
|
614
793
|
;
|
615
794
|
var DialogTypeEnum;
|
@@ -764,20 +943,20 @@ var EventProps = {
|
|
764
943
|
onAfterShow: Function
|
765
944
|
};
|
766
945
|
var PopoverProps = Object.assign({
|
767
|
-
isShow:
|
768
|
-
always:
|
769
|
-
disabled:
|
770
|
-
width:
|
771
|
-
height:
|
772
|
-
maxHeight:
|
773
|
-
content:
|
946
|
+
isShow: external_shared_.PropTypes.bool.def(false),
|
947
|
+
always: external_shared_.PropTypes.bool.def(false),
|
948
|
+
disabled: external_shared_.PropTypes.bool.def(false),
|
949
|
+
width: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
|
950
|
+
height: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
|
951
|
+
maxHeight: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
|
952
|
+
content: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def(''),
|
774
953
|
|
775
954
|
/**
|
776
955
|
* 组件显示位置
|
777
956
|
*/
|
778
|
-
placement: (0,
|
957
|
+
placement: (0,external_shared_.placementType)().def(PlacementEnum.TOP),
|
779
958
|
// 'dark', 'light'
|
780
|
-
theme:
|
959
|
+
theme: external_shared_.PropTypes.string.def('dark'),
|
781
960
|
|
782
961
|
/**
|
783
962
|
* 触发方式
|
@@ -791,52 +970,52 @@ var PopoverProps = Object.assign({
|
|
791
970
|
*/
|
792
971
|
renderType: renderType(),
|
793
972
|
// 是否显示箭头
|
794
|
-
arrow:
|
795
|
-
padding:
|
796
|
-
offset:
|
973
|
+
arrow: external_shared_.PropTypes.bool.def(true),
|
974
|
+
padding: external_shared_.PropTypes.number.def(5),
|
975
|
+
offset: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.number, external_shared_.PropTypes.shape({})]).def(6),
|
797
976
|
|
798
977
|
/**
|
799
978
|
* 弹出内容绑定元素
|
800
979
|
*/
|
801
|
-
boundary:
|
802
|
-
zIndex:
|
803
|
-
disableTeleport:
|
980
|
+
boundary: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string.def('parent'), external_shared_.PropTypes.instanceOf(HTMLElement)]),
|
981
|
+
zIndex: external_shared_.PropTypes.number.def(undefined),
|
982
|
+
disableTeleport: external_shared_.PropTypes.bool.def(false),
|
804
983
|
|
805
984
|
/**
|
806
985
|
* chooses the placement that has the most space available automatically
|
807
986
|
*/
|
808
|
-
autoPlacement:
|
987
|
+
autoPlacement: external_shared_.PropTypes.bool.def(false),
|
809
988
|
|
810
989
|
/**
|
811
990
|
* 当有滚动条,滚动出可是范围时自动隐藏pop
|
812
991
|
*/
|
813
|
-
autoVisibility:
|
992
|
+
autoVisibility: external_shared_.PropTypes.bool.def(true),
|
814
993
|
|
815
994
|
/**
|
816
995
|
* 是否禁用clickoutside
|
817
996
|
*/
|
818
|
-
disableOutsideClick:
|
997
|
+
disableOutsideClick: external_shared_.PropTypes.bool.def(false),
|
819
998
|
|
820
999
|
/**
|
821
1000
|
* 是否禁用样式的transform更新位移
|
822
1001
|
*/
|
823
|
-
disableTransform:
|
1002
|
+
disableTransform: external_shared_.PropTypes.bool.def(false),
|
824
1003
|
|
825
1004
|
/**
|
826
1005
|
* 自定义 reference
|
827
1006
|
*/
|
828
|
-
reference:
|
1007
|
+
reference: external_shared_.PropTypes.any.def(null),
|
829
1008
|
|
830
1009
|
/**
|
831
1010
|
* 兼容v1版本遗留配置
|
832
1011
|
* 不建议使用
|
833
1012
|
*/
|
834
|
-
modifiers:
|
1013
|
+
modifiers: external_shared_.PropTypes.array.def([]),
|
835
1014
|
|
836
1015
|
/**
|
837
1016
|
* popover显示和隐藏的延时时间
|
838
1017
|
*/
|
839
|
-
popoverDelay:
|
1018
|
+
popoverDelay: external_shared_.PropTypes.number.def(100)
|
840
1019
|
}, EventProps);
|
841
1020
|
;// CONCATENATED MODULE: ../../packages/popover/src/reference.tsx
|
842
1021
|
/*
|
@@ -865,7 +1044,7 @@ var PopoverProps = Object.assign({
|
|
865
1044
|
* IN THE SOFTWARE.
|
866
1045
|
*/
|
867
1046
|
|
868
|
-
/* harmony default export */ const reference = ((0,
|
1047
|
+
/* harmony default export */ const reference = ((0,external_vue_.defineComponent)({
|
869
1048
|
name: 'PopReference',
|
870
1049
|
render: function render() {
|
871
1050
|
var _a, _b, _c;
|
@@ -903,14 +1082,14 @@ var PopoverProps = Object.assign({
|
|
903
1082
|
*/
|
904
1083
|
|
905
1084
|
|
906
|
-
/* harmony default export */ const root = ((0,
|
1085
|
+
/* harmony default export */ const root = ((0,external_vue_.defineComponent)({
|
907
1086
|
props: {
|
908
|
-
"class":
|
1087
|
+
"class": external_shared_.PropTypes.string.def('')
|
909
1088
|
},
|
910
1089
|
render: function render() {
|
911
1090
|
var _a, _b;
|
912
1091
|
|
913
|
-
return (0,
|
1092
|
+
return (0,external_vue_.createVNode)(external_vue_.Fragment, null, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
914
1093
|
}
|
915
1094
|
}));
|
916
1095
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
@@ -948,7 +1127,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
948
1127
|
return _arr;
|
949
1128
|
}
|
950
1129
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
951
|
-
function
|
1130
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
952
1131
|
if (len == null || len > arr.length) len = arr.length;
|
953
1132
|
|
954
1133
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
@@ -959,13 +1138,13 @@ function _arrayLikeToArray(arr, len) {
|
|
959
1138
|
}
|
960
1139
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
961
1140
|
|
962
|
-
function
|
1141
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
963
1142
|
if (!o) return;
|
964
|
-
if (typeof o === "string") return
|
1143
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
965
1144
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
966
1145
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
967
1146
|
if (n === "Map" || n === "Set") return Array.from(o);
|
968
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
1147
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
969
1148
|
}
|
970
1149
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
971
1150
|
function _nonIterableRest() {
|
@@ -977,10 +1156,10 @@ function _nonIterableRest() {
|
|
977
1156
|
|
978
1157
|
|
979
1158
|
function _slicedToArray(arr, i) {
|
980
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
1159
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
981
1160
|
}
|
982
1161
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs
|
983
|
-
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}}:{}}}};
|
1162
|
+
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}}:{}}}};
|
984
1163
|
|
985
1164
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
|
986
1165
|
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});
|
@@ -1118,8 +1297,8 @@ function _objectDestructuringEmpty(obj) {
|
|
1118
1297
|
refContent = _ref.refContent,
|
1119
1298
|
refArrow = _ref.refArrow,
|
1120
1299
|
refRoot = _ref.refRoot;
|
1121
|
-
var localIsShow = (0,
|
1122
|
-
var fullScreenTarget = (0,
|
1300
|
+
var localIsShow = (0,external_vue_.ref)(false);
|
1301
|
+
var fullScreenTarget = (0,external_vue_.ref)();
|
1123
1302
|
|
1124
1303
|
var isElementFullScreen = function isElementFullScreen() {
|
1125
1304
|
var _a, _b, _c;
|
@@ -1160,7 +1339,7 @@ function _objectDestructuringEmpty(obj) {
|
|
1160
1339
|
* customTheme是指自定义的theme,string类型
|
1161
1340
|
*/
|
1162
1341
|
|
1163
|
-
var compTheme = (0,
|
1342
|
+
var compTheme = (0,external_vue_.computed)(function () {
|
1164
1343
|
var _a, _b;
|
1165
1344
|
|
1166
1345
|
var themes = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.split(/\s+/)) !== null && _b !== void 0 ? _b : [];
|
@@ -1441,7 +1620,7 @@ function _objectDestructuringEmpty(obj) {
|
|
1441
1620
|
|
1442
1621
|
var elContent = resolveTargetElement((_a = refContent.value) === null || _a === void 0 ? void 0 : _a.$el);
|
1443
1622
|
elContent.style.setProperty('display', 'block');
|
1444
|
-
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex :
|
1623
|
+
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : external_shared_.bkZIndexManager.getPopperIndex()));
|
1445
1624
|
updatePopover();
|
1446
1625
|
ctx.emit('afterShow', {
|
1447
1626
|
isShow: true
|
@@ -1531,7 +1710,7 @@ function _objectDestructuringEmpty(obj) {
|
|
1531
1710
|
fullScreenTarget.value = val;
|
1532
1711
|
};
|
1533
1712
|
|
1534
|
-
(0,
|
1713
|
+
(0,external_vue_.watch)(localIsShow, function (val) {
|
1535
1714
|
if (val) {
|
1536
1715
|
hanldePopoverShow();
|
1537
1716
|
} else {
|
@@ -1738,9 +1917,9 @@ var parentNodeReferId = null;
|
|
1738
1917
|
refArrow = _ref.refArrow,
|
1739
1918
|
refRoot = _ref.refRoot;
|
1740
1919
|
var storeEvents = null;
|
1741
|
-
var isFullscreen = (0,
|
1920
|
+
var isFullscreen = (0,external_vue_.ref)(false);
|
1742
1921
|
var fullscreenReferId = getFullscreenUid();
|
1743
|
-
var fullScreenTarget = (0,
|
1922
|
+
var fullScreenTarget = (0,external_vue_.ref)();
|
1744
1923
|
|
1745
1924
|
var _useFloating = use_floating(props, ctx, {
|
1746
1925
|
refReference: refReference,
|
@@ -1860,7 +2039,7 @@ var parentNodeReferId = null;
|
|
1860
2039
|
});
|
1861
2040
|
};
|
1862
2041
|
|
1863
|
-
var boundary = (0,
|
2042
|
+
var boundary = (0,external_vue_.ref)();
|
1864
2043
|
|
1865
2044
|
var beforeInstanceUnmount = function beforeInstanceUnmount() {
|
1866
2045
|
removeEventListener();
|
@@ -1976,7 +2155,7 @@ var parentNodeReferId = null;
|
|
1976
2155
|
|
1977
2156
|
|
1978
2157
|
|
1979
|
-
/* harmony default export */ const popover = ((0,
|
2158
|
+
/* harmony default export */ const popover = ((0,external_vue_.defineComponent)({
|
1980
2159
|
name: 'Popover',
|
1981
2160
|
components: {
|
1982
2161
|
Content: content,
|
@@ -1984,7 +2163,7 @@ var parentNodeReferId = null;
|
|
1984
2163
|
Root: root
|
1985
2164
|
},
|
1986
2165
|
directives: {
|
1987
|
-
clickoutside:
|
2166
|
+
clickoutside: clickoutside
|
1988
2167
|
},
|
1989
2168
|
props: PopoverProps,
|
1990
2169
|
emits: EMIT_EVENT_TYPES,
|
@@ -1993,14 +2172,14 @@ var parentNodeReferId = null;
|
|
1993
2172
|
theme = props.theme,
|
1994
2173
|
disableTeleport = props.disableTeleport;
|
1995
2174
|
|
1996
|
-
var _toRefs = (0,
|
2175
|
+
var _toRefs = (0,external_vue_.toRefs)(props),
|
1997
2176
|
reference = _toRefs.reference;
|
1998
2177
|
|
1999
|
-
var refDefaultReference = (0,
|
2000
|
-
var refContent = (0,
|
2001
|
-
var refArrow = (0,
|
2002
|
-
var refRoot = (0,
|
2003
|
-
var refReference = (0,
|
2178
|
+
var refDefaultReference = (0,external_vue_.ref)();
|
2179
|
+
var refContent = (0,external_vue_.ref)();
|
2180
|
+
var refArrow = (0,external_vue_.ref)();
|
2181
|
+
var refRoot = (0,external_vue_.ref)();
|
2182
|
+
var refReference = (0,external_vue_.computed)(function () {
|
2004
2183
|
return reference.value || refDefaultReference.value;
|
2005
2184
|
});
|
2006
2185
|
|
@@ -2026,7 +2205,7 @@ var parentNodeReferId = null;
|
|
2026
2205
|
boundary = _usePopoverInit.boundary;
|
2027
2206
|
|
2028
2207
|
if (!props.always && !props.disabled) {
|
2029
|
-
(0,
|
2208
|
+
(0,external_vue_.watch)(function () {
|
2030
2209
|
return props.isShow;
|
2031
2210
|
}, function () {
|
2032
2211
|
props.isShow ? showPopover() : hidePopover();
|
@@ -2035,7 +2214,7 @@ var parentNodeReferId = null;
|
|
2035
2214
|
});
|
2036
2215
|
}
|
2037
2216
|
|
2038
|
-
(0,
|
2217
|
+
(0,external_vue_.watch)(function () {
|
2039
2218
|
return [props.disabled];
|
2040
2219
|
}, function (val) {
|
2041
2220
|
if (val[0]) {
|
@@ -2045,9 +2224,9 @@ var parentNodeReferId = null;
|
|
2045
2224
|
}
|
2046
2225
|
});
|
2047
2226
|
updateBoundary();
|
2048
|
-
(0,
|
2049
|
-
(0,
|
2050
|
-
var transBoundary = (0,
|
2227
|
+
(0,external_vue_.onMounted)(onMountedFn);
|
2228
|
+
(0,external_vue_.onBeforeUnmount)(onUnmountedFn);
|
2229
|
+
var transBoundary = (0,external_vue_.computed)(function () {
|
2051
2230
|
return !disableTeleport;
|
2052
2231
|
});
|
2053
2232
|
|
@@ -2059,8 +2238,8 @@ var parentNodeReferId = null;
|
|
2059
2238
|
hideFn();
|
2060
2239
|
};
|
2061
2240
|
|
2062
|
-
var contentIsShow = (0,
|
2063
|
-
if (props.renderType ===
|
2241
|
+
var contentIsShow = (0,external_vue_.computed)(function () {
|
2242
|
+
if (props.renderType === external_shared_.RenderType.AUTO) {
|
2064
2243
|
return true;
|
2065
2244
|
}
|
2066
2245
|
|
@@ -2088,22 +2267,22 @@ var parentNodeReferId = null;
|
|
2088
2267
|
|
2089
2268
|
var _a, _b, _c, _d, _e, _f;
|
2090
2269
|
|
2091
|
-
return (0,
|
2270
|
+
return (0,external_vue_.createVNode)(root, {
|
2092
2271
|
"ref": "refRoot"
|
2093
2272
|
}, {
|
2094
2273
|
"default": function _default() {
|
2095
|
-
return [(0,
|
2274
|
+
return [(0,external_vue_.createVNode)(reference, {
|
2096
2275
|
"ref": "refDefaultReference"
|
2097
2276
|
}, {
|
2098
2277
|
"default": function _default() {
|
2099
|
-
return [(_c = (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,
|
2278
|
+
return [(_c = (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_.createVNode)("span", null, null)];
|
2100
2279
|
}
|
2101
|
-
}), (0,
|
2280
|
+
}), (0,external_vue_.createVNode)(external_vue_.Teleport, {
|
2102
2281
|
"to": _this.boundary,
|
2103
2282
|
"disabled": !_this.transBoundary
|
2104
2283
|
}, {
|
2105
2284
|
"default": function _default() {
|
2106
|
-
return [(0,
|
2285
|
+
return [(0,external_vue_.withDirectives)((0,external_vue_.createVNode)(content, {
|
2107
2286
|
"ref": "refContent",
|
2108
2287
|
"data-theme": _this.theme,
|
2109
2288
|
"width": _this.width,
|
@@ -2116,7 +2295,7 @@ var parentNodeReferId = null;
|
|
2116
2295
|
arrow: function arrow() {
|
2117
2296
|
var _a, _b;
|
2118
2297
|
|
2119
|
-
return _this.arrow ? (0,
|
2298
|
+
return _this.arrow ? (0,external_vue_.createVNode)(src_arrow, {
|
2120
2299
|
"ref": "refArrow"
|
2121
2300
|
}, {
|
2122
2301
|
"default": function _default() {
|
@@ -2124,7 +2303,7 @@ var parentNodeReferId = null;
|
|
2124
2303
|
}
|
2125
2304
|
}) : '';
|
2126
2305
|
}
|
2127
|
-
}), [[(0,
|
2306
|
+
}), [[(0,external_vue_.resolveDirective)("clickoutside"), _this.handleClickOutside]])];
|
2128
2307
|
}
|
2129
2308
|
})];
|
2130
2309
|
}
|
@@ -2183,9 +2362,9 @@ function createPopoverComponent(options) {
|
|
2183
2362
|
name: '$popover',
|
2184
2363
|
setup: function setup(_, _ref) {
|
2185
2364
|
var expose = _ref.expose;
|
2186
|
-
var refProps = (0,
|
2187
|
-
var refReference = (0,
|
2188
|
-
var referStyle = (0,
|
2365
|
+
var refProps = (0,external_vue_.ref)(resolvedOptions);
|
2366
|
+
var refReference = (0,external_vue_.ref)();
|
2367
|
+
var referStyle = (0,external_vue_.ref)({
|
2189
2368
|
position: 'absolute',
|
2190
2369
|
pointerEvents: 'none',
|
2191
2370
|
left: 0,
|
@@ -2242,7 +2421,7 @@ function createPopoverComponent(options) {
|
|
2242
2421
|
(_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.stopHide) === null || _b === void 0 ? void 0 : _b.call(_a);
|
2243
2422
|
};
|
2244
2423
|
|
2245
|
-
var attrs = (0,
|
2424
|
+
var attrs = (0,external_vue_.computed)(function () {
|
2246
2425
|
var excludeKeys = ['target'];
|
2247
2426
|
return Object.keys(refProps.value).filter(function (key) {
|
2248
2427
|
return !excludeKeys.includes(key);
|
@@ -2257,7 +2436,7 @@ function createPopoverComponent(options) {
|
|
2257
2436
|
refProps.value.target = target;
|
2258
2437
|
updateStyle(target);
|
2259
2438
|
(_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.updatePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
|
2260
|
-
(0,
|
2439
|
+
(0,external_vue_.nextTick)(function () {
|
2261
2440
|
var _a, _b;
|
2262
2441
|
|
2263
2442
|
(_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.updatePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
|
@@ -2283,13 +2462,13 @@ function createPopoverComponent(options) {
|
|
2283
2462
|
stopHide: stopHide
|
2284
2463
|
});
|
2285
2464
|
return function () {
|
2286
|
-
return (0,
|
2465
|
+
return (0,external_vue_.createVNode)(popover, (0,external_vue_.mergeProps)(attrs.value, {
|
2287
2466
|
"ref": refReference,
|
2288
2467
|
"onContentMouseenter": handleContentMouseenter,
|
2289
2468
|
"onContentMouseleave": handleContentMouseleave
|
2290
2469
|
}), {
|
2291
2470
|
"default": function _default() {
|
2292
|
-
return [(0,
|
2471
|
+
return [(0,external_vue_.createVNode)("span", {
|
2293
2472
|
"style": referStyle.value
|
2294
2473
|
}, null)];
|
2295
2474
|
}
|
@@ -2322,7 +2501,7 @@ function createPopoverComponent(options) {
|
|
2322
2501
|
$PopoverInstanceEl = document.createElement('div');
|
2323
2502
|
getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
|
2324
2503
|
setTimeout(function () {
|
2325
|
-
$PopoverInstance = (0,
|
2504
|
+
$PopoverInstance = (0,external_vue_.createApp)(popoverComponent);
|
2326
2505
|
$PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
|
2327
2506
|
});
|
2328
2507
|
}
|
@@ -2396,13 +2575,13 @@ function createPopoverComponent(options) {
|
|
2396
2575
|
*/
|
2397
2576
|
|
2398
2577
|
|
2399
|
-
var BkPopover = (0,
|
2578
|
+
var BkPopover = (0,external_shared_.withInstall)(popover);
|
2400
2579
|
/* harmony default export */ const src = (BkPopover);
|
2401
2580
|
|
2402
2581
|
|
2403
2582
|
})();
|
2404
2583
|
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
2408
|
-
|
2584
|
+
/******/ return __webpack_exports__;
|
2585
|
+
/******/ })()
|
2586
|
+
;
|
2587
|
+
});
|