@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
@@ -1 +1 @@
1
- {"version":3,"file":"TimelineItem.js","sourceRoot":"","sources":["../src/TimelineItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAE7E,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,oBAAoB,MAAM,mDAAmD,CAAC;AACrF,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,SAAS;AACT,OAAO,eAAe,MAAM,wCAAwC,CAAC;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,EAAE;gDACS;AA/Ef,YAAY;IArBjB,aAAa,CAAC;QACd,GAAG,EAAE,mBAAmB;QACxB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,eAAe;QACvB,QAAQ,EAAE,oBAAoB;QAC9B,YAAY,EAAE;YACb,IAAI;YACJ,IAAI;SACJ;KACD,CAAC;IACF;;;;;;;;;OASG;;IACF,KAAK,CAAC,YAAY,CAAC;GACd,YAAY,CAwHjB;AAED,YAAY,CAAC,MAAM,EAAE,CAAC;AAEtB,eAAe,YAAY,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport type { ITabbable } from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport Link from \"@ui5/webcomponents/dist/Link.js\";\nimport TimelineItemTemplate from \"./generated/templates/TimelineItemTemplate.lit.js\";\nimport TimelineLayout from \"./types/TimelineLayout.js\";\n// Styles\nimport TimelineItemCss from \"./generated/themes/TimelineItem.css.js\";\n\nconst SHORT_LINE_WIDTH = \"ShortLineWidth\";\nconst LARGE_LINE_WIDTH = \"LargeLineWidth\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * An entry posted on the timeline.\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.TimelineItem\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-timeline-item\n * @implements sap.ui.webc.fiori.ITimelineItem\n * @public\n */\n@customElement({\n\ttag: \"ui5-timeline-item\",\n\trenderer: litRender,\n\tstyles: TimelineItemCss,\n\ttemplate: TimelineItemTemplate,\n\tdependencies: [\n\t\tIcon,\n\t\tLink,\n\t],\n})\n/**\n * Fired when the item name is pressed either with a\n * click/tap or by using the Enter or Space key.\n * <br><br>\n * <b>Note:</b> The event will not be fired if the <code>name-clickable</code>\n * attribute is not set.\n *\n * @event sap.ui.webc.fiori.TimelineItem#name-click\n * @public\n */\n@event(\"name-click\")\nclass TimelineItem extends UI5Element implements ITabbable {\n\t/**\n\t * Defines the icon to be displayed as graphical element within the <code>ui5-timeline-item</code>.\n\t * SAP-icons font provides numerous options.\n\t * <br><br>\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.TimelineItem.prototype.icon\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ticon!: string;\n\n\t/**\n\t * Defines the name of the item, displayed before the <code>title-text</code>.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.TimelineItem.prototype.name\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\tname!: string;\n\n\t/**\n\t * Defines if the <code>name</code> is clickable.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.TimelineItem.prototype.nameClickable\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tnameClickable!: boolean;\n\n\t/**\n\t * Defines the title text of the component.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.TimelineItem.prototype.titleText\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t * Defines the subtitle text of the component.\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.TimelineItem.prototype.subtitleText\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\tsubtitleText!: string;\n\n\t@property({ defaultValue: \"-1\", noAttribute: true })\n\t_tabIndex!: string;\n\n\t/**\n\t * Defines the items orientation.\n\t *\n\t * @type {sap.ui.webc.fiori.types.TimelineLayout}\n\t * @defaultvalue \"Vertical\"\n\t * @private\n\t */\n\t@property({ type: TimelineLayout, defaultValue: TimelineLayout.Vertical })\n\tlayout!: `${TimelineLayout}`;\n\n\t/**\n\t * Defines the indicator line width.\n\t *\n\t * @type {string}\n\t * @private\n\t */\n\t@property()\n\t_lineWidth!: string;\n\n\t/**\n\t * Determines the description of the <code>ui5-timeline-item</code>.\n\t *\n\t * @type {Node[]}\n\t * @name sap.ui.webc.fiori.TimelineItem.prototype.default\n\t * @slot\n\t * @public\n\t */\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tonNamePress() {\n\t\tthis.fireEvent(\"name-click\", {});\n\t}\n\n\t/**\n\t * Focus the internal link.\n\t * @protected\n\t */\n\tfocusLink() {\n\t\tthis.shadowRoot!.querySelector<Link>(\"[ui5-link]\")?.focus();\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\tindicator: {\n\t\t\t\t\"ui5-tli-indicator\": true,\n\t\t\t\t\"ui5-tli-indicator-short-line\": this._lineWidth === SHORT_LINE_WIDTH,\n\t\t\t\t\"ui5-tli-indicator-large-line\": this._lineWidth === LARGE_LINE_WIDTH,\n\t\t\t},\n\t\t\tbubbleArrowPosition: {\n\t\t\t\t\"ui5-tli-bubble-arrow\": true,\n\t\t\t\t\"ui5-tli-bubble-arrow--left\": this.layout === TimelineLayout.Vertical,\n\t\t\t\t\"ui5-tli-bubble-arrow--top\": this.layout === TimelineLayout.Horizontal,\n\t\t\t},\n\t\t};\n\t}\n}\n\nTimelineItem.define();\n\nexport default TimelineItem;\n"]}
1
+ {"version":3,"file":"TimelineItem.js","sourceRoot":"","sources":["../src/TimelineItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAA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IADC,QAAQ,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;+CACjC;AASnB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,CAAC,QAAQ,EAAE,CAAC;4CAC7C;AAQ7B;IADC,QAAQ,EAAE;gDACS;AAnEf,YAAY;IApBjB,aAAa,CAAC;QACd,GAAG,EAAE,mBAAmB;QACxB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,eAAe;QACvB,QAAQ,EAAE,oBAAoB;QAC9B,YAAY,EAAE;YACb,IAAI;YACJ,IAAI;SACJ;KACD,CAAC;IACF;;;;;;;;OAQG;;IACF,KAAK,CAAC,YAAY,CAAC;GACd,YAAY,CAkGjB;AAED,YAAY,CAAC,MAAM,EAAE,CAAC;AAEtB,eAAe,YAAY,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport Link from \"@ui5/webcomponents/dist/Link.js\";\nimport type { ITimelineItem } from \"./Interfaces.js\";\nimport TimelineItemTemplate from \"./generated/templates/TimelineItemTemplate.lit.js\";\nimport TimelineLayout from \"./types/TimelineLayout.js\";\n// Styles\nimport TimelineItemCss from \"./generated/themes/TimelineItem.css.js\";\n\nconst SHORT_LINE_WIDTH = \"ShortLineWidth\";\nconst LARGE_LINE_WIDTH = \"LargeLineWidth\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * An entry posted on the timeline.\n *\n * @constructor\n * @extends UI5Element\n * @implements { ITimelineItem }\n * @public\n * @slot {Node[]} default - Determines the description of the <code>ui5-timeline-item</code>.\n */\n@customElement({\n\ttag: \"ui5-timeline-item\",\n\trenderer: litRender,\n\tstyles: TimelineItemCss,\n\ttemplate: TimelineItemTemplate,\n\tdependencies: [\n\t\tIcon,\n\t\tLink,\n\t],\n})\n/**\n * Fired when the item name is pressed either with a\n * click/tap or by using the Enter or Space key.\n * <br><br>\n * <b>Note:</b> The event will not be fired if the <code>name-clickable</code>\n * attribute is not set.\n *\n * @public\n */\n@event(\"name-click\")\nclass TimelineItem extends UI5Element implements ITimelineItem {\n\t/**\n\t * Defines the icon to be displayed as graphical element within the <code>ui5-timeline-item</code>.\n\t * SAP-icons font provides numerous options.\n\t * <br><br>\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 the name of the item, displayed before the <code>title-text</code>.\n\t *\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\tname!: string;\n\n\t/**\n\t * Defines if the <code>name</code> is clickable.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tnameClickable!: boolean;\n\n\t/**\n\t * Defines the title text of the component.\n\t *\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t * Defines the subtitle text of the component.\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\tsubtitleText!: string;\n\n\t@property({ defaultValue: \"-1\", noAttribute: true })\n\t_tabIndex!: string;\n\n\t/**\n\t * Defines the items orientation.\n\t *\n\t * @default \"Vertical\"\n\t * @private\n\t */\n\t@property({ type: TimelineLayout, defaultValue: TimelineLayout.Vertical })\n\tlayout!: `${TimelineLayout}`;\n\n\t/**\n\t * Defines the indicator line width.\n\t *\n\t * @private\n\t */\n\t@property()\n\t_lineWidth!: string;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tonNamePress() {\n\t\tthis.fireEvent(\"name-click\", {});\n\t}\n\n\t/**\n\t * Focus the internal link.\n\t */\n\tfocusLink() {\n\t\tthis.shadowRoot!.querySelector<Link>(\"[ui5-link]\")?.focus();\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\tindicator: {\n\t\t\t\t\"ui5-tli-indicator\": true,\n\t\t\t\t\"ui5-tli-indicator-short-line\": this._lineWidth === SHORT_LINE_WIDTH,\n\t\t\t\t\"ui5-tli-indicator-large-line\": this._lineWidth === LARGE_LINE_WIDTH,\n\t\t\t},\n\t\t\tbubbleArrowPosition: {\n\t\t\t\t\"ui5-tli-bubble-arrow\": true,\n\t\t\t\t\"ui5-tli-bubble-arrow--left\": this.layout === TimelineLayout.Vertical,\n\t\t\t\t\"ui5-tli-bubble-arrow--top\": this.layout === TimelineLayout.Horizontal,\n\t\t\t},\n\t\t};\n\t}\n}\n\nTimelineItem.define();\n\nexport default TimelineItem;\n"]}
@@ -5,14 +5,14 @@ import ListMode from "@ui5/webcomponents/dist/types/ListMode.js";
5
5
  import "./illustrations/Tent.js";
6
6
  import "@ui5/webcomponents-icons/dist/upload-to-cloud.js";
7
7
  import "@ui5/webcomponents-icons/dist/document.js";
8
- import type UploadCollectionItem from "./UploadCollectionItem.js";
8
+ import type IUploadCollectionItem from "./UploadCollectionItem.js";
9
9
  import type { DnDEventListener, DnDEventListenerParam } from "./upload-utils/UploadCollectionBodyDnD.js";
10
10
  import UploadCollectionDnDOverlayMode from "./types/UploadCollectionDnDMode.js";
11
11
  type UploadCollectionSelectionChangeEventDetail = {
12
- selectedItems: Array<UploadCollectionItem>;
12
+ selectedItems: Array<IUploadCollectionItem>;
13
13
  };
14
14
  type UploadCollectionItemDeleteEventDetail = {
15
- item: UploadCollectionItem;
15
+ item: IUploadCollectionItem;
16
16
  };
17
17
  /**
18
18
  * @class
@@ -27,11 +27,7 @@ type UploadCollectionItemDeleteEventDetail = {
27
27
  * <code>import "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js";</code> (for <code>ui5-upload-collection-item</code>)
28
28
  *
29
29
  * @constructor
30
- * @author SAP SE
31
- * @alias sap.ui.webc.fiori.UploadCollection
32
- * @extends sap.ui.webc.base.UI5Element
33
- * @tagname ui5-upload-collection
34
- * @appenddocs sap.ui.webc.fiori.UploadCollectionItem
30
+ * @extends UI5Element
35
31
  * @public
36
32
  * @since 1.0.0-rc.7
37
33
  */
@@ -42,27 +38,21 @@ declare class UploadCollection extends UI5Element {
42
38
  * <br><b>Note:</b>
43
39
  * Mode "Delete" has no effect. The delete button is controlled by the <code>hideDeleteButton</code> property of UploadCollectionItem</li>
44
40
  *
45
- * @type {sap.ui.webc.main.types.ListMode}
46
- * @name sap.ui.webc.fiori.UploadCollection.prototype.mode
47
- * @defaultvalue "None"
41
+ * @default "None"
48
42
  * @public
49
43
  */
50
44
  mode: `${ListMode}`;
51
45
  /**
52
46
  * Allows you to set your own text for the 'No data' description.
53
47
  *
54
- * @type {string}
55
- * @name sap.ui.webc.fiori.UploadCollection.prototype.noDataDescription
56
- * @defaultvalue ""
48
+ * @default ""
57
49
  * @public
58
50
  */
59
51
  noDataDescription: string;
60
52
  /**
61
53
  * Allows you to set your own text for the 'No data' text.
62
54
  *
63
- * @type {string}
64
- * @name sap.ui.webc.fiori.UploadCollection.prototype.noDataText
65
- * @defaultvalue ""
55
+ * @default ""
66
56
  * @public
67
57
  */
68
58
  noDataText: string;
@@ -73,18 +63,14 @@ declare class UploadCollection extends UI5Element {
73
63
  * <b>Note:</b> It is up to the application developer to add handler for <code>drop</code> event and handle it.
74
64
  * <code>ui5-upload-collection</code> only displays an overlay.
75
65
  *
76
- * @type {boolean}
77
- * @name sap.ui.webc.fiori.UploadCollection.prototype.hideDragOverlay
78
- * @defaultvalue false
66
+ * @default false
79
67
  * @public
80
68
  */
81
69
  hideDragOverlay: boolean;
82
70
  /**
83
71
  * Defines the accessible ARIA name of the component.
84
72
  *
85
- * @type {string}
86
- * @name sap.ui.webc.fiori.UploadCollection.prototype.accessibleName
87
- * @defaultvalue ""
73
+ * @default ""
88
74
  * @public
89
75
  * @since 1.0.0-rc.16
90
76
  */
@@ -92,8 +78,7 @@ declare class UploadCollection extends UI5Element {
92
78
  /**
93
79
  * Indicates what overlay to show when files are being dragged.
94
80
  *
95
- * @type {sap.ui.webc.fiori.types.UploadCollectionDnDOverlayMode}
96
- * @defaultvalue "None"
81
+ * @default "None"
97
82
  * @private
98
83
  */
99
84
  _dndOverlayMode: UploadCollectionDnDOverlayMode;
@@ -101,12 +86,9 @@ declare class UploadCollection extends UI5Element {
101
86
  * Defines the items of the <code>ui5-upload-collection</code>.
102
87
  * <br><b>Note:</b> Use <code>ui5-upload-collection-item</code> for the intended design.
103
88
  *
104
- * @type {sap.ui.webc.fiori.IUploadCollectionItem[]}
105
- * @name sap.ui.webc.fiori.UploadCollection.prototype.default
106
- * @slot items
107
89
  * @public
108
90
  */
109
- items: Array<UploadCollectionItem>;
91
+ items: Array<IUploadCollectionItem>;
110
92
  /**
111
93
  * Defines the <code>ui5-upload-collection</code> header.
112
94
  * <br><br>
@@ -114,9 +96,6 @@ declare class UploadCollection extends UI5Element {
114
96
  * the labelling of the <code>UploadCollection</code> is a responsibility of the application developer.
115
97
  * <code>accessibleName</code> should be used.
116
98
  *
117
- * @type {HTMLElement[]}
118
- * @name sap.ui.webc.fiori.UploadCollection.prototype.header
119
- * @slot
120
99
  * @public
121
100
  */
122
101
  header: Array<HTMLElement>;
@@ -41,11 +41,7 @@ import UploadCollectionCss from "./generated/themes/UploadCollection.css.js";
41
41
  * <code>import "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js";</code> (for <code>ui5-upload-collection-item</code>)
42
42
  *
43
43
  * @constructor
44
- * @author SAP SE
45
- * @alias sap.ui.webc.fiori.UploadCollection
46
- * @extends sap.ui.webc.base.UI5Element
47
- * @tagname ui5-upload-collection
48
- * @appenddocs sap.ui.webc.fiori.UploadCollectionItem
44
+ * @extends UI5Element
49
45
  * @public
50
46
  * @since 1.0.0-rc.7
51
47
  */
@@ -199,8 +195,6 @@ UploadCollection = UploadCollection_1 = __decorate([
199
195
  * <br><br>
200
196
  * <b>Note:</b> The <code>drop</code> event is fired only when elements are dropped within the drag and drop overlay and ignored for the other parts of the <code>ui5-upload-collection</code>.
201
197
  *
202
- * @event sap.ui.webc.fiori.UploadCollection#drop
203
- * @readonly
204
198
  * @param {DataTransfer} dataTransfer The <code>drop</code> event operation data.
205
199
  * @public
206
200
  * @native
@@ -210,13 +204,15 @@ UploadCollection = UploadCollection_1 = __decorate([
210
204
  /**
211
205
  * Fired when the delete button of any item is pressed.
212
206
  *
213
- * @event sap.ui.webc.fiori.UploadCollection#item-delete
214
207
  * @param {HTMLElement} item The <code>ui5-upload-collection-item</code> which was deleted.
215
208
  * @public
216
209
  */
217
210
  ,
218
211
  event("item-delete", {
219
212
  detail: {
213
+ /**
214
+ * @public
215
+ */
220
216
  item: { type: HTMLElement },
221
217
  },
222
218
  })
@@ -224,13 +220,15 @@ UploadCollection = UploadCollection_1 = __decorate([
224
220
  * Fired when selection is changed by user interaction
225
221
  * in <code>SingleSelect</code> and <code>MultiSelect</code> modes.
226
222
  *
227
- * @event sap.ui.webc.fiori.UploadCollection#selection-change
228
223
  * @param {Array} selectedItems An array of the selected items.
229
224
  * @public
230
225
  */
231
226
  ,
232
227
  event("selection-change", {
233
228
  detail: {
229
+ /**
230
+ * @public
231
+ */
234
232
  selectedItems: { type: Array },
235
233
  },
236
234
  })
@@ -1 +1 @@
1
- {"version":3,"file":"UploadCollection.js","sourceRoot":"","sources":["../src/UploadCollection.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MA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AAkB,EAAE;QAC1B,MAAM,EAAE;YACP,aAAa,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SAC9B;KACD,CAAC;GACI,gBAAgB,CA6OrB;AAED,gBAAgB,CAAC,MAAM,EAAE,CAAC;AAE1B,eAAe,gBAAgB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.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 { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport Label from \"@ui5/webcomponents/dist/Label.js\";\nimport List from \"@ui5/webcomponents/dist/List.js\";\nimport type { ListSelectionChangeEventDetail } from \"@ui5/webcomponents/dist/List.js\";\nimport ListMode from \"@ui5/webcomponents/dist/types/ListMode.js\";\nimport Title from \"@ui5/webcomponents/dist/Title.js\";\nimport IllustratedMessage from \"./IllustratedMessage.js\";\nimport \"./illustrations/Tent.js\";\nimport \"@ui5/webcomponents-icons/dist/upload-to-cloud.js\";\nimport \"@ui5/webcomponents-icons/dist/document.js\";\nimport {\n\tUPLOADCOLLECTION_NO_DATA_TEXT,\n\tUPLOADCOLLECTION_NO_DATA_DESCRIPTION,\n\tUPLOADCOLLECTION_DRAG_FILE_INDICATOR,\n\tUPLOADCOLLECTION_DROP_FILE_INDICATOR,\n\tUPLOADCOLLECTION_ARIA_ROLE_DESCRIPTION,\n} from \"./generated/i18n/i18n-defaults.js\";\nimport {\n\tattachBodyDnDHandler,\n\tdetachBodyDnDHandler,\n\tdraggingFiles,\n} from \"./upload-utils/UploadCollectionBodyDnD.js\";\nimport type UploadCollectionItem from \"./UploadCollectionItem.js\";\nimport type { DnDEventListener, DnDEventListenerParam } from \"./upload-utils/UploadCollectionBodyDnD.js\";\nimport UploadCollectionDnDOverlayMode from \"./types/UploadCollectionDnDMode.js\";\n\n// Template\nimport UploadCollectionTemplate from \"./generated/templates/UploadCollectionTemplate.lit.js\";\n\n// Styles\nimport UploadCollectionCss from \"./generated/themes/UploadCollection.css.js\";\n\ntype UploadCollectionSelectionChangeEventDetail = {\n\tselectedItems: Array<UploadCollectionItem>,\n};\n\ntype UploadCollectionItemDeleteEventDetail = {\n\titem: UploadCollectionItem,\n};\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * This component allows you to represent files before uploading them to a server, with the help of <code>ui5-upload-collection-item</code>.\n * It also allows you to show already uploaded files.\n *\n * <h3>ES6 Module Import</h3>\n * <code>import \"@ui5/webcomponents-fiori/dist/UploadCollection.js\";</code>\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/UploadCollectionItem.js\";</code> (for <code>ui5-upload-collection-item</code>)\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.UploadCollection\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-upload-collection\n * @appenddocs sap.ui.webc.fiori.UploadCollectionItem\n * @public\n * @since 1.0.0-rc.7\n */\n@customElement({\n\ttag: \"ui5-upload-collection\",\n\tlanguageAware: true,\n\trenderer: litRender,\n\tstyles: UploadCollectionCss,\n\ttemplate: UploadCollectionTemplate,\n\tdependencies: [\n\t\tIcon,\n\t\tLabel,\n\t\tList,\n\t\tTitle,\n\t\tIllustratedMessage,\n\t],\n})\n/**\n * Fired when an element is dropped inside the drag and drop overlay.\n * <br><br>\n * <b>Note:</b> The <code>drop</code> event is fired only when elements are dropped within the drag and drop overlay and ignored for the other parts of the <code>ui5-upload-collection</code>.\n *\n * @event sap.ui.webc.fiori.UploadCollection#drop\n * @readonly\n * @param {DataTransfer} dataTransfer The <code>drop</code> event operation data.\n * @public\n * @native\n */\n@event(\"drop\")\n\n/**\n * Fired when the delete button of any item is pressed.\n *\n * @event sap.ui.webc.fiori.UploadCollection#item-delete\n * @param {HTMLElement} item The <code>ui5-upload-collection-item</code> which was deleted.\n * @public\n */\n@event(\"item-delete\", {\n\tdetail: {\n\t\titem: { type: HTMLElement },\n\t},\n})\n\n/**\n * Fired when selection is changed by user interaction\n * in <code>SingleSelect</code> and <code>MultiSelect</code> modes.\n *\n * @event sap.ui.webc.fiori.UploadCollection#selection-change\n * @param {Array} selectedItems An array of the selected items.\n * @public\n */\n@event(\"selection-change\", {\n\tdetail: {\n\t\tselectedItems: { type: Array },\n\t},\n})\nclass UploadCollection extends UI5Element {\n\t/**\n\t * Defines the mode of the <code>ui5-upload-collection</code>.\n\t *\n\t * <br><b>Note:</b>\n\t * Mode \"Delete\" has no effect. The delete button is controlled by the <code>hideDeleteButton</code> property of UploadCollectionItem</li>\n\t *\n\t * @type {sap.ui.webc.main.types.ListMode}\n\t * @name sap.ui.webc.fiori.UploadCollection.prototype.mode\n\t * @defaultvalue \"None\"\n\t * @public\n\t */\n\t@property({ type: ListMode, defaultValue: ListMode.None })\n\tmode!: `${ListMode}`;\n\n\t/**\n\t * Allows you to set your own text for the 'No data' description.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.UploadCollection.prototype.noDataDescription\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\tnoDataDescription!: string;\n\n\t/**\n\t * Allows you to set your own text for the 'No data' text.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.UploadCollection.prototype.noDataText\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\tnoDataText!: string;\n\n\t/**\n\t * By default there will be drag and drop overlay shown over the <code>ui5-upload-collection</code> when files\n\t * are dragged. If you don't intend to use drag and drop, set this property.\n\t * <br><br>\n\t * <b>Note:</b> It is up to the application developer to add handler for <code>drop</code> event and handle it.\n\t * <code>ui5-upload-collection</code> only displays an overlay.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.UploadCollection.prototype.hideDragOverlay\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideDragOverlay!: boolean;\n\n\t/**\n\t * Defines the accessible ARIA name of the component.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.UploadCollection.prototype.accessibleName\n\t * @defaultvalue \"\"\n\t * @public\n\t * @since 1.0.0-rc.16\n\t */\n\t @property()\n\t accessibleName!: string;\n\n\t/**\n\t * Indicates what overlay to show when files are being dragged.\n\t *\n\t * @type {sap.ui.webc.fiori.types.UploadCollectionDnDOverlayMode}\n\t * @defaultvalue \"None\"\n\t * @private\n\t */\n\t@property({ type: UploadCollectionDnDOverlayMode, defaultValue: UploadCollectionDnDOverlayMode.None })\n\t_dndOverlayMode!: UploadCollectionDnDOverlayMode;\n\n\t/**\n\t * Defines the items of the <code>ui5-upload-collection</code>.\n\t * <br><b>Note:</b> Use <code>ui5-upload-collection-item</code> for the intended design.\n\t *\n\t * @type {sap.ui.webc.fiori.IUploadCollectionItem[]}\n\t * @name sap.ui.webc.fiori.UploadCollection.prototype.default\n\t * @slot items\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<UploadCollectionItem>;\n\n\t/**\n\t * Defines the <code>ui5-upload-collection</code> header.\n\t * <br><br>\n\t * <b>Note:</b> If <code>header</code> slot is provided,\n\t * the labelling of the <code>UploadCollection</code> is a responsibility of the application developer.\n\t * <code>accessibleName</code> should be used.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.fiori.UploadCollection.prototype.header\n\t * @slot\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t_bodyDnDHandler: DnDEventListener;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\tUploadCollection.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis._bodyDnDHandler = this.bodyDnDHandler.bind(this);\n\t}\n\n\tbodyDnDHandler(e: DnDEventListenerParam) {\n\t\tif (this._dndOverlayMode !== UploadCollectionDnDOverlayMode.Drop) {\n\t\t\tthis._dndOverlayMode = e.mode;\n\t\t}\n\t}\n\n\tonEnterDOM() {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tattachBodyDnDHandler(this._bodyDnDHandler);\n\t}\n\n\tonExitDOM() {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tdetachBodyDnDHandler(this._bodyDnDHandler);\n\t}\n\n\t_ondragenter(e: DragEvent) {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!draggingFiles(e)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._dndOverlayMode = UploadCollectionDnDOverlayMode.Drop;\n\t}\n\n\t_ondrop(e: DragEvent) {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (e.target !== this.shadowRoot!.querySelector(\".uc-dnd-overlay\")) {\n\t\t\te.stopPropagation();\n\t\t}\n\n\t\tthis._dndOverlayMode = UploadCollectionDnDOverlayMode.None;\n\t}\n\n\t_ondragover(e: DragEvent) {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\te.preventDefault();\n\t}\n\n\t_ondragleave() {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._dndOverlayMode = UploadCollectionDnDOverlayMode.Drag;\n\t}\n\n\t_onItemDelete(e: CustomEvent) {\n\t\tthis.fireEvent<UploadCollectionItemDeleteEventDetail>(\"item-delete\", { item: e.target as UploadCollectionItem });\n\t}\n\n\t_onSelectionChange(e: CustomEvent<ListSelectionChangeEventDetail>) {\n\t\tthis.fireEvent<UploadCollectionSelectionChangeEventDetail>(\"selection-change\", { selectedItems: e.detail.selectedItems as UploadCollectionItem[] });\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\tcontent: {\n\t\t\t\t\"ui5-uc-content\": true,\n\t\t\t\t\"ui5-uc-content-no-data\": this.items.length === 0,\n\t\t\t},\n\t\t\tdndOverlay: {\n\t\t\t\t\"uc-dnd-overlay\": true,\n\t\t\t\t\"uc-drag-overlay\": this._dndOverlayMode === UploadCollectionDnDOverlayMode.Drag,\n\t\t\t\t\"uc-drop-overlay\": this._dndOverlayMode === UploadCollectionDnDOverlayMode.Drop,\n\t\t\t},\n\t\t\tnoFiles: {\n\t\t\t\t\"uc-no-files\": true,\n\t\t\t\t\"uc-no-files-dnd-overlay\": this._showDndOverlay,\n\t\t\t},\n\t\t};\n\t}\n\n\tget _root() {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-uc-root\");\n\t}\n\n\tget _dndOverlay() {\n\t\treturn this._root?.querySelector(\".uc-dnd-overlay\");\n\t}\n\n\tget _showDndOverlay() {\n\t\treturn this._dndOverlayMode !== UploadCollectionDnDOverlayMode.None;\n\t}\n\n\tget _showNoData() {\n\t\treturn this.items.length === 0;\n\t}\n\n\tget _noDataText() {\n\t\treturn this.noDataText || UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_NO_DATA_TEXT);\n\t}\n\n\tget _noDataDescription() {\n\t\treturn this.noDataDescription || UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_NO_DATA_DESCRIPTION);\n\t}\n\n\tget _roleDescription() {\n\t\treturn UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_ARIA_ROLE_DESCRIPTION);\n\t}\n\n\tget _dndOverlayText() {\n\t\tif (this._dndOverlayMode === UploadCollectionDnDOverlayMode.Drag) {\n\t\t\treturn UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_DRAG_FILE_INDICATOR);\n\t\t}\n\n\t\treturn UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_DROP_FILE_INDICATOR);\n\t}\n}\n\nUploadCollection.define();\n\nexport default UploadCollection;\nexport type {\n\tUploadCollectionItemDeleteEventDetail,\n\tUploadCollectionSelectionChangeEventDetail,\n};\n"]}
1
+ {"version":3,"file":"UploadCollection.js","sourceRoot":"","sources":["../src/UploadCollection.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,IAAI,MAAM,iCAAiC,CAAC;AAEnD,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,yBAAyB,CAAC;AACjC,OAAO,kDAAkD,CAAC;AAC1D,OAAO,2CAA2C,CAAC;AACnD,OAAO,EACN,6BAA6B,EAC7B,oCAAoC,EACpC,oCAAoC,EACpC,oCAAoC,EACpC,sCAAsC,GACtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACN,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,GACb,MAAM,2CAA2C,CAAC;AAGnD,OAAO,8BAA8B,MAAM,oCAAoC,CAAC;AAEhF,WAAW;AACX,OAAO,wBAAwB,MAAM,uDAAuD,CAAC;AAE7F,SAAS;AACT,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAU7E;;;;;;;;;;;;;;;;GAgBG;AAwDH,IAAM,gBAAgB,wBAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAwFxC,MAAM,CAAC,KAA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Q,EAAE,SAAS;QACnB,MAAM,EAAE,mBAAmB;QAC3B,QAAQ,EAAE,wBAAwB;QAClC,YAAY,EAAE;YACb,IAAI;YACJ,KAAK;YACL,IAAI;YACJ,KAAK;YACL,kBAAkB;SAClB;KACD,CAAC;IACF;;;;;;;;OAQG;;IACF,KAAK,CAAC,MAAM,CAAC;IAEd;;;;;OAKG;;IACF,KAAK,CAAC,aAAa,EAAE;QACrB,MAAM,EAAE;YACP;;eAEG;YACH,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;SAC3B;KACD,CAAC;IAEF;;;;;;OAMG;;IACF,KAAK,CAAC,kBAAkB,EAAE;QAC1B,MAAM,EAAE;YACP;;eAEG;YACH,aAAa,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SAC9B;KACD,CAAC;GACI,gBAAgB,CA4NrB;AAED,gBAAgB,CAAC,MAAM,EAAE,CAAC;AAE1B,eAAe,gBAAgB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.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 { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport Label from \"@ui5/webcomponents/dist/Label.js\";\nimport List from \"@ui5/webcomponents/dist/List.js\";\nimport type { ListSelectionChangeEventDetail } from \"@ui5/webcomponents/dist/List.js\";\nimport ListMode from \"@ui5/webcomponents/dist/types/ListMode.js\";\nimport Title from \"@ui5/webcomponents/dist/Title.js\";\nimport IllustratedMessage from \"./IllustratedMessage.js\";\nimport \"./illustrations/Tent.js\";\nimport \"@ui5/webcomponents-icons/dist/upload-to-cloud.js\";\nimport \"@ui5/webcomponents-icons/dist/document.js\";\nimport {\n\tUPLOADCOLLECTION_NO_DATA_TEXT,\n\tUPLOADCOLLECTION_NO_DATA_DESCRIPTION,\n\tUPLOADCOLLECTION_DRAG_FILE_INDICATOR,\n\tUPLOADCOLLECTION_DROP_FILE_INDICATOR,\n\tUPLOADCOLLECTION_ARIA_ROLE_DESCRIPTION,\n} from \"./generated/i18n/i18n-defaults.js\";\nimport {\n\tattachBodyDnDHandler,\n\tdetachBodyDnDHandler,\n\tdraggingFiles,\n} from \"./upload-utils/UploadCollectionBodyDnD.js\";\nimport type IUploadCollectionItem from \"./UploadCollectionItem.js\";\nimport type { DnDEventListener, DnDEventListenerParam } from \"./upload-utils/UploadCollectionBodyDnD.js\";\nimport UploadCollectionDnDOverlayMode from \"./types/UploadCollectionDnDMode.js\";\n\n// Template\nimport UploadCollectionTemplate from \"./generated/templates/UploadCollectionTemplate.lit.js\";\n\n// Styles\nimport UploadCollectionCss from \"./generated/themes/UploadCollection.css.js\";\n\ntype UploadCollectionSelectionChangeEventDetail = {\n\tselectedItems: Array<IUploadCollectionItem>,\n};\n\ntype UploadCollectionItemDeleteEventDetail = {\n\titem: IUploadCollectionItem,\n};\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * This component allows you to represent files before uploading them to a server, with the help of <code>ui5-upload-collection-item</code>.\n * It also allows you to show already uploaded files.\n *\n * <h3>ES6 Module Import</h3>\n * <code>import \"@ui5/webcomponents-fiori/dist/UploadCollection.js\";</code>\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/UploadCollectionItem.js\";</code> (for <code>ui5-upload-collection-item</code>)\n *\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.7\n */\n@customElement({\n\ttag: \"ui5-upload-collection\",\n\tlanguageAware: true,\n\trenderer: litRender,\n\tstyles: UploadCollectionCss,\n\ttemplate: UploadCollectionTemplate,\n\tdependencies: [\n\t\tIcon,\n\t\tLabel,\n\t\tList,\n\t\tTitle,\n\t\tIllustratedMessage,\n\t],\n})\n/**\n * Fired when an element is dropped inside the drag and drop overlay.\n * <br><br>\n * <b>Note:</b> The <code>drop</code> event is fired only when elements are dropped within the drag and drop overlay and ignored for the other parts of the <code>ui5-upload-collection</code>.\n *\n * @param {DataTransfer} dataTransfer The <code>drop</code> event operation data.\n * @public\n * @native\n */\n@event(\"drop\")\n\n/**\n * Fired when the delete button of any item is pressed.\n *\n * @param {HTMLElement} item The <code>ui5-upload-collection-item</code> which was deleted.\n * @public\n */\n@event(\"item-delete\", {\n\tdetail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\titem: { type: HTMLElement },\n\t},\n})\n\n/**\n * Fired when selection is changed by user interaction\n * in <code>SingleSelect</code> and <code>MultiSelect</code> modes.\n *\n * @param {Array} selectedItems An array of the selected items.\n * @public\n */\n@event(\"selection-change\", {\n\tdetail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\tselectedItems: { type: Array },\n\t},\n})\nclass UploadCollection extends UI5Element {\n\t/**\n\t * Defines the mode of the <code>ui5-upload-collection</code>.\n\t *\n\t * <br><b>Note:</b>\n\t * Mode \"Delete\" has no effect. The delete button is controlled by the <code>hideDeleteButton</code> property of UploadCollectionItem</li>\n\t *\n\t * @default \"None\"\n\t * @public\n\t */\n\t@property({ type: ListMode, defaultValue: ListMode.None })\n\tmode!: `${ListMode}`;\n\n\t/**\n\t * Allows you to set your own text for the 'No data' description.\n\t *\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\tnoDataDescription!: string;\n\n\t/**\n\t * Allows you to set your own text for the 'No data' text.\n\t *\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\tnoDataText!: string;\n\n\t/**\n\t * By default there will be drag and drop overlay shown over the <code>ui5-upload-collection</code> when files\n\t * are dragged. If you don't intend to use drag and drop, set this property.\n\t * <br><br>\n\t * <b>Note:</b> It is up to the application developer to add handler for <code>drop</code> event and handle it.\n\t * <code>ui5-upload-collection</code> only displays an overlay.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideDragOverlay!: boolean;\n\n\t/**\n\t * Defines the accessible ARIA name of the component.\n\t *\n\t * @default \"\"\n\t * @public\n\t * @since 1.0.0-rc.16\n\t */\n\t @property()\n\t accessibleName!: string;\n\n\t/**\n\t * Indicates what overlay to show when files are being dragged.\n\t *\n\t * @default \"None\"\n\t * @private\n\t */\n\t@property({ type: UploadCollectionDnDOverlayMode, defaultValue: UploadCollectionDnDOverlayMode.None })\n\t_dndOverlayMode!: UploadCollectionDnDOverlayMode;\n\n\t/**\n\t * Defines the items of the <code>ui5-upload-collection</code>.\n\t * <br><b>Note:</b> Use <code>ui5-upload-collection-item</code> for the intended design.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<IUploadCollectionItem>;\n\n\t/**\n\t * Defines the <code>ui5-upload-collection</code> header.\n\t * <br><br>\n\t * <b>Note:</b> If <code>header</code> slot is provided,\n\t * the labelling of the <code>UploadCollection</code> is a responsibility of the application developer.\n\t * <code>accessibleName</code> should be used.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t_bodyDnDHandler: DnDEventListener;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\tUploadCollection.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis._bodyDnDHandler = this.bodyDnDHandler.bind(this);\n\t}\n\n\tbodyDnDHandler(e: DnDEventListenerParam) {\n\t\tif (this._dndOverlayMode !== UploadCollectionDnDOverlayMode.Drop) {\n\t\t\tthis._dndOverlayMode = e.mode;\n\t\t}\n\t}\n\n\tonEnterDOM() {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tattachBodyDnDHandler(this._bodyDnDHandler);\n\t}\n\n\tonExitDOM() {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tdetachBodyDnDHandler(this._bodyDnDHandler);\n\t}\n\n\t_ondragenter(e: DragEvent) {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!draggingFiles(e)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._dndOverlayMode = UploadCollectionDnDOverlayMode.Drop;\n\t}\n\n\t_ondrop(e: DragEvent) {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (e.target !== this.shadowRoot!.querySelector(\".uc-dnd-overlay\")) {\n\t\t\te.stopPropagation();\n\t\t}\n\n\t\tthis._dndOverlayMode = UploadCollectionDnDOverlayMode.None;\n\t}\n\n\t_ondragover(e: DragEvent) {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\te.preventDefault();\n\t}\n\n\t_ondragleave() {\n\t\tif (this.hideDragOverlay) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._dndOverlayMode = UploadCollectionDnDOverlayMode.Drag;\n\t}\n\n\t_onItemDelete(e: CustomEvent) {\n\t\tthis.fireEvent<UploadCollectionItemDeleteEventDetail>(\"item-delete\", { item: e.target as IUploadCollectionItem });\n\t}\n\n\t_onSelectionChange(e: CustomEvent<ListSelectionChangeEventDetail>) {\n\t\tthis.fireEvent<UploadCollectionSelectionChangeEventDetail>(\"selection-change\", { selectedItems: e.detail.selectedItems as IUploadCollectionItem[] });\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\tcontent: {\n\t\t\t\t\"ui5-uc-content\": true,\n\t\t\t\t\"ui5-uc-content-no-data\": this.items.length === 0,\n\t\t\t},\n\t\t\tdndOverlay: {\n\t\t\t\t\"uc-dnd-overlay\": true,\n\t\t\t\t\"uc-drag-overlay\": this._dndOverlayMode === UploadCollectionDnDOverlayMode.Drag,\n\t\t\t\t\"uc-drop-overlay\": this._dndOverlayMode === UploadCollectionDnDOverlayMode.Drop,\n\t\t\t},\n\t\t\tnoFiles: {\n\t\t\t\t\"uc-no-files\": true,\n\t\t\t\t\"uc-no-files-dnd-overlay\": this._showDndOverlay,\n\t\t\t},\n\t\t};\n\t}\n\n\tget _root() {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-uc-root\");\n\t}\n\n\tget _dndOverlay() {\n\t\treturn this._root?.querySelector(\".uc-dnd-overlay\");\n\t}\n\n\tget _showDndOverlay() {\n\t\treturn this._dndOverlayMode !== UploadCollectionDnDOverlayMode.None;\n\t}\n\n\tget _showNoData() {\n\t\treturn this.items.length === 0;\n\t}\n\n\tget _noDataText() {\n\t\treturn this.noDataText || UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_NO_DATA_TEXT);\n\t}\n\n\tget _noDataDescription() {\n\t\treturn this.noDataDescription || UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_NO_DATA_DESCRIPTION);\n\t}\n\n\tget _roleDescription() {\n\t\treturn UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_ARIA_ROLE_DESCRIPTION);\n\t}\n\n\tget _dndOverlayText() {\n\t\tif (this._dndOverlayMode === UploadCollectionDnDOverlayMode.Drag) {\n\t\t\treturn UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_DRAG_FILE_INDICATOR);\n\t\t}\n\n\t\treturn UploadCollection.i18nBundle.getText(UPLOADCOLLECTION_DROP_FILE_INDICATOR);\n\t}\n}\n\nUploadCollection.define();\n\nexport default UploadCollection;\nexport type {\n\tUploadCollectionItemDeleteEventDetail,\n\tUploadCollectionSelectionChangeEventDetail,\n};\n"]}
@@ -5,6 +5,7 @@ import UploadState from "./types/UploadState.js";
5
5
  import "@ui5/webcomponents-icons/dist/refresh.js";
6
6
  import "@ui5/webcomponents-icons/dist/stop.js";
7
7
  import "@ui5/webcomponents-icons/dist/edit.js";
8
+ import type { IUploadCollectionItem } from "./Interfaces.js";
8
9
  /**
9
10
  * @class
10
11
  *
@@ -16,48 +17,38 @@ import "@ui5/webcomponents-icons/dist/edit.js";
16
17
  * <code>import "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js";</code>
17
18
  *
18
19
  * @constructor
19
- * @author SAP SE
20
- * @alias sap.ui.webc.fiori.UploadCollectionItem
21
- * @extends sap.ui.webc.main.ListItem
22
- * @tagname ui5-upload-collection-item
20
+ * @extends ListItem
23
21
  * @public
24
- * @implements sap.ui.webc.fiori.IUploadCollectionItem
22
+ * @implements {IUploadCollectionItem}
23
+ * @slot {Node[]} default - Hold the description of the <code>ui5-upload-collection-item</code>. Will be shown below the file name.
25
24
  * @since 1.0.0-rc.7
26
25
  */
27
- declare class UploadCollectionItem extends ListItem {
26
+ declare class UploadCollectionItem extends ListItem implements IUploadCollectionItem {
28
27
  /**
29
28
  * Holds an instance of <code>File</code> associated with this item.
30
29
  *
31
- * @type {File}
32
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.file
33
- * @defaultvalue null
30
+ * @default null
34
31
  * @public
35
32
  */
36
- file?: object;
33
+ file?: File | null;
37
34
  /**
38
35
  * The name of the file.
39
36
  *
40
- * @type {string}
41
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.fileName
42
- * @defaultvalue ""
37
+ * @default ""
43
38
  * @public
44
39
  */
45
40
  fileName: string;
46
41
  /**
47
42
  * If set to <code>true</code> the file name will be clickable and it will fire <code>file-name-click</code> event upon click.
48
43
  *
49
- * @type {boolean}
50
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.fileNameClickable
51
- * @defaultvalue false
44
+ * @default false
52
45
  * @public
53
46
  */
54
47
  fileNameClickable: boolean;
55
48
  /**
56
49
  * Disables the delete button.
57
50
  *
58
- * @type {boolean}
59
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.disableDeleteButton
60
- * @defaultvalue false
51
+ * @default false
61
52
  * @public
62
53
  */
63
54
  disableDeleteButton: boolean;
@@ -65,27 +56,21 @@ declare class UploadCollectionItem extends ListItem {
65
56
  * By default, the delete button will always be shown, regardless of the <code>ui5-upload-collection</code>'s property <code>mode</code>.
66
57
  * Setting this property to <code>true</code> will hide the delete button.
67
58
  *
68
- * @type {boolean}
69
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.hideDeleteButton
70
- * @defaultvalue false
59
+ * @default false
71
60
  * @public
72
61
  */
73
62
  hideDeleteButton: boolean;
74
63
  /**
75
64
  * Hides the retry button when <code>uploadState</code> property is <code>Error</code>.
76
65
  *
77
- * @type {boolean}
78
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.hideRetryButton
79
- * @defaultvalue false
66
+ * @default false
80
67
  * @public
81
68
  */
82
69
  hideRetryButton: boolean;
83
70
  /**
84
71
  * Hides the terminate button when <code>uploadState</code> property is <code>Uploading</code>.
85
72
  *
86
- * @type {boolean}
87
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.hideTerminateButton
88
- * @defaultvalue false
73
+ * @default false
89
74
  * @public
90
75
  */
91
76
  hideTerminateButton: boolean;
@@ -94,9 +79,7 @@ declare class UploadCollectionItem extends ListItem {
94
79
  * <br><br>
95
80
  * <b>Note:</b> Expected values are in the interval [0, 100].
96
81
  *
97
- * @type {sap.ui.webc.base.types.Integer}
98
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.progress
99
- * @defaultvalue 0
82
+ * @default 0
100
83
  * @public
101
84
  */
102
85
  progress: number;
@@ -105,17 +88,14 @@ declare class UploadCollectionItem extends ListItem {
105
88
  * Also if set to <code>Error</code>, a refresh button is shown. When this icon is pressed <code>retry</code> event is fired.
106
89
  * If set to <code>Uploading</code>, a terminate button is shown. When this icon is pressed <code>terminate</code> event is fired.
107
90
  *
108
- * @type {sap.ui.webc.fiori.types.UploadState}
109
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.uploadState
110
- * @defaultvalue "Ready"
91
+ * @default "Ready"
111
92
  * @public
112
93
  */
113
94
  uploadState: `${UploadState}`;
114
95
  /**
115
96
  * Indicates if editing.
116
97
  *
117
- * @type {boolean}
118
- * @defaultvalue false
98
+ * @default false
119
99
  * @private
120
100
  */
121
101
  _editing: boolean;
@@ -124,20 +104,9 @@ declare class UploadCollectionItem extends ListItem {
124
104
  * <br><br>
125
105
  * <b>Note:</b> Use <code>ui5-icon</code> or <code>img</code> for the intended design.
126
106
  *
127
- * @type {HTMLElement}
128
- * @slot
129
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.thumbnail
130
107
  * @public
131
108
  */
132
109
  thumbnail: Array<HTMLElement>;
133
- /**
134
- * Hold the description of the <code>ui5-upload-collection-item</code>. Will be shown below the file name.
135
- *
136
- * @type {Node[]}
137
- * @slot
138
- * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.default
139
- * @public
140
- */
141
110
  static i18nFioriBundle: I18nBundle;
142
111
  static onDefine(): Promise<void>;
143
112
  /**
@@ -42,12 +42,10 @@ import UploadCollectionItemCss from "./generated/themes/UploadCollectionItem.css
42
42
  * <code>import "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js";</code>
43
43
  *
44
44
  * @constructor
45
- * @author SAP SE
46
- * @alias sap.ui.webc.fiori.UploadCollectionItem
47
- * @extends sap.ui.webc.main.ListItem
48
- * @tagname ui5-upload-collection-item
45
+ * @extends ListItem
49
46
  * @public
50
- * @implements sap.ui.webc.fiori.IUploadCollectionItem
47
+ * @implements {IUploadCollectionItem}
48
+ * @slot {Node[]} default - Hold the description of the <code>ui5-upload-collection-item</code>. Will be shown below the file name.
51
49
  * @since 1.0.0-rc.7
52
50
  */
53
51
  let UploadCollectionItem = UploadCollectionItem_1 = class UploadCollectionItem extends ListItem {
@@ -282,7 +280,6 @@ UploadCollectionItem = UploadCollectionItem_1 = __decorate([
282
280
  * <br><br>
283
281
  * <b>Note:</b> This event is only available when <code>fileNameClickable</code> property is <code>true</code>.
284
282
  *
285
- * @event sap.ui.webc.fiori.UploadCollectionItem#file-name-click
286
283
  * @public
287
284
  */
288
285
  ,
@@ -293,7 +290,6 @@ UploadCollectionItem = UploadCollectionItem_1 = __decorate([
293
290
  * <b>Note:</b> An edit button is displayed on each item,
294
291
  * when the <code>ui5-upload-collection-item</code> <code>type</code> property is set to <code>Detail</code>.
295
292
  *
296
- * @event sap.ui.webc.fiori.UploadCollectionItem#rename
297
293
  * @public
298
294
  */
299
295
  ,
@@ -303,7 +299,6 @@ UploadCollectionItem = UploadCollectionItem_1 = __decorate([
303
299
  * <br><br>
304
300
  * <b>Note:</b> Terminate button is displayed when <code>uploadState</code> property is set to <code>Uploading</code>.
305
301
  *
306
- * @event sap.ui.webc.fiori.UploadCollectionItem#terminate
307
302
  * @public
308
303
  */
309
304
  ,
@@ -313,7 +308,6 @@ UploadCollectionItem = UploadCollectionItem_1 = __decorate([
313
308
  * <br><br>
314
309
  * <b>Note:</b> Retry button is displayed when <code>uploadState</code> property is set to <code>Error</code>.
315
310
  *
316
- * @event sap.ui.webc.fiori.UploadCollectionItem#retry
317
311
  * @public
318
312
  */
319
313
  ,
@@ -321,7 +315,6 @@ UploadCollectionItem = UploadCollectionItem_1 = __decorate([
321
315
  /**
322
316
  * @since 1.0.0-rc.8
323
317
  *
324
- * @event
325
318
  * @private
326
319
  */
327
320
  ,
@@ -1 +1 @@
1
- {"version":3,"file":"UploadCollectionItem.js","sourceRoot":"","sources":["../src/UploadCollectionItem.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO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,OAAO,CAAC;IAEf;;;;;OAKG;;IACF,KAAK,CAAC,kBAAkB,CAAC;IAE1B;;OAEG;;IACF,KAAK,CAAC,aAAa,CAAC;GACf,oBAAoB,CAqWzB;AAED,oBAAoB,CAAC,MAAM,EAAE,CAAC;AAE9B,eAAe,oBAAoB,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport ListItemType from \"@ui5/webcomponents/dist/types/ListItemType.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport Input from \"@ui5/webcomponents/dist/Input.js\";\nimport Label from \"@ui5/webcomponents/dist/Label.js\";\nimport Link from \"@ui5/webcomponents/dist/Link.js\";\nimport ProgressIndicator from \"@ui5/webcomponents/dist/ProgressIndicator.js\";\nimport ListItem from \"@ui5/webcomponents/dist/ListItem.js\";\nimport getFileExtension from \"@ui5/webcomponents-base/dist/util/getFileExtension.js\";\nimport { renderFinished } from \"@ui5/webcomponents-base/dist/Render.js\";\nimport { isEnter, isEscape, isSpace } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport UploadState from \"./types/UploadState.js\";\nimport \"@ui5/webcomponents-icons/dist/refresh.js\";\nimport \"@ui5/webcomponents-icons/dist/stop.js\";\nimport \"@ui5/webcomponents-icons/dist/edit.js\";\nimport {\n\tUPLOADCOLLECTIONITEM_CANCELBUTTON_TEXT,\n\tUPLOADCOLLECTIONITEM_RENAMEBUTTON_TEXT,\n\tUPLOADCOLLECTIONITEM_ERROR_STATE,\n\tUPLOADCOLLECTIONITEM_UPLOADING_STATE,\n\tUPLOADCOLLECTIONITEM_READY_STATE,\n\tUPLOADCOLLECTIONITEM_RETRY_BUTTON_TEXT,\n\tUPLOADCOLLECTIONITEM_TERMINATE_BUTTON_TEXT,\n\tUPLOADCOLLECTIONITEM_EDIT_BUTTON_TEXT,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Template\nimport UploadCollectionItemTemplate from \"./generated/templates/UploadCollectionItemTemplate.lit.js\";\n\n// Styles\nimport UploadCollectionItemCss from \"./generated/themes/UploadCollectionItem.css.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * A component to be used within the <code>ui5-upload-collection</code>.\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents-fiori/dist/UploadCollectionItem.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.UploadCollectionItem\n * @extends sap.ui.webc.main.ListItem\n * @tagname ui5-upload-collection-item\n * @public\n * @implements sap.ui.webc.fiori.IUploadCollectionItem\n * @since 1.0.0-rc.7\n */\n@customElement({\n\ttag: \"ui5-upload-collection-item\",\n\tlanguageAware: true,\n\tstyles: [ListItem.styles, UploadCollectionItemCss],\n\ttemplate: UploadCollectionItemTemplate,\n\tdependencies: [\n\t\t...ListItem.dependencies,\n\t\tButton,\n\t\tInput,\n\t\tLink,\n\t\tLabel,\n\t\tProgressIndicator,\n\t],\n})\n\n/**\n * Fired when the file name is clicked.\n * <br><br>\n * <b>Note:</b> This event is only available when <code>fileNameClickable</code> property is <code>true</code>.\n *\n * @event sap.ui.webc.fiori.UploadCollectionItem#file-name-click\n * @public\n */\n@event(\"file-name-click\")\n\n/**\n * Fired when the <code>fileName</code> property gets changed.\n * <br><br>\n * <b>Note:</b> An edit button is displayed on each item,\n * when the <code>ui5-upload-collection-item</code> <code>type</code> property is set to <code>Detail</code>.\n *\n * @event sap.ui.webc.fiori.UploadCollectionItem#rename\n * @public\n */\n@event(\"rename\")\n\n/**\n * Fired when the terminate button is pressed.\n * <br><br>\n * <b>Note:</b> Terminate button is displayed when <code>uploadState</code> property is set to <code>Uploading</code>.\n *\n * @event sap.ui.webc.fiori.UploadCollectionItem#terminate\n * @public\n */\n@event(\"terminate\")\n\n/**\n * Fired when the retry button is pressed.\n * <br><br>\n * <b>Note:</b> Retry button is displayed when <code>uploadState</code> property is set to <code>Error</code>.\n *\n * @event sap.ui.webc.fiori.UploadCollectionItem#retry\n * @public\n */\n@event(\"retry\")\n\n/**\n * @since 1.0.0-rc.8\n *\n * @event\n * @private\n */\n@event(\"_focus-requested\")\n\n/**\n * @private\n */\n@event(\"_uci-delete\")\nclass UploadCollectionItem extends ListItem {\n\t/**\n\t * Holds an instance of <code>File</code> associated with this item.\n\t *\n\t * @type {File}\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.file\n\t * @defaultvalue null\n\t * @public\n\t */\n\t@property({ type: Object, noAttribute: true, defaultValue: null })\n\tfile?: object;\n\n\t/**\n\t * The name of the file.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.fileName\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\tfileName!: string;\n\n\t/**\n\t * If set to <code>true</code> the file name will be clickable and it will fire <code>file-name-click</code> event upon click.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.fileNameClickable\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tfileNameClickable!: boolean;\n\n\t/**\n\t * Disables the delete button.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.disableDeleteButton\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean, noAttribute: false })\n\tdisableDeleteButton!: boolean;\n\n\t/**\n\t * By default, the delete button will always be shown, regardless of the <code>ui5-upload-collection</code>'s property <code>mode</code>.\n\t * Setting this property to <code>true</code> will hide the delete button.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.hideDeleteButton\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideDeleteButton!: boolean;\n\n\t/**\n\t * Hides the retry button when <code>uploadState</code> property is <code>Error</code>.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.hideRetryButton\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideRetryButton!: boolean;\n\n\t/**\n\t * Hides the terminate button when <code>uploadState</code> property is <code>Uploading</code>.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.hideTerminateButton\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideTerminateButton!: boolean;\n\n\t/**\n\t * The upload progress in percentage.\n\t * <br><br>\n\t * <b>Note:</b> Expected values are in the interval [0, 100].\n\t *\n\t * @type {sap.ui.webc.base.types.Integer}\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.progress\n\t * @defaultvalue 0\n\t * @public\n\t */\n\t@property({ validator: Integer, defaultValue: 0 })\n\tprogress!: number;\n\n\t/**\n\t * If set to <code>Uploading</code> or <code>Error</code>, a progress indicator showing the <code>progress</code> is displayed.\n\t * Also if set to <code>Error</code>, a refresh button is shown. When this icon is pressed <code>retry</code> event is fired.\n\t * If set to <code>Uploading</code>, a terminate button is shown. When this icon is pressed <code>terminate</code> event is fired.\n\t *\n\t * @type {sap.ui.webc.fiori.types.UploadState}\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.uploadState\n\t * @defaultvalue \"Ready\"\n\t * @public\n\t */\n\t@property({ type: UploadState, defaultValue: UploadState.Ready })\n\tuploadState!: `${UploadState}`;\n\n\t/**\n\t * Indicates if editing.\n\t *\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_editing!: boolean;\n\n\t/**\n\t * A thumbnail, which will be shown in the beginning of the <code>ui5-upload-collection-item</code>.\n\t * <br><br>\n\t * <b>Note:</b> Use <code>ui5-icon</code> or <code>img</code> for the intended design.\n\t *\n\t * @type {HTMLElement}\n\t * @slot\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.thumbnail\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\tthumbnail!: Array<HTMLElement>;\n\n\t/**\n\t * Hold the description of the <code>ui5-upload-collection-item</code>. Will be shown below the file name.\n\t *\n\t * @type {Node[]}\n\t * @slot\n\t * @name sap.ui.webc.fiori.UploadCollectionItem.prototype.default\n\t * @public\n\t */\n\n\tstatic i18nFioriBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\t[UploadCollectionItem.i18nFioriBundle] = await Promise.all([\n\t\t\tgetI18nBundle(\"@ui5/webcomponents-fiori\"),\n\t\t\tsuper.onDefine(),\n\t\t]);\n\t}\n\n\t/**\n\t * @override\n\t */\n\tasync onDetailClick() {\n\t\tsuper.onDetailClick();\n\t\tthis._editing = true;\n\n\t\tawait this._initInputField();\n\t}\n\n\tasync _initInputField() {\n\t\tawait renderFinished();\n\n\t\tconst inp = this.shadowRoot!.querySelector<Input>(\"#ui5-uci-edit-input\")!;\n\t\tinp.value = this._fileNameWithoutExtension;\n\n\t\tawait renderFinished();\n\n\t\tconst inpFocusDomRef = inp.getFocusDomRef() as HTMLInputElement;\n\t\tif (inpFocusDomRef) {\n\t\t\tinpFocusDomRef.focus();\n\t\t\tinpFocusDomRef.setSelectionRange(0, this._fileNameWithoutExtension.length);\n\t\t}\n\t}\n\n\t_onDetailKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis.onDetailClick();\n\t\t}\n\t}\n\n\t_onInputFocusin(e: FocusEvent) {\n\t\t// prevent focusing the whole upload collection item.\n\t\te.stopPropagation();\n\t}\n\n\t_onInputKeyDown(e: KeyboardEvent) {\n\t\tif (isEscape(e)) {\n\t\t\tthis._onRenameCancel(e);\n\t\t} else if (isEnter(e)) {\n\t\t\tthis._onRename();\n\t\t} else if (isSpace(e)) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\t}\n\n\t_onRename() {\n\t\tconst inp = this.shadowRoot!.querySelector<Input>(\"#ui5-uci-edit-input\")!;\n\t\tthis.fileName = inp.value + this._fileExtension;\n\t\tthis.fireEvent(\"rename\");\n\n\t\tthis._editing = false;\n\t\tthis._focus();\n\t}\n\n\t_onRenameKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onRename();\n\t\t}\n\t}\n\n\tasync _onRenameCancel(e: KeyboardEvent) {\n\t\tthis._editing = false;\n\n\t\tif (isEscape(e)) {\n\t\t\tawait renderFinished();\n\t\t\tthis.shadowRoot!.querySelector<Button>(`#${this._id}-editing-button`)!.focus();\n\t\t} else {\n\t\t\tthis._focus();\n\t\t}\n\t}\n\n\t_onRenameCancelKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onRenameCancel(e);\n\t\t}\n\t}\n\n\t_focus() {\n\t\tthis.fireEvent(\"_focus-requested\");\n\t}\n\n\t_onFileNameClick() {\n\t\tthis.fireEvent(\"file-name-click\");\n\t}\n\n\t_onRetry() {\n\t\tthis.fireEvent(\"retry\");\n\t}\n\n\t_onRetryKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onRetry();\n\t\t}\n\t}\n\n\t_onTerminate() {\n\t\tthis.fireEvent(\"terminate\");\n\t}\n\n\t_onTerminateKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onTerminate();\n\t\t}\n\t}\n\n\t_onDelete() {\n\t\tthis.fireEvent(\"_uci-delete\");\n\t}\n\n\tgetFocusDomRef() {\n\t\treturn this.getDomRef();\n\t}\n\n\t/**\n\t * @override\n\t */\n\tget classes() {\n\t\tconst result = super.classes;\n\n\t\treturn {\n\t\t\tmain: {\n\t\t\t\t...result.main,\n\t\t\t\t\"ui5-uci-root\": true,\n\t\t\t\t\"ui5-uci-root-editing\": this._editing,\n\t\t\t\t\"ui5-uci-root-uploading\": this.uploadState === UploadState.Uploading,\n\t\t\t},\n\t\t};\n\t}\n\n\t/**\n\t * @override\n\t */\n\tget renderUploadCollectionDeleteButton() {\n\t\treturn !this.hideDeleteButton;\n\t}\n\n\tget _fileNameWithoutExtension() {\n\t\treturn this.fileName.substring(0, this.fileName.length - this._fileExtension.length);\n\t}\n\n\tget _fileExtension() {\n\t\treturn getFileExtension(this.fileName);\n\t}\n\n\tget _renameBtnText() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_RENAMEBUTTON_TEXT);\n\t}\n\n\tget _cancelRenameBtnText() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_CANCELBUTTON_TEXT);\n\t}\n\n\tget _showProgressIndicator() {\n\t\treturn this.uploadState !== UploadState.Complete;\n\t}\n\n\tget _progressText() {\n\t\tif (this.uploadState === UploadState.Uploading) {\n\t\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_UPLOADING_STATE);\n\t\t}\n\n\t\tif (this.uploadState === UploadState.Error) {\n\t\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_ERROR_STATE);\n\t\t}\n\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_READY_STATE);\n\t}\n\n\tget _showRetry() {\n\t\treturn !this.hideRetryButton && this.uploadState === UploadState.Error;\n\t}\n\n\tget _showTerminate() {\n\t\treturn !this.hideTerminateButton && this.uploadState === UploadState.Uploading;\n\t}\n\n\tget _retryButtonTooltip() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_RETRY_BUTTON_TEXT);\n\t}\n\n\tget _terminateButtonTooltip() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_TERMINATE_BUTTON_TEXT);\n\t}\n\n\tget _editButtonTooltip() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_EDIT_BUTTON_TEXT);\n\t}\n\n\tget valueStateName(): ValueState {\n\t\tif (this.uploadState === UploadState.Error) {\n\t\t\treturn ValueState.Error;\n\t\t}\n\n\t\tif (this.uploadState === UploadState.Ready || this.uploadState === UploadState.Uploading) {\n\t\t\treturn ValueState.Information;\n\t\t}\n\n\t\treturn ValueState.None;\n\t}\n\n\t/**\n\t * override\n\t */\n\tget typeDetail() {\n\t\treturn false;\n\t}\n\n\tget showEditButton() {\n\t\treturn this.type === ListItemType.Detail;\n\t}\n}\n\nUploadCollectionItem.define();\n\nexport default UploadCollectionItem;\n"]}
1
+ {"version":3,"file":"UploadCollectionItem.js","sourceRoot":"","sources":["../src/UploadCollectionItem.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,iBAAiB,MAAM,8CAA8C,CAAC;AAC7E,OAAO,QAAQ,MAAM,qCAAqC,CAAC;AAC3D,OAAO,gBAAgB,MAAM,uDAAuD,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE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AE,CAAC;8DACD;AAS3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;6DACF;AAS1B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iEACE;AAW9B;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;sDAChC;AAWlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC;yDAClC;AAS/B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sDACT;AAUnB;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;uDACG;AAxG1B,oBAAoB;IA/DzB,aAAa,CAAC;QACd,GAAG,EAAE,4BAA4B;QACjC,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;QAClD,QAAQ,EAAE,4BAA4B;QACtC,YAAY,EAAE;YACb,GAAG,QAAQ,CAAC,YAAY;YACxB,MAAM;YACN,KAAK;YACL,IAAI;YACJ,KAAK;YACL,iBAAiB;SACjB;KACD,CAAC;IAEF;;;;;;OAMG;;IACF,KAAK,CAAC,iBAAiB,CAAC;IAEzB;;;;;;;OAOG;;IACF,KAAK,CAAC,QAAQ,CAAC;IAEhB;;;;;;OAMG;;IACF,KAAK,CAAC,WAAW,CAAC;IAEnB;;;;;;OAMG;;IACF,KAAK,CAAC,OAAO,CAAC;IAEf;;;;OAIG;;IACF,KAAK,CAAC,kBAAkB,CAAC;IAE1B;;OAEG;;IACF,KAAK,CAAC,aAAa,CAAC;GACf,oBAAoB,CAsUzB;AAED,oBAAoB,CAAC,MAAM,EAAE,CAAC;AAE9B,eAAe,oBAAoB,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport ListItemType from \"@ui5/webcomponents/dist/types/ListItemType.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport Input from \"@ui5/webcomponents/dist/Input.js\";\nimport Label from \"@ui5/webcomponents/dist/Label.js\";\nimport Link from \"@ui5/webcomponents/dist/Link.js\";\nimport ProgressIndicator from \"@ui5/webcomponents/dist/ProgressIndicator.js\";\nimport ListItem from \"@ui5/webcomponents/dist/ListItem.js\";\nimport getFileExtension from \"@ui5/webcomponents-base/dist/util/getFileExtension.js\";\nimport { renderFinished } from \"@ui5/webcomponents-base/dist/Render.js\";\nimport { isEnter, isEscape, isSpace } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport UploadState from \"./types/UploadState.js\";\nimport \"@ui5/webcomponents-icons/dist/refresh.js\";\nimport \"@ui5/webcomponents-icons/dist/stop.js\";\nimport \"@ui5/webcomponents-icons/dist/edit.js\";\nimport {\n\tUPLOADCOLLECTIONITEM_CANCELBUTTON_TEXT,\n\tUPLOADCOLLECTIONITEM_RENAMEBUTTON_TEXT,\n\tUPLOADCOLLECTIONITEM_ERROR_STATE,\n\tUPLOADCOLLECTIONITEM_UPLOADING_STATE,\n\tUPLOADCOLLECTIONITEM_READY_STATE,\n\tUPLOADCOLLECTIONITEM_RETRY_BUTTON_TEXT,\n\tUPLOADCOLLECTIONITEM_TERMINATE_BUTTON_TEXT,\n\tUPLOADCOLLECTIONITEM_EDIT_BUTTON_TEXT,\n} from \"./generated/i18n/i18n-defaults.js\";\nimport type { IUploadCollectionItem } from \"./Interfaces.js\";\n\n// Template\nimport UploadCollectionItemTemplate from \"./generated/templates/UploadCollectionItemTemplate.lit.js\";\n\n// Styles\nimport UploadCollectionItemCss from \"./generated/themes/UploadCollectionItem.css.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * A component to be used within the <code>ui5-upload-collection</code>.\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents-fiori/dist/UploadCollectionItem.js\";</code>\n *\n * @constructor\n * @extends ListItem\n * @public\n * @implements {IUploadCollectionItem}\n * @slot {Node[]} default - Hold the description of the <code>ui5-upload-collection-item</code>. Will be shown below the file name.\n * @since 1.0.0-rc.7\n */\n@customElement({\n\ttag: \"ui5-upload-collection-item\",\n\tlanguageAware: true,\n\tstyles: [ListItem.styles, UploadCollectionItemCss],\n\ttemplate: UploadCollectionItemTemplate,\n\tdependencies: [\n\t\t...ListItem.dependencies,\n\t\tButton,\n\t\tInput,\n\t\tLink,\n\t\tLabel,\n\t\tProgressIndicator,\n\t],\n})\n\n/**\n * Fired when the file name is clicked.\n * <br><br>\n * <b>Note:</b> This event is only available when <code>fileNameClickable</code> property is <code>true</code>.\n *\n * @public\n */\n@event(\"file-name-click\")\n\n/**\n * Fired when the <code>fileName</code> property gets changed.\n * <br><br>\n * <b>Note:</b> An edit button is displayed on each item,\n * when the <code>ui5-upload-collection-item</code> <code>type</code> property is set to <code>Detail</code>.\n *\n * @public\n */\n@event(\"rename\")\n\n/**\n * Fired when the terminate button is pressed.\n * <br><br>\n * <b>Note:</b> Terminate button is displayed when <code>uploadState</code> property is set to <code>Uploading</code>.\n *\n * @public\n */\n@event(\"terminate\")\n\n/**\n * Fired when the retry button is pressed.\n * <br><br>\n * <b>Note:</b> Retry button is displayed when <code>uploadState</code> property is set to <code>Error</code>.\n *\n * @public\n */\n@event(\"retry\")\n\n/**\n * @since 1.0.0-rc.8\n *\n * @private\n */\n@event(\"_focus-requested\")\n\n/**\n * @private\n */\n@event(\"_uci-delete\")\nclass UploadCollectionItem extends ListItem implements IUploadCollectionItem {\n\t/**\n\t * Holds an instance of <code>File</code> associated with this item.\n\t *\n\t * @default null\n\t * @public\n\t */\n\t@property({ type: Object, noAttribute: true, defaultValue: null })\n\tfile?: File | null;\n\n\t/**\n\t * The name of the file.\n\t *\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\tfileName!: string;\n\n\t/**\n\t * If set to <code>true</code> the file name will be clickable and it will fire <code>file-name-click</code> event upon click.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tfileNameClickable!: boolean;\n\n\t/**\n\t * Disables the delete button.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean, noAttribute: false })\n\tdisableDeleteButton!: boolean;\n\n\t/**\n\t * By default, the delete button will always be shown, regardless of the <code>ui5-upload-collection</code>'s property <code>mode</code>.\n\t * Setting this property to <code>true</code> will hide the delete button.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideDeleteButton!: boolean;\n\n\t/**\n\t * Hides the retry button when <code>uploadState</code> property is <code>Error</code>.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideRetryButton!: boolean;\n\n\t/**\n\t * Hides the terminate button when <code>uploadState</code> property is <code>Uploading</code>.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideTerminateButton!: boolean;\n\n\t/**\n\t * The upload progress in percentage.\n\t * <br><br>\n\t * <b>Note:</b> Expected values are in the interval [0, 100].\n\t *\n\t * @default 0\n\t * @public\n\t */\n\t@property({ validator: Integer, defaultValue: 0 })\n\tprogress!: number;\n\n\t/**\n\t * If set to <code>Uploading</code> or <code>Error</code>, a progress indicator showing the <code>progress</code> is displayed.\n\t * Also if set to <code>Error</code>, a refresh button is shown. When this icon is pressed <code>retry</code> event is fired.\n\t * If set to <code>Uploading</code>, a terminate button is shown. When this icon is pressed <code>terminate</code> event is fired.\n\t *\n\t * @default \"Ready\"\n\t * @public\n\t */\n\t@property({ type: UploadState, defaultValue: UploadState.Ready })\n\tuploadState!: `${UploadState}`;\n\n\t/**\n\t * Indicates if editing.\n\t *\n\t * @default false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_editing!: boolean;\n\n\t/**\n\t * A thumbnail, which will be shown in the beginning of the <code>ui5-upload-collection-item</code>.\n\t * <br><br>\n\t * <b>Note:</b> Use <code>ui5-icon</code> or <code>img</code> for the intended design.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\tthumbnail!: Array<HTMLElement>;\n\n\tstatic i18nFioriBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\t[UploadCollectionItem.i18nFioriBundle] = await Promise.all([\n\t\t\tgetI18nBundle(\"@ui5/webcomponents-fiori\"),\n\t\t\tsuper.onDefine(),\n\t\t]);\n\t}\n\n\t/**\n\t * @override\n\t */\n\tasync onDetailClick() {\n\t\tsuper.onDetailClick();\n\t\tthis._editing = true;\n\n\t\tawait this._initInputField();\n\t}\n\n\tasync _initInputField() {\n\t\tawait renderFinished();\n\n\t\tconst inp = this.shadowRoot!.querySelector<Input>(\"#ui5-uci-edit-input\")!;\n\t\tinp.value = this._fileNameWithoutExtension;\n\n\t\tawait renderFinished();\n\n\t\tconst inpFocusDomRef = inp.getFocusDomRef() as HTMLInputElement;\n\t\tif (inpFocusDomRef) {\n\t\t\tinpFocusDomRef.focus();\n\t\t\tinpFocusDomRef.setSelectionRange(0, this._fileNameWithoutExtension.length);\n\t\t}\n\t}\n\n\t_onDetailKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis.onDetailClick();\n\t\t}\n\t}\n\n\t_onInputFocusin(e: FocusEvent) {\n\t\t// prevent focusing the whole upload collection item.\n\t\te.stopPropagation();\n\t}\n\n\t_onInputKeyDown(e: KeyboardEvent) {\n\t\tif (isEscape(e)) {\n\t\t\tthis._onRenameCancel(e);\n\t\t} else if (isEnter(e)) {\n\t\t\tthis._onRename();\n\t\t} else if (isSpace(e)) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\t}\n\n\t_onRename() {\n\t\tconst inp = this.shadowRoot!.querySelector<Input>(\"#ui5-uci-edit-input\")!;\n\t\tthis.fileName = inp.value + this._fileExtension;\n\t\tthis.fireEvent(\"rename\");\n\n\t\tthis._editing = false;\n\t\tthis._focus();\n\t}\n\n\t_onRenameKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onRename();\n\t\t}\n\t}\n\n\tasync _onRenameCancel(e: KeyboardEvent) {\n\t\tthis._editing = false;\n\n\t\tif (isEscape(e)) {\n\t\t\tawait renderFinished();\n\t\t\tthis.shadowRoot!.querySelector<Button>(`#${this._id}-editing-button`)!.focus();\n\t\t} else {\n\t\t\tthis._focus();\n\t\t}\n\t}\n\n\t_onRenameCancelKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onRenameCancel(e);\n\t\t}\n\t}\n\n\t_focus() {\n\t\tthis.fireEvent(\"_focus-requested\");\n\t}\n\n\t_onFileNameClick() {\n\t\tthis.fireEvent(\"file-name-click\");\n\t}\n\n\t_onRetry() {\n\t\tthis.fireEvent(\"retry\");\n\t}\n\n\t_onRetryKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onRetry();\n\t\t}\n\t}\n\n\t_onTerminate() {\n\t\tthis.fireEvent(\"terminate\");\n\t}\n\n\t_onTerminateKeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onTerminate();\n\t\t}\n\t}\n\n\t_onDelete() {\n\t\tthis.fireEvent(\"_uci-delete\");\n\t}\n\n\tgetFocusDomRef() {\n\t\treturn this.getDomRef();\n\t}\n\n\t/**\n\t * @override\n\t */\n\tget classes() {\n\t\tconst result = super.classes;\n\n\t\treturn {\n\t\t\tmain: {\n\t\t\t\t...result.main,\n\t\t\t\t\"ui5-uci-root\": true,\n\t\t\t\t\"ui5-uci-root-editing\": this._editing,\n\t\t\t\t\"ui5-uci-root-uploading\": this.uploadState === UploadState.Uploading,\n\t\t\t},\n\t\t};\n\t}\n\n\t/**\n\t * @override\n\t */\n\tget renderUploadCollectionDeleteButton() {\n\t\treturn !this.hideDeleteButton;\n\t}\n\n\tget _fileNameWithoutExtension() {\n\t\treturn this.fileName.substring(0, this.fileName.length - this._fileExtension.length);\n\t}\n\n\tget _fileExtension() {\n\t\treturn getFileExtension(this.fileName);\n\t}\n\n\tget _renameBtnText() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_RENAMEBUTTON_TEXT);\n\t}\n\n\tget _cancelRenameBtnText() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_CANCELBUTTON_TEXT);\n\t}\n\n\tget _showProgressIndicator() {\n\t\treturn this.uploadState !== UploadState.Complete;\n\t}\n\n\tget _progressText() {\n\t\tif (this.uploadState === UploadState.Uploading) {\n\t\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_UPLOADING_STATE);\n\t\t}\n\n\t\tif (this.uploadState === UploadState.Error) {\n\t\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_ERROR_STATE);\n\t\t}\n\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_READY_STATE);\n\t}\n\n\tget _showRetry() {\n\t\treturn !this.hideRetryButton && this.uploadState === UploadState.Error;\n\t}\n\n\tget _showTerminate() {\n\t\treturn !this.hideTerminateButton && this.uploadState === UploadState.Uploading;\n\t}\n\n\tget _retryButtonTooltip() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_RETRY_BUTTON_TEXT);\n\t}\n\n\tget _terminateButtonTooltip() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_TERMINATE_BUTTON_TEXT);\n\t}\n\n\tget _editButtonTooltip() {\n\t\treturn UploadCollectionItem.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_EDIT_BUTTON_TEXT);\n\t}\n\n\tget valueStateName(): ValueState {\n\t\tif (this.uploadState === UploadState.Error) {\n\t\t\treturn ValueState.Error;\n\t\t}\n\n\t\tif (this.uploadState === UploadState.Ready || this.uploadState === UploadState.Uploading) {\n\t\t\treturn ValueState.Information;\n\t\t}\n\n\t\treturn ValueState.None;\n\t}\n\n\t/**\n\t * override\n\t */\n\tget typeDetail() {\n\t\treturn false;\n\t}\n\n\tget showEditButton() {\n\t\treturn this.type === ListItemType.Detail;\n\t}\n}\n\nUploadCollectionItem.define();\n\nexport default UploadCollectionItem;\n"]}