@@ -29,7 +29,7 @@ const prettierConfig = {
2929const WEB_COMPONENTS_ROOT_DIR = path . join ( PATHS . packages , 'main' , 'src' , 'webComponents' ) ;
3030const LIB_DIR = path . join ( PATHS . packages , 'main' , 'src' , 'lib' ) ;
3131
32- const KNOWN_EVENTS = new Set ( [ 'click' , 'input' , 'submit' , 'change' , 'select' ] ) ;
32+ const KNOWN_EVENTS = new Set ( [ 'click' , 'input' , 'submit' , 'change' , 'select' , 'drop' ] ) ;
3333
3434const PRIVATE_COMPONENTS = new Set ( [
3535 'CalendarHeader' ,
@@ -41,6 +41,8 @@ const PRIVATE_COMPONENTS = new Set([
4141 'MonthPicker' ,
4242 'NotificationListItemBase' ,
4343 'Popup' ,
44+ 'PickerBase' ,
45+ 'SliderBase' ,
4446 'TabBase' ,
4547 'ThemePropertiesProvider' ,
4648 'TreeListItem' ,
@@ -206,7 +208,7 @@ COMPONENTS_WITHOUT_DEMOS.add('SideNavigationItem');
206208COMPONENTS_WITHOUT_DEMOS . add ( 'SideNavigationSubItem' ) ;
207209COMPONENTS_WITHOUT_DEMOS . add ( 'SuggestionItem' ) ;
208210COMPONENTS_WITHOUT_DEMOS . add ( 'UploadCollectionItem' ) ;
209- COMPONENTS_WITHOUT_DEMOS . add ( 'NotificationOverflowAction ' ) ;
211+ COMPONENTS_WITHOUT_DEMOS . add ( 'NotificationAction ' ) ;
210212COMPONENTS_WITHOUT_DEMOS . add ( 'WizardStep' ) ;
211213
212214const componentsFromFioriPackage = new Set ( fioriWebComponentsSpec . symbols . map ( ( componentSpec ) => componentSpec . module ) ) ;
@@ -292,6 +294,19 @@ const getTypeScriptTypeForProperty = (property) => {
292294 tsType : 'FileList'
293295 } ;
294296 }
297+ case 'DataTransfer' : {
298+ return {
299+ importStatement : null ,
300+ tsType : 'DataTransfer'
301+ } ;
302+ }
303+ case 'object' :
304+ case 'Object' : {
305+ return {
306+ importStatement : null ,
307+ tsType : 'Record<string, unknown>'
308+ } ;
309+ }
295310
296311 // react ts types
297312 case 'Node[]' :
@@ -318,6 +333,12 @@ const getTypeScriptTypeForProperty = (property) => {
318333 tsType : 'AvatarFitType' ,
319334 isEnum : true
320335 } ;
336+ case 'AvatarGroupType' :
337+ return {
338+ importStatement : "import { AvatarGroupType } from '@ui5/webcomponents-react/lib/AvatarGroupType';" ,
339+ tsType : 'AvatarGroupType' ,
340+ isEnum : true
341+ } ;
321342 case 'AvatarShape' :
322343 return {
323344 importStatement : "import { AvatarShape } from '@ui5/webcomponents-react/lib/AvatarShape';" ,
@@ -330,6 +351,12 @@ const getTypeScriptTypeForProperty = (property) => {
330351 tsType : 'AvatarSize' ,
331352 isEnum : true
332353 } ;
354+ case 'BarDesign' :
355+ return {
356+ importStatement : "import { BarDesign } from '@ui5/webcomponents-react/lib/BarDesign';" ,
357+ tsType : 'BarDesign' ,
358+ isEnum : true
359+ } ;
333360 case 'BusyIndicatorSize' :
334361 return {
335362 importStatement : "import { BusyIndicatorSize } from '@ui5/webcomponents-react/lib/BusyIndicatorSize';" ,
@@ -348,6 +375,12 @@ const getTypeScriptTypeForProperty = (property) => {
348375 tsType : 'CalendarType' ,
349376 isEnum : true
350377 } ;
378+ case 'CalendarSelection' :
379+ return {
380+ importStatement : "import { CalendarSelection } from '@ui5/webcomponents-react/lib/CalendarSelection';" ,
381+ tsType : 'CalendarSelection' ,
382+ isEnum : true
383+ } ;
351384 case 'CarouselArrowsPlacement' :
352385 return {
353386 importStatement :
@@ -774,7 +807,13 @@ const recursivePropertyResolver = (componentSpec, { properties, slots, events })
774807 return { properties, slots, events } ;
775808 }
776809
777- const parentComponent = allWebComponents . find ( ( c ) => c . module === componentSpec . extends ) ;
810+ console . log ( componentSpec . extends ) ;
811+ const parentComponent = allWebComponents . find ( ( c ) => {
812+ if ( componentSpec . extends . includes ( '.' ) ) {
813+ return c . name === componentSpec . extends ;
814+ }
815+ return c . module === componentSpec . extends ;
816+ } ) ;
778817 if ( parentComponent ) {
779818 return recursivePropertyResolver ( parentComponent , {
780819 properties,
0 commit comments