@webitel/ui-sdk 1.0.42 → 1.0.43
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 +3486 -82
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.umd.js +3486 -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.common.js
CHANGED
|
@@ -11939,9 +11939,3411 @@ var es_array_filter = __webpack_require__(7327);
|
|
|
11939
11939
|
;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
11940
11940
|
var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
|
11941
11941
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
|
|
11942
|
+
;// CONCATENATED MODULE: ./node_modules/@floating-ui/core/dist/floating-ui.core.esm.js
|
|
11943
|
+
function getBasePlacement(placement) {
|
|
11944
|
+
return placement.split('-')[0];
|
|
11945
|
+
}
|
|
11946
|
+
|
|
11947
|
+
function getAlignment(placement) {
|
|
11948
|
+
return placement.split('-')[1];
|
|
11949
|
+
}
|
|
11950
|
+
|
|
11951
|
+
function getMainAxisFromPlacement(placement) {
|
|
11952
|
+
return ['top', 'bottom'].includes(getBasePlacement(placement)) ? 'x' : 'y';
|
|
11953
|
+
}
|
|
11954
|
+
|
|
11955
|
+
function getLengthFromAxis(axis) {
|
|
11956
|
+
return axis === 'y' ? 'height' : 'width';
|
|
11957
|
+
}
|
|
11958
|
+
|
|
11959
|
+
function computeCoordsFromPlacement(_ref) {
|
|
11960
|
+
let {
|
|
11961
|
+
reference,
|
|
11962
|
+
floating,
|
|
11963
|
+
placement
|
|
11964
|
+
} = _ref;
|
|
11965
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
11966
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
11967
|
+
let coords;
|
|
11968
|
+
|
|
11969
|
+
switch (getBasePlacement(placement)) {
|
|
11970
|
+
case 'top':
|
|
11971
|
+
coords = {
|
|
11972
|
+
x: commonX,
|
|
11973
|
+
y: reference.y - floating.height
|
|
11974
|
+
};
|
|
11975
|
+
break;
|
|
11976
|
+
|
|
11977
|
+
case 'bottom':
|
|
11978
|
+
coords = {
|
|
11979
|
+
x: commonX,
|
|
11980
|
+
y: reference.y + reference.height
|
|
11981
|
+
};
|
|
11982
|
+
break;
|
|
11983
|
+
|
|
11984
|
+
case 'right':
|
|
11985
|
+
coords = {
|
|
11986
|
+
x: reference.x + reference.width,
|
|
11987
|
+
y: commonY
|
|
11988
|
+
};
|
|
11989
|
+
break;
|
|
11990
|
+
|
|
11991
|
+
case 'left':
|
|
11992
|
+
coords = {
|
|
11993
|
+
x: reference.x - floating.width,
|
|
11994
|
+
y: commonY
|
|
11995
|
+
};
|
|
11996
|
+
break;
|
|
11997
|
+
|
|
11998
|
+
default:
|
|
11999
|
+
coords = {
|
|
12000
|
+
x: reference.x,
|
|
12001
|
+
y: reference.y
|
|
12002
|
+
};
|
|
12003
|
+
}
|
|
12004
|
+
|
|
12005
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
|
12006
|
+
const length = getLengthFromAxis(mainAxis);
|
|
12007
|
+
|
|
12008
|
+
switch (getAlignment(placement)) {
|
|
12009
|
+
case 'start':
|
|
12010
|
+
coords[mainAxis] = coords[mainAxis] - (reference[length] / 2 - floating[length] / 2);
|
|
12011
|
+
break;
|
|
12012
|
+
|
|
12013
|
+
case 'end':
|
|
12014
|
+
coords[mainAxis] = coords[mainAxis] + (reference[length] / 2 - floating[length] / 2);
|
|
12015
|
+
break;
|
|
12016
|
+
}
|
|
12017
|
+
|
|
12018
|
+
return coords;
|
|
12019
|
+
}
|
|
12020
|
+
|
|
12021
|
+
const computePosition = async (reference, floating, config) => {
|
|
12022
|
+
const {
|
|
12023
|
+
placement = 'bottom',
|
|
12024
|
+
strategy = 'absolute',
|
|
12025
|
+
middleware = [],
|
|
12026
|
+
platform
|
|
12027
|
+
} = config;
|
|
12028
|
+
|
|
12029
|
+
if (false) {}
|
|
12030
|
+
|
|
12031
|
+
let rects = await platform.getElementRects({
|
|
12032
|
+
reference,
|
|
12033
|
+
floating,
|
|
12034
|
+
strategy
|
|
12035
|
+
});
|
|
12036
|
+
let {
|
|
12037
|
+
x,
|
|
12038
|
+
y
|
|
12039
|
+
} = computeCoordsFromPlacement({ ...rects,
|
|
12040
|
+
placement
|
|
12041
|
+
});
|
|
12042
|
+
let statefulPlacement = placement;
|
|
12043
|
+
let middlewareData = {};
|
|
12044
|
+
let _debug_loop_count_ = 0;
|
|
12045
|
+
|
|
12046
|
+
for (let i = 0; i < middleware.length; i++) {
|
|
12047
|
+
if (false) {}
|
|
12048
|
+
|
|
12049
|
+
const {
|
|
12050
|
+
name,
|
|
12051
|
+
fn
|
|
12052
|
+
} = middleware[i];
|
|
12053
|
+
const {
|
|
12054
|
+
x: nextX,
|
|
12055
|
+
y: nextY,
|
|
12056
|
+
data,
|
|
12057
|
+
reset
|
|
12058
|
+
} = await fn({
|
|
12059
|
+
x,
|
|
12060
|
+
y,
|
|
12061
|
+
initialPlacement: placement,
|
|
12062
|
+
placement: statefulPlacement,
|
|
12063
|
+
strategy,
|
|
12064
|
+
middlewareData,
|
|
12065
|
+
rects,
|
|
12066
|
+
platform,
|
|
12067
|
+
elements: {
|
|
12068
|
+
reference,
|
|
12069
|
+
floating
|
|
12070
|
+
}
|
|
12071
|
+
});
|
|
12072
|
+
x = nextX != null ? nextX : x;
|
|
12073
|
+
y = nextY != null ? nextY : y;
|
|
12074
|
+
middlewareData = { ...middlewareData,
|
|
12075
|
+
[name]: data != null ? data : {}
|
|
12076
|
+
};
|
|
12077
|
+
|
|
12078
|
+
if (reset) {
|
|
12079
|
+
if (typeof reset === 'object') {
|
|
12080
|
+
if (reset.placement) {
|
|
12081
|
+
statefulPlacement = reset.placement;
|
|
12082
|
+
}
|
|
12083
|
+
|
|
12084
|
+
if (reset.rects) {
|
|
12085
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
|
12086
|
+
reference,
|
|
12087
|
+
floating,
|
|
12088
|
+
strategy
|
|
12089
|
+
}) : reset.rects;
|
|
12090
|
+
}
|
|
12091
|
+
|
|
12092
|
+
({
|
|
12093
|
+
x,
|
|
12094
|
+
y
|
|
12095
|
+
} = computeCoordsFromPlacement({ ...rects,
|
|
12096
|
+
placement: statefulPlacement
|
|
12097
|
+
}));
|
|
12098
|
+
}
|
|
12099
|
+
|
|
12100
|
+
i = -1;
|
|
12101
|
+
continue;
|
|
12102
|
+
}
|
|
12103
|
+
}
|
|
12104
|
+
|
|
12105
|
+
return {
|
|
12106
|
+
x,
|
|
12107
|
+
y,
|
|
12108
|
+
placement: statefulPlacement,
|
|
12109
|
+
strategy,
|
|
12110
|
+
middlewareData
|
|
12111
|
+
};
|
|
12112
|
+
};
|
|
12113
|
+
|
|
12114
|
+
function expandPaddingObject(padding) {
|
|
12115
|
+
return {
|
|
12116
|
+
top: 0,
|
|
12117
|
+
right: 0,
|
|
12118
|
+
bottom: 0,
|
|
12119
|
+
left: 0,
|
|
12120
|
+
...padding
|
|
12121
|
+
};
|
|
12122
|
+
}
|
|
12123
|
+
|
|
12124
|
+
function getSideObjectFromPadding(padding) {
|
|
12125
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
12126
|
+
top: padding,
|
|
12127
|
+
right: padding,
|
|
12128
|
+
bottom: padding,
|
|
12129
|
+
left: padding
|
|
12130
|
+
};
|
|
12131
|
+
}
|
|
12132
|
+
|
|
12133
|
+
function rectToClientRect(rect) {
|
|
12134
|
+
return { ...rect,
|
|
12135
|
+
top: rect.y,
|
|
12136
|
+
left: rect.x,
|
|
12137
|
+
right: rect.x + rect.width,
|
|
12138
|
+
bottom: rect.y + rect.height
|
|
12139
|
+
};
|
|
12140
|
+
}
|
|
12141
|
+
|
|
12142
|
+
async function detectOverflow(middlewareArguments, options) {
|
|
12143
|
+
if (options === void 0) {
|
|
12144
|
+
options = {};
|
|
12145
|
+
}
|
|
12146
|
+
|
|
12147
|
+
const {
|
|
12148
|
+
x,
|
|
12149
|
+
y,
|
|
12150
|
+
platform,
|
|
12151
|
+
rects,
|
|
12152
|
+
elements,
|
|
12153
|
+
strategy
|
|
12154
|
+
} = middlewareArguments;
|
|
12155
|
+
const {
|
|
12156
|
+
boundary = 'clippingParents',
|
|
12157
|
+
rootBoundary = 'viewport',
|
|
12158
|
+
elementContext = 'floating',
|
|
12159
|
+
altBoundary = false,
|
|
12160
|
+
padding = 0
|
|
12161
|
+
} = options;
|
|
12162
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
|
12163
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
12164
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
12165
|
+
const clippingClientRect = await platform.getClippingClientRect({
|
|
12166
|
+
element: (await platform.isElement(element)) ? element : element.contextElement || (await platform.getDocumentElement({
|
|
12167
|
+
element: elements.floating
|
|
12168
|
+
})),
|
|
12169
|
+
boundary,
|
|
12170
|
+
rootBoundary
|
|
12171
|
+
});
|
|
12172
|
+
const elementClientRect = rectToClientRect(await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
12173
|
+
rect: elementContext === 'floating' ? { ...rects.floating,
|
|
12174
|
+
x,
|
|
12175
|
+
y
|
|
12176
|
+
} : rects.reference,
|
|
12177
|
+
offsetParent: await platform.getOffsetParent({
|
|
12178
|
+
element: elements.floating
|
|
12179
|
+
}),
|
|
12180
|
+
strategy
|
|
12181
|
+
})); // positive = overflowing the clipping rect
|
|
12182
|
+
// 0 or negative = within the clipping rect
|
|
12183
|
+
|
|
12184
|
+
return {
|
|
12185
|
+
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
|
12186
|
+
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
|
12187
|
+
left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
|
|
12188
|
+
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
|
|
12189
|
+
};
|
|
12190
|
+
}
|
|
12191
|
+
|
|
12192
|
+
const min = Math.min;
|
|
12193
|
+
const max = Math.max;
|
|
12194
|
+
|
|
12195
|
+
function within(min$1, value, max$1) {
|
|
12196
|
+
return max(min$1, min(value, max$1));
|
|
12197
|
+
}
|
|
12198
|
+
|
|
12199
|
+
const arrow = options => ({
|
|
12200
|
+
name: 'arrow',
|
|
12201
|
+
options,
|
|
12202
|
+
|
|
12203
|
+
async fn(middlewareArguments) {
|
|
12204
|
+
// Since `element` is required, we don't Partial<> the type
|
|
12205
|
+
const {
|
|
12206
|
+
element,
|
|
12207
|
+
padding = 0
|
|
12208
|
+
} = options != null ? options : {};
|
|
12209
|
+
const {
|
|
12210
|
+
x,
|
|
12211
|
+
y,
|
|
12212
|
+
placement,
|
|
12213
|
+
rects,
|
|
12214
|
+
platform
|
|
12215
|
+
} = middlewareArguments;
|
|
12216
|
+
|
|
12217
|
+
if (element == null) {
|
|
12218
|
+
if (false) {}
|
|
12219
|
+
|
|
12220
|
+
return {};
|
|
12221
|
+
}
|
|
12222
|
+
|
|
12223
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
|
12224
|
+
const coords = {
|
|
12225
|
+
x,
|
|
12226
|
+
y
|
|
12227
|
+
};
|
|
12228
|
+
const basePlacement = getBasePlacement(placement);
|
|
12229
|
+
const axis = getMainAxisFromPlacement(basePlacement);
|
|
12230
|
+
const length = getLengthFromAxis(axis);
|
|
12231
|
+
const arrowDimensions = await platform.getDimensions({
|
|
12232
|
+
element
|
|
12233
|
+
});
|
|
12234
|
+
const minProp = axis === 'y' ? 'top' : 'left';
|
|
12235
|
+
const maxProp = axis === 'y' ? 'bottom' : 'right';
|
|
12236
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
12237
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
12238
|
+
const arrowOffsetParent = await platform.getOffsetParent({
|
|
12239
|
+
element
|
|
12240
|
+
});
|
|
12241
|
+
const clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
12242
|
+
const centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the floating element if the center
|
|
12243
|
+
// point is outside of the floating element's bounds
|
|
12244
|
+
|
|
12245
|
+
const min = paddingObject[minProp];
|
|
12246
|
+
const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
|
|
12247
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
12248
|
+
const offset = within(min, center, max);
|
|
12249
|
+
return {
|
|
12250
|
+
data: {
|
|
12251
|
+
[axis]: offset,
|
|
12252
|
+
centerOffset: center - offset
|
|
12253
|
+
}
|
|
12254
|
+
};
|
|
12255
|
+
}
|
|
12256
|
+
|
|
12257
|
+
});
|
|
12258
|
+
|
|
12259
|
+
const hash$1 = {
|
|
12260
|
+
left: 'right',
|
|
12261
|
+
right: 'left',
|
|
12262
|
+
bottom: 'top',
|
|
12263
|
+
top: 'bottom'
|
|
12264
|
+
};
|
|
12265
|
+
function getOppositePlacement(placement) {
|
|
12266
|
+
return placement.replace(/left|right|bottom|top/g, matched => hash$1[matched]);
|
|
12267
|
+
}
|
|
12268
|
+
|
|
12269
|
+
function getAlignmentSides(placement, rects) {
|
|
12270
|
+
const isStart = getAlignment(placement) === 'start';
|
|
12271
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
|
12272
|
+
const length = getLengthFromAxis(mainAxis);
|
|
12273
|
+
let mainAlignmentSide = mainAxis === 'x' ? isStart ? 'right' : 'left' : isStart ? 'bottom' : 'top';
|
|
12274
|
+
|
|
12275
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
12276
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
12277
|
+
}
|
|
12278
|
+
|
|
12279
|
+
return {
|
|
12280
|
+
main: mainAlignmentSide,
|
|
12281
|
+
cross: getOppositePlacement(mainAlignmentSide)
|
|
12282
|
+
};
|
|
12283
|
+
}
|
|
12284
|
+
|
|
12285
|
+
const hash = {
|
|
12286
|
+
start: 'end',
|
|
12287
|
+
end: 'start'
|
|
12288
|
+
};
|
|
12289
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
12290
|
+
return placement.replace(/start|end/g, matched => hash[matched]);
|
|
12291
|
+
}
|
|
12292
|
+
|
|
12293
|
+
const basePlacements = ['top', 'right', 'bottom', 'left'];
|
|
12294
|
+
const allPlacements = /*#__PURE__*/basePlacements.reduce((acc, basePlacement) => acc.concat(basePlacement, basePlacement + "-start", basePlacement + "-end"), []);
|
|
12295
|
+
|
|
12296
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
12297
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getBasePlacement(placement) === placement);
|
|
12298
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
12299
|
+
if (alignment) {
|
|
12300
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
12301
|
+
}
|
|
12302
|
+
|
|
12303
|
+
return true;
|
|
12304
|
+
});
|
|
12305
|
+
}
|
|
12306
|
+
const autoPlacement = function (options) {
|
|
12307
|
+
if (options === void 0) {
|
|
12308
|
+
options = {};
|
|
12309
|
+
}
|
|
12310
|
+
|
|
12311
|
+
return {
|
|
12312
|
+
name: 'autoPlacement',
|
|
12313
|
+
options,
|
|
12314
|
+
|
|
12315
|
+
async fn(middlewareArguments) {
|
|
12316
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _middlewareData$autoP3, _middlewareData$autoP4, _middlewareData$autoP5, _placementsSortedByLe;
|
|
12317
|
+
|
|
12318
|
+
const {
|
|
12319
|
+
x,
|
|
12320
|
+
y,
|
|
12321
|
+
rects,
|
|
12322
|
+
middlewareData,
|
|
12323
|
+
placement
|
|
12324
|
+
} = middlewareArguments;
|
|
12325
|
+
const {
|
|
12326
|
+
alignment = null,
|
|
12327
|
+
allowedPlacements = allPlacements,
|
|
12328
|
+
autoAlignment = true,
|
|
12329
|
+
...detectOverflowOptions
|
|
12330
|
+
} = options;
|
|
12331
|
+
|
|
12332
|
+
if ((_middlewareData$autoP = middlewareData.autoPlacement) != null && _middlewareData$autoP.skip) {
|
|
12333
|
+
return {};
|
|
12334
|
+
}
|
|
12335
|
+
|
|
12336
|
+
const placements = getPlacementList(alignment, autoAlignment, allowedPlacements);
|
|
12337
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
12338
|
+
const currentIndex = (_middlewareData$autoP2 = (_middlewareData$autoP3 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP3.index) != null ? _middlewareData$autoP2 : 0;
|
|
12339
|
+
const currentPlacement = placements[currentIndex];
|
|
12340
|
+
const {
|
|
12341
|
+
main,
|
|
12342
|
+
cross
|
|
12343
|
+
} = getAlignmentSides(currentPlacement, rects); // Make `computeCoords` start from the right place
|
|
12344
|
+
|
|
12345
|
+
if (placement !== currentPlacement) {
|
|
12346
|
+
return {
|
|
12347
|
+
x,
|
|
12348
|
+
y,
|
|
12349
|
+
reset: {
|
|
12350
|
+
placement: placements[0]
|
|
12351
|
+
}
|
|
12352
|
+
};
|
|
12353
|
+
}
|
|
12354
|
+
|
|
12355
|
+
const currentOverflows = [overflow[getBasePlacement(currentPlacement)], overflow[main], overflow[cross]];
|
|
12356
|
+
const allOverflows = [...((_middlewareData$autoP4 = (_middlewareData$autoP5 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP5.overflows) != null ? _middlewareData$autoP4 : []), {
|
|
12357
|
+
placement: currentPlacement,
|
|
12358
|
+
overflows: currentOverflows
|
|
12359
|
+
}];
|
|
12360
|
+
const nextPlacement = placements[currentIndex + 1]; // There are more placements to check
|
|
12361
|
+
|
|
12362
|
+
if (nextPlacement) {
|
|
12363
|
+
return {
|
|
12364
|
+
data: {
|
|
12365
|
+
index: currentIndex + 1,
|
|
12366
|
+
overflows: allOverflows
|
|
12367
|
+
},
|
|
12368
|
+
reset: {
|
|
12369
|
+
placement: nextPlacement
|
|
12370
|
+
}
|
|
12371
|
+
};
|
|
12372
|
+
}
|
|
12373
|
+
|
|
12374
|
+
const placementsSortedByLeastOverflow = allOverflows.slice().sort((a, b) => a.overflows[0] - b.overflows[0]);
|
|
12375
|
+
const placementThatFitsOnAllSides = (_placementsSortedByLe = placementsSortedByLeastOverflow.find(_ref => {
|
|
12376
|
+
let {
|
|
12377
|
+
overflows
|
|
12378
|
+
} = _ref;
|
|
12379
|
+
return overflows.every(overflow => overflow <= 0);
|
|
12380
|
+
})) == null ? void 0 : _placementsSortedByLe.placement;
|
|
12381
|
+
return {
|
|
12382
|
+
data: {
|
|
12383
|
+
skip: true
|
|
12384
|
+
},
|
|
12385
|
+
reset: {
|
|
12386
|
+
placement: placementThatFitsOnAllSides != null ? placementThatFitsOnAllSides : placementsSortedByLeastOverflow[0].placement
|
|
12387
|
+
}
|
|
12388
|
+
};
|
|
12389
|
+
}
|
|
12390
|
+
|
|
12391
|
+
};
|
|
12392
|
+
};
|
|
12393
|
+
|
|
12394
|
+
function getExpandedPlacements(placement) {
|
|
12395
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
12396
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
12397
|
+
}
|
|
12398
|
+
|
|
12399
|
+
const flip = function (options) {
|
|
12400
|
+
if (options === void 0) {
|
|
12401
|
+
options = {};
|
|
12402
|
+
}
|
|
12403
|
+
|
|
12404
|
+
return {
|
|
12405
|
+
name: 'flip',
|
|
12406
|
+
options,
|
|
12407
|
+
|
|
12408
|
+
async fn(middlewareArguments) {
|
|
12409
|
+
var _middlewareData$flip, _middlewareData$flip2;
|
|
12410
|
+
|
|
12411
|
+
const {
|
|
12412
|
+
placement,
|
|
12413
|
+
middlewareData,
|
|
12414
|
+
rects,
|
|
12415
|
+
initialPlacement
|
|
12416
|
+
} = middlewareArguments;
|
|
12417
|
+
|
|
12418
|
+
if ((_middlewareData$flip = middlewareData.flip) != null && _middlewareData$flip.skip) {
|
|
12419
|
+
return {};
|
|
12420
|
+
}
|
|
12421
|
+
|
|
12422
|
+
const {
|
|
12423
|
+
mainAxis: checkMainAxis = true,
|
|
12424
|
+
crossAxis: checkCrossAxis = true,
|
|
12425
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
12426
|
+
fallbackStrategy = 'bestFit',
|
|
12427
|
+
flipAlignment = true,
|
|
12428
|
+
...detectOverflowOptions
|
|
12429
|
+
} = options;
|
|
12430
|
+
const basePlacement = getBasePlacement(placement);
|
|
12431
|
+
const isBasePlacement = basePlacement === initialPlacement;
|
|
12432
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
12433
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
12434
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
12435
|
+
const overflows = [];
|
|
12436
|
+
let overflowsData = ((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.overflows) || [];
|
|
12437
|
+
|
|
12438
|
+
if (checkMainAxis) {
|
|
12439
|
+
overflows.push(overflow[basePlacement]);
|
|
12440
|
+
}
|
|
12441
|
+
|
|
12442
|
+
if (checkCrossAxis) {
|
|
12443
|
+
const {
|
|
12444
|
+
main,
|
|
12445
|
+
cross
|
|
12446
|
+
} = getAlignmentSides(placement, rects);
|
|
12447
|
+
overflows.push(overflow[main], overflow[cross]);
|
|
12448
|
+
}
|
|
12449
|
+
|
|
12450
|
+
overflowsData = [...overflowsData, {
|
|
12451
|
+
placement,
|
|
12452
|
+
overflows
|
|
12453
|
+
}]; // One or more sides is overflowing
|
|
12454
|
+
|
|
12455
|
+
if (!overflows.every(side => side <= 0)) {
|
|
12456
|
+
var _middlewareData$flip$, _middlewareData$flip3;
|
|
12457
|
+
|
|
12458
|
+
const nextIndex = ((_middlewareData$flip$ = (_middlewareData$flip3 = middlewareData.flip) == null ? void 0 : _middlewareData$flip3.index) != null ? _middlewareData$flip$ : 0) + 1;
|
|
12459
|
+
const nextPlacement = placements[nextIndex];
|
|
12460
|
+
|
|
12461
|
+
if (nextPlacement) {
|
|
12462
|
+
// Try next placement and re-run the lifecycle
|
|
12463
|
+
return {
|
|
12464
|
+
data: {
|
|
12465
|
+
index: nextIndex,
|
|
12466
|
+
overflows: overflowsData
|
|
12467
|
+
},
|
|
12468
|
+
reset: {
|
|
12469
|
+
placement: nextPlacement
|
|
12470
|
+
}
|
|
12471
|
+
};
|
|
12472
|
+
}
|
|
12473
|
+
|
|
12474
|
+
let resetPlacement = 'bottom';
|
|
12475
|
+
|
|
12476
|
+
switch (fallbackStrategy) {
|
|
12477
|
+
case 'bestFit':
|
|
12478
|
+
{
|
|
12479
|
+
var _overflowsData$slice$;
|
|
12480
|
+
|
|
12481
|
+
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;
|
|
12482
|
+
|
|
12483
|
+
if (placement) {
|
|
12484
|
+
resetPlacement = placement;
|
|
12485
|
+
}
|
|
12486
|
+
|
|
12487
|
+
break;
|
|
12488
|
+
}
|
|
12489
|
+
|
|
12490
|
+
case 'initialPlacement':
|
|
12491
|
+
resetPlacement = initialPlacement;
|
|
12492
|
+
break;
|
|
12493
|
+
}
|
|
12494
|
+
|
|
12495
|
+
return {
|
|
12496
|
+
data: {
|
|
12497
|
+
skip: true
|
|
12498
|
+
},
|
|
12499
|
+
reset: {
|
|
12500
|
+
placement: resetPlacement
|
|
12501
|
+
}
|
|
12502
|
+
};
|
|
12503
|
+
}
|
|
12504
|
+
|
|
12505
|
+
return {};
|
|
12506
|
+
}
|
|
12507
|
+
|
|
12508
|
+
};
|
|
12509
|
+
};
|
|
12510
|
+
|
|
12511
|
+
function getSideOffsets(overflow, rect) {
|
|
12512
|
+
return {
|
|
12513
|
+
top: overflow.top - rect.height,
|
|
12514
|
+
right: overflow.right - rect.width,
|
|
12515
|
+
bottom: overflow.bottom - rect.height,
|
|
12516
|
+
left: overflow.left - rect.width
|
|
12517
|
+
};
|
|
12518
|
+
}
|
|
12519
|
+
|
|
12520
|
+
function isAnySideFullyClipped(overflow) {
|
|
12521
|
+
return basePlacements.some(side => overflow[side] >= 0);
|
|
12522
|
+
}
|
|
12523
|
+
|
|
12524
|
+
const hide = () => ({
|
|
12525
|
+
name: 'hide',
|
|
12526
|
+
|
|
12527
|
+
async fn(modifierArguments) {
|
|
12528
|
+
const referenceOverflow = await detectOverflow(modifierArguments, {
|
|
12529
|
+
elementContext: 'reference'
|
|
12530
|
+
});
|
|
12531
|
+
const floatingAltOverflow = await detectOverflow(modifierArguments, {
|
|
12532
|
+
altBoundary: true
|
|
12533
|
+
});
|
|
12534
|
+
const referenceHiddenOffsets = getSideOffsets(referenceOverflow, modifierArguments.rects.reference);
|
|
12535
|
+
const escapedOffsets = getSideOffsets(floatingAltOverflow, modifierArguments.rects.floating);
|
|
12536
|
+
const referenceHidden = isAnySideFullyClipped(referenceHiddenOffsets);
|
|
12537
|
+
const escaped = isAnySideFullyClipped(escapedOffsets);
|
|
12538
|
+
return {
|
|
12539
|
+
data: {
|
|
12540
|
+
referenceHidden,
|
|
12541
|
+
referenceHiddenOffsets,
|
|
12542
|
+
escaped,
|
|
12543
|
+
escapedOffsets
|
|
12544
|
+
}
|
|
12545
|
+
};
|
|
12546
|
+
}
|
|
12547
|
+
|
|
12548
|
+
});
|
|
12549
|
+
|
|
12550
|
+
function convertValueToCoords(_ref) {
|
|
12551
|
+
let {
|
|
12552
|
+
placement,
|
|
12553
|
+
rects,
|
|
12554
|
+
value
|
|
12555
|
+
} = _ref;
|
|
12556
|
+
const basePlacement = getBasePlacement(placement);
|
|
12557
|
+
const multiplier = ['left', 'top'].includes(basePlacement) ? -1 : 1;
|
|
12558
|
+
const rawValue = typeof value === 'function' ? value({ ...rects,
|
|
12559
|
+
placement
|
|
12560
|
+
}) : value;
|
|
12561
|
+
const {
|
|
12562
|
+
mainAxis,
|
|
12563
|
+
crossAxis
|
|
12564
|
+
} = typeof rawValue === 'number' ? {
|
|
12565
|
+
mainAxis: rawValue,
|
|
12566
|
+
crossAxis: 0
|
|
12567
|
+
} : {
|
|
12568
|
+
mainAxis: 0,
|
|
12569
|
+
crossAxis: 0,
|
|
12570
|
+
...rawValue
|
|
12571
|
+
};
|
|
12572
|
+
return getMainAxisFromPlacement(basePlacement) === 'x' ? {
|
|
12573
|
+
x: crossAxis,
|
|
12574
|
+
y: mainAxis * multiplier
|
|
12575
|
+
} : {
|
|
12576
|
+
x: mainAxis * multiplier,
|
|
12577
|
+
y: crossAxis
|
|
12578
|
+
};
|
|
12579
|
+
}
|
|
12580
|
+
const offset = function (value) {
|
|
12581
|
+
if (value === void 0) {
|
|
12582
|
+
value = 0;
|
|
12583
|
+
}
|
|
12584
|
+
|
|
12585
|
+
return {
|
|
12586
|
+
name: 'offset',
|
|
12587
|
+
options: value,
|
|
12588
|
+
|
|
12589
|
+
fn(middlewareArguments) {
|
|
12590
|
+
const {
|
|
12591
|
+
x,
|
|
12592
|
+
y,
|
|
12593
|
+
placement,
|
|
12594
|
+
rects
|
|
12595
|
+
} = middlewareArguments;
|
|
12596
|
+
const diffCoords = convertValueToCoords({
|
|
12597
|
+
placement,
|
|
12598
|
+
rects,
|
|
12599
|
+
value
|
|
12600
|
+
});
|
|
12601
|
+
return {
|
|
12602
|
+
x: x + diffCoords.x,
|
|
12603
|
+
y: y + diffCoords.y,
|
|
12604
|
+
data: diffCoords
|
|
12605
|
+
};
|
|
12606
|
+
}
|
|
12607
|
+
|
|
12608
|
+
};
|
|
12609
|
+
};
|
|
12610
|
+
|
|
12611
|
+
function getCrossAxis(axis) {
|
|
12612
|
+
return axis === 'x' ? 'y' : 'x';
|
|
12613
|
+
}
|
|
12614
|
+
|
|
12615
|
+
const shift = function (options) {
|
|
12616
|
+
if (options === void 0) {
|
|
12617
|
+
options = {};
|
|
12618
|
+
}
|
|
12619
|
+
|
|
12620
|
+
return {
|
|
12621
|
+
name: 'shift',
|
|
12622
|
+
options,
|
|
12623
|
+
|
|
12624
|
+
async fn(middlewareArguments) {
|
|
12625
|
+
const {
|
|
12626
|
+
x,
|
|
12627
|
+
y,
|
|
12628
|
+
placement
|
|
12629
|
+
} = middlewareArguments;
|
|
12630
|
+
const {
|
|
12631
|
+
mainAxis: checkMainAxis = true,
|
|
12632
|
+
crossAxis: checkCrossAxis = false,
|
|
12633
|
+
limiter = {
|
|
12634
|
+
fn: _ref => {
|
|
12635
|
+
let {
|
|
12636
|
+
x,
|
|
12637
|
+
y
|
|
12638
|
+
} = _ref;
|
|
12639
|
+
return {
|
|
12640
|
+
x,
|
|
12641
|
+
y
|
|
12642
|
+
};
|
|
12643
|
+
}
|
|
12644
|
+
},
|
|
12645
|
+
...detectOverflowOptions
|
|
12646
|
+
} = options;
|
|
12647
|
+
const coords = {
|
|
12648
|
+
x,
|
|
12649
|
+
y
|
|
12650
|
+
};
|
|
12651
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
12652
|
+
const mainAxis = getMainAxisFromPlacement(getBasePlacement(placement));
|
|
12653
|
+
const crossAxis = getCrossAxis(mainAxis);
|
|
12654
|
+
let mainAxisCoord = coords[mainAxis];
|
|
12655
|
+
let crossAxisCoord = coords[crossAxis];
|
|
12656
|
+
|
|
12657
|
+
if (checkMainAxis) {
|
|
12658
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
12659
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
12660
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
12661
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
12662
|
+
mainAxisCoord = within(min, mainAxisCoord, max);
|
|
12663
|
+
}
|
|
12664
|
+
|
|
12665
|
+
if (checkCrossAxis) {
|
|
12666
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
12667
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
12668
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
12669
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
12670
|
+
crossAxisCoord = within(min, crossAxisCoord, max);
|
|
12671
|
+
}
|
|
12672
|
+
|
|
12673
|
+
const limitedCoords = limiter.fn({ ...middlewareArguments,
|
|
12674
|
+
[mainAxis]: mainAxisCoord,
|
|
12675
|
+
[crossAxis]: crossAxisCoord
|
|
12676
|
+
});
|
|
12677
|
+
return { ...limitedCoords,
|
|
12678
|
+
data: {
|
|
12679
|
+
x: limitedCoords.x - x,
|
|
12680
|
+
y: limitedCoords.y - y
|
|
12681
|
+
}
|
|
12682
|
+
};
|
|
12683
|
+
}
|
|
12684
|
+
|
|
12685
|
+
};
|
|
12686
|
+
};
|
|
12687
|
+
const limitShift = function (options) {
|
|
12688
|
+
if (options === void 0) {
|
|
12689
|
+
options = {};
|
|
12690
|
+
}
|
|
12691
|
+
|
|
12692
|
+
return {
|
|
12693
|
+
options,
|
|
12694
|
+
|
|
12695
|
+
fn(middlewareArguments) {
|
|
12696
|
+
const {
|
|
12697
|
+
x,
|
|
12698
|
+
y,
|
|
12699
|
+
placement,
|
|
12700
|
+
rects,
|
|
12701
|
+
middlewareData
|
|
12702
|
+
} = middlewareArguments;
|
|
12703
|
+
const {
|
|
12704
|
+
offset = 0,
|
|
12705
|
+
mainAxis: checkMainAxis = true,
|
|
12706
|
+
crossAxis: checkCrossAxis = true
|
|
12707
|
+
} = options;
|
|
12708
|
+
const coords = {
|
|
12709
|
+
x,
|
|
12710
|
+
y
|
|
12711
|
+
};
|
|
12712
|
+
const mainAxis = getMainAxisFromPlacement(placement);
|
|
12713
|
+
const crossAxis = getCrossAxis(mainAxis);
|
|
12714
|
+
let mainAxisCoord = coords[mainAxis];
|
|
12715
|
+
let crossAxisCoord = coords[crossAxis];
|
|
12716
|
+
const rawOffset = typeof offset === 'function' ? offset({ ...rects,
|
|
12717
|
+
placement
|
|
12718
|
+
}) : offset;
|
|
12719
|
+
const computedOffset = typeof rawOffset === 'number' ? {
|
|
12720
|
+
mainAxis: rawOffset,
|
|
12721
|
+
crossAxis: 0
|
|
12722
|
+
} : {
|
|
12723
|
+
mainAxis: 0,
|
|
12724
|
+
crossAxis: 0,
|
|
12725
|
+
...rawOffset
|
|
12726
|
+
};
|
|
12727
|
+
|
|
12728
|
+
if (checkMainAxis) {
|
|
12729
|
+
const len = mainAxis === 'y' ? 'height' : 'width';
|
|
12730
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
12731
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
12732
|
+
|
|
12733
|
+
if (mainAxisCoord < limitMin) {
|
|
12734
|
+
mainAxisCoord = limitMin;
|
|
12735
|
+
} else if (mainAxisCoord > limitMax) {
|
|
12736
|
+
mainAxisCoord = limitMax;
|
|
12737
|
+
}
|
|
12738
|
+
}
|
|
12739
|
+
|
|
12740
|
+
if (checkCrossAxis) {
|
|
12741
|
+
var _middlewareData$offse, _middlewareData$offse2, _middlewareData$offse3, _middlewareData$offse4;
|
|
12742
|
+
|
|
12743
|
+
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
12744
|
+
const isOriginSide = ['top', 'left'].includes(getBasePlacement(placement));
|
|
12745
|
+
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);
|
|
12746
|
+
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);
|
|
12747
|
+
|
|
12748
|
+
if (crossAxisCoord < limitMin) {
|
|
12749
|
+
crossAxisCoord = limitMin;
|
|
12750
|
+
} else if (crossAxisCoord > limitMax) {
|
|
12751
|
+
crossAxisCoord = limitMax;
|
|
12752
|
+
}
|
|
12753
|
+
}
|
|
12754
|
+
|
|
12755
|
+
return {
|
|
12756
|
+
[mainAxis]: mainAxisCoord,
|
|
12757
|
+
[crossAxis]: crossAxisCoord
|
|
12758
|
+
};
|
|
12759
|
+
}
|
|
12760
|
+
|
|
12761
|
+
};
|
|
12762
|
+
};
|
|
12763
|
+
|
|
12764
|
+
const size = function (options) {
|
|
12765
|
+
if (options === void 0) {
|
|
12766
|
+
options = {};
|
|
12767
|
+
}
|
|
12768
|
+
|
|
12769
|
+
return {
|
|
12770
|
+
name: 'size',
|
|
12771
|
+
options,
|
|
12772
|
+
|
|
12773
|
+
async fn(middlewareArguments) {
|
|
12774
|
+
var _middlewareData$size;
|
|
12775
|
+
|
|
12776
|
+
const {
|
|
12777
|
+
placement,
|
|
12778
|
+
rects,
|
|
12779
|
+
middlewareData
|
|
12780
|
+
} = middlewareArguments;
|
|
12781
|
+
const {
|
|
12782
|
+
apply,
|
|
12783
|
+
...detectOverflowOptions
|
|
12784
|
+
} = options;
|
|
12785
|
+
|
|
12786
|
+
if ((_middlewareData$size = middlewareData.size) != null && _middlewareData$size.skip) {
|
|
12787
|
+
return {};
|
|
12788
|
+
}
|
|
12789
|
+
|
|
12790
|
+
const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
|
|
12791
|
+
const basePlacement = getBasePlacement(placement);
|
|
12792
|
+
const isEnd = getAlignment(placement) === 'end';
|
|
12793
|
+
let heightSide;
|
|
12794
|
+
let widthSide;
|
|
12795
|
+
|
|
12796
|
+
if (basePlacement === 'top' || basePlacement === 'bottom') {
|
|
12797
|
+
heightSide = basePlacement;
|
|
12798
|
+
widthSide = isEnd ? 'left' : 'right';
|
|
12799
|
+
} else {
|
|
12800
|
+
widthSide = basePlacement;
|
|
12801
|
+
heightSide = isEnd ? 'top' : 'bottom';
|
|
12802
|
+
}
|
|
12803
|
+
|
|
12804
|
+
const xMin = max(overflow.left, 0);
|
|
12805
|
+
const xMax = max(overflow.right, 0);
|
|
12806
|
+
const yMin = max(overflow.top, 0);
|
|
12807
|
+
const yMax = max(overflow.bottom, 0);
|
|
12808
|
+
const dimensions = {
|
|
12809
|
+
height: rects.floating.height - (['left', 'right'].includes(placement) ? 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom)) : overflow[heightSide]),
|
|
12810
|
+
width: rects.floating.width - (['top', 'bottom'].includes(placement) ? 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right)) : overflow[widthSide])
|
|
12811
|
+
};
|
|
12812
|
+
apply == null ? void 0 : apply({ ...dimensions,
|
|
12813
|
+
...rects
|
|
12814
|
+
});
|
|
12815
|
+
return {
|
|
12816
|
+
data: {
|
|
12817
|
+
skip: true
|
|
12818
|
+
},
|
|
12819
|
+
reset: {
|
|
12820
|
+
rects: true
|
|
12821
|
+
}
|
|
12822
|
+
};
|
|
12823
|
+
}
|
|
12824
|
+
|
|
12825
|
+
};
|
|
12826
|
+
};
|
|
12827
|
+
|
|
12828
|
+
const inline = function (options) {
|
|
12829
|
+
if (options === void 0) {
|
|
12830
|
+
options = {};
|
|
12831
|
+
}
|
|
12832
|
+
|
|
12833
|
+
return {
|
|
12834
|
+
name: 'inline',
|
|
12835
|
+
options,
|
|
12836
|
+
|
|
12837
|
+
async fn(middlewareArguments) {
|
|
12838
|
+
var _middlewareData$inlin, _await$platform$getCl;
|
|
12839
|
+
|
|
12840
|
+
const {
|
|
12841
|
+
placement,
|
|
12842
|
+
elements,
|
|
12843
|
+
rects,
|
|
12844
|
+
platform,
|
|
12845
|
+
strategy,
|
|
12846
|
+
middlewareData
|
|
12847
|
+
} = middlewareArguments; // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
12848
|
+
// ClientRect's bounds, despite the event listener being triggered. A
|
|
12849
|
+
// padding of 2 seems to handle this issue.
|
|
12850
|
+
|
|
12851
|
+
const {
|
|
12852
|
+
padding = 2,
|
|
12853
|
+
x,
|
|
12854
|
+
y
|
|
12855
|
+
} = options;
|
|
12856
|
+
|
|
12857
|
+
if ((_middlewareData$inlin = middlewareData.inline) != null && _middlewareData$inlin.skip) {
|
|
12858
|
+
return {};
|
|
12859
|
+
}
|
|
12860
|
+
|
|
12861
|
+
const fallback = rectToClientRect(await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
12862
|
+
rect: rects.reference,
|
|
12863
|
+
offsetParent: await platform.getOffsetParent({
|
|
12864
|
+
element: elements.floating
|
|
12865
|
+
}),
|
|
12866
|
+
strategy
|
|
12867
|
+
}));
|
|
12868
|
+
const clientRects = Array.from((_await$platform$getCl = await (platform.getClientRects == null ? void 0 : platform.getClientRects({
|
|
12869
|
+
element: elements.reference
|
|
12870
|
+
}))) != null ? _await$platform$getCl : []);
|
|
12871
|
+
const paddingObject = getSideObjectFromPadding(padding);
|
|
12872
|
+
|
|
12873
|
+
function getBoundingClientRect() {
|
|
12874
|
+
// There are two rects and they are disjoined
|
|
12875
|
+
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
|
12876
|
+
var _clientRects$find;
|
|
12877
|
+
|
|
12878
|
+
// Find the first rect in which the point is fully inside
|
|
12879
|
+
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;
|
|
12880
|
+
} // There are 2 or more connected rects
|
|
12881
|
+
|
|
12882
|
+
|
|
12883
|
+
if (clientRects.length >= 2) {
|
|
12884
|
+
if (getMainAxisFromPlacement(placement) === 'x') {
|
|
12885
|
+
const firstRect = clientRects[0];
|
|
12886
|
+
const lastRect = clientRects[clientRects.length - 1];
|
|
12887
|
+
const isTop = getBasePlacement(placement) === 'top';
|
|
12888
|
+
const top = firstRect.top;
|
|
12889
|
+
const bottom = lastRect.bottom;
|
|
12890
|
+
const left = isTop ? firstRect.left : lastRect.left;
|
|
12891
|
+
const right = isTop ? firstRect.right : lastRect.right;
|
|
12892
|
+
const width = right - left;
|
|
12893
|
+
const height = bottom - top;
|
|
12894
|
+
return {
|
|
12895
|
+
top,
|
|
12896
|
+
bottom,
|
|
12897
|
+
left,
|
|
12898
|
+
right,
|
|
12899
|
+
width,
|
|
12900
|
+
height,
|
|
12901
|
+
x: left,
|
|
12902
|
+
y: top
|
|
12903
|
+
};
|
|
12904
|
+
}
|
|
12905
|
+
|
|
12906
|
+
const isLeftPlacement = getBasePlacement(placement) === 'left';
|
|
12907
|
+
const maxRight = max(...clientRects.map(rect => rect.right));
|
|
12908
|
+
const minLeft = min(...clientRects.map(rect => rect.left));
|
|
12909
|
+
const measureRects = clientRects.filter(rect => isLeftPlacement ? rect.left === minLeft : rect.right === maxRight);
|
|
12910
|
+
const top = measureRects[0].top;
|
|
12911
|
+
const bottom = measureRects[measureRects.length - 1].bottom;
|
|
12912
|
+
const left = minLeft;
|
|
12913
|
+
const right = maxRight;
|
|
12914
|
+
const width = right - left;
|
|
12915
|
+
const height = bottom - top;
|
|
12916
|
+
return {
|
|
12917
|
+
top,
|
|
12918
|
+
bottom,
|
|
12919
|
+
left,
|
|
12920
|
+
right,
|
|
12921
|
+
width,
|
|
12922
|
+
height,
|
|
12923
|
+
x: left,
|
|
12924
|
+
y: top
|
|
12925
|
+
};
|
|
12926
|
+
}
|
|
12927
|
+
|
|
12928
|
+
return fallback;
|
|
12929
|
+
}
|
|
12930
|
+
|
|
12931
|
+
return {
|
|
12932
|
+
data: {
|
|
12933
|
+
skip: true
|
|
12934
|
+
},
|
|
12935
|
+
reset: {
|
|
12936
|
+
rects: await platform.getElementRects({
|
|
12937
|
+
reference: {
|
|
12938
|
+
getBoundingClientRect
|
|
12939
|
+
},
|
|
12940
|
+
floating: elements.floating,
|
|
12941
|
+
strategy
|
|
12942
|
+
})
|
|
12943
|
+
}
|
|
12944
|
+
};
|
|
12945
|
+
}
|
|
12946
|
+
|
|
12947
|
+
};
|
|
12948
|
+
};
|
|
12949
|
+
|
|
12950
|
+
|
|
12951
|
+
|
|
12952
|
+
;// CONCATENATED MODULE: ./node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js
|
|
12953
|
+
|
|
12954
|
+
|
|
12955
|
+
|
|
12956
|
+
function isWindow(value) {
|
|
12957
|
+
return (value == null ? void 0 : value.toString()) === '[object Window]';
|
|
12958
|
+
}
|
|
12959
|
+
function getWindow(node) {
|
|
12960
|
+
if (node == null) {
|
|
12961
|
+
return window;
|
|
12962
|
+
}
|
|
12963
|
+
|
|
12964
|
+
if (!isWindow(node)) {
|
|
12965
|
+
const ownerDocument = node.ownerDocument;
|
|
12966
|
+
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
12967
|
+
}
|
|
12968
|
+
|
|
12969
|
+
return node;
|
|
12970
|
+
}
|
|
12971
|
+
|
|
12972
|
+
function getComputedStyle$1(element) {
|
|
12973
|
+
return getWindow(element).getComputedStyle(element);
|
|
12974
|
+
}
|
|
12975
|
+
|
|
12976
|
+
function getNodeName(node) {
|
|
12977
|
+
return isWindow(node) ? '' : node ? (node.nodeName || '').toLowerCase() : '';
|
|
12978
|
+
}
|
|
12979
|
+
|
|
12980
|
+
function isHTMLElement(value) {
|
|
12981
|
+
return value instanceof getWindow(value).HTMLElement;
|
|
12982
|
+
}
|
|
12983
|
+
function isElement(value) {
|
|
12984
|
+
return value instanceof getWindow(value).Element;
|
|
12985
|
+
}
|
|
12986
|
+
function isNode(value) {
|
|
12987
|
+
return value instanceof getWindow(value).Node;
|
|
12988
|
+
}
|
|
12989
|
+
function isShadowRoot(node) {
|
|
12990
|
+
const OwnElement = getWindow(node).ShadowRoot;
|
|
12991
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
12992
|
+
}
|
|
12993
|
+
function isScrollParent(element) {
|
|
12994
|
+
// Firefox wants us to check `-x` and `-y` variations as well
|
|
12995
|
+
const {
|
|
12996
|
+
overflow,
|
|
12997
|
+
overflowX,
|
|
12998
|
+
overflowY
|
|
12999
|
+
} = getComputedStyle$1(element);
|
|
13000
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
13001
|
+
}
|
|
13002
|
+
function isTableElement(element) {
|
|
13003
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
13004
|
+
}
|
|
13005
|
+
function isContainingBlock(element) {
|
|
13006
|
+
// TODO: Try and use feature detection here instead
|
|
13007
|
+
const isFirefox = navigator.userAgent.toLowerCase().includes('firefox');
|
|
13008
|
+
const css = getComputedStyle$1(element); // This is non-exhaustive but covers the most common CSS properties that
|
|
13009
|
+
// create a containing block.
|
|
13010
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
13011
|
+
|
|
13012
|
+
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);
|
|
13013
|
+
}
|
|
13014
|
+
|
|
13015
|
+
const floating_ui_dom_esm_min = Math.min;
|
|
13016
|
+
const floating_ui_dom_esm_max = Math.max;
|
|
13017
|
+
const round = Math.round;
|
|
13018
|
+
|
|
13019
|
+
function getBoundingClientRect(element, includeScale) {
|
|
13020
|
+
if (includeScale === void 0) {
|
|
13021
|
+
includeScale = false;
|
|
13022
|
+
}
|
|
13023
|
+
|
|
13024
|
+
const clientRect = element.getBoundingClientRect();
|
|
13025
|
+
let scaleX = 1;
|
|
13026
|
+
let scaleY = 1;
|
|
13027
|
+
|
|
13028
|
+
if (includeScale && isHTMLElement(element)) {
|
|
13029
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
13030
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
13031
|
+
}
|
|
13032
|
+
|
|
13033
|
+
return {
|
|
13034
|
+
width: clientRect.width / scaleX,
|
|
13035
|
+
height: clientRect.height / scaleY,
|
|
13036
|
+
top: clientRect.top / scaleY,
|
|
13037
|
+
right: clientRect.right / scaleX,
|
|
13038
|
+
bottom: clientRect.bottom / scaleY,
|
|
13039
|
+
left: clientRect.left / scaleX,
|
|
13040
|
+
x: clientRect.left / scaleX,
|
|
13041
|
+
y: clientRect.top / scaleY
|
|
13042
|
+
};
|
|
13043
|
+
}
|
|
13044
|
+
|
|
13045
|
+
function getDocumentElement(node) {
|
|
13046
|
+
return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
|
|
13047
|
+
}
|
|
13048
|
+
|
|
13049
|
+
function getNodeScroll(element) {
|
|
13050
|
+
if (isWindow(element)) {
|
|
13051
|
+
return {
|
|
13052
|
+
scrollLeft: element.pageXOffset,
|
|
13053
|
+
scrollTop: element.pageYOffset
|
|
13054
|
+
};
|
|
13055
|
+
}
|
|
13056
|
+
|
|
13057
|
+
return {
|
|
13058
|
+
scrollLeft: element.scrollLeft,
|
|
13059
|
+
scrollTop: element.scrollTop
|
|
13060
|
+
};
|
|
13061
|
+
}
|
|
13062
|
+
|
|
13063
|
+
function getWindowScrollBarX(element) {
|
|
13064
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
13065
|
+
// incorrect for RTL.
|
|
13066
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
13067
|
+
}
|
|
13068
|
+
|
|
13069
|
+
function isScaled(element) {
|
|
13070
|
+
const rect = getBoundingClientRect(element);
|
|
13071
|
+
return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
|
|
13072
|
+
}
|
|
13073
|
+
|
|
13074
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
13075
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
13076
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
13077
|
+
const rect = getBoundingClientRect(element, isOffsetParentAnElement && isScaled(offsetParent));
|
|
13078
|
+
let scroll = {
|
|
13079
|
+
scrollLeft: 0,
|
|
13080
|
+
scrollTop: 0
|
|
13081
|
+
};
|
|
13082
|
+
const offsets = {
|
|
13083
|
+
x: 0,
|
|
13084
|
+
y: 0
|
|
13085
|
+
};
|
|
13086
|
+
|
|
13087
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
13088
|
+
if (getNodeName(offsetParent) !== 'body' || isScrollParent(documentElement)) {
|
|
13089
|
+
scroll = getNodeScroll(offsetParent);
|
|
13090
|
+
}
|
|
13091
|
+
|
|
13092
|
+
if (isHTMLElement(offsetParent)) {
|
|
13093
|
+
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
13094
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
13095
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
13096
|
+
} else if (documentElement) {
|
|
13097
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
13098
|
+
}
|
|
13099
|
+
}
|
|
13100
|
+
|
|
13101
|
+
return {
|
|
13102
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
13103
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
13104
|
+
width: rect.width,
|
|
13105
|
+
height: rect.height
|
|
13106
|
+
};
|
|
13107
|
+
}
|
|
13108
|
+
|
|
13109
|
+
function getParentNode(node) {
|
|
13110
|
+
if (getNodeName(node) === 'html') {
|
|
13111
|
+
return node;
|
|
13112
|
+
}
|
|
13113
|
+
|
|
13114
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
13115
|
+
// @ts-ignore
|
|
13116
|
+
node.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
13117
|
+
node.parentNode || ( // DOM Element detected
|
|
13118
|
+
isShadowRoot(node) ? node.host : null) || // ShadowRoot detected
|
|
13119
|
+
getDocumentElement(node) // fallback
|
|
13120
|
+
|
|
13121
|
+
);
|
|
13122
|
+
}
|
|
13123
|
+
|
|
13124
|
+
function getTrueOffsetParent(element) {
|
|
13125
|
+
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
13126
|
+
return null;
|
|
13127
|
+
}
|
|
13128
|
+
|
|
13129
|
+
return element.offsetParent;
|
|
13130
|
+
}
|
|
13131
|
+
|
|
13132
|
+
function getContainingBlock(element) {
|
|
13133
|
+
let currentNode = getParentNode(element);
|
|
13134
|
+
|
|
13135
|
+
while (isHTMLElement(currentNode) && !['html', 'body'].includes(getNodeName(currentNode))) {
|
|
13136
|
+
if (isContainingBlock(currentNode)) {
|
|
13137
|
+
return currentNode;
|
|
13138
|
+
} else {
|
|
13139
|
+
currentNode = currentNode.parentNode;
|
|
13140
|
+
}
|
|
13141
|
+
}
|
|
13142
|
+
|
|
13143
|
+
return null;
|
|
13144
|
+
} // Gets the closest ancestor positioned element. Handles some edge cases,
|
|
13145
|
+
// such as table ancestors and cross browser bugs.
|
|
13146
|
+
|
|
13147
|
+
|
|
13148
|
+
function getOffsetParent(element) {
|
|
13149
|
+
const window = getWindow(element);
|
|
13150
|
+
let offsetParent = getTrueOffsetParent(element);
|
|
13151
|
+
|
|
13152
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
13153
|
+
offsetParent = getTrueOffsetParent(offsetParent);
|
|
13154
|
+
}
|
|
13155
|
+
|
|
13156
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
13157
|
+
return window;
|
|
13158
|
+
}
|
|
13159
|
+
|
|
13160
|
+
return offsetParent || getContainingBlock(element) || window;
|
|
13161
|
+
}
|
|
13162
|
+
|
|
13163
|
+
function getDimensions(element) {
|
|
13164
|
+
return {
|
|
13165
|
+
width: element.offsetWidth,
|
|
13166
|
+
height: element.offsetHeight
|
|
13167
|
+
};
|
|
13168
|
+
}
|
|
13169
|
+
|
|
13170
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
13171
|
+
let {
|
|
13172
|
+
rect,
|
|
13173
|
+
offsetParent,
|
|
13174
|
+
strategy
|
|
13175
|
+
} = _ref;
|
|
13176
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
13177
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
13178
|
+
|
|
13179
|
+
if (offsetParent === documentElement) {
|
|
13180
|
+
return rect;
|
|
13181
|
+
}
|
|
13182
|
+
|
|
13183
|
+
let scroll = {
|
|
13184
|
+
scrollLeft: 0,
|
|
13185
|
+
scrollTop: 0
|
|
13186
|
+
};
|
|
13187
|
+
const offsets = {
|
|
13188
|
+
x: 0,
|
|
13189
|
+
y: 0
|
|
13190
|
+
};
|
|
13191
|
+
|
|
13192
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
13193
|
+
if (getNodeName(offsetParent) !== 'body' || isScrollParent(documentElement)) {
|
|
13194
|
+
scroll = getNodeScroll(offsetParent);
|
|
13195
|
+
}
|
|
13196
|
+
|
|
13197
|
+
if (isHTMLElement(offsetParent)) {
|
|
13198
|
+
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
13199
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
13200
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
13201
|
+
} // This doesn't appear to be need to be negated.
|
|
13202
|
+
// else if (documentElement) {
|
|
13203
|
+
// offsets.x = getWindowScrollBarX(documentElement);
|
|
13204
|
+
// }
|
|
13205
|
+
|
|
13206
|
+
}
|
|
13207
|
+
|
|
13208
|
+
return { ...rect,
|
|
13209
|
+
x: rect.x - scroll.scrollLeft + offsets.x,
|
|
13210
|
+
y: rect.y - scroll.scrollTop + offsets.y
|
|
13211
|
+
};
|
|
13212
|
+
}
|
|
13213
|
+
|
|
13214
|
+
function getViewportRect(element) {
|
|
13215
|
+
const win = getWindow(element);
|
|
13216
|
+
const html = getDocumentElement(element);
|
|
13217
|
+
const visualViewport = win.visualViewport;
|
|
13218
|
+
let width = html.clientWidth;
|
|
13219
|
+
let height = html.clientHeight;
|
|
13220
|
+
let x = 0;
|
|
13221
|
+
let y = 0;
|
|
13222
|
+
|
|
13223
|
+
if (visualViewport) {
|
|
13224
|
+
width = visualViewport.width;
|
|
13225
|
+
height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
|
|
13226
|
+
// In Chrome, it returns a value very close to 0 (+/-) but contains rounding
|
|
13227
|
+
// errors due to floating point numbers, so we need to check precision.
|
|
13228
|
+
// Safari returns a number <= 0, usually < -1 when pinch-zoomed
|
|
13229
|
+
|
|
13230
|
+
if (Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) < 0.01) {
|
|
13231
|
+
x = visualViewport.offsetLeft;
|
|
13232
|
+
y = visualViewport.offsetTop;
|
|
13233
|
+
}
|
|
13234
|
+
}
|
|
13235
|
+
|
|
13236
|
+
return {
|
|
13237
|
+
width,
|
|
13238
|
+
height,
|
|
13239
|
+
x,
|
|
13240
|
+
y
|
|
13241
|
+
};
|
|
13242
|
+
}
|
|
13243
|
+
|
|
13244
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
13245
|
+
|
|
13246
|
+
function getDocumentRect(element) {
|
|
13247
|
+
var _element$ownerDocumen;
|
|
13248
|
+
|
|
13249
|
+
const html = getDocumentElement(element);
|
|
13250
|
+
const scroll = getNodeScroll(element);
|
|
13251
|
+
const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
13252
|
+
const width = floating_ui_dom_esm_max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
13253
|
+
const height = floating_ui_dom_esm_max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
13254
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
13255
|
+
const y = -scroll.scrollTop;
|
|
13256
|
+
|
|
13257
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
13258
|
+
x += floating_ui_dom_esm_max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
13259
|
+
}
|
|
13260
|
+
|
|
13261
|
+
return {
|
|
13262
|
+
width,
|
|
13263
|
+
height,
|
|
13264
|
+
x,
|
|
13265
|
+
y
|
|
13266
|
+
};
|
|
13267
|
+
}
|
|
13268
|
+
|
|
13269
|
+
function getScrollParent(node) {
|
|
13270
|
+
if (['html', 'body', '#document'].includes(getNodeName(node))) {
|
|
13271
|
+
// @ts-ignore assume body is always available
|
|
13272
|
+
return node.ownerDocument.body;
|
|
13273
|
+
}
|
|
13274
|
+
|
|
13275
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
13276
|
+
return node;
|
|
13277
|
+
}
|
|
13278
|
+
|
|
13279
|
+
return getScrollParent(getParentNode(node));
|
|
13280
|
+
}
|
|
13281
|
+
|
|
13282
|
+
function getScrollParents(node, list) {
|
|
13283
|
+
var _node$ownerDocument;
|
|
13284
|
+
|
|
13285
|
+
if (list === void 0) {
|
|
13286
|
+
list = [];
|
|
13287
|
+
}
|
|
13288
|
+
|
|
13289
|
+
const scrollParent = getScrollParent(node);
|
|
13290
|
+
const isBody = scrollParent === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
|
|
13291
|
+
const win = getWindow(scrollParent);
|
|
13292
|
+
const target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
13293
|
+
const updatedList = list.concat(target);
|
|
13294
|
+
return isBody ? updatedList : // @ts-ignore: isBody tells us target will be an HTMLElement here
|
|
13295
|
+
updatedList.concat(getScrollParents(getParentNode(target)));
|
|
13296
|
+
}
|
|
13297
|
+
|
|
13298
|
+
function contains(parent, child) {
|
|
13299
|
+
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method
|
|
13300
|
+
|
|
13301
|
+
if (parent.contains(child)) {
|
|
13302
|
+
return true;
|
|
13303
|
+
} // then fallback to custom implementation with Shadow DOM support
|
|
13304
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
13305
|
+
let next = child;
|
|
13306
|
+
|
|
13307
|
+
do {
|
|
13308
|
+
// use `===` replace node.isSameNode()
|
|
13309
|
+
if (next && parent === next) {
|
|
13310
|
+
return true;
|
|
13311
|
+
} // @ts-ignore: need a better way to handle this...
|
|
13312
|
+
|
|
13313
|
+
|
|
13314
|
+
next = next.parentNode || next.host;
|
|
13315
|
+
} while (next);
|
|
13316
|
+
}
|
|
13317
|
+
|
|
13318
|
+
return false;
|
|
13319
|
+
}
|
|
13320
|
+
|
|
13321
|
+
function getInnerBoundingClientRect(element) {
|
|
13322
|
+
const clientRect = getBoundingClientRect(element);
|
|
13323
|
+
const top = clientRect.top + element.clientTop;
|
|
13324
|
+
const left = clientRect.left + element.clientLeft;
|
|
13325
|
+
return {
|
|
13326
|
+
top,
|
|
13327
|
+
left,
|
|
13328
|
+
x: left,
|
|
13329
|
+
y: top,
|
|
13330
|
+
right: left + element.clientWidth,
|
|
13331
|
+
bottom: top + element.clientHeight,
|
|
13332
|
+
width: element.clientWidth,
|
|
13333
|
+
height: element.clientHeight
|
|
13334
|
+
};
|
|
13335
|
+
}
|
|
13336
|
+
|
|
13337
|
+
function getClientRectFromClippingParent(element, clippingParent) {
|
|
13338
|
+
if (clippingParent === 'viewport') {
|
|
13339
|
+
return rectToClientRect(getViewportRect(element));
|
|
13340
|
+
}
|
|
13341
|
+
|
|
13342
|
+
if (isElement(clippingParent)) {
|
|
13343
|
+
return getInnerBoundingClientRect(clippingParent);
|
|
13344
|
+
}
|
|
13345
|
+
|
|
13346
|
+
return rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
13347
|
+
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
13348
|
+
// clipping (or hiding) overflowing elements with a position different from
|
|
13349
|
+
// `initial`
|
|
13350
|
+
|
|
13351
|
+
|
|
13352
|
+
function getClippingParents(element) {
|
|
13353
|
+
const clippingParents = getScrollParents(getParentNode(element));
|
|
13354
|
+
const canEscapeClipping = ['absolute', 'fixed'].includes(getComputedStyle$1(element).position);
|
|
13355
|
+
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
13356
|
+
|
|
13357
|
+
if (!isElement(clipperElement)) {
|
|
13358
|
+
return [];
|
|
13359
|
+
} // @ts-ignore isElement check ensures we return Array<Element>
|
|
13360
|
+
|
|
13361
|
+
|
|
13362
|
+
return clippingParents.filter(clippingParent => isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body');
|
|
13363
|
+
} // Gets the maximum area that the element is visible in due to any number of
|
|
13364
|
+
// clipping parents
|
|
13365
|
+
|
|
13366
|
+
|
|
13367
|
+
function getClippingClientRect(_ref) {
|
|
13368
|
+
let {
|
|
13369
|
+
element,
|
|
13370
|
+
boundary,
|
|
13371
|
+
rootBoundary
|
|
13372
|
+
} = _ref;
|
|
13373
|
+
const mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
13374
|
+
const clippingParents = [...mainClippingParents, rootBoundary];
|
|
13375
|
+
const firstClippingParent = clippingParents[0];
|
|
13376
|
+
const clippingRect = clippingParents.reduce((accRect, clippingParent) => {
|
|
13377
|
+
const rect = getClientRectFromClippingParent(element, clippingParent);
|
|
13378
|
+
accRect.top = floating_ui_dom_esm_max(rect.top, accRect.top);
|
|
13379
|
+
accRect.right = floating_ui_dom_esm_min(rect.right, accRect.right);
|
|
13380
|
+
accRect.bottom = floating_ui_dom_esm_min(rect.bottom, accRect.bottom);
|
|
13381
|
+
accRect.left = floating_ui_dom_esm_max(rect.left, accRect.left);
|
|
13382
|
+
return accRect;
|
|
13383
|
+
}, getClientRectFromClippingParent(element, firstClippingParent));
|
|
13384
|
+
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
13385
|
+
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
13386
|
+
clippingRect.x = clippingRect.left;
|
|
13387
|
+
clippingRect.y = clippingRect.top;
|
|
13388
|
+
return clippingRect;
|
|
13389
|
+
}
|
|
13390
|
+
|
|
13391
|
+
const platform = {
|
|
13392
|
+
getElementRects: _ref => {
|
|
13393
|
+
let {
|
|
13394
|
+
reference,
|
|
13395
|
+
floating,
|
|
13396
|
+
strategy
|
|
13397
|
+
} = _ref;
|
|
13398
|
+
return {
|
|
13399
|
+
reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),
|
|
13400
|
+
floating: { ...getDimensions(floating),
|
|
13401
|
+
x: 0,
|
|
13402
|
+
y: 0
|
|
13403
|
+
}
|
|
13404
|
+
};
|
|
13405
|
+
},
|
|
13406
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: args => convertOffsetParentRelativeRectToViewportRelativeRect(args),
|
|
13407
|
+
getOffsetParent: _ref2 => {
|
|
13408
|
+
let {
|
|
13409
|
+
element
|
|
13410
|
+
} = _ref2;
|
|
13411
|
+
return getOffsetParent(element);
|
|
13412
|
+
},
|
|
13413
|
+
isElement: value => isElement(value),
|
|
13414
|
+
getDocumentElement: _ref3 => {
|
|
13415
|
+
let {
|
|
13416
|
+
element
|
|
13417
|
+
} = _ref3;
|
|
13418
|
+
return getDocumentElement(element);
|
|
13419
|
+
},
|
|
13420
|
+
getClippingClientRect: args => getClippingClientRect(args),
|
|
13421
|
+
getDimensions: _ref4 => {
|
|
13422
|
+
let {
|
|
13423
|
+
element
|
|
13424
|
+
} = _ref4;
|
|
13425
|
+
return getDimensions(element);
|
|
13426
|
+
},
|
|
13427
|
+
getClientRects: _ref5 => {
|
|
13428
|
+
let {
|
|
13429
|
+
element
|
|
13430
|
+
} = _ref5;
|
|
13431
|
+
return element.getClientRects();
|
|
13432
|
+
}
|
|
13433
|
+
};
|
|
13434
|
+
|
|
13435
|
+
const floating_ui_dom_esm_computePosition = (reference, floating, options) => computePosition(reference, floating, {
|
|
13436
|
+
platform,
|
|
13437
|
+
...options
|
|
13438
|
+
});
|
|
13439
|
+
|
|
13440
|
+
|
|
13441
|
+
|
|
13442
|
+
;// CONCATENATED MODULE: ./node_modules/floating-vue/dist/floating-vue.es.js
|
|
13443
|
+
/* provided dependency */ var console = __webpack_require__(5108);
|
|
13444
|
+
var __defProp = Object.defineProperty;
|
|
13445
|
+
var __defProps = Object.defineProperties;
|
|
13446
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
13447
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
13448
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13449
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13450
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13451
|
+
var __spreadValues = (a, b) => {
|
|
13452
|
+
for (var prop in b || (b = {}))
|
|
13453
|
+
if (__hasOwnProp.call(b, prop))
|
|
13454
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13455
|
+
if (__getOwnPropSymbols)
|
|
13456
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
13457
|
+
if (__propIsEnum.call(b, prop))
|
|
13458
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13459
|
+
}
|
|
13460
|
+
return a;
|
|
13461
|
+
};
|
|
13462
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
13463
|
+
var __objRest = (source, exclude) => {
|
|
13464
|
+
var target = {};
|
|
13465
|
+
for (var prop in source)
|
|
13466
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13467
|
+
target[prop] = source[prop];
|
|
13468
|
+
if (source != null && __getOwnPropSymbols)
|
|
13469
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
13470
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
13471
|
+
target[prop] = source[prop];
|
|
13472
|
+
}
|
|
13473
|
+
return target;
|
|
13474
|
+
};
|
|
13475
|
+
|
|
13476
|
+
|
|
13477
|
+
function floating_vue_es_assign(to, from) {
|
|
13478
|
+
for (const key in from) {
|
|
13479
|
+
if (Object.prototype.hasOwnProperty.call(from, key)) {
|
|
13480
|
+
if (typeof from[key] === "object" && to[key]) {
|
|
13481
|
+
floating_vue_es_assign(to[key], from[key]);
|
|
13482
|
+
} else {
|
|
13483
|
+
to[key] = from[key];
|
|
13484
|
+
}
|
|
13485
|
+
}
|
|
13486
|
+
}
|
|
13487
|
+
}
|
|
13488
|
+
const config = {
|
|
13489
|
+
disabled: false,
|
|
13490
|
+
distance: 5,
|
|
13491
|
+
skidding: 0,
|
|
13492
|
+
container: "body",
|
|
13493
|
+
boundary: void 0,
|
|
13494
|
+
instantMove: false,
|
|
13495
|
+
disposeTimeout: 5e3,
|
|
13496
|
+
popperTriggers: [],
|
|
13497
|
+
strategy: "absolute",
|
|
13498
|
+
preventOverflow: true,
|
|
13499
|
+
flip: true,
|
|
13500
|
+
shift: true,
|
|
13501
|
+
overflowPadding: 0,
|
|
13502
|
+
arrowPadding: 0,
|
|
13503
|
+
arrowOverflow: true,
|
|
13504
|
+
themes: {
|
|
13505
|
+
tooltip: {
|
|
13506
|
+
placement: "top",
|
|
13507
|
+
triggers: ["hover", "focus", "touch"],
|
|
13508
|
+
hideTriggers: (events) => [...events, "click"],
|
|
13509
|
+
delay: {
|
|
13510
|
+
show: 200,
|
|
13511
|
+
hide: 0
|
|
13512
|
+
},
|
|
13513
|
+
handleResize: false,
|
|
13514
|
+
html: false,
|
|
13515
|
+
loadingContent: "..."
|
|
13516
|
+
},
|
|
13517
|
+
dropdown: {
|
|
13518
|
+
placement: "bottom",
|
|
13519
|
+
triggers: ["click"],
|
|
13520
|
+
delay: 0,
|
|
13521
|
+
handleResize: true,
|
|
13522
|
+
autoHide: true
|
|
13523
|
+
},
|
|
13524
|
+
menu: {
|
|
13525
|
+
$extend: "dropdown",
|
|
13526
|
+
triggers: ["hover", "focus"],
|
|
13527
|
+
popperTriggers: ["hover", "focus"],
|
|
13528
|
+
delay: {
|
|
13529
|
+
show: 0,
|
|
13530
|
+
hide: 400
|
|
13531
|
+
}
|
|
13532
|
+
}
|
|
13533
|
+
}
|
|
13534
|
+
};
|
|
13535
|
+
function getDefaultConfig(theme, key) {
|
|
13536
|
+
let themeConfig = config.themes[theme] || {};
|
|
13537
|
+
let value;
|
|
13538
|
+
do {
|
|
13539
|
+
value = themeConfig[key];
|
|
13540
|
+
if (typeof value === "undefined") {
|
|
13541
|
+
if (themeConfig.$extend) {
|
|
13542
|
+
themeConfig = config.themes[themeConfig.$extend] || {};
|
|
13543
|
+
} else {
|
|
13544
|
+
themeConfig = null;
|
|
13545
|
+
value = config[key];
|
|
13546
|
+
}
|
|
13547
|
+
} else {
|
|
13548
|
+
themeConfig = null;
|
|
13549
|
+
}
|
|
13550
|
+
} while (themeConfig);
|
|
13551
|
+
return value;
|
|
13552
|
+
}
|
|
13553
|
+
function getThemeClasses(theme) {
|
|
13554
|
+
const result = [theme];
|
|
13555
|
+
let themeConfig = config.themes[theme] || {};
|
|
13556
|
+
do {
|
|
13557
|
+
if (themeConfig.$extend && !themeConfig.$resetCss) {
|
|
13558
|
+
result.push(themeConfig.$extend);
|
|
13559
|
+
themeConfig = config.themes[themeConfig.$extend] || {};
|
|
13560
|
+
} else {
|
|
13561
|
+
themeConfig = null;
|
|
13562
|
+
}
|
|
13563
|
+
} while (themeConfig);
|
|
13564
|
+
return result.map((c) => `v-popper--theme-${c}`);
|
|
13565
|
+
}
|
|
13566
|
+
function getAllParentThemes(theme) {
|
|
13567
|
+
const result = [theme];
|
|
13568
|
+
let themeConfig = config.themes[theme] || {};
|
|
13569
|
+
do {
|
|
13570
|
+
if (themeConfig.$extend) {
|
|
13571
|
+
result.push(themeConfig.$extend);
|
|
13572
|
+
themeConfig = config.themes[themeConfig.$extend] || {};
|
|
13573
|
+
} else {
|
|
13574
|
+
themeConfig = null;
|
|
13575
|
+
}
|
|
13576
|
+
} while (themeConfig);
|
|
13577
|
+
return result;
|
|
13578
|
+
}
|
|
13579
|
+
var vueResize = "";
|
|
13580
|
+
let supportsPassive = false;
|
|
13581
|
+
if (typeof window !== "undefined") {
|
|
13582
|
+
supportsPassive = false;
|
|
13583
|
+
try {
|
|
13584
|
+
const opts = Object.defineProperty({}, "passive", {
|
|
13585
|
+
get() {
|
|
13586
|
+
supportsPassive = true;
|
|
13587
|
+
}
|
|
13588
|
+
});
|
|
13589
|
+
window.addEventListener("test", null, opts);
|
|
13590
|
+
} catch (e) {
|
|
13591
|
+
}
|
|
13592
|
+
}
|
|
13593
|
+
let isIOS = false;
|
|
13594
|
+
if (typeof window !== "undefined" && typeof navigator !== "undefined") {
|
|
13595
|
+
isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
13596
|
+
}
|
|
13597
|
+
const placements = ["auto", "top", "bottom", "left", "right"].reduce((acc, base) => acc.concat([
|
|
13598
|
+
base,
|
|
13599
|
+
`${base}-start`,
|
|
13600
|
+
`${base}-end`
|
|
13601
|
+
]), []);
|
|
13602
|
+
const SHOW_EVENT_MAP = {
|
|
13603
|
+
hover: "mouseenter",
|
|
13604
|
+
focus: "focus",
|
|
13605
|
+
click: "click",
|
|
13606
|
+
touch: "touchstart"
|
|
13607
|
+
};
|
|
13608
|
+
const HIDE_EVENT_MAP = {
|
|
13609
|
+
hover: "mouseleave",
|
|
13610
|
+
focus: "blur",
|
|
13611
|
+
click: "click",
|
|
13612
|
+
touch: "touchend"
|
|
13613
|
+
};
|
|
13614
|
+
function removeFromArray(array, item) {
|
|
13615
|
+
const index = array.indexOf(item);
|
|
13616
|
+
if (index !== -1) {
|
|
13617
|
+
array.splice(index, 1);
|
|
13618
|
+
}
|
|
13619
|
+
}
|
|
13620
|
+
function nextFrame() {
|
|
13621
|
+
return new Promise((resolve) => requestAnimationFrame(() => {
|
|
13622
|
+
requestAnimationFrame(resolve);
|
|
13623
|
+
}));
|
|
13624
|
+
}
|
|
13625
|
+
const shownPoppers = [];
|
|
13626
|
+
let hidingPopper = null;
|
|
13627
|
+
const shownPoppersByTheme = {};
|
|
13628
|
+
function getShownPoppersByTheme(theme) {
|
|
13629
|
+
let list = shownPoppersByTheme[theme];
|
|
13630
|
+
if (!list) {
|
|
13631
|
+
list = shownPoppersByTheme[theme] = [];
|
|
13632
|
+
}
|
|
13633
|
+
return list;
|
|
13634
|
+
}
|
|
13635
|
+
let Element = function() {
|
|
13636
|
+
};
|
|
13637
|
+
if (typeof window !== "undefined") {
|
|
13638
|
+
Element = window.Element;
|
|
13639
|
+
}
|
|
13640
|
+
function defaultPropFactory(prop) {
|
|
13641
|
+
return function() {
|
|
13642
|
+
const props = this.$props;
|
|
13643
|
+
return getDefaultConfig(props.theme, prop);
|
|
13644
|
+
};
|
|
13645
|
+
}
|
|
13646
|
+
const PROVIDE_KEY = "__floating-vue__popper";
|
|
13647
|
+
var PrivatePopper = () => ({
|
|
13648
|
+
name: "VPopper",
|
|
13649
|
+
props: {
|
|
13650
|
+
theme: {
|
|
13651
|
+
type: String,
|
|
13652
|
+
required: true
|
|
13653
|
+
},
|
|
13654
|
+
targetNodes: {
|
|
13655
|
+
type: Function,
|
|
13656
|
+
required: true
|
|
13657
|
+
},
|
|
13658
|
+
referenceNode: {
|
|
13659
|
+
type: Function,
|
|
13660
|
+
required: true
|
|
13661
|
+
},
|
|
13662
|
+
popperNode: {
|
|
13663
|
+
type: Function,
|
|
13664
|
+
required: true
|
|
13665
|
+
},
|
|
13666
|
+
shown: {
|
|
13667
|
+
type: Boolean,
|
|
13668
|
+
default: false
|
|
13669
|
+
},
|
|
13670
|
+
showGroup: {
|
|
13671
|
+
type: String,
|
|
13672
|
+
default: null
|
|
13673
|
+
},
|
|
13674
|
+
ariaId: {
|
|
13675
|
+
default: null
|
|
13676
|
+
},
|
|
13677
|
+
disabled: {
|
|
13678
|
+
type: Boolean,
|
|
13679
|
+
default: defaultPropFactory("disabled")
|
|
13680
|
+
},
|
|
13681
|
+
positioningDisabled: {
|
|
13682
|
+
type: Boolean,
|
|
13683
|
+
default: defaultPropFactory("positioningDisabled")
|
|
13684
|
+
},
|
|
13685
|
+
placement: {
|
|
13686
|
+
type: String,
|
|
13687
|
+
default: defaultPropFactory("placement"),
|
|
13688
|
+
validator: (value) => placements.includes(value)
|
|
13689
|
+
},
|
|
13690
|
+
delay: {
|
|
13691
|
+
type: [String, Number, Object],
|
|
13692
|
+
default: defaultPropFactory("delay")
|
|
13693
|
+
},
|
|
13694
|
+
distance: {
|
|
13695
|
+
type: [Number, String],
|
|
13696
|
+
default: defaultPropFactory("distance")
|
|
13697
|
+
},
|
|
13698
|
+
skidding: {
|
|
13699
|
+
type: [Number, String],
|
|
13700
|
+
default: defaultPropFactory("skidding")
|
|
13701
|
+
},
|
|
13702
|
+
triggers: {
|
|
13703
|
+
type: Array,
|
|
13704
|
+
default: defaultPropFactory("triggers")
|
|
13705
|
+
},
|
|
13706
|
+
showTriggers: {
|
|
13707
|
+
type: [Array, Function],
|
|
13708
|
+
default: defaultPropFactory("showTriggers")
|
|
13709
|
+
},
|
|
13710
|
+
hideTriggers: {
|
|
13711
|
+
type: [Array, Function],
|
|
13712
|
+
default: defaultPropFactory("hideTriggers")
|
|
13713
|
+
},
|
|
13714
|
+
popperTriggers: {
|
|
13715
|
+
type: Array,
|
|
13716
|
+
default: defaultPropFactory("popperTriggers")
|
|
13717
|
+
},
|
|
13718
|
+
popperShowTriggers: {
|
|
13719
|
+
type: [Array, Function],
|
|
13720
|
+
default: defaultPropFactory("popperShowTriggers")
|
|
13721
|
+
},
|
|
13722
|
+
popperHideTriggers: {
|
|
13723
|
+
type: [Array, Function],
|
|
13724
|
+
default: defaultPropFactory("popperHideTriggers")
|
|
13725
|
+
},
|
|
13726
|
+
container: {
|
|
13727
|
+
type: [String, Object, Element, Boolean],
|
|
13728
|
+
default: defaultPropFactory("container")
|
|
13729
|
+
},
|
|
13730
|
+
boundary: {
|
|
13731
|
+
type: [String, Element],
|
|
13732
|
+
default: defaultPropFactory("boundary")
|
|
13733
|
+
},
|
|
13734
|
+
strategy: {
|
|
13735
|
+
type: String,
|
|
13736
|
+
validator: (value) => ["absolute", "fixed"].includes(value),
|
|
13737
|
+
default: defaultPropFactory("strategy")
|
|
13738
|
+
},
|
|
13739
|
+
autoHide: {
|
|
13740
|
+
type: [Boolean, Function],
|
|
13741
|
+
default: defaultPropFactory("autoHide")
|
|
13742
|
+
},
|
|
13743
|
+
handleResize: {
|
|
13744
|
+
type: Boolean,
|
|
13745
|
+
default: defaultPropFactory("handleResize")
|
|
13746
|
+
},
|
|
13747
|
+
instantMove: {
|
|
13748
|
+
type: Boolean,
|
|
13749
|
+
default: defaultPropFactory("instantMove")
|
|
13750
|
+
},
|
|
13751
|
+
eagerMount: {
|
|
13752
|
+
type: Boolean,
|
|
13753
|
+
default: defaultPropFactory("eagerMount")
|
|
13754
|
+
},
|
|
13755
|
+
popperClass: {
|
|
13756
|
+
type: [String, Array, Object],
|
|
13757
|
+
default: defaultPropFactory("popperClass")
|
|
13758
|
+
},
|
|
13759
|
+
computeTransformOrigin: {
|
|
13760
|
+
type: Boolean,
|
|
13761
|
+
default: defaultPropFactory("computeTransformOrigin")
|
|
13762
|
+
},
|
|
13763
|
+
autoMinSize: {
|
|
13764
|
+
type: Boolean,
|
|
13765
|
+
default: defaultPropFactory("autoMinSize")
|
|
13766
|
+
},
|
|
13767
|
+
autoSize: {
|
|
13768
|
+
type: [Boolean, String],
|
|
13769
|
+
default: defaultPropFactory("autoSize")
|
|
13770
|
+
},
|
|
13771
|
+
autoMaxSize: {
|
|
13772
|
+
type: Boolean,
|
|
13773
|
+
default: defaultPropFactory("autoMaxSize")
|
|
13774
|
+
},
|
|
13775
|
+
autoBoundaryMaxSize: {
|
|
13776
|
+
type: Boolean,
|
|
13777
|
+
default: defaultPropFactory("autoBoundaryMaxSize")
|
|
13778
|
+
},
|
|
13779
|
+
preventOverflow: {
|
|
13780
|
+
type: Boolean,
|
|
13781
|
+
default: defaultPropFactory("preventOverflow")
|
|
13782
|
+
},
|
|
13783
|
+
overflowPadding: {
|
|
13784
|
+
type: [Number, String],
|
|
13785
|
+
default: defaultPropFactory("overflowPadding")
|
|
13786
|
+
},
|
|
13787
|
+
arrowPadding: {
|
|
13788
|
+
type: [Number, String],
|
|
13789
|
+
default: defaultPropFactory("arrowPadding")
|
|
13790
|
+
},
|
|
13791
|
+
arrowOverflow: {
|
|
13792
|
+
type: Boolean,
|
|
13793
|
+
default: defaultPropFactory("arrowOverflow")
|
|
13794
|
+
},
|
|
13795
|
+
flip: {
|
|
13796
|
+
type: Boolean,
|
|
13797
|
+
default: defaultPropFactory("flip")
|
|
13798
|
+
},
|
|
13799
|
+
shift: {
|
|
13800
|
+
type: Boolean,
|
|
13801
|
+
default: defaultPropFactory("shift")
|
|
13802
|
+
},
|
|
13803
|
+
shiftCrossAxis: {
|
|
13804
|
+
type: Boolean,
|
|
13805
|
+
default: defaultPropFactory("shiftCrossAxis")
|
|
13806
|
+
}
|
|
13807
|
+
},
|
|
13808
|
+
provide() {
|
|
13809
|
+
return {
|
|
13810
|
+
[PROVIDE_KEY]: {
|
|
13811
|
+
parentPopper: this
|
|
13812
|
+
}
|
|
13813
|
+
};
|
|
13814
|
+
},
|
|
13815
|
+
inject: {
|
|
13816
|
+
[PROVIDE_KEY]: { default: null }
|
|
13817
|
+
},
|
|
13818
|
+
data() {
|
|
13819
|
+
return {
|
|
13820
|
+
isShown: false,
|
|
13821
|
+
isMounted: false,
|
|
13822
|
+
skipTransition: false,
|
|
13823
|
+
classes: {
|
|
13824
|
+
showFrom: false,
|
|
13825
|
+
showTo: false,
|
|
13826
|
+
hideFrom: false,
|
|
13827
|
+
hideTo: true
|
|
13828
|
+
},
|
|
13829
|
+
result: {
|
|
13830
|
+
x: 0,
|
|
13831
|
+
y: 0,
|
|
13832
|
+
placement: "",
|
|
13833
|
+
strategy: this.strategy,
|
|
13834
|
+
arrow: {
|
|
13835
|
+
x: 0,
|
|
13836
|
+
y: 0,
|
|
13837
|
+
centerOffset: 0
|
|
13838
|
+
},
|
|
13839
|
+
transformOrigin: null
|
|
13840
|
+
},
|
|
13841
|
+
shownChildren: /* @__PURE__ */ new Set(),
|
|
13842
|
+
lastAutoHide: true
|
|
13843
|
+
};
|
|
13844
|
+
},
|
|
13845
|
+
computed: {
|
|
13846
|
+
popperId() {
|
|
13847
|
+
return this.ariaId != null ? this.ariaId : this.randomId;
|
|
13848
|
+
},
|
|
13849
|
+
shouldMountContent() {
|
|
13850
|
+
return this.eagerMount || this.isMounted;
|
|
13851
|
+
},
|
|
13852
|
+
slotData() {
|
|
13853
|
+
return {
|
|
13854
|
+
popperId: this.popperId,
|
|
13855
|
+
isShown: this.isShown,
|
|
13856
|
+
shouldMountContent: this.shouldMountContent,
|
|
13857
|
+
skipTransition: this.skipTransition,
|
|
13858
|
+
autoHide: typeof this.autoHide === "function" ? this.lastAutoHide : this.autoHide,
|
|
13859
|
+
show: this.show,
|
|
13860
|
+
hide: this.hide,
|
|
13861
|
+
handleResize: this.handleResize,
|
|
13862
|
+
onResize: this.onResize,
|
|
13863
|
+
classes: __spreadProps(__spreadValues({}, this.classes), {
|
|
13864
|
+
popperClass: this.popperClass
|
|
13865
|
+
}),
|
|
13866
|
+
result: this.positioningDisabled ? null : this.result
|
|
13867
|
+
};
|
|
13868
|
+
},
|
|
13869
|
+
parentPopper() {
|
|
13870
|
+
var _a;
|
|
13871
|
+
return (_a = this[PROVIDE_KEY]) == null ? void 0 : _a.parentPopper;
|
|
13872
|
+
},
|
|
13873
|
+
hasPopperShowTriggerHover() {
|
|
13874
|
+
var _a, _b;
|
|
13875
|
+
return ((_a = this.popperTriggers) == null ? void 0 : _a.includes("hover")) || ((_b = this.popperShowTriggers) == null ? void 0 : _b.includes("hover"));
|
|
13876
|
+
}
|
|
13877
|
+
},
|
|
13878
|
+
watch: __spreadValues(__spreadValues({
|
|
13879
|
+
shown: "$_autoShowHide",
|
|
13880
|
+
disabled(value) {
|
|
13881
|
+
if (value) {
|
|
13882
|
+
this.dispose();
|
|
13883
|
+
} else {
|
|
13884
|
+
this.init();
|
|
13885
|
+
}
|
|
13886
|
+
},
|
|
13887
|
+
async container() {
|
|
13888
|
+
if (this.isShown) {
|
|
13889
|
+
this.$_ensureTeleport();
|
|
13890
|
+
await this.$_computePosition();
|
|
13891
|
+
}
|
|
13892
|
+
}
|
|
13893
|
+
}, [
|
|
13894
|
+
"triggers",
|
|
13895
|
+
"positioningDisabled"
|
|
13896
|
+
].reduce((acc, prop) => {
|
|
13897
|
+
acc[prop] = "$_refreshListeners";
|
|
13898
|
+
return acc;
|
|
13899
|
+
}, {})), [
|
|
13900
|
+
"placement",
|
|
13901
|
+
"distance",
|
|
13902
|
+
"skidding",
|
|
13903
|
+
"boundary",
|
|
13904
|
+
"strategy",
|
|
13905
|
+
"overflowPadding",
|
|
13906
|
+
"arrowPadding",
|
|
13907
|
+
"preventOverflow",
|
|
13908
|
+
"shift",
|
|
13909
|
+
"shiftCrossAxis",
|
|
13910
|
+
"flip"
|
|
13911
|
+
].reduce((acc, prop) => {
|
|
13912
|
+
acc[prop] = "$_computePosition";
|
|
13913
|
+
return acc;
|
|
13914
|
+
}, {})),
|
|
13915
|
+
created() {
|
|
13916
|
+
this.$_isDisposed = true;
|
|
13917
|
+
this.randomId = `popper_${[Math.random(), Date.now()].map((n) => n.toString(36).substring(2, 10)).join("_")}`;
|
|
13918
|
+
if (this.autoMinSize) {
|
|
13919
|
+
console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.');
|
|
13920
|
+
}
|
|
13921
|
+
if (this.autoMaxSize) {
|
|
13922
|
+
console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
|
|
13923
|
+
}
|
|
13924
|
+
},
|
|
13925
|
+
mounted() {
|
|
13926
|
+
this.init();
|
|
13927
|
+
this.$_detachPopperNode();
|
|
13928
|
+
},
|
|
13929
|
+
activated() {
|
|
13930
|
+
this.$_autoShowHide();
|
|
13931
|
+
},
|
|
13932
|
+
deactivated() {
|
|
13933
|
+
this.hide();
|
|
13934
|
+
},
|
|
13935
|
+
beforeDestroy() {
|
|
13936
|
+
this.dispose();
|
|
13937
|
+
},
|
|
13938
|
+
methods: {
|
|
13939
|
+
show({ event = null, skipDelay = false, force = false } = {}) {
|
|
13940
|
+
var _a, _b;
|
|
13941
|
+
if (((_a = this.parentPopper) == null ? void 0 : _a.lockedChild) && this.parentPopper.lockedChild !== this)
|
|
13942
|
+
return;
|
|
13943
|
+
this.$_pendingHide = false;
|
|
13944
|
+
if (force || !this.disabled) {
|
|
13945
|
+
if (((_b = this.parentPopper) == null ? void 0 : _b.lockedChild) === this) {
|
|
13946
|
+
this.parentPopper.lockedChild = null;
|
|
13947
|
+
}
|
|
13948
|
+
this.$_scheduleShow(event, skipDelay);
|
|
13949
|
+
this.$emit("show");
|
|
13950
|
+
this.$_showFrameLocked = true;
|
|
13951
|
+
requestAnimationFrame(() => {
|
|
13952
|
+
this.$_showFrameLocked = false;
|
|
13953
|
+
});
|
|
13954
|
+
}
|
|
13955
|
+
this.$emit("update:shown", true);
|
|
13956
|
+
},
|
|
13957
|
+
hide({ event = null, skipDelay = false } = {}) {
|
|
13958
|
+
var _a;
|
|
13959
|
+
if (this.$_hideInProgress)
|
|
13960
|
+
return;
|
|
13961
|
+
if (this.shownChildren.size > 0) {
|
|
13962
|
+
this.$_pendingHide = true;
|
|
13963
|
+
return;
|
|
13964
|
+
}
|
|
13965
|
+
if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
|
|
13966
|
+
if (this.parentPopper) {
|
|
13967
|
+
this.parentPopper.lockedChild = this;
|
|
13968
|
+
clearTimeout(this.parentPopper.lockedChildTimer);
|
|
13969
|
+
this.parentPopper.lockedChildTimer = setTimeout(() => {
|
|
13970
|
+
if (this.parentPopper.lockedChild === this) {
|
|
13971
|
+
this.parentPopper.lockedChild.hide({ skipDelay });
|
|
13972
|
+
this.parentPopper.lockedChild = null;
|
|
13973
|
+
}
|
|
13974
|
+
}, 1e3);
|
|
13975
|
+
}
|
|
13976
|
+
return;
|
|
13977
|
+
}
|
|
13978
|
+
if (((_a = this.parentPopper) == null ? void 0 : _a.lockedChild) === this) {
|
|
13979
|
+
this.parentPopper.lockedChild = null;
|
|
13980
|
+
}
|
|
13981
|
+
this.$_pendingHide = false;
|
|
13982
|
+
this.$_scheduleHide(event, skipDelay);
|
|
13983
|
+
this.$emit("hide");
|
|
13984
|
+
this.$emit("update:shown", false);
|
|
13985
|
+
},
|
|
13986
|
+
init() {
|
|
13987
|
+
if (!this.$_isDisposed)
|
|
13988
|
+
return;
|
|
13989
|
+
this.$_isDisposed = false;
|
|
13990
|
+
this.isMounted = false;
|
|
13991
|
+
this.$_events = [];
|
|
13992
|
+
this.$_preventShow = false;
|
|
13993
|
+
this.$_referenceNode = this.referenceNode();
|
|
13994
|
+
this.$_targetNodes = this.targetNodes().filter((e) => e.nodeType === e.ELEMENT_NODE);
|
|
13995
|
+
this.$_popperNode = this.popperNode();
|
|
13996
|
+
this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner");
|
|
13997
|
+
this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container");
|
|
13998
|
+
this.$_swapTargetAttrs("title", "data-original-title");
|
|
13999
|
+
this.$_detachPopperNode();
|
|
14000
|
+
if (this.triggers.length) {
|
|
14001
|
+
this.$_addEventListeners();
|
|
14002
|
+
}
|
|
14003
|
+
if (this.shown) {
|
|
14004
|
+
this.show();
|
|
14005
|
+
}
|
|
14006
|
+
},
|
|
14007
|
+
dispose() {
|
|
14008
|
+
if (this.$_isDisposed)
|
|
14009
|
+
return;
|
|
14010
|
+
this.$_isDisposed = true;
|
|
14011
|
+
this.$_removeEventListeners();
|
|
14012
|
+
this.hide({ skipDelay: true });
|
|
14013
|
+
this.$_detachPopperNode();
|
|
14014
|
+
this.isMounted = false;
|
|
14015
|
+
this.isShown = false;
|
|
14016
|
+
this.$_updateParentShownChildren(false);
|
|
14017
|
+
this.$_swapTargetAttrs("data-original-title", "title");
|
|
14018
|
+
this.$emit("dispose");
|
|
14019
|
+
},
|
|
14020
|
+
async onResize() {
|
|
14021
|
+
if (this.isShown) {
|
|
14022
|
+
await this.$_computePosition();
|
|
14023
|
+
this.$emit("resize");
|
|
14024
|
+
}
|
|
14025
|
+
},
|
|
14026
|
+
async $_computePosition() {
|
|
14027
|
+
var _a;
|
|
14028
|
+
if (this.$_isDisposed || this.positioningDisabled)
|
|
14029
|
+
return;
|
|
14030
|
+
const options2 = {
|
|
14031
|
+
strategy: this.strategy,
|
|
14032
|
+
middleware: []
|
|
14033
|
+
};
|
|
14034
|
+
if (this.distance || this.skidding) {
|
|
14035
|
+
options2.middleware.push(offset({
|
|
14036
|
+
mainAxis: this.distance,
|
|
14037
|
+
crossAxis: this.skidding
|
|
14038
|
+
}));
|
|
14039
|
+
}
|
|
14040
|
+
const isPlacementAuto = this.placement.startsWith("auto");
|
|
14041
|
+
if (isPlacementAuto) {
|
|
14042
|
+
options2.middleware.push(autoPlacement({
|
|
14043
|
+
alignment: (_a = this.placement.split("-")[1]) != null ? _a : ""
|
|
14044
|
+
}));
|
|
14045
|
+
} else {
|
|
14046
|
+
options2.placement = this.placement;
|
|
14047
|
+
}
|
|
14048
|
+
if (this.preventOverflow) {
|
|
14049
|
+
if (this.shift) {
|
|
14050
|
+
options2.middleware.push(shift({
|
|
14051
|
+
padding: this.overflowPadding,
|
|
14052
|
+
boundary: this.boundary,
|
|
14053
|
+
crossAxis: this.shiftCrossAxis
|
|
14054
|
+
}));
|
|
14055
|
+
}
|
|
14056
|
+
if (!isPlacementAuto && this.flip) {
|
|
14057
|
+
options2.middleware.push(flip({
|
|
14058
|
+
padding: this.overflowPadding,
|
|
14059
|
+
boundary: this.boundary
|
|
14060
|
+
}));
|
|
14061
|
+
}
|
|
14062
|
+
}
|
|
14063
|
+
options2.middleware.push(arrow({
|
|
14064
|
+
element: this.$_arrowNode,
|
|
14065
|
+
padding: this.arrowPadding
|
|
14066
|
+
}));
|
|
14067
|
+
if (this.arrowOverflow) {
|
|
14068
|
+
options2.middleware.push({
|
|
14069
|
+
name: "arrowOverflow",
|
|
14070
|
+
fn: ({ placement, rects, middlewareData }) => {
|
|
14071
|
+
let overflow;
|
|
14072
|
+
const { centerOffset } = middlewareData.arrow;
|
|
14073
|
+
if (placement.startsWith("top") || placement.startsWith("bottom")) {
|
|
14074
|
+
overflow = Math.abs(centerOffset) > rects.reference.width / 2;
|
|
14075
|
+
} else {
|
|
14076
|
+
overflow = Math.abs(centerOffset) > rects.reference.height / 2;
|
|
14077
|
+
}
|
|
14078
|
+
return {
|
|
14079
|
+
data: {
|
|
14080
|
+
overflow
|
|
14081
|
+
}
|
|
14082
|
+
};
|
|
14083
|
+
}
|
|
14084
|
+
});
|
|
14085
|
+
}
|
|
14086
|
+
if (this.autoMinSize || this.autoSize) {
|
|
14087
|
+
const autoSize = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
|
|
14088
|
+
options2.middleware.push({
|
|
14089
|
+
name: "autoSize",
|
|
14090
|
+
fn: ({ rects, placement, middlewareData }) => {
|
|
14091
|
+
var _a2;
|
|
14092
|
+
if ((_a2 = middlewareData.autoSize) == null ? void 0 : _a2.skip) {
|
|
14093
|
+
return {};
|
|
14094
|
+
}
|
|
14095
|
+
let width;
|
|
14096
|
+
let height;
|
|
14097
|
+
if (placement.startsWith("top") || placement.startsWith("bottom")) {
|
|
14098
|
+
width = rects.reference.width;
|
|
14099
|
+
} else {
|
|
14100
|
+
height = rects.reference.height;
|
|
14101
|
+
}
|
|
14102
|
+
this.$_innerNode.style[autoSize === "min" ? "minWidth" : autoSize === "max" ? "maxWidth" : "width"] = width != null ? `${width}px` : null;
|
|
14103
|
+
this.$_innerNode.style[autoSize === "min" ? "minHeight" : autoSize === "max" ? "maxHeight" : "height"] = height != null ? `${height}px` : null;
|
|
14104
|
+
return {
|
|
14105
|
+
data: {
|
|
14106
|
+
skip: true
|
|
14107
|
+
},
|
|
14108
|
+
reset: {
|
|
14109
|
+
rects: true
|
|
14110
|
+
}
|
|
14111
|
+
};
|
|
14112
|
+
}
|
|
14113
|
+
});
|
|
14114
|
+
}
|
|
14115
|
+
if (this.autoMaxSize || this.autoBoundaryMaxSize) {
|
|
14116
|
+
this.$_innerNode.style.maxWidth = null;
|
|
14117
|
+
this.$_innerNode.style.maxHeight = null;
|
|
14118
|
+
options2.middleware.push(size({
|
|
14119
|
+
boundary: this.boundary,
|
|
14120
|
+
padding: this.overflowPadding,
|
|
14121
|
+
apply: ({ width, height }) => {
|
|
14122
|
+
this.$_innerNode.style.maxWidth = width != null ? `${width}px` : null;
|
|
14123
|
+
this.$_innerNode.style.maxHeight = height != null ? `${height}px` : null;
|
|
14124
|
+
}
|
|
14125
|
+
}));
|
|
14126
|
+
}
|
|
14127
|
+
const data = await floating_ui_dom_esm_computePosition(this.$_referenceNode, this.$_popperNode, options2);
|
|
14128
|
+
Object.assign(this.result, {
|
|
14129
|
+
x: data.x,
|
|
14130
|
+
y: data.y,
|
|
14131
|
+
placement: data.placement,
|
|
14132
|
+
strategy: data.strategy,
|
|
14133
|
+
arrow: __spreadValues(__spreadValues({}, data.middlewareData.arrow), data.middlewareData.arrowOverflow)
|
|
14134
|
+
});
|
|
14135
|
+
},
|
|
14136
|
+
$_scheduleShow(event = null, skipDelay = false) {
|
|
14137
|
+
this.$_updateParentShownChildren(true);
|
|
14138
|
+
this.$_hideInProgress = false;
|
|
14139
|
+
clearTimeout(this.$_scheduleTimer);
|
|
14140
|
+
if (hidingPopper && this.instantMove && hidingPopper.instantMove && hidingPopper !== this.parentPopper) {
|
|
14141
|
+
hidingPopper.$_applyHide(true);
|
|
14142
|
+
this.$_applyShow(true);
|
|
14143
|
+
return;
|
|
14144
|
+
}
|
|
14145
|
+
if (skipDelay) {
|
|
14146
|
+
this.$_applyShow();
|
|
14147
|
+
} else {
|
|
14148
|
+
this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
14149
|
+
}
|
|
14150
|
+
},
|
|
14151
|
+
$_scheduleHide(event = null, skipDelay = false) {
|
|
14152
|
+
if (this.shownChildren.size > 0) {
|
|
14153
|
+
this.$_pendingHide = true;
|
|
14154
|
+
return;
|
|
14155
|
+
}
|
|
14156
|
+
this.$_updateParentShownChildren(false);
|
|
14157
|
+
this.$_hideInProgress = true;
|
|
14158
|
+
clearTimeout(this.$_scheduleTimer);
|
|
14159
|
+
if (this.isShown) {
|
|
14160
|
+
hidingPopper = this;
|
|
14161
|
+
}
|
|
14162
|
+
if (skipDelay) {
|
|
14163
|
+
this.$_applyHide();
|
|
14164
|
+
} else {
|
|
14165
|
+
this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
|
|
14166
|
+
}
|
|
14167
|
+
},
|
|
14168
|
+
$_computeDelay(type) {
|
|
14169
|
+
const delay = this.delay;
|
|
14170
|
+
return parseInt(delay && delay[type] || delay || 0);
|
|
14171
|
+
},
|
|
14172
|
+
async $_applyShow(skipTransition = false) {
|
|
14173
|
+
clearTimeout(this.$_disposeTimer);
|
|
14174
|
+
clearTimeout(this.$_scheduleTimer);
|
|
14175
|
+
this.skipTransition = skipTransition;
|
|
14176
|
+
if (this.isShown) {
|
|
14177
|
+
return;
|
|
14178
|
+
}
|
|
14179
|
+
this.$_ensureTeleport();
|
|
14180
|
+
await nextFrame();
|
|
14181
|
+
await this.$_computePosition();
|
|
14182
|
+
await this.$_applyShowEffect();
|
|
14183
|
+
if (!this.positioningDisabled) {
|
|
14184
|
+
this.$_registerEventListeners([
|
|
14185
|
+
...getScrollParents(this.$_referenceNode),
|
|
14186
|
+
...getScrollParents(this.$_popperNode)
|
|
14187
|
+
], "scroll", () => {
|
|
14188
|
+
this.$_computePosition();
|
|
14189
|
+
});
|
|
14190
|
+
}
|
|
14191
|
+
},
|
|
14192
|
+
async $_applyShowEffect() {
|
|
14193
|
+
if (this.$_hideInProgress)
|
|
14194
|
+
return;
|
|
14195
|
+
if (this.computeTransformOrigin) {
|
|
14196
|
+
const bounds = this.$_referenceNode.getBoundingClientRect();
|
|
14197
|
+
const popperWrapper = this.$_popperNode.querySelector(".v-popper__wrapper");
|
|
14198
|
+
const parentBounds = popperWrapper.parentNode.getBoundingClientRect();
|
|
14199
|
+
const x = bounds.x + bounds.width / 2 - (parentBounds.left + popperWrapper.offsetLeft);
|
|
14200
|
+
const y = bounds.y + bounds.height / 2 - (parentBounds.top + popperWrapper.offsetTop);
|
|
14201
|
+
this.result.transformOrigin = `${x}px ${y}px`;
|
|
14202
|
+
}
|
|
14203
|
+
this.isShown = true;
|
|
14204
|
+
this.$_applyAttrsToTarget({
|
|
14205
|
+
"aria-describedby": this.popperId,
|
|
14206
|
+
"data-popper-shown": ""
|
|
14207
|
+
});
|
|
14208
|
+
const showGroup = this.showGroup;
|
|
14209
|
+
if (showGroup) {
|
|
14210
|
+
let popover;
|
|
14211
|
+
for (let i = 0; i < shownPoppers.length; i++) {
|
|
14212
|
+
popover = shownPoppers[i];
|
|
14213
|
+
if (popover.showGroup !== showGroup) {
|
|
14214
|
+
popover.hide();
|
|
14215
|
+
popover.$emit("close-group");
|
|
14216
|
+
}
|
|
14217
|
+
}
|
|
14218
|
+
}
|
|
14219
|
+
shownPoppers.push(this);
|
|
14220
|
+
document.body.classList.add("v-popper--some-open");
|
|
14221
|
+
for (const theme of getAllParentThemes(this.theme)) {
|
|
14222
|
+
getShownPoppersByTheme(theme).push(this);
|
|
14223
|
+
document.body.classList.add(`v-popper--some-open--${theme}`);
|
|
14224
|
+
}
|
|
14225
|
+
this.$emit("apply-show");
|
|
14226
|
+
this.classes.showFrom = true;
|
|
14227
|
+
this.classes.showTo = false;
|
|
14228
|
+
this.classes.hideFrom = false;
|
|
14229
|
+
this.classes.hideTo = false;
|
|
14230
|
+
await nextFrame();
|
|
14231
|
+
this.classes.showFrom = false;
|
|
14232
|
+
this.classes.showTo = true;
|
|
14233
|
+
this.$_popperNode.focus();
|
|
14234
|
+
},
|
|
14235
|
+
async $_applyHide(skipTransition = false) {
|
|
14236
|
+
if (this.shownChildren.size > 0) {
|
|
14237
|
+
this.$_pendingHide = true;
|
|
14238
|
+
this.$_hideInProgress = false;
|
|
14239
|
+
return;
|
|
14240
|
+
}
|
|
14241
|
+
clearTimeout(this.$_scheduleTimer);
|
|
14242
|
+
if (!this.isShown) {
|
|
14243
|
+
return;
|
|
14244
|
+
}
|
|
14245
|
+
this.skipTransition = skipTransition;
|
|
14246
|
+
removeFromArray(shownPoppers, this);
|
|
14247
|
+
if (shownPoppers.length === 0) {
|
|
14248
|
+
document.body.classList.remove("v-popper--some-open");
|
|
14249
|
+
}
|
|
14250
|
+
for (const theme of getAllParentThemes(this.theme)) {
|
|
14251
|
+
const list = getShownPoppersByTheme(theme);
|
|
14252
|
+
removeFromArray(list, this);
|
|
14253
|
+
if (list.length === 0) {
|
|
14254
|
+
document.body.classList.remove(`v-popper--some-open--${theme}`);
|
|
14255
|
+
}
|
|
14256
|
+
}
|
|
14257
|
+
if (hidingPopper === this) {
|
|
14258
|
+
hidingPopper = null;
|
|
14259
|
+
}
|
|
14260
|
+
this.isShown = false;
|
|
14261
|
+
this.$_applyAttrsToTarget({
|
|
14262
|
+
"aria-describedby": void 0,
|
|
14263
|
+
"data-popper-shown": void 0
|
|
14264
|
+
});
|
|
14265
|
+
clearTimeout(this.$_disposeTimer);
|
|
14266
|
+
const disposeTime = getDefaultConfig(this.theme, "disposeTimeout");
|
|
14267
|
+
if (disposeTime !== null) {
|
|
14268
|
+
this.$_disposeTimer = setTimeout(() => {
|
|
14269
|
+
if (this.$_popperNode) {
|
|
14270
|
+
this.$_detachPopperNode();
|
|
14271
|
+
this.isMounted = false;
|
|
14272
|
+
}
|
|
14273
|
+
}, disposeTime);
|
|
14274
|
+
}
|
|
14275
|
+
this.$_removeEventListeners("scroll");
|
|
14276
|
+
this.$emit("apply-hide");
|
|
14277
|
+
this.classes.showFrom = false;
|
|
14278
|
+
this.classes.showTo = false;
|
|
14279
|
+
this.classes.hideFrom = true;
|
|
14280
|
+
this.classes.hideTo = false;
|
|
14281
|
+
await nextFrame();
|
|
14282
|
+
this.classes.hideFrom = false;
|
|
14283
|
+
this.classes.hideTo = true;
|
|
14284
|
+
},
|
|
14285
|
+
$_autoShowHide() {
|
|
14286
|
+
if (this.shown) {
|
|
14287
|
+
this.show();
|
|
14288
|
+
} else {
|
|
14289
|
+
this.hide();
|
|
14290
|
+
}
|
|
14291
|
+
},
|
|
14292
|
+
$_ensureTeleport() {
|
|
14293
|
+
if (this.$_isDisposed)
|
|
14294
|
+
return;
|
|
14295
|
+
let container = this.container;
|
|
14296
|
+
if (typeof container === "string") {
|
|
14297
|
+
container = window.document.querySelector(container);
|
|
14298
|
+
} else if (container === false) {
|
|
14299
|
+
container = this.$_targetNodes[0].parentNode;
|
|
14300
|
+
}
|
|
14301
|
+
if (!container) {
|
|
14302
|
+
throw new Error("No container for popover: " + this.container);
|
|
14303
|
+
}
|
|
14304
|
+
container.appendChild(this.$_popperNode);
|
|
14305
|
+
this.isMounted = true;
|
|
14306
|
+
},
|
|
14307
|
+
$_addEventListeners() {
|
|
14308
|
+
const handleShow = (event) => {
|
|
14309
|
+
if (this.isShown && !this.$_hideInProgress) {
|
|
14310
|
+
return;
|
|
14311
|
+
}
|
|
14312
|
+
event.usedByTooltip = true;
|
|
14313
|
+
!this.$_preventShow && this.show({ event });
|
|
14314
|
+
};
|
|
14315
|
+
this.$_registerTriggerListeners(this.$_targetNodes, SHOW_EVENT_MAP, this.triggers, this.showTriggers, handleShow);
|
|
14316
|
+
this.$_registerTriggerListeners([this.$_popperNode], SHOW_EVENT_MAP, this.popperTriggers, this.popperShowTriggers, handleShow);
|
|
14317
|
+
const handleHide = (event) => {
|
|
14318
|
+
if (event.usedByTooltip) {
|
|
14319
|
+
return;
|
|
14320
|
+
}
|
|
14321
|
+
this.hide({ event });
|
|
14322
|
+
};
|
|
14323
|
+
this.$_registerTriggerListeners(this.$_targetNodes, HIDE_EVENT_MAP, this.triggers, this.hideTriggers, handleHide);
|
|
14324
|
+
this.$_registerTriggerListeners([this.$_popperNode], HIDE_EVENT_MAP, this.popperTriggers, this.popperHideTriggers, handleHide);
|
|
14325
|
+
},
|
|
14326
|
+
$_registerEventListeners(targetNodes, eventType, handler) {
|
|
14327
|
+
this.$_events.push({ targetNodes, eventType, handler });
|
|
14328
|
+
targetNodes.forEach((node) => node.addEventListener(eventType, handler, supportsPassive ? {
|
|
14329
|
+
passive: true
|
|
14330
|
+
} : void 0));
|
|
14331
|
+
},
|
|
14332
|
+
$_registerTriggerListeners(targetNodes, eventMap, commonTriggers, customTrigger, handler) {
|
|
14333
|
+
let triggers = commonTriggers;
|
|
14334
|
+
if (customTrigger != null) {
|
|
14335
|
+
triggers = typeof customTrigger === "function" ? customTrigger(triggers) : customTrigger;
|
|
14336
|
+
}
|
|
14337
|
+
triggers.forEach((trigger) => {
|
|
14338
|
+
const eventType = eventMap[trigger];
|
|
14339
|
+
if (eventType) {
|
|
14340
|
+
this.$_registerEventListeners(targetNodes, eventType, handler);
|
|
14341
|
+
}
|
|
14342
|
+
});
|
|
14343
|
+
},
|
|
14344
|
+
$_removeEventListeners(filterEventType) {
|
|
14345
|
+
const newList = [];
|
|
14346
|
+
this.$_events.forEach((listener) => {
|
|
14347
|
+
const { targetNodes, eventType, handler } = listener;
|
|
14348
|
+
if (!filterEventType || filterEventType === eventType) {
|
|
14349
|
+
targetNodes.forEach((node) => node.removeEventListener(eventType, handler));
|
|
14350
|
+
} else {
|
|
14351
|
+
newList.push(listener);
|
|
14352
|
+
}
|
|
14353
|
+
});
|
|
14354
|
+
this.$_events = newList;
|
|
14355
|
+
},
|
|
14356
|
+
$_refreshListeners() {
|
|
14357
|
+
if (!this.$_isDisposed) {
|
|
14358
|
+
this.$_removeEventListeners();
|
|
14359
|
+
this.$_addEventListeners();
|
|
14360
|
+
}
|
|
14361
|
+
},
|
|
14362
|
+
$_handleGlobalClose(event, touch = false) {
|
|
14363
|
+
if (this.$_showFrameLocked)
|
|
14364
|
+
return;
|
|
14365
|
+
this.hide({ event });
|
|
14366
|
+
if (event.closePopover) {
|
|
14367
|
+
this.$emit("close-directive");
|
|
14368
|
+
} else {
|
|
14369
|
+
this.$emit("auto-hide");
|
|
14370
|
+
}
|
|
14371
|
+
if (touch) {
|
|
14372
|
+
this.$_preventShow = true;
|
|
14373
|
+
setTimeout(() => {
|
|
14374
|
+
this.$_preventShow = false;
|
|
14375
|
+
}, 300);
|
|
14376
|
+
}
|
|
14377
|
+
},
|
|
14378
|
+
$_detachPopperNode() {
|
|
14379
|
+
this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
|
|
14380
|
+
},
|
|
14381
|
+
$_swapTargetAttrs(attrFrom, attrTo) {
|
|
14382
|
+
for (const el of this.$_targetNodes) {
|
|
14383
|
+
const value = el.getAttribute(attrFrom);
|
|
14384
|
+
if (value) {
|
|
14385
|
+
el.removeAttribute(attrFrom);
|
|
14386
|
+
el.setAttribute(attrTo, value);
|
|
14387
|
+
}
|
|
14388
|
+
}
|
|
14389
|
+
},
|
|
14390
|
+
$_applyAttrsToTarget(attrs) {
|
|
14391
|
+
for (const el of this.$_targetNodes) {
|
|
14392
|
+
for (const n in attrs) {
|
|
14393
|
+
const value = attrs[n];
|
|
14394
|
+
if (value == null) {
|
|
14395
|
+
el.removeAttribute(n);
|
|
14396
|
+
} else {
|
|
14397
|
+
el.setAttribute(n, value);
|
|
14398
|
+
}
|
|
14399
|
+
}
|
|
14400
|
+
}
|
|
14401
|
+
},
|
|
14402
|
+
$_updateParentShownChildren(value) {
|
|
14403
|
+
let parent = this.parentPopper;
|
|
14404
|
+
while (parent) {
|
|
14405
|
+
if (value) {
|
|
14406
|
+
parent.shownChildren.add(this.randomId);
|
|
14407
|
+
} else {
|
|
14408
|
+
parent.shownChildren.delete(this.randomId);
|
|
14409
|
+
if (parent.$_pendingHide) {
|
|
14410
|
+
parent.hide();
|
|
14411
|
+
}
|
|
14412
|
+
}
|
|
14413
|
+
parent = parent.parentPopper;
|
|
14414
|
+
}
|
|
14415
|
+
},
|
|
14416
|
+
$_isAimingPopper() {
|
|
14417
|
+
const referenceBounds = this.$el.getBoundingClientRect();
|
|
14418
|
+
if (mouseX >= referenceBounds.left && mouseX <= referenceBounds.right && mouseY >= referenceBounds.top && mouseY <= referenceBounds.bottom) {
|
|
14419
|
+
const popperBounds = this.$_popperNode.getBoundingClientRect();
|
|
14420
|
+
const vectorX = mouseX - mousePreviousX;
|
|
14421
|
+
const vectorY = mouseY - mousePreviousY;
|
|
14422
|
+
const distance = popperBounds.left + popperBounds.width / 2 - mousePreviousX + (popperBounds.top + popperBounds.height / 2) - mousePreviousY;
|
|
14423
|
+
const newVectorLength = distance + popperBounds.width + popperBounds.height;
|
|
14424
|
+
const edgeX = mousePreviousX + vectorX * newVectorLength;
|
|
14425
|
+
const edgeY = mousePreviousY + vectorY * newVectorLength;
|
|
14426
|
+
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);
|
|
14427
|
+
}
|
|
14428
|
+
return false;
|
|
14429
|
+
}
|
|
14430
|
+
},
|
|
14431
|
+
render() {
|
|
14432
|
+
return this.$scopedSlots.default(this.slotData)[0];
|
|
14433
|
+
}
|
|
14434
|
+
});
|
|
14435
|
+
if (typeof document !== "undefined" && typeof window !== "undefined") {
|
|
14436
|
+
if (isIOS) {
|
|
14437
|
+
document.addEventListener("touchstart", handleGlobalMousedown, supportsPassive ? {
|
|
14438
|
+
passive: true,
|
|
14439
|
+
capture: true
|
|
14440
|
+
} : true);
|
|
14441
|
+
document.addEventListener("touchend", handleGlobalTouchend, supportsPassive ? {
|
|
14442
|
+
passive: true,
|
|
14443
|
+
capture: true
|
|
14444
|
+
} : true);
|
|
14445
|
+
} else {
|
|
14446
|
+
window.addEventListener("mousedown", handleGlobalMousedown, true);
|
|
14447
|
+
window.addEventListener("click", handleGlobalClick, true);
|
|
14448
|
+
}
|
|
14449
|
+
window.addEventListener("resize", computePositionAllShownPoppers);
|
|
14450
|
+
}
|
|
14451
|
+
function handleGlobalMousedown(event) {
|
|
14452
|
+
for (let i = 0; i < shownPoppers.length; i++) {
|
|
14453
|
+
const popper = shownPoppers[i];
|
|
14454
|
+
try {
|
|
14455
|
+
const popperContent = popper.popperNode();
|
|
14456
|
+
popper.$_mouseDownContains = popperContent.contains(event.target);
|
|
14457
|
+
} catch (e) {
|
|
14458
|
+
}
|
|
14459
|
+
}
|
|
14460
|
+
}
|
|
14461
|
+
function handleGlobalClick(event) {
|
|
14462
|
+
handleGlobalClose(event);
|
|
14463
|
+
}
|
|
14464
|
+
function handleGlobalTouchend(event) {
|
|
14465
|
+
handleGlobalClose(event, true);
|
|
14466
|
+
}
|
|
14467
|
+
function handleGlobalClose(event, touch = false) {
|
|
14468
|
+
const preventClose = {};
|
|
14469
|
+
for (let i = shownPoppers.length - 1; i >= 0; i--) {
|
|
14470
|
+
const popper = shownPoppers[i];
|
|
14471
|
+
try {
|
|
14472
|
+
const contains = popper.$_containsGlobalTarget = isContainingEventTarget(popper, event);
|
|
14473
|
+
popper.$_pendingHide = false;
|
|
14474
|
+
requestAnimationFrame(() => {
|
|
14475
|
+
popper.$_pendingHide = false;
|
|
14476
|
+
if (preventClose[popper.randomId])
|
|
14477
|
+
return;
|
|
14478
|
+
if (shouldAutoHide(popper, contains, event)) {
|
|
14479
|
+
popper.$_handleGlobalClose(event, touch);
|
|
14480
|
+
if (!event.closeAllPopover && event.closePopover && contains) {
|
|
14481
|
+
let parent2 = popper.parentPopper;
|
|
14482
|
+
while (parent2) {
|
|
14483
|
+
preventClose[parent2.randomId] = true;
|
|
14484
|
+
parent2 = parent2.parentPopper;
|
|
14485
|
+
}
|
|
14486
|
+
return;
|
|
14487
|
+
}
|
|
14488
|
+
let parent = popper.parentPopper;
|
|
14489
|
+
while (parent) {
|
|
14490
|
+
if (shouldAutoHide(parent, parent.$_containsGlobalTarget, event)) {
|
|
14491
|
+
parent.$_handleGlobalClose(event, touch);
|
|
14492
|
+
} else {
|
|
14493
|
+
break;
|
|
14494
|
+
}
|
|
14495
|
+
parent = parent.parentPopper;
|
|
14496
|
+
}
|
|
14497
|
+
}
|
|
14498
|
+
});
|
|
14499
|
+
} catch (e) {
|
|
14500
|
+
}
|
|
14501
|
+
}
|
|
14502
|
+
}
|
|
14503
|
+
function isContainingEventTarget(popper, event) {
|
|
14504
|
+
const popperContent = popper.popperNode();
|
|
14505
|
+
return popper.$_mouseDownContains || popperContent.contains(event.target);
|
|
14506
|
+
}
|
|
14507
|
+
function shouldAutoHide(popper, contains, event) {
|
|
14508
|
+
return event.closeAllPopover || event.closePopover && contains || getAutoHideResult(popper, event) && !contains;
|
|
14509
|
+
}
|
|
14510
|
+
function getAutoHideResult(popper, event) {
|
|
14511
|
+
if (typeof popper.autoHide === "function") {
|
|
14512
|
+
const result = popper.autoHide(event);
|
|
14513
|
+
popper.lastAutoHide = result;
|
|
14514
|
+
return result;
|
|
14515
|
+
}
|
|
14516
|
+
return popper.autoHide;
|
|
14517
|
+
}
|
|
14518
|
+
function computePositionAllShownPoppers(event) {
|
|
14519
|
+
for (let i = 0; i < shownPoppers.length; i++) {
|
|
14520
|
+
const popper = shownPoppers[i];
|
|
14521
|
+
popper.$_computePosition(event);
|
|
14522
|
+
}
|
|
14523
|
+
}
|
|
14524
|
+
function hideAllPoppers() {
|
|
14525
|
+
for (let i = 0; i < shownPoppers.length; i++) {
|
|
14526
|
+
const popper = shownPoppers[i];
|
|
14527
|
+
popper.hide();
|
|
14528
|
+
}
|
|
14529
|
+
}
|
|
14530
|
+
let mousePreviousX = 0;
|
|
14531
|
+
let mousePreviousY = 0;
|
|
14532
|
+
let mouseX = 0;
|
|
14533
|
+
let mouseY = 0;
|
|
14534
|
+
if (typeof window !== "undefined") {
|
|
14535
|
+
window.addEventListener("mousemove", (event) => {
|
|
14536
|
+
mousePreviousX = mouseX;
|
|
14537
|
+
mousePreviousY = mouseY;
|
|
14538
|
+
mouseX = event.clientX;
|
|
14539
|
+
mouseY = event.clientY;
|
|
14540
|
+
}, supportsPassive ? {
|
|
14541
|
+
passive: true
|
|
14542
|
+
} : void 0);
|
|
14543
|
+
}
|
|
14544
|
+
function lineIntersectsLine(x1, y1, x2, y2, x3, y3, x4, y4) {
|
|
14545
|
+
const uA = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1));
|
|
14546
|
+
const uB = ((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1));
|
|
14547
|
+
return uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1;
|
|
14548
|
+
}
|
|
14549
|
+
function getInternetExplorerVersion() {
|
|
14550
|
+
var ua = window.navigator.userAgent;
|
|
14551
|
+
var msie = ua.indexOf("MSIE ");
|
|
14552
|
+
if (msie > 0) {
|
|
14553
|
+
return parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)), 10);
|
|
14554
|
+
}
|
|
14555
|
+
var trident = ua.indexOf("Trident/");
|
|
14556
|
+
if (trident > 0) {
|
|
14557
|
+
var rv = ua.indexOf("rv:");
|
|
14558
|
+
return parseInt(ua.substring(rv + 3, ua.indexOf(".", rv)), 10);
|
|
14559
|
+
}
|
|
14560
|
+
var edge = ua.indexOf("Edge/");
|
|
14561
|
+
if (edge > 0) {
|
|
14562
|
+
return parseInt(ua.substring(edge + 5, ua.indexOf(".", edge)), 10);
|
|
14563
|
+
}
|
|
14564
|
+
return -1;
|
|
14565
|
+
}
|
|
14566
|
+
var isIE;
|
|
14567
|
+
function initCompat() {
|
|
14568
|
+
if (!initCompat.init) {
|
|
14569
|
+
initCompat.init = true;
|
|
14570
|
+
isIE = getInternetExplorerVersion() !== -1;
|
|
14571
|
+
}
|
|
14572
|
+
}
|
|
14573
|
+
var script = {
|
|
14574
|
+
name: "ResizeObserver",
|
|
14575
|
+
props: {
|
|
14576
|
+
emitOnMount: {
|
|
14577
|
+
type: Boolean,
|
|
14578
|
+
default: false
|
|
14579
|
+
},
|
|
14580
|
+
ignoreWidth: {
|
|
14581
|
+
type: Boolean,
|
|
14582
|
+
default: false
|
|
14583
|
+
},
|
|
14584
|
+
ignoreHeight: {
|
|
14585
|
+
type: Boolean,
|
|
14586
|
+
default: false
|
|
14587
|
+
}
|
|
14588
|
+
},
|
|
14589
|
+
mounted: function mounted() {
|
|
14590
|
+
var _this = this;
|
|
14591
|
+
initCompat();
|
|
14592
|
+
this.$nextTick(function() {
|
|
14593
|
+
_this._w = _this.$el.offsetWidth;
|
|
14594
|
+
_this._h = _this.$el.offsetHeight;
|
|
14595
|
+
if (_this.emitOnMount) {
|
|
14596
|
+
_this.emitSize();
|
|
14597
|
+
}
|
|
14598
|
+
});
|
|
14599
|
+
var object = document.createElement("object");
|
|
14600
|
+
this._resizeObject = object;
|
|
14601
|
+
object.setAttribute("aria-hidden", "true");
|
|
14602
|
+
object.setAttribute("tabindex", -1);
|
|
14603
|
+
object.onload = this.addResizeHandlers;
|
|
14604
|
+
object.type = "text/html";
|
|
14605
|
+
if (isIE) {
|
|
14606
|
+
this.$el.appendChild(object);
|
|
14607
|
+
}
|
|
14608
|
+
object.data = "about:blank";
|
|
14609
|
+
if (!isIE) {
|
|
14610
|
+
this.$el.appendChild(object);
|
|
14611
|
+
}
|
|
14612
|
+
},
|
|
14613
|
+
beforeDestroy: function beforeDestroy() {
|
|
14614
|
+
this.removeResizeHandlers();
|
|
14615
|
+
},
|
|
14616
|
+
methods: {
|
|
14617
|
+
compareAndNotify: function compareAndNotify() {
|
|
14618
|
+
if (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) {
|
|
14619
|
+
this._w = this.$el.offsetWidth;
|
|
14620
|
+
this._h = this.$el.offsetHeight;
|
|
14621
|
+
this.emitSize();
|
|
14622
|
+
}
|
|
14623
|
+
},
|
|
14624
|
+
emitSize: function emitSize() {
|
|
14625
|
+
this.$emit("notify", {
|
|
14626
|
+
width: this._w,
|
|
14627
|
+
height: this._h
|
|
14628
|
+
});
|
|
14629
|
+
},
|
|
14630
|
+
addResizeHandlers: function addResizeHandlers() {
|
|
14631
|
+
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify);
|
|
14632
|
+
this.compareAndNotify();
|
|
14633
|
+
},
|
|
14634
|
+
removeResizeHandlers: function removeResizeHandlers() {
|
|
14635
|
+
if (this._resizeObject && this._resizeObject.onload) {
|
|
14636
|
+
if (!isIE && this._resizeObject.contentDocument) {
|
|
14637
|
+
this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify);
|
|
14638
|
+
}
|
|
14639
|
+
this.$el.removeChild(this._resizeObject);
|
|
14640
|
+
this._resizeObject.onload = null;
|
|
14641
|
+
this._resizeObject = null;
|
|
14642
|
+
}
|
|
14643
|
+
}
|
|
14644
|
+
}
|
|
14645
|
+
};
|
|
14646
|
+
function normalizeComponent$1(template, style, script2, scopeId, isFunctionalTemplate, moduleIdentifier, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
14647
|
+
if (typeof shadowMode !== "boolean") {
|
|
14648
|
+
createInjectorSSR = createInjector;
|
|
14649
|
+
createInjector = shadowMode;
|
|
14650
|
+
shadowMode = false;
|
|
14651
|
+
}
|
|
14652
|
+
var options2 = typeof script2 === "function" ? script2.options : script2;
|
|
14653
|
+
if (template && template.render) {
|
|
14654
|
+
options2.render = template.render;
|
|
14655
|
+
options2.staticRenderFns = template.staticRenderFns;
|
|
14656
|
+
options2._compiled = true;
|
|
14657
|
+
if (isFunctionalTemplate) {
|
|
14658
|
+
options2.functional = true;
|
|
14659
|
+
}
|
|
14660
|
+
}
|
|
14661
|
+
if (scopeId) {
|
|
14662
|
+
options2._scopeId = scopeId;
|
|
14663
|
+
}
|
|
14664
|
+
var hook;
|
|
14665
|
+
if (moduleIdentifier) {
|
|
14666
|
+
hook = function hook2(context) {
|
|
14667
|
+
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
14668
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
14669
|
+
context = __VUE_SSR_CONTEXT__;
|
|
14670
|
+
}
|
|
14671
|
+
if (style) {
|
|
14672
|
+
style.call(this, createInjectorSSR(context));
|
|
14673
|
+
}
|
|
14674
|
+
if (context && context._registeredComponents) {
|
|
14675
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
14676
|
+
}
|
|
14677
|
+
};
|
|
14678
|
+
options2._ssrRegister = hook;
|
|
14679
|
+
} else if (style) {
|
|
14680
|
+
hook = shadowMode ? function(context) {
|
|
14681
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
14682
|
+
} : function(context) {
|
|
14683
|
+
style.call(this, createInjector(context));
|
|
14684
|
+
};
|
|
14685
|
+
}
|
|
14686
|
+
if (hook) {
|
|
14687
|
+
if (options2.functional) {
|
|
14688
|
+
var originalRender = options2.render;
|
|
14689
|
+
options2.render = function renderWithStyleInjection(h, context) {
|
|
14690
|
+
hook.call(context);
|
|
14691
|
+
return originalRender(h, context);
|
|
14692
|
+
};
|
|
14693
|
+
} else {
|
|
14694
|
+
var existing = options2.beforeCreate;
|
|
14695
|
+
options2.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
14696
|
+
}
|
|
14697
|
+
}
|
|
14698
|
+
return script2;
|
|
14699
|
+
}
|
|
14700
|
+
var __vue_script__ = script;
|
|
14701
|
+
var __vue_render__ = function __vue_render__2() {
|
|
14702
|
+
var _vm = this;
|
|
14703
|
+
var _h = _vm.$createElement;
|
|
14704
|
+
var _c = _vm._self._c || _h;
|
|
14705
|
+
return _c("div", {
|
|
14706
|
+
staticClass: "resize-observer",
|
|
14707
|
+
attrs: {
|
|
14708
|
+
tabindex: "-1"
|
|
14709
|
+
}
|
|
14710
|
+
});
|
|
14711
|
+
};
|
|
14712
|
+
var __vue_staticRenderFns__ = [];
|
|
14713
|
+
__vue_render__._withStripped = true;
|
|
14714
|
+
var __vue_inject_styles__ = void 0;
|
|
14715
|
+
var __vue_scope_id__ = "data-v-8859cc6c";
|
|
14716
|
+
var __vue_module_identifier__ = void 0;
|
|
14717
|
+
var __vue_is_functional_template__ = false;
|
|
14718
|
+
var __vue_component__ = /* @__PURE__ */ normalizeComponent$1({
|
|
14719
|
+
render: __vue_render__,
|
|
14720
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
14721
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, void 0, void 0, void 0);
|
|
14722
|
+
function install$1(Vue2) {
|
|
14723
|
+
Vue2.component("resize-observer", __vue_component__);
|
|
14724
|
+
Vue2.component("ResizeObserver", __vue_component__);
|
|
14725
|
+
}
|
|
14726
|
+
var plugin$1 = {
|
|
14727
|
+
version: "1.0.1",
|
|
14728
|
+
install: install$1
|
|
14729
|
+
};
|
|
14730
|
+
var GlobalVue$1 = null;
|
|
14731
|
+
if (typeof window !== "undefined") {
|
|
14732
|
+
GlobalVue$1 = window.Vue;
|
|
14733
|
+
} else if (typeof __webpack_require__.g !== "undefined") {
|
|
14734
|
+
GlobalVue$1 = __webpack_require__.g.Vue;
|
|
14735
|
+
}
|
|
14736
|
+
if (GlobalVue$1) {
|
|
14737
|
+
GlobalVue$1.use(plugin$1);
|
|
14738
|
+
}
|
|
14739
|
+
var PrivateThemeClass = {
|
|
14740
|
+
computed: {
|
|
14741
|
+
themeClass() {
|
|
14742
|
+
return getThemeClasses(this.theme);
|
|
14743
|
+
}
|
|
14744
|
+
}
|
|
14745
|
+
};
|
|
14746
|
+
var __vue2_script$5 = {
|
|
14747
|
+
name: "VPopperContent",
|
|
14748
|
+
components: {
|
|
14749
|
+
ResizeObserver: __vue_component__
|
|
14750
|
+
},
|
|
14751
|
+
mixins: [
|
|
14752
|
+
PrivateThemeClass
|
|
14753
|
+
],
|
|
14754
|
+
props: {
|
|
14755
|
+
popperId: String,
|
|
14756
|
+
theme: String,
|
|
14757
|
+
shown: Boolean,
|
|
14758
|
+
mounted: Boolean,
|
|
14759
|
+
skipTransition: Boolean,
|
|
14760
|
+
autoHide: Boolean,
|
|
14761
|
+
handleResize: Boolean,
|
|
14762
|
+
classes: Object,
|
|
14763
|
+
result: Object
|
|
14764
|
+
},
|
|
14765
|
+
methods: {
|
|
14766
|
+
toPx(value) {
|
|
14767
|
+
if (value != null && !isNaN(value)) {
|
|
14768
|
+
return `${value}px`;
|
|
14769
|
+
}
|
|
14770
|
+
return null;
|
|
14771
|
+
}
|
|
14772
|
+
}
|
|
14773
|
+
};
|
|
14774
|
+
var render$2 = function() {
|
|
14775
|
+
var _vm = this;
|
|
14776
|
+
var _h = _vm.$createElement;
|
|
14777
|
+
var _c = _vm._self._c || _h;
|
|
14778
|
+
return _c("div", { ref: "popover", staticClass: "v-popper__popper", class: [
|
|
14779
|
+
_vm.themeClass,
|
|
14780
|
+
_vm.classes.popperClass,
|
|
14781
|
+
{
|
|
14782
|
+
"v-popper__popper--shown": _vm.shown,
|
|
14783
|
+
"v-popper__popper--hidden": !_vm.shown,
|
|
14784
|
+
"v-popper__popper--show-from": _vm.classes.showFrom,
|
|
14785
|
+
"v-popper__popper--show-to": _vm.classes.showTo,
|
|
14786
|
+
"v-popper__popper--hide-from": _vm.classes.hideFrom,
|
|
14787
|
+
"v-popper__popper--hide-to": _vm.classes.hideTo,
|
|
14788
|
+
"v-popper__popper--skip-transition": _vm.skipTransition,
|
|
14789
|
+
"v-popper__popper--arrow-overflow": _vm.result && _vm.result.arrow.overflow,
|
|
14790
|
+
"v-popper__popper--no-positioning": !_vm.result
|
|
14791
|
+
}
|
|
14792
|
+
], style: _vm.result ? {
|
|
14793
|
+
position: _vm.result.strategy,
|
|
14794
|
+
transform: "translate3d(" + Math.round(_vm.result.x) + "px," + Math.round(_vm.result.y) + "px,0)"
|
|
14795
|
+
} : 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) {
|
|
14796
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) {
|
|
14797
|
+
return null;
|
|
14798
|
+
}
|
|
14799
|
+
_vm.autoHide && _vm.$emit("hide");
|
|
14800
|
+
} } }, [_c("div", { staticClass: "v-popper__backdrop", on: { "click": function($event) {
|
|
14801
|
+
_vm.autoHide && _vm.$emit("hide");
|
|
14802
|
+
} } }), _c("div", { staticClass: "v-popper__wrapper", style: _vm.result ? {
|
|
14803
|
+
transformOrigin: _vm.result.transformOrigin
|
|
14804
|
+
} : 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) {
|
|
14805
|
+
return _vm.$emit("resize", $event);
|
|
14806
|
+
} } }) : _vm._e()] : _vm._e()], 2), _c("div", { ref: "arrow", staticClass: "v-popper__arrow-container", style: _vm.result ? {
|
|
14807
|
+
left: _vm.toPx(_vm.result.arrow.x),
|
|
14808
|
+
top: _vm.toPx(_vm.result.arrow.y)
|
|
14809
|
+
} : void 0 }, [_c("div", { staticClass: "v-popper__arrow-outer" }), _c("div", { staticClass: "v-popper__arrow-inner" })])])]);
|
|
14810
|
+
};
|
|
14811
|
+
var staticRenderFns$2 = [];
|
|
14812
|
+
var PopperContent_vue_vue_type_style_index_0_lang = "";
|
|
14813
|
+
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
14814
|
+
var options2 = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
14815
|
+
if (render2) {
|
|
14816
|
+
options2.render = render2;
|
|
14817
|
+
options2.staticRenderFns = staticRenderFns2;
|
|
14818
|
+
options2._compiled = true;
|
|
14819
|
+
}
|
|
14820
|
+
if (functionalTemplate) {
|
|
14821
|
+
options2.functional = true;
|
|
14822
|
+
}
|
|
14823
|
+
if (scopeId) {
|
|
14824
|
+
options2._scopeId = "data-v-" + scopeId;
|
|
14825
|
+
}
|
|
14826
|
+
var hook;
|
|
14827
|
+
if (moduleIdentifier) {
|
|
14828
|
+
hook = function(context) {
|
|
14829
|
+
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
14830
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
14831
|
+
context = __VUE_SSR_CONTEXT__;
|
|
14832
|
+
}
|
|
14833
|
+
if (injectStyles) {
|
|
14834
|
+
injectStyles.call(this, context);
|
|
14835
|
+
}
|
|
14836
|
+
if (context && context._registeredComponents) {
|
|
14837
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
14838
|
+
}
|
|
14839
|
+
};
|
|
14840
|
+
options2._ssrRegister = hook;
|
|
14841
|
+
} else if (injectStyles) {
|
|
14842
|
+
hook = shadowMode ? function() {
|
|
14843
|
+
injectStyles.call(this, (options2.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
14844
|
+
} : injectStyles;
|
|
14845
|
+
}
|
|
14846
|
+
if (hook) {
|
|
14847
|
+
if (options2.functional) {
|
|
14848
|
+
options2._injectStyles = hook;
|
|
14849
|
+
var originalRender = options2.render;
|
|
14850
|
+
options2.render = function renderWithStyleInjection(h, context) {
|
|
14851
|
+
hook.call(context);
|
|
14852
|
+
return originalRender(h, context);
|
|
14853
|
+
};
|
|
14854
|
+
} else {
|
|
14855
|
+
var existing = options2.beforeCreate;
|
|
14856
|
+
options2.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
14857
|
+
}
|
|
14858
|
+
}
|
|
14859
|
+
return {
|
|
14860
|
+
exports: scriptExports,
|
|
14861
|
+
options: options2
|
|
14862
|
+
};
|
|
14863
|
+
}
|
|
14864
|
+
const __cssModules$5 = {};
|
|
14865
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$2, staticRenderFns$2, false, __vue2_injectStyles$5, null, null, null);
|
|
14866
|
+
function __vue2_injectStyles$5(context) {
|
|
14867
|
+
for (let o in __cssModules$5) {
|
|
14868
|
+
this[o] = __cssModules$5[o];
|
|
14869
|
+
}
|
|
14870
|
+
}
|
|
14871
|
+
var PrivatePopperContent = /* @__PURE__ */ function() {
|
|
14872
|
+
return __component__$5.exports;
|
|
14873
|
+
}();
|
|
14874
|
+
var PrivatePopperMethods = {
|
|
14875
|
+
methods: {
|
|
14876
|
+
show(...args) {
|
|
14877
|
+
return this.$refs.popper.show(...args);
|
|
14878
|
+
},
|
|
14879
|
+
hide(...args) {
|
|
14880
|
+
return this.$refs.popper.hide(...args);
|
|
14881
|
+
},
|
|
14882
|
+
dispose(...args) {
|
|
14883
|
+
return this.$refs.popper.dispose(...args);
|
|
14884
|
+
},
|
|
14885
|
+
onResize(...args) {
|
|
14886
|
+
return this.$refs.popper.onResize(...args);
|
|
14887
|
+
}
|
|
14888
|
+
}
|
|
14889
|
+
};
|
|
14890
|
+
var __vue2_script$4 = {
|
|
14891
|
+
name: "VPopperWrapper",
|
|
14892
|
+
components: {
|
|
14893
|
+
Popper: PrivatePopper(),
|
|
14894
|
+
PopperContent: PrivatePopperContent
|
|
14895
|
+
},
|
|
14896
|
+
mixins: [
|
|
14897
|
+
PrivatePopperMethods,
|
|
14898
|
+
PrivateThemeClass
|
|
14899
|
+
],
|
|
14900
|
+
inheritAttrs: false,
|
|
14901
|
+
props: {
|
|
14902
|
+
theme: {
|
|
14903
|
+
type: String,
|
|
14904
|
+
default() {
|
|
14905
|
+
return this.$options.vPopperTheme;
|
|
14906
|
+
}
|
|
14907
|
+
}
|
|
14908
|
+
},
|
|
14909
|
+
methods: {
|
|
14910
|
+
getTargetNodes() {
|
|
14911
|
+
return Array.from(this.$refs.reference.children).filter((node) => node !== this.$refs.popperContent.$el);
|
|
14912
|
+
}
|
|
14913
|
+
}
|
|
14914
|
+
};
|
|
14915
|
+
var render$1 = function() {
|
|
14916
|
+
var _vm = this;
|
|
14917
|
+
var _h = _vm.$createElement;
|
|
14918
|
+
var _c = _vm._self._c || _h;
|
|
14919
|
+
return _c("Popper", _vm._g(_vm._b({ ref: "popper", attrs: { "theme": _vm.theme, "target-nodes": _vm.getTargetNodes, "reference-node": function() {
|
|
14920
|
+
return _vm.$refs.reference;
|
|
14921
|
+
}, "popper-node": function() {
|
|
14922
|
+
return _vm.$refs.popperContent.$el;
|
|
14923
|
+
} }, scopedSlots: _vm._u([{ key: "default", fn: function(ref) {
|
|
14924
|
+
var popperId = ref.popperId;
|
|
14925
|
+
var isShown = ref.isShown;
|
|
14926
|
+
var shouldMountContent = ref.shouldMountContent;
|
|
14927
|
+
var skipTransition = ref.skipTransition;
|
|
14928
|
+
var autoHide = ref.autoHide;
|
|
14929
|
+
var show = ref.show;
|
|
14930
|
+
var hide = ref.hide;
|
|
14931
|
+
var handleResize = ref.handleResize;
|
|
14932
|
+
var onResize = ref.onResize;
|
|
14933
|
+
var classes = ref.classes;
|
|
14934
|
+
var result = ref.result;
|
|
14935
|
+
return [_c("div", { ref: "reference", staticClass: "v-popper", class: [
|
|
14936
|
+
_vm.themeClass,
|
|
14937
|
+
{
|
|
14938
|
+
"v-popper--shown": isShown
|
|
14939
|
+
}
|
|
14940
|
+
] }, [_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)];
|
|
14941
|
+
} }], null, true) }, "Popper", _vm.$attrs, false), _vm.$listeners));
|
|
14942
|
+
};
|
|
14943
|
+
var staticRenderFns$1 = [];
|
|
14944
|
+
const __cssModules$4 = {};
|
|
14945
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$1, staticRenderFns$1, false, __vue2_injectStyles$4, null, null, null);
|
|
14946
|
+
function __vue2_injectStyles$4(context) {
|
|
14947
|
+
for (let o in __cssModules$4) {
|
|
14948
|
+
this[o] = __cssModules$4[o];
|
|
14949
|
+
}
|
|
14950
|
+
}
|
|
14951
|
+
var PrivatePopperWrapper = /* @__PURE__ */ function() {
|
|
14952
|
+
return __component__$4.exports;
|
|
14953
|
+
}();
|
|
14954
|
+
var __vue2_script$3 = __spreadProps(__spreadValues({}, PrivatePopperWrapper), {
|
|
14955
|
+
name: "VDropdown",
|
|
14956
|
+
vPopperTheme: "dropdown"
|
|
14957
|
+
});
|
|
14958
|
+
var Dropdown_vue_vue_type_style_index_0_lang = "";
|
|
14959
|
+
let __vue2_render$2, __vue2_staticRenderFns$2;
|
|
14960
|
+
const __cssModules$3 = {};
|
|
14961
|
+
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, __vue2_render$2, __vue2_staticRenderFns$2, false, __vue2_injectStyles$3, null, null, null);
|
|
14962
|
+
function __vue2_injectStyles$3(context) {
|
|
14963
|
+
for (let o in __cssModules$3) {
|
|
14964
|
+
this[o] = __cssModules$3[o];
|
|
14965
|
+
}
|
|
14966
|
+
}
|
|
14967
|
+
var PrivateDropdown = /* @__PURE__ */ function() {
|
|
14968
|
+
return __component__$3.exports;
|
|
14969
|
+
}();
|
|
14970
|
+
var __vue2_script$2 = __spreadProps(__spreadValues({}, PrivatePopperWrapper), {
|
|
14971
|
+
name: "VMenu",
|
|
14972
|
+
vPopperTheme: "menu"
|
|
14973
|
+
});
|
|
14974
|
+
let __vue2_render$1, __vue2_staticRenderFns$1;
|
|
14975
|
+
const __cssModules$2 = {};
|
|
14976
|
+
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, __vue2_render$1, __vue2_staticRenderFns$1, false, __vue2_injectStyles$2, null, null, null);
|
|
14977
|
+
function __vue2_injectStyles$2(context) {
|
|
14978
|
+
for (let o in __cssModules$2) {
|
|
14979
|
+
this[o] = __cssModules$2[o];
|
|
14980
|
+
}
|
|
14981
|
+
}
|
|
14982
|
+
var PrivateMenu = /* @__PURE__ */ function() {
|
|
14983
|
+
return __component__$2.exports;
|
|
14984
|
+
}();
|
|
14985
|
+
var __vue2_script$1 = __spreadProps(__spreadValues({}, PrivatePopperWrapper), {
|
|
14986
|
+
name: "VTooltip",
|
|
14987
|
+
vPopperTheme: "tooltip"
|
|
14988
|
+
});
|
|
14989
|
+
var Tooltip_vue_vue_type_style_index_0_lang = "";
|
|
14990
|
+
let __vue2_render, __vue2_staticRenderFns;
|
|
14991
|
+
const __cssModules$1 = {};
|
|
14992
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles$1, null, null, null);
|
|
14993
|
+
function __vue2_injectStyles$1(context) {
|
|
14994
|
+
for (let o in __cssModules$1) {
|
|
14995
|
+
this[o] = __cssModules$1[o];
|
|
14996
|
+
}
|
|
14997
|
+
}
|
|
14998
|
+
var PrivateTooltip = /* @__PURE__ */ function() {
|
|
14999
|
+
return __component__$1.exports;
|
|
15000
|
+
}();
|
|
15001
|
+
var __vue2_script = {
|
|
15002
|
+
name: "VTooltipDirective",
|
|
15003
|
+
components: {
|
|
15004
|
+
Popper: PrivatePopper(),
|
|
15005
|
+
PopperContent: PrivatePopperContent
|
|
15006
|
+
},
|
|
15007
|
+
mixins: [
|
|
15008
|
+
PrivatePopperMethods
|
|
15009
|
+
],
|
|
15010
|
+
inheritAttrs: false,
|
|
15011
|
+
props: {
|
|
15012
|
+
theme: {
|
|
15013
|
+
type: String,
|
|
15014
|
+
default: "tooltip"
|
|
15015
|
+
},
|
|
15016
|
+
html: {
|
|
15017
|
+
type: Boolean,
|
|
15018
|
+
default() {
|
|
15019
|
+
return getDefaultConfig(this.theme, "html");
|
|
15020
|
+
}
|
|
15021
|
+
},
|
|
15022
|
+
content: {
|
|
15023
|
+
type: [String, Number, Function],
|
|
15024
|
+
default: null
|
|
15025
|
+
},
|
|
15026
|
+
loadingContent: {
|
|
15027
|
+
type: String,
|
|
15028
|
+
default() {
|
|
15029
|
+
return getDefaultConfig(this.theme, "loadingContent");
|
|
15030
|
+
}
|
|
15031
|
+
}
|
|
15032
|
+
},
|
|
15033
|
+
data() {
|
|
15034
|
+
return {
|
|
15035
|
+
asyncContent: null
|
|
15036
|
+
};
|
|
15037
|
+
},
|
|
15038
|
+
computed: {
|
|
15039
|
+
isContentAsync() {
|
|
15040
|
+
return typeof this.content === "function";
|
|
15041
|
+
},
|
|
15042
|
+
loading() {
|
|
15043
|
+
return this.isContentAsync && this.asyncContent == null;
|
|
15044
|
+
},
|
|
15045
|
+
finalContent() {
|
|
15046
|
+
if (this.isContentAsync) {
|
|
15047
|
+
return this.loading ? this.loadingContent : this.asyncContent;
|
|
15048
|
+
}
|
|
15049
|
+
return this.content;
|
|
15050
|
+
}
|
|
15051
|
+
},
|
|
15052
|
+
watch: {
|
|
15053
|
+
content: {
|
|
15054
|
+
handler() {
|
|
15055
|
+
this.fetchContent(true);
|
|
15056
|
+
},
|
|
15057
|
+
immediate: true
|
|
15058
|
+
},
|
|
15059
|
+
async finalContent(value) {
|
|
15060
|
+
await this.$nextTick();
|
|
15061
|
+
this.$refs.popper.onResize();
|
|
15062
|
+
}
|
|
15063
|
+
},
|
|
15064
|
+
created() {
|
|
15065
|
+
this.$_fetchId = 0;
|
|
15066
|
+
},
|
|
15067
|
+
methods: {
|
|
15068
|
+
fetchContent(force) {
|
|
15069
|
+
if (typeof this.content === "function" && this.$_isShown && (force || !this.$_loading && this.asyncContent == null)) {
|
|
15070
|
+
this.asyncContent = null;
|
|
15071
|
+
this.$_loading = true;
|
|
15072
|
+
const fetchId = ++this.$_fetchId;
|
|
15073
|
+
const result = this.content(this);
|
|
15074
|
+
if (result.then) {
|
|
15075
|
+
result.then((res) => this.onResult(fetchId, res));
|
|
15076
|
+
} else {
|
|
15077
|
+
this.onResult(fetchId, result);
|
|
15078
|
+
}
|
|
15079
|
+
}
|
|
15080
|
+
},
|
|
15081
|
+
onResult(fetchId, result) {
|
|
15082
|
+
if (fetchId !== this.$_fetchId)
|
|
15083
|
+
return;
|
|
15084
|
+
this.$_loading = false;
|
|
15085
|
+
this.asyncContent = result;
|
|
15086
|
+
},
|
|
15087
|
+
onShow() {
|
|
15088
|
+
this.$_isShown = true;
|
|
15089
|
+
this.fetchContent();
|
|
15090
|
+
},
|
|
15091
|
+
onHide() {
|
|
15092
|
+
this.$_isShown = false;
|
|
15093
|
+
}
|
|
15094
|
+
}
|
|
15095
|
+
};
|
|
15096
|
+
var render = function() {
|
|
15097
|
+
var _vm = this;
|
|
15098
|
+
var _h = _vm.$createElement;
|
|
15099
|
+
var _c = _vm._self._c || _h;
|
|
15100
|
+
return _c("Popper", _vm._g(_vm._b({ ref: "popper", attrs: { "theme": _vm.theme, "popper-node": function() {
|
|
15101
|
+
return _vm.$refs.popperContent.$el;
|
|
15102
|
+
} }, on: { "apply-show": _vm.onShow, "apply-hide": _vm.onHide }, scopedSlots: _vm._u([{ key: "default", fn: function(ref) {
|
|
15103
|
+
var popperId = ref.popperId;
|
|
15104
|
+
var isShown = ref.isShown;
|
|
15105
|
+
var shouldMountContent = ref.shouldMountContent;
|
|
15106
|
+
var skipTransition = ref.skipTransition;
|
|
15107
|
+
var autoHide = ref.autoHide;
|
|
15108
|
+
var hide = ref.hide;
|
|
15109
|
+
var handleResize = ref.handleResize;
|
|
15110
|
+
var onResize = ref.onResize;
|
|
15111
|
+
var classes = ref.classes;
|
|
15112
|
+
var result = ref.result;
|
|
15113
|
+
return [_c("PopperContent", { ref: "popperContent", class: {
|
|
15114
|
+
"v-popper--tooltip-loading": _vm.loading
|
|
15115
|
+
}, 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) } })])];
|
|
15116
|
+
} }]) }, "Popper", _vm.$attrs, false), _vm.$listeners));
|
|
15117
|
+
};
|
|
15118
|
+
var staticRenderFns = [];
|
|
15119
|
+
const __cssModules = {};
|
|
15120
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
|
|
15121
|
+
function __vue2_injectStyles(context) {
|
|
15122
|
+
for (let o in __cssModules) {
|
|
15123
|
+
this[o] = __cssModules[o];
|
|
15124
|
+
}
|
|
15125
|
+
}
|
|
15126
|
+
var PrivateTooltipDirective = /* @__PURE__ */ function() {
|
|
15127
|
+
return __component__.exports;
|
|
15128
|
+
}();
|
|
15129
|
+
const TARGET_CLASS = "v-popper--has-tooltip";
|
|
15130
|
+
function getPlacement(options2, modifiers) {
|
|
15131
|
+
let result = options2.placement;
|
|
15132
|
+
if (!result && modifiers) {
|
|
15133
|
+
for (const pos of placements) {
|
|
15134
|
+
if (modifiers[pos]) {
|
|
15135
|
+
result = pos;
|
|
15136
|
+
}
|
|
15137
|
+
}
|
|
15138
|
+
}
|
|
15139
|
+
if (!result) {
|
|
15140
|
+
result = getDefaultConfig(options2.theme || "tooltip", "placement");
|
|
15141
|
+
}
|
|
15142
|
+
return result;
|
|
15143
|
+
}
|
|
15144
|
+
function getOptions(el, value, modifiers) {
|
|
15145
|
+
let options2;
|
|
15146
|
+
const type = typeof value;
|
|
15147
|
+
if (type === "string") {
|
|
15148
|
+
options2 = { content: value };
|
|
15149
|
+
} else if (value && type === "object") {
|
|
15150
|
+
options2 = value;
|
|
15151
|
+
} else {
|
|
15152
|
+
options2 = { content: false };
|
|
15153
|
+
}
|
|
15154
|
+
options2.placement = getPlacement(options2, modifiers);
|
|
15155
|
+
options2.targetNodes = () => [el];
|
|
15156
|
+
options2.referenceNode = () => el;
|
|
15157
|
+
return options2;
|
|
15158
|
+
}
|
|
15159
|
+
function createTooltip(el, value, modifiers) {
|
|
15160
|
+
const options2 = getOptions(el, value, modifiers);
|
|
15161
|
+
const tooltipApp = el.$_popper = new (external_commonjs_vue_commonjs2_vue_root_Vue_default())({
|
|
15162
|
+
mixins: [
|
|
15163
|
+
PrivatePopperMethods
|
|
15164
|
+
],
|
|
15165
|
+
data() {
|
|
15166
|
+
return {
|
|
15167
|
+
options: options2
|
|
15168
|
+
};
|
|
15169
|
+
},
|
|
15170
|
+
render(h) {
|
|
15171
|
+
const _a = this.options, {
|
|
15172
|
+
theme,
|
|
15173
|
+
html,
|
|
15174
|
+
content,
|
|
15175
|
+
loadingContent
|
|
15176
|
+
} = _a, otherOptions = __objRest(_a, [
|
|
15177
|
+
"theme",
|
|
15178
|
+
"html",
|
|
15179
|
+
"content",
|
|
15180
|
+
"loadingContent"
|
|
15181
|
+
]);
|
|
15182
|
+
return h(PrivateTooltipDirective, {
|
|
15183
|
+
props: {
|
|
15184
|
+
theme,
|
|
15185
|
+
html,
|
|
15186
|
+
content,
|
|
15187
|
+
loadingContent
|
|
15188
|
+
},
|
|
15189
|
+
attrs: otherOptions,
|
|
15190
|
+
ref: "popper"
|
|
15191
|
+
});
|
|
15192
|
+
},
|
|
15193
|
+
devtools: {
|
|
15194
|
+
hide: true
|
|
15195
|
+
}
|
|
15196
|
+
});
|
|
15197
|
+
const mountTarget = document.createElement("div");
|
|
15198
|
+
document.body.appendChild(mountTarget);
|
|
15199
|
+
tooltipApp.$mount(mountTarget);
|
|
15200
|
+
if (el.classList) {
|
|
15201
|
+
el.classList.add(TARGET_CLASS);
|
|
15202
|
+
}
|
|
15203
|
+
return tooltipApp;
|
|
15204
|
+
}
|
|
15205
|
+
function destroyTooltip(el) {
|
|
15206
|
+
if (el.$_popper) {
|
|
15207
|
+
el.$_popper.$destroy();
|
|
15208
|
+
delete el.$_popper;
|
|
15209
|
+
delete el.$_popperOldShown;
|
|
15210
|
+
}
|
|
15211
|
+
if (el.classList) {
|
|
15212
|
+
el.classList.remove(TARGET_CLASS);
|
|
15213
|
+
}
|
|
15214
|
+
}
|
|
15215
|
+
function bind(el, { value, oldValue, modifiers }) {
|
|
15216
|
+
const options2 = getOptions(el, value, modifiers);
|
|
15217
|
+
if (!options2.content || getDefaultConfig(options2.theme || "tooltip", "disabled")) {
|
|
15218
|
+
destroyTooltip(el);
|
|
15219
|
+
} else {
|
|
15220
|
+
let tooltipApp;
|
|
15221
|
+
if (el.$_popper) {
|
|
15222
|
+
tooltipApp = el.$_popper;
|
|
15223
|
+
tooltipApp.options = options2;
|
|
15224
|
+
} else {
|
|
15225
|
+
tooltipApp = createTooltip(el, value, modifiers);
|
|
15226
|
+
}
|
|
15227
|
+
if (typeof value.shown !== "undefined" && value.shown !== el.$_popperOldShown) {
|
|
15228
|
+
el.$_popperOldShown = value.shown;
|
|
15229
|
+
value.shown ? tooltipApp.show() : tooltipApp.hide();
|
|
15230
|
+
}
|
|
15231
|
+
}
|
|
15232
|
+
}
|
|
15233
|
+
var PrivateVTooltip = {
|
|
15234
|
+
bind,
|
|
15235
|
+
update: bind,
|
|
15236
|
+
unbind(el) {
|
|
15237
|
+
destroyTooltip(el);
|
|
15238
|
+
}
|
|
15239
|
+
};
|
|
15240
|
+
function addListeners(el) {
|
|
15241
|
+
el.addEventListener("click", onClick);
|
|
15242
|
+
el.addEventListener("touchstart", onTouchStart, supportsPassive ? {
|
|
15243
|
+
passive: true
|
|
15244
|
+
} : false);
|
|
15245
|
+
}
|
|
15246
|
+
function removeListeners(el) {
|
|
15247
|
+
el.removeEventListener("click", onClick);
|
|
15248
|
+
el.removeEventListener("touchstart", onTouchStart);
|
|
15249
|
+
el.removeEventListener("touchend", onTouchEnd);
|
|
15250
|
+
el.removeEventListener("touchcancel", onTouchCancel);
|
|
15251
|
+
}
|
|
15252
|
+
function onClick(event) {
|
|
15253
|
+
const el = event.currentTarget;
|
|
15254
|
+
event.closePopover = !el.$_vclosepopover_touch;
|
|
15255
|
+
event.closeAllPopover = el.$_closePopoverModifiers && !!el.$_closePopoverModifiers.all;
|
|
15256
|
+
}
|
|
15257
|
+
function onTouchStart(event) {
|
|
15258
|
+
if (event.changedTouches.length === 1) {
|
|
15259
|
+
const el = event.currentTarget;
|
|
15260
|
+
el.$_vclosepopover_touch = true;
|
|
15261
|
+
const touch = event.changedTouches[0];
|
|
15262
|
+
el.$_vclosepopover_touchPoint = touch;
|
|
15263
|
+
el.addEventListener("touchend", onTouchEnd);
|
|
15264
|
+
el.addEventListener("touchcancel", onTouchCancel);
|
|
15265
|
+
}
|
|
15266
|
+
}
|
|
15267
|
+
function onTouchEnd(event) {
|
|
15268
|
+
const el = event.currentTarget;
|
|
15269
|
+
el.$_vclosepopover_touch = false;
|
|
15270
|
+
if (event.changedTouches.length === 1) {
|
|
15271
|
+
const touch = event.changedTouches[0];
|
|
15272
|
+
const firstTouch = el.$_vclosepopover_touchPoint;
|
|
15273
|
+
event.closePopover = Math.abs(touch.screenY - firstTouch.screenY) < 20 && Math.abs(touch.screenX - firstTouch.screenX) < 20;
|
|
15274
|
+
event.closeAllPopover = el.$_closePopoverModifiers && !!el.$_closePopoverModifiers.all;
|
|
15275
|
+
}
|
|
15276
|
+
}
|
|
15277
|
+
function onTouchCancel(event) {
|
|
15278
|
+
const el = event.currentTarget;
|
|
15279
|
+
el.$_vclosepopover_touch = false;
|
|
15280
|
+
}
|
|
15281
|
+
var PrivateVClosePopper = {
|
|
15282
|
+
bind(el, { value, modifiers }) {
|
|
15283
|
+
el.$_closePopoverModifiers = modifiers;
|
|
15284
|
+
if (typeof value === "undefined" || value) {
|
|
15285
|
+
addListeners(el);
|
|
15286
|
+
}
|
|
15287
|
+
},
|
|
15288
|
+
update(el, { value, oldValue, modifiers }) {
|
|
15289
|
+
el.$_closePopoverModifiers = modifiers;
|
|
15290
|
+
if (value !== oldValue) {
|
|
15291
|
+
if (typeof value === "undefined" || value) {
|
|
15292
|
+
addListeners(el);
|
|
15293
|
+
} else {
|
|
15294
|
+
removeListeners(el);
|
|
15295
|
+
}
|
|
15296
|
+
}
|
|
15297
|
+
},
|
|
15298
|
+
unbind(el) {
|
|
15299
|
+
removeListeners(el);
|
|
15300
|
+
}
|
|
15301
|
+
};
|
|
15302
|
+
const options = (/* unused pure expression or super */ null && (config));
|
|
15303
|
+
const VTooltip = (/* unused pure expression or super */ null && (PrivateVTooltip));
|
|
15304
|
+
const VClosePopper = (/* unused pure expression or super */ null && (PrivateVClosePopper));
|
|
15305
|
+
const Dropdown = (/* unused pure expression or super */ null && (PrivateDropdown));
|
|
15306
|
+
const Menu = (/* unused pure expression or super */ null && (PrivateMenu));
|
|
15307
|
+
const Popper = (/* unused pure expression or super */ null && (PrivatePopper));
|
|
15308
|
+
const PopperContent = (/* unused pure expression or super */ null && (PrivatePopperContent));
|
|
15309
|
+
const PopperMethods = (/* unused pure expression or super */ null && (PrivatePopperMethods));
|
|
15310
|
+
const PopperWrapper = (/* unused pure expression or super */ null && (PrivatePopperWrapper));
|
|
15311
|
+
const ThemeClass = (/* unused pure expression or super */ null && (PrivateThemeClass));
|
|
15312
|
+
const Tooltip = (/* unused pure expression or super */ null && (PrivateTooltip));
|
|
15313
|
+
const TooltipDirective = (/* unused pure expression or super */ null && (PrivateTooltipDirective));
|
|
15314
|
+
function install(app, options2 = {}) {
|
|
15315
|
+
if (app.$_vTooltipInstalled)
|
|
15316
|
+
return;
|
|
15317
|
+
app.$_vTooltipInstalled = true;
|
|
15318
|
+
floating_vue_es_assign(config, options2);
|
|
15319
|
+
app.directive("tooltip", PrivateVTooltip);
|
|
15320
|
+
app.directive("close-popper", PrivateVClosePopper);
|
|
15321
|
+
app.component("v-tooltip", PrivateTooltip);
|
|
15322
|
+
app.component("VTooltip", PrivateTooltip);
|
|
15323
|
+
app.component("v-dropdown", PrivateDropdown);
|
|
15324
|
+
app.component("VDropdown", PrivateDropdown);
|
|
15325
|
+
app.component("v-menu", PrivateMenu);
|
|
15326
|
+
app.component("VMenu", PrivateMenu);
|
|
15327
|
+
}
|
|
15328
|
+
const floating_vue_es_plugin = {
|
|
15329
|
+
version: "1.0.0-beta.17",
|
|
15330
|
+
install,
|
|
15331
|
+
options: config
|
|
15332
|
+
};
|
|
15333
|
+
let GlobalVue = null;
|
|
15334
|
+
if (typeof window !== "undefined") {
|
|
15335
|
+
GlobalVue = window.Vue;
|
|
15336
|
+
} else if (typeof __webpack_require__.g !== "undefined") {
|
|
15337
|
+
GlobalVue = __webpack_require__.g.Vue;
|
|
15338
|
+
}
|
|
15339
|
+
if (GlobalVue) {
|
|
15340
|
+
GlobalVue.use(floating_vue_es_plugin);
|
|
15341
|
+
}
|
|
15342
|
+
|
|
15343
|
+
|
|
11942
15344
|
;// 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&
|
|
11943
|
-
var
|
|
11944
|
-
var
|
|
15345
|
+
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)}
|
|
15346
|
+
var wt_avatarvue_type_template_id_49b0d3b8_scoped_true_staticRenderFns = []
|
|
11945
15347
|
|
|
11946
15348
|
|
|
11947
15349
|
;// CONCATENATED MODULE: ./src/components/atoms/wt-avatar/wt-avatar.vue?vue&type=template&id=49b0d3b8&scoped=true&
|
|
@@ -12029,7 +15431,7 @@ var AbstractUserStatus = Object.freeze({
|
|
|
12029
15431
|
// This module is a runtime utility for cleaner component module output and will
|
|
12030
15432
|
// be included in the final webpack user bundle.
|
|
12031
15433
|
|
|
12032
|
-
function
|
|
15434
|
+
function componentNormalizer_normalizeComponent (
|
|
12033
15435
|
scriptExports,
|
|
12034
15436
|
render,
|
|
12035
15437
|
staticRenderFns,
|
|
@@ -12131,10 +15533,10 @@ function normalizeComponent (
|
|
|
12131
15533
|
|
|
12132
15534
|
/* normalize component */
|
|
12133
15535
|
|
|
12134
|
-
var component =
|
|
15536
|
+
var component = componentNormalizer_normalizeComponent(
|
|
12135
15537
|
wt_avatar_wt_avatarvue_type_script_lang_js_,
|
|
12136
|
-
|
|
12137
|
-
|
|
15538
|
+
wt_avatarvue_type_template_id_49b0d3b8_scoped_true_render,
|
|
15539
|
+
wt_avatarvue_type_template_id_49b0d3b8_scoped_true_staticRenderFns,
|
|
12138
15540
|
false,
|
|
12139
15541
|
null,
|
|
12140
15542
|
"49b0d3b8",
|
|
@@ -12187,7 +15589,7 @@ var wt_badgevue_type_template_id_94557de2_scoped_true_staticRenderFns = []
|
|
|
12187
15589
|
|
|
12188
15590
|
/* normalize component */
|
|
12189
15591
|
|
|
12190
|
-
var wt_badge_component =
|
|
15592
|
+
var wt_badge_component = componentNormalizer_normalizeComponent(
|
|
12191
15593
|
wt_badge_wt_badgevue_type_script_lang_js_,
|
|
12192
15594
|
wt_badgevue_type_template_id_94557de2_scoped_true_render,
|
|
12193
15595
|
wt_badgevue_type_template_id_94557de2_scoped_true_staticRenderFns,
|
|
@@ -12277,7 +15679,7 @@ var es_array_concat = __webpack_require__(2222);
|
|
|
12277
15679
|
|
|
12278
15680
|
/* normalize component */
|
|
12279
15681
|
|
|
12280
|
-
var wt_icon_component =
|
|
15682
|
+
var wt_icon_component = componentNormalizer_normalizeComponent(
|
|
12281
15683
|
wt_icon_wt_iconvue_type_script_lang_js_,
|
|
12282
15684
|
wt_iconvue_type_template_id_7b466648_scoped_true_render,
|
|
12283
15685
|
wt_iconvue_type_template_id_7b466648_scoped_true_staticRenderFns,
|
|
@@ -12359,7 +15761,7 @@ var es_number_constructor = __webpack_require__(9653);
|
|
|
12359
15761
|
|
|
12360
15762
|
/* normalize component */
|
|
12361
15763
|
|
|
12362
|
-
var wt_indicator_component =
|
|
15764
|
+
var wt_indicator_component = componentNormalizer_normalizeComponent(
|
|
12363
15765
|
wt_indicator_wt_indicatorvue_type_script_lang_js_,
|
|
12364
15766
|
wt_indicatorvue_type_template_id_b50e50a2_scoped_true_render,
|
|
12365
15767
|
wt_indicatorvue_type_template_id_b50e50a2_scoped_true_staticRenderFns,
|
|
@@ -12415,7 +15817,7 @@ var wt_input_infovue_type_template_id_7743f2f2_scoped_true_staticRenderFns = []
|
|
|
12415
15817
|
|
|
12416
15818
|
/* normalize component */
|
|
12417
15819
|
|
|
12418
|
-
var wt_input_info_component =
|
|
15820
|
+
var wt_input_info_component = componentNormalizer_normalizeComponent(
|
|
12419
15821
|
wt_input_info_wt_input_infovue_type_script_lang_js_,
|
|
12420
15822
|
wt_input_infovue_type_template_id_7743f2f2_scoped_true_render,
|
|
12421
15823
|
wt_input_infovue_type_template_id_7743f2f2_scoped_true_staticRenderFns,
|
|
@@ -12539,7 +15941,7 @@ var es_array_includes = __webpack_require__(6699);
|
|
|
12539
15941
|
|
|
12540
15942
|
/* normalize component */
|
|
12541
15943
|
|
|
12542
|
-
var wt_button_component =
|
|
15944
|
+
var wt_button_component = componentNormalizer_normalizeComponent(
|
|
12543
15945
|
wt_button_wt_buttonvue_type_script_lang_js_,
|
|
12544
15946
|
wt_buttonvue_type_template_id_427095ff_scoped_true_render,
|
|
12545
15947
|
wt_buttonvue_type_template_id_427095ff_scoped_true_staticRenderFns,
|
|
@@ -12590,7 +15992,7 @@ var wt_chipvue_type_template_id_7d722038_scoped_true_staticRenderFns = []
|
|
|
12590
15992
|
|
|
12591
15993
|
/* normalize component */
|
|
12592
15994
|
|
|
12593
|
-
var wt_chip_component =
|
|
15995
|
+
var wt_chip_component = componentNormalizer_normalizeComponent(
|
|
12594
15996
|
wt_chip_wt_chipvue_type_script_lang_js_,
|
|
12595
15997
|
wt_chipvue_type_template_id_7d722038_scoped_true_render,
|
|
12596
15998
|
wt_chipvue_type_template_id_7d722038_scoped_true_staticRenderFns,
|
|
@@ -12631,7 +16033,7 @@ var wt_dividervue_type_template_id_10fa1714_scoped_true_staticRenderFns = []
|
|
|
12631
16033
|
|
|
12632
16034
|
/* normalize component */
|
|
12633
16035
|
|
|
12634
|
-
var wt_divider_component =
|
|
16036
|
+
var wt_divider_component = componentNormalizer_normalizeComponent(
|
|
12635
16037
|
wt_divider_wt_dividervue_type_script_lang_js_,
|
|
12636
16038
|
wt_dividervue_type_template_id_10fa1714_scoped_true_render,
|
|
12637
16039
|
wt_dividervue_type_template_id_10fa1714_scoped_true_staticRenderFns,
|
|
@@ -12693,7 +16095,7 @@ var wt_tooltipvue_type_template_id_1bd9146d_scoped_true_staticRenderFns = []
|
|
|
12693
16095
|
|
|
12694
16096
|
/* normalize component */
|
|
12695
16097
|
|
|
12696
|
-
var wt_tooltip_component =
|
|
16098
|
+
var wt_tooltip_component = componentNormalizer_normalizeComponent(
|
|
12697
16099
|
wt_tooltip_wt_tooltipvue_type_script_lang_js_,
|
|
12698
16100
|
wt_tooltipvue_type_template_id_1bd9146d_scoped_true_render,
|
|
12699
16101
|
wt_tooltipvue_type_template_id_1bd9146d_scoped_true_staticRenderFns,
|
|
@@ -12787,7 +16189,7 @@ var wt_rounded_actionvue_type_template_id_6abe1700_scoped_true_staticRenderFns =
|
|
|
12787
16189
|
|
|
12788
16190
|
/* normalize component */
|
|
12789
16191
|
|
|
12790
|
-
var wt_rounded_action_component =
|
|
16192
|
+
var wt_rounded_action_component = componentNormalizer_normalizeComponent(
|
|
12791
16193
|
wt_rounded_action_wt_rounded_actionvue_type_script_lang_js_,
|
|
12792
16194
|
wt_rounded_actionvue_type_template_id_6abe1700_scoped_true_render,
|
|
12793
16195
|
wt_rounded_actionvue_type_template_id_6abe1700_scoped_true_staticRenderFns,
|
|
@@ -12845,7 +16247,7 @@ var wt_loader_smvue_type_template_id_030f3ed0_scoped_true_staticRenderFns = []
|
|
|
12845
16247
|
|
|
12846
16248
|
/* normalize component */
|
|
12847
16249
|
|
|
12848
|
-
var wt_loader_sm_component =
|
|
16250
|
+
var wt_loader_sm_component = componentNormalizer_normalizeComponent(
|
|
12849
16251
|
_internals_wt_loader_smvue_type_script_lang_js_,
|
|
12850
16252
|
wt_loader_smvue_type_template_id_030f3ed0_scoped_true_render,
|
|
12851
16253
|
wt_loader_smvue_type_template_id_030f3ed0_scoped_true_staticRenderFns,
|
|
@@ -12888,7 +16290,7 @@ var wt_loader_mdvue_type_template_id_4cf61586_scoped_true_staticRenderFns = []
|
|
|
12888
16290
|
|
|
12889
16291
|
/* normalize component */
|
|
12890
16292
|
|
|
12891
|
-
var wt_loader_md_component =
|
|
16293
|
+
var wt_loader_md_component = componentNormalizer_normalizeComponent(
|
|
12892
16294
|
_internals_wt_loader_mdvue_type_script_lang_js_,
|
|
12893
16295
|
wt_loader_mdvue_type_template_id_4cf61586_scoped_true_render,
|
|
12894
16296
|
wt_loader_mdvue_type_template_id_4cf61586_scoped_true_staticRenderFns,
|
|
@@ -12937,7 +16339,7 @@ var wt_loader_md_component = normalizeComponent(
|
|
|
12937
16339
|
|
|
12938
16340
|
/* normalize component */
|
|
12939
16341
|
;
|
|
12940
|
-
var wt_loader_component =
|
|
16342
|
+
var wt_loader_component = componentNormalizer_normalizeComponent(
|
|
12941
16343
|
wt_loader_wt_loadervue_type_script_lang_js_,
|
|
12942
16344
|
wt_loadervue_type_template_id_9bbe5b8c_scoped_true_render,
|
|
12943
16345
|
wt_loadervue_type_template_id_9bbe5b8c_scoped_true_staticRenderFns,
|
|
@@ -13007,7 +16409,7 @@ var wt_context_menuvue_type_template_id_23f9fa99_scoped_true_staticRenderFns = [
|
|
|
13007
16409
|
|
|
13008
16410
|
/* normalize component */
|
|
13009
16411
|
|
|
13010
|
-
var wt_context_menu_component =
|
|
16412
|
+
var wt_context_menu_component = componentNormalizer_normalizeComponent(
|
|
13011
16413
|
wt_context_menu_wt_context_menuvue_type_script_lang_js_,
|
|
13012
16414
|
wt_context_menuvue_type_template_id_23f9fa99_scoped_true_render,
|
|
13013
16415
|
wt_context_menuvue_type_template_id_23f9fa99_scoped_true_staticRenderFns,
|
|
@@ -13238,7 +16640,7 @@ var es_string_includes = __webpack_require__(2023);
|
|
|
13238
16640
|
|
|
13239
16641
|
/* normalize component */
|
|
13240
16642
|
|
|
13241
|
-
var wt_checkbox_component =
|
|
16643
|
+
var wt_checkbox_component = componentNormalizer_normalizeComponent(
|
|
13242
16644
|
wt_checkbox_wt_checkboxvue_type_script_lang_js_,
|
|
13243
16645
|
wt_checkboxvue_type_template_id_3460d02e_scoped_true_render,
|
|
13244
16646
|
wt_checkboxvue_type_template_id_3460d02e_scoped_true_staticRenderFns,
|
|
@@ -13654,7 +17056,7 @@ var makeDateUtils = function makeDateUtils(useUtc) {
|
|
|
13654
17056
|
var utils$1 = _objectSpread({}, utils) // eslint-disable-next-line
|
|
13655
17057
|
;
|
|
13656
17058
|
|
|
13657
|
-
var
|
|
17059
|
+
var vuejs_datepicker_esm_script = {
|
|
13658
17060
|
props: {
|
|
13659
17061
|
selectedDate: Date,
|
|
13660
17062
|
resetTypedDate: [Date],
|
|
@@ -13857,10 +17259,10 @@ function vuejs_datepicker_esm_normalizeComponent(template, style, script, scopeI
|
|
|
13857
17259
|
var normalizeComponent_1 = vuejs_datepicker_esm_normalizeComponent;
|
|
13858
17260
|
|
|
13859
17261
|
/* script */
|
|
13860
|
-
const
|
|
17262
|
+
const vuejs_datepicker_esm_vue_script_ = vuejs_datepicker_esm_script;
|
|
13861
17263
|
|
|
13862
17264
|
/* template */
|
|
13863
|
-
var
|
|
17265
|
+
var vuejs_datepicker_esm_vue_render_ = function() {
|
|
13864
17266
|
var _vm = this;
|
|
13865
17267
|
var _h = _vm.$createElement;
|
|
13866
17268
|
var _c = _vm._self._c || _h;
|
|
@@ -13952,17 +17354,17 @@ var __vue_render__ = function() {
|
|
|
13952
17354
|
2
|
|
13953
17355
|
)
|
|
13954
17356
|
};
|
|
13955
|
-
var
|
|
13956
|
-
|
|
17357
|
+
var vuejs_datepicker_esm_vue_staticRenderFns_ = [];
|
|
17358
|
+
vuejs_datepicker_esm_vue_render_._withStripped = true;
|
|
13957
17359
|
|
|
13958
17360
|
/* style */
|
|
13959
|
-
const
|
|
17361
|
+
const vuejs_datepicker_esm_vue_inject_styles_ = undefined;
|
|
13960
17362
|
/* scoped */
|
|
13961
|
-
const
|
|
17363
|
+
const vuejs_datepicker_esm_vue_scope_id_ = undefined;
|
|
13962
17364
|
/* module identifier */
|
|
13963
|
-
const
|
|
17365
|
+
const vuejs_datepicker_esm_vue_module_identifier_ = undefined;
|
|
13964
17366
|
/* functional template */
|
|
13965
|
-
const
|
|
17367
|
+
const vuejs_datepicker_esm_vue_is_functional_template_ = false;
|
|
13966
17368
|
/* style inject */
|
|
13967
17369
|
|
|
13968
17370
|
/* style inject SSR */
|
|
@@ -13970,12 +17372,12 @@ __vue_render__._withStripped = true;
|
|
|
13970
17372
|
|
|
13971
17373
|
|
|
13972
17374
|
var DateInput = normalizeComponent_1(
|
|
13973
|
-
{ render:
|
|
13974
|
-
|
|
13975
|
-
|
|
13976
|
-
|
|
13977
|
-
|
|
13978
|
-
|
|
17375
|
+
{ render: vuejs_datepicker_esm_vue_render_, staticRenderFns: vuejs_datepicker_esm_vue_staticRenderFns_ },
|
|
17376
|
+
vuejs_datepicker_esm_vue_inject_styles_,
|
|
17377
|
+
vuejs_datepicker_esm_vue_script_,
|
|
17378
|
+
vuejs_datepicker_esm_vue_scope_id_,
|
|
17379
|
+
vuejs_datepicker_esm_vue_is_functional_template_,
|
|
17380
|
+
vuejs_datepicker_esm_vue_module_identifier_,
|
|
13979
17381
|
undefined,
|
|
13980
17382
|
undefined
|
|
13981
17383
|
);
|
|
@@ -15810,7 +19212,7 @@ __vue_render__$4._withStripped = true;
|
|
|
15810
19212
|
|
|
15811
19213
|
/* normalize component */
|
|
15812
19214
|
|
|
15813
|
-
var wt_datepicker_component =
|
|
19215
|
+
var wt_datepicker_component = componentNormalizer_normalizeComponent(
|
|
15814
19216
|
wt_datepicker_wt_datepickervue_type_script_lang_js_,
|
|
15815
19217
|
wt_datepickervue_type_template_id_55e6d929_scoped_true_render,
|
|
15816
19218
|
wt_datepickervue_type_template_id_55e6d929_scoped_true_staticRenderFns,
|
|
@@ -16010,7 +19412,7 @@ var wt_datetimepickervue_type_template_id_2e6c604c_scoped_true_staticRenderFns =
|
|
|
16010
19412
|
|
|
16011
19413
|
/* normalize component */
|
|
16012
19414
|
|
|
16013
|
-
var wt_datetimepicker_component =
|
|
19415
|
+
var wt_datetimepicker_component = componentNormalizer_normalizeComponent(
|
|
16014
19416
|
wt_datetimepicker_wt_datetimepickervue_type_script_lang_js_,
|
|
16015
19417
|
wt_datetimepickervue_type_template_id_2e6c604c_scoped_true_render,
|
|
16016
19418
|
wt_datetimepickervue_type_template_id_2e6c604c_scoped_true_staticRenderFns,
|
|
@@ -16099,7 +19501,7 @@ var wt_icon_btnvue_type_template_id_fa414596_scoped_true_staticRenderFns = []
|
|
|
16099
19501
|
|
|
16100
19502
|
/* normalize component */
|
|
16101
19503
|
|
|
16102
|
-
var wt_icon_btn_component =
|
|
19504
|
+
var wt_icon_btn_component = componentNormalizer_normalizeComponent(
|
|
16103
19505
|
wt_icon_btn_wt_icon_btnvue_type_script_lang_js_,
|
|
16104
19506
|
wt_icon_btnvue_type_template_id_fa414596_scoped_true_render,
|
|
16105
19507
|
wt_icon_btnvue_type_template_id_fa414596_scoped_true_staticRenderFns,
|
|
@@ -16545,7 +19947,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
16545
19947
|
|
|
16546
19948
|
/* normalize component */
|
|
16547
19949
|
|
|
16548
|
-
var wt_input_component =
|
|
19950
|
+
var wt_input_component = componentNormalizer_normalizeComponent(
|
|
16549
19951
|
wt_input_wt_inputvue_type_script_lang_js_,
|
|
16550
19952
|
wt_inputvue_type_template_id_1b3a94f8_scoped_true_render,
|
|
16551
19953
|
wt_inputvue_type_template_id_1b3a94f8_scoped_true_staticRenderFns,
|
|
@@ -16631,7 +20033,7 @@ var wt_notificationvue_type_template_id_7981c292_scoped_true_staticRenderFns = [
|
|
|
16631
20033
|
|
|
16632
20034
|
/* normalize component */
|
|
16633
20035
|
|
|
16634
|
-
var wt_notification_component =
|
|
20036
|
+
var wt_notification_component = componentNormalizer_normalizeComponent(
|
|
16635
20037
|
wt_notification_wt_notificationvue_type_script_lang_js_,
|
|
16636
20038
|
wt_notificationvue_type_template_id_7981c292_scoped_true_render,
|
|
16637
20039
|
wt_notificationvue_type_template_id_7981c292_scoped_true_staticRenderFns,
|
|
@@ -16715,7 +20117,7 @@ var wt_popupvue_type_template_id_31f45e68_scoped_true_staticRenderFns = []
|
|
|
16715
20117
|
|
|
16716
20118
|
/* normalize component */
|
|
16717
20119
|
|
|
16718
|
-
var wt_popup_component =
|
|
20120
|
+
var wt_popup_component = componentNormalizer_normalizeComponent(
|
|
16719
20121
|
wt_popup_wt_popupvue_type_script_lang_js_,
|
|
16720
20122
|
wt_popupvue_type_template_id_31f45e68_scoped_true_render,
|
|
16721
20123
|
wt_popupvue_type_template_id_31f45e68_scoped_true_staticRenderFns,
|
|
@@ -16793,7 +20195,7 @@ var wt_progress_barvue_type_template_id_0645a925_scoped_true_staticRenderFns = [
|
|
|
16793
20195
|
|
|
16794
20196
|
/* normalize component */
|
|
16795
20197
|
|
|
16796
|
-
var wt_progress_bar_component =
|
|
20198
|
+
var wt_progress_bar_component = componentNormalizer_normalizeComponent(
|
|
16797
20199
|
wt_progress_bar_wt_progress_barvue_type_script_lang_js_,
|
|
16798
20200
|
wt_progress_barvue_type_template_id_0645a925_scoped_true_render,
|
|
16799
20201
|
wt_progress_barvue_type_template_id_0645a925_scoped_true_staticRenderFns,
|
|
@@ -16907,7 +20309,7 @@ var wt_radiovue_type_template_id_3fafcdf2_scoped_true_staticRenderFns = []
|
|
|
16907
20309
|
|
|
16908
20310
|
/* normalize component */
|
|
16909
20311
|
|
|
16910
|
-
var wt_radio_component =
|
|
20312
|
+
var wt_radio_component = componentNormalizer_normalizeComponent(
|
|
16911
20313
|
wt_radio_wt_radiovue_type_script_lang_js_,
|
|
16912
20314
|
wt_radiovue_type_template_id_3fafcdf2_scoped_true_render,
|
|
16913
20315
|
wt_radiovue_type_template_id_3fafcdf2_scoped_true_staticRenderFns,
|
|
@@ -17062,7 +20464,7 @@ var debounce = function debounce(method) {
|
|
|
17062
20464
|
|
|
17063
20465
|
/* normalize component */
|
|
17064
20466
|
|
|
17065
|
-
var wt_search_bar_component =
|
|
20467
|
+
var wt_search_bar_component = componentNormalizer_normalizeComponent(
|
|
17066
20468
|
wt_search_bar_wt_search_barvue_type_script_lang_js_,
|
|
17067
20469
|
wt_search_barvue_type_template_id_d775d3ca_scoped_true_render,
|
|
17068
20470
|
wt_search_barvue_type_template_id_d775d3ca_scoped_true_staticRenderFns,
|
|
@@ -17534,7 +20936,7 @@ function _asyncToGenerator(fn) {
|
|
|
17534
20936
|
var vue_multiselect_min = __webpack_require__(7907);
|
|
17535
20937
|
var vue_multiselect_min_default = /*#__PURE__*/__webpack_require__.n(vue_multiselect_min);
|
|
17536
20938
|
;// CONCATENATED MODULE: ./node_modules/vue-observe-visibility/dist/vue-observe-visibility.esm.js
|
|
17537
|
-
/* provided dependency */ var
|
|
20939
|
+
/* provided dependency */ var vue_observe_visibility_esm_console = __webpack_require__(5108);
|
|
17538
20940
|
function vue_observe_visibility_esm_typeof(obj) {
|
|
17539
20941
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
17540
20942
|
vue_observe_visibility_esm_typeof = function (obj) {
|
|
@@ -17761,12 +21163,12 @@ function () {
|
|
|
17761
21163
|
return VisibilityState;
|
|
17762
21164
|
}();
|
|
17763
21165
|
|
|
17764
|
-
function
|
|
21166
|
+
function vue_observe_visibility_esm_bind(el, _ref2, vnode) {
|
|
17765
21167
|
var value = _ref2.value;
|
|
17766
21168
|
if (!value) return;
|
|
17767
21169
|
|
|
17768
21170
|
if (typeof IntersectionObserver === 'undefined') {
|
|
17769
|
-
|
|
21171
|
+
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');
|
|
17770
21172
|
} else {
|
|
17771
21173
|
var state = new VisibilityState(el, value, vnode);
|
|
17772
21174
|
el._vue_visibilityState = state;
|
|
@@ -17787,7 +21189,7 @@ function update(el, _ref3, vnode) {
|
|
|
17787
21189
|
if (state) {
|
|
17788
21190
|
state.createObserver(value, vnode);
|
|
17789
21191
|
} else {
|
|
17790
|
-
|
|
21192
|
+
vue_observe_visibility_esm_bind(el, {
|
|
17791
21193
|
value: value
|
|
17792
21194
|
}, vnode);
|
|
17793
21195
|
}
|
|
@@ -17803,12 +21205,12 @@ function unbind(el) {
|
|
|
17803
21205
|
}
|
|
17804
21206
|
|
|
17805
21207
|
var ObserveVisibility = {
|
|
17806
|
-
bind:
|
|
21208
|
+
bind: vue_observe_visibility_esm_bind,
|
|
17807
21209
|
update: update,
|
|
17808
21210
|
unbind: unbind
|
|
17809
21211
|
};
|
|
17810
21212
|
|
|
17811
|
-
function
|
|
21213
|
+
function vue_observe_visibility_esm_install(Vue) {
|
|
17812
21214
|
Vue.directive('observe-visibility', ObserveVisibility);
|
|
17813
21215
|
/* -- Add more components here -- */
|
|
17814
21216
|
}
|
|
@@ -17820,19 +21222,19 @@ function install(Vue) {
|
|
|
17820
21222
|
var vue_observe_visibility_esm_plugin = {
|
|
17821
21223
|
// eslint-disable-next-line no-undef
|
|
17822
21224
|
version: "1.0.0",
|
|
17823
|
-
install:
|
|
21225
|
+
install: vue_observe_visibility_esm_install
|
|
17824
21226
|
};
|
|
17825
21227
|
|
|
17826
|
-
var
|
|
21228
|
+
var vue_observe_visibility_esm_GlobalVue = null;
|
|
17827
21229
|
|
|
17828
21230
|
if (typeof window !== 'undefined') {
|
|
17829
|
-
|
|
21231
|
+
vue_observe_visibility_esm_GlobalVue = window.Vue;
|
|
17830
21232
|
} else if (typeof __webpack_require__.g !== 'undefined') {
|
|
17831
|
-
|
|
21233
|
+
vue_observe_visibility_esm_GlobalVue = __webpack_require__.g.Vue;
|
|
17832
21234
|
}
|
|
17833
21235
|
|
|
17834
|
-
if (
|
|
17835
|
-
|
|
21236
|
+
if (vue_observe_visibility_esm_GlobalVue) {
|
|
21237
|
+
vue_observe_visibility_esm_GlobalVue.use(vue_observe_visibility_esm_plugin);
|
|
17836
21238
|
}
|
|
17837
21239
|
|
|
17838
21240
|
/* harmony default export */ var vue_observe_visibility_esm = ((/* unused pure expression or super */ null && (vue_observe_visibility_esm_plugin)));
|
|
@@ -18165,7 +21567,7 @@ var isEmpty = function isEmpty(value) {
|
|
|
18165
21567
|
|
|
18166
21568
|
/* normalize component */
|
|
18167
21569
|
|
|
18168
|
-
var wt_select_component =
|
|
21570
|
+
var wt_select_component = componentNormalizer_normalizeComponent(
|
|
18169
21571
|
wt_select_wt_selectvue_type_script_lang_js_,
|
|
18170
21572
|
wt_selectvue_type_template_id_5e1ce59d_scoped_true_render,
|
|
18171
21573
|
wt_selectvue_type_template_id_5e1ce59d_scoped_true_staticRenderFns,
|
|
@@ -18298,7 +21700,7 @@ var wt_slidervue_type_template_id_1503f9dc_scoped_true_staticRenderFns = []
|
|
|
18298
21700
|
|
|
18299
21701
|
/* normalize component */
|
|
18300
21702
|
|
|
18301
|
-
var wt_slider_component =
|
|
21703
|
+
var wt_slider_component = componentNormalizer_normalizeComponent(
|
|
18302
21704
|
wt_slider_wt_slidervue_type_script_lang_js_,
|
|
18303
21705
|
wt_slidervue_type_template_id_1503f9dc_scoped_true_render,
|
|
18304
21706
|
wt_slidervue_type_template_id_1503f9dc_scoped_true_staticRenderFns,
|
|
@@ -18400,7 +21802,7 @@ var wt_switchervue_type_template_id_61d9ee31_scoped_true_staticRenderFns = []
|
|
|
18400
21802
|
|
|
18401
21803
|
/* normalize component */
|
|
18402
21804
|
|
|
18403
|
-
var wt_switcher_component =
|
|
21805
|
+
var wt_switcher_component = componentNormalizer_normalizeComponent(
|
|
18404
21806
|
wt_switcher_wt_switchervue_type_script_lang_js_,
|
|
18405
21807
|
wt_switchervue_type_template_id_61d9ee31_scoped_true_render,
|
|
18406
21808
|
wt_switchervue_type_template_id_61d9ee31_scoped_true_staticRenderFns,
|
|
@@ -18509,7 +21911,7 @@ var wt_tabsvue_type_template_id_5dcc6dcb_scoped_true_staticRenderFns = []
|
|
|
18509
21911
|
|
|
18510
21912
|
/* normalize component */
|
|
18511
21913
|
|
|
18512
|
-
var wt_tabs_component =
|
|
21914
|
+
var wt_tabs_component = componentNormalizer_normalizeComponent(
|
|
18513
21915
|
wt_tabs_wt_tabsvue_type_script_lang_js_,
|
|
18514
21916
|
wt_tabsvue_type_template_id_5dcc6dcb_scoped_true_render,
|
|
18515
21917
|
wt_tabsvue_type_template_id_5dcc6dcb_scoped_true_staticRenderFns,
|
|
@@ -18706,7 +22108,7 @@ var vue_tags_input_default = /*#__PURE__*/__webpack_require__.n(vue_tags_input);
|
|
|
18706
22108
|
|
|
18707
22109
|
/* normalize component */
|
|
18708
22110
|
|
|
18709
|
-
var wt_tags_input_component =
|
|
22111
|
+
var wt_tags_input_component = componentNormalizer_normalizeComponent(
|
|
18710
22112
|
wt_tags_input_wt_tags_inputvue_type_script_lang_js_,
|
|
18711
22113
|
wt_tags_inputvue_type_template_id_d5ed3a8a_scoped_true_render,
|
|
18712
22114
|
wt_tags_inputvue_type_template_id_d5ed3a8a_scoped_true_staticRenderFns,
|
|
@@ -18870,7 +22272,7 @@ var wt_time_inputvue_type_template_id_3a47b4a2_scoped_true_staticRenderFns = []
|
|
|
18870
22272
|
|
|
18871
22273
|
/* normalize component */
|
|
18872
22274
|
|
|
18873
|
-
var wt_time_input_component =
|
|
22275
|
+
var wt_time_input_component = componentNormalizer_normalizeComponent(
|
|
18874
22276
|
wt_time_input_wt_time_inputvue_type_script_lang_js_,
|
|
18875
22277
|
wt_time_inputvue_type_template_id_3a47b4a2_scoped_true_render,
|
|
18876
22278
|
wt_time_inputvue_type_template_id_3a47b4a2_scoped_true_staticRenderFns,
|
|
@@ -19034,7 +22436,7 @@ var wt_textareavue_type_template_id_1069007b_scoped_true_staticRenderFns = []
|
|
|
19034
22436
|
|
|
19035
22437
|
/* normalize component */
|
|
19036
22438
|
|
|
19037
|
-
var wt_textarea_component =
|
|
22439
|
+
var wt_textarea_component = componentNormalizer_normalizeComponent(
|
|
19038
22440
|
wt_textarea_wt_textareavue_type_script_lang_js_,
|
|
19039
22441
|
wt_textareavue_type_template_id_1069007b_scoped_true_render,
|
|
19040
22442
|
wt_textareavue_type_template_id_1069007b_scoped_true_staticRenderFns,
|
|
@@ -19193,7 +22595,7 @@ var SEC_IN_MIN = 60;
|
|
|
19193
22595
|
|
|
19194
22596
|
/* normalize component */
|
|
19195
22597
|
|
|
19196
|
-
var wt_timepicker_component =
|
|
22598
|
+
var wt_timepicker_component = componentNormalizer_normalizeComponent(
|
|
19197
22599
|
wt_timepicker_wt_timepickervue_type_script_lang_js_,
|
|
19198
22600
|
wt_timepickervue_type_template_id_7d43a4a8_scoped_true_render,
|
|
19199
22601
|
wt_timepickervue_type_template_id_7d43a4a8_scoped_true_staticRenderFns,
|
|
@@ -19281,7 +22683,7 @@ var wt_labelvue_type_template_id_43536ef5_scoped_true_staticRenderFns = []
|
|
|
19281
22683
|
|
|
19282
22684
|
/* normalize component */
|
|
19283
22685
|
|
|
19284
|
-
var wt_label_component =
|
|
22686
|
+
var wt_label_component = componentNormalizer_normalizeComponent(
|
|
19285
22687
|
wt_label_wt_labelvue_type_script_lang_js_,
|
|
19286
22688
|
wt_labelvue_type_template_id_43536ef5_scoped_true_render,
|
|
19287
22689
|
wt_labelvue_type_template_id_43536ef5_scoped_true_staticRenderFns,
|
|
@@ -19382,7 +22784,7 @@ var wt_button_selectvue_type_template_id_4d6cee4a_scoped_true_staticRenderFns =
|
|
|
19382
22784
|
|
|
19383
22785
|
/* normalize component */
|
|
19384
22786
|
|
|
19385
|
-
var wt_button_select_component =
|
|
22787
|
+
var wt_button_select_component = componentNormalizer_normalizeComponent(
|
|
19386
22788
|
wt_button_select_wt_button_selectvue_type_script_lang_js_,
|
|
19387
22789
|
wt_button_selectvue_type_template_id_4d6cee4a_scoped_true_render,
|
|
19388
22790
|
wt_button_selectvue_type_template_id_4d6cee4a_scoped_true_staticRenderFns,
|
|
@@ -19425,7 +22827,7 @@ var wt_app_headervue_type_template_id_747a7a52_scoped_true_staticRenderFns = []
|
|
|
19425
22827
|
|
|
19426
22828
|
/* normalize component */
|
|
19427
22829
|
|
|
19428
|
-
var wt_app_header_component =
|
|
22830
|
+
var wt_app_header_component = componentNormalizer_normalizeComponent(
|
|
19429
22831
|
wt_app_header_wt_app_headervue_type_script_lang_js_,
|
|
19430
22832
|
wt_app_headervue_type_template_id_747a7a52_scoped_true_render,
|
|
19431
22833
|
wt_app_headervue_type_template_id_747a7a52_scoped_true_staticRenderFns,
|
|
@@ -19652,7 +23054,7 @@ var WebitelApplications = Object.freeze({
|
|
|
19652
23054
|
|
|
19653
23055
|
/* normalize component */
|
|
19654
23056
|
|
|
19655
|
-
var wt_app_navigator_component =
|
|
23057
|
+
var wt_app_navigator_component = componentNormalizer_normalizeComponent(
|
|
19656
23058
|
wt_app_header_wt_app_navigatorvue_type_script_lang_js_,
|
|
19657
23059
|
wt_app_navigatorvue_type_template_id_ee5ad508_scoped_true_render,
|
|
19658
23060
|
wt_app_navigatorvue_type_template_id_ee5ad508_scoped_true_staticRenderFns,
|
|
@@ -19730,7 +23132,7 @@ var wt_filters_panel_wrappervue_type_template_id_74cbecee_scoped_true_staticRend
|
|
|
19730
23132
|
|
|
19731
23133
|
/* normalize component */
|
|
19732
23134
|
|
|
19733
|
-
var wt_filters_panel_wrapper_component =
|
|
23135
|
+
var wt_filters_panel_wrapper_component = componentNormalizer_normalizeComponent(
|
|
19734
23136
|
wt_filters_panel_wrapper_wt_filters_panel_wrappervue_type_script_lang_js_,
|
|
19735
23137
|
wt_filters_panel_wrappervue_type_template_id_74cbecee_scoped_true_render,
|
|
19736
23138
|
wt_filters_panel_wrappervue_type_template_id_74cbecee_scoped_true_staticRenderFns,
|
|
@@ -19876,7 +23278,7 @@ var wt_header_actionsvue_type_template_id_6c4b4559_scoped_true_staticRenderFns =
|
|
|
19876
23278
|
|
|
19877
23279
|
/* normalize component */
|
|
19878
23280
|
|
|
19879
|
-
var wt_header_actions_component =
|
|
23281
|
+
var wt_header_actions_component = componentNormalizer_normalizeComponent(
|
|
19880
23282
|
wt_app_header_wt_header_actionsvue_type_script_lang_js_,
|
|
19881
23283
|
wt_header_actionsvue_type_template_id_6c4b4559_scoped_true_render,
|
|
19882
23284
|
wt_header_actionsvue_type_template_id_6c4b4559_scoped_true_staticRenderFns,
|
|
@@ -19990,7 +23392,7 @@ var _404_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODYzIiBoZW
|
|
|
19990
23392
|
|
|
19991
23393
|
/* normalize component */
|
|
19992
23394
|
|
|
19993
|
-
var wt_error_page_component =
|
|
23395
|
+
var wt_error_page_component = componentNormalizer_normalizeComponent(
|
|
19994
23396
|
wt_error_page_wt_error_pagevue_type_script_lang_js_,
|
|
19995
23397
|
wt_error_pagevue_type_template_id_12b4fe57_scoped_true_render,
|
|
19996
23398
|
wt_error_pagevue_type_template_id_12b4fe57_scoped_true_staticRenderFns,
|
|
@@ -20043,7 +23445,7 @@ var wt_headlinevue_type_template_id_b90f7186_scoped_true_staticRenderFns = []
|
|
|
20043
23445
|
|
|
20044
23446
|
/* normalize component */
|
|
20045
23447
|
|
|
20046
|
-
var wt_headline_component =
|
|
23448
|
+
var wt_headline_component = componentNormalizer_normalizeComponent(
|
|
20047
23449
|
wt_headline_wt_headlinevue_type_script_lang_js_,
|
|
20048
23450
|
wt_headlinevue_type_template_id_b90f7186_scoped_true_render,
|
|
20049
23451
|
wt_headlinevue_type_template_id_b90f7186_scoped_true_staticRenderFns,
|
|
@@ -20140,7 +23542,7 @@ var expand_transition_render, expand_transition_staticRenderFns
|
|
|
20140
23542
|
|
|
20141
23543
|
/* normalize component */
|
|
20142
23544
|
|
|
20143
|
-
var expand_transition_component =
|
|
23545
|
+
var expand_transition_component = componentNormalizer_normalizeComponent(
|
|
20144
23546
|
transitions_expand_transitionvue_type_script_lang_js_,
|
|
20145
23547
|
expand_transition_render,
|
|
20146
23548
|
expand_transition_staticRenderFns,
|
|
@@ -20345,7 +23747,7 @@ var expand_transition_component = normalizeComponent(
|
|
|
20345
23747
|
|
|
20346
23748
|
/* normalize component */
|
|
20347
23749
|
|
|
20348
|
-
var wt_navigation_bar_component =
|
|
23750
|
+
var wt_navigation_bar_component = componentNormalizer_normalizeComponent(
|
|
20349
23751
|
wt_navigation_bar_wt_navigation_barvue_type_script_lang_js_,
|
|
20350
23752
|
wt_navigation_barvue_type_template_id_5e445474_scoped_true_render,
|
|
20351
23753
|
wt_navigation_barvue_type_template_id_5e445474_scoped_true_staticRenderFns,
|
|
@@ -20430,7 +23832,7 @@ var es_array_splice = __webpack_require__(561);
|
|
|
20430
23832
|
|
|
20431
23833
|
/* normalize component */
|
|
20432
23834
|
|
|
20433
|
-
var wt_notifications_bar_component =
|
|
23835
|
+
var wt_notifications_bar_component = componentNormalizer_normalizeComponent(
|
|
20434
23836
|
wt_notifications_bar_wt_notifications_barvue_type_script_lang_js_,
|
|
20435
23837
|
wt_notifications_barvue_type_template_id_581c3820_scoped_true_render,
|
|
20436
23838
|
wt_notifications_barvue_type_template_id_581c3820_scoped_true_staticRenderFns,
|
|
@@ -20487,7 +23889,7 @@ var wt_page_wrappervue_type_template_id_1592578a_scoped_true_staticRenderFns = [
|
|
|
20487
23889
|
|
|
20488
23890
|
/* normalize component */
|
|
20489
23891
|
|
|
20490
|
-
var wt_page_wrapper_component =
|
|
23892
|
+
var wt_page_wrapper_component = componentNormalizer_normalizeComponent(
|
|
20491
23893
|
wt_page_wrapper_wt_page_wrappervue_type_script_lang_js_,
|
|
20492
23894
|
wt_page_wrappervue_type_template_id_1592578a_scoped_true_render,
|
|
20493
23895
|
wt_page_wrappervue_type_template_id_1592578a_scoped_true_staticRenderFns,
|
|
@@ -20614,7 +24016,7 @@ var wt_paginationvue_type_template_id_1b5e4262_scoped_true_staticRenderFns = []
|
|
|
20614
24016
|
|
|
20615
24017
|
/* normalize component */
|
|
20616
24018
|
|
|
20617
|
-
var wt_pagination_component =
|
|
24019
|
+
var wt_pagination_component = componentNormalizer_normalizeComponent(
|
|
20618
24020
|
wt_pagination_wt_paginationvue_type_script_lang_js_,
|
|
20619
24021
|
wt_paginationvue_type_template_id_1b5e4262_scoped_true_render,
|
|
20620
24022
|
wt_paginationvue_type_template_id_1b5e4262_scoped_true_staticRenderFns,
|
|
@@ -20815,7 +24217,7 @@ var plyr_min_default = /*#__PURE__*/__webpack_require__.n(plyr_min);
|
|
|
20815
24217
|
|
|
20816
24218
|
/* normalize component */
|
|
20817
24219
|
|
|
20818
|
-
var wt_player_component =
|
|
24220
|
+
var wt_player_component = componentNormalizer_normalizeComponent(
|
|
20819
24221
|
wt_player_wt_playervue_type_script_lang_js_,
|
|
20820
24222
|
wt_playervue_type_template_id_50031408_render,
|
|
20821
24223
|
wt_playervue_type_template_id_50031408_staticRenderFns,
|
|
@@ -21004,7 +24406,7 @@ var convertDuration = function convertDuration(duration) {
|
|
|
21004
24406
|
|
|
21005
24407
|
/* normalize component */
|
|
21006
24408
|
|
|
21007
|
-
var wt_status_select_component =
|
|
24409
|
+
var wt_status_select_component = componentNormalizer_normalizeComponent(
|
|
21008
24410
|
wt_status_select_wt_status_selectvue_type_script_lang_js_,
|
|
21009
24411
|
wt_status_selectvue_type_template_id_9d8ec644_scoped_true_render,
|
|
21010
24412
|
wt_status_selectvue_type_template_id_9d8ec644_scoped_true_staticRenderFns,
|
|
@@ -21228,7 +24630,7 @@ var getNextSortOrder = function getNextSortOrder(sort) {
|
|
|
21228
24630
|
|
|
21229
24631
|
/* normalize component */
|
|
21230
24632
|
|
|
21231
|
-
var wt_table_component =
|
|
24633
|
+
var wt_table_component = componentNormalizer_normalizeComponent(
|
|
21232
24634
|
wt_table_wt_tablevue_type_script_lang_js_,
|
|
21233
24635
|
wt_tablevue_type_template_id_21c730bb_scoped_true_render,
|
|
21234
24636
|
wt_tablevue_type_template_id_21c730bb_scoped_true_staticRenderFns,
|
|
@@ -21340,7 +24742,7 @@ var wt_table_actionsvue_type_template_id_715b4258_scoped_true_staticRenderFns =
|
|
|
21340
24742
|
|
|
21341
24743
|
/* normalize component */
|
|
21342
24744
|
|
|
21343
|
-
var wt_table_actions_component =
|
|
24745
|
+
var wt_table_actions_component = componentNormalizer_normalizeComponent(
|
|
21344
24746
|
wt_table_actions_wt_table_actionsvue_type_script_lang_js_,
|
|
21345
24747
|
wt_table_actionsvue_type_template_id_715b4258_scoped_true_render,
|
|
21346
24748
|
wt_table_actionsvue_type_template_id_715b4258_scoped_true_staticRenderFns,
|
|
@@ -21483,7 +24885,7 @@ var deep_copy_default = /*#__PURE__*/__webpack_require__.n(deep_copy);
|
|
|
21483
24885
|
|
|
21484
24886
|
/* normalize component */
|
|
21485
24887
|
|
|
21486
|
-
var wt_table_column_select_component =
|
|
24888
|
+
var wt_table_column_select_component = componentNormalizer_normalizeComponent(
|
|
21487
24889
|
wt_table_column_select_wt_table_column_selectvue_type_script_lang_js_,
|
|
21488
24890
|
wt_table_column_selectvue_type_template_id_35dddfd2_scoped_true_render,
|
|
21489
24891
|
wt_table_column_selectvue_type_template_id_35dddfd2_scoped_true_staticRenderFns,
|
|
@@ -21717,6 +25119,7 @@ Object.keys(Filters).forEach(function (name) {
|
|
|
21717
25119
|
|
|
21718
25120
|
/* eslint-disable */
|
|
21719
25121
|
|
|
25122
|
+
|
|
21720
25123
|
// init all components
|
|
21721
25124
|
|
|
21722
25125
|
// init all directives
|
|
@@ -21746,6 +25149,7 @@ Object.keys(Filters).forEach(function (name) {
|
|
|
21746
25149
|
});
|
|
21747
25150
|
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$eventBus = eventBus;
|
|
21748
25151
|
if (router) external_commonjs_vue_commonjs2_vue_root_Vue_default().use(router);
|
|
25152
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().use(floating_vue_es_plugin);
|
|
21749
25153
|
}
|
|
21750
25154
|
});
|
|
21751
25155
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|