@@ -4,24 +4,24 @@ import Typed from 'typed.js';
44class default_1 extends Controller {
55 connect ( ) {
66 const options = {
7- strings : this . stringsValue || null ,
8- typeSpeed : this . typeSpeedValue || 30 ,
9- smartBackspace : this . smartBackspaceValue || true ,
10- startDelay : this . startDelayValue || 0 ,
11- backSpeed : this . backSpeedValue || 0 ,
12- shuffle : this . shuffleValue || false ,
13- backDelay : this . backDelayValue || 700 ,
14- fadeOut : this . fadeOutValue || false ,
15- fadeOutClass : this . fadeOutClassValue || 'typed-fade-out' ,
16- fadeOutDelay : this . fadeOutDelayValue || 500 ,
17- loop : this . loopValue || false ,
18- loopCount : this . loopCountValue || Infinity ,
19- showCursor : this . showCursorValue || true ,
20- cursorChar : this . cursorCharValue || '.' ,
21- autoInsertCss : this . autoInsertCssValue || true ,
22- attr : this . attrValue || null ,
23- bindInputFocusEvents : this . bindInputFocusEventsValue || false ,
24- contentType : this . contentTypeValue || 'html' ,
7+ strings : this . stringsValue ,
8+ typeSpeed : this . typeSpeedValue ,
9+ smartBackspace : this . smartBackspaceValue ,
10+ startDelay : this . startDelayValue ,
11+ backSpeed : this . backSpeedValue ,
12+ shuffle : this . shuffleValue ,
13+ backDelay : this . backDelayValue ,
14+ fadeOut : this . fadeOutValue ,
15+ fadeOutClass : this . fadeOutClassValue ,
16+ fadeOutDelay : this . fadeOutDelayValue ,
17+ loop : this . loopValue ,
18+ loopCount : this . loopCountValue ,
19+ showCursor : this . showCursorValue ,
20+ cursorChar : this . cursorCharValue ,
21+ autoInsertCss : this . autoInsertCssValue ,
22+ attr : this . attrValue ,
23+ bindInputFocusEvents : this . bindInputFocusEventsValue ,
24+ contentType : this . contentTypeValue ,
2525 } ;
2626 this . _dispatchEvent ( 'typed:pre-connect' , { options } ) ;
2727 const typed = new Typed ( this . element , options ) ;
@@ -33,23 +33,23 @@ class default_1 extends Controller {
3333}
3434default_1 . values = {
3535 strings : Array ,
36- typeSpeed : Number ,
37- smartBackspace : Boolean ,
36+ typeSpeed : { type : Number , default : 30 } ,
37+ smartBackspace : { type : Boolean , default : true } ,
3838 startDelay : Number ,
3939 backSpeed : Number ,
4040 shuffle : Boolean ,
41- backDelay : Number ,
41+ backDelay : { type : Number , default : 700 } ,
4242 fadeOut : Boolean ,
43- fadeOutClass : String ,
44- fadeOutDelay : Number ,
43+ fadeOutClass : { type : String , default : 'typed-fade-out' } ,
44+ fadeOutDelay : { type : Number , default : 500 } ,
4545 loop : Boolean ,
46- loopCount : Number ,
47- showCursor : Boolean ,
48- cursorChar : String ,
49- autoInsertCss : Boolean ,
46+ loopCount : { type : Number , default : Infinity } ,
47+ showCursor : { type : Boolean , default : true } ,
48+ cursorChar : { type : String , default : '.' } ,
49+ autoInsertCss : { type : Boolean , default : true } ,
5050 attr : String ,
5151 bindInputFocusEvents : Boolean ,
52- contentType : String ,
52+ contentType : { type : String , default : 'html' } ,
5353} ;
5454
5555export { default_1 as default } ;
0 commit comments