@openui5/sap.m 1.120.6 → 1.121.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 +23 -21
- package/THIRDPARTY.txt +6 -43
- package/package.json +4 -4
- package/src/sap/m/.library +18 -2
- package/src/sap/m/AccButton.js +1 -1
- package/src/sap/m/ActionListItem.js +1 -1
- package/src/sap/m/ActionSelect.js +11 -11
- package/src/sap/m/ActionSheet.js +12 -8
- package/src/sap/m/ActionSheetRenderer.js +4 -4
- package/src/sap/m/ActionTile.js +7 -1
- package/src/sap/m/ActionTileContent.js +86 -7
- package/src/sap/m/ActionTileContentRenderer.js +4 -41
- package/src/sap/m/AdditionalTextButton.js +1 -1
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +6 -6
- package/src/sap/m/Avatar.js +32 -14
- package/src/sap/m/Bar.js +5 -5
- package/src/sap/m/BarRenderer.js +3 -3
- package/src/sap/m/Breadcrumbs.js +12 -4
- package/src/sap/m/BreadcrumbsRenderer.js +1 -1
- package/src/sap/m/BusyDialog.js +19 -33
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +8 -8
- package/src/sap/m/ButtonRenderer.js +0 -4
- package/src/sap/m/Carousel.js +53 -25
- package/src/sap/m/CarouselLayout.js +14 -3
- package/src/sap/m/CarouselRenderer.js +4 -4
- package/src/sap/m/CheckBox.js +46 -5
- package/src/sap/m/CheckBoxRenderer.js +10 -3
- package/src/sap/m/ColorPalette.js +4 -2
- package/src/sap/m/ColorPalettePopover.js +5 -3
- package/src/sap/m/ColorPaletteRenderer.js +3 -3
- package/src/sap/m/Column.js +3 -4
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +59 -20
- package/src/sap/m/ColumnListItemRenderer.js +8 -9
- 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 +6 -6
- package/src/sap/m/ComboBox.js +16 -9
- package/src/sap/m/ComboBoxBase.js +10 -9
- package/src/sap/m/ComboBoxTextField.js +6 -4
- package/src/sap/m/ContentConfig.js +142 -0
- 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 +19 -18
- package/src/sap/m/DatePickerRenderer.js +3 -3
- package/src/sap/m/DateRangeSelection.js +16 -13
- package/src/sap/m/DateRangeSelectionRenderer.js +3 -3
- package/src/sap/m/DateTimeField.js +17 -9
- package/src/sap/m/DateTimeInput.js +6 -4
- package/src/sap/m/DateTimePicker.js +39 -30
- package/src/sap/m/DateTimePickerRenderer.js +4 -2
- package/src/sap/m/Dialog.js +21 -9
- package/src/sap/m/DialogRenderer.js +10 -3
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +5 -5
- package/src/sap/m/DynamicDate.js +5 -3
- package/src/sap/m/DynamicDateFormat.js +7 -6
- package/src/sap/m/DynamicDateOption.js +10 -5
- package/src/sap/m/DynamicDateRange.js +56 -43
- package/src/sap/m/DynamicDateUtil.js +3 -3
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +5 -9
- package/src/sap/m/ExpandableTextRenderer.js +3 -3
- package/src/sap/m/FacetFilter.js +17 -8
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +7 -7
- package/src/sap/m/FacetFilterRenderer.js +4 -4
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +4 -4
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/FeedListItemRenderer.js +3 -3
- package/src/sap/m/Fiori20Adapter.js +9 -9
- package/src/sap/m/FlexBox.js +2 -2
- package/src/sap/m/FlexItemData.js +17 -17
- package/src/sap/m/FormattedText.js +7 -6
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTagRenderer.js +5 -5
- package/src/sap/m/GenericTile.js +102 -14
- package/src/sap/m/GenericTileLineModeRenderer.js +3 -3
- package/src/sap/m/GenericTileRenderer.js +3 -3
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GroupHeaderListItemRenderer.js +3 -3
- package/src/sap/m/GrowingEnablement.js +7 -6
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +5 -5
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +4 -4
- package/src/sap/m/IconTabBarDragAndDropUtil.js +5 -5
- package/src/sap/m/IconTabBarSelectList.js +2 -2
- package/src/sap/m/IconTabFilter.js +27 -15
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +4 -4
- package/src/sap/m/IconTabHeader.js +61 -28
- package/src/sap/m/IconTabHeaderRenderer.js +5 -5
- package/src/sap/m/IconTabSeparator.js +7 -7
- package/src/sap/m/IllustratedMessage.js +8 -6
- package/src/sap/m/IllustratedMessageType.js +12 -0
- package/src/sap/m/Illustration.js +4 -4
- package/src/sap/m/IllustrationPool.js +3 -3
- package/src/sap/m/Image.js +6 -3
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +65 -36
- package/src/sap/m/InputBase.js +33 -8
- package/src/sap/m/InputBaseRenderer.js +3 -3
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/InputRenderer.js +5 -6
- package/src/sap/m/Label.js +6 -6
- package/src/sap/m/LightBox.js +4 -4
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +30 -6
- package/src/sap/m/LinkRenderer.js +4 -4
- package/src/sap/m/LinkTileContent.js +1 -1
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +43 -24
- package/src/sap/m/ListItemBase.js +7 -6
- package/src/sap/m/ListItemBaseRenderer.js +3 -0
- package/src/sap/m/MaskEnabler.js +8 -6
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRenderer.js +2 -2
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +19 -17
- package/src/sap/m/MenuButton.js +8 -6
- package/src/sap/m/MenuItem.js +9 -9
- package/src/sap/m/MenuListItem.js +5 -4
- package/src/sap/m/MessageBox.js +5 -3
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +4 -3
- package/src/sap/m/MessagePage.js +4 -2
- package/src/sap/m/MessagePopover.js +9 -6
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +9 -7
- package/src/sap/m/MessageStripRenderer.js +5 -2
- package/src/sap/m/MessageStripUtilities.js +6 -4
- package/src/sap/m/MessageToast.js +8 -7
- package/src/sap/m/MessageView.js +29 -6
- package/src/sap/m/MessageViewRenderer.js +2 -2
- package/src/sap/m/MultiComboBox.js +36 -17
- package/src/sap/m/MultiComboBoxRenderer.js +4 -4
- package/src/sap/m/MultiEditField.js +4 -4
- package/src/sap/m/MultiInput.js +66 -19
- package/src/sap/m/MultiInputRenderer.js +3 -3
- package/src/sap/m/NavContainer.js +14 -9
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +4 -4
- package/src/sap/m/NotificationListGroup.js +4 -4
- package/src/sap/m/NotificationListItem.js +4 -4
- package/src/sap/m/NumericContent.js +6 -6
- package/src/sap/m/NumericInput.js +1 -1
- package/src/sap/m/NumericInputRenderer.js +6 -6
- package/src/sap/m/ObjectAttribute.js +7 -6
- package/src/sap/m/ObjectAttributeRenderer.js +3 -3
- package/src/sap/m/ObjectHeader.js +15 -11
- package/src/sap/m/ObjectHeaderRenderer.js +4 -4
- package/src/sap/m/ObjectIdentifier.js +37 -8
- package/src/sap/m/ObjectIdentifierRenderer.js +3 -3
- package/src/sap/m/ObjectListItem.js +4 -4
- package/src/sap/m/ObjectMarker.js +6 -4
- package/src/sap/m/ObjectNumber.js +4 -3
- package/src/sap/m/ObjectNumberRenderer.js +6 -6
- package/src/sap/m/ObjectStatus.js +28 -22
- package/src/sap/m/ObjectStatusRenderer.js +26 -20
- package/src/sap/m/OverflowToolbar.js +2 -2
- package/src/sap/m/OverflowToolbarAssociativePopover.js +3 -3
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +2 -2
- package/src/sap/m/OverflowToolbarMenuButton.js +1 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +1 -1
- package/src/sap/m/P13nColumnsItem.js +1 -1
- package/src/sap/m/P13nColumnsPanel.js +33 -11
- package/src/sap/m/P13nConditionPanel.js +6 -4
- package/src/sap/m/P13nDialog.js +27 -13
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +18 -12
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +71 -49
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +5 -4
- 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 +28 -7
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +6 -5
- package/src/sap/m/PDFViewer.js +3 -6
- package/src/sap/m/Page.js +4 -8
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +5 -4
- package/src/sap/m/Panel.js +10 -5
- package/src/sap/m/PlanningCalendar.js +160 -109
- package/src/sap/m/PlanningCalendarHeader.js +9 -7
- package/src/sap/m/PlanningCalendarLegend.js +5 -5
- package/src/sap/m/PlanningCalendarRow.js +26 -15
- package/src/sap/m/PlanningCalendarView.js +1 -4
- package/src/sap/m/Popover.js +19 -21
- package/src/sap/m/PopoverRenderer.js +4 -4
- package/src/sap/m/ProgressIndicator.js +15 -13
- package/src/sap/m/ProgressIndicatorRenderer.js +3 -4
- package/src/sap/m/PullToRefresh.js +4 -3
- 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/QuickViewCardRenderer.js +3 -3
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +29 -17
- package/src/sap/m/RadioButton.js +4 -4
- package/src/sap/m/RadioButtonGroup.js +38 -5
- package/src/sap/m/RadioButtonGroupRenderer.js +4 -4
- package/src/sap/m/RadioButtonRenderer.js +3 -3
- package/src/sap/m/RangeSlider.js +9 -7
- package/src/sap/m/RangeSliderRenderer.js +2 -2
- package/src/sap/m/RatingIndicator.js +7 -6
- package/src/sap/m/RatingIndicatorRenderer.js +4 -4
- package/src/sap/m/ResponsivePopover.js +1 -3
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +3 -3
- package/src/sap/m/ScrollContainer.js +6 -6
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +7 -5
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +30 -16
- package/src/sap/m/SelectDialog.js +5 -3
- package/src/sap/m/SelectDialogBase.js +6 -6
- package/src/sap/m/SelectList.js +6 -6
- package/src/sap/m/SelectionDetails.js +7 -3
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +4 -4
- package/src/sap/m/ShellRenderer.js +3 -2
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +41 -9
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +122 -54
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +22 -20
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +315 -61
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +88 -35
- package/src/sap/m/SinglePlanningCalendarMonthView.js +3 -4
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +5 -5
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +6 -5
- package/src/sap/m/SlideTile.js +6 -6
- package/src/sap/m/SlideTileRenderer.js +1 -3
- package/src/sap/m/Slider.js +38 -11
- package/src/sap/m/SliderRenderer.js +4 -4
- package/src/sap/m/SliderTooltip.js +4 -4
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +10 -8
- package/src/sap/m/SliderTooltipRenderer.js +3 -3
- package/src/sap/m/SplitApp.js +2 -1
- package/src/sap/m/SplitButton.js +5 -3
- package/src/sap/m/SplitContainer.js +20 -11
- package/src/sap/m/StandardDynamicDateOption.js +16 -12
- package/src/sap/m/StandardListItem.js +4 -3
- package/src/sap/m/StandardListItemRenderer.js +3 -3
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +6 -4
- package/src/sap/m/Suggest.js +5 -5
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsList.js +9 -7
- package/src/sap/m/SuggestionsListRenderer.js +2 -2
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +13 -11
- package/src/sap/m/SwitchRenderer.js +3 -3
- package/src/sap/m/TabContainer.js +9 -6
- package/src/sap/m/TabContainerItem.js +5 -8
- package/src/sap/m/TabStrip.js +23 -12
- package/src/sap/m/TabStripItem.js +7 -10
- package/src/sap/m/TabStripRenderer.js +2 -2
- package/src/sap/m/Table.js +4 -5
- package/src/sap/m/TablePersoController.js +10 -8
- package/src/sap/m/TablePersoDialog.js +19 -16
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableRenderer.js +4 -4
- package/src/sap/m/TableSelectDialog.js +5 -3
- package/src/sap/m/Text.js +36 -39
- package/src/sap/m/TextArea.js +5 -3
- package/src/sap/m/TextRenderer.js +2 -7
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileAttribute.js +64 -0
- package/src/sap/m/TileAttributeRenderer.js +70 -0
- package/src/sap/m/TileContainer.js +10 -8
- package/src/sap/m/TileContent.js +8 -4
- package/src/sap/m/TileRenderer.js +3 -3
- package/src/sap/m/TimePicker.js +24 -19
- package/src/sap/m/TimePickerClock.js +4 -3
- package/src/sap/m/TimePickerClocks.js +1 -1
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.js +12 -10
- package/src/sap/m/TimePickerSlider.js +9 -7
- package/src/sap/m/TimePickerSliders.js +17 -13
- package/src/sap/m/TimePickerSlidersRenderer.js +3 -3
- package/src/sap/m/Title.js +5 -4
- package/src/sap/m/TitlePropagationSupport.js +4 -4
- package/src/sap/m/ToggleButton.js +4 -3
- package/src/sap/m/Token.js +6 -6
- package/src/sap/m/Tokenizer.js +16 -10
- package/src/sap/m/Toolbar.js +4 -4
- 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 +4 -2
- package/src/sap/m/TreeItemBase.js +4 -3
- package/src/sap/m/TreeItemBaseRenderer.js +3 -3
- package/src/sap/m/UploadCollection.js +28 -24
- 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 +5 -5
- package/src/sap/m/VariantItem.js +8 -3
- package/src/sap/m/VariantManagement.js +112 -33
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +34 -21
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +9 -2
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +4 -3
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/WheelSliderContainerRenderer.js +3 -3
- package/src/sap/m/Wizard.js +17 -15
- package/src/sap/m/WizardProgressNavigator.js +18 -2
- package/src/sap/m/WizardProgressNavigatorRenderer.js +9 -5
- package/src/sap/m/WizardRenderer.js +6 -4
- package/src/sap/m/WizardStep.js +9 -11
- package/src/sap/m/changeHandler/AddTableColumn.js +3 -7
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/m/changeHandler/CombineButtons.js +4 -4
- package/src/sap/m/changeHandler/MoveTableColumns.js +3 -2
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/delegate/ValueStateMessage.js +3 -3
- package/src/sap/m/designtime/IconTabBar.designtime.js +3 -2
- package/src/sap/m/designtime/Link.designtime.js +4 -4
- package/src/sap/m/designtime/MenuButton.designtime.js +3 -0
- package/src/sap/m/designtime/ObjectIdentifier.designtime.js +0 -4
- package/src/sap/m/designtime/messagebundle_en_US_saprigi.properties +91 -91
- package/src/sap/m/flexibility/EngineFlex.js +14 -8
- package/src/sap/m/flexibility/MenuButton.flexibility.js +1 -0
- package/src/sap/m/inputUtils/SuggestionsPopoverPopoverMixin.js +4 -4
- package/src/sap/m/library.js +181 -59
- package/src/sap/m/messagebundle.properties +113 -90
- package/src/sap/m/messagebundle_ar.properties +16 -10
- package/src/sap/m/messagebundle_bg.properties +19 -13
- package/src/sap/m/messagebundle_ca.properties +16 -10
- package/src/sap/m/messagebundle_cnr.properties +21 -15
- package/src/sap/m/messagebundle_cs.properties +16 -10
- package/src/sap/m/messagebundle_cy.properties +19 -13
- package/src/sap/m/messagebundle_da.properties +14 -8
- package/src/sap/m/messagebundle_de.properties +12 -6
- package/src/sap/m/messagebundle_el.properties +27 -21
- package/src/sap/m/messagebundle_en.properties +1164 -22
- package/src/sap/m/messagebundle_en_GB.properties +23 -17
- package/src/sap/m/messagebundle_en_US_saprigi.properties +34 -22
- package/src/sap/m/messagebundle_es.properties +19 -13
- package/src/sap/m/messagebundle_es_MX.properties +18 -12
- package/src/sap/m/messagebundle_et.properties +14 -8
- package/src/sap/m/messagebundle_fi.properties +21 -15
- package/src/sap/m/messagebundle_fr.properties +15 -9
- package/src/sap/m/messagebundle_fr_CA.properties +11 -5
- package/src/sap/m/messagebundle_hi.properties +24 -18
- package/src/sap/m/messagebundle_hr.properties +15 -9
- package/src/sap/m/messagebundle_hu.properties +20 -14
- package/src/sap/m/messagebundle_id.properties +15 -9
- package/src/sap/m/messagebundle_it.properties +17 -11
- package/src/sap/m/messagebundle_iw.properties +13 -7
- package/src/sap/m/messagebundle_ja.properties +23 -17
- package/src/sap/m/messagebundle_kk.properties +14 -8
- package/src/sap/m/messagebundle_ko.properties +18 -12
- package/src/sap/m/messagebundle_lt.properties +17 -11
- package/src/sap/m/messagebundle_lv.properties +26 -20
- package/src/sap/m/messagebundle_mk.properties +20 -14
- package/src/sap/m/messagebundle_ms.properties +13 -7
- package/src/sap/m/messagebundle_nl.properties +16 -10
- package/src/sap/m/messagebundle_no.properties +15 -9
- package/src/sap/m/messagebundle_pl.properties +16 -10
- package/src/sap/m/messagebundle_pt.properties +16 -10
- package/src/sap/m/messagebundle_pt_PT.properties +13 -7
- package/src/sap/m/messagebundle_ro.properties +13 -7
- package/src/sap/m/messagebundle_ru.properties +15 -9
- package/src/sap/m/messagebundle_sh.properties +21 -15
- package/src/sap/m/messagebundle_sk.properties +13 -7
- package/src/sap/m/messagebundle_sl.properties +14 -8
- package/src/sap/m/messagebundle_sr.properties +21 -15
- package/src/sap/m/messagebundle_sv.properties +15 -9
- package/src/sap/m/messagebundle_th.properties +12 -6
- package/src/sap/m/messagebundle_tr.properties +15 -9
- package/src/sap/m/messagebundle_uk.properties +15 -9
- package/src/sap/m/messagebundle_vi.properties +16 -10
- package/src/sap/m/messagebundle_zh_CN.properties +12 -6
- package/src/sap/m/messagebundle_zh_TW.properties +12 -6
- package/src/sap/m/p13n/.eslintrc.json +19 -0
- package/src/sap/m/p13n/AbstractContainer.js +43 -29
- package/src/sap/m/p13n/AbstractContainerItem.js +8 -8
- package/src/sap/m/p13n/BasePanel.js +123 -76
- package/src/sap/m/p13n/Container.js +80 -50
- package/src/sap/m/p13n/Engine.js +331 -294
- package/src/sap/m/p13n/FilterController.js +335 -0
- package/src/sap/m/p13n/FilterPanel.js +291 -0
- package/src/sap/m/p13n/FlexUtil.js +23 -21
- package/src/sap/m/p13n/GroupController.js +97 -85
- package/src/sap/m/p13n/GroupPanel.js +30 -25
- package/src/sap/m/p13n/MetadataHelper.js +65 -21
- package/src/sap/m/p13n/PersistenceProvider.js +11 -9
- package/src/sap/m/p13n/Popup.js +63 -45
- package/src/sap/m/p13n/QueryPanel.js +117 -93
- package/src/sap/m/p13n/SelectionController.js +302 -237
- package/src/sap/m/p13n/SelectionPanel.js +117 -83
- package/src/sap/m/p13n/SortController.js +100 -89
- package/src/sap/m/p13n/SortPanel.js +46 -31
- package/src/sap/m/p13n/enums/PersistenceMode.js +57 -0
- package/src/sap/m/p13n/{enum → enums}/ProcessingStrategy.js +10 -8
- package/src/sap/m/p13n/handler/xConfigHandler.js +175 -161
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +151 -133
- package/src/sap/m/p13n/modification/LocalStorageModificationHandler.js +28 -28
- package/src/sap/m/p13n/modification/ModificationHandler.js +15 -15
- package/src/sap/m/p13n/modules/AdaptationProvider.js +7 -7
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +20 -18
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +7 -7
- package/src/sap/m/p13n/modules/UIManager.js +119 -117
- package/src/sap/m/p13n/modules/xConfigAPI.js +74 -68
- package/src/sap/m/plugins/CellSelector.js +142 -26
- package/src/sap/m/plugins/ColumnResizer.js +12 -17
- package/src/sap/m/plugins/ContextMenuSetting.js +155 -0
- package/src/sap/m/plugins/CopyProvider.js +170 -110
- package/src/sap/m/plugins/DataStateIndicator.js +9 -6
- package/src/sap/m/plugins/PasteProvider.js +18 -10
- package/src/sap/m/plugins/PluginBase.js +39 -15
- 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 +3 -3
- 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 +3 -3
- package/src/sap/m/semantic/MessagesIndicator.js +1 -1
- package/src/sap/m/semantic/MultiSelectAction.js +3 -3
- 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 +7 -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 +1 -1
- package/src/sap/m/semantic/SemanticPage.js +4 -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 +6 -12
- 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/ColumnWidthController.js +2 -3
- package/src/sap/m/table/Util.js +67 -40
- 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 +5 -5
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +14 -21
- package/src/sap/m/table/columnmenu/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 +7 -5
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +6 -4
- package/src/sap/m/table/columnmenu/QuickSortItem.js +6 -4
- package/src/sap/m/table/columnmenu/QuickTotal.js +7 -5
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/ActionSheet.less +10 -3
- package/src/sap/m/themes/base/ActionTile.less +7 -4
- package/src/sap/m/themes/base/Carousel.less +1 -1
- package/src/sap/m/themes/base/ContextMenuSetting.less +3 -0
- package/src/sap/m/themes/base/IconTabBar.less +2 -2
- package/src/sap/m/themes/base/Label.less +2 -1
- package/src/sap/m/themes/base/Link.less +1 -1
- package/src/sap/m/themes/base/ListItemBase.less +1 -1
- package/src/sap/m/themes/base/MenuButton.less +2 -2
- package/src/sap/m/themes/base/MessageView.less +6 -0
- package/src/sap/m/themes/base/MultiComboBox.less +7 -4
- package/src/sap/m/themes/base/NumericContent.less +2 -2
- package/src/sap/m/themes/base/ObjectListItem.less +1 -1
- package/src/sap/m/themes/base/ObjectNumber.less +4 -4
- package/src/sap/m/themes/base/ObjectStatus.less +263 -160
- package/src/sap/m/themes/base/Panel.less +18 -4
- package/src/sap/m/themes/base/Popover.less +5 -0
- package/src/sap/m/themes/base/SinglePlanningCalendarMonthGrid.less +21 -0
- package/src/sap/m/themes/base/StandardListItem.less +1 -1
- package/src/sap/m/themes/base/SuggestionItem.less +6 -0
- package/src/sap/m/themes/base/Table.less +0 -5
- package/src/sap/m/themes/base/TablePersoDialog.less +4 -2
- package/src/sap/m/themes/base/Text.less +2 -1
- package/src/sap/m/themes/base/UploadCollection.less +2 -2
- package/src/sap/m/themes/base/UploadSet.less +55 -0
- package/src/sap/m/themes/base/VariantManagement.less +2 -1
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NewMail.svg +27 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SignOut.svg +24 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NewMail.svg +9 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SignOut.svg +12 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NewMail.svg +59 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SignOut.svg +113 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NewMail.svg +27 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SignOut.svg +23 -0
- package/src/sap/m/themes/base/library.source.less +2 -1
- package/src/sap/m/upload/ActionsPlaceholder.js +1 -1
- package/src/sap/m/upload/Column.js +1 -1
- package/src/sap/m/upload/FilePreviewDialog.js +5 -5
- package/src/sap/m/upload/FilterPanel.js +5 -3
- package/src/sap/m/upload/UploadSet.js +122 -61
- package/src/sap/m/upload/UploadSetItem.js +31 -7
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/UploadSetwithTable.js +7 -6
- package/src/sap/m/upload/UploadSetwithTableItem.js +5 -5
- package/src/sap/m/upload/UploaderTableItem.js +1 -1
- package/src/sap/m/upload/p13n/PersManager.js +4 -2
- package/src/sap/m/upload/p13n/mediator/BaseMediator.js +1 -1
- package/src/sap/m/upload/p13n/mediator/ColumnsMediator.js +5 -4
- package/src/sap/m/upload/p13n/mediator/FilterMediator.js +5 -2
- package/src/sap/m/upload/p13n/mediator/GroupMediator.js +5 -4
- package/src/sap/m/upload/p13n/mediator/SortMediator.js +5 -4
- package/src/sap/m/upload/p13n/modules/PersPopupManager.js +3 -3
- package/LICENSES/BSD-2-Clause.txt +0 -22
- package/src/sap/m/CustomAttribute.js +0 -53
- package/src/sap/m/p13n/enum/PersistenceMode.js +0 -55
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
//Provides control sap.m.PlanningCalendar.
|
|
8
8
|
sap.ui.define([
|
|
9
|
+
"sap/base/i18n/Formatting",
|
|
10
|
+
"sap/base/i18n/Localization",
|
|
9
11
|
'sap/m/delegate/DateNavigation',
|
|
10
12
|
'sap/ui/core/Control',
|
|
11
13
|
'sap/ui/base/ManagedObjectObserver',
|
|
14
|
+
"sap/ui/core/Lib",
|
|
12
15
|
'sap/ui/unified/library',
|
|
13
16
|
'sap/ui/unified/calendar/CalendarUtils',
|
|
14
17
|
'sap/ui/unified/calendar/CalendarDate',
|
|
@@ -22,7 +25,6 @@ sap.ui.define([
|
|
|
22
25
|
'sap/ui/unified/CalendarRow',
|
|
23
26
|
'sap/ui/unified/CalendarRowRenderer',
|
|
24
27
|
'sap/ui/Device',
|
|
25
|
-
'sap/ui/core/Core',
|
|
26
28
|
'sap/ui/core/Element',
|
|
27
29
|
'sap/ui/core/Renderer',
|
|
28
30
|
'sap/ui/core/ResizeHandler',
|
|
@@ -31,7 +33,6 @@ sap.ui.define([
|
|
|
31
33
|
'sap/ui/core/dnd/DropInfo',
|
|
32
34
|
'sap/ui/core/dnd/DragDropInfo',
|
|
33
35
|
'sap/ui/core/format/DateFormat',
|
|
34
|
-
'sap/ui/core/Configuration',
|
|
35
36
|
'sap/ui/core/date/CalendarWeekNumbering',
|
|
36
37
|
'sap/ui/core/date/CalendarUtils',
|
|
37
38
|
'sap/ui/core/Locale',
|
|
@@ -54,11 +55,15 @@ sap.ui.define([
|
|
|
54
55
|
"sap/base/Log",
|
|
55
56
|
"sap/m/List",
|
|
56
57
|
"sap/ui/thirdparty/jquery",
|
|
57
|
-
|
|
58
|
+
// jQuery Plugin "control"
|
|
59
|
+
"sap/ui/dom/jquery/control"
|
|
58
60
|
], function(
|
|
61
|
+
Formatting,
|
|
62
|
+
Localization,
|
|
59
63
|
DateNavigation,
|
|
60
64
|
Control,
|
|
61
65
|
ManagedObjectObserver,
|
|
66
|
+
Library,
|
|
62
67
|
unifiedLibrary,
|
|
63
68
|
CalendarUtils,
|
|
64
69
|
CalendarDate,
|
|
@@ -72,7 +77,6 @@ sap.ui.define([
|
|
|
72
77
|
CalendarRow,
|
|
73
78
|
CalendarRowRenderer,
|
|
74
79
|
Device,
|
|
75
|
-
Core,
|
|
76
80
|
Element,
|
|
77
81
|
Renderer,
|
|
78
82
|
ResizeHandler,
|
|
@@ -81,7 +85,6 @@ sap.ui.define([
|
|
|
81
85
|
DropInfo,
|
|
82
86
|
DragDropInfo,
|
|
83
87
|
DateFormat,
|
|
84
|
-
Configuration,
|
|
85
88
|
CalendarWeekNumbering,
|
|
86
89
|
CalendarDateUtils,
|
|
87
90
|
Locale,
|
|
@@ -203,7 +206,7 @@ sap.ui.define([
|
|
|
203
206
|
* {@link sap.m.PlanningCalendarView PlanningCalendarView}'s properties.
|
|
204
207
|
*
|
|
205
208
|
* @extends sap.ui.core.Control
|
|
206
|
-
* @version 1.
|
|
209
|
+
* @version 1.121.0
|
|
207
210
|
*
|
|
208
211
|
* @constructor
|
|
209
212
|
* @public
|
|
@@ -304,8 +307,7 @@ sap.ui.define([
|
|
|
304
307
|
|
|
305
308
|
/**
|
|
306
309
|
* Defines rounding of the width <code>CalendarAppoinment</code>
|
|
307
|
-
* <b>Note:</b> This property is applied, when the calendar interval type is
|
|
308
|
-
* @experimental Since 1.81.0
|
|
310
|
+
* <b>Note:</b> This property is applied, when the calendar interval type is Day and the view shows more than 20 days
|
|
309
311
|
* @since 1.81.0
|
|
310
312
|
*/
|
|
311
313
|
appointmentRoundWidth: { type: "sap.ui.unified.CalendarAppointmentRoundWidth", group: "Appearance", defaultValue: CalendarAppointmentRoundWidth.None},
|
|
@@ -451,8 +453,36 @@ sap.ui.define([
|
|
|
451
453
|
/**
|
|
452
454
|
* Special days in the header calendar visualized as date range with a type.
|
|
453
455
|
*
|
|
454
|
-
* <b>Note:</b>
|
|
455
|
-
|
|
456
|
+
* <b>Note:</b> In case there are multiple <code>sap.ui.unified.DateTypeRange</code> instances given for a single date,
|
|
457
|
+
* only the first <code>sap.ui.unified.DateTypeRange</code> instance will be used.
|
|
458
|
+
* For example, using the following sample, the 1st of November will be displayed as a working day of type "Type10":
|
|
459
|
+
*
|
|
460
|
+
*
|
|
461
|
+
* <pre>
|
|
462
|
+
* new DateTypeRange({
|
|
463
|
+
* startDate: UI5Date.getInstance(2023, 10, 1),
|
|
464
|
+
* type: CalendarDayType.Type10,
|
|
465
|
+
* }),
|
|
466
|
+
* new DateTypeRange({
|
|
467
|
+
* startDate: UI5Date.getInstance(2023, 10, 1),
|
|
468
|
+
* type: CalendarDayType.NonWorking
|
|
469
|
+
* })
|
|
470
|
+
* </pre>
|
|
471
|
+
*
|
|
472
|
+
* If you want the first of November to be displayed as a non-working day and also as "Type10," the following should be done:
|
|
473
|
+
* <pre>
|
|
474
|
+
* new DateTypeRange({
|
|
475
|
+
* startDate: UI5Date.getInstance(2023, 10, 1),
|
|
476
|
+
* type: CalendarDayType.Type10,
|
|
477
|
+
* secondaryType: CalendarDayType.NonWorking
|
|
478
|
+
* })
|
|
479
|
+
* </pre>
|
|
480
|
+
*
|
|
481
|
+
* You can use only one of the following types for a given date: <code>sap.ui.unified.CalendarDayType.NonWorking</code>,
|
|
482
|
+
* <code>sap.ui.unified.CalendarDayType.Working</code> or <code>sap.ui.unified.CalendarDayType.None</code>.
|
|
483
|
+
* Assigning more than one of these values in combination for the same date will lead to unpredictable results.
|
|
484
|
+
*
|
|
485
|
+
*/
|
|
456
486
|
specialDates : {type : "sap.ui.unified.DateTypeRange", multiple : true, singularName : "specialDate"},
|
|
457
487
|
|
|
458
488
|
/**
|
|
@@ -773,7 +803,7 @@ sap.ui.define([
|
|
|
773
803
|
this.setAggregation("header", this._createHeader());
|
|
774
804
|
this._attachHeaderEvents();
|
|
775
805
|
|
|
776
|
-
this._oRB =
|
|
806
|
+
this._oRB = Library.getResourceBundleFor("sap.m");
|
|
777
807
|
|
|
778
808
|
var sId = this.getId();
|
|
779
809
|
this._oIntervalTypeSelect = this._getHeader()._getOrCreateViewSwitch();
|
|
@@ -822,10 +852,15 @@ sap.ui.define([
|
|
|
822
852
|
}
|
|
823
853
|
},
|
|
824
854
|
onAfterRendering: function () {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
855
|
+
if (this.hasListeners("rowHeaderPress")) {
|
|
856
|
+
this._addRowHeaderDescription();
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
const oRowHeader = oTable.$().find(".sapMPlanCalRowHead");
|
|
860
|
+
this._rowHeaderPressEventMouse = oRowHeader.on("click", function (oEvent) {
|
|
861
|
+
const oRowListItem = Element.closestTo(oEvent.currentTarget),
|
|
862
|
+
oRow = getRow(oRowListItem),
|
|
863
|
+
sRowHeaderId = oRowListItem.getAggregation("cells")[0].getId();
|
|
829
864
|
|
|
830
865
|
/**
|
|
831
866
|
* @deprecated As of version 1.119
|
|
@@ -833,7 +868,7 @@ sap.ui.define([
|
|
|
833
868
|
this.fireRowHeaderClick({headerId: sRowHeaderId, row: oRow});
|
|
834
869
|
this.fireRowHeaderPress({headerId: sRowHeaderId, row: oRow});
|
|
835
870
|
}.bind(this));
|
|
836
|
-
this._rowHeaderPressEventKeyboard =
|
|
871
|
+
this._rowHeaderPressEventKeyboard = oRowHeader.on("keydown", function (oEvent) {
|
|
837
872
|
if (oEvent.which === KeyCodes.SPACE || oEvent.which === KeyCodes.ENTER) {
|
|
838
873
|
var oRowListItem = Element.closestTo(oEvent.currentTarget),
|
|
839
874
|
oRow = getRow(oRowListItem),
|
|
@@ -946,9 +981,11 @@ sap.ui.define([
|
|
|
946
981
|
if (this.hasListeners("intervalSelect")) {
|
|
947
982
|
INTERVAL_CTR_REFERENCES.forEach(function (sControlRef) {
|
|
948
983
|
if (this[sControlRef]) {
|
|
949
|
-
this[sControlRef]._setAriaRole("
|
|
984
|
+
this[sControlRef]._setAriaRole("columnheader"); // set new aria role
|
|
950
985
|
}
|
|
951
986
|
}, this);
|
|
987
|
+
} else if (this.hasListeners("rowHeaderPress") && this.getDomRef()) {
|
|
988
|
+
this._addRowHeaderDescription();
|
|
952
989
|
}
|
|
953
990
|
|
|
954
991
|
return this;
|
|
@@ -1048,6 +1085,16 @@ sap.ui.define([
|
|
|
1048
1085
|
this.fireStartDateChange();
|
|
1049
1086
|
};
|
|
1050
1087
|
|
|
1088
|
+
PlanningCalendar.prototype._addRowHeaderDescription = function() {
|
|
1089
|
+
const aPlanningCalendarRowListItems = this.getAggregation("table").getItems();
|
|
1090
|
+
aPlanningCalendarRowListItems.forEach(function(oRowListItem) {
|
|
1091
|
+
const oRowId = oRowListItem.getTimeline().getAssociation("row"),
|
|
1092
|
+
oRow = Element.getElementById(oRowId),
|
|
1093
|
+
sRowDesctiption = oRow.getRowHeaderDescription() || this._oRB.getText("PLANNING_CALENDAR_ROW_HEADER_DESCRIPTION");
|
|
1094
|
+
oRowListItem.getDomRef().querySelector(".sapMPlanCalRowHead").setAttribute("aria-description", sRowDesctiption);
|
|
1095
|
+
}, this);
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1051
1098
|
/**
|
|
1052
1099
|
* Creates and formats the strings to be displayed in the picker button from the _header aggregation.
|
|
1053
1100
|
* If the date part of the start and end range of the showed view are different, the string contains
|
|
@@ -1062,7 +1109,7 @@ sap.ui.define([
|
|
|
1062
1109
|
oEndDate = CalendarUtils._createLocalDate(oRangeDates.oEndDate, true),
|
|
1063
1110
|
sViewKey = this.getViewKey(),
|
|
1064
1111
|
sViewType = CalendarIntervalType[sViewKey] ? CalendarIntervalType[sViewKey] : this._getView(sViewKey).getIntervalType(),
|
|
1065
|
-
bRTL =
|
|
1112
|
+
bRTL = Localization.getRTL(),
|
|
1066
1113
|
oDateFormat,
|
|
1067
1114
|
sResult,
|
|
1068
1115
|
sBeginningResult,
|
|
@@ -1178,7 +1225,7 @@ sap.ui.define([
|
|
|
1178
1225
|
};
|
|
1179
1226
|
|
|
1180
1227
|
PlanningCalendar.prototype._getPrimaryCalendarType = function(){
|
|
1181
|
-
return this.getProperty("primaryCalendarType") ||
|
|
1228
|
+
return this.getProperty("primaryCalendarType") || Formatting.getCalendarType();
|
|
1182
1229
|
};
|
|
1183
1230
|
|
|
1184
1231
|
/**
|
|
@@ -1279,7 +1326,7 @@ sap.ui.define([
|
|
|
1279
1326
|
|
|
1280
1327
|
PlanningCalendar.prototype._setAriaRole = function (oInterval) {
|
|
1281
1328
|
if (this.hasListeners("intervalSelect")) {
|
|
1282
|
-
oInterval._setAriaRole("
|
|
1329
|
+
oInterval._setAriaRole("columnheader"); // set new aria role
|
|
1283
1330
|
} else {
|
|
1284
1331
|
oInterval._setAriaRole("gridcell"); // set new aria role
|
|
1285
1332
|
}
|
|
@@ -2062,7 +2109,7 @@ sap.ui.define([
|
|
|
2062
2109
|
return;
|
|
2063
2110
|
}
|
|
2064
2111
|
var sCurrentPickerId = this._getHeader().getAssociation("currentPicker"),
|
|
2065
|
-
oPicker =
|
|
2112
|
+
oPicker = Element.getElementById(sCurrentPickerId),
|
|
2066
2113
|
sViewKey = this.getViewKey(),
|
|
2067
2114
|
oDateNav = this._dateNav,
|
|
2068
2115
|
oPCStart = oDateNav.getStart(),
|
|
@@ -2099,7 +2146,7 @@ sap.ui.define([
|
|
|
2099
2146
|
};
|
|
2100
2147
|
|
|
2101
2148
|
PlanningCalendar.prototype._updateWeekConfiguration = function() {
|
|
2102
|
-
var sLocale =
|
|
2149
|
+
var sLocale = new Locale(Formatting.getLanguageTag()).toString(),
|
|
2103
2150
|
sCalendarWeekNumbering = this.getCalendarWeekNumbering(),
|
|
2104
2151
|
iFirstDayOfWeek = this.getFirstDayOfWeek(),
|
|
2105
2152
|
oWeekConfiguration = CalendarDateUtils.getWeekConfigurationValues(sCalendarWeekNumbering, new Locale(sLocale));
|
|
@@ -2109,6 +2156,7 @@ sap.ui.define([
|
|
|
2109
2156
|
}
|
|
2110
2157
|
|
|
2111
2158
|
this._dateNav.setWeekConfiguration(oWeekConfiguration);
|
|
2159
|
+
this.setStartDate(this._dateNav.getStart());
|
|
2112
2160
|
};
|
|
2113
2161
|
|
|
2114
2162
|
PlanningCalendar.prototype._handleFocus = function (oEvent) {
|
|
@@ -2184,7 +2232,7 @@ sap.ui.define([
|
|
|
2184
2232
|
* is because the dates are timezone irrelevant), it should be called with the local datetime values presented
|
|
2185
2233
|
* 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)
|
|
2186
2234
|
*/
|
|
2187
|
-
var sLocale =
|
|
2235
|
+
var sLocale = new Locale(Formatting.getLanguageTag()).toString(),
|
|
2188
2236
|
oWeekConfigurationValues = CalendarDateUtils.getWeekConfigurationValues(this.getCalendarWeekNumbering(), new Locale(sLocale)),
|
|
2189
2237
|
oFirstDateOfWeek,
|
|
2190
2238
|
oLocalDate;
|
|
@@ -2226,7 +2274,7 @@ sap.ui.define([
|
|
|
2226
2274
|
PlanningCalendar.prototype._updatePickerSelection = function() {
|
|
2227
2275
|
var oRangeDates = this._getFirstAndLastRangeDate(),
|
|
2228
2276
|
sCurrentPickerId = this._getHeader().getAssociation("currentPicker"),
|
|
2229
|
-
oPicker =
|
|
2277
|
+
oPicker = Element.getElementById(sCurrentPickerId),
|
|
2230
2278
|
oSelectedRange;
|
|
2231
2279
|
|
|
2232
2280
|
oSelectedRange = new DateRange({
|
|
@@ -2680,7 +2728,7 @@ sap.ui.define([
|
|
|
2680
2728
|
this.setAssociation("legend", vLegend, true);
|
|
2681
2729
|
|
|
2682
2730
|
var aRows = this.getRows(),
|
|
2683
|
-
oLegend = this.getLegend() &&
|
|
2731
|
+
oLegend = this.getLegend() && Element.getElementById(this.getLegend()),
|
|
2684
2732
|
oLegendDestroyObserver;
|
|
2685
2733
|
|
|
2686
2734
|
for (var i = 0; i < aRows.length; i++) {
|
|
@@ -3151,7 +3199,11 @@ sap.ui.define([
|
|
|
3151
3199
|
*/
|
|
3152
3200
|
PlanningCalendar.prototype._handleDateSelect = function(oEvent) {
|
|
3153
3201
|
var oStartDate,
|
|
3154
|
-
oCurrentStartDate = this.getStartDate()
|
|
3202
|
+
oCurrentStartDate = this.getStartDate(),
|
|
3203
|
+
sViewKey = this.getViewKey(),
|
|
3204
|
+
oCurrentView = this._getView(sViewKey),
|
|
3205
|
+
sCurrentViewIntervalType = oCurrentView.getIntervalType(),
|
|
3206
|
+
sControlRef;
|
|
3155
3207
|
|
|
3156
3208
|
if (this.isRelative()) {
|
|
3157
3209
|
oStartDate = UI5Date.getInstance(this.getMinDate().getTime());
|
|
@@ -3163,7 +3215,7 @@ sap.ui.define([
|
|
|
3163
3215
|
}
|
|
3164
3216
|
|
|
3165
3217
|
// Checking if the current view (custom or not) is of type Hour
|
|
3166
|
-
if (
|
|
3218
|
+
if (sCurrentViewIntervalType === CalendarIntervalType.Hour) {
|
|
3167
3219
|
oStartDate.setHours(oCurrentStartDate.getHours());
|
|
3168
3220
|
oStartDate.setMinutes(oCurrentStartDate.getMinutes());
|
|
3169
3221
|
oStartDate.setSeconds(oCurrentStartDate.getSeconds());
|
|
@@ -3171,13 +3223,11 @@ sap.ui.define([
|
|
|
3171
3223
|
|
|
3172
3224
|
if (oCurrentStartDate.getTime() !== oStartDate.getTime()){
|
|
3173
3225
|
this._changeStartDate(oStartDate);
|
|
3226
|
+
if (sCurrentViewIntervalType === CalendarIntervalType.Month) {
|
|
3227
|
+
oStartDate = this.getStartDate();
|
|
3228
|
+
}
|
|
3174
3229
|
this._dateNav.setCurrent(oStartDate);
|
|
3175
3230
|
|
|
3176
|
-
var sViewKey = this.getViewKey(),
|
|
3177
|
-
oCurrentView = this._getView(sViewKey),
|
|
3178
|
-
sCurrentViewIntervalType = oCurrentView.getIntervalType(),
|
|
3179
|
-
sControlRef;
|
|
3180
|
-
|
|
3181
3231
|
if (sCurrentViewIntervalType === "Hour") {
|
|
3182
3232
|
sCurrentViewIntervalType = "Time";
|
|
3183
3233
|
} else if (sCurrentViewIntervalType === "Day") {
|
|
@@ -3675,7 +3725,7 @@ sap.ui.define([
|
|
|
3675
3725
|
for (var i = 0; i < rows.length; i++) {
|
|
3676
3726
|
var aApps = getRowTimeline(rows[i]).aSelectedAppointments;
|
|
3677
3727
|
for (var j = 0; j < aApps.length; j++) {
|
|
3678
|
-
var oApp =
|
|
3728
|
+
var oApp = Element.getElementById(aApps[j]);
|
|
3679
3729
|
if (oApp) {
|
|
3680
3730
|
oApp.setProperty("selected", false, true);
|
|
3681
3731
|
oApp.$().removeClass("sapUiCalendarAppSel");
|
|
@@ -3983,7 +4033,7 @@ sap.ui.define([
|
|
|
3983
4033
|
sLegendId = oTimeline.getLegend();
|
|
3984
4034
|
|
|
3985
4035
|
if (sLegendId) {
|
|
3986
|
-
oLegend =
|
|
4036
|
+
oLegend = Element.getElementById(sLegendId);
|
|
3987
4037
|
if (oLegend) {
|
|
3988
4038
|
aTypes = oLegend.getAppointmentItems ? oLegend.getAppointmentItems() : oLegend.getItems();
|
|
3989
4039
|
} else {
|
|
@@ -4034,60 +4084,6 @@ sap.ui.define([
|
|
|
4034
4084
|
}
|
|
4035
4085
|
};
|
|
4036
4086
|
|
|
4037
|
-
PlanningCalendarRowTimelineRenderer.renderInterval = function (oRm, oTimeline, iInterval, iWidth, aIntervalHeaders, aNonWorkingItems, iStartOffset, iNonWorkingMax, aNonWorkingSubItems, iSubStartOffset, iNonWorkingSubMax, bFirstOfType, bLastOfType) {
|
|
4038
|
-
var sIntervalType = oTimeline.getIntervalType(),
|
|
4039
|
-
sAdditionalNonWorkingClass;
|
|
4040
|
-
if (oTimeline._getRelativeInfo().bIsRelative){
|
|
4041
|
-
var aEmptyNonWorkDay = [];
|
|
4042
|
-
return CalendarRowRenderer.renderInterval(oRm, oTimeline, iInterval, iWidth, aIntervalHeaders, aEmptyNonWorkDay, iStartOffset, iNonWorkingMax, aNonWorkingSubItems, iSubStartOffset, iNonWorkingSubMax, bFirstOfType, bLastOfType, sAdditionalNonWorkingClass);
|
|
4043
|
-
}
|
|
4044
|
-
if (sIntervalType === CalendarIntervalType.Day || sIntervalType === CalendarIntervalType.Week || sIntervalType === CalendarIntervalType.OneMonth || sIntervalType === "OneMonth") {
|
|
4045
|
-
var oRow = getRow(oTimeline.getParent()),
|
|
4046
|
-
oPC = oRow.getParent(),
|
|
4047
|
-
fnNonWorkingFilter = function (oSpecialDate) {
|
|
4048
|
-
return oSpecialDate.getType() === CalendarDayType.NonWorking;
|
|
4049
|
-
},
|
|
4050
|
-
aRowNonWorkingDates = oRow._getSpecialDates().filter(fnNonWorkingFilter),
|
|
4051
|
-
aPCNonWorkingDates = oPC._getSpecialDates().filter(fnNonWorkingFilter),
|
|
4052
|
-
oRowStartDate = oTimeline.getStartDate(),
|
|
4053
|
-
aAllNonworkingDates, oCurrentDate, oNonWorkingStartDate, oNonWorkingEndDate;
|
|
4054
|
-
|
|
4055
|
-
if (aPCNonWorkingDates && aRowNonWorkingDates) {
|
|
4056
|
-
aAllNonworkingDates = aPCNonWorkingDates.concat(aRowNonWorkingDates);
|
|
4057
|
-
} else if (aRowNonWorkingDates) {
|
|
4058
|
-
aAllNonworkingDates = aRowNonWorkingDates;
|
|
4059
|
-
}
|
|
4060
|
-
|
|
4061
|
-
if (aAllNonworkingDates && aAllNonworkingDates.length) {
|
|
4062
|
-
var fnDayMatchesCurrentDate = function (iDay) {
|
|
4063
|
-
return iDay === oCurrentDate.getDay();
|
|
4064
|
-
};
|
|
4065
|
-
oCurrentDate = UI5Date.getInstance(oRowStartDate.getTime());
|
|
4066
|
-
oCurrentDate.setHours(0, 0, 0);
|
|
4067
|
-
oCurrentDate.setDate(oRowStartDate.getDate() + iInterval);
|
|
4068
|
-
|
|
4069
|
-
for (var i = 0; i < aAllNonworkingDates.length; i++) {
|
|
4070
|
-
if (aAllNonworkingDates[i].getStartDate()) {
|
|
4071
|
-
oNonWorkingStartDate = UI5Date.getInstance(aAllNonworkingDates[i].getStartDate().getTime());
|
|
4072
|
-
}
|
|
4073
|
-
if (aAllNonworkingDates[i].getEndDate()) {
|
|
4074
|
-
oNonWorkingEndDate = UI5Date.getInstance(aAllNonworkingDates[i].getEndDate().getTime());
|
|
4075
|
-
} else {
|
|
4076
|
-
oNonWorkingEndDate = UI5Date.getInstance(aAllNonworkingDates[i].getStartDate().getTime());
|
|
4077
|
-
oNonWorkingEndDate.setHours(23, 59, 59);
|
|
4078
|
-
}
|
|
4079
|
-
if (oCurrentDate.getTime() >= oNonWorkingStartDate.getTime() && oCurrentDate.getTime() <= oNonWorkingEndDate.getTime()) {
|
|
4080
|
-
var bAlreadyNonWorkingDate = aNonWorkingItems.some(fnDayMatchesCurrentDate);
|
|
4081
|
-
if (!bAlreadyNonWorkingDate) {
|
|
4082
|
-
sAdditionalNonWorkingClass = "sapUiCalendarRowAppsNoWork";
|
|
4083
|
-
}
|
|
4084
|
-
}
|
|
4085
|
-
}
|
|
4086
|
-
}
|
|
4087
|
-
}
|
|
4088
|
-
CalendarRowRenderer.renderInterval(oRm, oTimeline, iInterval, iWidth, aIntervalHeaders, aNonWorkingItems, iStartOffset, iNonWorkingMax, aNonWorkingSubItems, iSubStartOffset, iNonWorkingSubMax, bFirstOfType, bLastOfType, sAdditionalNonWorkingClass);
|
|
4089
|
-
};
|
|
4090
|
-
|
|
4091
4087
|
/**
|
|
4092
4088
|
* Represents timeline that holds the appointments and intervals inside the PlanningCalendarRowListItem
|
|
4093
4089
|
*/
|
|
@@ -4143,6 +4139,54 @@ sap.ui.define([
|
|
|
4143
4139
|
return this._isRowAppsIntervalMouseDownTarget;
|
|
4144
4140
|
};
|
|
4145
4141
|
|
|
4142
|
+
/**
|
|
4143
|
+
* @private
|
|
4144
|
+
* @override
|
|
4145
|
+
*/
|
|
4146
|
+
PlanningCalendarRowTimeline.prototype._isNonWorkingInterval = function (iInterval, aNonWorkingItems, iStartOffset, iNonWorkingMax) {
|
|
4147
|
+
const oRow = Element.getElementById(this.getAssociation("row")),
|
|
4148
|
+
oDate = CalendarDate.fromUTCDate(this._getStartDate().getJSDate()),
|
|
4149
|
+
oRowSpecialDates = oRow._getSpecialDates(),
|
|
4150
|
+
oPCSpecialDates = oRow.getParent()._getSpecialDates();
|
|
4151
|
+
|
|
4152
|
+
oDate.setDate(oDate.getDate() + iInterval);
|
|
4153
|
+
|
|
4154
|
+
const bWorkingInRow = this._isDateOfType(oDate, CalendarDayType.Working, oRowSpecialDates),
|
|
4155
|
+
bNonWorkingInRow = this._isDateOfType(oDate, CalendarDayType.NonWorking, oRowSpecialDates),
|
|
4156
|
+
bWorkingInPC = this._isDateOfType(oDate, CalendarDayType.Working, oPCSpecialDates),
|
|
4157
|
+
bNonWorkingInPC = this._isDateOfType(oDate, CalendarDayType.NonWorking, oPCSpecialDates),
|
|
4158
|
+
bNonWorkingProperty = CalendarRow.prototype._isNonWorkingInterval.call(this, iInterval, aNonWorkingItems, iStartOffset, iNonWorkingMax);
|
|
4159
|
+
|
|
4160
|
+
return bNonWorkingInRow
|
|
4161
|
+
|| (bNonWorkingInPC && !bWorkingInRow)
|
|
4162
|
+
|| (bNonWorkingProperty && !bWorkingInRow && !bWorkingInPC);
|
|
4163
|
+
};
|
|
4164
|
+
|
|
4165
|
+
/**
|
|
4166
|
+
* Checks if a given date corresponds to a given type.
|
|
4167
|
+
*
|
|
4168
|
+
* @private
|
|
4169
|
+
* @param {sap.ui.unified.calendar.CalendarDate} oDate Date object to check if it corresponds to a given type
|
|
4170
|
+
* @param {string} sType String used for type checking
|
|
4171
|
+
* @param {array} aSpecialDates A of predefined date types
|
|
4172
|
+
* @returns {boolean}
|
|
4173
|
+
*/
|
|
4174
|
+
PlanningCalendarRowTimeline.prototype._isDateOfType = function (oDate, sType, aSpecialDates) {
|
|
4175
|
+
let oStartDate, oEndDate;
|
|
4176
|
+
const oDateRange = aSpecialDates
|
|
4177
|
+
.find(function(oDateType) {
|
|
4178
|
+
oStartDate = oDateType.getStartDate()
|
|
4179
|
+
? CalendarDate.fromLocalJSDate(oDateType.getStartDate())
|
|
4180
|
+
: CalendarDate.fromLocalJSDate(oDateType.getEndDate());
|
|
4181
|
+
oEndDate = oDateType.getEndDate()
|
|
4182
|
+
? CalendarDate.fromLocalJSDate(oDateType.getEndDate())
|
|
4183
|
+
: CalendarDate.fromLocalJSDate(oDateType.getStartDate());
|
|
4184
|
+
return CalendarUtils._isBetween(oDate, oStartDate, oEndDate, true);
|
|
4185
|
+
});
|
|
4186
|
+
|
|
4187
|
+
return Boolean(oDateRange) && (oDateRange.getType() === sType || oDateRange.getSecondaryType() === sType);
|
|
4188
|
+
};
|
|
4189
|
+
|
|
4146
4190
|
/**
|
|
4147
4191
|
* Renders invisible interval placeholders that are used for drop targets.
|
|
4148
4192
|
*/
|
|
@@ -4308,9 +4352,9 @@ sap.ui.define([
|
|
|
4308
4352
|
fnAlignIndicator = function () {
|
|
4309
4353
|
var $Indicator = jQuery(oDragSession.getIndicator()),
|
|
4310
4354
|
oDropRects = oDragSession.getDropControl().getDomRef().getBoundingClientRect(),
|
|
4311
|
-
oRowRects =
|
|
4355
|
+
oRowRects = Element.getElementById(sTargetElementId).getDomRef().getBoundingClientRect(),
|
|
4312
4356
|
iAppWidth = oDragSession.getDragControl().$().outerWidth(),
|
|
4313
|
-
bRTL =
|
|
4357
|
+
bRTL = Localization.getRTL(),
|
|
4314
4358
|
iAvailWidth = bRTL ? Math.ceil(oDropRects.right) - oRowRects.left : oRowRects.right - Math.ceil(oDropRects.left);
|
|
4315
4359
|
|
|
4316
4360
|
$Indicator
|
|
@@ -4498,7 +4542,7 @@ sap.ui.define([
|
|
|
4498
4542
|
$Indicator.addClass("sapUiDnDIndicatorHide");
|
|
4499
4543
|
},
|
|
4500
4544
|
oDropRects = oDragSession.getDropControl().getDomRef().getBoundingClientRect(),
|
|
4501
|
-
oRowRects =
|
|
4545
|
+
oRowRects = Element.getElementById(sTargetElementId).getDomRef().getBoundingClientRect(),
|
|
4502
4546
|
mDraggedControlConfig = {
|
|
4503
4547
|
width: oDropRects.left + oDropRects.width - (oDragSession.getDragControl().$().position().left + oRowRects.left),
|
|
4504
4548
|
"z-index": 1,
|
|
@@ -4631,11 +4675,12 @@ sap.ui.define([
|
|
|
4631
4675
|
};
|
|
4632
4676
|
};
|
|
4633
4677
|
|
|
4634
|
-
PlanningCalendar.prototype._calcCreateNewAppHours = function(oRowStartDate,
|
|
4635
|
-
var
|
|
4678
|
+
PlanningCalendar.prototype._calcCreateNewAppHours = function(oRowStartDate, iFirstIndex, iSecondIndex) {
|
|
4679
|
+
var [iStartIndex, iEndIndex] = [iFirstIndex, iSecondIndex].sort((iIndexA, iIndexB) => iIndexA - iIndexB),
|
|
4680
|
+
oRowStartUTC = CalendarUtils._createUniversalUTCDate(oRowStartDate, null, true),
|
|
4636
4681
|
iMinutesStep = 30 * 60 * 1000, // 30 min
|
|
4637
|
-
iStartAddon =
|
|
4638
|
-
iEndAddon =
|
|
4682
|
+
iStartAddon = iStartIndex,
|
|
4683
|
+
iEndAddon = iEndIndex + 1,
|
|
4639
4684
|
oRowStartDateTimeUTC = UI5Date.getInstance(oRowStartUTC.setUTCMinutes(0, 0, 0)),
|
|
4640
4685
|
oAppStartUTC = UI5Date.getInstance(oRowStartDateTimeUTC.getTime() + iStartAddon * iMinutesStep),
|
|
4641
4686
|
oAppEndUTC = UI5Date.getInstance(oRowStartDateTimeUTC.getTime() + iEndAddon * iMinutesStep);
|
|
@@ -4646,10 +4691,12 @@ sap.ui.define([
|
|
|
4646
4691
|
};
|
|
4647
4692
|
};
|
|
4648
4693
|
|
|
4649
|
-
PlanningCalendar.prototype._calcCreateNewAppDays = function(oRowStartDate,
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4694
|
+
PlanningCalendar.prototype._calcCreateNewAppDays = function(oRowStartDate, iFirstIndex, iSecondIndex) {
|
|
4695
|
+
|
|
4696
|
+
var [iStartIndex, iEndIndex] = [iFirstIndex, iSecondIndex].sort((iIndexA, iIndexB) => iIndexA - iIndexB),
|
|
4697
|
+
oRowStartUTC = CalendarUtils._createUniversalUTCDate(oRowStartDate, null, true),
|
|
4698
|
+
iStartAddon = iStartIndex,
|
|
4699
|
+
iEndAddon = iEndIndex + 1,
|
|
4653
4700
|
oAppStartUTC = UI5Date.getInstance(oRowStartUTC.getTime()),
|
|
4654
4701
|
oAppEndUTC = UI5Date.getInstance(oRowStartUTC.getTime());
|
|
4655
4702
|
|
|
@@ -4659,10 +4706,11 @@ sap.ui.define([
|
|
|
4659
4706
|
};
|
|
4660
4707
|
};
|
|
4661
4708
|
|
|
4662
|
-
PlanningCalendar.prototype._calcCreateNewAppMonths = function(oRowStartDate,
|
|
4663
|
-
var
|
|
4664
|
-
|
|
4665
|
-
|
|
4709
|
+
PlanningCalendar.prototype._calcCreateNewAppMonths = function(oRowStartDate, iFirstIndex, iSecondIndex) {
|
|
4710
|
+
var [iStartIndex, iEndIndex] = [iFirstIndex, iSecondIndex].sort((iIndexA, iIndexB) => iIndexA - iIndexB),
|
|
4711
|
+
oRowStartUTC = CalendarUtils._createUniversalUTCDate(oRowStartDate, null, true),
|
|
4712
|
+
iStartAddon = iStartIndex,
|
|
4713
|
+
iEndAddon = iEndIndex + 1,
|
|
4666
4714
|
oAppStartUTC = UI5Date.getInstance(oRowStartUTC.getTime()),
|
|
4667
4715
|
oAppEndUTC = UI5Date.getInstance(oRowStartUTC.getTime());
|
|
4668
4716
|
|
|
@@ -4726,7 +4774,7 @@ sap.ui.define([
|
|
|
4726
4774
|
if (iStartXPosition <= oDropRects.left) {
|
|
4727
4775
|
oDragSession.setIndicatorConfig({ left: iStartXPosition, width: Math.max((oDropRects.left + oDropRects.width - iStartXPosition), oDropRects.width) });
|
|
4728
4776
|
} else {
|
|
4729
|
-
oDragSession.setIndicatorConfig({ left: oDropRects.left, width: iStartXPosition - oDropRects.left });
|
|
4777
|
+
oDragSession.setIndicatorConfig({ left: oDropRects.left, width: Math.max((iStartXPosition - oDropRects.left + oDropRects.width), oDropRects.width) });
|
|
4730
4778
|
}
|
|
4731
4779
|
} else {
|
|
4732
4780
|
oDragSession.setData("text", oDropRects.left + "|" + oTimeline.indexOfAggregation("_intervalPlaceholders", oDragSession.getDropControl()));
|
|
@@ -4797,11 +4845,14 @@ sap.ui.define([
|
|
|
4797
4845
|
PlanningCalendar.prototype._getSpecialDates = function(){
|
|
4798
4846
|
var specialDates = this.getSpecialDates();
|
|
4799
4847
|
for (var i = 0; i < specialDates.length; i++) {
|
|
4800
|
-
var bNeedsSecondTypeAdding = specialDates[i].getSecondaryType() ===
|
|
4801
|
-
&& specialDates[i].getType() !==
|
|
4848
|
+
var bNeedsSecondTypeAdding = (specialDates[i].getSecondaryType() === CalendarDayType.NonWorking
|
|
4849
|
+
&& specialDates[i].getType() !== CalendarDayType.NonWorking)
|
|
4850
|
+
|| (specialDates[i].getSecondaryType() === CalendarDayType.Working
|
|
4851
|
+
&& specialDates[i].getType() !== CalendarDayType.Working);
|
|
4852
|
+
|
|
4802
4853
|
if (bNeedsSecondTypeAdding) {
|
|
4803
4854
|
var newSpecialDate = new DateTypeRange();
|
|
4804
|
-
newSpecialDate.setType(
|
|
4855
|
+
newSpecialDate.setType(specialDates[i].getSecondaryType());
|
|
4805
4856
|
newSpecialDate.setStartDate(specialDates[i].getStartDate());
|
|
4806
4857
|
if (specialDates[i].getEndDate()) {
|
|
4807
4858
|
newSpecialDate.setEndDate(specialDates[i].getEndDate());
|
|
@@ -4824,11 +4875,11 @@ sap.ui.define([
|
|
|
4824
4875
|
function getRow(oListItem) {
|
|
4825
4876
|
var sId = oListItem.getId();
|
|
4826
4877
|
|
|
4827
|
-
return
|
|
4878
|
+
return Element.getElementById(sId.substring(0, sId.indexOf(LISTITEM_SUFFIX)));
|
|
4828
4879
|
}
|
|
4829
4880
|
|
|
4830
4881
|
function getListItem(oRow) {
|
|
4831
|
-
return
|
|
4882
|
+
return Element.getElementById(oRow.getId() + LISTITEM_SUFFIX);
|
|
4832
4883
|
}
|
|
4833
4884
|
|
|
4834
4885
|
function getRowHeader(oRow) {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides control sap.m.PlanningCalendarHeader.
|
|
8
8
|
sap.ui.define([
|
|
9
|
+
"sap/base/i18n/Localization",
|
|
9
10
|
'sap/ui/core/Element',
|
|
10
11
|
'sap/ui/core/Control',
|
|
11
12
|
'./library',
|
|
@@ -17,11 +18,11 @@ sap.ui.define([
|
|
|
17
18
|
'./Title',
|
|
18
19
|
'./ToolbarSpacer',
|
|
19
20
|
'./SegmentedButton',
|
|
21
|
+
"sap/ui/core/Lib",
|
|
20
22
|
'sap/ui/unified/Calendar',
|
|
21
23
|
'sap/ui/unified/calendar/CustomMonthPicker',
|
|
22
24
|
'sap/ui/unified/calendar/CustomYearPicker',
|
|
23
25
|
'sap/ui/unified/calendar/IndexPicker',
|
|
24
|
-
'sap/ui/core/Configuration',
|
|
25
26
|
'sap/ui/core/date/CalendarWeekNumbering',
|
|
26
27
|
'sap/ui/unified/calendar/CalendarDate',
|
|
27
28
|
'sap/ui/core/IconPool',
|
|
@@ -31,6 +32,7 @@ sap.ui.define([
|
|
|
31
32
|
'sap/ui/core/date/UI5Date'
|
|
32
33
|
],
|
|
33
34
|
function(
|
|
35
|
+
Localization,
|
|
34
36
|
Element,
|
|
35
37
|
Control,
|
|
36
38
|
library,
|
|
@@ -42,11 +44,11 @@ function(
|
|
|
42
44
|
Title,
|
|
43
45
|
ToolbarSpacer,
|
|
44
46
|
SegmentedButton,
|
|
47
|
+
Library,
|
|
45
48
|
Calendar,
|
|
46
49
|
CustomMonthPicker,
|
|
47
50
|
CustomYearPicker,
|
|
48
51
|
IndexPicker,
|
|
49
|
-
Configuration,
|
|
50
52
|
CalendarWeekNumbering,
|
|
51
53
|
CalendarDate,
|
|
52
54
|
IconPool,
|
|
@@ -98,7 +100,7 @@ function(
|
|
|
98
100
|
* @extends sap.ui.core.Control
|
|
99
101
|
*
|
|
100
102
|
* @author SAP SE
|
|
101
|
-
* @version 1.
|
|
103
|
+
* @version 1.121.0
|
|
102
104
|
*
|
|
103
105
|
* @constructor
|
|
104
106
|
* @private
|
|
@@ -280,7 +282,7 @@ function(
|
|
|
280
282
|
|
|
281
283
|
var sOPHId = this.getId(),
|
|
282
284
|
sNavToolbarId = sOPHId + "-NavToolbar",
|
|
283
|
-
oRB =
|
|
285
|
+
oRB = Library.getResourceBundleFor("sap.m"),
|
|
284
286
|
sCalendarType = this.getProperty("_primaryCalendarType"),
|
|
285
287
|
oPicker,
|
|
286
288
|
oCalendarPicker,
|
|
@@ -369,7 +371,7 @@ function(
|
|
|
369
371
|
if (this.fireEvent("_pickerButtonPress", {}, true)) {
|
|
370
372
|
var oDate = this.getStartDate() || UI5Date.getInstance(),
|
|
371
373
|
sCurrentPickerId = this.getAssociation("currentPicker");
|
|
372
|
-
oPicker = Element.
|
|
374
|
+
oPicker = Element.getElementById(sCurrentPickerId);
|
|
373
375
|
if (oPicker.displayDate) {
|
|
374
376
|
oPicker.displayDate(oDate);
|
|
375
377
|
}
|
|
@@ -609,7 +611,7 @@ function(
|
|
|
609
611
|
*/
|
|
610
612
|
PlanningCalendarHeader.prototype._handlePickerDateSelect = function () {
|
|
611
613
|
var sCurrentPickerId = this.getAssociation("currentPicker"),
|
|
612
|
-
oPicker = Element.
|
|
614
|
+
oPicker = Element.getElementById(sCurrentPickerId),
|
|
613
615
|
oSelectedDate = oPicker.getSelectedDates()[0].getStartDate();
|
|
614
616
|
|
|
615
617
|
this.setStartDate(oSelectedDate);
|
|
@@ -672,7 +674,7 @@ function(
|
|
|
672
674
|
var $Popover = this._oPopup.$();
|
|
673
675
|
var iOffsetX = Math.floor(($Popover.width() - this._oPickerBtn.$().width()) / 2);
|
|
674
676
|
|
|
675
|
-
this._oPopup.setOffsetX(
|
|
677
|
+
this._oPopup.setOffsetX(Localization.getRTL() ? iOffsetX : -iOffsetX);
|
|
676
678
|
|
|
677
679
|
var iOffsetY = this._oPickerBtn.$().height();
|
|
678
680
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides control sap.m.PlanningCalendarLegend.
|
|
8
|
-
sap.ui.define([
|
|
9
|
-
function(CalendarLegend, CalendarAppointment,
|
|
8
|
+
sap.ui.define(["sap/ui/core/Lib", 'sap/ui/unified/CalendarLegend', 'sap/ui/unified/CalendarAppointment', './PlanningCalendarLegendRenderer'],
|
|
9
|
+
function(Library, CalendarLegend, CalendarAppointment, PlanningCalendarLegendRenderer) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/unified/CalendarLegend', 'sap/ui/unified/CalendarAppointm
|
|
|
23
23
|
* @extends sap.ui.unified.CalendarLegend
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.121.0
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -116,7 +116,7 @@ sap.ui.define(['sap/ui/unified/CalendarLegend', 'sap/ui/unified/CalendarAppointm
|
|
|
116
116
|
var sItemsHeader = this.getItemsHeader();
|
|
117
117
|
|
|
118
118
|
if (sItemsHeader == undefined) {
|
|
119
|
-
return
|
|
119
|
+
return Library.getResourceBundleFor('sap.m').getText("PLANNING_CALENDAR_LEGEND_ITEMS_HEADER");
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
return sItemsHeader;
|
|
@@ -126,7 +126,7 @@ sap.ui.define(['sap/ui/unified/CalendarLegend', 'sap/ui/unified/CalendarAppointm
|
|
|
126
126
|
var sAppointmentItemsHeader = this.getAppointmentItemsHeader();
|
|
127
127
|
|
|
128
128
|
if (sAppointmentItemsHeader == undefined) {
|
|
129
|
-
return
|
|
129
|
+
return Library.getResourceBundleFor('sap.m').getText("PLANNING_CALENDAR_LEGEND_APPOINTMENT_ITEMS_HEADER");
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
return sAppointmentItemsHeader;
|