@@ -40,7 +40,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
4040 function verb ( n ) { return function ( v ) { return step ( [ n , v ] ) ; } ; }
4141 function step ( op ) {
4242 if ( f ) throw new TypeError ( "Generator is already executing." ) ;
43- while ( _ ) try {
43+ while ( g && ( g = 0 , op [ 0 ] && ( _ = 0 ) ) , _ ) try {
4444 if ( f = 1 , y && ( t = op [ 0 ] & 2 ? y [ "return" ] : op [ 0 ] ? y [ "throw" ] || ( ( t = y [ "return" ] ) && t . call ( y ) , 0 ) : y . next ) && ! ( t = t . call ( y , op [ 1 ] ) ) . done ) return t ;
4545 if ( y = 0 , t ) op = [ op [ 0 ] & 2 , t . value ] ;
4646 switch ( op [ 0 ] ) {
@@ -79,12 +79,12 @@ var default_1 = /** @class */ (function (_super) {
7979 } ;
8080 _this . ref = null ;
8181 _this . htmlProps = null ;
82- _this . mainId = "tabulator-" + + new Date ( ) + "-" + Math . floor ( Math . random ( ) * 9999999 ) ; // random id
82+ _this . mainId = "tabulator-" . concat ( + new Date ( ) , "-" ) . concat ( Math . floor ( Math . random ( ) * 9999999 ) ) ; // random id
8383 _this . table = null ; // will be set once Tabulator instantiated
8484 _this . pickValidHTMLProps = function ( ) {
8585 // run once
8686 if ( ! _this . htmlProps ) {
87- _this . htmlProps = pick_react_known_prop_1 . pickHTMLProps ( _this . props ) ; // pick valid html props
87+ _this . htmlProps = ( 0 , pick_react_known_prop_1 . pickHTMLProps ) ( _this . props ) ; // pick valid html props
8888 delete _this . htmlProps [ 'data' ] ; // don't render data & columns as attributes
8989 delete _this . htmlProps [ 'columns' ] ;
9090 }
@@ -100,15 +100,14 @@ var default_1 = /** @class */ (function (_super) {
100100 domEle = ReactDOM . findDOMNode ( this . ref ) ;
101101 that = this ;
102102 _a = this . props , columns = _a . columns , data = _a . data , options = _a . options ;
103- return [ 4 /*yield*/ , ConfigUtils_1 . propsToOptions ( this . props ) ] ;
103+ return [ 4 /*yield*/ , ( 0 , ConfigUtils_1 . propsToOptions ) ( this . props ) ] ;
104104 case 1 :
105105 propOptions = _b . sent ( ) ;
106106 new tabulator_tables_1 . Tabulator ( domEle , __assign ( __assign ( __assign ( __assign ( { columns : columns } , propOptions ) , { layout : 'fitColumns' , // fit columns to width of table (optional)
107107 tableBuilding : function ( ) {
108108 that . table = this ; // keep table instance
109109 that . props . tableBuilding ? that . props . tableBuilding ( ) : '' ;
110- } ,
111- dataLoaded : function ( ) {
110+ } , dataLoaded : function ( ) {
112111 that . props . dataLoaded ? that . props . dataLoaded ( ) : '' ;
113112 } , invalidOptionWarnings : false } ) , options ) , { data : data } ) ) ;
114113 // await table.setData(data);
@@ -127,13 +126,13 @@ var default_1 = /** @class */ (function (_super) {
127126 // this is for React 15.x only
128127 default_1 . prototype . componentWillReceiveProps = function ( props ) {
129128 var _this = this ;
130- if ( ! Utils_1 . isSameArray ( this . state . data , props . data ) ) {
129+ if ( ! ( 0 , Utils_1 . isSameArray ) ( this . state . data , props . data ) ) {
131130 // console.log('- data changed');
132131 this . setState ( { data : props . data } , function ( ) {
133132 _this . table && _this . table . setData ( _this . state . data ) ;
134133 } ) ;
135134 }
136- if ( ! Utils_1 . isSameArray ( this . state . columns , props . columns ) ) {
135+ if ( ! ( 0 , Utils_1 . isSameArray ) ( this . state . columns , props . columns ) ) {
137136 // console.log('- columns changed');
138137 this . setState ( { columns : props . columns } , function ( ) {
139138 _this . table && _this . table . setColumns ( _this . state . columns ) ;
0 commit comments