@openui5/sap.ui.rta 1.142.1 → 1.143.1
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/.eslintrc.json +3 -2
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -2
- package/src/sap/ui/rta/RuntimeAuthoring.js +18 -27
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +0 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +4 -4
- package/src/sap/ui/rta/appVariant/Feature.js +1 -1
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +2 -3
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +0 -1
- 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/AnnotationCommand.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 +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +1 -1
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -3
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -2
- 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/ExtendControllerCommand.js +9 -2
- package/src/sap/ui/rta/command/FlexCommand.js +3 -3
- 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/ManifestCommand.js +2 -2
- 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/Resize.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 +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +3 -3
- package/src/sap/ui/rta/command/manifest/AddLibrary.js +2 -2
- package/src/sap/ui/rta/enablement/elementActionTest.js +5 -5
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +2 -0
- package/src/sap/ui/rta/messagebundle_ar.properties +3 -0
- package/src/sap/ui/rta/messagebundle_bg.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ca.properties +3 -0
- package/src/sap/ui/rta/messagebundle_cnr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_cs.properties +3 -0
- package/src/sap/ui/rta/messagebundle_cy.properties +3 -0
- package/src/sap/ui/rta/messagebundle_da.properties +3 -0
- package/src/sap/ui/rta/messagebundle_de.properties +3 -0
- package/src/sap/ui/rta/messagebundle_el.properties +3 -0
- package/src/sap/ui/rta/messagebundle_en.properties +3 -0
- package/src/sap/ui/rta/messagebundle_en_GB.properties +3 -0
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_es.properties +3 -0
- package/src/sap/ui/rta/messagebundle_es_MX.properties +3 -0
- package/src/sap/ui/rta/messagebundle_et.properties +3 -0
- package/src/sap/ui/rta/messagebundle_fi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_fr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +3 -0
- package/src/sap/ui/rta/messagebundle_hi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_hr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_hu.properties +3 -0
- package/src/sap/ui/rta/messagebundle_id.properties +3 -0
- package/src/sap/ui/rta/messagebundle_it.properties +3 -0
- package/src/sap/ui/rta/messagebundle_iw.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ja.properties +3 -0
- package/src/sap/ui/rta/messagebundle_kk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ko.properties +3 -0
- package/src/sap/ui/rta/messagebundle_lt.properties +3 -0
- package/src/sap/ui/rta/messagebundle_lv.properties +3 -0
- package/src/sap/ui/rta/messagebundle_mk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ms.properties +3 -0
- package/src/sap/ui/rta/messagebundle_nl.properties +3 -0
- package/src/sap/ui/rta/messagebundle_no.properties +3 -0
- package/src/sap/ui/rta/messagebundle_pl.properties +3 -0
- package/src/sap/ui/rta/messagebundle_pt.properties +3 -0
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ro.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ru.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sh.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sl.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sv.properties +3 -0
- package/src/sap/ui/rta/messagebundle_th.properties +3 -0
- package/src/sap/ui/rta/messagebundle_tr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_uk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_vi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +3 -0
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +3 -0
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +3 -3
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/CompVariant.js +1 -1
- 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 +2 -2
- package/src/sap/ui/rta/plugin/DragDrop.js +3 -3
- package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +3 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +3 -3
- package/src/sap/ui/rta/plugin/Plugin.js +9 -9
- 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/Resize.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- 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 +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +3 -3
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +61 -48
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -3
- 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/annotations/AnnotationChangeDialog.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +4 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +3 -4
- package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/rename/RenameDialog.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +10 -5
- package/src/sap/ui/rta/service/Outline.js +3 -3
- package/src/sap/ui/rta/service/Property.js +10 -10
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +1 -1
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +5 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +1 -0
- package/src/sap/ui/rta/toolbar/Adaptation.js +5 -5
- package/src/sap/ui/rta/toolbar/Base.js +2 -3
- 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 +2 -2
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +3 -4
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +4 -5
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -2
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +3 -4
- package/src/sap/ui/rta/util/Animation.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +3 -3
- package/src/sap/ui/rta/util/ReloadManager.js +2 -2
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.js +1 -2
- package/src/sap/ui/rta/util/adaptationStarter.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/resolveBinding.js +1 -1
- package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
package/.eslintrc.json
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"prefer-template": "error",
|
|
57
57
|
"rest-spread-spacing": ["error", "never"],
|
|
58
58
|
"template-curly-spacing": "error",
|
|
59
|
-
"object-shorthand": ["error", "always", { "ignoreConstructors":
|
|
59
|
+
"object-shorthand": ["error", "always", { "ignoreConstructors": true, "avoidQuotes": true, "methodsIgnorePattern": "^constructor$" }],
|
|
60
60
|
"prefer-destructuring": ["error", {
|
|
61
61
|
"VariableDeclarator": {
|
|
62
62
|
"array": false,
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"prefer-rest-params": "error",
|
|
74
74
|
"prefer-spread": "error",
|
|
75
75
|
"logical-assignment-operators":["error", "always", { "enforceForIfStatements": true } ],
|
|
76
|
-
"require-await": "error"
|
|
76
|
+
"require-await": "error",
|
|
77
|
+
"object-curly-spacing": ["error", "always"]
|
|
77
78
|
}
|
|
78
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.143.1",
|
|
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/UI5/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.143.1",
|
|
18
|
+
"@openui5/sap.ui.core": "1.143.1",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.143.1",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.143.1",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.143.1"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2025 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.143.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
* @alias sap.ui.rta.Client
|
|
60
60
|
* @author SAP SE
|
|
61
61
|
* @since 1.56.0
|
|
62
|
-
* @version 1.
|
|
62
|
+
* @version 1.143.1
|
|
63
63
|
* @private
|
|
64
64
|
* @ui5-restricted
|
|
65
65
|
*/
|
|
@@ -86,7 +86,6 @@ sap.ui.define([
|
|
|
86
86
|
*/
|
|
87
87
|
_bInit: false,
|
|
88
88
|
|
|
89
|
-
// eslint-disable-next-line object-shorthand
|
|
90
89
|
constructor: function(...aArgs) {
|
|
91
90
|
ManagedObject.apply(this, aArgs);
|
|
92
91
|
|
|
@@ -116,7 +116,7 @@ sap.ui.define([
|
|
|
116
116
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
117
117
|
* @extends sap.ui.base.ManagedObject
|
|
118
118
|
* @author SAP SE
|
|
119
|
-
* @version 1.
|
|
119
|
+
* @version 1.143.1
|
|
120
120
|
* @constructor
|
|
121
121
|
* @private
|
|
122
122
|
* @since 1.30
|
|
@@ -231,7 +231,6 @@ sap.ui.define([
|
|
|
231
231
|
_dependents: null,
|
|
232
232
|
_sStatus: STOPPED,
|
|
233
233
|
_bNavigationModeWarningShown: false,
|
|
234
|
-
// eslint-disable-next-line object-shorthand
|
|
235
234
|
constructor: function(...aArgs) {
|
|
236
235
|
ManagedObject.apply(this, aArgs);
|
|
237
236
|
|
|
@@ -464,7 +463,7 @@ sap.ui.define([
|
|
|
464
463
|
const oFlexInfoSession = PersistenceWriteAPI.getResetAndPublishInfoFromSession(oRootControl);
|
|
465
464
|
this.bInitialResetEnabled = !!oFlexInfoSession.isResetEnabled;
|
|
466
465
|
|
|
467
|
-
this._oSerializer = new LREPSerializer({commandStack: this.getCommandStack(), rootControl: this.getRootControl()});
|
|
466
|
+
this._oSerializer = new LREPSerializer({ commandStack: this.getCommandStack(), rootControl: this.getRootControl() });
|
|
468
467
|
|
|
469
468
|
this.getPluginManager().preparePlugins(
|
|
470
469
|
this.getFlexSettings(),
|
|
@@ -559,7 +558,7 @@ sap.ui.define([
|
|
|
559
558
|
this.destroy();
|
|
560
559
|
} else {
|
|
561
560
|
this._sStatus = FAILED;
|
|
562
|
-
this.fireFailed({vError: vError.message});
|
|
561
|
+
this.fireFailed({ vError: vError.message });
|
|
563
562
|
}
|
|
564
563
|
throw vError;
|
|
565
564
|
}
|
|
@@ -583,7 +582,7 @@ sap.ui.define([
|
|
|
583
582
|
// RTA Visual Improvements
|
|
584
583
|
document.body.classList.add("sapUiRtaMode");
|
|
585
584
|
this._oDesignTime.getSelectionManager().attachChange(function(oEvent) {
|
|
586
|
-
this.fireSelectionChange({selection: oEvent.getParameter("selection")});
|
|
585
|
+
this.fireSelectionChange({ selection: oEvent.getParameter("selection") });
|
|
587
586
|
}, this);
|
|
588
587
|
|
|
589
588
|
this._oDesignTime.attachEventOnce("synced", function() {
|
|
@@ -625,7 +624,7 @@ sap.ui.define([
|
|
|
625
624
|
let bUserCancelled;
|
|
626
625
|
checkToolbarAndExecuteFunction.call(this, "setBusy", true);
|
|
627
626
|
try {
|
|
628
|
-
bSkipSave ||= !PersistenceWriteAPI.hasDirtyChanges({selector: this.getRootControlInstance()});
|
|
627
|
+
bSkipSave ||= !PersistenceWriteAPI.hasDirtyChanges({ selector: this.getRootControlInstance() });
|
|
629
628
|
await waitForPendingActions.call(this);
|
|
630
629
|
if (!bSkipSave && this.canSave() && !bSkipUnsavedChangesPrompt) {
|
|
631
630
|
const sAction = await showSaveConfirmation.call(this);
|
|
@@ -763,7 +762,7 @@ sap.ui.define([
|
|
|
763
762
|
|
|
764
763
|
this._oToolbarControlsModel.setProperty("/modeSwitcher", sNewMode);
|
|
765
764
|
this.setProperty("mode", sNewMode);
|
|
766
|
-
this.fireModeChanged({mode: sNewMode});
|
|
765
|
+
this.fireModeChanged({ mode: sNewMode });
|
|
767
766
|
}
|
|
768
767
|
};
|
|
769
768
|
|
|
@@ -1164,10 +1163,10 @@ sap.ui.define([
|
|
|
1164
1163
|
const bCanSave = oCommandStack.canSave();
|
|
1165
1164
|
const bWasSaved = oCommandStack.getSaved();
|
|
1166
1165
|
const bTranslationRelevantDirtyChange = this._oToolbarControlsModel.getProperty("/translation/visible") &&
|
|
1167
|
-
TranslationAPI.hasTranslationRelevantDirtyChanges({layer: Layer.CUSTOMER, selector: this.getRootControlInstance()});
|
|
1166
|
+
TranslationAPI.hasTranslationRelevantDirtyChanges({ layer: Layer.CUSTOMER, selector: this.getRootControlInstance() });
|
|
1168
1167
|
|
|
1169
1168
|
// TODO: move to the setter to the ChangesState
|
|
1170
|
-
this._oVersionsModel.setDirtyChanges(PersistenceWriteAPI.hasDirtyChanges({selector: this.getRootControlInstance()}));
|
|
1169
|
+
this._oVersionsModel.setDirtyChanges(PersistenceWriteAPI.hasDirtyChanges({ selector: this.getRootControlInstance() }));
|
|
1171
1170
|
this._oToolbarControlsModel.setProperty("/undo/enabled", bCanUndo);
|
|
1172
1171
|
this._oToolbarControlsModel.setProperty("/redo/enabled", bCanRedo);
|
|
1173
1172
|
this._oToolbarControlsModel.setProperty("/save/enabled", bCanSave);
|
|
@@ -1252,18 +1251,10 @@ sap.ui.define([
|
|
|
1252
1251
|
}
|
|
1253
1252
|
await this.save();
|
|
1254
1253
|
if (this._oVersionsModel.getProperty("/versioningEnabled")) {
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
});
|
|
1260
|
-
} else {
|
|
1261
|
-
await VersionsAPI.loadVersionForApplication({
|
|
1262
|
-
control: this.getRootControlInstance(),
|
|
1263
|
-
layer: this.getLayer(),
|
|
1264
|
-
version: this._oVersionsModel.getProperty("/displayedVersion")
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1254
|
+
await VersionsAPI.loadDraftForApplication({
|
|
1255
|
+
control: this.getRootControlInstance(),
|
|
1256
|
+
layer: this.getLayer()
|
|
1257
|
+
});
|
|
1267
1258
|
}
|
|
1268
1259
|
RuntimeAuthoring.enableRestart(this.getLayer(), this.getRootControlInstance());
|
|
1269
1260
|
await this.stop(true, true, true);
|
|
@@ -1360,7 +1351,7 @@ sap.ui.define([
|
|
|
1360
1351
|
this._oToolbarControlsModel.setProperty("/restore/enabled", true);
|
|
1361
1352
|
this.getCommandStack().removeAllCommands();
|
|
1362
1353
|
} catch (oError) {
|
|
1363
|
-
Utils.showMessageBox("error", "MSG_DRAFT_ACTIVATION_FAILED", {error: oError});
|
|
1354
|
+
Utils.showMessageBox("error", "MSG_DRAFT_ACTIVATION_FAILED", { error: oError });
|
|
1364
1355
|
}
|
|
1365
1356
|
}
|
|
1366
1357
|
|
|
@@ -1479,7 +1470,7 @@ sap.ui.define([
|
|
|
1479
1470
|
}
|
|
1480
1471
|
})
|
|
1481
1472
|
.catch(function(oError) {
|
|
1482
|
-
Utils.showMessageBox("error", "MSG_SWITCH_ADAPTATION_FAILED", {error: oError});
|
|
1473
|
+
Utils.showMessageBox("error", "MSG_SWITCH_ADAPTATION_FAILED", { error: oError });
|
|
1483
1474
|
Log.error(`sap.ui.rta: ${oError.stack || oError.message || oError}`);
|
|
1484
1475
|
});
|
|
1485
1476
|
}
|
|
@@ -1504,7 +1495,7 @@ sap.ui.define([
|
|
|
1504
1495
|
switchVersion.bind(this, this._sSwitchToVersion))
|
|
1505
1496
|
.then(fnCallback)
|
|
1506
1497
|
.catch(function(oError) {
|
|
1507
|
-
Utils.showMessageBox("error", "MSG_SWITCH_VERSION_FAILED", {error: oError.stack});
|
|
1498
|
+
Utils.showMessageBox("error", "MSG_SWITCH_VERSION_FAILED", { error: oError.stack });
|
|
1508
1499
|
Log.error(`sap.ui.rta: ${oError.stack || oError.message || oError}`);
|
|
1509
1500
|
});
|
|
1510
1501
|
}
|
|
@@ -1708,7 +1699,7 @@ sap.ui.define([
|
|
|
1708
1699
|
|
|
1709
1700
|
if (bTranslationAvailable) {
|
|
1710
1701
|
TranslationAPI.getSourceLanguages(
|
|
1711
|
-
{selector: this.getRootControlInstance(), layer: this.getLayer()}
|
|
1702
|
+
{ selector: this.getRootControlInstance(), layer: this.getLayer() }
|
|
1712
1703
|
).then(function(aSourceLanguages) {
|
|
1713
1704
|
this.bPersistedDataTranslatable = aSourceLanguages.length > 0;
|
|
1714
1705
|
this._oToolbarControlsModel.setProperty("/translation/enabled", this.bPersistedDataTranslatable);
|
|
@@ -1747,7 +1738,7 @@ sap.ui.define([
|
|
|
1747
1738
|
}.bind(this))
|
|
1748
1739
|
.catch(function(oError) {
|
|
1749
1740
|
if (oError !== "cancel") {
|
|
1750
|
-
Utils.showMessageBox("error", "MSG_RESTORE_FAILED", {error: oError});
|
|
1741
|
+
Utils.showMessageBox("error", "MSG_RESTORE_FAILED", { error: oError });
|
|
1751
1742
|
}
|
|
1752
1743
|
});
|
|
1753
1744
|
}
|
|
@@ -1798,7 +1789,7 @@ sap.ui.define([
|
|
|
1798
1789
|
// Error handling when a command fails is done in the Stack
|
|
1799
1790
|
.catch(function(oError) {
|
|
1800
1791
|
if (oError?.message?.indexOf?.("The following Change cannot be applied because of a dependency") > -1) {
|
|
1801
|
-
Utils.showMessageBox("error", "MSG_DEPENDENCY_ERROR", {error: oError});
|
|
1792
|
+
Utils.showMessageBox("error", "MSG_DEPENDENCY_ERROR", { error: oError });
|
|
1802
1793
|
}
|
|
1803
1794
|
Log.error("sap.ui.rta:", oError.message, oError.stack);
|
|
1804
1795
|
});
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -59,9 +59,9 @@ sap.ui.define([
|
|
|
59
59
|
"use strict";
|
|
60
60
|
|
|
61
61
|
// shortcut for sap.ui.layout.form.SimpleFormLayout
|
|
62
|
-
var {SimpleFormLayout} = layoutLibrary.form;
|
|
62
|
+
var { SimpleFormLayout } = layoutLibrary.form;
|
|
63
63
|
|
|
64
|
-
var {ValueState} = coreLibrary;
|
|
64
|
+
var { ValueState } = coreLibrary;
|
|
65
65
|
|
|
66
66
|
var oResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
67
67
|
var oDataSet;
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
AppVariantUtils._newAppVariantId = null;
|
|
41
41
|
|
|
42
42
|
AppVariantUtils.getManifirstSupport = function(sRunningAppId) {
|
|
43
|
-
return LrepConnector.appVariant.getManifirstSupport({appId: sRunningAppId});
|
|
43
|
+
return LrepConnector.appVariant.getManifirstSupport({ appId: sRunningAppId });
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
AppVariantUtils.getNewAppVariantId = function() {
|
|
@@ -299,7 +299,7 @@ sap.ui.define([
|
|
|
299
299
|
oChangeSpecificData.texts = oPropertyChange.texts;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
return ChangesWriteAPI.create({changeSpecificData: oChangeSpecificData, selector: vSelector});
|
|
302
|
+
return ChangesWriteAPI.create({ changeSpecificData: oChangeSpecificData, selector: vSelector });
|
|
303
303
|
};
|
|
304
304
|
|
|
305
305
|
AppVariantUtils.addChangesToPersistence = function(aAllInlineChanges, vSelector) {
|
|
@@ -545,7 +545,7 @@ sap.ui.define([
|
|
|
545
545
|
})
|
|
546
546
|
.then(function(oCrossAppNav) {
|
|
547
547
|
if (oCrossAppNav && oCrossAppNav.navigate) {
|
|
548
|
-
oCrossAppNav.navigate({target: {shellHash: "#"}}, oComponentInstance);
|
|
548
|
+
oCrossAppNav.navigate({ target: { shellHash: "#" } }, oComponentInstance);
|
|
549
549
|
}
|
|
550
550
|
})
|
|
551
551
|
.catch(function(vError) {
|
|
@@ -569,7 +569,7 @@ sap.ui.define([
|
|
|
569
569
|
|
|
570
570
|
AppVariantUtils.showMessage = function(sMessageKey) {
|
|
571
571
|
var sMessage = AppVariantUtils.getText(sMessageKey);
|
|
572
|
-
var oInfo = { text: sMessage, copyId: false};
|
|
572
|
+
var oInfo = { text: sMessage, copyId: false };
|
|
573
573
|
return AppVariantUtils.showRelevantDialog(oInfo, true);
|
|
574
574
|
};
|
|
575
575
|
|
|
@@ -78,7 +78,7 @@ sap.ui.define([
|
|
|
78
78
|
if (!Array.isArray(oResult.response.CatalogIds) || oResult.response.CatalogIds.length === 0) {
|
|
79
79
|
const sMessage = AppVariantUtils.getText("MSG_BASE_APP_CATALOGS_NOT_FOUND", sAppVariantId);
|
|
80
80
|
const sTitle = AppVariantUtils.getText("HEADER_SAVE_APP_VARIANT_FAILED");
|
|
81
|
-
showMessageBox(sMessage, {title: sTitle}, "error");
|
|
81
|
+
showMessageBox(sMessage, { title: sTitle }, "error");
|
|
82
82
|
return Promise.reject();
|
|
83
83
|
}
|
|
84
84
|
return oAppVariantManager.notifyKeyUserWhenPublishingIsReady(oResult.response.IAMId, sAppVariantId, true);
|
|
@@ -22,7 +22,6 @@ sap.ui.define([
|
|
|
22
22
|
metadata: {
|
|
23
23
|
library: "sap.ui.rta"
|
|
24
24
|
},
|
|
25
|
-
// eslint-disable-next-line object-shorthand
|
|
26
25
|
constructor: function(...aArgs) {
|
|
27
26
|
ManagedObject.apply(this, aArgs);
|
|
28
27
|
}
|
|
@@ -73,7 +72,7 @@ sap.ui.define([
|
|
|
73
72
|
}).catch(function(oError) {
|
|
74
73
|
var sText = bAppVarCreation ? "creation" : "deletion";
|
|
75
74
|
Log.error(`Catalog publishing failed for app variant ${sText}. AppVarStatus is ${oError.message}`);
|
|
76
|
-
reject({ iamAppId: sIamAppId, error: oError.message});
|
|
75
|
+
reject({ iamAppId: sIamAppId, error: oError.message });
|
|
77
76
|
});
|
|
78
77
|
}
|
|
79
78
|
|
|
@@ -139,7 +138,7 @@ sap.ui.define([
|
|
|
139
138
|
reject(oError);
|
|
140
139
|
};
|
|
141
140
|
|
|
142
|
-
oModel.read(`/aps_iam_app_ddl('${sIamAppId}')/to_BusinessCatalogAssignment`, {success: fnSuccess, error: fnFailure});
|
|
141
|
+
oModel.read(`/aps_iam_app_ddl('${sIamAppId}')/to_BusinessCatalogAssignment`, { success: fnSuccess, error: fnFailure });
|
|
143
142
|
});
|
|
144
143
|
};
|
|
145
144
|
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @class
|
|
29
29
|
* @extends sap.ui.rta.command.BaseCommand
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.143.1
|
|
32
32
|
* @constructor
|
|
33
33
|
* @private
|
|
34
34
|
* @since 1.52
|
|
@@ -82,7 +82,7 @@ sap.ui.define([
|
|
|
82
82
|
if (this.getChanges().some((oChange) => {
|
|
83
83
|
if (
|
|
84
84
|
oChange.visible === false
|
|
85
|
-
&& oChange.variantReference === oVariantManagementControl.
|
|
85
|
+
&& oChange.variantReference === oVariantManagementControl.getCurrentVariantReference()
|
|
86
86
|
) {
|
|
87
87
|
this._sOldVReference = oChange.variantReference;
|
|
88
88
|
return true;
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @class
|
|
21
21
|
* @extends sap.ui.rta.command.BaseCommand
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.143.1
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
26
26
|
* @since 1.86
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
this._aControlChanges = VariantManager.getControlChangesForVariant(
|
|
46
46
|
this.sFlexReference,
|
|
47
47
|
oVMControl.getVariantManagementReference(),
|
|
48
|
-
oVMControl.
|
|
48
|
+
oVMControl.getCurrentVariantReference()
|
|
49
49
|
);
|
|
50
50
|
this._aDirtyChanges = VariantManager.getDirtyChangesFromVariantChanges(this._aControlChanges, this.sFlexReference);
|
|
51
51
|
this._aDirtyChanges.forEach((oChange) => {
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @class
|
|
31
31
|
* @extends sap.ui.rta.command.BaseCommand
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.143.1
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.86
|
|
@@ -81,8 +81,8 @@ sap.ui.define([
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const bState = await new Promise((resolve) => {
|
|
84
|
-
this.oVariantManagementControl.attachSave({resolve}, storeEventParameters, this);
|
|
85
|
-
this.oVariantManagementControl.attachCancel({resolve}, handleCancel, this);
|
|
84
|
+
this.oVariantManagementControl.attachSave({ resolve }, storeEventParameters, this);
|
|
85
|
+
this.oVariantManagementControl.attachCancel({ resolve }, handleCancel, this);
|
|
86
86
|
this.oVariantManagementControl.openSaveAsDialogForKeyUser(
|
|
87
87
|
rtaUtils.getRtaStyleClassName(),
|
|
88
88
|
ContextSharingAPI.createComponent(mComponentPropertyBag)
|
|
@@ -148,6 +148,7 @@ sap.ui.define([
|
|
|
148
148
|
variant: this._oVariantChange,
|
|
149
149
|
sourceVariantReference: this.getSourceVariantReference(),
|
|
150
150
|
variantManagementReference: this.sVariantManagementReference,
|
|
151
|
+
vmControl: this.getElement(),
|
|
151
152
|
appComponent: this.oAppComponent
|
|
152
153
|
};
|
|
153
154
|
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @class
|
|
23
23
|
* @extends sap.ui.rta.command.BaseCommand
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.143.1
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
28
28
|
* @since 1.50
|
|
@@ -70,7 +70,7 @@ sap.ui.define([
|
|
|
70
70
|
|
|
71
71
|
this.oAppComponent = flUtils.getAppComponentForControl(oVariantManagementControl);
|
|
72
72
|
this.sVariantManagementReference = oVariantManagementControl.getVariantManagementReference();
|
|
73
|
-
this.sCurrentVariantKey = oVariantManagementControl.
|
|
73
|
+
this.sCurrentVariantKey = oVariantManagementControl.getCurrentVariantReference();
|
|
74
74
|
|
|
75
75
|
const sCurrentTitle = oVariantManagementControl.getVariantByKey(this.sCurrentVariantKey).getTitle();
|
|
76
76
|
this.setOldText(sCurrentTitle);
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @class
|
|
23
23
|
* @extends sap.ui.rta.command.BaseCommand
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.143.1
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
28
28
|
* @since 1.50
|
|
@@ -51,7 +51,6 @@ sap.ui.define([
|
|
|
51
51
|
associations: {},
|
|
52
52
|
events: {}
|
|
53
53
|
},
|
|
54
|
-
// eslint-disable-next-line object-shorthand
|
|
55
54
|
constructor: function(...aArgs) {
|
|
56
55
|
BaseCommand.apply(this, aArgs);
|
|
57
56
|
this.setRelevantForSave(false);
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @class
|
|
23
23
|
* @extends sap.ui.rta.command.FlexCommand
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.143.1
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
28
28
|
* @since 1.135
|
|
@@ -41,6 +41,9 @@ sap.ui.define([
|
|
|
41
41
|
},
|
|
42
42
|
viewId: {
|
|
43
43
|
type: "string"
|
|
44
|
+
},
|
|
45
|
+
instanceSpecific: {
|
|
46
|
+
type: "boolean"
|
|
44
47
|
}
|
|
45
48
|
},
|
|
46
49
|
associations: {},
|
|
@@ -55,7 +58,7 @@ sap.ui.define([
|
|
|
55
58
|
const oAppComponent = this.getAppComponent();
|
|
56
59
|
const sControllerName = oView.getControllerModuleName() ? `module:${oView.getControllerModuleName()}` : oView.getController()?.getMetadata().getName();
|
|
57
60
|
// Calculate moduleName for code extension
|
|
58
|
-
const sReference = FlexRuntimeInfoAPI.getFlexReference({element: oAppComponent});
|
|
61
|
+
const sReference = FlexRuntimeInfoAPI.getFlexReference({ element: oAppComponent });
|
|
59
62
|
const sModuleName = `${sReference.replace(/\.Component/g, "").replace(/\./g, "/")}/changes/${sCodeRef.replace(/\.js/g, "")}`;
|
|
60
63
|
|
|
61
64
|
const oChangeSpecificData = {
|
|
@@ -68,6 +71,10 @@ sap.ui.define([
|
|
|
68
71
|
generator: "sap.ui.rta.command.ExtendControllerCommand"
|
|
69
72
|
};
|
|
70
73
|
|
|
74
|
+
if (this.getInstanceSpecific()) {
|
|
75
|
+
oChangeSpecificData.viewId = sViewId;
|
|
76
|
+
}
|
|
77
|
+
|
|
71
78
|
return ChangesWriteAPI.create({
|
|
72
79
|
changeSpecificData: oChangeSpecificData,
|
|
73
80
|
selector: oAppComponent
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.rta.command.BaseCommand
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.143.1
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -227,7 +227,7 @@ sap.ui.define([
|
|
|
227
227
|
oChange.addDependentControl(
|
|
228
228
|
mFlexSettings.originalSelector,
|
|
229
229
|
"originalSelector",
|
|
230
|
-
{modifier: JsControlTreeModifier, appComponent: this.getAppComponent()}
|
|
230
|
+
{ modifier: JsControlTreeModifier, appComponent: this.getAppComponent() }
|
|
231
231
|
);
|
|
232
232
|
oChange.setSelector({
|
|
233
233
|
...oChange.getSelector(),
|
|
@@ -245,7 +245,7 @@ sap.ui.define([
|
|
|
245
245
|
const vControl = this.getElement() || JsControlTreeModifier.bySelector(this.getSelector());
|
|
246
246
|
const oChange = this.getPreparedChange();
|
|
247
247
|
|
|
248
|
-
return ChangesWriteAPI.revert({change: oChange, element: vControl});
|
|
248
|
+
return ChangesWriteAPI.revert({ change: oChange, element: vControl });
|
|
249
249
|
};
|
|
250
250
|
|
|
251
251
|
/**
|