@vue/compat 3.4.28 → 3.4.30
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 +75 -61
- package/dist/vue.cjs.prod.js +49 -30
- package/dist/vue.esm-browser.js +75 -61
- package/dist/vue.esm-browser.prod.js +6 -9
- package/dist/vue.esm-bundler.js +75 -61
- package/dist/vue.global.js +75 -61
- package/dist/vue.global.prod.js +6 -9
- package/dist/vue.runtime.esm-browser.js +73 -56
- package/dist/vue.runtime.esm-browser.prod.js +2 -9
- package/dist/vue.runtime.esm-bundler.js +73 -56
- package/dist/vue.runtime.global.js +73 -56
- package/dist/vue.runtime.global.prod.js +2 -9
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.30
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -411,7 +411,7 @@ class ReactiveEffect {
|
|
|
411
411
|
/**
|
|
412
412
|
* @internal
|
|
413
413
|
*/
|
|
414
|
-
this._dirtyLevel =
|
|
414
|
+
this._dirtyLevel = 5;
|
|
415
415
|
/**
|
|
416
416
|
* @internal
|
|
417
417
|
*/
|
|
@@ -431,14 +431,20 @@ class ReactiveEffect {
|
|
|
431
431
|
recordEffectScope(this, scope);
|
|
432
432
|
}
|
|
433
433
|
get dirty() {
|
|
434
|
-
if (this._dirtyLevel === 2
|
|
434
|
+
if (this._dirtyLevel === 2)
|
|
435
|
+
return false;
|
|
436
|
+
if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
|
|
435
437
|
this._dirtyLevel = 1;
|
|
436
438
|
pauseTracking();
|
|
437
439
|
for (let i = 0; i < this._depsLength; i++) {
|
|
438
440
|
const dep = this.deps[i];
|
|
439
441
|
if (dep.computed) {
|
|
442
|
+
if (dep.computed.effect._dirtyLevel === 2) {
|
|
443
|
+
resetTracking();
|
|
444
|
+
return true;
|
|
445
|
+
}
|
|
440
446
|
triggerComputed(dep.computed);
|
|
441
|
-
if (this._dirtyLevel >=
|
|
447
|
+
if (this._dirtyLevel >= 5) {
|
|
442
448
|
break;
|
|
443
449
|
}
|
|
444
450
|
}
|
|
@@ -448,10 +454,10 @@ class ReactiveEffect {
|
|
|
448
454
|
}
|
|
449
455
|
resetTracking();
|
|
450
456
|
}
|
|
451
|
-
return this._dirtyLevel >=
|
|
457
|
+
return this._dirtyLevel >= 5;
|
|
452
458
|
}
|
|
453
459
|
set dirty(v) {
|
|
454
|
-
this._dirtyLevel = v ?
|
|
460
|
+
this._dirtyLevel = v ? 5 : 0;
|
|
455
461
|
}
|
|
456
462
|
run() {
|
|
457
463
|
this._dirtyLevel = 0;
|
|
@@ -573,8 +579,17 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
573
579
|
pauseScheduling();
|
|
574
580
|
for (const effect2 of dep.keys()) {
|
|
575
581
|
let tracking;
|
|
582
|
+
if (!dep.computed && effect2.computed) {
|
|
583
|
+
if (effect2._runnings > 0 && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
584
|
+
effect2._dirtyLevel = 2;
|
|
585
|
+
continue;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
576
588
|
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
577
589
|
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
590
|
+
if (effect2.computed && effect2._dirtyLevel === 2) {
|
|
591
|
+
effect2._shouldSchedule = true;
|
|
592
|
+
}
|
|
578
593
|
effect2._dirtyLevel = dirtyLevel;
|
|
579
594
|
}
|
|
580
595
|
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
@@ -582,7 +597,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
582
597
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
583
598
|
}
|
|
584
599
|
effect2.trigger();
|
|
585
|
-
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !==
|
|
600
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
|
|
586
601
|
effect2._shouldSchedule = false;
|
|
587
602
|
if (effect2.scheduler) {
|
|
588
603
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
@@ -674,7 +689,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
674
689
|
if (dep) {
|
|
675
690
|
triggerEffects(
|
|
676
691
|
dep,
|
|
677
|
-
|
|
692
|
+
5,
|
|
678
693
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
679
694
|
target,
|
|
680
695
|
type,
|
|
@@ -1277,7 +1292,7 @@ class ComputedRefImpl {
|
|
|
1277
1292
|
() => getter(this._value),
|
|
1278
1293
|
() => triggerRefValue(
|
|
1279
1294
|
this,
|
|
1280
|
-
this.effect._dirtyLevel ===
|
|
1295
|
+
this.effect._dirtyLevel === 3 ? 3 : 4
|
|
1281
1296
|
)
|
|
1282
1297
|
);
|
|
1283
1298
|
this.effect.computed = this;
|
|
@@ -1286,8 +1301,11 @@ class ComputedRefImpl {
|
|
|
1286
1301
|
}
|
|
1287
1302
|
get value() {
|
|
1288
1303
|
const self = toRaw(this);
|
|
1304
|
+
const lastDirtyLevel = self.effect._dirtyLevel;
|
|
1289
1305
|
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1290
|
-
|
|
1306
|
+
if (lastDirtyLevel !== 3) {
|
|
1307
|
+
triggerRefValue(self, 5);
|
|
1308
|
+
}
|
|
1291
1309
|
}
|
|
1292
1310
|
trackRefValue(self);
|
|
1293
1311
|
if (self.effect._dirtyLevel >= 2) {
|
|
@@ -1296,7 +1314,7 @@ class ComputedRefImpl {
|
|
|
1296
1314
|
|
|
1297
1315
|
getter: `, this.getter);
|
|
1298
1316
|
}
|
|
1299
|
-
triggerRefValue(self,
|
|
1317
|
+
triggerRefValue(self, 3);
|
|
1300
1318
|
}
|
|
1301
1319
|
return self._value;
|
|
1302
1320
|
}
|
|
@@ -1351,7 +1369,7 @@ function trackRefValue(ref2) {
|
|
|
1351
1369
|
);
|
|
1352
1370
|
}
|
|
1353
1371
|
}
|
|
1354
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1372
|
+
function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
|
|
1355
1373
|
ref2 = toRaw(ref2);
|
|
1356
1374
|
const dep = ref2.dep;
|
|
1357
1375
|
if (dep) {
|
|
@@ -1402,12 +1420,12 @@ class RefImpl {
|
|
|
1402
1420
|
const oldVal = this._rawValue;
|
|
1403
1421
|
this._rawValue = newVal;
|
|
1404
1422
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1405
|
-
triggerRefValue(this,
|
|
1423
|
+
triggerRefValue(this, 5, newVal, oldVal);
|
|
1406
1424
|
}
|
|
1407
1425
|
}
|
|
1408
1426
|
}
|
|
1409
1427
|
function triggerRef(ref2) {
|
|
1410
|
-
triggerRefValue(ref2,
|
|
1428
|
+
triggerRefValue(ref2, 5, !!(process.env.NODE_ENV !== "production") ? ref2.value : void 0);
|
|
1411
1429
|
}
|
|
1412
1430
|
function unref(ref2) {
|
|
1413
1431
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -3260,7 +3278,6 @@ const SuspenseImpl = {
|
|
|
3260
3278
|
}
|
|
3261
3279
|
},
|
|
3262
3280
|
hydrate: hydrateSuspense,
|
|
3263
|
-
create: createSuspenseBoundary,
|
|
3264
3281
|
normalize: normalizeSuspenseChildren
|
|
3265
3282
|
};
|
|
3266
3283
|
const Suspense = SuspenseImpl ;
|
|
@@ -5618,7 +5635,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5618
5635
|
return vm;
|
|
5619
5636
|
}
|
|
5620
5637
|
}
|
|
5621
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5638
|
+
Vue.version = `2.6.14-compat:${"3.4.30"}`;
|
|
5622
5639
|
Vue.config = singletonApp.config;
|
|
5623
5640
|
Vue.use = (plugin, ...options) => {
|
|
5624
5641
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -6929,18 +6946,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6929
6946
|
let domType = node.nodeType;
|
|
6930
6947
|
vnode.el = node;
|
|
6931
6948
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
value: vnode,
|
|
6935
|
-
enumerable: false
|
|
6936
|
-
});
|
|
6937
|
-
}
|
|
6938
|
-
if (!("__vueParentComponent" in node)) {
|
|
6939
|
-
Object.defineProperty(node, "__vueParentComponent", {
|
|
6940
|
-
value: parentComponent,
|
|
6941
|
-
enumerable: false
|
|
6942
|
-
});
|
|
6943
|
-
}
|
|
6949
|
+
def(node, "__vnode", vnode, true);
|
|
6950
|
+
def(node, "__vueParentComponent", parentComponent, true);
|
|
6944
6951
|
}
|
|
6945
6952
|
if (patchFlag === -2) {
|
|
6946
6953
|
optimized = false;
|
|
@@ -7163,7 +7170,9 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
7163
7170
|
if (props) {
|
|
7164
7171
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ || forcePatch || !optimized || patchFlag & (16 | 32)) {
|
|
7165
7172
|
for (const key in props) {
|
|
7166
|
-
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) &&
|
|
7173
|
+
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && // #11189 skip if this node has directives that have created hooks
|
|
7174
|
+
// as it could have mutated the DOM in any possible way
|
|
7175
|
+
!(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
7167
7176
|
logMismatchError();
|
|
7168
7177
|
}
|
|
7169
7178
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -7348,7 +7357,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7348
7357
|
return [hydrate, hydrateNode];
|
|
7349
7358
|
}
|
|
7350
7359
|
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
7351
|
-
var _a;
|
|
7352
7360
|
let mismatchType;
|
|
7353
7361
|
let mismatchKey;
|
|
7354
7362
|
let actual;
|
|
@@ -7371,13 +7379,8 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
7371
7379
|
}
|
|
7372
7380
|
}
|
|
7373
7381
|
}
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
(root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
|
|
7377
|
-
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
7378
|
-
for (const key2 in cssVars) {
|
|
7379
|
-
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
7380
|
-
}
|
|
7382
|
+
if (instance) {
|
|
7383
|
+
resolveCssVars(instance, vnode, expectedMap);
|
|
7381
7384
|
}
|
|
7382
7385
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
7383
7386
|
mismatchType = mismatchKey = "style";
|
|
@@ -7437,8 +7440,8 @@ function toStyleMap(str) {
|
|
|
7437
7440
|
const styleMap = /* @__PURE__ */ new Map();
|
|
7438
7441
|
for (const item of str.split(";")) {
|
|
7439
7442
|
let [key, value] = item.split(":");
|
|
7440
|
-
key = key
|
|
7441
|
-
value = value
|
|
7443
|
+
key = key.trim();
|
|
7444
|
+
value = value && value.trim();
|
|
7442
7445
|
if (key && value) {
|
|
7443
7446
|
styleMap.set(key, value);
|
|
7444
7447
|
}
|
|
@@ -7456,6 +7459,18 @@ function isMapEqual(a, b) {
|
|
|
7456
7459
|
}
|
|
7457
7460
|
return true;
|
|
7458
7461
|
}
|
|
7462
|
+
function resolveCssVars(instance, vnode, expectedMap) {
|
|
7463
|
+
const root = instance.subTree;
|
|
7464
|
+
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
7465
|
+
const cssVars = instance.getCssVars();
|
|
7466
|
+
for (const key in cssVars) {
|
|
7467
|
+
expectedMap.set(`--${key}`, String(cssVars[key]));
|
|
7468
|
+
}
|
|
7469
|
+
}
|
|
7470
|
+
if (vnode === root && instance.parent) {
|
|
7471
|
+
resolveCssVars(instance.parent, instance.vnode, expectedMap);
|
|
7472
|
+
}
|
|
7473
|
+
}
|
|
7459
7474
|
|
|
7460
7475
|
let supported;
|
|
7461
7476
|
let perf;
|
|
@@ -7800,14 +7815,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7800
7815
|
}
|
|
7801
7816
|
}
|
|
7802
7817
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
enumerable: false
|
|
7806
|
-
});
|
|
7807
|
-
Object.defineProperty(el, "__vueParentComponent", {
|
|
7808
|
-
value: parentComponent,
|
|
7809
|
-
enumerable: false
|
|
7810
|
-
});
|
|
7818
|
+
def(el, "__vnode", vnode, true);
|
|
7819
|
+
def(el, "__vueParentComponent", parentComponent, true);
|
|
7811
7820
|
}
|
|
7812
7821
|
if (dirs) {
|
|
7813
7822
|
invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
|
|
@@ -7869,6 +7878,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7869
7878
|
};
|
|
7870
7879
|
const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
|
|
7871
7880
|
const el = n2.el = n1.el;
|
|
7881
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
7882
|
+
el.__vnode = n2;
|
|
7883
|
+
}
|
|
7872
7884
|
let { patchFlag, dynamicChildren, dirs } = n2;
|
|
7873
7885
|
patchFlag |= n1.patchFlag & 16;
|
|
7874
7886
|
const oldProps = n1.props || EMPTY_OBJ;
|
|
@@ -8799,6 +8811,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8799
8811
|
dirs,
|
|
8800
8812
|
memoIndex
|
|
8801
8813
|
} = vnode;
|
|
8814
|
+
if (patchFlag === -2) {
|
|
8815
|
+
optimized = false;
|
|
8816
|
+
}
|
|
8802
8817
|
if (ref != null) {
|
|
8803
8818
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
8804
8819
|
}
|
|
@@ -8830,7 +8845,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8830
8845
|
vnode,
|
|
8831
8846
|
parentComponent,
|
|
8832
8847
|
parentSuspense,
|
|
8833
|
-
optimized,
|
|
8834
8848
|
internals,
|
|
8835
8849
|
doRemove
|
|
8836
8850
|
);
|
|
@@ -10158,7 +10172,7 @@ const TeleportImpl = {
|
|
|
10158
10172
|
}
|
|
10159
10173
|
updateCssVars(n2);
|
|
10160
10174
|
},
|
|
10161
|
-
remove(vnode, parentComponent, parentSuspense,
|
|
10175
|
+
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
10162
10176
|
const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
|
|
10163
10177
|
if (target) {
|
|
10164
10178
|
hostRemove(targetAnchor);
|
|
@@ -11437,7 +11451,7 @@ function isMemoSame(cached, memo) {
|
|
|
11437
11451
|
return true;
|
|
11438
11452
|
}
|
|
11439
11453
|
|
|
11440
|
-
const version = "3.4.
|
|
11454
|
+
const version = "3.4.30";
|
|
11441
11455
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11442
11456
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11443
11457
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12080,7 +12094,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
|
|
|
12080
12094
|
if (value == null || isBoolean && !includeBooleanAttr(value)) {
|
|
12081
12095
|
el.removeAttribute(key);
|
|
12082
12096
|
} else {
|
|
12083
|
-
el.setAttribute(
|
|
12097
|
+
el.setAttribute(
|
|
12098
|
+
key,
|
|
12099
|
+
isBoolean ? "" : isSymbol(value) ? String(value) : value
|
|
12100
|
+
);
|
|
12084
12101
|
}
|
|
12085
12102
|
}
|
|
12086
12103
|
}
|
|
@@ -12282,7 +12299,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
|
|
|
12282
12299
|
parentSuspense,
|
|
12283
12300
|
unmountChildren
|
|
12284
12301
|
);
|
|
12285
|
-
if (key === "value" || key === "checked" || key === "selected") {
|
|
12302
|
+
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
|
|
12286
12303
|
patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
12287
12304
|
}
|
|
12288
12305
|
} else {
|
|
@@ -12330,8 +12347,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
12330
12347
|
|
|
12331
12348
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12332
12349
|
// @__NO_SIDE_EFFECTS__
|
|
12333
|
-
function defineCustomElement(options, hydrate2) {
|
|
12334
|
-
const Comp = defineComponent(options);
|
|
12350
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
12351
|
+
const Comp = defineComponent(options, extraOptions);
|
|
12335
12352
|
class VueCustomElement extends VueElement {
|
|
12336
12353
|
constructor(initialProps) {
|
|
12337
12354
|
super(Comp, initialProps, hydrate2);
|
|
@@ -12341,8 +12358,8 @@ function defineCustomElement(options, hydrate2) {
|
|
|
12341
12358
|
return VueCustomElement;
|
|
12342
12359
|
}
|
|
12343
12360
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12344
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
12345
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
12361
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
12362
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
12346
12363
|
};
|
|
12347
12364
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
12348
12365
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.30
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -414,7 +414,7 @@ var Vue = (function () {
|
|
|
414
414
|
/**
|
|
415
415
|
* @internal
|
|
416
416
|
*/
|
|
417
|
-
this._dirtyLevel =
|
|
417
|
+
this._dirtyLevel = 5;
|
|
418
418
|
/**
|
|
419
419
|
* @internal
|
|
420
420
|
*/
|
|
@@ -434,14 +434,20 @@ var Vue = (function () {
|
|
|
434
434
|
recordEffectScope(this, scope);
|
|
435
435
|
}
|
|
436
436
|
get dirty() {
|
|
437
|
-
if (this._dirtyLevel === 2
|
|
437
|
+
if (this._dirtyLevel === 2)
|
|
438
|
+
return false;
|
|
439
|
+
if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
|
|
438
440
|
this._dirtyLevel = 1;
|
|
439
441
|
pauseTracking();
|
|
440
442
|
for (let i = 0; i < this._depsLength; i++) {
|
|
441
443
|
const dep = this.deps[i];
|
|
442
444
|
if (dep.computed) {
|
|
445
|
+
if (dep.computed.effect._dirtyLevel === 2) {
|
|
446
|
+
resetTracking();
|
|
447
|
+
return true;
|
|
448
|
+
}
|
|
443
449
|
triggerComputed(dep.computed);
|
|
444
|
-
if (this._dirtyLevel >=
|
|
450
|
+
if (this._dirtyLevel >= 5) {
|
|
445
451
|
break;
|
|
446
452
|
}
|
|
447
453
|
}
|
|
@@ -451,10 +457,10 @@ var Vue = (function () {
|
|
|
451
457
|
}
|
|
452
458
|
resetTracking();
|
|
453
459
|
}
|
|
454
|
-
return this._dirtyLevel >=
|
|
460
|
+
return this._dirtyLevel >= 5;
|
|
455
461
|
}
|
|
456
462
|
set dirty(v) {
|
|
457
|
-
this._dirtyLevel = v ?
|
|
463
|
+
this._dirtyLevel = v ? 5 : 0;
|
|
458
464
|
}
|
|
459
465
|
run() {
|
|
460
466
|
this._dirtyLevel = 0;
|
|
@@ -576,8 +582,17 @@ var Vue = (function () {
|
|
|
576
582
|
pauseScheduling();
|
|
577
583
|
for (const effect2 of dep.keys()) {
|
|
578
584
|
let tracking;
|
|
585
|
+
if (!dep.computed && effect2.computed) {
|
|
586
|
+
if (effect2._runnings > 0 && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
587
|
+
effect2._dirtyLevel = 2;
|
|
588
|
+
continue;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
579
591
|
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
580
592
|
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
593
|
+
if (effect2.computed && effect2._dirtyLevel === 2) {
|
|
594
|
+
effect2._shouldSchedule = true;
|
|
595
|
+
}
|
|
581
596
|
effect2._dirtyLevel = dirtyLevel;
|
|
582
597
|
}
|
|
583
598
|
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
@@ -585,7 +600,7 @@ var Vue = (function () {
|
|
|
585
600
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
586
601
|
}
|
|
587
602
|
effect2.trigger();
|
|
588
|
-
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !==
|
|
603
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
|
|
589
604
|
effect2._shouldSchedule = false;
|
|
590
605
|
if (effect2.scheduler) {
|
|
591
606
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
@@ -677,7 +692,7 @@ var Vue = (function () {
|
|
|
677
692
|
if (dep) {
|
|
678
693
|
triggerEffects(
|
|
679
694
|
dep,
|
|
680
|
-
|
|
695
|
+
5,
|
|
681
696
|
{
|
|
682
697
|
target,
|
|
683
698
|
type,
|
|
@@ -1280,7 +1295,7 @@ var Vue = (function () {
|
|
|
1280
1295
|
() => getter(this._value),
|
|
1281
1296
|
() => triggerRefValue(
|
|
1282
1297
|
this,
|
|
1283
|
-
this.effect._dirtyLevel ===
|
|
1298
|
+
this.effect._dirtyLevel === 3 ? 3 : 4
|
|
1284
1299
|
)
|
|
1285
1300
|
);
|
|
1286
1301
|
this.effect.computed = this;
|
|
@@ -1289,8 +1304,11 @@ var Vue = (function () {
|
|
|
1289
1304
|
}
|
|
1290
1305
|
get value() {
|
|
1291
1306
|
const self = toRaw(this);
|
|
1307
|
+
const lastDirtyLevel = self.effect._dirtyLevel;
|
|
1292
1308
|
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1293
|
-
|
|
1309
|
+
if (lastDirtyLevel !== 3) {
|
|
1310
|
+
triggerRefValue(self, 5);
|
|
1311
|
+
}
|
|
1294
1312
|
}
|
|
1295
1313
|
trackRefValue(self);
|
|
1296
1314
|
if (self.effect._dirtyLevel >= 2) {
|
|
@@ -1299,7 +1317,7 @@ var Vue = (function () {
|
|
|
1299
1317
|
|
|
1300
1318
|
getter: `, this.getter);
|
|
1301
1319
|
}
|
|
1302
|
-
triggerRefValue(self,
|
|
1320
|
+
triggerRefValue(self, 3);
|
|
1303
1321
|
}
|
|
1304
1322
|
return self._value;
|
|
1305
1323
|
}
|
|
@@ -1354,7 +1372,7 @@ getter: `, this.getter);
|
|
|
1354
1372
|
);
|
|
1355
1373
|
}
|
|
1356
1374
|
}
|
|
1357
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1375
|
+
function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
|
|
1358
1376
|
ref2 = toRaw(ref2);
|
|
1359
1377
|
const dep = ref2.dep;
|
|
1360
1378
|
if (dep) {
|
|
@@ -1405,12 +1423,12 @@ getter: `, this.getter);
|
|
|
1405
1423
|
const oldVal = this._rawValue;
|
|
1406
1424
|
this._rawValue = newVal;
|
|
1407
1425
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1408
|
-
triggerRefValue(this,
|
|
1426
|
+
triggerRefValue(this, 5, newVal, oldVal);
|
|
1409
1427
|
}
|
|
1410
1428
|
}
|
|
1411
1429
|
}
|
|
1412
1430
|
function triggerRef(ref2) {
|
|
1413
|
-
triggerRefValue(ref2,
|
|
1431
|
+
triggerRefValue(ref2, 5, ref2.value );
|
|
1414
1432
|
}
|
|
1415
1433
|
function unref(ref2) {
|
|
1416
1434
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -3257,7 +3275,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3257
3275
|
}
|
|
3258
3276
|
},
|
|
3259
3277
|
hydrate: hydrateSuspense,
|
|
3260
|
-
create: createSuspenseBoundary,
|
|
3261
3278
|
normalize: normalizeSuspenseChildren
|
|
3262
3279
|
};
|
|
3263
3280
|
const Suspense = SuspenseImpl ;
|
|
@@ -5613,7 +5630,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5613
5630
|
return vm;
|
|
5614
5631
|
}
|
|
5615
5632
|
}
|
|
5616
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5633
|
+
Vue.version = `2.6.14-compat:${"3.4.30"}`;
|
|
5617
5634
|
Vue.config = singletonApp.config;
|
|
5618
5635
|
Vue.use = (plugin, ...options) => {
|
|
5619
5636
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -6922,18 +6939,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6922
6939
|
let domType = node.nodeType;
|
|
6923
6940
|
vnode.el = node;
|
|
6924
6941
|
{
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
value: vnode,
|
|
6928
|
-
enumerable: false
|
|
6929
|
-
});
|
|
6930
|
-
}
|
|
6931
|
-
if (!("__vueParentComponent" in node)) {
|
|
6932
|
-
Object.defineProperty(node, "__vueParentComponent", {
|
|
6933
|
-
value: parentComponent,
|
|
6934
|
-
enumerable: false
|
|
6935
|
-
});
|
|
6936
|
-
}
|
|
6942
|
+
def(node, "__vnode", vnode, true);
|
|
6943
|
+
def(node, "__vueParentComponent", parentComponent, true);
|
|
6937
6944
|
}
|
|
6938
6945
|
if (patchFlag === -2) {
|
|
6939
6946
|
optimized = false;
|
|
@@ -7156,7 +7163,9 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
7156
7163
|
if (props) {
|
|
7157
7164
|
{
|
|
7158
7165
|
for (const key in props) {
|
|
7159
|
-
if (
|
|
7166
|
+
if (// #11189 skip if this node has directives that have created hooks
|
|
7167
|
+
// as it could have mutated the DOM in any possible way
|
|
7168
|
+
!(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
7160
7169
|
logMismatchError();
|
|
7161
7170
|
}
|
|
7162
7171
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -7331,7 +7340,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7331
7340
|
return [hydrate, hydrateNode];
|
|
7332
7341
|
}
|
|
7333
7342
|
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
7334
|
-
var _a;
|
|
7335
7343
|
let mismatchType;
|
|
7336
7344
|
let mismatchKey;
|
|
7337
7345
|
let actual;
|
|
@@ -7354,13 +7362,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7354
7362
|
}
|
|
7355
7363
|
}
|
|
7356
7364
|
}
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
(root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
|
|
7360
|
-
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
7361
|
-
for (const key2 in cssVars) {
|
|
7362
|
-
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
7363
|
-
}
|
|
7365
|
+
if (instance) {
|
|
7366
|
+
resolveCssVars(instance, vnode, expectedMap);
|
|
7364
7367
|
}
|
|
7365
7368
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
7366
7369
|
mismatchType = mismatchKey = "style";
|
|
@@ -7420,8 +7423,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7420
7423
|
const styleMap = /* @__PURE__ */ new Map();
|
|
7421
7424
|
for (const item of str.split(";")) {
|
|
7422
7425
|
let [key, value] = item.split(":");
|
|
7423
|
-
key = key
|
|
7424
|
-
value = value
|
|
7426
|
+
key = key.trim();
|
|
7427
|
+
value = value && value.trim();
|
|
7425
7428
|
if (key && value) {
|
|
7426
7429
|
styleMap.set(key, value);
|
|
7427
7430
|
}
|
|
@@ -7439,6 +7442,18 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7439
7442
|
}
|
|
7440
7443
|
return true;
|
|
7441
7444
|
}
|
|
7445
|
+
function resolveCssVars(instance, vnode, expectedMap) {
|
|
7446
|
+
const root = instance.subTree;
|
|
7447
|
+
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
7448
|
+
const cssVars = instance.getCssVars();
|
|
7449
|
+
for (const key in cssVars) {
|
|
7450
|
+
expectedMap.set(`--${key}`, String(cssVars[key]));
|
|
7451
|
+
}
|
|
7452
|
+
}
|
|
7453
|
+
if (vnode === root && instance.parent) {
|
|
7454
|
+
resolveCssVars(instance.parent, instance.vnode, expectedMap);
|
|
7455
|
+
}
|
|
7456
|
+
}
|
|
7442
7457
|
|
|
7443
7458
|
let supported;
|
|
7444
7459
|
let perf;
|
|
@@ -7756,14 +7771,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7756
7771
|
}
|
|
7757
7772
|
}
|
|
7758
7773
|
{
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
enumerable: false
|
|
7762
|
-
});
|
|
7763
|
-
Object.defineProperty(el, "__vueParentComponent", {
|
|
7764
|
-
value: parentComponent,
|
|
7765
|
-
enumerable: false
|
|
7766
|
-
});
|
|
7774
|
+
def(el, "__vnode", vnode, true);
|
|
7775
|
+
def(el, "__vueParentComponent", parentComponent, true);
|
|
7767
7776
|
}
|
|
7768
7777
|
if (dirs) {
|
|
7769
7778
|
invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
|
|
@@ -7825,6 +7834,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7825
7834
|
};
|
|
7826
7835
|
const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
|
|
7827
7836
|
const el = n2.el = n1.el;
|
|
7837
|
+
{
|
|
7838
|
+
el.__vnode = n2;
|
|
7839
|
+
}
|
|
7828
7840
|
let { patchFlag, dynamicChildren, dirs } = n2;
|
|
7829
7841
|
patchFlag |= n1.patchFlag & 16;
|
|
7830
7842
|
const oldProps = n1.props || EMPTY_OBJ;
|
|
@@ -8744,6 +8756,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8744
8756
|
dirs,
|
|
8745
8757
|
memoIndex
|
|
8746
8758
|
} = vnode;
|
|
8759
|
+
if (patchFlag === -2) {
|
|
8760
|
+
optimized = false;
|
|
8761
|
+
}
|
|
8747
8762
|
if (ref != null) {
|
|
8748
8763
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
8749
8764
|
}
|
|
@@ -8775,7 +8790,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8775
8790
|
vnode,
|
|
8776
8791
|
parentComponent,
|
|
8777
8792
|
parentSuspense,
|
|
8778
|
-
optimized,
|
|
8779
8793
|
internals,
|
|
8780
8794
|
doRemove
|
|
8781
8795
|
);
|
|
@@ -10070,7 +10084,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
10070
10084
|
}
|
|
10071
10085
|
updateCssVars(n2);
|
|
10072
10086
|
},
|
|
10073
|
-
remove(vnode, parentComponent, parentSuspense,
|
|
10087
|
+
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
10074
10088
|
const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
|
|
10075
10089
|
if (target) {
|
|
10076
10090
|
hostRemove(targetAnchor);
|
|
@@ -11321,7 +11335,7 @@ Component that was made reactive: `,
|
|
|
11321
11335
|
return true;
|
|
11322
11336
|
}
|
|
11323
11337
|
|
|
11324
|
-
const version = "3.4.
|
|
11338
|
+
const version = "3.4.30";
|
|
11325
11339
|
const warn = warn$1 ;
|
|
11326
11340
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11327
11341
|
const devtools = devtools$1 ;
|
|
@@ -11948,7 +11962,10 @@ Component that was made reactive: `,
|
|
|
11948
11962
|
if (value == null || isBoolean && !includeBooleanAttr(value)) {
|
|
11949
11963
|
el.removeAttribute(key);
|
|
11950
11964
|
} else {
|
|
11951
|
-
el.setAttribute(
|
|
11965
|
+
el.setAttribute(
|
|
11966
|
+
key,
|
|
11967
|
+
isBoolean ? "" : isSymbol(value) ? String(value) : value
|
|
11968
|
+
);
|
|
11952
11969
|
}
|
|
11953
11970
|
}
|
|
11954
11971
|
}
|
|
@@ -12150,7 +12167,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12150
12167
|
parentSuspense,
|
|
12151
12168
|
unmountChildren
|
|
12152
12169
|
);
|
|
12153
|
-
if (key === "value" || key === "checked" || key === "selected") {
|
|
12170
|
+
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
|
|
12154
12171
|
patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
12155
12172
|
}
|
|
12156
12173
|
} else {
|
|
@@ -12198,8 +12215,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12198
12215
|
|
|
12199
12216
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12200
12217
|
// @__NO_SIDE_EFFECTS__
|
|
12201
|
-
function defineCustomElement(options, hydrate2) {
|
|
12202
|
-
const Comp = defineComponent(options);
|
|
12218
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
12219
|
+
const Comp = defineComponent(options, extraOptions);
|
|
12203
12220
|
class VueCustomElement extends VueElement {
|
|
12204
12221
|
constructor(initialProps) {
|
|
12205
12222
|
super(Comp, initialProps, hydrate2);
|
|
@@ -12209,8 +12226,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12209
12226
|
return VueCustomElement;
|
|
12210
12227
|
}
|
|
12211
12228
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12212
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
12213
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
12229
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
12230
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
12214
12231
|
};
|
|
12215
12232
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
12216
12233
|
};
|