@openui5/sap.ui.rta 1.100.0 → 1.102.1
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 +5 -5
- 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 +141 -86
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +2 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +0 -17
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n.properties +0 -4
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ar.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_bg.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ca.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_cs.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_cy.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_da.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_de.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_el.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_GB.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_sappsd.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saprigi.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_es.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_es_MX.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_et.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fi.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_fr_CA.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hi.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hr.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hu.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_id.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_it.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_iw.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ja.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_kk.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ko.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_lt.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_lv.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ms.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_nl.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_no.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pl.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pt.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pt_PT.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ro.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ru.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sh.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sk.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sl.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sv.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_th.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_tr.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_uk.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_vi.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_zh_CN.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_zh_TW.properties +0 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/view/ManageApps.view.xml +0 -1
- package/src/sap/ui/rta/command/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +8 -2
- 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 +3 -3
- 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 +8 -6
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +82 -0
- 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 +24 -8
- package/src/sap/ui/rta/messagebundle_ar.properties +14 -6
- package/src/sap/ui/rta/messagebundle_bg.properties +16 -8
- package/src/sap/ui/rta/messagebundle_ca.properties +15 -7
- package/src/sap/ui/rta/messagebundle_cs.properties +14 -6
- package/src/sap/ui/rta/messagebundle_cy.properties +14 -6
- package/src/sap/ui/rta/messagebundle_da.properties +14 -6
- package/src/sap/ui/rta/messagebundle_de.properties +14 -6
- package/src/sap/ui/rta/messagebundle_el.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en_GB.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +14 -6
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +14 -6
- package/src/sap/ui/rta/messagebundle_es.properties +14 -6
- package/src/sap/ui/rta/messagebundle_es_MX.properties +14 -6
- package/src/sap/ui/rta/messagebundle_et.properties +14 -6
- package/src/sap/ui/rta/messagebundle_fi.properties +14 -6
- package/src/sap/ui/rta/messagebundle_fr.properties +14 -6
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +14 -6
- package/src/sap/ui/rta/messagebundle_hi.properties +13 -5
- package/src/sap/ui/rta/messagebundle_hr.properties +14 -6
- package/src/sap/ui/rta/messagebundle_hu.properties +14 -6
- package/src/sap/ui/rta/messagebundle_id.properties +14 -6
- package/src/sap/ui/rta/messagebundle_it.properties +14 -6
- package/src/sap/ui/rta/messagebundle_iw.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ja.properties +14 -6
- package/src/sap/ui/rta/messagebundle_kk.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ko.properties +14 -6
- package/src/sap/ui/rta/messagebundle_lt.properties +14 -6
- package/src/sap/ui/rta/messagebundle_lv.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ms.properties +14 -6
- package/src/sap/ui/rta/messagebundle_nl.properties +14 -6
- package/src/sap/ui/rta/messagebundle_no.properties +14 -6
- package/src/sap/ui/rta/messagebundle_pl.properties +14 -6
- package/src/sap/ui/rta/messagebundle_pt.properties +14 -6
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ro.properties +14 -6
- package/src/sap/ui/rta/messagebundle_ru.properties +14 -6
- package/src/sap/ui/rta/messagebundle_sh.properties +14 -6
- package/src/sap/ui/rta/messagebundle_sk.properties +14 -6
- package/src/sap/ui/rta/messagebundle_sl.properties +14 -6
- package/src/sap/ui/rta/messagebundle_sv.properties +14 -6
- package/src/sap/ui/rta/messagebundle_th.properties +14 -6
- package/src/sap/ui/rta/messagebundle_tr.properties +14 -6
- package/src/sap/ui/rta/messagebundle_uk.properties +14 -6
- package/src/sap/ui/rta/messagebundle_vi.properties +14 -6
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +14 -6
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +15 -7
- 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 +5 -11
- package/src/sap/ui/rta/plugin/CompVariant.js +85 -66
- package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
- 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 +5 -19
- package/src/sap/ui/rta/plugin/Rename.js +6 -19
- package/src/sap/ui/rta/plugin/RenameHandler.js +23 -6
- package/src/sap/ui/rta/plugin/Resize.js +432 -0
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +1 -1
- package/src/sap/ui/rta/plugin/Split.js +5 -11
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +20 -10
- 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/AddIFrame.less +37 -29
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +63 -63
- package/src/sap/ui/rta/themes/base/ContextMenu.less +25 -0
- package/src/sap/ui/rta/themes/base/Dialogs.less +79 -0
- package/src/sap/ui/rta/themes/base/FieldRepository.less +14 -61
- package/src/sap/ui/rta/themes/base/Overlay.less +96 -98
- package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +7 -1
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +178 -36
- package/src/sap/ui/rta/themes/base/Toolbar.base.less +23 -154
- package/src/sap/ui/rta/themes/base/Toolbar.fiori.less +2 -21
- package/src/sap/ui/rta/themes/base/Toolbar.personalization.less +3 -14
- package/src/sap/ui/rta/themes/base/Toolbar.standalone.less +0 -9
- package/src/sap/ui/rta/themes/base/library.source.less +2 -0
- package/src/sap/ui/rta/themes/sap_hcb/ChangeVisualization.less +7 -0
- package/src/sap/ui/rta/themes/sap_hcb/ContextMenu.less +5 -0
- package/src/sap/ui/rta/themes/sap_hcb/Dialogs.less +28 -0
- package/src/sap/ui/rta/themes/sap_hcb/FieldRepository.less +18 -0
- package/src/sap/ui/rta/themes/sap_hcb/Overlay.less +52 -12
- package/src/sap/ui/rta/themes/sap_hcb/Toolbar.adaptation.less +38 -0
- package/src/sap/ui/rta/themes/sap_hcb/Toolbar.base.less +14 -2
- package/src/sap/ui/rta/themes/sap_hcb/Toolbar.personalization.less +8 -2
- package/src/sap/ui/rta/themes/sap_hcb/library.source.less +5 -2
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +33 -32
- package/src/sap/ui/rta/toolbar/Adaptation.js +68 -24
- 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/VersionHistory.fragment.xml +2 -1
- package/src/sap/ui/rta/toolbar/translation/DownloadTranslationDialog.fragment.xml +20 -17
- package/src/sap/ui/rta/toolbar/translation/Translation.js +104 -98
- package/src/sap/ui/rta/toolbar/translation/UploadTranslationDialog.fragment.xml +4 -2
- package/src/sap/ui/rta/util/PluginManager.js +10 -4
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/adaptationStarter.js +102 -80
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +11 -4
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +30 -0
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -6
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +105 -27
- package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +25 -7
- package/src/sap/ui/rta/themes/sap_hcb/Toolbar.standalone.less +0 -9
package/THIRDPARTY.txt
CHANGED
|
@@ -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.39
|
|
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.102.1",
|
|
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.102.1",
|
|
18
|
+
"@openui5/sap.ui.core": "1.102.1",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.102.1",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.102.1",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.102.1"
|
|
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.102.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -21,6 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
"sap/ui/dt/OverlayRegistry",
|
|
22
22
|
"sap/ui/dt/Util",
|
|
23
23
|
"sap/ui/events/KeyCodes",
|
|
24
|
+
"sap/ui/fl/write/api/Version",
|
|
24
25
|
"sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
|
|
25
26
|
"sap/ui/fl/apply/api/SmartVariantManagementApplyAPI",
|
|
26
27
|
"sap/ui/fl/write/api/ControlPersonalizationWriteAPI",
|
|
@@ -28,9 +29,9 @@ sap.ui.define([
|
|
|
28
29
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
29
30
|
"sap/ui/fl/write/api/ReloadInfoAPI",
|
|
30
31
|
"sap/ui/fl/write/api/VersionsAPI",
|
|
32
|
+
"sap/ui/fl/write/api/TranslationAPI",
|
|
31
33
|
"sap/ui/fl/Layer",
|
|
32
34
|
"sap/ui/fl/LayerUtils",
|
|
33
|
-
"sap/ui/fl/library",
|
|
34
35
|
"sap/ui/fl/registry/Settings",
|
|
35
36
|
"sap/ui/fl/Utils",
|
|
36
37
|
"sap/ui/model/json/JSONModel",
|
|
@@ -67,6 +68,7 @@ sap.ui.define([
|
|
|
67
68
|
OverlayRegistry,
|
|
68
69
|
DtUtil,
|
|
69
70
|
KeyCodes,
|
|
71
|
+
Version,
|
|
70
72
|
FlexRuntimeInfoAPI,
|
|
71
73
|
SmartVariantManagementApplyAPI,
|
|
72
74
|
ControlPersonalizationWriteAPI,
|
|
@@ -74,9 +76,9 @@ sap.ui.define([
|
|
|
74
76
|
PersistenceWriteAPI,
|
|
75
77
|
ReloadInfoAPI,
|
|
76
78
|
VersionsAPI,
|
|
79
|
+
TranslationAPI,
|
|
77
80
|
Layer,
|
|
78
81
|
LayerUtils,
|
|
79
|
-
flexLibrary,
|
|
80
82
|
Settings,
|
|
81
83
|
FlexUtils,
|
|
82
84
|
JSONModel,
|
|
@@ -114,7 +116,7 @@ sap.ui.define([
|
|
|
114
116
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
115
117
|
* @extends sap.ui.base.ManagedObject
|
|
116
118
|
* @author SAP SE
|
|
117
|
-
* @version 1.
|
|
119
|
+
* @version 1.102.1
|
|
118
120
|
* @constructor
|
|
119
121
|
* @private
|
|
120
122
|
* @since 1.30
|
|
@@ -413,7 +415,7 @@ sap.ui.define([
|
|
|
413
415
|
|
|
414
416
|
RuntimeAuthoring.prototype._initVersioning = function() {
|
|
415
417
|
return VersionsAPI.initialize({
|
|
416
|
-
|
|
418
|
+
control: this.getRootControlInstance(),
|
|
417
419
|
layer: this.getLayer()
|
|
418
420
|
}).then(this._setVersionsModel.bind(this));
|
|
419
421
|
};
|
|
@@ -609,14 +611,14 @@ sap.ui.define([
|
|
|
609
611
|
|
|
610
612
|
RuntimeAuthoring.prototype._isOldVersionDisplayed = function() {
|
|
611
613
|
return VersionsAPI.isOldVersionDisplayed({
|
|
612
|
-
|
|
614
|
+
control: this.getRootControlInstance(),
|
|
613
615
|
layer: this.getLayer()
|
|
614
616
|
});
|
|
615
617
|
};
|
|
616
618
|
|
|
617
619
|
RuntimeAuthoring.prototype._isDraftAvailable = function() {
|
|
618
620
|
return VersionsAPI.isDraftAvailable({
|
|
619
|
-
|
|
621
|
+
control: this.getRootControlInstance(),
|
|
620
622
|
layer: this.getLayer()
|
|
621
623
|
});
|
|
622
624
|
};
|
|
@@ -682,7 +684,7 @@ sap.ui.define([
|
|
|
682
684
|
*/
|
|
683
685
|
RuntimeAuthoring.prototype._onStackModified = function() {
|
|
684
686
|
var bBackEndDraftExists = this._oVersionsModel.getProperty("/backendDraft");
|
|
685
|
-
var bDraftDisplayed = this._oVersionsModel.getProperty("/displayedVersion") ===
|
|
687
|
+
var bDraftDisplayed = this._oVersionsModel.getProperty("/displayedVersion") === Version.Number.Draft;
|
|
686
688
|
var oCommandStack = this.getCommandStack();
|
|
687
689
|
var bCanUndo = oCommandStack.canUndo();
|
|
688
690
|
|
|
@@ -721,6 +723,8 @@ sap.ui.define([
|
|
|
721
723
|
var oCommandStack = this.getCommandStack();
|
|
722
724
|
var bCanUndo = oCommandStack.canUndo();
|
|
723
725
|
var bCanRedo = oCommandStack.canRedo();
|
|
726
|
+
var bTranslationRelevantDirtyChange = this._oToolbarControlsModel.getProperty("/translationVisible") &&
|
|
727
|
+
TranslationAPI.hasTranslationRelevantDirtyChanges({layer: Layer.CUSTOMER, selector: this.getRootControlInstance()});
|
|
724
728
|
|
|
725
729
|
// TODO: move to the setter to the ChangesState
|
|
726
730
|
this._oVersionsModel.setDirtyChanges(bCanUndo);
|
|
@@ -728,6 +732,7 @@ sap.ui.define([
|
|
|
728
732
|
this._oToolbarControlsModel.setProperty("/redoEnabled", bCanRedo);
|
|
729
733
|
this._oToolbarControlsModel.setProperty("/publishEnabled", this.bInitialPublishEnabled || bCanUndo);
|
|
730
734
|
this._oToolbarControlsModel.setProperty("/restoreEnabled", this.bInitialResetEnabled || bCanUndo);
|
|
735
|
+
this._oToolbarControlsModel.setProperty("/translationEnabled", this.bPersistedDataTranslatable || bTranslationRelevantDirtyChange);
|
|
731
736
|
}
|
|
732
737
|
this.fireUndoRedoStackModified();
|
|
733
738
|
return Promise.resolve();
|
|
@@ -878,9 +883,20 @@ sap.ui.define([
|
|
|
878
883
|
return undefined;
|
|
879
884
|
};
|
|
880
885
|
|
|
886
|
+
RuntimeAuthoring.prototype._saveOnly = function(oEvent) {
|
|
887
|
+
var fnCallback = oEvent.getParameter("callback") || function() {};
|
|
888
|
+
return waitForPendingActions.call(this)
|
|
889
|
+
.then(this._serializeToLrep.bind(this))
|
|
890
|
+
.then(fnCallback);
|
|
891
|
+
};
|
|
892
|
+
|
|
881
893
|
RuntimeAuthoring.prototype._serializeAndSave = function() {
|
|
894
|
+
if (this.getShowToolbars()) {
|
|
895
|
+
this.bPersistedDataTranslatable = this._oToolbarControlsModel.getProperty("/translationEnabled");
|
|
896
|
+
}
|
|
882
897
|
// Save changes on the current layer and discard dirty changes on other layers
|
|
883
|
-
|
|
898
|
+
var bSaveAsDraft = this._oVersionsModel.getProperty("/versioningEnabled") && this.getLayer() === Layer.CUSTOMER;
|
|
899
|
+
return this._oSerializer.saveCommands(bSaveAsDraft, this.getLayer(), true);
|
|
884
900
|
};
|
|
885
901
|
|
|
886
902
|
RuntimeAuthoring.prototype._serializeToLrep = function() {
|
|
@@ -913,7 +929,7 @@ sap.ui.define([
|
|
|
913
929
|
})
|
|
914
930
|
.then(function(sAction) {
|
|
915
931
|
if (sAction === MessageBox.Action.OK) {
|
|
916
|
-
this._activate(sVersionTitle);
|
|
932
|
+
return this._activate(sVersionTitle);
|
|
917
933
|
}
|
|
918
934
|
}.bind(this));
|
|
919
935
|
}
|
|
@@ -923,10 +939,13 @@ sap.ui.define([
|
|
|
923
939
|
RuntimeAuthoring.prototype._activate = function(sVersionTitle) {
|
|
924
940
|
var sLayer = this.getLayer();
|
|
925
941
|
var oSelector = this.getRootControlInstance();
|
|
926
|
-
return
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
942
|
+
return this._serializeAndSave()
|
|
943
|
+
.then(function () {
|
|
944
|
+
return VersionsAPI.activate({
|
|
945
|
+
layer: sLayer,
|
|
946
|
+
control: oSelector,
|
|
947
|
+
title: sVersionTitle
|
|
948
|
+
});
|
|
930
949
|
}).then(function () {
|
|
931
950
|
this._showMessageToast("MSG_DRAFT_ACTIVATION_SUCCESS");
|
|
932
951
|
this.bInitialResetEnabled = true;
|
|
@@ -965,7 +984,7 @@ sap.ui.define([
|
|
|
965
984
|
if (sAction === MessageBox.Action.OK) {
|
|
966
985
|
return VersionsAPI.discardDraft({
|
|
967
986
|
layer: this.getLayer(),
|
|
968
|
-
|
|
987
|
+
control: this.getRootControlInstance(),
|
|
969
988
|
updateState: true
|
|
970
989
|
})
|
|
971
990
|
.then(this._handleDiscard.bind(this));
|
|
@@ -1020,11 +1039,11 @@ sap.ui.define([
|
|
|
1020
1039
|
}
|
|
1021
1040
|
var mParsedHash = FlexUtils.getParsedURLHash(this._getUShellService("URLParsing"));
|
|
1022
1041
|
VersionsAPI.loadVersionForApplication({
|
|
1023
|
-
|
|
1042
|
+
control: this.getRootControlInstance(),
|
|
1024
1043
|
layer: this.getLayer(),
|
|
1025
1044
|
version: sVersion
|
|
1026
1045
|
});
|
|
1027
|
-
var aVersionsParameter = mParsedHash.params[
|
|
1046
|
+
var aVersionsParameter = mParsedHash.params[Version.UrlParameter];
|
|
1028
1047
|
if (
|
|
1029
1048
|
aVersionsParameter &&
|
|
1030
1049
|
aVersionsParameter[0] === sVersion &&
|
|
@@ -1033,7 +1052,7 @@ sap.ui.define([
|
|
|
1033
1052
|
// RTA was started with a version parameter, the displayed version has changed and the key user switches back
|
|
1034
1053
|
this._getUShellService("AppLifeCycle").reloadCurrentApp();
|
|
1035
1054
|
} else {
|
|
1036
|
-
mParsedHash.params[
|
|
1055
|
+
mParsedHash.params[Version.UrlParameter] = sVersion;
|
|
1037
1056
|
this._triggerCrossAppNavigation(mParsedHash);
|
|
1038
1057
|
}
|
|
1039
1058
|
return undefined;
|
|
@@ -1054,19 +1073,21 @@ sap.ui.define([
|
|
|
1054
1073
|
},
|
|
1055
1074
|
textResources: this._getTextResources(),
|
|
1056
1075
|
restore: this._onRestore.bind(this),
|
|
1057
|
-
exit: this.stop.bind(this, false, bUserLayer)
|
|
1076
|
+
exit: this.stop.bind(this, false, bUserLayer),
|
|
1077
|
+
save: this._saveOnly.bind(this)
|
|
1058
1078
|
};
|
|
1059
1079
|
|
|
1060
1080
|
if (!bUserLayer) {
|
|
1061
1081
|
oProperties.transport = this._onTransport.bind(this);
|
|
1082
|
+
oProperties.publishVersion = this._onPublishVersion.bind(this);
|
|
1062
1083
|
oProperties.undo = this._onUndo.bind(this);
|
|
1063
1084
|
oProperties.redo = this._onRedo.bind(this);
|
|
1064
1085
|
oProperties.modeChange = this._onModeChange.bind(this);
|
|
1065
1086
|
oProperties.activate = this._onActivate.bind(this);
|
|
1066
1087
|
oProperties.discardDraft = this._onDiscardDraft.bind(this);
|
|
1067
1088
|
oProperties.switchVersion = this._onSwitchVersion.bind(this);
|
|
1068
|
-
oProperties.
|
|
1069
|
-
? this.getChangeVisualization().
|
|
1089
|
+
oProperties.openChangeCategorySelectionPopover = this.getChangeVisualization
|
|
1090
|
+
? this.getChangeVisualization().openChangeCategorySelectionPopover.bind(this.getChangeVisualization())
|
|
1070
1091
|
: function () {};
|
|
1071
1092
|
}
|
|
1072
1093
|
|
|
@@ -1082,47 +1103,66 @@ sap.ui.define([
|
|
|
1082
1103
|
}
|
|
1083
1104
|
this.addDependent(oToolbar, "toolbar");
|
|
1084
1105
|
|
|
1085
|
-
return oToolbar.onFragmentLoaded().
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
bVisualizationButtonVisible
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1106
|
+
return Promise.all([oToolbar.onFragmentLoaded(), FeaturesAPI.isKeyUserTranslationEnabled(this.getLayer())])
|
|
1107
|
+
.then(function(aArguments) {
|
|
1108
|
+
var bTranslationAvailable = aArguments[1];
|
|
1109
|
+
var bSaveAsAvailable = aButtonsVisibility.saveAsAvailable;
|
|
1110
|
+
var bExtendedOverview = bSaveAsAvailable && RtaAppVariantFeature.isOverviewExtended();
|
|
1111
|
+
var oUriParameters = UriParameters.fromURL(window.location.href);
|
|
1112
|
+
// the "Visualization" tab should not be visible if the "fiori-tools-rta-mode" URL-parameter is set to any value but "false"
|
|
1113
|
+
var bVisualizationButtonVisible;
|
|
1114
|
+
bVisualizationButtonVisible = !oUriParameters.has("fiori-tools-rta-mode") || oUriParameters.get("fiori-tools-rta-mode") === "false";
|
|
1115
|
+
this.bPersistedDataTranslatable = false;
|
|
1116
|
+
|
|
1117
|
+
this._oToolbarControlsModel = new JSONModel({
|
|
1118
|
+
undoEnabled: false,
|
|
1119
|
+
redoEnabled: false,
|
|
1120
|
+
translationVisible: bTranslationAvailable,
|
|
1121
|
+
translationEnabled: this.bPersistedDataTranslatable,
|
|
1122
|
+
publishVisible: aButtonsVisibility.publishAvailable,
|
|
1123
|
+
publishEnabled: this.bInitialPublishEnabled,
|
|
1124
|
+
restoreEnabled: this.bInitialResetEnabled,
|
|
1125
|
+
appVariantsOverviewVisible: bSaveAsAvailable && bExtendedOverview,
|
|
1126
|
+
appVariantsOverviewEnabled: bSaveAsAvailable && bExtendedOverview,
|
|
1127
|
+
saveAsVisible: bSaveAsAvailable,
|
|
1128
|
+
saveAsEnabled: false,
|
|
1129
|
+
manageAppsVisible: bSaveAsAvailable && !bExtendedOverview,
|
|
1130
|
+
manageAppsEnabled: bSaveAsAvailable && !bExtendedOverview,
|
|
1131
|
+
modeSwitcher: this.getMode(),
|
|
1132
|
+
visualizationButtonVisible: bVisualizationButtonVisible
|
|
1133
|
+
});
|
|
1096
1134
|
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
publishVisible: aButtonsVisibility.publishAvailable,
|
|
1103
|
-
publishEnabled: this.bInitialPublishEnabled,
|
|
1104
|
-
restoreEnabled: this.bInitialResetEnabled,
|
|
1105
|
-
appVariantsOverviewVisible: bSaveAsAvailable && bExtendedOverview,
|
|
1106
|
-
appVariantsOverviewEnabled: bSaveAsAvailable && bExtendedOverview,
|
|
1107
|
-
saveAsVisible: bSaveAsAvailable,
|
|
1108
|
-
saveAsEnabled: false,
|
|
1109
|
-
manageAppsVisible: bSaveAsAvailable && !bExtendedOverview,
|
|
1110
|
-
manageAppsEnabled: bSaveAsAvailable && !bExtendedOverview,
|
|
1111
|
-
modeSwitcher: this.getMode(),
|
|
1112
|
-
visualizationButtonVisible: bVisualizationButtonVisible
|
|
1113
|
-
});
|
|
1135
|
+
var oTranslationPromise = new Promise(function (resolve) {
|
|
1136
|
+
if (!bTranslationAvailable) {
|
|
1137
|
+
resolve();
|
|
1138
|
+
return;
|
|
1139
|
+
}
|
|
1114
1140
|
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1141
|
+
TranslationAPI.getSourceLanguages({selector: this.getRootControlInstance(), layer: this.getLayer()})
|
|
1142
|
+
.then(function (aSourceLanguages) {
|
|
1143
|
+
this.bPersistedDataTranslatable = aSourceLanguages.length > 0;
|
|
1144
|
+
this._oToolbarControlsModel.setProperty("/translationEnabled", this.bPersistedDataTranslatable);
|
|
1145
|
+
}.bind(this)).finally(resolve);
|
|
1120
1146
|
}.bind(this));
|
|
1121
|
-
}
|
|
1122
1147
|
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1148
|
+
var oSaveAsPromise = new Promise(function (resolve) {
|
|
1149
|
+
if (!bSaveAsAvailable) {
|
|
1150
|
+
resolve();
|
|
1151
|
+
return;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
RtaAppVariantFeature.isManifestSupported().then(function (bResult) {
|
|
1155
|
+
this._oToolbarControlsModel.setProperty("/saveAsEnabled", bResult);
|
|
1156
|
+
this._oToolbarControlsModel.setProperty("/appVariantsOverviewEnabled", bResult);
|
|
1157
|
+
this._oToolbarControlsModel.setProperty("/manageAppsEnabled", bResult);
|
|
1158
|
+
}.bind(this)).finally(resolve);
|
|
1159
|
+
}.bind(this));
|
|
1160
|
+
|
|
1161
|
+
this.getToolbar().setModel(this._oVersionsModel, "versions");
|
|
1162
|
+
this.getToolbar().setModel(this._oToolbarControlsModel, "controls");
|
|
1163
|
+
|
|
1164
|
+
return Promise.all([oTranslationPromise, oSaveAsPromise]);
|
|
1165
|
+
}.bind(this));
|
|
1126
1166
|
}
|
|
1127
1167
|
return Promise.resolve();
|
|
1128
1168
|
};
|
|
@@ -1177,6 +1217,22 @@ sap.ui.define([
|
|
|
1177
1217
|
ManagedObject.prototype.destroy.apply(this, arguments);
|
|
1178
1218
|
};
|
|
1179
1219
|
|
|
1220
|
+
RuntimeAuthoring.prototype._onPublishVersion = function() {
|
|
1221
|
+
this.getPluginManager().handleStopCutPaste();
|
|
1222
|
+
|
|
1223
|
+
return VersionsAPI.publish({
|
|
1224
|
+
selector: this.getRootControlInstance(),
|
|
1225
|
+
styleClass: Utils.getRtaStyleClassName(),
|
|
1226
|
+
layer: this.getLayer(),
|
|
1227
|
+
version: this._oVersionsModel.getProperty("/displayedVersion")
|
|
1228
|
+
})
|
|
1229
|
+
.then(function(sMessage) {
|
|
1230
|
+
if (sMessage !== "Error" && sMessage !== "Cancel") {
|
|
1231
|
+
MessageToast.show(sMessage);
|
|
1232
|
+
}
|
|
1233
|
+
});
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1180
1236
|
/**
|
|
1181
1237
|
* Function to handle ABAP transport of the changes
|
|
1182
1238
|
* @return {Promise} Returns a Promise processing the transport of changes
|
|
@@ -1203,21 +1259,21 @@ sap.ui.define([
|
|
|
1203
1259
|
layer: this.getLayer(),
|
|
1204
1260
|
appVariantDescriptors: aAppVariantDescriptor
|
|
1205
1261
|
})
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1262
|
+
.then(function(sMessage) {
|
|
1263
|
+
if (sMessage !== "Error" && sMessage !== "Cancel") {
|
|
1264
|
+
MessageToast.show(sMessage);
|
|
1265
|
+
if (this.getShowToolbars()) {
|
|
1266
|
+
PersistenceWriteAPI.getResetAndPublishInfo({
|
|
1267
|
+
selector: this.getRootControlInstance(),
|
|
1268
|
+
layer: this.getLayer()
|
|
1269
|
+
})
|
|
1270
|
+
.then(function(oPublishAndResetInfo) {
|
|
1271
|
+
this._oToolbarControlsModel.setProperty("/publishEnabled", oPublishAndResetInfo.isPublishEnabled);
|
|
1272
|
+
this._oToolbarControlsModel.setProperty("/restoreEnabled", oPublishAndResetInfo.isResetEnabled);
|
|
1273
|
+
}.bind(this));
|
|
1219
1274
|
}
|
|
1220
|
-
}
|
|
1275
|
+
}
|
|
1276
|
+
}.bind(this));
|
|
1221
1277
|
}.bind(this));
|
|
1222
1278
|
}.bind(this))["catch"](showTechnicalError);
|
|
1223
1279
|
};
|
|
@@ -1502,9 +1558,9 @@ sap.ui.define([
|
|
|
1502
1558
|
return mParsedHash;
|
|
1503
1559
|
}
|
|
1504
1560
|
|
|
1505
|
-
var sVersionParameter = FlexUtils.getParameter(
|
|
1561
|
+
var sVersionParameter = FlexUtils.getParameter(Version.UrlParameter, this._getUShellService("URLParsing"));
|
|
1506
1562
|
if (sVersionParameter) {
|
|
1507
|
-
delete mParsedHash.params[
|
|
1563
|
+
delete mParsedHash.params[Version.UrlParameter];
|
|
1508
1564
|
} else if (
|
|
1509
1565
|
(this._isDraftAvailable() || bTriggerReload /* for discarding of dirty changes */) &&
|
|
1510
1566
|
!oReloadInfo.hasHigherLayerChanges &&
|
|
@@ -1544,19 +1600,13 @@ sap.ui.define([
|
|
|
1544
1600
|
return undefined;
|
|
1545
1601
|
}
|
|
1546
1602
|
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
oReloadInfo
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
) {
|
|
1603
|
+
if (oReloadInfo.hasHigherLayerChanges || oReloadInfo.hasVersionUrlParameter) {
|
|
1604
|
+
mParsedHash = this._removeMaxLayerParameterForFLP(oReloadInfo, mParsedHash);
|
|
1605
|
+
mParsedHash = this._removeVersionParameterForFLP(oReloadInfo, mParsedHash, false);
|
|
1606
|
+
this._triggerCrossAppNavigation(mParsedHash);
|
|
1607
|
+
} else {
|
|
1553
1608
|
this._getUShellService("AppLifeCycle").reloadCurrentApp();
|
|
1554
1609
|
}
|
|
1555
|
-
|
|
1556
|
-
mParsedHash = this._removeMaxLayerParameterForFLP(oReloadInfo, mParsedHash);
|
|
1557
|
-
mParsedHash = this._removeVersionParameterForFLP(oReloadInfo, mParsedHash, false);
|
|
1558
|
-
this._triggerCrossAppNavigation(mParsedHash);
|
|
1559
|
-
|
|
1560
1610
|
// In FLP scenario we need to remove all parameters and also trigger an hard reload on reset
|
|
1561
1611
|
if (oReloadInfo.triggerHardReload) {
|
|
1562
1612
|
this._reloadPage();
|
|
@@ -1663,12 +1713,12 @@ sap.ui.define([
|
|
|
1663
1713
|
if (oReloadInfo.isDraftAvailable) {
|
|
1664
1714
|
// clears FlexState and triggers reloading of the flex data without blocking
|
|
1665
1715
|
VersionsAPI.loadDraftForApplication({
|
|
1666
|
-
|
|
1716
|
+
control: oReloadInfo.selector,
|
|
1667
1717
|
layer: oReloadInfo.layer
|
|
1668
1718
|
});
|
|
1669
1719
|
} else {
|
|
1670
1720
|
VersionsAPI.loadVersionForApplication({
|
|
1671
|
-
|
|
1721
|
+
control: oReloadInfo.selector,
|
|
1672
1722
|
layer: oReloadInfo.layer,
|
|
1673
1723
|
allContexts: oReloadInfo.allContexts
|
|
1674
1724
|
});
|
|
@@ -1686,6 +1736,7 @@ sap.ui.define([
|
|
|
1686
1736
|
if (
|
|
1687
1737
|
oReloadInfo.allContexts &&
|
|
1688
1738
|
!oReloadInfo.hasHigherLayerChanges &&
|
|
1739
|
+
!oReloadInfo.isDraftAvailable &&
|
|
1689
1740
|
this._getUShellService("AppLifeCycle")
|
|
1690
1741
|
) {
|
|
1691
1742
|
this._getUShellService("AppLifeCycle").reloadCurrentApp();
|
|
@@ -1801,6 +1852,10 @@ sap.ui.define([
|
|
|
1801
1852
|
oTabHandlingPlugin[(sNewMode === "navigation") ? "restoreTabIndex" : "removeTabIndex"]();
|
|
1802
1853
|
}
|
|
1803
1854
|
|
|
1855
|
+
if (sCurrentMode === "adaptation") {
|
|
1856
|
+
this.getPluginManager().handleStopCutPaste();
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1804
1859
|
oTabHandlingPlugin[(sNewMode === "adaptation") ? "restoreOverlayTabIndex" : "removeOverlayTabIndex"]();
|
|
1805
1860
|
oSelectionPlugin.setIsActive(!(sNewMode === "visualization"));
|
|
1806
1861
|
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -563,10 +563,10 @@ sap.ui.define([
|
|
|
563
563
|
var oUshellContainer = FlexUtils.getUshellContainer();
|
|
564
564
|
var oComponentInstance;
|
|
565
565
|
if (oUshellContainer) {
|
|
566
|
-
return oUshellContainer.getServiceAsync("
|
|
566
|
+
return oUshellContainer.getServiceAsync("AppLifeCycle")
|
|
567
567
|
.then(function(oAppConfiguration) {
|
|
568
568
|
var oApplication = oAppConfiguration.getCurrentApplication();
|
|
569
|
-
oComponentInstance = oApplication.
|
|
569
|
+
oComponentInstance = oApplication.componentInstance;
|
|
570
570
|
if (oComponentInstance) {
|
|
571
571
|
return oUshellContainer.getServiceAsync("CrossApplicationNavigation");
|
|
572
572
|
}
|
|
@@ -229,8 +229,6 @@ sap.ui.define([
|
|
|
229
229
|
return this.copyId(oEvent);
|
|
230
230
|
} else if (sItemPath === oI18n.getText("MAA_DIALOG_DELETE_APPVAR")) {
|
|
231
231
|
return this.deleteAppVariant(oEvent);
|
|
232
|
-
} else if (sItemPath === oI18n.getText("MAA_DIALOG_SAVE_AS_APP")) {
|
|
233
|
-
return this.saveAsAppVariant(oEvent);
|
|
234
232
|
}
|
|
235
233
|
|
|
236
234
|
return undefined;
|
|
@@ -265,21 +263,6 @@ sap.ui.define([
|
|
|
265
263
|
return false;
|
|
266
264
|
},
|
|
267
265
|
|
|
268
|
-
saveAsAppVariant: function(oEvent) {
|
|
269
|
-
AppVariantUtils.closeOverviewDialog();
|
|
270
|
-
|
|
271
|
-
var sDescriptorUrl = this.getModelProperty("descriptorUrl", oEvent.getSource().getBindingContext());
|
|
272
|
-
|
|
273
|
-
BusyIndicator.show();
|
|
274
|
-
return AppVariantOverviewUtils.getDescriptor({
|
|
275
|
-
appVarUrl: sDescriptorUrl,
|
|
276
|
-
layer: _sLayer
|
|
277
|
-
}).then(function(oAppVariantDescriptor) {
|
|
278
|
-
BusyIndicator.hide();
|
|
279
|
-
return RtaAppVariantFeature.onSaveAs(false, false, _sLayer, oAppVariantDescriptor);
|
|
280
|
-
});
|
|
281
|
-
},
|
|
282
|
-
|
|
283
266
|
copyId: function(oEvent) {
|
|
284
267
|
var sCopiedId = this.getModelProperty("appId", oEvent.getSource().getBindingContext());
|
|
285
268
|
AppVariantUtils.copyId(sCopiedId);
|
|
@@ -29,10 +29,6 @@ MAA_ORIGINAL_TYPE=Original App
|
|
|
29
29
|
MAA_APP_VARIANT_TYPE=App Variant
|
|
30
30
|
#XFLD
|
|
31
31
|
MAA_CURRENT_APP_STATUS=Current Status
|
|
32
|
-
#XFLD
|
|
33
|
-
MAA_DIALOG_SAVE_AS_APP=Save As
|
|
34
|
-
#XTOL: Tooltip for Button 'Save As' of the App variant overview list
|
|
35
|
-
TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Create New App Variant
|
|
36
32
|
#XTOL: Tooltip for Button 'Copy ID'
|
|
37
33
|
TOOLTIP_MAA_DIALOG_COPY_ID=Copy the ID of the app variant to the clipboard
|
|
38
34
|
#XFLD
|
|
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=\u0645\u0646\u0634\u0623 \u0644\u0644\u062A\u0648
|
|
|
13
13
|
MAA_ORIGINAL_TYPE=\u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0623\u0635\u0644\u064A
|
|
14
14
|
MAA_APP_VARIANT_TYPE=\u0645\u062A\u063A\u064A\u0631 \u0627\u0644\u062A\u0637\u0628\u064A\u0642
|
|
15
15
|
MAA_CURRENT_APP_STATUS=\u0627\u0644\u062D\u0627\u0644\u0629 \u0627\u0644\u062D\u0627\u0644\u064A\u0629
|
|
16
|
-
MAA_DIALOG_SAVE_AS_APP=\u062D\u0641\u0638 \u0628\u0627\u0633\u0645
|
|
17
|
-
TOOLTIP_MAA_DIALOG_SAVE_AS_APP=\u0625\u0646\u0634\u0627\u0621 \u0645\u062A\u063A\u064A\u0631 \u062A\u0637\u0628\u064A\u0642 \u062C\u062F\u064A\u062F
|
|
18
16
|
TOOLTIP_MAA_DIALOG_COPY_ID=\u0646\u0633\u062E \u0645\u0639\u0631\u0641 \u0645\u062A\u063A\u064A\u0631 \u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0625\u0644\u0649 \u0627\u0644\u062D\u0627\u0641\u0638\u0629
|
|
19
17
|
MAA_DIALOG_COPY_ID=\u0645\u0639\u0631\u0641 \u0627\u0644\u0646\u0633\u062E
|
|
20
18
|
MAA_DIALOG_APP_TYPE=\u0646\u0648\u0639 \u0627\u0644\u062A\u0637\u0628\u064A\u0642
|
|
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=\u0422\u043E\u043A\u0443-\u0449\u043E \u0441\u044A\u0437\u04
|
|
|
13
13
|
MAA_ORIGINAL_TYPE=\u041E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u043D\u043E \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435
|
|
14
14
|
MAA_APP_VARIANT_TYPE=\u0412\u0430\u0440\u0438\u0430\u043D\u0442 \u043D\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435
|
|
15
15
|
MAA_CURRENT_APP_STATUS=\u0422\u0435\u043A\u0443\u0449 \u0441\u0442\u0430\u0442\u0443\u0441
|
|
16
|
-
MAA_DIALOG_SAVE_AS_APP=\u0417\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435 \u043A\u0430\u0442\u043E
|
|
17
|
-
TOOLTIP_MAA_DIALOG_SAVE_AS_APP=\u0421\u044A\u0437\u0434\u0430\u0432\u0430\u043D\u0435 \u043D\u0430 \u043D\u043E\u0432 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043D\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435
|
|
18
16
|
TOOLTIP_MAA_DIALOG_COPY_ID=\u041A\u043E\u043F\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0418\u0414 \u0437\u0430 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043D\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u0442\u043E \u043D\u0430 \u043A\u043B\u0438\u043F\u0431\u043E\u0440\u0434
|
|
19
17
|
MAA_DIALOG_COPY_ID=\u041A\u043E\u043F\u0438\u0440\u0430\u043D\u0435 \u0418\u0414
|
|
20
18
|
MAA_DIALOG_APP_TYPE=\u0412\u0438\u0434 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435
|
|
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=Acabat de crear
|
|
|
13
13
|
MAA_ORIGINAL_TYPE=Aplicaci\u00F3 original
|
|
14
14
|
MAA_APP_VARIANT_TYPE=Variant d'aplicaci\u00F3
|
|
15
15
|
MAA_CURRENT_APP_STATUS=Estat actual
|
|
16
|
-
MAA_DIALOG_SAVE_AS_APP=Desar com a
|
|
17
|
-
TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Crear nova variant d\u2019aplicaci\u00F3
|
|
18
16
|
TOOLTIP_MAA_DIALOG_COPY_ID=Copiar l'ID de la variant d'aplicaci\u00F3 al porta-retalls
|
|
19
17
|
MAA_DIALOG_COPY_ID=Copiar ID
|
|
20
18
|
MAA_DIALOG_APP_TYPE=Afegir tipus
|
|
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=Pr\u00E1v\u011B vytvo\u0159eno
|
|
|
13
13
|
MAA_ORIGINAL_TYPE=P\u016Fvodn\u00ED aplikace
|
|
14
14
|
MAA_APP_VARIANT_TYPE=Varianta aplikace
|
|
15
15
|
MAA_CURRENT_APP_STATUS=Aktu\u00E1ln\u00ED status
|
|
16
|
-
MAA_DIALOG_SAVE_AS_APP=Ulo\u017Eit jako
|
|
17
|
-
TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Vytvo\u0159it novou variantu aplikace
|
|
18
16
|
TOOLTIP_MAA_DIALOG_COPY_ID=Kop\u00EDrovat ID varianty aplikace do mezipam\u011Bti
|
|
19
17
|
MAA_DIALOG_COPY_ID=ID kopie
|
|
20
18
|
MAA_DIALOG_APP_TYPE=Typ aplikace
|
|
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=Newydd ei Greu
|
|
|
13
13
|
MAA_ORIGINAL_TYPE=Ap Gwreiddiol
|
|
14
14
|
MAA_APP_VARIANT_TYPE=Amrywiad Ap
|
|
15
15
|
MAA_CURRENT_APP_STATUS=Statws Cyfredol
|
|
16
|
-
MAA_DIALOG_SAVE_AS_APP=Cadw Fel
|
|
17
|
-
TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Creu Amrywiad Ap Newydd
|
|
18
16
|
TOOLTIP_MAA_DIALOG_COPY_ID=Cop\u00EFo ID yr amrywiad ap i'r clipfwrdd
|
|
19
17
|
MAA_DIALOG_COPY_ID=Cop\u00EFo ID
|
|
20
18
|
MAA_DIALOG_APP_TYPE=Math o Ap
|
|
@@ -13,8 +13,6 @@ MAA_NEW_APP_VARIANT=Netop oprettet
|
|
|
13
13
|
MAA_ORIGINAL_TYPE=Original app
|
|
14
14
|
MAA_APP_VARIANT_TYPE=App-variant
|
|
15
15
|
MAA_CURRENT_APP_STATUS=Aktuel status
|
|
16
|
-
MAA_DIALOG_SAVE_AS_APP=Gem som
|
|
17
|
-
TOOLTIP_MAA_DIALOG_SAVE_AS_APP=Opret ny app-variant
|
|
18
16
|
TOOLTIP_MAA_DIALOG_COPY_ID=Kopier ID'en for app-varianten til udklipsholderen
|
|
19
17
|
MAA_DIALOG_COPY_ID=Kopier ID
|
|
20
18
|
MAA_DIALOG_APP_TYPE=App-type
|