@openui5/sap.m 1.71.63 → 1.71.65
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.
- package/package.json +4 -4
- package/src/sap/m/.library +1 -1
- package/src/sap/m/AccButton.js +1 -1
- package/src/sap/m/ActionListItem.js +1 -1
- package/src/sap/m/ActionSelect.js +1 -1
- package/src/sap/m/ActionSheet.js +1 -1
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +1 -1
- package/src/sap/m/Carousel.js +1 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +1 -1
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +1 -1
- package/src/sap/m/ComboBoxBase.js +1 -1
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +1 -1
- package/src/sap/m/DateRangeSelection.js +2 -2
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +1 -1
- package/src/sap/m/Dialog.js +1 -1
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/FacetFilter.js +1 -1
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +1 -1
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +1 -1
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +1 -1
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +1 -1
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +1 -1
- package/src/sap/m/IconTabHeader.js +1 -1
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +1 -1
- package/src/sap/m/InputBase.js +1 -1
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +1 -1
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +1 -1
- package/src/sap/m/ListItemBase.js +1 -1
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +1 -1
- package/src/sap/m/MenuButton.js +1 -1
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MultiComboBox.js +1 -1
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +1 -1
- package/src/sap/m/NavContainer.js +1 -1
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/ObjectAttribute.js +1 -1
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/OverflowToolbar.js +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +1 -1
- package/src/sap/m/P13nColumnsItem.js +1 -1
- package/src/sap/m/P13nColumnsPanel.js +1 -1
- package/src/sap/m/P13nConditionPanel.js +1 -1
- package/src/sap/m/P13nDialog.js +1 -1
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +1 -1
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -1
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +1 -1
- package/src/sap/m/P13nItem.js +1 -1
- package/src/sap/m/P13nPanel.js +1 -1
- package/src/sap/m/P13nSelectionItem.js +1 -1
- package/src/sap/m/P13nSelectionPanel.js +1 -1
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +1 -1
- package/src/sap/m/PDFViewer.js +13 -18
- package/src/sap/m/PDFViewerRenderManager.js +19 -3
- package/src/sap/m/PDFViewerRenderer.js +22 -8
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +1 -1
- package/src/sap/m/PlanningCalendarHeader.js +1 -1
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRenderer.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +1 -1
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +1 -1
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +2 -3
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +1 -1
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +1 -1
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +1 -1
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +1 -1
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +1 -1
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +1 -1
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +1 -1
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +1 -1
- package/src/sap/m/TimePicker.js +1 -1
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +1 -1
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +1 -1
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +1 -1
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/Wizard.js +1 -1
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardStep.js +1 -1
- package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/m/changeHandler/CombineButtons.js +1 -1
- package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/library.js +2 -2
- package/src/sap/m/messagebundle.properties +3 -0
- package/src/sap/m/semantic/AddAction.js +1 -1
- package/src/sap/m/semantic/CancelAction.js +1 -1
- package/src/sap/m/semantic/DeleteAction.js +1 -1
- package/src/sap/m/semantic/DetailPage.js +1 -1
- package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/m/semantic/EditAction.js +1 -1
- package/src/sap/m/semantic/FavoriteAction.js +1 -1
- package/src/sap/m/semantic/FilterAction.js +1 -1
- package/src/sap/m/semantic/FilterSelect.js +1 -1
- package/src/sap/m/semantic/FlagAction.js +1 -1
- package/src/sap/m/semantic/ForwardAction.js +1 -1
- package/src/sap/m/semantic/FullscreenPage.js +1 -1
- package/src/sap/m/semantic/GroupAction.js +1 -1
- package/src/sap/m/semantic/GroupSelect.js +1 -1
- package/src/sap/m/semantic/MainAction.js +1 -1
- package/src/sap/m/semantic/MasterPage.js +1 -1
- package/src/sap/m/semantic/MessagesIndicator.js +1 -1
- package/src/sap/m/semantic/MultiSelectAction.js +1 -1
- package/src/sap/m/semantic/NegativeAction.js +1 -1
- package/src/sap/m/semantic/OpenInAction.js +1 -1
- package/src/sap/m/semantic/PositiveAction.js +1 -1
- package/src/sap/m/semantic/PrintAction.js +1 -1
- package/src/sap/m/semantic/SaveAction.js +1 -1
- package/src/sap/m/semantic/Segment.js +1 -1
- package/src/sap/m/semantic/SegmentedContainer.js +1 -1
- package/src/sap/m/semantic/SemanticButton.js +1 -1
- package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
- package/src/sap/m/semantic/SemanticControl.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
- package/src/sap/m/semantic/SemanticPage.js +1 -1
- package/src/sap/m/semantic/SemanticSelect.js +1 -1
- package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/m/semantic/SendEmailAction.js +1 -1
- package/src/sap/m/semantic/SendMessageAction.js +1 -1
- package/src/sap/m/semantic/ShareInJamAction.js +1 -1
- package/src/sap/m/semantic/ShareMenu.js +1 -1
- package/src/sap/m/semantic/ShareMenuPage.js +1 -1
- package/src/sap/m/semantic/SortAction.js +1 -1
- package/src/sap/m/semantic/SortSelect.js +1 -1
- package/src/sap/m/themes/base/PDFViewer.less +5 -0
- package/src/sap/m/upload/UploadSet.js +1 -1
- 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>sortItems</code> aggregation in P13nSortPanel control.
|
|
19
19
|
* @extends sap.ui.core.Item
|
|
20
|
-
* @version 1.71.
|
|
20
|
+
* @version 1.71.65
|
|
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.71.
|
|
29
|
+
* @version 1.71.65
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
32
32
|
* @since 1.26.0
|
package/src/sap/m/PDFViewer.js
CHANGED
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @extends sap.ui.core.Control
|
|
48
48
|
*
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.71.
|
|
50
|
+
* @version 1.71.65
|
|
51
51
|
* @since 1.48
|
|
52
52
|
*
|
|
53
53
|
* @constructor
|
|
@@ -131,10 +131,10 @@ sap.ui.define([
|
|
|
131
131
|
displayType: {type: "sap.m.PDFViewerDisplayType", group: "Misc", defaultValue: PDFViewerDisplayType.Auto},
|
|
132
132
|
/**
|
|
133
133
|
* Parameter to determine if the given PDF is from a trusted source. If the source is valid this property can be set to true.
|
|
134
|
-
* If isTrustedSource is set to true, the PDFViewer opens with the displayType set to "Embedded" on desktop devices
|
|
135
|
-
* If isTrustedSource is set to false, the PDFViewer opens with the displayType set to "Link" on desktop devices
|
|
134
|
+
* If isTrustedSource is set to true, the PDFViewer opens with the displayType set to "Embedded" on desktop devices. This means that the PDF content is directly shown within the PDFViewer. Set this property to true only when the PDF is generated by the application or the PDF is scanned for viruses.
|
|
135
|
+
* If isTrustedSource is set to false, the PDFViewer opens with the displayType set to "Link" on desktop devices. This means that any configuration that has been provided by the application for the property displayType is overridden. In this case, the user would need to download the PDF to view its content.
|
|
136
136
|
*/
|
|
137
|
-
isTrustedSource: {type: "boolean", group: "Misc", defaultValue:
|
|
137
|
+
isTrustedSource: {type: "boolean", group: "Misc", defaultValue: false}
|
|
138
138
|
},
|
|
139
139
|
aggregations: {
|
|
140
140
|
/**
|
|
@@ -146,7 +146,12 @@ sap.ui.define([
|
|
|
146
146
|
* A multiple aggregation for buttons that can be added to the footer of the popup
|
|
147
147
|
* dialog. Works only if the PDF viewer is set to open in a popup dialog.
|
|
148
148
|
*/
|
|
149
|
-
popupButtons: {type: "sap.m.Button", multiple: true, singularName: "popupButton"}
|
|
149
|
+
popupButtons: {type: "sap.m.Button", multiple: true, singularName: "popupButton"},
|
|
150
|
+
/**
|
|
151
|
+
* A message page is displayed when the property isTrustedSource = false
|
|
152
|
+
* @private
|
|
153
|
+
*/
|
|
154
|
+
_nonTrustedMessagePage: { type: "sap.m.MessagePage", multiple: false, visibility: "hidden" }
|
|
150
155
|
},
|
|
151
156
|
events: {
|
|
152
157
|
/**
|
|
@@ -194,7 +199,7 @@ sap.ui.define([
|
|
|
194
199
|
|
|
195
200
|
this._initPopupControl();
|
|
196
201
|
this._initPopupDownloadButtonControl();
|
|
197
|
-
this.
|
|
202
|
+
this._initErrorPlaceholderMessagePageControl();
|
|
198
203
|
this._initToolbarDownloadButtonControl();
|
|
199
204
|
this._initOverflowToolbarControl();
|
|
200
205
|
|
|
@@ -237,15 +242,11 @@ sap.ui.define([
|
|
|
237
242
|
};
|
|
238
243
|
|
|
239
244
|
PDFViewer.prototype.onBeforeRendering = function () {
|
|
240
|
-
|
|
245
|
+
// IE things
|
|
241
246
|
// because of the detecting error state in IE (double call of unload listener)
|
|
242
247
|
// it is important to reset the flag before each render
|
|
243
248
|
// otherwise it wrongly detects error state (the unload listener is called once even in valid use case)
|
|
244
249
|
this._bOnBeforeUnloadFired = false;
|
|
245
|
-
if (!this.getIsTrustedSource() && !this._isDisplayTypeLink()) {
|
|
246
|
-
this.sInitialDisplayType = this.getDisplayType();
|
|
247
|
-
this.setProperty("displayType", PDFViewerDisplayType.Link, true);
|
|
248
|
-
}
|
|
249
250
|
};
|
|
250
251
|
|
|
251
252
|
/**
|
|
@@ -254,9 +255,6 @@ sap.ui.define([
|
|
|
254
255
|
* @private
|
|
255
256
|
*/
|
|
256
257
|
PDFViewer.prototype.onAfterRendering = function () {
|
|
257
|
-
if (this.sInitialDisplayType) {
|
|
258
|
-
this.setProperty("displayType", this.sInitialDisplayType, true);
|
|
259
|
-
}
|
|
260
258
|
var fnInitIframeElement = function () {
|
|
261
259
|
// cant use attachBrowserEvent because it attach event to component root node (this.$())
|
|
262
260
|
// load event does not bubble so it has to be bind directly to iframe element
|
|
@@ -522,9 +520,6 @@ sap.ui.define([
|
|
|
522
520
|
* @public
|
|
523
521
|
*/
|
|
524
522
|
PDFViewer.prototype.open = function () {
|
|
525
|
-
if (!this.getIsTrustedSource() && !this._isDisplayTypeLink()) {
|
|
526
|
-
this.setProperty("displayType", PDFViewerDisplayType.Link, true);
|
|
527
|
-
}
|
|
528
523
|
if (!this._isSourceValidToDisplay()) {
|
|
529
524
|
assert(false, "The PDF file cannot be opened with the given source. Given source: " + this.getSource());
|
|
530
525
|
return;
|
|
@@ -532,7 +527,7 @@ sap.ui.define([
|
|
|
532
527
|
Log.warning("The PDF plug-in is not available on this device.");
|
|
533
528
|
}
|
|
534
529
|
|
|
535
|
-
if (this._isEmbeddedModeAllowed()) {
|
|
530
|
+
if (this._isEmbeddedModeAllowed() && this.getIsTrustedSource()) {
|
|
536
531
|
this._openOnDesktop();
|
|
537
532
|
} else {
|
|
538
533
|
this._openOnMobile();
|
|
@@ -118,9 +118,9 @@ sap.ui.define([
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
PDFViewer.prototype.
|
|
121
|
+
PDFViewer.prototype._initErrorPlaceholderMessagePageControl = function () {
|
|
122
122
|
var that = this,
|
|
123
|
-
sPlaceholderMessagePageFactoryFunctionName = "
|
|
123
|
+
sPlaceholderMessagePageFactoryFunctionName = "getErrorPlaceholderMessagePageControl";
|
|
124
124
|
|
|
125
125
|
this._objectsRegister[sPlaceholderMessagePageFactoryFunctionName] = function () {
|
|
126
126
|
var oMessagePage = new MessagePage({
|
|
@@ -131,7 +131,6 @@ sap.ui.define([
|
|
|
131
131
|
|
|
132
132
|
that._objectsRegister[sPlaceholderMessagePageFactoryFunctionName] = function () {
|
|
133
133
|
oMessagePage.setText(that._getMessagePageErrorMessage());
|
|
134
|
-
|
|
135
134
|
return oMessagePage;
|
|
136
135
|
};
|
|
137
136
|
|
|
@@ -237,6 +236,23 @@ sap.ui.define([
|
|
|
237
236
|
};
|
|
238
237
|
|
|
239
238
|
};
|
|
239
|
+
|
|
240
|
+
PDFViewer.prototype._getNonTrustedSourceMessage = function () {
|
|
241
|
+
var oButtonContent = this._objectsRegister.getPopupDownloadButtonControl(),
|
|
242
|
+
oMessagePage = this.getAggregation("_nonTrustedMessagePage");
|
|
243
|
+
|
|
244
|
+
if (!oMessagePage) {
|
|
245
|
+
oMessagePage = new MessagePage({
|
|
246
|
+
showHeader: false,
|
|
247
|
+
text: this._getLibraryResourceBundle().getText("PDF_VIEWER_NONTRUSTEDSOURCEMESSAGE_TITLE"),
|
|
248
|
+
icon: "sap-icon://download",
|
|
249
|
+
buttons: [oButtonContent],
|
|
250
|
+
description: ""
|
|
251
|
+
});
|
|
252
|
+
this.setAggregation("_nonTrustedMessagePage", oMessagePage);
|
|
253
|
+
}
|
|
254
|
+
return oMessagePage;
|
|
255
|
+
};
|
|
240
256
|
}
|
|
241
257
|
};
|
|
242
258
|
|
|
@@ -101,14 +101,20 @@ sap.ui.define(['sap/ui/Device', "sap/base/Log"],
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
104
|
+
* Case1: If display is in Embedded Mode, PDF Plugin is disabled and is Desktop Device, We render Error Content.
|
|
105
|
+
* Case2: If display is in Embedded Mode and PDF Plugin is enabled, We render PDF Content.
|
|
106
|
+
* Case3: If display is in Embedded Mode, PDF Plugin is enabled and isTrustedSource = false, We render NonTrustedSource Content.
|
|
107
107
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
this.
|
|
108
|
+
var bRenderEmbededMode = (oControl._isDisplayTypeEmbedded() || oControl._isDisplayTypeAuto()) && Device.system.desktop;
|
|
109
|
+
|
|
110
|
+
if (bRenderEmbededMode) {
|
|
111
|
+
if (!this._isPdfPluginEnabled()) {
|
|
112
|
+
this.renderErrorContent(oRm, oControl);
|
|
113
|
+
} else if (!oControl.getIsTrustedSource()) {
|
|
114
|
+
this.renderNonTrustedSourceContent(oRm, oControl);
|
|
115
|
+
} else {
|
|
116
|
+
this.renderPdfContent(oRm, oControl);
|
|
117
|
+
}
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
oRm.write("</div>");
|
|
@@ -137,7 +143,7 @@ sap.ui.define(['sap/ui/Device', "sap/base/Log"],
|
|
|
137
143
|
|
|
138
144
|
PDFViewerRenderer.renderErrorContent = function (oRm, oControl) {
|
|
139
145
|
var oErrorContent = oControl.getErrorPlaceholder() ? oControl.getErrorPlaceholder() :
|
|
140
|
-
|
|
146
|
+
oControl._objectsRegister.getErrorPlaceholderMessagePageControl();
|
|
141
147
|
|
|
142
148
|
oRm.write("<div");
|
|
143
149
|
oRm.addClass("sapMPDFViewerError");
|
|
@@ -155,5 +161,13 @@ sap.ui.define(['sap/ui/Device', "sap/base/Log"],
|
|
|
155
161
|
}
|
|
156
162
|
};
|
|
157
163
|
|
|
164
|
+
PDFViewerRenderer.renderNonTrustedSourceContent = function (oRm, oControl) {
|
|
165
|
+
oRm.openStart("div");
|
|
166
|
+
oRm.class("sapMPDFViewerNonTrustedMessage");
|
|
167
|
+
oRm.openEnd();
|
|
168
|
+
oRm.renderControl(oControl._getNonTrustedSourceMessage());
|
|
169
|
+
oRm.close("div");
|
|
170
|
+
};
|
|
171
|
+
|
|
158
172
|
return PDFViewerRenderer;
|
|
159
173
|
}, /* bExport= */ true);
|
package/src/sap/m/Page.js
CHANGED
package/src/sap/m/Panel.js
CHANGED
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
oRm.writeControlData(oPC);
|
|
32
32
|
oRm.writeAccessibilityState({
|
|
33
33
|
role: "region",
|
|
34
|
-
labelledby: InvisibleText.getStaticId("sap.m",
|
|
34
|
+
labelledby: InvisibleText.getStaticId("sap.m", "PLANNINGCALENDAR")
|
|
35
35
|
});
|
|
36
36
|
oRm.addClass("sapMPlanCal");
|
|
37
37
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', 'sap/m/CustomListItem'], function (Element
|
|
|
23
23
|
* The <code>sap.m.PlanningCalendarRow</code> allows you to modify appointments at row level.
|
|
24
24
|
*
|
|
25
25
|
* @extends sap.ui.core.Element
|
|
26
|
-
* @version 1.71.
|
|
26
|
+
* @version 1.71.65
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -27,7 +27,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/unified/library'],
|
|
|
27
27
|
* The <code>PlanningCalendarView</code> defines the type of the intervals (hours, days, months)
|
|
28
28
|
* and how many intervals are displayed.
|
|
29
29
|
* @extends sap.ui.core.Element
|
|
30
|
-
* @version 1.71.
|
|
30
|
+
* @version 1.71.65
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @public
|
package/src/sap/m/Popover.js
CHANGED
package/src/sap/m/QuickView.js
CHANGED
package/src/sap/m/RadioButton.js
CHANGED
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
* @implements sap.ui.core.IFormContent
|
|
60
60
|
*
|
|
61
61
|
* @author SAP SE
|
|
62
|
-
* @version 1.71.
|
|
62
|
+
* @version 1.71.65
|
|
63
63
|
*
|
|
64
64
|
* @constructor
|
|
65
65
|
* @public
|
|
@@ -276,8 +276,7 @@ sap.ui.define([
|
|
|
276
276
|
// if a radio button in the group is focused is true, otherwise - false
|
|
277
277
|
var hasFocusedRadioButton = document.activeElement && document.activeElement.parentNode &&
|
|
278
278
|
document.activeElement.parentNode.parentNode === this.getDomRef();
|
|
279
|
-
|
|
280
|
-
var isRadioGroupSelected = !!(this.aRBs && this.aRBs[iSelectedIndex]);
|
|
279
|
+
var isRadioGroupSelected = this.aRBs && this.aRBs[iSelectedIndex] && this.aRBs[iSelectedIndex].getDomRef();
|
|
281
280
|
|
|
282
281
|
if (iSelectedIndex < -1) {
|
|
283
282
|
// invalid negative index -> don't change index.
|
package/src/sap/m/RangeSlider.js
CHANGED
package/src/sap/m/ScrollBar.js
CHANGED
|
@@ -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.71.
|
|
28
|
+
* @version 1.71.65
|
|
29
29
|
*
|
|
30
30
|
* @private
|
|
31
31
|
* @alias sap.m.ScrollBar
|
package/src/sap/m/SearchField.js
CHANGED
package/src/sap/m/Select.js
CHANGED
package/src/sap/m/SelectList.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @since 1.48.0
|
|
11
11
|
* @public
|
|
12
12
|
* @author SAP SE
|
|
13
|
-
* @version 1.71.
|
|
13
|
+
* @version 1.71.65
|
|
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.71.
|
|
48
|
+
* @version 1.71.65
|
|
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
|
package/src/sap/m/Shell.js
CHANGED
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
* The Shell control can be used as root element of applications. It can contain an App or a <code>SplitApp</code> control.
|
|
35
35
|
* 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.
|
|
36
36
|
* @extends sap.ui.core.Control
|
|
37
|
-
* @version 1.71.
|
|
37
|
+
* @version 1.71.65
|
|
38
38
|
*
|
|
39
39
|
* @constructor
|
|
40
40
|
* @public
|