@openui5/sap.ui.rta 1.116.0 → 1.117.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/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 +4 -7
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +3 -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 +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 +27 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +5 -3
- 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 +19 -9
- 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/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 +1 -1
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.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 +1 -1
- package/src/sap/ui/rta/messagebundle_de.properties +1 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +1 -1
- 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 +1 -1
- package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
- 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 +1 -1
- 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/Resize.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- 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 +1 -1
- 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/service/SupportTools.js +159 -8
- package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +14 -0
- package/src/sap/ui/rta/themes/base/library.source.less +2 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +36 -29
- 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/contextBased/SaveAsAdaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptationDialog.fragment.xml +0 -2
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- 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/ReloadManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +3 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +4 -4
- package/ui5.yaml +1 -1
|
@@ -51,7 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
* @extends sap.ui.rta.toolbar.Base
|
|
52
52
|
*
|
|
53
53
|
* @author SAP SE
|
|
54
|
-
* @version 1.
|
|
54
|
+
* @version 1.117.1
|
|
55
55
|
*
|
|
56
56
|
* @constructor
|
|
57
57
|
* @private
|
|
@@ -352,47 +352,54 @@ sap.ui.define([
|
|
|
352
352
|
function confirmMigration(oRtaInformation) {
|
|
353
353
|
var bDirty = oRtaInformation.commandStack.canSave();
|
|
354
354
|
|
|
355
|
-
Utils.showMessageBox("confirm", (bDirty) ? "DAC_DIALOG_MIGRATION_DIRTY_DESCRIPTION" : "DAC_DIALOG_MIGRATION_DESCRIPTION", {
|
|
355
|
+
return Utils.showMessageBox("confirm", (bDirty) ? "DAC_DIALOG_MIGRATION_DIRTY_DESCRIPTION" : "DAC_DIALOG_MIGRATION_DESCRIPTION", {
|
|
356
356
|
titleKey: "DAC_DIALOG_MIGRATION_HEADER",
|
|
357
357
|
actionKeys: ["DAC_DIALOG_MIGRATION_HEADER"],
|
|
358
358
|
showCancel: true
|
|
359
359
|
})
|
|
360
360
|
.then(function(sAction) {
|
|
361
361
|
if (sAction !== MessageBox.Action.CANCEL) {
|
|
362
|
-
BusyIndicator.show();
|
|
363
|
-
|
|
364
362
|
if (bDirty) {
|
|
365
|
-
oRtaInformation.commandStack.removeAllCommands(true);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
ContextBasedAdaptationsAPI.migrate({
|
|
369
|
-
control: oRtaInformation.rootControl,
|
|
370
|
-
layer: oRtaInformation.flexSettings.layer
|
|
371
|
-
})
|
|
372
|
-
.finally(function() {
|
|
373
|
-
BusyIndicator.hide();
|
|
374
|
-
})
|
|
375
|
-
.then(Utils.showMessageBox.bind(undefined, "information", "DAC_DIALOG_MIGRATION_SUCCESSFULL_DESCRIPTION", {
|
|
376
|
-
titleKey: "DAC_DIALOG_MIGRATION_HEADER"
|
|
377
|
-
}))
|
|
378
|
-
.then(function() {
|
|
379
363
|
return new Promise(function(resolve) {
|
|
380
|
-
this.fireEvent("
|
|
364
|
+
this.fireEvent("save", {callback: resolve});
|
|
365
|
+
}.bind(this))
|
|
366
|
+
.then(function() {
|
|
367
|
+
return performMigration.call(this, oRtaInformation);
|
|
381
368
|
}.bind(this));
|
|
382
|
-
}
|
|
383
|
-
.
|
|
384
|
-
Log.error(oError.stack || oError);
|
|
385
|
-
var sMessage = "DAC_DIALOG_MIGRATION_ERROR_DESCRIPTION";
|
|
386
|
-
var oOptions = {
|
|
387
|
-
titleKey: "DAC_DIALOG_MIGRATION_HEADER",
|
|
388
|
-
details: oError.userMessage || oError
|
|
389
|
-
};
|
|
390
|
-
Utils.showMessageBox("error", sMessage, oOptions);
|
|
391
|
-
});
|
|
369
|
+
}
|
|
370
|
+
return performMigration.call(this, oRtaInformation);
|
|
392
371
|
}
|
|
393
372
|
}.bind(this));
|
|
394
373
|
}
|
|
395
374
|
|
|
375
|
+
function performMigration(oRtaInformation) {
|
|
376
|
+
BusyIndicator.show();
|
|
377
|
+
return ContextBasedAdaptationsAPI.migrate({
|
|
378
|
+
control: oRtaInformation.rootControl,
|
|
379
|
+
layer: oRtaInformation.flexSettings.layer
|
|
380
|
+
})
|
|
381
|
+
.finally(function() {
|
|
382
|
+
BusyIndicator.hide();
|
|
383
|
+
})
|
|
384
|
+
.then(Utils.showMessageBox.bind(undefined, "information", "DAC_DIALOG_MIGRATION_SUCCESSFULL_DESCRIPTION", {
|
|
385
|
+
titleKey: "DAC_DIALOG_MIGRATION_HEADER"
|
|
386
|
+
}))
|
|
387
|
+
.then(function() {
|
|
388
|
+
return new Promise(function(resolve) {
|
|
389
|
+
this.fireEvent("switchAdaptation", {adaptationId: "DEFAULT", callback: resolve});
|
|
390
|
+
}.bind(this));
|
|
391
|
+
}.bind(this))
|
|
392
|
+
.catch(function(oError) {
|
|
393
|
+
Log.error(oError.stack || oError);
|
|
394
|
+
var sMessage = "DAC_DIALOG_MIGRATION_ERROR_DESCRIPTION";
|
|
395
|
+
var oOptions = {
|
|
396
|
+
titleKey: "DAC_DIALOG_MIGRATION_HEADER",
|
|
397
|
+
details: oError.userMessage || oError
|
|
398
|
+
};
|
|
399
|
+
Utils.showMessageBox("error", sMessage, oOptions);
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
|
|
396
403
|
function onSaveAsAdaptation() {
|
|
397
404
|
var oRtaInformation = this.getRtaInformation();
|
|
398
405
|
Utils.checkDraftOverwrite(this.getModel("versions")).then(function() {
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
<form:label>
|
|
39
39
|
<Label id="saveAdaptation-title-label"
|
|
40
40
|
text="{i18n>APP_DIALOG_TITLE_TEXT}"
|
|
41
|
-
textAlign="Left"
|
|
42
41
|
required="true">
|
|
43
42
|
</Label>
|
|
44
43
|
</form:label>
|
|
@@ -53,7 +52,6 @@
|
|
|
53
52
|
<form:label>
|
|
54
53
|
<Label id="saveAdaptation-rank-label"
|
|
55
54
|
text="{i18n>CLM_HEADER_PRIORITY}"
|
|
56
|
-
textAlign="Left"
|
|
57
55
|
required="true">
|
|
58
56
|
</Label>
|
|
59
57
|
</form:label>
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
|
|
43
43
|
* @author SAP SE
|
|
44
44
|
* @since 1.84.0
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.117.1
|
|
46
46
|
* @private
|
|
47
47
|
*/
|
|
48
48
|
var ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
|
|
@@ -175,6 +175,8 @@ sap.ui.define([
|
|
|
175
175
|
// the indicator should be centered only if the element has a small enough height to improve the design and visibility
|
|
176
176
|
if (iOverlayHeight < iIndicatorHeight * 5) {
|
|
177
177
|
oIndicator.addStyleClass("sapUiRtaChangeIndicatorVerticallyCentered");
|
|
178
|
+
} else {
|
|
179
|
+
oIndicator.removeStyleClass("sapUiRtaChangeIndicatorVerticallyCentered");
|
|
178
180
|
}
|
|
179
181
|
}
|
|
180
182
|
|
|
@@ -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.117.1
|
|
43
43
|
* @private
|
|
44
44
|
*/
|
|
45
45
|
var ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/core/Core",
|
|
9
9
|
"sap/ui/core/Fragment",
|
|
10
|
+
"sap/base/util/isEmptyObject",
|
|
10
11
|
"sap/base/util/restricted/_difference",
|
|
11
12
|
"sap/base/util/deepEqual",
|
|
12
13
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
13
14
|
"sap/ui/core/Control",
|
|
14
15
|
"sap/ui/dt/OverlayRegistry",
|
|
15
|
-
"sap/ui/dt/OverlayUtil",
|
|
16
16
|
"sap/ui/dt/ElementUtil",
|
|
17
17
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
18
18
|
"sap/ui/fl/Layer",
|
|
@@ -26,12 +26,12 @@ sap.ui.define([
|
|
|
26
26
|
], function(
|
|
27
27
|
Core,
|
|
28
28
|
Fragment,
|
|
29
|
+
isEmptyObject,
|
|
29
30
|
difference,
|
|
30
31
|
deepEqual,
|
|
31
32
|
JsControlTreeModifier,
|
|
32
33
|
Control,
|
|
33
34
|
OverlayRegistry,
|
|
34
|
-
OverlayUtil,
|
|
35
35
|
ElementUtil,
|
|
36
36
|
PersistenceWriteAPI,
|
|
37
37
|
Layer,
|
|
@@ -82,7 +82,7 @@ sap.ui.define([
|
|
|
82
82
|
* @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
|
|
83
83
|
* @author SAP SE
|
|
84
84
|
* @since 1.84.0
|
|
85
|
-
* @version 1.
|
|
85
|
+
* @version 1.117.1
|
|
86
86
|
* @private
|
|
87
87
|
*/
|
|
88
88
|
var ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
|
|
@@ -406,7 +406,7 @@ sap.ui.define([
|
|
|
406
406
|
return sCommand;
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
if (!oChange.getSelector || !oChange.getSelector()) {
|
|
409
|
+
if (!oChange.getSelector || !oChange.getSelector() || isEmptyObject(oChange.getSelector())) {
|
|
410
410
|
return false;
|
|
411
411
|
}
|
|
412
412
|
|
package/ui5.yaml
CHANGED