@openui5/sap.m 1.97.1 → 1.98.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 +25 -30
- package/THIRDPARTY.txt +13 -20
- package/package.json +4 -4
- package/src/sap/m/.library +1 -1
- package/src/sap/m/AccButton.js +1 -1
- package/src/sap/m/ActionListItem.js +1 -1
- package/src/sap/m/ActionSelect.js +1 -1
- package/src/sap/m/ActionSheet.js +4 -4
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +1 -1
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +1 -1
- package/src/sap/m/Carousel.js +1 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +2 -22
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +26 -7
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnListItemRenderer.js +7 -4
- 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 +3 -3
- package/src/sap/m/ComboBoxBase.js +5 -5
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomDynamicDateOption.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +16 -12
- package/src/sap/m/DateRangeSelection.js +2 -2
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +49 -13
- package/src/sap/m/Dialog.js +14 -7
- 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 +3 -2
- package/src/sap/m/DynamicDateOption.js +1 -1
- package/src/sap/m/DynamicDateRange.js +131 -44
- package/src/sap/m/DynamicDateUtil.js +76 -3
- package/src/sap/m/DynamicDateValueHelpUIType.js +7 -2
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +21 -18
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +1 -1
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +1 -1
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +32 -5
- package/src/sap/m/GenericTileLineModeRenderer.js +4 -12
- package/src/sap/m/GenericTileRenderer.js +4 -1
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +1 -1
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +12 -1
- package/src/sap/m/IconTabBarSelectListRenderer.js +1 -1
- package/src/sap/m/IconTabFilter.js +14 -9
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +55 -31
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +619 -0
- package/src/sap/m/IllustratedMessageRenderer.js +55 -0
- package/src/sap/m/IllustratedMessageSize.js +64 -0
- package/src/sap/m/IllustratedMessageType.js +319 -0
- package/src/sap/m/Illustration.js +117 -0
- package/src/sap/m/IllustrationPool.js +392 -0
- package/src/sap/m/IllustrationRenderer.js +41 -0
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +25 -10
- package/src/sap/m/InputBase.js +1 -1
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +22 -3
- package/src/sap/m/LabelRenderer.js +7 -4
- 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/List.js +1 -1
- package/src/sap/m/ListBase.js +1 -1
- package/src/sap/m/ListItemBase.js +1 -1
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +3 -3
- package/src/sap/m/MenuButton.js +6 -2
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +8 -3
- package/src/sap/m/MultiComboBox.js +11 -11
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +14 -18
- package/src/sap/m/NavContainer.js +1 -1
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/NumericInput.js +138 -0
- package/src/sap/m/NumericInputRenderer.js +124 -0
- package/src/sap/m/ObjectAttribute.js +20 -15
- package/src/sap/m/ObjectAttributeRenderer.js +14 -7
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/OverflowToolbar.js +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +1 -1
- package/src/sap/m/P13nColumnsItem.js +1 -1
- package/src/sap/m/P13nColumnsPanel.js +3 -1
- package/src/sap/m/P13nConditionPanel.js +1 -1
- package/src/sap/m/P13nDialog.js +3 -2
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +1 -1
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +12 -7
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +3 -2
- package/src/sap/m/P13nItem.js +1 -1
- package/src/sap/m/P13nPanel.js +1 -1
- package/src/sap/m/P13nSelectionItem.js +1 -1
- package/src/sap/m/P13nSelectionPanel.js +1 -1
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +3 -2
- package/src/sap/m/PDFViewer.js +1 -1
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +1 -1
- package/src/sap/m/PlanningCalendarHeader.js +1 -1
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +1 -1
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +1 -1
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +1 -1
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +2 -2
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +9 -1
- package/src/sap/m/SelectDialog.js +2 -2
- 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 +4 -4
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +39 -2
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +13 -3
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +6 -2
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +13 -2
- package/src/sap/m/SinglePlanningCalendarWeekView.js +15 -4
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +16 -1
- package/src/sap/m/SlideTileRenderer.js +4 -2
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +1 -1
- package/src/sap/m/StandardDynamicDateOption.js +126 -9
- package/src/sap/m/StandardListItem.js +34 -1
- package/src/sap/m/StandardListItemRenderer.js +4 -2
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +60 -158
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +16 -3
- 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 +44 -3
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableRenderer.js +3 -2
- package/src/sap/m/TableSelectDialog.js +2 -2
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +3 -38
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +1 -1
- package/src/sap/m/TimePicker.js +44 -15
- package/src/sap/m/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +6 -1
- package/src/sap/m/TimePickerClocksRenderer.js +2 -0
- package/src/sap/m/TimePickerInputs.js +6 -1
- package/src/sap/m/TimePickerInputsRenderer.js +2 -0
- package/src/sap/m/TimePickerInternals.js +51 -3
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +1 -1
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +1 -1
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +1 -1
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +39 -19
- 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/delegate/ValueStateMessage.js +1 -1
- package/src/sap/m/designtime/Button.designtime.js +1 -1
- package/src/sap/m/designtime/StandardListItem.designtime.js +5 -1
- package/src/sap/m/library.js +288 -49
- package/src/sap/m/messagebundle.properties +273 -59
- package/src/sap/m/messagebundle_ar.properties +147 -29
- package/src/sap/m/messagebundle_bg.properties +155 -37
- package/src/sap/m/messagebundle_ca.properties +164 -46
- package/src/sap/m/messagebundle_cs.properties +167 -49
- package/src/sap/m/messagebundle_cy.properties +155 -37
- package/src/sap/m/messagebundle_da.properties +157 -39
- package/src/sap/m/messagebundle_de.properties +147 -29
- package/src/sap/m/messagebundle_el.properties +188 -70
- package/src/sap/m/messagebundle_en.properties +190 -72
- package/src/sap/m/messagebundle_en_GB.properties +190 -72
- package/src/sap/m/messagebundle_en_US_sappsd.properties +187 -71
- package/src/sap/m/messagebundle_en_US_saptrc.properties +189 -71
- package/src/sap/m/messagebundle_es.properties +174 -56
- package/src/sap/m/messagebundle_es_MX.properties +170 -52
- package/src/sap/m/messagebundle_et.properties +146 -28
- package/src/sap/m/messagebundle_fi.properties +141 -23
- package/src/sap/m/messagebundle_fr.properties +156 -38
- package/src/sap/m/messagebundle_fr_CA.properties +152 -34
- package/src/sap/m/messagebundle_hi.properties +150 -32
- package/src/sap/m/messagebundle_hr.properties +159 -41
- package/src/sap/m/messagebundle_hu.properties +153 -35
- package/src/sap/m/messagebundle_id.properties +202 -84
- package/src/sap/m/messagebundle_it.properties +159 -41
- package/src/sap/m/messagebundle_iw.properties +157 -39
- package/src/sap/m/messagebundle_ja.properties +139 -21
- package/src/sap/m/messagebundle_kk.properties +129 -11
- package/src/sap/m/messagebundle_ko.properties +156 -38
- package/src/sap/m/messagebundle_lt.properties +135 -17
- package/src/sap/m/messagebundle_lv.properties +154 -36
- package/src/sap/m/messagebundle_ms.properties +188 -70
- package/src/sap/m/messagebundle_nl.properties +153 -35
- package/src/sap/m/messagebundle_no.properties +151 -33
- package/src/sap/m/messagebundle_pl.properties +157 -39
- package/src/sap/m/messagebundle_pt.properties +164 -46
- package/src/sap/m/messagebundle_pt_PT.properties +151 -33
- package/src/sap/m/messagebundle_ro.properties +159 -41
- package/src/sap/m/messagebundle_ru.properties +156 -38
- package/src/sap/m/messagebundle_sh.properties +147 -29
- package/src/sap/m/messagebundle_sk.properties +154 -36
- package/src/sap/m/messagebundle_sl.properties +151 -33
- package/src/sap/m/messagebundle_sv.properties +146 -28
- package/src/sap/m/messagebundle_th.properties +147 -29
- package/src/sap/m/messagebundle_tr.properties +152 -34
- package/src/sap/m/messagebundle_uk.properties +145 -27
- package/src/sap/m/messagebundle_vi.properties +148 -30
- package/src/sap/m/messagebundle_zh_CN.properties +147 -29
- package/src/sap/m/messagebundle_zh_TW.properties +154 -36
- package/src/sap/m/p13n/AbstractContainer.js +16 -16
- package/src/sap/m/p13n/AbstractContainerItem.js +7 -8
- package/src/sap/m/p13n/BasePanel.js +37 -19
- package/src/sap/m/p13n/Container.js +8 -14
- package/src/sap/m/p13n/GroupPanel.js +31 -6
- package/src/sap/m/p13n/Popup.js +22 -19
- package/src/sap/m/p13n/QueryPanel.js +2 -3
- package/src/sap/m/p13n/SelectionPanel.js +14 -11
- package/src/sap/m/p13n/SortPanel.js +30 -6
- package/src/sap/m/plugins/ColumnResizer.js +1 -1
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/routing/RouteMatchedHandler.js +1 -1
- package/src/sap/m/routing/Router.js +9 -7
- package/src/sap/m/routing/TargetHandler.js +4 -4
- package/src/sap/m/routing/Targets.js +52 -42
- package/src/sap/m/routing/async/Targets.js +3 -3
- package/src/sap/m/routing/sync/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/ActionItem.js +1 -1
- package/src/sap/m/table/ColumnMenu.js +49 -48
- package/src/sap/m/table/ColumnMenuEntry.js +1 -1
- package/src/sap/m/table/Item.js +1 -1
- package/src/sap/m/table/ItemBase.js +1 -1
- package/src/sap/m/table/QuickAction.js +1 -1
- package/src/sap/m/table/QuickActionBase.js +1 -1
- package/src/sap/m/table/Util.js +2 -2
- package/src/sap/m/themes/base/ColumnListItem.less +13 -5
- package/src/sap/m/themes/base/ComboBoxBase.less +18 -7
- package/src/sap/m/themes/base/DateTimePicker.less +8 -3
- package/src/sap/m/themes/base/DynamicDateRange.less +8 -0
- package/src/sap/m/themes/base/GenericTile.less +18 -29
- package/src/sap/m/themes/base/IconTabBar.less +4 -3
- package/src/sap/m/themes/base/IllustratedMessage.less +110 -0
- package/src/sap/m/themes/base/Illustration.less +58 -0
- package/src/sap/m/themes/base/Label.less +10 -3
- package/src/sap/m/themes/base/NavContainer.less +0 -9
- package/src/sap/m/themes/base/ObjectAttribute.less +4 -12
- package/src/sap/m/themes/base/ObjectStatus.less +4 -4
- package/src/sap/m/themes/base/Page.less +0 -1
- package/src/sap/m/themes/base/RadioButton.less +7 -2
- package/src/sap/m/themes/base/SegmentedButton.less +0 -16
- package/src/sap/m/themes/base/StandardListItem.less +4 -0
- package/src/sap/m/themes/base/SuggestionsPopover.less +2 -1
- package/src/sap/m/themes/base/Table.less +1 -1
- package/src/sap/m/themes/base/TimePickerClock.less +4 -0
- package/src/sap/m/themes/base/TimePickerClocks.less +3 -3
- package/src/sap/m/themes/base/TimePickerInputs.less +4 -0
- package/src/sap/m/themes/base/WizardProgressNavigator.less +17 -16
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-AddColumn.svg +37 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-AddPeople.svg +31 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-BalloonSky.svg +33 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-BeforeSearch.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-Connection.svg +18 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-EmptyCalendar.svg +73 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-EmptyList.svg +21 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-EmptyPlanningCalendar.svg +78 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-ErrorScreen.svg +34 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-FilterTable.svg +41 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-GroupTable.svg +67 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NewMail.svg +21 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoActivities.svg +18 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoData.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoEntries.svg +18 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoFilterResults.svg +24 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoMail.svg +11 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoMail_v1.svg +22 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoNotifications.svg +14 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoSavedItems.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoSavedItems_v1.svg +36 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoSearchResults.svg +15 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoTasks.svg +18 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoTasks_v1.svg +53 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-PageNotFound.svg +29 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-ReloadScreen.svg +34 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-ResizeColumn.svg +41 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SearchEarth.svg +18 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SearchFolder.svg +27 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleBalloon.svg +17 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleBell.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleCalendar.svg +47 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleCheckmark.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleConnection.svg +18 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleEmptyDoc.svg +17 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleEmptyList.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleError.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleMagnifier.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleMail.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleNoSavedItems.svg +17 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleNotFoundMagnifier.svg +21 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleReload.svg +11 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SimpleTask.svg +23 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SleepingBell.svg +23 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SortColumn.svg +39 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SuccessScreen.svg +32 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-Tent.svg +26 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-UnableToLoad.svg +11 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-UnableToUpload.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-UploadCollection.svg +32 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Patterns.svg +20 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-AddColumn.svg +48 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-AddPeople.svg +30 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-BalloonSky.svg +42 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-BeforeSearch.svg +31 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-Connection.svg +31 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-EmptyCalendar.svg +86 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-EmptyList.svg +27 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-EmptyPlanningCalendar.svg +91 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-ErrorScreen.svg +78 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-FilterTable.svg +56 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-GroupTable.svg +76 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NewMail.svg +54 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoActivities.svg +28 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoData.svg +23 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoEntries.svg +32 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoFilterResults.svg +39 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoMail.svg +23 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoMail_v1.svg +55 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoNotifications.svg +36 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoSavedItems.svg +36 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoSavedItems_v1.svg +39 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoSearchResults.svg +15 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoTasks.svg +22 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoTasks_v1.svg +90 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-PageNotFound.svg +33 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-ReloadScreen.svg +80 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-ResizeColumn.svg +52 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SearchEarth.svg +30 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SearchFolder.svg +36 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleBalloon.svg +20 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleBell.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleCalendar.svg +43 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleCheckmark.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleConnection.svg +22 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleEmptyDoc.svg +20 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleEmptyList.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleError.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleMagnifier.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleMail.svg +16 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleNoSavedItems.svg +27 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleNotFoundMagnifier.svg +24 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleReload.svg +14 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SimpleTask.svg +19 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SleepingBell.svg +43 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SortColumn.svg +50 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SuccessScreen.svg +78 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-Tent.svg +54 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-UnableToLoad.svg +23 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-UnableToUpload.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-UploadCollection.svg +30 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-AddColumn.svg +37 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-AddPeople.svg +31 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-BalloonSky.svg +29 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-BeforeSearch.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-Connection.svg +22 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-EmptyCalendar.svg +42 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-EmptyList.svg +21 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-EmptyPlanningCalendar.svg +78 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-ErrorScreen.svg +32 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-FilterTable.svg +46 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-GroupTable.svg +67 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NewMail.svg +18 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoActivities.svg +23 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoData.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoEntries.svg +22 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoFilterResults.svg +25 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoMail.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoMail_v1.svg +16 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoNotifications.svg +15 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoSavedItems.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoSavedItems_v1.svg +33 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoSearchResults.svg +13 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoTasks.svg +20 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoTasks_v1.svg +15 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-PageNotFound.svg +31 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-ReloadScreen.svg +32 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-ResizeColumn.svg +41 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SearchEarth.svg +55 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SearchFolder.svg +25 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleBalloon.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleBell.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleCalendar.svg +46 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleCheckmark.svg +5 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleConnection.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleEmptyDoc.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleEmptyList.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleError.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleMagnifier.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleMail.svg +12 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleNoSavedItems.svg +23 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleNotFoundMagnifier.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleReload.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SimpleTask.svg +22 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SleepingBell.svg +22 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SortColumn.svg +39 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SuccessScreen.svg +32 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-Tent.svg +24 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-UnableToLoad.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-UnableToUpload.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-UploadCollection.svg +31 -0
- package/src/sap/m/themes/base/library.source.less +2 -0
- package/src/sap/m/themes/sap_hcb/ComboBoxBase.less +12 -0
- package/src/sap/m/themes/sap_hcb/ObjectHeader.less +0 -21
- package/src/sap/m/themes/sap_hcb/SegmentedButton.less +0 -19
- package/src/sap/m/upload/UploadSet.js +62 -4
- package/src/sap/m/upload/UploadSetItem.js +14 -2
- package/src/sap/m/upload/Uploader.js +25 -3
package/src/sap/m/StepInput.js
CHANGED
|
@@ -6,46 +6,35 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides control sap.m.StepInput.
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
"sap/ui/core/Icon",
|
|
10
|
-
"./Input",
|
|
11
|
-
"./InputBase",
|
|
12
|
-
"./InputRenderer",
|
|
13
9
|
"sap/ui/core/Control",
|
|
14
10
|
"sap/ui/core/IconPool",
|
|
15
|
-
"sap/ui/core/LabelEnablement",
|
|
16
11
|
"sap/ui/core/message/MessageMixin",
|
|
12
|
+
"sap/ui/core/format/NumberFormat",
|
|
17
13
|
"sap/ui/model/ValidateException",
|
|
18
14
|
"sap/ui/Device",
|
|
19
15
|
"sap/ui/core/library",
|
|
20
|
-
"sap/ui/core/Renderer",
|
|
21
16
|
"sap/m/library",
|
|
17
|
+
"./NumericInput",
|
|
22
18
|
"./StepInputRenderer",
|
|
23
19
|
"sap/ui/events/KeyCodes",
|
|
24
20
|
"sap/base/Log"
|
|
25
21
|
],
|
|
26
22
|
function(
|
|
27
|
-
Icon,
|
|
28
|
-
Input,
|
|
29
|
-
InputBase,
|
|
30
|
-
InputRenderer,
|
|
31
23
|
Control,
|
|
32
24
|
IconPool,
|
|
33
|
-
LabelEnablement,
|
|
34
25
|
MessageMixin,
|
|
26
|
+
NumberFormat,
|
|
35
27
|
ValidateException,
|
|
36
28
|
Device,
|
|
37
29
|
coreLibrary,
|
|
38
|
-
Renderer,
|
|
39
30
|
library,
|
|
31
|
+
NumericInput,
|
|
40
32
|
StepInputRenderer,
|
|
41
33
|
KeyCodes,
|
|
42
34
|
Log
|
|
43
35
|
) {
|
|
44
36
|
"use strict";
|
|
45
37
|
|
|
46
|
-
// shortcut for sap.m.InputType
|
|
47
|
-
var InputType = library.InputType;
|
|
48
|
-
|
|
49
38
|
// shortcut for sap.ui.core.TextAlign
|
|
50
39
|
var TextAlign = coreLibrary.TextAlign;
|
|
51
40
|
|
|
@@ -130,7 +119,7 @@ function(
|
|
|
130
119
|
* @implements sap.ui.core.IFormContent
|
|
131
120
|
*
|
|
132
121
|
* @author SAP SE
|
|
133
|
-
* @version 1.
|
|
122
|
+
* @version 1.98.0
|
|
134
123
|
*
|
|
135
124
|
* @constructor
|
|
136
125
|
* @public
|
|
@@ -325,117 +314,6 @@ function(
|
|
|
325
314
|
*/
|
|
326
315
|
var aForwardableProps = ["enabled", "editable", "name", "placeholder", "required", "valueStateText", "description", "fieldWidth", "textAlign"];
|
|
327
316
|
|
|
328
|
-
|
|
329
|
-
/****************************************** NUMERIC INPUT CONTROL ****************************************************/
|
|
330
|
-
|
|
331
|
-
var NumericInputRenderer = Renderer.extend(InputRenderer);
|
|
332
|
-
|
|
333
|
-
NumericInputRenderer.apiVersion = 2;
|
|
334
|
-
|
|
335
|
-
NumericInputRenderer.writeInnerAttributes = function(oRm, oControl) {
|
|
336
|
-
var oStepInput = oControl.getParent(),
|
|
337
|
-
mAccAttributes = this.getAccessibilityState(oControl);
|
|
338
|
-
// inside the Input this function also sets explicitly textAlign to "End" if the type
|
|
339
|
-
// of the Input is Numeric (our case)
|
|
340
|
-
// so we have to overwrite it by leaving only the text direction
|
|
341
|
-
// and the textAlign will be controlled by textAlign property of the StepInput
|
|
342
|
-
oRm.attr("type", oControl.getType().toLowerCase());
|
|
343
|
-
|
|
344
|
-
if (sap.ui.getCore().getConfiguration().getRTL()) {
|
|
345
|
-
oRm.attr("dir", "ltr");
|
|
346
|
-
}
|
|
347
|
-
// prevent rendering of aria-disabled attribute to avoid having
|
|
348
|
-
// both aria-disabled and disabled at the same time
|
|
349
|
-
mAccAttributes.disabled = null;
|
|
350
|
-
|
|
351
|
-
oRm.accessibilityState(oStepInput, mAccAttributes);
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
//Accessibility behavior of the Input needs to be extended
|
|
355
|
-
/**
|
|
356
|
-
* Overwrites the accessibility state using the <code>getAccessibilityState</code> method of the <code>InputBaseRenderer</code>.
|
|
357
|
-
*
|
|
358
|
-
* @param {NumericInput} oNumericInput The numeric input instance
|
|
359
|
-
* @returns {Array} mAccessibilityState
|
|
360
|
-
*/
|
|
361
|
-
NumericInputRenderer.getAccessibilityState = function(oNumericInput) {
|
|
362
|
-
var mAccessibilityState = InputRenderer.getAccessibilityState(oNumericInput),
|
|
363
|
-
oStepInput = oNumericInput.getParent(),
|
|
364
|
-
fMin = oStepInput._getMin(),
|
|
365
|
-
fMax = oStepInput._getMax(),
|
|
366
|
-
fNow = oStepInput.getValue(),
|
|
367
|
-
sDescription = oStepInput.getDescription(),
|
|
368
|
-
aAriaLabelledByRefs = oStepInput.getAriaLabelledBy(),
|
|
369
|
-
// If we don't check this manually, we won't have the labels, which were referencing SI,
|
|
370
|
-
// in aria-labelledby (which normally comes out of the box). This is because writeAccessibilityState
|
|
371
|
-
// is called for NumericInput, while any labels will be for the parent StepInput.
|
|
372
|
-
aReferencingLabels = LabelEnablement.getReferencingLabels(oStepInput),
|
|
373
|
-
sDescribedBy = oStepInput.getAriaDescribedBy().join(" "),
|
|
374
|
-
sResultingLabelledBy;
|
|
375
|
-
|
|
376
|
-
mAccessibilityState.valuenow = fNow;
|
|
377
|
-
|
|
378
|
-
if (sDescription) {
|
|
379
|
-
// If there is a description, we should add a reference to it in the aria-labelledby
|
|
380
|
-
aAriaLabelledByRefs.push(oStepInput._getInput().getId() + "-descr");
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
sResultingLabelledBy = aReferencingLabels.concat(aAriaLabelledByRefs).join(" ");
|
|
384
|
-
|
|
385
|
-
if (typeof fMin === "number") {
|
|
386
|
-
mAccessibilityState.valuemin = fMin;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
if (typeof fMax === "number") {
|
|
390
|
-
mAccessibilityState.valuemax = fMax;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
if (!oStepInput.getEditable()) {
|
|
394
|
-
mAccessibilityState.readonly = true;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
if (sDescribedBy){
|
|
398
|
-
mAccessibilityState.describedby = sDescribedBy;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
if (sResultingLabelledBy){
|
|
402
|
-
mAccessibilityState.labelledby = sResultingLabelledBy;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
return mAccessibilityState;
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
var NumericInput = Input.extend("sap.m.internal.NumericInput", {
|
|
409
|
-
metadata: {
|
|
410
|
-
library: "sap.m"
|
|
411
|
-
},
|
|
412
|
-
constructor: function(sId, mSettings) {
|
|
413
|
-
return Input.apply(this, arguments);
|
|
414
|
-
},
|
|
415
|
-
renderer: NumericInputRenderer
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
NumericInput.prototype.onBeforeRendering = function() {
|
|
419
|
-
InputBase.prototype.onBeforeRendering.call(this);
|
|
420
|
-
|
|
421
|
-
// The Input is handling its width in its onBeforeRendering method - if noting is set, the width is 100%.
|
|
422
|
-
// As the NumericInput is using the InputBase's onBeforeRendering method, the width must be handled here too.
|
|
423
|
-
// The real width of the StepInput is handled from its width property, so the NumericInput's width should be 100%.
|
|
424
|
-
this.setWidth("100%");
|
|
425
|
-
|
|
426
|
-
this._deregisterEvents();
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
NumericInput.prototype.setValue = function(sValue) {
|
|
430
|
-
Input.prototype.setValue.apply(this, arguments);
|
|
431
|
-
|
|
432
|
-
if (this.getDomRef()) {
|
|
433
|
-
this.getDomRef("inner").setAttribute("aria-valuenow", sValue);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
return this;
|
|
437
|
-
};
|
|
438
|
-
|
|
439
317
|
MessageMixin.call(StepInput.prototype);
|
|
440
318
|
|
|
441
319
|
/**
|
|
@@ -572,7 +450,8 @@ function(
|
|
|
572
450
|
* @returns {this} Reference to the control instance for chaining
|
|
573
451
|
*/
|
|
574
452
|
StepInput.prototype.setDisplayValuePrecision = function (number) {
|
|
575
|
-
var vValuePrecision
|
|
453
|
+
var vValuePrecision,
|
|
454
|
+
oInstance;
|
|
576
455
|
|
|
577
456
|
if (isValidPrecisionValue(number)) {
|
|
578
457
|
vValuePrecision = parseInt(number);
|
|
@@ -581,7 +460,11 @@ function(
|
|
|
581
460
|
Log.warning(this + ": ValuePrecision (" + number + ") is not correct. It should be a number between 0 and 20! Setting the default ValuePrecision:0.");
|
|
582
461
|
}
|
|
583
462
|
|
|
584
|
-
|
|
463
|
+
var oInstance = this.setProperty("displayValuePrecision", vValuePrecision);
|
|
464
|
+
|
|
465
|
+
this._getNumberFormatter(true);
|
|
466
|
+
|
|
467
|
+
return oInstance;
|
|
585
468
|
};
|
|
586
469
|
|
|
587
470
|
/**
|
|
@@ -631,7 +514,7 @@ function(
|
|
|
631
514
|
});
|
|
632
515
|
|
|
633
516
|
oIcon.getEnabled = function () {
|
|
634
|
-
return !this._shouldDisableIncrementButton(
|
|
517
|
+
return !this._shouldDisableIncrementButton(this._parseNumber(this._getInput().getValue()), this._getMax());
|
|
635
518
|
}.bind(this);
|
|
636
519
|
|
|
637
520
|
oIcon.$().attr("tabindex", "-1");
|
|
@@ -664,7 +547,7 @@ function(
|
|
|
664
547
|
});
|
|
665
548
|
|
|
666
549
|
oIcon.getEnabled = function () {
|
|
667
|
-
return !this._shouldDisableDecrementButton(
|
|
550
|
+
return !this._shouldDisableDecrementButton(this._parseNumber(this._getInput().getValue()), this._getMin());
|
|
668
551
|
}.bind(this);
|
|
669
552
|
|
|
670
553
|
oIcon.$().attr("tabindex", "-1");
|
|
@@ -692,7 +575,6 @@ function(
|
|
|
692
575
|
var oNumericInput = new NumericInput({
|
|
693
576
|
id: this.getId() + "-input",
|
|
694
577
|
textAlign: this.getTextAlign(),
|
|
695
|
-
type: InputType.Number,
|
|
696
578
|
editable: this.getEditable(),
|
|
697
579
|
enabled: this.getEnabled(),
|
|
698
580
|
description: this.getDescription(),
|
|
@@ -720,7 +602,7 @@ function(
|
|
|
720
602
|
} else {
|
|
721
603
|
// just update the visual value and buttons
|
|
722
604
|
this._applyValue(this._fTempValue);
|
|
723
|
-
this._disableButtons(
|
|
605
|
+
this._disableButtons(this._parseNumber(this._getInput().getValue()), this._getMax(), this._getMin());
|
|
724
606
|
}
|
|
725
607
|
return this;
|
|
726
608
|
};
|
|
@@ -778,7 +660,7 @@ function(
|
|
|
778
660
|
|
|
779
661
|
if (this._bDelayedEventFire) {
|
|
780
662
|
this._applyValue(fNewValue);
|
|
781
|
-
this._disableButtons(
|
|
663
|
+
this._disableButtons(this._parseNumber(this._getFormattedValue(fNewValue)), this._getMax(), this._getMin());
|
|
782
664
|
this._bNeedsVerification = true;
|
|
783
665
|
}
|
|
784
666
|
|
|
@@ -830,7 +712,7 @@ function(
|
|
|
830
712
|
StepInput.prototype._verifyValue = function () {
|
|
831
713
|
var min = this._getMin(),
|
|
832
714
|
max = this._getMax(),
|
|
833
|
-
value =
|
|
715
|
+
value = this._parseNumber(this._getInput().getValue()),
|
|
834
716
|
oCoreMessageBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.core"),
|
|
835
717
|
oBinding = this.getBinding("value"),
|
|
836
718
|
oBindingType = oBinding && oBinding.getType && oBinding.getType(),
|
|
@@ -922,7 +804,7 @@ function(
|
|
|
922
804
|
|
|
923
805
|
this._sOriginalValue = oValue;
|
|
924
806
|
this._applyValue(oValue);
|
|
925
|
-
this._disableButtons(
|
|
807
|
+
this._disableButtons(this._parseNumber(this._getInput().getValue()), this._getMax(), this._getMin());
|
|
926
808
|
|
|
927
809
|
if (oValue !== this._fOldValue) {
|
|
928
810
|
// save current value (for ESC restoring)
|
|
@@ -938,11 +820,19 @@ function(
|
|
|
938
820
|
return oResult;
|
|
939
821
|
};
|
|
940
822
|
|
|
823
|
+
StepInput.prototype._getNumberFormatter = function(bReset) {
|
|
824
|
+
if (!this._formatter || bReset) {
|
|
825
|
+
this._formatter = NumberFormat.getFloatInstance({ decimals: this.getDisplayValuePrecision() });
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
return this._formatter;
|
|
829
|
+
};
|
|
830
|
+
|
|
941
831
|
/**
|
|
942
832
|
* Formats the <code>vValue</code> accordingly to the <code>displayValuePrecision</code> property.
|
|
943
|
-
*
|
|
833
|
+
* If vValue is undefined or null, the property <code>value</code> will be used.
|
|
944
834
|
*
|
|
945
|
-
* @returns
|
|
835
|
+
* @returns formatted value as a String
|
|
946
836
|
* @private
|
|
947
837
|
*/
|
|
948
838
|
StepInput.prototype._getFormattedValue = function (vValue) {
|
|
@@ -954,6 +844,10 @@ function(
|
|
|
954
844
|
vValue = this.getValue();
|
|
955
845
|
}
|
|
956
846
|
|
|
847
|
+
if (Device.system.desktop) {
|
|
848
|
+
return this._getNumberFormatter().format(vValue);
|
|
849
|
+
}
|
|
850
|
+
|
|
957
851
|
if (iPrecision <= 0) {
|
|
958
852
|
// return value without any decimals
|
|
959
853
|
return parseFloat(vValue).toFixed(0);
|
|
@@ -970,7 +864,6 @@ function(
|
|
|
970
864
|
} else {
|
|
971
865
|
return vValue.toString() + "." + this._padZeroesRight("0", iPrecision);
|
|
972
866
|
}
|
|
973
|
-
|
|
974
867
|
};
|
|
975
868
|
|
|
976
869
|
/**
|
|
@@ -1010,12 +903,12 @@ function(
|
|
|
1010
903
|
|
|
1011
904
|
// fix the entered value if the precision is 0; and filter 'e/E' meanwhile
|
|
1012
905
|
if (this.getDisplayValuePrecision() === 0) {
|
|
1013
|
-
sInputValue = Math.round(
|
|
906
|
+
sInputValue = Math.round(this._parseNumber(sInputValue.toLowerCase().split('e')[0])).toString();
|
|
1014
907
|
}
|
|
1015
908
|
|
|
1016
909
|
// calculates delta (difference) between input value and real control value
|
|
1017
910
|
if (this._getFormattedValue(this._fTempValue) !== sInputValue) {
|
|
1018
|
-
fDelta =
|
|
911
|
+
fDelta = this._parseNumber(sInputValue) - this._fTempValue;
|
|
1019
912
|
}
|
|
1020
913
|
return fDelta;
|
|
1021
914
|
};
|
|
@@ -1060,7 +953,7 @@ function(
|
|
|
1060
953
|
StepInput.prototype.onsappageupmodifiers = function (oEvent) {
|
|
1061
954
|
if (this.getEditable() && this._isNumericLike(this._getMax()) && !(oEvent.ctrlKey || oEvent.metaKey || oEvent.altKey) && oEvent.shiftKey) {
|
|
1062
955
|
this._bDelayedEventFire = true;
|
|
1063
|
-
this._fTempValue =
|
|
956
|
+
this._fTempValue = this._parseNumber(this._getInput().getValue());
|
|
1064
957
|
this._changeValueWithStep(this._getMax() - this._fTempValue);
|
|
1065
958
|
}
|
|
1066
959
|
};
|
|
@@ -1073,7 +966,7 @@ function(
|
|
|
1073
966
|
StepInput.prototype.onsappagedownmodifiers = function (oEvent) {
|
|
1074
967
|
if (this.getEditable() && this._isNumericLike(this._getMin()) && !(oEvent.ctrlKey || oEvent.metaKey || oEvent.altKey) && oEvent.shiftKey) {
|
|
1075
968
|
this._bDelayedEventFire = true;
|
|
1076
|
-
this._fTempValue =
|
|
969
|
+
this._fTempValue = this._parseNumber(this._getInput().getValue());
|
|
1077
970
|
this._changeValueWithStep(-(this._fTempValue - this._getMin()));
|
|
1078
971
|
}
|
|
1079
972
|
};
|
|
@@ -1144,11 +1037,11 @@ function(
|
|
|
1144
1037
|
|
|
1145
1038
|
if (oEvent.which === KeyCodes.ARROW_UP && !oEvent.altKey && oEvent.shiftKey && (oEvent.ctrlKey || oEvent.metaKey)) { //ctrl+shift+up
|
|
1146
1039
|
fMax = this._getMax();
|
|
1147
|
-
this._fTempValue =
|
|
1040
|
+
this._fTempValue = this._parseNumber(this._getInput().getValue());
|
|
1148
1041
|
fStep = (fMax !== undefined) ? fMax - this._fTempValue : 0;
|
|
1149
1042
|
} else if (oEvent.which === KeyCodes.ARROW_DOWN && !oEvent.altKey && oEvent.shiftKey && (oEvent.ctrlKey || oEvent.metaKey)) { //ctrl+shift+down
|
|
1150
1043
|
fMin = this._getMin();
|
|
1151
|
-
this._fTempValue =
|
|
1044
|
+
this._fTempValue = this._parseNumber(this._getInput().getValue());
|
|
1152
1045
|
fStep = (fMin !== undefined) ? -(this._fTempValue - fMin) : 0;
|
|
1153
1046
|
} else if (oEvent.which === KeyCodes.ARROW_UP && !(oEvent.ctrlKey || oEvent.metaKey || oEvent.altKey) && oEvent.shiftKey) { //shift+up
|
|
1154
1047
|
fStep = this.getLargerStep();
|
|
@@ -1215,7 +1108,7 @@ function(
|
|
|
1215
1108
|
* @private
|
|
1216
1109
|
*/
|
|
1217
1110
|
StepInput.prototype._liveChange = function () {
|
|
1218
|
-
this._disableButtons(
|
|
1111
|
+
this._disableButtons(this._parseNumber(this._getInput().getValue()), this._getMax(), this._getMin());
|
|
1219
1112
|
this._verifyValue();
|
|
1220
1113
|
};
|
|
1221
1114
|
|
|
@@ -1232,7 +1125,7 @@ function(
|
|
|
1232
1125
|
if (!this._isButtonFocused() ) {
|
|
1233
1126
|
|
|
1234
1127
|
if (!this._btndown || bIsNotInValidRange) {
|
|
1235
|
-
fOldValue =
|
|
1128
|
+
fOldValue = this._parseNumber(this._getFormattedValue());
|
|
1236
1129
|
if (this._fOldValue === undefined) {
|
|
1237
1130
|
this._fOldValue = fOldValue;
|
|
1238
1131
|
}
|
|
@@ -1242,7 +1135,7 @@ function(
|
|
|
1242
1135
|
this._changeValue();
|
|
1243
1136
|
this._bNeedsVerification = true;
|
|
1244
1137
|
} else {
|
|
1245
|
-
this._fTempValue =
|
|
1138
|
+
this._fTempValue = this._parseNumber(this._getInput().getValue());
|
|
1246
1139
|
}
|
|
1247
1140
|
}
|
|
1248
1141
|
};
|
|
@@ -1368,30 +1261,31 @@ function(
|
|
|
1368
1261
|
* @param {sap.ui.base.Event} oEvent Event object
|
|
1369
1262
|
* @private
|
|
1370
1263
|
*/
|
|
1371
|
-
StepInput.prototype._restrictCharsWhenDecimal = function
|
|
1372
|
-
var
|
|
1264
|
+
StepInput.prototype._restrictCharsWhenDecimal = function(oEvent) {
|
|
1265
|
+
var sDecimalSeparator = Device.system.desktop ? this._getNumberFormatter().oFormatOptions.decimalSeparator : ".";
|
|
1266
|
+
var iDecimalMark = oEvent.getParameter("value").indexOf(sDecimalSeparator),
|
|
1373
1267
|
iCharsSet = this.getDisplayValuePrecision(),
|
|
1374
1268
|
sEventValue = oEvent.getParameter("value"),
|
|
1375
1269
|
sValue;
|
|
1376
1270
|
|
|
1377
1271
|
if (iDecimalMark > 0 && iCharsSet >= 0) { //only for decimals
|
|
1378
|
-
var sEventValueAfterTheDecimal = sEventValue.split(
|
|
1272
|
+
var sEventValueAfterTheDecimal = sEventValue.split(sDecimalSeparator)[1],
|
|
1379
1273
|
iCharsAfterTheDecimalSign = sEventValueAfterTheDecimal ? sEventValueAfterTheDecimal.length : 0,
|
|
1380
|
-
sCharsBeforeTheEventDecimalValue = sEventValue.split(
|
|
1381
|
-
sCharsAfterTheEventDecimalValue = iCharsSet > 0 ? sEventValue.substring(sEventValue.indexOf(
|
|
1274
|
+
sCharsBeforeTheEventDecimalValue = sEventValue.split(sDecimalSeparator)[0],
|
|
1275
|
+
sCharsAfterTheEventDecimalValue = iCharsSet > 0 ? sEventValue.substring(sEventValue.indexOf(sDecimalSeparator) + 1, sEventValue.length) : '';
|
|
1382
1276
|
|
|
1383
1277
|
//scenario 1 - user typing after the decimal mark:
|
|
1384
1278
|
if (!this._bPaste) {
|
|
1385
1279
|
//if the characters after the decimal are more than the displayValuePrecision -> keep the current value after the decimal
|
|
1386
1280
|
if (iCharsAfterTheDecimalSign > iCharsSet) {
|
|
1387
|
-
sValue = sCharsBeforeTheEventDecimalValue + (iCharsSet > 0 ?
|
|
1281
|
+
sValue = sCharsBeforeTheEventDecimalValue + (iCharsSet > 0 ? sDecimalSeparator + sCharsAfterTheEventDecimalValue.substr(0, iCharsSet) : '');
|
|
1388
1282
|
this._showWrongValueVisualEffect();
|
|
1389
1283
|
}
|
|
1390
1284
|
|
|
1391
1285
|
//scenario 2 - paste - cut the chars with length, bigger than displayValuePrecision
|
|
1392
1286
|
} else {
|
|
1393
|
-
if (sEventValue.indexOf(
|
|
1394
|
-
sValue = sEventValue.split(
|
|
1287
|
+
if (sEventValue.indexOf(sDecimalSeparator)){
|
|
1288
|
+
sValue = sEventValue.split(sDecimalSeparator)[0] + (iCharsSet > 0 ? sDecimalSeparator + sEventValueAfterTheDecimal.substring(0, iCharsSet) : '');
|
|
1395
1289
|
}
|
|
1396
1290
|
this._bPaste = false;
|
|
1397
1291
|
}
|
|
@@ -1433,7 +1327,7 @@ function(
|
|
|
1433
1327
|
*/
|
|
1434
1328
|
StepInput.prototype._getDefaultValue = function (value, max, min) {
|
|
1435
1329
|
if (value !== "" && value !== undefined) {
|
|
1436
|
-
return
|
|
1330
|
+
return this._parseNumber(this._getInput().getValue());
|
|
1437
1331
|
}
|
|
1438
1332
|
|
|
1439
1333
|
if (this._isNumericLike(min) && min > 0) {
|
|
@@ -1564,7 +1458,7 @@ function(
|
|
|
1564
1458
|
this._bSpinStarted = true;
|
|
1565
1459
|
this._bDelayedEventFire = true;
|
|
1566
1460
|
this._changeValueWithStep(bIncrementButton ? 1 : -1);
|
|
1567
|
-
this._disableButtons(
|
|
1461
|
+
this._disableButtons(this._parseNumber(this._getInput().getValue()), this._getMax(), this._getMin());
|
|
1568
1462
|
if ((this._getIncrementButton().getEnabled() && bIncrementButton) || (this._getDecrementButton().getEnabled() && !bIncrementButton)) {
|
|
1569
1463
|
this._spinValues(bIncrementButton);
|
|
1570
1464
|
}
|
|
@@ -1709,5 +1603,13 @@ function(
|
|
|
1709
1603
|
};
|
|
1710
1604
|
};
|
|
1711
1605
|
|
|
1606
|
+
StepInput.prototype._parseNumber = function(sValue) {
|
|
1607
|
+
if (Device.system.desktop) {
|
|
1608
|
+
return this._getNumberFormatter().parse(sValue);
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
return Number(sValue);
|
|
1612
|
+
};
|
|
1613
|
+
|
|
1712
1614
|
return StepInput;
|
|
1713
1615
|
});
|
package/src/sap/m/Switch.js
CHANGED
|
@@ -48,7 +48,7 @@ function(
|
|
|
48
48
|
* @extends sap.ui.core.Control
|
|
49
49
|
*
|
|
50
50
|
* @author SAP SE
|
|
51
|
-
* @version 1.
|
|
51
|
+
* @version 1.98.0
|
|
52
52
|
*
|
|
53
53
|
* @constructor
|
|
54
54
|
* @public
|
|
@@ -208,11 +208,24 @@ function(
|
|
|
208
208
|
return sText;
|
|
209
209
|
};
|
|
210
210
|
|
|
211
|
+
var mParams = Object.assign({
|
|
212
|
+
// add base styles as default
|
|
213
|
+
"_sap_m_Switch_OnPosition": -32,
|
|
214
|
+
"_sap_m_Switch_OffPosition": 0
|
|
215
|
+
}, Parameters.get({
|
|
216
|
+
name: ["_sap_m_Switch_OnPosition", "_sap_m_Switch_OffPosition"],
|
|
217
|
+
callback: function (_mParams) {
|
|
218
|
+
Switch._ONPOSITION = Number(_mParams["_sap_m_Switch_OnPosition"]);
|
|
219
|
+
Switch._OFFPOSITION = Number(_mParams["_sap_m_Switch_OffPosition"]);
|
|
220
|
+
Switch._SWAPPOINT = Math.abs((Switch._ONPOSITION - Switch._OFFPOSITION) / 2);
|
|
221
|
+
}
|
|
222
|
+
}));
|
|
223
|
+
|
|
211
224
|
// the position of the inner HTML element whether the switch is "ON"
|
|
212
|
-
Switch._ONPOSITION = Number(
|
|
225
|
+
Switch._ONPOSITION = Number(mParams["_sap_m_Switch_OnPosition"]);
|
|
213
226
|
|
|
214
227
|
// the position of the inner HTML element whether the switch is "OFF"
|
|
215
|
-
Switch._OFFPOSITION = Number(
|
|
228
|
+
Switch._OFFPOSITION = Number(mParams["_sap_m_Switch_OffPosition"]);
|
|
216
229
|
|
|
217
230
|
// swap point
|
|
218
231
|
Switch._SWAPPOINT = Math.abs((Switch._ONPOSITION - Switch._OFFPOSITION) / 2);
|
package/src/sap/m/TabStrip.js
CHANGED
package/src/sap/m/Table.js
CHANGED
|
@@ -14,6 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
"./CheckBox",
|
|
15
15
|
"./TableRenderer",
|
|
16
16
|
"sap/base/Log",
|
|
17
|
+
"sap/ui/base/Object",
|
|
17
18
|
"sap/ui/core/ResizeHandler",
|
|
18
19
|
"sap/ui/core/util/PasteHelper",
|
|
19
20
|
"sap/ui/events/KeyCodes",
|
|
@@ -23,7 +24,7 @@ sap.ui.define([
|
|
|
23
24
|
// jQuery custom selectors ":sapTabbable"
|
|
24
25
|
"sap/ui/dom/jquery/Selectors"
|
|
25
26
|
],
|
|
26
|
-
function(Core, Device, library, ListBase, ListItemBase, CheckBox, TableRenderer, Log, ResizeHandler, PasteHelper, KeyCodes, jQuery, ListBaseRenderer, Icon) {
|
|
27
|
+
function(Core, Device, library, ListBase, ListItemBase, CheckBox, TableRenderer, Log, BaseObject, ResizeHandler, PasteHelper, KeyCodes, jQuery, ListBaseRenderer, Icon) {
|
|
27
28
|
"use strict";
|
|
28
29
|
|
|
29
30
|
|
|
@@ -65,7 +66,7 @@ sap.ui.define([
|
|
|
65
66
|
* @extends sap.m.ListBase
|
|
66
67
|
*
|
|
67
68
|
* @author SAP SE
|
|
68
|
-
* @version 1.
|
|
69
|
+
* @version 1.98.0
|
|
69
70
|
*
|
|
70
71
|
* @constructor
|
|
71
72
|
* @public
|
|
@@ -688,7 +689,9 @@ sap.ui.define([
|
|
|
688
689
|
};
|
|
689
690
|
|
|
690
691
|
Table.prototype.onColumnPress = function(oColumn) {
|
|
691
|
-
|
|
692
|
+
var oMenu = oColumn.getColumnHeaderMenu();
|
|
693
|
+
oMenu && oMenu.openBy(oColumn);
|
|
694
|
+
(this.bActiveHeaders || oMenu) && this.fireEvent("columnPress", {
|
|
692
695
|
column: oColumn
|
|
693
696
|
});
|
|
694
697
|
};
|
|
@@ -1065,6 +1068,44 @@ sap.ui.define([
|
|
|
1065
1068
|
}
|
|
1066
1069
|
};
|
|
1067
1070
|
|
|
1071
|
+
/**
|
|
1072
|
+
* Sets the focus on the stored focus DOM reference.
|
|
1073
|
+
*
|
|
1074
|
+
* If {@param oFocusInfo.targetInfo} is of type {@type sap.ui.core.message.Message},
|
|
1075
|
+
* the focus will be set as accurately as possible according to the information provided by {@type sap.ui.core.message.Message}.
|
|
1076
|
+
*
|
|
1077
|
+
* @param {object} [oFocusInfo={}] Options for setting the focus
|
|
1078
|
+
* @param {boolean} [oFocusInfo.preventScroll=false] @since 1.60 If set to <code>true</code>, the focused
|
|
1079
|
+
* element won't be moved into the viewport if it's not completely visible before the focus is set
|
|
1080
|
+
* @param {any} [oFocusInfo.targetInfo] @since 1.98 Further control-specific setting of the focus target within the control
|
|
1081
|
+
* @public
|
|
1082
|
+
*/
|
|
1083
|
+
Table.prototype.focus = function(oFocusInfo) {
|
|
1084
|
+
this._oFocusInfo = oFocusInfo;
|
|
1085
|
+
ListBase.prototype.focus.apply(this, arguments);
|
|
1086
|
+
delete this._oFocusInfo;
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
Table.prototype.getFocusDomRef = function() {
|
|
1090
|
+
var bHasMessage = this._oFocusInfo && this._oFocusInfo.targetInfo && BaseObject.isA(this._oFocusInfo.targetInfo, "sap.ui.core.message.Message");
|
|
1091
|
+
|
|
1092
|
+
if (bHasMessage) {
|
|
1093
|
+
var $TblHeader = this.$("tblHeader");
|
|
1094
|
+
var $VisibleColumns = $TblHeader.find(".sapMListTblCell:visible");
|
|
1095
|
+
|
|
1096
|
+
if ($VisibleColumns.length) {
|
|
1097
|
+
return $TblHeader[0];
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
var $NoData = this.$("nodata");
|
|
1101
|
+
if ($NoData.length) {
|
|
1102
|
+
return $NoData[0];
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
return ListBase.prototype.getFocusDomRef.apply(this, arguments);
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1068
1109
|
Table.prototype.onfocusin = function(oEvent) {
|
|
1069
1110
|
var oTarget = oEvent.target;
|
|
1070
1111
|
if (oTarget.id == this.getId("tblHeader")) {
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @class Table Personalization Controller
|
|
39
39
|
* @extends sap.ui.base.ManagedObject
|
|
40
40
|
* @author SAP
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.98.0
|
|
42
42
|
* @alias sap.m.TablePersoController
|
|
43
43
|
*/
|
|
44
44
|
var TablePersoController = ManagedObject.extend("sap.m.TablePersoController", /** @lends sap.m.TablePersoController */
|
|
@@ -87,7 +87,7 @@ sap.ui.define([
|
|
|
87
87
|
* @class Table Personalization Dialog
|
|
88
88
|
* @extends sap.ui.base.ManagedObject
|
|
89
89
|
* @author SAP
|
|
90
|
-
* @version 1.
|
|
90
|
+
* @version 1.98.0
|
|
91
91
|
* @alias sap.m.TablePersoDialog
|
|
92
92
|
*/
|
|
93
93
|
var TablePersoDialog = ManagedObject.extend("sap.m.TablePersoDialog", /** @lends sap.m.TablePersoDialog */
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/base/ManagedObject', "sap/base/Log"],
|
|
|
21
21
|
* @extends sap.ui.base.ManagedObject
|
|
22
22
|
* @abstract
|
|
23
23
|
* @author SAP
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.98.0
|
|
25
25
|
* @alias sap.m.TablePersoProvider
|
|
26
26
|
*/
|
|
27
27
|
var TablePersoProvider = ManagedObject.extend("sap.m.TablePersoProvider", /** @lends sap.m.TablePersoProvider */
|
|
@@ -211,12 +211,13 @@ sap.ui.define(["sap/ui/core/Renderer", "sap/ui/core/Core", "sap/ui/core/Invisibl
|
|
|
211
211
|
rm.openStart("div");
|
|
212
212
|
rm.class("sapMColumnHeader");
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
var oMenu = oColumn.getColumnHeaderMenu();
|
|
215
|
+
if ((oTable.bActiveHeaders || oMenu) && !control.isA("sap.ui.core.InvisibleText")) {
|
|
215
216
|
// add active header attributes and style class
|
|
216
217
|
rm.attr("tabindex", 0);
|
|
217
218
|
rm.attr("role", "button");
|
|
218
|
-
rm.attr("aria-haspopup", "dialog");
|
|
219
219
|
rm.class("sapMColumnHeaderActive");
|
|
220
|
+
rm.attr("aria-haspopup", oMenu ? oMenu.getAriaHasPopupType().toLowerCase() : "dialog");
|
|
220
221
|
} else if (oTable.bFocusableHeaders) {
|
|
221
222
|
rm.attr("tabindex", 0);
|
|
222
223
|
rm.class("sapMColumnHeaderFocusable");
|