@openui5/sap.m 1.107.1 → 1.108.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/.dtsgenrc +22 -0
- package/THIRDPARTY.txt +1 -1
- package/package.json +4 -4
- package/src/sap/m/.library +2 -2
- 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 +17 -1
- package/src/sap/m/ActionTileContent.js +7 -5
- package/src/sap/m/AdditionalTextButton.js +42 -0
- package/src/sap/m/AdditionalTextButtonRenderer.js +60 -0
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +49 -7
- package/src/sap/m/AvatarRenderer.js +10 -2
- package/src/sap/m/Bar.js +2 -2
- 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/ButtonRenderer.js +26 -23
- package/src/sap/m/Carousel.js +348 -286
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CarouselRenderer.js +52 -20
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +36 -8
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +1 -1
- package/src/sap/m/ComboBoxBase.js +1 -1
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/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 +15 -6
- package/src/sap/m/DateRangeSelection.js +2 -2
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +2 -2
- package/src/sap/m/Dialog.js +29 -2
- package/src/sap/m/DialogRenderer.js +20 -6
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +1 -1
- package/src/sap/m/DynamicDateOption.js +1 -1
- package/src/sap/m/DynamicDateRange.js +3 -2
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +42 -2
- package/src/sap/m/ExpandableTextRenderer.js +4 -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 +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +64 -18
- package/src/sap/m/GenericTileLineModeRenderer.js +4 -4
- package/src/sap/m/GenericTileRenderer.js +23 -14
- 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 +68 -10
- package/src/sap/m/IllustratedMessageRenderer.js +6 -0
- package/src/sap/m/IllustratedMessageSize.js +8 -1
- package/src/sap/m/Illustration.js +1 -1
- package/src/sap/m/IllustrationPool.js +2 -0
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +3 -2
- package/src/sap/m/InputBase.js +4 -3
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +11 -5
- package/src/sap/m/LabelRenderer.js +5 -3
- 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 +1 -1
- package/src/sap/m/ListBaseRenderer.js +1 -1
- package/src/sap/m/ListItemBase.js +3 -3
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +1 -1
- package/src/sap/m/MenuButton.js +1 -1
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MultiComboBox.js +1 -1
- 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 +3 -2
- 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/ObjectListItemRenderer.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 +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/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 +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 +88 -28
- package/src/sap/m/PlanningCalendarHeader.js +27 -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/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/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +1 -1
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +1 -1
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +3 -1
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -1
- 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 +84 -15
- package/src/sap/m/SlideTileRenderer.js +5 -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 +1 -1
- 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 +3 -9
- 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 +60 -11
- 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/TableRenderer.js +7 -4
- 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 -2
- package/src/sap/m/TimePicker.js +15 -42
- package/src/sap/m/TimePickerClock.js +1 -1
- 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/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/ToDoCardRenderer.js +9 -0
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +1 -1
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +23 -77
- package/src/sap/m/TreeItemBase.js +22 -11
- 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/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +11 -7
- 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 +32 -33
- package/src/sap/m/library.js +3 -2
- package/src/sap/m/messagebundle.properties +61 -13
- package/src/sap/m/messagebundle_ar.properties +40 -8
- package/src/sap/m/messagebundle_bg.properties +40 -8
- package/src/sap/m/messagebundle_ca.properties +40 -8
- package/src/sap/m/messagebundle_cs.properties +39 -7
- package/src/sap/m/messagebundle_cy.properties +40 -8
- package/src/sap/m/messagebundle_da.properties +39 -7
- package/src/sap/m/messagebundle_de.properties +41 -9
- package/src/sap/m/messagebundle_el.properties +40 -8
- package/src/sap/m/messagebundle_en.properties +40 -8
- package/src/sap/m/messagebundle_en_GB.properties +40 -8
- package/src/sap/m/messagebundle_en_US_sappsd.properties +41 -9
- package/src/sap/m/messagebundle_en_US_saprigi.properties +40 -9
- package/src/sap/m/messagebundle_en_US_saptrc.properties +41 -9
- package/src/sap/m/messagebundle_es.properties +40 -8
- package/src/sap/m/messagebundle_es_MX.properties +47 -15
- package/src/sap/m/messagebundle_et.properties +39 -7
- package/src/sap/m/messagebundle_fi.properties +39 -7
- package/src/sap/m/messagebundle_fr.properties +40 -8
- package/src/sap/m/messagebundle_fr_CA.properties +41 -9
- package/src/sap/m/messagebundle_hi.properties +40 -8
- package/src/sap/m/messagebundle_hr.properties +39 -7
- package/src/sap/m/messagebundle_hu.properties +39 -7
- package/src/sap/m/messagebundle_id.properties +39 -7
- package/src/sap/m/messagebundle_it.properties +41 -9
- package/src/sap/m/messagebundle_iw.properties +39 -7
- package/src/sap/m/messagebundle_ja.properties +39 -7
- package/src/sap/m/messagebundle_kk.properties +40 -8
- package/src/sap/m/messagebundle_ko.properties +40 -8
- package/src/sap/m/messagebundle_lt.properties +39 -7
- package/src/sap/m/messagebundle_lv.properties +39 -7
- package/src/sap/m/messagebundle_ms.properties +39 -7
- package/src/sap/m/messagebundle_nl.properties +40 -8
- package/src/sap/m/messagebundle_no.properties +40 -8
- package/src/sap/m/messagebundle_pl.properties +39 -7
- package/src/sap/m/messagebundle_pt.properties +40 -8
- package/src/sap/m/messagebundle_pt_PT.properties +40 -8
- package/src/sap/m/messagebundle_ro.properties +40 -8
- package/src/sap/m/messagebundle_ru.properties +40 -8
- package/src/sap/m/messagebundle_sh.properties +40 -8
- package/src/sap/m/messagebundle_sk.properties +39 -7
- package/src/sap/m/messagebundle_sl.properties +40 -8
- package/src/sap/m/messagebundle_sv.properties +39 -7
- package/src/sap/m/messagebundle_th.properties +39 -7
- package/src/sap/m/messagebundle_tr.properties +40 -8
- package/src/sap/m/messagebundle_uk.properties +40 -8
- package/src/sap/m/messagebundle_vi.properties +39 -7
- package/src/sap/m/messagebundle_zh_CN.properties +39 -7
- package/src/sap/m/messagebundle_zh_TW.properties +39 -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 +1 -1
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +1 -1
- package/src/sap/m/p13n/GroupController.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/Popup.js +1 -1
- package/src/sap/m/p13n/QueryPanel.js +2 -2
- package/src/sap/m/p13n/SelectionController.js +1 -1
- package/src/sap/m/p13n/SelectionPanel.js +1 -1
- package/src/sap/m/p13n/SortController.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +1 -1
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
- package/src/sap/m/p13n/modules/UIManager.js +1 -1
- package/src/sap/m/plugins/CellSelector.js +1 -1
- package/src/sap/m/plugins/ColumnResizer.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 +2 -2
- 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 +27 -8
- 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/ActionTile.less +67 -10
- package/src/sap/m/themes/base/AdditionalTextButton.less +38 -0
- package/src/sap/m/themes/base/Avatar.less +4 -0
- package/src/sap/m/themes/base/Carousel.less +64 -33
- package/src/sap/m/themes/base/ColumnMenu.less +4 -4
- package/src/sap/m/themes/base/Dialog.less +1 -1
- package/src/sap/m/themes/base/GenericTile.less +121 -30
- package/src/sap/m/themes/base/IllustratedMessage.less +43 -1
- package/src/sap/m/themes/base/Label.less +5 -0
- package/src/sap/m/themes/base/MessageBox.less +5 -5
- package/src/sap/m/themes/base/Table.less +7 -3
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-AddColumn.svg +26 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-AddPeople.svg +8 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-BalloonSky.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-Connection.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-EmptyCalendar.svg +36 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-EmptyList.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-EmptyPlanningCalendar.svg +36 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-ErrorScreen.svg +8 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-FilterTable.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-GroupTable.svg +35 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoFilterResults.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoMail_v1.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoSavedItems_v1.svg +12 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoSearchResults.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoTasks_v1.svg +12 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-PageNotFound.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-ReloadScreen.svg +8 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SearchEarth.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SearchFolder.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleBalloon.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleBell.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleCalendar.svg +36 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleCheckmark.svg +4 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleConnection.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleEmptyDoc.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleEmptyList.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleError.svg +8 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleMagnifier.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleMail.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleNoSavedItems.svg +12 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleNotFoundMagnifier.svg +10 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleReload.svg +8 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SimpleTask.svg +12 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SleepingBell.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SortColumn.svg +28 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SuccessHighFive.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SuccessScreen.svg +4 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-Tent.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-UnableToLoadImage.svg +8 -0
- package/src/sap/m/themes/base/library.source.less +2 -1
- package/src/sap/m/upload/UploadSet.js +14 -3
- package/src/sap/m/upload/UploadSetItem.js +5 -3
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
|
@@ -185,7 +185,7 @@ sap.ui.define([
|
|
|
185
185
|
* {@link sap.m.PlanningCalendarView PlanningCalendarView}'s properties.
|
|
186
186
|
*
|
|
187
187
|
* @extends sap.ui.core.Control
|
|
188
|
-
* @version 1.
|
|
188
|
+
* @version 1.108.0
|
|
189
189
|
*
|
|
190
190
|
* @constructor
|
|
191
191
|
* @public
|
|
@@ -377,6 +377,13 @@ sap.ui.define([
|
|
|
377
377
|
*/
|
|
378
378
|
firstDayOfWeek : {type : "int", group : "Appearance", defaultValue : -1},
|
|
379
379
|
|
|
380
|
+
/**
|
|
381
|
+
* If set, the calendar type is used for display.
|
|
382
|
+
* If not set, the calendar type of the global configuration is used.
|
|
383
|
+
* @since 1.108.0
|
|
384
|
+
*/
|
|
385
|
+
primaryCalendarType : {type : "sap.ui.core.CalendarType", group : "Appearance", defaultValue : null},
|
|
386
|
+
|
|
380
387
|
/**
|
|
381
388
|
* Determines whether the selection of multiple appointments is enabled.
|
|
382
389
|
*
|
|
@@ -819,6 +826,8 @@ sap.ui.define([
|
|
|
819
826
|
|
|
820
827
|
this._bBeforeRendering = true;
|
|
821
828
|
|
|
829
|
+
this._getHeader().setProperty("_primaryCalendarType", this.getPrimaryCalendarType());
|
|
830
|
+
|
|
822
831
|
// init interval if default one is used
|
|
823
832
|
this._adjustViewKey();
|
|
824
833
|
|
|
@@ -917,9 +926,9 @@ sap.ui.define([
|
|
|
917
926
|
*/
|
|
918
927
|
PlanningCalendar.prototype._applyArrowsLogic = function(bBackwards) {
|
|
919
928
|
if (bBackwards) {
|
|
920
|
-
this._dateNav.previous();
|
|
929
|
+
this._dateNav.previous(this.getPrimaryCalendarType());
|
|
921
930
|
} else {
|
|
922
|
-
this._dateNav.next();
|
|
931
|
+
this._dateNav.next(this.getPrimaryCalendarType());
|
|
923
932
|
}
|
|
924
933
|
|
|
925
934
|
if (this.getMinDate() && this._dateNav.getStart().getTime() <= this.getMinDate().getTime()) {
|
|
@@ -961,7 +970,7 @@ sap.ui.define([
|
|
|
961
970
|
|
|
962
971
|
switch (sViewType) {
|
|
963
972
|
case CalendarIntervalType.Hour:
|
|
964
|
-
oDateFormat = DateFormat.getDateInstance({format: "yMMMMd"});
|
|
973
|
+
oDateFormat = DateFormat.getDateInstance({format: "yMMMMd", calendarType: this.getPrimaryCalendarType()});
|
|
965
974
|
sBeginningResult = oDateFormat.format(oStartDate);
|
|
966
975
|
if (oStartDate.getDate() !== oEndDate.getDate()) {
|
|
967
976
|
sEndResult = oDateFormat.format(oEndDate);
|
|
@@ -978,7 +987,7 @@ sap.ui.define([
|
|
|
978
987
|
sBeginningResult = fnIntervalLabelFormatter ? fnIntervalLabelFormatter(iBeginning) : iBeginning;
|
|
979
988
|
sEndResult = fnIntervalLabelFormatter ? fnIntervalLabelFormatter(iBeginning + iEnding - 1) : iBeginning + iEnding;
|
|
980
989
|
} else {
|
|
981
|
-
oDateFormat = DateFormat.getDateInstance({ format: "yMMMMd" });
|
|
990
|
+
oDateFormat = DateFormat.getDateInstance({ format: "yMMMMd", calendarType: this.getPrimaryCalendarType() });
|
|
982
991
|
sBeginningResult = oDateFormat.format(oStartDate);
|
|
983
992
|
sEndResult = oDateFormat.format(oEndDate);
|
|
984
993
|
}
|
|
@@ -987,16 +996,20 @@ sap.ui.define([
|
|
|
987
996
|
|
|
988
997
|
case CalendarIntervalType.OneMonth:
|
|
989
998
|
case "OneMonth":
|
|
990
|
-
oDateFormat = DateFormat.getDateInstance({format: "yMMMM"});
|
|
999
|
+
oDateFormat = DateFormat.getDateInstance({format: "yMMMM", calendarType: this.getPrimaryCalendarType()});
|
|
991
1000
|
sBeginningResult = oDateFormat.format(oStartDate);
|
|
992
1001
|
break;
|
|
993
1002
|
|
|
994
1003
|
case CalendarIntervalType.Month:
|
|
995
|
-
oDateFormat = DateFormat.getDateInstance({format: "y"});
|
|
1004
|
+
oDateFormat = DateFormat.getDateInstance({format: "y", calendarType: this.getPrimaryCalendarType()});
|
|
996
1005
|
sBeginningResult = oDateFormat.format(oStartDate);
|
|
997
1006
|
if (oStartDate.getFullYear() !== oEndDate.getFullYear()) {
|
|
998
1007
|
sEndResult = oDateFormat.format(oEndDate);
|
|
999
1008
|
}
|
|
1009
|
+
|
|
1010
|
+
if (sBeginningResult === sEndResult) {
|
|
1011
|
+
sEndResult = undefined;
|
|
1012
|
+
}
|
|
1000
1013
|
break;
|
|
1001
1014
|
|
|
1002
1015
|
default:
|
|
@@ -1026,8 +1039,8 @@ sap.ui.define([
|
|
|
1026
1039
|
* @private
|
|
1027
1040
|
*/
|
|
1028
1041
|
PlanningCalendar.prototype._getFirstAndLastRangeDate = function () {
|
|
1029
|
-
var oUniStartDate = CalendarUtils._createUniversalUTCDate(this.getStartDate(),
|
|
1030
|
-
oUniEndDate = CalendarUtils._createUniversalUTCDate(this._dateNav.getEnd(),
|
|
1042
|
+
var oUniStartDate = CalendarUtils._createUniversalUTCDate(this.getStartDate(), this.getPrimaryCalendarType(), true),
|
|
1043
|
+
oUniEndDate = CalendarUtils._createUniversalUTCDate(this._dateNav.getEnd(), this.getPrimaryCalendarType(), true);
|
|
1031
1044
|
|
|
1032
1045
|
return {
|
|
1033
1046
|
oStartDate: oUniStartDate,
|
|
@@ -1092,7 +1105,7 @@ sap.ui.define([
|
|
|
1092
1105
|
* @public
|
|
1093
1106
|
*/
|
|
1094
1107
|
PlanningCalendar.prototype.getEndDate = function () {
|
|
1095
|
-
return this._dateNav.getEnd();
|
|
1108
|
+
return this._dateNav.getEnd(this.getPrimaryCalendarType());
|
|
1096
1109
|
};
|
|
1097
1110
|
|
|
1098
1111
|
/**
|
|
@@ -1394,6 +1407,37 @@ sap.ui.define([
|
|
|
1394
1407
|
|
|
1395
1408
|
};
|
|
1396
1409
|
|
|
1410
|
+
/**
|
|
1411
|
+
* Sets the primaryCalendarType. If not set, the calendar type of the global configuration is used.
|
|
1412
|
+
* @param {sap.ui.core.CalendarType} sPrimaryCalendarType the <code>sap.ui.core.CalendarType</code> to set as <code>sap.m.PlanningCalendar</code> <code>primaryCalendarType</code>.
|
|
1413
|
+
* @returns {this} <code>this</code> to allow method chaining
|
|
1414
|
+
* @public
|
|
1415
|
+
*/
|
|
1416
|
+
PlanningCalendar.prototype.setPrimaryCalendarType = function(sPrimaryCalendarType) {
|
|
1417
|
+
this.setProperty("primaryCalendarType", sPrimaryCalendarType);
|
|
1418
|
+
|
|
1419
|
+
if (this._getHeader()) {
|
|
1420
|
+
this._getHeader().setProperty("_primaryCalendarType", sPrimaryCalendarType);
|
|
1421
|
+
}
|
|
1422
|
+
if (this._oTimesRow) {
|
|
1423
|
+
this._oTimesRow.setProperty("primaryCalendarType", sPrimaryCalendarType);
|
|
1424
|
+
}
|
|
1425
|
+
if (this._oDatesRow) {
|
|
1426
|
+
this._oDatesRow.setPrimaryCalendarType(sPrimaryCalendarType);
|
|
1427
|
+
}
|
|
1428
|
+
if (this._oMonthsRow) {
|
|
1429
|
+
this._oMonthsRow.setProperty("primaryCalendarType", sPrimaryCalendarType);
|
|
1430
|
+
}
|
|
1431
|
+
if (this._oWeeksRow) {
|
|
1432
|
+
this._oWeeksRow.setPrimaryCalendarType(sPrimaryCalendarType);
|
|
1433
|
+
}
|
|
1434
|
+
if (this._oOneMonthsRow) {
|
|
1435
|
+
this._oOneMonthsRow.setPrimaryCalendarType(sPrimaryCalendarType);
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
return this;
|
|
1439
|
+
};
|
|
1440
|
+
|
|
1397
1441
|
PlanningCalendar.prototype.setMinDate = function(oDate){
|
|
1398
1442
|
|
|
1399
1443
|
if (deepEqual(oDate, this.getMinDate())) {
|
|
@@ -1671,9 +1715,9 @@ sap.ui.define([
|
|
|
1671
1715
|
months: iIntervals,
|
|
1672
1716
|
legend: this.getLegend()
|
|
1673
1717
|
});
|
|
1718
|
+
this._oMonthsRow.setProperty("primaryCalendarType", this.getPrimaryCalendarType());
|
|
1674
1719
|
this._setAriaRole(this._oMonthsRow);
|
|
1675
1720
|
this._oMonthsRow._setLegendControlOrigin(this);
|
|
1676
|
-
|
|
1677
1721
|
this._oMonthsRow.attachEvent("focus", this._handleFocus, this);
|
|
1678
1722
|
this._oMonthsRow.attachEvent("select", this._handleCalendarSelect, this);
|
|
1679
1723
|
this._oMonthsRow._oPlanningCalendar = this;
|
|
@@ -1698,6 +1742,17 @@ sap.ui.define([
|
|
|
1698
1742
|
}
|
|
1699
1743
|
|
|
1700
1744
|
var oContent = this.getAggregation("table").getInfoToolbar().getContent()[1];
|
|
1745
|
+
|
|
1746
|
+
if (oContent.getMetadata().hasProperty("_primaryCalendarType")) {
|
|
1747
|
+
oContent.setProperty("_primaryCalendarType", this.getPrimaryCalendarType());
|
|
1748
|
+
} else if (oContent.getMetadata().hasProperty("primaryCalendarType")) {
|
|
1749
|
+
oContent.setPrimaryCalendarType(this.getPrimaryCalendarType());
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
if (this._oOneMonthsRow) {
|
|
1753
|
+
this._oOneMonthsRow.setPrimaryCalendarType(this.getPrimaryCalendarType());
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1701
1756
|
if (oContent.setFirstDayOfWeek) {
|
|
1702
1757
|
oContent.setFirstDayOfWeek(this.getFirstDayOfWeek());
|
|
1703
1758
|
}
|
|
@@ -1723,6 +1778,7 @@ sap.ui.define([
|
|
|
1723
1778
|
|
|
1724
1779
|
if (sKey === PlanningCalendarBuiltInView.Week || sKey === PlanningCalendarBuiltInView.OneMonth || sKey === PlanningCalendarBuiltInView.Month || sKey === "OneMonth") {
|
|
1725
1780
|
oOldStartDate = this.getStartDate();
|
|
1781
|
+
|
|
1726
1782
|
this.setStartDate(new Date(oOldStartDate.getTime())); //make sure the start date is aligned according to the week/month rules
|
|
1727
1783
|
if (oOldStartDate.getTime() !== this.getStartDate().getTime()) {
|
|
1728
1784
|
this.fireStartDateChange();
|
|
@@ -1732,7 +1788,8 @@ sap.ui.define([
|
|
|
1732
1788
|
if (this._oOneMonthsRow && (sKey === PlanningCalendarBuiltInView.OneMonth || sKey === "OneMonth")) {
|
|
1733
1789
|
this._oOneMonthsRow.setMode(this._iSize);
|
|
1734
1790
|
this._oOldStartDate = new Date(this.getStartDate().getTime());
|
|
1735
|
-
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oOldStartDate));
|
|
1791
|
+
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oOldStartDate, this.getPrimaryCalendarType()));
|
|
1792
|
+
|
|
1736
1793
|
if (this._iSize < 2) {
|
|
1737
1794
|
this._setRowsStartDate(oOldStartDate);
|
|
1738
1795
|
}
|
|
@@ -1828,7 +1885,7 @@ sap.ui.define([
|
|
|
1828
1885
|
oStart,
|
|
1829
1886
|
oCurrent;
|
|
1830
1887
|
|
|
1831
|
-
this._dateNav.toDate(oDate);
|
|
1888
|
+
this._dateNav.toDate(oDate, this.getPrimaryCalendarType());
|
|
1832
1889
|
|
|
1833
1890
|
oStart = this._dateNav.getStart();
|
|
1834
1891
|
oCurrent = this._dateNav.getCurrent();
|
|
@@ -1896,10 +1953,13 @@ sap.ui.define([
|
|
|
1896
1953
|
* CalendarUtils.getFirstDateOfMonth works with UTC dates (this is because the dates are timezone irrelevant),
|
|
1897
1954
|
* it should be called with the local datetime values presented as UTC ones.
|
|
1898
1955
|
*/
|
|
1899
|
-
var oFirstDateOfMonth = CalendarUtils.
|
|
1956
|
+
var oFirstDateOfMonth = CalendarUtils._getFirstDateOfMonth(CalendarDate.fromLocalJSDate(oStartDate, this.getPrimaryCalendarType()));
|
|
1957
|
+
var oJSDate = oFirstDateOfMonth.toLocalJSDate();
|
|
1958
|
+
oJSDate.setHours(oStartDate.getHours(), oStartDate.getMinutes(), oStartDate.getSeconds());
|
|
1900
1959
|
//CalendarUtils.getFirstDateOfMonth works with UTC based date values, restore the result back in local timezone.
|
|
1901
|
-
oStartDate.setTime(
|
|
1960
|
+
oStartDate.setTime(oJSDate.getTime());
|
|
1902
1961
|
}
|
|
1962
|
+
|
|
1903
1963
|
return oStartDate;
|
|
1904
1964
|
};
|
|
1905
1965
|
|
|
@@ -2757,7 +2817,7 @@ sap.ui.define([
|
|
|
2757
2817
|
sViewKey = this.getViewKey(),
|
|
2758
2818
|
oFocusMonthDelegate = {
|
|
2759
2819
|
onAfterRendering: function() {
|
|
2760
|
-
this._focusDate(CalendarDate.fromLocalJSDate(new Date()));
|
|
2820
|
+
this._focusDate(CalendarDate.fromLocalJSDate(new Date(), this.getPrimaryCalendarType()));
|
|
2761
2821
|
this.removeDelegate(oFocusMonthDelegate);
|
|
2762
2822
|
}
|
|
2763
2823
|
};
|
|
@@ -2765,10 +2825,10 @@ sap.ui.define([
|
|
|
2765
2825
|
// if the OneMonth view is selected and Today btn is pressed,
|
|
2766
2826
|
// the calendar should start from the 1st date of the current month
|
|
2767
2827
|
if (sViewKey === PlanningCalendarBuiltInView.OneMonth || sViewKey === "OneMonth") {
|
|
2768
|
-
oStartDate = CalendarUtils.
|
|
2769
|
-
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oDate));
|
|
2828
|
+
oStartDate = CalendarUtils._getFirstDateOfMonth(CalendarDate.fromLocalJSDate(oDate, this.getPrimaryCalendarType()));
|
|
2829
|
+
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oDate, this.getPrimaryCalendarType()));
|
|
2770
2830
|
|
|
2771
|
-
oDate =
|
|
2831
|
+
oDate = oStartDate.toLocalJSDate();
|
|
2772
2832
|
}
|
|
2773
2833
|
|
|
2774
2834
|
if (sViewKey === PlanningCalendarBuiltInView.Week) {
|
|
@@ -2861,7 +2921,6 @@ sap.ui.define([
|
|
|
2861
2921
|
};
|
|
2862
2922
|
|
|
2863
2923
|
PlanningCalendar.prototype._handleCalendarSelect = function (oEvent) {
|
|
2864
|
-
|
|
2865
2924
|
var aSelectedDates = oEvent.getSource().getSelectedDates();
|
|
2866
2925
|
|
|
2867
2926
|
if (!aSelectedDates.length) {
|
|
@@ -2869,8 +2928,9 @@ sap.ui.define([
|
|
|
2869
2928
|
}
|
|
2870
2929
|
|
|
2871
2930
|
var oEvtSelectedStartDate = new Date(aSelectedDates[0].getStartDate());
|
|
2931
|
+
var oEvtSelectedStartCalendarDate = CalendarDate.fromLocalJSDate(oEvtSelectedStartDate, this.getPrimaryCalendarType());
|
|
2872
2932
|
// calculate end date
|
|
2873
|
-
var oEndDate = CalendarUtils._createUniversalUTCDate(oEvtSelectedStartDate,
|
|
2933
|
+
var oEndDate = CalendarUtils._createUniversalUTCDate(oEvtSelectedStartDate, this.getPrimaryCalendarType(), true);
|
|
2874
2934
|
var sKey = this.getViewKey();
|
|
2875
2935
|
var oView = this._getView(sKey);
|
|
2876
2936
|
var sIntervalType = oView.getIntervalType();
|
|
@@ -2895,15 +2955,15 @@ sap.ui.define([
|
|
|
2895
2955
|
case CalendarIntervalType.OneMonth:
|
|
2896
2956
|
case "OneMonth":
|
|
2897
2957
|
if (this._iSize < 2) { // change rows' startDate on S and M sizes
|
|
2898
|
-
var oFocusedDate = new Date(
|
|
2899
|
-
if (CalendarUtils.monthsDiffer(this.getStartDate(),
|
|
2900
|
-
this.setStartDate(
|
|
2958
|
+
var oFocusedDate = new Date(oEvtSelectedStartCalendarDate.toLocalJSDate().getTime());
|
|
2959
|
+
if (CalendarUtils.monthsDiffer(this.getStartDate(), oEvtSelectedStartCalendarDate.toLocalJSDate())) {
|
|
2960
|
+
this.setStartDate(oEvtSelectedStartCalendarDate.toLocalJSDate());
|
|
2901
2961
|
this._getHeader().setPickerText(this._formatPickerText());
|
|
2902
2962
|
}
|
|
2903
2963
|
this._setRowsStartDate(oFocusedDate);
|
|
2904
|
-
this._oOneMonthsRow._focusDate(CalendarDate.fromLocalJSDate(oFocusedDate), true);
|
|
2905
|
-
} else if (CalendarUtils._isNextMonth(
|
|
2906
|
-
this.shiftToDate(
|
|
2964
|
+
this._oOneMonthsRow._focusDate(CalendarDate.fromLocalJSDate(oFocusedDate, this.getPrimaryCalendarType()), true);
|
|
2965
|
+
} else if (CalendarUtils._isNextMonth(oEvtSelectedStartCalendarDate.toLocalJSDate(), this.getStartDate())) {
|
|
2966
|
+
this.shiftToDate(oEvtSelectedStartCalendarDate);
|
|
2907
2967
|
this._addMonthFocusDelegate(this._getRowInstanceByViewKey(this.getViewKey()));
|
|
2908
2968
|
return;
|
|
2909
2969
|
}
|
|
@@ -3061,7 +3121,7 @@ sap.ui.define([
|
|
|
3061
3121
|
oSelectedDate = (this._getSelectedDates().length && this._getSelectedDates()[0].getStartDate()) ?
|
|
3062
3122
|
this._getSelectedDates()[0].getStartDate() : this.getStartDate();
|
|
3063
3123
|
this._oOneMonthsRow.setMode(this._iSize);
|
|
3064
|
-
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oSelectedDate));
|
|
3124
|
+
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oSelectedDate, this.getPrimaryCalendarType()));
|
|
3065
3125
|
}
|
|
3066
3126
|
|
|
3067
3127
|
// Call _updateStickyHeader only if the property stickyHeader is set to true
|
|
@@ -21,6 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
'sap/ui/unified/calendar/CustomYearPicker',
|
|
22
22
|
'sap/ui/unified/calendar/IndexPicker',
|
|
23
23
|
'sap/ui/core/Configuration',
|
|
24
|
+
'sap/ui/unified/calendar/CalendarDate',
|
|
24
25
|
'sap/ui/core/IconPool',
|
|
25
26
|
'sap/ui/core/InvisibleText',
|
|
26
27
|
'sap/ui/core/library',
|
|
@@ -42,6 +43,7 @@ function(
|
|
|
42
43
|
CustomYearPicker,
|
|
43
44
|
IndexPicker,
|
|
44
45
|
Configuration,
|
|
46
|
+
CalendarDate,
|
|
45
47
|
IconPool,
|
|
46
48
|
InvisibleText,
|
|
47
49
|
coreLibrary,
|
|
@@ -90,7 +92,7 @@ function(
|
|
|
90
92
|
* @extends sap.ui.core.Control
|
|
91
93
|
*
|
|
92
94
|
* @author SAP SE
|
|
93
|
-
* @version 1.
|
|
95
|
+
* @version 1.108.0
|
|
94
96
|
*
|
|
95
97
|
* @constructor
|
|
96
98
|
* @private
|
|
@@ -119,7 +121,15 @@ function(
|
|
|
119
121
|
/**
|
|
120
122
|
* Determines the text of the button which opens the calendar picker.
|
|
121
123
|
*/
|
|
122
|
-
pickerText : { type : "string", group : "Data" }
|
|
124
|
+
pickerText : { type : "string", group : "Data" },
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* If set, the calendar type is used for display.
|
|
128
|
+
* If not set, the calendar type of the global configuration is used.
|
|
129
|
+
* @private
|
|
130
|
+
* @since 1.108.0
|
|
131
|
+
*/
|
|
132
|
+
_primaryCalendarType : {type : "sap.ui.core.CalendarType", group : "Appearance", defaultValue : null}
|
|
123
133
|
|
|
124
134
|
},
|
|
125
135
|
|
|
@@ -245,6 +255,7 @@ function(
|
|
|
245
255
|
var sOPHId = this.getId(),
|
|
246
256
|
sNavToolbarId = sOPHId + "-NavToolbar",
|
|
247
257
|
oRB = sap.ui.getCore().getLibraryResourceBundle("sap.m"),
|
|
258
|
+
sCalendarType = this.getProperty("_primaryCalendarType"),
|
|
248
259
|
oPicker,
|
|
249
260
|
oCalendarPicker,
|
|
250
261
|
oMonthPicker,
|
|
@@ -281,7 +292,8 @@ function(
|
|
|
281
292
|
}.bind(this)
|
|
282
293
|
});
|
|
283
294
|
oCalendarPicker = new Calendar(sOPHId + "-Cal", {
|
|
284
|
-
ariaLabelledBy: InvisibleText.getStaticId("sap.m", "PCH_RANGE_PICKER")
|
|
295
|
+
ariaLabelledBy: InvisibleText.getStaticId("sap.m", "PCH_RANGE_PICKER"),
|
|
296
|
+
primaryCalendarType: sCalendarType
|
|
285
297
|
});
|
|
286
298
|
oCalendarPicker.attachEvent("select", this._handlePickerDateSelect, this);
|
|
287
299
|
oCalendarPicker.attachEvent("cancel", this._handlePickerCancelEvent, this);
|
|
@@ -299,7 +311,8 @@ function(
|
|
|
299
311
|
this.setAssociation("currentPicker", oCalendarPicker);
|
|
300
312
|
|
|
301
313
|
oMonthPicker = new CustomMonthPicker(sOPHId + "-MonthCal", {
|
|
302
|
-
ariaLabelledBy: InvisibleText.getStaticId("sap.m", "PCH_RANGE_PICKER")
|
|
314
|
+
ariaLabelledBy: InvisibleText.getStaticId("sap.m", "PCH_RANGE_PICKER"),
|
|
315
|
+
primaryCalendarType: sCalendarType
|
|
303
316
|
});
|
|
304
317
|
oMonthPicker.attachEvent("select", this._handlePickerDateSelect, this);
|
|
305
318
|
oMonthPicker.attachEvent("cancel", this._handlePickerCancelEvent, this);
|
|
@@ -307,7 +320,8 @@ function(
|
|
|
307
320
|
this._oMonthPicker = oMonthPicker;
|
|
308
321
|
|
|
309
322
|
oYearPicker = new CustomYearPicker(sOPHId + "-YearCal", {
|
|
310
|
-
ariaLabelledBy: InvisibleText.getStaticId("sap.m", "PCH_RANGE_PICKER")
|
|
323
|
+
ariaLabelledBy: InvisibleText.getStaticId("sap.m", "PCH_RANGE_PICKER"),
|
|
324
|
+
primaryCalendarType: sCalendarType
|
|
311
325
|
});
|
|
312
326
|
oYearPicker.attachEvent("select", this._handlePickerDateSelect, this);
|
|
313
327
|
oYearPicker.attachEvent("cancel", this._handlePickerCancelEvent, this);
|
|
@@ -383,6 +397,8 @@ function(
|
|
|
383
397
|
var bVisible = !!this.getActions().length || !!this.getTitle() || this._getOrCreateViewSwitch().getItems().length > 1;
|
|
384
398
|
|
|
385
399
|
this._getActionsToolbar().setProperty("visible", bVisible, true);
|
|
400
|
+
|
|
401
|
+
this.setPrimaryCalendarTypeToPickers(this.getProperty("_primaryCalendarType"));
|
|
386
402
|
};
|
|
387
403
|
|
|
388
404
|
PlanningCalendarHeader.prototype.setTitle = function (sTitle) {
|
|
@@ -449,6 +465,12 @@ function(
|
|
|
449
465
|
return this;
|
|
450
466
|
};
|
|
451
467
|
|
|
468
|
+
PlanningCalendarHeader.prototype.setPrimaryCalendarTypeToPickers = function (sCalendarType) {
|
|
469
|
+
this._oCalendar.setPrimaryCalendarType(sCalendarType);
|
|
470
|
+
this._oMonthPicker.setPrimaryCalendarType(sCalendarType);
|
|
471
|
+
this._oYearPicker.setPrimaryCalendarType(sCalendarType);
|
|
472
|
+
};
|
|
473
|
+
|
|
452
474
|
/**
|
|
453
475
|
* If not existing yet, creates the inner Title control.
|
|
454
476
|
* Otherwise just returns it.
|
|
@@ -25,7 +25,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/unified/library'],
|
|
|
25
25
|
* The <code>PlanningCalendarView</code> defines the type of the intervals (hours, days, months)
|
|
26
26
|
* and how many intervals are displayed.
|
|
27
27
|
* @extends sap.ui.core.Element
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.108.0
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
package/src/sap/m/Popover.js
CHANGED
package/src/sap/m/QuickView.js
CHANGED
package/src/sap/m/RadioButton.js
CHANGED
package/src/sap/m/RangeSlider.js
CHANGED
package/src/sap/m/ScrollBar.js
CHANGED
|
@@ -25,7 +25,7 @@ function(Control, ScrollBarRenderer) {
|
|
|
25
25
|
* care of only rendering the currently visible rows and use this <code>ScrollBar</code> control to make
|
|
26
26
|
* the users think they are actually scrolling through a long list.
|
|
27
27
|
* @extends sap.ui.core.Control
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.108.0
|
|
29
29
|
*
|
|
30
30
|
* @private
|
|
31
31
|
* @alias sap.m.ScrollBar
|
package/src/sap/m/SearchField.js
CHANGED
package/src/sap/m/Select.js
CHANGED
package/src/sap/m/SelectList.js
CHANGED