@openui5/sap.ui.rta 1.108.2 → 1.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +16 -16
- package/THIRDPARTY.txt +2 -2
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +2 -2
- package/src/sap/ui/rta/Client.js +2 -2
- package/src/sap/ui/rta/RuntimeAuthoring.js +240 -191
- package/src/sap/ui/rta/Utils.js +40 -19
- package/src/sap/ui/rta/api/startAdaptation.js +1 -1
- package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
- package/src/sap/ui/rta/appVariant/Feature.js +2 -8
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
- package/src/sap/ui/rta/appVariant/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +2 -2
- package/src/sap/ui/rta/command/AddProperty.js +2 -2
- package/src/sap/ui/rta/command/AddXML.js +3 -3
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -3
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +3 -3
- package/src/sap/ui/rta/command/BaseCommand.js +2 -2
- package/src/sap/ui/rta/command/BindProperty.js +2 -2
- package/src/sap/ui/rta/command/Combine.js +2 -2
- package/src/sap/ui/rta/command/CommandFactory.js +2 -2
- package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +5 -3
- package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +15 -15
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +11 -4
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +42 -10
- package/src/sap/ui/rta/command/CreateContainer.js +2 -2
- package/src/sap/ui/rta/command/CustomAdd.js +2 -2
- package/src/sap/ui/rta/command/FlexCommand.js +18 -16
- package/src/sap/ui/rta/command/LREPSerializer.js +27 -17
- package/src/sap/ui/rta/command/LocalReset.js +2 -2
- package/src/sap/ui/rta/command/Move.js +2 -2
- package/src/sap/ui/rta/command/Property.js +2 -2
- package/src/sap/ui/rta/command/Remove.js +2 -2
- package/src/sap/ui/rta/command/Rename.js +2 -2
- package/src/sap/ui/rta/command/Resize.js +2 -2
- package/src/sap/ui/rta/command/Reveal.js +2 -2
- package/src/sap/ui/rta/command/Settings.js +2 -2
- package/src/sap/ui/rta/command/Split.js +2 -2
- package/src/sap/ui/rta/command/Stack.js +11 -3
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -3
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +28 -6
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +2 -2
- package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +28 -19
- package/src/sap/ui/rta/library.js +3 -3
- package/src/sap/ui/rta/messagebundle.properties +65 -17
- package/src/sap/ui/rta/messagebundle_ar.properties +32 -8
- package/src/sap/ui/rta/messagebundle_bg.properties +32 -8
- package/src/sap/ui/rta/messagebundle_ca.properties +32 -8
- package/src/sap/ui/rta/messagebundle_cs.properties +32 -8
- package/src/sap/ui/rta/messagebundle_cy.properties +31 -7
- package/src/sap/ui/rta/messagebundle_da.properties +31 -7
- package/src/sap/ui/rta/messagebundle_de.properties +31 -7
- package/src/sap/ui/rta/messagebundle_el.properties +31 -7
- package/src/sap/ui/rta/messagebundle_en.properties +31 -7
- package/src/sap/ui/rta/messagebundle_en_GB.properties +32 -8
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +31 -7
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +31 -7
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +31 -7
- package/src/sap/ui/rta/messagebundle_es.properties +31 -7
- package/src/sap/ui/rta/messagebundle_es_MX.properties +31 -7
- package/src/sap/ui/rta/messagebundle_et.properties +31 -7
- package/src/sap/ui/rta/messagebundle_fi.properties +31 -7
- package/src/sap/ui/rta/messagebundle_fr.properties +31 -7
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +32 -8
- package/src/sap/ui/rta/messagebundle_hi.properties +32 -8
- package/src/sap/ui/rta/messagebundle_hr.properties +32 -8
- package/src/sap/ui/rta/messagebundle_hu.properties +31 -7
- package/src/sap/ui/rta/messagebundle_id.properties +32 -8
- package/src/sap/ui/rta/messagebundle_it.properties +32 -8
- package/src/sap/ui/rta/messagebundle_iw.properties +31 -7
- package/src/sap/ui/rta/messagebundle_ja.properties +32 -8
- package/src/sap/ui/rta/messagebundle_kk.properties +31 -7
- package/src/sap/ui/rta/messagebundle_ko.properties +31 -7
- package/src/sap/ui/rta/messagebundle_lt.properties +31 -7
- package/src/sap/ui/rta/messagebundle_lv.properties +32 -8
- package/src/sap/ui/rta/messagebundle_ms.properties +32 -8
- package/src/sap/ui/rta/messagebundle_nl.properties +31 -7
- package/src/sap/ui/rta/messagebundle_no.properties +32 -8
- package/src/sap/ui/rta/messagebundle_pl.properties +32 -8
- package/src/sap/ui/rta/messagebundle_pt.properties +32 -8
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +31 -7
- package/src/sap/ui/rta/messagebundle_ro.properties +32 -8
- package/src/sap/ui/rta/messagebundle_ru.properties +32 -8
- package/src/sap/ui/rta/messagebundle_sh.properties +31 -7
- package/src/sap/ui/rta/messagebundle_sk.properties +31 -7
- package/src/sap/ui/rta/messagebundle_sl.properties +31 -7
- package/src/sap/ui/rta/messagebundle_sv.properties +32 -8
- package/src/sap/ui/rta/messagebundle_th.properties +33 -9
- package/src/sap/ui/rta/messagebundle_tr.properties +31 -7
- package/src/sap/ui/rta/messagebundle_uk.properties +31 -7
- package/src/sap/ui/rta/messagebundle_vi.properties +32 -8
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +32 -8
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +32 -8
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
- package/src/sap/ui/rta/plugin/Combine.js +2 -2
- package/src/sap/ui/rta/plugin/CompVariant.js +107 -29
- package/src/sap/ui/rta/plugin/ControlVariant.js +118 -50
- package/src/sap/ui/rta/plugin/CreateContainer.js +2 -2
- package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
- package/src/sap/ui/rta/plugin/DragDrop.js +4 -4
- package/src/sap/ui/rta/plugin/EasyAdd.js +30 -21
- package/src/sap/ui/rta/plugin/EasyRemove.js +13 -11
- package/src/sap/ui/rta/plugin/LocalReset.js +6 -4
- package/src/sap/ui/rta/plugin/Plugin.js +50 -13
- package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
- package/src/sap/ui/rta/plugin/Remove.js +2 -2
- package/src/sap/ui/rta/plugin/Rename.js +2 -2
- package/src/sap/ui/rta/plugin/RenameHandler.js +29 -19
- package/src/sap/ui/rta/plugin/Resize.js +2 -2
- package/src/sap/ui/rta/plugin/Selection.js +7 -14
- package/src/sap/ui/rta/plugin/Settings.js +2 -2
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- package/src/sap/ui/rta/plugin/Stretch.js +17 -16
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +28 -7
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +1 -0
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +5 -5
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +7 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +4 -4
- package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
- package/src/sap/ui/rta/service/Action.js +2 -2
- package/src/sap/ui/rta/service/ControllerExtension.js +3 -3
- package/src/sap/ui/rta/service/Outline.js +2 -2
- package/src/sap/ui/rta/service/Property.js +2 -2
- package/src/sap/ui/rta/service/Receiver.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +2 -2
- package/src/sap/ui/rta/service/SupportTools.js +2 -2
- package/src/sap/ui/rta/service/index.js +1 -1
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +26 -9
- package/src/sap/ui/rta/themes/base/library.source.less +1 -1
- package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +82 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +35 -90
- package/src/sap/ui/rta/toolbar/Adaptation.js +83 -27
- package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +4 -4
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +11 -10
- package/src/sap/ui/rta/toolbar/FioriLike.js +2 -2
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
- package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
- package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +263 -0
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +149 -0
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +185 -0
- package/src/sap/ui/rta/toolbar/contextBased/{SaveAsContextBasedAdaptationDialog.fragment.xml → SaveAsAdaptationDialog.fragment.xml} +19 -15
- package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +4 -4
- package/src/sap/ui/rta/util/Animation.js +5 -9
- package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +2 -2
- package/src/sap/ui/rta/util/PopupManager.js +2 -2
- package/src/sap/ui/rta/util/ReloadManager.js +2 -2
- package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
- package/src/sap/ui/rta/util/StylesLoader.js +1 -1
- package/src/sap/ui/rta/util/UrlParser.js +1 -1
- package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +4 -3
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +11 -10
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +1 -0
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +28 -4
- package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +110 -72
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/showMessageBox.js +1 -1
- package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
- package/src/sap/ui/rta/util/validateStableIds.js +1 -1
- package/src/sap/ui/rta/appContexts/AppContextsOverviewDialog.js +0 -76
- package/src/sap/ui/rta/appContexts/Component.js +0 -31
- package/src/sap/ui/rta/appContexts/controller/ManageContexts.controller.js +0 -323
- package/src/sap/ui/rta/appContexts/controller/RestAPIConnector.js +0 -22
- package/src/sap/ui/rta/appContexts/i18n/i18n.properties +0 -47
- package/src/sap/ui/rta/appContexts/i18n/i18n_ar.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_bg.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_ca.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_cs.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_cy.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_da.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_de.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_el.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_en.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_GB.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_sappsd.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saprigi.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saptrc.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_es.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_es_MX.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_et.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_fi.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_fr.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_fr_CA.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_hi.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_hr.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_hu.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_id.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_it.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_iw.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_ja.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_kk.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_ko.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_lt.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_lv.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_ms.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_nl.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_no.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_pl.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_pt.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_pt_PT.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_ro.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_ru.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_sh.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_sk.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_sl.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_sv.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_th.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_tr.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_uk.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_vi.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_zh_CN.properties +0 -23
- package/src/sap/ui/rta/appContexts/i18n/i18n_zh_TW.properties +0 -23
- package/src/sap/ui/rta/appContexts/index.html +0 -25
- package/src/sap/ui/rta/appContexts/manifest.json +0 -52
- package/src/sap/ui/rta/appContexts/view/EditContextsDialog.fragment.xml +0 -76
- package/src/sap/ui/rta/appContexts/view/ManageContexts.view.xml +0 -103
- package/src/sap/ui/rta/appContexts/view/SaveAsContextsDialog.fragment.xml +0 -76
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +0 -124
package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml
CHANGED
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
xmlns:l="sap.ui.layout">
|
|
5
5
|
<Popover
|
|
6
6
|
showHeader="false"
|
|
7
|
-
placement="Bottom"
|
|
7
|
+
placement="Bottom"
|
|
8
|
+
id="popover">
|
|
8
9
|
<SegmentedButton selectedKey="satellite" width="420px" selectionChange=".onVersioningCategoryChange">
|
|
9
10
|
<items>
|
|
10
|
-
<SegmentedButtonItem
|
|
11
|
-
text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_ALL}"
|
|
11
|
+
<SegmentedButtonItem
|
|
12
|
+
text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_ALL}"
|
|
12
13
|
key="all"/>
|
|
13
|
-
<SegmentedButtonItem
|
|
14
|
-
text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_DRAFT}"
|
|
15
|
-
key="draft"
|
|
16
|
-
visible="{visualizationModel>/versioningAvailable}"
|
|
14
|
+
<SegmentedButtonItem
|
|
15
|
+
text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_DRAFT}"
|
|
16
|
+
key="draft"
|
|
17
|
+
visible="{visualizationModel>/versioningAvailable}"
|
|
17
18
|
enabled="{= ${visualizationModel>/hasDraftChanges} || ${visualizationModel>/hasDirtyChanges}}"/>
|
|
18
|
-
<SegmentedButtonItem
|
|
19
|
+
<SegmentedButtonItem
|
|
19
20
|
text="{i18n>BUT_CHANGEVISUALIZATION_VERSIONING_DIRTY}"
|
|
20
|
-
key="dirty"
|
|
21
|
+
key="dirty"
|
|
21
22
|
enabled="{visualizationModel>/hasDirtyChanges}"/>
|
|
22
23
|
</items>
|
|
23
24
|
</SegmentedButton>
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
text="{visualizationModel>/popupInfoMessage}"
|
|
26
27
|
type="Information"
|
|
27
28
|
showIcon="true"
|
|
28
|
-
visible="{= ${visualizationModel>/
|
|
29
|
+
visible="{= ${visualizationModel>/sortedChanges/relevantHiddenChanges}.length > 0 }">
|
|
29
30
|
<link>
|
|
30
31
|
<Link text="{i18n>BUT_CHANGEVISUALIZATION_LEARNMORE}"
|
|
31
32
|
target="_blank"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry
|
|
40
40
|
* @author SAP SE
|
|
41
41
|
* @since 1.86.0
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.110.0
|
|
43
43
|
* @private
|
|
44
44
|
*/
|
|
45
45
|
var ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
|
|
@@ -145,6 +145,18 @@ sap.ui.define([
|
|
|
145
145
|
return oChangeIndicators;
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
+
ChangeIndicatorRegistry.prototype.getRelevantChangesWithSelector = function () {
|
|
149
|
+
var oSelectors = this.getSelectorsWithRegisteredChanges();
|
|
150
|
+
var aRelevantChanges = [];
|
|
151
|
+
Object.keys(oSelectors).forEach(function(sSelectorId) {
|
|
152
|
+
var aRelevantChangesForSelector = oSelectors[sSelectorId].filter(function (oChange) {
|
|
153
|
+
return !oChange.dependent;
|
|
154
|
+
});
|
|
155
|
+
aRelevantChanges = aRelevantChanges.concat(aRelevantChangesForSelector);
|
|
156
|
+
});
|
|
157
|
+
return aRelevantChanges;
|
|
158
|
+
};
|
|
159
|
+
|
|
148
160
|
/**
|
|
149
161
|
* Returns the registered change indicator for the given element ID.
|
|
150
162
|
*
|
|
@@ -195,8 +207,8 @@ sap.ui.define([
|
|
|
195
207
|
}
|
|
196
208
|
|
|
197
209
|
if (oChange.getState() === "NEW") {
|
|
198
|
-
aChangeStates =
|
|
199
|
-
} else if (aDraftChangesList && aDraftChangesList.includes(oChange.
|
|
210
|
+
aChangeStates = ChangeStates.getDraftAndDirtyStates();
|
|
211
|
+
} else if (aDraftChangesList && aDraftChangesList.includes(oChange.getId())) {
|
|
200
212
|
aChangeStates = [ChangeStates.DRAFT];
|
|
201
213
|
} else {
|
|
202
214
|
aChangeStates = [ChangeStates.ACTIVATED];
|
|
@@ -311,5 +323,17 @@ sap.ui.define([
|
|
|
311
323
|
}.bind(this));
|
|
312
324
|
};
|
|
313
325
|
|
|
326
|
+
/**
|
|
327
|
+
* Removes changes without any displayElementIds from the registry so the change can be re-registered and
|
|
328
|
+
* the visualizationInfo is updated => if an element is inside a dialog which hasnt been opened yet
|
|
329
|
+
*/
|
|
330
|
+
ChangeIndicatorRegistry.prototype.removeRegisteredChangesWithoutVizInfo = function () {
|
|
331
|
+
this.getAllRegisteredChanges().forEach(function(oChange) {
|
|
332
|
+
if (oChange.visualizationInfo && oChange.visualizationInfo.displayElementIds.length === 0) {
|
|
333
|
+
this.removeRegisteredChange(oChange.change.getId());
|
|
334
|
+
}
|
|
335
|
+
}.bind(this));
|
|
336
|
+
};
|
|
337
|
+
|
|
314
338
|
return ChangeIndicatorRegistry;
|
|
315
339
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
*
|
|
21
21
|
* @returns {array} Array of change states.
|
|
22
22
|
*/
|
|
23
|
-
ChangeStates.
|
|
23
|
+
ChangeStates.getDraftAndDirtyStates = function() {
|
|
24
24
|
return [this.DRAFT, this.DIRTY];
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -51,6 +51,10 @@ sap.ui.define([
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
function _isOverlayVisible(oOverlay) {
|
|
55
|
+
return !oOverlay || !oOverlay.getDomRef() || !oOverlay.isVisible();
|
|
56
|
+
}
|
|
57
|
+
|
|
54
58
|
/**
|
|
55
59
|
* @class
|
|
56
60
|
* Root control for RTA change visualization.
|
|
@@ -59,7 +63,7 @@ sap.ui.define([
|
|
|
59
63
|
* @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
|
|
60
64
|
* @author SAP SE
|
|
61
65
|
* @since 1.84.0
|
|
62
|
-
* @version 1.
|
|
66
|
+
* @version 1.110.0
|
|
63
67
|
* @private
|
|
64
68
|
*/
|
|
65
69
|
var ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
|
|
@@ -149,34 +153,84 @@ sap.ui.define([
|
|
|
149
153
|
this._oChangeIndicatorRegistry.reset();
|
|
150
154
|
};
|
|
151
155
|
|
|
152
|
-
ChangeVisualization.prototype.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
ChangeVisualization.prototype._determineChangeVisibility = function(aRegisteredIndependentChanges, aAllRelevantChanges, sVisualizedChangeState) {
|
|
157
|
+
function filterRelevantChanges(aChanges) {
|
|
158
|
+
return aChanges.filter(function(oChange) {
|
|
159
|
+
if (!sVisualizedChangeState || sVisualizedChangeState === "all" || oChange.changeStates.includes(sVisualizedChangeState)) {
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
return false;
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
// Array of all Hidden Changes
|
|
166
|
+
var aHiddenChanges = [];
|
|
167
|
+
// Array of all Visualized Changes
|
|
168
|
+
var aVisualizedChanges = [];
|
|
169
|
+
|
|
170
|
+
var bHasDraftChanges = false;
|
|
171
|
+
var bHasDirtyChanges = false;
|
|
172
|
+
|
|
173
|
+
var aAllRelevantChangeIds = aAllRelevantChanges.map(function(oChange) {
|
|
174
|
+
return oChange.id;
|
|
157
175
|
});
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
if (
|
|
161
|
-
|
|
176
|
+
|
|
177
|
+
aRegisteredIndependentChanges.forEach(function (oChange) {
|
|
178
|
+
if (oChange.changeStates.includes(ChangeStates.DIRTY)) {
|
|
179
|
+
bHasDraftChanges = true;
|
|
180
|
+
bHasDirtyChanges = true;
|
|
181
|
+
} else if (oChange.changeStates.includes(ChangeStates.DRAFT)) {
|
|
182
|
+
bHasDraftChanges = true;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
var oOverlay = OverlayRegistry.getOverlay(oChange.visualizationInfo.displayElementIds[0]);
|
|
186
|
+
|
|
187
|
+
if (!aAllRelevantChangeIds.includes(oChange.change.getId())) {
|
|
188
|
+
aHiddenChanges.push(oChange);
|
|
189
|
+
} else if (_isOverlayVisible(oOverlay)) {
|
|
190
|
+
aHiddenChanges.push(oChange);
|
|
191
|
+
} else {
|
|
192
|
+
aVisualizedChanges.push(oChange);
|
|
162
193
|
}
|
|
163
|
-
return oHiddenChange.changeStates.includes(sVisualizedChangeState);
|
|
164
194
|
});
|
|
165
|
-
var
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
195
|
+
var aRelevantHiddenChanges = filterRelevantChanges(aHiddenChanges);
|
|
196
|
+
var aRelevantVisualizedChanges = filterRelevantChanges(aVisualizedChanges);
|
|
197
|
+
return {
|
|
198
|
+
relevantHiddenChanges: aRelevantHiddenChanges,
|
|
199
|
+
relevantVisualizedChanges: aRelevantVisualizedChanges,
|
|
200
|
+
hasDirtyChanges: bHasDirtyChanges,
|
|
201
|
+
hasDraftChanges: bHasDraftChanges
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
ChangeVisualization.prototype._updateVisualizationModelMenuData = function() {
|
|
206
|
+
// Get selected change state and change category
|
|
207
|
+
var sVisualizedChangeState = this._oChangeVisualizationModel.getData().changeState;
|
|
208
|
+
|
|
209
|
+
// Get all registered and relevant change ids
|
|
210
|
+
var aAllRegisteredChanges = this._oChangeIndicatorRegistry.getAllRegisteredChanges();
|
|
211
|
+
var aAllRelevantChanges = this._oChangeIndicatorRegistry.getRelevantChangesWithSelector();
|
|
212
|
+
|
|
213
|
+
// Filter allRegisteredChanges for independent changes and get the ids
|
|
214
|
+
var aRegisteredIndependentChanges = aAllRegisteredChanges.filter(function(oChange) {
|
|
215
|
+
if (!oChange.dependent) {
|
|
216
|
+
return true;
|
|
169
217
|
}
|
|
170
|
-
return
|
|
218
|
+
return false;
|
|
171
219
|
});
|
|
220
|
+
|
|
221
|
+
var oSortedChanges = this._determineChangeVisibility(
|
|
222
|
+
aRegisteredIndependentChanges,
|
|
223
|
+
aAllRelevantChanges,
|
|
224
|
+
sVisualizedChangeState
|
|
225
|
+
);
|
|
172
226
|
var aCommandData = Object.keys(ChangeCategories.getCategories()).map(function(sChangeCategoryName) {
|
|
173
227
|
var sTitle = this._getChangeCategoryLabel(
|
|
174
228
|
sChangeCategoryName,
|
|
175
|
-
this._getChangesForChangeCategory(sChangeCategoryName,
|
|
229
|
+
this._getChangesForChangeCategory(sChangeCategoryName, oSortedChanges.relevantVisualizedChanges).length
|
|
176
230
|
);
|
|
177
231
|
return {
|
|
178
232
|
key: sChangeCategoryName,
|
|
179
|
-
count: this._getChangesForChangeCategory(sChangeCategoryName,
|
|
233
|
+
count: this._getChangesForChangeCategory(sChangeCategoryName, oSortedChanges.relevantVisualizedChanges).length,
|
|
180
234
|
title: sTitle,
|
|
181
235
|
icon: ChangeCategories.getIconForCategory(sChangeCategoryName)
|
|
182
236
|
};
|
|
@@ -184,19 +238,20 @@ sap.ui.define([
|
|
|
184
238
|
|
|
185
239
|
aCommandData.unshift({
|
|
186
240
|
key: ChangeCategories.ALL,
|
|
187
|
-
count: this._getChangesForChangeCategory(ChangeCategories.ALL,
|
|
188
|
-
title: this._getChangeCategoryLabel(ChangeCategories.ALL, this._getChangesForChangeCategory(ChangeCategories.ALL,
|
|
241
|
+
count: this._getChangesForChangeCategory(ChangeCategories.ALL, oSortedChanges.relevantVisualizedChanges).length,
|
|
242
|
+
title: this._getChangeCategoryLabel(ChangeCategories.ALL, this._getChangesForChangeCategory(ChangeCategories.ALL, oSortedChanges.relevantVisualizedChanges).length),
|
|
189
243
|
icon: ChangeCategories.getIconForCategory(ChangeCategories.ALL)
|
|
190
244
|
});
|
|
191
245
|
|
|
192
246
|
this._updateVisualizationModel({
|
|
193
247
|
changeCategories: aCommandData,
|
|
194
|
-
hasDraftChanges:
|
|
195
|
-
hasDirtyChanges:
|
|
248
|
+
hasDraftChanges: oSortedChanges.hasDraftChanges,
|
|
249
|
+
hasDirtyChanges: oSortedChanges.hasDirtyChanges,
|
|
196
250
|
popupInfoMessage: this._oTextBundle.getText(
|
|
197
251
|
"MSG_CHANGEVISUALIZATION_HIDDEN_CHANGES_INFO",
|
|
198
|
-
[
|
|
199
|
-
)
|
|
252
|
+
[oSortedChanges.relevantHiddenChanges.length]
|
|
253
|
+
),
|
|
254
|
+
sortedChanges: oSortedChanges
|
|
200
255
|
});
|
|
201
256
|
};
|
|
202
257
|
|
|
@@ -228,7 +283,7 @@ sap.ui.define([
|
|
|
228
283
|
if (!oPopover) {
|
|
229
284
|
Fragment.load({
|
|
230
285
|
name: "sap.ui.rta.util.changeVisualization.ChangeIndicatorCategorySelection",
|
|
231
|
-
id: this._getComponent().createId("
|
|
286
|
+
id: this._getComponent().createId("changeVisualization_changesList"),
|
|
232
287
|
controller: this
|
|
233
288
|
})
|
|
234
289
|
.then(function(oPopover) {
|
|
@@ -352,7 +407,14 @@ sap.ui.define([
|
|
|
352
407
|
|
|
353
408
|
ChangeVisualization.prototype._updateChangeRegistry = function() {
|
|
354
409
|
return this._collectChanges().then(function(aChanges) {
|
|
410
|
+
// remove updated changes
|
|
355
411
|
this._oChangeIndicatorRegistry.removeOutdatedRegisteredChanges();
|
|
412
|
+
// remove changes with incomplete vizInfo
|
|
413
|
+
this._oChangeIndicatorRegistry.removeRegisteredChangesWithoutVizInfo();
|
|
414
|
+
// remove all registered changes after versions activation
|
|
415
|
+
if (this._oChangeVisualizationModel.getData().displayedVersion !== "0") {
|
|
416
|
+
this._oChangeIndicatorRegistry.reset();
|
|
417
|
+
}
|
|
356
418
|
var aRegisteredChangeIds = this._oChangeIndicatorRegistry.getRegisteredChangeIds();
|
|
357
419
|
var oCurrentChanges = aChanges
|
|
358
420
|
.filter(function(oChange) {
|
|
@@ -370,7 +432,6 @@ sap.ui.define([
|
|
|
370
432
|
difference(aRegisteredChangeIds, aCurrentChangeIds).forEach(function(sChangeIdToRemove) {
|
|
371
433
|
this._oChangeIndicatorRegistry.removeRegisteredChange(sChangeIdToRemove);
|
|
372
434
|
}.bind(this));
|
|
373
|
-
|
|
374
435
|
var aPromises = [];
|
|
375
436
|
// Register missing changes
|
|
376
437
|
difference(aCurrentChangeIds, aRegisteredChangeIds).forEach(function(sChangeIdToAdd) {
|
|
@@ -412,23 +473,7 @@ sap.ui.define([
|
|
|
412
473
|
ChangeVisualization.prototype._updateChangeIndicators = function() {
|
|
413
474
|
var oSelectors = this._oChangeIndicatorRegistry.getSelectorsWithRegisteredChanges();
|
|
414
475
|
var oIndicators = {};
|
|
415
|
-
var aVisualizedChanges = [];
|
|
416
|
-
var aActivatedChanges = [];
|
|
417
|
-
var aDraftChanges = [];
|
|
418
|
-
var aDirtyChanges = [];
|
|
419
|
-
var aHiddenChanges = [];
|
|
420
476
|
Object.keys(oSelectors).forEach(function(sSelectorId) {
|
|
421
|
-
oSelectors[sSelectorId].forEach(function (oChange) {
|
|
422
|
-
if (!oChange.dependent) {
|
|
423
|
-
if (oChange.changeStates.includes(ChangeStates.ACTIVATED)) {
|
|
424
|
-
aActivatedChanges.push(oChange.id);
|
|
425
|
-
} else if (oChange.changeStates.includes(ChangeStates.DIRTY)) {
|
|
426
|
-
aDirtyChanges.push(oChange.id);
|
|
427
|
-
} else if (oChange.changeStates.includes(ChangeStates.DRAFT)) {
|
|
428
|
-
aDraftChanges.push(oChange.id);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
477
|
var aChangesOnIndicator = oSelectors[sSelectorId];
|
|
433
478
|
var aRelevantChanges = this._filterRelevantChanges(oSelectors[sSelectorId]);
|
|
434
479
|
var oOverlay = OverlayRegistry.getOverlay(sSelectorId);
|
|
@@ -445,22 +490,11 @@ sap.ui.define([
|
|
|
445
490
|
return false;
|
|
446
491
|
});
|
|
447
492
|
}
|
|
448
|
-
if (
|
|
493
|
+
if (_isOverlayVisible(oOverlay)) {
|
|
449
494
|
// Change is not visible
|
|
450
|
-
aChangesOnIndicator.forEach(function (oChange) {
|
|
451
|
-
var aHiddenChangeIds = aHiddenChanges.map(function(oHiddenChange) {
|
|
452
|
-
return oHiddenChange.id;
|
|
453
|
-
});
|
|
454
|
-
if (!aHiddenChangeIds.includes(oChange.id)) {
|
|
455
|
-
aHiddenChanges.push(oChange);
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
495
|
return undefined;
|
|
459
496
|
}
|
|
460
497
|
var oOverlayPosition = oOverlay.getDomRef().getClientRects()[0] || { left: 0, top: 0 };
|
|
461
|
-
aRelevantChanges.forEach(function (oChange) {
|
|
462
|
-
aVisualizedChanges.push(oChange);
|
|
463
|
-
});
|
|
464
498
|
oIndicators[sSelectorId] = {
|
|
465
499
|
posX: parseInt(oOverlayPosition.left),
|
|
466
500
|
posY: parseInt(oOverlayPosition.top),
|
|
@@ -482,21 +516,10 @@ sap.ui.define([
|
|
|
482
516
|
!deepEqual(
|
|
483
517
|
oIndicators,
|
|
484
518
|
this._oChangeVisualizationModel.getData().content
|
|
485
|
-
) || !deepEqual(
|
|
486
|
-
aVisualizedChanges,
|
|
487
|
-
this._oChangeVisualizationModel.getData().visualizedChanges
|
|
488
|
-
) || !deepEqual(
|
|
489
|
-
aHiddenChanges,
|
|
490
|
-
this._oChangeVisualizationModel.getData().hiddenChanges
|
|
491
519
|
)
|
|
492
520
|
) {
|
|
493
521
|
this._updateVisualizationModel({
|
|
494
|
-
content: oIndicators
|
|
495
|
-
visualizedChanges: aVisualizedChanges,
|
|
496
|
-
dirtyChanges: aDirtyChanges,
|
|
497
|
-
activatedChanges: aActivatedChanges,
|
|
498
|
-
draftChanges: aDraftChanges,
|
|
499
|
-
hiddenChanges: aHiddenChanges
|
|
522
|
+
content: oIndicators
|
|
500
523
|
});
|
|
501
524
|
}
|
|
502
525
|
};
|
|
@@ -560,10 +583,22 @@ sap.ui.define([
|
|
|
560
583
|
if (aVisibleIndicators.length === 0) {
|
|
561
584
|
return;
|
|
562
585
|
}
|
|
586
|
+
|
|
587
|
+
var aVisibleIndicatorsOnScrollPosition = [];
|
|
563
588
|
aVisibleIndicators.forEach(function(oIndicator, iIndex) {
|
|
564
589
|
oIndicator.getDomRef().tabIndex = iIndex + 2;
|
|
590
|
+
// Indicators with posY < 0 are outside of the current scroll position
|
|
591
|
+
if (oIndicator.getPosY() > 0) {
|
|
592
|
+
aVisibleIndicatorsOnScrollPosition.push(oIndicator);
|
|
593
|
+
}
|
|
565
594
|
});
|
|
566
|
-
|
|
595
|
+
if (aVisibleIndicatorsOnScrollPosition.length > 0) {
|
|
596
|
+
// Indicators visible with the current scroll position get focus
|
|
597
|
+
// to avoid unexpected scrolling when visualization is started
|
|
598
|
+
aVisibleIndicatorsOnScrollPosition[0].focus();
|
|
599
|
+
} else {
|
|
600
|
+
aVisibleIndicators[0].focus();
|
|
601
|
+
}
|
|
567
602
|
};
|
|
568
603
|
|
|
569
604
|
ChangeVisualization.prototype._toggleRootOverlayClickHandler = function (bEnable) {
|
|
@@ -594,14 +629,17 @@ sap.ui.define([
|
|
|
594
629
|
ChangeVisualization.prototype.triggerModeChange = function(oRootControl, oToolbar) {
|
|
595
630
|
this.oMenuButton = oToolbar.getControl("toggleChangeVisualizationMenuButton");
|
|
596
631
|
this.oRootOverlay = OverlayRegistry.getOverlay(oRootControl);
|
|
597
|
-
|
|
598
|
-
|
|
632
|
+
this.setVersionsModel(oToolbar);
|
|
633
|
+
if (this.oVersionsModel && this.oVersionsModel.getData().versioningEnabled) {
|
|
599
634
|
this._updateVisualizationModel({
|
|
600
|
-
versioningAvailable: this.oVersionsModel.getData().versioningEnabled
|
|
635
|
+
versioningAvailable: this.oVersionsModel.getData().versioningEnabled,
|
|
636
|
+
displayedVersion: this.oVersionsModel.getData().displayedVersion
|
|
601
637
|
});
|
|
602
638
|
} else {
|
|
639
|
+
// no versioning available, setting draft version id for caching to be working
|
|
603
640
|
this._updateVisualizationModel({
|
|
604
|
-
versioningAvailable: false
|
|
641
|
+
versioningAvailable: false,
|
|
642
|
+
displayedVersion: "0"
|
|
605
643
|
});
|
|
606
644
|
}
|
|
607
645
|
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Provides the <code>sap.ui.rta.appContexts.AppContextsOverviewDialog</code> control.
|
|
8
|
-
sap.ui.define([
|
|
9
|
-
"sap/ui/core/ComponentContainer",
|
|
10
|
-
"sap/m/Button",
|
|
11
|
-
"sap/m/Dialog",
|
|
12
|
-
"sap/m/DialogRenderer",
|
|
13
|
-
"sap/ui/rta/appContexts/Component",
|
|
14
|
-
"sap/ui/rta/Utils"
|
|
15
|
-
], function (
|
|
16
|
-
ComponentContainer,
|
|
17
|
-
Button,
|
|
18
|
-
Dialog,
|
|
19
|
-
DialogRenderer,
|
|
20
|
-
ManageAppContextsComponent,
|
|
21
|
-
RtaUtils
|
|
22
|
-
) {
|
|
23
|
-
"use strict";
|
|
24
|
-
|
|
25
|
-
var AppContextsOverviewDialog = Dialog.extend("sap.ui.rta.appContexts.AppVariantOverviewDialog", {
|
|
26
|
-
metadata: {
|
|
27
|
-
library: "sap.ui.rta",
|
|
28
|
-
events: {
|
|
29
|
-
cancel: {}
|
|
30
|
-
},
|
|
31
|
-
properties: {
|
|
32
|
-
layer: "string"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
constructor: function () {
|
|
36
|
-
Dialog.prototype.constructor.apply(this, arguments);
|
|
37
|
-
this._oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
38
|
-
|
|
39
|
-
// Create manage apps component
|
|
40
|
-
this._oManageAppContextsComponent = new ManageAppContextsComponent("sap.ui.rta.appContexts", { layer: this.getLayer() });
|
|
41
|
-
|
|
42
|
-
// Place component in container and display
|
|
43
|
-
this._oManageAppsComponentContainer = new ComponentContainer({
|
|
44
|
-
component: this._oManageAppContextsComponent
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
this.addContent(this._oManageAppsComponentContainer);
|
|
48
|
-
this._createButton();
|
|
49
|
-
|
|
50
|
-
this.setContentWidth("650px");
|
|
51
|
-
this.setContentHeight("450px");
|
|
52
|
-
|
|
53
|
-
this.setHorizontalScrolling(false);
|
|
54
|
-
this.setTitle(this._oTextResources.getText("APP_CONTEXTS_OVERVIEW_DIALOG_TITLE"));
|
|
55
|
-
|
|
56
|
-
this.addStyleClass(RtaUtils.getRtaStyleClassName());
|
|
57
|
-
},
|
|
58
|
-
destroy: function () {
|
|
59
|
-
Dialog.prototype.destroy.apply(this, arguments);
|
|
60
|
-
},
|
|
61
|
-
renderer: DialogRenderer
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
AppContextsOverviewDialog.prototype._createButton = function () {
|
|
65
|
-
this.addButton(new Button({
|
|
66
|
-
text: this._oTextResources.getText("APP_VARIANT_DIALOG_CLOSE"),
|
|
67
|
-
press: function () {
|
|
68
|
-
this.close();
|
|
69
|
-
this.fireCancel();
|
|
70
|
-
}.bind(this)
|
|
71
|
-
}));
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return AppContextsOverviewDialog;
|
|
76
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define([
|
|
7
|
-
"sap/ui/core/UIComponent"
|
|
8
|
-
], function (UIComponent) {
|
|
9
|
-
"use strict";
|
|
10
|
-
|
|
11
|
-
return UIComponent.extend("sap.ui.rta.appContexts.Component", {
|
|
12
|
-
|
|
13
|
-
metadata: {
|
|
14
|
-
manifest: "json",
|
|
15
|
-
library: "sap.ui.rta",
|
|
16
|
-
properties: {
|
|
17
|
-
layer: "string"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Component is automatically initialized by UI5 at startup of the app and calls the init method once.
|
|
23
|
-
* @public
|
|
24
|
-
* @override
|
|
25
|
-
*/
|
|
26
|
-
init: function () {
|
|
27
|
-
// call the base component's init function
|
|
28
|
-
UIComponent.prototype.init.apply(this, arguments);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|