@vue/compat 3.5.21 → 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 +205 -146
- package/dist/vue.cjs.prod.js +200 -138
- package/dist/vue.esm-browser.js +152 -129
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +152 -129
- package/dist/vue.global.js +152 -129
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +73 -51
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +73 -51
- package/dist/vue.runtime.global.js +73 -51
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
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
|
**/
|
|
@@ -1146,7 +1146,7 @@ function iterator(self, method, wrapValue) {
|
|
|
1146
1146
|
iter._next = iter.next;
|
|
1147
1147
|
iter.next = () => {
|
|
1148
1148
|
const result = iter._next();
|
|
1149
|
-
if (result.
|
|
1149
|
+
if (!result.done) {
|
|
1150
1150
|
result.value = wrapValue(result.value);
|
|
1151
1151
|
}
|
|
1152
1152
|
return result;
|
|
@@ -1273,7 +1273,8 @@ class BaseReactiveHandler {
|
|
|
1273
1273
|
return res;
|
|
1274
1274
|
}
|
|
1275
1275
|
if (isRef(res)) {
|
|
1276
|
-
|
|
1276
|
+
const value = targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
1277
|
+
return isReadonly2 && isObject(value) ? readonly(value) : value;
|
|
1277
1278
|
}
|
|
1278
1279
|
if (isObject(res)) {
|
|
1279
1280
|
return isReadonly2 ? readonly(res) : reactive(res);
|
|
@@ -2634,14 +2635,11 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2634
2635
|
let isHmrUpdating = false;
|
|
2635
2636
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2636
2637
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
reload: tryWrap(reload)
|
|
2643
|
-
};
|
|
2644
|
-
}
|
|
2638
|
+
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
2639
|
+
createRecord: tryWrap(createRecord),
|
|
2640
|
+
rerender: tryWrap(rerender),
|
|
2641
|
+
reload: tryWrap(reload)
|
|
2642
|
+
};
|
|
2645
2643
|
}
|
|
2646
2644
|
const map = /* @__PURE__ */ new Map();
|
|
2647
2645
|
function registerHMR(instance) {
|
|
@@ -3539,9 +3537,6 @@ const TeleportImpl = {
|
|
|
3539
3537
|
insert(mainAnchor, container, anchor);
|
|
3540
3538
|
const mount = (container2, anchor2) => {
|
|
3541
3539
|
if (shapeFlag & 16) {
|
|
3542
|
-
if (parentComponent && parentComponent.isCE) {
|
|
3543
|
-
parentComponent.ce._teleportTarget = container2;
|
|
3544
|
-
}
|
|
3545
3540
|
mountChildren(
|
|
3546
3541
|
children,
|
|
3547
3542
|
container2,
|
|
@@ -3563,6 +3558,9 @@ const TeleportImpl = {
|
|
|
3563
3558
|
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3564
3559
|
namespace = "mathml";
|
|
3565
3560
|
}
|
|
3561
|
+
if (parentComponent && parentComponent.isCE) {
|
|
3562
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3563
|
+
}
|
|
3566
3564
|
if (!disabled) {
|
|
3567
3565
|
mount(target, targetAnchor);
|
|
3568
3566
|
updateCssVars(n2, false);
|
|
@@ -6034,12 +6032,13 @@ function createSlots(slots, dynamicSlots) {
|
|
|
6034
6032
|
|
|
6035
6033
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
6036
6034
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
6035
|
+
const hasProps = Object.keys(props).length > 0;
|
|
6037
6036
|
if (name !== "default") props.name = name;
|
|
6038
6037
|
return openBlock(), createBlock(
|
|
6039
6038
|
Fragment,
|
|
6040
6039
|
null,
|
|
6041
6040
|
[createVNode("slot", props, fallback && fallback())],
|
|
6042
|
-
64
|
|
6041
|
+
hasProps ? -2 : 64
|
|
6043
6042
|
);
|
|
6044
6043
|
}
|
|
6045
6044
|
let slot = slots[name];
|
|
@@ -7232,7 +7231,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7232
7231
|
return vm;
|
|
7233
7232
|
}
|
|
7234
7233
|
}
|
|
7235
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7234
|
+
Vue.version = `2.6.14-compat:${"3.5.22"}`;
|
|
7236
7235
|
Vue.config = singletonApp.config;
|
|
7237
7236
|
Vue.use = (plugin, ...options) => {
|
|
7238
7237
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12211,31 +12210,28 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
12211
12210
|
};
|
|
12212
12211
|
|
|
12213
12212
|
function h(type, propsOrChildren, children) {
|
|
12214
|
-
|
|
12213
|
+
try {
|
|
12215
12214
|
setBlockTracking(-1);
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
if (isVNode(propsOrChildren)) {
|
|
12226
|
-
return doCreateVNode(type, null, [propsOrChildren]);
|
|
12215
|
+
const l = arguments.length;
|
|
12216
|
+
if (l === 2) {
|
|
12217
|
+
if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
|
|
12218
|
+
if (isVNode(propsOrChildren)) {
|
|
12219
|
+
return createVNode(type, null, [propsOrChildren]);
|
|
12220
|
+
}
|
|
12221
|
+
return createVNode(type, propsOrChildren);
|
|
12222
|
+
} else {
|
|
12223
|
+
return createVNode(type, null, propsOrChildren);
|
|
12227
12224
|
}
|
|
12228
|
-
return doCreateVNode(type, propsOrChildren);
|
|
12229
12225
|
} else {
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
children = [children];
|
|
12226
|
+
if (l > 3) {
|
|
12227
|
+
children = Array.prototype.slice.call(arguments, 2);
|
|
12228
|
+
} else if (l === 3 && isVNode(children)) {
|
|
12229
|
+
children = [children];
|
|
12230
|
+
}
|
|
12231
|
+
return createVNode(type, propsOrChildren, children);
|
|
12237
12232
|
}
|
|
12238
|
-
|
|
12233
|
+
} finally {
|
|
12234
|
+
setBlockTracking(1);
|
|
12239
12235
|
}
|
|
12240
12236
|
}
|
|
12241
12237
|
|
|
@@ -12445,7 +12441,7 @@ function isMemoSame(cached, memo) {
|
|
|
12445
12441
|
return true;
|
|
12446
12442
|
}
|
|
12447
12443
|
|
|
12448
|
-
const version = "3.5.
|
|
12444
|
+
const version = "3.5.22";
|
|
12449
12445
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12450
12446
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12451
12447
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12715,11 +12711,11 @@ function resolveTransitionProps(rawProps) {
|
|
|
12715
12711
|
addTransitionClass(el, legacyLeaveFromClass);
|
|
12716
12712
|
}
|
|
12717
12713
|
if (!el._enterCancelled) {
|
|
12718
|
-
forceReflow();
|
|
12714
|
+
forceReflow(el);
|
|
12719
12715
|
addTransitionClass(el, leaveActiveClass);
|
|
12720
12716
|
} else {
|
|
12721
12717
|
addTransitionClass(el, leaveActiveClass);
|
|
12722
|
-
forceReflow();
|
|
12718
|
+
forceReflow(el);
|
|
12723
12719
|
}
|
|
12724
12720
|
nextFrame(() => {
|
|
12725
12721
|
if (!el._isLeaving) {
|
|
@@ -12868,8 +12864,9 @@ function toMs(s) {
|
|
|
12868
12864
|
if (s === "auto") return 0;
|
|
12869
12865
|
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
|
12870
12866
|
}
|
|
12871
|
-
function forceReflow() {
|
|
12872
|
-
|
|
12867
|
+
function forceReflow(el) {
|
|
12868
|
+
const targetDocument = el ? el.ownerDocument : document;
|
|
12869
|
+
return targetDocument.body.offsetHeight;
|
|
12873
12870
|
}
|
|
12874
12871
|
|
|
12875
12872
|
function patchClass(el, value, isSVG) {
|
|
@@ -13426,7 +13423,11 @@ class VueElement extends BaseClass {
|
|
|
13426
13423
|
);
|
|
13427
13424
|
}
|
|
13428
13425
|
if (_def.shadowRoot !== false) {
|
|
13429
|
-
this.attachShadow(
|
|
13426
|
+
this.attachShadow(
|
|
13427
|
+
extend({}, _def.shadowRootOptions, {
|
|
13428
|
+
mode: "open"
|
|
13429
|
+
})
|
|
13430
|
+
);
|
|
13430
13431
|
this._root = this.shadowRoot;
|
|
13431
13432
|
} else {
|
|
13432
13433
|
this._root = this;
|
|
@@ -13486,9 +13487,18 @@ class VueElement extends BaseClass {
|
|
|
13486
13487
|
this._app && this._app.unmount();
|
|
13487
13488
|
if (this._instance) this._instance.ce = void 0;
|
|
13488
13489
|
this._app = this._instance = null;
|
|
13490
|
+
if (this._teleportTargets) {
|
|
13491
|
+
this._teleportTargets.clear();
|
|
13492
|
+
this._teleportTargets = void 0;
|
|
13493
|
+
}
|
|
13489
13494
|
}
|
|
13490
13495
|
});
|
|
13491
13496
|
}
|
|
13497
|
+
_processMutations(mutations) {
|
|
13498
|
+
for (const m of mutations) {
|
|
13499
|
+
this._setAttr(m.attributeName);
|
|
13500
|
+
}
|
|
13501
|
+
}
|
|
13492
13502
|
/**
|
|
13493
13503
|
* resolve inner component definition (handle possible async component)
|
|
13494
13504
|
*/
|
|
@@ -13499,11 +13509,7 @@ class VueElement extends BaseClass {
|
|
|
13499
13509
|
for (let i = 0; i < this.attributes.length; i++) {
|
|
13500
13510
|
this._setAttr(this.attributes[i].name);
|
|
13501
13511
|
}
|
|
13502
|
-
this._ob = new MutationObserver((
|
|
13503
|
-
for (const m of mutations) {
|
|
13504
|
-
this._setAttr(m.attributeName);
|
|
13505
|
-
}
|
|
13506
|
-
});
|
|
13512
|
+
this._ob = new MutationObserver(this._processMutations.bind(this));
|
|
13507
13513
|
this._ob.observe(this, { attributes: true });
|
|
13508
13514
|
const resolve = (def, isAsync = false) => {
|
|
13509
13515
|
this._resolved = true;
|
|
@@ -13619,7 +13625,10 @@ class VueElement extends BaseClass {
|
|
|
13619
13625
|
}
|
|
13620
13626
|
if (shouldReflect) {
|
|
13621
13627
|
const ob = this._ob;
|
|
13622
|
-
|
|
13628
|
+
if (ob) {
|
|
13629
|
+
this._processMutations(ob.takeRecords());
|
|
13630
|
+
ob.disconnect();
|
|
13631
|
+
}
|
|
13623
13632
|
if (val === true) {
|
|
13624
13633
|
this.setAttribute(hyphenate(key), "");
|
|
13625
13634
|
} else if (typeof val === "string" || typeof val === "number") {
|
|
@@ -13723,7 +13732,7 @@ class VueElement extends BaseClass {
|
|
|
13723
13732
|
* Only called when shadowRoot is false
|
|
13724
13733
|
*/
|
|
13725
13734
|
_renderSlots() {
|
|
13726
|
-
const outlets =
|
|
13735
|
+
const outlets = this._getSlots();
|
|
13727
13736
|
const scopeId = this._instance.type.__scopeId;
|
|
13728
13737
|
for (let i = 0; i < outlets.length; i++) {
|
|
13729
13738
|
const o = outlets[i];
|
|
@@ -13749,6 +13758,19 @@ class VueElement extends BaseClass {
|
|
|
13749
13758
|
parent.removeChild(o);
|
|
13750
13759
|
}
|
|
13751
13760
|
}
|
|
13761
|
+
/**
|
|
13762
|
+
* @internal
|
|
13763
|
+
*/
|
|
13764
|
+
_getSlots() {
|
|
13765
|
+
const roots = [this];
|
|
13766
|
+
if (this._teleportTargets) {
|
|
13767
|
+
roots.push(...this._teleportTargets);
|
|
13768
|
+
}
|
|
13769
|
+
return roots.reduce((res, i) => {
|
|
13770
|
+
res.push(...Array.from(i.querySelectorAll("slot")));
|
|
13771
|
+
return res;
|
|
13772
|
+
}, []);
|
|
13773
|
+
}
|
|
13752
13774
|
/**
|
|
13753
13775
|
* @internal
|
|
13754
13776
|
*/
|
|
@@ -13853,7 +13875,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
13853
13875
|
prevChildren.forEach(callPendingCbs);
|
|
13854
13876
|
prevChildren.forEach(recordPosition);
|
|
13855
13877
|
const movedChildren = prevChildren.filter(applyTranslation);
|
|
13856
|
-
forceReflow();
|
|
13878
|
+
forceReflow(instance.vnode.el);
|
|
13857
13879
|
movedChildren.forEach((c) => {
|
|
13858
13880
|
const el = c.el;
|
|
13859
13881
|
const style = el.style;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
**/
|
|
@@ -1145,7 +1145,7 @@ var Vue = (function () {
|
|
|
1145
1145
|
iter._next = iter.next;
|
|
1146
1146
|
iter.next = () => {
|
|
1147
1147
|
const result = iter._next();
|
|
1148
|
-
if (result.
|
|
1148
|
+
if (!result.done) {
|
|
1149
1149
|
result.value = wrapValue(result.value);
|
|
1150
1150
|
}
|
|
1151
1151
|
return result;
|
|
@@ -1272,7 +1272,8 @@ var Vue = (function () {
|
|
|
1272
1272
|
return res;
|
|
1273
1273
|
}
|
|
1274
1274
|
if (isRef(res)) {
|
|
1275
|
-
|
|
1275
|
+
const value = targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
1276
|
+
return isReadonly2 && isObject(value) ? readonly(value) : value;
|
|
1276
1277
|
}
|
|
1277
1278
|
if (isObject(res)) {
|
|
1278
1279
|
return isReadonly2 ? readonly(res) : reactive(res);
|
|
@@ -2622,14 +2623,11 @@ var Vue = (function () {
|
|
|
2622
2623
|
let isHmrUpdating = false;
|
|
2623
2624
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2624
2625
|
{
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
reload: tryWrap(reload)
|
|
2631
|
-
};
|
|
2632
|
-
}
|
|
2626
|
+
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
2627
|
+
createRecord: tryWrap(createRecord),
|
|
2628
|
+
rerender: tryWrap(rerender),
|
|
2629
|
+
reload: tryWrap(reload)
|
|
2630
|
+
};
|
|
2633
2631
|
}
|
|
2634
2632
|
const map = /* @__PURE__ */ new Map();
|
|
2635
2633
|
function registerHMR(instance) {
|
|
@@ -3524,9 +3522,6 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3524
3522
|
insert(mainAnchor, container, anchor);
|
|
3525
3523
|
const mount = (container2, anchor2) => {
|
|
3526
3524
|
if (shapeFlag & 16) {
|
|
3527
|
-
if (parentComponent && parentComponent.isCE) {
|
|
3528
|
-
parentComponent.ce._teleportTarget = container2;
|
|
3529
|
-
}
|
|
3530
3525
|
mountChildren(
|
|
3531
3526
|
children,
|
|
3532
3527
|
container2,
|
|
@@ -3548,6 +3543,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3548
3543
|
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3549
3544
|
namespace = "mathml";
|
|
3550
3545
|
}
|
|
3546
|
+
if (parentComponent && parentComponent.isCE) {
|
|
3547
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3548
|
+
}
|
|
3551
3549
|
if (!disabled) {
|
|
3552
3550
|
mount(target, targetAnchor);
|
|
3553
3551
|
updateCssVars(n2, false);
|
|
@@ -6001,12 +5999,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6001
5999
|
|
|
6002
6000
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
6003
6001
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
6002
|
+
const hasProps = Object.keys(props).length > 0;
|
|
6004
6003
|
if (name !== "default") props.name = name;
|
|
6005
6004
|
return openBlock(), createBlock(
|
|
6006
6005
|
Fragment,
|
|
6007
6006
|
null,
|
|
6008
6007
|
[createVNode("slot", props, fallback && fallback())],
|
|
6009
|
-
64
|
|
6008
|
+
hasProps ? -2 : 64
|
|
6010
6009
|
);
|
|
6011
6010
|
}
|
|
6012
6011
|
let slot = slots[name];
|
|
@@ -7194,7 +7193,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7194
7193
|
return vm;
|
|
7195
7194
|
}
|
|
7196
7195
|
}
|
|
7197
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7196
|
+
Vue.version = `2.6.14-compat:${"3.5.22"}`;
|
|
7198
7197
|
Vue.config = singletonApp.config;
|
|
7199
7198
|
Vue.use = (plugin, ...options) => {
|
|
7200
7199
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12077,31 +12076,28 @@ Component that was made reactive: `,
|
|
|
12077
12076
|
};
|
|
12078
12077
|
|
|
12079
12078
|
function h(type, propsOrChildren, children) {
|
|
12080
|
-
|
|
12079
|
+
try {
|
|
12081
12080
|
setBlockTracking(-1);
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
if (isVNode(propsOrChildren)) {
|
|
12092
|
-
return doCreateVNode(type, null, [propsOrChildren]);
|
|
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);
|
|
12093
12090
|
}
|
|
12094
|
-
return doCreateVNode(type, propsOrChildren);
|
|
12095
12091
|
} else {
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
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);
|
|
12103
12098
|
}
|
|
12104
|
-
|
|
12099
|
+
} finally {
|
|
12100
|
+
setBlockTracking(1);
|
|
12105
12101
|
}
|
|
12106
12102
|
}
|
|
12107
12103
|
|
|
@@ -12311,7 +12307,7 @@ Component that was made reactive: `,
|
|
|
12311
12307
|
return true;
|
|
12312
12308
|
}
|
|
12313
12309
|
|
|
12314
|
-
const version = "3.5.
|
|
12310
|
+
const version = "3.5.22";
|
|
12315
12311
|
const warn = warn$1 ;
|
|
12316
12312
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12317
12313
|
const devtools = devtools$1 ;
|
|
@@ -12569,11 +12565,11 @@ Component that was made reactive: `,
|
|
|
12569
12565
|
addTransitionClass(el, legacyLeaveFromClass);
|
|
12570
12566
|
}
|
|
12571
12567
|
if (!el._enterCancelled) {
|
|
12572
|
-
forceReflow();
|
|
12568
|
+
forceReflow(el);
|
|
12573
12569
|
addTransitionClass(el, leaveActiveClass);
|
|
12574
12570
|
} else {
|
|
12575
12571
|
addTransitionClass(el, leaveActiveClass);
|
|
12576
|
-
forceReflow();
|
|
12572
|
+
forceReflow(el);
|
|
12577
12573
|
}
|
|
12578
12574
|
nextFrame(() => {
|
|
12579
12575
|
if (!el._isLeaving) {
|
|
@@ -12722,8 +12718,9 @@ Component that was made reactive: `,
|
|
|
12722
12718
|
if (s === "auto") return 0;
|
|
12723
12719
|
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
|
12724
12720
|
}
|
|
12725
|
-
function forceReflow() {
|
|
12726
|
-
|
|
12721
|
+
function forceReflow(el) {
|
|
12722
|
+
const targetDocument = el ? el.ownerDocument : document;
|
|
12723
|
+
return targetDocument.body.offsetHeight;
|
|
12727
12724
|
}
|
|
12728
12725
|
|
|
12729
12726
|
function patchClass(el, value, isSVG) {
|
|
@@ -13273,7 +13270,11 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13273
13270
|
);
|
|
13274
13271
|
}
|
|
13275
13272
|
if (_def.shadowRoot !== false) {
|
|
13276
|
-
this.attachShadow(
|
|
13273
|
+
this.attachShadow(
|
|
13274
|
+
extend({}, _def.shadowRootOptions, {
|
|
13275
|
+
mode: "open"
|
|
13276
|
+
})
|
|
13277
|
+
);
|
|
13277
13278
|
this._root = this.shadowRoot;
|
|
13278
13279
|
} else {
|
|
13279
13280
|
this._root = this;
|
|
@@ -13333,9 +13334,18 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13333
13334
|
this._app && this._app.unmount();
|
|
13334
13335
|
if (this._instance) this._instance.ce = void 0;
|
|
13335
13336
|
this._app = this._instance = null;
|
|
13337
|
+
if (this._teleportTargets) {
|
|
13338
|
+
this._teleportTargets.clear();
|
|
13339
|
+
this._teleportTargets = void 0;
|
|
13340
|
+
}
|
|
13336
13341
|
}
|
|
13337
13342
|
});
|
|
13338
13343
|
}
|
|
13344
|
+
_processMutations(mutations) {
|
|
13345
|
+
for (const m of mutations) {
|
|
13346
|
+
this._setAttr(m.attributeName);
|
|
13347
|
+
}
|
|
13348
|
+
}
|
|
13339
13349
|
/**
|
|
13340
13350
|
* resolve inner component definition (handle possible async component)
|
|
13341
13351
|
*/
|
|
@@ -13346,11 +13356,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13346
13356
|
for (let i = 0; i < this.attributes.length; i++) {
|
|
13347
13357
|
this._setAttr(this.attributes[i].name);
|
|
13348
13358
|
}
|
|
13349
|
-
this._ob = new MutationObserver((
|
|
13350
|
-
for (const m of mutations) {
|
|
13351
|
-
this._setAttr(m.attributeName);
|
|
13352
|
-
}
|
|
13353
|
-
});
|
|
13359
|
+
this._ob = new MutationObserver(this._processMutations.bind(this));
|
|
13354
13360
|
this._ob.observe(this, { attributes: true });
|
|
13355
13361
|
const resolve = (def, isAsync = false) => {
|
|
13356
13362
|
this._resolved = true;
|
|
@@ -13466,7 +13472,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13466
13472
|
}
|
|
13467
13473
|
if (shouldReflect) {
|
|
13468
13474
|
const ob = this._ob;
|
|
13469
|
-
|
|
13475
|
+
if (ob) {
|
|
13476
|
+
this._processMutations(ob.takeRecords());
|
|
13477
|
+
ob.disconnect();
|
|
13478
|
+
}
|
|
13470
13479
|
if (val === true) {
|
|
13471
13480
|
this.setAttribute(hyphenate(key), "");
|
|
13472
13481
|
} else if (typeof val === "string" || typeof val === "number") {
|
|
@@ -13570,7 +13579,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13570
13579
|
* Only called when shadowRoot is false
|
|
13571
13580
|
*/
|
|
13572
13581
|
_renderSlots() {
|
|
13573
|
-
const outlets =
|
|
13582
|
+
const outlets = this._getSlots();
|
|
13574
13583
|
const scopeId = this._instance.type.__scopeId;
|
|
13575
13584
|
for (let i = 0; i < outlets.length; i++) {
|
|
13576
13585
|
const o = outlets[i];
|
|
@@ -13596,6 +13605,19 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13596
13605
|
parent.removeChild(o);
|
|
13597
13606
|
}
|
|
13598
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
|
+
}
|
|
13599
13621
|
/**
|
|
13600
13622
|
* @internal
|
|
13601
13623
|
*/
|
|
@@ -13688,7 +13710,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13688
13710
|
prevChildren.forEach(callPendingCbs);
|
|
13689
13711
|
prevChildren.forEach(recordPosition);
|
|
13690
13712
|
const movedChildren = prevChildren.filter(applyTranslation);
|
|
13691
|
-
forceReflow();
|
|
13713
|
+
forceReflow(instance.vnode.el);
|
|
13692
13714
|
movedChildren.forEach((c) => {
|
|
13693
13715
|
const el = c.el;
|
|
13694
13716
|
const style = el.style;
|