@webitel/ui-sdk 1.0.42 → 1.0.45
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/ui-sdk.common.js +3487 -82
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +3487 -82
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +4 -4
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-datetimepicker/__tests__/WtDatetimepicker.spec.js +3 -1
package/dist/ui-sdk.umd.js
CHANGED
|
@@ -11957,9 +11957,3411 @@ var es_array_filter = __webpack_require__(7327);
|
|
|
11957
11957
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
11958
11958
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
11959
11959
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
11960
|
+
;// CONCATENATED MODULE: ./node_modules/@floating-ui/core/dist/floating-ui.core.esm.js
|
|
11961
|
+
function getBasePlacement(placement) {
|
|
11962
|
+
return placement.split('-')[0];
|
|
11963
|
+
}
|
|
11964
|
+
|
|
11965
|
+
function getAlignment(placement) {
|
|
11966
|
+
return placement.split('-')[1];
|
|
11967
|
+
}
|
|
11968
|
+
|
|
11969
|
+
function getMainAxisFromPlacement(placement) {
|
|
11970
|
+
return ['top', 'bottom'].includes(getBasePlacement(placement)) ? 'x' : 'y';
|
|
11971
|
+
}
|
|
11972
|
+
|
|
11973
|
+
function getLengthFromAxis(axis) {
|
|
11974
|
+
return axis === 'y' ? 'height' : 'width';
|
|
11975
|
+
}
|
|
11976
|
+
|
|
11977
|
+
function computeCoordsFromPlacement(_ref) {
|
|
11978
|
+
let {
|
|
11979
|
+
reference,
|
|
11980
|
+
floating,
|
|
11981
|
+
placement
|
|
11982
|
+
} = _ref;
|
|
11983
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
11984
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
11985
|
+
let coords;
|
|
11986
|
+
|
|
11987
|
+
switch (getBasePlacement(placement)) {
|
|
11988
|
+
case 'top':
|
|
11989
|
+
coords = {
|
|
11990
|
+
x: commonX,
|
|
11991
|
+
y: reference.y - floating.height
|
|
11992
|
+
};
|
|
11993
|
+
break;
|
|
11994
|
+
|
|
11995
|
+
case 'bottom':
|
|
11996
|
+
coords = {
|
|
11997
|
+
x: commonX,
|
|
11998
|
+
y: reference.y + reference.height
|
|
11999
|
+
};
|
|
12000
|
+
break;
|
|
12001
|
+
|
|
12002
|
+
case 'right':
|
|
12003
|
+
coords = {
|
|
12004
|
+
x: reference.x + reference.width,
|
|
12005
|
+
y: commonY
|
|
12006
|
+
};
|
|
12007
|
+
break;
|
|
12008
|
+
|
|
12009
|
+
case 'left':
|
|
12010
|
+
coords = {
|
|
12011
|
+
x: reference.x - floating.width,
|
|
12012
|
+
y: commonY
|
|
12013
|
+
};
|
|
12014
|
+
break;
|
|
12015
|
+
|
|
12016
|
+
default:
|
|
12017
|
+
coords = {
|
|
12018
|
+
x: reference.x,
|
|
12019
|
+
y: reference.y
|
|
12020
|
+
};
|
|
12021
|
+
}
|
|
12022
|
+
|
|
12023
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
|
12024
|
+
const length = getLengthFromAxis(mainAxis);
|
|
12025
|
+
|
|
12026
|
+
switch (getAlignment(placement)) {
|
|
12027
|
+
case 'start':
|
|
12028
|
+
coords[mainAxis] = coords[mainAxis] - (reference[length] / 2 - floating[length] / 2);
|
|
12029
|
+
break;
|
|
12030
|
+
|
|
12031
|
+
case 'end':
|
|
12032
|
+
coords[mainAxis] = coords[mainAxis] + (reference[length] / 2 - floating[length] / 2);
|
|
12033
|
+
break;
|
|
12034
|
+
}
|
|
12035
|
+
|
|
12036
|
+
return coords;
|
|
12037
|
+
}
|
|
12038
|
+
|
|
12039
|
+
const computePosition = async (reference, floating, config) => {
|
|
12040
|
+
const {
|
|
12041
|
+
placement = 'bottom',
|
|
12042
|
+
strategy = 'absolute',
|
|
12043
|
+
middleware = [],
|
|
12044
|
+
platform
|
|
12045
|
+
} = config;
|
|
12046
|
+
|
|
12047
|
+
if (false) {}
|
|
12048
|
+
|
|
12049
|
+
let rects = await platform.getElementRects({
|
|
12050
|
+
reference,
|
|
12051
|
+
floating,
|
|
12052
|
+
strategy
|
|
12053
|
+
});
|
|
12054
|
+
let {
|
|
12055
|
+
x,
|
|
12056
|
+
y
|
|
12057
|
+
} = computeCoordsFromPlacement({ ...rects,
|
|
12058
|
+
placement
|
|
12059
|
+
});
|
|
12060
|
+
let statefulPlacement = placement;
|
|
12061
|
+
let middlewareData = {};
|
|
12062
|
+
let _debug_loop_count_ = 0;
|
|
12063
|
+
|
|
12064
|
+
for (let i = 0; i < middleware.length; i++) {
|
|
12065
|
+
if (false) {}
|
|
12066
|
+
|
|
12067
|
+
const {
|
|
12068
|
+
name,
|
|
12069
|
+
fn
|
|
12070
|
+
} = middleware[i];
|
|
12071
|
+
const {
|
|
12072
|
+
x: nextX,
|
|
12073
|
+
y: nextY,
|
|
12074
|
+
data,
|
|
12075
|
+
reset
|
|
12076
|
+
} = await fn({
|
|
12077
|
+
x,
|
|
12078
|
+
y,
|
|
12079
|
+
initialPlacement: placement,
|
|
12080
|
+
placement: statefulPlacement,
|
|
12081
|
+
strategy,
|
|
12082
|
+
middlewareData,
|
|
12083
|
+
rects,
|
|
12084
|
+
platform,
|
|
12085
|
+
elements: {
|
|
12086
|
+
reference,
|
|
12087
|
+
floating
|
|
12088
|
+
}
|
|
12089
|
+
});
|
|
12090
|
+
x = nextX != null ? nextX : x;
|
|
12091
|
+
y = nextY != null ? nextY : y;
|
|
12092
|
+
middlewareData = { ...middlewareData,
|
|
12093
|
+
[name]: data != null ? data : {}
|
|
12094
|
+
};
|
|
12095
|
+
|
|
12096
|
+
if (reset) {
|
|
12097
|
+
if (typeof reset === 'object') {
|
|
12098
|
+
if (reset.placement) {
|
|
12099
|
+
statefulPlacement = reset.placement;
|
|
12100
|
+
}
|
|
12101
|
+
|
|
12102
|
+
if (reset.rects) {
|
|
12103
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
|
12104
|
+
reference,
|
|
12105
|
+
floating,
|
|
12106
|
+
strategy
|
|
12107
|
+
}) : reset.rects;
|
|
12108
|
+
}
|
|
12109
|
+
|
|
12110
|
+
({
|
|
12111
|
+
x,
|
|
12112
|
+
y
|
|
12113
|
+
} = computeCoordsFromPlacement({ ...rects,
|
|
12114
|
+
placement: statefulPlacement
|
|
12115
|
+
}));
|
|
12116
|
+
}
|
|
12117
|
+
|
|
12118
|
+
i = -1;
|
|
12119
|
+
continue;
|
|
12120
|
+
}
|
|
12121
|
+
}
|
|
12122
|
+
|
|
12123
|
+
return {
|
|
12124
|
+
x,
|
|
12125
|
+
y,
|
|
12126
|
+
placement: statefulPlacement,
|
|
12127
|
+
strategy,
|
|
12128
|
+
middlewareData
|
|
12129
|
+
};
|
|
12130
|
+
};
|
|
12131
|
+
|
|
12132
|
+
function expandPaddingObject(padding) {
|
|
12133
|
+
return {
|
|
12134
|
+
top: 0,
|
|
12135
|
+
right: 0,
|
|
12136
|
+
bottom: 0,
|
|
12137
|
+
left: 0,
|
|
12138
|
+
...padding
|
|
12139
|
+
};
|
|
12140
|
+
}
|
|
12141
|
+
|
|
12142
|
+
function getSideObjectFromPadding(padding) {
|
|
12143
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
12144
|
+
top: padding,
|
|
12145
|
+
right: padding,
|
|
12146
|
+
bottom: padding,
|
|
12147
|
+
left: padding
|
|
12148
|
+
};
|
|
12149
|
+
}
|
|
12150
|
+
|
|
12151
|
+
function rectToClientRect(rect) {
|
|
12152
|
+
return { ...rect,
|
|
12153
|
+
top: rect.y,
|
|
12154
|
+
left: rect.x,
|
|
12155
|
+
right: rect.x + rect.width,
|
|
12156
|
+
bottom: rect.y + rect.height
|
|
12157
|
+
};
|
|
12158
|
+
}
|
|
12159
|
+
|
|
12160
|
+
async function detectOverflow(middlewareArguments, options) {
|
|
12161
|
+
if (options === void 0) {
|
|
12162
|
+
options = {};
|
|
12163
|
+
}
|
|
12164
|
+
|
|
12165
|
+
const {
|
|
12166
|
+
x,
|
|
12167
|
+
y,
|
|
12168
|
+
platform,
|
|
12169
|
+
rects,
|
|
12170
|
+
elements,
|
|
12171
|
+
strategy
|
|
12172
|
+
} = middlewareArguments;
|
|
12173
|
+
const {
|
|
12174
|
+
boundary = 'clippingParents',
|
|
12175
|
+
rootBoundary = 'viewport',
|
|
12176
|
+
elementContext = 'floating',
|
|
12177
|
+
altBoundary = false,
|
|
12178
|
+
padding = 0
|
|
12179
|
+
} = options;
|
|
12180
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
|
12181
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
12182
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
12183
|
+
const clippingClientRect = await platform.getClippingClientRect({
|
|
12184
|
+
element: (await platform.isElement(element)) ? element : element.contextElement || (await platform.getDocumentElement({
|
|
12185
|
+
element: elements.floating
|
|
12186
|
+
})),
|
|
12187
|
+
boundary,
|
|
12188
|
+
rootBoundary
|
|
12189
|
+
});
|
|
12190
|
+
const elementClientRect = rectToClientRect(await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
12191
|
+
rect: elementContext === 'floating' ? { ...rects.floating,
|
|
12192
|
+
x,
|
|
12193
|
+
y
|
|
12194
|
+
} : rects.reference,
|
|
12195
|
+
offsetParent: await platform.getOffsetParent({
|
|
12196
|
+
element: elements.floating
|
|
12197
|
+
}),
|
|
12198
|
+
strategy
|
|
12199
|
+
})); // positive = overflowing the clipping rect
|
|
12200
|
+
// 0 or negative = within the clipping rect
|
|
12201
|
+
|
|
12202
|
+
return {
|
|
12203
|
+
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
|
12204
|
+
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
|
12205
|
+
left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
|
|
12206
|
+
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
|
|
12207
|
+
};
|
|
12208
|
+
}
|
|
12209
|
+
|
|
12210
|
+
const min = Math.min;
|
|
12211
|
+
const max = Math.max;
|
|
12212
|
+
|
|
12213
|
+
function within(min$1, value, max$1) {
|
|
12214
|
+
return max(min$1, min(value, max$1));
|
|
12215
|
+
}
|
|
12216
|
+
|
|
12217
|
+
const arrow = options => ({
|
|
12218
|
+
name: 'arrow',
|
|
12219
|
+
options,
|
|
12220
|
+
|
|
12221
|
+
async fn(middlewareArguments) {
|
|
12222
|
+
// Since `element` is required, we don't Partial<> the type
|
|
12223
|
+
const {
|
|
12224
|
+
element,
|
|
12225
|
+
padding = 0
|
|
12226
|
+
} = options != null ? options : {};
|
|
12227
|
+
const {
|
|
12228
|
+
x,
|
|
12229
|
+
y,
|
|
12230
|
+
placement,
|
|
12231
|
+
rects,
|
|
12232
|
+
platform
|
|
12233
|
+
} = middlewareArguments;
|
|
12234
|
+
|
|
12235
|
+
if (element == null) {
|
|
12236
|
+
if (false) {}
|
|
12237
|
+
|
|
12238
|
+
return {};
|
|
12239
|
+
}
|
|
12240
|
+
|
|
12241
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
|
12242
|
+
const coords = {
|
|
12243
|
+
x,
|
|
12244
|
+
y
|
|
12245
|
+
};
|
|
12246
|
+
const basePlacement = getBasePlacement(placement);
|
|
12247
|
+
const axis = getMainAxisFromPlacement(basePlacement);
|
|
12248
|
+
const length = getLengthFromAxis(axis);
|
|
12249
|
+
const arrowDimensions = await platform.getDimensions({
|
|
12250
|
+
element
|
|
12251
|
+
});
|
|
12252
|
+
const minProp = axis === 'y' ? 'top' : 'left';
|
|
12253
|
+
const maxProp = axis === 'y' ? 'bottom' : 'right';
|
|
12254
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
12255
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
12256
|
+
const arrowOffsetParent = await platform.getOffsetParent({
|
|
12257
|
+
element
|
|
12258
|
+
});
|
|
12259
|
+
const clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
12260
|
+
const centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the floating element if the center
|
|
12261
|
+
// point is outside of the floating element's bounds
|
|
12262
|
+
|
|
12263
|
+
const min = paddingObject[minProp];
|
|
12264
|
+
const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
|
|
12265
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
12266
|
+
const offset = within(min, center, max);
|
|
12267
|
+
return {
|
|
12268
|
+
data: {
|
|
12269
|
+
[axis]: offset,
|
|
12270
|
+
centerOffset: center - offset
|
|
12271
|
+
}
|
|
12272
|
+
};
|
|
12273
|
+
}
|
|
12274
|
+
|
|
12275
|
+
});
|
|
12276
|
+
|
|
12277
|
+
const hash$1 = {
|
|
12278
|
+
left: 'right',
|
|
12279
|
+
right: 'left',
|
|
12280
|
+
bottom: 'top',
|
|
12281
|
+
top: 'bottom'
|
|
12282
|
+
};
|
|
12283
|
+
function getOppositePlacement(placement) {
|
|
12284
|
+
return placement.replace(/left|right|bottom|top/g, matched => hash$1[matched]);
|
|
12285
|
+
}
|
|
12286
|
+
|
|
12287
|
+
function getAlignmentSides(placement, rects) {
|
|
12288
|
+
const isStart = getAlignment(placement) === 'start';
|
|
12289
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
|
12290
|
+
const length = getLengthFromAxis(mainAxis);
|
|
12291
|
+
let mainAlignmentSide = mainAxis === 'x' ? isStart ? 'right' : 'left' : isStart ? 'bottom' : 'top';
|
|
12292
|
+
|
|
12293
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
12294
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
12295
|
+
}
|
|
12296
|
+
|
|
12297
|
+
return {
|
|
12298
|
+
main: mainAlignmentSide,
|
|
12299
|
+
cross: getOppositePlacement(mainAlignmentSide)
|
|
12300
|
+
};
|
|
12301
|
+
}
|
|
12302
|
+
|
|
12303
|
+
const hash = {
|
|
12304
|
+
start: 'end',
|
|
12305
|
+
end: 'start'
|
|
12306
|
+
};
|
|
12307
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
12308
|
+
return placement.replace(/start|end/g, matched => hash[matched]);
|
|
12309
|
+
}
|
|
12310
|
+
|
|
12311
|
+
const basePlacements = ['top', 'right', 'bottom', 'left'];
|
|
12312
|
+
const allPlacements = /*#__PURE__*/basePlacements.reduce((acc, basePlacement) => acc.concat(basePlacement, basePlacement + "-start", basePlacement + "-end"), []);
|
|
12313
|
+
|
|
12314
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
12315
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getBasePlacement(placement) === placement);
|
|
12316
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
12317
|
+
if (alignment) {
|
|
12318
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
12319
|
+
}
|
|
12320
|
+
|
|
12321
|
+
return true;
|
|
12322
|
+
});
|
|
12323
|
+
}
|
|
12324
|
+
const autoPlacement = function (options) {
|
|
12325
|
+
if (options === void 0) {
|
|
12326
|
+
options = {};
|
|
12327
|
+
}
|
|
12328
|
+
|
|
12329
|
+
return {
|
|
12330
|
+
name: 'autoPlacement',
|
|
12331
|
+
options,
|
|
12332
|
+
|
|
12333
|
+
async fn(middlewareArguments) {
|
|
12334
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _middlewareData$autoP3, _middlewareData$autoP4, _middlewareData$autoP5, _placementsSortedByLe;
|
|
12335
|
+
|
|
12336
|
+
const {
|
|
12337
|
+
x,
|
|
12338
|
+
y,
|
|
12339
|
+
rects,
|
|
12340
|
+
middlewareData,
|
|
12341
|
+
placement
|
|
12342
|
+
} = middlewareArguments;
|
|
12343
|
+
const {
|
|
12344
|
+
alignment = null,
|
|
12345
|
+
allowedPlacements = allPlacements,
|
|
12346
|
+
autoAlignment = true,
|
|
12347
|
+
...detectOverflowOptions
|
|
12348
|
+
} = options;
|
|
12349
|
+
|
|
12350
|
+
if ((_middlewareData$autoP = middlewareData.autoPlacement) != null && _middlewareData$autoP.skip) {
|
|
12351
|
+
return {};
|
|
12352
|
+
}
|
|
12353
|
+
|
|
12354
|
+
const placements = getPlacementList(alignment, autoAlignment, allowedPlacements);
|
|
12355
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
12356
|
+
const currentIndex = (_middlewareData$autoP2 = (_middlewareData$autoP3 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP3.index) != null ? _middlewareData$autoP2 : 0;
|
|
12357
|
+
const currentPlacement = placements[currentIndex];
|
|
12358
|
+
const {
|
|
12359
|
+
main,
|
|
12360
|
+
cross
|
|
12361
|
+
} = getAlignmentSides(currentPlacement, rects); // Make `computeCoords` start from the right place
|
|
12362
|
+
|
|
12363
|
+
if (placement !== currentPlacement) {
|
|
12364
|
+
return {
|
|
12365
|
+
x,
|
|
12366
|
+
y,
|
|
12367
|
+
reset: {
|
|
12368
|
+
placement: placements[0]
|
|
12369
|
+
}
|
|
12370
|
+
};
|
|
12371
|
+
}
|
|
12372
|
+
|
|
12373
|
+
const currentOverflows = [overflow[getBasePlacement(currentPlacement)], overflow[main], overflow[cross]];
|
|
12374
|
+
const allOverflows = [...((_middlewareData$autoP4 = (_middlewareData$autoP5 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP5.overflows) != null ? _middlewareData$autoP4 : []), {
|
|
12375
|
+
placement: currentPlacement,
|
|
12376
|
+
overflows: currentOverflows
|
|
12377
|
+
}];
|
|
12378
|
+
const nextPlacement = placements[currentIndex + 1]; // There are more placements to check
|
|
12379
|
+
|
|
12380
|
+
if (nextPlacement) {
|
|
12381
|
+
return {
|
|
12382
|
+
data: {
|
|
12383
|
+
index: currentIndex + 1,
|
|
12384
|
+
overflows: allOverflows
|
|
12385
|
+
},
|
|
12386
|
+
reset: {
|
|
12387
|
+
placement: nextPlacement
|
|
12388
|
+
}
|
|
12389
|
+
};
|
|
12390
|
+
}
|
|
12391
|
+
|
|
12392
|
+
const placementsSortedByLeastOverflow = allOverflows.slice().sort((a, b) => a.overflows[0] - b.overflows[0]);
|
|
12393
|
+
const placementThatFitsOnAllSides = (_placementsSortedByLe = placementsSortedByLeastOverflow.find(_ref => {
|
|
12394
|
+
let {
|
|
12395
|
+
overflows
|
|
12396
|
+
} = _ref;
|
|
12397
|
+
return overflows.every(overflow => overflow <= 0);
|
|
12398
|
+
})) == null ? void 0 : _placementsSortedByLe.placement;
|
|
12399
|
+
return {
|
|
12400
|
+
data: {
|
|
12401
|
+
skip: true
|
|
12402
|
+
},
|
|
12403
|
+
reset: {
|
|
12404
|
+
placement: placementThatFitsOnAllSides != null ? placementThatFitsOnAllSides : placementsSortedByLeastOverflow[0].placement
|
|
12405
|
+
}
|
|
12406
|
+
};
|
|
12407
|
+
}
|
|
12408
|
+
|
|
12409
|
+
};
|
|
12410
|
+
};
|
|
12411
|
+
|
|
12412
|
+
function getExpandedPlacements(placement) {
|
|
12413
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
12414
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
12415
|
+
}
|
|
12416
|
+
|
|
12417
|
+
const flip = function (options) {
|
|
12418
|
+
if (options === void 0) {
|
|
12419
|
+
options = {};
|
|
12420
|
+
}
|
|
12421
|
+
|
|
12422
|
+
return {
|
|
12423
|
+
name: 'flip',
|
|
12424
|
+
options,
|
|
12425
|
+
|
|
12426
|
+
async fn(middlewareArguments) {
|
|
12427
|
+
var _middlewareData$flip, _middlewareData$flip2;
|
|
12428
|
+
|
|
12429
|
+
const {
|
|
12430
|
+
placement,
|
|
12431
|
+
middlewareData,
|
|
12432
|
+
rects,
|
|
12433
|
+
initialPlacement
|
|
12434
|
+
} = middlewareArguments;
|
|
12435
|
+
|
|
12436
|
+
if ((_middlewareData$flip = middlewareData.flip) != null && _middlewareData$flip.skip) {
|
|
12437
|
+
return {};
|
|
12438
|
+
}
|
|
12439
|
+
|
|
12440
|
+
const {
|
|
12441
|
+
mainAxis: checkMainAxis = true,
|
|
12442
|
+
crossAxis: checkCrossAxis = true,
|
|
12443
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
12444
|
+
fallbackStrategy = 'bestFit',
|
|
12445
|
+
flipAlignment = true,
|
|
12446
|
+
...detectOverflowOptions
|
|
12447
|
+
} = options;
|
|
12448
|
+
const basePlacement = getBasePlacement(placement);
|
|
12449
|
+
const isBasePlacement = basePlacement === initialPlacement;
|
|
12450
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
12451
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
12452
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
12453
|
+
const overflows = [];
|
|
12454
|
+
let overflowsData = ((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.overflows) || [];
|
|
12455
|
+
|
|
12456
|
+
if (checkMainAxis) {
|
|
12457
|
+
overflows.push(overflow[basePlacement]);
|
|
12458
|
+
}
|
|
12459
|
+
|
|
12460
|
+
if (checkCrossAxis) {
|
|
12461
|
+
const {
|
|
12462
|
+
main,
|
|
12463
|
+
cross
|
|
12464
|
+
} = getAlignmentSides(placement, rects);
|
|
12465
|
+
overflows.push(overflow[main], overflow[cross]);
|
|
12466
|
+
}
|
|
12467
|
+
|
|
12468
|
+
overflowsData = [...overflowsData, {
|
|
12469
|
+
placement,
|
|
12470
|
+
overflows
|
|
12471
|
+
}]; // One or more sides is overflowing
|
|
12472
|
+
|
|
12473
|
+
if (!overflows.every(side => side <= 0)) {
|
|
12474
|
+
var _middlewareData$flip$, _middlewareData$flip3;
|
|
12475
|
+
|
|
12476
|
+
const nextIndex = ((_middlewareData$flip$ = (_middlewareData$flip3 = middlewareData.flip) == null ? void 0 : _middlewareData$flip3.index) != null ? _middlewareData$flip$ : 0) + 1;
|
|
12477
|
+
const nextPlacement = placements[nextIndex];
|
|
12478
|
+
|
|
12479
|
+
if (nextPlacement) {
|
|
12480
|
+
// Try next placement and re-run the lifecycle
|
|
12481
|
+
return {
|
|
12482
|
+
data: {
|
|
12483
|
+
index: nextIndex,
|
|
12484
|
+
overflows: overflowsData
|
|
12485
|
+
},
|
|
12486
|
+
reset: {
|
|
12487
|
+
placement: nextPlacement
|
|
12488
|
+
}
|
|
12489
|
+
};
|
|
12490
|
+
}
|
|
12491
|
+
|
|
12492
|
+
let resetPlacement = 'bottom';
|
|
12493
|
+
|
|
12494
|
+
switch (fallbackStrategy) {
|
|
12495
|
+
case 'bestFit':
|
|
12496
|
+
{
|
|
12497
|
+
var _overflowsData$slice$;
|
|
12498
|
+
|
|
12499
|
+
const placement = (_overflowsData$slice$ = overflowsData.slice().sort((a, b) => a.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0) - b.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0))[0]) == null ? void 0 : _overflowsData$slice$.placement;
|
|
12500
|
+
|
|
12501
|
+
if (placement) {
|
|
12502
|
+
resetPlacement = placement;
|
|
12503
|
+
}
|
|
12504
|
+
|
|
12505
|
+
break;
|
|
12506
|
+
}
|
|
12507
|
+
|
|
12508
|
+
case 'initialPlacement':
|
|
12509
|
+
resetPlacement = initialPlacement;
|
|
12510
|
+
break;
|
|
12511
|
+
}
|
|
12512
|
+
|
|
12513
|
+
return {
|
|
12514
|
+
data: {
|
|
12515
|
+
skip: true
|
|
12516
|
+
},
|
|
12517
|
+
reset: {
|
|
12518
|
+
placement: resetPlacement
|
|
12519
|
+
}
|
|
12520
|
+
};
|
|
12521
|
+
}
|
|
12522
|
+
|
|
12523
|
+
return {};
|
|
12524
|
+
}
|
|
12525
|
+
|
|
12526
|
+
};
|
|
12527
|
+
};
|
|
12528
|
+
|
|
12529
|
+
function getSideOffsets(overflow, rect) {
|
|
12530
|
+
return {
|
|
12531
|
+
top: overflow.top - rect.height,
|
|
12532
|
+
right: overflow.right - rect.width,
|
|
12533
|
+
bottom: overflow.bottom - rect.height,
|
|
12534
|
+
left: overflow.left - rect.width
|
|
12535
|
+
};
|
|
12536
|
+
}
|
|
12537
|
+
|
|
12538
|
+
function isAnySideFullyClipped(overflow) {
|
|
12539
|
+
return basePlacements.some(side => overflow[side] >= 0);
|
|
12540
|
+
}
|
|
12541
|
+
|
|
12542
|
+
const hide = () => ({
|
|
12543
|
+
name: 'hide',
|
|
12544
|
+
|
|
12545
|
+
async fn(modifierArguments) {
|
|
12546
|
+
const referenceOverflow = await detectOverflow(modifierArguments, {
|
|
12547
|
+
elementContext: 'reference'
|
|
12548
|
+
});
|
|
12549
|
+
const floatingAltOverflow = await detectOverflow(modifierArguments, {
|
|
12550
|
+
altBoundary: true
|
|
12551
|
+
});
|
|
12552
|
+
const referenceHiddenOffsets = getSideOffsets(referenceOverflow, modifierArguments.rects.reference);
|
|
12553
|
+
const escapedOffsets = getSideOffsets(floatingAltOverflow, modifierArguments.rects.floating);
|
|
12554
|
+
const referenceHidden = isAnySideFullyClipped(referenceHiddenOffsets);
|
|
12555
|
+
const escaped = isAnySideFullyClipped(escapedOffsets);
|
|
12556
|
+
return {
|
|
12557
|
+
data: {
|
|
12558
|
+
referenceHidden,
|
|
12559
|
+
referenceHiddenOffsets,
|
|
12560
|
+
escaped,
|
|
12561
|
+
escapedOffsets
|
|
12562
|
+
}
|
|
12563
|
+
};
|
|
12564
|
+
}
|
|
12565
|
+
|
|
12566
|
+
});
|
|
12567
|
+
|
|
12568
|
+
function convertValueToCoords(_ref) {
|
|
12569
|
+
let {
|
|
12570
|
+
placement,
|
|
12571
|
+
rects,
|
|
12572
|
+
value
|
|
12573
|
+
} = _ref;
|
|
12574
|
+
const basePlacement = getBasePlacement(placement);
|
|
12575
|
+
const multiplier = ['left', 'top'].includes(basePlacement) ? -1 : 1;
|
|
12576
|
+
const rawValue = typeof value === 'function' ? value({ ...rects,
|
|
12577
|
+
placement
|
|
12578
|
+
}) : value;
|
|
12579
|
+
const {
|
|
12580
|
+
mainAxis,
|
|
12581
|
+
crossAxis
|
|
12582
|
+
} = typeof rawValue === 'number' ? {
|
|
12583
|
+
mainAxis: rawValue,
|
|
12584
|
+
crossAxis: 0
|
|
12585
|
+
} : {
|
|
12586
|
+
mainAxis: 0,
|
|
12587
|
+
crossAxis: 0,
|
|
12588
|
+
...rawValue
|
|
12589
|
+
};
|
|
12590
|
+
return getMainAxisFromPlacement(basePlacement) === 'x' ? {
|
|
12591
|
+
x: crossAxis,
|
|
12592
|
+
y: mainAxis * multiplier
|
|
12593
|
+
} : {
|
|
12594
|
+
x: mainAxis * multiplier,
|
|
12595
|
+
y: crossAxis
|
|
12596
|
+
};
|
|
12597
|
+
}
|
|
12598
|
+
const offset = function (value) {
|
|
12599
|
+
if (value === void 0) {
|
|
12600
|
+
value = 0;
|
|
12601
|
+
}
|
|
12602
|
+
|
|
12603
|
+
return {
|
|
12604
|
+
name: 'offset',
|
|
12605
|
+
options: value,
|
|
12606
|
+
|
|
12607
|
+
fn(middlewareArguments) {
|
|
12608
|
+
const {
|
|
12609
|
+
x,
|
|
12610
|
+
y,
|
|
12611
|
+
placement,
|
|
12612
|
+
rects
|
|
12613
|
+
} = middlewareArguments;
|
|
12614
|
+
const diffCoords = convertValueToCoords({
|
|
12615
|
+
placement,
|
|
12616
|
+
rects,
|
|
12617
|
+
value
|
|
12618
|
+
});
|
|
12619
|
+
return {
|
|
12620
|
+
x: x + diffCoords.x,
|
|
12621
|
+
y: y + diffCoords.y,
|
|
12622
|
+
data: diffCoords
|
|
12623
|
+
};
|
|
12624
|
+
}
|
|
12625
|
+
|
|
12626
|
+
};
|
|
12627
|
+
};
|
|
12628
|
+
|
|
12629
|
+
function getCrossAxis(axis) {
|
|
12630
|
+
return axis === 'x' ? 'y' : 'x';
|
|
12631
|
+
}
|
|
12632
|
+
|
|
12633
|
+
const shift = function (options) {
|
|
12634
|
+
if (options === void 0) {
|
|
12635
|
+
options = {};
|
|
12636
|
+
}
|
|
12637
|
+
|
|
12638
|
+
return {
|
|
12639
|
+
name: 'shift',
|
|
12640
|
+
options,
|
|
12641
|
+
|
|
12642
|
+
async fn(middlewareArguments) {
|
|
12643
|
+
const {
|
|
12644
|
+
x,
|
|
12645
|
+
y,
|
|
12646
|
+
placement
|
|
12647
|
+
} = middlewareArguments;
|
|
12648
|
+
const {
|
|
12649
|
+
mainAxis: checkMainAxis = true,
|
|
12650
|
+
crossAxis: checkCrossAxis = false,
|
|
12651
|
+
limiter = {
|
|
12652
|
+
fn: _ref => {
|
|
12653
|
+
let {
|
|
12654
|
+
x,
|
|
12655
|
+
y
|
|
12656
|
+
} = _ref;
|
|
12657
|
+
return {
|
|
12658
|
+
x,
|
|
12659
|
+
y
|
|
12660
|
+
};
|
|
12661
|
+
}
|
|
12662
|
+
},
|
|
12663
|
+
...detectOverflowOptions
|
|
12664
|
+
} = options;
|
|
12665
|
+
const coords = {
|
|
12666
|
+
x,
|
|
12667
|
+
y
|
|
12668
|
+
};
|
|
12669
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
12670
|
+
const mainAxis = getMainAxisFromPlacement(getBasePlacement(placement));
|
|
12671
|
+
const crossAxis = getCrossAxis(mainAxis);
|
|
12672
|
+
let mainAxisCoord = coords[mainAxis];
|
|
12673
|
+
let crossAxisCoord = coords[crossAxis];
|
|
12674
|
+
|
|
12675
|
+
if (checkMainAxis) {
|
|
12676
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
12677
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
12678
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
12679
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
12680
|
+
mainAxisCoord = within(min, mainAxisCoord, max);
|
|
12681
|
+
}
|
|
12682
|
+
|
|
12683
|
+
if (checkCrossAxis) {
|
|
12684
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
12685
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
12686
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
12687
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
12688
|
+
crossAxisCoord = within(min, crossAxisCoord, max);
|
|
12689
|
+
}
|
|
12690
|
+
|
|
12691
|
+
const limitedCoords = limiter.fn({ ...middlewareArguments,
|
|
12692
|
+
[mainAxis]: mainAxisCoord,
|
|
12693
|
+
[crossAxis]: crossAxisCoord
|
|
12694
|
+
});
|
|
12695
|
+
return { ...limitedCoords,
|
|
12696
|
+
data: {
|
|
12697
|
+
x: limitedCoords.x - x,
|
|
12698
|
+
y: limitedCoords.y - y
|
|
12699
|
+
}
|
|
12700
|
+
};
|
|
12701
|
+
}
|
|
12702
|
+
|
|
12703
|
+
};
|
|
12704
|
+
};
|
|
12705
|
+
const limitShift = function (options) {
|
|
12706
|
+
if (options === void 0) {
|
|
12707
|
+
options = {};
|
|
12708
|
+
}
|
|
12709
|
+
|
|
12710
|
+
return {
|
|
12711
|
+
options,
|
|
12712
|
+
|
|
12713
|
+
fn(middlewareArguments) {
|
|
12714
|
+
const {
|
|
12715
|
+
x,
|
|
12716
|
+
y,
|
|
12717
|
+
placement,
|
|
12718
|
+
rects,
|
|
12719
|
+
middlewareData
|
|
12720
|
+
} = middlewareArguments;
|
|
12721
|
+
const {
|
|
12722
|
+
offset = 0,
|
|
12723
|
+
mainAxis: checkMainAxis = true,
|
|
12724
|
+
crossAxis: checkCrossAxis = true
|
|
12725
|
+
} = options;
|
|
12726
|
+
const coords = {
|
|
12727
|
+
x,
|
|
12728
|
+
y
|
|
12729
|
+
};
|
|
12730
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
|
12731
|
+
const crossAxis = getCrossAxis(mainAxis);
|
|
12732
|
+
let mainAxisCoord = coords[mainAxis];
|
|
12733
|
+
let crossAxisCoord = coords[crossAxis];
|
|
12734
|
+
const rawOffset = typeof offset === 'function' ? offset({ ...rects,
|
|
12735
|
+
placement
|
|
12736
|
+
}) : offset;
|
|
12737
|
+
const computedOffset = typeof rawOffset === 'number' ? {
|
|
12738
|
+
mainAxis: rawOffset,
|
|
12739
|
+
crossAxis: 0
|
|
12740
|
+
} : {
|
|
12741
|
+
mainAxis: 0,
|
|
12742
|
+
crossAxis: 0,
|
|
12743
|
+
...rawOffset
|
|
12744
|
+
};
|
|
12745
|
+
|
|
12746
|
+
if (checkMainAxis) {
|
|
12747
|
+
const len = mainAxis === 'y' ? 'height' : 'width';
|
|
12748
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
12749
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
12750
|
+
|
|
12751
|
+
if (mainAxisCoord < limitMin) {
|
|
12752
|
+
mainAxisCoord = limitMin;
|
|
12753
|
+
} else if (mainAxisCoord > limitMax) {
|
|
12754
|
+
mainAxisCoord = limitMax;
|
|
12755
|
+
}
|
|
12756
|
+
}
|
|
12757
|
+
|
|
12758
|
+
if (checkCrossAxis) {
|
|
12759
|
+
var _middlewareData$offse, _middlewareData$offse2, _middlewareData$offse3, _middlewareData$offse4;
|
|
12760
|
+
|
|
12761
|
+
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
12762
|
+
const isOriginSide = ['top', 'left'].includes(getBasePlacement(placement));
|
|
12763
|
+
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? (_middlewareData$offse = (_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) != null ? _middlewareData$offse : 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
12764
|
+
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : (_middlewareData$offse3 = (_middlewareData$offse4 = middlewareData.offset) == null ? void 0 : _middlewareData$offse4[crossAxis]) != null ? _middlewareData$offse3 : 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
12765
|
+
|
|
12766
|
+
if (crossAxisCoord < limitMin) {
|
|
12767
|
+
crossAxisCoord = limitMin;
|
|
12768
|
+
} else if (crossAxisCoord > limitMax) {
|
|
12769
|
+
crossAxisCoord = limitMax;
|
|
12770
|
+
}
|
|
12771
|
+
}
|
|
12772
|
+
|
|
12773
|
+
return {
|
|
12774
|
+
[mainAxis]: mainAxisCoord,
|
|
12775
|
+
[crossAxis]: crossAxisCoord
|
|
12776
|
+
};
|
|
12777
|
+
}
|
|
12778
|
+
|
|
12779
|
+
};
|
|
12780
|
+
};
|
|
12781
|
+
|
|
12782
|
+
const size = function (options) {
|
|
12783
|
+
if (options === void 0) {
|
|
12784
|
+
options = {};
|
|
12785
|
+
}
|
|
12786
|
+
|
|
12787
|
+
return {
|
|
12788
|
+
name: 'size',
|
|
12789
|
+
options,
|
|
12790
|
+
|
|
12791
|
+
async fn(middlewareArguments) {
|
|
12792
|
+
var _middlewareData$size;
|
|
12793
|
+
|
|
12794
|
+
const {
|
|
12795
|
+
placement,
|
|
12796
|
+
rects,
|
|
12797
|
+
middlewareData
|
|
12798
|
+
} = middlewareArguments;
|
|
12799
|
+
const {
|
|
12800
|
+
apply,
|
|
12801
|
+
...detectOverflowOptions
|
|
12802
|
+
} = options;
|
|
12803
|
+
|
|
12804
|
+
if ((_middlewareData$size = middlewareData.size) != null && _middlewareData$size.skip) {
|
|
12805
|
+
return {};
|
|
12806
|
+
}
|
|
12807
|
+
|
|
12808
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
12809
|
+
const basePlacement = getBasePlacement(placement);
|
|
12810
|
+
const isEnd = getAlignment(placement) === 'end';
|
|
12811
|
+
let heightSide;
|
|
12812
|
+
let widthSide;
|
|
12813
|
+
|
|
12814
|
+
if (basePlacement === 'top' || basePlacement === 'bottom') {
|
|
12815
|
+
heightSide = basePlacement;
|
|
12816
|
+
widthSide = isEnd ? 'left' : 'right';
|
|
12817
|
+
} else {
|
|
12818
|
+
widthSide = basePlacement;
|
|
12819
|
+
heightSide = isEnd ? 'top' : 'bottom';
|
|
12820
|
+
}
|
|
12821
|
+
|
|
12822
|
+
const xMin = max(overflow.left, 0);
|
|
12823
|
+
const xMax = max(overflow.right, 0);
|
|
12824
|
+
const yMin = max(overflow.top, 0);
|
|
12825
|
+
const yMax = max(overflow.bottom, 0);
|
|
12826
|
+
const dimensions = {
|
|
12827
|
+
height: rects.floating.height - (['left', 'right'].includes(placement) ? 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom)) : overflow[heightSide]),
|
|
12828
|
+
width: rects.floating.width - (['top', 'bottom'].includes(placement) ? 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right)) : overflow[widthSide])
|
|
12829
|
+
};
|
|
12830
|
+
apply == null ? void 0 : apply({ ...dimensions,
|
|
12831
|
+
...rects
|
|
12832
|
+
});
|
|
12833
|
+
return {
|
|
12834
|
+
data: {
|
|
12835
|
+
skip: true
|
|
12836
|
+
},
|
|
12837
|
+
reset: {
|
|
12838
|
+
rects: true
|
|
12839
|
+
}
|
|
12840
|
+
};
|
|
12841
|
+
}
|
|
12842
|
+
|
|
12843
|
+
};
|
|
12844
|
+
};
|
|
12845
|
+
|
|
12846
|
+
const inline = function (options) {
|
|
12847
|
+
if (options === void 0) {
|
|
12848
|
+
options = {};
|
|
12849
|
+
}
|
|
12850
|
+
|
|
12851
|
+
return {
|
|
12852
|
+
name: 'inline',
|
|
12853
|
+
options,
|
|
12854
|
+
|
|
12855
|
+
async fn(middlewareArguments) {
|
|
12856
|
+
var _middlewareData$inlin, _await$platform$getCl;
|
|
12857
|
+
|
|
12858
|
+
const {
|
|
12859
|
+
placement,
|
|
12860
|
+
elements,
|
|
12861
|
+
rects,
|
|
12862
|
+
platform,
|
|
12863
|
+
strategy,
|
|
12864
|
+
middlewareData
|
|
12865
|
+
} = middlewareArguments; // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
12866
|
+
// ClientRect's bounds, despite the event listener being triggered. A
|
|
12867
|
+
// padding of 2 seems to handle this issue.
|
|
12868
|
+
|
|
12869
|
+
const {
|
|
12870
|
+
padding = 2,
|
|
12871
|
+
x,
|
|
12872
|
+
y
|
|
12873
|
+
} = options;
|
|
12874
|
+
|
|
12875
|
+
if ((_middlewareData$inlin = middlewareData.inline) != null && _middlewareData$inlin.skip) {
|
|
12876
|
+
return {};
|
|
12877
|
+
}
|
|
12878
|
+
|
|
12879
|
+
const fallback = rectToClientRect(await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
12880
|
+
rect: rects.reference,
|
|
12881
|
+
offsetParent: await platform.getOffsetParent({
|
|
12882
|
+
element: elements.floating
|
|
12883
|
+
}),
|
|
12884
|
+
strategy
|
|
12885
|
+
}));
|
|
12886
|
+
const clientRects = Array.from((_await$platform$getCl = await (platform.getClientRects == null ? void 0 : platform.getClientRects({
|
|
12887
|
+
element: elements.reference
|
|
12888
|
+
}))) != null ? _await$platform$getCl : []);
|
|
12889
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
|
12890
|
+
|
|
12891
|
+
function getBoundingClientRect() {
|
|
12892
|
+
// There are two rects and they are disjoined
|
|
12893
|
+
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
|
12894
|
+
var _clientRects$find;
|
|
12895
|
+
|
|
12896
|
+
// Find the first rect in which the point is fully inside
|
|
12897
|
+
return (_clientRects$find = clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom)) != null ? _clientRects$find : fallback;
|
|
12898
|
+
} // There are 2 or more connected rects
|
|
12899
|
+
|
|
12900
|
+
|
|
12901
|
+
if (clientRects.length >= 2) {
|
|
12902
|
+
if (getMainAxisFromPlacement(placement) === 'x') {
|
|
12903
|
+
const firstRect = clientRects[0];
|
|
12904
|
+
const lastRect = clientRects[clientRects.length - 1];
|
|
12905
|
+
const isTop = getBasePlacement(placement) === 'top';
|
|
12906
|
+
const top = firstRect.top;
|
|
12907
|
+
const bottom = lastRect.bottom;
|
|
12908
|
+
const left = isTop ? firstRect.left : lastRect.left;
|
|
12909
|
+
const right = isTop ? firstRect.right : lastRect.right;
|
|
12910
|
+
const width = right - left;
|
|
12911
|
+
const height = bottom - top;
|
|
12912
|
+
return {
|
|
12913
|
+
top,
|
|
12914
|
+
bottom,
|
|
12915
|
+
left,
|
|
12916
|
+
right,
|
|
12917
|
+
width,
|
|
12918
|
+
height,
|
|
12919
|
+
x: left,
|
|
12920
|
+
y: top
|
|
12921
|
+
};
|
|
12922
|
+
}
|
|
12923
|
+
|
|
12924
|
+
const isLeftPlacement = getBasePlacement(placement) === 'left';
|
|
12925
|
+
const maxRight = max(...clientRects.map(rect => rect.right));
|
|
12926
|
+
const minLeft = min(...clientRects.map(rect => rect.left));
|
|
12927
|
+
const measureRects = clientRects.filter(rect => isLeftPlacement ? rect.left === minLeft : rect.right === maxRight);
|
|
12928
|
+
const top = measureRects[0].top;
|
|
12929
|
+
const bottom = measureRects[measureRects.length - 1].bottom;
|
|
12930
|
+
const left = minLeft;
|
|
12931
|
+
const right = maxRight;
|
|
12932
|
+
const width = right - left;
|
|
12933
|
+
const height = bottom - top;
|
|
12934
|
+
return {
|
|
12935
|
+
top,
|
|
12936
|
+
bottom,
|
|
12937
|
+
left,
|
|
12938
|
+
right,
|
|
12939
|
+
width,
|
|
12940
|
+
height,
|
|
12941
|
+
x: left,
|
|
12942
|
+
y: top
|
|
12943
|
+
};
|
|
12944
|
+
}
|
|
12945
|
+
|
|
12946
|
+
return fallback;
|
|
12947
|
+
}
|
|
12948
|
+
|
|
12949
|
+
return {
|
|
12950
|
+
data: {
|
|
12951
|
+
skip: true
|
|
12952
|
+
},
|
|
12953
|
+
reset: {
|
|
12954
|
+
rects: await platform.getElementRects({
|
|
12955
|
+
reference: {
|
|
12956
|
+
getBoundingClientRect
|
|
12957
|
+
},
|
|
12958
|
+
floating: elements.floating,
|
|
12959
|
+
strategy
|
|
12960
|
+
})
|
|
12961
|
+
}
|
|
12962
|
+
};
|
|
12963
|
+
}
|
|
12964
|
+
|
|
12965
|
+
};
|
|
12966
|
+
};
|
|
12967
|
+
|
|
12968
|
+
|
|
12969
|
+
|
|
12970
|
+
;// CONCATENATED MODULE: ./node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js
|
|
12971
|
+
|
|
12972
|
+
|
|
12973
|
+
|
|
12974
|
+
function isWindow(value) {
|
|
12975
|
+
return (value == null ? void 0 : value.toString()) === '[object Window]';
|
|
12976
|
+
}
|
|
12977
|
+
function getWindow(node) {
|
|
12978
|
+
if (node == null) {
|
|
12979
|
+
return window;
|
|
12980
|
+
}
|
|
12981
|
+
|
|
12982
|
+
if (!isWindow(node)) {
|
|
12983
|
+
const ownerDocument = node.ownerDocument;
|
|
12984
|
+
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
12985
|
+
}
|
|
12986
|
+
|
|
12987
|
+
return node;
|
|
12988
|
+
}
|
|
12989
|
+
|
|
12990
|
+
function getComputedStyle$1(element) {
|
|
12991
|
+
return getWindow(element).getComputedStyle(element);
|
|
12992
|
+
}
|
|
12993
|
+
|
|
12994
|
+
function getNodeName(node) {
|
|
12995
|
+
return isWindow(node) ? '' : node ? (node.nodeName || '').toLowerCase() : '';
|
|
12996
|
+
}
|
|
12997
|
+
|
|
12998
|
+
function isHTMLElement(value) {
|
|
12999
|
+
return value instanceof getWindow(value).HTMLElement;
|
|
13000
|
+
}
|
|
13001
|
+
function isElement(value) {
|
|
13002
|
+
return value instanceof getWindow(value).Element;
|
|
13003
|
+
}
|
|
13004
|
+
function isNode(value) {
|
|
13005
|
+
return value instanceof getWindow(value).Node;
|
|
13006
|
+
}
|
|
13007
|
+
function isShadowRoot(node) {
|
|
13008
|
+
const OwnElement = getWindow(node).ShadowRoot;
|
|
13009
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
13010
|
+
}
|
|
13011
|
+
function isScrollParent(element) {
|
|
13012
|
+
// Firefox wants us to check `-x` and `-y` variations as well
|
|
13013
|
+
const {
|
|
13014
|
+
overflow,
|
|
13015
|
+
overflowX,
|
|
13016
|
+
overflowY
|
|
13017
|
+
} = getComputedStyle$1(element);
|
|
13018
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
13019
|
+
}
|
|
13020
|
+
function isTableElement(element) {
|
|
13021
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
13022
|
+
}
|
|
13023
|
+
function isContainingBlock(element) {
|
|
13024
|
+
// TODO: Try and use feature detection here instead
|
|
13025
|
+
const isFirefox = navigator.userAgent.toLowerCase().includes('firefox');
|
|
13026
|
+
const css = getComputedStyle$1(element); // This is non-exhaustive but covers the most common CSS properties that
|
|
13027
|
+
// create a containing block.
|
|
13028
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
13029
|
+
|
|
13030
|
+
return css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].includes(css.willChange) || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false);
|
|
13031
|
+
}
|
|
13032
|
+
|
|
13033
|
+
const floating_ui_dom_esm_min = Math.min;
|
|
13034
|
+
const floating_ui_dom_esm_max = Math.max;
|
|
13035
|
+
const round = Math.round;
|
|
13036
|
+
|
|
13037
|
+
function getBoundingClientRect(element, includeScale) {
|
|
13038
|
+
if (includeScale === void 0) {
|
|
13039
|
+
includeScale = false;
|
|
13040
|
+
}
|
|
13041
|
+
|
|
13042
|
+
const clientRect = element.getBoundingClientRect();
|
|
13043
|
+
let scaleX = 1;
|
|
13044
|
+
let scaleY = 1;
|
|
13045
|
+
|
|
13046
|
+
if (includeScale && isHTMLElement(element)) {
|
|
13047
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
13048
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
13049
|
+
}
|
|
13050
|
+
|
|
13051
|
+
return {
|
|
13052
|
+
width: clientRect.width / scaleX,
|
|
13053
|
+
height: clientRect.height / scaleY,
|
|
13054
|
+
top: clientRect.top / scaleY,
|
|
13055
|
+
right: clientRect.right / scaleX,
|
|
13056
|
+
bottom: clientRect.bottom / scaleY,
|
|
13057
|
+
left: clientRect.left / scaleX,
|
|
13058
|
+
x: clientRect.left / scaleX,
|
|
13059
|
+
y: clientRect.top / scaleY
|
|
13060
|
+
};
|
|
13061
|
+
}
|
|
13062
|
+
|
|
13063
|
+
function getDocumentElement(node) {
|
|
13064
|
+
return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
|
|
13065
|
+
}
|
|
13066
|
+
|
|
13067
|
+
function getNodeScroll(element) {
|
|
13068
|
+
if (isWindow(element)) {
|
|
13069
|
+
return {
|
|
13070
|
+
scrollLeft: element.pageXOffset,
|
|
13071
|
+
scrollTop: element.pageYOffset
|
|
13072
|
+
};
|
|
13073
|
+
}
|
|
13074
|
+
|
|
13075
|
+
return {
|
|
13076
|
+
scrollLeft: element.scrollLeft,
|
|
13077
|
+
scrollTop: element.scrollTop
|
|
13078
|
+
};
|
|
13079
|
+
}
|
|
13080
|
+
|
|
13081
|
+
function getWindowScrollBarX(element) {
|
|
13082
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
13083
|
+
// incorrect for RTL.
|
|
13084
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
13085
|
+
}
|
|
13086
|
+
|
|
13087
|
+
function isScaled(element) {
|
|
13088
|
+
const rect = getBoundingClientRect(element);
|
|
13089
|
+
return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
|
|
13090
|
+
}
|
|
13091
|
+
|
|
13092
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
13093
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
13094
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
13095
|
+
const rect = getBoundingClientRect(element, isOffsetParentAnElement && isScaled(offsetParent));
|
|
13096
|
+
let scroll = {
|
|
13097
|
+
scrollLeft: 0,
|
|
13098
|
+
scrollTop: 0
|
|
13099
|
+
};
|
|
13100
|
+
const offsets = {
|
|
13101
|
+
x: 0,
|
|
13102
|
+
y: 0
|
|
13103
|
+
};
|
|
13104
|
+
|
|
13105
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
13106
|
+
if (getNodeName(offsetParent) !== 'body' || isScrollParent(documentElement)) {
|
|
13107
|
+
scroll = getNodeScroll(offsetParent);
|
|
13108
|
+
}
|
|
13109
|
+
|
|
13110
|
+
if (isHTMLElement(offsetParent)) {
|
|
13111
|
+
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
13112
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
13113
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
13114
|
+
} else if (documentElement) {
|
|
13115
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
13116
|
+
}
|
|
13117
|
+
}
|
|
13118
|
+
|
|
13119
|
+
return {
|
|
13120
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
13121
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
13122
|
+
width: rect.width,
|
|
13123
|
+
height: rect.height
|
|
13124
|
+
};
|
|
13125
|
+
}
|
|
13126
|
+
|
|
13127
|
+
function getParentNode(node) {
|
|
13128
|
+
if (getNodeName(node) === 'html') {
|
|
13129
|
+
return node;
|
|
13130
|
+
}
|
|
13131
|
+
|
|
13132
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
13133
|
+
// @ts-ignore
|
|
13134
|
+
node.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
13135
|
+
node.parentNode || ( // DOM Element detected
|
|
13136
|
+
isShadowRoot(node) ? node.host : null) || // ShadowRoot detected
|
|
13137
|
+
getDocumentElement(node) // fallback
|
|
13138
|
+
|
|
13139
|
+
);
|
|
13140
|
+
}
|
|
13141
|
+
|
|
13142
|
+
function getTrueOffsetParent(element) {
|
|
13143
|
+
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
13144
|
+
return null;
|
|
13145
|
+
}
|
|
13146
|
+
|
|
13147
|
+
return element.offsetParent;
|
|
13148
|
+
}
|
|
13149
|
+
|
|
13150
|
+
function getContainingBlock(element) {
|
|
13151
|
+
let currentNode = getParentNode(element);
|
|
13152
|
+
|
|
13153
|
+
while (isHTMLElement(currentNode) && !['html', 'body'].includes(getNodeName(currentNode))) {
|
|
13154
|
+
if (isContainingBlock(currentNode)) {
|
|
13155
|
+
return currentNode;
|
|
13156
|
+
} else {
|
|
13157
|
+
currentNode = currentNode.parentNode;
|
|
13158
|
+
}
|
|
13159
|
+
}
|
|
13160
|
+
|
|
13161
|
+
return null;
|
|
13162
|
+
} // Gets the closest ancestor positioned element. Handles some edge cases,
|
|
13163
|
+
// such as table ancestors and cross browser bugs.
|
|
13164
|
+
|
|
13165
|
+
|
|
13166
|
+
function getOffsetParent(element) {
|
|
13167
|
+
const window = getWindow(element);
|
|
13168
|
+
let offsetParent = getTrueOffsetParent(element);
|
|
13169
|
+
|
|
13170
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
13171
|
+
offsetParent = getTrueOffsetParent(offsetParent);
|
|
13172
|
+
}
|
|
13173
|
+
|
|
13174
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
13175
|
+
return window;
|
|
13176
|
+
}
|
|
13177
|
+
|
|
13178
|
+
return offsetParent || getContainingBlock(element) || window;
|
|
13179
|
+
}
|
|
13180
|
+
|
|
13181
|
+
function getDimensions(element) {
|
|
13182
|
+
return {
|
|
13183
|
+
width: element.offsetWidth,
|
|
13184
|
+
height: element.offsetHeight
|
|
13185
|
+
};
|
|
13186
|
+
}
|
|
13187
|
+
|
|
13188
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
13189
|
+
let {
|
|
13190
|
+
rect,
|
|
13191
|
+
offsetParent,
|
|
13192
|
+
strategy
|
|
13193
|
+
} = _ref;
|
|
13194
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
13195
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
13196
|
+
|
|
13197
|
+
if (offsetParent === documentElement) {
|
|
13198
|
+
return rect;
|
|
13199
|
+
}
|
|
13200
|
+
|
|
13201
|
+
let scroll = {
|
|
13202
|
+
scrollLeft: 0,
|
|
13203
|
+
scrollTop: 0
|
|
13204
|
+
};
|
|
13205
|
+
const offsets = {
|
|
13206
|
+
x: 0,
|
|
13207
|
+
y: 0
|
|
13208
|
+
};
|
|
13209
|
+
|
|
13210
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
13211
|
+
if (getNodeName(offsetParent) !== 'body' || isScrollParent(documentElement)) {
|
|
13212
|
+
scroll = getNodeScroll(offsetParent);
|
|
13213
|
+
}
|
|
13214
|
+
|
|
13215
|
+
if (isHTMLElement(offsetParent)) {
|
|
13216
|
+
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
13217
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
13218
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
13219
|
+
} // This doesn't appear to be need to be negated.
|
|
13220
|
+
// else if (documentElement) {
|
|
13221
|
+
// offsets.x = getWindowScrollBarX(documentElement);
|
|
13222
|
+
// }
|
|
13223
|
+
|
|
13224
|
+
}
|
|
13225
|
+
|
|
13226
|
+
return { ...rect,
|
|
13227
|
+
x: rect.x - scroll.scrollLeft + offsets.x,
|
|
13228
|
+
y: rect.y - scroll.scrollTop + offsets.y
|
|
13229
|
+
};
|
|
13230
|
+
}
|
|
13231
|
+
|
|
13232
|
+
function getViewportRect(element) {
|
|
13233
|
+
const win = getWindow(element);
|
|
13234
|
+
const html = getDocumentElement(element);
|
|
13235
|
+
const visualViewport = win.visualViewport;
|
|
13236
|
+
let width = html.clientWidth;
|
|
13237
|
+
let height = html.clientHeight;
|
|
13238
|
+
let x = 0;
|
|
13239
|
+
let y = 0;
|
|
13240
|
+
|
|
13241
|
+
if (visualViewport) {
|
|
13242
|
+
width = visualViewport.width;
|
|
13243
|
+
height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
|
|
13244
|
+
// In Chrome, it returns a value very close to 0 (+/-) but contains rounding
|
|
13245
|
+
// errors due to floating point numbers, so we need to check precision.
|
|
13246
|
+
// Safari returns a number <= 0, usually < -1 when pinch-zoomed
|
|
13247
|
+
|
|
13248
|
+
if (Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) < 0.01) {
|
|
13249
|
+
x = visualViewport.offsetLeft;
|
|
13250
|
+
y = visualViewport.offsetTop;
|
|
13251
|
+
}
|
|
13252
|
+
}
|
|
13253
|
+
|
|
13254
|
+
return {
|
|
13255
|
+
width,
|
|
13256
|
+
height,
|
|
13257
|
+
x,
|
|
13258
|
+
y
|
|
13259
|
+
};
|
|
13260
|
+
}
|
|
13261
|
+
|
|
13262
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
13263
|
+
|
|
13264
|
+
function getDocumentRect(element) {
|
|
13265
|
+
var _element$ownerDocumen;
|
|
13266
|
+
|
|
13267
|
+
const html = getDocumentElement(element);
|
|
13268
|
+
const scroll = getNodeScroll(element);
|
|
13269
|
+
const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
13270
|
+
const width = floating_ui_dom_esm_max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
13271
|
+
const height = floating_ui_dom_esm_max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
13272
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
13273
|
+
const y = -scroll.scrollTop;
|
|
13274
|
+
|
|
13275
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
13276
|
+
x += floating_ui_dom_esm_max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
13277
|
+
}
|
|
13278
|
+
|
|
13279
|
+
return {
|
|
13280
|
+
width,
|
|
13281
|
+
height,
|
|
13282
|
+
x,
|
|
13283
|
+
y
|
|
13284
|
+
};
|
|
13285
|
+
}
|
|
13286
|
+
|
|
13287
|
+
function getScrollParent(node) {
|
|
13288
|
+
if (['html', 'body', '#document'].includes(getNodeName(node))) {
|
|
13289
|
+
// @ts-ignore assume body is always available
|
|
13290
|
+
return node.ownerDocument.body;
|
|
13291
|
+
}
|
|
13292
|
+
|
|
13293
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
13294
|
+
return node;
|
|
13295
|
+
}
|
|
13296
|
+
|
|
13297
|
+
return getScrollParent(getParentNode(node));
|
|
13298
|
+
}
|
|
13299
|
+
|
|
13300
|
+
function getScrollParents(node, list) {
|
|
13301
|
+
var _node$ownerDocument;
|
|
13302
|
+
|
|
13303
|
+
if (list === void 0) {
|
|
13304
|
+
list = [];
|
|
13305
|
+
}
|
|
13306
|
+
|
|
13307
|
+
const scrollParent = getScrollParent(node);
|
|
13308
|
+
const isBody = scrollParent === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
|
|
13309
|
+
const win = getWindow(scrollParent);
|
|
13310
|
+
const target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
13311
|
+
const updatedList = list.concat(target);
|
|
13312
|
+
return isBody ? updatedList : // @ts-ignore: isBody tells us target will be an HTMLElement here
|
|
13313
|
+
updatedList.concat(getScrollParents(getParentNode(target)));
|
|
13314
|
+
}
|
|
13315
|
+
|
|
13316
|
+
function contains(parent, child) {
|
|
13317
|
+
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method
|
|
13318
|
+
|
|
13319
|
+
if (parent.contains(child)) {
|
|
13320
|
+
return true;
|
|
13321
|
+
} // then fallback to custom implementation with Shadow DOM support
|
|
13322
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
13323
|
+
let next = child;
|
|
13324
|
+
|
|
13325
|
+
do {
|
|
13326
|
+
// use `===` replace node.isSameNode()
|
|
13327
|
+
if (next && parent === next) {
|
|
13328
|
+
return true;
|
|
13329
|
+
} // @ts-ignore: need a better way to handle this...
|
|
13330
|
+
|
|
13331
|
+
|
|
13332
|
+
next = next.parentNode || next.host;
|
|
13333
|
+
} while (next);
|
|
13334
|
+
}
|
|
13335
|
+
|
|
13336
|
+
return false;
|
|
13337
|
+
}
|
|
13338
|
+
|
|
13339
|
+
function getInnerBoundingClientRect(element) {
|
|
13340
|
+
const clientRect = getBoundingClientRect(element);
|
|
13341
|
+
const top = clientRect.top + element.clientTop;
|
|
13342
|
+
const left = clientRect.left + element.clientLeft;
|
|
13343
|
+
return {
|
|
13344
|
+
top,
|
|
13345
|
+
left,
|
|
13346
|
+
x: left,
|
|
13347
|
+
y: top,
|
|
13348
|
+
right: left + element.clientWidth,
|
|
13349
|
+
bottom: top + element.clientHeight,
|
|
13350
|
+
width: element.clientWidth,
|
|
13351
|
+
height: element.clientHeight
|
|
13352
|
+
};
|
|
13353
|
+
}
|
|
13354
|
+
|
|
13355
|
+
function getClientRectFromClippingParent(element, clippingParent) {
|
|
13356
|
+
if (clippingParent === 'viewport') {
|
|
13357
|
+
return rectToClientRect(getViewportRect(element));
|
|
13358
|
+
}
|
|
13359
|
+
|
|
13360
|
+
if (isElement(clippingParent)) {
|
|
13361
|
+
return getInnerBoundingClientRect(clippingParent);
|
|
13362
|
+
}
|
|
13363
|
+
|
|
13364
|
+
return rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
13365
|
+
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
13366
|
+
// clipping (or hiding) overflowing elements with a position different from
|
|
13367
|
+
// `initial`
|
|
13368
|
+
|
|
13369
|
+
|
|
13370
|
+
function getClippingParents(element) {
|
|
13371
|
+
const clippingParents = getScrollParents(getParentNode(element));
|
|
13372
|
+
const canEscapeClipping = ['absolute', 'fixed'].includes(getComputedStyle$1(element).position);
|
|
13373
|
+
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
13374
|
+
|
|
13375
|
+
if (!isElement(clipperElement)) {
|
|
13376
|
+
return [];
|
|
13377
|
+
} // @ts-ignore isElement check ensures we return Array<Element>
|
|
13378
|
+
|
|
13379
|
+
|
|
13380
|
+
return clippingParents.filter(clippingParent => isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body');
|
|
13381
|
+
} // Gets the maximum area that the element is visible in due to any number of
|
|
13382
|
+
// clipping parents
|
|
13383
|
+
|
|
13384
|
+
|
|
13385
|
+
function getClippingClientRect(_ref) {
|
|
13386
|
+
let {
|
|
13387
|
+
element,
|
|
13388
|
+
boundary,
|
|
13389
|
+
rootBoundary
|
|
13390
|
+
} = _ref;
|
|
13391
|
+
const mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
13392
|
+
const clippingParents = [...mainClippingParents, rootBoundary];
|
|
13393
|
+
const firstClippingParent = clippingParents[0];
|
|
13394
|
+
const clippingRect = clippingParents.reduce((accRect, clippingParent) => {
|
|
13395
|
+
const rect = getClientRectFromClippingParent(element, clippingParent);
|
|
13396
|
+
accRect.top = floating_ui_dom_esm_max(rect.top, accRect.top);
|
|
13397
|
+
accRect.right = floating_ui_dom_esm_min(rect.right, accRect.right);
|
|
13398
|
+
accRect.bottom = floating_ui_dom_esm_min(rect.bottom, accRect.bottom);
|
|
13399
|
+
accRect.left = floating_ui_dom_esm_max(rect.left, accRect.left);
|
|
13400
|
+
return accRect;
|
|
13401
|
+
}, getClientRectFromClippingParent(element, firstClippingParent));
|
|
13402
|
+
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
13403
|
+
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
13404
|
+
clippingRect.x = clippingRect.left;
|
|
13405
|
+
clippingRect.y = clippingRect.top;
|
|
13406
|
+
return clippingRect;
|
|
13407
|
+
}
|
|
13408
|
+
|
|
13409
|
+
const platform = {
|
|
13410
|
+
getElementRects: _ref => {
|
|
13411
|
+
let {
|
|
13412
|
+
reference,
|
|
13413
|
+
floating,
|
|
13414
|
+
strategy
|
|
13415
|
+
} = _ref;
|
|
13416
|
+
return {
|
|
13417
|
+
reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),
|
|
13418
|
+
floating: { ...getDimensions(floating),
|
|
13419
|
+
x: 0,
|
|
13420
|
+
y: 0
|
|
13421
|
+
}
|
|
13422
|
+
};
|
|
13423
|
+
},
|
|
13424
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: args => convertOffsetParentRelativeRectToViewportRelativeRect(args),
|
|
13425
|
+
getOffsetParent: _ref2 => {
|
|
13426
|
+
let {
|
|
13427
|
+
element
|
|
13428
|
+
} = _ref2;
|
|
13429
|
+
return getOffsetParent(element);
|
|
13430
|
+
},
|
|
13431
|
+
isElement: value => isElement(value),
|
|
13432
|
+
getDocumentElement: _ref3 => {
|
|
13433
|
+
let {
|
|
13434
|
+
element
|
|
13435
|
+
} = _ref3;
|
|
13436
|
+
return getDocumentElement(element);
|
|
13437
|
+
},
|
|
13438
|
+
getClippingClientRect: args => getClippingClientRect(args),
|
|
13439
|
+
getDimensions: _ref4 => {
|
|
13440
|
+
let {
|
|
13441
|
+
element
|
|
13442
|
+
} = _ref4;
|
|
13443
|
+
return getDimensions(element);
|
|
13444
|
+
},
|
|
13445
|
+
getClientRects: _ref5 => {
|
|
13446
|
+
let {
|
|
13447
|
+
element
|
|
13448
|
+
} = _ref5;
|
|
13449
|
+
return element.getClientRects();
|
|
13450
|
+
}
|
|
13451
|
+
};
|
|
13452
|
+
|
|
13453
|
+
const floating_ui_dom_esm_computePosition = (reference, floating, options) => computePosition(reference, floating, {
|
|
13454
|
+
platform,
|
|
13455
|
+
...options
|
|
13456
|
+
});
|
|
13457
|
+
|
|
13458
|
+
|
|
13459
|
+
|
|
13460
|
+
;// CONCATENATED MODULE: ./node_modules/floating-vue/dist/floating-vue.es.js
|
|
13461
|
+
/* provided dependency */ var console = __webpack_require__(5108);
|
|
13462
|
+
var __defProp = Object.defineProperty;
|
|
13463
|
+
var __defProps = Object.defineProperties;
|
|
13464
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
13465
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
13466
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13467
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13468
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13469
|
+
var __spreadValues = (a, b) => {
|
|
13470
|
+
for (var prop in b || (b = {}))
|
|
13471
|
+
if (__hasOwnProp.call(b, prop))
|
|
13472
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13473
|
+
if (__getOwnPropSymbols)
|
|
13474
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
13475
|
+
if (__propIsEnum.call(b, prop))
|
|
13476
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13477
|
+
}
|
|
13478
|
+
return a;
|
|
13479
|
+
};
|
|
13480
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
13481
|
+
var __objRest = (source, exclude) => {
|
|
13482
|
+
var target = {};
|
|
13483
|
+
for (var prop in source)
|
|
13484
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13485
|
+
target[prop] = source[prop];
|
|
13486
|
+
if (source != null && __getOwnPropSymbols)
|
|
13487
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
13488
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
13489
|
+
target[prop] = source[prop];
|
|
13490
|
+
}
|
|
13491
|
+
return target;
|
|
13492
|
+
};
|
|
13493
|
+
|
|
13494
|
+
|
|
13495
|
+
function floating_vue_es_assign(to, from) {
|
|
13496
|
+
for (const key in from) {
|
|
13497
|
+
if (Object.prototype.hasOwnProperty.call(from, key)) {
|
|
13498
|
+
if (typeof from[key] === "object" && to[key]) {
|
|
13499
|
+
floating_vue_es_assign(to[key], from[key]);
|
|
13500
|
+
} else {
|
|
13501
|
+
to[key] = from[key];
|
|
13502
|
+
}
|
|
13503
|
+
}
|
|
13504
|
+
}
|
|
13505
|
+
}
|
|
13506
|
+
const config = {
|
|
13507
|
+
disabled: false,
|
|
13508
|
+
distance: 5,
|
|
13509
|
+
skidding: 0,
|
|
13510
|
+
container: "body",
|
|
13511
|
+
boundary: void 0,
|
|
13512
|
+
instantMove: false,
|
|
13513
|
+
disposeTimeout: 5e3,
|
|
13514
|
+
popperTriggers: [],
|
|
13515
|
+
strategy: "absolute",
|
|
13516
|
+
preventOverflow: true,
|
|
13517
|
+
flip: true,
|
|
13518
|
+
shift: true,
|
|
13519
|
+
overflowPadding: 0,
|
|
13520
|
+
arrowPadding: 0,
|
|
13521
|
+
arrowOverflow: true,
|
|
13522
|
+
themes: {
|
|
13523
|
+
tooltip: {
|
|
13524
|
+
placement: "top",
|
|
13525
|
+
triggers: ["hover", "focus", "touch"],
|
|
13526
|
+
hideTriggers: (events) => [...events, "click"],
|
|
13527
|
+
delay: {
|
|
13528
|
+
show: 200,
|
|
13529
|
+
hide: 0
|
|
13530
|
+
},
|
|
13531
|
+
handleResize: false,
|
|
13532
|
+
html: false,
|
|
13533
|
+
loadingContent: "..."
|
|
13534
|
+
},
|
|
13535
|
+
dropdown: {
|
|
13536
|
+
placement: "bottom",
|
|
13537
|
+
triggers: ["click"],
|
|
13538
|
+
delay: 0,
|
|
13539
|
+
handleResize: true,
|
|
13540
|
+
autoHide: true
|
|
13541
|
+
},
|
|
13542
|
+
menu: {
|
|
13543
|
+
$extend: "dropdown",
|
|
13544
|
+
triggers: ["hover", "focus"],
|
|
13545
|
+
popperTriggers: ["hover", "focus"],
|
|
13546
|
+
delay: {
|
|
13547
|
+
show: 0,
|
|
13548
|
+
hide: 400
|
|
13549
|
+
}
|
|
13550
|
+
}
|
|
13551
|
+
}
|
|
13552
|
+
};
|
|
13553
|
+
function getDefaultConfig(theme, key) {
|
|
13554
|
+
let themeConfig = config.themes[theme] || {};
|
|
13555
|
+
let value;
|
|
13556
|
+
do {
|
|
13557
|
+
value = themeConfig[key];
|
|
13558
|
+
if (typeof value === "undefined") {
|
|
13559
|
+
if (themeConfig.$extend) {
|
|
13560
|
+
themeConfig = config.themes[themeConfig.$extend] || {};
|
|
13561
|
+
} else {
|
|
13562
|
+
themeConfig = null;
|
|
13563
|
+
value = config[key];
|
|
13564
|
+
}
|
|
13565
|
+
} else {
|
|
13566
|
+
themeConfig = null;
|
|
13567
|
+
}
|
|
13568
|
+
} while (themeConfig);
|
|
13569
|
+
return value;
|
|
13570
|
+
}
|
|
13571
|
+
function getThemeClasses(theme) {
|
|
13572
|
+
const result = [theme];
|
|
13573
|
+
let themeConfig = config.themes[theme] || {};
|
|
13574
|
+
do {
|
|
13575
|
+
if (themeConfig.$extend && !themeConfig.$resetCss) {
|
|
13576
|
+
result.push(themeConfig.$extend);
|
|
13577
|
+
themeConfig = config.themes[themeConfig.$extend] || {};
|
|
13578
|
+
} else {
|
|
13579
|
+
themeConfig = null;
|
|
13580
|
+
}
|
|
13581
|
+
} while (themeConfig);
|
|
13582
|
+
return result.map((c) => `v-popper--theme-${c}`);
|
|
13583
|
+
}
|
|
13584
|
+
function getAllParentThemes(theme) {
|
|
13585
|
+
const result = [theme];
|
|
13586
|
+
let themeConfig = config.themes[theme] || {};
|
|
13587
|
+
do {
|
|
13588
|
+
if (themeConfig.$extend) {
|
|
13589
|
+
result.push(themeConfig.$extend);
|
|
13590
|
+
themeConfig = config.themes[themeConfig.$extend] || {};
|
|
13591
|
+
} else {
|
|
13592
|
+
themeConfig = null;
|
|
13593
|
+
}
|
|
13594
|
+
} while (themeConfig);
|
|
13595
|
+
return result;
|
|
13596
|
+
}
|
|
13597
|
+
var vueResize = "";
|
|
13598
|
+
let supportsPassive = false;
|
|
13599
|
+
if (typeof window !== "undefined") {
|
|
13600
|
+
supportsPassive = false;
|
|
13601
|
+
try {
|
|
13602
|
+
const opts = Object.defineProperty({}, "passive", {
|
|
13603
|
+
get() {
|
|
13604
|
+
supportsPassive = true;
|
|
13605
|
+
}
|
|
13606
|
+
});
|
|
13607
|
+
window.addEventListener("test", null, opts);
|
|
13608
|
+
} catch (e) {
|
|
13609
|
+
}
|
|
13610
|
+
}
|
|
13611
|
+
let isIOS = false;
|
|
13612
|
+
if (typeof window !== "undefined" && typeof navigator !== "undefined") {
|
|
13613
|
+
isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
13614
|
+
}
|
|
13615
|
+
const placements = ["auto", "top", "bottom", "left", "right"].reduce((acc, base) => acc.concat([
|
|
13616
|
+
base,
|
|
13617
|
+
`${base}-start`,
|
|
13618
|
+
`${base}-end`
|
|
13619
|
+
]), []);
|
|
13620
|
+
const SHOW_EVENT_MAP = {
|
|
13621
|
+
hover: "mouseenter",
|
|
13622
|
+
focus: "focus",
|
|
13623
|
+
click: "click",
|
|
13624
|
+
touch: "touchstart"
|
|
13625
|
+
};
|
|
13626
|
+
const HIDE_EVENT_MAP = {
|
|
13627
|
+
hover: "mouseleave",
|
|
13628
|
+
focus: "blur",
|
|
13629
|
+
click: "click",
|
|
13630
|
+
touch: "touchend"
|
|
13631
|
+
};
|
|
13632
|
+
function removeFromArray(array, item) {
|
|
13633
|
+
const index = array.indexOf(item);
|
|
13634
|
+
if (index !== -1) {
|
|
13635
|
+
array.splice(index, 1);
|
|
13636
|
+
}
|
|
13637
|
+
}
|
|
13638
|
+
function nextFrame() {
|
|
13639
|
+
return new Promise((resolve) => requestAnimationFrame(() => {
|
|
13640
|
+
requestAnimationFrame(resolve);
|
|
13641
|
+
}));
|
|
13642
|
+
}
|
|
13643
|
+
const shownPoppers = [];
|
|
13644
|
+
let hidingPopper = null;
|
|
13645
|
+
const shownPoppersByTheme = {};
|
|
13646
|
+
function getShownPoppersByTheme(theme) {
|
|
13647
|
+
let list = shownPoppersByTheme[theme];
|
|
13648
|
+
if (!list) {
|
|
13649
|
+
list = shownPoppersByTheme[theme] = [];
|
|
13650
|
+
}
|
|
13651
|
+
return list;
|
|
13652
|
+
}
|
|
13653
|
+
let Element = function() {
|
|
13654
|
+
};
|
|
13655
|
+
if (typeof window !== "undefined") {
|
|
13656
|
+
Element = window.Element;
|
|
13657
|
+
}
|
|
13658
|
+
function defaultPropFactory(prop) {
|
|
13659
|
+
return function() {
|
|
13660
|
+
const props = this.$props;
|
|
13661
|
+
return getDefaultConfig(props.theme, prop);
|
|
13662
|
+
};
|
|
13663
|
+
}
|
|
13664
|
+
const PROVIDE_KEY = "__floating-vue__popper";
|
|
13665
|
+
var PrivatePopper = () => ({
|
|
13666
|
+
name: "VPopper",
|
|
13667
|
+
props: {
|
|
13668
|
+
theme: {
|
|
13669
|
+
type: String,
|
|
13670
|
+
required: true
|
|
13671
|
+
},
|
|
13672
|
+
targetNodes: {
|
|
13673
|
+
type: Function,
|
|
13674
|
+
required: true
|
|
13675
|
+
},
|
|
13676
|
+
referenceNode: {
|
|
13677
|
+
type: Function,
|
|
13678
|
+
required: true
|
|
13679
|
+
},
|
|
13680
|
+
popperNode: {
|
|
13681
|
+
type: Function,
|
|
13682
|
+
required: true
|
|
13683
|
+
},
|
|
13684
|
+
shown: {
|
|
13685
|
+
type: Boolean,
|
|
13686
|
+
default: false
|
|
13687
|
+
},
|
|
13688
|
+
showGroup: {
|
|
13689
|
+
type: String,
|
|
13690
|
+
default: null
|
|
13691
|
+
},
|
|
13692
|
+
ariaId: {
|
|
13693
|
+
default: null
|
|
13694
|
+
},
|
|
13695
|
+
disabled: {
|
|
13696
|
+
type: Boolean,
|
|
13697
|
+
default: defaultPropFactory("disabled")
|
|
13698
|
+
},
|
|
13699
|
+
positioningDisabled: {
|
|
13700
|
+
type: Boolean,
|
|
13701
|
+
default: defaultPropFactory("positioningDisabled")
|
|
13702
|
+
},
|
|
13703
|
+
placement: {
|
|
13704
|
+
type: String,
|
|
13705
|
+
default: defaultPropFactory("placement"),
|
|
13706
|
+
validator: (value) => placements.includes(value)
|
|
13707
|
+
},
|
|
13708
|
+
delay: {
|
|
13709
|
+
type: [String, Number, Object],
|
|
13710
|
+
default: defaultPropFactory("delay")
|
|
13711
|
+
},
|
|
13712
|
+
distance: {
|
|
13713
|
+
type: [Number, String],
|
|
13714
|
+
default: defaultPropFactory("distance")
|
|
13715
|
+
},
|
|
13716
|
+
skidding: {
|
|
13717
|
+
type: [Number, String],
|
|
13718
|
+
default: defaultPropFactory("skidding")
|
|
13719
|
+
},
|
|
13720
|
+
triggers: {
|
|
13721
|
+
type: Array,
|
|
13722
|
+
default: defaultPropFactory("triggers")
|
|
13723
|
+
},
|
|
13724
|
+
showTriggers: {
|
|
13725
|
+
type: [Array, Function],
|
|
13726
|
+
default: defaultPropFactory("showTriggers")
|
|
13727
|
+
},
|
|
13728
|
+
hideTriggers: {
|
|
13729
|
+
type: [Array, Function],
|
|
13730
|
+
default: defaultPropFactory("hideTriggers")
|
|
13731
|
+
},
|
|
13732
|
+
popperTriggers: {
|
|
13733
|
+
type: Array,
|
|
13734
|
+
default: defaultPropFactory("popperTriggers")
|
|
13735
|
+
},
|
|
13736
|
+
popperShowTriggers: {
|
|
13737
|
+
type: [Array, Function],
|
|
13738
|
+
default: defaultPropFactory("popperShowTriggers")
|
|
13739
|
+
},
|
|
13740
|
+
popperHideTriggers: {
|
|
13741
|
+
type: [Array, Function],
|
|
13742
|
+
default: defaultPropFactory("popperHideTriggers")
|
|
13743
|
+
},
|
|
13744
|
+
container: {
|
|
13745
|
+
type: [String, Object, Element, Boolean],
|
|
13746
|
+
default: defaultPropFactory("container")
|
|
13747
|
+
},
|
|
13748
|
+
boundary: {
|
|
13749
|
+
type: [String, Element],
|
|
13750
|
+
default: defaultPropFactory("boundary")
|
|
13751
|
+
},
|
|
13752
|
+
strategy: {
|
|
13753
|
+
type: String,
|
|
13754
|
+
validator: (value) => ["absolute", "fixed"].includes(value),
|
|
13755
|
+
default: defaultPropFactory("strategy")
|
|
13756
|
+
},
|
|
13757
|
+
autoHide: {
|
|
13758
|
+
type: [Boolean, Function],
|
|
13759
|
+
default: defaultPropFactory("autoHide")
|
|
13760
|
+
},
|
|
13761
|
+
handleResize: {
|
|
13762
|
+
type: Boolean,
|
|
13763
|
+
default: defaultPropFactory("handleResize")
|
|
13764
|
+
},
|
|
13765
|
+
instantMove: {
|
|
13766
|
+
type: Boolean,
|
|
13767
|
+
default: defaultPropFactory("instantMove")
|
|
13768
|
+
},
|
|
13769
|
+
eagerMount: {
|
|
13770
|
+
type: Boolean,
|
|
13771
|
+
default: defaultPropFactory("eagerMount")
|
|
13772
|
+
},
|
|
13773
|
+
popperClass: {
|
|
13774
|
+
type: [String, Array, Object],
|
|
13775
|
+
default: defaultPropFactory("popperClass")
|
|
13776
|
+
},
|
|
13777
|
+
computeTransformOrigin: {
|
|
13778
|
+
type: Boolean,
|
|
13779
|
+
default: defaultPropFactory("computeTransformOrigin")
|
|
13780
|
+
},
|
|
13781
|
+
autoMinSize: {
|
|
13782
|
+
type: Boolean,
|
|
13783
|
+
default: defaultPropFactory("autoMinSize")
|
|
13784
|
+
},
|
|
13785
|
+
autoSize: {
|
|
13786
|
+
type: [Boolean, String],
|
|
13787
|
+
default: defaultPropFactory("autoSize")
|
|
13788
|
+
},
|
|
13789
|
+
autoMaxSize: {
|
|
13790
|
+
type: Boolean,
|
|
13791
|
+
default: defaultPropFactory("autoMaxSize")
|
|
13792
|
+
},
|
|
13793
|
+
autoBoundaryMaxSize: {
|
|
13794
|
+
type: Boolean,
|
|
13795
|
+
default: defaultPropFactory("autoBoundaryMaxSize")
|
|
13796
|
+
},
|
|
13797
|
+
preventOverflow: {
|
|
13798
|
+
type: Boolean,
|
|
13799
|
+
default: defaultPropFactory("preventOverflow")
|
|
13800
|
+
},
|
|
13801
|
+
overflowPadding: {
|
|
13802
|
+
type: [Number, String],
|
|
13803
|
+
default: defaultPropFactory("overflowPadding")
|
|
13804
|
+
},
|
|
13805
|
+
arrowPadding: {
|
|
13806
|
+
type: [Number, String],
|
|
13807
|
+
default: defaultPropFactory("arrowPadding")
|
|
13808
|
+
},
|
|
13809
|
+
arrowOverflow: {
|
|
13810
|
+
type: Boolean,
|
|
13811
|
+
default: defaultPropFactory("arrowOverflow")
|
|
13812
|
+
},
|
|
13813
|
+
flip: {
|
|
13814
|
+
type: Boolean,
|
|
13815
|
+
default: defaultPropFactory("flip")
|
|
13816
|
+
},
|
|
13817
|
+
shift: {
|
|
13818
|
+
type: Boolean,
|
|
13819
|
+
default: defaultPropFactory("shift")
|
|
13820
|
+
},
|
|
13821
|
+
shiftCrossAxis: {
|
|
13822
|
+
type: Boolean,
|
|
13823
|
+
default: defaultPropFactory("shiftCrossAxis")
|
|
13824
|
+
}
|
|
13825
|
+
},
|
|
13826
|
+
provide() {
|
|
13827
|
+
return {
|
|
13828
|
+
[PROVIDE_KEY]: {
|
|
13829
|
+
parentPopper: this
|
|
13830
|
+
}
|
|
13831
|
+
};
|
|
13832
|
+
},
|
|
13833
|
+
inject: {
|
|
13834
|
+
[PROVIDE_KEY]: { default: null }
|
|
13835
|
+
},
|
|
13836
|
+
data() {
|
|
13837
|
+
return {
|
|
13838
|
+
isShown: false,
|
|
13839
|
+
isMounted: false,
|
|
13840
|
+
skipTransition: false,
|
|
13841
|
+
classes: {
|
|
13842
|
+
showFrom: false,
|
|
13843
|
+
showTo: false,
|
|
13844
|
+
hideFrom: false,
|
|
13845
|
+
hideTo: true
|
|
13846
|
+
},
|
|
13847
|
+
result: {
|
|
13848
|
+
x: 0,
|
|
13849
|
+
y: 0,
|
|
13850
|
+
placement: "",
|
|
13851
|
+
strategy: this.strategy,
|
|
13852
|
+
arrow: {
|
|
13853
|
+
x: 0,
|
|
13854
|
+
y: 0,
|
|
13855
|
+
centerOffset: 0
|
|
13856
|
+
},
|
|
13857
|
+
transformOrigin: null
|
|
13858
|
+
},
|
|
13859
|
+
shownChildren: /* @__PURE__ */ new Set(),
|
|
13860
|
+
lastAutoHide: true
|
|
13861
|
+
};
|
|
13862
|
+
},
|
|
13863
|
+
computed: {
|
|
13864
|
+
popperId() {
|
|
13865
|
+
return this.ariaId != null ? this.ariaId : this.randomId;
|
|
13866
|
+
},
|
|
13867
|
+
shouldMountContent() {
|
|
13868
|
+
return this.eagerMount || this.isMounted;
|
|
13869
|
+
},
|
|
13870
|
+
slotData() {
|
|
13871
|
+
return {
|
|
13872
|
+
popperId: this.popperId,
|
|
13873
|
+
isShown: this.isShown,
|
|
13874
|
+
shouldMountContent: this.shouldMountContent,
|
|
13875
|
+
skipTransition: this.skipTransition,
|
|
13876
|
+
autoHide: typeof this.autoHide === "function" ? this.lastAutoHide : this.autoHide,
|
|
13877
|
+
show: this.show,
|
|
13878
|
+
hide: this.hide,
|
|
13879
|
+
handleResize: this.handleResize,
|
|
13880
|
+
onResize: this.onResize,
|
|
13881
|
+
classes: __spreadProps(__spreadValues({}, this.classes), {
|
|
13882
|
+
popperClass: this.popperClass
|
|
13883
|
+
}),
|
|
13884
|
+
result: this.positioningDisabled ? null : this.result
|
|
13885
|
+
};
|
|
13886
|
+
},
|
|
13887
|
+
parentPopper() {
|
|
13888
|
+
var _a;
|
|
13889
|
+
return (_a = this[PROVIDE_KEY]) == null ? void 0 : _a.parentPopper;
|
|
13890
|
+
},
|
|
13891
|
+
hasPopperShowTriggerHover() {
|
|
13892
|
+
var _a, _b;
|
|
13893
|
+
return ((_a = this.popperTriggers) == null ? void 0 : _a.includes("hover")) || ((_b = this.popperShowTriggers) == null ? void 0 : _b.includes("hover"));
|
|
13894
|
+
}
|
|
13895
|
+
},
|
|
13896
|
+
watch: __spreadValues(__spreadValues({
|
|
13897
|
+
shown: "$_autoShowHide",
|
|
13898
|
+
disabled(value) {
|
|
13899
|
+
if (value) {
|
|
13900
|
+
this.dispose();
|
|
13901
|
+
} else {
|
|
13902
|
+
this.init();
|
|
13903
|
+
}
|
|
13904
|
+
},
|
|
13905
|
+
async container() {
|
|
13906
|
+
if (this.isShown) {
|
|
13907
|
+
this.$_ensureTeleport();
|
|
13908
|
+
await this.$_computePosition();
|
|
13909
|
+
}
|
|
13910
|
+
}
|
|
13911
|
+
}, [
|
|
13912
|
+
"triggers",
|
|
13913
|
+
"positioningDisabled"
|
|
13914
|
+
].reduce((acc, prop) => {
|
|
13915
|
+
acc[prop] = "$_refreshListeners";
|
|
13916
|
+
return acc;
|
|
13917
|
+
}, {})), [
|
|
13918
|
+
"placement",
|
|
13919
|
+
"distance",
|
|
13920
|
+
"skidding",
|
|
13921
|
+
"boundary",
|
|
13922
|
+
"strategy",
|
|
13923
|
+
"overflowPadding",
|
|
13924
|
+
"arrowPadding",
|
|
13925
|
+
"preventOverflow",
|
|
13926
|
+
"shift",
|
|
13927
|
+
"shiftCrossAxis",
|
|
13928
|
+
"flip"
|
|
13929
|
+
].reduce((acc, prop) => {
|
|
13930
|
+
acc[prop] = "$_computePosition";
|
|
13931
|
+
return acc;
|
|
13932
|
+
}, {})),
|
|
13933
|
+
created() {
|
|
13934
|
+
this.$_isDisposed = true;
|
|
13935
|
+
this.randomId = `popper_${[Math.random(), Date.now()].map((n) => n.toString(36).substring(2, 10)).join("_")}`;
|
|
13936
|
+
if (this.autoMinSize) {
|
|
13937
|
+
console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.');
|
|
13938
|
+
}
|
|
13939
|
+
if (this.autoMaxSize) {
|
|
13940
|
+
console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
|
|
13941
|
+
}
|
|
13942
|
+
},
|
|
13943
|
+
mounted() {
|
|
13944
|
+
this.init();
|
|
13945
|
+
this.$_detachPopperNode();
|
|
13946
|
+
},
|
|
13947
|
+
activated() {
|
|
13948
|
+
this.$_autoShowHide();
|
|
13949
|
+
},
|
|
13950
|
+
deactivated() {
|
|
13951
|
+
this.hide();
|
|
13952
|
+
},
|
|
13953
|
+
beforeDestroy() {
|
|
13954
|
+
this.dispose();
|
|
13955
|
+
},
|
|
13956
|
+
methods: {
|
|
13957
|
+
show({ event = null, skipDelay = false, force = false } = {}) {
|
|
13958
|
+
var _a, _b;
|
|
13959
|
+
if (((_a = this.parentPopper) == null ? void 0 : _a.lockedChild) && this.parentPopper.lockedChild !== this)
|
|
13960
|
+
return;
|
|
13961
|
+
this.$_pendingHide = false;
|
|
13962
|
+
if (force || !this.disabled) {
|
|
13963
|
+
if (((_b = this.parentPopper) == null ? void 0 : _b.lockedChild) === this) {
|
|
13964
|
+
this.parentPopper.lockedChild = null;
|
|
13965
|
+
}
|
|
13966
|
+
this.$_scheduleShow(event, skipDelay);
|
|
13967
|
+
this.$emit("show");
|
|
13968
|
+
this.$_showFrameLocked = true;
|
|
13969
|
+
requestAnimationFrame(() => {
|
|
13970
|
+
this.$_showFrameLocked = false;
|
|
13971
|
+
});
|
|
13972
|
+
}
|
|
13973
|
+
this.$emit("update:shown", true);
|
|
13974
|
+
},
|
|
13975
|
+
hide({ event = null, skipDelay = false } = {}) {
|
|
13976
|
+
var _a;
|
|
13977
|
+
if (this.$_hideInProgress)
|
|
13978
|
+
return;
|
|
13979
|
+
if (this.shownChildren.size > 0) {
|
|
13980
|
+
this.$_pendingHide = true;
|
|
13981
|
+
return;
|
|
13982
|
+
}
|
|
13983
|
+
if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
|
|
13984
|
+
if (this.parentPopper) {
|
|
13985
|
+
this.parentPopper.lockedChild = this;
|
|
13986
|
+
clearTimeout(this.parentPopper.lockedChildTimer);
|
|
13987
|
+
this.parentPopper.lockedChildTimer = setTimeout(() => {
|
|
13988
|
+
if (this.parentPopper.lockedChild === this) {
|
|
13989
|
+
this.parentPopper.lockedChild.hide({ skipDelay });
|
|
13990
|
+
this.parentPopper.lockedChild = null;
|
|
13991
|
+
}
|
|
13992
|
+
}, 1e3);
|
|
13993
|
+
}
|
|
13994
|
+
return;
|
|
13995
|
+
}
|
|
13996
|
+
if (((_a = this.parentPopper) == null ? void 0 : _a.lockedChild) === this) {
|
|
13997
|
+
this.parentPopper.lockedChild = null;
|
|
13998
|
+
}
|
|
13999
|
+
this.$_pendingHide = false;
|
|
14000
|
+
this.$_scheduleHide(event, skipDelay);
|
|
14001
|
+
this.$emit("hide");
|
|
14002
|
+
this.$emit("update:shown", false);
|
|
14003
|
+
},
|
|
14004
|
+
init() {
|
|
14005
|
+
if (!this.$_isDisposed)
|
|
14006
|
+
return;
|
|
14007
|
+
this.$_isDisposed = false;
|
|
14008
|
+
this.isMounted = false;
|
|
14009
|
+
this.$_events = [];
|
|
14010
|
+
this.$_preventShow = false;
|
|
14011
|
+
this.$_referenceNode = this.referenceNode();
|
|
14012
|
+
this.$_targetNodes = this.targetNodes().filter((e) => e.nodeType === e.ELEMENT_NODE);
|
|
14013
|
+
this.$_popperNode = this.popperNode();
|
|
14014
|
+
this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner");
|
|
14015
|
+
this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container");
|
|
14016
|
+
this.$_swapTargetAttrs("title", "data-original-title");
|
|
14017
|
+
this.$_detachPopperNode();
|
|
14018
|
+
if (this.triggers.length) {
|
|
14019
|
+
this.$_addEventListeners();
|
|
14020
|
+
}
|
|
14021
|
+
if (this.shown) {
|
|
14022
|
+
this.show();
|
|
14023
|
+
}
|
|
14024
|
+
},
|
|
14025
|
+
dispose() {
|
|
14026
|
+
if (this.$_isDisposed)
|
|
14027
|
+
return;
|
|
14028
|
+
this.$_isDisposed = true;
|
|
14029
|
+
this.$_removeEventListeners();
|
|
14030
|
+
this.hide({ skipDelay: true });
|
|
14031
|
+
this.$_detachPopperNode();
|
|
14032
|
+
this.isMounted = false;
|
|
14033
|
+
this.isShown = false;
|
|
14034
|
+
this.$_updateParentShownChildren(false);
|
|
14035
|
+
this.$_swapTargetAttrs("data-original-title", "title");
|
|
14036
|
+
this.$emit("dispose");
|
|
14037
|
+
},
|
|
14038
|
+
async onResize() {
|
|
14039
|
+
if (this.isShown) {
|
|
14040
|
+
await this.$_computePosition();
|
|
14041
|
+
this.$emit("resize");
|
|
14042
|
+
}
|
|
14043
|
+
},
|
|
14044
|
+
async $_computePosition() {
|
|
14045
|
+
var _a;
|
|
14046
|
+
if (this.$_isDisposed || this.positioningDisabled)
|
|
14047
|
+
return;
|
|
14048
|
+
const options2 = {
|
|
14049
|
+
strategy: this.strategy,
|
|
14050
|
+
middleware: []
|
|
14051
|
+
};
|
|
14052
|
+
if (this.distance || this.skidding) {
|
|
14053
|
+
options2.middleware.push(offset({
|
|
14054
|
+
mainAxis: this.distance,
|
|
14055
|
+
crossAxis: this.skidding
|
|
14056
|
+
}));
|
|
14057
|
+
}
|
|
14058
|
+
const isPlacementAuto = this.placement.startsWith("auto");
|
|
14059
|
+
if (isPlacementAuto) {
|
|
14060
|
+
options2.middleware.push(autoPlacement({
|
|
14061
|
+
alignment: (_a = this.placement.split("-")[1]) != null ? _a : ""
|
|
14062
|
+
}));
|
|
14063
|
+
} else {
|
|
14064
|
+
options2.placement = this.placement;
|
|
14065
|
+
}
|
|
14066
|
+
if (this.preventOverflow) {
|
|
14067
|
+
if (this.shift) {
|
|
14068
|
+
options2.middleware.push(shift({
|
|
14069
|
+
padding: this.overflowPadding,
|
|
14070
|
+
boundary: this.boundary,
|
|
14071
|
+
crossAxis: this.shiftCrossAxis
|
|
14072
|
+
}));
|
|
14073
|
+
}
|
|
14074
|
+
if (!isPlacementAuto && this.flip) {
|
|
14075
|
+
options2.middleware.push(flip({
|
|
14076
|
+
padding: this.overflowPadding,
|
|
14077
|
+
boundary: this.boundary
|
|
14078
|
+
}));
|
|
14079
|
+
}
|
|
14080
|
+
}
|
|
14081
|
+
options2.middleware.push(arrow({
|
|
14082
|
+
element: this.$_arrowNode,
|
|
14083
|
+
padding: this.arrowPadding
|
|
14084
|
+
}));
|
|
14085
|
+
if (this.arrowOverflow) {
|
|
14086
|
+
options2.middleware.push({
|
|
14087
|
+
name: "arrowOverflow",
|
|
14088
|
+
fn: ({ placement, rects, middlewareData }) => {
|
|
14089
|
+
let overflow;
|
|
14090
|
+
const { centerOffset } = middlewareData.arrow;
|
|
14091
|
+
if (placement.startsWith("top") || placement.startsWith("bottom")) {
|
|
14092
|
+
overflow = Math.abs(centerOffset) > rects.reference.width / 2;
|
|
14093
|
+
} else {
|
|
14094
|
+
overflow = Math.abs(centerOffset) > rects.reference.height / 2;
|
|
14095
|
+
}
|
|
14096
|
+
return {
|
|
14097
|
+
data: {
|
|
14098
|
+
overflow
|
|
14099
|
+
}
|
|
14100
|
+
};
|
|
14101
|
+
}
|
|
14102
|
+
});
|
|
14103
|
+
}
|
|
14104
|
+
if (this.autoMinSize || this.autoSize) {
|
|
14105
|
+
const autoSize = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
|
|
14106
|
+
options2.middleware.push({
|
|
14107
|
+
name: "autoSize",
|
|
14108
|
+
fn: ({ rects, placement, middlewareData }) => {
|
|
14109
|
+
var _a2;
|
|
14110
|
+
if ((_a2 = middlewareData.autoSize) == null ? void 0 : _a2.skip) {
|
|
14111
|
+
return {};
|
|
14112
|
+
}
|
|
14113
|
+
let width;
|
|
14114
|
+
let height;
|
|
14115
|
+
if (placement.startsWith("top") || placement.startsWith("bottom")) {
|
|
14116
|
+
width = rects.reference.width;
|
|
14117
|
+
} else {
|
|
14118
|
+
height = rects.reference.height;
|
|
14119
|
+
}
|
|
14120
|
+
this.$_innerNode.style[autoSize === "min" ? "minWidth" : autoSize === "max" ? "maxWidth" : "width"] = width != null ? `${width}px` : null;
|
|
14121
|
+
this.$_innerNode.style[autoSize === "min" ? "minHeight" : autoSize === "max" ? "maxHeight" : "height"] = height != null ? `${height}px` : null;
|
|
14122
|
+
return {
|
|
14123
|
+
data: {
|
|
14124
|
+
skip: true
|
|
14125
|
+
},
|
|
14126
|
+
reset: {
|
|
14127
|
+
rects: true
|
|
14128
|
+
}
|
|
14129
|
+
};
|
|
14130
|
+
}
|
|
14131
|
+
});
|
|
14132
|
+
}
|
|
14133
|
+
if (this.autoMaxSize || this.autoBoundaryMaxSize) {
|
|
14134
|
+
this.$_innerNode.style.maxWidth = null;
|
|
14135
|
+
this.$_innerNode.style.maxHeight = null;
|
|
14136
|
+
options2.middleware.push(size({
|
|
14137
|
+
boundary: this.boundary,
|
|
14138
|
+
padding: this.overflowPadding,
|
|
14139
|
+
apply: ({ width, height }) => {
|
|
14140
|
+
this.$_innerNode.style.maxWidth = width != null ? `${width}px` : null;
|
|
14141
|
+
this.$_innerNode.style.maxHeight = height != null ? `${height}px` : null;
|
|
14142
|
+
}
|
|
14143
|
+
}));
|
|
14144
|
+
}
|
|
14145
|
+
const data = await floating_ui_dom_esm_computePosition(this.$_referenceNode, this.$_popperNode, options2);
|
|
14146
|
+
Object.assign(this.result, {
|
|
14147
|
+
x: data.x,
|
|
14148
|
+
y: data.y,
|
|
14149
|
+
placement: data.placement,
|
|
14150
|
+
strategy: data.strategy,
|
|
14151
|
+
arrow: __spreadValues(__spreadValues({}, data.middlewareData.arrow), data.middlewareData.arrowOverflow)
|
|
14152
|
+
});
|
|
14153
|
+
},
|
|
14154
|
+
$_scheduleShow(event = null, skipDelay = false) {
|
|
14155
|
+
this.$_updateParentShownChildren(true);
|
|
14156
|
+
this.$_hideInProgress = false;
|
|
14157
|
+
clearTimeout(this.$_scheduleTimer);
|
|
14158
|
+
if (hidingPopper && this.instantMove && hidingPopper.instantMove && hidingPopper !== this.parentPopper) {
|
|
14159
|
+
hidingPopper.$_applyHide(true);
|
|
14160
|
+
this.$_applyShow(true);
|
|
14161
|
+
return;
|
|
14162
|
+
}
|
|
14163
|
+
if (skipDelay) {
|
|
14164
|
+
this.$_applyShow();
|
|
14165
|
+
} else {
|
|
14166
|
+
this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
14167
|
+
}
|
|
14168
|
+
},
|
|
14169
|
+
$_scheduleHide(event = null, skipDelay = false) {
|
|
14170
|
+
if (this.shownChildren.size > 0) {
|
|
14171
|
+
this.$_pendingHide = true;
|
|
14172
|
+
return;
|
|
14173
|
+
}
|
|
14174
|
+
this.$_updateParentShownChildren(false);
|
|
14175
|
+
this.$_hideInProgress = true;
|
|
14176
|
+
clearTimeout(this.$_scheduleTimer);
|
|
14177
|
+
if (this.isShown) {
|
|
14178
|
+
hidingPopper = this;
|
|
14179
|
+
}
|
|
14180
|
+
if (skipDelay) {
|
|
14181
|
+
this.$_applyHide();
|
|
14182
|
+
} else {
|
|
14183
|
+
this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
|
|
14184
|
+
}
|
|
14185
|
+
},
|
|
14186
|
+
$_computeDelay(type) {
|
|
14187
|
+
const delay = this.delay;
|
|
14188
|
+
return parseInt(delay && delay[type] || delay || 0);
|
|
14189
|
+
},
|
|
14190
|
+
async $_applyShow(skipTransition = false) {
|
|
14191
|
+
clearTimeout(this.$_disposeTimer);
|
|
14192
|
+
clearTimeout(this.$_scheduleTimer);
|
|
14193
|
+
this.skipTransition = skipTransition;
|
|
14194
|
+
if (this.isShown) {
|
|
14195
|
+
return;
|
|
14196
|
+
}
|
|
14197
|
+
this.$_ensureTeleport();
|
|
14198
|
+
await nextFrame();
|
|
14199
|
+
await this.$_computePosition();
|
|
14200
|
+
await this.$_applyShowEffect();
|
|
14201
|
+
if (!this.positioningDisabled) {
|
|
14202
|
+
this.$_registerEventListeners([
|
|
14203
|
+
...getScrollParents(this.$_referenceNode),
|
|
14204
|
+
...getScrollParents(this.$_popperNode)
|
|
14205
|
+
], "scroll", () => {
|
|
14206
|
+
this.$_computePosition();
|
|
14207
|
+
});
|
|
14208
|
+
}
|
|
14209
|
+
},
|
|
14210
|
+
async $_applyShowEffect() {
|
|
14211
|
+
if (this.$_hideInProgress)
|
|
14212
|
+
return;
|
|
14213
|
+
if (this.computeTransformOrigin) {
|
|
14214
|
+
const bounds = this.$_referenceNode.getBoundingClientRect();
|
|
14215
|
+
const popperWrapper = this.$_popperNode.querySelector(".v-popper__wrapper");
|
|
14216
|
+
const parentBounds = popperWrapper.parentNode.getBoundingClientRect();
|
|
14217
|
+
const x = bounds.x + bounds.width / 2 - (parentBounds.left + popperWrapper.offsetLeft);
|
|
14218
|
+
const y = bounds.y + bounds.height / 2 - (parentBounds.top + popperWrapper.offsetTop);
|
|
14219
|
+
this.result.transformOrigin = `${x}px ${y}px`;
|
|
14220
|
+
}
|
|
14221
|
+
this.isShown = true;
|
|
14222
|
+
this.$_applyAttrsToTarget({
|
|
14223
|
+
"aria-describedby": this.popperId,
|
|
14224
|
+
"data-popper-shown": ""
|
|
14225
|
+
});
|
|
14226
|
+
const showGroup = this.showGroup;
|
|
14227
|
+
if (showGroup) {
|
|
14228
|
+
let popover;
|
|
14229
|
+
for (let i = 0; i < shownPoppers.length; i++) {
|
|
14230
|
+
popover = shownPoppers[i];
|
|
14231
|
+
if (popover.showGroup !== showGroup) {
|
|
14232
|
+
popover.hide();
|
|
14233
|
+
popover.$emit("close-group");
|
|
14234
|
+
}
|
|
14235
|
+
}
|
|
14236
|
+
}
|
|
14237
|
+
shownPoppers.push(this);
|
|
14238
|
+
document.body.classList.add("v-popper--some-open");
|
|
14239
|
+
for (const theme of getAllParentThemes(this.theme)) {
|
|
14240
|
+
getShownPoppersByTheme(theme).push(this);
|
|
14241
|
+
document.body.classList.add(`v-popper--some-open--${theme}`);
|
|
14242
|
+
}
|
|
14243
|
+
this.$emit("apply-show");
|
|
14244
|
+
this.classes.showFrom = true;
|
|
14245
|
+
this.classes.showTo = false;
|
|
14246
|
+
this.classes.hideFrom = false;
|
|
14247
|
+
this.classes.hideTo = false;
|
|
14248
|
+
await nextFrame();
|
|
14249
|
+
this.classes.showFrom = false;
|
|
14250
|
+
this.classes.showTo = true;
|
|
14251
|
+
this.$_popperNode.focus();
|
|
14252
|
+
},
|
|
14253
|
+
async $_applyHide(skipTransition = false) {
|
|
14254
|
+
if (this.shownChildren.size > 0) {
|
|
14255
|
+
this.$_pendingHide = true;
|
|
14256
|
+
this.$_hideInProgress = false;
|
|
14257
|
+
return;
|
|
14258
|
+
}
|
|
14259
|
+
clearTimeout(this.$_scheduleTimer);
|
|
14260
|
+
if (!this.isShown) {
|
|
14261
|
+
return;
|
|
14262
|
+
}
|
|
14263
|
+
this.skipTransition = skipTransition;
|
|
14264
|
+
removeFromArray(shownPoppers, this);
|
|
14265
|
+
if (shownPoppers.length === 0) {
|
|
14266
|
+
document.body.classList.remove("v-popper--some-open");
|
|
14267
|
+
}
|
|
14268
|
+
for (const theme of getAllParentThemes(this.theme)) {
|
|
14269
|
+
const list = getShownPoppersByTheme(theme);
|
|
14270
|
+
removeFromArray(list, this);
|
|
14271
|
+
if (list.length === 0) {
|
|
14272
|
+
document.body.classList.remove(`v-popper--some-open--${theme}`);
|
|
14273
|
+
}
|
|
14274
|
+
}
|
|
14275
|
+
if (hidingPopper === this) {
|
|
14276
|
+
hidingPopper = null;
|
|
14277
|
+
}
|
|
14278
|
+
this.isShown = false;
|
|
14279
|
+
this.$_applyAttrsToTarget({
|
|
14280
|
+
"aria-describedby": void 0,
|
|
14281
|
+
"data-popper-shown": void 0
|
|
14282
|
+
});
|
|
14283
|
+
clearTimeout(this.$_disposeTimer);
|
|
14284
|
+
const disposeTime = getDefaultConfig(this.theme, "disposeTimeout");
|
|
14285
|
+
if (disposeTime !== null) {
|
|
14286
|
+
this.$_disposeTimer = setTimeout(() => {
|
|
14287
|
+
if (this.$_popperNode) {
|
|
14288
|
+
this.$_detachPopperNode();
|
|
14289
|
+
this.isMounted = false;
|
|
14290
|
+
}
|
|
14291
|
+
}, disposeTime);
|
|
14292
|
+
}
|
|
14293
|
+
this.$_removeEventListeners("scroll");
|
|
14294
|
+
this.$emit("apply-hide");
|
|
14295
|
+
this.classes.showFrom = false;
|
|
14296
|
+
this.classes.showTo = false;
|
|
14297
|
+
this.classes.hideFrom = true;
|
|
14298
|
+
this.classes.hideTo = false;
|
|
14299
|
+
await nextFrame();
|
|
14300
|
+
this.classes.hideFrom = false;
|
|
14301
|
+
this.classes.hideTo = true;
|
|
14302
|
+
},
|
|
14303
|
+
$_autoShowHide() {
|
|
14304
|
+
if (this.shown) {
|
|
14305
|
+
this.show();
|
|
14306
|
+
} else {
|
|
14307
|
+
this.hide();
|
|
14308
|
+
}
|
|
14309
|
+
},
|
|
14310
|
+
$_ensureTeleport() {
|
|
14311
|
+
if (this.$_isDisposed)
|
|
14312
|
+
return;
|
|
14313
|
+
let container = this.container;
|
|
14314
|
+
if (typeof container === "string") {
|
|
14315
|
+
container = window.document.querySelector(container);
|
|
14316
|
+
} else if (container === false) {
|
|
14317
|
+
container = this.$_targetNodes[0].parentNode;
|
|
14318
|
+
}
|
|
14319
|
+
if (!container) {
|
|
14320
|
+
throw new Error("No container for popover: " + this.container);
|
|
14321
|
+
}
|
|
14322
|
+
container.appendChild(this.$_popperNode);
|
|
14323
|
+
this.isMounted = true;
|
|
14324
|
+
},
|
|
14325
|
+
$_addEventListeners() {
|
|
14326
|
+
const handleShow = (event) => {
|
|
14327
|
+
if (this.isShown && !this.$_hideInProgress) {
|
|
14328
|
+
return;
|
|
14329
|
+
}
|
|
14330
|
+
event.usedByTooltip = true;
|
|
14331
|
+
!this.$_preventShow && this.show({ event });
|
|
14332
|
+
};
|
|
14333
|
+
this.$_registerTriggerListeners(this.$_targetNodes, SHOW_EVENT_MAP, this.triggers, this.showTriggers, handleShow);
|
|
14334
|
+
this.$_registerTriggerListeners([this.$_popperNode], SHOW_EVENT_MAP, this.popperTriggers, this.popperShowTriggers, handleShow);
|
|
14335
|
+
const handleHide = (event) => {
|
|
14336
|
+
if (event.usedByTooltip) {
|
|
14337
|
+
return;
|
|
14338
|
+
}
|
|
14339
|
+
this.hide({ event });
|
|
14340
|
+
};
|
|
14341
|
+
this.$_registerTriggerListeners(this.$_targetNodes, HIDE_EVENT_MAP, this.triggers, this.hideTriggers, handleHide);
|
|
14342
|
+
this.$_registerTriggerListeners([this.$_popperNode], HIDE_EVENT_MAP, this.popperTriggers, this.popperHideTriggers, handleHide);
|
|
14343
|
+
},
|
|
14344
|
+
$_registerEventListeners(targetNodes, eventType, handler) {
|
|
14345
|
+
this.$_events.push({ targetNodes, eventType, handler });
|
|
14346
|
+
targetNodes.forEach((node) => node.addEventListener(eventType, handler, supportsPassive ? {
|
|
14347
|
+
passive: true
|
|
14348
|
+
} : void 0));
|
|
14349
|
+
},
|
|
14350
|
+
$_registerTriggerListeners(targetNodes, eventMap, commonTriggers, customTrigger, handler) {
|
|
14351
|
+
let triggers = commonTriggers;
|
|
14352
|
+
if (customTrigger != null) {
|
|
14353
|
+
triggers = typeof customTrigger === "function" ? customTrigger(triggers) : customTrigger;
|
|
14354
|
+
}
|
|
14355
|
+
triggers.forEach((trigger) => {
|
|
14356
|
+
const eventType = eventMap[trigger];
|
|
14357
|
+
if (eventType) {
|
|
14358
|
+
this.$_registerEventListeners(targetNodes, eventType, handler);
|
|
14359
|
+
}
|
|
14360
|
+
});
|
|
14361
|
+
},
|
|
14362
|
+
$_removeEventListeners(filterEventType) {
|
|
14363
|
+
const newList = [];
|
|
14364
|
+
this.$_events.forEach((listener) => {
|
|
14365
|
+
const { targetNodes, eventType, handler } = listener;
|
|
14366
|
+
if (!filterEventType || filterEventType === eventType) {
|
|
14367
|
+
targetNodes.forEach((node) => node.removeEventListener(eventType, handler));
|
|
14368
|
+
} else {
|
|
14369
|
+
newList.push(listener);
|
|
14370
|
+
}
|
|
14371
|
+
});
|
|
14372
|
+
this.$_events = newList;
|
|
14373
|
+
},
|
|
14374
|
+
$_refreshListeners() {
|
|
14375
|
+
if (!this.$_isDisposed) {
|
|
14376
|
+
this.$_removeEventListeners();
|
|
14377
|
+
this.$_addEventListeners();
|
|
14378
|
+
}
|
|
14379
|
+
},
|
|
14380
|
+
$_handleGlobalClose(event, touch = false) {
|
|
14381
|
+
if (this.$_showFrameLocked)
|
|
14382
|
+
return;
|
|
14383
|
+
this.hide({ event });
|
|
14384
|
+
if (event.closePopover) {
|
|
14385
|
+
this.$emit("close-directive");
|
|
14386
|
+
} else {
|
|
14387
|
+
this.$emit("auto-hide");
|
|
14388
|
+
}
|
|
14389
|
+
if (touch) {
|
|
14390
|
+
this.$_preventShow = true;
|
|
14391
|
+
setTimeout(() => {
|
|
14392
|
+
this.$_preventShow = false;
|
|
14393
|
+
}, 300);
|
|
14394
|
+
}
|
|
14395
|
+
},
|
|
14396
|
+
$_detachPopperNode() {
|
|
14397
|
+
this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
|
|
14398
|
+
},
|
|
14399
|
+
$_swapTargetAttrs(attrFrom, attrTo) {
|
|
14400
|
+
for (const el of this.$_targetNodes) {
|
|
14401
|
+
const value = el.getAttribute(attrFrom);
|
|
14402
|
+
if (value) {
|
|
14403
|
+
el.removeAttribute(attrFrom);
|
|
14404
|
+
el.setAttribute(attrTo, value);
|
|
14405
|
+
}
|
|
14406
|
+
}
|
|
14407
|
+
},
|
|
14408
|
+
$_applyAttrsToTarget(attrs) {
|
|
14409
|
+
for (const el of this.$_targetNodes) {
|
|
14410
|
+
for (const n in attrs) {
|
|
14411
|
+
const value = attrs[n];
|
|
14412
|
+
if (value == null) {
|
|
14413
|
+
el.removeAttribute(n);
|
|
14414
|
+
} else {
|
|
14415
|
+
el.setAttribute(n, value);
|
|
14416
|
+
}
|
|
14417
|
+
}
|
|
14418
|
+
}
|
|
14419
|
+
},
|
|
14420
|
+
$_updateParentShownChildren(value) {
|
|
14421
|
+
let parent = this.parentPopper;
|
|
14422
|
+
while (parent) {
|
|
14423
|
+
if (value) {
|
|
14424
|
+
parent.shownChildren.add(this.randomId);
|
|
14425
|
+
} else {
|
|
14426
|
+
parent.shownChildren.delete(this.randomId);
|
|
14427
|
+
if (parent.$_pendingHide) {
|
|
14428
|
+
parent.hide();
|
|
14429
|
+
}
|
|
14430
|
+
}
|
|
14431
|
+
parent = parent.parentPopper;
|
|
14432
|
+
}
|
|
14433
|
+
},
|
|
14434
|
+
$_isAimingPopper() {
|
|
14435
|
+
const referenceBounds = this.$el.getBoundingClientRect();
|
|
14436
|
+
if (mouseX >= referenceBounds.left && mouseX <= referenceBounds.right && mouseY >= referenceBounds.top && mouseY <= referenceBounds.bottom) {
|
|
14437
|
+
const popperBounds = this.$_popperNode.getBoundingClientRect();
|
|
14438
|
+
const vectorX = mouseX - mousePreviousX;
|
|
14439
|
+
const vectorY = mouseY - mousePreviousY;
|
|
14440
|
+
const distance = popperBounds.left + popperBounds.width / 2 - mousePreviousX + (popperBounds.top + popperBounds.height / 2) - mousePreviousY;
|
|
14441
|
+
const newVectorLength = distance + popperBounds.width + popperBounds.height;
|
|
14442
|
+
const edgeX = mousePreviousX + vectorX * newVectorLength;
|
|
14443
|
+
const edgeY = mousePreviousY + vectorY * newVectorLength;
|
|
14444
|
+
return lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.left, popperBounds.top, popperBounds.left, popperBounds.bottom) || lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.left, popperBounds.top, popperBounds.right, popperBounds.top) || lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.right, popperBounds.top, popperBounds.right, popperBounds.bottom) || lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.left, popperBounds.bottom, popperBounds.right, popperBounds.bottom);
|
|
14445
|
+
}
|
|
14446
|
+
return false;
|
|
14447
|
+
}
|
|
14448
|
+
},
|
|
14449
|
+
render() {
|
|
14450
|
+
return this.$scopedSlots.default(this.slotData)[0];
|
|
14451
|
+
}
|
|
14452
|
+
});
|
|
14453
|
+
if (typeof document !== "undefined" && typeof window !== "undefined") {
|
|
14454
|
+
if (isIOS) {
|
|
14455
|
+
document.addEventListener("touchstart", handleGlobalMousedown, supportsPassive ? {
|
|
14456
|
+
passive: true,
|
|
14457
|
+
capture: true
|
|
14458
|
+
} : true);
|
|
14459
|
+
document.addEventListener("touchend", handleGlobalTouchend, supportsPassive ? {
|
|
14460
|
+
passive: true,
|
|
14461
|
+
capture: true
|
|
14462
|
+
} : true);
|
|
14463
|
+
} else {
|
|
14464
|
+
window.addEventListener("mousedown", handleGlobalMousedown, true);
|
|
14465
|
+
window.addEventListener("click", handleGlobalClick, true);
|
|
14466
|
+
}
|
|
14467
|
+
window.addEventListener("resize", computePositionAllShownPoppers);
|
|
14468
|
+
}
|
|
14469
|
+
function handleGlobalMousedown(event) {
|
|
14470
|
+
for (let i = 0; i < shownPoppers.length; i++) {
|
|
14471
|
+
const popper = shownPoppers[i];
|
|
14472
|
+
try {
|
|
14473
|
+
const popperContent = popper.popperNode();
|
|
14474
|
+
popper.$_mouseDownContains = popperContent.contains(event.target);
|
|
14475
|
+
} catch (e) {
|
|
14476
|
+
}
|
|
14477
|
+
}
|
|
14478
|
+
}
|
|
14479
|
+
function handleGlobalClick(event) {
|
|
14480
|
+
handleGlobalClose(event);
|
|
14481
|
+
}
|
|
14482
|
+
function handleGlobalTouchend(event) {
|
|
14483
|
+
handleGlobalClose(event, true);
|
|
14484
|
+
}
|
|
14485
|
+
function handleGlobalClose(event, touch = false) {
|
|
14486
|
+
const preventClose = {};
|
|
14487
|
+
for (let i = shownPoppers.length - 1; i >= 0; i--) {
|
|
14488
|
+
const popper = shownPoppers[i];
|
|
14489
|
+
try {
|
|
14490
|
+
const contains = popper.$_containsGlobalTarget = isContainingEventTarget(popper, event);
|
|
14491
|
+
popper.$_pendingHide = false;
|
|
14492
|
+
requestAnimationFrame(() => {
|
|
14493
|
+
popper.$_pendingHide = false;
|
|
14494
|
+
if (preventClose[popper.randomId])
|
|
14495
|
+
return;
|
|
14496
|
+
if (shouldAutoHide(popper, contains, event)) {
|
|
14497
|
+
popper.$_handleGlobalClose(event, touch);
|
|
14498
|
+
if (!event.closeAllPopover && event.closePopover && contains) {
|
|
14499
|
+
let parent2 = popper.parentPopper;
|
|
14500
|
+
while (parent2) {
|
|
14501
|
+
preventClose[parent2.randomId] = true;
|
|
14502
|
+
parent2 = parent2.parentPopper;
|
|
14503
|
+
}
|
|
14504
|
+
return;
|
|
14505
|
+
}
|
|
14506
|
+
let parent = popper.parentPopper;
|
|
14507
|
+
while (parent) {
|
|
14508
|
+
if (shouldAutoHide(parent, parent.$_containsGlobalTarget, event)) {
|
|
14509
|
+
parent.$_handleGlobalClose(event, touch);
|
|
14510
|
+
} else {
|
|
14511
|
+
break;
|
|
14512
|
+
}
|
|
14513
|
+
parent = parent.parentPopper;
|
|
14514
|
+
}
|
|
14515
|
+
}
|
|
14516
|
+
});
|
|
14517
|
+
} catch (e) {
|
|
14518
|
+
}
|
|
14519
|
+
}
|
|
14520
|
+
}
|
|
14521
|
+
function isContainingEventTarget(popper, event) {
|
|
14522
|
+
const popperContent = popper.popperNode();
|
|
14523
|
+
return popper.$_mouseDownContains || popperContent.contains(event.target);
|
|
14524
|
+
}
|
|
14525
|
+
function shouldAutoHide(popper, contains, event) {
|
|
14526
|
+
return event.closeAllPopover || event.closePopover && contains || getAutoHideResult(popper, event) && !contains;
|
|
14527
|
+
}
|
|
14528
|
+
function getAutoHideResult(popper, event) {
|
|
14529
|
+
if (typeof popper.autoHide === "function") {
|
|
14530
|
+
const result = popper.autoHide(event);
|
|
14531
|
+
popper.lastAutoHide = result;
|
|
14532
|
+
return result;
|
|
14533
|
+
}
|
|
14534
|
+
return popper.autoHide;
|
|
14535
|
+
}
|
|
14536
|
+
function computePositionAllShownPoppers(event) {
|
|
14537
|
+
for (let i = 0; i < shownPoppers.length; i++) {
|
|
14538
|
+
const popper = shownPoppers[i];
|
|
14539
|
+
popper.$_computePosition(event);
|
|
14540
|
+
}
|
|
14541
|
+
}
|
|
14542
|
+
function hideAllPoppers() {
|
|
14543
|
+
for (let i = 0; i < shownPoppers.length; i++) {
|
|
14544
|
+
const popper = shownPoppers[i];
|
|
14545
|
+
popper.hide();
|
|
14546
|
+
}
|
|
14547
|
+
}
|
|
14548
|
+
let mousePreviousX = 0;
|
|
14549
|
+
let mousePreviousY = 0;
|
|
14550
|
+
let mouseX = 0;
|
|
14551
|
+
let mouseY = 0;
|
|
14552
|
+
if (typeof window !== "undefined") {
|
|
14553
|
+
window.addEventListener("mousemove", (event) => {
|
|
14554
|
+
mousePreviousX = mouseX;
|
|
14555
|
+
mousePreviousY = mouseY;
|
|
14556
|
+
mouseX = event.clientX;
|
|
14557
|
+
mouseY = event.clientY;
|
|
14558
|
+
}, supportsPassive ? {
|
|
14559
|
+
passive: true
|
|
14560
|
+
} : void 0);
|
|
14561
|
+
}
|
|
14562
|
+
function lineIntersectsLine(x1, y1, x2, y2, x3, y3, x4, y4) {
|
|
14563
|
+
const uA = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1));
|
|
14564
|
+
const uB = ((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1));
|
|
14565
|
+
return uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1;
|
|
14566
|
+
}
|
|
14567
|
+
function getInternetExplorerVersion() {
|
|
14568
|
+
var ua = window.navigator.userAgent;
|
|
14569
|
+
var msie = ua.indexOf("MSIE ");
|
|
14570
|
+
if (msie > 0) {
|
|
14571
|
+
return parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)), 10);
|
|
14572
|
+
}
|
|
14573
|
+
var trident = ua.indexOf("Trident/");
|
|
14574
|
+
if (trident > 0) {
|
|
14575
|
+
var rv = ua.indexOf("rv:");
|
|
14576
|
+
return parseInt(ua.substring(rv + 3, ua.indexOf(".", rv)), 10);
|
|
14577
|
+
}
|
|
14578
|
+
var edge = ua.indexOf("Edge/");
|
|
14579
|
+
if (edge > 0) {
|
|
14580
|
+
return parseInt(ua.substring(edge + 5, ua.indexOf(".", edge)), 10);
|
|
14581
|
+
}
|
|
14582
|
+
return -1;
|
|
14583
|
+
}
|
|
14584
|
+
var isIE;
|
|
14585
|
+
function initCompat() {
|
|
14586
|
+
if (!initCompat.init) {
|
|
14587
|
+
initCompat.init = true;
|
|
14588
|
+
isIE = getInternetExplorerVersion() !== -1;
|
|
14589
|
+
}
|
|
14590
|
+
}
|
|
14591
|
+
var script = {
|
|
14592
|
+
name: "ResizeObserver",
|
|
14593
|
+
props: {
|
|
14594
|
+
emitOnMount: {
|
|
14595
|
+
type: Boolean,
|
|
14596
|
+
default: false
|
|
14597
|
+
},
|
|
14598
|
+
ignoreWidth: {
|
|
14599
|
+
type: Boolean,
|
|
14600
|
+
default: false
|
|
14601
|
+
},
|
|
14602
|
+
ignoreHeight: {
|
|
14603
|
+
type: Boolean,
|
|
14604
|
+
default: false
|
|
14605
|
+
}
|
|
14606
|
+
},
|
|
14607
|
+
mounted: function mounted() {
|
|
14608
|
+
var _this = this;
|
|
14609
|
+
initCompat();
|
|
14610
|
+
this.$nextTick(function() {
|
|
14611
|
+
_this._w = _this.$el.offsetWidth;
|
|
14612
|
+
_this._h = _this.$el.offsetHeight;
|
|
14613
|
+
if (_this.emitOnMount) {
|
|
14614
|
+
_this.emitSize();
|
|
14615
|
+
}
|
|
14616
|
+
});
|
|
14617
|
+
var object = document.createElement("object");
|
|
14618
|
+
this._resizeObject = object;
|
|
14619
|
+
object.setAttribute("aria-hidden", "true");
|
|
14620
|
+
object.setAttribute("tabindex", -1);
|
|
14621
|
+
object.onload = this.addResizeHandlers;
|
|
14622
|
+
object.type = "text/html";
|
|
14623
|
+
if (isIE) {
|
|
14624
|
+
this.$el.appendChild(object);
|
|
14625
|
+
}
|
|
14626
|
+
object.data = "about:blank";
|
|
14627
|
+
if (!isIE) {
|
|
14628
|
+
this.$el.appendChild(object);
|
|
14629
|
+
}
|
|
14630
|
+
},
|
|
14631
|
+
beforeDestroy: function beforeDestroy() {
|
|
14632
|
+
this.removeResizeHandlers();
|
|
14633
|
+
},
|
|
14634
|
+
methods: {
|
|
14635
|
+
compareAndNotify: function compareAndNotify() {
|
|
14636
|
+
if (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) {
|
|
14637
|
+
this._w = this.$el.offsetWidth;
|
|
14638
|
+
this._h = this.$el.offsetHeight;
|
|
14639
|
+
this.emitSize();
|
|
14640
|
+
}
|
|
14641
|
+
},
|
|
14642
|
+
emitSize: function emitSize() {
|
|
14643
|
+
this.$emit("notify", {
|
|
14644
|
+
width: this._w,
|
|
14645
|
+
height: this._h
|
|
14646
|
+
});
|
|
14647
|
+
},
|
|
14648
|
+
addResizeHandlers: function addResizeHandlers() {
|
|
14649
|
+
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify);
|
|
14650
|
+
this.compareAndNotify();
|
|
14651
|
+
},
|
|
14652
|
+
removeResizeHandlers: function removeResizeHandlers() {
|
|
14653
|
+
if (this._resizeObject && this._resizeObject.onload) {
|
|
14654
|
+
if (!isIE && this._resizeObject.contentDocument) {
|
|
14655
|
+
this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify);
|
|
14656
|
+
}
|
|
14657
|
+
this.$el.removeChild(this._resizeObject);
|
|
14658
|
+
this._resizeObject.onload = null;
|
|
14659
|
+
this._resizeObject = null;
|
|
14660
|
+
}
|
|
14661
|
+
}
|
|
14662
|
+
}
|
|
14663
|
+
};
|
|
14664
|
+
function normalizeComponent$1(template, style, script2, scopeId, isFunctionalTemplate, moduleIdentifier, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
14665
|
+
if (typeof shadowMode !== "boolean") {
|
|
14666
|
+
createInjectorSSR = createInjector;
|
|
14667
|
+
createInjector = shadowMode;
|
|
14668
|
+
shadowMode = false;
|
|
14669
|
+
}
|
|
14670
|
+
var options2 = typeof script2 === "function" ? script2.options : script2;
|
|
14671
|
+
if (template && template.render) {
|
|
14672
|
+
options2.render = template.render;
|
|
14673
|
+
options2.staticRenderFns = template.staticRenderFns;
|
|
14674
|
+
options2._compiled = true;
|
|
14675
|
+
if (isFunctionalTemplate) {
|
|
14676
|
+
options2.functional = true;
|
|
14677
|
+
}
|
|
14678
|
+
}
|
|
14679
|
+
if (scopeId) {
|
|
14680
|
+
options2._scopeId = scopeId;
|
|
14681
|
+
}
|
|
14682
|
+
var hook;
|
|
14683
|
+
if (moduleIdentifier) {
|
|
14684
|
+
hook = function hook2(context) {
|
|
14685
|
+
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
14686
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
14687
|
+
context = __VUE_SSR_CONTEXT__;
|
|
14688
|
+
}
|
|
14689
|
+
if (style) {
|
|
14690
|
+
style.call(this, createInjectorSSR(context));
|
|
14691
|
+
}
|
|
14692
|
+
if (context && context._registeredComponents) {
|
|
14693
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
14694
|
+
}
|
|
14695
|
+
};
|
|
14696
|
+
options2._ssrRegister = hook;
|
|
14697
|
+
} else if (style) {
|
|
14698
|
+
hook = shadowMode ? function(context) {
|
|
14699
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
14700
|
+
} : function(context) {
|
|
14701
|
+
style.call(this, createInjector(context));
|
|
14702
|
+
};
|
|
14703
|
+
}
|
|
14704
|
+
if (hook) {
|
|
14705
|
+
if (options2.functional) {
|
|
14706
|
+
var originalRender = options2.render;
|
|
14707
|
+
options2.render = function renderWithStyleInjection(h, context) {
|
|
14708
|
+
hook.call(context);
|
|
14709
|
+
return originalRender(h, context);
|
|
14710
|
+
};
|
|
14711
|
+
} else {
|
|
14712
|
+
var existing = options2.beforeCreate;
|
|
14713
|
+
options2.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
14714
|
+
}
|
|
14715
|
+
}
|
|
14716
|
+
return script2;
|
|
14717
|
+
}
|
|
14718
|
+
var __vue_script__ = script;
|
|
14719
|
+
var __vue_render__ = function __vue_render__2() {
|
|
14720
|
+
var _vm = this;
|
|
14721
|
+
var _h = _vm.$createElement;
|
|
14722
|
+
var _c = _vm._self._c || _h;
|
|
14723
|
+
return _c("div", {
|
|
14724
|
+
staticClass: "resize-observer",
|
|
14725
|
+
attrs: {
|
|
14726
|
+
tabindex: "-1"
|
|
14727
|
+
}
|
|
14728
|
+
});
|
|
14729
|
+
};
|
|
14730
|
+
var __vue_staticRenderFns__ = [];
|
|
14731
|
+
__vue_render__._withStripped = true;
|
|
14732
|
+
var __vue_inject_styles__ = void 0;
|
|
14733
|
+
var __vue_scope_id__ = "data-v-8859cc6c";
|
|
14734
|
+
var __vue_module_identifier__ = void 0;
|
|
14735
|
+
var __vue_is_functional_template__ = false;
|
|
14736
|
+
var __vue_component__ = /* @__PURE__ */ normalizeComponent$1({
|
|
14737
|
+
render: __vue_render__,
|
|
14738
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
14739
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, void 0, void 0, void 0);
|
|
14740
|
+
function install$1(Vue2) {
|
|
14741
|
+
Vue2.component("resize-observer", __vue_component__);
|
|
14742
|
+
Vue2.component("ResizeObserver", __vue_component__);
|
|
14743
|
+
}
|
|
14744
|
+
var plugin$1 = {
|
|
14745
|
+
version: "1.0.1",
|
|
14746
|
+
install: install$1
|
|
14747
|
+
};
|
|
14748
|
+
var GlobalVue$1 = null;
|
|
14749
|
+
if (typeof window !== "undefined") {
|
|
14750
|
+
GlobalVue$1 = window.Vue;
|
|
14751
|
+
} else if (typeof __webpack_require__.g !== "undefined") {
|
|
14752
|
+
GlobalVue$1 = __webpack_require__.g.Vue;
|
|
14753
|
+
}
|
|
14754
|
+
if (GlobalVue$1) {
|
|
14755
|
+
GlobalVue$1.use(plugin$1);
|
|
14756
|
+
}
|
|
14757
|
+
var PrivateThemeClass = {
|
|
14758
|
+
computed: {
|
|
14759
|
+
themeClass() {
|
|
14760
|
+
return getThemeClasses(this.theme);
|
|
14761
|
+
}
|
|
14762
|
+
}
|
|
14763
|
+
};
|
|
14764
|
+
var __vue2_script$5 = {
|
|
14765
|
+
name: "VPopperContent",
|
|
14766
|
+
components: {
|
|
14767
|
+
ResizeObserver: __vue_component__
|
|
14768
|
+
},
|
|
14769
|
+
mixins: [
|
|
14770
|
+
PrivateThemeClass
|
|
14771
|
+
],
|
|
14772
|
+
props: {
|
|
14773
|
+
popperId: String,
|
|
14774
|
+
theme: String,
|
|
14775
|
+
shown: Boolean,
|
|
14776
|
+
mounted: Boolean,
|
|
14777
|
+
skipTransition: Boolean,
|
|
14778
|
+
autoHide: Boolean,
|
|
14779
|
+
handleResize: Boolean,
|
|
14780
|
+
classes: Object,
|
|
14781
|
+
result: Object
|
|
14782
|
+
},
|
|
14783
|
+
methods: {
|
|
14784
|
+
toPx(value) {
|
|
14785
|
+
if (value != null && !isNaN(value)) {
|
|
14786
|
+
return `${value}px`;
|
|
14787
|
+
}
|
|
14788
|
+
return null;
|
|
14789
|
+
}
|
|
14790
|
+
}
|
|
14791
|
+
};
|
|
14792
|
+
var render$2 = function() {
|
|
14793
|
+
var _vm = this;
|
|
14794
|
+
var _h = _vm.$createElement;
|
|
14795
|
+
var _c = _vm._self._c || _h;
|
|
14796
|
+
return _c("div", { ref: "popover", staticClass: "v-popper__popper", class: [
|
|
14797
|
+
_vm.themeClass,
|
|
14798
|
+
_vm.classes.popperClass,
|
|
14799
|
+
{
|
|
14800
|
+
"v-popper__popper--shown": _vm.shown,
|
|
14801
|
+
"v-popper__popper--hidden": !_vm.shown,
|
|
14802
|
+
"v-popper__popper--show-from": _vm.classes.showFrom,
|
|
14803
|
+
"v-popper__popper--show-to": _vm.classes.showTo,
|
|
14804
|
+
"v-popper__popper--hide-from": _vm.classes.hideFrom,
|
|
14805
|
+
"v-popper__popper--hide-to": _vm.classes.hideTo,
|
|
14806
|
+
"v-popper__popper--skip-transition": _vm.skipTransition,
|
|
14807
|
+
"v-popper__popper--arrow-overflow": _vm.result && _vm.result.arrow.overflow,
|
|
14808
|
+
"v-popper__popper--no-positioning": !_vm.result
|
|
14809
|
+
}
|
|
14810
|
+
], style: _vm.result ? {
|
|
14811
|
+
position: _vm.result.strategy,
|
|
14812
|
+
transform: "translate3d(" + Math.round(_vm.result.x) + "px," + Math.round(_vm.result.y) + "px,0)"
|
|
14813
|
+
} : void 0, attrs: { "id": _vm.popperId, "aria-hidden": _vm.shown ? "false" : "true", "tabindex": _vm.autoHide ? 0 : void 0, "data-popper-placement": _vm.result ? _vm.result.placement : void 0 }, on: { "keyup": function($event) {
|
|
14814
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) {
|
|
14815
|
+
return null;
|
|
14816
|
+
}
|
|
14817
|
+
_vm.autoHide && _vm.$emit("hide");
|
|
14818
|
+
} } }, [_c("div", { staticClass: "v-popper__backdrop", on: { "click": function($event) {
|
|
14819
|
+
_vm.autoHide && _vm.$emit("hide");
|
|
14820
|
+
} } }), _c("div", { staticClass: "v-popper__wrapper", style: _vm.result ? {
|
|
14821
|
+
transformOrigin: _vm.result.transformOrigin
|
|
14822
|
+
} : void 0 }, [_c("div", { ref: "inner", staticClass: "v-popper__inner" }, [_vm.mounted ? [_c("div", [_vm._t("default")], 2), _vm.handleResize ? _c("ResizeObserver", { on: { "notify": function($event) {
|
|
14823
|
+
return _vm.$emit("resize", $event);
|
|
14824
|
+
} } }) : _vm._e()] : _vm._e()], 2), _c("div", { ref: "arrow", staticClass: "v-popper__arrow-container", style: _vm.result ? {
|
|
14825
|
+
left: _vm.toPx(_vm.result.arrow.x),
|
|
14826
|
+
top: _vm.toPx(_vm.result.arrow.y)
|
|
14827
|
+
} : void 0 }, [_c("div", { staticClass: "v-popper__arrow-outer" }), _c("div", { staticClass: "v-popper__arrow-inner" })])])]);
|
|
14828
|
+
};
|
|
14829
|
+
var staticRenderFns$2 = [];
|
|
14830
|
+
var PopperContent_vue_vue_type_style_index_0_lang = "";
|
|
14831
|
+
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
14832
|
+
var options2 = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
14833
|
+
if (render2) {
|
|
14834
|
+
options2.render = render2;
|
|
14835
|
+
options2.staticRenderFns = staticRenderFns2;
|
|
14836
|
+
options2._compiled = true;
|
|
14837
|
+
}
|
|
14838
|
+
if (functionalTemplate) {
|
|
14839
|
+
options2.functional = true;
|
|
14840
|
+
}
|
|
14841
|
+
if (scopeId) {
|
|
14842
|
+
options2._scopeId = "data-v-" + scopeId;
|
|
14843
|
+
}
|
|
14844
|
+
var hook;
|
|
14845
|
+
if (moduleIdentifier) {
|
|
14846
|
+
hook = function(context) {
|
|
14847
|
+
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
14848
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
14849
|
+
context = __VUE_SSR_CONTEXT__;
|
|
14850
|
+
}
|
|
14851
|
+
if (injectStyles) {
|
|
14852
|
+
injectStyles.call(this, context);
|
|
14853
|
+
}
|
|
14854
|
+
if (context && context._registeredComponents) {
|
|
14855
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
14856
|
+
}
|
|
14857
|
+
};
|
|
14858
|
+
options2._ssrRegister = hook;
|
|
14859
|
+
} else if (injectStyles) {
|
|
14860
|
+
hook = shadowMode ? function() {
|
|
14861
|
+
injectStyles.call(this, (options2.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
14862
|
+
} : injectStyles;
|
|
14863
|
+
}
|
|
14864
|
+
if (hook) {
|
|
14865
|
+
if (options2.functional) {
|
|
14866
|
+
options2._injectStyles = hook;
|
|
14867
|
+
var originalRender = options2.render;
|
|
14868
|
+
options2.render = function renderWithStyleInjection(h, context) {
|
|
14869
|
+
hook.call(context);
|
|
14870
|
+
return originalRender(h, context);
|
|
14871
|
+
};
|
|
14872
|
+
} else {
|
|
14873
|
+
var existing = options2.beforeCreate;
|
|
14874
|
+
options2.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
14875
|
+
}
|
|
14876
|
+
}
|
|
14877
|
+
return {
|
|
14878
|
+
exports: scriptExports,
|
|
14879
|
+
options: options2
|
|
14880
|
+
};
|
|
14881
|
+
}
|
|
14882
|
+
const __cssModules$5 = {};
|
|
14883
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$2, staticRenderFns$2, false, __vue2_injectStyles$5, null, null, null);
|
|
14884
|
+
function __vue2_injectStyles$5(context) {
|
|
14885
|
+
for (let o in __cssModules$5) {
|
|
14886
|
+
this[o] = __cssModules$5[o];
|
|
14887
|
+
}
|
|
14888
|
+
}
|
|
14889
|
+
var PrivatePopperContent = /* @__PURE__ */ function() {
|
|
14890
|
+
return __component__$5.exports;
|
|
14891
|
+
}();
|
|
14892
|
+
var PrivatePopperMethods = {
|
|
14893
|
+
methods: {
|
|
14894
|
+
show(...args) {
|
|
14895
|
+
return this.$refs.popper.show(...args);
|
|
14896
|
+
},
|
|
14897
|
+
hide(...args) {
|
|
14898
|
+
return this.$refs.popper.hide(...args);
|
|
14899
|
+
},
|
|
14900
|
+
dispose(...args) {
|
|
14901
|
+
return this.$refs.popper.dispose(...args);
|
|
14902
|
+
},
|
|
14903
|
+
onResize(...args) {
|
|
14904
|
+
return this.$refs.popper.onResize(...args);
|
|
14905
|
+
}
|
|
14906
|
+
}
|
|
14907
|
+
};
|
|
14908
|
+
var __vue2_script$4 = {
|
|
14909
|
+
name: "VPopperWrapper",
|
|
14910
|
+
components: {
|
|
14911
|
+
Popper: PrivatePopper(),
|
|
14912
|
+
PopperContent: PrivatePopperContent
|
|
14913
|
+
},
|
|
14914
|
+
mixins: [
|
|
14915
|
+
PrivatePopperMethods,
|
|
14916
|
+
PrivateThemeClass
|
|
14917
|
+
],
|
|
14918
|
+
inheritAttrs: false,
|
|
14919
|
+
props: {
|
|
14920
|
+
theme: {
|
|
14921
|
+
type: String,
|
|
14922
|
+
default() {
|
|
14923
|
+
return this.$options.vPopperTheme;
|
|
14924
|
+
}
|
|
14925
|
+
}
|
|
14926
|
+
},
|
|
14927
|
+
methods: {
|
|
14928
|
+
getTargetNodes() {
|
|
14929
|
+
return Array.from(this.$refs.reference.children).filter((node) => node !== this.$refs.popperContent.$el);
|
|
14930
|
+
}
|
|
14931
|
+
}
|
|
14932
|
+
};
|
|
14933
|
+
var render$1 = function() {
|
|
14934
|
+
var _vm = this;
|
|
14935
|
+
var _h = _vm.$createElement;
|
|
14936
|
+
var _c = _vm._self._c || _h;
|
|
14937
|
+
return _c("Popper", _vm._g(_vm._b({ ref: "popper", attrs: { "theme": _vm.theme, "target-nodes": _vm.getTargetNodes, "reference-node": function() {
|
|
14938
|
+
return _vm.$refs.reference;
|
|
14939
|
+
}, "popper-node": function() {
|
|
14940
|
+
return _vm.$refs.popperContent.$el;
|
|
14941
|
+
} }, scopedSlots: _vm._u([{ key: "default", fn: function(ref) {
|
|
14942
|
+
var popperId = ref.popperId;
|
|
14943
|
+
var isShown = ref.isShown;
|
|
14944
|
+
var shouldMountContent = ref.shouldMountContent;
|
|
14945
|
+
var skipTransition = ref.skipTransition;
|
|
14946
|
+
var autoHide = ref.autoHide;
|
|
14947
|
+
var show = ref.show;
|
|
14948
|
+
var hide = ref.hide;
|
|
14949
|
+
var handleResize = ref.handleResize;
|
|
14950
|
+
var onResize = ref.onResize;
|
|
14951
|
+
var classes = ref.classes;
|
|
14952
|
+
var result = ref.result;
|
|
14953
|
+
return [_c("div", { ref: "reference", staticClass: "v-popper", class: [
|
|
14954
|
+
_vm.themeClass,
|
|
14955
|
+
{
|
|
14956
|
+
"v-popper--shown": isShown
|
|
14957
|
+
}
|
|
14958
|
+
] }, [_vm._t("default", null, { "shown": isShown, "show": show, "hide": hide }), _c("PopperContent", { ref: "popperContent", attrs: { "popper-id": popperId, "theme": _vm.theme, "shown": isShown, "mounted": shouldMountContent, "skip-transition": skipTransition, "auto-hide": autoHide, "handle-resize": handleResize, "classes": classes, "result": result }, on: { "hide": hide, "resize": onResize } }, [_vm._t("popper", null, { "shown": isShown, "hide": hide })], 2)], 2)];
|
|
14959
|
+
} }], null, true) }, "Popper", _vm.$attrs, false), _vm.$listeners));
|
|
14960
|
+
};
|
|
14961
|
+
var staticRenderFns$1 = [];
|
|
14962
|
+
const __cssModules$4 = {};
|
|
14963
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$1, staticRenderFns$1, false, __vue2_injectStyles$4, null, null, null);
|
|
14964
|
+
function __vue2_injectStyles$4(context) {
|
|
14965
|
+
for (let o in __cssModules$4) {
|
|
14966
|
+
this[o] = __cssModules$4[o];
|
|
14967
|
+
}
|
|
14968
|
+
}
|
|
14969
|
+
var PrivatePopperWrapper = /* @__PURE__ */ function() {
|
|
14970
|
+
return __component__$4.exports;
|
|
14971
|
+
}();
|
|
14972
|
+
var __vue2_script$3 = __spreadProps(__spreadValues({}, PrivatePopperWrapper), {
|
|
14973
|
+
name: "VDropdown",
|
|
14974
|
+
vPopperTheme: "dropdown"
|
|
14975
|
+
});
|
|
14976
|
+
var Dropdown_vue_vue_type_style_index_0_lang = "";
|
|
14977
|
+
let __vue2_render$2, __vue2_staticRenderFns$2;
|
|
14978
|
+
const __cssModules$3 = {};
|
|
14979
|
+
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, __vue2_render$2, __vue2_staticRenderFns$2, false, __vue2_injectStyles$3, null, null, null);
|
|
14980
|
+
function __vue2_injectStyles$3(context) {
|
|
14981
|
+
for (let o in __cssModules$3) {
|
|
14982
|
+
this[o] = __cssModules$3[o];
|
|
14983
|
+
}
|
|
14984
|
+
}
|
|
14985
|
+
var PrivateDropdown = /* @__PURE__ */ function() {
|
|
14986
|
+
return __component__$3.exports;
|
|
14987
|
+
}();
|
|
14988
|
+
var __vue2_script$2 = __spreadProps(__spreadValues({}, PrivatePopperWrapper), {
|
|
14989
|
+
name: "VMenu",
|
|
14990
|
+
vPopperTheme: "menu"
|
|
14991
|
+
});
|
|
14992
|
+
let __vue2_render$1, __vue2_staticRenderFns$1;
|
|
14993
|
+
const __cssModules$2 = {};
|
|
14994
|
+
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, __vue2_render$1, __vue2_staticRenderFns$1, false, __vue2_injectStyles$2, null, null, null);
|
|
14995
|
+
function __vue2_injectStyles$2(context) {
|
|
14996
|
+
for (let o in __cssModules$2) {
|
|
14997
|
+
this[o] = __cssModules$2[o];
|
|
14998
|
+
}
|
|
14999
|
+
}
|
|
15000
|
+
var PrivateMenu = /* @__PURE__ */ function() {
|
|
15001
|
+
return __component__$2.exports;
|
|
15002
|
+
}();
|
|
15003
|
+
var __vue2_script$1 = __spreadProps(__spreadValues({}, PrivatePopperWrapper), {
|
|
15004
|
+
name: "VTooltip",
|
|
15005
|
+
vPopperTheme: "tooltip"
|
|
15006
|
+
});
|
|
15007
|
+
var Tooltip_vue_vue_type_style_index_0_lang = "";
|
|
15008
|
+
let __vue2_render, __vue2_staticRenderFns;
|
|
15009
|
+
const __cssModules$1 = {};
|
|
15010
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles$1, null, null, null);
|
|
15011
|
+
function __vue2_injectStyles$1(context) {
|
|
15012
|
+
for (let o in __cssModules$1) {
|
|
15013
|
+
this[o] = __cssModules$1[o];
|
|
15014
|
+
}
|
|
15015
|
+
}
|
|
15016
|
+
var PrivateTooltip = /* @__PURE__ */ function() {
|
|
15017
|
+
return __component__$1.exports;
|
|
15018
|
+
}();
|
|
15019
|
+
var __vue2_script = {
|
|
15020
|
+
name: "VTooltipDirective",
|
|
15021
|
+
components: {
|
|
15022
|
+
Popper: PrivatePopper(),
|
|
15023
|
+
PopperContent: PrivatePopperContent
|
|
15024
|
+
},
|
|
15025
|
+
mixins: [
|
|
15026
|
+
PrivatePopperMethods
|
|
15027
|
+
],
|
|
15028
|
+
inheritAttrs: false,
|
|
15029
|
+
props: {
|
|
15030
|
+
theme: {
|
|
15031
|
+
type: String,
|
|
15032
|
+
default: "tooltip"
|
|
15033
|
+
},
|
|
15034
|
+
html: {
|
|
15035
|
+
type: Boolean,
|
|
15036
|
+
default() {
|
|
15037
|
+
return getDefaultConfig(this.theme, "html");
|
|
15038
|
+
}
|
|
15039
|
+
},
|
|
15040
|
+
content: {
|
|
15041
|
+
type: [String, Number, Function],
|
|
15042
|
+
default: null
|
|
15043
|
+
},
|
|
15044
|
+
loadingContent: {
|
|
15045
|
+
type: String,
|
|
15046
|
+
default() {
|
|
15047
|
+
return getDefaultConfig(this.theme, "loadingContent");
|
|
15048
|
+
}
|
|
15049
|
+
}
|
|
15050
|
+
},
|
|
15051
|
+
data() {
|
|
15052
|
+
return {
|
|
15053
|
+
asyncContent: null
|
|
15054
|
+
};
|
|
15055
|
+
},
|
|
15056
|
+
computed: {
|
|
15057
|
+
isContentAsync() {
|
|
15058
|
+
return typeof this.content === "function";
|
|
15059
|
+
},
|
|
15060
|
+
loading() {
|
|
15061
|
+
return this.isContentAsync && this.asyncContent == null;
|
|
15062
|
+
},
|
|
15063
|
+
finalContent() {
|
|
15064
|
+
if (this.isContentAsync) {
|
|
15065
|
+
return this.loading ? this.loadingContent : this.asyncContent;
|
|
15066
|
+
}
|
|
15067
|
+
return this.content;
|
|
15068
|
+
}
|
|
15069
|
+
},
|
|
15070
|
+
watch: {
|
|
15071
|
+
content: {
|
|
15072
|
+
handler() {
|
|
15073
|
+
this.fetchContent(true);
|
|
15074
|
+
},
|
|
15075
|
+
immediate: true
|
|
15076
|
+
},
|
|
15077
|
+
async finalContent(value) {
|
|
15078
|
+
await this.$nextTick();
|
|
15079
|
+
this.$refs.popper.onResize();
|
|
15080
|
+
}
|
|
15081
|
+
},
|
|
15082
|
+
created() {
|
|
15083
|
+
this.$_fetchId = 0;
|
|
15084
|
+
},
|
|
15085
|
+
methods: {
|
|
15086
|
+
fetchContent(force) {
|
|
15087
|
+
if (typeof this.content === "function" && this.$_isShown && (force || !this.$_loading && this.asyncContent == null)) {
|
|
15088
|
+
this.asyncContent = null;
|
|
15089
|
+
this.$_loading = true;
|
|
15090
|
+
const fetchId = ++this.$_fetchId;
|
|
15091
|
+
const result = this.content(this);
|
|
15092
|
+
if (result.then) {
|
|
15093
|
+
result.then((res) => this.onResult(fetchId, res));
|
|
15094
|
+
} else {
|
|
15095
|
+
this.onResult(fetchId, result);
|
|
15096
|
+
}
|
|
15097
|
+
}
|
|
15098
|
+
},
|
|
15099
|
+
onResult(fetchId, result) {
|
|
15100
|
+
if (fetchId !== this.$_fetchId)
|
|
15101
|
+
return;
|
|
15102
|
+
this.$_loading = false;
|
|
15103
|
+
this.asyncContent = result;
|
|
15104
|
+
},
|
|
15105
|
+
onShow() {
|
|
15106
|
+
this.$_isShown = true;
|
|
15107
|
+
this.fetchContent();
|
|
15108
|
+
},
|
|
15109
|
+
onHide() {
|
|
15110
|
+
this.$_isShown = false;
|
|
15111
|
+
}
|
|
15112
|
+
}
|
|
15113
|
+
};
|
|
15114
|
+
var render = function() {
|
|
15115
|
+
var _vm = this;
|
|
15116
|
+
var _h = _vm.$createElement;
|
|
15117
|
+
var _c = _vm._self._c || _h;
|
|
15118
|
+
return _c("Popper", _vm._g(_vm._b({ ref: "popper", attrs: { "theme": _vm.theme, "popper-node": function() {
|
|
15119
|
+
return _vm.$refs.popperContent.$el;
|
|
15120
|
+
} }, on: { "apply-show": _vm.onShow, "apply-hide": _vm.onHide }, scopedSlots: _vm._u([{ key: "default", fn: function(ref) {
|
|
15121
|
+
var popperId = ref.popperId;
|
|
15122
|
+
var isShown = ref.isShown;
|
|
15123
|
+
var shouldMountContent = ref.shouldMountContent;
|
|
15124
|
+
var skipTransition = ref.skipTransition;
|
|
15125
|
+
var autoHide = ref.autoHide;
|
|
15126
|
+
var hide = ref.hide;
|
|
15127
|
+
var handleResize = ref.handleResize;
|
|
15128
|
+
var onResize = ref.onResize;
|
|
15129
|
+
var classes = ref.classes;
|
|
15130
|
+
var result = ref.result;
|
|
15131
|
+
return [_c("PopperContent", { ref: "popperContent", class: {
|
|
15132
|
+
"v-popper--tooltip-loading": _vm.loading
|
|
15133
|
+
}, attrs: { "popper-id": popperId, "theme": _vm.theme, "shown": isShown, "mounted": shouldMountContent, "skip-transition": skipTransition, "auto-hide": autoHide, "handle-resize": handleResize, "classes": classes, "result": result }, on: { "hide": hide, "resize": onResize } }, [_vm.html ? _c("div", { domProps: { "innerHTML": _vm._s(_vm.finalContent) } }) : _c("div", { domProps: { "textContent": _vm._s(_vm.finalContent) } })])];
|
|
15134
|
+
} }]) }, "Popper", _vm.$attrs, false), _vm.$listeners));
|
|
15135
|
+
};
|
|
15136
|
+
var staticRenderFns = [];
|
|
15137
|
+
const __cssModules = {};
|
|
15138
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
|
|
15139
|
+
function __vue2_injectStyles(context) {
|
|
15140
|
+
for (let o in __cssModules) {
|
|
15141
|
+
this[o] = __cssModules[o];
|
|
15142
|
+
}
|
|
15143
|
+
}
|
|
15144
|
+
var PrivateTooltipDirective = /* @__PURE__ */ function() {
|
|
15145
|
+
return __component__.exports;
|
|
15146
|
+
}();
|
|
15147
|
+
const TARGET_CLASS = "v-popper--has-tooltip";
|
|
15148
|
+
function getPlacement(options2, modifiers) {
|
|
15149
|
+
let result = options2.placement;
|
|
15150
|
+
if (!result && modifiers) {
|
|
15151
|
+
for (const pos of placements) {
|
|
15152
|
+
if (modifiers[pos]) {
|
|
15153
|
+
result = pos;
|
|
15154
|
+
}
|
|
15155
|
+
}
|
|
15156
|
+
}
|
|
15157
|
+
if (!result) {
|
|
15158
|
+
result = getDefaultConfig(options2.theme || "tooltip", "placement");
|
|
15159
|
+
}
|
|
15160
|
+
return result;
|
|
15161
|
+
}
|
|
15162
|
+
function getOptions(el, value, modifiers) {
|
|
15163
|
+
let options2;
|
|
15164
|
+
const type = typeof value;
|
|
15165
|
+
if (type === "string") {
|
|
15166
|
+
options2 = { content: value };
|
|
15167
|
+
} else if (value && type === "object") {
|
|
15168
|
+
options2 = value;
|
|
15169
|
+
} else {
|
|
15170
|
+
options2 = { content: false };
|
|
15171
|
+
}
|
|
15172
|
+
options2.placement = getPlacement(options2, modifiers);
|
|
15173
|
+
options2.targetNodes = () => [el];
|
|
15174
|
+
options2.referenceNode = () => el;
|
|
15175
|
+
return options2;
|
|
15176
|
+
}
|
|
15177
|
+
function createTooltip(el, value, modifiers) {
|
|
15178
|
+
const options2 = getOptions(el, value, modifiers);
|
|
15179
|
+
const tooltipApp = el.$_popper = new (external_commonjs_vue_commonjs2_vue_root_Vue_default())({
|
|
15180
|
+
mixins: [
|
|
15181
|
+
PrivatePopperMethods
|
|
15182
|
+
],
|
|
15183
|
+
data() {
|
|
15184
|
+
return {
|
|
15185
|
+
options: options2
|
|
15186
|
+
};
|
|
15187
|
+
},
|
|
15188
|
+
render(h) {
|
|
15189
|
+
const _a = this.options, {
|
|
15190
|
+
theme,
|
|
15191
|
+
html,
|
|
15192
|
+
content,
|
|
15193
|
+
loadingContent
|
|
15194
|
+
} = _a, otherOptions = __objRest(_a, [
|
|
15195
|
+
"theme",
|
|
15196
|
+
"html",
|
|
15197
|
+
"content",
|
|
15198
|
+
"loadingContent"
|
|
15199
|
+
]);
|
|
15200
|
+
return h(PrivateTooltipDirective, {
|
|
15201
|
+
props: {
|
|
15202
|
+
theme,
|
|
15203
|
+
html,
|
|
15204
|
+
content,
|
|
15205
|
+
loadingContent
|
|
15206
|
+
},
|
|
15207
|
+
attrs: otherOptions,
|
|
15208
|
+
ref: "popper"
|
|
15209
|
+
});
|
|
15210
|
+
},
|
|
15211
|
+
devtools: {
|
|
15212
|
+
hide: true
|
|
15213
|
+
}
|
|
15214
|
+
});
|
|
15215
|
+
const mountTarget = document.createElement("div");
|
|
15216
|
+
document.body.appendChild(mountTarget);
|
|
15217
|
+
tooltipApp.$mount(mountTarget);
|
|
15218
|
+
if (el.classList) {
|
|
15219
|
+
el.classList.add(TARGET_CLASS);
|
|
15220
|
+
}
|
|
15221
|
+
return tooltipApp;
|
|
15222
|
+
}
|
|
15223
|
+
function destroyTooltip(el) {
|
|
15224
|
+
if (el.$_popper) {
|
|
15225
|
+
el.$_popper.$destroy();
|
|
15226
|
+
delete el.$_popper;
|
|
15227
|
+
delete el.$_popperOldShown;
|
|
15228
|
+
}
|
|
15229
|
+
if (el.classList) {
|
|
15230
|
+
el.classList.remove(TARGET_CLASS);
|
|
15231
|
+
}
|
|
15232
|
+
}
|
|
15233
|
+
function bind(el, { value, oldValue, modifiers }) {
|
|
15234
|
+
const options2 = getOptions(el, value, modifiers);
|
|
15235
|
+
if (!options2.content || getDefaultConfig(options2.theme || "tooltip", "disabled")) {
|
|
15236
|
+
destroyTooltip(el);
|
|
15237
|
+
} else {
|
|
15238
|
+
let tooltipApp;
|
|
15239
|
+
if (el.$_popper) {
|
|
15240
|
+
tooltipApp = el.$_popper;
|
|
15241
|
+
tooltipApp.options = options2;
|
|
15242
|
+
} else {
|
|
15243
|
+
tooltipApp = createTooltip(el, value, modifiers);
|
|
15244
|
+
}
|
|
15245
|
+
if (typeof value.shown !== "undefined" && value.shown !== el.$_popperOldShown) {
|
|
15246
|
+
el.$_popperOldShown = value.shown;
|
|
15247
|
+
value.shown ? tooltipApp.show() : tooltipApp.hide();
|
|
15248
|
+
}
|
|
15249
|
+
}
|
|
15250
|
+
}
|
|
15251
|
+
var PrivateVTooltip = {
|
|
15252
|
+
bind,
|
|
15253
|
+
update: bind,
|
|
15254
|
+
unbind(el) {
|
|
15255
|
+
destroyTooltip(el);
|
|
15256
|
+
}
|
|
15257
|
+
};
|
|
15258
|
+
function addListeners(el) {
|
|
15259
|
+
el.addEventListener("click", onClick);
|
|
15260
|
+
el.addEventListener("touchstart", onTouchStart, supportsPassive ? {
|
|
15261
|
+
passive: true
|
|
15262
|
+
} : false);
|
|
15263
|
+
}
|
|
15264
|
+
function removeListeners(el) {
|
|
15265
|
+
el.removeEventListener("click", onClick);
|
|
15266
|
+
el.removeEventListener("touchstart", onTouchStart);
|
|
15267
|
+
el.removeEventListener("touchend", onTouchEnd);
|
|
15268
|
+
el.removeEventListener("touchcancel", onTouchCancel);
|
|
15269
|
+
}
|
|
15270
|
+
function onClick(event) {
|
|
15271
|
+
const el = event.currentTarget;
|
|
15272
|
+
event.closePopover = !el.$_vclosepopover_touch;
|
|
15273
|
+
event.closeAllPopover = el.$_closePopoverModifiers && !!el.$_closePopoverModifiers.all;
|
|
15274
|
+
}
|
|
15275
|
+
function onTouchStart(event) {
|
|
15276
|
+
if (event.changedTouches.length === 1) {
|
|
15277
|
+
const el = event.currentTarget;
|
|
15278
|
+
el.$_vclosepopover_touch = true;
|
|
15279
|
+
const touch = event.changedTouches[0];
|
|
15280
|
+
el.$_vclosepopover_touchPoint = touch;
|
|
15281
|
+
el.addEventListener("touchend", onTouchEnd);
|
|
15282
|
+
el.addEventListener("touchcancel", onTouchCancel);
|
|
15283
|
+
}
|
|
15284
|
+
}
|
|
15285
|
+
function onTouchEnd(event) {
|
|
15286
|
+
const el = event.currentTarget;
|
|
15287
|
+
el.$_vclosepopover_touch = false;
|
|
15288
|
+
if (event.changedTouches.length === 1) {
|
|
15289
|
+
const touch = event.changedTouches[0];
|
|
15290
|
+
const firstTouch = el.$_vclosepopover_touchPoint;
|
|
15291
|
+
event.closePopover = Math.abs(touch.screenY - firstTouch.screenY) < 20 && Math.abs(touch.screenX - firstTouch.screenX) < 20;
|
|
15292
|
+
event.closeAllPopover = el.$_closePopoverModifiers && !!el.$_closePopoverModifiers.all;
|
|
15293
|
+
}
|
|
15294
|
+
}
|
|
15295
|
+
function onTouchCancel(event) {
|
|
15296
|
+
const el = event.currentTarget;
|
|
15297
|
+
el.$_vclosepopover_touch = false;
|
|
15298
|
+
}
|
|
15299
|
+
var PrivateVClosePopper = {
|
|
15300
|
+
bind(el, { value, modifiers }) {
|
|
15301
|
+
el.$_closePopoverModifiers = modifiers;
|
|
15302
|
+
if (typeof value === "undefined" || value) {
|
|
15303
|
+
addListeners(el);
|
|
15304
|
+
}
|
|
15305
|
+
},
|
|
15306
|
+
update(el, { value, oldValue, modifiers }) {
|
|
15307
|
+
el.$_closePopoverModifiers = modifiers;
|
|
15308
|
+
if (value !== oldValue) {
|
|
15309
|
+
if (typeof value === "undefined" || value) {
|
|
15310
|
+
addListeners(el);
|
|
15311
|
+
} else {
|
|
15312
|
+
removeListeners(el);
|
|
15313
|
+
}
|
|
15314
|
+
}
|
|
15315
|
+
},
|
|
15316
|
+
unbind(el) {
|
|
15317
|
+
removeListeners(el);
|
|
15318
|
+
}
|
|
15319
|
+
};
|
|
15320
|
+
const options = (/* unused pure expression or super */ null && (config));
|
|
15321
|
+
const VTooltip = (/* unused pure expression or super */ null && (PrivateVTooltip));
|
|
15322
|
+
const VClosePopper = (/* unused pure expression or super */ null && (PrivateVClosePopper));
|
|
15323
|
+
const Dropdown = (/* unused pure expression or super */ null && (PrivateDropdown));
|
|
15324
|
+
const Menu = (/* unused pure expression or super */ null && (PrivateMenu));
|
|
15325
|
+
const Popper = (/* unused pure expression or super */ null && (PrivatePopper));
|
|
15326
|
+
const PopperContent = (/* unused pure expression or super */ null && (PrivatePopperContent));
|
|
15327
|
+
const PopperMethods = (/* unused pure expression or super */ null && (PrivatePopperMethods));
|
|
15328
|
+
const PopperWrapper = (/* unused pure expression or super */ null && (PrivatePopperWrapper));
|
|
15329
|
+
const ThemeClass = (/* unused pure expression or super */ null && (PrivateThemeClass));
|
|
15330
|
+
const Tooltip = (/* unused pure expression or super */ null && (PrivateTooltip));
|
|
15331
|
+
const TooltipDirective = (/* unused pure expression or super */ null && (PrivateTooltipDirective));
|
|
15332
|
+
function install(app, options2 = {}) {
|
|
15333
|
+
if (app.$_vTooltipInstalled)
|
|
15334
|
+
return;
|
|
15335
|
+
app.$_vTooltipInstalled = true;
|
|
15336
|
+
floating_vue_es_assign(config, options2);
|
|
15337
|
+
app.directive("tooltip", PrivateVTooltip);
|
|
15338
|
+
app.directive("close-popper", PrivateVClosePopper);
|
|
15339
|
+
app.component("v-tooltip", PrivateTooltip);
|
|
15340
|
+
app.component("VTooltip", PrivateTooltip);
|
|
15341
|
+
app.component("v-dropdown", PrivateDropdown);
|
|
15342
|
+
app.component("VDropdown", PrivateDropdown);
|
|
15343
|
+
app.component("v-menu", PrivateMenu);
|
|
15344
|
+
app.component("VMenu", PrivateMenu);
|
|
15345
|
+
}
|
|
15346
|
+
const floating_vue_es_plugin = {
|
|
15347
|
+
version: "1.0.0-beta.17",
|
|
15348
|
+
install,
|
|
15349
|
+
options: config
|
|
15350
|
+
};
|
|
15351
|
+
let GlobalVue = null;
|
|
15352
|
+
if (typeof window !== "undefined") {
|
|
15353
|
+
GlobalVue = window.Vue;
|
|
15354
|
+
} else if (typeof __webpack_require__.g !== "undefined") {
|
|
15355
|
+
GlobalVue = __webpack_require__.g.Vue;
|
|
15356
|
+
}
|
|
15357
|
+
if (GlobalVue) {
|
|
15358
|
+
GlobalVue.use(floating_vue_es_plugin);
|
|
15359
|
+
}
|
|
15360
|
+
|
|
15361
|
+
|
|
11960
15362
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/atoms/wt-avatar/wt-avatar.vue?vue&type=template&id=49b0d3b8&scoped=true&
|
|
11961
|
-
var
|
|
11962
|
-
var
|
|
15363
|
+
var wt_avatarvue_type_template_id_49b0d3b8_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-avatar",class:[("wt-avatar--size-" + _vm.size)]},[(_vm.badge)?_c('wt-badge',{attrs:{"color-variable":_vm.badgeColorVar}}):_vm._e(),_c('img',{staticClass:"wt-avatar__img",attrs:{"src":__webpack_require__(1578),"alt":"avatar"}})],1)}
|
|
15364
|
+
var wt_avatarvue_type_template_id_49b0d3b8_scoped_true_staticRenderFns = []
|
|
11963
15365
|
|
|
11964
15366
|
|
|
11965
15367
|
;// CONCATENATED MODULE: ./src/components/atoms/wt-avatar/wt-avatar.vue?vue&type=template&id=49b0d3b8&scoped=true&
|
|
@@ -12047,7 +15449,7 @@ var AbstractUserStatus = Object.freeze({
|
|
|
12047
15449
|
// This module is a runtime utility for cleaner component module output and will
|
|
12048
15450
|
// be included in the final webpack user bundle.
|
|
12049
15451
|
|
|
12050
|
-
function
|
|
15452
|
+
function componentNormalizer_normalizeComponent (
|
|
12051
15453
|
scriptExports,
|
|
12052
15454
|
render,
|
|
12053
15455
|
staticRenderFns,
|
|
@@ -12149,10 +15551,10 @@ function normalizeComponent (
|
|
|
12149
15551
|
|
|
12150
15552
|
/* normalize component */
|
|
12151
15553
|
|
|
12152
|
-
var component =
|
|
15554
|
+
var component = componentNormalizer_normalizeComponent(
|
|
12153
15555
|
wt_avatar_wt_avatarvue_type_script_lang_js_,
|
|
12154
|
-
|
|
12155
|
-
|
|
15556
|
+
wt_avatarvue_type_template_id_49b0d3b8_scoped_true_render,
|
|
15557
|
+
wt_avatarvue_type_template_id_49b0d3b8_scoped_true_staticRenderFns,
|
|
12156
15558
|
false,
|
|
12157
15559
|
null,
|
|
12158
15560
|
"49b0d3b8",
|
|
@@ -12205,7 +15607,7 @@ var wt_badgevue_type_template_id_94557de2_scoped_true_staticRenderFns = []
|
|
|
12205
15607
|
|
|
12206
15608
|
/* normalize component */
|
|
12207
15609
|
|
|
12208
|
-
var wt_badge_component =
|
|
15610
|
+
var wt_badge_component = componentNormalizer_normalizeComponent(
|
|
12209
15611
|
wt_badge_wt_badgevue_type_script_lang_js_,
|
|
12210
15612
|
wt_badgevue_type_template_id_94557de2_scoped_true_render,
|
|
12211
15613
|
wt_badgevue_type_template_id_94557de2_scoped_true_staticRenderFns,
|
|
@@ -12295,7 +15697,7 @@ var es_array_concat = __webpack_require__(2222);
|
|
|
12295
15697
|
|
|
12296
15698
|
/* normalize component */
|
|
12297
15699
|
|
|
12298
|
-
var wt_icon_component =
|
|
15700
|
+
var wt_icon_component = componentNormalizer_normalizeComponent(
|
|
12299
15701
|
wt_icon_wt_iconvue_type_script_lang_js_,
|
|
12300
15702
|
wt_iconvue_type_template_id_7b466648_scoped_true_render,
|
|
12301
15703
|
wt_iconvue_type_template_id_7b466648_scoped_true_staticRenderFns,
|
|
@@ -12377,7 +15779,7 @@ var es_number_constructor = __webpack_require__(9653);
|
|
|
12377
15779
|
|
|
12378
15780
|
/* normalize component */
|
|
12379
15781
|
|
|
12380
|
-
var wt_indicator_component =
|
|
15782
|
+
var wt_indicator_component = componentNormalizer_normalizeComponent(
|
|
12381
15783
|
wt_indicator_wt_indicatorvue_type_script_lang_js_,
|
|
12382
15784
|
wt_indicatorvue_type_template_id_b50e50a2_scoped_true_render,
|
|
12383
15785
|
wt_indicatorvue_type_template_id_b50e50a2_scoped_true_staticRenderFns,
|
|
@@ -12433,7 +15835,7 @@ var wt_input_infovue_type_template_id_7743f2f2_scoped_true_staticRenderFns = []
|
|
|
12433
15835
|
|
|
12434
15836
|
/* normalize component */
|
|
12435
15837
|
|
|
12436
|
-
var wt_input_info_component =
|
|
15838
|
+
var wt_input_info_component = componentNormalizer_normalizeComponent(
|
|
12437
15839
|
wt_input_info_wt_input_infovue_type_script_lang_js_,
|
|
12438
15840
|
wt_input_infovue_type_template_id_7743f2f2_scoped_true_render,
|
|
12439
15841
|
wt_input_infovue_type_template_id_7743f2f2_scoped_true_staticRenderFns,
|
|
@@ -12557,7 +15959,7 @@ var es_array_includes = __webpack_require__(6699);
|
|
|
12557
15959
|
|
|
12558
15960
|
/* normalize component */
|
|
12559
15961
|
|
|
12560
|
-
var wt_button_component =
|
|
15962
|
+
var wt_button_component = componentNormalizer_normalizeComponent(
|
|
12561
15963
|
wt_button_wt_buttonvue_type_script_lang_js_,
|
|
12562
15964
|
wt_buttonvue_type_template_id_427095ff_scoped_true_render,
|
|
12563
15965
|
wt_buttonvue_type_template_id_427095ff_scoped_true_staticRenderFns,
|
|
@@ -12608,7 +16010,7 @@ var wt_chipvue_type_template_id_7d722038_scoped_true_staticRenderFns = []
|
|
|
12608
16010
|
|
|
12609
16011
|
/* normalize component */
|
|
12610
16012
|
|
|
12611
|
-
var wt_chip_component =
|
|
16013
|
+
var wt_chip_component = componentNormalizer_normalizeComponent(
|
|
12612
16014
|
wt_chip_wt_chipvue_type_script_lang_js_,
|
|
12613
16015
|
wt_chipvue_type_template_id_7d722038_scoped_true_render,
|
|
12614
16016
|
wt_chipvue_type_template_id_7d722038_scoped_true_staticRenderFns,
|
|
@@ -12649,7 +16051,7 @@ var wt_dividervue_type_template_id_10fa1714_scoped_true_staticRenderFns = []
|
|
|
12649
16051
|
|
|
12650
16052
|
/* normalize component */
|
|
12651
16053
|
|
|
12652
|
-
var wt_divider_component =
|
|
16054
|
+
var wt_divider_component = componentNormalizer_normalizeComponent(
|
|
12653
16055
|
wt_divider_wt_dividervue_type_script_lang_js_,
|
|
12654
16056
|
wt_dividervue_type_template_id_10fa1714_scoped_true_render,
|
|
12655
16057
|
wt_dividervue_type_template_id_10fa1714_scoped_true_staticRenderFns,
|
|
@@ -12711,7 +16113,7 @@ var wt_tooltipvue_type_template_id_1bd9146d_scoped_true_staticRenderFns = []
|
|
|
12711
16113
|
|
|
12712
16114
|
/* normalize component */
|
|
12713
16115
|
|
|
12714
|
-
var wt_tooltip_component =
|
|
16116
|
+
var wt_tooltip_component = componentNormalizer_normalizeComponent(
|
|
12715
16117
|
wt_tooltip_wt_tooltipvue_type_script_lang_js_,
|
|
12716
16118
|
wt_tooltipvue_type_template_id_1bd9146d_scoped_true_render,
|
|
12717
16119
|
wt_tooltipvue_type_template_id_1bd9146d_scoped_true_staticRenderFns,
|
|
@@ -12805,7 +16207,7 @@ var wt_rounded_actionvue_type_template_id_6abe1700_scoped_true_staticRenderFns =
|
|
|
12805
16207
|
|
|
12806
16208
|
/* normalize component */
|
|
12807
16209
|
|
|
12808
|
-
var wt_rounded_action_component =
|
|
16210
|
+
var wt_rounded_action_component = componentNormalizer_normalizeComponent(
|
|
12809
16211
|
wt_rounded_action_wt_rounded_actionvue_type_script_lang_js_,
|
|
12810
16212
|
wt_rounded_actionvue_type_template_id_6abe1700_scoped_true_render,
|
|
12811
16213
|
wt_rounded_actionvue_type_template_id_6abe1700_scoped_true_staticRenderFns,
|
|
@@ -12863,7 +16265,7 @@ var wt_loader_smvue_type_template_id_030f3ed0_scoped_true_staticRenderFns = []
|
|
|
12863
16265
|
|
|
12864
16266
|
/* normalize component */
|
|
12865
16267
|
|
|
12866
|
-
var wt_loader_sm_component =
|
|
16268
|
+
var wt_loader_sm_component = componentNormalizer_normalizeComponent(
|
|
12867
16269
|
_internals_wt_loader_smvue_type_script_lang_js_,
|
|
12868
16270
|
wt_loader_smvue_type_template_id_030f3ed0_scoped_true_render,
|
|
12869
16271
|
wt_loader_smvue_type_template_id_030f3ed0_scoped_true_staticRenderFns,
|
|
@@ -12906,7 +16308,7 @@ var wt_loader_mdvue_type_template_id_4cf61586_scoped_true_staticRenderFns = []
|
|
|
12906
16308
|
|
|
12907
16309
|
/* normalize component */
|
|
12908
16310
|
|
|
12909
|
-
var wt_loader_md_component =
|
|
16311
|
+
var wt_loader_md_component = componentNormalizer_normalizeComponent(
|
|
12910
16312
|
_internals_wt_loader_mdvue_type_script_lang_js_,
|
|
12911
16313
|
wt_loader_mdvue_type_template_id_4cf61586_scoped_true_render,
|
|
12912
16314
|
wt_loader_mdvue_type_template_id_4cf61586_scoped_true_staticRenderFns,
|
|
@@ -12955,7 +16357,7 @@ var wt_loader_md_component = normalizeComponent(
|
|
|
12955
16357
|
|
|
12956
16358
|
/* normalize component */
|
|
12957
16359
|
;
|
|
12958
|
-
var wt_loader_component =
|
|
16360
|
+
var wt_loader_component = componentNormalizer_normalizeComponent(
|
|
12959
16361
|
wt_loader_wt_loadervue_type_script_lang_js_,
|
|
12960
16362
|
wt_loadervue_type_template_id_9bbe5b8c_scoped_true_render,
|
|
12961
16363
|
wt_loadervue_type_template_id_9bbe5b8c_scoped_true_staticRenderFns,
|
|
@@ -13025,7 +16427,7 @@ var wt_context_menuvue_type_template_id_23f9fa99_scoped_true_staticRenderFns = [
|
|
|
13025
16427
|
|
|
13026
16428
|
/* normalize component */
|
|
13027
16429
|
|
|
13028
|
-
var wt_context_menu_component =
|
|
16430
|
+
var wt_context_menu_component = componentNormalizer_normalizeComponent(
|
|
13029
16431
|
wt_context_menu_wt_context_menuvue_type_script_lang_js_,
|
|
13030
16432
|
wt_context_menuvue_type_template_id_23f9fa99_scoped_true_render,
|
|
13031
16433
|
wt_context_menuvue_type_template_id_23f9fa99_scoped_true_staticRenderFns,
|
|
@@ -13256,7 +16658,7 @@ var es_string_includes = __webpack_require__(2023);
|
|
|
13256
16658
|
|
|
13257
16659
|
/* normalize component */
|
|
13258
16660
|
|
|
13259
|
-
var wt_checkbox_component =
|
|
16661
|
+
var wt_checkbox_component = componentNormalizer_normalizeComponent(
|
|
13260
16662
|
wt_checkbox_wt_checkboxvue_type_script_lang_js_,
|
|
13261
16663
|
wt_checkboxvue_type_template_id_3460d02e_scoped_true_render,
|
|
13262
16664
|
wt_checkboxvue_type_template_id_3460d02e_scoped_true_staticRenderFns,
|
|
@@ -13672,7 +17074,7 @@ var makeDateUtils = function makeDateUtils(useUtc) {
|
|
|
13672
17074
|
var utils$1 = _objectSpread({}, utils) // eslint-disable-next-line
|
|
13673
17075
|
;
|
|
13674
17076
|
|
|
13675
|
-
var
|
|
17077
|
+
var vuejs_datepicker_esm_script = {
|
|
13676
17078
|
props: {
|
|
13677
17079
|
selectedDate: Date,
|
|
13678
17080
|
resetTypedDate: [Date],
|
|
@@ -13875,10 +17277,10 @@ function vuejs_datepicker_esm_normalizeComponent(template, style, script, scopeI
|
|
|
13875
17277
|
var normalizeComponent_1 = vuejs_datepicker_esm_normalizeComponent;
|
|
13876
17278
|
|
|
13877
17279
|
/* script */
|
|
13878
|
-
const
|
|
17280
|
+
const vuejs_datepicker_esm_vue_script_ = vuejs_datepicker_esm_script;
|
|
13879
17281
|
|
|
13880
17282
|
/* template */
|
|
13881
|
-
var
|
|
17283
|
+
var vuejs_datepicker_esm_vue_render_ = function() {
|
|
13882
17284
|
var _vm = this;
|
|
13883
17285
|
var _h = _vm.$createElement;
|
|
13884
17286
|
var _c = _vm._self._c || _h;
|
|
@@ -13970,17 +17372,17 @@ var __vue_render__ = function() {
|
|
|
13970
17372
|
2
|
|
13971
17373
|
)
|
|
13972
17374
|
};
|
|
13973
|
-
var
|
|
13974
|
-
|
|
17375
|
+
var vuejs_datepicker_esm_vue_staticRenderFns_ = [];
|
|
17376
|
+
vuejs_datepicker_esm_vue_render_._withStripped = true;
|
|
13975
17377
|
|
|
13976
17378
|
/* style */
|
|
13977
|
-
const
|
|
17379
|
+
const vuejs_datepicker_esm_vue_inject_styles_ = undefined;
|
|
13978
17380
|
/* scoped */
|
|
13979
|
-
const
|
|
17381
|
+
const vuejs_datepicker_esm_vue_scope_id_ = undefined;
|
|
13980
17382
|
/* module identifier */
|
|
13981
|
-
const
|
|
17383
|
+
const vuejs_datepicker_esm_vue_module_identifier_ = undefined;
|
|
13982
17384
|
/* functional template */
|
|
13983
|
-
const
|
|
17385
|
+
const vuejs_datepicker_esm_vue_is_functional_template_ = false;
|
|
13984
17386
|
/* style inject */
|
|
13985
17387
|
|
|
13986
17388
|
/* style inject SSR */
|
|
@@ -13988,12 +17390,12 @@ __vue_render__._withStripped = true;
|
|
|
13988
17390
|
|
|
13989
17391
|
|
|
13990
17392
|
var DateInput = normalizeComponent_1(
|
|
13991
|
-
{ render:
|
|
13992
|
-
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
17393
|
+
{ render: vuejs_datepicker_esm_vue_render_, staticRenderFns: vuejs_datepicker_esm_vue_staticRenderFns_ },
|
|
17394
|
+
vuejs_datepicker_esm_vue_inject_styles_,
|
|
17395
|
+
vuejs_datepicker_esm_vue_script_,
|
|
17396
|
+
vuejs_datepicker_esm_vue_scope_id_,
|
|
17397
|
+
vuejs_datepicker_esm_vue_is_functional_template_,
|
|
17398
|
+
vuejs_datepicker_esm_vue_module_identifier_,
|
|
13997
17399
|
undefined,
|
|
13998
17400
|
undefined
|
|
13999
17401
|
);
|
|
@@ -15828,7 +19230,7 @@ __vue_render__$4._withStripped = true;
|
|
|
15828
19230
|
|
|
15829
19231
|
/* normalize component */
|
|
15830
19232
|
|
|
15831
|
-
var wt_datepicker_component =
|
|
19233
|
+
var wt_datepicker_component = componentNormalizer_normalizeComponent(
|
|
15832
19234
|
wt_datepicker_wt_datepickervue_type_script_lang_js_,
|
|
15833
19235
|
wt_datepickervue_type_template_id_55e6d929_scoped_true_render,
|
|
15834
19236
|
wt_datepickervue_type_template_id_55e6d929_scoped_true_staticRenderFns,
|
|
@@ -16028,7 +19430,7 @@ var wt_datetimepickervue_type_template_id_2e6c604c_scoped_true_staticRenderFns =
|
|
|
16028
19430
|
|
|
16029
19431
|
/* normalize component */
|
|
16030
19432
|
|
|
16031
|
-
var wt_datetimepicker_component =
|
|
19433
|
+
var wt_datetimepicker_component = componentNormalizer_normalizeComponent(
|
|
16032
19434
|
wt_datetimepicker_wt_datetimepickervue_type_script_lang_js_,
|
|
16033
19435
|
wt_datetimepickervue_type_template_id_2e6c604c_scoped_true_render,
|
|
16034
19436
|
wt_datetimepickervue_type_template_id_2e6c604c_scoped_true_staticRenderFns,
|
|
@@ -16117,7 +19519,7 @@ var wt_icon_btnvue_type_template_id_fa414596_scoped_true_staticRenderFns = []
|
|
|
16117
19519
|
|
|
16118
19520
|
/* normalize component */
|
|
16119
19521
|
|
|
16120
|
-
var wt_icon_btn_component =
|
|
19522
|
+
var wt_icon_btn_component = componentNormalizer_normalizeComponent(
|
|
16121
19523
|
wt_icon_btn_wt_icon_btnvue_type_script_lang_js_,
|
|
16122
19524
|
wt_icon_btnvue_type_template_id_fa414596_scoped_true_render,
|
|
16123
19525
|
wt_icon_btnvue_type_template_id_fa414596_scoped_true_staticRenderFns,
|
|
@@ -16563,7 +19965,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
16563
19965
|
|
|
16564
19966
|
/* normalize component */
|
|
16565
19967
|
|
|
16566
|
-
var wt_input_component =
|
|
19968
|
+
var wt_input_component = componentNormalizer_normalizeComponent(
|
|
16567
19969
|
wt_input_wt_inputvue_type_script_lang_js_,
|
|
16568
19970
|
wt_inputvue_type_template_id_1b3a94f8_scoped_true_render,
|
|
16569
19971
|
wt_inputvue_type_template_id_1b3a94f8_scoped_true_staticRenderFns,
|
|
@@ -16649,7 +20051,7 @@ var wt_notificationvue_type_template_id_7981c292_scoped_true_staticRenderFns = [
|
|
|
16649
20051
|
|
|
16650
20052
|
/* normalize component */
|
|
16651
20053
|
|
|
16652
|
-
var wt_notification_component =
|
|
20054
|
+
var wt_notification_component = componentNormalizer_normalizeComponent(
|
|
16653
20055
|
wt_notification_wt_notificationvue_type_script_lang_js_,
|
|
16654
20056
|
wt_notificationvue_type_template_id_7981c292_scoped_true_render,
|
|
16655
20057
|
wt_notificationvue_type_template_id_7981c292_scoped_true_staticRenderFns,
|
|
@@ -16733,7 +20135,7 @@ var wt_popupvue_type_template_id_31f45e68_scoped_true_staticRenderFns = []
|
|
|
16733
20135
|
|
|
16734
20136
|
/* normalize component */
|
|
16735
20137
|
|
|
16736
|
-
var wt_popup_component =
|
|
20138
|
+
var wt_popup_component = componentNormalizer_normalizeComponent(
|
|
16737
20139
|
wt_popup_wt_popupvue_type_script_lang_js_,
|
|
16738
20140
|
wt_popupvue_type_template_id_31f45e68_scoped_true_render,
|
|
16739
20141
|
wt_popupvue_type_template_id_31f45e68_scoped_true_staticRenderFns,
|
|
@@ -16811,7 +20213,7 @@ var wt_progress_barvue_type_template_id_0645a925_scoped_true_staticRenderFns = [
|
|
|
16811
20213
|
|
|
16812
20214
|
/* normalize component */
|
|
16813
20215
|
|
|
16814
|
-
var wt_progress_bar_component =
|
|
20216
|
+
var wt_progress_bar_component = componentNormalizer_normalizeComponent(
|
|
16815
20217
|
wt_progress_bar_wt_progress_barvue_type_script_lang_js_,
|
|
16816
20218
|
wt_progress_barvue_type_template_id_0645a925_scoped_true_render,
|
|
16817
20219
|
wt_progress_barvue_type_template_id_0645a925_scoped_true_staticRenderFns,
|
|
@@ -16925,7 +20327,7 @@ var wt_radiovue_type_template_id_3fafcdf2_scoped_true_staticRenderFns = []
|
|
|
16925
20327
|
|
|
16926
20328
|
/* normalize component */
|
|
16927
20329
|
|
|
16928
|
-
var wt_radio_component =
|
|
20330
|
+
var wt_radio_component = componentNormalizer_normalizeComponent(
|
|
16929
20331
|
wt_radio_wt_radiovue_type_script_lang_js_,
|
|
16930
20332
|
wt_radiovue_type_template_id_3fafcdf2_scoped_true_render,
|
|
16931
20333
|
wt_radiovue_type_template_id_3fafcdf2_scoped_true_staticRenderFns,
|
|
@@ -17080,7 +20482,7 @@ var debounce = function debounce(method) {
|
|
|
17080
20482
|
|
|
17081
20483
|
/* normalize component */
|
|
17082
20484
|
|
|
17083
|
-
var wt_search_bar_component =
|
|
20485
|
+
var wt_search_bar_component = componentNormalizer_normalizeComponent(
|
|
17084
20486
|
wt_search_bar_wt_search_barvue_type_script_lang_js_,
|
|
17085
20487
|
wt_search_barvue_type_template_id_d775d3ca_scoped_true_render,
|
|
17086
20488
|
wt_search_barvue_type_template_id_d775d3ca_scoped_true_staticRenderFns,
|
|
@@ -17552,7 +20954,7 @@ function _asyncToGenerator(fn) {
|
|
|
17552
20954
|
var vue_multiselect_min = __webpack_require__(7907);
|
|
17553
20955
|
var vue_multiselect_min_default = /*#__PURE__*/__webpack_require__.n(vue_multiselect_min);
|
|
17554
20956
|
;// CONCATENATED MODULE: ./node_modules/vue-observe-visibility/dist/vue-observe-visibility.esm.js
|
|
17555
|
-
/* provided dependency */ var
|
|
20957
|
+
/* provided dependency */ var vue_observe_visibility_esm_console = __webpack_require__(5108);
|
|
17556
20958
|
function vue_observe_visibility_esm_typeof(obj) {
|
|
17557
20959
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
17558
20960
|
vue_observe_visibility_esm_typeof = function (obj) {
|
|
@@ -17779,12 +21181,12 @@ function () {
|
|
|
17779
21181
|
return VisibilityState;
|
|
17780
21182
|
}();
|
|
17781
21183
|
|
|
17782
|
-
function
|
|
21184
|
+
function vue_observe_visibility_esm_bind(el, _ref2, vnode) {
|
|
17783
21185
|
var value = _ref2.value;
|
|
17784
21186
|
if (!value) return;
|
|
17785
21187
|
|
|
17786
21188
|
if (typeof IntersectionObserver === 'undefined') {
|
|
17787
|
-
|
|
21189
|
+
vue_observe_visibility_esm_console.warn('[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill');
|
|
17788
21190
|
} else {
|
|
17789
21191
|
var state = new VisibilityState(el, value, vnode);
|
|
17790
21192
|
el._vue_visibilityState = state;
|
|
@@ -17805,7 +21207,7 @@ function update(el, _ref3, vnode) {
|
|
|
17805
21207
|
if (state) {
|
|
17806
21208
|
state.createObserver(value, vnode);
|
|
17807
21209
|
} else {
|
|
17808
|
-
|
|
21210
|
+
vue_observe_visibility_esm_bind(el, {
|
|
17809
21211
|
value: value
|
|
17810
21212
|
}, vnode);
|
|
17811
21213
|
}
|
|
@@ -17821,12 +21223,12 @@ function unbind(el) {
|
|
|
17821
21223
|
}
|
|
17822
21224
|
|
|
17823
21225
|
var ObserveVisibility = {
|
|
17824
|
-
bind:
|
|
21226
|
+
bind: vue_observe_visibility_esm_bind,
|
|
17825
21227
|
update: update,
|
|
17826
21228
|
unbind: unbind
|
|
17827
21229
|
};
|
|
17828
21230
|
|
|
17829
|
-
function
|
|
21231
|
+
function vue_observe_visibility_esm_install(Vue) {
|
|
17830
21232
|
Vue.directive('observe-visibility', ObserveVisibility);
|
|
17831
21233
|
/* -- Add more components here -- */
|
|
17832
21234
|
}
|
|
@@ -17838,19 +21240,19 @@ function install(Vue) {
|
|
|
17838
21240
|
var vue_observe_visibility_esm_plugin = {
|
|
17839
21241
|
// eslint-disable-next-line no-undef
|
|
17840
21242
|
version: "1.0.0",
|
|
17841
|
-
install:
|
|
21243
|
+
install: vue_observe_visibility_esm_install
|
|
17842
21244
|
};
|
|
17843
21245
|
|
|
17844
|
-
var
|
|
21246
|
+
var vue_observe_visibility_esm_GlobalVue = null;
|
|
17845
21247
|
|
|
17846
21248
|
if (typeof window !== 'undefined') {
|
|
17847
|
-
|
|
21249
|
+
vue_observe_visibility_esm_GlobalVue = window.Vue;
|
|
17848
21250
|
} else if (typeof __webpack_require__.g !== 'undefined') {
|
|
17849
|
-
|
|
21251
|
+
vue_observe_visibility_esm_GlobalVue = __webpack_require__.g.Vue;
|
|
17850
21252
|
}
|
|
17851
21253
|
|
|
17852
|
-
if (
|
|
17853
|
-
|
|
21254
|
+
if (vue_observe_visibility_esm_GlobalVue) {
|
|
21255
|
+
vue_observe_visibility_esm_GlobalVue.use(vue_observe_visibility_esm_plugin);
|
|
17854
21256
|
}
|
|
17855
21257
|
|
|
17856
21258
|
/* harmony default export */ var vue_observe_visibility_esm = ((/* unused pure expression or super */ null && (vue_observe_visibility_esm_plugin)));
|
|
@@ -18183,7 +21585,7 @@ var isEmpty = function isEmpty(value) {
|
|
|
18183
21585
|
|
|
18184
21586
|
/* normalize component */
|
|
18185
21587
|
|
|
18186
|
-
var wt_select_component =
|
|
21588
|
+
var wt_select_component = componentNormalizer_normalizeComponent(
|
|
18187
21589
|
wt_select_wt_selectvue_type_script_lang_js_,
|
|
18188
21590
|
wt_selectvue_type_template_id_5e1ce59d_scoped_true_render,
|
|
18189
21591
|
wt_selectvue_type_template_id_5e1ce59d_scoped_true_staticRenderFns,
|
|
@@ -18316,7 +21718,7 @@ var wt_slidervue_type_template_id_1503f9dc_scoped_true_staticRenderFns = []
|
|
|
18316
21718
|
|
|
18317
21719
|
/* normalize component */
|
|
18318
21720
|
|
|
18319
|
-
var wt_slider_component =
|
|
21721
|
+
var wt_slider_component = componentNormalizer_normalizeComponent(
|
|
18320
21722
|
wt_slider_wt_slidervue_type_script_lang_js_,
|
|
18321
21723
|
wt_slidervue_type_template_id_1503f9dc_scoped_true_render,
|
|
18322
21724
|
wt_slidervue_type_template_id_1503f9dc_scoped_true_staticRenderFns,
|
|
@@ -18418,7 +21820,7 @@ var wt_switchervue_type_template_id_61d9ee31_scoped_true_staticRenderFns = []
|
|
|
18418
21820
|
|
|
18419
21821
|
/* normalize component */
|
|
18420
21822
|
|
|
18421
|
-
var wt_switcher_component =
|
|
21823
|
+
var wt_switcher_component = componentNormalizer_normalizeComponent(
|
|
18422
21824
|
wt_switcher_wt_switchervue_type_script_lang_js_,
|
|
18423
21825
|
wt_switchervue_type_template_id_61d9ee31_scoped_true_render,
|
|
18424
21826
|
wt_switchervue_type_template_id_61d9ee31_scoped_true_staticRenderFns,
|
|
@@ -18527,7 +21929,7 @@ var wt_tabsvue_type_template_id_5dcc6dcb_scoped_true_staticRenderFns = []
|
|
|
18527
21929
|
|
|
18528
21930
|
/* normalize component */
|
|
18529
21931
|
|
|
18530
|
-
var wt_tabs_component =
|
|
21932
|
+
var wt_tabs_component = componentNormalizer_normalizeComponent(
|
|
18531
21933
|
wt_tabs_wt_tabsvue_type_script_lang_js_,
|
|
18532
21934
|
wt_tabsvue_type_template_id_5dcc6dcb_scoped_true_render,
|
|
18533
21935
|
wt_tabsvue_type_template_id_5dcc6dcb_scoped_true_staticRenderFns,
|
|
@@ -18724,7 +22126,7 @@ var vue_tags_input_default = /*#__PURE__*/__webpack_require__.n(vue_tags_input);
|
|
|
18724
22126
|
|
|
18725
22127
|
/* normalize component */
|
|
18726
22128
|
|
|
18727
|
-
var wt_tags_input_component =
|
|
22129
|
+
var wt_tags_input_component = componentNormalizer_normalizeComponent(
|
|
18728
22130
|
wt_tags_input_wt_tags_inputvue_type_script_lang_js_,
|
|
18729
22131
|
wt_tags_inputvue_type_template_id_d5ed3a8a_scoped_true_render,
|
|
18730
22132
|
wt_tags_inputvue_type_template_id_d5ed3a8a_scoped_true_staticRenderFns,
|
|
@@ -18888,7 +22290,7 @@ var wt_time_inputvue_type_template_id_3a47b4a2_scoped_true_staticRenderFns = []
|
|
|
18888
22290
|
|
|
18889
22291
|
/* normalize component */
|
|
18890
22292
|
|
|
18891
|
-
var wt_time_input_component =
|
|
22293
|
+
var wt_time_input_component = componentNormalizer_normalizeComponent(
|
|
18892
22294
|
wt_time_input_wt_time_inputvue_type_script_lang_js_,
|
|
18893
22295
|
wt_time_inputvue_type_template_id_3a47b4a2_scoped_true_render,
|
|
18894
22296
|
wt_time_inputvue_type_template_id_3a47b4a2_scoped_true_staticRenderFns,
|
|
@@ -19052,7 +22454,7 @@ var wt_textareavue_type_template_id_1069007b_scoped_true_staticRenderFns = []
|
|
|
19052
22454
|
|
|
19053
22455
|
/* normalize component */
|
|
19054
22456
|
|
|
19055
|
-
var wt_textarea_component =
|
|
22457
|
+
var wt_textarea_component = componentNormalizer_normalizeComponent(
|
|
19056
22458
|
wt_textarea_wt_textareavue_type_script_lang_js_,
|
|
19057
22459
|
wt_textareavue_type_template_id_1069007b_scoped_true_render,
|
|
19058
22460
|
wt_textareavue_type_template_id_1069007b_scoped_true_staticRenderFns,
|
|
@@ -19211,7 +22613,7 @@ var SEC_IN_MIN = 60;
|
|
|
19211
22613
|
|
|
19212
22614
|
/* normalize component */
|
|
19213
22615
|
|
|
19214
|
-
var wt_timepicker_component =
|
|
22616
|
+
var wt_timepicker_component = componentNormalizer_normalizeComponent(
|
|
19215
22617
|
wt_timepicker_wt_timepickervue_type_script_lang_js_,
|
|
19216
22618
|
wt_timepickervue_type_template_id_7d43a4a8_scoped_true_render,
|
|
19217
22619
|
wt_timepickervue_type_template_id_7d43a4a8_scoped_true_staticRenderFns,
|
|
@@ -19299,7 +22701,7 @@ var wt_labelvue_type_template_id_43536ef5_scoped_true_staticRenderFns = []
|
|
|
19299
22701
|
|
|
19300
22702
|
/* normalize component */
|
|
19301
22703
|
|
|
19302
|
-
var wt_label_component =
|
|
22704
|
+
var wt_label_component = componentNormalizer_normalizeComponent(
|
|
19303
22705
|
wt_label_wt_labelvue_type_script_lang_js_,
|
|
19304
22706
|
wt_labelvue_type_template_id_43536ef5_scoped_true_render,
|
|
19305
22707
|
wt_labelvue_type_template_id_43536ef5_scoped_true_staticRenderFns,
|
|
@@ -19400,7 +22802,7 @@ var wt_button_selectvue_type_template_id_4d6cee4a_scoped_true_staticRenderFns =
|
|
|
19400
22802
|
|
|
19401
22803
|
/* normalize component */
|
|
19402
22804
|
|
|
19403
|
-
var wt_button_select_component =
|
|
22805
|
+
var wt_button_select_component = componentNormalizer_normalizeComponent(
|
|
19404
22806
|
wt_button_select_wt_button_selectvue_type_script_lang_js_,
|
|
19405
22807
|
wt_button_selectvue_type_template_id_4d6cee4a_scoped_true_render,
|
|
19406
22808
|
wt_button_selectvue_type_template_id_4d6cee4a_scoped_true_staticRenderFns,
|
|
@@ -19443,7 +22845,7 @@ var wt_app_headervue_type_template_id_747a7a52_scoped_true_staticRenderFns = []
|
|
|
19443
22845
|
|
|
19444
22846
|
/* normalize component */
|
|
19445
22847
|
|
|
19446
|
-
var wt_app_header_component =
|
|
22848
|
+
var wt_app_header_component = componentNormalizer_normalizeComponent(
|
|
19447
22849
|
wt_app_header_wt_app_headervue_type_script_lang_js_,
|
|
19448
22850
|
wt_app_headervue_type_template_id_747a7a52_scoped_true_render,
|
|
19449
22851
|
wt_app_headervue_type_template_id_747a7a52_scoped_true_staticRenderFns,
|
|
@@ -19670,7 +23072,7 @@ var WebitelApplications = Object.freeze({
|
|
|
19670
23072
|
|
|
19671
23073
|
/* normalize component */
|
|
19672
23074
|
|
|
19673
|
-
var wt_app_navigator_component =
|
|
23075
|
+
var wt_app_navigator_component = componentNormalizer_normalizeComponent(
|
|
19674
23076
|
wt_app_header_wt_app_navigatorvue_type_script_lang_js_,
|
|
19675
23077
|
wt_app_navigatorvue_type_template_id_ee5ad508_scoped_true_render,
|
|
19676
23078
|
wt_app_navigatorvue_type_template_id_ee5ad508_scoped_true_staticRenderFns,
|
|
@@ -19748,7 +23150,7 @@ var wt_filters_panel_wrappervue_type_template_id_74cbecee_scoped_true_staticRend
|
|
|
19748
23150
|
|
|
19749
23151
|
/* normalize component */
|
|
19750
23152
|
|
|
19751
|
-
var wt_filters_panel_wrapper_component =
|
|
23153
|
+
var wt_filters_panel_wrapper_component = componentNormalizer_normalizeComponent(
|
|
19752
23154
|
wt_filters_panel_wrapper_wt_filters_panel_wrappervue_type_script_lang_js_,
|
|
19753
23155
|
wt_filters_panel_wrappervue_type_template_id_74cbecee_scoped_true_render,
|
|
19754
23156
|
wt_filters_panel_wrappervue_type_template_id_74cbecee_scoped_true_staticRenderFns,
|
|
@@ -19894,7 +23296,7 @@ var wt_header_actionsvue_type_template_id_6c4b4559_scoped_true_staticRenderFns =
|
|
|
19894
23296
|
|
|
19895
23297
|
/* normalize component */
|
|
19896
23298
|
|
|
19897
|
-
var wt_header_actions_component =
|
|
23299
|
+
var wt_header_actions_component = componentNormalizer_normalizeComponent(
|
|
19898
23300
|
wt_app_header_wt_header_actionsvue_type_script_lang_js_,
|
|
19899
23301
|
wt_header_actionsvue_type_template_id_6c4b4559_scoped_true_render,
|
|
19900
23302
|
wt_header_actionsvue_type_template_id_6c4b4559_scoped_true_staticRenderFns,
|
|
@@ -20008,7 +23410,7 @@ var _404_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODYzIiBoZW
|
|
|
20008
23410
|
|
|
20009
23411
|
/* normalize component */
|
|
20010
23412
|
|
|
20011
|
-
var wt_error_page_component =
|
|
23413
|
+
var wt_error_page_component = componentNormalizer_normalizeComponent(
|
|
20012
23414
|
wt_error_page_wt_error_pagevue_type_script_lang_js_,
|
|
20013
23415
|
wt_error_pagevue_type_template_id_12b4fe57_scoped_true_render,
|
|
20014
23416
|
wt_error_pagevue_type_template_id_12b4fe57_scoped_true_staticRenderFns,
|
|
@@ -20061,7 +23463,7 @@ var wt_headlinevue_type_template_id_b90f7186_scoped_true_staticRenderFns = []
|
|
|
20061
23463
|
|
|
20062
23464
|
/* normalize component */
|
|
20063
23465
|
|
|
20064
|
-
var wt_headline_component =
|
|
23466
|
+
var wt_headline_component = componentNormalizer_normalizeComponent(
|
|
20065
23467
|
wt_headline_wt_headlinevue_type_script_lang_js_,
|
|
20066
23468
|
wt_headlinevue_type_template_id_b90f7186_scoped_true_render,
|
|
20067
23469
|
wt_headlinevue_type_template_id_b90f7186_scoped_true_staticRenderFns,
|
|
@@ -20158,7 +23560,7 @@ var expand_transition_render, expand_transition_staticRenderFns
|
|
|
20158
23560
|
|
|
20159
23561
|
/* normalize component */
|
|
20160
23562
|
|
|
20161
|
-
var expand_transition_component =
|
|
23563
|
+
var expand_transition_component = componentNormalizer_normalizeComponent(
|
|
20162
23564
|
transitions_expand_transitionvue_type_script_lang_js_,
|
|
20163
23565
|
expand_transition_render,
|
|
20164
23566
|
expand_transition_staticRenderFns,
|
|
@@ -20363,7 +23765,7 @@ var expand_transition_component = normalizeComponent(
|
|
|
20363
23765
|
|
|
20364
23766
|
/* normalize component */
|
|
20365
23767
|
|
|
20366
|
-
var wt_navigation_bar_component =
|
|
23768
|
+
var wt_navigation_bar_component = componentNormalizer_normalizeComponent(
|
|
20367
23769
|
wt_navigation_bar_wt_navigation_barvue_type_script_lang_js_,
|
|
20368
23770
|
wt_navigation_barvue_type_template_id_5e445474_scoped_true_render,
|
|
20369
23771
|
wt_navigation_barvue_type_template_id_5e445474_scoped_true_staticRenderFns,
|
|
@@ -20448,7 +23850,7 @@ var es_array_splice = __webpack_require__(561);
|
|
|
20448
23850
|
|
|
20449
23851
|
/* normalize component */
|
|
20450
23852
|
|
|
20451
|
-
var wt_notifications_bar_component =
|
|
23853
|
+
var wt_notifications_bar_component = componentNormalizer_normalizeComponent(
|
|
20452
23854
|
wt_notifications_bar_wt_notifications_barvue_type_script_lang_js_,
|
|
20453
23855
|
wt_notifications_barvue_type_template_id_581c3820_scoped_true_render,
|
|
20454
23856
|
wt_notifications_barvue_type_template_id_581c3820_scoped_true_staticRenderFns,
|
|
@@ -20505,7 +23907,7 @@ var wt_page_wrappervue_type_template_id_1592578a_scoped_true_staticRenderFns = [
|
|
|
20505
23907
|
|
|
20506
23908
|
/* normalize component */
|
|
20507
23909
|
|
|
20508
|
-
var wt_page_wrapper_component =
|
|
23910
|
+
var wt_page_wrapper_component = componentNormalizer_normalizeComponent(
|
|
20509
23911
|
wt_page_wrapper_wt_page_wrappervue_type_script_lang_js_,
|
|
20510
23912
|
wt_page_wrappervue_type_template_id_1592578a_scoped_true_render,
|
|
20511
23913
|
wt_page_wrappervue_type_template_id_1592578a_scoped_true_staticRenderFns,
|
|
@@ -20632,7 +24034,7 @@ var wt_paginationvue_type_template_id_1b5e4262_scoped_true_staticRenderFns = []
|
|
|
20632
24034
|
|
|
20633
24035
|
/* normalize component */
|
|
20634
24036
|
|
|
20635
|
-
var wt_pagination_component =
|
|
24037
|
+
var wt_pagination_component = componentNormalizer_normalizeComponent(
|
|
20636
24038
|
wt_pagination_wt_paginationvue_type_script_lang_js_,
|
|
20637
24039
|
wt_paginationvue_type_template_id_1b5e4262_scoped_true_render,
|
|
20638
24040
|
wt_paginationvue_type_template_id_1b5e4262_scoped_true_staticRenderFns,
|
|
@@ -20833,7 +24235,7 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
20833
24235
|
|
|
20834
24236
|
/* normalize component */
|
|
20835
24237
|
|
|
20836
|
-
var wt_player_component =
|
|
24238
|
+
var wt_player_component = componentNormalizer_normalizeComponent(
|
|
20837
24239
|
wt_player_wt_playervue_type_script_lang_js_,
|
|
20838
24240
|
wt_playervue_type_template_id_50031408_render,
|
|
20839
24241
|
wt_playervue_type_template_id_50031408_staticRenderFns,
|
|
@@ -21022,7 +24424,7 @@ var convertDuration = function convertDuration(duration) {
|
|
|
21022
24424
|
|
|
21023
24425
|
/* normalize component */
|
|
21024
24426
|
|
|
21025
|
-
var wt_status_select_component =
|
|
24427
|
+
var wt_status_select_component = componentNormalizer_normalizeComponent(
|
|
21026
24428
|
wt_status_select_wt_status_selectvue_type_script_lang_js_,
|
|
21027
24429
|
wt_status_selectvue_type_template_id_9d8ec644_scoped_true_render,
|
|
21028
24430
|
wt_status_selectvue_type_template_id_9d8ec644_scoped_true_staticRenderFns,
|
|
@@ -21246,7 +24648,7 @@ var getNextSortOrder = function getNextSortOrder(sort) {
|
|
|
21246
24648
|
|
|
21247
24649
|
/* normalize component */
|
|
21248
24650
|
|
|
21249
|
-
var wt_table_component =
|
|
24651
|
+
var wt_table_component = componentNormalizer_normalizeComponent(
|
|
21250
24652
|
wt_table_wt_tablevue_type_script_lang_js_,
|
|
21251
24653
|
wt_tablevue_type_template_id_21c730bb_scoped_true_render,
|
|
21252
24654
|
wt_tablevue_type_template_id_21c730bb_scoped_true_staticRenderFns,
|
|
@@ -21358,7 +24760,7 @@ var wt_table_actionsvue_type_template_id_715b4258_scoped_true_staticRenderFns =
|
|
|
21358
24760
|
|
|
21359
24761
|
/* normalize component */
|
|
21360
24762
|
|
|
21361
|
-
var wt_table_actions_component =
|
|
24763
|
+
var wt_table_actions_component = componentNormalizer_normalizeComponent(
|
|
21362
24764
|
wt_table_actions_wt_table_actionsvue_type_script_lang_js_,
|
|
21363
24765
|
wt_table_actionsvue_type_template_id_715b4258_scoped_true_render,
|
|
21364
24766
|
wt_table_actionsvue_type_template_id_715b4258_scoped_true_staticRenderFns,
|
|
@@ -21501,7 +24903,7 @@ var deep_copy_default = /*#__PURE__*/__webpack_require__.n(deep_copy);
|
|
|
21501
24903
|
|
|
21502
24904
|
/* normalize component */
|
|
21503
24905
|
|
|
21504
|
-
var wt_table_column_select_component =
|
|
24906
|
+
var wt_table_column_select_component = componentNormalizer_normalizeComponent(
|
|
21505
24907
|
wt_table_column_select_wt_table_column_selectvue_type_script_lang_js_,
|
|
21506
24908
|
wt_table_column_selectvue_type_template_id_35dddfd2_scoped_true_render,
|
|
21507
24909
|
wt_table_column_selectvue_type_template_id_35dddfd2_scoped_true_staticRenderFns,
|
|
@@ -21735,6 +25137,8 @@ Object.keys(Filters).forEach(function (name) {
|
|
|
21735
25137
|
|
|
21736
25138
|
/* eslint-disable */
|
|
21737
25139
|
|
|
25140
|
+
|
|
25141
|
+
|
|
21738
25142
|
// init all components
|
|
21739
25143
|
|
|
21740
25144
|
// init all directives
|
|
@@ -21764,6 +25168,7 @@ Object.keys(Filters).forEach(function (name) {
|
|
|
21764
25168
|
});
|
|
21765
25169
|
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$eventBus = eventBus;
|
|
21766
25170
|
if (router) external_commonjs_vue_commonjs2_vue_root_Vue_default().use(router);
|
|
25171
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().use(floating_vue_es_plugin);
|
|
21767
25172
|
}
|
|
21768
25173
|
});
|
|
21769
25174
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|