@vue/compiler-dom 3.6.0-beta.7 → 3.6.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler-dom.cjs.js +12 -23
- package/dist/compiler-dom.cjs.prod.js +12 -22
- package/dist/compiler-dom.esm-browser.js +5 -59
- package/dist/compiler-dom.esm-browser.prod.js +2 -2
- package/dist/compiler-dom.esm-bundler.js +3 -20
- package/dist/compiler-dom.global.js +292 -348
- package/dist/compiler-dom.global.prod.js +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-dom v3.6.0-beta.
|
|
2
|
+
* @vue/compiler-dom v3.6.0-beta.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -17,11 +17,10 @@ function makeMap(str) {
|
|
|
17
17
|
for (const key of str.split(",")) map[key] = 1;
|
|
18
18
|
return (val) => val in map;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
20
|
//#endregion
|
|
22
21
|
//#region packages/shared/src/general.ts
|
|
23
22
|
const EMPTY_OBJ = Object.freeze({});
|
|
24
|
-
|
|
23
|
+
Object.freeze([]);
|
|
25
24
|
const NOOP = () => {};
|
|
26
25
|
/**
|
|
27
26
|
* Always return false.
|
|
@@ -48,10 +47,7 @@ const camelizeReplacer = (_, c) => c ? c.toUpperCase() : "";
|
|
|
48
47
|
*/
|
|
49
48
|
const camelize = cacheStringFunction((str) => str.replace(camelizeRE, camelizeReplacer));
|
|
50
49
|
const hyphenateRE = /\B([A-Z])/g;
|
|
51
|
-
|
|
52
|
-
* @private
|
|
53
|
-
*/
|
|
54
|
-
const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
|
|
50
|
+
cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
|
|
55
51
|
/**
|
|
56
52
|
* @private
|
|
57
53
|
*/
|
|
@@ -73,7 +69,6 @@ const toHandlerKey = cacheStringFunction((str) => {
|
|
|
73
69
|
const getModifierPropName = (name) => {
|
|
74
70
|
return `${name === "modelValue" || name === "model-value" ? "model" : name}Modifiers${name === "model" ? "$" : ""}`;
|
|
75
71
|
};
|
|
76
|
-
|
|
77
72
|
//#endregion
|
|
78
73
|
//#region packages/shared/src/patchFlags.ts
|
|
79
74
|
/**
|
|
@@ -95,7 +90,6 @@ const PatchFlagNames = {
|
|
|
95
90
|
[-1]: `CACHED`,
|
|
96
91
|
[-2]: `BAIL`
|
|
97
92
|
};
|
|
98
|
-
|
|
99
93
|
//#endregion
|
|
100
94
|
//#region packages/shared/src/slotFlags.ts
|
|
101
95
|
/**
|
|
@@ -106,7 +100,6 @@ const slotFlagsText = {
|
|
|
106
100
|
[2]: "DYNAMIC",
|
|
107
101
|
[3]: "FORWARDED"
|
|
108
102
|
};
|
|
109
|
-
|
|
110
103
|
//#endregion
|
|
111
104
|
//#region packages/shared/src/codeframe.ts
|
|
112
105
|
const range = 2;
|
|
@@ -145,7 +138,6 @@ function generateCodeFrame(source, start = 0, end = source.length) {
|
|
|
145
138
|
}
|
|
146
139
|
return res.join("\n");
|
|
147
140
|
}
|
|
148
|
-
|
|
149
141
|
//#endregion
|
|
150
142
|
//#region packages/shared/src/normalizeProp.ts
|
|
151
143
|
const listDelimiterRE = /;(?![^(]*\))/g;
|
|
@@ -161,7 +153,6 @@ function parseStringStyle(cssText) {
|
|
|
161
153
|
});
|
|
162
154
|
return ret;
|
|
163
155
|
}
|
|
164
|
-
|
|
165
156
|
//#endregion
|
|
166
157
|
//#region packages/shared/src/domTagConfig.ts
|
|
167
158
|
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";
|
|
@@ -188,7 +179,6 @@ const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
|
188
179
|
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
189
180
|
*/
|
|
190
181
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
191
|
-
|
|
192
182
|
//#endregion
|
|
193
183
|
//#region packages/compiler-core/src/runtimeHelpers.ts
|
|
194
184
|
const FRAGMENT = Symbol(`Fragment`);
|
|
@@ -283,7 +273,6 @@ function registerRuntimeHelpers(helpers) {
|
|
|
283
273
|
helperNameMap[s] = helpers[s];
|
|
284
274
|
});
|
|
285
275
|
}
|
|
286
|
-
|
|
287
276
|
//#endregion
|
|
288
277
|
//#region packages/compiler-core/src/ast.ts
|
|
289
278
|
const NodeTypes = {
|
|
@@ -561,7 +550,6 @@ function convertToBlock(node, { helper, removeHelper, inSSR }) {
|
|
|
561
550
|
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
562
551
|
}
|
|
563
552
|
}
|
|
564
|
-
|
|
565
553
|
//#endregion
|
|
566
554
|
//#region packages/compiler-core/src/tokenizer.ts
|
|
567
555
|
const defaultDelimitersOpen = new Uint8Array([123, 123]);
|
|
@@ -1270,7 +1258,6 @@ var Tokenizer = class {
|
|
|
1270
1258
|
}
|
|
1271
1259
|
emitCodePoint(cp, consumed) {}
|
|
1272
1260
|
};
|
|
1273
|
-
|
|
1274
1261
|
//#endregion
|
|
1275
1262
|
//#region packages/compiler-core/src/compat/compatConfig.ts
|
|
1276
1263
|
const CompilerDeprecationTypes = {
|
|
@@ -1338,7 +1325,6 @@ function warnDeprecation(key, context, loc, ...args) {
|
|
|
1338
1325
|
if (loc) err.loc = loc;
|
|
1339
1326
|
context.onWarn(err);
|
|
1340
1327
|
}
|
|
1341
|
-
|
|
1342
1328
|
//#endregion
|
|
1343
1329
|
//#region packages/compiler-core/src/errors.ts
|
|
1344
1330
|
function defaultOnError(error) {
|
|
@@ -1523,7 +1509,6 @@ const errorMessages = {
|
|
|
1523
1509
|
[51]: `"scopeId" option is only supported in module mode.`,
|
|
1524
1510
|
[54]: ``
|
|
1525
1511
|
};
|
|
1526
|
-
|
|
1527
1512
|
//#endregion
|
|
1528
1513
|
//#region packages/compiler-core/src/babelUtils.ts
|
|
1529
1514
|
/**
|
|
@@ -1661,7 +1646,6 @@ function isConstantNode(node, bindings) {
|
|
|
1661
1646
|
}
|
|
1662
1647
|
return false;
|
|
1663
1648
|
}
|
|
1664
|
-
|
|
1665
1649
|
//#endregion
|
|
1666
1650
|
//#region packages/compiler-core/src/utils.ts
|
|
1667
1651
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -1932,7 +1916,6 @@ function isWhitespaceText(node) {
|
|
|
1932
1916
|
function isCommentOrWhitespace(node) {
|
|
1933
1917
|
return node.type === 3 || isWhitespaceText(node);
|
|
1934
1918
|
}
|
|
1935
|
-
|
|
1936
1919
|
//#endregion
|
|
1937
1920
|
//#region packages/compiler-core/src/parser.ts
|
|
1938
1921
|
const defaultParserOptions = {
|
|
@@ -2465,7 +2448,6 @@ function baseParse(input, options) {
|
|
|
2465
2448
|
currentRoot = null;
|
|
2466
2449
|
return root;
|
|
2467
2450
|
}
|
|
2468
|
-
|
|
2469
2451
|
//#endregion
|
|
2470
2452
|
//#region packages/compiler-core/src/transforms/cacheStatic.ts
|
|
2471
2453
|
function cacheStatic(root, context) {
|
|
@@ -2661,7 +2643,6 @@ function getNodeProps(node) {
|
|
|
2661
2643
|
const codegenNode = node.codegenNode;
|
|
2662
2644
|
if (codegenNode.type === 13) return codegenNode.props;
|
|
2663
2645
|
}
|
|
2664
|
-
|
|
2665
2646
|
//#endregion
|
|
2666
2647
|
//#region packages/compiler-core/src/transform.ts
|
|
2667
2648
|
function getSelfName(filename) {
|
|
@@ -2869,7 +2850,6 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
2869
2850
|
}
|
|
2870
2851
|
};
|
|
2871
2852
|
}
|
|
2872
|
-
|
|
2873
2853
|
//#endregion
|
|
2874
2854
|
//#region packages/compiler-core/src/codegen.ts
|
|
2875
2855
|
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
@@ -3304,7 +3284,6 @@ function genCacheExpression(node, context) {
|
|
|
3304
3284
|
push(`)`);
|
|
3305
3285
|
if (needArraySpread) push(`)]`);
|
|
3306
3286
|
}
|
|
3307
|
-
|
|
3308
3287
|
//#endregion
|
|
3309
3288
|
//#region packages/compiler-core/src/validateExpression.ts
|
|
3310
3289
|
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");
|
|
@@ -3326,7 +3305,6 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
3326
3305
|
context.onError(createCompilerError(46, node.loc, void 0, message));
|
|
3327
3306
|
}
|
|
3328
3307
|
}
|
|
3329
|
-
|
|
3330
3308
|
//#endregion
|
|
3331
3309
|
//#region packages/compiler-core/src/transforms/transformExpression.ts
|
|
3332
3310
|
const isLiteralWhitelisted = /* @__PURE__ */ makeMap("true,false,null,this");
|
|
@@ -3354,7 +3332,6 @@ function stringifyExpression(exp) {
|
|
|
3354
3332
|
else if (exp.type === 4) return exp.content;
|
|
3355
3333
|
else return exp.children.map(stringifyExpression).join("");
|
|
3356
3334
|
}
|
|
3357
|
-
|
|
3358
3335
|
//#endregion
|
|
3359
3336
|
//#region packages/compiler-core/src/transforms/vIf.ts
|
|
3360
3337
|
const transformIf = createStructuralDirectiveTransform(/^(?:if|else|else-if)$/, (node, dir, context) => {
|
|
@@ -3477,7 +3454,6 @@ function getParentCondition(node) {
|
|
|
3477
3454
|
else return node;
|
|
3478
3455
|
else if (node.type === 20) node = node.value;
|
|
3479
3456
|
}
|
|
3480
|
-
|
|
3481
3457
|
//#endregion
|
|
3482
3458
|
//#region packages/compiler-core/src/transforms/vFor.ts
|
|
3483
3459
|
const transformFor = createStructuralDirectiveTransform("for", (node, dir, context) => {
|
|
@@ -3534,7 +3510,7 @@ const transformFor = createStructuralDirectiveTransform("for", (node, dir, conte
|
|
|
3534
3510
|
`)`
|
|
3535
3511
|
]),
|
|
3536
3512
|
createCompoundExpression([
|
|
3537
|
-
`if (_cached`,
|
|
3513
|
+
`if (_cached && _cached.el`,
|
|
3538
3514
|
...keyExp ? [` && _cached.key === `, keyExp] : [],
|
|
3539
3515
|
` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
|
|
3540
3516
|
]),
|
|
@@ -3600,7 +3576,6 @@ function createParamsList(args) {
|
|
|
3600
3576
|
while (i--) if (args[i]) break;
|
|
3601
3577
|
return args.slice(0, i + 1).map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));
|
|
3602
3578
|
}
|
|
3603
|
-
|
|
3604
3579
|
//#endregion
|
|
3605
3580
|
//#region packages/compiler-core/src/transforms/vSlot.ts
|
|
3606
3581
|
const defaultFallback = createSimpleExpression(`undefined`, false);
|
|
@@ -3750,7 +3725,6 @@ function hasForwardedSlots(children) {
|
|
|
3750
3725
|
}
|
|
3751
3726
|
return false;
|
|
3752
3727
|
}
|
|
3753
|
-
|
|
3754
3728
|
//#endregion
|
|
3755
3729
|
//#region packages/compiler-core/src/transforms/transformElement.ts
|
|
3756
3730
|
const directiveImportMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -4043,7 +4017,6 @@ function stringifyDynamicPropNames(props) {
|
|
|
4043
4017
|
function isComponentTag(tag) {
|
|
4044
4018
|
return tag === "component" || tag === "Component";
|
|
4045
4019
|
}
|
|
4046
|
-
|
|
4047
4020
|
//#endregion
|
|
4048
4021
|
//#region packages/compiler-core/src/transforms/transformSlotOutlet.ts
|
|
4049
4022
|
const transformSlotOutlet = (node, context) => {
|
|
@@ -4101,7 +4074,6 @@ function processSlotOutlet(node, context) {
|
|
|
4101
4074
|
slotProps
|
|
4102
4075
|
};
|
|
4103
4076
|
}
|
|
4104
|
-
|
|
4105
4077
|
//#endregion
|
|
4106
4078
|
//#region packages/compiler-core/src/transforms/vOn.ts
|
|
4107
4079
|
const transformOn = (dir, node, context, augmentor) => {
|
|
@@ -4143,7 +4115,6 @@ const transformOn = (dir, node, context, augmentor) => {
|
|
|
4143
4115
|
ret.props.forEach((p) => p.key.isHandlerKey = true);
|
|
4144
4116
|
return ret;
|
|
4145
4117
|
};
|
|
4146
|
-
|
|
4147
4118
|
//#endregion
|
|
4148
4119
|
//#region packages/compiler-core/src/transforms/vBind.ts
|
|
4149
4120
|
const transformBind = (dir, _node, context) => {
|
|
@@ -4175,7 +4146,6 @@ const injectPrefix = (arg, prefix) => {
|
|
|
4175
4146
|
arg.children.push(`)`);
|
|
4176
4147
|
}
|
|
4177
4148
|
};
|
|
4178
|
-
|
|
4179
4149
|
//#endregion
|
|
4180
4150
|
//#region packages/compiler-core/src/transforms/transformText.ts
|
|
4181
4151
|
const transformText = (node, context) => {
|
|
@@ -4218,7 +4188,6 @@ const transformText = (node, context) => {
|
|
|
4218
4188
|
}
|
|
4219
4189
|
};
|
|
4220
4190
|
};
|
|
4221
|
-
|
|
4222
4191
|
//#endregion
|
|
4223
4192
|
//#region packages/compiler-core/src/transforms/vOnce.ts
|
|
4224
4193
|
const seen$1 = /* @__PURE__ */ new WeakSet();
|
|
@@ -4235,7 +4204,6 @@ const transformOnce = (node, context) => {
|
|
|
4235
4204
|
};
|
|
4236
4205
|
}
|
|
4237
4206
|
};
|
|
4238
|
-
|
|
4239
4207
|
//#endregion
|
|
4240
4208
|
//#region packages/compiler-core/src/transforms/vModel.ts
|
|
4241
4209
|
const transformModel = (dir, node, context) => {
|
|
@@ -4278,7 +4246,6 @@ const transformModel = (dir, node, context) => {
|
|
|
4278
4246
|
function createTransformProps(props = []) {
|
|
4279
4247
|
return { props };
|
|
4280
4248
|
}
|
|
4281
|
-
|
|
4282
4249
|
//#endregion
|
|
4283
4250
|
//#region packages/compiler-core/src/compat/transformFilter.ts
|
|
4284
4251
|
const validDivisionCharRE = /[\w).+\-_$\]]/;
|
|
@@ -4392,7 +4359,6 @@ function wrapFilter(exp, filter, context) {
|
|
|
4392
4359
|
return `${toValidAssetId(name, "filter")}(${exp}${args !== ")" ? "," + args : args}`;
|
|
4393
4360
|
}
|
|
4394
4361
|
}
|
|
4395
|
-
|
|
4396
4362
|
//#endregion
|
|
4397
4363
|
//#region packages/compiler-core/src/transforms/vMemo.ts
|
|
4398
4364
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -4416,7 +4382,6 @@ const transformMemo = (node, context) => {
|
|
|
4416
4382
|
};
|
|
4417
4383
|
}
|
|
4418
4384
|
};
|
|
4419
|
-
|
|
4420
4385
|
//#endregion
|
|
4421
4386
|
//#region packages/compiler-core/src/transforms/transformVBindShorthand.ts
|
|
4422
4387
|
const transformVBindShorthand = (node, context) => {
|
|
@@ -4433,7 +4398,6 @@ const transformVBindShorthand = (node, context) => {
|
|
|
4433
4398
|
}
|
|
4434
4399
|
}
|
|
4435
4400
|
};
|
|
4436
|
-
|
|
4437
4401
|
//#endregion
|
|
4438
4402
|
//#region packages/compiler-core/src/compile.ts
|
|
4439
4403
|
function getBaseTransformPreset(prefixIdentifiers) {
|
|
@@ -4473,7 +4437,6 @@ function baseCompile(source, options = {}) {
|
|
|
4473
4437
|
}));
|
|
4474
4438
|
return generate(ast, resolvedOptions);
|
|
4475
4439
|
}
|
|
4476
|
-
|
|
4477
4440
|
//#endregion
|
|
4478
4441
|
//#region packages/compiler-core/src/options.ts
|
|
4479
4442
|
const BindingTypes = {
|
|
@@ -4488,11 +4451,9 @@ const BindingTypes = {
|
|
|
4488
4451
|
"OPTIONS": "options",
|
|
4489
4452
|
"LITERAL_CONST": "literal-const"
|
|
4490
4453
|
};
|
|
4491
|
-
|
|
4492
4454
|
//#endregion
|
|
4493
4455
|
//#region packages/compiler-core/src/transforms/noopDirectiveTransform.ts
|
|
4494
4456
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
4495
|
-
|
|
4496
4457
|
//#endregion
|
|
4497
4458
|
//#region packages/compiler-dom/src/runtimeHelpers.ts
|
|
4498
4459
|
const V_MODEL_RADIO = Symbol(`vModelRadio`);
|
|
@@ -4517,7 +4478,6 @@ registerRuntimeHelpers({
|
|
|
4517
4478
|
[TRANSITION]: `Transition`,
|
|
4518
4479
|
[TRANSITION_GROUP]: `TransitionGroup`
|
|
4519
4480
|
});
|
|
4520
|
-
|
|
4521
4481
|
//#endregion
|
|
4522
4482
|
//#region packages/compiler-dom/src/decodeHtmlBrowser.ts
|
|
4523
4483
|
let decoder;
|
|
@@ -4531,7 +4491,6 @@ function decodeHtmlBrowser(raw, asAttr = false) {
|
|
|
4531
4491
|
return decoder.textContent;
|
|
4532
4492
|
}
|
|
4533
4493
|
}
|
|
4534
|
-
|
|
4535
4494
|
//#endregion
|
|
4536
4495
|
//#region packages/compiler-dom/src/parserOptions.ts
|
|
4537
4496
|
const parserOptions = {
|
|
@@ -4562,7 +4521,6 @@ const parserOptions = {
|
|
|
4562
4521
|
return ns;
|
|
4563
4522
|
}
|
|
4564
4523
|
};
|
|
4565
|
-
|
|
4566
4524
|
//#endregion
|
|
4567
4525
|
//#region packages/compiler-dom/src/transforms/transformStyle.ts
|
|
4568
4526
|
const transformStyle = (node) => {
|
|
@@ -4581,7 +4539,6 @@ const parseInlineCSS = (cssText, loc) => {
|
|
|
4581
4539
|
const normalized = parseStringStyle(cssText);
|
|
4582
4540
|
return createSimpleExpression(JSON.stringify(normalized), false, loc, 3);
|
|
4583
4541
|
};
|
|
4584
|
-
|
|
4585
4542
|
//#endregion
|
|
4586
4543
|
//#region packages/compiler-dom/src/errors.ts
|
|
4587
4544
|
function createDOMCompilerError(code, loc) {
|
|
@@ -4627,7 +4584,6 @@ const DOMErrorMessages = {
|
|
|
4627
4584
|
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
4628
4585
|
[65]: ``
|
|
4629
4586
|
};
|
|
4630
|
-
|
|
4631
4587
|
//#endregion
|
|
4632
4588
|
//#region packages/compiler-dom/src/transforms/vHtml.ts
|
|
4633
4589
|
const transformVHtml = (dir, node, context) => {
|
|
@@ -4639,7 +4595,6 @@ const transformVHtml = (dir, node, context) => {
|
|
|
4639
4595
|
}
|
|
4640
4596
|
return { props: [createObjectProperty(createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression("", true))] };
|
|
4641
4597
|
};
|
|
4642
|
-
|
|
4643
4598
|
//#endregion
|
|
4644
4599
|
//#region packages/compiler-dom/src/transforms/vText.ts
|
|
4645
4600
|
const transformVText = (dir, node, context) => {
|
|
@@ -4651,7 +4606,6 @@ const transformVText = (dir, node, context) => {
|
|
|
4651
4606
|
}
|
|
4652
4607
|
return { props: [createObjectProperty(createSimpleExpression(`textContent`, true), exp ? getConstantType(exp, context) > 0 ? exp : createCallExpression(context.helperString(TO_DISPLAY_STRING), [exp], loc) : createSimpleExpression("", true))] };
|
|
4653
4608
|
};
|
|
4654
|
-
|
|
4655
4609
|
//#endregion
|
|
4656
4610
|
//#region packages/compiler-dom/src/transforms/vModel.ts
|
|
4657
4611
|
const transformModel$1 = (dir, node, context) => {
|
|
@@ -4695,7 +4649,6 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
4695
4649
|
baseResult.props = baseResult.props.filter((p) => !(p.key.type === 4 && p.key.content === "modelValue"));
|
|
4696
4650
|
return baseResult;
|
|
4697
4651
|
};
|
|
4698
|
-
|
|
4699
4652
|
//#endregion
|
|
4700
4653
|
//#region packages/compiler-dom/src/transforms/vOn.ts
|
|
4701
4654
|
const isEventOptionModifier = /* @__PURE__ */ makeMap(`passive,once,capture`);
|
|
@@ -4758,7 +4711,6 @@ const transformOn$1 = (dir, node, context) => {
|
|
|
4758
4711
|
return { props: [createObjectProperty(key, handlerExp)] };
|
|
4759
4712
|
});
|
|
4760
4713
|
};
|
|
4761
|
-
|
|
4762
4714
|
//#endregion
|
|
4763
4715
|
//#region packages/compiler-dom/src/transforms/vShow.ts
|
|
4764
4716
|
const transformShow = (dir, node, context) => {
|
|
@@ -4769,7 +4721,6 @@ const transformShow = (dir, node, context) => {
|
|
|
4769
4721
|
needRuntime: context.helper(V_SHOW)
|
|
4770
4722
|
};
|
|
4771
4723
|
};
|
|
4772
|
-
|
|
4773
4724
|
//#endregion
|
|
4774
4725
|
//#region packages/compiler-dom/src/transforms/Transition.ts
|
|
4775
4726
|
const transformTransition = (node, context) => {
|
|
@@ -4802,7 +4753,6 @@ function defaultHasMultipleChildren(node) {
|
|
|
4802
4753
|
const child = children[0];
|
|
4803
4754
|
return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(defaultHasMultipleChildren);
|
|
4804
4755
|
}
|
|
4805
|
-
|
|
4806
4756
|
//#endregion
|
|
4807
4757
|
//#region packages/compiler-dom/src/transforms/ignoreSideEffectTags.ts
|
|
4808
4758
|
const ignoreSideEffectTags = (node, context) => {
|
|
@@ -4811,7 +4761,6 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
4811
4761
|
context.removeNode();
|
|
4812
4762
|
}
|
|
4813
4763
|
};
|
|
4814
|
-
|
|
4815
4764
|
//#endregion
|
|
4816
4765
|
//#region packages/compiler-dom/src/htmlNesting.ts
|
|
4817
4766
|
/**
|
|
@@ -5002,7 +4951,6 @@ const knownInvalidParents = {
|
|
|
5002
4951
|
h5: headings,
|
|
5003
4952
|
h6: headings
|
|
5004
4953
|
};
|
|
5005
|
-
|
|
5006
4954
|
//#endregion
|
|
5007
4955
|
//#region packages/compiler-dom/src/transforms/validateHtmlNesting.ts
|
|
5008
4956
|
const validateHtmlNesting = (node, context) => {
|
|
@@ -5012,7 +4960,6 @@ const validateHtmlNesting = (node, context) => {
|
|
|
5012
4960
|
context.onWarn(error);
|
|
5013
4961
|
}
|
|
5014
4962
|
};
|
|
5015
|
-
|
|
5016
4963
|
//#endregion
|
|
5017
4964
|
//#region packages/compiler-dom/src/index.ts
|
|
5018
4965
|
const DOMNodeTransforms = [transformStyle, ...[transformTransition, validateHtmlNesting]];
|
|
@@ -5038,6 +4985,5 @@ function compile(src, options = {}) {
|
|
|
5038
4985
|
function parse(template, options = {}) {
|
|
5039
4986
|
return baseParse(template, extend({}, parserOptions, options));
|
|
5040
4987
|
}
|
|
5041
|
-
|
|
5042
4988
|
//#endregion
|
|
5043
|
-
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, DOMDirectiveTransforms, DOMErrorCodes, DOMErrorMessages, DOMNodeTransforms, ElementTypes, ErrorCodes, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, MemberExpLexState, 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, TRANSITION, TRANSITION_GROUP, TS_NODE_TYPES, UNREF, V_MODEL_CHECKBOX, V_MODEL_DYNAMIC, V_MODEL_RADIO, V_MODEL_SELECT, V_MODEL_TEXT, V_ON_WITH_KEYS, V_ON_WITH_MODIFIERS, V_SHOW, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, compile, convertToBlock, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createDOMCompilerError, 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, isKeyboardEvent, isLiteralWhitelisted, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSingleIfBlock, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticNode, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText, isVPre, isVSlot, isValidHTMLNesting, isWhitespaceText, locStub, noopDirectiveTransform, parse, parserOptions, postTransformTransition, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, resolveModifiers, stringifyExpression, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, transformStyle, transformVBindShorthand, traverseNode, unwrapTSNode, validFirstIdentCharRE, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
|
|
4989
|
+
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, DOMDirectiveTransforms, DOMErrorCodes, DOMErrorMessages, DOMNodeTransforms, ElementTypes, ErrorCodes, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, MemberExpLexState, 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, TRANSITION, TRANSITION_GROUP, TS_NODE_TYPES, UNREF, V_MODEL_CHECKBOX, V_MODEL_DYNAMIC, V_MODEL_RADIO, V_MODEL_SELECT, V_MODEL_TEXT, V_ON_WITH_KEYS, V_ON_WITH_MODIFIERS, V_SHOW, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, compile, convertToBlock, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createDOMCompilerError, 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, isKeyboardEvent, isLiteralWhitelisted, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSingleIfBlock, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticNode, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText, isVPre, isVSlot, isValidHTMLNesting, isWhitespaceText, locStub, noopDirectiveTransform, parse, parserOptions, postTransformTransition, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, resolveModifiers, stringifyExpression, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, transformStyle, transformVBindShorthand, traverseNode, unwrapTSNode, validFirstIdentCharRE, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
|