@openui5/sap.m 1.84.51 → 1.84.53

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 (303) hide show
  1. package/package.json +4 -4
  2. package/src/sap/m/.library +1 -1
  3. package/src/sap/m/AccButton.js +1 -1
  4. package/src/sap/m/ActionListItem.js +1 -1
  5. package/src/sap/m/ActionSelect.js +1 -1
  6. package/src/sap/m/ActionSheet.js +1 -1
  7. package/src/sap/m/App.js +1 -1
  8. package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
  9. package/src/sap/m/Avatar.js +1 -1
  10. package/src/sap/m/Bar.js +1 -1
  11. package/src/sap/m/Breadcrumbs.js +1 -1
  12. package/src/sap/m/BusyDialog.js +1 -1
  13. package/src/sap/m/BusyIndicator.js +1 -1
  14. package/src/sap/m/Button.js +1 -1
  15. package/src/sap/m/Carousel.js +1 -1
  16. package/src/sap/m/CarouselLayout.js +1 -1
  17. package/src/sap/m/CheckBox.js +1 -1
  18. package/src/sap/m/ColorPalette.js +1 -1
  19. package/src/sap/m/ColorPalettePopover.js +1 -1
  20. package/src/sap/m/Column.js +1 -1
  21. package/src/sap/m/ColumnHeaderPopover.js +1 -1
  22. package/src/sap/m/ColumnListItem.js +1 -1
  23. package/src/sap/m/ColumnPopoverActionItem.js +1 -1
  24. package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
  25. package/src/sap/m/ColumnPopoverItem.js +1 -1
  26. package/src/sap/m/ColumnPopoverSortItem.js +1 -1
  27. package/src/sap/m/ComboBox.js +1 -1
  28. package/src/sap/m/ComboBoxBase.js +1 -1
  29. package/src/sap/m/ComboBoxTextField.js +1 -1
  30. package/src/sap/m/CustomListItem.js +1 -1
  31. package/src/sap/m/CustomTile.js +1 -1
  32. package/src/sap/m/CustomTreeItem.js +1 -1
  33. package/src/sap/m/DatePicker.js +1 -1
  34. package/src/sap/m/DateRangeSelection.js +2 -2
  35. package/src/sap/m/DateTimeField.js +1 -1
  36. package/src/sap/m/DateTimeInput.js +1 -1
  37. package/src/sap/m/DateTimePicker.js +1 -1
  38. package/src/sap/m/Dialog.js +1 -1
  39. package/src/sap/m/DisplayListItem.js +1 -1
  40. package/src/sap/m/DraftIndicator.js +1 -1
  41. package/src/sap/m/FacetFilter.js +1 -1
  42. package/src/sap/m/FacetFilterItem.js +1 -1
  43. package/src/sap/m/FacetFilterList.js +1 -1
  44. package/src/sap/m/FeedContent.js +1 -1
  45. package/src/sap/m/FeedInput.js +1 -1
  46. package/src/sap/m/FeedListItem.js +1 -1
  47. package/src/sap/m/FeedListItemAction.js +1 -1
  48. package/src/sap/m/Fiori20Adapter.js +2 -2
  49. package/src/sap/m/FlexBox.js +1 -1
  50. package/src/sap/m/FlexItemData.js +1 -1
  51. package/src/sap/m/FormattedText.js +1 -1
  52. package/src/sap/m/GenericTag.js +1 -1
  53. package/src/sap/m/GenericTile.js +1 -1
  54. package/src/sap/m/GroupHeaderListItem.js +1 -1
  55. package/src/sap/m/GrowingList.js +1 -1
  56. package/src/sap/m/HBox.js +1 -1
  57. package/src/sap/m/HeaderContainer.js +1 -1
  58. package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
  59. package/src/sap/m/IconTabBar.js +1 -1
  60. package/src/sap/m/IconTabBarSelectList.js +1 -1
  61. package/src/sap/m/IconTabFilter.js +1 -1
  62. package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
  63. package/src/sap/m/IconTabHeader.js +1 -1
  64. package/src/sap/m/IconTabSeparator.js +1 -1
  65. package/src/sap/m/Image.js +1 -1
  66. package/src/sap/m/ImageContent.js +1 -1
  67. package/src/sap/m/Input.js +1 -1
  68. package/src/sap/m/InputBase.js +1 -1
  69. package/src/sap/m/InputListItem.js +1 -1
  70. package/src/sap/m/Label.js +1 -1
  71. package/src/sap/m/LightBox.js +1 -1
  72. package/src/sap/m/LightBoxItem.js +1 -1
  73. package/src/sap/m/Link.js +1 -1
  74. package/src/sap/m/List.js +1 -1
  75. package/src/sap/m/ListBase.js +1 -1
  76. package/src/sap/m/ListItemBase.js +1 -1
  77. package/src/sap/m/MaskEnabler.js +1 -1
  78. package/src/sap/m/MaskInput.js +1 -1
  79. package/src/sap/m/MaskInputRule.js +1 -1
  80. package/src/sap/m/Menu.js +1 -1
  81. package/src/sap/m/MenuButton.js +1 -1
  82. package/src/sap/m/MenuItem.js +1 -1
  83. package/src/sap/m/MenuListItem.js +1 -1
  84. package/src/sap/m/MessageItem.js +1 -1
  85. package/src/sap/m/MessageListItem.js +1 -1
  86. package/src/sap/m/MessagePage.js +1 -1
  87. package/src/sap/m/MessagePopover.js +1 -1
  88. package/src/sap/m/MessagePopoverItem.js +1 -1
  89. package/src/sap/m/MessageStrip.js +1 -1
  90. package/src/sap/m/MessageToast.js +1 -1
  91. package/src/sap/m/MessageView.js +1 -1
  92. package/src/sap/m/MultiComboBox.js +1 -1
  93. package/src/sap/m/MultiEditField.js +1 -1
  94. package/src/sap/m/MultiInput.js +1 -1
  95. package/src/sap/m/NavContainer.js +1 -1
  96. package/src/sap/m/NewsContent.js +1 -1
  97. package/src/sap/m/NotificationListBase.js +1 -1
  98. package/src/sap/m/NotificationListGroup.js +1 -1
  99. package/src/sap/m/NotificationListItem.js +1 -1
  100. package/src/sap/m/NumericContent.js +1 -1
  101. package/src/sap/m/ObjectAttribute.js +1 -1
  102. package/src/sap/m/ObjectHeader.js +1 -1
  103. package/src/sap/m/ObjectIdentifier.js +1 -1
  104. package/src/sap/m/ObjectListItem.js +1 -1
  105. package/src/sap/m/ObjectMarker.js +1 -1
  106. package/src/sap/m/ObjectNumber.js +1 -1
  107. package/src/sap/m/ObjectStatus.js +1 -1
  108. package/src/sap/m/OverflowToolbar.js +1 -1
  109. package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
  110. package/src/sap/m/OverflowToolbarButton.js +1 -1
  111. package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
  112. package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
  113. package/src/sap/m/P13nAnyFilterItem.js +1 -1
  114. package/src/sap/m/P13nColumnsItem.js +1 -1
  115. package/src/sap/m/P13nColumnsPanel.js +1 -1
  116. package/src/sap/m/P13nConditionPanel.js +1 -1
  117. package/src/sap/m/P13nDialog.js +1 -1
  118. package/src/sap/m/P13nDimMeasureItem.js +1 -1
  119. package/src/sap/m/P13nDimMeasurePanel.js +1 -1
  120. package/src/sap/m/P13nFilterItem.js +1 -1
  121. package/src/sap/m/P13nFilterPanel.js +1 -1
  122. package/src/sap/m/P13nGroupItem.js +1 -1
  123. package/src/sap/m/P13nGroupPanel.js +1 -1
  124. package/src/sap/m/P13nItem.js +1 -1
  125. package/src/sap/m/P13nPanel.js +1 -1
  126. package/src/sap/m/P13nSelectionItem.js +1 -1
  127. package/src/sap/m/P13nSelectionPanel.js +1 -1
  128. package/src/sap/m/P13nSortItem.js +1 -1
  129. package/src/sap/m/P13nSortPanel.js +1 -1
  130. package/src/sap/m/PDFViewer.js +36 -98
  131. package/src/sap/m/Page.js +1 -1
  132. package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
  133. package/src/sap/m/PagingButton.js +1 -1
  134. package/src/sap/m/Panel.js +1 -1
  135. package/src/sap/m/PlanningCalendar.js +1 -1
  136. package/src/sap/m/PlanningCalendarHeader.js +1 -1
  137. package/src/sap/m/PlanningCalendarLegend.js +1 -1
  138. package/src/sap/m/PlanningCalendarRow.js +1 -1
  139. package/src/sap/m/PlanningCalendarView.js +1 -1
  140. package/src/sap/m/Popover.js +1 -1
  141. package/src/sap/m/ProgressIndicator.js +1 -1
  142. package/src/sap/m/PullToRefresh.js +1 -1
  143. package/src/sap/m/QuickView.js +1 -1
  144. package/src/sap/m/QuickViewBase.js +1 -1
  145. package/src/sap/m/QuickViewCard.js +1 -1
  146. package/src/sap/m/QuickViewGroup.js +1 -1
  147. package/src/sap/m/QuickViewGroupElement.js +1 -1
  148. package/src/sap/m/QuickViewPage.js +1 -1
  149. package/src/sap/m/RadioButton.js +1 -1
  150. package/src/sap/m/RadioButtonGroup.js +1 -1
  151. package/src/sap/m/RangeSlider.js +1 -1
  152. package/src/sap/m/RatingIndicator.js +1 -1
  153. package/src/sap/m/ResponsivePopover.js +1 -1
  154. package/src/sap/m/ResponsiveScale.js +1 -1
  155. package/src/sap/m/ScrollBar.js +1 -1
  156. package/src/sap/m/ScrollContainer.js +1 -1
  157. package/src/sap/m/SearchField.js +1 -1
  158. package/src/sap/m/SegmentedButton.js +1 -1
  159. package/src/sap/m/SegmentedButtonItem.js +1 -1
  160. package/src/sap/m/Select.js +1 -1
  161. package/src/sap/m/SelectDialog.js +1 -1
  162. package/src/sap/m/SelectList.js +1 -1
  163. package/src/sap/m/SelectionDetails.js +1 -1
  164. package/src/sap/m/SelectionDetailsFacade.js +2 -2
  165. package/src/sap/m/SelectionDetailsItem.js +1 -1
  166. package/src/sap/m/SelectionDetailsItemLine.js +1 -1
  167. package/src/sap/m/Shell.js +1 -1
  168. package/src/sap/m/SimpleFixFlex.js +1 -1
  169. package/src/sap/m/SinglePlanningCalendar.js +1 -1
  170. package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
  171. package/src/sap/m/SinglePlanningCalendarGrid.js +1 -1
  172. package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -1
  173. package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
  174. package/src/sap/m/SinglePlanningCalendarView.js +1 -1
  175. package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
  176. package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
  177. package/src/sap/m/SlideTile.js +1 -1
  178. package/src/sap/m/Slider.js +1 -1
  179. package/src/sap/m/SliderTooltip.js +1 -1
  180. package/src/sap/m/SliderTooltipBase.js +1 -1
  181. package/src/sap/m/SliderTooltipContainer.js +1 -1
  182. package/src/sap/m/SplitApp.js +1 -1
  183. package/src/sap/m/SplitButton.js +1 -1
  184. package/src/sap/m/SplitContainer.js +1 -1
  185. package/src/sap/m/StandardListItem.js +1 -1
  186. package/src/sap/m/StandardTile.js +1 -1
  187. package/src/sap/m/StandardTreeItem.js +1 -1
  188. package/src/sap/m/StepInput.js +1 -1
  189. package/src/sap/m/SuggestionItem.js +1 -1
  190. package/src/sap/m/SuggestionsPopover.js +1 -1
  191. package/src/sap/m/Switch.js +1 -1
  192. package/src/sap/m/TabContainer.js +1 -1
  193. package/src/sap/m/TabContainerItem.js +1 -1
  194. package/src/sap/m/TabStrip.js +1 -1
  195. package/src/sap/m/TabStripItem.js +1 -1
  196. package/src/sap/m/Table.js +1 -1
  197. package/src/sap/m/TablePersoController.js +1 -1
  198. package/src/sap/m/TablePersoDialog.js +1 -1
  199. package/src/sap/m/TablePersoProvider.js +1 -1
  200. package/src/sap/m/TableSelectDialog.js +1 -1
  201. package/src/sap/m/Text.js +1 -1
  202. package/src/sap/m/TextArea.js +1 -1
  203. package/src/sap/m/Tile.js +1 -1
  204. package/src/sap/m/TileContainer.js +1 -1
  205. package/src/sap/m/TileContent.js +1 -1
  206. package/src/sap/m/TimePicker.js +1 -1
  207. package/src/sap/m/TimePickerSlider.js +1 -1
  208. package/src/sap/m/TimePickerSliders.js +1 -1
  209. package/src/sap/m/Title.js +1 -1
  210. package/src/sap/m/TitlePropagationSupport.js +1 -1
  211. package/src/sap/m/ToggleButton.js +1 -1
  212. package/src/sap/m/Token.js +1 -1
  213. package/src/sap/m/Tokenizer.js +1 -1
  214. package/src/sap/m/Toolbar.js +1 -1
  215. package/src/sap/m/ToolbarLayoutData.js +1 -1
  216. package/src/sap/m/ToolbarSeparator.js +1 -1
  217. package/src/sap/m/ToolbarSpacer.js +1 -1
  218. package/src/sap/m/Tree.js +1 -1
  219. package/src/sap/m/TreeItemBase.js +1 -1
  220. package/src/sap/m/UploadCollection.js +1 -1
  221. package/src/sap/m/UploadCollectionItem.js +1 -1
  222. package/src/sap/m/UploadCollectionParameter.js +1 -1
  223. package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
  224. package/src/sap/m/VBox.js +1 -1
  225. package/src/sap/m/ValueStateHeader.js +1 -1
  226. package/src/sap/m/ViewSettingsCustomItem.js +1 -1
  227. package/src/sap/m/ViewSettingsCustomTab.js +1 -1
  228. package/src/sap/m/ViewSettingsDialog.js +1 -1
  229. package/src/sap/m/ViewSettingsFilterItem.js +1 -1
  230. package/src/sap/m/ViewSettingsItem.js +1 -1
  231. package/src/sap/m/VisibleItem.js +1 -1
  232. package/src/sap/m/WheelSlider.js +1 -1
  233. package/src/sap/m/WheelSliderContainer.js +1 -1
  234. package/src/sap/m/Wizard.js +1 -1
  235. package/src/sap/m/WizardProgressNavigator.js +1 -1
  236. package/src/sap/m/WizardStep.js +1 -1
  237. package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
  238. package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
  239. package/src/sap/m/changeHandler/CombineButtons.js +1 -1
  240. package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
  241. package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
  242. package/src/sap/m/library.js +2 -2
  243. package/src/sap/m/messagebundle_ar.properties +12 -12
  244. package/src/sap/m/messagebundle_ca.properties +2 -2
  245. package/src/sap/m/messagebundle_cs.properties +2 -2
  246. package/src/sap/m/messagebundle_da.properties +1 -1
  247. package/src/sap/m/messagebundle_de.properties +9 -9
  248. package/src/sap/m/messagebundle_es.properties +2 -2
  249. package/src/sap/m/messagebundle_es_MX.properties +2 -2
  250. package/src/sap/m/messagebundle_fi.properties +1 -1
  251. package/src/sap/m/messagebundle_fr.properties +1 -1
  252. package/src/sap/m/messagebundle_hu.properties +2 -2
  253. package/src/sap/m/messagebundle_id.properties +39 -39
  254. package/src/sap/m/messagebundle_kk.properties +2 -2
  255. package/src/sap/m/messagebundle_ko.properties +1 -1
  256. package/src/sap/m/messagebundle_pl.properties +1 -1
  257. package/src/sap/m/messagebundle_pt.properties +1 -1
  258. package/src/sap/m/messagebundle_ru.properties +2 -2
  259. package/src/sap/m/messagebundle_vi.properties +1 -1
  260. package/src/sap/m/plugins/DataStateIndicator.js +1 -1
  261. package/src/sap/m/plugins/PluginBase.js +1 -1
  262. package/src/sap/m/semantic/AddAction.js +1 -1
  263. package/src/sap/m/semantic/CancelAction.js +1 -1
  264. package/src/sap/m/semantic/DeleteAction.js +1 -1
  265. package/src/sap/m/semantic/DetailPage.js +1 -1
  266. package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
  267. package/src/sap/m/semantic/EditAction.js +1 -1
  268. package/src/sap/m/semantic/FavoriteAction.js +1 -1
  269. package/src/sap/m/semantic/FilterAction.js +1 -1
  270. package/src/sap/m/semantic/FilterSelect.js +1 -1
  271. package/src/sap/m/semantic/FlagAction.js +1 -1
  272. package/src/sap/m/semantic/ForwardAction.js +1 -1
  273. package/src/sap/m/semantic/FullscreenPage.js +1 -1
  274. package/src/sap/m/semantic/GroupAction.js +1 -1
  275. package/src/sap/m/semantic/GroupSelect.js +1 -1
  276. package/src/sap/m/semantic/MainAction.js +1 -1
  277. package/src/sap/m/semantic/MasterPage.js +1 -1
  278. package/src/sap/m/semantic/MessagesIndicator.js +1 -1
  279. package/src/sap/m/semantic/MultiSelectAction.js +1 -1
  280. package/src/sap/m/semantic/NegativeAction.js +1 -1
  281. package/src/sap/m/semantic/OpenInAction.js +1 -1
  282. package/src/sap/m/semantic/PositiveAction.js +1 -1
  283. package/src/sap/m/semantic/PrintAction.js +1 -1
  284. package/src/sap/m/semantic/SaveAction.js +1 -1
  285. package/src/sap/m/semantic/Segment.js +1 -1
  286. package/src/sap/m/semantic/SegmentedContainer.js +1 -1
  287. package/src/sap/m/semantic/SemanticButton.js +1 -1
  288. package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
  289. package/src/sap/m/semantic/SemanticControl.js +1 -1
  290. package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
  291. package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
  292. package/src/sap/m/semantic/SemanticPage.js +1 -1
  293. package/src/sap/m/semantic/SemanticSelect.js +1 -1
  294. package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
  295. package/src/sap/m/semantic/SendEmailAction.js +1 -1
  296. package/src/sap/m/semantic/SendMessageAction.js +1 -1
  297. package/src/sap/m/semantic/ShareInJamAction.js +1 -1
  298. package/src/sap/m/semantic/ShareMenu.js +1 -1
  299. package/src/sap/m/semantic/ShareMenuPage.js +1 -1
  300. package/src/sap/m/semantic/SortAction.js +1 -1
  301. package/src/sap/m/semantic/SortSelect.js +1 -1
  302. package/src/sap/m/upload/UploadSet.js +1 -1
  303. package/src/sap/m/upload/UploadSetItem.js +1 -1
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @param {object} [mSettings] initial settings for the new control
18
18
  * @class Type for <code>selectionItems</code> aggregation in <code>P13nSelectionPanel</code> control.
19
19
  * @extends sap.ui.core.Item
20
- * @version 1.84.51
20
+ * @version 1.84.53
21
21
  * @constructor
22
22
  * @author SAP SE
23
23
  * @private
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @class The P13nSelectionPanel control is used to define selection settings like the visibility or the order of items.
31
31
  * @extends sap.m.P13nPanel
32
32
  * @author SAP SE
33
- * @version 1.84.51
33
+ * @version 1.84.53
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.46.0
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @param {object} [mSettings] initial settings for the new control
18
18
  * @class Type for <code>sortItems</code> aggregation in P13nSortPanel control.
19
19
  * @extends sap.ui.core.Item
20
- * @version 1.84.51
20
+ * @version 1.84.53
21
21
  * @constructor
22
22
  * @public
23
23
  * @since 1.26.0
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @param {object} [mSettings] initial settings for the new control
27
27
  * @class The P13nSortPanel control is used to define settings for sorting in table personalization.
28
28
  * @extends sap.m.P13nPanel
29
- * @version 1.84.51
29
+ * @version 1.84.53
30
30
  * @constructor
31
31
  * @public
32
32
  * @since 1.26.0
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @extends sap.ui.core.Control
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.84.51
48
+ * @version 1.84.53
49
49
  * @since 1.48
50
50
  *
51
51
  * @constructor
@@ -176,6 +176,11 @@ sap.ui.define([
176
176
  * domain.
177
177
  * If you want no error message to be displayed when this event is fired, call the
178
178
  * preventDefault() method inside the event handler.
179
+ *
180
+ * Modern browsers implement strict policies for validating external resources loaded within an iframe.
181
+ * PDFViewer cannot determine whether the resource inside the iframe is a valid PDF by itself.
182
+ * As the validation cannot be performed the sourceValidationFailed event cannot be triggered.
183
+ * @deprecated As of version 1.84.56 with no replacement.
179
184
  */
180
185
  sourceValidationFailed: {}
181
186
  }
@@ -350,116 +355,49 @@ sap.ui.define([
350
355
  };
351
356
 
352
357
  /**
353
- * @param {string} [src] - url of pdf
354
- * @param {string} [method] - GET or HEAD mothod
355
- * @returns - content-type header from the response header
356
- * @description - this method fetches response headers from server to validate content-type.
357
358
  * @private
358
- */
359
- PDFViewer.prototype._getHeaderInfo = function(src, method) {
360
- return new Promise(function(resolve, reject) {
361
- var oXMLHttpRequest = new window.XMLHttpRequest();
362
- oXMLHttpRequest.open(method, src, false);
363
- oXMLHttpRequest.onload = function () {
364
- var sStatus = oXMLHttpRequest.status;
365
- if (sStatus === 200) {
366
- var response = oXMLHttpRequest.getAllResponseHeaders().toLowerCase().trim();
367
- var items = response.split("\n");
368
- var responseHeader = [];
369
- for (var i = 0; i < items.length; i++) {
370
- var parts = items[i].split(': ');
371
- responseHeader[parts[0].trim()] = parts[1].trim();
372
- }
373
- resolve(responseHeader['content-type']);
374
- } else {
375
- reject(new Error("Error in fetching header with method " + method + ", status " + oXMLHttpRequest.status + " and statusText " + oXMLHttpRequest.statusText));
376
- }
377
- };
378
- oXMLHttpRequest.onerror = function(error) {
379
- reject(new Error("Error in fetching header with method " + method + ", status " + oXMLHttpRequest.status + ", statusText " + oXMLHttpRequest.statusText + " and error " + error) );
380
- };
381
- oXMLHttpRequest.send(null);
382
- });
383
- };
384
-
385
- /**
386
- * @param oEvent
387
- * @private
388
- */
389
- PDFViewer.prototype._onLoadListener = function (oEvent) {
359
+ * Handles the iframe load event for PDFViewer.
360
+ * - Checks if PDF plugin is enabled, fires error if not.
361
+ * - Tries to access children of the iframe document body.
362
+ * - If children exist, checks for embed tag to validate PDF rendering.
363
+ * - Fires loaded event if valid, error event otherwise.
364
+ * - Catches and logs any unexpected errors, fires error event in such cases.
365
+ */
366
+ PDFViewer.prototype._onLoadListener = function (oEvent) {
390
367
  try {
391
- var oTarget = jQuery(oEvent.target);
392
- var bContinue = true, sCurrentContentType = '';
393
-
394
- //HTML body.children can be accessed only in scenario when chrome://flags/#pdf-oopif = disabled OR invalid path given to the iframe src
395
- try {
396
- var oContentWindow = oTarget[0] && oTarget[0].contentWindow;
397
- var oDocumentBody = oContentWindow && oContentWindow.document && oContentWindow.document.body;
398
- var aTargetChildren = oDocumentBody && oDocumentBody.children;
399
- } catch (error) {
400
- /* Firefox
401
- https://bugzilla.mozilla.org/show_bug.cgi?id=911444
402
- because of the embedded pdf plugin in firefox it is not possible to check contentType of the iframe document
403
- if the content is pdf. If the content is not a pdf and it is from the same origin, it can be accessed.
404
- Other browsers allow access to the mimeType of the iframe's document if the content is from the same origin.
405
- If browser is Firefox we triggerHEADRequest to fetch the ContentType.
406
- */
407
- if (Device.browser.firefox) {
368
+ // Check if PDF plugin is enabled
369
+ if (PDFViewerRenderer._isPdfPluginEnabled()) {
370
+ var bContinue = true;
371
+ var oTarget = jQuery(oEvent.target);
372
+ try {
373
+ // Try to access children of the iframe document body
374
+ var oContentWindow = oTarget[0] && oTarget[0].contentWindow;
375
+ var oDocumentBody = oContentWindow && oContentWindow.document && oContentWindow.document.body;
376
+ var aTargetChildren = oDocumentBody && oDocumentBody.children;
377
+ } catch (error) {
378
+ // If access fails, log warning and treat as no children
408
379
  aTargetChildren = [];
380
+ Log.warning("Error in fetching children entity for given source of PDFViewer.");
409
381
  }
410
- }
411
- //If chrome://flags/#pdf-oopif = disabled follow the existing approach to validate contentType.
412
- if (aTargetChildren && aTargetChildren.length) {
413
- try {
414
- // browsers render pdf in iframe as html page with embed tag
415
- var aEmbeds = oTarget[0].contentWindow.document.embeds;
382
+ // If children exist, check for embed tag
383
+ if (aTargetChildren && aTargetChildren.length) {
384
+ var oContentWindow = oTarget[0] && oTarget[0].contentWindow;
385
+ var oDocument = oContentWindow && oContentWindow.document;
386
+ var aEmbeds = oDocument && oDocument.embeds;
416
387
  bContinue = !!aEmbeds && aEmbeds.length === 1;
417
- if (bContinue) {
418
- sCurrentContentType = aEmbeds[0].attributes.getNamedItem("type").value;
419
- }
420
- } catch (error) {
421
- // even though the sourceValidationFailed event is fired, the default behaviour is to continue.
422
- // when preventDefault is on event object is called, the rendering ends up with error
423
- if (!Device.browser.firefox && this.fireEvent("sourceValidationFailed", {}, true)) {
424
- this._fireLoadedEvent();
425
- return;
426
- }
427
388
  }
428
- /* LoadedEvent will be triggered if all the below criteria matches and PDF is displayed
429
- 1. If embed tag is present.
430
- 2. If ContentType = "application/pdf" / "application/x-google-chrome-pdf".
431
- 3. If Browser PDFPlugin is enabled.
432
- else the ErrorEvent will be triggered, It will also be triggered if an invalid path is proveded as src for the iframe and LoadingError MessagePage is displayed.
433
- */
434
- if (bContinue && PDFViewerRenderer._isSupportedMimeType(sCurrentContentType) && PDFViewerRenderer._isPdfPluginEnabled()) {
389
+ // If valid PDF rendering, fire loaded event; else, fire error event
390
+ if (bContinue) {
435
391
  this._fireLoadedEvent();
436
392
  } else {
437
393
  this._fireErrorEvent(oEvent.target);
438
394
  }
439
395
  } else {
440
- //If chrome://flags/#pdf-oopif = enabled trigger the HEAD Request
441
- var sMethod = 'HEAD';
442
- this._getHeaderInfo(this._sParametrizedSource, sMethod)
443
- .then(function(sCurrentContentType) {
444
- /* LoadedEvent will be triggered if all the below criteria matches
445
- 1. If ContentType = "application/pdf" / "application/x-google-chrome-pdf".
446
- 2. If Browser PDFPlugin is enabled.
447
- else the ErrorEvent will be triggered and LoadingError MessagePage is displayed.
448
- */
449
- if (PDFViewerRenderer._isSupportedMimeType(sCurrentContentType) && PDFViewerRenderer._isPdfPluginEnabled()) {
450
- this._fireLoadedEvent();
451
- } else {
452
- this._fireErrorEvent(oEvent.target);
453
- }
454
- }.bind(this)).catch(function(e) {
455
- //If Head Request fails ErrorEvent will be triggered and LoadingError MessagePage is displayed.
456
- this._fireErrorEvent(oEvent.target);
457
- Log.fatal(e);
458
- this.fireEvent("sourceValidationFailed", {}, true);
459
- }.bind(this));
396
+ // PDF plugin not enabled, fire error event
397
+ this._fireErrorEvent(oEvent.target);
460
398
  }
461
399
  } catch (error) {
462
- //Generic Error Handling
400
+ // Generic Error Handling: fire error event and log details
463
401
  this._fireErrorEvent(oEvent.target);
464
402
  Log.fatal(false, "Fatal error during the handling of load event happened.");
465
403
  Log.fatal(false, error.message);
package/src/sap/m/Page.js CHANGED
@@ -91,7 +91,7 @@ function(
91
91
  * @extends sap.ui.core.Control
92
92
  * @mixes sap.ui.core.ContextMenuSupport
93
93
  * @author SAP SE
94
- * @version 1.84.51
94
+ * @version 1.84.53
95
95
  *
96
96
  * @public
97
97
  * @alias sap.m.Page
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.84.51
25
+ * @version 1.84.53
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.Control
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.84.51
29
+ * @version 1.84.53
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  * @extends sap.ui.core.Control
67
67
  *
68
68
  * @author SAP SE
69
- * @version 1.84.51
69
+ * @version 1.84.53
70
70
  *
71
71
  * @constructor
72
72
  * @public
@@ -201,7 +201,7 @@ sap.ui.define([
201
201
  * {@link sap.m.PlanningCalendarView PlanningCalendarView}'s properties.
202
202
  *
203
203
  * @extends sap.ui.core.Control
204
- * @version 1.84.51
204
+ * @version 1.84.53
205
205
  *
206
206
  * @constructor
207
207
  * @public
@@ -95,7 +95,7 @@ function(
95
95
  * @extends sap.ui.core.Control
96
96
  *
97
97
  * @author SAP SE
98
- * @version 1.84.51
98
+ * @version 1.84.53
99
99
  *
100
100
  * @constructor
101
101
  * @private
@@ -28,7 +28,7 @@ sap.ui.define(['sap/ui/unified/CalendarLegend', 'sap/ui/unified/CalendarAppointm
28
28
  * @extends sap.ui.unified.CalendarLegend
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.84.51
31
+ * @version 1.84.53
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -32,7 +32,7 @@ sap.ui.define(['sap/ui/core/Element',
32
32
  * The <code>sap.m.PlanningCalendarRow</code> allows you to modify appointments at row level.
33
33
  *
34
34
  * @extends sap.ui.core.Element
35
- * @version 1.84.51
35
+ * @version 1.84.53
36
36
  *
37
37
  * @constructor
38
38
  * @public
@@ -30,7 +30,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/unified/library'],
30
30
  * The <code>PlanningCalendarView</code> defines the type of the intervals (hours, days, months)
31
31
  * and how many intervals are displayed.
32
32
  * @extends sap.ui.core.Element
33
- * @version 1.84.51
33
+ * @version 1.84.53
34
34
  *
35
35
  * @constructor
36
36
  * @public
@@ -113,7 +113,7 @@ sap.ui.define([
113
113
  * @extends sap.ui.core.Control
114
114
  * @implements sap.ui.core.PopupInterface
115
115
  * @author SAP SE
116
- * @version 1.84.51
116
+ * @version 1.84.53
117
117
  *
118
118
  * @public
119
119
  * @alias sap.m.Popover
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @extends sap.ui.core.Control
60
60
  *
61
61
  * @author SAP SE
62
- * @version 1.84.51
62
+ * @version 1.84.53
63
63
  *
64
64
  * @constructor
65
65
  * @public
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @extends sap.ui.core.Control
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.84.51
44
+ * @version 1.84.53
45
45
  *
46
46
  * @constructor
47
47
  * @public
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @extends sap.m.QuickViewBase
60
60
  *
61
61
  * @author SAP SE
62
- * @version 1.84.51
62
+ * @version 1.84.53
63
63
  *
64
64
  * @constructor
65
65
  * @public
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Control
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.84.51
30
+ * @version 1.84.53
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.m.QuickViewBase
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.84.51
39
+ * @version 1.84.53
40
40
  *
41
41
  * @constructor
42
42
  * @public
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.84.51
25
+ * @version 1.84.53
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.core.Element
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.84.51
31
+ * @version 1.84.53
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -93,7 +93,7 @@ sap.ui.define([
93
93
  * @extends sap.ui.core.Control
94
94
  *
95
95
  * @author SAP SE
96
- * @version 1.84.51
96
+ * @version 1.84.53
97
97
  *
98
98
  * @constructor
99
99
  * @public
@@ -87,7 +87,7 @@ function(
87
87
  * @implements sap.ui.core.IFormContent
88
88
  *
89
89
  * @author SAP SE
90
- * @version 1.84.51
90
+ * @version 1.84.53
91
91
  *
92
92
  * @constructor
93
93
  * @public
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @implements sap.ui.core.IFormContent
60
60
  *
61
61
  * @author SAP SE
62
- * @version 1.84.51
62
+ * @version 1.84.53
63
63
  *
64
64
  * @constructor
65
65
  * @public
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * @extends sap.m.Slider
52
52
  *
53
53
  * @author SAP SE
54
- * @version 1.84.51
54
+ * @version 1.84.53
55
55
  *
56
56
  * @constructor
57
57
  * @public
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * @extends sap.ui.core.Control
52
52
  *
53
53
  * @author SAP SE
54
- * @version 1.84.51
54
+ * @version 1.84.53
55
55
  *
56
56
  * @constructor
57
57
  * @public
@@ -63,7 +63,7 @@ sap.ui.define([
63
63
  * @extends sap.ui.core.Control
64
64
  *
65
65
  * @author SAP SE
66
- * @version 1.84.51
66
+ * @version 1.84.53
67
67
  *
68
68
  * @constructor
69
69
  * @public
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.ui.core.Element
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.84.51
37
+ * @version 1.84.53
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -25,7 +25,7 @@ function(Control, ScrollBarRenderer) {
25
25
  * care of only rendering the currently visible rows and use this <code>ScrollBar</code> control to make
26
26
  * the users think they are actually scrolling through a long list.
27
27
  * @extends sap.ui.core.Control
28
- * @version 1.84.51
28
+ * @version 1.84.53
29
29
  *
30
30
  * @private
31
31
  * @alias sap.m.ScrollBar
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Control
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.84.51
40
+ * @version 1.84.53
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -72,7 +72,7 @@ sap.ui.define([
72
72
  * @extends sap.ui.core.Control
73
73
  * @implements sap.ui.core.IFormContent
74
74
  * @author SAP SE
75
- * @version 1.84.51
75
+ * @version 1.84.53
76
76
  *
77
77
  * @constructor
78
78
  * @public
@@ -50,7 +50,7 @@ function(
50
50
  * @implements sap.ui.core.IFormContent
51
51
  *
52
52
  * @author SAP SE
53
- * @version 1.84.51
53
+ * @version 1.84.53
54
54
  *
55
55
  * @constructor
56
56
  * @public
@@ -23,7 +23,7 @@ sap.ui.define(['./library', 'sap/ui/core/Item', 'sap/m/Button', 'sap/ui/core/Cus
23
23
  * @extends sap.ui.core.Item
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.84.51
26
+ * @version 1.84.53
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -103,7 +103,7 @@ function(
103
103
  * @implements sap.ui.core.IFormContent
104
104
  *
105
105
  * @author SAP SE
106
- * @version 1.84.51
106
+ * @version 1.84.53
107
107
  *
108
108
  * @constructor
109
109
  * @public
@@ -116,7 +116,7 @@ function(
116
116
  * @extends sap.ui.core.Control
117
117
  *
118
118
  * @author SAP SE
119
- * @version 1.84.51
119
+ * @version 1.84.53
120
120
  *
121
121
  * @constructor
122
122
  * @public
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Control
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.84.51
40
+ * @version 1.84.53
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -39,7 +39,7 @@ function(
39
39
  * <b><i>Note:</i></b>It is protected and should only be used within the framework itself.
40
40
  *
41
41
  * @author SAP SE
42
- * @version 1.84.51
42
+ * @version 1.84.53
43
43
  *
44
44
  * @extends sap.ui.core.Control
45
45
  * @constructor
@@ -10,7 +10,7 @@
10
10
  * @since 1.48.0
11
11
  * @public
12
12
  * @author SAP SE
13
- * @version 1.84.51
13
+ * @version 1.84.53
14
14
  * @borrows sap.ui.core.Element#addCustomData as addCustomData
15
15
  * @borrows sap.ui.core.Element#getCustomData as getCustomData
16
16
  * @borrows sap.ui.core.Element#indexOfCustomData as indexOfCustomData
@@ -45,7 +45,7 @@
45
45
  * @since 1.48.0
46
46
  * @public
47
47
  * @author SAP SE
48
- * @version 1.84.51
48
+ * @version 1.84.53
49
49
  * @borrows sap.ui.core.Element#addCustomData as addCustomData
50
50
  * @borrows sap.ui.core.Element#getCustomData as getCustomData
51
51
  * @borrows sap.ui.core.Element#indexOfCustomData as indexOfCustomData
@@ -54,7 +54,7 @@ sap.ui.define([
54
54
  * @extends sap.ui.core.Element
55
55
  *
56
56
  * @author SAP SE
57
- * @version 1.84.51
57
+ * @version 1.84.53
58
58
  *
59
59
  * @constructor
60
60
  * @protected
@@ -23,7 +23,7 @@ sap.ui.define(["sap/ui/core/Element", "sap/base/Log", "sap/base/util/isPlainObje
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.84.51
26
+ * @version 1.84.53
27
27
  *
28
28
  * @constructor
29
29
  * @protected
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * The Shell control can be used as root element of applications. It can contain an App or a <code>SplitApp</code> control.
36
36
  * The Shell provides some overarching functionality for the overall application and takes care of visual adaptation, such as a frame around the App, on desktop browser platforms.
37
37
  * @extends sap.ui.core.Control
38
- * @version 1.84.51
38
+ * @version 1.84.53
39
39
  *
40
40
  * @constructor
41
41
  * @public
@@ -31,7 +31,7 @@ function (Control, ResizeHandler, Log /**, SimpleFixFlexRenderer */) {
31
31
  * @extends sap.ui.core.Control
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.84.51
34
+ * @version 1.84.53
35
35
  *
36
36
  * @constructor
37
37
  * @private
@@ -105,7 +105,7 @@ function(
105
105
  * @extends sap.ui.core.Control
106
106
  *
107
107
  * @author SAP SE
108
- * @version 1.84.51
108
+ * @version 1.84.53
109
109
  *
110
110
  * @constructor
111
111
  * @public
@@ -25,7 +25,7 @@ function (library, SinglePlanningCalendarView) {
25
25
  * @extends sap.m.SinglePlanningCalendarView
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.84.51
28
+ * @version 1.84.53
29
29
  *
30
30
  * @constructor
31
31
  * @public
@@ -103,7 +103,7 @@ sap.ui.define([
103
103
  * @extends sap.ui.core.Control
104
104
  *
105
105
  * @author SAP SE
106
- * @version 1.84.51
106
+ * @version 1.84.53
107
107
  *
108
108
  * @constructor
109
109
  * @private
@@ -81,7 +81,7 @@ sap.ui.define([
81
81
  * @extends sap.ui.core.Control
82
82
  *
83
83
  * @author SAP SE
84
- * @version 1.84.51
84
+ * @version 1.84.53
85
85
  *
86
86
  * @constructor
87
87
  * @private