@vue/compiler-dom 3.5.24 → 3.5.26

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-dom v3.5.24
2
+ * @vue/compiler-dom v3.5.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -10,26 +10,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
  var compilerCore = require('@vue/compiler-core');
11
11
  var shared = require('@vue/shared');
12
12
 
13
- const V_MODEL_RADIO = Symbol(`vModelRadio` );
14
- const V_MODEL_CHECKBOX = Symbol(
13
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
14
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
15
15
  `vModelCheckbox`
16
16
  );
17
- const V_MODEL_TEXT = Symbol(`vModelText` );
18
- const V_MODEL_SELECT = Symbol(
17
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
18
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
19
19
  `vModelSelect`
20
20
  );
21
- const V_MODEL_DYNAMIC = Symbol(
21
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
22
22
  `vModelDynamic`
23
23
  );
24
- const V_ON_WITH_MODIFIERS = Symbol(
24
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
25
25
  `vOnModifiersGuard`
26
26
  );
27
- const V_ON_WITH_KEYS = Symbol(
27
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
28
28
  `vOnKeysGuard`
29
29
  );
30
- const V_SHOW = Symbol(`vShow` );
31
- const TRANSITION = Symbol(`Transition` );
32
- const TRANSITION_GROUP = Symbol(
30
+ const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
31
+ const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
32
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
33
33
  `TransitionGroup`
34
34
  );
35
35
  compilerCore.registerRuntimeHelpers({
@@ -126,55 +126,55 @@ function createDOMCompilerError(code, loc) {
126
126
  );
127
127
  }
128
128
  const DOMErrorCodes = {
129
- "X_V_HTML_NO_EXPRESSION": 53,
130
- "53": "X_V_HTML_NO_EXPRESSION",
131
- "X_V_HTML_WITH_CHILDREN": 54,
132
- "54": "X_V_HTML_WITH_CHILDREN",
133
- "X_V_TEXT_NO_EXPRESSION": 55,
134
- "55": "X_V_TEXT_NO_EXPRESSION",
135
- "X_V_TEXT_WITH_CHILDREN": 56,
136
- "56": "X_V_TEXT_WITH_CHILDREN",
137
- "X_V_MODEL_ON_INVALID_ELEMENT": 57,
138
- "57": "X_V_MODEL_ON_INVALID_ELEMENT",
139
- "X_V_MODEL_ARG_ON_ELEMENT": 58,
140
- "58": "X_V_MODEL_ARG_ON_ELEMENT",
141
- "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 59,
142
- "59": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
143
- "X_V_MODEL_UNNECESSARY_VALUE": 60,
144
- "60": "X_V_MODEL_UNNECESSARY_VALUE",
145
- "X_V_SHOW_NO_EXPRESSION": 61,
146
- "61": "X_V_SHOW_NO_EXPRESSION",
147
- "X_TRANSITION_INVALID_CHILDREN": 62,
148
- "62": "X_TRANSITION_INVALID_CHILDREN",
149
- "X_IGNORED_SIDE_EFFECT_TAG": 63,
150
- "63": "X_IGNORED_SIDE_EFFECT_TAG",
151
- "__EXTEND_POINT__": 64,
152
- "64": "__EXTEND_POINT__"
129
+ "X_V_HTML_NO_EXPRESSION": 54,
130
+ "54": "X_V_HTML_NO_EXPRESSION",
131
+ "X_V_HTML_WITH_CHILDREN": 55,
132
+ "55": "X_V_HTML_WITH_CHILDREN",
133
+ "X_V_TEXT_NO_EXPRESSION": 56,
134
+ "56": "X_V_TEXT_NO_EXPRESSION",
135
+ "X_V_TEXT_WITH_CHILDREN": 57,
136
+ "57": "X_V_TEXT_WITH_CHILDREN",
137
+ "X_V_MODEL_ON_INVALID_ELEMENT": 58,
138
+ "58": "X_V_MODEL_ON_INVALID_ELEMENT",
139
+ "X_V_MODEL_ARG_ON_ELEMENT": 59,
140
+ "59": "X_V_MODEL_ARG_ON_ELEMENT",
141
+ "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 60,
142
+ "60": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
143
+ "X_V_MODEL_UNNECESSARY_VALUE": 61,
144
+ "61": "X_V_MODEL_UNNECESSARY_VALUE",
145
+ "X_V_SHOW_NO_EXPRESSION": 62,
146
+ "62": "X_V_SHOW_NO_EXPRESSION",
147
+ "X_TRANSITION_INVALID_CHILDREN": 63,
148
+ "63": "X_TRANSITION_INVALID_CHILDREN",
149
+ "X_IGNORED_SIDE_EFFECT_TAG": 64,
150
+ "64": "X_IGNORED_SIDE_EFFECT_TAG",
151
+ "__EXTEND_POINT__": 65,
152
+ "65": "__EXTEND_POINT__"
153
153
  };
154
154
  const DOMErrorMessages = {
155
- [53]: `v-html is missing expression.`,
156
- [54]: `v-html will override element children.`,
157
- [55]: `v-text is missing expression.`,
158
- [56]: `v-text will override element children.`,
159
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
160
- [58]: `v-model argument is not supported on plain elements.`,
161
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
162
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
163
- [61]: `v-show is missing expression.`,
164
- [62]: `<Transition> expects exactly one child element or component.`,
165
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
155
+ [54]: `v-html is missing expression.`,
156
+ [55]: `v-html will override element children.`,
157
+ [56]: `v-text is missing expression.`,
158
+ [57]: `v-text will override element children.`,
159
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
160
+ [59]: `v-model argument is not supported on plain elements.`,
161
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
162
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
163
+ [62]: `v-show is missing expression.`,
164
+ [63]: `<Transition> expects exactly one child element or component.`,
165
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
166
166
  };
167
167
 
168
168
  const transformVHtml = (dir, node, context) => {
169
169
  const { exp, loc } = dir;
170
170
  if (!exp) {
171
171
  context.onError(
172
- createDOMCompilerError(53, loc)
172
+ createDOMCompilerError(54, loc)
173
173
  );
174
174
  }
175
175
  if (node.children.length) {
176
176
  context.onError(
177
- createDOMCompilerError(54, loc)
177
+ createDOMCompilerError(55, loc)
178
178
  );
179
179
  node.children.length = 0;
180
180
  }
@@ -192,12 +192,12 @@ const transformVText = (dir, node, context) => {
192
192
  const { exp, loc } = dir;
193
193
  if (!exp) {
194
194
  context.onError(
195
- createDOMCompilerError(55, loc)
195
+ createDOMCompilerError(56, loc)
196
196
  );
197
197
  }
198
198
  if (node.children.length) {
199
199
  context.onError(
200
- createDOMCompilerError(56, loc)
200
+ createDOMCompilerError(57, loc)
201
201
  );
202
202
  node.children.length = 0;
203
203
  }
@@ -223,7 +223,7 @@ const transformModel = (dir, node, context) => {
223
223
  if (dir.arg) {
224
224
  context.onError(
225
225
  createDOMCompilerError(
226
- 58,
226
+ 59,
227
227
  dir.arg.loc
228
228
  )
229
229
  );
@@ -233,7 +233,7 @@ const transformModel = (dir, node, context) => {
233
233
  if (value && compilerCore.isStaticArgOf(value.arg, "value")) {
234
234
  context.onError(
235
235
  createDOMCompilerError(
236
- 60,
236
+ 61,
237
237
  value.loc
238
238
  )
239
239
  );
@@ -261,7 +261,7 @@ const transformModel = (dir, node, context) => {
261
261
  isInvalidType = true;
262
262
  context.onError(
263
263
  createDOMCompilerError(
264
- 59,
264
+ 60,
265
265
  dir.loc
266
266
  )
267
267
  );
@@ -287,7 +287,7 @@ const transformModel = (dir, node, context) => {
287
287
  } else {
288
288
  context.onError(
289
289
  createDOMCompilerError(
290
- 57,
290
+ 58,
291
291
  dir.loc
292
292
  )
293
293
  );
@@ -395,7 +395,7 @@ const transformShow = (dir, node, context) => {
395
395
  const { exp, loc } = dir;
396
396
  if (!exp) {
397
397
  context.onError(
398
- createDOMCompilerError(61, loc)
398
+ createDOMCompilerError(62, loc)
399
399
  );
400
400
  }
401
401
  return {
@@ -415,7 +415,7 @@ const transformTransition = (node, context) => {
415
415
  if (hasMultipleChildren(node)) {
416
416
  context.onError(
417
417
  createDOMCompilerError(
418
- 62,
418
+ 63,
419
419
  {
420
420
  start: node.children[0].loc.start,
421
421
  end: node.children[node.children.length - 1].loc.end,
@@ -444,7 +444,7 @@ const transformTransition = (node, context) => {
444
444
  };
445
445
  function hasMultipleChildren(node) {
446
446
  const children = node.children = node.children.filter(
447
- (c) => c.type !== 3 && !(c.type === 2 && !c.content.trim())
447
+ (c) => !compilerCore.isCommentOrWhitespace(c)
448
448
  );
449
449
  const child = children[0];
450
450
  return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(hasMultipleChildren);
@@ -688,7 +688,7 @@ const ignoreSideEffectTags = (node, context) => {
688
688
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
689
689
  context.onError(
690
690
  createDOMCompilerError(
691
- 63,
691
+ 64,
692
692
  node.loc
693
693
  )
694
694
  );
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-dom v3.5.24
2
+ * @vue/compiler-dom v3.5.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -10,26 +10,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
  var compilerCore = require('@vue/compiler-core');
11
11
  var shared = require('@vue/shared');
12
12
 
13
- const V_MODEL_RADIO = Symbol(``);
14
- const V_MODEL_CHECKBOX = Symbol(
13
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(``);
14
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
15
15
  ``
16
16
  );
17
- const V_MODEL_TEXT = Symbol(``);
18
- const V_MODEL_SELECT = Symbol(
17
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(``);
18
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
19
19
  ``
20
20
  );
21
- const V_MODEL_DYNAMIC = Symbol(
21
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
22
22
  ``
23
23
  );
24
- const V_ON_WITH_MODIFIERS = Symbol(
24
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
25
25
  ``
26
26
  );
27
- const V_ON_WITH_KEYS = Symbol(
27
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
28
28
  ``
29
29
  );
30
- const V_SHOW = Symbol(``);
31
- const TRANSITION = Symbol(``);
32
- const TRANSITION_GROUP = Symbol(
30
+ const V_SHOW = /* @__PURE__ */ Symbol(``);
31
+ const TRANSITION = /* @__PURE__ */ Symbol(``);
32
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
33
33
  ``
34
34
  );
35
35
  compilerCore.registerRuntimeHelpers({
@@ -126,55 +126,55 @@ function createDOMCompilerError(code, loc) {
126
126
  );
127
127
  }
128
128
  const DOMErrorCodes = {
129
- "X_V_HTML_NO_EXPRESSION": 53,
130
- "53": "X_V_HTML_NO_EXPRESSION",
131
- "X_V_HTML_WITH_CHILDREN": 54,
132
- "54": "X_V_HTML_WITH_CHILDREN",
133
- "X_V_TEXT_NO_EXPRESSION": 55,
134
- "55": "X_V_TEXT_NO_EXPRESSION",
135
- "X_V_TEXT_WITH_CHILDREN": 56,
136
- "56": "X_V_TEXT_WITH_CHILDREN",
137
- "X_V_MODEL_ON_INVALID_ELEMENT": 57,
138
- "57": "X_V_MODEL_ON_INVALID_ELEMENT",
139
- "X_V_MODEL_ARG_ON_ELEMENT": 58,
140
- "58": "X_V_MODEL_ARG_ON_ELEMENT",
141
- "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 59,
142
- "59": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
143
- "X_V_MODEL_UNNECESSARY_VALUE": 60,
144
- "60": "X_V_MODEL_UNNECESSARY_VALUE",
145
- "X_V_SHOW_NO_EXPRESSION": 61,
146
- "61": "X_V_SHOW_NO_EXPRESSION",
147
- "X_TRANSITION_INVALID_CHILDREN": 62,
148
- "62": "X_TRANSITION_INVALID_CHILDREN",
149
- "X_IGNORED_SIDE_EFFECT_TAG": 63,
150
- "63": "X_IGNORED_SIDE_EFFECT_TAG",
151
- "__EXTEND_POINT__": 64,
152
- "64": "__EXTEND_POINT__"
129
+ "X_V_HTML_NO_EXPRESSION": 54,
130
+ "54": "X_V_HTML_NO_EXPRESSION",
131
+ "X_V_HTML_WITH_CHILDREN": 55,
132
+ "55": "X_V_HTML_WITH_CHILDREN",
133
+ "X_V_TEXT_NO_EXPRESSION": 56,
134
+ "56": "X_V_TEXT_NO_EXPRESSION",
135
+ "X_V_TEXT_WITH_CHILDREN": 57,
136
+ "57": "X_V_TEXT_WITH_CHILDREN",
137
+ "X_V_MODEL_ON_INVALID_ELEMENT": 58,
138
+ "58": "X_V_MODEL_ON_INVALID_ELEMENT",
139
+ "X_V_MODEL_ARG_ON_ELEMENT": 59,
140
+ "59": "X_V_MODEL_ARG_ON_ELEMENT",
141
+ "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 60,
142
+ "60": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
143
+ "X_V_MODEL_UNNECESSARY_VALUE": 61,
144
+ "61": "X_V_MODEL_UNNECESSARY_VALUE",
145
+ "X_V_SHOW_NO_EXPRESSION": 62,
146
+ "62": "X_V_SHOW_NO_EXPRESSION",
147
+ "X_TRANSITION_INVALID_CHILDREN": 63,
148
+ "63": "X_TRANSITION_INVALID_CHILDREN",
149
+ "X_IGNORED_SIDE_EFFECT_TAG": 64,
150
+ "64": "X_IGNORED_SIDE_EFFECT_TAG",
151
+ "__EXTEND_POINT__": 65,
152
+ "65": "__EXTEND_POINT__"
153
153
  };
154
154
  const DOMErrorMessages = {
155
- [53]: `v-html is missing expression.`,
156
- [54]: `v-html will override element children.`,
157
- [55]: `v-text is missing expression.`,
158
- [56]: `v-text will override element children.`,
159
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
160
- [58]: `v-model argument is not supported on plain elements.`,
161
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
162
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
163
- [61]: `v-show is missing expression.`,
164
- [62]: `<Transition> expects exactly one child element or component.`,
165
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
155
+ [54]: `v-html is missing expression.`,
156
+ [55]: `v-html will override element children.`,
157
+ [56]: `v-text is missing expression.`,
158
+ [57]: `v-text will override element children.`,
159
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
160
+ [59]: `v-model argument is not supported on plain elements.`,
161
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
162
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
163
+ [62]: `v-show is missing expression.`,
164
+ [63]: `<Transition> expects exactly one child element or component.`,
165
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
166
166
  };
167
167
 
168
168
  const transformVHtml = (dir, node, context) => {
169
169
  const { exp, loc } = dir;
170
170
  if (!exp) {
171
171
  context.onError(
172
- createDOMCompilerError(53, loc)
172
+ createDOMCompilerError(54, loc)
173
173
  );
174
174
  }
175
175
  if (node.children.length) {
176
176
  context.onError(
177
- createDOMCompilerError(54, loc)
177
+ createDOMCompilerError(55, loc)
178
178
  );
179
179
  node.children.length = 0;
180
180
  }
@@ -192,12 +192,12 @@ const transformVText = (dir, node, context) => {
192
192
  const { exp, loc } = dir;
193
193
  if (!exp) {
194
194
  context.onError(
195
- createDOMCompilerError(55, loc)
195
+ createDOMCompilerError(56, loc)
196
196
  );
197
197
  }
198
198
  if (node.children.length) {
199
199
  context.onError(
200
- createDOMCompilerError(56, loc)
200
+ createDOMCompilerError(57, loc)
201
201
  );
202
202
  node.children.length = 0;
203
203
  }
@@ -223,7 +223,7 @@ const transformModel = (dir, node, context) => {
223
223
  if (dir.arg) {
224
224
  context.onError(
225
225
  createDOMCompilerError(
226
- 58,
226
+ 59,
227
227
  dir.arg.loc
228
228
  )
229
229
  );
@@ -250,7 +250,7 @@ const transformModel = (dir, node, context) => {
250
250
  isInvalidType = true;
251
251
  context.onError(
252
252
  createDOMCompilerError(
253
- 59,
253
+ 60,
254
254
  dir.loc
255
255
  )
256
256
  );
@@ -269,7 +269,7 @@ const transformModel = (dir, node, context) => {
269
269
  } else {
270
270
  context.onError(
271
271
  createDOMCompilerError(
272
- 57,
272
+ 58,
273
273
  dir.loc
274
274
  )
275
275
  );
@@ -377,7 +377,7 @@ const transformShow = (dir, node, context) => {
377
377
  const { exp, loc } = dir;
378
378
  if (!exp) {
379
379
  context.onError(
380
- createDOMCompilerError(61, loc)
380
+ createDOMCompilerError(62, loc)
381
381
  );
382
382
  }
383
383
  return {
@@ -21,18 +21,18 @@ interface DOMCompilerError extends CompilerError {
21
21
  }
22
22
  export declare function createDOMCompilerError(code: DOMErrorCodes, loc?: SourceLocation): DOMCompilerError;
23
23
  export declare enum DOMErrorCodes {
24
- X_V_HTML_NO_EXPRESSION = 53,
25
- X_V_HTML_WITH_CHILDREN = 54,
26
- X_V_TEXT_NO_EXPRESSION = 55,
27
- X_V_TEXT_WITH_CHILDREN = 56,
28
- X_V_MODEL_ON_INVALID_ELEMENT = 57,
29
- X_V_MODEL_ARG_ON_ELEMENT = 58,
30
- X_V_MODEL_ON_FILE_INPUT_ELEMENT = 59,
31
- X_V_MODEL_UNNECESSARY_VALUE = 60,
32
- X_V_SHOW_NO_EXPRESSION = 61,
33
- X_TRANSITION_INVALID_CHILDREN = 62,
34
- X_IGNORED_SIDE_EFFECT_TAG = 63,
35
- __EXTEND_POINT__ = 64
24
+ X_V_HTML_NO_EXPRESSION = 54,
25
+ X_V_HTML_WITH_CHILDREN = 55,
26
+ X_V_TEXT_NO_EXPRESSION = 56,
27
+ X_V_TEXT_WITH_CHILDREN = 57,
28
+ X_V_MODEL_ON_INVALID_ELEMENT = 58,
29
+ X_V_MODEL_ARG_ON_ELEMENT = 59,
30
+ X_V_MODEL_ON_FILE_INPUT_ELEMENT = 60,
31
+ X_V_MODEL_UNNECESSARY_VALUE = 61,
32
+ X_V_SHOW_NO_EXPRESSION = 62,
33
+ X_TRANSITION_INVALID_CHILDREN = 63,
34
+ X_IGNORED_SIDE_EFFECT_TAG = 64,
35
+ __EXTEND_POINT__ = 65
36
36
  }
37
37
  export declare const DOMErrorMessages: {
38
38
  [code: number]: string;