@openui5/sap.m 1.112.2 → 1.113.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/THIRDPARTY.txt +1 -1
- package/package.json +4 -4
- package/src/sap/m/.library +1 -1
- package/src/sap/m/AccButton.js +1 -1
- package/src/sap/m/ActionListItem.js +1 -1
- package/src/sap/m/ActionSelect.js +1 -1
- package/src/sap/m/ActionSheet.js +1 -1
- package/src/sap/m/ActionTile.js +1 -1
- package/src/sap/m/ActionTileContent.js +1 -1
- package/src/sap/m/AdditionalTextButton.js +1 -1
- package/src/sap/m/App.js +11 -3
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +32 -3
- package/src/sap/m/AvatarRenderer.js +1 -1
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +1 -1
- package/src/sap/m/Carousel.js +1 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CarouselRenderer.js +2 -6
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +1 -1
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +12 -2
- package/src/sap/m/ComboBoxBase.js +2 -2
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomDynamicDateOption.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +5 -1
- package/src/sap/m/DatePickerRenderer.js +3 -1
- package/src/sap/m/DateRangeSelection.js +31 -2
- package/src/sap/m/DateRangeSelectionRenderer.js +3 -2
- package/src/sap/m/DateTimeField.js +20 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +49 -5
- package/src/sap/m/Dialog.js +1 -1
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/DynamicDate.js +1 -1
- package/src/sap/m/DynamicDateOption.js +1 -1
- package/src/sap/m/DynamicDateRange.js +45 -22
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +1 -1
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +1 -1
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +2 -2
- package/src/sap/m/FeedListItem.js +11 -11
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +60 -4
- package/src/sap/m/FormattedTextRenderer.js +10 -52
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +24 -18
- package/src/sap/m/GenericTileRenderer.js +17 -5
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingEnablement.js +19 -13
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +1 -1
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +1 -1
- package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
- package/src/sap/m/IconTabHeader.js +1 -1
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/IllustratedMessage.js +1 -1
- package/src/sap/m/IllustratedMessageType.js +12 -0
- package/src/sap/m/Illustration.js +1 -1
- package/src/sap/m/IllustrationRenderer.js +2 -0
- package/src/sap/m/Image.js +9 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +23 -5
- package/src/sap/m/InputBase.js +1 -1
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +2 -5
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/LightBoxRenderer.js +3 -0
- package/src/sap/m/Link.js +10 -3
- package/src/sap/m/LinkRenderer.js +2 -4
- package/src/sap/m/List.js +2 -2
- package/src/sap/m/ListBase.js +8 -7
- package/src/sap/m/ListItemBase.js +6 -5
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +42 -35
- package/src/sap/m/MenuButton.js +1 -1
- package/src/sap/m/MenuItem.js +8 -8
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageBox.js +5 -0
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +7 -2
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MultiComboBox.js +23 -6
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +18 -18
- package/src/sap/m/NavContainer.js +1 -1
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationList.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/NumericInput.js +1 -1
- package/src/sap/m/ObjectAttribute.js +1 -1
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/OverflowToolbar.js +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/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 +1 -1
- package/src/sap/m/P13nConditionPanel.js +9 -5
- package/src/sap/m/P13nDialog.js +1 -1
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +1 -1
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -1
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +1 -1
- package/src/sap/m/P13nItem.js +1 -1
- package/src/sap/m/P13nPanel.js +1 -1
- package/src/sap/m/P13nSelectionItem.js +1 -1
- package/src/sap/m/P13nSelectionPanel.js +1 -1
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +1 -1
- package/src/sap/m/PDFViewer.js +1 -1
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +45 -33
- package/src/sap/m/PlanningCalendarHeader.js +1 -1
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +3 -3
- package/src/sap/m/PopoverRenderer.js +0 -4
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +1 -1
- package/src/sap/m/RadioButton.js +1 -1
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +1 -1
- package/src/sap/m/RatingIndicatorRenderer.js +3 -1
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +9 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +1 -1
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +41 -4
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +185 -6
- package/src/sap/m/SinglePlanningCalendarGridRenderer.js +32 -2
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +185 -6
- package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +25 -6
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +1 -1
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +1 -1
- package/src/sap/m/StandardDynamicDateOption.js +1 -1
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardListItemRenderer.js +1 -1
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +1 -1
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +1 -1
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +5 -4
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +1 -1
- package/src/sap/m/TimePicker.js +1 -1
- package/src/sap/m/TimePickerClock.js +1 -1
- package/src/sap/m/TimePickerClocks.js +1 -1
- package/src/sap/m/TimePickerInputs.js +1 -1
- package/src/sap/m/TimePickerInternals.js +1 -1
- package/src/sap/m/TimePickerRenderer.js +5 -1
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/TitleRenderer.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +19 -10
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +2 -1
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ValueStateHeader.js +1 -1
- package/src/sap/m/VariantManagement.js +1 -5
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +1 -1
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/WheelSlider.js +1 -1
- package/src/sap/m/WheelSliderContainer.js +1 -1
- package/src/sap/m/Wizard.js +1 -1
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardStep.js +1 -1
- package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/m/changeHandler/CombineButtons.js +1 -1
- package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/delegate/ValueStateMessage.js +15 -4
- package/src/sap/m/designtime/messagebundle_en_US_saprigi.properties +6 -0
- package/src/sap/m/designtime/messagebundle_uk.properties +2 -2
- package/src/sap/m/inputUtils/SuggestionsPopoverPopoverMixin.js +0 -2
- package/src/sap/m/library.js +23 -2
- package/src/sap/m/messagebundle.properties +36 -0
- package/src/sap/m/messagebundle_ar.properties +17 -3
- package/src/sap/m/messagebundle_bg.properties +39 -25
- package/src/sap/m/messagebundle_ca.properties +17 -3
- package/src/sap/m/messagebundle_cs.properties +17 -3
- package/src/sap/m/messagebundle_cy.properties +17 -3
- package/src/sap/m/messagebundle_da.properties +17 -3
- package/src/sap/m/messagebundle_de.properties +17 -3
- package/src/sap/m/messagebundle_el.properties +17 -3
- package/src/sap/m/messagebundle_en.properties +15 -1
- package/src/sap/m/messagebundle_en_GB.properties +15 -1
- package/src/sap/m/messagebundle_en_US_sappsd.properties +18 -0
- package/src/sap/m/messagebundle_en_US_saprigi.properties +14 -0
- package/src/sap/m/messagebundle_en_US_saptrc.properties +14 -0
- package/src/sap/m/messagebundle_es.properties +17 -3
- package/src/sap/m/messagebundle_es_MX.properties +17 -3
- package/src/sap/m/messagebundle_et.properties +17 -3
- package/src/sap/m/messagebundle_fi.properties +17 -3
- package/src/sap/m/messagebundle_fr.properties +17 -3
- package/src/sap/m/messagebundle_fr_CA.properties +17 -3
- package/src/sap/m/messagebundle_hi.properties +17 -3
- package/src/sap/m/messagebundle_hr.properties +17 -3
- package/src/sap/m/messagebundle_hu.properties +17 -3
- package/src/sap/m/messagebundle_id.properties +17 -3
- package/src/sap/m/messagebundle_it.properties +17 -3
- package/src/sap/m/messagebundle_iw.properties +18 -4
- package/src/sap/m/messagebundle_ja.properties +17 -3
- package/src/sap/m/messagebundle_kk.properties +22 -8
- package/src/sap/m/messagebundle_ko.properties +17 -3
- package/src/sap/m/messagebundle_lt.properties +17 -3
- package/src/sap/m/messagebundle_lv.properties +17 -3
- package/src/sap/m/messagebundle_ms.properties +17 -3
- package/src/sap/m/messagebundle_nl.properties +17 -3
- package/src/sap/m/messagebundle_no.properties +17 -3
- package/src/sap/m/messagebundle_pl.properties +17 -3
- package/src/sap/m/messagebundle_pt.properties +17 -3
- package/src/sap/m/messagebundle_pt_PT.properties +17 -3
- package/src/sap/m/messagebundle_ro.properties +17 -3
- package/src/sap/m/messagebundle_ru.properties +17 -3
- package/src/sap/m/messagebundle_sh.properties +18 -4
- package/src/sap/m/messagebundle_sk.properties +17 -3
- package/src/sap/m/messagebundle_sl.properties +18 -4
- package/src/sap/m/messagebundle_sv.properties +17 -3
- package/src/sap/m/messagebundle_th.properties +17 -3
- package/src/sap/m/messagebundle_tr.properties +17 -3
- package/src/sap/m/messagebundle_uk.properties +21 -7
- package/src/sap/m/messagebundle_vi.properties +17 -3
- package/src/sap/m/messagebundle_zh_CN.properties +18 -4
- package/src/sap/m/messagebundle_zh_TW.properties +17 -3
- package/src/sap/m/p13n/AbstractContainer.js +2 -2
- package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
- package/src/sap/m/p13n/BasePanel.js +113 -16
- package/src/sap/m/p13n/Container.js +38 -8
- package/src/sap/m/p13n/Engine.js +231 -186
- package/src/sap/m/p13n/GroupController.js +1 -1
- package/src/sap/m/p13n/GroupPanel.js +1 -1
- package/src/sap/m/p13n/Popup.js +2 -1
- package/src/sap/m/p13n/QueryPanel.js +7 -2
- package/src/sap/m/p13n/SelectionController.js +29 -10
- package/src/sap/m/p13n/SelectionPanel.js +1 -1
- package/src/sap/m/p13n/SortController.js +1 -1
- package/src/sap/m/p13n/SortPanel.js +1 -1
- package/src/sap/m/p13n/handler/xConfigHandler.js +38 -13
- package/src/sap/m/p13n/modification/FlexModificationHandler.js +46 -23
- package/src/sap/m/p13n/modification/ModificationHandler.js +2 -2
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +4 -4
- package/src/sap/m/p13n/modules/UIManager.js +4 -5
- package/src/sap/m/p13n/modules/xConfigAPI.js +4 -1
- package/src/sap/m/plugins/CellSelector.js +1 -1
- package/src/sap/m/plugins/ColumnResizer.js +2 -2
- package/src/sap/m/plugins/CopyProvider.js +1 -1
- package/src/sap/m/plugins/DataStateIndicator.js +2 -2
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/semantic/AddAction.js +1 -1
- package/src/sap/m/semantic/CancelAction.js +1 -1
- package/src/sap/m/semantic/DeleteAction.js +1 -1
- package/src/sap/m/semantic/DetailPage.js +1 -1
- package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/m/semantic/EditAction.js +1 -1
- package/src/sap/m/semantic/FavoriteAction.js +1 -1
- package/src/sap/m/semantic/FilterAction.js +1 -1
- package/src/sap/m/semantic/FilterSelect.js +1 -1
- package/src/sap/m/semantic/FlagAction.js +1 -1
- package/src/sap/m/semantic/ForwardAction.js +1 -1
- package/src/sap/m/semantic/FullscreenPage.js +1 -1
- package/src/sap/m/semantic/GroupAction.js +1 -1
- package/src/sap/m/semantic/GroupSelect.js +1 -1
- package/src/sap/m/semantic/MainAction.js +1 -1
- package/src/sap/m/semantic/MasterPage.js +1 -1
- package/src/sap/m/semantic/MessagesIndicator.js +1 -1
- package/src/sap/m/semantic/MultiSelectAction.js +1 -1
- package/src/sap/m/semantic/NegativeAction.js +1 -1
- package/src/sap/m/semantic/OpenInAction.js +1 -1
- package/src/sap/m/semantic/PositiveAction.js +1 -1
- package/src/sap/m/semantic/PrintAction.js +1 -1
- package/src/sap/m/semantic/SaveAction.js +1 -1
- package/src/sap/m/semantic/Segment.js +1 -1
- package/src/sap/m/semantic/SegmentedContainer.js +1 -1
- package/src/sap/m/semantic/SemanticButton.js +1 -1
- package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
- package/src/sap/m/semantic/SemanticControl.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/semantic/SemanticPage.js +1 -1
- package/src/sap/m/semantic/SemanticSelect.js +1 -1
- package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/m/semantic/SendEmailAction.js +1 -1
- package/src/sap/m/semantic/SendMessageAction.js +1 -1
- package/src/sap/m/semantic/ShareInJamAction.js +1 -1
- package/src/sap/m/semantic/ShareMenu.js +1 -1
- package/src/sap/m/semantic/ShareMenuPage.js +1 -1
- package/src/sap/m/semantic/SortAction.js +1 -1
- package/src/sap/m/semantic/SortSelect.js +1 -1
- package/src/sap/m/table/Util.js +1 -1
- package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/Entry.js +1 -1
- package/src/sap/m/table/columnmenu/Item.js +1 -1
- package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
- package/src/sap/m/table/columnmenu/Menu.js +23 -10
- package/src/sap/m/table/columnmenu/QuickAction.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
- package/src/sap/m/table/columnmenu/QuickActionItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickGroup.js +1 -1
- package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
- package/src/sap/m/table/columnmenu/QuickSortItem.js +1 -1
- package/src/sap/m/table/columnmenu/QuickTotal.js +1 -1
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/Button.less +16 -3
- package/src/sap/m/themes/base/Carousel.less +0 -2
- package/src/sap/m/themes/base/FacetFilter.less +0 -4
- package/src/sap/m/themes/base/FeedInput.less +130 -113
- package/src/sap/m/themes/base/GenericTile.less +17 -2
- package/src/sap/m/themes/base/Input.less +4 -0
- package/src/sap/m/themes/base/Panel.less +1 -0
- package/src/sap/m/themes/base/PlanningCalendar.less +9 -0
- package/src/sap/m/themes/base/PlanningCalendarHeader.less +26 -1
- package/src/sap/m/themes/base/SinglePlanningCalendarGrid.less +75 -4
- package/src/sap/m/themes/base/SinglePlanningCalendarMonthGrid.less +38 -8
- package/src/sap/m/themes/base/StandardListItem.less +1 -0
- package/src/sap/m/themes/base/Toolbar.less +3 -2
- package/src/sap/m/themes/base/UploadCollection.less +1 -0
- package/src/sap/m/themes/base/Wizard.less +5 -1
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NoColumnsSet.svg +35 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-Survey.svg +22 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoColumnsSet.svg +6 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Dot-Survey.svg +7 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NoColumnsSet.svg +36 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Scene-Survey.svg +21 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NoColumnsSet.svg +36 -0
- package/src/sap/m/themes/base/illustrations/sapIllus-Spot-Survey.svg +32 -0
- package/src/sap/m/upload/UploadSet.js +36 -13
- package/src/sap/m/upload/UploadSetItem.js +14 -2
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
package/src/sap/m/p13n/Engine.js
CHANGED
|
@@ -56,12 +56,12 @@ sap.ui.define([
|
|
|
56
56
|
* @alias sap.m.p13n.Engine
|
|
57
57
|
* @extends sap.m.p13n.modules.AdaptationProvider
|
|
58
58
|
* @author SAP SE
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.113.0
|
|
60
60
|
* @public
|
|
61
61
|
* @since 1.104
|
|
62
62
|
*/
|
|
63
63
|
var Engine = AdaptationProvider.extend("sap.m.p13n.Engine", {
|
|
64
|
-
constructor: function() {
|
|
64
|
+
constructor: function () {
|
|
65
65
|
AdaptationProvider.call(this);
|
|
66
66
|
|
|
67
67
|
if (oEngine) {
|
|
@@ -121,7 +121,7 @@ sap.ui.define([
|
|
|
121
121
|
* }
|
|
122
122
|
* }
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
Engine.prototype.register = function (oControl, oConfig) {
|
|
125
125
|
|
|
126
126
|
if (!oConfig.hasOwnProperty("controller")/* || Object.keys(oConfig.controller).length < 1*/) {
|
|
127
127
|
throw new Error("Please provide at least a configuration 'controller' containing a map of key-value pairs (key + Controller class) in order to register adaptation.");
|
|
@@ -129,7 +129,7 @@ sap.ui.define([
|
|
|
129
129
|
|
|
130
130
|
var oRegistryEntry = this._getRegistryEntry(oControl);
|
|
131
131
|
|
|
132
|
-
if (oRegistryEntry){
|
|
132
|
+
if (oRegistryEntry) {
|
|
133
133
|
this.deregister(oControl);
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -137,12 +137,12 @@ sap.ui.define([
|
|
|
137
137
|
|
|
138
138
|
var aControllerKeys = Object.keys(oConfig.controller);
|
|
139
139
|
|
|
140
|
-
aControllerKeys.forEach(function(sKey){
|
|
140
|
+
aControllerKeys.forEach(function (sKey) {
|
|
141
141
|
|
|
142
142
|
var oSubController = oConfig.controller[sKey];
|
|
143
143
|
|
|
144
144
|
if (!this.getController(oControl, sKey)) {
|
|
145
|
-
if (this._aRegistry.indexOf(oControl.getId()) < 0){
|
|
145
|
+
if (this._aRegistry.indexOf(oControl.getId()) < 0) {
|
|
146
146
|
this._aRegistry.push(oControl.getId());
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -150,11 +150,6 @@ sap.ui.define([
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
}.bind(this));
|
|
153
|
-
|
|
154
|
-
if (oRegistryEntry && oRegistryEntry.modification) {
|
|
155
|
-
this.getModificationHandler(oControl).initialize(oControl);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
153
|
};
|
|
159
154
|
|
|
160
155
|
|
|
@@ -167,11 +162,11 @@ sap.ui.define([
|
|
|
167
162
|
*
|
|
168
163
|
* @param {sap.ui.core.Control} oControl The registered control instance
|
|
169
164
|
*/
|
|
170
|
-
Engine.prototype.deregister = function(oControl) {
|
|
165
|
+
Engine.prototype.deregister = function (oControl) {
|
|
171
166
|
var oRegistryEntry = this._getRegistryEntry(oControl);
|
|
172
167
|
|
|
173
168
|
//destroy subcontroller
|
|
174
|
-
Object.keys(oRegistryEntry.controller).forEach(function(sKey){
|
|
169
|
+
Object.keys(oRegistryEntry.controller).forEach(function (sKey) {
|
|
175
170
|
var oController = oRegistryEntry.controller[sKey];
|
|
176
171
|
oController.destroy();
|
|
177
172
|
|
|
@@ -203,7 +198,7 @@ sap.ui.define([
|
|
|
203
198
|
*
|
|
204
199
|
* @returns {Promise<sap.m.p13n.Popup>} Promise resolving in the <code>sap.m.p13n.Popup</code> instance
|
|
205
200
|
*/
|
|
206
|
-
Engine.prototype.show = function(oControl, vPanelKeys, mSettings) {
|
|
201
|
+
Engine.prototype.show = function (oControl, vPanelKeys, mSettings) {
|
|
207
202
|
return this.uimanager.show(oControl, vPanelKeys, mSettings);
|
|
208
203
|
};
|
|
209
204
|
|
|
@@ -216,7 +211,7 @@ sap.ui.define([
|
|
|
216
211
|
* @param {function(sap.ui.base.Event):void} fnStateEventHandler The handler function to call when the event occurs
|
|
217
212
|
* @returns {this} Returns <code>this</code> to allow method chaining
|
|
218
213
|
*/
|
|
219
|
-
Engine.prototype.attachStateChange = function(fnStateEventHandler) {
|
|
214
|
+
Engine.prototype.attachStateChange = function (fnStateEventHandler) {
|
|
220
215
|
return this.stateHandlerRegistry.attachChange(fnStateEventHandler);
|
|
221
216
|
};
|
|
222
217
|
|
|
@@ -229,7 +224,7 @@ sap.ui.define([
|
|
|
229
224
|
* @param {function(sap.ui.base.Event):void} fnStateEventHandler The handler function to detach from the event
|
|
230
225
|
* @returns {this} Returns <code>this</code> to allow method chaining
|
|
231
226
|
*/
|
|
232
|
-
Engine.prototype.detachStateChange = function(fnStateEventHandler) {
|
|
227
|
+
Engine.prototype.detachStateChange = function (fnStateEventHandler) {
|
|
233
228
|
return this.stateHandlerRegistry.detachChange(fnStateEventHandler);
|
|
234
229
|
};
|
|
235
230
|
|
|
@@ -243,13 +238,13 @@ sap.ui.define([
|
|
|
243
238
|
*
|
|
244
239
|
* @returns {Promise<null>} A Promise resolving once the reset is completed
|
|
245
240
|
*/
|
|
246
|
-
Engine.prototype.reset = function(oControl, aKeys) {
|
|
241
|
+
Engine.prototype.reset = function (oControl, aKeys) {
|
|
247
242
|
|
|
248
243
|
aKeys = aKeys instanceof Array ? aKeys : [aKeys];
|
|
249
244
|
|
|
250
245
|
var aSelectors = [];
|
|
251
246
|
|
|
252
|
-
aKeys.forEach(function(sKey) {
|
|
247
|
+
aKeys.forEach(function (sKey) {
|
|
253
248
|
aSelectors = aSelectors.concat(this.getController(oControl, sKey).getSelectorForReset());
|
|
254
249
|
}.bind(this));
|
|
255
250
|
|
|
@@ -260,18 +255,18 @@ sap.ui.define([
|
|
|
260
255
|
|
|
261
256
|
if (aKeys) {
|
|
262
257
|
var aChangeTypes = [];
|
|
263
|
-
aKeys.forEach(function(sKey){
|
|
258
|
+
aKeys.forEach(function (sKey) {
|
|
264
259
|
aChangeTypes = aChangeTypes.concat(Object.values(this.getController(oControl, sKey).getChangeOperations()));
|
|
265
260
|
}.bind(this));
|
|
266
261
|
oResetConfig.changeTypes = [].concat.apply([], aChangeTypes);
|
|
267
262
|
}
|
|
268
263
|
|
|
269
264
|
var oModificationSetting = this._determineModification(oControl);
|
|
270
|
-
return oModificationSetting.handler.reset(oResetConfig, oModificationSetting.payload).then(function(){
|
|
265
|
+
return oModificationSetting.handler.reset(oResetConfig, oModificationSetting.payload).then(function () {
|
|
271
266
|
this.stateHandlerRegistry.fireChange(oControl);
|
|
272
267
|
//Re-Init housekeeping after update
|
|
273
|
-
return this.initAdaptation(oControl, aKeys).then(function(oPropertyHelper){
|
|
274
|
-
aKeys.forEach(function(sKey){
|
|
268
|
+
return this.initAdaptation(oControl, aKeys).then(function (oPropertyHelper) {
|
|
269
|
+
aKeys.forEach(function (sKey) {
|
|
275
270
|
var oController = this.getController(oControl, sKey);
|
|
276
271
|
oController.update(oPropertyHelper);
|
|
277
272
|
}.bind(this));
|
|
@@ -294,18 +289,47 @@ sap.ui.define([
|
|
|
294
289
|
* @experimental Since 1.104. Please note that the API of this control is not yet finalized!
|
|
295
290
|
*
|
|
296
291
|
* @example {
|
|
297
|
-
*
|
|
298
|
-
*
|
|
292
|
+
* <RegisteredSortControllerKey>: [{
|
|
293
|
+
* key: "key1" //Adds key1 to the existing sorting
|
|
294
|
+
* },
|
|
295
|
+
* {
|
|
296
|
+
* key: "key2",
|
|
297
|
+
* sorted: false //Removes sorting for key2
|
|
298
|
+
* },{
|
|
299
|
+
* key: "key3",
|
|
300
|
+
* position: 2 //Reorders current sorter position in the array
|
|
301
|
+
* }],
|
|
302
|
+
* <RegisteredSelectionControllerKey>: [{
|
|
303
|
+
* key: "key1" //Adds key1 to the existing selection status
|
|
304
|
+
* },
|
|
305
|
+
* {
|
|
306
|
+
* key: "key2",
|
|
307
|
+
* visible: false //Removes selection status for key2
|
|
308
|
+
* },{
|
|
309
|
+
* key: "key3",
|
|
310
|
+
* position: 2 //Reorders current item position in the array
|
|
311
|
+
* }],
|
|
312
|
+
* <RegisteredGroupControllerKey>: [{
|
|
313
|
+
* key: "key1" //Adds key1 to the existing grouping status
|
|
314
|
+
* },
|
|
315
|
+
* {
|
|
316
|
+
* key: "key2",
|
|
317
|
+
* grouped: false //Removes selection status for key2
|
|
318
|
+
* },{
|
|
319
|
+
* key: "key3",
|
|
320
|
+
* position: 2 //Reorders current grouping position in the array
|
|
321
|
+
* }
|
|
322
|
+
* }
|
|
299
323
|
*
|
|
300
324
|
* @param {sap.ui.core.Control} oControl The registered control instance
|
|
301
325
|
* @param {sap.m.p13n.State} oState The state object
|
|
302
326
|
*
|
|
303
327
|
* @returns {Promise<sap.m.p13n.State>} A Promise resolving after the state has been applied
|
|
304
328
|
*/
|
|
305
|
-
|
|
329
|
+
Engine.prototype.applyState = function (oControl, oState) {
|
|
306
330
|
|
|
307
331
|
//Call retrieve only to ensure that the control is initialized and enabled for modification
|
|
308
|
-
return this.retrieveState(oControl).then(function(oCurrentState){
|
|
332
|
+
return this.retrieveState(oControl).then(function (oCurrentState) {
|
|
309
333
|
|
|
310
334
|
var aStatePromise = [], aChanges = [], mInfoState = {};
|
|
311
335
|
|
|
@@ -313,16 +337,16 @@ sap.ui.define([
|
|
|
313
337
|
mInfoState = oControl.validateState(this.externalizeKeys(oControl, oState));
|
|
314
338
|
}
|
|
315
339
|
|
|
316
|
-
if (mInfoState.validation === MessageType.Error){
|
|
340
|
+
if (mInfoState.validation === MessageType.Error) {
|
|
317
341
|
Log.error(mInfoState.message);
|
|
318
342
|
}
|
|
319
343
|
|
|
320
344
|
var aKeys = Object.keys(oState);
|
|
321
|
-
aKeys.forEach(function(sControllerKey){
|
|
345
|
+
aKeys.forEach(function (sControllerKey) {
|
|
322
346
|
|
|
323
347
|
var oController = this.getController(oControl, sControllerKey);
|
|
324
348
|
|
|
325
|
-
if (!oController){
|
|
349
|
+
if (!oController) {
|
|
326
350
|
//In case no controller can be found, skip change creation & appliance
|
|
327
351
|
//to avoid errors and react gracefully
|
|
328
352
|
return;
|
|
@@ -339,12 +363,12 @@ sap.ui.define([
|
|
|
339
363
|
aStatePromise.push(oStatePromise);
|
|
340
364
|
}.bind(this));
|
|
341
365
|
|
|
342
|
-
return Promise.all(aStatePromise).then(function(aRawChanges){
|
|
366
|
+
return Promise.all(aStatePromise).then(function (aRawChanges) {
|
|
343
367
|
var mChangeMap = {};
|
|
344
368
|
|
|
345
|
-
aRawChanges.forEach(function(aSpecificChanges, iIndex){
|
|
369
|
+
aRawChanges.forEach(function (aSpecificChanges, iIndex) {
|
|
346
370
|
|
|
347
|
-
if (aSpecificChanges && aSpecificChanges.length > 0){
|
|
371
|
+
if (aSpecificChanges && aSpecificChanges.length > 0) {
|
|
348
372
|
aChanges = aChanges.concat(aSpecificChanges);
|
|
349
373
|
var sKey = aKeys[iIndex];
|
|
350
374
|
mChangeMap[sKey] = aSpecificChanges;
|
|
@@ -370,16 +394,16 @@ sap.ui.define([
|
|
|
370
394
|
*
|
|
371
395
|
* @returns {Promise<sap.m.p13n.State>} A Promise resolving in the current control state
|
|
372
396
|
*/
|
|
373
|
-
Engine.prototype.retrieveState = function(oControl) {
|
|
397
|
+
Engine.prototype.retrieveState = function (oControl) {
|
|
374
398
|
|
|
375
399
|
//ensure that the control has been initialized
|
|
376
|
-
return this.checkControlInitialized(oControl).then(function() {
|
|
400
|
+
return this.checkControlInitialized(oControl).then(function () {
|
|
377
401
|
|
|
378
402
|
//ensure that all changes have been applied
|
|
379
|
-
return Engine.getInstance().waitForChanges(oControl).then(function() {
|
|
403
|
+
return Engine.getInstance().waitForChanges(oControl).then(function () {
|
|
380
404
|
|
|
381
405
|
var oRetrievedState = {};
|
|
382
|
-
Engine.getInstance().getRegisteredControllers(oControl).forEach(function(sKey){
|
|
406
|
+
Engine.getInstance().getRegisteredControllers(oControl).forEach(function (sKey) {
|
|
383
407
|
oRetrievedState[sKey] = Engine.getInstance().getController(oControl, sKey).getCurrentState(true);
|
|
384
408
|
});
|
|
385
409
|
|
|
@@ -398,7 +422,7 @@ sap.ui.define([
|
|
|
398
422
|
* @param {sap.ui.core.Control} vControl The registered control instance
|
|
399
423
|
* @param {sap.m.p13n.modification.ModificationHandler} oModificationHandler The modification handler object
|
|
400
424
|
*/
|
|
401
|
-
Engine.prototype._setModificationHandler = function(vControl, oModificationHandler) {
|
|
425
|
+
Engine.prototype._setModificationHandler = function (vControl, oModificationHandler) {
|
|
402
426
|
if (!oModificationHandler.isA("sap.m.p13n.modification.ModificationHandler")) {
|
|
403
427
|
throw new Error("Only sap.m.p13n.modification.ModificationHandler derivations are allowed for modification");
|
|
404
428
|
}
|
|
@@ -407,11 +431,11 @@ sap.ui.define([
|
|
|
407
431
|
this._getRegistryEntry(vControl).modification = oModificationSetting;
|
|
408
432
|
};
|
|
409
433
|
|
|
410
|
-
Engine.prototype._addToQueue = function(oControl, fTask) {
|
|
434
|
+
Engine.prototype._addToQueue = function (oControl, fTask) {
|
|
411
435
|
var oRegistryEntry = this._getRegistryEntry(oControl);
|
|
412
436
|
|
|
413
|
-
var fCleanupPromiseQueue = function(pOriginalPromise) {
|
|
414
|
-
if (oRegistryEntry.pendingModification === pOriginalPromise){
|
|
437
|
+
var fCleanupPromiseQueue = function (pOriginalPromise) {
|
|
438
|
+
if (oRegistryEntry.pendingModification === pOriginalPromise) {
|
|
415
439
|
oRegistryEntry.pendingModification = null;
|
|
416
440
|
}
|
|
417
441
|
};
|
|
@@ -428,7 +452,7 @@ sap.ui.define([
|
|
|
428
452
|
* of a set of changes based on the current control state and the provided state.
|
|
429
453
|
*
|
|
430
454
|
* @private
|
|
431
|
-
* @ui5-restricted
|
|
455
|
+
* @ui5-restricted sap.m, sap.ui.mdc
|
|
432
456
|
*
|
|
433
457
|
* @param {object} mDiffParameters A map defining the configuration to create the changes
|
|
434
458
|
* @param {sap.ui.core.Control} mDiffParameters.control The control instance that should be adapted
|
|
@@ -444,7 +468,7 @@ sap.ui.define([
|
|
|
444
468
|
*
|
|
445
469
|
* @returns {Promise} A Promise resolving in the related delta changes
|
|
446
470
|
*/
|
|
447
|
-
Engine.prototype.createChanges = function(mDiffParameters) {
|
|
471
|
+
Engine.prototype.createChanges = function (mDiffParameters) {
|
|
448
472
|
|
|
449
473
|
var oControl = Engine.getControlInstance(mDiffParameters.control);
|
|
450
474
|
var sKey = mDiffParameters.key;
|
|
@@ -455,49 +479,49 @@ sap.ui.define([
|
|
|
455
479
|
return Promise.resolve([]);
|
|
456
480
|
}
|
|
457
481
|
|
|
458
|
-
var fDeltaHandling = function() {
|
|
459
|
-
return this.initAdaptation(oControl, sKey).then(function(){
|
|
482
|
+
var fDeltaHandling = function () {
|
|
483
|
+
return this.initAdaptation(oControl, sKey).then(function () {
|
|
460
484
|
return vNewState;
|
|
461
485
|
})
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
486
|
+
.then(function (aNewState) {
|
|
487
|
+
|
|
488
|
+
var oController = this.getController(oControl, sKey);
|
|
489
|
+
var mChangeOperations = oController.getChangeOperations();
|
|
490
|
+
|
|
491
|
+
var oRegistryEntry = this._getRegistryEntry(oControl);
|
|
492
|
+
var oCurrentState = oController.getCurrentState();
|
|
493
|
+
var oPriorState = merge(oCurrentState instanceof Array ? [] : {}, oCurrentState);
|
|
494
|
+
|
|
495
|
+
var mDeltaConfig = {
|
|
496
|
+
existingState: mDiffParameters.stateBefore || oPriorState,
|
|
497
|
+
applyAbsolute: mDiffParameters.applyAbsolute,
|
|
498
|
+
changedState: aNewState,
|
|
499
|
+
control: oController.getAdaptationControl(),
|
|
500
|
+
changeOperations: mChangeOperations,
|
|
501
|
+
deltaAttributes: ["key"],
|
|
502
|
+
propertyInfo: oRegistryEntry.helper.getProperties().map(function (a) {
|
|
503
|
+
return {
|
|
504
|
+
key: a.key,
|
|
505
|
+
name: a.name
|
|
506
|
+
};
|
|
507
|
+
})
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
//Only execute change calculation in case there is a difference (--> example: press 'Ok' without a difference)
|
|
511
|
+
var aChanges = oController.getDelta(mDeltaConfig);
|
|
512
|
+
|
|
513
|
+
if (!bSuppressCallback) {
|
|
514
|
+
var mChangeMap = {};
|
|
515
|
+
mChangeMap[sKey] = aChanges;
|
|
516
|
+
return this._processChanges(oControl, mChangeMap)
|
|
517
|
+
.then(function () {
|
|
518
|
+
return aChanges;
|
|
519
|
+
});
|
|
520
|
+
}
|
|
497
521
|
|
|
498
|
-
|
|
522
|
+
return aChanges || [];
|
|
499
523
|
|
|
500
|
-
|
|
524
|
+
}.bind(this));
|
|
501
525
|
|
|
502
526
|
}.bind(this);
|
|
503
527
|
|
|
@@ -507,76 +531,82 @@ sap.ui.define([
|
|
|
507
531
|
/**
|
|
508
532
|
* Returns a promise resolving after all currently pending modifications have been applied.
|
|
509
533
|
*
|
|
510
|
-
* @
|
|
534
|
+
* @private
|
|
535
|
+
* @ui5-restricted sap.m, sap.ui.mdc
|
|
511
536
|
*
|
|
512
537
|
* @param {sap.ui.core.Control} oControl The related control instance
|
|
513
538
|
* @returns {Promise} A Promise resolving after all pending modifications have been applied
|
|
514
539
|
*/
|
|
515
|
-
|
|
540
|
+
Engine.prototype.waitForChanges = function (oControl) {
|
|
516
541
|
var oModificationSetting = this._determineModification(oControl);
|
|
517
542
|
var oRegistryEntry = this._getRegistryEntry(oControl);
|
|
518
543
|
return oRegistryEntry && oRegistryEntry.pendingModification ? oRegistryEntry.pendingModification : Promise.resolve()
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
544
|
+
.then(function () {
|
|
545
|
+
return oModificationSetting.handler.waitForChanges({
|
|
546
|
+
element: oControl
|
|
547
|
+
}, oModificationSetting.payload);
|
|
548
|
+
});
|
|
524
549
|
};
|
|
525
550
|
/**
|
|
526
551
|
* Determines whether the environment is suitable for the desired modification of the provided control instance.
|
|
527
552
|
*
|
|
528
|
-
* @
|
|
553
|
+
* @private
|
|
554
|
+
* @ui5-restricted sap.m, sap.ui.mdc
|
|
529
555
|
* @param {sap.ui.core.Control} oControl The related control instance
|
|
530
556
|
*
|
|
531
557
|
* @returns {Promise} A Promise resolving in a Boolean that determines whether the requirements for the persistence layer are met
|
|
532
558
|
*/
|
|
533
|
-
Engine.prototype.isModificationSupported = function(oControl) {
|
|
559
|
+
Engine.prototype.isModificationSupported = function (oControl) {
|
|
534
560
|
var oModificationSetting = this._determineModification(oControl);
|
|
535
561
|
return oModificationSetting.handler.isModificationSupported({
|
|
536
562
|
element: oControl
|
|
537
563
|
}, oModificationSetting.payload);
|
|
538
564
|
};
|
|
539
565
|
|
|
540
|
-
Engine.prototype.fireStateChange = function(oControl) {
|
|
541
|
-
return this.retrieveState(oControl).then(function(oState){
|
|
566
|
+
Engine.prototype.fireStateChange = function (oControl) {
|
|
567
|
+
return this.retrieveState(oControl).then(function (oState) {
|
|
542
568
|
this.stateHandlerRegistry.fireChange(oControl, oState);
|
|
543
569
|
}.bind(this));
|
|
544
570
|
};
|
|
545
571
|
|
|
546
572
|
/**
|
|
547
573
|
* This method can be used to process an array of changes.
|
|
548
|
-
* @
|
|
574
|
+
* @private
|
|
549
575
|
*
|
|
550
576
|
* @param {sap.ui.core.Control} vControl The registered control instance
|
|
551
577
|
* @param {object} mChanges A map of keys and arrays, every controller will provide an array of changes
|
|
552
578
|
* @returns {Promise} The change appliance <code>Promise</code>
|
|
553
579
|
*/
|
|
554
|
-
Engine.prototype._processChanges = function(vControl, mChanges) {
|
|
580
|
+
Engine.prototype._processChanges = function (vControl, mChanges) {
|
|
555
581
|
var aChanges = [];
|
|
556
582
|
var aKeys = Object.keys(mChanges);
|
|
583
|
+
var oDiff = {};
|
|
557
584
|
|
|
558
|
-
aKeys.forEach(function(sKey){
|
|
585
|
+
aKeys.forEach(function (sKey) {
|
|
586
|
+
oDiff[sKey] = this.getController(vControl, sKey).changesToState(mChanges[sKey]);
|
|
559
587
|
aChanges = aChanges.concat(mChanges[sKey]);
|
|
560
|
-
});
|
|
588
|
+
}.bind(this));
|
|
561
589
|
|
|
562
590
|
if (aChanges instanceof Array && aChanges.length > 0) {
|
|
563
591
|
var oModificationSetting = this._determineModification(vControl);
|
|
564
592
|
return oModificationSetting.handler.processChanges(aChanges, oModificationSetting.payload)
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
593
|
+
.then(function (aChanges) {
|
|
594
|
+
var oControl = Engine.getControlInstance(vControl);
|
|
595
|
+
this.fireStateChange(oControl);
|
|
596
|
+
return aChanges;
|
|
597
|
+
}.bind(this));
|
|
570
598
|
} else {
|
|
571
599
|
return Promise.resolve([]);
|
|
572
600
|
}
|
|
573
601
|
};
|
|
574
602
|
|
|
603
|
+
|
|
575
604
|
/**
|
|
576
605
|
* This method can be used in the designtime metadata of the control
|
|
577
606
|
* for key user personalization.
|
|
578
607
|
*
|
|
579
|
-
* @
|
|
608
|
+
* @private
|
|
609
|
+
* @ui5-restricted sap.m, sap.ui.mdc
|
|
580
610
|
*
|
|
581
611
|
* @param {sap.ui.core.Control} oControl The registered control instance
|
|
582
612
|
* @param {object} mPropertyBag The property bag provided in the settings action
|
|
@@ -599,11 +629,11 @@ sap.ui.define([
|
|
|
599
629
|
var oOriginalModifHandler = this.getModificationHandler(oControl);
|
|
600
630
|
var oTemporaryRTAHandler = new FlexModificationHandler();
|
|
601
631
|
|
|
602
|
-
var oRTAPromise = new Promise(function(resolve, reject){
|
|
632
|
+
var oRTAPromise = new Promise(function (resolve, reject) {
|
|
603
633
|
fResolveRTA = resolve;
|
|
604
634
|
});
|
|
605
635
|
|
|
606
|
-
oTemporaryRTAHandler.processChanges = function(aChanges) {
|
|
636
|
+
oTemporaryRTAHandler.processChanges = function (aChanges) {
|
|
607
637
|
fResolveRTA(aChanges);
|
|
608
638
|
return Promise.resolve(aChanges);
|
|
609
639
|
};
|
|
@@ -612,7 +642,7 @@ sap.ui.define([
|
|
|
612
642
|
|
|
613
643
|
this.uimanager.show(oControl, aKeys, {
|
|
614
644
|
showReset: false
|
|
615
|
-
}).then(function(oContainer){
|
|
645
|
+
}).then(function (oContainer) {
|
|
616
646
|
var oCustomHeader = oContainer.getCustomHeader();
|
|
617
647
|
if (oCustomHeader) {
|
|
618
648
|
oCustomHeader.getContentRight()[0].setVisible(false);
|
|
@@ -623,7 +653,7 @@ sap.ui.define([
|
|
|
623
653
|
}
|
|
624
654
|
});
|
|
625
655
|
|
|
626
|
-
oRTAPromise.then(function(){
|
|
656
|
+
oRTAPromise.then(function () {
|
|
627
657
|
this._setModificationHandler(oControl, oOriginalModifHandler);
|
|
628
658
|
oTemporaryRTAHandler.destroy();
|
|
629
659
|
}.bind(this));
|
|
@@ -635,7 +665,8 @@ sap.ui.define([
|
|
|
635
665
|
/**
|
|
636
666
|
* Enhances the <code>xConfig</code> object by using the <code>ModificationHandler</code>.
|
|
637
667
|
*
|
|
638
|
-
* @
|
|
668
|
+
* @private
|
|
669
|
+
* @ui5-restricted sap.m, sap.ui.mdc
|
|
639
670
|
*
|
|
640
671
|
* @param {sap.ui.core.Control} vControl The registered control instance
|
|
641
672
|
* @param {object} mEnhanceConfig An object providing the information about the xConfig enhancement
|
|
@@ -647,24 +678,25 @@ sap.ui.define([
|
|
|
647
678
|
* @param {object} [mEnhanceConfig.propertyBag] Optional property bag for the <code>ModificationHandler</code>
|
|
648
679
|
* @returns {Promise} Promise resolving when the xConfig is successfully enhanced
|
|
649
680
|
*/
|
|
650
|
-
Engine.prototype.enhanceXConfig = function(vControl, mEnhanceConfig) {
|
|
681
|
+
Engine.prototype.enhanceXConfig = function (vControl, mEnhanceConfig) {
|
|
651
682
|
|
|
652
683
|
var oControl = Engine.getControlInstance(vControl);
|
|
653
684
|
var oRegistryEntry = this._getRegistryEntry(vControl);
|
|
654
685
|
|
|
655
686
|
return xConfigAPI.enhanceConfig(oControl, mEnhanceConfig)
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
687
|
+
.then(function (oConfig) {
|
|
688
|
+
if (oRegistryEntry) {
|
|
689
|
+
//to simplify debugging
|
|
690
|
+
oRegistryEntry.xConfig = oConfig;
|
|
691
|
+
}
|
|
692
|
+
});
|
|
662
693
|
};
|
|
663
694
|
|
|
664
695
|
/**
|
|
665
696
|
* Returns a copy of the <code>xConfig</code> object.
|
|
666
697
|
*
|
|
667
|
-
* @
|
|
698
|
+
* @private
|
|
699
|
+
* @ui5-restricted sap.m, sap.ui.mdc
|
|
668
700
|
* @param {sap.ui.core.Element} vControl The related element that should be checked
|
|
669
701
|
* @param {object} [mEnhanceConfig] An object providing a modification-handler-specific payload
|
|
670
702
|
* @param {object} [mEnhanceConfig.propertyBag] Optional property bag for different modification handler derivations
|
|
@@ -672,7 +704,7 @@ sap.ui.define([
|
|
|
672
704
|
* @returns {Promise<object>|object}
|
|
673
705
|
* A <code>Promise</code> that resolves with the configuration. The xConfig itself if it is already available, or <code>null</code> if there is no xConfig
|
|
674
706
|
*/
|
|
675
|
-
Engine.prototype.readXConfig = function(vControl, mEnhanceConfig) {
|
|
707
|
+
Engine.prototype.readXConfig = function (vControl, mEnhanceConfig) {
|
|
676
708
|
|
|
677
709
|
var oControl = Engine.getControlInstance(vControl);
|
|
678
710
|
return xConfigAPI.readConfig(oControl, mEnhanceConfig) || {};
|
|
@@ -688,9 +720,9 @@ sap.ui.define([
|
|
|
688
720
|
* @param {object} oInternalState The internal state
|
|
689
721
|
* @returns {object} The externalized state
|
|
690
722
|
*/
|
|
691
|
-
Engine.prototype.externalizeKeys = function(vControl, oInternalState) {
|
|
723
|
+
Engine.prototype.externalizeKeys = function (vControl, oInternalState) {
|
|
692
724
|
var oExternalState = {};
|
|
693
|
-
Object.keys(oInternalState).forEach(function(sInternalKey){
|
|
725
|
+
Object.keys(oInternalState).forEach(function (sInternalKey) {
|
|
694
726
|
var oController = this.getController(Engine.getControlInstance(vControl), sInternalKey);
|
|
695
727
|
if (oController) {
|
|
696
728
|
oExternalState[oController.getStateKey()] = oInternalState[sInternalKey];
|
|
@@ -711,7 +743,7 @@ sap.ui.define([
|
|
|
711
743
|
*/
|
|
712
744
|
Engine.prototype.internalizeKeys = function (vControl, oExternalState) {
|
|
713
745
|
var aControllerKeys = this.getRegisteredControllers(vControl), oInternalState = {};
|
|
714
|
-
aControllerKeys.forEach(function(sInternalRegistryKey){
|
|
746
|
+
aControllerKeys.forEach(function (sInternalRegistryKey) {
|
|
715
747
|
var sExternalStateKey = this.getController(vControl, sInternalRegistryKey).getStateKey();
|
|
716
748
|
if (oExternalState.hasOwnProperty(sExternalStateKey)) {
|
|
717
749
|
oInternalState[sInternalRegistryKey] = oExternalState[sExternalStateKey];
|
|
@@ -720,13 +752,13 @@ sap.ui.define([
|
|
|
720
752
|
return oInternalState;
|
|
721
753
|
};
|
|
722
754
|
|
|
723
|
-
Engine.prototype.diffState = function(oControl, oOld, oNew) {
|
|
755
|
+
Engine.prototype.diffState = function (oControl, oOld, oNew) {
|
|
724
756
|
|
|
725
757
|
var aDiffCreation = [], oDiffState = {};
|
|
726
758
|
oOld = merge({}, oOld);
|
|
727
759
|
oNew = merge({}, oNew);
|
|
728
760
|
|
|
729
|
-
Object.keys(oNew).forEach(function(sKey){
|
|
761
|
+
Object.keys(oNew).forEach(function (sKey) {
|
|
730
762
|
aDiffCreation.push(this.createChanges({
|
|
731
763
|
control: oControl,
|
|
732
764
|
stateBefore: oOld[sKey],
|
|
@@ -737,26 +769,26 @@ sap.ui.define([
|
|
|
737
769
|
}));
|
|
738
770
|
}.bind(this));
|
|
739
771
|
return Promise.all(aDiffCreation)
|
|
740
|
-
|
|
741
|
-
|
|
772
|
+
.then(function (aChanges) {
|
|
773
|
+
Object.keys(oNew).forEach(function (sKey, i) {
|
|
742
774
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
775
|
+
if (oNew[sKey]) {
|
|
776
|
+
var aState = this.getController(oControl, sKey).changesToState(aChanges[i], oOld[sKey], oNew[sKey]);
|
|
777
|
+
oDiffState[sKey] = aState;
|
|
778
|
+
}
|
|
779
|
+
}.bind(this));
|
|
748
780
|
|
|
749
|
-
|
|
781
|
+
return oDiffState;
|
|
750
782
|
|
|
751
|
-
|
|
783
|
+
}.bind(this));
|
|
752
784
|
};
|
|
753
785
|
|
|
754
|
-
Engine.prototype.checkControlInitialized = function(vControl) {
|
|
786
|
+
Engine.prototype.checkControlInitialized = function (vControl) {
|
|
755
787
|
var oControl = Engine.getControlInstance(vControl);
|
|
756
788
|
return oControl.initialized instanceof Function ? oControl.initialized() : Promise.resolve();
|
|
757
789
|
};
|
|
758
790
|
|
|
759
|
-
Engine.prototype.checkPropertyHelperInitialized = function(vControl) {
|
|
791
|
+
Engine.prototype.checkPropertyHelperInitialized = function (vControl) {
|
|
760
792
|
var oControl = Engine.getControlInstance(vControl);
|
|
761
793
|
return oControl.initPropertyHelper instanceof Function ? oControl.initPropertyHelper() : Promise.resolve();
|
|
762
794
|
};
|
|
@@ -772,7 +804,7 @@ sap.ui.define([
|
|
|
772
804
|
*
|
|
773
805
|
* @returns {Promise} A Promise resolving after the adaptation housekeeping has been initialized
|
|
774
806
|
*/
|
|
775
|
-
Engine.prototype.initAdaptation = function(vControl, aKeys) {
|
|
807
|
+
Engine.prototype.initAdaptation = function (vControl, aKeys) {
|
|
776
808
|
this.verifyController(vControl, aKeys);
|
|
777
809
|
|
|
778
810
|
//1) Cache property helper
|
|
@@ -801,7 +833,7 @@ sap.ui.define([
|
|
|
801
833
|
* @param {string} sKey The key that defines the later access to the controller instance.
|
|
802
834
|
* @param {object} oPreConfig A predefined configuration
|
|
803
835
|
*/
|
|
804
|
-
Engine.prototype.addController = function(oController, sKey, oPreConfig) {
|
|
836
|
+
Engine.prototype.addController = function (oController, sKey, oPreConfig) {
|
|
805
837
|
var oRegistryEntry = this._getRegistryEntry(oController.getAdaptationControl(), oPreConfig);
|
|
806
838
|
oRegistryEntry.controller[sKey] = oController;
|
|
807
839
|
};
|
|
@@ -811,16 +843,29 @@ sap.ui.define([
|
|
|
811
843
|
* @private
|
|
812
844
|
*
|
|
813
845
|
* @param {sap.ui.core.Control} vControl The registered Control instance.
|
|
814
|
-
* @param {string} sKey The key for which the controller has been registered.
|
|
846
|
+
* @param {string} sKey The key/changeType for which the controller has been registered.
|
|
815
847
|
*
|
|
816
848
|
* @returns {sap.m.p13n.SelectionController} The controller instance
|
|
817
849
|
*/
|
|
818
|
-
Engine.prototype.getController = function(vControl, sKey) {
|
|
819
|
-
var oRegistryEntry = this._getRegistryEntry(vControl);
|
|
820
|
-
|
|
850
|
+
Engine.prototype.getController = function (vControl, sKey) {
|
|
851
|
+
var oRegistryEntry = this._getRegistryEntry(vControl), oController;
|
|
821
852
|
if (oRegistryEntry && oRegistryEntry.controller.hasOwnProperty(sKey)) {
|
|
822
|
-
|
|
853
|
+
oController = oRegistryEntry.controller[sKey];
|
|
823
854
|
}
|
|
855
|
+
|
|
856
|
+
if (!oController) {
|
|
857
|
+
this.getRegisteredControllers(vControl).forEach(function (sController) {
|
|
858
|
+
var oRegisteredController = this.getController(vControl, sController);
|
|
859
|
+
if (oRegisteredController) {
|
|
860
|
+
Object.keys(oRegisteredController.getChangeOperations()).forEach(function (sOperationType) {
|
|
861
|
+
if (oRegisteredController.getChangeOperations()[sOperationType] === sKey) {
|
|
862
|
+
oController = oRegisteredController;
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
}.bind(this));
|
|
867
|
+
}
|
|
868
|
+
return oController;
|
|
824
869
|
};
|
|
825
870
|
|
|
826
871
|
/**
|
|
@@ -829,10 +874,10 @@ sap.ui.define([
|
|
|
829
874
|
* @param {sap.ui.core.Control} vControl The registered Control instance.
|
|
830
875
|
* @param {string|array} vKey A key as string or an array of keys
|
|
831
876
|
*/
|
|
832
|
-
Engine.prototype.verifyController = function(vControl, vKey) {
|
|
877
|
+
Engine.prototype.verifyController = function (vControl, vKey) {
|
|
833
878
|
var aKeys = vKey instanceof Array ? vKey : [vKey];
|
|
834
879
|
|
|
835
|
-
aKeys.forEach(function(sKey){
|
|
880
|
+
aKeys.forEach(function (sKey) {
|
|
836
881
|
if (!this.getController(vControl, sKey)) {
|
|
837
882
|
var oControl = Engine.getControlInstance(vControl);
|
|
838
883
|
throw new Error("No controller registered yet for " + oControl.getId() + " and key: " + sKey);
|
|
@@ -850,32 +895,32 @@ sap.ui.define([
|
|
|
850
895
|
*
|
|
851
896
|
* @returns {object} The requested UI settings of the control instance and provided keys
|
|
852
897
|
*/
|
|
853
|
-
Engine.prototype.getUISettings = function(vControl, vKeys) {
|
|
898
|
+
Engine.prototype.getUISettings = function (vControl, vKeys) {
|
|
854
899
|
var aKeys = Array.isArray(vKeys) ? vKeys : [vKeys];
|
|
855
900
|
this.verifyController(vControl, aKeys);
|
|
856
901
|
var oPropertyHelper = this._getRegistryEntry(vControl).helper;
|
|
857
902
|
var mUiSettings = {}, aPanelCreation = [];
|
|
858
903
|
|
|
859
|
-
aKeys.forEach(function(sKey){
|
|
904
|
+
aKeys.forEach(function (sKey) {
|
|
860
905
|
var oController = this.getController(vControl, sKey);
|
|
861
906
|
var pAdaptationUI = oController.initAdaptationUI(oPropertyHelper);
|
|
862
907
|
|
|
863
908
|
//Check faceless controller implementations and skip them
|
|
864
|
-
if (pAdaptationUI instanceof Promise){
|
|
909
|
+
if (pAdaptationUI instanceof Promise) {
|
|
865
910
|
aPanelCreation.push(pAdaptationUI);
|
|
866
911
|
}
|
|
867
912
|
}.bind(this));
|
|
868
913
|
|
|
869
914
|
return Promise.all(aPanelCreation)
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
915
|
+
.then(function (aPanels) {
|
|
916
|
+
aPanels.forEach(function (oPanel, iIndex) {
|
|
917
|
+
var sKey = aKeys[iIndex];
|
|
918
|
+
mUiSettings[sKey] = {
|
|
919
|
+
panel: oPanel
|
|
920
|
+
};
|
|
921
|
+
});
|
|
922
|
+
return mUiSettings;
|
|
876
923
|
});
|
|
877
|
-
return mUiSettings;
|
|
878
|
-
});
|
|
879
924
|
};
|
|
880
925
|
|
|
881
926
|
/**
|
|
@@ -884,9 +929,9 @@ sap.ui.define([
|
|
|
884
929
|
* @private
|
|
885
930
|
*
|
|
886
931
|
* @param {sap.ui.core.Control} vControl The registered Control instance
|
|
887
|
-
|
|
932
|
+
* @returns {boolean} true if modification settings were already determined
|
|
888
933
|
*/
|
|
889
|
-
Engine.prototype.isRegisteredForModification = function(vControl) {
|
|
934
|
+
Engine.prototype.isRegisteredForModification = function (vControl) {
|
|
890
935
|
var oRegistryEntry = this._getRegistryEntry(vControl);
|
|
891
936
|
return oRegistryEntry && !!oRegistryEntry.modification;
|
|
892
937
|
};
|
|
@@ -897,7 +942,7 @@ sap.ui.define([
|
|
|
897
942
|
* @param {string|sap.ui.core.Control} vControl The control ID or instance
|
|
898
943
|
* @returns {array} An array of all registered controller instances
|
|
899
944
|
*/
|
|
900
|
-
Engine.prototype.getRegisteredControllers = function(vControl){
|
|
945
|
+
Engine.prototype.getRegisteredControllers = function (vControl) {
|
|
901
946
|
var oRegistryEntry = this._getRegistryEntry(vControl);
|
|
902
947
|
return oRegistryEntry ? Object.keys(oRegistryEntry.controller) : [];
|
|
903
948
|
};
|
|
@@ -909,7 +954,7 @@ sap.ui.define([
|
|
|
909
954
|
*
|
|
910
955
|
* @returns {object} The related registry entry
|
|
911
956
|
*/
|
|
912
|
-
Engine.prototype._getRegistryEntry = function(vControl) {
|
|
957
|
+
Engine.prototype._getRegistryEntry = function (vControl) {
|
|
913
958
|
|
|
914
959
|
var oControl = Engine.getControlInstance(vControl);
|
|
915
960
|
return _mRegistry.get(oControl);
|
|
@@ -920,12 +965,12 @@ sap.ui.define([
|
|
|
920
965
|
* This method can be used to get the modification handling for a control instance
|
|
921
966
|
*
|
|
922
967
|
* @private
|
|
923
|
-
* @ui5-restricted sap.m
|
|
968
|
+
* @ui5-restricted sap.m, sap.ui.mdc
|
|
924
969
|
*
|
|
925
970
|
* @param {string|sap.ui.core.Control} vControl The control id or instance
|
|
926
971
|
* @returns {object} The related ModificationHandler.
|
|
927
972
|
*/
|
|
928
|
-
Engine.prototype.getModificationHandler = function(vControl) {
|
|
973
|
+
Engine.prototype.getModificationHandler = function (vControl) {
|
|
929
974
|
var oModificationSetting = this._determineModification(vControl);
|
|
930
975
|
|
|
931
976
|
//This method might also be retrieved by non-registered Controls (such as FilterBarBase) - the default should always be Flex.
|
|
@@ -941,7 +986,7 @@ sap.ui.define([
|
|
|
941
986
|
* @param {object} oPreConfig A predefined configuration
|
|
942
987
|
* @returns {object} The related registry entry
|
|
943
988
|
*/
|
|
944
|
-
Engine.prototype._createRegistryEntry = function(vControl, oPreConfig) {
|
|
989
|
+
Engine.prototype._createRegistryEntry = function (vControl, oPreConfig) {
|
|
945
990
|
|
|
946
991
|
var oControl = Engine.getControlInstance(vControl);
|
|
947
992
|
|
|
@@ -968,25 +1013,25 @@ sap.ui.define([
|
|
|
968
1013
|
return _mRegistry.get(oControl);
|
|
969
1014
|
};
|
|
970
1015
|
|
|
971
|
-
Engine.prototype.trace = function(vControl, oChange) {
|
|
1016
|
+
Engine.prototype.trace = function (vControl, oChange) {
|
|
972
1017
|
var oRegistryEntry = this._getRegistryEntry(vControl);
|
|
973
|
-
this.getRegisteredControllers(vControl).forEach(function(sKey){
|
|
1018
|
+
this.getRegisteredControllers(vControl).forEach(function (sKey) {
|
|
974
1019
|
var oController = this.getController(vControl, sKey);
|
|
975
1020
|
var mChangeOperations = oController.getChangeOperations();
|
|
976
|
-
Object.keys(mChangeOperations).forEach(function(sType){
|
|
1021
|
+
Object.keys(mChangeOperations).forEach(function (sType) {
|
|
977
1022
|
if (mChangeOperations[sType] === oChange.changeSpecificData.changeType) {
|
|
978
|
-
oRegistryEntry.pendingAppliance[sKey] = [].concat(oRegistryEntry.pendingAppliance[sKey]).concat(oChange);
|
|
1023
|
+
oRegistryEntry.pendingAppliance[sKey] = [].concat(oRegistryEntry.pendingAppliance[sKey] || []).concat(oChange);
|
|
979
1024
|
}
|
|
980
1025
|
});
|
|
981
1026
|
}.bind(this));
|
|
982
1027
|
};
|
|
983
1028
|
|
|
984
|
-
Engine.prototype.getTrace = function(vControl, oChange) {
|
|
1029
|
+
Engine.prototype.getTrace = function (vControl, oChange) {
|
|
985
1030
|
var oRegistryEntry = this._getRegistryEntry(vControl);
|
|
986
1031
|
return Object.keys(oRegistryEntry.pendingAppliance);
|
|
987
1032
|
};
|
|
988
1033
|
|
|
989
|
-
Engine.prototype.clearTrace = function(vControl, oChange) {
|
|
1034
|
+
Engine.prototype.clearTrace = function (vControl, oChange) {
|
|
990
1035
|
var oRegistryEntry = this._getRegistryEntry(vControl);
|
|
991
1036
|
oRegistryEntry.pendingAppliance = {};
|
|
992
1037
|
};
|
|
@@ -1029,7 +1074,7 @@ sap.ui.define([
|
|
|
1029
1074
|
return oModificationSetting;
|
|
1030
1075
|
};
|
|
1031
1076
|
|
|
1032
|
-
Engine.prototype.hasForReference = function(vControl, sControlType) {
|
|
1077
|
+
Engine.prototype.hasForReference = function (vControl, sControlType) {
|
|
1033
1078
|
var sControlId = vControl && vControl.getId ? vControl.getId() : vControl;
|
|
1034
1079
|
var aResults = Element.registry.filter(function (oElement) {
|
|
1035
1080
|
if (!oElement.isA(sControlType)) {
|
|
@@ -1055,7 +1100,7 @@ sap.ui.define([
|
|
|
1055
1100
|
*
|
|
1056
1101
|
* @returns {boolean} Returns whether an related ancestor could be found.
|
|
1057
1102
|
*/
|
|
1058
|
-
Engine.prototype.hasControlAncestorWithId = function(sControlId, sAncestorControlId) {
|
|
1103
|
+
Engine.prototype.hasControlAncestorWithId = function (sControlId, sAncestorControlId) {
|
|
1059
1104
|
var oControl;
|
|
1060
1105
|
|
|
1061
1106
|
if (sControlId === sAncestorControlId) {
|
|
@@ -1088,7 +1133,7 @@ sap.ui.define([
|
|
|
1088
1133
|
* @param {string|sap.ui.core.Control} vControl The control ID or instance
|
|
1089
1134
|
* @returns {sap.ui.core.Control} The control instance
|
|
1090
1135
|
*/
|
|
1091
|
-
Engine.getControlInstance = function(vControl) {
|
|
1136
|
+
Engine.getControlInstance = function (vControl) {
|
|
1092
1137
|
return typeof vControl == "string" ? sap.ui.getCore().byId(vControl) : vControl;
|
|
1093
1138
|
};
|
|
1094
1139
|
|
|
@@ -1102,7 +1147,7 @@ sap.ui.define([
|
|
|
1102
1147
|
*
|
|
1103
1148
|
* @returns {boolean} The related flag is the Control has an open P13n container
|
|
1104
1149
|
*/
|
|
1105
|
-
Engine.prototype.hasActiveP13n = function(vControl) {
|
|
1150
|
+
Engine.prototype.hasActiveP13n = function (vControl) {
|
|
1106
1151
|
return !!this._getRegistryEntry(vControl).activeP13n;
|
|
1107
1152
|
};
|
|
1108
1153
|
|
|
@@ -1116,7 +1161,7 @@ sap.ui.define([
|
|
|
1116
1161
|
* @param {sap.ui.core.Control} vControl The registered control instance.
|
|
1117
1162
|
* @param {string} sKey The registered key to get the corresponding controller.
|
|
1118
1163
|
*/
|
|
1119
|
-
Engine.prototype.setActiveP13n = function(vControl, sKey) {
|
|
1164
|
+
Engine.prototype.setActiveP13n = function (vControl, sKey) {
|
|
1120
1165
|
this._getRegistryEntry(vControl).activeP13n = sKey;
|
|
1121
1166
|
};
|
|
1122
1167
|
|
|
@@ -1131,7 +1176,7 @@ sap.ui.define([
|
|
|
1131
1176
|
* @param {string} sKey The registered key to get the corresponding controller.
|
|
1132
1177
|
* @param {sap.ui.core.Control} oP13nUI The adaptation UI displayed in the container (e.g. BasePanel derivation).
|
|
1133
1178
|
*/
|
|
1134
|
-
Engine.prototype.validateP13n = function(vControl, sKey, oP13nUI) {
|
|
1179
|
+
Engine.prototype.validateP13n = function (vControl, sKey, oP13nUI) {
|
|
1135
1180
|
var oController = this.getController(vControl, sKey);
|
|
1136
1181
|
var oControl = Engine.getControlInstance(vControl);
|
|
1137
1182
|
|
|
@@ -1139,7 +1184,7 @@ sap.ui.define([
|
|
|
1139
1184
|
var mControllers = this._getRegistryEntry(vControl).controller;
|
|
1140
1185
|
var oTheoreticalState = {};
|
|
1141
1186
|
|
|
1142
|
-
Object.keys(mControllers).forEach(function(sControllerKey){
|
|
1187
|
+
Object.keys(mControllers).forEach(function (sControllerKey) {
|
|
1143
1188
|
oTheoreticalState[sControllerKey] = mControllers[sControllerKey].getCurrentState();
|
|
1144
1189
|
});
|
|
1145
1190
|
|
|
@@ -1180,11 +1225,11 @@ sap.ui.define([
|
|
|
1180
1225
|
* @param {string[]} aKeys An array of keys
|
|
1181
1226
|
* @returns {Promise} A Promise resolving after all p13n changes have been calculated and processed
|
|
1182
1227
|
*/
|
|
1183
|
-
Engine.prototype.handleP13n = function(oControl, aKeys) {
|
|
1228
|
+
Engine.prototype.handleP13n = function (oControl, aKeys) {
|
|
1184
1229
|
|
|
1185
1230
|
var pChanges = [];
|
|
1186
1231
|
|
|
1187
|
-
aKeys.forEach(function(sControllerKey){
|
|
1232
|
+
aKeys.forEach(function (sControllerKey) {
|
|
1188
1233
|
|
|
1189
1234
|
var oController = this.getController(oControl, sControllerKey);
|
|
1190
1235
|
|
|
@@ -1197,26 +1242,26 @@ sap.ui.define([
|
|
|
1197
1242
|
suppressAppliance: true,
|
|
1198
1243
|
applyAbsolute: true
|
|
1199
1244
|
})
|
|
1200
|
-
|
|
1245
|
+
.then(function (aItemChanges) {
|
|
1201
1246
|
|
|
1202
|
-
|
|
1247
|
+
return oController.getBeforeApply().then(function (aChanges) {
|
|
1203
1248
|
|
|
1204
|
-
|
|
1205
|
-
|
|
1249
|
+
var aComulatedChanges = aChanges ? aChanges.concat(aItemChanges) : aItemChanges;
|
|
1250
|
+
return aComulatedChanges;
|
|
1206
1251
|
|
|
1252
|
+
});
|
|
1207
1253
|
});
|
|
1208
|
-
});
|
|
1209
1254
|
|
|
1210
1255
|
pChanges.push(p);
|
|
1211
1256
|
}
|
|
1212
1257
|
|
|
1213
1258
|
}.bind(this));
|
|
1214
1259
|
|
|
1215
|
-
return Promise.all(pChanges).then(function(aChangeMatrix){
|
|
1260
|
+
return Promise.all(pChanges).then(function (aChangeMatrix) {
|
|
1216
1261
|
|
|
1217
1262
|
var aApplyChanges = [];
|
|
1218
1263
|
var mChangeMap = {};
|
|
1219
|
-
aChangeMatrix.forEach(function(aTypeChanges, iIndex){
|
|
1264
|
+
aChangeMatrix.forEach(function (aTypeChanges, iIndex) {
|
|
1220
1265
|
aApplyChanges = aApplyChanges.concat(aTypeChanges);
|
|
1221
1266
|
var sKey = aKeys[iIndex];
|
|
1222
1267
|
mChangeMap[sKey] = aTypeChanges;
|
|
@@ -1233,11 +1278,11 @@ sap.ui.define([
|
|
|
1233
1278
|
* This method is the central point of access to the Engine Singleton.
|
|
1234
1279
|
*
|
|
1235
1280
|
* @private
|
|
1236
|
-
* @ui5-restricted sap.m
|
|
1281
|
+
* @ui5-restricted sap.m, sap.ui.mdc
|
|
1237
1282
|
*
|
|
1238
1283
|
* @returns {sap.m.p13n.Engine} The Engine instance
|
|
1239
1284
|
*/
|
|
1240
|
-
Engine.getInstance = function() {
|
|
1285
|
+
Engine.getInstance = function () {
|
|
1241
1286
|
if (!oEngine) {
|
|
1242
1287
|
oEngine = new Engine();
|
|
1243
1288
|
}
|
|
@@ -1250,14 +1295,14 @@ sap.ui.define([
|
|
|
1250
1295
|
* @private
|
|
1251
1296
|
* @returns {object} The Engine registry object
|
|
1252
1297
|
*/
|
|
1253
|
-
Engine.prototype._getRegistry = function() {
|
|
1298
|
+
Engine.prototype._getRegistry = function () {
|
|
1254
1299
|
var oRegistry = {
|
|
1255
1300
|
stateHandlerRegistry: this.stateHandlerRegistry,
|
|
1256
1301
|
defaultProviderRegistry: this.defaultProviderRegistry,
|
|
1257
1302
|
controlRegistry: {}
|
|
1258
1303
|
};
|
|
1259
1304
|
|
|
1260
|
-
this._aRegistry.forEach(function(sKey){
|
|
1305
|
+
this._aRegistry.forEach(function (sKey) {
|
|
1261
1306
|
var oControl = sap.ui.getCore().byId(sKey);
|
|
1262
1307
|
oRegistry.controlRegistry[sKey] = _mRegistry.get(oControl);
|
|
1263
1308
|
});
|
|
@@ -1269,7 +1314,7 @@ sap.ui.define([
|
|
|
1269
1314
|
* @override
|
|
1270
1315
|
* @inheritDoc
|
|
1271
1316
|
*/
|
|
1272
|
-
Engine.prototype.destroy = function() {
|
|
1317
|
+
Engine.prototype.destroy = function () {
|
|
1273
1318
|
AdaptationProvider.prototype.destroy.apply(this, arguments);
|
|
1274
1319
|
oEngine = null;
|
|
1275
1320
|
this._aRegistry = null;
|