@sapui5/sap.suite.ui.generic.template 1.122.1 → 1.123.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/package.json +1 -1
- package/src/sap/suite/ui/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +19 -24
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +22 -21
- package/src/sap/suite/ui/generic/template/ListReport/controller/MultipleViewsHandler.js +8 -3
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/MultiEditDialog.fragment.xml +12 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +25 -151
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/PasteHandler.js +357 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +8 -8
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +12 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +17 -9
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +8 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +1 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +12 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/ExtensionFacetLayout.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +2 -0
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/view/QuickCreate.controller.js +2 -7
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/ObjectPage.designtime.js +3 -0
- package/src/sap/suite/ui/generic/template/fragments/CreateWithDialog.fragment.xml +12 -1
- package/src/sap/suite/ui/generic/template/fragments/SmartControlContextMenu.fragment.xml +7 -1
- package/src/sap/suite/ui/generic/template/fragments/SmartTableResponsiveTableCommons.fragment.xml +0 -2
- package/src/sap/suite/ui/generic/template/fragments/SmartTableUiTableCommons.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +47 -28
- package/src/sap/suite/ui/generic/template/genericUtilities/metadataAnalyser.js +20 -0
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +32 -25
- package/src/sap/suite/ui/generic/template/lib/AdaptiveCardHelper.js +27 -13
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +21 -5
- package/src/sap/suite/ui/generic/template/lib/Application.js +4 -1
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +5 -5
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +0 -1
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +257 -60
- package/src/sap/suite/ui/generic/template/lib/MessageUtils.js +28 -0
- package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +0 -1
- package/src/sap/suite/ui/generic/template/lib/ShareUtils.js +197 -67
- package/src/sap/suite/ui/generic/template/lib/StableIdDefinition.js +3 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +5 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +14 -14
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsFECardProvider.js +10 -3
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsHandler.js +2 -1
- package/src/sap/suite/ui/generic/template/lib/multipleViews/MultipleTablesModeHelper.js +4 -3
- package/src/sap/suite/ui/generic/template/lib/multipleViews/MultipleViewsHandler.js +6 -14
- package/src/sap/suite/ui/generic/template/lib/multipleViews/SingleTableModeHelper.js +13 -5
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +46 -2
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/MultipleViewsHandler.js +8 -3
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
titleUppercase="false">
|
|
10
10
|
<uxap:subSections>
|
|
11
11
|
<template:repeat list="{section>subSections}" var="subSection">
|
|
12
|
-
<uxap:ObjectPageSubSection id="{subSection>id}" title="
|
|
12
|
+
<uxap:ObjectPageSubSection id="{subSection>id}" title="{parts: [{path: 'section>extensionPointName'}, {path: 'manifestViewExtensions>'}, {path: 'section>annotations/Facet/annotation/Label'}], formatter: 'AH.getExtensionPointFacetTitle'}"
|
|
13
|
+
class="sapSmartTemplatesObjectPageSubSection" titleLevel="H4">
|
|
13
14
|
<core:ExtensionPoint name="{section>extensionPointName}"/>
|
|
14
15
|
</uxap:ObjectPageSubSection>
|
|
15
16
|
</template:repeat>
|
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
editable="{ui>/editable}"
|
|
46
46
|
showPasteButton = "{objectPageTableSettings>value/vShowPasteButton}"
|
|
47
47
|
placeToolbarInTable="{= ${objectPageTableSettings>value/type} === 'ResponsiveTable' && ${device>/system/desktop}}"
|
|
48
|
+
beforePaste="._templateEventHandlers.onBeforePaste('{smartControlId>id}', $event)"
|
|
49
|
+
paste="._templateEventHandlers.onPaste('{smartControlId>id}', $event)"
|
|
48
50
|
customizeConfig="{parts: [{path: 'entitySet>'}, {path: 'listEntitySet>'}, {path: 'objectPageTableSettings>calculateWidthIncludingColumnHeader'}], formatter: 'AH.buildSmartTableCustomizeConfig'}"
|
|
49
51
|
useInfoToolbar="On">
|
|
50
52
|
<st:dataStateIndicator>
|
|
@@ -194,14 +194,9 @@ sap.ui.define(["../../js/QuickTemplates/QuickActionBaseController", "../../js/Qu
|
|
|
194
194
|
var sEntitySet = this.oComponent.getEntitySet();
|
|
195
195
|
var sValue = oEvent.getSource().getBindingPath("value");
|
|
196
196
|
var oControl = oEvent.getSource();
|
|
197
|
-
var
|
|
198
|
-
if (oControl) {
|
|
199
|
-
oServiceController = this.oComponent.getApplicationController();
|
|
200
|
-
} else {
|
|
201
|
-
oServiceController = this.oComponent.getTransactionController();
|
|
202
|
-
}
|
|
197
|
+
var oApplicationController = this.oComponent.getApplicationController();
|
|
203
198
|
|
|
204
|
-
|
|
199
|
+
oApplicationController.propertyChanged(sEntitySet, sValue, oBinding, oControl).then(
|
|
205
200
|
function(){
|
|
206
201
|
if (resolve) {
|
|
207
202
|
resolve();
|
|
@@ -144,6 +144,9 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
+
"sap.uxap.ObjectPageHeaderActionButton": {
|
|
148
|
+
actions: ["remove", "reveal"]
|
|
149
|
+
},
|
|
147
150
|
"sap.uxap.AnchorBar": {
|
|
148
151
|
aggregations: {
|
|
149
152
|
content: {
|
|
@@ -9,11 +9,22 @@
|
|
|
9
9
|
<smartForm:layout>
|
|
10
10
|
<smartForm:ColumnLayout/>
|
|
11
11
|
</smartForm:layout>
|
|
12
|
+
<smartForm:customData>
|
|
13
|
+
<!-- Maintain the same default settings as the ObjectPage SmartForm -->
|
|
14
|
+
<core:CustomData key="defaultInputFieldDisplayBehaviour" value="descriptionAndId" />
|
|
15
|
+
<core:CustomData key="defaultDropDownDisplayBehaviour" value="descriptionOnly" />
|
|
16
|
+
<core:CustomData key="defaultTextInEditModeSource" value="ValueListNoValidation" />
|
|
17
|
+
<core:CustomData key="dateFormatSettings" value='\{"UTC":true,"style":"medium"\}' />
|
|
18
|
+
</smartForm:customData>
|
|
12
19
|
<smartForm:Group>
|
|
13
20
|
<template:repeat list="{createWithParameterDialog>fields}" var="values">
|
|
14
21
|
<smartForm:GroupElement>
|
|
15
22
|
<smartField:SmartField value="{path: 'values>', formatter: 'AH.formatSmartField'}"
|
|
16
|
-
|
|
23
|
+
clientSideMandatoryCheck="true">
|
|
24
|
+
<smartField:customData>
|
|
25
|
+
<core:CustomData key="defaultTextInEditModeSource" value="{path: 'values>', formatter: 'AH.setValidationForValueList'}" />
|
|
26
|
+
</smartField:customData>
|
|
27
|
+
</smartField:SmartField>
|
|
17
28
|
</smartForm:GroupElement>
|
|
18
29
|
</template:repeat>
|
|
19
30
|
</smartForm:Group>
|
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
<template:with path="parameter>/" helper="sap.suite.ui.generic.template.js.StableIdHelper.preparePathForStableId" var="contextMenuId">
|
|
5
5
|
<template:if test="{= ${contextMenuId>}.buildStableId({type: 'SmartControl', subType: 'ContextMenu', sSmartTableId: ${smartControlId>id}})}" />
|
|
6
6
|
<Menu id="{contextMenuId>id}" items="{= '{_templPriv>/generic/controlProperties/' + ${smartControlId>id} + '/contextMenu/items}' }">
|
|
7
|
-
<MenuItem text="{_templPriv>text}" enabled="{_templPriv>enabled}" icon="{_templPriv>icon}" key="{_templPriv>key}"
|
|
7
|
+
<MenuItem text="{_templPriv>text}" enabled="{_templPriv>enabled}" icon="{_templPriv>icon}" key="{_templPriv>key}"
|
|
8
|
+
startsSection="{_templPriv>startsSection}" press="._templateEventHandlers.onContextMenu($event, '{smartControlId>id}')" items="{_templPriv>children}">
|
|
9
|
+
<items>
|
|
10
|
+
<MenuItem text="{_templPriv>text}" enabled="{_templPriv>enabled}" icon="{_templPriv>icon}" key="{_templPriv>key}" startsSection="{_templPriv>startsSection}"
|
|
11
|
+
press="._templateEventHandlers.onContextMenu($event, '{smartControlId>id}')"/>
|
|
12
|
+
</items>
|
|
13
|
+
</MenuItem>
|
|
8
14
|
</Menu>
|
|
9
15
|
</template:with>
|
|
10
16
|
</core:FragmentDefinition>
|
package/src/sap/suite/ui/generic/template/fragments/SmartTableResponsiveTableCommons.fragment.xml
CHANGED
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.TableColumns" type="XML" />
|
|
4
4
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.TableColumnListItem" type="XML" />
|
|
5
|
-
<!--
|
|
6
5
|
<contextMenu>
|
|
7
6
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.SmartControlContextMenu" type="XML"/>
|
|
8
7
|
</contextMenu>
|
|
9
8
|
<dependents>
|
|
10
9
|
<plugins.ContextMenuSetting scope="Selection"/>
|
|
11
10
|
</dependents>
|
|
12
|
-
-->
|
|
13
11
|
</core:FragmentDefinition>
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
enableNotification="true"
|
|
8
8
|
selectionChange="._templateEventHandlers.onMultiSelectionChange"
|
|
9
9
|
selectionMode="{tableSettings>mode}" />
|
|
10
|
-
|
|
10
|
+
<plugins.ContextMenuSetting scope="Selection"/>
|
|
11
11
|
</table:dependents>
|
|
12
12
|
<table:rowSettingsTemplate>
|
|
13
13
|
<table:RowSettings
|
|
14
14
|
highlight="{= ${parameter>/templateSpecific/rowHighligths} || ${parts: [{path: 'entityType>'}, {path: 'parameter>/treeNode'}, {path: 'entitySet>name'}, {path: 'parameter>/checkIsDraftEnabled'}], formatter: 'AH.setRowHighlight'} }"
|
|
15
15
|
navigated="{parts: [{path: '_templPriv>/generic/currentActiveChildContext'}, {path: ''}], formatter: 'sap.suite.ui.generic.template.js.RuntimeFormatters.setRowNavigated'}" />
|
|
16
16
|
</table:rowSettingsTemplate>
|
|
17
|
-
|
|
17
|
+
<table:contextMenu>
|
|
18
18
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.SmartControlContextMenu" type="XML"/>
|
|
19
|
-
</table:contextMenu>
|
|
19
|
+
</table:contextMenu>
|
|
20
20
|
</core:FragmentDefinition>
|
|
@@ -3,8 +3,10 @@ sap.ui.define([
|
|
|
3
3
|
"sap/ui/core/format/DateFormat",
|
|
4
4
|
"sap/base/security/encodeURL",
|
|
5
5
|
"sap/m/DynamicDateUtil",
|
|
6
|
-
"sap/
|
|
7
|
-
|
|
6
|
+
"sap/suite/ui/generic/template/genericUtilities/metadataAnalyser",
|
|
7
|
+
"sap/base/i18n/date/CalendarType",
|
|
8
|
+
"sap/suite/ui/generic/template/genericUtilities/testableHelper"
|
|
9
|
+
], function (FilterOperator, DateFormat, encodeURL, DynamicDateUtil, metadataAnalyser, CalendarType, testableHelper) {
|
|
8
10
|
"use strict";
|
|
9
11
|
|
|
10
12
|
function getInfoForFilters(aFilters, getFilterInfoForPropertyFilters, bAnd){
|
|
@@ -95,7 +97,7 @@ sap.ui.define([
|
|
|
95
97
|
* Formats a JavaScript value according to the given
|
|
96
98
|
* <a href="http://www.odata.org/documentation/odata-version-2-0/overview#AbstractTypeSystem">
|
|
97
99
|
* EDM type</a>.
|
|
98
|
-
*
|
|
100
|
+
* We are temperary using the method from UI5 model.
|
|
99
101
|
* @param {any} vValue The value to format
|
|
100
102
|
* @param {string} sType The EDM type (e.g. Edm.Decimal)
|
|
101
103
|
* @param {boolean} bCaseSensitive Whether strings gets compared case sensitive or not
|
|
@@ -105,9 +107,7 @@ sap.ui.define([
|
|
|
105
107
|
function formatValue(vValue, sType, bCaseSensitive) {
|
|
106
108
|
var oDate, sValue;
|
|
107
109
|
|
|
108
|
-
|
|
109
|
-
bCaseSensitive = true;
|
|
110
|
-
}
|
|
110
|
+
bCaseSensitive = bCaseSensitive === undefined || bCaseSensitive;
|
|
111
111
|
|
|
112
112
|
// null values should return the null literal
|
|
113
113
|
if (vValue === null || vValue === undefined) {
|
|
@@ -180,25 +180,39 @@ sap.ui.define([
|
|
|
180
180
|
}
|
|
181
181
|
return sValue;
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Callback function used to concatenate basic or complex filters for each filter value
|
|
186
|
+
* @param {object} oParams - It contains information like (Model/EntityType/FilterData/bIsStatic),
|
|
187
|
+
* Here bIsStatic is subject to change from false to true whenever application uses custom sematic date
|
|
188
|
+
* @param {String} sProperty - property name of the filter field from SFB
|
|
189
|
+
* @param {Array} aFiltersForProperty - filter operator of field from SFB
|
|
190
|
+
* @param {String} sLogicalOperator - logical operator (and/or) betweem each filter item.
|
|
191
|
+
* @returns {string} - return combination of filters as a string.
|
|
192
|
+
*/
|
|
193
|
+
function getFilterInfoForPropertyFilters(oParams, sProperty, aFiltersForProperty, sLogicalOperator) {
|
|
194
|
+
var oValue1, oValue2, sOperator, oProperty = metadataAnalyser.getPropertyMetadata(oParams.oMetaModel, oParams.sEntityTypeName, sProperty);
|
|
195
|
+
// for navigation properties
|
|
196
|
+
sProperty = sProperty.replaceAll("/", ".");
|
|
197
|
+
// If Custom filter is implemented date field for smart filter bar then we make static tile
|
|
198
|
+
if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && !oParams.oFilterData[sProperty]) {
|
|
199
|
+
oParams.bIsStatic = true;
|
|
200
|
+
return {
|
|
201
|
+
stringRep: "",
|
|
202
|
+
logicalOperator: sLogicalOperator
|
|
203
|
+
};
|
|
204
|
+
}
|
|
187
205
|
var sRet = aFiltersForProperty.map(function (oFilter) {
|
|
188
206
|
var bCaseSensitive = true;
|
|
189
207
|
if (oFilter.bCaseSensitive === undefined) {
|
|
190
208
|
bCaseSensitive = true;
|
|
191
209
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
if (oProperty && (oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oFilterData[sNavProperty || sProperty].conditionTypeInfo && oFilterData[sNavProperty || sProperty].conditionTypeInfo.data.operation !== "DATE") {
|
|
198
|
-
if (!DynamicDateUtil.getAllOptionKeys().includes(oFilterData[sNavProperty || sProperty].conditionTypeInfo.data.operation)) {
|
|
199
|
-
bIsStatic = true;
|
|
210
|
+
if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oParams.oFilterData[sProperty].conditionTypeInfo && oParams.oFilterData[sProperty].conditionTypeInfo.data.operation !== "DATE") {
|
|
211
|
+
if (!DynamicDateUtil.getAllOptionKeys().includes(oParams.oFilterData[sProperty].conditionTypeInfo.data.operation)) {
|
|
212
|
+
oParams.bIsStatic = true;
|
|
213
|
+
return;
|
|
200
214
|
}
|
|
201
|
-
var oValue = getSematicDateFormat(oFilterData[
|
|
215
|
+
var oValue = getSematicDateFormat(oParams.oFilterData[sProperty], oProperty.type);
|
|
202
216
|
oValue1 = oValue.oValue1;
|
|
203
217
|
oValue2 = oValue.oValue2;
|
|
204
218
|
sOperator = oValue.operator;
|
|
@@ -237,6 +251,8 @@ sap.ui.define([
|
|
|
237
251
|
return "endswith(" + sProperty + "," + oValue1 + ")";
|
|
238
252
|
case "NotEndsWith":
|
|
239
253
|
return "not%20endswith(" + sProperty + "," + oValue1 + ")";
|
|
254
|
+
default:
|
|
255
|
+
return "";
|
|
240
256
|
}
|
|
241
257
|
}).join("%20" + sLogicalOperator + "%20");
|
|
242
258
|
return {
|
|
@@ -247,22 +263,25 @@ sap.ui.define([
|
|
|
247
263
|
|
|
248
264
|
/**
|
|
249
265
|
* Function returns filter params for service url
|
|
250
|
-
* @param {object}
|
|
266
|
+
* @param {object} sEntityTypeName
|
|
251
267
|
* @param {Array} aApplicationFilters - Smartfilterbar filters operators
|
|
252
268
|
* @param {Object} oFilterData - smartfilterbar filter object with values
|
|
253
269
|
* @returns {string} return filter param of service url
|
|
254
270
|
*/
|
|
255
|
-
function getFilterParams(
|
|
256
|
-
var
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
bIsStatic:
|
|
271
|
+
function getFilterParams(oMetaModel, sEntityTypeName, aApplicationFilters, oFilterData) {
|
|
272
|
+
var oParams = {
|
|
273
|
+
oMetaModel: oMetaModel,
|
|
274
|
+
sEntityTypeName: sEntityTypeName,
|
|
275
|
+
oFilterData: oFilterData,
|
|
276
|
+
bIsStatic: false
|
|
261
277
|
};
|
|
278
|
+
// Here oParams.bIsStrict will change if SFB have custom semantic-date filter.
|
|
279
|
+
var sFilterParams = "$filter=" + getFilterString(aApplicationFilters, getFilterInfoForPropertyFilters.bind(null, oParams));
|
|
280
|
+
sFilterParams = oParams.bIsStatic ? "" : sFilterParams;
|
|
281
|
+
return sFilterParams;
|
|
262
282
|
}
|
|
263
|
-
|
|
283
|
+
testableHelper.testableStatic(getFilterString, "filterHelper_getFilterString");
|
|
264
284
|
return {
|
|
265
|
-
getFilterString: getFilterString,
|
|
266
285
|
getFilterParams: getFilterParams
|
|
267
286
|
};
|
|
268
287
|
});
|
|
@@ -251,6 +251,26 @@ sap.ui.define([
|
|
|
251
251
|
return null;
|
|
252
252
|
},
|
|
253
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Function return metadata ODataProperty.
|
|
256
|
+
*
|
|
257
|
+
* @param {object} oMetaModel
|
|
258
|
+
* @param {object} oEntityType
|
|
259
|
+
* @param {object} sProperty
|
|
260
|
+
* @returns {object} returns metadata oDataProperty
|
|
261
|
+
*/
|
|
262
|
+
getPropertyMetadata: function (oMetaModel, sEntityTypeName, sProperty) {
|
|
263
|
+
var oEntityType = oMetaModel.getODataEntityType(sEntityTypeName);
|
|
264
|
+
var aPathParts = sProperty.split("/");
|
|
265
|
+
for (var j = 0; j < aPathParts.length - 1; j++) { // go through the parts finding the last entity type;
|
|
266
|
+
var oAssociationEnd = oMetaModel.getODataAssociationEnd(oEntityType, aPathParts[j]);
|
|
267
|
+
oEntityType = oMetaModel.getODataEntityType(oAssociationEnd.type);
|
|
268
|
+
}
|
|
269
|
+
sProperty = aPathParts[aPathParts.length - 1]; // last entry in array is a property
|
|
270
|
+
var oODataProperty = oMetaModel.getODataProperty(oEntityType, sProperty);
|
|
271
|
+
return oODataProperty;
|
|
272
|
+
},
|
|
273
|
+
|
|
254
274
|
hasPropertyInSideEffect: hasPropertyInSideEffect
|
|
255
275
|
};
|
|
256
276
|
|
|
@@ -136,17 +136,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
function isPropertyPathBoolean(oMetaModel, sEntityTypeName, sPropertyPath) {
|
|
139
|
-
var
|
|
140
|
-
var oPathEntityType = oMetaModel.getODataEntityType(sEntityTypeName);
|
|
141
|
-
if (sProperty.indexOf("/") > -1) { // if it's a navigation path, we have to expand to find the right entity type
|
|
142
|
-
var aPathParts = sProperty.split("/");
|
|
143
|
-
for (var j = 0; j < aPathParts.length - 1; j++) { // go through the parts finding the last entity type;
|
|
144
|
-
var oAssociationEnd = oMetaModel.getODataAssociationEnd(oPathEntityType, aPathParts[j]);
|
|
145
|
-
oPathEntityType = oMetaModel.getODataEntityType(oAssociationEnd.type);
|
|
146
|
-
}
|
|
147
|
-
sProperty = aPathParts[aPathParts.length - 1]; // last entry in array is a property
|
|
148
|
-
}
|
|
149
|
-
var oODataProperty = oMetaModel.getODataProperty(oPathEntityType, sProperty);
|
|
139
|
+
var oODataProperty = metadataAnalyser.getPropertyMetadata(oMetaModel, sEntityTypeName, sPropertyPath);
|
|
150
140
|
return (!!oODataProperty && oODataProperty.type === "Edm.Boolean");
|
|
151
141
|
}
|
|
152
142
|
|
|
@@ -957,20 +947,37 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
957
947
|
},
|
|
958
948
|
|
|
959
949
|
getLinkTextForDFwithIBN: function (oInterface, oDataField, oEntitySet, oGroupFacet) {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
950
|
+
var oEntityType;
|
|
951
|
+
var oModel = oInterface.getInterface(0).getModel();
|
|
952
|
+
if (oModel && oEntitySet && oDataField.Value && oDataField.Value.Path) {
|
|
953
|
+
if (oGroupFacet && oGroupFacet.Target && oGroupFacet.Target.AnnotationPath) {
|
|
954
|
+
var oTargetEntitySet = oAnnotationHelper.getTargetEntitySet(oModel, oEntitySet, oGroupFacet.Target.AnnotationPath);
|
|
955
|
+
oEntityType = oModel.getODataEntityType(oTargetEntitySet.entityType);
|
|
956
|
+
} else {
|
|
957
|
+
oEntityType = oModel.getODataEntityType(oEntitySet.entityType);
|
|
958
|
+
}
|
|
959
|
+
var oProperty = oModel.getODataProperty(oEntityType, oDataField.Value.Path) || {};
|
|
960
|
+
if (oProperty['com.sap.vocabularies.Common.v1.Text'] && oProperty['com.sap.vocabularies.Common.v1.Text'].Path) {
|
|
961
|
+
var sTextArragement = oAnnotationHelper.getTextArrangement(oEntityType,oProperty);
|
|
962
|
+
var sColumnValue = "{" + oProperty.name + "}";
|
|
963
|
+
var sColumnKeyDescription = "{" + oProperty['com.sap.vocabularies.Common.v1.Text'].Path + "}";
|
|
964
|
+
if (sTextArragement === "descriptionOnly") {
|
|
965
|
+
sColumnValue = "{= $" + sColumnKeyDescription + " === '' ? '' : $" + sColumnKeyDescription + "}";
|
|
966
|
+
} else if (sTextArragement === "idAndDescription") {
|
|
967
|
+
sColumnValue = "{= $" + sColumnValue + " === '' ? '' : $" + sColumnValue + "}" + "{= $" + sColumnKeyDescription + " === '' ? '' : ' (' + ($" + sColumnKeyDescription + ") + ')'}";
|
|
968
|
+
} else if (sTextArragement === "idOnly") {
|
|
969
|
+
sColumnValue = "{= $" + sColumnValue + " === '' ? '' : $" + sColumnValue + "}";
|
|
970
|
+
} else { // Default case
|
|
971
|
+
sColumnValue = "{= $" + sColumnKeyDescription + " === '' ? '' : $" + sColumnKeyDescription + "}" + "{= $" + sColumnValue + " === '' ? '' : ' (' + ($" + sColumnValue + ") + ')'}";
|
|
972
|
+
}
|
|
973
|
+
return sColumnValue;
|
|
974
|
+
} else {
|
|
975
|
+
var sResultPath = (oProperty["com.sap.vocabularies.Common.v1.Text"] || oDataField.Value).Path || "";
|
|
976
|
+
return "{" + sResultPath + "}";
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
|
|
974
981
|
|
|
975
982
|
getTargetEntitySet: function (oModel, oSourceEntitySet, sAnnotationPath) {
|
|
976
983
|
var aNavigationProperty, sNavigationProperty, oEntityType, oAssociationEnd;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
sap.ui.define([
|
|
2
2
|
"sap/base/Log",
|
|
3
|
-
"sap/base/util/deepClone"
|
|
4
|
-
|
|
3
|
+
"sap/base/util/deepClone",
|
|
4
|
+
"sap/base/i18n/ResourceBundle"
|
|
5
|
+
], function (Log, deepClone, ResourceBundle) {
|
|
5
6
|
'use strict';
|
|
6
7
|
|
|
7
8
|
var oConfig;
|
|
@@ -757,31 +758,44 @@ sap.ui.define([
|
|
|
757
758
|
return !!oParameterValue;
|
|
758
759
|
};
|
|
759
760
|
|
|
760
|
-
var fnGetActionFromAnnotations = function() {
|
|
761
|
+
var fnGetActionFromAnnotations = function () {
|
|
761
762
|
var oController = oConfig.controller;
|
|
763
|
+
var sI18nKeyForLabel;
|
|
762
764
|
aActions = [];
|
|
763
765
|
var oComponent = oConfig.component;
|
|
764
766
|
var sEntitySet = oComponent.getEntitySet();
|
|
765
767
|
var model = oComponent.getModel();
|
|
768
|
+
var oAppi18nModel = oController.getView().getModel("@i18n").getResourceBundle();
|
|
769
|
+
var oi18nModel = oController.getView().getModel("i18n").getResourceBundle();
|
|
770
|
+
var sCopyLabel = oi18nModel.getText("COPY");
|
|
766
771
|
var oMetaModel = model.getMetaModel();
|
|
767
772
|
var oEntitySet = oMetaModel.getODataEntitySet(sEntitySet);
|
|
768
773
|
var oEntityType = oMetaModel.getODataEntityType(oEntitySet.entityType);
|
|
769
774
|
var aKeys = Object.keys(oEntityType);
|
|
770
|
-
var aTargetAnnotation = aKeys.filter(function(sKey) {
|
|
775
|
+
var aTargetAnnotation = aKeys.filter(function (sKey) {
|
|
771
776
|
return sKey === "com.sap.vocabularies.UI.v1.Identification";
|
|
772
777
|
});
|
|
773
|
-
if (aTargetAnnotation.length > 0){
|
|
778
|
+
if (aTargetAnnotation.length > 0) {
|
|
774
779
|
var aDataFields = oEntityType["com.sap.vocabularies.UI.v1.Identification"];
|
|
775
780
|
for (var i = 0; i < aDataFields.length; i++) {
|
|
776
|
-
|
|
781
|
+
var sActionlabel = aDataFields[i].Label && aDataFields[i].Label.String;
|
|
782
|
+
if (sActionlabel) {
|
|
783
|
+
sI18nKeyForLabel = sActionlabel.indexOf("i18n>") > 1 ? sActionlabel.split("i18n>")[1].replace("}", "") : "";
|
|
784
|
+
if (sI18nKeyForLabel !== "") {
|
|
785
|
+
sActionlabel = oAppi18nModel.getText(sI18nKeyForLabel);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
if (sActionlabel && sActionlabel.toUpperCase().indexOf(sCopyLabel.toUpperCase()) > -1) {
|
|
789
|
+
continue;
|
|
790
|
+
}
|
|
777
791
|
if (aDataFields[i].RecordType === "com.sap.vocabularies.UI.v1.DataFieldForAction") {
|
|
778
792
|
var sHiddenPath;
|
|
779
793
|
if (aDataFields[i]["com.sap.vocabularies.UI.v1.Hidden"]) {
|
|
780
|
-
if (aDataFields[i]["com.sap.vocabularies.UI.v1.Hidden"]["Bool"]){
|
|
794
|
+
if (aDataFields[i]["com.sap.vocabularies.UI.v1.Hidden"]["Bool"]) {
|
|
781
795
|
var oHiddenAnnotationValue = aDataFields[i]["com.sap.vocabularies.UI.v1.Hidden"]["Bool"];
|
|
782
796
|
if (typeof oHiddenAnnotationValue === "string") {
|
|
783
797
|
var sHiddenValue = oHiddenAnnotationValue.toLowerCase();
|
|
784
|
-
var isHidden =
|
|
798
|
+
var isHidden = !(sHiddenValue == "false" || sHiddenValue == "" || sHiddenValue == " ");
|
|
785
799
|
if (isHidden) {
|
|
786
800
|
continue;
|
|
787
801
|
}
|
|
@@ -795,11 +809,11 @@ sap.ui.define([
|
|
|
795
809
|
|
|
796
810
|
// Action from the Footer will be excluded based on Determining property
|
|
797
811
|
if (aDataFields[i]["Determining"]) {
|
|
798
|
-
if (aDataFields[i]["Determining"]["Bool"]){
|
|
812
|
+
if (aDataFields[i]["Determining"]["Bool"]) {
|
|
799
813
|
var oDeterminingAnnotationValue = aDataFields[i]["Determining"]["Bool"];
|
|
800
814
|
if (typeof oDeterminingAnnotationValue === "string") {
|
|
801
815
|
var sDeterminingValue = oDeterminingAnnotationValue.toLowerCase();
|
|
802
|
-
var bIsDetermining =
|
|
816
|
+
var bIsDetermining = !(sDeterminingValue == "false" || sDeterminingValue == "" || sDeterminingValue == " ");
|
|
803
817
|
if (bIsDetermining) {
|
|
804
818
|
continue;
|
|
805
819
|
}
|
|
@@ -829,11 +843,11 @@ sap.ui.define([
|
|
|
829
843
|
|
|
830
844
|
// isCopyAction to exclude
|
|
831
845
|
if (aDataFields[i]["com.sap.vocabularies.UI.v1.IsCopyAction"]) {
|
|
832
|
-
if (aDataFields[i]["com.sap.vocabularies.UI.v1.IsCopyAction"]["Bool"]){
|
|
846
|
+
if (aDataFields[i]["com.sap.vocabularies.UI.v1.IsCopyAction"]["Bool"]) {
|
|
833
847
|
var oIsCopyActionValue = aDataFields[i]["com.sap.vocabularies.UI.v1.IsCopyAction"]["Bool"];
|
|
834
848
|
if (typeof oIsCopyActionValue === "string") {
|
|
835
849
|
var sCopyValue = oIsCopyActionValue.toLowerCase();
|
|
836
|
-
var bIsCopyAction =
|
|
850
|
+
var bIsCopyAction = !(sCopyValue == "false" || sCopyValue == "" || sCopyValue == " ");
|
|
837
851
|
if (bIsCopyAction) {
|
|
838
852
|
continue;
|
|
839
853
|
}
|
|
@@ -883,7 +897,7 @@ sap.ui.define([
|
|
|
883
897
|
|
|
884
898
|
var oAction = {
|
|
885
899
|
type: "Action",
|
|
886
|
-
label:
|
|
900
|
+
label: sActionlabel,
|
|
887
901
|
action: sFunctionName,
|
|
888
902
|
parameter: mActionParams,
|
|
889
903
|
critical: isActionCritical(oFunctionImport),
|
|
@@ -175,7 +175,8 @@ sap.ui.define([
|
|
|
175
175
|
// The implementation of this infrastructure is done in class BusyHelper.
|
|
176
176
|
bEnablePlaceholder: bShellConfigPlaceholderEnabled, //holds the value of placeholder enablement shell and URL (URL enablement will be added in constructor code of NavigationController).
|
|
177
177
|
bStateHandlingSuspended: false, // holds the RTA or Key user mode
|
|
178
|
-
nDelayedDraftTimerInSeconds: 20
|
|
178
|
+
nDelayedDraftTimerInSeconds: 20, // holds the timer interval value for draft data save and by default, the value is 20 seconds
|
|
179
|
+
sSummarizationLibraryUrl: "" // property hold the Url for the Summarization service library
|
|
179
180
|
};
|
|
180
181
|
oTemplateContract.oDataLossHandler = new DataLossHandler(oTemplateContract); // an object which expose methods that can be used to bring data loss popup at app level
|
|
181
182
|
oTemplateContract.oPageLeaveHandler = new PageLeaveHandler(oTemplateContract);
|
|
@@ -283,7 +284,9 @@ sap.ui.define([
|
|
|
283
284
|
// if the ShellService is unavailable some of its tasks have to be done by ourselves. Assume that this is not the case.
|
|
284
285
|
shellServiceUnavailable: false,
|
|
285
286
|
// experimental: not yet used
|
|
286
|
-
forceFullscreenCreate: false
|
|
287
|
+
forceFullscreenCreate: false,
|
|
288
|
+
// Check Summarization is enabled
|
|
289
|
+
isSummarizationEnabled: false
|
|
287
290
|
});
|
|
288
291
|
oAppComponent.setModel(oTemplateContract.oTemplatePrivateGlobalModel, "_templPrivGlobal");
|
|
289
292
|
oTemplateContract.oShellServicePromise.catch(function(){
|
|
@@ -291,7 +294,19 @@ sap.ui.define([
|
|
|
291
294
|
oTemplateContract.oTemplatePrivateGlobalModel.setProperty("/generic/shellServiceUnavailable", true);
|
|
292
295
|
});
|
|
293
296
|
var oCurrentUrlPromise = ShareUtils.getCurrentUrl();
|
|
294
|
-
var oParsingServicePromise
|
|
297
|
+
var oParsingServicePromise;
|
|
298
|
+
if (UShellContainer) {
|
|
299
|
+
oParsingServicePromise = UShellContainer.getServiceAsync("URLParsing");
|
|
300
|
+
UShellContainer.getServiceAsync("Navigation").then(function(oNavigationService) {
|
|
301
|
+
oNavigationService.resolveIntent("#IntelligentPrompt-summarize").then(function(sUrl) {
|
|
302
|
+
oTemplateContract.oTemplatePrivateGlobalModel.setProperty("/generic/isSummarizationEnabled", !!sUrl);
|
|
303
|
+
oTemplateContract.sSummarizationLibraryUrl = sUrl;
|
|
304
|
+
}).catch(function() {
|
|
305
|
+
oLogger.warning("No intelligent summarization capability enabled on the tenant");
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
|
|
295
310
|
Promise.allSettled([oCurrentUrlPromise, oParsingServicePromise]).then(function(aResult) {
|
|
296
311
|
var sURL = aResult[0].value,
|
|
297
312
|
oParsingService = aResult[1].value;
|
|
@@ -312,7 +327,8 @@ sap.ui.define([
|
|
|
312
327
|
if (!bIsActive && !oTemplateContract.ghostapp) {
|
|
313
328
|
CardHelper.getServiceAsync("UIService").then(function(oInstance) {
|
|
314
329
|
oTemplateContract.oTemplatePrivateGlobalModel.setProperty("/generic/insights", {
|
|
315
|
-
"oInsightsInstance"
|
|
330
|
+
"oInsightsInstance": oInstance,
|
|
331
|
+
shareCards: Object.create(null)
|
|
316
332
|
});
|
|
317
333
|
oTemplateContract.oInsightsFECardProvider = new InsightsFECardProvider(oTemplateContract);
|
|
318
334
|
oTemplateContract.oInsightsFECardProvider.fnRegisterApplicationAsCardProvider();
|
|
@@ -915,7 +931,7 @@ sap.ui.define([
|
|
|
915
931
|
* @extends sap.ui.core.UIComponent
|
|
916
932
|
* @abstract
|
|
917
933
|
* @author SAP SE
|
|
918
|
-
* @version 1.
|
|
934
|
+
* @version 1.123.0
|
|
919
935
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
920
936
|
*/
|
|
921
937
|
return UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
|
@@ -925,7 +925,10 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
925
925
|
setNextFocus: oFocusHelper.setNextFocus,
|
|
926
926
|
getIntentPromise: getIntentPromise,
|
|
927
927
|
getComponentUtilsIfLoaded: getComponentUtilsIfLoaded,
|
|
928
|
-
preloadComponent: fnPreloadComponent
|
|
928
|
+
preloadComponent: fnPreloadComponent,
|
|
929
|
+
getSummarizationLibraryUrl : function() {
|
|
930
|
+
return oTemplateContract.sSummarizationLibraryUrl;
|
|
931
|
+
}
|
|
929
932
|
};
|
|
930
933
|
}
|
|
931
934
|
|
|
@@ -103,15 +103,15 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
103
103
|
return oEntityType;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
function fnReplaceFiltersWithGetDownloadUrl(sServiceUrl,
|
|
107
|
-
var
|
|
108
|
-
|
|
106
|
+
function fnReplaceFiltersWithGetDownloadUrl(sServiceUrl, sFilterParams) {
|
|
107
|
+
var aServiceURLSplit = sServiceUrl.split("?");
|
|
108
|
+
aServiceURLSplit[1] = aServiceURLSplit[1].split("&").map(function (params) {
|
|
109
109
|
if (params.startsWith("$filter")) {
|
|
110
|
-
return
|
|
110
|
+
return sFilterParams;
|
|
111
111
|
}
|
|
112
112
|
return params;
|
|
113
113
|
}).join("&");
|
|
114
|
-
sServiceUrl =
|
|
114
|
+
sServiceUrl = aServiceURLSplit.join("?");
|
|
115
115
|
return sServiceUrl;
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -572,7 +572,6 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
572
572
|
}
|
|
573
573
|
var oUiModel = oComponent.getModel("ui");
|
|
574
574
|
if (bEnforceCancelEvent || oUiModel.getProperty("/editable")){ // might be false in case b)
|
|
575
|
-
delete oComponentRegistryEntry.nonDraftCreateContext; // throw away old non-draft create context if there was one
|
|
576
575
|
if (!oDiscardPromise){ // non draft case
|
|
577
576
|
delete oComponentRegistryEntry.nonDraftCreateContext; // throw away old non-draft create context if there was one
|
|
578
577
|
// In draft case the following updates will be done when the binding of the active version is happening -> leave it out here
|