@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
|
@@ -93,8 +93,8 @@ sap.ui.define([
|
|
|
93
93
|
oCommand.setJsOnly(bJsOnly);
|
|
94
94
|
if (oCommand.setVariantIndependent) {
|
|
95
95
|
oCommand.setVariantIndependent(bVariantIndependent);
|
|
96
|
-
} else {
|
|
97
|
-
Log.error("the variant independent Flag is not available for the action
|
|
96
|
+
} else if (bVariantIndependent) {
|
|
97
|
+
Log.error("the variant independent Flag is not available for the action", sChangeType);
|
|
98
98
|
}
|
|
99
99
|
return true;
|
|
100
100
|
}
|
|
@@ -351,6 +351,9 @@ sap.ui.define([
|
|
|
351
351
|
configure: configureSplitCommand,
|
|
352
352
|
adjustForBinding: adjustSplitCommand
|
|
353
353
|
},
|
|
354
|
+
resize: {
|
|
355
|
+
clazz: "sap/ui/rta/command/Resize"
|
|
356
|
+
},
|
|
354
357
|
"switch": {
|
|
355
358
|
clazz: "sap/ui/rta/command/ControlVariantSwitch"
|
|
356
359
|
},
|
|
@@ -381,6 +384,9 @@ sap.ui.define([
|
|
|
381
384
|
clazz: "sap/ui/rta/command/AddIFrame",
|
|
382
385
|
configure: configureAddIFrame
|
|
383
386
|
},
|
|
387
|
+
compVariantContent: {
|
|
388
|
+
clazz: "sap/ui/rta/command/compVariant/CompVariantContent"
|
|
389
|
+
},
|
|
384
390
|
compVariantSaveAs: {
|
|
385
391
|
clazz: "sap/ui/rta/command/compVariant/CompVariantSaveAs"
|
|
386
392
|
},
|
|
@@ -479,7 +485,7 @@ sap.ui.define([
|
|
|
479
485
|
* @extends sap.ui.base.ManagedObject
|
|
480
486
|
*
|
|
481
487
|
* @author SAP SE
|
|
482
|
-
* @version 1.
|
|
488
|
+
* @version 1.102.0
|
|
483
489
|
*
|
|
484
490
|
* @constructor
|
|
485
491
|
* @private
|
|
@@ -530,7 +536,7 @@ sap.ui.define([
|
|
|
530
536
|
|
|
531
537
|
/**
|
|
532
538
|
* Static method for generating command
|
|
533
|
-
* @param {sap.ui.Element|string} vElement - Could be either an element or a slector for the element for which the command is to be created
|
|
539
|
+
* @param {sap.ui.core.Element|string} vElement - Could be either an element or a slector for the element for which the command is to be created
|
|
534
540
|
* @param {string} sCommand - Command type
|
|
535
541
|
* @param {object} mSettings - Initial settings for the new command (command specific settings, looks diffrent for each and every command)
|
|
536
542
|
* @param {sap.ui.dt.DesignTimeMetadata} oDesignTimeMetadata - Contains the action used in the command
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @class
|
|
30
30
|
* @extends sap.ui.base.ManagedObject
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.102.0
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
35
35
|
* @since 1.42
|
|
@@ -160,7 +160,8 @@ sap.ui.define([
|
|
|
160
160
|
* @public
|
|
161
161
|
*/
|
|
162
162
|
LREPSerializer.prototype.saveCommands = function(bSaveAsDraft, sLayer, bRemoveOtherLayerChanges) {
|
|
163
|
-
this._lastPromise = this._lastPromise.catch(function() {
|
|
163
|
+
this._lastPromise = this._lastPromise.catch(function(oError) {
|
|
164
|
+
Log.error(oError);
|
|
164
165
|
// _lastPromise chain must not be interrupted
|
|
165
166
|
}).then(function() {
|
|
166
167
|
var oRootControl = getRootControlInstance(this.getRootControl());
|
|
@@ -175,7 +176,6 @@ sap.ui.define([
|
|
|
175
176
|
removeOtherLayerChanges: !!bRemoveOtherLayerChanges
|
|
176
177
|
});
|
|
177
178
|
}.bind(this))
|
|
178
|
-
|
|
179
179
|
.then(function() {
|
|
180
180
|
Log.info("UI adaptation successfully transfered changes to layered repository");
|
|
181
181
|
this.getCommandStack().removeAllCommands();
|
|
@@ -0,0 +1,45 @@
|
|
|
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/rta/command/FlexCommand"
|
|
8
|
+
], function(
|
|
9
|
+
FlexCommand
|
|
10
|
+
) {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Resize command
|
|
15
|
+
*
|
|
16
|
+
* @class
|
|
17
|
+
* @extends sap.ui.rta.command.FlexCommand
|
|
18
|
+
* @author SAP SE
|
|
19
|
+
* @version 1.102.0
|
|
20
|
+
* @constructor
|
|
21
|
+
* @private
|
|
22
|
+
* @since 1.101
|
|
23
|
+
* @alias sap.ui.rta.command.Resize
|
|
24
|
+
*/
|
|
25
|
+
var Resize = FlexCommand.extend("sap.ui.rta.command.Resize", {
|
|
26
|
+
metadata: {
|
|
27
|
+
library: "sap.ui.rta",
|
|
28
|
+
properties: {
|
|
29
|
+
// Generic structure is required as some implementations (e.g. Tables) create changes like in Settings action
|
|
30
|
+
content: {
|
|
31
|
+
type: "any",
|
|
32
|
+
group: "content"
|
|
33
|
+
},
|
|
34
|
+
changeType: {
|
|
35
|
+
type: "string",
|
|
36
|
+
defaultValue: "resize"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
associations: {},
|
|
40
|
+
events: {}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
return Resize;
|
|
45
|
+
});
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
* @class
|
|
56
56
|
* @extends sap.ui.base.ManagedObject
|
|
57
57
|
* @author SAP SE
|
|
58
|
-
* @version 1.
|
|
58
|
+
* @version 1.102.0
|
|
59
59
|
* @constructor
|
|
60
60
|
* @private
|
|
61
61
|
* @since 1.34
|
|
@@ -207,17 +207,18 @@ sap.ui.define([
|
|
|
207
207
|
}).then(function() {
|
|
208
208
|
var oCommand = this._getCommandToBeExecuted();
|
|
209
209
|
if (oCommand) {
|
|
210
|
+
var mParam = {
|
|
211
|
+
command: oCommand,
|
|
212
|
+
undo: false
|
|
213
|
+
};
|
|
210
214
|
return oCommand.execute()
|
|
211
215
|
|
|
216
|
+
.then(this._waitForCommandExecutionHandler.bind(this, mParam))
|
|
217
|
+
|
|
212
218
|
.then(function() {
|
|
213
219
|
this._toBeExecuted--;
|
|
214
|
-
var mParam = {
|
|
215
|
-
command: oCommand,
|
|
216
|
-
undo: false
|
|
217
|
-
};
|
|
218
220
|
this.fireCommandExecuted(mParam);
|
|
219
221
|
this.fireModified();
|
|
220
|
-
return this._waitForCommandExecutionHandler(mParam);
|
|
221
222
|
}.bind(this))
|
|
222
223
|
|
|
223
224
|
.catch(function(oError) {
|
|
@@ -239,15 +240,17 @@ sap.ui.define([
|
|
|
239
240
|
this._toBeExecuted++;
|
|
240
241
|
var oCommand = this._getCommandToBeExecuted();
|
|
241
242
|
if (oCommand) {
|
|
243
|
+
var mParam = {
|
|
244
|
+
command: oCommand,
|
|
245
|
+
undo: true
|
|
246
|
+
};
|
|
242
247
|
return oCommand.undo()
|
|
248
|
+
|
|
249
|
+
.then(this._waitForCommandExecutionHandler.bind(this, mParam))
|
|
250
|
+
|
|
243
251
|
.then(function() {
|
|
244
|
-
var mParam = {
|
|
245
|
-
command: oCommand,
|
|
246
|
-
undo: true
|
|
247
|
-
};
|
|
248
252
|
this.fireCommandExecuted(mParam);
|
|
249
253
|
this.fireModified();
|
|
250
|
-
return this._waitForCommandExecutionHandler(mParam);
|
|
251
254
|
}.bind(this));
|
|
252
255
|
}
|
|
253
256
|
return Promise.resolve();
|
|
@@ -314,4 +317,4 @@ sap.ui.define([
|
|
|
314
317
|
};
|
|
315
318
|
|
|
316
319
|
return Stack;
|
|
317
|
-
});
|
|
320
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
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/rta/command/BaseCommand"
|
|
8
|
+
], function(
|
|
9
|
+
BaseCommand
|
|
10
|
+
) {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Change the content of a SmartVariantManagement variant
|
|
15
|
+
*
|
|
16
|
+
* @class
|
|
17
|
+
* @extends sap.ui.rta.command.BaseCommand
|
|
18
|
+
* @author SAP SE
|
|
19
|
+
* @version 1.102.0
|
|
20
|
+
* @constructor
|
|
21
|
+
* @private
|
|
22
|
+
* @since 1.102
|
|
23
|
+
* @alias sap.ui.rta.command.compVariant.CompVariantContent
|
|
24
|
+
*/
|
|
25
|
+
var CompVariantContent = BaseCommand.extend("sap.ui.rta.command.compVariant.CompVariantContent", {
|
|
26
|
+
metadata: {
|
|
27
|
+
library: "sap.ui.rta",
|
|
28
|
+
properties: {
|
|
29
|
+
variantId: {
|
|
30
|
+
type: "string"
|
|
31
|
+
},
|
|
32
|
+
persistencyKey: {
|
|
33
|
+
type: "string"
|
|
34
|
+
},
|
|
35
|
+
oldContent: {
|
|
36
|
+
type: "object"
|
|
37
|
+
},
|
|
38
|
+
newContent: {
|
|
39
|
+
type: "object"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
CompVariantContent.prototype.execute = function() {
|
|
46
|
+
this.setOldContent(getCurrentVariantContent.call(this));
|
|
47
|
+
setVariantContent.call(this, this.getNewContent());
|
|
48
|
+
|
|
49
|
+
return Promise.resolve();
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
CompVariantContent.prototype.undo = function() {
|
|
53
|
+
setVariantContent.call(this, this.getOldContent());
|
|
54
|
+
|
|
55
|
+
return Promise.resolve();
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// private function of the SmartVariantManagement are approved and documented to be used from here
|
|
59
|
+
function setVariantContent(oContent) {
|
|
60
|
+
var oContentToBeSet = {};
|
|
61
|
+
var oVariantManagementControl = this.getElement();
|
|
62
|
+
if (oVariantManagementControl.isPageVariant()) {
|
|
63
|
+
oContentToBeSet[this.getPersistencyKey()] = oContent;
|
|
64
|
+
oVariantManagementControl._applyVariantByPersistencyKey(this.getPersistencyKey(), oContentToBeSet, "KEY_USER");
|
|
65
|
+
} else {
|
|
66
|
+
oContentToBeSet = oContent;
|
|
67
|
+
oVariantManagementControl._applyVariant(oVariantManagementControl._getPersoController(), oContentToBeSet, "KEY_USER");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// private function of the SmartVariantManagement are approved and documented to be used from here
|
|
72
|
+
function getCurrentVariantContent() {
|
|
73
|
+
var oVariantManagementControl = this.getElement();
|
|
74
|
+
var oOldContent = oVariantManagementControl._getVariantContent(this.getVariantId());
|
|
75
|
+
if (oVariantManagementControl.isPageVariant()) {
|
|
76
|
+
oOldContent = oOldContent && oOldContent[this.getPersistencyKey()];
|
|
77
|
+
}
|
|
78
|
+
return oOldContent;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return CompVariantContent;
|
|
82
|
+
});
|
|
@@ -21,19 +21,16 @@ function() {
|
|
|
21
21
|
* SAPUI5 library with RTA controls.
|
|
22
22
|
*
|
|
23
23
|
* @namespace
|
|
24
|
-
* @
|
|
24
|
+
* @alias sap.ui.rta
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.102.0
|
|
27
27
|
* @since 1.50
|
|
28
28
|
* @private
|
|
29
29
|
* @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// delegate further initialization of this library to the Core
|
|
34
|
-
sap.ui.getCore().initLibrary({
|
|
31
|
+
var thisLib = sap.ui.getCore().initLibrary({
|
|
35
32
|
name: "sap.ui.rta",
|
|
36
|
-
version: "1.
|
|
33
|
+
version: "1.102.0",
|
|
37
34
|
dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
38
35
|
types: [],
|
|
39
36
|
interfaces: [],
|
|
@@ -41,7 +38,7 @@ function() {
|
|
|
41
38
|
elements: []
|
|
42
39
|
});
|
|
43
40
|
|
|
44
|
-
|
|
41
|
+
thisLib.GENERATOR_NAME = "sap.ui.rta.command";
|
|
45
42
|
|
|
46
|
-
return
|
|
43
|
+
return thisLib;
|
|
47
44
|
});
|
|
@@ -85,6 +85,10 @@ TIT_VERSION_1=Version 1
|
|
|
85
85
|
LBL_ACTIVE=Active
|
|
86
86
|
#XLBL: Hightlight text for the indicator of the inactive version (for screen reader)
|
|
87
87
|
LBL_INACTIVE=Inactive
|
|
88
|
+
#XTIT: Group Header for published versions
|
|
89
|
+
TIT_VERSION_HISTORY_PUBLISHED=Published
|
|
90
|
+
#XTIT: Group Header for unpublished versions
|
|
91
|
+
TIT_VERSION_HISTORY_UNPUBLISHED=Unpublished
|
|
88
92
|
#XMSG: message toast text after an new version was successfully activated
|
|
89
93
|
MSG_DRAFT_ACTIVATION_SUCCESS=New version activated
|
|
90
94
|
#XMSG: message toast text when activated failed
|
|
@@ -105,6 +109,8 @@ BUT_VERSION_TITLE_DIALOG_CANCEL=Cancel
|
|
|
105
109
|
TOL_ACTIVATE=Activate New Version
|
|
106
110
|
#XTOL: Tooltip for the button 'Discard' for the draft located in the toolbar
|
|
107
111
|
TOL_DISCARD_DRAFT=Discard Draft
|
|
112
|
+
#XTOL: Tooltip for the button 'Publish Version' in the toolbar
|
|
113
|
+
TOL_PUBLISH_VERSION=Publish Version
|
|
108
114
|
#TIT: Title for the dialog to switch between versions
|
|
109
115
|
TIT_SWITCH_VERSION_DIALOG=Switch Version
|
|
110
116
|
#MSG: Text description that the user is about to switch versions, but has changes they must save or discard
|
|
@@ -119,6 +125,8 @@ BTN_TRANSLATE=Translate
|
|
|
119
125
|
BTN_UPLOAD_CHANGED_TEXTS=Upload
|
|
120
126
|
#XTIT: Title of the upload changed texts dialog
|
|
121
127
|
TIT_UPLOAD_CHANGED_TEXTS=Upload Translations
|
|
128
|
+
#MSG: Message that untranslatable changes are present and the state will be saved before the translatable texts are downloaded
|
|
129
|
+
MSG_DOWNLOAD_CHANGED_TEXTS_DIRTY_CHANGES_EXIST=There are translatable unsaved changes with texts. The current state will be saved before the XLIFF file is downloaded.
|
|
122
130
|
#MSG: Explanation of the upload changed texts dialog
|
|
123
131
|
MSG_UPLOAD_CHANGED_TEXTS=Upload an XLIFF file containing translations of changed UI texts
|
|
124
132
|
#XBUT: Button text to cancel the Upload Changed UI Texts dialog
|
|
@@ -127,6 +135,8 @@ BUT_UPLOAD_CHANGED_TEXTS_CANCEL=Cancel
|
|
|
127
135
|
BTN_OPEN_DOWNLOAD_TRANSLATION=Download
|
|
128
136
|
#XBUT: Button 'Upload' of the toolbar translate popover
|
|
129
137
|
BTN_OPEN_UPLOAD_TRANSLATION=Upload
|
|
138
|
+
#MSG: Success message in after a translation was uploaded
|
|
139
|
+
MSG_UPLOAD_TRANSLATION_SUCCESS=Translation successfully uploaded
|
|
130
140
|
#XBUT: Name of the Button 'Download' of the download changed texts dialog
|
|
131
141
|
BTN_DOWNLOAD_CHANGED_TEXTS=Download
|
|
132
142
|
#XTIT: Title of the download changed texts dialog
|
|
@@ -157,7 +167,7 @@ FORM_PERS_RESET_TITLE=Reset to Standard Version
|
|
|
157
167
|
FORM_PERS_RESET_MESSAGE=Do you want to discard all UI changes and reset the app to the standard version?
|
|
158
168
|
#XMSG: reset confirmation dialog message in personalization mode
|
|
159
169
|
FORM_PERS_RESET_MESSAGE_PERSONALIZATION=Do you want to discard all your personalization changes and reset the app?
|
|
160
|
-
#XMSG: Error message presented if
|
|
170
|
+
#XMSG: Error message presented if a technical error occurred
|
|
161
171
|
MSG_LREP_TRANSFER_ERROR=Sorry, a technical error occurred. Please try again later, or contact your administrator.
|
|
162
172
|
#XMSG: Error message showing the reason (technical info)
|
|
163
173
|
MSG_ERROR_REASON=Reason\:\n{0}
|
|
@@ -376,8 +386,10 @@ IFRAME_ADDIFRAME_DIALOG_URL_WARNING_LINKTEXT=Read More
|
|
|
376
386
|
TXT_CHANGEVISUALIZATION_CHANGE_RENAME_TO=Name was changed to ''{0}''
|
|
377
387
|
#XTXT: Description for rename-changes
|
|
378
388
|
TXT_CHANGEVISUALIZATION_CHANGE_RENAME_FROM_TO=Name was changed from ''{1}'' to ''{0}''
|
|
379
|
-
#XTXT: Description for move-changes
|
|
389
|
+
#XTXT: Description for move-changes outside its group
|
|
380
390
|
TXT_CHANGEVISUALIZATION_CHANGE_MOVE=Element ''{0}'' was moved
|
|
391
|
+
#XTXT: Description for move-changes within its group
|
|
392
|
+
TXT_CHANGEVISUALIZATION_CHANGE_MOVE_WITHIN=Element ''{0}'' was moved within its container
|
|
381
393
|
#XTXT: Description for remove-changes
|
|
382
394
|
TXT_CHANGEVISUALIZATION_CHANGE_REMOVE=Element {0} was removed
|
|
383
395
|
#XTXT: Description for reveal-changes
|
|
@@ -408,28 +420,30 @@ TIT_CHANGEVISUALIZATION_DESCRIPTION=Description
|
|
|
408
420
|
BUT_CHANGEVISUALIZATION_SHOWCHANGES=Visualize Key User Changes
|
|
409
421
|
#XTOL: Tooltip for Select Changes Button in Toolbar
|
|
410
422
|
BUT_CHANGEVISUALIZATION_SELECTCHANGES=Select Change Type
|
|
423
|
+
#XMSG: Info Message for Hidden Changes
|
|
424
|
+
MSG_CHANGEVISUALIZATION_HIDDEN_CHANGES_INFO=Changes not visualized: {0}
|
|
411
425
|
#XTXT: Text for all-changes item of ChangesPopover
|
|
412
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_ALL=All
|
|
426
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_ALL=All
|
|
413
427
|
#XBUT: Button text for all-changes
|
|
414
428
|
BTN_CHANGEVISUALIZATION_OVERVIEW_ALL=All Changes
|
|
415
429
|
#XTXT: Text for move-changes item of ChangesPopover
|
|
416
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_MOVE=Move
|
|
430
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_MOVE=Move
|
|
417
431
|
#XBUT: Button text for move-changes
|
|
418
432
|
BTN_CHANGEVISUALIZATION_OVERVIEW_MOVE=Moved Elements
|
|
419
433
|
#XTXT: Text for rename-changes item of ChangesPopover
|
|
420
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_RENAME=Rename
|
|
434
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_RENAME=Rename
|
|
421
435
|
#XBUT: Button text for rename-changes
|
|
422
436
|
BTN_CHANGEVISUALIZATION_OVERVIEW_RENAME=Renamed Elements
|
|
423
437
|
#XTXT: Text for add-changes item of ChangesPopover
|
|
424
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_ADD=Add
|
|
438
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_ADD=Add
|
|
425
439
|
#BUT: Button text for add-changes
|
|
426
440
|
BTN_CHANGEVISUALIZATION_OVERVIEW_ADD=Added Elements
|
|
427
441
|
#XTXT: Text for combine- and split-changes item of ChangesPopover
|
|
428
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combine and Split
|
|
442
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combine and Split
|
|
429
443
|
#XBUT: Button text for combine- and split-changes
|
|
430
444
|
BTN_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combined and Split Elements
|
|
431
445
|
#XTXT: Text for remove-changes item of ChangesPopover
|
|
432
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Remove
|
|
446
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Remove
|
|
433
447
|
#XBUT: Button text for remove-changes
|
|
434
448
|
BTN_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Removed Elements
|
|
435
449
|
#XTXT: Semantic date for changes created in same session
|
|
@@ -440,6 +454,8 @@ MSG_LOCAL_RESET_VARIANT_SAVE=The container has been reset and the view has been
|
|
|
440
454
|
BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_MOVE=Show Source
|
|
441
455
|
#XBUT: Button text for showing the dependent container of a split change
|
|
442
456
|
BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_SPLIT=Show Other Parts
|
|
457
|
+
#XBUT: Button text for learn more link in change type selection dialog
|
|
458
|
+
BUT_CHANGEVISUALIZATION_LEARNMORE=[Learn more]
|
|
443
459
|
|
|
444
460
|
#XMSG: Warning Message for mixed changes
|
|
445
461
|
MSG_ADAPTATION_STARTER_MIXED_CHANGES_WARNING=UI changes to this app have been made in another system. To avoid conflicts, we strongly advise to make UI changes in one system only and transport them to the other systems. See [Adapting the UI](https://help.sap.com/viewer/a7b390faab1140c087b8926571e942b7/202110.000/en-US/4aa356f89e5a4409a9efe4dda4ddcb7e.html).
|