@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
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'./library',
|
|
10
10
|
'sap/ui/Device',
|
|
11
|
-
'sap/ui/core/Core',
|
|
12
11
|
'sap/ui/core/Control',
|
|
13
|
-
'sap/ui/core/InvisibleText'
|
|
12
|
+
'sap/ui/core/InvisibleText',
|
|
13
|
+
"sap/ui/core/Lib"
|
|
14
14
|
],
|
|
15
15
|
function(
|
|
16
16
|
library,
|
|
17
17
|
Device,
|
|
18
|
-
Core,
|
|
19
18
|
Control,
|
|
20
|
-
InvisibleText
|
|
19
|
+
InvisibleText,
|
|
20
|
+
Library
|
|
21
21
|
) {
|
|
22
22
|
"use strict";
|
|
23
23
|
|
|
@@ -36,7 +36,7 @@ function(
|
|
|
36
36
|
* @extends sap.ui.core.Control
|
|
37
37
|
*
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.121.0
|
|
40
40
|
*
|
|
41
41
|
* @constructor
|
|
42
42
|
* @public
|
|
@@ -151,7 +151,7 @@ function(
|
|
|
151
151
|
SelectDialogBase.getInvisibleText = function() {
|
|
152
152
|
if (!this.oInvisibleText) {
|
|
153
153
|
this.oInvisibleText = new InvisibleText({
|
|
154
|
-
text:
|
|
154
|
+
text: Library.getResourceBundleFor("sap.m").getText("SELECTDIALOGBASE_LISTLABEL")
|
|
155
155
|
}).toStatic();
|
|
156
156
|
}
|
|
157
157
|
|
package/src/sap/m/SelectList.js
CHANGED
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
* @extends sap.ui.core.Control
|
|
35
35
|
*
|
|
36
36
|
* @author SAP SE
|
|
37
|
-
* @version 1.
|
|
37
|
+
* @version 1.121.0
|
|
38
38
|
*
|
|
39
39
|
* @constructor
|
|
40
40
|
* @public
|
|
@@ -578,7 +578,7 @@ sap.ui.define([
|
|
|
578
578
|
this.setProperty("selectedItemId", (vItem instanceof Item) ? vItem.getId() : vItem);
|
|
579
579
|
|
|
580
580
|
if (typeof vItem === "string") {
|
|
581
|
-
vItem = Element.
|
|
581
|
+
vItem = Element.getElementById(vItem);
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
this.setProperty("selectedKey", vItem ? vItem.getKey() : "", true);
|
|
@@ -916,7 +916,7 @@ sap.ui.define([
|
|
|
916
916
|
/**
|
|
917
917
|
* Sets the <code>selectedItem</code> association.
|
|
918
918
|
*
|
|
919
|
-
* @param {
|
|
919
|
+
* @param {sap.ui.core.ID | sap.ui.core.Item | null} vItem New value for the <code>selectedItem</code> association.
|
|
920
920
|
* If an ID of a <code>sap.ui.core.Item</code> is given, the item with this ID becomes the <code>selectedItem</code> association.
|
|
921
921
|
* Alternatively, a <code>sap.ui.core.Item</code> instance may be given or <code>null</code> to clear the selection.
|
|
922
922
|
*
|
|
@@ -927,7 +927,7 @@ sap.ui.define([
|
|
|
927
927
|
|
|
928
928
|
if (typeof vItem === "string") {
|
|
929
929
|
this.setAssociation("selectedItem", vItem, true);
|
|
930
|
-
vItem = Element.
|
|
930
|
+
vItem = Element.getElementById(vItem);
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
if (!(vItem instanceof Item) && vItem !== null) {
|
|
@@ -992,7 +992,7 @@ sap.ui.define([
|
|
|
992
992
|
*/
|
|
993
993
|
SelectList.prototype.getSelectedItem = function() {
|
|
994
994
|
var vSelectedItem = this.getAssociation("selectedItem");
|
|
995
|
-
return (vSelectedItem === null) ? null : Element.
|
|
995
|
+
return (vSelectedItem === null) ? null : Element.getElementById(vSelectedItem) || null;
|
|
996
996
|
};
|
|
997
997
|
|
|
998
998
|
/**
|
|
@@ -1057,7 +1057,7 @@ sap.ui.define([
|
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Removes an item from the aggregation named <code>items</code>.
|
|
1059
1059
|
*
|
|
1060
|
-
* @param {int |
|
|
1060
|
+
* @param {int | sap.ui.core.ID | sap.ui.core.Item} vItem The item to remove or its index or id.
|
|
1061
1061
|
* @returns {sap.ui.core.Item|null} The removed item or <code>null</code>.
|
|
1062
1062
|
* @public
|
|
1063
1063
|
*/
|
|
@@ -10,6 +10,8 @@ sap.ui.define([
|
|
|
10
10
|
'sap/m/Button',
|
|
11
11
|
'sap/ui/base/Interface',
|
|
12
12
|
'sap/ui/Device',
|
|
13
|
+
"sap/ui/core/ControlBehavior",
|
|
14
|
+
"sap/ui/core/Lib",
|
|
13
15
|
'sap/ui/core/library',
|
|
14
16
|
'./SelectionDetailsRenderer',
|
|
15
17
|
'sap/base/util/uid',
|
|
@@ -21,6 +23,8 @@ function(
|
|
|
21
23
|
Button,
|
|
22
24
|
Interface,
|
|
23
25
|
Device,
|
|
26
|
+
ControlBehavior,
|
|
27
|
+
Library,
|
|
24
28
|
CoreLibrary,
|
|
25
29
|
SelectionDetailsRenderer,
|
|
26
30
|
uid,
|
|
@@ -39,7 +43,7 @@ function(
|
|
|
39
43
|
* <b><i>Note:</i></b>It is protected and should only be used within the framework itself.
|
|
40
44
|
*
|
|
41
45
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
46
|
+
* @version 1.121.0
|
|
43
47
|
*
|
|
44
48
|
* @extends sap.ui.core.Control
|
|
45
49
|
* @constructor
|
|
@@ -157,7 +161,7 @@ function(
|
|
|
157
161
|
// Indicates whether the labels are wrapped
|
|
158
162
|
this._bWrapLabels = false;
|
|
159
163
|
|
|
160
|
-
this._oRb =
|
|
164
|
+
this._oRb = Library.getResourceBundleFor("sap.m");
|
|
161
165
|
this.setAggregation("_button", new Button({
|
|
162
166
|
id: this.getId() + "-button",
|
|
163
167
|
type: library.ButtonType.Transparent,
|
|
@@ -369,7 +373,7 @@ function(
|
|
|
369
373
|
|
|
370
374
|
height = Math.min(SelectionDetails._POPOVER_MAX_HEIGHT, height);
|
|
371
375
|
oPopover._oControl._deregisterContentResizeHandler();
|
|
372
|
-
var bAnimationMode =
|
|
376
|
+
var bAnimationMode = ControlBehavior.getAnimationMode() !== Configuration.AnimationMode.none;
|
|
373
377
|
$PopoverContent.animate({
|
|
374
378
|
"height": Math.min(height, iMaxHeight)
|
|
375
379
|
}, bAnimationMode ? 100 : 0, function() {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @since 1.48.0
|
|
11
11
|
* @public
|
|
12
12
|
* @author SAP SE
|
|
13
|
-
* @version 1.
|
|
13
|
+
* @version 1.121.0
|
|
14
14
|
* @borrows sap.ui.core.Element#addCustomData as #addCustomData
|
|
15
15
|
* @borrows sap.ui.core.Element#getCustomData as #getCustomData
|
|
16
16
|
* @borrows sap.ui.core.Element#indexOfCustomData as #indexOfCustomData
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* @since 1.48.0
|
|
46
46
|
* @public
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.121.0
|
|
49
49
|
* @borrows sap.ui.core.Element#addCustomData as #addCustomData
|
|
50
50
|
* @borrows sap.ui.core.Element#getCustomData as #getCustomData
|
|
51
51
|
* @borrows sap.ui.core.Element#indexOfCustomData as #indexOfCustomData
|
package/src/sap/m/Shell.js
CHANGED
|
@@ -9,6 +9,7 @@ sap.ui.define([
|
|
|
9
9
|
'./library',
|
|
10
10
|
'sap/ui/core/Core',
|
|
11
11
|
'sap/ui/core/Control',
|
|
12
|
+
"sap/ui/core/Lib",
|
|
12
13
|
'sap/ui/core/library',
|
|
13
14
|
'sap/m/Image',
|
|
14
15
|
'sap/m/ShellRenderer',
|
|
@@ -16,7 +17,7 @@ sap.ui.define([
|
|
|
16
17
|
"sap/base/Log",
|
|
17
18
|
"sap/ui/core/theming/Parameters"
|
|
18
19
|
],
|
|
19
|
-
function(library, Core, Control, coreLibrary, Image, ShellRenderer, Mobile, Log, ThemeParameters) {
|
|
20
|
+
function(library, Core, Control, Library, coreLibrary, Image, ShellRenderer, Mobile, Log, ThemeParameters) {
|
|
20
21
|
"use strict";
|
|
21
22
|
|
|
22
23
|
|
|
@@ -36,7 +37,7 @@ sap.ui.define([
|
|
|
36
37
|
* The Shell control can be used as root element of applications. It can contain an App or a <code>SplitApp</code> control.
|
|
37
38
|
* The Shell provides some overarching functionality for the overall application and takes care of visual adaptation, such as a frame around the App, on desktop browser platforms.
|
|
38
39
|
* @extends sap.ui.core.Control
|
|
39
|
-
* @version 1.
|
|
40
|
+
* @version 1.121.0
|
|
40
41
|
*
|
|
41
42
|
* @constructor
|
|
42
43
|
* @public
|
|
@@ -165,7 +166,6 @@ sap.ui.define([
|
|
|
165
166
|
|
|
166
167
|
if ($hdr.length && sImgSrc) {
|
|
167
168
|
this._getImage().setSrc(sImgSrc);
|
|
168
|
-
this._getImage().rerender();
|
|
169
169
|
}
|
|
170
170
|
}, this);
|
|
171
171
|
|
|
@@ -268,7 +268,7 @@ sap.ui.define([
|
|
|
268
268
|
if (!this.oImg) {
|
|
269
269
|
this.oImg = new Image(this.getId() + "-logo", {
|
|
270
270
|
decorative: false,
|
|
271
|
-
alt:
|
|
271
|
+
alt: Library.getResourceBundleFor("sap.m").getText("SHELL_ARIA_LOGO")
|
|
272
272
|
});
|
|
273
273
|
|
|
274
274
|
this.oImg.addStyleClass("sapMShellLogoImg");
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Lib",
|
|
8
9
|
'sap/ui/core/library',
|
|
9
10
|
'sap/m/library'
|
|
10
11
|
],
|
|
11
|
-
function(coreLibrary, library) {
|
|
12
|
+
function(Library, coreLibrary, library) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
14
15
|
|
|
@@ -110,7 +111,7 @@ function(coreLibrary, library) {
|
|
|
110
111
|
|
|
111
112
|
// logout button
|
|
112
113
|
if (oControl.getShowLogout()) {
|
|
113
|
-
var rb =
|
|
114
|
+
var rb = Library.getResourceBundleFor("sap.m");
|
|
114
115
|
rm.openStart("a", oControl.getId() + "-logout");
|
|
115
116
|
rm.attr("tabindex", "0");
|
|
116
117
|
rm.attr("role", "button");
|
|
@@ -15,7 +15,9 @@ sap.ui.define([
|
|
|
15
15
|
'./SinglePlanningCalendarRenderer',
|
|
16
16
|
'sap/base/Log',
|
|
17
17
|
'sap/ui/core/Control',
|
|
18
|
+
"sap/ui/core/Element",
|
|
18
19
|
'sap/ui/core/InvisibleText',
|
|
20
|
+
"sap/ui/core/Lib",
|
|
19
21
|
'sap/ui/core/ResizeHandler',
|
|
20
22
|
'sap/ui/core/format/DateFormat',
|
|
21
23
|
'sap/ui/unified/calendar/CalendarDate',
|
|
@@ -37,7 +39,9 @@ function(
|
|
|
37
39
|
SinglePlanningCalendarRenderer,
|
|
38
40
|
Log,
|
|
39
41
|
Control,
|
|
42
|
+
Element,
|
|
40
43
|
InvisibleText,
|
|
44
|
+
Library,
|
|
41
45
|
ResizeHandler,
|
|
42
46
|
DateFormat,
|
|
43
47
|
CalendarDate,
|
|
@@ -107,7 +111,7 @@ function(
|
|
|
107
111
|
* @extends sap.ui.core.Control
|
|
108
112
|
*
|
|
109
113
|
* @author SAP SE
|
|
110
|
-
* @version 1.
|
|
114
|
+
* @version 1.121.0
|
|
111
115
|
*
|
|
112
116
|
* @constructor
|
|
113
117
|
* @public
|
|
@@ -279,7 +283,35 @@ function(
|
|
|
279
283
|
/**
|
|
280
284
|
* Special days in the header visualized as a date range with type.
|
|
281
285
|
*
|
|
282
|
-
* <b>Note:</b>
|
|
286
|
+
* <b>Note:</b> In case there are multiple <code>sap.ui.unified.DateTypeRange</code> instances given for a single date,
|
|
287
|
+
* only the first <code>sap.ui.unified.DateTypeRange</code> instance will be used.
|
|
288
|
+
* For example, using the following sample, the 1st of November will be displayed as a working day of type "Type10":
|
|
289
|
+
*
|
|
290
|
+
*
|
|
291
|
+
* <pre>
|
|
292
|
+
* new DateTypeRange({
|
|
293
|
+
* startDate: UI5Date.getInstance(2023, 10, 1),
|
|
294
|
+
* type: CalendarDayType.Type10,
|
|
295
|
+
* }),
|
|
296
|
+
* new DateTypeRange({
|
|
297
|
+
* startDate: UI5Date.getInstance(2023, 10, 1),
|
|
298
|
+
* type: CalendarDayType.NonWorking
|
|
299
|
+
* })
|
|
300
|
+
* </pre>
|
|
301
|
+
*
|
|
302
|
+
* If you want the first of November to be displayed as a non-working day and also as "Type10," the following should be done:
|
|
303
|
+
* <pre>
|
|
304
|
+
* new DateTypeRange({
|
|
305
|
+
* startDate: UI5Date.getInstance(2023, 10, 1),
|
|
306
|
+
* type: CalendarDayType.Type10,
|
|
307
|
+
* secondaryType: CalendarDayType.NonWorking
|
|
308
|
+
* })
|
|
309
|
+
* </pre>
|
|
310
|
+
*
|
|
311
|
+
* You can use only one of the following types for a given date: <code>sap.ui.unified.CalendarDayType.NonWorking</code>,
|
|
312
|
+
* <code>sap.ui.unified.CalendarDayType.Working</code> or <code>sap.ui.unified.CalendarDayType.None</code>.
|
|
313
|
+
* Assigning more than one of these values in combination for the same date will lead to unpredictable results.
|
|
314
|
+
*
|
|
283
315
|
* @since 1.66
|
|
284
316
|
*/
|
|
285
317
|
specialDates : {type : "sap.ui.unified.DateTypeRange",
|
|
@@ -513,7 +545,7 @@ function(
|
|
|
513
545
|
SinglePlanningCalendar.prototype.init = function() {
|
|
514
546
|
var sOPCId = this.getId();
|
|
515
547
|
|
|
516
|
-
this._oRB =
|
|
548
|
+
this._oRB = Library.getResourceBundleFor("sap.m");
|
|
517
549
|
this._oDefaultView = new SinglePlanningCalendarWeekView({
|
|
518
550
|
key: "DEFAULT_INNER_WEEK_VIEW_CREATED_FROM_CONTROL",
|
|
519
551
|
title: ""
|
|
@@ -699,7 +731,7 @@ function(
|
|
|
699
731
|
|
|
700
732
|
/**
|
|
701
733
|
* Removes the selected dates of the grid.
|
|
702
|
-
* @returns {
|
|
734
|
+
* @returns {sap.ui.unified.DateRange[]} An array of the removed DateRange objects
|
|
703
735
|
* @public
|
|
704
736
|
*/
|
|
705
737
|
SinglePlanningCalendar.prototype.removeAllSelectedDates = function () {
|
|
@@ -708,7 +740,7 @@ function(
|
|
|
708
740
|
|
|
709
741
|
/**
|
|
710
742
|
* Gets the selected dates of the grid.
|
|
711
|
-
* @returns {
|
|
743
|
+
* @returns {sap.ui.unified.DateRange[]} An array of DateRange objects
|
|
712
744
|
* @public
|
|
713
745
|
*/
|
|
714
746
|
SinglePlanningCalendar.prototype.getSelectedDates = function () {
|
|
@@ -717,7 +749,7 @@ function(
|
|
|
717
749
|
|
|
718
750
|
/**
|
|
719
751
|
* Adds a selected date to the grid.
|
|
720
|
-
* @param {
|
|
752
|
+
* @param {sap.ui.unified.DateRange} oSelectedDate A DateRange object
|
|
721
753
|
* @returns {this} Reference to <code>this</code> for method chaining
|
|
722
754
|
* @public
|
|
723
755
|
*/
|
|
@@ -919,7 +951,7 @@ function(
|
|
|
919
951
|
* @private
|
|
920
952
|
*/
|
|
921
953
|
SinglePlanningCalendar.prototype._viewsObserverCallbackFunction = function (oChanges) {
|
|
922
|
-
|
|
954
|
+
Element.getElementById(oChanges.object.getId() + SEGMENTEDBUTTONITEM__SUFFIX).setText(oChanges.current);
|
|
923
955
|
};
|
|
924
956
|
|
|
925
957
|
/**
|
|
@@ -1007,7 +1039,7 @@ function(
|
|
|
1007
1039
|
if (sLegend) {
|
|
1008
1040
|
this.getAggregation("_grid")._sLegendId = sLegend;
|
|
1009
1041
|
this.getAggregation("_mvgrid")._sLegendId = sLegend;
|
|
1010
|
-
oLegend =
|
|
1042
|
+
oLegend = Element.getElementById(sLegend);
|
|
1011
1043
|
}
|
|
1012
1044
|
|
|
1013
1045
|
if (oLegend) { //destroy of the associated legend should rerender the SPC
|
|
@@ -1150,7 +1182,7 @@ function(
|
|
|
1150
1182
|
SinglePlanningCalendar.prototype._getSelectedView = function () {
|
|
1151
1183
|
var oSelectedView,
|
|
1152
1184
|
aViews = this.getViews(),
|
|
1153
|
-
sCurrentViewKey =
|
|
1185
|
+
sCurrentViewKey = Element.getElementById(this.getAssociation("selectedView")).getKey();
|
|
1154
1186
|
|
|
1155
1187
|
for (var i = 0; i < aViews.length; i++) {
|
|
1156
1188
|
if (sCurrentViewKey === aViews[i].getKey()) {
|
|
@@ -6,37 +6,44 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides control sap.m.SinglePlanningCalendarGrid.
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
9
|
+
'./SinglePlanningCalendarUtilities',
|
|
10
|
+
'./library',
|
|
11
|
+
"sap/base/i18n/Formatting",
|
|
12
|
+
"sap/base/i18n/Localization",
|
|
13
|
+
"sap/ui/core/Element",
|
|
14
|
+
"sap/ui/core/Lib",
|
|
15
|
+
'sap/ui/unified/DateRange',
|
|
16
|
+
'sap/ui/core/Control',
|
|
17
|
+
'sap/ui/core/LocaleData',
|
|
18
|
+
'sap/ui/core/Locale',
|
|
19
|
+
'sap/ui/core/InvisibleText',
|
|
20
|
+
'sap/ui/core/format/DateFormat',
|
|
21
|
+
'sap/ui/core/format/TimezoneUtil',
|
|
22
|
+
'sap/ui/core/Core',
|
|
23
|
+
'sap/ui/core/date/UniversalDate',
|
|
24
|
+
'sap/ui/core/dnd/DragDropInfo',
|
|
25
|
+
'sap/ui/unified/library',
|
|
26
|
+
'sap/ui/unified/calendar/DatesRow',
|
|
27
|
+
'sap/ui/unified/calendar/CalendarDate',
|
|
28
|
+
'sap/ui/unified/calendar/CalendarUtils',
|
|
29
|
+
'sap/ui/unified/DateTypeRange',
|
|
30
|
+
'sap/ui/events/KeyCodes',
|
|
31
|
+
'./SinglePlanningCalendarGridRenderer',
|
|
32
|
+
'sap/ui/core/delegate/ItemNavigation',
|
|
33
|
+
"sap/ui/thirdparty/jquery",
|
|
34
|
+
'./PlanningCalendarLegend',
|
|
35
|
+
'sap/ui/core/InvisibleMessage',
|
|
36
|
+
'sap/ui/core/library',
|
|
37
|
+
"sap/ui/core/date/CalendarUtils",
|
|
38
|
+
"sap/ui/core/date/UI5Date"
|
|
39
|
+
],
|
|
40
|
+
function(
|
|
38
41
|
SinglePlanningCalendarUtilities,
|
|
39
42
|
library,
|
|
43
|
+
Formatting,
|
|
44
|
+
Localization,
|
|
45
|
+
Element,
|
|
46
|
+
Library,
|
|
40
47
|
DateRange,
|
|
41
48
|
Control,
|
|
42
49
|
LocaleData,
|
|
@@ -60,7 +67,6 @@ sap.ui.define([
|
|
|
60
67
|
InvisibleMessage,
|
|
61
68
|
coreLibrary,
|
|
62
69
|
CalendarDateUtils,
|
|
63
|
-
Configuration,
|
|
64
70
|
UI5Date
|
|
65
71
|
) {
|
|
66
72
|
"use strict";
|
|
@@ -111,7 +117,7 @@ sap.ui.define([
|
|
|
111
117
|
* @extends sap.ui.core.Control
|
|
112
118
|
*
|
|
113
119
|
* @author SAP SE
|
|
114
|
-
* @version 1.
|
|
120
|
+
* @version 1.121.0
|
|
115
121
|
*
|
|
116
122
|
* @constructor
|
|
117
123
|
* @private
|
|
@@ -217,7 +223,35 @@ sap.ui.define([
|
|
|
217
223
|
/**
|
|
218
224
|
* Special days in the header visualized as a date range with type.
|
|
219
225
|
*
|
|
220
|
-
* <b>Note:</b>
|
|
226
|
+
* <b>Note:</b> In case there are multiple <code>sap.ui.unified.DateTypeRange</code> instances given for a single date,
|
|
227
|
+
* only the first <code>sap.ui.unified.DateTypeRange</code> instance will be used.
|
|
228
|
+
* For example, using the following sample, the 1st of November will be displayed as a working day of type "Type10":
|
|
229
|
+
*
|
|
230
|
+
*
|
|
231
|
+
* <pre>
|
|
232
|
+
* new DateTypeRange({
|
|
233
|
+
* startDate: UI5Date.getInstance(2023, 10, 1),
|
|
234
|
+
* type: CalendarDayType.Type10,
|
|
235
|
+
* }),
|
|
236
|
+
* new DateTypeRange({
|
|
237
|
+
* startDate: UI5Date.getInstance(2023, 10, 1),
|
|
238
|
+
* type: CalendarDayType.NonWorking
|
|
239
|
+
* })
|
|
240
|
+
* </pre>
|
|
241
|
+
*
|
|
242
|
+
* If you want the first of November to be displayed as a non-working day and also as "Type10," the following should be done:
|
|
243
|
+
* <pre>
|
|
244
|
+
* new DateTypeRange({
|
|
245
|
+
* startDate: UI5Date.getInstance(2023, 10, 1),
|
|
246
|
+
* type: CalendarDayType.Type10,
|
|
247
|
+
* secondaryType: CalendarDayType.NonWorking
|
|
248
|
+
* })
|
|
249
|
+
* </pre>
|
|
250
|
+
*
|
|
251
|
+
* You can use only one of the following types for a given date: <code>sap.ui.unified.CalendarDayType.NonWorking</code>,
|
|
252
|
+
* <code>sap.ui.unified.CalendarDayType.Working</code> or <code>sap.ui.unified.CalendarDayType.None</code>.
|
|
253
|
+
* Assigning more than one of these values in combination for the same date will lead to unpredictable results.
|
|
254
|
+
*
|
|
221
255
|
* @since 1.66
|
|
222
256
|
*/
|
|
223
257
|
specialDates : {type : "sap.ui.unified.DateTypeRange", multiple : true, singularName : "specialDate"},
|
|
@@ -392,12 +426,12 @@ sap.ui.define([
|
|
|
392
426
|
this._configureAppointmentsResize();
|
|
393
427
|
this._configureAppointmentsCreate();
|
|
394
428
|
|
|
395
|
-
this._oUnifiedRB =
|
|
429
|
+
this._oUnifiedRB = Library.getResourceBundleFor("sap.ui.unified");
|
|
396
430
|
this._oFormatStartEndInfoAria = DateFormat.getDateTimeInstance({
|
|
397
|
-
pattern: "EEEE
|
|
431
|
+
pattern: "EEEE, MMMM d, yyyy 'at' " + sTimePattern
|
|
398
432
|
});
|
|
399
433
|
this._oFormatAriaFullDayCell = DateFormat.getDateTimeInstance({
|
|
400
|
-
pattern: "EEEE
|
|
434
|
+
pattern: "EEEE, MMMM d, yyyy"
|
|
401
435
|
});
|
|
402
436
|
|
|
403
437
|
this._oFormatYyyymmdd = DateFormat.getInstance({pattern: "yyyyMMdd", calendarType: CalendarType.Gregorian});
|
|
@@ -797,7 +831,7 @@ sap.ui.define([
|
|
|
797
831
|
oBrowserEvent.dataTransfer.setDragImage(getResizeGhost(), 0, 0);
|
|
798
832
|
|
|
799
833
|
var oGrid = oEvent.getParameter("target"),
|
|
800
|
-
bIsRtl =
|
|
834
|
+
bIsRtl = Localization.getRTL(),
|
|
801
835
|
aIntervalPlaceholders = oGrid.getAggregation("_intervalPlaceholders"),
|
|
802
836
|
oFirstIntervalRectangle = aIntervalPlaceholders[0].getDomRef().getBoundingClientRect(),
|
|
803
837
|
iIntervalHeight = oFirstIntervalRectangle.height,
|
|
@@ -1015,7 +1049,7 @@ sap.ui.define([
|
|
|
1015
1049
|
* @private
|
|
1016
1050
|
*/
|
|
1017
1051
|
SinglePlanningCalendarGrid.prototype._appFocusHandler = function(oEvent, iDirection) {
|
|
1018
|
-
var oTarget =
|
|
1052
|
+
var oTarget = Element.getElementById(oEvent.target.id) || this._findSrcControl(oEvent);
|
|
1019
1053
|
|
|
1020
1054
|
if (oTarget && oTarget.isA("sap.ui.unified.CalendarAppointment")) {
|
|
1021
1055
|
this.fireAppointmentSelect({
|
|
@@ -1291,6 +1325,9 @@ sap.ui.define([
|
|
|
1291
1325
|
this._bMultiDateSelectWithArrow = true;
|
|
1292
1326
|
} else if (oEvent.which === KeyCodes.SPACE && !oEvent.shiftKey && bMultiDateSelection) {
|
|
1293
1327
|
this._bMultiDateSelect = true;
|
|
1328
|
+
} else if (oEvent.which === KeyCodes.SPACE && !oEvent.shiftKey) {
|
|
1329
|
+
this.removeAllSelectedDates();
|
|
1330
|
+
this._bMultiDateSelect = true;
|
|
1294
1331
|
}
|
|
1295
1332
|
this._fireSelectionEvent(oEvent);
|
|
1296
1333
|
// Prevent scrolling
|
|
@@ -2115,7 +2152,7 @@ sap.ui.define([
|
|
|
2115
2152
|
*/
|
|
2116
2153
|
SinglePlanningCalendarGrid.prototype._getCoreLocaleId = function () {
|
|
2117
2154
|
if (!this._sLocale) {
|
|
2118
|
-
this._sLocale =
|
|
2155
|
+
this._sLocale = new Locale(Formatting.getLanguageTag()).toString();
|
|
2119
2156
|
}
|
|
2120
2157
|
|
|
2121
2158
|
return this._sLocale;
|
|
@@ -2211,13 +2248,27 @@ sap.ui.define([
|
|
|
2211
2248
|
* @private
|
|
2212
2249
|
*/
|
|
2213
2250
|
SinglePlanningCalendarGrid.prototype._getAppointmentAnnouncementInfo = function (oAppointment) {
|
|
2214
|
-
var
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2251
|
+
var oStartDate = oAppointment.getStartDate(),
|
|
2252
|
+
oEndDate = oAppointment.getEndDate(),
|
|
2253
|
+
bFullDay = this.isAllDayAppointment(oStartDate, oEndDate),
|
|
2254
|
+
bSingleDay = this._isSingleDayAppointment(oStartDate, oEndDate),
|
|
2255
|
+
sLegendInfo = PlanningCalendarLegend.findLegendItemForItem(Core.byId(this._sLegendId), oAppointment),
|
|
2256
|
+
sFormattedDate;
|
|
2257
|
+
|
|
2258
|
+
if (bFullDay && bSingleDay) {
|
|
2259
|
+
sFormattedDate = this._oUnifiedRB.getText("CALENDAR_ALL_DAY_INFO", [this._oFormatAriaFullDayCell.format(oStartDate)]);
|
|
2260
|
+
} else if (bFullDay) {
|
|
2261
|
+
sFormattedDate = this._oUnifiedRB.getText( "CALENDAR_APPOINTMENT_INFO", [
|
|
2262
|
+
this._oFormatAriaFullDayCell.format(oStartDate),
|
|
2263
|
+
this._oFormatAriaFullDayCell.format(oEndDate)
|
|
2264
|
+
]);
|
|
2265
|
+
} else {
|
|
2266
|
+
sFormattedDate = this._oUnifiedRB.getText( "CALENDAR_APPOINTMENT_INFO", [
|
|
2267
|
+
this._oFormatStartEndInfoAria.format(oStartDate),
|
|
2268
|
+
this._oFormatStartEndInfoAria.format(oEndDate)
|
|
2269
|
+
]);
|
|
2270
|
+
}
|
|
2271
|
+
return sFormattedDate + ", " + sLegendInfo;
|
|
2221
2272
|
};
|
|
2222
2273
|
|
|
2223
2274
|
/**
|
|
@@ -2258,14 +2309,26 @@ sap.ui.define([
|
|
|
2258
2309
|
/**
|
|
2259
2310
|
* Returns whether an appointment starts at 00:00 and ends in 00:00 on any day in the future.
|
|
2260
2311
|
*
|
|
2261
|
-
* @param {
|
|
2262
|
-
* @param {
|
|
2312
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oAppStartDate - Start date of the appointment
|
|
2313
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oAppEndDate - End date of the appointment
|
|
2263
2314
|
* @returns {boolean}
|
|
2264
2315
|
*/
|
|
2265
2316
|
SinglePlanningCalendarGrid.prototype.isAllDayAppointment = function(oAppStartDate, oAppEndDate) {
|
|
2266
2317
|
return CalendarUtils._isMidnight(oAppStartDate) && CalendarUtils._isMidnight(oAppEndDate);
|
|
2267
2318
|
};
|
|
2268
2319
|
|
|
2320
|
+
/**
|
|
2321
|
+
* Returns whether an appointment starts and ends on the same day.
|
|
2322
|
+
*
|
|
2323
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oAppStartDate - Start date of the appointment
|
|
2324
|
+
* @param {Date|module:sap/ui/core/date/UI5Date} oAppEndDate - End date of the appointment
|
|
2325
|
+
* @returns {boolean}
|
|
2326
|
+
* @private
|
|
2327
|
+
*/
|
|
2328
|
+
SinglePlanningCalendarGrid.prototype._isSingleDayAppointment = function(oAppStartDate, oAppEndDate) {
|
|
2329
|
+
return !oAppEndDate || oAppStartDate.getDate() === oAppEndDate.getDate();
|
|
2330
|
+
};
|
|
2331
|
+
|
|
2269
2332
|
SinglePlanningCalendarGrid.prototype._createBlockersDndPlaceholders = function (oStartDate, iColumns) {
|
|
2270
2333
|
this.destroyAggregation("_blockersPlaceholders");
|
|
2271
2334
|
|
|
@@ -2304,7 +2367,7 @@ sap.ui.define([
|
|
|
2304
2367
|
};
|
|
2305
2368
|
|
|
2306
2369
|
SinglePlanningCalendarGrid.prototype._createAppointmentsDndPlaceholders = function (oStartDate, iColumns) {
|
|
2307
|
-
var bIsRtl =
|
|
2370
|
+
var bIsRtl = Localization.getRTL(),
|
|
2308
2371
|
i;
|
|
2309
2372
|
|
|
2310
2373
|
this._dndPlaceholdersMap = {};
|
|
@@ -2350,13 +2413,18 @@ sap.ui.define([
|
|
|
2350
2413
|
};
|
|
2351
2414
|
|
|
2352
2415
|
SinglePlanningCalendarGrid.prototype._isNonWorkingDay = function(oCalendarDate) {
|
|
2353
|
-
|
|
2354
|
-
return oDateRange.
|
|
2355
|
-
}).map(function(oDateRange) {
|
|
2356
|
-
return CalendarDate.fromLocalJSDate(oDateRange.getStartDate());
|
|
2357
|
-
}).some(function(oDate) {
|
|
2358
|
-
return oDate.isSame(oCalendarDate);
|
|
2416
|
+
const aSpecialDates = this._getSpecialDates().filter((oDateRange) => {
|
|
2417
|
+
return oDateRange.getStartDate() && CalendarDate.fromLocalJSDate(oDateRange.getStartDate()).isSame(oCalendarDate);
|
|
2359
2418
|
});
|
|
2419
|
+
const sType = aSpecialDates.length > 0 && aSpecialDates[0].getType();
|
|
2420
|
+
const sSecondaryType = aSpecialDates.length > 0 && aSpecialDates[0].getSecondaryType();
|
|
2421
|
+
const bNonWorkingWeekend = CalendarUtils._isWeekend(oCalendarDate, this._getCoreLocaleData())
|
|
2422
|
+
&& sType !== unifiedLibrary.CalendarDayType.Working
|
|
2423
|
+
&& sSecondaryType !== unifiedLibrary.CalendarDayType.Working;
|
|
2424
|
+
|
|
2425
|
+
return sType === unifiedLibrary.CalendarDayType.NonWorking
|
|
2426
|
+
|| sSecondaryType === unifiedLibrary.CalendarDayType.NonWorking
|
|
2427
|
+
|| bNonWorkingWeekend;
|
|
2360
2428
|
};
|
|
2361
2429
|
|
|
2362
2430
|
function getResizeGhost() {
|