@openui5/sap.m 1.119.0 → 1.120.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/THIRDPARTY.txt +6 -6
- package/package.json +4 -4
- package/src/sap/m/.library +8 -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/ActionTile.js +1 -1
- package/src/sap/m/ActionTileContent.js +1 -1
- package/src/sap/m/AdditionalTextButton.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 +10 -6
- package/src/sap/m/AvatarRenderer.js +10 -3
- 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 +7 -8
- 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 +20 -3
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +1 -1
- package/src/sap/m/DateRangeSelection.js +22 -12
- 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 +10 -2
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +2 -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 +5 -4
- package/src/sap/m/FeedInputRenderer.js +3 -3
- package/src/sap/m/FeedListItem.js +6 -4
- 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 +58 -23
- package/src/sap/m/GenericTileRenderer.js +11 -0
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingEnablement.js +2 -3
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +6 -4
- 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/IllustratedMessage.js +1 -1
- package/src/sap/m/Illustration.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 +79 -14
- package/src/sap/m/InputBase.js +3 -1
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/InputRenderer.js +7 -3
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +1 -1
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +1 -1
- package/src/sap/m/LinkTileContent.js +143 -0
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +32 -14
- 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 +3 -3
- 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 +2 -3
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +5 -19
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MessageViewRenderer.js +2 -3
- package/src/sap/m/MultiComboBox.js +1 -1
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +4 -2
- package/src/sap/m/NavContainer.js +4 -3
- 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 +9 -10
- package/src/sap/m/NumericContentRenderer.js +5 -4
- 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 +4 -6
- package/src/sap/m/ObjectStatusRenderer.js +3 -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/OverflowToolbarMenuButton.js +1 -1
- package/src/sap/m/OverflowToolbarRenderer.js +8 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +1 -1
- package/src/sap/m/P13nColumnsItem.js +2 -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 +2 -1
- package/src/sap/m/P13nDimMeasurePanel.js +2 -1
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -1
- package/src/sap/m/P13nGroupItem.js +2 -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 +2 -1
- package/src/sap/m/P13nSortPanel.js +1 -1
- package/src/sap/m/PDFViewer.js +20 -8
- package/src/sap/m/PDFViewerRenderManager.js +18 -18
- package/src/sap/m/PDFViewerRenderer.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 +37 -12
- 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 +5 -4
- 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 +3 -3
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RangeSliderRenderer.js +15 -8
- package/src/sap/m/RatingIndicator.js +4 -3
- package/src/sap/m/ResponsivePopover.js +13 -7
- 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 +5 -7
- 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 +2 -2
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +3 -2
- 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 +7 -9
- 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 +4 -2
- 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 +5 -5
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +10 -4
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +2 -2
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +35 -4
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +5 -7
- 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 +4 -4
- 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/ToolbarRenderer.js +8 -0
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +17 -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 +9 -4
- package/src/sap/m/VariantItem.js +99 -27
- package/src/sap/m/VariantManagement.js +196 -90
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +44 -44
- 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 +6 -6
- 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/designtime/IconTabFilter.designtime.js +1 -1
- package/src/sap/m/designtime/VariantManagement.designtime.js +0 -6
- package/src/sap/m/designtime/messagebundle_mk.properties +182 -0
- package/src/sap/m/designtime/messagebundle_sh.properties +3 -3
- package/src/sap/m/flexibility/EngineFlex.js +5 -0
- package/src/sap/m/inputUtils/highlightItemsWithContains.js +82 -0
- package/src/sap/m/library.js +76 -136
- package/src/sap/m/messagebundle.properties +37 -6
- package/src/sap/m/messagebundle_ar.properties +46 -2
- package/src/sap/m/messagebundle_bg.properties +49 -5
- package/src/sap/m/messagebundle_ca.properties +47 -3
- package/src/sap/m/messagebundle_cs.properties +46 -2
- package/src/sap/m/messagebundle_cy.properties +46 -2
- package/src/sap/m/messagebundle_da.properties +46 -2
- package/src/sap/m/messagebundle_de.properties +46 -2
- package/src/sap/m/messagebundle_el.properties +48 -4
- package/src/sap/m/messagebundle_en.properties +23 -6
- package/src/sap/m/messagebundle_en_GB.properties +46 -2
- package/src/sap/m/messagebundle_es.properties +46 -2
- package/src/sap/m/messagebundle_es_MX.properties +46 -2
- package/src/sap/m/messagebundle_et.properties +44 -0
- package/src/sap/m/messagebundle_fi.properties +46 -2
- package/src/sap/m/messagebundle_fr.properties +46 -2
- package/src/sap/m/messagebundle_fr_CA.properties +46 -2
- package/src/sap/m/messagebundle_hi.properties +48 -4
- package/src/sap/m/messagebundle_hr.properties +46 -2
- package/src/sap/m/messagebundle_hu.properties +51 -7
- package/src/sap/m/messagebundle_id.properties +48 -4
- package/src/sap/m/messagebundle_it.properties +44 -0
- package/src/sap/m/messagebundle_iw.properties +46 -2
- package/src/sap/m/messagebundle_ja.properties +44 -0
- package/src/sap/m/messagebundle_kk.properties +60 -16
- package/src/sap/m/messagebundle_ko.properties +44 -0
- package/src/sap/m/messagebundle_lt.properties +46 -2
- package/src/sap/m/messagebundle_lv.properties +57 -13
- package/src/sap/m/messagebundle_mk.properties +1869 -0
- package/src/sap/m/messagebundle_ms.properties +46 -2
- package/src/sap/m/messagebundle_nl.properties +44 -0
- package/src/sap/m/messagebundle_no.properties +47 -3
- package/src/sap/m/messagebundle_pl.properties +46 -2
- package/src/sap/m/messagebundle_pt.properties +44 -0
- package/src/sap/m/messagebundle_pt_PT.properties +44 -0
- package/src/sap/m/messagebundle_ro.properties +46 -2
- package/src/sap/m/messagebundle_ru.properties +48 -4
- package/src/sap/m/messagebundle_sh.properties +149 -105
- package/src/sap/m/messagebundle_sk.properties +46 -2
- package/src/sap/m/messagebundle_sl.properties +62 -18
- package/src/sap/m/messagebundle_sv.properties +50 -6
- package/src/sap/m/messagebundle_th.properties +44 -0
- package/src/sap/m/messagebundle_tr.properties +49 -5
- package/src/sap/m/messagebundle_uk.properties +59 -15
- package/src/sap/m/messagebundle_vi.properties +46 -2
- package/src/sap/m/messagebundle_zh_CN.properties +44 -0
- package/src/sap/m/messagebundle_zh_TW.properties +46 -2
- 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 +13 -3
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +1 -1
- package/src/sap/m/p13n/FlexUtil.js +0 -41
- package/src/sap/m/p13n/GroupController.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/Popup.js +16 -1
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +457 -423
- package/src/sap/m/p13n/SelectionPanel.js +1 -1
- package/src/sap/m/p13n/SortController.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +4 -3
- package/src/sap/m/p13n/handler/xConfigHandler.js +18 -5
- 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/p13n/modules/xConfigAPI.js +1 -1
- package/src/sap/m/plugins/CellSelector.js +172 -153
- package/src/sap/m/plugins/ColumnResizer.js +9 -2
- package/src/sap/m/plugins/CopyProvider.js +21 -10
- 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/routing/Target.js +3 -3
- package/src/sap/m/routing/Targets.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 +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/ColumnWidthController.js +177 -0
- package/src/sap/m/table/Util.js +1 -1
- 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 +17 -13
- package/src/sap/m/table/columnmenu/QuickAction.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickGroup.js +5 -1
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSortItem.js +2 -2
- package/src/sap/m/table/columnmenu/QuickTotal.js +5 -1
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/Avatar.less +0 -1
- package/src/sap/m/themes/base/BarBase.less +1 -1
- package/src/sap/m/themes/base/BusyIndicator.less +0 -10
- package/src/sap/m/themes/base/ExpandableText.less +6 -0
- package/src/sap/m/themes/base/GenericTile.less +36 -0
- package/src/sap/m/themes/base/LinkTileContent.less +17 -0
- package/src/sap/m/themes/base/MenuButton.less +1 -1
- package/src/sap/m/themes/base/NotificationListBase.less +3 -3
- package/src/sap/m/themes/base/ObjectStatus.less +241 -1
- package/src/sap/m/themes/base/RadioButton.less +1 -1
- package/src/sap/m/themes/base/SearchField.less +2 -1
- package/src/sap/m/themes/base/SplitButton.less +0 -1
- package/src/sap/m/themes/base/Text.less +4 -1
- package/src/sap/m/themes/base/Toolbar.less +7 -14
- package/src/sap/m/themes/base/ValueStateHeader.less +4 -0
- package/src/sap/m/themes/base/library.source.less +1 -0
- package/src/sap/m/upload/ActionsPlaceholder.js +49 -0
- package/src/sap/m/upload/Column.js +58 -0
- package/src/sap/m/upload/FilePreviewDialog.js +22 -3
- package/src/sap/m/upload/FilterPanel.js +280 -0
- package/src/sap/m/upload/UploadSet.js +11 -6
- package/src/sap/m/upload/UploadSetItem.js +6 -5
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/UploadSetwithTable.js +487 -93
- package/src/sap/m/upload/UploadSetwithTableItem.js +26 -11
- package/src/sap/m/upload/Uploader.js +3 -0
- package/src/sap/m/upload/UploaderTableItem.js +4 -1
- package/src/sap/m/upload/p13n/PersManager.js +251 -0
- package/src/sap/m/upload/p13n/flexibility/UploadSetwithTable.flexibility.js +32 -0
- package/src/sap/m/upload/p13n/handlers/BaseConfigHandler.js +44 -0
- package/src/sap/m/upload/p13n/handlers/ChangeHandler.js +98 -0
- package/src/sap/m/upload/p13n/handlers/ColumnConfigHandler.js +57 -0
- package/src/sap/m/upload/p13n/handlers/ColumnsStateChangeHandler.js +43 -0
- package/src/sap/m/upload/p13n/handlers/FilterConfigHandler.js +71 -0
- package/src/sap/m/upload/p13n/handlers/FilterStateChangeHandler.js +65 -0
- package/src/sap/m/upload/p13n/handlers/GroupConfigHandler.js +57 -0
- package/src/sap/m/upload/p13n/handlers/GroupStateChangeHandler.js +46 -0
- package/src/sap/m/upload/p13n/handlers/SortConfigHandler.js +57 -0
- package/src/sap/m/upload/p13n/handlers/SortStateChangeHandler.js +48 -0
- package/src/sap/m/upload/p13n/mediator/BaseMediator.js +183 -0
- package/src/sap/m/upload/p13n/mediator/ColumnsMediator.js +210 -0
- package/src/sap/m/upload/p13n/mediator/FilterMediator.js +196 -0
- package/src/sap/m/upload/p13n/mediator/GroupMediator.js +192 -0
- package/src/sap/m/upload/p13n/mediator/SortMediator.js +200 -0
- package/src/sap/m/upload/p13n/modules/CustomDataConfig.js +100 -0
- package/src/sap/m/upload/p13n/modules/PersPopupManager.js +76 -0
|
@@ -68,7 +68,6 @@ sap.ui.define([
|
|
|
68
68
|
this._iRenderedDataItems = iRenderedItemsLength;
|
|
69
69
|
this._iLimit = iRenderedItemsLength;
|
|
70
70
|
this._bLoading = false;
|
|
71
|
-
this._sGroupingPath = "";
|
|
72
71
|
this._bDataRequested = false;
|
|
73
72
|
this._bSkippedItemsUpdateUntilDataReceived = false;
|
|
74
73
|
this._iLastItemsCount = 0;
|
|
@@ -356,7 +355,7 @@ sap.ui.define([
|
|
|
356
355
|
_getGroupingPath : function(oBinding) {
|
|
357
356
|
var aSorters = oBinding.aSorters || [];
|
|
358
357
|
var oSorter = aSorters[0] || {};
|
|
359
|
-
return (oSorter.fnGroup) ? oSorter.sPath || "" :
|
|
358
|
+
return (oSorter.fnGroup) ? oSorter.sPath || "" : undefined;
|
|
360
359
|
},
|
|
361
360
|
|
|
362
361
|
// if table has pop-in then we have two rows for one item
|
|
@@ -727,7 +726,7 @@ sap.ui.define([
|
|
|
727
726
|
|
|
728
727
|
} else {
|
|
729
728
|
|
|
730
|
-
if (sGroupingPath &&
|
|
729
|
+
if (sGroupingPath != undefined && this._sGroupingPath == undefined) {
|
|
731
730
|
// if it was already grouped then we need to remove group headers first
|
|
732
731
|
oControl.removeGroupHeaders(true);
|
|
733
732
|
}
|
package/src/sap/m/GrowingList.js
CHANGED
package/src/sap/m/HBox.js
CHANGED
|
@@ -22,6 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
"sap/ui/events/PseudoEvents",
|
|
23
23
|
"sap/ui/thirdparty/jquery",
|
|
24
24
|
"sap/ui/core/Configuration",
|
|
25
|
+
"sap/ui/core/Lib",
|
|
25
26
|
"sap/ui/dom/jquery/scrollLeftRTL", // jQuery Plugin "scrollLeftRTL"
|
|
26
27
|
"sap/ui/dom/jquery/scrollRightRTL", // jQuery Plugin "scrollRightRTL"
|
|
27
28
|
"sap/ui/dom/jquery/Selectors" // jQuery custom selectors ":sapTabbable"
|
|
@@ -44,7 +45,8 @@ sap.ui.define([
|
|
|
44
45
|
KeyCodes,
|
|
45
46
|
PseudoEvents,
|
|
46
47
|
jQuery,
|
|
47
|
-
Configuration
|
|
48
|
+
Configuration,
|
|
49
|
+
CoreLib
|
|
48
50
|
) {
|
|
49
51
|
"use strict";
|
|
50
52
|
|
|
@@ -124,7 +126,7 @@ sap.ui.define([
|
|
|
124
126
|
* @since 1.44.0
|
|
125
127
|
*
|
|
126
128
|
* @author SAP SE
|
|
127
|
-
* @version 1.
|
|
129
|
+
* @version 1.120.0
|
|
128
130
|
*
|
|
129
131
|
* @public
|
|
130
132
|
* @alias sap.m.HeaderContainer
|
|
@@ -277,7 +279,7 @@ sap.ui.define([
|
|
|
277
279
|
HeaderContainer.prototype.init = function () {
|
|
278
280
|
this._aItemEnd = [];
|
|
279
281
|
this._bRtl = Configuration.getRTL();
|
|
280
|
-
this._oRb =
|
|
282
|
+
this._oRb = CoreLib.getResourceBundleFor("sap.m");
|
|
281
283
|
this._oScrollCntr = new ScrollContainer(this.getId() + "-scrl-cntnr", {
|
|
282
284
|
width: "100%",
|
|
283
285
|
height: "100%",
|
|
@@ -876,7 +878,7 @@ sap.ui.define([
|
|
|
876
878
|
|
|
877
879
|
|
|
878
880
|
HeaderContainer.prototype._handleMobileScrolling = function () {
|
|
879
|
-
if (
|
|
881
|
+
if (Device.browser.mobile) {
|
|
880
882
|
var $scroll = this.$("scrl-cntnr-scroll"),
|
|
881
883
|
bIsHorizontal = this.getOrientation() === Orientation.Horizontal,
|
|
882
884
|
sProperty = bIsHorizontal ? "clientX" : "clientY",
|
package/src/sap/m/IconTabBar.js
CHANGED
package/src/sap/m/Image.js
CHANGED
package/src/sap/m/Input.js
CHANGED
|
@@ -161,7 +161,7 @@ function(
|
|
|
161
161
|
* @extends sap.m.InputBase
|
|
162
162
|
* @implements sap.ui.core.IAccessKeySupport
|
|
163
163
|
* @author SAP SE
|
|
164
|
-
* @version 1.
|
|
164
|
+
* @version 1.120.0
|
|
165
165
|
*
|
|
166
166
|
* @constructor
|
|
167
167
|
* @public
|
|
@@ -617,7 +617,7 @@ function(
|
|
|
617
617
|
// phase of the life cycle. Without this line, initially the condition fails and fires liveChange event
|
|
618
618
|
// even though there is no user input (check Input.prototype.onsapright).
|
|
619
619
|
this._setTypedInValue("");
|
|
620
|
-
|
|
620
|
+
this._bDoTypeAhead = false;
|
|
621
621
|
|
|
622
622
|
// indicates whether input is clicked (on mobile) or the clear button
|
|
623
623
|
// used for identifying whether dialog should be open.
|
|
@@ -681,10 +681,8 @@ function(
|
|
|
681
681
|
this.$().off("click");
|
|
682
682
|
};
|
|
683
683
|
|
|
684
|
-
|
|
684
|
+
/*
|
|
685
685
|
* Overwrites the onBeforeRendering.
|
|
686
|
-
*
|
|
687
|
-
* @public
|
|
688
686
|
*/
|
|
689
687
|
Input.prototype.onBeforeRendering = function() {
|
|
690
688
|
var sSelectedKey = this.getSelectedKey(),
|
|
@@ -1452,6 +1450,7 @@ function(
|
|
|
1452
1450
|
var bPopupOpened = this._isSuggestionsPopoverOpen(),
|
|
1453
1451
|
bFocusInPopup = !this.hasStyleClass("sapMFocus") && bPopupOpened,
|
|
1454
1452
|
aItems = this._hasTabularSuggestions() ? this.getSuggestionRows() : this.getSuggestionItems(),
|
|
1453
|
+
bFireSubmit = this.getEnabled() && this.getEditable(),
|
|
1455
1454
|
iValueLength, oSelectedItem;
|
|
1456
1455
|
|
|
1457
1456
|
// when enter is pressed before the timeout of suggestion delay, suggest event is cancelled
|
|
@@ -1476,7 +1475,12 @@ function(
|
|
|
1476
1475
|
|
|
1477
1476
|
!bFocusInPopup && InputBase.prototype.onsapenter.apply(this, arguments);
|
|
1478
1477
|
|
|
1479
|
-
|
|
1478
|
+
/**
|
|
1479
|
+
* @deprecated As of version 1.119
|
|
1480
|
+
*/
|
|
1481
|
+
bFireSubmit = bFireSubmit && !(this.getShowValueHelp() && this.getValueHelpOnly());
|
|
1482
|
+
|
|
1483
|
+
if (bFireSubmit) {
|
|
1480
1484
|
this.fireSubmit({value: this.getValue()});
|
|
1481
1485
|
}
|
|
1482
1486
|
|
|
@@ -1994,7 +1998,14 @@ function(
|
|
|
1994
1998
|
oFilterResults = this._getFilteredSuggestionItems(sTypedChars);
|
|
1995
1999
|
iSuggestionsLength = oFilterResults.items.length;
|
|
1996
2000
|
|
|
1997
|
-
|
|
2001
|
+
var bOpenSuggestionsPopup = iSuggestionsLength > 0;
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* @deprecated As of version 1.119
|
|
2005
|
+
*/
|
|
2006
|
+
bOpenSuggestionsPopup = bOpenSuggestionsPopup && !this.getValueHelpOnly();
|
|
2007
|
+
|
|
2008
|
+
if (bOpenSuggestionsPopup) {
|
|
1998
2009
|
this._openSuggestionPopup(this.getValue().length >= this.getStartSuggestion());
|
|
1999
2010
|
} else {
|
|
2000
2011
|
this._hideSuggestionPopup();
|
|
@@ -2182,6 +2193,29 @@ function(
|
|
|
2182
2193
|
}
|
|
2183
2194
|
};
|
|
2184
2195
|
|
|
2196
|
+
/**
|
|
2197
|
+
* We check both the main and the inner (mobile) input for stored typeahead information
|
|
2198
|
+
* as the _handleTypeAhead could be called in both contexts depending on the different cases.
|
|
2199
|
+
*
|
|
2200
|
+
* For example when we have delayed (dynamically) loaded items on mobile devices the typeahead
|
|
2201
|
+
* information is stored on the inner dialog's input on user interaction, but when the items
|
|
2202
|
+
* are updated it is async and the typeahead is handled by the main sap.m.Input instance
|
|
2203
|
+
*
|
|
2204
|
+
* @param {sap.m.Input} oInput Input's instance to which the type ahead would be applied. For example: this OR Dialog's Input instance.
|
|
2205
|
+
* @returns {null|boolean} Should type-ahead be performed or null if no type-ahead info is available.
|
|
2206
|
+
* @private
|
|
2207
|
+
*/
|
|
2208
|
+
Input.prototype._getEffectiveTypeAhead = function () {
|
|
2209
|
+
var oSuggestionsPopover = this._getSuggestionsPopover();
|
|
2210
|
+
var oPopupInput = oSuggestionsPopover && oSuggestionsPopover.getInput();
|
|
2211
|
+
|
|
2212
|
+
if (!this.isMobileDevice() || this._bDoTypeAhead !== null) {
|
|
2213
|
+
return this._bDoTypeAhead && document.activeElement === this.getFocusDomRef();
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
return oPopupInput._bDoTypeAhead && (!!oPopupInput && document.activeElement === oPopupInput.getFocusDomRef());
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2185
2219
|
/**
|
|
2186
2220
|
* Handles Input's specific type ahead logic.
|
|
2187
2221
|
*
|
|
@@ -2198,7 +2232,13 @@ function(
|
|
|
2198
2232
|
};
|
|
2199
2233
|
var oListDelegate;
|
|
2200
2234
|
var oList = oInput._getSuggestionsPopover() && oInput._getSuggestionsPopover().getItemsContainer();
|
|
2201
|
-
this.
|
|
2235
|
+
var bDoTypeAhead = this._getEffectiveTypeAhead();
|
|
2236
|
+
|
|
2237
|
+
if (oDomRef.selectionStart !== oDomRef.selectionEnd) {
|
|
2238
|
+
this._setTypedInValue(oDomRef.value.substring(0, oDomRef.selectionStart));
|
|
2239
|
+
} else {
|
|
2240
|
+
this._setTypedInValue(oDomRef.value);
|
|
2241
|
+
}
|
|
2202
2242
|
|
|
2203
2243
|
// check if typeahead is already performed
|
|
2204
2244
|
if ((oInput && oInput.getValue().toLowerCase()) === (this._getProposedItemText() && this._getProposedItemText().toLowerCase())) {
|
|
@@ -2207,9 +2247,7 @@ function(
|
|
|
2207
2247
|
|
|
2208
2248
|
oInput._setProposedItemText(null);
|
|
2209
2249
|
|
|
2210
|
-
if (!
|
|
2211
|
-
sValue.length < this.getStartSuggestion() || document.activeElement !== this.getFocusDomRef()) {
|
|
2212
|
-
|
|
2250
|
+
if (!bDoTypeAhead) {
|
|
2213
2251
|
return;
|
|
2214
2252
|
}
|
|
2215
2253
|
|
|
@@ -2251,6 +2289,10 @@ function(
|
|
|
2251
2289
|
|
|
2252
2290
|
oInput._setProposedItemText(mTypeAheadInfo.value);
|
|
2253
2291
|
|
|
2292
|
+
// This method could be called multiple times in cases when the items are loaded with delay (dynamically)
|
|
2293
|
+
// and also in the context of the dialog's inner input when on mobile so we have to keep the typeahead info
|
|
2294
|
+
this._mTypeAheadInfo = mTypeAheadInfo;
|
|
2295
|
+
|
|
2254
2296
|
return mTypeAheadInfo;
|
|
2255
2297
|
};
|
|
2256
2298
|
|
|
@@ -3140,10 +3182,16 @@ function(
|
|
|
3140
3182
|
*/
|
|
3141
3183
|
Input.prototype.showItems = function (fnFilter) {
|
|
3142
3184
|
var oFilterResults, iSuggestionsLength,
|
|
3143
|
-
fnFilterStore = this._getFilterFunction()
|
|
3185
|
+
fnFilterStore = this._getFilterFunction(),
|
|
3186
|
+
bShowItems = !this.getEnabled() || !this.getEditable();
|
|
3187
|
+
|
|
3188
|
+
/**
|
|
3189
|
+
* @deprecated As of version 1.119
|
|
3190
|
+
*/
|
|
3191
|
+
bShowItems = bShowItems || this.getValueHelpOnly();
|
|
3144
3192
|
|
|
3145
3193
|
// in case of a non-editable or disabled, the popup cannot be opened
|
|
3146
|
-
if (
|
|
3194
|
+
if (bShowItems) {
|
|
3147
3195
|
return;
|
|
3148
3196
|
}
|
|
3149
3197
|
|
|
@@ -3279,7 +3327,24 @@ function(
|
|
|
3279
3327
|
*/
|
|
3280
3328
|
Input.prototype._getFilteredSuggestionItems = function (sValue) {
|
|
3281
3329
|
var oFilterResults,
|
|
3282
|
-
|
|
3330
|
+
oSuggestionsPopover = this._getSuggestionsPopover(),
|
|
3331
|
+
oList = oSuggestionsPopover.getItemsContainer(),
|
|
3332
|
+
oPopupInput = oSuggestionsPopover && oSuggestionsPopover.getInput(),
|
|
3333
|
+
bDoTypeAhead = false;
|
|
3334
|
+
|
|
3335
|
+
// Check if the typeahead should be performed in case of newly fetched items
|
|
3336
|
+
// We check both the main input and the input of the inner dialog when on mobile devices
|
|
3337
|
+
// because type ahead handling is being called in both context depending on whether it
|
|
3338
|
+
// is called after input event or newly loaded items
|
|
3339
|
+
if (this.isMobileDevice()) {
|
|
3340
|
+
bDoTypeAhead = (!oPopupInput._getProposedItemText() && !oPopupInput._mTypeAheadInfo) || (oPopupInput._mTypeAheadInfo && !oPopupInput._mTypeAheadInfo.value);
|
|
3341
|
+
} else {
|
|
3342
|
+
bDoTypeAhead = (this._getProposedItemText() && !this._mTypeAheadInfo) || (this._mTypeAheadInfo && !this._mTypeAheadInfo.value);
|
|
3343
|
+
}
|
|
3344
|
+
|
|
3345
|
+
if (bDoTypeAhead) {
|
|
3346
|
+
this._handleTypeAhead(this);
|
|
3347
|
+
}
|
|
3283
3348
|
|
|
3284
3349
|
if (this._hasTabularSuggestions()) {
|
|
3285
3350
|
// show list on phone (is hidden when search string is empty)
|
package/src/sap/m/InputBase.js
CHANGED
|
@@ -66,7 +66,7 @@ function(
|
|
|
66
66
|
* @implements sap.ui.core.IFormContent
|
|
67
67
|
*
|
|
68
68
|
* @author SAP SE
|
|
69
|
-
* @version 1.
|
|
69
|
+
* @version 1.120.0
|
|
70
70
|
*
|
|
71
71
|
* @constructor
|
|
72
72
|
* @public
|
|
@@ -243,6 +243,7 @@ function(
|
|
|
243
243
|
* https://html.spec.whatwg.org/multipage/forms.html#input-type-attr-summary
|
|
244
244
|
*
|
|
245
245
|
* @see sap.m.InputBase#oninput
|
|
246
|
+
* @type boolean
|
|
246
247
|
* @protected
|
|
247
248
|
*/
|
|
248
249
|
InputBase.prototype.bShowLabelAsPlaceholder = !Device.support.input.placeholder;
|
|
@@ -298,6 +299,7 @@ function(
|
|
|
298
299
|
/**
|
|
299
300
|
* Indicates whether the input field is in the rendering phase.
|
|
300
301
|
*
|
|
302
|
+
* @type boolean
|
|
301
303
|
* @protected
|
|
302
304
|
*/
|
|
303
305
|
this.bRenderingPhase = false;
|
|
@@ -50,6 +50,7 @@ sap.ui.define(['sap/ui/core/InvisibleText', 'sap/ui/core/Renderer', './InputBase
|
|
|
50
50
|
*/
|
|
51
51
|
InputRenderer.writeInnerAttributes = function (oRm, oControl) {
|
|
52
52
|
var bShowSuggestions = oControl.getShowSuggestion();
|
|
53
|
+
var bAddReadOnly = (!oControl.getEnabled() && oControl.getType() == "Password") || (oControl.getShowSuggestion() && oControl.isMobileDevice());
|
|
53
54
|
|
|
54
55
|
oRm.attr("type", oControl.getType().toLowerCase());
|
|
55
56
|
//if Input is of type "Number" step attribute should be "any" allowing input of floating point numbers
|
|
@@ -64,9 +65,12 @@ sap.ui.define(['sap/ui/core/InvisibleText', 'sap/ui/core/Renderer', './InputBase
|
|
|
64
65
|
oRm.attr("autocomplete", "off"); // autocomplete="off" needed so the native browser autocomplete is not shown?
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated As of version 1.119
|
|
70
|
+
*/
|
|
71
|
+
bAddReadOnly = bAddReadOnly || (oControl.getValueHelpOnly() && oControl.getEnabled() && oControl.getEditable() && oControl.getShowValueHelp());
|
|
72
|
+
|
|
73
|
+
if (bAddReadOnly) {
|
|
70
74
|
// required for JAWS reader on password fields on desktop and in other cases:
|
|
71
75
|
oRm.attr("readonly", "readonly");
|
|
72
76
|
}
|
package/src/sap/m/Label.js
CHANGED
package/src/sap/m/LightBox.js
CHANGED
package/src/sap/m/Link.js
CHANGED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ui/core/Element",
|
|
8
|
+
"sap/m/HBox",
|
|
9
|
+
"sap/m/Link",
|
|
10
|
+
"sap/ui/core/Icon"
|
|
11
|
+
],function(Element,HBox,Link,Icon){
|
|
12
|
+
"use strict";
|
|
13
|
+
/**
|
|
14
|
+
* Constructor for a new LinkTileContent.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} [sId] ID for the new control, it is generated automatically if an ID is not provided.
|
|
17
|
+
* @param {object} [mSettings] Initial settings for the new control.
|
|
18
|
+
* @class This element is used within the GenericTile control that generates a combination of an icon and a linkl
|
|
19
|
+
* @extends sap.ui.core.Element
|
|
20
|
+
* @author SAP SE
|
|
21
|
+
* @version 1.120.0
|
|
22
|
+
* @constructor
|
|
23
|
+
* @public
|
|
24
|
+
* @since 1.120
|
|
25
|
+
* @alias sap.m.LinkTileContent
|
|
26
|
+
*/
|
|
27
|
+
const LinkTileContent = Element.extend("sap.m.LinkTileContent",{
|
|
28
|
+
metadata:{
|
|
29
|
+
library: "sap.m",
|
|
30
|
+
properties: {
|
|
31
|
+
/**
|
|
32
|
+
* This property can be set by following options:
|
|
33
|
+
*
|
|
34
|
+
* <b>Option 1:</b></br>
|
|
35
|
+
* The value has to be matched by following pattern <code>sap-icon://collection-name/icon-name</code> where
|
|
36
|
+
* <code>collection-name</code> and <code>icon-name</code> have to be replaced by the desired values.
|
|
37
|
+
* In case the default UI5 icons are used the <code>collection-name</code> can be omited.</br>
|
|
38
|
+
* <i>Example:</i> <code>sap-icon://accept</code>
|
|
39
|
+
*
|
|
40
|
+
* <b>Option 2:</b>
|
|
41
|
+
* The value is determined by using {@link sap.ui.core.IconPool.getIconURI} with an Icon name parameter
|
|
42
|
+
* and an optional collection parameter which is required when using application extended Icons.</br>
|
|
43
|
+
* <i>Example:</i> <code>IconPool.getIconURI("accept")</code>
|
|
44
|
+
*/
|
|
45
|
+
iconSrc: {type : "sap.ui.core.URI", group : "Data", defaultValue : null},
|
|
46
|
+
/**
|
|
47
|
+
* Defines the displayed link text.
|
|
48
|
+
*/
|
|
49
|
+
linkText: {type : "string", group : "Data", defaultValue : ''},
|
|
50
|
+
/**
|
|
51
|
+
* Defines the link target URI. Supports standard hyperlink behavior.
|
|
52
|
+
* <b>Note:</b> Don't set <code>href</code> property if an action should be triggered by the link. Instead set <code>accessibleRole</code>
|
|
53
|
+
* property to <code>LinkAccessibleRole.Button</code> and register a <code>press</code> event handler.
|
|
54
|
+
*/
|
|
55
|
+
linkHref: {type : "sap.ui.core.URI", group : "Data", defaultValue : null}
|
|
56
|
+
},
|
|
57
|
+
events: {
|
|
58
|
+
/**
|
|
59
|
+
* Event is fired when the user triggers the link control.
|
|
60
|
+
*/
|
|
61
|
+
linkPress: {
|
|
62
|
+
allowPreventDefault : true,
|
|
63
|
+
parameters: {
|
|
64
|
+
/**
|
|
65
|
+
* Indicates whether the CTRL key was pressed when the link was selected.
|
|
66
|
+
* @since 1.120
|
|
67
|
+
*/
|
|
68
|
+
ctrlKey: { type: "boolean" },
|
|
69
|
+
/**
|
|
70
|
+
* Indicates whether the "meta" key was pressed when the link was selected.
|
|
71
|
+
*
|
|
72
|
+
* On Macintosh keyboards, this is the command key (⌘).
|
|
73
|
+
* On Windows keyboards, this is the windows key (⊞).
|
|
74
|
+
*
|
|
75
|
+
* @since 1.120
|
|
76
|
+
*/
|
|
77
|
+
metaKey: { type: "boolean" }
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
LinkTileContent.prototype.init = function() {
|
|
84
|
+
this._linkTileContent = null;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Returns the current element instance
|
|
88
|
+
* @returns {Object<sap.m.LinkTileContent>}
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
LinkTileContent.prototype.getLinkTileContentInstance = function() {
|
|
92
|
+
if (!this._linkTileContent) {
|
|
93
|
+
this._linkTileContent = new HBox();
|
|
94
|
+
this._addItem(this._linkTileContent);
|
|
95
|
+
this._linkTileContent.addStyleClass("sapLTC");
|
|
96
|
+
}
|
|
97
|
+
return this._linkTileContent;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* It adds an icon and link to the element
|
|
101
|
+
* @param {Object<sap.m.HBox>} oHBox
|
|
102
|
+
* @private
|
|
103
|
+
*/
|
|
104
|
+
LinkTileContent.prototype._addItem = function(oHBox) {
|
|
105
|
+
const {iconSrc,linkText,linkHref} = this.mProperties;
|
|
106
|
+
this._oIcon = new Icon({
|
|
107
|
+
size: "1rem",
|
|
108
|
+
src: iconSrc
|
|
109
|
+
});
|
|
110
|
+
this._oLink = new Link({
|
|
111
|
+
text: linkText,
|
|
112
|
+
href: linkHref,
|
|
113
|
+
press: this._onLinkPress.bind(this)
|
|
114
|
+
});
|
|
115
|
+
oHBox.addItem(this._oIcon);
|
|
116
|
+
oHBox.addItem(this._oLink);
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Returns the current element instance
|
|
120
|
+
* @returns {Object<sap.m.Link>}
|
|
121
|
+
* @private
|
|
122
|
+
*/
|
|
123
|
+
LinkTileContent.prototype._getLink = function() {
|
|
124
|
+
return this._oLink;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Returns the current element instance
|
|
128
|
+
* @returns {Object<sap.ui.core.Icon>}
|
|
129
|
+
* @private
|
|
130
|
+
*/
|
|
131
|
+
LinkTileContent.prototype._getIcon = function() {
|
|
132
|
+
return this._oIcon;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Sets the press event handler on the link
|
|
136
|
+
* @private
|
|
137
|
+
*/
|
|
138
|
+
LinkTileContent.prototype._onLinkPress = function(oEvent) {
|
|
139
|
+
const {ctrlKey,metaKey} = oEvent.mParameters;
|
|
140
|
+
this.fireLinkPress({ctrlKey,metaKey});
|
|
141
|
+
};
|
|
142
|
+
return LinkTileContent;
|
|
143
|
+
});
|