@openui5/sap.m 1.111.6 → 1.112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +2 -3
- package/src/sap/m/ActionTileContentRenderer.js +2 -3
- 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 +2 -2
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +3 -3
- package/src/sap/m/Carousel.js +1 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +2 -2
- 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 -2
- package/src/sap/m/ComboBoxBase.js +1 -2
- 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 +4 -2
- package/src/sap/m/DatePickerRenderer.js +5 -5
- package/src/sap/m/DateRangeSelection.js +5 -5
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeFieldRenderer.js +13 -0
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +1 -1
- package/src/sap/m/DateTimePickerRenderer.js +4 -4
- package/src/sap/m/Dialog.js +44 -3
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +4 -2
- package/src/sap/m/DynamicDateFormat.js +6 -30
- package/src/sap/m/DynamicDateOption.js +18 -38
- package/src/sap/m/DynamicDateRange.js +9 -43
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +1 -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 +4 -49
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +1 -1
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/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 +1 -1
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +1 -1
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +21 -2
- 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 +4 -28
- package/src/sap/m/InputBase.js +1 -1
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +2 -2
- package/src/sap/m/LabelRenderer.js +0 -2
- 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/LinkRenderer.js +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +1 -1
- package/src/sap/m/ListItemBase.js +1 -1
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +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 +1 -1
- package/src/sap/m/MessagePage.js +2 -1
- package/src/sap/m/MessagePopover.js +32 -2
- 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 +3 -1
- package/src/sap/m/MultiComboBox.js +2 -3
- 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 +23 -2
- 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 +2 -2
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectNumberRenderer.js +1 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/ObjectStatusRenderer.js +1 -1
- package/src/sap/m/OverflowToolbar.js +10 -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/OverflowToolbarRenderer.js +3 -0
- 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 +62 -5
- 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/PanelRenderer.js +17 -6
- package/src/sap/m/PlanningCalendar.js +121 -119
- package/src/sap/m/PlanningCalendarHeader.js +7 -5
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +1 -1
- package/src/sap/m/PopoverRenderer.js +5 -1
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +1 -1
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +1 -1
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SearchFieldRenderer.js +6 -1
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +10 -3
- 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/SelectRenderer.js +5 -2
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +17 -15
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +51 -68
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +15 -12
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +18 -16
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +6 -4
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +1 -1
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +1 -1
- package/src/sap/m/StandardDynamicDateOption.js +5 -13
- 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 +2 -2
- 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/TabContainerRenderer.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 +6 -8
- 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 +2 -3
- package/src/sap/m/TimePicker.js +2 -2
- package/src/sap/m/TimePickerClock.js +5 -6
- package/src/sap/m/TimePickerClocks.js +1 -1
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.js +1 -1
- package/src/sap/m/TimePickerRenderer.js +9 -10
- 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/TitleRenderer.js +1 -5
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +4 -4
- package/src/sap/m/Toolbar.js +89 -5
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarRenderer.js +26 -26
- 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 +149 -39
- 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 +3 -1
- package/src/sap/m/designtime/Panel.designtime.js +1 -1
- package/src/sap/m/library.js +3 -3
- package/src/sap/m/messagebundle.properties +12 -0
- package/src/sap/m/messagebundle_ar.properties +16 -4
- package/src/sap/m/messagebundle_bg.properties +21 -9
- package/src/sap/m/messagebundle_ca.properties +16 -4
- package/src/sap/m/messagebundle_cs.properties +16 -4
- package/src/sap/m/messagebundle_cy.properties +16 -4
- package/src/sap/m/messagebundle_da.properties +16 -4
- package/src/sap/m/messagebundle_de.properties +16 -4
- package/src/sap/m/messagebundle_el.properties +16 -4
- package/src/sap/m/messagebundle_en.properties +13 -1
- package/src/sap/m/messagebundle_en_GB.properties +13 -1
- package/src/sap/m/messagebundle_en_US_sappsd.properties +8 -0
- package/src/sap/m/messagebundle_en_US_saprigi.properties +12 -0
- package/src/sap/m/messagebundle_en_US_saptrc.properties +12 -0
- package/src/sap/m/messagebundle_es.properties +16 -4
- package/src/sap/m/messagebundle_es_MX.properties +16 -4
- package/src/sap/m/messagebundle_et.properties +16 -4
- package/src/sap/m/messagebundle_fi.properties +16 -4
- package/src/sap/m/messagebundle_fr.properties +16 -4
- package/src/sap/m/messagebundle_fr_CA.properties +16 -4
- package/src/sap/m/messagebundle_hi.properties +16 -4
- package/src/sap/m/messagebundle_hr.properties +16 -4
- package/src/sap/m/messagebundle_hu.properties +17 -5
- package/src/sap/m/messagebundle_id.properties +17 -5
- package/src/sap/m/messagebundle_it.properties +16 -4
- package/src/sap/m/messagebundle_iw.properties +16 -4
- package/src/sap/m/messagebundle_ja.properties +16 -4
- package/src/sap/m/messagebundle_kk.properties +16 -4
- package/src/sap/m/messagebundle_ko.properties +17 -5
- package/src/sap/m/messagebundle_lt.properties +16 -4
- package/src/sap/m/messagebundle_lv.properties +16 -4
- package/src/sap/m/messagebundle_ms.properties +16 -4
- package/src/sap/m/messagebundle_nl.properties +16 -4
- package/src/sap/m/messagebundle_no.properties +16 -4
- package/src/sap/m/messagebundle_pl.properties +16 -4
- package/src/sap/m/messagebundle_pt.properties +16 -4
- package/src/sap/m/messagebundle_pt_PT.properties +16 -4
- package/src/sap/m/messagebundle_ro.properties +16 -4
- package/src/sap/m/messagebundle_ru.properties +16 -4
- package/src/sap/m/messagebundle_sh.properties +16 -4
- package/src/sap/m/messagebundle_sk.properties +16 -4
- package/src/sap/m/messagebundle_sl.properties +16 -4
- package/src/sap/m/messagebundle_sv.properties +16 -4
- package/src/sap/m/messagebundle_th.properties +16 -4
- package/src/sap/m/messagebundle_tr.properties +16 -4
- package/src/sap/m/messagebundle_uk.properties +16 -4
- package/src/sap/m/messagebundle_vi.properties +16 -4
- package/src/sap/m/messagebundle_zh_CN.properties +22 -10
- package/src/sap/m/messagebundle_zh_TW.properties +19 -7
- 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 +28 -1
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +3 -21
- package/src/sap/m/p13n/FlexUtil.js +27 -34
- 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 +2 -1
- package/src/sap/m/p13n/Popup.js +9 -4
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +150 -76
- 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/handler/xConfigHandler.js +5 -5
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +4 -3
- package/src/sap/m/p13n/modification/LocalStorageModificationHandler.js +7 -6
- package/src/sap/m/p13n/modification/ModificationHandler.js +10 -57
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +2 -2
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +2 -2
- package/src/sap/m/p13n/modules/UIManager.js +2 -2
- package/src/sap/m/plugins/CellSelector.js +1 -1
- package/src/sap/m/plugins/ColumnResizer.js +2 -2
- package/src/sap/m/plugins/CopyProvider.js +1 -1
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/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 +67 -5
- 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 +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 +22 -20
- package/src/sap/m/table/columnmenu/MenuRenderer.js +7 -0
- 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 +15 -0
- package/src/sap/m/themes/base/IconTabBar.less +1 -2
- package/src/sap/m/themes/base/ObjectAttribute.less +1 -0
- package/src/sap/m/themes/base/ObjectNumber.less +6 -0
- package/src/sap/m/themes/base/ObjectStatus.less +7 -26
- package/src/sap/m/themes/base/Title.less +1 -1
- package/src/sap/m/themes/base/Toolbar.less +6 -3
- package/src/sap/m/themes/sap_hcb/ObjectStatus.less +0 -26
- package/src/sap/m/upload/UploadSet.js +4 -7
- package/src/sap/m/upload/UploadSetItem.js +1 -1
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/themes/sap_horizon/Label.less +0 -10
- package/src/sap/m/themes/sap_horizon/Text.less +0 -10
|
@@ -35,6 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
'sap/ui/core/date/CalendarWeekNumbering',
|
|
36
36
|
'sap/ui/core/date/CalendarUtils',
|
|
37
37
|
'sap/ui/core/Locale',
|
|
38
|
+
"sap/ui/core/date/UI5Date",
|
|
38
39
|
'sap/m/Toolbar',
|
|
39
40
|
'sap/m/Table',
|
|
40
41
|
'sap/m/Column',
|
|
@@ -81,6 +82,7 @@ sap.ui.define([
|
|
|
81
82
|
CalendarWeekNumbering,
|
|
82
83
|
CalendarDateUtils,
|
|
83
84
|
Locale,
|
|
85
|
+
UI5Date,
|
|
84
86
|
Toolbar,
|
|
85
87
|
Table,
|
|
86
88
|
Column,
|
|
@@ -193,7 +195,7 @@ sap.ui.define([
|
|
|
193
195
|
* {@link sap.m.PlanningCalendarView PlanningCalendarView}'s properties.
|
|
194
196
|
*
|
|
195
197
|
* @extends sap.ui.core.Control
|
|
196
|
-
* @version 1.
|
|
198
|
+
* @version 1.112.1
|
|
197
199
|
*
|
|
198
200
|
* @constructor
|
|
199
201
|
* @public
|
|
@@ -793,7 +795,7 @@ sap.ui.define([
|
|
|
793
795
|
oTable.getStickyFocusOffset = getStickyFocusOffset.bind(this);
|
|
794
796
|
this.setAggregation("table", oTable, true);
|
|
795
797
|
|
|
796
|
-
this.setStartDate(
|
|
798
|
+
this.setStartDate(UI5Date.getInstance());
|
|
797
799
|
|
|
798
800
|
this._resizeProxy = handleResize.bind(this);
|
|
799
801
|
this._fnCustomSortedAppointments = undefined; //transfers a custom appointments sorter function to the CalendarRow
|
|
@@ -871,7 +873,7 @@ sap.ui.define([
|
|
|
871
873
|
};
|
|
872
874
|
|
|
873
875
|
PlanningCalendar.prototype._updateHeader = function () {
|
|
874
|
-
this._getHeader().setProperty("_primaryCalendarType", this.
|
|
876
|
+
this._getHeader().setProperty("_primaryCalendarType", this.getPrimaryCalendarType());
|
|
875
877
|
if (this._getSecondaryCalendarType()) {
|
|
876
878
|
this.setShowDayNamesLine(true);
|
|
877
879
|
this._getHeader().setProperty("_secondaryCalendarType", this.getSecondaryCalendarType());
|
|
@@ -960,9 +962,9 @@ sap.ui.define([
|
|
|
960
962
|
*/
|
|
961
963
|
PlanningCalendar.prototype._applyArrowsLogic = function(bBackwards) {
|
|
962
964
|
if (bBackwards) {
|
|
963
|
-
this._dateNav.previous(this.
|
|
965
|
+
this._dateNav.previous(this.getPrimaryCalendarType());
|
|
964
966
|
} else {
|
|
965
|
-
this._dateNav.next(this.
|
|
967
|
+
this._dateNav.next(this.getPrimaryCalendarType());
|
|
966
968
|
}
|
|
967
969
|
|
|
968
970
|
if (this.getMinDate() && this._dateNav.getStart().getTime() <= this.getMinDate().getTime()) {
|
|
@@ -1013,7 +1015,7 @@ sap.ui.define([
|
|
|
1013
1015
|
|
|
1014
1016
|
switch (sViewType) {
|
|
1015
1017
|
case CalendarIntervalType.Hour:
|
|
1016
|
-
oDateFormat = DateFormat.getDateInstance({format: "yMMMMd", calendarType: this.
|
|
1018
|
+
oDateFormat = DateFormat.getDateInstance({format: "yMMMMd", calendarType: this.getPrimaryCalendarType()});
|
|
1017
1019
|
sBeginningResult = oDateFormat.format(oStartDate);
|
|
1018
1020
|
if (oStartDate.getDate() !== oEndDate.getDate()) {
|
|
1019
1021
|
sEndResult = oDateFormat.format(oEndDate);
|
|
@@ -1039,7 +1041,7 @@ sap.ui.define([
|
|
|
1039
1041
|
var iEndingParameter = this._getRelativeInfo().iIntervalSize === 1 ? iBeginning + iEnding : iBeginning + iEnding - 1;
|
|
1040
1042
|
sEndResult = fnIntervalLabelFormatter ? fnIntervalLabelFormatter(iEndingParameter) : iBeginning + iEnding;
|
|
1041
1043
|
} else {
|
|
1042
|
-
oDateFormat = DateFormat.getDateInstance({ format: "yMMMMd", calendarType: this.
|
|
1044
|
+
oDateFormat = DateFormat.getDateInstance({ format: "yMMMMd", calendarType: this.getPrimaryCalendarType() });
|
|
1043
1045
|
sBeginningResult = oDateFormat.format(oStartDate);
|
|
1044
1046
|
sEndResult = oDateFormat.format(oEndDate);
|
|
1045
1047
|
if (this._getSecondaryCalendarType()) {
|
|
@@ -1053,7 +1055,7 @@ sap.ui.define([
|
|
|
1053
1055
|
|
|
1054
1056
|
case CalendarIntervalType.OneMonth:
|
|
1055
1057
|
case "OneMonth":
|
|
1056
|
-
oDateFormat = DateFormat.getDateInstance({format: "yMMMM", calendarType: this.
|
|
1058
|
+
oDateFormat = DateFormat.getDateInstance({format: "yMMMM", calendarType: this.getPrimaryCalendarType()});
|
|
1057
1059
|
sBeginningResult = oDateFormat.format(oStartDate);
|
|
1058
1060
|
if (this._getSecondaryCalendarType()) {
|
|
1059
1061
|
oDateFormatInSecType = DateFormat.getDateInstance({format: "yMMMM", calendarType: this.getSecondaryCalendarType()});
|
|
@@ -1062,7 +1064,7 @@ sap.ui.define([
|
|
|
1062
1064
|
break;
|
|
1063
1065
|
|
|
1064
1066
|
case CalendarIntervalType.Month:
|
|
1065
|
-
oDateFormat = DateFormat.getDateInstance({format: "y", calendarType: this.
|
|
1067
|
+
oDateFormat = DateFormat.getDateInstance({format: "y", calendarType: this.getPrimaryCalendarType()});
|
|
1066
1068
|
sBeginningResult = oDateFormat.format(oStartDate);
|
|
1067
1069
|
|
|
1068
1070
|
if (this._getSecondaryCalendarType()) {
|
|
@@ -1112,10 +1114,6 @@ sap.ui.define([
|
|
|
1112
1114
|
return { primaryType: sResult, secondaryType: sResultInSecType };
|
|
1113
1115
|
};
|
|
1114
1116
|
|
|
1115
|
-
PlanningCalendar.prototype._getPrimaryCalendarType = function(){
|
|
1116
|
-
return this.getProperty("primaryCalendarType") || Configuration.getCalendarType();
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
1117
|
/**
|
|
1120
1118
|
* Calculates the first and the last date of the range to be displayed. The size of the range depends on the
|
|
1121
1119
|
* currently selected view.
|
|
@@ -1123,8 +1121,8 @@ sap.ui.define([
|
|
|
1123
1121
|
* @private
|
|
1124
1122
|
*/
|
|
1125
1123
|
PlanningCalendar.prototype._getFirstAndLastRangeDate = function () {
|
|
1126
|
-
var oUniStartDate = CalendarUtils._createUniversalUTCDate(this.getStartDate(), this.
|
|
1127
|
-
oUniEndDate = CalendarUtils._createUniversalUTCDate(this._dateNav.getEnd(), this.
|
|
1124
|
+
var oUniStartDate = CalendarUtils._createUniversalUTCDate(this.getStartDate(), this.getPrimaryCalendarType(), true),
|
|
1125
|
+
oUniEndDate = CalendarUtils._createUniversalUTCDate(this._dateNav.getEnd(), this.getPrimaryCalendarType(), true);
|
|
1128
1126
|
|
|
1129
1127
|
return {
|
|
1130
1128
|
oStartDate: oUniStartDate,
|
|
@@ -1189,7 +1187,7 @@ sap.ui.define([
|
|
|
1189
1187
|
* @public
|
|
1190
1188
|
*/
|
|
1191
1189
|
PlanningCalendar.prototype.getEndDate = function () {
|
|
1192
|
-
return this._dateNav.getEnd(this.
|
|
1190
|
+
return this._dateNav.getEnd(this.getPrimaryCalendarType());
|
|
1193
1191
|
};
|
|
1194
1192
|
|
|
1195
1193
|
/**
|
|
@@ -1202,7 +1200,7 @@ sap.ui.define([
|
|
|
1202
1200
|
if ((sViewKey === CalendarIntervalType.OneMonth || sViewKey === "OneMonth") && this._iSize < 2) {
|
|
1203
1201
|
var oFirstVisibleDate = CalendarUtils.getFirstDateOfWeek(this.getStartDate()),
|
|
1204
1202
|
oFirstDateInLastWeek = CalendarUtils.getFirstDateOfWeek(this._dateNav.getEnd()),
|
|
1205
|
-
oLastVisibleDate =
|
|
1203
|
+
oLastVisibleDate = UI5Date.getInstance(oFirstDateInLastWeek.getTime());
|
|
1206
1204
|
|
|
1207
1205
|
oLastVisibleDate.setDate(oLastVisibleDate.getDate() + 6);
|
|
1208
1206
|
|
|
@@ -1234,7 +1232,7 @@ sap.ui.define([
|
|
|
1234
1232
|
return;
|
|
1235
1233
|
}
|
|
1236
1234
|
|
|
1237
|
-
this._oTodayButton.setEnabled(!this._dateMatchesVisibleRange(
|
|
1235
|
+
this._oTodayButton.setEnabled(!this._dateMatchesVisibleRange(UI5Date.getInstance(), this.getViewKey()));
|
|
1238
1236
|
};
|
|
1239
1237
|
|
|
1240
1238
|
/**
|
|
@@ -1419,10 +1417,10 @@ sap.ui.define([
|
|
|
1419
1417
|
|
|
1420
1418
|
if (!oDate) {
|
|
1421
1419
|
//set default value
|
|
1422
|
-
oStartDate =
|
|
1420
|
+
oStartDate = UI5Date.getInstance();
|
|
1423
1421
|
} else {
|
|
1424
1422
|
CalendarUtils._checkJSDateObject(oDate);
|
|
1425
|
-
oStartDate =
|
|
1423
|
+
oStartDate = UI5Date.getInstance(oDate.getTime());
|
|
1426
1424
|
}
|
|
1427
1425
|
|
|
1428
1426
|
oStartDate = this._shiftStartDate(oStartDate);
|
|
@@ -1442,15 +1440,15 @@ sap.ui.define([
|
|
|
1442
1440
|
var oMinDate = this.getMinDate();
|
|
1443
1441
|
if (oMinDate && oMinDate.getTime() > oStartDate.getTime()) {
|
|
1444
1442
|
Log.warning("StartDate < minDate -> StartDate set to minDate", this);
|
|
1445
|
-
oStartDate =
|
|
1443
|
+
oStartDate = UI5Date.getInstance(oMinDate.getTime());
|
|
1446
1444
|
} else {
|
|
1447
1445
|
var oMaxDate = this.getMaxDate();
|
|
1448
1446
|
if (oMaxDate && oMaxDate.getTime() < oStartDate.getTime()) {
|
|
1449
1447
|
Log.warning("StartDate > maxDate -> StartDate set to minDate", this);
|
|
1450
1448
|
if (oMinDate) {
|
|
1451
|
-
oStartDate =
|
|
1449
|
+
oStartDate = UI5Date.getInstance(oMinDate.getTime());
|
|
1452
1450
|
} else {
|
|
1453
|
-
oStartDate =
|
|
1451
|
+
oStartDate = UI5Date.getInstance(1, 0, 1);
|
|
1454
1452
|
oStartDate.setFullYear(1);
|
|
1455
1453
|
}
|
|
1456
1454
|
}
|
|
@@ -1463,7 +1461,7 @@ sap.ui.define([
|
|
|
1463
1461
|
|
|
1464
1462
|
INTERVAL_CTR_REFERENCES.forEach(function (sControlRef) {
|
|
1465
1463
|
if (this[sControlRef]) {
|
|
1466
|
-
this[sControlRef].setStartDate(
|
|
1464
|
+
this[sControlRef].setStartDate(UI5Date.getInstance(oStartDate.getTime())); // use new date object
|
|
1467
1465
|
}
|
|
1468
1466
|
}, this);
|
|
1469
1467
|
|
|
@@ -1472,7 +1470,7 @@ sap.ui.define([
|
|
|
1472
1470
|
if ((this.getViewKey() === PlanningCalendarBuiltInView.OneMonth || this.getViewKey() === "OneMonth") && this._oOneMonthsRow.getMode() < 2 && this._oOneMonthsRow.getSelectedDates().length) {
|
|
1473
1471
|
this._setRowsStartDate(this._oOneMonthsRow.getSelectedDates()[0].getStartDate());
|
|
1474
1472
|
} else {
|
|
1475
|
-
this._setRowsStartDate(
|
|
1473
|
+
this._setRowsStartDate(UI5Date.getInstance(oStartDate.getTime()));
|
|
1476
1474
|
}
|
|
1477
1475
|
|
|
1478
1476
|
if (this.getViewKey() === PlanningCalendarBuiltInView.Week || this.getViewKey() === PlanningCalendarBuiltInView.OneMonth || this.getViewKey() === "OneMonth") {
|
|
@@ -1523,10 +1521,14 @@ sap.ui.define([
|
|
|
1523
1521
|
};
|
|
1524
1522
|
|
|
1525
1523
|
PlanningCalendar.prototype._getSecondaryCalendarType = function() {
|
|
1526
|
-
var sSecondaryCalendarType
|
|
1524
|
+
var sSecondaryCalendarType;
|
|
1525
|
+
|
|
1526
|
+
if (this._bSecondaryCalendarTypeSet) {
|
|
1527
|
+
sSecondaryCalendarType = this.getSecondaryCalendarType();
|
|
1527
1528
|
|
|
1528
|
-
|
|
1529
|
-
|
|
1529
|
+
if (sSecondaryCalendarType === this.getPrimaryCalendarType()) {
|
|
1530
|
+
sSecondaryCalendarType = undefined;
|
|
1531
|
+
}
|
|
1530
1532
|
}
|
|
1531
1533
|
|
|
1532
1534
|
return sSecondaryCalendarType;
|
|
@@ -1540,7 +1542,7 @@ sap.ui.define([
|
|
|
1540
1542
|
*/
|
|
1541
1543
|
PlanningCalendar.prototype.setSecondaryCalendarType = function (sSecondaryCalendarType) {
|
|
1542
1544
|
this.setProperty("secondaryCalendarType", sSecondaryCalendarType);
|
|
1543
|
-
|
|
1545
|
+
this._bSecondaryCalendarTypeSet = true;
|
|
1544
1546
|
if (this._getHeader()) {
|
|
1545
1547
|
this._getHeader().setProperty("_secondaryCalendarType", sSecondaryCalendarType);
|
|
1546
1548
|
}
|
|
@@ -1581,13 +1583,13 @@ sap.ui.define([
|
|
|
1581
1583
|
this.setProperty("minDate", oDate, true);
|
|
1582
1584
|
this._bNoStartDateChange = true; // set the start date after all calendars are updated
|
|
1583
1585
|
|
|
1584
|
-
oHeader.getAggregation("_calendarPicker").setMinDate(
|
|
1585
|
-
oHeader.getAggregation("_monthPicker").setMinDate(
|
|
1586
|
-
oHeader.getAggregation("_yearPicker").setMinDate(
|
|
1586
|
+
oHeader.getAggregation("_calendarPicker").setMinDate(UI5Date.getInstance(oDate.getTime()));
|
|
1587
|
+
oHeader.getAggregation("_monthPicker").setMinDate(UI5Date.getInstance(oDate.getTime()));
|
|
1588
|
+
oHeader.getAggregation("_yearPicker").setMinDate(UI5Date.getInstance(oDate.getTime()));
|
|
1587
1589
|
|
|
1588
1590
|
if (oMaxDate && oMaxDate.getTime() < oDate.getTime()) {
|
|
1589
1591
|
Log.warning("minDate > maxDate -> maxDate set to end of the month", this);
|
|
1590
|
-
oMaxDate =
|
|
1592
|
+
oMaxDate = UI5Date.getInstance(oDate.getTime());
|
|
1591
1593
|
oMaxDate.setMonth(oMaxDate.getMonth() + 1, 0);
|
|
1592
1594
|
oMaxDate.setHours(23);
|
|
1593
1595
|
oMaxDate.setMinutes(59);
|
|
@@ -1600,7 +1602,7 @@ sap.ui.define([
|
|
|
1600
1602
|
var oStartDate = this.getStartDate();
|
|
1601
1603
|
if (oStartDate && oStartDate.getTime() < oDate.getTime()) {
|
|
1602
1604
|
Log.warning("StartDate < minDate -> StartDate set to minDate", this);
|
|
1603
|
-
oStartDate =
|
|
1605
|
+
oStartDate = UI5Date.getInstance(oDate.getTime());
|
|
1604
1606
|
this.setStartDate(oStartDate);
|
|
1605
1607
|
oHeader.updatePickerText(this._formatPickerText());
|
|
1606
1608
|
}
|
|
@@ -1611,7 +1613,7 @@ sap.ui.define([
|
|
|
1611
1613
|
oHeader.getAggregation("_yearPicker").setMinDate();
|
|
1612
1614
|
}
|
|
1613
1615
|
|
|
1614
|
-
var oToday =
|
|
1616
|
+
var oToday = UI5Date.getInstance();
|
|
1615
1617
|
if (oDate && oToday.getTime() < oDate.getTime()) {
|
|
1616
1618
|
this._oTodayButton.setVisible(false);
|
|
1617
1619
|
} else if (!oMaxDate || oToday.getTime() < oMaxDate.getTime()) {
|
|
@@ -1640,13 +1642,13 @@ sap.ui.define([
|
|
|
1640
1642
|
this.setProperty("maxDate", oDate, true);
|
|
1641
1643
|
this._bNoStartDateChange = true; // set the start date after all calendars are updated
|
|
1642
1644
|
|
|
1643
|
-
oHeader.getAggregation("_calendarPicker").setMaxDate(
|
|
1644
|
-
oHeader.getAggregation("_monthPicker").setMaxDate(
|
|
1645
|
-
oHeader.getAggregation("_yearPicker").setMaxDate(
|
|
1645
|
+
oHeader.getAggregation("_calendarPicker").setMaxDate(UI5Date.getInstance(oDate.getTime()));
|
|
1646
|
+
oHeader.getAggregation("_monthPicker").setMaxDate(UI5Date.getInstance(oDate.getTime()));
|
|
1647
|
+
oHeader.getAggregation("_yearPicker").setMaxDate(UI5Date.getInstance(oDate.getTime()));
|
|
1646
1648
|
|
|
1647
1649
|
if (oMinDate && oMinDate.getTime() > oDate.getTime()) {
|
|
1648
1650
|
Log.warning("maxDate < minDate -> maxDate set to begin of the month", this);
|
|
1649
|
-
oMinDate =
|
|
1651
|
+
oMinDate = UI5Date.getInstance(oDate.getTime());
|
|
1650
1652
|
oMinDate.setDate(1);
|
|
1651
1653
|
oMinDate.setHours(0);
|
|
1652
1654
|
oMinDate.setMinutes(0);
|
|
@@ -1660,9 +1662,9 @@ sap.ui.define([
|
|
|
1660
1662
|
if (oStartDate && oStartDate.getTime() > oDate.getTime()) {
|
|
1661
1663
|
Log.warning("StartDate > maxDate -> StartDate set to minDate", this);
|
|
1662
1664
|
if (oMinDate) {
|
|
1663
|
-
oStartDate =
|
|
1665
|
+
oStartDate = UI5Date.getInstance(oMinDate.getTime());
|
|
1664
1666
|
} else {
|
|
1665
|
-
oStartDate =
|
|
1667
|
+
oStartDate = UI5Date.getInstance(1, 0, 1);
|
|
1666
1668
|
oStartDate.setFullYear(1);
|
|
1667
1669
|
}
|
|
1668
1670
|
this.setStartDate(oStartDate);
|
|
@@ -1676,7 +1678,7 @@ sap.ui.define([
|
|
|
1676
1678
|
oHeader.getAggregation("_yearPicker").setMaxDate();
|
|
1677
1679
|
}
|
|
1678
1680
|
|
|
1679
|
-
var oToday =
|
|
1681
|
+
var oToday = UI5Date.getInstance();
|
|
1680
1682
|
if (oDate && oToday.getTime() > oDate.getTime()) {
|
|
1681
1683
|
this._oTodayButton.setVisible(false);
|
|
1682
1684
|
} else if (!oMinDate || oToday.getTime() > oMinDate.getTime()) {
|
|
@@ -1761,7 +1763,7 @@ sap.ui.define([
|
|
|
1761
1763
|
case CalendarIntervalType.Hour:
|
|
1762
1764
|
if (!this._oTimesRow) {
|
|
1763
1765
|
this._oTimesRow = new TimesRow(this.getId() + "-TimesRow", {
|
|
1764
|
-
startDate:
|
|
1766
|
+
startDate: UI5Date.getInstance(oStartDate.getTime()), // use new date object
|
|
1765
1767
|
items: iIntervals,
|
|
1766
1768
|
legend: this.getLegend()
|
|
1767
1769
|
});
|
|
@@ -1796,7 +1798,7 @@ sap.ui.define([
|
|
|
1796
1798
|
oInterval = this[oIntervalMetadata.sInstanceName];
|
|
1797
1799
|
if (!oInterval) {
|
|
1798
1800
|
oInterval = new oIntervalMetadata.oClass(this.getId() + oIntervalMetadata.sIdSuffix, {
|
|
1799
|
-
startDate:
|
|
1801
|
+
startDate: UI5Date.getInstance(oStartDate.getTime()), // use new date object
|
|
1800
1802
|
days: iIntervals,
|
|
1801
1803
|
showDayNamesLine: this.getShowDayNamesLine(),
|
|
1802
1804
|
legend: this.getLegend(),
|
|
@@ -1859,11 +1861,11 @@ sap.ui.define([
|
|
|
1859
1861
|
case CalendarIntervalType.Month:
|
|
1860
1862
|
if (!this._oMonthsRow) {
|
|
1861
1863
|
this._oMonthsRow = new MonthsRow(this.getId() + "-MonthsRow", {
|
|
1862
|
-
startDate:
|
|
1864
|
+
startDate: UI5Date.getInstance(oStartDate.getTime()), // use new date object
|
|
1863
1865
|
months: iIntervals,
|
|
1864
1866
|
legend: this.getLegend()
|
|
1865
1867
|
});
|
|
1866
|
-
this._oMonthsRow.setProperty("primaryCalendarType", this.
|
|
1868
|
+
this._oMonthsRow.setProperty("primaryCalendarType", this.getPrimaryCalendarType());
|
|
1867
1869
|
if (sSecondaryCalendarType) {
|
|
1868
1870
|
this._oMonthsRow.setProperty("secondaryCalendarType", sSecondaryCalendarType);
|
|
1869
1871
|
}
|
|
@@ -1895,9 +1897,9 @@ sap.ui.define([
|
|
|
1895
1897
|
var oContent = this.getAggregation("table").getInfoToolbar().getContent()[1];
|
|
1896
1898
|
|
|
1897
1899
|
if (oContent.getMetadata().hasProperty("_primaryCalendarType")) {
|
|
1898
|
-
oContent.setProperty("_primaryCalendarType", this.
|
|
1900
|
+
oContent.setProperty("_primaryCalendarType", this.getPrimaryCalendarType());
|
|
1899
1901
|
} else if (oContent.getMetadata().hasProperty("primaryCalendarType")) {
|
|
1900
|
-
oContent.setPrimaryCalendarType(this.
|
|
1902
|
+
oContent.setPrimaryCalendarType(this.getPrimaryCalendarType());
|
|
1901
1903
|
}
|
|
1902
1904
|
|
|
1903
1905
|
if (sSecondaryCalendarType && oContent.getMetadata().hasProperty("_secondaryCalendarType") ) {
|
|
@@ -1907,7 +1909,7 @@ sap.ui.define([
|
|
|
1907
1909
|
}
|
|
1908
1910
|
|
|
1909
1911
|
if (this._oOneMonthsRow) {
|
|
1910
|
-
this._oOneMonthsRow.setPrimaryCalendarType(this.
|
|
1912
|
+
this._oOneMonthsRow.setPrimaryCalendarType(this.getPrimaryCalendarType());
|
|
1911
1913
|
}
|
|
1912
1914
|
|
|
1913
1915
|
if (oContent.setFirstDayOfWeek) {
|
|
@@ -1936,7 +1938,7 @@ sap.ui.define([
|
|
|
1936
1938
|
if (sKey === PlanningCalendarBuiltInView.Week || sKey === PlanningCalendarBuiltInView.OneMonth || sKey === PlanningCalendarBuiltInView.Month || sKey === "OneMonth") {
|
|
1937
1939
|
oOldStartDate = this.getStartDate();
|
|
1938
1940
|
|
|
1939
|
-
this.setStartDate(
|
|
1941
|
+
this.setStartDate(UI5Date.getInstance(oOldStartDate.getTime())); //make sure the start date is aligned according to the week/month rules
|
|
1940
1942
|
if (oOldStartDate.getTime() !== this.getStartDate().getTime()) {
|
|
1941
1943
|
this.fireStartDateChange();
|
|
1942
1944
|
}
|
|
@@ -1944,8 +1946,8 @@ sap.ui.define([
|
|
|
1944
1946
|
|
|
1945
1947
|
if (this._oOneMonthsRow && (sKey === PlanningCalendarBuiltInView.OneMonth || sKey === "OneMonth")) {
|
|
1946
1948
|
this._oOneMonthsRow.setMode(this._iSize);
|
|
1947
|
-
this._oOldStartDate =
|
|
1948
|
-
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oOldStartDate, this.
|
|
1949
|
+
this._oOldStartDate = UI5Date.getInstance(this.getStartDate().getTime());
|
|
1950
|
+
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oOldStartDate, this.getPrimaryCalendarType()));
|
|
1949
1951
|
|
|
1950
1952
|
if (this._iSize < 2) {
|
|
1951
1953
|
this._setRowsStartDate(oOldStartDate);
|
|
@@ -1964,14 +1966,14 @@ sap.ui.define([
|
|
|
1964
1966
|
}
|
|
1965
1967
|
|
|
1966
1968
|
if (oMinDate) {
|
|
1967
|
-
oHeader.getAggregation("_calendarPicker") && oHeader.getAggregation("_calendarPicker").setMinDate(
|
|
1968
|
-
oHeader.getAggregation("_yearPicker") && oHeader.getAggregation("_yearPicker").setMinDate(
|
|
1969
|
-
oHeader.getAggregation("_monthPicker") && oHeader.getAggregation("_monthPicker").setMinDate(
|
|
1969
|
+
oHeader.getAggregation("_calendarPicker") && oHeader.getAggregation("_calendarPicker").setMinDate(UI5Date.getInstance(oMinDate.getTime()));
|
|
1970
|
+
oHeader.getAggregation("_yearPicker") && oHeader.getAggregation("_yearPicker").setMinDate(UI5Date.getInstance(oMinDate.getTime()));
|
|
1971
|
+
oHeader.getAggregation("_monthPicker") && oHeader.getAggregation("_monthPicker").setMinDate(UI5Date.getInstance(oMinDate.getTime()));
|
|
1970
1972
|
}
|
|
1971
1973
|
if (oMaxDate) {
|
|
1972
|
-
oHeader.getAggregation("_calendarPicker") && oHeader.getAggregation("_calendarPicker").setMaxDate(
|
|
1973
|
-
oHeader.getAggregation("_yearPicker") && oHeader.getAggregation("_yearPicker").setMaxDate(
|
|
1974
|
-
oHeader.getAggregation("_monthPicker") && oHeader.getAggregation("_monthPicker").setMaxDate(
|
|
1974
|
+
oHeader.getAggregation("_calendarPicker") && oHeader.getAggregation("_calendarPicker").setMaxDate(UI5Date.getInstance(oMaxDate.getTime()));
|
|
1975
|
+
oHeader.getAggregation("_yearPicker") && oHeader.getAggregation("_yearPicker").setMaxDate(UI5Date.getInstance(oMaxDate.getTime()));
|
|
1976
|
+
oHeader.getAggregation("_monthPicker") && oHeader.getAggregation("_monthPicker").setMaxDate(UI5Date.getInstance(oMaxDate.getTime()));
|
|
1975
1977
|
}
|
|
1976
1978
|
|
|
1977
1979
|
this._updateTodayButtonState();
|
|
@@ -2042,13 +2044,13 @@ sap.ui.define([
|
|
|
2042
2044
|
oStart,
|
|
2043
2045
|
oCurrent;
|
|
2044
2046
|
|
|
2045
|
-
this._dateNav.toDate(oDate, this.
|
|
2047
|
+
this._dateNav.toDate(oDate, this.getPrimaryCalendarType());
|
|
2046
2048
|
|
|
2047
2049
|
oStart = this._dateNav.getStart();
|
|
2048
2050
|
oCurrent = this._dateNav.getCurrent();
|
|
2049
2051
|
|
|
2050
2052
|
if (this._dateNav.getCurrent() > this._dateNav.getEnd()){
|
|
2051
|
-
oStart =
|
|
2053
|
+
oStart = UI5Date.getInstance(this._dateNav.getStart());
|
|
2052
2054
|
oStart.setDate(oStart.getDate() + 1);
|
|
2053
2055
|
}
|
|
2054
2056
|
|
|
@@ -2112,7 +2114,7 @@ sap.ui.define([
|
|
|
2112
2114
|
* CalendarUtils.getFirstDateOfMonth works with UTC dates (this is because the dates are timezone irrelevant),
|
|
2113
2115
|
* it should be called with the local datetime values presented as UTC ones.
|
|
2114
2116
|
*/
|
|
2115
|
-
var oFirstDateOfMonth = CalendarUtils._getFirstDateOfMonth(CalendarDate.fromLocalJSDate(oStartDate, this.
|
|
2117
|
+
var oFirstDateOfMonth = CalendarUtils._getFirstDateOfMonth(CalendarDate.fromLocalJSDate(oStartDate, this.getPrimaryCalendarType()));
|
|
2116
2118
|
var oJSDate = oFirstDateOfMonth.toLocalJSDate();
|
|
2117
2119
|
oJSDate.setHours(oStartDate.getHours(), oStartDate.getMinutes(), oStartDate.getSeconds());
|
|
2118
2120
|
//CalendarUtils.getFirstDateOfMonth works with UTC based date values, restore the result back in local timezone.
|
|
@@ -2894,7 +2896,7 @@ sap.ui.define([
|
|
|
2894
2896
|
return;
|
|
2895
2897
|
}
|
|
2896
2898
|
|
|
2897
|
-
this.setStartDate(
|
|
2899
|
+
this.setStartDate(UI5Date.getInstance(oStartDate.getTime()));
|
|
2898
2900
|
this._updatePickerSelection();
|
|
2899
2901
|
this.fireStartDateChange();
|
|
2900
2902
|
};
|
|
@@ -2920,7 +2922,7 @@ sap.ui.define([
|
|
|
2920
2922
|
}
|
|
2921
2923
|
|
|
2922
2924
|
// set timer only if date is in visible area or one hour before
|
|
2923
|
-
var oNowDate =
|
|
2925
|
+
var oNowDate = UI5Date.getInstance();
|
|
2924
2926
|
var oStartDate = this.getStartDate();
|
|
2925
2927
|
var sKey = this.getViewKey();
|
|
2926
2928
|
var oView = this._getView(sKey);
|
|
@@ -2971,12 +2973,12 @@ sap.ui.define([
|
|
|
2971
2973
|
* @private
|
|
2972
2974
|
*/
|
|
2973
2975
|
PlanningCalendar.prototype._handleTodayPress = function (oEvent) {
|
|
2974
|
-
var oDate =
|
|
2976
|
+
var oDate = UI5Date.getInstance(),
|
|
2975
2977
|
oStartDate,
|
|
2976
2978
|
sViewKey = this.getViewKey(),
|
|
2977
2979
|
oFocusMonthDelegate = {
|
|
2978
2980
|
onAfterRendering: function() {
|
|
2979
|
-
this._focusDate(CalendarDate.fromLocalJSDate(
|
|
2981
|
+
this._focusDate(CalendarDate.fromLocalJSDate(UI5Date.getInstance(), this.getPrimaryCalendarType()));
|
|
2980
2982
|
this.removeDelegate(oFocusMonthDelegate);
|
|
2981
2983
|
}
|
|
2982
2984
|
};
|
|
@@ -2984,8 +2986,8 @@ sap.ui.define([
|
|
|
2984
2986
|
// if the OneMonth view is selected and Today btn is pressed,
|
|
2985
2987
|
// the calendar should start from the 1st date of the current month
|
|
2986
2988
|
if (sViewKey === PlanningCalendarBuiltInView.OneMonth || sViewKey === "OneMonth") {
|
|
2987
|
-
oStartDate = CalendarUtils._getFirstDateOfMonth(CalendarDate.fromLocalJSDate(oDate, this.
|
|
2988
|
-
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oDate, this.
|
|
2989
|
+
oStartDate = CalendarUtils._getFirstDateOfMonth(CalendarDate.fromLocalJSDate(oDate, this.getPrimaryCalendarType()));
|
|
2990
|
+
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oDate, this.getPrimaryCalendarType()));
|
|
2989
2991
|
|
|
2990
2992
|
oDate = oStartDate.toLocalJSDate();
|
|
2991
2993
|
}
|
|
@@ -3040,7 +3042,7 @@ sap.ui.define([
|
|
|
3040
3042
|
oCurrentStartDate = this.getStartDate();
|
|
3041
3043
|
|
|
3042
3044
|
if (this.isRelative()) {
|
|
3043
|
-
oStartDate =
|
|
3045
|
+
oStartDate = UI5Date.getInstance(this.getMinDate().getTime());
|
|
3044
3046
|
oStartDate.setDate(
|
|
3045
3047
|
oStartDate.getDate() + oEvent.getSource()._oIndexPicker.getSelectedIndex() * this._getView(this.getViewKey()).getIntervalSize()
|
|
3046
3048
|
);
|
|
@@ -3086,10 +3088,10 @@ sap.ui.define([
|
|
|
3086
3088
|
return;
|
|
3087
3089
|
}
|
|
3088
3090
|
|
|
3089
|
-
var oEvtSelectedStartDate =
|
|
3090
|
-
var oEvtSelectedStartCalendarDate = CalendarDate.fromLocalJSDate(oEvtSelectedStartDate, this.
|
|
3091
|
+
var oEvtSelectedStartDate = UI5Date.getInstance(aSelectedDates[0].getStartDate());
|
|
3092
|
+
var oEvtSelectedStartCalendarDate = CalendarDate.fromLocalJSDate(oEvtSelectedStartDate, this.getPrimaryCalendarType());
|
|
3091
3093
|
// calculate end date
|
|
3092
|
-
var oEndDate = CalendarUtils._createUniversalUTCDate(oEvtSelectedStartDate, this.
|
|
3094
|
+
var oEndDate = CalendarUtils._createUniversalUTCDate(oEvtSelectedStartDate, this.getPrimaryCalendarType(), true);
|
|
3093
3095
|
var sKey = this.getViewKey();
|
|
3094
3096
|
var oView = this._getView(sKey);
|
|
3095
3097
|
var sIntervalType = oView.getIntervalType();
|
|
@@ -3114,13 +3116,13 @@ sap.ui.define([
|
|
|
3114
3116
|
case CalendarIntervalType.OneMonth:
|
|
3115
3117
|
case "OneMonth":
|
|
3116
3118
|
if (this._iSize < 2) { // change rows' startDate on S and M sizes
|
|
3117
|
-
var oFocusedDate =
|
|
3119
|
+
var oFocusedDate = UI5Date.getInstance(oEvtSelectedStartCalendarDate.toLocalJSDate().getTime());
|
|
3118
3120
|
if (CalendarUtils.monthsDiffer(this.getStartDate(), oEvtSelectedStartCalendarDate.toLocalJSDate())) {
|
|
3119
3121
|
this.setStartDate(oEvtSelectedStartCalendarDate.toLocalJSDate());
|
|
3120
3122
|
this._getHeader().updatePickerText(this._formatPickerText());
|
|
3121
3123
|
}
|
|
3122
3124
|
this._setRowsStartDate(oFocusedDate);
|
|
3123
|
-
this._oOneMonthsRow._focusDate(CalendarDate.fromLocalJSDate(oFocusedDate, this.
|
|
3125
|
+
this._oOneMonthsRow._focusDate(CalendarDate.fromLocalJSDate(oFocusedDate, this.getPrimaryCalendarType()), true);
|
|
3124
3126
|
} else if (CalendarUtils._isNextMonth(oEvtSelectedStartCalendarDate.toLocalJSDate(), this.getStartDate())) {
|
|
3125
3127
|
this.shiftToDate(oEvtSelectedStartCalendarDate);
|
|
3126
3128
|
this._addMonthFocusDelegate(this._getRowInstanceByViewKey(this.getViewKey()));
|
|
@@ -3258,7 +3260,7 @@ sap.ui.define([
|
|
|
3258
3260
|
this._dateNav.setStep(iIntervals * iIntervalSize);
|
|
3259
3261
|
if (this._iSize > 1) {
|
|
3260
3262
|
//set start date to 1st of the month
|
|
3261
|
-
this._setRowsStartDate(
|
|
3263
|
+
this._setRowsStartDate(UI5Date.getInstance(this.getStartDate().getTime()));
|
|
3262
3264
|
}
|
|
3263
3265
|
}
|
|
3264
3266
|
break;
|
|
@@ -3280,7 +3282,7 @@ sap.ui.define([
|
|
|
3280
3282
|
oSelectedDate = (this._getSelectedDates().length && this._getSelectedDates()[0].getStartDate()) ?
|
|
3281
3283
|
this._getSelectedDates()[0].getStartDate() : this.getStartDate();
|
|
3282
3284
|
this._oOneMonthsRow.setMode(this._iSize);
|
|
3283
|
-
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oSelectedDate, this.
|
|
3285
|
+
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oSelectedDate, this.getPrimaryCalendarType()));
|
|
3284
3286
|
}
|
|
3285
3287
|
|
|
3286
3288
|
// Call _updateStickyHeader only if the property stickyHeader is set to true
|
|
@@ -3924,18 +3926,18 @@ sap.ui.define([
|
|
|
3924
3926
|
var fnDayMatchesCurrentDate = function (iDay) {
|
|
3925
3927
|
return iDay === oCurrentDate.getDay();
|
|
3926
3928
|
};
|
|
3927
|
-
oCurrentDate =
|
|
3929
|
+
oCurrentDate = UI5Date.getInstance(oRowStartDate.getTime());
|
|
3928
3930
|
oCurrentDate.setHours(0, 0, 0);
|
|
3929
3931
|
oCurrentDate.setDate(oRowStartDate.getDate() + iInterval);
|
|
3930
3932
|
|
|
3931
3933
|
for (var i = 0; i < aAllNonworkingDates.length; i++) {
|
|
3932
3934
|
if (aAllNonworkingDates[i].getStartDate()) {
|
|
3933
|
-
oNonWorkingStartDate =
|
|
3935
|
+
oNonWorkingStartDate = UI5Date.getInstance(aAllNonworkingDates[i].getStartDate().getTime());
|
|
3934
3936
|
}
|
|
3935
3937
|
if (aAllNonworkingDates[i].getEndDate()) {
|
|
3936
|
-
oNonWorkingEndDate =
|
|
3938
|
+
oNonWorkingEndDate = UI5Date.getInstance(aAllNonworkingDates[i].getEndDate().getTime());
|
|
3937
3939
|
} else {
|
|
3938
|
-
oNonWorkingEndDate =
|
|
3940
|
+
oNonWorkingEndDate = UI5Date.getInstance(aAllNonworkingDates[i].getStartDate().getTime());
|
|
3939
3941
|
oNonWorkingEndDate.setHours(23, 59, 59);
|
|
3940
3942
|
}
|
|
3941
3943
|
if (oCurrentDate.getTime() >= oNonWorkingStartDate.getTime() && oCurrentDate.getTime() <= oNonWorkingEndDate.getTime()) {
|
|
@@ -4184,15 +4186,15 @@ sap.ui.define([
|
|
|
4184
4186
|
if (oSourceTimeline.hasListeners("appointmentDragEnter")) {
|
|
4185
4187
|
|
|
4186
4188
|
if (sIntervalType === CalendarIntervalType.Hour) {
|
|
4187
|
-
newPos = this._calcNewHoursAppPos(oRowStartDate, oAppointment.
|
|
4189
|
+
newPos = this._calcNewHoursAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4188
4190
|
} else if (sIntervalType === CalendarIntervalType.Day
|
|
4189
4191
|
|| sIntervalType === CalendarIntervalType.Week
|
|
4190
4192
|
|| ((sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth") && !oTargetTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
4191
4193
|
|
|
4192
|
-
newPos = this._calcNewDaysAppPos(oRowStartDate, oAppointment.
|
|
4194
|
+
newPos = this._calcNewDaysAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4193
4195
|
} else if (sIntervalType === CalendarIntervalType.Month) {
|
|
4194
4196
|
|
|
4195
|
-
newPos = this._calcNewMonthsAppPos(oRowStartDate, oAppointment.
|
|
4197
|
+
newPos = this._calcNewMonthsAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4196
4198
|
}
|
|
4197
4199
|
|
|
4198
4200
|
var bDropabbleArea = oSourceTimeline.fireAppointmentDragEnter({
|
|
@@ -4237,20 +4239,20 @@ sap.ui.define([
|
|
|
4237
4239
|
bCopy = (oBrowserEvent.metaKey || oBrowserEvent.ctrlKey);
|
|
4238
4240
|
|
|
4239
4241
|
if (sIntervalType === CalendarIntervalType.Hour) {
|
|
4240
|
-
newPos = this._calcNewHoursAppPos(oRowStartDate, oAppointment.
|
|
4242
|
+
newPos = this._calcNewHoursAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4241
4243
|
} else if (sIntervalType === CalendarIntervalType.Day
|
|
4242
4244
|
|| sIntervalType === CalendarIntervalType.Week
|
|
4243
4245
|
|| ((sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth") && !oTargetTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
4244
4246
|
|
|
4245
|
-
newPos = this._calcNewDaysAppPos(oRowStartDate, oAppointment.
|
|
4247
|
+
newPos = this._calcNewDaysAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4246
4248
|
} else if (sIntervalType === CalendarIntervalType.Month) {
|
|
4247
4249
|
|
|
4248
|
-
newPos = this._calcNewMonthsAppPos(oRowStartDate, oAppointment.
|
|
4250
|
+
newPos = this._calcNewMonthsAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4249
4251
|
}
|
|
4250
4252
|
|
|
4251
4253
|
oTargetTimeline.$().find(".sapUiCalendarRowAppsOverlay").removeClass("sapUiCalendarRowAppsOverlayDragging");
|
|
4252
4254
|
|
|
4253
|
-
if (oAppointment.
|
|
4255
|
+
if (oAppointment.getStartDate().getTime() === newPos.startDate.getTime()
|
|
4254
4256
|
&& oAppointment.getParent() === getRow(oTargetTimeline.getParent())) {
|
|
4255
4257
|
|
|
4256
4258
|
return;
|
|
@@ -4271,11 +4273,11 @@ sap.ui.define([
|
|
|
4271
4273
|
var oRowStartUTC = CalendarUtils._createUniversalUTCDate(oRowStartDate, null, true),
|
|
4272
4274
|
oAppStartUTC = CalendarUtils._createUniversalUTCDate(oAppStartDate, null, true),
|
|
4273
4275
|
oAppEndUTC = CalendarUtils._createUniversalUTCDate(oAppEndDate, null, true),
|
|
4274
|
-
oStartDateUTC =
|
|
4276
|
+
oStartDateUTC = UI5Date.getInstance(oRowStartUTC.setUTCMinutes(0, 0, 0) + (iIndex * 30 * 60 * 1000));
|
|
4275
4277
|
|
|
4276
4278
|
return {
|
|
4277
4279
|
startDate: CalendarUtils._createLocalDate(oStartDateUTC, true),
|
|
4278
|
-
endDate: CalendarUtils._createLocalDate(
|
|
4280
|
+
endDate: CalendarUtils._createLocalDate(UI5Date.getInstance(oStartDateUTC.getTime() + oAppEndUTC.getTime() - oAppStartUTC.getTime()), true)
|
|
4279
4281
|
};
|
|
4280
4282
|
};
|
|
4281
4283
|
|
|
@@ -4286,7 +4288,7 @@ sap.ui.define([
|
|
|
4286
4288
|
iAppDelta = oAppEndUTC.getTime() - oAppStartUTC.getTime();
|
|
4287
4289
|
|
|
4288
4290
|
oAppStartUTC.setUTCFullYear(oRowStartUTC.getUTCFullYear(), oRowStartUTC.getUTCMonth(), oRowStartUTC.getUTCDate() + iIndex);
|
|
4289
|
-
oAppEndUTC =
|
|
4291
|
+
oAppEndUTC = UI5Date.getInstance(oAppStartUTC.getTime() + iAppDelta);
|
|
4290
4292
|
|
|
4291
4293
|
return {
|
|
4292
4294
|
startDate: CalendarUtils._createLocalDate(oAppStartUTC, true),
|
|
@@ -4301,7 +4303,7 @@ sap.ui.define([
|
|
|
4301
4303
|
iAppDelta = oAppEndUTC.getTime() - oAppStartUTC.getTime();
|
|
4302
4304
|
|
|
4303
4305
|
oAppStartUTC.setUTCFullYear(oRowStartUTC.getUTCFullYear(), oRowStartUTC.getUTCMonth() + iIndex);
|
|
4304
|
-
oAppEndUTC =
|
|
4306
|
+
oAppEndUTC = UI5Date.getInstance(oAppStartUTC.getTime() + iAppDelta);
|
|
4305
4307
|
|
|
4306
4308
|
return {
|
|
4307
4309
|
startDate: CalendarUtils._createLocalDate(oAppStartUTC, true),
|
|
@@ -4400,15 +4402,15 @@ sap.ui.define([
|
|
|
4400
4402
|
newPos;
|
|
4401
4403
|
|
|
4402
4404
|
if (sIntervalType === CalendarIntervalType.Hour) {
|
|
4403
|
-
newPos = this._calcResizeNewHoursAppPos(oRowStartDate, oAppointment.
|
|
4405
|
+
newPos = this._calcResizeNewHoursAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4404
4406
|
} else if (sIntervalType === CalendarIntervalType.Day
|
|
4405
4407
|
|| sIntervalType === CalendarIntervalType.Week
|
|
4406
4408
|
|| ((sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth") && !oTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
4407
4409
|
|
|
4408
|
-
newPos = this._calcResizeNewDaysAppPos(oRowStartDate, oAppointment.
|
|
4410
|
+
newPos = this._calcResizeNewDaysAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4409
4411
|
} else if (sIntervalType === CalendarIntervalType.Month) {
|
|
4410
4412
|
|
|
4411
|
-
newPos = this._calcResizeNewMonthsAppPos(oRowStartDate, oAppointment.
|
|
4413
|
+
newPos = this._calcResizeNewMonthsAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4412
4414
|
}
|
|
4413
4415
|
|
|
4414
4416
|
oTimeline.$().find(".sapUiCalendarRowAppsOverlay").removeClass("sapUiCalendarRowAppsOverlayDragging");
|
|
@@ -4421,7 +4423,7 @@ sap.ui.define([
|
|
|
4421
4423
|
opacity: 1
|
|
4422
4424
|
});
|
|
4423
4425
|
|
|
4424
|
-
if (oAppointment.
|
|
4426
|
+
if (oAppointment.getEndDate().getTime() === newPos.endDate.getTime() ) {
|
|
4425
4427
|
return;
|
|
4426
4428
|
}
|
|
4427
4429
|
|
|
@@ -4440,14 +4442,14 @@ sap.ui.define([
|
|
|
4440
4442
|
};
|
|
4441
4443
|
|
|
4442
4444
|
PlanningCalendar.prototype._calcResizeNewHoursAppPos = function(oRowStartDate, oAppStartDate, oAppEndDate, iIndex) {
|
|
4443
|
-
var oRowStartUTC = CalendarUtils._createUniversalUTCDate(
|
|
4445
|
+
var oRowStartUTC = CalendarUtils._createUniversalUTCDate(UI5Date.getInstance(oRowStartDate.getTime()), null, true),
|
|
4444
4446
|
iMinutesStep = 30 * 60 * 1000, // 30 min
|
|
4445
4447
|
oAppStartUTC = CalendarUtils._createUniversalUTCDate(oAppStartDate, null, true),
|
|
4446
|
-
oAppEndUTC =
|
|
4448
|
+
oAppEndUTC = UI5Date.getInstance(oRowStartUTC.setUTCMinutes(0, 0, 0) + ((iIndex + 1) * iMinutesStep));
|
|
4447
4449
|
|
|
4448
4450
|
// check if the start date/time is after the end date/time and if so it just adds 1 period to the start date/time
|
|
4449
4451
|
if (oAppEndUTC.getTime() <= oAppStartUTC.getTime()) {
|
|
4450
|
-
oAppEndUTC =
|
|
4452
|
+
oAppEndUTC = UI5Date.getInstance(oAppStartUTC.getTime() + iMinutesStep);
|
|
4451
4453
|
}
|
|
4452
4454
|
|
|
4453
4455
|
return {
|
|
@@ -4459,7 +4461,7 @@ sap.ui.define([
|
|
|
4459
4461
|
PlanningCalendar.prototype._calcResizeNewDaysAppPos = function(oRowStartDate, oAppStartDate, oAppEndDate, iIndex) {
|
|
4460
4462
|
var oRowStartUTC = CalendarUtils._createUniversalUTCDate(oRowStartDate, null, true),
|
|
4461
4463
|
oAppStartUTC = CalendarUtils._createUniversalUTCDate(oAppStartDate, null, true),
|
|
4462
|
-
oAppEndUTC =
|
|
4464
|
+
oAppEndUTC = UI5Date.getInstance(oRowStartUTC.setUTCDate(oRowStartUTC.getUTCDate() + iIndex + 1)),
|
|
4463
4465
|
oDateTimes = {};
|
|
4464
4466
|
|
|
4465
4467
|
oDateTimes.startDate = CalendarUtils._createLocalDate(oAppStartUTC);
|
|
@@ -4468,7 +4470,7 @@ sap.ui.define([
|
|
|
4468
4470
|
|
|
4469
4471
|
// check if the start date is after the end date and if so it just adds 1 day to the start date
|
|
4470
4472
|
if (oDateTimes.endDate <= oDateTimes.startDate) {
|
|
4471
|
-
oDateTimes.endDate = CalendarUtils._createLocalDate(
|
|
4473
|
+
oDateTimes.endDate = CalendarUtils._createLocalDate(UI5Date.getInstance(oAppEndUTC.setUTCDate(oAppStartUTC.getUTCDate() + 1)));
|
|
4472
4474
|
}
|
|
4473
4475
|
|
|
4474
4476
|
return {
|
|
@@ -4480,11 +4482,11 @@ sap.ui.define([
|
|
|
4480
4482
|
PlanningCalendar.prototype._calcResizeNewMonthsAppPos = function(oRowStartDate, oAppStartDate, oAppEndDate, iIndex) {
|
|
4481
4483
|
var oRowStartUTC = CalendarUtils._createUniversalUTCDate(oRowStartDate, null, true),
|
|
4482
4484
|
oAppStartUTC = CalendarUtils._createUniversalUTCDate(oAppStartDate, null, true),
|
|
4483
|
-
oAppEndUTC =
|
|
4485
|
+
oAppEndUTC = UI5Date.getInstance(oRowStartUTC.setUTCMonth(oRowStartUTC.getUTCMonth() + iIndex + 1, 1));
|
|
4484
4486
|
|
|
4485
4487
|
// check if the start date is after the end date and if so it just adds 1 month to the start date
|
|
4486
4488
|
if (CalendarUtils._monthsBetween(oAppStartUTC, oAppEndUTC, true) < 0) {
|
|
4487
|
-
oAppEndUTC =
|
|
4489
|
+
oAppEndUTC = UI5Date.getInstance(oAppEndUTC.setUTCFullYear(oAppStartUTC.getUTCFullYear(), oAppStartUTC.getUTCMonth() + 1, 1));
|
|
4488
4490
|
}
|
|
4489
4491
|
|
|
4490
4492
|
return {
|
|
@@ -4498,9 +4500,9 @@ sap.ui.define([
|
|
|
4498
4500
|
iMinutesStep = 30 * 60 * 1000, // 30 min
|
|
4499
4501
|
iStartAddon = (iStartIndex <= iEndIndex) ? iStartIndex : iEndIndex,
|
|
4500
4502
|
iEndAddon = (iStartIndex <= iEndIndex) ? iEndIndex + 1 : iStartIndex,
|
|
4501
|
-
oRowStartDateTimeUTC =
|
|
4502
|
-
oAppStartUTC =
|
|
4503
|
-
oAppEndUTC =
|
|
4503
|
+
oRowStartDateTimeUTC = UI5Date.getInstance(oRowStartUTC.setUTCMinutes(0, 0, 0)),
|
|
4504
|
+
oAppStartUTC = UI5Date.getInstance(oRowStartDateTimeUTC.getTime() + iStartAddon * iMinutesStep),
|
|
4505
|
+
oAppEndUTC = UI5Date.getInstance(oRowStartDateTimeUTC.getTime() + iEndAddon * iMinutesStep);
|
|
4504
4506
|
|
|
4505
4507
|
return {
|
|
4506
4508
|
startDate: CalendarUtils._createLocalDate(oAppStartUTC, true),
|
|
@@ -4512,12 +4514,12 @@ sap.ui.define([
|
|
|
4512
4514
|
var oRowStartUTC = CalendarUtils._createUniversalUTCDate(oRowStartDate, null, true),
|
|
4513
4515
|
iStartAddon = (iStartIndex <= iEndIndex) ? iStartIndex : iEndIndex,
|
|
4514
4516
|
iEndAddon = (iStartIndex <= iEndIndex) ? iEndIndex + 1 : iStartIndex,
|
|
4515
|
-
oAppStartUTC =
|
|
4516
|
-
oAppEndUTC =
|
|
4517
|
+
oAppStartUTC = UI5Date.getInstance(oRowStartUTC.getTime()),
|
|
4518
|
+
oAppEndUTC = UI5Date.getInstance(oRowStartUTC.getTime());
|
|
4517
4519
|
|
|
4518
4520
|
return {
|
|
4519
|
-
startDate: CalendarUtils._createLocalDate(
|
|
4520
|
-
endDate: CalendarUtils._createLocalDate(
|
|
4521
|
+
startDate: CalendarUtils._createLocalDate(UI5Date.getInstance(oAppStartUTC.setUTCDate(oAppStartUTC.getUTCDate() + iStartAddon))),
|
|
4522
|
+
endDate: CalendarUtils._createLocalDate(UI5Date.getInstance(oAppEndUTC.setUTCDate(oAppEndUTC.getUTCDate() + iEndAddon)))
|
|
4521
4523
|
};
|
|
4522
4524
|
};
|
|
4523
4525
|
|
|
@@ -4525,12 +4527,12 @@ sap.ui.define([
|
|
|
4525
4527
|
var oRowStartUTC = CalendarUtils._createUniversalUTCDate(oRowStartDate, null, true),
|
|
4526
4528
|
iStartAddon = (iStartIndex <= iEndIndex) ? iStartIndex : iEndIndex,
|
|
4527
4529
|
iEndAddon = (iStartIndex <= iEndIndex) ? iEndIndex + 1 : iStartIndex,
|
|
4528
|
-
oAppStartUTC =
|
|
4529
|
-
oAppEndUTC =
|
|
4530
|
+
oAppStartUTC = UI5Date.getInstance(oRowStartUTC.getTime()),
|
|
4531
|
+
oAppEndUTC = UI5Date.getInstance(oRowStartUTC.getTime());
|
|
4530
4532
|
|
|
4531
4533
|
return {
|
|
4532
|
-
startDate: CalendarUtils._createLocalDate(
|
|
4533
|
-
endDate: CalendarUtils._createLocalDate(
|
|
4534
|
+
startDate: CalendarUtils._createLocalDate(UI5Date.getInstance(oAppStartUTC.setUTCMonth(oAppStartUTC.getUTCMonth() + iStartAddon, 1))),
|
|
4535
|
+
endDate: CalendarUtils._createLocalDate(UI5Date.getInstance(oAppEndUTC.setUTCMonth(oAppEndUTC.getUTCMonth() + iEndAddon, 1)))
|
|
4534
4536
|
};
|
|
4535
4537
|
};
|
|
4536
4538
|
|
|
@@ -4640,10 +4642,10 @@ sap.ui.define([
|
|
|
4640
4642
|
var sViewKey = this.getViewKey(),
|
|
4641
4643
|
oCurrentView = this._getView(sViewKey, true),
|
|
4642
4644
|
sCurrentViewIntervalType = oCurrentView && oCurrentView.getIntervalType(),
|
|
4643
|
-
oStartDate =
|
|
4644
|
-
oEndDate =
|
|
4645
|
-
oMinDate = this.getMinDate() ?
|
|
4646
|
-
oMaxDate = this.getMaxDate() ?
|
|
4645
|
+
oStartDate = UI5Date.getInstance(this._dateNav.getStart().getTime()),
|
|
4646
|
+
oEndDate = UI5Date.getInstance(this._dateNav.getEnd().getTime()),
|
|
4647
|
+
oMinDate = this.getMinDate() ? UI5Date.getInstance(this.getMinDate().getTime()) : undefined,
|
|
4648
|
+
oMaxDate = this.getMaxDate() ? UI5Date.getInstance(this.getMaxDate().getTime()) : undefined;
|
|
4647
4649
|
|
|
4648
4650
|
if (sCurrentViewIntervalType !== "Hour") {
|
|
4649
4651
|
oMinDate && oMinDate.setHours(0, 0, 0, 0);
|
|
@@ -4835,7 +4837,7 @@ sap.ui.define([
|
|
|
4835
4837
|
switch (sType) {
|
|
4836
4838
|
case "sapup":
|
|
4837
4839
|
oAppointment = oTimeline.getFocusedAppointment();
|
|
4838
|
-
oDate = oAppointment.
|
|
4840
|
+
oDate = oAppointment.getStartDate();
|
|
4839
4841
|
|
|
4840
4842
|
// get nearest appointment in row above
|
|
4841
4843
|
if (iIndex > 0) {
|
|
@@ -4849,7 +4851,7 @@ sap.ui.define([
|
|
|
4849
4851
|
|
|
4850
4852
|
case "sapdown":
|
|
4851
4853
|
oAppointment = oTimeline.getFocusedAppointment();
|
|
4852
|
-
oDate = oAppointment.
|
|
4854
|
+
oDate = oAppointment.getStartDate();
|
|
4853
4855
|
|
|
4854
4856
|
// get nearest appointment in row above
|
|
4855
4857
|
if (iIndex < aRows.length - 1) {
|
|
@@ -4987,7 +4989,7 @@ sap.ui.define([
|
|
|
4987
4989
|
};
|
|
4988
4990
|
|
|
4989
4991
|
PlanningCalendar.prototype._getDateFromIndex = function(iIndex) {
|
|
4990
|
-
var oDate =
|
|
4992
|
+
var oDate = UI5Date.getInstance(this.getMinDate());
|
|
4991
4993
|
|
|
4992
4994
|
oDate.setDate(oDate.getDate() + iIndex * this._getView(this.getViewKey()).getIntervalSize());
|
|
4993
4995
|
|