3
3
Object . defineProperty ( exports , "__esModule" , {
4
4
value : true
5
5
} ) ;
6
- exports . default = void 0 ;
6
+ exports [ " default" ] = void 0 ;
7
7
8
8
var _react = _interopRequireDefault ( require ( "react" ) ) ;
9
9
10
10
var _propTypes = _interopRequireDefault ( require ( "prop-types" ) ) ;
11
11
12
12
var _ReactFC = _interopRequireDefault ( require ( "../lib/ReactFC" ) ) ;
13
13
14
- function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
14
+ function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { " default" : obj } ; }
15
15
16
16
function _extends ( ) { _extends = Object . assign || function ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] ; for ( var key in source ) { if ( Object . prototype . hasOwnProperty . call ( source , key ) ) { target [ key ] = source [ key ] ; } } } return target ; } ; return _extends . apply ( this , arguments ) ; }
17
17
@@ -33,6 +33,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
33
33
34
34
function _getPrototypeOf ( o ) { _getPrototypeOf = Object . setPrototypeOf ? Object . getPrototypeOf : function _getPrototypeOf ( o ) { return o . __proto__ || Object . getPrototypeOf ( o ) ; } ; return _getPrototypeOf ( o ) ; }
35
35
36
+ function _assertThisInitialized ( self ) { if ( self === void 0 ) { throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ; } return self ; }
37
+
36
38
function _defineProperties ( target , props ) { for ( var i = 0 ; i < props . length ; i ++ ) { var descriptor = props [ i ] ; descriptor . enumerable = descriptor . enumerable || false ; descriptor . configurable = true ; if ( "value" in descriptor ) descriptor . writable = true ; Object . defineProperty ( target , descriptor . key , descriptor ) ; } }
37
39
38
40
function _createClass ( Constructor , protoProps , staticProps ) { if ( protoProps ) _defineProperties ( Constructor . prototype , protoProps ) ; if ( staticProps ) _defineProperties ( Constructor , staticProps ) ; return Constructor ; }
@@ -41,8 +43,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
41
43
42
44
function _setPrototypeOf ( o , p ) { _setPrototypeOf = Object . setPrototypeOf || function _setPrototypeOf ( o , p ) { o . __proto__ = p ; return o ; } ; return _setPrototypeOf ( o , p ) ; }
43
45
44
- function _assertThisInitialized ( self ) { if ( self === void 0 ) { throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ; } return self ; }
45
-
46
46
var DrillDown =
47
47
/*#__PURE__*/
48
48
function ( _React$Component ) {
@@ -56,7 +56,7 @@ function (_React$Component) {
56
56
modules [ _key - 1 ] = arguments [ _key ] ;
57
57
}
58
58
59
- _ReactFC . default . fcRoot . apply ( _ReactFC . default , [ core ] . concat ( modules ) ) ;
59
+ _ReactFC [ " default" ] . fcRoot . apply ( _ReactFC [ " default" ] , [ core ] . concat ( modules ) ) ;
60
60
}
61
61
} ] ) ;
62
62
@@ -85,10 +85,10 @@ function (_React$Component) {
85
85
} ;
86
86
/* Function Bindings */
87
87
88
- _this . plotClicked = _this . plotClicked . bind ( _assertThisInitialized ( _assertThisInitialized ( _this ) ) ) ;
89
- _this . onChildRendered = _this . onChildRendered . bind ( _assertThisInitialized ( _assertThisInitialized ( _this ) ) ) ;
90
- _this . toggleParentBtnVisibility = _this . toggleParentBtnVisibility . bind ( _assertThisInitialized ( _assertThisInitialized ( _this ) ) ) ;
91
- _this . onBtnClick = _this . onBtnClick . bind ( _assertThisInitialized ( _assertThisInitialized ( _this ) ) ) ;
88
+ _this . plotClicked = _this . plotClicked . bind ( _assertThisInitialized ( _this ) ) ;
89
+ _this . onChildRendered = _this . onChildRendered . bind ( _assertThisInitialized ( _this ) ) ;
90
+ _this . toggleParentBtnVisibility = _this . toggleParentBtnVisibility . bind ( _assertThisInitialized ( _this ) ) ;
91
+ _this . onBtnClick = _this . onBtnClick . bind ( _assertThisInitialized ( _this ) ) ;
92
92
/* Default styles */
93
93
94
94
_this . wrapperStyle = {
@@ -174,7 +174,7 @@ function (_React$Component) {
174
174
} , {
175
175
key : "cloneReactFCChild" ,
176
176
value : function cloneReactFCChild ( reactFCElem , customProps ) {
177
- return _react . default . cloneElement ( reactFCElem , customProps ) ;
177
+ return _react [ " default" ] . cloneElement ( reactFCElem , customProps ) ;
178
178
}
179
179
} , {
180
180
key : "onChildRendered" ,
@@ -220,14 +220,14 @@ function (_React$Component) {
220
220
} ;
221
221
222
222
if ( ! this . state . isDrilledDown ) {
223
- component = _react . default . createElement ( _ReactFC . default , _extends ( { } , this . props , {
223
+ component = _react [ " default" ] . createElement ( _ReactFC [ " default" ] , _extends ( { } , this . props , {
224
224
"fcEvent-dataplotClick" : this . plotClicked
225
225
} ) ) ;
226
226
} else {
227
227
var propChildren = Array . isArray ( children ) ? children : [ children ] ;
228
- component = _react . default . createElement ( "div" , {
228
+ component = _react [ " default" ] . createElement ( "div" , {
229
229
style : this . wrapperStyle
230
- } , this . cloneReactFCChild ( propChildren [ selectedChild ] , clonedElemConfig ) , isBtnVisible ? _react . default . createElement ( "button" , {
230
+ } , this . cloneReactFCChild ( propChildren [ selectedChild ] , clonedElemConfig ) , isBtnVisible ? _react [ " default" ] . createElement ( "button" , {
231
231
style : this . finBtnStyle ,
232
232
onClick : this . onBtnClick
233
233
} , this . finalBtnConfig . text ) : null ) ;
@@ -238,7 +238,7 @@ function (_React$Component) {
238
238
} ] ) ;
239
239
240
240
return DrillDown ;
241
- } ( _react . default . Component ) ;
241
+ } ( _react [ " default" ] . Component ) ;
242
242
243
243
DrillDown . defaultProps = {
244
244
plotChildMap : [ ] ,
@@ -262,28 +262,28 @@ DrillDown.defaultProps = {
262
262
width : ''
263
263
} ;
264
264
DrillDown . propTypes = {
265
- plotChildMap : _propTypes . default . oneOfType ( [ _propTypes . default . arrayOf ( _propTypes . default . shape ( {
266
- plotPosition : _propTypes . default . number ,
267
- childPosition : _propTypes . default . number
268
- } ) ) , _propTypes . default . arrayOf ( _propTypes . default . number ) ] ) ,
269
- btnConfig : _propTypes . default . shape ( {
270
- text : _propTypes . default . string ,
271
- color : _propTypes . default . string ,
272
- backgroundColor : _propTypes . default . string ,
273
- borderColor : _propTypes . default . string ,
274
- fontSize : _propTypes . default . string ,
275
- fontWeight : _propTypes . default . string ,
276
- padding : _propTypes . default . string ,
277
- fontFamily : _propTypes . default . string ,
278
- placement : _propTypes . default . oneOf ( [ 'top-left' , 'top-right' , 'bottom-left' , 'bottom-right' ] ) ,
279
- margin : _propTypes . default . string
265
+ plotChildMap : _propTypes [ " default" ] . oneOfType ( [ _propTypes [ " default" ] . arrayOf ( _propTypes [ " default" ] . shape ( {
266
+ plotPosition : _propTypes [ " default" ] . number ,
267
+ childPosition : _propTypes [ " default" ] . number
268
+ } ) ) , _propTypes [ " default" ] . arrayOf ( _propTypes [ " default" ] . number ) ] ) ,
269
+ btnConfig : _propTypes [ " default" ] . shape ( {
270
+ text : _propTypes [ " default" ] . string ,
271
+ color : _propTypes [ " default" ] . string ,
272
+ backgroundColor : _propTypes [ " default" ] . string ,
273
+ borderColor : _propTypes [ " default" ] . string ,
274
+ fontSize : _propTypes [ " default" ] . string ,
275
+ fontWeight : _propTypes [ " default" ] . string ,
276
+ padding : _propTypes [ " default" ] . string ,
277
+ fontFamily : _propTypes [ " default" ] . string ,
278
+ placement : _propTypes [ " default" ] . oneOf ( [ 'top-left' , 'top-right' , 'bottom-left' , 'bottom-right' ] ) ,
279
+ margin : _propTypes [ " default" ] . string
280
280
} ) ,
281
- btnStyle : _propTypes . default . object ,
282
- dataSource : _propTypes . default . object ,
283
- dataFormat : _propTypes . default . string ,
284
- type : _propTypes . default . string ,
285
- height : _propTypes . default . string ,
286
- width : _propTypes . default . string
281
+ btnStyle : _propTypes [ " default" ] . object ,
282
+ dataSource : _propTypes [ " default" ] . object ,
283
+ dataFormat : _propTypes [ " default" ] . string ,
284
+ type : _propTypes [ " default" ] . string ,
285
+ height : _propTypes [ " default" ] . string ,
286
+ width : _propTypes [ " default" ] . string
287
287
} ;
288
288
var _default = DrillDown ;
289
- exports . default = _default ;
289
+ exports [ " default" ] = _default ;
0 commit comments