@openui5/sap.ui.rta 1.98.0 → 1.101.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 +6 -6
- 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 +64 -50
- package/src/sap/ui/rta/Utils.js +4 -6
- package/src/sap/ui/rta/appContexts/AppContextsOverviewDialog.js +76 -0
- package/src/sap/ui/rta/appContexts/Component.js +31 -0
- package/src/sap/ui/rta/appContexts/controller/ManageContexts.controller.js +323 -0
- package/src/sap/ui/rta/appContexts/controller/RestAPIConnector.js +22 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n.properties +47 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ar.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_bg.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ca.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_cs.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_cy.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_da.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_de.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_el.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_GB.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_sappsd.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saprigi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saptrc.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_es.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_es_MX.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_et.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_fi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_fr.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_fr_CA.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_hi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_hr.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_hu.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_id.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_it.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_iw.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ja.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_kk.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ko.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_lt.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_lv.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ms.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_nl.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_no.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_pl.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_pt.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_pt_PT.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ro.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ru.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sh.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sk.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sl.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sv.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_th.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_tr.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_uk.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_vi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_zh_CN.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_zh_TW.properties +23 -0
- package/src/sap/ui/rta/appContexts/index.html +25 -0
- package/src/sap/ui/rta/appContexts/manifest.json +52 -0
- package/src/sap/ui/rta/appContexts/view/EditContextsDialog.fragment.xml +76 -0
- package/src/sap/ui/rta/appContexts/view/ManageContexts.view.xml +103 -0
- package/src/sap/ui/rta/appContexts/view/SaveAsContextsDialog.fragment.xml +76 -0
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +6 -3
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +11 -11
- package/src/sap/ui/rta/appVariant/Feature.js +16 -6
- 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 +3 -2
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -2
- 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 +3 -2
- package/src/sap/ui/rta/command/Combine.js +5 -1
- package/src/sap/ui/rta/command/CommandFactory.js +20 -13
- 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 +45 -0
- 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 +15 -12
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.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/elementActionTest.js +1 -1
- package/src/sap/ui/rta/library.js +6 -9
- package/src/sap/ui/rta/messagebundle.properties +20 -11
- package/src/sap/ui/rta/messagebundle_ar.properties +14 -9
- package/src/sap/ui/rta/messagebundle_bg.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ca.properties +15 -10
- package/src/sap/ui/rta/messagebundle_cs.properties +14 -9
- package/src/sap/ui/rta/messagebundle_cy.properties +14 -9
- package/src/sap/ui/rta/messagebundle_da.properties +14 -9
- package/src/sap/ui/rta/messagebundle_de.properties +14 -9
- package/src/sap/ui/rta/messagebundle_el.properties +14 -9
- package/src/sap/ui/rta/messagebundle_en.properties +14 -9
- package/src/sap/ui/rta/messagebundle_en_GB.properties +14 -9
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +14 -9
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +42 -20
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +14 -9
- package/src/sap/ui/rta/messagebundle_es.properties +14 -9
- package/src/sap/ui/rta/messagebundle_es_MX.properties +15 -10
- package/src/sap/ui/rta/messagebundle_et.properties +14 -9
- package/src/sap/ui/rta/messagebundle_fi.properties +14 -9
- package/src/sap/ui/rta/messagebundle_fr.properties +14 -9
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +14 -9
- package/src/sap/ui/rta/messagebundle_hi.properties +13 -8
- package/src/sap/ui/rta/messagebundle_hr.properties +14 -9
- package/src/sap/ui/rta/messagebundle_hu.properties +14 -9
- package/src/sap/ui/rta/messagebundle_id.properties +14 -9
- package/src/sap/ui/rta/messagebundle_it.properties +14 -9
- package/src/sap/ui/rta/messagebundle_iw.properties +14 -9
- package/src/sap/ui/rta/messagebundle_ja.properties +14 -9
- package/src/sap/ui/rta/messagebundle_kk.properties +14 -9
- package/src/sap/ui/rta/messagebundle_ko.properties +14 -9
- package/src/sap/ui/rta/messagebundle_lt.properties +14 -9
- package/src/sap/ui/rta/messagebundle_lv.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ms.properties +14 -9
- package/src/sap/ui/rta/messagebundle_nl.properties +14 -9
- package/src/sap/ui/rta/messagebundle_no.properties +14 -9
- package/src/sap/ui/rta/messagebundle_pl.properties +14 -9
- package/src/sap/ui/rta/messagebundle_pt.properties +14 -9
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +14 -9
- package/src/sap/ui/rta/messagebundle_ro.properties +14 -9
- package/src/sap/ui/rta/messagebundle_ru.properties +14 -9
- package/src/sap/ui/rta/messagebundle_sh.properties +14 -9
- package/src/sap/ui/rta/messagebundle_sk.properties +15 -10
- package/src/sap/ui/rta/messagebundle_sl.properties +14 -9
- package/src/sap/ui/rta/messagebundle_sv.properties +14 -9
- package/src/sap/ui/rta/messagebundle_th.properties +14 -9
- package/src/sap/ui/rta/messagebundle_tr.properties +14 -9
- package/src/sap/ui/rta/messagebundle_uk.properties +13 -8
- package/src/sap/ui/rta/messagebundle_vi.properties +14 -9
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +14 -9
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +15 -10
- 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 +15 -14
- package/src/sap/ui/rta/plugin/ControlVariant.js +3 -3
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -3
- 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 +32 -11
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +26 -27
- package/src/sap/ui/rta/plugin/Rename.js +6 -19
- package/src/sap/ui/rta/plugin/RenameHandler.js +21 -6
- package/src/sap/ui/rta/plugin/Resize.js +432 -0
- package/src/sap/ui/rta/plugin/Selection.js +21 -8
- package/src/sap/ui/rta/plugin/Settings.js +1 -1
- package/src/sap/ui/rta/plugin/Split.js +5 -11
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +39 -38
- 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/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.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/themes/base/ChangeVisualization.less +55 -75
- package/src/sap/ui/rta/themes/base/Overlay.less +50 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +5 -19
- package/src/sap/ui/rta/toolbar/Adaptation.js +4 -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/Personalization.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +52 -31
- package/src/sap/ui/rta/util/PluginManager.js +9 -3
- package/src/sap/ui/rta/util/PopupManager.js +33 -12
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +109 -60
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +30 -0
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +6 -5
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +146 -79
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +37 -0
- package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +25 -4
- package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +14 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +5 -2
package/THIRDPARTY.txt
CHANGED
|
@@ -197,7 +197,7 @@ License: BSD-3-Clause
|
|
|
197
197
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
198
198
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
199
199
|
|
|
200
|
-
Component: URI.js, version: 1.19.
|
|
200
|
+
Component: URI.js, version: 1.19.10
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
|
|
|
400
400
|
|
|
401
401
|
Library: sap.ui.webc.common:
|
|
402
402
|
|
|
403
|
-
Component: UI5 Web Components, version: 1.
|
|
403
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
404
404
|
Copyright: SAP
|
|
405
405
|
License: Apache-2.0
|
|
406
406
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
|
|
|
411
411
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
|
|
412
412
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
413
413
|
|
|
414
|
-
Component: lit-html, version:
|
|
414
|
+
Component: lit-html, version: 2.0.1
|
|
415
415
|
Copyright: Google LLC
|
|
416
416
|
License: BSD-3-Clause
|
|
417
417
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
|
|
|
420
420
|
|
|
421
421
|
Library: sap.ui.webc.fiori:
|
|
422
422
|
|
|
423
|
-
Component: UI5 Web Components, version: 1.
|
|
423
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
424
424
|
Copyright: SAP
|
|
425
425
|
License: Apache-2.0
|
|
426
426
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
|
|
|
429
429
|
|
|
430
430
|
Library: sap.ui.webc.main:
|
|
431
431
|
|
|
432
|
-
Component: UI5 Web Components, version: 1.
|
|
432
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
433
433
|
Copyright: SAP
|
|
434
434
|
License: Apache-2.0
|
|
435
435
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -450,7 +450,7 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
452
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
453
|
+
Component: SAP Theming Base Content, version: 11.1.38
|
|
454
454
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
455
|
License: Apache-2.0
|
|
456
456
|
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.101.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.101.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.101.0",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.101.0",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.101.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.101.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 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.101.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -23,6 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
"sap/ui/events/KeyCodes",
|
|
24
24
|
"sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
|
|
25
25
|
"sap/ui/fl/apply/api/SmartVariantManagementApplyAPI",
|
|
26
|
+
"sap/ui/fl/write/api/ControlPersonalizationWriteAPI",
|
|
26
27
|
"sap/ui/fl/write/api/FeaturesAPI",
|
|
27
28
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
28
29
|
"sap/ui/fl/write/api/ReloadInfoAPI",
|
|
@@ -30,6 +31,7 @@ sap.ui.define([
|
|
|
30
31
|
"sap/ui/fl/Layer",
|
|
31
32
|
"sap/ui/fl/LayerUtils",
|
|
32
33
|
"sap/ui/fl/library",
|
|
34
|
+
"sap/ui/fl/registry/Settings",
|
|
33
35
|
"sap/ui/fl/Utils",
|
|
34
36
|
"sap/ui/model/json/JSONModel",
|
|
35
37
|
"sap/ui/performance/Measurement",
|
|
@@ -67,6 +69,7 @@ sap.ui.define([
|
|
|
67
69
|
KeyCodes,
|
|
68
70
|
FlexRuntimeInfoAPI,
|
|
69
71
|
SmartVariantManagementApplyAPI,
|
|
72
|
+
ControlPersonalizationWriteAPI,
|
|
70
73
|
FeaturesAPI,
|
|
71
74
|
PersistenceWriteAPI,
|
|
72
75
|
ReloadInfoAPI,
|
|
@@ -74,6 +77,7 @@ sap.ui.define([
|
|
|
74
77
|
Layer,
|
|
75
78
|
LayerUtils,
|
|
76
79
|
flexLibrary,
|
|
80
|
+
Settings,
|
|
77
81
|
FlexUtils,
|
|
78
82
|
JSONModel,
|
|
79
83
|
Measurement,
|
|
@@ -110,7 +114,7 @@ sap.ui.define([
|
|
|
110
114
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
111
115
|
* @extends sap.ui.base.ManagedObject
|
|
112
116
|
* @author SAP SE
|
|
113
|
-
* @version 1.
|
|
117
|
+
* @version 1.101.0
|
|
114
118
|
* @constructor
|
|
115
119
|
* @private
|
|
116
120
|
* @since 1.30
|
|
@@ -221,7 +225,7 @@ sap.ui.define([
|
|
|
221
225
|
_sAppTitle: null,
|
|
222
226
|
_dependents: null,
|
|
223
227
|
_sStatus: STOPPED,
|
|
224
|
-
|
|
228
|
+
_bNavigationModeWarningShown: false,
|
|
225
229
|
constructor: function() {
|
|
226
230
|
// call parent constructor
|
|
227
231
|
ManagedObject.apply(this, arguments);
|
|
@@ -247,10 +251,6 @@ sap.ui.define([
|
|
|
247
251
|
this.startService("receiver");
|
|
248
252
|
}
|
|
249
253
|
|
|
250
|
-
if (this._shouldValidateFlexEnabled()) {
|
|
251
|
-
this.attachEvent("start", validateFlexEnabled.bind(null, this));
|
|
252
|
-
}
|
|
253
|
-
|
|
254
254
|
this._loadUShellServicesPromise = FlexUtils.getUShellServices(["URLParsing", "AppLifeCycle", "CrossApplicationNavigation"])
|
|
255
255
|
.then(function (mUShellServices) {
|
|
256
256
|
this._mUShellServices = mUShellServices;
|
|
@@ -264,15 +264,11 @@ sap.ui.define([
|
|
|
264
264
|
});
|
|
265
265
|
|
|
266
266
|
RuntimeAuthoring.prototype._shouldValidateFlexEnabled = function () {
|
|
267
|
-
var
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
bShouldValidateFlexEnabled = sUriParam !== "true";
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
return bShouldValidateFlexEnabled;
|
|
267
|
+
var sUriParam = UriParameters.fromQuery(window.location.search).get("sap-ui-rta-skip-flex-validation");
|
|
268
|
+
return Settings.getInstance()
|
|
269
|
+
.then(function (oSettings) {
|
|
270
|
+
return !oSettings.isCustomerSystem() && sUriParam !== "true";
|
|
271
|
+
});
|
|
276
272
|
};
|
|
277
273
|
|
|
278
274
|
RuntimeAuthoring.prototype.addDependent = function (oObject, sName, bCreateGetter) {
|
|
@@ -334,7 +330,7 @@ sap.ui.define([
|
|
|
334
330
|
|
|
335
331
|
/**
|
|
336
332
|
* Getter method for plugins.
|
|
337
|
-
* @returns {
|
|
333
|
+
* @returns {Object<string, sap.ui.rta.plugin.Plugin>} map with plugins
|
|
338
334
|
*/
|
|
339
335
|
RuntimeAuthoring.prototype.getPlugins = function () {
|
|
340
336
|
return this.getPluginManager
|
|
@@ -362,12 +358,12 @@ sap.ui.define([
|
|
|
362
358
|
* Setter for flexSettings. Checks the Uri for parameters that override the layer.
|
|
363
359
|
* builds the rootNamespace and namespace parameters from the other parameters
|
|
364
360
|
*
|
|
365
|
-
* @param {
|
|
366
|
-
* @param {
|
|
367
|
-
* @param {
|
|
368
|
-
* @param {
|
|
369
|
-
* @param {
|
|
370
|
-
* @param {
|
|
361
|
+
* @param {object} [mFlexSettings] property bag
|
|
362
|
+
* @param {string} [mFlexSettings.layer] The Layer in which RTA should be started. Default: "CUSTOMER"
|
|
363
|
+
* @param {boolean} [mFlexSettings.developerMode] Whether RTA is started in DeveloperMode Mode. Whether RTA is started in DeveloperMode Mode
|
|
364
|
+
* @param {string} [mFlexSettings.baseId] base ID of the app
|
|
365
|
+
* @param {string} [mFlexSettings.projectId] project ID
|
|
366
|
+
* @param {string} [mFlexSettings.scenario] Key representing the current scenario
|
|
371
367
|
*/
|
|
372
368
|
RuntimeAuthoring.prototype.setFlexSettings = function(mFlexSettings) {
|
|
373
369
|
// Check URI-parameters for sap-ui-layer
|
|
@@ -393,7 +389,7 @@ sap.ui.define([
|
|
|
393
389
|
/**
|
|
394
390
|
* Checks the uri parameters for "sap-ui-layer" and returns either the current layer or the layer from the uri parameter, if there is one
|
|
395
391
|
*
|
|
396
|
-
* @returns {
|
|
392
|
+
* @returns {string} the layer after checking the uri parameters
|
|
397
393
|
* @private
|
|
398
394
|
*/
|
|
399
395
|
RuntimeAuthoring.prototype.getLayer = function () {
|
|
@@ -422,6 +418,15 @@ sap.ui.define([
|
|
|
422
418
|
}).then(this._setVersionsModel.bind(this));
|
|
423
419
|
};
|
|
424
420
|
|
|
421
|
+
RuntimeAuthoring.prototype._onPersonalizationChangeCreation = function() {
|
|
422
|
+
if (this.getMode() === "navigation" && !this._bNavigationModeWarningShown) {
|
|
423
|
+
this._showMessageToast("MSG_NAVIGATION_MODE_CHANGES_WARNING", {
|
|
424
|
+
duration: 5000
|
|
425
|
+
});
|
|
426
|
+
this._bNavigationModeWarningShown = true;
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
|
|
425
430
|
function addOrRemoveStyleClass(oRootControl, bAdd) {
|
|
426
431
|
if (oRootControl.isA("sap.ui.core.UIComponent")) {
|
|
427
432
|
oRootControl = oRootControl.getRootControl();
|
|
@@ -547,8 +552,17 @@ sap.ui.define([
|
|
|
547
552
|
.then(function() {
|
|
548
553
|
this.fnKeyDown = this._onKeyDown.bind(this);
|
|
549
554
|
jQuery(document).on("keydown", this.fnKeyDown);
|
|
555
|
+
this.fnOnPersonalizationChangeCreation = this._onPersonalizationChangeCreation.bind(this);
|
|
556
|
+
ControlPersonalizationWriteAPI.attachChangeCreation(
|
|
557
|
+
this.getRootControlInstance(),
|
|
558
|
+
this.fnOnPersonalizationChangeCreation
|
|
559
|
+
);
|
|
550
560
|
}.bind(this))
|
|
551
|
-
.then(
|
|
561
|
+
.then(this._shouldValidateFlexEnabled)
|
|
562
|
+
.then(function (bShouldValidateFlexEnabled) {
|
|
563
|
+
if (bShouldValidateFlexEnabled) {
|
|
564
|
+
validateFlexEnabled(this);
|
|
565
|
+
}
|
|
552
566
|
this._sStatus = STARTED;
|
|
553
567
|
this.fireStart({
|
|
554
568
|
editablePluginsCount: this.getPluginManager().getEditableOverlaysCount()
|
|
@@ -607,7 +621,7 @@ sap.ui.define([
|
|
|
607
621
|
});
|
|
608
622
|
};
|
|
609
623
|
|
|
610
|
-
|
|
624
|
+
function showTechnicalError(vError) {
|
|
611
625
|
BusyIndicator.hide();
|
|
612
626
|
var sErrorMessage = vError.userMessage || vError.stack || vError.message || vError.status || vError;
|
|
613
627
|
var oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
@@ -617,7 +631,7 @@ sap.ui.define([
|
|
|
617
631
|
MessageBox.error(sMsg, {
|
|
618
632
|
styleClass: Utils.getRtaStyleClassName()
|
|
619
633
|
});
|
|
620
|
-
}
|
|
634
|
+
}
|
|
621
635
|
|
|
622
636
|
/**
|
|
623
637
|
* @override
|
|
@@ -771,7 +785,7 @@ sap.ui.define([
|
|
|
771
785
|
return undefined;
|
|
772
786
|
}.bind(this));
|
|
773
787
|
}.bind(this))
|
|
774
|
-
.catch(
|
|
788
|
+
.catch(showTechnicalError)
|
|
775
789
|
.then(function () {
|
|
776
790
|
this._checkToolbarAndExecuteFunction("setBusy", false);
|
|
777
791
|
this._sStatus = STOPPED;
|
|
@@ -864,6 +878,13 @@ sap.ui.define([
|
|
|
864
878
|
return undefined;
|
|
865
879
|
};
|
|
866
880
|
|
|
881
|
+
RuntimeAuthoring.prototype._saveOnly = function(oEvent) {
|
|
882
|
+
var fnCallback = oEvent.getParameter("callback") || function() {};
|
|
883
|
+
return waitForPendingActions.call(this)
|
|
884
|
+
.then(this._serializeToLrep.bind(this))
|
|
885
|
+
.then(fnCallback);
|
|
886
|
+
};
|
|
887
|
+
|
|
867
888
|
RuntimeAuthoring.prototype._serializeAndSave = function() {
|
|
868
889
|
// Save changes on the current layer and discard dirty changes on other layers
|
|
869
890
|
return this._oSerializer.saveCommands(this._oVersionsModel.getProperty("/versioningEnabled"), this.getLayer(), true);
|
|
@@ -1040,7 +1061,8 @@ sap.ui.define([
|
|
|
1040
1061
|
},
|
|
1041
1062
|
textResources: this._getTextResources(),
|
|
1042
1063
|
restore: this._onRestore.bind(this),
|
|
1043
|
-
exit: this.stop.bind(this, false, bUserLayer)
|
|
1064
|
+
exit: this.stop.bind(this, false, bUserLayer),
|
|
1065
|
+
save: this._saveOnly.bind(this)
|
|
1044
1066
|
};
|
|
1045
1067
|
|
|
1046
1068
|
if (!bUserLayer) {
|
|
@@ -1051,8 +1073,8 @@ sap.ui.define([
|
|
|
1051
1073
|
oProperties.activate = this._onActivate.bind(this);
|
|
1052
1074
|
oProperties.discardDraft = this._onDiscardDraft.bind(this);
|
|
1053
1075
|
oProperties.switchVersion = this._onSwitchVersion.bind(this);
|
|
1054
|
-
oProperties.
|
|
1055
|
-
? this.getChangeVisualization().
|
|
1076
|
+
oProperties.openChangeCategorySelectionPopover = this.getChangeVisualization
|
|
1077
|
+
? this.getChangeVisualization().openChangeCategorySelectionPopover.bind(this.getChangeVisualization())
|
|
1056
1078
|
: function () {};
|
|
1057
1079
|
}
|
|
1058
1080
|
|
|
@@ -1106,13 +1128,6 @@ sap.ui.define([
|
|
|
1106
1128
|
}.bind(this));
|
|
1107
1129
|
}
|
|
1108
1130
|
|
|
1109
|
-
/*
|
|
1110
|
-
FeaturesAPI.isKeyUserTranslationEnabled(this.getLayer()).then(function() {
|
|
1111
|
-
this._oToolbarControlsModel.setProperty("/translationVisible", true);
|
|
1112
|
-
}.bind(this));
|
|
1113
|
-
*/
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
1131
|
this.getToolbar().setModel(this._oVersionsModel, "versions");
|
|
1117
1132
|
this.getToolbar().setModel(this._oToolbarControlsModel, "controls");
|
|
1118
1133
|
}.bind(this));
|
|
@@ -1142,6 +1157,13 @@ sap.ui.define([
|
|
|
1142
1157
|
|
|
1143
1158
|
// detach browser events
|
|
1144
1159
|
jQuery(document).off("keydown", this.fnKeyDown);
|
|
1160
|
+
|
|
1161
|
+
if (this.fnOnPersonalizationChangeCreation) {
|
|
1162
|
+
ControlPersonalizationWriteAPI.detachChangeCreation(
|
|
1163
|
+
this.getRootControlInstance(),
|
|
1164
|
+
this.fnOnPersonalizationChangeCreation
|
|
1165
|
+
);
|
|
1166
|
+
}
|
|
1145
1167
|
}
|
|
1146
1168
|
|
|
1147
1169
|
if (this.getRootControlInstance()) {
|
|
@@ -1205,7 +1227,7 @@ sap.ui.define([
|
|
|
1205
1227
|
}
|
|
1206
1228
|
}.bind(this));
|
|
1207
1229
|
}.bind(this));
|
|
1208
|
-
}.bind(this))["catch"](
|
|
1230
|
+
}.bind(this))["catch"](showTechnicalError);
|
|
1209
1231
|
};
|
|
1210
1232
|
|
|
1211
1233
|
/**
|
|
@@ -1223,6 +1245,8 @@ sap.ui.define([
|
|
|
1223
1245
|
selector: oSelector,
|
|
1224
1246
|
layer: sLayer
|
|
1225
1247
|
}).then(function () {
|
|
1248
|
+
// avoids the data loss popup; a reload is triggered later and will destroy RTA & the command stack
|
|
1249
|
+
this.getCommandStack().removeAllCommands(true);
|
|
1226
1250
|
ReloadInfoAPI.removeInfoSessionStorage(oSelector);
|
|
1227
1251
|
var oReloadInfo = {
|
|
1228
1252
|
isDraftAvailable: ReloadInfoAPI.hasVersionParameterWithValue({value: sLayer}, this._getUShellService("URLParsing")),
|
|
@@ -1323,10 +1347,7 @@ sap.ui.define([
|
|
|
1323
1347
|
}).then(function(sAction) {
|
|
1324
1348
|
if (sAction === MessageBox.Action.OK) {
|
|
1325
1349
|
RuntimeAuthoring.enableRestart(sLayer, this.getRootControlInstance());
|
|
1326
|
-
return this._deleteChanges()
|
|
1327
|
-
.then(function () {
|
|
1328
|
-
this.getCommandStack().removeAllCommands();
|
|
1329
|
-
}.bind(this));
|
|
1350
|
+
return this._deleteChanges();
|
|
1330
1351
|
}
|
|
1331
1352
|
return undefined;
|
|
1332
1353
|
}.bind(this));
|
|
@@ -1646,7 +1667,7 @@ sap.ui.define([
|
|
|
1646
1667
|
};
|
|
1647
1668
|
|
|
1648
1669
|
RuntimeAuthoring.prototype._triggerReloadOnStart = function(oReloadInfo) {
|
|
1649
|
-
if (this._getUShellService("CrossApplicationNavigation")) {
|
|
1670
|
+
if (this._getUShellService("CrossApplicationNavigation") && this._oVersionsModel.getProperty("/versioningEnabled")) {
|
|
1650
1671
|
if (oReloadInfo.isDraftAvailable) {
|
|
1651
1672
|
// clears FlexState and triggers reloading of the flex data without blocking
|
|
1652
1673
|
VersionsAPI.loadDraftForApplication({
|
|
@@ -1788,13 +1809,6 @@ sap.ui.define([
|
|
|
1788
1809
|
oTabHandlingPlugin[(sNewMode === "navigation") ? "restoreTabIndex" : "removeTabIndex"]();
|
|
1789
1810
|
}
|
|
1790
1811
|
|
|
1791
|
-
if (sNewMode === "navigation" && !this._bHasSwitchedToNavigationMode) {
|
|
1792
|
-
this._showMessageToast("MSG_NAVIGATION_MODE_CHANGES_WARNING", {
|
|
1793
|
-
duration: 5000
|
|
1794
|
-
});
|
|
1795
|
-
this._bHasSwitchedToNavigationMode = true;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
1812
|
oTabHandlingPlugin[(sNewMode === "adaptation") ? "restoreOverlayTabIndex" : "removeOverlayTabIndex"]();
|
|
1799
1813
|
oSelectionPlugin.setIsActive(!(sNewMode === "visualization"));
|
|
1800
1814
|
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -41,15 +41,13 @@ function(
|
|
|
41
41
|
"use strict";
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* @class Utility functionality to work with controls, e.g. iterate through aggregations, find parents, etc.
|
|
44
|
+
* Utility functionality to work with controls, e.g. iterate through aggregations, find parents, etc.
|
|
47
45
|
*
|
|
46
|
+
* @namespace
|
|
48
47
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
48
|
+
* @version 1.101.0
|
|
50
49
|
*
|
|
51
50
|
* @private
|
|
52
|
-
* @static
|
|
53
51
|
* @since 1.30
|
|
54
52
|
* @alias sap.ui.rta.Utils
|
|
55
53
|
* @experimental Since 1.30. This class is experimental and provides only limited functionality.
|
|
@@ -344,7 +342,7 @@ function(
|
|
|
344
342
|
* @param {sap.ui.core.Element} oChildElement - Element which position is being looked for
|
|
345
343
|
* @param {string} sAggregationName - Aggregation name
|
|
346
344
|
* @param {Function} [fnGetIndex] - Custom handler for retreiving index
|
|
347
|
-
* @returns {
|
|
345
|
+
* @returns {int} index of the element
|
|
348
346
|
*/
|
|
349
347
|
Utils.getIndex = function(oParentElement, oChildElement, sAggregationName, fnGetIndex) {
|
|
350
348
|
var iIndex;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Provides the <code>sap.ui.rta.appContexts.AppContextsOverviewDialog</code> control.
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/ui/core/ComponentContainer",
|
|
10
|
+
"sap/m/Button",
|
|
11
|
+
"sap/m/Dialog",
|
|
12
|
+
"sap/m/DialogRenderer",
|
|
13
|
+
"sap/ui/rta/appContexts/Component",
|
|
14
|
+
"sap/ui/rta/Utils"
|
|
15
|
+
], function (
|
|
16
|
+
ComponentContainer,
|
|
17
|
+
Button,
|
|
18
|
+
Dialog,
|
|
19
|
+
DialogRenderer,
|
|
20
|
+
ManageAppContextsComponent,
|
|
21
|
+
RtaUtils
|
|
22
|
+
) {
|
|
23
|
+
"use strict";
|
|
24
|
+
|
|
25
|
+
var AppContextsOverviewDialog = Dialog.extend("sap.ui.rta.appContexts.AppVariantOverviewDialog", {
|
|
26
|
+
metadata: {
|
|
27
|
+
library: "sap.ui.rta",
|
|
28
|
+
events: {
|
|
29
|
+
cancel: {}
|
|
30
|
+
},
|
|
31
|
+
properties: {
|
|
32
|
+
layer: "string"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
constructor: function () {
|
|
36
|
+
Dialog.prototype.constructor.apply(this, arguments);
|
|
37
|
+
this._oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
38
|
+
|
|
39
|
+
// Create manage apps component
|
|
40
|
+
this._oManageAppContextsComponent = new ManageAppContextsComponent("sap.ui.rta.appContexts", { layer: this.getLayer() });
|
|
41
|
+
|
|
42
|
+
// Place component in container and display
|
|
43
|
+
this._oManageAppsComponentContainer = new ComponentContainer({
|
|
44
|
+
component: this._oManageAppContextsComponent
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
this.addContent(this._oManageAppsComponentContainer);
|
|
48
|
+
this._createButton();
|
|
49
|
+
|
|
50
|
+
this.setContentWidth("650px");
|
|
51
|
+
this.setContentHeight("450px");
|
|
52
|
+
|
|
53
|
+
this.setHorizontalScrolling(false);
|
|
54
|
+
this.setTitle(this._oTextResources.getText("APP_CONTEXTS_OVERVIEW_DIALOG_TITLE"));
|
|
55
|
+
|
|
56
|
+
this.addStyleClass(RtaUtils.getRtaStyleClassName());
|
|
57
|
+
},
|
|
58
|
+
destroy: function () {
|
|
59
|
+
Dialog.prototype.destroy.apply(this, arguments);
|
|
60
|
+
},
|
|
61
|
+
renderer: DialogRenderer
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
AppContextsOverviewDialog.prototype._createButton = function () {
|
|
65
|
+
this.addButton(new Button({
|
|
66
|
+
text: this._oTextResources.getText("APP_VARIANT_DIALOG_CLOSE"),
|
|
67
|
+
press: function () {
|
|
68
|
+
this.close();
|
|
69
|
+
this.fireCancel();
|
|
70
|
+
}.bind(this)
|
|
71
|
+
}));
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
return AppContextsOverviewDialog;
|
|
76
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ui/core/UIComponent"
|
|
8
|
+
], function (UIComponent) {
|
|
9
|
+
"use strict";
|
|
10
|
+
|
|
11
|
+
return UIComponent.extend("sap.ui.rta.appContexts.Component", {
|
|
12
|
+
|
|
13
|
+
metadata: {
|
|
14
|
+
manifest: "json",
|
|
15
|
+
library: "sap.ui.rta",
|
|
16
|
+
properties: {
|
|
17
|
+
layer: "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Component is automatically initialized by UI5 at startup of the app and calls the init method once.
|
|
23
|
+
* @public
|
|
24
|
+
* @override
|
|
25
|
+
*/
|
|
26
|
+
init: function () {
|
|
27
|
+
// call the base component's init function
|
|
28
|
+
UIComponent.prototype.init.apply(this, arguments);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|