@sapui5/sap.suite.ui.generic.template 1.142.0 → 1.142.2
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/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 +5 -2
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/annotationHelpers/AnnotationHelperActionButtons.js +8 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillDialog.fragment.xml +6 -4
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
package/package.json
CHANGED
|
@@ -27,7 +27,8 @@ sap.ui.define([
|
|
|
27
27
|
"sap/ui/core/message/MessageType",
|
|
28
28
|
"sap/ui/core/Element",
|
|
29
29
|
"sap/suite/ui/generic/template/genericUtilities/testableHelper",
|
|
30
|
-
"sap/suite/ui/generic/template/lib/TableNoDataHandler"
|
|
30
|
+
"sap/suite/ui/generic/template/lib/TableNoDataHandler",
|
|
31
|
+
"sap/fe/controls/easyFilter/PXFeedback"
|
|
31
32
|
], function (
|
|
32
33
|
Filter,
|
|
33
34
|
ExtensionAPI,
|
|
@@ -57,7 +58,8 @@ sap.ui.define([
|
|
|
57
58
|
MessageType,
|
|
58
59
|
Element,
|
|
59
60
|
testableHelper,
|
|
60
|
-
TableNoDataHandler
|
|
61
|
+
TableNoDataHandler,
|
|
62
|
+
PXFeedback
|
|
61
63
|
) {
|
|
62
64
|
"use strict";
|
|
63
65
|
|
|
@@ -833,6 +835,7 @@ sap.ui.define([
|
|
|
833
835
|
oTemplatePrivateModel.setProperty("/listReport/firstSelection", true);
|
|
834
836
|
oTemplatePrivateModel.setProperty("/generic/bDataAreShownInTable", false);
|
|
835
837
|
} else {
|
|
838
|
+
PXFeedback.triggerPXIntegration("toggleSwitchV2");
|
|
836
839
|
oSmartFilterbar.setVisible(true);
|
|
837
840
|
oSmartVariant.setVisible(true);
|
|
838
841
|
}
|
|
@@ -458,8 +458,8 @@ sap.ui.define([
|
|
|
458
458
|
function fnAdaptToAppStateIappState(oAppData){
|
|
459
459
|
|
|
460
460
|
fnAdaptOtherControlsToAppState(oAppData.controlStates);
|
|
461
|
-
if (areDataShownInTable()){
|
|
462
|
-
// fnAdaptOtherControlsToAppState only (synchronously) sets the state including the information whether data should be loaded
|
|
461
|
+
if (areDataShownInTable() && Object.keys(oState.oSmartFilterbar.verifySearchAllowed()).length === 0){
|
|
462
|
+
// fnAdaptOtherControlsToAppState only (synchronously) sets the state including the information whether data should be loaded and search is allowed,- if this is the case, the actual loading
|
|
463
463
|
// (which happens asynchronous of course) still needs to be triggered
|
|
464
464
|
loadData();
|
|
465
465
|
} else {
|
|
@@ -135,9 +135,15 @@ sap.ui.define([
|
|
|
135
135
|
getEditActionButtonVisibility.requiresIContext = true;
|
|
136
136
|
|
|
137
137
|
// Returns the visibility for the EasyFill button
|
|
138
|
-
function getEasyFillButtonVisibility(oInterface,
|
|
138
|
+
function getEasyFillButtonVisibility(oInterface,mRestrictions, oEntitySet, oAppComponent, oTreeNode, aAncestortreeNodes,bIsStandardAction,bParameterEdit) {
|
|
139
139
|
var sGeneralExpression = "{_templPrivGlobal>/generic/fioriAI/isEasyFillEnabled}"; // Ensure whether AI resource has been loaded for the EasyFill functionality
|
|
140
|
-
|
|
140
|
+
|
|
141
|
+
// The Edit button triggers intent-based navigation or CrossNavigation if it is a standard action button and the external edit parameter is specified in the manifest.
|
|
142
|
+
// In this case, we should not display the EasyFill button because the Object Page cannot enter edit mode. Otherwise, clicking the EasyFill button would incorrectly switch the Object Page to an editable state.
|
|
143
|
+
if (bIsStandardAction && bParameterEdit) {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
|
|
141
147
|
//oTreeNode.isDraft is use to show "Hide Draft Values" or "Show Draft Values" button in List Report table toolbar and "Display Saved version/Return to Draft" button in Object page header for a draft application.
|
|
142
148
|
var sFCLExpression = getFCLPathExpression(oAppComponent, oTreeNode, "Edit");
|
|
143
149
|
var sPathExpression = getPathExpression(oInterface, oEntitySet, mRestrictions, "Updatable"); // if there is an updatable path, add it to the condition
|
|
@@ -142,10 +142,11 @@
|
|
|
142
142
|
importance="High"
|
|
143
143
|
enabled="{ui>/enabled}"
|
|
144
144
|
dt:designtime="not-adaptable"
|
|
145
|
+
fesr:press="fe2:ef:easyfill"
|
|
145
146
|
press="._templateEventHandlers.onEasyFillEdit"
|
|
146
147
|
ariaHasPopup="Dialog"
|
|
147
148
|
type="Ghost"
|
|
148
|
-
visible="{parts: [{path: 'entitySet>Org.OData.Capabilities.V1.UpdateRestrictions'}, {path: 'entitySet>'}, {path: 'appSettings>/'}, {path: 'parameter>/treeNode'}, {path: 'parameter>/treeNodeAncestors'}], formatter: 'AHActionButtons.getEasyFillButtonVisibility'}"
|
|
149
|
+
visible="{parts: [{path: 'entitySet>Org.OData.Capabilities.V1.UpdateRestrictions'}, {path: 'entitySet>'}, {path: 'appSettings>/'}, {path: 'parameter>/treeNode'}, {path: 'parameter>/treeNodeAncestors'},{path: 'parameter>/templateSpecific/pageLevelActions/commandExecution/Edit/isStandardAction'},{path:'parameter>/treeNode/page/navigation/edit/target'}], formatter: 'AHActionButtons.getEasyFillButtonVisibility'}"
|
|
149
150
|
/>
|
|
150
151
|
</template:if>
|
|
151
152
|
</template:if>
|
|
@@ -959,7 +959,7 @@ sap.ui.define([
|
|
|
959
959
|
* @public
|
|
960
960
|
* @extends sap.ui.core.UIComponent
|
|
961
961
|
* @author SAP SE
|
|
962
|
-
* @version 1.142.
|
|
962
|
+
* @version 1.142.2
|
|
963
963
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
964
964
|
*/
|
|
965
965
|
var oAppComponent = UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillDialog.fragment.xml
CHANGED
|
@@ -36,6 +36,7 @@ xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
|
36
36
|
text="Easy Fill"
|
|
37
37
|
type="Default"
|
|
38
38
|
icon="sap-icon://ai"
|
|
39
|
+
fesr:press="fe2:ef:analyzeText"
|
|
39
40
|
enabled="{easyFillDialogModel>/isEasyFillButtonEnabled}"
|
|
40
41
|
press="onEasyFillSubmitInputToAI">
|
|
41
42
|
</Button>
|
|
@@ -43,6 +44,7 @@ xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
|
43
44
|
id="EasyFillClearAll"
|
|
44
45
|
type = "Transparent"
|
|
45
46
|
press="onEasyFillClearAll"
|
|
47
|
+
fesr:press="fe2:ef:clearAll"
|
|
46
48
|
text="{i18n>EASYFILL_CLEAR_ALL}">
|
|
47
49
|
</Button>
|
|
48
50
|
</FlexBox>
|
|
@@ -58,8 +60,8 @@ xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
|
58
60
|
<HBox gap="0.5rem" justifyContent = "End" alignItems = "Center" renderType="Bare" class="sapSmartTemplatesObjectPageEasyFillReviewAreaBanner">
|
|
59
61
|
<Link text="{i18n>AI_LINK_NOTICE_TITLE}" press="onLinkPress"/>
|
|
60
62
|
<Label text="{i18n>AI_WARNING_TEXT}"/>
|
|
61
|
-
<Button icon = "sap-icon://thumb-up" type = "Transparent" fesr:press="
|
|
62
|
-
<Button icon = "sap-icon://thumb-down" type="Transparent" fesr:press="
|
|
63
|
+
<Button icon = "sap-icon://thumb-up" type = "Transparent" fesr:press="fe2:ef:thumbsup" enabled="{easyFillDialogModel>/feedbackEnabled}" press="onFeedbackPress"/>
|
|
64
|
+
<Button icon = "sap-icon://thumb-down" type="Transparent" fesr:press="fe2:ef:thumbsdown" enabled="{easyFillDialogModel>/feedbackEnabled}" press="onFeedbackPress"/>
|
|
63
65
|
</HBox>
|
|
64
66
|
<VBox class="sapSmartTemplatesObjectPageEasyFillReviewAreaSmartFormWrapper" renderType = "Bare" visible="{easyFillDialogModel>/isUpdatableVisible}">
|
|
65
67
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.lib.ai.EasyFill.fragments.EasyFillUpdatebleSmartForm" type="XML"/>
|
|
@@ -73,10 +75,10 @@ xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
|
73
75
|
</FlexBox>
|
|
74
76
|
</content>
|
|
75
77
|
<beginButton>
|
|
76
|
-
<Button text="{i18n>EASY_FILL_CONFIRM}" enabled="{easyFillDialogModel>/isSaveEnabled}" press="onSaveFromEasyFillDialog" type="Emphasized"/>
|
|
78
|
+
<Button text="{i18n>EASY_FILL_CONFIRM}" fesr:press="fe2:ef:confirm" enabled="{easyFillDialogModel>/isSaveEnabled}" press="onSaveFromEasyFillDialog" type="Emphasized"/>
|
|
77
79
|
</beginButton>
|
|
78
80
|
<endButton>
|
|
79
|
-
<Button text="{i18n>CANCEL}"
|
|
81
|
+
<Button text="{i18n>CANCEL}" press="onCancelEasyFillDialog" fesr:press="fe2:ef:cancel"/>
|
|
80
82
|
</endButton>
|
|
81
83
|
</Dialog>
|
|
82
84
|
</core:FragmentDefinition>
|
|
@@ -3228,7 +3228,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
3228
3228
|
* @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
|
|
3229
3229
|
* @public
|
|
3230
3230
|
* @extends sap.ui.base.Object
|
|
3231
|
-
* @version 1.142.
|
|
3231
|
+
* @version 1.142.2
|
|
3232
3232
|
* @since 1.30.0
|
|
3233
3233
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
3234
3234
|
*/
|