@openui5/sap.m 1.71.46 → 1.71.48
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/LICENSE.txt +1 -1
- 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 +3 -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 +161 -44
- package/src/sap/m/DialogRenderer.js +3 -2
- 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/GrowingEnablement.js +2 -11
- 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 +2 -2
- package/src/sap/m/LinkRenderer.js +1 -2
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +6 -6
- 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 +4 -2
- 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 +10 -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 +1 -1
- 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 +3 -3
- package/src/sap/m/PlanningCalendarLegend.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 +112 -70
- 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 +148 -212
- package/src/sap/m/RadioButtonGroup.js +65 -64
- package/src/sap/m/RadioButtonGroupRenderer.js +31 -38
- package/src/sap/m/RadioButtonRenderer.js +94 -108
- 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 +31 -2
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectRenderer.js +1 -33
- 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 +59 -17
- 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 +3 -2
- 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 +6 -2
- 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 +2 -2
- 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/delegate/ValueStateMessage.js +2 -0
- package/src/sap/m/designtime/messagebundle_de.properties +2 -2
- package/src/sap/m/designtime/messagebundle_sv.properties +2 -2
- package/src/sap/m/library.js +2 -2
- package/src/sap/m/messagebundle_cs.properties +8 -8
- package/src/sap/m/messagebundle_fr.properties +3 -3
- package/src/sap/m/messagebundle_hr.properties +2 -2
- package/src/sap/m/messagebundle_it.properties +2 -2
- package/src/sap/m/messagebundle_iw.properties +1 -1
- package/src/sap/m/messagebundle_ko.properties +8 -8
- package/src/sap/m/messagebundle_lt.properties +6 -6
- package/src/sap/m/messagebundle_nl.properties +4 -4
- package/src/sap/m/messagebundle_sh.properties +1 -1
- package/src/sap/m/messagebundle_th.properties +1 -1
- 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/Dialog.less +4 -66
- package/src/sap/m/themes/base/Popover.less +0 -1
- package/src/sap/m/themes/base/RadioButton.less +2 -2
- package/src/sap/m/upload/UploadSet.js +16 -3
- package/src/sap/m/upload/UploadSetItem.js +1 -1
package/src/sap/m/Dialog.js
CHANGED
|
@@ -19,6 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
'sap/ui/core/RenderManager',
|
|
20
20
|
'sap/ui/core/InvisibleText',
|
|
21
21
|
'sap/ui/core/ResizeHandler',
|
|
22
|
+
"sap/ui/core/theming/Parameters",
|
|
22
23
|
'sap/ui/Device',
|
|
23
24
|
'sap/ui/base/ManagedObject',
|
|
24
25
|
'sap/ui/core/library',
|
|
@@ -47,6 +48,7 @@ function(
|
|
|
47
48
|
RenderManager,
|
|
48
49
|
InvisibleText,
|
|
49
50
|
ResizeHandler,
|
|
51
|
+
Parameters,
|
|
50
52
|
Device,
|
|
51
53
|
ManagedObject,
|
|
52
54
|
coreLibrary,
|
|
@@ -83,6 +85,27 @@ function(
|
|
|
83
85
|
// HTML container scrollbar width
|
|
84
86
|
var iScrollbarWidth = 17;
|
|
85
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Margin on the left and right sides of dialog
|
|
90
|
+
*/
|
|
91
|
+
var HORIZONTAL_MARGIN = 5;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Margin on top and bottom of dialog
|
|
95
|
+
*/
|
|
96
|
+
var VERTICAL_MARGIN = Parameters.get({
|
|
97
|
+
name: "_sap_m_Dialog_VerticalMargin",
|
|
98
|
+
callback: function(sValue) {
|
|
99
|
+
VERTICAL_MARGIN = parseFloat(sValue);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
if (VERTICAL_MARGIN) {
|
|
104
|
+
VERTICAL_MARGIN = parseFloat(VERTICAL_MARGIN);
|
|
105
|
+
} else {
|
|
106
|
+
VERTICAL_MARGIN = 3; // default value
|
|
107
|
+
}
|
|
108
|
+
|
|
86
109
|
/**
|
|
87
110
|
* Constructor for a new Dialog.
|
|
88
111
|
*
|
|
@@ -135,7 +158,7 @@ function(
|
|
|
135
158
|
*
|
|
136
159
|
* @implements sap.ui.core.PopupInterface
|
|
137
160
|
* @author SAP SE
|
|
138
|
-
* @version 1.71.
|
|
161
|
+
* @version 1.71.48
|
|
139
162
|
*
|
|
140
163
|
* @constructor
|
|
141
164
|
* @public
|
|
@@ -187,7 +210,9 @@ function(
|
|
|
187
210
|
stretchOnPhone: {type: "boolean", group: "Appearance", defaultValue: false, deprecated: true},
|
|
188
211
|
|
|
189
212
|
/**
|
|
190
|
-
* Determines if the Dialog will be stretched to full screen on mobile.
|
|
213
|
+
* Determines if the Dialog will be stretched to full screen on mobile.
|
|
214
|
+
* On desktop, the Dialog will be stretched to approximately 90% of the viewport.
|
|
215
|
+
* This property is only applicable to a Standard Dialog. Message-type Dialog ignores it.
|
|
191
216
|
* @since 1.13.1
|
|
192
217
|
*/
|
|
193
218
|
stretch: {type: "boolean", group: "Appearance", defaultValue: false},
|
|
@@ -439,7 +464,7 @@ function(
|
|
|
439
464
|
top: that._oManuallySetPosition.y
|
|
440
465
|
};
|
|
441
466
|
} else {
|
|
442
|
-
oPosition.at = that.
|
|
467
|
+
oPosition.at = that._calcPosition();
|
|
443
468
|
}
|
|
444
469
|
|
|
445
470
|
//deregister the content resize handler before repositioning
|
|
@@ -834,9 +859,10 @@ function(
|
|
|
834
859
|
}
|
|
835
860
|
|
|
836
861
|
$this.css(oStyles);
|
|
862
|
+
$this.css(this._calcMaxSizes());
|
|
837
863
|
|
|
838
|
-
if (!
|
|
839
|
-
this.
|
|
864
|
+
if (!this._oManuallySetSize && !this._bDisableRepositioning) {
|
|
865
|
+
$this.css(this._calcPosition());
|
|
840
866
|
}
|
|
841
867
|
|
|
842
868
|
//In Chrome when the dialog is stretched the footer is not rendered in the right position;
|
|
@@ -890,7 +916,7 @@ function(
|
|
|
890
916
|
sContentHeight = this.getContentHeight(),
|
|
891
917
|
sContentWidth = this.getContentWidth(),
|
|
892
918
|
iDialogHeight,
|
|
893
|
-
|
|
919
|
+
iMaxDialogWidth = this._calcMaxSizes().maxWidth, // 90% of the max screen size
|
|
894
920
|
BORDER_THICKNESS = 2, // solves Scrollbar issue in IE when Table is in Dialog// TODO remove after 1.62 version
|
|
895
921
|
oBrowser = Device.browser,
|
|
896
922
|
iTotalChildrenHeight = 0;
|
|
@@ -936,7 +962,7 @@ function(
|
|
|
936
962
|
if (this._hasVerticalScrollbar() && // - there is a vertical scroll
|
|
937
963
|
(!sContentWidth || sContentWidth == 'auto') && // - when the developer hasn't set it explicitly
|
|
938
964
|
!this.getStretch() && // - when the dialog is not stretched
|
|
939
|
-
$dialogContent.width() <
|
|
965
|
+
$dialogContent.width() < iMaxDialogWidth) { // - if the dialog can't grow anymore
|
|
940
966
|
|
|
941
967
|
$dialog.addClass("sapMDialogVerticalScrollIncluded");
|
|
942
968
|
$dialogContent.css({"padding-right" : iScrollbarWidth});
|
|
@@ -949,8 +975,8 @@ function(
|
|
|
949
975
|
}
|
|
950
976
|
}
|
|
951
977
|
|
|
952
|
-
if (!this.
|
|
953
|
-
this.
|
|
978
|
+
if (!this._oManuallySetSize && !this._bDisableRepositioning) {
|
|
979
|
+
this._positionDialog();
|
|
954
980
|
}
|
|
955
981
|
};
|
|
956
982
|
|
|
@@ -972,32 +998,116 @@ function(
|
|
|
972
998
|
};
|
|
973
999
|
|
|
974
1000
|
/**
|
|
975
|
-
*
|
|
1001
|
+
* Positions the dialog in the center of designated area, or stretches it.
|
|
1002
|
+
* Max sizes are also added.
|
|
976
1003
|
*
|
|
977
1004
|
* @private
|
|
978
1005
|
*/
|
|
979
|
-
Dialog.prototype.
|
|
980
|
-
this.$()
|
|
1006
|
+
Dialog.prototype._positionDialog = function() {
|
|
1007
|
+
var $this = this.$();
|
|
1008
|
+
|
|
1009
|
+
$this.css(this._calcMaxSizes());
|
|
1010
|
+
$this.css(this._calcPosition());
|
|
981
1011
|
};
|
|
982
1012
|
|
|
983
1013
|
/**
|
|
984
|
-
* Calculates "left" and "top" positions, so the dialog is centered.
|
|
1014
|
+
* Calculates "left" side ("right" side in RTL mode) and "top" positions, so the dialog is centered.
|
|
985
1015
|
*
|
|
1016
|
+
* @returns {object} Object that has "left" side ("right" side in RTL mode) and "top" positions of the dialog
|
|
986
1017
|
* @private
|
|
987
1018
|
*/
|
|
988
|
-
Dialog.prototype.
|
|
989
|
-
var
|
|
990
|
-
windowHeight = window.innerHeight,
|
|
1019
|
+
Dialog.prototype._calcPosition = function () {
|
|
1020
|
+
var oAreaDimensions = this._getAreaDimensions(),
|
|
991
1021
|
$this = this.$(),
|
|
992
|
-
|
|
993
|
-
|
|
1022
|
+
iLeft,
|
|
1023
|
+
iTop,
|
|
1024
|
+
oPosition;
|
|
1025
|
+
|
|
1026
|
+
if (Device.system.phone && this.getStretch()) {
|
|
1027
|
+
iLeft = 0;
|
|
1028
|
+
iTop = 0;
|
|
1029
|
+
} else if (this.getStretch()) {
|
|
1030
|
+
iLeft = this._percentOfSize(oAreaDimensions.width, HORIZONTAL_MARGIN); // 5% from left
|
|
1031
|
+
iTop = this._percentOfSize(oAreaDimensions.height, VERTICAL_MARGIN); // 3% from top
|
|
1032
|
+
} else {
|
|
1033
|
+
iLeft = (oAreaDimensions.width - $this.outerWidth()) / 2;
|
|
1034
|
+
iTop = (oAreaDimensions.height - $this.outerHeight()) / 2;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
oPosition = {
|
|
1038
|
+
top: Math.round(oAreaDimensions.top + iTop)
|
|
1039
|
+
};
|
|
1040
|
+
oPosition[this._bRTL ? "right" : "left"] = Math.round(oAreaDimensions.left + iLeft);
|
|
1041
|
+
|
|
1042
|
+
return oPosition;
|
|
1043
|
+
};
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Calculates maximum width and height
|
|
1047
|
+
* @private
|
|
1048
|
+
* @returns {object} Object that contains 'maxHeight' and 'maxWidth'
|
|
1049
|
+
*/
|
|
1050
|
+
Dialog.prototype._calcMaxSizes = function () {
|
|
1051
|
+
var oAreaDimensions = this._getAreaDimensions(),
|
|
1052
|
+
$this = this.$(),
|
|
1053
|
+
iHeaderHeight = $this.find(".sapMDialogTitle").height() || 0,
|
|
1054
|
+
iSubHeaderHeight = $this.find(".sapMDialogSubHeader").height() || 0,
|
|
1055
|
+
iFooterHeight = $this.find("footer").height() || 0,
|
|
1056
|
+
iHeightAsPadding = iHeaderHeight + iSubHeaderHeight + iFooterHeight,
|
|
1057
|
+
iMaxHeight,
|
|
1058
|
+
iMaxWidth;
|
|
1059
|
+
|
|
1060
|
+
if (Device.system.phone && this.getStretch()) {
|
|
1061
|
+
iMaxWidth = oAreaDimensions.width;
|
|
1062
|
+
iMaxHeight = oAreaDimensions.height - iHeightAsPadding;
|
|
1063
|
+
} else {
|
|
1064
|
+
iMaxWidth = this._percentOfSize(oAreaDimensions.width, 100 - 2 * HORIZONTAL_MARGIN); // 90% of available width
|
|
1065
|
+
iMaxHeight = this._percentOfSize(oAreaDimensions.height, 100 - 2 * VERTICAL_MARGIN) - iHeightAsPadding; // 94% of available height minus paddings for headers and footer
|
|
1066
|
+
}
|
|
994
1067
|
|
|
995
1068
|
return {
|
|
996
|
-
|
|
997
|
-
|
|
1069
|
+
maxWidth: Math.floor(iMaxWidth),
|
|
1070
|
+
maxHeight: Math.floor(iMaxHeight)
|
|
998
1071
|
};
|
|
999
1072
|
};
|
|
1000
1073
|
|
|
1074
|
+
/**
|
|
1075
|
+
* @returns {object} Object that has dimensions of the area in which the dialog is positioned
|
|
1076
|
+
* @private
|
|
1077
|
+
*/
|
|
1078
|
+
Dialog.prototype._getAreaDimensions = function() {
|
|
1079
|
+
var oWithin = Popup.getWithinAreaDomRef(),
|
|
1080
|
+
oAreaDimensions;
|
|
1081
|
+
|
|
1082
|
+
if (oWithin === window) {
|
|
1083
|
+
oAreaDimensions = {
|
|
1084
|
+
left: 0,
|
|
1085
|
+
top: 0,
|
|
1086
|
+
width: oWithin.innerWidth,
|
|
1087
|
+
height: oWithin.innerHeight
|
|
1088
|
+
};
|
|
1089
|
+
} else {
|
|
1090
|
+
var oClientRect = oWithin.getBoundingClientRect(),
|
|
1091
|
+
$within = jQuery(oWithin);
|
|
1092
|
+
|
|
1093
|
+
oAreaDimensions = {
|
|
1094
|
+
left: oClientRect.left + parseFloat($within.css("border-left-width")),
|
|
1095
|
+
top: oClientRect.top + parseFloat($within.css("border-top-width")),
|
|
1096
|
+
width: oWithin.clientWidth,
|
|
1097
|
+
height: oWithin.clientHeight
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
oAreaDimensions.right = oAreaDimensions.left + oAreaDimensions.width;
|
|
1102
|
+
oAreaDimensions.bottom = oAreaDimensions.top + oAreaDimensions.height;
|
|
1103
|
+
|
|
1104
|
+
return oAreaDimensions;
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
Dialog.prototype._percentOfSize = function (iSize, iPercent) {
|
|
1108
|
+
return Math.round(iSize * iPercent / 100);
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1001
1111
|
/**
|
|
1002
1112
|
*
|
|
1003
1113
|
* @private
|
|
@@ -1311,12 +1421,19 @@ function(
|
|
|
1311
1421
|
* @private
|
|
1312
1422
|
*/
|
|
1313
1423
|
Dialog.prototype._deregisterResizeHandler = function () {
|
|
1424
|
+
var oWithin = Popup.getWithinAreaDomRef();
|
|
1425
|
+
|
|
1314
1426
|
if (this._resizeListenerId) {
|
|
1315
1427
|
ResizeHandler.deregister(this._resizeListenerId);
|
|
1316
1428
|
this._resizeListenerId = null;
|
|
1317
1429
|
}
|
|
1318
1430
|
|
|
1319
|
-
|
|
1431
|
+
if (oWithin === window) {
|
|
1432
|
+
Device.resize.detachHandler(this._onResize, this);
|
|
1433
|
+
} else {
|
|
1434
|
+
ResizeHandler.deregister(this._withinResizeListenerId);
|
|
1435
|
+
this._withinResizeListenerId = null;
|
|
1436
|
+
}
|
|
1320
1437
|
};
|
|
1321
1438
|
|
|
1322
1439
|
/**
|
|
@@ -1324,15 +1441,18 @@ function(
|
|
|
1324
1441
|
* @private
|
|
1325
1442
|
*/
|
|
1326
1443
|
Dialog.prototype._registerResizeHandler = function () {
|
|
1327
|
-
var _$srollSontent = this.$("scroll")
|
|
1444
|
+
var _$srollSontent = this.$("scroll"),
|
|
1445
|
+
oWithin = Popup.getWithinAreaDomRef();
|
|
1328
1446
|
|
|
1329
1447
|
//The content have to have explicit size so the scroll will work when the user's content is larger than the available space.
|
|
1330
|
-
//This can be removed and the layout change to flex when the support for IE9 is dropped// TODO remove after
|
|
1448
|
+
//This can be removed and the layout change to flex when the support for IE9 is dropped// TODO remove after the end of support for Internet Explorer
|
|
1331
1449
|
this._resizeListenerId = ResizeHandler.register(_$srollSontent.get(0), jQuery.proxy(this._onResize, this));
|
|
1332
|
-
Device.resize.attachHandler(this._onResize, this);
|
|
1333
1450
|
|
|
1334
|
-
|
|
1335
|
-
|
|
1451
|
+
if (oWithin === window) {
|
|
1452
|
+
Device.resize.attachHandler(this._onResize, this);
|
|
1453
|
+
} else {
|
|
1454
|
+
this._withinResizeListenerId = ResizeHandler.register(oWithin, this._onResize.bind(this));
|
|
1455
|
+
}
|
|
1336
1456
|
};
|
|
1337
1457
|
|
|
1338
1458
|
/**
|
|
@@ -1742,14 +1862,12 @@ function(
|
|
|
1742
1862
|
/* end: setters */
|
|
1743
1863
|
/* =========================================================== */
|
|
1744
1864
|
|
|
1745
|
-
Dialog.prototype.forceInvalidate = Control.prototype.invalidate;
|
|
1746
|
-
|
|
1747
1865
|
// stop propagating the invalidate to static UIArea before dialog is opened.
|
|
1748
1866
|
// otherwise the open animation can't be seen
|
|
1749
1867
|
// dialog will be rendered directly to static ui area when the open method is called.
|
|
1750
1868
|
Dialog.prototype.invalidate = function (oOrigin) {
|
|
1751
1869
|
if (this.isOpen()) {
|
|
1752
|
-
|
|
1870
|
+
Control.prototype.invalidate.call(this, oOrigin);
|
|
1753
1871
|
}
|
|
1754
1872
|
};
|
|
1755
1873
|
|
|
@@ -1800,8 +1918,7 @@ function(
|
|
|
1800
1918
|
};
|
|
1801
1919
|
|
|
1802
1920
|
/**
|
|
1803
|
-
*
|
|
1804
|
-
* @param {Object} e
|
|
1921
|
+
* @param {jQuery.Event} e The mousedown event
|
|
1805
1922
|
*/
|
|
1806
1923
|
Dialog.prototype.onmousedown = function (e) {
|
|
1807
1924
|
if (e.which === 3) {
|
|
@@ -1822,8 +1939,8 @@ function(
|
|
|
1822
1939
|
}, 0);
|
|
1823
1940
|
};
|
|
1824
1941
|
|
|
1825
|
-
var
|
|
1826
|
-
|
|
1942
|
+
var oAreaDimensions = this._getAreaDimensions();
|
|
1943
|
+
|
|
1827
1944
|
var initial = {
|
|
1828
1945
|
x: e.pageX,
|
|
1829
1946
|
y: e.pageY,
|
|
@@ -1872,8 +1989,8 @@ function(
|
|
|
1872
1989
|
|
|
1873
1990
|
//set the new position of the dialog on mouse down when the transform is disabled by the class
|
|
1874
1991
|
that._$dialog.css({
|
|
1875
|
-
left: Math.min(Math.max(
|
|
1876
|
-
top: Math.min(Math.max(
|
|
1992
|
+
left: Math.min(Math.max(oAreaDimensions.left, that._oManuallySetPosition.x), oAreaDimensions.right - initial.width),
|
|
1993
|
+
top: Math.min(Math.max(oAreaDimensions.top, that._oManuallySetPosition.y), oAreaDimensions.bottom - initial.height),
|
|
1877
1994
|
width: initial.width
|
|
1878
1995
|
});
|
|
1879
1996
|
}
|
|
@@ -1890,19 +2007,19 @@ function(
|
|
|
1890
2007
|
that._bDisableRepositioning = true;
|
|
1891
2008
|
|
|
1892
2009
|
that._oManuallySetPosition = {
|
|
1893
|
-
x: event.pageX - e.pageX + initial.position.x, // deltaX + initial dialog position
|
|
1894
|
-
y: event.pageY - e.pageY + initial.position.y // deltaY + initial dialog position
|
|
2010
|
+
x: Math.max(oAreaDimensions.left, Math.min(event.pageX - e.pageX + initial.position.x, oAreaDimensions.right - initial.width)), // deltaX + initial dialog position
|
|
2011
|
+
y: Math.max(oAreaDimensions.top, Math.min(event.pageY - e.pageY + initial.position.y, oAreaDimensions.bottom - initial.outerHeight)) // deltaY + initial dialog position
|
|
1895
2012
|
};
|
|
1896
2013
|
|
|
1897
2014
|
//move the dialog
|
|
1898
2015
|
that._$dialog.css({
|
|
1899
|
-
|
|
1900
|
-
|
|
2016
|
+
top: that._oManuallySetPosition.y,
|
|
2017
|
+
left: that._oManuallySetPosition.x,
|
|
2018
|
+
right: that._bRTL ? "" : undefined
|
|
1901
2019
|
});
|
|
1902
2020
|
});
|
|
1903
2021
|
});
|
|
1904
2022
|
} else if (bResize) {
|
|
1905
|
-
|
|
1906
2023
|
that._$dialog.addClass('sapMDialogResizing');
|
|
1907
2024
|
|
|
1908
2025
|
var styles = {};
|
|
@@ -1918,12 +2035,12 @@ function(
|
|
|
1918
2035
|
// BCP: 1680048166 remove inline set height and width so that the content resizes together with the mouse pointer
|
|
1919
2036
|
that.$('cont').height('').width('');
|
|
1920
2037
|
|
|
1921
|
-
if (event.pageY + handleOffsetY >
|
|
1922
|
-
event.pageY =
|
|
2038
|
+
if (event.pageY + handleOffsetY > oAreaDimensions.bottom) {
|
|
2039
|
+
event.pageY = oAreaDimensions.bottom - handleOffsetY;
|
|
1923
2040
|
}
|
|
1924
2041
|
|
|
1925
|
-
if (event.pageX + handleOffsetX >
|
|
1926
|
-
event.pageX =
|
|
2042
|
+
if (event.pageX + handleOffsetX > oAreaDimensions.right) {
|
|
2043
|
+
event.pageX = oAreaDimensions.right - handleOffsetX;
|
|
1927
2044
|
}
|
|
1928
2045
|
|
|
1929
2046
|
that._oManuallySetSize = {
|
|
@@ -88,7 +88,8 @@ sap.ui.define(["sap/m/library", "sap/ui/Device", "sap/ui/core/library"],
|
|
|
88
88
|
// No Footer
|
|
89
89
|
var noToolbarAndNobuttons = !oControl._oToolbar && !oLeftButton && !oRightButton;
|
|
90
90
|
var emptyToolbarAndNoButtons = oControl._oToolbar && oControl._isToolbarEmpty() && !oLeftButton && !oRightButton;
|
|
91
|
-
|
|
91
|
+
var bHiddenFooter = oControl._oToolbar && !oControl._oToolbar.getVisible();
|
|
92
|
+
if (noToolbarAndNobuttons || emptyToolbarAndNoButtons || bHiddenFooter) {
|
|
92
93
|
oRm.addClass("sapMDialog-NoFooter");
|
|
93
94
|
}
|
|
94
95
|
|
|
@@ -212,7 +213,7 @@ sap.ui.define(["sap/m/library", "sap/ui/Device", "sap/ui/core/library"],
|
|
|
212
213
|
oRm.write("</div>");
|
|
213
214
|
oRm.write("</section>");
|
|
214
215
|
|
|
215
|
-
if (!
|
|
216
|
+
if (!noToolbarAndNobuttons && !emptyToolbarAndNoButtons && !bHiddenFooter) {
|
|
216
217
|
oRm.write("<footer");
|
|
217
218
|
oRm.addClass("sapMDialogFooter");
|
|
218
219
|
oRm.writeClasses();
|
package/src/sap/m/FacetFilter.js
CHANGED
|
@@ -20,7 +20,7 @@ sap.ui.define(['./ListItemBase', './library', './FacetFilterItemRenderer'],
|
|
|
20
20
|
* @class
|
|
21
21
|
* Represents a value for the {@link sap.m.FacetFilterList} control.
|
|
22
22
|
* @extends sap.m.ListItemBase
|
|
23
|
-
* @version 1.71.
|
|
23
|
+
* @version 1.71.48
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @public
|
package/src/sap/m/FeedContent.js
CHANGED
package/src/sap/m/FeedInput.js
CHANGED
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
*
|
|
27
27
|
*
|
|
28
28
|
* @class text
|
|
29
|
-
* @version 1.71.
|
|
29
|
+
* @version 1.71.48
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.38
|
|
32
32
|
* @alias HeaderAdapter
|
|
@@ -226,7 +226,7 @@ sap.ui.define([
|
|
|
226
226
|
* Constructor for an sap.m.Fiori20Adapter.
|
|
227
227
|
*
|
|
228
228
|
* @class text
|
|
229
|
-
* @version 1.71.
|
|
229
|
+
* @version 1.71.48
|
|
230
230
|
* @private
|
|
231
231
|
* @since 1.38
|
|
232
232
|
* @alias sap.m.Fiori20Adapter
|
package/src/sap/m/FlexBox.js
CHANGED
|
@@ -24,7 +24,7 @@ sap.ui.define(['./FlexBoxStylingHelper', './library', 'sap/ui/core/LayoutData'],
|
|
|
24
24
|
* @class
|
|
25
25
|
* Holds layout data for a FlexBox / HBox / VBox.
|
|
26
26
|
* @extends sap.ui.core.LayoutData
|
|
27
|
-
* @version 1.71.
|
|
27
|
+
* @version 1.71.48
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
@@ -41,7 +41,7 @@ function(
|
|
|
41
41
|
* @class
|
|
42
42
|
* The FormattedText control allows the usage of a limited set of tags for inline display of formatted text in HTML format.
|
|
43
43
|
* @extends sap.ui.core.Control
|
|
44
|
-
* @version 1.71.
|
|
44
|
+
* @version 1.71.48
|
|
45
45
|
*
|
|
46
46
|
* @constructor
|
|
47
47
|
* @public
|
package/src/sap/m/GenericTag.js
CHANGED
package/src/sap/m/GenericTile.js
CHANGED
|
@@ -180,12 +180,8 @@ sap.ui.define([
|
|
|
180
180
|
// if max item count not reached or if we do not know the count
|
|
181
181
|
var oBinding = this._oControl.getBinding("items");
|
|
182
182
|
if (oBinding && !oBinding.isLengthFinal() || this._iLimit < this._oControl.getMaxItemsCount()) {
|
|
183
|
-
//
|
|
184
|
-
|
|
185
|
-
this._bParentEnableBusyIndicator = this._oControl.getEnableBusyIndicator();
|
|
186
|
-
this._oControl.setEnableBusyIndicator(false);
|
|
187
|
-
}
|
|
188
|
-
|
|
183
|
+
// block busy indicator animation from the ListBase
|
|
184
|
+
this._oControl._bBusy = true;
|
|
189
185
|
this._iLimit += this._oControl.getGrowingThreshold();
|
|
190
186
|
this._updateTriggerDelayed(true);
|
|
191
187
|
this.updateItems("Growing");
|
|
@@ -203,11 +199,6 @@ sap.ui.define([
|
|
|
203
199
|
this._bLoading = false;
|
|
204
200
|
this._updateTriggerDelayed(false);
|
|
205
201
|
this._oControl.onAfterPageLoaded(this.getInfo(), sChangeReason);
|
|
206
|
-
|
|
207
|
-
// After the data has been loaded, restore the busy indicator handling of the parent control.
|
|
208
|
-
if (this._oControl.setEnableBusyIndicator) {
|
|
209
|
-
this._oControl.setEnableBusyIndicator(this._bParentEnableBusyIndicator);
|
|
210
|
-
}
|
|
211
202
|
},
|
|
212
203
|
|
|
213
204
|
// created and returns load more trigger
|
package/src/sap/m/GrowingList.js
CHANGED
package/src/sap/m/HBox.js
CHANGED
package/src/sap/m/IconTabBar.js
CHANGED