@openui5/sap.ui.rta 1.98.0 → 1.99.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/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -1
- package/src/sap/ui/rta/RuntimeAuthoring.js +48 -41
- package/src/sap/ui/rta/Utils.js +2 -2
- package/src/sap/ui/rta/appContexts/AppContextsOverviewDialog.js +76 -0
- package/src/sap/ui/rta/appContexts/Component.js +31 -0
- package/src/sap/ui/rta/appContexts/controller/ManageContexts.controller.js +323 -0
- package/src/sap/ui/rta/appContexts/controller/RestAPIConnector.js +22 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n.properties +47 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ar.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_bg.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ca.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_cs.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_cy.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_da.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_de.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_el.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_GB.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_sappsd.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saprigi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saptrc.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_es.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_es_MX.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_et.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_fi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_fr.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_fr_CA.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_hi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_hr.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_hu.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_id.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_it.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_iw.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ja.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_kk.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ko.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_lt.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_lv.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ms.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_nl.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_no.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_pl.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_pt.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_pt_PT.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ro.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ru.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sh.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sk.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sl.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sv.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_th.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_tr.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_uk.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_vi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_zh_CN.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_zh_TW.properties +23 -0
- package/src/sap/ui/rta/appContexts/index.html +25 -0
- package/src/sap/ui/rta/appContexts/manifest.json +52 -0
- package/src/sap/ui/rta/appContexts/view/EditContextsDialog.fragment.xml +76 -0
- package/src/sap/ui/rta/appContexts/view/ManageContexts.view.xml +103 -0
- package/src/sap/ui/rta/appContexts/view/SaveAsContextsDialog.fragment.xml +76 -0
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +6 -3
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +11 -11
- package/src/sap/ui/rta/appVariant/Feature.js +16 -6
- package/src/sap/ui/rta/command/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +5 -1
- package/src/sap/ui/rta/command/CommandFactory.js +15 -11
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +1 -1
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +7 -4
- package/src/sap/ui/rta/messagebundle_ar.properties +5 -3
- package/src/sap/ui/rta/messagebundle_bg.properties +7 -5
- package/src/sap/ui/rta/messagebundle_ca.properties +5 -3
- package/src/sap/ui/rta/messagebundle_cs.properties +5 -3
- package/src/sap/ui/rta/messagebundle_cy.properties +5 -3
- package/src/sap/ui/rta/messagebundle_da.properties +5 -3
- package/src/sap/ui/rta/messagebundle_de.properties +5 -3
- package/src/sap/ui/rta/messagebundle_el.properties +5 -3
- package/src/sap/ui/rta/messagebundle_en.properties +5 -3
- package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -3
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -3
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +39 -20
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +5 -3
- package/src/sap/ui/rta/messagebundle_es.properties +5 -3
- package/src/sap/ui/rta/messagebundle_es_MX.properties +6 -4
- package/src/sap/ui/rta/messagebundle_et.properties +5 -3
- package/src/sap/ui/rta/messagebundle_fi.properties +5 -3
- package/src/sap/ui/rta/messagebundle_fr.properties +5 -3
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -3
- package/src/sap/ui/rta/messagebundle_hi.properties +5 -3
- package/src/sap/ui/rta/messagebundle_hr.properties +5 -3
- package/src/sap/ui/rta/messagebundle_hu.properties +5 -3
- package/src/sap/ui/rta/messagebundle_id.properties +5 -3
- package/src/sap/ui/rta/messagebundle_it.properties +5 -3
- package/src/sap/ui/rta/messagebundle_iw.properties +5 -3
- package/src/sap/ui/rta/messagebundle_ja.properties +5 -3
- package/src/sap/ui/rta/messagebundle_kk.properties +5 -3
- package/src/sap/ui/rta/messagebundle_ko.properties +5 -3
- package/src/sap/ui/rta/messagebundle_lt.properties +5 -3
- package/src/sap/ui/rta/messagebundle_lv.properties +7 -5
- package/src/sap/ui/rta/messagebundle_ms.properties +5 -3
- package/src/sap/ui/rta/messagebundle_nl.properties +5 -3
- package/src/sap/ui/rta/messagebundle_no.properties +5 -3
- package/src/sap/ui/rta/messagebundle_pl.properties +5 -3
- package/src/sap/ui/rta/messagebundle_pt.properties +5 -3
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +5 -3
- package/src/sap/ui/rta/messagebundle_ro.properties +5 -3
- package/src/sap/ui/rta/messagebundle_ru.properties +5 -3
- package/src/sap/ui/rta/messagebundle_sh.properties +5 -3
- package/src/sap/ui/rta/messagebundle_sk.properties +6 -4
- package/src/sap/ui/rta/messagebundle_sl.properties +5 -3
- package/src/sap/ui/rta/messagebundle_sv.properties +5 -3
- package/src/sap/ui/rta/messagebundle_th.properties +5 -3
- package/src/sap/ui/rta/messagebundle_tr.properties +5 -3
- package/src/sap/ui/rta/messagebundle_uk.properties +4 -2
- package/src/sap/ui/rta/messagebundle_vi.properties +5 -3
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -3
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -3
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +10 -3
- package/src/sap/ui/rta/plugin/ControlVariant.js +3 -3
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
- package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +1 -1
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +2 -2
- package/src/sap/ui/rta/plugin/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +21 -8
- package/src/sap/ui/rta/plugin/Settings.js +1 -1
- package/src/sap/ui/rta/plugin/Split.js +1 -1
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +39 -38
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +1 -1
- package/src/sap/ui/rta/service/Property.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +42 -53
- package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +52 -31
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +107 -59
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +6 -5
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +64 -60
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +37 -0
- package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +5 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +14 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.99.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.rta",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.99.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.99.0",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.99.0",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.99.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.99.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.99.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -23,6 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
"sap/ui/events/KeyCodes",
|
|
24
24
|
"sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
|
|
25
25
|
"sap/ui/fl/apply/api/SmartVariantManagementApplyAPI",
|
|
26
|
+
"sap/ui/fl/write/api/ControlPersonalizationWriteAPI",
|
|
26
27
|
"sap/ui/fl/write/api/FeaturesAPI",
|
|
27
28
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
28
29
|
"sap/ui/fl/write/api/ReloadInfoAPI",
|
|
@@ -30,6 +31,7 @@ sap.ui.define([
|
|
|
30
31
|
"sap/ui/fl/Layer",
|
|
31
32
|
"sap/ui/fl/LayerUtils",
|
|
32
33
|
"sap/ui/fl/library",
|
|
34
|
+
"sap/ui/fl/registry/Settings",
|
|
33
35
|
"sap/ui/fl/Utils",
|
|
34
36
|
"sap/ui/model/json/JSONModel",
|
|
35
37
|
"sap/ui/performance/Measurement",
|
|
@@ -67,6 +69,7 @@ sap.ui.define([
|
|
|
67
69
|
KeyCodes,
|
|
68
70
|
FlexRuntimeInfoAPI,
|
|
69
71
|
SmartVariantManagementApplyAPI,
|
|
72
|
+
ControlPersonalizationWriteAPI,
|
|
70
73
|
FeaturesAPI,
|
|
71
74
|
PersistenceWriteAPI,
|
|
72
75
|
ReloadInfoAPI,
|
|
@@ -74,6 +77,7 @@ sap.ui.define([
|
|
|
74
77
|
Layer,
|
|
75
78
|
LayerUtils,
|
|
76
79
|
flexLibrary,
|
|
80
|
+
Settings,
|
|
77
81
|
FlexUtils,
|
|
78
82
|
JSONModel,
|
|
79
83
|
Measurement,
|
|
@@ -110,7 +114,7 @@ sap.ui.define([
|
|
|
110
114
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
111
115
|
* @extends sap.ui.base.ManagedObject
|
|
112
116
|
* @author SAP SE
|
|
113
|
-
* @version 1.
|
|
117
|
+
* @version 1.99.0
|
|
114
118
|
* @constructor
|
|
115
119
|
* @private
|
|
116
120
|
* @since 1.30
|
|
@@ -221,7 +225,7 @@ sap.ui.define([
|
|
|
221
225
|
_sAppTitle: null,
|
|
222
226
|
_dependents: null,
|
|
223
227
|
_sStatus: STOPPED,
|
|
224
|
-
|
|
228
|
+
_bNavigationModeWarningShown: false,
|
|
225
229
|
constructor: function() {
|
|
226
230
|
// call parent constructor
|
|
227
231
|
ManagedObject.apply(this, arguments);
|
|
@@ -247,10 +251,6 @@ sap.ui.define([
|
|
|
247
251
|
this.startService("receiver");
|
|
248
252
|
}
|
|
249
253
|
|
|
250
|
-
if (this._shouldValidateFlexEnabled()) {
|
|
251
|
-
this.attachEvent("start", validateFlexEnabled.bind(null, this));
|
|
252
|
-
}
|
|
253
|
-
|
|
254
254
|
this._loadUShellServicesPromise = FlexUtils.getUShellServices(["URLParsing", "AppLifeCycle", "CrossApplicationNavigation"])
|
|
255
255
|
.then(function (mUShellServices) {
|
|
256
256
|
this._mUShellServices = mUShellServices;
|
|
@@ -264,15 +264,11 @@ sap.ui.define([
|
|
|
264
264
|
});
|
|
265
265
|
|
|
266
266
|
RuntimeAuthoring.prototype._shouldValidateFlexEnabled = function () {
|
|
267
|
-
var
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
bShouldValidateFlexEnabled = sUriParam !== "true";
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
return bShouldValidateFlexEnabled;
|
|
267
|
+
var sUriParam = UriParameters.fromQuery(window.location.search).get("sap-ui-rta-skip-flex-validation");
|
|
268
|
+
return Settings.getInstance()
|
|
269
|
+
.then(function (oSettings) {
|
|
270
|
+
return !oSettings.isCustomerSystem() && sUriParam !== "true";
|
|
271
|
+
});
|
|
276
272
|
};
|
|
277
273
|
|
|
278
274
|
RuntimeAuthoring.prototype.addDependent = function (oObject, sName, bCreateGetter) {
|
|
@@ -362,12 +358,12 @@ sap.ui.define([
|
|
|
362
358
|
* Setter for flexSettings. Checks the Uri for parameters that override the layer.
|
|
363
359
|
* builds the rootNamespace and namespace parameters from the other parameters
|
|
364
360
|
*
|
|
365
|
-
* @param {
|
|
366
|
-
* @param {
|
|
367
|
-
* @param {
|
|
368
|
-
* @param {
|
|
369
|
-
* @param {
|
|
370
|
-
* @param {
|
|
361
|
+
* @param {object} [mFlexSettings] property bag
|
|
362
|
+
* @param {string} [mFlexSettings.layer] The Layer in which RTA should be started. Default: "CUSTOMER"
|
|
363
|
+
* @param {boolean} [mFlexSettings.developerMode] Whether RTA is started in DeveloperMode Mode. Whether RTA is started in DeveloperMode Mode
|
|
364
|
+
* @param {string} [mFlexSettings.baseId] base ID of the app
|
|
365
|
+
* @param {string} [mFlexSettings.projectId] project ID
|
|
366
|
+
* @param {string} [mFlexSettings.scenario] Key representing the current scenario
|
|
371
367
|
*/
|
|
372
368
|
RuntimeAuthoring.prototype.setFlexSettings = function(mFlexSettings) {
|
|
373
369
|
// Check URI-parameters for sap-ui-layer
|
|
@@ -393,7 +389,7 @@ sap.ui.define([
|
|
|
393
389
|
/**
|
|
394
390
|
* Checks the uri parameters for "sap-ui-layer" and returns either the current layer or the layer from the uri parameter, if there is one
|
|
395
391
|
*
|
|
396
|
-
* @returns {
|
|
392
|
+
* @returns {string} the layer after checking the uri parameters
|
|
397
393
|
* @private
|
|
398
394
|
*/
|
|
399
395
|
RuntimeAuthoring.prototype.getLayer = function () {
|
|
@@ -422,6 +418,15 @@ sap.ui.define([
|
|
|
422
418
|
}).then(this._setVersionsModel.bind(this));
|
|
423
419
|
};
|
|
424
420
|
|
|
421
|
+
RuntimeAuthoring.prototype._onPersonalizationChangeCreation = function() {
|
|
422
|
+
if (this.getMode() === "navigation" && !this._bNavigationModeWarningShown) {
|
|
423
|
+
this._showMessageToast("MSG_NAVIGATION_MODE_CHANGES_WARNING", {
|
|
424
|
+
duration: 5000
|
|
425
|
+
});
|
|
426
|
+
this._bNavigationModeWarningShown = true;
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
|
|
425
430
|
function addOrRemoveStyleClass(oRootControl, bAdd) {
|
|
426
431
|
if (oRootControl.isA("sap.ui.core.UIComponent")) {
|
|
427
432
|
oRootControl = oRootControl.getRootControl();
|
|
@@ -547,8 +552,17 @@ sap.ui.define([
|
|
|
547
552
|
.then(function() {
|
|
548
553
|
this.fnKeyDown = this._onKeyDown.bind(this);
|
|
549
554
|
jQuery(document).on("keydown", this.fnKeyDown);
|
|
555
|
+
this.fnOnPersonalizationChangeCreation = this._onPersonalizationChangeCreation.bind(this);
|
|
556
|
+
ControlPersonalizationWriteAPI.attachChangeCreation(
|
|
557
|
+
this.getRootControlInstance(),
|
|
558
|
+
this.fnOnPersonalizationChangeCreation
|
|
559
|
+
);
|
|
550
560
|
}.bind(this))
|
|
551
|
-
.then(
|
|
561
|
+
.then(this._shouldValidateFlexEnabled)
|
|
562
|
+
.then(function (bShouldValidateFlexEnabled) {
|
|
563
|
+
if (bShouldValidateFlexEnabled) {
|
|
564
|
+
validateFlexEnabled(this);
|
|
565
|
+
}
|
|
552
566
|
this._sStatus = STARTED;
|
|
553
567
|
this.fireStart({
|
|
554
568
|
editablePluginsCount: this.getPluginManager().getEditableOverlaysCount()
|
|
@@ -607,7 +621,7 @@ sap.ui.define([
|
|
|
607
621
|
});
|
|
608
622
|
};
|
|
609
623
|
|
|
610
|
-
|
|
624
|
+
function showTechnicalError(vError) {
|
|
611
625
|
BusyIndicator.hide();
|
|
612
626
|
var sErrorMessage = vError.userMessage || vError.stack || vError.message || vError.status || vError;
|
|
613
627
|
var oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
@@ -617,7 +631,7 @@ sap.ui.define([
|
|
|
617
631
|
MessageBox.error(sMsg, {
|
|
618
632
|
styleClass: Utils.getRtaStyleClassName()
|
|
619
633
|
});
|
|
620
|
-
}
|
|
634
|
+
}
|
|
621
635
|
|
|
622
636
|
/**
|
|
623
637
|
* @override
|
|
@@ -771,7 +785,7 @@ sap.ui.define([
|
|
|
771
785
|
return undefined;
|
|
772
786
|
}.bind(this));
|
|
773
787
|
}.bind(this))
|
|
774
|
-
.catch(
|
|
788
|
+
.catch(showTechnicalError)
|
|
775
789
|
.then(function () {
|
|
776
790
|
this._checkToolbarAndExecuteFunction("setBusy", false);
|
|
777
791
|
this._sStatus = STOPPED;
|
|
@@ -1106,13 +1120,6 @@ sap.ui.define([
|
|
|
1106
1120
|
}.bind(this));
|
|
1107
1121
|
}
|
|
1108
1122
|
|
|
1109
|
-
/*
|
|
1110
|
-
FeaturesAPI.isKeyUserTranslationEnabled(this.getLayer()).then(function() {
|
|
1111
|
-
this._oToolbarControlsModel.setProperty("/translationVisible", true);
|
|
1112
|
-
}.bind(this));
|
|
1113
|
-
*/
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
1123
|
this.getToolbar().setModel(this._oVersionsModel, "versions");
|
|
1117
1124
|
this.getToolbar().setModel(this._oToolbarControlsModel, "controls");
|
|
1118
1125
|
}.bind(this));
|
|
@@ -1142,6 +1149,13 @@ sap.ui.define([
|
|
|
1142
1149
|
|
|
1143
1150
|
// detach browser events
|
|
1144
1151
|
jQuery(document).off("keydown", this.fnKeyDown);
|
|
1152
|
+
|
|
1153
|
+
if (this.fnOnPersonalizationChangeCreation) {
|
|
1154
|
+
ControlPersonalizationWriteAPI.detachChangeCreation(
|
|
1155
|
+
this.getRootControlInstance(),
|
|
1156
|
+
this.fnOnPersonalizationChangeCreation
|
|
1157
|
+
);
|
|
1158
|
+
}
|
|
1145
1159
|
}
|
|
1146
1160
|
|
|
1147
1161
|
if (this.getRootControlInstance()) {
|
|
@@ -1205,7 +1219,7 @@ sap.ui.define([
|
|
|
1205
1219
|
}
|
|
1206
1220
|
}.bind(this));
|
|
1207
1221
|
}.bind(this));
|
|
1208
|
-
}.bind(this))["catch"](
|
|
1222
|
+
}.bind(this))["catch"](showTechnicalError);
|
|
1209
1223
|
};
|
|
1210
1224
|
|
|
1211
1225
|
/**
|
|
@@ -1788,13 +1802,6 @@ sap.ui.define([
|
|
|
1788
1802
|
oTabHandlingPlugin[(sNewMode === "navigation") ? "restoreTabIndex" : "removeTabIndex"]();
|
|
1789
1803
|
}
|
|
1790
1804
|
|
|
1791
|
-
if (sNewMode === "navigation" && !this._bHasSwitchedToNavigationMode) {
|
|
1792
|
-
this._showMessageToast("MSG_NAVIGATION_MODE_CHANGES_WARNING", {
|
|
1793
|
-
duration: 5000
|
|
1794
|
-
});
|
|
1795
|
-
this._bHasSwitchedToNavigationMode = true;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
1805
|
oTabHandlingPlugin[(sNewMode === "adaptation") ? "restoreOverlayTabIndex" : "removeOverlayTabIndex"]();
|
|
1799
1806
|
oSelectionPlugin.setIsActive(!(sNewMode === "visualization"));
|
|
1800
1807
|
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -46,7 +46,7 @@ function(
|
|
|
46
46
|
* @class Utility functionality to work with controls, e.g. iterate through aggregations, find parents, etc.
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.99.0
|
|
50
50
|
*
|
|
51
51
|
* @private
|
|
52
52
|
* @static
|
|
@@ -344,7 +344,7 @@ function(
|
|
|
344
344
|
* @param {sap.ui.core.Element} oChildElement - Element which position is being looked for
|
|
345
345
|
* @param {string} sAggregationName - Aggregation name
|
|
346
346
|
* @param {Function} [fnGetIndex] - Custom handler for retreiving index
|
|
347
|
-
* @returns {
|
|
347
|
+
* @returns {int} index of the element
|
|
348
348
|
*/
|
|
349
349
|
Utils.getIndex = function(oParentElement, oChildElement, sAggregationName, fnGetIndex) {
|
|
350
350
|
var iIndex;
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
});
|