@openui5/sap.m 1.119.0 → 1.120.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 +6 -6
- package/package.json +4 -4
- package/src/sap/m/.library +8 -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 +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Avatar.js +10 -6
- package/src/sap/m/AvatarRenderer.js +10 -3
- 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/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 +7 -8
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +1 -1
- package/src/sap/m/ComboBoxBase.js +20 -3
- package/src/sap/m/ComboBoxTextField.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 +1 -1
- package/src/sap/m/DateRangeSelection.js +22 -12
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +1 -1
- 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 +10 -2
- package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
- package/src/sap/m/ExpandableText.js +1 -1
- package/src/sap/m/FacetFilter.js +2 -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 +5 -4
- package/src/sap/m/FeedInputRenderer.js +3 -3
- package/src/sap/m/FeedListItem.js +6 -4
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +58 -23
- package/src/sap/m/GenericTileRenderer.js +11 -0
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingEnablement.js +2 -3
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +6 -4
- 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/Illustration.js +1 -1
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +79 -14
- package/src/sap/m/InputBase.js +3 -1
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/InputRenderer.js +7 -3
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +1 -1
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +1 -1
- package/src/sap/m/LinkTileContent.js +143 -0
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +32 -14
- package/src/sap/m/ListItemBase.js +1 -1
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +1 -1
- package/src/sap/m/MenuButton.js +3 -3
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +2 -3
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +5 -19
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MessageViewRenderer.js +2 -3
- package/src/sap/m/MultiComboBox.js +1 -1
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +4 -2
- package/src/sap/m/NavContainer.js +4 -3
- 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 +9 -10
- package/src/sap/m/NumericContentRenderer.js +5 -4
- 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 +4 -6
- package/src/sap/m/ObjectStatusRenderer.js +3 -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/OverflowToolbarRenderer.js +8 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +1 -1
- package/src/sap/m/P13nColumnsItem.js +2 -1
- package/src/sap/m/P13nColumnsPanel.js +1 -1
- package/src/sap/m/P13nConditionPanel.js +1 -1
- package/src/sap/m/P13nDialog.js +1 -1
- package/src/sap/m/P13nDimMeasureItem.js +2 -1
- package/src/sap/m/P13nDimMeasurePanel.js +2 -1
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -1
- package/src/sap/m/P13nGroupItem.js +2 -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 +2 -1
- package/src/sap/m/P13nSortPanel.js +1 -1
- package/src/sap/m/PDFViewer.js +20 -8
- package/src/sap/m/PDFViewerRenderManager.js +18 -18
- package/src/sap/m/PDFViewerRenderer.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 +37 -12
- 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 +5 -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 +3 -3
- package/src/sap/m/RadioButtonGroup.js +1 -1
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RangeSliderRenderer.js +15 -8
- package/src/sap/m/RatingIndicator.js +4 -3
- package/src/sap/m/ResponsivePopover.js +13 -7
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +1 -1
- package/src/sap/m/SelectDialog.js +5 -7
- package/src/sap/m/SelectDialogBase.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +1 -1
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +2 -2
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +3 -2
- 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 +7 -9
- 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 +4 -2
- package/src/sap/m/StandardDynamicDateOption.js +1 -1
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +1 -1
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +5 -5
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +10 -4
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +2 -2
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +35 -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 +5 -7
- 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 +4 -4
- 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/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/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +1 -1
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarRenderer.js +8 -0
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +17 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +1 -1
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ValueStateHeader.js +9 -4
- package/src/sap/m/VariantItem.js +99 -27
- package/src/sap/m/VariantManagement.js +196 -90
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +44 -44
- 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 +6 -6
- 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/designtime/IconTabFilter.designtime.js +1 -1
- package/src/sap/m/designtime/VariantManagement.designtime.js +0 -6
- package/src/sap/m/designtime/messagebundle_mk.properties +182 -0
- package/src/sap/m/designtime/messagebundle_sh.properties +3 -3
- package/src/sap/m/flexibility/EngineFlex.js +5 -0
- package/src/sap/m/inputUtils/highlightItemsWithContains.js +82 -0
- package/src/sap/m/library.js +76 -136
- package/src/sap/m/messagebundle.properties +37 -6
- package/src/sap/m/messagebundle_ar.properties +46 -2
- package/src/sap/m/messagebundle_bg.properties +49 -5
- package/src/sap/m/messagebundle_ca.properties +47 -3
- package/src/sap/m/messagebundle_cs.properties +46 -2
- package/src/sap/m/messagebundle_cy.properties +46 -2
- package/src/sap/m/messagebundle_da.properties +46 -2
- package/src/sap/m/messagebundle_de.properties +46 -2
- package/src/sap/m/messagebundle_el.properties +48 -4
- package/src/sap/m/messagebundle_en.properties +23 -6
- package/src/sap/m/messagebundle_en_GB.properties +46 -2
- package/src/sap/m/messagebundle_es.properties +46 -2
- package/src/sap/m/messagebundle_es_MX.properties +46 -2
- package/src/sap/m/messagebundle_et.properties +44 -0
- package/src/sap/m/messagebundle_fi.properties +46 -2
- package/src/sap/m/messagebundle_fr.properties +46 -2
- package/src/sap/m/messagebundle_fr_CA.properties +46 -2
- package/src/sap/m/messagebundle_hi.properties +48 -4
- package/src/sap/m/messagebundle_hr.properties +46 -2
- package/src/sap/m/messagebundle_hu.properties +51 -7
- package/src/sap/m/messagebundle_id.properties +48 -4
- package/src/sap/m/messagebundle_it.properties +44 -0
- package/src/sap/m/messagebundle_iw.properties +46 -2
- package/src/sap/m/messagebundle_ja.properties +44 -0
- package/src/sap/m/messagebundle_kk.properties +60 -16
- package/src/sap/m/messagebundle_ko.properties +44 -0
- package/src/sap/m/messagebundle_lt.properties +46 -2
- package/src/sap/m/messagebundle_lv.properties +57 -13
- package/src/sap/m/messagebundle_mk.properties +1869 -0
- package/src/sap/m/messagebundle_ms.properties +46 -2
- package/src/sap/m/messagebundle_nl.properties +44 -0
- package/src/sap/m/messagebundle_no.properties +47 -3
- package/src/sap/m/messagebundle_pl.properties +46 -2
- package/src/sap/m/messagebundle_pt.properties +44 -0
- package/src/sap/m/messagebundle_pt_PT.properties +44 -0
- package/src/sap/m/messagebundle_ro.properties +46 -2
- package/src/sap/m/messagebundle_ru.properties +48 -4
- package/src/sap/m/messagebundle_sh.properties +149 -105
- package/src/sap/m/messagebundle_sk.properties +46 -2
- package/src/sap/m/messagebundle_sl.properties +62 -18
- package/src/sap/m/messagebundle_sv.properties +50 -6
- package/src/sap/m/messagebundle_th.properties +44 -0
- package/src/sap/m/messagebundle_tr.properties +49 -5
- package/src/sap/m/messagebundle_uk.properties +59 -15
- package/src/sap/m/messagebundle_vi.properties +46 -2
- package/src/sap/m/messagebundle_zh_CN.properties +44 -0
- package/src/sap/m/messagebundle_zh_TW.properties +46 -2
- 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 +13 -3
- package/src/sap/m/p13n/Container.js +1 -1
- package/src/sap/m/p13n/Engine.js +1 -1
- package/src/sap/m/p13n/FlexUtil.js +0 -41
- 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 +16 -1
- package/src/sap/m/p13n/QueryPanel.js +1 -1
- package/src/sap/m/p13n/SelectionController.js +457 -423
- 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 +4 -3
- package/src/sap/m/p13n/handler/xConfigHandler.js +18 -5
- package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
- package/src/sap/m/p13n/modules/UIManager.js +1 -1
- package/src/sap/m/p13n/modules/xConfigAPI.js +1 -1
- package/src/sap/m/plugins/CellSelector.js +172 -153
- package/src/sap/m/plugins/ColumnResizer.js +9 -2
- package/src/sap/m/plugins/CopyProvider.js +21 -10
- package/src/sap/m/plugins/DataStateIndicator.js +1 -1
- package/src/sap/m/plugins/PasteProvider.js +1 -1
- package/src/sap/m/plugins/PluginBase.js +1 -1
- package/src/sap/m/routing/Target.js +3 -3
- package/src/sap/m/routing/Targets.js +3 -3
- 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/ColumnWidthController.js +177 -0
- 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 +17 -13
- 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 +5 -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 +2 -2
- package/src/sap/m/table/columnmenu/QuickTotal.js +5 -1
- package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
- package/src/sap/m/themes/base/Avatar.less +0 -1
- package/src/sap/m/themes/base/BarBase.less +1 -1
- package/src/sap/m/themes/base/BusyIndicator.less +0 -10
- package/src/sap/m/themes/base/ExpandableText.less +6 -0
- package/src/sap/m/themes/base/GenericTile.less +36 -0
- package/src/sap/m/themes/base/LinkTileContent.less +17 -0
- package/src/sap/m/themes/base/MenuButton.less +1 -1
- package/src/sap/m/themes/base/NotificationListBase.less +3 -3
- package/src/sap/m/themes/base/ObjectStatus.less +241 -1
- package/src/sap/m/themes/base/RadioButton.less +1 -1
- package/src/sap/m/themes/base/SearchField.less +2 -1
- package/src/sap/m/themes/base/SplitButton.less +0 -1
- package/src/sap/m/themes/base/Text.less +4 -1
- package/src/sap/m/themes/base/Toolbar.less +7 -14
- package/src/sap/m/themes/base/ValueStateHeader.less +4 -0
- package/src/sap/m/themes/base/library.source.less +1 -0
- package/src/sap/m/upload/ActionsPlaceholder.js +49 -0
- package/src/sap/m/upload/Column.js +58 -0
- package/src/sap/m/upload/FilePreviewDialog.js +22 -3
- package/src/sap/m/upload/FilterPanel.js +280 -0
- package/src/sap/m/upload/UploadSet.js +11 -6
- package/src/sap/m/upload/UploadSetItem.js +6 -5
- package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
- package/src/sap/m/upload/UploadSetwithTable.js +487 -93
- package/src/sap/m/upload/UploadSetwithTableItem.js +26 -11
- package/src/sap/m/upload/Uploader.js +3 -0
- package/src/sap/m/upload/UploaderTableItem.js +4 -1
- package/src/sap/m/upload/p13n/PersManager.js +251 -0
- package/src/sap/m/upload/p13n/flexibility/UploadSetwithTable.flexibility.js +32 -0
- package/src/sap/m/upload/p13n/handlers/BaseConfigHandler.js +44 -0
- package/src/sap/m/upload/p13n/handlers/ChangeHandler.js +98 -0
- package/src/sap/m/upload/p13n/handlers/ColumnConfigHandler.js +57 -0
- package/src/sap/m/upload/p13n/handlers/ColumnsStateChangeHandler.js +43 -0
- package/src/sap/m/upload/p13n/handlers/FilterConfigHandler.js +71 -0
- package/src/sap/m/upload/p13n/handlers/FilterStateChangeHandler.js +65 -0
- package/src/sap/m/upload/p13n/handlers/GroupConfigHandler.js +57 -0
- package/src/sap/m/upload/p13n/handlers/GroupStateChangeHandler.js +46 -0
- package/src/sap/m/upload/p13n/handlers/SortConfigHandler.js +57 -0
- package/src/sap/m/upload/p13n/handlers/SortStateChangeHandler.js +48 -0
- package/src/sap/m/upload/p13n/mediator/BaseMediator.js +183 -0
- package/src/sap/m/upload/p13n/mediator/ColumnsMediator.js +210 -0
- package/src/sap/m/upload/p13n/mediator/FilterMediator.js +196 -0
- package/src/sap/m/upload/p13n/mediator/GroupMediator.js +192 -0
- package/src/sap/m/upload/p13n/mediator/SortMediator.js +200 -0
- package/src/sap/m/upload/p13n/modules/CustomDataConfig.js +100 -0
- package/src/sap/m/upload/p13n/modules/PersPopupManager.js +76 -0
|
@@ -122,13 +122,13 @@ sap.ui.define([
|
|
|
122
122
|
* Constructor for a new <code>VariantManagement</code>.
|
|
123
123
|
* @param {string} [sId] - ID for the new control, generated automatically if no ID is given
|
|
124
124
|
* @param {object} [mSettings] - Initial settings for the new control
|
|
125
|
-
* @class Can be used to manage variants. You can use this control
|
|
126
|
-
*
|
|
125
|
+
* @class Can be used to manage variants. You can use this control to create and maintain personalization changes.
|
|
126
|
+
* The persistency and retrieval of such changes has to be handled by the hosting application.<br>
|
|
127
|
+
* <b>Note:</b>
|
|
128
|
+
* On the user interface, variants are generally referred to as "views".
|
|
127
129
|
* @extends sap.ui.core.Control
|
|
128
130
|
* @constructor
|
|
129
|
-
* @
|
|
130
|
-
* @private
|
|
131
|
-
* @ui5-restricted sap.ui.fl, sap.ui.rta, sap.ui.comp
|
|
131
|
+
* @public
|
|
132
132
|
* @since 1.103
|
|
133
133
|
* @alias sap.m.VariantManagement
|
|
134
134
|
*/
|
|
@@ -179,7 +179,9 @@ sap.ui.define([
|
|
|
179
179
|
},
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
|
-
* Indicates that contexts functionality is supported
|
|
182
|
+
* Indicates that contexts functionality is supported.
|
|
183
|
+
* <b>Note:</b>
|
|
184
|
+
* This property is used internally for SAPUI5 Adaptation scenario.
|
|
183
185
|
*/
|
|
184
186
|
supportContexts: {
|
|
185
187
|
type: "boolean",
|
|
@@ -224,7 +226,7 @@ sap.ui.define([
|
|
|
224
226
|
},
|
|
225
227
|
|
|
226
228
|
/**
|
|
227
|
-
* Indicates
|
|
229
|
+
* Indicates if the buttons and the complete footer in the <i>My Views</i> dialog are visible.
|
|
228
230
|
*/
|
|
229
231
|
showFooter: {
|
|
230
232
|
type: "boolean",
|
|
@@ -233,7 +235,7 @@ sap.ui.define([
|
|
|
233
235
|
},
|
|
234
236
|
|
|
235
237
|
/**
|
|
236
|
-
* Indicates the
|
|
238
|
+
* Indicates if the current variant is modified.
|
|
237
239
|
*/
|
|
238
240
|
modified: {
|
|
239
241
|
type: "boolean",
|
|
@@ -242,7 +244,7 @@ sap.ui.define([
|
|
|
242
244
|
},
|
|
243
245
|
|
|
244
246
|
/**
|
|
245
|
-
*
|
|
247
|
+
* The title in the 'My Views' popover.
|
|
246
248
|
*/
|
|
247
249
|
popoverTitle: {
|
|
248
250
|
type: "string",
|
|
@@ -260,25 +262,6 @@ sap.ui.define([
|
|
|
260
262
|
defaultValue: false
|
|
261
263
|
},
|
|
262
264
|
|
|
263
|
-
/**
|
|
264
|
-
* Determines the behavior for Apply Automatically if the standard variant is marked as the default variant.
|
|
265
|
-
*
|
|
266
|
-
*/
|
|
267
|
-
executeOnSelectionForStandardDefault: {
|
|
268
|
-
type: "boolean",
|
|
269
|
-
group: "Misc",
|
|
270
|
-
defaultValue: false
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Defines the Apply Automatically text for the standard variant in the Manage Views dialog if the application controls this behavior.
|
|
275
|
-
*/
|
|
276
|
-
displayTextForExecuteOnSelectionForStandardVariant: {
|
|
277
|
-
type: "string",
|
|
278
|
-
group: "Misc",
|
|
279
|
-
defaultValue: ""
|
|
280
|
-
},
|
|
281
|
-
|
|
282
265
|
/**
|
|
283
266
|
* Semantic level of the header.
|
|
284
267
|
* For more information, see {@link sap.m.Title#setLevel}.
|
|
@@ -312,12 +295,22 @@ sap.ui.define([
|
|
|
312
295
|
defaultValue: "100%"
|
|
313
296
|
},
|
|
314
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Defines the Apply Automatically text for the standard variant in the <i>Manage Views</i> dialog if the application controls this behavior.
|
|
300
|
+
*/
|
|
301
|
+
_displayTextForExecuteOnSelectionForStandardVariant: {
|
|
302
|
+
type: "string",
|
|
303
|
+
group: "Misc",
|
|
304
|
+
defaultValue: "",
|
|
305
|
+
visibility: "hidden"
|
|
306
|
+
},
|
|
307
|
+
|
|
315
308
|
/**
|
|
316
309
|
* Renders the name of the variant as a text.
|
|
317
310
|
* The name of the variant is usually rendered as {@link sap.m.Title}
|
|
318
311
|
* but there are use cases - related to accessibility requirements - where the
|
|
319
312
|
* rendering should be done using {@link sap.m.Text} instead.
|
|
320
|
-
* <b>Note:</b
|
|
313
|
+
* <b>Note:</b>
|
|
321
314
|
* If the name of the variant is rendered as <code>sap.m.Text</code>, all the <code>sap.m.Title</code>-
|
|
322
315
|
* specific information (<code>headerLevel</code> and <code>titleStyle</code>) is ignored.
|
|
323
316
|
*
|
|
@@ -339,6 +332,16 @@ sap.ui.define([
|
|
|
339
332
|
group: "Misc",
|
|
340
333
|
defaultValue: true,
|
|
341
334
|
visibility: "hidden"
|
|
335
|
+
},
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Defines the standard variant key.
|
|
339
|
+
*/
|
|
340
|
+
_standardKey: {
|
|
341
|
+
type: "string",
|
|
342
|
+
group: "Misc",
|
|
343
|
+
defaultValue: "",
|
|
344
|
+
visibility: "hidden"
|
|
342
345
|
}
|
|
343
346
|
},
|
|
344
347
|
defaultAggregation: "items",
|
|
@@ -356,7 +359,7 @@ sap.ui.define([
|
|
|
356
359
|
events: {
|
|
357
360
|
|
|
358
361
|
/**
|
|
359
|
-
* This event is fired when
|
|
362
|
+
* This event is fired when either <i>Save As</i> is triggered from the <i>Save View</i> dialog, or <i>Save</i> from <i>My Views</i>.
|
|
360
363
|
*/
|
|
361
364
|
save: {
|
|
362
365
|
parameters: {
|
|
@@ -368,14 +371,15 @@ sap.ui.define([
|
|
|
368
371
|
},
|
|
369
372
|
|
|
370
373
|
/**
|
|
371
|
-
* Indicates if an existing variant is
|
|
374
|
+
* Indicates if an existing variant is updated or if a new variant is created.
|
|
375
|
+
* Basically 'Save' operation leads to overwrite <code>true</code>, while 'Save As' leads to overwrite <code>false</code>.
|
|
372
376
|
*/
|
|
373
377
|
overwrite: {
|
|
374
378
|
type: "boolean"
|
|
375
379
|
},
|
|
376
380
|
|
|
377
381
|
/**
|
|
378
|
-
* Variant key
|
|
382
|
+
* Variant key. This property is only set, when <code>overwrite</code> is set to <code>true</code>.
|
|
379
383
|
*/
|
|
380
384
|
key: {
|
|
381
385
|
type: "string"
|
|
@@ -402,9 +406,17 @@ sap.ui.define([
|
|
|
402
406
|
type: "boolean"
|
|
403
407
|
},
|
|
404
408
|
|
|
409
|
+
/**
|
|
410
|
+
* Array describing the contexts.
|
|
411
|
+
*/
|
|
412
|
+
contexts: {
|
|
413
|
+
type: "object[]"
|
|
414
|
+
},
|
|
415
|
+
|
|
405
416
|
/**
|
|
406
417
|
* Indicates the check box state for 'Create Tile'.
|
|
407
|
-
* <
|
|
418
|
+
* <b>Note:</b>
|
|
419
|
+
* This event parameter is used only internally.
|
|
408
420
|
*/
|
|
409
421
|
tile: {
|
|
410
422
|
type: "boolean"
|
|
@@ -423,9 +435,9 @@ sap.ui.define([
|
|
|
423
435
|
manageCancel: {},
|
|
424
436
|
|
|
425
437
|
/**
|
|
426
|
-
* This event is fired when users apply changes
|
|
438
|
+
* This event is fired when users apply changes variant information in the <i>Manage Views</i> dialog.
|
|
439
|
+
* Some of the parameters may be ommitted, depending on user selection.
|
|
427
440
|
*/
|
|
428
|
-
|
|
429
441
|
manage: {
|
|
430
442
|
parameters: {
|
|
431
443
|
/**
|
|
@@ -443,14 +455,14 @@ sap.ui.define([
|
|
|
443
455
|
},
|
|
444
456
|
|
|
445
457
|
/**
|
|
446
|
-
* List of variant keys and the associated Execute on Selection indicator
|
|
458
|
+
* List of variant keys and the associated Execute on Selection indicator. Each entry contains a 'key' - the variant key and a 'exe' - flag describing the intention
|
|
447
459
|
*/
|
|
448
460
|
exe: {
|
|
449
461
|
type: "object[]"
|
|
450
462
|
},
|
|
451
463
|
|
|
452
464
|
/**
|
|
453
|
-
* List of variant keys and the associated favorite indicator
|
|
465
|
+
* List of variant keys and the associated favorite indicator. Each entry contains a 'key' - the variant key and a 'visible' - flag describing the intention
|
|
454
466
|
*/
|
|
455
467
|
fav: {
|
|
456
468
|
type: "object[]"
|
|
@@ -461,6 +473,13 @@ sap.ui.define([
|
|
|
461
473
|
*/
|
|
462
474
|
def: {
|
|
463
475
|
type: "string"
|
|
476
|
+
},
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* List of variant keys and the associated contexts array. Each entry contains a 'key' - the variant key and a 'contexts' - array describing the contexts
|
|
480
|
+
*/
|
|
481
|
+
contexts: {
|
|
482
|
+
type: "object[]"
|
|
464
483
|
}
|
|
465
484
|
}
|
|
466
485
|
},
|
|
@@ -510,6 +529,7 @@ sap.ui.define([
|
|
|
510
529
|
* Constructs and initializes the <code>VariantManagement</code> control.
|
|
511
530
|
*/
|
|
512
531
|
VariantManagement.prototype.init = function() {
|
|
532
|
+
Control.prototype.init.apply(this, arguments);
|
|
513
533
|
|
|
514
534
|
this._oRb = sap.ui.getCore().getLibraryResourceBundle("sap.m");
|
|
515
535
|
|
|
@@ -536,8 +556,8 @@ sap.ui.define([
|
|
|
536
556
|
|
|
537
557
|
switch (oChanges.mutation) {
|
|
538
558
|
case "insert":
|
|
539
|
-
if (!this._oObserver.isObserved(oVariantItem, {properties: ["title"]})) {
|
|
540
|
-
this._oObserver.observe(oVariantItem, {properties: ["title"]});
|
|
559
|
+
if (!this._oObserver.isObserved(oVariantItem, {properties: ["title", "favorite", "executeOnSelect", "contexts"]})) {
|
|
560
|
+
this._oObserver.observe(oVariantItem, {properties: ["title", "favorite", "executeOnSelect", "contexts"]});
|
|
541
561
|
}
|
|
542
562
|
|
|
543
563
|
if (this.getSelectedKey() === oVariantItem.getKey()) {
|
|
@@ -545,8 +565,8 @@ sap.ui.define([
|
|
|
545
565
|
}
|
|
546
566
|
break;
|
|
547
567
|
case "remove":
|
|
548
|
-
if (this._oObserver.isObserved(oVariantItem, {properties: ["title"]})) {
|
|
549
|
-
this._oObserver.unobserve(oVariantItem, {properties: ["title"]});
|
|
568
|
+
if (this._oObserver.isObserved(oVariantItem, {properties: ["title", "favorite", "executeOnSelect", "contexts"]})) {
|
|
569
|
+
this._oObserver.unobserve(oVariantItem, {properties: ["title", "favorite", "executeOnSelect", "contexts"]});
|
|
550
570
|
}
|
|
551
571
|
break;
|
|
552
572
|
default:
|
|
@@ -561,6 +581,18 @@ sap.ui.define([
|
|
|
561
581
|
if (this.getSelectedKey() === oVariantItem.getKey()) {
|
|
562
582
|
this.refreshTitle();
|
|
563
583
|
}
|
|
584
|
+
|
|
585
|
+
if (!this.oManagementTable || (this.oManagementTable.getItems && this.oManagementTable.getItems().length === 0)) {
|
|
586
|
+
if (oChanges.name === "title") {
|
|
587
|
+
oVariantItem._setOriginalTitle(oChanges.current);
|
|
588
|
+
} else if (oChanges.name === "favorite") {
|
|
589
|
+
oVariantItem._setOriginalFavorite(oChanges.current);
|
|
590
|
+
} else if (oChanges.name === "executeOnSelect") {
|
|
591
|
+
oVariantItem._setOriginalExecuteOnSelect(oChanges.current);
|
|
592
|
+
} else if (oChanges.name === "contexts") {
|
|
593
|
+
oVariantItem._setOriginalContexts(oChanges.current);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
564
596
|
}
|
|
565
597
|
}
|
|
566
598
|
}
|
|
@@ -573,6 +605,26 @@ sap.ui.define([
|
|
|
573
605
|
this._initializeControl();
|
|
574
606
|
};
|
|
575
607
|
|
|
608
|
+
/**
|
|
609
|
+
* Special handling of the rendering the apply automatically control in <i>Manage Views</i>
|
|
610
|
+
* @returns {string} Value of the private property
|
|
611
|
+
* @private
|
|
612
|
+
* @restricted sap.ui.mdc, sap.ui.comp
|
|
613
|
+
*/
|
|
614
|
+
VariantManagement.prototype.getDisplayTextForExecuteOnSelectionForStandardVariant = function() {
|
|
615
|
+
return this.getProperty("_displayTextForExecuteOnSelectionForStandardVariant");
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* Special handling of the rendering the apply automatically control in <i>Manage Views</i>
|
|
619
|
+
* @param {string} sValue to be displayed
|
|
620
|
+
* @returns {string} the current instance
|
|
621
|
+
* @private
|
|
622
|
+
* @restricted sap.ui.mdc, sap.ui.comp
|
|
623
|
+
*/
|
|
624
|
+
VariantManagement.prototype.setDisplayTextForExecuteOnSelectionForStandardVariant = function(sValue) {
|
|
625
|
+
this.setProperty("_displayTextForExecuteOnSelectionForStandardVariant", sValue);
|
|
626
|
+
return this;
|
|
627
|
+
};
|
|
576
628
|
/**
|
|
577
629
|
* Special handling of the rendering of this control.
|
|
578
630
|
* @param {boolean} bValue defines the intended rendering
|
|
@@ -821,7 +873,6 @@ sap.ui.define([
|
|
|
821
873
|
return this.getItems();
|
|
822
874
|
};
|
|
823
875
|
|
|
824
|
-
|
|
825
876
|
VariantManagement.prototype.getSelectedVariantText = function(sKey) {
|
|
826
877
|
var oItem = this._getItemByKey(sKey);
|
|
827
878
|
|
|
@@ -832,10 +883,44 @@ sap.ui.define([
|
|
|
832
883
|
return "";
|
|
833
884
|
};
|
|
834
885
|
|
|
886
|
+
/**
|
|
887
|
+
* Retrieves for the controls {@link sap.ui.comp.SmartVariantManagement} and {@link sap.ui.fl.variants.VariantManagement} the <i>Standard</i> variant.
|
|
888
|
+
* For all other scenarios the first visible variant will be returned, or <code>null</code> if there are none.
|
|
889
|
+
* @public
|
|
890
|
+
* @returns {(string | null)} The key of either the standard variant or the first visible variant or <code>null</code>.
|
|
891
|
+
*/
|
|
835
892
|
VariantManagement.prototype.getStandardVariantKey = function() {
|
|
893
|
+
var sKey = this.getProperty("_standardKey");
|
|
894
|
+
if (!sKey) {
|
|
895
|
+
return this._getFirstVisibleVariant();
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
return sKey;
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Assignes the key of the <i>Standard</i> variant.
|
|
903
|
+
*
|
|
904
|
+
* @private
|
|
905
|
+
* @restricted sap.ui.mdc, sap.ui.comp
|
|
906
|
+
* @param {string} sValue describing the key of the standard variant
|
|
907
|
+
*/
|
|
908
|
+
VariantManagement.prototype.setStandardVariantKey = function(sValue) {
|
|
909
|
+
this.setProperty("_standardKey", sValue);
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
VariantManagement.prototype._getFirstVisibleVariant = function() {
|
|
836
913
|
var aItems = this._getItems();
|
|
837
|
-
|
|
838
|
-
|
|
914
|
+
for (var i = 0; i < aItems.length; i++) {
|
|
915
|
+
if (aItems[i].getVisible()) {
|
|
916
|
+
if (this.getSupportFavorites()) {
|
|
917
|
+
if (aItems[i].getFavorite()) {
|
|
918
|
+
return aItems[i].getKey();
|
|
919
|
+
}
|
|
920
|
+
} else {
|
|
921
|
+
return aItems[i].getKey();
|
|
922
|
+
}
|
|
923
|
+
}
|
|
839
924
|
}
|
|
840
925
|
|
|
841
926
|
return null;
|
|
@@ -880,6 +965,15 @@ sap.ui.define([
|
|
|
880
965
|
return this._aRenamedItems;
|
|
881
966
|
};
|
|
882
967
|
|
|
968
|
+
/**
|
|
969
|
+
* Retrieves a variant item by its key.
|
|
970
|
+
* @public
|
|
971
|
+
* @param {string} sKey of the item
|
|
972
|
+
* @returns {(sap.m.VariantItem|null)} For a specific key; <code>null</code> if no matching item was found
|
|
973
|
+
*/
|
|
974
|
+
VariantManagement.prototype.getItemByKey = function(sKey) {
|
|
975
|
+
return this._getItemByKey(sKey);
|
|
976
|
+
};
|
|
883
977
|
|
|
884
978
|
VariantManagement.prototype._getItemByKey = function(sKey) {
|
|
885
979
|
var oItem = null;
|
|
@@ -1630,7 +1724,6 @@ sap.ui.define([
|
|
|
1630
1724
|
return false;
|
|
1631
1725
|
}
|
|
1632
1726
|
|
|
1633
|
-
|
|
1634
1727
|
var mContexts = this._getContextInfoChanges();
|
|
1635
1728
|
var bIsRestricted = this._isRestricted(mContexts);
|
|
1636
1729
|
if (bIsRestricted && this.oDefault.getSelected()) {
|
|
@@ -1667,6 +1760,8 @@ sap.ui.define([
|
|
|
1667
1760
|
oObj.tile = this.oCreateTile.getSelected();
|
|
1668
1761
|
}
|
|
1669
1762
|
|
|
1763
|
+
this.destroyManageDialog();
|
|
1764
|
+
|
|
1670
1765
|
this.fireSave(oObj);
|
|
1671
1766
|
|
|
1672
1767
|
return true;
|
|
@@ -1796,7 +1891,7 @@ sap.ui.define([
|
|
|
1796
1891
|
|
|
1797
1892
|
oManagementTable.getBinding("items").filter(aFilters);
|
|
1798
1893
|
|
|
1799
|
-
this.
|
|
1894
|
+
this._bRebindRequired = true;
|
|
1800
1895
|
};
|
|
1801
1896
|
|
|
1802
1897
|
VariantManagement.prototype.getManageDialog = function() {
|
|
@@ -1902,7 +1997,9 @@ sap.ui.define([
|
|
|
1902
1997
|
type: ButtonType.Emphasized,
|
|
1903
1998
|
press: function() {
|
|
1904
1999
|
this._handleManageSavePressed();
|
|
1905
|
-
|
|
2000
|
+
if (this.oManagementDialog) {
|
|
2001
|
+
this.oManagementDialog.close();
|
|
2002
|
+
}
|
|
1906
2003
|
}.bind(this)
|
|
1907
2004
|
});
|
|
1908
2005
|
|
|
@@ -1973,7 +2070,7 @@ sap.ui.define([
|
|
|
1973
2070
|
filters: this._getVisibleFilter()
|
|
1974
2071
|
});
|
|
1975
2072
|
|
|
1976
|
-
this.
|
|
2073
|
+
this._bRebindRequired = false;
|
|
1977
2074
|
}
|
|
1978
2075
|
};
|
|
1979
2076
|
|
|
@@ -2057,7 +2154,7 @@ sap.ui.define([
|
|
|
2057
2154
|
value: '{' + sModelName + ">title}"
|
|
2058
2155
|
});
|
|
2059
2156
|
|
|
2060
|
-
if (oItem.getTitle() !== oItem.
|
|
2157
|
+
if (oItem.getTitle() !== oItem._getOriginalTitle()) {
|
|
2061
2158
|
this._verifyVariantNameConstraints(oNameControl, oItem.getKey(), oItem.getTitle());
|
|
2062
2159
|
}
|
|
2063
2160
|
|
|
@@ -2108,7 +2205,7 @@ sap.ui.define([
|
|
|
2108
2205
|
if (this.getDisplayTextForExecuteOnSelectionForStandardVariant() && (this.getStandardVariantKey() === oItem.getKey())) {
|
|
2109
2206
|
oExecuteOnSelectCtrl = new CheckBox(sIdPrefix + "-exe-" + nPos, {
|
|
2110
2207
|
wrapping: true,
|
|
2111
|
-
text: '{' + sModelName + ">/
|
|
2208
|
+
text: '{' + sModelName + ">/_displayTextForExecuteOnSelectionForStandardVariant}",
|
|
2112
2209
|
selected: '{' + sModelName + ">executeOnSelect}"
|
|
2113
2210
|
});
|
|
2114
2211
|
} else {
|
|
@@ -2215,10 +2312,19 @@ sap.ui.define([
|
|
|
2215
2312
|
// Since the filtered items and the result after the real deletion are identical, no change is detected. Based on this, the context on the table is
|
|
2216
2313
|
// not invalidated....
|
|
2217
2314
|
// WA: Always do the binding while opening the dialog.
|
|
2218
|
-
if (this.
|
|
2219
|
-
this.
|
|
2220
|
-
|
|
2221
|
-
this.oManagementTable.getBinding("items")
|
|
2315
|
+
if (this._bRebindRequired) {
|
|
2316
|
+
this._bRebindRequired = false;
|
|
2317
|
+
|
|
2318
|
+
if (!this.oManagementTable.getBinding("items")) {
|
|
2319
|
+
this.oManagementTable.bindAggregation("items", {
|
|
2320
|
+
path: "/items",
|
|
2321
|
+
model: "$mVariants",
|
|
2322
|
+
factory: this._templateFactoryManagementDialog.bind(this),
|
|
2323
|
+
filters: this._getVisibleFilter()
|
|
2324
|
+
});
|
|
2325
|
+
} else {
|
|
2326
|
+
this.oManagementTable.getBinding("items").filter(this._getVisibleFilter());
|
|
2327
|
+
}
|
|
2222
2328
|
}
|
|
2223
2329
|
|
|
2224
2330
|
this.oManagementDialog.open();
|
|
@@ -2287,8 +2393,6 @@ sap.ui.define([
|
|
|
2287
2393
|
VariantManagement.prototype._handleManageCancelPressed = function() {
|
|
2288
2394
|
|
|
2289
2395
|
if (this._getDeletedItems().length > 0) {
|
|
2290
|
-
this._bDeleteOccured = true;
|
|
2291
|
-
|
|
2292
2396
|
this._getDeletedItems().forEach(function(sKey) {
|
|
2293
2397
|
var oListItem = this._getRowForKey(sKey);
|
|
2294
2398
|
if (oListItem && !oListItem.getVisible()) {
|
|
@@ -2299,12 +2403,7 @@ sap.ui.define([
|
|
|
2299
2403
|
this._clearDeletedItems();
|
|
2300
2404
|
}
|
|
2301
2405
|
|
|
2302
|
-
this.
|
|
2303
|
-
oItem.setTitle(oItem.getOriginalTitle());
|
|
2304
|
-
oItem.setFavorite(oItem.getOriginalFavorite());
|
|
2305
|
-
oItem.setExecuteOnSelect(oItem.getOriginalExecuteOnSelect());
|
|
2306
|
-
oItem.setContexts(oItem.getOriginalContexts());
|
|
2307
|
-
});
|
|
2406
|
+
this._resetToOriginal();
|
|
2308
2407
|
|
|
2309
2408
|
if (this._sOriginalDefaultKey !== this.getDefaultKey()) {
|
|
2310
2409
|
var sPrevDefaultKey = this.getDefaultKey();
|
|
@@ -2321,6 +2420,10 @@ sap.ui.define([
|
|
|
2321
2420
|
|
|
2322
2421
|
this._clearRenamedItems();
|
|
2323
2422
|
|
|
2423
|
+
this._bRebindRequired = true;
|
|
2424
|
+
this.oManagementTable.unbindItems();
|
|
2425
|
+
|
|
2426
|
+
|
|
2324
2427
|
if (this._oManagedObjectModel) {
|
|
2325
2428
|
this._oManagedObjectModel.checkUpdate();
|
|
2326
2429
|
}
|
|
@@ -2397,25 +2500,28 @@ sap.ui.define([
|
|
|
2397
2500
|
oVariantInfo.deleted.push(oItem.getKey());
|
|
2398
2501
|
}
|
|
2399
2502
|
|
|
2400
|
-
if (oItem.getVisible() && (oItem.getFavorite() !== oItem.
|
|
2503
|
+
if (oItem.getVisible() && (oItem.getFavorite() !== oItem._getOriginalFavorite())) {
|
|
2401
2504
|
if (!oVariantInfo.fav) {
|
|
2402
2505
|
oVariantInfo.fav = [];
|
|
2403
2506
|
}
|
|
2404
2507
|
oVariantInfo.fav.push({ key: oItem.getKey(), visible: oItem.getFavorite()});
|
|
2508
|
+
oItem._setOriginalFavorite(oItem.getFavorite());
|
|
2405
2509
|
}
|
|
2406
2510
|
|
|
2407
|
-
if (oItem.getVisible() && (oItem.getTitle() !== oItem.
|
|
2511
|
+
if (oItem.getVisible() && (oItem.getTitle() !== oItem._getOriginalTitle())) {
|
|
2408
2512
|
if (!oVariantInfo.renamed) {
|
|
2409
2513
|
oVariantInfo.renamed = [];
|
|
2410
2514
|
}
|
|
2411
2515
|
oVariantInfo.renamed.push({ key: oItem.getKey(), name: oItem.getTitle()});
|
|
2516
|
+
oItem._setOriginalTitle(oItem.getTitle());
|
|
2412
2517
|
}
|
|
2413
2518
|
|
|
2414
|
-
if (oItem.getVisible() && (oItem.getExecuteOnSelect() !== oItem.
|
|
2519
|
+
if (oItem.getVisible() && (oItem.getExecuteOnSelect() !== oItem._getOriginalExecuteOnSelect())) {
|
|
2415
2520
|
if (!oVariantInfo.exe) {
|
|
2416
2521
|
oVariantInfo.exe = [];
|
|
2417
2522
|
}
|
|
2418
2523
|
oVariantInfo.exe.push({ key: oItem.getKey(), exe: oItem.getExecuteOnSelect()});
|
|
2524
|
+
oItem._setOriginalExecuteOnSelect(oItem.getExecuteOnSelect());
|
|
2419
2525
|
}
|
|
2420
2526
|
|
|
2421
2527
|
if (oItem.getVisible() && this._hasContextsChanged(oItem)) {
|
|
@@ -2423,6 +2529,7 @@ sap.ui.define([
|
|
|
2423
2529
|
oVariantInfo.contexts = [];
|
|
2424
2530
|
}
|
|
2425
2531
|
oVariantInfo.contexts.push({ key: oItem.getKey(), contexts: oItem.getContexts()});
|
|
2532
|
+
oItem._setOriginalContexts(oItem.getContexts());
|
|
2426
2533
|
}
|
|
2427
2534
|
|
|
2428
2535
|
}.bind(this));
|
|
@@ -2430,8 +2537,17 @@ sap.ui.define([
|
|
|
2430
2537
|
return oVariantInfo;
|
|
2431
2538
|
};
|
|
2432
2539
|
|
|
2540
|
+
VariantManagement.prototype._resetToOriginal = function() {
|
|
2541
|
+
this.getItems().forEach(function(oItem) {
|
|
2542
|
+
oItem.setTitle(oItem._getOriginalTitle());
|
|
2543
|
+
oItem.setFavorite(oItem._getOriginalFavorite());
|
|
2544
|
+
oItem.setExecuteOnSelect(oItem._getOriginalExecuteOnSelect());
|
|
2545
|
+
oItem.setContexts(oItem._getOriginalContexts());
|
|
2546
|
+
});
|
|
2547
|
+
};
|
|
2548
|
+
|
|
2433
2549
|
VariantManagement.prototype._hasContextsChanged = function(oItem) {
|
|
2434
|
-
return (JSON.stringify(oItem.getContexts()) !== JSON.stringify(oItem.
|
|
2550
|
+
return (JSON.stringify(oItem.getContexts()) !== JSON.stringify(oItem._getOriginalContexts()));
|
|
2435
2551
|
};
|
|
2436
2552
|
|
|
2437
2553
|
VariantManagement.prototype._handleManageSavePressed = function() {
|
|
@@ -2439,41 +2555,30 @@ sap.ui.define([
|
|
|
2439
2555
|
return;
|
|
2440
2556
|
}
|
|
2441
2557
|
|
|
2442
|
-
this.oManagementDialog.close();
|
|
2443
2558
|
if (this._getDeletedItems().length > 0) {
|
|
2444
|
-
this.
|
|
2445
|
-
|
|
2559
|
+
this._bRebindRequired = true;
|
|
2446
2560
|
this._getDeletedItems().forEach(function(sKey) {
|
|
2447
2561
|
var oItem = this._getItemByKey(sKey);
|
|
2448
2562
|
if (oItem) {
|
|
2449
2563
|
oItem.setVisible(false);
|
|
2450
2564
|
}
|
|
2451
2565
|
}.bind(this));
|
|
2452
|
-
|
|
2453
|
-
// this._getDeletedItems().some(function(sItemKey) {
|
|
2454
|
-
// if (sItemKey === this.getSelectedKey()) {
|
|
2455
|
-
// var sKey = this.getStandardVariantKey();
|
|
2456
|
-
|
|
2457
|
-
// this.setModified(false);
|
|
2458
|
-
// this.setSelectedKey(sKey);
|
|
2459
|
-
|
|
2460
|
-
// this.fireSelect({
|
|
2461
|
-
// key: sKey
|
|
2462
|
-
// });
|
|
2463
|
-
// return true;
|
|
2464
|
-
// }
|
|
2465
|
-
|
|
2466
|
-
// return false;
|
|
2467
|
-
// }.bind(this));
|
|
2468
2566
|
}
|
|
2469
2567
|
|
|
2470
|
-
if (this._getRenamedItems().
|
|
2471
|
-
|
|
2472
|
-
if (
|
|
2473
|
-
oBinding.
|
|
2568
|
+
if (this._getRenamedItems().length > 0) {
|
|
2569
|
+
this._bRebindRequired = true;
|
|
2570
|
+
if (this._getRenamedItems().indexOf(this.getSelectedKey()) >= 0) {
|
|
2571
|
+
var oBinding = this.oVariantText.getBinding("text");
|
|
2572
|
+
if (oBinding) {
|
|
2573
|
+
oBinding.checkUpdate(true);
|
|
2574
|
+
}
|
|
2474
2575
|
}
|
|
2475
2576
|
}
|
|
2476
2577
|
|
|
2578
|
+
if (this._bRebindRequired) {
|
|
2579
|
+
this.oManagementTable.unbindItems();
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2477
2582
|
this.fireManage(this._collectManageData());
|
|
2478
2583
|
|
|
2479
2584
|
// the manage views dialog may be deleted.
|
|
@@ -2542,7 +2647,7 @@ sap.ui.define([
|
|
|
2542
2647
|
for (var i = aRenamedKeys.length - 1; i >= 0; i--) {
|
|
2543
2648
|
var oItem = this._getItemByKey(aRenamedKeys[i]);
|
|
2544
2649
|
if (oItem) {
|
|
2545
|
-
if (oItem.getTitle() === oItem.
|
|
2650
|
+
if (oItem.getTitle() === oItem._getOriginalTitle()) {
|
|
2546
2651
|
this._removeRenamedItem(oItem);
|
|
2547
2652
|
}
|
|
2548
2653
|
}
|
|
@@ -2820,6 +2925,7 @@ sap.ui.define([
|
|
|
2820
2925
|
this._oSearchField = undefined;
|
|
2821
2926
|
this._oSearchFieldOnMgmtDialog = undefined;
|
|
2822
2927
|
this._sDefaultKey = undefined;
|
|
2928
|
+
this._oCtrlRef = undefined;
|
|
2823
2929
|
|
|
2824
2930
|
oModel = this.getModel(VariantManagement.INNER_MODEL_NAME);
|
|
2825
2931
|
if (oModel) {
|