@openui5/sap.ui.rta 1.128.0 → 1.130.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 +2 -2
- 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 +36 -10
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
- package/src/sap/ui/rta/appVariant/Feature.js +2 -2
- package/src/sap/ui/rta/appVariant/Utils.js +3 -3
- package/src/sap/ui/rta/command/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/command/Annotation.js +1 -1
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +10 -8
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +31 -14
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +14 -15
- 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 +8 -5
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- 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 +1 -1
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +6 -4
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +7 -5
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +5 -3
- package/src/sap/ui/rta/enablement/TestDelegate.js +4 -3
- package/src/sap/ui/rta/enablement/elementActionTest.js +9 -6
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +43 -1
- package/src/sap/ui/rta/messagebundle_ar.properties +21 -0
- package/src/sap/ui/rta/messagebundle_bg.properties +21 -0
- package/src/sap/ui/rta/messagebundle_ca.properties +21 -0
- package/src/sap/ui/rta/messagebundle_cnr.properties +22 -1
- package/src/sap/ui/rta/messagebundle_cs.properties +21 -0
- package/src/sap/ui/rta/messagebundle_cy.properties +21 -0
- package/src/sap/ui/rta/messagebundle_da.properties +22 -1
- package/src/sap/ui/rta/messagebundle_de.properties +21 -0
- package/src/sap/ui/rta/messagebundle_el.properties +21 -0
- package/src/sap/ui/rta/messagebundle_en.properties +21 -0
- package/src/sap/ui/rta/messagebundle_en_GB.properties +21 -0
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +14 -2
- package/src/sap/ui/rta/messagebundle_es.properties +21 -0
- package/src/sap/ui/rta/messagebundle_es_MX.properties +21 -0
- package/src/sap/ui/rta/messagebundle_et.properties +21 -0
- package/src/sap/ui/rta/messagebundle_fi.properties +21 -0
- package/src/sap/ui/rta/messagebundle_fr.properties +21 -0
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +22 -1
- package/src/sap/ui/rta/messagebundle_hi.properties +21 -0
- package/src/sap/ui/rta/messagebundle_hr.properties +21 -0
- package/src/sap/ui/rta/messagebundle_hu.properties +21 -0
- package/src/sap/ui/rta/messagebundle_id.properties +22 -1
- package/src/sap/ui/rta/messagebundle_it.properties +21 -0
- package/src/sap/ui/rta/messagebundle_iw.properties +21 -0
- package/src/sap/ui/rta/messagebundle_ja.properties +21 -0
- package/src/sap/ui/rta/messagebundle_kk.properties +21 -0
- package/src/sap/ui/rta/messagebundle_ko.properties +21 -0
- package/src/sap/ui/rta/messagebundle_lt.properties +21 -0
- package/src/sap/ui/rta/messagebundle_lv.properties +21 -0
- package/src/sap/ui/rta/messagebundle_mk.properties +23 -2
- package/src/sap/ui/rta/messagebundle_ms.properties +21 -0
- package/src/sap/ui/rta/messagebundle_nl.properties +21 -0
- package/src/sap/ui/rta/messagebundle_no.properties +21 -0
- package/src/sap/ui/rta/messagebundle_pl.properties +21 -0
- package/src/sap/ui/rta/messagebundle_pt.properties +21 -0
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +21 -0
- package/src/sap/ui/rta/messagebundle_ro.properties +22 -1
- package/src/sap/ui/rta/messagebundle_ru.properties +21 -0
- package/src/sap/ui/rta/messagebundle_sh.properties +22 -1
- package/src/sap/ui/rta/messagebundle_sk.properties +21 -0
- package/src/sap/ui/rta/messagebundle_sl.properties +21 -0
- package/src/sap/ui/rta/messagebundle_sr.properties +22 -1
- package/src/sap/ui/rta/messagebundle_sv.properties +21 -0
- package/src/sap/ui/rta/messagebundle_th.properties +21 -0
- package/src/sap/ui/rta/messagebundle_tr.properties +21 -0
- package/src/sap/ui/rta/messagebundle_uk.properties +22 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +22 -1
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +21 -0
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +21 -0
- 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 +1 -1
- package/src/sap/ui/rta/plugin/ControlVariant.js +21 -20
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- 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/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +2 -3
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +1 -1
- package/src/sap/ui/rta/plugin/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
- package/src/sap/ui/rta/plugin/Resize.js +1 -1
- 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 +1 -1
- 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.fragment.xml +0 -1
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +70 -69
- 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 +9 -7
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +4 -3
- package/src/sap/ui/rta/service/Action.js +4 -3
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +5 -9
- package/src/sap/ui/rta/service/Property.js +10 -11
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/service/SupportTools.js +104 -45
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +2 -16
- package/src/sap/ui/rta/themes/base/WhatsNew.less +7 -0
- package/src/sap/ui/rta/themes/base/library.source.less +2 -1
- package/src/sap/ui/rta/themes/sap_hcb/ChangeVisualization.less +0 -1
- package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +8 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +8 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +9 -2
- 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/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +20 -18
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +3 -3
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +2 -2
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ReloadManager.js +25 -2
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -8
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +10 -10
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +11 -13
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +59 -25
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +111 -0
- package/src/sap/ui/rta/util/whatsNew/WhatsNewDialog.fragment.xml +81 -0
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +82 -0
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +75 -0
- package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +73 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +138 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/AdvancedSettingsImage.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/FullIframe.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/MiniMenu.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/WhatsNewOverview.png +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns:core="sap.ui.core"
|
|
3
|
+
xmlns="sap.m"
|
|
4
|
+
xmlns:grid="sap.ui.layout.cssgrid"
|
|
5
|
+
xmlns:f="sap.f"
|
|
6
|
+
xmlns:util="sap.ui.fl.util">
|
|
7
|
+
<Dialog
|
|
8
|
+
id="sapUiRtaWhatsNewOverviewDialog"
|
|
9
|
+
title="What's New in Key User Adaptation"
|
|
10
|
+
contentWidth="50rem"
|
|
11
|
+
contentHeight="33rem"
|
|
12
|
+
horizontalScrolling="false">
|
|
13
|
+
<List id="whatsNewOverview" items="{path: 'whatsNewModel>/featureCollection'}" visible="{whatsNewModel>overviewActive}">
|
|
14
|
+
<StandardListItem description="{whatsNewModel>description}" title="{whatsNewModel>title}" press=".onSelectListItem" type="Active"/>
|
|
15
|
+
</List>
|
|
16
|
+
<VBox id="whatsNewItemPage" visible="{= ${whatsNewModel>overviewActive} === false}">
|
|
17
|
+
<VBox height="100%" width="100%" >
|
|
18
|
+
<Title text="{whatsNewModel>title}" class="sapUiMediumMarginTop sapUiLargeMarginBegin sapUiTinyMarginBottom" level="H3"/>
|
|
19
|
+
<VBox class="sapUiSmallMargin sapUiLargeMarginBegin sapUiLargeMarginEnd" >
|
|
20
|
+
<VBox height="100%" width="100%" items="{whatsNewModel>information}">
|
|
21
|
+
<HBox alignItems="Center" class=" sapUiSmallMarginBottom ">
|
|
22
|
+
<FormattedText
|
|
23
|
+
visible="{= (${whatsNewModel>image} === null ? true : false) && (${whatsNewModel>text} !== null ? true : false)}"
|
|
24
|
+
htmlText="{whatsNewModel>text}"
|
|
25
|
+
class="sapUiMediumMarginEnd"/>
|
|
26
|
+
<Image
|
|
27
|
+
src= "{whatsNewModel>image}"
|
|
28
|
+
visible="{= (${whatsNewModel>image} !== null ? true : false) && (${whatsNewModel>text} === null ? true : false)}"
|
|
29
|
+
class=" sapUiMediumMarginEnd whatsNewImage"
|
|
30
|
+
width="100%"
|
|
31
|
+
/>
|
|
32
|
+
<grid:CSSGrid
|
|
33
|
+
visible="{= (${whatsNewModel>image} !== null ? true : false) && (${whatsNewModel>text} !== null ? true : false)}"
|
|
34
|
+
gridTemplateColumns="2fr 3fr"
|
|
35
|
+
gridGap="1rem">
|
|
36
|
+
<Image
|
|
37
|
+
src= "{whatsNewModel>image}"
|
|
38
|
+
decorative="true"
|
|
39
|
+
densityAware="false"
|
|
40
|
+
class=" sapUiMediumMarginEnd whatsNewImage"
|
|
41
|
+
width="100%"
|
|
42
|
+
/>
|
|
43
|
+
<HBox alignItems="Center">
|
|
44
|
+
<FormattedText htmlText="{whatsNewModel>text}"/>
|
|
45
|
+
</HBox>
|
|
46
|
+
</grid:CSSGrid>
|
|
47
|
+
</HBox>
|
|
48
|
+
</VBox>
|
|
49
|
+
</VBox>
|
|
50
|
+
</VBox>
|
|
51
|
+
</VBox>
|
|
52
|
+
<footer>
|
|
53
|
+
<Toolbar>
|
|
54
|
+
<content>
|
|
55
|
+
<ToolbarSpacer />
|
|
56
|
+
<Button
|
|
57
|
+
id="sapUiRtaWhatsNewOverviewDialog_LearnMore"
|
|
58
|
+
visible="{= ${whatsNewModel>overviewActive} === false}"
|
|
59
|
+
text="{i18n>BTN_LEARN_MORE_WHATS_NEW_DIALOG}"
|
|
60
|
+
press=".onLearnMorePress"/>
|
|
61
|
+
<Button
|
|
62
|
+
id="sapUiRtaWhatsNewOverviewDialog_ButtonClose"
|
|
63
|
+
visible="{whatsNewModel>overviewActive}"
|
|
64
|
+
text="{i18n>BTN_CLOSE_FEEDBACK_DIALOG}"
|
|
65
|
+
press=".closeWhatsNewOverviewDialog"/>
|
|
66
|
+
<Button
|
|
67
|
+
id="sapUiRtaWhatsNewOverviewDialog_ButtonBack"
|
|
68
|
+
visible="{= ${whatsNewModel>overviewActive} === false}"
|
|
69
|
+
text="{i18n>BTN_BACK_WHATS_NEW_OVERVIEW_DIALOG}"
|
|
70
|
+
press=".backToOverview"/>
|
|
71
|
+
</content>
|
|
72
|
+
</Toolbar>
|
|
73
|
+
</footer>
|
|
74
|
+
</Dialog>
|
|
75
|
+
</core:FragmentDefinition>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/fl/registry/Settings",
|
|
9
|
+
"sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures"
|
|
10
|
+
], function(
|
|
11
|
+
Settings,
|
|
12
|
+
WhatsNewFeatures
|
|
13
|
+
) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
function filterDontShowAgainFeatures(aFeatures, aDontShowAgainFeatureIds) {
|
|
17
|
+
return aFeatures.filter((oFeature) => {
|
|
18
|
+
return !aDontShowAgainFeatureIds?.includes(oFeature.featureId);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async function filterApplicableFeatures(aFeatures, sLayer) {
|
|
23
|
+
const aAreFeaturesApplicable = await Promise.all(
|
|
24
|
+
aFeatures.map((oFeature) => {
|
|
25
|
+
if (typeof oFeature.isFeatureApplicable === "function") {
|
|
26
|
+
return oFeature.isFeatureApplicable(sLayer);
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
})
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
const aFilteredFeatures = aFeatures.filter((oFeature, iIndex) => {
|
|
33
|
+
return aAreFeaturesApplicable[iIndex];
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
return aFilteredFeatures;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const WhatsNewUtils = {
|
|
40
|
+
/**
|
|
41
|
+
* Get the URL for the feature documentation
|
|
42
|
+
* @param {string} sPath - The path of the feature, including the index
|
|
43
|
+
* @param {Array} aFeatureCollection - Feature collection
|
|
44
|
+
* @returns {string} URL for the feature documentation
|
|
45
|
+
*/
|
|
46
|
+
getLearnMoreURL(sPath, aFeatureCollection) {
|
|
47
|
+
const sFeaturePageIndex = sPath.slice(-1);
|
|
48
|
+
const oSettings = Settings.getInstanceOrUndef();
|
|
49
|
+
if (oSettings?.isAtoEnabled() && oSettings?.getSystem()) {
|
|
50
|
+
return aFeatureCollection[sFeaturePageIndex].documentationUrls.s4HanaCloudUrl;
|
|
51
|
+
}
|
|
52
|
+
if (!oSettings?.isAtoEnabled() && oSettings?.getSystem()) {
|
|
53
|
+
return aFeatureCollection[sFeaturePageIndex].documentationUrls.s4HanaOnPremUrl;
|
|
54
|
+
}
|
|
55
|
+
return aFeatureCollection[sFeaturePageIndex].documentationUrls.btpUrl;
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Filters the new features based on the dontShowAgain feature IDs and the Flex settings
|
|
60
|
+
* @param {string[]} aDontShowAgainFeatureIds - Array of feature IDs that should be excluded
|
|
61
|
+
* from the What's New dialog
|
|
62
|
+
* @param {string} sLayer - Layer for which the features should be filtered
|
|
63
|
+
* @returns {object[]} Filtered What's New features
|
|
64
|
+
*/
|
|
65
|
+
getFilteredFeatures(aDontShowAgainFeatureIds, sLayer) {
|
|
66
|
+
const aAllFeatures = WhatsNewFeatures.getAllFeatures();
|
|
67
|
+
const aNewFeatures = filterDontShowAgainFeatures(aAllFeatures, aDontShowAgainFeatureIds);
|
|
68
|
+
return filterApplicableFeatures(aNewFeatures, sLayer);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
return WhatsNewUtils;
|
|
73
|
+
});
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Lib"
|
|
9
|
+
], function(
|
|
10
|
+
Lib
|
|
11
|
+
) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
const WhatsNewFeatures = {};
|
|
15
|
+
|
|
16
|
+
const oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
17
|
+
|
|
18
|
+
function getImagePath(sFileName) {
|
|
19
|
+
const _sAppModulePath = "sap/ui/rta/util/";
|
|
20
|
+
return `${sap.ui.require.toUrl(_sAppModulePath)}whatsNew/whatsNewContent/whatsNewImages/${sFileName}`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Callback filter function to determine if the feature should be displayed in the dialog
|
|
25
|
+
* @typedef {function} sap.ui.rta.util.whatsNew.whatsNewContent.WhatsNewFeatures.isFeatureApplicable
|
|
26
|
+
* @param {sap.ui.fl.registry.Settings} oFlexSettings - Flex settings
|
|
27
|
+
* @returns {boolean} <code>false</code> if the feature shouldn't be displayed in the dialog
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The `aWhatsNewFeaturesContent` array defines the features that will be displayed inside the "What's New" dialog.
|
|
32
|
+
* To add a new feature, add a new object to this array. Each feature object should have the following structure:
|
|
33
|
+
*
|
|
34
|
+
* {
|
|
35
|
+
* featureId: <Unique identifier for the feature, saved in the backend>,
|
|
36
|
+
* title: <Title of the new feature>,
|
|
37
|
+
* description: <Description of the new feature>,
|
|
38
|
+
* documentationUrls: {
|
|
39
|
+
* btpUrl: <Url to the btp documentation of the feature>
|
|
40
|
+
* s4HanaCloudUrl: <Url to the s4HanaCloud documentation of the feature>
|
|
41
|
+
* s4HanaOnPremUrl: <Url to the ABAP on-Premise documentation of the feature>
|
|
42
|
+
* }
|
|
43
|
+
* information: [
|
|
44
|
+
* to display content inside the dialog there are three options:
|
|
45
|
+
* option 1: text and image to the left
|
|
46
|
+
* {
|
|
47
|
+
* text: <Text description of the feature>,
|
|
48
|
+
* image: <URL or path to an image representing the feature>
|
|
49
|
+
* }
|
|
50
|
+
* option 2: text only
|
|
51
|
+
* {
|
|
52
|
+
* text: <Text description of the feature>,
|
|
53
|
+
* image: null (the null is mandatory for spacing to work properly)
|
|
54
|
+
* }
|
|
55
|
+
* option 3: image only
|
|
56
|
+
* {
|
|
57
|
+
* text: null (the null is mandatory for spacing to work properly),
|
|
58
|
+
* image: <URL or path to an image representing the feature>
|
|
59
|
+
* }]
|
|
60
|
+
* isFeatureApplicable: <Filter function that returns a boolean value to determine
|
|
61
|
+
* if the feature should be displayed in the dialog> (optional)
|
|
62
|
+
* <code>{@link sap.ui.rta.util.whatsNew.whatsNewContent.WhatsNewFeatures.isFeatureApplicable isFeatureApplicable}</code>
|
|
63
|
+
* }
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
const aWhatsNewFeaturesContent =
|
|
67
|
+
[
|
|
68
|
+
{
|
|
69
|
+
featureId: "WhatsNewFeature",
|
|
70
|
+
title: oTextResources.getText("TIT_WHATS_NEW_DIALOG_WHATS_NEW_FEATURE_TITLE"),
|
|
71
|
+
description: oTextResources.getText("TXT_WHATS_NEW_DIALOG_WHATS_NEW_FEATURE_DESCRIPTION"),
|
|
72
|
+
documentationUrls: {
|
|
73
|
+
btpUrl: "https://help.sap.com/docs/ui5-flexibility-for-key-users/ui5-flexibility-for-key-users/adapting-ui",
|
|
74
|
+
s4HanaCloudUrl: "https://help.sap.com/docs/SAP_S4HANA_CLOUD/4fc8d03390c342da8a60f8ee387bca1a/d868950a1e8c4b0f9b9453176939a19b.html",
|
|
75
|
+
s4HanaOnPremUrl: "https://help.sap.com/docs/ABAP_PLATFORM_NEW/a7b390faab1140c087b8926571e942b7/d868950a1e8c4b0f9b9453176939a19b.html"
|
|
76
|
+
},
|
|
77
|
+
information: [
|
|
78
|
+
{
|
|
79
|
+
text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_WHATS_NEW_FEATURE_TEXT"),
|
|
80
|
+
image: null
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_WHATS_NEW_OVERVIEW_TEXT"),
|
|
84
|
+
image: getImagePath("WhatsNewOverview.png")
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
featureId: "IFrameSandboxProperties",
|
|
90
|
+
description: oTextResources.getText("TXT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_DESCRIPTION"),
|
|
91
|
+
documentationUrls: {
|
|
92
|
+
btpUrl: "https://help.sap.com/docs/ui5-flexibility-for-key-users/ui5-flexibility-for-key-users/embedding-content",
|
|
93
|
+
s4HanaCloudUrl: "https://help.sap.com/docs/SAP_S4HANA_CLOUD/4fc8d03390c342da8a60f8ee387bca1a/8db25610e91342919fcf63d4e5868ae9.html",
|
|
94
|
+
s4HanaOnPremUrl: "https://help.sap.com/docs/ABAP_PLATFORM_NEW/a7b390faab1140c087b8926571e942b7/8db25610e91342919fcf63d4e5868ae9.html"
|
|
95
|
+
},
|
|
96
|
+
title: oTextResources.getText("TIT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_TITLE"),
|
|
97
|
+
information: [
|
|
98
|
+
{
|
|
99
|
+
text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_TEXT"),
|
|
100
|
+
image: null
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_TEXT_2"),
|
|
104
|
+
image: getImagePath("FullIframe.png")
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_IFRAME_SANDBOX_TEXT_3"),
|
|
108
|
+
image: getImagePath("AdvancedSettingsImage.png")
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
featureId: "MinimenuRemoval",
|
|
114
|
+
title: oTextResources.getText("TIT_WHATS_NEW_DIALOG_MINIMENU_REMOVAL_TITLE"),
|
|
115
|
+
description: oTextResources.getText("TXT_WHATS_NEW_DIALOG_MINIMENU_REMOVAL_DESCRIPTION"),
|
|
116
|
+
documentationUrls: {
|
|
117
|
+
btpUrl: "https://help.sap.com/docs/ui5-flexibility-for-key-users/ui5-flexibility-for-key-users/adapting-ui",
|
|
118
|
+
s4HanaCloudUrl: "https://help.sap.com/docs/SAP_S4HANA_CLOUD/4fc8d03390c342da8a60f8ee387bca1a/d868950a1e8c4b0f9b9453176939a19b.html",
|
|
119
|
+
s4HanaOnPremUrl: "https://help.sap.com/docs/ABAP_PLATFORM_NEW/a7b390faab1140c087b8926571e942b7/d868950a1e8c4b0f9b9453176939a19b.html"
|
|
120
|
+
},
|
|
121
|
+
information: [
|
|
122
|
+
{
|
|
123
|
+
text: oTextResources.getText("TXT_WHATS_NEW_DIALOG_MINIMENU_REMOVAL_TEXT"),
|
|
124
|
+
image: getImagePath("MiniMenu.png")
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
];
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @returns {object[]} All What's New features
|
|
132
|
+
*/
|
|
133
|
+
WhatsNewFeatures.getAllFeatures = function() {
|
|
134
|
+
return aWhatsNewFeaturesContent;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
return WhatsNewFeatures;
|
|
138
|
+
});
|
|
Binary file
|
|
Binary file
|