11/**
2- * @vue /compiler-dom v3.6.0-rc.5
2+ * @vue /compiler-dom v3.6.0-rc.6
33 * (c) 2018-present Yuxi (Evan) You and Vue contributors
44 * @license MIT
55 **/
@@ -177,9 +177,7 @@ const transformModel = (dir, node, context) => {
177177 isInvalidType = true ;
178178 context . onError ( createDOMCompilerError ( 60 , dir . loc ) ) ;
179179 break ;
180- default :
181- checkDuplicatedValue ( ) ;
182- break ;
180+ default : checkDuplicatedValue ( ) ;
183181 }
184182 } else if ( ( 0 , _vue_compiler_core . hasDynamicKeyVBind ) ( node ) ) directiveToUse = V_MODEL_DYNAMIC ;
185183 else checkDuplicatedValue ( ) ;
@@ -192,10 +190,10 @@ const transformModel = (dir, node, context) => {
192190} ;
193191//#endregion
194192//#region packages/compiler-dom/src/transforms/vOn.ts
195- const isEventOptionModifier = /* @__PURE__ */ ( 0 , _vue_shared . makeMap ) ( `passive,once,capture` ) ;
196- const isNonKeyModifier = /* @__PURE__ */ ( 0 , _vue_shared . makeMap ) ( "stop,prevent,self,ctrl,shift,alt,meta,exact,middle" ) ;
197- const maybeKeyModifier = /* @__PURE__ */ ( 0 , _vue_shared . makeMap ) ( "left,right" ) ;
198- const isKeyboardEvent = /* @__PURE__ */ ( 0 , _vue_shared . makeMap ) ( `onkeyup,onkeydown,onkeypress` ) ;
193+ const isEventOptionModifier = /*@__PURE__ */ ( 0 , _vue_shared . makeMap ) ( `passive,once,capture` ) ;
194+ const isNonKeyModifier = /*@__PURE__ */ ( 0 , _vue_shared . makeMap ) ( "stop,prevent,self,ctrl,shift,alt,meta,exact,middle" ) ;
195+ const maybeKeyModifier = /*@__PURE__ */ ( 0 , _vue_shared . makeMap ) ( "left,right" ) ;
196+ const isKeyboardEvent = /*@__PURE__ */ ( 0 , _vue_shared . makeMap ) ( `onkeyup,onkeydown,onkeypress` ) ;
199197const resolveModifiers = ( key , modifiers , context , loc ) => {
200198 const keyModifiers = [ ] ;
201199 const nonKeyModifiers = [ ] ;
@@ -214,13 +212,15 @@ const resolveModifiers = (key, modifiers, context, loc) => {
214212 else if ( isEventOptionModifier ( modifier ) ) eventOptionModifiers . push ( modifier ) ;
215213 else {
216214 const keyString = ( 0 , _vue_shared . isString ) ( key ) ? key : ( 0 , _vue_compiler_core . isStaticExp ) ( key ) ? key . content : null ;
217- if ( maybeKeyModifier ( modifier ) ) if ( keyString ) if ( isKeyboardEvent ( keyString . toLowerCase ( ) ) ) keyModifiers . push ( modifier ) ;
218- else nonKeyModifiers . push ( modifier ) ;
219- else {
220- keyModifiers . push ( modifier ) ;
221- nonKeyModifiers . push ( modifier ) ;
222- }
223- else if ( isNonKeyModifier ( modifier ) ) nonKeyModifiers . push ( modifier ) ;
215+ if ( maybeKeyModifier ( modifier ) ) {
216+ if ( keyString ) {
217+ if ( isKeyboardEvent ( keyString . toLowerCase ( ) ) ) keyModifiers . push ( modifier ) ;
218+ else nonKeyModifiers . push ( modifier ) ;
219+ } else {
220+ keyModifiers . push ( modifier ) ;
221+ nonKeyModifiers . push ( modifier ) ;
222+ }
223+ } else if ( isNonKeyModifier ( modifier ) ) nonKeyModifiers . push ( modifier ) ;
224224 else keyModifiers . push ( modifier ) ;
225225 }
226226 }
@@ -390,7 +390,7 @@ const dataAriaRE = /^(?:data|aria)-/;
390390const isStringifiableAttr = ( name , ns ) => {
391391 return ( ns === 0 ? ( 0 , _vue_shared . isKnownHtmlAttr ) ( name ) : ns === 1 ? ( 0 , _vue_shared . isKnownSvgAttr ) ( name ) : ns === 2 ? ( 0 , _vue_shared . isKnownMathMLAttr ) ( name ) : false ) || dataAriaRE . test ( name ) ;
392392} ;
393- const isNonStringifiable = /* @__PURE__ */ ( 0 , _vue_shared . makeMap ) ( `caption,thead,tr,th,tbody,td,tfoot,colgroup,col` ) ;
393+ const isNonStringifiable = /*@__PURE__ */ ( 0 , _vue_shared . makeMap ) ( `caption,thead,tr,th,tbody,td,tfoot,colgroup,col` ) ;
394394/**
395395* for a cached node, analyze it and return:
396396* - false: bailed (contains non-stringifiable props or runtime constant)
@@ -527,7 +527,7 @@ function isValidHTMLNesting(parent, child) {
527527 }
528528 return true ;
529529}
530- const headings = new Set ( [
530+ const headings = /* @__PURE__ */ new Set ( [
531531 "h1" ,
532532 "h2" ,
533533 "h3" ,
@@ -539,7 +539,7 @@ const emptySet = /* @__PURE__ */ new Set([]);
539539/**
540540* maps element to set of elements that can be it's children, no other */
541541const onlyValidChildren = {
542- head : new Set ( [
542+ head : /* @__PURE__ */ new Set ( [
543543 "base" ,
544544 "basefront" ,
545545 "bgsound" ,
@@ -552,24 +552,24 @@ const onlyValidChildren = {
552552 "script" ,
553553 "template"
554554 ] ) ,
555- optgroup : new Set ( [ "option" ] ) ,
556- select : new Set ( [
555+ optgroup : /* @__PURE__ */ new Set ( [ "option" ] ) ,
556+ select : /* @__PURE__ */ new Set ( [
557557 "optgroup" ,
558558 "option" ,
559559 "hr"
560560 ] ) ,
561- table : new Set ( [
561+ table : /* @__PURE__ */ new Set ( [
562562 "caption" ,
563563 "colgroup" ,
564564 "tbody" ,
565565 "tfoot" ,
566566 "thead"
567567 ] ) ,
568- tr : new Set ( [ "td" , "th" ] ) ,
569- colgroup : new Set ( [ "col" ] ) ,
570- tbody : new Set ( [ "tr" ] ) ,
571- thead : new Set ( [ "tr" ] ) ,
572- tfoot : new Set ( [ "tr" ] ) ,
568+ tr : /* @__PURE__ */ new Set ( [ "td" , "th" ] ) ,
569+ colgroup : /* @__PURE__ */ new Set ( [ "col" ] ) ,
570+ tbody : /* @__PURE__ */ new Set ( [ "tr" ] ) ,
571+ thead : /* @__PURE__ */ new Set ( [ "tr" ] ) ,
572+ tfoot : /* @__PURE__ */ new Set ( [ "tr" ] ) ,
573573 script : emptySet ,
574574 iframe : emptySet ,
575575 option : emptySet ,
@@ -580,30 +580,30 @@ const onlyValidChildren = {
580580/** maps elements to set of elements which can be it's parent, no other */
581581const onlyValidParents = {
582582 html : emptySet ,
583- body : new Set ( [ "html" ] ) ,
584- head : new Set ( [ "html" ] ) ,
585- td : new Set ( [ "tr" ] ) ,
586- colgroup : new Set ( [ "table" ] ) ,
587- caption : new Set ( [ "table" ] ) ,
588- tbody : new Set ( [ "table" ] ) ,
589- tfoot : new Set ( [ "table" ] ) ,
590- col : new Set ( [ "colgroup" ] ) ,
591- th : new Set ( [ "tr" ] ) ,
592- thead : new Set ( [ "table" ] ) ,
593- tr : new Set ( [
583+ body : /* @__PURE__ */ new Set ( [ "html" ] ) ,
584+ head : /* @__PURE__ */ new Set ( [ "html" ] ) ,
585+ td : /* @__PURE__ */ new Set ( [ "tr" ] ) ,
586+ colgroup : /* @__PURE__ */ new Set ( [ "table" ] ) ,
587+ caption : /* @__PURE__ */ new Set ( [ "table" ] ) ,
588+ tbody : /* @__PURE__ */ new Set ( [ "table" ] ) ,
589+ tfoot : /* @__PURE__ */ new Set ( [ "table" ] ) ,
590+ col : /* @__PURE__ */ new Set ( [ "colgroup" ] ) ,
591+ th : /* @__PURE__ */ new Set ( [ "tr" ] ) ,
592+ thead : /* @__PURE__ */ new Set ( [ "table" ] ) ,
593+ tr : /* @__PURE__ */ new Set ( [
594594 "tbody" ,
595595 "thead" ,
596596 "tfoot"
597597 ] ) ,
598- dd : new Set ( [ "dl" , "div" ] ) ,
599- dt : new Set ( [ "dl" , "div" ] ) ,
600- figcaption : new Set ( [ "figure" ] ) ,
601- summary : new Set ( [ "details" ] ) ,
602- area : new Set ( [ "map" ] )
598+ dd : /* @__PURE__ */ new Set ( [ "dl" , "div" ] ) ,
599+ dt : /* @__PURE__ */ new Set ( [ "dl" , "div" ] ) ,
600+ figcaption : /* @__PURE__ */ new Set ( [ "figure" ] ) ,
601+ summary : /* @__PURE__ */ new Set ( [ "details" ] ) ,
602+ area : /* @__PURE__ */ new Set ( [ "map" ] )
603603} ;
604604/** maps element to set of elements that can not be it's children, others can */
605605const knownInvalidChildren = {
606- p : new Set ( [
606+ p : /* @__PURE__ */ new Set ( [
607607 "address" ,
608608 "article" ,
609609 "aside" ,
@@ -638,7 +638,7 @@ const knownInvalidChildren = {
638638 "table" ,
639639 "ul"
640640 ] ) ,
641- svg : new Set ( [
641+ svg : /* @__PURE__ */ new Set ( [
642642 "b" ,
643643 "blockquote" ,
644644 "br" ,
@@ -679,12 +679,12 @@ const knownInvalidChildren = {
679679} ;
680680/** maps element to set of elements that can not be it's parent, others can */
681681const knownInvalidParents = {
682- a : new Set ( [ "a" ] ) ,
683- button : new Set ( [ "button" ] ) ,
684- dd : new Set ( [ "dd" , "dt" ] ) ,
685- dt : new Set ( [ "dd" , "dt" ] ) ,
686- form : new Set ( [ "form" ] ) ,
687- li : new Set ( [ "li" ] ) ,
682+ a : /* @__PURE__ */ new Set ( [ "a" ] ) ,
683+ button : /* @__PURE__ */ new Set ( [ "button" ] ) ,
684+ dd : /* @__PURE__ */ new Set ( [ "dd" , "dt" ] ) ,
685+ dt : /* @__PURE__ */ new Set ( [ "dd" , "dt" ] ) ,
686+ form : /* @__PURE__ */ new Set ( [ "form" ] ) ,
687+ li : /* @__PURE__ */ new Set ( [ "li" ] ) ,
688688 h1 : headings ,
689689 h2 : headings ,
690690 h3 : headings ,
0 commit comments