@@ -73,9 +73,9 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../com
73
73
throw new Error ( 'Decorating class property failed. Please ensure that transform-class-properties is enabled.' ) ;
74
74
}
75
75
76
- var _dec , _dec2 , _dec3 , _dec4 , _dec5 , _dec6 , _dec7 , _dec8 , _dec9 , _dec10 , _dec11 , _dec12 , _dec13 , _dec14 , _dec15 , _dec16 , _dec17 , _dec18 , _dec19 , _class , _desc , _value , _class2 , _descriptor , _descriptor2 , _descriptor3 , _descriptor4 , _descriptor5 , _descriptor6 , _descriptor7 , _descriptor8 , _descriptor9 , _descriptor10 , _descriptor11 , _descriptor12 , _descriptor13 , _descriptor14 , _descriptor15 , _descriptor16 ;
76
+ var _dec , _dec2 , _dec3 , _dec4 , _dec5 , _dec6 , _dec7 , _dec8 , _dec9 , _dec10 , _dec11 , _dec12 , _dec13 , _dec14 , _dec15 , _dec16 , _dec17 , _dec18 , _dec19 , _dec20 , _class , _desc , _value , _class2 , _descriptor , _descriptor2 , _descriptor3 , _descriptor4 , _descriptor5 , _descriptor6 , _descriptor7 , _descriptor8 , _descriptor9 , _descriptor10 , _descriptor11 , _descriptor12 , _descriptor13 , _descriptor14 , _descriptor15 , _descriptor16 , _descriptor17 ;
77
77
78
- var Ui5Icon = exports . Ui5Icon = ( _dec = ( 0 , _aureliaTemplating . customElement ) ( 'ui5-icon' ) , _dec2 = ( 0 , _aureliaDependencyInjection . inject ) ( Element ) , _dec3 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec4 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec5 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec6 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec7 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec8 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec9 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec10 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec11 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec12 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec13 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec14 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec15 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec16 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec17 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec18 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec19 = ( 0 , _aureliaFramework . computedFrom ) ( '_icon' ) , _dec ( _class = _dec2 ( _class = ( _class2 = function ( ) {
78
+ var Ui5Icon = exports . Ui5Icon = ( _dec = ( 0 , _aureliaTemplating . customElement ) ( 'ui5-icon' ) , _dec2 = ( 0 , _aureliaDependencyInjection . inject ) ( Element ) , _dec3 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec4 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec5 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec6 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec7 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec8 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec9 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec10 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec11 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec12 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec13 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec14 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec15 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec16 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec17 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec18 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec19 = ( 0 , _aureliaTemplating . bindable ) ( ) , _dec20 = ( 0 , _aureliaFramework . computedFrom ) ( '_icon' ) , _dec ( _class = _dec2 ( _class = ( _class2 = function ( ) {
79
79
Ui5Icon . prototype . defaultFunc = function defaultFunc ( ) { } ;
80
80
81
81
function Ui5Icon ( element ) {
@@ -115,6 +115,8 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../com
115
115
116
116
_initDefineProp ( this , 'press' , _descriptor16 , this ) ;
117
117
118
+ _initDefineProp ( this , 'tooltip' , _descriptor17 , this ) ;
119
+
118
120
this . element = element ;
119
121
}
120
122
@@ -133,7 +135,8 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../com
133
135
useIconTooltip : ( 0 , _attributes . getBooleanFromAttributeValue ) ( this . useIconTooltip ) ,
134
136
alt : this . alt ,
135
137
noTabStop : ( 0 , _attributes . getBooleanFromAttributeValue ) ( this . noTabStop ) ,
136
- press : this . press
138
+ press : this . press ,
139
+ tooltip : this . tooltip
137
140
} ;
138
141
if ( this . ui5Id ) this . _icon = new sap . ui . core . Icon ( this . ui5Id , props ) ; else this . _icon = new sap . ui . core . Icon ( props ) ;
139
142
$ ( this . element ) . closest ( "[ui5-container]" ) [ 0 ] . au . controller . viewModel . addChild ( this . _icon , this . element ) ;
@@ -223,6 +226,12 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../com
223
226
}
224
227
} ;
225
228
229
+ Ui5Icon . prototype . tooltipChanged = function tooltipChanged ( newValue ) {
230
+ if ( this . _icon !== null ) {
231
+ this . _icon . setTooltip ( newValue ) ;
232
+ }
233
+ } ;
234
+
226
235
_createClass ( Ui5Icon , [ {
227
236
key : 'UIElement' ,
228
237
get : function get ( ) {
@@ -311,5 +320,10 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', '../com
311
320
initializer : function initializer ( ) {
312
321
return this . defaultFunc ;
313
322
}
314
- } ) , _applyDecoratedDescriptor ( _class2 . prototype , 'UIElement' , [ _dec19 ] , Object . getOwnPropertyDescriptor ( _class2 . prototype , 'UIElement' ) , _class2 . prototype ) ) , _class2 ) ) || _class ) || _class ) ;
323
+ } ) , _descriptor17 = _applyDecoratedDescriptor ( _class2 . prototype , 'tooltip' , [ _dec19 ] , {
324
+ enumerable : true ,
325
+ initializer : function initializer ( ) {
326
+ return null ;
327
+ }
328
+ } ) , _applyDecoratedDescriptor ( _class2 . prototype , 'UIElement' , [ _dec20 ] , Object . getOwnPropertyDescriptor ( _class2 . prototype , 'UIElement' ) , _class2 . prototype ) ) , _class2 ) ) || _class ) || _class ) ;
315
329
} ) ;
0 commit comments