@vue/compat 3.6.0-beta.6 → 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 +20221 -22
- package/dist/vue.cjs.js +132 -255
- package/dist/vue.cjs.prod.js +122 -251
- package/dist/vue.esm-browser.js +129 -249
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +143 -244
- package/dist/vue.global.js +449 -575
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +129 -249
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +143 -244
- package/dist/vue.runtime.global.js +449 -575
- package/dist/vue.runtime.global.prod.js +4 -4
- package/package.json +3 -2
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.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 = 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
|
};
|
|
@@ -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,7 +2688,6 @@ 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;
|
|
@@ -2855,7 +2809,6 @@ function tryWrap(fn) {
|
|
|
2855
2809
|
}
|
|
2856
2810
|
};
|
|
2857
2811
|
}
|
|
2858
|
-
|
|
2859
2812
|
//#endregion
|
|
2860
2813
|
//#region packages/runtime-core/src/devtools.ts
|
|
2861
2814
|
let devtools$1;
|
|
@@ -2924,7 +2877,6 @@ function createDevtoolsPerformanceHook(hook) {
|
|
|
2924
2877
|
function devtoolsComponentEmit(component, event, params) {
|
|
2925
2878
|
emit$2("component:emit", component.appContext.app, component, event, params);
|
|
2926
2879
|
}
|
|
2927
|
-
|
|
2928
2880
|
//#endregion
|
|
2929
2881
|
//#region packages/runtime-core/src/compat/compatConfig.ts
|
|
2930
2882
|
const DeprecationTypes$1 = {
|
|
@@ -3195,7 +3147,6 @@ function checkCompatEnabled$1(key, instance, ...args) {
|
|
|
3195
3147
|
if (enabled) warnDeprecation$1(key, instance, ...args);
|
|
3196
3148
|
return enabled;
|
|
3197
3149
|
}
|
|
3198
|
-
|
|
3199
3150
|
//#endregion
|
|
3200
3151
|
//#region packages/runtime-core/src/compat/instanceEventEmitter.ts
|
|
3201
3152
|
const eventRegistryMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -3249,7 +3200,6 @@ function emit$1(instance, event, args) {
|
|
|
3249
3200
|
if (cbs) callWithAsyncErrorHandling(cbs.map((cb) => cb.bind(instance.proxy)), instance, 6, args);
|
|
3250
3201
|
return instance.proxy;
|
|
3251
3202
|
}
|
|
3252
|
-
|
|
3253
3203
|
//#endregion
|
|
3254
3204
|
//#region packages/runtime-core/src/componentRenderContext.ts
|
|
3255
3205
|
/**
|
|
@@ -3321,7 +3271,6 @@ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
|
3321
3271
|
if (isNonScopedSlot) renderFnWithContext._ns = true;
|
|
3322
3272
|
return renderFnWithContext;
|
|
3323
3273
|
}
|
|
3324
|
-
|
|
3325
3274
|
//#endregion
|
|
3326
3275
|
//#region packages/runtime-core/src/compat/customDirective.ts
|
|
3327
3276
|
const legacyDirectiveHookMap = {
|
|
@@ -3347,7 +3296,6 @@ function mapCompatDirectiveHook(name, dir, instance) {
|
|
|
3347
3296
|
return dir[mappedName];
|
|
3348
3297
|
}
|
|
3349
3298
|
}
|
|
3350
|
-
|
|
3351
3299
|
//#endregion
|
|
3352
3300
|
//#region packages/runtime-core/src/directives.ts
|
|
3353
3301
|
function validateDirectiveName(name) {
|
|
@@ -3403,7 +3351,6 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
3403
3351
|
}
|
|
3404
3352
|
}
|
|
3405
3353
|
}
|
|
3406
|
-
|
|
3407
3354
|
//#endregion
|
|
3408
3355
|
//#region packages/runtime-core/src/apiInject.ts
|
|
3409
3356
|
function provide(key, value) {
|
|
@@ -3432,7 +3379,6 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
3432
3379
|
function hasInjectionContext() {
|
|
3433
3380
|
return !!(getCurrentGenericInstance() || currentApp);
|
|
3434
3381
|
}
|
|
3435
|
-
|
|
3436
3382
|
//#endregion
|
|
3437
3383
|
//#region packages/runtime-core/src/helpers/useSsrContext.ts
|
|
3438
3384
|
const ssrContextKey = Symbol.for("v-scx");
|
|
@@ -3443,7 +3389,6 @@ const useSSRContext = () => {
|
|
|
3443
3389
|
return ctx;
|
|
3444
3390
|
}
|
|
3445
3391
|
};
|
|
3446
|
-
|
|
3447
3392
|
//#endregion
|
|
3448
3393
|
//#region packages/runtime-core/src/apiWatch.ts
|
|
3449
3394
|
function watchEffect(effect, options) {
|
|
@@ -3526,7 +3471,6 @@ function createPathGetter(ctx, path) {
|
|
|
3526
3471
|
return cur;
|
|
3527
3472
|
};
|
|
3528
3473
|
}
|
|
3529
|
-
|
|
3530
3474
|
//#endregion
|
|
3531
3475
|
//#region packages/runtime-core/src/components/Teleport.ts
|
|
3532
3476
|
const TeleportEndKey = Symbol("_vte");
|
|
@@ -3724,7 +3668,6 @@ function prepareAnchor(target, vnode, createText, insert, anchor = null) {
|
|
|
3724
3668
|
}
|
|
3725
3669
|
return targetAnchor;
|
|
3726
3670
|
}
|
|
3727
|
-
|
|
3728
3671
|
//#endregion
|
|
3729
3672
|
//#region packages/runtime-core/src/components/BaseTransition.ts
|
|
3730
3673
|
const leaveCbKey = Symbol("_leaveCb");
|
|
@@ -3848,6 +3791,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3848
3791
|
const key = String(vnode.key);
|
|
3849
3792
|
const leavingVNodesCache = getLeavingNodesForType(state, vnode);
|
|
3850
3793
|
return baseResolveTransitionHooks({
|
|
3794
|
+
isLeaving: () => leavingVNodesCache[key] === vnode,
|
|
3851
3795
|
setLeavingNodeCache: () => {
|
|
3852
3796
|
leavingVNodesCache[key] = vnode;
|
|
3853
3797
|
},
|
|
@@ -3866,7 +3810,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3866
3810
|
}, props, state, instance);
|
|
3867
3811
|
}
|
|
3868
3812
|
function baseResolveTransitionHooks(context, props, state, instance) {
|
|
3869
|
-
const { setLeavingNodeCache, unsetLeavingNodeCache, earlyRemove, cloneHooks } = context;
|
|
3813
|
+
const { isLeaving, setLeavingNodeCache, unsetLeavingNodeCache, earlyRemove, cloneHooks } = context;
|
|
3870
3814
|
const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;
|
|
3871
3815
|
const callHook = (hook, args) => {
|
|
3872
3816
|
hook && callWithAsyncErrorHandling(hook, instance, 9, args);
|
|
@@ -3890,6 +3834,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
3890
3834
|
callHook(hook, [el]);
|
|
3891
3835
|
},
|
|
3892
3836
|
enter(el) {
|
|
3837
|
+
if (isLeaving()) return;
|
|
3893
3838
|
let hook = onEnter;
|
|
3894
3839
|
let afterHook = onAfterEnter;
|
|
3895
3840
|
let cancelHook = onEnterCancelled;
|
|
@@ -3986,14 +3931,12 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
3986
3931
|
function checkTransitionMode(mode) {
|
|
3987
3932
|
if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") warn$1(`invalid <transition> mode: ${mode}`);
|
|
3988
3933
|
}
|
|
3989
|
-
|
|
3990
3934
|
//#endregion
|
|
3991
3935
|
//#region packages/runtime-core/src/apiDefineComponent.ts
|
|
3992
3936
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3993
3937
|
function defineComponent(options, extraOptions) {
|
|
3994
3938
|
return isFunction(options) ? extend({ name: options.name }, extraOptions, { setup: options }) : options;
|
|
3995
3939
|
}
|
|
3996
|
-
|
|
3997
3940
|
//#endregion
|
|
3998
3941
|
//#region packages/runtime-core/src/helpers/useId.ts
|
|
3999
3942
|
function useId() {
|
|
@@ -4015,7 +3958,6 @@ function markAsyncBoundary(instance) {
|
|
|
4015
3958
|
0
|
|
4016
3959
|
];
|
|
4017
3960
|
}
|
|
4018
|
-
|
|
4019
3961
|
//#endregion
|
|
4020
3962
|
//#region packages/runtime-core/src/helpers/useTemplateRef.ts
|
|
4021
3963
|
const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
|
|
@@ -4039,7 +3981,6 @@ function isTemplateRefKey(refs, key) {
|
|
|
4039
3981
|
let desc;
|
|
4040
3982
|
return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);
|
|
4041
3983
|
}
|
|
4042
|
-
|
|
4043
3984
|
//#endregion
|
|
4044
3985
|
//#region packages/runtime-core/src/rendererTemplateRef.ts
|
|
4045
3986
|
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -4138,20 +4079,12 @@ function invalidatePendingSetRef(rawRef) {
|
|
|
4138
4079
|
pendingSetRefMap.delete(rawRef);
|
|
4139
4080
|
}
|
|
4140
4081
|
}
|
|
4141
|
-
|
|
4142
4082
|
//#endregion
|
|
4143
4083
|
//#region packages/runtime-core/src/hydration.ts
|
|
4144
4084
|
let isHydratingEnabled = false;
|
|
4145
4085
|
function setIsHydratingEnabled(value) {
|
|
4146
4086
|
isHydratingEnabled = value;
|
|
4147
4087
|
}
|
|
4148
|
-
/**
|
|
4149
|
-
* VDOM hydration state.
|
|
4150
|
-
* Also used by vapor interop plugin for tree-shaking:
|
|
4151
|
-
* In non-hydration builds, this is never set to true, so the logic in
|
|
4152
|
-
* vaporInteropImpl's hydrate/hydrateSlot can be tree-shaken.
|
|
4153
|
-
*/
|
|
4154
|
-
let isHydrating = false;
|
|
4155
4088
|
let hasLoggedMismatchError = false;
|
|
4156
4089
|
const logMismatchError = () => {
|
|
4157
4090
|
if (hasLoggedMismatchError) return;
|
|
@@ -4177,9 +4110,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4177
4110
|
container._vnode = vnode;
|
|
4178
4111
|
return;
|
|
4179
4112
|
}
|
|
4180
|
-
isHydrating = true;
|
|
4181
4113
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
4182
|
-
isHydrating = false;
|
|
4183
4114
|
flushPostFlushCbs();
|
|
4184
4115
|
container._vnode = vnode;
|
|
4185
4116
|
};
|
|
@@ -4548,7 +4479,6 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
4548
4479
|
return list.includes(MismatchTypeString[allowedType]);
|
|
4549
4480
|
}
|
|
4550
4481
|
}
|
|
4551
|
-
|
|
4552
4482
|
//#endregion
|
|
4553
4483
|
//#region packages/runtime-core/src/hydrationStrategies.ts
|
|
4554
4484
|
let requestIdleCallback;
|
|
@@ -4637,7 +4567,6 @@ function forEachElement(node, cb) {
|
|
|
4637
4567
|
}
|
|
4638
4568
|
} else cb(node);
|
|
4639
4569
|
}
|
|
4640
|
-
|
|
4641
4570
|
//#endregion
|
|
4642
4571
|
//#region packages/runtime-core/src/apiAsyncComponent.ts
|
|
4643
4572
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
@@ -4774,7 +4703,6 @@ function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydra
|
|
|
4774
4703
|
if (getResolvedComp()) doHydrate();
|
|
4775
4704
|
else load().then(() => !instance.isUnmounted && doHydrate());
|
|
4776
4705
|
}
|
|
4777
|
-
|
|
4778
4706
|
//#endregion
|
|
4779
4707
|
//#region packages/runtime-core/src/components/KeepAlive.ts
|
|
4780
4708
|
const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
|
|
@@ -4995,9 +4923,7 @@ function deactivate(vnode, container, { m: move }, parentComponent, parentSuspen
|
|
|
4995
4923
|
instance.isDeactivated = true;
|
|
4996
4924
|
}, void 0, parentSuspense);
|
|
4997
4925
|
devtoolsComponentAdded(instance);
|
|
4998
|
-
instance.__keepAliveStorageContainer = container;
|
|
4999
4926
|
}
|
|
5000
|
-
|
|
5001
4927
|
//#endregion
|
|
5002
4928
|
//#region packages/runtime-core/src/apiLifecycle.ts
|
|
5003
4929
|
function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
@@ -5033,7 +4959,6 @@ const onRenderTracked = /* @__PURE__ */ createHook("rtc");
|
|
|
5033
4959
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
5034
4960
|
injectHook("ec", hook, target);
|
|
5035
4961
|
}
|
|
5036
|
-
|
|
5037
4962
|
//#endregion
|
|
5038
4963
|
//#region packages/runtime-core/src/compat/instanceChildren.ts
|
|
5039
4964
|
function getCompatChildren(instance) {
|
|
@@ -5050,7 +4975,6 @@ function walk$1(vnode, children) {
|
|
|
5050
4975
|
for (let i = 0; i < vnodes.length; i++) walk$1(vnodes[i], children);
|
|
5051
4976
|
}
|
|
5052
4977
|
}
|
|
5053
|
-
|
|
5054
4978
|
//#endregion
|
|
5055
4979
|
//#region packages/runtime-core/src/compat/instanceListeners.ts
|
|
5056
4980
|
function getCompatListeners(instance) {
|
|
@@ -5061,24 +4985,20 @@ function getCompatListeners(instance) {
|
|
|
5061
4985
|
for (const key in rawProps) if (isOn(key)) listeners[key[2].toLowerCase() + key.slice(3)] = rawProps[key];
|
|
5062
4986
|
return listeners;
|
|
5063
4987
|
}
|
|
5064
|
-
|
|
5065
|
-
//#endregion
|
|
5066
|
-
//#region packages/runtime-core/src/helpers/resolveAssets.ts
|
|
5067
|
-
const COMPONENTS = "components";
|
|
5068
4988
|
const DIRECTIVES = "directives";
|
|
5069
4989
|
const FILTERS = "filters";
|
|
5070
4990
|
/**
|
|
5071
4991
|
* @private
|
|
5072
4992
|
*/
|
|
5073
4993
|
function resolveComponent(name, maybeSelfReference) {
|
|
5074
|
-
return resolveAsset(
|
|
4994
|
+
return resolveAsset("components", name, true, maybeSelfReference) || name;
|
|
5075
4995
|
}
|
|
5076
4996
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
5077
4997
|
/**
|
|
5078
4998
|
* @private
|
|
5079
4999
|
*/
|
|
5080
5000
|
function resolveDynamicComponent(component) {
|
|
5081
|
-
if (isString(component)) return resolveAsset(
|
|
5001
|
+
if (isString(component)) return resolveAsset("components", component, false) || component;
|
|
5082
5002
|
else return component || NULL_DYNAMIC_COMPONENT;
|
|
5083
5003
|
}
|
|
5084
5004
|
/**
|
|
@@ -5098,14 +5018,14 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
5098
5018
|
const instance = currentRenderingInstance || currentInstance;
|
|
5099
5019
|
if (instance) {
|
|
5100
5020
|
const Component = instance.type;
|
|
5101
|
-
if (type ===
|
|
5021
|
+
if (type === "components") {
|
|
5102
5022
|
const selfName = getComponentName(Component, false);
|
|
5103
5023
|
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) return Component;
|
|
5104
5024
|
}
|
|
5105
5025
|
const res = resolve(instance[type] || Component[type], name) || resolve(instance.appContext[type], name);
|
|
5106
5026
|
if (!res && maybeSelfReference) return Component;
|
|
5107
5027
|
if (warnMissing && !res) {
|
|
5108
|
-
const extra = type ===
|
|
5028
|
+
const extra = type === "components" ? "\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement." : ``;
|
|
5109
5029
|
warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
5110
5030
|
}
|
|
5111
5031
|
return res;
|
|
@@ -5114,7 +5034,6 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
5114
5034
|
function resolve(registry, name) {
|
|
5115
5035
|
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
5116
5036
|
}
|
|
5117
|
-
|
|
5118
5037
|
//#endregion
|
|
5119
5038
|
//#region packages/runtime-core/src/compat/renderFn.ts
|
|
5120
5039
|
function convertLegacyRenderFn(instance) {
|
|
@@ -5250,7 +5169,6 @@ function defineLegacyVNodeProperties(vnode) {
|
|
|
5250
5169
|
}
|
|
5251
5170
|
/* v8 ignore stop */
|
|
5252
5171
|
}
|
|
5253
|
-
|
|
5254
5172
|
//#endregion
|
|
5255
5173
|
//#region packages/runtime-core/src/compat/componentFunctional.ts
|
|
5256
5174
|
const normalizedFunctionalComponentMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -5292,7 +5210,6 @@ function convertLegacyFunctionalComponent(comp) {
|
|
|
5292
5210
|
normalizedFunctionalComponentMap.set(comp, Func);
|
|
5293
5211
|
return Func;
|
|
5294
5212
|
}
|
|
5295
|
-
|
|
5296
5213
|
//#endregion
|
|
5297
5214
|
//#region packages/runtime-core/src/helpers/renderList.ts
|
|
5298
5215
|
/**
|
|
@@ -5313,11 +5230,14 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5313
5230
|
}
|
|
5314
5231
|
ret = new Array(source.length);
|
|
5315
5232
|
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]);
|
|
5316
|
-
} else if (typeof source === "number") {
|
|
5317
|
-
|
|
5233
|
+
} else if (typeof source === "number") if (!Number.isInteger(source) || source < 0) {
|
|
5234
|
+
warn$1(`The v-for range expects a positive integer value but got ${source}.`);
|
|
5235
|
+
ret = [];
|
|
5236
|
+
} else {
|
|
5318
5237
|
ret = new Array(source);
|
|
5319
5238
|
for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
5320
|
-
}
|
|
5239
|
+
}
|
|
5240
|
+
else if (isObject(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
|
|
5321
5241
|
else {
|
|
5322
5242
|
const keys = Object.keys(source);
|
|
5323
5243
|
ret = new Array(keys.length);
|
|
@@ -5330,7 +5250,6 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5330
5250
|
if (cache) cache[index] = ret;
|
|
5331
5251
|
return ret;
|
|
5332
5252
|
}
|
|
5333
|
-
|
|
5334
5253
|
//#endregion
|
|
5335
5254
|
//#region packages/runtime-core/src/helpers/createSlots.ts
|
|
5336
5255
|
/**
|
|
@@ -5349,7 +5268,6 @@ function createSlots(slots, dynamicSlots) {
|
|
|
5349
5268
|
}
|
|
5350
5269
|
return slots;
|
|
5351
5270
|
}
|
|
5352
|
-
|
|
5353
5271
|
//#endregion
|
|
5354
5272
|
//#region packages/runtime-core/src/helpers/renderSlot.ts
|
|
5355
5273
|
/**
|
|
@@ -5400,7 +5318,6 @@ function ensureVaporSlotFallback(vnodes, fallback) {
|
|
|
5400
5318
|
if (!vaporSlot.fallback && fallback) vaporSlot.fallback = fallback;
|
|
5401
5319
|
}
|
|
5402
5320
|
}
|
|
5403
|
-
|
|
5404
5321
|
//#endregion
|
|
5405
5322
|
//#region packages/runtime-core/src/helpers/toHandlers.ts
|
|
5406
5323
|
/**
|
|
@@ -5416,7 +5333,6 @@ function toHandlers(obj, preserveCaseIfNecessary) {
|
|
|
5416
5333
|
for (const key in obj) ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
|
|
5417
5334
|
return ret;
|
|
5418
5335
|
}
|
|
5419
|
-
|
|
5420
5336
|
//#endregion
|
|
5421
5337
|
//#region packages/runtime-core/src/compat/renderHelpers.ts
|
|
5422
5338
|
function toObject(arr) {
|
|
@@ -5498,7 +5414,6 @@ function legacyBindDynamicKeys(props, values) {
|
|
|
5498
5414
|
function legacyPrependModifier(value, symbol) {
|
|
5499
5415
|
return typeof value === "string" ? symbol + value : value;
|
|
5500
5416
|
}
|
|
5501
|
-
|
|
5502
5417
|
//#endregion
|
|
5503
5418
|
//#region packages/runtime-core/src/compat/instance.ts
|
|
5504
5419
|
function installCompatInstanceProperties(map) {
|
|
@@ -5587,7 +5502,6 @@ function installCompatInstanceProperties(map) {
|
|
|
5587
5502
|
if (isCompatEnabled$1("PRIVATE_APIS", i)) return privateAPIs[key](i);
|
|
5588
5503
|
};
|
|
5589
5504
|
}
|
|
5590
|
-
|
|
5591
5505
|
//#endregion
|
|
5592
5506
|
//#region packages/runtime-core/src/componentPublicInstance.ts
|
|
5593
5507
|
/**
|
|
@@ -5773,7 +5687,6 @@ function exposeSetupStateOnRenderContext(instance) {
|
|
|
5773
5687
|
}
|
|
5774
5688
|
});
|
|
5775
5689
|
}
|
|
5776
|
-
|
|
5777
5690
|
//#endregion
|
|
5778
5691
|
//#region packages/runtime-core/src/compat/data.ts
|
|
5779
5692
|
function deepMergeData(to, from) {
|
|
@@ -5787,7 +5700,6 @@ function deepMergeData(to, from) {
|
|
|
5787
5700
|
}
|
|
5788
5701
|
return to;
|
|
5789
5702
|
}
|
|
5790
|
-
|
|
5791
5703
|
//#endregion
|
|
5792
5704
|
//#region packages/runtime-core/src/apiSetupHelpers.ts
|
|
5793
5705
|
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.`);
|
|
@@ -5826,6 +5738,22 @@ function defineExpose(exposed) {
|
|
|
5826
5738
|
function defineOptions(options) {
|
|
5827
5739
|
warnRuntimeUsage(`defineOptions`);
|
|
5828
5740
|
}
|
|
5741
|
+
/**
|
|
5742
|
+
* Vue `<script setup>` compiler macro for providing type hints to IDEs for
|
|
5743
|
+
* slot name and slot props type checking.
|
|
5744
|
+
*
|
|
5745
|
+
* Example usage:
|
|
5746
|
+
* ```ts
|
|
5747
|
+
* const slots = defineSlots<{
|
|
5748
|
+
* default(props: { msg: string }): any
|
|
5749
|
+
* }>()
|
|
5750
|
+
* ```
|
|
5751
|
+
*
|
|
5752
|
+
* This is only usable inside `<script setup>`, is compiled away in the
|
|
5753
|
+
* output and should **not** be actually called at runtime.
|
|
5754
|
+
*
|
|
5755
|
+
* @see {@link https://vuejs.org/api/sfc-script-setup.html#defineslots}
|
|
5756
|
+
*/
|
|
5829
5757
|
function defineSlots() {
|
|
5830
5758
|
warnRuntimeUsage(`defineSlots`);
|
|
5831
5759
|
return null;
|
|
@@ -5942,16 +5870,29 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
5942
5870
|
*/
|
|
5943
5871
|
function withAsyncContext(getAwaitable) {
|
|
5944
5872
|
const ctx = getCurrentGenericInstance();
|
|
5873
|
+
const inSSRSetup = isInSSRComponentSetup;
|
|
5945
5874
|
if (!ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
|
|
5946
5875
|
let awaitable = getAwaitable();
|
|
5947
5876
|
setCurrentInstance(null, void 0);
|
|
5948
|
-
if (
|
|
5877
|
+
if (inSSRSetup) setInSSRSetupState(false);
|
|
5878
|
+
const restore = () => {
|
|
5949
5879
|
setCurrentInstance(ctx);
|
|
5880
|
+
if (inSSRSetup) setInSSRSetupState(true);
|
|
5881
|
+
};
|
|
5882
|
+
const cleanup = () => {
|
|
5883
|
+
setCurrentInstance(null, void 0);
|
|
5884
|
+
if (inSSRSetup) setInSSRSetupState(false);
|
|
5885
|
+
};
|
|
5886
|
+
if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
|
|
5887
|
+
restore();
|
|
5888
|
+
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
5950
5889
|
throw e;
|
|
5951
5890
|
});
|
|
5952
|
-
return [awaitable, () =>
|
|
5891
|
+
return [awaitable, () => {
|
|
5892
|
+
restore();
|
|
5893
|
+
Promise.resolve().then(cleanup);
|
|
5894
|
+
}];
|
|
5953
5895
|
}
|
|
5954
|
-
|
|
5955
5896
|
//#endregion
|
|
5956
5897
|
//#region packages/runtime-core/src/componentOptions.ts
|
|
5957
5898
|
function createDuplicateChecker() {
|
|
@@ -6217,7 +6158,6 @@ function mergeWatchOptions(to, from) {
|
|
|
6217
6158
|
for (const key in from) merged[key] = mergeAsArray$1(to[key], from[key]);
|
|
6218
6159
|
return merged;
|
|
6219
6160
|
}
|
|
6220
|
-
|
|
6221
6161
|
//#endregion
|
|
6222
6162
|
//#region packages/runtime-core/src/compat/globalConfig.ts
|
|
6223
6163
|
function installLegacyConfigWarnings(config) {
|
|
@@ -6248,7 +6188,6 @@ function installLegacyOptionMergeStrats(config) {
|
|
|
6248
6188
|
if (key in internalOptionMergeStrats && softAssertCompatEnabled("CONFIG_OPTION_MERGE_STRATS", null)) return internalOptionMergeStrats[key];
|
|
6249
6189
|
} });
|
|
6250
6190
|
}
|
|
6251
|
-
|
|
6252
6191
|
//#endregion
|
|
6253
6192
|
//#region packages/runtime-core/src/compat/global.ts
|
|
6254
6193
|
let isCopyingConfig = false;
|
|
@@ -6269,7 +6208,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6269
6208
|
if (options.el) return vm.$mount(options.el);
|
|
6270
6209
|
else return vm;
|
|
6271
6210
|
}
|
|
6272
|
-
Vue.version = `2.6.14-compat:3.6.0-beta.
|
|
6211
|
+
Vue.version = `2.6.14-compat:3.6.0-beta.8`;
|
|
6273
6212
|
Vue.config = singletonApp.config;
|
|
6274
6213
|
Vue.use = (plugin, ...options) => {
|
|
6275
6214
|
if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
|
|
@@ -6549,7 +6488,6 @@ function defineReactiveSimple(obj, key, val) {
|
|
|
6549
6488
|
}
|
|
6550
6489
|
});
|
|
6551
6490
|
}
|
|
6552
|
-
|
|
6553
6491
|
//#endregion
|
|
6554
6492
|
//#region packages/runtime-core/src/apiCreateApp.ts
|
|
6555
6493
|
function createAppContext() {
|
|
@@ -6682,7 +6620,6 @@ function createAppAPI(mount, unmount, getPublicInstance, render) {
|
|
|
6682
6620
|
* `app.runWithContext()`.
|
|
6683
6621
|
*/
|
|
6684
6622
|
let currentApp = null;
|
|
6685
|
-
|
|
6686
6623
|
//#endregion
|
|
6687
6624
|
//#region packages/runtime-core/src/compat/componentVModel.ts
|
|
6688
6625
|
const compatModelEventPrefix = `onModelCompat:`;
|
|
@@ -6725,7 +6662,6 @@ function compatModelEmit(instance, event, args) {
|
|
|
6725
6662
|
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
6726
6663
|
if (modelHandler) callWithErrorHandling(modelHandler, instance, 6, args);
|
|
6727
6664
|
}
|
|
6728
|
-
|
|
6729
6665
|
//#endregion
|
|
6730
6666
|
//#region packages/runtime-core/src/helpers/useModel.ts
|
|
6731
6667
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -6798,7 +6734,6 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
6798
6734
|
const getModelModifiers = (props, modelName, getter) => {
|
|
6799
6735
|
return getter(props, getModifierPropName(modelName)) || getter(props, `${camelize(modelName)}Modifiers`) || getter(props, `${hyphenate(modelName)}Modifiers`);
|
|
6800
6736
|
};
|
|
6801
|
-
|
|
6802
6737
|
//#endregion
|
|
6803
6738
|
//#region packages/runtime-core/src/componentEmits.ts
|
|
6804
6739
|
function emit(instance, event, ...rawArgs) {
|
|
@@ -6894,7 +6829,6 @@ function isEmitListener(options, key) {
|
|
|
6894
6829
|
key = key.slice(2).replace(/Once$/, "");
|
|
6895
6830
|
return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key);
|
|
6896
6831
|
}
|
|
6897
|
-
|
|
6898
6832
|
//#endregion
|
|
6899
6833
|
//#region packages/runtime-core/src/componentRenderUtils.ts
|
|
6900
6834
|
/**
|
|
@@ -7096,7 +7030,6 @@ function updateHOCHostEl({ vnode, parent }, el) {
|
|
|
7096
7030
|
} else break;
|
|
7097
7031
|
}
|
|
7098
7032
|
}
|
|
7099
|
-
|
|
7100
7033
|
//#endregion
|
|
7101
7034
|
//#region packages/runtime-core/src/compat/props.ts
|
|
7102
7035
|
function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
@@ -7112,7 +7045,6 @@ function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
|
7112
7045
|
}
|
|
7113
7046
|
} });
|
|
7114
7047
|
}
|
|
7115
|
-
|
|
7116
7048
|
//#endregion
|
|
7117
7049
|
//#region packages/runtime-core/src/compat/attrsFallthrough.ts
|
|
7118
7050
|
function shouldSkipAttr(key, instance) {
|
|
@@ -7122,7 +7054,6 @@ function shouldSkipAttr(key, instance) {
|
|
|
7122
7054
|
if (key.startsWith("routerView") || key === "registerRouteInstance") return true;
|
|
7123
7055
|
return false;
|
|
7124
7056
|
}
|
|
7125
|
-
|
|
7126
7057
|
//#endregion
|
|
7127
7058
|
//#region packages/runtime-core/src/internalObject.ts
|
|
7128
7059
|
/**
|
|
@@ -7134,7 +7065,6 @@ function shouldSkipAttr(key, instance) {
|
|
|
7134
7065
|
const internalObjectProto = {};
|
|
7135
7066
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7136
7067
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7137
|
-
|
|
7138
7068
|
//#endregion
|
|
7139
7069
|
//#region packages/runtime-core/src/componentProps.ts
|
|
7140
7070
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
@@ -7439,7 +7369,6 @@ function isExplicable(type) {
|
|
|
7439
7369
|
function isBoolean(...args) {
|
|
7440
7370
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
7441
7371
|
}
|
|
7442
|
-
|
|
7443
7372
|
//#endregion
|
|
7444
7373
|
//#region packages/runtime-core/src/componentSlots.ts
|
|
7445
7374
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -7508,7 +7437,6 @@ const updateSlots = (instance, children, optimized) => {
|
|
|
7508
7437
|
for (const key in slots) if (!isInternalKey(key) && deletionComparisonTarget[key] == null) delete slots[key];
|
|
7509
7438
|
}
|
|
7510
7439
|
};
|
|
7511
|
-
|
|
7512
7440
|
//#endregion
|
|
7513
7441
|
//#region packages/runtime-core/src/profiling.ts
|
|
7514
7442
|
let supported;
|
|
@@ -7547,7 +7475,6 @@ function isSupported() {
|
|
|
7547
7475
|
} else supported = false;
|
|
7548
7476
|
return supported;
|
|
7549
7477
|
}
|
|
7550
|
-
|
|
7551
7478
|
//#endregion
|
|
7552
7479
|
//#region packages/runtime-core/src/renderer.ts
|
|
7553
7480
|
const MoveType = {
|
|
@@ -7612,7 +7539,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7612
7539
|
processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
7613
7540
|
break;
|
|
7614
7541
|
case VaporSlot:
|
|
7615
|
-
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent);
|
|
7542
|
+
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent, parentSuspense);
|
|
7616
7543
|
break;
|
|
7617
7544
|
default: if (shapeFlag & 1) processElement(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
7618
7545
|
else if (shapeFlag & 6) processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
@@ -7939,7 +7866,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7939
7866
|
if (isAsyncWrapperVNode && type.__asyncHydrate) type.__asyncHydrate(el, instance, hydrateSubTree);
|
|
7940
7867
|
else hydrateSubTree();
|
|
7941
7868
|
} else {
|
|
7942
|
-
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type);
|
|
7869
|
+
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type, instance.parent ? instance.parent.type : void 0);
|
|
7943
7870
|
startMeasure(instance, `render`);
|
|
7944
7871
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
7945
7872
|
endMeasure(instance, `render`);
|
|
@@ -8461,12 +8388,11 @@ function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
|
8461
8388
|
if (instance) return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
8462
8389
|
return null;
|
|
8463
8390
|
}
|
|
8464
|
-
|
|
8465
8391
|
//#endregion
|
|
8466
8392
|
//#region packages/runtime-core/src/components/Suspense.ts
|
|
8467
8393
|
const isSuspense = (type) => type.__isSuspense;
|
|
8468
8394
|
let suspenseId = 0;
|
|
8469
|
-
const
|
|
8395
|
+
const Suspense = {
|
|
8470
8396
|
name: "Suspense",
|
|
8471
8397
|
__isSuspense: true,
|
|
8472
8398
|
process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) {
|
|
@@ -8484,7 +8410,6 @@ const SuspenseImpl = {
|
|
|
8484
8410
|
hydrate: hydrateSuspense,
|
|
8485
8411
|
normalize: normalizeSuspenseChildren
|
|
8486
8412
|
};
|
|
8487
|
-
const Suspense = SuspenseImpl;
|
|
8488
8413
|
function triggerEvent(vnode, name) {
|
|
8489
8414
|
const eventListener = vnode.props && vnode.props[name];
|
|
8490
8415
|
if (isFunction(eventListener)) eventListener();
|
|
@@ -8745,7 +8670,6 @@ function isVNodeSuspensible(vnode) {
|
|
|
8745
8670
|
const suspensible = vnode.props && vnode.props.suspensible;
|
|
8746
8671
|
return suspensible != null && suspensible !== false;
|
|
8747
8672
|
}
|
|
8748
|
-
|
|
8749
8673
|
//#endregion
|
|
8750
8674
|
//#region packages/runtime-core/src/compat/componentAsync.ts
|
|
8751
8675
|
const normalizedAsyncComponentMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -8771,7 +8695,6 @@ function convertLegacyAsyncComponent(comp) {
|
|
|
8771
8695
|
normalizedAsyncComponentMap.set(comp, converted);
|
|
8772
8696
|
return converted;
|
|
8773
8697
|
}
|
|
8774
|
-
|
|
8775
8698
|
//#endregion
|
|
8776
8699
|
//#region packages/runtime-core/src/compat/component.ts
|
|
8777
8700
|
function convertLegacyComponent(comp, instance) {
|
|
@@ -8787,7 +8710,6 @@ function convertLegacyComponent(comp, instance) {
|
|
|
8787
8710
|
if (isObject(comp) && comp.functional && softAssertCompatEnabled("COMPONENT_FUNCTIONAL", instance, comp)) return convertLegacyFunctionalComponent(comp);
|
|
8788
8711
|
return comp;
|
|
8789
8712
|
}
|
|
8790
|
-
|
|
8791
8713
|
//#endregion
|
|
8792
8714
|
//#region packages/runtime-core/src/vnode.ts
|
|
8793
8715
|
const Fragment = Symbol.for("v-fgt");
|
|
@@ -9109,7 +9031,6 @@ function mergeProps(...args) {
|
|
|
9109
9031
|
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
9110
9032
|
callWithAsyncErrorHandling(hook, instance, 7, [vnode, prevVNode]);
|
|
9111
9033
|
}
|
|
9112
|
-
|
|
9113
9034
|
//#endregion
|
|
9114
9035
|
//#region packages/runtime-core/src/componentCurrentInstance.ts
|
|
9115
9036
|
/**
|
|
@@ -9126,8 +9047,7 @@ let setInSSRSetupState;
|
|
|
9126
9047
|
/**
|
|
9127
9048
|
* @internal
|
|
9128
9049
|
*/
|
|
9129
|
-
let simpleSetCurrentInstance
|
|
9130
|
-
simpleSetCurrentInstance = (i) => {
|
|
9050
|
+
let simpleSetCurrentInstance = (i) => {
|
|
9131
9051
|
currentInstance = i;
|
|
9132
9052
|
};
|
|
9133
9053
|
setInSSRSetupState = (v) => {
|
|
@@ -9169,7 +9089,6 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
9169
9089
|
value: instance[key]
|
|
9170
9090
|
};
|
|
9171
9091
|
};
|
|
9172
|
-
|
|
9173
9092
|
//#endregion
|
|
9174
9093
|
//#region packages/runtime-core/src/component.ts
|
|
9175
9094
|
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
@@ -9468,13 +9387,11 @@ function formatComponentName(instance, Component, isRoot = false) {
|
|
|
9468
9387
|
function isClassComponent(value) {
|
|
9469
9388
|
return isFunction(value) && "__vccOpts" in value;
|
|
9470
9389
|
}
|
|
9471
|
-
|
|
9472
9390
|
//#endregion
|
|
9473
9391
|
//#region packages/runtime-core/src/apiComputed.ts
|
|
9474
9392
|
const computed = (getterOrOptions, debugOptions) => {
|
|
9475
9393
|
return /* @__PURE__ */ computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
9476
9394
|
};
|
|
9477
|
-
|
|
9478
9395
|
//#endregion
|
|
9479
9396
|
//#region packages/runtime-core/src/h.ts
|
|
9480
9397
|
function h(type, propsOrChildren, children) {
|
|
@@ -9494,7 +9411,6 @@ function h(type, propsOrChildren, children) {
|
|
|
9494
9411
|
setBlockTracking(1);
|
|
9495
9412
|
}
|
|
9496
9413
|
}
|
|
9497
|
-
|
|
9498
9414
|
//#endregion
|
|
9499
9415
|
//#region packages/runtime-core/src/customFormatter.ts
|
|
9500
9416
|
function initCustomFormatter() {
|
|
@@ -9659,7 +9575,6 @@ function initCustomFormatter() {
|
|
|
9659
9575
|
if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
|
|
9660
9576
|
else window.devtoolsFormatters = [formatter];
|
|
9661
9577
|
}
|
|
9662
|
-
|
|
9663
9578
|
//#endregion
|
|
9664
9579
|
//#region packages/runtime-core/src/helpers/withMemo.ts
|
|
9665
9580
|
function withMemo(memo, render, cache, index) {
|
|
@@ -9677,10 +9592,9 @@ function isMemoSame(cached, memo) {
|
|
|
9677
9592
|
if (isBlockTreeEnabled > 0 && currentBlock) currentBlock.push(cached);
|
|
9678
9593
|
return true;
|
|
9679
9594
|
}
|
|
9680
|
-
|
|
9681
9595
|
//#endregion
|
|
9682
9596
|
//#region packages/runtime-core/src/index.ts
|
|
9683
|
-
const version = "3.6.0-beta.
|
|
9597
|
+
const version = "3.6.0-beta.8";
|
|
9684
9598
|
const warn = warn$1;
|
|
9685
9599
|
/**
|
|
9686
9600
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -9698,19 +9612,17 @@ const ssrUtils = null;
|
|
|
9698
9612
|
* @internal only exposed in compat builds
|
|
9699
9613
|
*/
|
|
9700
9614
|
const resolveFilter = resolveFilter$1;
|
|
9701
|
-
|
|
9615
|
+
/**
|
|
9616
|
+
* @internal only exposed in compat builds.
|
|
9617
|
+
*/
|
|
9618
|
+
const compatUtils = {
|
|
9702
9619
|
warnDeprecation: warnDeprecation$1,
|
|
9703
9620
|
createCompatVue: createCompatVue$1,
|
|
9704
9621
|
isCompatEnabled: isCompatEnabled$1,
|
|
9705
9622
|
checkCompatEnabled: checkCompatEnabled$1,
|
|
9706
9623
|
softAssertCompatEnabled
|
|
9707
9624
|
};
|
|
9708
|
-
/**
|
|
9709
|
-
* @internal only exposed in compat builds.
|
|
9710
|
-
*/
|
|
9711
|
-
const compatUtils = _compatUtils;
|
|
9712
9625
|
const DeprecationTypes = DeprecationTypes$1;
|
|
9713
|
-
|
|
9714
9626
|
//#endregion
|
|
9715
9627
|
//#region packages/runtime-dom/src/nodeOps.ts
|
|
9716
9628
|
let policy = void 0;
|
|
@@ -9771,7 +9683,6 @@ const nodeOps = {
|
|
|
9771
9683
|
return [before ? before.nextSibling : parent.firstChild, anchor ? anchor.previousSibling : parent.lastChild];
|
|
9772
9684
|
}
|
|
9773
9685
|
};
|
|
9774
|
-
|
|
9775
9686
|
//#endregion
|
|
9776
9687
|
//#region packages/runtime-dom/src/components/Transition.ts
|
|
9777
9688
|
const TRANSITION$1 = "transition";
|
|
@@ -10029,7 +9940,6 @@ function toMs(s) {
|
|
|
10029
9940
|
function forceReflow(el) {
|
|
10030
9941
|
return (el ? el.ownerDocument : document).body.offsetHeight;
|
|
10031
9942
|
}
|
|
10032
|
-
|
|
10033
9943
|
//#endregion
|
|
10034
9944
|
//#region packages/runtime-dom/src/modules/class.ts
|
|
10035
9945
|
function patchClass(el, value, isSVG) {
|
|
@@ -10039,7 +9949,6 @@ function patchClass(el, value, isSVG) {
|
|
|
10039
9949
|
else if (isSVG) el.setAttribute("class", value);
|
|
10040
9950
|
else el.className = value;
|
|
10041
9951
|
}
|
|
10042
|
-
|
|
10043
9952
|
//#endregion
|
|
10044
9953
|
//#region packages/runtime-dom/src/directives/vShow.ts
|
|
10045
9954
|
const vShowOriginalDisplay = Symbol("_vod");
|
|
@@ -10073,7 +9982,6 @@ function setDisplay(el, value) {
|
|
|
10073
9982
|
el.style.display = value ? el[vShowOriginalDisplay] : "none";
|
|
10074
9983
|
el[vShowHidden] = !value;
|
|
10075
9984
|
}
|
|
10076
|
-
|
|
10077
9985
|
//#endregion
|
|
10078
9986
|
//#region packages/runtime-dom/src/helpers/useCssVars.ts
|
|
10079
9987
|
const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT");
|
|
@@ -10158,7 +10066,6 @@ function setVarsOnNode(el, vars) {
|
|
|
10158
10066
|
style[CSS_VAR_TEXT] = cssText;
|
|
10159
10067
|
}
|
|
10160
10068
|
}
|
|
10161
|
-
|
|
10162
10069
|
//#endregion
|
|
10163
10070
|
//#region packages/runtime-dom/src/modules/style.ts
|
|
10164
10071
|
const displayRE = /(?:^|;)\s*display\s*:/;
|
|
@@ -10223,7 +10130,6 @@ function autoPrefix(style, rawName) {
|
|
|
10223
10130
|
}
|
|
10224
10131
|
return rawName;
|
|
10225
10132
|
}
|
|
10226
|
-
|
|
10227
10133
|
//#endregion
|
|
10228
10134
|
//#region packages/runtime-dom/src/modules/attrs.ts
|
|
10229
10135
|
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
@@ -10251,7 +10157,6 @@ function compatCoerceAttr(el, key, value, instance = null) {
|
|
|
10251
10157
|
}
|
|
10252
10158
|
return false;
|
|
10253
10159
|
}
|
|
10254
|
-
|
|
10255
10160
|
//#endregion
|
|
10256
10161
|
//#region packages/runtime-dom/src/modules/props.ts
|
|
10257
10162
|
function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
@@ -10294,7 +10199,6 @@ function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
|
10294
10199
|
}
|
|
10295
10200
|
needRemove && el.removeAttribute(attrName || key);
|
|
10296
10201
|
}
|
|
10297
|
-
|
|
10298
10202
|
//#endregion
|
|
10299
10203
|
//#region packages/runtime-dom/src/modules/events.ts
|
|
10300
10204
|
function addEventListener(el, event, handler, options) {
|
|
@@ -10358,7 +10262,6 @@ function patchStopImmediatePropagation(e, value) {
|
|
|
10358
10262
|
return value.map((fn) => (e) => !e._stopped && fn && fn(e));
|
|
10359
10263
|
} else return value;
|
|
10360
10264
|
}
|
|
10361
|
-
|
|
10362
10265
|
//#endregion
|
|
10363
10266
|
//#region packages/runtime-dom/src/patchProp.ts
|
|
10364
10267
|
const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|
|
@@ -10370,7 +10273,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) =>
|
|
|
10370
10273
|
} else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
|
|
10371
10274
|
patchDOMProp(el, key, nextValue, parentComponent);
|
|
10372
10275
|
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
10373
|
-
} else if (el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
10276
|
+
} else if (el._isVueCE && (shouldSetAsPropForVueCE(el, key) || el._def.__asyncLoader && (/[A-Z]/.test(key) || !isString(nextValue)))) patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
10374
10277
|
else {
|
|
10375
10278
|
if (key === "true-value") el._trueValue = nextValue;
|
|
10376
10279
|
else if (key === "false-value") el._falseValue = nextValue;
|
|
@@ -10387,7 +10290,12 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
10387
10290
|
if (isNativeOn(key) && isString(value)) return false;
|
|
10388
10291
|
return key in el;
|
|
10389
10292
|
}
|
|
10390
|
-
|
|
10293
|
+
function shouldSetAsPropForVueCE(el, key) {
|
|
10294
|
+
const props = el._def.props;
|
|
10295
|
+
if (!props) return false;
|
|
10296
|
+
const camelKey = camelize(key);
|
|
10297
|
+
return Array.isArray(props) ? props.some((prop) => camelize(prop) === camelKey) : Object.keys(props).some((prop) => camelize(prop) === camelKey);
|
|
10298
|
+
}
|
|
10391
10299
|
//#endregion
|
|
10392
10300
|
//#region packages/runtime-dom/src/apiCustomElement.ts
|
|
10393
10301
|
const REMOVAL = {};
|
|
@@ -10417,6 +10325,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10417
10325
|
this._resolved = false;
|
|
10418
10326
|
this._numberProps = null;
|
|
10419
10327
|
this._styleChildren = /* @__PURE__ */ new WeakSet();
|
|
10328
|
+
this._styleAnchors = /* @__PURE__ */ new WeakMap();
|
|
10420
10329
|
this._patching = false;
|
|
10421
10330
|
this._dirty = false;
|
|
10422
10331
|
this._ob = null;
|
|
@@ -10435,7 +10344,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10435
10344
|
if (!this.shadowRoot && !this._resolved) this._parseSlots();
|
|
10436
10345
|
this._connected = true;
|
|
10437
10346
|
let parent = this;
|
|
10438
|
-
while (parent = parent && (parent.parentNode || parent.host)) if (parent instanceof VueElementBase) {
|
|
10347
|
+
while (parent = parent && (parent.assignedSlot || parent.parentNode || parent.host)) if (parent instanceof VueElementBase) {
|
|
10439
10348
|
this._parent = parent;
|
|
10440
10349
|
break;
|
|
10441
10350
|
}
|
|
@@ -10528,6 +10437,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10528
10437
|
this._styles.forEach((s) => this._root.removeChild(s));
|
|
10529
10438
|
this._styles.length = 0;
|
|
10530
10439
|
}
|
|
10440
|
+
this._styleAnchors.delete(this._def);
|
|
10531
10441
|
this._applyStyles(newStyles);
|
|
10532
10442
|
if (!this._instance.vapor) this._instance = null;
|
|
10533
10443
|
this._update();
|
|
@@ -10593,18 +10503,26 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10593
10503
|
}
|
|
10594
10504
|
}
|
|
10595
10505
|
}
|
|
10596
|
-
_applyStyles(styles, owner) {
|
|
10506
|
+
_applyStyles(styles, owner, parentComp) {
|
|
10597
10507
|
if (!styles) return;
|
|
10598
10508
|
if (owner) {
|
|
10599
10509
|
if (owner === this._def || this._styleChildren.has(owner)) return;
|
|
10600
10510
|
this._styleChildren.add(owner);
|
|
10601
10511
|
}
|
|
10602
10512
|
const nonce = this._nonce;
|
|
10513
|
+
const root = this.shadowRoot;
|
|
10514
|
+
const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
|
|
10515
|
+
let last = null;
|
|
10603
10516
|
for (let i = styles.length - 1; i >= 0; i--) {
|
|
10604
10517
|
const s = document.createElement("style");
|
|
10605
10518
|
if (nonce) s.setAttribute("nonce", nonce);
|
|
10606
10519
|
s.textContent = styles[i];
|
|
10607
|
-
|
|
10520
|
+
root.insertBefore(s, last || insertionAnchor);
|
|
10521
|
+
last = s;
|
|
10522
|
+
if (i === 0) {
|
|
10523
|
+
if (!parentComp) this._styleAnchors.set(this._def, s);
|
|
10524
|
+
if (owner) this._styleAnchors.set(owner, s);
|
|
10525
|
+
}
|
|
10608
10526
|
if (owner) {
|
|
10609
10527
|
if (owner.__hmrId) {
|
|
10610
10528
|
if (!this._childStyles) this._childStyles = /* @__PURE__ */ new Map();
|
|
@@ -10615,6 +10533,20 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10615
10533
|
} else (this._styles || (this._styles = [])).push(s);
|
|
10616
10534
|
}
|
|
10617
10535
|
}
|
|
10536
|
+
_getStyleAnchor(comp) {
|
|
10537
|
+
if (!comp) return null;
|
|
10538
|
+
const anchor = this._styleAnchors.get(comp);
|
|
10539
|
+
if (anchor && anchor.parentNode === this.shadowRoot) return anchor;
|
|
10540
|
+
if (anchor) this._styleAnchors.delete(comp);
|
|
10541
|
+
return null;
|
|
10542
|
+
}
|
|
10543
|
+
_getRootStyleInsertionAnchor(root) {
|
|
10544
|
+
for (let i = 0; i < root.childNodes.length; i++) {
|
|
10545
|
+
const node = root.childNodes[i];
|
|
10546
|
+
if (!(node instanceof HTMLStyleElement)) return node;
|
|
10547
|
+
}
|
|
10548
|
+
return null;
|
|
10549
|
+
}
|
|
10618
10550
|
/**
|
|
10619
10551
|
* Only called when shadowRoot is false
|
|
10620
10552
|
*/
|
|
@@ -10677,8 +10609,8 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10677
10609
|
/**
|
|
10678
10610
|
* @internal
|
|
10679
10611
|
*/
|
|
10680
|
-
_injectChildStyle(comp) {
|
|
10681
|
-
this._applyStyles(comp.styles, comp);
|
|
10612
|
+
_injectChildStyle(comp, parentComp) {
|
|
10613
|
+
this._applyStyles(comp.styles, comp, parentComp);
|
|
10682
10614
|
}
|
|
10683
10615
|
/**
|
|
10684
10616
|
* @internal
|
|
@@ -10705,6 +10637,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
10705
10637
|
*/
|
|
10706
10638
|
_removeChildStyle(comp) {
|
|
10707
10639
|
this._styleChildren.delete(comp);
|
|
10640
|
+
this._styleAnchors.delete(comp);
|
|
10708
10641
|
if (this._childStyles && comp.__hmrId) {
|
|
10709
10642
|
const oldStyles = this._childStyles.get(comp.__hmrId);
|
|
10710
10643
|
if (oldStyles) {
|
|
@@ -10773,7 +10706,6 @@ function useShadowRoot() {
|
|
|
10773
10706
|
const el = useHost("useShadowRoot");
|
|
10774
10707
|
return el && el.shadowRoot;
|
|
10775
10708
|
}
|
|
10776
|
-
|
|
10777
10709
|
//#endregion
|
|
10778
10710
|
//#region packages/runtime-dom/src/helpers/useCssModule.ts
|
|
10779
10711
|
function useCssModule(name = "$style") {
|
|
@@ -10796,7 +10728,6 @@ function useCssModule(name = "$style") {
|
|
|
10796
10728
|
return mod;
|
|
10797
10729
|
}
|
|
10798
10730
|
}
|
|
10799
|
-
|
|
10800
10731
|
//#endregion
|
|
10801
10732
|
//#region packages/runtime-dom/src/components/TransitionGroup.ts
|
|
10802
10733
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -10812,7 +10743,7 @@ const decorate = (t) => {
|
|
|
10812
10743
|
t.__isBuiltIn = true;
|
|
10813
10744
|
return t;
|
|
10814
10745
|
};
|
|
10815
|
-
const
|
|
10746
|
+
const TransitionGroup = /* @__PURE__ */ decorate({
|
|
10816
10747
|
name: "TransitionGroup",
|
|
10817
10748
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
10818
10749
|
tag: String,
|
|
@@ -10864,7 +10795,6 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
10864
10795
|
};
|
|
10865
10796
|
}
|
|
10866
10797
|
});
|
|
10867
|
-
const TransitionGroup = TransitionGroupImpl;
|
|
10868
10798
|
function callPendingCbs(el) {
|
|
10869
10799
|
if (el[moveCbKey]) el[moveCbKey]();
|
|
10870
10800
|
if (el[enterCbKey]) el[enterCbKey]();
|
|
@@ -10930,7 +10860,6 @@ const handleMovedChildren = (el, moveClass) => {
|
|
|
10930
10860
|
};
|
|
10931
10861
|
el.addEventListener("transitionend", cb);
|
|
10932
10862
|
};
|
|
10933
|
-
|
|
10934
10863
|
//#endregion
|
|
10935
10864
|
//#region packages/runtime-dom/src/directives/vModel.ts
|
|
10936
10865
|
const getModelAssigner = (vnode) => {
|
|
@@ -11162,7 +11091,6 @@ function callModelHook(el, binding, vnode, prevVNode, hook) {
|
|
|
11162
11091
|
const fn = resolveDynamicModel(el.tagName, vnode.props && vnode.props.type)[hook];
|
|
11163
11092
|
fn && fn(el, binding, vnode, prevVNode);
|
|
11164
11093
|
}
|
|
11165
|
-
|
|
11166
11094
|
//#endregion
|
|
11167
11095
|
//#region packages/runtime-dom/src/directives/vOn.ts
|
|
11168
11096
|
const systemModifiers = [
|
|
@@ -11237,7 +11165,6 @@ const withKeys = (fn, modifiers) => {
|
|
|
11237
11165
|
}
|
|
11238
11166
|
}));
|
|
11239
11167
|
};
|
|
11240
|
-
|
|
11241
11168
|
//#endregion
|
|
11242
11169
|
//#region packages/runtime-dom/src/index.ts
|
|
11243
11170
|
var src_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -11372,7 +11299,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
11372
11299
|
shallowReadonly: () => shallowReadonly,
|
|
11373
11300
|
shallowRef: () => shallowRef,
|
|
11374
11301
|
ssrContextKey: () => ssrContextKey,
|
|
11375
|
-
ssrUtils: () =>
|
|
11302
|
+
ssrUtils: () => null,
|
|
11376
11303
|
stop: () => stop,
|
|
11377
11304
|
toDisplayString: () => toDisplayString,
|
|
11378
11305
|
toHandlerKey: () => toHandlerKey,
|
|
@@ -11525,14 +11452,12 @@ function normalizeContainer(container) {
|
|
|
11525
11452
|
* @internal
|
|
11526
11453
|
*/
|
|
11527
11454
|
const initDirectivesForSSR = NOOP;
|
|
11528
|
-
|
|
11529
11455
|
//#endregion
|
|
11530
11456
|
//#region packages/vue-compat/src/dev.ts
|
|
11531
11457
|
function initDev() {
|
|
11532
11458
|
console.info("You are running a development build of Vue.\nMake sure to use the production build (*.prod.js) when deploying for production.");
|
|
11533
11459
|
initCustomFormatter();
|
|
11534
11460
|
}
|
|
11535
|
-
|
|
11536
11461
|
//#endregion
|
|
11537
11462
|
//#region packages/vue-compat/src/createCompatVue.ts
|
|
11538
11463
|
initDev();
|
|
@@ -11552,7 +11477,6 @@ function createCompatVue() {
|
|
|
11552
11477
|
extend(Vue, src_exports);
|
|
11553
11478
|
return Vue;
|
|
11554
11479
|
}
|
|
11555
|
-
|
|
11556
11480
|
//#endregion
|
|
11557
11481
|
//#region packages/compiler-core/src/runtimeHelpers.ts
|
|
11558
11482
|
const FRAGMENT = Symbol(`Fragment`);
|
|
@@ -11647,7 +11571,6 @@ function registerRuntimeHelpers(helpers) {
|
|
|
11647
11571
|
helperNameMap[s] = helpers[s];
|
|
11648
11572
|
});
|
|
11649
11573
|
}
|
|
11650
|
-
|
|
11651
11574
|
//#endregion
|
|
11652
11575
|
//#region packages/compiler-core/src/ast.ts
|
|
11653
11576
|
const locStub = {
|
|
@@ -11799,7 +11722,6 @@ function convertToBlock(node, { helper, removeHelper, inSSR }) {
|
|
|
11799
11722
|
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
11800
11723
|
}
|
|
11801
11724
|
}
|
|
11802
|
-
|
|
11803
11725
|
//#endregion
|
|
11804
11726
|
//#region packages/compiler-core/src/tokenizer.ts
|
|
11805
11727
|
const defaultDelimitersOpen = new Uint8Array([123, 123]);
|
|
@@ -12508,7 +12430,6 @@ var Tokenizer = class {
|
|
|
12508
12430
|
}
|
|
12509
12431
|
emitCodePoint(cp, consumed) {}
|
|
12510
12432
|
};
|
|
12511
|
-
|
|
12512
12433
|
//#endregion
|
|
12513
12434
|
//#region packages/compiler-core/src/compat/compatConfig.ts
|
|
12514
12435
|
const deprecationData = {
|
|
@@ -12566,7 +12487,6 @@ function warnDeprecation(key, context, loc, ...args) {
|
|
|
12566
12487
|
if (loc) err.loc = loc;
|
|
12567
12488
|
context.onWarn(err);
|
|
12568
12489
|
}
|
|
12569
|
-
|
|
12570
12490
|
//#endregion
|
|
12571
12491
|
//#region packages/compiler-core/src/errors.ts
|
|
12572
12492
|
function defaultOnError(error) {
|
|
@@ -12639,7 +12559,6 @@ const errorMessages = {
|
|
|
12639
12559
|
[51]: `"scopeId" option is only supported in module mode.`,
|
|
12640
12560
|
[54]: ``
|
|
12641
12561
|
};
|
|
12642
|
-
|
|
12643
12562
|
//#endregion
|
|
12644
12563
|
//#region packages/compiler-core/src/utils.ts
|
|
12645
12564
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -12839,7 +12758,6 @@ function isWhitespaceText(node) {
|
|
|
12839
12758
|
function isCommentOrWhitespace(node) {
|
|
12840
12759
|
return node.type === 3 || isWhitespaceText(node);
|
|
12841
12760
|
}
|
|
12842
|
-
|
|
12843
12761
|
//#endregion
|
|
12844
12762
|
//#region packages/compiler-core/src/parser.ts
|
|
12845
12763
|
const defaultParserOptions = {
|
|
@@ -13372,7 +13290,6 @@ function baseParse(input, options) {
|
|
|
13372
13290
|
currentRoot = null;
|
|
13373
13291
|
return root;
|
|
13374
13292
|
}
|
|
13375
|
-
|
|
13376
13293
|
//#endregion
|
|
13377
13294
|
//#region packages/compiler-core/src/transforms/cacheStatic.ts
|
|
13378
13295
|
function cacheStatic(root, context) {
|
|
@@ -13568,7 +13485,6 @@ function getNodeProps(node) {
|
|
|
13568
13485
|
const codegenNode = node.codegenNode;
|
|
13569
13486
|
if (codegenNode.type === 13) return codegenNode.props;
|
|
13570
13487
|
}
|
|
13571
|
-
|
|
13572
13488
|
//#endregion
|
|
13573
13489
|
//#region packages/compiler-core/src/transform.ts
|
|
13574
13490
|
function getSelfName(filename) {
|
|
@@ -13776,7 +13692,6 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
13776
13692
|
}
|
|
13777
13693
|
};
|
|
13778
13694
|
}
|
|
13779
|
-
|
|
13780
13695
|
//#endregion
|
|
13781
13696
|
//#region packages/compiler-core/src/codegen.ts
|
|
13782
13697
|
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
@@ -14201,7 +14116,6 @@ function genCacheExpression(node, context) {
|
|
|
14201
14116
|
push(`)`);
|
|
14202
14117
|
if (needArraySpread) push(`)]`);
|
|
14203
14118
|
}
|
|
14204
|
-
|
|
14205
14119
|
//#endregion
|
|
14206
14120
|
//#region packages/compiler-core/src/validateExpression.ts
|
|
14207
14121
|
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");
|
|
@@ -14223,7 +14137,6 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
14223
14137
|
context.onError(createCompilerError(46, node.loc, void 0, message));
|
|
14224
14138
|
}
|
|
14225
14139
|
}
|
|
14226
|
-
|
|
14227
14140
|
//#endregion
|
|
14228
14141
|
//#region packages/compiler-core/src/transforms/transformExpression.ts
|
|
14229
14142
|
const transformExpression = (node, context) => {
|
|
@@ -14245,7 +14158,6 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
14245
14158
|
validateBrowserExpression(node, context, asParams, asRawStatements);
|
|
14246
14159
|
return node;
|
|
14247
14160
|
}
|
|
14248
|
-
|
|
14249
14161
|
//#endregion
|
|
14250
14162
|
//#region packages/compiler-core/src/transforms/vIf.ts
|
|
14251
14163
|
const transformIf = createStructuralDirectiveTransform(/^(?:if|else|else-if)$/, (node, dir, context) => {
|
|
@@ -14368,7 +14280,6 @@ function getParentCondition(node) {
|
|
|
14368
14280
|
else return node;
|
|
14369
14281
|
else if (node.type === 20) node = node.value;
|
|
14370
14282
|
}
|
|
14371
|
-
|
|
14372
14283
|
//#endregion
|
|
14373
14284
|
//#region packages/compiler-core/src/transforms/vFor.ts
|
|
14374
14285
|
const transformFor = createStructuralDirectiveTransform("for", (node, dir, context) => {
|
|
@@ -14491,7 +14402,6 @@ function createParamsList(args) {
|
|
|
14491
14402
|
while (i--) if (args[i]) break;
|
|
14492
14403
|
return args.slice(0, i + 1).map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));
|
|
14493
14404
|
}
|
|
14494
|
-
|
|
14495
14405
|
//#endregion
|
|
14496
14406
|
//#region packages/compiler-core/src/transforms/vSlot.ts
|
|
14497
14407
|
const defaultFallback = createSimpleExpression(`undefined`, false);
|
|
@@ -14622,7 +14532,6 @@ function hasForwardedSlots(children) {
|
|
|
14622
14532
|
}
|
|
14623
14533
|
return false;
|
|
14624
14534
|
}
|
|
14625
|
-
|
|
14626
14535
|
//#endregion
|
|
14627
14536
|
//#region packages/compiler-core/src/transforms/transformElement.ts
|
|
14628
14537
|
const directiveImportMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -14915,7 +14824,6 @@ function stringifyDynamicPropNames(props) {
|
|
|
14915
14824
|
function isComponentTag(tag) {
|
|
14916
14825
|
return tag === "component" || tag === "Component";
|
|
14917
14826
|
}
|
|
14918
|
-
|
|
14919
14827
|
//#endregion
|
|
14920
14828
|
//#region packages/compiler-core/src/transforms/transformSlotOutlet.ts
|
|
14921
14829
|
const transformSlotOutlet = (node, context) => {
|
|
@@ -14973,7 +14881,6 @@ function processSlotOutlet(node, context) {
|
|
|
14973
14881
|
slotProps
|
|
14974
14882
|
};
|
|
14975
14883
|
}
|
|
14976
|
-
|
|
14977
14884
|
//#endregion
|
|
14978
14885
|
//#region packages/compiler-core/src/transforms/vOn.ts
|
|
14979
14886
|
const transformOn$1 = (dir, node, context, augmentor) => {
|
|
@@ -15015,7 +14922,6 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
15015
14922
|
ret.props.forEach((p) => p.key.isHandlerKey = true);
|
|
15016
14923
|
return ret;
|
|
15017
14924
|
};
|
|
15018
|
-
|
|
15019
14925
|
//#endregion
|
|
15020
14926
|
//#region packages/compiler-core/src/transforms/vBind.ts
|
|
15021
14927
|
const transformBind = (dir, _node, context) => {
|
|
@@ -15047,7 +14953,6 @@ const injectPrefix = (arg, prefix) => {
|
|
|
15047
14953
|
arg.children.push(`)`);
|
|
15048
14954
|
}
|
|
15049
14955
|
};
|
|
15050
|
-
|
|
15051
14956
|
//#endregion
|
|
15052
14957
|
//#region packages/compiler-core/src/transforms/transformText.ts
|
|
15053
14958
|
const transformText = (node, context) => {
|
|
@@ -15090,7 +14995,6 @@ const transformText = (node, context) => {
|
|
|
15090
14995
|
}
|
|
15091
14996
|
};
|
|
15092
14997
|
};
|
|
15093
|
-
|
|
15094
14998
|
//#endregion
|
|
15095
14999
|
//#region packages/compiler-core/src/transforms/vOnce.ts
|
|
15096
15000
|
const seen$1 = /* @__PURE__ */ new WeakSet();
|
|
@@ -15107,7 +15011,6 @@ const transformOnce = (node, context) => {
|
|
|
15107
15011
|
};
|
|
15108
15012
|
}
|
|
15109
15013
|
};
|
|
15110
|
-
|
|
15111
15014
|
//#endregion
|
|
15112
15015
|
//#region packages/compiler-core/src/transforms/vModel.ts
|
|
15113
15016
|
const transformModel$1 = (dir, node, context) => {
|
|
@@ -15150,7 +15053,6 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
15150
15053
|
function createTransformProps(props = []) {
|
|
15151
15054
|
return { props };
|
|
15152
15055
|
}
|
|
15153
|
-
|
|
15154
15056
|
//#endregion
|
|
15155
15057
|
//#region packages/compiler-core/src/compat/transformFilter.ts
|
|
15156
15058
|
const validDivisionCharRE = /[\w).+\-_$\]]/;
|
|
@@ -15264,7 +15166,6 @@ function wrapFilter(exp, filter, context) {
|
|
|
15264
15166
|
return `${toValidAssetId(name, "filter")}(${exp}${args !== ")" ? "," + args : args}`;
|
|
15265
15167
|
}
|
|
15266
15168
|
}
|
|
15267
|
-
|
|
15268
15169
|
//#endregion
|
|
15269
15170
|
//#region packages/compiler-core/src/transforms/vMemo.ts
|
|
15270
15171
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -15288,7 +15189,6 @@ const transformMemo = (node, context) => {
|
|
|
15288
15189
|
};
|
|
15289
15190
|
}
|
|
15290
15191
|
};
|
|
15291
|
-
|
|
15292
15192
|
//#endregion
|
|
15293
15193
|
//#region packages/compiler-core/src/transforms/transformVBindShorthand.ts
|
|
15294
15194
|
const transformVBindShorthand = (node, context) => {
|
|
@@ -15305,7 +15205,6 @@ const transformVBindShorthand = (node, context) => {
|
|
|
15305
15205
|
}
|
|
15306
15206
|
}
|
|
15307
15207
|
};
|
|
15308
|
-
|
|
15309
15208
|
//#endregion
|
|
15310
15209
|
//#region packages/compiler-core/src/compile.ts
|
|
15311
15210
|
function getBaseTransformPreset(prefixIdentifiers) {
|
|
@@ -15345,11 +15244,9 @@ function baseCompile(source, options = {}) {
|
|
|
15345
15244
|
}));
|
|
15346
15245
|
return generate(ast, resolvedOptions);
|
|
15347
15246
|
}
|
|
15348
|
-
|
|
15349
15247
|
//#endregion
|
|
15350
15248
|
//#region packages/compiler-core/src/transforms/noopDirectiveTransform.ts
|
|
15351
15249
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
15352
|
-
|
|
15353
15250
|
//#endregion
|
|
15354
15251
|
//#region packages/compiler-dom/src/runtimeHelpers.ts
|
|
15355
15252
|
const V_MODEL_RADIO = Symbol(`vModelRadio`);
|
|
@@ -15374,7 +15271,6 @@ registerRuntimeHelpers({
|
|
|
15374
15271
|
[TRANSITION]: `Transition`,
|
|
15375
15272
|
[TRANSITION_GROUP]: `TransitionGroup`
|
|
15376
15273
|
});
|
|
15377
|
-
|
|
15378
15274
|
//#endregion
|
|
15379
15275
|
//#region packages/compiler-dom/src/decodeHtmlBrowser.ts
|
|
15380
15276
|
let decoder;
|
|
@@ -15388,7 +15284,6 @@ function decodeHtmlBrowser(raw, asAttr = false) {
|
|
|
15388
15284
|
return decoder.textContent;
|
|
15389
15285
|
}
|
|
15390
15286
|
}
|
|
15391
|
-
|
|
15392
15287
|
//#endregion
|
|
15393
15288
|
//#region packages/compiler-dom/src/parserOptions.ts
|
|
15394
15289
|
const parserOptions = {
|
|
@@ -15419,7 +15314,6 @@ const parserOptions = {
|
|
|
15419
15314
|
return ns;
|
|
15420
15315
|
}
|
|
15421
15316
|
};
|
|
15422
|
-
|
|
15423
15317
|
//#endregion
|
|
15424
15318
|
//#region packages/compiler-dom/src/transforms/transformStyle.ts
|
|
15425
15319
|
const transformStyle = (node) => {
|
|
@@ -15438,7 +15332,6 @@ const parseInlineCSS = (cssText, loc) => {
|
|
|
15438
15332
|
const normalized = parseStringStyle(cssText);
|
|
15439
15333
|
return createSimpleExpression(JSON.stringify(normalized), false, loc, 3);
|
|
15440
15334
|
};
|
|
15441
|
-
|
|
15442
15335
|
//#endregion
|
|
15443
15336
|
//#region packages/compiler-dom/src/errors.ts
|
|
15444
15337
|
function createDOMCompilerError(code, loc) {
|
|
@@ -15458,7 +15351,6 @@ const DOMErrorMessages = {
|
|
|
15458
15351
|
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
15459
15352
|
[65]: ``
|
|
15460
15353
|
};
|
|
15461
|
-
|
|
15462
15354
|
//#endregion
|
|
15463
15355
|
//#region packages/compiler-dom/src/transforms/vHtml.ts
|
|
15464
15356
|
const transformVHtml = (dir, node, context) => {
|
|
@@ -15470,7 +15362,6 @@ const transformVHtml = (dir, node, context) => {
|
|
|
15470
15362
|
}
|
|
15471
15363
|
return { props: [createObjectProperty(createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression("", true))] };
|
|
15472
15364
|
};
|
|
15473
|
-
|
|
15474
15365
|
//#endregion
|
|
15475
15366
|
//#region packages/compiler-dom/src/transforms/vText.ts
|
|
15476
15367
|
const transformVText = (dir, node, context) => {
|
|
@@ -15482,7 +15373,6 @@ const transformVText = (dir, node, context) => {
|
|
|
15482
15373
|
}
|
|
15483
15374
|
return { props: [createObjectProperty(createSimpleExpression(`textContent`, true), exp ? getConstantType(exp, context) > 0 ? exp : createCallExpression(context.helperString(TO_DISPLAY_STRING), [exp], loc) : createSimpleExpression("", true))] };
|
|
15484
15375
|
};
|
|
15485
|
-
|
|
15486
15376
|
//#endregion
|
|
15487
15377
|
//#region packages/compiler-dom/src/transforms/vModel.ts
|
|
15488
15378
|
const transformModel = (dir, node, context) => {
|
|
@@ -15526,7 +15416,6 @@ const transformModel = (dir, node, context) => {
|
|
|
15526
15416
|
baseResult.props = baseResult.props.filter((p) => !(p.key.type === 4 && p.key.content === "modelValue"));
|
|
15527
15417
|
return baseResult;
|
|
15528
15418
|
};
|
|
15529
|
-
|
|
15530
15419
|
//#endregion
|
|
15531
15420
|
//#region packages/compiler-dom/src/transforms/vOn.ts
|
|
15532
15421
|
const isEventOptionModifier = /* @__PURE__ */ makeMap(`passive,once,capture`);
|
|
@@ -15589,7 +15478,6 @@ const transformOn = (dir, node, context) => {
|
|
|
15589
15478
|
return { props: [createObjectProperty(key, handlerExp)] };
|
|
15590
15479
|
});
|
|
15591
15480
|
};
|
|
15592
|
-
|
|
15593
15481
|
//#endregion
|
|
15594
15482
|
//#region packages/compiler-dom/src/transforms/vShow.ts
|
|
15595
15483
|
const transformShow = (dir, node, context) => {
|
|
@@ -15600,7 +15488,6 @@ const transformShow = (dir, node, context) => {
|
|
|
15600
15488
|
needRuntime: context.helper(V_SHOW)
|
|
15601
15489
|
};
|
|
15602
15490
|
};
|
|
15603
|
-
|
|
15604
15491
|
//#endregion
|
|
15605
15492
|
//#region packages/compiler-dom/src/transforms/Transition.ts
|
|
15606
15493
|
const transformTransition = (node, context) => {
|
|
@@ -15633,7 +15520,6 @@ function defaultHasMultipleChildren(node) {
|
|
|
15633
15520
|
const child = children[0];
|
|
15634
15521
|
return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(defaultHasMultipleChildren);
|
|
15635
15522
|
}
|
|
15636
|
-
|
|
15637
15523
|
//#endregion
|
|
15638
15524
|
//#region packages/compiler-dom/src/transforms/ignoreSideEffectTags.ts
|
|
15639
15525
|
const ignoreSideEffectTags = (node, context) => {
|
|
@@ -15642,7 +15528,6 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
15642
15528
|
context.removeNode();
|
|
15643
15529
|
}
|
|
15644
15530
|
};
|
|
15645
|
-
|
|
15646
15531
|
//#endregion
|
|
15647
15532
|
//#region packages/compiler-dom/src/htmlNesting.ts
|
|
15648
15533
|
/**
|
|
@@ -15833,7 +15718,6 @@ const knownInvalidParents = {
|
|
|
15833
15718
|
h5: headings,
|
|
15834
15719
|
h6: headings
|
|
15835
15720
|
};
|
|
15836
|
-
|
|
15837
15721
|
//#endregion
|
|
15838
15722
|
//#region packages/compiler-dom/src/transforms/validateHtmlNesting.ts
|
|
15839
15723
|
const validateHtmlNesting = (node, context) => {
|
|
@@ -15843,7 +15727,6 @@ const validateHtmlNesting = (node, context) => {
|
|
|
15843
15727
|
context.onWarn(error);
|
|
15844
15728
|
}
|
|
15845
15729
|
};
|
|
15846
|
-
|
|
15847
15730
|
//#endregion
|
|
15848
15731
|
//#region packages/compiler-dom/src/index.ts
|
|
15849
15732
|
const DOMNodeTransforms = [transformStyle, ...[transformTransition, validateHtmlNesting]];
|
|
@@ -15866,7 +15749,6 @@ function compile(src, options = {}) {
|
|
|
15866
15749
|
transformHoist: null
|
|
15867
15750
|
}));
|
|
15868
15751
|
}
|
|
15869
|
-
|
|
15870
15752
|
//#endregion
|
|
15871
15753
|
//#region packages/vue-compat/src/index.ts
|
|
15872
15754
|
const compileCache = Object.create(null);
|
|
@@ -15903,11 +15785,9 @@ function compileToFunction(template, options) {
|
|
|
15903
15785
|
registerRuntimeCompiler(compileToFunction);
|
|
15904
15786
|
const Vue = createCompatVue();
|
|
15905
15787
|
Vue.compile = compileToFunction;
|
|
15906
|
-
|
|
15907
15788
|
//#endregion
|
|
15908
15789
|
//#region packages/vue-compat/src/esm-index.ts
|
|
15909
15790
|
var esm_index_default = Vue;
|
|
15910
15791
|
const configureCompat = Vue.configureCompat;
|
|
15911
|
-
|
|
15912
15792
|
//#endregion
|
|
15913
|
-
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 };
|
|
15793
|
+
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 };
|