@openui5/sap.m 1.93.1 → 1.96.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/.reuse/dep5 +11 -11
- package/THIRDPARTY.txt +20 -17
- 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/App.js +5 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +1 -4
- package/src/sap/m/Bar.js +13 -7
- package/src/sap/m/Breadcrumbs.js +2 -2
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +34 -1
- package/src/sap/m/Carousel.js +11 -3
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/CheckBoxRenderer.js +12 -3
- package/src/sap/m/ColorPalette.js +7 -11
- package/src/sap/m/ColorPalettePopover.js +1 -6
- package/src/sap/m/Column.js +6 -1
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +1 -1
- package/src/sap/m/ComboBoxBase.js +5 -2
- package/src/sap/m/ComboBoxRenderer.js +25 -9
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomDynamicDateOption.js +14 -2
- 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 +27 -10
- package/src/sap/m/DatePickerRenderer.js +1 -1
- package/src/sap/m/DateRangeSelection.js +6 -9
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +6 -9
- package/src/sap/m/Dialog.js +44 -127
- package/src/sap/m/DialogRenderer.js +1 -1
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +15 -6
- package/src/sap/m/DynamicDateOption.js +58 -17
- package/src/sap/m/DynamicDateRange.js +47 -10
- package/src/sap/m/DynamicDateUtil.js +6 -3
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +47 -16
- 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 +217 -52
- package/src/sap/m/GenericTileRenderer.js +218 -83
- 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 +53 -1
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +8 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +8 -6
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +16 -4
- package/src/sap/m/IconTabSeparator.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 +124 -28
- package/src/sap/m/InputBase.js +16 -7
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +2 -2
- 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 +12 -5
- package/src/sap/m/ListItemBase.js +16 -16
- package/src/sap/m/MaskEnabler.js +106 -4
- package/src/sap/m/MaskInput.js +19 -4
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +8 -6
- package/src/sap/m/MenuButton.js +20 -3
- package/src/sap/m/MenuButtonRenderer.js +1 -0
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageBox.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 +7 -3
- package/src/sap/m/MessageStripRenderer.js +2 -2
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +5 -5
- package/src/sap/m/MultiComboBox.js +333 -114
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +55 -6
- package/src/sap/m/NavContainer.js +24 -7
- package/src/sap/m/NewsContent.js +19 -10
- package/src/sap/m/NewsContentRenderer.js +1 -2
- 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/NumericContentRenderer.js +34 -17
- package/src/sap/m/ObjectAttribute.js +46 -5
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectHeaderRenderer.js +6 -7
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +13 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/ObjectStatusRenderer.js +4 -1
- package/src/sap/m/OverflowToolbar.js +3 -5
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +4 -2
- 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 +3 -3
- package/src/sap/m/P13nConditionPanel.js +23 -53
- package/src/sap/m/P13nDialog.js +1 -1
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +3 -3
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -3
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +1 -3
- 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 -3
- package/src/sap/m/PDFViewer.js +14 -5
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +139 -41
- package/src/sap/m/PlanningCalendarHeader.js +1 -6
- package/src/sap/m/PlanningCalendarLegend.js +1 -6
- package/src/sap/m/PlanningCalendarLegendRenderer.js +2 -5
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -6
- package/src/sap/m/Popover.js +5 -5
- package/src/sap/m/PopoverRenderer.js +3 -2
- 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 +10 -8
- 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 +6 -34
- package/src/sap/m/SearchFieldRenderer.js +16 -12
- package/src/sap/m/SegmentedButton.js +12 -17
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/SegmentedButtonRenderer.js +6 -0
- package/src/sap/m/Select.js +18 -8
- 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 +10 -1
- package/src/sap/m/SelectionDetails.js +7 -9
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +8 -4
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +9 -17
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +7 -10
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +15 -13
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +17 -7
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -6
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +4 -6
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -6
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -6
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -6
- package/src/sap/m/SlideTile.js +31 -3
- package/src/sap/m/SlideTileRenderer.js +9 -0
- 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 +3 -7
- package/src/sap/m/SplitButtonRenderer.js +5 -1
- package/src/sap/m/SplitContainer.js +13 -8
- package/src/sap/m/StandardDynamicDateOption.js +50 -12
- package/src/sap/m/StandardListItem.js +69 -26
- package/src/sap/m/StandardListItemRenderer.js +21 -9
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +28 -13
- package/src/sap/m/Suggest.js +25 -25
- package/src/sap/m/SuggestionItem.js +1 -7
- package/src/sap/m/SuggestionsPopover.js +44 -1
- package/src/sap/m/Switch.js +9 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +2 -4
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableRenderer.js +3 -3
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +2 -2
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +22 -4
- package/src/sap/m/TileContentRenderer.js +73 -5
- package/src/sap/m/TimePicker.js +4 -3
- package/src/sap/m/TimePickerClock.js +2 -2
- package/src/sap/m/TimePickerClocks.js +2 -1
- package/src/sap/m/TimePickerInputs.js +3 -3
- package/src/sap/m/TimePickerInternals.js +1 -1
- package/src/sap/m/TimePickerSlider.js +2 -2
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/TimePickerSlidersRenderer.js +0 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +46 -3
- package/src/sap/m/TokenizerRenderer.js +5 -0
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +2 -7
- 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 +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 +2 -2
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +2 -1
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardProgressNavigatorRenderer.js +3 -2
- 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 +16 -17
- package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +86 -0
- package/src/sap/m/changeHandler/SplitMenuButton.js +12 -6
- package/src/sap/m/delegate/DateNavigation.js +4 -5
- package/src/sap/m/designtime/IconTabBar.designtime.js +85 -2
- package/src/sap/m/designtime/IconTabBarSelectTab.fragment.xml +17 -0
- package/src/sap/m/designtime/MenuButton.designtime.js +3 -0
- package/src/sap/m/designtime/ObjectIdentifier.designtime.js +16 -12
- package/src/sap/m/designtime/messagebundle.properties +9 -0
- package/src/sap/m/designtime/messagebundle_ar.properties +6 -0
- package/src/sap/m/designtime/messagebundle_bg.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ca.properties +6 -0
- package/src/sap/m/designtime/messagebundle_cs.properties +6 -0
- package/src/sap/m/designtime/messagebundle_cy.properties +6 -0
- package/src/sap/m/designtime/messagebundle_da.properties +6 -0
- package/src/sap/m/designtime/messagebundle_de.properties +8 -2
- package/src/sap/m/designtime/messagebundle_el.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en_GB.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en_US_sappsd.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en_US_saprigi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_en_US_saptrc.properties +6 -0
- package/src/sap/m/designtime/messagebundle_es.properties +6 -0
- package/src/sap/m/designtime/messagebundle_es_MX.properties +6 -0
- package/src/sap/m/designtime/messagebundle_et.properties +6 -0
- package/src/sap/m/designtime/messagebundle_fi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_fr.properties +6 -0
- package/src/sap/m/designtime/messagebundle_fr_CA.properties +6 -0
- package/src/sap/m/designtime/messagebundle_hi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_hr.properties +6 -0
- package/src/sap/m/designtime/messagebundle_hu.properties +6 -0
- package/src/sap/m/designtime/messagebundle_id.properties +6 -0
- package/src/sap/m/designtime/messagebundle_it.properties +6 -0
- package/src/sap/m/designtime/messagebundle_iw.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ja.properties +6 -0
- package/src/sap/m/designtime/messagebundle_kk.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ko.properties +6 -0
- package/src/sap/m/designtime/messagebundle_lt.properties +6 -0
- package/src/sap/m/designtime/messagebundle_lv.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ms.properties +6 -0
- package/src/sap/m/designtime/messagebundle_nl.properties +6 -0
- package/src/sap/m/designtime/messagebundle_no.properties +6 -0
- package/src/sap/m/designtime/messagebundle_pl.properties +6 -0
- package/src/sap/m/designtime/messagebundle_pt.properties +6 -0
- package/src/sap/m/designtime/messagebundle_pt_PT.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ro.properties +6 -0
- package/src/sap/m/designtime/messagebundle_ru.properties +6 -0
- package/src/sap/m/designtime/messagebundle_sh.properties +6 -0
- package/src/sap/m/designtime/messagebundle_sk.properties +6 -0
- package/src/sap/m/designtime/messagebundle_sl.properties +6 -0
- package/src/sap/m/designtime/messagebundle_sv.properties +6 -0
- package/src/sap/m/designtime/messagebundle_th.properties +6 -0
- package/src/sap/m/designtime/messagebundle_tr.properties +6 -0
- package/src/sap/m/designtime/messagebundle_uk.properties +6 -0
- package/src/sap/m/designtime/messagebundle_vi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_zh_CN.properties +6 -0
- package/src/sap/m/designtime/messagebundle_zh_TW.properties +6 -0
- package/src/sap/m/flexibility/IconTabBar.flexibility.js +21 -0
- package/src/sap/m/flexibility/MenuButton.flexibility.js +1 -0
- package/src/sap/m/inputUtils/ListHelpers.js +16 -3
- package/src/sap/m/library.js +60 -34
- package/src/sap/m/messagebundle.properties +59 -7
- package/src/sap/m/messagebundle_ar.properties +13 -5
- package/src/sap/m/messagebundle_bg.properties +13 -5
- package/src/sap/m/messagebundle_ca.properties +13 -5
- package/src/sap/m/messagebundle_cs.properties +24 -16
- package/src/sap/m/messagebundle_cy.properties +13 -5
- package/src/sap/m/messagebundle_da.properties +14 -6
- package/src/sap/m/messagebundle_de.properties +14 -6
- package/src/sap/m/messagebundle_el.properties +14 -6
- package/src/sap/m/messagebundle_en.properties +10 -2
- package/src/sap/m/messagebundle_en_GB.properties +10 -2
- package/src/sap/m/messagebundle_en_US_sappsd.properties +26 -3
- package/src/sap/m/messagebundle_en_US_saprigi.properties +39 -3
- package/src/sap/m/messagebundle_en_US_saptrc.properties +14 -6
- package/src/sap/m/messagebundle_es.properties +13 -5
- package/src/sap/m/messagebundle_es_MX.properties +16 -8
- package/src/sap/m/messagebundle_et.properties +13 -5
- package/src/sap/m/messagebundle_fi.properties +13 -5
- package/src/sap/m/messagebundle_fr.properties +26 -18
- package/src/sap/m/messagebundle_fr_CA.properties +14 -6
- package/src/sap/m/messagebundle_hi.properties +13 -5
- package/src/sap/m/messagebundle_hr.properties +13 -5
- package/src/sap/m/messagebundle_hu.properties +13 -5
- package/src/sap/m/messagebundle_id.properties +15 -7
- package/src/sap/m/messagebundle_it.properties +19 -11
- package/src/sap/m/messagebundle_iw.properties +13 -5
- package/src/sap/m/messagebundle_ja.properties +13 -5
- package/src/sap/m/messagebundle_kk.properties +13 -5
- package/src/sap/m/messagebundle_ko.properties +14 -6
- package/src/sap/m/messagebundle_lt.properties +13 -5
- package/src/sap/m/messagebundle_lv.properties +13 -5
- package/src/sap/m/messagebundle_ms.properties +14 -6
- package/src/sap/m/messagebundle_nl.properties +15 -7
- package/src/sap/m/messagebundle_no.properties +25 -17
- package/src/sap/m/messagebundle_pl.properties +17 -9
- package/src/sap/m/messagebundle_pt.properties +16 -8
- package/src/sap/m/messagebundle_pt_PT.properties +13 -5
- package/src/sap/m/messagebundle_ro.properties +18 -10
- package/src/sap/m/messagebundle_ru.properties +14 -6
- package/src/sap/m/messagebundle_sh.properties +14 -6
- package/src/sap/m/messagebundle_sk.properties +13 -5
- package/src/sap/m/messagebundle_sl.properties +13 -5
- package/src/sap/m/messagebundle_sv.properties +13 -5
- package/src/sap/m/messagebundle_th.properties +13 -5
- package/src/sap/m/messagebundle_tr.properties +13 -5
- package/src/sap/m/messagebundle_uk.properties +16 -8
- package/src/sap/m/messagebundle_vi.properties +14 -6
- package/src/sap/m/messagebundle_zh_CN.properties +13 -5
- package/src/sap/m/messagebundle_zh_TW.properties +13 -5
- package/src/sap/m/p13n/AbstractContainer.js +243 -0
- package/src/sap/m/p13n/AbstractContainerItem.js +94 -0
- package/src/sap/m/p13n/BasePanel.js +643 -0
- package/src/sap/m/p13n/Container.js +239 -0
- package/src/sap/m/p13n/GroupPanel.js +119 -0
- package/src/sap/m/p13n/QueryPanel.js +312 -0
- package/src/sap/m/p13n/SelectionPanel.js +403 -0
- package/src/sap/m/p13n/SortPanel.js +139 -0
- package/src/sap/m/plugins/ColumnResizer.js +23 -2
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +9 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/routing/TargetHandler.js +24 -22
- package/src/sap/m/routing/async/Target.js +3 -2
- 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 +3 -5
- 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 +2 -2
- package/src/sap/m/semantic/SemanticPage.js +1 -1
- package/src/sap/m/semantic/SemanticSelect.js +1 -1
- package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/m/semantic/SendEmailAction.js +1 -1
- package/src/sap/m/semantic/SendMessageAction.js +1 -1
- package/src/sap/m/semantic/ShareInJamAction.js +1 -1
- package/src/sap/m/semantic/ShareMenu.js +1 -1
- package/src/sap/m/semantic/ShareMenuPage.js +1 -1
- package/src/sap/m/semantic/SortAction.js +1 -1
- package/src/sap/m/semantic/SortSelect.js +1 -1
- package/src/sap/m/table/Util.js +192 -0
- package/src/sap/m/themes/base/AbstractContainer.less +17 -0
- package/src/sap/m/themes/base/Carousel.less +37 -2
- package/src/sap/m/themes/base/ColumnListItem.less +2 -2
- package/src/sap/m/themes/base/Dialog.less +22 -33
- package/src/sap/m/themes/base/GenericTile.less +386 -17
- package/src/sap/m/themes/base/IconTabBar.less +18 -13
- package/src/sap/m/themes/base/IconTabBarSelectList.less +4 -2
- package/src/sap/m/themes/base/Input.less +12 -0
- package/src/sap/m/themes/base/InputBase.less +0 -24
- package/src/sap/m/themes/base/Label.less +6 -0
- package/src/sap/m/themes/base/ListBase.less +7 -5
- package/src/sap/m/themes/base/ListItemBase.less +4 -2
- package/src/sap/m/themes/base/MessagePage.less +1 -7
- package/src/sap/m/themes/base/MessageView.less +4 -0
- package/src/sap/m/themes/base/MultiComboBox.less +17 -0
- package/src/sap/m/themes/base/NewsContent.less +7 -1
- package/src/sap/m/themes/base/NotificationListBase.less +1 -1
- package/src/sap/m/themes/base/NumericContent.less +87 -0
- package/src/sap/m/themes/base/ObjectMarker.less +3 -0
- package/src/sap/m/themes/base/ObjectNumber.less +10 -2
- package/src/sap/m/themes/base/ObjectStatus.less +14 -0
- package/src/sap/m/themes/base/OverflowToolbarAssociativePopover.less +0 -6
- package/src/sap/m/themes/base/P13nContainer.less +17 -0
- package/src/sap/m/themes/base/P13nDialog.less +4 -0
- package/src/sap/m/themes/base/SearchField.less +21 -14
- package/src/sap/m/themes/base/SegmentedButton.less +1 -1
- package/src/sap/m/themes/base/SinglePlanningCalendarGrid.less +1 -2
- package/src/sap/m/themes/base/SlideTile.less +15 -0
- package/src/sap/m/themes/base/StandardListItem.less +6 -1
- package/src/sap/m/themes/base/Table.less +18 -27
- package/src/sap/m/themes/base/Text.less +6 -0
- package/src/sap/m/themes/base/TextArea.less +1 -1
- package/src/sap/m/themes/base/TileContent.less +4 -0
- package/src/sap/m/themes/base/TimePickerSliders.less +1 -5
- package/src/sap/m/themes/base/Token.less +0 -3
- package/src/sap/m/themes/base/Tokenizer.less +6 -0
- package/src/sap/m/themes/base/UploadSet.less +5 -0
- package/src/sap/m/themes/base/ViewSettingsDialog.less +28 -1
- package/src/sap/m/themes/base/library.source.less +4 -0
- package/src/sap/m/themes/base/p13n.Container.less +17 -0
- package/src/sap/m/themes/base/p13n.QueryPanel.less +7 -0
- package/src/sap/m/themes/base/p13n.SelectionPanel.less +32 -0
- package/src/sap/m/themes/sap_hcb/IconTabBar.less +3 -3
- package/src/sap/m/themes/sap_hcb/InputBase.less +25 -0
- package/src/sap/m/upload/UploadSet.js +48 -23
- package/src/sap/m/upload/UploadSetItem.js +24 -4
- package/ui5.yaml +4 -1
- package/src/sap/m/ios7.js +0 -199
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
// Ensure that sap.ui.unified is loaded before the module dependencies will be required.
|
|
8
|
-
// Loading it synchronously is the only compatible option and doesn't harm when sap.ui.unified
|
|
9
|
-
// already has been loaded asynchronously (e.g. via a dependency declared in the manifest)
|
|
10
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
11
|
-
|
|
12
7
|
//Provides control sap.m.PlanningCalendar.
|
|
13
8
|
sap.ui.define([
|
|
14
9
|
'sap/m/delegate/DateNavigation',
|
|
@@ -166,11 +161,13 @@ sap.ui.define([
|
|
|
166
161
|
* a whole week/month. The available navigation allows the user to select a specific interval using a picker, or
|
|
167
162
|
* move to the previous/next interval using arrows.
|
|
168
163
|
*
|
|
169
|
-
* <b>Note:</b> The
|
|
164
|
+
* <b>Note:</b> The application developer should add dependency to <code>sap.ui.unified</code> library
|
|
165
|
+
* on application level to ensure that the library is loaded before the module dependencies will be required.
|
|
166
|
+
* The <code>PlanningCalendar</code> uses parts of the <code>sap.ui.unified</code> library.
|
|
170
167
|
* This library will be loaded after the <code>PlanningCalendar</code>, if it wasn't loaded first.
|
|
171
|
-
* This could lead to
|
|
168
|
+
* This could lead to CSP compliance issues and adds an additional waiting time when a <code>PlanningCalendar</code> is used for the first time.
|
|
172
169
|
* To prevent this, apps that use the <code>PlanningCalendar</code> should also load the
|
|
173
|
-
* <code>sap.ui.unified</code> library.
|
|
170
|
+
* <code>sap.ui.unified</code> library in advance.
|
|
174
171
|
*
|
|
175
172
|
* <h3>Usage</h3>
|
|
176
173
|
*
|
|
@@ -201,7 +198,7 @@ sap.ui.define([
|
|
|
201
198
|
* {@link sap.m.PlanningCalendarView PlanningCalendarView}'s properties.
|
|
202
199
|
*
|
|
203
200
|
* @extends sap.ui.core.Control
|
|
204
|
-
* @version 1.
|
|
201
|
+
* @version 1.96.0
|
|
205
202
|
*
|
|
206
203
|
* @constructor
|
|
207
204
|
* @public
|
|
@@ -301,7 +298,7 @@ sap.ui.define([
|
|
|
301
298
|
appointmentHeight: { type: "sap.ui.unified.CalendarAppointmentHeight", group: "Appearance", defaultValue: CalendarAppointmentHeight.Regular },
|
|
302
299
|
|
|
303
300
|
/**
|
|
304
|
-
* Defines rounding of the width <code>CalendarAppoinment
|
|
301
|
+
* Defines rounding of the width <code>CalendarAppoinment</code>
|
|
305
302
|
* <b>Note:</b> This property is applied, when the calendar interval type is day and the view shows more than 20 days
|
|
306
303
|
* @experimental Since 1.81.0
|
|
307
304
|
* @since 1.81.0
|
|
@@ -381,7 +378,18 @@ sap.ui.define([
|
|
|
381
378
|
* Therefore, all features and restrictions of the property in <code>sap.m.Table</code> apply to the <code>PlanningCalendar</code> as well.
|
|
382
379
|
* @since 1.54
|
|
383
380
|
*/
|
|
384
|
-
stickyHeader : {type : "boolean", group : "Appearance", defaultValue : false}
|
|
381
|
+
stickyHeader : {type : "boolean", group : "Appearance", defaultValue : false},
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* If set, the first day of the displayed week is this day. Valid values are 0 to 6 starting on Sunday.
|
|
385
|
+
* If there is no valid value set, the default of the used locale is used.
|
|
386
|
+
*
|
|
387
|
+
* Note: this property will only have effect in the weekly – based views of the PlanningCalendar – Week view,
|
|
388
|
+
* and OneMonth view (on small devices).
|
|
389
|
+
*
|
|
390
|
+
* @since 1.94
|
|
391
|
+
*/
|
|
392
|
+
firstDayOfWeek : {type : "int", group : "Appearance", defaultValue : -1}
|
|
385
393
|
},
|
|
386
394
|
aggregations : {
|
|
387
395
|
|
|
@@ -755,7 +763,7 @@ sap.ui.define([
|
|
|
755
763
|
this._adjustColumnHeadersTopOffset();
|
|
756
764
|
}
|
|
757
765
|
}, false, this);
|
|
758
|
-
|
|
766
|
+
oTable.getStickyFocusOffset = getStickyFocusOffset.bind(this);
|
|
759
767
|
this.setAggregation("table", oTable, true);
|
|
760
768
|
|
|
761
769
|
this.setStartDate(new Date());
|
|
@@ -929,7 +937,7 @@ sap.ui.define([
|
|
|
929
937
|
var oRow = this._getRowInstanceByViewKey(this.getViewKey());
|
|
930
938
|
|
|
931
939
|
this.setStartDate(this._dateNav.getStart());
|
|
932
|
-
oRow.
|
|
940
|
+
oRow.displayDate(this._dateNav.getCurrent());
|
|
933
941
|
this._updatePickerSelection();
|
|
934
942
|
this.fireStartDateChange();
|
|
935
943
|
};
|
|
@@ -980,6 +988,7 @@ sap.ui.define([
|
|
|
980
988
|
break;
|
|
981
989
|
|
|
982
990
|
case CalendarIntervalType.OneMonth:
|
|
991
|
+
case "OneMonth":
|
|
983
992
|
oDateFormat = DateFormat.getDateInstance({format: "yMMMM"});
|
|
984
993
|
sBeginningResult = oDateFormat.format(oStartDate);
|
|
985
994
|
break;
|
|
@@ -1094,7 +1103,7 @@ sap.ui.define([
|
|
|
1094
1103
|
*/
|
|
1095
1104
|
PlanningCalendar.prototype.getVisibleIntervalsCount = function () {
|
|
1096
1105
|
var sViewKey = this.getViewKey();
|
|
1097
|
-
if (sViewKey === CalendarIntervalType.OneMonth && this._iSize < 2) {
|
|
1106
|
+
if ((sViewKey === CalendarIntervalType.OneMonth || sViewKey === "OneMonth") && this._iSize < 2) {
|
|
1098
1107
|
var oFirstVisibleDate = CalendarUtils.getFirstDateOfWeek(this.getStartDate()),
|
|
1099
1108
|
oFirstDateInLastWeek = CalendarUtils.getFirstDateOfWeek(this._dateNav.getEnd()),
|
|
1100
1109
|
oLastVisibleDate = new Date(oFirstDateInLastWeek.getTime());
|
|
@@ -1364,13 +1373,13 @@ sap.ui.define([
|
|
|
1364
1373
|
|
|
1365
1374
|
// in OneMonth view there is selection,
|
|
1366
1375
|
// start date of the rows should match the selected date
|
|
1367
|
-
if (this.getViewKey() === PlanningCalendarBuiltInView.OneMonth && this._oOneMonthsRow.getMode() < 2 && this._oOneMonthsRow.getSelectedDates().length) {
|
|
1376
|
+
if ((this.getViewKey() === PlanningCalendarBuiltInView.OneMonth || this.getViewKey() === "OneMonth") && this._oOneMonthsRow.getMode() < 2 && this._oOneMonthsRow.getSelectedDates().length) {
|
|
1368
1377
|
this._setRowsStartDate(this._oOneMonthsRow.getSelectedDates()[0].getStartDate());
|
|
1369
1378
|
} else {
|
|
1370
1379
|
this._setRowsStartDate(new Date(oStartDate.getTime()));
|
|
1371
1380
|
}
|
|
1372
1381
|
|
|
1373
|
-
if (this.getViewKey() === PlanningCalendarBuiltInView.Week || this.getViewKey() === PlanningCalendarBuiltInView.OneMonth) {
|
|
1382
|
+
if (this.getViewKey() === PlanningCalendarBuiltInView.Week || this.getViewKey() === PlanningCalendarBuiltInView.OneMonth || this.getViewKey() === "OneMonth") {
|
|
1374
1383
|
this._updateTodayButtonState();
|
|
1375
1384
|
}
|
|
1376
1385
|
|
|
@@ -1592,6 +1601,7 @@ sap.ui.define([
|
|
|
1592
1601
|
case CalendarIntervalType.Day:
|
|
1593
1602
|
case CalendarIntervalType.Week:
|
|
1594
1603
|
case CalendarIntervalType.OneMonth:
|
|
1604
|
+
case "OneMonth":
|
|
1595
1605
|
//Date, Week and OneMonth intervals share the same object artifacts
|
|
1596
1606
|
oIntervalMetadata = INTERVAL_METADATA[sIntervalType];
|
|
1597
1607
|
oInterval = this[oIntervalMetadata.sInstanceName];
|
|
@@ -1610,7 +1620,7 @@ sap.ui.define([
|
|
|
1610
1620
|
oInterval.attachEvent("select", this._handleCalendarSelect, this);
|
|
1611
1621
|
oInterval.attachEvent("focus", this._handleFocus, this);
|
|
1612
1622
|
|
|
1613
|
-
if (sKey === PlanningCalendarBuiltInView.OneMonth) {
|
|
1623
|
+
if (sKey === PlanningCalendarBuiltInView.OneMonth || sKey === "OneMonth") {
|
|
1614
1624
|
oInterval._setRowsStartDate = this._setRowsStartDate.bind(this);
|
|
1615
1625
|
}
|
|
1616
1626
|
|
|
@@ -1627,7 +1637,7 @@ sap.ui.define([
|
|
|
1627
1637
|
}
|
|
1628
1638
|
this._insertInterval(oInterval);
|
|
1629
1639
|
this[oIntervalMetadata.sInstanceName] = oInterval;
|
|
1630
|
-
if (sIntervalType === CalendarIntervalType.OneMonth) {
|
|
1640
|
+
if ((sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth")) {
|
|
1631
1641
|
oAssociation = oHeader.getAggregation("_monthPicker") ? oHeader.getAggregation("_monthPicker") : oHeader._oPopup.getContent()[0];
|
|
1632
1642
|
oHeader.setAssociation("currentPicker", oAssociation);
|
|
1633
1643
|
oAssociation.addDelegate(MONTH_PICKER_DELEGATE, oAssociation);
|
|
@@ -1688,6 +1698,11 @@ sap.ui.define([
|
|
|
1688
1698
|
throw new Error("Unknown IntervalType: " + sIntervalType + "; " + this);
|
|
1689
1699
|
}
|
|
1690
1700
|
|
|
1701
|
+
var oContent = this.getAggregation("table").getInfoToolbar().getContent()[1];
|
|
1702
|
+
if (oContent.setFirstDayOfWeek) {
|
|
1703
|
+
oContent.setFirstDayOfWeek(this.getFirstDayOfWeek());
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1691
1706
|
var aRows = this.getRows();
|
|
1692
1707
|
for (var i = 0; i < aRows.length; i++) {
|
|
1693
1708
|
var oRow = aRows[i];
|
|
@@ -1707,7 +1722,7 @@ sap.ui.define([
|
|
|
1707
1722
|
this._updatePickerSelection();
|
|
1708
1723
|
}
|
|
1709
1724
|
|
|
1710
|
-
if (sKey === PlanningCalendarBuiltInView.Week || sKey === PlanningCalendarBuiltInView.OneMonth || sKey === PlanningCalendarBuiltInView.Month) {
|
|
1725
|
+
if (sKey === PlanningCalendarBuiltInView.Week || sKey === PlanningCalendarBuiltInView.OneMonth || sKey === PlanningCalendarBuiltInView.Month || sKey === "OneMonth") {
|
|
1711
1726
|
oOldStartDate = this.getStartDate();
|
|
1712
1727
|
this.setStartDate(new Date(oOldStartDate.getTime())); //make sure the start date is aligned according to the week/month rules
|
|
1713
1728
|
if (oOldStartDate.getTime() !== this.getStartDate().getTime()) {
|
|
@@ -1715,7 +1730,7 @@ sap.ui.define([
|
|
|
1715
1730
|
}
|
|
1716
1731
|
}
|
|
1717
1732
|
|
|
1718
|
-
if (this._oOneMonthsRow && sKey === PlanningCalendarBuiltInView.OneMonth) {
|
|
1733
|
+
if (this._oOneMonthsRow && (sKey === PlanningCalendarBuiltInView.OneMonth || sKey === "OneMonth")) {
|
|
1719
1734
|
this._oOneMonthsRow.setMode(this._iSize);
|
|
1720
1735
|
this._oOldStartDate = new Date(this.getStartDate().getTime());
|
|
1721
1736
|
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oOldStartDate));
|
|
@@ -1723,7 +1738,7 @@ sap.ui.define([
|
|
|
1723
1738
|
this._setRowsStartDate(oOldStartDate);
|
|
1724
1739
|
}
|
|
1725
1740
|
} else if (this._oOneMonthsRow
|
|
1726
|
-
&& sOldViewKey === PlanningCalendarBuiltInView.OneMonth
|
|
1741
|
+
&& (sOldViewKey === PlanningCalendarBuiltInView.OneMonth || sOldViewKey === "OneMonth")
|
|
1727
1742
|
&& this._oOneMonthsRow.getSelectedDates().length) {
|
|
1728
1743
|
oSelectedDate = this._oOneMonthsRow.getSelectedDates()[0].getStartDate();
|
|
1729
1744
|
if (oSelectedDate) {
|
|
@@ -1752,6 +1767,45 @@ sap.ui.define([
|
|
|
1752
1767
|
|
|
1753
1768
|
};
|
|
1754
1769
|
|
|
1770
|
+
PlanningCalendar.prototype.setFirstDayOfWeek = function (iFirstDayOfWeek) {
|
|
1771
|
+
if (iFirstDayOfWeek < -1 || iFirstDayOfWeek > 6) {
|
|
1772
|
+
Log.error("" + iFirstDayOfWeek + " is not a valid value to the property firstDayOfWeek. Valid values are from -1 to 6.");
|
|
1773
|
+
return;
|
|
1774
|
+
}
|
|
1775
|
+
var sCurrentPickerId = this._getHeader().getAssociation("currentPicker"),
|
|
1776
|
+
oPicker = Core.byId(sCurrentPickerId),
|
|
1777
|
+
sViewKey = this.getViewKey(),
|
|
1778
|
+
oDateNav = this._dateNav,
|
|
1779
|
+
oPCStart = oDateNav.getStart(),
|
|
1780
|
+
iOldFirstDayOfWeek = this.getStartDate().getDay(),
|
|
1781
|
+
bOneMonthViewOnSmallScreen = sViewKey === PlanningCalendarBuiltInView.OneMonth && this._iSize < 2,
|
|
1782
|
+
iResultFirstDayOfWeek = iFirstDayOfWeek,
|
|
1783
|
+
oRow, oFirstUTCDateOfWeek, oFirstLocalDateOfWeek;
|
|
1784
|
+
|
|
1785
|
+
oPicker.setFirstDayOfWeek(iFirstDayOfWeek);
|
|
1786
|
+
|
|
1787
|
+
if (sViewKey === PlanningCalendarBuiltInView.Week || bOneMonthViewOnSmallScreen) {
|
|
1788
|
+
oRow = this.getAggregation("table").getInfoToolbar().getContent()[1];
|
|
1789
|
+
|
|
1790
|
+
if (iFirstDayOfWeek === -1) { // -1 is the default value of firstDayOfWeek property. It means that the Locale information should be used.
|
|
1791
|
+
oFirstUTCDateOfWeek = CalendarUtils.getFirstDateOfWeek(CalendarUtils._createUniversalUTCDate(oPCStart, undefined, true));
|
|
1792
|
+
oFirstLocalDateOfWeek = CalendarUtils._createLocalDate(oFirstUTCDateOfWeek, true);
|
|
1793
|
+
iResultFirstDayOfWeek = oFirstLocalDateOfWeek.getDay();
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
oRow.setFirstDayOfWeek(iFirstDayOfWeek);
|
|
1797
|
+
if (!bOneMonthViewOnSmallScreen) {
|
|
1798
|
+
oPCStart.setDate(oPCStart.getDate() - iOldFirstDayOfWeek + iResultFirstDayOfWeek);
|
|
1799
|
+
oRow.setStartDate(oPCStart);
|
|
1800
|
+
}
|
|
1801
|
+
this.getRows().forEach(function (oRow) {
|
|
1802
|
+
this._updateRowTimeline(oRow);
|
|
1803
|
+
}.bind(this));
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
return this.setProperty("firstDayOfWeek", iFirstDayOfWeek);
|
|
1807
|
+
};
|
|
1808
|
+
|
|
1755
1809
|
PlanningCalendar.prototype._handleFocus = function (oEvent) {
|
|
1756
1810
|
var oDate = oEvent.getParameter("date"),
|
|
1757
1811
|
bRestoreOldDate = oEvent.getParameter("restoreOldDate");
|
|
@@ -1825,12 +1879,19 @@ sap.ui.define([
|
|
|
1825
1879
|
* is because the dates are timezone irrelevant), it should be called with the local datetime values presented
|
|
1826
1880
|
* as UTC ones(e.g. if oStartDate is 21 Dec 1981, 13:00 GMT+02:00, it will be converted to 21 Dec 1981, 13:00 GMT+00:00)
|
|
1827
1881
|
*/
|
|
1828
|
-
var oFirstDateOfWeek = CalendarUtils.getFirstDateOfWeek(CalendarUtils._createUniversalUTCDate(oStartDate, undefined, true))
|
|
1829
|
-
|
|
1830
|
-
|
|
1882
|
+
var oFirstDateOfWeek = CalendarUtils.getFirstDateOfWeek(CalendarUtils._createUniversalUTCDate(oStartDate, undefined, true)),
|
|
1883
|
+
//CalendarUtils.getFirstDateOfWeek works with UTC based date values, restore the result back in local timezone.
|
|
1884
|
+
oLocalDate = CalendarUtils._createLocalDate(oFirstDateOfWeek, true);
|
|
1885
|
+
if (this.getFirstDayOfWeek() > -1) {
|
|
1886
|
+
oLocalDate.setDate(oLocalDate.getDate() - oLocalDate.getDay() + this.getFirstDayOfWeek());
|
|
1887
|
+
}
|
|
1888
|
+
if (oLocalDate.getTime() > oStartDate.getTime()) {
|
|
1889
|
+
oLocalDate.setDate(oLocalDate.getDate() - 7);
|
|
1890
|
+
}
|
|
1891
|
+
oStartDate.setTime(oLocalDate.getTime());
|
|
1831
1892
|
}
|
|
1832
1893
|
|
|
1833
|
-
if ((this.getViewKey() === PlanningCalendarBuiltInView.OneMonth || this.getViewKey() === PlanningCalendarBuiltInView.Month)) {
|
|
1894
|
+
if ((this.getViewKey() === PlanningCalendarBuiltInView.OneMonth || this.getViewKey() === PlanningCalendarBuiltInView.Month || this.getViewKey() === "OneMonth")) {
|
|
1834
1895
|
/*
|
|
1835
1896
|
* Have in mind that the oStartDate is the date that the user sees in the UI, thus - local one. As
|
|
1836
1897
|
* CalendarUtils.getFirstDateOfMonth works with UTC dates (this is because the dates are timezone irrelevant),
|
|
@@ -2138,7 +2199,7 @@ sap.ui.define([
|
|
|
2138
2199
|
PlanningCalendar.prototype._updateStickyHeader = function() {
|
|
2139
2200
|
var aStickyParts = [],
|
|
2140
2201
|
bStick = this.getStickyHeader(),
|
|
2141
|
-
bMobile1MonthView = this.getViewKey() === PlanningCalendarBuiltInView.OneMonth && this._iSize < 2,
|
|
2202
|
+
bMobile1MonthView = (this.getViewKey() === PlanningCalendarBuiltInView.OneMonth || this.getViewKey() === "OneMonth") && this._iSize < 2,
|
|
2142
2203
|
bStickyToolbar = bStick && !Device.system.phone && !bMobile1MonthView,
|
|
2143
2204
|
bStickyInfoToolbar = bStick && !(Device.system.phone && Device.orientation.landscape) && !bMobile1MonthView;
|
|
2144
2205
|
|
|
@@ -2377,6 +2438,7 @@ sap.ui.define([
|
|
|
2377
2438
|
}
|
|
2378
2439
|
break;
|
|
2379
2440
|
case CalendarIntervalType.OneMonth:
|
|
2441
|
+
case "OneMonth":
|
|
2380
2442
|
if (this._oOneMonthsRow) {
|
|
2381
2443
|
this._oOneMonthsRow.invalidate(arguments);
|
|
2382
2444
|
}
|
|
@@ -2662,6 +2724,7 @@ sap.ui.define([
|
|
|
2662
2724
|
case CalendarIntervalType.Day:
|
|
2663
2725
|
case CalendarIntervalType.Week:
|
|
2664
2726
|
case CalendarIntervalType.OneMonth:
|
|
2727
|
+
case "OneMonth":
|
|
2665
2728
|
iTime = 1800000;
|
|
2666
2729
|
iStartTime = oStartDate.getTime() - 3600000;
|
|
2667
2730
|
iEndTime = oStartDate.getTime() + iIntervals * 86400000;
|
|
@@ -2694,11 +2757,17 @@ sap.ui.define([
|
|
|
2694
2757
|
PlanningCalendar.prototype._handleTodayPress = function (oEvent) {
|
|
2695
2758
|
var oDate = new Date(),
|
|
2696
2759
|
oStartDate,
|
|
2697
|
-
sViewKey = this.getViewKey()
|
|
2760
|
+
sViewKey = this.getViewKey(),
|
|
2761
|
+
oFocusMonthDelegate = {
|
|
2762
|
+
onAfterRendering: function() {
|
|
2763
|
+
this._focusDate(CalendarDate.fromLocalJSDate(new Date()));
|
|
2764
|
+
this.removeDelegate(oFocusMonthDelegate);
|
|
2765
|
+
}
|
|
2766
|
+
};
|
|
2698
2767
|
|
|
2699
2768
|
// if the OneMonth view is selected and Today btn is pressed,
|
|
2700
2769
|
// the calendar should start from the 1st date of the current month
|
|
2701
|
-
if (sViewKey === PlanningCalendarBuiltInView.OneMonth) {
|
|
2770
|
+
if (sViewKey === PlanningCalendarBuiltInView.OneMonth || sViewKey === "OneMonth") {
|
|
2702
2771
|
oStartDate = CalendarUtils.getFirstDateOfMonth(CalendarUtils._createUniversalUTCDate(oDate, undefined, true));
|
|
2703
2772
|
this._adjustSelectedDate(CalendarDate.fromLocalJSDate(oDate));
|
|
2704
2773
|
|
|
@@ -2715,6 +2784,11 @@ sap.ui.define([
|
|
|
2715
2784
|
|
|
2716
2785
|
this.setStartDate(oDate);
|
|
2717
2786
|
this._dateNav.setCurrent(oDate);
|
|
2787
|
+
if (sViewKey === PlanningCalendarBuiltInView.Week) {
|
|
2788
|
+
this._oWeeksRow.addDelegate(oFocusMonthDelegate, this._oWeeksRow);
|
|
2789
|
+
} else if (sViewKey === PlanningCalendarBuiltInView.OneMonth || sViewKey === "OneMonth") {
|
|
2790
|
+
this._oOneMonthsRow.addDelegate(oFocusMonthDelegate, this._oOneMonthsRow);
|
|
2791
|
+
}
|
|
2718
2792
|
this._updatePickerSelection();
|
|
2719
2793
|
this.fireStartDateChange();
|
|
2720
2794
|
|
|
@@ -2784,7 +2858,7 @@ sap.ui.define([
|
|
|
2784
2858
|
sControlRef = "_o" + sCurrentViewIntervalType + "sRow";
|
|
2785
2859
|
|
|
2786
2860
|
if (this[sControlRef]) {
|
|
2787
|
-
this[sControlRef].
|
|
2861
|
+
this[sControlRef].displayDate(oStartDate);
|
|
2788
2862
|
}
|
|
2789
2863
|
}
|
|
2790
2864
|
};
|
|
@@ -2807,7 +2881,7 @@ sap.ui.define([
|
|
|
2807
2881
|
// remove old selection
|
|
2808
2882
|
// unless the select acts as a picker, then the selection stays
|
|
2809
2883
|
// in OneMonth view smaller sizes
|
|
2810
|
-
if (sIntervalType !== CalendarIntervalType.OneMonth
|
|
2884
|
+
if ((sIntervalType !== CalendarIntervalType.OneMonth && sIntervalType !== "OneMonth")
|
|
2811
2885
|
|| this._iSize > 1) {
|
|
2812
2886
|
aSelectedDates[0].setStartDate();
|
|
2813
2887
|
}
|
|
@@ -2822,6 +2896,7 @@ sap.ui.define([
|
|
|
2822
2896
|
oEndDate.setUTCDate(oEndDate.getUTCDate() + 1);
|
|
2823
2897
|
break;
|
|
2824
2898
|
case CalendarIntervalType.OneMonth:
|
|
2899
|
+
case "OneMonth":
|
|
2825
2900
|
if (this._iSize < 2) { // change rows' startDate on S and M sizes
|
|
2826
2901
|
var oFocusedDate = new Date(oEvtSelectedStartDate.getTime());
|
|
2827
2902
|
if (CalendarUtils.monthsDiffer(this.getStartDate(), oEvtSelectedStartDate)) {
|
|
@@ -2861,7 +2936,7 @@ sap.ui.define([
|
|
|
2861
2936
|
var oView = this._getView(sKey);
|
|
2862
2937
|
var sIntervalType = oView.getIntervalType();
|
|
2863
2938
|
|
|
2864
|
-
if (sIntervalType === CalendarIntervalType.OneMonth
|
|
2939
|
+
if ((sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth")
|
|
2865
2940
|
&& CalendarUtils._isNextMonth(oStartDate, this.getStartDate())) {
|
|
2866
2941
|
this.shiftToDate(oStartDate);
|
|
2867
2942
|
this._addMonthFocusDelegate(this._getRowInstanceByViewKey(this.getViewKey()));
|
|
@@ -2961,6 +3036,7 @@ sap.ui.define([
|
|
|
2961
3036
|
break;
|
|
2962
3037
|
|
|
2963
3038
|
case CalendarIntervalType.OneMonth:
|
|
3039
|
+
case "OneMonth":
|
|
2964
3040
|
if (this._oOneMonthsRow && this._oOneMonthsRow.getDays() != iIntervals) {
|
|
2965
3041
|
this._oOneMonthsRow.setDays(iIntervals);
|
|
2966
3042
|
this._dateNav.setStep(iIntervals * iIntervalSize);
|
|
@@ -2984,7 +3060,7 @@ sap.ui.define([
|
|
|
2984
3060
|
}
|
|
2985
3061
|
}
|
|
2986
3062
|
|
|
2987
|
-
if (this._oOneMonthsRow && this.getViewKey() === CalendarIntervalType.OneMonth) {
|
|
3063
|
+
if (this._oOneMonthsRow && (this.getViewKey() === CalendarIntervalType.OneMonth || this.getViewKey() === "OneMonth")) {
|
|
2988
3064
|
oSelectedDate = (this._getSelectedDates().length && this._getSelectedDates()[0].getStartDate()) ?
|
|
2989
3065
|
this._getSelectedDates()[0].getStartDate() : this.getStartDate();
|
|
2990
3066
|
this._oOneMonthsRow.setMode(this._iSize);
|
|
@@ -3132,6 +3208,7 @@ sap.ui.define([
|
|
|
3132
3208
|
}
|
|
3133
3209
|
return this._oViews[oViewType.Week];
|
|
3134
3210
|
case oViewType.OneMonth:
|
|
3211
|
+
case "OneMonth":
|
|
3135
3212
|
if (!this._oViews[oViewType.OneMonth]) {
|
|
3136
3213
|
this._oViews[oViewType.OneMonth] = new PlanningCalendarView(this.getId() + "-OneMonthView", {
|
|
3137
3214
|
key: oViewType.OneMonth,
|
|
@@ -3277,7 +3354,7 @@ sap.ui.define([
|
|
|
3277
3354
|
PlanningCalendar.prototype._updateRowTimeline = function (oRow) {
|
|
3278
3355
|
var oRowTimeline = getRowTimeline(oRow),
|
|
3279
3356
|
sKey, oView, sIntervalType, iIntervals, iIntervalSize,
|
|
3280
|
-
bMobile1MonthView = this.getViewKey() === PlanningCalendarBuiltInView.OneMonth && this._iSize < 2,
|
|
3357
|
+
bMobile1MonthView = (this.getViewKey() === PlanningCalendarBuiltInView.OneMonth || this.getViewKey() === "OneMonth") && this._iSize < 2,
|
|
3281
3358
|
oStartDate = this.getStartDate();
|
|
3282
3359
|
|
|
3283
3360
|
oRowTimeline.setNonWorkingDays(oRow.getNonWorkingDays());
|
|
@@ -3349,8 +3426,12 @@ sap.ui.define([
|
|
|
3349
3426
|
title: function (oChanges) {
|
|
3350
3427
|
oRowHeader.setProperty(oChanges.name, oChanges.current);
|
|
3351
3428
|
},
|
|
3352
|
-
icon: function
|
|
3353
|
-
oRowHeader.
|
|
3429
|
+
icon: function(oChanges) {
|
|
3430
|
+
if (oRowHeader.setIcon) {
|
|
3431
|
+
oRowHeader.setIcon(oChanges.current);
|
|
3432
|
+
} else {
|
|
3433
|
+
oRowHeader.setProperty(oChanges.name, oChanges.current);
|
|
3434
|
+
}
|
|
3354
3435
|
},
|
|
3355
3436
|
text: function (oChanges) {
|
|
3356
3437
|
// Large row style class
|
|
@@ -3599,7 +3680,7 @@ sap.ui.define([
|
|
|
3599
3680
|
var aEmptyNonWorkDay = [];
|
|
3600
3681
|
return CalendarRowRenderer.renderInterval(oRm, oTimeline, iInterval, iWidth, aIntervalHeaders, aEmptyNonWorkDay, iStartOffset, iNonWorkingMax, aNonWorkingSubItems, iSubStartOffset, iNonWorkingSubMax, bFirstOfType, bLastOfType, sAdditionalNonWorkingClass);
|
|
3601
3682
|
}
|
|
3602
|
-
if (sIntervalType === CalendarIntervalType.Day || sIntervalType === CalendarIntervalType.Week || sIntervalType === CalendarIntervalType.OneMonth) {
|
|
3683
|
+
if (sIntervalType === CalendarIntervalType.Day || sIntervalType === CalendarIntervalType.Week || sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth") {
|
|
3603
3684
|
var oRow = getRow(oTimeline.getParent()),
|
|
3604
3685
|
oPC = oRow.getParent(),
|
|
3605
3686
|
fnNonWorkingFilter = function (oSpecialDate) {
|
|
@@ -3883,7 +3964,7 @@ sap.ui.define([
|
|
|
3883
3964
|
newPos = this._calcNewHoursAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
3884
3965
|
} else if (sIntervalType === CalendarIntervalType.Day
|
|
3885
3966
|
|| sIntervalType === CalendarIntervalType.Week
|
|
3886
|
-
|| (sIntervalType === CalendarIntervalType.OneMonth && !oTargetTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
3967
|
+
|| ((sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth") && !oTargetTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
3887
3968
|
|
|
3888
3969
|
newPos = this._calcNewDaysAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
3889
3970
|
} else if (sIntervalType === CalendarIntervalType.Month) {
|
|
@@ -3936,7 +4017,7 @@ sap.ui.define([
|
|
|
3936
4017
|
newPos = this._calcNewHoursAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
3937
4018
|
} else if (sIntervalType === CalendarIntervalType.Day
|
|
3938
4019
|
|| sIntervalType === CalendarIntervalType.Week
|
|
3939
|
-
|| (sIntervalType === CalendarIntervalType.OneMonth && !oTargetTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
4020
|
+
|| ((sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth") && !oTargetTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
3940
4021
|
|
|
3941
4022
|
newPos = this._calcNewDaysAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
3942
4023
|
} else if (sIntervalType === CalendarIntervalType.Month) {
|
|
@@ -4099,7 +4180,7 @@ sap.ui.define([
|
|
|
4099
4180
|
newPos = this._calcResizeNewHoursAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4100
4181
|
} else if (sIntervalType === CalendarIntervalType.Day
|
|
4101
4182
|
|| sIntervalType === CalendarIntervalType.Week
|
|
4102
|
-
|| (sIntervalType === CalendarIntervalType.OneMonth && !oTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
4183
|
+
|| ((sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth") && !oTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
4103
4184
|
|
|
4104
4185
|
newPos = this._calcResizeNewDaysAppPos(oRowStartDate, oAppointment.getStartDate(), oAppointment.getEndDate(), iIndex);
|
|
4105
4186
|
} else if (sIntervalType === CalendarIntervalType.Month) {
|
|
@@ -4310,7 +4391,7 @@ sap.ui.define([
|
|
|
4310
4391
|
oNewPos = this._calcCreateNewAppHours(oRowStartDate, iStartIndex, iEndIndex);
|
|
4311
4392
|
} else if (sIntervalType === CalendarIntervalType.Day
|
|
4312
4393
|
|| sIntervalType === CalendarIntervalType.Week
|
|
4313
|
-
|| (sIntervalType === CalendarIntervalType.OneMonth && !oTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
4394
|
+
|| ((sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth") && !oTimeline._isOneMonthsRowOnSmallSizes())) {
|
|
4314
4395
|
oNewPos = this._calcCreateNewAppDays(oRowStartDate, iStartIndex, iEndIndex);
|
|
4315
4396
|
} else if (sIntervalType === CalendarIntervalType.Month) {
|
|
4316
4397
|
oNewPos = this._calcCreateNewAppMonths(oRowStartDate, iStartIndex, iEndIndex);
|
|
@@ -4708,5 +4789,22 @@ sap.ui.define([
|
|
|
4708
4789
|
return this._oTimesRow || this._oDatesRow || this._oMonthsRow || this._oWeeksRow || this._oOneMonthsRow;
|
|
4709
4790
|
}
|
|
4710
4791
|
|
|
4792
|
+
function getStickyFocusOffset() {
|
|
4793
|
+
if (!this._getHeader()) {
|
|
4794
|
+
return 0;
|
|
4795
|
+
}
|
|
4796
|
+
|
|
4797
|
+
var oPCHeaderContainer = this._getHeader().getDomRef(),
|
|
4798
|
+
iPCHeaderContainerRectHeight = 0,
|
|
4799
|
+
oPCHeaderContainerRect;
|
|
4800
|
+
|
|
4801
|
+
if (oPCHeaderContainer) {
|
|
4802
|
+
oPCHeaderContainerRect = oPCHeaderContainer.getBoundingClientRect();
|
|
4803
|
+
iPCHeaderContainerRectHeight = parseInt(oPCHeaderContainerRect.height);
|
|
4804
|
+
}
|
|
4805
|
+
|
|
4806
|
+
return iPCHeaderContainerRectHeight;
|
|
4807
|
+
}
|
|
4808
|
+
|
|
4711
4809
|
return PlanningCalendar;
|
|
4712
|
-
});
|
|
4810
|
+
});
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
// Ensure that sap.ui.unified is loaded before the module dependencies will be required.
|
|
8
|
-
// Loading it synchronously is the only compatible option and doesn't harm when sap.ui.unified
|
|
9
|
-
// already has been loaded asynchronously (e.g. via a dependency declared in the manifest)
|
|
10
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
11
|
-
|
|
12
7
|
// Provides control sap.m.PlanningCalendarHeader.
|
|
13
8
|
sap.ui.define([
|
|
14
9
|
'sap/ui/core/Element',
|
|
@@ -97,7 +92,7 @@ function(
|
|
|
97
92
|
* @extends sap.ui.core.Control
|
|
98
93
|
*
|
|
99
94
|
* @author SAP SE
|
|
100
|
-
* @version 1.
|
|
95
|
+
* @version 1.96.0
|
|
101
96
|
*
|
|
102
97
|
* @constructor
|
|
103
98
|
* @private
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
// Ensure that sap.ui.unified is loaded before the module dependencies will be required.
|
|
8
|
-
// Loading it synchronously is the only compatible option and doesn't harm when sap.ui.unified
|
|
9
|
-
// already has been loaded asynchronously (e.g. via a dependency declared in the manifest)
|
|
10
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
11
|
-
|
|
12
7
|
// Provides control sap.m.PlanningCalendarLegend.
|
|
13
8
|
sap.ui.define(['sap/ui/unified/CalendarLegend', 'sap/ui/unified/CalendarAppointment', './PlanningCalendarLegendRenderer'],
|
|
14
9
|
function(CalendarLegend, CalendarAppointment, PlanningCalendarLegendRenderer) {
|
|
@@ -28,7 +23,7 @@ sap.ui.define(['sap/ui/unified/CalendarLegend', 'sap/ui/unified/CalendarAppointm
|
|
|
28
23
|
* @extends sap.ui.unified.CalendarLegend
|
|
29
24
|
*
|
|
30
25
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
26
|
+
* @version 1.96.0
|
|
32
27
|
*
|
|
33
28
|
* @constructor
|
|
34
29
|
* @public
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
// Ensure that sap.ui.unified is loaded before the module dependencies will be required.
|
|
8
|
-
// Loading it synchronously is the only compatible option and doesn't harm when sap.ui.unified
|
|
9
|
-
// already has been loaded asynchronously (e.g. via a dependency declared in the manifest)
|
|
10
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
11
|
-
|
|
12
7
|
sap.ui.define(['sap/ui/unified/CalendarLegendRenderer', 'sap/ui/core/Renderer'],
|
|
13
8
|
function(CalendarLegendRenderer, Renderer) {
|
|
14
9
|
"use strict";
|
|
@@ -61,6 +56,8 @@ sap.ui.define(['sap/ui/unified/CalendarLegendRenderer', 'sap/ui/core/Renderer'],
|
|
|
61
56
|
PlanningCalendarLegendRenderer._renderItemsHeader = function(oRm, sHeaderText) {
|
|
62
57
|
oRm.openStart("div");
|
|
63
58
|
oRm.class("sapMPlanCalLegendHeader");
|
|
59
|
+
oRm.attr("role", "heading");
|
|
60
|
+
oRm.attr("aria-level", "3");
|
|
64
61
|
oRm.openEnd();
|
|
65
62
|
oRm.text(sHeaderText);
|
|
66
63
|
oRm.close("div");
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
// Ensure that sap.ui.unified is loaded before the module dependencies will be required.
|
|
8
|
-
// Loading it synchronously is the only compatible option and doesn't harm when sap.ui.unified
|
|
9
|
-
// already has been loaded asynchronously (e.g. via a dependency declared in the manifest)
|
|
10
|
-
sap.ui.getCore().loadLibrary("sap.ui.unified");
|
|
11
|
-
|
|
12
7
|
//Provides control sap.m.PlanningCalendarView.
|
|
13
8
|
sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/unified/library'],
|
|
14
9
|
function(Element, library, unifiedLibrary) {
|
|
@@ -30,7 +25,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/unified/library'],
|
|
|
30
25
|
* The <code>PlanningCalendarView</code> defines the type of the intervals (hours, days, months)
|
|
31
26
|
* and how many intervals are displayed.
|
|
32
27
|
* @extends sap.ui.core.Element
|
|
33
|
-
* @version 1.
|
|
28
|
+
* @version 1.96.0
|
|
34
29
|
*
|
|
35
30
|
* @constructor
|
|
36
31
|
* @public
|
package/src/sap/m/Popover.js
CHANGED
|
@@ -113,7 +113,7 @@ sap.ui.define([
|
|
|
113
113
|
* @extends sap.ui.core.Control
|
|
114
114
|
* @implements sap.ui.core.PopupInterface
|
|
115
115
|
* @author SAP SE
|
|
116
|
-
* @version 1.
|
|
116
|
+
* @version 1.96.0
|
|
117
117
|
*
|
|
118
118
|
* @public
|
|
119
119
|
* @alias sap.m.Popover
|
|
@@ -734,8 +734,6 @@ sap.ui.define([
|
|
|
734
734
|
this._marginTopInit = true;
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
|
|
738
|
-
this._repositionOffset();
|
|
739
737
|
};
|
|
740
738
|
|
|
741
739
|
/**
|
|
@@ -1103,6 +1101,8 @@ sap.ui.define([
|
|
|
1103
1101
|
var that = this;
|
|
1104
1102
|
this.oPopup.detachOpened(this._handleOpened, this);
|
|
1105
1103
|
|
|
1104
|
+
this._repositionOffset();
|
|
1105
|
+
|
|
1106
1106
|
// recalculate the arrow position when the size of the popover changes.
|
|
1107
1107
|
if (!Device.support.touch) {
|
|
1108
1108
|
setTimeout(function () {
|
|
@@ -2294,9 +2294,9 @@ sap.ui.define([
|
|
|
2294
2294
|
oEndButton = this.getEndButton(),
|
|
2295
2295
|
sButtonId = "";
|
|
2296
2296
|
|
|
2297
|
-
if (oBeginButton && oBeginButton.getVisible()) {
|
|
2297
|
+
if (oBeginButton && oBeginButton.getVisible() && oBeginButton.getEnabled()) {
|
|
2298
2298
|
sButtonId = oBeginButton.getId();
|
|
2299
|
-
} else if (oEndButton && oEndButton.getVisible()) {
|
|
2299
|
+
} else if (oEndButton && oEndButton.getVisible() && oEndButton.getEnabled()) {
|
|
2300
2300
|
sButtonId = oEndButton.getId();
|
|
2301
2301
|
}
|
|
2302
2302
|
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
'sap/ui/Device',
|
|
8
8
|
'sap/m/library',
|
|
9
|
-
"sap/ui/dom/getScrollbarSize"
|
|
9
|
+
"sap/ui/dom/getScrollbarSize",
|
|
10
|
+
"sap/ui/core/IconPool"
|
|
10
11
|
],
|
|
11
|
-
function(Device, library, getScrollbarSize) {
|
|
12
|
+
function(Device, library, getScrollbarSize, IconPool) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
14
15
|
// shortcut for sap.m.PlacementType
|
package/src/sap/m/QuickView.js
CHANGED