@sapudex/web-components 2.12.1 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/cypress/specs/EventRibbon.cy.tsx +10 -2
  2. package/cypress/specs/FilterMenu.cy.tsx +17 -1
  3. package/cypress/specs/HeroBanner.cy.tsx +174 -0
  4. package/cypress/specs/SelectBox.cy.tsx +17 -0
  5. package/cypress/specs/SocialMediaButton.cy.tsx +6 -0
  6. package/cypress/support/component-imports.instrumented.ts +2 -0
  7. package/cypress/support/component-imports.src.ts +2 -0
  8. package/dist/Accordion.d.ts +4 -3
  9. package/dist/Accordion.js.map +1 -1
  10. package/dist/AccordionItem.js.map +1 -1
  11. package/dist/Breadcrumbs.d.ts +2 -1
  12. package/dist/Breadcrumbs.js +2 -2
  13. package/dist/Breadcrumbs.js.map +1 -1
  14. package/dist/Checkbox.js +1 -1
  15. package/dist/Checkbox.js.map +1 -1
  16. package/dist/ContactItem.d.ts +1 -0
  17. package/dist/ContactItem.js.map +1 -1
  18. package/dist/ControlButton.js +3 -3
  19. package/dist/ControlButton.js.map +1 -1
  20. package/dist/CountrySelector.d.ts +1 -0
  21. package/dist/CountrySelector.js +1 -1
  22. package/dist/CountrySelector.js.map +1 -1
  23. package/dist/DatePicker.d.ts +3 -2
  24. package/dist/DatePicker.js.map +1 -1
  25. package/dist/Dropdown.js.map +1 -1
  26. package/dist/EventRibbon.js +1 -1
  27. package/dist/EventRibbon.js.map +1 -1
  28. package/dist/EventRibbonTemplate.js +3 -2
  29. package/dist/EventRibbonTemplate.js.map +1 -1
  30. package/dist/FilterMenu.d.ts +11 -5
  31. package/dist/FilterMenu.js +7 -0
  32. package/dist/FilterMenu.js.map +1 -1
  33. package/dist/FilterMenuGroupHeader.js.map +1 -1
  34. package/dist/FilterMenuItem.js.map +1 -1
  35. package/dist/Footer.d.ts +1 -0
  36. package/dist/Footer.js.map +1 -1
  37. package/dist/HeroBanner.d.ts +8 -0
  38. package/dist/HeroBanner.js +6 -0
  39. package/dist/HeroBanner.js.map +1 -1
  40. package/dist/InputGroup.js.map +1 -1
  41. package/dist/LinkList.js.map +1 -1
  42. package/dist/LinkListItem.d.ts +1 -0
  43. package/dist/LinkListItem.js.map +1 -1
  44. package/dist/List.d.ts +1 -0
  45. package/dist/List.js +1 -1
  46. package/dist/List.js.map +1 -1
  47. package/dist/ListGroupHeader.d.ts +1 -0
  48. package/dist/ListGroupHeader.js.map +1 -1
  49. package/dist/ListGroupHeaderBase.js.map +1 -1
  50. package/dist/ListItem.d.ts +1 -0
  51. package/dist/ListItem.js +1 -1
  52. package/dist/ListItem.js.map +1 -1
  53. package/dist/ListItemBase.d.ts +5 -4
  54. package/dist/ListItemBase.js.map +1 -1
  55. package/dist/ListSelectAll.d.ts +1 -0
  56. package/dist/ListSelectAll.js.map +1 -1
  57. package/dist/MastheadCountrySelector.d.ts +10 -9
  58. package/dist/MastheadCountrySelector.js.map +1 -1
  59. package/dist/MastheadItem.d.ts +2 -1
  60. package/dist/MastheadItem.js.map +1 -1
  61. package/dist/MastheadMenu.d.ts +1 -0
  62. package/dist/MastheadMenu.js.map +1 -1
  63. package/dist/MastheadMenuItem.js.map +1 -1
  64. package/dist/MastheadMobileMenu.d.ts +1 -0
  65. package/dist/MastheadMobileMenu.js.map +1 -1
  66. package/dist/MastheadProfileMenu.d.ts +4 -3
  67. package/dist/MastheadProfileMenu.js +2 -2
  68. package/dist/MastheadProfileMenu.js.map +1 -1
  69. package/dist/MastheadShell.d.ts +12 -11
  70. package/dist/MastheadShell.js.map +1 -1
  71. package/dist/MediaPlayer.d.ts +2 -1
  72. package/dist/MediaPlayer.js.map +1 -1
  73. package/dist/MediaPlayerVimeo.d.ts +1 -0
  74. package/dist/MediaPlayerVimeo.js.map +1 -1
  75. package/dist/MediaPlayerYoutube.d.ts +1 -0
  76. package/dist/MediaPlayerYoutube.js.map +1 -1
  77. package/dist/Pagination.d.ts +3 -2
  78. package/dist/Pagination.js.map +1 -1
  79. package/dist/PromoTile.d.ts +12 -22
  80. package/dist/PromoTile.js +6 -7
  81. package/dist/PromoTile.js.map +1 -1
  82. package/dist/RatingIndicator.js.map +1 -1
  83. package/dist/Search.d.ts +11 -5
  84. package/dist/Search.js +6 -6
  85. package/dist/Search.js.map +1 -1
  86. package/dist/SearchableListBase.d.ts +5 -4
  87. package/dist/SearchableListBase.js.map +1 -1
  88. package/dist/SecondaryNavigation.d.ts +1 -0
  89. package/dist/SecondaryNavigation.js.map +1 -1
  90. package/dist/SecondaryNavigationItem.d.ts +3 -2
  91. package/dist/SecondaryNavigationItem.js.map +1 -1
  92. package/dist/SecondaryNavigationItemBase.js.map +1 -1
  93. package/dist/SecondaryNavigationSubItem.d.ts +3 -2
  94. package/dist/SecondaryNavigationSubItem.js.map +1 -1
  95. package/dist/SelectBox.d.ts +6 -0
  96. package/dist/SelectBox.js +7 -0
  97. package/dist/SelectBox.js.map +1 -1
  98. package/dist/SelectBoxGroupHeader.js.map +1 -1
  99. package/dist/SideNavigationMobile.d.ts +1 -1
  100. package/dist/SideNavigationMobile.js.map +1 -1
  101. package/dist/SocialMediaButton.d.ts +8 -0
  102. package/dist/SocialMediaButton.js +10 -1
  103. package/dist/SocialMediaButton.js.map +1 -1
  104. package/dist/SocialMediaButtonTemplate.js +1 -1
  105. package/dist/SocialMediaButtonTemplate.js.map +1 -1
  106. package/dist/StepInput.d.ts +3 -2
  107. package/dist/StepInput.js.map +1 -1
  108. package/dist/StepInputTemplate.js +1 -1
  109. package/dist/StepInputTemplate.js.map +1 -1
  110. package/dist/Switch.js.map +1 -1
  111. package/dist/Tab.d.ts +1 -2
  112. package/dist/Tab.js.map +1 -1
  113. package/dist/TabNavigation.d.ts +1 -0
  114. package/dist/TabNavigation.js.map +1 -1
  115. package/dist/Table.d.ts +2 -2
  116. package/dist/Table.js.map +1 -1
  117. package/dist/TableCellBase.js.map +1 -1
  118. package/dist/TableRowBase.js.map +1 -1
  119. package/dist/Tag.d.ts +1 -0
  120. package/dist/Tag.js.map +1 -1
  121. package/dist/TagGroup.d.ts +1 -0
  122. package/dist/TagGroup.js.map +1 -1
  123. package/dist/TextField.d.ts +2 -1
  124. package/dist/TextField.js.map +1 -1
  125. package/dist/Tile.d.ts +2 -0
  126. package/dist/Tile.js.map +1 -1
  127. package/dist/Tooltip.d.ts +11 -0
  128. package/dist/Tooltip.js +42 -0
  129. package/dist/Tooltip.js.map +1 -1
  130. package/dist/Upload.d.ts +1 -0
  131. package/dist/Upload.js.map +1 -1
  132. package/dist/UploadItem.js +1 -1
  133. package/dist/UploadItem.js.map +1 -1
  134. package/dist/Wizard.d.ts +2 -2
  135. package/dist/Wizard.js.map +1 -1
  136. package/dist/WizardTab.js +1 -1
  137. package/dist/WizardTab.js.map +1 -1
  138. package/dist/assets/{InputSuggestions-CgAp8PwR.js → InputSuggestions-AxcsfuTc.js} +1 -1
  139. package/dist/assets/{ListItemStandardExpandableTextTemplate-D5HEHY33.js → ListItemStandardExpandableTextTemplate-CaS49yZt.js} +1 -1
  140. package/dist/assets/{bundle.esm-CjcqU0ib.js → bundle.esm-DzkSPQ0p.js} +157 -157
  141. package/dist/css/themes/EventRibbon.css +1 -1
  142. package/dist/css/themes/Link.css +1 -1
  143. package/dist/css/themes/RatingIndicator.css +1 -1
  144. package/dist/css/themes/Slider.css +1 -1
  145. package/dist/css/themes/SocialMediaButton.css +1 -1
  146. package/dist/custom-elements-internal.json +136 -12
  147. package/dist/custom-elements.json +101 -12
  148. package/dist/generated/templates/HeroBannerTemplate.lit.js +2 -1
  149. package/dist/generated/templates/HeroBannerTemplate.lit.js.map +1 -1
  150. package/dist/generated/templates/TooltipTemplate.lit.js +1 -1
  151. package/dist/generated/templates/TooltipTemplate.lit.js.map +1 -1
  152. package/dist/generated/themes/EventRibbon.css.d.ts +1 -1
  153. package/dist/generated/themes/EventRibbon.css.js +1 -1
  154. package/dist/generated/themes/EventRibbon.css.js.map +1 -1
  155. package/dist/generated/themes/Link.css.d.ts +1 -1
  156. package/dist/generated/themes/Link.css.js +1 -1
  157. package/dist/generated/themes/Link.css.js.map +1 -1
  158. package/dist/generated/themes/RatingIndicator.css.d.ts +1 -1
  159. package/dist/generated/themes/RatingIndicator.css.js +1 -1
  160. package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
  161. package/dist/generated/themes/Slider.css.d.ts +1 -1
  162. package/dist/generated/themes/Slider.css.js +1 -1
  163. package/dist/generated/themes/Slider.css.js.map +1 -1
  164. package/dist/generated/themes/SocialMediaButton.css.d.ts +1 -1
  165. package/dist/generated/themes/SocialMediaButton.css.js +1 -1
  166. package/dist/generated/themes/SocialMediaButton.css.js.map +1 -1
  167. package/dist/types/PromoTile.d.ts +1 -1
  168. package/dist/types/PromoTile.js +57 -57
  169. package/dist/types/PromoTile.js.map +1 -1
  170. package/dist/vscode.html-custom-data.json +6 -6
  171. package/dist/web-types.json +72 -19
  172. package/package.json +1 -1
  173. package/src/Accordion.ts +5 -4
  174. package/src/AccordionItem.ts +1 -0
  175. package/src/Breadcrumbs.ts +4 -10
  176. package/src/Checkbox.ts +3 -2
  177. package/src/ContactItem.ts +1 -0
  178. package/src/ControlButton.ts +3 -3
  179. package/src/CountrySelector.ts +2 -5
  180. package/src/DatePicker.ts +3 -2
  181. package/src/Dropdown.ts +0 -1
  182. package/src/EventRibbon.ts +1 -1
  183. package/src/EventRibbonTemplate.tsx +6 -7
  184. package/src/FilterMenu.ts +16 -7
  185. package/src/FilterMenuGroupHeader.ts +0 -1
  186. package/src/FilterMenuItem.ts +1 -0
  187. package/src/Footer.ts +1 -0
  188. package/src/HeroBanner.hbs +3 -0
  189. package/src/HeroBanner.ts +14 -1
  190. package/src/InputGroup.ts +0 -1
  191. package/src/LinkList.ts +1 -0
  192. package/src/LinkListItem.ts +1 -0
  193. package/src/List.ts +3 -8
  194. package/src/ListGroupHeader.ts +1 -0
  195. package/src/ListGroupHeaderBase.ts +0 -1
  196. package/src/ListItem.ts +2 -3
  197. package/src/ListItemBase.ts +6 -6
  198. package/src/ListSelectAll.ts +1 -0
  199. package/src/MastheadCountrySelector.ts +12 -11
  200. package/src/MastheadItem.ts +2 -1
  201. package/src/MastheadMenu.ts +1 -0
  202. package/src/MastheadMenuItem.ts +1 -0
  203. package/src/MastheadMobileMenu.ts +1 -0
  204. package/src/MastheadProfileMenu.ts +7 -5
  205. package/src/MastheadShell.ts +14 -12
  206. package/src/MediaPlayer.ts +2 -2
  207. package/src/MediaPlayerVimeo.ts +1 -0
  208. package/src/MediaPlayerYoutube.ts +1 -0
  209. package/src/Pagination.ts +3 -2
  210. package/src/PromoTile.ts +16 -26
  211. package/src/RatingIndicator.ts +0 -1
  212. package/src/Search.ts +14 -17
  213. package/src/SearchableListBase.ts +8 -5
  214. package/src/SecondaryNavigation.ts +1 -0
  215. package/src/SecondaryNavigationItem.ts +4 -11
  216. package/src/SecondaryNavigationItemBase.ts +0 -1
  217. package/src/SecondaryNavigationSubItem.ts +3 -2
  218. package/src/SelectBox.ts +10 -12
  219. package/src/SelectBoxGroupHeader.ts +0 -1
  220. package/src/SideNavigationMobile.ts +1 -1
  221. package/src/SocialMediaButton.ts +17 -1
  222. package/src/SocialMediaButtonTemplate.tsx +3 -1
  223. package/src/StepInput.ts +4 -14
  224. package/src/StepInputTemplate.tsx +1 -1
  225. package/src/Switch.ts +0 -1
  226. package/src/Tab.ts +1 -2
  227. package/src/TabNavigation.ts +5 -14
  228. package/src/Table.ts +2 -2
  229. package/src/TableCellBase.ts +0 -1
  230. package/src/TableRowBase.ts +0 -1
  231. package/src/Tag.ts +1 -0
  232. package/src/TagGroup.ts +1 -0
  233. package/src/TextField.ts +2 -1
  234. package/src/Tile.ts +3 -1
  235. package/src/Tooltip.hbs +5 -1
  236. package/src/Tooltip.ts +52 -0
  237. package/src/Upload.ts +1 -0
  238. package/src/UploadItem.ts +1 -4
  239. package/src/Wizard.ts +2 -2
  240. package/src/WizardTab.ts +1 -1
  241. package/src/generated/templates/HeroBannerTemplate.lit.ts +2 -1
  242. package/src/generated/templates/TooltipTemplate.lit.ts +1 -1
  243. package/src/generated/themes/EventRibbon.css.ts +1 -1
  244. package/src/generated/themes/Link.css.ts +1 -1
  245. package/src/generated/themes/RatingIndicator.css.ts +1 -1
  246. package/src/generated/themes/Slider.css.ts +1 -1
  247. package/src/generated/themes/SocialMediaButton.css.ts +1 -1
  248. package/src/themes/EventRibbon.css +20 -9
  249. package/src/themes/Link.css +4 -2
  250. package/src/themes/SocialMediaButton.css +4 -1
  251. package/src/types/PromoTile.ts +1 -1
@@ -124,3 +124,4 @@ class UDExLinkListItem extends UI5Element {
124
124
  UDExLinkListItem.define();
125
125
 
126
126
  export default UDExLinkListItem;
127
+ export type { UDExListLinkItemClickEventDetail };
package/src/List.ts CHANGED
@@ -5,10 +5,7 @@ import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
5
5
  import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
6
6
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
7
7
  import {
8
- isUp,
9
- isDown,
10
- isHome,
11
- isEnd,
8
+ isUp, isDown, isHome, isEnd,
12
9
  } from "@ui5/webcomponents-base/dist/Keys.js";
13
10
  import type UDExListItem from "./ListItem.js";
14
11
  import { UDExListStyleType, UDExListMode } from "./types/List.js";
@@ -17,10 +14,7 @@ import type UDExListGroupHeaderBase from "./ListGroupHeaderBase.js";
17
14
  import type UDExUploadItem from "./UploadItem.js";
18
15
  import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
19
16
  import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
20
- import {
21
- ARIA_LABEL_LIST_MULTISELECTABLE,
22
- ARIA_LABEL_LIST_SELECTABLE,
23
- } from "./generated/i18n/i18n-defaults.js";
17
+ import { ARIA_LABEL_LIST_MULTISELECTABLE, ARIA_LABEL_LIST_SELECTABLE } from "./generated/i18n/i18n-defaults.js";
24
18
  import ListTemplate from "./generated/templates/ListTemplate.lit.js";
25
19
 
26
20
  // Styles
@@ -490,3 +484,4 @@ class UDExList extends UI5Element {
490
484
  UDExList.define();
491
485
 
492
486
  export default UDExList;
487
+ export type { UDExListSelectionChangeEventDetail };
@@ -86,3 +86,4 @@ class UDExListGroupHeader extends UDExListGroupHeaderBase {
86
86
  UDExListGroupHeader.define();
87
87
 
88
88
  export default UDExListGroupHeader;
89
+ export type { UDExListGroupHeaderBaseHeaderPressEventDetail };
@@ -17,7 +17,6 @@ const listGroupHeaderClass: string = "udex-list__group-header";
17
17
  * @extends UDExListItemBase
18
18
  * @public
19
19
  */
20
-
21
20
  @customElement({
22
21
  languageAware: true,
23
22
  renderer: litRender,
package/src/ListItem.ts CHANGED
@@ -14,9 +14,7 @@ import UDExAvatar, { UDExAvatarShape, UDExAvatarSize } from "./Avatar.js";
14
14
  import UDExButton from "./Button.js";
15
15
  import UDExStatusBadge from "./StatusBadge.js";
16
16
  import type UDExStatusBadgeValueState from "./types/StatusBadgeValueState.js";
17
- import {
18
- UDExListItemSize, UDExListMode, UDExAdditionalTextState,
19
- } from "./types/List.js";
17
+ import { UDExListItemSize, UDExListMode, UDExAdditionalTextState } from "./types/List.js";
20
18
  import UDExRadioButton from "./RadioButton.js";
21
19
  import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
22
20
  import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
@@ -414,3 +412,4 @@ class UDExListItem extends UDExListItemBase {
414
412
  UDExListItem.define();
415
413
 
416
414
  export default UDExListItem;
415
+ export type { UDExListItemBaseEventDetail, UDExListItemItemPressEventDetail };
@@ -5,16 +5,16 @@ import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
5
5
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
6
6
  import { UDExListItemSize, UDExListMode, UDExListStyleType } from "./types/List.js";
7
7
 
8
- type UDExListItemBaseEventDetail = {
9
- originalEvent: PointerEvent,
10
- item: HTMLElement,
11
- }
12
-
13
8
  export type UDExListItemBaseEvents = {
14
9
  "first-icon-click": UDExListItemBaseEventDetail,
15
10
  "second-icon-click": UDExListItemBaseEventDetail,
16
11
  }
17
12
 
13
+ type UDExListItemBaseEventDetail = {
14
+ originalEvent: PointerEvent,
15
+ item: HTMLElement,
16
+ }
17
+
18
18
  /**
19
19
  * @class
20
20
  *
@@ -26,7 +26,6 @@ export type UDExListItemBaseEvents = {
26
26
  * @extends UI5Element
27
27
  * @public
28
28
  */
29
-
30
29
  @customElement({
31
30
  renderer: litRender,
32
31
  })
@@ -201,3 +200,4 @@ class UDExListItemBase extends UI5Element {
201
200
  }
202
201
 
203
202
  export default UDExListItemBase;
203
+ export type { UDExListItemBaseEventDetail };
@@ -105,3 +105,4 @@ class UDExListSelectAll extends UDExListGroupHeaderBase {
105
105
  UDExListSelectAll.define();
106
106
 
107
107
  export default UDExListSelectAll;
108
+ export type { UDExListSelectAllSelectAllEventDetail };
@@ -22,6 +22,17 @@ import { NO_MATCHES_FOUND, RESULT_RETURNED } from "./generated/i18n/i18n-default
22
22
  // Styles
23
23
  import MastheadCountrySelectorCss from "./generated/themes/MastheadCountrySelector.css.js";
24
24
 
25
+ export type Region = {
26
+ title: string,
27
+ countries: Array<Country>,
28
+ };
29
+
30
+ export type Country = {
31
+ displayTitle: string,
32
+ countryCode: string,
33
+ url: string,
34
+ };
35
+
25
36
  type UDExMastheadCountrySelectorRegionClickEventDetail = {
26
37
  item: {
27
38
  title: string,
@@ -48,17 +59,6 @@ type UDExMastheadCountrySelectorSearchEventDetail = {
48
59
  analyticsName: AnalyticsName,
49
60
  }
50
61
 
51
- export type Region = {
52
- title: string,
53
- countries: Array<Country>,
54
- };
55
-
56
- export type Country = {
57
- displayTitle: string,
58
- countryCode: string,
59
- url: string,
60
- };
61
-
62
62
  /**
63
63
  * @class
64
64
  *
@@ -534,3 +534,4 @@ class UDExMastheadCountrySelector extends UI5Element {
534
534
  UDExMastheadCountrySelector.define();
535
535
 
536
536
  export default UDExMastheadCountrySelector;
537
+ export type { UDExMastheadCountrySelectorSearchEventDetail, UDExMastheadCountrySelectorItemClickEventDetail, UDExMastheadCountrySelectorRegionClickEventDetail };
@@ -65,7 +65,7 @@ type UDExMastheadItemItemClickEventDetail = {
65
65
  sourceNode: HTMLElement,
66
66
  }
67
67
 
68
- export type UDExMastheadDropdownEventDetail = {
68
+ type UDExMastheadDropdownEventDetail = {
69
69
  title: string,
70
70
  action: UDExMastheadDropdownItemAction,
71
71
  analyticsName: AnalyticsName,
@@ -671,3 +671,4 @@ class UDExMastheadItem extends UI5Element implements IMastheadItem {
671
671
  UDExMastheadItem.define();
672
672
 
673
673
  export default UDExMastheadItem;
674
+ export type { UDExMastheadDropdownEventDetail, UDExMastheadItemItemClickEventDetail };
@@ -204,3 +204,4 @@ class UDExMastheadMenu extends UI5Element {
204
204
  UDExMastheadMenu.define();
205
205
 
206
206
  export default UDExMastheadMenu;
207
+ export type { UDExMastheadMenuMenuItemClickEventDetail };
@@ -23,6 +23,7 @@ export enum UDExItemType {
23
23
  Button = "Button",
24
24
  Link = "Link"
25
25
  }
26
+
26
27
  /**
27
28
  * @class
28
29
  *
@@ -604,3 +604,4 @@ class UDExMastheadMobileMenu extends UI5Element {
604
604
  UDExMastheadMobileMenu.define();
605
605
 
606
606
  export default UDExMastheadMobileMenu;
607
+ export type { UDExMastheadMobileMenuItemClickEventDetail, UDExMastheadMobileMenuExploreClickEventDetail };
@@ -22,14 +22,15 @@ import type UDExMastheadShell from "./MastheadShell.js";
22
22
  import "@ui5/webcomponents-icons/dist/slim-arrow-right.js";
23
23
  import "@ui5/webcomponents-icons/dist/action.js";
24
24
  import type { LinkClickEventDetail } from "@ui5/webcomponents/dist/Link.js";
25
- // Styles
26
- import MastheadProfileMenuCss from "./generated/themes/MastheadProfileMenu.css.js";
27
25
  import UDExStatusBadgeValueState from "./types/StatusBadgeValueState.js";
28
26
  import type { ResizeObserverCallback } from "@ui5/webcomponents-base/delegate/ResizeHandler.js";
29
27
  import ResizeHandler from "@ui5/webcomponents-base/delegate/ResizeHandler.js";
30
28
  import { BreakpointUtils } from "./utils/Breakpoints.js";
31
29
 
32
- interface UserData {
30
+ // Styles
31
+ import MastheadProfileMenuCss from "./generated/themes/MastheadProfileMenu.css.js";
32
+
33
+ export interface UserData {
33
34
  name?: string,
34
35
  username?: string,
35
36
  email?: string,
@@ -37,7 +38,7 @@ interface UserData {
37
38
  avatarInitials?: string
38
39
  }
39
40
 
40
- interface UserIdentity {
41
+ export interface UserIdentity {
41
42
  avatarUrl: string,
42
43
  email: string,
43
44
  name: string,
@@ -45,7 +46,7 @@ interface UserIdentity {
45
46
  isLogged: boolean,
46
47
  }
47
48
 
48
- interface ExtendedUserIdentity extends UserIdentity {
49
+ export interface ExtendedUserIdentity extends UserIdentity {
49
50
  supportingText: string;
50
51
  statusBadge: string;
51
52
  }
@@ -417,3 +418,4 @@ class UDExMastheadProfileMenu extends UI5Element {
417
418
  UDExMastheadProfileMenu.define();
418
419
 
419
420
  export default UDExMastheadProfileMenu;
421
+ export type { UDExMastheadProfileMenuItemClickEventDetail, UDExMastheadProfileMenuIdentityClickEventDetail, UDExMastheadProfileMenuAddOrRemoveClickEventDetail };
@@ -33,19 +33,9 @@ import MastheadShellTemplate from "./generated/templates/MastheadShellTemplate.l
33
33
  import MastheadShellCss from "./generated/themes/MastheadShell.css.js";
34
34
 
35
35
  const canvasContentFont = "14px '72 Brand Variable'";
36
- type MastheadSlottedItem = UDExMastheadItem | UDExMastheadProfileMenu | UDExMastheadMenu | UDExMastheadCountrySelector | undefined | null;
37
- type MastheadItemType = UDExMastheadItem | null | undefined;
38
36
 
39
- type UDExMastheadShellBaseEventDetail = {
40
- originalEvent: PointerEvent,
41
- analyticsName: AnalyticsName,
42
- sourceNode: HTMLElement,
43
- item?: UDExMastheadItem,
44
- }
45
-
46
- type UDExMastheadShellAnalyticsNameEventDetail = {
47
- analyticsName: AnalyticsName,
48
- }
37
+ export type MastheadSlottedItem = UDExMastheadItem | UDExMastheadProfileMenu | UDExMastheadMenu | UDExMastheadCountrySelector | undefined | null;
38
+ export type MastheadItemType = UDExMastheadItem | null | undefined;
49
39
 
50
40
  export enum UDExMastheadVariable {
51
41
  itemArrowIconMarginInlineStart = "--udex-masthead-item-arrow-margin-inline-start",
@@ -59,6 +49,17 @@ export enum UDExMastheadVariable {
59
49
  itemGap = "--udex-masthead-shell-item-gap",
60
50
  }
61
51
 
52
+ type UDExMastheadShellBaseEventDetail = {
53
+ originalEvent: PointerEvent,
54
+ analyticsName: AnalyticsName,
55
+ sourceNode: HTMLElement,
56
+ item?: UDExMastheadItem,
57
+ }
58
+
59
+ type UDExMastheadShellAnalyticsNameEventDetail = {
60
+ analyticsName: AnalyticsName,
61
+ }
62
+
62
63
  /**
63
64
  * @class
64
65
  *
@@ -1092,3 +1093,4 @@ class UDExMastheadShell extends UI5Element {
1092
1093
  UDExMastheadShell.define();
1093
1094
 
1094
1095
  export default UDExMastheadShell;
1096
+ export type { UDExMastheadShellBaseEventDetail, UDExMastheadShellAnalyticsNameEventDetail };
@@ -18,14 +18,13 @@ import MediaPlayerTemplate from "./generated/templates/MediaPlayerTemplate.lit.j
18
18
  // Styles
19
19
  import MediaPlayerCss from "./generated/themes/MediaPlayer.css.js";
20
20
 
21
- export type YoutubePlayer = YT.Player;
22
-
23
21
  declare global {
24
22
  interface Window {
25
23
  videojs: any;
26
24
  }
27
25
  }
28
26
 
27
+ export type YoutubePlayer = YT.Player;
29
28
  export enum UDExAspectRatio {
30
29
  "16:9" = "16:9",
31
30
  "9:16" = "9:16",
@@ -634,3 +633,4 @@ class UDExMediaPlayer extends UI5Element {
634
633
  UDExMediaPlayer.define();
635
634
 
636
635
  export default UDExMediaPlayer;
636
+ export type { UDExMediaPlayerVideoProgressEventDetail };
@@ -175,3 +175,4 @@ class UDExMediaPlayerVimeo extends UI5Element {
175
175
  UDExMediaPlayerVimeo.define();
176
176
 
177
177
  export default UDExMediaPlayerVimeo;
178
+ export type { UDExMediaPLayerViemeoPlayingEventDetail };
@@ -310,3 +310,4 @@ class UDExMediaPlayerYoutube extends UI5Element {
310
310
  UDExMediaPlayerYoutube.define();
311
311
 
312
312
  export default UDExMediaPlayerYoutube;
313
+ export type { UDExMediaPlayerYoutubeBaseEventDetails, UDExMediaPlayerYoutubePlayingEventDetail };
package/src/Pagination.ts CHANGED
@@ -32,7 +32,7 @@ import PaginationTemplate from "./generated/templates/PaginationTemplate.lit.js"
32
32
  // Styles
33
33
  import PaginationCss from "./generated/themes/Pagination.css.js";
34
34
 
35
- interface Page {
35
+ export interface Page {
36
36
  value: number;
37
37
  active: boolean;
38
38
  }
@@ -47,7 +47,7 @@ export enum UDExDisplayType {
47
47
  mobile = "mobile"
48
48
  }
49
49
 
50
- export type UDExPaginationChangeEventDetail = {
50
+ type UDExPaginationChangeEventDetail = {
51
51
  currentPage: number,
52
52
  }
53
53
 
@@ -471,3 +471,4 @@ class UDExPagination extends UI5Element {
471
471
  UDExPagination.define();
472
472
 
473
473
  export default UDExPagination;
474
+ export type { UDExPaginationChangeEventDetail };
package/src/PromoTile.ts CHANGED
@@ -15,7 +15,7 @@ import { BreakpointUtils } from "./utils/Breakpoints.js";
15
15
  import type UDExButton from "./Button.js";
16
16
  import UDExButtonSize from "./types/ButtonSize.js";
17
17
  import UDExButtonDesign from "./types/ButtonDesign.js";
18
- import { UDExPromoTileColorSheme, UDExPromoTileMode } from "./types/PromoTile.js";
18
+ import { UDExPromoTileColorScheme, UDExPromoTileMode } from "./types/PromoTile.js";
19
19
 
20
20
  // Styles
21
21
  import PromoTileCss from "./generated/themes/PromoTile.css.js";
@@ -74,18 +74,16 @@ class UDExPromoTile extends UI5Element {
74
74
  /**
75
75
  * Defines the orientation of the Promo Tile component.
76
76
  *
77
- * @type {string}
78
- * @defaultvalue "Vertical"
77
+ * @default "Vertical"
79
78
  * @public
80
79
  */
81
- @property({ type: String })
80
+ @property()
82
81
  orientation: `${UDExOrientation}` = UDExOrientation.Vertical;
83
82
 
84
83
  /**
85
84
  * Defines the UI5 icon name in the pictogram section.
86
85
  *
87
- * @type {string}
88
- * @defaultvalue ""
86
+ * @default ""
89
87
  * @public
90
88
  */
91
89
  @property({ type: String })
@@ -94,8 +92,7 @@ class UDExPromoTile extends UI5Element {
94
92
  /**
95
93
  * Defines the image aria label and alt in the pictogram section.
96
94
  *
97
- * @type {string}
98
- * @defaultvalue ""
95
+ * @default ""
99
96
  * @public
100
97
  */
101
98
  @property({ type: String })
@@ -104,8 +101,7 @@ class UDExPromoTile extends UI5Element {
104
101
  /**
105
102
  * Defines the logo URL in the pictogram section.
106
103
  *
107
- * @type {string}
108
- * @defaultvalue ""
104
+ * @default ""
109
105
  * @public
110
106
  */
111
107
  @property({ type: String })
@@ -114,8 +110,7 @@ class UDExPromoTile extends UI5Element {
114
110
  /**
115
111
  * Defines the header text of the promo tile.
116
112
  *
117
- * @type {string}
118
- * @defaultvalue ""
113
+ * @default ""
119
114
  * @public
120
115
  */
121
116
  @property({ type: String })
@@ -124,8 +119,7 @@ class UDExPromoTile extends UI5Element {
124
119
  /**
125
120
  * Defines the eyebrow text of the promo tile.
126
121
  *
127
- * @type {string}
128
- * @defaultvalue ""
122
+ * @default ""
129
123
  * @public
130
124
  */
131
125
  @property({ type: String })
@@ -134,8 +128,7 @@ class UDExPromoTile extends UI5Element {
134
128
  /**
135
129
  * Defines the CTA button label
136
130
  *
137
- * @type {string}
138
- * @defaultvalue ""
131
+ * @default ""
139
132
  * @public
140
133
  */
141
134
  @property({ type: String })
@@ -144,28 +137,25 @@ class UDExPromoTile extends UI5Element {
144
137
  /**
145
138
  * Defines the CTA button design
146
139
  *
147
- * @type {string}
148
- * @defaultvalue ""
140
+ * @default ""
149
141
  * @public
150
142
  */
151
- @property({ type: String })
143
+ @property()
152
144
  buttonDesign?: UDExButtonDesign;
153
145
 
154
146
  /**
155
147
  * Defines the color scheme of the Promo Tile.
156
148
  *
157
- * @type {string}
158
- * @defaultvalue ""
149
+ * @default ""
159
150
  * @public
160
151
  */
161
- @property({ type: String })
162
- colorScheme?: UDExPromoTileColorSheme;
152
+ @property()
153
+ colorScheme?: UDExPromoTileColorScheme;
163
154
 
164
155
  /**
165
156
  * Defines the accessible name of the component.
166
157
  *
167
- * @type {string}
168
- * @defaultvalue ""
158
+ * @default ""
169
159
  * @public
170
160
  */
171
161
  @property({ type: String })
@@ -247,7 +237,7 @@ class UDExPromoTile extends UI5Element {
247
237
 
248
238
  checkEyebrowColor(colorScheme: string): string {
249
239
  const number = this.getColorNumber(colorScheme);
250
- let color: string = UDExPromoTileColorSheme.Blue8;
240
+ let color: string = UDExPromoTileColorScheme.Blue8;
251
241
 
252
242
  if (number === 7) {
253
243
  color = "NeutralWhite";
@@ -32,7 +32,6 @@ export enum UDExDisplayType {
32
32
  * @extends RatingIndicator
33
33
  * @public
34
34
  */
35
-
36
35
  @customElement({
37
36
  tag: "udex-rating-indicator",
38
37
  renderer: litRender,
package/src/Search.ts CHANGED
@@ -10,13 +10,7 @@ import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
10
10
  import { getFeature } from "@ui5/webcomponents-base/dist/FeaturesRegistry.js";
11
11
  import Popover from "@ui5/webcomponents/dist/Popover.js";
12
12
  import {
13
- isEnter,
14
- isTabNext,
15
- isTabPrevious,
16
- isUp,
17
- isDown,
18
- isEscape,
19
- isSpace,
13
+ isEnter, isTabNext, isTabPrevious, isUp, isDown, isEscape, isSpace,
20
14
  } from "@ui5/webcomponents-base/dist/Keys.js";
21
15
  import { isDesktop } from "@ui5/webcomponents-base/dist/Device.js";
22
16
  import Icon from "@ui5/webcomponents/dist/Icon.js";
@@ -58,12 +52,12 @@ const SearchIcon: string = "sap-icon://search";
58
52
 
59
53
  const SuggestionsPopoverId: string = "suggestions-popover";
60
54
 
61
- type ListItem = {
55
+ export type ListItem = {
62
56
  label: string;
63
57
  icon: string;
64
58
  }
65
59
 
66
- type DataList = Array<ListItem | string>;
60
+ export type DataList = Array<ListItem | string>;
67
61
 
68
62
  export type SuggestionData = {
69
63
  label: string,
@@ -75,7 +69,7 @@ export type RecommendData = {
75
69
  list: DataList
76
70
  }
77
71
 
78
- type SuggestionRecommendLists = {
72
+ export type SuggestionRecommendLists = {
79
73
  suggested: SuggestionData | DataList,
80
74
  recommended: RecommendData | DataList
81
75
  }
@@ -99,15 +93,17 @@ export type PopoverPlacement = "Bottom" | "Top";
99
93
 
100
94
  type UDExSearchBaseEventDetail = {
101
95
  value: string,
96
+ categoryName?: string
102
97
  }
103
98
 
104
99
  type UDExSearchPrefixItemClickEventDetail = {
105
100
  item: ListItemBase,
106
101
  }
107
102
 
108
- export type UDExSearchKeydownEventDetail = {
103
+ type UDExSearchKeydownEventDetail = {
109
104
  e: KeyboardEvent;
110
105
  }
106
+
111
107
  /**
112
108
  * @class
113
109
  *
@@ -693,7 +689,7 @@ class UDExSearch extends UI5Element {
693
689
  const itemWithCustomIcon = typeof item === "object";
694
690
  const label = itemWithCustomIcon ? item.label : item;
695
691
  return {
696
- handleSelectItem: this.handleSelectItem(label),
692
+ handleSelectItem: this.handleSelectItem(label, idName),
697
693
  text: this.getTextWithSuggestion(label),
698
694
  title: label,
699
695
  icon: itemWithCustomIcon ? item.icon : SearchIcon,
@@ -715,14 +711,14 @@ class UDExSearch extends UI5Element {
715
711
  return text.replace(search, "<b>$&</b>");
716
712
  }
717
713
 
718
- handleSelectItem = (itemValue: string) => () => {
714
+ handleSelectItem = (itemValue: string, categoryName: string) => () => {
719
715
  this.value = itemValue;
720
- this.fireDropdownItemClick(itemValue);
716
+ this.fireDropdownItemClick(itemValue, categoryName);
721
717
  this.handleSubmitValue();
722
718
  };
723
719
 
724
- fireDropdownItemClick(value: string) {
725
- this.fireDecoratorEvent("dropdown-item-click", { value });
720
+ fireDropdownItemClick(value: string, categoryName: string) {
721
+ this.fireDecoratorEvent("dropdown-item-click", { value, categoryName });
726
722
  }
727
723
 
728
724
  handleDropdownClick() {
@@ -896,7 +892,7 @@ class UDExSearch extends UI5Element {
896
892
  if (Suggestion) {
897
893
  this.Suggestion = new Suggestion(this);
898
894
  } else {
899
- throw new Error("You have to import '@sapudex/webcomponents/dist/features/SearchSuggestionsPopover.js' module to use udex-search suggestions");
895
+ throw new Error("You have to import '@sapudex/web-components/dist/features/SearchSuggestionsPopover.js' module to use udex-search suggestions");
900
896
  }
901
897
  }
902
898
 
@@ -1323,3 +1319,4 @@ class UDExSearch extends UI5Element {
1323
1319
  UDExSearch.define();
1324
1320
 
1325
1321
  export default UDExSearch;
1322
+ export type { UDExSearchBaseEventDetail, UDExSearchKeydownEventDetail, UDExSearchPrefixItemClickEventDetail };
@@ -30,6 +30,11 @@ type UDExSearchableListBaseSubmitSearchEventDetail = {
30
30
  selectedItems: Array<UDExListItemBase>
31
31
  }
32
32
 
33
+ type UDExSelectBoxIconClickEventDetail = {
34
+ originalEvent: PointerEvent,
35
+ item: UDExItemFromList,
36
+ }
37
+
33
38
  export type UDExSearchableListBaseEvents = {
34
39
  "select-all": void,
35
40
  "selection-change": UDExSearchableListBaseSelectionChangeEventDetail,
@@ -40,11 +45,6 @@ export type UDExSearchableListBaseEvents = {
40
45
  "second-icon-click": UDExSelectBoxIconClickEventDetail,
41
46
  }
42
47
 
43
- type UDExSelectBoxIconClickEventDetail = {
44
- originalEvent: PointerEvent,
45
- item: UDExItemFromList,
46
- }
47
-
48
48
  /**
49
49
  * @class
50
50
  *
@@ -655,3 +655,6 @@ class UDExSearchableListBase extends UI5Element {
655
655
  }
656
656
 
657
657
  export default UDExSearchableListBase;
658
+ export type {
659
+ UDExSelectBoxIconClickEventDetail, UDExSearchableListBaseSubmitSearchEventDetail, UDExSearchableListBaseChangeSearchEventDetail, UDExSearchableListBaseSelectionChangeEventDetail,
660
+ };
@@ -525,3 +525,4 @@ class UDExSecondaryNavigation extends UI5Element {
525
525
  UDExSecondaryNavigation.define();
526
526
 
527
527
  export default UDExSecondaryNavigation;
528
+ export type { UDExSecondaryNavigationClickEventDetail, UDExSecondaryNavigationHeadingClickEventDetail };
@@ -5,15 +5,7 @@ import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
5
5
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
6
6
  import UI5Icon from "@ui5/webcomponents/dist/Icon.js";
7
7
  import {
8
- isLeft,
9
- isRight,
10
- isUp,
11
- isDown,
12
- isEscape,
13
- isSpace,
14
- isEnter,
15
- isHome,
16
- isEnd, isTabNext, isTabPrevious,
8
+ isLeft, isRight, isUp, isDown, isEscape, isSpace, isEnter, isHome, isEnd, isTabNext, isTabPrevious,
17
9
  } from "@ui5/webcomponents-base/dist/Keys.js";
18
10
  import type { RelativeValue } from "./utils/parseRelativeUnits.js";
19
11
  import parseRelativeUnits from "./utils/parseRelativeUnits.js";
@@ -29,13 +21,13 @@ import SecondaryNavigationItemCss from "./generated/themes/SecondaryNavigationIt
29
21
 
30
22
  export const menuItemRole: string = "menuitem";
31
23
 
32
- export type UDExSecondaryNavigationItemClickEventDetail = {
24
+ type UDExSecondaryNavigationItemClickEventDetail = {
33
25
  item: HTMLElement,
34
26
  index: number,
35
27
  originalEvent: PointerEvent | KeyboardEvent
36
28
  };
37
29
 
38
- export type UDExSecondaryNavigationItemSubItemClickEventDetail = {
30
+ type UDExSecondaryNavigationItemSubItemClickEventDetail = {
39
31
  item: NavItem,
40
32
  index: number,
41
33
  originalEvent: PointerEvent
@@ -507,3 +499,4 @@ class UDExSecondaryNavigationItem extends UDExSecondaryNavigationItemBase {
507
499
  UDExSecondaryNavigationItem.define();
508
500
 
509
501
  export default UDExSecondaryNavigationItem;
502
+ export type { UDExSecondaryNavigationItemClickEventDetail, UDExSecondaryNavigationItemSubItemClickEventDetail };
@@ -29,7 +29,6 @@ export type NavItem = {
29
29
  * @extends UI5Element
30
30
  * @public
31
31
  */
32
-
33
32
  @customElement({
34
33
  renderer: litRender,
35
34
  })
@@ -15,12 +15,12 @@ import SecondaryNavigationSubItemTemplate from "./generated/templates/SecondaryN
15
15
  // Styles
16
16
  import SecondaryNavigationSubItemCss from "./generated/themes/SecondaryNavigationSubItem.css.js";
17
17
 
18
- export type UDExSecondaryNavigationSubItemClickEventDetail = {
18
+ type UDExSecondaryNavigationSubItemClickEventDetail = {
19
19
  item: UDExSecondaryNavigationSubItem,
20
20
  originalEvent: PointerEvent
21
21
  }
22
22
 
23
- export type UDExSecondaryNavigationSubItemBackClickEventDetail = {
23
+ type UDExSecondaryNavigationSubItemBackClickEventDetail = {
24
24
  originalEvent: PointerEvent
25
25
  }
26
26
 
@@ -124,3 +124,4 @@ class UDExSecondaryNavigationSubItem extends UDExSecondaryNavigationItemBase {
124
124
  UDExSecondaryNavigationSubItem.define();
125
125
 
126
126
  export default UDExSecondaryNavigationSubItem;
127
+ export type { UDExSecondaryNavigationSubItemClickEventDetail, UDExSecondaryNavigationSubItemBackClickEventDetail };