@openui5/sap.m 1.113.0 → 1.114.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRDPARTY.txt +1 -1
- 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 +1 -1
- package/src/sap/m/ActionTile.js +1 -1
- package/src/sap/m/ActionTileContent.js +1 -1
- package/src/sap/m/AdditionalTextButton.js +1 -1
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +1 -1
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +5 -3
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +19 -3
- package/src/sap/m/ButtonRenderer.js +9 -1
- package/src/sap/m/Carousel.js +3 -4
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +1 -1
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +14 -3
- 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 +48 -18
- package/src/sap/m/DateRangeSelection.js +71 -32
- package/src/sap/m/DateTimeField.js +19 -14
- package/src/sap/m/DateTimeInput.js +6 -4
- package/src/sap/m/DateTimePicker.js +42 -11
- package/src/sap/m/Dialog.js +2 -2
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +5 -6
- package/src/sap/m/DynamicDateFormat.js +10 -7
- package/src/sap/m/DynamicDateOption.js +12 -6
- package/src/sap/m/DynamicDateRange.js +268 -45
- package/src/sap/m/DynamicDateUtil.js +5 -5
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -2
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +7 -5
- 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 +11 -4
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +42 -51
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +23 -23
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingEnablement.js +2 -4
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +11 -5
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +5 -6
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +1 -1
- package/src/sap/m/IconTabSeparator.js +5 -8
- package/src/sap/m/IllustratedMessage.js +30 -2
- package/src/sap/m/Illustration.js +1 -1
- package/src/sap/m/IllustrationRenderer.js +0 -2
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/ImageHelper.js +110 -0
- package/src/sap/m/Input.js +3 -2
- package/src/sap/m/InputBase.js +1 -1
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +1 -1
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +7 -16
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +6 -2
- package/src/sap/m/ListItemBase.js +10 -3
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +1 -1
- package/src/sap/m/MenuButton.js +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 +4 -5
- 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 +78 -10
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MultiComboBox.js +24 -5
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +1 -1
- 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 +1 -1
- package/src/sap/m/ObjectAttribute.js +6 -6
- package/src/sap/m/ObjectHeader.js +5 -5
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +5 -6
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +4 -7
- package/src/sap/m/OverflowToolbar.js +7 -1
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarMenuButton.js +1 -1
- package/src/sap/m/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 +1 -1
- package/src/sap/m/P13nConditionPanel.js +1 -1
- package/src/sap/m/P13nDialog.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/Page.js +2 -2
- 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 +11 -11
- package/src/sap/m/PlanningCalendarHeader.js +3 -3
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +15 -15
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +3 -3
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/PullToRefresh.js +4 -10
- 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 +2 -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 +17 -7
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +1 -1
- package/src/sap/m/SelectDialog.js +1 -1
- 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 +2 -2
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +4 -3
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +44 -15
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +13 -13
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +9 -9
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +2 -2
- 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 +4 -4
- 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 +2 -3
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardTile.js +4 -9
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +1 -1
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +3 -6
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +3 -6
- package/src/sap/m/Table.js +5 -4
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +8 -8
- package/src/sap/m/TileContentRenderer.js +1 -6
- package/src/sap/m/TimePicker.js +38 -8
- package/src/sap/m/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +4 -4
- package/src/sap/m/TimePickerClocksRenderer.js +7 -9
- package/src/sap/m/TimePickerInputs.js +10 -8
- package/src/sap/m/TimePickerInputsRenderer.js +7 -6
- package/src/sap/m/TimePickerInternals.js +15 -2
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliders.js +7 -5
- 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 +7 -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 +10 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/VariantManagement.js +77 -78
- 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 +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/delegate/DateNavigation.js +1 -1
- package/src/sap/m/designtime/PersistenceProvider.designtime.js +21 -0
- package/src/sap/m/library.js +25 -90
- package/src/sap/m/messagebundle.properties +15 -0
- package/src/sap/m/messagebundle_ar.properties +10 -0
- package/src/sap/m/messagebundle_bg.properties +10 -0
- package/src/sap/m/messagebundle_ca.properties +10 -0
- package/src/sap/m/messagebundle_cs.properties +11 -1
- package/src/sap/m/messagebundle_cy.properties +10 -0
- package/src/sap/m/messagebundle_da.properties +10 -0
- package/src/sap/m/messagebundle_de.properties +12 -2
- package/src/sap/m/messagebundle_el.properties +10 -0
- package/src/sap/m/messagebundle_en.properties +10 -0
- package/src/sap/m/messagebundle_en_GB.properties +10 -0
- package/src/sap/m/messagebundle_en_US_sappsd.properties +10 -0
- package/src/sap/m/messagebundle_en_US_saprigi.properties +10 -0
- package/src/sap/m/messagebundle_es.properties +10 -0
- package/src/sap/m/messagebundle_es_MX.properties +10 -0
- package/src/sap/m/messagebundle_et.properties +10 -0
- package/src/sap/m/messagebundle_fi.properties +10 -0
- package/src/sap/m/messagebundle_fr.properties +10 -0
- package/src/sap/m/messagebundle_fr_CA.properties +10 -0
- package/src/sap/m/messagebundle_hi.properties +10 -0
- package/src/sap/m/messagebundle_hr.properties +10 -0
- package/src/sap/m/messagebundle_hu.properties +10 -0
- package/src/sap/m/messagebundle_id.properties +10 -0
- package/src/sap/m/messagebundle_it.properties +13 -3
- package/src/sap/m/messagebundle_iw.properties +10 -0
- package/src/sap/m/messagebundle_ja.properties +11 -1
- package/src/sap/m/messagebundle_kk.properties +10 -0
- package/src/sap/m/messagebundle_ko.properties +11 -1
- package/src/sap/m/messagebundle_lt.properties +10 -0
- package/src/sap/m/messagebundle_lv.properties +10 -0
- package/src/sap/m/messagebundle_ms.properties +11 -1
- package/src/sap/m/messagebundle_nl.properties +10 -0
- package/src/sap/m/messagebundle_no.properties +10 -0
- package/src/sap/m/messagebundle_pl.properties +10 -0
- package/src/sap/m/messagebundle_pt.properties +10 -0
- package/src/sap/m/messagebundle_pt_PT.properties +10 -0
- package/src/sap/m/messagebundle_ro.properties +10 -0
- package/src/sap/m/messagebundle_ru.properties +10 -0
- package/src/sap/m/messagebundle_sh.properties +10 -0
- package/src/sap/m/messagebundle_sk.properties +10 -0
- package/src/sap/m/messagebundle_sl.properties +10 -0
- package/src/sap/m/messagebundle_sv.properties +10 -0
- package/src/sap/m/messagebundle_th.properties +10 -0
- package/src/sap/m/messagebundle_tr.properties +10 -0
- package/src/sap/m/messagebundle_uk.properties +10 -0
- package/src/sap/m/messagebundle_vi.properties +10 -0
- package/src/sap/m/messagebundle_zh_CN.properties +10 -0
- package/src/sap/m/messagebundle_zh_TW.properties +10 -0
- 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 +1 -1
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +8 -4
- package/src/sap/m/p13n/GroupController.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/PersistenceProvider.js +1 -1
- package/src/sap/m/p13n/Popup.js +7 -1
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +14 -13
- package/src/sap/m/p13n/SelectionPanel.js +1 -1
- package/src/sap/m/p13n/SortController.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +1 -1
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
- package/src/sap/m/p13n/modules/UIManager.js +19 -9
- package/src/sap/m/plugins/CellSelector.js +1 -1
- package/src/sap/m/plugins/ColumnResizer.js +9 -1
- package/src/sap/m/plugins/CopyProvider.js +122 -5
- package/src/sap/m/plugins/DataStateIndicator.js +14 -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 +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/Util.js +57 -3
- 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 +14 -21
- package/src/sap/m/table/columnmenu/MenuRenderer.js +0 -6
- 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/Button.less +4 -4
- package/src/sap/m/themes/base/FeedInput.less +1 -0
- package/src/sap/m/themes/base/GenericTile.less +5 -23
- package/src/sap/m/themes/base/IllustratedMessage.less +1 -1
- package/src/sap/m/themes/base/InputBase.less +27 -15
- package/src/sap/m/themes/base/MessageToast.less +7 -0
- package/src/sap/m/themes/base/ObjectHeader.less +20 -0
- package/src/sap/m/themes/base/PlanningCalendarHeader.less +2 -1
- package/src/sap/m/themes/base/SelectionDetailsItem.less +1 -1
- package/src/sap/m/themes/base/Table.less +0 -20
- package/src/sap/m/themes/base/TimePickerClocks.less +2 -1
- package/src/sap/m/themes/base/TimePickerInputs.less +2 -1
- package/src/sap/m/themes/base/Wizard.less +1 -1
- package/src/sap/m/upload/UploadSet.js +21 -18
- package/src/sap/m/upload/UploadSetItem.js +27 -25
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/CustomDynamicDateOption.js +0 -110
package/src/sap/m/DatePicker.js
CHANGED
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
"sap/ui/unified/library",
|
|
34
34
|
"sap/ui/core/Configuration",
|
|
35
35
|
"sap/ui/unified/calendar/CalendarUtils",
|
|
36
|
-
|
|
36
|
+
"sap/ui/core/date/UI5Date",
|
|
37
37
|
"sap/ui/core/date/CalendarWeekNumbering",
|
|
38
38
|
"sap/ui/dom/jquery/cursorPos"
|
|
39
39
|
],
|
|
@@ -64,7 +64,7 @@ sap.ui.define([
|
|
|
64
64
|
unifiedLibrary,
|
|
65
65
|
Configuration,
|
|
66
66
|
CalendarUtils,
|
|
67
|
-
|
|
67
|
+
UI5Date,
|
|
68
68
|
CalendarWeekNumbering
|
|
69
69
|
) {
|
|
70
70
|
"use strict";
|
|
@@ -104,21 +104,51 @@ sap.ui.define([
|
|
|
104
104
|
*
|
|
105
105
|
* The user can enter a date by:
|
|
106
106
|
* <ul><li>Using the calendar that opens in a popup</li>
|
|
107
|
-
* <li>Typing it
|
|
107
|
+
* <li>Typing it directly in the input field</li></ul>
|
|
108
108
|
*
|
|
109
109
|
* On app level, there are two options to provide a date for the
|
|
110
110
|
* <code>DatePicker</code> - as a string to the <code>value</code> property or as
|
|
111
|
-
* a JavaScript Date object to the <code>dateValue</code> property (only one of
|
|
111
|
+
* a UI5Date or JavaScript Date object to the <code>dateValue</code> property (only one of
|
|
112
112
|
* these properties should be used at a time):
|
|
113
113
|
*
|
|
114
114
|
* <ul><li>Use the <code>value</code> property if you want to bind the
|
|
115
115
|
* <code>DatePicker</code> to a model using the <code>sap.ui.model.type.Date</code></li>
|
|
116
|
+
* @example <caption> binding the <code>value</code> property by using types </caption>
|
|
117
|
+
* new sap.ui.model.json.JSONModel({
|
|
118
|
+
* date: sap.ui.core.date.UI5Date.getInstance(2022,10,10,10,10,10)
|
|
119
|
+
* });
|
|
120
|
+
*
|
|
121
|
+
* new sap.m.DatePicker({
|
|
122
|
+
* value:{path:"/date",type:"sap.ui.model.type.Date"}
|
|
123
|
+
* });
|
|
124
|
+
*
|
|
116
125
|
* <li>Use the <code>value</code> property if the date is provided as a string from
|
|
117
126
|
* the backend or inside the app (for example, as ABAP type DATS field)</li>
|
|
127
|
+
* @example <caption> binding the <code>value</code> property by using types </caption>
|
|
128
|
+
* new sap.ui.model.json.JSONModel({date:'2022-11-10');
|
|
129
|
+
*
|
|
130
|
+
* new sap.m.DatePicker({
|
|
131
|
+
* value:{
|
|
132
|
+
* path:"/date",
|
|
133
|
+
* type:"sap.ui.model.type.Date",
|
|
134
|
+
* formatOptions:{
|
|
135
|
+
* source:{
|
|
136
|
+
* pattern:"yyyy-MM-dd"
|
|
137
|
+
* }
|
|
138
|
+
* }
|
|
139
|
+
* }
|
|
140
|
+
* });
|
|
141
|
+
*
|
|
142
|
+
* <b>Note:</b> There are multiple binding type choices, such as:
|
|
143
|
+
* sap.ui.model.type.Date
|
|
144
|
+
* sap.ui.model.odata.type.DateTime
|
|
145
|
+
* sap.ui.model.odata.type.DateTimeOffset
|
|
146
|
+
* See {@link sap.ui.model.type.Date}, {@link sap.ui.model.odata.type.DateTime} or {@link sap.ui.model.odata.type.DateTimeOffset}
|
|
147
|
+
*
|
|
118
148
|
* <li>Use the <code>dateValue</code> property if the date is already provided as a
|
|
119
|
-
* JavaScript Date object or you want to work with a JavaScript Date object.
|
|
149
|
+
* UI5Date or JavaScript Date object or you want to work with a UI5Date or JavaScript Date object.
|
|
120
150
|
* Use <code>dateValue</code> as a helper property to easily obtain the day, month and year
|
|
121
|
-
* of the chosen date. Although possible to bind it,
|
|
151
|
+
* of the chosen date. Although it's possible to bind it, it's not recommended to do so.
|
|
122
152
|
* When binding is needed, use <code>value</code> property instead</li></ul>
|
|
123
153
|
*
|
|
124
154
|
* <h3>Formatting</h3>
|
|
@@ -154,7 +184,7 @@ sap.ui.define([
|
|
|
154
184
|
* the close event), or select Cancel.
|
|
155
185
|
*
|
|
156
186
|
* @extends sap.m.DateTimeField
|
|
157
|
-
* @version 1.
|
|
187
|
+
* @version 1.114.1
|
|
158
188
|
*
|
|
159
189
|
* @constructor
|
|
160
190
|
* @public
|
|
@@ -185,7 +215,7 @@ sap.ui.define([
|
|
|
185
215
|
secondaryCalendarType : {type : "sap.ui.core.CalendarType", group : "Appearance"},
|
|
186
216
|
|
|
187
217
|
/**
|
|
188
|
-
* Minimum date that can be shown and selected in the <code>DatePicker</code>. This must be a JavaScript
|
|
218
|
+
* Minimum date that can be shown and selected in the <code>DatePicker</code>. This must be a UI5Date or JavaScript Date object.
|
|
189
219
|
*
|
|
190
220
|
* <b>Note:</b> If the <code>minDate</code> is set to be after the <code>maxDate</code>,
|
|
191
221
|
* the <code>maxDate</code> and the <code>minDate</code> are switched before rendering.
|
|
@@ -194,7 +224,7 @@ sap.ui.define([
|
|
|
194
224
|
minDate : {type : "object", group : "Misc", defaultValue : null},
|
|
195
225
|
|
|
196
226
|
/**
|
|
197
|
-
* Maximum date that can be shown and selected in the <code>DatePicker</code>. This must be a JavaScript
|
|
227
|
+
* Maximum date that can be shown and selected in the <code>DatePicker</code>. This must be a UI5Date or JavaScript Date object.
|
|
198
228
|
*
|
|
199
229
|
* <b>Note:</b> If the <code>maxDate</code> is set to be before the <code>minDate</code>,
|
|
200
230
|
* the <code>maxDate</code> and the <code>minDate</code> are switched before rendering.
|
|
@@ -349,11 +379,11 @@ sap.ui.define([
|
|
|
349
379
|
*/
|
|
350
380
|
|
|
351
381
|
/**
|
|
352
|
-
* The date
|
|
382
|
+
* The date instance. This is independent from any formatter.
|
|
353
383
|
*
|
|
354
384
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
355
385
|
*
|
|
356
|
-
* @returns {Date} the value of property <code>dateValue</code>
|
|
386
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} the value of property <code>dateValue</code>
|
|
357
387
|
* @public
|
|
358
388
|
* @name sap.m.DatePicker#getDateValue
|
|
359
389
|
* @function
|
|
@@ -687,16 +717,16 @@ sap.ui.define([
|
|
|
687
717
|
};
|
|
688
718
|
|
|
689
719
|
/**
|
|
690
|
-
* Set minimum date that can be shown and selected in the <code>DatePicker</code>. This must be a
|
|
720
|
+
* Set minimum date that can be shown and selected in the <code>DatePicker</code>. This must be a date instance.
|
|
691
721
|
*
|
|
692
|
-
* @param {Date} oDate A
|
|
722
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
|
|
693
723
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
694
724
|
* @public
|
|
695
725
|
*/
|
|
696
726
|
DatePicker.prototype.setMinDate = function(oDate) {
|
|
697
727
|
|
|
698
728
|
if (!this._isValidDate(oDate)) {
|
|
699
|
-
throw new Error("Date must be a JavaScript date object; " + this);
|
|
729
|
+
throw new Error("Date must be a JavaScript or UI5Date date object; " + this);
|
|
700
730
|
}
|
|
701
731
|
|
|
702
732
|
if (deepEqual(this.getMinDate(), oDate)) {
|
|
@@ -735,16 +765,16 @@ sap.ui.define([
|
|
|
735
765
|
};
|
|
736
766
|
|
|
737
767
|
/**
|
|
738
|
-
* Set maximum date that can be shown and selected in the <code>DatePicker</code>. This must be a
|
|
768
|
+
* Set maximum date that can be shown and selected in the <code>DatePicker</code>. This must be a date instance.
|
|
739
769
|
*
|
|
740
|
-
* @param {Date} oDate A
|
|
770
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
|
|
741
771
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
742
772
|
* @public
|
|
743
773
|
*/
|
|
744
774
|
DatePicker.prototype.setMaxDate = function(oDate) {
|
|
745
775
|
|
|
746
776
|
if (!this._isValidDate(oDate)) {
|
|
747
|
-
throw new Error("Date must be a JavaScript date object; " + this);
|
|
777
|
+
throw new Error("Date must be a JavaScript or UI5Date date object; " + this);
|
|
748
778
|
}
|
|
749
779
|
|
|
750
780
|
if (deepEqual(this.getMaxDate(), oDate)) {
|
|
@@ -1255,7 +1285,7 @@ sap.ui.define([
|
|
|
1255
1285
|
DatePicker.prototype._getVisibleDatesRange = function (oCalendar) {
|
|
1256
1286
|
var aVisibleDays = oCalendar._getVisibleDays();
|
|
1257
1287
|
|
|
1258
|
-
// Convert to local
|
|
1288
|
+
// Convert to local date instance
|
|
1259
1289
|
return new DateRange({
|
|
1260
1290
|
startDate: aVisibleDays[0].toLocalJSDate(), // First visible date
|
|
1261
1291
|
endDate: aVisibleDays[aVisibleDays.length - 1].toLocalJSDate() // Last visible date
|
|
@@ -88,19 +88,51 @@ sap.ui.define([
|
|
|
88
88
|
*
|
|
89
89
|
* The user can enter a date by:
|
|
90
90
|
* <ul><li>Using the calendar that opens in a popup</li>
|
|
91
|
-
* <li>Typing it
|
|
91
|
+
* <li>Typing it directly in the input field</li></ul>
|
|
92
92
|
*
|
|
93
93
|
* On app level, there are two options to provide a date for the
|
|
94
94
|
* <code>DateRangeSelection</code> - date range as a string to the
|
|
95
|
-
* <code>value</code> property or JavaScript Date objects to the
|
|
95
|
+
* <code>value</code> property or UI5Date/JavaScript Date objects to the
|
|
96
96
|
* <code>dateValue</code> and <code>secondDateValue</code> properties (only one of
|
|
97
97
|
* these options should be used at a time):
|
|
98
98
|
*
|
|
99
99
|
* <ul><li>Use the <code>value</code> property if the date range is already provided as
|
|
100
100
|
* a formatted string</li>
|
|
101
|
+
* @example <caption> binding the <code>value</code> property by using types </caption>
|
|
102
|
+
* new sap.ui.model.json.JSONModel({start:'2022-11-10', end:'2022-11-15'});
|
|
103
|
+
*
|
|
104
|
+
* new sap.m.DateRangeSelection({
|
|
105
|
+
* value: {
|
|
106
|
+
* type: "sap.ui.model.type.DateInterval",
|
|
107
|
+
* parts: [{
|
|
108
|
+
* type: "sap.ui.model.type.Date",
|
|
109
|
+
* path: "/start",
|
|
110
|
+
* formatOptions: {
|
|
111
|
+
* source: {
|
|
112
|
+
* pattern: "yyyy-MM-dd"
|
|
113
|
+
* }
|
|
114
|
+
* }
|
|
115
|
+
* },
|
|
116
|
+
* {
|
|
117
|
+
* type: "sap.ui.model.type.Date",
|
|
118
|
+
* path:"/end",
|
|
119
|
+
* formatOptions: {
|
|
120
|
+
* source: {
|
|
121
|
+
* pattern: "yyyy-MM-dd"
|
|
122
|
+
* }
|
|
123
|
+
* }}]
|
|
124
|
+
* }
|
|
125
|
+
* });
|
|
126
|
+
*
|
|
127
|
+
* <b>Note:</b> There are multiple binding type choices, such as:
|
|
128
|
+
* sap.ui.model.type.Date
|
|
129
|
+
* sap.ui.model.odata.type.DateTime
|
|
130
|
+
* sap.ui.model.odata.type.DateTimeOffset
|
|
131
|
+
* See {@link sap.ui.model.type.Date}, {@link sap.ui.model.odata.type.DateTime} or {@link sap.ui.model.odata.type.DateTimeOffset}
|
|
132
|
+
*
|
|
101
133
|
* <li>Use the <code>dateValue</code> and <code>secondDateValue</code> properties
|
|
102
|
-
* if the date range is already provided as JavaScript Date objects or you want to
|
|
103
|
-
* work with JavaScript Date objects</li></ul>
|
|
134
|
+
* if the date range is already provided as UI5Date or JavaScript Date objects or you want to
|
|
135
|
+
* work with UI5Date or JavaScript Date objects</li></ul>
|
|
104
136
|
*
|
|
105
137
|
* <h3>Formatting</h3>
|
|
106
138
|
*
|
|
@@ -131,8 +163,8 @@ sap.ui.define([
|
|
|
131
163
|
* compact mode and provides a touch-friendly size in cozy mode.
|
|
132
164
|
*
|
|
133
165
|
* @extends sap.m.DatePicker
|
|
134
|
-
* @version 1.
|
|
135
|
-
* @version 1.
|
|
166
|
+
* @version 1.114.1
|
|
167
|
+
* @version 1.114.1
|
|
136
168
|
*
|
|
137
169
|
* @constructor
|
|
138
170
|
* @public
|
|
@@ -152,7 +184,7 @@ sap.ui.define([
|
|
|
152
184
|
delimiter : {type : "string", group : "Misc", defaultValue : '-'},
|
|
153
185
|
|
|
154
186
|
/**
|
|
155
|
-
* The end date of the range as JavaScript Date object. This is independent from any formatter.
|
|
187
|
+
* The end date of the range as UI5Date or JavaScript Date object. This is independent from any formatter.
|
|
156
188
|
*
|
|
157
189
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
158
190
|
*/
|
|
@@ -237,7 +269,8 @@ sap.ui.define([
|
|
|
237
269
|
oBinding,
|
|
238
270
|
oBindingType,
|
|
239
271
|
oLocale,
|
|
240
|
-
oLocaleData
|
|
272
|
+
oLocaleData,
|
|
273
|
+
oFormatOptions;
|
|
241
274
|
|
|
242
275
|
if (!sPlaceholder) {
|
|
243
276
|
oBinding = this.getBinding("value");
|
|
@@ -250,7 +283,8 @@ sap.ui.define([
|
|
|
250
283
|
if (oBindingType.oFormatOptions && oBindingType.oFormatOptions.format) {
|
|
251
284
|
sPlaceholder = oLocaleData.getCustomDateTimePattern(oBindingType.oFormatOptions.format);
|
|
252
285
|
} else {
|
|
253
|
-
|
|
286
|
+
oFormatOptions = Object.assign({ interval: true, singleIntervalValue: true }, oBindingType.oFormatOptions);
|
|
287
|
+
return this._getDateFormatPlaceholderText(oFormatOptions);
|
|
254
288
|
}
|
|
255
289
|
} else {
|
|
256
290
|
sPlaceholder = this.getDisplayFormat();
|
|
@@ -260,7 +294,8 @@ sap.ui.define([
|
|
|
260
294
|
}
|
|
261
295
|
|
|
262
296
|
if (this._checkStyle(sPlaceholder)) {
|
|
263
|
-
|
|
297
|
+
oFormatOptions = Object.assign({ interval: true, singleIntervalValue: true, intervalDelimiter: _getDelimiter.call(this) }, _getFormatter.call(this).oFormatOptions);
|
|
298
|
+
return this._getDateFormatPlaceholderText(oFormatOptions);
|
|
264
299
|
}
|
|
265
300
|
}
|
|
266
301
|
|
|
@@ -273,6 +308,10 @@ sap.ui.define([
|
|
|
273
308
|
return sPlaceholder;
|
|
274
309
|
};
|
|
275
310
|
|
|
311
|
+
DateRangeSelection.prototype._getDateFormatPlaceholderText = function (oFormatOptions) {
|
|
312
|
+
return DateFormat.getDateInstance(oFormatOptions).getPlaceholderText();
|
|
313
|
+
};
|
|
314
|
+
|
|
276
315
|
// Overwrite DatePicker's setValue to support two date range processing
|
|
277
316
|
/**
|
|
278
317
|
* Getter for property <code>value</code>.
|
|
@@ -360,9 +399,9 @@ sap.ui.define([
|
|
|
360
399
|
};
|
|
361
400
|
|
|
362
401
|
/**
|
|
363
|
-
* Converts the parameter to a
|
|
364
|
-
* @param {Date|int} vBindingDate A timestamp or a
|
|
365
|
-
* @returns {Date} A
|
|
402
|
+
* Converts the parameter to a UI5Date or JavaScript Date, if it is a timestamp integer.
|
|
403
|
+
* @param {Date|module:sap/ui/core/date/UI5Date|int} vBindingDate A timestamp or a date instance
|
|
404
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} A date instance
|
|
366
405
|
* @private
|
|
367
406
|
*/
|
|
368
407
|
function _normalizeDateValue(vBindingDate) {
|
|
@@ -370,8 +409,8 @@ sap.ui.define([
|
|
|
370
409
|
}
|
|
371
410
|
|
|
372
411
|
/**
|
|
373
|
-
* Converts the parameter to a timestamp integer, if it is a
|
|
374
|
-
* @param {Date|int} vBindingDate A timestamp or a
|
|
412
|
+
* Converts the parameter to a timestamp integer, if it is a UI5Date or JavaScript Date.
|
|
413
|
+
* @param {Date|module:sap/ui/core/date/UI5Date|int} vBindingDate A timestamp or a date instance
|
|
375
414
|
* @returns {int} A timestamp integer
|
|
376
415
|
* @private
|
|
377
416
|
*/
|
|
@@ -443,7 +482,7 @@ sap.ui.define([
|
|
|
443
482
|
|
|
444
483
|
/**
|
|
445
484
|
* Set the start date of the range.
|
|
446
|
-
* @param {Date} oFrom A
|
|
485
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oFrom A date instance
|
|
447
486
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
448
487
|
* @public
|
|
449
488
|
* @deprecated since version 1.22.0, replaced by <code>dateValue</code> property of the {@link sap.m.DateTimeField}
|
|
@@ -465,7 +504,7 @@ sap.ui.define([
|
|
|
465
504
|
|
|
466
505
|
/**
|
|
467
506
|
* Set the end date of the range.
|
|
468
|
-
* @param {Date} oTo A
|
|
507
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oTo A date instance
|
|
469
508
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
470
509
|
* @public
|
|
471
510
|
* @deprecated since version 1.22.0, replaced by <code>secondDateValue</code> property
|
|
@@ -477,7 +516,7 @@ sap.ui.define([
|
|
|
477
516
|
|
|
478
517
|
/**
|
|
479
518
|
* Get the end date of the range.
|
|
480
|
-
* @returns {Date} the end date of the date range
|
|
519
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} the end date of the date range
|
|
481
520
|
* @public
|
|
482
521
|
* @deprecated since version 1.22.0, replaced by <code>secondDateValue</code> property
|
|
483
522
|
*/
|
|
@@ -490,11 +529,11 @@ sap.ui.define([
|
|
|
490
529
|
/**
|
|
491
530
|
* Getter for property <code>dateValue</code>.
|
|
492
531
|
*
|
|
493
|
-
* The start date of the range as JavaScript Date object. This is independent from any formatter.
|
|
532
|
+
* The start date of the range as UI5Date or JavaScript Date object. This is independent from any formatter.
|
|
494
533
|
*
|
|
495
534
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
496
535
|
*
|
|
497
|
-
* @returns {Date} the value of property <code>dateValue</code>
|
|
536
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} the value of property <code>dateValue</code>
|
|
498
537
|
* @public
|
|
499
538
|
* @name sap.m.DateRangeSelection#getDateValue
|
|
500
539
|
* @function
|
|
@@ -503,18 +542,18 @@ sap.ui.define([
|
|
|
503
542
|
/**
|
|
504
543
|
* Setter for property <code>dateValue</code>.
|
|
505
544
|
*
|
|
506
|
-
* The start date of the range as JavaScript Date object. This is independent from any formatter.
|
|
545
|
+
* The start date of the range as UI5Date or JavaScript Date object. This is independent from any formatter.
|
|
507
546
|
*
|
|
508
547
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
509
548
|
*
|
|
510
|
-
* @param {Date} oDateValue New value for property <code>dateValue</code>
|
|
549
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDateValue New value for property <code>dateValue</code>
|
|
511
550
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
512
551
|
* @public
|
|
513
552
|
*/
|
|
514
553
|
DateRangeSelection.prototype.setDateValue = function(oDateValue) {
|
|
515
554
|
|
|
516
555
|
if (!this._isValidDate(oDateValue)) {
|
|
517
|
-
throw new Error("Date must be a JavaScript date object; " + this);
|
|
556
|
+
throw new Error("Date must be a JavaScript or UI5Date date object; " + this);
|
|
518
557
|
}
|
|
519
558
|
|
|
520
559
|
if (deepEqual(this.getDateValue(), oDateValue)) {
|
|
@@ -531,11 +570,11 @@ sap.ui.define([
|
|
|
531
570
|
/**
|
|
532
571
|
* Getter for property <code>secondDateValue</code>.
|
|
533
572
|
*
|
|
534
|
-
* The end date of the range as JavaScript Date object. This is independent from any formatter.
|
|
573
|
+
* The end date of the range as UI5Date or JavaScript Date object. This is independent from any formatter.
|
|
535
574
|
*
|
|
536
575
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
537
576
|
*
|
|
538
|
-
* @returns {Date} the value of property <code>secondDateValue</code>
|
|
577
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} the value of property <code>secondDateValue</code>
|
|
539
578
|
* @public
|
|
540
579
|
* @name sap.m.DateRangeSelection#getSecondDateValue
|
|
541
580
|
* @function
|
|
@@ -544,18 +583,18 @@ sap.ui.define([
|
|
|
544
583
|
/**
|
|
545
584
|
* Setter for property <code>secondDateValue</code>.
|
|
546
585
|
*
|
|
547
|
-
* The start date of the range as JavaScript Date object. This is independent from any formatter.
|
|
586
|
+
* The start date of the range as UI5Date or JavaScript Date object. This is independent from any formatter.
|
|
548
587
|
*
|
|
549
588
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
550
589
|
*
|
|
551
|
-
* @param {Date} oSecondDateValue New value for property <code>dateValue</code>
|
|
590
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oSecondDateValue New value for property <code>dateValue</code>
|
|
552
591
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
553
592
|
* @public
|
|
554
593
|
*/
|
|
555
594
|
DateRangeSelection.prototype.setSecondDateValue = function(oSecondDateValue) {
|
|
556
595
|
|
|
557
596
|
if (!this._isValidDate(oSecondDateValue)) {
|
|
558
|
-
throw new Error("Date must be a JavaScript date object; " + this);
|
|
597
|
+
throw new Error("Date must be a JavaScript or UI5Date date object; " + this);
|
|
559
598
|
}
|
|
560
599
|
|
|
561
600
|
if (deepEqual(this.getSecondDateValue(), oSecondDateValue)) {
|
|
@@ -576,8 +615,8 @@ sap.ui.define([
|
|
|
576
615
|
};
|
|
577
616
|
|
|
578
617
|
/**
|
|
579
|
-
* Set minimum date that can be shown and selected in the <code>DatePicker</code>. This must be a JavaScript
|
|
580
|
-
* @param {Date} oDate A
|
|
618
|
+
* Set minimum date that can be shown and selected in the <code>DatePicker</code>. This must be a UI5Date or JavaScript Date object.
|
|
619
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
|
|
581
620
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
582
621
|
* @public
|
|
583
622
|
*/
|
|
@@ -597,8 +636,8 @@ sap.ui.define([
|
|
|
597
636
|
};
|
|
598
637
|
|
|
599
638
|
/**
|
|
600
|
-
* Set maximum date that can be shown and selected in the <code>DatePicker</code>. This must be a JavaScript
|
|
601
|
-
* @param {Date} oDate A
|
|
639
|
+
* Set maximum date that can be shown and selected in the <code>DatePicker</code>. This must be a UI5Date or JavaScript Date object.
|
|
640
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
|
|
602
641
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
603
642
|
* @public
|
|
604
643
|
*/
|
|
@@ -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.114.1
|
|
69
69
|
*
|
|
70
70
|
* @constructor
|
|
71
71
|
* @public
|
|
@@ -88,7 +88,7 @@ sap.ui.define([
|
|
|
88
88
|
valueFormat: {type: "string", group: "Data", defaultValue: null},
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
* Holds a reference to a JavaScript Date
|
|
91
|
+
* Holds a reference to a UI5Date or JavaScript Date object. The <code>value</code> (string)
|
|
92
92
|
* property will be set according to it. Alternatively, if the <code>value</code>
|
|
93
93
|
* and <code>valueFormat</code> pair properties are supplied instead,
|
|
94
94
|
* the <code>dateValue</code> will be instantiated according to the parsed
|
|
@@ -100,7 +100,7 @@ sap.ui.define([
|
|
|
100
100
|
dateValue: {type: "object", group: "Data", defaultValue: null},
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* Holds a reference to a JavaScript Date
|
|
103
|
+
* Holds a reference to a UI5Date or JavaScript Date object to define the initially focused
|
|
104
104
|
* date/time when the picker popup is opened.
|
|
105
105
|
*
|
|
106
106
|
* <b>Notes:</b>
|
|
@@ -108,7 +108,7 @@ sap.ui.define([
|
|
|
108
108
|
* <li>Setting this property does not change the <code>value</code> property.</li>
|
|
109
109
|
* <li>Depending on the context this property is used in ({@link sap.m.TimePicker},
|
|
110
110
|
* {@link sap.m.DatePicker} or {@link sap.m.DateTimePicker}), it takes into account only the time part, only
|
|
111
|
-
* the date part or both parts of the JavaScript Date
|
|
111
|
+
* the date part or both parts of the UI5Date or JavaScript Date object.</li>
|
|
112
112
|
* </ul>
|
|
113
113
|
* @since 1.54
|
|
114
114
|
*/
|
|
@@ -228,16 +228,16 @@ sap.ui.define([
|
|
|
228
228
|
/**
|
|
229
229
|
* Setter for property <code>dateValue</code>.
|
|
230
230
|
*
|
|
231
|
-
* The date and time in DateTimeField as JavaScript Date object.
|
|
231
|
+
* The date and time in DateTimeField as UI5Date or JavaScript Date object.
|
|
232
232
|
*
|
|
233
|
-
* @param {Date} oDate A
|
|
233
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
|
|
234
234
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
235
235
|
* @public
|
|
236
236
|
*/
|
|
237
237
|
DateTimeField.prototype.setDateValue = function (oDate) {
|
|
238
238
|
|
|
239
239
|
if (!this._isValidDate(oDate)) {
|
|
240
|
-
throw new Error("Date must be a JavaScript date object; " + this);
|
|
240
|
+
throw new Error("Date must be a JavaScript or UI5Date date object; " + this);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
if (deepEqual(this.getDateValue(), oDate)) {
|
|
@@ -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;
|
|
@@ -19,7 +19,8 @@ sap.ui.define([
|
|
|
19
19
|
'sap/ui/core/library',
|
|
20
20
|
'sap/ui/Device',
|
|
21
21
|
"./DateTimeInputRenderer",
|
|
22
|
-
"sap/ui/core/Configuration"
|
|
22
|
+
"sap/ui/core/Configuration",
|
|
23
|
+
"sap/ui/core/date/UI5Date"
|
|
23
24
|
],
|
|
24
25
|
function(
|
|
25
26
|
jQuery,
|
|
@@ -35,7 +36,8 @@ function(
|
|
|
35
36
|
coreLibrary,
|
|
36
37
|
Device,
|
|
37
38
|
DateTimeInputRenderer,
|
|
38
|
-
Configuration
|
|
39
|
+
Configuration,
|
|
40
|
+
UI5Date
|
|
39
41
|
) {
|
|
40
42
|
"use strict";
|
|
41
43
|
|
|
@@ -64,7 +66,7 @@ function(
|
|
|
64
66
|
* @extends sap.ui.core.Control
|
|
65
67
|
*
|
|
66
68
|
* @author SAP SE
|
|
67
|
-
* @version 1.
|
|
69
|
+
* @version 1.114.1
|
|
68
70
|
*
|
|
69
71
|
* @constructor
|
|
70
72
|
* @public
|
|
@@ -361,7 +363,7 @@ function(
|
|
|
361
363
|
|
|
362
364
|
sValue = this.validateProperty("value", sValue);
|
|
363
365
|
if (sValue.toLowerCase() == "now") {
|
|
364
|
-
return this.setDateValue(
|
|
366
|
+
return this.setDateValue(UI5Date.getInstance());
|
|
365
367
|
}
|
|
366
368
|
|
|
367
369
|
if (sValue === this.getValue()) {
|
|
@@ -99,19 +99,50 @@ sap.ui.define([
|
|
|
99
99
|
*
|
|
100
100
|
* On app level, there are two options to provide a date for the
|
|
101
101
|
* <code>DateTimePicker</code> - as a string to the <code>value</code> property
|
|
102
|
-
* or as a JavaScript Date object to the <code>dateValue</code> property (only one
|
|
102
|
+
* or as a UI5Date or JavaScript Date object to the <code>dateValue</code> property (only one
|
|
103
103
|
* of these properties should be used at a time):
|
|
104
104
|
*
|
|
105
105
|
* <ul><li>Use the <code>value</code> property if you want to bind the
|
|
106
106
|
* <code>DateTimePicker</code> to a model using the
|
|
107
107
|
* <code>sap.ui.model.type.DateTime</code></li>
|
|
108
|
+
* @example <caption> binding the <code>value</code> property by using types </caption>
|
|
109
|
+
* new sap.ui.model.json.JSONModel({date: sap.ui.core.date.UI5Date.getInstance(2022,10,10,12,10,10)});
|
|
110
|
+
*
|
|
111
|
+
* new sap.m.DateTimePicker({
|
|
112
|
+
* value: {
|
|
113
|
+
* type: "sap.ui.model.type.DateTime",
|
|
114
|
+
* path: "/date"
|
|
115
|
+
* }
|
|
116
|
+
* });
|
|
117
|
+
*
|
|
108
118
|
* <li>Use the <code>value</code> property if the date is provided as a string from
|
|
109
119
|
* the backend or inside the app (for example, as ABAP type DATS field)</li>
|
|
120
|
+
* @example <caption> binding the <code>value</code> property by using types </caption>
|
|
121
|
+
* new sap.ui.model.json.JSONModel({date:"2022-11-10-12-10-10"});
|
|
122
|
+
*
|
|
123
|
+
* new sap.m.DateTimePicker({
|
|
124
|
+
* value: {
|
|
125
|
+
* type: "sap.ui.model.type.DateTime",
|
|
126
|
+
* path: "/date",
|
|
127
|
+
* formatOptions: {
|
|
128
|
+
* source: {
|
|
129
|
+
* pattern: "yyyy-MM-dd-HH-mm-ss"
|
|
130
|
+
* }
|
|
131
|
+
* }
|
|
132
|
+
* }
|
|
133
|
+
* });
|
|
134
|
+
*
|
|
135
|
+
* <b>Note:</b> There are multiple binding type choices, such as:
|
|
136
|
+
* sap.ui.model.type.Date
|
|
137
|
+
* sap.ui.model.odata.type.DateTime
|
|
138
|
+
* sap.ui.model.odata.type.DateTimeOffset
|
|
139
|
+
* sap.ui.model.odata.type.DateTimeWithTimezone
|
|
140
|
+
* See {@link sap.ui.model.type.Date}, {@link sap.ui.model.odata.type.DateTime}, {@link sap.ui.model.odata.type.DateTimeOffset} or {@link sap.ui.model.odata.type.DateTimeWithTimezone}
|
|
141
|
+
*
|
|
110
142
|
* <li>Use the <code>dateValue</code> property if the date is already provided as a
|
|
111
|
-
* JavaScript Date object or you want to work with a JavaScript Date object.
|
|
143
|
+
* UI5Date or JavaScript Date object or you want to work with a UI5Date or JavaScript Date object.
|
|
112
144
|
* Use <code>dateValue</code> as a helper property to easily obtain the day, month, year,
|
|
113
|
-
* hours, minutes and seconds of the chosen date and time. Although possible to bind it,
|
|
114
|
-
* the recommendation is not to do it.
|
|
145
|
+
* hours, minutes and seconds of the chosen date and time. Although it's possible to bind it, it's not recommended to do so.
|
|
115
146
|
* When binding is needed, use <code>value</code> property instead</li></ul>
|
|
116
147
|
*
|
|
117
148
|
* <h3>Formatting</h3>
|
|
@@ -145,7 +176,7 @@ sap.ui.define([
|
|
|
145
176
|
* mobile devices, it opens in full screen.
|
|
146
177
|
*
|
|
147
178
|
* @extends sap.m.DatePicker
|
|
148
|
-
* @version 1.
|
|
179
|
+
* @version 1.114.1
|
|
149
180
|
*
|
|
150
181
|
* @constructor
|
|
151
182
|
* @public
|
|
@@ -332,7 +363,7 @@ sap.ui.define([
|
|
|
332
363
|
});
|
|
333
364
|
oSwitcher.attachSelect(this._handleSelect, this);
|
|
334
365
|
|
|
335
|
-
this.setAggregation("_switcher", oSwitcher
|
|
366
|
+
this.setAggregation("_switcher", oSwitcher);
|
|
336
367
|
}
|
|
337
368
|
|
|
338
369
|
if (Device.system.phone || jQuery('html').hasClass("sapUiMedia-Std-Phone") || this.getForcePhoneView()) {
|
|
@@ -579,9 +610,9 @@ sap.ui.define([
|
|
|
579
610
|
};
|
|
580
611
|
|
|
581
612
|
/**
|
|
582
|
-
* Set minimum date that can be shown and selected in the <code>DateTimePicker</code>. This must be a JavaScript
|
|
613
|
+
* Set minimum date that can be shown and selected in the <code>DateTimePicker</code>. This must be a UI5Date or JavaScript Date object.
|
|
583
614
|
*
|
|
584
|
-
* @param {Date} oDate A
|
|
615
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
|
|
585
616
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
586
617
|
* @public
|
|
587
618
|
*/
|
|
@@ -595,9 +626,9 @@ sap.ui.define([
|
|
|
595
626
|
};
|
|
596
627
|
|
|
597
628
|
/**
|
|
598
|
-
* Set maximum date that can be shown and selected in the <code>DateTimePicker</code>. This must be a JavaScript
|
|
629
|
+
* Set maximum date that can be shown and selected in the <code>DateTimePicker</code>. This must be a UI5Date or JavaScript Date object.
|
|
599
630
|
*
|
|
600
|
-
* @param {Date} oDate A
|
|
631
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
|
|
601
632
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
602
633
|
* @public
|
|
603
634
|
*/
|
|
@@ -1100,7 +1131,7 @@ sap.ui.define([
|
|
|
1100
1131
|
* @name sap.m.DateTimePicker#getDateValue
|
|
1101
1132
|
* @function
|
|
1102
1133
|
* @public
|
|
1103
|
-
* @returns {Date}
|
|
1134
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} date instance
|
|
1104
1135
|
* @since 1.102
|
|
1105
1136
|
*/
|
|
1106
1137
|
|
package/src/sap/m/Dialog.js
CHANGED
|
@@ -167,7 +167,7 @@ function(
|
|
|
167
167
|
*
|
|
168
168
|
* @implements sap.ui.core.PopupInterface
|
|
169
169
|
* @author SAP SE
|
|
170
|
-
* @version 1.
|
|
170
|
+
* @version 1.114.1
|
|
171
171
|
*
|
|
172
172
|
* @constructor
|
|
173
173
|
* @public
|
|
@@ -640,7 +640,7 @@ function(
|
|
|
640
640
|
|
|
641
641
|
// title alignment
|
|
642
642
|
if (oHeader && oHeader.setTitleAlignment) {
|
|
643
|
-
oHeader.
|
|
643
|
+
oHeader.setTitleAlignment(this.getTitleAlignment());
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
if (oHeader && this._getTitles(oHeader).length === 0) {
|