@@ -239,11 +239,11 @@ const metadata = {
239
239
* Fired, when the notification icon is activated.
240
240
*
241
241
*
242
- * @event
242
+ * @event sap.ui.webcomponents.fiori.ShellBar#notifications-click
243
243
* @param {HTMLElement } targetRef dom ref of the activated element
244
244
* @public
245
245
*/
246
- notificationsClick : {
246
+ "notifications-click" : {
247
247
detail : {
248
248
targetRef : { type : HTMLElement } ,
249
249
} ,
@@ -252,11 +252,11 @@ const metadata = {
252
252
/**
253
253
* Fired, when the profile slot is present.
254
254
*
255
- * @event
255
+ * @event sap.ui.webcomponents.fiori.ShellBar#profile-click
256
256
* @param {HTMLElement } targetRef dom ref of the activated element
257
257
* @public
258
258
*/
259
- profileClick : {
259
+ "profile-click" : {
260
260
detail : {
261
261
targetRef : { type : HTMLElement } ,
262
262
} ,
@@ -266,11 +266,11 @@ const metadata = {
266
266
* Fired, when the product switch icon is activated.
267
267
* <b>Note:</b> You can prevent closing of oveflow popover by calling <code>event.preventDefault()</code>.
268
268
*
269
- * @event
269
+ * @event sap.ui.webcomponents.fiori.ShellBar#product-switch-click
270
270
* @param {HTMLElement } targetRef dom ref of the activated element
271
271
* @public
272
272
*/
273
- productSwitchClick : {
273
+ "product-switch-click" : {
274
274
detail : {
275
275
targetRef : { type : HTMLElement } ,
276
276
} ,
@@ -279,12 +279,12 @@ const metadata = {
279
279
/**
280
280
* Fired, when the logo is activated.
281
281
*
282
- * @event
282
+ * @event sap.ui.webcomponents.fiori.ShellBar#logo-click
283
283
* @param {HTMLElement } targetRef dom ref of the activated element
284
284
* @since 0.10
285
285
* @public
286
286
*/
287
- logoClick : {
287
+ "logo-click" : {
288
288
detail : {
289
289
targetRef : { type : HTMLElement } ,
290
290
} ,
@@ -293,12 +293,12 @@ const metadata = {
293
293
/**
294
294
* Fired, when the co pilot is activated.
295
295
*
296
- * @event
296
+ * @event sap.ui.webcomponents.fiori.ShellBar#co-pilot-click
297
297
* @param {HTMLElement } targetRef dom ref of the activated element
298
298
* @since 0.10
299
299
* @public
300
300
*/
301
- coPilotClick : {
301
+ "co-pilot-click" : {
302
302
detail : {
303
303
targetRef : { type : HTMLElement } ,
304
304
} ,
@@ -308,12 +308,12 @@ const metadata = {
308
308
* Fired, when a menu item is activated
309
309
* <b>Note:</b> You can prevent closing of oveflow popover by calling <code>event.preventDefault()</code>.
310
310
*
311
- * @event
311
+ * @event sap.ui.webcomponents.fiori.ShellBar#menu-item-click
312
312
* @param {HTMLElement } item dom ref of the activated list item
313
313
* @since 0.10
314
314
* @public
315
315
*/
316
- menuItemClick : {
316
+ "menu-item-click" : {
317
317
detail : {
318
318
item : { type : HTMLElement } ,
319
319
} ,
@@ -431,13 +431,13 @@ class ShellBar extends UI5Element {
431
431
}
432
432
433
433
_menuItemPress ( event ) {
434
- this . fireEvent ( "menuItemClick " , {
434
+ this . fireEvent ( "menu-item-click " , {
435
435
item : event . detail . item ,
436
436
} , true ) ;
437
437
}
438
438
439
439
_logoPress ( ) {
440
- this . fireEvent ( "logoClick " , {
440
+ this . fireEvent ( "logo-click " , {
441
441
targetRef : this . shadowRoot . querySelector ( ".ui5-shellbar-logo" ) ,
442
442
} ) ;
443
443
}
@@ -476,7 +476,7 @@ class ShellBar extends UI5Element {
476
476
}
477
477
478
478
_fireCoPilotClick ( ) {
479
- this . fireEvent ( "coPilotClick " , {
479
+ this . fireEvent ( "co-pilot-click " , {
480
480
targetRef : this . shadowRoot . querySelector ( ".ui5-shellbar-coPilot" ) ,
481
481
} ) ;
482
482
}
@@ -683,7 +683,7 @@ class ShellBar extends UI5Element {
683
683
return item . shadowRoot . querySelector ( `#${ refItemId } ` ) ;
684
684
} ) ;
685
685
686
- const prevented = ! shellbarItem . fireEvent ( "itemClick " , { targetRef : event . target } , true ) ;
686
+ const prevented = ! shellbarItem . fireEvent ( "item-click " , { targetRef : event . target } , true ) ;
687
687
688
688
this . _defaultItemPressPrevented = prevented ;
689
689
}
@@ -696,21 +696,21 @@ class ShellBar extends UI5Element {
696
696
_handleNotificationsPress ( event ) {
697
697
const notificationIconRef = this . shadowRoot . querySelector ( ".ui5-shellbar-bell-button" ) ;
698
698
699
- this . _defaultItemPressPrevented = ! this . fireEvent ( "notificationsClick " , {
699
+ this . _defaultItemPressPrevented = ! this . fireEvent ( "notifications-click " , {
700
700
targetRef : notificationIconRef . classList . contains ( "ui5-shellbar-hidden-button" ) ? event . target : notificationIconRef ,
701
701
} , true ) ;
702
702
}
703
703
704
704
_handleProfilePress ( event ) {
705
- this . fireEvent ( "profileClick " , {
705
+ this . fireEvent ( "profile-click " , {
706
706
targetRef : this . shadowRoot . querySelector ( ".ui5-shellbar-image-button" ) ,
707
707
} ) ;
708
708
}
709
709
710
710
_handleProductSwitchPress ( event ) {
711
711
const buttonRef = this . shadowRoot . querySelector ( ".ui5-shellbar-button-product-switch" ) ;
712
712
713
- this . _defaultItemPressPrevented = ! this . fireEvent ( "productSwitchClick " , {
713
+ this . _defaultItemPressPrevented = ! this . fireEvent ( "product-switch-click " , {
714
714
targetRef : buttonRef . classList . contains ( "ui5-shellbar-hidden-button" ) ? event . target : buttonRef ,
715
715
} , true ) ;
716
716
}
0 commit comments