File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,12 +39,13 @@ import type Input from "@ui5/webcomponents/dist/Input.js";
3939import type { PopupBeforeCloseEventDetail } from "@ui5/webcomponents/dist/Popup.js" ;
4040import type Select from "@ui5/webcomponents/dist/Select.js" ;
4141import type { Slot , DefaultSlot } from "@ui5/webcomponents-base/dist/UI5Element.js" ;
42+ import type { ListItemBaseClickEventDetail } from "@ui5/webcomponents/dist/ListItemBase.js" ;
4243
4344interface ISearchSuggestionItem extends UI5Element {
4445 selected : boolean ;
4546 text : string ;
4647 items ?: ISearchSuggestionItem [ ] ;
47- eventDetails : { click ?: object } ;
48+ eventDetails : { click ?: ListItemBaseClickEventDetail } ;
4849}
4950
5051type SearchEventDetails = {
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ import { isInstanceOfComboBoxItemGroup } from "./ComboBoxItemGroup.js";
9090import type ComboBoxFilter from "./types/ComboBoxFilter.js" ;
9191import type Input from "./Input.js" ;
9292import type { InputEventDetail } from "./Input.js" ;
93+ import type { ListItemBaseClickEventDetail } from "./ListItemBase.js" ;
9394import type InputComposition from "./features/InputComposition.js" ;
9495
9596const SKIP_ITEMS_SIZE = 10 ;
@@ -108,8 +109,7 @@ interface IComboBoxItem extends UI5Element {
108109 additionalText ?: string ,
109110 _isVisible ?: boolean ,
110111 items ?: Array < IComboBoxItem > ,
111- eventDetails : { click ?: object } ,
112- }
112+ eventDetails : { click ?: ListItemBaseClickEventDetail } ,
113113
114114type ValueStateAnnouncement = Record < Exclude < ValueState , ValueState . None > , string > ;
115115type ValueStateTypeAnnouncement = Record < Exclude < ValueState , ValueState . None > , string > ;
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ import ResponsivePopoverCommonCss from "./generated/themes/ResponsivePopoverComm
9797import ValueStateMessageCss from "./generated/themes/ValueStateMessage.css.js" ;
9898import SuggestionsCss from "./generated/themes/Suggestions.css.js" ;
9999import type { ListItemClickEventDetail , ListSelectionChangeEventDetail } from "./List.js" ;
100+ import type { ListItemBaseClickEventDetail } from "./ListItemBase.js" ;
100101import type ResponsivePopover from "./ResponsivePopover.js" ;
101102import type InputKeyHint from "./types/InputKeyHint.js" ;
102103import type InputComposition from "./features/InputComposition.js" ;
@@ -110,8 +111,7 @@ interface IInputSuggestionItem extends UI5Element {
110111 focused : boolean ;
111112 additionalText ?: string ;
112113 items ?: IInputSuggestionItem [ ] ;
113- eventDetails : { click ?: object } ;
114- }
114+ eventDetails : { click ?: ListItemBaseClickEventDetail } ;
115115
116116interface IInputSuggestionItemSelectable extends IInputSuggestionItem {
117117 text ?: string ;
Original file line number Diff line number Diff line change 11import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js" ;
22import type { DefaultSlot } from "@ui5/webcomponents-base/dist/UI5Element.js" ;
3+ import type { ListItemBaseClickEventDetail } from "./ListItemBase.js" ;
34import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js" ;
45import property from "@ui5/webcomponents-base/dist/decorators/property.js" ;
56import slot from "@ui5/webcomponents-base/dist/decorators/slot-strict.js" ;
@@ -60,10 +61,7 @@ interface IMenuItem extends UI5Element {
6061 isMenuItem ?: boolean ;
6162 isSeparator ?: boolean ;
6263 isGroup ?: boolean ;
63- eventDetails : { click ?: object } ;
64- }
65-
66- type MenuItemClickEventDetail = {
64+ eventDetails : { click ?: ListItemBaseClickEventDetail } ;
6765 item : MenuItem ,
6866 text : string ,
6967}
Original file line number Diff line number Diff line change @@ -128,8 +128,7 @@ interface IMultiComboBoxItem extends UI5Element {
128128 isGroupItem ?: boolean ,
129129 _isVisible ?: boolean ,
130130 items ?: Array < IMultiComboBoxItem > ,
131- eventDetails : { click ?: object } ,
132- }
131+ eventDetails : { click ?: ListItemBaseClickEventDetail } ,
133132
134133type ValueStateAnnouncement = Record < Exclude < ValueState , ValueState . None > , string > ;
135134type ValueStateTypeAnnouncement = Record < Exclude < ValueState , ValueState . None > , string > ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ import type Button from "./Button.js";
4747import type List from "./List.js" ;
4848import type DropIndicator from "./DropIndicator.js" ;
4949import type Tab from "./Tab.js" ;
50- import type { TabInStrip , TabInOverflow } from "./Tab.js" ;
50+ import type { TabInStrip , TabInOverflow , TabClickEventDetail } from "./Tab.js" ;
5151import type { TabSeparatorInStrip } from "./TabSeparator.js" ;
5252import type { ListItemClickEventDetail , ListMoveEventDetail } from "./List.js" ;
5353import type ResponsivePopover from "./ResponsivePopover.js" ;
@@ -111,7 +111,7 @@ interface ITab extends UI5Element {
111111 receiveOverflowInfo : ( arg0 : TabContainerOverflowInfo ) => void ;
112112 getDomRefInStrip : ( ) => HTMLElement | undefined ;
113113 items ?: Array < ITab > ;
114- eventDetails : { click ?: object } ;
114+ eventDetails : { click ?: TabClickEventDetail } ;
115115}
116116
117117/**
You can’t perform that action at this time.
0 commit comments