@sapui5/sap.fe.core 1.99.0 → 1.100.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 +4 -2
- package/src/sap/fe/core/.library +1 -1
- package/src/sap/fe/core/AnnotationHelper.js +1 -69
- package/src/sap/fe/core/AnnotationHelper.ts +0 -70
- package/src/sap/fe/core/AppComponent.js +388 -399
- package/src/sap/fe/core/AppComponent.ts +403 -0
- package/src/sap/fe/core/AppStateHandler.js +127 -158
- package/src/sap/fe/core/BaseController.js +82 -58
- package/src/sap/fe/core/BaseController.ts +68 -0
- package/src/sap/fe/core/CommonUtils.js +111 -20
- package/src/sap/fe/core/CommonUtils.ts +131 -32
- package/src/sap/fe/core/ExtensionAPI.js +278 -274
- package/src/sap/fe/core/ExtensionAPI.ts +250 -0
- package/src/sap/fe/core/PageController.js +157 -29
- package/src/sap/fe/core/PageController.ts +60 -32
- package/src/sap/fe/core/RouterProxy.js +694 -756
- package/src/sap/fe/core/RouterProxy.ts +11 -9
- package/src/sap/fe/core/Synchronization.js +21 -31
- package/src/sap/fe/core/TemplateComponent.js +1 -1
- package/src/sap/fe/core/TemplateComponent.ts +10 -3
- package/src/sap/fe/core/TemplateModel.js +20 -38
- package/src/sap/fe/core/TemplateModel.ts +1 -1
- package/src/sap/fe/core/TransactionHelper.js +1354 -1370
- package/src/sap/fe/core/TransactionHelper.ts +33 -22
- package/src/sap/fe/core/actions/collaboration/ActivitySync.js +392 -0
- package/src/sap/fe/core/actions/collaboration/ActivitySync.ts +355 -0
- package/src/sap/fe/core/actions/collaboration/CollaborationCommon.js +136 -0
- package/src/sap/fe/core/actions/collaboration/CollaborationCommon.ts +119 -0
- package/src/sap/fe/core/actions/collaboration/Manage.js +262 -0
- package/src/sap/fe/core/actions/collaboration/Manage.ts +244 -0
- package/src/sap/fe/core/actions/collaboration/ManageDialog.fragment.xml +103 -0
- package/src/sap/fe/core/actions/collaboration/UserDetails.fragment.xml +13 -0
- package/src/sap/fe/core/actions/draft.js +30 -68
- package/src/sap/fe/core/actions/draft.ts +44 -71
- package/src/sap/fe/core/actions/messageHandling.js +55 -36
- package/src/sap/fe/core/actions/messageHandling.ts +66 -46
- package/src/sap/fe/core/actions/operations.js +34 -15
- package/src/sap/fe/core/actions/operations.ts +48 -18
- package/src/sap/fe/core/actions/sticky.js +17 -4
- package/src/sap/fe/core/actions/sticky.ts +21 -4
- package/src/sap/fe/core/controllerextensions/ControllerExtensionMetadata.js +69 -66
- package/src/sap/fe/core/controllerextensions/ControllerExtensionMetadata.ts +65 -0
- package/src/sap/fe/core/controllerextensions/EditFlow.js +1593 -1669
- package/src/sap/fe/core/controllerextensions/EditFlow.ts +1672 -0
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.js +79 -54
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.ts +61 -0
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.js +718 -779
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.ts +783 -0
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +796 -816
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.ts +803 -0
- package/src/sap/fe/core/controllerextensions/InternalRouting.js +1004 -1005
- package/src/sap/fe/core/controllerextensions/InternalRouting.ts +978 -0
- package/src/sap/fe/core/controllerextensions/KPIManagement.js +487 -521
- package/src/sap/fe/core/controllerextensions/KPIManagement.ts +2 -2
- package/src/sap/fe/core/controllerextensions/MassEdit.js +141 -169
- package/src/sap/fe/core/controllerextensions/MassEdit.ts +156 -0
- package/src/sap/fe/core/controllerextensions/MessageHandler.js +233 -244
- package/src/sap/fe/core/controllerextensions/MessageHandler.ts +225 -0
- package/src/sap/fe/core/controllerextensions/PageReady.js +301 -336
- package/src/sap/fe/core/controllerextensions/PageReady.ts +12 -10
- package/src/sap/fe/core/controllerextensions/Paginator.js +188 -175
- package/src/sap/fe/core/controllerextensions/Paginator.ts +163 -0
- package/src/sap/fe/core/controllerextensions/Placeholder.js +157 -149
- package/src/sap/fe/core/controllerextensions/Placeholder.ts +151 -0
- package/src/sap/fe/core/controllerextensions/Routing.js +144 -125
- package/src/sap/fe/core/controllerextensions/Routing.ts +132 -0
- package/src/sap/fe/core/controllerextensions/RoutingListener.js +7 -6
- package/src/sap/fe/core/controllerextensions/RoutingListener.ts +3 -0
- package/src/sap/fe/core/controllerextensions/Share.js +230 -268
- package/src/sap/fe/core/controllerextensions/Share.ts +231 -0
- package/src/sap/fe/core/controllerextensions/SideEffects.js +592 -633
- package/src/sap/fe/core/controllerextensions/SideEffects.ts +8 -7
- package/src/sap/fe/core/controllerextensions/ViewState.js +788 -806
- package/src/sap/fe/core/controllerextensions/ViewState.ts +805 -0
- package/src/sap/fe/core/controls/ActionParameterDialog.fragment.xml +2 -2
- package/src/sap/fe/core/controls/ActionPartial.fragment.xml +2 -2
- package/src/sap/fe/core/controls/CommandExecution.js +67 -66
- package/src/sap/fe/core/controls/CommandExecution.ts +72 -0
- package/src/sap/fe/core/controls/ConditionalWrapper.js +90 -75
- package/src/sap/fe/core/controls/ConditionalWrapper.ts +83 -0
- package/src/sap/fe/core/controls/CustomQuickViewPage.js +130 -125
- package/src/sap/fe/core/controls/CustomQuickViewPage.ts +126 -0
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.js +103 -112
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.ts +101 -0
- package/src/sap/fe/core/controls/FieldWrapper.js +122 -135
- package/src/sap/fe/core/controls/FieldWrapper.ts +115 -0
- package/src/sap/fe/core/controls/FilterBar.js +162 -159
- package/src/sap/fe/core/controls/FilterBar.ts +143 -0
- package/src/sap/fe/core/controls/FormElementWrapper.js +45 -39
- package/src/sap/fe/core/controls/FormElementWrapper.ts +40 -0
- package/src/sap/fe/core/controls/MultiValueParameterDelegate.js +37 -42
- package/src/sap/fe/core/controls/MultiValueParameterDelegate.ts +31 -0
- package/src/sap/fe/core/controls/filterbar/FilterContainer.js +126 -116
- package/src/sap/fe/core/controls/filterbar/FilterContainer.ts +98 -0
- package/src/sap/fe/core/controls/filterbar/VisualFilter.js +241 -255
- package/src/sap/fe/core/controls/filterbar/VisualFilter.ts +245 -0
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.js +150 -141
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.ts +125 -0
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.js +335 -322
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.ts +337 -0
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.js +74 -74
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.ts +70 -0
- package/src/sap/fe/core/converters/ConverterContext.js +348 -379
- package/src/sap/fe/core/converters/ConverterContext.ts +19 -16
- package/src/sap/fe/core/converters/ManifestSettings.js +12 -1
- package/src/sap/fe/core/converters/ManifestSettings.ts +12 -1
- package/src/sap/fe/core/converters/ManifestWrapper.js +354 -378
- package/src/sap/fe/core/converters/ManifestWrapper.ts +10 -0
- package/src/sap/fe/core/converters/MetaModelConverter.js +6 -4
- package/src/sap/fe/core/converters/MetaModelConverter.ts +5 -2
- package/src/sap/fe/core/converters/TemplateConverter.js +1 -1
- package/src/sap/fe/core/converters/TemplateConverter.ts +2 -1
- package/src/sap/fe/core/converters/annotations/DataField.js +26 -12
- package/src/sap/fe/core/converters/annotations/DataField.ts +37 -13
- package/src/sap/fe/core/converters/controls/Common/Form.js +2 -2
- package/src/sap/fe/core/converters/controls/Common/Form.ts +4 -2
- package/src/sap/fe/core/converters/controls/Common/KPI.js +1 -1
- package/src/sap/fe/core/converters/controls/Common/KPI.ts +3 -2
- package/src/sap/fe/core/converters/controls/Common/Table.js +130 -23
- package/src/sap/fe/core/converters/controls/Common/Table.ts +134 -29
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +118 -53
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +156 -93
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +161 -207
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +148 -206
- package/src/sap/fe/core/converters/helpers/Aggregation.js +115 -133
- package/src/sap/fe/core/converters/helpers/BindingHelper.js +20 -6
- package/src/sap/fe/core/converters/helpers/BindingHelper.ts +16 -4
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.js +12 -1
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.ts +11 -0
- package/src/sap/fe/core/converters/helpers/Key.js +42 -57
- package/src/sap/fe/core/converters/helpers/Key.ts +1 -1
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.js +25 -4
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.ts +20 -3
- package/src/sap/fe/core/converters/templates/ListReportConverter.js +10 -4
- package/src/sap/fe/core/converters/templates/ListReportConverter.ts +15 -4
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.js +7 -5
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.ts +5 -1
- package/src/sap/fe/core/designtime/AppComponent.designtime.js +92 -98
- package/src/sap/fe/core/designtime/AppComponent.designtime.ts +91 -0
- package/src/sap/fe/core/formatters/CollaborationFormatter.js +104 -0
- package/src/sap/fe/core/formatters/CollaborationFormatter.ts +60 -0
- package/src/sap/fe/core/formatters/TableFormatter.js +53 -2
- package/src/sap/fe/core/formatters/TableFormatter.ts +51 -0
- package/src/sap/fe/core/fpm/Component.js +50 -54
- package/src/sap/fe/core/fpm/Component.ts +48 -0
- package/src/sap/fe/core/helpers/AppStartupHelper.js +323 -309
- package/src/sap/fe/core/helpers/AppStartupHelper.ts +363 -337
- package/src/sap/fe/core/helpers/BindingExpression.js +7 -7
- package/src/sap/fe/core/helpers/BindingExpression.ts +7 -7
- package/src/sap/fe/core/helpers/ClassSupport.js +186 -62
- package/src/sap/fe/core/helpers/ClassSupport.ts +168 -52
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.js +5 -4
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.ts +1 -5
- package/src/sap/fe/core/helpers/FPMHelper.js +1 -1
- package/src/sap/fe/core/helpers/FPMHelper.ts +1 -1
- package/src/sap/fe/core/helpers/MassEditHelper.js +601 -684
- package/src/sap/fe/core/helpers/MassEditHelper.ts +699 -0
- package/src/sap/fe/core/helpers/ModelHelper.js +25 -1
- package/src/sap/fe/core/helpers/ModelHelper.ts +23 -0
- package/src/sap/fe/core/helpers/SemanticDateOperators.js +5 -1
- package/src/sap/fe/core/helpers/SemanticDateOperators.ts +4 -0
- package/src/sap/fe/core/library.js +426 -451
- package/src/sap/fe/core/library.support.js +22 -33
- package/src/sap/fe/core/library.support.ts +23 -0
- package/src/sap/fe/core/library.ts +420 -0
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.js +5 -3
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.ts +4 -1
- package/src/sap/fe/core/messagebundle.properties +22 -5
- package/src/sap/fe/core/messagebundle_ar.properties +27 -7
- package/src/sap/fe/core/messagebundle_bg.properties +27 -7
- package/src/sap/fe/core/messagebundle_ca.properties +27 -7
- package/src/sap/fe/core/messagebundle_cs.properties +27 -7
- package/src/sap/fe/core/messagebundle_cy.properties +27 -7
- package/src/sap/fe/core/messagebundle_da.properties +27 -7
- package/src/sap/fe/core/messagebundle_de.properties +27 -7
- package/src/sap/fe/core/messagebundle_el.properties +27 -7
- package/src/sap/fe/core/messagebundle_en.properties +27 -7
- package/src/sap/fe/core/messagebundle_en_GB.properties +27 -7
- package/src/sap/fe/core/messagebundle_en_US_sappsd.properties +27 -7
- package/src/sap/fe/core/messagebundle_en_US_saprigi.properties +27 -7
- package/src/sap/fe/core/messagebundle_en_US_saptrc.properties +27 -7
- package/src/sap/fe/core/messagebundle_es.properties +27 -7
- package/src/sap/fe/core/messagebundle_es_MX.properties +27 -7
- package/src/sap/fe/core/messagebundle_et.properties +27 -7
- package/src/sap/fe/core/messagebundle_fi.properties +28 -8
- package/src/sap/fe/core/messagebundle_fr.properties +28 -8
- package/src/sap/fe/core/messagebundle_fr_CA.properties +29 -9
- package/src/sap/fe/core/messagebundle_hi.properties +27 -7
- package/src/sap/fe/core/messagebundle_hr.properties +27 -7
- package/src/sap/fe/core/messagebundle_hu.properties +27 -7
- package/src/sap/fe/core/messagebundle_id.properties +27 -7
- package/src/sap/fe/core/messagebundle_it.properties +27 -7
- package/src/sap/fe/core/messagebundle_iw.properties +27 -7
- package/src/sap/fe/core/messagebundle_ja.properties +26 -6
- package/src/sap/fe/core/messagebundle_kk.properties +27 -7
- package/src/sap/fe/core/messagebundle_ko.properties +27 -7
- package/src/sap/fe/core/messagebundle_lt.properties +27 -7
- package/src/sap/fe/core/messagebundle_lv.properties +28 -8
- package/src/sap/fe/core/messagebundle_ms.properties +27 -7
- package/src/sap/fe/core/messagebundle_nl.properties +27 -7
- package/src/sap/fe/core/messagebundle_no.properties +27 -7
- package/src/sap/fe/core/messagebundle_pl.properties +27 -7
- package/src/sap/fe/core/messagebundle_pt.properties +28 -8
- package/src/sap/fe/core/messagebundle_pt_PT.properties +27 -7
- package/src/sap/fe/core/messagebundle_ro.properties +27 -7
- package/src/sap/fe/core/messagebundle_ru.properties +27 -7
- package/src/sap/fe/core/messagebundle_sh.properties +27 -7
- package/src/sap/fe/core/messagebundle_sk.properties +27 -7
- package/src/sap/fe/core/messagebundle_sl.properties +27 -7
- package/src/sap/fe/core/messagebundle_sv.properties +27 -7
- package/src/sap/fe/core/messagebundle_th.properties +26 -6
- package/src/sap/fe/core/messagebundle_tr.properties +30 -10
- package/src/sap/fe/core/messagebundle_uk.properties +27 -7
- package/src/sap/fe/core/messagebundle_vi.properties +27 -7
- package/src/sap/fe/core/messagebundle_zh_CN.properties +27 -7
- package/src/sap/fe/core/messagebundle_zh_TW.properties +27 -7
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.js +45 -71
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.js +154 -192
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.ts +4 -4
- package/src/sap/fe/core/services/EnvironmentServiceFactory.js +66 -92
- package/src/sap/fe/core/services/EnvironmentServiceFactory.ts +1 -1
- package/src/sap/fe/core/services/NavigationServiceFactory.js +284 -339
- package/src/sap/fe/core/services/NavigationServiceFactory.ts +10 -13
- package/src/sap/fe/core/services/ResourceModelServiceFactory.js +67 -102
- package/src/sap/fe/core/services/ResourceModelServiceFactory.ts +5 -2
- package/src/sap/fe/core/services/RoutingServiceFactory.js +754 -814
- package/src/sap/fe/core/services/RoutingServiceFactory.ts +13 -13
- package/src/sap/fe/core/services/ShellServicesFactory.js +649 -736
- package/src/sap/fe/core/services/ShellServicesFactory.ts +7 -4
- package/src/sap/fe/core/services/SideEffectsServiceFactory.js +567 -592
- package/src/sap/fe/core/services/SideEffectsServiceFactory.ts +22 -3
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.js +354 -386
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.ts +21 -14
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.js +1 -1
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.ts +1 -1
- package/src/sap/fe/core/support/CommonHelper.js +1 -1
- package/src/sap/fe/core/support/CommonHelper.ts +1 -1
- package/src/sap/fe/core/support/Diagnostics.js +36 -48
- package/src/sap/fe/core/templating/DataModelPathHelper.js +93 -85
- package/src/sap/fe/core/templating/DataModelPathHelper.ts +104 -95
- package/src/sap/fe/core/templating/FilterHelper.js +25 -32
- package/src/sap/fe/core/templating/FilterHelper.ts +36 -35
- package/src/sap/fe/core/templating/PropertyHelper.js +2 -2
- package/src/sap/fe/core/templating/PropertyHelper.ts +1 -1
- package/src/sap/fe/core/templating/UIFormatters.js +32 -26
- package/src/sap/fe/core/templating/UIFormatters.ts +37 -24
|
@@ -15,6 +15,55 @@ const getMessagetypeOrder = function(messageType: string): number {
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Gets the validity of creation row fields.
|
|
20
|
+
*
|
|
21
|
+
* @function
|
|
22
|
+
* @name validateCreationRowFields
|
|
23
|
+
* @param {object} fieldValidityObject Object holding the fields
|
|
24
|
+
* @returns {boolean} `true` if all the fields in the creation row are valid, `false` otherwise
|
|
25
|
+
*/
|
|
26
|
+
const validateCreationRowFields = function(fieldValidityObject?: any) {
|
|
27
|
+
if (!fieldValidityObject) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
const fieldKeys = Object.keys(fieldValidityObject);
|
|
31
|
+
return (
|
|
32
|
+
fieldKeys.length > 0 &&
|
|
33
|
+
fieldKeys.every(function(key) {
|
|
34
|
+
return fieldValidityObject[key]["validity"];
|
|
35
|
+
})
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
validateCreationRowFields.__functionName = "sap.fe.core.formatters.TableFormatter#validateCreationRowFields";
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @param {object} this The context.
|
|
42
|
+
* @param {string} semanticKeyHasDraftIndicator The draft indicator property name.
|
|
43
|
+
* @param {Array} aFilteredMessages Array of messages.
|
|
44
|
+
* @returns {boolean} The value for Object Status visibility property.
|
|
45
|
+
*/
|
|
46
|
+
const getErrorStatusTextVisibilityFormatter = function(
|
|
47
|
+
this: ManagedObject | any,
|
|
48
|
+
semanticKeyHasDraftIndicator: string,
|
|
49
|
+
aFilteredMessages: any
|
|
50
|
+
) {
|
|
51
|
+
let bStatusVisibility = false;
|
|
52
|
+
const aSemanticKeyColumns = this.getParent().getAggregation("items");
|
|
53
|
+
const sColumnProperty = aSemanticKeyColumns[0]!.getBinding("title")?.getPath();
|
|
54
|
+
if (aFilteredMessages && aFilteredMessages.length > 0 && sColumnProperty === semanticKeyHasDraftIndicator) {
|
|
55
|
+
const sCurrentContextPath = this.getBindingContext() ? this.getBindingContext().getPath() : undefined;
|
|
56
|
+
aFilteredMessages.forEach((oMessage: any) => {
|
|
57
|
+
if (oMessage.type === "Error" && oMessage.aTargets[0].indexOf(sCurrentContextPath) === 0) {
|
|
58
|
+
bStatusVisibility = true;
|
|
59
|
+
return bStatusVisibility;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return bStatusVisibility;
|
|
64
|
+
};
|
|
65
|
+
getErrorStatusTextVisibilityFormatter.__functionName = "sap.fe.core.formatters.TableFormatter#getErrorStatusTextVisibilityFormatter";
|
|
66
|
+
|
|
18
67
|
/**
|
|
19
68
|
* rowHighlighting
|
|
20
69
|
*
|
|
@@ -104,8 +153,10 @@ const tableFormatters = function(this: object, sName: string, ...oArgs: any[]):
|
|
|
104
153
|
}
|
|
105
154
|
};
|
|
106
155
|
|
|
156
|
+
tableFormatters.validateCreationRowFields = validateCreationRowFields;
|
|
107
157
|
tableFormatters.rowHighlighting = rowHighlighting;
|
|
108
158
|
tableFormatters.navigatedRow = navigatedRow;
|
|
159
|
+
tableFormatters.getErrorStatusTextVisibilityFormatter = getErrorStatusTextVisibilityFormatter;
|
|
109
160
|
/**
|
|
110
161
|
* @global
|
|
111
162
|
*/
|
|
@@ -1,58 +1,54 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
5
4
|
*/
|
|
6
|
-
sap.ui.define(
|
|
7
|
-
|
|
8
|
-
function(TemplateComponent) {
|
|
9
|
-
"use strict";
|
|
5
|
+
sap.ui.define(["sap/fe/core/TemplateComponent"], function (TemplateComponent) {
|
|
6
|
+
"use strict";
|
|
10
7
|
|
|
11
|
-
|
|
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
|
-
);
|
|
8
|
+
/**
|
|
9
|
+
* @class
|
|
10
|
+
* Component that can be used as a wrapper component for custom pages.
|
|
11
|
+
*
|
|
12
|
+
* The component can be used in case you want to use SAP Fiori elements Building Blocks or XML template
|
|
13
|
+
* constructions. You can either extend the component and set the viewName and contextPath within your code
|
|
14
|
+
* or you can use it to wrap your custom XML view directly the manifest when you define your custom page
|
|
15
|
+
* under sapui5/routing/targets:
|
|
16
|
+
*
|
|
17
|
+
* <pre>
|
|
18
|
+
* "myCustomPage": {
|
|
19
|
+
* "type": "Component",
|
|
20
|
+
* "id": "myCustomPage",
|
|
21
|
+
* "name": "sap.fe.core.fpm",
|
|
22
|
+
* "title": "My Custom Page",
|
|
23
|
+
* "options": {
|
|
24
|
+
* "settings": {
|
|
25
|
+
* "viewName": "myNamespace.myView",
|
|
26
|
+
* "contextPath": "/MyEntitySet"
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* </pre>
|
|
31
|
+
*
|
|
32
|
+
* @name sap.fe.core.fpm.Component
|
|
33
|
+
* @hideconstructor
|
|
34
|
+
* @public
|
|
35
|
+
* @experimental As of version 1.92.0
|
|
36
|
+
* @since 1.92.0
|
|
37
|
+
*/
|
|
38
|
+
var FPMComponent = TemplateComponent.extend("sap.fe.core.fpm.Component", {
|
|
39
|
+
metadata: {
|
|
40
|
+
properties: {
|
|
41
|
+
/**
|
|
42
|
+
* Name of the XML view which is used for this page. The XML view can contain SAP Fiori elements
|
|
43
|
+
* Building Blocks and XML template constructions.
|
|
44
|
+
*/
|
|
45
|
+
viewName: {
|
|
46
|
+
type: "string"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
manifest: "json"
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return FPMComponent;
|
|
53
|
+
}, false);
|
|
54
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbXBvbmVudC50cyJdLCJuYW1lcyI6WyJGUE1Db21wb25lbnQiLCJUZW1wbGF0ZUNvbXBvbmVudCIsImV4dGVuZCIsIm1ldGFkYXRhIiwicHJvcGVydGllcyIsInZpZXdOYW1lIiwidHlwZSIsIm1hbmlmZXN0Il0sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBOzs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsTUFBTUEsWUFBWSxHQUFHQyxpQkFBaUIsQ0FBQ0MsTUFBbEIsQ0FBeUIsMkJBQXpCLEVBQXNEO0FBQzFFQyxJQUFBQSxRQUFRLEVBQUU7QUFDVEMsTUFBQUEsVUFBVSxFQUFFO0FBQ1g7QUFDSDtBQUNBO0FBQ0E7QUFDR0MsUUFBQUEsUUFBUSxFQUFFO0FBQ1RDLFVBQUFBLElBQUksRUFBRTtBQURHO0FBTEMsT0FESDtBQVVUQyxNQUFBQSxRQUFRLEVBQUU7QUFWRDtBQURnRSxHQUF0RCxDQUFyQjtTQWVlUCxZIiwic291cmNlUm9vdCI6Ii4iLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgVGVtcGxhdGVDb21wb25lbnQgZnJvbSBcInNhcC9mZS9jb3JlL1RlbXBsYXRlQ29tcG9uZW50XCI7XG5cbi8qKlxuICogQGNsYXNzXG4gKiBDb21wb25lbnQgdGhhdCBjYW4gYmUgdXNlZCBhcyBhIHdyYXBwZXIgY29tcG9uZW50IGZvciBjdXN0b20gcGFnZXMuXG4gKlxuICogVGhlIGNvbXBvbmVudCBjYW4gYmUgdXNlZCBpbiBjYXNlIHlvdSB3YW50IHRvIHVzZSBTQVAgRmlvcmkgZWxlbWVudHMgQnVpbGRpbmcgQmxvY2tzIG9yIFhNTCB0ZW1wbGF0ZVxuICogY29uc3RydWN0aW9ucy4gWW91IGNhbiBlaXRoZXIgZXh0ZW5kIHRoZSBjb21wb25lbnQgYW5kIHNldCB0aGUgdmlld05hbWUgYW5kIGNvbnRleHRQYXRoIHdpdGhpbiB5b3VyIGNvZGVcbiAqIG9yIHlvdSBjYW4gdXNlIGl0IHRvIHdyYXAgeW91ciBjdXN0b20gWE1MIHZpZXcgZGlyZWN0bHkgdGhlIG1hbmlmZXN0IHdoZW4geW91IGRlZmluZSB5b3VyIGN1c3RvbSBwYWdlXG4gKiB1bmRlciBzYXB1aTUvcm91dGluZy90YXJnZXRzOlxuICpcbiAqIDxwcmU+XG4gKiBcIm15Q3VzdG9tUGFnZVwiOiB7XG4gKlx0XCJ0eXBlXCI6IFwiQ29tcG9uZW50XCIsXG4gKlx0XCJpZFwiOiBcIm15Q3VzdG9tUGFnZVwiLFxuICpcdFwibmFtZVwiOiBcInNhcC5mZS5jb3JlLmZwbVwiLFxuICpcdFwidGl0bGVcIjogXCJNeSBDdXN0b20gUGFnZVwiLFxuICpcdFwib3B0aW9uc1wiOiB7XG4gKlx0XHRcInNldHRpbmdzXCI6IHtcbiAqXHRcdFx0XCJ2aWV3TmFtZVwiOiBcIm15TmFtZXNwYWNlLm15Vmlld1wiLFxuICpcdFx0XHRcImNvbnRleHRQYXRoXCI6IFwiL015RW50aXR5U2V0XCJcbiAqXHRcdFx0fVxuICpcdFx0fVxuICpcdH1cbiAqIDwvcHJlPlxuICpcbiAqIEBuYW1lIHNhcC5mZS5jb3JlLmZwbS5Db21wb25lbnRcbiAqIEBoaWRlY29uc3RydWN0b3JcbiAqIEBwdWJsaWNcbiAqIEBleHBlcmltZW50YWwgQXMgb2YgdmVyc2lvbiAxLjkyLjBcbiAqIEBzaW5jZSAxLjkyLjBcbiAqL1xuY29uc3QgRlBNQ29tcG9uZW50ID0gVGVtcGxhdGVDb21wb25lbnQuZXh0ZW5kKFwic2FwLmZlLmNvcmUuZnBtLkNvbXBvbmVudFwiLCB7XG5cdG1ldGFkYXRhOiB7XG5cdFx0cHJvcGVydGllczoge1xuXHRcdFx0LyoqXG5cdFx0XHQgKiBOYW1lIG9mIHRoZSBYTUwgdmlldyB3aGljaCBpcyB1c2VkIGZvciB0aGlzIHBhZ2UuIFRoZSBYTUwgdmlldyBjYW4gY29udGFpbiBTQVAgRmlvcmkgZWxlbWVudHNcblx0XHRcdCAqIEJ1aWxkaW5nIEJsb2NrcyBhbmQgWE1MIHRlbXBsYXRlIGNvbnN0cnVjdGlvbnMuXG5cdFx0XHQgKi9cblx0XHRcdHZpZXdOYW1lOiB7XG5cdFx0XHRcdHR5cGU6IFwic3RyaW5nXCJcblx0XHRcdH1cblx0XHR9LFxuXHRcdG1hbmlmZXN0OiBcImpzb25cIlxuXHR9XG59KTtcblxuZXhwb3J0IGRlZmF1bHQgRlBNQ29tcG9uZW50O1xuIl19
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import TemplateComponent from "sap/fe/core/TemplateComponent";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @class
|
|
5
|
+
* Component that can be used as a wrapper component for custom pages.
|
|
6
|
+
*
|
|
7
|
+
* The component can be used in case you want to use SAP Fiori elements Building Blocks or XML template
|
|
8
|
+
* constructions. You can either extend the component and set the viewName and contextPath within your code
|
|
9
|
+
* or you can use it to wrap your custom XML view directly the manifest when you define your custom page
|
|
10
|
+
* under sapui5/routing/targets:
|
|
11
|
+
*
|
|
12
|
+
* <pre>
|
|
13
|
+
* "myCustomPage": {
|
|
14
|
+
* "type": "Component",
|
|
15
|
+
* "id": "myCustomPage",
|
|
16
|
+
* "name": "sap.fe.core.fpm",
|
|
17
|
+
* "title": "My Custom Page",
|
|
18
|
+
* "options": {
|
|
19
|
+
* "settings": {
|
|
20
|
+
* "viewName": "myNamespace.myView",
|
|
21
|
+
* "contextPath": "/MyEntitySet"
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* </pre>
|
|
26
|
+
*
|
|
27
|
+
* @name sap.fe.core.fpm.Component
|
|
28
|
+
* @hideconstructor
|
|
29
|
+
* @public
|
|
30
|
+
* @experimental As of version 1.92.0
|
|
31
|
+
* @since 1.92.0
|
|
32
|
+
*/
|
|
33
|
+
const FPMComponent = TemplateComponent.extend("sap.fe.core.fpm.Component", {
|
|
34
|
+
metadata: {
|
|
35
|
+
properties: {
|
|
36
|
+
/**
|
|
37
|
+
* Name of the XML view which is used for this page. The XML view can contain SAP Fiori elements
|
|
38
|
+
* Building Blocks and XML template constructions.
|
|
39
|
+
*/
|
|
40
|
+
viewName: {
|
|
41
|
+
type: "string"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
manifest: "json"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export default FPMComponent;
|