@openui5/sap.m 1.103.1 → 1.106.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/.eslintrc.json +2 -3
- package/.reuse/dep5 +35 -15
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
- package/THIRDPARTY.txt +64 -21
- package/package.json +4 -4
- package/src/sap/m/.library +17 -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 +2 -3
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +2 -2
- package/src/sap/m/BadgeEnabler.js +1 -2
- package/src/sap/m/Bar.js +11 -10
- package/src/sap/m/Breadcrumbs.js +2 -2
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +49 -10
- package/src/sap/m/ButtonRenderer.js +10 -2
- package/src/sap/m/Carousel.js +3 -4
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CarouselRenderer.js +3 -3
- package/src/sap/m/CheckBox.js +46 -6
- package/src/sap/m/CheckBoxRenderer.js +1 -0
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +5 -5
- package/src/sap/m/ColumnHeaderPopover.js +5 -7
- package/src/sap/m/ColumnListItem.js +1 -4
- package/src/sap/m/ColumnListItemRenderer.js +1 -2
- package/src/sap/m/ColumnPopoverActionItem.js +3 -3
- package/src/sap/m/ColumnPopoverCustomItem.js +3 -3
- package/src/sap/m/ColumnPopoverItem.js +3 -3
- package/src/sap/m/ColumnPopoverSelectListItem.js +3 -5
- package/src/sap/m/ColumnPopoverSortItem.js +3 -3
- package/src/sap/m/ComboBox.js +6 -5
- package/src/sap/m/ComboBoxBase.js +3 -7
- package/src/sap/m/ComboBoxBaseRenderer.js +2 -2
- package/src/sap/m/ComboBoxTextField.js +1 -7
- package/src/sap/m/ComboBoxTextFieldRenderer.js +19 -4
- 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 +3 -3
- package/src/sap/m/CustomTreeItemRenderer.js +2 -2
- package/src/sap/m/DatePicker.js +16 -26
- package/src/sap/m/DateRangeSelection.js +45 -38
- package/src/sap/m/DateTimeField.js +87 -20
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +58 -32
- package/src/sap/m/DateTimePickerRenderer.js +1 -1
- package/src/sap/m/Dialog.js +44 -2
- 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/DynamicDateFormat.js +2 -5
- package/src/sap/m/DynamicDateOption.js +43 -16
- package/src/sap/m/DynamicDateRange.js +49 -7
- package/src/sap/m/DynamicDateRangeRenderer.js +5 -2
- package/src/sap/m/DynamicDateUtil.js +23 -2
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +2 -2
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +4 -4
- 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 +116 -23
- package/src/sap/m/GenericTileLineModeRenderer.js +4 -4
- package/src/sap/m/GenericTileRenderer.js +23 -10
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingEnablement.js +60 -36
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +34 -32
- package/src/sap/m/HeaderContainerItemNavigator.js +3 -6
- package/src/sap/m/IconTabBar.js +54 -22
- 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 +6 -19
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +98 -25
- package/src/sap/m/IllustratedMessageRenderer.js +10 -6
- package/src/sap/m/Illustration.js +8 -1
- package/src/sap/m/IllustrationPool.js +1 -0
- package/src/sap/m/IllustrationRenderer.js +2 -1
- package/src/sap/m/Image.js +73 -3
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/ImageRenderer.js +66 -2
- package/src/sap/m/Input.js +62 -7
- package/src/sap/m/InputBase.js +1 -1
- package/src/sap/m/InputBaseRenderer.js +2 -2
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/InputRenderer.js +4 -0
- package/src/sap/m/InstanceManager.js +6 -6
- package/src/sap/m/Label.js +34 -4
- package/src/sap/m/LabelRenderer.js +7 -2
- package/src/sap/m/LightBox.js +2 -2
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +74 -10
- package/src/sap/m/LinkRenderer.js +26 -12
- package/src/sap/m/List.js +38 -1
- package/src/sap/m/ListBase.js +109 -44
- package/src/sap/m/ListBaseRenderer.js +7 -15
- package/src/sap/m/ListItemBase.js +40 -11
- package/src/sap/m/ListItemBaseRenderer.js +17 -6
- package/src/sap/m/ListRenderer.js +2 -2
- package/src/sap/m/MaskEnabler.js +52 -2
- package/src/sap/m/MaskInput.js +23 -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/MessageBox.js +1 -1
- package/src/sap/m/MessageItem.js +3 -4
- package/src/sap/m/MessageListItem.js +10 -6
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +4 -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 +5 -16
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +1 -15
- package/src/sap/m/NavContainer.js +21 -19
- package/src/sap/m/NewsContent.js +2 -3
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +3 -7
- package/src/sap/m/NotificationListGroupRenderer.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 +3 -3
- package/src/sap/m/ObjectIdentifier.js +8 -5
- package/src/sap/m/ObjectListItem.js +7 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +2 -3
- package/src/sap/m/ObjectNumberRenderer.js +10 -3
- package/src/sap/m/ObjectStatus.js +2 -3
- package/src/sap/m/ObjectStatusRenderer.js +2 -2
- package/src/sap/m/OverflowToolbar.js +3 -8
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopoverControls.js +3 -8
- package/src/sap/m/OverflowToolbarAssociativePopoverRenderer.js +2 -2
- package/src/sap/m/OverflowToolbarButton.js +2 -2
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +3 -3
- package/src/sap/m/P13nColumnsItem.js +3 -3
- package/src/sap/m/P13nColumnsPanel.js +3 -3
- package/src/sap/m/P13nConditionPanel.js +10 -3
- package/src/sap/m/P13nDialog.js +3 -3
- package/src/sap/m/P13nDimMeasureItem.js +3 -3
- package/src/sap/m/P13nDimMeasurePanel.js +3 -3
- package/src/sap/m/P13nFilterItem.js +3 -3
- package/src/sap/m/P13nFilterPanel.js +3 -3
- package/src/sap/m/P13nGroupItem.js +3 -3
- package/src/sap/m/P13nGroupPanel.js +3 -3
- package/src/sap/m/P13nItem.js +3 -3
- package/src/sap/m/P13nOperationsHelper.js +2 -2
- package/src/sap/m/P13nPanel.js +3 -3
- package/src/sap/m/P13nSelectionItem.js +3 -3
- package/src/sap/m/P13nSelectionPanel.js +3 -3
- package/src/sap/m/P13nSortItem.js +3 -3
- package/src/sap/m/P13nSortPanel.js +3 -3
- package/src/sap/m/PDFViewer.js +2 -2
- package/src/sap/m/PDFViewerRenderer.js +1 -0
- package/src/sap/m/Page.js +1 -3
- 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 +4 -16
- package/src/sap/m/PlanningCalendarHeader.js +1 -5
- 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 +11 -4
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/ProgressIndicatorRenderer.js +6 -3
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +3 -3
- package/src/sap/m/QuickViewBase.js +3 -3
- package/src/sap/m/QuickViewCard.js +3 -3
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +3 -3
- package/src/sap/m/QuickViewPage.js +3 -3
- package/src/sap/m/RadioButton.js +47 -20
- package/src/sap/m/RadioButtonGroup.js +29 -26
- package/src/sap/m/RangeSlider.js +1 -3
- package/src/sap/m/RatingIndicator.js +8 -1
- package/src/sap/m/RatingIndicatorRenderer.js +13 -4
- package/src/sap/m/ResponsivePopover.js +3 -3
- 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/SearchFieldRenderer.js +1 -0
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +8 -14
- package/src/sap/m/SelectDialog.js +2 -1
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectListRenderer.js +2 -2
- package/src/sap/m/SelectionDetails.js +2 -2
- 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 +7 -9
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -7
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +0 -2
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +12 -13
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +30 -5
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -3
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipBaseRenderer.js +2 -2
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SliderTooltipContainerRenderer.js +2 -2
- package/src/sap/m/SliderTooltipRenderer.js +2 -2
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -3
- package/src/sap/m/SplitContainer.js +3 -7
- package/src/sap/m/StandardDynamicDateOption.js +9 -15
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardListItemRenderer.js +2 -2
- 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 +4 -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 +11 -9
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +6 -15
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableRenderer.js +2 -9
- 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/TextAreaRenderer.js +1 -2
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +8 -9
- package/src/sap/m/TileContentRenderer.js +3 -3
- package/src/sap/m/TimePicker.js +45 -8
- package/src/sap/m/TimePickerClock.js +2 -3
- package/src/sap/m/TimePickerClocks.js +5 -3
- package/src/sap/m/TimePickerClocksRenderer.js +4 -2
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInputsRenderer.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 +3 -5
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +2 -2
- package/src/sap/m/Token.js +1 -3
- 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 +8 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/TreeRenderer.js +0 -10
- 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/ValueStateHeader.js +1 -1
- package/src/sap/m/VariantItem.js +160 -0
- package/src/sap/m/VariantManagement.js +717 -571
- 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 +10 -3
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardStep.js +3 -1
- package/src/sap/m/_thirdparty/purify.js +1622 -0
- package/src/sap/m/changeHandler/AddTableColumn.js +12 -13
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +2 -3
- package/src/sap/m/changeHandler/CombineButtons.js +19 -22
- package/src/sap/m/changeHandler/MoveTableColumns.js +6 -6
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +5 -5
- package/src/sap/m/changeHandler/SplitMenuButton.js +7 -6
- package/src/sap/m/delegate/DateNavigation.js +0 -4
- package/src/sap/m/designtime/Link.designtime.js +19 -11
- package/src/sap/m/designtime/VariantManagement.designtime.js +36 -26
- package/src/sap/m/flexibility/EngineFlex.js +48 -0
- package/src/sap/m/inputUtils/selectionRange.js +1 -2
- package/src/sap/m/library.js +60 -7
- package/src/sap/m/messagebundle.properties +57 -6
- package/src/sap/m/messagebundle_ar.properties +39 -9
- package/src/sap/m/messagebundle_bg.properties +33 -3
- package/src/sap/m/messagebundle_ca.properties +32 -2
- package/src/sap/m/messagebundle_cs.properties +32 -2
- package/src/sap/m/messagebundle_cy.properties +34 -4
- package/src/sap/m/messagebundle_da.properties +32 -2
- package/src/sap/m/messagebundle_de.properties +32 -2
- package/src/sap/m/messagebundle_el.properties +35 -5
- package/src/sap/m/messagebundle_en.properties +34 -4
- package/src/sap/m/messagebundle_en_GB.properties +34 -4
- package/src/sap/m/messagebundle_en_US_sappsd.properties +33 -3
- package/src/sap/m/messagebundle_en_US_saprigi.properties +31 -3
- package/src/sap/m/messagebundle_en_US_saptrc.properties +33 -3
- package/src/sap/m/messagebundle_es.properties +33 -3
- package/src/sap/m/messagebundle_es_MX.properties +32 -2
- package/src/sap/m/messagebundle_et.properties +32 -2
- package/src/sap/m/messagebundle_fi.properties +36 -6
- package/src/sap/m/messagebundle_fr.properties +33 -3
- package/src/sap/m/messagebundle_fr_CA.properties +34 -4
- package/src/sap/m/messagebundle_hi.properties +34 -4
- package/src/sap/m/messagebundle_hr.properties +36 -6
- package/src/sap/m/messagebundle_hu.properties +34 -4
- package/src/sap/m/messagebundle_id.properties +34 -4
- package/src/sap/m/messagebundle_it.properties +33 -3
- package/src/sap/m/messagebundle_iw.properties +34 -4
- package/src/sap/m/messagebundle_ja.properties +33 -3
- package/src/sap/m/messagebundle_kk.properties +32 -2
- package/src/sap/m/messagebundle_ko.properties +40 -10
- package/src/sap/m/messagebundle_lt.properties +32 -2
- package/src/sap/m/messagebundle_lv.properties +32 -2
- package/src/sap/m/messagebundle_ms.properties +33 -3
- package/src/sap/m/messagebundle_nl.properties +46 -16
- package/src/sap/m/messagebundle_no.properties +34 -4
- package/src/sap/m/messagebundle_pl.properties +33 -3
- package/src/sap/m/messagebundle_pt.properties +37 -7
- package/src/sap/m/messagebundle_pt_PT.properties +32 -2
- package/src/sap/m/messagebundle_ro.properties +33 -3
- package/src/sap/m/messagebundle_ru.properties +33 -3
- package/src/sap/m/messagebundle_sh.properties +33 -3
- package/src/sap/m/messagebundle_sk.properties +32 -2
- package/src/sap/m/messagebundle_sl.properties +33 -3
- package/src/sap/m/messagebundle_sv.properties +32 -2
- package/src/sap/m/messagebundle_th.properties +65 -35
- package/src/sap/m/messagebundle_tr.properties +36 -6
- package/src/sap/m/messagebundle_uk.properties +33 -3
- package/src/sap/m/messagebundle_vi.properties +33 -3
- package/src/sap/m/messagebundle_zh_CN.properties +33 -3
- package/src/sap/m/messagebundle_zh_TW.properties +32 -2
- package/src/sap/m/p13n/AbstractContainer.js +7 -7
- package/src/sap/m/p13n/AbstractContainerItem.js +4 -4
- package/src/sap/m/p13n/BasePanel.js +24 -13
- package/src/sap/m/p13n/Container.js +3 -3
- package/src/sap/m/p13n/Engine.js +1254 -0
- package/src/sap/m/p13n/FlexUtil.js +161 -0
- package/src/sap/m/p13n/GroupController.js +145 -0
- package/src/sap/m/p13n/GroupPanel.js +12 -5
- package/src/sap/m/p13n/MetadataHelper.js +35 -0
- package/src/sap/m/p13n/PersistenceProvider.js +160 -0
- package/src/sap/m/p13n/Popup.js +49 -12
- package/src/sap/m/p13n/QueryPanel.js +3 -3
- package/src/sap/m/p13n/SelectionController.js +548 -0
- package/src/sap/m/p13n/SelectionPanel.js +23 -5
- package/src/sap/m/p13n/SortController.js +153 -0
- package/src/sap/m/p13n/SortPanel.js +15 -5
- package/src/sap/m/p13n/enum/PersistenceMode.js +43 -0
- package/src/sap/m/p13n/handler/xConfigHandler.js +166 -0
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +90 -0
- package/src/sap/m/p13n/modification/LocalStorageModificationHandler.js +75 -0
- package/src/sap/m/p13n/modification/ModificationHandler.js +143 -0
- package/src/sap/m/p13n/modules/AdaptationProvider.js +67 -0
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +147 -0
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +101 -0
- package/src/sap/m/p13n/modules/UIManager.js +230 -0
- package/src/sap/m/p13n/modules/xConfigAPI.js +288 -0
- package/src/sap/m/plugins/CellSelector.js +741 -0
- package/src/sap/m/plugins/ColumnResizer.js +15 -1
- package/src/sap/m/plugins/DataStateIndicator.js +2 -2
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +4 -3
- 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 -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 +3 -4
- 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 -3
- 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 +30 -11
- 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 +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +50 -13
- package/src/sap/m/table/columnmenu/QuickAction.js +16 -8
- package/src/sap/m/table/columnmenu/QuickActionBase.js +18 -3
- package/src/sap/m/table/columnmenu/QuickActionItem.js +5 -6
- package/src/sap/m/table/columnmenu/QuickGroup.js +29 -5
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +13 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +1 -3
- package/src/sap/m/table/columnmenu/QuickSortItem.js +8 -7
- package/src/sap/m/table/columnmenu/QuickTotal.js +29 -5
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +13 -1
- package/src/sap/m/themes/base/Breadcrumbs.less +6 -0
- package/src/sap/m/themes/base/Button.less +0 -1
- package/src/sap/m/themes/base/Carousel.less +8 -8
- package/src/sap/m/themes/base/CellSelector.less +9 -0
- package/src/sap/m/themes/base/CheckBox.less +1 -0
- package/src/sap/m/themes/base/Dialog.less +1 -0
- package/src/sap/m/themes/base/DisplayListItem.less +3 -3
- package/src/sap/m/themes/base/DynamicDateRange.less +4 -0
- package/src/sap/m/themes/base/FeedContent.less +13 -5
- package/src/sap/m/themes/base/GenericTile.less +56 -9
- package/src/sap/m/themes/base/IllustratedMessage.less +7 -0
- package/src/sap/m/themes/base/NewsContent.less +6 -0
- package/src/sap/m/themes/base/NumericContent.less +1 -1
- package/src/sap/m/themes/base/ObjectStatus.less +2 -1
- package/src/sap/m/themes/base/OverflowToolbarAssociativePopover.less +5 -1
- package/src/sap/m/themes/base/SelectList.less +0 -5
- package/src/sap/m/themes/base/SinglePlanningCalendarGrid.less +7 -0
- package/src/sap/m/themes/base/SlideTile.less +35 -4
- package/src/sap/m/themes/base/Table.less +11 -2
- package/src/sap/m/themes/base/TileContent.less +17 -0
- package/src/sap/m/themes/base/library.source.less +1 -0
- package/src/sap/m/upload/UploadSet.js +300 -23
- package/src/sap/m/upload/UploadSetItem.js +18 -7
- package/src/sap/m/upload/UploadSetRenderer.js +8 -16
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/Uploader.js +1 -2
package/src/sap/m/FacetFilter.js
CHANGED
|
@@ -170,7 +170,7 @@ sap.ui.define([
|
|
|
170
170
|
*
|
|
171
171
|
* @extends sap.ui.core.Control
|
|
172
172
|
* @implements sap.ui.core.IShrinkable
|
|
173
|
-
* @version 1.
|
|
173
|
+
* @version 1.106.0
|
|
174
174
|
*
|
|
175
175
|
* @constructor
|
|
176
176
|
* @public
|
|
@@ -1205,7 +1205,7 @@ sap.ui.define([
|
|
|
1205
1205
|
/**
|
|
1206
1206
|
*
|
|
1207
1207
|
* @param {sap.m.Popover} oPopover the Popover to be opened
|
|
1208
|
-
* @param {sap.
|
|
1208
|
+
* @param {sap.ui.core.Control} oControl The control the popover will be opened "by"
|
|
1209
1209
|
* @returns {this} <code>this</code> to allow method chaining
|
|
1210
1210
|
* @private
|
|
1211
1211
|
*/
|
|
@@ -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.
|
|
23
|
+
* @version 1.106.0
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @public
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
* be closed.
|
|
53
53
|
*
|
|
54
54
|
* @extends sap.m.List
|
|
55
|
-
* @version 1.
|
|
55
|
+
* @version 1.106.0
|
|
56
56
|
*
|
|
57
57
|
* @constructor
|
|
58
58
|
* @public
|
|
@@ -328,7 +328,7 @@ sap.ui.define([
|
|
|
328
328
|
* Returns the keys of the selected elements as an associative array.
|
|
329
329
|
* An empty object is returned if no items are selected.
|
|
330
330
|
*
|
|
331
|
-
* @returns {
|
|
331
|
+
* @returns {Object<string, string?>} Object with the selected keys
|
|
332
332
|
|
|
333
333
|
* @public
|
|
334
334
|
* @since 1.20.3
|
|
@@ -345,10 +345,10 @@ sap.ui.define([
|
|
|
345
345
|
/**
|
|
346
346
|
* Used to pre-select FacetFilterItems, such as when restoring FacetFilterList selections from a variant.
|
|
347
347
|
* Keys are cached separately from the actual FacetFilterItems so that they remain even when the physical items are removed by filtering or sorting.
|
|
348
|
-
* If
|
|
348
|
+
* If oKeys is <code>undefined</code>, <code>null</code>, or {} (empty object) then all items will be deselected.
|
|
349
349
|
* After this method completes, only those items with matching keys will be selected. All other items in the list will be deselected.
|
|
350
350
|
*
|
|
351
|
-
* @param {
|
|
351
|
+
* @param {Object<string, string?>} oKeys
|
|
352
352
|
* Associative array indicating which FacetFilterItems should be selected in the list. Each property must be set to the value of a FacetFilterItem.key property. Each property value should be set to the FacetFilterItem.text property value. The text value is used to display the FacetFilterItem text when the FacetFilterList button or FacetFilter summary bar is displayed. If no property value is set then the property key is used for the text.
|
|
353
353
|
* @type {void}
|
|
354
354
|
* @public
|
package/src/sap/m/FeedContent.js
CHANGED
package/src/sap/m/FeedInput.js
CHANGED
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
*
|
|
28
28
|
*
|
|
29
29
|
* @class text
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.106.0
|
|
31
31
|
* @private
|
|
32
32
|
* @since 1.38
|
|
33
33
|
* @alias HeaderAdapter
|
|
@@ -227,7 +227,7 @@ sap.ui.define([
|
|
|
227
227
|
* Constructor for an sap.m.Fiori20Adapter.
|
|
228
228
|
*
|
|
229
229
|
* @class text
|
|
230
|
-
* @version 1.
|
|
230
|
+
* @version 1.106.0
|
|
231
231
|
* @private
|
|
232
232
|
* @since 1.38
|
|
233
233
|
* @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.
|
|
27
|
+
* @version 1.106.0
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
@@ -44,7 +44,7 @@ function(
|
|
|
44
44
|
* @class
|
|
45
45
|
* The FormattedText control allows the usage of a limited set of tags for inline display of formatted text in HTML format.
|
|
46
46
|
* @extends sap.ui.core.Control
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.106.0
|
|
48
48
|
*
|
|
49
49
|
* @constructor
|
|
50
50
|
* @public
|
package/src/sap/m/GenericTag.js
CHANGED
package/src/sap/m/GenericTile.js
CHANGED
|
@@ -20,7 +20,9 @@ sap.ui.define([
|
|
|
20
20
|
"sap/base/strings/camelize",
|
|
21
21
|
"sap/base/util/deepEqual",
|
|
22
22
|
"sap/ui/events/PseudoEvents",
|
|
23
|
-
"sap/ui/
|
|
23
|
+
"sap/ui/core/theming/Parameters",
|
|
24
|
+
"sap/ui/thirdparty/jquery",
|
|
25
|
+
"sap/ui/core/library"
|
|
24
26
|
], function (
|
|
25
27
|
library,
|
|
26
28
|
Control,
|
|
@@ -37,18 +39,29 @@ sap.ui.define([
|
|
|
37
39
|
camelize,
|
|
38
40
|
deepEqual,
|
|
39
41
|
PseudoEvents,
|
|
40
|
-
|
|
42
|
+
Parameters,
|
|
43
|
+
jQuery,
|
|
44
|
+
coreLibrary
|
|
41
45
|
) {
|
|
42
46
|
"use strict";
|
|
43
47
|
|
|
44
48
|
var GenericTileScope = library.GenericTileScope,
|
|
45
49
|
LoadState = library.LoadState,
|
|
50
|
+
CSSColor = coreLibrary.CSSColor,
|
|
46
51
|
FrameType = library.FrameType,
|
|
47
52
|
Size = library.Size,
|
|
48
53
|
GenericTileMode = library.GenericTileMode,
|
|
49
54
|
TileSizeBehavior = library.TileSizeBehavior,
|
|
50
55
|
WrappingType = library.WrappingType,
|
|
51
|
-
URLHelper = library.URLHelper
|
|
56
|
+
URLHelper = library.URLHelper,
|
|
57
|
+
DEFAULT_BG_COLOR;
|
|
58
|
+
//Loading the default background color asynchronously if the given color is not initially loaded
|
|
59
|
+
DEFAULT_BG_COLOR = Parameters.get({
|
|
60
|
+
name: "sapLegendColor9",
|
|
61
|
+
callback: function (params) {
|
|
62
|
+
DEFAULT_BG_COLOR = params;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
52
65
|
|
|
53
66
|
var DEVICE_SET = "GenericTileDeviceSet";
|
|
54
67
|
var keyPressed = {};
|
|
@@ -64,7 +77,7 @@ sap.ui.define([
|
|
|
64
77
|
* @extends sap.ui.core.Control
|
|
65
78
|
*
|
|
66
79
|
* @author SAP SE
|
|
67
|
-
* @version 1.
|
|
80
|
+
* @version 1.106.0
|
|
68
81
|
* @since 1.34.0
|
|
69
82
|
*
|
|
70
83
|
* @public
|
|
@@ -205,7 +218,7 @@ sap.ui.define([
|
|
|
205
218
|
* @since 1.96
|
|
206
219
|
* @experimental Since 1.96
|
|
207
220
|
*/
|
|
208
|
-
backgroundColor: {type: "
|
|
221
|
+
backgroundColor: {type: "string", group: "Appearance",defaultValue : DEFAULT_BG_COLOR},
|
|
209
222
|
/**
|
|
210
223
|
* The semantic color of the value.
|
|
211
224
|
* @experimental Since 1.95
|
|
@@ -217,7 +230,13 @@ sap.ui.define([
|
|
|
217
230
|
* @experimental Since 1.103
|
|
218
231
|
* @since 1.103
|
|
219
232
|
*/
|
|
220
|
-
iconLoaded: {type: "boolean", group: "Misc", defaultValue: true}
|
|
233
|
+
iconLoaded: {type: "boolean", group: "Misc", defaultValue: true},
|
|
234
|
+
/**
|
|
235
|
+
* The Tile rerenders on theme change.
|
|
236
|
+
* @experimental Since 1.106
|
|
237
|
+
* @since 1.106
|
|
238
|
+
*/
|
|
239
|
+
renderOnThemeChange: {type: "boolean", group: "Misc", defaultValue: false}
|
|
221
240
|
},
|
|
222
241
|
defaultAggregation: "tileContent",
|
|
223
242
|
aggregations: {
|
|
@@ -356,6 +375,7 @@ sap.ui.define([
|
|
|
356
375
|
|
|
357
376
|
this._bTilePress = true;
|
|
358
377
|
|
|
378
|
+
this._sBGColor = DEFAULT_BG_COLOR;
|
|
359
379
|
this._bThemeApplied = true;
|
|
360
380
|
if (!sap.ui.getCore().isInitialized()) {
|
|
361
381
|
this._bThemeApplied = false;
|
|
@@ -422,6 +442,17 @@ sap.ui.define([
|
|
|
422
442
|
sap.ui.getCore().detachThemeChanged(this._handleThemeApplied, this);
|
|
423
443
|
};
|
|
424
444
|
|
|
445
|
+
/**
|
|
446
|
+
* Re-render control on Theme change.
|
|
447
|
+
*
|
|
448
|
+
* @private
|
|
449
|
+
*/
|
|
450
|
+
GenericTile.prototype.onThemeChanged = function() {
|
|
451
|
+
if (this.getDomRef() && this.getRenderOnThemeChange()) {
|
|
452
|
+
this.invalidate();
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
|
|
425
456
|
/**
|
|
426
457
|
* Creates the content specific for the given scope in order for it to be rendered, if it does not exist already.
|
|
427
458
|
*
|
|
@@ -440,8 +471,9 @@ sap.ui.define([
|
|
|
440
471
|
this._oMoreIcon = this._oMoreIcon || new Button({
|
|
441
472
|
id: this.getId() + "-action-more",
|
|
442
473
|
icon: "sap-icon://overflow",
|
|
443
|
-
type: "Transparent"
|
|
444
|
-
|
|
474
|
+
type: "Transparent",
|
|
475
|
+
tooltip :this._oRb.getText("GENERICTILE_MORE_ACTIONBUTTON_TEXT")
|
|
476
|
+
}).addStyleClass("sapMPointer").addStyleClass(sTileClass + "MoreIcon").addStyleClass(sTileClass + "ActionMoreButton");
|
|
445
477
|
this._oMoreIcon.ontouchstart = function() {
|
|
446
478
|
this.removeFocus();
|
|
447
479
|
}.bind(this);
|
|
@@ -560,10 +592,15 @@ sap.ui.define([
|
|
|
560
592
|
}
|
|
561
593
|
|
|
562
594
|
//sets the extra width of 0.5rem when the grid container has 1rem gap for the TwoByxxxx tiles
|
|
563
|
-
|
|
595
|
+
var oGetParent = this.getParent();
|
|
596
|
+
if (oGetParent && oGetParent.isA("sap.f.GridContainer")){
|
|
564
597
|
this._applyExtraWidth();
|
|
565
598
|
}
|
|
566
599
|
|
|
600
|
+
if (oGetParent && oGetParent.getParent() && oGetParent.getParent().isA("sap.f.GridContainer") && oGetParent.isA("sap.m.SlideTile")){
|
|
601
|
+
this._applyExtraWidth(oGetParent.getParent(), true);
|
|
602
|
+
}
|
|
603
|
+
|
|
567
604
|
Device.media.detachHandler(this._handleMediaChange, this, DEVICE_SET);
|
|
568
605
|
|
|
569
606
|
if (this._$RootNode) {
|
|
@@ -583,6 +620,10 @@ sap.ui.define([
|
|
|
583
620
|
this._oNavigateAction.setText(sButtonText);
|
|
584
621
|
this._oNavigateAction.detachPress(this._navigateEventHandler, this);
|
|
585
622
|
}
|
|
623
|
+
//Validates the color that is getting applied on icon mode tiles so that it changes by theme
|
|
624
|
+
if (this._isIconMode()) {
|
|
625
|
+
this._validateBackgroundColor();
|
|
626
|
+
}
|
|
586
627
|
};
|
|
587
628
|
|
|
588
629
|
GenericTile.prototype.onAfterRendering = function () {
|
|
@@ -657,7 +698,27 @@ sap.ui.define([
|
|
|
657
698
|
this.getDomRef("content").classList.remove("sapMGTFtrMarginTop");
|
|
658
699
|
}
|
|
659
700
|
};
|
|
660
|
-
|
|
701
|
+
/**
|
|
702
|
+
* If the given background color is not from the parameters then the default color is applied
|
|
703
|
+
* @private
|
|
704
|
+
*/
|
|
705
|
+
GenericTile.prototype._validateBackgroundColor = function() {
|
|
706
|
+
var sBGColor = this.getBackgroundColor();
|
|
707
|
+
if (CSSColor.isValid(sBGColor)) {
|
|
708
|
+
this._sBGColor = sBGColor;
|
|
709
|
+
} else {
|
|
710
|
+
//Fetching the color from the parameters asynchronously if its not loaded initially
|
|
711
|
+
var sColor = Parameters.get({
|
|
712
|
+
name:sBGColor,
|
|
713
|
+
callback: function(sParamColor) {
|
|
714
|
+
this._sBGColor = sParamColor ? sParamColor : DEFAULT_BG_COLOR;
|
|
715
|
+
}.bind(this)
|
|
716
|
+
});
|
|
717
|
+
if (sColor) {
|
|
718
|
+
this._sBGColor = sColor;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
};
|
|
661
722
|
GenericTile.prototype._setMaxLines = function() {
|
|
662
723
|
var sFrameType = this.getFrameType(),
|
|
663
724
|
iLines = sFrameType === FrameType.OneByOne || sFrameType === FrameType.TwoByHalf ? 1 : 2;
|
|
@@ -712,10 +773,14 @@ sap.ui.define([
|
|
|
712
773
|
*/
|
|
713
774
|
GenericTile.prototype._setupResizeClassHandler = function () {
|
|
714
775
|
var fnCheckMedia = function () {
|
|
715
|
-
if (this.getSizeBehavior() === TileSizeBehavior.Small || window.matchMedia("(max-width: 374px)").matches) {
|
|
776
|
+
if (this.getSizeBehavior() === TileSizeBehavior.Small || window.matchMedia("(max-width: 374px)").matches || this._isSmallStretchTile()) {
|
|
716
777
|
this.$().addClass("sapMTileSmallPhone");
|
|
778
|
+
if (this._isSmallStretchTile()) {
|
|
779
|
+
this.addStyleClass("sapMGTStretch");
|
|
780
|
+
}
|
|
717
781
|
} else {
|
|
718
782
|
this.$().removeClass("sapMTileSmallPhone");
|
|
783
|
+
this.removeStyleClass("sapMGTStretch");
|
|
719
784
|
}
|
|
720
785
|
}.bind(this);
|
|
721
786
|
|
|
@@ -723,6 +788,18 @@ sap.ui.define([
|
|
|
723
788
|
fnCheckMedia();
|
|
724
789
|
};
|
|
725
790
|
|
|
791
|
+
/**
|
|
792
|
+
*Checks if the GenericTile has stretch frametype and the window size is below 600px
|
|
793
|
+
*
|
|
794
|
+
* @returns {boolean} True if the above mentioned condition is met
|
|
795
|
+
* @private
|
|
796
|
+
*/
|
|
797
|
+
|
|
798
|
+
GenericTile.prototype._isSmallStretchTile = function () {
|
|
799
|
+
return this.getFrameType() === FrameType.Stretch && window.matchMedia("(max-width: 600px)").matches;
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
|
|
726
803
|
/**
|
|
727
804
|
* Looks for the class '.sapUiSizeCompact' on the control and its parents to determine whether to render cozy or compact density mode.
|
|
728
805
|
*
|
|
@@ -1087,6 +1164,15 @@ sap.ui.define([
|
|
|
1087
1164
|
return bIsAriaUpd;
|
|
1088
1165
|
};
|
|
1089
1166
|
|
|
1167
|
+
GenericTile.prototype.onsaptabnext = function(oEvt) {
|
|
1168
|
+
if (this._isIconMode() && this.getFrameType() === FrameType.TwoByHalf && oEvt && oEvt.keyCode) {
|
|
1169
|
+
if (oEvt.keyCode === 9 && oEvt.srcControl.getId() == this._oMoreIcon.getId()) {
|
|
1170
|
+
this._oMoreIcon.removeStyleClass("sapMGTVisible");
|
|
1171
|
+
} else if (oEvt.keyCode === 9) {
|
|
1172
|
+
this._oMoreIcon.addStyleClass("sapMGTVisible");
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1090
1176
|
GenericTile.prototype.onkeyup = function (event) {
|
|
1091
1177
|
if (!_isInnerTileButtonPressed(event, this)) {
|
|
1092
1178
|
var currentKey = keyPressed[event.keyCode]; //disable navigation to other tiles when one tile is selected
|
|
@@ -1124,7 +1210,7 @@ sap.ui.define([
|
|
|
1124
1210
|
event.preventDefault();
|
|
1125
1211
|
}
|
|
1126
1212
|
|
|
1127
|
-
this._updateAriaLabel();
|
|
1213
|
+
this._updateAriaLabel(); // To update the Aria Label for Generic Tile on change.
|
|
1128
1214
|
}
|
|
1129
1215
|
};
|
|
1130
1216
|
|
|
@@ -1309,12 +1395,14 @@ sap.ui.define([
|
|
|
1309
1395
|
|
|
1310
1396
|
if (!this._isInActionScope() && (this.getMode() === GenericTileMode.ContentMode || this.getMode() === GenericTileMode.ArticleMode || this.getMode() === GenericTileMode.ActionMode)) {
|
|
1311
1397
|
for (var i = 0; i < aContent.length; i++) {
|
|
1312
|
-
if (
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1398
|
+
if (aContent[i].getVisible()){
|
|
1399
|
+
if (typeof aContent[i]._getAriaAndTooltipText === "function") {
|
|
1400
|
+
sText += (bIsFirst ? "" : "\n") + aContent[i]._getAriaAndTooltipText();
|
|
1401
|
+
} else if (aContent[i].getTooltip_AsString()) {
|
|
1402
|
+
sText += (bIsFirst ? "" : "\n") + aContent[i].getTooltip_AsString();
|
|
1403
|
+
}
|
|
1404
|
+
bIsFirst = false;
|
|
1316
1405
|
}
|
|
1317
|
-
bIsFirst = false;
|
|
1318
1406
|
}
|
|
1319
1407
|
}
|
|
1320
1408
|
|
|
@@ -1366,7 +1454,7 @@ sap.ui.define([
|
|
|
1366
1454
|
if (!sAriaText || this._isTooltipSuppressed()) {
|
|
1367
1455
|
sAriaText = this._getAriaAndTooltipText(); // ARIA label set by the control
|
|
1368
1456
|
}
|
|
1369
|
-
if (this._isInActionScope()) {
|
|
1457
|
+
if (this._isInActionScope() && this.getScope() !== GenericTileScope.ActionMore) {
|
|
1370
1458
|
sAriaText = this._oRb.getText("GENERICTILE_ACTIONS_ARIA_TEXT") + " " + sAriaText;
|
|
1371
1459
|
}
|
|
1372
1460
|
if (sAriaLabel) {
|
|
@@ -1545,7 +1633,7 @@ sap.ui.define([
|
|
|
1545
1633
|
$Tile.attr("aria-label", sAriaText);
|
|
1546
1634
|
}
|
|
1547
1635
|
if (this._isInActionScope()) {
|
|
1548
|
-
$Tile.find('*:not(.sapMGTRemoveButton)').removeAttr("aria-label").removeAttr("title").off("mouseenter");
|
|
1636
|
+
$Tile.find('*:not(.sapMGTRemoveButton,.sapMGTActionMoreButton)').removeAttr("aria-label").removeAttr("title").off("mouseenter");
|
|
1549
1637
|
} else {
|
|
1550
1638
|
$Tile.find('*').removeAttr("aria-label").removeAttr("title").off("mouseenter");
|
|
1551
1639
|
}
|
|
@@ -1711,10 +1799,15 @@ GenericTile.prototype._isNavigateActionEnabled = function() {
|
|
|
1711
1799
|
* An extra width of 0.5rem would be applied when the gap is 1rem(16px) in the grid container for the TwoByOne and TwoByHalf tiles
|
|
1712
1800
|
* @private
|
|
1713
1801
|
*/
|
|
1714
|
-
GenericTile.prototype._applyExtraWidth = function() {
|
|
1715
|
-
var
|
|
1716
|
-
|
|
1717
|
-
|
|
1802
|
+
GenericTile.prototype._applyExtraWidth = function(oGetParent, bTrue) {
|
|
1803
|
+
var sGap;
|
|
1804
|
+
if (bTrue == true){
|
|
1805
|
+
sGap = oGetParent.getActiveLayoutSettings().getGap();
|
|
1806
|
+
} else {
|
|
1807
|
+
sGap = this.getParent().getActiveLayoutSettings().getGap();
|
|
1808
|
+
}
|
|
1809
|
+
var bisLargeTile = this.getFrameType() === FrameType.TwoByHalf || this.getFrameType() === FrameType.TwoByOne,
|
|
1810
|
+
bisGap16px = sGap === "16px" || sGap === "1rem";
|
|
1718
1811
|
if (bisGap16px && bisLargeTile){
|
|
1719
1812
|
this.addStyleClass("sapMGTWidthForGridContainer");
|
|
1720
1813
|
} else if (!bisGap16px && this.hasStyleClass("sapMGTWidthForGridContainer")){
|
|
@@ -87,7 +87,7 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS", "sap/ui/thirdpart
|
|
|
87
87
|
oRm.class("sapMGT");
|
|
88
88
|
oRm.class(sScopeClass);
|
|
89
89
|
if (sScope === GenericTileScope.ActionMore) {
|
|
90
|
-
oRm.style("padding-right", "
|
|
90
|
+
oRm.style("padding-right", "3.3rem");
|
|
91
91
|
}
|
|
92
92
|
if (sState !== LoadState.Disabled && sScope === GenericTileScope.ActionRemove) {
|
|
93
93
|
oRm.class("sapMGTAcionRemove");
|
|
@@ -214,7 +214,9 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS", "sap/ui/thirdpart
|
|
|
214
214
|
|
|
215
215
|
oRm.close("div"); //.sapMGTTouchArea
|
|
216
216
|
}
|
|
217
|
-
|
|
217
|
+
if (oControl._isInActionScope() && oControl.getState() !== LoadState.Disabled) {
|
|
218
|
+
oRm.renderControl(oControl._oRemoveButton);
|
|
219
|
+
}
|
|
218
220
|
if (bRenderLink) {
|
|
219
221
|
oRm.close("a");
|
|
220
222
|
} else {
|
|
@@ -299,8 +301,6 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS", "sap/ui/thirdpart
|
|
|
299
301
|
oRm.openEnd();
|
|
300
302
|
|
|
301
303
|
oRm.renderControl(oControl._oMoreIcon);
|
|
302
|
-
oRm.renderControl(oControl._oRemoveButton);
|
|
303
|
-
|
|
304
304
|
oRm.close("span");
|
|
305
305
|
}
|
|
306
306
|
};
|
|
@@ -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();
|
|
@@ -112,10 +113,10 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
112
113
|
oRm.class("sapMGTTwoByHalf");
|
|
113
114
|
} else if (frameType === frameTypes.OneByOne) {
|
|
114
115
|
if (!this._isThemeHighContrast()) {
|
|
115
|
-
oRm.style("background-color",
|
|
116
|
+
oRm.style("background-color", sBGColor);
|
|
116
117
|
} else {
|
|
117
|
-
oRm.style("border-color",
|
|
118
|
-
oRm.style("box-shadow", "0 0 0 1px" +
|
|
118
|
+
oRm.style("border-color", sBGColor);
|
|
119
|
+
oRm.style("box-shadow", "0 0 0 1px" + sBGColor);
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
}
|
|
@@ -154,9 +155,12 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
154
155
|
if (oControl.getMode() === GenericTileMode.HeaderMode) {
|
|
155
156
|
oRm.class("sapMGTHeaderMode");
|
|
156
157
|
}
|
|
157
|
-
oRm.openEnd();
|
|
158
158
|
var aTileContent = oControl.getTileContent();
|
|
159
159
|
var iLength = aTileContent.length;
|
|
160
|
+
if (this._isNewsContentPresent(aTileContent,iLength)){
|
|
161
|
+
oRm.class("sapMGTNewsContent");
|
|
162
|
+
}
|
|
163
|
+
oRm.openEnd();
|
|
160
164
|
var isFooterPresent = false;
|
|
161
165
|
var isContentPresent = false;
|
|
162
166
|
function renderLoadingShimmerIconMode(oRm, bIsLoading) {
|
|
@@ -253,11 +257,11 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
253
257
|
} else {
|
|
254
258
|
oRm.class("sapMGTTwoByHalfIcon");
|
|
255
259
|
if (!this._isThemeHighContrast()) {
|
|
256
|
-
oRm.style("background-color",
|
|
260
|
+
oRm.style("background-color", sBGColor);
|
|
257
261
|
} else {
|
|
258
262
|
oRm.class("HighContrastTile");
|
|
259
|
-
oRm.style("border-color",
|
|
260
|
-
oRm.style("box-shadow", "0 0 0 1px" +
|
|
263
|
+
oRm.style("border-color", sBGColor);
|
|
264
|
+
oRm.style("box-shadow", "0 0 0 1px" + sBGColor);
|
|
261
265
|
}
|
|
262
266
|
}
|
|
263
267
|
oRm.openEnd();
|
|
@@ -426,9 +430,6 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
426
430
|
}
|
|
427
431
|
if (oControl.getSystemInfo()) {
|
|
428
432
|
oRm.openStart("div", oControl.getId() + "-sytemInfoWrapper");
|
|
429
|
-
if (oControl.getAppShortcut() && oControl.getSystemInfo()){
|
|
430
|
-
oRm.class("sapMGTMarginTop4px");
|
|
431
|
-
}
|
|
432
433
|
oRm.class("sapMGTSystemInfoText").openEnd();
|
|
433
434
|
oRm.renderControl(oControl._oSystemInfo);
|
|
434
435
|
oRm.close("div");
|
|
@@ -562,6 +563,18 @@ sap.ui.define(["sap/m/library", "sap/base/security/encodeCSS"],
|
|
|
562
563
|
return /(hcw|hcb)/g.test(sap.ui.getCore().getConfiguration().getTheme());
|
|
563
564
|
};
|
|
564
565
|
|
|
566
|
+
GenericTileRenderer._isNewsContentPresent = function(aTileContent,iLength) {
|
|
567
|
+
var bIsPresent = false;
|
|
568
|
+
for (var i = 0; i < iLength; i++) {
|
|
569
|
+
var oAggregationContent = aTileContent[i].getContent();
|
|
570
|
+
if (oAggregationContent && oAggregationContent.isA("sap.m.NewsContent")) {
|
|
571
|
+
bIsPresent = true;
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
return bIsPresent;
|
|
576
|
+
};
|
|
577
|
+
|
|
565
578
|
return GenericTileRenderer;
|
|
566
579
|
|
|
567
580
|
}, /* bExport= */true);
|