@sapui5/sap.suite.ui.generic.template 1.147.2 → 1.148.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/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 +5 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_bg.properties +3 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_da.properties +3 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr_CA.properties +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_id.properties +2 -2
- 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 +32 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +4 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +57 -25
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +6 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +4 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +6 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +35 -19
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +13 -13
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Footer.fragment.xml +103 -42
- 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/fragments/EasyFilter.fragment.xml +3 -0
- package/src/sap/suite/ui/generic/template/genericUtilities/controlHelper.js +30 -29
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +15 -0
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +93 -55
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +7 -0
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +76 -19
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +4 -1
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +17 -7
- package/src/sap/suite/ui/generic/template/lib/StableIdDefinition.js +35 -34
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillAIOrchestrator.js +185 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillApplyHandler.js +476 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillDialogController.js +311 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillFieldCollector.js +669 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillFormRenderer.js +217 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillHandler.js +348 -422
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillTableRenderer.js +491 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillDialog.fragment.xml +142 -72
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +409 -22
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +32 -8
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +15 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +15 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +15 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +20 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +15 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +17 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +14 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +20 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +20 -6
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +25 -2
- package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +22 -3
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillNonUpdatableSmartForm.fragment.xml +0 -18
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillUpdatebleSmartForm.fragment.xml +0 -15
package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillDialog.fragment.xml
CHANGED
|
@@ -1,85 +1,155 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core"
|
|
2
|
-
xmlns:
|
|
3
|
-
xmlns:
|
|
4
|
-
xmlns:
|
|
2
|
+
xmlns:smartForm="sap.ui.comp.smartform"
|
|
3
|
+
xmlns:smartField="sap.ui.comp.smartfield"
|
|
4
|
+
xmlns:uxap="sap.uxap"
|
|
5
|
+
xmlns:layout="sap.ui.layout"
|
|
5
6
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
6
|
-
|
|
7
|
+
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper',
|
|
8
|
+
AHModel: 'sap/ui/model/odata/AnnotationHelper'}"
|
|
9
|
+
xmlns:fesr="http://schemas.sap.com/sapui5/extension/sap.ui.core.FESR/1">
|
|
7
10
|
|
|
8
|
-
<Dialog id="EasyFillDialog" class
|
|
9
|
-
titleAlignment="Start" horizontalScrolling="false" verticalScrolling="false" draggable="true" resizable="true">
|
|
11
|
+
<Dialog id="EasyFillDialog" contentWidth="72.25rem" class="sapSmartTemplatesObjectPageEasyFill" contentHeight="49.3125rem" title="{i18n>EASY_FILL_TITLE}" titleAlignment="Start" horizontalScrolling="false" verticalScrolling="false" draggable="true" resizable="true">
|
|
10
12
|
<content>
|
|
11
13
|
<FlexBox id="EasyFillMainFlex" direction="Row" renderType="Bare" width="100%" height="100%">
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
14
|
+
<layout:ResponsiveSplitter defaultPane="default">
|
|
15
|
+
<layout:PaneContainer>
|
|
16
|
+
<layout:SplitPane requiredParentWidth="400" id="inputAreaSplitPane">
|
|
17
|
+
<layout:layoutData>
|
|
18
|
+
<layout:SplitterLayoutData size="40%"/>
|
|
19
|
+
</layout:layoutData>
|
|
20
|
+
<FlexBox direction="Column" renderType="Bare" class="sapSmartTemplatesObjectPageEasyFillInputArea">
|
|
21
|
+
<FlexBox id="EasyFillInputArea" direction="Column" renderType="Bare" width="100%" gap="36px">
|
|
22
|
+
<VBox gap="22px" class="sapSmartTemplatesObjectPageEasyFillInputAreaLabel">
|
|
23
|
+
<Label text="{i18n>EASY_FILL_FIRST_LABEL_TEXT}" wrapping="true"/>
|
|
24
|
+
<Label text="{i18n>EASY_FILL_SECOND_LABEL_TEXT}" wrapping="true"/>
|
|
25
|
+
</VBox>
|
|
26
|
+
<TextArea
|
|
27
|
+
id="EasyFillInputTextArea"
|
|
28
|
+
growing="true"
|
|
29
|
+
growingMaxLines="30"
|
|
30
|
+
maxLength="2000"
|
|
31
|
+
liveChange=".onLiveChange"
|
|
32
|
+
placeholder="{i18n>EASY_FILL_TEXTAREA_PLACEHOLDER}"
|
|
33
|
+
rows="20"
|
|
34
|
+
width="100%"
|
|
35
|
+
height="17.5rem"
|
|
36
|
+
showExceededText="true"
|
|
37
|
+
ariaLabelledBy="EasyFillInputArea"/>
|
|
38
|
+
</FlexBox>
|
|
39
|
+
<FlexBox direction="Row" justifyContent="End" gap="1rem">
|
|
40
|
+
<Button
|
|
41
|
+
id="EasyFillSubmitButton"
|
|
42
|
+
text="Easy Fill"
|
|
43
|
+
type="Default"
|
|
44
|
+
icon="sap-icon://ai"
|
|
45
|
+
fesr:press="fe2:ef:analyzeText"
|
|
46
|
+
enabled="{easyFillDialogModel>/isEasyFillButtonEnabled}"
|
|
47
|
+
press=".onEasyFillSubmitInputToAI"/>
|
|
48
|
+
<Button
|
|
49
|
+
id="EasyFillClearAll"
|
|
50
|
+
type="Transparent"
|
|
51
|
+
press=".onEasyFillClearAll"
|
|
52
|
+
fesr:press="fe2:ef:clearAll"
|
|
53
|
+
enabled="{easyFillDialogModel>/isEasyFillButtonEnabled}"
|
|
54
|
+
text="{i18n>EASYFILL_CLEAR_ALL}"/>
|
|
55
|
+
</FlexBox>
|
|
56
|
+
</FlexBox>
|
|
57
|
+
</layout:SplitPane>
|
|
58
|
+
<layout:PaneContainer>
|
|
59
|
+
<layout:SplitPane requiredParentWidth="600" id="reviewAreaSplitPane">
|
|
60
|
+
<layout:layoutData>
|
|
61
|
+
<layout:SplitterLayoutData size="60%"/>
|
|
62
|
+
</layout:layoutData>
|
|
63
|
+
<FlexBox id="EasyFillReviewArea" busy="{easyFillDialogModel>/isBusy}" class="sapSmartTemplatesObjectPageEasyFillReviewArea" renderType="Bare" direction="Column">
|
|
64
|
+
<IllustratedMessage
|
|
65
|
+
illustrationSize="Large"
|
|
66
|
+
illustrationType="{path: 'easyFillDialogModel>/stateType', formatter: '.formatIllustrationType'}"
|
|
67
|
+
visible="{easyFillDialogModel>/isIllustrationVisible}"
|
|
68
|
+
title="{path: 'easyFillDialogModel>/stateType', formatter: '.formatIllustrationTitle'}"
|
|
69
|
+
description="{path: 'easyFillDialogModel>/stateType', formatter: '.formatIllustrationDescription'}"/>
|
|
70
|
+
<!-- <ScrollContainer height="100%" horizontal = "true"> -->
|
|
71
|
+
<uxap:ObjectPageLayout visible="{easyFillDialogModel>/isFormVisible}" id="EasyFillObjectPageLayout" sections="{path: 'easyFillDialogModel>/sections', templateShareable: false}" alwaysShowContentHeader="true" upperCaseAnchorBar="false">
|
|
72
|
+
<uxap:headerTitle>
|
|
73
|
+
<uxap:ObjectPageDynamicHeaderTitle>
|
|
74
|
+
<uxap:heading>
|
|
75
|
+
<Title text="{i18n>EASY_FILL_FILLED_FIELDS}" wrapping="true" level="H2"/>
|
|
76
|
+
</uxap:heading>
|
|
77
|
+
<uxap:actions>
|
|
78
|
+
<SegmentedButton selectedKey="{easyFillDialogModel>/easyFillMode}" selectionChange=".onSelectionChange">
|
|
79
|
+
<items>
|
|
80
|
+
<SegmentedButtonItem icon="sap-icon://increase-line-height" key="CondensedMode" tooltip="{i18n>EASY_FILL_CONDENSED_VIEW_TOOLTIP}"/>
|
|
81
|
+
<SegmentedButtonItem icon="sap-icon://decrease-line-height" key="ObjectPageMode" tooltip="{i18n>EASY_FILL_DETAILED_VIEW_TOOLTIP}"/>
|
|
82
|
+
</items>
|
|
83
|
+
</SegmentedButton>
|
|
84
|
+
<Button
|
|
85
|
+
icon="{= ${easyFillDialogModel>/isFullScreen} ? 'sap-icon://full-screen' : 'sap-icon://exit-full-screen'}"
|
|
86
|
+
type="Transparent"
|
|
87
|
+
press=".onToggleFullScreen"/>
|
|
88
|
+
</uxap:actions>
|
|
89
|
+
</uxap:ObjectPageDynamicHeaderTitle>
|
|
90
|
+
</uxap:headerTitle>
|
|
91
|
+
<uxap:headerContent>
|
|
92
|
+
<HBox gap="0.5rem" justifyContent="Start" alignItems="Center" renderType="Bare" class="sapSmartTemplatesObjectPageEasyFillReviewAreaBanner">
|
|
93
|
+
<Link text="{i18n>AI_LINK_NOTICE_TITLE}" press=".onLinkPress"/>
|
|
94
|
+
<ToggleButton icon = "sap-icon://thumb-up" type = "Transparent" fesr:press="fe2:ef:thumbsup" pressed="{easyFillDialogModel>/feedbackPressedUp}" enabled="{easyFillDialogModel>/feedbackEnabled}" press=".onFeedbackPress"/>
|
|
95
|
+
<ToggleButton icon = "sap-icon://thumb-down" type = "Transparent" fesr:press="fe2:ef:thumbsdown" pressed="{easyFillDialogModel>/feedbackPressedDown}" enabled="{easyFillDialogModel>/feedbackEnabled}" press=".onFeedbackPress"/>
|
|
96
|
+
</HBox>
|
|
97
|
+
</uxap:headerContent>
|
|
98
|
+
<uxap:ObjectPageSection title="{path: 'easyFillDialogModel>title', formatter: '.formatSectionTitle'}" titleUppercase="false">
|
|
99
|
+
<uxap:ObjectPageSubSection>
|
|
100
|
+
<smartForm:SmartForm editable="true" id="EasyFillSmartForm" groups="{path: 'easyFillDialogModel>children', templateShareable: false}">
|
|
101
|
+
<smartForm:layout>
|
|
102
|
+
<smartForm:ColumnLayout
|
|
103
|
+
columnsXL="3"
|
|
104
|
+
columnsL="3"
|
|
105
|
+
columnsM="2"
|
|
106
|
+
labelCellsLarge="12"/>
|
|
107
|
+
</smartForm:layout>
|
|
108
|
+
<smartForm:Group
|
|
109
|
+
title="{path: 'easyFillDialogModel>title', formatter: '.formatSectionTitle'}"
|
|
110
|
+
visible="{
|
|
111
|
+
parts: [
|
|
112
|
+
{path: 'easyFillDialogModel>id'},
|
|
113
|
+
{path: 'easyFillDialogModel>fields'},
|
|
114
|
+
{path: 'easyFillDialogModel>/easyFillMode'}
|
|
115
|
+
],
|
|
116
|
+
formatter: '.populateSmartFields'
|
|
117
|
+
}">
|
|
118
|
+
<smartForm:customData>
|
|
119
|
+
<core:CustomData key="id" value="{easyFillDialogModel>id}"/>
|
|
120
|
+
</smartForm:customData>
|
|
121
|
+
</smartForm:Group>
|
|
122
|
+
</smartForm:SmartForm>
|
|
123
|
+
</uxap:ObjectPageSubSection>
|
|
124
|
+
</uxap:ObjectPageSection>
|
|
125
|
+
</uxap:ObjectPageLayout>
|
|
126
|
+
<VBox id="EasyFillTablePreviewContainer" fitContainer="true" renderType="Bare" visible="{easyFillDialogModel>/hasTableUpdates}"/>
|
|
127
|
+
<MessageStrip
|
|
128
|
+
visible="{easyFillDialogModel>/hasTableUpdates}"
|
|
129
|
+
text="{i18n>EASY_FILL_TABLE_UPDATES_INFO}"
|
|
130
|
+
showIcon="true"
|
|
131
|
+
type="Information"/>
|
|
70
132
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
133
|
+
<MessageStrip
|
|
134
|
+
visible="{easyFillDialogModel>/hasTableValidationErrors}"
|
|
135
|
+
text="{easyFillDialogModel>/tableValidationMessage}"
|
|
136
|
+
showIcon="true"
|
|
137
|
+
type="Error"/>
|
|
138
|
+
</FlexBox>
|
|
139
|
+
</layout:SplitPane>
|
|
140
|
+
|
|
141
|
+
</layout:PaneContainer>
|
|
142
|
+
|
|
143
|
+
</layout:PaneContainer>
|
|
144
|
+
|
|
145
|
+
</layout:ResponsiveSplitter>
|
|
76
146
|
</FlexBox>
|
|
77
147
|
</content>
|
|
78
148
|
<beginButton>
|
|
79
|
-
<Button text="{i18n>EASY_FILL_CONFIRM}"
|
|
149
|
+
<Button text="{i18n>EASY_FILL_CONFIRM}" fesr:press="fe2:ef:confirm" enabled="{easyFillDialogModel>/isSaveEnabled}" press=".onSaveFromEasyFillDialog" type="Emphasized"/>
|
|
80
150
|
</beginButton>
|
|
81
151
|
<endButton>
|
|
82
|
-
<Button text="{i18n>CANCEL}"
|
|
152
|
+
<Button text="{i18n>CANCEL}" press=".onCancelEasyFillDialog" fesr:press="fe2:ef:cancel"/>
|
|
83
153
|
</endButton>
|
|
84
|
-
|
|
154
|
+
</Dialog>
|
|
85
155
|
</core:FragmentDefinition>
|