@openui5/sap.ui.rta 1.115.0 → 1.116.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/.eslintrc.json +33 -2
- package/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +60 -59
- package/src/sap/ui/rta/RuntimeAuthoring.js +253 -248
- package/src/sap/ui/rta/Utils.js +42 -42
- package/src/sap/ui/rta/api/startAdaptation.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +3 -3
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +27 -27
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +97 -97
- package/src/sap/ui/rta/appVariant/Feature.js +75 -77
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +6 -7
- package/src/sap/ui/rta/appVariant/Utils.js +17 -17
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +36 -36
- package/src/sap/ui/rta/command/AddIFrame.js +7 -7
- package/src/sap/ui/rta/command/AddProperty.js +7 -7
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +7 -7
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +18 -18
- package/src/sap/ui/rta/command/BaseCommand.js +1 -2
- 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 +11 -11
- 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 +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +22 -22
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +7 -7
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +11 -11
- package/src/sap/ui/rta/command/CreateContainer.js +2 -2
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +30 -30
- package/src/sap/ui/rta/command/LREPSerializer.js +2 -2
- 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 +4 -4
- 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/TestDelegate.js +92 -92
- package/src/sap/ui/rta/enablement/elementActionTest.js +230 -112
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +11 -1
- package/src/sap/ui/rta/messagebundle_ar.properties +5 -0
- package/src/sap/ui/rta/messagebundle_bg.properties +5 -0
- package/src/sap/ui/rta/messagebundle_ca.properties +5 -0
- package/src/sap/ui/rta/messagebundle_cs.properties +5 -0
- package/src/sap/ui/rta/messagebundle_cy.properties +5 -0
- package/src/sap/ui/rta/messagebundle_da.properties +5 -0
- package/src/sap/ui/rta/messagebundle_de.properties +5 -0
- package/src/sap/ui/rta/messagebundle_el.properties +5 -0
- package/src/sap/ui/rta/messagebundle_en.properties +5 -0
- package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -0
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -0
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +5 -0
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +6 -1
- package/src/sap/ui/rta/messagebundle_es.properties +5 -0
- package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -0
- package/src/sap/ui/rta/messagebundle_et.properties +5 -0
- package/src/sap/ui/rta/messagebundle_fi.properties +5 -0
- package/src/sap/ui/rta/messagebundle_fr.properties +5 -0
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -0
- package/src/sap/ui/rta/messagebundle_hi.properties +5 -0
- package/src/sap/ui/rta/messagebundle_hr.properties +5 -0
- package/src/sap/ui/rta/messagebundle_hu.properties +5 -0
- package/src/sap/ui/rta/messagebundle_id.properties +5 -0
- package/src/sap/ui/rta/messagebundle_it.properties +5 -0
- package/src/sap/ui/rta/messagebundle_iw.properties +5 -0
- package/src/sap/ui/rta/messagebundle_ja.properties +5 -0
- package/src/sap/ui/rta/messagebundle_kk.properties +5 -0
- package/src/sap/ui/rta/messagebundle_ko.properties +5 -0
- package/src/sap/ui/rta/messagebundle_lt.properties +5 -0
- package/src/sap/ui/rta/messagebundle_lv.properties +5 -0
- package/src/sap/ui/rta/messagebundle_ms.properties +5 -0
- package/src/sap/ui/rta/messagebundle_nl.properties +5 -0
- package/src/sap/ui/rta/messagebundle_no.properties +5 -0
- package/src/sap/ui/rta/messagebundle_pl.properties +5 -0
- package/src/sap/ui/rta/messagebundle_pt.properties +5 -0
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +5 -0
- package/src/sap/ui/rta/messagebundle_ro.properties +5 -0
- package/src/sap/ui/rta/messagebundle_ru.properties +5 -0
- package/src/sap/ui/rta/messagebundle_sh.properties +5 -0
- package/src/sap/ui/rta/messagebundle_sk.properties +5 -0
- package/src/sap/ui/rta/messagebundle_sl.properties +5 -0
- package/src/sap/ui/rta/messagebundle_sv.properties +5 -0
- package/src/sap/ui/rta/messagebundle_th.properties +5 -0
- package/src/sap/ui/rta/messagebundle_tr.properties +5 -0
- package/src/sap/ui/rta/messagebundle_uk.properties +5 -0
- package/src/sap/ui/rta/messagebundle_vi.properties +5 -0
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -0
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -0
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +44 -44
- package/src/sap/ui/rta/plugin/BaseCreate.js +29 -29
- package/src/sap/ui/rta/plugin/Combine.js +9 -9
- package/src/sap/ui/rta/plugin/ControlVariant.js +21 -21
- package/src/sap/ui/rta/plugin/CreateContainer.js +6 -6
- package/src/sap/ui/rta/plugin/CutPaste.js +46 -46
- package/src/sap/ui/rta/plugin/DragDrop.js +2 -2
- package/src/sap/ui/rta/plugin/EasyAdd.js +4 -4
- package/src/sap/ui/rta/plugin/EasyRemove.js +5 -5
- package/src/sap/ui/rta/plugin/LocalReset.js +25 -25
- package/src/sap/ui/rta/plugin/Plugin.js +20 -20
- package/src/sap/ui/rta/plugin/RTAElementMover.js +42 -42
- package/src/sap/ui/rta/plugin/Remove.js +11 -11
- package/src/sap/ui/rta/plugin/Rename.js +7 -7
- package/src/sap/ui/rta/plugin/RenameHandler.js +17 -17
- package/src/sap/ui/rta/plugin/Resize.js +62 -62
- package/src/sap/ui/rta/plugin/Selection.js +14 -14
- package/src/sap/ui/rta/plugin/Settings.js +20 -20
- package/src/sap/ui/rta/plugin/Split.js +7 -7
- package/src/sap/ui/rta/plugin/Stretch.js +4 -4
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +94 -87
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +18 -18
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +98 -99
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +144 -144
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +3 -4
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +67 -67
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +38 -39
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +1 -0
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +29 -29
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +5 -5
- package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
- package/src/sap/ui/rta/service/Action.js +36 -37
- package/src/sap/ui/rta/service/ControllerExtension.js +4 -4
- package/src/sap/ui/rta/service/Outline.js +59 -59
- package/src/sap/ui/rta/service/Property.js +125 -125
- package/src/sap/ui/rta/service/Receiver.js +78 -77
- package/src/sap/ui/rta/service/Selection.js +6 -6
- package/src/sap/ui/rta/service/SupportTools.js +30 -30
- package/src/sap/ui/rta/service/index.js +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +74 -26
- package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +17 -15
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -2
- package/src/sap/ui/rta/toolbar/Fiori.js +8 -8
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +4 -4
- package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +13 -6
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +2 -8
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +2 -3
- package/src/sap/ui/rta/toolbar/translation/Translation.js +41 -41
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +9 -9
- package/src/sap/ui/rta/util/Animation.js +5 -5
- package/src/sap/ui/rta/util/BindingsExtractor.js +33 -33
- package/src/sap/ui/rta/util/PluginManager.js +25 -25
- package/src/sap/ui/rta/util/PopupManager.js +27 -27
- package/src/sap/ui/rta/util/ReloadManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +3 -4
- package/src/sap/ui/rta/util/StylesLoader.js +9 -9
- package/src/sap/ui/rta/util/UrlParser.js +19 -19
- package/src/sap/ui/rta/util/adaptationStarter.js +34 -31
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +21 -19
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +61 -61
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +73 -60
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +6 -6
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +2 -2
- package/src/sap/ui/rta/util/showMessageBox.js +4 -5
- package/src/sap/ui/rta/util/validateFlexEnabled.js +5 -5
- package/src/sap/ui/rta/util/validateStableIds.js +8 -8
|
@@ -144,7 +144,7 @@ sap.ui.define([
|
|
|
144
144
|
return false;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
return sMode.toLowerCase() ===
|
|
147
|
+
return sMode.toLowerCase() === "true";
|
|
148
148
|
},
|
|
149
149
|
isManifestSupported: function() {
|
|
150
150
|
var oDescriptor = fnGetDescriptor();
|
|
@@ -252,14 +252,14 @@ sap.ui.define([
|
|
|
252
252
|
|
|
253
253
|
// Based on the key user provided info, app variant descriptor is created
|
|
254
254
|
return oAppVariantManager.createAppVariant(sAppVariantId, vSelector)
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
255
|
+
.catch(function(oError) {
|
|
256
|
+
var sMessageKey = oError.messageKey;
|
|
257
|
+
if (!sMessageKey) {
|
|
258
|
+
sMessageKey = "MSG_SAVE_APP_VARIANT_FAILED";
|
|
259
|
+
}
|
|
260
260
|
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
return AppVariantUtils.catchErrorDialog(oError, sMessageKey, sAppVariantId);
|
|
262
|
+
});
|
|
263
263
|
};
|
|
264
264
|
|
|
265
265
|
var fnClearRTACommandStack = function(oResult) {
|
|
@@ -292,30 +292,29 @@ sap.ui.define([
|
|
|
292
292
|
return oAppVariantManager.showSuccessMessage(oSuccessInfo);
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
-
|
|
296
295
|
var fnTriggerPlatformDependentFlow = function() {
|
|
297
296
|
BusyIndicator.show();
|
|
298
297
|
if (bIsS4HanaCloud) {
|
|
299
298
|
var oIAMResponse;
|
|
300
299
|
return fnS4HanaAddBrowserCloseWarning()
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
300
|
+
.then(function() {
|
|
301
|
+
return fnTriggerCatalogAssignment(oAppVariantSaveClosure.id, oAppVariantSaveClosure.reference);
|
|
302
|
+
})
|
|
303
|
+
.then(function(oResult) {
|
|
304
|
+
oIAMResponse = Object.assign({}, oResult);
|
|
305
|
+
BusyIndicator.hide();
|
|
306
|
+
return fnTriggerActionFlow.call(this, bSaveAsFromRta, null, sCurrentLayer);
|
|
307
|
+
}.bind(this))
|
|
308
|
+
.then(function() {
|
|
309
|
+
return fnTriggerPollingTileCreation(oIAMResponse, oAppVariantSaveClosure.id);
|
|
310
|
+
})
|
|
311
|
+
.then(function() {
|
|
312
|
+
fnS4HanaRemoveBrowserCloseWarning();
|
|
313
|
+
return fnShowCatalogAssignmentSuccessMessage();
|
|
314
|
+
})
|
|
315
|
+
.then(function() {
|
|
316
|
+
return bSaveAsFromRta ? resolve() : fnTriggerActionFlow.call(this, bSaveAsFromRta, bIsS4HanaCloud, sCurrentLayer);
|
|
317
|
+
}.bind(this));
|
|
319
318
|
}
|
|
320
319
|
BusyIndicator.hide();
|
|
321
320
|
return fnTriggerActionFlow.call(this, bSaveAsFromRta, bIsS4HanaCloud, sCurrentLayer);
|
|
@@ -330,22 +329,22 @@ sap.ui.define([
|
|
|
330
329
|
}
|
|
331
330
|
|
|
332
331
|
return fnProcessSaveAsDialog()
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
332
|
+
.then(fnCreateInlineChanges) // Create the inline changes for application variant
|
|
333
|
+
.then(fnAddChangesToPersistence) // Adds the descriptor inline changes to the persistence
|
|
334
|
+
.then(fnCreateAppVariant) // Creates the application variant and saves it to the layered repository
|
|
335
|
+
.then(fnClearRTACommandStack)
|
|
336
|
+
.then(fnGetFlexSettings)
|
|
337
|
+
.then(fnTriggerSuccessMessage)
|
|
338
|
+
.then(fnTriggerPlatformDependentFlow.bind(this)).then(resolve)
|
|
339
|
+
.catch(function(oError) {
|
|
340
|
+
if (!oError) {// Cancelling Save As Dialog
|
|
341
|
+
return false;
|
|
342
|
+
}
|
|
343
|
+
if (bIsS4HanaCloud) {
|
|
344
|
+
fnS4HanaRemoveBrowserCloseWarning();
|
|
345
|
+
}
|
|
346
|
+
return fnTriggerActionFlow.call(this, null, bIsS4HanaCloud, sCurrentLayer).then(resolve);
|
|
347
|
+
}.bind(this));
|
|
349
348
|
}.bind(this));
|
|
350
349
|
}.bind(this));
|
|
351
350
|
},
|
|
@@ -370,16 +369,16 @@ sap.ui.define([
|
|
|
370
369
|
|
|
371
370
|
var fnDeleteAppVariant = function() {
|
|
372
371
|
return oAppVariantManager.deleteAppVariant(sAppVariantId)
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
372
|
+
.catch(function(oError) {
|
|
373
|
+
if (oError === "cancel") {
|
|
374
|
+
return Promise.reject("cancel");
|
|
375
|
+
}
|
|
376
|
+
var sMessageKey = oError.messageKey;
|
|
377
|
+
if (!sMessageKey) {
|
|
378
|
+
sMessageKey = "MSG_DELETE_APP_VARIANT_FAILED";
|
|
379
|
+
}
|
|
380
|
+
return AppVariantUtils.catchErrorDialog(oError, sMessageKey, sAppVariantId);
|
|
381
|
+
});
|
|
383
382
|
};
|
|
384
383
|
|
|
385
384
|
var fnDeleteSuccessMessage = function() {
|
|
@@ -388,22 +387,21 @@ sap.ui.define([
|
|
|
388
387
|
return oAppVariantManager.showSuccessMessage(oSuccessInfo);
|
|
389
388
|
};
|
|
390
389
|
|
|
391
|
-
|
|
392
390
|
var fnTriggerS4HanaPolling = function(oSettings) {
|
|
393
391
|
bIsS4HanaCloud = AppVariantUtils.isS4HanaCloud(oSettings);
|
|
394
392
|
if (bIsS4HanaCloud) {
|
|
395
393
|
var oIAMResponse;
|
|
396
394
|
return fnS4HanaAddBrowserCloseWarning(bCurrentlyAdapting)
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
395
|
+
.then(function() {
|
|
396
|
+
return fnTriggerCatalogUnAssignment(sAppVariantId);
|
|
397
|
+
})
|
|
398
|
+
.then(function(oResult) {
|
|
399
|
+
oIAMResponse = Object.assign({}, oResult);
|
|
400
|
+
return fnReloadOverviewDialog.call(this, !bCurrentlyAdapting, sCurrentLayer);
|
|
401
|
+
}.bind(this))
|
|
402
|
+
.then(function() {
|
|
403
|
+
return fnTriggerPollingTileDeletion(oIAMResponse, sAppVariantId);
|
|
404
|
+
});
|
|
407
405
|
}
|
|
408
406
|
BusyIndicator.show();
|
|
409
407
|
return Promise.resolve();
|
|
@@ -423,19 +421,19 @@ sap.ui.define([
|
|
|
423
421
|
}
|
|
424
422
|
|
|
425
423
|
return fnGetFlexSettings()
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
424
|
+
.then(fnTriggerS4HanaPolling.bind(this))
|
|
425
|
+
.then(fnDeleteAppVariant)
|
|
426
|
+
.then(fnDeleteSuccessMessage)
|
|
427
|
+
.then(fnTriggerS4HanaRefresh.bind(this))
|
|
428
|
+
.catch(function(oError) {
|
|
429
|
+
if (oError === "cancel") {
|
|
430
|
+
return false;
|
|
431
|
+
}
|
|
432
|
+
if (bIsS4HanaCloud) {
|
|
433
|
+
fnS4HanaRemoveBrowserCloseWarning();
|
|
434
|
+
}
|
|
435
|
+
return fnReloadOverviewDialog.call(this, null, bIsS4HanaCloud, sCurrentLayer).then(resolve);
|
|
436
|
+
}.bind(this));
|
|
439
437
|
}.bind(this));
|
|
440
438
|
}.bind(this));
|
|
441
439
|
}
|
|
@@ -139,7 +139,6 @@ sap.ui.define([
|
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
|
|
143
142
|
/**
|
|
144
143
|
* Polls the OData model to check catalog publishing status of the given IAM app ID.
|
|
145
144
|
*
|
|
@@ -150,12 +149,12 @@ sap.ui.define([
|
|
|
150
149
|
*/
|
|
151
150
|
S4HanaCloudBackend.prototype.checkCatalogCustomizingIsReady = function(sIamAppId, bAppVarCreation) {
|
|
152
151
|
return S4HanaCloudBackend._getODataModel()
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
.then(function(oModel) {
|
|
153
|
+
return S4HanaCloudBackend._readODataModel(oModel, sIamAppId);
|
|
154
|
+
})
|
|
155
|
+
.then(function(oAppStatusResponse) {
|
|
156
|
+
return S4HanaCloudBackend._isAppReady(oAppStatusResponse, bAppVarCreation);
|
|
157
|
+
});
|
|
159
158
|
};
|
|
160
159
|
|
|
161
160
|
return S4HanaCloudBackend;
|
|
@@ -31,12 +31,12 @@ function(
|
|
|
31
31
|
Utils._checkNavigationSupported = function(oNavigationParams) {
|
|
32
32
|
var oUShellContainer = FlUtils.getUshellContainer();
|
|
33
33
|
return oUShellContainer.getServiceAsync("CrossApplicationNavigation")
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
.then(function(oNavigationService) {
|
|
35
|
+
return oNavigationService.getLinks(oNavigationParams);
|
|
36
|
+
})
|
|
37
|
+
.catch(function(vError) {
|
|
38
|
+
throw new Error("Error retrieving ushell service CrossApplicationNavigation: " + vError);
|
|
39
|
+
});
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
Utils._checkAppType = function(bOriginalApp, bAppVariant) {
|
|
@@ -55,11 +55,11 @@ function(
|
|
|
55
55
|
// Get the id of a new created app variant
|
|
56
56
|
var sNewAppVariantId = AppVariantUtils.getNewAppVariantId();
|
|
57
57
|
|
|
58
|
-
if (sAppVarStatus ===
|
|
58
|
+
if (sAppVarStatus === "R") {
|
|
59
59
|
return oI18n.getText("MAA_OPERATION_IN_PROGRESS");
|
|
60
60
|
} else if (sNewAppVariantId === sAppVariantInfoId) {
|
|
61
61
|
AppVariantUtils.setNewAppVariantId(null);
|
|
62
|
-
if (sAppVarStatus !==
|
|
62
|
+
if (sAppVarStatus !== "E") {
|
|
63
63
|
return oI18n.getText("MAA_NEW_APP_VARIANT");
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -78,7 +78,7 @@ function(
|
|
|
78
78
|
// Unpublished state ('U')
|
|
79
79
|
// Error state ('E')
|
|
80
80
|
// Running state ('R')
|
|
81
|
-
if (oPreparedObject.appVarStatus ===
|
|
81
|
+
if (oPreparedObject.appVarStatus === "U" || oPreparedObject.appVarStatus === "E" || oPreparedObject.appVarStatus === "R") {
|
|
82
82
|
oAppVarObject.saveAsButtonEnabled = false;
|
|
83
83
|
}
|
|
84
84
|
oAppVarObject.adaptUIButtonVisibility = true;
|
|
@@ -95,7 +95,7 @@ function(
|
|
|
95
95
|
}
|
|
96
96
|
} else {
|
|
97
97
|
oAppVarObject.delAppVarButtonVisibility = true;
|
|
98
|
-
if (oPreparedObject.appVarStatus ===
|
|
98
|
+
if (oPreparedObject.appVarStatus === "R") {
|
|
99
99
|
// catalog unpublishing or publishing is currently in progress => not deleteable
|
|
100
100
|
oAppVarObject.delAppVarButtonEnabled = false;
|
|
101
101
|
} else {
|
|
@@ -131,7 +131,7 @@ function(
|
|
|
131
131
|
if (aResult.length && oPreparedObject.isKeyUser) {
|
|
132
132
|
oNavigationObject.adaptUIButtonEnabled = true;
|
|
133
133
|
|
|
134
|
-
if (oPreparedObject.appVarStatus ===
|
|
134
|
+
if (oPreparedObject.appVarStatus === "R" || oPreparedObject.appVarStatus === "U" || oPreparedObject.appVarStatus === "E") {
|
|
135
135
|
oNavigationObject.adaptUIButtonEnabled = false;
|
|
136
136
|
oNavigationObject.appVarStatus = oPreparedObject.appVarStatus;
|
|
137
137
|
}
|
|
@@ -162,10 +162,10 @@ function(
|
|
|
162
162
|
Utils._prepareAppVariantAttributes = function(oAppVariantInfo) {
|
|
163
163
|
return {
|
|
164
164
|
appId: oAppVariantInfo.appId,
|
|
165
|
-
title: oAppVariantInfo.title ||
|
|
166
|
-
subTitle: oAppVariantInfo.subTitle ||
|
|
167
|
-
description: oAppVariantInfo.description ||
|
|
168
|
-
icon: oAppVariantInfo.iconUrl ||
|
|
165
|
+
title: oAppVariantInfo.title || "",
|
|
166
|
+
subTitle: oAppVariantInfo.subTitle || "",
|
|
167
|
+
description: oAppVariantInfo.description || "",
|
|
168
|
+
icon: oAppVariantInfo.iconUrl || "",
|
|
169
169
|
iconText: oAppVariantInfo.iconText,
|
|
170
170
|
isOriginal: oAppVariantInfo.isOriginal,
|
|
171
171
|
isAppVariant: oAppVariantInfo.isAppVariant,
|
|
@@ -179,7 +179,7 @@ function(
|
|
|
179
179
|
// Adding the tooltip to every icon which is shown on the App Variant Overview Dialog
|
|
180
180
|
var sIconUrl = oAppVariantInfo.iconUrl;
|
|
181
181
|
if (sIconUrl && IconPool.isIconURI(sIconUrl)) {
|
|
182
|
-
oAppVariantInfo.iconText = sIconUrl.split(
|
|
182
|
+
oAppVariantInfo.iconText = sIconUrl.split("//")[1];
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
oAppVariantAttributes = this._prepareAppVariantAttributes(oAppVariantInfo);
|
|
@@ -223,7 +223,7 @@ function(
|
|
|
223
223
|
|
|
224
224
|
Utils.getAppVariantOverview = function(sReferenceAppId, bKeyUser) {
|
|
225
225
|
// Customer* means the layer can be either CUSTOMER or CUSTOMER_BASE. This layer determination takes place in backend.
|
|
226
|
-
var sLayer = bKeyUser ?
|
|
226
|
+
var sLayer = bKeyUser ? "CUSTOMER*" : "VENDOR";
|
|
227
227
|
|
|
228
228
|
var mPropertyBag = {
|
|
229
229
|
selector: {
|
|
@@ -56,33 +56,33 @@ sap.ui.define([
|
|
|
56
56
|
|
|
57
57
|
BusyIndicator.show();
|
|
58
58
|
return Promise.resolve()
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
59
|
+
.then(function() {
|
|
60
|
+
if (oUShellContainer) {
|
|
61
|
+
return oUShellContainer.getServiceAsync("CrossApplicationNavigation")
|
|
62
|
+
.then(function(oCrossAppNavService) {
|
|
63
|
+
_oCrossAppNavService = oCrossAppNavService;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return undefined;
|
|
67
|
+
})
|
|
68
|
+
.then(AppVariantOverviewUtils.getAppVariantOverview.bind(AppVariantOverviewUtils, _sIdRunningApp, _bKeyUser))
|
|
69
|
+
.then(function(aAppVariantOverviewAttributes) {
|
|
70
|
+
BusyIndicator.hide();
|
|
71
|
+
if (aAppVariantOverviewAttributes.length) {
|
|
72
|
+
return this._arrangeOverviewDataAndBindToModel(aAppVariantOverviewAttributes).then(function(aAppVariantOverviewAttributes) {
|
|
73
|
+
return this._highlightNewCreatedAppVariant(aAppVariantOverviewAttributes);
|
|
74
|
+
}.bind(this));
|
|
75
|
+
}
|
|
76
|
+
AppVariantUtils.closeOverviewDialog();
|
|
77
|
+
return this._showMessageWhenNoAppVariantsExist();
|
|
78
|
+
}.bind(this))
|
|
79
|
+
.catch(function(oError) {
|
|
80
|
+
AppVariantUtils.closeOverviewDialog();
|
|
81
|
+
var oErrorInfo = AppVariantUtils.buildErrorInfo("MSG_MANAGE_APPS_FAILED", oError);
|
|
82
|
+
oErrorInfo.overviewDialog = true;
|
|
83
|
+
BusyIndicator.hide();
|
|
84
|
+
return AppVariantUtils.showRelevantDialog(oErrorInfo, false);
|
|
85
|
+
});
|
|
86
86
|
},
|
|
87
87
|
|
|
88
88
|
_createResourceBundle: function() {
|
|
@@ -184,14 +184,14 @@ sap.ui.define([
|
|
|
184
184
|
}
|
|
185
185
|
if (!bAdaptUIButtonEnabled) {
|
|
186
186
|
switch (sAppVarStatus) {
|
|
187
|
-
case
|
|
187
|
+
case "R":
|
|
188
188
|
// For S4/Hana Cloud systems
|
|
189
189
|
return oI18n.getText("TOOLTIP_ADAPTUI_STATUS_RUNNING");
|
|
190
|
-
case
|
|
190
|
+
case "U":
|
|
191
191
|
return oI18n.getText("TOOLTIP_ADAPTUI_STATUS_UNPBLSHD_ERROR");
|
|
192
|
-
case
|
|
192
|
+
case "E":
|
|
193
193
|
return oI18n.getText("TOOLTIP_ADAPTUI_STATUS_UNPBLSHD_ERROR");
|
|
194
|
-
case
|
|
194
|
+
case "P":
|
|
195
195
|
return oI18n.getText("TOOLTIP_ADAPTUI_STATUS_PUBLISHED");
|
|
196
196
|
case undefined:
|
|
197
197
|
// For S4/Hana onPrem systems
|
|
@@ -285,11 +285,11 @@ sap.ui.define([
|
|
|
285
285
|
var bCurrentlyAdapting = sCurrentStatus === oI18n.getText("MAA_CURRENTLY_ADAPTING");
|
|
286
286
|
|
|
287
287
|
return AppVariantUtils.showRelevantDialog(oInfo)
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
288
|
+
.then(function() {
|
|
289
|
+
return RtaAppVariantFeature.onDeleteFromOverviewDialog(sAppVarId, bCurrentlyAdapting, _sLayer);
|
|
290
|
+
}).catch(function() {
|
|
291
|
+
return true;
|
|
292
|
+
});
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
});
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @class
|
|
17
17
|
* @extends sap.ui.rta.command.FlexCommand
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.116.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.75
|
|
@@ -70,12 +70,12 @@ sap.ui.define([
|
|
|
70
70
|
AddIFrame.prototype.applySettings = function(mSettings) {
|
|
71
71
|
var mSettingsWithoutUrl = {};
|
|
72
72
|
Object.keys(mSettings)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
.filter(function(sSettingName) {
|
|
74
|
+
return sSettingName !== "url";
|
|
75
|
+
})
|
|
76
|
+
.forEach(function(sSettingName) {
|
|
77
|
+
mSettingsWithoutUrl[sSettingName] = mSettings[sSettingName];
|
|
78
|
+
});
|
|
79
79
|
var aArguments = [].slice.call(arguments);
|
|
80
80
|
aArguments[0] = mSettingsWithoutUrl;
|
|
81
81
|
FlexCommand.prototype.applySettings.apply(this, aArguments);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/rta/command/FlexCommand"
|
|
8
|
-
], function
|
|
8
|
+
], function(FlexCommand) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -14,7 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
* @class
|
|
15
15
|
* @extends sap.ui.rta.command.FlexCommand
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.116.0
|
|
18
18
|
* @constructor
|
|
19
19
|
* @private
|
|
20
20
|
* @since 1.78
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
newControlId: {
|
|
33
33
|
type: "string"
|
|
34
34
|
},
|
|
35
|
-
//the name "bindingPath" conflicts with getBindingPath() method from ManagedObject
|
|
35
|
+
// the name "bindingPath" conflicts with getBindingPath() method from ManagedObject
|
|
36
36
|
bindingString: {
|
|
37
37
|
type: "string"
|
|
38
38
|
},
|
|
@@ -69,13 +69,13 @@ sap.ui.define([
|
|
|
69
69
|
newControlId: this.getNewControlId(),
|
|
70
70
|
bindingPath: this.getBindingString(),
|
|
71
71
|
parentId: this.getParentId(),
|
|
72
|
-
//used to connect to default delegate
|
|
72
|
+
// used to connect to default delegate
|
|
73
73
|
modelType: this.getModelType(),
|
|
74
|
-
//allow change handlers to access delegates if the change is not done on the relevant container
|
|
74
|
+
// allow change handlers to access delegates if the change is not done on the relevant container
|
|
75
75
|
relevantContainerId: this.getRelevantContainerId(),
|
|
76
|
-
//used to connect to change handler mediator
|
|
76
|
+
// used to connect to change handler mediator
|
|
77
77
|
oDataServiceVersion: this.getODataServiceVersion(),
|
|
78
|
-
//necessary for custom fields support tools
|
|
78
|
+
// necessary for custom fields support tools
|
|
79
79
|
oDataInformation: {
|
|
80
80
|
oDataServiceUri: this.getODataServiceUri(),
|
|
81
81
|
propertyName: this.getPropertyName(),
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @class
|
|
25
25
|
* @extends sap.ui.rta.command.FlexCommand
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.116.0
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.76
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
return FlexCommand.prototype.bindProperty.apply(this, arguments);
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
AddXMLAtExtensionPoint.prototype.getAppComponent = function
|
|
68
|
+
AddXMLAtExtensionPoint.prototype.getAppComponent = function() {
|
|
69
69
|
var oView = this.getSelector().view;
|
|
70
70
|
return Utils.getAppComponentForControl(oView);
|
|
71
71
|
};
|
|
@@ -98,11 +98,11 @@ sap.ui.define([
|
|
|
98
98
|
view: oView
|
|
99
99
|
};
|
|
100
100
|
return ChangesWriteAPI.apply(Object.assign({change: oChange, element: oSelectorElement}, mPropertyBag))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
.then(function(oResult) {
|
|
102
|
+
if (!oResult.success) {
|
|
103
|
+
return Promise.reject(oResult.error);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
return AddXMLAtExtensionPoint;
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @extends sap.ui.rta.command.BaseCommand
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.116.0
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
* @param {string} mFlexSettings.layer - Layer where the change is applied
|
|
69
69
|
* @returns {boolean} <code>true</true>
|
|
70
70
|
*/
|
|
71
|
-
AppDescriptorCommand.prototype.prepare = function
|
|
71
|
+
AppDescriptorCommand.prototype.prepare = function(mFlexSettings) {
|
|
72
72
|
this.setLayer(mFlexSettings.layer);
|
|
73
73
|
return true;
|
|
74
74
|
};
|
|
@@ -77,11 +77,11 @@ sap.ui.define([
|
|
|
77
77
|
* Retrieves the prepared change for e.g. undo execution.
|
|
78
78
|
* @return {sap.ui.fl.apply._internal.flexObjects.UIChange} Returns change after being created and stored
|
|
79
79
|
*/
|
|
80
|
-
AppDescriptorCommand.prototype.getPreparedChange = function
|
|
80
|
+
AppDescriptorCommand.prototype.getPreparedChange = function() {
|
|
81
81
|
return this._oPreparedChange;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
AppDescriptorCommand.prototype.setCompositeId = function
|
|
84
|
+
AppDescriptorCommand.prototype.setCompositeId = function(sCompositeId) {
|
|
85
85
|
this._sCompositeId = sCompositeId;
|
|
86
86
|
};
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ sap.ui.define([
|
|
|
89
89
|
* Create the change for the app descriptor and adds it to the Flex Persistence.
|
|
90
90
|
* @return {Promise} Returns Promise resolving after change has been created and stored
|
|
91
91
|
*/
|
|
92
|
-
AppDescriptorCommand.prototype.createAndStoreChange = function
|
|
92
|
+
AppDescriptorCommand.prototype.createAndStoreChange = function() {
|
|
93
93
|
return AppVariantInlineChangeFactory.createDescriptorInlineChange({
|
|
94
94
|
changeType: this.getChangeType(),
|
|
95
95
|
content: this.getParameters(),
|
|
@@ -98,19 +98,19 @@ sap.ui.define([
|
|
|
98
98
|
compositeCommand: this._sCompositeId || ""
|
|
99
99
|
}
|
|
100
100
|
})
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
101
|
+
.then(function(oAppDescriptorChangeContent) {
|
|
102
|
+
return new DescriptorChangeFactory().createNew(
|
|
103
|
+
this.getReference(),
|
|
104
|
+
oAppDescriptorChangeContent,
|
|
105
|
+
this.getLayer(),
|
|
106
|
+
this.getAppComponent(),
|
|
107
|
+
"sap.ui.rta.AppDescriptorCommand"
|
|
108
|
+
);
|
|
109
|
+
}.bind(this))
|
|
110
|
+
.then(function(oAppDescriptorChange) {
|
|
111
|
+
var oChange = oAppDescriptorChange.store();
|
|
112
|
+
this._oPreparedChange = oChange;
|
|
113
|
+
}.bind(this));
|
|
114
114
|
};
|
|
115
115
|
return AppDescriptorCommand;
|
|
116
116
|
});
|
|
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/base/ManagedObject"], function(ManagedObject) {
|
|
|
13
13
|
* @extends sap.ui.base.ManagedObject
|
|
14
14
|
*
|
|
15
15
|
* @author SAP SE
|
|
16
|
-
* @version 1.
|
|
16
|
+
* @version 1.116.0
|
|
17
17
|
*
|
|
18
18
|
* @constructor
|
|
19
19
|
* @private
|
|
@@ -50,7 +50,6 @@ sap.ui.define(["sap/ui/base/ManagedObject"], function(ManagedObject) {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
|
|
54
53
|
/**
|
|
55
54
|
* Returns element instance instead of ID.
|
|
56
55
|
* @override
|