@openui5/sap.m 1.113.0 → 1.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRDPARTY.txt +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 +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 +48 -18
- package/src/sap/m/DateRangeSelection.js +61 -29
- package/src/sap/m/DateTimeField.js +7 -7
- 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 +4 -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 +4 -4
- 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/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 +1 -1
- 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 +1 -1
- package/src/sap/m/ListItemBase.js +1 -1
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +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 +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarMenuButton.js +1 -1
- package/src/sap/m/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 +1 -1
- 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 -1
- 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/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/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.0
|
|
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.0
|
|
167
|
+
* @version 1.114.0
|
|
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
|
*/
|
|
@@ -360,9 +392,9 @@ sap.ui.define([
|
|
|
360
392
|
};
|
|
361
393
|
|
|
362
394
|
/**
|
|
363
|
-
* Converts the parameter to a
|
|
364
|
-
* @param {Date|int} vBindingDate A timestamp or a
|
|
365
|
-
* @returns {Date} A
|
|
395
|
+
* Converts the parameter to a UI5Date or JavaScript Date, if it is a timestamp integer.
|
|
396
|
+
* @param {Date|module:sap/ui/core/date/UI5Date|int} vBindingDate A timestamp or a date instance
|
|
397
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} A date instance
|
|
366
398
|
* @private
|
|
367
399
|
*/
|
|
368
400
|
function _normalizeDateValue(vBindingDate) {
|
|
@@ -370,8 +402,8 @@ sap.ui.define([
|
|
|
370
402
|
}
|
|
371
403
|
|
|
372
404
|
/**
|
|
373
|
-
* Converts the parameter to a timestamp integer, if it is a
|
|
374
|
-
* @param {Date|int} vBindingDate A timestamp or a
|
|
405
|
+
* Converts the parameter to a timestamp integer, if it is a UI5Date or JavaScript Date.
|
|
406
|
+
* @param {Date|module:sap/ui/core/date/UI5Date|int} vBindingDate A timestamp or a date instance
|
|
375
407
|
* @returns {int} A timestamp integer
|
|
376
408
|
* @private
|
|
377
409
|
*/
|
|
@@ -443,7 +475,7 @@ sap.ui.define([
|
|
|
443
475
|
|
|
444
476
|
/**
|
|
445
477
|
* Set the start date of the range.
|
|
446
|
-
* @param {Date} oFrom A
|
|
478
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oFrom A date instance
|
|
447
479
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
448
480
|
* @public
|
|
449
481
|
* @deprecated since version 1.22.0, replaced by <code>dateValue</code> property of the {@link sap.m.DateTimeField}
|
|
@@ -465,7 +497,7 @@ sap.ui.define([
|
|
|
465
497
|
|
|
466
498
|
/**
|
|
467
499
|
* Set the end date of the range.
|
|
468
|
-
* @param {Date} oTo A
|
|
500
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oTo A date instance
|
|
469
501
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
470
502
|
* @public
|
|
471
503
|
* @deprecated since version 1.22.0, replaced by <code>secondDateValue</code> property
|
|
@@ -477,7 +509,7 @@ sap.ui.define([
|
|
|
477
509
|
|
|
478
510
|
/**
|
|
479
511
|
* Get the end date of the range.
|
|
480
|
-
* @returns {Date} the end date of the date range
|
|
512
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} the end date of the date range
|
|
481
513
|
* @public
|
|
482
514
|
* @deprecated since version 1.22.0, replaced by <code>secondDateValue</code> property
|
|
483
515
|
*/
|
|
@@ -490,11 +522,11 @@ sap.ui.define([
|
|
|
490
522
|
/**
|
|
491
523
|
* Getter for property <code>dateValue</code>.
|
|
492
524
|
*
|
|
493
|
-
* The start date of the range as JavaScript Date object. This is independent from any formatter.
|
|
525
|
+
* The start date of the range as UI5Date or JavaScript Date object. This is independent from any formatter.
|
|
494
526
|
*
|
|
495
527
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
496
528
|
*
|
|
497
|
-
* @returns {Date} the value of property <code>dateValue</code>
|
|
529
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} the value of property <code>dateValue</code>
|
|
498
530
|
* @public
|
|
499
531
|
* @name sap.m.DateRangeSelection#getDateValue
|
|
500
532
|
* @function
|
|
@@ -503,18 +535,18 @@ sap.ui.define([
|
|
|
503
535
|
/**
|
|
504
536
|
* Setter for property <code>dateValue</code>.
|
|
505
537
|
*
|
|
506
|
-
* The start date of the range as JavaScript Date object. This is independent from any formatter.
|
|
538
|
+
* The start date of the range as UI5Date or JavaScript Date object. This is independent from any formatter.
|
|
507
539
|
*
|
|
508
540
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
509
541
|
*
|
|
510
|
-
* @param {Date} oDateValue New value for property <code>dateValue</code>
|
|
542
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDateValue New value for property <code>dateValue</code>
|
|
511
543
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
512
544
|
* @public
|
|
513
545
|
*/
|
|
514
546
|
DateRangeSelection.prototype.setDateValue = function(oDateValue) {
|
|
515
547
|
|
|
516
548
|
if (!this._isValidDate(oDateValue)) {
|
|
517
|
-
throw new Error("Date must be a JavaScript date object; " + this);
|
|
549
|
+
throw new Error("Date must be a JavaScript or UI5Date date object; " + this);
|
|
518
550
|
}
|
|
519
551
|
|
|
520
552
|
if (deepEqual(this.getDateValue(), oDateValue)) {
|
|
@@ -531,11 +563,11 @@ sap.ui.define([
|
|
|
531
563
|
/**
|
|
532
564
|
* Getter for property <code>secondDateValue</code>.
|
|
533
565
|
*
|
|
534
|
-
* The end date of the range as JavaScript Date object. This is independent from any formatter.
|
|
566
|
+
* The end date of the range as UI5Date or JavaScript Date object. This is independent from any formatter.
|
|
535
567
|
*
|
|
536
568
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
537
569
|
*
|
|
538
|
-
* @returns {Date} the value of property <code>secondDateValue</code>
|
|
570
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date} the value of property <code>secondDateValue</code>
|
|
539
571
|
* @public
|
|
540
572
|
* @name sap.m.DateRangeSelection#getSecondDateValue
|
|
541
573
|
* @function
|
|
@@ -544,18 +576,18 @@ sap.ui.define([
|
|
|
544
576
|
/**
|
|
545
577
|
* Setter for property <code>secondDateValue</code>.
|
|
546
578
|
*
|
|
547
|
-
* The start date of the range as JavaScript Date object. This is independent from any formatter.
|
|
579
|
+
* The start date of the range as UI5Date or JavaScript Date object. This is independent from any formatter.
|
|
548
580
|
*
|
|
549
581
|
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
550
582
|
*
|
|
551
|
-
* @param {Date} oSecondDateValue New value for property <code>dateValue</code>
|
|
583
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oSecondDateValue New value for property <code>dateValue</code>
|
|
552
584
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
553
585
|
* @public
|
|
554
586
|
*/
|
|
555
587
|
DateRangeSelection.prototype.setSecondDateValue = function(oSecondDateValue) {
|
|
556
588
|
|
|
557
589
|
if (!this._isValidDate(oSecondDateValue)) {
|
|
558
|
-
throw new Error("Date must be a JavaScript date object; " + this);
|
|
590
|
+
throw new Error("Date must be a JavaScript or UI5Date date object; " + this);
|
|
559
591
|
}
|
|
560
592
|
|
|
561
593
|
if (deepEqual(this.getSecondDateValue(), oSecondDateValue)) {
|
|
@@ -576,8 +608,8 @@ sap.ui.define([
|
|
|
576
608
|
};
|
|
577
609
|
|
|
578
610
|
/**
|
|
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
|
|
611
|
+
* Set minimum date that can be shown and selected in the <code>DatePicker</code>. This must be a UI5Date or JavaScript Date object.
|
|
612
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
|
|
581
613
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
582
614
|
* @public
|
|
583
615
|
*/
|
|
@@ -597,8 +629,8 @@ sap.ui.define([
|
|
|
597
629
|
};
|
|
598
630
|
|
|
599
631
|
/**
|
|
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
|
|
632
|
+
* Set maximum date that can be shown and selected in the <code>DatePicker</code>. This must be a UI5Date or JavaScript Date object.
|
|
633
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
|
|
602
634
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
603
635
|
* @public
|
|
604
636
|
*/
|
|
@@ -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.0
|
|
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)) {
|
|
@@ -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.0
|
|
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.0
|
|
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.0
|
|
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) {
|
package/src/sap/m/DynamicDate.js
CHANGED
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @extends sap.ui.model.SimpleType
|
|
39
39
|
*
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.114.0
|
|
42
42
|
*
|
|
43
43
|
* @constructor
|
|
44
44
|
* @public
|
|
@@ -54,7 +54,6 @@ sap.ui.define([
|
|
|
54
54
|
* @param {int} [oConstraints.maximum] Greatest resulting date allowed for this type. Must be provided as a timestamps.
|
|
55
55
|
* @since 1.92
|
|
56
56
|
* @alias sap.m.DynamicDate
|
|
57
|
-
* @experimental Since 1.92. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
58
57
|
*/
|
|
59
58
|
var DynamicDate = SimpleType.extend("sap.m.DynamicDate", /** @lends sap.m.DynamicDate.prototype */ {
|
|
60
59
|
|
|
@@ -163,15 +162,15 @@ sap.ui.define([
|
|
|
163
162
|
case "minimum":
|
|
164
163
|
if (iTimestamp < iConstraintValue) {
|
|
165
164
|
aViolatedConstraints.push("minimum");
|
|
166
|
-
aMessages.push(oMBundle.getText(sErrorGenericTextKey, [
|
|
167
|
-
aMessages.push(oBundle.getText("Date.Minimum", [
|
|
165
|
+
aMessages.push(oMBundle.getText(sErrorGenericTextKey, [UI5Date.getInstance(iTimestamp).toDateString()]));
|
|
166
|
+
aMessages.push(oBundle.getText("Date.Minimum", [UI5Date.getInstance(iConstraintValue).toDateString()]));
|
|
168
167
|
}
|
|
169
168
|
break;
|
|
170
169
|
case "maximum":
|
|
171
170
|
if (iTimestamp > iConstraintValue) {
|
|
172
171
|
aViolatedConstraints.push("maximum");
|
|
173
|
-
aMessages.push(oMBundle.getText(sErrorGenericTextKey, [
|
|
174
|
-
aMessages.push(oBundle.getText("Date.Maximum", [
|
|
172
|
+
aMessages.push(oMBundle.getText(sErrorGenericTextKey, [UI5Date.getInstance(iTimestamp).toDateString()]));
|
|
173
|
+
aMessages.push(oBundle.getText("Date.Maximum", [UI5Date.getInstance(iConstraintValue).toDateString()]));
|
|
175
174
|
}
|
|
176
175
|
break;
|
|
177
176
|
}
|