@vue/compat 3.6.0-beta.7 → 3.6.0-beta.8
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 +20219 -20
- package/dist/vue.cjs.js +124 -254
- package/dist/vue.cjs.prod.js +114 -250
- package/dist/vue.esm-browser.js +121 -247
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +125 -242
- package/dist/vue.global.js +441 -573
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +121 -247
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +125 -242
- package/dist/vue.runtime.global.js +441 -573
- package/dist/vue.runtime.global.prod.js +4 -4
- package/package.json +3 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-beta.
|
|
2
|
+
* @vue/compat v3.6.0-beta.8
|
|
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 = !!(process.env.NODE_ENV !== "production") ? 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 `!!(process.env.NODE_ENV !== 'production')` 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
|
/**
|
|
@@ -501,7 +480,6 @@ function normalizeCssVarValue(value) {
|
|
|
501
480
|
}
|
|
502
481
|
return String(value);
|
|
503
482
|
}
|
|
504
|
-
|
|
505
483
|
//#endregion
|
|
506
484
|
//#region packages/reactivity/src/debug.ts
|
|
507
485
|
const triggerEventInfos = [];
|
|
@@ -540,31 +518,11 @@ function setupFlagsHandler(target) {
|
|
|
540
518
|
}
|
|
541
519
|
});
|
|
542
520
|
}
|
|
543
|
-
|
|
544
521
|
//#endregion
|
|
545
522
|
//#region packages/reactivity/src/warning.ts
|
|
546
523
|
function warn$2(msg, ...args) {
|
|
547
524
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
548
525
|
}
|
|
549
|
-
|
|
550
|
-
//#endregion
|
|
551
|
-
//#region packages/reactivity/src/system.ts
|
|
552
|
-
const ReactiveFlags = {
|
|
553
|
-
"None": 0,
|
|
554
|
-
"0": "None",
|
|
555
|
-
"Mutable": 1,
|
|
556
|
-
"1": "Mutable",
|
|
557
|
-
"Watching": 2,
|
|
558
|
-
"2": "Watching",
|
|
559
|
-
"RecursedCheck": 4,
|
|
560
|
-
"4": "RecursedCheck",
|
|
561
|
-
"Recursed": 8,
|
|
562
|
-
"8": "Recursed",
|
|
563
|
-
"Dirty": 16,
|
|
564
|
-
"16": "Dirty",
|
|
565
|
-
"Pending": 32,
|
|
566
|
-
"32": "Pending"
|
|
567
|
-
};
|
|
568
526
|
const notifyBuffer = [];
|
|
569
527
|
let batchDepth = 0;
|
|
570
528
|
let activeSub = void 0;
|
|
@@ -772,7 +730,6 @@ function isValidLink(checkLink, sub) {
|
|
|
772
730
|
}
|
|
773
731
|
return false;
|
|
774
732
|
}
|
|
775
|
-
|
|
776
733
|
//#endregion
|
|
777
734
|
//#region packages/reactivity/src/dep.ts
|
|
778
735
|
var Dep = class {
|
|
@@ -883,7 +840,6 @@ function getDepFromReactive(object, key) {
|
|
|
883
840
|
const depMap = targetMap.get(object);
|
|
884
841
|
return depMap && depMap.get(key);
|
|
885
842
|
}
|
|
886
|
-
|
|
887
843
|
//#endregion
|
|
888
844
|
//#region packages/reactivity/src/arrayInstrumentations.ts
|
|
889
845
|
/**
|
|
@@ -1031,16 +987,25 @@ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
|
1031
987
|
}
|
|
1032
988
|
function reduce(self, method, fn, args) {
|
|
1033
989
|
const arr = shallowReadArray(self);
|
|
990
|
+
const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
|
|
1034
991
|
let wrappedFn = fn;
|
|
992
|
+
let wrapInitialAccumulator = false;
|
|
1035
993
|
if (arr !== self) {
|
|
1036
|
-
if (
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
994
|
+
if (needsWrap) {
|
|
995
|
+
wrapInitialAccumulator = args.length === 0;
|
|
996
|
+
wrappedFn = function(acc, item, index) {
|
|
997
|
+
if (wrapInitialAccumulator) {
|
|
998
|
+
wrapInitialAccumulator = false;
|
|
999
|
+
acc = toWrapped(self, acc);
|
|
1000
|
+
}
|
|
1001
|
+
return fn.call(this, acc, toWrapped(self, item), index, self);
|
|
1002
|
+
};
|
|
1003
|
+
} else if (fn.length > 3) wrappedFn = function(acc, item, index) {
|
|
1040
1004
|
return fn.call(this, acc, item, index, self);
|
|
1041
1005
|
};
|
|
1042
1006
|
}
|
|
1043
|
-
|
|
1007
|
+
const result = arr[method](wrappedFn, ...args);
|
|
1008
|
+
return wrapInitialAccumulator ? toWrapped(self, result) : result;
|
|
1044
1009
|
}
|
|
1045
1010
|
function searchProxy(self, method, args) {
|
|
1046
1011
|
const arr = /* @__PURE__ */ toRaw(self);
|
|
@@ -1060,7 +1025,6 @@ function noTracking(self, method, args = []) {
|
|
|
1060
1025
|
endBatch();
|
|
1061
1026
|
return res;
|
|
1062
1027
|
}
|
|
1063
|
-
|
|
1064
1028
|
//#endregion
|
|
1065
1029
|
//#region packages/reactivity/src/baseHandlers.ts
|
|
1066
1030
|
const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
@@ -1169,7 +1133,6 @@ const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
|
|
|
1169
1133
|
const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
|
|
1170
1134
|
const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
|
|
1171
1135
|
const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
|
|
1172
|
-
|
|
1173
1136
|
//#endregion
|
|
1174
1137
|
//#region packages/reactivity/src/collectionHandlers.ts
|
|
1175
1138
|
const toShallow = (value) => value;
|
|
@@ -1254,11 +1217,13 @@ function createInstrumentations(readonly, shallow) {
|
|
|
1254
1217
|
clear: createReadonlyMethod("clear")
|
|
1255
1218
|
} : {
|
|
1256
1219
|
add(value) {
|
|
1257
|
-
if (!shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) value = /* @__PURE__ */ toRaw(value);
|
|
1258
1220
|
const target = /* @__PURE__ */ toRaw(this);
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1221
|
+
const proto = getProto(target);
|
|
1222
|
+
const rawValue = /* @__PURE__ */ toRaw(value);
|
|
1223
|
+
const valueToAdd = !shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value) ? rawValue : value;
|
|
1224
|
+
if (!(proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue))) {
|
|
1225
|
+
target.add(valueToAdd);
|
|
1226
|
+
trigger(target, "add", valueToAdd, valueToAdd);
|
|
1262
1227
|
}
|
|
1263
1228
|
return this;
|
|
1264
1229
|
},
|
|
@@ -1329,7 +1294,6 @@ function checkIdentityKeys(target, has, key) {
|
|
|
1329
1294
|
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.`);
|
|
1330
1295
|
}
|
|
1331
1296
|
}
|
|
1332
|
-
|
|
1333
1297
|
//#endregion
|
|
1334
1298
|
//#region packages/reactivity/src/reactive.ts
|
|
1335
1299
|
const reactiveMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -1593,7 +1557,6 @@ const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value)
|
|
|
1593
1557
|
* @param value - The value for which a readonly proxy shall be created.
|
|
1594
1558
|
*/
|
|
1595
1559
|
const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1596
|
-
|
|
1597
1560
|
//#endregion
|
|
1598
1561
|
//#region packages/reactivity/src/ref.ts
|
|
1599
1562
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -1662,7 +1625,7 @@ var RefImpl = class {
|
|
|
1662
1625
|
}
|
|
1663
1626
|
}
|
|
1664
1627
|
update() {
|
|
1665
|
-
this.flags &=
|
|
1628
|
+
this.flags &= -17;
|
|
1666
1629
|
return hasChanged(this._oldValue, this._oldValue = this._rawValue);
|
|
1667
1630
|
}
|
|
1668
1631
|
};
|
|
@@ -1868,7 +1831,6 @@ function toRef(source, key, defaultValue) {
|
|
|
1868
1831
|
function propertyToRef(source, key, defaultValue) {
|
|
1869
1832
|
return new ObjectRefImpl(source, key, defaultValue);
|
|
1870
1833
|
}
|
|
1871
|
-
|
|
1872
1834
|
//#endregion
|
|
1873
1835
|
//#region packages/reactivity/src/effect.ts
|
|
1874
1836
|
var ReactiveEffect = class {
|
|
@@ -1977,7 +1939,6 @@ function cleanup(sub) {
|
|
|
1977
1939
|
sub.cleanupsLength = 0;
|
|
1978
1940
|
}
|
|
1979
1941
|
}
|
|
1980
|
-
|
|
1981
1942
|
//#endregion
|
|
1982
1943
|
//#region packages/reactivity/src/effectScope.ts
|
|
1983
1944
|
let activeEffectScope;
|
|
@@ -2086,7 +2047,6 @@ function onScopeDispose(fn, failSilently = false) {
|
|
|
2086
2047
|
if (activeEffectScope !== void 0) activeEffectScope.cleanups[activeEffectScope.cleanupsLength++] = fn;
|
|
2087
2048
|
else if (!!(process.env.NODE_ENV !== "production") && !failSilently) warn$2("onScopeDispose() is called when there is no active effect scope to be associated with.");
|
|
2088
2049
|
}
|
|
2089
|
-
|
|
2090
2050
|
//#endregion
|
|
2091
2051
|
//#region packages/reactivity/src/computed.ts
|
|
2092
2052
|
/**
|
|
@@ -2110,7 +2070,7 @@ var ComputedRefImpl = class {
|
|
|
2110
2070
|
if (flags & 32) if (checkDirty(this.deps, this)) {
|
|
2111
2071
|
this.flags = flags | 16;
|
|
2112
2072
|
return true;
|
|
2113
|
-
} else this.flags = flags &
|
|
2073
|
+
} else this.flags = flags & -33;
|
|
2114
2074
|
return false;
|
|
2115
2075
|
}
|
|
2116
2076
|
/**
|
|
@@ -2119,7 +2079,7 @@ var ComputedRefImpl = class {
|
|
|
2119
2079
|
*/
|
|
2120
2080
|
set _dirty(v) {
|
|
2121
2081
|
if (v) this.flags |= 16;
|
|
2122
|
-
else this.flags &=
|
|
2082
|
+
else this.flags &= -49;
|
|
2123
2083
|
}
|
|
2124
2084
|
constructor(fn, setter) {
|
|
2125
2085
|
this.fn = fn;
|
|
@@ -2129,7 +2089,7 @@ var ComputedRefImpl = class {
|
|
|
2129
2089
|
this.subsTail = void 0;
|
|
2130
2090
|
this.deps = void 0;
|
|
2131
2091
|
this.depsTail = void 0;
|
|
2132
|
-
this.flags =
|
|
2092
|
+
this.flags = 17;
|
|
2133
2093
|
this.__v_isRef = true;
|
|
2134
2094
|
this["__v_isReadonly"] = !setter;
|
|
2135
2095
|
}
|
|
@@ -2140,7 +2100,7 @@ var ComputedRefImpl = class {
|
|
|
2140
2100
|
const subs = this.subs;
|
|
2141
2101
|
if (subs !== void 0) shallowPropagate(subs);
|
|
2142
2102
|
}
|
|
2143
|
-
} else if (flags & 32) this.flags = flags &
|
|
2103
|
+
} else if (flags & 32) this.flags = flags & -33;
|
|
2144
2104
|
if (activeSub !== void 0) {
|
|
2145
2105
|
if (!!(process.env.NODE_ENV !== "production")) onTrack(activeSub, {
|
|
2146
2106
|
target: this,
|
|
@@ -2187,7 +2147,6 @@ function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
|
2187
2147
|
}
|
|
2188
2148
|
return cRef;
|
|
2189
2149
|
}
|
|
2190
|
-
|
|
2191
2150
|
//#endregion
|
|
2192
2151
|
//#region packages/reactivity/src/constants.ts
|
|
2193
2152
|
const TrackOpTypes = {
|
|
@@ -2201,7 +2160,6 @@ const TriggerOpTypes = {
|
|
|
2201
2160
|
"DELETE": "delete",
|
|
2202
2161
|
"CLEAR": "clear"
|
|
2203
2162
|
};
|
|
2204
|
-
|
|
2205
2163
|
//#endregion
|
|
2206
2164
|
//#region packages/reactivity/src/watch.ts
|
|
2207
2165
|
const INITIAL_WATCHER_VALUE = {};
|
|
@@ -2346,7 +2304,6 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
2346
2304
|
}
|
|
2347
2305
|
return value;
|
|
2348
2306
|
}
|
|
2349
|
-
|
|
2350
2307
|
//#endregion
|
|
2351
2308
|
//#region packages/runtime-core/src/warning.ts
|
|
2352
2309
|
const stack$1 = [];
|
|
@@ -2373,8 +2330,8 @@ function warn$1(msg, ...args) {
|
|
|
2373
2330
|
const trace = getComponentTrace();
|
|
2374
2331
|
if (appWarnHandler) callWithErrorHandling(appWarnHandler, instance, 11, [
|
|
2375
2332
|
msg + args.map((a) => {
|
|
2376
|
-
|
|
2377
|
-
return
|
|
2333
|
+
const toString = a.toString;
|
|
2334
|
+
return toString == null ? JSON.stringify(a) : toString.call(a);
|
|
2378
2335
|
}).join(""),
|
|
2379
2336
|
instance && instance.proxy || instance,
|
|
2380
2337
|
trace.map(({ ctx }) => `at <${formatComponentName(instance, ctx.type)}>`).join("\n"),
|
|
@@ -2465,7 +2422,6 @@ function assertNumber(val, type) {
|
|
|
2465
2422
|
else if (isNaN(val)) warn$1(`${type} is NaN - the duration expression might be incorrect.`);
|
|
2466
2423
|
}
|
|
2467
2424
|
/* v8 ignore stop */
|
|
2468
|
-
|
|
2469
2425
|
//#endregion
|
|
2470
2426
|
//#region packages/runtime-core/src/errorHandling.ts
|
|
2471
2427
|
const ErrorCodes = {
|
|
@@ -2589,7 +2545,6 @@ function logError(err, type, instance, throwInDev = true, throwInProd = false) {
|
|
|
2589
2545
|
} else if (throwInProd) throw err;
|
|
2590
2546
|
else console.error(err);
|
|
2591
2547
|
}
|
|
2592
|
-
|
|
2593
2548
|
//#endregion
|
|
2594
2549
|
//#region packages/runtime-core/src/scheduler.ts
|
|
2595
2550
|
const SchedulerJobFlags = {
|
|
@@ -2750,7 +2705,6 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2750
2705
|
seen.set(fn, count + 1);
|
|
2751
2706
|
return false;
|
|
2752
2707
|
}
|
|
2753
|
-
|
|
2754
2708
|
//#endregion
|
|
2755
2709
|
//#region packages/runtime-core/src/hmr.ts
|
|
2756
2710
|
let isHmrUpdating = false;
|
|
@@ -2872,7 +2826,6 @@ function tryWrap(fn) {
|
|
|
2872
2826
|
}
|
|
2873
2827
|
};
|
|
2874
2828
|
}
|
|
2875
|
-
|
|
2876
2829
|
//#endregion
|
|
2877
2830
|
//#region packages/runtime-core/src/devtools.ts
|
|
2878
2831
|
let devtools$1;
|
|
@@ -2941,7 +2894,6 @@ function createDevtoolsPerformanceHook(hook) {
|
|
|
2941
2894
|
function devtoolsComponentEmit(component, event, params) {
|
|
2942
2895
|
emit$2("component:emit", component.appContext.app, component, event, params);
|
|
2943
2896
|
}
|
|
2944
|
-
|
|
2945
2897
|
//#endregion
|
|
2946
2898
|
//#region packages/runtime-core/src/compat/compatConfig.ts
|
|
2947
2899
|
const DeprecationTypes$1 = {
|
|
@@ -3213,7 +3165,6 @@ function checkCompatEnabled$1(key, instance, ...args) {
|
|
|
3213
3165
|
if (!!(process.env.NODE_ENV !== "production") && enabled) warnDeprecation$1(key, instance, ...args);
|
|
3214
3166
|
return enabled;
|
|
3215
3167
|
}
|
|
3216
|
-
|
|
3217
3168
|
//#endregion
|
|
3218
3169
|
//#region packages/runtime-core/src/compat/instanceEventEmitter.ts
|
|
3219
3170
|
const eventRegistryMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -3267,7 +3218,6 @@ function emit$1(instance, event, args) {
|
|
|
3267
3218
|
if (cbs) callWithAsyncErrorHandling(cbs.map((cb) => cb.bind(instance.proxy)), instance, 6, args);
|
|
3268
3219
|
return instance.proxy;
|
|
3269
3220
|
}
|
|
3270
|
-
|
|
3271
3221
|
//#endregion
|
|
3272
3222
|
//#region packages/runtime-core/src/componentRenderContext.ts
|
|
3273
3223
|
/**
|
|
@@ -3339,7 +3289,6 @@ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
|
3339
3289
|
if (isNonScopedSlot) renderFnWithContext._ns = true;
|
|
3340
3290
|
return renderFnWithContext;
|
|
3341
3291
|
}
|
|
3342
|
-
|
|
3343
3292
|
//#endregion
|
|
3344
3293
|
//#region packages/runtime-core/src/compat/customDirective.ts
|
|
3345
3294
|
const legacyDirectiveHookMap = {
|
|
@@ -3365,7 +3314,6 @@ function mapCompatDirectiveHook(name, dir, instance) {
|
|
|
3365
3314
|
return dir[mappedName];
|
|
3366
3315
|
}
|
|
3367
3316
|
}
|
|
3368
|
-
|
|
3369
3317
|
//#endregion
|
|
3370
3318
|
//#region packages/runtime-core/src/directives.ts
|
|
3371
3319
|
function validateDirectiveName(name) {
|
|
@@ -3421,7 +3369,6 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
3421
3369
|
}
|
|
3422
3370
|
}
|
|
3423
3371
|
}
|
|
3424
|
-
|
|
3425
3372
|
//#endregion
|
|
3426
3373
|
//#region packages/runtime-core/src/apiInject.ts
|
|
3427
3374
|
function provide(key, value) {
|
|
@@ -3452,7 +3399,6 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
3452
3399
|
function hasInjectionContext() {
|
|
3453
3400
|
return !!(getCurrentGenericInstance() || currentApp);
|
|
3454
3401
|
}
|
|
3455
|
-
|
|
3456
3402
|
//#endregion
|
|
3457
3403
|
//#region packages/runtime-core/src/helpers/useSsrContext.ts
|
|
3458
3404
|
const ssrContextKey = Symbol.for("v-scx");
|
|
@@ -3463,7 +3409,6 @@ const useSSRContext = () => {
|
|
|
3463
3409
|
return ctx;
|
|
3464
3410
|
}
|
|
3465
3411
|
};
|
|
3466
|
-
|
|
3467
3412
|
//#endregion
|
|
3468
3413
|
//#region packages/runtime-core/src/apiWatch.ts
|
|
3469
3414
|
function watchEffect(effect, options) {
|
|
@@ -3564,7 +3509,6 @@ function createPathGetter(ctx, path) {
|
|
|
3564
3509
|
return cur;
|
|
3565
3510
|
};
|
|
3566
3511
|
}
|
|
3567
|
-
|
|
3568
3512
|
//#endregion
|
|
3569
3513
|
//#region packages/runtime-core/src/components/Teleport.ts
|
|
3570
3514
|
const TeleportEndKey = Symbol("_vte");
|
|
@@ -3762,7 +3706,6 @@ function prepareAnchor(target, vnode, createText, insert, anchor = null) {
|
|
|
3762
3706
|
}
|
|
3763
3707
|
return targetAnchor;
|
|
3764
3708
|
}
|
|
3765
|
-
|
|
3766
3709
|
//#endregion
|
|
3767
3710
|
//#region packages/runtime-core/src/components/BaseTransition.ts
|
|
3768
3711
|
const leaveCbKey = Symbol("_leaveCb");
|
|
@@ -4027,14 +3970,12 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
4027
3970
|
function checkTransitionMode(mode) {
|
|
4028
3971
|
if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") warn$1(`invalid <transition> mode: ${mode}`);
|
|
4029
3972
|
}
|
|
4030
|
-
|
|
4031
3973
|
//#endregion
|
|
4032
3974
|
//#region packages/runtime-core/src/apiDefineComponent.ts
|
|
4033
3975
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4034
3976
|
function defineComponent(options, extraOptions) {
|
|
4035
3977
|
return isFunction(options) ? extend({ name: options.name }, extraOptions, { setup: options }) : options;
|
|
4036
3978
|
}
|
|
4037
|
-
|
|
4038
3979
|
//#endregion
|
|
4039
3980
|
//#region packages/runtime-core/src/helpers/useId.ts
|
|
4040
3981
|
function useId() {
|
|
@@ -4056,7 +3997,6 @@ function markAsyncBoundary(instance) {
|
|
|
4056
3997
|
0
|
|
4057
3998
|
];
|
|
4058
3999
|
}
|
|
4059
|
-
|
|
4060
4000
|
//#endregion
|
|
4061
4001
|
//#region packages/runtime-core/src/helpers/useTemplateRef.ts
|
|
4062
4002
|
const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
|
|
@@ -4080,7 +4020,6 @@ function isTemplateRefKey(refs, key) {
|
|
|
4080
4020
|
let desc;
|
|
4081
4021
|
return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);
|
|
4082
4022
|
}
|
|
4083
|
-
|
|
4084
4023
|
//#endregion
|
|
4085
4024
|
//#region packages/runtime-core/src/rendererTemplateRef.ts
|
|
4086
4025
|
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -4181,7 +4120,6 @@ function invalidatePendingSetRef(rawRef) {
|
|
|
4181
4120
|
pendingSetRefMap.delete(rawRef);
|
|
4182
4121
|
}
|
|
4183
4122
|
}
|
|
4184
|
-
|
|
4185
4123
|
//#endregion
|
|
4186
4124
|
//#region packages/runtime-core/src/hydration.ts
|
|
4187
4125
|
let isHydratingEnabled = false;
|
|
@@ -4608,7 +4546,6 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
4608
4546
|
return list.includes(MismatchTypeString[allowedType]);
|
|
4609
4547
|
}
|
|
4610
4548
|
}
|
|
4611
|
-
|
|
4612
4549
|
//#endregion
|
|
4613
4550
|
//#region packages/runtime-core/src/hydrationStrategies.ts
|
|
4614
4551
|
let requestIdleCallback;
|
|
@@ -4697,7 +4634,6 @@ function forEachElement(node, cb) {
|
|
|
4697
4634
|
}
|
|
4698
4635
|
} else cb(node);
|
|
4699
4636
|
}
|
|
4700
|
-
|
|
4701
4637
|
//#endregion
|
|
4702
4638
|
//#region packages/runtime-core/src/apiAsyncComponent.ts
|
|
4703
4639
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
@@ -4834,7 +4770,6 @@ function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydra
|
|
|
4834
4770
|
if (getResolvedComp()) doHydrate();
|
|
4835
4771
|
else load().then(() => !instance.isUnmounted && doHydrate());
|
|
4836
4772
|
}
|
|
4837
|
-
|
|
4838
4773
|
//#endregion
|
|
4839
4774
|
//#region packages/runtime-core/src/components/KeepAlive.ts
|
|
4840
4775
|
const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
|
|
@@ -5060,7 +4995,6 @@ function deactivate(vnode, container, { m: move }, parentComponent, parentSuspen
|
|
|
5060
4995
|
}, void 0, parentSuspense);
|
|
5061
4996
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) devtoolsComponentAdded(instance);
|
|
5062
4997
|
}
|
|
5063
|
-
|
|
5064
4998
|
//#endregion
|
|
5065
4999
|
//#region packages/runtime-core/src/apiLifecycle.ts
|
|
5066
5000
|
function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
@@ -5096,7 +5030,6 @@ const onRenderTracked = /* @__PURE__ */ createHook("rtc");
|
|
|
5096
5030
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
5097
5031
|
injectHook("ec", hook, target);
|
|
5098
5032
|
}
|
|
5099
|
-
|
|
5100
5033
|
//#endregion
|
|
5101
5034
|
//#region packages/runtime-core/src/compat/instanceChildren.ts
|
|
5102
5035
|
function getCompatChildren(instance) {
|
|
@@ -5113,7 +5046,6 @@ function walk$1(vnode, children) {
|
|
|
5113
5046
|
for (let i = 0; i < vnodes.length; i++) walk$1(vnodes[i], children);
|
|
5114
5047
|
}
|
|
5115
5048
|
}
|
|
5116
|
-
|
|
5117
5049
|
//#endregion
|
|
5118
5050
|
//#region packages/runtime-core/src/compat/instanceListeners.ts
|
|
5119
5051
|
function getCompatListeners(instance) {
|
|
@@ -5124,24 +5056,20 @@ function getCompatListeners(instance) {
|
|
|
5124
5056
|
for (const key in rawProps) if (isOn(key)) listeners[key[2].toLowerCase() + key.slice(3)] = rawProps[key];
|
|
5125
5057
|
return listeners;
|
|
5126
5058
|
}
|
|
5127
|
-
|
|
5128
|
-
//#endregion
|
|
5129
|
-
//#region packages/runtime-core/src/helpers/resolveAssets.ts
|
|
5130
|
-
const COMPONENTS = "components";
|
|
5131
5059
|
const DIRECTIVES = "directives";
|
|
5132
5060
|
const FILTERS = "filters";
|
|
5133
5061
|
/**
|
|
5134
5062
|
* @private
|
|
5135
5063
|
*/
|
|
5136
5064
|
function resolveComponent(name, maybeSelfReference) {
|
|
5137
|
-
return resolveAsset(
|
|
5065
|
+
return resolveAsset("components", name, true, maybeSelfReference) || name;
|
|
5138
5066
|
}
|
|
5139
5067
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
5140
5068
|
/**
|
|
5141
5069
|
* @private
|
|
5142
5070
|
*/
|
|
5143
5071
|
function resolveDynamicComponent(component) {
|
|
5144
|
-
if (isString(component)) return resolveAsset(
|
|
5072
|
+
if (isString(component)) return resolveAsset("components", component, false) || component;
|
|
5145
5073
|
else return component || NULL_DYNAMIC_COMPONENT;
|
|
5146
5074
|
}
|
|
5147
5075
|
/**
|
|
@@ -5161,14 +5089,14 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
5161
5089
|
const instance = currentRenderingInstance || currentInstance;
|
|
5162
5090
|
if (instance) {
|
|
5163
5091
|
const Component = instance.type;
|
|
5164
|
-
if (type ===
|
|
5092
|
+
if (type === "components") {
|
|
5165
5093
|
const selfName = getComponentName(Component, false);
|
|
5166
5094
|
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) return Component;
|
|
5167
5095
|
}
|
|
5168
5096
|
const res = resolve(instance[type] || Component[type], name) || resolve(instance.appContext[type], name);
|
|
5169
5097
|
if (!res && maybeSelfReference) return Component;
|
|
5170
5098
|
if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
|
|
5171
|
-
const extra = type ===
|
|
5099
|
+
const extra = type === "components" ? "\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement." : ``;
|
|
5172
5100
|
warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
5173
5101
|
}
|
|
5174
5102
|
return res;
|
|
@@ -5177,7 +5105,6 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
5177
5105
|
function resolve(registry, name) {
|
|
5178
5106
|
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
5179
5107
|
}
|
|
5180
|
-
|
|
5181
5108
|
//#endregion
|
|
5182
5109
|
//#region packages/runtime-core/src/compat/renderFn.ts
|
|
5183
5110
|
function convertLegacyRenderFn(instance) {
|
|
@@ -5313,7 +5240,6 @@ function defineLegacyVNodeProperties(vnode) {
|
|
|
5313
5240
|
}
|
|
5314
5241
|
/* v8 ignore stop */
|
|
5315
5242
|
}
|
|
5316
|
-
|
|
5317
5243
|
//#endregion
|
|
5318
5244
|
//#region packages/runtime-core/src/compat/componentFunctional.ts
|
|
5319
5245
|
const normalizedFunctionalComponentMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -5355,7 +5281,6 @@ function convertLegacyFunctionalComponent(comp) {
|
|
|
5355
5281
|
normalizedFunctionalComponentMap.set(comp, Func);
|
|
5356
5282
|
return Func;
|
|
5357
5283
|
}
|
|
5358
|
-
|
|
5359
5284
|
//#endregion
|
|
5360
5285
|
//#region packages/runtime-core/src/helpers/renderList.ts
|
|
5361
5286
|
/**
|
|
@@ -5376,11 +5301,14 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5376
5301
|
}
|
|
5377
5302
|
ret = new Array(source.length);
|
|
5378
5303
|
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]);
|
|
5379
|
-
} else if (typeof source === "number") {
|
|
5380
|
-
|
|
5304
|
+
} else if (typeof source === "number") if (!!(process.env.NODE_ENV !== "production") && (!Number.isInteger(source) || source < 0)) {
|
|
5305
|
+
warn$1(`The v-for range expects a positive integer value but got ${source}.`);
|
|
5306
|
+
ret = [];
|
|
5307
|
+
} else {
|
|
5381
5308
|
ret = new Array(source);
|
|
5382
5309
|
for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
5383
|
-
}
|
|
5310
|
+
}
|
|
5311
|
+
else if (isObject(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
|
|
5384
5312
|
else {
|
|
5385
5313
|
const keys = Object.keys(source);
|
|
5386
5314
|
ret = new Array(keys.length);
|
|
@@ -5393,7 +5321,6 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5393
5321
|
if (cache) cache[index] = ret;
|
|
5394
5322
|
return ret;
|
|
5395
5323
|
}
|
|
5396
|
-
|
|
5397
5324
|
//#endregion
|
|
5398
5325
|
//#region packages/runtime-core/src/helpers/createSlots.ts
|
|
5399
5326
|
/**
|
|
@@ -5412,7 +5339,6 @@ function createSlots(slots, dynamicSlots) {
|
|
|
5412
5339
|
}
|
|
5413
5340
|
return slots;
|
|
5414
5341
|
}
|
|
5415
|
-
|
|
5416
5342
|
//#endregion
|
|
5417
5343
|
//#region packages/runtime-core/src/helpers/renderSlot.ts
|
|
5418
5344
|
/**
|
|
@@ -5463,7 +5389,6 @@ function ensureVaporSlotFallback(vnodes, fallback) {
|
|
|
5463
5389
|
if (!vaporSlot.fallback && fallback) vaporSlot.fallback = fallback;
|
|
5464
5390
|
}
|
|
5465
5391
|
}
|
|
5466
|
-
|
|
5467
5392
|
//#endregion
|
|
5468
5393
|
//#region packages/runtime-core/src/helpers/toHandlers.ts
|
|
5469
5394
|
/**
|
|
@@ -5479,7 +5404,6 @@ function toHandlers(obj, preserveCaseIfNecessary) {
|
|
|
5479
5404
|
for (const key in obj) ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
|
|
5480
5405
|
return ret;
|
|
5481
5406
|
}
|
|
5482
|
-
|
|
5483
5407
|
//#endregion
|
|
5484
5408
|
//#region packages/runtime-core/src/compat/renderHelpers.ts
|
|
5485
5409
|
function toObject(arr) {
|
|
@@ -5561,7 +5485,6 @@ function legacyBindDynamicKeys(props, values) {
|
|
|
5561
5485
|
function legacyPrependModifier(value, symbol) {
|
|
5562
5486
|
return typeof value === "string" ? symbol + value : value;
|
|
5563
5487
|
}
|
|
5564
|
-
|
|
5565
5488
|
//#endregion
|
|
5566
5489
|
//#region packages/runtime-core/src/compat/instance.ts
|
|
5567
5490
|
function installCompatInstanceProperties(map) {
|
|
@@ -5650,7 +5573,6 @@ function installCompatInstanceProperties(map) {
|
|
|
5650
5573
|
if (isCompatEnabled$1("PRIVATE_APIS", i)) return privateAPIs[key](i);
|
|
5651
5574
|
};
|
|
5652
5575
|
}
|
|
5653
|
-
|
|
5654
5576
|
//#endregion
|
|
5655
5577
|
//#region packages/runtime-core/src/componentPublicInstance.ts
|
|
5656
5578
|
/**
|
|
@@ -5836,7 +5758,6 @@ function exposeSetupStateOnRenderContext(instance) {
|
|
|
5836
5758
|
}
|
|
5837
5759
|
});
|
|
5838
5760
|
}
|
|
5839
|
-
|
|
5840
5761
|
//#endregion
|
|
5841
5762
|
//#region packages/runtime-core/src/compat/data.ts
|
|
5842
5763
|
function deepMergeData(to, from) {
|
|
@@ -5850,7 +5771,6 @@ function deepMergeData(to, from) {
|
|
|
5850
5771
|
}
|
|
5851
5772
|
return to;
|
|
5852
5773
|
}
|
|
5853
|
-
|
|
5854
5774
|
//#endregion
|
|
5855
5775
|
//#region packages/runtime-core/src/apiSetupHelpers.ts
|
|
5856
5776
|
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.`);
|
|
@@ -5889,6 +5809,22 @@ function defineExpose(exposed) {
|
|
|
5889
5809
|
function defineOptions(options) {
|
|
5890
5810
|
if (!!(process.env.NODE_ENV !== "production")) warnRuntimeUsage(`defineOptions`);
|
|
5891
5811
|
}
|
|
5812
|
+
/**
|
|
5813
|
+
* Vue `<script setup>` compiler macro for providing type hints to IDEs for
|
|
5814
|
+
* slot name and slot props type checking.
|
|
5815
|
+
*
|
|
5816
|
+
* Example usage:
|
|
5817
|
+
* ```ts
|
|
5818
|
+
* const slots = defineSlots<{
|
|
5819
|
+
* default(props: { msg: string }): any
|
|
5820
|
+
* }>()
|
|
5821
|
+
* ```
|
|
5822
|
+
*
|
|
5823
|
+
* This is only usable inside `<script setup>`, is compiled away in the
|
|
5824
|
+
* output and should **not** be actually called at runtime.
|
|
5825
|
+
*
|
|
5826
|
+
* @see {@link https://vuejs.org/api/sfc-script-setup.html#defineslots}
|
|
5827
|
+
*/
|
|
5892
5828
|
function defineSlots() {
|
|
5893
5829
|
if (!!(process.env.NODE_ENV !== "production")) warnRuntimeUsage(`defineSlots`);
|
|
5894
5830
|
return null;
|
|
@@ -6005,21 +5941,29 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
6005
5941
|
*/
|
|
6006
5942
|
function withAsyncContext(getAwaitable) {
|
|
6007
5943
|
const ctx = getCurrentGenericInstance();
|
|
5944
|
+
const inSSRSetup = isInSSRComponentSetup;
|
|
6008
5945
|
if (!!(process.env.NODE_ENV !== "production") && !ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
|
|
6009
5946
|
let awaitable = getAwaitable();
|
|
6010
5947
|
setCurrentInstance(null, void 0);
|
|
6011
|
-
|
|
6012
|
-
|
|
5948
|
+
if (inSSRSetup) setInSSRSetupState(false);
|
|
5949
|
+
const restore = () => {
|
|
6013
5950
|
setCurrentInstance(ctx);
|
|
5951
|
+
if (inSSRSetup) setInSSRSetupState(true);
|
|
5952
|
+
};
|
|
5953
|
+
const cleanup = () => {
|
|
5954
|
+
setCurrentInstance(null, void 0);
|
|
5955
|
+
if (inSSRSetup) setInSSRSetupState(false);
|
|
5956
|
+
};
|
|
5957
|
+
if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
|
|
5958
|
+
restore();
|
|
6014
5959
|
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
6015
5960
|
throw e;
|
|
6016
5961
|
});
|
|
6017
5962
|
return [awaitable, () => {
|
|
6018
|
-
|
|
5963
|
+
restore();
|
|
6019
5964
|
Promise.resolve().then(cleanup);
|
|
6020
5965
|
}];
|
|
6021
5966
|
}
|
|
6022
|
-
|
|
6023
5967
|
//#endregion
|
|
6024
5968
|
//#region packages/runtime-core/src/componentOptions.ts
|
|
6025
5969
|
function createDuplicateChecker() {
|
|
@@ -6287,7 +6231,6 @@ function mergeWatchOptions(to, from) {
|
|
|
6287
6231
|
for (const key in from) merged[key] = mergeAsArray$1(to[key], from[key]);
|
|
6288
6232
|
return merged;
|
|
6289
6233
|
}
|
|
6290
|
-
|
|
6291
6234
|
//#endregion
|
|
6292
6235
|
//#region packages/runtime-core/src/compat/globalConfig.ts
|
|
6293
6236
|
function installLegacyConfigWarnings(config) {
|
|
@@ -6318,7 +6261,6 @@ function installLegacyOptionMergeStrats(config) {
|
|
|
6318
6261
|
if (key in internalOptionMergeStrats && softAssertCompatEnabled("CONFIG_OPTION_MERGE_STRATS", null)) return internalOptionMergeStrats[key];
|
|
6319
6262
|
} });
|
|
6320
6263
|
}
|
|
6321
|
-
|
|
6322
6264
|
//#endregion
|
|
6323
6265
|
//#region packages/runtime-core/src/compat/global.ts
|
|
6324
6266
|
let isCopyingConfig = false;
|
|
@@ -6339,7 +6281,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6339
6281
|
if (options.el) return vm.$mount(options.el);
|
|
6340
6282
|
else return vm;
|
|
6341
6283
|
}
|
|
6342
|
-
Vue.version = `2.6.14-compat:3.6.0-beta.
|
|
6284
|
+
Vue.version = `2.6.14-compat:3.6.0-beta.8`;
|
|
6343
6285
|
Vue.config = singletonApp.config;
|
|
6344
6286
|
Vue.use = (plugin, ...options) => {
|
|
6345
6287
|
if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
|
|
@@ -6619,7 +6561,6 @@ function defineReactiveSimple(obj, key, val) {
|
|
|
6619
6561
|
}
|
|
6620
6562
|
});
|
|
6621
6563
|
}
|
|
6622
|
-
|
|
6623
6564
|
//#endregion
|
|
6624
6565
|
//#region packages/runtime-core/src/apiCreateApp.ts
|
|
6625
6566
|
function createAppContext() {
|
|
@@ -6758,7 +6699,6 @@ function createAppAPI(mount, unmount, getPublicInstance, render) {
|
|
|
6758
6699
|
* `app.runWithContext()`.
|
|
6759
6700
|
*/
|
|
6760
6701
|
let currentApp = null;
|
|
6761
|
-
|
|
6762
6702
|
//#endregion
|
|
6763
6703
|
//#region packages/runtime-core/src/compat/componentVModel.ts
|
|
6764
6704
|
const compatModelEventPrefix = `onModelCompat:`;
|
|
@@ -6801,7 +6741,6 @@ function compatModelEmit(instance, event, args) {
|
|
|
6801
6741
|
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
6802
6742
|
if (modelHandler) callWithErrorHandling(modelHandler, instance, 6, args);
|
|
6803
6743
|
}
|
|
6804
|
-
|
|
6805
6744
|
//#endregion
|
|
6806
6745
|
//#region packages/runtime-core/src/helpers/useModel.ts
|
|
6807
6746
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -6874,7 +6813,6 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
6874
6813
|
const getModelModifiers = (props, modelName, getter) => {
|
|
6875
6814
|
return getter(props, getModifierPropName(modelName)) || getter(props, `${camelize(modelName)}Modifiers`) || getter(props, `${hyphenate(modelName)}Modifiers`);
|
|
6876
6815
|
};
|
|
6877
|
-
|
|
6878
6816
|
//#endregion
|
|
6879
6817
|
//#region packages/runtime-core/src/componentEmits.ts
|
|
6880
6818
|
function emit(instance, event, ...rawArgs) {
|
|
@@ -6970,7 +6908,6 @@ function isEmitListener(options, key) {
|
|
|
6970
6908
|
key = key.slice(2).replace(/Once$/, "");
|
|
6971
6909
|
return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key);
|
|
6972
6910
|
}
|
|
6973
|
-
|
|
6974
6911
|
//#endregion
|
|
6975
6912
|
//#region packages/runtime-core/src/componentRenderUtils.ts
|
|
6976
6913
|
/**
|
|
@@ -7176,7 +7113,6 @@ function updateHOCHostEl({ vnode, parent }, el) {
|
|
|
7176
7113
|
} else break;
|
|
7177
7114
|
}
|
|
7178
7115
|
}
|
|
7179
|
-
|
|
7180
7116
|
//#endregion
|
|
7181
7117
|
//#region packages/runtime-core/src/compat/props.ts
|
|
7182
7118
|
function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
@@ -7192,7 +7128,6 @@ function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
|
7192
7128
|
}
|
|
7193
7129
|
} });
|
|
7194
7130
|
}
|
|
7195
|
-
|
|
7196
7131
|
//#endregion
|
|
7197
7132
|
//#region packages/runtime-core/src/compat/attrsFallthrough.ts
|
|
7198
7133
|
function shouldSkipAttr(key, instance) {
|
|
@@ -7202,7 +7137,6 @@ function shouldSkipAttr(key, instance) {
|
|
|
7202
7137
|
if (key.startsWith("routerView") || key === "registerRouteInstance") return true;
|
|
7203
7138
|
return false;
|
|
7204
7139
|
}
|
|
7205
|
-
|
|
7206
7140
|
//#endregion
|
|
7207
7141
|
//#region packages/runtime-core/src/internalObject.ts
|
|
7208
7142
|
/**
|
|
@@ -7214,7 +7148,6 @@ function shouldSkipAttr(key, instance) {
|
|
|
7214
7148
|
const internalObjectProto = {};
|
|
7215
7149
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7216
7150
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7217
|
-
|
|
7218
7151
|
//#endregion
|
|
7219
7152
|
//#region packages/runtime-core/src/componentProps.ts
|
|
7220
7153
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
@@ -7519,7 +7452,6 @@ function isExplicable(type) {
|
|
|
7519
7452
|
function isBoolean(...args) {
|
|
7520
7453
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
7521
7454
|
}
|
|
7522
|
-
|
|
7523
7455
|
//#endregion
|
|
7524
7456
|
//#region packages/runtime-core/src/componentSlots.ts
|
|
7525
7457
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -7588,7 +7520,6 @@ const updateSlots = (instance, children, optimized) => {
|
|
|
7588
7520
|
for (const key in slots) if (!isInternalKey(key) && deletionComparisonTarget[key] == null) delete slots[key];
|
|
7589
7521
|
}
|
|
7590
7522
|
};
|
|
7591
|
-
|
|
7592
7523
|
//#endregion
|
|
7593
7524
|
//#region packages/runtime-core/src/profiling.ts
|
|
7594
7525
|
let supported;
|
|
@@ -7627,7 +7558,6 @@ function isSupported() {
|
|
|
7627
7558
|
} else supported = false;
|
|
7628
7559
|
return supported;
|
|
7629
7560
|
}
|
|
7630
|
-
|
|
7631
7561
|
//#endregion
|
|
7632
7562
|
//#region packages/runtime-core/src/featureFlags.ts
|
|
7633
7563
|
let initialized = false;
|
|
@@ -7657,7 +7587,6 @@ function initFeatureFlags() {
|
|
|
7657
7587
|
}
|
|
7658
7588
|
initialized = true;
|
|
7659
7589
|
}
|
|
7660
|
-
|
|
7661
7590
|
//#endregion
|
|
7662
7591
|
//#region packages/runtime-core/src/renderer.ts
|
|
7663
7592
|
const MoveType = {
|
|
@@ -8059,7 +7988,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8059
7988
|
if (isAsyncWrapperVNode && type.__asyncHydrate) type.__asyncHydrate(el, instance, hydrateSubTree);
|
|
8060
7989
|
else hydrateSubTree();
|
|
8061
7990
|
} else {
|
|
8062
|
-
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type);
|
|
7991
|
+
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type, instance.parent ? instance.parent.type : void 0);
|
|
8063
7992
|
if (!!(process.env.NODE_ENV !== "production")) startMeasure(instance, `render`);
|
|
8064
7993
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
8065
7994
|
if (!!(process.env.NODE_ENV !== "production")) endMeasure(instance, `render`);
|
|
@@ -8581,12 +8510,11 @@ function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
|
8581
8510
|
if (instance) return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
8582
8511
|
return null;
|
|
8583
8512
|
}
|
|
8584
|
-
|
|
8585
8513
|
//#endregion
|
|
8586
8514
|
//#region packages/runtime-core/src/components/Suspense.ts
|
|
8587
8515
|
const isSuspense = (type) => type.__isSuspense;
|
|
8588
8516
|
let suspenseId = 0;
|
|
8589
|
-
const
|
|
8517
|
+
const Suspense = {
|
|
8590
8518
|
name: "Suspense",
|
|
8591
8519
|
__isSuspense: true,
|
|
8592
8520
|
process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) {
|
|
@@ -8604,7 +8532,6 @@ const SuspenseImpl = {
|
|
|
8604
8532
|
hydrate: hydrateSuspense,
|
|
8605
8533
|
normalize: normalizeSuspenseChildren
|
|
8606
8534
|
};
|
|
8607
|
-
const Suspense = SuspenseImpl;
|
|
8608
8535
|
function triggerEvent(vnode, name) {
|
|
8609
8536
|
const eventListener = vnode.props && vnode.props[name];
|
|
8610
8537
|
if (isFunction(eventListener)) eventListener();
|
|
@@ -8867,7 +8794,6 @@ function isVNodeSuspensible(vnode) {
|
|
|
8867
8794
|
const suspensible = vnode.props && vnode.props.suspensible;
|
|
8868
8795
|
return suspensible != null && suspensible !== false;
|
|
8869
8796
|
}
|
|
8870
|
-
|
|
8871
8797
|
//#endregion
|
|
8872
8798
|
//#region packages/runtime-core/src/compat/componentAsync.ts
|
|
8873
8799
|
const normalizedAsyncComponentMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -8893,7 +8819,6 @@ function convertLegacyAsyncComponent(comp) {
|
|
|
8893
8819
|
normalizedAsyncComponentMap.set(comp, converted);
|
|
8894
8820
|
return converted;
|
|
8895
8821
|
}
|
|
8896
|
-
|
|
8897
8822
|
//#endregion
|
|
8898
8823
|
//#region packages/runtime-core/src/compat/component.ts
|
|
8899
8824
|
function convertLegacyComponent(comp, instance) {
|
|
@@ -8909,7 +8834,6 @@ function convertLegacyComponent(comp, instance) {
|
|
|
8909
8834
|
if (isObject(comp) && comp.functional && softAssertCompatEnabled("COMPONENT_FUNCTIONAL", instance, comp)) return convertLegacyFunctionalComponent(comp);
|
|
8910
8835
|
return comp;
|
|
8911
8836
|
}
|
|
8912
|
-
|
|
8913
8837
|
//#endregion
|
|
8914
8838
|
//#region packages/runtime-core/src/vnode.ts
|
|
8915
8839
|
const Fragment = Symbol.for("v-fgt");
|
|
@@ -9231,7 +9155,6 @@ function mergeProps(...args) {
|
|
|
9231
9155
|
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
9232
9156
|
callWithAsyncErrorHandling(hook, instance, 7, [vnode, prevVNode]);
|
|
9233
9157
|
}
|
|
9234
|
-
|
|
9235
9158
|
//#endregion
|
|
9236
9159
|
//#region packages/runtime-core/src/componentCurrentInstance.ts
|
|
9237
9160
|
/**
|
|
@@ -9299,7 +9222,6 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
9299
9222
|
value: instance[key]
|
|
9300
9223
|
};
|
|
9301
9224
|
};
|
|
9302
|
-
|
|
9303
9225
|
//#endregion
|
|
9304
9226
|
//#region packages/runtime-core/src/component.ts
|
|
9305
9227
|
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
@@ -9618,13 +9540,11 @@ function formatComponentName(instance, Component, isRoot = false) {
|
|
|
9618
9540
|
function isClassComponent(value) {
|
|
9619
9541
|
return isFunction(value) && "__vccOpts" in value;
|
|
9620
9542
|
}
|
|
9621
|
-
|
|
9622
9543
|
//#endregion
|
|
9623
9544
|
//#region packages/runtime-core/src/apiComputed.ts
|
|
9624
9545
|
const computed = (getterOrOptions, debugOptions) => {
|
|
9625
9546
|
return /* @__PURE__ */ computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
9626
9547
|
};
|
|
9627
|
-
|
|
9628
9548
|
//#endregion
|
|
9629
9549
|
//#region packages/runtime-core/src/h.ts
|
|
9630
9550
|
function h(type, propsOrChildren, children) {
|
|
@@ -9644,7 +9564,6 @@ function h(type, propsOrChildren, children) {
|
|
|
9644
9564
|
setBlockTracking(1);
|
|
9645
9565
|
}
|
|
9646
9566
|
}
|
|
9647
|
-
|
|
9648
9567
|
//#endregion
|
|
9649
9568
|
//#region packages/runtime-core/src/customFormatter.ts
|
|
9650
9569
|
function initCustomFormatter() {
|
|
@@ -9809,7 +9728,6 @@ function initCustomFormatter() {
|
|
|
9809
9728
|
if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
|
|
9810
9729
|
else window.devtoolsFormatters = [formatter];
|
|
9811
9730
|
}
|
|
9812
|
-
|
|
9813
9731
|
//#endregion
|
|
9814
9732
|
//#region packages/runtime-core/src/helpers/withMemo.ts
|
|
9815
9733
|
function withMemo(memo, render, cache, index) {
|
|
@@ -9827,10 +9745,9 @@ function isMemoSame(cached, memo) {
|
|
|
9827
9745
|
if (isBlockTreeEnabled > 0 && currentBlock) currentBlock.push(cached);
|
|
9828
9746
|
return true;
|
|
9829
9747
|
}
|
|
9830
|
-
|
|
9831
9748
|
//#endregion
|
|
9832
9749
|
//#region packages/runtime-core/src/index.ts
|
|
9833
|
-
const version = "3.6.0-beta.
|
|
9750
|
+
const version = "3.6.0-beta.8";
|
|
9834
9751
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
9835
9752
|
/**
|
|
9836
9753
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -9839,7 +9756,11 @@ const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
|
9839
9756
|
const ErrorTypeStrings = ErrorTypeStrings$1;
|
|
9840
9757
|
const devtools = (process.env.NODE_ENV, devtools$1);
|
|
9841
9758
|
const setDevtoolsHook = (process.env.NODE_ENV, setDevtoolsHook$1);
|
|
9842
|
-
|
|
9759
|
+
/**
|
|
9760
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
9761
|
+
* @internal
|
|
9762
|
+
*/
|
|
9763
|
+
const ssrUtils = {
|
|
9843
9764
|
createComponentInstance,
|
|
9844
9765
|
setupComponent,
|
|
9845
9766
|
renderComponentRoot,
|
|
@@ -9852,27 +9773,20 @@ const _ssrUtils = {
|
|
|
9852
9773
|
popWarningContext
|
|
9853
9774
|
};
|
|
9854
9775
|
/**
|
|
9855
|
-
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
9856
|
-
* @internal
|
|
9857
|
-
*/
|
|
9858
|
-
const ssrUtils = _ssrUtils;
|
|
9859
|
-
/**
|
|
9860
9776
|
* @internal only exposed in compat builds
|
|
9861
9777
|
*/
|
|
9862
9778
|
const resolveFilter = resolveFilter$1;
|
|
9863
|
-
|
|
9779
|
+
/**
|
|
9780
|
+
* @internal only exposed in compat builds.
|
|
9781
|
+
*/
|
|
9782
|
+
const compatUtils = {
|
|
9864
9783
|
warnDeprecation: warnDeprecation$1,
|
|
9865
9784
|
createCompatVue: createCompatVue$1,
|
|
9866
9785
|
isCompatEnabled: isCompatEnabled$1,
|
|
9867
9786
|
checkCompatEnabled: checkCompatEnabled$1,
|
|
9868
9787
|
softAssertCompatEnabled
|
|
9869
9788
|
};
|
|
9870
|
-
/**
|
|
9871
|
-
* @internal only exposed in compat builds.
|
|
9872
|
-
*/
|
|
9873
|
-
const compatUtils = _compatUtils;
|
|
9874
9789
|
const DeprecationTypes = DeprecationTypes$1;
|
|
9875
|
-
|
|
9876
9790
|
//#endregion
|
|
9877
9791
|
//#region packages/runtime-dom/src/nodeOps.ts
|
|
9878
9792
|
let policy = void 0;
|
|
@@ -9933,7 +9847,6 @@ const nodeOps = {
|
|
|
9933
9847
|
return [before ? before.nextSibling : parent.firstChild, anchor ? anchor.previousSibling : parent.lastChild];
|
|
9934
9848
|
}
|
|
9935
9849
|
};
|
|
9936
|
-
|
|
9937
9850
|
//#endregion
|
|
9938
9851
|
//#region packages/runtime-dom/src/components/Transition.ts
|
|
9939
9852
|
const TRANSITION$1 = "transition";
|
|
@@ -10191,7 +10104,6 @@ function toMs(s) {
|
|
|
10191
10104
|
function forceReflow(el) {
|
|
10192
10105
|
return (el ? el.ownerDocument : document).body.offsetHeight;
|
|
10193
10106
|
}
|
|
10194
|
-
|
|
10195
10107
|
//#endregion
|
|
10196
10108
|
//#region packages/runtime-dom/src/modules/class.ts
|
|
10197
10109
|
function patchClass(el, value, isSVG) {
|
|
@@ -10201,7 +10113,6 @@ function patchClass(el, value, isSVG) {
|
|
|
10201
10113
|
else if (isSVG) el.setAttribute("class", value);
|
|
10202
10114
|
else el.className = value;
|
|
10203
10115
|
}
|
|
10204
|
-
|
|
10205
10116
|
//#endregion
|
|
10206
10117
|
//#region packages/runtime-dom/src/directives/vShow.ts
|
|
10207
10118
|
const vShowOriginalDisplay = Symbol("_vod");
|
|
@@ -10240,7 +10151,6 @@ function initVShowForSSR() {
|
|
|
10240
10151
|
if (!value) return { style: { display: "none" } };
|
|
10241
10152
|
};
|
|
10242
10153
|
}
|
|
10243
|
-
|
|
10244
10154
|
//#endregion
|
|
10245
10155
|
//#region packages/runtime-dom/src/helpers/useCssVars.ts
|
|
10246
10156
|
const CSS_VAR_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
|
|
@@ -10326,7 +10236,6 @@ function setVarsOnNode(el, vars) {
|
|
|
10326
10236
|
style[CSS_VAR_TEXT] = cssText;
|
|
10327
10237
|
}
|
|
10328
10238
|
}
|
|
10329
|
-
|
|
10330
10239
|
//#endregion
|
|
10331
10240
|
//#region packages/runtime-dom/src/modules/style.ts
|
|
10332
10241
|
const displayRE = /(?:^|;)\s*display\s*:/;
|
|
@@ -10393,7 +10302,6 @@ function autoPrefix(style, rawName) {
|
|
|
10393
10302
|
}
|
|
10394
10303
|
return rawName;
|
|
10395
10304
|
}
|
|
10396
|
-
|
|
10397
10305
|
//#endregion
|
|
10398
10306
|
//#region packages/runtime-dom/src/modules/attrs.ts
|
|
10399
10307
|
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
@@ -10421,7 +10329,6 @@ function compatCoerceAttr(el, key, value, instance = null) {
|
|
|
10421
10329
|
}
|
|
10422
10330
|
return false;
|
|
10423
10331
|
}
|
|
10424
|
-
|
|
10425
10332
|
//#endregion
|
|
10426
10333
|
//#region packages/runtime-dom/src/modules/props.ts
|
|
10427
10334
|
function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
@@ -10464,7 +10371,6 @@ function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
|
10464
10371
|
}
|
|
10465
10372
|
needRemove && el.removeAttribute(attrName || key);
|
|
10466
10373
|
}
|
|
10467
|
-
|
|
10468
10374
|
//#endregion
|
|
10469
10375
|
//#region packages/runtime-dom/src/modules/events.ts
|
|
10470
10376
|
function addEventListener(el, event, handler, options) {
|
|
@@ -10528,7 +10434,6 @@ function patchStopImmediatePropagation(e, value) {
|
|
|
10528
10434
|
return value.map((fn) => (e) => !e._stopped && fn && fn(e));
|
|
10529
10435
|
} else return value;
|
|
10530
10436
|
}
|
|
10531
|
-
|
|
10532
10437
|
//#endregion
|
|
10533
10438
|
//#region packages/runtime-dom/src/patchProp.ts
|
|
10534
10439
|
const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|
|
@@ -10540,7 +10445,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) =>
|
|
|
10540
10445
|
} else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
|
|
10541
10446
|
patchDOMProp(el, key, nextValue, parentComponent);
|
|
10542
10447
|
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
10543
|
-
} else if (el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
10448
|
+
} else if (el._isVueCE && (shouldSetAsPropForVueCE(el, key) || el._def.__asyncLoader && (/[A-Z]/.test(key) || !isString(nextValue)))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
10544
10449
|
else {
|
|
10545
10450
|
if (key === "true-value") el._trueValue = nextValue;
|
|
10546
10451
|
else if (key === "false-value") el._falseValue = nextValue;
|
|
@@ -10557,7 +10462,12 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
10557
10462
|
if (isNativeOn(key) && isString(value)) return false;
|
|
10558
10463
|
return key in el;
|
|
10559
10464
|
}
|
|
10560
|
-
|
|
10465
|
+
function shouldSetAsPropForVueCE(el, key) {
|
|
10466
|
+
const props = el._def.props;
|
|
10467
|
+
if (!props) return false;
|
|
10468
|
+
const camelKey = camelize(key);
|
|
10469
|
+
return Array.isArray(props) ? props.some((prop) => camelize(prop) === camelKey) : Object.keys(props).some((prop) => camelize(prop) === camelKey);
|
|
10470
|
+
}
|
|
10561
10471
|
//#endregion
|
|
10562
10472
|
//#region packages/runtime-dom/src/apiCustomElement.ts
|
|
10563
10473
|
const REMOVAL = {};
|
|
@@ -10587,6 +10497,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10587
10497
|
this._resolved = false;
|
|
10588
10498
|
this._numberProps = null;
|
|
10589
10499
|
this._styleChildren = /* @__PURE__ */ new WeakSet();
|
|
10500
|
+
this._styleAnchors = /* @__PURE__ */ new WeakMap();
|
|
10590
10501
|
this._patching = false;
|
|
10591
10502
|
this._dirty = false;
|
|
10592
10503
|
this._ob = null;
|
|
@@ -10605,7 +10516,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10605
10516
|
if (!this.shadowRoot && !this._resolved) this._parseSlots();
|
|
10606
10517
|
this._connected = true;
|
|
10607
10518
|
let parent = this;
|
|
10608
|
-
while (parent = parent && (parent.parentNode || parent.host)) if (parent instanceof VueElementBase) {
|
|
10519
|
+
while (parent = parent && (parent.assignedSlot || parent.parentNode || parent.host)) if (parent instanceof VueElementBase) {
|
|
10609
10520
|
this._parent = parent;
|
|
10610
10521
|
break;
|
|
10611
10522
|
}
|
|
@@ -10698,6 +10609,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10698
10609
|
this._styles.forEach((s) => this._root.removeChild(s));
|
|
10699
10610
|
this._styles.length = 0;
|
|
10700
10611
|
}
|
|
10612
|
+
this._styleAnchors.delete(this._def);
|
|
10701
10613
|
this._applyStyles(newStyles);
|
|
10702
10614
|
if (!this._instance.vapor) this._instance = null;
|
|
10703
10615
|
this._update();
|
|
@@ -10763,18 +10675,26 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10763
10675
|
}
|
|
10764
10676
|
}
|
|
10765
10677
|
}
|
|
10766
|
-
_applyStyles(styles, owner) {
|
|
10678
|
+
_applyStyles(styles, owner, parentComp) {
|
|
10767
10679
|
if (!styles) return;
|
|
10768
10680
|
if (owner) {
|
|
10769
10681
|
if (owner === this._def || this._styleChildren.has(owner)) return;
|
|
10770
10682
|
this._styleChildren.add(owner);
|
|
10771
10683
|
}
|
|
10772
10684
|
const nonce = this._nonce;
|
|
10685
|
+
const root = this.shadowRoot;
|
|
10686
|
+
const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
|
|
10687
|
+
let last = null;
|
|
10773
10688
|
for (let i = styles.length - 1; i >= 0; i--) {
|
|
10774
10689
|
const s = document.createElement("style");
|
|
10775
10690
|
if (nonce) s.setAttribute("nonce", nonce);
|
|
10776
10691
|
s.textContent = styles[i];
|
|
10777
|
-
|
|
10692
|
+
root.insertBefore(s, last || insertionAnchor);
|
|
10693
|
+
last = s;
|
|
10694
|
+
if (i === 0) {
|
|
10695
|
+
if (!parentComp) this._styleAnchors.set(this._def, s);
|
|
10696
|
+
if (owner) this._styleAnchors.set(owner, s);
|
|
10697
|
+
}
|
|
10778
10698
|
if (!!(process.env.NODE_ENV !== "production")) if (owner) {
|
|
10779
10699
|
if (owner.__hmrId) {
|
|
10780
10700
|
if (!this._childStyles) this._childStyles = /* @__PURE__ */ new Map();
|
|
@@ -10785,6 +10705,20 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10785
10705
|
} else (this._styles || (this._styles = [])).push(s);
|
|
10786
10706
|
}
|
|
10787
10707
|
}
|
|
10708
|
+
_getStyleAnchor(comp) {
|
|
10709
|
+
if (!comp) return null;
|
|
10710
|
+
const anchor = this._styleAnchors.get(comp);
|
|
10711
|
+
if (anchor && anchor.parentNode === this.shadowRoot) return anchor;
|
|
10712
|
+
if (anchor) this._styleAnchors.delete(comp);
|
|
10713
|
+
return null;
|
|
10714
|
+
}
|
|
10715
|
+
_getRootStyleInsertionAnchor(root) {
|
|
10716
|
+
for (let i = 0; i < root.childNodes.length; i++) {
|
|
10717
|
+
const node = root.childNodes[i];
|
|
10718
|
+
if (!(node instanceof HTMLStyleElement)) return node;
|
|
10719
|
+
}
|
|
10720
|
+
return null;
|
|
10721
|
+
}
|
|
10788
10722
|
/**
|
|
10789
10723
|
* Only called when shadowRoot is false
|
|
10790
10724
|
*/
|
|
@@ -10847,8 +10781,8 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10847
10781
|
/**
|
|
10848
10782
|
* @internal
|
|
10849
10783
|
*/
|
|
10850
|
-
_injectChildStyle(comp) {
|
|
10851
|
-
this._applyStyles(comp.styles, comp);
|
|
10784
|
+
_injectChildStyle(comp, parentComp) {
|
|
10785
|
+
this._applyStyles(comp.styles, comp, parentComp);
|
|
10852
10786
|
}
|
|
10853
10787
|
/**
|
|
10854
10788
|
* @internal
|
|
@@ -10876,6 +10810,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10876
10810
|
_removeChildStyle(comp) {
|
|
10877
10811
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10878
10812
|
this._styleChildren.delete(comp);
|
|
10813
|
+
this._styleAnchors.delete(comp);
|
|
10879
10814
|
if (this._childStyles && comp.__hmrId) {
|
|
10880
10815
|
const oldStyles = this._childStyles.get(comp.__hmrId);
|
|
10881
10816
|
if (oldStyles) {
|
|
@@ -10945,7 +10880,6 @@ function useShadowRoot() {
|
|
|
10945
10880
|
const el = !!(process.env.NODE_ENV !== "production") ? useHost("useShadowRoot") : useHost();
|
|
10946
10881
|
return el && el.shadowRoot;
|
|
10947
10882
|
}
|
|
10948
|
-
|
|
10949
10883
|
//#endregion
|
|
10950
10884
|
//#region packages/runtime-dom/src/helpers/useCssModule.ts
|
|
10951
10885
|
function useCssModule(name = "$style") {
|
|
@@ -10968,7 +10902,6 @@ function useCssModule(name = "$style") {
|
|
|
10968
10902
|
return mod;
|
|
10969
10903
|
}
|
|
10970
10904
|
}
|
|
10971
|
-
|
|
10972
10905
|
//#endregion
|
|
10973
10906
|
//#region packages/runtime-dom/src/components/TransitionGroup.ts
|
|
10974
10907
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -10984,7 +10917,7 @@ const decorate = (t) => {
|
|
|
10984
10917
|
t.__isBuiltIn = true;
|
|
10985
10918
|
return t;
|
|
10986
10919
|
};
|
|
10987
|
-
const
|
|
10920
|
+
const TransitionGroup = /* @__PURE__ */ decorate({
|
|
10988
10921
|
name: "TransitionGroup",
|
|
10989
10922
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
10990
10923
|
tag: String,
|
|
@@ -11036,7 +10969,6 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
11036
10969
|
};
|
|
11037
10970
|
}
|
|
11038
10971
|
});
|
|
11039
|
-
const TransitionGroup = TransitionGroupImpl;
|
|
11040
10972
|
function callPendingCbs(el) {
|
|
11041
10973
|
if (el[moveCbKey]) el[moveCbKey]();
|
|
11042
10974
|
if (el[enterCbKey]) el[enterCbKey]();
|
|
@@ -11102,7 +11034,6 @@ const handleMovedChildren = (el, moveClass) => {
|
|
|
11102
11034
|
};
|
|
11103
11035
|
el.addEventListener("transitionend", cb);
|
|
11104
11036
|
};
|
|
11105
|
-
|
|
11106
11037
|
//#endregion
|
|
11107
11038
|
//#region packages/runtime-dom/src/directives/vModel.ts
|
|
11108
11039
|
const getModelAssigner = (vnode) => {
|
|
@@ -11352,7 +11283,6 @@ function initVModelForSSR() {
|
|
|
11352
11283
|
if (modelToUse.getSSRProps) return modelToUse.getSSRProps(binding, vnode);
|
|
11353
11284
|
};
|
|
11354
11285
|
}
|
|
11355
|
-
|
|
11356
11286
|
//#endregion
|
|
11357
11287
|
//#region packages/runtime-dom/src/directives/vOn.ts
|
|
11358
11288
|
const systemModifiers = [
|
|
@@ -11427,7 +11357,6 @@ const withKeys = (fn, modifiers) => {
|
|
|
11427
11357
|
}
|
|
11428
11358
|
}));
|
|
11429
11359
|
};
|
|
11430
|
-
|
|
11431
11360
|
//#endregion
|
|
11432
11361
|
//#region packages/runtime-dom/src/index.ts
|
|
11433
11362
|
var src_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -11629,6 +11558,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
11629
11558
|
shallowReadonly: () => shallowReadonly,
|
|
11630
11559
|
shallowRef: () => shallowRef,
|
|
11631
11560
|
shouldSetAsProp: () => shouldSetAsProp,
|
|
11561
|
+
shouldSetAsPropForVueCE: () => shouldSetAsPropForVueCE,
|
|
11632
11562
|
simpleSetCurrentInstance: () => simpleSetCurrentInstance,
|
|
11633
11563
|
ssrContextKey: () => ssrContextKey,
|
|
11634
11564
|
ssrUtils: () => ssrUtils,
|
|
@@ -11816,13 +11746,11 @@ const initDirectivesForSSR = () => {
|
|
|
11816
11746
|
initVShowForSSR();
|
|
11817
11747
|
}
|
|
11818
11748
|
};
|
|
11819
|
-
|
|
11820
11749
|
//#endregion
|
|
11821
11750
|
//#region packages/vue-compat/src/dev.ts
|
|
11822
11751
|
function initDev() {
|
|
11823
11752
|
initCustomFormatter();
|
|
11824
11753
|
}
|
|
11825
|
-
|
|
11826
11754
|
//#endregion
|
|
11827
11755
|
//#region packages/vue-compat/src/createCompatVue.ts
|
|
11828
11756
|
if (!!(process.env.NODE_ENV !== "production")) initDev();
|
|
@@ -11842,7 +11770,6 @@ function createCompatVue() {
|
|
|
11842
11770
|
extend(Vue, src_exports);
|
|
11843
11771
|
return Vue;
|
|
11844
11772
|
}
|
|
11845
|
-
|
|
11846
11773
|
//#endregion
|
|
11847
11774
|
//#region packages/compiler-core/src/runtimeHelpers.ts
|
|
11848
11775
|
const FRAGMENT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
|
|
@@ -11937,7 +11864,6 @@ function registerRuntimeHelpers(helpers) {
|
|
|
11937
11864
|
helperNameMap[s] = helpers[s];
|
|
11938
11865
|
});
|
|
11939
11866
|
}
|
|
11940
|
-
|
|
11941
11867
|
//#endregion
|
|
11942
11868
|
//#region packages/compiler-core/src/ast.ts
|
|
11943
11869
|
const locStub = {
|
|
@@ -12089,7 +12015,6 @@ function convertToBlock(node, { helper, removeHelper, inSSR }) {
|
|
|
12089
12015
|
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
12090
12016
|
}
|
|
12091
12017
|
}
|
|
12092
|
-
|
|
12093
12018
|
//#endregion
|
|
12094
12019
|
//#region packages/compiler-core/src/tokenizer.ts
|
|
12095
12020
|
const defaultDelimitersOpen = new Uint8Array([123, 123]);
|
|
@@ -12798,7 +12723,6 @@ var Tokenizer = class {
|
|
|
12798
12723
|
}
|
|
12799
12724
|
emitCodePoint(cp, consumed) {}
|
|
12800
12725
|
};
|
|
12801
|
-
|
|
12802
12726
|
//#endregion
|
|
12803
12727
|
//#region packages/compiler-core/src/compat/compatConfig.ts
|
|
12804
12728
|
const deprecationData = {
|
|
@@ -12856,7 +12780,6 @@ function warnDeprecation(key, context, loc, ...args) {
|
|
|
12856
12780
|
if (loc) err.loc = loc;
|
|
12857
12781
|
context.onWarn(err);
|
|
12858
12782
|
}
|
|
12859
|
-
|
|
12860
12783
|
//#endregion
|
|
12861
12784
|
//#region packages/compiler-core/src/errors.ts
|
|
12862
12785
|
function defaultOnError(error) {
|
|
@@ -12929,7 +12852,6 @@ const errorMessages = {
|
|
|
12929
12852
|
[51]: `"scopeId" option is only supported in module mode.`,
|
|
12930
12853
|
[54]: ``
|
|
12931
12854
|
};
|
|
12932
|
-
|
|
12933
12855
|
//#endregion
|
|
12934
12856
|
//#region packages/compiler-core/src/utils.ts
|
|
12935
12857
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -13129,7 +13051,6 @@ function isWhitespaceText(node) {
|
|
|
13129
13051
|
function isCommentOrWhitespace(node) {
|
|
13130
13052
|
return node.type === 3 || isWhitespaceText(node);
|
|
13131
13053
|
}
|
|
13132
|
-
|
|
13133
13054
|
//#endregion
|
|
13134
13055
|
//#region packages/compiler-core/src/parser.ts
|
|
13135
13056
|
const defaultParserOptions = {
|
|
@@ -13664,7 +13585,6 @@ function baseParse(input, options) {
|
|
|
13664
13585
|
currentRoot = null;
|
|
13665
13586
|
return root;
|
|
13666
13587
|
}
|
|
13667
|
-
|
|
13668
13588
|
//#endregion
|
|
13669
13589
|
//#region packages/compiler-core/src/transforms/cacheStatic.ts
|
|
13670
13590
|
function cacheStatic(root, context) {
|
|
@@ -13862,7 +13782,6 @@ function getNodeProps(node) {
|
|
|
13862
13782
|
const codegenNode = node.codegenNode;
|
|
13863
13783
|
if (codegenNode.type === 13) return codegenNode.props;
|
|
13864
13784
|
}
|
|
13865
|
-
|
|
13866
13785
|
//#endregion
|
|
13867
13786
|
//#region packages/compiler-core/src/transform.ts
|
|
13868
13787
|
function getSelfName(filename) {
|
|
@@ -14073,7 +13992,6 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
14073
13992
|
}
|
|
14074
13993
|
};
|
|
14075
13994
|
}
|
|
14076
|
-
|
|
14077
13995
|
//#endregion
|
|
14078
13996
|
//#region packages/compiler-core/src/codegen.ts
|
|
14079
13997
|
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
@@ -14500,7 +14418,6 @@ function genCacheExpression(node, context) {
|
|
|
14500
14418
|
push(`)`);
|
|
14501
14419
|
if (needArraySpread) push(`)]`);
|
|
14502
14420
|
}
|
|
14503
|
-
|
|
14504
14421
|
//#endregion
|
|
14505
14422
|
//#region packages/compiler-core/src/validateExpression.ts
|
|
14506
14423
|
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");
|
|
@@ -14522,7 +14439,6 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
14522
14439
|
context.onError(createCompilerError(46, node.loc, void 0, message));
|
|
14523
14440
|
}
|
|
14524
14441
|
}
|
|
14525
|
-
|
|
14526
14442
|
//#endregion
|
|
14527
14443
|
//#region packages/compiler-core/src/transforms/transformExpression.ts
|
|
14528
14444
|
const transformExpression = (node, context) => {
|
|
@@ -14544,7 +14460,6 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
14544
14460
|
if (!!(process.env.NODE_ENV !== "production")) validateBrowserExpression(node, context, asParams, asRawStatements);
|
|
14545
14461
|
return node;
|
|
14546
14462
|
}
|
|
14547
|
-
|
|
14548
14463
|
//#endregion
|
|
14549
14464
|
//#region packages/compiler-core/src/transforms/vIf.ts
|
|
14550
14465
|
const transformIf = createStructuralDirectiveTransform(/^(?:if|else|else-if)$/, (node, dir, context) => {
|
|
@@ -14667,7 +14582,6 @@ function getParentCondition(node) {
|
|
|
14667
14582
|
else return node;
|
|
14668
14583
|
else if (node.type === 20) node = node.value;
|
|
14669
14584
|
}
|
|
14670
|
-
|
|
14671
14585
|
//#endregion
|
|
14672
14586
|
//#region packages/compiler-core/src/transforms/vFor.ts
|
|
14673
14587
|
const transformFor = createStructuralDirectiveTransform("for", (node, dir, context) => {
|
|
@@ -14792,7 +14706,6 @@ function createParamsList(args) {
|
|
|
14792
14706
|
while (i--) if (args[i]) break;
|
|
14793
14707
|
return args.slice(0, i + 1).map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));
|
|
14794
14708
|
}
|
|
14795
|
-
|
|
14796
14709
|
//#endregion
|
|
14797
14710
|
//#region packages/compiler-core/src/transforms/vSlot.ts
|
|
14798
14711
|
const defaultFallback = createSimpleExpression(`undefined`, false);
|
|
@@ -14923,7 +14836,6 @@ function hasForwardedSlots(children) {
|
|
|
14923
14836
|
}
|
|
14924
14837
|
return false;
|
|
14925
14838
|
}
|
|
14926
|
-
|
|
14927
14839
|
//#endregion
|
|
14928
14840
|
//#region packages/compiler-core/src/transforms/transformElement.ts
|
|
14929
14841
|
const directiveImportMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -15218,7 +15130,6 @@ function stringifyDynamicPropNames(props) {
|
|
|
15218
15130
|
function isComponentTag(tag) {
|
|
15219
15131
|
return tag === "component" || tag === "Component";
|
|
15220
15132
|
}
|
|
15221
|
-
|
|
15222
15133
|
//#endregion
|
|
15223
15134
|
//#region packages/compiler-core/src/transforms/transformSlotOutlet.ts
|
|
15224
15135
|
const transformSlotOutlet = (node, context) => {
|
|
@@ -15276,7 +15187,6 @@ function processSlotOutlet(node, context) {
|
|
|
15276
15187
|
slotProps
|
|
15277
15188
|
};
|
|
15278
15189
|
}
|
|
15279
|
-
|
|
15280
15190
|
//#endregion
|
|
15281
15191
|
//#region packages/compiler-core/src/transforms/vOn.ts
|
|
15282
15192
|
const transformOn$1 = (dir, node, context, augmentor) => {
|
|
@@ -15318,7 +15228,6 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
15318
15228
|
ret.props.forEach((p) => p.key.isHandlerKey = true);
|
|
15319
15229
|
return ret;
|
|
15320
15230
|
};
|
|
15321
|
-
|
|
15322
15231
|
//#endregion
|
|
15323
15232
|
//#region packages/compiler-core/src/transforms/vBind.ts
|
|
15324
15233
|
const transformBind = (dir, _node, context) => {
|
|
@@ -15350,7 +15259,6 @@ const injectPrefix = (arg, prefix) => {
|
|
|
15350
15259
|
arg.children.push(`)`);
|
|
15351
15260
|
}
|
|
15352
15261
|
};
|
|
15353
|
-
|
|
15354
15262
|
//#endregion
|
|
15355
15263
|
//#region packages/compiler-core/src/transforms/transformText.ts
|
|
15356
15264
|
const transformText = (node, context) => {
|
|
@@ -15393,7 +15301,6 @@ const transformText = (node, context) => {
|
|
|
15393
15301
|
}
|
|
15394
15302
|
};
|
|
15395
15303
|
};
|
|
15396
|
-
|
|
15397
15304
|
//#endregion
|
|
15398
15305
|
//#region packages/compiler-core/src/transforms/vOnce.ts
|
|
15399
15306
|
const seen$1 = /* @__PURE__ */ new WeakSet();
|
|
@@ -15410,7 +15317,6 @@ const transformOnce = (node, context) => {
|
|
|
15410
15317
|
};
|
|
15411
15318
|
}
|
|
15412
15319
|
};
|
|
15413
|
-
|
|
15414
15320
|
//#endregion
|
|
15415
15321
|
//#region packages/compiler-core/src/transforms/vModel.ts
|
|
15416
15322
|
const transformModel$1 = (dir, node, context) => {
|
|
@@ -15453,7 +15359,6 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
15453
15359
|
function createTransformProps(props = []) {
|
|
15454
15360
|
return { props };
|
|
15455
15361
|
}
|
|
15456
|
-
|
|
15457
15362
|
//#endregion
|
|
15458
15363
|
//#region packages/compiler-core/src/compat/transformFilter.ts
|
|
15459
15364
|
const validDivisionCharRE = /[\w).+\-_$\]]/;
|
|
@@ -15567,7 +15472,6 @@ function wrapFilter(exp, filter, context) {
|
|
|
15567
15472
|
return `${toValidAssetId(name, "filter")}(${exp}${args !== ")" ? "," + args : args}`;
|
|
15568
15473
|
}
|
|
15569
15474
|
}
|
|
15570
|
-
|
|
15571
15475
|
//#endregion
|
|
15572
15476
|
//#region packages/compiler-core/src/transforms/vMemo.ts
|
|
15573
15477
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -15591,7 +15495,6 @@ const transformMemo = (node, context) => {
|
|
|
15591
15495
|
};
|
|
15592
15496
|
}
|
|
15593
15497
|
};
|
|
15594
|
-
|
|
15595
15498
|
//#endregion
|
|
15596
15499
|
//#region packages/compiler-core/src/transforms/transformVBindShorthand.ts
|
|
15597
15500
|
const transformVBindShorthand = (node, context) => {
|
|
@@ -15608,7 +15511,6 @@ const transformVBindShorthand = (node, context) => {
|
|
|
15608
15511
|
}
|
|
15609
15512
|
}
|
|
15610
15513
|
};
|
|
15611
|
-
|
|
15612
15514
|
//#endregion
|
|
15613
15515
|
//#region packages/compiler-core/src/compile.ts
|
|
15614
15516
|
function getBaseTransformPreset(prefixIdentifiers) {
|
|
@@ -15648,11 +15550,9 @@ function baseCompile(source, options = {}) {
|
|
|
15648
15550
|
}));
|
|
15649
15551
|
return generate(ast, resolvedOptions);
|
|
15650
15552
|
}
|
|
15651
|
-
|
|
15652
15553
|
//#endregion
|
|
15653
15554
|
//#region packages/compiler-core/src/transforms/noopDirectiveTransform.ts
|
|
15654
15555
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
15655
|
-
|
|
15656
15556
|
//#endregion
|
|
15657
15557
|
//#region packages/compiler-dom/src/runtimeHelpers.ts
|
|
15658
15558
|
const V_MODEL_RADIO = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelRadio` : ``);
|
|
@@ -15677,7 +15577,6 @@ registerRuntimeHelpers({
|
|
|
15677
15577
|
[TRANSITION]: `Transition`,
|
|
15678
15578
|
[TRANSITION_GROUP]: `TransitionGroup`
|
|
15679
15579
|
});
|
|
15680
|
-
|
|
15681
15580
|
//#endregion
|
|
15682
15581
|
//#region packages/compiler-dom/src/decodeHtmlBrowser.ts
|
|
15683
15582
|
let decoder;
|
|
@@ -15691,7 +15590,6 @@ function decodeHtmlBrowser(raw, asAttr = false) {
|
|
|
15691
15590
|
return decoder.textContent;
|
|
15692
15591
|
}
|
|
15693
15592
|
}
|
|
15694
|
-
|
|
15695
15593
|
//#endregion
|
|
15696
15594
|
//#region packages/compiler-dom/src/parserOptions.ts
|
|
15697
15595
|
const parserOptions = {
|
|
@@ -15722,7 +15620,6 @@ const parserOptions = {
|
|
|
15722
15620
|
return ns;
|
|
15723
15621
|
}
|
|
15724
15622
|
};
|
|
15725
|
-
|
|
15726
15623
|
//#endregion
|
|
15727
15624
|
//#region packages/compiler-dom/src/transforms/transformStyle.ts
|
|
15728
15625
|
const transformStyle = (node) => {
|
|
@@ -15741,7 +15638,6 @@ const parseInlineCSS = (cssText, loc) => {
|
|
|
15741
15638
|
const normalized = parseStringStyle(cssText);
|
|
15742
15639
|
return createSimpleExpression(JSON.stringify(normalized), false, loc, 3);
|
|
15743
15640
|
};
|
|
15744
|
-
|
|
15745
15641
|
//#endregion
|
|
15746
15642
|
//#region packages/compiler-dom/src/errors.ts
|
|
15747
15643
|
function createDOMCompilerError(code, loc) {
|
|
@@ -15761,7 +15657,6 @@ const DOMErrorMessages = {
|
|
|
15761
15657
|
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
15762
15658
|
[65]: ``
|
|
15763
15659
|
};
|
|
15764
|
-
|
|
15765
15660
|
//#endregion
|
|
15766
15661
|
//#region packages/compiler-dom/src/transforms/vHtml.ts
|
|
15767
15662
|
const transformVHtml = (dir, node, context) => {
|
|
@@ -15773,7 +15668,6 @@ const transformVHtml = (dir, node, context) => {
|
|
|
15773
15668
|
}
|
|
15774
15669
|
return { props: [createObjectProperty(createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression("", true))] };
|
|
15775
15670
|
};
|
|
15776
|
-
|
|
15777
15671
|
//#endregion
|
|
15778
15672
|
//#region packages/compiler-dom/src/transforms/vText.ts
|
|
15779
15673
|
const transformVText = (dir, node, context) => {
|
|
@@ -15785,7 +15679,6 @@ const transformVText = (dir, node, context) => {
|
|
|
15785
15679
|
}
|
|
15786
15680
|
return { props: [createObjectProperty(createSimpleExpression(`textContent`, true), exp ? getConstantType(exp, context) > 0 ? exp : createCallExpression(context.helperString(TO_DISPLAY_STRING), [exp], loc) : createSimpleExpression("", true))] };
|
|
15787
15681
|
};
|
|
15788
|
-
|
|
15789
15682
|
//#endregion
|
|
15790
15683
|
//#region packages/compiler-dom/src/transforms/vModel.ts
|
|
15791
15684
|
const transformModel = (dir, node, context) => {
|
|
@@ -15829,7 +15722,6 @@ const transformModel = (dir, node, context) => {
|
|
|
15829
15722
|
baseResult.props = baseResult.props.filter((p) => !(p.key.type === 4 && p.key.content === "modelValue"));
|
|
15830
15723
|
return baseResult;
|
|
15831
15724
|
};
|
|
15832
|
-
|
|
15833
15725
|
//#endregion
|
|
15834
15726
|
//#region packages/compiler-dom/src/transforms/vOn.ts
|
|
15835
15727
|
const isEventOptionModifier = /* @__PURE__ */ makeMap(`passive,once,capture`);
|
|
@@ -15892,7 +15784,6 @@ const transformOn = (dir, node, context) => {
|
|
|
15892
15784
|
return { props: [createObjectProperty(key, handlerExp)] };
|
|
15893
15785
|
});
|
|
15894
15786
|
};
|
|
15895
|
-
|
|
15896
15787
|
//#endregion
|
|
15897
15788
|
//#region packages/compiler-dom/src/transforms/vShow.ts
|
|
15898
15789
|
const transformShow = (dir, node, context) => {
|
|
@@ -15903,7 +15794,6 @@ const transformShow = (dir, node, context) => {
|
|
|
15903
15794
|
needRuntime: context.helper(V_SHOW)
|
|
15904
15795
|
};
|
|
15905
15796
|
};
|
|
15906
|
-
|
|
15907
15797
|
//#endregion
|
|
15908
15798
|
//#region packages/compiler-dom/src/transforms/Transition.ts
|
|
15909
15799
|
const transformTransition = (node, context) => {
|
|
@@ -15936,7 +15826,6 @@ function defaultHasMultipleChildren(node) {
|
|
|
15936
15826
|
const child = children[0];
|
|
15937
15827
|
return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(defaultHasMultipleChildren);
|
|
15938
15828
|
}
|
|
15939
|
-
|
|
15940
15829
|
//#endregion
|
|
15941
15830
|
//#region packages/compiler-dom/src/transforms/ignoreSideEffectTags.ts
|
|
15942
15831
|
const ignoreSideEffectTags = (node, context) => {
|
|
@@ -15945,7 +15834,6 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
15945
15834
|
context.removeNode();
|
|
15946
15835
|
}
|
|
15947
15836
|
};
|
|
15948
|
-
|
|
15949
15837
|
//#endregion
|
|
15950
15838
|
//#region packages/compiler-dom/src/htmlNesting.ts
|
|
15951
15839
|
/**
|
|
@@ -16136,7 +16024,6 @@ const knownInvalidParents = {
|
|
|
16136
16024
|
h5: headings,
|
|
16137
16025
|
h6: headings
|
|
16138
16026
|
};
|
|
16139
|
-
|
|
16140
16027
|
//#endregion
|
|
16141
16028
|
//#region packages/compiler-dom/src/transforms/validateHtmlNesting.ts
|
|
16142
16029
|
const validateHtmlNesting = (node, context) => {
|
|
@@ -16146,7 +16033,6 @@ const validateHtmlNesting = (node, context) => {
|
|
|
16146
16033
|
context.onWarn(error);
|
|
16147
16034
|
}
|
|
16148
16035
|
};
|
|
16149
|
-
|
|
16150
16036
|
//#endregion
|
|
16151
16037
|
//#region packages/compiler-dom/src/index.ts
|
|
16152
16038
|
const DOMNodeTransforms = [transformStyle, ...!!(process.env.NODE_ENV !== "production") ? [transformTransition, validateHtmlNesting] : []];
|
|
@@ -16169,7 +16055,6 @@ function compile(src, options = {}) {
|
|
|
16169
16055
|
transformHoist: null
|
|
16170
16056
|
}));
|
|
16171
16057
|
}
|
|
16172
|
-
|
|
16173
16058
|
//#endregion
|
|
16174
16059
|
//#region packages/vue-compat/src/index.ts
|
|
16175
16060
|
const compileCache = Object.create(null);
|
|
@@ -16206,11 +16091,9 @@ function compileToFunction(template, options) {
|
|
|
16206
16091
|
registerRuntimeCompiler(compileToFunction);
|
|
16207
16092
|
const Vue = createCompatVue();
|
|
16208
16093
|
Vue.compile = compileToFunction;
|
|
16209
|
-
|
|
16210
16094
|
//#endregion
|
|
16211
16095
|
//#region packages/vue-compat/src/esm-index.ts
|
|
16212
16096
|
var esm_index_default = Vue;
|
|
16213
16097
|
const configureCompat = Vue.configureCompat;
|
|
16214
|
-
|
|
16215
16098
|
//#endregion
|
|
16216
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MismatchTypes, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, SchedulerJobFlags, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TransitionPropsValidators, TriggerOpTypes, VueElement, VueElementBase, activate, assertNumber, baseApplyTranslation, baseEmit, baseNormalizePropsOptions, baseResolveTransitionHooks, baseUseCssVars, callPendingCbs, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, checkTransitionMode, cloneVNode, compatUtils, computed, configureCompat, createApp, createAppAPI, createAsyncComponentContext, createBlock, createCanSetSetupRefChecker, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createInternalObject, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, currentInstance, customRef, deactivate, esm_index_default as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, devtoolsComponentAdded, effect, effectScope, endMeasure, ensureHydrationRenderer, ensureRenderer, ensureVaporSlotFallback, expose, flushOnAppMount, forceReflow, getAttributeMismatch, getComponentName, getCurrentInstance, getCurrentScope, getCurrentWatcher, getFunctionalFallthrough, getInheritedScopeIds, getTransitionRawChildren, guardReactiveProps, h, handleError, handleMovedChildren, hasCSSTransform, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, initFeatureFlags, inject, isAsyncWrapper, isEmitListener, isHydrating, isKeepAlive, isMapEqual, isMemoSame, isMismatchAllowed, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isSetEqual, isShallow, isTeleportDeferred, isTeleportDisabled, isTemplateNode, isTemplateRefKey, isVNode, isValidHtmlOrSvgAttribute, knownTemplateRefs, leaveCbKey, markAsyncBoundary, markRaw, matches, mergeDefaults, mergeModels, mergeProps, nextTick, nextUid, nodeOps, normalizeClass, normalizeContainer, normalizeProps, normalizeRef, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, patchStyle, performAsyncHydrate, performTransitionEnter, performTransitionLeave, popScopeId, popWarningContext, provide, proxyRefs, pushScopeId, pushWarningContext, queueJob, queuePostFlushCb, reactive, readonly, ref, registerHMR, registerRuntimeCompiler, render, renderList, renderSlot, resetShapeFlag, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolvePropValue, resolveTarget as resolveTeleportTarget, resolveTransitionHooks, resolveTransitionProps, setBlockTracking, setCurrentInstance, setCurrentRenderingInstance, setDevtoolsHook, setIsHydratingEnabled, setRef, setTransitionHooks, setVarsOnNode, shallowReactive, shallowReadonly, shallowRef, shouldSetAsProp, simpleSetCurrentInstance, ssrContextKey, ssrUtils, startMeasure, stop, svgNS, toClassSet, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toStyleMap, toValue, transformVNodeArgs, triggerRef, unref, unregisterHMR, unsafeToTrustedHTML, useAsyncComponentState, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelCheckboxInit, vModelCheckboxUpdate, vModelDynamic, getValue as vModelGetValue, vModelRadio, vModelSelect, vModelSelectInit, vModelSetSelected, vModelText, vModelTextInit, vModelTextUpdate, vShow, vShowHidden, vShowOriginalDisplay, validateComponentName, validateProps, version, warn, warnExtraneousAttributes, warnPropMismatch, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId, xlinkNS };
|
|
16099
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MismatchTypes, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, SchedulerJobFlags, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TransitionPropsValidators, TriggerOpTypes, VueElement, VueElementBase, activate, assertNumber, baseApplyTranslation, baseEmit, baseNormalizePropsOptions, baseResolveTransitionHooks, baseUseCssVars, callPendingCbs, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, checkTransitionMode, cloneVNode, compatUtils, computed, configureCompat, createApp, createAppAPI, createAsyncComponentContext, createBlock, createCanSetSetupRefChecker, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createInternalObject, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, currentInstance, customRef, deactivate, esm_index_default as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, devtoolsComponentAdded, effect, effectScope, endMeasure, ensureHydrationRenderer, ensureRenderer, ensureVaporSlotFallback, expose, flushOnAppMount, forceReflow, getAttributeMismatch, getComponentName, getCurrentInstance, getCurrentScope, getCurrentWatcher, getFunctionalFallthrough, getInheritedScopeIds, getTransitionRawChildren, guardReactiveProps, h, handleError, handleMovedChildren, hasCSSTransform, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, initFeatureFlags, inject, isAsyncWrapper, isEmitListener, isHydrating, isKeepAlive, isMapEqual, isMemoSame, isMismatchAllowed, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isSetEqual, isShallow, isTeleportDeferred, isTeleportDisabled, isTemplateNode, isTemplateRefKey, isVNode, isValidHtmlOrSvgAttribute, knownTemplateRefs, leaveCbKey, markAsyncBoundary, markRaw, matches, mergeDefaults, mergeModels, mergeProps, nextTick, nextUid, nodeOps, normalizeClass, normalizeContainer, normalizeProps, normalizeRef, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, patchStyle, performAsyncHydrate, performTransitionEnter, performTransitionLeave, popScopeId, popWarningContext, provide, proxyRefs, pushScopeId, pushWarningContext, queueJob, queuePostFlushCb, reactive, readonly, ref, registerHMR, registerRuntimeCompiler, render, renderList, renderSlot, resetShapeFlag, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolvePropValue, resolveTarget as resolveTeleportTarget, resolveTransitionHooks, resolveTransitionProps, setBlockTracking, setCurrentInstance, setCurrentRenderingInstance, setDevtoolsHook, setIsHydratingEnabled, setRef, setTransitionHooks, setVarsOnNode, shallowReactive, shallowReadonly, shallowRef, shouldSetAsProp, shouldSetAsPropForVueCE, simpleSetCurrentInstance, ssrContextKey, ssrUtils, startMeasure, stop, svgNS, toClassSet, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toStyleMap, toValue, transformVNodeArgs, triggerRef, unref, unregisterHMR, unsafeToTrustedHTML, useAsyncComponentState, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelCheckboxInit, vModelCheckboxUpdate, vModelDynamic, getValue as vModelGetValue, vModelRadio, vModelSelect, vModelSelectInit, vModelSetSelected, vModelText, vModelTextInit, vModelTextUpdate, vShow, vShowHidden, vShowOriginalDisplay, validateComponentName, validateProps, version, warn, warnExtraneousAttributes, warnPropMismatch, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId, xlinkNS };
|