@openui5/sap.m 1.105.1 → 1.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +20 -17
- package/THIRDPARTY.txt +31 -21
- package/package.json +4 -4
- package/src/sap/m/.library +20 -1
- package/src/sap/m/AccButton.js +4 -3
- package/src/sap/m/ActionListItem.js +14 -11
- package/src/sap/m/ActionSelect.js +14 -11
- package/src/sap/m/ActionSheet.js +103 -101
- package/src/sap/m/ActionSheetRenderer.js +3 -3
- package/src/sap/m/ActionTile.js +90 -0
- package/src/sap/m/ActionTileContent.js +71 -0
- package/src/sap/m/ActionTileContentRenderer.js +108 -0
- package/src/sap/m/App.js +107 -104
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +4 -3
- package/src/sap/m/AvatarColor.js +0 -1
- package/src/sap/m/AvatarImageFitType.js +0 -1
- package/src/sap/m/AvatarShape.js +0 -1
- package/src/sap/m/AvatarSize.js +0 -1
- package/src/sap/m/AvatarType.js +0 -1
- package/src/sap/m/Bar.js +103 -89
- package/src/sap/m/BarRenderer.js +3 -3
- package/src/sap/m/Breadcrumbs.js +4 -3
- package/src/sap/m/BusyDialog.js +1 -2
- package/src/sap/m/BusyIndicator.js +76 -73
- package/src/sap/m/Button.js +123 -120
- package/src/sap/m/Carousel.js +148 -147
- package/src/sap/m/CarouselLayout.js +1 -2
- package/src/sap/m/CarouselRenderer.js +3 -3
- package/src/sap/m/CheckBox.js +178 -175
- package/src/sap/m/CheckBoxRenderer.js +3 -3
- package/src/sap/m/ColorPalette.js +4 -3
- package/src/sap/m/ColorPalettePopover.js +24 -21
- package/src/sap/m/Column.js +5 -6
- package/src/sap/m/ColumnHeaderPopover.js +1 -2
- package/src/sap/m/ColumnListItem.js +39 -50
- package/src/sap/m/ColumnListItemRenderer.js +0 -3
- package/src/sap/m/ColumnPopoverActionItem.js +1 -2
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -2
- package/src/sap/m/ColumnPopoverItem.js +1 -2
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -2
- package/src/sap/m/ComboBox.js +4 -3
- package/src/sap/m/ComboBoxBase.js +3 -4
- package/src/sap/m/ComboBoxTextField.js +4 -3
- package/src/sap/m/CustomAttribute.js +53 -0
- package/src/sap/m/CustomDynamicDateOption.js +1 -2
- package/src/sap/m/CustomListItem.js +24 -21
- package/src/sap/m/CustomTile.js +19 -16
- package/src/sap/m/CustomTreeItem.js +4 -3
- package/src/sap/m/DatePicker.js +148 -143
- package/src/sap/m/DateRangeSelection.js +45 -40
- package/src/sap/m/DateTimeField.js +11 -8
- package/src/sap/m/DateTimeInput.js +147 -142
- package/src/sap/m/DateTimePicker.js +83 -75
- package/src/sap/m/DateTimePickerRenderer.js +1 -1
- package/src/sap/m/Dialog.js +10 -7
- package/src/sap/m/DisplayListItem.js +23 -20
- package/src/sap/m/DraftIndicator.js +4 -3
- package/src/sap/m/DynamicDate.js +1 -1
- package/src/sap/m/DynamicDateFormat.js +4 -3
- package/src/sap/m/DynamicDateOption.js +1 -2
- package/src/sap/m/DynamicDateRange.js +11 -10
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -2
- package/src/sap/m/ExpandableText.js +4 -3
- package/src/sap/m/FacetFilter.js +112 -110
- package/src/sap/m/FacetFilterItem.js +27 -24
- package/src/sap/m/FacetFilterList.js +131 -132
- package/src/sap/m/FeedContent.js +4 -3
- package/src/sap/m/FeedInput.js +136 -133
- package/src/sap/m/FeedListItem.js +9 -6
- package/src/sap/m/FeedListItemAction.js +1 -2
- package/src/sap/m/FeedListItemRenderer.js +3 -3
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +96 -93
- package/src/sap/m/FlexItemData.js +1 -2
- package/src/sap/m/FormattedText.js +4 -3
- package/src/sap/m/GenericTag.js +5 -4
- package/src/sap/m/GenericTile.js +65 -22
- package/src/sap/m/GenericTileLineModeRenderer.js +3 -3
- package/src/sap/m/GenericTileRenderer.js +36 -10
- package/src/sap/m/GroupHeaderListItem.js +35 -32
- package/src/sap/m/GrowingEnablement.js +23 -25
- package/src/sap/m/GrowingList.js +35 -32
- package/src/sap/m/HBox.js +9 -6
- package/src/sap/m/HeaderContainer.js +44 -43
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +232 -229
- package/src/sap/m/IconTabBarDragAndDropUtil.js +5 -4
- package/src/sap/m/IconTabBarSelectList.js +28 -25
- package/src/sap/m/IconTabFilter.js +1 -2
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -2
- package/src/sap/m/IconTabHeader.js +152 -166
- package/src/sap/m/IconTabSeparator.js +1 -2
- package/src/sap/m/IllustratedMessage.js +38 -3
- package/src/sap/m/IllustratedMessageSize.js +0 -1
- package/src/sap/m/IllustratedMessageType.js +0 -1
- package/src/sap/m/Illustration.js +11 -3
- package/src/sap/m/IllustrationPool.js +1 -1
- package/src/sap/m/IllustrationRenderer.js +1 -0
- package/src/sap/m/Image.js +270 -197
- package/src/sap/m/ImageContent.js +4 -3
- package/src/sap/m/ImageRenderer.js +66 -2
- package/src/sap/m/Input.js +375 -367
- package/src/sap/m/InputBase.js +143 -140
- package/src/sap/m/InputBaseRenderer.js +3 -3
- package/src/sap/m/InputListItem.js +26 -23
- package/src/sap/m/InputRenderer.js +4 -4
- package/src/sap/m/InstanceManager.js +6 -6
- package/src/sap/m/Label.js +110 -106
- package/src/sap/m/LightBox.js +5 -6
- package/src/sap/m/LightBoxItem.js +1 -2
- package/src/sap/m/Link.js +182 -179
- package/src/sap/m/LinkRenderer.js +5 -1
- package/src/sap/m/List.js +15 -12
- package/src/sap/m/ListBase.js +452 -458
- package/src/sap/m/ListItemBase.js +116 -107
- package/src/sap/m/ListItemBaseRenderer.js +1 -1
- package/src/sap/m/MaskEnabler.js +5 -5
- package/src/sap/m/MaskInput.js +4 -3
- package/src/sap/m/MaskInputRule.js +1 -2
- package/src/sap/m/Menu.js +1 -2
- package/src/sap/m/MenuButton.js +142 -135
- package/src/sap/m/MenuItem.js +1 -2
- package/src/sap/m/MenuListItem.js +49 -46
- package/src/sap/m/MessageItem.js +1 -2
- package/src/sap/m/MessageListItem.js +4 -3
- package/src/sap/m/MessagePage.js +124 -121
- package/src/sap/m/MessagePopover.js +6 -6
- package/src/sap/m/MessagePopoverItem.js +1 -2
- package/src/sap/m/MessageStrip.js +4 -3
- package/src/sap/m/MessageToast.js +6 -5
- package/src/sap/m/MessageView.js +6 -5
- package/src/sap/m/MultiComboBox.js +84 -87
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +4 -3
- package/src/sap/m/NavContainer.js +6 -15
- package/src/sap/m/NewsContent.js +4 -3
- package/src/sap/m/NotificationList.js +4 -3
- package/src/sap/m/NotificationListBase.js +5 -7
- package/src/sap/m/NotificationListGroup.js +4 -3
- package/src/sap/m/NotificationListItem.js +4 -12
- package/src/sap/m/NumericContent.js +8 -6
- package/src/sap/m/NumericInput.js +1 -1
- package/src/sap/m/NumericInputRenderer.js +3 -3
- package/src/sap/m/ObjectAttribute.js +77 -74
- package/src/sap/m/ObjectAttributeRenderer.js +3 -3
- package/src/sap/m/ObjectHeader.js +385 -380
- package/src/sap/m/ObjectHeaderRenderer.js +4 -3
- package/src/sap/m/ObjectIdentifier.js +111 -103
- package/src/sap/m/ObjectListItem.js +150 -145
- package/src/sap/m/ObjectMarker.js +4 -3
- package/src/sap/m/ObjectNumber.js +90 -87
- package/src/sap/m/ObjectStatus.js +84 -81
- package/src/sap/m/OverflowToolbar.js +4 -3
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopoverControls.js +0 -5
- package/src/sap/m/OverflowToolbarButton.js +2 -3
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -2
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -2
- package/src/sap/m/P13nAnyFilterItem.js +1 -2
- package/src/sap/m/P13nColumnsItem.js +1 -2
- package/src/sap/m/P13nColumnsPanel.js +4 -5
- package/src/sap/m/P13nConditionPanel.js +1 -2
- package/src/sap/m/P13nDialog.js +1 -2
- package/src/sap/m/P13nDimMeasureItem.js +1 -2
- package/src/sap/m/P13nDimMeasurePanel.js +6 -5
- package/src/sap/m/P13nFilterItem.js +1 -2
- package/src/sap/m/P13nFilterPanel.js +1 -2
- package/src/sap/m/P13nGroupItem.js +1 -2
- package/src/sap/m/P13nGroupPanel.js +1 -2
- package/src/sap/m/P13nItem.js +1 -2
- package/src/sap/m/P13nPanel.js +1 -2
- package/src/sap/m/P13nSelectionItem.js +1 -2
- package/src/sap/m/P13nSelectionPanel.js +1 -2
- package/src/sap/m/P13nSortItem.js +1 -2
- package/src/sap/m/P13nSortPanel.js +1 -2
- package/src/sap/m/PDFViewer.js +8 -5
- package/src/sap/m/Page.js +9 -7
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -2
- package/src/sap/m/PagingButton.js +4 -4
- package/src/sap/m/Panel.js +117 -113
- package/src/sap/m/PlanningCalendar.js +6 -7
- package/src/sap/m/PlanningCalendarHeader.js +135 -129
- package/src/sap/m/PlanningCalendarLegend.js +26 -23
- package/src/sap/m/PlanningCalendarRow.js +1 -2
- package/src/sap/m/PlanningCalendarView.js +1 -2
- package/src/sap/m/Popover.js +15 -16
- package/src/sap/m/PopoverRenderer.js +5 -4
- package/src/sap/m/ProgressIndicator.js +85 -82
- package/src/sap/m/ProgressIndicatorRenderer.js +1 -1
- package/src/sap/m/PullToRefresh.js +37 -35
- package/src/sap/m/QuickView.js +1 -2
- package/src/sap/m/QuickViewBase.js +1 -2
- package/src/sap/m/QuickViewCard.js +4 -3
- package/src/sap/m/QuickViewGroup.js +1 -2
- package/src/sap/m/QuickViewGroupElement.js +1 -2
- package/src/sap/m/QuickViewPage.js +1 -2
- package/src/sap/m/RadioButton.js +117 -114
- package/src/sap/m/RadioButtonGroup.js +90 -95
- package/src/sap/m/RangeSlider.js +9 -6
- package/src/sap/m/RangeSliderRenderer.js +2 -2
- package/src/sap/m/RatingIndicator.js +104 -100
- package/src/sap/m/RatingIndicatorRenderer.js +3 -5
- package/src/sap/m/ResponsivePopover.js +209 -209
- package/src/sap/m/ResponsiveScale.js +1 -2
- package/src/sap/m/ScrollBar.js +31 -28
- package/src/sap/m/ScrollContainer.js +9 -7
- package/src/sap/m/SearchField.js +185 -182
- package/src/sap/m/SearchFieldRenderer.js +1 -0
- package/src/sap/m/SegmentedButton.js +120 -118
- package/src/sap/m/SegmentedButtonItem.js +1 -2
- package/src/sap/m/Select.js +23 -10
- package/src/sap/m/SelectDialog.js +22 -17
- package/src/sap/m/SelectDialogBase.js +1 -2
- package/src/sap/m/SelectList.js +4 -3
- package/src/sap/m/SelectionDetails.js +97 -92
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -2
- package/src/sap/m/SelectionDetailsItemLine.js +1 -2
- package/src/sap/m/Shell.js +111 -107
- package/src/sap/m/SimpleFixFlex.js +5 -5
- package/src/sap/m/SinglePlanningCalendar.js +344 -340
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +25 -10
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +8 -7
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +16 -7
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +15 -15
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +5 -4
- package/src/sap/m/SlideTile.js +10 -7
- package/src/sap/m/Slider.js +180 -175
- package/src/sap/m/SliderRenderer.js +4 -4
- package/src/sap/m/SliderTooltip.js +5 -5
- package/src/sap/m/SliderTooltipBase.js +4 -3
- package/src/sap/m/SliderTooltipContainer.js +10 -6
- package/src/sap/m/SplitApp.js +52 -49
- package/src/sap/m/SplitButton.js +103 -96
- package/src/sap/m/SplitContainer.js +407 -422
- package/src/sap/m/StandardDynamicDateOption.js +1 -2
- package/src/sap/m/StandardListItem.js +116 -113
- package/src/sap/m/StandardTile.js +64 -61
- package/src/sap/m/StandardTreeItem.js +20 -17
- package/src/sap/m/StepInput.js +4 -3
- package/src/sap/m/SuggestionItem.js +1 -2
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +79 -74
- package/src/sap/m/SwitchRenderer.js +3 -3
- package/src/sap/m/TabContainer.js +4 -3
- package/src/sap/m/TabContainerItem.js +1 -2
- package/src/sap/m/TabStrip.js +13 -11
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +177 -174
- package/src/sap/m/TablePersoController.js +6 -5
- package/src/sap/m/TablePersoDialog.js +6 -4
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableRenderer.js +1 -1
- package/src/sap/m/TableSelectDialog.js +1 -3
- package/src/sap/m/Text.js +4 -3
- package/src/sap/m/TextArea.js +87 -84
- package/src/sap/m/Tile.js +20 -17
- package/src/sap/m/TileContainer.js +73 -73
- package/src/sap/m/TileContent.js +57 -6
- package/src/sap/m/TimePicker.js +17 -12
- package/src/sap/m/TimePickerClock.js +2 -2
- package/src/sap/m/TimePickerClocks.js +4 -2
- package/src/sap/m/TimePickerClocksRenderer.js +3 -1
- package/src/sap/m/TimePickerInputs.js +4 -2
- package/src/sap/m/TimePickerInternals.js +11 -7
- package/src/sap/m/TimePickerSlider.js +5 -4
- package/src/sap/m/TimePickerSliders.js +11 -7
- package/src/sap/m/TimePickerSlidersRenderer.js +2 -2
- package/src/sap/m/Title.js +109 -106
- package/src/sap/m/TitlePropagationSupport.js +4 -4
- package/src/sap/m/ToDoCardRenderer.js +161 -0
- package/src/sap/m/ToggleButton.js +29 -26
- package/src/sap/m/Token.js +97 -94
- package/src/sap/m/Tokenizer.js +153 -150
- package/src/sap/m/Toolbar.js +104 -101
- package/src/sap/m/ToolbarLayoutData.js +1 -2
- package/src/sap/m/ToolbarSeparator.js +11 -8
- package/src/sap/m/ToolbarSpacer.js +16 -13
- package/src/sap/m/Tree.js +32 -29
- package/src/sap/m/TreeItemBase.js +8 -5
- package/src/sap/m/TreeItemBaseRenderer.js +3 -3
- package/src/sap/m/UploadCollection.js +8 -5
- package/src/sap/m/UploadCollectionItem.js +1 -2
- package/src/sap/m/UploadCollectionParameter.js +1 -2
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -2
- package/src/sap/m/VBox.js +9 -6
- package/src/sap/m/ValueStateHeader.js +1 -2
- package/src/sap/m/VariantItem.js +6 -1
- package/src/sap/m/VariantManagement.js +79 -8
- package/src/sap/m/ViewSettingsCustomItem.js +1 -2
- package/src/sap/m/ViewSettingsCustomTab.js +1 -2
- package/src/sap/m/ViewSettingsDialog.js +189 -188
- package/src/sap/m/ViewSettingsFilterItem.js +1 -2
- package/src/sap/m/ViewSettingsItem.js +1 -2
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +5 -4
- package/src/sap/m/WheelSliderContainer.js +4 -2
- package/src/sap/m/WheelSliderContainerRenderer.js +2 -2
- package/src/sap/m/Wizard.js +13 -3
- package/src/sap/m/WizardProgressNavigator.js +52 -49
- package/src/sap/m/WizardStep.js +6 -3
- package/src/sap/m/_thirdparty/purify.js +1622 -0
- 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 +4 -3
- 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 +40 -116
- package/src/sap/m/messagebundle.properties +22 -10
- package/src/sap/m/messagebundle_ar.properties +20 -6
- package/src/sap/m/messagebundle_bg.properties +19 -5
- package/src/sap/m/messagebundle_ca.properties +19 -5
- package/src/sap/m/messagebundle_cs.properties +30 -16
- package/src/sap/m/messagebundle_cy.properties +19 -5
- package/src/sap/m/messagebundle_da.properties +19 -5
- package/src/sap/m/messagebundle_de.properties +20 -6
- package/src/sap/m/messagebundle_el.properties +19 -5
- package/src/sap/m/messagebundle_en.properties +18 -4
- package/src/sap/m/messagebundle_en_GB.properties +18 -4
- package/src/sap/m/messagebundle_en_US_sappsd.properties +19 -3
- package/src/sap/m/messagebundle_en_US_saprigi.properties +23 -9
- package/src/sap/m/messagebundle_en_US_saptrc.properties +16 -2
- package/src/sap/m/messagebundle_es.properties +19 -5
- package/src/sap/m/messagebundle_es_MX.properties +19 -5
- package/src/sap/m/messagebundle_et.properties +19 -5
- package/src/sap/m/messagebundle_fi.properties +19 -5
- package/src/sap/m/messagebundle_fr.properties +20 -6
- package/src/sap/m/messagebundle_fr_CA.properties +20 -6
- package/src/sap/m/messagebundle_hi.properties +19 -5
- package/src/sap/m/messagebundle_hr.properties +20 -6
- package/src/sap/m/messagebundle_hu.properties +19 -5
- package/src/sap/m/messagebundle_id.properties +19 -5
- package/src/sap/m/messagebundle_it.properties +20 -6
- package/src/sap/m/messagebundle_iw.properties +19 -5
- package/src/sap/m/messagebundle_ja.properties +19 -5
- package/src/sap/m/messagebundle_kk.properties +19 -5
- package/src/sap/m/messagebundle_ko.properties +20 -6
- package/src/sap/m/messagebundle_lt.properties +20 -6
- package/src/sap/m/messagebundle_lv.properties +19 -5
- package/src/sap/m/messagebundle_ms.properties +19 -5
- package/src/sap/m/messagebundle_nl.properties +19 -5
- package/src/sap/m/messagebundle_no.properties +19 -5
- package/src/sap/m/messagebundle_pl.properties +19 -5
- package/src/sap/m/messagebundle_pt.properties +19 -5
- package/src/sap/m/messagebundle_pt_PT.properties +19 -5
- package/src/sap/m/messagebundle_ro.properties +19 -5
- package/src/sap/m/messagebundle_ru.properties +19 -5
- package/src/sap/m/messagebundle_sh.properties +20 -6
- package/src/sap/m/messagebundle_sk.properties +19 -5
- package/src/sap/m/messagebundle_sl.properties +20 -6
- package/src/sap/m/messagebundle_sv.properties +19 -5
- package/src/sap/m/messagebundle_th.properties +19 -5
- package/src/sap/m/messagebundle_tr.properties +19 -5
- package/src/sap/m/messagebundle_uk.properties +19 -5
- package/src/sap/m/messagebundle_vi.properties +19 -5
- package/src/sap/m/messagebundle_zh_CN.properties +19 -5
- package/src/sap/m/messagebundle_zh_TW.properties +19 -5
- 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 +21 -7
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +84 -79
- package/src/sap/m/p13n/GroupController.js +3 -4
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/MetadataHelper.js +8 -0
- package/src/sap/m/p13n/Popup.js +1 -1
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +8 -7
- package/src/sap/m/p13n/SelectionPanel.js +37 -15
- package/src/sap/m/p13n/SortController.js +3 -4
- package/src/sap/m/p13n/SortPanel.js +3 -3
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +1 -1
- package/src/sap/m/p13n/modification/LocalStorageModificationHandler.js +1 -1
- package/src/sap/m/p13n/modification/ModificationHandler.js +11 -0
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
- package/src/sap/m/p13n/modules/UIManager.js +1 -1
- package/src/sap/m/plugins/CellSelector.js +459 -76
- package/src/sap/m/plugins/ColumnResizer.js +1 -2
- package/src/sap/m/plugins/DataStateIndicator.js +1 -2
- package/src/sap/m/plugins/PasteProvider.js +1 -2
- package/src/sap/m/plugins/PluginBase.js +1 -2
- package/src/sap/m/rules/CheckBox.support.js +1 -1
- package/src/sap/m/rules/Image.support.js +1 -1
- package/src/sap/m/rules/Link.support.js +1 -1
- package/src/sap/m/rules/MessagePage.support.js +1 -1
- package/src/sap/m/rules/ObjectHeader.support.js +6 -6
- package/src/sap/m/rules/ObjectListItem.support.js +1 -1
- package/src/sap/m/rules/ObjectMarker.support.js +1 -1
- package/src/sap/m/rules/ObjectStatus.support.js +1 -1
- package/src/sap/m/rules/Panel.support.js +1 -1
- package/src/sap/m/rules/Select.support.js +1 -1
- package/src/sap/m/rules/Table.support.js +3 -3
- package/src/sap/m/semantic/AddAction.js +1 -2
- package/src/sap/m/semantic/CancelAction.js +1 -2
- package/src/sap/m/semantic/DeleteAction.js +1 -2
- package/src/sap/m/semantic/DetailPage.js +1 -2
- package/src/sap/m/semantic/DiscussInJamAction.js +1 -2
- package/src/sap/m/semantic/EditAction.js +1 -2
- package/src/sap/m/semantic/FavoriteAction.js +1 -2
- package/src/sap/m/semantic/FilterAction.js +1 -2
- package/src/sap/m/semantic/FilterSelect.js +1 -2
- package/src/sap/m/semantic/FlagAction.js +1 -2
- package/src/sap/m/semantic/ForwardAction.js +1 -2
- package/src/sap/m/semantic/FullscreenPage.js +1 -2
- package/src/sap/m/semantic/GroupAction.js +1 -2
- package/src/sap/m/semantic/GroupSelect.js +1 -2
- package/src/sap/m/semantic/MainAction.js +1 -2
- package/src/sap/m/semantic/MasterPage.js +1 -2
- package/src/sap/m/semantic/MessagesIndicator.js +1 -2
- package/src/sap/m/semantic/MultiSelectAction.js +1 -2
- package/src/sap/m/semantic/NegativeAction.js +1 -2
- package/src/sap/m/semantic/OpenInAction.js +1 -2
- package/src/sap/m/semantic/PositiveAction.js +1 -2
- package/src/sap/m/semantic/PrintAction.js +1 -2
- package/src/sap/m/semantic/SaveAction.js +1 -2
- package/src/sap/m/semantic/Segment.js +1 -2
- package/src/sap/m/semantic/SegmentedContainer.js +1 -1
- package/src/sap/m/semantic/SemanticButton.js +1 -2
- package/src/sap/m/semantic/SemanticConfiguration.js +1 -2
- package/src/sap/m/semantic/SemanticControl.js +1 -2
- package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -2
- package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -2
- package/src/sap/m/semantic/SemanticPage.js +4 -3
- package/src/sap/m/semantic/SemanticSelect.js +1 -2
- package/src/sap/m/semantic/SemanticToggleButton.js +1 -2
- package/src/sap/m/semantic/SendEmailAction.js +1 -2
- package/src/sap/m/semantic/SendMessageAction.js +1 -2
- package/src/sap/m/semantic/ShareInJamAction.js +1 -2
- package/src/sap/m/semantic/ShareMenu.js +1 -2
- package/src/sap/m/semantic/ShareMenuPage.js +1 -2
- package/src/sap/m/semantic/SortAction.js +1 -2
- package/src/sap/m/semantic/SortSelect.js +1 -2
- package/src/sap/m/table/Util.js +17 -5
- package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/Entry.js +1 -1
- package/src/sap/m/table/columnmenu/Item.js +1 -1
- package/src/sap/m/table/columnmenu/ItemBase.js +2 -2
- package/src/sap/m/table/columnmenu/ItemContainer.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +64 -22
- package/src/sap/m/table/columnmenu/QuickAction.js +16 -8
- package/src/sap/m/table/columnmenu/QuickActionBase.js +19 -4
- package/src/sap/m/table/columnmenu/QuickActionContainer.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionItem.js +5 -6
- package/src/sap/m/table/columnmenu/QuickGroup.js +9 -3
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +6 -4
- package/src/sap/m/table/columnmenu/QuickSortItem.js +11 -12
- package/src/sap/m/table/columnmenu/QuickTotal.js +9 -3
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/ActionTile.less +239 -0
- package/src/sap/m/themes/base/Bar.less +6 -0
- package/src/sap/m/themes/base/Carousel.less +8 -8
- package/src/sap/m/themes/base/CellSelector.less +109 -2
- package/src/sap/m/themes/base/DisplayListItem.less +3 -3
- package/src/sap/m/themes/base/GenericTile.less +7 -0
- package/src/sap/m/themes/base/IconTabBar.less +2 -0
- package/src/sap/m/themes/base/Link.less +4 -0
- package/src/sap/m/themes/base/Page.less +2 -1
- package/src/sap/m/themes/base/library.source.less +1 -0
- package/src/sap/m/upload/UploadSet.js +295 -13
- package/src/sap/m/upload/UploadSetItem.js +1 -2
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/Uploader.js +0 -1
- package/src/sap/m/upload/UploaderHttpRequestMethod.js +0 -1
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
8
|
-
function(library, encodeCSS) {
|
|
7
|
+
sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS", "sap/ui/core/Configuration"],
|
|
8
|
+
function(library, encodeCSS, Configuration) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
// shortcut for sap.m.GenericTileMode
|
|
@@ -48,6 +48,7 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
48
48
|
var sAriaRoleDescription = oControl.getAriaRoleDescription();
|
|
49
49
|
var sAriaRole = oControl.getAriaRole();
|
|
50
50
|
var isHalfFrame = frameType === frameTypes.OneByHalf || frameType === frameTypes.TwoByHalf;
|
|
51
|
+
var sBGColor = oControl._sBGColor;
|
|
51
52
|
|
|
52
53
|
// Render a link when URL is provided, not in action scope and the state is enabled
|
|
53
54
|
var bRenderLink = oControl.getUrl() && (!oControl._isInActionScope() || oControl.getMode() === GenericTileMode.IconMode) && sState !== LoadState.Disabled && !oControl._isNavigateActionEnabled() && !oControl._isActionMode();
|
|
@@ -62,7 +63,9 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
62
63
|
oRm.openStart("a", oControl);
|
|
63
64
|
oRm.attr("href", oControl.getUrl());
|
|
64
65
|
oRm.attr("rel", "noopener noreferrer");
|
|
65
|
-
|
|
66
|
+
if (!this._isDragabble(oControl)) {
|
|
67
|
+
oRm.attr("draggable", "false"); // <a> elements are draggable per default, use UI5 DnD instead
|
|
68
|
+
}
|
|
66
69
|
} else {
|
|
67
70
|
oRm.openStart("div",oControl );
|
|
68
71
|
}
|
|
@@ -112,10 +115,10 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
112
115
|
oRm.class("sapMGTTwoByHalf");
|
|
113
116
|
} else if (frameType === frameTypes.OneByOne) {
|
|
114
117
|
if (!this._isThemeHighContrast()) {
|
|
115
|
-
oRm.style("background-color",
|
|
118
|
+
oRm.style("background-color", sBGColor);
|
|
116
119
|
} else {
|
|
117
|
-
oRm.style("border-color",
|
|
118
|
-
oRm.style("box-shadow", "0 0 0 1px" +
|
|
120
|
+
oRm.style("border-color", sBGColor);
|
|
121
|
+
oRm.style("box-shadow", "0 0 0 1px" + sBGColor);
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
}
|
|
@@ -256,11 +259,11 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
256
259
|
} else {
|
|
257
260
|
oRm.class("sapMGTTwoByHalfIcon");
|
|
258
261
|
if (!this._isThemeHighContrast()) {
|
|
259
|
-
oRm.style("background-color",
|
|
262
|
+
oRm.style("background-color", sBGColor);
|
|
260
263
|
} else {
|
|
261
264
|
oRm.class("HighContrastTile");
|
|
262
|
-
oRm.style("border-color",
|
|
263
|
-
oRm.style("box-shadow", "0 0 0 1px" +
|
|
265
|
+
oRm.style("border-color", sBGColor);
|
|
266
|
+
oRm.style("box-shadow", "0 0 0 1px" + sBGColor);
|
|
264
267
|
}
|
|
265
268
|
}
|
|
266
269
|
oRm.openEnd();
|
|
@@ -391,6 +394,29 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
391
394
|
}
|
|
392
395
|
};
|
|
393
396
|
|
|
397
|
+
/**
|
|
398
|
+
* Checks if the GenericTile should be draggable or not.
|
|
399
|
+
* @param {sap.m.GenericTile} oControl The GenericTile control
|
|
400
|
+
* @returns {boolean} True if the GenericTile is draggable, false otherwise
|
|
401
|
+
* @private
|
|
402
|
+
*/
|
|
403
|
+
GenericTileRenderer._isDragabble = function(oControl) {
|
|
404
|
+
var bDraggable = oControl.getDragDropConfig().some(function(vDragDropInfo){
|
|
405
|
+
return vDragDropInfo.isDraggable(oControl);
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
if (!bDraggable) {
|
|
409
|
+
// also check parent config
|
|
410
|
+
var oParent = oControl.getParent();
|
|
411
|
+
if (oParent && oParent.getDragDropConfig) {
|
|
412
|
+
bDraggable = oParent.getDragDropConfig().some(function(vDragDropInfo){
|
|
413
|
+
return vDragDropInfo.isDraggable(oControl);
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return bDraggable;
|
|
418
|
+
};
|
|
419
|
+
|
|
394
420
|
/**
|
|
395
421
|
* Checks if the GenericTile should render the info container.
|
|
396
422
|
* @param {sap.m.GenericTile} oControl The GenericTile control
|
|
@@ -559,7 +585,7 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
559
585
|
* @private
|
|
560
586
|
*/
|
|
561
587
|
GenericTileRenderer._isThemeHighContrast = function() {
|
|
562
|
-
return /(hcw|hcb)/g.test(
|
|
588
|
+
return /(hcw|hcb)/g.test(Configuration.getTheme());
|
|
563
589
|
};
|
|
564
590
|
|
|
565
591
|
GenericTileRenderer._isNewsContentPresent = function(aTileContent,iLength) {
|
|
@@ -30,44 +30,47 @@ sap.ui.define(["sap/ui/core/library", "./library", "./ListItemBase", "./GroupHea
|
|
|
30
30
|
* @extends sap.m.ListItemBase
|
|
31
31
|
*
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.107.0
|
|
34
34
|
*
|
|
35
35
|
* @constructor
|
|
36
36
|
* @public
|
|
37
37
|
* @since 1.12
|
|
38
38
|
* @alias sap.m.GroupHeaderListItem
|
|
39
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
40
39
|
*/
|
|
41
|
-
var GroupHeaderListItem = ListItemBase.extend("sap.m.GroupHeaderListItem", /** @lends sap.m.GroupHeaderListItem.prototype */ {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
40
|
+
var GroupHeaderListItem = ListItemBase.extend("sap.m.GroupHeaderListItem", /** @lends sap.m.GroupHeaderListItem.prototype */ {
|
|
41
|
+
metadata : {
|
|
42
|
+
|
|
43
|
+
library : "sap.m",
|
|
44
|
+
properties : {
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Defines the title of the group header.
|
|
48
|
+
*/
|
|
49
|
+
title : {type : "string", group : "Data", defaultValue : null},
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Defines the count of items in the group, but it could also be an amount which represents the sum of all amounts in the group.
|
|
53
|
+
* <b>Note:</b> Will not be displayed if not set.
|
|
54
|
+
*/
|
|
55
|
+
count : {type : "string", group : "Data", defaultValue : null},
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Allows to uppercase the group title.
|
|
59
|
+
* @since 1.13.2
|
|
60
|
+
* @deprecated Since version 1.40.10
|
|
61
|
+
*/
|
|
62
|
+
upperCase : {type : "boolean", group : "Appearance", defaultValue : false, deprecated: true},
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Defines the title text directionality with enumerated options. By default, the control inherits text direction from the DOM.
|
|
66
|
+
* @since 1.28.0
|
|
67
|
+
*/
|
|
68
|
+
titleTextDirection : {type : "sap.ui.core.TextDirection", group : "Appearance", defaultValue : TextDirection.Inherit}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
renderer: GroupHeaderListItemRenderer
|
|
73
|
+
});
|
|
71
74
|
|
|
72
75
|
// GroupHeaderListItem does not respect the list mode
|
|
73
76
|
GroupHeaderListItem.prototype.getMode = function() {
|
|
@@ -71,10 +71,7 @@ sap.ui.define([
|
|
|
71
71
|
this._iTriggerTimer = 0;
|
|
72
72
|
this._aChunk = [];
|
|
73
73
|
this._oRM = null;
|
|
74
|
-
|
|
75
|
-
if (document.location.href.search("sap-ui-xx-enableItemsPool") > 0) {
|
|
76
|
-
this._aItemsPool = [];
|
|
77
|
-
}
|
|
74
|
+
this._aItemsPool = [];
|
|
78
75
|
},
|
|
79
76
|
|
|
80
77
|
/**
|
|
@@ -94,10 +91,8 @@ sap.ui.define([
|
|
|
94
91
|
this._oRM.destroy();
|
|
95
92
|
this._oRM = null;
|
|
96
93
|
}
|
|
97
|
-
this._aItemsPool && this._aItemsPool.forEach(function(oItem) {
|
|
98
|
-
oItem.destroy();
|
|
99
|
-
});
|
|
100
94
|
|
|
95
|
+
this.clearItemsPool();
|
|
101
96
|
this._oControl.$("triggerList").remove();
|
|
102
97
|
this._oControl.bUseExtendedChangeDetection = false;
|
|
103
98
|
this._oControl.removeDelegate(this);
|
|
@@ -169,11 +164,21 @@ sap.ui.define([
|
|
|
169
164
|
return;
|
|
170
165
|
}
|
|
171
166
|
|
|
167
|
+
// if the template invalidates, then also clear the itemsPool
|
|
168
|
+
this.clearItemsPool();
|
|
169
|
+
|
|
172
170
|
// if factory function is used we do not activate the replace option of the extended change detection
|
|
173
171
|
var oBindingInfo = this._oControl.getBindingInfo("items");
|
|
174
172
|
this._oControl.oExtendedChangeDetectionConfig = (!oBindingInfo || !oBindingInfo.template) ? null : {replace: true};
|
|
175
173
|
},
|
|
176
174
|
|
|
175
|
+
clearItemsPool: function() {
|
|
176
|
+
this._aItemsPool.forEach(function(oItem) {
|
|
177
|
+
oItem.destroy();
|
|
178
|
+
});
|
|
179
|
+
this._aItemsPool = [];
|
|
180
|
+
},
|
|
181
|
+
|
|
177
182
|
// determines growing reset with binding change reason
|
|
178
183
|
// according to UX sort/filter/context should reset the growing
|
|
179
184
|
shouldReset : function(sChangeReason) {
|
|
@@ -219,12 +224,8 @@ sap.ui.define([
|
|
|
219
224
|
// if max item count not reached or if we do not know the count
|
|
220
225
|
var oBinding = this._oControl.getBinding("items");
|
|
221
226
|
if (oBinding && !oBinding.isLengthFinal() || this._iLimit < this._oControl.getMaxItemsCount()) {
|
|
222
|
-
//
|
|
223
|
-
|
|
224
|
-
this._bParentEnableBusyIndicator = this._oControl.getEnableBusyIndicator();
|
|
225
|
-
this._oControl.setEnableBusyIndicator(false);
|
|
226
|
-
}
|
|
227
|
-
|
|
227
|
+
// block busy indicator animation from the ListBase
|
|
228
|
+
this._oControl._bBusy = true;
|
|
228
229
|
this._iLimit += this._oControl.getGrowingThreshold();
|
|
229
230
|
this._updateTriggerDelayed(true);
|
|
230
231
|
this.updateItems("Growing");
|
|
@@ -246,11 +247,6 @@ sap.ui.define([
|
|
|
246
247
|
this._bLoading = false;
|
|
247
248
|
this._updateTriggerDelayed(false);
|
|
248
249
|
this._oControl.onAfterPageLoaded(this.getInfo(), sChangeReason);
|
|
249
|
-
|
|
250
|
-
// After the data has been loaded, restore the busy indicator handling of the parent control.
|
|
251
|
-
if (this._oControl.setEnableBusyIndicator) {
|
|
252
|
-
this._oControl.setEnableBusyIndicator(this._bParentEnableBusyIndicator);
|
|
253
|
-
}
|
|
254
250
|
},
|
|
255
251
|
|
|
256
252
|
// created and returns load more trigger
|
|
@@ -436,13 +432,15 @@ sap.ui.define([
|
|
|
436
432
|
},
|
|
437
433
|
|
|
438
434
|
fillItemsPool: function() {
|
|
439
|
-
if (!this._iLimit || this._iRenderedDataItems || this._aItemsPool.length) {
|
|
435
|
+
if (!this._oControl || !this._iLimit || this._iRenderedDataItems || this._aItemsPool.length) {
|
|
440
436
|
return;
|
|
441
437
|
}
|
|
442
438
|
|
|
443
|
-
var oBindingInfo = this._oControl.getBindingInfo("items")
|
|
439
|
+
var oBindingInfo = this._oControl.getBindingInfo("items"),
|
|
440
|
+
// limit the number of items in the pool to 100, since have too many items in the pool is also not performant
|
|
441
|
+
iLimit = this._iLimit <= 100 ? this._iLimit : 100;
|
|
444
442
|
if (oBindingInfo && oBindingInfo.template) {
|
|
445
|
-
for (var i = 0; i <
|
|
443
|
+
for (var i = 0; i < iLimit; i++) {
|
|
446
444
|
this._aItemsPool.push(oBindingInfo.factory());
|
|
447
445
|
}
|
|
448
446
|
}
|
|
@@ -452,8 +450,8 @@ sap.ui.define([
|
|
|
452
450
|
createListItem : function(oContext, oBindingInfo) {
|
|
453
451
|
this._iRenderedDataItems++;
|
|
454
452
|
|
|
455
|
-
if (this._aItemsPool
|
|
456
|
-
return this._aItemsPool.
|
|
453
|
+
if (this._aItemsPool.length) {
|
|
454
|
+
return this._aItemsPool.shift().setBindingContext(oContext, oBindingInfo.model);
|
|
457
455
|
}
|
|
458
456
|
|
|
459
457
|
return GrowingEnablement.createItem(oContext, oBindingInfo);
|
|
@@ -588,8 +586,8 @@ sap.ui.define([
|
|
|
588
586
|
this._iLimit = oControl.getGrowingThreshold();
|
|
589
587
|
}
|
|
590
588
|
|
|
591
|
-
// pre-initialize items during the request is ongoing
|
|
592
|
-
if (
|
|
589
|
+
// pre-initialize items during the request is ongoing (but not for v1 ODataModel, since it is synchronous)
|
|
590
|
+
if (!oBinding.isA("sap.ui.model.odata.ODataListBinding")) {
|
|
593
591
|
if (oControl._bBusy) {
|
|
594
592
|
setTimeout(this.fillItemsPool.bind(this));
|
|
595
593
|
} else {
|
package/src/sap/m/GrowingList.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides control sap.m.GrowingList.
|
|
8
|
-
sap.ui.define(['./List', './library', './GrowingListRenderer'],
|
|
9
|
-
function(List, library, GrowingListRenderer) {
|
|
8
|
+
sap.ui.define(['./List', './library', './GrowingListRenderer', 'sap/ui/core/Configuration'],
|
|
9
|
+
function(List, library, GrowingListRenderer, Configuration) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
|
|
@@ -22,47 +22,50 @@ sap.ui.define(['./List', './library', './GrowingListRenderer'],
|
|
|
22
22
|
* @extends sap.m.List
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.107.0
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @public
|
|
29
29
|
* @deprecated Since version 1.16.
|
|
30
30
|
* Instead use "List" or "Table" control with setting "growing" property to "true"
|
|
31
31
|
* @alias sap.m.GrowingList
|
|
32
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
33
32
|
*/
|
|
34
|
-
var GrowingList = List.extend("sap.m.GrowingList", /** @lends sap.m.GrowingList.prototype */ {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
33
|
+
var GrowingList = List.extend("sap.m.GrowingList", /** @lends sap.m.GrowingList.prototype */ {
|
|
34
|
+
metadata : {
|
|
35
|
+
|
|
36
|
+
deprecated : true,
|
|
37
|
+
library : "sap.m",
|
|
38
|
+
properties : {
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Number of items requested from the server. To activate this you should set growing property to "true"
|
|
42
|
+
* @since 1.16
|
|
43
|
+
*/
|
|
44
|
+
threshold : {type : "int", group : "Misc", defaultValue : 20},
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Text which is displayed on the trigger at the end of the list. The default is a translated text ("Load More Data") coming from the messagebundle properties.
|
|
48
|
+
* This property can be used only if growing property is set "true" and scrollToLoad property is set "false".
|
|
49
|
+
* @since 1.16
|
|
50
|
+
*/
|
|
51
|
+
triggerText : {type : "string", group : "Appearance", defaultValue : null},
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* If you set this property to true then user needs to scroll end to trigger loading a new page. Default value is false which means user needs to scroll end and then click button to load new page.
|
|
55
|
+
* NOTE: This property can be set true, if growing property is set "true" and if you only have one instance of this control inside the scroll container(e.g Page).
|
|
56
|
+
* @since 1.16
|
|
57
|
+
*/
|
|
58
|
+
scrollToLoad : {type : "boolean", group : "Behavior", defaultValue : false}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
renderer: GrowingListRenderer
|
|
63
|
+
});
|
|
61
64
|
|
|
62
65
|
|
|
63
66
|
// checks if control is not compatible anymore
|
|
64
67
|
GrowingList.prototype._isIncompatible = function() {
|
|
65
|
-
return
|
|
68
|
+
return Configuration.getCompatibilityVersion("sapMGrowingList").compareTo("1.16") >= 0;
|
|
66
69
|
};
|
|
67
70
|
|
|
68
71
|
//sets growing property to true on init
|
package/src/sap/m/HBox.js
CHANGED
|
@@ -25,18 +25,21 @@ sap.ui.define(['./FlexBox', './library', './HBoxRenderer'],
|
|
|
25
25
|
* @extends sap.m.FlexBox
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.107.0
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
32
32
|
* @alias sap.m.HBox
|
|
33
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
34
33
|
*/
|
|
35
|
-
var HBox = FlexBox.extend("sap.m.HBox", /** @lends sap.m.HBox.prototype */ {
|
|
34
|
+
var HBox = FlexBox.extend("sap.m.HBox", /** @lends sap.m.HBox.prototype */ {
|
|
35
|
+
metadata : {
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
library : "sap.m",
|
|
38
|
+
designtime: "sap/m/designtime/HBox.designtime"
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
renderer: HBoxRenderer
|
|
42
|
+
});
|
|
40
43
|
|
|
41
44
|
|
|
42
45
|
|
|
@@ -20,14 +20,11 @@ sap.ui.define([
|
|
|
20
20
|
"sap/ui/events/KeyCodes",
|
|
21
21
|
"sap/ui/events/PseudoEvents",
|
|
22
22
|
"sap/ui/thirdparty/jquery",
|
|
23
|
-
|
|
24
|
-
"sap/ui/dom/jquery/control",
|
|
25
|
-
// jQuery Plugin "scrollLeftRTL"
|
|
26
|
-
"sap/ui/dom/jquery/
|
|
27
|
-
// jQuery
|
|
28
|
-
"sap/ui/dom/jquery/scrollRightRTL",
|
|
29
|
-
// jQuery custom selectors ":sapTabbable"
|
|
30
|
-
"sap/ui/dom/jquery/Selectors"
|
|
23
|
+
"sap/ui/core/Configuration",
|
|
24
|
+
"sap/ui/dom/jquery/control", // jQuery Plugin "control"
|
|
25
|
+
"sap/ui/dom/jquery/scrollLeftRTL", // jQuery Plugin "scrollLeftRTL"
|
|
26
|
+
"sap/ui/dom/jquery/scrollRightRTL", // jQuery Plugin "scrollRightRTL"
|
|
27
|
+
"sap/ui/dom/jquery/Selectors" // jQuery custom selectors ":sapTabbable"
|
|
31
28
|
],
|
|
32
29
|
function (
|
|
33
30
|
library,
|
|
@@ -45,7 +42,8 @@ sap.ui.define([
|
|
|
45
42
|
Log,
|
|
46
43
|
KeyCodes,
|
|
47
44
|
PseudoEvents,
|
|
48
|
-
jQuery
|
|
45
|
+
jQuery,
|
|
46
|
+
Configuration
|
|
49
47
|
) {
|
|
50
48
|
"use strict";
|
|
51
49
|
|
|
@@ -125,11 +123,10 @@ sap.ui.define([
|
|
|
125
123
|
* @since 1.44.0
|
|
126
124
|
*
|
|
127
125
|
* @author SAP SE
|
|
128
|
-
* @version 1.
|
|
126
|
+
* @version 1.107.0
|
|
129
127
|
*
|
|
130
128
|
* @public
|
|
131
129
|
* @alias sap.m.HeaderContainer
|
|
132
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
133
130
|
*/
|
|
134
131
|
var HeaderContainer = Control.extend("sap.m.HeaderContainer", /** @lends sap.m.HeaderContainer.prototype */ {
|
|
135
132
|
metadata: {
|
|
@@ -268,7 +265,9 @@ sap.ui.define([
|
|
|
268
265
|
|
|
269
266
|
}
|
|
270
267
|
}
|
|
271
|
-
}
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
renderer: HeaderContainerRenderer
|
|
272
271
|
});
|
|
273
272
|
|
|
274
273
|
/* ============================================================ */
|
|
@@ -277,7 +276,7 @@ sap.ui.define([
|
|
|
277
276
|
|
|
278
277
|
HeaderContainer.prototype.init = function () {
|
|
279
278
|
this._aItemEnd = [];
|
|
280
|
-
this._bRtl =
|
|
279
|
+
this._bRtl = Configuration.getRTL();
|
|
281
280
|
this._oRb = sap.ui.getCore().getLibraryResourceBundle("sap.m");
|
|
282
281
|
this._oScrollCntr = new ScrollContainer(this.getId() + "-scrl-cntnr", {
|
|
283
282
|
width: "100%",
|
|
@@ -369,40 +368,42 @@ sap.ui.define([
|
|
|
369
368
|
var aItems = this._filterVisibleItems();
|
|
370
369
|
this.triggerScrollStop = true;
|
|
371
370
|
var iScrollValue = 0, iScrollOffset = 15;
|
|
372
|
-
|
|
373
|
-
var iScrollContainerScrollLeft = this._oScrollCntr.getDomRef().scrollLeft;
|
|
374
|
-
var iScrollContainerWidth = iScrollContainerScrollLeft + this._oScrollCntr.getDomRef().clientWidth;
|
|
375
|
-
|
|
376
371
|
var oFinalItem = aItems[aItems.length - 1];
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
if (aDiff == bDiff) {
|
|
392
|
-
return a > b ? a : b;
|
|
393
|
-
} else {
|
|
394
|
-
return bDiff < aDiff ? b : a;
|
|
395
|
-
}
|
|
396
|
-
});
|
|
397
|
-
if (iCurrectScrollValue == 0) {
|
|
398
|
-
iScrollValue = 0;
|
|
372
|
+
var oScrollCntrDomRef = this._oScrollCntr.getDomRef();
|
|
373
|
+
if ( oScrollCntrDomRef && oFinalItem){
|
|
374
|
+
var oFinalItemParentDomRef = oFinalItem.getParent().getDomRef();
|
|
375
|
+
var oFinalItemDomRef = oFinalItem.getDomRef();
|
|
376
|
+
var iScrollContainerScrollLeft = oScrollCntrDomRef.scrollLeft;
|
|
377
|
+
var iScrollContainerWidth = iScrollContainerScrollLeft + oScrollCntrDomRef.clientWidth;
|
|
378
|
+
var iFinalElementScrollLeft = oFinalItemParentDomRef.offsetLeft;
|
|
379
|
+
var iFinalElementContainerWidth = iFinalElementScrollLeft + oFinalItemDomRef.clientWidth;
|
|
380
|
+
|
|
381
|
+
var bIsFinalItemVisible = ((iFinalElementContainerWidth <= iScrollContainerWidth) && (iFinalElementScrollLeft >= iScrollContainerScrollLeft));
|
|
382
|
+
var iCurrectScrollValue = this._bRtl ? Math.abs(oEvent.currentTarget.scrollLeft) : oEvent.currentTarget.scrollLeft;
|
|
383
|
+
|
|
384
|
+
if (bIsFinalItemVisible) {
|
|
385
|
+
iScrollValue = this.aItemScrollValue[aItems.length - 1] - iScrollOffset - iCurrectScrollValue;
|
|
399
386
|
this.triggerScrollStop = false;
|
|
400
387
|
} else {
|
|
401
|
-
|
|
388
|
+
var value = this.aItemScrollValue.reduce(function(a, b) {
|
|
389
|
+
var aDiff = Math.abs(a - iCurrectScrollValue);
|
|
390
|
+
var bDiff = Math.abs(b - iCurrectScrollValue);
|
|
391
|
+
if (aDiff == bDiff) {
|
|
392
|
+
return a > b ? a : b;
|
|
393
|
+
} else {
|
|
394
|
+
return bDiff < aDiff ? b : a;
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
if (iCurrectScrollValue == 0) {
|
|
398
|
+
iScrollValue = 0;
|
|
399
|
+
this.triggerScrollStop = false;
|
|
400
|
+
} else {
|
|
401
|
+
iScrollValue = value - iScrollOffset - iCurrectScrollValue;
|
|
402
|
+
}
|
|
402
403
|
}
|
|
403
|
-
|
|
404
|
-
this._scroll(iScrollValue, this.getScrollTime());
|
|
404
|
+
this._scroll(iScrollValue, this.getScrollTime());
|
|
405
405
|
}
|
|
406
|
+
}
|
|
406
407
|
}.bind(this));
|
|
407
408
|
}
|
|
408
409
|
}.bind(this)
|
|
@@ -433,7 +434,7 @@ sap.ui.define([
|
|
|
433
434
|
};
|
|
434
435
|
|
|
435
436
|
HeaderContainer.prototype.onAfterRendering = function () {
|
|
436
|
-
this._bRtl =
|
|
437
|
+
this._bRtl = Configuration.getRTL();
|
|
437
438
|
this._checkOverflow();
|
|
438
439
|
};
|
|
439
440
|
|