@vue/compat 3.5.20 → 3.5.22
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/vue.cjs.js +272 -176
- package/dist/vue.cjs.prod.js +263 -168
- package/dist/vue.esm-browser.js +216 -158
- package/dist/vue.esm-browser.prod.js +9 -9
- package/dist/vue.esm-bundler.js +216 -158
- package/dist/vue.global.js +216 -158
- package/dist/vue.global.prod.js +9 -9
- package/dist/vue.runtime.esm-browser.js +133 -76
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +133 -76
- package/dist/vue.runtime.global.js +133 -76
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +3 -3
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
6
|
var Vue = (function () {
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
10
9
|
// @__NO_SIDE_EFFECTS__
|
|
11
10
|
function makeMap(str) {
|
|
12
11
|
const map = /* @__PURE__ */ Object.create(null);
|
|
@@ -64,10 +63,10 @@ var Vue = (function () {
|
|
|
64
63
|
return hit || (cache[str] = fn(str));
|
|
65
64
|
});
|
|
66
65
|
};
|
|
67
|
-
const camelizeRE =
|
|
66
|
+
const camelizeRE = /-\w/g;
|
|
68
67
|
const camelize = cacheStringFunction(
|
|
69
68
|
(str) => {
|
|
70
|
-
return str.replace(camelizeRE, (
|
|
69
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
71
70
|
}
|
|
72
71
|
);
|
|
73
72
|
const hyphenateRE = /\B([A-Z])/g;
|
|
@@ -1146,7 +1145,7 @@ var Vue = (function () {
|
|
|
1146
1145
|
iter._next = iter.next;
|
|
1147
1146
|
iter.next = () => {
|
|
1148
1147
|
const result = iter._next();
|
|
1149
|
-
if (result.
|
|
1148
|
+
if (!result.done) {
|
|
1150
1149
|
result.value = wrapValue(result.value);
|
|
1151
1150
|
}
|
|
1152
1151
|
return result;
|
|
@@ -1273,7 +1272,8 @@ var Vue = (function () {
|
|
|
1273
1272
|
return res;
|
|
1274
1273
|
}
|
|
1275
1274
|
if (isRef(res)) {
|
|
1276
|
-
|
|
1275
|
+
const value = targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
1276
|
+
return isReadonly2 && isObject(value) ? readonly(value) : value;
|
|
1277
1277
|
}
|
|
1278
1278
|
if (isObject(res)) {
|
|
1279
1279
|
return isReadonly2 ? readonly(res) : reactive(res);
|
|
@@ -2157,11 +2157,11 @@ var Vue = (function () {
|
|
|
2157
2157
|
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
2158
2158
|
return value;
|
|
2159
2159
|
}
|
|
2160
|
-
seen = seen || /* @__PURE__ */ new
|
|
2161
|
-
if (seen.
|
|
2160
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
2161
|
+
if ((seen.get(value) || 0) >= depth) {
|
|
2162
2162
|
return value;
|
|
2163
2163
|
}
|
|
2164
|
-
seen.
|
|
2164
|
+
seen.set(value, depth);
|
|
2165
2165
|
depth--;
|
|
2166
2166
|
if (isRef(value)) {
|
|
2167
2167
|
traverse(value.value, depth, seen);
|
|
@@ -2700,10 +2700,12 @@ var Vue = (function () {
|
|
|
2700
2700
|
dirtyInstances.delete(instance);
|
|
2701
2701
|
} else if (instance.parent) {
|
|
2702
2702
|
queueJob(() => {
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2703
|
+
if (!(instance.job.flags & 8)) {
|
|
2704
|
+
isHmrUpdating = true;
|
|
2705
|
+
instance.parent.update();
|
|
2706
|
+
isHmrUpdating = false;
|
|
2707
|
+
dirtyInstances.delete(instance);
|
|
2708
|
+
}
|
|
2707
2709
|
});
|
|
2708
2710
|
} else if (instance.appContext.reload) {
|
|
2709
2711
|
instance.appContext.reload();
|
|
@@ -2807,7 +2809,6 @@ var Vue = (function () {
|
|
|
2807
2809
|
_devtoolsComponentRemoved(component);
|
|
2808
2810
|
}
|
|
2809
2811
|
};
|
|
2810
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
2811
2812
|
// @__NO_SIDE_EFFECTS__
|
|
2812
2813
|
function createDevtoolsComponentHook(hook) {
|
|
2813
2814
|
return (component) => {
|
|
@@ -3521,9 +3522,6 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3521
3522
|
insert(mainAnchor, container, anchor);
|
|
3522
3523
|
const mount = (container2, anchor2) => {
|
|
3523
3524
|
if (shapeFlag & 16) {
|
|
3524
|
-
if (parentComponent && parentComponent.isCE) {
|
|
3525
|
-
parentComponent.ce._teleportTarget = container2;
|
|
3526
|
-
}
|
|
3527
3525
|
mountChildren(
|
|
3528
3526
|
children,
|
|
3529
3527
|
container2,
|
|
@@ -3545,6 +3543,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3545
3543
|
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3546
3544
|
namespace = "mathml";
|
|
3547
3545
|
}
|
|
3546
|
+
if (parentComponent && parentComponent.isCE) {
|
|
3547
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3548
|
+
}
|
|
3548
3549
|
if (!disabled) {
|
|
3549
3550
|
mount(target, targetAnchor);
|
|
3550
3551
|
updateCssVars(n2, false);
|
|
@@ -3733,26 +3734,34 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3733
3734
|
function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, {
|
|
3734
3735
|
o: { nextSibling, parentNode, querySelector, insert, createText }
|
|
3735
3736
|
}, hydrateChildren) {
|
|
3737
|
+
function hydrateDisabledTeleport(node2, vnode2, targetStart, targetAnchor) {
|
|
3738
|
+
vnode2.anchor = hydrateChildren(
|
|
3739
|
+
nextSibling(node2),
|
|
3740
|
+
vnode2,
|
|
3741
|
+
parentNode(node2),
|
|
3742
|
+
parentComponent,
|
|
3743
|
+
parentSuspense,
|
|
3744
|
+
slotScopeIds,
|
|
3745
|
+
optimized
|
|
3746
|
+
);
|
|
3747
|
+
vnode2.targetStart = targetStart;
|
|
3748
|
+
vnode2.targetAnchor = targetAnchor;
|
|
3749
|
+
}
|
|
3736
3750
|
const target = vnode.target = resolveTarget(
|
|
3737
3751
|
vnode.props,
|
|
3738
3752
|
querySelector
|
|
3739
3753
|
);
|
|
3754
|
+
const disabled = isTeleportDisabled(vnode.props);
|
|
3740
3755
|
if (target) {
|
|
3741
|
-
const disabled = isTeleportDisabled(vnode.props);
|
|
3742
3756
|
const targetNode = target._lpa || target.firstChild;
|
|
3743
3757
|
if (vnode.shapeFlag & 16) {
|
|
3744
3758
|
if (disabled) {
|
|
3745
|
-
|
|
3746
|
-
|
|
3759
|
+
hydrateDisabledTeleport(
|
|
3760
|
+
node,
|
|
3747
3761
|
vnode,
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
parentSuspense,
|
|
3751
|
-
slotScopeIds,
|
|
3752
|
-
optimized
|
|
3762
|
+
targetNode,
|
|
3763
|
+
targetNode && nextSibling(targetNode)
|
|
3753
3764
|
);
|
|
3754
|
-
vnode.targetStart = targetNode;
|
|
3755
|
-
vnode.targetAnchor = targetNode && nextSibling(targetNode);
|
|
3756
3765
|
} else {
|
|
3757
3766
|
vnode.anchor = nextSibling(node);
|
|
3758
3767
|
let targetAnchor = targetNode;
|
|
@@ -3783,6 +3792,10 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3783
3792
|
}
|
|
3784
3793
|
}
|
|
3785
3794
|
updateCssVars(vnode, disabled);
|
|
3795
|
+
} else if (disabled) {
|
|
3796
|
+
if (vnode.shapeFlag & 16) {
|
|
3797
|
+
hydrateDisabledTeleport(node, vnode, node, nextSibling(node));
|
|
3798
|
+
}
|
|
3786
3799
|
}
|
|
3787
3800
|
return vnode.anchor && nextSibling(vnode.anchor);
|
|
3788
3801
|
}
|
|
@@ -3894,7 +3907,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3894
3907
|
setTransitionHooks(innerChild, enterHooks);
|
|
3895
3908
|
}
|
|
3896
3909
|
let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
|
|
3897
|
-
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(
|
|
3910
|
+
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(oldInnerChild, innerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
3898
3911
|
let leavingHooks = resolveTransitionHooks(
|
|
3899
3912
|
oldInnerChild,
|
|
3900
3913
|
rawProps,
|
|
@@ -4177,7 +4190,6 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4177
4190
|
return ret;
|
|
4178
4191
|
}
|
|
4179
4192
|
|
|
4180
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
4181
4193
|
// @__NO_SIDE_EFFECTS__
|
|
4182
4194
|
function defineComponent(options, extraOptions) {
|
|
4183
4195
|
return isFunction(options) ? (
|
|
@@ -4230,6 +4242,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4230
4242
|
return ret;
|
|
4231
4243
|
}
|
|
4232
4244
|
|
|
4245
|
+
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
4233
4246
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
4234
4247
|
if (isArray(rawRef)) {
|
|
4235
4248
|
rawRef.forEach(
|
|
@@ -4279,6 +4292,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4279
4292
|
return !knownTemplateRefs.has(ref2);
|
|
4280
4293
|
};
|
|
4281
4294
|
if (oldRef != null && oldRef !== ref) {
|
|
4295
|
+
invalidatePendingSetRef(oldRawRef);
|
|
4282
4296
|
if (isString(oldRef)) {
|
|
4283
4297
|
refs[oldRef] = null;
|
|
4284
4298
|
if (canSetSetupRef(oldRef)) {
|
|
@@ -4336,9 +4350,15 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4336
4350
|
}
|
|
4337
4351
|
};
|
|
4338
4352
|
if (value) {
|
|
4339
|
-
|
|
4340
|
-
|
|
4353
|
+
const job = () => {
|
|
4354
|
+
doSet();
|
|
4355
|
+
pendingSetRefMap.delete(rawRef);
|
|
4356
|
+
};
|
|
4357
|
+
job.id = -1;
|
|
4358
|
+
pendingSetRefMap.set(rawRef, job);
|
|
4359
|
+
queuePostRenderEffect(job, parentSuspense);
|
|
4341
4360
|
} else {
|
|
4361
|
+
invalidatePendingSetRef(rawRef);
|
|
4342
4362
|
doSet();
|
|
4343
4363
|
}
|
|
4344
4364
|
} else {
|
|
@@ -4346,6 +4366,13 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4346
4366
|
}
|
|
4347
4367
|
}
|
|
4348
4368
|
}
|
|
4369
|
+
function invalidatePendingSetRef(rawRef) {
|
|
4370
|
+
const pendingSetRef = pendingSetRefMap.get(rawRef);
|
|
4371
|
+
if (pendingSetRef) {
|
|
4372
|
+
pendingSetRef.flags |= 8;
|
|
4373
|
+
pendingSetRefMap.delete(rawRef);
|
|
4374
|
+
}
|
|
4375
|
+
}
|
|
4349
4376
|
|
|
4350
4377
|
let hasLoggedMismatchError = false;
|
|
4351
4378
|
const logMismatchError = () => {
|
|
@@ -5078,7 +5105,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5078
5105
|
}
|
|
5079
5106
|
|
|
5080
5107
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
5081
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
5082
5108
|
// @__NO_SIDE_EFFECTS__
|
|
5083
5109
|
function defineAsyncComponent(source) {
|
|
5084
5110
|
if (isFunction(source)) {
|
|
@@ -5973,12 +5999,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5973
5999
|
|
|
5974
6000
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
5975
6001
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
6002
|
+
const hasProps = Object.keys(props).length > 0;
|
|
5976
6003
|
if (name !== "default") props.name = name;
|
|
5977
6004
|
return openBlock(), createBlock(
|
|
5978
6005
|
Fragment,
|
|
5979
6006
|
null,
|
|
5980
6007
|
[createVNode("slot", props, fallback && fallback())],
|
|
5981
|
-
64
|
|
6008
|
+
hasProps ? -2 : 64
|
|
5982
6009
|
);
|
|
5983
6010
|
}
|
|
5984
6011
|
let slot = slots[name];
|
|
@@ -7166,7 +7193,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7166
7193
|
return vm;
|
|
7167
7194
|
}
|
|
7168
7195
|
}
|
|
7169
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7196
|
+
Vue.version = `2.6.14-compat:${"3.5.22"}`;
|
|
7170
7197
|
Vue.config = singletonApp.config;
|
|
7171
7198
|
Vue.use = (plugin, ...options) => {
|
|
7172
7199
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -7424,7 +7451,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7424
7451
|
{
|
|
7425
7452
|
for (let i = 0; i < container.attributes.length; i++) {
|
|
7426
7453
|
const attr = container.attributes[i];
|
|
7427
|
-
if (attr.name !== "v-cloak" && /^(v-|:|@)/.test(attr.name)) {
|
|
7454
|
+
if (attr.name !== "v-cloak" && /^(?:v-|:|@)/.test(attr.name)) {
|
|
7428
7455
|
warnDeprecation("GLOBAL_MOUNT_CONTAINER", null);
|
|
7429
7456
|
break;
|
|
7430
7457
|
}
|
|
@@ -10208,8 +10235,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
10208
10235
|
return emit$1(instance, event, args);
|
|
10209
10236
|
}
|
|
10210
10237
|
}
|
|
10238
|
+
const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
|
|
10211
10239
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
10212
|
-
const cache = appContext.emitsCache;
|
|
10240
|
+
const cache = asMixin ? mixinEmitsCache : appContext.emitsCache;
|
|
10213
10241
|
const cached = cache.get(comp);
|
|
10214
10242
|
if (cached !== void 0) {
|
|
10215
10243
|
return cached;
|
|
@@ -10681,7 +10709,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
10681
10709
|
const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;
|
|
10682
10710
|
if (pendingBranch) {
|
|
10683
10711
|
suspense.pendingBranch = newBranch;
|
|
10684
|
-
if (isSameVNodeType(
|
|
10712
|
+
if (isSameVNodeType(pendingBranch, newBranch)) {
|
|
10685
10713
|
patch(
|
|
10686
10714
|
pendingBranch,
|
|
10687
10715
|
newBranch,
|
|
@@ -10752,7 +10780,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
10752
10780
|
);
|
|
10753
10781
|
setActiveBranch(suspense, newFallback);
|
|
10754
10782
|
}
|
|
10755
|
-
} else if (activeBranch && isSameVNodeType(
|
|
10783
|
+
} else if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
10756
10784
|
patch(
|
|
10757
10785
|
activeBranch,
|
|
10758
10786
|
newBranch,
|
|
@@ -10783,7 +10811,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
10783
10811
|
}
|
|
10784
10812
|
}
|
|
10785
10813
|
} else {
|
|
10786
|
-
if (activeBranch && isSameVNodeType(
|
|
10814
|
+
if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
10787
10815
|
patch(
|
|
10788
10816
|
activeBranch,
|
|
10789
10817
|
newBranch,
|
|
@@ -12005,7 +12033,7 @@ Component that was made reactive: `,
|
|
|
12005
12033
|
return instance.proxy;
|
|
12006
12034
|
}
|
|
12007
12035
|
}
|
|
12008
|
-
const classifyRE = /(?:^|[-_])
|
|
12036
|
+
const classifyRE = /(?:^|[-_])\w/g;
|
|
12009
12037
|
const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
|
|
12010
12038
|
function getComponentName(Component, includeInferred = true) {
|
|
12011
12039
|
return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
|
|
@@ -12048,23 +12076,28 @@ Component that was made reactive: `,
|
|
|
12048
12076
|
};
|
|
12049
12077
|
|
|
12050
12078
|
function h(type, propsOrChildren, children) {
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12079
|
+
try {
|
|
12080
|
+
setBlockTracking(-1);
|
|
12081
|
+
const l = arguments.length;
|
|
12082
|
+
if (l === 2) {
|
|
12083
|
+
if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
|
|
12084
|
+
if (isVNode(propsOrChildren)) {
|
|
12085
|
+
return createVNode(type, null, [propsOrChildren]);
|
|
12086
|
+
}
|
|
12087
|
+
return createVNode(type, propsOrChildren);
|
|
12088
|
+
} else {
|
|
12089
|
+
return createVNode(type, null, propsOrChildren);
|
|
12056
12090
|
}
|
|
12057
|
-
return createVNode(type, propsOrChildren);
|
|
12058
12091
|
} else {
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
children = [children];
|
|
12092
|
+
if (l > 3) {
|
|
12093
|
+
children = Array.prototype.slice.call(arguments, 2);
|
|
12094
|
+
} else if (l === 3 && isVNode(children)) {
|
|
12095
|
+
children = [children];
|
|
12096
|
+
}
|
|
12097
|
+
return createVNode(type, propsOrChildren, children);
|
|
12066
12098
|
}
|
|
12067
|
-
|
|
12099
|
+
} finally {
|
|
12100
|
+
setBlockTracking(1);
|
|
12068
12101
|
}
|
|
12069
12102
|
}
|
|
12070
12103
|
|
|
@@ -12274,7 +12307,7 @@ Component that was made reactive: `,
|
|
|
12274
12307
|
return true;
|
|
12275
12308
|
}
|
|
12276
12309
|
|
|
12277
|
-
const version = "3.5.
|
|
12310
|
+
const version = "3.5.22";
|
|
12278
12311
|
const warn = warn$1 ;
|
|
12279
12312
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12280
12313
|
const devtools = devtools$1 ;
|
|
@@ -12532,11 +12565,11 @@ Component that was made reactive: `,
|
|
|
12532
12565
|
addTransitionClass(el, legacyLeaveFromClass);
|
|
12533
12566
|
}
|
|
12534
12567
|
if (!el._enterCancelled) {
|
|
12535
|
-
forceReflow();
|
|
12568
|
+
forceReflow(el);
|
|
12536
12569
|
addTransitionClass(el, leaveActiveClass);
|
|
12537
12570
|
} else {
|
|
12538
12571
|
addTransitionClass(el, leaveActiveClass);
|
|
12539
|
-
forceReflow();
|
|
12572
|
+
forceReflow(el);
|
|
12540
12573
|
}
|
|
12541
12574
|
nextFrame(() => {
|
|
12542
12575
|
if (!el._isLeaving) {
|
|
@@ -12665,7 +12698,7 @@ Component that was made reactive: `,
|
|
|
12665
12698
|
type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
|
|
12666
12699
|
propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
|
|
12667
12700
|
}
|
|
12668
|
-
const hasTransform = type === TRANSITION && /\b(transform|all)(
|
|
12701
|
+
const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(
|
|
12669
12702
|
getStyleProperties(`${TRANSITION}Property`).toString()
|
|
12670
12703
|
);
|
|
12671
12704
|
return {
|
|
@@ -12685,8 +12718,9 @@ Component that was made reactive: `,
|
|
|
12685
12718
|
if (s === "auto") return 0;
|
|
12686
12719
|
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
|
12687
12720
|
}
|
|
12688
|
-
function forceReflow() {
|
|
12689
|
-
|
|
12721
|
+
function forceReflow(el) {
|
|
12722
|
+
const targetDocument = el ? el.ownerDocument : document;
|
|
12723
|
+
return targetDocument.body.offsetHeight;
|
|
12690
12724
|
}
|
|
12691
12725
|
|
|
12692
12726
|
function patchClass(el, value, isSVG) {
|
|
@@ -12819,7 +12853,7 @@ Component that was made reactive: `,
|
|
|
12819
12853
|
}
|
|
12820
12854
|
}
|
|
12821
12855
|
|
|
12822
|
-
const displayRE = /(
|
|
12856
|
+
const displayRE = /(?:^|;)\s*display\s*:/;
|
|
12823
12857
|
function patchStyle(el, prev, next) {
|
|
12824
12858
|
const style = el.style;
|
|
12825
12859
|
const isCssString = isString(next);
|
|
@@ -13186,11 +13220,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13186
13220
|
}
|
|
13187
13221
|
|
|
13188
13222
|
const REMOVAL = {};
|
|
13189
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
13190
13223
|
// @__NO_SIDE_EFFECTS__
|
|
13191
13224
|
function defineCustomElement(options, extraOptions, _createApp) {
|
|
13192
|
-
|
|
13193
|
-
if (isPlainObject(Comp)) extend(Comp, extraOptions);
|
|
13225
|
+
let Comp = defineComponent(options, extraOptions);
|
|
13226
|
+
if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions);
|
|
13194
13227
|
class VueCustomElement extends VueElement {
|
|
13195
13228
|
constructor(initialProps) {
|
|
13196
13229
|
super(Comp, initialProps, _createApp);
|
|
@@ -13199,7 +13232,6 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13199
13232
|
VueCustomElement.def = Comp;
|
|
13200
13233
|
return VueCustomElement;
|
|
13201
13234
|
}
|
|
13202
|
-
|
|
13203
13235
|
const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
13204
13236
|
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
|
13205
13237
|
});
|
|
@@ -13238,7 +13270,11 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13238
13270
|
);
|
|
13239
13271
|
}
|
|
13240
13272
|
if (_def.shadowRoot !== false) {
|
|
13241
|
-
this.attachShadow(
|
|
13273
|
+
this.attachShadow(
|
|
13274
|
+
extend({}, _def.shadowRootOptions, {
|
|
13275
|
+
mode: "open"
|
|
13276
|
+
})
|
|
13277
|
+
);
|
|
13242
13278
|
this._root = this.shadowRoot;
|
|
13243
13279
|
} else {
|
|
13244
13280
|
this._root = this;
|
|
@@ -13298,9 +13334,18 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13298
13334
|
this._app && this._app.unmount();
|
|
13299
13335
|
if (this._instance) this._instance.ce = void 0;
|
|
13300
13336
|
this._app = this._instance = null;
|
|
13337
|
+
if (this._teleportTargets) {
|
|
13338
|
+
this._teleportTargets.clear();
|
|
13339
|
+
this._teleportTargets = void 0;
|
|
13340
|
+
}
|
|
13301
13341
|
}
|
|
13302
13342
|
});
|
|
13303
13343
|
}
|
|
13344
|
+
_processMutations(mutations) {
|
|
13345
|
+
for (const m of mutations) {
|
|
13346
|
+
this._setAttr(m.attributeName);
|
|
13347
|
+
}
|
|
13348
|
+
}
|
|
13304
13349
|
/**
|
|
13305
13350
|
* resolve inner component definition (handle possible async component)
|
|
13306
13351
|
*/
|
|
@@ -13311,11 +13356,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13311
13356
|
for (let i = 0; i < this.attributes.length; i++) {
|
|
13312
13357
|
this._setAttr(this.attributes[i].name);
|
|
13313
13358
|
}
|
|
13314
|
-
this._ob = new MutationObserver((
|
|
13315
|
-
for (const m of mutations) {
|
|
13316
|
-
this._setAttr(m.attributeName);
|
|
13317
|
-
}
|
|
13318
|
-
});
|
|
13359
|
+
this._ob = new MutationObserver(this._processMutations.bind(this));
|
|
13319
13360
|
this._ob.observe(this, { attributes: true });
|
|
13320
13361
|
const resolve = (def, isAsync = false) => {
|
|
13321
13362
|
this._resolved = true;
|
|
@@ -13431,7 +13472,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13431
13472
|
}
|
|
13432
13473
|
if (shouldReflect) {
|
|
13433
13474
|
const ob = this._ob;
|
|
13434
|
-
|
|
13475
|
+
if (ob) {
|
|
13476
|
+
this._processMutations(ob.takeRecords());
|
|
13477
|
+
ob.disconnect();
|
|
13478
|
+
}
|
|
13435
13479
|
if (val === true) {
|
|
13436
13480
|
this.setAttribute(hyphenate(key), "");
|
|
13437
13481
|
} else if (typeof val === "string" || typeof val === "number") {
|
|
@@ -13535,7 +13579,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13535
13579
|
* Only called when shadowRoot is false
|
|
13536
13580
|
*/
|
|
13537
13581
|
_renderSlots() {
|
|
13538
|
-
const outlets =
|
|
13582
|
+
const outlets = this._getSlots();
|
|
13539
13583
|
const scopeId = this._instance.type.__scopeId;
|
|
13540
13584
|
for (let i = 0; i < outlets.length; i++) {
|
|
13541
13585
|
const o = outlets[i];
|
|
@@ -13561,6 +13605,19 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13561
13605
|
parent.removeChild(o);
|
|
13562
13606
|
}
|
|
13563
13607
|
}
|
|
13608
|
+
/**
|
|
13609
|
+
* @internal
|
|
13610
|
+
*/
|
|
13611
|
+
_getSlots() {
|
|
13612
|
+
const roots = [this];
|
|
13613
|
+
if (this._teleportTargets) {
|
|
13614
|
+
roots.push(...this._teleportTargets);
|
|
13615
|
+
}
|
|
13616
|
+
return roots.reduce((res, i) => {
|
|
13617
|
+
res.push(...Array.from(i.querySelectorAll("slot")));
|
|
13618
|
+
return res;
|
|
13619
|
+
}, []);
|
|
13620
|
+
}
|
|
13564
13621
|
/**
|
|
13565
13622
|
* @internal
|
|
13566
13623
|
*/
|
|
@@ -13653,7 +13710,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13653
13710
|
prevChildren.forEach(callPendingCbs);
|
|
13654
13711
|
prevChildren.forEach(recordPosition);
|
|
13655
13712
|
const movedChildren = prevChildren.filter(applyTranslation);
|
|
13656
|
-
forceReflow();
|
|
13713
|
+
forceReflow(instance.vnode.el);
|
|
13657
13714
|
movedChildren.forEach((c) => {
|
|
13658
13715
|
const el = c.el;
|
|
13659
13716
|
const style = el.style;
|
|
@@ -13663,7 +13720,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13663
13720
|
if (e && e.target !== el) {
|
|
13664
13721
|
return;
|
|
13665
13722
|
}
|
|
13666
|
-
if (!e ||
|
|
13723
|
+
if (!e || e.propertyName.endsWith("transform")) {
|
|
13667
13724
|
el.removeEventListener("transitionend", cb);
|
|
13668
13725
|
el[moveCbKey] = null;
|
|
13669
13726
|
removeTransitionClass(el, moveClass);
|
|
@@ -14128,7 +14185,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
14128
14185
|
if (container.nodeType === 1) {
|
|
14129
14186
|
for (let i = 0; i < container.attributes.length; i++) {
|
|
14130
14187
|
const attr = container.attributes[i];
|
|
14131
|
-
if (attr.name !== "v-cloak" && /^(v-|:|@)/.test(attr.name)) {
|
|
14188
|
+
if (attr.name !== "v-cloak" && /^(?:v-|:|@)/.test(attr.name)) {
|
|
14132
14189
|
compatUtils.warnDeprecation(
|
|
14133
14190
|
"GLOBAL_MOUNT_CONTAINER",
|
|
14134
14191
|
null
|