@sapui5/sap.suite.ui.generic.template 1.146.0 → 1.147.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 +3 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js +15 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ar.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_bg.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ca.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cnr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cs.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cy.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_da.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_el.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_GB.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_US_saprigi.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es_MX.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_et.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fi.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr_CA.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hi.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hu.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_id.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_it.properties +9 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_iw.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ja.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_kk.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ko.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lt.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lv.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_mk.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ms.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_nl.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_no.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pl.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt_PT.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ro.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ru.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sh.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sk.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sl.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sv.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_th.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_tr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_uk.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_vi.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_CN.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_TW.properties +8 -0
- 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 +97 -7
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +19 -8
- package/src/sap/suite/ui/generic/template/ListReport/controllerFrameworkExtensions.js +16 -2
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.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/ListReport/view/fragments/DeleteConfirmation.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartChart.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +5 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +16 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/DraftConfirmationPopup.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/DraftResumeDialog.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/RelatedAppsSheet.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartChart.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SwitchDraftAndActiveObjectPopOver.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/TableDeleteConfirmation.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/UnsavedChangesDialog.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/view/QuickCreate.view.xml +7 -7
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/view/QuickView.view.xml +6 -6
- package/src/sap/suite/ui/generic/template/detailTemplates/detailUtils.js +18 -1
- package/src/sap/suite/ui/generic/template/fragments/AINotice.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/ActionConfirmation.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/fragments/ContactDetails.fragment.xml +5 -5
- package/src/sap/suite/ui/generic/template/fragments/DataLoss.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/DataLossTechnicalError.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/fragments/DiscardEditPopover.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/fragments/DraftAdminDataPopover.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/MessageDialog.fragment.xml +7 -7
- package/src/sap/suite/ui/generic/template/fragments/MessageInfluencingCRUDAction.fragment.xml +7 -7
- package/src/sap/suite/ui/generic/template/fragments/MessagePopover.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/ShareSheet.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/genericUtilities/ControlStateWrapperFactory.js +108 -67
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/DynamicPageWrapper.js +19 -51
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/ObjectPageLayoutWrapper.js +10 -32
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/PreliminaryWrapper.js +151 -0
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SearchFieldWrapper.js +8 -30
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +68 -174
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +100 -94
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableWrapper.js +22 -3
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +90 -81
- package/src/sap/suite/ui/generic/template/genericUtilities/metadataAnalyser.js +5 -5
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +5 -1
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +76 -7
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +27 -21
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillHandler.js +5 -1
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillDialog.fragment.xml +12 -11
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +9 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +17 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +20 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +17 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +17 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +21 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +20 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +20 -4
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsFECardProvider.js +7 -1
- 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/src/sap/suite/ui/generic/template/listTemplates/fragments/MessagesOnRetrieval.fragment.xml +5 -5
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
placement="Auto"
|
|
9
9
|
showHeader="false"
|
|
10
10
|
contentWidth="20rem"
|
|
11
|
-
afterClose="afterClose"
|
|
12
|
-
afterOpen="afterOpen">
|
|
11
|
+
afterClose=".afterClose"
|
|
12
|
+
afterOpen=".afterOpen">
|
|
13
13
|
<VBox>
|
|
14
14
|
<HBox class="sapUiSmallMarginBottom">
|
|
15
15
|
<Avatar
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<!-- render options for teams contact collaboration -->
|
|
32
32
|
<VBox visible="{= ${contact>/teamsCollabOptions} !== undefined && ${contact>/teamsCollabOptions}.length > 0 }" class="sapUiSmallMarginBottom">
|
|
33
33
|
<Toolbar >
|
|
34
|
-
<Title text="{i18n>CONTACT_OPTION}" level="H5" class="sapUiTinyMarginBegin"/>
|
|
34
|
+
<Title text="{i18n>CONTACT_OPTION}" level="H5" class="sapUiTinyMarginBegin"/>
|
|
35
35
|
<ToolbarSpacer/>
|
|
36
36
|
<Button
|
|
37
37
|
icon="{contact>/teamsCollabOptions/0/icon}"
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
<Label text="{i18n>CONTACT_PHONE}:" labelFor="template:::contact:::contactDetails::phone"/>
|
|
80
80
|
<Link id="template:::contact:::contactDetails::phone" text="{contact>/work}" href="{path: 'contact>/work', formatter: '.formatUri'}" class="sapUiTinyMarginBottom" wrapping="true"/>
|
|
81
81
|
</VBox>
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
<VBox visible="{= !!${contact>/cell}}" class="sapUiTinyMarginBottom">
|
|
84
84
|
<Label text="{i18n>CONTACT_MOBILE}:" labelFor="template:::contact:::contactDetails::mobile"/>
|
|
85
85
|
<Link id="template:::contact:::contactDetails::mobile" text="{contact>/cell}" href="{path: 'contact>/cell', formatter: '.formatUri'}" class="sapUiTinyMarginBottom" wrapping="true"/>
|
|
86
86
|
</VBox>
|
|
87
|
-
|
|
87
|
+
|
|
88
88
|
<VBox visible="{= !!${contact>/fax}}" class="sapUiTinyMarginBottom">
|
|
89
89
|
<Label text="{i18n>CONTACT_FAX}:" labelFor="template:::contact:::contactDetails::fax"/>
|
|
90
90
|
<Text id="template:::contact:::contactDetails::fax" text="{contact>/fax}" class="sapUiTinyMarginBottom" />
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
</content>
|
|
6
6
|
<buttons>
|
|
7
7
|
<Button text="{= ${dataLoss>/isLeaving} ? ${i18n>DATA_LOSS_LEAVE_BTN} : ${i18n>PROCEED} }"
|
|
8
|
-
press="onDataLossOK" type="Emphasized" />
|
|
8
|
+
press=".onDataLossOK" type="Emphasized" />
|
|
9
9
|
<Button text="{i18n>CANCEL}"
|
|
10
|
-
press="onDataLossCancel" />
|
|
10
|
+
press=".onDataLossCancel" />
|
|
11
11
|
</buttons>
|
|
12
12
|
</Dialog>
|
|
13
13
|
</core:FragmentDefinition>
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
</content>
|
|
6
6
|
<buttons>
|
|
7
7
|
<Button text="{i18n>DATA_LOSS_DISCARD_CHANGES}"
|
|
8
|
-
press="onDataLossOK"
|
|
8
|
+
press=".onDataLossOK"
|
|
9
9
|
visible="{dataLoss>/isLeaving}" type="Emphasized"/>
|
|
10
10
|
<Button text="{= ${dataLoss>/isLeaving} ? ${i18n>CANCEL} : ${i18n>CLOSE} }"
|
|
11
|
-
press="onDataLossCancel" />
|
|
11
|
+
press=".onDataLossCancel" />
|
|
12
12
|
</buttons>
|
|
13
13
|
</Dialog>
|
|
14
|
-
</core:FragmentDefinition>
|
|
14
|
+
</core:FragmentDefinition>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
|
-
<Popover id="DiscardDraftPopover" placement="{discard>/placement}" showHeader="false" class="sapUiContentPadding" ariaLabelledBy="DiscardDraftText" beforeClose="beforeClose" afterClose="afterClose">
|
|
2
|
+
<Popover id="DiscardDraftPopover" placement="{discard>/placement}" showHeader="false" class="sapUiContentPadding" ariaLabelledBy="DiscardDraftText" beforeClose=".beforeClose" afterClose=".afterClose">
|
|
3
3
|
<VBox id="DiscardDraftBox">
|
|
4
4
|
<Text id="DiscardDraftText" width="16rem" text="{discard>/text}"/>
|
|
5
|
-
<Button id="DiscardDraftConfirmButton" text="{i18n>DISCARD}" width="100%" press="onDiscardConfirm" />
|
|
6
|
-
</VBox>
|
|
5
|
+
<Button id="DiscardDraftConfirmButton" text="{i18n>DISCARD}" width="100%" press=".onDiscardConfirm" />
|
|
6
|
+
</VBox>
|
|
7
7
|
</Popover>
|
|
8
8
|
</core:FragmentDefinition>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
placement="Auto"
|
|
8
8
|
class="sapSmartTemplatesListReportPopover sapUiContentPadding">
|
|
9
9
|
<endButton>
|
|
10
|
-
<Button icon="sap-icon://decline" tooltip="{i18n>CLOSE}" press="closeDraftAdminPopover" />
|
|
10
|
+
<Button icon="sap-icon://decline" tooltip="{i18n>CLOSE}" press=".closeDraftAdminPopover" />
|
|
11
11
|
</endButton>
|
|
12
12
|
|
|
13
13
|
<VBox class="sapUiContentPadding">
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
|
-
<Dialog class="sapUiNoContentPadding" state="{settings>/state}" type="Message" afterClose="afterClose"
|
|
3
|
-
showHeader="true" horizontalScrolling="false" draggable="true"
|
|
2
|
+
<Dialog class="sapUiNoContentPadding" state="{settings>/state}" type="Message" afterClose=".afterClose"
|
|
3
|
+
showHeader="true" horizontalScrolling="false" draggable="true"
|
|
4
4
|
contentHeight="440px" contentWidth="440px" verticalScrolling="false" resizable="true">
|
|
5
5
|
<content>
|
|
6
|
-
<MessageView items="{settings>/messages}" showDetailsPageHeader="false" itemSelect="onMessageSelect" groupItems="{settings>/grouping}">
|
|
7
|
-
<MessageItem type="{settings>type}" title="{settings>message}" description="{settings>description}"
|
|
6
|
+
<MessageView items="{settings>/messages}" showDetailsPageHeader="false" itemSelect=".onMessageSelect" groupItems="{settings>/grouping}">
|
|
7
|
+
<MessageItem type="{settings>type}" title="{settings>message}" description="{settings>description}"
|
|
8
8
|
longtextUrl="{settings>descriptionUrl}" groupName="{= ${settings>/messageToGroupName}[${settings>id}] || ${settings>/genericGroupName} }" />
|
|
9
9
|
</MessageView>
|
|
10
10
|
</content>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<Text text="{settings>/title}" />
|
|
15
15
|
</contentMiddle>
|
|
16
16
|
<contentLeft>
|
|
17
|
-
<Button icon="sap-icon://nav-back" visible="{settings>/backButtonVisible}" press="onBackButtonPress"/>
|
|
17
|
+
<Button icon="sap-icon://nav-back" visible="{settings>/backButtonVisible}" press=".onBackButtonPress"/>
|
|
18
18
|
<core:Icon
|
|
19
19
|
src="{path: 'settings>/state', formatter: '.getSeverityIconFromIconPool'}"
|
|
20
20
|
color="{path: 'settings>/state', formatter: '.getIconColor'}"
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
</Bar>
|
|
24
24
|
</customHeader>
|
|
25
25
|
<buttons>
|
|
26
|
-
<Button text="{settings>/actionButtonText}" visible="{settings>/showActionButton}" press="onActionButtonPressed" type="Emphasized"/>
|
|
27
|
-
<Button text="{=${settings>/showActionButton} ? ${settings>/cancelButtonText} : ${settings>/closeButtonText}}" press="onMessageDialogClose"/>
|
|
26
|
+
<Button text="{settings>/actionButtonText}" visible="{settings>/showActionButton}" press=".onActionButtonPressed" type="Emphasized"/>
|
|
27
|
+
<Button text="{=${settings>/showActionButton} ? ${settings>/cancelButtonText} : ${settings>/closeButtonText}}" press=".onMessageDialogClose"/>
|
|
28
28
|
</buttons>
|
|
29
29
|
</Dialog>
|
|
30
30
|
</core:FragmentDefinition>
|
package/src/sap/suite/ui/generic/template/fragments/MessageInfluencingCRUDAction.fragment.xml
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
|
-
<Dialog class="sapUiNoContentPadding" id="ShowConfirmationOnDraftActivate" state="{model>/state}" afterClose="afterClose" type="Message" initialFocus="Close"
|
|
2
|
+
<Dialog class="sapUiNoContentPadding" id="ShowConfirmationOnDraftActivate" state="{model>/state}" afterClose=".afterClose" type="Message" initialFocus="Close"
|
|
3
3
|
showHeader="true" horizontalScrolling="false" draggable="true"
|
|
4
4
|
contentHeight="440px" contentWidth="440px" verticalScrolling="false" resizable="true">
|
|
5
5
|
<content>
|
|
6
|
-
<MessageView id="messageView" items="{msg>/}" showDetailsPageHeader="false" itemSelect="onMessageSelect" activeTitlePress="titlePressed" groupItems="true">
|
|
7
|
-
<MessageItem id="messageItem" type="{msg>type}" title="{msg>message}" description="{msg>description}"
|
|
6
|
+
<MessageView id="messageView" items="{msg>/}" showDetailsPageHeader="false" itemSelect=".onMessageSelect" activeTitlePress=".titlePressed" groupItems="true">
|
|
7
|
+
<MessageItem id="messageItem" type="{msg>type}" title="{msg>message}" description="{msg>description}"
|
|
8
8
|
subtitle="{= (${model>/messageToSubtitle} || {})[${msg>id}] }"
|
|
9
|
-
longtextUrl="{msg>descriptionUrl}" activeTitle="{path: 'msg>controlIds', formatter: '.isPositionable'}"
|
|
9
|
+
longtextUrl="{msg>descriptionUrl}" activeTitle="{path: 'msg>controlIds', formatter: '.isPositionable'}"
|
|
10
10
|
groupName="{= (${model>/messageToGroupName} || {})[${msg>id}] }" />
|
|
11
11
|
</MessageView>
|
|
12
12
|
</content>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<Title level="H1" text="{model>/title}"/>
|
|
17
17
|
</contentMiddle>
|
|
18
18
|
<contentLeft>
|
|
19
|
-
<Button icon="sap-icon://nav-back" visible="{model>/backbtnvisibility}" press="onBackButtonPress" tooltip="{i18n>BACK}" />
|
|
19
|
+
<Button icon="sap-icon://nav-back" visible="{model>/backbtnvisibility}" press=".onBackButtonPress" tooltip="{i18n>BACK}" />
|
|
20
20
|
<core:Icon
|
|
21
21
|
src="{path: 'model>/messageType', formatter: '.getSeverityIconFromIconPool'}"
|
|
22
22
|
color="{path: 'model>/messageType', formatter: '.getIconColor'}"/>
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
</Bar>
|
|
25
25
|
</customHeader>
|
|
26
26
|
<beginButton>
|
|
27
|
-
<Button text="{model>/CRUDAction}" visible="{= ${model>/situation} === 4}" press="onAccept" type="Emphasized"/>
|
|
27
|
+
<Button text="{model>/CRUDAction}" visible="{= ${model>/situation} === 4}" press=".onAccept" type="Emphasized"/>
|
|
28
28
|
</beginButton>
|
|
29
29
|
<endButton>
|
|
30
|
-
<Button text="{i18n>CANCEL}" press="onReject"/>
|
|
30
|
+
<Button text="{i18n>CANCEL}" press=".onReject"/>
|
|
31
31
|
</endButton>
|
|
32
32
|
</Dialog>
|
|
33
33
|
</core:FragmentDefinition>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<core:FragmentDefinition
|
|
2
2
|
xmlns="sap.m"
|
|
3
3
|
xmlns:core="sap.ui.core">
|
|
4
|
-
<MessagePopover groupItems="true" items="{msg>/}" activeTitlePress="titlePressed" beforeOpen="beforeOpen" afterClose="afterClose" >
|
|
4
|
+
<MessagePopover groupItems="true" items="{msg>/}" activeTitlePress=".titlePressed" beforeOpen=".beforeOpen" afterClose=".afterClose" >
|
|
5
5
|
<MessageItem type="{msg>type}" title="{msg>message}"
|
|
6
6
|
subtitle="{parts:[{path: 'msg>id'}, {path: 'msg>controlIds'}, {path: 'msg>additionalText'}, {path: 'helper>/isPopoverOpen'}, {path: 'helper>/heartBeat'}], formatter: '.getSubtitle'}"
|
|
7
7
|
description="{parts:[{path: 'msg>id'}, {path: 'msg>controlIds'}, {path: 'msg>description'}, {path: 'helper>/isPopoverOpen'}, {path: 'helper>/heartBeat'}], formatter: '.getDescription'}"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
text="{i18n>ST_AI_EE_BUTTON_LABEL}"
|
|
14
14
|
icon="sap-icon://ai"
|
|
15
15
|
visible="{= ${helper>/isAIErrorExplanationEnabled} && ${msg>type} !== 'Information'}"
|
|
16
|
-
press="generateErrorExplanation">
|
|
16
|
+
press=".generateErrorExplanation">
|
|
17
17
|
<customData>
|
|
18
18
|
<core:CustomData key="message" value="{msg>message}" />
|
|
19
19
|
<core:CustomData key="description" value="{msg>description}" />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:footerbar="sap.ushell.ui.footerbar">
|
|
2
2
|
<Menu>
|
|
3
|
-
<MenuItem id="shareEmailButton" icon="sap-icon://email" press="sharePageToPressed('Email')" text="{share>/emailButtonText}" class="sapMFlexBox" visible="{= !${ui>/createMode}}"/>
|
|
4
|
-
<MenuItem id="shareJamButton" icon="sap-icon://share-2" press="shareJamPressed" text="{share>/jamButtonText}" visible="{share>/jamVisible}" class="sapMFlexBox"/>
|
|
5
|
-
<MenuItem id="bookmarkButton" icon="{share>/tileIcon}" press="shareTilePressed" text="{share>/tileText}" visible="{share>/tileVisible}" class="sapMFlexBox"/>
|
|
3
|
+
<MenuItem id="shareEmailButton" icon="sap-icon://email" press=".sharePageToPressed('Email')" text="{share>/emailButtonText}" class="sapMFlexBox" visible="{= !${ui>/createMode}}"/>
|
|
4
|
+
<MenuItem id="shareJamButton" icon="sap-icon://share-2" press=".shareJamPressed" text="{share>/jamButtonText}" visible="{share>/jamVisible}" class="sapMFlexBox"/>
|
|
5
|
+
<MenuItem id="bookmarkButton" icon="{share>/tileIcon}" press=".shareTilePressed" text="{share>/tileText}" visible="{share>/tileVisible}" class="sapMFlexBox"/>
|
|
6
6
|
</Menu>
|
|
7
7
|
</core:FragmentDefinition>
|
|
@@ -8,18 +8,19 @@ sap.ui.define([
|
|
|
8
8
|
"sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/DynamicPageWrapper",
|
|
9
9
|
"sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper",
|
|
10
10
|
"sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/ObjectPageLayoutWrapper",
|
|
11
|
-
"sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SearchFieldWrapper"
|
|
11
|
+
"sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SearchFieldWrapper",
|
|
12
|
+
"sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/PreliminaryWrapper"
|
|
12
13
|
], function (BaseObject, extend, controlHelper, SmartFilterBarWrapper, SmartTableWrapper, SmartChartWrapper,
|
|
13
|
-
DynamicPageWrapper, SmartVariantManagementWrapper, ObjectPageLayoutWrapper, SearchFieldWrapper) {
|
|
14
|
+
DynamicPageWrapper, SmartVariantManagementWrapper, ObjectPageLayoutWrapper, SearchFieldWrapper, PreliminaryWrapper) {
|
|
14
15
|
"use strict";
|
|
15
|
-
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Dummy wrapper for not existing or not (yet) supported controls (either not carrying a state or to be added in future). Also used as interface description for wrapper classes.
|
|
18
19
|
*/
|
|
19
20
|
var oDummyWrapper = {
|
|
20
21
|
/**
|
|
21
22
|
* Retrieve the current state of the control
|
|
22
|
-
*
|
|
23
|
+
*
|
|
23
24
|
* @return {object} serializable json object describing the current state of the control. Will be provided to setState exactly the same when restoring the state. Note: Structure of this object
|
|
24
25
|
* is up to the wrapper, no one outside will rely on it - with one exception: legacyStateHandler translates legacy states (without clear separation per control) to this format. Open:
|
|
25
26
|
* Should legacyStateHandler be responsible for providing most current version, or only first control specific version (i.e. first version using wrapper), and wrapper should be
|
|
@@ -28,7 +29,7 @@ sap.ui.define([
|
|
|
28
29
|
getState: Function.prototype,
|
|
29
30
|
/**
|
|
30
31
|
* Restore the control to the given state
|
|
31
|
-
*
|
|
32
|
+
*
|
|
32
33
|
* @param {object} oState json object describing the state as provided by getState. Note: can also be undefined, if an old state is restored (from a release where the state of this control was
|
|
33
34
|
* not stored), if a state is provided in the URL that cannot be read (anymore), or on OP in discovery mode, if the user navigates to a new object instance - in these cases, the
|
|
34
35
|
* control has to be brought (back) into its initial state. Currently, expectation is the state to be restored synchronously. Planned:
|
|
@@ -40,13 +41,13 @@ sap.ui.define([
|
|
|
40
41
|
* wrapper must provide an event to indicate a state change. Must be called whenever a user interacts with the control to change its state, but not when state is changed programmatically (e.g.
|
|
41
42
|
* from setState, or when user interacts with a different control causing also this one to change (in that case, the event from the other control should be called) Function to register for that
|
|
42
43
|
* event
|
|
43
|
-
*
|
|
44
|
+
*
|
|
44
45
|
* @param {function} fnHandler event handler function being attached
|
|
45
46
|
*/
|
|
46
47
|
attachStateChanged: Function.prototype,
|
|
47
48
|
/**
|
|
48
49
|
* Function to deregister from event. Currently not used, but should be provided for symmetry reasons.
|
|
49
|
-
*
|
|
50
|
+
*
|
|
50
51
|
* @param {function} fnHandler event handler function being attached. Should only be deregistered, if provided exactly like in registration
|
|
51
52
|
*/
|
|
52
53
|
detachStateChanged: Function.prototype,
|
|
@@ -57,7 +58,7 @@ sap.ui.define([
|
|
|
57
58
|
|
|
58
59
|
/**
|
|
59
60
|
* Returns true if the state provided as argument is same as the state applied.
|
|
60
|
-
* @param {Object} oState State object which needs to be checked against the current
|
|
61
|
+
* @param {Object} oState State object which needs to be checked against the current
|
|
61
62
|
* state of the wrapper.
|
|
62
63
|
* @returns {boolean} True in case State object passed as argument match with current state else false.
|
|
63
64
|
*/
|
|
@@ -90,15 +91,66 @@ sap.ui.define([
|
|
|
90
91
|
};
|
|
91
92
|
return extend({}, oWrapper, oOverride);
|
|
92
93
|
}
|
|
93
|
-
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Private helper function to create the real wrapper based on type and control.
|
|
97
|
+
* This function is injected into PreliminaryWrapper and not exposed in the factory's public API.
|
|
98
|
+
* Parameters are ordered to allow using .bind() for partial application.
|
|
99
|
+
*
|
|
100
|
+
* @param {string} sType - The type of control (e.g., "SmartTable", "SmartChart")
|
|
101
|
+
* @param {object} [mParams] - Additional parameters passed to constructor of wrapper
|
|
102
|
+
* @param {sap.ui.core.Control} oControl - The control instance (last to enable .bind())
|
|
103
|
+
* @return {object} The real wrapper object for the control with helper methods attached
|
|
104
|
+
*/
|
|
105
|
+
function fnCreateRealWrapper(sType, mParams, oControl) {
|
|
106
|
+
var oWrapper;
|
|
107
|
+
switch (sType) {
|
|
108
|
+
case "SmartFilterBar":
|
|
109
|
+
oWrapper = new SmartFilterBarWrapper(oControl, oFactory, mParams);
|
|
110
|
+
break;
|
|
111
|
+
case "SmartTable":
|
|
112
|
+
oWrapper = new SmartTableWrapper(oControl, oController, oFactory);
|
|
113
|
+
break;
|
|
114
|
+
case "SmartChart":
|
|
115
|
+
oWrapper = new SmartChartWrapper(oControl, oController, oFactory);
|
|
116
|
+
break;
|
|
117
|
+
case "DynamicPage":
|
|
118
|
+
oWrapper = new DynamicPageWrapper(oControl);
|
|
119
|
+
break;
|
|
120
|
+
case "SmartVariantManagement":
|
|
121
|
+
oWrapper = new SmartVariantManagementWrapper(oControl, oController, oFactory, mParams);
|
|
122
|
+
break;
|
|
123
|
+
case "ObjectPageLayout":
|
|
124
|
+
oWrapper = new ObjectPageLayoutWrapper(oControl);
|
|
125
|
+
break;
|
|
126
|
+
case "SearchField":
|
|
127
|
+
oWrapper = new SearchFieldWrapper(oControl);
|
|
128
|
+
break;
|
|
129
|
+
default:
|
|
130
|
+
// control not carrying a state or no wrapper built yet
|
|
131
|
+
oWrapper = oDummyWrapper;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Add helper methods to the real wrapper
|
|
135
|
+
var sId = oController.getView().getLocalId(oControl.getId());
|
|
136
|
+
oWrapper.getLocalId = function() { return sId; };
|
|
137
|
+
oWrapper.isCurrentState = oWrapper.isCurrentState || function (oState) {
|
|
138
|
+
return JSON.stringify(oState) === JSON.stringify(oWrapper.getState());
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
return oWrapper;
|
|
142
|
+
}
|
|
143
|
+
|
|
94
144
|
var oFactory = {
|
|
95
145
|
getSuppressChangeEventWhenApplyingWrapper: getSuppressChangeEventWhenApplyingWrapper,
|
|
146
|
+
|
|
96
147
|
/**
|
|
97
|
-
* Factory function to generate control wrapper object based on control type
|
|
98
|
-
*
|
|
148
|
+
* Factory function to generate control wrapper object based on control type.
|
|
149
|
+
* Always returns a PreliminaryWrapper, which delegates to the real wrapper internally.
|
|
150
|
+
*
|
|
99
151
|
* @param {sap.ui.core.Control} oControl - control a wrapper should be provided for
|
|
100
152
|
* @param {object} [mParams] - map with any additional parameters passed to constructor of wrapper
|
|
101
|
-
* @return {object} wrapper object for the control
|
|
153
|
+
* @return {object} wrapper object for the control (always a PreliminaryWrapper)
|
|
102
154
|
*/
|
|
103
155
|
getControlStateWrapper: function (oControl, mParams) {
|
|
104
156
|
// checking for control here (instead of at all callers) allows simple use for optional controls
|
|
@@ -107,52 +159,66 @@ sap.ui.define([
|
|
|
107
159
|
// no need to add the dummy to the map
|
|
108
160
|
return oDummyWrapper;
|
|
109
161
|
}
|
|
110
|
-
var sId =
|
|
162
|
+
var sId = oController.getView().getLocalId(oControl.getId());
|
|
163
|
+
|
|
111
164
|
if (!mWrappers[sId]) {
|
|
112
|
-
|
|
165
|
+
// Determine control type
|
|
166
|
+
var sType;
|
|
113
167
|
switch (true) {
|
|
114
168
|
case controlHelper.isSmartFilterBar(oControl):
|
|
115
|
-
|
|
169
|
+
sType = "SmartFilterBar";
|
|
116
170
|
break;
|
|
117
171
|
case controlHelper.isSmartTable(oControl):
|
|
118
|
-
|
|
172
|
+
sType = "SmartTable";
|
|
119
173
|
break;
|
|
120
174
|
case controlHelper.isSmartChart(oControl):
|
|
121
|
-
|
|
175
|
+
sType = "SmartChart";
|
|
122
176
|
break;
|
|
123
177
|
case controlHelper.isDynamicPage(oControl):
|
|
124
|
-
|
|
178
|
+
sType = "DynamicPage";
|
|
125
179
|
break;
|
|
126
180
|
case controlHelper.isSmartVariantManagement(oControl):
|
|
127
|
-
|
|
181
|
+
sType = "SmartVariantManagement";
|
|
128
182
|
break;
|
|
129
183
|
case controlHelper.isObjectObjectPageLayout(oControl):
|
|
130
|
-
|
|
184
|
+
sType = "ObjectPageLayout";
|
|
131
185
|
break;
|
|
132
186
|
case controlHelper.isSearchField(oControl):
|
|
133
|
-
|
|
187
|
+
sType = "SearchField";
|
|
134
188
|
break;
|
|
135
189
|
default:
|
|
136
|
-
// control not carrying a state or no wrapper
|
|
137
|
-
|
|
190
|
+
// control not carrying a state or no wrapper built yet
|
|
191
|
+
return oDummyWrapper;
|
|
138
192
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
193
|
+
|
|
194
|
+
// Create bound function with type and params, leaving oControl to be provided later
|
|
195
|
+
var fnBoundCreator = fnCreateRealWrapper.bind(null, sType, mParams);
|
|
196
|
+
|
|
197
|
+
// Always create a PreliminaryWrapper
|
|
198
|
+
var oPreliminaryWrapper = new PreliminaryWrapper(sId, fnBoundCreator);
|
|
199
|
+
|
|
200
|
+
// Since control is available, immediately set it
|
|
201
|
+
oPreliminaryWrapper.setControl(oControl);
|
|
202
|
+
|
|
203
|
+
// Store the PreliminaryWrapper in map (not the real wrapper)
|
|
204
|
+
mWrappers[sId] = oPreliminaryWrapper;
|
|
205
|
+
} else if (mWrappers[sId].setControl) {
|
|
206
|
+
// PreliminaryWrapper already exists but control wasn't set yet - set it now
|
|
207
|
+
mWrappers[sId].setControl(oControl);
|
|
145
208
|
}
|
|
209
|
+
|
|
146
210
|
return mWrappers[sId];
|
|
147
211
|
},
|
|
148
212
|
|
|
149
213
|
/**
|
|
150
|
-
* Factory function to generate control wrapper object based on control type
|
|
151
|
-
*
|
|
152
|
-
*
|
|
214
|
+
* Factory function to generate control wrapper object based on control ID and type.
|
|
215
|
+
* Creates a PreliminaryWrapper when the control doesn't exist yet (e.g., lazy loading).
|
|
216
|
+
* Always returns a PreliminaryWrapper, which delegates to the real wrapper internally.
|
|
217
|
+
*
|
|
218
|
+
* @param {string} sControlId - ID of the control for which wrapper needs to be initiated
|
|
153
219
|
* @param {string} sControlType - Type of the control for which wrapper needs to be initiated
|
|
154
220
|
* @param {object} [mParams] - map with any additional parameters passed to constructor of wrapper
|
|
155
|
-
* @return {object} wrapper object for the control
|
|
221
|
+
* @return {object} wrapper object for the control (always a PreliminaryWrapper)
|
|
156
222
|
*/
|
|
157
223
|
getControlStateWrapperById: function (sControlId, sControlType, mParams) {
|
|
158
224
|
// checking for control here (instead of at all callers) allows simple use for optional controls
|
|
@@ -161,40 +227,15 @@ sap.ui.define([
|
|
|
161
227
|
// no need to add the dummy to the map
|
|
162
228
|
return oDummyWrapper;
|
|
163
229
|
}
|
|
164
|
-
var sId =
|
|
230
|
+
var sId = oController.getView().getLocalId(sControlId);
|
|
165
231
|
if (!mWrappers[sId]) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
break;
|
|
174
|
-
case "SmartChart":
|
|
175
|
-
oWrapper = new SmartChartWrapper(sControlId, oController, oFactory);
|
|
176
|
-
break;
|
|
177
|
-
case "DynamicPage":
|
|
178
|
-
oWrapper = new DynamicPageWrapper();
|
|
179
|
-
break;
|
|
180
|
-
case "SmartVariantManagement":
|
|
181
|
-
oWrapper = new SmartVariantManagementWrapper(sControlId, oController, oFactory, mParams);
|
|
182
|
-
break;
|
|
183
|
-
case "ObjectPageLayout":
|
|
184
|
-
oWrapper = new ObjectPageLayoutWrapper(sControlId);
|
|
185
|
-
break;
|
|
186
|
-
case "SearchField":
|
|
187
|
-
oWrapper = new SearchFieldWrapper(sControlId);
|
|
188
|
-
break;
|
|
189
|
-
default:
|
|
190
|
-
// control not carrying a state or no wrapper build yet
|
|
191
|
-
oWrapper = oDummyWrapper;
|
|
192
|
-
}
|
|
193
|
-
oWrapper.getLocalId = function() { return sId; };
|
|
194
|
-
oWrapper.isCurrentState = oWrapper.isCurrentState || function (oState) {
|
|
195
|
-
return JSON.stringify(oState) === JSON.stringify(oWrapper.getState());
|
|
196
|
-
};
|
|
197
|
-
mWrappers[sId] = oWrapper;
|
|
232
|
+
// Create bound function with type and params, leaving oControl to be provided later
|
|
233
|
+
var fnBoundCreator = fnCreateRealWrapper.bind(null, sControlType, mParams);
|
|
234
|
+
|
|
235
|
+
// Create a PreliminaryWrapper (control will be set later)
|
|
236
|
+
var oPreliminaryWrapper = new PreliminaryWrapper(sId, fnBoundCreator);
|
|
237
|
+
|
|
238
|
+
mWrappers[sId] = oPreliminaryWrapper;
|
|
198
239
|
}
|
|
199
240
|
return mWrappers[sId];
|
|
200
241
|
}
|
|
@@ -207,4 +248,4 @@ sap.ui.define([
|
|
|
207
248
|
extend(this, getMethods(oController));
|
|
208
249
|
}
|
|
209
250
|
});
|
|
210
|
-
});
|
|
251
|
+
});
|
|
@@ -2,67 +2,35 @@ sap.ui.define([
|
|
|
2
2
|
], function() {
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
5
|
-
function DynamicPageWrapper(
|
|
6
|
-
var oDynamicPage;
|
|
7
|
-
var oPreliminaryState;
|
|
8
|
-
var oControlAssignedResolve;
|
|
9
|
-
var oControlAssignedPromise = new Promise(function(resolve) {
|
|
10
|
-
oControlAssignedResolve = resolve;
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
if (typeof vTarget !== "string") {
|
|
14
|
-
fnSetControl(vTarget);
|
|
15
|
-
}
|
|
16
|
-
|
|
5
|
+
function DynamicPageWrapper(oDynamicPage) {
|
|
17
6
|
// Returns the state of the dynamic page
|
|
18
|
-
// Right now we only consider the pinned status of the dynamic page header
|
|
7
|
+
// Right now we only consider the pinned status of the dynamic page header
|
|
19
8
|
function fnGetState() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return oControlState;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return oPreliminaryState;
|
|
9
|
+
var oControlState = {};
|
|
10
|
+
oControlState.headerPinned = oDynamicPage.getHeaderPinned();
|
|
11
|
+
return oControlState;
|
|
27
12
|
}
|
|
28
13
|
|
|
29
14
|
function fnSetState(oState) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} else {
|
|
38
|
-
oDynamicPage.setHeaderPinned(false);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
15
|
+
if (oState && oState.headerPinned) {
|
|
16
|
+
// There is a possibility that the header is collapsed at this point. Make sure it is expanded if we know the header is to be pinned.
|
|
17
|
+
oDynamicPage.setHeaderExpanded(true);
|
|
18
|
+
oDynamicPage.setHeaderPinned(true);
|
|
19
|
+
} else {
|
|
20
|
+
oDynamicPage.setHeaderPinned(false);
|
|
21
|
+
}
|
|
41
22
|
}
|
|
42
23
|
|
|
43
24
|
function fnAttachStateChanged(fnHandler) {
|
|
44
|
-
|
|
45
|
-
oDynamicPage.attachPinnedStateChange(fnHandler);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function fnSetControl(oControl) {
|
|
50
|
-
oDynamicPage = oControl;
|
|
51
|
-
oControlAssignedResolve(oDynamicPage);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function fnSetHeaderState(oController, bHeaderToBeExpanded) {
|
|
55
|
-
oController.getOwnerComponent().getModel("_templPriv").setProperty("/listReport/isHeaderExpanded", bHeaderToBeExpanded);
|
|
25
|
+
oDynamicPage.attachPinnedStateChange(fnHandler);
|
|
56
26
|
}
|
|
57
27
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
setHeaderState: fnSetHeaderState
|
|
64
|
-
};
|
|
28
|
+
return {
|
|
29
|
+
getState: fnGetState,
|
|
30
|
+
setState: fnSetState,
|
|
31
|
+
attachStateChanged: fnAttachStateChanged
|
|
32
|
+
};
|
|
65
33
|
}
|
|
66
34
|
|
|
67
35
|
return DynamicPageWrapper;
|
|
68
|
-
});
|
|
36
|
+
});
|
|
@@ -2,57 +2,35 @@ sap.ui.define([
|
|
|
2
2
|
], function() {
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
5
|
-
function ObjectPageLayoutWrapper(
|
|
6
|
-
var oObjectPageLayout
|
|
7
|
-
var oControlAssignedPromise = new Promise(function(resolve) {
|
|
8
|
-
oControlAssignedResolve = resolve;
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
if (typeof vTarget !== "string") {
|
|
12
|
-
fnSetControl(vTarget);
|
|
13
|
-
}
|
|
5
|
+
function ObjectPageLayoutWrapper(oControl) {
|
|
6
|
+
var oObjectPageLayout = oControl;
|
|
14
7
|
|
|
15
8
|
// Returns the state of the ObjectPageLayout
|
|
16
|
-
// Right now we only consider the pinned status of the ObjectPageLayout
|
|
9
|
+
// Right now we only consider the pinned status of the ObjectPageLayout
|
|
17
10
|
function fnGetObjectPageLayoutState() {
|
|
18
|
-
if (!oObjectPageLayout) {
|
|
19
|
-
return oPreliminaryState;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
11
|
var oControlState = {};
|
|
23
12
|
oControlState.headerPinned = oObjectPageLayout.getHeaderContentPinned();
|
|
24
13
|
return oControlState;
|
|
25
14
|
}
|
|
26
15
|
|
|
27
16
|
function fnSetObjectPageLayoutState(oState) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
oObjectPageLayout.setHeaderContentPinned(false);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
17
|
+
if (oState && oState.headerPinned) {
|
|
18
|
+
oObjectPageLayout.setHeaderContentPinned(true);
|
|
19
|
+
} else {
|
|
20
|
+
oObjectPageLayout.setHeaderContentPinned(false);
|
|
21
|
+
}
|
|
36
22
|
}
|
|
37
23
|
|
|
38
24
|
function fnAttachStateChanged(fnHandler) {
|
|
39
|
-
|
|
40
|
-
oObjectPageLayout.attachHeaderContentPinnedStateChange(fnHandler);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function fnSetControl(oControl) {
|
|
45
|
-
oObjectPageLayout = oControl;
|
|
46
|
-
oControlAssignedResolve(oObjectPageLayout);
|
|
25
|
+
oObjectPageLayout.attachHeaderContentPinnedStateChange(fnHandler);
|
|
47
26
|
}
|
|
48
27
|
|
|
49
28
|
return {
|
|
50
29
|
getState: fnGetObjectPageLayoutState,
|
|
51
30
|
setState: fnSetObjectPageLayoutState,
|
|
52
|
-
setControl: fnSetControl,
|
|
53
31
|
attachStateChanged: fnAttachStateChanged
|
|
54
32
|
};
|
|
55
33
|
}
|
|
56
34
|
|
|
57
35
|
return ObjectPageLayoutWrapper;
|
|
58
|
-
});
|
|
36
|
+
});
|