@openui5/sap.ui.rta 1.107.0 → 1.108.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/THIRDPARTY.txt +1 -1
- 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 +14 -5
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -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/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 +1 -1
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/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 +49 -27
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +10 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +8 -4
- 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 +20 -10
- package/src/sap/ui/rta/messagebundle_ar.properties +6 -1
- package/src/sap/ui/rta/messagebundle_bg.properties +14 -9
- package/src/sap/ui/rta/messagebundle_ca.properties +6 -1
- package/src/sap/ui/rta/messagebundle_cs.properties +6 -1
- package/src/sap/ui/rta/messagebundle_cy.properties +6 -1
- package/src/sap/ui/rta/messagebundle_da.properties +6 -1
- package/src/sap/ui/rta/messagebundle_de.properties +6 -1
- package/src/sap/ui/rta/messagebundle_el.properties +6 -1
- package/src/sap/ui/rta/messagebundle_en.properties +6 -1
- package/src/sap/ui/rta/messagebundle_en_GB.properties +6 -1
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +6 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +6 -1
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +6 -1
- package/src/sap/ui/rta/messagebundle_es.properties +6 -1
- package/src/sap/ui/rta/messagebundle_es_MX.properties +6 -1
- package/src/sap/ui/rta/messagebundle_et.properties +6 -1
- package/src/sap/ui/rta/messagebundle_fi.properties +6 -1
- package/src/sap/ui/rta/messagebundle_fr.properties +6 -1
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +7 -2
- package/src/sap/ui/rta/messagebundle_hi.properties +6 -1
- package/src/sap/ui/rta/messagebundle_hr.properties +6 -1
- package/src/sap/ui/rta/messagebundle_hu.properties +6 -1
- package/src/sap/ui/rta/messagebundle_id.properties +6 -1
- package/src/sap/ui/rta/messagebundle_it.properties +6 -1
- package/src/sap/ui/rta/messagebundle_iw.properties +6 -1
- package/src/sap/ui/rta/messagebundle_ja.properties +6 -1
- package/src/sap/ui/rta/messagebundle_kk.properties +6 -1
- package/src/sap/ui/rta/messagebundle_ko.properties +6 -1
- package/src/sap/ui/rta/messagebundle_lt.properties +6 -1
- package/src/sap/ui/rta/messagebundle_lv.properties +6 -1
- package/src/sap/ui/rta/messagebundle_ms.properties +6 -1
- package/src/sap/ui/rta/messagebundle_nl.properties +6 -1
- package/src/sap/ui/rta/messagebundle_no.properties +6 -1
- package/src/sap/ui/rta/messagebundle_pl.properties +6 -1
- package/src/sap/ui/rta/messagebundle_pt.properties +6 -1
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +6 -1
- package/src/sap/ui/rta/messagebundle_ro.properties +6 -1
- package/src/sap/ui/rta/messagebundle_ru.properties +6 -1
- package/src/sap/ui/rta/messagebundle_sh.properties +6 -1
- package/src/sap/ui/rta/messagebundle_sk.properties +6 -1
- package/src/sap/ui/rta/messagebundle_sl.properties +6 -1
- package/src/sap/ui/rta/messagebundle_sv.properties +6 -1
- package/src/sap/ui/rta/messagebundle_th.properties +6 -1
- package/src/sap/ui/rta/messagebundle_tr.properties +6 -1
- package/src/sap/ui/rta/messagebundle_uk.properties +6 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +6 -1
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +6 -1
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +6 -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/CompVariant.js +75 -29
- 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 +3 -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 +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- 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 +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +7 -8
- 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 +2 -2
- 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 +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +16 -0
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +21 -4
- package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +28 -0
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +135 -53
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +39 -0
- package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +6 -3
|
@@ -5,16 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/m/MessageBox",
|
|
8
9
|
"sap/base/util/restricted/_omit",
|
|
9
10
|
"sap/base/util/isEmptyObject",
|
|
11
|
+
"sap/ui/dt/OverlayRegistry",
|
|
10
12
|
"sap/ui/dt/Util",
|
|
11
13
|
"sap/ui/rta/plugin/Plugin",
|
|
12
14
|
"sap/ui/rta/plugin/RenameHandler",
|
|
13
15
|
"sap/ui/rta/Utils",
|
|
14
16
|
"sap/ui/fl/write/api/ContextSharingAPI"
|
|
15
17
|
], function(
|
|
18
|
+
MessageBox,
|
|
16
19
|
_omit,
|
|
17
20
|
isEmptyObject,
|
|
21
|
+
OverlayRegistry,
|
|
18
22
|
DtUtil,
|
|
19
23
|
Plugin,
|
|
20
24
|
RenameHandler,
|
|
@@ -91,9 +95,10 @@ sap.ui.define([
|
|
|
91
95
|
// ------ configure ------
|
|
92
96
|
function configureVariants(aOverlays) {
|
|
93
97
|
var oVariantManagementControl = aOverlays[0].getElement();
|
|
98
|
+
var mSettings = Object.assign({isComp: true}, this.getCommandFactory().getFlexSettings());
|
|
94
99
|
var mPropertyBag = {
|
|
95
100
|
layer: this.getCommandFactory().getFlexSettings().layer,
|
|
96
|
-
contextSharingComponentContainer: ContextSharingAPI.createComponent(
|
|
101
|
+
contextSharingComponentContainer: ContextSharingAPI.createComponent(mSettings),
|
|
97
102
|
rtaStyleClass: Utils.getRtaStyleClassName()
|
|
98
103
|
};
|
|
99
104
|
oVariantManagementControl.openManageViewsDialogForKeyUser(mPropertyBag, function(oData) {
|
|
@@ -141,39 +146,80 @@ sap.ui.define([
|
|
|
141
146
|
}
|
|
142
147
|
|
|
143
148
|
// ------ save as ------
|
|
144
|
-
function saveAsNewVariant(aOverlays) {
|
|
149
|
+
function saveAsNewVariant(aOverlays, bImplicitSaveAs) {
|
|
145
150
|
var oVariantManagementControl = aOverlays[0].getElement();
|
|
146
|
-
var
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
151
|
+
var mSettings = Object.assign({isComp: true}, this.getCommandFactory().getFlexSettings());
|
|
152
|
+
var oContextSharingComponentContainer = ContextSharingAPI.createComponent(mSettings);
|
|
153
|
+
return new Promise(function(resolve) {
|
|
154
|
+
oVariantManagementControl.openSaveAsDialogForKeyUser(Utils.getRtaStyleClassName(), function(oReturn) {
|
|
155
|
+
if (oReturn) {
|
|
156
|
+
createCommandAndFireEvent.call(this, aOverlays[0], "compVariantSaveAs", {
|
|
157
|
+
newVariantProperties: {
|
|
158
|
+
"default": oReturn.default,
|
|
159
|
+
executeOnSelection: oReturn.executeOnSelection,
|
|
160
|
+
content: oReturn.content,
|
|
161
|
+
type: oReturn.type,
|
|
162
|
+
text: oReturn.text,
|
|
163
|
+
contexts: oReturn.contexts
|
|
164
|
+
},
|
|
165
|
+
previousDirtyFlag: oVariantManagementControl.getModified(),
|
|
166
|
+
previousVariantId: oVariantManagementControl.getPresentVariantId(),
|
|
167
|
+
previousDefault: oVariantManagementControl.getDefaultVariantId(),
|
|
168
|
+
activateAfterUndo: !!bImplicitSaveAs
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
resolve(oReturn);
|
|
172
|
+
}.bind(this), oContextSharingComponentContainer);
|
|
173
|
+
}.bind(this));
|
|
164
174
|
}
|
|
165
175
|
|
|
166
176
|
// ------ change content ------
|
|
177
|
+
function onWarningClose(oVariantManagementControl, sVariantId, sAction) {
|
|
178
|
+
var oLibraryBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
179
|
+
if (sAction === oLibraryBundle.getText("BTN_CREATE_NEW_VIEW")) {
|
|
180
|
+
saveAsNewVariant.call(this, [OverlayRegistry.getOverlay(oVariantManagementControl)], true)
|
|
181
|
+
.then(function(oReturn) {
|
|
182
|
+
// in case the user cancels the save as the original variant is applied again and the changes are gone
|
|
183
|
+
if (!oReturn) {
|
|
184
|
+
oVariantManagementControl.activateVariant(sVariantId);
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
} else {
|
|
188
|
+
oVariantManagementControl.activateVariant(sVariantId);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
167
192
|
function changeContent(aOverlays) {
|
|
168
|
-
var
|
|
169
|
-
var
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
193
|
+
var oLibraryBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
194
|
+
var oElementOverlay = aOverlays[0];
|
|
195
|
+
var oControl = oElementOverlay.getElementInstance();
|
|
196
|
+
var oAction = this.getAction(oElementOverlay);
|
|
197
|
+
|
|
198
|
+
return oAction.handler(oControl, {styleClass: Utils.getRtaStyleClassName()}).then(function(aChangeContentData) {
|
|
199
|
+
if (aChangeContentData && aChangeContentData.length) {
|
|
200
|
+
var sPersistencyKey = aChangeContentData[0].changeSpecificData.content.persistencyKey;
|
|
201
|
+
var oVariantManagementControl = oControl.getVariantManagement();
|
|
202
|
+
var aVariants = oVariantManagementControl.getAllVariants();
|
|
203
|
+
var oCurrentVariant = aVariants.find(function(oVariant) {
|
|
204
|
+
return oVariant.getVariantId() === oVariantManagementControl.getPresentVariantId();
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
// a variant that can't be overwritten must never get dirty,
|
|
208
|
+
// instead the user needs to save the changes to a new variant
|
|
209
|
+
if (oCurrentVariant.isEditEnabled(this.getCommandFactory().getFlexSettings().layer)) {
|
|
210
|
+
createCommandAndFireEvent.call(this, oElementOverlay, "compVariantContent", {
|
|
211
|
+
variantId: aChangeContentData[0].changeSpecificData.content.key,
|
|
212
|
+
newContent: aChangeContentData[0].changeSpecificData.content.content,
|
|
213
|
+
persistencyKey: sPersistencyKey
|
|
214
|
+
}, oControl.getVariantManagement());
|
|
215
|
+
} else {
|
|
216
|
+
MessageBox.warning(oLibraryBundle.getText("MSG_CHANGE_READONLY_VARIANT"), {
|
|
217
|
+
onClose: onWarningClose.bind(this, oVariantManagementControl, oCurrentVariant.getVariantId()),
|
|
218
|
+
actions: [oLibraryBundle.getText("BTN_CREATE_NEW_VIEW"), MessageBox.Action.CANCEL],
|
|
219
|
+
emphasizedAction: oLibraryBundle.getText("BTN_CREATE_NEW_VIEW"),
|
|
220
|
+
styleClass: Utils.getRtaStyleClassName()
|
|
221
|
+
});
|
|
222
|
+
}
|
|
177
223
|
}
|
|
178
224
|
}.bind(this));
|
|
179
225
|
}
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class The CreateContainer allows trigger CreateContainer operations on the overlay
|
|
26
26
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.108.0
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.34
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class The EasyAdd Plugin adds an Icon to an Overlay, which allows to trigger add operations directly
|
|
26
26
|
* @extends sap.ui.rta.plugin.additionalElements.AdditionalElementsPlugin
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.108.0
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.48
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @class The EasyRemove Plugin adds an Icon to an Overlay, which allows to trigger remove operations directly
|
|
24
24
|
* @extends sap.ui.rta.plugin.Remove
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.108.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.48
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* Provides Rename handling functionality
|
|
58
58
|
*
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.108.0
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -95,6 +95,8 @@ sap.ui.define([
|
|
|
95
95
|
if (this._$editableField) {
|
|
96
96
|
this._$editableField.offset({left: this._$oEditableControlDomRef.offset().left});
|
|
97
97
|
this._$editableField.offset({top: this._$oEditableControlDomRef.offset().top});
|
|
98
|
+
this._oEditedOverlay.setSelected(true);
|
|
99
|
+
this._$editableField.focus();
|
|
98
100
|
}
|
|
99
101
|
},
|
|
100
102
|
|
|
@@ -30,7 +30,7 @@ function (
|
|
|
30
30
|
* @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
|
|
31
31
|
* @extends sap.ui.rta.plugin.Plugin
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.108.0
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.34
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* handled by the AdditionalElements Plugin (Reveal, Add Via Delegate, Add Custom)
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.108.0
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.94
|
|
38
38
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -75,7 +75,7 @@ sap.ui.define([
|
|
|
75
75
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
76
76
|
* @extends sap.ui.rta.plugin.Plugin
|
|
77
77
|
* @author SAP SE
|
|
78
|
-
* @version 1.
|
|
78
|
+
* @version 1.108.0
|
|
79
79
|
* @constructor
|
|
80
80
|
* @private
|
|
81
81
|
* @since 1.44
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
* Helper object containing methods for the AdditionalElements plugin
|
|
16
16
|
*
|
|
17
17
|
* @author SAP SE
|
|
18
|
-
* @version 1.
|
|
18
|
+
* @version 1.108.0
|
|
19
19
|
* @private
|
|
20
20
|
* @since 1.94
|
|
21
21
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* Helper object to build the RTA commands resulting from the AdditionalElements Plugin
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.108.0
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.94
|
|
31
31
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -143,7 +143,7 @@ sap.ui.define([
|
|
|
143
143
|
function areLibDependenciesMissing(oComponent, mRequiredLibraries) {
|
|
144
144
|
var mAppsLibDependencies = oComponent.getManifestEntry("/sap.ui5/dependencies/libs");
|
|
145
145
|
return Object.keys(mRequiredLibraries).some(function(sRequiredLib) {
|
|
146
|
-
return !mAppsLibDependencies[sRequiredLib];
|
|
146
|
+
return !mAppsLibDependencies[sRequiredLib] || mAppsLibDependencies[sRequiredLib].lazy;
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -110,7 +110,7 @@ sap.ui.define([
|
|
|
110
110
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
111
111
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
112
112
|
* @author SAP SE
|
|
113
|
-
* @version 1.
|
|
113
|
+
* @version 1.108.0
|
|
114
114
|
* @constructor
|
|
115
115
|
* @private
|
|
116
116
|
* @since 1.75
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
// shortcut for sap.ui.core.ValueState
|
|
28
28
|
var ValueState = coreLibrary.ValueState;
|
|
29
29
|
var _oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
30
|
-
var _sDocumentationURL = "https://help.sap.com/
|
|
30
|
+
var _sDocumentationURL = "https://help.sap.com/docs/search?q=Embedding%20Content%20%28Object%20Pages%29";
|
|
31
31
|
var _sDocumentationHTML = _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_URL_WARNING_TEXT") + " (" + "<a href=" + _sDocumentationURL + ">" + _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_URL_WARNING_LINKTEXT") + "</a>" + ")";
|
|
32
32
|
var _mText = {
|
|
33
33
|
dialogTitle: _oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_TITLE"),
|
|
@@ -113,7 +113,7 @@ sap.ui.define([
|
|
|
113
113
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
114
114
|
* @extends sap.ui.base.ManagedObject
|
|
115
115
|
* @author SAP SE
|
|
116
|
-
* @version 1.
|
|
116
|
+
* @version 1.108.0
|
|
117
117
|
* @constructor
|
|
118
118
|
* @private
|
|
119
119
|
* @since 1.78
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @class
|
|
29
29
|
*
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.108.0
|
|
32
32
|
*
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
@@ -61,14 +61,17 @@ sap.ui.define([
|
|
|
61
61
|
}
|
|
62
62
|
}).then(function (oDialog) {
|
|
63
63
|
this._oAddAdaptationDialog = oDialog;
|
|
64
|
+
this._oAddAdaptationDialog.attachBeforeClose(_clearComponent.bind(this));
|
|
64
65
|
oDialog.addStyleClass(Utils.getRtaStyleClassName());
|
|
65
66
|
this.getToolbar().addDependent(this._oAddAdaptationDialog);
|
|
66
|
-
createContextSharingComponent.call(this, sLayer);
|
|
67
67
|
}.bind(this));
|
|
68
68
|
} else {
|
|
69
69
|
this.getToolbar().getControl("addAdaptationDialog--saveContextBasedAdaptation-title-input").setValue("");
|
|
70
70
|
}
|
|
71
71
|
return this._oAddAdaptationDialogPromise.then(function () {
|
|
72
|
+
return createContextSharingComponent.call(this, sLayer);
|
|
73
|
+
}.bind(this)).then(function () {
|
|
74
|
+
this._oContextComponentInstance.showMessageStrip(false);
|
|
72
75
|
return this._oAddAdaptationDialog.open();
|
|
73
76
|
}.bind(this));
|
|
74
77
|
};
|
|
@@ -79,7 +82,6 @@ sap.ui.define([
|
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
function _onCancelContextBasedAdaptationDialog() {
|
|
82
|
-
_clearContexts.call(this);
|
|
83
85
|
this._oAddAdaptationDialog.close();
|
|
84
86
|
}
|
|
85
87
|
|
|
@@ -112,13 +114,10 @@ sap.ui.define([
|
|
|
112
114
|
this.getToolbar().getControl("addAdaptationDialog--saveContextBasedAdaptation-saveButton").setEnabled(bEnable);
|
|
113
115
|
}
|
|
114
116
|
|
|
115
|
-
function
|
|
117
|
+
function _clearComponent() {
|
|
116
118
|
if (this._oContextComponentInstance) {
|
|
117
|
-
|
|
118
|
-
return createContextSharingComponent.call(this);
|
|
119
|
-
}
|
|
119
|
+
this._oContextComponentInstance.showMessageStrip(true);
|
|
120
120
|
this._oContextComponentInstance.resetSelectedContexts();
|
|
121
|
-
this._oAddAdaptationDialog.addContent(this._oContextComponent);
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
return SaveAsContextBasedAdaptation;
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
* Constructor for a new sap.ui.rta.util.PluginManager
|
|
69
69
|
* @extends sap.ui.base.ManagedObject
|
|
70
70
|
* @author SAP SE
|
|
71
|
-
* @version 1.
|
|
71
|
+
* @version 1.108.0
|
|
72
72
|
* @constructor
|
|
73
73
|
* @private
|
|
74
74
|
* @since 1.86
|
|
@@ -213,7 +213,7 @@ sap.ui.define([
|
|
|
213
213
|
if (
|
|
214
214
|
oFlexSettings.layer === Layer.CUSTOMER
|
|
215
215
|
&& oSettings
|
|
216
|
-
&& oSettings.
|
|
216
|
+
&& oSettings.isLocalResetEnabled()
|
|
217
217
|
) {
|
|
218
218
|
this._mDefaultPlugins["localReset"] = new LocalResetPlugin({
|
|
219
219
|
commandFactory: this._oCommandFactory
|