@openui5/sap.m 1.96.19 → 1.96.21
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/Avatar.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/ColumnPopoverSelectListItem.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/CustomDynamicDateOption.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/DynamicDate.js +1 -1
- package/src/sap/m/DynamicDateOption.js +1 -1
- package/src/sap/m/DynamicDateRange.js +1 -1
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.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 +4 -3
- 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 -4
- 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/IconTabFilterExpandButtonBadge.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 +80 -15
- 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 +7 -16
- 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/NotificationList.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/NumericInput.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 +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 +1 -1
- 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 +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 +1 -1
- 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/SelectDialogBase.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/StandardDynamicDateOption.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/TabContainerRenderer.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/TableRenderer.js +2 -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/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +1 -1
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.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/ValueStateHeader.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/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.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/SelectIconTabBarFilter.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_ar.properties +1 -1
- package/src/sap/m/messagebundle_bg.properties +11 -11
- package/src/sap/m/messagebundle_da.properties +6 -6
- package/src/sap/m/messagebundle_no.properties +5 -5
- package/src/sap/m/messagebundle_ro.properties +6 -6
- package/src/sap/m/messagebundle_sl.properties +9 -9
- package/src/sap/m/messagebundle_sv.properties +4 -4
- package/src/sap/m/messagebundle_th.properties +6 -6
- package/src/sap/m/p13n/AbstractContainer.js +2 -2
- package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
- package/src/sap/m/p13n/BasePanel.js +1 -1
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionPanel.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +1 -1
- package/src/sap/m/plugins/ColumnResizer.js +1 -1
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +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/SemanticOverflowToolbarToggleButton.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/table/Util.js +1 -1
- package/src/sap/m/upload/UploadSet.js +2 -2
- package/src/sap/m/upload/UploadSetItem.js +1 -1
|
@@ -154,9 +154,7 @@ sap.ui.define([
|
|
|
154
154
|
},
|
|
155
155
|
|
|
156
156
|
onScrollToLoad: function() {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
if (this._bLoading || !oTriggerButton || oTriggerButton.style.display != "none") {
|
|
157
|
+
if (this._bLoading) {
|
|
160
158
|
return;
|
|
161
159
|
}
|
|
162
160
|
|
|
@@ -637,7 +635,7 @@ sap.ui.define([
|
|
|
637
635
|
|
|
638
636
|
// put the focus to the newly added item if growing button is pressed
|
|
639
637
|
if (oTriggerDomRef && oTriggerDomRef.contains(document.activeElement)) {
|
|
640
|
-
(aItems[this._iLastItemsCount] || oControl).focus();
|
|
638
|
+
(aItems[this._iLastItemsCount] || aItems[iItemsLength - 1] || oControl).focus();
|
|
641
639
|
}
|
|
642
640
|
|
|
643
641
|
// show, update or hide the growing button
|
package/src/sap/m/GrowingList.js
CHANGED
package/src/sap/m/HBox.js
CHANGED
package/src/sap/m/IconTabBar.js
CHANGED
package/src/sap/m/Image.js
CHANGED
package/src/sap/m/Input.js
CHANGED
|
@@ -159,7 +159,7 @@ function(
|
|
|
159
159
|
*
|
|
160
160
|
* @extends sap.m.InputBase
|
|
161
161
|
* @author SAP SE
|
|
162
|
-
* @version 1.96.
|
|
162
|
+
* @version 1.96.21
|
|
163
163
|
*
|
|
164
164
|
* @constructor
|
|
165
165
|
* @public
|
|
@@ -1466,7 +1466,7 @@ function(
|
|
|
1466
1466
|
|
|
1467
1467
|
this.bValueHelpRequested = false;
|
|
1468
1468
|
|
|
1469
|
-
if (!this.
|
|
1469
|
+
if (!this._getProposedItemText() || this.isMobileDevice()) {
|
|
1470
1470
|
return;
|
|
1471
1471
|
}
|
|
1472
1472
|
|
|
@@ -1481,7 +1481,7 @@ function(
|
|
|
1481
1481
|
// but there is a proposed item due to the typeahead
|
|
1482
1482
|
var oSelectedItem = this.getSuggestionItems()
|
|
1483
1483
|
.filter(function (oItem) {
|
|
1484
|
-
return oItem.getText() === this.
|
|
1484
|
+
return oItem.getText() === this._getProposedItemText();
|
|
1485
1485
|
}.bind(this))[0];
|
|
1486
1486
|
|
|
1487
1487
|
if (oSelectedItem) {
|
|
@@ -1550,8 +1550,7 @@ function(
|
|
|
1550
1550
|
};
|
|
1551
1551
|
|
|
1552
1552
|
/**
|
|
1553
|
-
* Updates the selection, when the picker is
|
|
1554
|
-
* was updated, while navigating.
|
|
1553
|
+
* Updates the selection, when the picker closes and there is selected item/row in the list/table.
|
|
1555
1554
|
*
|
|
1556
1555
|
* @param {sap.m.StandardListItem | sap.m.ColumnListItem | sap.m.GroupHeaderListItem} oSelectedItem The selected from navigation item
|
|
1557
1556
|
* @private
|
|
@@ -1782,10 +1781,21 @@ function(
|
|
|
1782
1781
|
Input.prototype.onkeyup = function (oEvent) {
|
|
1783
1782
|
var sValue = this.getValue();
|
|
1784
1783
|
var sLastValue = this.getLastValue();
|
|
1784
|
+
var bIsNavigationKey = (oEvent.which === KeyCodes.ARROW_DOWN) || (oEvent.which === KeyCodes.ARROW_UP);
|
|
1785
|
+
var oSuggestionsPopover, oItemsContainer, oSelectedItem;
|
|
1785
1786
|
|
|
1786
|
-
if (
|
|
1787
|
+
if (!this._bDoTypeAhead && !sValue) {
|
|
1787
1788
|
this.getShowSuggestion() && this.setSelectedKey(null);
|
|
1788
1789
|
(sLastValue !== sValue) && this.setLastValue(sLastValue);
|
|
1790
|
+
} else if (!this._bDoTypeAhead && !bIsNavigationKey && sValue) {
|
|
1791
|
+
oSuggestionsPopover = this.getShowSuggestion() && this._getSuggestionsPopover();
|
|
1792
|
+
oItemsContainer = oSuggestionsPopover && oSuggestionsPopover.getItemsContainer();
|
|
1793
|
+
oSelectedItem = oItemsContainer && oItemsContainer.getSelectedItem();
|
|
1794
|
+
|
|
1795
|
+
this._setProposedItemText(null);
|
|
1796
|
+
if (oSelectedItem) {
|
|
1797
|
+
oSelectedItem.setSelected(false);
|
|
1798
|
+
}
|
|
1789
1799
|
}
|
|
1790
1800
|
|
|
1791
1801
|
this.getShowClearIcon() && this.setProperty("effectiveShowClearIcon", !!sValue);
|
|
@@ -2133,19 +2143,24 @@ function(
|
|
|
2133
2143
|
/**
|
|
2134
2144
|
* Handles Input's specific type ahead logic.
|
|
2135
2145
|
*
|
|
2136
|
-
* @param
|
|
2146
|
+
* @param {sap.m.Input} oInput Input's instance to which the type ahead would be applied. For example: this OR Dialog's Input instance.
|
|
2147
|
+
* @returns {null|object} Map object containing type-ahead info or null if no type-ahead is performed.
|
|
2137
2148
|
* @private
|
|
2138
2149
|
*/
|
|
2139
2150
|
Input.prototype._handleTypeAhead = function (oInput) {
|
|
2140
2151
|
var sValue = this.getValue();
|
|
2152
|
+
var mTypeAheadInfo = {
|
|
2153
|
+
value: "",
|
|
2154
|
+
selectedItem: null
|
|
2155
|
+
};
|
|
2141
2156
|
|
|
2142
2157
|
// check if typeahead is already performed
|
|
2143
|
-
if ((oInput && oInput.getValue().toLowerCase()) === (this.
|
|
2158
|
+
if ((oInput && oInput.getValue().toLowerCase()) === (this._getProposedItemText() && this._getProposedItemText().toLowerCase())) {
|
|
2144
2159
|
return;
|
|
2145
2160
|
}
|
|
2146
2161
|
|
|
2147
2162
|
this._setTypedInValue(sValue);
|
|
2148
|
-
oInput.
|
|
2163
|
+
oInput._setProposedItemText(null);
|
|
2149
2164
|
|
|
2150
2165
|
if (!this._bDoTypeAhead || sValue === "" ||
|
|
2151
2166
|
sValue.length < this.getStartSuggestion() || document.activeElement !== this.getFocusDomRef()) {
|
|
@@ -2166,7 +2181,12 @@ function(
|
|
|
2166
2181
|
return this._formatTypedAheadValue(fnExtractText(oItem));
|
|
2167
2182
|
}.bind(this));
|
|
2168
2183
|
|
|
2169
|
-
|
|
2184
|
+
mTypeAheadInfo.value = fnExtractText(aItemsToSelect[0]);
|
|
2185
|
+
mTypeAheadInfo.selectedItem = aItemsToSelect[0];
|
|
2186
|
+
|
|
2187
|
+
oInput._setProposedItemText(mTypeAheadInfo.value);
|
|
2188
|
+
|
|
2189
|
+
return mTypeAheadInfo;
|
|
2170
2190
|
};
|
|
2171
2191
|
|
|
2172
2192
|
/**
|
|
@@ -2178,7 +2198,7 @@ function(
|
|
|
2178
2198
|
Input.prototype._resetTypeAhead = function (oInput) {
|
|
2179
2199
|
oInput = oInput || this;
|
|
2180
2200
|
|
|
2181
|
-
oInput.
|
|
2201
|
+
oInput._setProposedItemText(null);
|
|
2182
2202
|
this._setTypedInValue('');
|
|
2183
2203
|
};
|
|
2184
2204
|
|
|
@@ -2774,7 +2794,7 @@ function(
|
|
|
2774
2794
|
|
|
2775
2795
|
oInput.addEventDelegate({
|
|
2776
2796
|
onsapenter: function () {
|
|
2777
|
-
this.setValue(this.
|
|
2797
|
+
this.setValue(this._getProposedItemText());
|
|
2778
2798
|
}
|
|
2779
2799
|
}, this);
|
|
2780
2800
|
|
|
@@ -2894,7 +2914,25 @@ function(
|
|
|
2894
2914
|
}, this);
|
|
2895
2915
|
|
|
2896
2916
|
oPopover.attachAfterOpen(function () {
|
|
2897
|
-
|
|
2917
|
+
var mTypeAheadInfo;
|
|
2918
|
+
var oSuggPopover = this.getShowSuggestion() && this._getSuggestionsPopover();
|
|
2919
|
+
var oList = oSuggPopover && oSuggPopover.getItemsContainer();
|
|
2920
|
+
var oItemToBeSelected;
|
|
2921
|
+
|
|
2922
|
+
mTypeAheadInfo = this._handleTypeAhead(this);
|
|
2923
|
+
|
|
2924
|
+
// In case the items were provided on a later stage and the type-ahead was called
|
|
2925
|
+
// when the items were refreshed, there will be no selected item / row in the list,
|
|
2926
|
+
// no matter that we use the first matching item to auto-complete the user's input.
|
|
2927
|
+
// This will, later on, result in no item being added in the selectedItem/Row association.
|
|
2928
|
+
// Here we need to make sure that the first item (which's text was already used) is indeed selected.
|
|
2929
|
+
if (!(this._getProposedItemText() && oList && !oList.getSelectedItem() && mTypeAheadInfo && mTypeAheadInfo.selectedItem)) {
|
|
2930
|
+
return;
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
oItemToBeSelected = this._hasTabularSuggestions() ? mTypeAheadInfo.selectedItem : ListHelpers.getListItem(mTypeAheadInfo.selectedItem);
|
|
2934
|
+
oItemToBeSelected.setSelected(true);
|
|
2935
|
+
this.setSelectionUpdatedFromList(true);
|
|
2898
2936
|
}, this);
|
|
2899
2937
|
|
|
2900
2938
|
if (this.isMobileDevice()) {
|
|
@@ -3217,7 +3255,10 @@ function(
|
|
|
3217
3255
|
oTabularRow.setVisible(bShowItem);
|
|
3218
3256
|
bShowItem && aFilteredItems.push(oTabularRow);
|
|
3219
3257
|
|
|
3220
|
-
if (!bIsAnySuggestionAlreadySelected && bShowItem && this.
|
|
3258
|
+
if (!bIsAnySuggestionAlreadySelected && bShowItem && this._getProposedItemText() === this._getRowResultFunction()(oTabularRow)) {
|
|
3259
|
+
// Setting the row to selected only works in case the items were there prior the user's input
|
|
3260
|
+
// as otherwise there will be no proposed text.
|
|
3261
|
+
// In case the items became available on a later stage, the typeahead functionality will set the selected row.
|
|
3221
3262
|
oTabularRow.setSelected(true);
|
|
3222
3263
|
bIsAnySuggestionAlreadySelected = true;
|
|
3223
3264
|
}
|
|
@@ -3264,7 +3305,10 @@ function(
|
|
|
3264
3305
|
oListItem = ListHelpers.createListItemFromCoreItem(oItem, true);
|
|
3265
3306
|
oList.addItem(oListItem);
|
|
3266
3307
|
|
|
3267
|
-
if (!bIsAnySuggestionAlreadySelected && this.
|
|
3308
|
+
if (!bIsAnySuggestionAlreadySelected && this._getProposedItemText() === oItem.getText()) {
|
|
3309
|
+
// Setting the item to selected only works in case the items were there prior the user's input
|
|
3310
|
+
// as otherwise there will be no proposed text.
|
|
3311
|
+
// In case the items became available on a later stage, the typeahead functionality will set the selected item.
|
|
3268
3312
|
oListItem.setSelected(true);
|
|
3269
3313
|
bIsAnySuggestionAlreadySelected = true;
|
|
3270
3314
|
}
|
|
@@ -3319,6 +3363,27 @@ function(
|
|
|
3319
3363
|
return true;
|
|
3320
3364
|
};
|
|
3321
3365
|
|
|
3366
|
+
/**
|
|
3367
|
+
* Setter for the _sProposedItemText property, representing the text extracted from the proposed item/row.
|
|
3368
|
+
*
|
|
3369
|
+
* @private
|
|
3370
|
+
* @param {string} sProposedText The new proposed text, extracted from the item/row.
|
|
3371
|
+
* @returns {this} <code>this</code> to allow method chaining.
|
|
3372
|
+
*/
|
|
3373
|
+
Input.prototype._setProposedItemText = function (sProposedText) {
|
|
3374
|
+
this._sProposedItemText = sProposedText;
|
|
3375
|
+
return this;
|
|
3376
|
+
};
|
|
3377
|
+
|
|
3378
|
+
/**
|
|
3379
|
+
* Getter for the _sProposedItemText property representing the text extracted from the proposed item/row.
|
|
3380
|
+
*
|
|
3381
|
+
* @private
|
|
3382
|
+
* @returns {string} The text extracted from the proposed item/row.
|
|
3383
|
+
*/
|
|
3384
|
+
Input.prototype._getProposedItemText = function () {
|
|
3385
|
+
return this._sProposedItemText;
|
|
3386
|
+
};
|
|
3322
3387
|
|
|
3323
3388
|
return Input;
|
|
3324
3389
|
|
package/src/sap/m/InputBase.js
CHANGED
package/src/sap/m/Label.js
CHANGED
package/src/sap/m/LightBox.js
CHANGED
package/src/sap/m/Link.js
CHANGED
|
@@ -81,7 +81,7 @@ function(
|
|
|
81
81
|
* @implements sap.ui.core.IShrinkable, sap.ui.core.IFormContent, sap.ui.core.ITitleContent
|
|
82
82
|
*
|
|
83
83
|
* @author SAP SE
|
|
84
|
-
* @version 1.96.
|
|
84
|
+
* @version 1.96.21
|
|
85
85
|
*
|
|
86
86
|
* @constructor
|
|
87
87
|
* @public
|
|
@@ -253,14 +253,6 @@ function(
|
|
|
253
253
|
*/
|
|
254
254
|
Link.prototype.onBeforeRendering = function() {};
|
|
255
255
|
|
|
256
|
-
Link.prototype.onAfterRendering = function() {
|
|
257
|
-
var oAnchorRef = this.getDomRef();
|
|
258
|
-
// TODO: Adjust sap.m.internal.ObjectMarkerCustomLink rendering part of the sap.m.ObjectMarker implementation
|
|
259
|
-
if (oAnchorRef && oAnchorRef.getAttribute("href") == "#") {
|
|
260
|
-
oAnchorRef.onclick = function() { return false; };
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
|
|
264
256
|
/**
|
|
265
257
|
* Handle the key down event for SPACE
|
|
266
258
|
* SHIFT or ESCAPE on pressed SPACE cancels the action
|
|
@@ -327,11 +319,15 @@ function(
|
|
|
327
319
|
* @private
|
|
328
320
|
*/
|
|
329
321
|
Link.prototype._handlePress = function(oEvent) {
|
|
322
|
+
var oTarget = oEvent.target,
|
|
323
|
+
bEmptyHref;
|
|
324
|
+
|
|
330
325
|
if (this.getEnabled()) {
|
|
331
326
|
// mark the event for components that needs to know if the event was handled by the link
|
|
332
327
|
oEvent.setMarked();
|
|
333
328
|
|
|
334
|
-
|
|
329
|
+
bEmptyHref = oTarget.classList.contains("sapMLnk") && oTarget.getAttribute("href") == "#";
|
|
330
|
+
if (!this.firePress({ctrlKey: !!oEvent.ctrlKey, metaKey: !!oEvent.metaKey}) || bEmptyHref) { // fire event and check return value whether default action should be prevented
|
|
335
331
|
oEvent.preventDefault();
|
|
336
332
|
}
|
|
337
333
|
} else { // disabled
|
|
@@ -346,12 +342,7 @@ function(
|
|
|
346
342
|
* @private
|
|
347
343
|
*/
|
|
348
344
|
Link.prototype.onsapenter = Link.prototype._handlePress;
|
|
349
|
-
|
|
350
|
-
if (Device.support.touch) {
|
|
351
|
-
Link.prototype.ontap = Link.prototype._handlePress;
|
|
352
|
-
} else {
|
|
353
|
-
Link.prototype.onclick = Link.prototype._handlePress;
|
|
354
|
-
}
|
|
345
|
+
Link.prototype.onclick = Link.prototype._handlePress;
|
|
355
346
|
|
|
356
347
|
/**
|
|
357
348
|
* Handles the touch event on mobile devices.
|
package/src/sap/m/List.js
CHANGED
package/src/sap/m/ListBase.js
CHANGED
package/src/sap/m/MaskEnabler.js
CHANGED
package/src/sap/m/MaskInput.js
CHANGED
package/src/sap/m/Menu.js
CHANGED
package/src/sap/m/MenuButton.js
CHANGED
package/src/sap/m/MenuItem.js
CHANGED
package/src/sap/m/MessageItem.js
CHANGED
package/src/sap/m/MessagePage.js
CHANGED
|
@@ -70,7 +70,7 @@ sap.ui.define([
|
|
|
70
70
|
* The message toast has the same behavior on all devices. However, you can adjust the width of the control, for example, for use on a desktop device.
|
|
71
71
|
*
|
|
72
72
|
* @author SAP SE
|
|
73
|
-
* @version 1.96.
|
|
73
|
+
* @version 1.96.21
|
|
74
74
|
*
|
|
75
75
|
* @namespace
|
|
76
76
|
* @public
|
package/src/sap/m/MessageView.js
CHANGED
|
@@ -112,7 +112,7 @@ sap.ui.define([
|
|
|
112
112
|
* The responsiveness of the <code>MessageView</code> is determined by the container in which it is embedded. For that reason the control could not be visualized if the
|
|
113
113
|
* container’s sizes are not defined.
|
|
114
114
|
* @author SAP SE
|
|
115
|
-
* @version 1.96.
|
|
115
|
+
* @version 1.96.21
|
|
116
116
|
*
|
|
117
117
|
* @extends sap.ui.core.Control
|
|
118
118
|
* @constructor
|
|
@@ -17,7 +17,7 @@ sap.ui.define(["sap/ui/core/XMLComposite", "./library", "sap/ui/core/Item"], fun
|
|
|
17
17
|
* @implements sap.ui.core.IFormContent
|
|
18
18
|
*
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.96.
|
|
20
|
+
* @version 1.96.21
|
|
21
21
|
* @experimental since 1.52
|
|
22
22
|
* @since 1.52.0
|
|
23
23
|
* @alias sap.m.MultiEditField
|