@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
package/REUSE.toml
CHANGED
|
@@ -238,27 +238,6 @@ SPDX-FileCopyrightText = [
|
|
|
238
238
|
SPDX-License-Identifier = "Apache-2.0 and MIT"
|
|
239
239
|
SPDX-FileComment = "these files contain content from SAP and JUnit Reporter for QUnit: qunit-junit.js is overall written by SAP, but contains a modified copy of JUnit Reporter for QUnit (qunit-reporter-junit)"
|
|
240
240
|
|
|
241
|
-
[[annotations]]
|
|
242
|
-
path = "src/sap.ui.core/src/sap/ui/thirdparty/iscroll.js"
|
|
243
|
-
precedence = "aggregate"
|
|
244
|
-
SPDX-FileCopyrightText = "2012 Matteo Spinelli"
|
|
245
|
-
SPDX-License-Identifier = "MIT"
|
|
246
|
-
SPDX-FileComment = "these files belong to: cubiq.org - iScroll"
|
|
247
|
-
|
|
248
|
-
[[annotations]]
|
|
249
|
-
path = "src/sap.ui.core/src/sap/ui/thirdparty/iscroll-lite.js"
|
|
250
|
-
precedence = "aggregate"
|
|
251
|
-
SPDX-FileCopyrightText = "2011 Matteo Spinelli"
|
|
252
|
-
SPDX-License-Identifier = "MIT"
|
|
253
|
-
SPDX-FileComment = "these files belong to: cubiq.org - iScroll Lite"
|
|
254
|
-
|
|
255
|
-
[[annotations]]
|
|
256
|
-
path = "src/sap.ui.core/src/sap/ui/thirdparty/swipe-view.js"
|
|
257
|
-
precedence = "aggregate"
|
|
258
|
-
SPDX-FileCopyrightText = "2012 Matteo Spinelli"
|
|
259
|
-
SPDX-License-Identifier = "MIT"
|
|
260
|
-
SPDX-FileComment = "these files belong to: cubiq.org - swipeview"
|
|
261
|
-
|
|
262
241
|
[[annotations]]
|
|
263
242
|
path = "src/sap.ui.core/src/sap/ui/thirdparty/zyngascroll.js"
|
|
264
243
|
precedence = "aggregate"
|
|
@@ -308,13 +287,6 @@ SPDX-FileCopyrightText = "1991-2024 Unicode, Inc."
|
|
|
308
287
|
SPDX-License-Identifier = "LicenseRef-Unicode-3.0"
|
|
309
288
|
SPDX-FileComment = "these files belong to: Unicode Common Locale Data Repository"
|
|
310
289
|
|
|
311
|
-
[[annotations]]
|
|
312
|
-
path = "src/sap.ui.core/src/sap/ui/thirdparty/mobiscroll/**"
|
|
313
|
-
precedence = "aggregate"
|
|
314
|
-
SPDX-FileCopyrightText = "2010-2013, Acid Media"
|
|
315
|
-
SPDX-License-Identifier = "MIT"
|
|
316
|
-
SPDX-FileComment = "these files belong to: MobiScroll"
|
|
317
|
-
|
|
318
290
|
[[annotations]]
|
|
319
291
|
path = [
|
|
320
292
|
"src/sap.ui.core/src/sap/ui/thirdparty/sinon.js",
|
package/THIRDPARTY.txt
CHANGED
|
@@ -133,24 +133,6 @@ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
|
133
133
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-reporter-junit.js
|
|
134
134
|
src/sap.ui.core/src/sap/ui/qunit/qunit-junit.js
|
|
135
135
|
|
|
136
|
-
Component: cubiq.org - iScroll, version: 4.2.5
|
|
137
|
-
Copyright: 2012 Matteo Spinelli
|
|
138
|
-
License: MIT
|
|
139
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
140
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/iscroll.js
|
|
141
|
-
|
|
142
|
-
Component: cubiq.org - iScroll Lite, version: 4.1.6
|
|
143
|
-
Copyright: 2011 Matteo Spinelli
|
|
144
|
-
License: MIT
|
|
145
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
146
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/iscroll-lite.js
|
|
147
|
-
|
|
148
|
-
Component: cubiq.org - swipeview, version: 1.0
|
|
149
|
-
Copyright: 2012 Matteo Spinelli
|
|
150
|
-
License: MIT
|
|
151
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
152
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/swipe-view.js
|
|
153
|
-
|
|
154
136
|
Component: Zynga Scroller, version: 1.2.1-0-g5d43806
|
|
155
137
|
Copyright: 2011 Zynga Inc.
|
|
156
138
|
License: MIT
|
|
@@ -193,12 +175,6 @@ License: LicenseRef-Unicode-3.0
|
|
|
193
175
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-Unicode-3.0.txt
|
|
194
176
|
Contained in: src/sap.ui.core/src/sap/ui/core/cldr/**
|
|
195
177
|
|
|
196
|
-
Component: MobiScroll, version: 2.9.0
|
|
197
|
-
Copyright: 2010-2013, Acid Media
|
|
198
|
-
License: MIT
|
|
199
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
200
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/mobiscroll/**
|
|
201
|
-
|
|
202
178
|
Component: SinonJS, version: 1.14.1
|
|
203
179
|
Copyright: 2010-2014, Christian Johansen, christian@cjohansen.no
|
|
204
180
|
License: BSD-3-Clause
|
|
@@ -462,7 +438,7 @@ License: Apache-2.0
|
|
|
462
438
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
463
439
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
464
440
|
|
|
465
|
-
Component: SAP Theming Base Content, version: 11.
|
|
441
|
+
Component: SAP Theming Base Content, version: 11.31.0
|
|
466
442
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
467
443
|
License: Apache-2.0
|
|
468
444
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.138.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.rta",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.138.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.138.0",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.138.0",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.138.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.138.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.138.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
118
118
|
* @extends sap.ui.base.ManagedObject
|
|
119
119
|
* @author SAP SE
|
|
120
|
-
* @version 1.
|
|
120
|
+
* @version 1.138.0
|
|
121
121
|
* @constructor
|
|
122
122
|
* @private
|
|
123
123
|
* @since 1.30
|
|
@@ -254,15 +254,18 @@ sap.ui.define([
|
|
|
254
254
|
}
|
|
255
255
|
this.pServices = this.pServices.then(this.getService.bind(this, "supportTools"));
|
|
256
256
|
|
|
257
|
-
this._loadUShellServicesPromise = FlexUtils.getUShellServices(["
|
|
257
|
+
this._loadUShellServicesPromise = FlexUtils.getUShellServices(["AppLifeCycle", "Navigation"])
|
|
258
258
|
.then(function(mUShellServices) {
|
|
259
259
|
this._mUShellServices = mUShellServices;
|
|
260
260
|
ReloadManager.setUShellServices(mUShellServices);
|
|
261
261
|
return FeaturesAPI.isSeenFeaturesAvailable();
|
|
262
262
|
}.bind(this))
|
|
263
|
-
.then(function(
|
|
264
|
-
|
|
263
|
+
.then(function(bIsAvailable) {
|
|
264
|
+
// The What's new should only be shown once per session
|
|
265
|
+
const sWhatsNewReloadFlag = "sap.ui.rta.dontShowWhatsNewAfterReload";
|
|
266
|
+
if (bIsAvailable && !window.sessionStorage.getItem(sWhatsNewReloadFlag)) {
|
|
265
267
|
this.addDependent(new WhatsNew({ layer: this.getLayer() }), "whatsNew");
|
|
268
|
+
window.sessionStorage.setItem(sWhatsNewReloadFlag, true);
|
|
266
269
|
}
|
|
267
270
|
this.addDependent(new GuidedTour(), "guidedTour");
|
|
268
271
|
return Promise.resolve();
|
|
@@ -484,7 +487,6 @@ sap.ui.define([
|
|
|
484
487
|
this.getWhatsNew().initializeWhatsNewDialog(aExcludeGuidedTourFeature);
|
|
485
488
|
}
|
|
486
489
|
});
|
|
487
|
-
GeneralTour.getTourContent();
|
|
488
490
|
oGuidedTour.autoStart(GeneralTour.getTourContent());
|
|
489
491
|
} else if (this.getWhatsNew) {
|
|
490
492
|
this.getWhatsNew().initializeWhatsNewDialog();
|
|
@@ -618,7 +620,6 @@ sap.ui.define([
|
|
|
618
620
|
if (!bSkipRestart) {
|
|
619
621
|
ReloadInfoAPI.removeInfoSessionStorage(this.getRootControlInstance());
|
|
620
622
|
ReloadManager.handleReloadOnExit(oReloadInfo);
|
|
621
|
-
ReloadManager.removeDontShowWhatsNewAfterReload();
|
|
622
623
|
}
|
|
623
624
|
VersionsAPI.clearInstances();
|
|
624
625
|
} catch (vError) {
|
|
@@ -1041,8 +1042,13 @@ sap.ui.define([
|
|
|
1041
1042
|
const bHasConnectors = aConnectors.length > 0;
|
|
1042
1043
|
const bHasOnlyAllowedConnectors = bHasConnectors
|
|
1043
1044
|
&& aConnectors.every((sConnector) => !aProhibitedConnectors.includes(sConnector));
|
|
1045
|
+
const sUIAdaptationTourReloadFlag = "sap.ui.rta.dontShowUIAdaptationTourAfterReload";
|
|
1044
1046
|
|
|
1045
|
-
if (
|
|
1047
|
+
if (
|
|
1048
|
+
!bHasOnlyAllowedConnectors
|
|
1049
|
+
|| LayerUtils.isDeveloperLayer(sLayer)
|
|
1050
|
+
|| window.sessionStorage.getItem(sUIAdaptationTourReloadFlag)
|
|
1051
|
+
) {
|
|
1046
1052
|
return false;
|
|
1047
1053
|
}
|
|
1048
1054
|
|
|
@@ -1054,14 +1060,29 @@ sap.ui.define([
|
|
|
1054
1060
|
|
|
1055
1061
|
const aHasOwnChanges = await PersistenceWriteAPI._getFlexObjectsForUser({
|
|
1056
1062
|
selector: oRootControl,
|
|
1057
|
-
layer: sLayer
|
|
1063
|
+
layer: sLayer,
|
|
1064
|
+
includeManifestChanges: true,
|
|
1065
|
+
includeAnnotationChanges: true
|
|
1058
1066
|
});
|
|
1059
1067
|
|
|
1060
|
-
|
|
1068
|
+
const aVersionsFromUser = VersionsAPI.getCreatedVersionsByUser(
|
|
1069
|
+
{
|
|
1070
|
+
layer: sLayer,
|
|
1071
|
+
control: oRootControl
|
|
1072
|
+
},
|
|
1073
|
+
sUserId
|
|
1074
|
+
);
|
|
1075
|
+
|
|
1076
|
+
if (!aHasOwnChanges || aHasOwnChanges.length > 0 || aVersionsFromUser.length > 0) {
|
|
1061
1077
|
return false;
|
|
1062
1078
|
}
|
|
1063
1079
|
|
|
1064
1080
|
const bHasSeenWNFeatures = (await FeaturesAPI.getSeenFeatureIds({ layer: sLayer })).length > 0;
|
|
1081
|
+
|
|
1082
|
+
// UI Adaptation Tour should only be shown once per session
|
|
1083
|
+
if (!bHasSeenWNFeatures) {
|
|
1084
|
+
window.sessionStorage.setItem(sUIAdaptationTourReloadFlag, true);
|
|
1085
|
+
}
|
|
1065
1086
|
return !bHasSeenWNFeatures;
|
|
1066
1087
|
}
|
|
1067
1088
|
|
|
@@ -1195,7 +1216,7 @@ sap.ui.define([
|
|
|
1195
1216
|
}
|
|
1196
1217
|
RuntimeAuthoring.enableRestart(this.getLayer(), this.getRootControlInstance());
|
|
1197
1218
|
await this.stop(true, true, true);
|
|
1198
|
-
ReloadManager.
|
|
1219
|
+
ReloadManager.triggerReload({});
|
|
1199
1220
|
}
|
|
1200
1221
|
|
|
1201
1222
|
function saveOnly(oEvent) {
|
|
@@ -1310,7 +1331,6 @@ sap.ui.define([
|
|
|
1310
1331
|
function handleDiscard() {
|
|
1311
1332
|
const sLayer = this.getLayer();
|
|
1312
1333
|
const oReloadInfo = {
|
|
1313
|
-
layer: sLayer,
|
|
1314
1334
|
removeDraft: true,
|
|
1315
1335
|
selector: this.getRootControlInstance()
|
|
1316
1336
|
};
|
|
@@ -1565,7 +1585,6 @@ sap.ui.define([
|
|
|
1565
1585
|
|
|
1566
1586
|
await oToolbar.onFragmentLoaded();
|
|
1567
1587
|
const bTranslationAvailable = await FeaturesAPI.isKeyUserTranslationEnabled(this.getLayer());
|
|
1568
|
-
const bWhatsNewFeaturesAvailable = await FeaturesAPI.isSeenFeaturesAvailable();
|
|
1569
1588
|
const bAppVariantsAvailable = mButtonsAvailability.saveAsAvailable;
|
|
1570
1589
|
const bExtendedOverview = bAppVariantsAvailable && RtaAppVariantFeature.isOverviewExtended();
|
|
1571
1590
|
const oUriParameters = new URLSearchParams(window.location.search);
|
|
@@ -1594,10 +1613,6 @@ sap.ui.define([
|
|
|
1594
1613
|
visible: bTranslationAvailable,
|
|
1595
1614
|
enabled: this.bPersistedDataTranslatable
|
|
1596
1615
|
},
|
|
1597
|
-
newFeaturesOverview: {
|
|
1598
|
-
visible: bWhatsNewFeaturesAvailable,
|
|
1599
|
-
enabled: bWhatsNewFeaturesAvailable
|
|
1600
|
-
},
|
|
1601
1616
|
appVariantMenu: {
|
|
1602
1617
|
visible: bAppVariantsAvailable,
|
|
1603
1618
|
enabled: bAppVariantsAvailable,
|
|
@@ -1652,6 +1667,7 @@ sap.ui.define([
|
|
|
1652
1667
|
if (bAppVariantsAvailable) {
|
|
1653
1668
|
const bIsAppVariantSupported = FlexUtils.isVariantByStartupParameter(this.getRootControlInstance()) ?
|
|
1654
1669
|
false : await RtaAppVariantFeature.isManifestSupported();
|
|
1670
|
+
this._oToolbarControlsModel.setProperty("/appVariantMenu/enabled", bIsAppVariantSupported);
|
|
1655
1671
|
this._oToolbarControlsModel.setProperty("/appVariantMenu/saveAs/enabled", bIsAppVariantSupported);
|
|
1656
1672
|
this._oToolbarControlsModel.setProperty("/appVariantMenu/overview/enabled", bIsAppVariantSupported);
|
|
1657
1673
|
this._oToolbarControlsModel.setProperty("/appVariantMenu/manageApps/enabled", bIsAppVariantSupported);
|
|
@@ -1660,9 +1676,6 @@ sap.ui.define([
|
|
|
1660
1676
|
|
|
1661
1677
|
/**
|
|
1662
1678
|
* Delete all changes for current layer and root control's component.
|
|
1663
|
-
* In case of Base Applications (no App Variants) the manifest Changes and UI Changes are saved
|
|
1664
|
-
* in different Flex Persistence instances, the changes for both places will be deleted. For App Variants
|
|
1665
|
-
* all the changes are saved in one place.
|
|
1666
1679
|
*
|
|
1667
1680
|
* @returns {Promise} Resolves when change persistence is reset
|
|
1668
1681
|
*/
|
|
@@ -1677,9 +1690,7 @@ sap.ui.define([
|
|
|
1677
1690
|
this.getCommandStack().removeAllCommands(true);
|
|
1678
1691
|
ReloadInfoAPI.removeInfoSessionStorage(oSelector);
|
|
1679
1692
|
const oReloadInfo = {
|
|
1680
|
-
|
|
1681
|
-
ignoreMaxLayerParameter: true,
|
|
1682
|
-
triggerHardReload: true
|
|
1693
|
+
ignoreMaxLayerParameter: true
|
|
1683
1694
|
};
|
|
1684
1695
|
return ReloadManager.triggerReload(oReloadInfo);
|
|
1685
1696
|
}.bind(this))
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.rta.command.BaseCommand
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.138.0
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -121,8 +121,7 @@ sap.ui.define([
|
|
|
121
121
|
this.setSelector(oSelector);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
|
|
125
|
-
this._oPreparedChange = oChange;
|
|
124
|
+
this._oPreparedChange = await this._createChange(mFlexSettings, sVariantManagementReference, sCommand);
|
|
126
125
|
return true;
|
|
127
126
|
} catch (oError) {
|
|
128
127
|
Log.error(oError.message || oError.name);
|
|
@@ -5,16 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/base/ManagedObject",
|
|
8
|
-
"sap/ui/rta/command/FlexCommand",
|
|
9
|
-
"sap/ui/rta/command/ManifestCommand",
|
|
10
8
|
"sap/ui/fl/Utils",
|
|
11
9
|
"sap/ui/dt/ElementUtil",
|
|
12
10
|
"sap/base/Log",
|
|
13
11
|
"sap/ui/fl/write/api/PersistenceWriteAPI"
|
|
14
12
|
], function(
|
|
15
13
|
ManagedObject,
|
|
16
|
-
FlexCommand,
|
|
17
|
-
ManifestCommand,
|
|
18
14
|
FlUtils,
|
|
19
15
|
ElementUtil,
|
|
20
16
|
Log,
|
|
@@ -27,7 +23,7 @@ sap.ui.define([
|
|
|
27
23
|
* @class
|
|
28
24
|
* @extends sap.ui.base.ManagedObject
|
|
29
25
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
26
|
+
* @version 1.138.0
|
|
31
27
|
* @constructor
|
|
32
28
|
* @private
|
|
33
29
|
* @since 1.42
|
|
@@ -61,78 +57,7 @@ sap.ui.define([
|
|
|
61
57
|
LREPSerializer.prototype._lastPromise = Promise.resolve();
|
|
62
58
|
|
|
63
59
|
LREPSerializer.prototype.setCommandStack = function(oCommandStack) {
|
|
64
|
-
if (this.getCommandStack()) {
|
|
65
|
-
this.getCommandStack().removeCommandExecutionHandler(this._fnHandleCommandExecuted);
|
|
66
|
-
}
|
|
67
60
|
this.setProperty("commandStack", oCommandStack);
|
|
68
|
-
oCommandStack.addCommandExecutionHandler(this._fnHandleCommandExecuted);
|
|
69
|
-
};
|
|
70
|
-
LREPSerializer.prototype.init = function() {
|
|
71
|
-
this._fnHandleCommandExecuted = this.handleCommandExecuted.bind(this);
|
|
72
|
-
};
|
|
73
|
-
LREPSerializer.prototype.exit = function() {
|
|
74
|
-
this.getCommandStack().removeCommandExecutionHandler(this._fnHandleCommandExecuted);
|
|
75
|
-
};
|
|
76
|
-
LREPSerializer.prototype._isPersistedChange = function(oPreparedChange) {
|
|
77
|
-
return !!this.getCommandStack()._aPersistedChanges
|
|
78
|
-
&& this.getCommandStack()._aPersistedChanges.indexOf(oPreparedChange.getId()) !== -1;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
LREPSerializer.prototype.handleCommandExecuted = function(oEvent) {
|
|
82
|
-
return (function(oEvent) {
|
|
83
|
-
const oParams = oEvent;
|
|
84
|
-
this._lastPromise = this._lastPromise.catch(function() {
|
|
85
|
-
// _lastPromise chain must not be interrupted
|
|
86
|
-
}).then(function() {
|
|
87
|
-
const aCommands = this.getCommandStack().getSubCommands(oParams.command);
|
|
88
|
-
let oAppComponent;
|
|
89
|
-
const aFlexObjects = [];
|
|
90
|
-
if (oParams.undo) {
|
|
91
|
-
aCommands.forEach(function(oCommand) {
|
|
92
|
-
// for revertable changes which don't belong to LREP (variantSwitch) or runtime only changes
|
|
93
|
-
if (!(oCommand instanceof FlexCommand || oCommand instanceof ManifestCommand)
|
|
94
|
-
|| oCommand.getRuntimeOnly()) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
const oChange = oCommand.getPreparedChange();
|
|
98
|
-
oAppComponent = oCommand.getAppComponent();
|
|
99
|
-
if (oAppComponent) {
|
|
100
|
-
aFlexObjects.push(oChange);
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
if (oAppComponent) {
|
|
104
|
-
return PersistenceWriteAPI.remove({
|
|
105
|
-
flexObjects: aFlexObjects,
|
|
106
|
-
selector: oAppComponent
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
return Promise.resolve();
|
|
110
|
-
}
|
|
111
|
-
const aManifestCreateAndAdd = [];
|
|
112
|
-
aCommands.forEach(function(oCommand) {
|
|
113
|
-
// Runtime only changes should not be added to the persistence
|
|
114
|
-
if (oCommand.getRuntimeOnly()) {
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
if (oCommand instanceof FlexCommand) {
|
|
118
|
-
oAppComponent = oCommand.getAppComponent();
|
|
119
|
-
if (oAppComponent) {
|
|
120
|
-
const oPreparedChange = oCommand.getPreparedChange();
|
|
121
|
-
if (!this._isPersistedChange(oPreparedChange)) {
|
|
122
|
-
aFlexObjects.push(oCommand.getPreparedChange());
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
} else if (oCommand instanceof ManifestCommand) {
|
|
126
|
-
aManifestCreateAndAdd.push(oCommand.createAndStoreChange());
|
|
127
|
-
}
|
|
128
|
-
}.bind(this));
|
|
129
|
-
if (oAppComponent) {
|
|
130
|
-
PersistenceWriteAPI.add({flexObjects: aFlexObjects, selector: oAppComponent});
|
|
131
|
-
}
|
|
132
|
-
return Promise.all(aManifestCreateAndAdd);
|
|
133
|
-
}.bind(this));
|
|
134
|
-
return this._lastPromise;
|
|
135
|
-
}.bind(this))(oEvent);
|
|
136
61
|
};
|
|
137
62
|
|
|
138
63
|
/**
|
|
@@ -230,19 +155,11 @@ sap.ui.define([
|
|
|
230
155
|
LREPSerializer.prototype.clearCommandStack = function(bRemoveChanges) {
|
|
231
156
|
const oCommandStack = this.getCommandStack();
|
|
232
157
|
|
|
233
|
-
// Detach the event 'commandExecuted' here to stop the communication of LREPSerializer with Flex
|
|
234
|
-
if (!bRemoveChanges) {
|
|
235
|
-
oCommandStack.detachCommandExecuted(this.handleCommandExecuted.bind(this));
|
|
236
|
-
}
|
|
237
158
|
return this._triggerUndoChanges(bRemoveChanges)
|
|
238
159
|
.then(function() {
|
|
239
160
|
oCommandStack.removeAllCommands();
|
|
240
|
-
// Attach the event 'commandExecuted' here to start the communication of LREPSerializer with Flex
|
|
241
|
-
if (!bRemoveChanges) {
|
|
242
|
-
oCommandStack.attachCommandExecuted(this.handleCommandExecuted.bind(this));
|
|
243
|
-
}
|
|
244
161
|
return true;
|
|
245
|
-
}
|
|
162
|
+
});
|
|
246
163
|
};
|
|
247
164
|
|
|
248
165
|
return LREPSerializer;
|