@openui5/sap.ui.rta 1.136.1 → 1.138.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/REUSE.toml +0 -28
- package/THIRDPARTY.txt +1 -25
- 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 +33 -22
- 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/AnnotationCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +1 -1
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +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/ExtendControllerCommand.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +2 -3
- package/src/sap/ui/rta/command/LREPSerializer.js +2 -85
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/ManifestCommand.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 +115 -87
- 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/command/manifest/AddLibrary.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 +12 -60
- package/src/sap/ui/rta/messagebundle_ar.properties +17 -41
- package/src/sap/ui/rta/messagebundle_bg.properties +17 -41
- package/src/sap/ui/rta/messagebundle_ca.properties +17 -41
- package/src/sap/ui/rta/messagebundle_cnr.properties +17 -41
- package/src/sap/ui/rta/messagebundle_cs.properties +16 -40
- package/src/sap/ui/rta/messagebundle_cy.properties +17 -41
- package/src/sap/ui/rta/messagebundle_da.properties +17 -41
- package/src/sap/ui/rta/messagebundle_de.properties +15 -39
- package/src/sap/ui/rta/messagebundle_el.properties +17 -41
- package/src/sap/ui/rta/messagebundle_en.properties +18 -42
- package/src/sap/ui/rta/messagebundle_en_GB.properties +18 -42
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +102 -35
- package/src/sap/ui/rta/messagebundle_es.properties +43 -67
- package/src/sap/ui/rta/messagebundle_es_MX.properties +17 -41
- package/src/sap/ui/rta/messagebundle_et.properties +18 -42
- package/src/sap/ui/rta/messagebundle_fi.properties +17 -41
- package/src/sap/ui/rta/messagebundle_fr.properties +18 -42
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +18 -42
- package/src/sap/ui/rta/messagebundle_hi.properties +17 -41
- package/src/sap/ui/rta/messagebundle_hr.properties +18 -42
- package/src/sap/ui/rta/messagebundle_hu.properties +17 -41
- package/src/sap/ui/rta/messagebundle_id.properties +22 -46
- package/src/sap/ui/rta/messagebundle_it.properties +17 -41
- package/src/sap/ui/rta/messagebundle_iw.properties +18 -42
- package/src/sap/ui/rta/messagebundle_ja.properties +20 -44
- package/src/sap/ui/rta/messagebundle_kk.properties +23 -47
- package/src/sap/ui/rta/messagebundle_ko.properties +18 -42
- package/src/sap/ui/rta/messagebundle_lt.properties +17 -41
- package/src/sap/ui/rta/messagebundle_lv.properties +17 -41
- package/src/sap/ui/rta/messagebundle_mk.properties +19 -43
- package/src/sap/ui/rta/messagebundle_ms.properties +17 -41
- package/src/sap/ui/rta/messagebundle_nl.properties +16 -40
- package/src/sap/ui/rta/messagebundle_no.properties +17 -41
- package/src/sap/ui/rta/messagebundle_pl.properties +20 -44
- package/src/sap/ui/rta/messagebundle_pt.properties +17 -41
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +18 -42
- package/src/sap/ui/rta/messagebundle_ro.properties +17 -41
- package/src/sap/ui/rta/messagebundle_ru.properties +17 -41
- package/src/sap/ui/rta/messagebundle_sh.properties +17 -41
- package/src/sap/ui/rta/messagebundle_sk.properties +13 -37
- package/src/sap/ui/rta/messagebundle_sl.properties +38 -62
- package/src/sap/ui/rta/messagebundle_sr.properties +17 -41
- package/src/sap/ui/rta/messagebundle_sv.properties +18 -42
- package/src/sap/ui/rta/messagebundle_th.properties +18 -42
- package/src/sap/ui/rta/messagebundle_tr.properties +17 -41
- package/src/sap/ui/rta/messagebundle_uk.properties +18 -42
- package/src/sap/ui/rta/messagebundle_vi.properties +19 -43
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +18 -42
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +18 -42
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/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/ExtendControllerPlugin.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/Resize.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +14 -7
- 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 +11 -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/annotations/AnnotationChangeDialog.fragment.xml +16 -3
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +3 -3
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +23 -6
- package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/rename/RenameDialog.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +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/ActionsMenu.fragment.xml +4 -4
- package/src/sap/ui/rta/toolbar/Adaptation.js +15 -3
- 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/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
- 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/Animation.js +4 -6
- package/src/sap/ui/rta/util/BindingsExtractor.js +44 -53
- package/src/sap/ui/rta/util/PluginManager.js +6 -6
- package/src/sap/ui/rta/util/PopupManager.js +90 -109
- package/src/sap/ui/rta/util/ReloadManager.js +53 -98
- package/src/sap/ui/rta/util/ServiceEventBus.js +3 -4
- package/src/sap/ui/rta/util/ServiceManager.js +1 -1
- package/src/sap/ui/rta/util/adaptationStarter.js +59 -80
- package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +3 -3
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +2 -4
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +5 -7
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +9 -9
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +5 -5
- package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +8 -8
- package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +5 -5
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +5 -5
- package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +2 -2
- package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +1 -1
- package/src/sap/ui/rta/util/guidedTour/content/GeneralTour.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +11 -19
- package/src/sap/ui/rta/util/showMessageBox.js +15 -15
- package/src/sap/ui/rta/util/validateFlexEnabled.js +35 -34
- package/src/sap/ui/rta/util/validateStableIds.js +22 -31
- package/src/sap/ui/rta/util/validateText.js +7 -7
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +33 -7
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +2 -6
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +1 -0
- package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +4 -4
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +8 -22
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
|
|
32
32
|
* @extends sap.ui.rta.plugin.Plugin
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.138.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.34
|
|
@@ -270,7 +270,7 @@ sap.ui.define([
|
|
|
270
270
|
};
|
|
271
271
|
|
|
272
272
|
Selection.prototype._selectOverlay = function(oEvent) {
|
|
273
|
-
|
|
273
|
+
const oOverlay = OverlayRegistry.getOverlay(oEvent.currentTarget.id);
|
|
274
274
|
if (!this.getIsActive()) {
|
|
275
275
|
// Propagation should be stopped at the root overlay to prevent the selection of the underlying elements
|
|
276
276
|
if (oOverlay.isRoot()) {
|
|
@@ -278,19 +278,26 @@ sap.ui.define([
|
|
|
278
278
|
}
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
const oSelectionManager = this.getDesignTime().getSelectionManager();
|
|
282
|
+
const bMultipleOverlaysSelected = oSelectionManager.get().length > 1;
|
|
283
|
+
const bMultiSelection = oEvent.metaKey || oEvent.ctrlKey || oEvent.shiftKey;
|
|
284
|
+
const bContextMenu = oEvent.type === "contextmenu";
|
|
283
285
|
|
|
284
286
|
if (oOverlay && oOverlay.getSelectable()) {
|
|
285
287
|
if (oOverlay.isSelected()) {
|
|
286
288
|
// don't deselect on right click!
|
|
287
289
|
if (!bContextMenu) {
|
|
288
|
-
|
|
290
|
+
if (!bMultiSelection && bMultipleOverlaysSelected) {
|
|
291
|
+
// if the overlay is already selected and the user left clicks on it we deselect all other overlays
|
|
292
|
+
oSelectionManager.set([oOverlay]);
|
|
293
|
+
} else {
|
|
294
|
+
oSelectionManager.remove(oOverlay);
|
|
295
|
+
}
|
|
289
296
|
}
|
|
290
297
|
} else if (bMultiSelection) {
|
|
291
|
-
|
|
298
|
+
oSelectionManager.add(oOverlay);
|
|
292
299
|
} else {
|
|
293
|
-
|
|
300
|
+
oSelectionManager.set(oOverlay);
|
|
294
301
|
}
|
|
295
302
|
|
|
296
303
|
preventEventDefaultAndPropagation(oEvent);
|
|
@@ -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.138.0
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.94
|
|
38
38
|
*/
|
|
@@ -303,6 +303,16 @@ sap.ui.define([
|
|
|
303
303
|
let mRevealCache = {};
|
|
304
304
|
let bIsSyncRegistered = true;
|
|
305
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Clears the cache of the Reveal actions data.
|
|
308
|
+
* It also registers a sync event to clear the cache after the DesignTime is synced.
|
|
309
|
+
* This should only be used in tests.
|
|
310
|
+
*/
|
|
311
|
+
ActionExtractor.clearCache = function() {
|
|
312
|
+
mRevealCache = {};
|
|
313
|
+
bIsSyncRegistered = true;
|
|
314
|
+
};
|
|
315
|
+
|
|
306
316
|
/**
|
|
307
317
|
* Returns the Reveal actions data (parameters + elements) for an Overlay
|
|
308
318
|
* @param {boolean} bSibling - If source element overlay should be sibling or parent to the newly added fields
|
|
@@ -119,7 +119,7 @@ sap.ui.define([
|
|
|
119
119
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
120
120
|
* @extends sap.ui.rta.plugin.Plugin
|
|
121
121
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
122
|
+
* @version 1.138.0
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.44
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
id="sapUiRtaChangeAnnotationDialog_propertiesFilter"
|
|
41
41
|
placeholder="{i18n>ANNOTATION_CHANGE_DIALOG_PROPERTY_SEARCH}"
|
|
42
42
|
value="{/filterText}"
|
|
43
|
-
liveChange="onFilterProperties"
|
|
43
|
+
liveChange="onFilterProperties"
|
|
44
|
+
enabled="{= ${/properties}.length > 0}">
|
|
44
45
|
<layoutData>
|
|
45
46
|
<FlexItemData growFactor="1" styleClass="sapUiSmallMarginEnd"/>
|
|
46
47
|
</layoutData>
|
|
@@ -53,10 +54,14 @@
|
|
|
53
54
|
state="{/showChangedPropertiesOnly}"
|
|
54
55
|
change="switchDisplayMode"
|
|
55
56
|
customTextOn=" "
|
|
56
|
-
customTextOff=" "
|
|
57
|
+
customTextOff=" "
|
|
58
|
+
enabled="{= ${/properties}.length > 0}"/>
|
|
57
59
|
</HBox>
|
|
58
60
|
</HBox>
|
|
59
|
-
<f:Form
|
|
61
|
+
<f:Form
|
|
62
|
+
id="sapUiRtaChangeAnnotationDialog_propertyListForm"
|
|
63
|
+
editable="true"
|
|
64
|
+
visible="{= ${/properties}.length > 0}">
|
|
60
65
|
<f:layout>
|
|
61
66
|
<f:ResponsiveGridLayout
|
|
62
67
|
labelSpanXL="4"
|
|
@@ -77,6 +82,13 @@
|
|
|
77
82
|
id="sapUiRtaChangeAnnotationDialog_propertyList"
|
|
78
83
|
formElements="{path: '/propertiesToDisplay', factory: '.editorFactory'}" />
|
|
79
84
|
</f:Form>
|
|
85
|
+
<IllustratedMessage
|
|
86
|
+
illustrationType="sapIllus-NoData"
|
|
87
|
+
enableVerticalResponsiveness="true"
|
|
88
|
+
title="{i18n>ANNOTATION_CHANGE_DIALOG_NO_PROPERTIES_TITLE}"
|
|
89
|
+
description="{i18n>ANNOTATION_CHANGE_DIALOG_NO_PROPERTIES_DESCRIPTION}"
|
|
90
|
+
visible="{= ${/properties}.length === 0}">
|
|
91
|
+
</IllustratedMessage>
|
|
80
92
|
</VBox>
|
|
81
93
|
</content>
|
|
82
94
|
<beginButton>
|
|
@@ -85,6 +97,7 @@
|
|
|
85
97
|
type="Emphasized"
|
|
86
98
|
text="{i18n>ANNOTATION_CHANGE_DIALOG_CONFIRM}"
|
|
87
99
|
press="onSave"
|
|
100
|
+
visible="{= ${/properties}.length > 0}"
|
|
88
101
|
/>
|
|
89
102
|
</beginButton>
|
|
90
103
|
<endButton>
|
|
@@ -57,9 +57,9 @@ sap.ui.define([
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
function getActionText(oElementOverlay, oAction
|
|
60
|
+
function getActionText(oElementOverlay, oAction) {
|
|
61
61
|
const vName = oAction.title;
|
|
62
|
-
const oElement =
|
|
62
|
+
const oElement = oElementOverlay.getElement();
|
|
63
63
|
if (vName) {
|
|
64
64
|
if (typeof vName === "function") {
|
|
65
65
|
return vName(oElement);
|
|
@@ -105,7 +105,7 @@ sap.ui.define([
|
|
|
105
105
|
* @class
|
|
106
106
|
* @extends sap.ui.rta.plugin.Plugin
|
|
107
107
|
* @author SAP SE
|
|
108
|
-
* @version 1.
|
|
108
|
+
* @version 1.138.0
|
|
109
109
|
* @constructor
|
|
110
110
|
* @private
|
|
111
111
|
* @since 1.132
|
|
@@ -119,7 +119,7 @@ sap.ui.define([
|
|
|
119
119
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
120
120
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
121
121
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
122
|
+
* @version 1.138.0
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.75
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
contentWidth="50rem"
|
|
18
18
|
contentHeight="44rem"
|
|
19
19
|
core:require="{ FloatType: 'sap/ui/model/type/Float' }"
|
|
20
|
-
|
|
20
|
+
beforeOpen="onBeforeOpen"
|
|
21
21
|
>
|
|
22
22
|
<content>
|
|
23
23
|
<layout:VerticalLayout
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
type="Emphasized"
|
|
421
421
|
text="{dialogInfo>/text/saveText}"
|
|
422
422
|
press="onSavePress"
|
|
423
|
-
enabled="{
|
|
423
|
+
enabled="{= !!${dialogInfo>/areAllFieldsValid}}"
|
|
424
424
|
/>
|
|
425
425
|
</beginButton>
|
|
426
426
|
<endButton>
|
|
@@ -64,7 +64,15 @@ sap.ui.define([
|
|
|
64
64
|
this._importSettings(mSettings);
|
|
65
65
|
},
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
onBeforeOpen() {
|
|
68
|
+
if (this._buildPreviewURL()) {
|
|
69
|
+
// If a URL is set initially (updateIframe), validate it
|
|
70
|
+
this.onValidateUrl();
|
|
71
|
+
} else {
|
|
72
|
+
// Disable the save button but don't show an error message
|
|
73
|
+
this._checkIfAllFieldsValid(false);
|
|
74
|
+
}
|
|
75
|
+
// Configure the MultiInput field
|
|
68
76
|
// This syntax is the suggested way by the UI5 documentation to trigger a submit on the input field on focus loss
|
|
69
77
|
const oMultiInput = Element.getElementById("sapUiRtaAddIFrameDialog_AddAdditionalParametersInput");
|
|
70
78
|
oMultiInput.addValidator(multiInputValidator);
|
|
@@ -103,8 +111,7 @@ sap.ui.define([
|
|
|
103
111
|
*/
|
|
104
112
|
onValidationSuccess(oEvent) {
|
|
105
113
|
oEvent.getSource().setValueState(ValueState.None);
|
|
106
|
-
this.
|
|
107
|
-
this._areAllTextFieldsValid() && this._areAllValueStateNones());
|
|
114
|
+
this._checkIfAllFieldsValid(true);
|
|
108
115
|
},
|
|
109
116
|
|
|
110
117
|
/**
|
|
@@ -113,7 +120,7 @@ sap.ui.define([
|
|
|
113
120
|
*/
|
|
114
121
|
onValidationError(oEvent) {
|
|
115
122
|
oEvent.getSource().setValueState(ValueState.Error);
|
|
116
|
-
this.
|
|
123
|
+
this._checkIfAllFieldsValid(false);
|
|
117
124
|
this._setFocusOnInvalidInput();
|
|
118
125
|
},
|
|
119
126
|
|
|
@@ -237,6 +244,16 @@ sap.ui.define([
|
|
|
237
244
|
return urlCleaner(this._oJSONModel.getProperty("/frameUrl/value"));
|
|
238
245
|
},
|
|
239
246
|
|
|
247
|
+
_checkIfAllFieldsValid(bExternalValidationSuccess) {
|
|
248
|
+
const bAllFieldsValid = (
|
|
249
|
+
bExternalValidationSuccess
|
|
250
|
+
&& !this._oJSONModel.getProperty("/frameUrlError/value")
|
|
251
|
+
&& this._areAllTextFieldsValid()
|
|
252
|
+
&& this._areAllValueStateNones()
|
|
253
|
+
);
|
|
254
|
+
this._oJSONModel.setProperty("/areAllFieldsValid", bAllFieldsValid);
|
|
255
|
+
},
|
|
256
|
+
|
|
240
257
|
onValidateUrl() {
|
|
241
258
|
const sUrl = this._buildPreviewURL();
|
|
242
259
|
const { result: bResult, error: sError } = isValidUrl(sUrl);
|
|
@@ -252,6 +269,7 @@ sap.ui.define([
|
|
|
252
269
|
const sErrorText = _oTextResources.getText(sErrorKey);
|
|
253
270
|
this._oJSONModel.setProperty("/frameUrlError/value", sErrorText);
|
|
254
271
|
}
|
|
272
|
+
this._checkIfAllFieldsValid(bResult);
|
|
255
273
|
},
|
|
256
274
|
|
|
257
275
|
/**
|
|
@@ -281,8 +299,7 @@ sap.ui.define([
|
|
|
281
299
|
bValidationError = true;
|
|
282
300
|
}
|
|
283
301
|
|
|
284
|
-
|
|
285
|
-
this._oJSONModel.setProperty("/areAllFieldsValid", bAllFieldsValid);
|
|
302
|
+
this._checkIfAllFieldsValid(!bValidationError);
|
|
286
303
|
oInput.setValueState(sValueState);
|
|
287
304
|
return bValidationError;
|
|
288
305
|
},
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
icon="sap-icon://BusinessSuiteInAppSymbols/icon-variant-configuration"
|
|
29
29
|
enabled="{controls>/appVariantMenu/enabled}"
|
|
30
30
|
visible="{= (${controls>/appVariantMenu/visible} && ${controls>/modeSwitcher} === 'adaptation')}"
|
|
31
|
-
text="{i18n>BTN_MANAGE_APPS_TXT}"
|
|
31
|
+
text="{i18n>BTN_MANAGE_APPS_TXT}"
|
|
32
|
+
tooltip="{path: 'controls>/appVariantMenu/enabled', formatter: '.formatManageAppVariants'}" >
|
|
32
33
|
<items>
|
|
33
34
|
<MenuItem
|
|
34
35
|
id="sapUiRta_appVariantOverview"
|
|
@@ -53,8 +54,8 @@
|
|
|
53
54
|
id="sapUiRta_manageApps"
|
|
54
55
|
icon="sap-icon://action-settings"
|
|
55
56
|
press=".manageApps"
|
|
56
|
-
enabled="{controls>/appVariantMenu/manageApps/enabled}"
|
|
57
57
|
visible="{= (${controls>/appVariantMenu/manageApps/visible} && ${controls>/modeSwitcher} === 'adaptation')}"
|
|
58
|
+
enabled="{controls>/appVariantMenu/manageApps/enabled}"
|
|
58
59
|
text="{i18n>BTN_MANAGE_APPS_ITEM}" />
|
|
59
60
|
<MenuItem
|
|
60
61
|
id="sapUiRta_saveAs"
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
enabled="{parts: ['controls>/appVariantMenu/saveAs/enabled', 'versions>/displayedVersion'], formatter: '.formatSaveAsEnabled'}"
|
|
63
64
|
press=".saveAs"
|
|
64
65
|
icon="sap-icon://copy"
|
|
66
|
+
tooltip="{path: 'controls>/appVariantMenu/saveAs/enabled', formatter: '.formatSaveAsAppVariants'}"
|
|
65
67
|
text="{i18n>BTN_SAVE_AS}" />
|
|
66
68
|
</items>
|
|
67
69
|
</MenuItem>
|
|
@@ -75,8 +77,6 @@
|
|
|
75
77
|
<MenuItem
|
|
76
78
|
id="sapUiRta_newFeaturesOverview"
|
|
77
79
|
icon="sap-icon://newspaper"
|
|
78
|
-
enabled="{controls>/newFeaturesOverview/enabled}"
|
|
79
|
-
visible="{controls>/newFeaturesOverview/visible}"
|
|
80
80
|
text="{i18n>BTN_WHATS_NEW_DIALOG_OVERVIEW}"
|
|
81
81
|
tooltip="{i18n>BTN_WHATS_NEW_DIALOG_OVERVIEW_TOOLTIP}"
|
|
82
82
|
press=".openWhatsNewOverviewDialog"/>
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* @extends sap.ui.rta.toolbar.Base
|
|
68
68
|
*
|
|
69
69
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.138.0
|
|
71
71
|
*
|
|
72
72
|
* @constructor
|
|
73
73
|
* @private
|
|
@@ -127,8 +127,8 @@ sap.ui.define([
|
|
|
127
127
|
|
|
128
128
|
Adaptation.prototype.exit = function(...aArgs) {
|
|
129
129
|
window.removeEventListener("resize", this._onResize);
|
|
130
|
-
this._aIntersectionObservers.forEach(function(
|
|
131
|
-
|
|
130
|
+
(this._aIntersectionObservers || []).forEach(function(oIntersectionObserver) {
|
|
131
|
+
oIntersectionObserver.disconnect();
|
|
132
132
|
});
|
|
133
133
|
Base.prototype.exit.apply(this, aArgs);
|
|
134
134
|
};
|
|
@@ -284,6 +284,8 @@ sap.ui.define([
|
|
|
284
284
|
overviewForDeveloper: onOverviewForDeveloperPressed.bind(this),
|
|
285
285
|
restore: this.eventHandler.bind(this, "Restore"),
|
|
286
286
|
formatSaveAsEnabled,
|
|
287
|
+
formatManageAppVariants: formatAppVariantsEnabled.bind(this),
|
|
288
|
+
formatSaveAsAppVariants: formatSaveAsAppVariantsEnabled.bind(this),
|
|
287
289
|
saveAs: onSaveAsPressed.bind(this),
|
|
288
290
|
openWhatsNewOverviewDialog,
|
|
289
291
|
openGuidedTour
|
|
@@ -378,6 +380,14 @@ sap.ui.define([
|
|
|
378
380
|
return bGeneralSaveAsEnabled && sDisplayedVersion !== Version.Number.Draft;
|
|
379
381
|
}
|
|
380
382
|
|
|
383
|
+
function formatAppVariantsEnabled(bAppVariantsMenuEnabled) {
|
|
384
|
+
return bAppVariantsMenuEnabled ? null : this.getTextResources().getText("TOOLTIP_MANAGE_APPS_TXT_DISABLED");
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
function formatSaveAsAppVariantsEnabled(bAppVariantSaveAsEnabled) {
|
|
388
|
+
return bAppVariantSaveAsEnabled ? null : this.getTextResources().getText("TOOLTIP_SAVE_AS_APP_VARIANT_DISABLED");
|
|
389
|
+
}
|
|
390
|
+
|
|
381
391
|
function onSaveAsPressed() {
|
|
382
392
|
AppVariantFeature.onSaveAs(true, true, this.getRtaInformation().flexSettings.layer, null);
|
|
383
393
|
}
|
|
@@ -547,6 +557,8 @@ sap.ui.define([
|
|
|
547
557
|
oUrlParams.set("feature", (oFeedbackUrlParams.connector === "KeyUserConnector" ? "BTP" : "ABAP"));
|
|
548
558
|
oUrlParams.set("appId", oFeedbackUrlParams.appId);
|
|
549
559
|
oUrlParams.set("appVersion", oFeedbackUrlParams.appVersion);
|
|
560
|
+
// Add product filter for qualtrics colleagues
|
|
561
|
+
oUrlParams.set("product_filter", "Key%20User%20Adaptation");
|
|
550
562
|
|
|
551
563
|
var oFeedbackDialogModel = new JSONModel({
|
|
552
564
|
url: `${sURL}?${oUrlParams.toString()}`
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
sap.ui.define([
|
|
8
|
-
],
|
|
9
|
-
function() {
|
|
7
|
+
sap.ui.define([], function() {
|
|
10
8
|
"use strict";
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
const module = {};
|
|
13
11
|
|
|
14
12
|
/**
|
|
15
13
|
* CSS Transition helper
|
|
@@ -26,8 +24,8 @@ function() {
|
|
|
26
24
|
oElement.addEventListener("transitionend", fnResolve, {once: true});
|
|
27
25
|
|
|
28
26
|
// perform animation in the next animation frame, normally 16-17ms later.
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
let iTimestampInitial;
|
|
28
|
+
const fnAnimCallback = function(iTimestamp) {
|
|
31
29
|
iTimestampInitial ||= iTimestamp;
|
|
32
30
|
if (iTimestamp !== iTimestampInitial) {
|
|
33
31
|
fnCallback();
|