@sapui5/sap.suite.ui.generic.template 1.96.3 → 1.96.6
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/ObjectPage/templateSpecificPreparationHelper.js +10 -7
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddFilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddFooterActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddGroup.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddGroupElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddHeaderActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddSubSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddToolbarActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveFilterItems.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveGroup.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveGroupElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveHeaderAndFooterActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveSubSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveToolbarActionButtons.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveFilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveGroup.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveGroupElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveHeaderAndFooterActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveSubSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveTableColumn.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveToolbarActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealFilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealTableColumn.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealToolbarActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/AddElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/MoveElements.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/RemoveElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/RevealElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/util/AnnotationPropertyCommand.js +1 -1
- package/src/sap/suite/ui/generic/template/fragments/BreakoutActions.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/lib/StableIdDefinition.js +7 -0
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +4 -2
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartChartHandler.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/ChartActions.fragment.xml +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapui5/sap.suite.ui.generic.template",
|
|
3
|
-
"version": "1.96.
|
|
3
|
+
"version": "1.96.6",
|
|
4
4
|
"description": "SAPUI5 Library sap.suite.ui.generic.template",
|
|
5
5
|
"homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
|
|
6
6
|
"author": "SAP SE (https://www.sap.com)",
|
|
@@ -233,16 +233,19 @@ sap.ui.define([
|
|
|
233
233
|
|
|
234
234
|
// set quickview Target Entity
|
|
235
235
|
fnSetTargetEntity(oEntitySet);
|
|
236
|
-
|
|
236
|
+
|
|
237
|
+
var bToolbarButtonVisible = fnGetTableToolbarButtonVisibility(oSettings, oEntitySet, oResult.type);
|
|
238
|
+
/* Workaround fix for non draft apps with no section settings defined in the manifest. In UI5v1.93, the export to excel button is displayed by default because of a code gap in
|
|
239
|
+
FE which later got fixed with a change related to paste button in UI5v1.96 wherein the export button is not diplayed by default. This looks like a regression issue to customers
|
|
240
|
+
for which we have provided this temporary solution which shall get removed soon. */
|
|
241
|
+
oResult.bExportToExcel = !oComponentUtils.isDraftEnabled() && !oSettings.sections ? true : bToolbarButtonVisible;
|
|
242
|
+
oResult.vShowPasteButton = bToolbarButtonVisible ? "{ui>/editable}" : false;
|
|
237
243
|
return oResult;
|
|
238
244
|
}
|
|
239
245
|
|
|
240
|
-
//
|
|
241
|
-
function
|
|
242
|
-
if (oSettings.createMode !== "inline") {
|
|
243
|
-
return false;
|
|
244
|
-
}
|
|
245
|
-
if (!oComponentUtils.isDraftEnabled()) {
|
|
246
|
+
// used in the process of determining the visibility of export to excel and paste button depending on certain restrictions/conditions.
|
|
247
|
+
function fnGetTableToolbarButtonVisibility(oSettings, oEntitySet, sTableType) {
|
|
248
|
+
if (!oComponentUtils.isDraftEnabled() || oSettings.createMode !== "inline") {
|
|
246
249
|
return false;
|
|
247
250
|
}
|
|
248
251
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
noData="{parts: [{path: 'entitySet>name'}, {path: 'smartTableId>id'}], formatter:'sap.suite.ui.generic.template.js.AnnotationHelper.setNoDataTextForSmartTable'}"
|
|
41
41
|
visible="{= ${path: 'facet>com.sap.vocabularies.UI.v1.Hidden'} ? ${path: 'facet>', formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBindingForHiddenPath'} : true}"
|
|
42
42
|
editable="{ui>/editable}"
|
|
43
|
-
showPasteButton = "{
|
|
43
|
+
showPasteButton = "{objectPageTableSettings>value/vShowPasteButton}"
|
|
44
44
|
placeToolbarInTable="{= ${objectPageTableSettings>value/type} === 'ResponsiveTable' && ${device>/system/desktop}}">
|
|
45
45
|
<st:dataStateIndicator>
|
|
46
46
|
<plugins:DataStateIndicator filter="._templateEventHandlers.dataStateFilter" enableFiltering="true" />
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<template:if test="{= ${tmpEntitySet>EntitySet} === ${parameter>/entitySet} }">
|
|
5
5
|
<template:repeat list="{tmpEntitySet>Actions}" var="customaction">
|
|
6
6
|
<template:if test="{= (!${customaction>determining}) && (!${customaction>global}) && (!${customaction>filter} || ${customaction>filter} === 'table')}">
|
|
7
|
-
<Button id="{customaction>id}"
|
|
7
|
+
<Button id="{:= ${parameter>/stableId}.getStableId({type: 'ALPAction', subType: 'ExtensionAction', sQuickVariantKey: ${tabItem>key}, sAction: ${customaction>id}})}"
|
|
8
8
|
text="{customaction>text}"
|
|
9
9
|
enabled="{parts: [{path: 'customaction>'}, {path: 'tabItem>'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBreakoutActionEnabledKey'}"
|
|
10
10
|
press="{customaction>press}" type="Transparent">
|
|
@@ -153,6 +153,13 @@ sap.ui.define(["sap/suite/ui/generic/template/genericUtilities/FeError"],functio
|
|
|
153
153
|
optionalParameters: ["sQuickVariantKey"]
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
|
+
ALPAction: {
|
|
157
|
+
ExtensionAction: {
|
|
158
|
+
parameters: ["sAction"],
|
|
159
|
+
optionalParameters: ["sQuickVariantKey"],
|
|
160
|
+
value: function(oParams){return oParams.sQuickVariantKey ? undefined : oParams.sAction;}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
156
163
|
QuickVariantSelectionX: {
|
|
157
164
|
IconTabBar: {
|
|
158
165
|
value: "template::IconTabBar"
|
|
@@ -1011,7 +1011,9 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1011
1011
|
// or a Promise that resolves to a function performing the navigation that should be done when the draft was sucessfully cancelled.
|
|
1012
1012
|
function getSpecialDraftCancelPromise(oContext){
|
|
1013
1013
|
var oOptionPromise = getSpecialDraftCancelOptionPromise(oContext);
|
|
1014
|
-
return oOptionPromise && oOptionPromise.then(
|
|
1014
|
+
return oOptionPromise && oOptionPromise.then(function(oOption) {
|
|
1015
|
+
return fnNavigateToRoute.bind(null, oOption);
|
|
1016
|
+
});
|
|
1015
1017
|
}
|
|
1016
1018
|
|
|
1017
1019
|
// This function can be called before the app is being left by a forward navigation. If oOption is truthy it ensures that the navigation described by oOption will be executed if
|
|
@@ -2695,7 +2697,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2695
2697
|
* @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
|
|
2696
2698
|
* @public
|
|
2697
2699
|
* @extends sap.ui.base.Object
|
|
2698
|
-
* @version 1.96.
|
|
2700
|
+
* @version 1.96.6
|
|
2699
2701
|
* @since 1.30.0
|
|
2700
2702
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
2701
2703
|
*/
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
var aValidSortOrder = aNavigationSortOrder.filter(function(oSortOrder) {
|
|
97
97
|
return isPropertyAvailableInEntityType(oSortOrder);
|
|
98
98
|
});
|
|
99
|
-
var aMergedSorters = aValidSortOrder.concat(oPresentationVariant.SortOrder);
|
|
99
|
+
var aMergedSorters = oPresentationVariant && oPresentationVariant.SortOrder ? aValidSortOrder.concat(oPresentationVariant.SortOrder) : aValidSortOrder;
|
|
100
100
|
oPresentationVariant.SortOrder = aMergedSorters;
|
|
101
101
|
oUiState.setPresentationVariant(oPresentationVariant);
|
|
102
102
|
oSmartChart.setUiState(oUiState);
|
|
@@ -37,7 +37,7 @@ sap.ui.define(['sap/ui/core/library','sap/fe/placeholder/library'
|
|
|
37
37
|
interfaces: [],
|
|
38
38
|
controls: [],
|
|
39
39
|
elements: [],
|
|
40
|
-
version: "1.96.
|
|
40
|
+
version: "1.96.6",
|
|
41
41
|
extensions: {
|
|
42
42
|
//Configuration used for rule loading of Support Assistant
|
|
43
43
|
"sap.ui.support": {
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
<template:if test="{= ${tmpEntitySet>EntitySet} === ${parameter>/entitySet} }">
|
|
3
3
|
<template:repeat list="{tmpEntitySet>Actions}" var="customaction">
|
|
4
4
|
<template:if test="{= !${customaction>determining} && (!${customaction>global}) && (${customaction>filter} === 'chart')}">
|
|
5
|
-
<Button id="{
|
|
5
|
+
<Button id="{:= ${parameter>/stableId}.getStableId({type: 'ALPAction', subType: 'ExtensionAction', sQuickVariantKey: ${tabItem>key}, sAction: ${customaction>id}})}"
|
|
6
|
+
text="{customaction>text}" press="{customaction>press}" type="Transparent"
|
|
6
7
|
enabled="{parts: [{path: 'customaction>'}, {path: 'tabItem>'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBreakoutActionEnabledKey'}">
|
|
7
8
|
<layoutData>
|
|
8
9
|
<OverflowToolbarLayoutData priority = "{customaction>importance}"/>
|