@openui5/sap.ui.rta 1.99.1 → 1.102.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 +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 +146 -92
- package/src/sap/ui/rta/Utils.js +3 -5
- 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 +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 +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +10 -4
- 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 +15 -12
- 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 +6 -12
- 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 +25 -26
- 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 -69
- 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 +33 -12
- 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 +108 -32
- 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
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Fragment",
|
|
8
9
|
"sap/base/util/restricted/_difference",
|
|
9
10
|
"sap/base/util/deepEqual",
|
|
10
11
|
"sap/base/Log",
|
|
@@ -12,7 +13,6 @@ sap.ui.define([
|
|
|
12
13
|
"sap/ui/core/Control",
|
|
13
14
|
"sap/ui/dt/OverlayRegistry",
|
|
14
15
|
"sap/ui/dt/ElementUtil",
|
|
15
|
-
"sap/ui/events/KeyCodes",
|
|
16
16
|
"sap/ui/fl/apply/_internal/changes/Utils",
|
|
17
17
|
"sap/ui/fl/write/api/ChangesWriteAPI",
|
|
18
18
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
@@ -23,6 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
"sap/ui/rta/util/changeVisualization/ChangeIndicator",
|
|
24
24
|
"sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry"
|
|
25
25
|
], function(
|
|
26
|
+
Fragment,
|
|
26
27
|
difference,
|
|
27
28
|
deepEqual,
|
|
28
29
|
Log,
|
|
@@ -30,7 +31,6 @@ sap.ui.define([
|
|
|
30
31
|
Control,
|
|
31
32
|
OverlayRegistry,
|
|
32
33
|
ElementUtil,
|
|
33
|
-
KeyCodes,
|
|
34
34
|
ChangesUtils,
|
|
35
35
|
ChangesWriteAPI,
|
|
36
36
|
PersistenceWriteAPI,
|
|
@@ -79,8 +79,9 @@ sap.ui.define([
|
|
|
79
79
|
* When clicking anywhere on the application, the menu must close
|
|
80
80
|
*/
|
|
81
81
|
function _onClick() {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
var oPopover = this.getPopover();
|
|
83
|
+
if (oPopover && oPopover.isOpen()) {
|
|
84
|
+
oPopover.close();
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
|
|
@@ -92,7 +93,7 @@ sap.ui.define([
|
|
|
92
93
|
* @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
|
|
93
94
|
* @author SAP SE
|
|
94
95
|
* @since 1.84.0
|
|
95
|
-
* @version 1.
|
|
96
|
+
* @version 1.102.0
|
|
96
97
|
* @private
|
|
97
98
|
*/
|
|
98
99
|
var ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
|
|
@@ -112,6 +113,12 @@ sap.ui.define([
|
|
|
112
113
|
type: "boolean",
|
|
113
114
|
defaultValue: false
|
|
114
115
|
}
|
|
116
|
+
},
|
|
117
|
+
aggregations: {
|
|
118
|
+
popover: {
|
|
119
|
+
type: "sap.m.Popover",
|
|
120
|
+
multiple: false
|
|
121
|
+
}
|
|
115
122
|
}
|
|
116
123
|
},
|
|
117
124
|
constructor: function() {
|
|
@@ -163,9 +170,7 @@ sap.ui.define([
|
|
|
163
170
|
|
|
164
171
|
ChangeVisualization.prototype.exit = function() {
|
|
165
172
|
this._oChangeIndicatorRegistry.destroy();
|
|
166
|
-
|
|
167
|
-
this.oRootOverlay.getDomRef().removeEventListener("click", this._fnOnClickHandler, { capture: true });
|
|
168
|
-
}
|
|
173
|
+
this._toggleRootOverlayClickHandler(false);
|
|
169
174
|
};
|
|
170
175
|
|
|
171
176
|
ChangeVisualization.prototype._reset = function() {
|
|
@@ -173,12 +178,25 @@ sap.ui.define([
|
|
|
173
178
|
};
|
|
174
179
|
|
|
175
180
|
ChangeVisualization.prototype._updateVisualizationModelMenuData = function() {
|
|
181
|
+
var aVisualizedChanges = this._oChangeVisualizationModel.getData().visualizedChanges;
|
|
182
|
+
var aHiddenChanges = [];
|
|
183
|
+
var aRegisteredChanges = this._oChangeIndicatorRegistry.getChanges();
|
|
184
|
+
aRegisteredChanges.forEach(function(oChange) {
|
|
185
|
+
var oVisualizedChange = aVisualizedChanges.find(function(oVisualizedChange) {
|
|
186
|
+
return oChange.change.getId() === oVisualizedChange.id;
|
|
187
|
+
});
|
|
188
|
+
if (!oVisualizedChange && !oChange.dependent) {
|
|
189
|
+
aHiddenChanges.push(oChange);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
176
192
|
var aCommandData = Object.keys(VALID_COMMANDS).map(function(sCommandCategoryName) {
|
|
177
|
-
var sTitle = this._getCommandCategoryLabel(
|
|
178
|
-
|
|
193
|
+
var sTitle = this._getCommandCategoryLabel(
|
|
194
|
+
sCommandCategoryName,
|
|
195
|
+
this._getChangesForCommandCategory(sCommandCategoryName, aVisualizedChanges).length
|
|
196
|
+
);
|
|
179
197
|
return {
|
|
180
198
|
key: sCommandCategoryName,
|
|
181
|
-
count: this._getChangesForCommandCategory(sCommandCategoryName).length,
|
|
199
|
+
count: this._getChangesForCommandCategory(sCommandCategoryName, aVisualizedChanges).length,
|
|
182
200
|
title: sTitle,
|
|
183
201
|
icon: CATEGORY_ICONS[sCommandCategoryName]
|
|
184
202
|
};
|
|
@@ -186,19 +204,23 @@ sap.ui.define([
|
|
|
186
204
|
|
|
187
205
|
aCommandData.unshift({
|
|
188
206
|
key: CATEGORY_ALL,
|
|
189
|
-
count: this._getChangesForCommandCategory(CATEGORY_ALL).length,
|
|
190
|
-
title: this._getCommandCategoryLabel(CATEGORY_ALL, this._getChangesForCommandCategory(CATEGORY_ALL).length),
|
|
207
|
+
count: this._getChangesForCommandCategory(CATEGORY_ALL, aVisualizedChanges).length,
|
|
208
|
+
title: this._getCommandCategoryLabel(CATEGORY_ALL, this._getChangesForCommandCategory(CATEGORY_ALL, aVisualizedChanges).length),
|
|
191
209
|
icon: CATEGORY_ICONS[CATEGORY_ALL]
|
|
192
210
|
});
|
|
193
211
|
|
|
194
212
|
this._updateVisualizationModel({
|
|
195
|
-
commandCategories: aCommandData
|
|
213
|
+
commandCategories: aCommandData,
|
|
214
|
+
hiddenChanges: aHiddenChanges,
|
|
215
|
+
popupInfoMessage: this._oTextBundle.getText(
|
|
216
|
+
"MSG_CHANGEVISUALIZATION_HIDDEN_CHANGES_INFO",
|
|
217
|
+
[aHiddenChanges.length]
|
|
218
|
+
)
|
|
196
219
|
});
|
|
197
220
|
};
|
|
198
221
|
|
|
199
|
-
ChangeVisualization.prototype._getChangesForCommandCategory = function(sCommandCategory) {
|
|
200
|
-
|
|
201
|
-
return aRegisteredChanges.filter(function(oChange) {
|
|
222
|
+
ChangeVisualization.prototype._getChangesForCommandCategory = function(sCommandCategory, aChanges) {
|
|
223
|
+
return aChanges.filter(function(oChange) {
|
|
202
224
|
return sCommandCategory === CATEGORY_ALL
|
|
203
225
|
? oChange.commandCategory !== undefined
|
|
204
226
|
: sCommandCategory === oChange.commandCategory;
|
|
@@ -215,21 +237,52 @@ sap.ui.define([
|
|
|
215
237
|
return this._oTextBundle.getText(sButtonKey);
|
|
216
238
|
};
|
|
217
239
|
|
|
240
|
+
ChangeVisualization.prototype.openChangeCategorySelectionPopover = function(oEvent) {
|
|
241
|
+
if (!this._oToolbarButton) {
|
|
242
|
+
// Event bubbled through the toolbar, get original source
|
|
243
|
+
this._oToolbarButton = sap.ui.getCore().byId(oEvent.getParameter("id"));
|
|
244
|
+
}
|
|
245
|
+
var oPopover = this.getPopover();
|
|
246
|
+
|
|
247
|
+
if (!oPopover) {
|
|
248
|
+
Fragment.load({
|
|
249
|
+
name: "sap.ui.rta.util.changeVisualization.ChangeIndicatorCategorySelection",
|
|
250
|
+
id: this._getComponent().createId("changeVisualization_changesListPopover"),
|
|
251
|
+
controller: this
|
|
252
|
+
})
|
|
253
|
+
.then(function(oPopover) {
|
|
254
|
+
this._oToolbarButton.addDependent(oPopover);
|
|
255
|
+
oPopover.setModel(this._oChangeVisualizationModel, "visualizationModel");
|
|
256
|
+
oPopover.openBy(this._oToolbarButton);
|
|
257
|
+
this.setPopover(oPopover);
|
|
258
|
+
}.bind(this));
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (oPopover.isOpen()) {
|
|
263
|
+
oPopover.close();
|
|
264
|
+
} else {
|
|
265
|
+
oPopover.openBy(this._oToolbarButton);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
|
|
218
269
|
/**
|
|
219
270
|
* Sets the selected command category and visualizes all changes for the given category
|
|
220
271
|
*
|
|
221
272
|
* @param {event} oEvent - Event
|
|
222
|
-
* @returns {
|
|
273
|
+
* @returns {Promise} - Promise of category change
|
|
223
274
|
*/
|
|
224
275
|
ChangeVisualization.prototype.onCommandCategorySelection = function(oEvent) {
|
|
225
|
-
var sSelectedCommandCategory = oEvent.
|
|
276
|
+
var sSelectedCommandCategory = oEvent.getSource().getBindingContext("visualizationModel").getObject().key;
|
|
226
277
|
return this._selectCommandCategory(sSelectedCommandCategory);
|
|
227
278
|
};
|
|
228
279
|
|
|
229
280
|
ChangeVisualization.prototype._selectCommandCategory = function(sSelectedCommandCategory) {
|
|
230
281
|
this._sSelectedCommandCategory = sSelectedCommandCategory;
|
|
231
282
|
|
|
232
|
-
var
|
|
283
|
+
var aRegisteredChanges = this._oChangeIndicatorRegistry.getChanges();
|
|
284
|
+
var aRelevantChanges = this._getChangesForCommandCategory(sSelectedCommandCategory, aRegisteredChanges);
|
|
285
|
+
|
|
233
286
|
var sCommandCategoryText = this._getCommandCategoryButton(sSelectedCommandCategory);
|
|
234
287
|
|
|
235
288
|
this._updateVisualizationModel({
|
|
@@ -362,12 +415,12 @@ sap.ui.define([
|
|
|
362
415
|
ChangeVisualization.prototype._collectChanges = function() {
|
|
363
416
|
var oComponent = this._getComponent();
|
|
364
417
|
var mPropertyBag = {
|
|
365
|
-
oComponent: oComponent,
|
|
366
418
|
selector: oComponent,
|
|
367
419
|
invalidateCache: false,
|
|
368
420
|
// includeCtrlVariants: true,
|
|
369
421
|
currentLayer: Layer.CUSTOMER,
|
|
370
|
-
includeDirtyChanges: true
|
|
422
|
+
includeDirtyChanges: true,
|
|
423
|
+
onlyCurrentVariants: true
|
|
371
424
|
};
|
|
372
425
|
return PersistenceWriteAPI._getUIChanges(mPropertyBag);
|
|
373
426
|
};
|
|
@@ -427,20 +480,24 @@ sap.ui.define([
|
|
|
427
480
|
ChangeVisualization.prototype._updateChangeIndicators = function() {
|
|
428
481
|
var oSelectors = this._oChangeIndicatorRegistry.getChangeIndicatorData();
|
|
429
482
|
var oIndicators = {};
|
|
483
|
+
var aVisualizedChanges = [];
|
|
430
484
|
Object.keys(oSelectors)
|
|
431
485
|
.forEach(function(sSelectorId) {
|
|
432
486
|
var aChanges = oSelectors[sSelectorId];
|
|
433
487
|
var oOverlay = OverlayRegistry.getOverlay(sSelectorId);
|
|
434
|
-
if (!oOverlay || !oOverlay.getDomRef()) {
|
|
488
|
+
if (!oOverlay || !oOverlay.getDomRef() || !oOverlay.isVisible()) {
|
|
435
489
|
// Change is not visible
|
|
436
490
|
return undefined;
|
|
437
491
|
}
|
|
438
|
-
|
|
439
492
|
var oOverlayPosition = oOverlay.getDomRef().getClientRects()[0] || { left: 0, top: 0 };
|
|
493
|
+
var aRelevantChanges = this._filterRelevantChanges(aChanges);
|
|
494
|
+
aRelevantChanges.forEach(function (oChange) {
|
|
495
|
+
aVisualizedChanges.push(oChange);
|
|
496
|
+
});
|
|
440
497
|
oIndicators[sSelectorId] = {
|
|
441
498
|
posX: parseInt(oOverlayPosition.left),
|
|
442
499
|
posY: parseInt(oOverlayPosition.top),
|
|
443
|
-
changes:
|
|
500
|
+
changes: aRelevantChanges
|
|
444
501
|
};
|
|
445
502
|
|
|
446
503
|
if (!this._oChangeIndicatorRegistry.hasChangeIndicator(sSelectorId)) {
|
|
@@ -453,10 +510,14 @@ sap.ui.define([
|
|
|
453
510
|
!deepEqual(
|
|
454
511
|
oIndicators,
|
|
455
512
|
this._oChangeVisualizationModel.getData().content
|
|
513
|
+
) || !deepEqual(
|
|
514
|
+
aVisualizedChanges,
|
|
515
|
+
this._oChangeVisualizationModel.getData().visualizedChanges
|
|
456
516
|
)
|
|
457
517
|
) {
|
|
458
518
|
this._updateVisualizationModel({
|
|
459
|
-
content: oIndicators
|
|
519
|
+
content: oIndicators,
|
|
520
|
+
visualizedChanges: aVisualizedChanges
|
|
460
521
|
});
|
|
461
522
|
}
|
|
462
523
|
};
|
|
@@ -524,6 +585,25 @@ sap.ui.define([
|
|
|
524
585
|
aVisibleIndicators[0].focus();
|
|
525
586
|
};
|
|
526
587
|
|
|
588
|
+
ChangeVisualization.prototype._toggleRootOverlayClickHandler = function (bEnable) {
|
|
589
|
+
var oRootOverlayDomRef = this.oRootOverlay && this.oRootOverlay.getDomRef();
|
|
590
|
+
if (oRootOverlayDomRef) {
|
|
591
|
+
if (bEnable) {
|
|
592
|
+
oRootOverlayDomRef.addEventListener(
|
|
593
|
+
"click",
|
|
594
|
+
this._fnOnClickHandler,
|
|
595
|
+
{ capture: true }
|
|
596
|
+
);
|
|
597
|
+
} else {
|
|
598
|
+
oRootOverlayDomRef.removeEventListener(
|
|
599
|
+
"click",
|
|
600
|
+
this._fnOnClickHandler,
|
|
601
|
+
{ capture: true }
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
|
|
527
607
|
/**
|
|
528
608
|
* Triggers the mode switch (on/off).
|
|
529
609
|
*
|
|
@@ -536,14 +616,10 @@ sap.ui.define([
|
|
|
536
616
|
|
|
537
617
|
if (this.getIsActive()) {
|
|
538
618
|
this.setIsActive(false);
|
|
539
|
-
|
|
540
|
-
this.oRootOverlay.getDomRef().removeEventListener("click", this._fnOnClickHandler, { capture: true });
|
|
541
|
-
}
|
|
619
|
+
this._toggleRootOverlayClickHandler(false);
|
|
542
620
|
return;
|
|
543
621
|
}
|
|
544
|
-
|
|
545
|
-
this.oRootOverlay.getDomRef().addEventListener("click", this._fnOnClickHandler, { capture: true });
|
|
546
|
-
}
|
|
622
|
+
this._toggleRootOverlayClickHandler(true);
|
|
547
623
|
if (!this.getRootControlId()) {
|
|
548
624
|
this.setRootControlId(oRootControl);
|
|
549
625
|
}
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils"
|
|
8
|
+
"sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils",
|
|
9
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier"
|
|
9
10
|
], function(
|
|
10
|
-
ChangeVisualizationUtils
|
|
11
|
+
ChangeVisualizationUtils,
|
|
12
|
+
JsControlTreeModifier
|
|
11
13
|
) {
|
|
12
14
|
"use strict";
|
|
13
15
|
|
|
@@ -19,14 +21,30 @@ sap.ui.define([
|
|
|
19
21
|
*
|
|
20
22
|
* @param {object} mPayload - Change visualization payload from the change handler
|
|
21
23
|
* @param {string} sLabel - Change handler label
|
|
24
|
+
* @param {object} mPropertyBag - Additional properties
|
|
22
25
|
* @returns {object} Localized description text and button text
|
|
23
26
|
*/
|
|
24
|
-
MoveVisualization.getDescription = function
|
|
27
|
+
MoveVisualization.getDescription = function(mPayload, sLabel, mPropertyBag) {
|
|
25
28
|
var oRtaResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
26
|
-
var sDescriptionText = oRtaResourceBundle.getText("
|
|
27
|
-
var sDescriptionTooltip = oRtaResourceBundle.getText("
|
|
28
|
-
var sButtonText
|
|
29
|
-
|
|
29
|
+
var sDescriptionText = oRtaResourceBundle.getText("TXT_CHANGEVISUALIZATION_CHANGE_MOVE_WITHIN", ChangeVisualizationUtils.shortenString(sLabel));
|
|
30
|
+
var sDescriptionTooltip = oRtaResourceBundle.getText("TXT_CHANGEVISUALIZATION_CHANGE_MOVE_WITHIN", sLabel);
|
|
31
|
+
var sButtonText;
|
|
32
|
+
var oAppComponent = mPropertyBag.appComponent;
|
|
33
|
+
var sSourceParentId = (
|
|
34
|
+
mPayload.sourceParentContainer
|
|
35
|
+
&& JsControlTreeModifier.getControlIdBySelector(mPayload.sourceParentContainer, oAppComponent)
|
|
36
|
+
);
|
|
37
|
+
var sTargetParentId = (
|
|
38
|
+
mPayload.targetParentContainer
|
|
39
|
+
&& JsControlTreeModifier.getControlIdBySelector(mPayload.targetParentContainer, oAppComponent)
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
if (sSourceParentId !== sTargetParentId) {
|
|
43
|
+
sButtonText = oRtaResourceBundle.getText("BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_MOVE");
|
|
44
|
+
sDescriptionText = oRtaResourceBundle.getText("TXT_CHANGEVISUALIZATION_CHANGE_MOVE", ChangeVisualizationUtils.shortenString(sLabel));
|
|
45
|
+
sDescriptionTooltip = oRtaResourceBundle.getText("TXT_CHANGEVISUALIZATION_CHANGE_MOVE", sLabel);
|
|
46
|
+
}
|
|
47
|
+
return { descriptionText: sDescriptionText, descriptionTooltip: sDescriptionTooltip, buttonText: sButtonText };
|
|
30
48
|
};
|
|
31
49
|
|
|
32
50
|
return MoveVisualization;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* type: standalone */
|
|
2
|
-
.sapUiRtaToolbar.type_standalone.color_default .sapMBtn .sapMBtnContent,
|
|
3
|
-
.sapUiRtaToolbar.type_standalone.color_default .sapMBtn .sapMBtnTransparent .sapMBtnIcon {
|
|
4
|
-
color: inherit;
|
|
5
|
-
}
|
|
6
|
-
.sapUiRtaToolbar.type_standalone.color_default .sapMBtn.sapMBtnDisabled .sapMBtnContent,
|
|
7
|
-
.sapUiRtaToolbar.type_standalone.color_default .sapMBtn.sapMBtnDisabled .sapMBtnIcon {
|
|
8
|
-
color: inherit;
|
|
9
|
-
}
|