@openui5/sap.ui.rta 1.135.0 → 1.136.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/REUSE.toml +649 -0
- package/THIRDPARTY.txt +22 -22
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +2 -2
- package/src/sap/ui/rta/Client.js +2 -2
- package/src/sap/ui/rta/RuntimeAuthoring.js +92 -19
- package/src/sap/ui/rta/Utils.js +19 -2
- package/src/sap/ui/rta/api/startAdaptation.js +1 -1
- package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
- package/src/sap/ui/rta/appVariant/Feature.js +1 -1
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
- package/src/sap/ui/rta/appVariant/Utils.js +8 -15
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +30 -44
- package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +2 -2
- package/src/sap/ui/rta/command/AddProperty.js +2 -2
- package/src/sap/ui/rta/command/AddXML.js +2 -2
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/command/AnnotationCommand.js +2 -2
- package/src/sap/ui/rta/command/BaseCommand.js +2 -2
- package/src/sap/ui/rta/command/BindProperty.js +2 -2
- package/src/sap/ui/rta/command/Combine.js +2 -2
- package/src/sap/ui/rta/command/CommandFactory.js +2 -2
- package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +2 -2
- package/src/sap/ui/rta/command/CreateContainer.js +2 -2
- package/src/sap/ui/rta/command/CustomAdd.js +2 -2
- package/src/sap/ui/rta/command/ExtendControllerCommand.js +4 -3
- package/src/sap/ui/rta/command/FlexCommand.js +2 -2
- package/src/sap/ui/rta/command/LREPSerializer.js +2 -2
- package/src/sap/ui/rta/command/LocalReset.js +2 -2
- package/src/sap/ui/rta/command/ManifestCommand.js +2 -2
- package/src/sap/ui/rta/command/Move.js +2 -2
- package/src/sap/ui/rta/command/Property.js +2 -2
- package/src/sap/ui/rta/command/Remove.js +2 -2
- package/src/sap/ui/rta/command/Rename.js +2 -2
- package/src/sap/ui/rta/command/Resize.js +2 -2
- package/src/sap/ui/rta/command/Reveal.js +2 -2
- package/src/sap/ui/rta/command/Settings.js +2 -2
- package/src/sap/ui/rta/command/Split.js +2 -2
- package/src/sap/ui/rta/command/Stack.js +20 -5
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +2 -2
- package/src/sap/ui/rta/command/manifest/AddLibrary.js +2 -2
- package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +2 -2
- package/src/sap/ui/rta/library.js +3 -3
- package/src/sap/ui/rta/messagebundle.properties +170 -9
- package/src/sap/ui/rta/messagebundle_ar.properties +104 -6
- package/src/sap/ui/rta/messagebundle_bg.properties +104 -6
- package/src/sap/ui/rta/messagebundle_ca.properties +107 -9
- package/src/sap/ui/rta/messagebundle_cnr.properties +105 -7
- package/src/sap/ui/rta/messagebundle_cs.properties +102 -4
- package/src/sap/ui/rta/messagebundle_cy.properties +104 -6
- package/src/sap/ui/rta/messagebundle_da.properties +103 -5
- package/src/sap/ui/rta/messagebundle_de.properties +113 -15
- package/src/sap/ui/rta/messagebundle_el.properties +101 -3
- package/src/sap/ui/rta/messagebundle_en.properties +104 -6
- package/src/sap/ui/rta/messagebundle_en_GB.properties +104 -6
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +2 -0
- package/src/sap/ui/rta/messagebundle_es.properties +108 -10
- package/src/sap/ui/rta/messagebundle_es_MX.properties +112 -14
- package/src/sap/ui/rta/messagebundle_et.properties +102 -4
- package/src/sap/ui/rta/messagebundle_fi.properties +105 -7
- package/src/sap/ui/rta/messagebundle_fr.properties +113 -15
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +105 -7
- package/src/sap/ui/rta/messagebundle_hi.properties +104 -6
- package/src/sap/ui/rta/messagebundle_hr.properties +114 -16
- package/src/sap/ui/rta/messagebundle_hu.properties +103 -5
- package/src/sap/ui/rta/messagebundle_id.properties +112 -14
- package/src/sap/ui/rta/messagebundle_it.properties +102 -4
- package/src/sap/ui/rta/messagebundle_iw.properties +104 -6
- package/src/sap/ui/rta/messagebundle_ja.properties +116 -18
- package/src/sap/ui/rta/messagebundle_kk.properties +103 -5
- package/src/sap/ui/rta/messagebundle_ko.properties +104 -6
- package/src/sap/ui/rta/messagebundle_lt.properties +104 -6
- package/src/sap/ui/rta/messagebundle_lv.properties +103 -5
- package/src/sap/ui/rta/messagebundle_mk.properties +107 -9
- package/src/sap/ui/rta/messagebundle_ms.properties +114 -16
- package/src/sap/ui/rta/messagebundle_nl.properties +103 -5
- package/src/sap/ui/rta/messagebundle_no.properties +107 -9
- package/src/sap/ui/rta/messagebundle_pl.properties +103 -5
- package/src/sap/ui/rta/messagebundle_pt.properties +102 -4
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +102 -4
- package/src/sap/ui/rta/messagebundle_ro.properties +102 -4
- package/src/sap/ui/rta/messagebundle_ru.properties +106 -8
- package/src/sap/ui/rta/messagebundle_sh.properties +105 -7
- package/src/sap/ui/rta/messagebundle_sk.properties +102 -4
- package/src/sap/ui/rta/messagebundle_sl.properties +102 -4
- package/src/sap/ui/rta/messagebundle_sr.properties +105 -7
- package/src/sap/ui/rta/messagebundle_sv.properties +103 -5
- package/src/sap/ui/rta/messagebundle_th.properties +103 -5
- package/src/sap/ui/rta/messagebundle_tr.properties +102 -4
- package/src/sap/ui/rta/messagebundle_uk.properties +104 -6
- package/src/sap/ui/rta/messagebundle_vi.properties +104 -6
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +103 -5
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +104 -6
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +54 -32
- package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
- package/src/sap/ui/rta/plugin/Combine.js +2 -2
- package/src/sap/ui/rta/plugin/CompVariant.js +114 -114
- package/src/sap/ui/rta/plugin/ControlVariant.js +37 -54
- package/src/sap/ui/rta/plugin/CreateContainer.js +2 -2
- package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
- package/src/sap/ui/rta/plugin/DragDrop.js +2 -2
- package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +62 -38
- package/src/sap/ui/rta/plugin/LocalReset.js +4 -3
- package/src/sap/ui/rta/plugin/Plugin.js +30 -12
- package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
- package/src/sap/ui/rta/plugin/Remove.js +2 -2
- package/src/sap/ui/rta/plugin/Resize.js +2 -2
- package/src/sap/ui/rta/plugin/Selection.js +2 -2
- package/src/sap/ui/rta/plugin/Settings.js +5 -2
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- package/src/sap/ui/rta/plugin/Stretch.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +4 -4
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +26 -13
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +30 -31
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +13 -7
- package/src/sap/ui/rta/plugin/annotations/AnnotationTypes.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +8 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
- package/src/sap/ui/rta/plugin/{Rename.js → rename/Rename.js} +29 -67
- package/src/sap/ui/rta/plugin/rename/RenameDialog.fragment.xml +63 -0
- package/src/sap/ui/rta/plugin/rename/RenameDialog.js +140 -0
- package/src/sap/ui/rta/service/Action.js +2 -2
- package/src/sap/ui/rta/service/ControllerExtension.js +2 -2
- package/src/sap/ui/rta/service/Outline.js +2 -2
- package/src/sap/ui/rta/service/Property.js +2 -2
- package/src/sap/ui/rta/service/Receiver.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +2 -2
- package/src/sap/ui/rta/service/SupportTools.js +2 -2
- package/src/sap/ui/rta/service/index.js +1 -1
- package/src/sap/ui/rta/themes/base/library.source.less +1 -1
- package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +6 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +1 -6
- package/src/sap/ui/rta/toolbar/Adaptation.js +12 -3
- package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +2 -2
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +20 -10
- package/src/sap/ui/rta/toolbar/FioriLike.js +7 -5
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
- package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +2 -2
- package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +2 -2
- package/src/sap/ui/rta/util/Animation.js +1 -1
- package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +8 -6
- package/src/sap/ui/rta/util/PopupManager.js +2 -2
- package/src/sap/ui/rta/util/ReloadManager.js +2 -2
- package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
- package/src/sap/ui/rta/util/ServiceManager.js +2 -2
- package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +3 -3
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +1 -1
- package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +242 -0
- package/src/sap/ui/rta/util/guidedTour/TourMarker.fragment.xml +50 -0
- package/src/sap/ui/rta/util/guidedTour/content/GeneralTour.js +205 -0
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/isReuseComponent.js +1 -1
- package/src/sap/ui/rta/util/showMessageBox.js +1 -1
- package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
- package/src/sap/ui/rta/util/validateStableIds.js +1 -1
- package/src/sap/ui/rta/util/validateText.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +8 -4
- package/src/sap/ui/rta/util/whatsNew/WhatsNewDialog.fragment.xml +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +85 -1
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/ChangeLabelsAction.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/DisplayBehavior.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/ExtendedActions.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/GuidedTour.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/ReloadButtonToolbar.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/RenameDialog.png +0 -0
- package/ui5.yaml +1 -1
- package/.reuse/dep5 +0 -471
- package/src/sap/ui/rta/plugin/RenameHandler.js +0 -477
package/THIRDPARTY.txt
CHANGED
|
@@ -26,7 +26,7 @@ Component: Ace (Ajax.org Cloud9 Editor), version: 1.36.5
|
|
|
26
26
|
Copyright: 2010, Ajax.org B.V.
|
|
27
27
|
License: BSD-3-Clause
|
|
28
28
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
29
|
-
Contained in: src/sap.ui.codeeditor/src/sap/ui/codeeditor/js/ace
|
|
29
|
+
Contained in: src/sap.ui.codeeditor/src/sap/ui/codeeditor/js/ace/**
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
Library: sap.ui.commons:
|
|
@@ -71,7 +71,7 @@ Component: jQuery UI 1.10, version: 1.10.4
|
|
|
71
71
|
Copyright: 2014 jQuery Foundation and other contributors
|
|
72
72
|
License: MIT
|
|
73
73
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
74
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/jqueryui
|
|
74
|
+
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/jqueryui/**
|
|
75
75
|
src/sap.ui.core/src/jquery.sap.dom.js
|
|
76
76
|
|
|
77
77
|
Component: jQuery UI 1.11, version: 1.11.1
|
|
@@ -191,13 +191,13 @@ Component: Unicode Common Locale Data Repository, version: 46.1.0
|
|
|
191
191
|
Copyright: 1991-2024 Unicode, Inc.
|
|
192
192
|
License: LicenseRef-Unicode-3.0
|
|
193
193
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-Unicode-3.0.txt
|
|
194
|
-
Contained in: src/sap.ui.core/src/sap/ui/core/cldr
|
|
194
|
+
Contained in: src/sap.ui.core/src/sap/ui/core/cldr/**
|
|
195
195
|
|
|
196
196
|
Component: MobiScroll, version: 2.9.0
|
|
197
197
|
Copyright: 2010-2013, Acid Media
|
|
198
198
|
License: MIT
|
|
199
199
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
200
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/mobiscroll
|
|
200
|
+
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/mobiscroll/**
|
|
201
201
|
|
|
202
202
|
Component: SinonJS, version: 1.14.1
|
|
203
203
|
Copyright: 2010-2014, Christian Johansen, christian@cjohansen.no
|
|
@@ -310,7 +310,7 @@ Component: Hyphenopoly, version: 3.4.0
|
|
|
310
310
|
Copyright: 2021 Mathias Nater
|
|
311
311
|
License: MIT
|
|
312
312
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
313
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly
|
|
313
|
+
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/**
|
|
314
314
|
|
|
315
315
|
Component: p-cancelable, version: 2.0.0
|
|
316
316
|
Copyright: Sindre Sorhus <sindresorhus@gmail.com>
|
|
@@ -349,7 +349,7 @@ Component: highlight.js, version: 11.9.0
|
|
|
349
349
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
350
350
|
License: BSD-3-Clause
|
|
351
351
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
352
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js
|
|
352
|
+
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/**
|
|
353
353
|
|
|
354
354
|
Component: Elasticlunr, version: 0.9.5
|
|
355
355
|
Copyright: 2017 Wei Song and Oliver Nightingale
|
|
@@ -361,13 +361,13 @@ Component: DataTables, version: 2.0.1
|
|
|
361
361
|
Copyright: SpryMedia Ltd
|
|
362
362
|
License: MIT
|
|
363
363
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
364
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1
|
|
364
|
+
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/**
|
|
365
365
|
|
|
366
366
|
Component: Buttons extension for DataTables, version: 3.0.0
|
|
367
367
|
Copyright: SpryMedia Ltd
|
|
368
368
|
License: MIT
|
|
369
369
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
370
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0
|
|
370
|
+
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/**
|
|
371
371
|
|
|
372
372
|
|
|
373
373
|
Library: sap.ui.integration:
|
|
@@ -376,7 +376,7 @@ Component: UI5 Web Components, version: 1.7.0
|
|
|
376
376
|
Copyright: SAP
|
|
377
377
|
License: Apache-2.0
|
|
378
378
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
379
|
-
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents
|
|
379
|
+
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/**
|
|
380
380
|
|
|
381
381
|
Component: Adaptive Cards, version: 2.9.0
|
|
382
382
|
Copyright: 2017 Microsoft
|
|
@@ -416,18 +416,18 @@ Component: UI5 Web Components, version: 1.18.0
|
|
|
416
416
|
Copyright: SAP
|
|
417
417
|
License: Apache-2.0
|
|
418
418
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
419
|
-
Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base
|
|
420
|
-
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming
|
|
421
|
-
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization
|
|
422
|
-
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons
|
|
423
|
-
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt
|
|
424
|
-
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite
|
|
419
|
+
Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/**
|
|
420
|
+
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/**
|
|
421
|
+
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/**
|
|
422
|
+
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/**
|
|
423
|
+
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/**
|
|
424
|
+
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/**
|
|
425
425
|
|
|
426
426
|
Component: lit-html, version: 2.2.2
|
|
427
427
|
Copyright: Google LLC
|
|
428
428
|
License: BSD-3-Clause
|
|
429
429
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
430
|
-
Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html
|
|
430
|
+
Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/**
|
|
431
431
|
|
|
432
432
|
|
|
433
433
|
Library: sap.ui.webc.fiori:
|
|
@@ -436,7 +436,7 @@ Component: UI5 Web Components, version: 1.18.0
|
|
|
436
436
|
Copyright: SAP
|
|
437
437
|
License: Apache-2.0
|
|
438
438
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
439
|
-
Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty
|
|
439
|
+
Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/**
|
|
440
440
|
|
|
441
441
|
Component: ZXing, version: 0.17.1
|
|
442
442
|
Copyright: 2005 Sun Microsystems, Inc.; 2010-2014 University of Manchester; 2010-2015 Stian Soiland-Reyes; 2015 Peter Hull
|
|
@@ -451,7 +451,7 @@ Component: UI5 Web Components, version: 1.18.0
|
|
|
451
451
|
Copyright: SAP
|
|
452
452
|
License: Apache-2.0
|
|
453
453
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
454
|
-
Contained in: src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty
|
|
454
|
+
Contained in: src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty/**
|
|
455
455
|
|
|
456
456
|
|
|
457
457
|
Outside of Libraries:
|
|
@@ -462,14 +462,14 @@ License: Apache-2.0
|
|
|
462
462
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
463
463
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
464
464
|
|
|
465
|
-
Component: SAP Theming Base Content, version: 11.
|
|
465
|
+
Component: SAP Theming Base Content, version: 11.29.1
|
|
466
466
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
467
467
|
License: Apache-2.0
|
|
468
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
469
|
Contained in: src/sap.ui.core/src/sap/ui/core/themes/base/base.less
|
|
470
|
-
src/themelib_sap_belize/src/sap/ui/core/themes
|
|
471
|
-
src/themelib_sap_fiori_3/src/sap/ui/core/themes
|
|
472
|
-
src/themelib_sap_horizon/src/sap/ui/core/themes
|
|
470
|
+
src/themelib_sap_belize/src/sap/ui/core/themes/**/base.less
|
|
471
|
+
src/themelib_sap_fiori_3/src/sap/ui/core/themes/**/base.less
|
|
472
|
+
src/themelib_sap_horizon/src/sap/ui/core/themes/**/base.less
|
|
473
473
|
|
|
474
474
|
|
|
475
475
|
ALL LICENSE TEXTS:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.136.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.136.1",
|
|
18
|
+
"@openui5/sap.ui.core": "1.136.1",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.136.1",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.136.1",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.136.1"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<name>sap.ui.rta</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>OpenUI5
|
|
7
|
-
* (c) Copyright
|
|
7
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.136.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
* @alias sap.ui.rta.Client
|
|
60
60
|
* @author SAP SE
|
|
61
61
|
* @since 1.56.0
|
|
62
|
-
* @version 1.
|
|
62
|
+
* @version 1.136.1
|
|
63
63
|
* @private
|
|
64
64
|
* @ui5-restricted
|
|
65
65
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -28,9 +28,11 @@ sap.ui.define([
|
|
|
28
28
|
"sap/ui/fl/write/api/FeaturesAPI",
|
|
29
29
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
30
30
|
"sap/ui/fl/write/api/ReloadInfoAPI",
|
|
31
|
-
"sap/ui/fl/write/api/VersionsAPI",
|
|
32
31
|
"sap/ui/fl/write/api/TranslationAPI",
|
|
32
|
+
"sap/ui/fl/write/api/VersionsAPI",
|
|
33
33
|
"sap/ui/fl/Layer",
|
|
34
|
+
"sap/ui/fl/LayerUtils",
|
|
35
|
+
"sap/ui/fl/requireAsync",
|
|
34
36
|
"sap/ui/fl/Utils",
|
|
35
37
|
"sap/ui/model/json/JSONModel",
|
|
36
38
|
"sap/ui/performance/Measurement",
|
|
@@ -42,6 +44,8 @@ sap.ui.define([
|
|
|
42
44
|
"sap/ui/rta/toolbar/FioriLike",
|
|
43
45
|
"sap/ui/rta/toolbar/Standalone",
|
|
44
46
|
"sap/ui/rta/util/changeVisualization/ChangeVisualization",
|
|
47
|
+
"sap/ui/rta/util/guidedTour/content/GeneralTour",
|
|
48
|
+
"sap/ui/rta/util/guidedTour/GuidedTour",
|
|
45
49
|
"sap/ui/rta/util/whatsNew/WhatsNew",
|
|
46
50
|
"sap/ui/rta/util/PluginManager",
|
|
47
51
|
"sap/ui/rta/util/PopupManager",
|
|
@@ -73,9 +77,11 @@ sap.ui.define([
|
|
|
73
77
|
FeaturesAPI,
|
|
74
78
|
PersistenceWriteAPI,
|
|
75
79
|
ReloadInfoAPI,
|
|
76
|
-
VersionsAPI,
|
|
77
80
|
TranslationAPI,
|
|
81
|
+
VersionsAPI,
|
|
78
82
|
Layer,
|
|
83
|
+
LayerUtils,
|
|
84
|
+
requireAsync,
|
|
79
85
|
FlexUtils,
|
|
80
86
|
JSONModel,
|
|
81
87
|
Measurement,
|
|
@@ -87,6 +93,8 @@ sap.ui.define([
|
|
|
87
93
|
FioriLikeToolbar,
|
|
88
94
|
StandaloneToolbar,
|
|
89
95
|
ChangeVisualization,
|
|
96
|
+
GeneralTour,
|
|
97
|
+
GuidedTour,
|
|
90
98
|
WhatsNew,
|
|
91
99
|
PluginManager,
|
|
92
100
|
PopupManager,
|
|
@@ -109,7 +117,7 @@ sap.ui.define([
|
|
|
109
117
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
110
118
|
* @extends sap.ui.base.ManagedObject
|
|
111
119
|
* @author SAP SE
|
|
112
|
-
* @version 1.
|
|
120
|
+
* @version 1.136.1
|
|
113
121
|
* @constructor
|
|
114
122
|
* @private
|
|
115
123
|
* @since 1.30
|
|
@@ -256,6 +264,7 @@ sap.ui.define([
|
|
|
256
264
|
if (isAvailable && !ReloadManager.getDontShowWhatsNewAfterReload()) {
|
|
257
265
|
this.addDependent(new WhatsNew({ layer: this.getLayer() }), "whatsNew");
|
|
258
266
|
}
|
|
267
|
+
this.addDependent(new GuidedTour(), "guidedTour");
|
|
259
268
|
return Promise.resolve();
|
|
260
269
|
}.bind(this));
|
|
261
270
|
}
|
|
@@ -464,7 +473,20 @@ sap.ui.define([
|
|
|
464
473
|
}
|
|
465
474
|
setBlockedOnRootElements.call(this, true);
|
|
466
475
|
|
|
467
|
-
|
|
476
|
+
const bGuidedTourAutostart = await shouldAutoStartGuidedTour(this.getRootControlInstance(), this.getLayer());
|
|
477
|
+
|
|
478
|
+
if (bGuidedTourAutostart) {
|
|
479
|
+
const oGuidedTour = this.getGuidedTour();
|
|
480
|
+
oGuidedTour.attachTourClosed(() => {
|
|
481
|
+
if (this.getWhatsNew) {
|
|
482
|
+
// we want to exclude the guided tour feature from the whats new dialog if the tour opens before the dialog
|
|
483
|
+
const aExcludeGuidedTourFeature = ["GuidedTour"];
|
|
484
|
+
this.getWhatsNew().initializeWhatsNewDialog(aExcludeGuidedTourFeature);
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
GeneralTour.getTourContent();
|
|
488
|
+
oGuidedTour.autoStart(GeneralTour.getTourContent());
|
|
489
|
+
} else if (this.getWhatsNew) {
|
|
468
490
|
this.getWhatsNew().initializeWhatsNewDialog();
|
|
469
491
|
}
|
|
470
492
|
|
|
@@ -997,17 +1019,52 @@ sap.ui.define([
|
|
|
997
1019
|
const bIsContextBasedAdaptationAvailable = await FeaturesAPI.isContextBasedAdaptationAvailable(sLayer);
|
|
998
1020
|
const oAppLifeCycleService = await FlexUtils.getUShellService("AppLifeCycle");
|
|
999
1021
|
const bIsHomePage = oAppLifeCycleService?.getCurrentApplication()?.homePage || false;
|
|
1000
|
-
const oManifest = FlexUtils.getAppDescriptor(oRootControl);
|
|
1001
|
-
// context based adaptation is not supported for overview pages
|
|
1002
|
-
const bIsContextBasedAdaptationSupported = oManifest && !ManifestUtils.getOvpEntry(oManifest);
|
|
1003
1022
|
|
|
1004
1023
|
return {
|
|
1005
1024
|
publishAvailable: bIsPublishAvailable,
|
|
1006
1025
|
saveAsAvailable: !bIsHomePage && bIsPublishAvailable && bIsSaveAsAvailable,
|
|
1007
|
-
contextBasedAdaptationAvailable: !bIsHomePage &&
|
|
1026
|
+
contextBasedAdaptationAvailable: !bIsHomePage && bIsContextBasedAdaptationAvailable
|
|
1008
1027
|
};
|
|
1009
1028
|
}
|
|
1010
1029
|
|
|
1030
|
+
/**
|
|
1031
|
+
* Checks if the guided tour should be started automatically.
|
|
1032
|
+
*
|
|
1033
|
+
* @param {sap.ui.core.Control} oRootControl - Root control of the application
|
|
1034
|
+
* @param {string} sLayer - Layer to get the correct connector
|
|
1035
|
+
* @returns {Promise<boolean>} Resolves to a boolean indicating if the guided tour should be started automatically
|
|
1036
|
+
* @ui5-restricted sap.ui.rta
|
|
1037
|
+
*/
|
|
1038
|
+
async function shouldAutoStartGuidedTour(oRootControl, sLayer) {
|
|
1039
|
+
const aConnectors = FlexUtils.getConnectors();
|
|
1040
|
+
const aProhibitedConnectors = ["LocalStorageConnector", "SessionStorageConnector"];
|
|
1041
|
+
const bHasConnectors = aConnectors.length > 0;
|
|
1042
|
+
const bHasOnlyAllowedConnectors = bHasConnectors
|
|
1043
|
+
&& aConnectors.every((sConnector) => !aProhibitedConnectors.includes(sConnector));
|
|
1044
|
+
|
|
1045
|
+
if (!bHasOnlyAllowedConnectors || LayerUtils.isDeveloperLayer(sLayer)) {
|
|
1046
|
+
return false;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
// We need this check to differentiate between our test systems and real customer systems.
|
|
1050
|
+
const sUserId = await FlexRuntimeInfoAPI.getUserId();
|
|
1051
|
+
if (sUserId === "DEFAULT_USER" || !sUserId) {
|
|
1052
|
+
return false;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
const aHasOwnChanges = await PersistenceWriteAPI._getFlexObjectsForUser({
|
|
1056
|
+
selector: oRootControl,
|
|
1057
|
+
layer: sLayer
|
|
1058
|
+
});
|
|
1059
|
+
|
|
1060
|
+
if (!aHasOwnChanges || aHasOwnChanges.length > 0) {
|
|
1061
|
+
return false;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
const bHasSeenWNFeatures = (await FeaturesAPI.getSeenFeatureIds({ layer: sLayer })).length > 0;
|
|
1065
|
+
return !bHasSeenWNFeatures;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1011
1068
|
function showTechnicalError(vError) {
|
|
1012
1069
|
BusyIndicator.hide();
|
|
1013
1070
|
const sErrorMessage = vError.userMessage || vError.stack || vError.message || vError.status || vError;
|
|
@@ -1121,7 +1178,7 @@ sap.ui.define([
|
|
|
1121
1178
|
|
|
1122
1179
|
async function saveAndReload() {
|
|
1123
1180
|
if (this.canSave()) {
|
|
1124
|
-
const sAction = await Utils.showMessageBox("
|
|
1181
|
+
const sAction = await Utils.showMessageBox("information", "MSG_SAVE_AND_RELOAD_DIALOG", {
|
|
1125
1182
|
actions: [MessageBox.Action.OK, MessageBox.Action.CANCEL],
|
|
1126
1183
|
emphasizedAction: MessageBox.Action.OK
|
|
1127
1184
|
});
|
|
@@ -1465,6 +1522,7 @@ sap.ui.define([
|
|
|
1465
1522
|
}
|
|
1466
1523
|
|
|
1467
1524
|
const oProperties = {
|
|
1525
|
+
id: "sapUIRta_toolbar",
|
|
1468
1526
|
rtaInformation: {
|
|
1469
1527
|
flexSettings: this.getFlexSettings(),
|
|
1470
1528
|
rootControl: this.getRootControlInstance(),
|
|
@@ -1491,10 +1549,15 @@ sap.ui.define([
|
|
|
1491
1549
|
oProperties.saveAndReload = saveAndReload.bind(this);
|
|
1492
1550
|
|
|
1493
1551
|
let oToolbar;
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1552
|
+
const bUshellAvailable = !!FlexUtils.getUshellContainer();
|
|
1553
|
+
if (bUshellAvailable) {
|
|
1554
|
+
const oUshellRtaApi = await requireAsync("sap/ushell/api/RTA");
|
|
1555
|
+
oProperties.ushellApi = oUshellRtaApi;
|
|
1556
|
+
if (Utils.isOriginalFioriToolbarAccessible()) {
|
|
1557
|
+
oToolbar = new FioriToolbar(oProperties);
|
|
1558
|
+
} else {
|
|
1559
|
+
oToolbar = new FioriLikeToolbar(oProperties);
|
|
1560
|
+
}
|
|
1498
1561
|
} else {
|
|
1499
1562
|
oToolbar = new StandaloneToolbar(oProperties);
|
|
1500
1563
|
}
|
|
@@ -1578,11 +1641,12 @@ sap.ui.define([
|
|
|
1578
1641
|
this.getToolbar().setModel(this._oToolbarControlsModel, "controls");
|
|
1579
1642
|
|
|
1580
1643
|
if (bTranslationAvailable) {
|
|
1581
|
-
|
|
1644
|
+
TranslationAPI.getSourceLanguages(
|
|
1582
1645
|
{selector: this.getRootControlInstance(), layer: this.getLayer()}
|
|
1583
|
-
)
|
|
1584
|
-
|
|
1585
|
-
|
|
1646
|
+
).then(function(aSourceLanguages) {
|
|
1647
|
+
this.bPersistedDataTranslatable = aSourceLanguages.length > 0;
|
|
1648
|
+
this._oToolbarControlsModel.setProperty("/translation/enabled", this.bPersistedDataTranslatable);
|
|
1649
|
+
}.bind(this));
|
|
1586
1650
|
}
|
|
1587
1651
|
|
|
1588
1652
|
if (bAppVariantsAvailable) {
|
|
@@ -1690,7 +1754,16 @@ sap.ui.define([
|
|
|
1690
1754
|
*/
|
|
1691
1755
|
function scheduleRenameOnCreatedContainer(vAction, sNewControlID, sNewContainerName) {
|
|
1692
1756
|
const fnStartEdit = function(oElementOverlay) {
|
|
1693
|
-
oElementOverlay.
|
|
1757
|
+
if (oElementOverlay.getSelectable()) {
|
|
1758
|
+
oElementOverlay.setSelected(true);
|
|
1759
|
+
} else {
|
|
1760
|
+
// TODO todos#7
|
|
1761
|
+
// The async editableByPlugin evaluation has not finished yet
|
|
1762
|
+
// thus the overlay is not selectable yet and setSelected would fail
|
|
1763
|
+
oElementOverlay.attachEventOnce("selectableChange", () => {
|
|
1764
|
+
oElementOverlay.setSelected(true);
|
|
1765
|
+
});
|
|
1766
|
+
}
|
|
1694
1767
|
this.getPluginManager().getPlugin("rename").startEdit(oElementOverlay);
|
|
1695
1768
|
}.bind(this);
|
|
1696
1769
|
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
*
|
|
47
47
|
* @namespace
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.136.1
|
|
50
50
|
*
|
|
51
51
|
* @private
|
|
52
52
|
* @since 1.30
|
|
@@ -539,5 +539,22 @@ sap.ui.define([
|
|
|
539
539
|
});
|
|
540
540
|
};
|
|
541
541
|
|
|
542
|
+
/**
|
|
543
|
+
* Checks if a DOM element is visible in the UI.
|
|
544
|
+
*
|
|
545
|
+
* The function determines visibility based on the computed styles of the element
|
|
546
|
+
* (`display` and `visibility`) and its dimensions (`offsetWidth` and `offsetHeight`).
|
|
547
|
+
*
|
|
548
|
+
* @param {HTMLElement} oDomRef - The DOM reference of the element to check.
|
|
549
|
+
* @returns {boolean} Returns `true` if the element is visible, otherwise `false`.
|
|
550
|
+
*/
|
|
551
|
+
Utils.isElementVisible = function(oDomRef) {
|
|
552
|
+
if (!oDomRef) {
|
|
553
|
+
return false;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
return !!(oDomRef.offsetWidth || oDomRef.offsetHeight || oDomRef.getClientRects().length);
|
|
557
|
+
};
|
|
558
|
+
|
|
542
559
|
return Utils;
|
|
543
560
|
}, /* bExport= */true);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @class
|
|
25
25
|
* @extends sap.ui.base.ManagedObject
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.136.1
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.53
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/base/i18n/ResourceBundle",
|
|
8
7
|
"sap/ui/core/IconPool",
|
|
9
8
|
"sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
|
|
10
9
|
"sap/ui/fl/write/api/AppVariantWriteAPI",
|
|
11
10
|
"sap/ui/fl/Utils",
|
|
12
11
|
"sap/ui/rta/appVariant/AppVariantUtils"
|
|
13
12
|
], function(
|
|
14
|
-
ResourceBundle,
|
|
15
13
|
IconPool,
|
|
16
14
|
FlexRuntimeInfoAPI,
|
|
17
15
|
AppVariantWriteAPI,
|
|
@@ -22,11 +20,6 @@ sap.ui.define([
|
|
|
22
20
|
|
|
23
21
|
const Utils = {};
|
|
24
22
|
|
|
25
|
-
const sModulePath = `${sap.ui.require.toUrl("sap/ui/rta/appVariant/manageApps/")}webapp`;
|
|
26
|
-
const oI18n = ResourceBundle.create({
|
|
27
|
-
url: `${sModulePath}/i18n/i18n.properties`
|
|
28
|
-
});
|
|
29
|
-
|
|
30
23
|
Utils._checkNavigationSupported = function(oNavigationParams) {
|
|
31
24
|
const oUShellContainer = FlUtils.getUshellContainer();
|
|
32
25
|
return oUShellContainer.getServiceAsync("Navigation")
|
|
@@ -38,7 +31,7 @@ sap.ui.define([
|
|
|
38
31
|
});
|
|
39
32
|
};
|
|
40
33
|
|
|
41
|
-
Utils._checkAppType = function(bOriginalApp, bAppVariant) {
|
|
34
|
+
Utils._checkAppType = function(bOriginalApp, bAppVariant, oI18n) {
|
|
42
35
|
if (bOriginalApp && bAppVariant) {
|
|
43
36
|
return oI18n.getText("MAA_ORIGINAL_TYPE");
|
|
44
37
|
} else if (bAppVariant) {
|
|
@@ -50,7 +43,7 @@ sap.ui.define([
|
|
|
50
43
|
return undefined;
|
|
51
44
|
};
|
|
52
45
|
|
|
53
|
-
Utils._calculateCurrentStatus = function(sAppVariantInfoId, sAppVarStatus) {
|
|
46
|
+
Utils._calculateCurrentStatus = function(sAppVariantInfoId, sAppVarStatus, oI18n) {
|
|
54
47
|
// Get the id of a new created app variant
|
|
55
48
|
const sNewAppVariantId = AppVariantUtils.getNewAppVariantId();
|
|
56
49
|
|
|
@@ -171,7 +164,7 @@ sap.ui.define([
|
|
|
171
164
|
};
|
|
172
165
|
};
|
|
173
166
|
|
|
174
|
-
Utils.getAppVariantOverviewAttributes = function(oAppVariantInfo, bKeyUser) {
|
|
167
|
+
Utils.getAppVariantOverviewAttributes = function(oAppVariantInfo, bKeyUser, oI18n) {
|
|
175
168
|
let oAppVariantAttributes;
|
|
176
169
|
// Adding the tooltip to every icon which is shown on the App Variant Overview Dialog
|
|
177
170
|
const sIconUrl = oAppVariantInfo.iconUrl;
|
|
@@ -186,10 +179,10 @@ sap.ui.define([
|
|
|
186
179
|
oAppVariantAttributes.isKeyUser = bKeyUser;
|
|
187
180
|
|
|
188
181
|
// Type of application required for Overview dialog
|
|
189
|
-
oAppVariantAttributes.typeOfApp = this._checkAppType(oAppVariantInfo.isOriginal, oAppVariantInfo.isAppVariant);
|
|
182
|
+
oAppVariantAttributes.typeOfApp = this._checkAppType(oAppVariantInfo.isOriginal, oAppVariantInfo.isAppVariant, oI18n);
|
|
190
183
|
|
|
191
184
|
// Calculate current status of application required for Overview Dialog
|
|
192
|
-
oAppVariantAttributes.currentStatus = this._calculateCurrentStatus(oAppVariantInfo.appId, oAppVariantInfo.appVarStatus);
|
|
185
|
+
oAppVariantAttributes.currentStatus = this._calculateCurrentStatus(oAppVariantInfo.appId, oAppVariantInfo.appVarStatus, oI18n);
|
|
193
186
|
|
|
194
187
|
const bIsS4HanaCloud = FlexRuntimeInfoAPI.isAtoEnabled();
|
|
195
188
|
// Populate the app variant attributes with the cloud system information
|
|
@@ -216,7 +209,7 @@ sap.ui.define([
|
|
|
216
209
|
return Promise.resolve(oAppVariantAttributes);
|
|
217
210
|
};
|
|
218
211
|
|
|
219
|
-
Utils.getAppVariantOverview = function(sReferenceAppId, bKeyUser) {
|
|
212
|
+
Utils.getAppVariantOverview = function(sReferenceAppId, bKeyUser, oI18n) {
|
|
220
213
|
// Customer* means the layer can be either CUSTOMER or CUSTOMER_BASE. This layer determination takes place in backend.
|
|
221
214
|
const sLayer = bKeyUser ? "CUSTOMER*" : "VENDOR";
|
|
222
215
|
|
|
@@ -238,7 +231,7 @@ sap.ui.define([
|
|
|
238
231
|
|
|
239
232
|
aAppVariantInfo.forEach(function(oAppVariantInfo) {
|
|
240
233
|
if (!oAppVariantInfo.isDescriptorVariant) {
|
|
241
|
-
aAppVariantOverviewInfo.push(this.getAppVariantOverviewAttributes(oAppVariantInfo, bKeyUser));
|
|
234
|
+
aAppVariantOverviewInfo.push(this.getAppVariantOverviewAttributes(oAppVariantInfo, bKeyUser, oI18n));
|
|
242
235
|
}
|
|
243
236
|
}, this);
|
|
244
237
|
|