@@ -36,8 +36,8 @@ type SecondaryCalendarButtonTexts = {
36
36
} )
37
37
@event ( "next-press" )
38
38
@event ( "previous-press" )
39
- @event ( "show-month-press " )
40
- @event ( "show-year-press " )
39
+ @event ( "show-month-view " )
40
+ @event ( "show-year-view " )
41
41
class CalendarHeader extends UI5Element {
42
42
/**
43
43
* Defines component's timestamp.
@@ -144,7 +144,7 @@ class CalendarHeader extends UI5Element {
144
144
}
145
145
146
146
onMonthButtonClick ( e : MouseEvent ) {
147
- this . fireEvent ( "show-month-press " , e ) ;
147
+ this . fireEvent ( "show-month-view " , e ) ;
148
148
}
149
149
150
150
onMonthButtonKeyDown ( e : KeyboardEvent ) {
@@ -153,19 +153,19 @@ class CalendarHeader extends UI5Element {
153
153
}
154
154
155
155
if ( isEnter ( e ) ) {
156
- this . fireEvent ( "show-month-press " , e ) ;
156
+ this . fireEvent ( "show-month-view " , e ) ;
157
157
}
158
158
}
159
159
160
160
onMonthButtonKeyUp ( e : KeyboardEvent ) {
161
161
if ( isSpace ( e ) ) {
162
162
e . preventDefault ( ) ;
163
- this . fireEvent ( "show-month-press " , e ) ;
163
+ this . fireEvent ( "show-month-view " , e ) ;
164
164
}
165
165
}
166
166
167
167
onYearButtonClick ( e : MouseEvent ) {
168
- this . fireEvent ( "show-year-press " , e ) ;
168
+ this . fireEvent ( "show-year-view " , e ) ;
169
169
}
170
170
171
171
onYearButtonKeyDown ( e : KeyboardEvent ) {
@@ -174,14 +174,14 @@ class CalendarHeader extends UI5Element {
174
174
}
175
175
176
176
if ( isEnter ( e ) ) {
177
- this . fireEvent ( "show-year-press " , e ) ;
177
+ this . fireEvent ( "show-year-view " , e ) ;
178
178
}
179
179
}
180
180
181
181
onYearButtonKeyUp ( e : KeyboardEvent ) {
182
182
if ( isSpace ( e ) ) {
183
183
e . preventDefault ( ) ;
184
- this . fireEvent ( "show-year-press " , e ) ;
184
+ this . fireEvent ( "show-year-view " , e ) ;
185
185
}
186
186
}
187
187
0 commit comments