@openui5/sap.m 1.115.1 → 1.117.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 +0 -5
- package/THIRDPARTY.txt +1 -7
- 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 +6 -2
- 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 +46 -5
- package/src/sap/m/AvatarRenderer.js +16 -10
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +6 -5
- package/src/sap/m/BusyDialog.js +5 -3
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +1 -1
- package/src/sap/m/Carousel.js +24 -8
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CarouselRenderer.js +19 -4
- package/src/sap/m/CheckBox.js +8 -4
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +29 -170
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +7 -12
- package/src/sap/m/ColumnListItemRenderer.js +16 -27
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +1 -1
- package/src/sap/m/ComboBoxBase.js +1 -1
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/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 +31 -5
- package/src/sap/m/DatePickerRenderer.js +3 -2
- package/src/sap/m/DateRangeSelection.js +77 -25
- package/src/sap/m/DateTimeField.js +15 -10
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +1 -1
- package/src/sap/m/DateTimePickerRenderer.js +3 -1
- package/src/sap/m/Dialog.js +16 -10
- package/src/sap/m/DialogRenderer.js +3 -3
- 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 +2 -2
- package/src/sap/m/DynamicDateRange.js +42 -5
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +1 -3
- 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 +18 -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 +44 -50
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +1 -1
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GroupHeaderListItemRenderer.js +5 -5
- package/src/sap/m/GrowingEnablement.js +34 -32
- 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/HyphenationSupport.js +13 -4
- package/src/sap/m/IconTabBar.js +3 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +3 -3
- 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 +4 -2
- package/src/sap/m/Illustration.js +1 -1
- package/src/sap/m/IllustrationPool.js +4 -3
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +21 -12
- package/src/sap/m/InputBase.js +7 -5
- package/src/sap/m/InputBaseRenderer.js +3 -3
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LabelRenderer.js +3 -3
- package/src/sap/m/LightBox.js +1 -1
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +36 -3
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +61 -28
- package/src/sap/m/ListBaseRenderer.js +12 -4
- package/src/sap/m/ListItemBase.js +17 -8
- package/src/sap/m/ListItemBaseRenderer.js +6 -6
- 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 +14 -1
- package/src/sap/m/MenuButton.js +1 -1
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -12
- package/src/sap/m/MessageView.js +2 -2
- package/src/sap/m/MultiComboBox.js +3 -3
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +13 -2
- package/src/sap/m/NavContainer.js +21 -5
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/NumericInput.js +1 -1
- package/src/sap/m/ObjectAttribute.js +1 -1
- package/src/sap/m/ObjectHeader.js +6 -1
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +9 -2
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +63 -4
- package/src/sap/m/ObjectStatusRenderer.js +21 -9
- package/src/sap/m/OverflowToolbar.js +30 -15
- package/src/sap/m/OverflowToolbarAssociativePopover.js +5 -5
- 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/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 +2 -8
- package/src/sap/m/P13nConditionPanel.js +1 -1
- package/src/sap/m/P13nDialog.js +2 -1
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +3 -10
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +28 -43
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +1 -1
- package/src/sap/m/P13nItem.js +1 -1
- package/src/sap/m/P13nPanel.js +1 -1
- package/src/sap/m/P13nSelectionItem.js +1 -1
- package/src/sap/m/P13nSelectionPanel.js +5 -3
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +1 -1
- package/src/sap/m/PDFViewer.js +1 -1
- package/src/sap/m/PDFViewerRenderer.js +1 -1
- package/src/sap/m/Page.js +8 -6
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +11 -2
- package/src/sap/m/PanelRenderer.js +9 -0
- package/src/sap/m/PlanningCalendar.js +10 -4
- 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 +13 -17
- 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 +14 -1
- package/src/sap/m/QuickViewCardRenderer.js +0 -4
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +40 -28
- 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 +16 -4
- package/src/sap/m/RatingIndicatorRenderer.js +9 -2
- 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 +3 -3
- package/src/sap/m/SearchField.js +8 -12
- package/src/sap/m/SearchFieldRenderer.js +5 -5
- package/src/sap/m/SegmentedButton.js +4 -2
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/SegmentedButtonRenderer.js +3 -3
- package/src/sap/m/Select.js +18 -16
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectDialogBase.js +28 -4
- package/src/sap/m/SelectList.js +5 -6
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +1 -1
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +43 -43
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +1 -1
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +8 -13
- package/src/sap/m/StandardDynamicDateOption.js +2 -2
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTileRenderer.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +3 -3
- package/src/sap/m/SuggestionItem.js +4 -2
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +59 -180
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +4 -1
- package/src/sap/m/TableRenderer.js +98 -126
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/TextRenderer.js +3 -3
- 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/TileRenderer.js +7 -4
- package/src/sap/m/TimePicker.js +41 -12
- package/src/sap/m/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +1 -1
- package/src/sap/m/TimePickerClocksRenderer.js +6 -13
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInputsRenderer.js +6 -10
- package/src/sap/m/TimePickerInternals.js +1 -44
- package/src/sap/m/TimePickerRenderer.js +3 -2
- 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 +15 -3
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +1 -1
- package/src/sap/m/Toolbar.js +4 -2
- 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 +2 -2
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/VariantManagement.js +13 -50
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +2 -2
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +1 -1
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardStep.js +1 -1
- package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/m/changeHandler/CombineButtons.js +1 -1
- package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/designtime/HBox.designtime.js +16 -0
- package/src/sap/m/designtime/IconTabFilter.designtime.js +0 -9
- package/src/sap/m/designtime/ObjectHeader.designtime.js +26 -0
- package/src/sap/m/designtime/Select.designtime.js +2 -1
- package/src/sap/m/designtime/VBox.designtime.js +16 -0
- package/src/sap/m/inputUtils/SuggestionsPopoverDialogMixin.js +5 -5
- package/src/sap/m/inputUtils/SuggestionsPopoverPopoverMixin.js +4 -0
- package/src/sap/m/library.js +62 -7
- package/src/sap/m/messagebundle.properties +27 -13
- package/src/sap/m/messagebundle_ar.properties +36 -20
- package/src/sap/m/messagebundle_bg.properties +102 -86
- package/src/sap/m/messagebundle_ca.properties +34 -18
- package/src/sap/m/messagebundle_cs.properties +40 -24
- package/src/sap/m/messagebundle_cy.properties +35 -19
- package/src/sap/m/messagebundle_da.properties +35 -19
- package/src/sap/m/messagebundle_de.properties +35 -19
- package/src/sap/m/messagebundle_el.properties +36 -20
- package/src/sap/m/messagebundle_en.properties +35 -19
- package/src/sap/m/messagebundle_en_GB.properties +35 -19
- package/src/sap/m/messagebundle_en_US_sappsd.properties +34 -18
- package/src/sap/m/messagebundle_en_US_saprigi.properties +34 -18
- package/src/sap/m/messagebundle_en_US_saptrc.properties +34 -18
- package/src/sap/m/messagebundle_es.properties +33 -17
- package/src/sap/m/messagebundle_es_MX.properties +33 -17
- package/src/sap/m/messagebundle_et.properties +33 -17
- package/src/sap/m/messagebundle_fi.properties +37 -21
- package/src/sap/m/messagebundle_fr.properties +38 -22
- package/src/sap/m/messagebundle_fr_CA.properties +35 -19
- package/src/sap/m/messagebundle_hi.properties +36 -20
- package/src/sap/m/messagebundle_hr.properties +36 -20
- package/src/sap/m/messagebundle_hu.properties +39 -23
- package/src/sap/m/messagebundle_id.properties +38 -22
- package/src/sap/m/messagebundle_it.properties +33 -17
- package/src/sap/m/messagebundle_iw.properties +40 -24
- package/src/sap/m/messagebundle_ja.properties +70 -54
- package/src/sap/m/messagebundle_kk.properties +35 -19
- package/src/sap/m/messagebundle_ko.properties +36 -20
- package/src/sap/m/messagebundle_lt.properties +35 -19
- package/src/sap/m/messagebundle_lv.properties +33 -17
- package/src/sap/m/messagebundle_ms.properties +35 -19
- package/src/sap/m/messagebundle_nl.properties +35 -19
- package/src/sap/m/messagebundle_no.properties +38 -22
- package/src/sap/m/messagebundle_pl.properties +35 -19
- package/src/sap/m/messagebundle_pt.properties +33 -17
- package/src/sap/m/messagebundle_pt_PT.properties +33 -17
- package/src/sap/m/messagebundle_ro.properties +45 -29
- package/src/sap/m/messagebundle_ru.properties +32 -16
- package/src/sap/m/messagebundle_sh.properties +43 -27
- package/src/sap/m/messagebundle_sk.properties +35 -19
- package/src/sap/m/messagebundle_sl.properties +96 -80
- package/src/sap/m/messagebundle_sv.properties +37 -21
- package/src/sap/m/messagebundle_th.properties +42 -26
- package/src/sap/m/messagebundle_tr.properties +36 -20
- package/src/sap/m/messagebundle_uk.properties +38 -22
- package/src/sap/m/messagebundle_vi.properties +35 -19
- package/src/sap/m/messagebundle_zh_CN.properties +40 -24
- package/src/sap/m/messagebundle_zh_TW.properties +37 -21
- 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 +11 -5
- package/src/sap/m/p13n/Container.js +9 -6
- package/src/sap/m/p13n/Engine.js +33 -5
- package/src/sap/m/p13n/FlexUtil.js +7 -3
- package/src/sap/m/p13n/GroupController.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +6 -1
- package/src/sap/m/p13n/MetadataHelper.js +1 -1
- package/src/sap/m/p13n/PersistenceProvider.js +2 -92
- package/src/sap/m/p13n/Popup.js +25 -2
- package/src/sap/m/p13n/QueryPanel.js +18 -3
- package/src/sap/m/p13n/SelectionController.js +6 -7
- package/src/sap/m/p13n/SelectionPanel.js +16 -5
- package/src/sap/m/p13n/SortController.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +8 -4
- package/src/sap/m/p13n/enum/PersistenceMode.js +9 -0
- package/src/sap/m/p13n/handler/xConfigHandler.js +13 -13
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +24 -1
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -13
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
- package/src/sap/m/p13n/modules/UIManager.js +5 -4
- package/src/sap/m/p13n/modules/xConfigAPI.js +26 -0
- package/src/sap/m/plugins/CellSelector.js +534 -799
- package/src/sap/m/plugins/ColumnResizer.js +1 -9
- package/src/sap/m/plugins/CopyProvider.js +2 -10
- package/src/sap/m/plugins/DataStateIndicator.js +8 -2
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/semantic/AddAction.js +1 -1
- package/src/sap/m/semantic/CancelAction.js +1 -1
- package/src/sap/m/semantic/DeleteAction.js +1 -1
- package/src/sap/m/semantic/DetailPage.js +1 -1
- package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/m/semantic/EditAction.js +1 -1
- package/src/sap/m/semantic/FavoriteAction.js +1 -1
- package/src/sap/m/semantic/FilterAction.js +1 -1
- package/src/sap/m/semantic/FilterSelect.js +1 -1
- package/src/sap/m/semantic/FlagAction.js +1 -1
- package/src/sap/m/semantic/ForwardAction.js +1 -1
- package/src/sap/m/semantic/FullscreenPage.js +1 -1
- package/src/sap/m/semantic/GroupAction.js +1 -1
- package/src/sap/m/semantic/GroupSelect.js +1 -1
- package/src/sap/m/semantic/MainAction.js +1 -1
- package/src/sap/m/semantic/MasterPage.js +1 -1
- package/src/sap/m/semantic/MessagesIndicator.js +1 -1
- package/src/sap/m/semantic/MultiSelectAction.js +1 -1
- package/src/sap/m/semantic/NegativeAction.js +1 -1
- package/src/sap/m/semantic/OpenInAction.js +1 -1
- package/src/sap/m/semantic/PositiveAction.js +1 -1
- package/src/sap/m/semantic/PrintAction.js +1 -1
- package/src/sap/m/semantic/SaveAction.js +1 -1
- package/src/sap/m/semantic/Segment.js +1 -1
- package/src/sap/m/semantic/SegmentedContainer.js +1 -1
- package/src/sap/m/semantic/SemanticButton.js +1 -1
- package/src/sap/m/semantic/SemanticConfiguration.js +3 -3
- package/src/sap/m/semantic/SemanticControl.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/semantic/SemanticPage.js +1 -1
- package/src/sap/m/semantic/SemanticSelect.js +1 -1
- package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/m/semantic/SendEmailAction.js +1 -1
- package/src/sap/m/semantic/SendMessageAction.js +1 -1
- package/src/sap/m/semantic/ShareInJamAction.js +1 -1
- package/src/sap/m/semantic/ShareMenu.js +1 -1
- package/src/sap/m/semantic/ShareMenuPage.js +1 -1
- package/src/sap/m/semantic/SortAction.js +1 -1
- package/src/sap/m/semantic/SortSelect.js +1 -1
- package/src/sap/m/table/Util.js +6 -5
- package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/Entry.js +1 -1
- package/src/sap/m/table/columnmenu/Item.js +1 -1
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +1 -1
- 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 +1 -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 +1 -1
- package/src/sap/m/table/columnmenu/QuickTotal.js +1 -1
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/Avatar.less +78 -7
- package/src/sap/m/themes/base/Carousel.less +7 -0
- package/src/sap/m/themes/base/CellSelector.less +50 -105
- package/src/sap/m/themes/base/IconTabBar.less +1 -1
- package/src/sap/m/themes/base/Link.less +20 -24
- package/src/sap/m/themes/base/MessageStrip.less +1 -1
- package/src/sap/m/themes/base/NumericContent.less +4 -0
- package/src/sap/m/themes/base/ObjectStatus.less +1 -2
- package/src/sap/m/themes/base/Panel.less +14 -0
- package/src/sap/m/themes/base/PlanningCalendarHeader.less +2 -1
- package/src/sap/m/themes/base/RadioButton.less +3 -1
- package/src/sap/m/themes/base/SearchField.less +13 -3
- package/src/sap/m/themes/base/Select.less +32 -2
- package/src/sap/m/themes/base/Table.less +4 -8
- package/src/sap/m/themes/base/TimePickerClocks.less +4 -0
- package/src/sap/m/themes/base/UploadSet.less +13 -1
- package/src/sap/m/themes/base/UploadSetTable.less +80 -0
- package/src/sap/m/themes/base/ValueStateMessage.less +1 -0
- package/src/sap/m/themes/base/VariantManagement.less +1 -0
- package/src/sap/m/themes/base/Wizard.less +1 -1
- package/src/sap/m/themes/base/library.source.less +1 -0
- package/src/sap/m/upload/FilePreviewDialog.js +257 -0
- package/src/sap/m/upload/UploadSet.js +140 -67
- package/src/sap/m/upload/UploadSetItem.js +51 -27
- package/src/sap/m/upload/UploadSetTable.js +929 -0
- package/src/sap/m/upload/UploadSetTableItem.js +327 -0
- package/src/sap/m/upload/UploadSetTableItemRenderer.js +22 -0
- package/src/sap/m/upload/UploadSetTableRenderer.js +34 -0
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/UploaderTableItem.js +276 -0
- package/ui5.yaml +1 -1
package/src/sap/m/DatePicker.js
CHANGED
|
@@ -35,6 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
"sap/ui/unified/calendar/CalendarUtils",
|
|
36
36
|
"sap/ui/core/date/UI5Date",
|
|
37
37
|
"sap/ui/core/date/CalendarWeekNumbering",
|
|
38
|
+
"sap/ui/core/Core",
|
|
38
39
|
"sap/ui/dom/jquery/cursorPos"
|
|
39
40
|
],
|
|
40
41
|
function(
|
|
@@ -65,7 +66,8 @@ sap.ui.define([
|
|
|
65
66
|
Configuration,
|
|
66
67
|
CalendarUtils,
|
|
67
68
|
UI5Date,
|
|
68
|
-
CalendarWeekNumbering
|
|
69
|
+
CalendarWeekNumbering,
|
|
70
|
+
Core
|
|
69
71
|
) {
|
|
70
72
|
"use strict";
|
|
71
73
|
|
|
@@ -184,7 +186,7 @@ sap.ui.define([
|
|
|
184
186
|
* the close event), or select Cancel.
|
|
185
187
|
*
|
|
186
188
|
* @extends sap.m.DateTimeField
|
|
187
|
-
* @version 1.
|
|
189
|
+
* @version 1.117.0
|
|
188
190
|
*
|
|
189
191
|
* @constructor
|
|
190
192
|
* @public
|
|
@@ -406,7 +408,7 @@ sap.ui.define([
|
|
|
406
408
|
id: this.getId() + "-icon",
|
|
407
409
|
src: this.getIconSrc(),
|
|
408
410
|
noTabStop: true,
|
|
409
|
-
decorative: false,
|
|
411
|
+
decorative: !Device.support.touch || Device.system.desktop ? true : false,
|
|
410
412
|
useIconTooltip: false,
|
|
411
413
|
alt: oResourceBundle.getText("OPEN_PICKER_TEXT")
|
|
412
414
|
});
|
|
@@ -585,6 +587,28 @@ sap.ui.define([
|
|
|
585
587
|
// ALT-UP and ALT-DOWN should behave the same
|
|
586
588
|
DatePicker.prototype.onsaphide = DatePicker.prototype.onsapshow;
|
|
587
589
|
|
|
590
|
+
/**
|
|
591
|
+
* Handle when escape is pressed. Escaping unsaved input will restore
|
|
592
|
+
* the last valid value. If the value cannot be parsed into a date,
|
|
593
|
+
* the input will be cleared.
|
|
594
|
+
*
|
|
595
|
+
* @param {jQuery.Event} oEvent The event object.
|
|
596
|
+
* @private
|
|
597
|
+
*/
|
|
598
|
+
DatePicker.prototype.onsapescape = function(oEvent) {
|
|
599
|
+
var sLastValue = this.getLastValue(),
|
|
600
|
+
oDate = this._parseValue( this._getInputValue(), true),
|
|
601
|
+
sValueFormatInputDate = this._formatValue(oDate, true);
|
|
602
|
+
|
|
603
|
+
if (sValueFormatInputDate !== sLastValue) {
|
|
604
|
+
oEvent.setMarked();
|
|
605
|
+
oEvent.preventDefault();
|
|
606
|
+
|
|
607
|
+
this.updateDomValue(sLastValue);
|
|
608
|
+
this.onValueRevertedByEscape(sLastValue, sValueFormatInputDate);
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
|
|
588
612
|
DatePicker.prototype.onsappageup = function(oEvent){
|
|
589
613
|
var sConstructorName = this._getCalendarConstructor().getMetadata().getName();
|
|
590
614
|
|
|
@@ -1200,7 +1224,7 @@ sap.ui.define([
|
|
|
1200
1224
|
showCloseButton: false,
|
|
1201
1225
|
showArrow: false,
|
|
1202
1226
|
showHeader: false,
|
|
1203
|
-
placement: library.PlacementType.
|
|
1227
|
+
placement: library.PlacementType.VerticalPreferredBottom,
|
|
1204
1228
|
contentWidth: this.$().closest(".sapUiSizeCompact").length > 0 ? "18rem" : "21rem",
|
|
1205
1229
|
beginButton: new Button({
|
|
1206
1230
|
type: library.ButtonType.Emphasized,
|
|
@@ -1425,6 +1449,8 @@ sap.ui.define([
|
|
|
1425
1449
|
var oRenderer = this.getRenderer();
|
|
1426
1450
|
var oInfo = InputBase.prototype.getAccessibilityInfo.apply(this, arguments);
|
|
1427
1451
|
var sValue = this.getValue() || "";
|
|
1452
|
+
var sRequired = this.getRequired() ? Core.getLibraryResourceBundle("sap.m").getText("ELEMENT_REQUIRED") : '';
|
|
1453
|
+
|
|
1428
1454
|
if (this._bValid) {
|
|
1429
1455
|
var oDate = this.getDateValue();
|
|
1430
1456
|
if (oDate) {
|
|
@@ -1432,7 +1458,7 @@ sap.ui.define([
|
|
|
1432
1458
|
}
|
|
1433
1459
|
}
|
|
1434
1460
|
oInfo.type = oResourceBundle.getText("ACC_CTR_TYPE_DATEINPUT");
|
|
1435
|
-
oInfo.description = [sValue, oRenderer.getLabelledByAnnouncement(this), oRenderer.getDescribedByAnnouncement(this)].join(" ").trim();
|
|
1461
|
+
oInfo.description = [sValue || this._getPlaceholder(), oRenderer.getLabelledByAnnouncement(this), oRenderer.getDescribedByAnnouncement(this), sRequired].join(" ").trim();
|
|
1436
1462
|
return oInfo;
|
|
1437
1463
|
};
|
|
1438
1464
|
|
|
@@ -49,8 +49,9 @@ sap.ui.define(['sap/ui/core/Renderer', './DateTimeFieldRenderer', 'sap/ui/core/l
|
|
|
49
49
|
var mAccessibilityState = DateTimeFieldRenderer.getAccessibilityState.apply(this, arguments);
|
|
50
50
|
|
|
51
51
|
mAccessibilityState["roledescription"] = sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("ACC_CTR_TYPE_DATEINPUT");
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
if (oDP.getEditable() && oDP.getEnabled()) {
|
|
53
|
+
mAccessibilityState["haspopup"] = coreLibrary.aria.HasPopup.Grid.toLowerCase();
|
|
54
|
+
}
|
|
54
55
|
// aria-disabled is not necessary if we already have a native 'disabled' attribute
|
|
55
56
|
mAccessibilityState["disabled"] = null;
|
|
56
57
|
|
|
@@ -20,6 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
"sap/base/assert",
|
|
21
21
|
"sap/ui/core/Configuration",
|
|
22
22
|
"sap/ui/core/date/UI5Date",
|
|
23
|
+
"sap/ui/core/Core",
|
|
23
24
|
// jQuery Plugin "cursorPos"
|
|
24
25
|
"sap/ui/dom/jquery/cursorPos"
|
|
25
26
|
],
|
|
@@ -37,7 +38,8 @@ sap.ui.define([
|
|
|
37
38
|
Log,
|
|
38
39
|
assert,
|
|
39
40
|
Configuration,
|
|
40
|
-
UI5Date
|
|
41
|
+
UI5Date,
|
|
42
|
+
Core
|
|
41
43
|
) {
|
|
42
44
|
"use strict";
|
|
43
45
|
|
|
@@ -163,8 +165,8 @@ sap.ui.define([
|
|
|
163
165
|
* compact mode and provides a touch-friendly size in cozy mode.
|
|
164
166
|
*
|
|
165
167
|
* @extends sap.m.DatePicker
|
|
166
|
-
* @version 1.
|
|
167
|
-
* @version 1.
|
|
168
|
+
* @version 1.117.0
|
|
169
|
+
* @version 1.117.0
|
|
168
170
|
*
|
|
169
171
|
* @constructor
|
|
170
172
|
* @public
|
|
@@ -269,7 +271,8 @@ sap.ui.define([
|
|
|
269
271
|
oBinding,
|
|
270
272
|
oBindingType,
|
|
271
273
|
oLocale,
|
|
272
|
-
oLocaleData
|
|
274
|
+
oLocaleData,
|
|
275
|
+
oFormatOptions;
|
|
273
276
|
|
|
274
277
|
if (!sPlaceholder) {
|
|
275
278
|
oBinding = this.getBinding("value");
|
|
@@ -282,7 +285,8 @@ sap.ui.define([
|
|
|
282
285
|
if (oBindingType.oFormatOptions && oBindingType.oFormatOptions.format) {
|
|
283
286
|
sPlaceholder = oLocaleData.getCustomDateTimePattern(oBindingType.oFormatOptions.format);
|
|
284
287
|
} else {
|
|
285
|
-
|
|
288
|
+
oFormatOptions = Object.assign({ interval: true, singleIntervalValue: true }, oBindingType.oFormatOptions);
|
|
289
|
+
return this._getDateFormatPlaceholderText(oFormatOptions);
|
|
286
290
|
}
|
|
287
291
|
} else {
|
|
288
292
|
sPlaceholder = this.getDisplayFormat();
|
|
@@ -292,7 +296,8 @@ sap.ui.define([
|
|
|
292
296
|
}
|
|
293
297
|
|
|
294
298
|
if (this._checkStyle(sPlaceholder)) {
|
|
295
|
-
|
|
299
|
+
oFormatOptions = Object.assign({ interval: true, singleIntervalValue: true, intervalDelimiter: _getDelimiter.call(this) }, _getFormatter.call(this).oFormatOptions);
|
|
300
|
+
return this._getDateFormatPlaceholderText(oFormatOptions);
|
|
296
301
|
}
|
|
297
302
|
}
|
|
298
303
|
|
|
@@ -305,6 +310,10 @@ sap.ui.define([
|
|
|
305
310
|
return sPlaceholder;
|
|
306
311
|
};
|
|
307
312
|
|
|
313
|
+
DateRangeSelection.prototype._getDateFormatPlaceholderText = function (oFormatOptions) {
|
|
314
|
+
return DateFormat.getDateInstance(oFormatOptions).getPlaceholderText();
|
|
315
|
+
};
|
|
316
|
+
|
|
308
317
|
// Overwrite DatePicker's setValue to support two date range processing
|
|
309
318
|
/**
|
|
310
319
|
* Getter for property <code>value</code>.
|
|
@@ -335,6 +344,8 @@ sap.ui.define([
|
|
|
335
344
|
* @public
|
|
336
345
|
*/
|
|
337
346
|
DateRangeSelection.prototype.setValue = function(sValue) {
|
|
347
|
+
var aDates;
|
|
348
|
+
|
|
338
349
|
sValue = this.validateProperty("value", sValue);
|
|
339
350
|
|
|
340
351
|
if (sValue !== this.getValue()) {
|
|
@@ -343,9 +354,9 @@ sap.ui.define([
|
|
|
343
354
|
return this;
|
|
344
355
|
}
|
|
345
356
|
|
|
346
|
-
|
|
347
|
-
this.setProperty("dateValue", _normalizeDateValue(aDates[0]), this._bPreferUserInteraction);
|
|
348
|
-
this.setProperty("secondDateValue", _normalizeDateValue(aDates[1]), this._bPreferUserInteraction);
|
|
357
|
+
aDates = this._parseAndValidateValue(sValue);
|
|
358
|
+
this.setProperty("dateValue", this._normalizeDateValue(aDates[0]), this._bPreferUserInteraction);
|
|
359
|
+
this.setProperty("secondDateValue", this._normalizeDateValue(aDates[1]), this._bPreferUserInteraction);
|
|
349
360
|
|
|
350
361
|
this._formatValueAndUpdateOutput(aDates);
|
|
351
362
|
this.setProperty("value", sValue, this._bPreferUserInteraction);
|
|
@@ -397,9 +408,16 @@ sap.ui.define([
|
|
|
397
408
|
* @returns {Date|module:sap/ui/core/date/UI5Date} A date instance
|
|
398
409
|
* @private
|
|
399
410
|
*/
|
|
400
|
-
function
|
|
401
|
-
|
|
402
|
-
|
|
411
|
+
DateRangeSelection.prototype._normalizeDateValue = function(vBindingDate) {
|
|
412
|
+
switch (typeof vBindingDate) {
|
|
413
|
+
case "number":
|
|
414
|
+
return UI5Date.getInstance(vBindingDate);
|
|
415
|
+
case "string":
|
|
416
|
+
return _getFormatter.call(this).parse(vBindingDate);
|
|
417
|
+
default:
|
|
418
|
+
return vBindingDate;
|
|
419
|
+
}
|
|
420
|
+
};
|
|
403
421
|
|
|
404
422
|
/**
|
|
405
423
|
* Converts the parameter to a timestamp integer, if it is a UI5Date or JavaScript Date.
|
|
@@ -407,9 +425,9 @@ sap.ui.define([
|
|
|
407
425
|
* @returns {int} A timestamp integer
|
|
408
426
|
* @private
|
|
409
427
|
*/
|
|
410
|
-
function
|
|
428
|
+
DateRangeSelection.prototype._denormalizeDateValue = function(vBindingDate) {
|
|
411
429
|
return (vBindingDate && vBindingDate.getTime) ? vBindingDate.getTime() : vBindingDate;
|
|
412
|
-
}
|
|
430
|
+
};
|
|
413
431
|
|
|
414
432
|
/**
|
|
415
433
|
* Getter for property <code>valueFormat</code>.
|
|
@@ -777,8 +795,9 @@ sap.ui.define([
|
|
|
777
795
|
|
|
778
796
|
var sValue = "",
|
|
779
797
|
sDelimiter = _getDelimiter.call(this),
|
|
780
|
-
oFormat,
|
|
798
|
+
oFormat = _getFormatter.call(this),
|
|
781
799
|
oBinding,
|
|
800
|
+
oBindingType,
|
|
782
801
|
oDate1, oDate2;
|
|
783
802
|
|
|
784
803
|
oDate1 = oDateValue;
|
|
@@ -789,12 +808,13 @@ sap.ui.define([
|
|
|
789
808
|
|
|
790
809
|
if (oBinding && oBinding.getType() && oBinding.getType().isA("sap.ui.model.type.DateInterval")) {
|
|
791
810
|
if (oBinding.getType().oFormatOptions && oBinding.getType().oFormatOptions.source && oBinding.getType().oFormatOptions.source.pattern === "timestamp") {
|
|
792
|
-
sValue = oBinding.getType().formatValue([_denormalizeDateValue(oDateValue), _denormalizeDateValue(oSecondDateValue)], "string");
|
|
811
|
+
sValue = oBinding.getType().formatValue([this._denormalizeDateValue(oDateValue), this._denormalizeDateValue(oSecondDateValue)], "string");
|
|
793
812
|
} else {
|
|
794
813
|
/** DateRangeSelection control uses local dates for its properties, so make sure they are converted
|
|
795
814
|
* to UTC dates if the binding type formatter expects them in UTC
|
|
796
815
|
**/
|
|
797
|
-
|
|
816
|
+
oBindingType = oBinding.getType();
|
|
817
|
+
if (oBindingType.oFormatOptions && oBinding.getType().oFormatOptions.UTC) {
|
|
798
818
|
oDate1 = UI5Date.getInstance(Date.UTC(oDateValue.getFullYear(), oDateValue.getMonth(), oDateValue.getDate(),
|
|
799
819
|
oDateValue.getHours(), oDateValue.getMinutes(), oDateValue.getSeconds()));
|
|
800
820
|
if (oSecondDateValue) {
|
|
@@ -802,11 +822,16 @@ sap.ui.define([
|
|
|
802
822
|
oSecondDateValue.getHours(), oSecondDateValue.getMinutes(), oSecondDateValue.getSeconds()));
|
|
803
823
|
}
|
|
804
824
|
}
|
|
825
|
+
|
|
826
|
+
if (oBindingType.oInputFormat && typeof oDate1 === "object") {
|
|
827
|
+
oDate1 = oFormat.format(oDate1);
|
|
828
|
+
}
|
|
829
|
+
if (oBindingType.oInputFormat && typeof oDate2 === "object") {
|
|
830
|
+
oDate2 = oFormat.format(oDate2);
|
|
831
|
+
}
|
|
805
832
|
sValue = oBinding.getType().formatValue([oDate1, oDate2], "string");
|
|
806
833
|
}
|
|
807
834
|
} else {
|
|
808
|
-
oFormat = _getFormatter.call(this);
|
|
809
|
-
|
|
810
835
|
if (sDelimiter && sDelimiter !== "" && oDate2) {
|
|
811
836
|
sValue = oFormat.format(oDate1) + " " + sDelimiter + " " + oFormat.format(oDate2);
|
|
812
837
|
} else {
|
|
@@ -836,11 +861,14 @@ sap.ui.define([
|
|
|
836
861
|
this._bValid = true;
|
|
837
862
|
if (sValue != "") {
|
|
838
863
|
aDates = this._parseValue(sValue);
|
|
864
|
+
// normalize dates in order to always have UI5Date objects
|
|
865
|
+
aDates[0] = this._normalizeDateValue(aDates[0]);
|
|
866
|
+
aDates[1] = this._normalizeDateValue(aDates[1]);
|
|
839
867
|
// the selected range includes all of the hours from the second date
|
|
840
868
|
aDates[1] && aDates[1].setHours(23, 59, 59, 999);
|
|
841
|
-
aDates = _dateRangeValidityCheck.call(this, aDates[0], aDates[1])
|
|
869
|
+
aDates = _dateRangeValidityCheck.call(this, aDates[0], aDates[1]); // aDates can be undefined if don't fit to the min/max range
|
|
842
870
|
if (aDates[0]) {
|
|
843
|
-
sValue = this._formatValue(
|
|
871
|
+
sValue = this._formatValue(aDates[0], aDates[1]); // to have the right output format if entered different
|
|
844
872
|
} else {
|
|
845
873
|
this._bValid = false;
|
|
846
874
|
}
|
|
@@ -854,8 +882,8 @@ sap.ui.define([
|
|
|
854
882
|
this.setLastValue(sValue);
|
|
855
883
|
this.setProperty("value", sValue, true);
|
|
856
884
|
if (this._bValid) {
|
|
857
|
-
this.setProperty("dateValue", _normalizeDateValue(aDates[0]), true);
|
|
858
|
-
this.setProperty("secondDateValue", _normalizeDateValue(aDates[1]), true);
|
|
885
|
+
this.setProperty("dateValue", this._normalizeDateValue(aDates[0]), true);
|
|
886
|
+
this.setProperty("secondDateValue", this._normalizeDateValue(aDates[1]), true);
|
|
859
887
|
}
|
|
860
888
|
|
|
861
889
|
if (this._oPopup && this._oPopup.isOpen()) {
|
|
@@ -919,6 +947,28 @@ sap.ui.define([
|
|
|
919
947
|
return this;
|
|
920
948
|
};
|
|
921
949
|
|
|
950
|
+
/**
|
|
951
|
+
* Handle when escape is pressed. Escaping unsaved input will restore
|
|
952
|
+
* the last valid value. If the value cannot be parsed into a date
|
|
953
|
+
* range, the input will be cleared.
|
|
954
|
+
*
|
|
955
|
+
* @param {jQuery.Event} oEvent The event object.
|
|
956
|
+
* @private
|
|
957
|
+
*/
|
|
958
|
+
DateRangeSelection.prototype.onsapescape = function(oEvent) {
|
|
959
|
+
var sLastValue = this.getLastValue(),
|
|
960
|
+
aDates = this._parseValue(this._getInputValue(), true),
|
|
961
|
+
sValueFormatInputDate = this._formatValue(aDates[0], aDates[1], true);
|
|
962
|
+
|
|
963
|
+
if (sValueFormatInputDate !== sLastValue) {
|
|
964
|
+
oEvent.setMarked();
|
|
965
|
+
oEvent.preventDefault();
|
|
966
|
+
|
|
967
|
+
this.updateDomValue(sLastValue);
|
|
968
|
+
this.onValueRevertedByEscape(sLastValue, sValueFormatInputDate);
|
|
969
|
+
}
|
|
970
|
+
};
|
|
971
|
+
|
|
922
972
|
//Support of two date range version of Calendar added into original DatePicker's version
|
|
923
973
|
DateRangeSelection.prototype._fillDateRange = function(){
|
|
924
974
|
|
|
@@ -1036,14 +1086,16 @@ sap.ui.define([
|
|
|
1036
1086
|
var oRenderer = this.getRenderer();
|
|
1037
1087
|
var oInfo = DatePicker.prototype.getAccessibilityInfo.apply(this, arguments);
|
|
1038
1088
|
var sValue = this.getValue() || "";
|
|
1089
|
+
var sRequired = this.getRequired() ? Core.getLibraryResourceBundle("sap.m").getText("ELEMENT_REQUIRED") : '';
|
|
1090
|
+
|
|
1039
1091
|
if (this._bValid) {
|
|
1040
1092
|
var oDate = this.getDateValue();
|
|
1041
1093
|
if (oDate) {
|
|
1042
1094
|
sValue = this._formatValue(oDate, this.getSecondDateValue());
|
|
1043
1095
|
}
|
|
1044
1096
|
}
|
|
1045
|
-
oInfo.type =
|
|
1046
|
-
oInfo.description = [sValue, oRenderer.getLabelledByAnnouncement(this), oRenderer.getDescribedByAnnouncement(this)].join(" ").trim();
|
|
1097
|
+
oInfo.type = Core.getLibraryResourceBundle("sap.m").getText("ACC_CTR_TYPE_DATERANGEINPUT");
|
|
1098
|
+
oInfo.description = [sValue || this._getPlaceholder(), oRenderer.getLabelledByAnnouncement(this), oRenderer.getDescribedByAnnouncement(this), sRequired].join(" ").trim();
|
|
1047
1099
|
return oInfo;
|
|
1048
1100
|
};
|
|
1049
1101
|
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
* @extends sap.m.InputBase
|
|
66
66
|
*
|
|
67
67
|
* @author SAP SE
|
|
68
|
-
* @version 1.
|
|
68
|
+
* @version 1.117.0
|
|
69
69
|
*
|
|
70
70
|
* @constructor
|
|
71
71
|
* @public
|
|
@@ -378,18 +378,23 @@ sap.ui.define([
|
|
|
378
378
|
|
|
379
379
|
DateTimeField.prototype._getPlaceholder = function() {
|
|
380
380
|
|
|
381
|
-
var sPlaceholder = this.getPlaceholder()
|
|
381
|
+
var sPlaceholder = this.getPlaceholder(),
|
|
382
|
+
oBinding = this.getBinding("value"),
|
|
383
|
+
oBindingType = oBinding && oBinding.getType && oBinding.getType(),
|
|
384
|
+
bDisplayFormat;
|
|
382
385
|
|
|
383
386
|
if (!sPlaceholder) {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
if (!sPlaceholder) {
|
|
387
|
-
sPlaceholder = this._getDefaultDisplayStyle();
|
|
387
|
+
if (oBindingType instanceof SimpleDateType) {
|
|
388
|
+
return oBindingType.getPlaceholderText();
|
|
388
389
|
}
|
|
389
390
|
|
|
390
|
-
if (
|
|
391
|
-
|
|
391
|
+
if (oBindingType instanceof ODataType && oBindingType.oFormat) {
|
|
392
|
+
return oBindingType.oFormat.getPlaceholderText();
|
|
392
393
|
}
|
|
394
|
+
|
|
395
|
+
bDisplayFormat = !!this._getDisplayFormatPattern();
|
|
396
|
+
|
|
397
|
+
sPlaceholder = this._getFormatter(bDisplayFormat).getPlaceholderText();
|
|
393
398
|
}
|
|
394
399
|
|
|
395
400
|
return sPlaceholder;
|
|
@@ -600,8 +605,8 @@ sap.ui.define([
|
|
|
600
605
|
return oBindingType.getOutputPattern();
|
|
601
606
|
}
|
|
602
607
|
|
|
603
|
-
if (oBindingType instanceof ODataType
|
|
604
|
-
return oBindingType.
|
|
608
|
+
if (oBindingType instanceof ODataType) {
|
|
609
|
+
return oBindingType.getFormat().oFormatOptions.pattern;
|
|
605
610
|
}
|
|
606
611
|
|
|
607
612
|
return undefined;
|
|
@@ -45,7 +45,9 @@ sap.ui.define([
|
|
|
45
45
|
DateTimePickerRenderer.getAccessibilityState = function(oDP) {
|
|
46
46
|
var mAccessibilityState = DatePickerRenderer.getAccessibilityState.apply(this, arguments);
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
if (oDP.getEditable() && oDP.getEnabled()) {
|
|
49
|
+
mAccessibilityState["haspopup"] = coreLibrary.aria.HasPopup.Dialog.toLowerCase();
|
|
50
|
+
}
|
|
49
51
|
|
|
50
52
|
return mAccessibilityState;
|
|
51
53
|
};
|
package/src/sap/m/Dialog.js
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides control sap.m.Dialog.
|
|
8
8
|
sap.ui.define([
|
|
9
|
+
"sap/ui/core/ControlBehavior",
|
|
10
|
+
"sap/base/i18n/Localization",
|
|
11
|
+
"sap/ui/core/Lib",
|
|
9
12
|
"./Bar",
|
|
10
13
|
"./InstanceManager",
|
|
11
14
|
"./AssociativeOverflowToolbar",
|
|
@@ -37,6 +40,9 @@ sap.ui.define([
|
|
|
37
40
|
"sap/ui/dom/jquery/Focusable"
|
|
38
41
|
],
|
|
39
42
|
function(
|
|
43
|
+
ControlBehavior,
|
|
44
|
+
Localization,
|
|
45
|
+
Library,
|
|
40
46
|
Bar,
|
|
41
47
|
InstanceManager,
|
|
42
48
|
AssociativeOverflowToolbar,
|
|
@@ -88,7 +94,7 @@ function(
|
|
|
88
94
|
// shortcut for sap.m.TitleAlignment
|
|
89
95
|
var TitleAlignment = library.TitleAlignment;
|
|
90
96
|
|
|
91
|
-
var sAnimationMode =
|
|
97
|
+
var sAnimationMode = ControlBehavior.getAnimationMode();
|
|
92
98
|
var bUseAnimations = sAnimationMode !== Configuration.AnimationMode.none && sAnimationMode !== Configuration.AnimationMode.minimal;
|
|
93
99
|
|
|
94
100
|
// the time should be longer the longest transition in the CSS (200ms),
|
|
@@ -167,7 +173,7 @@ function(
|
|
|
167
173
|
*
|
|
168
174
|
* @implements sap.ui.core.PopupInterface
|
|
169
175
|
* @author SAP SE
|
|
170
|
-
* @version 1.
|
|
176
|
+
* @version 1.117.0
|
|
171
177
|
*
|
|
172
178
|
* @constructor
|
|
173
179
|
* @public
|
|
@@ -491,7 +497,7 @@ function(
|
|
|
491
497
|
return this._headerTitle ? this._headerTitle.getId() : false;
|
|
492
498
|
});
|
|
493
499
|
|
|
494
|
-
Dialog._bPaddingByDefault = (
|
|
500
|
+
Dialog._bPaddingByDefault = (Configuration.getCompatibilityVersion("sapMDialogWithPadding").compareTo("1.16") < 0);
|
|
495
501
|
|
|
496
502
|
Dialog._initIcons = function () {
|
|
497
503
|
if (Dialog._mIcons) {
|
|
@@ -516,7 +522,7 @@ function(
|
|
|
516
522
|
Dialog._getHeaderToolbarAriaLabelledByText = function() {
|
|
517
523
|
if (!Dialog._oHeaderToolbarInvisibleText) {
|
|
518
524
|
Dialog._oHeaderToolbarInvisibleText = new InvisibleText("__headerActionsToolbar-invisibleText", {
|
|
519
|
-
text:
|
|
525
|
+
text: Library.getResourceBundleFor("sap.m").getText("ARIA_LABEL_TOOLBAR_HEADER_ACTIONS")
|
|
520
526
|
}).toStatic();
|
|
521
527
|
}
|
|
522
528
|
|
|
@@ -534,7 +540,7 @@ function(
|
|
|
534
540
|
Dialog._getFooterToolbarAriaLabelledByText = function() {
|
|
535
541
|
if (!Dialog._oFooterToolbarInvisibleText) {
|
|
536
542
|
Dialog._oFooterToolbarInvisibleText = new InvisibleText("__footerActionsToolbar-invisibleText", {
|
|
537
|
-
text:
|
|
543
|
+
text: Library.getResourceBundleFor("sap.m").getText("ARIA_LABEL_TOOLBAR_FOOTER_ACTIONS")
|
|
538
544
|
}).toStatic();
|
|
539
545
|
}
|
|
540
546
|
|
|
@@ -548,7 +554,7 @@ function(
|
|
|
548
554
|
var that = this;
|
|
549
555
|
this._oManuallySetSize = null;
|
|
550
556
|
this._oManuallySetPosition = null;
|
|
551
|
-
this._bRTL =
|
|
557
|
+
this._bRTL = Localization.getRTL();
|
|
552
558
|
|
|
553
559
|
// used to judge if enableScrolling needs to be disabled
|
|
554
560
|
this._scrollContentList = ["sap.m.NavContainer", "sap.m.Page", "sap.m.ScrollContainer", "sap.m.SplitContainer", "sap.m.MultiInput", "sap.m.SimpleFixFlex"];
|
|
@@ -628,7 +634,7 @@ function(
|
|
|
628
634
|
|
|
629
635
|
this._createToolbarButtons();
|
|
630
636
|
|
|
631
|
-
if (
|
|
637
|
+
if (ControlBehavior.isAccessibilityEnabled() && this.getState() != ValueState.None) {
|
|
632
638
|
if (!this._oValueState) {
|
|
633
639
|
this._oValueState = new InvisibleText();
|
|
634
640
|
|
|
@@ -1614,7 +1620,7 @@ function(
|
|
|
1614
1620
|
};
|
|
1615
1621
|
|
|
1616
1622
|
/**
|
|
1617
|
-
* Returns the <code>sap.ui.core.ScrollEnablement</code> delegate which is used with this control.
|
|
1623
|
+
* Returns the <code>sap.ui.core.delegate.ScrollEnablement</code> delegate which is used with this control.
|
|
1618
1624
|
*
|
|
1619
1625
|
* @private
|
|
1620
1626
|
*/
|
|
@@ -1816,7 +1822,7 @@ function(
|
|
|
1816
1822
|
* @private
|
|
1817
1823
|
*/
|
|
1818
1824
|
Dialog.prototype.getValueStateString = function (sValueState) {
|
|
1819
|
-
var rb =
|
|
1825
|
+
var rb = Library.getResourceBundleFor("sap.m");
|
|
1820
1826
|
|
|
1821
1827
|
switch (sValueState) {
|
|
1822
1828
|
case (ValueState.Success):
|
|
@@ -1845,7 +1851,7 @@ function(
|
|
|
1845
1851
|
* @private
|
|
1846
1852
|
*/
|
|
1847
1853
|
Dialog.prototype._getAriaDescribedByText = function () {
|
|
1848
|
-
var oRb =
|
|
1854
|
+
var oRb = Library.getResourceBundleFor("sap.m");
|
|
1849
1855
|
if (this.getResizable() && this.getDraggable()) {
|
|
1850
1856
|
return oRb.getText("DIALOG_HEADER_ARIA_DESCRIBEDBY_DRAGGABLE_RESIZABLE");
|
|
1851
1857
|
}
|
|
@@ -7,8 +7,8 @@ sap.ui.define([
|
|
|
7
7
|
"sap/m/library",
|
|
8
8
|
"sap/ui/Device",
|
|
9
9
|
"sap/ui/core/library",
|
|
10
|
-
"sap/ui/core/
|
|
11
|
-
], function (library, Device, coreLibrary,
|
|
10
|
+
"sap/ui/core/Lib"
|
|
11
|
+
], function (library, Device, coreLibrary, Library) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
// shortcut for sap.m.DialogType
|
|
@@ -180,7 +180,7 @@ sap.ui.define([
|
|
|
180
180
|
oRM.attr("tabindex", 0)
|
|
181
181
|
.accessibilityState(oHeader, {
|
|
182
182
|
role: "group",
|
|
183
|
-
roledescription:
|
|
183
|
+
roledescription: Library.getResourceBundleFor("sap.m").getText("DIALOG_HEADER_ARIA_ROLE_DESCRIPTION"),
|
|
184
184
|
describedby: { value: oDialog.getId() + "-ariaDescribedbyText", append: true }
|
|
185
185
|
});
|
|
186
186
|
}
|
package/src/sap/m/DynamicDate.js
CHANGED
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @extends sap.ui.core.Element
|
|
41
41
|
*
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.117.0
|
|
44
44
|
*
|
|
45
45
|
* @public
|
|
46
46
|
* @since 1.92
|
|
@@ -521,7 +521,7 @@ sap.ui.define([
|
|
|
521
521
|
|
|
522
522
|
oDate.setDate(1);
|
|
523
523
|
oDate.setMonth(iMonth);
|
|
524
|
-
oDate.
|
|
524
|
+
oDate.setFullYear(iYear);
|
|
525
525
|
oControl.addSelectedDate(new DateRange({
|
|
526
526
|
startDate: oDate
|
|
527
527
|
}));
|