@silexlabs/silex-dashboard 1.0.73 → 1.0.75
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/_site/css/connectors-152b01dfacf0586ce2f3fb0ddbbf5a5bbcd181a48b4b20b275f837786b2889cd.css +1 -0
- package/_site/css/connectors-febcafaf261c0f23ca11fc13809f259c74dbdd50b6a47506ba295fdb99d1b4a4.css +1 -0
- package/_site/en/connectors/index.html +59 -3
- package/_site/fr/connectors/index.html +59 -3
- package/_site/js/main.js +59 -57
- package/_site/js/vue.cjs.js +1 -1
- package/_site/js/vue.cjs.prod.js +1 -1
- package/_site/js/vue.esm-browser.js +312 -286
- package/_site/js/vue.esm-browser.prod.js +6 -6
- package/_site/js/vue.esm-bundler.js +1 -1
- package/_site/js/vue.global.js +303 -282
- package/_site/js/vue.global.prod.js +6 -6
- package/_site/js/vue.runtime.esm-browser.js +293 -277
- package/_site/js/vue.runtime.esm-browser.prod.js +2 -2
- package/_site/js/vue.runtime.esm-bundler.js +1 -1
- package/_site/js/vue.runtime.global.js +284 -273
- package/_site/js/vue.runtime.global.prod.js +2 -2
- package/collections/connectors/en.md +3 -0
- package/collections/connectors/fr.md +3 -0
- package/package.json +1 -1
- package/templates/connectors-en.11tydata.mjs +18 -0
- package/templates/connectors-en.html +90 -28
- package/templates/connectors-fr.11tydata.mjs +18 -0
- package/templates/connectors-fr.html +90 -28
- package/templates/css/connectors-152b01dfacf0586ce2f3fb0ddbbf5a5bbcd181a48b4b20b275f837786b2889cd.css +1 -0
- package/templates/css/connectors-febcafaf261c0f23ca11fc13809f259c74dbdd50b6a47506ba295fdb99d1b4a4.css +1 -0
- package/templates/websites-en.11tydata.mjs +12 -0
- package/templates/websites-en.html +79 -79
- package/templates/websites-fr.11tydata.mjs +12 -0
- package/templates/websites-fr.html +79 -79
- package/tina/config.ts +10 -0
- package/tina/tina-lock.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.13
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -141,10 +141,9 @@ function parseStringStyle(cssText) {
|
|
|
141
141
|
return ret;
|
|
142
142
|
}
|
|
143
143
|
function stringifyStyle(styles) {
|
|
144
|
+
if (!styles) return "";
|
|
145
|
+
if (isString(styles)) return styles;
|
|
144
146
|
let ret = "";
|
|
145
|
-
if (!styles || isString(styles)) {
|
|
146
|
-
return ret;
|
|
147
|
-
}
|
|
148
147
|
for (const key in styles) {
|
|
149
148
|
const value = styles[key];
|
|
150
149
|
if (isString(value) || typeof value === "number") {
|
|
@@ -405,17 +404,21 @@ class EffectScope {
|
|
|
405
404
|
}
|
|
406
405
|
stop(fromParent) {
|
|
407
406
|
if (this._active) {
|
|
407
|
+
this._active = false;
|
|
408
408
|
let i, l;
|
|
409
409
|
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
410
410
|
this.effects[i].stop();
|
|
411
411
|
}
|
|
412
|
+
this.effects.length = 0;
|
|
412
413
|
for (i = 0, l = this.cleanups.length; i < l; i++) {
|
|
413
414
|
this.cleanups[i]();
|
|
414
415
|
}
|
|
416
|
+
this.cleanups.length = 0;
|
|
415
417
|
if (this.scopes) {
|
|
416
418
|
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
417
419
|
this.scopes[i].stop(true);
|
|
418
420
|
}
|
|
421
|
+
this.scopes.length = 0;
|
|
419
422
|
}
|
|
420
423
|
if (!this.detached && this.parent && !fromParent) {
|
|
421
424
|
const last = this.parent.scopes.pop();
|
|
@@ -425,7 +428,6 @@ class EffectScope {
|
|
|
425
428
|
}
|
|
426
429
|
}
|
|
427
430
|
this.parent = void 0;
|
|
428
|
-
this._active = false;
|
|
429
431
|
}
|
|
430
432
|
}
|
|
431
433
|
}
|
|
@@ -557,8 +559,14 @@ class ReactiveEffect {
|
|
|
557
559
|
}
|
|
558
560
|
let batchDepth = 0;
|
|
559
561
|
let batchedSub;
|
|
560
|
-
|
|
562
|
+
let batchedComputed;
|
|
563
|
+
function batch(sub, isComputed = false) {
|
|
561
564
|
sub.flags |= 8;
|
|
565
|
+
if (isComputed) {
|
|
566
|
+
sub.next = batchedComputed;
|
|
567
|
+
batchedComputed = sub;
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
562
570
|
sub.next = batchedSub;
|
|
563
571
|
batchedSub = sub;
|
|
564
572
|
}
|
|
@@ -569,20 +577,22 @@ function endBatch() {
|
|
|
569
577
|
if (--batchDepth > 0) {
|
|
570
578
|
return;
|
|
571
579
|
}
|
|
580
|
+
if (batchedComputed) {
|
|
581
|
+
let e = batchedComputed;
|
|
582
|
+
batchedComputed = void 0;
|
|
583
|
+
while (e) {
|
|
584
|
+
const next = e.next;
|
|
585
|
+
e.next = void 0;
|
|
586
|
+
e.flags &= ~8;
|
|
587
|
+
e = next;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
572
590
|
let error;
|
|
573
591
|
while (batchedSub) {
|
|
574
592
|
let e = batchedSub;
|
|
575
|
-
let next;
|
|
576
|
-
while (e) {
|
|
577
|
-
if (!(e.flags & 1)) {
|
|
578
|
-
e.flags &= ~8;
|
|
579
|
-
}
|
|
580
|
-
e = e.next;
|
|
581
|
-
}
|
|
582
|
-
e = batchedSub;
|
|
583
593
|
batchedSub = void 0;
|
|
584
594
|
while (e) {
|
|
585
|
-
next = e.next;
|
|
595
|
+
const next = e.next;
|
|
586
596
|
e.next = void 0;
|
|
587
597
|
e.flags &= ~8;
|
|
588
598
|
if (e.flags & 1) {
|
|
@@ -682,16 +692,16 @@ function removeSub(link, soft = false) {
|
|
|
682
692
|
nextSub.prevSub = prevSub;
|
|
683
693
|
link.nextSub = void 0;
|
|
684
694
|
}
|
|
685
|
-
if (dep.subs === link) {
|
|
686
|
-
dep.subs = prevSub;
|
|
687
|
-
}
|
|
688
695
|
if (dep.subsHead === link) {
|
|
689
696
|
dep.subsHead = nextSub;
|
|
690
697
|
}
|
|
691
|
-
if (
|
|
692
|
-
dep.
|
|
693
|
-
|
|
694
|
-
|
|
698
|
+
if (dep.subs === link) {
|
|
699
|
+
dep.subs = prevSub;
|
|
700
|
+
if (!prevSub && dep.computed) {
|
|
701
|
+
dep.computed.flags &= ~4;
|
|
702
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
703
|
+
removeSub(l, true);
|
|
704
|
+
}
|
|
695
705
|
}
|
|
696
706
|
}
|
|
697
707
|
if (!soft && !--dep.sc && dep.map) {
|
|
@@ -778,7 +788,6 @@ class Dep {
|
|
|
778
788
|
/**
|
|
779
789
|
* For object property deps cleanup
|
|
780
790
|
*/
|
|
781
|
-
this.target = void 0;
|
|
782
791
|
this.map = void 0;
|
|
783
792
|
this.key = void 0;
|
|
784
793
|
/**
|
|
@@ -906,7 +915,6 @@ function track(target, type, key) {
|
|
|
906
915
|
let dep = depsMap.get(key);
|
|
907
916
|
if (!dep) {
|
|
908
917
|
depsMap.set(key, dep = new Dep());
|
|
909
|
-
dep.target = target;
|
|
910
918
|
dep.map = depsMap;
|
|
911
919
|
dep.key = key;
|
|
912
920
|
}
|
|
@@ -953,7 +961,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
953
961
|
}
|
|
954
962
|
});
|
|
955
963
|
} else {
|
|
956
|
-
if (key !== void 0) {
|
|
964
|
+
if (key !== void 0 || depsMap.has(void 0)) {
|
|
957
965
|
run(depsMap.get(key));
|
|
958
966
|
}
|
|
959
967
|
if (isArrayIndex) {
|
|
@@ -1185,6 +1193,7 @@ class BaseReactiveHandler {
|
|
|
1185
1193
|
this._isShallow = _isShallow;
|
|
1186
1194
|
}
|
|
1187
1195
|
get(target, key, receiver) {
|
|
1196
|
+
if (key === "__v_skip") return target["__v_skip"];
|
|
1188
1197
|
const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
|
|
1189
1198
|
if (key === "__v_isReactive") {
|
|
1190
1199
|
return !isReadonly2;
|
|
@@ -1328,117 +1337,6 @@ const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true
|
|
|
1328
1337
|
|
|
1329
1338
|
const toShallow = (value) => value;
|
|
1330
1339
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
1331
|
-
function get(target, key, isReadonly2 = false, isShallow2 = false) {
|
|
1332
|
-
target = target["__v_raw"];
|
|
1333
|
-
const rawTarget = toRaw(target);
|
|
1334
|
-
const rawKey = toRaw(key);
|
|
1335
|
-
if (!isReadonly2) {
|
|
1336
|
-
if (hasChanged(key, rawKey)) {
|
|
1337
|
-
track(rawTarget, "get", key);
|
|
1338
|
-
}
|
|
1339
|
-
track(rawTarget, "get", rawKey);
|
|
1340
|
-
}
|
|
1341
|
-
const { has: has2 } = getProto(rawTarget);
|
|
1342
|
-
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
1343
|
-
if (has2.call(rawTarget, key)) {
|
|
1344
|
-
return wrap(target.get(key));
|
|
1345
|
-
} else if (has2.call(rawTarget, rawKey)) {
|
|
1346
|
-
return wrap(target.get(rawKey));
|
|
1347
|
-
} else if (target !== rawTarget) {
|
|
1348
|
-
target.get(key);
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
function has(key, isReadonly2 = false) {
|
|
1352
|
-
const target = this["__v_raw"];
|
|
1353
|
-
const rawTarget = toRaw(target);
|
|
1354
|
-
const rawKey = toRaw(key);
|
|
1355
|
-
if (!isReadonly2) {
|
|
1356
|
-
if (hasChanged(key, rawKey)) {
|
|
1357
|
-
track(rawTarget, "has", key);
|
|
1358
|
-
}
|
|
1359
|
-
track(rawTarget, "has", rawKey);
|
|
1360
|
-
}
|
|
1361
|
-
return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
|
|
1362
|
-
}
|
|
1363
|
-
function size(target, isReadonly2 = false) {
|
|
1364
|
-
target = target["__v_raw"];
|
|
1365
|
-
!isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1366
|
-
return Reflect.get(target, "size", target);
|
|
1367
|
-
}
|
|
1368
|
-
function add(value, _isShallow = false) {
|
|
1369
|
-
if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
|
|
1370
|
-
value = toRaw(value);
|
|
1371
|
-
}
|
|
1372
|
-
const target = toRaw(this);
|
|
1373
|
-
const proto = getProto(target);
|
|
1374
|
-
const hadKey = proto.has.call(target, value);
|
|
1375
|
-
if (!hadKey) {
|
|
1376
|
-
target.add(value);
|
|
1377
|
-
trigger(target, "add", value, value);
|
|
1378
|
-
}
|
|
1379
|
-
return this;
|
|
1380
|
-
}
|
|
1381
|
-
function set(key, value, _isShallow = false) {
|
|
1382
|
-
if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
|
|
1383
|
-
value = toRaw(value);
|
|
1384
|
-
}
|
|
1385
|
-
const target = toRaw(this);
|
|
1386
|
-
const { has: has2, get: get2 } = getProto(target);
|
|
1387
|
-
let hadKey = has2.call(target, key);
|
|
1388
|
-
if (!hadKey) {
|
|
1389
|
-
key = toRaw(key);
|
|
1390
|
-
hadKey = has2.call(target, key);
|
|
1391
|
-
} else {
|
|
1392
|
-
checkIdentityKeys(target, has2, key);
|
|
1393
|
-
}
|
|
1394
|
-
const oldValue = get2.call(target, key);
|
|
1395
|
-
target.set(key, value);
|
|
1396
|
-
if (!hadKey) {
|
|
1397
|
-
trigger(target, "add", key, value);
|
|
1398
|
-
} else if (hasChanged(value, oldValue)) {
|
|
1399
|
-
trigger(target, "set", key, value, oldValue);
|
|
1400
|
-
}
|
|
1401
|
-
return this;
|
|
1402
|
-
}
|
|
1403
|
-
function deleteEntry(key) {
|
|
1404
|
-
const target = toRaw(this);
|
|
1405
|
-
const { has: has2, get: get2 } = getProto(target);
|
|
1406
|
-
let hadKey = has2.call(target, key);
|
|
1407
|
-
if (!hadKey) {
|
|
1408
|
-
key = toRaw(key);
|
|
1409
|
-
hadKey = has2.call(target, key);
|
|
1410
|
-
} else {
|
|
1411
|
-
checkIdentityKeys(target, has2, key);
|
|
1412
|
-
}
|
|
1413
|
-
const oldValue = get2 ? get2.call(target, key) : void 0;
|
|
1414
|
-
const result = target.delete(key);
|
|
1415
|
-
if (hadKey) {
|
|
1416
|
-
trigger(target, "delete", key, void 0, oldValue);
|
|
1417
|
-
}
|
|
1418
|
-
return result;
|
|
1419
|
-
}
|
|
1420
|
-
function clear() {
|
|
1421
|
-
const target = toRaw(this);
|
|
1422
|
-
const hadItems = target.size !== 0;
|
|
1423
|
-
const oldTarget = isMap(target) ? new Map(target) : new Set(target) ;
|
|
1424
|
-
const result = target.clear();
|
|
1425
|
-
if (hadItems) {
|
|
1426
|
-
trigger(target, "clear", void 0, void 0, oldTarget);
|
|
1427
|
-
}
|
|
1428
|
-
return result;
|
|
1429
|
-
}
|
|
1430
|
-
function createForEach(isReadonly2, isShallow2) {
|
|
1431
|
-
return function forEach(callback, thisArg) {
|
|
1432
|
-
const observed = this;
|
|
1433
|
-
const target = observed["__v_raw"];
|
|
1434
|
-
const rawTarget = toRaw(target);
|
|
1435
|
-
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
1436
|
-
!isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY);
|
|
1437
|
-
return target.forEach((value, key) => {
|
|
1438
|
-
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
1439
|
-
});
|
|
1440
|
-
};
|
|
1441
|
-
}
|
|
1442
1340
|
function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
1443
1341
|
return function(...args) {
|
|
1444
1342
|
const target = this["__v_raw"];
|
|
@@ -1481,71 +1379,134 @@ function createReadonlyMethod(type) {
|
|
|
1481
1379
|
return type === "delete" ? false : type === "clear" ? void 0 : this;
|
|
1482
1380
|
};
|
|
1483
1381
|
}
|
|
1484
|
-
function createInstrumentations() {
|
|
1485
|
-
const
|
|
1486
|
-
get(key) {
|
|
1487
|
-
return get(this, key);
|
|
1488
|
-
},
|
|
1489
|
-
get size() {
|
|
1490
|
-
return size(this);
|
|
1491
|
-
},
|
|
1492
|
-
has,
|
|
1493
|
-
add,
|
|
1494
|
-
set,
|
|
1495
|
-
delete: deleteEntry,
|
|
1496
|
-
clear,
|
|
1497
|
-
forEach: createForEach(false, false)
|
|
1498
|
-
};
|
|
1499
|
-
const shallowInstrumentations2 = {
|
|
1500
|
-
get(key) {
|
|
1501
|
-
return get(this, key, false, true);
|
|
1502
|
-
},
|
|
1503
|
-
get size() {
|
|
1504
|
-
return size(this);
|
|
1505
|
-
},
|
|
1506
|
-
has,
|
|
1507
|
-
add(value) {
|
|
1508
|
-
return add.call(this, value, true);
|
|
1509
|
-
},
|
|
1510
|
-
set(key, value) {
|
|
1511
|
-
return set.call(this, key, value, true);
|
|
1512
|
-
},
|
|
1513
|
-
delete: deleteEntry,
|
|
1514
|
-
clear,
|
|
1515
|
-
forEach: createForEach(false, true)
|
|
1516
|
-
};
|
|
1517
|
-
const readonlyInstrumentations2 = {
|
|
1382
|
+
function createInstrumentations(readonly, shallow) {
|
|
1383
|
+
const instrumentations = {
|
|
1518
1384
|
get(key) {
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1385
|
+
const target = this["__v_raw"];
|
|
1386
|
+
const rawTarget = toRaw(target);
|
|
1387
|
+
const rawKey = toRaw(key);
|
|
1388
|
+
if (!readonly) {
|
|
1389
|
+
if (hasChanged(key, rawKey)) {
|
|
1390
|
+
track(rawTarget, "get", key);
|
|
1391
|
+
}
|
|
1392
|
+
track(rawTarget, "get", rawKey);
|
|
1393
|
+
}
|
|
1394
|
+
const { has } = getProto(rawTarget);
|
|
1395
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1396
|
+
if (has.call(rawTarget, key)) {
|
|
1397
|
+
return wrap(target.get(key));
|
|
1398
|
+
} else if (has.call(rawTarget, rawKey)) {
|
|
1399
|
+
return wrap(target.get(rawKey));
|
|
1400
|
+
} else if (target !== rawTarget) {
|
|
1401
|
+
target.get(key);
|
|
1402
|
+
}
|
|
1536
1403
|
},
|
|
1537
1404
|
get size() {
|
|
1538
|
-
|
|
1405
|
+
const target = this["__v_raw"];
|
|
1406
|
+
!readonly && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1407
|
+
return Reflect.get(target, "size", target);
|
|
1539
1408
|
},
|
|
1540
1409
|
has(key) {
|
|
1541
|
-
|
|
1410
|
+
const target = this["__v_raw"];
|
|
1411
|
+
const rawTarget = toRaw(target);
|
|
1412
|
+
const rawKey = toRaw(key);
|
|
1413
|
+
if (!readonly) {
|
|
1414
|
+
if (hasChanged(key, rawKey)) {
|
|
1415
|
+
track(rawTarget, "has", key);
|
|
1416
|
+
}
|
|
1417
|
+
track(rawTarget, "has", rawKey);
|
|
1418
|
+
}
|
|
1419
|
+
return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
|
|
1542
1420
|
},
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1421
|
+
forEach(callback, thisArg) {
|
|
1422
|
+
const observed = this;
|
|
1423
|
+
const target = observed["__v_raw"];
|
|
1424
|
+
const rawTarget = toRaw(target);
|
|
1425
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1426
|
+
!readonly && track(rawTarget, "iterate", ITERATE_KEY);
|
|
1427
|
+
return target.forEach((value, key) => {
|
|
1428
|
+
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1548
1431
|
};
|
|
1432
|
+
extend(
|
|
1433
|
+
instrumentations,
|
|
1434
|
+
readonly ? {
|
|
1435
|
+
add: createReadonlyMethod("add"),
|
|
1436
|
+
set: createReadonlyMethod("set"),
|
|
1437
|
+
delete: createReadonlyMethod("delete"),
|
|
1438
|
+
clear: createReadonlyMethod("clear")
|
|
1439
|
+
} : {
|
|
1440
|
+
add(value) {
|
|
1441
|
+
if (!shallow && !isShallow(value) && !isReadonly(value)) {
|
|
1442
|
+
value = toRaw(value);
|
|
1443
|
+
}
|
|
1444
|
+
const target = toRaw(this);
|
|
1445
|
+
const proto = getProto(target);
|
|
1446
|
+
const hadKey = proto.has.call(target, value);
|
|
1447
|
+
if (!hadKey) {
|
|
1448
|
+
target.add(value);
|
|
1449
|
+
trigger(target, "add", value, value);
|
|
1450
|
+
}
|
|
1451
|
+
return this;
|
|
1452
|
+
},
|
|
1453
|
+
set(key, value) {
|
|
1454
|
+
if (!shallow && !isShallow(value) && !isReadonly(value)) {
|
|
1455
|
+
value = toRaw(value);
|
|
1456
|
+
}
|
|
1457
|
+
const target = toRaw(this);
|
|
1458
|
+
const { has, get } = getProto(target);
|
|
1459
|
+
let hadKey = has.call(target, key);
|
|
1460
|
+
if (!hadKey) {
|
|
1461
|
+
key = toRaw(key);
|
|
1462
|
+
hadKey = has.call(target, key);
|
|
1463
|
+
} else {
|
|
1464
|
+
checkIdentityKeys(target, has, key);
|
|
1465
|
+
}
|
|
1466
|
+
const oldValue = get.call(target, key);
|
|
1467
|
+
target.set(key, value);
|
|
1468
|
+
if (!hadKey) {
|
|
1469
|
+
trigger(target, "add", key, value);
|
|
1470
|
+
} else if (hasChanged(value, oldValue)) {
|
|
1471
|
+
trigger(target, "set", key, value, oldValue);
|
|
1472
|
+
}
|
|
1473
|
+
return this;
|
|
1474
|
+
},
|
|
1475
|
+
delete(key) {
|
|
1476
|
+
const target = toRaw(this);
|
|
1477
|
+
const { has, get } = getProto(target);
|
|
1478
|
+
let hadKey = has.call(target, key);
|
|
1479
|
+
if (!hadKey) {
|
|
1480
|
+
key = toRaw(key);
|
|
1481
|
+
hadKey = has.call(target, key);
|
|
1482
|
+
} else {
|
|
1483
|
+
checkIdentityKeys(target, has, key);
|
|
1484
|
+
}
|
|
1485
|
+
const oldValue = get ? get.call(target, key) : void 0;
|
|
1486
|
+
const result = target.delete(key);
|
|
1487
|
+
if (hadKey) {
|
|
1488
|
+
trigger(target, "delete", key, void 0, oldValue);
|
|
1489
|
+
}
|
|
1490
|
+
return result;
|
|
1491
|
+
},
|
|
1492
|
+
clear() {
|
|
1493
|
+
const target = toRaw(this);
|
|
1494
|
+
const hadItems = target.size !== 0;
|
|
1495
|
+
const oldTarget = isMap(target) ? new Map(target) : new Set(target) ;
|
|
1496
|
+
const result = target.clear();
|
|
1497
|
+
if (hadItems) {
|
|
1498
|
+
trigger(
|
|
1499
|
+
target,
|
|
1500
|
+
"clear",
|
|
1501
|
+
void 0,
|
|
1502
|
+
void 0,
|
|
1503
|
+
oldTarget
|
|
1504
|
+
);
|
|
1505
|
+
}
|
|
1506
|
+
return result;
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
);
|
|
1549
1510
|
const iteratorMethods = [
|
|
1550
1511
|
"keys",
|
|
1551
1512
|
"values",
|
|
@@ -1553,30 +1514,12 @@ function createInstrumentations() {
|
|
|
1553
1514
|
Symbol.iterator
|
|
1554
1515
|
];
|
|
1555
1516
|
iteratorMethods.forEach((method) => {
|
|
1556
|
-
|
|
1557
|
-
readonlyInstrumentations2[method] = createIterableMethod(method, true, false);
|
|
1558
|
-
shallowInstrumentations2[method] = createIterableMethod(method, false, true);
|
|
1559
|
-
shallowReadonlyInstrumentations2[method] = createIterableMethod(
|
|
1560
|
-
method,
|
|
1561
|
-
true,
|
|
1562
|
-
true
|
|
1563
|
-
);
|
|
1517
|
+
instrumentations[method] = createIterableMethod(method, readonly, shallow);
|
|
1564
1518
|
});
|
|
1565
|
-
return
|
|
1566
|
-
mutableInstrumentations2,
|
|
1567
|
-
readonlyInstrumentations2,
|
|
1568
|
-
shallowInstrumentations2,
|
|
1569
|
-
shallowReadonlyInstrumentations2
|
|
1570
|
-
];
|
|
1519
|
+
return instrumentations;
|
|
1571
1520
|
}
|
|
1572
|
-
const [
|
|
1573
|
-
mutableInstrumentations,
|
|
1574
|
-
readonlyInstrumentations,
|
|
1575
|
-
shallowInstrumentations,
|
|
1576
|
-
shallowReadonlyInstrumentations
|
|
1577
|
-
] = /* @__PURE__ */ createInstrumentations();
|
|
1578
1521
|
function createInstrumentationGetter(isReadonly2, shallow) {
|
|
1579
|
-
const instrumentations =
|
|
1522
|
+
const instrumentations = createInstrumentations(isReadonly2, shallow);
|
|
1580
1523
|
return (target, key, receiver) => {
|
|
1581
1524
|
if (key === "__v_isReactive") {
|
|
1582
1525
|
return !isReadonly2;
|
|
@@ -1604,9 +1547,9 @@ const readonlyCollectionHandlers = {
|
|
|
1604
1547
|
const shallowReadonlyCollectionHandlers = {
|
|
1605
1548
|
get: /* @__PURE__ */ createInstrumentationGetter(true, true)
|
|
1606
1549
|
};
|
|
1607
|
-
function checkIdentityKeys(target,
|
|
1550
|
+
function checkIdentityKeys(target, has, key) {
|
|
1608
1551
|
const rawKey = toRaw(key);
|
|
1609
|
-
if (rawKey !== key &&
|
|
1552
|
+
if (rawKey !== key && has.call(target, rawKey)) {
|
|
1610
1553
|
const type = toRawType(target);
|
|
1611
1554
|
warn$2(
|
|
1612
1555
|
`Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
@@ -1942,7 +1885,7 @@ class ComputedRefImpl {
|
|
|
1942
1885
|
this.flags |= 16;
|
|
1943
1886
|
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
1944
1887
|
activeSub !== this) {
|
|
1945
|
-
batch(this);
|
|
1888
|
+
batch(this, true);
|
|
1946
1889
|
return true;
|
|
1947
1890
|
}
|
|
1948
1891
|
}
|
|
@@ -2087,7 +2030,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2087
2030
|
const scope = getCurrentScope();
|
|
2088
2031
|
const watchHandle = () => {
|
|
2089
2032
|
effect.stop();
|
|
2090
|
-
if (scope) {
|
|
2033
|
+
if (scope && scope.active) {
|
|
2091
2034
|
remove(scope.effects, effect);
|
|
2092
2035
|
}
|
|
2093
2036
|
};
|
|
@@ -2464,10 +2407,8 @@ function logError(err, type, contextVNode, throwInDev = true, throwInProd = fals
|
|
|
2464
2407
|
}
|
|
2465
2408
|
}
|
|
2466
2409
|
|
|
2467
|
-
let isFlushing = false;
|
|
2468
|
-
let isFlushPending = false;
|
|
2469
2410
|
const queue = [];
|
|
2470
|
-
let flushIndex =
|
|
2411
|
+
let flushIndex = -1;
|
|
2471
2412
|
const pendingPostFlushCbs = [];
|
|
2472
2413
|
let activePostFlushCbs = null;
|
|
2473
2414
|
let postFlushIndex = 0;
|
|
@@ -2479,7 +2420,7 @@ function nextTick(fn) {
|
|
|
2479
2420
|
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
2480
2421
|
}
|
|
2481
2422
|
function findInsertionIndex(id) {
|
|
2482
|
-
let start =
|
|
2423
|
+
let start = flushIndex + 1;
|
|
2483
2424
|
let end = queue.length;
|
|
2484
2425
|
while (start < end) {
|
|
2485
2426
|
const middle = start + end >>> 1;
|
|
@@ -2508,8 +2449,7 @@ function queueJob(job) {
|
|
|
2508
2449
|
}
|
|
2509
2450
|
}
|
|
2510
2451
|
function queueFlush() {
|
|
2511
|
-
if (!
|
|
2512
|
-
isFlushPending = true;
|
|
2452
|
+
if (!currentFlushPromise) {
|
|
2513
2453
|
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
2514
2454
|
}
|
|
2515
2455
|
}
|
|
@@ -2526,7 +2466,7 @@ function queuePostFlushCb(cb) {
|
|
|
2526
2466
|
}
|
|
2527
2467
|
queueFlush();
|
|
2528
2468
|
}
|
|
2529
|
-
function flushPreFlushCbs(instance, seen, i =
|
|
2469
|
+
function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
|
|
2530
2470
|
{
|
|
2531
2471
|
seen = seen || /* @__PURE__ */ new Map();
|
|
2532
2472
|
}
|
|
@@ -2582,8 +2522,6 @@ function flushPostFlushCbs(seen) {
|
|
|
2582
2522
|
}
|
|
2583
2523
|
const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
|
|
2584
2524
|
function flushJobs(seen) {
|
|
2585
|
-
isFlushPending = false;
|
|
2586
|
-
isFlushing = true;
|
|
2587
2525
|
{
|
|
2588
2526
|
seen = seen || /* @__PURE__ */ new Map();
|
|
2589
2527
|
}
|
|
@@ -2615,10 +2553,9 @@ function flushJobs(seen) {
|
|
|
2615
2553
|
job.flags &= ~1;
|
|
2616
2554
|
}
|
|
2617
2555
|
}
|
|
2618
|
-
flushIndex =
|
|
2556
|
+
flushIndex = -1;
|
|
2619
2557
|
queue.length = 0;
|
|
2620
2558
|
flushPostFlushCbs(seen);
|
|
2621
|
-
isFlushing = false;
|
|
2622
2559
|
currentFlushPromise = null;
|
|
2623
2560
|
if (queue.length || pendingPostFlushCbs.length) {
|
|
2624
2561
|
flushJobs(seen);
|
|
@@ -3038,7 +2975,7 @@ const TeleportImpl = {
|
|
|
3038
2975
|
}
|
|
3039
2976
|
if (!disabled) {
|
|
3040
2977
|
mount(target, targetAnchor);
|
|
3041
|
-
updateCssVars(n2);
|
|
2978
|
+
updateCssVars(n2, false);
|
|
3042
2979
|
}
|
|
3043
2980
|
} else if (!disabled) {
|
|
3044
2981
|
warn$1(
|
|
@@ -3050,14 +2987,35 @@ const TeleportImpl = {
|
|
|
3050
2987
|
};
|
|
3051
2988
|
if (disabled) {
|
|
3052
2989
|
mount(container, mainAnchor);
|
|
3053
|
-
updateCssVars(n2);
|
|
2990
|
+
updateCssVars(n2, true);
|
|
3054
2991
|
}
|
|
3055
2992
|
if (isTeleportDeferred(n2.props)) {
|
|
3056
|
-
queuePostRenderEffect(
|
|
2993
|
+
queuePostRenderEffect(() => {
|
|
2994
|
+
mountToTarget();
|
|
2995
|
+
n2.el.__isMounted = true;
|
|
2996
|
+
}, parentSuspense);
|
|
3057
2997
|
} else {
|
|
3058
2998
|
mountToTarget();
|
|
3059
2999
|
}
|
|
3060
3000
|
} else {
|
|
3001
|
+
if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) {
|
|
3002
|
+
queuePostRenderEffect(() => {
|
|
3003
|
+
TeleportImpl.process(
|
|
3004
|
+
n1,
|
|
3005
|
+
n2,
|
|
3006
|
+
container,
|
|
3007
|
+
anchor,
|
|
3008
|
+
parentComponent,
|
|
3009
|
+
parentSuspense,
|
|
3010
|
+
namespace,
|
|
3011
|
+
slotScopeIds,
|
|
3012
|
+
optimized,
|
|
3013
|
+
internals
|
|
3014
|
+
);
|
|
3015
|
+
delete n1.el.__isMounted;
|
|
3016
|
+
}, parentSuspense);
|
|
3017
|
+
return;
|
|
3018
|
+
}
|
|
3061
3019
|
n2.el = n1.el;
|
|
3062
3020
|
n2.targetStart = n1.targetStart;
|
|
3063
3021
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
@@ -3140,7 +3098,7 @@ const TeleportImpl = {
|
|
|
3140
3098
|
);
|
|
3141
3099
|
}
|
|
3142
3100
|
}
|
|
3143
|
-
updateCssVars(n2);
|
|
3101
|
+
updateCssVars(n2, disabled);
|
|
3144
3102
|
}
|
|
3145
3103
|
},
|
|
3146
3104
|
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
@@ -3208,9 +3166,10 @@ function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScope
|
|
|
3208
3166
|
querySelector
|
|
3209
3167
|
);
|
|
3210
3168
|
if (target) {
|
|
3169
|
+
const disabled = isTeleportDisabled(vnode.props);
|
|
3211
3170
|
const targetNode = target._lpa || target.firstChild;
|
|
3212
3171
|
if (vnode.shapeFlag & 16) {
|
|
3213
|
-
if (
|
|
3172
|
+
if (disabled) {
|
|
3214
3173
|
vnode.anchor = hydrateChildren(
|
|
3215
3174
|
nextSibling(node),
|
|
3216
3175
|
vnode,
|
|
@@ -3251,16 +3210,23 @@ function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScope
|
|
|
3251
3210
|
);
|
|
3252
3211
|
}
|
|
3253
3212
|
}
|
|
3254
|
-
updateCssVars(vnode);
|
|
3213
|
+
updateCssVars(vnode, disabled);
|
|
3255
3214
|
}
|
|
3256
3215
|
return vnode.anchor && nextSibling(vnode.anchor);
|
|
3257
3216
|
}
|
|
3258
3217
|
const Teleport = TeleportImpl;
|
|
3259
|
-
function updateCssVars(vnode) {
|
|
3218
|
+
function updateCssVars(vnode, isDisabled) {
|
|
3260
3219
|
const ctx = vnode.ctx;
|
|
3261
3220
|
if (ctx && ctx.ut) {
|
|
3262
|
-
let node
|
|
3263
|
-
|
|
3221
|
+
let node, anchor;
|
|
3222
|
+
if (isDisabled) {
|
|
3223
|
+
node = vnode.el;
|
|
3224
|
+
anchor = vnode.anchor;
|
|
3225
|
+
} else {
|
|
3226
|
+
node = vnode.targetStart;
|
|
3227
|
+
anchor = vnode.targetAnchor;
|
|
3228
|
+
}
|
|
3229
|
+
while (node && node !== anchor) {
|
|
3264
3230
|
if (node.nodeType === 1) node.setAttribute("data-v-owner", ctx.uid);
|
|
3265
3231
|
node = node.nextSibling;
|
|
3266
3232
|
}
|
|
@@ -3355,10 +3321,9 @@ const BaseTransitionImpl = {
|
|
|
3355
3321
|
if (innerChild.type !== Comment) {
|
|
3356
3322
|
setTransitionHooks(innerChild, enterHooks);
|
|
3357
3323
|
}
|
|
3358
|
-
|
|
3359
|
-
const oldInnerChild = oldChild && getInnerChild$1(oldChild);
|
|
3324
|
+
let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
|
|
3360
3325
|
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
3361
|
-
|
|
3326
|
+
let leavingHooks = resolveTransitionHooks(
|
|
3362
3327
|
oldInnerChild,
|
|
3363
3328
|
rawProps,
|
|
3364
3329
|
state,
|
|
@@ -3373,6 +3338,7 @@ const BaseTransitionImpl = {
|
|
|
3373
3338
|
instance.update();
|
|
3374
3339
|
}
|
|
3375
3340
|
delete leavingHooks.afterLeave;
|
|
3341
|
+
oldInnerChild = void 0;
|
|
3376
3342
|
};
|
|
3377
3343
|
return emptyPlaceholder(child);
|
|
3378
3344
|
} else if (mode === "in-out" && innerChild.type !== Comment) {
|
|
@@ -3386,10 +3352,19 @@ const BaseTransitionImpl = {
|
|
|
3386
3352
|
earlyRemove();
|
|
3387
3353
|
el[leaveCbKey] = void 0;
|
|
3388
3354
|
delete enterHooks.delayedLeave;
|
|
3355
|
+
oldInnerChild = void 0;
|
|
3356
|
+
};
|
|
3357
|
+
enterHooks.delayedLeave = () => {
|
|
3358
|
+
delayedLeave();
|
|
3359
|
+
delete enterHooks.delayedLeave;
|
|
3360
|
+
oldInnerChild = void 0;
|
|
3389
3361
|
};
|
|
3390
|
-
enterHooks.delayedLeave = delayedLeave;
|
|
3391
3362
|
};
|
|
3363
|
+
} else {
|
|
3364
|
+
oldInnerChild = void 0;
|
|
3392
3365
|
}
|
|
3366
|
+
} else if (oldInnerChild) {
|
|
3367
|
+
oldInnerChild = void 0;
|
|
3393
3368
|
}
|
|
3394
3369
|
return child;
|
|
3395
3370
|
};
|
|
@@ -3694,6 +3669,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3694
3669
|
return;
|
|
3695
3670
|
}
|
|
3696
3671
|
if (isAsyncWrapper(vnode) && !isUnmount) {
|
|
3672
|
+
if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) {
|
|
3673
|
+
setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree);
|
|
3674
|
+
}
|
|
3697
3675
|
return;
|
|
3698
3676
|
}
|
|
3699
3677
|
const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;
|
|
@@ -3710,8 +3688,15 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3710
3688
|
const setupState = owner.setupState;
|
|
3711
3689
|
const rawSetupState = toRaw(setupState);
|
|
3712
3690
|
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
|
|
3713
|
-
|
|
3714
|
-
|
|
3691
|
+
{
|
|
3692
|
+
if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
|
|
3693
|
+
warn$1(
|
|
3694
|
+
`Template ref "${key}" used on a non-ref value. It will not work in the production build.`
|
|
3695
|
+
);
|
|
3696
|
+
}
|
|
3697
|
+
if (knownTemplateRefs.has(rawSetupState[key])) {
|
|
3698
|
+
return false;
|
|
3699
|
+
}
|
|
3715
3700
|
}
|
|
3716
3701
|
return hasOwn(rawSetupState, key);
|
|
3717
3702
|
};
|
|
@@ -3951,7 +3936,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3951
3936
|
getContainerType(container),
|
|
3952
3937
|
optimized
|
|
3953
3938
|
);
|
|
3954
|
-
if (isAsyncWrapper(vnode)) {
|
|
3939
|
+
if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) {
|
|
3955
3940
|
let subTree;
|
|
3956
3941
|
if (isFragmentStart) {
|
|
3957
3942
|
subTree = createVNode(Fragment);
|
|
@@ -4008,7 +3993,11 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4008
3993
|
}
|
|
4009
3994
|
let needCallTransitionHooks = false;
|
|
4010
3995
|
if (isTemplateNode(el)) {
|
|
4011
|
-
needCallTransitionHooks = needTransition(
|
|
3996
|
+
needCallTransitionHooks = needTransition(
|
|
3997
|
+
null,
|
|
3998
|
+
// no need check parentSuspense in hydration
|
|
3999
|
+
transition
|
|
4000
|
+
) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
|
|
4012
4001
|
const content = el.content.firstChild;
|
|
4013
4002
|
if (needCallTransitionHooks) {
|
|
4014
4003
|
transition.beforeEnter(content);
|
|
@@ -4216,6 +4205,10 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4216
4205
|
getContainerType(container),
|
|
4217
4206
|
slotScopeIds
|
|
4218
4207
|
);
|
|
4208
|
+
if (parentComponent) {
|
|
4209
|
+
parentComponent.vnode.el = vnode.el;
|
|
4210
|
+
updateHOCHostEl(parentComponent, vnode.el);
|
|
4211
|
+
}
|
|
4219
4212
|
return next;
|
|
4220
4213
|
};
|
|
4221
4214
|
const locateClosingAnchor = (node, open = "[", close = "]") => {
|
|
@@ -4401,6 +4394,8 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
4401
4394
|
}
|
|
4402
4395
|
}
|
|
4403
4396
|
|
|
4397
|
+
const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
4398
|
+
const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
|
|
4404
4399
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
4405
4400
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
4406
4401
|
return () => cancelIdleCallback(id);
|
|
@@ -5103,12 +5098,13 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
5103
5098
|
}
|
|
5104
5099
|
openBlock();
|
|
5105
5100
|
const validSlotContent = slot && ensureValidVNode(slot(props));
|
|
5101
|
+
const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch
|
|
5102
|
+
// key attached in the `createSlots` helper, respect that
|
|
5103
|
+
validSlotContent && validSlotContent.key;
|
|
5106
5104
|
const rendered = createBlock(
|
|
5107
5105
|
Fragment,
|
|
5108
5106
|
{
|
|
5109
|
-
key: (
|
|
5110
|
-
// key attached in the `createSlots` helper, respect that
|
|
5111
|
-
validSlotContent && validSlotContent.key || `_${name}`) + // #7256 force differentiate fallback content from actual content
|
|
5107
|
+
key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content
|
|
5112
5108
|
(!validSlotContent && fallback ? "_fb" : "")
|
|
5113
5109
|
},
|
|
5114
5110
|
validSlotContent || (fallback ? fallback() : []),
|
|
@@ -6466,6 +6462,7 @@ function getType(ctor) {
|
|
|
6466
6462
|
function validateProps(rawProps, props, instance) {
|
|
6467
6463
|
const resolvedValues = toRaw(props);
|
|
6468
6464
|
const options = instance.propsOptions[0];
|
|
6465
|
+
const camelizePropsKey = Object.keys(rawProps).map((key) => camelize(key));
|
|
6469
6466
|
for (const key in options) {
|
|
6470
6467
|
let opt = options[key];
|
|
6471
6468
|
if (opt == null) continue;
|
|
@@ -6474,7 +6471,7 @@ function validateProps(rawProps, props, instance) {
|
|
|
6474
6471
|
resolvedValues[key],
|
|
6475
6472
|
opt,
|
|
6476
6473
|
shallowReadonly(resolvedValues) ,
|
|
6477
|
-
!
|
|
6474
|
+
!camelizePropsKey.includes(key)
|
|
6478
6475
|
);
|
|
6479
6476
|
}
|
|
6480
6477
|
}
|
|
@@ -8254,14 +8251,13 @@ function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
|
8254
8251
|
}
|
|
8255
8252
|
const baseWatchOptions = extend({}, options);
|
|
8256
8253
|
baseWatchOptions.onWarn = warn$1;
|
|
8254
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
8257
8255
|
let ssrCleanup;
|
|
8258
8256
|
if (isInSSRComponentSetup) {
|
|
8259
8257
|
if (flush === "sync") {
|
|
8260
8258
|
const ctx = useSSRContext();
|
|
8261
8259
|
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
8262
|
-
} else if (!
|
|
8263
|
-
baseWatchOptions.once = true;
|
|
8264
|
-
} else {
|
|
8260
|
+
} else if (!runsImmediately) {
|
|
8265
8261
|
const watchStopHandle = () => {
|
|
8266
8262
|
};
|
|
8267
8263
|
watchStopHandle.stop = NOOP;
|
|
@@ -8300,7 +8296,13 @@ function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
|
8300
8296
|
}
|
|
8301
8297
|
};
|
|
8302
8298
|
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
8303
|
-
if (
|
|
8299
|
+
if (isInSSRComponentSetup) {
|
|
8300
|
+
if (ssrCleanup) {
|
|
8301
|
+
ssrCleanup.push(watchHandle);
|
|
8302
|
+
} else if (runsImmediately) {
|
|
8303
|
+
watchHandle();
|
|
8304
|
+
}
|
|
8305
|
+
}
|
|
8304
8306
|
return watchHandle;
|
|
8305
8307
|
}
|
|
8306
8308
|
function instanceWatch(source, value, options) {
|
|
@@ -8335,19 +8337,19 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
8335
8337
|
warn$1(`useModel() called without active instance.`);
|
|
8336
8338
|
return ref();
|
|
8337
8339
|
}
|
|
8338
|
-
|
|
8340
|
+
const camelizedName = camelize(name);
|
|
8341
|
+
if (!i.propsOptions[0][camelizedName]) {
|
|
8339
8342
|
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
8340
8343
|
return ref();
|
|
8341
8344
|
}
|
|
8342
|
-
const camelizedName = camelize(name);
|
|
8343
8345
|
const hyphenatedName = hyphenate(name);
|
|
8344
|
-
const modifiers = getModelModifiers(props,
|
|
8346
|
+
const modifiers = getModelModifiers(props, camelizedName);
|
|
8345
8347
|
const res = customRef((track, trigger) => {
|
|
8346
8348
|
let localValue;
|
|
8347
8349
|
let prevSetValue = EMPTY_OBJ;
|
|
8348
8350
|
let prevEmittedValue;
|
|
8349
8351
|
watchSyncEffect(() => {
|
|
8350
|
-
const propValue = props[
|
|
8352
|
+
const propValue = props[camelizedName];
|
|
8351
8353
|
if (hasChanged(localValue, propValue)) {
|
|
8352
8354
|
localValue = propValue;
|
|
8353
8355
|
trigger();
|
|
@@ -8646,7 +8648,7 @@ function renderComponentRoot(instance) {
|
|
|
8646
8648
|
}
|
|
8647
8649
|
if (extraAttrs.length) {
|
|
8648
8650
|
warn$1(
|
|
8649
|
-
`Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`
|
|
8651
|
+
`Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`
|
|
8650
8652
|
);
|
|
8651
8653
|
}
|
|
8652
8654
|
if (eventAttrs.length) {
|
|
@@ -9429,9 +9431,9 @@ function closeBlock() {
|
|
|
9429
9431
|
currentBlock = blockStack[blockStack.length - 1] || null;
|
|
9430
9432
|
}
|
|
9431
9433
|
let isBlockTreeEnabled = 1;
|
|
9432
|
-
function setBlockTracking(value) {
|
|
9434
|
+
function setBlockTracking(value, inVOnce = false) {
|
|
9433
9435
|
isBlockTreeEnabled += value;
|
|
9434
|
-
if (value < 0 && currentBlock) {
|
|
9436
|
+
if (value < 0 && currentBlock && inVOnce) {
|
|
9435
9437
|
currentBlock.hasOnce = true;
|
|
9436
9438
|
}
|
|
9437
9439
|
}
|
|
@@ -9974,9 +9976,9 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
9974
9976
|
}
|
|
9975
9977
|
const { setup } = Component;
|
|
9976
9978
|
if (setup) {
|
|
9979
|
+
pauseTracking();
|
|
9977
9980
|
const setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null;
|
|
9978
9981
|
const reset = setCurrentInstance(instance);
|
|
9979
|
-
pauseTracking();
|
|
9980
9982
|
const setupResult = callWithErrorHandling(
|
|
9981
9983
|
setup,
|
|
9982
9984
|
instance,
|
|
@@ -9986,10 +9988,13 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
9986
9988
|
setupContext
|
|
9987
9989
|
]
|
|
9988
9990
|
);
|
|
9991
|
+
const isAsyncSetup = isPromise(setupResult);
|
|
9989
9992
|
resetTracking();
|
|
9990
9993
|
reset();
|
|
9991
|
-
if (
|
|
9992
|
-
|
|
9994
|
+
if ((isAsyncSetup || instance.sp) && !isAsyncWrapper(instance)) {
|
|
9995
|
+
markAsyncBoundary(instance);
|
|
9996
|
+
}
|
|
9997
|
+
if (isAsyncSetup) {
|
|
9993
9998
|
setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
|
|
9994
9999
|
if (isSSR) {
|
|
9995
10000
|
return setupResult.then((resolvedResult) => {
|
|
@@ -10452,7 +10457,7 @@ function isMemoSame(cached, memo) {
|
|
|
10452
10457
|
return true;
|
|
10453
10458
|
}
|
|
10454
10459
|
|
|
10455
|
-
const version = "3.5.
|
|
10460
|
+
const version = "3.5.13";
|
|
10456
10461
|
const warn = warn$1 ;
|
|
10457
10462
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10458
10463
|
const devtools = devtools$1 ;
|
|
@@ -10636,7 +10641,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
10636
10641
|
onAppear = onEnter,
|
|
10637
10642
|
onAppearCancelled = onEnterCancelled
|
|
10638
10643
|
} = baseProps;
|
|
10639
|
-
const finishEnter = (el, isAppear, done) => {
|
|
10644
|
+
const finishEnter = (el, isAppear, done, isCancelled) => {
|
|
10645
|
+
el._enterCancelled = isCancelled;
|
|
10640
10646
|
removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
10641
10647
|
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
10642
10648
|
done && done();
|
|
@@ -10679,8 +10685,13 @@ function resolveTransitionProps(rawProps) {
|
|
|
10679
10685
|
el._isLeaving = true;
|
|
10680
10686
|
const resolve = () => finishLeave(el, done);
|
|
10681
10687
|
addTransitionClass(el, leaveFromClass);
|
|
10682
|
-
|
|
10683
|
-
|
|
10688
|
+
if (!el._enterCancelled) {
|
|
10689
|
+
forceReflow();
|
|
10690
|
+
addTransitionClass(el, leaveActiveClass);
|
|
10691
|
+
} else {
|
|
10692
|
+
addTransitionClass(el, leaveActiveClass);
|
|
10693
|
+
forceReflow();
|
|
10694
|
+
}
|
|
10684
10695
|
nextFrame(() => {
|
|
10685
10696
|
if (!el._isLeaving) {
|
|
10686
10697
|
return;
|
|
@@ -10694,11 +10705,11 @@ function resolveTransitionProps(rawProps) {
|
|
|
10694
10705
|
callHook(onLeave, [el, resolve]);
|
|
10695
10706
|
},
|
|
10696
10707
|
onEnterCancelled(el) {
|
|
10697
|
-
finishEnter(el, false);
|
|
10708
|
+
finishEnter(el, false, void 0, true);
|
|
10698
10709
|
callHook(onEnterCancelled, [el]);
|
|
10699
10710
|
},
|
|
10700
10711
|
onAppearCancelled(el) {
|
|
10701
|
-
finishEnter(el, true);
|
|
10712
|
+
finishEnter(el, true, void 0, true);
|
|
10702
10713
|
callHook(onAppearCancelled, [el]);
|
|
10703
10714
|
},
|
|
10704
10715
|
onLeaveCancelled(el) {
|
|
@@ -10918,10 +10929,11 @@ function useCssVars(getter) {
|
|
|
10918
10929
|
}
|
|
10919
10930
|
updateTeleports(vars);
|
|
10920
10931
|
};
|
|
10921
|
-
|
|
10922
|
-
|
|
10932
|
+
onBeforeUpdate(() => {
|
|
10933
|
+
queuePostFlushCb(setVars);
|
|
10923
10934
|
});
|
|
10924
10935
|
onMounted(() => {
|
|
10936
|
+
watch(setVars, NOOP, { flush: "post" });
|
|
10925
10937
|
const ob = new MutationObserver(setVars);
|
|
10926
10938
|
ob.observe(instance.subTree.el.parentNode, { childList: true });
|
|
10927
10939
|
onUnmounted(() => ob.disconnect());
|
|
@@ -11085,7 +11097,7 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
|
|
|
11085
11097
|
}
|
|
11086
11098
|
}
|
|
11087
11099
|
|
|
11088
|
-
function patchDOMProp(el, key, value, parentComponent) {
|
|
11100
|
+
function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
11089
11101
|
if (key === "innerHTML" || key === "textContent") {
|
|
11090
11102
|
if (value != null) {
|
|
11091
11103
|
el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
@@ -11133,7 +11145,7 @@ function patchDOMProp(el, key, value, parentComponent) {
|
|
|
11133
11145
|
);
|
|
11134
11146
|
}
|
|
11135
11147
|
}
|
|
11136
|
-
needRemove && el.removeAttribute(key);
|
|
11148
|
+
needRemove && el.removeAttribute(attrName || key);
|
|
11137
11149
|
}
|
|
11138
11150
|
|
|
11139
11151
|
function addEventListener(el, event, handler, options) {
|
|
@@ -11243,7 +11255,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) =>
|
|
|
11243
11255
|
// #11081 force set props for possible async custom element
|
|
11244
11256
|
el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))
|
|
11245
11257
|
) {
|
|
11246
|
-
patchDOMProp(el, camelize(key), nextValue);
|
|
11258
|
+
patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
11247
11259
|
} else {
|
|
11248
11260
|
if (key === "true-value") {
|
|
11249
11261
|
el._trueValue = nextValue;
|
|
@@ -11528,6 +11540,8 @@ class VueElement extends BaseClass {
|
|
|
11528
11540
|
this._update();
|
|
11529
11541
|
}
|
|
11530
11542
|
if (shouldReflect) {
|
|
11543
|
+
const ob = this._ob;
|
|
11544
|
+
ob && ob.disconnect();
|
|
11531
11545
|
if (val === true) {
|
|
11532
11546
|
this.setAttribute(hyphenate(key), "");
|
|
11533
11547
|
} else if (typeof val === "string" || typeof val === "number") {
|
|
@@ -11535,6 +11549,7 @@ class VueElement extends BaseClass {
|
|
|
11535
11549
|
} else if (!val) {
|
|
11536
11550
|
this.removeAttribute(hyphenate(key));
|
|
11537
11551
|
}
|
|
11552
|
+
ob && ob.observe(this, { attributes: true });
|
|
11538
11553
|
}
|
|
11539
11554
|
}
|
|
11540
11555
|
}
|
|
@@ -11961,7 +11976,7 @@ const vModelCheckbox = {
|
|
|
11961
11976
|
setChecked(el, binding, vnode);
|
|
11962
11977
|
}
|
|
11963
11978
|
};
|
|
11964
|
-
function setChecked(el, { value }, vnode) {
|
|
11979
|
+
function setChecked(el, { value, oldValue }, vnode) {
|
|
11965
11980
|
el._modelValue = value;
|
|
11966
11981
|
let checked;
|
|
11967
11982
|
if (isArray(value)) {
|
|
@@ -11969,6 +11984,7 @@ function setChecked(el, { value }, vnode) {
|
|
|
11969
11984
|
} else if (isSet(value)) {
|
|
11970
11985
|
checked = value.has(vnode.props.value);
|
|
11971
11986
|
} else {
|
|
11987
|
+
if (value === oldValue) return;
|
|
11972
11988
|
checked = looseEqual(value, getCheckboxValue(el, true));
|
|
11973
11989
|
}
|
|
11974
11990
|
if (el.checked !== checked) {
|