@ui5/webcomponents-fiori 1.21.0 → 1.22.0-rc.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 (283) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/Bar.d.ts +6 -27
  3. package/dist/Bar.js +3 -14
  4. package/dist/Bar.js.map +1 -1
  5. package/dist/BarcodeScannerDialog.d.ts +2 -13
  6. package/dist/BarcodeScannerDialog.js +10 -12
  7. package/dist/BarcodeScannerDialog.js.map +1 -1
  8. package/dist/DynamicSideContent.d.ts +9 -35
  9. package/dist/DynamicSideContent.js +15 -7
  10. package/dist/DynamicSideContent.js.map +1 -1
  11. package/dist/FilterItem.d.ts +3 -14
  12. package/dist/FilterItem.js +1 -5
  13. package/dist/FilterItem.js.map +1 -1
  14. package/dist/FilterItemOption.d.ts +3 -11
  15. package/dist/FilterItemOption.js +1 -5
  16. package/dist/FilterItemOption.js.map +1 -1
  17. package/dist/FlexibleColumnLayout.d.ts +13 -51
  18. package/dist/FlexibleColumnLayout.js +28 -26
  19. package/dist/FlexibleColumnLayout.js.map +1 -1
  20. package/dist/IllustratedMessage.d.ts +9 -35
  21. package/dist/IllustratedMessage.js +1 -4
  22. package/dist/IllustratedMessage.js.map +1 -1
  23. package/dist/Interfaces.d.ts +28 -88
  24. package/dist/Interfaces.js +2 -113
  25. package/dist/Interfaces.js.map +1 -1
  26. package/dist/MediaGallery.d.ts +9 -26
  27. package/dist/MediaGallery.js +4 -8
  28. package/dist/MediaGallery.js.map +1 -1
  29. package/dist/MediaGalleryItem.d.ts +7 -22
  30. package/dist/MediaGalleryItem.js +2 -5
  31. package/dist/MediaGalleryItem.js.map +1 -1
  32. package/dist/NotificationAction.d.ts +7 -20
  33. package/dist/NotificationAction.js +3 -9
  34. package/dist/NotificationAction.js.map +1 -1
  35. package/dist/NotificationListGroupItem.d.ts +5 -27
  36. package/dist/NotificationListGroupItem.js +1 -16
  37. package/dist/NotificationListGroupItem.js.map +1 -1
  38. package/dist/NotificationListItem.d.ts +3 -27
  39. package/dist/NotificationListItem.js +2 -15
  40. package/dist/NotificationListItem.js.map +1 -1
  41. package/dist/NotificationListItemBase.d.ts +7 -32
  42. package/dist/NotificationListItemBase.js +15 -15
  43. package/dist/NotificationListItemBase.js.map +1 -1
  44. package/dist/Page.d.ts +7 -35
  45. package/dist/Page.js +2 -13
  46. package/dist/Page.js.map +1 -1
  47. package/dist/ProductSwitch.d.ts +3 -10
  48. package/dist/ProductSwitch.js +1 -5
  49. package/dist/ProductSwitch.js.map +1 -1
  50. package/dist/ProductSwitchItem.d.ts +9 -22
  51. package/dist/ProductSwitchItem.js +2 -7
  52. package/dist/ProductSwitchItem.js.map +1 -1
  53. package/dist/ShellBar.d.ts +30 -90
  54. package/dist/ShellBar.js +28 -41
  55. package/dist/ShellBar.js.map +1 -1
  56. package/dist/ShellBarItem.d.ts +9 -14
  57. package/dist/ShellBarItem.js +6 -6
  58. package/dist/ShellBarItem.js.map +1 -1
  59. package/dist/SideNavigation.d.ts +29 -17
  60. package/dist/SideNavigation.js +155 -9
  61. package/dist/SideNavigation.js.map +1 -1
  62. package/dist/SideNavigationItem.d.ts +4 -17
  63. package/dist/SideNavigationItem.js +1 -5
  64. package/dist/SideNavigationItem.js.map +1 -1
  65. package/dist/SideNavigationItemBase.d.ts +7 -36
  66. package/dist/SideNavigationItemBase.js +20 -12
  67. package/dist/SideNavigationItemBase.js.map +1 -1
  68. package/dist/SideNavigationSubItem.d.ts +1 -5
  69. package/dist/SideNavigationSubItem.js +1 -5
  70. package/dist/SideNavigationSubItem.js.map +1 -1
  71. package/dist/SortItem.d.ts +3 -11
  72. package/dist/SortItem.js +1 -5
  73. package/dist/SortItem.js.map +1 -1
  74. package/dist/Timeline.d.ts +5 -16
  75. package/dist/Timeline.js +1 -5
  76. package/dist/Timeline.js.map +1 -1
  77. package/dist/TimelineItem.d.ts +11 -34
  78. package/dist/TimelineItem.js +3 -15
  79. package/dist/TimelineItem.js.map +1 -1
  80. package/dist/UploadCollection.d.ts +11 -32
  81. package/dist/UploadCollection.js +7 -9
  82. package/dist/UploadCollection.js.map +1 -1
  83. package/dist/UploadCollectionItem.d.ts +16 -47
  84. package/dist/UploadCollectionItem.js +3 -10
  85. package/dist/UploadCollectionItem.js.map +1 -1
  86. package/dist/ViewSettingsDialog.d.ts +5 -28
  87. package/dist/ViewSettingsDialog.js +34 -18
  88. package/dist/ViewSettingsDialog.js.map +1 -1
  89. package/dist/Wizard.d.ts +15 -39
  90. package/dist/Wizard.js +23 -33
  91. package/dist/Wizard.js.map +1 -1
  92. package/dist/WizardStep.d.ts +8 -31
  93. package/dist/WizardStep.js +2 -5
  94. package/dist/WizardStep.js.map +1 -1
  95. package/dist/WizardTab.d.ts +20 -24
  96. package/dist/WizardTab.js +1 -5
  97. package/dist/WizardTab.js.map +1 -1
  98. package/dist/css/themes/Bar.css +1 -1
  99. package/dist/css/themes/FlexibleColumnLayout.css +1 -1
  100. package/dist/css/themes/MediaGallery.css +1 -1
  101. package/dist/css/themes/MediaGalleryItem.css +1 -1
  102. package/dist/css/themes/NotificationListGroupItem.css +1 -1
  103. package/dist/css/themes/NotificationListItem.css +1 -1
  104. package/dist/css/themes/NotificationListItemBase.css +1 -1
  105. package/dist/css/themes/NotificationOverflowActionsPopover.css +1 -1
  106. package/dist/css/themes/Page.css +1 -1
  107. package/dist/css/themes/ProductSwitchItem.css +1 -1
  108. package/dist/css/themes/ShellBar.css +1 -1
  109. package/dist/css/themes/SideNavigation.css +1 -1
  110. package/dist/css/themes/SideNavigationPopover.css +1 -1
  111. package/dist/css/themes/Timeline.css +1 -1
  112. package/dist/css/themes/TimelineItem.css +1 -1
  113. package/dist/css/themes/UploadCollection.css +1 -1
  114. package/dist/css/themes/UploadCollectionItem.css +1 -1
  115. package/dist/css/themes/ViewSettingsDialog.css +1 -1
  116. package/dist/css/themes/Wizard.css +1 -1
  117. package/dist/css/themes/WizardTab.css +1 -1
  118. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  119. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  120. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  121. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  122. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  123. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  124. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  125. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  126. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  127. package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
  128. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  129. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  130. package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
  131. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  132. package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
  133. package/dist/custom-elements-internal.json +6682 -0
  134. package/dist/custom-elements.json +4098 -1
  135. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  136. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  137. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  138. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  139. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  140. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  141. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  142. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  143. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  144. package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
  145. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  146. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  147. package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
  148. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  149. package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
  150. package/dist/generated/i18n/i18n-defaults.d.ts +2 -1
  151. package/dist/generated/i18n/i18n-defaults.js +2 -1
  152. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  153. package/dist/generated/templates/SideNavigationPopoverTemplate.lit.js +6 -2
  154. package/dist/generated/templates/SideNavigationPopoverTemplate.lit.js.map +1 -1
  155. package/dist/generated/templates/SideNavigationTemplate.lit.js +1 -1
  156. package/dist/generated/templates/SideNavigationTemplate.lit.js.map +1 -1
  157. package/dist/generated/themes/Bar.css.js +1 -1
  158. package/dist/generated/themes/Bar.css.js.map +1 -1
  159. package/dist/generated/themes/FlexibleColumnLayout.css.js +1 -1
  160. package/dist/generated/themes/FlexibleColumnLayout.css.js.map +1 -1
  161. package/dist/generated/themes/MediaGallery.css.js +1 -1
  162. package/dist/generated/themes/MediaGallery.css.js.map +1 -1
  163. package/dist/generated/themes/MediaGalleryItem.css.js +1 -1
  164. package/dist/generated/themes/MediaGalleryItem.css.js.map +1 -1
  165. package/dist/generated/themes/NotificationListGroupItem.css.js +1 -1
  166. package/dist/generated/themes/NotificationListGroupItem.css.js.map +1 -1
  167. package/dist/generated/themes/NotificationListItem.css.js +1 -1
  168. package/dist/generated/themes/NotificationListItem.css.js.map +1 -1
  169. package/dist/generated/themes/NotificationListItemBase.css.js +1 -1
  170. package/dist/generated/themes/NotificationListItemBase.css.js.map +1 -1
  171. package/dist/generated/themes/NotificationOverflowActionsPopover.css.js +1 -1
  172. package/dist/generated/themes/NotificationOverflowActionsPopover.css.js.map +1 -1
  173. package/dist/generated/themes/Page.css.js +1 -1
  174. package/dist/generated/themes/Page.css.js.map +1 -1
  175. package/dist/generated/themes/ProductSwitchItem.css.js +1 -1
  176. package/dist/generated/themes/ProductSwitchItem.css.js.map +1 -1
  177. package/dist/generated/themes/ShellBar.css.js +1 -1
  178. package/dist/generated/themes/ShellBar.css.js.map +1 -1
  179. package/dist/generated/themes/SideNavigation.css.js +1 -1
  180. package/dist/generated/themes/SideNavigation.css.js.map +1 -1
  181. package/dist/generated/themes/SideNavigationPopover.css.js +1 -1
  182. package/dist/generated/themes/SideNavigationPopover.css.js.map +1 -1
  183. package/dist/generated/themes/Timeline.css.js +1 -1
  184. package/dist/generated/themes/Timeline.css.js.map +1 -1
  185. package/dist/generated/themes/TimelineItem.css.js +1 -1
  186. package/dist/generated/themes/TimelineItem.css.js.map +1 -1
  187. package/dist/generated/themes/UploadCollection.css.js +1 -1
  188. package/dist/generated/themes/UploadCollection.css.js.map +1 -1
  189. package/dist/generated/themes/UploadCollectionItem.css.js +1 -1
  190. package/dist/generated/themes/UploadCollectionItem.css.js.map +1 -1
  191. package/dist/generated/themes/ViewSettingsDialog.css.js +1 -1
  192. package/dist/generated/themes/ViewSettingsDialog.css.js.map +1 -1
  193. package/dist/generated/themes/Wizard.css.js +1 -1
  194. package/dist/generated/themes/Wizard.css.js.map +1 -1
  195. package/dist/generated/themes/WizardTab.css.js +1 -1
  196. package/dist/generated/themes/WizardTab.css.js.map +1 -1
  197. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  198. package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
  199. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  200. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
  201. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  202. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
  203. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  204. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  205. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  206. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  207. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  208. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  209. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  210. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  211. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  212. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  213. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  214. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  215. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
  216. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
  217. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  218. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  219. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  220. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  221. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
  222. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
  223. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  224. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  225. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
  226. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
  227. package/dist/types/BarDesign.d.ts +0 -8
  228. package/dist/types/BarDesign.js +0 -8
  229. package/dist/types/BarDesign.js.map +1 -1
  230. package/dist/types/FCLLayout.d.ts +0 -13
  231. package/dist/types/FCLLayout.js +0 -13
  232. package/dist/types/FCLLayout.js.map +1 -1
  233. package/dist/types/IllustrationMessageSize.d.ts +0 -9
  234. package/dist/types/IllustrationMessageSize.js +0 -9
  235. package/dist/types/IllustrationMessageSize.js.map +1 -1
  236. package/dist/types/IllustrationMessageType.d.ts +0 -107
  237. package/dist/types/IllustrationMessageType.js +0 -107
  238. package/dist/types/IllustrationMessageType.js.map +1 -1
  239. package/dist/types/MediaGalleryItemLayout.d.ts +0 -6
  240. package/dist/types/MediaGalleryItemLayout.js +0 -6
  241. package/dist/types/MediaGalleryItemLayout.js.map +1 -1
  242. package/dist/types/MediaGalleryLayout.d.ts +0 -7
  243. package/dist/types/MediaGalleryLayout.js +0 -7
  244. package/dist/types/MediaGalleryLayout.js.map +1 -1
  245. package/dist/types/MediaGalleryMenuHorizontalAlign.d.ts +0 -6
  246. package/dist/types/MediaGalleryMenuHorizontalAlign.js +0 -6
  247. package/dist/types/MediaGalleryMenuHorizontalAlign.js.map +1 -1
  248. package/dist/types/MediaGalleryMenuVerticalAlign.d.ts +0 -6
  249. package/dist/types/MediaGalleryMenuVerticalAlign.js +0 -6
  250. package/dist/types/MediaGalleryMenuVerticalAlign.js.map +1 -1
  251. package/dist/types/PageBackgroundDesign.d.ts +0 -7
  252. package/dist/types/PageBackgroundDesign.js +0 -7
  253. package/dist/types/PageBackgroundDesign.js.map +1 -1
  254. package/dist/types/SideContentFallDown.d.ts +0 -8
  255. package/dist/types/SideContentFallDown.js +0 -8
  256. package/dist/types/SideContentFallDown.js.map +1 -1
  257. package/dist/types/SideContentPosition.d.ts +0 -6
  258. package/dist/types/SideContentPosition.js +0 -6
  259. package/dist/types/SideContentPosition.js.map +1 -1
  260. package/dist/types/SideContentVisibility.d.ts +0 -9
  261. package/dist/types/SideContentVisibility.js +0 -9
  262. package/dist/types/SideContentVisibility.js.map +1 -1
  263. package/dist/types/TimelineLayout.d.ts +0 -6
  264. package/dist/types/TimelineLayout.js +0 -6
  265. package/dist/types/TimelineLayout.js.map +1 -1
  266. package/dist/types/UploadCollectionDnDMode.d.ts +0 -7
  267. package/dist/types/UploadCollectionDnDMode.js +0 -7
  268. package/dist/types/UploadCollectionDnDMode.js.map +1 -1
  269. package/dist/types/UploadState.d.ts +0 -8
  270. package/dist/types/UploadState.js +0 -8
  271. package/dist/types/UploadState.js.map +1 -1
  272. package/dist/types/ViewSettingsDialogMode.d.ts +0 -6
  273. package/dist/types/ViewSettingsDialogMode.js +0 -6
  274. package/dist/types/ViewSettingsDialogMode.js.map +1 -1
  275. package/dist/types/WizardContentLayout.d.ts +0 -6
  276. package/dist/types/WizardContentLayout.js +0 -6
  277. package/dist/types/WizardContentLayout.js.map +1 -1
  278. package/package.json +7 -7
  279. package/src/SideNavigation.hbs +21 -0
  280. package/src/SideNavigationPopover.hbs +61 -28
  281. package/src/i18n/messagebundle.properties +3 -0
  282. package/src/themes/SideNavigation.css +11 -1
  283. package/dist/api.json +0 -1
package/dist/Page.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Page.js","sourceRoot":"","sources":["../src/Page.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,aAAa,MAAM,wDAAwD,CAAC;AAEnF,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,mBAAmB,MAAM,kEAAkE,CAAC;AACnG,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,WAAW;AACX,OAAO,YAAY,MAAM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CAAC,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,cAAc;gBACnD,KAAK,EAAE,IAAI,CAAC,WAAW;aACvB;YACD,MAAM,EAAE,EAAE;SACV,CAAC;IACH,CAAC;CACD,CAAA;AA1HA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,YAAY,EAAE,oBAAoB,CAAC,KAAK,EAAE,CAAC;8CACtC;AAY7C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8CACD;AAY3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4CACH;AAWzB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCACP;AAUrB;IADC,QAAQ,EAAE;wCACS;AAWpB;IADC,IAAI,EAAE;oCACqB;AAW5B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;qCAChB;AAW7B;IADC,IAAI,EAAE;oCACqB;AA3FvB,IAAI;IAVT,aAAa,CAAC;QACd,GAAG,EAAE,UAAU;QACf,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE;YACP,mBAAmB;YACnB,OAAO;SACP;QACD,QAAQ,EAAE,YAAY;KACtB,CAAC;GACI,IAAI,CAuIT;AAED,IAAI,CAAC,MAAM,EAAE,CAAC;AAEd,eAAe,IAAI,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport MediaRange from \"@ui5/webcomponents-base/dist/MediaRange.js\";\nimport browserScrollbarCSS from \"@ui5/webcomponents/dist/generated/themes/BrowserScrollbar.css.js\";\nimport PageBackgroundDesign from \"./types/PageBackgroundDesign.js\";\n\n// Template\nimport PageTemplate from \"./generated/templates/PageTemplate.lit.js\";\n\n// Styles\nimport PageCss from \"./generated/themes/Page.css.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-page</code> is a container component that holds one whole screen of an application.\n * The page has three distinct areas that can hold content - a header, content area and a footer.\n * <h3>Structure</h3>\n * <h4>Header</h4>\n * The top most area of the page is occupied by the header. The standard header includes a navigation button and a title.\n * <h4>Content</h4>\n * The content occupies the main part of the page. Only the content area is scrollable by default.\n * This can be prevented by setting <code>enableScrolling</code> to <code>false</code>.\n * <h4>Footer</h4>\n * The footer is optional and occupies the fixed bottom part of the page. Alternatively, the footer can be floating above the bottom part of the content.\n * This is enabled with the <code>floatingFooter</code> property.\n *\n * <b>Note:</b> <code>ui5-page</code> occipues the whole available space of its parent. In order to achieve the intended design you have to make sure\n * that there is enough space for the <code>ui5-page</code> to be rendered.\n * <b>Note:</b> In order for the <code>ui5-page</code> to be displayed, the parent element should have fixed height.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-page</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>content - Used to style the content section of the component</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents-fiori/dist/Page.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.Page\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-page\n * @since 1.0.0-rc.12\n * @public\n */\n@customElement({\n\ttag: \"ui5-page\",\n\tlanguageAware: true,\n\trenderer: litRender,\n\tstyles: [\n\t\tbrowserScrollbarCSS,\n\t\tPageCss,\n\t],\n\ttemplate: PageTemplate,\n})\nclass Page extends UI5Element {\n\t/**\n\t * Defines the background color of the <code>ui5-page</code>.\n\t * <br><br>\n\t * <b>Note:</b> When a ui5-list is placed inside the page, we recommend using “List” to ensure better color contrast.\n\t * <br><br>\n\t *\n\t * @type {sap.ui.webc.fiori.types.PageBackgroundDesign}\n\t * @name sap.ui.webc.fiori.Page.prototype.backgroundDesign\n\t * @defaultvalue \"Solid\"\n\t * @public\n\t */\n\t@property({ type: PageBackgroundDesign, defaultValue: PageBackgroundDesign.Solid })\n\tbackgroundDesign!: `${PageBackgroundDesign}`;\n\n\t/**\n\t * Disables vertical scrolling of page content.\n\t * If set to true, there will be no vertical scrolling at all.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.Page.prototype.disableScrolling\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tdisableScrolling!: boolean;\n\n\t/**\n\t * Defines if the footer should float over the content.\n\t * <br><br>\n\t * <b>Note:</b> When set to true the footer floats over the content with a slight offset from the bottom, otherwise it is fixed at the very bottom of the page.\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.Page.prototype.floatingFooter\n\t * @defaultvalue true\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tfloatingFooter!: boolean;\n\n\t/**\n\t * Defines the footer visibility.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.Page.prototype.hideFooter\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideFooter!: boolean;\n\n\t/**\n\t * Defines the current media query size.\n\t *\n\t * @type {string}\n\t * @private\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\tmediaRange!: string;\n\n\t/**\n\t * Defines the header HTML Element.\n\t *\n\t * @type {sap.ui.webc.fiori.IBar}\n\t * @name sap.ui.webc.fiori.Page.prototype.header\n\t * @slot\n\t * @public\n\t */\n\t@slot()\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the content HTML Element.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.fiori.Page.prototype.default\n\t * @slot content\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\tcontent!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the footer HTML Element.\n\t *\n\t * @type {sap.ui.webc.fiori.IBar}\n\t * @name sap.ui.webc.fiori.Page.prototype.footer\n\t * @slot\n\t * @public\n\t */\n\t@slot()\n\tfooter!: Array<HTMLElement>;\n\n\t_updateMediaRange: ResizeObserverCallback;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._updateMediaRange = this.updateMediaRange.bind(this);\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._updateMediaRange);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(this, this._updateMediaRange);\n\t}\n\n\tupdateMediaRange() {\n\t\tthis.mediaRange = MediaRange.getCurrentRange(MediaRange.RANGESETS.RANGE_4STEPS, this.getDomRef()!.offsetWidth);\n\t}\n\n\tget _contentBottom() {\n\t\treturn !this.floatingFooter && !this.hideFooter ? \"2.75rem\" : \"0\";\n\t}\n\n\tget _contentPaddingBottom() {\n\t\treturn this.floatingFooter && !this.hideFooter ? \"3.5rem\" : \"0\";\n\t}\n\n\tget _contentTop() {\n\t\treturn this.header.length ? \"2.75rem\" : \"0rem\";\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tcontent: {\n\t\t\t\t\"padding-bottom\": this.footer.length && this._contentPaddingBottom,\n\t\t\t\t\"bottom\": this.footer.length && this._contentBottom,\n\t\t\t\t\"top\": this._contentTop,\n\t\t\t},\n\t\t\tfooter: {},\n\t\t};\n\t}\n}\n\nPage.define();\n\nexport default Page;\n"]}
1
+ {"version":3,"file":"Page.js","sourceRoot":"","sources":["../src/Page.ts"],"names":[],"mappings":";;;;;;A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AAI,CAAC,MAAM,EAAE,CAAC;AAEd,eAAe,IAAI,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport MediaRange from \"@ui5/webcomponents-base/dist/MediaRange.js\";\nimport browserScrollbarCSS from \"@ui5/webcomponents/dist/generated/themes/BrowserScrollbar.css.js\";\nimport PageBackgroundDesign from \"./types/PageBackgroundDesign.js\";\n\n// Template\nimport PageTemplate from \"./generated/templates/PageTemplate.lit.js\";\n\n// Styles\nimport PageCss from \"./generated/themes/Page.css.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-page</code> is a container component that holds one whole screen of an application.\n * The page has three distinct areas that can hold content - a header, content area and a footer.\n * <h3>Structure</h3>\n * <h4>Header</h4>\n * The top most area of the page is occupied by the header. The standard header includes a navigation button and a title.\n * <h4>Content</h4>\n * The content occupies the main part of the page. Only the content area is scrollable by default.\n * This can be prevented by setting <code>enableScrolling</code> to <code>false</code>.\n * <h4>Footer</h4>\n * The footer is optional and occupies the fixed bottom part of the page. Alternatively, the footer can be floating above the bottom part of the content.\n * This is enabled with the <code>floatingFooter</code> property.\n *\n * <b>Note:</b> <code>ui5-page</code> occipues the whole available space of its parent. In order to achieve the intended design you have to make sure\n * that there is enough space for the <code>ui5-page</code> to be rendered.\n * <b>Note:</b> In order for the <code>ui5-page</code> to be displayed, the parent element should have fixed height.\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents-fiori/dist/Page.js\";</code>\n *\n * @constructor\n * @extends UI5Element\n * @since 1.0.0-rc.12\n * @public\n * @csspart content - Used to style the content section of the component\n */\n@customElement({\n\ttag: \"ui5-page\",\n\tlanguageAware: true,\n\trenderer: litRender,\n\tstyles: [\n\t\tbrowserScrollbarCSS,\n\t\tPageCss,\n\t],\n\ttemplate: PageTemplate,\n})\nclass Page extends UI5Element {\n\t/**\n\t * Defines the background color of the <code>ui5-page</code>.\n\t * <br><br>\n\t * <b>Note:</b> When a ui5-list is placed inside the page, we recommend using “List” to ensure better color contrast.\n\t * <br><br>\n\t *\n\t * @default \"Solid\"\n\t * @public\n\t */\n\t@property({ type: PageBackgroundDesign, defaultValue: PageBackgroundDesign.Solid })\n\tbackgroundDesign!: `${PageBackgroundDesign}`;\n\n\t/**\n\t * Disables vertical scrolling of page content.\n\t * If set to true, there will be no vertical scrolling at all.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tdisableScrolling!: boolean;\n\n\t/**\n\t * Defines if the footer should float over the content.\n\t * <br><br>\n\t * <b>Note:</b> When set to true the footer floats over the content with a slight offset from the bottom, otherwise it is fixed at the very bottom of the page.\n\t *\n\t * @default true\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tfloatingFooter!: boolean;\n\n\t/**\n\t * Defines the footer visibility.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideFooter!: boolean;\n\n\t/**\n\t * Defines the current media query size.\n\t *\n\t * @private\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\tmediaRange!: string;\n\n\t/**\n\t * Defines the header HTML Element.\n\t *\n\t * @public\n\t */\n\t@slot()\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the content HTML Element.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\tcontent!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the footer HTML Element.\n\t *\n\t * @public\n\t */\n\t@slot()\n\tfooter!: Array<HTMLElement>;\n\n\t_updateMediaRange: ResizeObserverCallback;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._updateMediaRange = this.updateMediaRange.bind(this);\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._updateMediaRange);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(this, this._updateMediaRange);\n\t}\n\n\tupdateMediaRange() {\n\t\tthis.mediaRange = MediaRange.getCurrentRange(MediaRange.RANGESETS.RANGE_4STEPS, this.getDomRef()!.offsetWidth);\n\t}\n\n\tget _contentBottom() {\n\t\treturn !this.floatingFooter && !this.hideFooter ? \"2.75rem\" : \"0\";\n\t}\n\n\tget _contentPaddingBottom() {\n\t\treturn this.floatingFooter && !this.hideFooter ? \"3.5rem\" : \"0\";\n\t}\n\n\tget _contentTop() {\n\t\treturn this.header.length ? \"2.75rem\" : \"0rem\";\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tcontent: {\n\t\t\t\t\"padding-bottom\": this.footer.length && this._contentPaddingBottom,\n\t\t\t\t\"bottom\": this.footer.length && this._contentBottom,\n\t\t\t\t\"top\": this._contentTop,\n\t\t\t},\n\t\t\tfooter: {},\n\t\t};\n\t}\n}\n\nPage.define();\n\nexport default Page;\n"]}
@@ -2,7 +2,7 @@ import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
2
2
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
3
3
  import ItemNavigation from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js";
4
4
  import type { ResizeObserverCallback } from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
5
- import type ProductSwitchItem from "./ProductSwitchItem.js";
5
+ import type IProductSwitchItem from "./ProductSwitchItem.js";
6
6
  /**
7
7
  * @class
8
8
  * <h3 class="comment-api-title">Overview</h3>
@@ -29,11 +29,7 @@ import type ProductSwitchItem from "./ProductSwitchItem.js";
29
29
  * <br>
30
30
  * <code>import "@ui5/webcomponents-fiori/dist/ProductSwitchItem.js";</code> (for <code>ui5-product-switch-item</code>)
31
31
  * @constructor
32
- * @author SAP SE
33
- * @alias sap.ui.webc.fiori.ProductSwitch
34
- * @extends sap.ui.webc.base.UI5Element
35
- * @tagname ui5-product-switch
36
- * @appenddocs sap.ui.webc.fiori.ProductSwitchItem
32
+ * @extends UI5Element
37
33
  * @public
38
34
  * @since 1.0.0-rc.5
39
35
  */
@@ -47,12 +43,9 @@ declare class ProductSwitch extends UI5Element {
47
43
  /**
48
44
  * Defines the items of the <code>ui5-product-switch</code>.
49
45
  *
50
- * @type {sap.ui.webc.fiori.IProductSwitchItem[]}
51
- * @name sap.ui.webc.fiori.ProductSwitch.prototype.default
52
- * @slot items
53
46
  * @public
54
47
  */
55
- items: Array<ProductSwitchItem>;
48
+ items: Array<IProductSwitchItem>;
56
49
  _itemNavigation: ItemNavigation;
57
50
  _currentIndex: number;
58
51
  _rowSize: number;
@@ -45,11 +45,7 @@ import ProductSwitchCss from "./generated/themes/ProductSwitch.css.js";
45
45
  * <br>
46
46
  * <code>import "@ui5/webcomponents-fiori/dist/ProductSwitchItem.js";</code> (for <code>ui5-product-switch-item</code>)
47
47
  * @constructor
48
- * @author SAP SE
49
- * @alias sap.ui.webc.fiori.ProductSwitch
50
- * @extends sap.ui.webc.base.UI5Element
51
- * @tagname ui5-product-switch
52
- * @appenddocs sap.ui.webc.fiori.ProductSwitchItem
48
+ * @extends UI5Element
53
49
  * @public
54
50
  * @since 1.0.0-rc.5
55
51
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSwitch.js","sourceRoot":"","sources":["../src/ProductSwitch.ts"],"names":[],"mappings":";;;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,cAAc,MAAM,yDAAyD,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;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,IAAY;QACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,UAAU,CAAC,CAAgB;QAC1B,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE;YACd,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE;YACnB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;SAClB;IACF,CAAC;IAED,WAAW,CAAC,CAAgB;QAC3B,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;QACtC,IAAI,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,QAAQ,GAAG,WAAW,EAAE,EAAE,6BAA6B;YACpF,CAAC,CAAC,eAAe,EAAE,CAAC;SACpB;IACF,CAAC;IAED,SAAS,CAAC,CAAgB;QACzB,IAAI,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,EAAE,6BAA6B;YAC1E,CAAC,CAAC,eAAe,EAAE,CAAC;SACpB;IACF,CAAC;CACD,CAAA;AAhGA;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;qDACT;AAWxB;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;4CACb;AA/B3B,aAAa;IANlB,aAAa,CAAC;QACd,GAAG,EAAE,oBAAoB;QACzB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,gBAAgB;QACxB,QAAQ,EAAE,qBAAqB;KAC/B,CAAC;GACI,aAAa,CAoHlB;AAED,aAAa,CAAC,MAAM,EAAE,CAAC;AAEvB,eAAe,aAAa,CAAC","sourcesContent":["import type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport ItemNavigation from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\nimport {\n\tisDown,\n\tisUp,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\n\nimport ProductSwitchTemplate from \"./generated/templates/ProductSwitchTemplate.lit.js\";\n\nimport {\n\tPRODUCT_SWITCH_CONTAINER_LABEL,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport ProductSwitchCss from \"./generated/themes/ProductSwitch.css.js\";\nimport type ProductSwitchItem from \"./ProductSwitchItem.js\";\n\n/**\n * @class\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-product-switch</code> is an SAP Fiori specific web component that is used in <code>ui5-shellbar</code>\n * and allows the user to easily switch between products.\n * <br><br>\n *\n * <h3>Keyboard Handling</h3>\n * The <code>ui5-product-switch</code> provides advanced keyboard handling.\n * When focused, the user can use the following keyboard\n * shortcuts in order to perform a navigation:\n * <br>\n * <ul>\n * <li>[TAB] - Move focus to the next interactive element after the <code>ui5-product-switch</code></li>\n * <li>[UP/DOWN] - Navigates up and down the items </li>\n * <li>[LEFT/RIGHT] - Navigates left and right the items</li>\n * </ul>\n * <br>\n * <br>\n *\n * <h3>ES6 Module Import</h3>\n * <code>import \"@ui5/webcomponents-fiori/dist/ProductSwitch.js\";</code>\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/ProductSwitchItem.js\";</code> (for <code>ui5-product-switch-item</code>)\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.ProductSwitch\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-product-switch\n * @appenddocs sap.ui.webc.fiori.ProductSwitchItem\n * @public\n * @since 1.0.0-rc.5\n */\n@customElement({\n\ttag: \"ui5-product-switch\",\n\trenderer: litRender,\n\tstyles: ProductSwitchCss,\n\ttemplate: ProductSwitchTemplate,\n})\nclass ProductSwitch extends UI5Element {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._currentIndex = 0;\n\t\tthis._rowSize = 4;\n\n\t\tthis._itemNavigation = new ItemNavigation(this, {\n\t\t\trowSize: this._rowSize,\n\t\t\tgetItemsCallback: () => this.items,\n\t\t});\n\n\t\tthis._handleResizeBound = this._handleResize.bind(this);\n\t}\n\n\t/**\n\t * Indicates how many columns are displayed.\n\t * @private\n\t */\n\t@property({ validator: Integer })\n\tdesktopColumns?: number;\n\n\t/**\n\t * Defines the items of the <code>ui5-product-switch</code>.\n\t *\n\t * @type {sap.ui.webc.fiori.IProductSwitchItem[]}\n\t * @name sap.ui.webc.fiori.ProductSwitch.prototype.default\n\t * @slot items\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<ProductSwitchItem>\n\n\t_itemNavigation: ItemNavigation;\n\t_currentIndex: number;\n\t_rowSize: number;\n\t_handleResizeBound: ResizeObserverCallback;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic get ROW_MIN_WIDTH() {\n\t\treturn {\n\t\t\tONE_COLUMN: 600,\n\t\t\tTHREE_COLUMN: 900,\n\t\t};\n\t}\n\n\tstatic async onDefine() {\n\t\tProductSwitch.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tget _ariaLabelText() {\n\t\treturn ProductSwitch.i18nBundle.getText(PRODUCT_SWITCH_CONTAINER_LABEL);\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(document.body, this._handleResizeBound);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(document.body, this._handleResizeBound);\n\t}\n\n\tonBeforeRendering() {\n\t\tthis.desktopColumns = this.items.length > 6 ? 4 : 3;\n\t}\n\n\t_handleResize() {\n\t\tconst documentWidth = document.body.clientWidth;\n\n\t\tif (documentWidth <= (this.constructor as typeof ProductSwitch).ROW_MIN_WIDTH.ONE_COLUMN) {\n\t\t\tthis._setRowSize(1);\n\t\t} else if (documentWidth <= (this.constructor as typeof ProductSwitch).ROW_MIN_WIDTH.THREE_COLUMN || this.items.length <= 6) {\n\t\t\tthis._setRowSize(3);\n\t\t} else {\n\t\t\tthis._setRowSize(4);\n\t\t}\n\t}\n\n\thandleProductSwitchItemClick(e: MouseEvent) {\n\t\tthis.items.forEach(item => { item.selected = false; });\n\t\t(e.target as ProductSwitchItem).selected = true;\n\t}\n\n\t_onfocusin(e: FocusEvent) {\n\t\tconst target = e.target as ProductSwitchItem;\n\n\t\tthis._itemNavigation.setCurrentItem(target);\n\t\tthis._currentIndex = this.items.indexOf(target);\n\t}\n\n\t_setRowSize(size: number) {\n\t\tthis._rowSize = size;\n\t\tthis._itemNavigation.setRowSize(size);\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isDown(e)) {\n\t\t\tthis._handleDown(e);\n\t\t} else if (isUp(e)) {\n\t\t\tthis._handleUp(e);\n\t\t}\n\t}\n\n\t_handleDown(e: KeyboardEvent) {\n\t\tconst itemsLength = this.items.length;\n\t\tif (this._currentIndex + this._rowSize > itemsLength) { // border reached, do nothing\n\t\t\te.stopPropagation();\n\t\t}\n\t}\n\n\t_handleUp(e: KeyboardEvent) {\n\t\tif (this._currentIndex - this._rowSize < 0) { // border reached, do nothing\n\t\t\te.stopPropagation();\n\t\t}\n\t}\n}\n\nProductSwitch.define();\n\nexport default ProductSwitch;\n"]}
1
+ {"version":3,"file":"ProductSwitch.js","sourceRoot":"","sources":["../src/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ACnB,MAAM,EAAE,gBAAgB;QACxB,QAAQ,EAAE,qBAAqB;KAC/B,CAAC;GACI,aAAa,CAiHlB;AAED,aAAa,CAAC,MAAM,EAAE,CAAC;AAEvB,eAAe,aAAa,CAAC","sourcesContent":["import type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport ItemNavigation from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\nimport {\n\tisDown,\n\tisUp,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\n\nimport ProductSwitchTemplate from \"./generated/templates/ProductSwitchTemplate.lit.js\";\n\nimport {\n\tPRODUCT_SWITCH_CONTAINER_LABEL,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport ProductSwitchCss from \"./generated/themes/ProductSwitch.css.js\";\nimport type IProductSwitchItem from \"./ProductSwitchItem.js\";\n\n/**\n * @class\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-product-switch</code> is an SAP Fiori specific web component that is used in <code>ui5-shellbar</code>\n * and allows the user to easily switch between products.\n * <br><br>\n *\n * <h3>Keyboard Handling</h3>\n * The <code>ui5-product-switch</code> provides advanced keyboard handling.\n * When focused, the user can use the following keyboard\n * shortcuts in order to perform a navigation:\n * <br>\n * <ul>\n * <li>[TAB] - Move focus to the next interactive element after the <code>ui5-product-switch</code></li>\n * <li>[UP/DOWN] - Navigates up and down the items </li>\n * <li>[LEFT/RIGHT] - Navigates left and right the items</li>\n * </ul>\n * <br>\n * <br>\n *\n * <h3>ES6 Module Import</h3>\n * <code>import \"@ui5/webcomponents-fiori/dist/ProductSwitch.js\";</code>\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/ProductSwitchItem.js\";</code> (for <code>ui5-product-switch-item</code>)\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.5\n */\n@customElement({\n\ttag: \"ui5-product-switch\",\n\trenderer: litRender,\n\tstyles: ProductSwitchCss,\n\ttemplate: ProductSwitchTemplate,\n})\nclass ProductSwitch extends UI5Element {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._currentIndex = 0;\n\t\tthis._rowSize = 4;\n\n\t\tthis._itemNavigation = new ItemNavigation(this, {\n\t\t\trowSize: this._rowSize,\n\t\t\tgetItemsCallback: () => this.items,\n\t\t});\n\n\t\tthis._handleResizeBound = this._handleResize.bind(this);\n\t}\n\n\t/**\n\t * Indicates how many columns are displayed.\n\t * @private\n\t */\n\t@property({ validator: Integer })\n\tdesktopColumns?: number;\n\n\t/**\n\t * Defines the items of the <code>ui5-product-switch</code>.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<IProductSwitchItem>\n\n\t_itemNavigation: ItemNavigation;\n\t_currentIndex: number;\n\t_rowSize: number;\n\t_handleResizeBound: ResizeObserverCallback;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic get ROW_MIN_WIDTH() {\n\t\treturn {\n\t\t\tONE_COLUMN: 600,\n\t\t\tTHREE_COLUMN: 900,\n\t\t};\n\t}\n\n\tstatic async onDefine() {\n\t\tProductSwitch.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tget _ariaLabelText() {\n\t\treturn ProductSwitch.i18nBundle.getText(PRODUCT_SWITCH_CONTAINER_LABEL);\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(document.body, this._handleResizeBound);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(document.body, this._handleResizeBound);\n\t}\n\n\tonBeforeRendering() {\n\t\tthis.desktopColumns = this.items.length > 6 ? 4 : 3;\n\t}\n\n\t_handleResize() {\n\t\tconst documentWidth = document.body.clientWidth;\n\n\t\tif (documentWidth <= (this.constructor as typeof ProductSwitch).ROW_MIN_WIDTH.ONE_COLUMN) {\n\t\t\tthis._setRowSize(1);\n\t\t} else if (documentWidth <= (this.constructor as typeof ProductSwitch).ROW_MIN_WIDTH.THREE_COLUMN || this.items.length <= 6) {\n\t\t\tthis._setRowSize(3);\n\t\t} else {\n\t\t\tthis._setRowSize(4);\n\t\t}\n\t}\n\n\thandleProductSwitchItemClick(e: MouseEvent) {\n\t\tthis.items.forEach(item => { item.selected = false; });\n\t\t(e.target as IProductSwitchItem).selected = true;\n\t}\n\n\t_onfocusin(e: FocusEvent) {\n\t\tconst target = e.target as IProductSwitchItem;\n\n\t\tthis._itemNavigation.setCurrentItem(target);\n\t\tthis._currentIndex = this.items.indexOf(target);\n\t}\n\n\t_setRowSize(size: number) {\n\t\tthis._rowSize = size;\n\t\tthis._itemNavigation.setRowSize(size);\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isDown(e)) {\n\t\t\tthis._handleDown(e);\n\t\t} else if (isUp(e)) {\n\t\t\tthis._handleUp(e);\n\t\t}\n\t}\n\n\t_handleDown(e: KeyboardEvent) {\n\t\tconst itemsLength = this.items.length;\n\t\tif (this._currentIndex + this._rowSize > itemsLength) { // border reached, do nothing\n\t\t\te.stopPropagation();\n\t\t}\n\t}\n\n\t_handleUp(e: KeyboardEvent) {\n\t\tif (this._currentIndex - this._rowSize < 0) { // border reached, do nothing\n\t\t\te.stopPropagation();\n\t\t}\n\t}\n}\n\nProductSwitch.define();\n\nexport default ProductSwitch;\n"]}
@@ -1,5 +1,5 @@
1
1
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
- import { ITabbable } from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js";
2
+ import type { IProductSwitchItem } from "./Interfaces.js";
3
3
  /**
4
4
  * @class
5
5
  * <h3 class="comment-api-title">Overview</h3>
@@ -22,30 +22,23 @@ import { ITabbable } from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.
22
22
  * <code>import "@ui5/webcomponents-fiori/dist/ProductSwitchItem.js";</code>
23
23
  *
24
24
  * @constructor
25
- * @author SAP SE
26
- * @alias sap.ui.webc.fiori.ProductSwitchItem
27
- * @extends sap.ui.webc.base.UI5Element
28
- * @tagname ui5-product-switch-item
25
+ * @extends UI5Element
29
26
  * @public
30
- * @implements sap.ui.webc.fiori.IProductSwitchItem
27
+ * @implements {IProductSwitchItem}
31
28
  * @since 1.0.0-rc.5
32
29
  */
33
- declare class ProductSwitchItem extends UI5Element implements ITabbable {
30
+ declare class ProductSwitchItem extends UI5Element implements IProductSwitchItem {
34
31
  constructor();
35
32
  /**
36
33
  * Defines the title of the component.
37
- * @type {string}
38
- * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.titleText
39
- * @defaultvalue ""
34
+ * @default ""
40
35
  * @since 1.0.0-rc.15
41
36
  * @public
42
37
  */
43
38
  titleText: string;
44
39
  /**
45
40
  * Defines the subtitle of the component.
46
- * @type {string}
47
- * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.subtitleText
48
- * @defaultvalue ""
41
+ * @default ""
49
42
  * @since 1.0.0-rc.15
50
43
  * @public
51
44
  */
@@ -59,9 +52,7 @@ declare class ProductSwitchItem extends UI5Element implements ITabbable {
59
52
  *
60
53
  * See all the available icons in the <ui5-link target="_blank" href="https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html">Icon Explorer</ui5-link>.
61
54
  *
62
- * @type {string}
63
- * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.icon
64
- * @defaultvalue ""
55
+ * @default ""
65
56
  * @public
66
57
  */
67
58
  icon: string;
@@ -76,17 +67,13 @@ declare class ProductSwitchItem extends UI5Element implements ITabbable {
76
67
  * <li><code>_parent</code></li>
77
68
  * <li><code>_search</code></li>
78
69
  * </ul>
79
- *
80
- * @type {string}
81
- * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.target
70
+ * @default "_self"
82
71
  * @public
83
72
  */
84
73
  target: string;
85
74
  /**
86
75
  * Defines the component target URI. Supports standard hyperlink behavior.
87
- * @type {string}
88
- * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.targetSrc
89
- * @defaultvalue ""
76
+ * @default ""
90
77
  * @public
91
78
  */
92
79
  targetSrc: string;
@@ -8,7 +8,6 @@ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
8
8
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
9
9
  import { isSpace, isEnter, isSpaceShift } from "@ui5/webcomponents-base/dist/Keys.js";
10
10
  import Icon from "@ui5/webcomponents/dist/Icon.js";
11
- import "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js";
12
11
  import property from "@ui5/webcomponents-base/dist/decorators/property.js";
13
12
  import event from "@ui5/webcomponents-base/dist/decorators/event.js";
14
13
  import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
@@ -37,12 +36,9 @@ import ProductSwitchItemCss from "./generated/themes/ProductSwitchItem.css.js";
37
36
  * <code>import "@ui5/webcomponents-fiori/dist/ProductSwitchItem.js";</code>
38
37
  *
39
38
  * @constructor
40
- * @author SAP SE
41
- * @alias sap.ui.webc.fiori.ProductSwitchItem
42
- * @extends sap.ui.webc.base.UI5Element
43
- * @tagname ui5-product-switch-item
39
+ * @extends UI5Element
44
40
  * @public
45
- * @implements sap.ui.webc.fiori.IProductSwitchItem
41
+ * @implements {IProductSwitchItem}
46
42
  * @since 1.0.0-rc.5
47
43
  */
48
44
  let ProductSwitchItem = class ProductSwitchItem extends UI5Element {
@@ -136,7 +132,6 @@ ProductSwitchItem = __decorate([
136
132
  * Fired when the <code>ui5-product-switch-item</code> is activated either with a
137
133
  * click/tap or by using the Enter or Space key.
138
134
  *
139
- * @event sap.ui.webc.fiori.ProductSwitchItem#click
140
135
  * @public
141
136
  */
142
137
  ,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSwitchItem.js","sourceRoot":"","sources":["../src/ProductSwitchItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAA0B,yDAAyD,CAAC;AACpF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,yBAAyB,MAAM,wDAAwD,CAAC;AAE/F,SAAS;AACT,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAiBH,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IACzC;QACC,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,WAAW,GAAG,GAAG,EAAE;YACvB,IAAI,IAAI,CAAC,MAAM,EAAE;gBAChB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;aACpB;QACF,CAAC,CAAC;IACH,CAAC;IAmGD,UAAU;QACT,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACxD,CAAC;IAED,SAAS;QACR,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC3D,CAAC;IAED,YAAY;QACX,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACp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AAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iDACH;AAOjB;IADP,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kDACF;AAO1B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;mDACT;AAMnB;IADC,QAAQ,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;oDACjC;AAxGd,iBAAiB;IAhBtB,aAAa,CAAC;QACd,GAAG,EAAE,yBAAyB;QAC9B,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,oBAAoB;QAC5B,QAAQ,EAAE,yBAAyB;QACnC,YAAY,EAAE,CAAC,IAAI,CAAC;KACpB,CAAC;IACF;;;;;;OAMG;;IACF,KAAK,CAAC,OAAO,CAAC;IACd,KAAK,CAAC,UAAU,CAAC;GACZ,iBAAiB,CAiKtB;AAED,iBAAiB,CAAC,MAAM,EAAE,CAAC;AAE3B,eAAe,iBAAiB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport { isSpace, isEnter, isSpaceShift } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport { ITabbable } from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport ProductSwitchItemTemplate from \"./generated/templates/ProductSwitchItemTemplate.lit.js\";\n\n// Styles\nimport ProductSwitchItemCss from \"./generated/themes/ProductSwitchItem.css.js\";\n\n/**\n * @class\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-product-switch-item</code> web component represents the items displayed in the\n * <code>ui5-product-switch</code> web component.\n * <br><br>\n * <b>Note:</b> <code>ui5-product-switch-item</code> is not supported when used outside of <code>ui5-product-switch</code>.\n * <br><br>\n *\n * <h3>Keyboard Handling</h3>\n * The <code>ui5-product-switch</code> provides advanced keyboard handling.\n * When focused, the user can use the following keyboard\n * shortcuts in order to perform a navigation:\n * <br>\n * <ul>\n * <li>[SPACE/ENTER/RETURN] - Trigger <code>ui5-click</code> event</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n * <code>import \"@ui5/webcomponents-fiori/dist/ProductSwitchItem.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.ProductSwitchItem\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-product-switch-item\n * @public\n * @implements sap.ui.webc.fiori.IProductSwitchItem\n * @since 1.0.0-rc.5\n */\n@customElement({\n\ttag: \"ui5-product-switch-item\",\n\trenderer: litRender,\n\tstyles: ProductSwitchItemCss,\n\ttemplate: ProductSwitchItemTemplate,\n\tdependencies: [Icon],\n})\n/**\n * Fired when the <code>ui5-product-switch-item</code> is activated either with a\n * click/tap or by using the Enter or Space key.\n *\n * @event sap.ui.webc.fiori.ProductSwitchItem#click\n * @public\n */\n@event(\"click\")\n@event(\"_focused\")\nclass ProductSwitchItem extends UI5Element implements ITabbable {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._deactivate = () => {\n\t\t\tif (this.active) {\n\t\t\t\tthis.active = false;\n\t\t\t}\n\t\t};\n\t}\n\n\t/**\n\t * Defines the title of the component.\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.titleText\n\t * @defaultvalue \"\"\n\t * @since 1.0.0-rc.15\n\t * @public\n\t */\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t * Defines the subtitle of the component.\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.subtitleText\n\t * @defaultvalue \"\"\n\t * @since 1.0.0-rc.15\n\t * @public\n\t */\n\t@property()\n\tsubtitleText!: string;\n\n\t/**\n\t * Defines the icon to be displayed as a graphical element within the component.\n\t * <br><br>\n\t * Example:\n\t * <br>\n\t * <pre>ui5-product-switch-item icon=\"palette\"</pre>\n\t *\n\t * See all the available icons in the <ui5-link target=\"_blank\" href=\"https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html\">Icon Explorer</ui5-link>.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.icon\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ticon!: string;\n\n\t/**\n\t * Defines a target where the <code>targetSrc</code> content must be open.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>_self</code></li>\n\t * <li><code>_top</code></li>\n\t * <li><code>_blank</code></li>\n\t * <li><code>_parent</code></li>\n\t * <li><code>_search</code></li>\n\t * </ul>\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.target\n\t * @public\n\t */\n\t@property({ defaultValue: \"_self\" })\n\ttarget!: string;\n\n\t/**\n\t * Defines the component target URI. Supports standard hyperlink behavior.\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.ProductSwitchItem.prototype.targetSrc\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ttargetSrc!: string;\n\n\t/**\n\t * Used to switch the active state (pressed or not) of the component.\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tprivate active!: boolean;\n\n\t/**\n\t * Indicates whether the element is focused.\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tprivate focused!: boolean;\n\n\t/**\n\t * Used to set the selected state of the component. Only one selected in a sequence.\n\t * <b>Note:</b> Set by the <code>ProductSwitch</code>\n\t */\n\t@property({ type: Boolean })\n\tselected!: boolean;\n\n\t/**\n\t * Defines the component tabindex.\n\t */\n\t@property({ defaultValue: \"-1\", noAttribute: true })\n\t_tabIndex!: string;\n\n\t_deactivate: () => void;\n\n\tonEnterDOM() {\n\t\tdocument.addEventListener(\"mouseup\", this._deactivate);\n\t}\n\n\tonExitDOM() {\n\t\tdocument.removeEventListener(\"mouseup\", this._deactivate);\n\t}\n\n\t_onmousedown() {\n\t\tthis.active = true;\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isSpace(e) || isEnter(e)) {\n\t\t\tthis.active = true;\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis._fireItemClick();\n\t\t}\n\t}\n\n\t_onkeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e) || isEnter(e)) {\n\t\t\tthis.active = false;\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\tif (isSpaceShift(e)) {\n\t\t\t\te.stopPropagation();\n\t\t\t}\n\t\t\tthis._fireItemClick();\n\t\t}\n\t}\n\n\t_onfocusout() {\n\t\tthis.active = false;\n\t\tthis.focused = false;\n\t}\n\n\t_onfocusin(e: FocusEvent) {\n\t\tthis.focused = true;\n\n\t\tthis.fireEvent(\"_focused\", e);\n\t}\n\n\t_fireItemClick() {\n\t\tthis.fireEvent(\"click\", { item: this });\n\t}\n}\n\nProductSwitchItem.define();\n\nexport default ProductSwitchItem;\n"]}
1
+ {"version":3,"file":"ProductSwitchItem.js","sourceRoot":"","sources":["../src/ProductSwitchItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,yBAAyB,MAAM,wDAAwD,CAAC;AAE/F,SAAS;AACT,OAAO,oBAA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\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport { isSpace, isEnter, isSpaceShift } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport ProductSwitchItemTemplate from \"./generated/templates/ProductSwitchItemTemplate.lit.js\";\n\n// Styles\nimport ProductSwitchItemCss from \"./generated/themes/ProductSwitchItem.css.js\";\nimport type { IProductSwitchItem } from \"./Interfaces.js\";\n\n/**\n * @class\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-product-switch-item</code> web component represents the items displayed in the\n * <code>ui5-product-switch</code> web component.\n * <br><br>\n * <b>Note:</b> <code>ui5-product-switch-item</code> is not supported when used outside of <code>ui5-product-switch</code>.\n * <br><br>\n *\n * <h3>Keyboard Handling</h3>\n * The <code>ui5-product-switch</code> provides advanced keyboard handling.\n * When focused, the user can use the following keyboard\n * shortcuts in order to perform a navigation:\n * <br>\n * <ul>\n * <li>[SPACE/ENTER/RETURN] - Trigger <code>ui5-click</code> event</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n * <code>import \"@ui5/webcomponents-fiori/dist/ProductSwitchItem.js\";</code>\n *\n * @constructor\n * @extends UI5Element\n * @public\n * @implements {IProductSwitchItem}\n * @since 1.0.0-rc.5\n */\n@customElement({\n\ttag: \"ui5-product-switch-item\",\n\trenderer: litRender,\n\tstyles: ProductSwitchItemCss,\n\ttemplate: ProductSwitchItemTemplate,\n\tdependencies: [Icon],\n})\n/**\n * Fired when the <code>ui5-product-switch-item</code> is activated either with a\n * click/tap or by using the Enter or Space key.\n *\n * @public\n */\n@event(\"click\")\n@event(\"_focused\")\nclass ProductSwitchItem extends UI5Element implements IProductSwitchItem {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._deactivate = () => {\n\t\t\tif (this.active) {\n\t\t\t\tthis.active = false;\n\t\t\t}\n\t\t};\n\t}\n\n\t/**\n\t * Defines the title of the component.\n\t * @default \"\"\n\t * @since 1.0.0-rc.15\n\t * @public\n\t */\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t * Defines the subtitle of the component.\n\t * @default \"\"\n\t * @since 1.0.0-rc.15\n\t * @public\n\t */\n\t@property()\n\tsubtitleText!: string;\n\n\t/**\n\t * Defines the icon to be displayed as a graphical element within the component.\n\t * <br><br>\n\t * Example:\n\t * <br>\n\t * <pre>ui5-product-switch-item icon=\"palette\"</pre>\n\t *\n\t * See all the available icons in the <ui5-link target=\"_blank\" href=\"https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html\">Icon Explorer</ui5-link>.\n\t *\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\ticon!: string;\n\n\t/**\n\t * Defines a target where the <code>targetSrc</code> content must be open.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>_self</code></li>\n\t * <li><code>_top</code></li>\n\t * <li><code>_blank</code></li>\n\t * <li><code>_parent</code></li>\n\t * <li><code>_search</code></li>\n\t * </ul>\n\t * @default \"_self\"\n\t * @public\n\t */\n\t@property({ defaultValue: \"_self\" })\n\ttarget!: string;\n\n\t/**\n\t * Defines the component target URI. Supports standard hyperlink behavior.\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\ttargetSrc!: string;\n\n\t/**\n\t * Used to switch the active state (pressed or not) of the component.\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tprivate active!: boolean;\n\n\t/**\n\t * Indicates whether the element is focused.\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tprivate focused!: boolean;\n\n\t/**\n\t * Used to set the selected state of the component. Only one selected in a sequence.\n\t * <b>Note:</b> Set by the <code>ProductSwitch</code>\n\t */\n\t@property({ type: Boolean })\n\tselected!: boolean;\n\n\t/**\n\t * Defines the component tabindex.\n\t */\n\t@property({ defaultValue: \"-1\", noAttribute: true })\n\t_tabIndex!: string;\n\n\t_deactivate: () => void;\n\n\tonEnterDOM() {\n\t\tdocument.addEventListener(\"mouseup\", this._deactivate);\n\t}\n\n\tonExitDOM() {\n\t\tdocument.removeEventListener(\"mouseup\", this._deactivate);\n\t}\n\n\t_onmousedown() {\n\t\tthis.active = true;\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isSpace(e) || isEnter(e)) {\n\t\t\tthis.active = true;\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis._fireItemClick();\n\t\t}\n\t}\n\n\t_onkeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e) || isEnter(e)) {\n\t\t\tthis.active = false;\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\tif (isSpaceShift(e)) {\n\t\t\t\te.stopPropagation();\n\t\t\t}\n\t\t\tthis._fireItemClick();\n\t\t}\n\t}\n\n\t_onfocusout() {\n\t\tthis.active = false;\n\t\tthis.focused = false;\n\t}\n\n\t_onfocusin(e: FocusEvent) {\n\t\tthis.focused = true;\n\n\t\tthis.fireEvent(\"_focused\", e);\n\t}\n\n\t_fireItemClick() {\n\t\tthis.fireEvent(\"click\", { item: this });\n\t}\n}\n\nProductSwitchItem.define();\n\nexport default ProductSwitchItem;\n"]}
@@ -2,14 +2,15 @@ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
2
  import type { ListSelectionChangeEventDetail } from "@ui5/webcomponents/dist/List.js";
3
3
  import type { ResizeObserverCallback } from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
4
4
  import Popover from "@ui5/webcomponents/dist/Popover.js";
5
- import Button from "@ui5/webcomponents/dist/Button.js";
6
5
  import type Input from "@ui5/webcomponents/dist/Input.js";
6
+ import type { IButton } from "@ui5/webcomponents/dist/Interfaces.js";
7
7
  import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
8
8
  import "@ui5/webcomponents-icons/dist/search.js";
9
9
  import "@ui5/webcomponents-icons/dist/bell.js";
10
10
  import "@ui5/webcomponents-icons/dist/overflow.js";
11
11
  import "@ui5/webcomponents-icons/dist/grid.js";
12
12
  import type { Timeout, ClassMap } from "@ui5/webcomponents-base/dist/types.js";
13
+ import type ListItemBase from "@ui5/webcomponents/dist/ListItemBase.js";
13
14
  import type ShellBarItem from "./ShellBarItem.js";
14
15
  type AccessibilityRoles = {
15
16
  logoRole?: string;
@@ -89,15 +90,6 @@ interface IShelBarItemInfo {
89
90
  * <li>product-switch</li>
90
91
  * </ul>
91
92
  *
92
- * <h3>CSS Shadow Parts</h3>
93
- *
94
- * <ui5-link target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.
95
- * <br>
96
- * The <code>ui5-shellbar</code> exposes the following CSS Shadow Parts:
97
- * <ul>
98
- * <li>root - Used to style the outermost wrapper of the <code>ui5-shellbar</code></li>
99
- * </ul>
100
- *
101
93
  * <h3>Keyboard Handling</h3>
102
94
  *
103
95
  * <h4>Fast Navigation</h4>
@@ -109,12 +101,10 @@ interface IShelBarItemInfo {
109
101
  * <h3>ES6 Module Import</h3>
110
102
  * <code>import "@ui5/webcomponents-fiori/dist/ShellBar";</code>
111
103
  *
104
+ * @csspart root - Used to style the outermost wrapper of the <code>ui5-shellbar</code>
105
+ *
112
106
  * @constructor
113
- * @author SAP SE
114
- * @alias sap.ui.webc.fiori.ShellBar
115
- * @extends sap.ui.webc.base.UI5Element
116
- * @tagname ui5-shellbar
117
- * @appenddocs sap.ui.webc.fiori.ShellBarItem
107
+ * @extends UI5Element
118
108
  * @public
119
109
  * @since 0.8.0
120
110
  */
@@ -123,9 +113,7 @@ declare class ShellBar extends UI5Element {
123
113
  * Defines the <code>primaryTitle</code>.
124
114
  * <br><br>
125
115
  * <b>Note:</b> The <code>primaryTitle</code> would be hidden on S screen size (less than approx. 700px).
126
- * @type {string}
127
- * @defaultvalue ""
128
- * @name sap.ui.webc.fiori.ShellBar.prototype.primaryTitle
116
+ * @default ""
129
117
  * @public
130
118
  */
131
119
  primaryTitle: string;
@@ -133,34 +121,26 @@ declare class ShellBar extends UI5Element {
133
121
  * Defines the <code>secondaryTitle</code>.
134
122
  * <br><br>
135
123
  * <b>Note:</b> The <code>secondaryTitle</code> would be hidden on S and M screen sizes (less than approx. 1300px).
136
- * @type {string}
137
- * @defaultvalue ""
138
- * @name sap.ui.webc.fiori.ShellBar.prototype.secondaryTitle
124
+ * @default ""
139
125
  * @public
140
126
  */
141
127
  secondaryTitle: string;
142
128
  /**
143
129
  * Defines the <code>notificationsCount</code>,
144
130
  * displayed in the notification icon top-right corner.
145
- * @type {string}
146
- * @defaultvalue ""
147
- * @name sap.ui.webc.fiori.ShellBar.prototype.notificationsCount
131
+ * @default ""
148
132
  * @public
149
133
  */
150
134
  notificationsCount: string;
151
135
  /**
152
136
  * Defines, if the notification icon would be displayed.
153
- * @type {boolean}
154
- * @defaultvalue false
155
- * @name sap.ui.webc.fiori.ShellBar.prototype.showNotifications
137
+ * @default false
156
138
  * @public
157
139
  */
158
140
  showNotifications: boolean;
159
141
  /**
160
142
  * Defines, if the product switch icon would be displayed.
161
- * @type {boolean}
162
- * @defaultvalue false
163
- * @name sap.ui.webc.fiori.ShellBar.prototype.showProductSwitch
143
+ * @default false
164
144
  * @public
165
145
  */
166
146
  showProductSwitch: boolean;
@@ -168,18 +148,14 @@ declare class ShellBar extends UI5Element {
168
148
  * Defines, if the product CoPilot icon would be displayed.
169
149
  * <br><b>Note:</b> By default the co-pilot is displayed as static SVG.
170
150
  * If you need an animated co-pilot, you can import the <code>"@ui5/webcomponents-fiori/dist/features/CoPilotAnimation.js"</code> module as add-on feature.
171
- * @type {boolean}
172
- * @defaultvalue false
173
- * @name sap.ui.webc.fiori.ShellBar.prototype.showCoPilot
151
+ * @default false
174
152
  * @public
175
153
  */
176
154
  showCoPilot: boolean;
177
155
  /**
178
156
  * Defines, if the Search Field would be displayed when there is a valid <code>searchField</code> slot.
179
157
  * <br><b>Note:</b> By default the Search Field is not displayed.
180
- * @type {boolean}
181
- * @defaultvalue false
182
- * @name sap.ui.webc.fiori.ShellBar.prototype.showSearchField
158
+ * @default false
183
159
  * @public
184
160
  */
185
161
  showSearchField: boolean;
@@ -188,9 +164,7 @@ declare class ShellBar extends UI5Element {
188
164
  *
189
165
  * It supports the following fields:
190
166
  * - <code>logoRole</code>: the accessibility role for the <code>logo</code>
191
- *
192
- * @type {object}
193
- * @name sap.ui.webc.fiori.ShellBar.prototype.accessibilityRoles
167
+ * @default {}
194
168
  * @public
195
169
  * @since 1.6.0
196
170
  */
@@ -203,8 +177,7 @@ declare class ShellBar extends UI5Element {
203
177
  * - <code>profileButtonTitle</code>: defines the tooltip for the profile button
204
178
  * - <code>logoTitle</code>: defines the tooltip for the logo
205
179
  *
206
- * @type {object}
207
- * @name sap.ui.webc.fiori.ShellBar.prototype.accessibilityTexts
180
+ * @default {}
208
181
  * @public
209
182
  * @since 1.1.0
210
183
  */
@@ -232,8 +205,7 @@ declare class ShellBar extends UI5Element {
232
205
  * </ul>
233
206
  * </li>
234
207
  * </ul>
235
- * @type {object}
236
- * @name sap.ui.webc.fiori.ShellBar.prototype.accessibilityAttributes
208
+ * @default {}
237
209
  * @public
238
210
  * @since 1.10.0
239
211
  */
@@ -261,9 +233,6 @@ declare class ShellBar extends UI5Element {
261
233
  * <b>Note:</b>
262
234
  * You can use the &nbsp;&lt;ui5-shellbar-item>&lt;/ui5-shellbar-item>.
263
235
  *
264
- * @type {sap.ui.webc.fiori.IShellBarItem[]}
265
- * @name sap.ui.webc.fiori.ShellBar.prototype.default
266
- * @slot items
267
236
  * @public
268
237
  */
269
238
  items: Array<ShellBarItem>;
@@ -273,9 +242,6 @@ declare class ShellBar extends UI5Element {
273
242
  *
274
243
  * Note: We recommend not using the <code>size</code> attribute of <code>ui5-avatar</code> because
275
244
  * it should have specific size by design in the context of <code>ui5-shellbar</code> profile.
276
- * @type {sap.ui.webc.main.IAvatar}
277
- * @name sap.ui.webc.fiori.ShellBar.prototype.profile
278
- * @slot profile
279
245
  * @since 1.0.0-rc.6
280
246
  * @public
281
247
  */
@@ -283,9 +249,6 @@ declare class ShellBar extends UI5Element {
283
249
  /**
284
250
  * Defines the logo of the <code>ui5-shellbar</code>.
285
251
  * For example, you can use <code>ui5-avatar</code> or <code>img</code> elements as logo.
286
- * @type {sap.ui.webc.main.IAvatar}
287
- * @name sap.ui.webc.fiori.ShellBar.prototype.logo
288
- * @slot
289
252
  * @since 1.0.0-rc.8
290
253
  * @public
291
254
  */
@@ -296,19 +259,13 @@ declare class ShellBar extends UI5Element {
296
259
  * <b>Note:</b>
297
260
  * You can use the &nbsp;&lt;ui5-li>&lt;/ui5-li> and its ancestors.
298
261
  *
299
- * @type {sap.ui.webc.main.IListItem[]}
300
- * @name sap.ui.webc.fiori.ShellBar.prototype.menuItems
301
- * @slot
302
262
  * @since 0.10
303
263
  * @public
304
264
  */
305
- menuItems: Array<HTMLElement>;
265
+ menuItems: Array<ListItemBase>;
306
266
  /**
307
267
  * Defines the <code>ui5-input</code>, that will be used as a search field.
308
268
  *
309
- * @type {sap.ui.webc.main.IInput}
310
- * @name sap.ui.webc.fiori.ShellBar.prototype.searchField
311
- * @slot
312
269
  * @public
313
270
  */
314
271
  searchField: Array<Input>;
@@ -317,12 +274,9 @@ declare class ShellBar extends UI5Element {
317
274
  * We encourage this slot to be used for a back or home button.
318
275
  * It gets overstyled to match ShellBar's styling.
319
276
  *
320
- * @type {sap.ui.webc.main.IButton}
321
- * @name sap.ui.webc.fiori.ShellBar.prototype.startButton
322
- * @slot
323
277
  * @public
324
278
  */
325
- startButton: Array<Button>;
279
+ startButton: Array<IButton>;
326
280
  static i18nBundle: I18nBundle;
327
281
  overflowPopover?: Popover | null;
328
282
  menuPopover?: Popover | null;
@@ -356,8 +310,6 @@ declare class ShellBar extends UI5Element {
356
310
  * Closes the overflow area.
357
311
  * Useful to manually close the overflow after having suppressed automatic closing with preventDefault() of ShellbarItem's press event
358
312
  * @public
359
- * @method
360
- * @name sap.ui.webc.fiori.ShellBar#closeOverflow
361
313
  */
362
314
  closeOverflow(): void;
363
315
  _handleBarBreakpoints(): string;
@@ -377,61 +329,49 @@ declare class ShellBar extends UI5Element {
377
329
  _handleProductSwitchPress(e: MouseEvent): void;
378
330
  /**
379
331
  * Returns the <code>logo</code> DOM ref.
380
- * @type {HTMLElement}
381
- * @name sap.ui.webc.fiori.ShellBar.prototype.logoDomRef
382
332
  * @public
383
- * @readonly
333
+ * @default null
384
334
  * @since 1.0.0-rc.16
385
335
  */
386
- get logoDomRef(): Button | null;
336
+ get logoDomRef(): HTMLElement | null;
387
337
  /**
388
338
  * Returns the <code>copilot</code> DOM ref.
389
- * @type {HTMLElement}
390
- * @name sap.ui.webc.fiori.ShellBar.prototype.copilotDomRef
391
339
  * @public
392
- * @readonly
340
+ * @default null
393
341
  * @since 1.0.0-rc.16
394
342
  */
395
- get copilotDomRef(): Button | null;
343
+ get copilotDomRef(): HTMLElement | null;
396
344
  /**
397
345
  * Returns the <code>notifications</code> icon DOM ref.
398
- * @type {HTMLElement}
399
- * @name sap.ui.webc.fiori.ShellBar.prototype.notificationsDomRef
400
346
  * @public
401
- * @readonly
347
+ * @default null
402
348
  * @since 1.0.0-rc.16
403
349
  */
404
- get notificationsDomRef(): Button | null;
350
+ get notificationsDomRef(): HTMLElement | null;
405
351
  /**
406
352
  * Returns the <code>overflow</code> icon DOM ref.
407
- * @type {HTMLElement}
408
- * @name sap.ui.webc.fiori.ShellBar.prototype.overflowDomRef
409
353
  * @public
410
- * @readonly
354
+ * @default null
411
355
  * @since 1.0.0-rc.16
412
356
  */
413
- get overflowDomRef(): Button | null;
357
+ get overflowDomRef(): HTMLElement | null;
414
358
  /**
415
359
  * Returns the <code>profile</code> icon DOM ref.
416
- * @type {HTMLElement}
417
- * @name sap.ui.webc.fiori.ShellBar.prototype.profileDomRef
418
360
  * @public
419
- * @readonly
361
+ * @default null
420
362
  * @since 1.0.0-rc.16
421
363
  */
422
- get profileDomRef(): Button | null;
364
+ get profileDomRef(): HTMLElement | null;
423
365
  /**
424
366
  * Returns the <code>product-switch</code> icon DOM ref.
425
- * @type {HTMLElement}
426
- * @name sap.ui.webc.fiori.ShellBar.prototype.productSwitchDomRef
427
367
  * @public
428
- * @readonly
368
+ * @default null
429
369
  * @since 1.0.0-rc.16
430
370
  */
431
- get productSwitchDomRef(): Button | null;
371
+ get productSwitchDomRef(): HTMLElement | null;
432
372
  /**
433
373
  * Returns all items that will be placed in the right of the bar as icons / dom elements.
434
- * @param {boolean} showOverflowButton Determines if overflow button should be visible (not overflowing)
374
+ * @param showOverflowButton Determines if overflow button should be visible (not overflowing)
435
375
  */
436
376
  _getAllItems(showOverflowButton: boolean): IShelBarItemInfo[];
437
377
  _updateItemsInfo(newItems: Array<IShelBarItemInfo>): void;