@dcloudio/uni-cli-shared 3.0.0-5000720260410001 → 3.0.0-5010420260703001
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/constants.d.ts +1 -3
- package/dist/constants.js +2 -6
- package/dist/deps.d.ts +1 -0
- package/dist/deps.js +22 -13
- package/dist/dom2/fontFamily.d.ts +4 -0
- package/dist/dom2/fontFamily.js +21 -0
- package/dist/dom2/index.d.ts +3 -0
- package/dist/dom2/index.js +3 -0
- package/dist/dom2/rootScrollView.d.ts +47 -0
- package/dist/dom2/rootScrollView.js +283 -0
- package/dist/dom2/sharedData.d.ts +4 -0
- package/dist/dom2/sharedData.js +40 -5
- package/dist/dom2/vue.d.ts +17 -0
- package/dist/dom2/vue.js +50 -0
- package/dist/easycom.d.ts +1 -0
- package/dist/easycom.js +23 -9
- package/dist/env/define.d.ts +0 -1
- package/dist/env/define.js +3 -11
- package/dist/hbx/alias.js +66 -10
- package/dist/hbx/log.js +9 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/json/app/manifest/plus.js +9 -1
- package/dist/json/index.d.ts +1 -1
- package/dist/json/index.js +2 -1
- package/dist/json/uni-x/index.d.ts +6 -0
- package/dist/json/uni-x/index.js +54 -1
- package/dist/json/uni-x/manifest.d.ts +1 -1
- package/dist/json/uni-x/manifest.js +2 -1
- package/dist/json/utils.js +24 -0
- package/dist/messages/en.d.ts +10 -2
- package/dist/messages/en.js +10 -2
- package/dist/messages/index.d.ts +20 -4
- package/dist/messages/zh_CN.d.ts +10 -2
- package/dist/messages/zh_CN.js +10 -2
- package/dist/mp/style.js +6 -2
- package/dist/postcss/plugins/stylePluginExternal.d.ts +9 -10
- package/dist/postcss/plugins/stylePluginExternal.js +51 -45
- package/dist/uni_modules.cloud.d.ts +7 -1
- package/dist/uni_modules.cloud.js +131 -14
- package/dist/uni_modules.js +3 -2
- package/dist/utils.js +5 -0
- package/dist/uts.d.ts +1 -0
- package/dist/uts.js +90 -6
- package/dist/vite/autoImport.js +7 -4
- package/dist/vite/cloud.js +13 -6
- package/dist/vite/extApi.js +4 -1
- package/dist/vite/plugins/inject.js +4 -1
- package/dist/vite/plugins/json.js +2 -69
- package/dist/vite/plugins/pre.js +2 -0
- package/dist/vite/plugins/stats.d.ts +5 -1
- package/dist/vite/plugins/stats.js +74 -3
- package/dist/vite/plugins/uts/uni_modules.d.ts +1 -1
- package/dist/vite/plugins/uts/uni_modules.js +30 -12
- package/dist/vite/plugins/vitejs/plugins/css.d.ts +2 -2
- package/dist/vite/plugins/vitejs/plugins/css.js +10 -5
- package/dist/vue/transforms/index.d.ts +1 -0
- package/dist/vue/transforms/index.js +1 -0
- package/dist/vue/transforms/transformTeleport.d.ts +2 -0
- package/dist/vue/transforms/transformTeleport.js +68 -0
- package/dist/vue/transforms/x/transformDirection.js +33 -4
- package/dist/workers.d.ts +1 -0
- package/dist/workers.js +12 -5
- package/dist/x.d.ts +10 -0
- package/dist/x.js +39 -0
- package/lib/dom2/app/@vitejs/plugin-vue/dist/index.cjs +0 -7
- package/lib/dom2/app/@vitejs/plugin-vue/dist/index.mjs +0 -7
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +58 -63
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +58 -63
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +7 -1
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +22 -47
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +12 -23
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +12 -22
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +23 -74
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +3 -20
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +310 -363
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +810 -579
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +33 -11114
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +1638 -1250
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +1031 -599
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +470 -328
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +1154 -709
- package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +16 -25
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +16 -25
- package/lib/dom2/app/@vue/shared/dist/shared.d.ts +5 -0
- package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +11 -23
- package/package.json +6 -6
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.6.0-beta.
|
|
2
|
+
* @vue/compiler-core v3.6.0-beta.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
6
|
import { EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, extend, generateCodeFrame, getModifierPropName, isArray, isBuiltInDirective, isObject, isOn, isReservedProp, isString, isSymbol, makeMap, slotFlagsText, toHandlerKey } from "@vue/shared";
|
|
7
|
-
|
|
8
7
|
//#region packages/compiler-core/src/runtimeHelpers.ts
|
|
9
8
|
const FRAGMENT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
|
|
10
9
|
const TELEPORT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Teleport` : ``);
|
|
@@ -98,7 +97,6 @@ function registerRuntimeHelpers(helpers) {
|
|
|
98
97
|
helperNameMap[s] = helpers[s];
|
|
99
98
|
});
|
|
100
99
|
}
|
|
101
|
-
|
|
102
100
|
//#endregion
|
|
103
101
|
//#region packages/compiler-core/src/ast.ts
|
|
104
102
|
const NodeTypes = {
|
|
@@ -376,7 +374,6 @@ function convertToBlock(node, { helper, removeHelper, inSSR }) {
|
|
|
376
374
|
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
377
375
|
}
|
|
378
376
|
}
|
|
379
|
-
|
|
380
377
|
//#endregion
|
|
381
378
|
//#region packages/compiler-core/src/tokenizer.ts
|
|
382
379
|
const defaultDelimitersOpen = new Uint8Array([123, 123]);
|
|
@@ -1085,7 +1082,6 @@ var Tokenizer = class {
|
|
|
1085
1082
|
}
|
|
1086
1083
|
emitCodePoint(cp, consumed) {}
|
|
1087
1084
|
};
|
|
1088
|
-
|
|
1089
1085
|
//#endregion
|
|
1090
1086
|
//#region packages/compiler-core/src/compat/compatConfig.ts
|
|
1091
1087
|
const CompilerDeprecationTypes = {
|
|
@@ -1153,7 +1149,6 @@ function warnDeprecation(key, context, loc, ...args) {
|
|
|
1153
1149
|
if (loc) err.loc = loc;
|
|
1154
1150
|
context.onWarn(err);
|
|
1155
1151
|
}
|
|
1156
|
-
|
|
1157
1152
|
//#endregion
|
|
1158
1153
|
//#region packages/compiler-core/src/errors.ts
|
|
1159
1154
|
function defaultOnError(error) {
|
|
@@ -1338,7 +1333,6 @@ const errorMessages = {
|
|
|
1338
1333
|
[51]: `"scopeId" option is only supported in module mode.`,
|
|
1339
1334
|
[54]: ``
|
|
1340
1335
|
};
|
|
1341
|
-
|
|
1342
1336
|
//#endregion
|
|
1343
1337
|
//#region packages/compiler-core/src/babelUtils.ts
|
|
1344
1338
|
/**
|
|
@@ -1476,7 +1470,6 @@ function isConstantNode(node, bindings) {
|
|
|
1476
1470
|
}
|
|
1477
1471
|
return false;
|
|
1478
1472
|
}
|
|
1479
|
-
|
|
1480
1473
|
//#endregion
|
|
1481
1474
|
//#region packages/compiler-core/src/utils.ts
|
|
1482
1475
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -1513,7 +1506,7 @@ const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
|
|
|
1513
1506
|
*/
|
|
1514
1507
|
const isMemberExpressionBrowser = (exp) => {
|
|
1515
1508
|
const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
|
|
1516
|
-
let state =
|
|
1509
|
+
let state = 0;
|
|
1517
1510
|
let stateStack = [];
|
|
1518
1511
|
let currentOpenBracketCount = 0;
|
|
1519
1512
|
let currentOpenParensCount = 0;
|
|
@@ -1521,31 +1514,31 @@ const isMemberExpressionBrowser = (exp) => {
|
|
|
1521
1514
|
for (let i = 0; i < path.length; i++) {
|
|
1522
1515
|
const char = path.charAt(i);
|
|
1523
1516
|
switch (state) {
|
|
1524
|
-
case
|
|
1517
|
+
case 0:
|
|
1525
1518
|
if (char === "[") {
|
|
1526
1519
|
stateStack.push(state);
|
|
1527
|
-
state =
|
|
1520
|
+
state = 1;
|
|
1528
1521
|
currentOpenBracketCount++;
|
|
1529
1522
|
} else if (char === "(") {
|
|
1530
1523
|
stateStack.push(state);
|
|
1531
|
-
state =
|
|
1524
|
+
state = 2;
|
|
1532
1525
|
currentOpenParensCount++;
|
|
1533
1526
|
} else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) return false;
|
|
1534
1527
|
break;
|
|
1535
|
-
case
|
|
1528
|
+
case 1:
|
|
1536
1529
|
if (char === `'` || char === `"` || char === "`") {
|
|
1537
1530
|
stateStack.push(state);
|
|
1538
|
-
state =
|
|
1531
|
+
state = 3;
|
|
1539
1532
|
currentStringType = char;
|
|
1540
1533
|
} else if (char === `[`) currentOpenBracketCount++;
|
|
1541
1534
|
else if (char === `]`) {
|
|
1542
1535
|
if (!--currentOpenBracketCount) state = stateStack.pop();
|
|
1543
1536
|
}
|
|
1544
1537
|
break;
|
|
1545
|
-
case
|
|
1538
|
+
case 2:
|
|
1546
1539
|
if (char === `'` || char === `"` || char === "`") {
|
|
1547
1540
|
stateStack.push(state);
|
|
1548
|
-
state =
|
|
1541
|
+
state = 3;
|
|
1549
1542
|
currentStringType = char;
|
|
1550
1543
|
} else if (char === `(`) currentOpenParensCount++;
|
|
1551
1544
|
else if (char === `)`) {
|
|
@@ -1553,7 +1546,7 @@ const isMemberExpressionBrowser = (exp) => {
|
|
|
1553
1546
|
if (!--currentOpenParensCount) state = stateStack.pop();
|
|
1554
1547
|
}
|
|
1555
1548
|
break;
|
|
1556
|
-
case
|
|
1549
|
+
case 3:
|
|
1557
1550
|
if (char === currentStringType) {
|
|
1558
1551
|
state = stateStack.pop();
|
|
1559
1552
|
currentStringType = null;
|
|
@@ -1746,7 +1739,6 @@ function isWhitespaceText(node) {
|
|
|
1746
1739
|
function isCommentOrWhitespace(node) {
|
|
1747
1740
|
return node.type === 3 || isWhitespaceText(node);
|
|
1748
1741
|
}
|
|
1749
|
-
|
|
1750
1742
|
//#endregion
|
|
1751
1743
|
//#region packages/compiler-core/src/parser.ts
|
|
1752
1744
|
const defaultParserOptions = {
|
|
@@ -1928,8 +1920,7 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
1928
1920
|
};
|
|
1929
1921
|
if (tokenizer.inSFCRoot && currentOpenTag.tag === "template" && currentProp.name === "lang" && currentAttrValue && currentAttrValue !== "html") tokenizer.enterRCDATA(toCharCodes(`</template`), 0);
|
|
1930
1922
|
} else {
|
|
1931
|
-
|
|
1932
|
-
currentProp.exp = createExp(currentAttrValue, false, getLoc(currentAttrStartIndex, currentAttrEndIndex), 0, expParseMode);
|
|
1923
|
+
currentProp.exp = createExp(currentAttrValue, false, getLoc(currentAttrStartIndex, currentAttrEndIndex), 0, 0);
|
|
1933
1924
|
if (currentProp.name === "for") currentProp.forParseResult = parseForExpression(currentProp.exp);
|
|
1934
1925
|
let syncIndex = -1;
|
|
1935
1926
|
if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex((mod) => mod.content === "sync")) > -1 && checkCompatEnabled("COMPILER_V_BIND_SYNC", currentOptions, currentProp.loc, currentProp.arg.loc.source)) {
|
|
@@ -2006,7 +1997,7 @@ function parseForExpression(input) {
|
|
|
2006
1997
|
const [, LHS, RHS] = inMatch;
|
|
2007
1998
|
const createAliasExpression = (content, offset, asParam = false) => {
|
|
2008
1999
|
const start = loc.start.offset + offset;
|
|
2009
|
-
return createExp(content, false, getLoc(start, start + content.length), 0, asParam ?
|
|
2000
|
+
return createExp(content, false, getLoc(start, start + content.length), 0, asParam ? 1 : 0);
|
|
2010
2001
|
};
|
|
2011
2002
|
const result = {
|
|
2012
2003
|
source: createAliasExpression(RHS.trim(), exp.indexOf(RHS, LHS.length)),
|
|
@@ -2249,7 +2240,7 @@ var ExpParseMode = /* @__PURE__ */ function(ExpParseMode) {
|
|
|
2249
2240
|
ExpParseMode[ExpParseMode["Skip"] = 3] = "Skip";
|
|
2250
2241
|
return ExpParseMode;
|
|
2251
2242
|
}(ExpParseMode || {});
|
|
2252
|
-
function createExp(content, isStatic = false, loc, constType = 0, parseMode =
|
|
2243
|
+
function createExp(content, isStatic = false, loc, constType = 0, parseMode = 0) {
|
|
2253
2244
|
return createSimpleExpression(content, isStatic, loc, constType);
|
|
2254
2245
|
}
|
|
2255
2246
|
function emitError(code, index, message) {
|
|
@@ -2289,7 +2280,6 @@ function baseParse(input, options) {
|
|
|
2289
2280
|
currentRoot = null;
|
|
2290
2281
|
return root;
|
|
2291
2282
|
}
|
|
2292
|
-
|
|
2293
2283
|
//#endregion
|
|
2294
2284
|
//#region packages/compiler-core/src/transforms/cacheStatic.ts
|
|
2295
2285
|
function cacheStatic(root, context) {
|
|
@@ -2487,7 +2477,6 @@ function getNodeProps(node) {
|
|
|
2487
2477
|
const codegenNode = node.codegenNode;
|
|
2488
2478
|
if (codegenNode.type === 13) return codegenNode.props;
|
|
2489
2479
|
}
|
|
2490
|
-
|
|
2491
2480
|
//#endregion
|
|
2492
2481
|
//#region packages/compiler-core/src/transform.ts
|
|
2493
2482
|
function getSelfName(filename) {
|
|
@@ -2532,6 +2521,7 @@ function createTransformContext(root, { filename = "", prefixIdentifiers = false
|
|
|
2532
2521
|
constantCache: /* @__PURE__ */ new WeakMap(),
|
|
2533
2522
|
temps: 0,
|
|
2534
2523
|
identifiers: Object.create(null),
|
|
2524
|
+
identifierScopes: Object.create(null),
|
|
2535
2525
|
scopes: {
|
|
2536
2526
|
vFor: 0,
|
|
2537
2527
|
vSlot: 0,
|
|
@@ -2585,8 +2575,12 @@ function createTransformContext(root, { filename = "", prefixIdentifiers = false
|
|
|
2585
2575
|
context.parent.children.splice(removalIndex, 1);
|
|
2586
2576
|
},
|
|
2587
2577
|
onNodeRemoved: NOOP,
|
|
2588
|
-
addIdentifiers(exp) {},
|
|
2578
|
+
addIdentifiers(exp, type = "local") {},
|
|
2589
2579
|
removeIdentifiers(exp) {},
|
|
2580
|
+
isSlotScopeIdentifier(name) {
|
|
2581
|
+
const scopes = context.identifierScopes[name];
|
|
2582
|
+
return scopes ? scopes[scopes.length - 1] === "slot" : false;
|
|
2583
|
+
},
|
|
2590
2584
|
hoist(exp) {
|
|
2591
2585
|
if (isString(exp)) exp = createSimpleExpression(exp);
|
|
2592
2586
|
context.hoists.push(exp);
|
|
@@ -2701,7 +2695,6 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
2701
2695
|
}
|
|
2702
2696
|
};
|
|
2703
2697
|
}
|
|
2704
|
-
|
|
2705
2698
|
//#endregion
|
|
2706
2699
|
//#region packages/compiler-core/src/codegen.ts
|
|
2707
2700
|
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
@@ -2951,6 +2944,7 @@ function genNode(node, context) {
|
|
|
2951
2944
|
case 24: break;
|
|
2952
2945
|
case 25: break;
|
|
2953
2946
|
case 26: break;
|
|
2947
|
+
/* v8 ignore start */
|
|
2954
2948
|
case 10: break;
|
|
2955
2949
|
default: if (!!(process.env.NODE_ENV !== "production")) {
|
|
2956
2950
|
assert(false, `unhandled codegen node type: ${node.type}`);
|
|
@@ -3138,7 +3132,6 @@ function genCacheExpression(node, context) {
|
|
|
3138
3132
|
push(`)`);
|
|
3139
3133
|
if (needArraySpread) push(`)]`);
|
|
3140
3134
|
}
|
|
3141
|
-
|
|
3142
3135
|
//#endregion
|
|
3143
3136
|
//#region packages/compiler-core/src/validateExpression.ts
|
|
3144
3137
|
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");
|
|
@@ -3160,7 +3153,6 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
3160
3153
|
context.onError(createCompilerError(46, node.loc, void 0, message));
|
|
3161
3154
|
}
|
|
3162
3155
|
}
|
|
3163
|
-
|
|
3164
3156
|
//#endregion
|
|
3165
3157
|
//#region packages/compiler-core/src/transforms/transformExpression.ts
|
|
3166
3158
|
const isLiteralWhitelisted = /* @__PURE__ */ makeMap("true,false,null,this");
|
|
@@ -3188,7 +3180,6 @@ function stringifyExpression(exp) {
|
|
|
3188
3180
|
else if (exp.type === 4) return exp.content;
|
|
3189
3181
|
else return exp.children.map(stringifyExpression).join("");
|
|
3190
3182
|
}
|
|
3191
|
-
|
|
3192
3183
|
//#endregion
|
|
3193
3184
|
//#region packages/compiler-core/src/transforms/vIf.ts
|
|
3194
3185
|
const transformIf = createStructuralDirectiveTransform(/^(?:if|else|else-if)$/, (node, dir, context) => {
|
|
@@ -3311,7 +3302,6 @@ function getParentCondition(node) {
|
|
|
3311
3302
|
else return node;
|
|
3312
3303
|
else if (node.type === 20) node = node.value;
|
|
3313
3304
|
}
|
|
3314
|
-
|
|
3315
3305
|
//#endregion
|
|
3316
3306
|
//#region packages/compiler-core/src/transforms/vFor.ts
|
|
3317
3307
|
const transformFor = createStructuralDirectiveTransform("for", (node, dir, context) => {
|
|
@@ -3368,7 +3358,7 @@ const transformFor = createStructuralDirectiveTransform("for", (node, dir, conte
|
|
|
3368
3358
|
`)`
|
|
3369
3359
|
]),
|
|
3370
3360
|
createCompoundExpression([
|
|
3371
|
-
`if (_cached`,
|
|
3361
|
+
`if (_cached && _cached.el`,
|
|
3372
3362
|
...keyExp ? [` && _cached.key === `, keyExp] : [],
|
|
3373
3363
|
` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
|
|
3374
3364
|
]),
|
|
@@ -3436,7 +3426,6 @@ function createParamsList(args) {
|
|
|
3436
3426
|
while (i--) if (args[i]) break;
|
|
3437
3427
|
return args.slice(0, i + 1).map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));
|
|
3438
3428
|
}
|
|
3439
|
-
|
|
3440
3429
|
//#endregion
|
|
3441
3430
|
//#region packages/compiler-core/src/transforms/vSlot.ts
|
|
3442
3431
|
const defaultFallback = createSimpleExpression(`undefined`, false);
|
|
@@ -3586,7 +3575,6 @@ function hasForwardedSlots(children) {
|
|
|
3586
3575
|
}
|
|
3587
3576
|
return false;
|
|
3588
3577
|
}
|
|
3589
|
-
|
|
3590
3578
|
//#endregion
|
|
3591
3579
|
//#region packages/compiler-core/src/transforms/transformElement.ts
|
|
3592
3580
|
const directiveImportMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -3881,7 +3869,6 @@ function stringifyDynamicPropNames(props) {
|
|
|
3881
3869
|
function isComponentTag(tag) {
|
|
3882
3870
|
return tag === "component" || tag === "Component";
|
|
3883
3871
|
}
|
|
3884
|
-
|
|
3885
3872
|
//#endregion
|
|
3886
3873
|
//#region packages/compiler-core/src/transforms/transformSlotOutlet.ts
|
|
3887
3874
|
const transformSlotOutlet = (node, context) => {
|
|
@@ -3939,7 +3926,6 @@ function processSlotOutlet(node, context) {
|
|
|
3939
3926
|
slotProps
|
|
3940
3927
|
};
|
|
3941
3928
|
}
|
|
3942
|
-
|
|
3943
3929
|
//#endregion
|
|
3944
3930
|
//#region packages/compiler-core/src/transforms/vOn.ts
|
|
3945
3931
|
const transformOn = (dir, node, context, augmentor) => {
|
|
@@ -3981,7 +3967,6 @@ const transformOn = (dir, node, context, augmentor) => {
|
|
|
3981
3967
|
ret.props.forEach((p) => p.key.isHandlerKey = true);
|
|
3982
3968
|
return ret;
|
|
3983
3969
|
};
|
|
3984
|
-
|
|
3985
3970
|
//#endregion
|
|
3986
3971
|
//#region packages/compiler-core/src/transforms/vBind.ts
|
|
3987
3972
|
const transformBind = (dir, _node, context) => {
|
|
@@ -4013,7 +3998,6 @@ const injectPrefix = (arg, prefix) => {
|
|
|
4013
3998
|
arg.children.push(`)`);
|
|
4014
3999
|
}
|
|
4015
4000
|
};
|
|
4016
|
-
|
|
4017
4001
|
//#endregion
|
|
4018
4002
|
//#region packages/compiler-core/src/transforms/transformText.ts
|
|
4019
4003
|
const transformText = (node, context) => {
|
|
@@ -4056,7 +4040,6 @@ const transformText = (node, context) => {
|
|
|
4056
4040
|
}
|
|
4057
4041
|
};
|
|
4058
4042
|
};
|
|
4059
|
-
|
|
4060
4043
|
//#endregion
|
|
4061
4044
|
//#region packages/compiler-core/src/transforms/vOnce.ts
|
|
4062
4045
|
const seen$1 = /* @__PURE__ */ new WeakSet();
|
|
@@ -4073,7 +4056,6 @@ const transformOnce = (node, context) => {
|
|
|
4073
4056
|
};
|
|
4074
4057
|
}
|
|
4075
4058
|
};
|
|
4076
|
-
|
|
4077
4059
|
//#endregion
|
|
4078
4060
|
//#region packages/compiler-core/src/transforms/vModel.ts
|
|
4079
4061
|
const transformModel = (dir, node, context) => {
|
|
@@ -4116,7 +4098,6 @@ const transformModel = (dir, node, context) => {
|
|
|
4116
4098
|
function createTransformProps(props = []) {
|
|
4117
4099
|
return { props };
|
|
4118
4100
|
}
|
|
4119
|
-
|
|
4120
4101
|
//#endregion
|
|
4121
4102
|
//#region packages/compiler-core/src/compat/transformFilter.ts
|
|
4122
4103
|
const validDivisionCharRE = /[\w).+\-_$\]]/;
|
|
@@ -4230,7 +4211,6 @@ function wrapFilter(exp, filter, context) {
|
|
|
4230
4211
|
return `${toValidAssetId(name, "filter")}(${exp}${args !== ")" ? "," + args : args}`;
|
|
4231
4212
|
}
|
|
4232
4213
|
}
|
|
4233
|
-
|
|
4234
4214
|
//#endregion
|
|
4235
4215
|
//#region packages/compiler-core/src/transforms/vMemo.ts
|
|
4236
4216
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -4254,7 +4234,6 @@ const transformMemo = (node, context) => {
|
|
|
4254
4234
|
};
|
|
4255
4235
|
}
|
|
4256
4236
|
};
|
|
4257
|
-
|
|
4258
4237
|
//#endregion
|
|
4259
4238
|
//#region packages/compiler-core/src/transforms/transformVBindShorthand.ts
|
|
4260
4239
|
const transformVBindShorthand = (node, context) => {
|
|
@@ -4271,7 +4250,6 @@ const transformVBindShorthand = (node, context) => {
|
|
|
4271
4250
|
}
|
|
4272
4251
|
}
|
|
4273
4252
|
};
|
|
4274
|
-
|
|
4275
4253
|
//#endregion
|
|
4276
4254
|
//#region packages/compiler-core/src/compile.ts
|
|
4277
4255
|
function getBaseTransformPreset(prefixIdentifiers) {
|
|
@@ -4311,7 +4289,6 @@ function baseCompile(source, options = {}) {
|
|
|
4311
4289
|
}));
|
|
4312
4290
|
return generate(ast, resolvedOptions);
|
|
4313
4291
|
}
|
|
4314
|
-
|
|
4315
4292
|
//#endregion
|
|
4316
4293
|
//#region packages/compiler-core/src/options.ts
|
|
4317
4294
|
const BindingTypes = {
|
|
@@ -4326,10 +4303,8 @@ const BindingTypes = {
|
|
|
4326
4303
|
"OPTIONS": "options",
|
|
4327
4304
|
"LITERAL_CONST": "literal-const"
|
|
4328
4305
|
};
|
|
4329
|
-
|
|
4330
4306
|
//#endregion
|
|
4331
4307
|
//#region packages/compiler-core/src/transforms/noopDirectiveTransform.ts
|
|
4332
4308
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
4333
|
-
|
|
4334
4309
|
//#endregion
|
|
4335
|
-
export { BASE_TRANSITION, BindingTypes, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, CompilerDeprecationTypes, ConstantTypes, ElementTypes, ErrorCodes, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, NewlineType, NodeTypes, OPEN_BLOCK, POP_SCOPE_ID, PUSH_SCOPE_ID, RENDER_LIST, RENDER_SLOT, RESOLVE_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER, SET_BLOCK_TRACKING, SUSPENSE, TELEPORT, TO_DISPLAY_STRING, TO_HANDLERS, TO_HANDLER_KEY, TS_NODE_TYPES, UNREF, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, convertToBlock, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createExp, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, defaultOnError, defaultOnWarn, errorMessages, extractIdentifiers, filterNonCommentChildren, findDir, findProp, forAliasRE, generate, generateCodeFrame, getBaseTransformPreset, getConstantType, getMemoedVNodeCall, getSelfName, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, hasSingleChild, helperNameMap, injectProp, isAllWhitespace, isCommentOrWhitespace, isConstantNode, isCoreComponent, isFnExpression, isFnExpressionBrowser, isFnExpressionNode, isFunctionType, isInDestructureAssignment, isInNewExpression, isLiteralWhitelisted, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSingleIfBlock, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticNode, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText, isVPre, isVSlot, isWhitespaceText, locStub, noopDirectiveTransform, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, stringifyExpression, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, transformVBindShorthand, traverseNode, unwrapTSNode, validFirstIdentCharRE, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
|
|
4310
|
+
export { BASE_TRANSITION, BindingTypes, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, CompilerDeprecationTypes, ConstantTypes, ElementTypes, ErrorCodes, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, NewlineType, NodeTypes, OPEN_BLOCK, POP_SCOPE_ID, PUSH_SCOPE_ID, RENDER_LIST, RENDER_SLOT, RESOLVE_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER, SET_BLOCK_TRACKING, SUSPENSE, TELEPORT, TO_DISPLAY_STRING, TO_HANDLERS, TO_HANDLER_KEY, TS_NODE_TYPES, UNREF, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, convertToBlock, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createExp, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, defaultOnError, defaultOnWarn, errorMessages, extractIdentifiers, filterNonCommentChildren, findDir, findProp, forAliasRE, generate, generateCodeFrame, getBaseTransformPreset, getConstantType, getMemoedVNodeCall, getSelfName, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, hasSingleChild, helperNameMap, injectProp, isAllWhitespace, isCommentOrWhitespace, isConstantNode, isCoreComponent, isFnExpression, isFnExpressionBrowser, isFnExpressionNode, isFunctionType, isInDestructureAssignment, isInNewExpression, isLiteralWhitelisted, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSingleIfBlock, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticNode, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText, isVPre, isVSlot, isWhitespaceText, locStub, noopDirectiveTransform, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, stringifyExpression, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, transformVBindShorthand, traverseNode, unwrapTSNode, validFirstIdentCharRE, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-dom v3.6.0-beta.
|
|
2
|
+
* @vue/compiler-dom v3.6.0-beta.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
Object.defineProperties(exports, {
|
|
6
|
+
Object.defineProperties(exports, {
|
|
7
|
+
__esModule: { value: true },
|
|
8
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
9
|
+
});
|
|
7
10
|
let _vue_compiler_core = require("@vue/compiler-core");
|
|
8
11
|
let _vue_shared = require("@vue/shared");
|
|
9
|
-
|
|
10
12
|
//#region packages/compiler-dom/src/runtimeHelpers.ts
|
|
11
13
|
const V_MODEL_RADIO = Symbol(`vModelRadio`);
|
|
12
14
|
const V_MODEL_CHECKBOX = Symbol(`vModelCheckbox`);
|
|
@@ -30,7 +32,6 @@ const TRANSITION_GROUP = Symbol(`TransitionGroup`);
|
|
|
30
32
|
[TRANSITION]: `Transition`,
|
|
31
33
|
[TRANSITION_GROUP]: `TransitionGroup`
|
|
32
34
|
});
|
|
33
|
-
|
|
34
35
|
//#endregion
|
|
35
36
|
//#region packages/compiler-dom/src/parserOptions.ts
|
|
36
37
|
const parserOptions = {
|
|
@@ -61,7 +62,6 @@ const parserOptions = {
|
|
|
61
62
|
return ns;
|
|
62
63
|
}
|
|
63
64
|
};
|
|
64
|
-
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region packages/compiler-dom/src/transforms/transformStyle.ts
|
|
67
67
|
const transformStyle = (node) => {
|
|
@@ -80,7 +80,6 @@ const parseInlineCSS = (cssText, loc) => {
|
|
|
80
80
|
const normalized = (0, _vue_shared.parseStringStyle)(cssText);
|
|
81
81
|
return (0, _vue_compiler_core.createSimpleExpression)(JSON.stringify(normalized), false, loc, 3);
|
|
82
82
|
};
|
|
83
|
-
|
|
84
83
|
//#endregion
|
|
85
84
|
//#region packages/compiler-dom/src/errors.ts
|
|
86
85
|
function createDOMCompilerError(code, loc) {
|
|
@@ -126,7 +125,6 @@ const DOMErrorMessages = {
|
|
|
126
125
|
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
127
126
|
[65]: ``
|
|
128
127
|
};
|
|
129
|
-
|
|
130
128
|
//#endregion
|
|
131
129
|
//#region packages/compiler-dom/src/transforms/vHtml.ts
|
|
132
130
|
const transformVHtml = (dir, node, context) => {
|
|
@@ -138,7 +136,6 @@ const transformVHtml = (dir, node, context) => {
|
|
|
138
136
|
}
|
|
139
137
|
return { props: [(0, _vue_compiler_core.createObjectProperty)((0, _vue_compiler_core.createSimpleExpression)(`innerHTML`, true, loc), exp || (0, _vue_compiler_core.createSimpleExpression)("", true))] };
|
|
140
138
|
};
|
|
141
|
-
|
|
142
139
|
//#endregion
|
|
143
140
|
//#region packages/compiler-dom/src/transforms/vText.ts
|
|
144
141
|
const transformVText = (dir, node, context) => {
|
|
@@ -150,7 +147,6 @@ const transformVText = (dir, node, context) => {
|
|
|
150
147
|
}
|
|
151
148
|
return { props: [(0, _vue_compiler_core.createObjectProperty)((0, _vue_compiler_core.createSimpleExpression)(`textContent`, true), exp ? (0, _vue_compiler_core.getConstantType)(exp, context) > 0 ? exp : (0, _vue_compiler_core.createCallExpression)(context.helperString(_vue_compiler_core.TO_DISPLAY_STRING), [exp], loc) : (0, _vue_compiler_core.createSimpleExpression)("", true))] };
|
|
152
149
|
};
|
|
153
|
-
|
|
154
150
|
//#endregion
|
|
155
151
|
//#region packages/compiler-dom/src/transforms/vModel.ts
|
|
156
152
|
const transformModel = (dir, node, context) => {
|
|
@@ -194,7 +190,6 @@ const transformModel = (dir, node, context) => {
|
|
|
194
190
|
baseResult.props = baseResult.props.filter((p) => !(p.key.type === 4 && p.key.content === "modelValue"));
|
|
195
191
|
return baseResult;
|
|
196
192
|
};
|
|
197
|
-
|
|
198
193
|
//#endregion
|
|
199
194
|
//#region packages/compiler-dom/src/transforms/vOn.ts
|
|
200
195
|
const isEventOptionModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)(`passive,once,capture`);
|
|
@@ -257,7 +252,6 @@ const transformOn = (dir, node, context) => {
|
|
|
257
252
|
return { props: [(0, _vue_compiler_core.createObjectProperty)(key, handlerExp)] };
|
|
258
253
|
});
|
|
259
254
|
};
|
|
260
|
-
|
|
261
255
|
//#endregion
|
|
262
256
|
//#region packages/compiler-dom/src/transforms/vShow.ts
|
|
263
257
|
const transformShow = (dir, node, context) => {
|
|
@@ -268,7 +262,6 @@ const transformShow = (dir, node, context) => {
|
|
|
268
262
|
needRuntime: context.helper(V_SHOW)
|
|
269
263
|
};
|
|
270
264
|
};
|
|
271
|
-
|
|
272
265
|
//#endregion
|
|
273
266
|
//#region packages/compiler-dom/src/transforms/Transition.ts
|
|
274
267
|
const transformTransition = (node, context) => {
|
|
@@ -301,7 +294,6 @@ function defaultHasMultipleChildren(node) {
|
|
|
301
294
|
const child = children[0];
|
|
302
295
|
return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(defaultHasMultipleChildren);
|
|
303
296
|
}
|
|
304
|
-
|
|
305
297
|
//#endregion
|
|
306
298
|
//#region packages/compiler-dom/src/transforms/stringifyStatic.ts
|
|
307
299
|
/**
|
|
@@ -493,7 +485,6 @@ function evaluateConstant(exp) {
|
|
|
493
485
|
return res;
|
|
494
486
|
}
|
|
495
487
|
}
|
|
496
|
-
|
|
497
488
|
//#endregion
|
|
498
489
|
//#region packages/compiler-dom/src/transforms/ignoreSideEffectTags.ts
|
|
499
490
|
const ignoreSideEffectTags = (node, context) => {
|
|
@@ -502,7 +493,6 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
502
493
|
context.removeNode();
|
|
503
494
|
}
|
|
504
495
|
};
|
|
505
|
-
|
|
506
496
|
//#endregion
|
|
507
497
|
//#region packages/compiler-dom/src/htmlNesting.ts
|
|
508
498
|
/**
|
|
@@ -693,7 +683,6 @@ const knownInvalidParents = {
|
|
|
693
683
|
h5: headings,
|
|
694
684
|
h6: headings
|
|
695
685
|
};
|
|
696
|
-
|
|
697
686
|
//#endregion
|
|
698
687
|
//#region packages/compiler-dom/src/transforms/validateHtmlNesting.ts
|
|
699
688
|
const validateHtmlNesting = (node, context) => {
|
|
@@ -703,7 +692,6 @@ const validateHtmlNesting = (node, context) => {
|
|
|
703
692
|
context.onWarn(error);
|
|
704
693
|
}
|
|
705
694
|
};
|
|
706
|
-
|
|
707
695
|
//#endregion
|
|
708
696
|
//#region packages/compiler-dom/src/index.ts
|
|
709
697
|
const DOMNodeTransforms = [transformStyle, ...[transformTransition, validateHtmlNesting]];
|
|
@@ -729,7 +717,6 @@ function compile(src, options = {}) {
|
|
|
729
717
|
function parse(template, options = {}) {
|
|
730
718
|
return (0, _vue_compiler_core.baseParse)(template, (0, _vue_shared.extend)({}, parserOptions, options));
|
|
731
719
|
}
|
|
732
|
-
|
|
733
720
|
//#endregion
|
|
734
721
|
exports.DOMDirectiveTransforms = DOMDirectiveTransforms;
|
|
735
722
|
exports.DOMErrorCodes = DOMErrorCodes;
|
|
@@ -754,9 +741,11 @@ exports.parserOptions = parserOptions;
|
|
|
754
741
|
exports.postTransformTransition = postTransformTransition;
|
|
755
742
|
exports.resolveModifiers = resolveModifiers;
|
|
756
743
|
exports.transformStyle = transformStyle;
|
|
757
|
-
Object.keys(_vue_compiler_core).forEach(function
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
744
|
+
Object.keys(_vue_compiler_core).forEach(function(k) {
|
|
745
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
746
|
+
enumerable: true,
|
|
747
|
+
get: function() {
|
|
748
|
+
return _vue_compiler_core[k];
|
|
749
|
+
}
|
|
750
|
+
});
|
|
762
751
|
});
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-dom v3.6.0-beta.
|
|
2
|
+
* @vue/compiler-dom v3.6.0-beta.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
Object.defineProperties(exports, {
|
|
6
|
+
Object.defineProperties(exports, {
|
|
7
|
+
__esModule: { value: true },
|
|
8
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
9
|
+
});
|
|
7
10
|
let _vue_compiler_core = require("@vue/compiler-core");
|
|
8
11
|
let _vue_shared = require("@vue/shared");
|
|
9
|
-
|
|
10
12
|
//#region packages/compiler-dom/src/runtimeHelpers.ts
|
|
11
13
|
const V_MODEL_RADIO = Symbol(``);
|
|
12
14
|
const V_MODEL_CHECKBOX = Symbol(``);
|
|
@@ -30,7 +32,6 @@ const TRANSITION_GROUP = Symbol(``);
|
|
|
30
32
|
[TRANSITION]: `Transition`,
|
|
31
33
|
[TRANSITION_GROUP]: `TransitionGroup`
|
|
32
34
|
});
|
|
33
|
-
|
|
34
35
|
//#endregion
|
|
35
36
|
//#region packages/compiler-dom/src/parserOptions.ts
|
|
36
37
|
const parserOptions = {
|
|
@@ -61,7 +62,6 @@ const parserOptions = {
|
|
|
61
62
|
return ns;
|
|
62
63
|
}
|
|
63
64
|
};
|
|
64
|
-
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region packages/compiler-dom/src/transforms/transformStyle.ts
|
|
67
67
|
const transformStyle = (node) => {
|
|
@@ -80,7 +80,6 @@ const parseInlineCSS = (cssText, loc) => {
|
|
|
80
80
|
const normalized = (0, _vue_shared.parseStringStyle)(cssText);
|
|
81
81
|
return (0, _vue_compiler_core.createSimpleExpression)(JSON.stringify(normalized), false, loc, 3);
|
|
82
82
|
};
|
|
83
|
-
|
|
84
83
|
//#endregion
|
|
85
84
|
//#region packages/compiler-dom/src/errors.ts
|
|
86
85
|
function createDOMCompilerError(code, loc) {
|
|
@@ -126,7 +125,6 @@ const DOMErrorMessages = {
|
|
|
126
125
|
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
127
126
|
[65]: ``
|
|
128
127
|
};
|
|
129
|
-
|
|
130
128
|
//#endregion
|
|
131
129
|
//#region packages/compiler-dom/src/transforms/vHtml.ts
|
|
132
130
|
const transformVHtml = (dir, node, context) => {
|
|
@@ -138,7 +136,6 @@ const transformVHtml = (dir, node, context) => {
|
|
|
138
136
|
}
|
|
139
137
|
return { props: [(0, _vue_compiler_core.createObjectProperty)((0, _vue_compiler_core.createSimpleExpression)(`innerHTML`, true, loc), exp || (0, _vue_compiler_core.createSimpleExpression)("", true))] };
|
|
140
138
|
};
|
|
141
|
-
|
|
142
139
|
//#endregion
|
|
143
140
|
//#region packages/compiler-dom/src/transforms/vText.ts
|
|
144
141
|
const transformVText = (dir, node, context) => {
|
|
@@ -150,7 +147,6 @@ const transformVText = (dir, node, context) => {
|
|
|
150
147
|
}
|
|
151
148
|
return { props: [(0, _vue_compiler_core.createObjectProperty)((0, _vue_compiler_core.createSimpleExpression)(`textContent`, true), exp ? (0, _vue_compiler_core.getConstantType)(exp, context) > 0 ? exp : (0, _vue_compiler_core.createCallExpression)(context.helperString(_vue_compiler_core.TO_DISPLAY_STRING), [exp], loc) : (0, _vue_compiler_core.createSimpleExpression)("", true))] };
|
|
152
149
|
};
|
|
153
|
-
|
|
154
150
|
//#endregion
|
|
155
151
|
//#region packages/compiler-dom/src/transforms/vModel.ts
|
|
156
152
|
const transformModel = (dir, node, context) => {
|
|
@@ -186,7 +182,6 @@ const transformModel = (dir, node, context) => {
|
|
|
186
182
|
baseResult.props = baseResult.props.filter((p) => !(p.key.type === 4 && p.key.content === "modelValue"));
|
|
187
183
|
return baseResult;
|
|
188
184
|
};
|
|
189
|
-
|
|
190
185
|
//#endregion
|
|
191
186
|
//#region packages/compiler-dom/src/transforms/vOn.ts
|
|
192
187
|
const isEventOptionModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)(`passive,once,capture`);
|
|
@@ -249,7 +244,6 @@ const transformOn = (dir, node, context) => {
|
|
|
249
244
|
return { props: [(0, _vue_compiler_core.createObjectProperty)(key, handlerExp)] };
|
|
250
245
|
});
|
|
251
246
|
};
|
|
252
|
-
|
|
253
247
|
//#endregion
|
|
254
248
|
//#region packages/compiler-dom/src/transforms/vShow.ts
|
|
255
249
|
const transformShow = (dir, node, context) => {
|
|
@@ -260,7 +254,6 @@ const transformShow = (dir, node, context) => {
|
|
|
260
254
|
needRuntime: context.helper(V_SHOW)
|
|
261
255
|
};
|
|
262
256
|
};
|
|
263
|
-
|
|
264
257
|
//#endregion
|
|
265
258
|
//#region packages/compiler-dom/src/transforms/Transition.ts
|
|
266
259
|
function postTransformTransition(node, onError, hasMultipleChildren = defaultHasMultipleChildren) {
|
|
@@ -288,7 +281,6 @@ function defaultHasMultipleChildren(node) {
|
|
|
288
281
|
const child = children[0];
|
|
289
282
|
return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(defaultHasMultipleChildren);
|
|
290
283
|
}
|
|
291
|
-
|
|
292
284
|
//#endregion
|
|
293
285
|
//#region packages/compiler-dom/src/transforms/stringifyStatic.ts
|
|
294
286
|
/**
|
|
@@ -480,13 +472,11 @@ function evaluateConstant(exp) {
|
|
|
480
472
|
return res;
|
|
481
473
|
}
|
|
482
474
|
}
|
|
483
|
-
|
|
484
475
|
//#endregion
|
|
485
476
|
//#region packages/compiler-dom/src/transforms/ignoreSideEffectTags.ts
|
|
486
477
|
const ignoreSideEffectTags = (node, context) => {
|
|
487
478
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) context.removeNode();
|
|
488
479
|
};
|
|
489
|
-
|
|
490
480
|
//#endregion
|
|
491
481
|
//#region packages/compiler-dom/src/htmlNesting.ts
|
|
492
482
|
/**
|
|
@@ -677,7 +667,6 @@ const knownInvalidParents = {
|
|
|
677
667
|
h5: headings,
|
|
678
668
|
h6: headings
|
|
679
669
|
};
|
|
680
|
-
|
|
681
670
|
//#endregion
|
|
682
671
|
//#region packages/compiler-dom/src/index.ts
|
|
683
672
|
const DOMNodeTransforms = [transformStyle, ...[]];
|
|
@@ -703,7 +692,6 @@ function compile(src, options = {}) {
|
|
|
703
692
|
function parse(template, options = {}) {
|
|
704
693
|
return (0, _vue_compiler_core.baseParse)(template, (0, _vue_shared.extend)({}, parserOptions, options));
|
|
705
694
|
}
|
|
706
|
-
|
|
707
695
|
//#endregion
|
|
708
696
|
exports.DOMDirectiveTransforms = DOMDirectiveTransforms;
|
|
709
697
|
exports.DOMErrorCodes = DOMErrorCodes;
|
|
@@ -728,9 +716,11 @@ exports.parserOptions = parserOptions;
|
|
|
728
716
|
exports.postTransformTransition = postTransformTransition;
|
|
729
717
|
exports.resolveModifiers = resolveModifiers;
|
|
730
718
|
exports.transformStyle = transformStyle;
|
|
731
|
-
Object.keys(_vue_compiler_core).forEach(function
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
719
|
+
Object.keys(_vue_compiler_core).forEach(function(k) {
|
|
720
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
721
|
+
enumerable: true,
|
|
722
|
+
get: function() {
|
|
723
|
+
return _vue_compiler_core[k];
|
|
724
|
+
}
|
|
725
|
+
});
|
|
736
726
|
});
|