@vue/compat 3.6.0-beta.7 → 3.6.0-beta.9
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-compat.d.ts +20225 -21
- package/dist/vue.cjs.js +181 -282
- package/dist/vue.cjs.prod.js +154 -275
- package/dist/vue.esm-browser.js +178 -275
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +185 -270
- package/dist/vue.global.js +498 -601
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +178 -275
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +185 -270
- package/dist/vue.runtime.global.js +498 -601
- package/dist/vue.runtime.global.prod.js +4 -4
- package/package.json +4 -3
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-beta.
|
|
2
|
+
* @vue/compat v3.6.0-beta.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -7,18 +7,13 @@
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __exportAll = (all, no_symbols) => {
|
|
9
9
|
let target = {};
|
|
10
|
-
for (var name in all) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
if (!no_symbols) {
|
|
17
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
-
}
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
15
|
return target;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
17
|
//#endregion
|
|
23
18
|
//#region packages/shared/src/makeMap.ts
|
|
24
19
|
/**
|
|
@@ -34,7 +29,6 @@ function makeMap(str) {
|
|
|
34
29
|
for (const key of str.split(",")) map[key] = 1;
|
|
35
30
|
return (val) => val in map;
|
|
36
31
|
}
|
|
37
|
-
|
|
38
32
|
//#endregion
|
|
39
33
|
//#region packages/shared/src/general.ts
|
|
40
34
|
const EMPTY_OBJ = Object.freeze({});
|
|
@@ -152,7 +146,6 @@ function genCacheKey(source, options) {
|
|
|
152
146
|
function canSetValueDirectly(tagName) {
|
|
153
147
|
return tagName !== "PROGRESS" && !tagName.includes("-");
|
|
154
148
|
}
|
|
155
|
-
|
|
156
149
|
//#endregion
|
|
157
150
|
//#region packages/shared/src/patchFlags.ts
|
|
158
151
|
/**
|
|
@@ -174,7 +167,6 @@ const PatchFlagNames = {
|
|
|
174
167
|
[-1]: `CACHED`,
|
|
175
168
|
[-2]: `BAIL`
|
|
176
169
|
};
|
|
177
|
-
|
|
178
170
|
//#endregion
|
|
179
171
|
//#region packages/shared/src/slotFlags.ts
|
|
180
172
|
/**
|
|
@@ -185,12 +177,7 @@ const slotFlagsText = {
|
|
|
185
177
|
[2]: "DYNAMIC",
|
|
186
178
|
[3]: "FORWARDED"
|
|
187
179
|
};
|
|
188
|
-
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region packages/shared/src/globalsAllowList.ts
|
|
191
|
-
const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
|
|
192
|
-
const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
|
|
193
|
-
|
|
180
|
+
const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");
|
|
194
181
|
//#endregion
|
|
195
182
|
//#region packages/shared/src/codeframe.ts
|
|
196
183
|
const range = 2;
|
|
@@ -229,7 +216,6 @@ function generateCodeFrame(source, start = 0, end = source.length) {
|
|
|
229
216
|
}
|
|
230
217
|
return res.join("\n");
|
|
231
218
|
}
|
|
232
|
-
|
|
233
219
|
//#endregion
|
|
234
220
|
//#region packages/shared/src/normalizeProp.ts
|
|
235
221
|
function normalizeStyle(value) {
|
|
@@ -288,7 +274,6 @@ function normalizeProps(props) {
|
|
|
288
274
|
if (style) props.style = normalizeStyle(style);
|
|
289
275
|
return props;
|
|
290
276
|
}
|
|
291
|
-
|
|
292
277
|
//#endregion
|
|
293
278
|
//#region packages/shared/src/domTagConfig.ts
|
|
294
279
|
const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
|
|
@@ -315,7 +300,6 @@ const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
|
315
300
|
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
316
301
|
*/
|
|
317
302
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
318
|
-
|
|
319
303
|
//#endregion
|
|
320
304
|
//#region packages/shared/src/domAttrConfig.ts
|
|
321
305
|
/**
|
|
@@ -370,14 +354,12 @@ function shouldSetAsAttr(tagName, key) {
|
|
|
370
354
|
if (key === "sandbox" && tagName === "IFRAME") return true;
|
|
371
355
|
return false;
|
|
372
356
|
}
|
|
373
|
-
|
|
374
357
|
//#endregion
|
|
375
358
|
//#region packages/shared/src/escapeHtml.ts
|
|
376
359
|
const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
|
|
377
360
|
function getEscapedCssVarName(key, doubleEscape) {
|
|
378
361
|
return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
|
|
379
362
|
}
|
|
380
|
-
|
|
381
363
|
//#endregion
|
|
382
364
|
//#region packages/shared/src/looseEqual.ts
|
|
383
365
|
function looseCompareArrays(a, b) {
|
|
@@ -413,7 +395,6 @@ function looseEqual(a, b) {
|
|
|
413
395
|
function looseIndexOf(arr, val) {
|
|
414
396
|
return arr.findIndex((item) => looseEqual(item, val));
|
|
415
397
|
}
|
|
416
|
-
|
|
417
398
|
//#endregion
|
|
418
399
|
//#region packages/shared/src/toDisplayString.ts
|
|
419
400
|
const isRef$1 = (val) => {
|
|
@@ -448,7 +429,6 @@ const stringifySymbol = (v, i = "") => {
|
|
|
448
429
|
var _description;
|
|
449
430
|
return isSymbol(v) ? `Symbol(${(_description = v.description) !== null && _description !== void 0 ? _description : i})` : v;
|
|
450
431
|
};
|
|
451
|
-
|
|
452
432
|
//#endregion
|
|
453
433
|
//#region packages/shared/src/subSequence.ts
|
|
454
434
|
function getSequence(arr) {
|
|
@@ -486,7 +466,6 @@ function getSequence(arr) {
|
|
|
486
466
|
}
|
|
487
467
|
return result;
|
|
488
468
|
}
|
|
489
|
-
|
|
490
469
|
//#endregion
|
|
491
470
|
//#region packages/shared/src/cssVars.ts
|
|
492
471
|
/**
|
|
@@ -499,7 +478,6 @@ function normalizeCssVarValue(value) {
|
|
|
499
478
|
if (typeof value !== "number" || !Number.isFinite(value)) console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:", value);
|
|
500
479
|
return String(value);
|
|
501
480
|
}
|
|
502
|
-
|
|
503
481
|
//#endregion
|
|
504
482
|
//#region packages/reactivity/src/debug.ts
|
|
505
483
|
const triggerEventInfos = [];
|
|
@@ -535,31 +513,11 @@ function setupFlagsHandler(target) {
|
|
|
535
513
|
}
|
|
536
514
|
});
|
|
537
515
|
}
|
|
538
|
-
|
|
539
516
|
//#endregion
|
|
540
517
|
//#region packages/reactivity/src/warning.ts
|
|
541
518
|
function warn$2(msg, ...args) {
|
|
542
519
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
543
520
|
}
|
|
544
|
-
|
|
545
|
-
//#endregion
|
|
546
|
-
//#region packages/reactivity/src/system.ts
|
|
547
|
-
const ReactiveFlags = {
|
|
548
|
-
"None": 0,
|
|
549
|
-
"0": "None",
|
|
550
|
-
"Mutable": 1,
|
|
551
|
-
"1": "Mutable",
|
|
552
|
-
"Watching": 2,
|
|
553
|
-
"2": "Watching",
|
|
554
|
-
"RecursedCheck": 4,
|
|
555
|
-
"4": "RecursedCheck",
|
|
556
|
-
"Recursed": 8,
|
|
557
|
-
"8": "Recursed",
|
|
558
|
-
"Dirty": 16,
|
|
559
|
-
"16": "Dirty",
|
|
560
|
-
"Pending": 32,
|
|
561
|
-
"32": "Pending"
|
|
562
|
-
};
|
|
563
521
|
const notifyBuffer = [];
|
|
564
522
|
let batchDepth = 0;
|
|
565
523
|
let activeSub = void 0;
|
|
@@ -767,7 +725,6 @@ function isValidLink(checkLink, sub) {
|
|
|
767
725
|
}
|
|
768
726
|
return false;
|
|
769
727
|
}
|
|
770
|
-
|
|
771
728
|
//#endregion
|
|
772
729
|
//#region packages/reactivity/src/dep.ts
|
|
773
730
|
var Dep = class {
|
|
@@ -878,7 +835,6 @@ function getDepFromReactive(object, key) {
|
|
|
878
835
|
const depMap = targetMap.get(object);
|
|
879
836
|
return depMap && depMap.get(key);
|
|
880
837
|
}
|
|
881
|
-
|
|
882
838
|
//#endregion
|
|
883
839
|
//#region packages/reactivity/src/arrayInstrumentations.ts
|
|
884
840
|
/**
|
|
@@ -1026,16 +982,25 @@ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
|
1026
982
|
}
|
|
1027
983
|
function reduce(self, method, fn, args) {
|
|
1028
984
|
const arr = shallowReadArray(self);
|
|
985
|
+
const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
|
|
1029
986
|
let wrappedFn = fn;
|
|
987
|
+
let wrapInitialAccumulator = false;
|
|
1030
988
|
if (arr !== self) {
|
|
1031
|
-
if (
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
989
|
+
if (needsWrap) {
|
|
990
|
+
wrapInitialAccumulator = args.length === 0;
|
|
991
|
+
wrappedFn = function(acc, item, index) {
|
|
992
|
+
if (wrapInitialAccumulator) {
|
|
993
|
+
wrapInitialAccumulator = false;
|
|
994
|
+
acc = toWrapped(self, acc);
|
|
995
|
+
}
|
|
996
|
+
return fn.call(this, acc, toWrapped(self, item), index, self);
|
|
997
|
+
};
|
|
998
|
+
} else if (fn.length > 3) wrappedFn = function(acc, item, index) {
|
|
1035
999
|
return fn.call(this, acc, item, index, self);
|
|
1036
1000
|
};
|
|
1037
1001
|
}
|
|
1038
|
-
|
|
1002
|
+
const result = arr[method](wrappedFn, ...args);
|
|
1003
|
+
return wrapInitialAccumulator ? toWrapped(self, result) : result;
|
|
1039
1004
|
}
|
|
1040
1005
|
function searchProxy(self, method, args) {
|
|
1041
1006
|
const arr = /* @__PURE__ */ toRaw(self);
|
|
@@ -1055,7 +1020,6 @@ function noTracking(self, method, args = []) {
|
|
|
1055
1020
|
endBatch();
|
|
1056
1021
|
return res;
|
|
1057
1022
|
}
|
|
1058
|
-
|
|
1059
1023
|
//#endregion
|
|
1060
1024
|
//#region packages/reactivity/src/baseHandlers.ts
|
|
1061
1025
|
const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
@@ -1164,7 +1128,6 @@ const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
|
|
|
1164
1128
|
const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
|
|
1165
1129
|
const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
|
|
1166
1130
|
const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
|
|
1167
|
-
|
|
1168
1131
|
//#endregion
|
|
1169
1132
|
//#region packages/reactivity/src/collectionHandlers.ts
|
|
1170
1133
|
const toShallow = (value) => value;
|
|
@@ -1249,11 +1212,13 @@ function createInstrumentations(readonly, shallow) {
|
|
|
1249
1212
|
clear: createReadonlyMethod("clear")
|
|
1250
1213
|
} : {
|
|
1251
1214
|
add(value) {
|
|
1252
|
-
if (!shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) value = /* @__PURE__ */ toRaw(value);
|
|
1253
1215
|
const target = /* @__PURE__ */ toRaw(this);
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1216
|
+
const proto = getProto(target);
|
|
1217
|
+
const rawValue = /* @__PURE__ */ toRaw(value);
|
|
1218
|
+
const valueToAdd = !shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value) ? rawValue : value;
|
|
1219
|
+
if (!(proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue))) {
|
|
1220
|
+
target.add(valueToAdd);
|
|
1221
|
+
trigger(target, "add", valueToAdd, valueToAdd);
|
|
1257
1222
|
}
|
|
1258
1223
|
return this;
|
|
1259
1224
|
},
|
|
@@ -1324,7 +1289,6 @@ function checkIdentityKeys(target, has, key) {
|
|
|
1324
1289
|
warn$2(`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.`);
|
|
1325
1290
|
}
|
|
1326
1291
|
}
|
|
1327
|
-
|
|
1328
1292
|
//#endregion
|
|
1329
1293
|
//#region packages/reactivity/src/reactive.ts
|
|
1330
1294
|
const reactiveMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -1588,7 +1552,6 @@ const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value)
|
|
|
1588
1552
|
* @param value - The value for which a readonly proxy shall be created.
|
|
1589
1553
|
*/
|
|
1590
1554
|
const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1591
|
-
|
|
1592
1555
|
//#endregion
|
|
1593
1556
|
//#region packages/reactivity/src/ref.ts
|
|
1594
1557
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -1657,7 +1620,7 @@ var RefImpl = class {
|
|
|
1657
1620
|
}
|
|
1658
1621
|
}
|
|
1659
1622
|
update() {
|
|
1660
|
-
this.flags &=
|
|
1623
|
+
this.flags &= -17;
|
|
1661
1624
|
return hasChanged(this._oldValue, this._oldValue = this._rawValue);
|
|
1662
1625
|
}
|
|
1663
1626
|
};
|
|
@@ -1809,16 +1772,16 @@ function toRefs(object) {
|
|
|
1809
1772
|
return ret;
|
|
1810
1773
|
}
|
|
1811
1774
|
var ObjectRefImpl = class {
|
|
1812
|
-
constructor(_object,
|
|
1775
|
+
constructor(_object, key, _defaultValue) {
|
|
1813
1776
|
this._object = _object;
|
|
1814
|
-
this._key = _key;
|
|
1815
1777
|
this._defaultValue = _defaultValue;
|
|
1816
1778
|
this["__v_isRef"] = true;
|
|
1817
1779
|
this._value = void 0;
|
|
1780
|
+
this._key = isSymbol(key) ? key : String(key);
|
|
1818
1781
|
this._raw = /* @__PURE__ */ toRaw(_object);
|
|
1819
1782
|
let shallow = true;
|
|
1820
1783
|
let obj = _object;
|
|
1821
|
-
if (!isArray(_object) || !isIntegerKey(
|
|
1784
|
+
if (!isArray(_object) || isSymbol(this._key) || !isIntegerKey(this._key)) do
|
|
1822
1785
|
shallow = !/* @__PURE__ */ isProxy(obj) || /* @__PURE__ */ isShallow(obj);
|
|
1823
1786
|
while (shallow && (obj = obj["__v_raw"]));
|
|
1824
1787
|
this._shallow = shallow;
|
|
@@ -1863,7 +1826,6 @@ function toRef(source, key, defaultValue) {
|
|
|
1863
1826
|
function propertyToRef(source, key, defaultValue) {
|
|
1864
1827
|
return new ObjectRefImpl(source, key, defaultValue);
|
|
1865
1828
|
}
|
|
1866
|
-
|
|
1867
1829
|
//#endregion
|
|
1868
1830
|
//#region packages/reactivity/src/effect.ts
|
|
1869
1831
|
var ReactiveEffect = class {
|
|
@@ -1972,7 +1934,6 @@ function cleanup(sub) {
|
|
|
1972
1934
|
sub.cleanupsLength = 0;
|
|
1973
1935
|
}
|
|
1974
1936
|
}
|
|
1975
|
-
|
|
1976
1937
|
//#endregion
|
|
1977
1938
|
//#region packages/reactivity/src/effectScope.ts
|
|
1978
1939
|
let activeEffectScope;
|
|
@@ -2081,7 +2042,6 @@ function onScopeDispose(fn, failSilently = false) {
|
|
|
2081
2042
|
if (activeEffectScope !== void 0) activeEffectScope.cleanups[activeEffectScope.cleanupsLength++] = fn;
|
|
2082
2043
|
else if (!failSilently) warn$2("onScopeDispose() is called when there is no active effect scope to be associated with.");
|
|
2083
2044
|
}
|
|
2084
|
-
|
|
2085
2045
|
//#endregion
|
|
2086
2046
|
//#region packages/reactivity/src/computed.ts
|
|
2087
2047
|
/**
|
|
@@ -2105,7 +2065,7 @@ var ComputedRefImpl = class {
|
|
|
2105
2065
|
if (flags & 32) if (checkDirty(this.deps, this)) {
|
|
2106
2066
|
this.flags = flags | 16;
|
|
2107
2067
|
return true;
|
|
2108
|
-
} else this.flags = flags &
|
|
2068
|
+
} else this.flags = flags & -33;
|
|
2109
2069
|
return false;
|
|
2110
2070
|
}
|
|
2111
2071
|
/**
|
|
@@ -2114,7 +2074,7 @@ var ComputedRefImpl = class {
|
|
|
2114
2074
|
*/
|
|
2115
2075
|
set _dirty(v) {
|
|
2116
2076
|
if (v) this.flags |= 16;
|
|
2117
|
-
else this.flags &=
|
|
2077
|
+
else this.flags &= -49;
|
|
2118
2078
|
}
|
|
2119
2079
|
constructor(fn, setter) {
|
|
2120
2080
|
this.fn = fn;
|
|
@@ -2124,7 +2084,7 @@ var ComputedRefImpl = class {
|
|
|
2124
2084
|
this.subsTail = void 0;
|
|
2125
2085
|
this.deps = void 0;
|
|
2126
2086
|
this.depsTail = void 0;
|
|
2127
|
-
this.flags =
|
|
2087
|
+
this.flags = 17;
|
|
2128
2088
|
this.__v_isRef = true;
|
|
2129
2089
|
this["__v_isReadonly"] = !setter;
|
|
2130
2090
|
}
|
|
@@ -2135,7 +2095,7 @@ var ComputedRefImpl = class {
|
|
|
2135
2095
|
const subs = this.subs;
|
|
2136
2096
|
if (subs !== void 0) shallowPropagate(subs);
|
|
2137
2097
|
}
|
|
2138
|
-
} else if (flags & 32) this.flags = flags &
|
|
2098
|
+
} else if (flags & 32) this.flags = flags & -33;
|
|
2139
2099
|
if (activeSub !== void 0) {
|
|
2140
2100
|
onTrack(activeSub, {
|
|
2141
2101
|
target: this,
|
|
@@ -2182,7 +2142,6 @@ function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
|
2182
2142
|
}
|
|
2183
2143
|
return cRef;
|
|
2184
2144
|
}
|
|
2185
|
-
|
|
2186
2145
|
//#endregion
|
|
2187
2146
|
//#region packages/reactivity/src/constants.ts
|
|
2188
2147
|
const TrackOpTypes = {
|
|
@@ -2196,7 +2155,6 @@ const TriggerOpTypes = {
|
|
|
2196
2155
|
"DELETE": "delete",
|
|
2197
2156
|
"CLEAR": "clear"
|
|
2198
2157
|
};
|
|
2199
|
-
|
|
2200
2158
|
//#endregion
|
|
2201
2159
|
//#region packages/reactivity/src/watch.ts
|
|
2202
2160
|
const INITIAL_WATCHER_VALUE = {};
|
|
@@ -2339,7 +2297,6 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
2339
2297
|
}
|
|
2340
2298
|
return value;
|
|
2341
2299
|
}
|
|
2342
|
-
|
|
2343
2300
|
//#endregion
|
|
2344
2301
|
//#region packages/runtime-core/src/warning.ts
|
|
2345
2302
|
const stack$1 = [];
|
|
@@ -2366,8 +2323,8 @@ function warn$1(msg, ...args) {
|
|
|
2366
2323
|
const trace = getComponentTrace();
|
|
2367
2324
|
if (appWarnHandler) callWithErrorHandling(appWarnHandler, instance, 11, [
|
|
2368
2325
|
msg + args.map((a) => {
|
|
2369
|
-
|
|
2370
|
-
return
|
|
2326
|
+
const toString = a.toString;
|
|
2327
|
+
return toString == null ? JSON.stringify(a) : toString.call(a);
|
|
2371
2328
|
}).join(""),
|
|
2372
2329
|
instance && instance.proxy || instance,
|
|
2373
2330
|
trace.map(({ ctx }) => `at <${formatComponentName(instance, ctx.type)}>`).join("\n"),
|
|
@@ -2457,7 +2414,6 @@ function assertNumber(val, type) {
|
|
|
2457
2414
|
else if (isNaN(val)) warn$1(`${type} is NaN - the duration expression might be incorrect.`);
|
|
2458
2415
|
}
|
|
2459
2416
|
/* v8 ignore stop */
|
|
2460
|
-
|
|
2461
2417
|
//#endregion
|
|
2462
2418
|
//#region packages/runtime-core/src/errorHandling.ts
|
|
2463
2419
|
const ErrorCodes = {
|
|
@@ -2580,7 +2536,6 @@ function logError(err, type, instance, throwInDev = true, throwInProd = false) {
|
|
|
2580
2536
|
else console.error(err);
|
|
2581
2537
|
}
|
|
2582
2538
|
}
|
|
2583
|
-
|
|
2584
2539
|
//#endregion
|
|
2585
2540
|
//#region packages/runtime-core/src/scheduler.ts
|
|
2586
2541
|
const jobs = [];
|
|
@@ -2733,10 +2688,16 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2733
2688
|
seen.set(fn, count + 1);
|
|
2734
2689
|
return false;
|
|
2735
2690
|
}
|
|
2736
|
-
|
|
2737
2691
|
//#endregion
|
|
2738
2692
|
//#region packages/runtime-core/src/hmr.ts
|
|
2739
2693
|
let isHmrUpdating = false;
|
|
2694
|
+
const setHmrUpdating = (v) => {
|
|
2695
|
+
try {
|
|
2696
|
+
return isHmrUpdating;
|
|
2697
|
+
} finally {
|
|
2698
|
+
isHmrUpdating = v;
|
|
2699
|
+
}
|
|
2700
|
+
};
|
|
2740
2701
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2741
2702
|
const hmrDirtyComponentsMode = /* @__PURE__ */ new Map();
|
|
2742
2703
|
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
@@ -2855,7 +2816,6 @@ function tryWrap(fn) {
|
|
|
2855
2816
|
}
|
|
2856
2817
|
};
|
|
2857
2818
|
}
|
|
2858
|
-
|
|
2859
2819
|
//#endregion
|
|
2860
2820
|
//#region packages/runtime-core/src/devtools.ts
|
|
2861
2821
|
let devtools$1;
|
|
@@ -2924,7 +2884,6 @@ function createDevtoolsPerformanceHook(hook) {
|
|
|
2924
2884
|
function devtoolsComponentEmit(component, event, params) {
|
|
2925
2885
|
emit$2("component:emit", component.appContext.app, component, event, params);
|
|
2926
2886
|
}
|
|
2927
|
-
|
|
2928
2887
|
//#endregion
|
|
2929
2888
|
//#region packages/runtime-core/src/compat/compatConfig.ts
|
|
2930
2889
|
const DeprecationTypes$1 = {
|
|
@@ -3195,7 +3154,6 @@ function checkCompatEnabled$1(key, instance, ...args) {
|
|
|
3195
3154
|
if (enabled) warnDeprecation$1(key, instance, ...args);
|
|
3196
3155
|
return enabled;
|
|
3197
3156
|
}
|
|
3198
|
-
|
|
3199
3157
|
//#endregion
|
|
3200
3158
|
//#region packages/runtime-core/src/compat/instanceEventEmitter.ts
|
|
3201
3159
|
const eventRegistryMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -3249,7 +3207,6 @@ function emit$1(instance, event, args) {
|
|
|
3249
3207
|
if (cbs) callWithAsyncErrorHandling(cbs.map((cb) => cb.bind(instance.proxy)), instance, 6, args);
|
|
3250
3208
|
return instance.proxy;
|
|
3251
3209
|
}
|
|
3252
|
-
|
|
3253
3210
|
//#endregion
|
|
3254
3211
|
//#region packages/runtime-core/src/componentRenderContext.ts
|
|
3255
3212
|
/**
|
|
@@ -3321,7 +3278,6 @@ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
|
3321
3278
|
if (isNonScopedSlot) renderFnWithContext._ns = true;
|
|
3322
3279
|
return renderFnWithContext;
|
|
3323
3280
|
}
|
|
3324
|
-
|
|
3325
3281
|
//#endregion
|
|
3326
3282
|
//#region packages/runtime-core/src/compat/customDirective.ts
|
|
3327
3283
|
const legacyDirectiveHookMap = {
|
|
@@ -3347,7 +3303,6 @@ function mapCompatDirectiveHook(name, dir, instance) {
|
|
|
3347
3303
|
return dir[mappedName];
|
|
3348
3304
|
}
|
|
3349
3305
|
}
|
|
3350
|
-
|
|
3351
3306
|
//#endregion
|
|
3352
3307
|
//#region packages/runtime-core/src/directives.ts
|
|
3353
3308
|
function validateDirectiveName(name) {
|
|
@@ -3403,7 +3358,6 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
3403
3358
|
}
|
|
3404
3359
|
}
|
|
3405
3360
|
}
|
|
3406
|
-
|
|
3407
3361
|
//#endregion
|
|
3408
3362
|
//#region packages/runtime-core/src/apiInject.ts
|
|
3409
3363
|
function provide(key, value) {
|
|
@@ -3432,7 +3386,6 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
3432
3386
|
function hasInjectionContext() {
|
|
3433
3387
|
return !!(getCurrentGenericInstance() || currentApp);
|
|
3434
3388
|
}
|
|
3435
|
-
|
|
3436
3389
|
//#endregion
|
|
3437
3390
|
//#region packages/runtime-core/src/helpers/useSsrContext.ts
|
|
3438
3391
|
const ssrContextKey = Symbol.for("v-scx");
|
|
@@ -3443,7 +3396,6 @@ const useSSRContext = () => {
|
|
|
3443
3396
|
return ctx;
|
|
3444
3397
|
}
|
|
3445
3398
|
};
|
|
3446
|
-
|
|
3447
3399
|
//#endregion
|
|
3448
3400
|
//#region packages/runtime-core/src/apiWatch.ts
|
|
3449
3401
|
function watchEffect(effect, options) {
|
|
@@ -3526,7 +3478,6 @@ function createPathGetter(ctx, path) {
|
|
|
3526
3478
|
return cur;
|
|
3527
3479
|
};
|
|
3528
3480
|
}
|
|
3529
|
-
|
|
3530
3481
|
//#endregion
|
|
3531
3482
|
//#region packages/runtime-core/src/components/Teleport.ts
|
|
3532
3483
|
const TeleportEndKey = Symbol("_vte");
|
|
@@ -3586,25 +3537,26 @@ const TeleportImpl = {
|
|
|
3586
3537
|
mount(container, mainAnchor);
|
|
3587
3538
|
updateCssVars(n2, true);
|
|
3588
3539
|
}
|
|
3589
|
-
if (isTeleportDeferred(n2.props)) {
|
|
3540
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
3590
3541
|
n2.el.__isMounted = false;
|
|
3591
3542
|
queuePostRenderEffect(() => {
|
|
3543
|
+
if (n2.el.__isMounted !== false) return;
|
|
3592
3544
|
mountToTarget();
|
|
3593
3545
|
delete n2.el.__isMounted;
|
|
3594
3546
|
}, void 0, parentSuspense);
|
|
3595
3547
|
} else mountToTarget();
|
|
3596
3548
|
} else {
|
|
3597
|
-
if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
|
|
3598
|
-
queuePostRenderEffect(() => {
|
|
3599
|
-
TeleportImpl.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals);
|
|
3600
|
-
}, void 0, parentSuspense);
|
|
3601
|
-
return;
|
|
3602
|
-
}
|
|
3603
3549
|
n2.el = n1.el;
|
|
3604
3550
|
n2.targetStart = n1.targetStart;
|
|
3605
3551
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
3606
3552
|
const target = n2.target = n1.target;
|
|
3607
3553
|
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
3554
|
+
if (n1.el.__isMounted === false) {
|
|
3555
|
+
queuePostRenderEffect(() => {
|
|
3556
|
+
TeleportImpl.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals);
|
|
3557
|
+
}, void 0, parentSuspense);
|
|
3558
|
+
return;
|
|
3559
|
+
}
|
|
3608
3560
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
3609
3561
|
const currentContainer = wasDisabled ? container : target;
|
|
3610
3562
|
const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
|
|
@@ -3626,11 +3578,9 @@ const TeleportImpl = {
|
|
|
3626
3578
|
}
|
|
3627
3579
|
},
|
|
3628
3580
|
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
3629
|
-
const { shapeFlag, children, anchor, targetStart, targetAnchor,
|
|
3630
|
-
if (
|
|
3631
|
-
|
|
3632
|
-
hostRemove(targetAnchor);
|
|
3633
|
-
}
|
|
3581
|
+
const { shapeFlag, children, anchor, targetStart, targetAnchor, props } = vnode;
|
|
3582
|
+
if (targetStart) hostRemove(targetStart);
|
|
3583
|
+
if (targetAnchor) hostRemove(targetAnchor);
|
|
3634
3584
|
doRemove && hostRemove(anchor);
|
|
3635
3585
|
if (shapeFlag & 16) {
|
|
3636
3586
|
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
@@ -3724,7 +3674,6 @@ function prepareAnchor(target, vnode, createText, insert, anchor = null) {
|
|
|
3724
3674
|
}
|
|
3725
3675
|
return targetAnchor;
|
|
3726
3676
|
}
|
|
3727
|
-
|
|
3728
3677
|
//#endregion
|
|
3729
3678
|
//#region packages/runtime-core/src/components/BaseTransition.ts
|
|
3730
3679
|
const leaveCbKey = Symbol("_leaveCb");
|
|
@@ -3891,7 +3840,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
3891
3840
|
callHook(hook, [el]);
|
|
3892
3841
|
},
|
|
3893
3842
|
enter(el) {
|
|
3894
|
-
if (isLeaving()) return;
|
|
3843
|
+
if (!isHmrUpdating && isLeaving()) return;
|
|
3895
3844
|
let hook = onEnter;
|
|
3896
3845
|
let afterHook = onAfterEnter;
|
|
3897
3846
|
let cancelHook = onEnterCancelled;
|
|
@@ -3988,14 +3937,12 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
3988
3937
|
function checkTransitionMode(mode) {
|
|
3989
3938
|
if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") warn$1(`invalid <transition> mode: ${mode}`);
|
|
3990
3939
|
}
|
|
3991
|
-
|
|
3992
3940
|
//#endregion
|
|
3993
3941
|
//#region packages/runtime-core/src/apiDefineComponent.ts
|
|
3994
3942
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3995
3943
|
function defineComponent(options, extraOptions) {
|
|
3996
3944
|
return isFunction(options) ? extend({ name: options.name }, extraOptions, { setup: options }) : options;
|
|
3997
3945
|
}
|
|
3998
|
-
|
|
3999
3946
|
//#endregion
|
|
4000
3947
|
//#region packages/runtime-core/src/helpers/useId.ts
|
|
4001
3948
|
function useId() {
|
|
@@ -4017,7 +3964,6 @@ function markAsyncBoundary(instance) {
|
|
|
4017
3964
|
0
|
|
4018
3965
|
];
|
|
4019
3966
|
}
|
|
4020
|
-
|
|
4021
3967
|
//#endregion
|
|
4022
3968
|
//#region packages/runtime-core/src/helpers/useTemplateRef.ts
|
|
4023
3969
|
const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
|
|
@@ -4041,7 +3987,6 @@ function isTemplateRefKey(refs, key) {
|
|
|
4041
3987
|
let desc;
|
|
4042
3988
|
return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);
|
|
4043
3989
|
}
|
|
4044
|
-
|
|
4045
3990
|
//#endregion
|
|
4046
3991
|
//#region packages/runtime-core/src/rendererTemplateRef.ts
|
|
4047
3992
|
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -4140,20 +4085,12 @@ function invalidatePendingSetRef(rawRef) {
|
|
|
4140
4085
|
pendingSetRefMap.delete(rawRef);
|
|
4141
4086
|
}
|
|
4142
4087
|
}
|
|
4143
|
-
|
|
4144
4088
|
//#endregion
|
|
4145
4089
|
//#region packages/runtime-core/src/hydration.ts
|
|
4146
4090
|
let isHydratingEnabled = false;
|
|
4147
4091
|
function setIsHydratingEnabled(value) {
|
|
4148
4092
|
isHydratingEnabled = value;
|
|
4149
4093
|
}
|
|
4150
|
-
/**
|
|
4151
|
-
* VDOM hydration state.
|
|
4152
|
-
* Also used by vapor interop plugin for tree-shaking:
|
|
4153
|
-
* In non-hydration builds, this is never set to true, so the logic in
|
|
4154
|
-
* vaporInteropImpl's hydrate/hydrateSlot can be tree-shaken.
|
|
4155
|
-
*/
|
|
4156
|
-
let isHydrating = false;
|
|
4157
4094
|
let hasLoggedMismatchError = false;
|
|
4158
4095
|
const logMismatchError = () => {
|
|
4159
4096
|
if (hasLoggedMismatchError) return;
|
|
@@ -4179,9 +4116,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4179
4116
|
container._vnode = vnode;
|
|
4180
4117
|
return;
|
|
4181
4118
|
}
|
|
4182
|
-
isHydrating = true;
|
|
4183
4119
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
4184
|
-
isHydrating = false;
|
|
4185
4120
|
flushPostFlushCbs();
|
|
4186
4121
|
container._vnode = vnode;
|
|
4187
4122
|
};
|
|
@@ -4550,7 +4485,6 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
4550
4485
|
return list.includes(MismatchTypeString[allowedType]);
|
|
4551
4486
|
}
|
|
4552
4487
|
}
|
|
4553
|
-
|
|
4554
4488
|
//#endregion
|
|
4555
4489
|
//#region packages/runtime-core/src/hydrationStrategies.ts
|
|
4556
4490
|
let requestIdleCallback;
|
|
@@ -4639,7 +4573,6 @@ function forEachElement(node, cb) {
|
|
|
4639
4573
|
}
|
|
4640
4574
|
} else cb(node);
|
|
4641
4575
|
}
|
|
4642
|
-
|
|
4643
4576
|
//#endregion
|
|
4644
4577
|
//#region packages/runtime-core/src/apiAsyncComponent.ts
|
|
4645
4578
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
@@ -4776,7 +4709,6 @@ function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydra
|
|
|
4776
4709
|
if (getResolvedComp()) doHydrate();
|
|
4777
4710
|
else load().then(() => !instance.isUnmounted && doHydrate());
|
|
4778
4711
|
}
|
|
4779
|
-
|
|
4780
4712
|
//#endregion
|
|
4781
4713
|
//#region packages/runtime-core/src/components/KeepAlive.ts
|
|
4782
4714
|
const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
|
|
@@ -4998,7 +4930,6 @@ function deactivate(vnode, container, { m: move }, parentComponent, parentSuspen
|
|
|
4998
4930
|
}, void 0, parentSuspense);
|
|
4999
4931
|
devtoolsComponentAdded(instance);
|
|
5000
4932
|
}
|
|
5001
|
-
|
|
5002
4933
|
//#endregion
|
|
5003
4934
|
//#region packages/runtime-core/src/apiLifecycle.ts
|
|
5004
4935
|
function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
@@ -5034,7 +4965,6 @@ const onRenderTracked = /* @__PURE__ */ createHook("rtc");
|
|
|
5034
4965
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
5035
4966
|
injectHook("ec", hook, target);
|
|
5036
4967
|
}
|
|
5037
|
-
|
|
5038
4968
|
//#endregion
|
|
5039
4969
|
//#region packages/runtime-core/src/compat/instanceChildren.ts
|
|
5040
4970
|
function getCompatChildren(instance) {
|
|
@@ -5051,7 +4981,6 @@ function walk$1(vnode, children) {
|
|
|
5051
4981
|
for (let i = 0; i < vnodes.length; i++) walk$1(vnodes[i], children);
|
|
5052
4982
|
}
|
|
5053
4983
|
}
|
|
5054
|
-
|
|
5055
4984
|
//#endregion
|
|
5056
4985
|
//#region packages/runtime-core/src/compat/instanceListeners.ts
|
|
5057
4986
|
function getCompatListeners(instance) {
|
|
@@ -5062,24 +4991,20 @@ function getCompatListeners(instance) {
|
|
|
5062
4991
|
for (const key in rawProps) if (isOn(key)) listeners[key[2].toLowerCase() + key.slice(3)] = rawProps[key];
|
|
5063
4992
|
return listeners;
|
|
5064
4993
|
}
|
|
5065
|
-
|
|
5066
|
-
//#endregion
|
|
5067
|
-
//#region packages/runtime-core/src/helpers/resolveAssets.ts
|
|
5068
|
-
const COMPONENTS = "components";
|
|
5069
4994
|
const DIRECTIVES = "directives";
|
|
5070
4995
|
const FILTERS = "filters";
|
|
5071
4996
|
/**
|
|
5072
4997
|
* @private
|
|
5073
4998
|
*/
|
|
5074
4999
|
function resolveComponent(name, maybeSelfReference) {
|
|
5075
|
-
return resolveAsset(
|
|
5000
|
+
return resolveAsset("components", name, true, maybeSelfReference) || name;
|
|
5076
5001
|
}
|
|
5077
5002
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
5078
5003
|
/**
|
|
5079
5004
|
* @private
|
|
5080
5005
|
*/
|
|
5081
5006
|
function resolveDynamicComponent(component) {
|
|
5082
|
-
if (isString(component)) return resolveAsset(
|
|
5007
|
+
if (isString(component)) return resolveAsset("components", component, false) || component;
|
|
5083
5008
|
else return component || NULL_DYNAMIC_COMPONENT;
|
|
5084
5009
|
}
|
|
5085
5010
|
/**
|
|
@@ -5099,14 +5024,14 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
5099
5024
|
const instance = currentRenderingInstance || currentInstance;
|
|
5100
5025
|
if (instance) {
|
|
5101
5026
|
const Component = instance.type;
|
|
5102
|
-
if (type ===
|
|
5027
|
+
if (type === "components") {
|
|
5103
5028
|
const selfName = getComponentName(Component, false);
|
|
5104
5029
|
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) return Component;
|
|
5105
5030
|
}
|
|
5106
5031
|
const res = resolve(instance[type] || Component[type], name) || resolve(instance.appContext[type], name);
|
|
5107
5032
|
if (!res && maybeSelfReference) return Component;
|
|
5108
5033
|
if (warnMissing && !res) {
|
|
5109
|
-
const extra = type ===
|
|
5034
|
+
const extra = type === "components" ? "\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement." : ``;
|
|
5110
5035
|
warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
5111
5036
|
}
|
|
5112
5037
|
return res;
|
|
@@ -5115,7 +5040,6 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
5115
5040
|
function resolve(registry, name) {
|
|
5116
5041
|
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
5117
5042
|
}
|
|
5118
|
-
|
|
5119
5043
|
//#endregion
|
|
5120
5044
|
//#region packages/runtime-core/src/compat/renderFn.ts
|
|
5121
5045
|
function convertLegacyRenderFn(instance) {
|
|
@@ -5251,7 +5175,6 @@ function defineLegacyVNodeProperties(vnode) {
|
|
|
5251
5175
|
}
|
|
5252
5176
|
/* v8 ignore stop */
|
|
5253
5177
|
}
|
|
5254
|
-
|
|
5255
5178
|
//#endregion
|
|
5256
5179
|
//#region packages/runtime-core/src/compat/componentFunctional.ts
|
|
5257
5180
|
const normalizedFunctionalComponentMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -5293,7 +5216,6 @@ function convertLegacyFunctionalComponent(comp) {
|
|
|
5293
5216
|
normalizedFunctionalComponentMap.set(comp, Func);
|
|
5294
5217
|
return Func;
|
|
5295
5218
|
}
|
|
5296
|
-
|
|
5297
5219
|
//#endregion
|
|
5298
5220
|
//#region packages/runtime-core/src/helpers/renderList.ts
|
|
5299
5221
|
/**
|
|
@@ -5314,11 +5236,14 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5314
5236
|
}
|
|
5315
5237
|
ret = new Array(source.length);
|
|
5316
5238
|
for (let i = 0, l = source.length; i < l; i++) ret[i] = renderItem(needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i], i, void 0, cached && cached[i]);
|
|
5317
|
-
} else if (typeof source === "number") {
|
|
5318
|
-
|
|
5239
|
+
} else if (typeof source === "number") if (!Number.isInteger(source) || source < 0) {
|
|
5240
|
+
warn$1(`The v-for range expects a positive integer value but got ${source}.`);
|
|
5241
|
+
ret = [];
|
|
5242
|
+
} else {
|
|
5319
5243
|
ret = new Array(source);
|
|
5320
5244
|
for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
5321
|
-
}
|
|
5245
|
+
}
|
|
5246
|
+
else if (isObject(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
|
|
5322
5247
|
else {
|
|
5323
5248
|
const keys = Object.keys(source);
|
|
5324
5249
|
ret = new Array(keys.length);
|
|
@@ -5331,7 +5256,6 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5331
5256
|
if (cache) cache[index] = ret;
|
|
5332
5257
|
return ret;
|
|
5333
5258
|
}
|
|
5334
|
-
|
|
5335
5259
|
//#endregion
|
|
5336
5260
|
//#region packages/runtime-core/src/helpers/createSlots.ts
|
|
5337
5261
|
/**
|
|
@@ -5350,7 +5274,6 @@ function createSlots(slots, dynamicSlots) {
|
|
|
5350
5274
|
}
|
|
5351
5275
|
return slots;
|
|
5352
5276
|
}
|
|
5353
|
-
|
|
5354
5277
|
//#endregion
|
|
5355
5278
|
//#region packages/runtime-core/src/helpers/renderSlot.ts
|
|
5356
5279
|
/**
|
|
@@ -5401,7 +5324,6 @@ function ensureVaporSlotFallback(vnodes, fallback) {
|
|
|
5401
5324
|
if (!vaporSlot.fallback && fallback) vaporSlot.fallback = fallback;
|
|
5402
5325
|
}
|
|
5403
5326
|
}
|
|
5404
|
-
|
|
5405
5327
|
//#endregion
|
|
5406
5328
|
//#region packages/runtime-core/src/helpers/toHandlers.ts
|
|
5407
5329
|
/**
|
|
@@ -5417,7 +5339,6 @@ function toHandlers(obj, preserveCaseIfNecessary) {
|
|
|
5417
5339
|
for (const key in obj) ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
|
|
5418
5340
|
return ret;
|
|
5419
5341
|
}
|
|
5420
|
-
|
|
5421
5342
|
//#endregion
|
|
5422
5343
|
//#region packages/runtime-core/src/compat/renderHelpers.ts
|
|
5423
5344
|
function toObject(arr) {
|
|
@@ -5499,7 +5420,6 @@ function legacyBindDynamicKeys(props, values) {
|
|
|
5499
5420
|
function legacyPrependModifier(value, symbol) {
|
|
5500
5421
|
return typeof value === "string" ? symbol + value : value;
|
|
5501
5422
|
}
|
|
5502
|
-
|
|
5503
5423
|
//#endregion
|
|
5504
5424
|
//#region packages/runtime-core/src/compat/instance.ts
|
|
5505
5425
|
function installCompatInstanceProperties(map) {
|
|
@@ -5588,7 +5508,6 @@ function installCompatInstanceProperties(map) {
|
|
|
5588
5508
|
if (isCompatEnabled$1("PRIVATE_APIS", i)) return privateAPIs[key](i);
|
|
5589
5509
|
};
|
|
5590
5510
|
}
|
|
5591
|
-
|
|
5592
5511
|
//#endregion
|
|
5593
5512
|
//#region packages/runtime-core/src/componentPublicInstance.ts
|
|
5594
5513
|
/**
|
|
@@ -5774,7 +5693,6 @@ function exposeSetupStateOnRenderContext(instance) {
|
|
|
5774
5693
|
}
|
|
5775
5694
|
});
|
|
5776
5695
|
}
|
|
5777
|
-
|
|
5778
5696
|
//#endregion
|
|
5779
5697
|
//#region packages/runtime-core/src/compat/data.ts
|
|
5780
5698
|
function deepMergeData(to, from) {
|
|
@@ -5788,7 +5706,6 @@ function deepMergeData(to, from) {
|
|
|
5788
5706
|
}
|
|
5789
5707
|
return to;
|
|
5790
5708
|
}
|
|
5791
|
-
|
|
5792
5709
|
//#endregion
|
|
5793
5710
|
//#region packages/runtime-core/src/apiSetupHelpers.ts
|
|
5794
5711
|
const warnRuntimeUsage = (method) => warn$1(`${method}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);
|
|
@@ -5827,6 +5744,22 @@ function defineExpose(exposed) {
|
|
|
5827
5744
|
function defineOptions(options) {
|
|
5828
5745
|
warnRuntimeUsage(`defineOptions`);
|
|
5829
5746
|
}
|
|
5747
|
+
/**
|
|
5748
|
+
* Vue `<script setup>` compiler macro for providing type hints to IDEs for
|
|
5749
|
+
* slot name and slot props type checking.
|
|
5750
|
+
*
|
|
5751
|
+
* Example usage:
|
|
5752
|
+
* ```ts
|
|
5753
|
+
* const slots = defineSlots<{
|
|
5754
|
+
* default(props: { msg: string }): any
|
|
5755
|
+
* }>()
|
|
5756
|
+
* ```
|
|
5757
|
+
*
|
|
5758
|
+
* This is only usable inside `<script setup>`, is compiled away in the
|
|
5759
|
+
* output and should **not** be actually called at runtime.
|
|
5760
|
+
*
|
|
5761
|
+
* @see {@link https://vuejs.org/api/sfc-script-setup.html#defineslots}
|
|
5762
|
+
*/
|
|
5830
5763
|
function defineSlots() {
|
|
5831
5764
|
warnRuntimeUsage(`defineSlots`);
|
|
5832
5765
|
return null;
|
|
@@ -5943,21 +5876,29 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
5943
5876
|
*/
|
|
5944
5877
|
function withAsyncContext(getAwaitable) {
|
|
5945
5878
|
const ctx = getCurrentGenericInstance();
|
|
5879
|
+
const inSSRSetup = isInSSRComponentSetup;
|
|
5946
5880
|
if (!ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
|
|
5947
5881
|
let awaitable = getAwaitable();
|
|
5948
5882
|
setCurrentInstance(null, void 0);
|
|
5949
|
-
|
|
5950
|
-
|
|
5883
|
+
if (inSSRSetup) setInSSRSetupState(false);
|
|
5884
|
+
const restore = () => {
|
|
5951
5885
|
setCurrentInstance(ctx);
|
|
5886
|
+
if (inSSRSetup) setInSSRSetupState(true);
|
|
5887
|
+
};
|
|
5888
|
+
const cleanup = () => {
|
|
5889
|
+
setCurrentInstance(null, void 0);
|
|
5890
|
+
if (inSSRSetup) setInSSRSetupState(false);
|
|
5891
|
+
};
|
|
5892
|
+
if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
|
|
5893
|
+
restore();
|
|
5952
5894
|
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
5953
5895
|
throw e;
|
|
5954
5896
|
});
|
|
5955
5897
|
return [awaitable, () => {
|
|
5956
|
-
|
|
5898
|
+
restore();
|
|
5957
5899
|
Promise.resolve().then(cleanup);
|
|
5958
5900
|
}];
|
|
5959
5901
|
}
|
|
5960
|
-
|
|
5961
5902
|
//#endregion
|
|
5962
5903
|
//#region packages/runtime-core/src/componentOptions.ts
|
|
5963
5904
|
function createDuplicateChecker() {
|
|
@@ -6223,7 +6164,6 @@ function mergeWatchOptions(to, from) {
|
|
|
6223
6164
|
for (const key in from) merged[key] = mergeAsArray$1(to[key], from[key]);
|
|
6224
6165
|
return merged;
|
|
6225
6166
|
}
|
|
6226
|
-
|
|
6227
6167
|
//#endregion
|
|
6228
6168
|
//#region packages/runtime-core/src/compat/globalConfig.ts
|
|
6229
6169
|
function installLegacyConfigWarnings(config) {
|
|
@@ -6254,7 +6194,6 @@ function installLegacyOptionMergeStrats(config) {
|
|
|
6254
6194
|
if (key in internalOptionMergeStrats && softAssertCompatEnabled("CONFIG_OPTION_MERGE_STRATS", null)) return internalOptionMergeStrats[key];
|
|
6255
6195
|
} });
|
|
6256
6196
|
}
|
|
6257
|
-
|
|
6258
6197
|
//#endregion
|
|
6259
6198
|
//#region packages/runtime-core/src/compat/global.ts
|
|
6260
6199
|
let isCopyingConfig = false;
|
|
@@ -6275,7 +6214,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6275
6214
|
if (options.el) return vm.$mount(options.el);
|
|
6276
6215
|
else return vm;
|
|
6277
6216
|
}
|
|
6278
|
-
Vue.version = `2.6.14-compat:3.6.0-beta.
|
|
6217
|
+
Vue.version = `2.6.14-compat:3.6.0-beta.9`;
|
|
6279
6218
|
Vue.config = singletonApp.config;
|
|
6280
6219
|
Vue.use = (plugin, ...options) => {
|
|
6281
6220
|
if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
|
|
@@ -6555,7 +6494,6 @@ function defineReactiveSimple(obj, key, val) {
|
|
|
6555
6494
|
}
|
|
6556
6495
|
});
|
|
6557
6496
|
}
|
|
6558
|
-
|
|
6559
6497
|
//#endregion
|
|
6560
6498
|
//#region packages/runtime-core/src/apiCreateApp.ts
|
|
6561
6499
|
function createAppContext() {
|
|
@@ -6688,7 +6626,6 @@ function createAppAPI(mount, unmount, getPublicInstance, render) {
|
|
|
6688
6626
|
* `app.runWithContext()`.
|
|
6689
6627
|
*/
|
|
6690
6628
|
let currentApp = null;
|
|
6691
|
-
|
|
6692
6629
|
//#endregion
|
|
6693
6630
|
//#region packages/runtime-core/src/compat/componentVModel.ts
|
|
6694
6631
|
const compatModelEventPrefix = `onModelCompat:`;
|
|
@@ -6731,7 +6668,6 @@ function compatModelEmit(instance, event, args) {
|
|
|
6731
6668
|
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
6732
6669
|
if (modelHandler) callWithErrorHandling(modelHandler, instance, 6, args);
|
|
6733
6670
|
}
|
|
6734
|
-
|
|
6735
6671
|
//#endregion
|
|
6736
6672
|
//#region packages/runtime-core/src/helpers/useModel.ts
|
|
6737
6673
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -6804,7 +6740,6 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
6804
6740
|
const getModelModifiers = (props, modelName, getter) => {
|
|
6805
6741
|
return getter(props, getModifierPropName(modelName)) || getter(props, `${camelize(modelName)}Modifiers`) || getter(props, `${hyphenate(modelName)}Modifiers`);
|
|
6806
6742
|
};
|
|
6807
|
-
|
|
6808
6743
|
//#endregion
|
|
6809
6744
|
//#region packages/runtime-core/src/componentEmits.ts
|
|
6810
6745
|
function emit(instance, event, ...rawArgs) {
|
|
@@ -6900,7 +6835,6 @@ function isEmitListener(options, key) {
|
|
|
6900
6835
|
key = key.slice(2).replace(/Once$/, "");
|
|
6901
6836
|
return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key);
|
|
6902
6837
|
}
|
|
6903
|
-
|
|
6904
6838
|
//#endregion
|
|
6905
6839
|
//#region packages/runtime-core/src/componentRenderUtils.ts
|
|
6906
6840
|
/**
|
|
@@ -7092,17 +7026,20 @@ function hasPropValueChanged(nextProps, prevProps, key) {
|
|
|
7092
7026
|
if (key === "style" && isObject(nextProp) && isObject(prevProp)) return !looseEqual(nextProp, prevProp);
|
|
7093
7027
|
return nextProp !== prevProp;
|
|
7094
7028
|
}
|
|
7095
|
-
function updateHOCHostEl({ vnode, parent }, el) {
|
|
7029
|
+
function updateHOCHostEl({ vnode, parent, suspense }, el) {
|
|
7096
7030
|
while (parent && !parent.vapor) {
|
|
7097
7031
|
const root = parent.subTree;
|
|
7098
|
-
if (root.suspense && root.suspense.activeBranch === vnode)
|
|
7032
|
+
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
7033
|
+
root.suspense.vnode.el = root.el = el;
|
|
7034
|
+
vnode = root;
|
|
7035
|
+
}
|
|
7099
7036
|
if (root === vnode) {
|
|
7100
7037
|
(vnode = parent.vnode).el = el;
|
|
7101
7038
|
parent = parent.parent;
|
|
7102
7039
|
} else break;
|
|
7103
7040
|
}
|
|
7041
|
+
if (suspense && suspense.activeBranch === vnode) suspense.vnode.el = el;
|
|
7104
7042
|
}
|
|
7105
|
-
|
|
7106
7043
|
//#endregion
|
|
7107
7044
|
//#region packages/runtime-core/src/compat/props.ts
|
|
7108
7045
|
function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
@@ -7118,7 +7055,6 @@ function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
|
7118
7055
|
}
|
|
7119
7056
|
} });
|
|
7120
7057
|
}
|
|
7121
|
-
|
|
7122
7058
|
//#endregion
|
|
7123
7059
|
//#region packages/runtime-core/src/compat/attrsFallthrough.ts
|
|
7124
7060
|
function shouldSkipAttr(key, instance) {
|
|
@@ -7128,7 +7064,6 @@ function shouldSkipAttr(key, instance) {
|
|
|
7128
7064
|
if (key.startsWith("routerView") || key === "registerRouteInstance") return true;
|
|
7129
7065
|
return false;
|
|
7130
7066
|
}
|
|
7131
|
-
|
|
7132
7067
|
//#endregion
|
|
7133
7068
|
//#region packages/runtime-core/src/internalObject.ts
|
|
7134
7069
|
/**
|
|
@@ -7140,7 +7075,6 @@ function shouldSkipAttr(key, instance) {
|
|
|
7140
7075
|
const internalObjectProto = {};
|
|
7141
7076
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7142
7077
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7143
|
-
|
|
7144
7078
|
//#endregion
|
|
7145
7079
|
//#region packages/runtime-core/src/componentProps.ts
|
|
7146
7080
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
@@ -7445,7 +7379,6 @@ function isExplicable(type) {
|
|
|
7445
7379
|
function isBoolean(...args) {
|
|
7446
7380
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
7447
7381
|
}
|
|
7448
|
-
|
|
7449
7382
|
//#endregion
|
|
7450
7383
|
//#region packages/runtime-core/src/componentSlots.ts
|
|
7451
7384
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -7514,7 +7447,6 @@ const updateSlots = (instance, children, optimized) => {
|
|
|
7514
7447
|
for (const key in slots) if (!isInternalKey(key) && deletionComparisonTarget[key] == null) delete slots[key];
|
|
7515
7448
|
}
|
|
7516
7449
|
};
|
|
7517
|
-
|
|
7518
7450
|
//#endregion
|
|
7519
7451
|
//#region packages/runtime-core/src/profiling.ts
|
|
7520
7452
|
let supported;
|
|
@@ -7553,7 +7485,6 @@ function isSupported() {
|
|
|
7553
7485
|
} else supported = false;
|
|
7554
7486
|
return supported;
|
|
7555
7487
|
}
|
|
7556
|
-
|
|
7557
7488
|
//#endregion
|
|
7558
7489
|
//#region packages/runtime-core/src/renderer.ts
|
|
7559
7490
|
const MoveType = {
|
|
@@ -7716,10 +7647,19 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7716
7647
|
if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
|
|
7717
7648
|
if (transition) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense);
|
|
7718
7649
|
else hostInsert(el, container, anchor);
|
|
7719
|
-
if ((vnodeHook = props && props.onVnodeMounted) || dirs)
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7650
|
+
if ((vnodeHook = props && props.onVnodeMounted) || dirs) {
|
|
7651
|
+
const isHmr = isHmrUpdating;
|
|
7652
|
+
queuePostRenderEffect(() => {
|
|
7653
|
+
let prev;
|
|
7654
|
+
prev = setHmrUpdating(isHmr);
|
|
7655
|
+
try {
|
|
7656
|
+
vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
7657
|
+
dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted");
|
|
7658
|
+
} finally {
|
|
7659
|
+
setHmrUpdating(prev);
|
|
7660
|
+
}
|
|
7661
|
+
}, void 0, parentSuspense);
|
|
7662
|
+
}
|
|
7723
7663
|
};
|
|
7724
7664
|
const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => {
|
|
7725
7665
|
if (scopeId) hostSetScopeId(el, scopeId);
|
|
@@ -7945,7 +7885,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7945
7885
|
if (isAsyncWrapperVNode && type.__asyncHydrate) type.__asyncHydrate(el, instance, hydrateSubTree);
|
|
7946
7886
|
else hydrateSubTree();
|
|
7947
7887
|
} else {
|
|
7948
|
-
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type);
|
|
7888
|
+
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type, instance.parent ? instance.parent.type : void 0);
|
|
7949
7889
|
startMeasure(instance, `render`);
|
|
7950
7890
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
7951
7891
|
endMeasure(instance, `render`);
|
|
@@ -8202,7 +8142,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8202
8142
|
else hostInsert(el, container, anchor);
|
|
8203
8143
|
};
|
|
8204
8144
|
const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
|
|
8205
|
-
const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex } = vnode;
|
|
8145
|
+
const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex, memo } = vnode;
|
|
8206
8146
|
if (patchFlag === -2) optimized = false;
|
|
8207
8147
|
if (ref != null) {
|
|
8208
8148
|
const prevSub = setActiveSub();
|
|
@@ -8240,9 +8180,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8240
8180
|
}
|
|
8241
8181
|
if (doRemove) remove(vnode);
|
|
8242
8182
|
}
|
|
8243
|
-
|
|
8183
|
+
const shouldInvalidateMemo = memo != null && cacheIndex == null;
|
|
8184
|
+
if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs || shouldInvalidateMemo) queuePostRenderEffect(() => {
|
|
8244
8185
|
vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
8245
8186
|
shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted");
|
|
8187
|
+
if (shouldInvalidateMemo) vnode.el = null;
|
|
8246
8188
|
}, void 0, parentSuspense);
|
|
8247
8189
|
};
|
|
8248
8190
|
const remove = (vnode) => {
|
|
@@ -8467,12 +8409,11 @@ function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
|
8467
8409
|
if (instance) return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
8468
8410
|
return null;
|
|
8469
8411
|
}
|
|
8470
|
-
|
|
8471
8412
|
//#endregion
|
|
8472
8413
|
//#region packages/runtime-core/src/components/Suspense.ts
|
|
8473
8414
|
const isSuspense = (type) => type.__isSuspense;
|
|
8474
8415
|
let suspenseId = 0;
|
|
8475
|
-
const
|
|
8416
|
+
const Suspense = {
|
|
8476
8417
|
name: "Suspense",
|
|
8477
8418
|
__isSuspense: true,
|
|
8478
8419
|
process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) {
|
|
@@ -8490,7 +8431,6 @@ const SuspenseImpl = {
|
|
|
8490
8431
|
hydrate: hydrateSuspense,
|
|
8491
8432
|
normalize: normalizeSuspenseChildren
|
|
8492
8433
|
};
|
|
8493
|
-
const Suspense = SuspenseImpl;
|
|
8494
8434
|
function triggerEvent(vnode, name) {
|
|
8495
8435
|
const eventListener = vnode.props && vnode.props[name];
|
|
8496
8436
|
if (isFunction(eventListener)) eventListener();
|
|
@@ -8599,6 +8539,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
8599
8539
|
pendingId: suspenseId++,
|
|
8600
8540
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
8601
8541
|
activeBranch: null,
|
|
8542
|
+
isFallbackMountPending: false,
|
|
8602
8543
|
pendingBranch: null,
|
|
8603
8544
|
isInFallback: !isHydrating,
|
|
8604
8545
|
isHydrating,
|
|
@@ -8619,13 +8560,14 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
8619
8560
|
if (isInFallback && vnode.ssFallback) vnode.ssFallback.el = null;
|
|
8620
8561
|
}
|
|
8621
8562
|
};
|
|
8622
|
-
if (activeBranch) {
|
|
8563
|
+
if (activeBranch && !suspense.isFallbackMountPending) {
|
|
8623
8564
|
if (parentNode(activeBranch.el) === container) anchor = next(activeBranch);
|
|
8624
8565
|
unmount(activeBranch, parentComponent, suspense, true);
|
|
8625
8566
|
if (!delayEnter && isInFallback && vnode.ssFallback) queuePostRenderEffect(() => vnode.ssFallback.el = null, void 0, suspense);
|
|
8626
8567
|
}
|
|
8627
8568
|
if (!delayEnter) move(pendingBranch, container, anchor, 0, parentComponent);
|
|
8628
8569
|
}
|
|
8570
|
+
suspense.isFallbackMountPending = false;
|
|
8629
8571
|
setActiveBranch(suspense, pendingBranch);
|
|
8630
8572
|
suspense.pendingBranch = null;
|
|
8631
8573
|
suspense.isInFallback = false;
|
|
@@ -8655,12 +8597,16 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
8655
8597
|
triggerEvent(vnode, "onFallback");
|
|
8656
8598
|
const anchor = next(activeBranch);
|
|
8657
8599
|
const mountFallback = () => {
|
|
8600
|
+
suspense.isFallbackMountPending = false;
|
|
8658
8601
|
if (!suspense.isInFallback) return;
|
|
8659
8602
|
patch(null, fallbackVNode, container, anchor, parentComponent, null, namespace, slotScopeIds, optimized);
|
|
8660
8603
|
setActiveBranch(suspense, fallbackVNode);
|
|
8661
8604
|
};
|
|
8662
8605
|
const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in";
|
|
8663
|
-
if (delayEnter)
|
|
8606
|
+
if (delayEnter) {
|
|
8607
|
+
suspense.isFallbackMountPending = true;
|
|
8608
|
+
activeBranch.transition.afterLeave = mountFallback;
|
|
8609
|
+
}
|
|
8664
8610
|
suspense.isInFallback = true;
|
|
8665
8611
|
unmount(activeBranch, parentComponent, null, true);
|
|
8666
8612
|
if (!delayEnter) mountFallback();
|
|
@@ -8751,7 +8697,6 @@ function isVNodeSuspensible(vnode) {
|
|
|
8751
8697
|
const suspensible = vnode.props && vnode.props.suspensible;
|
|
8752
8698
|
return suspensible != null && suspensible !== false;
|
|
8753
8699
|
}
|
|
8754
|
-
|
|
8755
8700
|
//#endregion
|
|
8756
8701
|
//#region packages/runtime-core/src/compat/componentAsync.ts
|
|
8757
8702
|
const normalizedAsyncComponentMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -8777,7 +8722,6 @@ function convertLegacyAsyncComponent(comp) {
|
|
|
8777
8722
|
normalizedAsyncComponentMap.set(comp, converted);
|
|
8778
8723
|
return converted;
|
|
8779
8724
|
}
|
|
8780
|
-
|
|
8781
8725
|
//#endregion
|
|
8782
8726
|
//#region packages/runtime-core/src/compat/component.ts
|
|
8783
8727
|
function convertLegacyComponent(comp, instance) {
|
|
@@ -8793,7 +8737,6 @@ function convertLegacyComponent(comp, instance) {
|
|
|
8793
8737
|
if (isObject(comp) && comp.functional && softAssertCompatEnabled("COMPONENT_FUNCTIONAL", instance, comp)) return convertLegacyFunctionalComponent(comp);
|
|
8794
8738
|
return comp;
|
|
8795
8739
|
}
|
|
8796
|
-
|
|
8797
8740
|
//#endregion
|
|
8798
8741
|
//#region packages/runtime-core/src/vnode.ts
|
|
8799
8742
|
const Fragment = Symbol.for("v-fgt");
|
|
@@ -9108,6 +9051,7 @@ function mergeProps(...args) {
|
|
|
9108
9051
|
const existing = ret[key];
|
|
9109
9052
|
const incoming = toMerge[key];
|
|
9110
9053
|
if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) ret[key] = existing ? [].concat(existing, incoming) : incoming;
|
|
9054
|
+
else if (incoming == null && existing == null && !isModelListener(key)) ret[key] = incoming;
|
|
9111
9055
|
} else if (key !== "") ret[key] = toMerge[key];
|
|
9112
9056
|
}
|
|
9113
9057
|
return ret;
|
|
@@ -9115,7 +9059,6 @@ function mergeProps(...args) {
|
|
|
9115
9059
|
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
9116
9060
|
callWithAsyncErrorHandling(hook, instance, 7, [vnode, prevVNode]);
|
|
9117
9061
|
}
|
|
9118
|
-
|
|
9119
9062
|
//#endregion
|
|
9120
9063
|
//#region packages/runtime-core/src/componentCurrentInstance.ts
|
|
9121
9064
|
/**
|
|
@@ -9132,8 +9075,7 @@ let setInSSRSetupState;
|
|
|
9132
9075
|
/**
|
|
9133
9076
|
* @internal
|
|
9134
9077
|
*/
|
|
9135
|
-
let simpleSetCurrentInstance
|
|
9136
|
-
simpleSetCurrentInstance = (i) => {
|
|
9078
|
+
let simpleSetCurrentInstance = (i) => {
|
|
9137
9079
|
currentInstance = i;
|
|
9138
9080
|
};
|
|
9139
9081
|
setInSSRSetupState = (v) => {
|
|
@@ -9175,7 +9117,6 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
9175
9117
|
value: instance[key]
|
|
9176
9118
|
};
|
|
9177
9119
|
};
|
|
9178
|
-
|
|
9179
9120
|
//#endregion
|
|
9180
9121
|
//#region packages/runtime-core/src/component.ts
|
|
9181
9122
|
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
@@ -9474,13 +9415,11 @@ function formatComponentName(instance, Component, isRoot = false) {
|
|
|
9474
9415
|
function isClassComponent(value) {
|
|
9475
9416
|
return isFunction(value) && "__vccOpts" in value;
|
|
9476
9417
|
}
|
|
9477
|
-
|
|
9478
9418
|
//#endregion
|
|
9479
9419
|
//#region packages/runtime-core/src/apiComputed.ts
|
|
9480
9420
|
const computed = (getterOrOptions, debugOptions) => {
|
|
9481
9421
|
return /* @__PURE__ */ computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
9482
9422
|
};
|
|
9483
|
-
|
|
9484
9423
|
//#endregion
|
|
9485
9424
|
//#region packages/runtime-core/src/h.ts
|
|
9486
9425
|
function h(type, propsOrChildren, children) {
|
|
@@ -9500,7 +9439,6 @@ function h(type, propsOrChildren, children) {
|
|
|
9500
9439
|
setBlockTracking(1);
|
|
9501
9440
|
}
|
|
9502
9441
|
}
|
|
9503
|
-
|
|
9504
9442
|
//#endregion
|
|
9505
9443
|
//#region packages/runtime-core/src/customFormatter.ts
|
|
9506
9444
|
function initCustomFormatter() {
|
|
@@ -9665,7 +9603,6 @@ function initCustomFormatter() {
|
|
|
9665
9603
|
if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
|
|
9666
9604
|
else window.devtoolsFormatters = [formatter];
|
|
9667
9605
|
}
|
|
9668
|
-
|
|
9669
9606
|
//#endregion
|
|
9670
9607
|
//#region packages/runtime-core/src/helpers/withMemo.ts
|
|
9671
9608
|
function withMemo(memo, render, cache, index) {
|
|
@@ -9683,10 +9620,9 @@ function isMemoSame(cached, memo) {
|
|
|
9683
9620
|
if (isBlockTreeEnabled > 0 && currentBlock) currentBlock.push(cached);
|
|
9684
9621
|
return true;
|
|
9685
9622
|
}
|
|
9686
|
-
|
|
9687
9623
|
//#endregion
|
|
9688
9624
|
//#region packages/runtime-core/src/index.ts
|
|
9689
|
-
const version = "3.6.0-beta.
|
|
9625
|
+
const version = "3.6.0-beta.9";
|
|
9690
9626
|
const warn = warn$1;
|
|
9691
9627
|
/**
|
|
9692
9628
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -9704,19 +9640,17 @@ const ssrUtils = null;
|
|
|
9704
9640
|
* @internal only exposed in compat builds
|
|
9705
9641
|
*/
|
|
9706
9642
|
const resolveFilter = resolveFilter$1;
|
|
9707
|
-
|
|
9643
|
+
/**
|
|
9644
|
+
* @internal only exposed in compat builds.
|
|
9645
|
+
*/
|
|
9646
|
+
const compatUtils = {
|
|
9708
9647
|
warnDeprecation: warnDeprecation$1,
|
|
9709
9648
|
createCompatVue: createCompatVue$1,
|
|
9710
9649
|
isCompatEnabled: isCompatEnabled$1,
|
|
9711
9650
|
checkCompatEnabled: checkCompatEnabled$1,
|
|
9712
9651
|
softAssertCompatEnabled
|
|
9713
9652
|
};
|
|
9714
|
-
/**
|
|
9715
|
-
* @internal only exposed in compat builds.
|
|
9716
|
-
*/
|
|
9717
|
-
const compatUtils = _compatUtils;
|
|
9718
9653
|
const DeprecationTypes = DeprecationTypes$1;
|
|
9719
|
-
|
|
9720
9654
|
//#endregion
|
|
9721
9655
|
//#region packages/runtime-dom/src/nodeOps.ts
|
|
9722
9656
|
let policy = void 0;
|
|
@@ -9777,7 +9711,6 @@ const nodeOps = {
|
|
|
9777
9711
|
return [before ? before.nextSibling : parent.firstChild, anchor ? anchor.previousSibling : parent.lastChild];
|
|
9778
9712
|
}
|
|
9779
9713
|
};
|
|
9780
|
-
|
|
9781
9714
|
//#endregion
|
|
9782
9715
|
//#region packages/runtime-dom/src/components/Transition.ts
|
|
9783
9716
|
const TRANSITION$1 = "transition";
|
|
@@ -10035,7 +9968,6 @@ function toMs(s) {
|
|
|
10035
9968
|
function forceReflow(el) {
|
|
10036
9969
|
return (el ? el.ownerDocument : document).body.offsetHeight;
|
|
10037
9970
|
}
|
|
10038
|
-
|
|
10039
9971
|
//#endregion
|
|
10040
9972
|
//#region packages/runtime-dom/src/modules/class.ts
|
|
10041
9973
|
function patchClass(el, value, isSVG) {
|
|
@@ -10045,7 +9977,6 @@ function patchClass(el, value, isSVG) {
|
|
|
10045
9977
|
else if (isSVG) el.setAttribute("class", value);
|
|
10046
9978
|
else el.className = value;
|
|
10047
9979
|
}
|
|
10048
|
-
|
|
10049
9980
|
//#endregion
|
|
10050
9981
|
//#region packages/runtime-dom/src/directives/vShow.ts
|
|
10051
9982
|
const vShowOriginalDisplay = Symbol("_vod");
|
|
@@ -10079,7 +10010,6 @@ function setDisplay(el, value) {
|
|
|
10079
10010
|
el.style.display = value ? el[vShowOriginalDisplay] : "none";
|
|
10080
10011
|
el[vShowHidden] = !value;
|
|
10081
10012
|
}
|
|
10082
|
-
|
|
10083
10013
|
//#endregion
|
|
10084
10014
|
//#region packages/runtime-dom/src/helpers/useCssVars.ts
|
|
10085
10015
|
const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT");
|
|
@@ -10164,7 +10094,6 @@ function setVarsOnNode(el, vars) {
|
|
|
10164
10094
|
style[CSS_VAR_TEXT] = cssText;
|
|
10165
10095
|
}
|
|
10166
10096
|
}
|
|
10167
|
-
|
|
10168
10097
|
//#endregion
|
|
10169
10098
|
//#region packages/runtime-dom/src/modules/style.ts
|
|
10170
10099
|
const displayRE = /(?:^|;)\s*display\s*:/;
|
|
@@ -10229,7 +10158,6 @@ function autoPrefix(style, rawName) {
|
|
|
10229
10158
|
}
|
|
10230
10159
|
return rawName;
|
|
10231
10160
|
}
|
|
10232
|
-
|
|
10233
10161
|
//#endregion
|
|
10234
10162
|
//#region packages/runtime-dom/src/modules/attrs.ts
|
|
10235
10163
|
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
@@ -10257,7 +10185,6 @@ function compatCoerceAttr(el, key, value, instance = null) {
|
|
|
10257
10185
|
}
|
|
10258
10186
|
return false;
|
|
10259
10187
|
}
|
|
10260
|
-
|
|
10261
10188
|
//#endregion
|
|
10262
10189
|
//#region packages/runtime-dom/src/modules/props.ts
|
|
10263
10190
|
function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
@@ -10300,7 +10227,6 @@ function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
|
10300
10227
|
}
|
|
10301
10228
|
needRemove && el.removeAttribute(attrName || key);
|
|
10302
10229
|
}
|
|
10303
|
-
|
|
10304
10230
|
//#endregion
|
|
10305
10231
|
//#region packages/runtime-dom/src/modules/events.ts
|
|
10306
10232
|
function addEventListener(el, event, handler, options) {
|
|
@@ -10364,7 +10290,6 @@ function patchStopImmediatePropagation(e, value) {
|
|
|
10364
10290
|
return value.map((fn) => (e) => !e._stopped && fn && fn(e));
|
|
10365
10291
|
} else return value;
|
|
10366
10292
|
}
|
|
10367
|
-
|
|
10368
10293
|
//#endregion
|
|
10369
10294
|
//#region packages/runtime-dom/src/patchProp.ts
|
|
10370
10295
|
const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|
|
@@ -10376,7 +10301,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) =>
|
|
|
10376
10301
|
} else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
|
|
10377
10302
|
patchDOMProp(el, key, nextValue, parentComponent);
|
|
10378
10303
|
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
10379
|
-
} else if (el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
10304
|
+
} else if (el._isVueCE && (shouldSetAsPropForVueCE(el, key) || el._def.__asyncLoader && (/[A-Z]/.test(key) || !isString(nextValue)))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
10380
10305
|
else {
|
|
10381
10306
|
if (key === "true-value") el._trueValue = nextValue;
|
|
10382
10307
|
else if (key === "false-value") el._falseValue = nextValue;
|
|
@@ -10393,7 +10318,12 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
10393
10318
|
if (isNativeOn(key) && isString(value)) return false;
|
|
10394
10319
|
return key in el;
|
|
10395
10320
|
}
|
|
10396
|
-
|
|
10321
|
+
function shouldSetAsPropForVueCE(el, key) {
|
|
10322
|
+
const props = el._def.props;
|
|
10323
|
+
if (!props) return false;
|
|
10324
|
+
const camelKey = camelize(key);
|
|
10325
|
+
return Array.isArray(props) ? props.some((prop) => camelize(prop) === camelKey) : Object.keys(props).some((prop) => camelize(prop) === camelKey);
|
|
10326
|
+
}
|
|
10397
10327
|
//#endregion
|
|
10398
10328
|
//#region packages/runtime-dom/src/apiCustomElement.ts
|
|
10399
10329
|
const REMOVAL = {};
|
|
@@ -10423,6 +10353,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10423
10353
|
this._resolved = false;
|
|
10424
10354
|
this._numberProps = null;
|
|
10425
10355
|
this._styleChildren = /* @__PURE__ */ new WeakSet();
|
|
10356
|
+
this._styleAnchors = /* @__PURE__ */ new WeakMap();
|
|
10426
10357
|
this._patching = false;
|
|
10427
10358
|
this._dirty = false;
|
|
10428
10359
|
this._ob = null;
|
|
@@ -10441,7 +10372,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10441
10372
|
if (!this.shadowRoot && !this._resolved) this._parseSlots();
|
|
10442
10373
|
this._connected = true;
|
|
10443
10374
|
let parent = this;
|
|
10444
|
-
while (parent = parent && (parent.parentNode || parent.host)) if (parent instanceof VueElementBase) {
|
|
10375
|
+
while (parent = parent && (parent.assignedSlot || parent.parentNode || parent.host)) if (parent instanceof VueElementBase) {
|
|
10445
10376
|
this._parent = parent;
|
|
10446
10377
|
break;
|
|
10447
10378
|
}
|
|
@@ -10534,6 +10465,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10534
10465
|
this._styles.forEach((s) => this._root.removeChild(s));
|
|
10535
10466
|
this._styles.length = 0;
|
|
10536
10467
|
}
|
|
10468
|
+
this._styleAnchors.delete(this._def);
|
|
10537
10469
|
this._applyStyles(newStyles);
|
|
10538
10470
|
if (!this._instance.vapor) this._instance = null;
|
|
10539
10471
|
this._update();
|
|
@@ -10599,18 +10531,26 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10599
10531
|
}
|
|
10600
10532
|
}
|
|
10601
10533
|
}
|
|
10602
|
-
_applyStyles(styles, owner) {
|
|
10534
|
+
_applyStyles(styles, owner, parentComp) {
|
|
10603
10535
|
if (!styles) return;
|
|
10604
10536
|
if (owner) {
|
|
10605
10537
|
if (owner === this._def || this._styleChildren.has(owner)) return;
|
|
10606
10538
|
this._styleChildren.add(owner);
|
|
10607
10539
|
}
|
|
10608
10540
|
const nonce = this._nonce;
|
|
10541
|
+
const root = this.shadowRoot;
|
|
10542
|
+
const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
|
|
10543
|
+
let last = null;
|
|
10609
10544
|
for (let i = styles.length - 1; i >= 0; i--) {
|
|
10610
10545
|
const s = document.createElement("style");
|
|
10611
10546
|
if (nonce) s.setAttribute("nonce", nonce);
|
|
10612
10547
|
s.textContent = styles[i];
|
|
10613
|
-
|
|
10548
|
+
root.insertBefore(s, last || insertionAnchor);
|
|
10549
|
+
last = s;
|
|
10550
|
+
if (i === 0) {
|
|
10551
|
+
if (!parentComp) this._styleAnchors.set(this._def, s);
|
|
10552
|
+
if (owner) this._styleAnchors.set(owner, s);
|
|
10553
|
+
}
|
|
10614
10554
|
if (owner) {
|
|
10615
10555
|
if (owner.__hmrId) {
|
|
10616
10556
|
if (!this._childStyles) this._childStyles = /* @__PURE__ */ new Map();
|
|
@@ -10621,6 +10561,20 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10621
10561
|
} else (this._styles || (this._styles = [])).push(s);
|
|
10622
10562
|
}
|
|
10623
10563
|
}
|
|
10564
|
+
_getStyleAnchor(comp) {
|
|
10565
|
+
if (!comp) return null;
|
|
10566
|
+
const anchor = this._styleAnchors.get(comp);
|
|
10567
|
+
if (anchor && anchor.parentNode === this.shadowRoot) return anchor;
|
|
10568
|
+
if (anchor) this._styleAnchors.delete(comp);
|
|
10569
|
+
return null;
|
|
10570
|
+
}
|
|
10571
|
+
_getRootStyleInsertionAnchor(root) {
|
|
10572
|
+
for (let i = 0; i < root.childNodes.length; i++) {
|
|
10573
|
+
const node = root.childNodes[i];
|
|
10574
|
+
if (!(node instanceof HTMLStyleElement)) return node;
|
|
10575
|
+
}
|
|
10576
|
+
return null;
|
|
10577
|
+
}
|
|
10624
10578
|
/**
|
|
10625
10579
|
* Only called when shadowRoot is false
|
|
10626
10580
|
*/
|
|
@@ -10683,8 +10637,8 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10683
10637
|
/**
|
|
10684
10638
|
* @internal
|
|
10685
10639
|
*/
|
|
10686
|
-
_injectChildStyle(comp) {
|
|
10687
|
-
this._applyStyles(comp.styles, comp);
|
|
10640
|
+
_injectChildStyle(comp, parentComp) {
|
|
10641
|
+
this._applyStyles(comp.styles, comp, parentComp);
|
|
10688
10642
|
}
|
|
10689
10643
|
/**
|
|
10690
10644
|
* @internal
|
|
@@ -10711,6 +10665,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10711
10665
|
*/
|
|
10712
10666
|
_removeChildStyle(comp) {
|
|
10713
10667
|
this._styleChildren.delete(comp);
|
|
10668
|
+
this._styleAnchors.delete(comp);
|
|
10714
10669
|
if (this._childStyles && comp.__hmrId) {
|
|
10715
10670
|
const oldStyles = this._childStyles.get(comp.__hmrId);
|
|
10716
10671
|
if (oldStyles) {
|
|
@@ -10779,7 +10734,6 @@ function useShadowRoot() {
|
|
|
10779
10734
|
const el = useHost("useShadowRoot");
|
|
10780
10735
|
return el && el.shadowRoot;
|
|
10781
10736
|
}
|
|
10782
|
-
|
|
10783
10737
|
//#endregion
|
|
10784
10738
|
//#region packages/runtime-dom/src/helpers/useCssModule.ts
|
|
10785
10739
|
function useCssModule(name = "$style") {
|
|
@@ -10802,7 +10756,6 @@ function useCssModule(name = "$style") {
|
|
|
10802
10756
|
return mod;
|
|
10803
10757
|
}
|
|
10804
10758
|
}
|
|
10805
|
-
|
|
10806
10759
|
//#endregion
|
|
10807
10760
|
//#region packages/runtime-dom/src/components/TransitionGroup.ts
|
|
10808
10761
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -10818,7 +10771,7 @@ const decorate = (t) => {
|
|
|
10818
10771
|
t.__isBuiltIn = true;
|
|
10819
10772
|
return t;
|
|
10820
10773
|
};
|
|
10821
|
-
const
|
|
10774
|
+
const TransitionGroup = /* @__PURE__ */ decorate({
|
|
10822
10775
|
name: "TransitionGroup",
|
|
10823
10776
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
10824
10777
|
tag: String,
|
|
@@ -10870,7 +10823,6 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
10870
10823
|
};
|
|
10871
10824
|
}
|
|
10872
10825
|
});
|
|
10873
|
-
const TransitionGroup = TransitionGroupImpl;
|
|
10874
10826
|
function callPendingCbs(el) {
|
|
10875
10827
|
if (el[moveCbKey]) el[moveCbKey]();
|
|
10876
10828
|
if (el[enterCbKey]) el[enterCbKey]();
|
|
@@ -10936,7 +10888,6 @@ const handleMovedChildren = (el, moveClass) => {
|
|
|
10936
10888
|
};
|
|
10937
10889
|
el.addEventListener("transitionend", cb);
|
|
10938
10890
|
};
|
|
10939
|
-
|
|
10940
10891
|
//#endregion
|
|
10941
10892
|
//#region packages/runtime-dom/src/directives/vModel.ts
|
|
10942
10893
|
const getModelAssigner = (vnode) => {
|
|
@@ -10997,7 +10948,8 @@ const vModelTextUpdate = (el, oldValue, value, trim, number, lazy) => {
|
|
|
10997
10948
|
const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? looseToNumber(el.value) : el.value;
|
|
10998
10949
|
const newValue = value == null ? "" : value;
|
|
10999
10950
|
if (elValue === newValue) return;
|
|
11000
|
-
|
|
10951
|
+
const rootNode = el.getRootNode();
|
|
10952
|
+
if ((rootNode instanceof Document || rootNode instanceof ShadowRoot) && rootNode.activeElement === el && el.type !== "range") {
|
|
11001
10953
|
if (lazy && value === oldValue) return;
|
|
11002
10954
|
if (trim && el.value.trim() === newValue) return;
|
|
11003
10955
|
}
|
|
@@ -11168,7 +11120,6 @@ function callModelHook(el, binding, vnode, prevVNode, hook) {
|
|
|
11168
11120
|
const fn = resolveDynamicModel(el.tagName, vnode.props && vnode.props.type)[hook];
|
|
11169
11121
|
fn && fn(el, binding, vnode, prevVNode);
|
|
11170
11122
|
}
|
|
11171
|
-
|
|
11172
11123
|
//#endregion
|
|
11173
11124
|
//#region packages/runtime-dom/src/directives/vOn.ts
|
|
11174
11125
|
const systemModifiers = [
|
|
@@ -11243,7 +11194,6 @@ const withKeys = (fn, modifiers) => {
|
|
|
11243
11194
|
}
|
|
11244
11195
|
}));
|
|
11245
11196
|
};
|
|
11246
|
-
|
|
11247
11197
|
//#endregion
|
|
11248
11198
|
//#region packages/runtime-dom/src/index.ts
|
|
11249
11199
|
var src_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -11378,7 +11328,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
11378
11328
|
shallowReadonly: () => shallowReadonly,
|
|
11379
11329
|
shallowRef: () => shallowRef,
|
|
11380
11330
|
ssrContextKey: () => ssrContextKey,
|
|
11381
|
-
ssrUtils: () =>
|
|
11331
|
+
ssrUtils: () => null,
|
|
11382
11332
|
stop: () => stop,
|
|
11383
11333
|
toDisplayString: () => toDisplayString,
|
|
11384
11334
|
toHandlerKey: () => toHandlerKey,
|
|
@@ -11531,14 +11481,12 @@ function normalizeContainer(container) {
|
|
|
11531
11481
|
* @internal
|
|
11532
11482
|
*/
|
|
11533
11483
|
const initDirectivesForSSR = NOOP;
|
|
11534
|
-
|
|
11535
11484
|
//#endregion
|
|
11536
11485
|
//#region packages/vue-compat/src/dev.ts
|
|
11537
11486
|
function initDev() {
|
|
11538
11487
|
console.info("You are running a development build of Vue.\nMake sure to use the production build (*.prod.js) when deploying for production.");
|
|
11539
11488
|
initCustomFormatter();
|
|
11540
11489
|
}
|
|
11541
|
-
|
|
11542
11490
|
//#endregion
|
|
11543
11491
|
//#region packages/vue-compat/src/createCompatVue.ts
|
|
11544
11492
|
initDev();
|
|
@@ -11558,7 +11506,6 @@ function createCompatVue() {
|
|
|
11558
11506
|
extend(Vue, src_exports);
|
|
11559
11507
|
return Vue;
|
|
11560
11508
|
}
|
|
11561
|
-
|
|
11562
11509
|
//#endregion
|
|
11563
11510
|
//#region packages/compiler-core/src/runtimeHelpers.ts
|
|
11564
11511
|
const FRAGMENT = Symbol(`Fragment`);
|
|
@@ -11653,7 +11600,6 @@ function registerRuntimeHelpers(helpers) {
|
|
|
11653
11600
|
helperNameMap[s] = helpers[s];
|
|
11654
11601
|
});
|
|
11655
11602
|
}
|
|
11656
|
-
|
|
11657
11603
|
//#endregion
|
|
11658
11604
|
//#region packages/compiler-core/src/ast.ts
|
|
11659
11605
|
const locStub = {
|
|
@@ -11805,7 +11751,6 @@ function convertToBlock(node, { helper, removeHelper, inSSR }) {
|
|
|
11805
11751
|
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
11806
11752
|
}
|
|
11807
11753
|
}
|
|
11808
|
-
|
|
11809
11754
|
//#endregion
|
|
11810
11755
|
//#region packages/compiler-core/src/tokenizer.ts
|
|
11811
11756
|
const defaultDelimitersOpen = new Uint8Array([123, 123]);
|
|
@@ -12514,7 +12459,6 @@ var Tokenizer = class {
|
|
|
12514
12459
|
}
|
|
12515
12460
|
emitCodePoint(cp, consumed) {}
|
|
12516
12461
|
};
|
|
12517
|
-
|
|
12518
12462
|
//#endregion
|
|
12519
12463
|
//#region packages/compiler-core/src/compat/compatConfig.ts
|
|
12520
12464
|
const deprecationData = {
|
|
@@ -12572,7 +12516,6 @@ function warnDeprecation(key, context, loc, ...args) {
|
|
|
12572
12516
|
if (loc) err.loc = loc;
|
|
12573
12517
|
context.onWarn(err);
|
|
12574
12518
|
}
|
|
12575
|
-
|
|
12576
12519
|
//#endregion
|
|
12577
12520
|
//#region packages/compiler-core/src/errors.ts
|
|
12578
12521
|
function defaultOnError(error) {
|
|
@@ -12645,7 +12588,6 @@ const errorMessages = {
|
|
|
12645
12588
|
[51]: `"scopeId" option is only supported in module mode.`,
|
|
12646
12589
|
[54]: ``
|
|
12647
12590
|
};
|
|
12648
|
-
|
|
12649
12591
|
//#endregion
|
|
12650
12592
|
//#region packages/compiler-core/src/utils.ts
|
|
12651
12593
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -12845,7 +12787,6 @@ function isWhitespaceText(node) {
|
|
|
12845
12787
|
function isCommentOrWhitespace(node) {
|
|
12846
12788
|
return node.type === 3 || isWhitespaceText(node);
|
|
12847
12789
|
}
|
|
12848
|
-
|
|
12849
12790
|
//#endregion
|
|
12850
12791
|
//#region packages/compiler-core/src/parser.ts
|
|
12851
12792
|
const defaultParserOptions = {
|
|
@@ -13378,7 +13319,6 @@ function baseParse(input, options) {
|
|
|
13378
13319
|
currentRoot = null;
|
|
13379
13320
|
return root;
|
|
13380
13321
|
}
|
|
13381
|
-
|
|
13382
13322
|
//#endregion
|
|
13383
13323
|
//#region packages/compiler-core/src/transforms/cacheStatic.ts
|
|
13384
13324
|
function cacheStatic(root, context) {
|
|
@@ -13574,7 +13514,6 @@ function getNodeProps(node) {
|
|
|
13574
13514
|
const codegenNode = node.codegenNode;
|
|
13575
13515
|
if (codegenNode.type === 13) return codegenNode.props;
|
|
13576
13516
|
}
|
|
13577
|
-
|
|
13578
13517
|
//#endregion
|
|
13579
13518
|
//#region packages/compiler-core/src/transform.ts
|
|
13580
13519
|
function getSelfName(filename) {
|
|
@@ -13782,7 +13721,6 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
13782
13721
|
}
|
|
13783
13722
|
};
|
|
13784
13723
|
}
|
|
13785
|
-
|
|
13786
13724
|
//#endregion
|
|
13787
13725
|
//#region packages/compiler-core/src/codegen.ts
|
|
13788
13726
|
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
@@ -14207,7 +14145,6 @@ function genCacheExpression(node, context) {
|
|
|
14207
14145
|
push(`)`);
|
|
14208
14146
|
if (needArraySpread) push(`)]`);
|
|
14209
14147
|
}
|
|
14210
|
-
|
|
14211
14148
|
//#endregion
|
|
14212
14149
|
//#region packages/compiler-core/src/validateExpression.ts
|
|
14213
14150
|
const prohibitedKeywordRE = new RegExp("\\b" + "arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b") + "\\b");
|
|
@@ -14229,7 +14166,6 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
14229
14166
|
context.onError(createCompilerError(46, node.loc, void 0, message));
|
|
14230
14167
|
}
|
|
14231
14168
|
}
|
|
14232
|
-
|
|
14233
14169
|
//#endregion
|
|
14234
14170
|
//#region packages/compiler-core/src/transforms/transformExpression.ts
|
|
14235
14171
|
const transformExpression = (node, context) => {
|
|
@@ -14251,7 +14187,6 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
14251
14187
|
validateBrowserExpression(node, context, asParams, asRawStatements);
|
|
14252
14188
|
return node;
|
|
14253
14189
|
}
|
|
14254
|
-
|
|
14255
14190
|
//#endregion
|
|
14256
14191
|
//#region packages/compiler-core/src/transforms/vIf.ts
|
|
14257
14192
|
const transformIf = createStructuralDirectiveTransform(/^(?:if|else|else-if)$/, (node, dir, context) => {
|
|
@@ -14374,7 +14309,6 @@ function getParentCondition(node) {
|
|
|
14374
14309
|
else return node;
|
|
14375
14310
|
else if (node.type === 20) node = node.value;
|
|
14376
14311
|
}
|
|
14377
|
-
|
|
14378
14312
|
//#endregion
|
|
14379
14313
|
//#region packages/compiler-core/src/transforms/vFor.ts
|
|
14380
14314
|
const transformFor = createStructuralDirectiveTransform("for", (node, dir, context) => {
|
|
@@ -14431,7 +14365,7 @@ const transformFor = createStructuralDirectiveTransform("for", (node, dir, conte
|
|
|
14431
14365
|
`)`
|
|
14432
14366
|
]),
|
|
14433
14367
|
createCompoundExpression([
|
|
14434
|
-
`if (_cached`,
|
|
14368
|
+
`if (_cached && _cached.el`,
|
|
14435
14369
|
...keyExp ? [` && _cached.key === `, keyExp] : [],
|
|
14436
14370
|
` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
|
|
14437
14371
|
]),
|
|
@@ -14497,7 +14431,6 @@ function createParamsList(args) {
|
|
|
14497
14431
|
while (i--) if (args[i]) break;
|
|
14498
14432
|
return args.slice(0, i + 1).map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));
|
|
14499
14433
|
}
|
|
14500
|
-
|
|
14501
14434
|
//#endregion
|
|
14502
14435
|
//#region packages/compiler-core/src/transforms/vSlot.ts
|
|
14503
14436
|
const defaultFallback = createSimpleExpression(`undefined`, false);
|
|
@@ -14628,7 +14561,6 @@ function hasForwardedSlots(children) {
|
|
|
14628
14561
|
}
|
|
14629
14562
|
return false;
|
|
14630
14563
|
}
|
|
14631
|
-
|
|
14632
14564
|
//#endregion
|
|
14633
14565
|
//#region packages/compiler-core/src/transforms/transformElement.ts
|
|
14634
14566
|
const directiveImportMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -14921,7 +14853,6 @@ function stringifyDynamicPropNames(props) {
|
|
|
14921
14853
|
function isComponentTag(tag) {
|
|
14922
14854
|
return tag === "component" || tag === "Component";
|
|
14923
14855
|
}
|
|
14924
|
-
|
|
14925
14856
|
//#endregion
|
|
14926
14857
|
//#region packages/compiler-core/src/transforms/transformSlotOutlet.ts
|
|
14927
14858
|
const transformSlotOutlet = (node, context) => {
|
|
@@ -14979,7 +14910,6 @@ function processSlotOutlet(node, context) {
|
|
|
14979
14910
|
slotProps
|
|
14980
14911
|
};
|
|
14981
14912
|
}
|
|
14982
|
-
|
|
14983
14913
|
//#endregion
|
|
14984
14914
|
//#region packages/compiler-core/src/transforms/vOn.ts
|
|
14985
14915
|
const transformOn$1 = (dir, node, context, augmentor) => {
|
|
@@ -15021,7 +14951,6 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
15021
14951
|
ret.props.forEach((p) => p.key.isHandlerKey = true);
|
|
15022
14952
|
return ret;
|
|
15023
14953
|
};
|
|
15024
|
-
|
|
15025
14954
|
//#endregion
|
|
15026
14955
|
//#region packages/compiler-core/src/transforms/vBind.ts
|
|
15027
14956
|
const transformBind = (dir, _node, context) => {
|
|
@@ -15053,7 +14982,6 @@ const injectPrefix = (arg, prefix) => {
|
|
|
15053
14982
|
arg.children.push(`)`);
|
|
15054
14983
|
}
|
|
15055
14984
|
};
|
|
15056
|
-
|
|
15057
14985
|
//#endregion
|
|
15058
14986
|
//#region packages/compiler-core/src/transforms/transformText.ts
|
|
15059
14987
|
const transformText = (node, context) => {
|
|
@@ -15096,7 +15024,6 @@ const transformText = (node, context) => {
|
|
|
15096
15024
|
}
|
|
15097
15025
|
};
|
|
15098
15026
|
};
|
|
15099
|
-
|
|
15100
15027
|
//#endregion
|
|
15101
15028
|
//#region packages/compiler-core/src/transforms/vOnce.ts
|
|
15102
15029
|
const seen$1 = /* @__PURE__ */ new WeakSet();
|
|
@@ -15113,7 +15040,6 @@ const transformOnce = (node, context) => {
|
|
|
15113
15040
|
};
|
|
15114
15041
|
}
|
|
15115
15042
|
};
|
|
15116
|
-
|
|
15117
15043
|
//#endregion
|
|
15118
15044
|
//#region packages/compiler-core/src/transforms/vModel.ts
|
|
15119
15045
|
const transformModel$1 = (dir, node, context) => {
|
|
@@ -15156,7 +15082,6 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
15156
15082
|
function createTransformProps(props = []) {
|
|
15157
15083
|
return { props };
|
|
15158
15084
|
}
|
|
15159
|
-
|
|
15160
15085
|
//#endregion
|
|
15161
15086
|
//#region packages/compiler-core/src/compat/transformFilter.ts
|
|
15162
15087
|
const validDivisionCharRE = /[\w).+\-_$\]]/;
|
|
@@ -15270,7 +15195,6 @@ function wrapFilter(exp, filter, context) {
|
|
|
15270
15195
|
return `${toValidAssetId(name, "filter")}(${exp}${args !== ")" ? "," + args : args}`;
|
|
15271
15196
|
}
|
|
15272
15197
|
}
|
|
15273
|
-
|
|
15274
15198
|
//#endregion
|
|
15275
15199
|
//#region packages/compiler-core/src/transforms/vMemo.ts
|
|
15276
15200
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -15294,7 +15218,6 @@ const transformMemo = (node, context) => {
|
|
|
15294
15218
|
};
|
|
15295
15219
|
}
|
|
15296
15220
|
};
|
|
15297
|
-
|
|
15298
15221
|
//#endregion
|
|
15299
15222
|
//#region packages/compiler-core/src/transforms/transformVBindShorthand.ts
|
|
15300
15223
|
const transformVBindShorthand = (node, context) => {
|
|
@@ -15311,7 +15234,6 @@ const transformVBindShorthand = (node, context) => {
|
|
|
15311
15234
|
}
|
|
15312
15235
|
}
|
|
15313
15236
|
};
|
|
15314
|
-
|
|
15315
15237
|
//#endregion
|
|
15316
15238
|
//#region packages/compiler-core/src/compile.ts
|
|
15317
15239
|
function getBaseTransformPreset(prefixIdentifiers) {
|
|
@@ -15351,11 +15273,9 @@ function baseCompile(source, options = {}) {
|
|
|
15351
15273
|
}));
|
|
15352
15274
|
return generate(ast, resolvedOptions);
|
|
15353
15275
|
}
|
|
15354
|
-
|
|
15355
15276
|
//#endregion
|
|
15356
15277
|
//#region packages/compiler-core/src/transforms/noopDirectiveTransform.ts
|
|
15357
15278
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
15358
|
-
|
|
15359
15279
|
//#endregion
|
|
15360
15280
|
//#region packages/compiler-dom/src/runtimeHelpers.ts
|
|
15361
15281
|
const V_MODEL_RADIO = Symbol(`vModelRadio`);
|
|
@@ -15380,7 +15300,6 @@ registerRuntimeHelpers({
|
|
|
15380
15300
|
[TRANSITION]: `Transition`,
|
|
15381
15301
|
[TRANSITION_GROUP]: `TransitionGroup`
|
|
15382
15302
|
});
|
|
15383
|
-
|
|
15384
15303
|
//#endregion
|
|
15385
15304
|
//#region packages/compiler-dom/src/decodeHtmlBrowser.ts
|
|
15386
15305
|
let decoder;
|
|
@@ -15394,7 +15313,6 @@ function decodeHtmlBrowser(raw, asAttr = false) {
|
|
|
15394
15313
|
return decoder.textContent;
|
|
15395
15314
|
}
|
|
15396
15315
|
}
|
|
15397
|
-
|
|
15398
15316
|
//#endregion
|
|
15399
15317
|
//#region packages/compiler-dom/src/parserOptions.ts
|
|
15400
15318
|
const parserOptions = {
|
|
@@ -15425,7 +15343,6 @@ const parserOptions = {
|
|
|
15425
15343
|
return ns;
|
|
15426
15344
|
}
|
|
15427
15345
|
};
|
|
15428
|
-
|
|
15429
15346
|
//#endregion
|
|
15430
15347
|
//#region packages/compiler-dom/src/transforms/transformStyle.ts
|
|
15431
15348
|
const transformStyle = (node) => {
|
|
@@ -15444,7 +15361,6 @@ const parseInlineCSS = (cssText, loc) => {
|
|
|
15444
15361
|
const normalized = parseStringStyle(cssText);
|
|
15445
15362
|
return createSimpleExpression(JSON.stringify(normalized), false, loc, 3);
|
|
15446
15363
|
};
|
|
15447
|
-
|
|
15448
15364
|
//#endregion
|
|
15449
15365
|
//#region packages/compiler-dom/src/errors.ts
|
|
15450
15366
|
function createDOMCompilerError(code, loc) {
|
|
@@ -15464,7 +15380,6 @@ const DOMErrorMessages = {
|
|
|
15464
15380
|
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
15465
15381
|
[65]: ``
|
|
15466
15382
|
};
|
|
15467
|
-
|
|
15468
15383
|
//#endregion
|
|
15469
15384
|
//#region packages/compiler-dom/src/transforms/vHtml.ts
|
|
15470
15385
|
const transformVHtml = (dir, node, context) => {
|
|
@@ -15476,7 +15391,6 @@ const transformVHtml = (dir, node, context) => {
|
|
|
15476
15391
|
}
|
|
15477
15392
|
return { props: [createObjectProperty(createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression("", true))] };
|
|
15478
15393
|
};
|
|
15479
|
-
|
|
15480
15394
|
//#endregion
|
|
15481
15395
|
//#region packages/compiler-dom/src/transforms/vText.ts
|
|
15482
15396
|
const transformVText = (dir, node, context) => {
|
|
@@ -15488,7 +15402,6 @@ const transformVText = (dir, node, context) => {
|
|
|
15488
15402
|
}
|
|
15489
15403
|
return { props: [createObjectProperty(createSimpleExpression(`textContent`, true), exp ? getConstantType(exp, context) > 0 ? exp : createCallExpression(context.helperString(TO_DISPLAY_STRING), [exp], loc) : createSimpleExpression("", true))] };
|
|
15490
15404
|
};
|
|
15491
|
-
|
|
15492
15405
|
//#endregion
|
|
15493
15406
|
//#region packages/compiler-dom/src/transforms/vModel.ts
|
|
15494
15407
|
const transformModel = (dir, node, context) => {
|
|
@@ -15532,7 +15445,6 @@ const transformModel = (dir, node, context) => {
|
|
|
15532
15445
|
baseResult.props = baseResult.props.filter((p) => !(p.key.type === 4 && p.key.content === "modelValue"));
|
|
15533
15446
|
return baseResult;
|
|
15534
15447
|
};
|
|
15535
|
-
|
|
15536
15448
|
//#endregion
|
|
15537
15449
|
//#region packages/compiler-dom/src/transforms/vOn.ts
|
|
15538
15450
|
const isEventOptionModifier = /* @__PURE__ */ makeMap(`passive,once,capture`);
|
|
@@ -15595,7 +15507,6 @@ const transformOn = (dir, node, context) => {
|
|
|
15595
15507
|
return { props: [createObjectProperty(key, handlerExp)] };
|
|
15596
15508
|
});
|
|
15597
15509
|
};
|
|
15598
|
-
|
|
15599
15510
|
//#endregion
|
|
15600
15511
|
//#region packages/compiler-dom/src/transforms/vShow.ts
|
|
15601
15512
|
const transformShow = (dir, node, context) => {
|
|
@@ -15606,7 +15517,6 @@ const transformShow = (dir, node, context) => {
|
|
|
15606
15517
|
needRuntime: context.helper(V_SHOW)
|
|
15607
15518
|
};
|
|
15608
15519
|
};
|
|
15609
|
-
|
|
15610
15520
|
//#endregion
|
|
15611
15521
|
//#region packages/compiler-dom/src/transforms/Transition.ts
|
|
15612
15522
|
const transformTransition = (node, context) => {
|
|
@@ -15639,7 +15549,6 @@ function defaultHasMultipleChildren(node) {
|
|
|
15639
15549
|
const child = children[0];
|
|
15640
15550
|
return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(defaultHasMultipleChildren);
|
|
15641
15551
|
}
|
|
15642
|
-
|
|
15643
15552
|
//#endregion
|
|
15644
15553
|
//#region packages/compiler-dom/src/transforms/ignoreSideEffectTags.ts
|
|
15645
15554
|
const ignoreSideEffectTags = (node, context) => {
|
|
@@ -15648,7 +15557,6 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
15648
15557
|
context.removeNode();
|
|
15649
15558
|
}
|
|
15650
15559
|
};
|
|
15651
|
-
|
|
15652
15560
|
//#endregion
|
|
15653
15561
|
//#region packages/compiler-dom/src/htmlNesting.ts
|
|
15654
15562
|
/**
|
|
@@ -15839,7 +15747,6 @@ const knownInvalidParents = {
|
|
|
15839
15747
|
h5: headings,
|
|
15840
15748
|
h6: headings
|
|
15841
15749
|
};
|
|
15842
|
-
|
|
15843
15750
|
//#endregion
|
|
15844
15751
|
//#region packages/compiler-dom/src/transforms/validateHtmlNesting.ts
|
|
15845
15752
|
const validateHtmlNesting = (node, context) => {
|
|
@@ -15849,7 +15756,6 @@ const validateHtmlNesting = (node, context) => {
|
|
|
15849
15756
|
context.onWarn(error);
|
|
15850
15757
|
}
|
|
15851
15758
|
};
|
|
15852
|
-
|
|
15853
15759
|
//#endregion
|
|
15854
15760
|
//#region packages/compiler-dom/src/index.ts
|
|
15855
15761
|
const DOMNodeTransforms = [transformStyle, ...[transformTransition, validateHtmlNesting]];
|
|
@@ -15872,7 +15778,6 @@ function compile(src, options = {}) {
|
|
|
15872
15778
|
transformHoist: null
|
|
15873
15779
|
}));
|
|
15874
15780
|
}
|
|
15875
|
-
|
|
15876
15781
|
//#endregion
|
|
15877
15782
|
//#region packages/vue-compat/src/index.ts
|
|
15878
15783
|
const compileCache = Object.create(null);
|
|
@@ -15909,11 +15814,9 @@ function compileToFunction(template, options) {
|
|
|
15909
15814
|
registerRuntimeCompiler(compileToFunction);
|
|
15910
15815
|
const Vue = createCompatVue();
|
|
15911
15816
|
Vue.compile = compileToFunction;
|
|
15912
|
-
|
|
15913
15817
|
//#endregion
|
|
15914
15818
|
//#region packages/vue-compat/src/esm-index.ts
|
|
15915
15819
|
var esm_index_default = Vue;
|
|
15916
15820
|
const configureCompat = Vue.configureCompat;
|
|
15917
|
-
|
|
15918
15821
|
//#endregion
|
|
15919
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, esm_index_default as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setIsHydratingEnabled, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
|
15822
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, esm_index_default as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setIsHydratingEnabled, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|