@openui5/sap.m 1.110.0 → 1.111.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/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 +2 -1
- package/src/sap/m/ActionSheet.js +2 -2
- package/src/sap/m/ActionTile.js +1 -1
- package/src/sap/m/ActionTileContent.js +1 -1
- package/src/sap/m/AdditionalTextButton.js +1 -1
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +1 -1
- package/src/sap/m/Bar.js +20 -19
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +1 -1
- package/src/sap/m/Carousel.js +7 -11
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +4 -2
- package/src/sap/m/CheckBoxRenderer.js +2 -1
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +12 -3
- 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 +2 -2
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +3 -3
- package/src/sap/m/ComboBoxBase.js +4 -8
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomDynamicDateOption.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +23 -51
- package/src/sap/m/DateRangeSelection.js +46 -45
- package/src/sap/m/DateTimeField.js +14 -21
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +108 -98
- package/src/sap/m/DateTimePickerRenderer.js +15 -5
- package/src/sap/m/Dialog.js +6 -2
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +5 -5
- package/src/sap/m/DynamicDateFormat.js +21 -4
- package/src/sap/m/DynamicDateOption.js +22 -16
- package/src/sap/m/DynamicDateRange.js +198 -43
- package/src/sap/m/DynamicDateUtil.js +14 -5
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +2 -1
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +1 -1
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +1 -1
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +16 -21
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingEnablement.js +1 -1
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +1 -1
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +8 -8
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +14 -1
- package/src/sap/m/IconTabHeaderRenderer.js +25 -3
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +61 -25
- package/src/sap/m/IllustratedMessageRenderer.js +13 -5
- package/src/sap/m/Illustration.js +1 -1
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +7 -7
- package/src/sap/m/InputBase.js +5 -5
- package/src/sap/m/InputBaseRenderer.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 +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +6 -5
- package/src/sap/m/ListItemBase.js +2 -7
- 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 +4 -4
- package/src/sap/m/MenuButton.js +20 -2
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageBox.js +53 -35
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +22 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +3 -4
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +6 -18
- package/src/sap/m/MultiComboBox.js +46 -33
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +28 -3
- package/src/sap/m/NavContainer.js +66 -2
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/NumericInput.js +1 -1
- package/src/sap/m/ObjectAttribute.js +1 -1
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/OverflowToolbar.js +36 -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/PDFViewerRenderer.js +13 -5
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +2 -3
- package/src/sap/m/PlanningCalendarHeader.js +1 -1
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +2 -3
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +3 -4
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +19 -9
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +2 -2
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +2 -2
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +44 -2
- package/src/sap/m/SelectDialog.js +3 -1
- package/src/sap/m/SelectDialogBase.js +18 -8
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectionDetails.js +3 -3
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +2 -2
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +28 -29
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +22 -8
- package/src/sap/m/Slider.js +2 -2
- 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 +51 -18
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +1 -1
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +2 -2
- 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 +2 -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 +1 -1
- package/src/sap/m/TimePicker.js +10 -33
- package/src/sap/m/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +7 -5
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.js +5 -3
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +4 -2
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +1 -1
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/VariantManagement.js +4 -0
- 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/designtime/TimePicker.designtime.js +5 -0
- package/src/sap/m/inputUtils/ListHelpers.js +3 -1
- package/src/sap/m/inputUtils/typeAhead.js +10 -0
- package/src/sap/m/library.js +66 -3
- package/src/sap/m/messagebundle.properties +33 -7
- package/src/sap/m/messagebundle_ar.properties +20 -2
- package/src/sap/m/messagebundle_bg.properties +23 -5
- package/src/sap/m/messagebundle_ca.properties +20 -2
- package/src/sap/m/messagebundle_cs.properties +18 -0
- package/src/sap/m/messagebundle_cy.properties +18 -0
- package/src/sap/m/messagebundle_da.properties +18 -0
- package/src/sap/m/messagebundle_de.properties +23 -5
- package/src/sap/m/messagebundle_el.properties +22 -4
- package/src/sap/m/messagebundle_en.properties +20 -2
- package/src/sap/m/messagebundle_en_GB.properties +18 -0
- package/src/sap/m/messagebundle_en_US_sappsd.properties +19 -1
- package/src/sap/m/messagebundle_en_US_saprigi.properties +19 -1
- package/src/sap/m/messagebundle_en_US_saptrc.properties +19 -1
- package/src/sap/m/messagebundle_es.properties +20 -2
- package/src/sap/m/messagebundle_es_MX.properties +20 -2
- package/src/sap/m/messagebundle_et.properties +18 -0
- package/src/sap/m/messagebundle_fi.properties +18 -0
- package/src/sap/m/messagebundle_fr.properties +46 -28
- package/src/sap/m/messagebundle_fr_CA.properties +18 -0
- package/src/sap/m/messagebundle_hi.properties +27 -9
- package/src/sap/m/messagebundle_hr.properties +18 -0
- package/src/sap/m/messagebundle_hu.properties +18 -0
- package/src/sap/m/messagebundle_id.properties +20 -2
- package/src/sap/m/messagebundle_it.properties +24 -6
- package/src/sap/m/messagebundle_iw.properties +18 -0
- package/src/sap/m/messagebundle_ja.properties +18 -0
- package/src/sap/m/messagebundle_kk.properties +18 -0
- package/src/sap/m/messagebundle_ko.properties +19 -1
- package/src/sap/m/messagebundle_lt.properties +18 -0
- package/src/sap/m/messagebundle_lv.properties +20 -2
- package/src/sap/m/messagebundle_ms.properties +18 -0
- package/src/sap/m/messagebundle_nl.properties +18 -0
- package/src/sap/m/messagebundle_no.properties +21 -3
- package/src/sap/m/messagebundle_pl.properties +18 -0
- package/src/sap/m/messagebundle_pt.properties +20 -2
- package/src/sap/m/messagebundle_pt_PT.properties +18 -0
- package/src/sap/m/messagebundle_ro.properties +18 -0
- package/src/sap/m/messagebundle_ru.properties +18 -0
- package/src/sap/m/messagebundle_sh.properties +18 -0
- package/src/sap/m/messagebundle_sk.properties +18 -0
- package/src/sap/m/messagebundle_sl.properties +18 -0
- package/src/sap/m/messagebundle_sv.properties +18 -0
- package/src/sap/m/messagebundle_th.properties +22 -4
- package/src/sap/m/messagebundle_tr.properties +18 -0
- package/src/sap/m/messagebundle_uk.properties +18 -0
- package/src/sap/m/messagebundle_vi.properties +18 -0
- package/src/sap/m/messagebundle_zh_CN.properties +18 -0
- package/src/sap/m/messagebundle_zh_TW.properties +18 -0
- package/src/sap/m/p13n/AbstractContainer.js +2 -2
- package/src/sap/m/p13n/AbstractContainerItem.js +3 -2
- package/src/sap/m/p13n/BasePanel.js +28 -26
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +19 -13
- 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 +11 -8
- package/src/sap/m/p13n/Popup.js +8 -6
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +22 -7
- 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/enum/PersistenceMode.js +3 -0
- package/src/sap/m/p13n/enum/ProcessingStrategy.js +2 -1
- package/src/sap/m/p13n/handler/xConfigHandler.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 +1 -1
- package/src/sap/m/p13n/modules/xConfigAPI.js +4 -1
- package/src/sap/m/plugins/CellSelector.js +1 -1
- package/src/sap/m/plugins/ColumnResizer.js +1 -1
- package/src/sap/m/plugins/CopyProvider.js +6 -6
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/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 +1 -1
- package/src/sap/m/table/columnmenu/ActionItem.js +8 -3
- package/src/sap/m/table/columnmenu/Entry.js +1 -1
- package/src/sap/m/table/columnmenu/Item.js +2 -1
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +72 -77
- package/src/sap/m/table/columnmenu/MenuRenderer.js +1 -3
- package/src/sap/m/table/columnmenu/QuickAction.js +2 -2
- package/src/sap/m/table/columnmenu/QuickActionBase.js +2 -2
- 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 +3 -3
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +2 -2
- package/src/sap/m/themes/base/FeedListItem.less +1 -1
- package/src/sap/m/themes/base/GenericTile.less +94 -5
- package/src/sap/m/themes/base/InputBase.less +7 -1
- package/src/sap/m/themes/base/Label.less +1 -0
- package/src/sap/m/themes/base/MultiComboBox.less +6 -4
- package/src/sap/m/themes/base/ObjectStatus.less +26 -0
- package/src/sap/m/themes/base/SlideTile.less +4 -4
- package/src/sap/m/themes/base/SuggestionsPopover.less +14 -6
- package/src/sap/m/themes/base/Table.less +0 -10
- package/src/sap/m/themes/base/Text.less +1 -0
- package/src/sap/m/themes/base/Tokenizer.less +23 -0
- package/src/sap/m/themes/sap_hcb/ObjectStatus.less +26 -0
- package/src/sap/m/themes/sap_horizon/Label.less +10 -0
- package/src/sap/m/themes/sap_horizon/Text.less +10 -0
- package/src/sap/m/upload/UploadSet.js +1 -1
- package/src/sap/m/upload/UploadSetItem.js +1 -1
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
package/src/sap/m/DatePicker.js
CHANGED
|
@@ -9,8 +9,6 @@ sap.ui.define([
|
|
|
9
9
|
'sap/ui/thirdparty/jquery',
|
|
10
10
|
'sap/ui/Device',
|
|
11
11
|
"sap/ui/core/Element",
|
|
12
|
-
"sap/ui/core/format/TimezoneUtil",
|
|
13
|
-
"sap/ui/core/format/DateFormat",
|
|
14
12
|
'./InputBase',
|
|
15
13
|
'./DateTimeField',
|
|
16
14
|
'./Button',
|
|
@@ -34,6 +32,8 @@ sap.ui.define([
|
|
|
34
32
|
"sap/ui/core/LabelEnablement",
|
|
35
33
|
"sap/ui/unified/library",
|
|
36
34
|
"sap/ui/core/Configuration",
|
|
35
|
+
"sap/ui/unified/calendar/CalendarUtils",
|
|
36
|
+
'sap/ui/core/date/UI5Date',
|
|
37
37
|
"sap/ui/core/date/CalendarWeekNumbering",
|
|
38
38
|
"sap/ui/dom/jquery/cursorPos"
|
|
39
39
|
],
|
|
@@ -41,8 +41,6 @@ sap.ui.define([
|
|
|
41
41
|
jQuery,
|
|
42
42
|
Device,
|
|
43
43
|
Element,
|
|
44
|
-
TimezoneUtil,
|
|
45
|
-
DateFormat,
|
|
46
44
|
InputBase,
|
|
47
45
|
DateTimeField,
|
|
48
46
|
Button,
|
|
@@ -65,6 +63,8 @@ sap.ui.define([
|
|
|
65
63
|
LabelEnablement,
|
|
66
64
|
unifiedLibrary,
|
|
67
65
|
Configuration,
|
|
66
|
+
CalendarUtils,
|
|
67
|
+
UI5Date,
|
|
68
68
|
CalendarWeekNumbering
|
|
69
69
|
) {
|
|
70
70
|
"use strict";
|
|
@@ -154,7 +154,7 @@ sap.ui.define([
|
|
|
154
154
|
* the close event), or select Cancel.
|
|
155
155
|
*
|
|
156
156
|
* @extends sap.m.DateTimeField
|
|
157
|
-
* @version 1.
|
|
157
|
+
* @version 1.111.0
|
|
158
158
|
*
|
|
159
159
|
* @constructor
|
|
160
160
|
* @public
|
|
@@ -368,9 +368,9 @@ sap.ui.define([
|
|
|
368
368
|
|
|
369
369
|
this._bValid = true;
|
|
370
370
|
|
|
371
|
-
this._oMinDate =
|
|
371
|
+
this._oMinDate = UI5Date.getInstance(1, 0, 1); // set the date to minimum possible for that day
|
|
372
372
|
this._oMinDate.setFullYear(1); // otherwise year 1 will be converted to year 1901
|
|
373
|
-
this._oMaxDate =
|
|
373
|
+
this._oMaxDate = UI5Date.getInstance(9999, 11, 31, 23, 59, 59, 999); // set the date for the maximum possible for that day
|
|
374
374
|
|
|
375
375
|
var oIcon = this.addEndIcon({
|
|
376
376
|
id: this.getId() + "-icon",
|
|
@@ -707,7 +707,7 @@ sap.ui.define([
|
|
|
707
707
|
throw new Error("Date must be between 0001-01-01 and 9999-12-31; " + this);
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
-
this._oMinDate =
|
|
710
|
+
this._oMinDate = UI5Date.getInstance(oDate.getTime());
|
|
711
711
|
var oDateValue = this.getDateValue();
|
|
712
712
|
if (oDateValue && oDateValue.getTime() < oDate.getTime()) {
|
|
713
713
|
this._bValid = false;
|
|
@@ -715,7 +715,7 @@ sap.ui.define([
|
|
|
715
715
|
Log.warning("DateValue not in valid date range", this);
|
|
716
716
|
}
|
|
717
717
|
} else {
|
|
718
|
-
this._oMinDate =
|
|
718
|
+
this._oMinDate = UI5Date.getInstance(1, 0, 1);
|
|
719
719
|
this._oMinDate.setFullYear(1); // otherwise year 1 will be converted to year 1901
|
|
720
720
|
}
|
|
721
721
|
|
|
@@ -753,7 +753,7 @@ sap.ui.define([
|
|
|
753
753
|
throw new Error("Date must be between 0001-01-01 and 9999-12-31; " + this);
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
-
this._oMaxDate =
|
|
756
|
+
this._oMaxDate = UI5Date.getInstance(oDate.getTime());
|
|
757
757
|
var oDateValue = this.getDateValue();
|
|
758
758
|
if (oDateValue && oDateValue.getTime() > oDate.getTime()) {
|
|
759
759
|
this._bValid = false;
|
|
@@ -761,7 +761,7 @@ sap.ui.define([
|
|
|
761
761
|
Log.warning("DateValue not in valid date", this);
|
|
762
762
|
}
|
|
763
763
|
} else {
|
|
764
|
-
this._oMaxDate =
|
|
764
|
+
this._oMaxDate = UI5Date.getInstance(9999, 11, 31, 23, 59, 59, 999);
|
|
765
765
|
}
|
|
766
766
|
|
|
767
767
|
// re-render because order of parameter changes not clear -> check onBeforeRendering
|
|
@@ -787,10 +787,10 @@ sap.ui.define([
|
|
|
787
787
|
|
|
788
788
|
if (this._oMinDate.getTime() > this._oMaxDate.getTime()) {
|
|
789
789
|
Log.warning("minDate > MaxDate -> dates switched", this);
|
|
790
|
-
var oMaxDate =
|
|
791
|
-
var oMinDate =
|
|
792
|
-
this._oMinDate =
|
|
793
|
-
this._oMaxDate =
|
|
790
|
+
var oMaxDate = UI5Date.getInstance(this._oMinDate.getTime());
|
|
791
|
+
var oMinDate = UI5Date.getInstance(this._oMaxDate.getTime());
|
|
792
|
+
this._oMinDate = UI5Date.getInstance(oMinDate.getTime());
|
|
793
|
+
this._oMaxDate = UI5Date.getInstance(oMaxDate.getTime());
|
|
794
794
|
this.setProperty("minDate", oMinDate, true);
|
|
795
795
|
this.setProperty("maxDate", oMaxDate, true);
|
|
796
796
|
if (this._getCalendar()) {
|
|
@@ -1073,7 +1073,7 @@ sap.ui.define([
|
|
|
1073
1073
|
this._getCalendar().focusDate(oDate);
|
|
1074
1074
|
var oStartDate = this._oDateRange.getStartDate();
|
|
1075
1075
|
if ((!oStartDate && oDate) || (oStartDate && oDate && oStartDate.getTime() != oDate.getTime())) {
|
|
1076
|
-
this._oDateRange.setStartDate(
|
|
1076
|
+
this._oDateRange.setStartDate(UI5Date.getInstance(oDate.getTime()));
|
|
1077
1077
|
} else if (oStartDate && !oDate) {
|
|
1078
1078
|
this._oDateRange.setStartDate(undefined);
|
|
1079
1079
|
}
|
|
@@ -1352,32 +1352,19 @@ sap.ui.define([
|
|
|
1352
1352
|
};
|
|
1353
1353
|
|
|
1354
1354
|
DatePicker.prototype._fillDateRange = function(){
|
|
1355
|
-
var sFormattedDate;
|
|
1356
1355
|
var oDate = this.getDateValue();
|
|
1357
1356
|
|
|
1358
1357
|
if (oDate &&
|
|
1359
1358
|
oDate.getTime() >= this._oMinDate.getTime() &&
|
|
1360
1359
|
oDate.getTime() <= this._oMaxDate.getTime()) {
|
|
1361
1360
|
|
|
1362
|
-
|
|
1363
|
-
oDate,
|
|
1364
|
-
this._getTimezone(true)
|
|
1365
|
-
);
|
|
1366
|
-
oDate = this._getPickerParser().parse(sFormattedDate, TimezoneUtil.getLocalTimezone())[0];
|
|
1367
|
-
|
|
1368
|
-
this._getCalendar().focusDate(new Date(oDate.getTime()));
|
|
1361
|
+
this._getCalendar().focusDate(UI5Date.getInstance(oDate.getTime()));
|
|
1369
1362
|
if (!this._oDateRange.getStartDate() || this._oDateRange.getStartDate().getTime() != oDate.getTime()) {
|
|
1370
|
-
this._oDateRange.setStartDate(
|
|
1363
|
+
this._oDateRange.setStartDate(UI5Date.getInstance(oDate.getTime()));
|
|
1371
1364
|
}
|
|
1372
1365
|
} else {
|
|
1373
1366
|
var oInitialFocusedDateValue = this.getInitialFocusedDateValue();
|
|
1374
|
-
var oFocusDate = oInitialFocusedDateValue ? oInitialFocusedDateValue :
|
|
1375
|
-
|
|
1376
|
-
sFormattedDate = this._getPickerParser().format(
|
|
1377
|
-
oFocusDate,
|
|
1378
|
-
this._getTimezone(true)
|
|
1379
|
-
);
|
|
1380
|
-
oFocusDate = this._getPickerParser().parse(sFormattedDate, TimezoneUtil.getLocalTimezone())[0];
|
|
1367
|
+
var oFocusDate = oInitialFocusedDateValue ? oInitialFocusedDateValue : UI5Date.getInstance();
|
|
1381
1368
|
|
|
1382
1369
|
if (oFocusDate.getTime() < this._oMinDate.getTime()) {
|
|
1383
1370
|
oFocusDate = this._oMinDate;
|
|
@@ -1418,16 +1405,9 @@ sap.ui.define([
|
|
|
1418
1405
|
oDate = this._getSelectedDate(),
|
|
1419
1406
|
sValue = "";
|
|
1420
1407
|
|
|
1421
|
-
var sFormattedDate = this._getPickerParser().format(oDate, TimezoneUtil.getLocalTimezone());
|
|
1422
|
-
var oParts = this._getPickerParser().parse(
|
|
1423
|
-
sFormattedDate,
|
|
1424
|
-
this._getTimezone(true)
|
|
1425
|
-
);
|
|
1426
|
-
oDate = oParts && oParts[0];
|
|
1427
|
-
|
|
1428
1408
|
// do not use this.onChange() because output pattern will change date (e.g. only last 2 number of year -> 1966 -> 2066 )
|
|
1429
1409
|
if (!deepEqual(oDate, oDateOld)) {
|
|
1430
|
-
this.setDateValue(
|
|
1410
|
+
this.setDateValue(UI5Date.getInstance(oDate.getTime()));
|
|
1431
1411
|
// compare Dates because value can be the same if only 2 digits for year
|
|
1432
1412
|
sValue = this.getValue();
|
|
1433
1413
|
this.fireChangeEvent(sValue, {valid: true});
|
|
@@ -1552,8 +1532,8 @@ sap.ui.define([
|
|
|
1552
1532
|
sCalendarType = this.getDisplayFormatType();
|
|
1553
1533
|
}
|
|
1554
1534
|
|
|
1555
|
-
var oDate = UniversalDate.getInstance(
|
|
1556
|
-
oOldDate = UniversalDate.getInstance(
|
|
1535
|
+
var oDate = UniversalDate.getInstance(UI5Date.getInstance(oOldDate.getTime()), sCalendarType);
|
|
1536
|
+
oOldDate = UniversalDate.getInstance(UI5Date.getInstance(oOldDate.getTime()), sCalendarType);
|
|
1557
1537
|
|
|
1558
1538
|
switch (sUnit) {
|
|
1559
1539
|
case "day":
|
|
@@ -1589,7 +1569,7 @@ sap.ui.define([
|
|
|
1589
1569
|
}
|
|
1590
1570
|
|
|
1591
1571
|
if (!deepEqual(this.getDateValue(), oDate.getJSDate())) {
|
|
1592
|
-
this.setDateValue(
|
|
1572
|
+
this.setDateValue(UI5Date.getInstance(oDate.getTime()));
|
|
1593
1573
|
|
|
1594
1574
|
this._curpos = iCurpos;
|
|
1595
1575
|
this._$input.cursorPos(this._curpos);
|
|
@@ -1677,14 +1657,6 @@ sap.ui.define([
|
|
|
1677
1657
|
|
|
1678
1658
|
}
|
|
1679
1659
|
|
|
1680
|
-
DatePicker.prototype._getPickerParser = function() {
|
|
1681
|
-
if (!this._calendarParser) {
|
|
1682
|
-
this._calendarParser = DateFormat.getDateTimeWithTimezoneInstance({ showTimezone: false });
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
return this._calendarParser;
|
|
1686
|
-
};
|
|
1687
|
-
|
|
1688
1660
|
/**
|
|
1689
1661
|
* Fired when the input operation has finished and the value has changed.
|
|
1690
1662
|
*
|
|
@@ -11,7 +11,6 @@ sap.ui.define([
|
|
|
11
11
|
'./library',
|
|
12
12
|
'sap/ui/core/LocaleData',
|
|
13
13
|
'sap/ui/core/format/DateFormat',
|
|
14
|
-
'sap/ui/core/format/TimezoneUtil',
|
|
15
14
|
'sap/ui/core/date/UniversalDate',
|
|
16
15
|
'./DateRangeSelectionRenderer',
|
|
17
16
|
"sap/ui/unified/calendar/CustomMonthPicker",
|
|
@@ -20,7 +19,9 @@ sap.ui.define([
|
|
|
20
19
|
"sap/base/Log",
|
|
21
20
|
"sap/base/assert",
|
|
22
21
|
"sap/ui/core/Configuration",
|
|
23
|
-
"sap/ui/
|
|
22
|
+
"sap/ui/core/date/UI5Date",
|
|
23
|
+
// jQuery Plugin "cursorPos"
|
|
24
|
+
"sap/ui/dom/jquery/cursorPos"
|
|
24
25
|
],
|
|
25
26
|
function(
|
|
26
27
|
Device,
|
|
@@ -28,7 +29,6 @@ sap.ui.define([
|
|
|
28
29
|
library,
|
|
29
30
|
LocaleData,
|
|
30
31
|
DateFormat,
|
|
31
|
-
TimezoneUtil,
|
|
32
32
|
UniversalDate,
|
|
33
33
|
DateRangeSelectionRenderer,
|
|
34
34
|
CustomMonthPicker,
|
|
@@ -36,7 +36,8 @@ sap.ui.define([
|
|
|
36
36
|
deepEqual,
|
|
37
37
|
Log,
|
|
38
38
|
assert,
|
|
39
|
-
Configuration
|
|
39
|
+
Configuration,
|
|
40
|
+
UI5Date
|
|
40
41
|
) {
|
|
41
42
|
"use strict";
|
|
42
43
|
|
|
@@ -130,8 +131,8 @@ sap.ui.define([
|
|
|
130
131
|
* compact mode and provides a touch-friendly size in cozy mode.
|
|
131
132
|
*
|
|
132
133
|
* @extends sap.m.DatePicker
|
|
133
|
-
* @version 1.
|
|
134
|
-
* @version 1.
|
|
134
|
+
* @version 1.111.0
|
|
135
|
+
* @version 1.111.0
|
|
135
136
|
*
|
|
136
137
|
* @constructor
|
|
137
138
|
* @public
|
|
@@ -365,7 +366,7 @@ sap.ui.define([
|
|
|
365
366
|
* @private
|
|
366
367
|
*/
|
|
367
368
|
function _normalizeDateValue(vBindingDate) {
|
|
368
|
-
return (typeof vBindingDate === 'number') ?
|
|
369
|
+
return (typeof vBindingDate === 'number') ? UI5Date.getInstance(vBindingDate) : vBindingDate;
|
|
369
370
|
}
|
|
370
371
|
|
|
371
372
|
/**
|
|
@@ -410,6 +411,13 @@ sap.ui.define([
|
|
|
410
411
|
|
|
411
412
|
};
|
|
412
413
|
|
|
414
|
+
/**
|
|
415
|
+
* Sets the displayFormat of the DatePicker.
|
|
416
|
+
*
|
|
417
|
+
* @param {string} sDisplayFormat new value for <code>displayFormat</code>
|
|
418
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
419
|
+
* @public
|
|
420
|
+
*/
|
|
413
421
|
DateRangeSelection.prototype.setDisplayFormat = function(sDisplayFormat) {
|
|
414
422
|
|
|
415
423
|
// if displayFormat changes the value must be formatted again
|
|
@@ -493,6 +501,19 @@ sap.ui.define([
|
|
|
493
501
|
|
|
494
502
|
};
|
|
495
503
|
|
|
504
|
+
/**
|
|
505
|
+
* Getter for property <code>secondDateValue</code>.
|
|
506
|
+
*
|
|
507
|
+
* The end date of the range as JavaScript Date object. This is independent from any formatter.
|
|
508
|
+
*
|
|
509
|
+
* <b>Note:</b> If this property is used, the <code>value</code> property should not be changed from the caller.
|
|
510
|
+
*
|
|
511
|
+
* @returns {Date} the value of property <code>secondDateValue</code>
|
|
512
|
+
* @public
|
|
513
|
+
* @name sap.m.DateRangeSelection#getSecondDateValue
|
|
514
|
+
* @function
|
|
515
|
+
*/
|
|
516
|
+
|
|
496
517
|
/**
|
|
497
518
|
* Setter for property <code>secondDateValue</code>.
|
|
498
519
|
*
|
|
@@ -527,6 +548,11 @@ sap.ui.define([
|
|
|
527
548
|
return this;
|
|
528
549
|
};
|
|
529
550
|
|
|
551
|
+
/**
|
|
552
|
+
* Set minimum date that can be shown and selected in the <code>DatePicker</code>. This must be a JavaScript date object.
|
|
553
|
+
* @param {Date} oDate A JavaScript Date
|
|
554
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
555
|
+
*/
|
|
530
556
|
DateRangeSelection.prototype.setMinDate = function(oDate) {
|
|
531
557
|
|
|
532
558
|
DatePicker.prototype.setMinDate.apply(this, arguments);
|
|
@@ -542,6 +568,11 @@ sap.ui.define([
|
|
|
542
568
|
|
|
543
569
|
};
|
|
544
570
|
|
|
571
|
+
/**
|
|
572
|
+
* Set maximum date that can be shown and selected in the <code>DatePicker</code>. This must be a JavaScript date object.
|
|
573
|
+
* @param {Date} oDate A JavaScript Date
|
|
574
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
575
|
+
*/
|
|
545
576
|
DateRangeSelection.prototype.setMaxDate = function(oDate) {
|
|
546
577
|
|
|
547
578
|
DatePicker.prototype.setMaxDate.apply(this, arguments);
|
|
@@ -771,7 +802,7 @@ sap.ui.define([
|
|
|
771
802
|
var oStartDate = this.getDateValue();
|
|
772
803
|
if (oStartDate) {
|
|
773
804
|
if (!this._oDateRange.getStartDate() || this._oDateRange.getStartDate().getTime() !== oStartDate.getTime()) {
|
|
774
|
-
this._oDateRange.setStartDate(
|
|
805
|
+
this._oDateRange.setStartDate(UI5Date.getInstance(oStartDate.getTime()));
|
|
775
806
|
this._getCalendar().focusDate(oStartDate);
|
|
776
807
|
}
|
|
777
808
|
} else {
|
|
@@ -783,7 +814,7 @@ sap.ui.define([
|
|
|
783
814
|
var oEndDate = this.getSecondDateValue();
|
|
784
815
|
if (oEndDate) {
|
|
785
816
|
if (!this._oDateRange.getEndDate() || this._oDateRange.getEndDate().getTime() !== oEndDate.getTime()) {
|
|
786
|
-
this._oDateRange.setEndDate(
|
|
817
|
+
this._oDateRange.setEndDate(UI5Date.getInstance(oEndDate.getTime()));
|
|
787
818
|
this._getCalendar().focusDate(oEndDate);
|
|
788
819
|
}
|
|
789
820
|
} else {
|
|
@@ -833,19 +864,13 @@ sap.ui.define([
|
|
|
833
864
|
DatePicker.prototype._fillDateRange.apply(this, arguments);
|
|
834
865
|
|
|
835
866
|
var oEndDate = this.getSecondDateValue();
|
|
836
|
-
var sFormattedEndDate;
|
|
837
867
|
|
|
838
868
|
if (oEndDate &&
|
|
839
869
|
oEndDate.getTime() >= this._oMinDate.getTime() &&
|
|
840
870
|
oEndDate.getTime() <= this._oMaxDate.getTime()) {
|
|
841
871
|
if (!this._oDateRange.getEndDate() || this._oDateRange.getEndDate().getTime() !== oEndDate.getTime()) {
|
|
842
|
-
sFormattedEndDate = this._getPickerParser().format(
|
|
843
|
-
oEndDate,
|
|
844
|
-
Configuration.getTimezone()
|
|
845
|
-
);
|
|
846
|
-
oEndDate = this._getPickerParser().parse(sFormattedEndDate, TimezoneUtil.getLocalTimezone())[0];
|
|
847
872
|
|
|
848
|
-
this._oDateRange.setEndDate(
|
|
873
|
+
this._oDateRange.setEndDate(UI5Date.getInstance(oEndDate.getTime()));
|
|
849
874
|
}
|
|
850
875
|
} else {
|
|
851
876
|
if (this._oDateRange.getEndDate()) {
|
|
@@ -857,8 +882,6 @@ sap.ui.define([
|
|
|
857
882
|
|
|
858
883
|
DateRangeSelection.prototype._selectDate = function () {
|
|
859
884
|
var aSelectedDates = this._getCalendar().getSelectedDates();
|
|
860
|
-
var sFormattedDate, oParts;
|
|
861
|
-
var sTimezone = Configuration.getTimezone();
|
|
862
885
|
|
|
863
886
|
if (aSelectedDates.length > 0) {
|
|
864
887
|
var oDate1 = aSelectedDates[0].getStartDate();
|
|
@@ -871,17 +894,6 @@ sap.ui.define([
|
|
|
871
894
|
// the selected range includes all of the hours from the second date
|
|
872
895
|
oDate2.setHours(23, 59, 59, 999);
|
|
873
896
|
|
|
874
|
-
sFormattedDate = this._getPickerParser().format(oDate1, TimezoneUtil.getLocalTimezone());
|
|
875
|
-
oParts = this._getPickerParser().parse(sFormattedDate, sTimezone);
|
|
876
|
-
oDate1 = oParts && oParts[0];
|
|
877
|
-
|
|
878
|
-
sFormattedDate = this._getPickerParser().format(oDate2, TimezoneUtil.getLocalTimezone());
|
|
879
|
-
oParts = this._getPickerParser().parse(sFormattedDate, sTimezone);
|
|
880
|
-
oDate2 = oParts && oParts[0];
|
|
881
|
-
|
|
882
|
-
//the parser does not include milliseconds, so restore them
|
|
883
|
-
oDate2.setMilliseconds(999);
|
|
884
|
-
|
|
885
897
|
var sValue;
|
|
886
898
|
if (!deepEqual(oDate1, oDate1Old) || !deepEqual(oDate2, oDate2Old)) {
|
|
887
899
|
// compare Dates because value can be the same if only 2 digits for year
|
|
@@ -934,16 +946,13 @@ sap.ui.define([
|
|
|
934
946
|
|
|
935
947
|
DateRangeSelection.prototype._handleWeekSelect = function(oEvent){
|
|
936
948
|
var oSelectedDates = oEvent.getParameter("weekDays"),
|
|
937
|
-
oSelectedStartDate,
|
|
938
|
-
oSelectedEndDate;
|
|
949
|
+
oSelectedStartDate = oSelectedDates.getStartDate(),
|
|
950
|
+
oSelectedEndDate = oSelectedDates.getEndDate();
|
|
939
951
|
|
|
940
952
|
if (!oSelectedDates) {
|
|
941
953
|
return;
|
|
942
954
|
}
|
|
943
955
|
|
|
944
|
-
oSelectedStartDate = oSelectedDates.getStartDate();
|
|
945
|
-
oSelectedEndDate = oSelectedDates.getEndDate();
|
|
946
|
-
|
|
947
956
|
if (this.getShowFooter()) {
|
|
948
957
|
this._oPopup.getBeginButton().setEnabled(!!(oSelectedStartDate && oSelectedEndDate));
|
|
949
958
|
return;
|
|
@@ -1092,7 +1101,7 @@ sap.ui.define([
|
|
|
1092
1101
|
oDate = _getIncrementedDate.call(this, oFirstOldDate, iNumber, sUnit);
|
|
1093
1102
|
|
|
1094
1103
|
if (!deepEqual(this.getDateValue(), oDate.getJSDate())) {
|
|
1095
|
-
this.setDateValue(
|
|
1104
|
+
this.setDateValue(UI5Date.getInstance(oDate.getTime()));
|
|
1096
1105
|
this._curpos = iCurPos;
|
|
1097
1106
|
this._$input.cursorPos(this._curpos);
|
|
1098
1107
|
|
|
@@ -1102,7 +1111,7 @@ sap.ui.define([
|
|
|
1102
1111
|
oDate = _getIncrementedDate.call(this, oSecondOldDate, iNumber, sUnit);
|
|
1103
1112
|
|
|
1104
1113
|
if (!deepEqual(this.getSecondDateValue(), oDate.getJSDate())) {
|
|
1105
|
-
this.setSecondDateValue(
|
|
1114
|
+
this.setSecondDateValue(UI5Date.getInstance(oDate.getTime()));
|
|
1106
1115
|
this._curpos = iCurPos;
|
|
1107
1116
|
this._$input.cursorPos(this._curpos);
|
|
1108
1117
|
|
|
@@ -1111,14 +1120,6 @@ sap.ui.define([
|
|
|
1111
1120
|
}
|
|
1112
1121
|
};
|
|
1113
1122
|
|
|
1114
|
-
DateRangeSelection.prototype._getPickerParser = function() {
|
|
1115
|
-
if (!this._calendarParser) {
|
|
1116
|
-
this._calendarParser = DateFormat.getDateTimeWithTimezoneInstance({ showTimezone: false });
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
return this._calendarParser;
|
|
1120
|
-
};
|
|
1121
|
-
|
|
1122
1123
|
function _getIncrementedDate(oOldDate, iNumber, sUnit) {
|
|
1123
1124
|
// use UniversalDate to calculate new date based on used calendar
|
|
1124
1125
|
var oBinding = this.getBinding("value"),
|
|
@@ -1137,7 +1138,7 @@ sap.ui.define([
|
|
|
1137
1138
|
sCalendarType = this.getDisplayFormatType();
|
|
1138
1139
|
}
|
|
1139
1140
|
|
|
1140
|
-
oUTCDate = UniversalDate.getInstance(
|
|
1141
|
+
oUTCDate = UniversalDate.getInstance(UI5Date.getInstance(oOldDate.getTime()), sCalendarType);
|
|
1141
1142
|
iOldDateMonth = oUTCDate.getMonth();
|
|
1142
1143
|
|
|
1143
1144
|
switch (sUnit) {
|
|
@@ -20,6 +20,8 @@ sap.ui.define([
|
|
|
20
20
|
"sap/base/Log",
|
|
21
21
|
"sap/ui/thirdparty/jquery",
|
|
22
22
|
"sap/ui/core/Configuration",
|
|
23
|
+
'sap/ui/core/date/UI5Date',
|
|
24
|
+
'sap/ui/unified/calendar/CalendarUtils',
|
|
23
25
|
// jQuery Plugin "cursorPos"
|
|
24
26
|
"sap/ui/dom/jquery/cursorPos"
|
|
25
27
|
], function(
|
|
@@ -36,7 +38,9 @@ sap.ui.define([
|
|
|
36
38
|
deepEqual,
|
|
37
39
|
Log,
|
|
38
40
|
jQuery,
|
|
39
|
-
Configuration
|
|
41
|
+
Configuration,
|
|
42
|
+
UI5Date,
|
|
43
|
+
CalendarUtils
|
|
40
44
|
) {
|
|
41
45
|
"use strict";
|
|
42
46
|
|
|
@@ -61,7 +65,7 @@ sap.ui.define([
|
|
|
61
65
|
* @extends sap.m.InputBase
|
|
62
66
|
*
|
|
63
67
|
* @author SAP SE
|
|
64
|
-
* @version 1.
|
|
68
|
+
* @version 1.111.0
|
|
65
69
|
*
|
|
66
70
|
* @constructor
|
|
67
71
|
* @public
|
|
@@ -138,7 +142,6 @@ sap.ui.define([
|
|
|
138
142
|
});
|
|
139
143
|
|
|
140
144
|
DateTimeField.prototype.setValue = function (sValue) {
|
|
141
|
-
|
|
142
145
|
sValue = this.validateProperty("value", sValue); // to convert null and undefined to ""
|
|
143
146
|
|
|
144
147
|
var sOldValue = this.getValue();
|
|
@@ -380,14 +383,6 @@ sap.ui.define([
|
|
|
380
383
|
).getDatePattern(sPlaceholder);
|
|
381
384
|
};
|
|
382
385
|
|
|
383
|
-
DateTimeField.prototype._getTimezoneFormatter = function() {
|
|
384
|
-
if (!this._timezoneFormatter) {
|
|
385
|
-
this._timezoneFormatter = DateFormat.getDateTimeWithTimezoneInstance({ showTimezone: false });
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
return this._timezoneFormatter;
|
|
389
|
-
};
|
|
390
|
-
|
|
391
386
|
DateTimeField.prototype._parseValue = function (sValue, bDisplayFormat) {
|
|
392
387
|
var oBinding = this.getBinding("value"),
|
|
393
388
|
oBindingType = oBinding && oBinding.getType && oBinding.getType(),
|
|
@@ -396,8 +391,7 @@ sap.ui.define([
|
|
|
396
391
|
oFormatter = this._getFormatter(bDisplayFormat),
|
|
397
392
|
oFormatOptions,
|
|
398
393
|
oDateLocal,
|
|
399
|
-
oDate
|
|
400
|
-
sFormatted;
|
|
394
|
+
oDate;
|
|
401
395
|
|
|
402
396
|
if (this._isSupportedBindingType(oBindingType)) {
|
|
403
397
|
try {
|
|
@@ -410,7 +404,7 @@ sap.ui.define([
|
|
|
410
404
|
oFormatOptions = oBindingType.oFormatOptions;
|
|
411
405
|
if (oFormatOptions && oFormatOptions.source && oFormatOptions.source.pattern == "timestamp") {
|
|
412
406
|
// convert timestamp back to Date
|
|
413
|
-
oDate =
|
|
407
|
+
oDate = UI5Date.getInstance(oDate);
|
|
414
408
|
} else if (oFormatOptions && oFormatOptions.source && typeof oFormatOptions.source.pattern === "string") {
|
|
415
409
|
oDate = oBindingType.oInputFormat.parse(sValue);
|
|
416
410
|
}
|
|
@@ -420,10 +414,10 @@ sap.ui.define([
|
|
|
420
414
|
|
|
421
415
|
if (oDate && ((oBindingType.oFormatOptions && this._isFormatOptionsUTC(oBindingType.oFormatOptions)) || (oBindingType.oConstraints && oBindingType.oConstraints.isDateOnly))) {
|
|
422
416
|
// convert to local date because it was parsed as UTC date
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
Configuration.getTimezone())[0];
|
|
417
|
+
oDateLocal = UI5Date.getInstance(oDate.getUTCFullYear(), oDate.getUTCMonth(), oDate.getUTCDate(),
|
|
418
|
+
oDate.getUTCHours(), oDate.getUTCMinutes(), oDate.getUTCSeconds(), oDate.getUTCMilliseconds());
|
|
426
419
|
|
|
420
|
+
oDateLocal.setFullYear(oDate.getUTCFullYear());
|
|
427
421
|
oDate = oDateLocal;
|
|
428
422
|
}
|
|
429
423
|
return oDate;
|
|
@@ -441,15 +435,14 @@ sap.ui.define([
|
|
|
441
435
|
var oBinding = this.getBinding("value"),
|
|
442
436
|
oBindingType = oBinding && oBinding.getType && oBinding.getType(),
|
|
443
437
|
oFormatOptions,
|
|
444
|
-
oDateUTC
|
|
445
|
-
sFormatted;
|
|
438
|
+
oDateUTC;
|
|
446
439
|
|
|
447
440
|
if (this._isSupportedBindingType(oBindingType)) {
|
|
448
441
|
if ((oBindingType.oFormatOptions && oBindingType.oFormatOptions.UTC) || (oBindingType.oConstraints && oBindingType.oConstraints.isDateOnly)) {
|
|
449
442
|
// convert to UTC date because it will be formatted as UTC date
|
|
450
|
-
|
|
451
|
-
oDateUTC = this._getTimezoneFormatter().parse(sFormatted, "UTC")[ 0 ];
|
|
443
|
+
oDateUTC = CalendarUtils._createUTCDate(oDate, true);
|
|
452
444
|
|
|
445
|
+
oDateUTC.setUTCFullYear(oDate.getFullYear());
|
|
453
446
|
oDate = oDateUTC;
|
|
454
447
|
}
|
|
455
448
|
|