@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
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* Constructor for a new sap.ui.rta.util.PopupManager
|
|
43
43
|
* @extends sap.ui.base.ManagedObject
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.116.0
|
|
46
46
|
* @constructor
|
|
47
47
|
* @private
|
|
48
48
|
* @since 1.48
|
|
@@ -100,17 +100,17 @@ sap.ui.define([
|
|
|
100
100
|
* @private
|
|
101
101
|
*/
|
|
102
102
|
PopupManager.prototype._overrideInstanceFunctions = function() {
|
|
103
|
-
//check open popups and create overlays while starting RTA
|
|
103
|
+
// check open popups and create overlays while starting RTA
|
|
104
104
|
this._applyPopupAttributes({
|
|
105
105
|
method: this._createPopupOverlays,
|
|
106
106
|
setModal: true,
|
|
107
107
|
bringToTop: true
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
//override InstanceManager.AddDialogInstance() and InstanceManager.AddPopoverInstance()
|
|
110
|
+
// override InstanceManager.AddDialogInstance() and InstanceManager.AddPopoverInstance()
|
|
111
111
|
this._overrideAddPopupInstance();
|
|
112
112
|
|
|
113
|
-
//override InstanceManager.RemoveDialogInstance() and InstanceManager.RemovePopoverInstance()
|
|
113
|
+
// override InstanceManager.RemoveDialogInstance() and InstanceManager.RemovePopoverInstance()
|
|
114
114
|
this._overrideRemovePopupInstance();
|
|
115
115
|
};
|
|
116
116
|
|
|
@@ -176,7 +176,7 @@ sap.ui.define([
|
|
|
176
176
|
* @private
|
|
177
177
|
*/
|
|
178
178
|
PopupManager.prototype._isComponentInsidePopup = function(oPopup) {
|
|
179
|
-
//check if root RTA component is directly inside a popupElement
|
|
179
|
+
// check if root RTA component is directly inside a popupElement
|
|
180
180
|
return Array.isArray(oPopup.getContent())
|
|
181
181
|
? oPopup.getContent().some(
|
|
182
182
|
function(oContent) {
|
|
@@ -209,7 +209,7 @@ sap.ui.define([
|
|
|
209
209
|
this.setProperty("rta", oRta);
|
|
210
210
|
var oRootControl = oRta.getRootControlInstance();
|
|
211
211
|
this.oRtaRootAppComponent = this._getAppComponentForControl(oRootControl);
|
|
212
|
-
//listener for RTA mode change
|
|
212
|
+
// listener for RTA mode change
|
|
213
213
|
var fnModeChange = this._onModeChange.bind(this);
|
|
214
214
|
oRta.attachModeChanged(fnModeChange);
|
|
215
215
|
this._overrideInstanceFunctions();
|
|
@@ -237,7 +237,7 @@ sap.ui.define([
|
|
|
237
237
|
PopupManager.prototype._onModeChange = function(oEvent) {
|
|
238
238
|
var sNewMode = oEvent.getParameters().mode;
|
|
239
239
|
var fnApplyFocusAndSetModal = function(sMode, oPopover) {
|
|
240
|
-
if (sMode ===
|
|
240
|
+
if (sMode === "navigation") {
|
|
241
241
|
// add focus handlers
|
|
242
242
|
oPopover.oPopup[this._getFocusEventName("add")]();
|
|
243
243
|
} else {
|
|
@@ -250,7 +250,7 @@ sap.ui.define([
|
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
|
|
253
|
-
sNewMode ===
|
|
253
|
+
sNewMode === "navigation"
|
|
254
254
|
? this._applyPatchesToOpenPopups(_curry(fnApplyFocusAndSetModal)(sNewMode))
|
|
255
255
|
: this._removePatchesToOpenPopups(_curry(fnApplyFocusAndSetModal)(sNewMode));
|
|
256
256
|
};
|
|
@@ -297,11 +297,11 @@ sap.ui.define([
|
|
|
297
297
|
* @private
|
|
298
298
|
*/
|
|
299
299
|
PopupManager.prototype._overrideAddPopupInstance = function() {
|
|
300
|
-
//Dialog
|
|
300
|
+
// Dialog
|
|
301
301
|
this._fnOriginalAddDialogInstance = InstanceManager.addDialogInstance;
|
|
302
302
|
InstanceManager.addDialogInstance = this._overrideAddFunctions(this._fnOriginalAddDialogInstance);
|
|
303
303
|
|
|
304
|
-
//Popover
|
|
304
|
+
// Popover
|
|
305
305
|
this._fnOriginalAddPopoverInstance = InstanceManager.addPopoverInstance;
|
|
306
306
|
InstanceManager.addPopoverInstance = this._overrideAddFunctions(this._fnOriginalAddPopoverInstance);
|
|
307
307
|
};
|
|
@@ -320,7 +320,7 @@ sap.ui.define([
|
|
|
320
320
|
if (this._isPopupAdaptable(oPopupElement)
|
|
321
321
|
&& this.getRta()._oDesignTime) {
|
|
322
322
|
oPopupElement.attachEventOnce("afterOpen", this._createPopupOverlays, this);
|
|
323
|
-
//PopupManager internal method
|
|
323
|
+
// PopupManager internal method
|
|
324
324
|
oPopupElement.attachEventOnce("afterOpen", this.fireOpen, this);
|
|
325
325
|
this._setModal(true, oPopupElement);
|
|
326
326
|
} else if (!(oPopupElement instanceof Popover)) {
|
|
@@ -342,7 +342,7 @@ sap.ui.define([
|
|
|
342
342
|
*/
|
|
343
343
|
PopupManager.prototype._setModal = function(bSetModal, oPopupElement) {
|
|
344
344
|
var bOriginalModalState = this._oModalState.get(oPopupElement.oPopup);
|
|
345
|
-
if (typeof bOriginalModalState !== "boolean" && bSetModal && this.getRta().getMode() !==
|
|
345
|
+
if (typeof bOriginalModalState !== "boolean" && bSetModal && this.getRta().getMode() !== "navigation") {
|
|
346
346
|
this._oModalState.set(oPopupElement.oPopup, oPopupElement.oPopup.getModal());
|
|
347
347
|
if (this._isPopupAdaptable(oPopupElement)) {
|
|
348
348
|
this._adjustRootOverlayVisibility(false, oPopupElement);
|
|
@@ -358,12 +358,12 @@ sap.ui.define([
|
|
|
358
358
|
};
|
|
359
359
|
|
|
360
360
|
PopupManager.prototype._applyPopupAttributes = function(mPropertyBag) {
|
|
361
|
-
//check if popups are open
|
|
361
|
+
// check if popups are open
|
|
362
362
|
var oRelevantPopups = this.getCategorizedOpenPopups();
|
|
363
363
|
|
|
364
364
|
["aDialogs", "aPopovers"].forEach(function(sKey) {
|
|
365
365
|
if (oRelevantPopups[sKey].length > 0) {
|
|
366
|
-
//set focus
|
|
366
|
+
// set focus
|
|
367
367
|
if (mPropertyBag.focus) {
|
|
368
368
|
if (oRelevantPopups[sKey][0].oPopup.oContent) {
|
|
369
369
|
oRelevantPopups[sKey][0].oPopup.oContent.focus();
|
|
@@ -371,13 +371,13 @@ sap.ui.define([
|
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
oRelevantPopups[sKey].forEach(function(oPopupElement) {
|
|
374
|
-
//call passed method for all relevant popups
|
|
374
|
+
// call passed method for all relevant popups
|
|
375
375
|
mPropertyBag.method.call(this, oPopupElement);
|
|
376
376
|
}.bind(this));
|
|
377
377
|
}
|
|
378
378
|
}.bind(this));
|
|
379
379
|
|
|
380
|
-
//set modal for all popups
|
|
380
|
+
// set modal for all popups
|
|
381
381
|
oRelevantPopups.aAllSupportedPopups.forEach(this._setModal.bind(this, mPropertyBag.setModal));
|
|
382
382
|
};
|
|
383
383
|
|
|
@@ -409,10 +409,10 @@ sap.ui.define([
|
|
|
409
409
|
aAutoCloseAreas.push(oRtaToolbar.getDomRef());
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
//If clicked from toolbar or popup - autoClose is disabled
|
|
412
|
+
// If clicked from toolbar or popup - autoClose is disabled
|
|
413
413
|
oPopup.setExtraContent(aAutoCloseAreas);
|
|
414
414
|
|
|
415
|
-
//cases when onAfterRendering is called after this function - app inside popup
|
|
415
|
+
// cases when onAfterRendering is called after this function - app inside popup
|
|
416
416
|
if (!this.fnOriginalPopupOnAfterRendering) {
|
|
417
417
|
this.fnOriginalPopupOnAfterRendering = oPopup.onAfterRendering;
|
|
418
418
|
}
|
|
@@ -422,8 +422,8 @@ sap.ui.define([
|
|
|
422
422
|
return vOriginalReturn;
|
|
423
423
|
}.bind(this);
|
|
424
424
|
|
|
425
|
-
//only remove focus event when in adaptation mode
|
|
426
|
-
if (this.getRta().getMode() ===
|
|
425
|
+
// only remove focus event when in adaptation mode
|
|
426
|
+
if (this.getRta().getMode() === "adaptation") {
|
|
427
427
|
oPopup[this._getFocusEventName("remove")]();
|
|
428
428
|
}
|
|
429
429
|
};
|
|
@@ -434,11 +434,11 @@ sap.ui.define([
|
|
|
434
434
|
* @private
|
|
435
435
|
*/
|
|
436
436
|
PopupManager.prototype._overrideRemovePopupInstance = function() {
|
|
437
|
-
//Dialog
|
|
437
|
+
// Dialog
|
|
438
438
|
this._fnOriginalRemoveDialogInstance = InstanceManager.removeDialogInstance;
|
|
439
439
|
InstanceManager.removeDialogInstance = this._overrideRemoveFunctions(this._fnOriginalRemoveDialogInstance);
|
|
440
440
|
|
|
441
|
-
//Popover
|
|
441
|
+
// Popover
|
|
442
442
|
this._fnOriginalRemovePopoverInstance = InstanceManager.removePopoverInstance;
|
|
443
443
|
InstanceManager.removePopoverInstance = this._overrideRemoveFunctions(this._fnOriginalRemovePopoverInstance);
|
|
444
444
|
};
|
|
@@ -460,7 +460,7 @@ sap.ui.define([
|
|
|
460
460
|
}
|
|
461
461
|
// remove the Modal state from the map
|
|
462
462
|
this._oModalState.delete(oPopupElement.oPopup);
|
|
463
|
-
//PopupManager internal method
|
|
463
|
+
// PopupManager internal method
|
|
464
464
|
this.fireClose(oPopupElement);
|
|
465
465
|
}
|
|
466
466
|
return vOriginalReturn;
|
|
@@ -533,7 +533,7 @@ sap.ui.define([
|
|
|
533
533
|
}
|
|
534
534
|
var oPopupElement = (oEvent instanceof Element) ? oEvent : oEvent.getSource();
|
|
535
535
|
|
|
536
|
-
//when application is opened in a popup, rootElement should not be added more than once
|
|
536
|
+
// when application is opened in a popup, rootElement should not be added more than once
|
|
537
537
|
if (
|
|
538
538
|
this.getRta()._oDesignTime.getRootElements().indexOf(oPopupElement.getId()) === -1
|
|
539
539
|
&& !this._isComponentInsidePopup(oPopupElement)
|
|
@@ -541,7 +541,7 @@ sap.ui.define([
|
|
|
541
541
|
this.getRta()._oDesignTime.addRootElement(oPopupElement);
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
//detach for persistent popups with same id
|
|
544
|
+
// detach for persistent popups with same id
|
|
545
545
|
oPopupElement.detachAfterOpen(this._createPopupOverlays, this);
|
|
546
546
|
|
|
547
547
|
this._applyPopupPatch(oPopupElement);
|
|
@@ -553,7 +553,7 @@ sap.ui.define([
|
|
|
553
553
|
* @private
|
|
554
554
|
*/
|
|
555
555
|
PopupManager.prototype._restoreInstanceFunctions = function() {
|
|
556
|
-
//Dialog
|
|
556
|
+
// Dialog
|
|
557
557
|
if (this._fnOriginalAddDialogInstance) {
|
|
558
558
|
InstanceManager.addDialogInstance = this._fnOriginalAddDialogInstance;
|
|
559
559
|
}
|
|
@@ -561,7 +561,7 @@ sap.ui.define([
|
|
|
561
561
|
InstanceManager.removeDialogInstance = this._fnOriginalRemoveDialogInstance;
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
//Popover
|
|
564
|
+
// Popover
|
|
565
565
|
if (this._fnOriginalAddPopoverInstance) {
|
|
566
566
|
InstanceManager.addPopoverInstance = this._fnOriginalAddPopoverInstance;
|
|
567
567
|
}
|
|
@@ -19,19 +19,18 @@ function(
|
|
|
19
19
|
*
|
|
20
20
|
* @extends sap.ui.core.EventBus
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.116.0
|
|
23
23
|
* @private
|
|
24
24
|
* @since 1.56.0
|
|
25
25
|
* @alias sap.ui.rta.util.ServiceEventBus
|
|
26
26
|
*/
|
|
27
27
|
var ServiceEventBus = EventBus.extend("sap.ui.rta.util.ServiceEventBus");
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
ServiceEventBus.prototype._callListener = function (fnCallback, oListener, sChannelId, sEventId, vData) {
|
|
29
|
+
ServiceEventBus.prototype._callListener = function(fnCallback, oListener, sChannelId, sEventId, vData) {
|
|
31
30
|
fnCallback.call(oListener, vData);
|
|
32
31
|
};
|
|
33
32
|
|
|
34
|
-
ServiceEventBus.prototype.getChannel = function
|
|
33
|
+
ServiceEventBus.prototype.getChannel = function(sChannelId) {
|
|
35
34
|
return this._mChannels[sChannelId];
|
|
36
35
|
};
|
|
37
36
|
|
|
@@ -16,15 +16,15 @@ sap.ui.define([
|
|
|
16
16
|
* @param {string} sFileName - Name of the file
|
|
17
17
|
* @return {jqXHR} - returns jqXHR object which can be thenable
|
|
18
18
|
*/
|
|
19
|
-
module.loadStyles = function
|
|
20
|
-
return jQuery.get(sap.ui.require.toUrl((
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
module.loadStyles = function(sFileName) {
|
|
20
|
+
return jQuery.get(sap.ui.require.toUrl(("sap.ui.rta.assets." + sFileName).replace(/\./g, "/")) + ".css")
|
|
21
|
+
.then(function(sData) {
|
|
22
|
+
// TODO: check if it's possible to use UI5 standard mechanism for styles adjustments
|
|
23
|
+
if (Configuration.getRTL()) {
|
|
24
|
+
return sData.replace(/right/g, "left");
|
|
25
|
+
}
|
|
26
|
+
return sData;
|
|
27
|
+
});
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
return module;
|
|
@@ -14,7 +14,7 @@ sap.ui.define([], function() {
|
|
|
14
14
|
* @param {string} sParamName - Parameter name
|
|
15
15
|
* @return {string|undefined} - Returns value of the specified param or undefined if not found
|
|
16
16
|
*/
|
|
17
|
-
module.getParam = function
|
|
17
|
+
module.getParam = function(sParamName) {
|
|
18
18
|
return module.getParams()[sParamName];
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -23,28 +23,28 @@ sap.ui.define([], function() {
|
|
|
23
23
|
* @param {string} [sUrl] - Url parameter string notation starting with ? and following key value pair
|
|
24
24
|
* @returns {object} Object with key value pairs of given parameters
|
|
25
25
|
*/
|
|
26
|
-
module.getParams = function
|
|
26
|
+
module.getParams = function(sUrl) {
|
|
27
27
|
sUrl = (sUrl || sUrl === "") ? sUrl : document.location.search;
|
|
28
28
|
return sUrl
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
.replace(/^\?/, "")
|
|
30
|
+
.split("&")
|
|
31
|
+
.reduce(function(mParams, sParam) {
|
|
32
|
+
var aParts = sParam.split("="); // split on key/value
|
|
33
|
+
var sValue = aParts[1];
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
switch (sValue) {
|
|
36
|
+
case "true":
|
|
37
|
+
sValue = true;
|
|
38
|
+
break;
|
|
39
|
+
case "false":
|
|
40
|
+
sValue = false;
|
|
41
|
+
break;
|
|
42
|
+
default: break;
|
|
43
|
+
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
mParams[aParts[0]] = sValue;
|
|
46
|
+
return mParams;
|
|
47
|
+
}, {});
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
return module;
|
|
@@ -33,14 +33,14 @@ sap.ui.define([
|
|
|
33
33
|
function checkKeyUser(sLayer) {
|
|
34
34
|
if (Layer.CUSTOMER === sLayer) {
|
|
35
35
|
return FeaturesAPI.isKeyUser()
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
.then(function(bIsKeyUser) {
|
|
37
|
+
if (!bIsKeyUser) {
|
|
38
|
+
var oRtaResourceBundle = Core.getLibraryResourceBundle("sap.ui.rta");
|
|
39
|
+
var oError = new Error(oRtaResourceBundle.getText("MSG_NO_KEY_USER_RIGHTS_ERROR_MESSAGE"));
|
|
40
|
+
oError.reason = "isKeyUser";
|
|
41
|
+
throw oError;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
44
|
}
|
|
45
45
|
return Promise.resolve();
|
|
46
46
|
}
|
|
@@ -123,36 +123,39 @@ sap.ui.define([
|
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
PersistenceWriteAPI.getChangesWarning(mPropertyBag)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
126
|
+
.then(function(oWarningMessage) {
|
|
127
|
+
if (oWarningMessage.showWarning) {
|
|
128
|
+
var oRtaResourceBundle = Core.getLibraryResourceBundle("sap.ui.rta");
|
|
129
|
+
var oMessageProps = oWarningMessage.warningType === "mixedChangesWarning"
|
|
130
|
+
? {
|
|
131
|
+
text: "MSG_ADAPTATION_STARTER_MIXED_CHANGES_WARNING",
|
|
132
|
+
title: "TIT_ADAPTATION_STARTER_MIXED_CHANGES_TITLE"
|
|
133
|
+
}
|
|
134
|
+
: {
|
|
135
|
+
text: "MSG_ADAPTATION_STARTER_NO_CHANGES_IN_P_WARNING",
|
|
136
|
+
title: "TIT_ADAPTATION_STARTER_NO_CHANGES_IN_P_TITLE"
|
|
137
|
+
};
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
139
|
+
showMessageBox(
|
|
140
|
+
oRtaResourceBundle.getText(oMessageProps.text),
|
|
141
|
+
{
|
|
142
|
+
title: oRtaResourceBundle.getText(oMessageProps.title)
|
|
143
|
+
},
|
|
144
|
+
"warning"
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
148
|
}
|
|
149
149
|
return oRta;
|
|
150
150
|
})
|
|
151
151
|
.catch(function(vError) {
|
|
152
|
-
if (
|
|
152
|
+
if (
|
|
153
|
+
vError !== "Reload triggered"
|
|
154
|
+
&& !(FlexUtils.getUshellContainer() && vError.reason === "flexEnabled") // FLP Plugin already handles this error
|
|
155
|
+
) {
|
|
153
156
|
var oRtaResourceBundle = Core.getLibraryResourceBundle("sap.ui.rta");
|
|
154
157
|
showMessageBox(
|
|
155
|
-
oRtaResourceBundle.getText("MSG_GENERIC_ERROR_MESSAGE", vError.message),
|
|
158
|
+
oRtaResourceBundle.getText("MSG_GENERIC_ERROR_MESSAGE", [vError.message]),
|
|
156
159
|
{title: oRtaResourceBundle.getText("MSG_ADAPTATION_COULD_NOT_START")},
|
|
157
160
|
"error"
|
|
158
161
|
);
|
|
@@ -5,29 +5,31 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/core/Fragment",
|
|
9
|
-
"sap/ui/model/json/JSONModel",
|
|
10
|
-
"sap/ui/core/Control",
|
|
11
8
|
"sap/ui/core/format/DateFormat",
|
|
9
|
+
"sap/ui/core/Control",
|
|
10
|
+
"sap/ui/core/Core",
|
|
11
|
+
"sap/ui/core/Fragment",
|
|
12
|
+
"sap/ui/core/StaticArea",
|
|
12
13
|
"sap/ui/events/KeyCodes",
|
|
13
|
-
"sap/ui/rta/util/changeVisualization/commands/getCommandVisualization",
|
|
14
|
-
"sap/ui/fl/Utils",
|
|
15
14
|
"sap/ui/fl/util/resolveBinding",
|
|
16
|
-
"sap/ui/
|
|
17
|
-
"sap/ui/
|
|
18
|
-
"sap/ui/rta/util/changeVisualization/
|
|
15
|
+
"sap/ui/fl/Utils",
|
|
16
|
+
"sap/ui/model/json/JSONModel",
|
|
17
|
+
"sap/ui/rta/util/changeVisualization/commands/getCommandVisualization",
|
|
18
|
+
"sap/ui/rta/util/changeVisualization/ChangeCategories",
|
|
19
|
+
"sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils"
|
|
19
20
|
], function(
|
|
20
|
-
Fragment,
|
|
21
|
-
JSONModel,
|
|
22
|
-
Control,
|
|
23
21
|
DateFormat,
|
|
22
|
+
Control,
|
|
23
|
+
Core,
|
|
24
|
+
Fragment,
|
|
25
|
+
StaticArea,
|
|
24
26
|
KeyCodes,
|
|
25
|
-
getCommandVisualization,
|
|
26
|
-
FlUtils,
|
|
27
27
|
resolveBinding,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
FlUtils,
|
|
29
|
+
JSONModel,
|
|
30
|
+
getCommandVisualization,
|
|
31
|
+
ChangeCategories,
|
|
32
|
+
ChangeVisualizationUtils
|
|
31
33
|
) {
|
|
32
34
|
"use strict";
|
|
33
35
|
|
|
@@ -40,7 +42,7 @@ sap.ui.define([
|
|
|
40
42
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
|
|
41
43
|
* @author SAP SE
|
|
42
44
|
* @since 1.84.0
|
|
43
|
-
* @version 1.
|
|
45
|
+
* @version 1.116.0
|
|
44
46
|
* @private
|
|
45
47
|
*/
|
|
46
48
|
var ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
|
|
@@ -308,7 +310,7 @@ sap.ui.define([
|
|
|
308
310
|
if (oDomRef) {
|
|
309
311
|
oDomRef.parentNode.removeChild(oDomRef);
|
|
310
312
|
}
|
|
311
|
-
this.placeAt(
|
|
313
|
+
this.placeAt(StaticArea.getDomRef());
|
|
312
314
|
|
|
313
315
|
this.setProperty("overlayId", sOverlayId);
|
|
314
316
|
return this;
|
|
@@ -397,7 +399,7 @@ sap.ui.define([
|
|
|
397
399
|
|
|
398
400
|
ChangeIndicator.prototype._toggleDetailPopover = function() {
|
|
399
401
|
if (!this.getAggregation("_popover")) {
|
|
400
|
-
//store the tabindex (tabindex will be removed on opening the popover)
|
|
402
|
+
// store the tabindex (tabindex will be removed on opening the popover)
|
|
401
403
|
this._iOldTabIndex = this.getDomRef().getAttribute("tabindex");
|
|
402
404
|
Fragment.load({
|
|
403
405
|
name: "sap.ui.rta.util.changeVisualization.ChangeIndicatorPopover",
|